diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml
new file mode 100644
index 0000000..2b9f603
--- /dev/null
+++ b/.github/workflows/ci.yml
@@ -0,0 +1,18 @@
+name: Verify prototype
+on: [push, pull_request]
+permissions:
+ contents: read
+jobs:
+ verify:
+ runs-on: ubuntu-latest
+ steps:
+ - uses: actions/checkout@11d5960a326750d5838078e36cf38b85af677262 # v4
+ with:
+ persist-credentials: false
+ - uses: actions/setup-node@49933ea5288caeca8642d1e84afbd3f7d6820020 # v4
+ with:
+ node-version: "24"
+ cache: npm
+ - run: npm ci
+ - run: npm run check
+ - run: npm audit --omit=dev --audit-level=high
diff --git a/.gitignore b/.gitignore
new file mode 100644
index 0000000..549853d
--- /dev/null
+++ b/.gitignore
@@ -0,0 +1,7 @@
+node_modules/
+.next/
+.env*
+!.env.example
+*.tsbuildinfo
+coverage/
+.local-data/
diff --git a/.prettierignore b/.prettierignore
new file mode 100644
index 0000000..1c83ea7
--- /dev/null
+++ b/.prettierignore
@@ -0,0 +1,4 @@
+.next
+node_modules
+package-lock.json
+next-env.d.ts
diff --git a/README.md b/README.md
index a26f4b9..73205a8 100644
--- a/README.md
+++ b/README.md
@@ -1,2 +1,119 @@
# Commonlight
-A BC+AI member portrait prototype with consent-based capture, authentic photo cleanup, consistent styling, and optional shareable galleries.
+
+**Working name · private-source local prototype for BC + AI member portraits.**
+
+A shared frame and restrained colour grade, with the actual person preserved.
+Built with Next.js, React, TypeScript and Sharp. No image model, inference account,
+application analytics, remote font, or uploaded real-person fixture is included.
+Next.js itself enables anonymous CLI/build usage telemetry by default. To opt out
+for one run, set `NEXT_TELEMETRY_DISABLED=1` for that command; see the
+[official Next.js telemetry documentation](https://nextjs.org/telemetry).
+
+## Run locally
+
+Node 22.13+ (Node 24 LTS recommended):
+
+```sh
+npm ci
+npm run dev
+```
+
+Open http://localhost:3000. Development and production launchers bind only to
+127.0.0.1; API routes reject non-loopback origins. This is intentionally **not a
+production deployment**. Start production locally with `npm run build && npm start`.
+
+## Try the workflow
+
+1. Read and select capture/processing permission.
+2. Upload a still JPEG/PNG/WebP (up to 10 MB, 40 megapixels), or grant the browser
+ camera permission. Camera permission is requested only by the camera button.
+3. Optionally add a name and/or BC + AI text mark. Prepare the portrait.
+4. Compare the full-frame cleaned preview and processed 4:5 portrait. Download the exact original or prepared JPEG. Inspect framing carefully: center cropping does not detect faces.
+5. Separately check subject consent to create a gallery link. The link exposes
+ only the processed JPEG. Revoke it or delete both images from the review page.
+
+All tests generate geometric solid-colour fixtures, not portraits of real people.
+The hero is an abstract CSS silhouette, not an example processing result.
+
+## What the baseline actually does
+
+- Sharp decodes and checks still raster images; malformed, unsupported and overly
+ large inputs fail closed. EXIF orientation is applied before metadata stripping.
+- The exact validated uploaded bytes are retained privately with their correct
+ JPEG/PNG/WebP media type and download extension. Original metadata is preserved
+ only in this private download. A separate full-frame JPEG preview and final
+ processed JPEG are re-encoded with EXIF/GPS/XMP stripped.
+- Center crop to 576 × 720; +3.5% global brightness and 96% saturation; optional
+ escaped text overlay; final 8-bit sRGB JPEG. This does not restore missing detail
+ or make an 8-bit source into a higher-dynamic-range photograph.
+- No face/body/age edits, generated details, background replacement or relighting.
+ Poor exposure, clipping, focus, and unsuitable framing need a better source.
+
+## Privacy and deliberate prototype limits
+
+Images are kept only in process-private memory, never in public/static paths or
+on disk. The single-process store holds at most 12 portraits, with at most two
+upload/processing operations at once. Admission happens before any request-body
+read, and invalid options are rejected before admission. Every portrait expires
+no later than the owning session (24 hours from session creation), so late-session
+uploads have a shorter remaining lifetime. Expiry blocks access; owned timers remove
+records and links when due. Server restart clears everything. Timers are subject
+to runtime scheduling; read-time expiration is immediate.
+
+Private access requires an expiring server-issued HttpOnly/SameSite=Strict session
+cookie. Public links use distinct random capabilities and cannot access originals
+or administration. No permanent credentials or service accounts are created.
+Sharing is an explicit second action; unguessability is not a substitute for
+subject consent. Revocation cannot erase copies viewers have already downloaded.
+Gallery links are local and useful only on the same reachable local server.
+
+Reloading loses review controls. Download anything to keep before leaving. A
+cancelled/disconnected upload that finished just before cancellation may remain
+private until expiry. Aborted processing that observes cancellation before commit
+cannot store or publish its result. No processing ever publishes automatically.
+
+## Architecture and future integrations
+
+- `lib/contracts.ts`: size, consent, options, client response decoders.
+- `lib/processor.ts`: `PortraitProcessor` and deterministic Sharp implementation.
+- `lib/store.ts`: `PortraitStore`, bounded ephemeral memory adapter, short sessions.
+- `lib/service.ts`: processing admission, cancellation fence, creation/publication.
+- `lib/http.ts` and `app/api`: loopback/origin enforcement, auth and bounded bodies.
+- `lib/camera.ts`: camera permission/stream ownership and cleanup.
+- `app/page.tsx`: capture, review and separate publication user experience.
+
+A hosted processor can implement `PortraitProcessor`; a private object store plus
+transactional metadata store can implement `PortraitStore`. Neither is configured.
+Before deployment: supply authorized identity/storage, review provider consent and
+retention, add durable cancellation/job reconciliation, rate limits and deployment
+resource boundaries, and run real-browser acceptance. Never expose the memory
+adapter through multiple workers/serverless instances or remove loopback guards
+without revisiting the threat model.
+
+## Verify
+
+```sh
+npm run check
+```
+
+Unit and route integration tests cover dimensions/encoding, metadata, deterministic
+output, input/consent rejection, ownership, expiry, sharing/revocation/deletion,
+concurrency reservations, cancellation and delayed camera permission cleanup.
+Real-browser camera/focus/navigation/mobile visual testing is separately required;
+this environment prohibited localhost browser access, so it is **not claimed**.
+See `docs/plans/portrait-baseline/` for current acceptance and limitations.
+
+## Visual reference
+
+Read-only observation of [bc-ai.ca](https://bc-ai.ca/) on 2026-10-02: near-black
+`#0a0d12`, lime `#dfe250`, muted `#b8bcc4`, rounded panels and compact uppercase
+labels. No BC + AI organization repository/site was modified or people imagery
+copied. The optional mark is plain text, pending brand approval for official assets.
+
+## Dependency ownership
+
+Next/React own application routing/rendering (MIT), TypeScript/tsx static/build
+execution (Apache-2.0/MIT), Sharp raster decoding/encoding (Apache-2.0; its bundled
+native dependencies carry their own notices), ESLint/TypeScript/React Hooks/Next plugins own static checks; Prettier formatting.
+Versions and integrity are locked in package-lock.json. Maintain with tests/build
+and dependency audit; a clean audit is not a security guarantee.
diff --git a/app/api/portraits/[id]/route.ts b/app/api/portraits/[id]/route.ts
new file mode 100644
index 0000000..521380e
--- /dev/null
+++ b/app/api/portraits/[id]/route.ts
@@ -0,0 +1,73 @@
+import { NextRequest } from "next/server";
+import {
+ boundedBody,
+ failure,
+ jpeg,
+ json,
+ mutation,
+ owner,
+ originalDownload,
+} from "@/lib/http";
+import { state } from "@/lib/service";
+import { AppError } from "@/lib/contracts";
+export const runtime = "nodejs";
+type Context = { params: Promise<{ id: string }> };
+export async function GET(request: NextRequest, context: Context) {
+ try {
+ const identity = owner(request);
+ const { id } = await context.params;
+ const kind = request.nextUrl.searchParams.get("kind");
+ if (kind !== "original" && kind !== "preview" && kind !== "processed")
+ throw new AppError(
+ 400,
+ "invalid",
+ "Choose original, preview or processed.",
+ );
+ const portrait = state.service.store.owned(id, identity);
+ return kind === "original"
+ ? originalDownload(portrait.original, portrait.originalFormat)
+ : jpeg(portrait[kind]);
+ } catch (e) {
+ return failure(e);
+ }
+}
+export async function POST(request: NextRequest, context: Context) {
+ try {
+ mutation(request);
+ const identity = owner(request);
+ const { id } = await context.params;
+ let data: unknown;
+ try {
+ data = JSON.parse((await boundedBody(request, 1024)).toString());
+ } catch (e) {
+ if (e instanceof AppError) throw e;
+ throw new AppError(400, "invalid", "Invalid action.");
+ }
+ if (!data || typeof data !== "object" || !("action" in data))
+ throw new AppError(400, "invalid", "Invalid action.");
+ if (
+ data.action === "publish" &&
+ "consent" in data &&
+ Object.keys(data).every((k) => ["action", "consent"].includes(k))
+ )
+ return json(state.service.publish(id, identity, data.consent));
+ if (data.action === "revoke" && Object.keys(data).length === 1) {
+ state.service.store.revoke(id, identity);
+ return json({ revoked: true });
+ }
+ throw new AppError(400, "invalid", "Invalid action.");
+ } catch (e) {
+ return failure(e);
+ }
+}
+export async function DELETE(request: NextRequest, context: Context) {
+ try {
+ mutation(request);
+ const identity = owner(request);
+ const { id } = await context.params;
+ state.service.store.delete(id, identity);
+ return json({ deleted: true });
+ } catch (e) {
+ return failure(e);
+ }
+}
diff --git a/app/api/portraits/route.ts b/app/api/portraits/route.ts
new file mode 100644
index 0000000..0ce3b8d
--- /dev/null
+++ b/app/api/portraits/route.ts
@@ -0,0 +1,30 @@
+import { NextRequest } from "next/server";
+import { boundedBody, failure, json, mutation, owner } from "@/lib/http";
+import { state } from "@/lib/service";
+import { AppError, decodeOptions } from "@/lib/contracts";
+export const runtime = "nodejs";
+export async function POST(request: NextRequest) {
+ try {
+ mutation(request);
+ const identity = owner(request);
+ let options: unknown;
+ try {
+ options = JSON.parse(
+ decodeURIComponent(request.headers.get("x-portrait-options") ?? ""),
+ );
+ } catch {
+ throw new AppError(400, "invalid", "Invalid portrait options.");
+ }
+ return json(
+ await state.service.create(
+ () => boundedBody(request),
+ decodeOptions(options),
+ { token: identity, expiresAt: state.sessions.expiresAt(identity) },
+ request.signal,
+ ),
+ 201,
+ );
+ } catch (e) {
+ return failure(e);
+ }
+}
diff --git a/app/api/public/[token]/route.ts b/app/api/public/[token]/route.ts
new file mode 100644
index 0000000..8db8491
--- /dev/null
+++ b/app/api/public/[token]/route.ts
@@ -0,0 +1,15 @@
+import { failure, jpeg, localOnly } from "@/lib/http";
+import { state } from "@/lib/service";
+export const runtime = "nodejs";
+export async function GET(
+ request: Request,
+ context: { params: Promise<{ token: string }> },
+) {
+ try {
+ localOnly(request);
+ const { token } = await context.params;
+ return jpeg(state.service.store.published(token).processed);
+ } catch (e) {
+ return failure(e);
+ }
+}
diff --git a/app/api/session/route.ts b/app/api/session/route.ts
new file mode 100644
index 0000000..26a8fea
--- /dev/null
+++ b/app/api/session/route.ts
@@ -0,0 +1,28 @@
+import { NextRequest } from "next/server";
+import { state } from "@/lib/service";
+import { failure, json, mutation } from "@/lib/http";
+import { RETENTION_MS } from "@/lib/contracts";
+export const runtime = "nodejs";
+export async function POST(request: NextRequest) {
+ try {
+ mutation(request);
+ const existing = request.cookies.get("commonlight_session")?.value;
+ try {
+ state.sessions.require(existing);
+ return json({ ready: true });
+ } catch {
+ /* Expired sessions get new bounded capabilities. */
+ }
+ const response = json({ ready: true });
+ response.cookies.set("commonlight_session", state.sessions.create(), {
+ httpOnly: true,
+ sameSite: "strict",
+ secure: new URL(request.url).protocol === "https:",
+ path: "/",
+ maxAge: RETENTION_MS / 1000,
+ });
+ return response;
+ } catch (e) {
+ return failure(e);
+ }
+}
diff --git a/app/gallery/[token]/page.tsx b/app/gallery/[token]/page.tsx
new file mode 100644
index 0000000..a23bdc0
--- /dev/null
+++ b/app/gallery/[token]/page.tsx
@@ -0,0 +1,36 @@
+import { notFound } from "next/navigation";
+import { state } from "@/lib/service";
+export const dynamic = "force-dynamic";
+export default async function Gallery({
+ params,
+}: {
+ params: Promise<{ token: string }>;
+}) {
+ const { token } = await params;
+ try {
+ state.service.store.published(token);
+ } catch {
+ notFound();
+ }
+ return (
+
+ COMMONLIGHT / BC + AI
+ A face from the room.
+
+
+ Shared by the subject’s choice. This link expires within 24 hours and
+ can be revoked.
+
+
+ Download portrait ↓
+
+
+ );
+}
diff --git a/app/globals.css b/app/globals.css
new file mode 100644
index 0000000..83a5693
--- /dev/null
+++ b/app/globals.css
@@ -0,0 +1,575 @@
+:root {
+ color-scheme: dark;
+ --ink: #0a0d12;
+ --panel: #11151c;
+ --accent: #dfe250;
+ --text: #fff;
+ --muted: #b8bcc4;
+ --line: #ffffff22;
+}
+* {
+ box-sizing: border-box;
+}
+html {
+ scroll-behavior: smooth;
+}
+body {
+ margin: 0;
+ background: var(--ink);
+ color: var(--text);
+ font-family: Arial, Helvetica, sans-serif;
+ line-height: 1.55;
+}
+a {
+ color: inherit;
+}
+button,
+input {
+ font: inherit;
+}
+button,
+.button {
+ display: inline-flex;
+ justify-content: center;
+ align-items: center;
+ gap: 14px;
+ min-height: 48px;
+ padding: 12px 20px;
+ border: 1px solid transparent;
+ border-radius: 8px;
+ background: var(--accent);
+ color: var(--ink);
+ font-weight: 700;
+ cursor: pointer;
+ text-decoration: none;
+ text-align: center;
+}
+button:hover,
+.button:hover {
+ filter: brightness(1.07);
+}
+button:disabled,
+.disabled {
+ opacity: 0.4;
+ cursor: not-allowed;
+}
+button.secondary,
+.button.secondary {
+ background: transparent;
+ border-color: #ffffff40;
+ color: white;
+}
+button.danger {
+ background: transparent;
+ color: #ff9daf;
+ border-color: #ff9daf55;
+}
+a:focus-visible,
+button:focus-visible,
+input:focus-visible,
+label.button:focus-within,
+h2:focus-visible {
+ outline: 3px solid #7adcff;
+ outline-offset: 5px;
+}
+h1,
+h2,
+h3,
+p {
+ margin-top: 0;
+}
+h1 {
+ font-size: clamp(42px, 5.4vw, 78px);
+ line-height: 1.04;
+ letter-spacing: -0.06em;
+ margin-bottom: 26px;
+}
+h1 em {
+ font-style: normal;
+ color: var(--accent);
+}
+h2 {
+ font-size: clamp(28px, 3.6vw, 46px);
+ line-height: 1.13;
+ letter-spacing: -0.035em;
+}
+h3 {
+ font-size: 25px;
+ letter-spacing: -0.02em;
+ margin-bottom: 12px;
+}
+.site-header,
+main,
+footer {
+ max-width: 1280px;
+ margin: auto;
+}
+.site-header {
+ display: flex;
+ align-items: center;
+ gap: 28px;
+ padding: 25px 40px;
+ border-bottom: 1px solid var(--line);
+}
+.brand {
+ font-weight: 900;
+ font-size: 29px;
+ letter-spacing: -0.06em;
+ text-decoration: none;
+ white-space: nowrap;
+}
+.brand span {
+ color: var(--accent);
+}
+.header-label,
+.pill,
+.eyebrow,
+.step-label,
+.panel-footer,
+.principles,
+.art-caption,
+.art-spec,
+figcaption {
+ font-family: monospace;
+ letter-spacing: 0.09em;
+ font-size: 11px;
+ font-weight: 600;
+}
+.header-label {
+ color: var(--muted);
+}
+.pill {
+ margin-left: auto;
+ border: 1px solid var(--line);
+ border-radius: 50px;
+ padding: 7px 12px;
+ color: var(--accent);
+}
+main {
+ padding: 0 40px;
+}
+.hero {
+ display: grid;
+ grid-template-columns: 1.25fr 1fr;
+ gap: 72px;
+ align-items: center;
+ padding: 70px 0;
+}
+.eyebrow {
+ color: var(--accent);
+ margin-bottom: 24px;
+}
+.intro {
+ color: var(--muted);
+ font-size: 18px;
+ max-width: 490px;
+ margin-bottom: 30px;
+}
+.text-link {
+ text-decoration: none;
+ font-weight: 700;
+}
+.text-link span {
+ margin-left: 30px;
+ color: var(--accent);
+ font-size: 25px;
+}
+.hero-art {
+ position: relative;
+ height: 410px;
+ border-radius: 16px;
+ background:
+ radial-gradient(ellipse at 45% 20%, #526957, transparent 60%),
+ linear-gradient(130deg, #203c40, #1c2230 75%);
+ overflow: hidden;
+}
+.art-grid {
+ position: absolute;
+ inset: 0;
+ background-image:
+ linear-gradient(#ffffff0a 1px, transparent 1px),
+ linear-gradient(90deg, #ffffff0a 1px, transparent 1px);
+ background-size: 38px 38px;
+}
+.bust {
+ position: absolute;
+ bottom: -90px;
+ left: 19%;
+ width: 63%;
+ height: 240px;
+ background: linear-gradient(130deg, #dfe250, #64785f);
+ border-radius: 48% 48% 10% 10%;
+ opacity: 0.9;
+}
+.bust:before {
+ content: "";
+ position: absolute;
+ bottom: 180px;
+ left: 25%;
+ width: 50%;
+ height: 155px;
+ border-radius: 45% 45% 42% 42%;
+ background: linear-gradient(125deg, #e9e997, #8d9f67);
+}
+.frame-corner {
+ position: absolute;
+ width: 45px;
+ height: 45px;
+ border: 1px solid #e9e997;
+ z-index: 1;
+}
+.frame-corner.top {
+ top: 35px;
+ left: 35px;
+ border-right: 0;
+ border-bottom: 0;
+}
+.frame-corner.bottom {
+ right: 35px;
+ bottom: 58px;
+ border-top: 0;
+ border-left: 0;
+}
+.art-caption {
+ position: absolute;
+ left: 22px;
+ bottom: 20px;
+ color: #fff;
+}
+.art-spec {
+ position: absolute;
+ right: 22px;
+ top: 20px;
+ color: #dfe250;
+}
+.principles {
+ display: flex;
+ justify-content: space-between;
+ padding: 20px 0;
+ border-top: 1px solid var(--line);
+ border-bottom: 1px solid var(--line);
+ color: var(--muted);
+}
+.studio {
+ padding: 60px 0;
+}
+.section-title {
+ max-width: 760px;
+}
+.section-title .eyebrow {
+ margin-bottom: 13px;
+}
+.section-title h2 {
+ margin-bottom: 17px;
+}
+.section-title p:not(.eyebrow) {
+ color: var(--muted);
+ max-width: 650px;
+}
+.workspace {
+ display: grid;
+ grid-template-columns: 1.12fr 1fr;
+ gap: 40px;
+ margin-top: 20px;
+}
+.photo-panel {
+ min-height: 510px;
+ position: relative;
+ overflow: hidden;
+ border: 1px solid var(--line);
+ border-radius: 12px;
+ background: var(--panel);
+ display: flex;
+ align-items: center;
+ justify-content: center;
+}
+.photo-panel img,
+.photo-panel video {
+ width: 100%;
+ height: 490px;
+ object-fit: contain;
+ padding: 20px 20px 50px;
+}
+.photo-panel video[hidden] {
+ display: none;
+}
+.empty-photo {
+ text-align: center;
+ color: var(--muted);
+ padding: 40px;
+}
+.empty-photo h3 {
+ font-size: 23px;
+ color: #fff;
+}
+.cross {
+ display: block;
+ font-weight: 200;
+ font-size: 54px;
+ line-height: 1;
+ color: var(--accent);
+ margin-bottom: 25px;
+}
+.panel-footer {
+ position: absolute;
+ bottom: 0;
+ left: 0;
+ right: 0;
+ display: flex;
+ justify-content: space-between;
+ gap: 10px;
+ padding: 16px;
+ border-top: 1px solid var(--line);
+ color: #9aa0a8;
+ background: var(--panel);
+ font-size: 9px;
+}
+.controls {
+ padding: 6px 0;
+}
+.step-label {
+ color: var(--accent);
+ margin-bottom: 16px;
+}
+.check {
+ display: flex;
+ align-items: flex-start;
+ gap: 13px;
+ margin: 16px 0;
+ line-height: 1.5;
+ cursor: pointer;
+}
+.check input {
+ flex: 0 0 19px;
+ width: 19px;
+ height: 19px;
+ margin-top: 3px;
+ accent-color: var(--accent);
+}
+.small {
+ font-size: 13px;
+ color: var(--muted);
+}
+.button-row,
+.review-actions {
+ display: flex;
+ flex-wrap: wrap;
+ gap: 12px;
+}
+.button-row .button,
+.button-row button {
+ flex: 1;
+ white-space: nowrap;
+}
+label.button {
+ position: relative;
+ overflow: hidden;
+}
+label.button input[type="file"] {
+ position: absolute;
+ inset: 0;
+ opacity: 0;
+ width: 100%;
+ height: 100%;
+ cursor: pointer;
+}
+.field {
+ display: block;
+ font-size: 14px;
+}
+.field span {
+ color: var(--muted);
+}
+.field input {
+ display: block;
+ width: 100%;
+ border: 1px solid #ffffff40;
+ border-radius: 8px;
+ background: var(--panel);
+ padding: 13px;
+ color: white;
+ margin: 9px 0 20px;
+}
+.wide {
+ width: 100%;
+ margin-bottom: 14px;
+}
+.primary {
+ background: var(--accent);
+ color: var(--ink);
+}
+hr {
+ border: 0;
+ border-top: 1px solid var(--line);
+ margin: 26px 0;
+}
+.alert {
+ background: #492434;
+ padding: 15px 20px;
+ border: 1px solid #ff9daf;
+ color: #fff;
+ border-radius: 8px;
+}
+.status {
+ color: var(--accent);
+ font-size: 14px;
+ min-height: 22px;
+ margin: 15px 0;
+}
+.comparison {
+ display: grid;
+ grid-template-columns: 1fr 1fr;
+ gap: 25px;
+}
+.comparison figure {
+ margin: 0;
+ background: var(--panel);
+ border: 1px solid var(--line);
+ border-radius: 12px;
+ overflow: hidden;
+}
+.comparison img {
+ width: 100%;
+ height: 520px;
+ object-fit: contain;
+ display: block;
+ padding: 20px;
+}
+.comparison figcaption {
+ border-top: 1px solid var(--line);
+ padding: 16px;
+ color: var(--muted);
+}
+.review-actions {
+ margin: 25px 0 40px;
+}
+.share-panel {
+ border: 1px solid var(--line);
+ background: var(--panel);
+ border-radius: 12px;
+ padding: 30px;
+ display: grid;
+ grid-template-columns: 1fr 1fr;
+ gap: 40px;
+}
+.share-panel p {
+ color: var(--muted);
+}
+.share-panel .step-label {
+ color: var(--accent);
+}
+.honesty {
+ display: grid;
+ grid-template-columns: 1fr 2fr;
+ gap: 50px;
+ padding: 50px 0 70px;
+ border-top: 1px solid var(--line);
+}
+.honesty p:not(.eyebrow) {
+ color: var(--muted);
+ max-width: 680px;
+}
+.honesty h2 {
+ font-size: 37px;
+}
+footer {
+ border-top: 1px solid var(--line);
+ padding: 25px 40px;
+ display: flex;
+ align-items: center;
+ justify-content: space-between;
+ gap: 20px;
+ color: var(--muted);
+ font-size: 12px;
+}
+.gallery {
+ text-align: center;
+ max-width: 750px;
+ padding: 60px 30px;
+}
+.gallery h1 {
+ font-size: 42px;
+}
+.gallery img {
+ display: block;
+ max-width: 100%;
+ width: 440px;
+ height: auto;
+ margin: 25px auto;
+ border-radius: 12px;
+}
+.gallery p {
+ color: var(--muted);
+}
+@media (max-width: 800px) {
+ .site-header {
+ padding: 20px;
+ }
+ .header-label {
+ display: none;
+ }
+ main {
+ padding: 0 22px;
+ }
+ .hero {
+ grid-template-columns: 1fr;
+ gap: 35px;
+ padding: 45px 0;
+ }
+ .hero-art {
+ height: 300px;
+ max-width: 500px;
+ }
+ .hero h1 {
+ font-size: 53px;
+ }
+ .workspace,
+ .share-panel,
+ .honesty {
+ grid-template-columns: 1fr;
+ gap: 25px;
+ }
+ .principles {
+ gap: 20px;
+ font-size: 9px;
+ }
+ .photo-panel {
+ min-height: 360px;
+ }
+ .photo-panel img,
+ .photo-panel video {
+ height: 400px;
+ }
+ .comparison {
+ gap: 12px;
+ }
+ .comparison img {
+ height: 340px;
+ padding: 8px;
+ }
+ .comparison figcaption {
+ font-size: 9px;
+ padding: 12px;
+ }
+ .studio {
+ padding: 40px 0;
+ }
+ .share-panel {
+ padding: 23px;
+ }
+ footer {
+ padding: 25px 22px;
+ flex-wrap: wrap;
+ }
+ .honesty {
+ padding: 35px 0;
+ }
+ .honesty .eyebrow {
+ margin: 0;
+ }
+}
+@media (prefers-reduced-motion: reduce) {
+ html {
+ scroll-behavior: auto;
+ }
+}
diff --git a/app/layout.tsx b/app/layout.tsx
new file mode 100644
index 0000000..abf4b26
--- /dev/null
+++ b/app/layout.tsx
@@ -0,0 +1,16 @@
+import type { Metadata } from "next";
+import "./globals.css";
+export const metadata: Metadata = {
+ title: "Commonlight · BC + AI portraits",
+ description: "A private, local-first portrait studio prototype.",
+ robots: { index: false, follow: false },
+};
+export default function Layout({
+ children,
+}: Readonly<{ children: React.ReactNode }>) {
+ return (
+
+
{children}
+
+ );
+}
diff --git a/app/not-found.tsx b/app/not-found.tsx
new file mode 100644
index 0000000..d8b0a79
--- /dev/null
+++ b/app/not-found.tsx
@@ -0,0 +1,16 @@
+import Link from "next/link";
+export default function NotFound() {
+ return (
+
+ COMMONLIGHT
+ This portrait is private.
+
+ The link may have expired or been revoked. The original photo is never
+ public.
+
+
+ Back to the studio
+
+
+ );
+}
diff --git a/app/page.tsx b/app/page.tsx
new file mode 100644
index 0000000..a7a6a00
--- /dev/null
+++ b/app/page.tsx
@@ -0,0 +1,637 @@
+"use client";
+import Link from "next/link";
+import { useEffect, useRef, useState } from "react";
+import { CameraController } from "@/lib/camera";
+import {
+ MAX_UPLOAD_BYTES,
+ decodePublication,
+ decodeResult,
+} from "@/lib/contracts";
+type Result = ReturnType;
+async function checked(response: Response) {
+ const data: unknown = await response.json();
+ if (!response.ok)
+ throw new Error(
+ data &&
+ typeof data === "object" &&
+ "error" in data &&
+ typeof data.error === "string"
+ ? data.error
+ : "The operation could not finish.",
+ );
+ return data;
+}
+export default function Studio() {
+ const [consent, setConsent] = useState(false),
+ [shareConsent, setShareConsent] = useState(false);
+ const [file, setFile] = useState(null),
+ [preview, setPreview] = useState("");
+ const [name, setName] = useState(""),
+ [mark, setMark] = useState(false);
+ const [camera, setCamera] = useState(false),
+ [cameraPending, setCameraPending] = useState(false);
+ const [busy, setBusy] = useState(false),
+ [error, setError] = useState(""),
+ [notice, setNotice] = useState("");
+ const [result, setResult] = useState(null),
+ [link, setLink] = useState("");
+ const video = useRef(null),
+ controller = useRef(new CameraController());
+ const request = useRef(null),
+ generation = useRef(0),
+ mounted = useRef(true),
+ lock = useRef(false);
+ const heading = useRef(null),
+ cameraGeneration = useRef(0),
+ previewUrl = useRef("");
+ function stopCamera() {
+ cameraGeneration.current++;
+ controller.current.stop();
+ setCamera(false);
+ setCameraPending(false);
+ }
+ useEffect(() => {
+ mounted.current = true;
+ const cameraOwner = controller.current;
+ const onPageHide = () => {
+ generation.current++;
+ cameraGeneration.current++;
+ cameraOwner.stop();
+ request.current?.abort();
+ lock.current = false;
+ if (mounted.current) {
+ setCamera(false);
+ setCameraPending(false);
+ setBusy(false);
+ }
+ };
+ window.addEventListener("pagehide", onPageHide);
+ return () => {
+ mounted.current = false;
+ onPageHide();
+ URL.revokeObjectURL(previewUrl.current);
+ window.removeEventListener("pagehide", onPageHide);
+ };
+ }, []);
+ useEffect(() => {
+ if (result) heading.current?.focus();
+ }, [result]);
+ function choose(selected: File | null) {
+ setError("");
+ if (!selected) return;
+ if (
+ selected.size > MAX_UPLOAD_BYTES ||
+ !["image/jpeg", "image/png", "image/webp"].includes(selected.type)
+ ) {
+ setError("Choose a JPEG, PNG or WebP up to 10 MB.");
+ return;
+ }
+ stopCamera();
+ URL.revokeObjectURL(previewUrl.current);
+ previewUrl.current = URL.createObjectURL(selected);
+ setPreview(previewUrl.current);
+ setFile(selected);
+ setNotice(
+ "Photo selected. Review the framing, then prepare your portrait.",
+ );
+ }
+ async function openCamera() {
+ if (!consent || cameraPending || camera || lock.current) return;
+ setError("");
+ setCameraPending(true);
+ const current = ++cameraGeneration.current;
+ try {
+ if (!navigator.mediaDevices?.getUserMedia)
+ throw new Error(
+ "Camera capture needs a supported browser on localhost or HTTPS. You can upload a photo instead.",
+ );
+ const stream = await controller.current.open(() =>
+ navigator.mediaDevices.getUserMedia({
+ video: {
+ facingMode: "user",
+ width: { ideal: 1280 },
+ height: { ideal: 960 },
+ },
+ audio: false,
+ }),
+ );
+ if (!stream || !mounted.current) return;
+ setCamera(true);
+ setCameraPending(false);
+ // The video stays mounted, so permission completion never targets a stale element.
+ if (video.current) {
+ video.current.srcObject = stream;
+ await video.current.play();
+ }
+ } catch (e) {
+ if (mounted.current && current === cameraGeneration.current) {
+ stopCamera();
+ setError(
+ e instanceof Error
+ ? e.message
+ : "Camera access was not granted. Upload a photo instead.",
+ );
+ }
+ }
+ }
+ async function capture() {
+ const element = video.current;
+ if (!element?.videoWidth || !camera) {
+ setError("Wait for the camera preview, then try again.");
+ return;
+ }
+ const canvas = document.createElement("canvas");
+ canvas.width = element.videoWidth;
+ canvas.height = element.videoHeight;
+ const context = canvas.getContext("2d");
+ if (!context) {
+ setError("Camera capture is unavailable. Upload a photo instead.");
+ return;
+ }
+ context.drawImage(element, 0, 0);
+ const current = cameraGeneration.current;
+ canvas.toBlob(
+ (blob) => {
+ if (blob && mounted.current && current === cameraGeneration.current)
+ choose(new File([blob], "camera.jpg", { type: "image/jpeg" }));
+ },
+ "image/jpeg",
+ 0.95,
+ );
+ }
+ async function run(action: (signal: AbortSignal) => Promise) {
+ if (lock.current) return;
+ lock.current = true;
+ setBusy(true);
+ setError("");
+ setNotice("");
+ const abort = new AbortController();
+ request.current = abort;
+ const current = ++generation.current;
+ try {
+ await action(abort.signal);
+ } catch (e) {
+ if (
+ mounted.current &&
+ current === generation.current &&
+ !abort.signal.aborted
+ )
+ setError(e instanceof Error ? e.message : "Please try again.");
+ } finally {
+ if (current === generation.current) {
+ lock.current = false;
+ request.current = null;
+ if (mounted.current) setBusy(false);
+ }
+ }
+ }
+ async function prepare() {
+ if (!file || !consent) return;
+ stopCamera();
+ await run(async (signal) => {
+ await checked(await fetch("/api/session", { method: "POST", signal }));
+ const data = decodeResult(
+ await checked(
+ await fetch("/api/portraits", {
+ method: "POST",
+ headers: {
+ "Content-Type": file.type,
+ "X-Portrait-Options": encodeURIComponent(
+ JSON.stringify({ consent, name, mark }),
+ ),
+ },
+ body: file,
+ signal,
+ }),
+ ),
+ );
+ if (!signal.aborted && mounted.current) {
+ setResult(data);
+ setLink("");
+ setShareConsent(false);
+ setNotice(
+ "Your portrait is private. Review it before downloading or sharing.",
+ );
+ }
+ });
+ }
+ function cancel() {
+ generation.current++;
+ request.current?.abort();
+ request.current = null;
+ lock.current = false;
+ setBusy(false);
+ stopCamera();
+ setNotice(
+ "Cancelled. An upload already completed on the server may remain private until the 24-hour expiry.",
+ );
+ }
+ async function publish() {
+ if (!result || !shareConsent) return;
+ await run(async (signal) => {
+ const data = decodePublication(
+ await checked(
+ await fetch(`/api/portraits/${result.id}`, {
+ method: "POST",
+ headers: { "Content-Type": "application/json" },
+ body: JSON.stringify({ action: "publish", consent: shareConsent }),
+ signal,
+ }),
+ ),
+ );
+ if (!signal.aborted && mounted.current) {
+ setLink(`${location.origin}/gallery/${data.token}`);
+ setNotice(
+ "Link sharing is on. Anyone with the link can view and save this portrait.",
+ );
+ }
+ });
+ }
+ async function revoke() {
+ if (!result) return;
+ await run(async (signal) => {
+ await checked(
+ await fetch(`/api/portraits/${result.id}`, {
+ method: "POST",
+ headers: { "Content-Type": "application/json" },
+ body: JSON.stringify({ action: "revoke" }),
+ signal,
+ }),
+ );
+ if (!signal.aborted && mounted.current) {
+ setLink("");
+ setShareConsent(false);
+ setNotice(
+ "Link revoked. Previously downloaded copies cannot be recalled.",
+ );
+ }
+ });
+ }
+ async function remove() {
+ if (!result) return;
+ await run(async (signal) => {
+ await checked(
+ await fetch(`/api/portraits/${result.id}`, {
+ method: "DELETE",
+ signal,
+ }),
+ );
+ if (!signal.aborted && mounted.current) {
+ setResult(null);
+ setLink("");
+ setShareConsent(false);
+ setFile(null);
+ URL.revokeObjectURL(previewUrl.current);
+ previewUrl.current = "";
+ setPreview("");
+ setNotice(
+ "The stored original and processed portrait have been deleted.",
+ );
+ }
+ });
+ }
+ return (
+ <>
+
+
+ BC + AI
+
+ MEMBER PORTRAIT STUDIO
+ LOCAL PROTOTYPE
+
+
+
+
+
COMMONLIGHT / PEOPLE, AS THEY ARE
+
+ A shared look.
+
+ Still entirely you.
+
+
+ A little light. A consistent frame. A portrait that belongs in the
+ room, without changing the person in it.
+
+
+ Make your portrait ↘
+
+
+
+
+
+
+
+
YOUR FACE. YOUR CHOICE.
+
4:5 / 720px
+
+
+
+ 01 / Real identity
+ 02 / Private by default
+ 03 / Share by choice
+
+
+
+
THE STUDIO
+
+ {result ? "Meet your portrait." : "Start with a good moment."}
+
+
+ {result
+ ? "Compare the original with the prepared portrait. If the crop or colour feels wrong, keep your original and try another photo."
+ : "Face a window. Keep the camera at eye level. Leave a little room around your head and shoulders."}
+
+
+ {error && (
+
+ {error}
+
+ )}
+
+ {busy ? "Working on your request…" : notice}
+
+ {!result ? (
+
+
+
+ {!camera &&
+ (preview ? (
+
+ ) : (
+
+
+
+
Your portrait begins here
+
+ Upload a photo or use your camera.
+
+ Nothing is shared automatically.
+
+
+ ))}
+
+
+ {camera
+ ? "CAMERA ON · LIVE PREVIEW"
+ : preview
+ ? "SOURCE PHOTO · NOT YET UPLOADED"
+ : "JPEG / PNG / WEBP"}
+
+ UP TO 10 MB
+
+
+
+
01 / PERMISSION
+
+ {
+ setConsent(e.target.checked);
+ if (!e.target.checked) stopCamera();
+ }}
+ />
+
+ I’m the person in this photo, or have their permission to
+ capture and process it here.
+
+
+
+ Camera access starts only when you choose it. Processing
+ happens on this local server. No photos are sent to an AI
+ provider.
+
+
+
+ Upload photo
+ {
+ choose(e.target.files?.[0] ?? null);
+ e.target.value = "";
+ }}
+ />
+
+
+ {cameraPending ? "Waiting for camera…" : "Use camera"}
+
+
+ {(camera || cameraPending) && (
+
+ {camera && Take photo }
+
+ Close camera
+
+
+ )}
+
+
02 / FINISHING TOUCHES
+
+ Name on portrait (optional)
+ setName(e.target.value)}
+ />
+
+
+ setMark(e.target.checked)}
+ />
+ Add a BC + AI text mark
+
+
+ Prepare my portrait ↗
+
+ {busy && (
+
+ Cancel request
+
+ )}
+
+ Gentle global brightness and colour adjustment. Center crop,
+ 576 × 720, 8-bit JPEG. No face reshaping, age changes or
+ generated features.
+
+
+
+ ) : (
+ <>
+
+
+
+ ORIGINAL PREVIEW / FULL FRAME
+
+
+
+ PREPARED / 576 × 720
+
+
+
+
+
+
03 / YOUR CALL
+
{link ? "Shared by link." : "Good to share?"}
+
+ Only the prepared image will be visible. The original stays
+ private.
+
+
+ Expires {new Date(result.expiresAt).toLocaleString()}.
+ Server restart also removes it. Anyone holding a shared link
+ can save a copy.
+
+
+
+
+ >
+ )}
+
+
+ A SMALL, HONEST PROTOTYPE
+
+
+ Better consistency.
+
+ No invented you.
+
+
+ This version uses a deterministic photo pipeline. It can gently
+ adjust the whole image; it can’t recreate lost detail, repair
+ difficult lighting or decide what looks like you.
+
+
+ Exact uploaded originals (including their metadata) are retained
+ privately with a metadata-stripped preview and prepared image
+ until the private session expires, at most 24 hours. A restart
+ clears everything. Keep downloaded copies you want to retain.
+ Reloading this page loses the current review controls.
+
+
+ Hosted processing and permanent storage are future integrations,
+ currently unavailable. This studio is local-only; gallery links
+ work only while this server is running and reachable on your own
+ device.
+
+
+
+
+
+
+ BC + AI
+
+ Commonlight · working title · private prototype
+ Made for the people in the room.
+
+ >
+ );
+}
diff --git a/docs/plans/portrait-baseline/execution-ledger.md b/docs/plans/portrait-baseline/execution-ledger.md
new file mode 100644
index 0000000..6c62c51
--- /dev/null
+++ b/docs/plans/portrait-baseline/execution-ledger.md
@@ -0,0 +1,32 @@
+# Execution ledger
+
+2026-10-02: Scope received from parent. Inspected live bc-ai.ca CSS: ink #0a0d12,
+acid accent #dfe250, muted #b8bcc4 and rounded panels. No external people images
+copied. Environment fallback authorized by parent; subagent slots unavailable.
+Plan started for initial prototype. GUI acceptance explicitly pending.
+
+2026-10-02 22:10 UTC: Implemented baseline. Strict typecheck, lint and 14 synthetic
+unit/route-integration tests passed. Production dependency audit passed after
+updating Sharp to 0.35.5 (the initially selected 0.34 series had high-severity
+native-library advisories). ESLint 10 uses compatible direct TypeScript, Hooks and
+Next plugins; the aggregate Next lint preset had incompatible ESLint 9-era plugins
+and was removed rather than pinning an unsupported linter.
+
+The initial production build passed on Next 16.3.8. The final build must rerun
+following the Sharp/dependency and lifecycle refinements; paused at parent's
+request to free memory for a sibling Rust verification job. No dev server is
+running. HTTP tests invoke the real route handlers in process, not a listening
+server. No real-browser claims are made. Source is frozen for independent review;
+remote publication remains parent-owned and must use the existing GitHub main
+base, not this new local repository's unrelated initial history.
+
+2026-10-02 22:26 UTC: Independent review identified three acceptance blockers:
+original byte preservation, owner/public lifetime mismatch, and body admission
+before allocation. Repaired all three within processor/store/service/HTTP owners
+and their consumers. Superseded the cleaned-JPEG-as-original decision with exact
+private input retention plus a separate metadata-stripped preview. Portrait expiry
+is now capped at the session deadline; upload admission precedes body reads.
+Full final aggregate check including Sharp 0.35.5 production build passed; all
+18 tests pass and production audit reports zero vulnerabilities. See
+[repair evidence](reports/review-repairs.md). Awaiting independent re-review;
+GUI acceptance remains unavailable. No remote changes or deployment performed.
diff --git a/docs/plans/portrait-baseline/issues.md b/docs/plans/portrait-baseline/issues.md
new file mode 100644
index 0000000..919ddd3
--- /dev/null
+++ b/docs/plans/portrait-baseline/issues.md
@@ -0,0 +1,13 @@
+# Issues
+
+- CL-001 / acceptance blocker: cloud browser localhost prohibited. Owner: maintainer.
+ Camera, focus, navigation and visual QA require a permitted browser before release.
+- CL-002 / deferred: memory store is single-process, ephemeral, max 12 records.
+ Owner: maintainer. Replace with private object storage/database and production
+ authentication before deployment; add provider privacy/retention evaluation.
+- CL-003 / deferred: deterministic global grade cannot fix directional lighting,
+ severe clipping, focus or unsuitable crop. Owner: maintainer. Request better
+ source photo; do not introduce identity-changing generation as silent fallback.
+- CL-004 / fixed, pending independent re-review: preserve exact uploaded originals,
+ constrain portrait/public lifetime to owner authority, and admit uploads before
+ reading bodies. See reports/review-repairs.md for ownership and regression evidence.
diff --git a/docs/plans/portrait-baseline/plan.md b/docs/plans/portrait-baseline/plan.md
new file mode 100644
index 0000000..11a11a6
--- /dev/null
+++ b/docs/plans/portrait-baseline/plan.md
@@ -0,0 +1,64 @@
+# Commonlight portrait baseline
+
+Status: Verifying. Operation: verify. Current phase: independent review.
+Acceptance: partially satisfied. Next slice: independently verify the three review repairs against the final build.
+
+## Objective and scope
+
+Build a private-source, local-only Next.js member-photo prototype. Capture/upload,
+consented deterministic processing, before/after review, optional name and text
+BC + AI mark, explicitly consented revocable public-by-link output. No deployment,
+provider account, inference API, generated identities or real-person fixture data.
+Write set: this new repository, excluding unrelated sibling workspaces.
+
+## Binding decisions
+
+- App/server deploy atomically. `lib/contracts.ts` owns operation bounds.
+- Deterministic Sharp adapter owns metadata-free 8-bit sRGB JPEG output, centered
+ 4:5 crop at 576 × 720, modest global exposure/saturation only. No ACES or image
+ reconstruction claim. Crop can exclude part of a face; review is mandatory.
+- Memory adapter owns private originals/outputs and unguessable, expiring link
+ capabilities. Max 12 records; two concurrent upload/processing jobs admitted before body reads. No disk writes of
+ photos. Restart deletes every image/link; expiry is capped at the owning session deadline (at most 24h), enforced on
+ reads and swept. This is a bounded ephemeral prototype, not durable production
+ storage. Exact validated uploaded bytes are retained privately with their original format.
+ A separate metadata-stripped full-frame JPEG preview is used for review.
+- Session cookie is HttpOnly/SameSite strict, short-lived, server-issued. Gallery
+ tokens are separate and confer only processed-image access. No list endpoint.
+- Consent is required before camera and processing; separate unchecked subject
+ sharing consent before publication. Revocation cannot erase downloaded copies.
+- One request owns each processing job; disconnect/cancel fences publication of
+ its result. UI owns camera tracks, object URLs and AbortController lifecycles.
+- Hosted processing is unavailable until provider/privacy review and credentials
+ are supplied by authorized operator. An interface, not a pretending API stub.
+
+## Milestones and gates
+
+1. Backend and UI (Verifying): app/, lib/, tests/, configs. Gates: strict typecheck,
+ synthetic-fixture domain/HTTP tests, production build, scoped source review.
+2. Browser acceptance (Verifying): camera permissions, cancellation/navigation,
+ keyboard/focus, mobile layout, before/after and publish/revoke flows. Browser
+ localhost is currently blocked; no claim of real GUI verification.
+
+## Acceptance claims
+
+- Invalid/oversized/unsupported images rejected; metadata stripped; JPEG8 and
+ maximum dimensions proven by decoded output metadata.
+- Consent, ownership, expiration, cancellation, publication and revocation tested
+ at domain/HTTP boundaries. Originals never reachable by gallery token.
+- Real browser behavior requires browser evidence, not build or unit substitution.
+
+## Standards and design review
+
+Uses MrScripty/Coding-Standards dcc56f26e884ade260770beceba2501d3746200d:
+Core/Router; planning, implementation, verification, commit, build, tooling;
+contracts, security, concurrency, accessibility; frontend, TypeScript/async.
+Composed-design review: not-applicable: one small atomic app with a single domain
+service and direct adapters; no orchestration framework or layered platform.
+
+## Blockers and triggers
+
+Browser localhost access unavailable. Durable storage/identity, hosted provider,
+production hardening and deployment deferred to separately authorized next phase.
+Replan if intended retention, subject consent, or deployment requirements change.
+See [ledger](execution-ledger.md), [issues](issues.md).
diff --git a/docs/plans/portrait-baseline/reports/review-repairs.md b/docs/plans/portrait-baseline/reports/review-repairs.md
new file mode 100644
index 0000000..df299a2
--- /dev/null
+++ b/docs/plans/portrait-baseline/reports/review-repairs.md
@@ -0,0 +1,42 @@
+# Review repairs — 2026-10-02
+
+## Exact original preservation
+
+`PortraitImages` now distinguishes exact uploaded bytes plus original format from
+the normalized preview and processed JPEG. Originals are privately downloaded as
+attachments with validated JPEG/PNG/WebP MIME and matching extension. The review UI
+uses the metadata-stripped preview; public routes still return only processed bytes.
+Tests recover exact JPEG, PNG and WebP inputs, inspect response MIME/extension,
+check metadata stripping for derivatives, and reject unauthorized private access.
+
+## Owner authority lifetime
+
+`OwnerAuthority` explicitly carries the authenticated session's absolute deadline.
+Every portrait expires at the earlier of 24 hours after creation or that deadline.
+Processing that finishes after authority expiry cannot retain an inaccessible
+record. Staggered-upload tests exercise creation one second before expiry,
+publication/revocation while live, expiry of session and public image together,
+and authority expiring during processing. UI/README disclose shorter late-session
+retention. No session-lifetime extension or persistent credentials were introduced.
+
+## Admission before upload allocation
+
+The service admits an operation before invoking its body loader. It validates
+options first, reserves one of two slots for the complete upload/processing
+lifetime, and releases the slot in `finally`. Request cancellation cancels the body
+reader, observes cleanup, and prevents committing a result. Route tests launch six
+incomplete streams, prove only the first two are read, reject the rest with 503,
+prove invalid consent does not read a body, and verify slot reuse after cancellation
+and repeated reader errors.
+
+## Final verification
+
+`npm run check` passed on 2026-10-02 after all source changes: Prettier, ESLint,
+strict TypeScript, 18 domain/route tests, and production build using Next 16.3.8 and
+Sharp 0.35.5. `npm audit --omit=dev --audit-level=high` found zero vulnerabilities.
+Real-browser and listening-server evidence remain unavailable; route tests execute
+actual route handlers in process. Independent re-review is pending.
+
+Memory-only retention, reload loss of controls, uncertain completion of an upload
+cancelled immediately after server commit, local-only links, and no durable storage
+or hosted inference remain deliberate, documented prototype limitations.
diff --git a/eslint.config.mjs b/eslint.config.mjs
new file mode 100644
index 0000000..c87878a
--- /dev/null
+++ b/eslint.config.mjs
@@ -0,0 +1,19 @@
+import { defineConfig, globalIgnores } from "eslint/config";
+import js from "@eslint/js";
+import ts from "typescript-eslint";
+import hooks from "eslint-plugin-react-hooks";
+import next from "@next/eslint-plugin-next";
+export default defineConfig([
+ globalIgnores([".next/**", "next-env.d.ts"]),
+ {
+ files: ["**/*.ts", "**/*.tsx"],
+ extends: [js.configs.recommended, ...ts.configs.recommended],
+ plugins: { "react-hooks": hooks, "@next/next": next },
+ rules: {
+ ...hooks.configs.recommended.rules,
+ ...next.configs.recommended.rules,
+ // Cookie-protected resources and browser blob previews bypass image optimization.
+ "@next/next/no-img-element": "off",
+ },
+ },
+]);
diff --git a/lib/camera.ts b/lib/camera.ts
new file mode 100644
index 0000000..d2acab7
--- /dev/null
+++ b/lib/camera.ts
@@ -0,0 +1,21 @@
+/** Owns pending permission requests as well as live tracks. */
+export class CameraController {
+ private generation = 0;
+ private stream: MediaStream | null = null;
+ async open(getMedia: () => Promise) {
+ this.stop();
+ const generation = this.generation;
+ const stream = await getMedia();
+ if (generation !== this.generation) {
+ stream.getTracks().forEach((t) => t.stop());
+ return null;
+ }
+ this.stream = stream;
+ return stream;
+ }
+ stop() {
+ this.generation++;
+ this.stream?.getTracks().forEach((t) => t.stop());
+ this.stream = null;
+ }
+}
diff --git a/lib/contracts.ts b/lib/contracts.ts
new file mode 100644
index 0000000..21ec727
--- /dev/null
+++ b/lib/contracts.ts
@@ -0,0 +1,72 @@
+export const MAX_UPLOAD_BYTES = 10 * 1024 * 1024;
+export const MAX_PIXELS = 40_000_000;
+export const RETENTION_MS = 24 * 60 * 60 * 1000;
+export const MAX_RECORDS = 12;
+export const MAX_ACTIVE = 2;
+export const WIDTH = 576;
+export const HEIGHT = 720;
+export class AppError extends Error {
+ constructor(
+ public readonly status: number,
+ public readonly code:
+ "invalid" | "unsupported" | "unavailable" | "not_found" | "cancelled",
+ message: string,
+ ) {
+ super(message);
+ }
+}
+export type Options = { consent: true; name: string; mark: boolean };
+export function decodeOptions(value: unknown): Options {
+ if (!value || typeof value !== "object" || Array.isArray(value))
+ throw new AppError(400, "invalid", "Invalid portrait options.");
+ const v = value as Record;
+ if (
+ Object.keys(v).some((k) => !["consent", "name", "mark"].includes(k)) ||
+ v.consent !== true ||
+ typeof v.name !== "string" ||
+ v.name.length > 60 ||
+ [...v.name].some(
+ (character) =>
+ character.charCodeAt(0) < 32 || character.charCodeAt(0) === 127,
+ ) ||
+ typeof v.mark !== "boolean"
+ )
+ throw new AppError(
+ 400,
+ "invalid",
+ "Consent is required. Use a name of up to 60 characters.",
+ );
+ return { consent: true, name: v.name.trim(), mark: v.mark };
+}
+export function checkCancelled(signal?: AbortSignal) {
+ if (signal?.aborted)
+ throw new AppError(409, "cancelled", "Processing was cancelled.");
+}
+export function decodeResult(value: unknown): {
+ id: string;
+ expiresAt: string;
+} {
+ if (
+ !value ||
+ typeof value !== "object" ||
+ !("id" in value) ||
+ typeof value.id !== "string" ||
+ !/^[a-f0-9]{32}$/.test(value.id) ||
+ !("expiresAt" in value) ||
+ typeof value.expiresAt !== "string" ||
+ !Number.isFinite(Date.parse(value.expiresAt))
+ )
+ throw new Error("The server returned an invalid portrait result.");
+ return { id: value.id, expiresAt: value.expiresAt };
+}
+export function decodePublication(value: unknown): { token: string } {
+ if (
+ !value ||
+ typeof value !== "object" ||
+ !("token" in value) ||
+ typeof value.token !== "string" ||
+ !/^[a-f0-9]{48}$/.test(value.token)
+ )
+ throw new Error("The server returned an invalid gallery link.");
+ return { token: value.token };
+}
diff --git a/lib/http.ts b/lib/http.ts
new file mode 100644
index 0000000..516df96
--- /dev/null
+++ b/lib/http.ts
@@ -0,0 +1,102 @@
+import { NextRequest, NextResponse } from "next/server";
+import { AppError, MAX_UPLOAD_BYTES, checkCancelled } from "./contracts";
+import { state } from "./service";
+export const privateHeaders = {
+ "Cache-Control": "no-store, max-age=0",
+ "X-Content-Type-Options": "nosniff",
+ "Referrer-Policy": "no-referrer",
+ "X-Robots-Tag": "noindex, nofollow, noarchive",
+};
+export function localOnly(request: Request) {
+ const host = new URL(request.url).hostname;
+ if (!["localhost", "127.0.0.1", "[::1]"].includes(host))
+ throw new AppError(
+ 503,
+ "unavailable",
+ "This prototype is local-only. Production hosting is not enabled.",
+ );
+}
+export function mutation(request: Request) {
+ localOnly(request);
+ if (request.headers.get("origin") !== new URL(request.url).origin)
+ throw new AppError(403, "invalid", "Use the studio on the same origin.");
+}
+export function owner(request: NextRequest) {
+ localOnly(request);
+ return state.sessions.require(
+ request.cookies.get("commonlight_session")?.value,
+ );
+}
+export function json(value: unknown, status = 200) {
+ return NextResponse.json(value, { status, headers: privateHeaders });
+}
+export function failure(error: unknown) {
+ return error instanceof AppError
+ ? json({ code: error.code, error: error.message }, error.status)
+ : json(
+ {
+ code: "unavailable",
+ error: "The operation could not finish. Please try again.",
+ },
+ 500,
+ );
+}
+export function jpeg(buffer: Buffer) {
+ return new Response(new Uint8Array(buffer), {
+ headers: {
+ ...privateHeaders,
+ "Content-Type": "image/jpeg",
+ "Content-Disposition": 'inline; filename="commonlight.jpg"',
+ },
+ });
+}
+export function originalDownload(
+ buffer: Buffer,
+ format: "jpeg" | "png" | "webp",
+) {
+ const extension = format === "jpeg" ? "jpg" : format;
+ return new Response(new Uint8Array(buffer), {
+ headers: {
+ ...privateHeaders,
+ "Content-Type": `image/${format}`,
+ "Content-Disposition": `attachment; filename="commonlight-original.${extension}"`,
+ },
+ });
+}
+export async function boundedBody(request: Request, limit = MAX_UPLOAD_BYTES) {
+ if (Number(request.headers.get("content-length")) > limit)
+ throw new AppError(413, "invalid", "The upload is too large.");
+ if (!request.body)
+ throw new AppError(400, "invalid", "An image is required.");
+ checkCancelled(request.signal);
+ const reader = request.body.getReader();
+ let cancellation: Promise | undefined;
+ const onAbort = () => {
+ // Retain cleanup ownership until the stream acknowledges cancellation.
+ cancellation = reader.cancel().then(
+ () => undefined,
+ () => undefined,
+ );
+ };
+ request.signal.addEventListener("abort", onAbort, { once: true });
+ const chunks: Uint8Array[] = [];
+ let size = 0;
+ try {
+ while (true) {
+ const { done, value } = await reader.read();
+ checkCancelled(request.signal);
+ if (done) break;
+ size += value.byteLength;
+ if (size > limit) {
+ await reader.cancel();
+ throw new AppError(413, "invalid", "The upload is too large.");
+ }
+ chunks.push(value);
+ }
+ } finally {
+ request.signal.removeEventListener("abort", onAbort);
+ await cancellation;
+ reader.releaseLock();
+ }
+ return Buffer.concat(chunks);
+}
diff --git a/lib/processor.ts b/lib/processor.ts
new file mode 100644
index 0000000..3c351a3
--- /dev/null
+++ b/lib/processor.ts
@@ -0,0 +1,116 @@
+import sharp from "sharp";
+import {
+ AppError,
+ MAX_PIXELS,
+ MAX_UPLOAD_BYTES,
+ WIDTH,
+ HEIGHT,
+ checkCancelled,
+ type Options,
+} from "./contracts";
+export type OriginalFormat = "jpeg" | "png" | "webp";
+export type PortraitImages = {
+ original: Buffer;
+ originalFormat: OriginalFormat;
+ preview: Buffer;
+ processed: Buffer;
+};
+export interface PortraitProcessor {
+ process(
+ input: Buffer,
+ options: Options,
+ signal?: AbortSignal,
+ ): Promise;
+}
+const escapeXml = (text: string) =>
+ text.replace(
+ /[<>&'"]/g,
+ (c) =>
+ ({
+ "<": "<",
+ ">": ">",
+ "&": "&",
+ "'": "'",
+ '"': """,
+ })[c]!,
+ );
+export class DeterministicProcessor implements PortraitProcessor {
+ async process(input: Buffer, options: Options, signal?: AbortSignal) {
+ checkCancelled(signal);
+ if (!input.length || input.length > MAX_UPLOAD_BYTES)
+ throw new AppError(413, "invalid", "Choose an image up to 10 MB.");
+ const jpeg = input[0] === 0xff && input[1] === 0xd8 && input[2] === 0xff;
+ const png = input
+ .subarray(0, 8)
+ .equals(Buffer.from([137, 80, 78, 71, 13, 10, 26, 10]));
+ const webp =
+ input.toString("ascii", 0, 4) === "RIFF" &&
+ input.toString("ascii", 8, 12) === "WEBP";
+ if (!jpeg && !png && !webp)
+ throw new AppError(
+ 415,
+ "unsupported",
+ "Choose a still JPEG, PNG or WebP image.",
+ );
+ try {
+ const image = sharp(input, {
+ limitInputPixels: MAX_PIXELS,
+ failOn: "warning",
+ });
+ const metadata = await image.metadata();
+ if (
+ !["jpeg", "png", "webp"].includes(metadata.format ?? "") ||
+ (metadata.pages ?? 1) !== 1
+ )
+ throw new AppError(
+ 415,
+ "unsupported",
+ "Choose a still JPEG, PNG or WebP image.",
+ );
+ if (
+ !metadata.width ||
+ !metadata.height ||
+ metadata.width < 100 ||
+ metadata.height < 100
+ )
+ throw new AppError(
+ 400,
+ "invalid",
+ "Choose an image at least 100 pixels on each side.",
+ );
+ // Decode/re-encode deliberately strips EXIF, GPS, XMP and embedded profiles.
+ const preview = await image
+ .rotate()
+ .flatten({ background: "#f4f4eb" })
+ .toColourspace("srgb")
+ .jpeg({ quality: 95 })
+ .toBuffer();
+ checkCancelled(signal);
+ let pipeline = sharp(preview)
+ .resize(WIDTH, HEIGHT, { fit: "cover", position: "centre" })
+ .modulate({ brightness: 1.035, saturation: 0.96 });
+ if (options.name || options.mark) {
+ const overlay = `${escapeXml(options.name)} ${options.mark ? "BC + AI" : ""} `;
+ pipeline = pipeline.composite([{ input: Buffer.from(overlay) }]);
+ }
+ const processed = await pipeline
+ .toColourspace("srgb")
+ .jpeg({ quality: 90, chromaSubsampling: "4:4:4" })
+ .toBuffer();
+ checkCancelled(signal);
+ return {
+ original: Buffer.from(input),
+ originalFormat: metadata.format as OriginalFormat,
+ preview,
+ processed,
+ };
+ } catch (error) {
+ if (error instanceof AppError) throw error;
+ throw new AppError(
+ 400,
+ "invalid",
+ "This image could not be decoded safely. Try another JPEG, PNG or WebP.",
+ );
+ }
+ }
+}
diff --git a/lib/service.ts b/lib/service.ts
new file mode 100644
index 0000000..fbff3e4
--- /dev/null
+++ b/lib/service.ts
@@ -0,0 +1,85 @@
+import { randomBytes } from "node:crypto";
+import {
+ AppError,
+ MAX_ACTIVE,
+ MAX_RECORDS,
+ RETENTION_MS,
+ checkCancelled,
+ decodeOptions,
+} from "./contracts";
+import { DeterministicProcessor, type PortraitProcessor } from "./processor";
+import {
+ MemoryStore,
+ Sessions,
+ type PortraitStore,
+ type OwnerAuthority,
+} from "./store";
+export class PortraitService {
+ private active = 0;
+ constructor(
+ readonly store: PortraitStore = new MemoryStore(),
+ private processor: PortraitProcessor = new DeterministicProcessor(),
+ private now = Date.now,
+ ) {}
+ async create(
+ input: Buffer | (() => Promise),
+ rawOptions: unknown,
+ owner: OwnerAuthority,
+ signal?: AbortSignal,
+ ) {
+ const options = decodeOptions(rawOptions);
+ checkCancelled(signal);
+ if (
+ this.active >= MAX_ACTIVE ||
+ this.store.count() + this.active >= MAX_RECORDS
+ )
+ throw new AppError(
+ 503,
+ "unavailable",
+ "The local studio is busy. Try again shortly.",
+ );
+ if (owner.expiresAt <= this.now())
+ throw new AppError(
+ 401,
+ "unavailable",
+ "Your private session expired. Reload to start again.",
+ );
+ this.active++;
+ try {
+ const bytes = typeof input === "function" ? await input() : input;
+ checkCancelled(signal);
+ const images = await this.processor.process(bytes, options, signal);
+ checkCancelled(signal);
+ const id = randomBytes(16).toString("hex");
+ const expiresAt = Math.min(this.now() + RETENTION_MS, owner.expiresAt);
+ if (expiresAt <= this.now())
+ throw new AppError(
+ 401,
+ "unavailable",
+ "Your private session expired during processing.",
+ );
+ this.store.put({ id, owner: owner.token, ...images, expiresAt });
+ return { id, expiresAt: new Date(expiresAt).toISOString() };
+ } finally {
+ this.active--;
+ }
+ }
+ publish(id: string, owner: string, consent: unknown) {
+ if (consent !== true)
+ throw new AppError(
+ 400,
+ "invalid",
+ "The subject must explicitly consent to sharing this portrait by link.",
+ );
+ return { token: this.store.publish(id, owner) };
+ }
+}
+// Process-global lifetime survives route module loading in the local Next server.
+// This adapter is deliberately unsuitable for multiple workers or durable hosting.
+const globalState = globalThis as typeof globalThis & {
+ commonlight?: { service: PortraitService; sessions: Sessions };
+};
+export const state = (globalState.commonlight ??= {
+ service: new PortraitService(),
+ sessions: new Sessions(),
+});
diff --git a/lib/store.ts b/lib/store.ts
new file mode 100644
index 0000000..72e14ab
--- /dev/null
+++ b/lib/store.ts
@@ -0,0 +1,114 @@
+import { randomBytes } from "node:crypto";
+import { AppError, RETENTION_MS, MAX_RECORDS } from "./contracts";
+import type { PortraitImages } from "./processor";
+export type OwnerAuthority = { token: string; expiresAt: number };
+export type Portrait = PortraitImages & {
+ id: string;
+ owner: string;
+ expiresAt: number;
+ publicToken?: string;
+};
+export interface PortraitStore {
+ count(): number;
+ put(portrait: Portrait): void;
+ owned(id: string, owner: string): Portrait;
+ published(token: string): Portrait;
+ publish(id: string, owner: string): string;
+ revoke(id: string, owner: string): void;
+ delete(id: string, owner: string): void;
+}
+export class MemoryStore implements PortraitStore {
+ private readonly records = new Map();
+ private readonly timers = new Map>();
+ constructor(private readonly now = Date.now) {}
+ private remove(id: string) {
+ this.records.delete(id);
+ clearTimeout(this.timers.get(id));
+ this.timers.delete(id);
+ }
+ private sweep() {
+ for (const p of this.records.values())
+ if (p.expiresAt <= this.now()) this.remove(p.id);
+ }
+ count() {
+ this.sweep();
+ return this.records.size;
+ }
+ put(portrait: Portrait) {
+ if (this.count() >= MAX_RECORDS)
+ throw new AppError(
+ 503,
+ "unavailable",
+ "The local studio is full. Delete an earlier portrait and try again.",
+ );
+ this.records.set(portrait.id, portrait);
+ const timer = setTimeout(
+ () => this.remove(portrait.id),
+ Math.max(0, portrait.expiresAt - this.now()),
+ );
+ timer.unref();
+ this.timers.set(portrait.id, timer);
+ }
+ owned(id: string, owner: string) {
+ this.sweep();
+ const p = this.records.get(id);
+ if (!p || p.owner !== owner)
+ throw new AppError(404, "not_found", "Portrait unavailable or expired.");
+ return p;
+ }
+ published(token: string) {
+ this.sweep();
+ const p = [...this.records.values()].find((p) => p.publicToken === token);
+ if (!p)
+ throw new AppError(
+ 404,
+ "not_found",
+ "This portrait is private, expired or no longer shared.",
+ );
+ return p;
+ }
+ publish(id: string, owner: string) {
+ const p = this.owned(id, owner);
+ return (p.publicToken ??= randomBytes(24).toString("hex"));
+ }
+ revoke(id: string, owner: string) {
+ delete this.owned(id, owner).publicToken;
+ }
+ delete(id: string, owner: string) {
+ this.owned(id, owner);
+ this.remove(id);
+ }
+ dispose() {
+ for (const id of this.records.keys()) this.remove(id);
+ }
+}
+export class Sessions {
+ private readonly sessions = new Map();
+ constructor(private readonly now = Date.now) {}
+ create() {
+ for (const [id, until] of this.sessions)
+ if (until <= this.now()) this.sessions.delete(id);
+ if (this.sessions.size >= 64)
+ throw new AppError(
+ 503,
+ "unavailable",
+ "Session capacity reached. Try again later.",
+ );
+ const token = randomBytes(32).toString("hex");
+ this.sessions.set(token, this.now() + RETENTION_MS);
+ return token;
+ }
+ expiresAt(token: string) {
+ this.require(token);
+ return this.sessions.get(token)!;
+ }
+ require(token?: string) {
+ if (!token || (this.sessions.get(token) ?? 0) <= this.now())
+ throw new AppError(
+ 401,
+ "unavailable",
+ "Your private session expired. Reload to start again.",
+ );
+ return token;
+ }
+}
diff --git a/next-env.d.ts b/next-env.d.ts
new file mode 100644
index 0000000..ce4e94a
--- /dev/null
+++ b/next-env.d.ts
@@ -0,0 +1,7 @@
+///
+///
+import "./.next/types/routes.d.ts";
+import "./.next/types/root-params.d.ts";
+
+// NOTE: This file should not be edited
+// see https://nextjs.org/docs/app/api-reference/config/typescript for more information.
diff --git a/next.config.ts b/next.config.ts
new file mode 100644
index 0000000..bbdaada
--- /dev/null
+++ b/next.config.ts
@@ -0,0 +1,23 @@
+import type { NextConfig } from "next";
+const config: NextConfig = {
+ poweredByHeader: false,
+ async headers() {
+ return [
+ {
+ source: "/:path*",
+ headers: [
+ { key: "X-Content-Type-Options", value: "nosniff" },
+ { key: "Referrer-Policy", value: "no-referrer" },
+ { key: "X-Frame-Options", value: "DENY" },
+ {
+ key: "Permissions-Policy",
+ value: "camera=(self), microphone=(), geolocation=()",
+ },
+ { key: "X-Robots-Tag", value: "noindex, nofollow, noarchive" },
+ { key: "Cache-Control", value: "no-store" },
+ ],
+ },
+ ];
+ },
+};
+export default config;
diff --git a/package-lock.json b/package-lock.json
new file mode 100644
index 0000000..db40fff
--- /dev/null
+++ b/package-lock.json
@@ -0,0 +1,3657 @@
+{
+ "name": "commonlight",
+ "version": "0.1.0",
+ "lockfileVersion": 3,
+ "requires": true,
+ "packages": {
+ "": {
+ "name": "commonlight",
+ "version": "0.1.0",
+ "dependencies": {
+ "next": "^16.0.0",
+ "react": "^19.2.0",
+ "react-dom": "^19.2.0",
+ "sharp": "^0.35.5"
+ },
+ "devDependencies": {
+ "@eslint/js": "^10.0.1",
+ "@next/eslint-plugin-next": "^16.3.8",
+ "@types/node": "^22.0.0",
+ "@types/react": "^19.2.0",
+ "@types/react-dom": "^19.2.0",
+ "eslint": "^10.12.0",
+ "eslint-plugin-react-hooks": "^7.1.1",
+ "prettier": "^3.9.9",
+ "tsx": "^4.20.0",
+ "typescript": "^5.9.3",
+ "typescript-eslint": "^8.71.0"
+ },
+ "engines": {
+ "node": ">=22.13"
+ }
+ },
+ "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/core/node_modules/semver": {
+ "version": "6.3.1",
+ "resolved": "https://registry.npmjs.org/semver/-/semver-6.3.1.tgz",
+ "integrity": "sha512-BR7VvDCVHO+q2xBEWskxS6DJE1qRnb7DxzUrogb71CWoSficBxYsiAGd+Kl0mmq/MprG9yArRkyrQxTO6XjMzA==",
+ "dev": true,
+ "license": "ISC",
+ "bin": {
+ "semver": "bin/semver.js"
+ }
+ },
+ "node_modules/@babel/generator": {
+ "version": "7.29.8",
+ "resolved": "https://registry.npmjs.org/@babel/generator/-/generator-7.29.8.tgz",
+ "integrity": "sha512-gZbepsdh3WDtgZKWL+vTPh71LSBrm/Y4/QDZBVCcYfmeTEEuoOYwlSy+G1StfJg+/Zy550u/3TATbm7qDbbMtg==",
+ "dev": true,
+ "license": "MIT",
+ "dependencies": {
+ "@babel/parser": "^7.29.8",
+ "@babel/types": "^7.29.8",
+ "@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-compilation-targets/node_modules/semver": {
+ "version": "6.3.1",
+ "resolved": "https://registry.npmjs.org/semver/-/semver-6.3.1.tgz",
+ "integrity": "sha512-BR7VvDCVHO+q2xBEWskxS6DJE1qRnb7DxzUrogb71CWoSficBxYsiAGd+Kl0mmq/MprG9yArRkyrQxTO6XjMzA==",
+ "dev": true,
+ "license": "ISC",
+ "bin": {
+ "semver": "bin/semver.js"
+ }
+ },
+ "node_modules/@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-string-parser": {
+ "version": "7.29.7",
+ "resolved": "https://registry.npmjs.org/@babel/helper-string-parser/-/helper-string-parser-7.29.7.tgz",
+ "integrity": "sha512-Pb5ijPrZ89GDH8223L4UP8i6QApWxs04RbPQJTeWDV0/keR2E36MeKnyr6LYmUUvqRRI+Iv87SuF1W6ErINzYw==",
+ "dev": true,
+ "license": "MIT",
+ "engines": {
+ "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.7",
+ "resolved": "https://registry.npmjs.org/@babel/helpers/-/helpers-7.29.7.tgz",
+ "integrity": "sha512-1k2lAGRMfHTcwuNYcCNUmaUffmQv8KWMfh2iJUUeRlwlwH4FdNG7mfPI10NPfLHJFThE4Tyr4mv7kTNZOiPuBg==",
+ "dev": true,
+ "license": "MIT",
+ "dependencies": {
+ "@babel/template": "^7.29.7",
+ "@babel/types": "^7.29.7"
+ },
+ "engines": {
+ "node": ">=6.9.0"
+ }
+ },
+ "node_modules/@babel/parser": {
+ "version": "7.29.9",
+ "resolved": "https://registry.npmjs.org/@babel/parser/-/parser-7.29.9.tgz",
+ "integrity": "sha512-CjXrNHTnvqBVqHgdBysY3vk2T8tpJHb5/RMeHJBTyVa9xgugCB0CJTx/3oO8RV2QRQP391RWpB7D6hLjm8V9uA==",
+ "dev": true,
+ "license": "MIT",
+ "dependencies": {
+ "@babel/types": "^7.29.8"
+ },
+ "bin": {
+ "parser": "bin/babel-parser.js"
+ },
+ "engines": {
+ "node": ">=6.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.8",
+ "resolved": "https://registry.npmjs.org/@babel/traverse/-/traverse-7.29.8.tgz",
+ "integrity": "sha512-I5z7H3bf/41ktsNVLtpN0wAa336HkqIHQ5BuPLEhTkt1jVSyZpeNKIzTgEWmlxjdg81R0IgUCcaE+Ok3NvrfZg==",
+ "dev": true,
+ "license": "MIT",
+ "dependencies": {
+ "@babel/code-frame": "^7.29.7",
+ "@babel/generator": "^7.29.8",
+ "@babel/helper-globals": "^7.29.7",
+ "@babel/parser": "^7.29.8",
+ "@babel/template": "^7.29.7",
+ "@babel/types": "^7.29.8",
+ "debug": "^4.3.1"
+ },
+ "engines": {
+ "node": ">=6.9.0"
+ }
+ },
+ "node_modules/@babel/types": {
+ "version": "7.29.8",
+ "resolved": "https://registry.npmjs.org/@babel/types/-/types-7.29.8.tgz",
+ "integrity": "sha512-Vj1jF3cPfxg7OAfoI7QnVKLoILlm2JF9pnVHrX8qx7AHMiYWT+NDAA7jChlNgRS4WTLc/fD1lXLmPixluj+3Gg==",
+ "dev": true,
+ "license": "MIT",
+ "dependencies": {
+ "@babel/helper-string-parser": "^7.29.7",
+ "@babel/helper-validator-identifier": "^7.29.7"
+ },
+ "engines": {
+ "node": ">=6.9.0"
+ }
+ },
+ "node_modules/@cacheable/memory": {
+ "version": "2.2.0",
+ "resolved": "https://registry.npmjs.org/@cacheable/memory/-/memory-2.2.0.tgz",
+ "integrity": "sha512-CTLKqLItRCEixEAewD3/j9DB3/o96gpTPD4eJ1v+DGOlxZRZncRQkGYqqnAGCscYd6RNeXfGeiuCphsPtqyIfQ==",
+ "dev": true,
+ "license": "MIT",
+ "dependencies": {
+ "@cacheable/utils": "^2.5.0",
+ "@keyv/bigmap": "^1.3.1",
+ "hookified": "^1.15.1",
+ "keyv": "^5.6.0"
+ }
+ },
+ "node_modules/@cacheable/utils": {
+ "version": "2.5.0",
+ "resolved": "https://registry.npmjs.org/@cacheable/utils/-/utils-2.5.0.tgz",
+ "integrity": "sha512-buipgOVDkkPXNR5+xBpDw7Zk2n1EvU7qBJCNUcL7rhQ//kfpOXPAvQ511Os0vpLYJ1pZnvudNytkQt2hst3wqA==",
+ "dev": true,
+ "license": "MIT",
+ "dependencies": {
+ "hashery": "^1.5.1",
+ "keyv": "^5.6.0"
+ }
+ },
+ "node_modules/@emnapi/runtime": {
+ "version": "1.11.3",
+ "resolved": "https://registry.npmjs.org/@emnapi/runtime/-/runtime-1.11.3.tgz",
+ "integrity": "sha512-Xz4Tpyki7XyrpbUK1jR1AhdAdaXyhhY4lZ3neLodmhpuWfy2PAQN5B46sAiU4liOXGLkHypn/qU+jvfWSCYYLA==",
+ "license": "MIT",
+ "optional": true,
+ "dependencies": {
+ "tslib": "^2.4.0"
+ }
+ },
+ "node_modules/@esbuild/aix-ppc64": {
+ "version": "0.28.2",
+ "resolved": "https://registry.npmjs.org/@esbuild/aix-ppc64/-/aix-ppc64-0.28.2.tgz",
+ "integrity": "sha512-XExcO+dvLKvVtNTibSTBej1NCAbaGhWn9Ww1ZPx80qsahhPFe/8jgWP0IchNe0F3HwkU7n8ejhH8bjonqht8mQ==",
+ "cpu": [
+ "ppc64"
+ ],
+ "dev": true,
+ "license": "MIT",
+ "optional": true,
+ "os": [
+ "aix"
+ ],
+ "engines": {
+ "node": ">=18"
+ }
+ },
+ "node_modules/@esbuild/android-arm": {
+ "version": "0.28.2",
+ "resolved": "https://registry.npmjs.org/@esbuild/android-arm/-/android-arm-0.28.2.tgz",
+ "integrity": "sha512-kXXoiPVVGQcnIYGOeaovwOURpniDBpSq4A03qkQ+BMQqtGG6HYap3xne9C1O1yo4TR3qxlCX5IqqmX6fFo2Lqg==",
+ "cpu": [
+ "arm"
+ ],
+ "dev": true,
+ "license": "MIT",
+ "optional": true,
+ "os": [
+ "android"
+ ],
+ "engines": {
+ "node": ">=18"
+ }
+ },
+ "node_modules/@esbuild/android-arm64": {
+ "version": "0.28.2",
+ "resolved": "https://registry.npmjs.org/@esbuild/android-arm64/-/android-arm64-0.28.2.tgz",
+ "integrity": "sha512-5YfKeeI8qWfBZIX+u2xZC3Zlb3Os/gLS2sbEKM+I4ZOcsWmHS2WLysCcQZDAFRslDUU5Oiq44gf6PYN1vGwG5A==",
+ "cpu": [
+ "arm64"
+ ],
+ "dev": true,
+ "license": "MIT",
+ "optional": true,
+ "os": [
+ "android"
+ ],
+ "engines": {
+ "node": ">=18"
+ }
+ },
+ "node_modules/@esbuild/android-x64": {
+ "version": "0.28.2",
+ "resolved": "https://registry.npmjs.org/@esbuild/android-x64/-/android-x64-0.28.2.tgz",
+ "integrity": "sha512-O387ite7SzUyCcy3JQX4P4bLtEA7bLLkx+esve5JHnyYfNTxcVpXZo9jhdB0lTKN44gztELTdU7nS8Nr16Fs1Q==",
+ "cpu": [
+ "x64"
+ ],
+ "dev": true,
+ "license": "MIT",
+ "optional": true,
+ "os": [
+ "android"
+ ],
+ "engines": {
+ "node": ">=18"
+ }
+ },
+ "node_modules/@esbuild/darwin-arm64": {
+ "version": "0.28.2",
+ "resolved": "https://registry.npmjs.org/@esbuild/darwin-arm64/-/darwin-arm64-0.28.2.tgz",
+ "integrity": "sha512-n4KqkOQrraxHJcgjM1RvwbigfQKIKJVpM7xp+KsxiyUSrRdIXnt73VhrPAx0fV44hgfmIVKjxMN9J1t5jySVkw==",
+ "cpu": [
+ "arm64"
+ ],
+ "dev": true,
+ "license": "MIT",
+ "optional": true,
+ "os": [
+ "darwin"
+ ],
+ "engines": {
+ "node": ">=18"
+ }
+ },
+ "node_modules/@esbuild/darwin-x64": {
+ "version": "0.28.2",
+ "resolved": "https://registry.npmjs.org/@esbuild/darwin-x64/-/darwin-x64-0.28.2.tgz",
+ "integrity": "sha512-uq6suIWYP37qzGddBKPw5QEQPi6HiLGsO7UmkpfyaYNQ3D+rN6w6WfwH+nuqcGXWvawGwxOEroO4YGnFh95azw==",
+ "cpu": [
+ "x64"
+ ],
+ "dev": true,
+ "license": "MIT",
+ "optional": true,
+ "os": [
+ "darwin"
+ ],
+ "engines": {
+ "node": ">=18"
+ }
+ },
+ "node_modules/@esbuild/freebsd-arm64": {
+ "version": "0.28.2",
+ "resolved": "https://registry.npmjs.org/@esbuild/freebsd-arm64/-/freebsd-arm64-0.28.2.tgz",
+ "integrity": "sha512-n+I0BTSRIoy+d6RPKnEVwql5UwBJolytvY4mAOIEJorKlqgPII8ix6slVVrfZ5Tnj7glIZvloylbB/EJPMWEXw==",
+ "cpu": [
+ "arm64"
+ ],
+ "dev": true,
+ "license": "MIT",
+ "optional": true,
+ "os": [
+ "freebsd"
+ ],
+ "engines": {
+ "node": ">=18"
+ }
+ },
+ "node_modules/@esbuild/freebsd-x64": {
+ "version": "0.28.2",
+ "resolved": "https://registry.npmjs.org/@esbuild/freebsd-x64/-/freebsd-x64-0.28.2.tgz",
+ "integrity": "sha512-78XJTJkvPs0kz2w61301PJjXl4g7q3JqiYMZ/M/yVI73EHBrCRTgkhu9oqG7vPqq+a/yadEW8aD+agKlk5xrmg==",
+ "cpu": [
+ "x64"
+ ],
+ "dev": true,
+ "license": "MIT",
+ "optional": true,
+ "os": [
+ "freebsd"
+ ],
+ "engines": {
+ "node": ">=18"
+ }
+ },
+ "node_modules/@esbuild/linux-arm": {
+ "version": "0.28.2",
+ "resolved": "https://registry.npmjs.org/@esbuild/linux-arm/-/linux-arm-0.28.2.tgz",
+ "integrity": "sha512-XlDnu2q5yoqems+xay6wSAcg9DDD7K9RLKZEBOMZm3ckNpJBvOX20tSfby8KfrrhINDyv9V2YVZKY/SpoGJI8w==",
+ "cpu": [
+ "arm"
+ ],
+ "dev": true,
+ "license": "MIT",
+ "optional": true,
+ "os": [
+ "linux"
+ ],
+ "engines": {
+ "node": ">=18"
+ }
+ },
+ "node_modules/@esbuild/linux-arm64": {
+ "version": "0.28.2",
+ "resolved": "https://registry.npmjs.org/@esbuild/linux-arm64/-/linux-arm64-0.28.2.tgz",
+ "integrity": "sha512-pW4AC0P3it8c7do9MVM4p51FzHzdM/TZrerurgRcHJ2WTa1VQ1CIq18xncfpBJw4ojkiZZrKW2yIBWBP92j6Ug==",
+ "cpu": [
+ "arm64"
+ ],
+ "dev": true,
+ "license": "MIT",
+ "optional": true,
+ "os": [
+ "linux"
+ ],
+ "engines": {
+ "node": ">=18"
+ }
+ },
+ "node_modules/@esbuild/linux-ia32": {
+ "version": "0.28.2",
+ "resolved": "https://registry.npmjs.org/@esbuild/linux-ia32/-/linux-ia32-0.28.2.tgz",
+ "integrity": "sha512-CYbnj78HsIeA+DhgUKgFCfvNsTHFhMMrinUrMZpDXJXKN8T3XViTZ/+wtHeVxEWY8ewSzTFN+nRmSwO2tZaLUQ==",
+ "cpu": [
+ "ia32"
+ ],
+ "dev": true,
+ "license": "MIT",
+ "optional": true,
+ "os": [
+ "linux"
+ ],
+ "engines": {
+ "node": ">=18"
+ }
+ },
+ "node_modules/@esbuild/linux-loong64": {
+ "version": "0.28.2",
+ "resolved": "https://registry.npmjs.org/@esbuild/linux-loong64/-/linux-loong64-0.28.2.tgz",
+ "integrity": "sha512-buwkd8nsph4R+ajRvw0qM5Hja/TXQow3ptzWO2EbG/cqcIkHloRrdlBtQlshyYGTNFvfkfJ5tpPLVkY4DtsPfQ==",
+ "cpu": [
+ "loong64"
+ ],
+ "dev": true,
+ "license": "MIT",
+ "optional": true,
+ "os": [
+ "linux"
+ ],
+ "engines": {
+ "node": ">=18"
+ }
+ },
+ "node_modules/@esbuild/linux-mips64el": {
+ "version": "0.28.2",
+ "resolved": "https://registry.npmjs.org/@esbuild/linux-mips64el/-/linux-mips64el-0.28.2.tgz",
+ "integrity": "sha512-ZVykbDyk7519VwiNb9Lcj9m8XM6v5V9uKPvrEMkkEedVewf+0itkhahp4HDpgERXhwLRpWFypsGbG/J8s0QjJA==",
+ "cpu": [
+ "mips64el"
+ ],
+ "dev": true,
+ "license": "MIT",
+ "optional": true,
+ "os": [
+ "linux"
+ ],
+ "engines": {
+ "node": ">=18"
+ }
+ },
+ "node_modules/@esbuild/linux-ppc64": {
+ "version": "0.28.2",
+ "resolved": "https://registry.npmjs.org/@esbuild/linux-ppc64/-/linux-ppc64-0.28.2.tgz",
+ "integrity": "sha512-CAXl+Dtd9UUuJd8pKKdwh6MLm3MUMiqMPmhZ3tTSXPqfyQ3vDl6R5hZdZ/kYojK4ofXtdfSv1tFq8XzWx3heNQ==",
+ "cpu": [
+ "ppc64"
+ ],
+ "dev": true,
+ "license": "MIT",
+ "optional": true,
+ "os": [
+ "linux"
+ ],
+ "engines": {
+ "node": ">=18"
+ }
+ },
+ "node_modules/@esbuild/linux-riscv64": {
+ "version": "0.28.2",
+ "resolved": "https://registry.npmjs.org/@esbuild/linux-riscv64/-/linux-riscv64-0.28.2.tgz",
+ "integrity": "sha512-GeXCej4IQtU1B+QlDV8W/RRvbzI3O/Stss+/bCXv4lZls5WGRtu2a+3JkA3i4qIUlMXpcHebWpF8AkJhATowuA==",
+ "cpu": [
+ "riscv64"
+ ],
+ "dev": true,
+ "license": "MIT",
+ "optional": true,
+ "os": [
+ "linux"
+ ],
+ "engines": {
+ "node": ">=18"
+ }
+ },
+ "node_modules/@esbuild/linux-s390x": {
+ "version": "0.28.2",
+ "resolved": "https://registry.npmjs.org/@esbuild/linux-s390x/-/linux-s390x-0.28.2.tgz",
+ "integrity": "sha512-3H1weTYZPxt/WOhByszQZybS9w5lKzUn1FDMsgEChbHWQwHYQQRfBxgCcZvPhjHfKyJjIievvMmEUawJrdY9Dg==",
+ "cpu": [
+ "s390x"
+ ],
+ "dev": true,
+ "license": "MIT",
+ "optional": true,
+ "os": [
+ "linux"
+ ],
+ "engines": {
+ "node": ">=18"
+ }
+ },
+ "node_modules/@esbuild/linux-x64": {
+ "version": "0.28.2",
+ "resolved": "https://registry.npmjs.org/@esbuild/linux-x64/-/linux-x64-0.28.2.tgz",
+ "integrity": "sha512-4xTZr1FUmSoQW4XIWmit3tzQrUTZM+N3P0XV8xROKYF50XfI7xeO90+1bZvNwxIufQ9hDQVRJH5YhgPVF8A/HQ==",
+ "cpu": [
+ "x64"
+ ],
+ "dev": true,
+ "license": "MIT",
+ "optional": true,
+ "os": [
+ "linux"
+ ],
+ "engines": {
+ "node": ">=18"
+ }
+ },
+ "node_modules/@esbuild/netbsd-arm64": {
+ "version": "0.28.2",
+ "resolved": "https://registry.npmjs.org/@esbuild/netbsd-arm64/-/netbsd-arm64-0.28.2.tgz",
+ "integrity": "sha512-sSATRjPeDBg3pdgHoQfoYBob11Kk1FGa9lui5RIHZCoCkJa9QKlvl3/vKz2usCmYYjs7ymJR/2Nnsqe+Hjt5nw==",
+ "cpu": [
+ "arm64"
+ ],
+ "dev": true,
+ "license": "MIT",
+ "optional": true,
+ "os": [
+ "netbsd"
+ ],
+ "engines": {
+ "node": ">=18"
+ }
+ },
+ "node_modules/@esbuild/netbsd-x64": {
+ "version": "0.28.2",
+ "resolved": "https://registry.npmjs.org/@esbuild/netbsd-x64/-/netbsd-x64-0.28.2.tgz",
+ "integrity": "sha512-lqnzCV+mM0gIADaKihiCg6ifgfU2L3h5E33rNQBN1Y4MaVGnzryzmvvf7UHxprpQdE8hpqLolJ9Rl+SkIRDpyw==",
+ "cpu": [
+ "x64"
+ ],
+ "dev": true,
+ "license": "MIT",
+ "optional": true,
+ "os": [
+ "netbsd"
+ ],
+ "engines": {
+ "node": ">=18"
+ }
+ },
+ "node_modules/@esbuild/openbsd-arm64": {
+ "version": "0.28.2",
+ "resolved": "https://registry.npmjs.org/@esbuild/openbsd-arm64/-/openbsd-arm64-0.28.2.tgz",
+ "integrity": "sha512-AL2qJILH7lNjrDmCQDvdxMfAUIv8KMNZOvrwAQ8i8//ntL9FflhOyMJ8OZSMBb8/AWXe3/5v5S20y3zCoZWKoQ==",
+ "cpu": [
+ "arm64"
+ ],
+ "dev": true,
+ "license": "MIT",
+ "optional": true,
+ "os": [
+ "openbsd"
+ ],
+ "engines": {
+ "node": ">=18"
+ }
+ },
+ "node_modules/@esbuild/openbsd-x64": {
+ "version": "0.28.2",
+ "resolved": "https://registry.npmjs.org/@esbuild/openbsd-x64/-/openbsd-x64-0.28.2.tgz",
+ "integrity": "sha512-QtiuPytchRyC4rwUKhexJdQKvDuZ6hWloi3igqPQNUJCS1/v9EiO3UTOXR6A3FoMo4fnAKbWJdqaIwhOzh8qEw==",
+ "cpu": [
+ "x64"
+ ],
+ "dev": true,
+ "license": "MIT",
+ "optional": true,
+ "os": [
+ "openbsd"
+ ],
+ "engines": {
+ "node": ">=18"
+ }
+ },
+ "node_modules/@esbuild/openharmony-arm64": {
+ "version": "0.28.2",
+ "resolved": "https://registry.npmjs.org/@esbuild/openharmony-arm64/-/openharmony-arm64-0.28.2.tgz",
+ "integrity": "sha512-WkhYDmpTjLvGlScA1rwjRUmhl4k8oXR3cIbtqWmELgU/dFeHHlEllxDvdWcNJV9rbzCexB5vz8gtNewWLgCT7Q==",
+ "cpu": [
+ "arm64"
+ ],
+ "dev": true,
+ "license": "MIT",
+ "optional": true,
+ "os": [
+ "openharmony"
+ ],
+ "engines": {
+ "node": ">=18"
+ }
+ },
+ "node_modules/@esbuild/sunos-x64": {
+ "version": "0.28.2",
+ "resolved": "https://registry.npmjs.org/@esbuild/sunos-x64/-/sunos-x64-0.28.2.tgz",
+ "integrity": "sha512-GPMSkTOtMnv2U2F8gxe4Io6qmVs+YKyp832Etqqxr0hFngmXQ3rzwytelm3GIn7T4VviRUlf3sOgBOiTdvaf7g==",
+ "cpu": [
+ "x64"
+ ],
+ "dev": true,
+ "license": "MIT",
+ "optional": true,
+ "os": [
+ "sunos"
+ ],
+ "engines": {
+ "node": ">=18"
+ }
+ },
+ "node_modules/@esbuild/win32-arm64": {
+ "version": "0.28.2",
+ "resolved": "https://registry.npmjs.org/@esbuild/win32-arm64/-/win32-arm64-0.28.2.tgz",
+ "integrity": "sha512-PIhhEkE9uPBleRBrQEJpUn7MBnibZzbGzYWPmY3x+YoVg/95zbjB4CxPPOQ8l5tYYM4mMaCthF8/1DIfBQQyWQ==",
+ "cpu": [
+ "arm64"
+ ],
+ "dev": true,
+ "license": "MIT",
+ "optional": true,
+ "os": [
+ "win32"
+ ],
+ "engines": {
+ "node": ">=18"
+ }
+ },
+ "node_modules/@esbuild/win32-ia32": {
+ "version": "0.28.2",
+ "resolved": "https://registry.npmjs.org/@esbuild/win32-ia32/-/win32-ia32-0.28.2.tgz",
+ "integrity": "sha512-YmJbfTlvU7Sdn9BB+4PRES4oB6pxgS37MAONj+hBr/cpXS1aBPKXxNnDbu+QCWPj0o9dgyxeq79g6c5P8KeuYA==",
+ "cpu": [
+ "ia32"
+ ],
+ "dev": true,
+ "license": "MIT",
+ "optional": true,
+ "os": [
+ "win32"
+ ],
+ "engines": {
+ "node": ">=18"
+ }
+ },
+ "node_modules/@esbuild/win32-x64": {
+ "version": "0.28.2",
+ "resolved": "https://registry.npmjs.org/@esbuild/win32-x64/-/win32-x64-0.28.2.tgz",
+ "integrity": "sha512-5ebpxr3nWMzrL/rnUI755Jkuee0bHL/Gq0WTF9lvcpv73wAp5eu8MfBUgWK9bhWvZjj7yX8etf/8tI8Ney695g==",
+ "cpu": [
+ "x64"
+ ],
+ "dev": true,
+ "license": "MIT",
+ "optional": true,
+ "os": [
+ "win32"
+ ],
+ "engines": {
+ "node": ">=18"
+ }
+ },
+ "node_modules/@eslint-community/eslint-utils": {
+ "version": "4.10.1",
+ "resolved": "https://registry.npmjs.org/@eslint-community/eslint-utils/-/eslint-utils-4.10.1.tgz",
+ "integrity": "sha512-cuadcxVFE8sDK6iWJbs8Sn0av2Nrh2QSGQhVlBW9AaAHqHwjWsZHT8LJ4hFGPh7ASBV2deFdM7H/DPjulmh8rg==",
+ "dev": true,
+ "license": "MIT",
+ "dependencies": {
+ "eslint-visitor-keys": "^3.4.3"
+ },
+ "engines": {
+ "node": "^12.22.0 || ^14.17.0 || >=16.0.0"
+ },
+ "funding": {
+ "url": "https://opencollective.com/eslint"
+ },
+ "peerDependencies": {
+ "eslint": "^6.0.0 || ^7.0.0 || >=8.0.0"
+ }
+ },
+ "node_modules/@eslint-community/eslint-utils/node_modules/eslint-visitor-keys": {
+ "version": "3.4.3",
+ "resolved": "https://registry.npmjs.org/eslint-visitor-keys/-/eslint-visitor-keys-3.4.3.tgz",
+ "integrity": "sha512-wpc+LXeiyiisxPlEkUzU6svyS1frIO3Mgxj1fdy7Pm8Ygzguax2N3Fa/D/ag1WqbOprdI+uY6wMUl8/a2G+iag==",
+ "dev": true,
+ "license": "Apache-2.0",
+ "engines": {
+ "node": "^12.22.0 || ^14.17.0 || >=16.0.0"
+ },
+ "funding": {
+ "url": "https://opencollective.com/eslint"
+ }
+ },
+ "node_modules/@eslint-community/regexpp": {
+ "version": "4.12.2",
+ "resolved": "https://registry.npmjs.org/@eslint-community/regexpp/-/regexpp-4.12.2.tgz",
+ "integrity": "sha512-EriSTlt5OC9/7SXkRSCAhfSxxoSUgBm33OH+IkwbdpgoqsSsUg7y3uh+IICI/Qg4BBWr3U2i39RpmycbxMq4ew==",
+ "dev": true,
+ "license": "MIT",
+ "engines": {
+ "node": "^12.0.0 || ^14.0.0 || >=16.0.0"
+ }
+ },
+ "node_modules/@eslint/config-array": {
+ "version": "0.23.5",
+ "resolved": "https://registry.npmjs.org/@eslint/config-array/-/config-array-0.23.5.tgz",
+ "integrity": "sha512-Y3kKLvC1dvTOT+oGlqNQ1XLqK6D1HU2YXPc52NmAlJZbMMWDzGYXMiPRJ8TYD39muD/OTjlZmNJ4ib7dvSrMBA==",
+ "dev": true,
+ "license": "Apache-2.0",
+ "dependencies": {
+ "@eslint/object-schema": "^3.0.5",
+ "debug": "^4.3.1",
+ "minimatch": "^10.2.4"
+ },
+ "engines": {
+ "node": "^20.19.0 || ^22.13.0 || >=24"
+ }
+ },
+ "node_modules/@eslint/config-helpers": {
+ "version": "0.7.0",
+ "resolved": "https://registry.npmjs.org/@eslint/config-helpers/-/config-helpers-0.7.0.tgz",
+ "integrity": "sha512-DObd/KKUsU+FaFv4PLxSRenpXfQWmPXXP3pPZ6/K1PCrMu2vQpMDMuQe/BqYeoLcz8ro0bVDF1RxOJgfVEdhUw==",
+ "dev": true,
+ "license": "Apache-2.0",
+ "dependencies": {
+ "@eslint/core": "^1.2.1"
+ },
+ "engines": {
+ "node": "^20.19.0 || ^22.13.0 || >=24"
+ }
+ },
+ "node_modules/@eslint/core": {
+ "version": "1.2.1",
+ "resolved": "https://registry.npmjs.org/@eslint/core/-/core-1.2.1.tgz",
+ "integrity": "sha512-MwcE1P+AZ4C6DWlpin/OmOA54mmIZ/+xZuJiQd4SyB29oAJjN30UW9wkKNptW2ctp4cEsvhlLY/CsQ1uoHDloQ==",
+ "dev": true,
+ "license": "Apache-2.0",
+ "dependencies": {
+ "@types/json-schema": "^7.0.15"
+ },
+ "engines": {
+ "node": "^20.19.0 || ^22.13.0 || >=24"
+ }
+ },
+ "node_modules/@eslint/js": {
+ "version": "10.0.1",
+ "resolved": "https://registry.npmjs.org/@eslint/js/-/js-10.0.1.tgz",
+ "integrity": "sha512-zeR9k5pd4gxjZ0abRoIaxdc7I3nDktoXZk2qOv9gCNWx3mVwEn32VRhyLaRsDiJjTs0xq/T8mfPtyuXu7GWBcA==",
+ "dev": true,
+ "license": "MIT",
+ "engines": {
+ "node": "^20.19.0 || ^22.13.0 || >=24"
+ },
+ "funding": {
+ "url": "https://eslint.org/donate"
+ },
+ "peerDependencies": {
+ "eslint": "^10.0.0"
+ },
+ "peerDependenciesMeta": {
+ "eslint": {
+ "optional": true
+ }
+ }
+ },
+ "node_modules/@eslint/object-schema": {
+ "version": "3.0.5",
+ "resolved": "https://registry.npmjs.org/@eslint/object-schema/-/object-schema-3.0.5.tgz",
+ "integrity": "sha512-vqTaUEgxzm+YDSdElad6PiRoX4t8VGDjCtt05zn4nU810UIx/uNEV7/lZJ6KwFThKZOzOxzXy48da+No7HZaMw==",
+ "dev": true,
+ "license": "Apache-2.0",
+ "engines": {
+ "node": "^20.19.0 || ^22.13.0 || >=24"
+ }
+ },
+ "node_modules/@eslint/plugin-kit": {
+ "version": "0.7.3",
+ "resolved": "https://registry.npmjs.org/@eslint/plugin-kit/-/plugin-kit-0.7.3.tgz",
+ "integrity": "sha512-IkO+/KEUvwbVpiURZg+P7zF74z5Jxe0UgJxVni+RtoHQ6IZieXaO02kmadomap/q+l6bc/jdPGGqTjhuZnuz1Q==",
+ "dev": true,
+ "license": "Apache-2.0",
+ "dependencies": {
+ "@eslint/core": "^1.2.1",
+ "levn": "^0.4.1"
+ },
+ "engines": {
+ "node": "^20.19.0 || ^22.13.0 || >=24"
+ }
+ },
+ "node_modules/@humanfs/core": {
+ "version": "0.19.2",
+ "resolved": "https://registry.npmjs.org/@humanfs/core/-/core-0.19.2.tgz",
+ "integrity": "sha512-UhXNm+CFMWcbChXywFwkmhqjs3PRCmcSa/hfBgLIb7oQ5HNb1wS0icWsGtSAUNgefHeI+eBrA8I1fxmbHsGdvA==",
+ "dev": true,
+ "license": "Apache-2.0",
+ "dependencies": {
+ "@humanfs/types": "^0.15.0"
+ },
+ "engines": {
+ "node": ">=18.18.0"
+ }
+ },
+ "node_modules/@humanfs/node": {
+ "version": "0.16.8",
+ "resolved": "https://registry.npmjs.org/@humanfs/node/-/node-0.16.8.tgz",
+ "integrity": "sha512-gE1eQNZ3R++kTzFUpdGlpmy8kDZD/MLyHqDwqjkVQI0JMdI1D51sy1H958PNXYkM2rAac7e5/CnIKZrHtPh3BQ==",
+ "dev": true,
+ "license": "Apache-2.0",
+ "dependencies": {
+ "@humanfs/core": "^0.19.2",
+ "@humanfs/types": "^0.15.0",
+ "@humanwhocodes/retry": "^0.4.0"
+ },
+ "engines": {
+ "node": ">=18.18.0"
+ }
+ },
+ "node_modules/@humanfs/types": {
+ "version": "0.15.0",
+ "resolved": "https://registry.npmjs.org/@humanfs/types/-/types-0.15.0.tgz",
+ "integrity": "sha512-ZZ1w0aoQkwuUuC7Yf+7sdeaNfqQiiLcSRbfI08oAxqLtpXQr9AIVX7Ay7HLDuiLYAaFPu8oBYNq/QIi9URHJ3Q==",
+ "dev": true,
+ "license": "Apache-2.0",
+ "engines": {
+ "node": ">=18.18.0"
+ }
+ },
+ "node_modules/@humanwhocodes/module-importer": {
+ "version": "1.0.1",
+ "resolved": "https://registry.npmjs.org/@humanwhocodes/module-importer/-/module-importer-1.0.1.tgz",
+ "integrity": "sha512-bxveV4V8v5Yb4ncFTT3rPSgZBOpCkjfK0y4oVVVJwIuDVBRMDXrPyXRL988i5ap9m9bnyEEjWfm5WkBmtffLfA==",
+ "dev": true,
+ "license": "Apache-2.0",
+ "engines": {
+ "node": ">=12.22"
+ },
+ "funding": {
+ "type": "github",
+ "url": "https://github.com/sponsors/nzakas"
+ }
+ },
+ "node_modules/@humanwhocodes/retry": {
+ "version": "0.4.3",
+ "resolved": "https://registry.npmjs.org/@humanwhocodes/retry/-/retry-0.4.3.tgz",
+ "integrity": "sha512-bV0Tgo9K4hfPCek+aMAn81RppFKv2ySDQeMoSZuvTASywNTnVJCArCZE2FWqpvIatKu7VMRLWlR1EazvVhDyhQ==",
+ "dev": true,
+ "license": "Apache-2.0",
+ "engines": {
+ "node": ">=18.18"
+ },
+ "funding": {
+ "type": "github",
+ "url": "https://github.com/sponsors/nzakas"
+ }
+ },
+ "node_modules/@img/colour": {
+ "version": "1.1.0",
+ "resolved": "https://registry.npmjs.org/@img/colour/-/colour-1.1.0.tgz",
+ "integrity": "sha512-Td76q7j57o/tLVdgS746cYARfSyxk8iEfRxewL9h4OMzYhbW4TAcppl0mT4eyqXddh6L/jwoM75mo7ixa/pCeQ==",
+ "license": "MIT",
+ "engines": {
+ "node": ">=18"
+ }
+ },
+ "node_modules/@img/sharp-darwin-arm64": {
+ "version": "0.35.5",
+ "resolved": "https://registry.npmjs.org/@img/sharp-darwin-arm64/-/sharp-darwin-arm64-0.35.5.tgz",
+ "integrity": "sha512-QRUlFQ0WxvdWyqqG/WtI3iupfD5rBzmCHXSdPsY91sAtVtTo7Q4cb6zOccZ3gqEqkr0f1As1ehLqmEpDsRf+lg==",
+ "cpu": [
+ "arm64"
+ ],
+ "license": "Apache-2.0",
+ "optional": true,
+ "os": [
+ "darwin"
+ ],
+ "engines": {
+ "node": ">=20.9.0"
+ },
+ "funding": {
+ "url": "https://opencollective.com/libvips"
+ },
+ "optionalDependencies": {
+ "@img/sharp-libvips-darwin-arm64": "1.3.4"
+ }
+ },
+ "node_modules/@img/sharp-darwin-x64": {
+ "version": "0.35.5",
+ "resolved": "https://registry.npmjs.org/@img/sharp-darwin-x64/-/sharp-darwin-x64-0.35.5.tgz",
+ "integrity": "sha512-+BR255RhDlpygUpOc/Jdt1nT6DQ3XG/ERo5wbcdOf5Q320dKtPCKPLR1LJs9VGXRaMa8l1uUa0tkCNOXiAxZUw==",
+ "cpu": [
+ "x64"
+ ],
+ "license": "Apache-2.0",
+ "optional": true,
+ "os": [
+ "darwin"
+ ],
+ "engines": {
+ "node": ">=20.9.0"
+ },
+ "funding": {
+ "url": "https://opencollective.com/libvips"
+ },
+ "optionalDependencies": {
+ "@img/sharp-libvips-darwin-x64": "1.3.4"
+ }
+ },
+ "node_modules/@img/sharp-freebsd-wasm32": {
+ "version": "0.35.5",
+ "resolved": "https://registry.npmjs.org/@img/sharp-freebsd-wasm32/-/sharp-freebsd-wasm32-0.35.5.tgz",
+ "integrity": "sha512-Y/z91nEZ4uIBX5X3nfTovjU9lHNKFYbL2lpHCLVNmXQK03VIZvXBBt0KxbPGp2SdGSF+2mQU4e+hQaWOt86iAw==",
+ "license": "Apache-2.0",
+ "optional": true,
+ "os": [
+ "freebsd"
+ ],
+ "dependencies": {
+ "@img/sharp-wasm32": "0.35.5"
+ },
+ "engines": {
+ "node": ">=20.9.0"
+ },
+ "funding": {
+ "url": "https://opencollective.com/libvips"
+ }
+ },
+ "node_modules/@img/sharp-freebsd-wasm32/node_modules/@img/sharp-wasm32": {
+ "version": "0.35.5",
+ "resolved": "https://registry.npmjs.org/@img/sharp-wasm32/-/sharp-wasm32-0.35.5.tgz",
+ "integrity": "sha512-Ptsga1su4tQx+LLF1ECS9U6nz5kmrXKo6XVbtR48Ke3ZRxxgaWBu7IDtEe1quo8hiupwm6WFqxVlXaSf7IINGQ==",
+ "license": "Apache-2.0 AND LGPL-3.0-or-later AND MIT",
+ "optional": true,
+ "dependencies": {
+ "@emnapi/runtime": "^1.11.3"
+ },
+ "engines": {
+ "node": ">=20.9.0"
+ },
+ "funding": {
+ "url": "https://opencollective.com/libvips"
+ }
+ },
+ "node_modules/@img/sharp-libvips-darwin-arm64": {
+ "version": "1.3.4",
+ "resolved": "https://registry.npmjs.org/@img/sharp-libvips-darwin-arm64/-/sharp-libvips-darwin-arm64-1.3.4.tgz",
+ "integrity": "sha512-5R89nBYiRdUlSWJxPhO+GVtaXzXSxKnRu/xqMn3KTA3L9EB9Oy/P+Nn2f2vlhPuUdy/Zusb2DarbyTpGCfEDuw==",
+ "cpu": [
+ "arm64"
+ ],
+ "license": "LGPL-3.0-or-later",
+ "optional": true,
+ "os": [
+ "darwin"
+ ],
+ "funding": {
+ "url": "https://opencollective.com/libvips"
+ }
+ },
+ "node_modules/@img/sharp-libvips-darwin-x64": {
+ "version": "1.3.4",
+ "resolved": "https://registry.npmjs.org/@img/sharp-libvips-darwin-x64/-/sharp-libvips-darwin-x64-1.3.4.tgz",
+ "integrity": "sha512-iR2OKH80yi0U+dUplyh3/xdpFvps6YkCwsXenIJxqxR1v9o+xtKTGbS9H7cps+2Vxjc8B1j96p75NmTGjIhtpQ==",
+ "cpu": [
+ "x64"
+ ],
+ "license": "LGPL-3.0-or-later",
+ "optional": true,
+ "os": [
+ "darwin"
+ ],
+ "funding": {
+ "url": "https://opencollective.com/libvips"
+ }
+ },
+ "node_modules/@img/sharp-libvips-linux-arm": {
+ "version": "1.3.4",
+ "resolved": "https://registry.npmjs.org/@img/sharp-libvips-linux-arm/-/sharp-libvips-linux-arm-1.3.4.tgz",
+ "integrity": "sha512-LmRtTsOHuvM2+wlO2Db37dx5MiZhB0FvSunciw48YjdOkZz9KAiRbm8ujeMOA1INqmei5NapFxYEK1D1ZSidmw==",
+ "cpu": [
+ "arm"
+ ],
+ "license": "LGPL-3.0-or-later",
+ "optional": true,
+ "os": [
+ "linux"
+ ],
+ "funding": {
+ "url": "https://opencollective.com/libvips"
+ }
+ },
+ "node_modules/@img/sharp-libvips-linux-arm64": {
+ "version": "1.3.4",
+ "resolved": "https://registry.npmjs.org/@img/sharp-libvips-linux-arm64/-/sharp-libvips-linux-arm64-1.3.4.tgz",
+ "integrity": "sha512-Y3dgX/6lE2QhQb+Gxy0WZxfg9MEm/JBjamZpS2IklP7xIQoKN4hzAm7KcMVGtaVDt3neE9OKBC7vAfonA/Lr1A==",
+ "cpu": [
+ "arm64"
+ ],
+ "license": "LGPL-3.0-or-later",
+ "optional": true,
+ "os": [
+ "linux"
+ ],
+ "funding": {
+ "url": "https://opencollective.com/libvips"
+ }
+ },
+ "node_modules/@img/sharp-libvips-linux-ppc64": {
+ "version": "1.3.4",
+ "resolved": "https://registry.npmjs.org/@img/sharp-libvips-linux-ppc64/-/sharp-libvips-linux-ppc64-1.3.4.tgz",
+ "integrity": "sha512-Le6boB8Tai0Nis+gIxIpKx68UDVVIqdR8Tin5Yf1z2LJJQLDJvCDRqRu+jC2qCoD+eIomonmOwB4smBRxfVpYQ==",
+ "cpu": [
+ "ppc64"
+ ],
+ "license": "LGPL-3.0-or-later",
+ "optional": true,
+ "os": [
+ "linux"
+ ],
+ "funding": {
+ "url": "https://opencollective.com/libvips"
+ }
+ },
+ "node_modules/@img/sharp-libvips-linux-riscv64": {
+ "version": "1.3.4",
+ "resolved": "https://registry.npmjs.org/@img/sharp-libvips-linux-riscv64/-/sharp-libvips-linux-riscv64-1.3.4.tgz",
+ "integrity": "sha512-aHkkIEHPRdQEegJN20MLmGtxYD9R2wQr3Cwpddnu5+YKMt6Uzax7S9h5gpZTo8wyrGuZSlfQ63OevL5mTyOC7Q==",
+ "cpu": [
+ "riscv64"
+ ],
+ "license": "LGPL-3.0-or-later",
+ "optional": true,
+ "os": [
+ "linux"
+ ],
+ "funding": {
+ "url": "https://opencollective.com/libvips"
+ }
+ },
+ "node_modules/@img/sharp-libvips-linux-s390x": {
+ "version": "1.3.4",
+ "resolved": "https://registry.npmjs.org/@img/sharp-libvips-linux-s390x/-/sharp-libvips-linux-s390x-1.3.4.tgz",
+ "integrity": "sha512-ra/mB6MikESDUO7Yg+Mi95bFBb9GsObURuhnOv3OqknjGe9sZrG8tCe9q0xSIGrtLgvgw0gKnFWcK4blSgQOuQ==",
+ "cpu": [
+ "s390x"
+ ],
+ "license": "LGPL-3.0-or-later",
+ "optional": true,
+ "os": [
+ "linux"
+ ],
+ "funding": {
+ "url": "https://opencollective.com/libvips"
+ }
+ },
+ "node_modules/@img/sharp-libvips-linux-x64": {
+ "version": "1.3.4",
+ "resolved": "https://registry.npmjs.org/@img/sharp-libvips-linux-x64/-/sharp-libvips-linux-x64-1.3.4.tgz",
+ "integrity": "sha512-GJ//SSXbnwSDes02umB3nDJLFcQzw8a18V8fyhqr6tV515tOEMdImjjxj1AoafMRz56F3PHgftnj1QEKSU1zkw==",
+ "cpu": [
+ "x64"
+ ],
+ "license": "LGPL-3.0-or-later",
+ "optional": true,
+ "os": [
+ "linux"
+ ],
+ "funding": {
+ "url": "https://opencollective.com/libvips"
+ }
+ },
+ "node_modules/@img/sharp-libvips-linuxmusl-arm64": {
+ "version": "1.3.4",
+ "resolved": "https://registry.npmjs.org/@img/sharp-libvips-linuxmusl-arm64/-/sharp-libvips-linuxmusl-arm64-1.3.4.tgz",
+ "integrity": "sha512-hvulFwtjUcagsis6BBxHwGFwWoNZjgYmULGVrZcyfNbjA8hKILbRxGg15/7w5HDyXHXUos/j6baAWqnCyQ2DWA==",
+ "cpu": [
+ "arm64"
+ ],
+ "license": "LGPL-3.0-or-later",
+ "optional": true,
+ "os": [
+ "linux"
+ ],
+ "funding": {
+ "url": "https://opencollective.com/libvips"
+ }
+ },
+ "node_modules/@img/sharp-libvips-linuxmusl-x64": {
+ "version": "1.3.4",
+ "resolved": "https://registry.npmjs.org/@img/sharp-libvips-linuxmusl-x64/-/sharp-libvips-linuxmusl-x64-1.3.4.tgz",
+ "integrity": "sha512-6zXKeE/p39I1AmA3cJG35eyBGNqNddLnUXjhwBnsGjFPWqf5VKkDBEqaEkPDoTEtkxwi2vv8Tcr2mDyP4So7Fg==",
+ "cpu": [
+ "x64"
+ ],
+ "license": "LGPL-3.0-or-later",
+ "optional": true,
+ "os": [
+ "linux"
+ ],
+ "funding": {
+ "url": "https://opencollective.com/libvips"
+ }
+ },
+ "node_modules/@img/sharp-linux-arm": {
+ "version": "0.35.5",
+ "resolved": "https://registry.npmjs.org/@img/sharp-linux-arm/-/sharp-linux-arm-0.35.5.tgz",
+ "integrity": "sha512-LEaXK2WdXVK5ykcw0buWyPMsmLLL2vpHLD6yrNSW+JGEL3BZPA4tpKN6iaMc4AxTTAoaX/sU1rOL51lcIz48ZQ==",
+ "cpu": [
+ "arm"
+ ],
+ "license": "Apache-2.0",
+ "optional": true,
+ "os": [
+ "linux"
+ ],
+ "engines": {
+ "node": ">=20.9.0"
+ },
+ "funding": {
+ "url": "https://opencollective.com/libvips"
+ },
+ "optionalDependencies": {
+ "@img/sharp-libvips-linux-arm": "1.3.4"
+ }
+ },
+ "node_modules/@img/sharp-linux-arm64": {
+ "version": "0.35.5",
+ "resolved": "https://registry.npmjs.org/@img/sharp-linux-arm64/-/sharp-linux-arm64-0.35.5.tgz",
+ "integrity": "sha512-LYVx5JTsOM2CBzmxreh+nl64/3H6Xb09iSLknqH47z2T2DFFxDeFLP5y4dJwe6H7uGQlHPyEEtIqyo3DYsRwdQ==",
+ "cpu": [
+ "arm64"
+ ],
+ "license": "Apache-2.0",
+ "optional": true,
+ "os": [
+ "linux"
+ ],
+ "engines": {
+ "node": ">=20.9.0"
+ },
+ "funding": {
+ "url": "https://opencollective.com/libvips"
+ },
+ "optionalDependencies": {
+ "@img/sharp-libvips-linux-arm64": "1.3.4"
+ }
+ },
+ "node_modules/@img/sharp-linux-ppc64": {
+ "version": "0.35.5",
+ "resolved": "https://registry.npmjs.org/@img/sharp-linux-ppc64/-/sharp-linux-ppc64-0.35.5.tgz",
+ "integrity": "sha512-QVxAAq8evVRI9ia2vqgwrmWucn5Dfv+JdWzj75pD8omHLPSP7f8p20O8jxzjCcuCEQEOtYOZUmX1hkiZ0kdevA==",
+ "cpu": [
+ "ppc64"
+ ],
+ "license": "Apache-2.0",
+ "optional": true,
+ "os": [
+ "linux"
+ ],
+ "engines": {
+ "node": ">=20.9.0"
+ },
+ "funding": {
+ "url": "https://opencollective.com/libvips"
+ },
+ "optionalDependencies": {
+ "@img/sharp-libvips-linux-ppc64": "1.3.4"
+ }
+ },
+ "node_modules/@img/sharp-linux-riscv64": {
+ "version": "0.35.5",
+ "resolved": "https://registry.npmjs.org/@img/sharp-linux-riscv64/-/sharp-linux-riscv64-0.35.5.tgz",
+ "integrity": "sha512-LtdreXguaavKODPIfzJ4kffx7UNt1omwtK0rch4EBbbSTXPnxWmYSayXdLJw0fJzQ97kHt1gL/yh4tvU+nCyRQ==",
+ "cpu": [
+ "riscv64"
+ ],
+ "license": "Apache-2.0",
+ "optional": true,
+ "os": [
+ "linux"
+ ],
+ "engines": {
+ "node": ">=20.9.0"
+ },
+ "funding": {
+ "url": "https://opencollective.com/libvips"
+ },
+ "optionalDependencies": {
+ "@img/sharp-libvips-linux-riscv64": "1.3.4"
+ }
+ },
+ "node_modules/@img/sharp-linux-s390x": {
+ "version": "0.35.5",
+ "resolved": "https://registry.npmjs.org/@img/sharp-linux-s390x/-/sharp-linux-s390x-0.35.5.tgz",
+ "integrity": "sha512-UZasTOFiYzotTsGOCu42BfUzP6Tu6Do/947iRm1RsLKvlllxwGcn4RN27LibGWceix4Y+Pmw3jsnTcCQIgWjqA==",
+ "cpu": [
+ "s390x"
+ ],
+ "license": "Apache-2.0",
+ "optional": true,
+ "os": [
+ "linux"
+ ],
+ "engines": {
+ "node": ">=20.9.0"
+ },
+ "funding": {
+ "url": "https://opencollective.com/libvips"
+ },
+ "optionalDependencies": {
+ "@img/sharp-libvips-linux-s390x": "1.3.4"
+ }
+ },
+ "node_modules/@img/sharp-linux-x64": {
+ "version": "0.35.5",
+ "resolved": "https://registry.npmjs.org/@img/sharp-linux-x64/-/sharp-linux-x64-0.35.5.tgz",
+ "integrity": "sha512-SxFtLTeJInhAA9Q836kux2vZNeOBQEx658qvbboZScr0wIARym3IcGmW7KpVD5sbVg0Ojy+udFQdayYIZyoNog==",
+ "cpu": [
+ "x64"
+ ],
+ "license": "Apache-2.0",
+ "optional": true,
+ "os": [
+ "linux"
+ ],
+ "engines": {
+ "node": ">=20.9.0"
+ },
+ "funding": {
+ "url": "https://opencollective.com/libvips"
+ },
+ "optionalDependencies": {
+ "@img/sharp-libvips-linux-x64": "1.3.4"
+ }
+ },
+ "node_modules/@img/sharp-linuxmusl-arm64": {
+ "version": "0.35.5",
+ "resolved": "https://registry.npmjs.org/@img/sharp-linuxmusl-arm64/-/sharp-linuxmusl-arm64-0.35.5.tgz",
+ "integrity": "sha512-9HbMclmI1zlNkFRs3z9/eBtDjfD0sGlrX1z6b1qwmiFY5ElDLh4BC0LPBdVp7z1DXFiKlIcznf+ZlsuZzLxQqg==",
+ "cpu": [
+ "arm64"
+ ],
+ "license": "Apache-2.0",
+ "optional": true,
+ "os": [
+ "linux"
+ ],
+ "engines": {
+ "node": ">=20.9.0"
+ },
+ "funding": {
+ "url": "https://opencollective.com/libvips"
+ },
+ "optionalDependencies": {
+ "@img/sharp-libvips-linuxmusl-arm64": "1.3.4"
+ }
+ },
+ "node_modules/@img/sharp-linuxmusl-x64": {
+ "version": "0.35.5",
+ "resolved": "https://registry.npmjs.org/@img/sharp-linuxmusl-x64/-/sharp-linuxmusl-x64-0.35.5.tgz",
+ "integrity": "sha512-4KOphqB035HrVdqLZfCgMzzERrQkkzOwRhl4OAkRO1YCldbaFjySXMaK534Mo0V+LndnlJk+sbUyLeU0ULyD1A==",
+ "cpu": [
+ "x64"
+ ],
+ "license": "Apache-2.0",
+ "optional": true,
+ "os": [
+ "linux"
+ ],
+ "engines": {
+ "node": ">=20.9.0"
+ },
+ "funding": {
+ "url": "https://opencollective.com/libvips"
+ },
+ "optionalDependencies": {
+ "@img/sharp-libvips-linuxmusl-x64": "1.3.4"
+ }
+ },
+ "node_modules/@img/sharp-webcontainers-wasm32": {
+ "version": "0.35.5",
+ "resolved": "https://registry.npmjs.org/@img/sharp-webcontainers-wasm32/-/sharp-webcontainers-wasm32-0.35.5.tgz",
+ "integrity": "sha512-hfhF/FmoQyTUkA0bIKFOtw536BQSeBMe6BF6QyWlrPxT754+TFLaZ7sKKTfvvM0yJgKgaYTwnFCIZ/GuDw5SUA==",
+ "cpu": [
+ "wasm32"
+ ],
+ "license": "Apache-2.0",
+ "optional": true,
+ "dependencies": {
+ "@img/sharp-wasm32": "0.35.5"
+ },
+ "engines": {
+ "node": ">=20.9.0"
+ },
+ "funding": {
+ "url": "https://opencollective.com/libvips"
+ }
+ },
+ "node_modules/@img/sharp-webcontainers-wasm32/node_modules/@img/sharp-wasm32": {
+ "version": "0.35.5",
+ "resolved": "https://registry.npmjs.org/@img/sharp-wasm32/-/sharp-wasm32-0.35.5.tgz",
+ "integrity": "sha512-Ptsga1su4tQx+LLF1ECS9U6nz5kmrXKo6XVbtR48Ke3ZRxxgaWBu7IDtEe1quo8hiupwm6WFqxVlXaSf7IINGQ==",
+ "license": "Apache-2.0 AND LGPL-3.0-or-later AND MIT",
+ "optional": true,
+ "dependencies": {
+ "@emnapi/runtime": "^1.11.3"
+ },
+ "engines": {
+ "node": ">=20.9.0"
+ },
+ "funding": {
+ "url": "https://opencollective.com/libvips"
+ }
+ },
+ "node_modules/@img/sharp-win32-arm64": {
+ "version": "0.35.5",
+ "resolved": "https://registry.npmjs.org/@img/sharp-win32-arm64/-/sharp-win32-arm64-0.35.5.tgz",
+ "integrity": "sha512-X4t7g+7ZA5DKblCBEXGjUqqemj4vczING/5viFwAL8h4N3qYeyjwdCvRLHi4EdOUI+2Z7UFlp1VM+p/AuEtm6Q==",
+ "cpu": [
+ "arm64"
+ ],
+ "license": "Apache-2.0 AND LGPL-3.0-or-later",
+ "optional": true,
+ "os": [
+ "win32"
+ ],
+ "engines": {
+ "node": ">=20.9.0"
+ },
+ "funding": {
+ "url": "https://opencollective.com/libvips"
+ }
+ },
+ "node_modules/@img/sharp-win32-ia32": {
+ "version": "0.35.5",
+ "resolved": "https://registry.npmjs.org/@img/sharp-win32-ia32/-/sharp-win32-ia32-0.35.5.tgz",
+ "integrity": "sha512-5Zm82LoBc43nhwNybZlG7Y1KO//Zhsn306fQl29ZOuStHLGTo3BWL83q3cznX0poxSAMuYL1On/BHBxkBeKr6A==",
+ "cpu": [
+ "ia32"
+ ],
+ "license": "Apache-2.0 AND LGPL-3.0-or-later",
+ "optional": true,
+ "os": [
+ "win32"
+ ],
+ "engines": {
+ "node": "^20.9.0"
+ },
+ "funding": {
+ "url": "https://opencollective.com/libvips"
+ }
+ },
+ "node_modules/@img/sharp-win32-x64": {
+ "version": "0.35.5",
+ "resolved": "https://registry.npmjs.org/@img/sharp-win32-x64/-/sharp-win32-x64-0.35.5.tgz",
+ "integrity": "sha512-x76eH0vEiHlcMQu8Y8IenntaACtddpT6W0wmXtWrnKcnKI7ME5DdgqhAD6SEWOEl1v2zDvkZDhFA9KnURwpfqg==",
+ "cpu": [
+ "x64"
+ ],
+ "license": "Apache-2.0 AND LGPL-3.0-or-later",
+ "optional": true,
+ "os": [
+ "win32"
+ ],
+ "engines": {
+ "node": ">=20.9.0"
+ },
+ "funding": {
+ "url": "https://opencollective.com/libvips"
+ }
+ },
+ "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/@keyv/bigmap": {
+ "version": "1.3.1",
+ "resolved": "https://registry.npmjs.org/@keyv/bigmap/-/bigmap-1.3.1.tgz",
+ "integrity": "sha512-WbzE9sdmQtKy8vrNPa9BRnwZh5UF4s1KTmSK0KUVLo3eff5BlQNNWDnFOouNpKfPKDnms9xynJjsMYjMaT/aFQ==",
+ "dev": true,
+ "license": "MIT",
+ "dependencies": {
+ "hashery": "^1.4.0",
+ "hookified": "^1.15.0"
+ },
+ "engines": {
+ "node": ">= 18"
+ },
+ "peerDependencies": {
+ "keyv": "^5.6.0"
+ }
+ },
+ "node_modules/@keyv/serialize": {
+ "version": "1.1.1",
+ "resolved": "https://registry.npmjs.org/@keyv/serialize/-/serialize-1.1.1.tgz",
+ "integrity": "sha512-dXn3FZhPv0US+7dtJsIi2R+c7qWYiReoEh5zUntWCf4oSpMNib8FDhSoed6m3QyZdx5hK7iLFkYk3rNxwt8vTA==",
+ "dev": true,
+ "license": "MIT"
+ },
+ "node_modules/@next/env": {
+ "version": "16.3.8",
+ "resolved": "https://registry.npmjs.org/@next/env/-/env-16.3.8.tgz",
+ "integrity": "sha512-Al9zqHVV7TJv0eFuOU4U7Lvv74PTih4Ch63sk2xCIpSTkE3udFnaOcnzP2lQVymiL7yS9Cj2iClUXlR3EQ5sEw==",
+ "license": "MIT"
+ },
+ "node_modules/@next/eslint-plugin-next": {
+ "version": "16.3.8",
+ "resolved": "https://registry.npmjs.org/@next/eslint-plugin-next/-/eslint-plugin-next-16.3.8.tgz",
+ "integrity": "sha512-eCR9RcLTZrVS+K3+VOhi0xMdUUGNuriCHHhU1ZoABC/QQ/Gp0OWbLKQxV2/9DkmihYdYRcQWFmZXW8M1AMUXYw==",
+ "dev": true,
+ "license": "MIT",
+ "dependencies": {
+ "@eslint-community/eslint-utils": "4.9.1",
+ "fast-glob": "3.3.1"
+ }
+ },
+ "node_modules/@next/eslint-plugin-next/node_modules/@eslint-community/eslint-utils": {
+ "version": "4.9.1",
+ "resolved": "https://registry.npmjs.org/@eslint-community/eslint-utils/-/eslint-utils-4.9.1.tgz",
+ "integrity": "sha512-phrYmNiYppR7znFEdqgfWHXR6NCkZEK7hwWDHZUjit/2/U0r6XvkDl0SYnoM51Hq7FhCGdLDT6zxCCOY1hexsQ==",
+ "dev": true,
+ "license": "MIT",
+ "dependencies": {
+ "eslint-visitor-keys": "^3.4.3"
+ },
+ "engines": {
+ "node": "^12.22.0 || ^14.17.0 || >=16.0.0"
+ },
+ "funding": {
+ "url": "https://opencollective.com/eslint"
+ },
+ "peerDependencies": {
+ "eslint": "^6.0.0 || ^7.0.0 || >=8.0.0"
+ }
+ },
+ "node_modules/@next/eslint-plugin-next/node_modules/eslint-visitor-keys": {
+ "version": "3.4.3",
+ "resolved": "https://registry.npmjs.org/eslint-visitor-keys/-/eslint-visitor-keys-3.4.3.tgz",
+ "integrity": "sha512-wpc+LXeiyiisxPlEkUzU6svyS1frIO3Mgxj1fdy7Pm8Ygzguax2N3Fa/D/ag1WqbOprdI+uY6wMUl8/a2G+iag==",
+ "dev": true,
+ "license": "Apache-2.0",
+ "engines": {
+ "node": "^12.22.0 || ^14.17.0 || >=16.0.0"
+ },
+ "funding": {
+ "url": "https://opencollective.com/eslint"
+ }
+ },
+ "node_modules/@next/swc-darwin-arm64": {
+ "version": "16.3.8",
+ "resolved": "https://registry.npmjs.org/@next/swc-darwin-arm64/-/swc-darwin-arm64-16.3.8.tgz",
+ "integrity": "sha512-2JPRMh2nmQG5CiL7cXGL9AGwnPWJQ//cTtAUCT+w511QHk79SYz3LGv/pc5X643B/WEO0rvu3Yww0hqwt3kgeA==",
+ "cpu": [
+ "arm64"
+ ],
+ "license": "MIT",
+ "optional": true,
+ "os": [
+ "darwin"
+ ],
+ "engines": {
+ "node": ">= 10"
+ }
+ },
+ "node_modules/@next/swc-darwin-x64": {
+ "version": "16.3.8",
+ "resolved": "https://registry.npmjs.org/@next/swc-darwin-x64/-/swc-darwin-x64-16.3.8.tgz",
+ "integrity": "sha512-GZtCCOBKJ4leVIT/Th0llWKhD1ca92lzbQiS5R5ON9QkoiFnilFsebDae1JU2a3HWoKMEmEZWGs1AGLavVM72Q==",
+ "cpu": [
+ "x64"
+ ],
+ "license": "MIT",
+ "optional": true,
+ "os": [
+ "darwin"
+ ],
+ "engines": {
+ "node": ">= 10"
+ }
+ },
+ "node_modules/@next/swc-linux-arm64-gnu": {
+ "version": "16.3.8",
+ "resolved": "https://registry.npmjs.org/@next/swc-linux-arm64-gnu/-/swc-linux-arm64-gnu-16.3.8.tgz",
+ "integrity": "sha512-O659ygeQYqneJ1fBKMpFxIFqYkYswu8IAS1OCKK/4f3ZgJJm1dRz4fVJZRi/kLLWjnBKnebOePA4WNv+sV1pVA==",
+ "cpu": [
+ "arm64"
+ ],
+ "license": "MIT",
+ "optional": true,
+ "os": [
+ "linux"
+ ],
+ "engines": {
+ "node": ">= 10"
+ }
+ },
+ "node_modules/@next/swc-linux-arm64-musl": {
+ "version": "16.3.8",
+ "resolved": "https://registry.npmjs.org/@next/swc-linux-arm64-musl/-/swc-linux-arm64-musl-16.3.8.tgz",
+ "integrity": "sha512-dSjKSyWpzxoO1d3DIZZcP4XJcNaKeLmxQMFOiYl5vuBRMmweIqnAhty8tAmRsvTss779cK1FtYnDMj40e4TQlg==",
+ "cpu": [
+ "arm64"
+ ],
+ "license": "MIT",
+ "optional": true,
+ "os": [
+ "linux"
+ ],
+ "engines": {
+ "node": ">= 10"
+ }
+ },
+ "node_modules/@next/swc-linux-x64-gnu": {
+ "version": "16.3.8",
+ "resolved": "https://registry.npmjs.org/@next/swc-linux-x64-gnu/-/swc-linux-x64-gnu-16.3.8.tgz",
+ "integrity": "sha512-lbqOuz3RPRcv+o9msNsJw5x4+Y1ZwPTs6vmL6DCf7i0fZfvng/F59wyeDwqHIvV0mK//RBy/jJkZ+nCKsSMXjQ==",
+ "cpu": [
+ "x64"
+ ],
+ "license": "MIT",
+ "optional": true,
+ "os": [
+ "linux"
+ ],
+ "engines": {
+ "node": ">= 10"
+ }
+ },
+ "node_modules/@next/swc-linux-x64-musl": {
+ "version": "16.3.8",
+ "resolved": "https://registry.npmjs.org/@next/swc-linux-x64-musl/-/swc-linux-x64-musl-16.3.8.tgz",
+ "integrity": "sha512-+316WswI8ScVgZeUd+1KGaXkHhaYQzCjvH/05TZSpJ8zBizb1a4G7DtO7F12jcBIqMOtsz9ji1t48fmKtzqsGA==",
+ "cpu": [
+ "x64"
+ ],
+ "license": "MIT",
+ "optional": true,
+ "os": [
+ "linux"
+ ],
+ "engines": {
+ "node": ">= 10"
+ }
+ },
+ "node_modules/@next/swc-win32-arm64-msvc": {
+ "version": "16.3.8",
+ "resolved": "https://registry.npmjs.org/@next/swc-win32-arm64-msvc/-/swc-win32-arm64-msvc-16.3.8.tgz",
+ "integrity": "sha512-ji0gd4kMYUxO+1fJBIbiBVRCjzG/lloiyCccnlebvb1ZJ5qXCPZqYg4Jl1DrrixnWNMKylzgpmMWx0yNDYXlzw==",
+ "cpu": [
+ "arm64"
+ ],
+ "license": "MIT",
+ "optional": true,
+ "os": [
+ "win32"
+ ],
+ "engines": {
+ "node": ">= 10"
+ }
+ },
+ "node_modules/@next/swc-win32-x64-msvc": {
+ "version": "16.3.8",
+ "resolved": "https://registry.npmjs.org/@next/swc-win32-x64-msvc/-/swc-win32-x64-msvc-16.3.8.tgz",
+ "integrity": "sha512-WcTlaKt/TWkh5kUjdJcUmB1XgZ+1c6fz4Y9fDHL73YNSdGaUWjceeWrrlwF0nv19iABYWC4iAq1oX1w4Bn0vfg==",
+ "cpu": [
+ "x64"
+ ],
+ "license": "MIT",
+ "optional": true,
+ "os": [
+ "win32"
+ ],
+ "engines": {
+ "node": ">= 10"
+ }
+ },
+ "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/@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/@types/esrecurse": {
+ "version": "4.3.1",
+ "resolved": "https://registry.npmjs.org/@types/esrecurse/-/esrecurse-4.3.1.tgz",
+ "integrity": "sha512-xJBAbDifo5hpffDBuHl0Y8ywswbiAp/Wi7Y/GtAgSlZyIABppyurxVueOPE8LUQOxdlgi6Zqce7uoEpqNTeiUw==",
+ "dev": true,
+ "license": "MIT"
+ },
+ "node_modules/@types/estree": {
+ "version": "1.0.9",
+ "resolved": "https://registry.npmjs.org/@types/estree/-/estree-1.0.9.tgz",
+ "integrity": "sha512-GhdPgy1el4/ImP05X05Uw4cw2/M93BCUmnEvWZNStlCzEKME4Fkk+YpoA5OiHNQmoS7Cafb8Xa3Pya8m1Qrzeg==",
+ "dev": true,
+ "license": "MIT"
+ },
+ "node_modules/@types/json-schema": {
+ "version": "7.0.15",
+ "resolved": "https://registry.npmjs.org/@types/json-schema/-/json-schema-7.0.15.tgz",
+ "integrity": "sha512-5+fP8P8MFNC+AyZCDxrB2pkZFPGzqQWUzpSeuuVLvm8VMcorNYavBqoFcxK8bQz4Qsbn4oUEEem4wDLfcysGHA==",
+ "dev": true,
+ "license": "MIT"
+ },
+ "node_modules/@types/node": {
+ "version": "22.20.5",
+ "resolved": "https://registry.npmjs.org/@types/node/-/node-22.20.5.tgz",
+ "integrity": "sha512-U2+DNr+wSjpsTS/wZGYHq7GcwfuSmKiKvoPvK22zwTlRhU91yOniN4qRR5KhIjvif7ysw/dz/hKmfDH0Ris4aA==",
+ "dev": true,
+ "license": "MIT",
+ "dependencies": {
+ "undici-types": "~6.21.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/@typescript-eslint/eslint-plugin": {
+ "version": "8.71.0",
+ "resolved": "https://registry.npmjs.org/@typescript-eslint/eslint-plugin/-/eslint-plugin-8.71.0.tgz",
+ "integrity": "sha512-pqcS9c1HxZTHt7End4nXqd0s5lJrrFzrgCkKFJrsbUnaL6M3+6oBFZaslg6Gjsl3argl2DDRFROnXARaZ2e4Nw==",
+ "dev": true,
+ "license": "MIT",
+ "dependencies": {
+ "@eslint-community/regexpp": "^4.12.2",
+ "@typescript-eslint/scope-manager": "8.71.0",
+ "@typescript-eslint/type-utils": "8.71.0",
+ "@typescript-eslint/utils": "8.71.0",
+ "@typescript-eslint/visitor-keys": "8.71.0",
+ "ignore": "^7.0.5",
+ "natural-compare": "^1.4.0",
+ "ts-api-utils": "^2.5.0"
+ },
+ "engines": {
+ "node": "^18.18.0 || ^20.9.0 || >=21.1.0"
+ },
+ "funding": {
+ "type": "opencollective",
+ "url": "https://opencollective.com/typescript-eslint"
+ },
+ "peerDependencies": {
+ "@typescript-eslint/parser": "^8.71.0",
+ "eslint": "^8.57.0 || ^9.0.0 || ^10.0.0",
+ "typescript": ">=4.8.4 <6.1.0"
+ }
+ },
+ "node_modules/@typescript-eslint/eslint-plugin/node_modules/ignore": {
+ "version": "7.0.12",
+ "resolved": "https://registry.npmjs.org/ignore/-/ignore-7.0.12.tgz",
+ "integrity": "sha512-/8UvqAPU9DGTI9k4mxtf49U37Isfwr8Uts96+SBHIkFxPJnHS0Ew4f00sM4Scd8V8EjM0jUNtVDdv1kPdt35lg==",
+ "dev": true,
+ "license": "MIT",
+ "engines": {
+ "node": ">= 4"
+ }
+ },
+ "node_modules/@typescript-eslint/parser": {
+ "version": "8.71.0",
+ "resolved": "https://registry.npmjs.org/@typescript-eslint/parser/-/parser-8.71.0.tgz",
+ "integrity": "sha512-CG4nPk1f2zc8yw4pALqHsFYH2hdo+h1T9daSp21+Hnxi9LOE3GT9hAfTKJCBXVNM2GmYs1eMEP615wPoeOgk3A==",
+ "dev": true,
+ "license": "MIT",
+ "dependencies": {
+ "@typescript-eslint/scope-manager": "8.71.0",
+ "@typescript-eslint/types": "8.71.0",
+ "@typescript-eslint/typescript-estree": "8.71.0",
+ "@typescript-eslint/visitor-keys": "8.71.0",
+ "debug": "^4.4.3"
+ },
+ "engines": {
+ "node": "^18.18.0 || ^20.9.0 || >=21.1.0"
+ },
+ "funding": {
+ "type": "opencollective",
+ "url": "https://opencollective.com/typescript-eslint"
+ },
+ "peerDependencies": {
+ "eslint": "^8.57.0 || ^9.0.0 || ^10.0.0",
+ "typescript": ">=4.8.4 <6.1.0"
+ }
+ },
+ "node_modules/@typescript-eslint/project-service": {
+ "version": "8.71.0",
+ "resolved": "https://registry.npmjs.org/@typescript-eslint/project-service/-/project-service-8.71.0.tgz",
+ "integrity": "sha512-aABjw5rjBacYONVPaPiWOCjJu0vEF4a25iQuodlmQYL1trtLZ0X/y+2Vzl3BKI1odM4LnwLE1oUDXYp1wzx1TQ==",
+ "dev": true,
+ "license": "MIT",
+ "dependencies": {
+ "@typescript-eslint/tsconfig-utils": "^8.71.0",
+ "@typescript-eslint/types": "^8.71.0",
+ "debug": "^4.4.3"
+ },
+ "engines": {
+ "node": "^18.18.0 || ^20.9.0 || >=21.1.0"
+ },
+ "funding": {
+ "type": "opencollective",
+ "url": "https://opencollective.com/typescript-eslint"
+ },
+ "peerDependencies": {
+ "typescript": ">=4.8.4 <6.1.0"
+ }
+ },
+ "node_modules/@typescript-eslint/scope-manager": {
+ "version": "8.71.0",
+ "resolved": "https://registry.npmjs.org/@typescript-eslint/scope-manager/-/scope-manager-8.71.0.tgz",
+ "integrity": "sha512-gWF0BhUcnjZxSpLE8ngS/59n2SB0J3YqRxvX1+2aoRJk9hNtHSLOV+TcarFiOr5ipXm3yc1QrI4c9YZc8zyCxw==",
+ "dev": true,
+ "license": "MIT",
+ "dependencies": {
+ "@typescript-eslint/types": "8.71.0",
+ "@typescript-eslint/visitor-keys": "8.71.0"
+ },
+ "engines": {
+ "node": "^18.18.0 || ^20.9.0 || >=21.1.0"
+ },
+ "funding": {
+ "type": "opencollective",
+ "url": "https://opencollective.com/typescript-eslint"
+ }
+ },
+ "node_modules/@typescript-eslint/tsconfig-utils": {
+ "version": "8.71.0",
+ "resolved": "https://registry.npmjs.org/@typescript-eslint/tsconfig-utils/-/tsconfig-utils-8.71.0.tgz",
+ "integrity": "sha512-Z1UlWHADEK2Mlb9NpWfDeSjqoZ5EyrOv4R3eQpbkzqn/EwaIdOpXXupEA1+0ZIOSJSZZDBHG0BrQyN8zUG6Pwg==",
+ "dev": true,
+ "license": "MIT",
+ "engines": {
+ "node": "^18.18.0 || ^20.9.0 || >=21.1.0"
+ },
+ "funding": {
+ "type": "opencollective",
+ "url": "https://opencollective.com/typescript-eslint"
+ },
+ "peerDependencies": {
+ "typescript": ">=4.8.4 <6.1.0"
+ }
+ },
+ "node_modules/@typescript-eslint/type-utils": {
+ "version": "8.71.0",
+ "resolved": "https://registry.npmjs.org/@typescript-eslint/type-utils/-/type-utils-8.71.0.tgz",
+ "integrity": "sha512-i8uO1qbdxeKgRnS5sCRt6On3/nfo2d2DwQe3Yvjx543zLy7r8ySqRuPPiIIXAhS03U0v5NfAFx+rUgxFzKKwNw==",
+ "dev": true,
+ "license": "MIT",
+ "dependencies": {
+ "@typescript-eslint/types": "8.71.0",
+ "@typescript-eslint/typescript-estree": "8.71.0",
+ "@typescript-eslint/utils": "8.71.0",
+ "debug": "^4.4.3",
+ "ts-api-utils": "^2.5.0"
+ },
+ "engines": {
+ "node": "^18.18.0 || ^20.9.0 || >=21.1.0"
+ },
+ "funding": {
+ "type": "opencollective",
+ "url": "https://opencollective.com/typescript-eslint"
+ },
+ "peerDependencies": {
+ "eslint": "^8.57.0 || ^9.0.0 || ^10.0.0",
+ "typescript": ">=4.8.4 <6.1.0"
+ }
+ },
+ "node_modules/@typescript-eslint/types": {
+ "version": "8.71.0",
+ "resolved": "https://registry.npmjs.org/@typescript-eslint/types/-/types-8.71.0.tgz",
+ "integrity": "sha512-cJ4OoxPGWvFnBTnSZyaU+qJzGTqPTGJY+gDchj6cRyLRdmIdt4rcsE4twj+zPfrNiWuVi38wijHzShL++Z9atQ==",
+ "dev": true,
+ "license": "MIT",
+ "engines": {
+ "node": "^18.18.0 || ^20.9.0 || >=21.1.0"
+ },
+ "funding": {
+ "type": "opencollective",
+ "url": "https://opencollective.com/typescript-eslint"
+ }
+ },
+ "node_modules/@typescript-eslint/typescript-estree": {
+ "version": "8.71.0",
+ "resolved": "https://registry.npmjs.org/@typescript-eslint/typescript-estree/-/typescript-estree-8.71.0.tgz",
+ "integrity": "sha512-PEEF4G5sLLWAS5BpPrUvms4ySZkiBQQZM4z+3ReI46axK5Vqr/vXBQatJQIZZOYdGyPUAKTtsrWzpqKuU+3DEw==",
+ "dev": true,
+ "license": "MIT",
+ "dependencies": {
+ "@typescript-eslint/project-service": "8.71.0",
+ "@typescript-eslint/tsconfig-utils": "8.71.0",
+ "@typescript-eslint/types": "8.71.0",
+ "@typescript-eslint/visitor-keys": "8.71.0",
+ "debug": "^4.4.3",
+ "minimatch": "^10.2.2",
+ "semver": "^7.7.3",
+ "tinyglobby": "^0.2.15",
+ "ts-api-utils": "^2.5.0"
+ },
+ "engines": {
+ "node": "^18.18.0 || ^20.9.0 || >=21.1.0"
+ },
+ "funding": {
+ "type": "opencollective",
+ "url": "https://opencollective.com/typescript-eslint"
+ },
+ "peerDependencies": {
+ "typescript": ">=4.8.4 <6.1.0"
+ }
+ },
+ "node_modules/@typescript-eslint/utils": {
+ "version": "8.71.0",
+ "resolved": "https://registry.npmjs.org/@typescript-eslint/utils/-/utils-8.71.0.tgz",
+ "integrity": "sha512-pKR/tEMVrXZG23UFKUn5BQf3zfmfk7KQceI2cGzywZ5nxM5Eu3hEJU1utjWzydtzBbcJAQhHN8iPCxobHpPcZQ==",
+ "dev": true,
+ "license": "MIT",
+ "dependencies": {
+ "@eslint-community/eslint-utils": "^4.9.1",
+ "@typescript-eslint/scope-manager": "8.71.0",
+ "@typescript-eslint/types": "8.71.0",
+ "@typescript-eslint/typescript-estree": "8.71.0"
+ },
+ "engines": {
+ "node": "^18.18.0 || ^20.9.0 || >=21.1.0"
+ },
+ "funding": {
+ "type": "opencollective",
+ "url": "https://opencollective.com/typescript-eslint"
+ },
+ "peerDependencies": {
+ "eslint": "^8.57.0 || ^9.0.0 || ^10.0.0",
+ "typescript": ">=4.8.4 <6.1.0"
+ }
+ },
+ "node_modules/@typescript-eslint/visitor-keys": {
+ "version": "8.71.0",
+ "resolved": "https://registry.npmjs.org/@typescript-eslint/visitor-keys/-/visitor-keys-8.71.0.tgz",
+ "integrity": "sha512-8eQ9R218XORK+KLosnf4bu/QsUXvUyVwTbArg7/0NMB1Pu87OJKvj4nhFblkYE8gQV73mW1dx1ptlPCkwRGa7A==",
+ "dev": true,
+ "license": "MIT",
+ "dependencies": {
+ "@typescript-eslint/types": "8.71.0",
+ "eslint-visitor-keys": "^5.0.0"
+ },
+ "engines": {
+ "node": "^18.18.0 || ^20.9.0 || >=21.1.0"
+ },
+ "funding": {
+ "type": "opencollective",
+ "url": "https://opencollective.com/typescript-eslint"
+ }
+ },
+ "node_modules/acorn": {
+ "version": "8.18.0",
+ "resolved": "https://registry.npmjs.org/acorn/-/acorn-8.18.0.tgz",
+ "integrity": "sha512-lGq+9yr1/GuAWaVYIHRjvvySG5/4VfKIvC8EWxStPdcDh/Ka7FG3twP6v4d5BkravUilhIAsG4Qj83t02LWUPQ==",
+ "dev": true,
+ "license": "MIT",
+ "bin": {
+ "acorn": "bin/acorn"
+ },
+ "engines": {
+ "node": ">=0.4.0"
+ }
+ },
+ "node_modules/acorn-jsx": {
+ "version": "5.3.2",
+ "resolved": "https://registry.npmjs.org/acorn-jsx/-/acorn-jsx-5.3.2.tgz",
+ "integrity": "sha512-rq9s+JNhf0IChjtDXxllJ7g41oZk5SlXtp0LHwyA5cejwn7vKmKp4pPri6YEePv2PU65sAsegbXtIinmDFDXgQ==",
+ "dev": true,
+ "license": "MIT",
+ "peerDependencies": {
+ "acorn": "^6.0.0 || ^7.0.0 || ^8.0.0"
+ }
+ },
+ "node_modules/ajv": {
+ "version": "6.15.0",
+ "resolved": "https://registry.npmjs.org/ajv/-/ajv-6.15.0.tgz",
+ "integrity": "sha512-fgFx7Hfoq60ytK2c7DhnF8jIvzYgOMxfugjLOSMHjLIPgenqa7S7oaagATUq99mV6IYvN2tRmC0wnTYX6iPbMw==",
+ "dev": true,
+ "license": "MIT",
+ "dependencies": {
+ "fast-deep-equal": "^3.1.1",
+ "fast-json-stable-stringify": "^2.0.0",
+ "json-schema-traverse": "^0.4.1",
+ "uri-js": "^4.2.2"
+ },
+ "funding": {
+ "type": "github",
+ "url": "https://github.com/sponsors/epoberezkin"
+ }
+ },
+ "node_modules/balanced-match": {
+ "version": "4.0.4",
+ "resolved": "https://registry.npmjs.org/balanced-match/-/balanced-match-4.0.4.tgz",
+ "integrity": "sha512-BLrgEcRTwX2o6gGxGOCNyMvGSp35YofuYzw9h1IMTRmKqttAZZVU67bdb9Pr2vUHA8+j3i2tJfjO6C6+4myGTA==",
+ "dev": true,
+ "license": "MIT",
+ "engines": {
+ "node": "18 || 20 || >=22"
+ }
+ },
+ "node_modules/baseline-browser-mapping": {
+ "version": "2.11.27",
+ "resolved": "https://registry.npmjs.org/baseline-browser-mapping/-/baseline-browser-mapping-2.11.27.tgz",
+ "integrity": "sha512-ElY12DaROGuan+lMmZ8Cvo/ZUbXPe7Enc/9VU/b1T3Kp4dwytRcNdR8DoSJN5SNJT/CuvcCA0DHDVmMOCePdRQ==",
+ "license": "Apache-2.0",
+ "bin": {
+ "baseline-browser-mapping": "dist/cli.cjs"
+ },
+ "engines": {
+ "node": ">=6.0.0"
+ }
+ },
+ "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.3",
+ "resolved": "https://registry.npmjs.org/browserslist/-/browserslist-4.29.3.tgz",
+ "integrity": "sha512-1R4kiYKXGViqEN0CnoDrXc1StD9niAwu+j2dukWzrD4bJgsD4lDmEp0CRbc6E/vYJIfTHwPmwyaKtVSudICdPA==",
+ "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.26",
+ "caniuse-lite": "^1.0.30001813",
+ "electron-to-chromium": "^1.5.439",
+ "node-releases": "^2.0.57",
+ "update-browserslist-db": "^1.3.3"
+ },
+ "bin": {
+ "browserslist": "cli.js"
+ },
+ "engines": {
+ "node": "^6 || ^7 || ^8 || ^9 || ^10 || ^11 || ^12 || >=13.7"
+ }
+ },
+ "node_modules/cacheable": {
+ "version": "2.5.0",
+ "resolved": "https://registry.npmjs.org/cacheable/-/cacheable-2.5.0.tgz",
+ "integrity": "sha512-60cyAOytib/OzBw1JNSoSV/boK1AtHryDIjvVBk7XbN4ugfkM3+Sry7fEjNgPMGgOjuaZPAp8ruZ0Cxafwyq9g==",
+ "dev": true,
+ "license": "MIT",
+ "dependencies": {
+ "@cacheable/memory": "^2.2.0",
+ "@cacheable/utils": "^2.5.0",
+ "hookified": "^1.15.0",
+ "keyv": "^5.6.0",
+ "qified": "^0.10.1"
+ }
+ },
+ "node_modules/caniuse-lite": {
+ "version": "1.0.30001814",
+ "resolved": "https://registry.npmjs.org/caniuse-lite/-/caniuse-lite-1.0.30001814.tgz",
+ "integrity": "sha512-/Uaf1lAzr59XcMpW0o96WoEfr+VXK2OX4U9AgFoiSHsVJ4HppnIFUjtYzsyDH2+tgANaQb2/oxYGwCPapN1FpA==",
+ "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/client-only": {
+ "version": "0.0.1",
+ "resolved": "https://registry.npmjs.org/client-only/-/client-only-0.0.1.tgz",
+ "integrity": "sha512-IV3Ou0jSMzZrd3pZ48nLkT9DA7Ag1pnPzaiQhpW7c3RbcqqzvzzVu+L8gfqMp/8IM2MQtSiqaCxrrcfu8I8rMA==",
+ "license": "MIT"
+ },
+ "node_modules/convert-source-map": {
+ "version": "2.0.0",
+ "resolved": "https://registry.npmjs.org/convert-source-map/-/convert-source-map-2.0.0.tgz",
+ "integrity": "sha512-Kvp459HrV2FEJ1CAsi1Ku+MY3kasH19TFykTz2xWmMeq6bk2NU3XXvfJ+Q61m0xktWwt+1HSYf3JZsTms3aRJg==",
+ "dev": true,
+ "license": "MIT"
+ },
+ "node_modules/cross-spawn": {
+ "version": "7.0.6",
+ "resolved": "https://registry.npmjs.org/cross-spawn/-/cross-spawn-7.0.6.tgz",
+ "integrity": "sha512-uV2QOWP2nWzsy2aMp8aRibhi9dlzF5Hgh5SHaB9OiTGEyDTiJJyx0uy51QXdyWbtAHNua4XJzUKca3OzKUd3vA==",
+ "dev": true,
+ "license": "MIT",
+ "dependencies": {
+ "path-key": "^3.1.0",
+ "shebang-command": "^2.0.0",
+ "which": "^2.0.1"
+ },
+ "engines": {
+ "node": ">= 8"
+ }
+ },
+ "node_modules/csstype": {
+ "version": "3.2.3",
+ "resolved": "https://registry.npmjs.org/csstype/-/csstype-3.2.3.tgz",
+ "integrity": "sha512-z1HGKcYy2xA8AGQfwrn0PAy+PB7X/GSj3UVJW9qKyn43xWa+gl5nXmU4qqLMRzWVLFC8KusUX8T/0kCiOYpAIQ==",
+ "dev": true,
+ "license": "MIT"
+ },
+ "node_modules/debug": {
+ "version": "4.4.3",
+ "resolved": "https://registry.npmjs.org/debug/-/debug-4.4.3.tgz",
+ "integrity": "sha512-RGwwWnwQvkVfavKVt22FGLw+xYSdzARwm0ru6DhTVA3umU5hZc28V3kO4stgYryrTlLpuvgI9GiijltAjNbcqA==",
+ "dev": true,
+ "license": "MIT",
+ "dependencies": {
+ "ms": "^2.1.3"
+ },
+ "engines": {
+ "node": ">=6.0"
+ },
+ "peerDependenciesMeta": {
+ "supports-color": {
+ "optional": true
+ }
+ }
+ },
+ "node_modules/deep-is": {
+ "version": "0.1.4",
+ "resolved": "https://registry.npmjs.org/deep-is/-/deep-is-0.1.4.tgz",
+ "integrity": "sha512-oIPzksmTg4/MriiaYGO+okXDT7ztn/w3Eptv/+gSIdMdKsJo0u4CfYNFJPy+4SKMuCqGw2wxnA+URMg3t8a/bQ==",
+ "dev": true,
+ "license": "MIT"
+ },
+ "node_modules/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/electron-to-chromium": {
+ "version": "1.5.444",
+ "resolved": "https://registry.npmjs.org/electron-to-chromium/-/electron-to-chromium-1.5.444.tgz",
+ "integrity": "sha512-5ss/uJfoDYDHT0lfJzT6FbcskIzROIOPf0BbbFkGcvDzoJU7i//9GDrwwIHQVmIsrAGiF3ihpADBRIsrEFt1rQ==",
+ "dev": true,
+ "license": "ISC"
+ },
+ "node_modules/esbuild": {
+ "version": "0.28.2",
+ "resolved": "https://registry.npmjs.org/esbuild/-/esbuild-0.28.2.tgz",
+ "integrity": "sha512-HKVLS8dvII+xoKW9kmqxbRKrnWEXfJJr/FZhhJmiqIB0e053QNYFqOBouTMO/k5sID4MvCiUCvv8b9M4h32wIA==",
+ "dev": true,
+ "hasInstallScript": true,
+ "license": "MIT",
+ "bin": {
+ "esbuild": "bin/esbuild"
+ },
+ "engines": {
+ "node": ">=18"
+ },
+ "optionalDependencies": {
+ "@esbuild/aix-ppc64": "0.28.2",
+ "@esbuild/android-arm": "0.28.2",
+ "@esbuild/android-arm64": "0.28.2",
+ "@esbuild/android-x64": "0.28.2",
+ "@esbuild/darwin-arm64": "0.28.2",
+ "@esbuild/darwin-x64": "0.28.2",
+ "@esbuild/freebsd-arm64": "0.28.2",
+ "@esbuild/freebsd-x64": "0.28.2",
+ "@esbuild/linux-arm": "0.28.2",
+ "@esbuild/linux-arm64": "0.28.2",
+ "@esbuild/linux-ia32": "0.28.2",
+ "@esbuild/linux-loong64": "0.28.2",
+ "@esbuild/linux-mips64el": "0.28.2",
+ "@esbuild/linux-ppc64": "0.28.2",
+ "@esbuild/linux-riscv64": "0.28.2",
+ "@esbuild/linux-s390x": "0.28.2",
+ "@esbuild/linux-x64": "0.28.2",
+ "@esbuild/netbsd-arm64": "0.28.2",
+ "@esbuild/netbsd-x64": "0.28.2",
+ "@esbuild/openbsd-arm64": "0.28.2",
+ "@esbuild/openbsd-x64": "0.28.2",
+ "@esbuild/openharmony-arm64": "0.28.2",
+ "@esbuild/sunos-x64": "0.28.2",
+ "@esbuild/win32-arm64": "0.28.2",
+ "@esbuild/win32-ia32": "0.28.2",
+ "@esbuild/win32-x64": "0.28.2"
+ }
+ },
+ "node_modules/escalade": {
+ "version": "3.2.0",
+ "resolved": "https://registry.npmjs.org/escalade/-/escalade-3.2.0.tgz",
+ "integrity": "sha512-WUj2qlxaQtO4g6Pq5c29GTcWGDyd8itL8zTlipgECz3JesAiiOKotd8JU6otB3PACgG6xkJUyVhboMS+bje/jA==",
+ "dev": true,
+ "license": "MIT",
+ "engines": {
+ "node": ">=6"
+ }
+ },
+ "node_modules/escape-string-regexp": {
+ "version": "4.0.0",
+ "resolved": "https://registry.npmjs.org/escape-string-regexp/-/escape-string-regexp-4.0.0.tgz",
+ "integrity": "sha512-TtpcNJ3XAzx3Gq8sWRzJaVajRs0uVxA2YAkdb1jm2YkPz4G6egUFAyA3n5vtEIZefPk5Wa4UXbKuS5fKkJWdgA==",
+ "dev": true,
+ "license": "MIT",
+ "engines": {
+ "node": ">=10"
+ },
+ "funding": {
+ "url": "https://github.com/sponsors/sindresorhus"
+ }
+ },
+ "node_modules/eslint": {
+ "version": "10.12.0",
+ "resolved": "https://registry.npmjs.org/eslint/-/eslint-10.12.0.tgz",
+ "integrity": "sha512-npHjrHb2o4ehH3mE+YuxABR+0gyb0aVWCIolgJDArwCiHEIsonBm3ZKjel5b0U5+a+MbEvIyRCGCzD3eKKK2NA==",
+ "dev": true,
+ "license": "MIT",
+ "workspaces": [
+ "packages/*"
+ ],
+ "dependencies": {
+ "@eslint-community/eslint-utils": "^4.8.0",
+ "@eslint-community/regexpp": "^4.12.2",
+ "@eslint/config-array": "^0.23.5",
+ "@eslint/config-helpers": "^0.7.0",
+ "@eslint/core": "^1.2.1",
+ "@eslint/plugin-kit": "^0.7.3",
+ "@humanfs/node": "^0.16.6",
+ "@humanwhocodes/module-importer": "^1.0.1",
+ "@humanwhocodes/retry": "^0.4.2",
+ "@types/estree": "^1.0.6",
+ "ajv": "^6.14.0",
+ "cross-spawn": "^7.0.6",
+ "debug": "^4.3.2",
+ "escape-string-regexp": "^4.0.0",
+ "eslint-scope": "^9.1.2",
+ "eslint-visitor-keys": "^5.0.1",
+ "espree": "^11.2.0",
+ "esquery": "^1.7.0",
+ "esutils": "^2.0.2",
+ "fast-deep-equal": "^3.1.3",
+ "file-entry-cache": "11.1.5 || >11.1.6 <12",
+ "find-up": "^5.0.0",
+ "glob-parent": "^6.0.2",
+ "ignore": "^5.2.0",
+ "imurmurhash": "^0.1.4",
+ "is-glob": "^4.0.0",
+ "json-stable-stringify-without-jsonify": "^1.0.1",
+ "minimatch": "^10.2.5",
+ "natural-compare": "^1.4.0",
+ "optionator": "^0.9.3"
+ },
+ "bin": {
+ "eslint": "bin/eslint.js"
+ },
+ "engines": {
+ "node": "^20.19.0 || ^22.13.0 || >=24"
+ },
+ "funding": {
+ "url": "https://eslint.org/donate"
+ },
+ "peerDependencies": {
+ "jiti": "*"
+ },
+ "peerDependenciesMeta": {
+ "jiti": {
+ "optional": true
+ }
+ }
+ },
+ "node_modules/eslint-plugin-react-hooks": {
+ "version": "7.1.1",
+ "resolved": "https://registry.npmjs.org/eslint-plugin-react-hooks/-/eslint-plugin-react-hooks-7.1.1.tgz",
+ "integrity": "sha512-f2I7Gw6JbvCexzIInuSbZpfdQ44D7iqdWX01FKLvrPgqxoE7oMj8clOfto8U6vYiz4yd5oKu39rRSVOe1zRu0g==",
+ "dev": true,
+ "license": "MIT",
+ "dependencies": {
+ "@babel/core": "^7.24.4",
+ "@babel/parser": "^7.24.4",
+ "hermes-parser": "^0.25.1",
+ "zod": "^3.25.0 || ^4.0.0",
+ "zod-validation-error": "^3.5.0 || ^4.0.0"
+ },
+ "engines": {
+ "node": ">=18"
+ },
+ "peerDependencies": {
+ "eslint": "^3.0.0 || ^4.0.0 || ^5.0.0 || ^6.0.0 || ^7.0.0 || ^8.0.0-0 || ^9.0.0 || ^10.0.0"
+ }
+ },
+ "node_modules/eslint-scope": {
+ "version": "9.1.2",
+ "resolved": "https://registry.npmjs.org/eslint-scope/-/eslint-scope-9.1.2.tgz",
+ "integrity": "sha512-xS90H51cKw0jltxmvmHy2Iai1LIqrfbw57b79w/J7MfvDfkIkFZ+kj6zC3BjtUwh150HsSSdxXZcsuv72miDFQ==",
+ "dev": true,
+ "license": "BSD-2-Clause",
+ "dependencies": {
+ "@types/esrecurse": "^4.3.1",
+ "@types/estree": "^1.0.8",
+ "esrecurse": "^4.3.0",
+ "estraverse": "^5.2.0"
+ },
+ "engines": {
+ "node": "^20.19.0 || ^22.13.0 || >=24"
+ },
+ "funding": {
+ "url": "https://opencollective.com/eslint"
+ }
+ },
+ "node_modules/eslint-visitor-keys": {
+ "version": "5.0.1",
+ "resolved": "https://registry.npmjs.org/eslint-visitor-keys/-/eslint-visitor-keys-5.0.1.tgz",
+ "integrity": "sha512-tD40eHxA35h0PEIZNeIjkHoDR4YjjJp34biM0mDvplBe//mB+IHCqHDGV7pxF+7MklTvighcCPPZC7ynWyjdTA==",
+ "dev": true,
+ "license": "Apache-2.0",
+ "engines": {
+ "node": "^20.19.0 || ^22.13.0 || >=24"
+ },
+ "funding": {
+ "url": "https://opencollective.com/eslint"
+ }
+ },
+ "node_modules/espree": {
+ "version": "11.2.0",
+ "resolved": "https://registry.npmjs.org/espree/-/espree-11.2.0.tgz",
+ "integrity": "sha512-7p3DrVEIopW1B1avAGLuCSh1jubc01H2JHc8B4qqGblmg5gI9yumBgACjWo4JlIc04ufug4xJ3SQI8HkS/Rgzw==",
+ "dev": true,
+ "license": "BSD-2-Clause",
+ "dependencies": {
+ "acorn": "^8.16.0",
+ "acorn-jsx": "^5.3.2",
+ "eslint-visitor-keys": "^5.0.1"
+ },
+ "engines": {
+ "node": "^20.19.0 || ^22.13.0 || >=24"
+ },
+ "funding": {
+ "url": "https://opencollective.com/eslint"
+ }
+ },
+ "node_modules/esquery": {
+ "version": "1.7.0",
+ "resolved": "https://registry.npmjs.org/esquery/-/esquery-1.7.0.tgz",
+ "integrity": "sha512-Ap6G0WQwcU/LHsvLwON1fAQX9Zp0A2Y6Y/cJBl9r/JbW90Zyg4/zbG6zzKa2OTALELarYHmKu0GhpM5EO+7T0g==",
+ "dev": true,
+ "license": "BSD-3-Clause",
+ "dependencies": {
+ "estraverse": "^5.1.0"
+ },
+ "engines": {
+ "node": ">=0.10"
+ }
+ },
+ "node_modules/esrecurse": {
+ "version": "4.3.0",
+ "resolved": "https://registry.npmjs.org/esrecurse/-/esrecurse-4.3.0.tgz",
+ "integrity": "sha512-KmfKL3b6G+RXvP8N1vr3Tq1kL/oCFgn2NYXEtqP8/L3pKapUA4G8cFVaoF3SU323CD4XypR/ffioHmkti6/Tag==",
+ "dev": true,
+ "license": "BSD-2-Clause",
+ "dependencies": {
+ "estraverse": "^5.2.0"
+ },
+ "engines": {
+ "node": ">=4.0"
+ }
+ },
+ "node_modules/estraverse": {
+ "version": "5.3.0",
+ "resolved": "https://registry.npmjs.org/estraverse/-/estraverse-5.3.0.tgz",
+ "integrity": "sha512-MMdARuVEQziNTeJD8DgMqmhwR11BRQ/cBP+pLtYdSTnf3MIO8fFeiINEbX36ZdNlfU/7A9f3gUw49B3oQsvwBA==",
+ "dev": true,
+ "license": "BSD-2-Clause",
+ "engines": {
+ "node": ">=4.0"
+ }
+ },
+ "node_modules/esutils": {
+ "version": "2.0.3",
+ "resolved": "https://registry.npmjs.org/esutils/-/esutils-2.0.3.tgz",
+ "integrity": "sha512-kVscqXk4OCp68SZ0dkgEKVi6/8ij300KBWTJq32P/dYeWTSwK41WyTxalN1eRmA5Z9UU/LX9D7FWSmV9SAYx6g==",
+ "dev": true,
+ "license": "BSD-2-Clause",
+ "engines": {
+ "node": ">=0.10.0"
+ }
+ },
+ "node_modules/fast-deep-equal": {
+ "version": "3.1.3",
+ "resolved": "https://registry.npmjs.org/fast-deep-equal/-/fast-deep-equal-3.1.3.tgz",
+ "integrity": "sha512-f3qQ9oQy9j2AhBe/H9VC91wLmKBCCU/gDOnKNAYG5hswO7BLKj09Hc5HYNz9cGI++xlpDCIgDaitVs03ATR84Q==",
+ "dev": true,
+ "license": "MIT"
+ },
+ "node_modules/fast-glob": {
+ "version": "3.3.1",
+ "resolved": "https://registry.npmjs.org/fast-glob/-/fast-glob-3.3.1.tgz",
+ "integrity": "sha512-kNFPyjhh5cKjrUltxs+wFx+ZkbRaxxmZ+X0ZU31SOsxCEtP9VPgtq2teZw1DebupL5GmDaNQ6yKMMVcM41iqDg==",
+ "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.4"
+ },
+ "engines": {
+ "node": ">=8.6.0"
+ }
+ },
+ "node_modules/fast-glob/node_modules/glob-parent": {
+ "version": "5.1.2",
+ "resolved": "https://registry.npmjs.org/glob-parent/-/glob-parent-5.1.2.tgz",
+ "integrity": "sha512-AOIgSQCepiJYwP3ARnGx+5VnTu2HBYdzbGP45eLw1vr3zB3vZLeyed1sC9hnbcOc9/SrMyM5RPQrkGz4aS9Zow==",
+ "dev": true,
+ "license": "ISC",
+ "dependencies": {
+ "is-glob": "^4.0.1"
+ },
+ "engines": {
+ "node": ">= 6"
+ }
+ },
+ "node_modules/fast-json-stable-stringify": {
+ "version": "2.1.0",
+ "resolved": "https://registry.npmjs.org/fast-json-stable-stringify/-/fast-json-stable-stringify-2.1.0.tgz",
+ "integrity": "sha512-lhd/wF+Lk98HZoTCtlVraHtfh5XYijIjalXck7saUtuanSDyLMxnHhSXEDJqHxD7msR8D0uCmqlkwjCV8xvwHw==",
+ "dev": true,
+ "license": "MIT"
+ },
+ "node_modules/fast-levenshtein": {
+ "version": "2.0.6",
+ "resolved": "https://registry.npmjs.org/fast-levenshtein/-/fast-levenshtein-2.0.6.tgz",
+ "integrity": "sha512-DCXu6Ifhqcks7TZKY3Hxp3y6qphY5SJZmrWMDrKcERSOXWQdMhU9Ig/PYrzyw/ul9jOIyh0N4M0tbC5hodg8dw==",
+ "dev": true,
+ "license": "MIT"
+ },
+ "node_modules/fastq": {
+ "version": "1.20.3",
+ "resolved": "https://registry.npmjs.org/fastq/-/fastq-1.20.3.tgz",
+ "integrity": "sha512-XKv5nnLs6nLF71NgiKJLIZFLkPyIEuOselLG7ujZnGrRfQK8HpvY+WqKhAJUAdLomwVHErVS4LfxFlPq0/FTAw==",
+ "dev": true,
+ "license": "ISC",
+ "dependencies": {
+ "reusify": "^1.0.4"
+ }
+ },
+ "node_modules/file-entry-cache": {
+ "version": "11.1.5",
+ "resolved": "https://registry.npmjs.org/file-entry-cache/-/file-entry-cache-11.1.5.tgz",
+ "integrity": "sha512-+PFTHITI08JIGhnNpGNI8T8inUpgZfk3GNEqfT9R2zZV2iFXg3CvqzSl/uEhs7TSGujYRELEANyDvS8Fj7+S7Q==",
+ "dev": true,
+ "license": "MIT",
+ "dependencies": {
+ "flat-cache": "^6.1.23"
+ }
+ },
+ "node_modules/fill-range": {
+ "version": "7.1.1",
+ "resolved": "https://registry.npmjs.org/fill-range/-/fill-range-7.1.1.tgz",
+ "integrity": "sha512-YsGpe3WHLK8ZYi4tWDg2Jy3ebRz2rXowDxnld4bkQB00cc/1Zw9AWnC0i9ztDJitivtQvaI9KaLyKrc+hBW0yg==",
+ "dev": true,
+ "license": "MIT",
+ "dependencies": {
+ "to-regex-range": "^5.0.1"
+ },
+ "engines": {
+ "node": ">=8"
+ }
+ },
+ "node_modules/find-up": {
+ "version": "5.0.0",
+ "resolved": "https://registry.npmjs.org/find-up/-/find-up-5.0.0.tgz",
+ "integrity": "sha512-78/PXT1wlLLDgTzDs7sjq9hzz0vXD+zn+7wypEe4fXQxCmdmqfGsEPQxmiCSQI3ajFV91bVSsvNtrJRiW6nGng==",
+ "dev": true,
+ "license": "MIT",
+ "dependencies": {
+ "locate-path": "^6.0.0",
+ "path-exists": "^4.0.0"
+ },
+ "engines": {
+ "node": ">=10"
+ },
+ "funding": {
+ "url": "https://github.com/sponsors/sindresorhus"
+ }
+ },
+ "node_modules/flat-cache": {
+ "version": "6.1.23",
+ "resolved": "https://registry.npmjs.org/flat-cache/-/flat-cache-6.1.23.tgz",
+ "integrity": "sha512-f++BY9pTk+983xK1FLzlLpmM0i0z+jHmx3QESGkURMXujQZz1k5wzwX6hjnQ8goaD0B+sYnDK1yZ6MTyZfUaqA==",
+ "dev": true,
+ "license": "MIT",
+ "dependencies": {
+ "cacheable": "^2.5.0",
+ "flatted": "^3.4.2",
+ "hookified": "^1.15.0"
+ }
+ },
+ "node_modules/flatted": {
+ "version": "3.4.4",
+ "resolved": "https://registry.npmjs.org/flatted/-/flatted-3.4.4.tgz",
+ "integrity": "sha512-5+ybhBZANEJxaH3X5evAFatUxLfEHSr7n6kYJ+1Qd0mUqr4eu9gIf6GDbWHf8RJijHrjjO8G+la14SlL2SeS1Q==",
+ "dev": true,
+ "license": "ISC"
+ },
+ "node_modules/fsevents": {
+ "version": "2.3.3",
+ "resolved": "https://registry.npmjs.org/fsevents/-/fsevents-2.3.3.tgz",
+ "integrity": "sha512-5xoDfX+fL7faATnagmWPpbFtwh/R77WmMMqqHGS65C3vvB0YHrgF+B1YmZ3441tMj5n63k0212XNoJwzlhffQw==",
+ "dev": true,
+ "hasInstallScript": true,
+ "license": "MIT",
+ "optional": true,
+ "os": [
+ "darwin"
+ ],
+ "engines": {
+ "node": "^8.16.0 || ^10.6.0 || >=11.0.0"
+ }
+ },
+ "node_modules/gensync": {
+ "version": "1.0.0-beta.2",
+ "resolved": "https://registry.npmjs.org/gensync/-/gensync-1.0.0-beta.2.tgz",
+ "integrity": "sha512-3hN7NaskYvMDLQY55gnW3NQ+mesEAepTqlg+VEbj7zzqEMBVNhzcGYYeqFo/TlYz6eQiFcp1HcsCZO+nGgS8zg==",
+ "dev": true,
+ "license": "MIT",
+ "engines": {
+ "node": ">=6.9.0"
+ }
+ },
+ "node_modules/glob-parent": {
+ "version": "6.0.2",
+ "resolved": "https://registry.npmjs.org/glob-parent/-/glob-parent-6.0.2.tgz",
+ "integrity": "sha512-XxwI8EOhVQgWp6iDL+3b0r86f4d6AX6zSU55HfB4ydCEuXLXc5FcYeOu+nnGftS4TEju/11rt4KJPTMgbfmv4A==",
+ "dev": true,
+ "license": "ISC",
+ "dependencies": {
+ "is-glob": "^4.0.3"
+ },
+ "engines": {
+ "node": ">=10.13.0"
+ }
+ },
+ "node_modules/hashery": {
+ "version": "1.5.1",
+ "resolved": "https://registry.npmjs.org/hashery/-/hashery-1.5.1.tgz",
+ "integrity": "sha512-iZyKG96/JwPz1N55vj2Ie2vXbhu440zfUfJvSwEqEbeLluk7NnapfGqa7LH0mOsnDxTF85Mx8/dyR6HfqcbmbQ==",
+ "dev": true,
+ "license": "MIT",
+ "dependencies": {
+ "hookified": "^1.15.0"
+ },
+ "engines": {
+ "node": ">=20"
+ }
+ },
+ "node_modules/hermes-estree": {
+ "version": "0.25.1",
+ "resolved": "https://registry.npmjs.org/hermes-estree/-/hermes-estree-0.25.1.tgz",
+ "integrity": "sha512-0wUoCcLp+5Ev5pDW2OriHC2MJCbwLwuRx+gAqMTOkGKJJiBCLjtrvy4PWUGn6MIVefecRpzoOZ/UV6iGdOr+Cw==",
+ "dev": true,
+ "license": "MIT"
+ },
+ "node_modules/hermes-parser": {
+ "version": "0.25.1",
+ "resolved": "https://registry.npmjs.org/hermes-parser/-/hermes-parser-0.25.1.tgz",
+ "integrity": "sha512-6pEjquH3rqaI6cYAXYPcz9MS4rY6R4ngRgrgfDshRptUZIc3lw0MCIJIGDj9++mfySOuPTHB4nrSW99BCvOPIA==",
+ "dev": true,
+ "license": "MIT",
+ "dependencies": {
+ "hermes-estree": "0.25.1"
+ }
+ },
+ "node_modules/hookified": {
+ "version": "1.15.1",
+ "resolved": "https://registry.npmjs.org/hookified/-/hookified-1.15.1.tgz",
+ "integrity": "sha512-MvG/clsADq1GPM2KGo2nyfaWVyn9naPiXrqIe4jYjXNZQt238kWyOGrsyc/DmRAQ+Re6yeo6yX/yoNCG5KAEVg==",
+ "dev": true,
+ "license": "MIT"
+ },
+ "node_modules/ignore": {
+ "version": "5.3.2",
+ "resolved": "https://registry.npmjs.org/ignore/-/ignore-5.3.2.tgz",
+ "integrity": "sha512-hsBTNUqQTDwkWtcdYI2i06Y/nUBEsNEDJKjWdigLvegy8kDuJAS8uRlpkkcQpyEXL0Z/pjDy5HBmMjRCJ2gq+g==",
+ "dev": true,
+ "license": "MIT",
+ "engines": {
+ "node": ">= 4"
+ }
+ },
+ "node_modules/imurmurhash": {
+ "version": "0.1.4",
+ "resolved": "https://registry.npmjs.org/imurmurhash/-/imurmurhash-0.1.4.tgz",
+ "integrity": "sha512-JmXMZ6wuvDmLiHEml9ykzqO6lwFbof0GG4IkcGaENdCRDDmMVnny7s5HsIgHCbaq0w2MyPhDqkhTUgS2LU2PHA==",
+ "dev": true,
+ "license": "MIT",
+ "engines": {
+ "node": ">=0.8.19"
+ }
+ },
+ "node_modules/is-extglob": {
+ "version": "2.1.1",
+ "resolved": "https://registry.npmjs.org/is-extglob/-/is-extglob-2.1.1.tgz",
+ "integrity": "sha512-SbKbANkN603Vi4jEZv49LeVJMn4yGwsbzZworEoyEiutsN3nJYdbO36zfhGJ6QEDpOZIFkDtnq5JRxmvl3jsoQ==",
+ "dev": true,
+ "license": "MIT",
+ "engines": {
+ "node": ">=0.10.0"
+ }
+ },
+ "node_modules/is-glob": {
+ "version": "4.0.3",
+ "resolved": "https://registry.npmjs.org/is-glob/-/is-glob-4.0.3.tgz",
+ "integrity": "sha512-xelSayHH36ZgE7ZWhli7pW34hNbNl8Ojv5KVmkJD4hBdD3th8Tfk9vYasLM+mXWOZhFkgZfxhLSnrwRr4elSSg==",
+ "dev": true,
+ "license": "MIT",
+ "dependencies": {
+ "is-extglob": "^2.1.1"
+ },
+ "engines": {
+ "node": ">=0.10.0"
+ }
+ },
+ "node_modules/is-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/isexe": {
+ "version": "2.0.0",
+ "resolved": "https://registry.npmjs.org/isexe/-/isexe-2.0.0.tgz",
+ "integrity": "sha512-RHxMLp9lnKHGHRng9QFhRCMbYAcVpn69smSGcq3f36xjgVVWThj4qqLbTLlq7Ssj8B+fIQ1EuCEGI2lKsyQeIw==",
+ "dev": true,
+ "license": "ISC"
+ },
+ "node_modules/js-tokens": {
+ "version": "4.0.0",
+ "resolved": "https://registry.npmjs.org/js-tokens/-/js-tokens-4.0.0.tgz",
+ "integrity": "sha512-RdJUflcE3cUzKiMqQgsCu06FPu9UdIJO0beYbPhHN4k6apgJtifcoCtT9bcxOpYBtpD2kCM6Sbzg4CausW/PKQ==",
+ "dev": true,
+ "license": "MIT"
+ },
+ "node_modules/jsesc": {
+ "version": "3.1.0",
+ "resolved": "https://registry.npmjs.org/jsesc/-/jsesc-3.1.0.tgz",
+ "integrity": "sha512-/sM3dO2FOzXjKQhJuo0Q173wf2KOo8t4I8vHy6lF9poUp7bKT0/NHE8fPX23PwfhnykfqnC2xRxOnVw5XuGIaA==",
+ "dev": true,
+ "license": "MIT",
+ "bin": {
+ "jsesc": "bin/jsesc"
+ },
+ "engines": {
+ "node": ">=6"
+ }
+ },
+ "node_modules/json-schema-traverse": {
+ "version": "0.4.1",
+ "resolved": "https://registry.npmjs.org/json-schema-traverse/-/json-schema-traverse-0.4.1.tgz",
+ "integrity": "sha512-xbbCH5dCYU5T8LcEhhuh7HJ88HXuW3qsI3Y0zOZFKfZEHcpWiHU/Jxzk629Brsab/mMiHQti9wMP+845RPe3Vg==",
+ "dev": true,
+ "license": "MIT"
+ },
+ "node_modules/json-stable-stringify-without-jsonify": {
+ "version": "1.0.1",
+ "resolved": "https://registry.npmjs.org/json-stable-stringify-without-jsonify/-/json-stable-stringify-without-jsonify-1.0.1.tgz",
+ "integrity": "sha512-Bdboy+l7tA3OGW6FjyFHWkP5LuByj1Tk33Ljyq0axyzdk9//JSi2u3fP1QSmd1KNwq6VOKYGlAu87CisVir6Pw==",
+ "dev": true,
+ "license": "MIT"
+ },
+ "node_modules/json5": {
+ "version": "2.2.3",
+ "resolved": "https://registry.npmjs.org/json5/-/json5-2.2.3.tgz",
+ "integrity": "sha512-XmOWe7eyHYH14cLdVPoyg+GOH3rYX++KpzrylJwSW98t3Nk+U8XOl8FWKOgwtzdb8lXGf6zYwDUzeHMWfxasyg==",
+ "dev": true,
+ "license": "MIT",
+ "bin": {
+ "json5": "lib/cli.js"
+ },
+ "engines": {
+ "node": ">=6"
+ }
+ },
+ "node_modules/keyv": {
+ "version": "5.6.0",
+ "resolved": "https://registry.npmjs.org/keyv/-/keyv-5.6.0.tgz",
+ "integrity": "sha512-CYDD3SOtsHtyXeEORYRx2qBtpDJFjRTGXUtmNEMGyzYOKj1TE3tycdlho7kA1Ufx9OYWZzg52QFBGALTirzDSw==",
+ "dev": true,
+ "license": "MIT",
+ "dependencies": {
+ "@keyv/serialize": "^1.1.1"
+ }
+ },
+ "node_modules/levn": {
+ "version": "0.4.1",
+ "resolved": "https://registry.npmjs.org/levn/-/levn-0.4.1.tgz",
+ "integrity": "sha512-+bT2uH4E5LGE7h/n3evcS/sQlJXCpIp6ym8OWJ5eV6+67Dsql/LaaT7qJBAt2rzfoa/5QBGBhxDix1dMt2kQKQ==",
+ "dev": true,
+ "license": "MIT",
+ "dependencies": {
+ "prelude-ls": "^1.2.1",
+ "type-check": "~0.4.0"
+ },
+ "engines": {
+ "node": ">= 0.8.0"
+ }
+ },
+ "node_modules/locate-path": {
+ "version": "6.0.0",
+ "resolved": "https://registry.npmjs.org/locate-path/-/locate-path-6.0.0.tgz",
+ "integrity": "sha512-iPZK6eYjbxRu3uB4/WZ3EsEIMJFMqAoopl3R+zuq0UjcAm/MO6KCweDgPfP3elTztoKP3KtnVHxTn2NHBSDVUw==",
+ "dev": true,
+ "license": "MIT",
+ "dependencies": {
+ "p-locate": "^5.0.0"
+ },
+ "engines": {
+ "node": ">=10"
+ },
+ "funding": {
+ "url": "https://github.com/sponsors/sindresorhus"
+ }
+ },
+ "node_modules/lru-cache": {
+ "version": "5.1.1",
+ "resolved": "https://registry.npmjs.org/lru-cache/-/lru-cache-5.1.1.tgz",
+ "integrity": "sha512-KpNARQA3Iwv+jTA0utUVVbrh+Jlrr1Fv0e56GGzAFOXN7dk/FviaDW8LHmK52DlcH4WP2n6gI8vN1aesBFgo9w==",
+ "dev": true,
+ "license": "ISC",
+ "dependencies": {
+ "yallist": "^3.0.2"
+ }
+ },
+ "node_modules/merge2": {
+ "version": "1.4.1",
+ "resolved": "https://registry.npmjs.org/merge2/-/merge2-1.4.1.tgz",
+ "integrity": "sha512-8q7VEgMJW4J8tcfVPy8g09NcQwZdbwFEqhe/WZkoIzjn/3TGDwtOCYtXGxA3O8tPzpczCCDgv+P2P5y00ZJOOg==",
+ "dev": true,
+ "license": "MIT",
+ "engines": {
+ "node": ">= 8"
+ }
+ },
+ "node_modules/micromatch": {
+ "version": "4.0.8",
+ "resolved": "https://registry.npmjs.org/micromatch/-/micromatch-4.0.8.tgz",
+ "integrity": "sha512-PXwfBhYu0hBCPw8Dn0E+WDYb7af3dSLVWKi3HGv84IdF4TyFoC0ysxFd0Goxw7nSv4T/PzEJQxsYsEiFCKo2BA==",
+ "dev": true,
+ "license": "MIT",
+ "dependencies": {
+ "braces": "^3.0.3",
+ "picomatch": "^2.3.1"
+ },
+ "engines": {
+ "node": ">=8.6"
+ }
+ },
+ "node_modules/minimatch": {
+ "version": "10.2.6",
+ "resolved": "https://registry.npmjs.org/minimatch/-/minimatch-10.2.6.tgz",
+ "integrity": "sha512-vpLQEs+VLCr1nU0BXS07maYoFwlDAH0gngQuuttxIwutDFEMHq2blX+8vpgxDdK3J1PwjCJiep77OitTZ4Ll1A==",
+ "dev": true,
+ "license": "BlueOak-1.0.0",
+ "dependencies": {
+ "brace-expansion": "^5.0.8"
+ },
+ "engines": {
+ "node": "18 || 20 || >=22"
+ },
+ "funding": {
+ "url": "https://github.com/sponsors/isaacs"
+ }
+ },
+ "node_modules/ms": {
+ "version": "2.1.3",
+ "resolved": "https://registry.npmjs.org/ms/-/ms-2.1.3.tgz",
+ "integrity": "sha512-6FlzubTLZG3J2a/NVCAleEhjzq5oxgHyaCU9yYXvcLsvoVaHJq/s5xXI6/XXP6tz7R9xAOtHnSO/tXtF3WRTlA==",
+ "dev": true,
+ "license": "MIT"
+ },
+ "node_modules/nanoid": {
+ "version": "3.3.19",
+ "resolved": "https://registry.npmjs.org/nanoid/-/nanoid-3.3.19.tgz",
+ "integrity": "sha512-Y2tUNy4ouw6tq5oDSKeQYGOyhkUBhNOcGV/02KC+6kd9eDGqdZd++mjMiIDilrBYvjEnCYvVtsuHCuP+okSfug==",
+ "funding": [
+ {
+ "type": "github",
+ "url": "https://github.com/sponsors/ai"
+ }
+ ],
+ "license": "MIT",
+ "bin": {
+ "nanoid": "bin/nanoid.cjs"
+ },
+ "engines": {
+ "node": "^10 || ^12 || ^13.7 || ^14 || >=15.0.1"
+ }
+ },
+ "node_modules/natural-compare": {
+ "version": "1.4.0",
+ "resolved": "https://registry.npmjs.org/natural-compare/-/natural-compare-1.4.0.tgz",
+ "integrity": "sha512-OWND8ei3VtNC9h7V60qff3SVobHr996CTwgxubgyQYEpg290h9J0buyECNNJexkFm5sOajh5G116RYA1c8ZMSw==",
+ "dev": true,
+ "license": "MIT"
+ },
+ "node_modules/next": {
+ "version": "16.3.8",
+ "resolved": "https://registry.npmjs.org/next/-/next-16.3.8.tgz",
+ "integrity": "sha512-U7QEZaTini6wKrb8A8hqLLqYQyCetegKjCpJOyxk642vWoMoU1x5PyZCJFvgYgiptA8xc5j/9xYlZFO7w9Sjmw==",
+ "license": "MIT",
+ "dependencies": {
+ "@next/env": "16.3.8",
+ "@swc/helpers": "0.5.23",
+ "baseline-browser-mapping": "^2.9.19",
+ "caniuse-lite": "^1.0.30001579",
+ "postcss": "8.5.23",
+ "styled-jsx": "5.1.6"
+ },
+ "bin": {
+ "next": "dist/bin/next"
+ },
+ "engines": {
+ "node": ">=20.9.0"
+ },
+ "optionalDependencies": {
+ "@next/swc-darwin-arm64": "16.3.8",
+ "@next/swc-darwin-x64": "16.3.8",
+ "@next/swc-linux-arm64-gnu": "16.3.8",
+ "@next/swc-linux-arm64-musl": "16.3.8",
+ "@next/swc-linux-x64-gnu": "16.3.8",
+ "@next/swc-linux-x64-musl": "16.3.8",
+ "@next/swc-win32-arm64-msvc": "16.3.8",
+ "@next/swc-win32-x64-msvc": "16.3.8",
+ "sharp": "^0.35.4"
+ },
+ "peerDependencies": {
+ "@opentelemetry/api": "^1.1.0",
+ "@playwright/test": "^1.51.1",
+ "babel-plugin-react-compiler": "*",
+ "react": "^18.2.0 || 19.0.0-rc-de68d2f4-20241204 || ^19.0.0",
+ "react-dom": "^18.2.0 || 19.0.0-rc-de68d2f4-20241204 || ^19.0.0",
+ "sass": "^1.3.0"
+ },
+ "peerDependenciesMeta": {
+ "@opentelemetry/api": {
+ "optional": true
+ },
+ "@playwright/test": {
+ "optional": true
+ },
+ "babel-plugin-react-compiler": {
+ "optional": true
+ },
+ "sass": {
+ "optional": true
+ }
+ }
+ },
+ "node_modules/node-releases": {
+ "version": "2.0.57",
+ "resolved": "https://registry.npmjs.org/node-releases/-/node-releases-2.0.57.tgz",
+ "integrity": "sha512-kQK9LGGFiHtrWiNhZtA7Qbw17AQz+dmsEKODRIVTXA9+e5MS/2gZEBhYJt13GrAz5/IOZKddH/0Z3TP/Zgo+yw==",
+ "dev": true,
+ "license": "MIT",
+ "engines": {
+ "node": ">=18"
+ }
+ },
+ "node_modules/optionator": {
+ "version": "0.9.4",
+ "resolved": "https://registry.npmjs.org/optionator/-/optionator-0.9.4.tgz",
+ "integrity": "sha512-6IpQ7mKUxRcZNLIObR0hz7lxsapSSIYNZJwXPGeF0mTVqGKFIXj1DQcMoT22S3ROcLyY/rz0PWaWZ9ayWmad9g==",
+ "dev": true,
+ "license": "MIT",
+ "dependencies": {
+ "deep-is": "^0.1.3",
+ "fast-levenshtein": "^2.0.6",
+ "levn": "^0.4.1",
+ "prelude-ls": "^1.2.1",
+ "type-check": "^0.4.0",
+ "word-wrap": "^1.2.5"
+ },
+ "engines": {
+ "node": ">= 0.8.0"
+ }
+ },
+ "node_modules/p-limit": {
+ "version": "3.1.0",
+ "resolved": "https://registry.npmjs.org/p-limit/-/p-limit-3.1.0.tgz",
+ "integrity": "sha512-TYOanM3wGwNGsZN2cVTYPArw454xnXj5qmWF1bEoAc4+cU/ol7GVh7odevjp1FNHduHc3KZMcFduxU5Xc6uJRQ==",
+ "dev": true,
+ "license": "MIT",
+ "dependencies": {
+ "yocto-queue": "^0.1.0"
+ },
+ "engines": {
+ "node": ">=10"
+ },
+ "funding": {
+ "url": "https://github.com/sponsors/sindresorhus"
+ }
+ },
+ "node_modules/p-locate": {
+ "version": "5.0.0",
+ "resolved": "https://registry.npmjs.org/p-locate/-/p-locate-5.0.0.tgz",
+ "integrity": "sha512-LaNjtRWUBY++zB5nE/NwcaoMylSPk+S+ZHNB1TzdbMJMny6dynpAGt7X/tl/QYq3TIeE6nxHppbo2LGymrG5Pw==",
+ "dev": true,
+ "license": "MIT",
+ "dependencies": {
+ "p-limit": "^3.0.2"
+ },
+ "engines": {
+ "node": ">=10"
+ },
+ "funding": {
+ "url": "https://github.com/sponsors/sindresorhus"
+ }
+ },
+ "node_modules/path-exists": {
+ "version": "4.0.0",
+ "resolved": "https://registry.npmjs.org/path-exists/-/path-exists-4.0.0.tgz",
+ "integrity": "sha512-ak9Qy5Q7jYb2Wwcey5Fpvg2KoAc/ZIhLSLOSBmRmygPsGwkVVt0fZa0qrtMz+m6tJTAHfZQ8FnmB4MG4LWy7/w==",
+ "dev": true,
+ "license": "MIT",
+ "engines": {
+ "node": ">=8"
+ }
+ },
+ "node_modules/path-key": {
+ "version": "3.1.1",
+ "resolved": "https://registry.npmjs.org/path-key/-/path-key-3.1.1.tgz",
+ "integrity": "sha512-ojmeN0qd+y0jszEtoY48r0Peq5dwMEkIlCOu6Q5f41lfkswXuKtYrhgoTpLnyIcHm24Uhqx+5Tqm2InSwLhE6Q==",
+ "dev": true,
+ "license": "MIT",
+ "engines": {
+ "node": ">=8"
+ }
+ },
+ "node_modules/picocolors": {
+ "version": "1.1.1",
+ "resolved": "https://registry.npmjs.org/picocolors/-/picocolors-1.1.1.tgz",
+ "integrity": "sha512-xceH2snhtb5M9liqDsmEw56le376mTZkEX/jEb/RxNFyegNul7eNslCXP9FDj/Lcu0X8KEyMceP2ntpaHrDEVA==",
+ "license": "ISC"
+ },
+ "node_modules/picomatch": {
+ "version": "2.3.2",
+ "resolved": "https://registry.npmjs.org/picomatch/-/picomatch-2.3.2.tgz",
+ "integrity": "sha512-V7+vQEJ06Z+c5tSye8S+nHUfI51xoXIXjHQ99cQtKUkQqqO1kO/KCJUfZXuB47h/YBlDhah2H3hdUGXn8ie0oA==",
+ "dev": true,
+ "license": "MIT",
+ "engines": {
+ "node": ">=8.6"
+ },
+ "funding": {
+ "url": "https://github.com/sponsors/jonschlinkert"
+ }
+ },
+ "node_modules/postcss": {
+ "version": "8.5.23",
+ "resolved": "https://registry.npmjs.org/postcss/-/postcss-8.5.23.tgz",
+ "integrity": "sha512-g50586zr4bZmwFiTlflMu8E0bDTb5I5gertgwAKmsdUlTQIhZtunzUlD1WSzwcVWPoAVpsrA6vlfCD7oXvRwgg==",
+ "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.16",
+ "picocolors": "^1.1.1",
+ "source-map-js": "^1.2.1"
+ },
+ "engines": {
+ "node": "^10 || ^12 || >=14"
+ }
+ },
+ "node_modules/prelude-ls": {
+ "version": "1.2.1",
+ "resolved": "https://registry.npmjs.org/prelude-ls/-/prelude-ls-1.2.1.tgz",
+ "integrity": "sha512-vkcDPrRZo1QZLbn5RLGPpg/WmIQ65qoWWhcGKf/b5eplkkarX0m9z8ppCat4mlOqUsWpyNuYgO3VRyrYHSzX5g==",
+ "dev": true,
+ "license": "MIT",
+ "engines": {
+ "node": ">= 0.8.0"
+ }
+ },
+ "node_modules/prettier": {
+ "version": "3.9.9",
+ "resolved": "https://registry.npmjs.org/prettier/-/prettier-3.9.9.tgz",
+ "integrity": "sha512-Z/CJHIkdujO/OtN7nXUii0Rf3VT5SRuhjBA82Xvu2XhBUgX3nhP67T0LHceBdQLex7OOFGTox+Q5Yg8Jk2Qivg==",
+ "dev": true,
+ "license": "MIT",
+ "bin": {
+ "prettier": "bin/prettier.cjs"
+ },
+ "engines": {
+ "node": ">=14"
+ },
+ "funding": {
+ "url": "https://github.com/prettier/prettier?sponsor=1"
+ }
+ },
+ "node_modules/punycode": {
+ "version": "2.3.1",
+ "resolved": "https://registry.npmjs.org/punycode/-/punycode-2.3.1.tgz",
+ "integrity": "sha512-vYt7UD1U9Wg6138shLtLOvdAu+8DsC/ilFtEVHcH+wydcSpNE20AfSOduf6MkRFahL5FY7X1oU7nKVZFtfq8Fg==",
+ "dev": true,
+ "license": "MIT",
+ "engines": {
+ "node": ">=6"
+ }
+ },
+ "node_modules/qified": {
+ "version": "0.10.1",
+ "resolved": "https://registry.npmjs.org/qified/-/qified-0.10.1.tgz",
+ "integrity": "sha512-+Owyggi9IxT1ePKGafcI87ubSmxol6smwJ+RAHDQlx9+9cPwFWDiKFFCPuWhr9ignlGpZ9vDQLw67N4dcTVFEA==",
+ "dev": true,
+ "license": "MIT",
+ "dependencies": {
+ "hookified": "^2.1.1"
+ },
+ "engines": {
+ "node": ">=20"
+ }
+ },
+ "node_modules/qified/node_modules/hookified": {
+ "version": "2.2.0",
+ "resolved": "https://registry.npmjs.org/hookified/-/hookified-2.2.0.tgz",
+ "integrity": "sha512-p/LgFzRN5FeoD3DLS6bkUapeye6E4SI6yJs6KetENd18S+FBthqYq2amJUWpt5z0EQwwHemidjY5OqJGEKm5uA==",
+ "dev": true,
+ "license": "MIT"
+ },
+ "node_modules/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/react": {
+ "version": "19.3.0",
+ "resolved": "https://registry.npmjs.org/react/-/react-19.3.0.tgz",
+ "integrity": "sha512-E8LUcbtBWt20bbl2YoHfx4ZDBdxVTfOKtCZn9cDSJ4l6/nuoApcpIBcj47t2wZoVX8g2ZHuMHbiShgCR1T5Sog==",
+ "license": "MIT",
+ "engines": {
+ "node": ">=0.10.0"
+ }
+ },
+ "node_modules/react-dom": {
+ "version": "19.3.0",
+ "resolved": "https://registry.npmjs.org/react-dom/-/react-dom-19.3.0.tgz",
+ "integrity": "sha512-JDk8dgif51OjFoDE70+OT9ICyYr+69HlmihNwp1+Nsfbna3t5sIiCa9ZJktDmQ4/1b/rn26hIAR2uYXDMr5r0Q==",
+ "license": "MIT",
+ "dependencies": {
+ "scheduler": "^0.28.0"
+ },
+ "peerDependencies": {
+ "react": "^19.3.0"
+ }
+ },
+ "node_modules/reusify": {
+ "version": "1.1.0",
+ "resolved": "https://registry.npmjs.org/reusify/-/reusify-1.1.0.tgz",
+ "integrity": "sha512-g6QUff04oZpHs0eG5p83rFLhHeV00ug/Yf9nZM6fLeUrPguBTkTQOdpAWWspMh55TZfVQDPaN3NQJfbVRAxdIw==",
+ "dev": true,
+ "license": "MIT",
+ "engines": {
+ "iojs": ">=1.0.0",
+ "node": ">=0.10.0"
+ }
+ },
+ "node_modules/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/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/semver": {
+ "version": "7.8.5",
+ "resolved": "https://registry.npmjs.org/semver/-/semver-7.8.5.tgz",
+ "integrity": "sha512-Y7/KDsb8LjooZpwaqGyulO6DQlksgCncchHGk+sZIY4SBvUocMBEFH5Ur1fI4dV+Jvl0w6cjvucaIi40puRioA==",
+ "license": "ISC",
+ "bin": {
+ "semver": "bin/semver.js"
+ },
+ "engines": {
+ "node": ">=10"
+ }
+ },
+ "node_modules/sharp": {
+ "version": "0.35.5",
+ "resolved": "https://registry.npmjs.org/sharp/-/sharp-0.35.5.tgz",
+ "integrity": "sha512-Ywn4OnzGukp7CDMrp08RQ50YKmuwG47brZgIVPTvBaaAfQlRlygrRqSrxdCiL9M+LlzLBiJ68IR1QqvzHyjC7g==",
+ "license": "Apache-2.0",
+ "dependencies": {
+ "@img/colour": "^1.1.0",
+ "detect-libc": "^2.1.2",
+ "semver": "^7.8.5"
+ },
+ "engines": {
+ "node": ">=20.9.0"
+ },
+ "funding": {
+ "url": "https://opencollective.com/libvips"
+ },
+ "optionalDependencies": {
+ "@img/sharp-darwin-arm64": "0.35.5",
+ "@img/sharp-darwin-x64": "0.35.5",
+ "@img/sharp-freebsd-wasm32": "0.35.5",
+ "@img/sharp-libvips-darwin-arm64": "1.3.4",
+ "@img/sharp-libvips-darwin-x64": "1.3.4",
+ "@img/sharp-libvips-linux-arm": "1.3.4",
+ "@img/sharp-libvips-linux-arm64": "1.3.4",
+ "@img/sharp-libvips-linux-ppc64": "1.3.4",
+ "@img/sharp-libvips-linux-riscv64": "1.3.4",
+ "@img/sharp-libvips-linux-s390x": "1.3.4",
+ "@img/sharp-libvips-linux-x64": "1.3.4",
+ "@img/sharp-libvips-linuxmusl-arm64": "1.3.4",
+ "@img/sharp-libvips-linuxmusl-x64": "1.3.4",
+ "@img/sharp-linux-arm": "0.35.5",
+ "@img/sharp-linux-arm64": "0.35.5",
+ "@img/sharp-linux-ppc64": "0.35.5",
+ "@img/sharp-linux-riscv64": "0.35.5",
+ "@img/sharp-linux-s390x": "0.35.5",
+ "@img/sharp-linux-x64": "0.35.5",
+ "@img/sharp-linuxmusl-arm64": "0.35.5",
+ "@img/sharp-linuxmusl-x64": "0.35.5",
+ "@img/sharp-webcontainers-wasm32": "0.35.5",
+ "@img/sharp-win32-arm64": "0.35.5",
+ "@img/sharp-win32-ia32": "0.35.5",
+ "@img/sharp-win32-x64": "0.35.5"
+ },
+ "peerDependenciesMeta": {
+ "@types/node": {
+ "optional": true
+ }
+ }
+ },
+ "node_modules/shebang-command": {
+ "version": "2.0.0",
+ "resolved": "https://registry.npmjs.org/shebang-command/-/shebang-command-2.0.0.tgz",
+ "integrity": "sha512-kHxr2zZpYtdmrN1qDjrrX/Z1rR1kG8Dx+gkpK1G4eXmvXswmcE1hTWBWYUzlraYw1/yZp6YuDY77YtvbN0dmDA==",
+ "dev": true,
+ "license": "MIT",
+ "dependencies": {
+ "shebang-regex": "^3.0.0"
+ },
+ "engines": {
+ "node": ">=8"
+ }
+ },
+ "node_modules/shebang-regex": {
+ "version": "3.0.0",
+ "resolved": "https://registry.npmjs.org/shebang-regex/-/shebang-regex-3.0.0.tgz",
+ "integrity": "sha512-7++dFhtcx3353uBaq8DDR4NuxBetBzC7ZQOhmTQInHEd6bSrXdiEyzCvG07Z44UYdLShWUyXt5M/yhz8ekcb1A==",
+ "dev": true,
+ "license": "MIT",
+ "engines": {
+ "node": ">=8"
+ }
+ },
+ "node_modules/source-map-js": {
+ "version": "1.2.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/styled-jsx": {
+ "version": "5.1.6",
+ "resolved": "https://registry.npmjs.org/styled-jsx/-/styled-jsx-5.1.6.tgz",
+ "integrity": "sha512-qSVyDTeMotdvQYoHWLNGwRFJHC+i+ZvdBRYosOFgC+Wg1vx4frN2/RG/NA7SYqqvKNLf39P2LSRA2pu6n0XYZA==",
+ "license": "MIT",
+ "dependencies": {
+ "client-only": "0.0.1"
+ },
+ "engines": {
+ "node": ">= 12.0.0"
+ },
+ "peerDependencies": {
+ "react": ">= 16.8.0 || 17.x.x || ^18.0.0-0 || ^19.0.0-0"
+ },
+ "peerDependenciesMeta": {
+ "@babel/core": {
+ "optional": true
+ },
+ "babel-plugin-macros": {
+ "optional": true
+ }
+ }
+ },
+ "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/tinyglobby/node_modules/fdir": {
+ "version": "6.5.0",
+ "resolved": "https://registry.npmjs.org/fdir/-/fdir-6.5.0.tgz",
+ "integrity": "sha512-tIbYtZbucOs0BRGqPJkshJUYdL+SDH7dVM8gjy+ERp3WAUjLEFJE+02kanyHtwjWOnwrKYBiwAmM0p4kLJAnXg==",
+ "dev": true,
+ "license": "MIT",
+ "engines": {
+ "node": ">=12.0.0"
+ },
+ "peerDependencies": {
+ "picomatch": "^3 || ^4"
+ },
+ "peerDependenciesMeta": {
+ "picomatch": {
+ "optional": true
+ }
+ }
+ },
+ "node_modules/tinyglobby/node_modules/picomatch": {
+ "version": "4.0.7",
+ "resolved": "https://registry.npmjs.org/picomatch/-/picomatch-4.0.7.tgz",
+ "integrity": "sha512-qcJu88Q2IWqJsDD529JKMdwGm/dvInW4HvQnRwiH9JtihJvzGOscDtHE3x1pBKeUOTysQ8kVmLnJ2kJu7yhcGA==",
+ "dev": true,
+ "license": "MIT",
+ "engines": {
+ "node": ">=12"
+ },
+ "funding": {
+ "url": "https://github.com/sponsors/jonschlinkert"
+ }
+ },
+ "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/ts-api-utils": {
+ "version": "2.5.0",
+ "resolved": "https://registry.npmjs.org/ts-api-utils/-/ts-api-utils-2.5.0.tgz",
+ "integrity": "sha512-OJ/ibxhPlqrMM0UiNHJ/0CKQkoKF243/AEmplt3qpRgkW8VG7IfOS41h7V8TjITqdByHzrjcS/2si+y4lIh8NA==",
+ "dev": true,
+ "license": "MIT",
+ "engines": {
+ "node": ">=18.12"
+ },
+ "peerDependencies": {
+ "typescript": ">=4.8.4"
+ }
+ },
+ "node_modules/tslib": {
+ "version": "2.8.1",
+ "resolved": "https://registry.npmjs.org/tslib/-/tslib-2.8.1.tgz",
+ "integrity": "sha512-oJFu94HQb+KVduSUQL7wnpmqnfmLsOA/nAh6b6EH0wCEoK0/mPeXU6c3wKDV83MkOuHPRHtSXKKU99IBazS/2w==",
+ "license": "0BSD"
+ },
+ "node_modules/tsx": {
+ "version": "4.23.15",
+ "resolved": "https://registry.npmjs.org/tsx/-/tsx-4.23.15.tgz",
+ "integrity": "sha512-Yiex1Ovn8z2xPpOWckIiysV1SSyRMY9BkLF++q0yKiDxCqRhosKfMg3janKkiLBwZ5c/YryloKwGZcrEmtwxKw==",
+ "dev": true,
+ "license": "MIT",
+ "dependencies": {
+ "esbuild": "~0.28.0"
+ },
+ "bin": {
+ "tsx": "dist/cli.mjs"
+ },
+ "engines": {
+ "node": ">=18.0.0"
+ },
+ "optionalDependencies": {
+ "fsevents": "~2.3.3"
+ }
+ },
+ "node_modules/type-check": {
+ "version": "0.4.0",
+ "resolved": "https://registry.npmjs.org/type-check/-/type-check-0.4.0.tgz",
+ "integrity": "sha512-XleUoc9uwGXqjWwXaUTZAmzMcFZ5858QA2vvx1Ur5xIcixXIP+8LnFDgRplU30us6teqdlskFfu+ae4K79Ooew==",
+ "dev": true,
+ "license": "MIT",
+ "dependencies": {
+ "prelude-ls": "^1.2.1"
+ },
+ "engines": {
+ "node": ">= 0.8.0"
+ }
+ },
+ "node_modules/typescript": {
+ "version": "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/typescript-eslint": {
+ "version": "8.71.0",
+ "resolved": "https://registry.npmjs.org/typescript-eslint/-/typescript-eslint-8.71.0.tgz",
+ "integrity": "sha512-fBdHYiqQ14RW6mOMXD14Svn82ZsCYAoQSzGRzyEjR59S5A2Krh/l7fGTOQ7iCr8gGy/mHVXtEF7s5fgjEdV0Pw==",
+ "dev": true,
+ "license": "MIT",
+ "dependencies": {
+ "@typescript-eslint/eslint-plugin": "8.71.0",
+ "@typescript-eslint/parser": "8.71.0",
+ "@typescript-eslint/typescript-estree": "8.71.0",
+ "@typescript-eslint/utils": "8.71.0"
+ },
+ "engines": {
+ "node": "^18.18.0 || ^20.9.0 || >=21.1.0"
+ },
+ "funding": {
+ "type": "opencollective",
+ "url": "https://opencollective.com/typescript-eslint"
+ },
+ "peerDependencies": {
+ "eslint": "^8.57.0 || ^9.0.0 || ^10.0.0",
+ "typescript": ">=4.8.4 <6.1.0"
+ }
+ },
+ "node_modules/undici-types": {
+ "version": "6.21.0",
+ "resolved": "https://registry.npmjs.org/undici-types/-/undici-types-6.21.0.tgz",
+ "integrity": "sha512-iwDZqg0QAGrg9Rav5H4n0M64c3mkR59cJ6wQp+7C4nI0gsmExaedaYLNO44eT4AtBBwjbTiGPMlt2Md0T9H9JQ==",
+ "dev": true,
+ "license": "MIT"
+ },
+ "node_modules/update-browserslist-db": {
+ "version": "1.3.3",
+ "resolved": "https://registry.npmjs.org/update-browserslist-db/-/update-browserslist-db-1.3.3.tgz",
+ "integrity": "sha512-pJ2sYawQS0R/WI928Gj5GlPhTGzbMelq0+4INtSYNDV9ErKJcX6xjGWkoG/VnB3dpUm00zALaqkrUD77pO5TDQ==",
+ "dev": true,
+ "funding": [
+ {
+ "type": "opencollective",
+ "url": "https://opencollective.com/browserslist"
+ },
+ {
+ "type": "tidelift",
+ "url": "https://tidelift.com/funding/github/npm/browserslist"
+ },
+ {
+ "type": "github",
+ "url": "https://github.com/sponsors/ai"
+ }
+ ],
+ "license": "MIT",
+ "dependencies": {
+ "escalade": "^3.2.0",
+ "picocolors": "^1.1.1"
+ },
+ "bin": {
+ "update-browserslist-db": "cli.js"
+ },
+ "peerDependencies": {
+ "browserslist": ">= 4.21.0"
+ }
+ },
+ "node_modules/uri-js": {
+ "version": "4.4.1",
+ "resolved": "https://registry.npmjs.org/uri-js/-/uri-js-4.4.1.tgz",
+ "integrity": "sha512-7rKUyy33Q1yc98pQ1DAmLtwX109F7TIfWlW1Ydo8Wl1ii1SeHieeh0HHfPeL2fMXK6z0s8ecKs9frCuLJvndBg==",
+ "dev": true,
+ "license": "BSD-2-Clause",
+ "dependencies": {
+ "punycode": "^2.1.0"
+ }
+ },
+ "node_modules/which": {
+ "version": "2.0.2",
+ "resolved": "https://registry.npmjs.org/which/-/which-2.0.2.tgz",
+ "integrity": "sha512-BLI3Tl1TW3Pvl70l3yq3Y64i+awpwXqsGBYWkkqMtnbXgrMD+yj7rhW0kuEDxzJaYXGjEW5ogapKNMEKNMjibA==",
+ "dev": true,
+ "license": "ISC",
+ "dependencies": {
+ "isexe": "^2.0.0"
+ },
+ "bin": {
+ "node-which": "bin/node-which"
+ },
+ "engines": {
+ "node": ">= 8"
+ }
+ },
+ "node_modules/word-wrap": {
+ "version": "1.2.5",
+ "resolved": "https://registry.npmjs.org/word-wrap/-/word-wrap-1.2.5.tgz",
+ "integrity": "sha512-BN22B5eaMMI9UMtjrGd5g5eCYPpCPDUy0FJXbYsaT5zYxjFOckS53SQDE3pWkVoWpHXVb3BrYcEN4Twa55B5cA==",
+ "dev": true,
+ "license": "MIT",
+ "engines": {
+ "node": ">=0.10.0"
+ }
+ },
+ "node_modules/yallist": {
+ "version": "3.1.1",
+ "resolved": "https://registry.npmjs.org/yallist/-/yallist-3.1.1.tgz",
+ "integrity": "sha512-a4UGQaWPH59mOXUYnAG2ewncQS4i4F43Tv3JoAM+s2VDAmS9NsK8GpDMLrCHPksFT7h3K6TOoUNn2pb7RoXx4g==",
+ "dev": true,
+ "license": "ISC"
+ },
+ "node_modules/yocto-queue": {
+ "version": "0.1.0",
+ "resolved": "https://registry.npmjs.org/yocto-queue/-/yocto-queue-0.1.0.tgz",
+ "integrity": "sha512-rVksvsnNCdJ/ohGc6xgPwyN8eheCxsiLM8mxuE/t/mOVqJewPuO1miLpTHQiRgTKCLexL4MeAFVagts7HmNZ2Q==",
+ "dev": true,
+ "license": "MIT",
+ "engines": {
+ "node": ">=10"
+ },
+ "funding": {
+ "url": "https://github.com/sponsors/sindresorhus"
+ }
+ },
+ "node_modules/zod": {
+ "version": "4.6.5",
+ "resolved": "https://registry.npmjs.org/zod/-/zod-4.6.5.tgz",
+ "integrity": "sha512-v5l/aFXZQeai4awLbOpSoHecE9UiMrnfx75tEXLjNonXVARxQ5mOeipTjROUchszUNCqnE+hqAMujRsRHsut2Q==",
+ "dev": true,
+ "license": "MIT",
+ "funding": {
+ "url": "https://github.com/sponsors/colinhacks"
+ }
+ },
+ "node_modules/zod-validation-error": {
+ "version": "4.0.2",
+ "resolved": "https://registry.npmjs.org/zod-validation-error/-/zod-validation-error-4.0.2.tgz",
+ "integrity": "sha512-Q6/nZLe6jxuU80qb/4uJ4t5v2VEZ44lzQjPDhYJNztRQ4wyWc6VF3D3Kb/fAuPetZQnhS3hnajCf9CsWesghLQ==",
+ "dev": true,
+ "license": "MIT",
+ "engines": {
+ "node": ">=18.0.0"
+ },
+ "peerDependencies": {
+ "zod": "^3.25.0 || ^4.0.0"
+ }
+ }
+ }
+}
diff --git a/package.json b/package.json
new file mode 100644
index 0000000..b358192
--- /dev/null
+++ b/package.json
@@ -0,0 +1,37 @@
+{
+ "name": "commonlight",
+ "version": "0.1.0",
+ "private": true,
+ "scripts": {
+ "dev": "next dev --hostname 127.0.0.1",
+ "build": "next build --webpack",
+ "start": "next start --hostname 127.0.0.1",
+ "typecheck": "tsc --noEmit",
+ "test": "node --import tsx --test tests/*.test.ts",
+ "check": "npm run format:check && npm run lint && npm run typecheck && npm test && npm run build",
+ "lint": "eslint . --max-warnings 0",
+ "format:check": "prettier --check ."
+ },
+ "dependencies": {
+ "next": "^16.0.0",
+ "react": "^19.2.0",
+ "react-dom": "^19.2.0",
+ "sharp": "^0.35.5"
+ },
+ "devDependencies": {
+ "@eslint/js": "^10.0.1",
+ "@next/eslint-plugin-next": "^16.3.8",
+ "@types/node": "^22.0.0",
+ "@types/react": "^19.2.0",
+ "@types/react-dom": "^19.2.0",
+ "eslint": "^10.12.0",
+ "eslint-plugin-react-hooks": "^7.1.1",
+ "prettier": "^3.9.9",
+ "tsx": "^4.20.0",
+ "typescript": "^5.9.3",
+ "typescript-eslint": "^8.71.0"
+ },
+ "engines": {
+ "node": ">=22.13"
+ }
+}
diff --git a/tests/http.test.ts b/tests/http.test.ts
new file mode 100644
index 0000000..34f2187
--- /dev/null
+++ b/tests/http.test.ts
@@ -0,0 +1,330 @@
+import test from "node:test";
+import assert from "node:assert/strict";
+import { NextRequest } from "next/server";
+import sharp from "sharp";
+import { POST as session } from "../app/api/session/route";
+import { POST as create } from "../app/api/portraits/route";
+import {
+ GET as privateGet,
+ POST as action,
+ DELETE as remove,
+} from "../app/api/portraits/[id]/route";
+import { GET as publicGet } from "../app/api/public/[token]/route";
+import { boundedBody } from "../lib/http";
+const origin = "http://localhost:3000";
+function request(
+ path: string,
+ method = "GET",
+ cookie = "",
+ body?: BodyInit,
+ extra: Record = {},
+) {
+ return new NextRequest(origin + path, {
+ method,
+ headers: { origin, cookie, ...extra },
+ body,
+ });
+}
+test("HTTP workflow enforces owner, consent, no-store, token separation, revoke and deletion", async () => {
+ const sessionResponse = await session(request("/api/session", "POST"));
+ assert.equal(sessionResponse.status, 200);
+ const rawCookie = sessionResponse.headers.get("set-cookie")!;
+ assert.match(rawCookie, /HttpOnly/i);
+ assert.match(rawCookie, /SameSite=strict/i);
+ const cookie = rawCookie.split(";")[0];
+ const input = await sharp({
+ create: { width: 600, height: 750, channels: 3, background: "#669988" },
+ })
+ .png()
+ .toBuffer();
+ const options = { consent: true, name: "", mark: false };
+ const response = await create(
+ request("/api/portraits", "POST", cookie, new Uint8Array(input), {
+ "x-portrait-options": encodeURIComponent(JSON.stringify(options)),
+ }),
+ );
+ assert.equal(response.status, 201);
+ const { id } = await response.json();
+ const context = { params: Promise.resolve({ id }) };
+ assert.equal(
+ (await privateGet(request(`/api/portraits/${id}?kind=original`), context))
+ .status,
+ 401,
+ );
+ const image = await privateGet(
+ request(`/api/portraits/${id}?kind=original`, "GET", cookie),
+ context,
+ );
+ assert.equal(image.status, 200);
+ assert.equal(image.headers.get("content-type"), "image/png");
+ assert.match(
+ image.headers.get("content-disposition")!,
+ /attachment; filename="commonlight-original.png"/,
+ );
+ assert.deepEqual(Buffer.from(await image.arrayBuffer()), input);
+ assert.match(image.headers.get("cache-control")!, /no-store/);
+ assert.equal(
+ (
+ await action(
+ request(
+ `/api/portraits/${id}`,
+ "POST",
+ cookie,
+ JSON.stringify({ action: "publish", consent: false }),
+ ),
+ context,
+ )
+ ).status,
+ 400,
+ );
+ const published = await action(
+ request(
+ `/api/portraits/${id}`,
+ "POST",
+ cookie,
+ JSON.stringify({ action: "publish", consent: true }),
+ ),
+ context,
+ );
+ const { token } = await published.json();
+ assert.notEqual(id, token);
+ const publicContext = { params: Promise.resolve({ token }) };
+ const output = await publicGet(
+ request(`/api/public/${token}?kind=original`),
+ publicContext,
+ );
+ assert.equal(output.status, 200);
+ const metadata = await sharp(
+ Buffer.from(await output.arrayBuffer()),
+ ).metadata();
+ assert.equal(metadata.width, 576);
+ assert.equal(metadata.height, 720);
+ assert.equal(
+ (
+ await privateGet(
+ request(
+ `/api/portraits/${id}?kind=original`,
+ "GET",
+ `commonlight_session=${token}`,
+ ),
+ context,
+ )
+ ).status,
+ 401,
+ );
+ const outsider = (await session(request("/api/session", "POST"))).headers
+ .get("set-cookie")!
+ .split(";")[0];
+ assert.equal(
+ (await remove(request(`/api/portraits/${id}`, "DELETE", outsider), context))
+ .status,
+ 404,
+ );
+ assert.equal(
+ (
+ await action(
+ request(
+ `/api/portraits/${id}`,
+ "POST",
+ cookie,
+ JSON.stringify({ action: "revoke" }),
+ ),
+ context,
+ )
+ ).status,
+ 200,
+ );
+ assert.equal(
+ (await publicGet(request(`/api/public/${token}`), publicContext)).status,
+ 404,
+ );
+ assert.equal(
+ (await remove(request(`/api/portraits/${id}`, "DELETE", cookie), context))
+ .status,
+ 200,
+ );
+ assert.equal(
+ (
+ await privateGet(
+ request(`/api/portraits/${id}?kind=original`, "GET", cookie),
+ context,
+ )
+ ).status,
+ 404,
+ );
+});
+test("HTTP rejects cross-origin writes and remote deployment hosts", async () => {
+ assert.equal(
+ (
+ await session(
+ request("/api/session", "POST", "", undefined, {
+ origin: "https://evil.example",
+ }),
+ )
+ ).status,
+ 403,
+ );
+ assert.equal(
+ (
+ await session(
+ new NextRequest("https://public.example/api/session", {
+ method: "POST",
+ headers: { origin: "https://public.example" },
+ }),
+ )
+ ).status,
+ 503,
+ );
+});
+test("streaming body bounds apply even without Content-Length", async () => {
+ const input = new Request(origin, {
+ method: "POST",
+ body: new Uint8Array(12),
+ });
+ await assert.rejects(boundedBody(input, 10), /too large/);
+});
+
+test("JPEG and WebP originals recover exact bytes with their real media type and extension", async () => {
+ const cookie = (await session(request("/api/session", "POST"))).headers
+ .get("set-cookie")!
+ .split(";")[0];
+ for (const format of ["jpeg", "webp"] as const) {
+ const input = await sharp({
+ create: { width: 200, height: 250, channels: 3, background: "#339966" },
+ })
+ .toFormat(format)
+ .withMetadata({ exif: { IFD0: { Artist: "Synthetic only" } } })
+ .toBuffer();
+ const response = await create(
+ request("/api/portraits", "POST", cookie, new Uint8Array(input), {
+ "x-portrait-options": encodeURIComponent(
+ JSON.stringify({ consent: true, name: "", mark: false }),
+ ),
+ }),
+ );
+ assert.equal(response.status, 201);
+ const { id } = await response.json(),
+ context = { params: Promise.resolve({ id }) };
+ try {
+ const original = await privateGet(
+ request(`/api/portraits/${id}?kind=original`, "GET", cookie),
+ context,
+ );
+ assert.equal(original.headers.get("content-type"), `image/${format}`);
+ assert.ok(
+ original.headers
+ .get("content-disposition")!
+ .endsWith(`.${format === "jpeg" ? "jpg" : format}"`),
+ );
+ assert.deepEqual(Buffer.from(await original.arrayBuffer()), input);
+ const preview = await privateGet(
+ request(`/api/portraits/${id}?kind=preview`, "GET", cookie),
+ context,
+ );
+ assert.equal(
+ (await sharp(Buffer.from(await preview.arrayBuffer())).metadata()).exif,
+ undefined,
+ );
+ } finally {
+ await remove(request(`/api/portraits/${id}`, "DELETE", cookie), context);
+ }
+ }
+});
+
+test("upload admission precedes body reading; only two incomplete streams are consumed and cancellation releases slots", async () => {
+ const cookie = (await session(request("/api/session", "POST"))).headers
+ .get("set-cookie")!
+ .split(";")[0];
+ const pulls = Array(6).fill(0),
+ cancels = Array(6).fill(0);
+ const aborts = Array.from({ length: 6 }, () => new AbortController());
+ const streams = Array.from(
+ { length: 6 },
+ (_, i) =>
+ new ReadableStream(
+ {
+ pull() {
+ pulls[i]++;
+ },
+ cancel() {
+ cancels[i]++;
+ },
+ },
+ { highWaterMark: 0 },
+ ),
+ );
+ function upload(i: number, consent = true) {
+ return create(
+ new NextRequest(origin + "/api/portraits", {
+ method: "POST",
+ body: streams[i],
+ signal: aborts[i].signal,
+ headers: {
+ origin,
+ cookie,
+ "x-portrait-options": encodeURIComponent(
+ JSON.stringify({ consent, name: "", mark: false }),
+ ),
+ },
+ duplex: "half",
+ } as ConstructorParameters[1]),
+ );
+ }
+ const pending = [upload(0), upload(1)];
+ try {
+ const rejected = await Promise.all([
+ upload(2),
+ upload(3),
+ upload(4),
+ upload(5),
+ ]);
+ assert.deepEqual(
+ rejected.map((r) => r.status),
+ [503, 503, 503, 503],
+ );
+ assert.deepEqual(pulls, [1, 1, 0, 0, 0, 0]);
+ aborts[0].abort();
+ aborts[1].abort();
+ assert.deepEqual(
+ (await Promise.all(pending)).map((r) => r.status),
+ [409, 409],
+ );
+ assert.deepEqual(cancels.slice(0, 2), [1, 1]);
+ assert.equal((await upload(2, false)).status, 400);
+ assert.equal(pulls[2], 0);
+ const resumed = upload(3);
+ await Promise.resolve();
+ assert.equal(pulls[3], 1);
+ aborts[3].abort();
+ assert.equal((await resumed).status, 409);
+ // Reader failure also releases admission, rather than stranding the two-slot gate.
+ for (let i = 0; i < 3; i++) {
+ const broken = new ReadableStream(
+ {
+ pull(controller) {
+ controller.error(new Error("read failed"));
+ },
+ },
+ { highWaterMark: 0 },
+ );
+ const response = await create(
+ new NextRequest(origin + "/api/portraits", {
+ method: "POST",
+ body: broken,
+ headers: {
+ origin,
+ cookie,
+ "x-portrait-options": encodeURIComponent(
+ JSON.stringify({ consent: true, name: "", mark: false }),
+ ),
+ },
+ duplex: "half",
+ } as ConstructorParameters[1]),
+ );
+ assert.equal(response.status, 500);
+ }
+ } finally {
+ aborts.forEach((a) => a.abort());
+ await Promise.all(pending);
+ }
+});
diff --git a/tests/portraits.test.ts b/tests/portraits.test.ts
new file mode 100644
index 0000000..a6c6333
--- /dev/null
+++ b/tests/portraits.test.ts
@@ -0,0 +1,286 @@
+import test from "node:test";
+import assert from "node:assert/strict";
+import sharp from "sharp";
+import { PortraitService } from "../lib/service";
+import { MemoryStore, Sessions } from "../lib/store";
+import { DeterministicProcessor } from "../lib/processor";
+import {
+ MAX_UPLOAD_BYTES,
+ RETENTION_MS,
+ decodeOptions,
+ decodeResult,
+ decodePublication,
+} from "../lib/contracts";
+import { CameraController } from "../lib/camera";
+const authority = (token: string) => ({
+ token,
+ expiresAt: Date.now() + RETENTION_MS,
+});
+const options = { consent: true as const, name: "", mark: false };
+async function fixture() {
+ return sharp({
+ create: { width: 800, height: 1000, channels: 3, background: "#678f99" },
+ })
+ .png()
+ .withMetadata({ exif: { IFD0: { Artist: "Synthetic fixture only" } } })
+ .toBuffer();
+}
+test("output is metadata-free JPEG8, sRGB and exactly 576 × 720; clean preview retains frame and exact original survives", async () => {
+ const input = await fixture();
+ const processor = new DeterministicProcessor();
+ const output = await processor.process(input, options);
+ const metadata = await sharp(output.processed).metadata(),
+ original = await sharp(output.preview).metadata();
+ assert.deepEqual(output.original, input);
+ assert.equal(output.originalFormat, "png");
+ assert.equal(metadata.format, "jpeg");
+ assert.equal(metadata.width, 576);
+ assert.equal(metadata.height, 720);
+ assert.equal(metadata.depth, "uchar");
+ assert.equal(metadata.space, "srgb");
+ for (const m of [metadata, original]) {
+ assert.equal(m.exif, undefined);
+ assert.equal(m.icc, undefined);
+ assert.equal(m.xmp, undefined);
+ }
+ assert.equal(original.width, 800);
+ assert.equal(original.height, 1000);
+ assert.deepEqual(
+ output.processed,
+ (await processor.process(input, options)).processed,
+ );
+});
+test("validates consent, size, supported image formats and names before processing", async () => {
+ const service = new PortraitService();
+ await assert.rejects(
+ service.create(
+ await fixture(),
+ { ...options, consent: false },
+ authority("owner"),
+ ),
+ /Consent/,
+ );
+ await assert.rejects(
+ service.create(
+ Buffer.alloc(MAX_UPLOAD_BYTES + 1),
+ options,
+ authority("owner"),
+ ),
+ /10 MB/,
+ );
+ await assert.rejects(
+ service.create(Buffer.from(" "), options, authority("owner")),
+ /still JPEG/,
+ );
+ assert.throws(() => decodeOptions({ ...options, name: "x".repeat(61) }));
+ assert.throws(() => decodeOptions({ ...options, extra: "unexpected" }));
+ assert.throws(() => decodeOptions({ ...options, name: "bad\nname" }));
+});
+test("optional SVG text is safely escaped and output remains bounded", async () => {
+ const result = await new DeterministicProcessor().process(await fixture(), {
+ ...options,
+ name: '