diff --git a/.dockerignore b/.dockerignore index 429d7df..87c0d5d 100644 --- a/.dockerignore +++ b/.dockerignore @@ -14,11 +14,10 @@ ENV/ .eggs/ *.egg-info/ .pytest_cache/ +.ruff_cache/ # Node node_modules/ -remotion/node_modules/ -render-service/node_modules/ dashboard/node_modules/ # IDE @@ -27,6 +26,17 @@ dashboard/node_modules/ *.swp *.swo +# Agent / tool local state +.opencode/ + +# Local caches +.cache/ +.config/ + +# Not needed in the runtime image +tests/ +screenshots/ + # Video files (will be mounted via volume) *.mp4 *.avi @@ -43,7 +53,6 @@ videos/ .env .env.* !.env.example -!.env.cloud.example *.pem *.key @@ -55,10 +64,3 @@ docker-compose.yml # Docs README.md *.md - - - - - - - diff --git a/.env.example b/.env.example index cbdda93..e7e295c 100644 --- a/.env.example +++ b/.env.example @@ -1,3 +1,8 @@ +# Google Gemini API key used server-side (moment detection, layouts, titles and +# thumbnails). The dashboard can also send a key per request, and the key is +# optional entirely when LLM_BASE_URL points at an OpenAI-compatible server. +# GEMINI_API_KEY=your_gemini_api_key + # YouTube cookies (optional — paste Netscape-format cookies to bypass bot detection) # YOUTUBE_COOKIES=... @@ -21,6 +26,9 @@ # Concurrent GPU transcriptions (parakeet or whisper-on-cuda). Keep 1. # ASR_GPU_CONCURRENCY=1 +# Concurrent pipeline jobs (default 5). +# MAX_CONCURRENT_JOBS=5 + # Video encoder for all ffmpeg encodes: x264 (default) | nvenc | auto. # auto probes h264_nvenc once at startup and falls back to x264 if unusable. # FFMPEG_ENCODER=x264 @@ -49,13 +57,8 @@ GEMINI_IMAGE_MODEL=gemini-3.1-flash-image # LLM_SCORE_BATCH=3 # LLM_TIMEOUT=600 -# Hard daily ceiling for the per-GB paid proxy (UTC day, MB). Above it, -# DataImpulse is removed from every chain until midnight and the jobs that -# needed it fail with a clear error. 0 disables the cap. Default 500. -# PAID_PROXY_DAILY_MB=500 - # --------------------------------------------------------------------------- -# Privacy, retention and access control (GDPR remediation, 4-sep-2026) +# Privacy and access control (GDPR remediation, 4-sep-2026) # --------------------------------------------------------------------------- # Absolute base URL of the API as the internet reaches it, used for the @@ -68,17 +71,6 @@ GEMINI_IMAGE_MODEL=gemini-3.1-flash-image # sidecars, dotfiles) so only media is exposed. Files are swept with the job # (JOB_RETENTION_SECONDS). -# Retention for thumbnails. Thumbnails and the frames sampled to make them are -# close-ups of a real person; the clock runs from the last download. -# THUMBNAIL_RETENTION_SECONDS=86400 - -# Per-IP rate limiting. "/". -# Defaults: auth 30/600, process 60/3600. Set RATE_LIMIT_ENABLED=0 -# to turn the whole thing off (self-host behind your own firewall). -# RATE_LIMIT_ENABLED=1 -# RATE_LIMIT_AUTH=30/600 -# RATE_LIMIT_PROCESS=60/3600 - # --------------------------------------------------------------------------- # Publishing (self-hosted Postiz) # --------------------------------------------------------------------------- @@ -100,16 +92,9 @@ GEMINI_IMAGE_MODEL=gemini-3.1-flash-image # number to cap uploads and reject larger files with HTTP 413. # MAX_FILE_SIZE_MB=0 -# Which hop may declare the client's address in X-Forwarded-For. The Dockerfile -# defaults to the private Docker ranges; narrow it to Traefik's own address on -# the container network in production. NEVER "*": that lets any caller forge -# the IP the rate limiter and the rights declaration are keyed on. -# FORWARDED_ALLOW_IPS=10.0.1.7 - -# Strict-Transport-Security value sent on https responses from the API. Empty -# disables it. Do not add "preload" without understanding that it is one-way. -# HSTS_HEADER=max-age=31536000; includeSubDomains - -# Optional PostgreSQL database (only needed if you run the app against one). -# DATABASE_URL=postgres://user:pass@host:5432/clipwright - +# X-Forwarded-For trust. The container launches uvicorn with +# `--proxy-headers --forwarded-allow-ips *` (see the Dockerfile CMD), so any +# caller that can reach the port may declare its own address and scheme. This +# is not configurable via an environment variable: run the API behind a reverse +# proxy that overwrites X-Forwarded-For, and never publish the backend port +# directly to the internet. diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 8660be5..1762e59 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -27,17 +27,21 @@ jobs: frontend-build: runs-on: ubuntu-latest + # Same reason as backend-tests: the Forgejo runner cannot use + # actions/setup-node's Node download + GitHub artifact-cache service (both + # time out against the act runner: "connect ETIMEDOUT ...:41759"), and + # actions/setup-python cannot provision 3.11 either. This container already + # ships Node 20 + npm + git, so actions/checkout works and setup-node is + # dropped entirely. + container: nikolaik/python-nodejs:python3.11-nodejs20 defaults: run: working-directory: dashboard steps: - uses: actions/checkout@v4 - - uses: actions/setup-node@v4 - with: - node-version: "20" - cache: npm - cache-dependency-path: dashboard/package-lock.json - name: Install dependencies run: npm ci + - name: Lint + run: npm run lint - name: Build run: npm run build diff --git a/.gitignore b/.gitignore index 6af5a38..dc37ef1 100644 --- a/.gitignore +++ b/.gitignore @@ -12,11 +12,8 @@ __pycache__/ *.pyc -# Temporary files / runtime dirs -temp_* +# Runtime dirs uploads/ -downloads/ -videos/ output/ # OS / IDE @@ -34,20 +31,7 @@ output/ .cache/ .config/ .pytest_cache/ +.ruff_cache/ -# Multi-agent Skills -.agents/ -.agent/ -.claude/ - -# Design-tool / agent-local state -.hallmark/ +# Agent / tool local state .opencode/ - - -# Cloud env example kept local only (avoid leaking infra hints) -.env.cloud.example -.worktrees - -# Instrucciones locales con datos de infra (repo público) -CLAUDE.local.md diff --git a/README.md b/README.md index c3067ff..34b3082 100644 --- a/README.md +++ b/README.md @@ -106,13 +106,11 @@ clipwright/ # Python backend package core/ # shared helpers (security, filesystem paths) api/ # FastAPI app, auth, free tools pipeline/ # download → transcribe → clip orchestration, Gemini, quality probe - layouts/ # reframing: active speaker, split/screencast/panel, punch-in + layouts/ # reframing: active speaker, split/screencast, punch-in media/ # FFmpeg helpers, subtitles, hooks, thumbnails, recut integrations/ # Postiz, YouTube, file hosts tools/ # local verification scripts (python -m clipwright.tools.verify_hooks) dashboard/ # React + Vite dashboard (its own build) -remotion/ # Remotion compositions used by the renderer -render-service/ # Node render microservice (its own Dockerfile) cli/ # published `clipwright` HTTP client (own pyproject) tests/ # pytest suite (pythonpath = ["."]) fonts/ assets/ # shared runtime resources (kept at repo root) diff --git a/clipwright/api/app.py b/clipwright/api/app.py index a703544..0760f49 100644 --- a/clipwright/api/app.py +++ b/clipwright/api/app.py @@ -1472,9 +1472,11 @@ async def lifespan(app: FastAPI): _install_drain_signal_handler() asyncio.create_task(_handover_watch()) asyncio.create_task(_resume_scan()) - # Start worker and cleanup - worker_task = asyncio.create_task(process_queue()) - cleanup_task = asyncio.create_task(cleanup_jobs()) + # Start worker and cleanup. The assignments are load-bearing: asyncio holds + # no strong reference to a task, so dropping these lets the worker and the + # cleanup loop be garbage-collected mid-run. + _worker_task = asyncio.create_task(process_queue()) + _cleanup_task = asyncio.create_task(cleanup_jobs()) yield # Cleanup (optional: cancel worker) @@ -1625,7 +1627,6 @@ async def run_job(job_id, job_data): t_log.start() # Async wait for process with incremental updates - start_wait = time.time() last_heartbeat = time.time() while process.poll() is None: try: @@ -1679,7 +1680,7 @@ async def run_job(job_id, job_data): if ready_clips: jobs[job_id]['result'] = {'clips': ready_clips, 'cost_analysis': cost_analysis} - except Exception as e: + except Exception: # Ignore read errors during processing pass @@ -3388,10 +3389,6 @@ async def _reframe_locked(req: ReframeRequest, request: Request, job, overrides) framing = (clip.get('recipe') or {}).get('framing') or 'auto' force_strategy = _FRAMING_STRATEGIES.get(framing) - # A reframe re-renders the full cut from source — same work as a source-path - # rerender. - total = recut.total_duration(segments) - # Every default clip ships with burned captions; re-rendering without them # would silently hand back a caption-less file. v_transcript = (recut.virtual_transcript(data.get('transcript') or {}, segments) @@ -3455,35 +3452,6 @@ async def _reframe_locked(req: ReframeRequest, request: Request, job, overrides) raise HTTPException(status_code=500, detail=str(e)) -# --- Remotion Render Proxy --- -RENDER_SERVICE_URL = os.getenv("RENDER_SERVICE_URL", "http://renderer:3100") -@app.post("/api/render") -async def proxy_render(request: Request): - """Proxy render requests to the Node.js Remotion render service.""" - import httpx - body = await request.json() - try: - async with httpx.AsyncClient(timeout=30.0) as client: - resp = await client.post(f"{RENDER_SERVICE_URL}/render", json=body) - return resp.json() - except Exception as e: - raise HTTPException(status_code=502, detail=f"Render service unavailable: {e}") - -@app.get("/api/render/{render_id}") -async def proxy_render_status(render_id: str, request: Request): - """Proxy render status polling to the Node.js Remotion render service.""" - import httpx - # The id goes into the upstream path: ids are uuids, nothing else passes. - if not re.fullmatch(r"[A-Za-z0-9-]{1,64}", render_id or ""): - raise HTTPException(status_code=404, detail="Not found") - try: - async with httpx.AsyncClient(timeout=10.0) as client: - resp = await client.get(f"{RENDER_SERVICE_URL}/render/{render_id}") - return resp.json() - except Exception as e: - raise HTTPException(status_code=502, detail=f"Render service unavailable: {e}") - - class EffectsGenerateRequest(BaseModel): job_id: str clip_index: int diff --git a/clipwright/api/restoring_static.py b/clipwright/api/restoring_static.py index 3e74dd9..f392cdd 100644 --- a/clipwright/api/restoring_static.py +++ b/clipwright/api/restoring_static.py @@ -11,23 +11,18 @@ This subclass keeps everything ``StaticFiles`` does (Range requests, ETags, HEAD) and adds one step before the filesystem: ``guard`` (the allowlist, ``media_auth.is_servable``, wrapped by ``app._media_guard``) refuses a path, and a refused path looks exactly like a missing one. ``app.py`` mounts it with the -guard only -- there is no restorer in this fork. - -The optional ``restorer`` hook predates the self-host fork: it let a miss ask a -job's durable copy (R2) to come back before answering 404. Nothing wires one up -any more; the parameter is kept because callers and tests may still pass one. +guard only. """ -from typing import Awaitable, Callable, Optional +from typing import Callable, Optional from starlette.exceptions import HTTPException from starlette.staticfiles import StaticFiles -Restorer = Callable[[str], Awaitable[bool]] Guard = Callable[[str], bool] class RestoringStaticFiles(StaticFiles): - """StaticFiles that refuses non-deliverables, with an optional restore hook. + """StaticFiles that refuses non-deliverables. ``guard`` is the allowlist (``media_auth.is_servable``). Without it this mount hands out the whole working directory to anyone holding the job id: @@ -38,14 +33,11 @@ class RestoringStaticFiles(StaticFiles): This is only the path half of media_auth: the clips themselves, and the untouched source video sitting in the same directory, are still public to - anyone who has the job id. ``restorer`` is not wired up in this fork; see - the module docstring. + anyone who has the job id. """ - def __init__(self, *args, restorer: Optional[Restorer] = None, - guard: Optional[Guard] = None, **kwargs): + def __init__(self, *args, guard: Optional[Guard] = None, **kwargs): super().__init__(*args, **kwargs) - self.restorer = restorer self.guard = guard async def get_response(self, path: str, scope): @@ -53,23 +45,4 @@ class RestoringStaticFiles(StaticFiles): # missing one, or the 404-vs-403 difference confirms the file is there. if self.guard is not None and not self.guard(path): raise HTTPException(status_code=404) - try: - return await super().get_response(path, scope) - except HTTPException as exc: - if exc.status_code != 404 or self.restorer is None: - raise - job_id = path.split("/", 1)[0] if "/" in path else "" - if not job_id: - raise - try: - restored = await self.restorer(job_id) - except Exception: - restored = False - if not restored: - raise - # The guard may read the job directory (a free job's clean twins - # are refused by a marker file that only exists once the files - # are back), so the verdict before the restore is not final. - if self.guard is not None and not self.guard(path): - raise HTTPException(status_code=404) - return await super().get_response(path, scope) + return await super().get_response(path, scope) diff --git a/clipwright/core/paths.py b/clipwright/core/paths.py index 7c1ef27..724556f 100644 --- a/clipwright/core/paths.py +++ b/clipwright/core/paths.py @@ -11,21 +11,16 @@ from __future__ import annotations from pathlib import Path -# .../clipwright +# .../clipwright (kept private: only used below to locate REPO_ROOT) PACKAGE_DIR = Path(__file__).resolve().parent.parent # Repository root (also the Docker WORKDIR /app). REPO_ROOT = PACKAGE_DIR.parent FONTS_DIR = REPO_ROOT / "fonts" ASSETS_DIR = REPO_ROOT / "assets" -UPLOADS_DIR = REPO_ROOT / "uploads" -OUTPUT_DIR = REPO_ROOT / "output" __all__ = [ - "PACKAGE_DIR", "REPO_ROOT", "FONTS_DIR", "ASSETS_DIR", - "UPLOADS_DIR", - "OUTPUT_DIR", ] diff --git a/clipwright/core/security_utils.py b/clipwright/core/security_utils.py index 5897822..1ad8278 100644 --- a/clipwright/core/security_utils.py +++ b/clipwright/core/security_utils.py @@ -14,25 +14,6 @@ import socket from urllib.parse import urlparse -def truncate_ip(ip: str) -> str: - """Drop the host part of an address so it identifies a network, not a device. - - Used for the rights declaration kept with a project (art. 5.1.c: the record - has to show the confirmation was made from somewhere at some time, which a - /24 answers as well as a full address, and it does not hand anyone a - per-device identifier that survives for years). IPv4 keeps three octets, - IPv6 keeps the /48 the RIRs actually assign. Anything unparseable becomes - "unknown" rather than being stored verbatim. - """ - try: - addr = ipaddress.ip_address((ip or "").strip()) - except ValueError: - return "unknown" - if addr.version == 4: - return str(ipaddress.ip_network(f"{addr}/24", strict=False).network_address) - return str(ipaddress.ip_network(f"{addr}/48", strict=False).network_address) - - class UnsafeURLError(ValueError): """Raised when a URL is not safe to fetch server-side.""" diff --git a/clipwright/layouts/active_speaker.py b/clipwright/layouts/active_speaker.py index 7b55da5..83f03ae 100644 --- a/clipwright/layouts/active_speaker.py +++ b/clipwright/layouts/active_speaker.py @@ -251,7 +251,6 @@ def decode_activity(video_path, start_s, duration_s, boxes, fps, small_h = max(int(orig_h * small_w / orig_w), 2) small_h += small_h % 2 scale = orig_w / float(small_w) - frame_bytes = small_w * small_h * 3 regions = [mouth_region(b, small_w, small_h, scale) for b in boxes] diff --git a/clipwright/layouts/layout_ranges.py b/clipwright/layouts/layout_ranges.py index 09e3afa..e3a95ce 100644 --- a/clipwright/layouts/layout_ranges.py +++ b/clipwright/layouts/layout_ranges.py @@ -15,7 +15,6 @@ Whoever updates a clip's metadata copies them into ``layout_ranges`` so /api/subtitle can find them after the sidecar is gone. """ import json -import os SIDECAR_SUFFIX = ".layout.json" @@ -71,10 +70,6 @@ def split_ranges(ranges): return [(r["start"], r["end"]) for r in normalise(ranges) if r["layout"] == "split"] -def in_split(t, splits): - return any(s <= t < e for s, e in splits or []) - - def remap(ranges, segments): """Carry ranges across a cut-and-concat. ``segments`` are the kept stretches of the SOURCE file in order ({"start", "end"}); the output is diff --git a/clipwright/layouts/panel_layout.py b/clipwright/layouts/panel_layout.py deleted file mode 100644 index 5f7c671..0000000 --- a/clipwright/layouts/panel_layout.py +++ /dev/null @@ -1,274 +0,0 @@ -"""PANEL layout: three or four people from one wide shot, tiled into 9:16. - -The generalisation of split_layout past two people. A round table, a debate set -or a podcast with guests is a single wide shot where TRACK picks one person and -GENERAL shrinks everyone to a strip. OpusClip ships "Three" and "Four" layouts -for exactly this and we had nothing. - -Geometry, for a 1080x1920 output: - - 3 people three stacked bands, 1080x640 each - 4 people a 2x2 grid, 540x960 each - -Three stacked rather than 2+1, because an odd tile reads as a mistake; four as a -grid rather than four bands, because a 1080x480 band is a letterbox slot nobody -fits in. Both keep every tile the same size: a bigger tile silently claims the -person in it is the important one, and the layout has no way to know that. - -Off by default (``PANEL_LAYOUT=1``). Shares split_layout's rules, because the -failure modes are the same ones: faces must COEXIST in the frame (otherwise it -is a multi-camera cut and tiling would show one person several times), be far -enough apart, and be big enough not to be an audience. -""" -import os - -import numpy as np - -from clipwright.layouts import split_layout - -ENABLED = os.environ.get("PANEL_LAYOUT", "0") == "1" - -# How many people this layout will lay out. Five-plus is a crowd: at 1080 wide -# each tile drops under 400px tall and nobody is legible, so those scenes are -# better served by GENERAL keeping the room intact. -MIN_PEOPLE = 3 -MAX_PEOPLE = 4 - -# Same bar as SPLIT: the tiles must be showing different people at the same -# moment, not the same person across cuts. -MIN_COEXISTENCE = split_layout.MIN_COEXISTENCE -MIN_FACE_WIDTH = split_layout.MIN_FACE_WIDTH -MIN_SCENE_SECONDS = split_layout.MIN_SCENE_SECONDS - -# Minimum gap between neighbouring faces, as a fraction of frame width. Lower -# than SPLIT's 0.20 because four people in one shot genuinely sit closer -# together; below this they overlap and the tiles repeat shoulders. -MIN_SEPARATION = 0.12 - -PANEL_TIGHTNESS = float(os.environ.get("PANEL_TIGHTNESS", "0.85")) - - -def tile_grid(count, out_w, out_h): - """(columns, rows, tile_w, tile_h). Always a 2x2 grid, for 3 people or 4. - - Three horizontal bands was the obvious shape and it does not work. A - 1080x640 band is LANDSCAPE, so filling it from a 1080-tall source needs a - 1551px-wide crop; on a 1920 frame holding three people that reaches both - neighbours, and the rendered bands each showed two faces. Clamping the crop - to the space a person owns then made it 328x194, upscaled 3.3x into a - blurry close-up of a nose. - - A 2x2 grid has PORTRAIT tiles (540x960), which ask for a tall narrow crop - — the shape a person actually occupies. Three people use three cells and - the fourth holds the wide shot, which doubles as context for who is in the - room. - """ - cols, rows = 2, 2 - tile_w = out_w // cols - tile_h = out_h // rows - return cols, rows, tile_w - (tile_w % 2), tile_h - (tile_h % 2) - - -def usable_faces(candidates, frame_w): - """Faces big enough to be participants, deduped, left to right. - - Deduping because this layout decides by headcount and nothing upstream - guarantees one box per head. - """ - big = [c for c in split_layout.dedupe_faces(candidates) - if c['box'][2] >= MIN_FACE_WIDTH * frame_w] - big.sort(key=lambda c: c['box'][0]) - return big - - -def well_separated(faces, frame_w, min_gap=MIN_SEPARATION): - """True when every pair of faces is far enough apart to be distinct people. - - Distance between centres, not horizontal gap. Participants are not always - in a row: a shot measured on a real recording had two people stacked one - above the other on the same side of the frame, 18px apart horizontally and - 545px vertically. Judging by horizontal gap alone called them the same - person and threw the scene away. - """ - threshold = min_gap * frame_w - for i, a in enumerate(faces): - ax = a['box'][0] + a['box'][2] / 2.0 - ay = a['box'][1] + a['box'][3] / 2.0 - for b in faces[i + 1:]: - bx = b['box'][0] + b['box'][2] / 2.0 - by = b['box'][1] + b['box'][3] / 2.0 - if ((ax - bx) ** 2 + (ay - by) ** 2) ** 0.5 < threshold: - return False - return True - - -def analyze_scene(frames, frame_w): - """Median centres for a stable panel of 3-4 people, or None. - - ``frames`` is a list of per-frame candidate lists, as - ``main.detect_face_candidates`` returns them. - """ - if not frames: - return None - - per_count = {} - for candidates in frames: - faces = usable_faces(candidates, frame_w) - if not (MIN_PEOPLE <= len(faces) <= MAX_PEOPLE): - continue - if not well_separated(faces, frame_w): - continue - per_count.setdefault(len(faces), []).append( - [split_layout._centre(c['box']) for c in faces]) - - if not per_count: - return None - - # Take the headcount that held for longest; a frame where one head turned - # away should not decide the layout. - count = max(per_count, key=lambda k: len(per_count[k])) - seen = per_count[count] - if len(seen) < MIN_COEXISTENCE * len(frames): - return None - - arr = np.array(seen, dtype=float) # (samples, people, 4) - return [tuple(float(v) for v in person) for person in np.median(arr, axis=0)] - - -def panel_geometry(orig_w, orig_h, tile_w, tile_h, centre, tightness=None, - neighbour_gap=None): - """Crop (w, h, x, y) framing one person for one tile. - - ``neighbour_gap`` is the distance to the closest other participant. It is - the binding constraint and not an optional refinement: a three-band layout - has 1080x640 tiles, which are LANDSCAPE, so filling one from a 1080-tall - source asks for a 1551px-wide crop. On a 1920px frame holding three people - that swallows the neighbours, and the rendered bands showed two faces each. - Clamping the crop to the space a person actually owns fixes the framing at - the cost of upscaling, which is the right trade: a band showing the wrong - person is broken, a soft one is merely worse. - """ - tightness = PANEL_TIGHTNESS if tightness is None else tightness - aspect = tile_w / float(tile_h) - - crop_h = int(round(orig_h * max(0.3, min(tightness, 1.0)))) - crop_w = int(round(crop_h * aspect)) - if crop_w > orig_w: - crop_w = orig_w - crop_h = int(round(crop_w / aspect)) - - if neighbour_gap: - # 0.9 leaves a sliver of margin: cropping exactly to the midpoint puts - # the neighbour's shoulder on the edge of the tile. - allowed = max(int(neighbour_gap * 0.9), 2) - if crop_w > allowed: - crop_w = allowed - crop_h = int(round(crop_w / aspect)) - crop_w -= crop_w % 2 - crop_h -= crop_h % 2 - - cx, cy = centre[0], centre[1] - x = max(0, min(int(round(cx - crop_w / 2.0)), orig_w - crop_w)) - y = max(0, min(int(round(cy - crop_h * 0.42)), orig_h - crop_h)) - return crop_w, crop_h, x - (x % 2), y - (y % 2) - - -def neighbour_gaps(centres): - """Horizontal distance from each person to their closest neighbour.""" - xs = [c[0] for c in centres] - gaps = [] - for i, x in enumerate(xs): - others = [abs(x - o) for j, o in enumerate(xs) if j != i] - gaps.append(min(others) if others else None) - return gaps - - -def panel_filtergraph(orig_w, orig_h, out_w, out_h, centres): - """Tile 3 or 4 people into the vertical frame, left-to-right, top-to-bottom.""" - count = len(centres) - cols, rows, tile_w, tile_h = tile_grid(count, out_w, out_h) - - gaps = neighbour_gaps(centres) - streams = count if count == 4 else count + 1 # trio needs the wide shot - - parts = [f"[0:v]split={streams}" - + "".join(f"[s{i}]" for i in range(streams)) + ";"] - for i, centre in enumerate(centres): - cw, ch, cx, cy = panel_geometry(orig_w, orig_h, tile_w, tile_h, centre, - neighbour_gap=gaps[i]) - parts.append(f"[s{i}]crop=w={cw}:h={ch}:x={cx}:y={cy}," - f"scale={tile_w}:{tile_h}[t{i}];") - - if count == 3: - # Fourth cell: the room, letterboxed inside the tile so nothing is cut. - parts.append(f"[s3]scale={tile_w}:-2," - f"pad={tile_w}:{tile_h}:0:({tile_h}-ih)/2:black[t3];") - - parts.append("[t0][t1]hstack=inputs=2[top];" - "[t2][t3]hstack=inputs=2[bot];" - "[top][bot]vstack=inputs=2,") - parts.append(f"pad={out_w}:{out_h}:0:0,setsar=1[v]") - return "".join(parts) - - -def detect_panel_scenes(video_path, scenes, strategies, samples=None): - """Scenes to render as PANEL: ``{scene_index: [centres]}``. - - Only scenes the classifier already sent to GENERAL are considered, for the - same reason SPLIT does it: GENERAL already means "more than one face", and - single-speaker material is most of the corpus and must not be touched. - """ - if not ENABLED: - return {} - # Below the gate on purpose: main pulls torch/mediapipe, and the disabled - # path (the default, and what CI exercises) must not pay that import. - import cv2 - from clipwright.pipeline import main as m - - cap = cv2.VideoCapture(video_path) - if not cap.isOpened(): - return {} - - fps = cap.get(cv2.CAP_PROP_FPS) or 30.0 - frame_w = int(cap.get(cv2.CAP_PROP_FRAME_WIDTH)) - total_frames = int(cap.get(cv2.CAP_PROP_FRAME_COUNT)) or 0 - found = {} - - try: - for i, (start, end) in enumerate(scenes): - if i < len(strategies) and strategies[i] != 'GENERAL': - continue - s_f, e_f = start.get_frames(), end.get_frames() - duration = (e_f - s_f) / fps - if duration < MIN_SCENE_SECONDS: - continue - - n = samples or int(min(max(duration / split_layout.SECONDS_PER_SAMPLE, - split_layout.MIN_SAMPLES), - split_layout.MAX_SAMPLES)) - last_f = e_f - 1 - if total_frames: - last_f = min(last_f, total_frames - 1) - if last_f < s_f: - continue - - sampled = [] - for f_idx in np.linspace(s_f, last_f, n): - cap.set(cv2.CAP_PROP_POS_FRAMES, int(round(f_idx))) - ok, frame = cap.read() - if not ok: - continue - if frame.mean() < 16: - continue - sampled.append(m.detect_face_candidates(frame)) - - if len(sampled) < max(4, n // 2): - continue - - centres = analyze_scene(sampled, frame_w) - if centres: - found[i] = centres - finally: - cap.release() - - return found diff --git a/clipwright/media/editor.py b/clipwright/media/editor.py index 9158cd1..3309bc2 100644 --- a/clipwright/media/editor.py +++ b/clipwright/media/editor.py @@ -65,25 +65,6 @@ class VideoEditor: raise TimeoutError("Gemini file processing timed out after 120s.") time.sleep(2) - def delete_uploaded(self, video_file_obj): - """Remove an uploaded clip from the Gemini Files API. - - The upload is a full copy of the user's video on Google's servers, kept - there for 48 h if nobody deletes it. The effects passes need it for one - request; every caller must drop it in a ``finally`` right after, so the - privacy policy's "we do not leave your footage with the model provider" - describes the code. Best-effort: an editing job must not fail because - the cleanup call did. - """ - name = getattr(video_file_obj, "name", None) - if not name: - return - try: - self.client.files.delete(name=name) - except Exception as e: - print(f"⚠️ Could not delete {name} from Gemini Files ({e}) — " - f"it expires there in 48 h.") - def get_ffmpeg_filter(self, video_file_obj, duration, fps=30, width=None, height=None, transcript=None, has_captions=False): """Asks Gemini for an edit decision list, then builds the FFmpeg filter deterministically (edit_builder) so syntax and zoom limits are always safe.""" diff --git a/clipwright/media/ffmpeg_utils.py b/clipwright/media/ffmpeg_utils.py index ad0fd6d..43b7e4d 100644 --- a/clipwright/media/ffmpeg_utils.py +++ b/clipwright/media/ffmpeg_utils.py @@ -85,55 +85,6 @@ METADATA_SCRUB = ["-map_metadata", "-1", "-map_chapters", "-1", LOUDNORM_FILTER = "loudnorm=I=-14:TP=-2.0:LRA=11" -# AI Act art. 50(2): a provider whose system generates synthetic audio or video -# has to mark the output in a machine-readable way. The regulation asks for the -# marking, not for a particular standard, and the cheap one that survives every -# player and every upload is a container tag: `ffprobe -show_format` reads it -# back, and TikTok/Reels/YouTube ignore it. Stamped by a stream copy, so it is -# a remux (no quality loss, ~0.2 s) and never a re-encode. -# -# Deliberately narrow: it goes on outputs where a machine actually synthesised -# voice or a person (dubbing, AI actors), not on an ordinary clip, whose audio -# and pixels are the user's own footage. Marking everything would make the tag -# mean nothing. -AI_DISCLOSURE = "AI-generated content produced with Clipwright (git.pbento.pt/pedro-bento/clipwright)" - - -def mark_ai_generated(path, detail=""): - """Stamp AI Act art. 50(2) machine-readable tags on a finished file. - - Returns True when the file now carries the tags. Never raises: a missing - tag must not lose the user the video they just paid minutes for. - """ - note = f"{AI_DISCLOSURE}: {detail}" if detail else AI_DISCLOSURE - tmp = f"{path}.aitag.mp4" - # `comment` and not a custom `ai_generated` key: mp4 only carries the - # standard iTunes-style tags, and ffmpeg drops anything else without - # warning (verified with ffprobe -show_entries format_tags). - # -map 0 because ffmpeg's default picks one stream per type: a dubbed file - # that ever ships two audio tracks would come back with one. - cmd = ["ffmpeg", "-y", "-i", path, "-map", "0", "-c", "copy", - "-metadata", f"comment={note}", - "-movflags", "+faststart", tmp] - try: - r = subprocess.run(cmd, capture_output=True, text=True, timeout=300) - if r.returncode != 0 or not os.path.exists(tmp) or os.path.getsize(tmp) == 0: - print(f"[ai-tag] skipped for {os.path.basename(path)}: {r.stderr[-300:]}") - if os.path.exists(tmp): - os.remove(tmp) - return False - os.replace(tmp, path) - return True - except Exception as e: - print(f"[ai-tag] skipped for {os.path.basename(path)}: {e}") - if os.path.exists(tmp): - try: - os.remove(tmp) - except OSError: - pass - return False - - def audio_encode_args(): """AAC encode args for a delivered clip, with loudness normalisation.""" args = ["-c:a", "aac"] diff --git a/clipwright/media/hooks.py b/clipwright/media/hooks.py index 3eb5e0f..4afc9a0 100644 --- a/clipwright/media/hooks.py +++ b/clipwright/media/hooks.py @@ -1,6 +1,5 @@ import os import re -import textwrap import subprocess import urllib.request import uuid @@ -273,7 +272,6 @@ def create_hook_image(text, target_width, output_image_path="hook_overlay.png", line_spacing = 20 # Increased spacing cornerradius = 20 shadow_offset = (5, 5) - shadow_blur = 10 # Font Size Calculation (approx 5% of width - tuned to match Noto Serif Bold metrics in browser) pills = bool(look.get("pills")) diff --git a/clipwright/media/recut.py b/clipwright/media/recut.py index 4c886fd..980fc90 100644 --- a/clipwright/media/recut.py +++ b/clipwright/media/recut.py @@ -17,7 +17,6 @@ Two render paths: with the same engine the pipeline used. """ -import json import os import shutil import subprocess diff --git a/clipwright/media/subtitles.py b/clipwright/media/subtitles.py index 9abe1c6..b65b231 100644 --- a/clipwright/media/subtitles.py +++ b/clipwright/media/subtitles.py @@ -114,41 +114,6 @@ def _normalize_subtitle_word(value): return " ".join(str(value or "").split()) -def transcribe_audio(video_path): - """ - Transcribe audio from a video file via the configured ASR backend. - Returns transcript in the same format as main.py for compatibility. - """ - # Lazy import: transcribe_backends imports helpers from this module. - from clipwright.pipeline.transcribe_backends import transcribe_media - - _log(f"🎙️ Transcribing audio from: {video_path}") - transcript = transcribe_media(video_path) - _log(f"✅ Transcription complete. Language: {transcript['language']}") - return transcript - - -def generate_srt_from_video(video_path, output_path, max_chars=20, max_duration=2.0, - style="classic", **style_opts): - """ - Transcribe a video and generate a subtitle file directly (SRT, or karaoke - ASS when style="karaoke"). Used for dubbed videos without a transcript. - """ - transcript = transcribe_audio(video_path) - - # Get video duration to use as clip_end - import cv2 - cap = cv2.VideoCapture(video_path) - fps = cap.get(cv2.CAP_PROP_FPS) - frame_count = int(cap.get(cv2.CAP_PROP_FRAME_COUNT)) - duration = frame_count / fps if fps else 0 - cap.release() - - if style == "karaoke": - return generate_ass(transcript, 0, duration, output_path, max_chars, max_duration, **style_opts) - return generate_srt(transcript, 0, duration, output_path, max_chars, max_duration) - - def _collect_word_blocks(transcript, clip_start, clip_end, max_chars=20, max_duration=2.0): """ Flatten transcript words for a clip range and group them into short blocks diff --git a/clipwright/media/thumbnail.py b/clipwright/media/thumbnail.py index 9cfe85e..3ec9450 100644 --- a/clipwright/media/thumbnail.py +++ b/clipwright/media/thumbnail.py @@ -522,8 +522,8 @@ def burn_thumbnail_text(img, text, position="left", color="white"): # AI Act art. 50(2): a synthetic image has to be marked in a machine-readable # way, and these thumbnails are exactly the case the article is about — an # image model painting a scene, often around a reference photo of the real -# presenter. Videos get the mp4 `comment` tag (ffmpeg_utils.mark_ai_generated); -# a JPEG's equivalent is XMP, and the interoperable vocabulary is IPTC's +# presenter. Videos get an mp4 `comment` tag; a JPEG's equivalent is XMP, and +# the interoperable vocabulary is IPTC's # DigitalSourceType, whose `trainedAlgorithmicMedia` value is what Google, # LinkedIn, TikTok and Adobe already read. Written alongside the EXIF Software # tag because the two survive different pipelines: a re-encode usually keeps diff --git a/clipwright/media/watermarked.py b/clipwright/media/watermarked.py index 00952b1..542c3d3 100644 --- a/clipwright/media/watermarked.py +++ b/clipwright/media/watermarked.py @@ -77,10 +77,3 @@ def mark_job(job_dir: str) -> None: f.write("1") except OSError: pass - - -def unmark_job(job_dir: str) -> None: - try: - os.remove(os.path.join(job_dir, MARKER_FILE)) - except OSError: - pass diff --git a/clipwright/pipeline/clip_selection.py b/clipwright/pipeline/clip_selection.py index 7ba9780..0b75093 100644 --- a/clipwright/pipeline/clip_selection.py +++ b/clipwright/pipeline/clip_selection.py @@ -188,18 +188,6 @@ def clip_duration_bounds(): return round(lo, 3), round(hi, 3) -def compact_words(words, precision=2): - """Round word timestamps for prompts — full float precision wastes tokens.""" - return [ - { - "w": w.get("w", ""), - "s": round(float(w.get("s", 0)), precision), - "e": round(float(w.get("e", 0)), precision), - } - for w in words - ] - - def build_transcript_windows(transcript_result, video_duration, window_seconds=90, overlap_seconds=30): """ diff --git a/clipwright/pipeline/gemini_worker.py b/clipwright/pipeline/gemini_worker.py index 685d4d1..f75b623 100644 --- a/clipwright/pipeline/gemini_worker.py +++ b/clipwright/pipeline/gemini_worker.py @@ -1,4 +1,3 @@ -import argparse import json import mimetypes import os @@ -6,12 +5,10 @@ import sys from typing import List, Optional from dotenv import load_dotenv -from google import genai from google.genai import types as genai_types from pydantic import BaseModel -from clipwright.pipeline.clip_selection import (clip_count_targets, clip_duration_bounds, - lookup_model_prices) +from clipwright.pipeline.clip_selection import lookup_model_prices load_dotenv() @@ -225,17 +222,6 @@ For "what", name the content in three words or fewer (e.g. "stock chart", """ -def _configure_stdio() -> None: - for stream_name in ("stdout", "stderr"): - stream = getattr(sys, stream_name, None) - if not stream or not hasattr(stream, "reconfigure"): - continue - try: - stream.reconfigure(encoding="utf-8", errors="replace") - except Exception: - pass - - def _log(message: str) -> None: stream = sys.stdout text = str(message) @@ -567,69 +553,4 @@ def _config_for_strategy(strategy: str, mode: str, model_name: str) -> genai_typ return genai_types.GenerateContentConfig(**kwargs) -def main() -> int: - _configure_stdio() - parser = argparse.ArgumentParser(description="Run a single Gemini request for clip scoring/detailing.") - parser.add_argument("--mode", choices=["score", "detail"], required=True) - parser.add_argument("--input", dest="input_path", required=True) - parser.add_argument("--output", dest="output_path", required=True) - parser.add_argument("--strategy", default="structured-schema") - parser.add_argument("--model", default="gemini-2.5-flash") - args = parser.parse_args() - - api_key = os.getenv("GEMINI_API_KEY") - if not api_key: - raise SystemExit("Missing GEMINI_API_KEY.") - - with open(args.input_path, "r", encoding="utf-8") as f: - payload = json.load(f) - - model_name = args.model - client = genai.Client(api_key=api_key) - config = _config_for_strategy(args.strategy, args.mode, model_name) - language = str(payload.get("language") or "unknown") - - template = SCORE_PROMPT_TEMPLATE if args.mode == "score" else DETAIL_PROMPT_TEMPLATE - fmt = { - "video_duration": payload["video_duration"], - "language": language, - "windows_json": json.dumps(payload["windows"], ensure_ascii=False), - } - if args.mode != "score": - # Score mode receives every window, not a shortlist, so a count target - # derived from it would be meaningless — and the score template has no - # placeholder for one: it ranks whatever it is given. - fmt["min_clips"], fmt["max_clips"] = clip_count_targets(len(payload.get("windows") or [])) - fmt["min_secs"], fmt["max_secs"] = clip_duration_bounds() - prompt = template.format(**fmt) - - _log(f"🤖 Gemini worker request: mode={args.mode} strategy={args.strategy} model={model_name} items={len(payload.get('windows', []))}") - response = client.models.generate_content( - model=model_name, - contents=prompt, - config=config, - ) - - raw_text = _get_response_text(response) - # With response_schema the SDK returns an already-validated object; fall - # back to the text-repair path only when that is unavailable. - parsed_obj = getattr(response, "parsed", None) - if parsed_obj is not None: - parsed = parsed_obj.model_dump() if hasattr(parsed_obj, "model_dump") else parsed_obj - else: - parsed = _parse_json_response_text(raw_text) - result = { - "mode": args.mode, - "payload": parsed, - "cost_analysis": _calculate_cost_analysis(response, model_name), - "raw_text": raw_text, - } - with open(args.output_path, "w", encoding="utf-8") as f: - json.dump(result, f, indent=2, ensure_ascii=False) - _log(f"✅ Gemini worker success: mode={args.mode}") - return 0 - - -if __name__ == "__main__": - raise SystemExit(main()) diff --git a/clipwright/pipeline/llm_backend.py b/clipwright/pipeline/llm_backend.py index 96a5cbf..b64ba80 100644 --- a/clipwright/pipeline/llm_backend.py +++ b/clipwright/pipeline/llm_backend.py @@ -23,7 +23,6 @@ so ``main.py`` sees one shape regardless of provider. """ from __future__ import annotations -import json import os from typing import Optional, Tuple, Type diff --git a/clipwright/pipeline/main.py b/clipwright/pipeline/main.py index 4f6a580..c071197 100644 --- a/clipwright/pipeline/main.py +++ b/clipwright/pipeline/main.py @@ -9,10 +9,7 @@ import threading import unicodedata import uuid from concurrent.futures import ThreadPoolExecutor, as_completed -from scenedetect import open_video, SceneManager -from scenedetect.detectors import ContentDetector from ultralytics import YOLO -import torch import os import math import numpy as np @@ -33,7 +30,7 @@ from clipwright.pipeline.clip_selection import (build_transcript_windows, clip_c clip_duration_bounds, dedupe_overlapping, score_batches, shortlist_target, snap_clip_to_words, trim_to_best) -from clipwright.media.ffmpeg_utils import (video_encode_args, audio_encode_args, cut_clip, QUALITY, +from clipwright.media.ffmpeg_utils import (video_encode_args, cut_clip, QUALITY, QUALITY_FAST, METADATA_SCRUB) from dotenv import load_dotenv import json @@ -47,45 +44,6 @@ load_dotenv() # --- Constants --- ASPECT_RATIO = 9 / 16 -GEMINI_PROMPT_TEMPLATE = """ -You are a senior short-form video editor. Read the ENTIRE transcript and word-level timestamps to choose the 3–15 MOST VIRAL moments for TikTok/IG Reels/YouTube Shorts. Each clip must be between 15 and 60 seconds long. - -⚠️ FFMPEG TIME CONTRACT — STRICT REQUIREMENTS: -- Return timestamps in ABSOLUTE SECONDS from the start of the video (usable in: ffmpeg -ss -to -i ...). -- Only NUMBERS with decimal point, up to 3 decimals (examples: 0, 1.250, 17.350). -- Ensure 0 ≤ start < end ≤ VIDEO_DURATION_SECONDS. -- Each clip between 15 and 60 s (inclusive). -- Prefer starting 0.2–0.4 s BEFORE the hook and ending 0.2–0.4 s AFTER the payoff. -- Use silence moments for natural cuts; never cut in the middle of a word or phrase. -- STRICTLY FORBIDDEN to use time formats other than absolute seconds. - -VIDEO_DURATION_SECONDS: {video_duration} - -TRANSCRIPT_TEXT (raw): -{transcript_text} - -WORDS_JSON (array of {{w, s, e}} where s/e are seconds): -{words_json} - -STRICT EXCLUSIONS: -- No generic intros/outros or purely sponsorship segments unless they contain the hook. -- No clips < 15 s or > 60 s. - -OUTPUT — RETURN ONLY VALID JSON (no markdown, no comments). Order clips by predicted performance (best to worst). In the descriptions, ALWAYS include a CTA like "Follow me and comment X and I'll send you the workflow" (especially if discussing an n8n workflow): -{{ - "shorts": [ - {{ - "start": , - "end": , - "video_description_for_tiktok": "", - "video_description_for_instagram": "", - "video_title_for_youtube_short": "", - "viral_hook_text": "<SHORT punchy text overlay (max 10 words) with 1-2 fitting emojis. MUST BE IN THE SAME LANGUAGE AS THE VIDEO TRANSCRIPT. Examples: 'POV: You realized... 😳', 'Did you know? 🤯', 'Stop doing this! 🚫'>" - }} - ] -}} -""" - # Load the YOLO model once (Keep for backup or scene analysis if needed) # YOLO_MODEL_PATH lets deployments point at a pre-downloaded weights file so a # volume mounted over the workdir doesn't trigger a re-download at startup. diff --git a/clipwright/tools/verify_aesthetic.py b/clipwright/tools/verify_aesthetic.py index e4f5ee9..a9c1cc9 100644 --- a/clipwright/tools/verify_aesthetic.py +++ b/clipwright/tools/verify_aesthetic.py @@ -1,5 +1,4 @@ import os -import shutil # Check if PIL is installed, if not we can't run this locally but it will run in docker try: from clipwright.media.hooks import create_hook_image diff --git a/clipwright/tools/verify_hooks.py b/clipwright/tools/verify_hooks.py index a1bee1b..4ecea97 100644 --- a/clipwright/tools/verify_hooks.py +++ b/clipwright/tools/verify_hooks.py @@ -1,5 +1,4 @@ import os -import shutil from clipwright.media.hooks import create_hook_image def verify(): diff --git a/dashboard/README.md b/dashboard/README.md index 18bc70e..fa25a0c 100644 --- a/dashboard/README.md +++ b/dashboard/README.md @@ -1,16 +1,9 @@ -# React + Vite +# Clipwright dashboard -This template provides a minimal setup to get React working in Vite with HMR and some ESLint rules. +Vite + React front end for Clipwright. -Currently, two official plugins are available: - -- [@vitejs/plugin-react](https://github.com/vitejs/vite-plugin-react/blob/main/packages/plugin-react) uses [Babel](https://babeljs.io/) (or [oxc](https://oxc.rs) when used in [rolldown-vite](https://vite.dev/guide/rolldown)) for Fast Refresh -- [@vitejs/plugin-react-swc](https://github.com/vitejs/vite-plugin-react/blob/main/packages/plugin-react-swc) uses [SWC](https://swc.rs/) for Fast Refresh - -## React Compiler - -The React Compiler is not enabled on this template because of its impact on dev & build performances. To add it, see [this documentation](https://react.dev/learn/react-compiler/installation). - -## Expanding the ESLint configuration - -If you are developing a production application, we recommend using TypeScript with type-aware lint rules enabled. Check out the [TS template](https://github.com/vitejs/vite/tree/main/packages/create-vite/template-react-ts) for information on how to integrate TypeScript and [`typescript-eslint`](https://typescript-eslint.io) in your project. +- `npm install` — install dependencies +- `npm run dev` — dev server with HMR +- `npm run build` — production build to `dist/` +- `npm run preview` — serve the built output +- `npm run lint` — ESLint diff --git a/dashboard/nginx.conf b/dashboard/nginx.conf index 96c827c..e2ae976 100644 --- a/dashboard/nginx.conf +++ b/dashboard/nginx.conf @@ -41,10 +41,10 @@ server { # trailing-slash URL, so every canonical would point at a redirect. # # Unknown paths get a real 404, not the SPA shell. The app routes entirely - # through the hash (#/pricing, #/auth/callback), which never reaches the - # server, so there is no deep link that needs the fallback — and answering - # 200 with identical markup for every made-up path made the whole site look - # like one page duplicated infinitely to a crawler. + # through the hash, which never reaches the server, so there is no deep link + # that needs the fallback — and answering 200 with identical markup for + # every made-up path made the whole site look like one page duplicated + # infinitely to a crawler. location / { try_files $uri $uri.html $uri/ =404; add_header Cache-Control "no-store, must-revalidate" always; diff --git a/dashboard/package-lock.json b/dashboard/package-lock.json index 0be7dc4..13a4136 100644 --- a/dashboard/package-lock.json +++ b/dashboard/package-lock.json @@ -9,15 +9,13 @@ "version": "0.0.0", "dependencies": { "@remotion/media": "^4.0.447", - "@remotion/media-utils": "^4.0.447", "@remotion/player": "^4.0.447", "@remotion/web-renderer": "^4.0.447", "lucide-react": "^0.344.0", "mediabunny": "^1.39.2", "react": "^18.2.0", "react-dom": "^18.2.0", - "remotion": "^4.0.447", - "zod": "^4.3.6" + "remotion": "^4.0.447" }, "devDependencies": { "@eslint/js": "^9.39.5", @@ -1008,20 +1006,6 @@ "react-dom": ">=16.8.0" } }, - "node_modules/@remotion/media-utils": { - "version": "4.0.447", - "resolved": "https://registry.npmjs.org/@remotion/media-utils/-/media-utils-4.0.447.tgz", - "integrity": "sha512-PltvSZsY+By8DlsZeAN63D1cMsgXewCqEq39nJrO0VZVc5nnWyd+nvMZz9yhGsoMo2Z5xNkfZhPkl+Gs25wn0Q==", - "license": "MIT", - "dependencies": { - "mediabunny": "1.39.2", - "remotion": "4.0.447" - }, - "peerDependencies": { - "react": ">=16.8.0", - "react-dom": ">=16.8.0" - } - }, "node_modules/@remotion/player": { "version": "4.0.447", "resolved": "https://registry.npmjs.org/@remotion/player/-/player-4.0.447.tgz", @@ -5816,15 +5800,6 @@ "zod": "4.3.6" } }, - "@remotion/media-utils": { - "version": "4.0.447", - "resolved": "https://registry.npmjs.org/@remotion/media-utils/-/media-utils-4.0.447.tgz", - "integrity": "sha512-PltvSZsY+By8DlsZeAN63D1cMsgXewCqEq39nJrO0VZVc5nnWyd+nvMZz9yhGsoMo2Z5xNkfZhPkl+Gs25wn0Q==", - "requires": { - "mediabunny": "1.39.2", - "remotion": "4.0.447" - } - }, "@remotion/player": { "version": "4.0.447", "resolved": "https://registry.npmjs.org/@remotion/player/-/player-4.0.447.tgz", diff --git a/dashboard/package.json b/dashboard/package.json index 70ff8d6..cbb73ec 100644 --- a/dashboard/package.json +++ b/dashboard/package.json @@ -11,15 +11,13 @@ }, "dependencies": { "@remotion/media": "^4.0.447", - "@remotion/media-utils": "^4.0.447", "@remotion/player": "^4.0.447", "@remotion/web-renderer": "^4.0.447", "lucide-react": "^0.344.0", "mediabunny": "^1.39.2", "react": "^18.2.0", "react-dom": "^18.2.0", - "remotion": "^4.0.447", - "zod": "^4.3.6" + "remotion": "^4.0.447" }, "devDependencies": { "@eslint/js": "^9.39.5", diff --git a/dashboard/public/demo/clip-source.mp4 b/dashboard/public/demo/clip-source.mp4 deleted file mode 100644 index 0dafa14..0000000 Binary files a/dashboard/public/demo/clip-source.mp4 and /dev/null differ diff --git a/dashboard/public/demo/clip-vertical.mp4 b/dashboard/public/demo/clip-vertical.mp4 deleted file mode 100644 index ff15f95..0000000 Binary files a/dashboard/public/demo/clip-vertical.mp4 and /dev/null differ diff --git a/dashboard/public/screens/connect-an-agent.webp b/dashboard/public/screens/connect-an-agent.webp deleted file mode 100644 index 00a55d1..0000000 Binary files a/dashboard/public/screens/connect-an-agent.webp and /dev/null differ diff --git a/dashboard/public/vite.svg b/dashboard/public/vite.svg deleted file mode 100644 index e7b8dfb..0000000 --- a/dashboard/public/vite.svg +++ /dev/null @@ -1 +0,0 @@ -<svg xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" aria-hidden="true" role="img" class="iconify iconify--logos" width="31.88" height="32" preserveAspectRatio="xMidYMid meet" viewBox="0 0 256 257"><defs><linearGradient id="IconifyId1813088fe1fbc01fb466" x1="-.828%" x2="57.636%" y1="7.652%" y2="78.411%"><stop offset="0%" stop-color="#41D1FF"></stop><stop offset="100%" stop-color="#BD34FE"></stop></linearGradient><linearGradient id="IconifyId1813088fe1fbc01fb467" x1="43.376%" x2="50.316%" y1="2.242%" y2="89.03%"><stop offset="0%" stop-color="#FFEA83"></stop><stop offset="8.333%" stop-color="#FFDD35"></stop><stop offset="100%" stop-color="#FFA800"></stop></linearGradient></defs><path fill="url(#IconifyId1813088fe1fbc01fb466)" d="M255.153 37.938L134.897 252.976c-2.483 4.44-8.862 4.466-11.382.048L.875 37.958c-2.746-4.814 1.371-10.646 6.827-9.67l120.385 21.517a6.537 6.537 0 0 0 2.322-.004l117.867-21.483c5.438-.991 9.574 4.796 6.877 9.62Z"></path><path fill="url(#IconifyId1813088fe1fbc01fb467)" d="M185.432.063L96.44 17.501a3.268 3.268 0 0 0-2.634 3.014l-5.474 92.456a3.268 3.268 0 0 0 3.997 3.378l24.777-5.718c2.318-.535 4.413 1.507 3.936 3.838l-7.361 36.047c-.495 2.426 1.782 4.5 4.151 3.78l15.304-4.649c2.372-.72 4.652 1.36 4.15 3.788l-11.698 56.621c-.732 3.542 3.979 5.473 5.943 2.437l1.313-2.028l72.516-144.72c1.215-2.423-.88-5.186-3.54-4.672l-25.505 4.922c-2.396.462-4.435-1.77-3.759-4.114l16.646-57.705c.677-2.35-1.37-4.583-3.769-4.113Z"></path></svg> \ No newline at end of file diff --git a/dashboard/seo/data.js b/dashboard/seo/data.js index 4390ec8..062c16e 100644 --- a/dashboard/seo/data.js +++ b/dashboard/seo/data.js @@ -210,17 +210,3 @@ export const COMPARISON_ROWS = [ { feature: 'Free AI YouTube thumbnail & title studio', os: 'Yes', vendor: 'No' }, { feature: 'Usage cap', os: 'None', vendor: 'Metered on every tier' }, ] - -/* Third-party figures used across the pages. Every one is attributed inline, - * because sourced statistics are among the few things that reliably survive - * into a generated answer. */ -export const CITED_STATS = [ - { - claim: 'Short-form video delivers the highest ROI of any content format.', - source: 'HubSpot, State of Marketing 2025', - }, - { - claim: '91% of businesses use video as a marketing tool.', - source: 'Wyzowl, Video Marketing Statistics 2025', - }, -] diff --git a/dashboard/src/App.css b/dashboard/src/App.css deleted file mode 100644 index b9d355d..0000000 --- a/dashboard/src/App.css +++ /dev/null @@ -1,42 +0,0 @@ -#root { - max-width: 1280px; - margin: 0 auto; - padding: 2rem; - text-align: center; -} - -.logo { - height: 6em; - padding: 1.5em; - will-change: filter; - transition: filter 300ms; -} -.logo:hover { - filter: drop-shadow(0 0 2em #646cffaa); -} -.logo.react:hover { - filter: drop-shadow(0 0 2em #61dafbaa); -} - -@keyframes logo-spin { - from { - transform: rotate(0deg); - } - to { - transform: rotate(360deg); - } -} - -@media (prefers-reduced-motion: no-preference) { - a:nth-of-type(2) .logo { - animation: logo-spin infinite 20s linear; - } -} - -.card { - padding: 2em; -} - -.read-the-docs { - color: #888; -} diff --git a/dashboard/src/assets/react.svg b/dashboard/src/assets/react.svg deleted file mode 100644 index 6c87de9..0000000 --- a/dashboard/src/assets/react.svg +++ /dev/null @@ -1 +0,0 @@ -<svg xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" aria-hidden="true" role="img" class="iconify iconify--logos" width="35.93" height="32" preserveAspectRatio="xMidYMid meet" viewBox="0 0 256 228"><path fill="#00D8FF" d="M210.483 73.824a171.49 171.49 0 0 0-8.24-2.597c.465-1.9.893-3.777 1.273-5.621c6.238-30.281 2.16-54.676-11.769-62.708c-13.355-7.7-35.196.329-57.254 19.526a171.23 171.23 0 0 0-6.375 5.848a155.866 155.866 0 0 0-4.241-3.917C100.759 3.829 77.587-4.822 63.673 3.233C50.33 10.957 46.379 33.89 51.995 62.588a170.974 170.974 0 0 0 1.892 8.48c-3.28.932-6.445 1.924-9.474 2.98C17.309 83.498 0 98.307 0 113.668c0 15.865 18.582 31.778 46.812 41.427a145.52 145.52 0 0 0 6.921 2.165a167.467 167.467 0 0 0-2.01 9.138c-5.354 28.2-1.173 50.591 12.134 58.266c13.744 7.926 36.812-.22 59.273-19.855a145.567 145.567 0 0 0 5.342-4.923a168.064 168.064 0 0 0 6.92 6.314c21.758 18.722 43.246 26.282 56.54 18.586c13.731-7.949 18.194-32.003 12.4-61.268a145.016 145.016 0 0 0-1.535-6.842c1.62-.48 3.21-.974 4.76-1.488c29.348-9.723 48.443-25.443 48.443-41.52c0-15.417-17.868-30.326-45.517-39.844Zm-6.365 70.984c-1.4.463-2.836.91-4.3 1.345c-3.24-10.257-7.612-21.163-12.963-32.432c5.106-11 9.31-21.767 12.459-31.957c2.619.758 5.16 1.557 7.61 2.4c23.69 8.156 38.14 20.213 38.14 29.504c0 9.896-15.606 22.743-40.946 31.14Zm-10.514 20.834c2.562 12.94 2.927 24.64 1.23 33.787c-1.524 8.219-4.59 13.698-8.382 15.893c-8.067 4.67-25.32-1.4-43.927-17.412a156.726 156.726 0 0 1-6.437-5.87c7.214-7.889 14.423-17.06 21.459-27.246c12.376-1.098 24.068-2.894 34.671-5.345a134.17 134.17 0 0 1 1.386 6.193ZM87.276 214.515c-7.882 2.783-14.16 2.863-17.955.675c-8.075-4.657-11.432-22.636-6.853-46.752a156.923 156.923 0 0 1 1.869-8.499c10.486 2.32 22.093 3.988 34.498 4.994c7.084 9.967 14.501 19.128 21.976 27.15a134.668 134.668 0 0 1-4.877 4.492c-9.933 8.682-19.886 14.842-28.658 17.94ZM50.35 144.747c-12.483-4.267-22.792-9.812-29.858-15.863c-6.35-5.437-9.555-10.836-9.555-15.216c0-9.322 13.897-21.212 37.076-29.293c2.813-.98 5.757-1.905 8.812-2.773c3.204 10.42 7.406 21.315 12.477 32.332c-5.137 11.18-9.399 22.249-12.634 32.792a134.718 134.718 0 0 1-6.318-1.979Zm12.378-84.26c-4.811-24.587-1.616-43.134 6.425-47.789c8.564-4.958 27.502 2.111 47.463 19.835a144.318 144.318 0 0 1 3.841 3.545c-7.438 7.987-14.787 17.08-21.808 26.988c-12.04 1.116-23.565 2.908-34.161 5.309a160.342 160.342 0 0 1-1.76-7.887Zm110.427 27.268a347.8 347.8 0 0 0-7.785-12.803c8.168 1.033 15.994 2.404 23.343 4.08c-2.206 7.072-4.956 14.465-8.193 22.045a381.151 381.151 0 0 0-7.365-13.322Zm-45.032-43.861c5.044 5.465 10.096 11.566 15.065 18.186a322.04 322.04 0 0 0-30.257-.006c4.974-6.559 10.069-12.652 15.192-18.18ZM82.802 87.83a323.167 323.167 0 0 0-7.227 13.238c-3.184-7.553-5.909-14.98-8.134-22.152c7.304-1.634 15.093-2.97 23.209-3.984a321.524 321.524 0 0 0-7.848 12.897Zm8.081 65.352c-8.385-.936-16.291-2.203-23.593-3.793c2.26-7.3 5.045-14.885 8.298-22.6a321.187 321.187 0 0 0 7.257 13.246c2.594 4.48 5.28 8.868 8.038 13.147Zm37.542 31.03c-5.184-5.592-10.354-11.779-15.403-18.433c4.902.192 9.899.29 14.978.29c5.218 0 10.376-.117 15.453-.343c-4.985 6.774-10.018 12.97-15.028 18.486Zm52.198-57.817c3.422 7.8 6.306 15.345 8.596 22.52c-7.422 1.694-15.436 3.058-23.88 4.071a382.417 382.417 0 0 0 7.859-13.026a347.403 347.403 0 0 0 7.425-13.565Zm-16.898 8.101a358.557 358.557 0 0 1-12.281 19.815a329.4 329.4 0 0 1-23.444.823c-7.967 0-15.716-.248-23.178-.732a310.202 310.202 0 0 1-12.513-19.846h.001a307.41 307.41 0 0 1-10.923-20.627a310.278 310.278 0 0 1 10.89-20.637l-.001.001a307.318 307.318 0 0 1 12.413-19.761c7.613-.576 15.42-.876 23.31-.876H128c7.926 0 15.743.303 23.354.883a329.357 329.357 0 0 1 12.335 19.695a358.489 358.489 0 0 1 11.036 20.54a329.472 329.472 0 0 1-11 20.722Zm22.56-122.124c8.572 4.944 11.906 24.881 6.52 51.026c-.344 1.668-.73 3.367-1.15 5.09c-10.622-2.452-22.155-4.275-34.23-5.408c-7.034-10.017-14.323-19.124-21.64-27.008a160.789 160.789 0 0 1 5.888-5.4c18.9-16.447 36.564-22.941 44.612-18.3ZM128 90.808c12.625 0 22.86 10.235 22.86 22.86s-10.235 22.86-22.86 22.86s-22.86-10.235-22.86-22.86s10.235-22.86 22.86-22.86Z"></path></svg> \ No newline at end of file diff --git a/dashboard/src/components/CookieBanner.jsx b/dashboard/src/components/CookieBanner.jsx index 75fd2eb..96542ab 100644 --- a/dashboard/src/components/CookieBanner.jsx +++ b/dashboard/src/components/CookieBanner.jsx @@ -8,12 +8,10 @@ // "Accept all" are the same component with the same size, weight, colour // and position; there is no pre-ticked box and no dark pattern. // -// It renders nothing once a decision exists — the footer link -// (openConsentManager) is how anyone changes their mind. -import { useEffect, useState } from 'react'; +// It renders nothing once a decision exists. +import { useState } from 'react'; import { getConsent, hasDecided, acceptAll, rejectAll, setConsent, - onConsentOpenRequest, } from '../lib/consent'; const CATEGORY_COPY = [ @@ -41,12 +39,6 @@ export default function CookieBanner() { const [details, setDetails] = useState(false); const [draft, setDraft] = useState(() => getConsent()); - useEffect(() => onConsentOpenRequest(() => { - setDraft(getConsent()); - setDetails(true); - setOpen(true); - }), []); - if (!open) return null; const close = () => { setOpen(false); setDetails(false); }; diff --git a/dashboard/src/lib/consent.js b/dashboard/src/lib/consent.js index 8e97c2f..643f7d7 100644 --- a/dashboard/src/lib/consent.js +++ b/dashboard/src/lib/consent.js @@ -23,8 +23,6 @@ const STORAGE_KEY = 'clipwright_consent'; const VERSION = 1; -export const CATEGORIES = ['necessary', 'analytics', 'marketing']; - const DENY_ALL = { necessary: true, analytics: false, marketing: false }; const GRANT_ALL = { necessary: true, analytics: true, marketing: true }; @@ -62,9 +60,6 @@ export function refineGeo() { .catch(() => {}); } - -const listeners = new Set(); - const read = () => { try { const raw = localStorage.getItem(STORAGE_KEY); @@ -77,9 +72,6 @@ const read = () => { } }; -/** The stored decision, or null when the visitor has never been asked. */ -export const getConsentRecord = () => read(); - /** Effective permissions. Nothing but `necessary` before a decision exists. */ export const getConsent = () => { const stored = read(); @@ -97,11 +89,6 @@ export const hasDecided = () => read() !== null || !isEEAVisitor(); export const allows = (category) => !!getConsent()[category]; -export function onConsentChange(fn) { - listeners.add(fn); - return () => listeners.delete(fn); -} - /** * Persist a decision and act on it immediately. * @@ -123,8 +110,6 @@ export function setConsent(choice) { localStorage.setItem(STORAGE_KEY, JSON.stringify(next)); } catch (_) { /* private mode: the decision holds for this page at least */ } - listeners.forEach((fn) => { try { fn(getConsent()); } catch (_) { /* ignore */ } }); - applyConsent(); return getConsent(); } @@ -143,14 +128,3 @@ export function applyConsent() { return false; } } - -// Reopening the banner from anywhere (the footer link) without threading props -// through the whole tree. -const OPEN_EVENT = 'clipwright:consent-open'; -export const openConsentManager = () => { - try { window.dispatchEvent(new CustomEvent(OPEN_EVENT)); } catch (_) { /* ignore */ } -}; -export const onConsentOpenRequest = (fn) => { - window.addEventListener(OPEN_EVENT, fn); - return () => window.removeEventListener(OPEN_EVENT, fn); -}; diff --git a/dashboard/src/lib/renderInBrowser.js b/dashboard/src/lib/renderInBrowser.js index 2d3e329..e82154a 100644 --- a/dashboard/src/lib/renderInBrowser.js +++ b/dashboard/src/lib/renderInBrowser.js @@ -60,15 +60,3 @@ export async function renderInBrowser({ const blob = await getBlob(); return URL.createObjectURL(blob); } - -/** - * Triggers a download of a blob URL as an MP4 file. - */ -export function downloadBlobUrl(blobUrl, filename = 'output.mp4') { - const link = document.createElement('a'); - link.href = blobUrl; - link.download = filename; - document.body.appendChild(link); - link.click(); - document.body.removeChild(link); -} diff --git a/dashboard/src/remotion/lib/types.ts b/dashboard/src/remotion/lib/types.ts index 754ea6c..6b5c62a 100644 --- a/dashboard/src/remotion/lib/types.ts +++ b/dashboard/src/remotion/lib/types.ts @@ -1,5 +1,3 @@ -import { z } from "zod"; - // --- Word-level caption --- export interface CaptionWord { text: string; @@ -94,66 +92,3 @@ export interface ShortVideoProps { hook: HookConfig | null; effects: EffectsConfig | null; } - -// --- Zod schemas for validation (used by render service) --- -export const captionWordSchema = z.object({ - text: z.string(), - startMs: z.number(), - endMs: z.number(), -}); - -export const subtitleStyleSchema = z.object({ - fontFamily: z.string(), - fontSize: z.number(), - fontColor: z.string(), - highlightColor: z.string(), - borderColor: z.string(), - borderWidth: z.number(), - bgColor: z.string(), - bgOpacity: z.number().min(0).max(1), - animation: z.enum(["none", "word-highlight", "pop", "karaoke"]), -}); - -export const subtitleConfigSchema = z.object({ - captions: z.array(captionWordSchema), - position: z.enum(["top", "middle", "bottom"]), - style: subtitleStyleSchema, -}); - -export const hookConfigSchema = z.object({ - text: z.string(), - position: z.enum(["top", "center", "bottom"]), - size: z.enum(["S", "M", "L"]), - style: z - .enum(["pill", "classic", "dark", "yellow", "red", "outline", "outline_yellow"]) - .default("pill"), - font: z.enum(["montserrat", "anton", "serif"]).optional(), - entranceAnimation: z.enum(["spring", "fade", "slide-up", "none"]), - displayDurationSec: z.number().positive(), -}); - -export const effectSegmentSchema = z.object({ - startSec: z.number().min(0), - endSec: z.number().positive(), - zoom: z.number().min(0.5).max(3), - zoomCenterX: z.number().min(0).max(1), - zoomCenterY: z.number().min(0).max(1), - brightness: z.number().min(0).max(3), - contrast: z.number().min(0).max(3), - saturate: z.number().min(0).max(3), -}); - -export const effectsConfigSchema = z.object({ - segments: z.array(effectSegmentSchema), -}); - -export const shortVideoPropsSchema = z.object({ - videoUrl: z.string(), - durationInFrames: z.number().int().positive(), - fps: z.number().positive(), - width: z.number().int().positive(), - height: z.number().int().positive(), - subtitles: subtitleConfigSchema.nullable(), - hook: hookConfigSchema.nullable(), - effects: effectsConfigSchema.nullable(), -}); diff --git a/dashboard/vite.config.js b/dashboard/vite.config.js index 430cb77..29b2e0c 100644 --- a/dashboard/vite.config.js +++ b/dashboard/vite.config.js @@ -6,7 +6,6 @@ import seo from './vite-plugin-seo' // name; set VITE_PROXY_TARGET=http://localhost:8000 to run the dev server on // the host against a backend reachable at localhost (no CORS, same-origin). const backend = process.env.VITE_PROXY_TARGET || 'http://backend:8000' -const renderer = process.env.VITE_RENDER_TARGET || 'http://renderer:3100' // https://vitejs.dev/config/ export default defineConfig({ @@ -36,7 +35,6 @@ export default defineConfig({ '/api': { target: backend, changeOrigin: true }, '/videos': { target: backend, changeOrigin: true }, '/thumbnails': { target: backend, changeOrigin: true }, - '/render': { target: renderer, changeOrigin: true }, } } }) diff --git a/docker-compose.e2e.local.yml b/docker-compose.e2e.local.yml deleted file mode 100644 index 5290a97..0000000 --- a/docker-compose.e2e.local.yml +++ /dev/null @@ -1,19 +0,0 @@ -# Local-only override: remap host ports to avoid clashes with other running -# projects (e.g. another backend on :8000). Not for production. -# `!override` REPLACES the base ports list instead of appending to it. -services: - backend: - ports: !override - - "8001:8000" - environment: - # Point auth/magic-link/CORS at the local frontend instead of git.pbento.pt/pedro-bento/clipwright. - - FRONTEND_URL=http://localhost:5176 - - ALLOWED_ORIGINS=http://localhost:5176,http://localhost:5175,http://localhost:8001 - frontend: - ports: !override - - "5176:5173" - environment: - # Call the backend directly (not via the Vite proxy) so Google OAuth builds - # a redirect_uri of http://localhost:8001/... which matches the registered - # client. Cross-origin API calls are allowed by ALLOWED_ORIGINS above. - - VITE_API_URL=http://localhost:8001 diff --git a/docker-compose.yml b/docker-compose.yml index f071e88..9a6fdde 100644 --- a/docker-compose.yml +++ b/docker-compose.yml @@ -29,20 +29,3 @@ services: restart: unless-stopped depends_on: - backend - - renderer: - build: - context: . - dockerfile: render-service/Dockerfile - container_name: clipwright-renderer - ports: - - "3100:3100" - volumes: - - ./output:/output - environment: - - REMOTION_BUNDLE_PATH=/app/remotion - - OUTPUT_DIR=/output - - PORT=3100 - restart: unless-stopped - depends_on: - - backend diff --git a/docs/compliance/retencion.md b/docs/compliance/retencion.md index 62eac71..f21210e 100644 --- a/docs/compliance/retencion.md +++ b/docs/compliance/retencion.md @@ -23,7 +23,7 @@ las constantes de entorno. | Descarga de origen conservada de un trabajo por URL | Igual que el trabajo, o antes si se configura | `app._sweep_retained_sources`, `SOURCE_RETENTION_SECONDS` | | Subidas pendientes de trabajo | **6 h** | `app._sweep_pending_uploads`, `UPLOAD_TTL_SECONDS` | | Ficheros en `uploads/` | **1 h** (misma vuelta del barrido) | `app.cleanup_jobs` | -| **Miniaturas generadas y fotogramas muestreados** (`output/thumbnails/<sesión>`) — recortes de la cara del presentador | **24 h desde la última descarga**; servir un fichero reinicia el reloj | `app._sweep_thumbnail_sessions`, `THUMBNAIL_RETENTION_SECONDS` | +| **Miniaturas generadas y fotogramas muestreados** (`output/thumbnails/<sesión>`) — recortes de la cara del presentador | Sin caducidad automática: permanecen hasta que borres la sesión o el volumen de salida | Sin barrido dedicado: `app.cleanup_jobs` omite `output/thumbnails` | | Tope de disco: se purgan los trabajos más antiguos por encima del límite | Inmediato al superarlo | `app._enforce_output_size_cap`, `OUTPUT_MAX_GB` | La retención de fotos de actor se retiró con la función de vídeo UGC diff --git a/pyproject.toml b/pyproject.toml index ba47db1..42efd0e 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -17,8 +17,6 @@ line-length = 100 target-version = "py311" extend-exclude = [ "dashboard", - "render-service", - "remotion", "cli", "output", "uploads", diff --git a/remotion/.gitignore b/remotion/.gitignore deleted file mode 100644 index b947077..0000000 --- a/remotion/.gitignore +++ /dev/null @@ -1,2 +0,0 @@ -node_modules/ -dist/ diff --git a/remotion/package.json b/remotion/package.json deleted file mode 100644 index 7ce33c2..0000000 --- a/remotion/package.json +++ /dev/null @@ -1,27 +0,0 @@ -{ - "name": "clipwright-remotion", - "version": "1.0.0", - "private": true, - "type": "module", - "scripts": { - "studio": "remotion studio", - "render": "remotion render", - "build": "tsc --noEmit" - }, - "dependencies": { - "@remotion/cli": "^4.0.0", - "@remotion/google-fonts": "^4.0.0", - "@remotion/layout-utils": "^4.0.0", - "@remotion/media": "^4.0.447", - "@remotion/player": "^4.0.0", - "react": "^18.2.0", - "react-dom": "^18.2.0", - "remotion": "^4.0.0", - "zod": "^4.3.6" - }, - "devDependencies": { - "@types/react": "^18.2.64", - "@types/react-dom": "^18.2.21", - "typescript": "^5.4.0" - } -} diff --git a/remotion/public/fonts/NotoSerif-Bold.ttf b/remotion/public/fonts/NotoSerif-Bold.ttf deleted file mode 100644 index 3d1ffeb..0000000 Binary files a/remotion/public/fonts/NotoSerif-Bold.ttf and /dev/null differ diff --git a/remotion/src/Root.tsx b/remotion/src/Root.tsx deleted file mode 100644 index 19b9468..0000000 --- a/remotion/src/Root.tsx +++ /dev/null @@ -1,96 +0,0 @@ -import React from "react"; -import { Composition } from "remotion"; -import { ShortVideo } from "./compositions/ShortVideo"; -import type { ShortVideoProps } from "./lib/types"; -import { shortVideoPropsSchema } from "./lib/types"; - -const DEFAULT_PROPS: ShortVideoProps = { - videoUrl: "", - durationInFrames: 900, // 30s at 30fps - fps: 30, - width: 1080, - height: 1920, - subtitles: { - captions: [ - { text: "This", startMs: 0, endMs: 400 }, - { text: "is", startMs: 400, endMs: 600 }, - { text: "a", startMs: 600, endMs: 750 }, - { text: "demo", startMs: 750, endMs: 1200 }, - { text: "of", startMs: 1200, endMs: 1400 }, - { text: "animated", startMs: 1400, endMs: 2000 }, - { text: "subtitles", startMs: 2000, endMs: 2800 }, - { text: "in", startMs: 2800, endMs: 3000 }, - { text: "Remotion", startMs: 3000, endMs: 3800 }, - { text: "with", startMs: 4000, endMs: 4300 }, - { text: "word", startMs: 4300, endMs: 4700 }, - { text: "level", startMs: 4700, endMs: 5100 }, - { text: "highlighting", startMs: 5100, endMs: 6000 }, - ], - position: "bottom", - style: { - fontFamily: "Arial", - fontSize: 52, - fontColor: "#FFFFFF", - highlightColor: "#FFDD00", - borderColor: "#000000", - borderWidth: 3, - bgColor: "#000000", - bgOpacity: 0, - animation: "pop", - }, - }, - hook: { - text: "POV: You just discovered Clipwright", - position: "top", - size: "M", - entranceAnimation: "spring", - displayDurationSec: 5, - }, - effects: { - segments: [ - { - startSec: 2, - endSec: 5, - zoom: 1.2, - zoomCenterX: 0.5, - zoomCenterY: 0.35, - brightness: 1.05, - contrast: 1.1, - saturate: 1.15, - }, - { - startSec: 8, - endSec: 12, - zoom: 1.15, - zoomCenterX: 0.5, - zoomCenterY: 0.4, - brightness: 1, - contrast: 1, - saturate: 1, - }, - ], - }, -}; - -export const RemotionRoot: React.FC = () => { - return ( - <> - <Composition - id="ShortVideo" - schema={shortVideoPropsSchema} - component={ShortVideo} - durationInFrames={DEFAULT_PROPS.durationInFrames} - fps={DEFAULT_PROPS.fps} - width={DEFAULT_PROPS.width} - height={DEFAULT_PROPS.height} - defaultProps={DEFAULT_PROPS} - calculateMetadata={({ props }) => ({ - durationInFrames: props.durationInFrames, - fps: props.fps, - width: props.width, - height: props.height, - })} - /> - </> - ); -}; diff --git a/remotion/src/compositions/HookOverlay.tsx b/remotion/src/compositions/HookOverlay.tsx deleted file mode 100644 index 961bb5c..0000000 --- a/remotion/src/compositions/HookOverlay.tsx +++ /dev/null @@ -1,172 +0,0 @@ -import React from "react"; -import { - AbsoluteFill, - Sequence, - useCurrentFrame, - useVideoConfig, - spring, - interpolate, -} from "remotion"; -import type { HookConfig } from "../lib/types"; -import { notoSerifFontFace, NOTO_SERIF_FONT_FAMILY } from "../lib/fonts"; - -interface HookOverlayProps { - config: HookConfig; -} - -const SIZE_SCALE: Record<string, number> = { - S: 0.8, - M: 1.0, - L: 1.3, -}; - -const POSITION_STYLE: Record<string, React.CSSProperties> = { - top: { top: "18%", bottom: "auto" }, - center: { top: "50%", bottom: "auto", transform: "translateY(-50%)" }, - bottom: { top: "68%", bottom: "auto" }, -}; - -// Must mirror clipwright/media/hooks.py HOOK_STYLES so preview == burned output. -interface HookLook { - box: string | null; - text: string; - outlinePx: number; - outlineColor: string; - shadow: boolean; -} -const HOOK_LOOKS: Record<string, HookLook> = { - classic: { box: "rgba(255,255,255,0.94)", text: "#000000", outlinePx: 0, outlineColor: "#000", shadow: true }, - dark: { box: "rgba(18,18,20,0.92)", text: "#FFFFFF", outlinePx: 0, outlineColor: "#000", shadow: true }, - yellow: { box: "rgba(255,214,0,0.96)", text: "#000000", outlinePx: 0, outlineColor: "#000", shadow: true }, - red: { box: "rgba(220,38,38,0.96)", text: "#FFFFFF", outlinePx: 0, outlineColor: "#000", shadow: true }, - outline: { box: null, text: "#FFFFFF", outlinePx: 8, outlineColor: "#000000", shadow: false }, - outline_yellow: { box: null, text: "#FFD600", outlinePx: 8, outlineColor: "#000000", shadow: false }, -}; - -const textStroke = (px: number, color: string): string => { - if (!px) return "none"; - const o: string[] = []; - for (let dx = -px; dx <= px; dx++) - for (let dy = -px; dy <= px; dy++) - if (dx || dy) o.push(`${dx}px ${dy}px 0 ${color}`); - return o.join(", "); -}; - -export const HookOverlay: React.FC<HookOverlayProps> = ({ config }) => { - const { fps } = useVideoConfig(); - const displayFrames = Math.round(config.displayDurationSec * fps); - - return ( - <AbsoluteFill> - <style>{notoSerifFontFace}</style> - <Sequence from={0} durationInFrames={displayFrames} layout="none"> - <HookBox config={config} displayFrames={displayFrames} /> - </Sequence> - </AbsoluteFill> - ); -}; - -interface HookBoxProps { - config: HookConfig; - displayFrames: number; -} - -const HookBox: React.FC<HookBoxProps> = ({ config, displayFrames }) => { - const frame = useCurrentFrame(); - const { fps } = useVideoConfig(); - const scale = SIZE_SCALE[config.size] ?? 1.0; - - // Entrance animation - let animOpacity = 1; - let animScale = 1; - let animTranslateY = 0; - - switch (config.entranceAnimation) { - case "spring": { - const prog = spring({ - frame, - fps, - config: { mass: 0.8, stiffness: 200, damping: 15 }, - durationInFrames: 20, - }); - animScale = interpolate(prog, [0, 1], [0.7, 1]); - animOpacity = interpolate(prog, [0, 1], [0, 1]); - break; - } - case "fade": { - animOpacity = interpolate(frame, [0, 15], [0, 1], { - extrapolateRight: "clamp", - }); - break; - } - case "slide-up": { - const prog = spring({ - frame, - fps, - config: { mass: 1, stiffness: 150, damping: 18 }, - durationInFrames: 20, - }); - animTranslateY = interpolate(prog, [0, 1], [60, 0]); - animOpacity = interpolate(prog, [0, 1], [0, 1]); - break; - } - default: - break; - } - - // Exit fade (last 15 frames) - const fadeOutStart = displayFrames - 15; - if (frame > fadeOutStart) { - animOpacity *= interpolate(frame, [fadeOutStart, displayFrames], [1, 0], { - extrapolateLeft: "clamp", - extrapolateRight: "clamp", - }); - } - - const positionStyle = POSITION_STYLE[config.position] ?? POSITION_STYLE.top; - const look = HOOK_LOOKS[config.style ?? "classic"] ?? HOOK_LOOKS.classic; - - // Base font size: 5% of 1080 width (matches clipwright/media/hooks.py logic) - const baseFontSize = 1080 * 0.05; - const fontSize = Math.round(baseFontSize * scale); - - return ( - <div - style={{ - position: "absolute", - left: 0, - right: 0, - display: "flex", - justifyContent: "center", - ...positionStyle, - }} - > - <div - style={{ - opacity: animOpacity, - transform: `scale(${animScale}) translateY(${animTranslateY}px)`, - maxWidth: "90%", - backgroundColor: look.box ?? "transparent", - borderRadius: 20, - padding: look.box ? `${25 * scale}px ${30 * scale}px` : `${8 * scale}px ${12 * scale}px`, - boxShadow: look.shadow ? "5px 5px 15px rgba(0, 0, 0, 0.25)" : "none", - textAlign: "center", - }} - > - <span - style={{ - fontFamily: `'${NOTO_SERIF_FONT_FAMILY}', 'Noto Serif', Georgia, serif`, - fontSize, - fontWeight: 700, - color: look.text, - lineHeight: 1.4, - wordBreak: "break-word", - textShadow: textStroke(look.outlinePx, look.outlineColor), - }} - > - {config.text} - </span> - </div> - </div> - ); -}; diff --git a/remotion/src/compositions/ShortVideo.tsx b/remotion/src/compositions/ShortVideo.tsx deleted file mode 100644 index 5f43400..0000000 --- a/remotion/src/compositions/ShortVideo.tsx +++ /dev/null @@ -1,33 +0,0 @@ -import React from "react"; -import { AbsoluteFill } from "remotion"; -import { Video } from "@remotion/media"; -import type { ShortVideoProps } from "../lib/types"; -import { Subtitles } from "./Subtitles"; -import { HookOverlay } from "./HookOverlay"; -import { VideoEffects } from "./VideoEffects"; - -/** - * Main composition that layers all post-processing on top of the base video. - * Uses @remotion/media Video for browser-side rendering compatibility. - */ -export const ShortVideo: React.FC<Record<string, unknown>> = (rawProps) => { - const { videoUrl, subtitles, hook, effects } = - rawProps as unknown as ShortVideoProps; - return ( - <AbsoluteFill style={{ backgroundColor: "#000" }}> - {/* Layer 1: Base video with optional zoom/color effects */} - <VideoEffects config={effects}> - <Video - src={videoUrl} - style={{ width: "100%", height: "100%", objectFit: "cover" }} - /> - </VideoEffects> - - {/* Layer 2: Animated subtitles */} - {subtitles && <Subtitles config={subtitles} />} - - {/* Layer 3: Hook text overlay */} - {hook && <HookOverlay config={hook} />} - </AbsoluteFill> - ); -}; diff --git a/remotion/src/compositions/Subtitles.tsx b/remotion/src/compositions/Subtitles.tsx deleted file mode 100644 index 6d201e0..0000000 --- a/remotion/src/compositions/Subtitles.tsx +++ /dev/null @@ -1,227 +0,0 @@ -import React from "react"; -import { - AbsoluteFill, - Sequence, - useCurrentFrame, - useVideoConfig, - spring, - interpolate, -} from "remotion"; -import type { SubtitleConfig } from "../lib/types"; -import { groupCaptionsIntoBlocks, getActiveWordIndex } from "../lib/captions"; -import { getFontStack } from "../lib/fonts"; - -interface SubtitlesProps { - config: SubtitleConfig; -} - -const POSITION_MAP: Record<string, React.CSSProperties> = { - top: { top: "12%", bottom: "auto" }, - middle: { top: "45%", bottom: "auto" }, - bottom: { bottom: "10%", top: "auto" }, -}; - -export const Subtitles: React.FC<SubtitlesProps> = ({ config }) => { - const { fps } = useVideoConfig(); - const blocks = groupCaptionsIntoBlocks(config.captions); - - return ( - <AbsoluteFill> - {blocks.map((block, i) => { - const startFrame = Math.round((block.startMs / 1000) * fps); - const durationFrames = Math.max( - 1, - Math.round(((block.endMs - block.startMs) / 1000) * fps) - ); - - return ( - <Sequence - key={i} - from={startFrame} - durationInFrames={durationFrames} - layout="none" - > - <SubtitleBlock - block={block} - config={config} - blockStartMs={block.startMs} - /> - </Sequence> - ); - })} - </AbsoluteFill> - ); -}; - -interface SubtitleBlockProps { - block: ReturnType<typeof groupCaptionsIntoBlocks>[number]; - config: SubtitleConfig; - blockStartMs: number; -} - -const SubtitleBlock: React.FC<SubtitleBlockProps> = ({ - block, - config, - blockStartMs, -}) => { - const frame = useCurrentFrame(); - const { fps } = useVideoConfig(); - const { style, position } = config; - - // Current time relative to composition start (sequence-relative frame) - const currentTimeMs = blockStartMs + (frame / fps) * 1000; - const activeIndex = getActiveWordIndex(block.words, currentTimeMs); - - const positionStyle = POSITION_MAP[position] ?? POSITION_MAP.bottom; - const fontStack = getFontStack(style.fontFamily); - - // Background box style - const hasBg = style.bgOpacity > 0; - const bgStyle: React.CSSProperties = hasBg - ? { - backgroundColor: `${style.bgColor}${Math.round(style.bgOpacity * 255) - .toString(16) - .padStart(2, "0")}`, - borderRadius: 8, - padding: "8px 16px", - } - : {}; - - return ( - <div - style={{ - position: "absolute", - left: 0, - right: 0, - display: "flex", - justifyContent: "center", - ...positionStyle, - }} - > - <div - style={{ - display: "flex", - flexWrap: "wrap", - justifyContent: "center", - gap: "6px 8px", - maxWidth: "85%", - ...bgStyle, - }} - > - {block.words.map((word, i) => ( - <WordSpan - key={i} - word={word.text} - isActive={i === activeIndex} - style={style} - fontStack={fontStack} - animation={style.animation} - frame={frame} - fps={fps} - wordStartMs={word.startMs} - blockStartMs={blockStartMs} - /> - ))} - </div> - </div> - ); -}; - -interface WordSpanProps { - word: string; - isActive: boolean; - style: SubtitleConfig["style"]; - fontStack: string; - animation: SubtitleConfig["style"]["animation"]; - frame: number; - fps: number; - wordStartMs: number; - blockStartMs: number; -} - -const WordSpan: React.FC<WordSpanProps> = ({ - word, - isActive, - style, - fontStack, - animation, - frame, - fps, - wordStartMs, - blockStartMs, -}) => { - const wordStartFrame = Math.round( - ((wordStartMs - blockStartMs) / 1000) * fps - ); - - let transform = ""; - let color = style.fontColor; - let extraStyle: React.CSSProperties = {}; - - if (isActive) { - color = style.highlightColor; - - switch (animation) { - case "pop": { - const scale = spring({ - frame: frame - wordStartFrame, - fps, - config: { mass: 0.5, stiffness: 300, damping: 12 }, - durationInFrames: 10, - }); - const scaleValue = interpolate(scale, [0, 1], [1, 1.25]); - transform = `scale(${scaleValue})`; - break; - } - case "karaoke": { - extraStyle = { - backgroundColor: style.highlightColor, - color: style.bgColor || "#000000", - borderRadius: 4, - padding: "2px 6px", - }; - break; - } - case "word-highlight": { - extraStyle = { - textShadow: `0 0 12px ${style.highlightColor}, 0 0 24px ${style.highlightColor}40`, - }; - break; - } - default: - break; - } - } - - // Text stroke via textShadow (CSS paint-order not reliable in Remotion) - const strokeShadow = - style.borderWidth > 0 - ? [ - `${style.borderWidth}px 0 0 ${style.borderColor}`, - `-${style.borderWidth}px 0 0 ${style.borderColor}`, - `0 ${style.borderWidth}px 0 ${style.borderColor}`, - `0 -${style.borderWidth}px 0 ${style.borderColor}`, - ].join(", ") - : "none"; - - return ( - <span - style={{ - fontFamily: fontStack, - fontSize: style.fontSize, - fontWeight: 700, - color: animation === "karaoke" && isActive ? undefined : color, - textShadow: - animation !== "karaoke" - ? [strokeShadow, extraStyle.textShadow].filter(Boolean).join(", ") - : strokeShadow, - transform, - display: "inline-block", - transition: "none", - ...extraStyle, - }} - > - {word} - </span> - ); -}; diff --git a/remotion/src/compositions/VideoEffects.tsx b/remotion/src/compositions/VideoEffects.tsx deleted file mode 100644 index c98c40d..0000000 --- a/remotion/src/compositions/VideoEffects.tsx +++ /dev/null @@ -1,209 +0,0 @@ -import React from "react"; -import { useCurrentFrame, useVideoConfig, interpolate } from "remotion"; -import type { EffectsConfig, EffectSegment } from "../lib/types"; - -interface VideoEffectsProps { - config: EffectsConfig | null; - children: React.ReactNode; -} - -/** - * Wraps children (typically <OffthreadVideo>) with dynamic CSS transforms and filters. - * Interpolates smoothly between effect segments. - */ -export const VideoEffects: React.FC<VideoEffectsProps> = ({ - config, - children, -}) => { - const frame = useCurrentFrame(); - const { fps } = useVideoConfig(); - - if (!config || config.segments.length === 0) { - return <>{children}</>; - } - - const currentTimeSec = frame / fps; - const { zoom, centerX, centerY, brightness, contrast, saturate } = - getInterpolatedValues(config.segments, currentTimeSec, frame, fps); - - const filterParts: string[] = []; - if (brightness !== 1) filterParts.push(`brightness(${brightness})`); - if (contrast !== 1) filterParts.push(`contrast(${contrast})`); - if (saturate !== 1) filterParts.push(`saturate(${saturate})`); - const filterStr = filterParts.length > 0 ? filterParts.join(" ") : "none"; - - return ( - <div - style={{ - width: "100%", - height: "100%", - overflow: "hidden", - position: "relative", - }} - > - <div - style={{ - width: "100%", - height: "100%", - transform: `scale(${zoom})`, - transformOrigin: `${centerX * 100}% ${centerY * 100}%`, - filter: filterStr, - }} - > - {children} - </div> - </div> - ); -}; - -interface InterpolatedValues { - zoom: number; - centerX: number; - centerY: number; - brightness: number; - contrast: number; - saturate: number; -} - -function getInterpolatedValues( - segments: EffectSegment[], - timeSec: number, - frame: number, - fps: number -): InterpolatedValues { - // Default values (no effect) - const defaults: InterpolatedValues = { - zoom: 1, - centerX: 0.5, - centerY: 0.5, - brightness: 1, - contrast: 1, - saturate: 1, - }; - - // Find active segment - const active = segments.find( - (s) => timeSec >= s.startSec && timeSec < s.endSec - ); - - if (!active) { - // Check if we're transitioning between segments (smooth fade) - const prev = segments.filter((s) => s.endSec <= timeSec).pop(); - const next = segments.find((s) => s.startSec > timeSec); - - if (prev && next) { - const gap = next.startSec - prev.endSec; - if (gap < 1.0) { - // Short gap: interpolate between prev and next - const progress = (timeSec - prev.endSec) / gap; - return lerpSegments(prev, next, progress); - } - } - - // Transition out from previous segment - if (prev) { - const fadeOutDuration = 0.3; // seconds - const elapsed = timeSec - prev.endSec; - if (elapsed < fadeOutDuration) { - const progress = elapsed / fadeOutDuration; - return lerpToDefaults(prev, progress, defaults); - } - } - - // Transition into next segment - if (next) { - const fadeInDuration = 0.3; - const remaining = next.startSec - timeSec; - if (remaining < fadeInDuration) { - const progress = 1 - remaining / fadeInDuration; - return lerpFromDefaults(next, progress, defaults); - } - } - - return defaults; - } - - // Inside active segment: smooth entrance/exit at edges - const segDuration = active.endSec - active.startSec; - const transitionSec = Math.min(0.3, segDuration * 0.15); - - const startFrame = Math.round(active.startSec * fps); - const endFrame = Math.round(active.endSec * fps); - const transitionFrames = Math.round(transitionSec * fps); - - // Entrance ease - const entranceFactor = interpolate( - frame, - [startFrame, startFrame + transitionFrames], - [0, 1], - { extrapolateLeft: "clamp", extrapolateRight: "clamp" } - ); - - // Exit ease - const exitFactor = interpolate( - frame, - [endFrame - transitionFrames, endFrame], - [1, 0], - { extrapolateLeft: "clamp", extrapolateRight: "clamp" } - ); - - const factor = Math.min(entranceFactor, exitFactor); - - return { - zoom: lerp(1, active.zoom, factor), - centerX: lerp(0.5, active.zoomCenterX, factor), - centerY: lerp(0.5, active.zoomCenterY, factor), - brightness: lerp(1, active.brightness, factor), - contrast: lerp(1, active.contrast, factor), - saturate: lerp(1, active.saturate, factor), - }; -} - -function lerp(a: number, b: number, t: number): number { - return a + (b - a) * t; -} - -function lerpSegments( - a: EffectSegment, - b: EffectSegment, - t: number -): InterpolatedValues { - return { - zoom: lerp(a.zoom, b.zoom, t), - centerX: lerp(a.zoomCenterX, b.zoomCenterX, t), - centerY: lerp(a.zoomCenterY, b.zoomCenterY, t), - brightness: lerp(a.brightness, b.brightness, t), - contrast: lerp(a.contrast, b.contrast, t), - saturate: lerp(a.saturate, b.saturate, t), - }; -} - -function lerpToDefaults( - seg: EffectSegment, - t: number, - defaults: InterpolatedValues -): InterpolatedValues { - return { - zoom: lerp(seg.zoom, defaults.zoom, t), - centerX: lerp(seg.zoomCenterX, defaults.centerX, t), - centerY: lerp(seg.zoomCenterY, defaults.centerY, t), - brightness: lerp(seg.brightness, defaults.brightness, t), - contrast: lerp(seg.contrast, defaults.contrast, t), - saturate: lerp(seg.saturate, defaults.saturate, t), - }; -} - -function lerpFromDefaults( - seg: EffectSegment, - t: number, - defaults: InterpolatedValues -): InterpolatedValues { - return { - zoom: lerp(defaults.zoom, seg.zoom, t), - centerX: lerp(defaults.centerX, seg.zoomCenterX, t), - centerY: lerp(defaults.centerY, seg.zoomCenterY, t), - brightness: lerp(defaults.brightness, seg.brightness, t), - contrast: lerp(defaults.contrast, seg.contrast, t), - saturate: lerp(defaults.saturate, seg.saturate, t), - }; -} diff --git a/remotion/src/index.ts b/remotion/src/index.ts deleted file mode 100644 index f31c790..0000000 --- a/remotion/src/index.ts +++ /dev/null @@ -1,4 +0,0 @@ -import { registerRoot } from "remotion"; -import { RemotionRoot } from "./Root"; - -registerRoot(RemotionRoot); diff --git a/remotion/src/lib/captions.ts b/remotion/src/lib/captions.ts deleted file mode 100644 index 9cc82d4..0000000 --- a/remotion/src/lib/captions.ts +++ /dev/null @@ -1,83 +0,0 @@ -import type { CaptionWord } from "./types"; - -export interface CaptionBlock { - words: CaptionWord[]; - startMs: number; - endMs: number; - text: string; -} - -/** - * Groups word-level captions into display blocks. - * Same logic as Clipwright' generate_srt: max chars per block, max duration per block. - */ -export function groupCaptionsIntoBlocks( - captions: CaptionWord[], - maxChars = 20, - maxDurationMs = 2000 -): CaptionBlock[] { - const blocks: CaptionBlock[] = []; - let currentWords: CaptionWord[] = []; - let blockStartMs = 0; - - for (const word of captions) { - if (currentWords.length === 0) { - currentWords.push(word); - blockStartMs = word.startMs; - continue; - } - - const currentTextLen = currentWords.reduce( - (sum, w) => sum + w.text.length + 1, - 0 - ); - const duration = word.endMs - blockStartMs; - - if ( - currentTextLen + word.text.length > maxChars || - duration > maxDurationMs - ) { - // Finalize current block - const lastWord = currentWords[currentWords.length - 1]; - blocks.push({ - words: [...currentWords], - startMs: blockStartMs, - endMs: lastWord.endMs, - text: currentWords.map((w) => w.text).join(" "), - }); - - currentWords = [word]; - blockStartMs = word.startMs; - } else { - currentWords.push(word); - } - } - - // Final block - if (currentWords.length > 0) { - const lastWord = currentWords[currentWords.length - 1]; - blocks.push({ - words: [...currentWords], - startMs: blockStartMs, - endMs: lastWord.endMs, - text: currentWords.map((w) => w.text).join(" "), - }); - } - - return blocks; -} - -/** - * Find the active word at a given time in milliseconds. - */ -export function getActiveWordIndex( - words: CaptionWord[], - timeMs: number -): number { - for (let i = 0; i < words.length; i++) { - if (timeMs >= words[i].startMs && timeMs < words[i].endMs) { - return i; - } - } - return -1; -} diff --git a/remotion/src/lib/fonts.ts b/remotion/src/lib/fonts.ts deleted file mode 100644 index 4578649..0000000 --- a/remotion/src/lib/fonts.ts +++ /dev/null @@ -1,33 +0,0 @@ -import { staticFile } from "remotion"; - -/** - * CSS @font-face declaration for NotoSerif-Bold (bundled locally). - * Use in components via: <style>{notoSerifFontFace}</style> - */ -export const NOTO_SERIF_FONT_FAMILY = "NotoSerif-Bold"; - -export const notoSerifFontFace = ` -@font-face { - font-family: '${NOTO_SERIF_FONT_FAMILY}'; - src: url('${staticFile("fonts/NotoSerif-Bold.ttf")}') format('truetype'); - font-weight: 700; - font-style: normal; -} -`; - -/** - * Map of subtitle font families to their CSS-safe names. - * These match the options available in SubtitleModal.jsx. - */ -export const SUBTITLE_FONTS: Record<string, string> = { - Verdana: "Verdana, Geneva, sans-serif", - Arial: "Arial, Helvetica, sans-serif", - Impact: "Impact, Haettenschweiler, sans-serif", - Helvetica: "Helvetica, Arial, sans-serif", - Georgia: "Georgia, 'Times New Roman', serif", - "Courier New": "'Courier New', Courier, monospace", -}; - -export function getFontStack(fontFamily: string): string { - return SUBTITLE_FONTS[fontFamily] ?? fontFamily; -} diff --git a/remotion/src/lib/types.ts b/remotion/src/lib/types.ts deleted file mode 100644 index cd807f1..0000000 --- a/remotion/src/lib/types.ts +++ /dev/null @@ -1,139 +0,0 @@ -import { z } from "zod"; - -// --- Word-level caption --- -export interface CaptionWord { - text: string; - startMs: number; - endMs: number; -} - -// --- Subtitle config --- -export type SubtitleAnimation = "none" | "word-highlight" | "pop" | "karaoke"; -export type SubtitlePosition = "top" | "middle" | "bottom"; - -export interface SubtitleStyle { - fontFamily: string; - fontSize: number; - fontColor: string; - highlightColor: string; - borderColor: string; - borderWidth: number; - bgColor: string; - bgOpacity: number; - animation: SubtitleAnimation; -} - -export interface SubtitleConfig { - captions: CaptionWord[]; - position: SubtitlePosition; - style: SubtitleStyle; -} - -// --- Hook config --- -export type HookPosition = "top" | "center" | "bottom"; -export type HookSize = "S" | "M" | "L"; -export type HookEntrance = "spring" | "fade" | "slide-up" | "none"; - -export type HookStyle = - | "classic" - | "dark" - | "yellow" - | "red" - | "outline" - | "outline_yellow"; - -export interface HookConfig { - text: string; - position: HookPosition; - size: HookSize; - entranceAnimation: HookEntrance; - displayDurationSec: number; - style?: HookStyle; -} - -// --- Effects config --- -export interface EffectSegment { - startSec: number; - endSec: number; - zoom: number; - zoomCenterX: number; - zoomCenterY: number; - brightness: number; - contrast: number; - saturate: number; -} - -export interface EffectsConfig { - segments: EffectSegment[]; -} - -// --- Main composition props --- -export interface ShortVideoProps { - videoUrl: string; - durationInFrames: number; - fps: number; - width: number; - height: number; - subtitles: SubtitleConfig | null; - hook: HookConfig | null; - effects: EffectsConfig | null; -} - -// --- Zod schemas for validation (used by render service) --- -export const captionWordSchema = z.object({ - text: z.string(), - startMs: z.number(), - endMs: z.number(), -}); - -export const subtitleStyleSchema = z.object({ - fontFamily: z.string(), - fontSize: z.number(), - fontColor: z.string(), - highlightColor: z.string(), - borderColor: z.string(), - borderWidth: z.number(), - bgColor: z.string(), - bgOpacity: z.number().min(0).max(1), - animation: z.enum(["none", "word-highlight", "pop", "karaoke"]), -}); - -export const subtitleConfigSchema = z.object({ - captions: z.array(captionWordSchema), - position: z.enum(["top", "middle", "bottom"]), - style: subtitleStyleSchema, -}); - -export const hookConfigSchema = z.object({ - text: z.string(), - position: z.enum(["top", "center", "bottom"]), - size: z.enum(["S", "M", "L"]), - entranceAnimation: z.enum(["spring", "fade", "slide-up", "none"]), - displayDurationSec: z.number().positive(), -}); - -export const effectSegmentSchema = z.object({ - startSec: z.number().min(0), - endSec: z.number().positive(), - zoom: z.number().min(0.5).max(3), - zoomCenterX: z.number().min(0).max(1), - zoomCenterY: z.number().min(0).max(1), - brightness: z.number().min(0).max(3), - contrast: z.number().min(0).max(3), - saturate: z.number().min(0).max(3), -}); - -export const effectsConfigSchema = z.object({ - segments: z.array(effectSegmentSchema), -}); - -export const shortVideoPropsSchema = z.object({ - videoUrl: z.string(), - durationInFrames: z.number().int().positive(), - fps: z.number().positive(), - width: z.number().int().positive(), - height: z.number().int().positive(), - subtitles: subtitleConfigSchema.nullable(), - hook: hookConfigSchema.nullable(), - effects: effectsConfigSchema.nullable(), -}); diff --git a/remotion/tsconfig.json b/remotion/tsconfig.json deleted file mode 100644 index bb23445..0000000 --- a/remotion/tsconfig.json +++ /dev/null @@ -1,16 +0,0 @@ -{ - "compilerOptions": { - "target": "ES2022", - "module": "ES2022", - "moduleResolution": "bundler", - "jsx": "react-jsx", - "strict": true, - "esModuleInterop": true, - "skipLibCheck": true, - "forceConsistentCasingInFileNames": true, - "outDir": "./dist", - "rootDir": "./src", - "declaration": true - }, - "include": ["src/**/*"] -} diff --git a/render-service/.gitignore b/render-service/.gitignore deleted file mode 100644 index b947077..0000000 --- a/render-service/.gitignore +++ /dev/null @@ -1,2 +0,0 @@ -node_modules/ -dist/ diff --git a/render-service/Dockerfile b/render-service/Dockerfile deleted file mode 100644 index f9a03f6..0000000 --- a/render-service/Dockerfile +++ /dev/null @@ -1,34 +0,0 @@ -FROM node:18-bookworm-slim - -# Install Chromium and FFmpeg for Remotion rendering -RUN apt-get update && \ - apt-get install -y --no-install-recommends chromium ffmpeg && \ - rm -rf /var/lib/apt/lists/* - -ENV PUPPETEER_EXECUTABLE_PATH=/usr/bin/chromium -ENV REMOTION_BUNDLE_PATH=/app/remotion -ENV OUTPUT_DIR=/output - -WORKDIR /app - -# Copy render service source -COPY render-service/package.json ./ -RUN npm install - -COPY render-service/tsconfig.json ./ -COPY render-service/src/ ./src/ - -# Copy remotion source for bundling -COPY remotion/package.json /app/remotion/package.json -COPY remotion/tsconfig.json /app/remotion/tsconfig.json -COPY remotion/src/ /app/remotion/src/ -COPY remotion/public/ /app/remotion/public/ - -# Install remotion deps -RUN cd /app/remotion && npm install - -# Build TypeScript -RUN npm run build - -EXPOSE 3100 -CMD ["node", "dist/server.js"] diff --git a/render-service/package-lock.json b/render-service/package-lock.json deleted file mode 100644 index caba6a9..0000000 --- a/render-service/package-lock.json +++ /dev/null @@ -1,4097 +0,0 @@ -{ - "name": "clipwright-render-service", - "version": "1.0.0", - "lockfileVersion": 3, - "requires": true, - "packages": { - "": { - "name": "clipwright-render-service", - "version": "1.0.0", - "dependencies": { - "@remotion/bundler": "^4.0.0", - "@remotion/renderer": "^4.0.0", - "express": "^4.21.0", - "remotion": "^4.0.0", - "uuid": "^10.0.0", - "zod": "^4.3.6" - }, - "devDependencies": { - "@types/express": "^5.0.0", - "@types/uuid": "^10.0.0", - "tsx": "^4.19.0", - "typescript": "^5.4.0" - } - }, - "node_modules/@emnapi/core": { - "version": "1.9.2", - "resolved": "https://registry.npmjs.org/@emnapi/core/-/core-1.9.2.tgz", - "integrity": "sha512-UC+ZhH3XtczQYfOlu3lNEkdW/p4dsJ1r/bP7H8+rhao3TTTMO1ATq/4DdIi23XuGoFY+Cz0JmCbdVl0hz9jZcA==", - "license": "MIT", - "optional": true, - "dependencies": { - "@emnapi/wasi-threads": "1.2.1", - "tslib": "^2.4.0" - } - }, - "node_modules/@emnapi/runtime": { - "version": "1.9.2", - "resolved": "https://registry.npmjs.org/@emnapi/runtime/-/runtime-1.9.2.tgz", - "integrity": "sha512-3U4+MIWHImeyu1wnmVygh5WlgfYDtyf0k8AbLhMFxOipihf6nrWC4syIm/SwEeec0mNSafiiNnMJwbza/Is6Lw==", - "license": "MIT", - "optional": true, - "dependencies": { - "tslib": "^2.4.0" - } - }, - "node_modules/@emnapi/wasi-threads": { - "version": "1.2.1", - "resolved": "https://registry.npmjs.org/@emnapi/wasi-threads/-/wasi-threads-1.2.1.tgz", - "integrity": "sha512-uTII7OYF+/Mes/MrcIOYp5yOtSMLBWSIoLPpcgwipoiKbli6k322tcoFsxoIIxPDqW01SQGAgko4EzZi2BNv2w==", - "license": "MIT", - "optional": true, - "dependencies": { - "tslib": "^2.4.0" - } - }, - "node_modules/@esbuild/aix-ppc64": { - "version": "0.25.0", - "resolved": "https://registry.npmjs.org/@esbuild/aix-ppc64/-/aix-ppc64-0.25.0.tgz", - "integrity": "sha512-O7vun9Sf8DFjH2UtqK8Ku3LkquL9SZL8OLY1T5NZkA34+wG3OQF7cl4Ql8vdNzM6fzBbYfLaiRLIOZ+2FOCgBQ==", - "cpu": [ - "ppc64" - ], - "license": "MIT", - "optional": true, - "os": [ - "aix" - ], - "engines": { - "node": ">=18" - } - }, - "node_modules/@esbuild/android-arm": { - "version": "0.25.0", - "resolved": "https://registry.npmjs.org/@esbuild/android-arm/-/android-arm-0.25.0.tgz", - "integrity": "sha512-PTyWCYYiU0+1eJKmw21lWtC+d08JDZPQ5g+kFyxP0V+es6VPPSUhM6zk8iImp2jbV6GwjX4pap0JFbUQN65X1g==", - "cpu": [ - "arm" - ], - "license": "MIT", - "optional": true, - "os": [ - "android" - ], - "engines": { - "node": ">=18" - } - }, - "node_modules/@esbuild/android-arm64": { - "version": "0.25.0", - "resolved": "https://registry.npmjs.org/@esbuild/android-arm64/-/android-arm64-0.25.0.tgz", - "integrity": "sha512-grvv8WncGjDSyUBjN9yHXNt+cq0snxXbDxy5pJtzMKGmmpPxeAmAhWxXI+01lU5rwZomDgD3kJwulEnhTRUd6g==", - "cpu": [ - "arm64" - ], - "license": "MIT", - "optional": true, - "os": [ - "android" - ], - "engines": { - "node": ">=18" - } - }, - "node_modules/@esbuild/android-x64": { - "version": "0.25.0", - "resolved": "https://registry.npmjs.org/@esbuild/android-x64/-/android-x64-0.25.0.tgz", - "integrity": "sha512-m/ix7SfKG5buCnxasr52+LI78SQ+wgdENi9CqyCXwjVR2X4Jkz+BpC3le3AoBPYTC9NHklwngVXvbJ9/Akhrfg==", - "cpu": [ - "x64" - ], - "license": "MIT", - "optional": true, - "os": [ - "android" - ], - "engines": { - "node": ">=18" - } - }, - "node_modules/@esbuild/darwin-arm64": { - "version": "0.25.0", - "resolved": "https://registry.npmjs.org/@esbuild/darwin-arm64/-/darwin-arm64-0.25.0.tgz", - "integrity": "sha512-mVwdUb5SRkPayVadIOI78K7aAnPamoeFR2bT5nszFUZ9P8UpK4ratOdYbZZXYSqPKMHfS1wdHCJk1P1EZpRdvw==", - "cpu": [ - "arm64" - ], - "license": "MIT", - "optional": true, - "os": [ - "darwin" - ], - "engines": { - "node": ">=18" - } - }, - "node_modules/@esbuild/darwin-x64": { - "version": "0.25.0", - "resolved": "https://registry.npmjs.org/@esbuild/darwin-x64/-/darwin-x64-0.25.0.tgz", - "integrity": "sha512-DgDaYsPWFTS4S3nWpFcMn/33ZZwAAeAFKNHNa1QN0rI4pUjgqf0f7ONmXf6d22tqTY+H9FNdgeaAa+YIFUn2Rg==", - "cpu": [ - "x64" - ], - "license": "MIT", - "optional": true, - "os": [ - "darwin" - ], - "engines": { - "node": ">=18" - } - }, - "node_modules/@esbuild/freebsd-arm64": { - "version": "0.25.0", - "resolved": "https://registry.npmjs.org/@esbuild/freebsd-arm64/-/freebsd-arm64-0.25.0.tgz", - "integrity": "sha512-VN4ocxy6dxefN1MepBx/iD1dH5K8qNtNe227I0mnTRjry8tj5MRk4zprLEdG8WPyAPb93/e4pSgi1SoHdgOa4w==", - "cpu": [ - "arm64" - ], - "license": "MIT", - "optional": true, - "os": [ - "freebsd" - ], - "engines": { - "node": ">=18" - } - }, - "node_modules/@esbuild/freebsd-x64": { - "version": "0.25.0", - "resolved": "https://registry.npmjs.org/@esbuild/freebsd-x64/-/freebsd-x64-0.25.0.tgz", - "integrity": "sha512-mrSgt7lCh07FY+hDD1TxiTyIHyttn6vnjesnPoVDNmDfOmggTLXRv8Id5fNZey1gl/V2dyVK1VXXqVsQIiAk+A==", - "cpu": [ - "x64" - ], - "license": "MIT", - "optional": true, - "os": [ - "freebsd" - ], - "engines": { - "node": ">=18" - } - }, - "node_modules/@esbuild/linux-arm": { - "version": "0.25.0", - "resolved": "https://registry.npmjs.org/@esbuild/linux-arm/-/linux-arm-0.25.0.tgz", - "integrity": "sha512-vkB3IYj2IDo3g9xX7HqhPYxVkNQe8qTK55fraQyTzTX/fxaDtXiEnavv9geOsonh2Fd2RMB+i5cbhu2zMNWJwg==", - "cpu": [ - "arm" - ], - "license": "MIT", - "optional": true, - "os": [ - "linux" - ], - "engines": { - "node": ">=18" - } - }, - "node_modules/@esbuild/linux-arm64": { - "version": "0.25.0", - "resolved": "https://registry.npmjs.org/@esbuild/linux-arm64/-/linux-arm64-0.25.0.tgz", - "integrity": "sha512-9QAQjTWNDM/Vk2bgBl17yWuZxZNQIF0OUUuPZRKoDtqF2k4EtYbpyiG5/Dk7nqeK6kIJWPYldkOcBqjXjrUlmg==", - "cpu": [ - "arm64" - ], - "license": "MIT", - "optional": true, - "os": [ - "linux" - ], - "engines": { - "node": ">=18" - } - }, - "node_modules/@esbuild/linux-ia32": { - "version": "0.25.0", - "resolved": "https://registry.npmjs.org/@esbuild/linux-ia32/-/linux-ia32-0.25.0.tgz", - "integrity": "sha512-43ET5bHbphBegyeqLb7I1eYn2P/JYGNmzzdidq/w0T8E2SsYL1U6un2NFROFRg1JZLTzdCoRomg8Rvf9M6W6Gg==", - "cpu": [ - "ia32" - ], - "license": "MIT", - "optional": true, - "os": [ - "linux" - ], - "engines": { - "node": ">=18" - } - }, - "node_modules/@esbuild/linux-loong64": { - "version": "0.25.0", - "resolved": "https://registry.npmjs.org/@esbuild/linux-loong64/-/linux-loong64-0.25.0.tgz", - "integrity": "sha512-fC95c/xyNFueMhClxJmeRIj2yrSMdDfmqJnyOY4ZqsALkDrrKJfIg5NTMSzVBr5YW1jf+l7/cndBfP3MSDpoHw==", - "cpu": [ - "loong64" - ], - "license": "MIT", - "optional": true, - "os": [ - "linux" - ], - "engines": { - "node": ">=18" - } - }, - "node_modules/@esbuild/linux-mips64el": { - "version": "0.25.0", - "resolved": "https://registry.npmjs.org/@esbuild/linux-mips64el/-/linux-mips64el-0.25.0.tgz", - "integrity": "sha512-nkAMFju7KDW73T1DdH7glcyIptm95a7Le8irTQNO/qtkoyypZAnjchQgooFUDQhNAy4iu08N79W4T4pMBwhPwQ==", - "cpu": [ - "mips64el" - ], - "license": "MIT", - "optional": true, - "os": [ - "linux" - ], - "engines": { - "node": ">=18" - } - }, - "node_modules/@esbuild/linux-ppc64": { - "version": "0.25.0", - "resolved": "https://registry.npmjs.org/@esbuild/linux-ppc64/-/linux-ppc64-0.25.0.tgz", - "integrity": "sha512-NhyOejdhRGS8Iwv+KKR2zTq2PpysF9XqY+Zk77vQHqNbo/PwZCzB5/h7VGuREZm1fixhs4Q/qWRSi5zmAiO4Fw==", - "cpu": [ - "ppc64" - ], - "license": "MIT", - "optional": true, - "os": [ - "linux" - ], - "engines": { - "node": ">=18" - } - }, - "node_modules/@esbuild/linux-riscv64": { - "version": "0.25.0", - "resolved": "https://registry.npmjs.org/@esbuild/linux-riscv64/-/linux-riscv64-0.25.0.tgz", - "integrity": "sha512-5S/rbP5OY+GHLC5qXp1y/Mx//e92L1YDqkiBbO9TQOvuFXM+iDqUNG5XopAnXoRH3FjIUDkeGcY1cgNvnXp/kA==", - "cpu": [ - "riscv64" - ], - "license": "MIT", - "optional": true, - "os": [ - "linux" - ], - "engines": { - "node": ">=18" - } - }, - "node_modules/@esbuild/linux-s390x": { - "version": "0.25.0", - "resolved": "https://registry.npmjs.org/@esbuild/linux-s390x/-/linux-s390x-0.25.0.tgz", - "integrity": "sha512-XM2BFsEBz0Fw37V0zU4CXfcfuACMrppsMFKdYY2WuTS3yi8O1nFOhil/xhKTmE1nPmVyvQJjJivgDT+xh8pXJA==", - "cpu": [ - "s390x" - ], - "license": "MIT", - "optional": true, - "os": [ - "linux" - ], - "engines": { - "node": ">=18" - } - }, - "node_modules/@esbuild/linux-x64": { - "version": "0.25.0", - "resolved": "https://registry.npmjs.org/@esbuild/linux-x64/-/linux-x64-0.25.0.tgz", - "integrity": "sha512-9yl91rHw/cpwMCNytUDxwj2XjFpxML0y9HAOH9pNVQDpQrBxHy01Dx+vaMu0N1CKa/RzBD2hB4u//nfc+Sd3Cw==", - "cpu": [ - "x64" - ], - "license": "MIT", - "optional": true, - "os": [ - "linux" - ], - "engines": { - "node": ">=18" - } - }, - "node_modules/@esbuild/netbsd-arm64": { - "version": "0.25.0", - "resolved": "https://registry.npmjs.org/@esbuild/netbsd-arm64/-/netbsd-arm64-0.25.0.tgz", - "integrity": "sha512-RuG4PSMPFfrkH6UwCAqBzauBWTygTvb1nxWasEJooGSJ/NwRw7b2HOwyRTQIU97Hq37l3npXoZGYMy3b3xYvPw==", - "cpu": [ - "arm64" - ], - "license": "MIT", - "optional": true, - "os": [ - "netbsd" - ], - "engines": { - "node": ">=18" - } - }, - "node_modules/@esbuild/netbsd-x64": { - "version": "0.25.0", - "resolved": "https://registry.npmjs.org/@esbuild/netbsd-x64/-/netbsd-x64-0.25.0.tgz", - "integrity": "sha512-jl+qisSB5jk01N5f7sPCsBENCOlPiS/xptD5yxOx2oqQfyourJwIKLRA2yqWdifj3owQZCL2sn6o08dBzZGQzA==", - "cpu": [ - "x64" - ], - "license": "MIT", - "optional": true, - "os": [ - "netbsd" - ], - "engines": { - "node": ">=18" - } - }, - "node_modules/@esbuild/openbsd-arm64": { - "version": "0.25.0", - "resolved": "https://registry.npmjs.org/@esbuild/openbsd-arm64/-/openbsd-arm64-0.25.0.tgz", - "integrity": "sha512-21sUNbq2r84YE+SJDfaQRvdgznTD8Xc0oc3p3iW/a1EVWeNj/SdUCbm5U0itZPQYRuRTW20fPMWMpcrciH2EJw==", - "cpu": [ - "arm64" - ], - "license": "MIT", - "optional": true, - "os": [ - "openbsd" - ], - "engines": { - "node": ">=18" - } - }, - "node_modules/@esbuild/openbsd-x64": { - "version": "0.25.0", - "resolved": "https://registry.npmjs.org/@esbuild/openbsd-x64/-/openbsd-x64-0.25.0.tgz", - "integrity": "sha512-2gwwriSMPcCFRlPlKx3zLQhfN/2WjJ2NSlg5TKLQOJdV0mSxIcYNTMhk3H3ulL/cak+Xj0lY1Ym9ysDV1igceg==", - "cpu": [ - "x64" - ], - "license": "MIT", - "optional": true, - "os": [ - "openbsd" - ], - "engines": { - "node": ">=18" - } - }, - "node_modules/@esbuild/openharmony-arm64": { - "version": "0.27.7", - "resolved": "https://registry.npmjs.org/@esbuild/openharmony-arm64/-/openharmony-arm64-0.27.7.tgz", - "integrity": "sha512-+KrvYb/C8zA9CU/g0sR6w2RBw7IGc5J2BPnc3dYc5VJxHCSF1yNMxTV5LQ7GuKteQXZtspjFbiuW5/dOj7H4Yw==", - "cpu": [ - "arm64" - ], - "dev": true, - "license": "MIT", - "optional": true, - "os": [ - "openharmony" - ], - "engines": { - "node": ">=18" - } - }, - "node_modules/@esbuild/sunos-x64": { - "version": "0.25.0", - "resolved": "https://registry.npmjs.org/@esbuild/sunos-x64/-/sunos-x64-0.25.0.tgz", - "integrity": "sha512-bxI7ThgLzPrPz484/S9jLlvUAHYMzy6I0XiU1ZMeAEOBcS0VePBFxh1JjTQt3Xiat5b6Oh4x7UC7IwKQKIJRIg==", - "cpu": [ - "x64" - ], - "license": "MIT", - "optional": true, - "os": [ - "sunos" - ], - "engines": { - "node": ">=18" - } - }, - "node_modules/@esbuild/win32-arm64": { - "version": "0.25.0", - "resolved": "https://registry.npmjs.org/@esbuild/win32-arm64/-/win32-arm64-0.25.0.tgz", - "integrity": "sha512-ZUAc2YK6JW89xTbXvftxdnYy3m4iHIkDtK3CLce8wg8M2L+YZhIvO1DKpxrd0Yr59AeNNkTiic9YLf6FTtXWMw==", - "cpu": [ - "arm64" - ], - "license": "MIT", - "optional": true, - "os": [ - "win32" - ], - "engines": { - "node": ">=18" - } - }, - "node_modules/@esbuild/win32-ia32": { - "version": "0.25.0", - "resolved": "https://registry.npmjs.org/@esbuild/win32-ia32/-/win32-ia32-0.25.0.tgz", - "integrity": "sha512-eSNxISBu8XweVEWG31/JzjkIGbGIJN/TrRoiSVZwZ6pkC6VX4Im/WV2cz559/TXLcYbcrDN8JtKgd9DJVIo8GA==", - "cpu": [ - "ia32" - ], - "license": "MIT", - "optional": true, - "os": [ - "win32" - ], - "engines": { - "node": ">=18" - } - }, - "node_modules/@esbuild/win32-x64": { - "version": "0.25.0", - "resolved": "https://registry.npmjs.org/@esbuild/win32-x64/-/win32-x64-0.25.0.tgz", - "integrity": "sha512-ZENoHJBxA20C2zFzh6AI4fT6RraMzjYw4xKWemRTRmRVtN9c5DcH9r/f2ihEkMjOW5eGgrwCslG/+Y/3bL+DHQ==", - "cpu": [ - "x64" - ], - "license": "MIT", - "optional": true, - "os": [ - "win32" - ], - "engines": { - "node": ">=18" - } - }, - "node_modules/@jridgewell/gen-mapping": { - "version": "0.3.13", - "resolved": "https://registry.npmjs.org/@jridgewell/gen-mapping/-/gen-mapping-0.3.13.tgz", - "integrity": "sha512-2kkt/7niJ6MgEPxF0bYdQ6etZaA+fQvDcLKckhy1yIQOzaoKjBBjSj63/aLVjYE3qhRt5dvM+uUyfCg6UKCBbA==", - "license": "MIT", - "dependencies": { - "@jridgewell/sourcemap-codec": "^1.5.0", - "@jridgewell/trace-mapping": "^0.3.24" - } - }, - "node_modules/@jridgewell/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==", - "license": "MIT", - "engines": { - "node": ">=6.0.0" - } - }, - "node_modules/@jridgewell/source-map": { - "version": "0.3.11", - "resolved": "https://registry.npmjs.org/@jridgewell/source-map/-/source-map-0.3.11.tgz", - "integrity": "sha512-ZMp1V8ZFcPG5dIWnQLr3NSI1MiCU7UETdS/A0G8V/XWHvJv3ZsFqutJn1Y5RPmAPX6F3BiE397OqveU/9NCuIA==", - "license": "MIT", - "dependencies": { - "@jridgewell/gen-mapping": "^0.3.5", - "@jridgewell/trace-mapping": "^0.3.25" - } - }, - "node_modules/@jridgewell/sourcemap-codec": { - "version": "1.5.5", - "resolved": "https://registry.npmjs.org/@jridgewell/sourcemap-codec/-/sourcemap-codec-1.5.5.tgz", - "integrity": "sha512-cYQ9310grqxueWbl+WuIUIaiUaDcj7WOq5fVhEljNVgRfOUhY9fy2zTvfoqWsnebh8Sl70VScFbICvJnLKB0Og==", - "license": "MIT" - }, - "node_modules/@jridgewell/trace-mapping": { - "version": "0.3.31", - "resolved": "https://registry.npmjs.org/@jridgewell/trace-mapping/-/trace-mapping-0.3.31.tgz", - "integrity": "sha512-zzNR+SdQSDJzc8joaeP8QQoCQr8NuYx2dIIytl1QeBEZHJ9uW6hebsrYgbz8hJwUQao3TWCMtmfV8Nu1twOLAw==", - "license": "MIT", - "dependencies": { - "@jridgewell/resolve-uri": "^3.1.0", - "@jridgewell/sourcemap-codec": "^1.4.14" - } - }, - "node_modules/@mediabunny/aac-encoder": { - "version": "1.39.2", - "resolved": "https://registry.npmjs.org/@mediabunny/aac-encoder/-/aac-encoder-1.39.2.tgz", - "integrity": "sha512-KD6KADVzAnW7tqhRFGBOX4uaiHbd0Yxvg0lfthj3wJLAEEgEBAvi43w+ZXWeEn54X/jpabrLe4bW/eYFFvlbUA==", - "license": "MPL-2.0", - "funding": { - "type": "individual", - "url": "https://github.com/sponsors/Vanilagy" - }, - "peerDependencies": { - "mediabunny": "^1.0.0" - } - }, - "node_modules/@mediabunny/flac-encoder": { - "version": "1.39.2", - "resolved": "https://registry.npmjs.org/@mediabunny/flac-encoder/-/flac-encoder-1.39.2.tgz", - "integrity": "sha512-VwBr3AzZTPEEPvt4aladZiXwOf3W293eq213zDupGQi/taS8WWNqDd3eBdf8FfvlbXATfbRiycXDKyQ0HlOZaQ==", - "license": "MPL-2.0", - "funding": { - "type": "individual", - "url": "https://github.com/sponsors/Vanilagy" - }, - "peerDependencies": { - "mediabunny": "^1.0.0" - } - }, - "node_modules/@mediabunny/mp3-encoder": { - "version": "1.39.2", - "resolved": "https://registry.npmjs.org/@mediabunny/mp3-encoder/-/mp3-encoder-1.39.2.tgz", - "integrity": "sha512-3rrodrGnUpUP8F2d1aRUl8IvjqK3jegkupbOzvOokooSAO5rXk2Lr5jZe7TnPeiVGiXfmnoJ7s9uyUOHlCd8qw==", - "license": "MPL-2.0", - "funding": { - "type": "individual", - "url": "https://github.com/sponsors/Vanilagy" - }, - "peerDependencies": { - "mediabunny": "^1.0.0" - } - }, - "node_modules/@module-federation/error-codes": { - "version": "0.22.0", - "resolved": "https://registry.npmjs.org/@module-federation/error-codes/-/error-codes-0.22.0.tgz", - "integrity": "sha512-xF9SjnEy7vTdx+xekjPCV5cIHOGCkdn3pIxo9vU7gEZMIw0SvAEdsy6Uh17xaCpm8V0FWvR0SZoK9Ik6jGOaug==", - "license": "MIT" - }, - "node_modules/@module-federation/runtime": { - "version": "0.22.0", - "resolved": "https://registry.npmjs.org/@module-federation/runtime/-/runtime-0.22.0.tgz", - "integrity": "sha512-38g5iPju2tPC3KHMPxRKmy4k4onNp6ypFPS1eKGsNLUkXgHsPMBFqAjDw96iEcjri91BrahG4XcdyKi97xZzlA==", - "license": "MIT", - "dependencies": { - "@module-federation/error-codes": "0.22.0", - "@module-federation/runtime-core": "0.22.0", - "@module-federation/sdk": "0.22.0" - } - }, - "node_modules/@module-federation/runtime-core": { - "version": "0.22.0", - "resolved": "https://registry.npmjs.org/@module-federation/runtime-core/-/runtime-core-0.22.0.tgz", - "integrity": "sha512-GR1TcD6/s7zqItfhC87zAp30PqzvceoeDGYTgF3Vx2TXvsfDrhP6Qw9T4vudDQL3uJRne6t7CzdT29YyVxlgIA==", - "license": "MIT", - "dependencies": { - "@module-federation/error-codes": "0.22.0", - "@module-federation/sdk": "0.22.0" - } - }, - "node_modules/@module-federation/runtime-tools": { - "version": "0.22.0", - "resolved": "https://registry.npmjs.org/@module-federation/runtime-tools/-/runtime-tools-0.22.0.tgz", - "integrity": "sha512-4ScUJ/aUfEernb+4PbLdhM/c60VHl698Gn1gY21m9vyC1Ucn69fPCA1y2EwcCB7IItseRMoNhdcWQnzt/OPCNA==", - "license": "MIT", - "dependencies": { - "@module-federation/runtime": "0.22.0", - "@module-federation/webpack-bundler-runtime": "0.22.0" - } - }, - "node_modules/@module-federation/sdk": { - "version": "0.22.0", - "resolved": "https://registry.npmjs.org/@module-federation/sdk/-/sdk-0.22.0.tgz", - "integrity": "sha512-x4aFNBKn2KVQRuNVC5A7SnrSCSqyfIWmm1DvubjbO9iKFe7ith5niw8dqSFBekYBg2Fwy+eMg4sEFNVvCAdo6g==", - "license": "MIT" - }, - "node_modules/@module-federation/webpack-bundler-runtime": { - "version": "0.22.0", - "resolved": "https://registry.npmjs.org/@module-federation/webpack-bundler-runtime/-/webpack-bundler-runtime-0.22.0.tgz", - "integrity": "sha512-aM8gCqXu+/4wBmJtVeMeeMN5guw3chf+2i6HajKtQv7SJfxV/f4IyNQJUeUQu9HfiAZHjqtMV5Lvq/Lvh8LdyA==", - "license": "MIT", - "dependencies": { - "@module-federation/runtime": "0.22.0", - "@module-federation/sdk": "0.22.0" - } - }, - "node_modules/@napi-rs/wasm-runtime": { - "version": "1.0.7", - "resolved": "https://registry.npmjs.org/@napi-rs/wasm-runtime/-/wasm-runtime-1.0.7.tgz", - "integrity": "sha512-SeDnOO0Tk7Okiq6DbXmmBODgOAb9dp9gjlphokTUxmt8U3liIP1ZsozBahH69j/RJv+Rfs6IwUKHTgQYJ/HBAw==", - "license": "MIT", - "optional": true, - "dependencies": { - "@emnapi/core": "^1.5.0", - "@emnapi/runtime": "^1.5.0", - "@tybys/wasm-util": "^0.10.1" - } - }, - "node_modules/@remotion/bundler": { - "version": "4.0.446", - "resolved": "https://registry.npmjs.org/@remotion/bundler/-/bundler-4.0.446.tgz", - "integrity": "sha512-S78EpTElxE5HzFj+UCC3tn+ko2UpFKqOS0FNmcfw/BZNXYXtQ8lh7aEAJECH/C3jSY0d7AYH6VysliLp8IOi1w==", - "license": "SEE LICENSE IN LICENSE.md", - "dependencies": { - "@remotion/media-parser": "4.0.446", - "@remotion/studio": "4.0.446", - "@remotion/studio-shared": "4.0.446", - "@rspack/core": "1.7.6", - "@rspack/plugin-react-refresh": "1.6.1", - "esbuild": "0.25.0", - "loader-utils": "2.0.4", - "postcss": "8.5.1", - "postcss-value-parser": "4.2.0", - "react-refresh": "0.18.0", - "remotion": "4.0.446", - "source-map": "0.7.3", - "style-loader": "4.0.0", - "webpack": "5.105.0" - }, - "peerDependencies": { - "react": ">=16.8.0", - "react-dom": ">=16.8.0" - } - }, - "node_modules/@remotion/compositor-darwin-arm64": { - "version": "4.0.446", - "resolved": "https://registry.npmjs.org/@remotion/compositor-darwin-arm64/-/compositor-darwin-arm64-4.0.446.tgz", - "integrity": "sha512-W5s4bPL/AvfGYoiF6TW0mvbKFeNnxLudZrCNGVQjDaJkuPBSGd96zRcNJEBPSNABHr40NPw71dkWJs/4uV0Qyg==", - "cpu": [ - "arm64" - ], - "optional": true, - "os": [ - "darwin" - ] - }, - "node_modules/@remotion/compositor-darwin-x64": { - "version": "4.0.446", - "resolved": "https://registry.npmjs.org/@remotion/compositor-darwin-x64/-/compositor-darwin-x64-4.0.446.tgz", - "integrity": "sha512-XVEhVh4lU0QeUcwJEy80u2jKXbUKEXkKVxCkBTlO1M5GNoozhTfNhqiD8PrHffOjf6PpdD1XQVJwZzhwyYA7Ow==", - "cpu": [ - "x64" - ], - "optional": true, - "os": [ - "darwin" - ] - }, - "node_modules/@remotion/compositor-linux-arm64-gnu": { - "version": "4.0.446", - "resolved": "https://registry.npmjs.org/@remotion/compositor-linux-arm64-gnu/-/compositor-linux-arm64-gnu-4.0.446.tgz", - "integrity": "sha512-W2staGyw7ovBckvNrlFw+qQAC4O/xe0QpmaZI332NUpeFNx27Z7dlXMR0PUdUemInj3efr0HKmpLWIeIBbtBqA==", - "cpu": [ - "arm64" - ], - "optional": true, - "os": [ - "linux" - ] - }, - "node_modules/@remotion/compositor-linux-arm64-musl": { - "version": "4.0.446", - "resolved": "https://registry.npmjs.org/@remotion/compositor-linux-arm64-musl/-/compositor-linux-arm64-musl-4.0.446.tgz", - "integrity": "sha512-hIprlRcKQJJ5vyFLfoAOLmaWuMoqEWbafXMavOPXY7D64TBnMauCLBm72L7D5PL9juDif6WhMr57GXX78Nq2Wg==", - "cpu": [ - "arm64" - ], - "optional": true, - "os": [ - "linux" - ] - }, - "node_modules/@remotion/compositor-linux-x64-gnu": { - "version": "4.0.446", - "resolved": "https://registry.npmjs.org/@remotion/compositor-linux-x64-gnu/-/compositor-linux-x64-gnu-4.0.446.tgz", - "integrity": "sha512-hWaol9oLHA2Fa51zyaWWhYMQ5jr7XQQOuxe2FbhWRpVFgr2pqI6FIYYSj5RUb/uedIHa0es/hSO5O/2Ry1U1ig==", - "cpu": [ - "x64" - ], - "optional": true, - "os": [ - "linux" - ] - }, - "node_modules/@remotion/compositor-linux-x64-musl": { - "version": "4.0.446", - "resolved": "https://registry.npmjs.org/@remotion/compositor-linux-x64-musl/-/compositor-linux-x64-musl-4.0.446.tgz", - "integrity": "sha512-amp7epbcQj15Mlhy1A4I3B/YsN2NtmPlzYYt7zeUJEMWKv103dxd9OB6t4KoUI/YlUhemFSVIIUS51aIB7EXsw==", - "cpu": [ - "x64" - ], - "optional": true, - "os": [ - "linux" - ] - }, - "node_modules/@remotion/compositor-win32-x64-msvc": { - "version": "4.0.446", - "resolved": "https://registry.npmjs.org/@remotion/compositor-win32-x64-msvc/-/compositor-win32-x64-msvc-4.0.446.tgz", - "integrity": "sha512-L1htMcvKVLYiHLG/yumt+Is5yz2pygT6fAjBXcP7t4YhE5/ST4YHrmX+MbF1t3btZmZcfpkGmCUFIVduwFeWGg==", - "cpu": [ - "x64" - ], - "optional": true, - "os": [ - "win32" - ] - }, - "node_modules/@remotion/licensing": { - "version": "4.0.446", - "resolved": "https://registry.npmjs.org/@remotion/licensing/-/licensing-4.0.446.tgz", - "integrity": "sha512-oufyGy2hDYyNLJQMtqfdLfswd2ESFFoVzChhv7QWna3mPt7yy0f/sUezxPisi9D/OO/ZPq0CmoUWWalH/mmQVA==", - "license": "MIT" - }, - "node_modules/@remotion/media-parser": { - "version": "4.0.446", - "resolved": "https://registry.npmjs.org/@remotion/media-parser/-/media-parser-4.0.446.tgz", - "integrity": "sha512-FkAEw/vre8VEH2Bu7KNrUfE7SlxS5lf2/RWca0DJJXGsTQW5dcXZi+J55UnOC39FmldICzgdP6S8IIgJa3jqMQ==", - "license": "Remotion License https://remotion.dev/license" - }, - "node_modules/@remotion/media-utils": { - "version": "4.0.446", - "resolved": "https://registry.npmjs.org/@remotion/media-utils/-/media-utils-4.0.446.tgz", - "integrity": "sha512-D/w4haFmZQuweGjQp3rVbJeW70blLrMa1T71jbzV5dsSrythZrvwv5m5713K+lkK9oTWCSp6QtonWnb6RmuYkQ==", - "license": "MIT", - "dependencies": { - "mediabunny": "1.39.2", - "remotion": "4.0.446" - }, - "peerDependencies": { - "react": ">=16.8.0", - "react-dom": ">=16.8.0" - } - }, - "node_modules/@remotion/player": { - "version": "4.0.446", - "resolved": "https://registry.npmjs.org/@remotion/player/-/player-4.0.446.tgz", - "integrity": "sha512-l3sYiMmT0yx39qgGsWKkv/auTQ7BJYmEb+FPzwacBe5Oi1R1klBWABsbO+L4OSN6lDOCrI2U8uWfpsPZv1sqxA==", - "license": "SEE LICENSE IN LICENSE.md", - "dependencies": { - "remotion": "4.0.446" - }, - "peerDependencies": { - "react": ">=16.8.0", - "react-dom": ">=16.8.0" - } - }, - "node_modules/@remotion/renderer": { - "version": "4.0.446", - "resolved": "https://registry.npmjs.org/@remotion/renderer/-/renderer-4.0.446.tgz", - "integrity": "sha512-n2wrpVL4/KS2JubGHMIoYIFCdssoG4pGsx9iwSs42cAwKNLEuBSAd2PVVERILEOrh9+BRrQQGlzjeBKhOy5KCA==", - "license": "SEE LICENSE IN LICENSE.md", - "dependencies": { - "@remotion/licensing": "4.0.446", - "@remotion/streaming": "4.0.446", - "execa": "5.1.1", - "extract-zip": "2.0.1", - "remotion": "4.0.446", - "source-map": "^0.8.0-beta.0", - "ws": "8.17.1" - }, - "optionalDependencies": { - "@remotion/compositor-darwin-arm64": "4.0.446", - "@remotion/compositor-darwin-x64": "4.0.446", - "@remotion/compositor-linux-arm64-gnu": "4.0.446", - "@remotion/compositor-linux-arm64-musl": "4.0.446", - "@remotion/compositor-linux-x64-gnu": "4.0.446", - "@remotion/compositor-linux-x64-musl": "4.0.446", - "@remotion/compositor-win32-x64-msvc": "4.0.446" - }, - "peerDependencies": { - "react": ">=16.8.0", - "react-dom": ">=16.8.0" - } - }, - "node_modules/@remotion/renderer/node_modules/source-map": { - "version": "0.8.0-beta.0", - "resolved": "https://registry.npmjs.org/source-map/-/source-map-0.8.0-beta.0.tgz", - "integrity": "sha512-2ymg6oRBpebeZi9UUNsgQ89bhx01TcTkmNTGnNO88imTmbSgy4nfujrgVEFKWpMTEGA11EDkTt7mqObTPdigIA==", - "deprecated": "The work that was done in this beta branch won't be included in future versions", - "license": "BSD-3-Clause", - "dependencies": { - "whatwg-url": "^7.0.0" - }, - "engines": { - "node": ">= 8" - } - }, - "node_modules/@remotion/streaming": { - "version": "4.0.446", - "resolved": "https://registry.npmjs.org/@remotion/streaming/-/streaming-4.0.446.tgz", - "integrity": "sha512-KP9dDFOsf0VILBrrJVVo3iE9YWDqhqyxVOQlUKNcroKJDJK+UG08VCUGjPKC5KN8tvYSXOaug3K9TpqY9xz5hA==", - "license": "MIT" - }, - "node_modules/@remotion/studio": { - "version": "4.0.446", - "resolved": "https://registry.npmjs.org/@remotion/studio/-/studio-4.0.446.tgz", - "integrity": "sha512-AfiAyzdO0rxsI9J7N+fOO27gB+pCqlrf298cWWQwTmvp9itYPd7TjhKuStJlp4mjocZR2Gy2RfQSUUIYBBWOsQ==", - "license": "MIT", - "dependencies": { - "@remotion/media-utils": "4.0.446", - "@remotion/player": "4.0.446", - "@remotion/renderer": "4.0.446", - "@remotion/studio-shared": "4.0.446", - "@remotion/web-renderer": "4.0.446", - "@remotion/zod-types": "4.0.446", - "mediabunny": "1.39.2", - "memfs": "3.4.3", - "open": "^8.4.2", - "remotion": "4.0.446", - "semver": "7.5.3", - "source-map": "0.7.3", - "zod": "4.3.6" - }, - "peerDependencies": { - "react": ">=16.8.0", - "react-dom": ">=16.8.0" - } - }, - "node_modules/@remotion/studio-shared": { - "version": "4.0.446", - "resolved": "https://registry.npmjs.org/@remotion/studio-shared/-/studio-shared-4.0.446.tgz", - "integrity": "sha512-whCgk5f6wWG/sy4NEbFUm/fn6117ryxHNkCNmqEC7JFcpJGhDY0ZI2cbGo2rUEl/WhjOvhUY43q7R8jyv1p/+w==", - "license": "MIT", - "dependencies": { - "remotion": "4.0.446" - } - }, - "node_modules/@remotion/web-renderer": { - "version": "4.0.446", - "resolved": "https://registry.npmjs.org/@remotion/web-renderer/-/web-renderer-4.0.446.tgz", - "integrity": "sha512-S1TC+YOn11zjmRnslo825yu0RGNdPdoht1rA1JPEiv+XFf5l4gzFtnuOo3rCopNySBcqAu1yCtPc+VFZmIbFPQ==", - "license": "UNLICENSED", - "dependencies": { - "@mediabunny/aac-encoder": "1.39.2", - "@mediabunny/flac-encoder": "1.39.2", - "@mediabunny/mp3-encoder": "1.39.2", - "@remotion/licensing": "4.0.446", - "mediabunny": "1.39.2", - "remotion": "4.0.446" - }, - "peerDependencies": { - "react": ">=18.0.0", - "react-dom": ">=18.0.0" - } - }, - "node_modules/@remotion/zod-types": { - "version": "4.0.446", - "resolved": "https://registry.npmjs.org/@remotion/zod-types/-/zod-types-4.0.446.tgz", - "integrity": "sha512-GP6TwB6PZUCzqeQGJ3jzgBIewlaHS1C/OMebzIqmL0b5Vx3lCPSD7pWrz9RCT8BXkqv4NApCiCc6SUUPlYmPOQ==", - "license": "MIT", - "dependencies": { - "remotion": "4.0.446" - }, - "peerDependencies": { - "zod": "4.3.6" - } - }, - "node_modules/@rspack/binding": { - "version": "1.7.6", - "resolved": "https://registry.npmjs.org/@rspack/binding/-/binding-1.7.6.tgz", - "integrity": "sha512-/NrEcfo8Gx22hLGysanrV6gHMuqZSxToSci/3M4kzEQtF5cPjfOv5pqeLK/+B6cr56ul/OmE96cCdWcXeVnFjQ==", - "license": "MIT", - "optionalDependencies": { - "@rspack/binding-darwin-arm64": "1.7.6", - "@rspack/binding-darwin-x64": "1.7.6", - "@rspack/binding-linux-arm64-gnu": "1.7.6", - "@rspack/binding-linux-arm64-musl": "1.7.6", - "@rspack/binding-linux-x64-gnu": "1.7.6", - "@rspack/binding-linux-x64-musl": "1.7.6", - "@rspack/binding-wasm32-wasi": "1.7.6", - "@rspack/binding-win32-arm64-msvc": "1.7.6", - "@rspack/binding-win32-ia32-msvc": "1.7.6", - "@rspack/binding-win32-x64-msvc": "1.7.6" - } - }, - "node_modules/@rspack/binding-darwin-arm64": { - "version": "1.7.6", - "resolved": "https://registry.npmjs.org/@rspack/binding-darwin-arm64/-/binding-darwin-arm64-1.7.6.tgz", - "integrity": "sha512-NZ9AWtB1COLUX1tA9HQQvWpTy07NSFfKBU8A6ylWd5KH8AePZztpNgLLAVPTuNO4CZXYpwcoclf8jG/luJcQdQ==", - "cpu": [ - "arm64" - ], - "license": "MIT", - "optional": true, - "os": [ - "darwin" - ] - }, - "node_modules/@rspack/binding-darwin-x64": { - "version": "1.7.6", - "resolved": "https://registry.npmjs.org/@rspack/binding-darwin-x64/-/binding-darwin-x64-1.7.6.tgz", - "integrity": "sha512-J2g6xk8ZS7uc024dNTGTHxoFzFovAZIRixUG7PiciLKTMP78svbSSWrmW6N8oAsAkzYfJWwQpVgWfFNRHvYxSw==", - "cpu": [ - "x64" - ], - "license": "MIT", - "optional": true, - "os": [ - "darwin" - ] - }, - "node_modules/@rspack/binding-linux-arm64-gnu": { - "version": "1.7.6", - "resolved": "https://registry.npmjs.org/@rspack/binding-linux-arm64-gnu/-/binding-linux-arm64-gnu-1.7.6.tgz", - "integrity": "sha512-eQfcsaxhFrv5FmtaA7+O1F9/2yFDNIoPZzV/ZvqvFz5bBXVc4FAm/1fVpBg8Po/kX1h0chBc7Xkpry3cabFW8w==", - "cpu": [ - "arm64" - ], - "license": "MIT", - "optional": true, - "os": [ - "linux" - ] - }, - "node_modules/@rspack/binding-linux-arm64-musl": { - "version": "1.7.6", - "resolved": "https://registry.npmjs.org/@rspack/binding-linux-arm64-musl/-/binding-linux-arm64-musl-1.7.6.tgz", - "integrity": "sha512-DfQXKiyPIl7i1yECHy4eAkSmlUzzsSAbOjgMuKn7pudsWf483jg0UUYutNgXSlBjc/QSUp7906Cg8oty9OfwPA==", - "cpu": [ - "arm64" - ], - "license": "MIT", - "optional": true, - "os": [ - "linux" - ] - }, - "node_modules/@rspack/binding-linux-x64-gnu": { - "version": "1.7.6", - "resolved": "https://registry.npmjs.org/@rspack/binding-linux-x64-gnu/-/binding-linux-x64-gnu-1.7.6.tgz", - "integrity": "sha512-NdA+2X3lk2GGrMMnTGyYTzM3pn+zNjaqXqlgKmFBXvjfZqzSsKq3pdD1KHZCd5QHN+Fwvoszj0JFsquEVhE1og==", - "cpu": [ - "x64" - ], - "license": "MIT", - "optional": true, - "os": [ - "linux" - ] - }, - "node_modules/@rspack/binding-linux-x64-musl": { - "version": "1.7.6", - "resolved": "https://registry.npmjs.org/@rspack/binding-linux-x64-musl/-/binding-linux-x64-musl-1.7.6.tgz", - "integrity": "sha512-rEy6MHKob02t/77YNgr6dREyJ0e0tv1X6Xsg8Z5E7rPXead06zefUbfazj4RELYySWnM38ovZyJAkPx/gOn3VA==", - "cpu": [ - "x64" - ], - "license": "MIT", - "optional": true, - "os": [ - "linux" - ] - }, - "node_modules/@rspack/binding-wasm32-wasi": { - "version": "1.7.6", - "resolved": "https://registry.npmjs.org/@rspack/binding-wasm32-wasi/-/binding-wasm32-wasi-1.7.6.tgz", - "integrity": "sha512-YupOrz0daSG+YBbCIgpDgzfMM38YpChv+afZpaxx5Ml7xPeAZIIdgWmLHnQ2rts73N2M1NspAiBwV00Xx0N4Vg==", - "cpu": [ - "wasm32" - ], - "license": "MIT", - "optional": true, - "dependencies": { - "@napi-rs/wasm-runtime": "1.0.7" - } - }, - "node_modules/@rspack/binding-win32-arm64-msvc": { - "version": "1.7.6", - "resolved": "https://registry.npmjs.org/@rspack/binding-win32-arm64-msvc/-/binding-win32-arm64-msvc-1.7.6.tgz", - "integrity": "sha512-INj7aVXjBvlZ84kEhSK4kJ484ub0i+BzgnjDWOWM1K+eFYDZjLdAsQSS3fGGXwVc3qKbPIssFfnftATDMTEJHQ==", - "cpu": [ - "arm64" - ], - "license": "MIT", - "optional": true, - "os": [ - "win32" - ] - }, - "node_modules/@rspack/binding-win32-ia32-msvc": { - "version": "1.7.6", - "resolved": "https://registry.npmjs.org/@rspack/binding-win32-ia32-msvc/-/binding-win32-ia32-msvc-1.7.6.tgz", - "integrity": "sha512-lXGvC+z67UMcw58In12h8zCa9IyYRmuptUBMItQJzu+M278aMuD1nETyGLL7e4+OZ2lvrnnBIcjXN1hfw2yRzw==", - "cpu": [ - "ia32" - ], - "license": "MIT", - "optional": true, - "os": [ - "win32" - ] - }, - "node_modules/@rspack/binding-win32-x64-msvc": { - "version": "1.7.6", - "resolved": "https://registry.npmjs.org/@rspack/binding-win32-x64-msvc/-/binding-win32-x64-msvc-1.7.6.tgz", - "integrity": "sha512-zeUxEc0ZaPpmaYlCeWcjSJUPuRRySiSHN23oJ2Xyw0jsQ01Qm4OScPdr0RhEOFuK/UE+ANyRtDo4zJsY52Hadw==", - "cpu": [ - "x64" - ], - "license": "MIT", - "optional": true, - "os": [ - "win32" - ] - }, - "node_modules/@rspack/core": { - "version": "1.7.6", - "resolved": "https://registry.npmjs.org/@rspack/core/-/core-1.7.6.tgz", - "integrity": "sha512-Iax6UhrfZqJajA778c1d5DBFbSIqPOSrI34kpNIiNpWd8Jq7mFIa+Z60SQb5ZQDZuUxcCZikjz5BxinFjTkg7Q==", - "license": "MIT", - "dependencies": { - "@module-federation/runtime-tools": "0.22.0", - "@rspack/binding": "1.7.6", - "@rspack/lite-tapable": "1.1.0" - }, - "engines": { - "node": ">=18.12.0" - }, - "peerDependencies": { - "@swc/helpers": ">=0.5.1" - }, - "peerDependenciesMeta": { - "@swc/helpers": { - "optional": true - } - } - }, - "node_modules/@rspack/lite-tapable": { - "version": "1.1.0", - "resolved": "https://registry.npmjs.org/@rspack/lite-tapable/-/lite-tapable-1.1.0.tgz", - "integrity": "sha512-E2B0JhYFmVAwdDiG14+DW0Di4Ze4Jg10Pc4/lILUrd5DRCaklduz2OvJ5HYQ6G+hd+WTzqQb3QnDNfK4yvAFYw==", - "license": "MIT" - }, - "node_modules/@rspack/plugin-react-refresh": { - "version": "1.6.1", - "resolved": "https://registry.npmjs.org/@rspack/plugin-react-refresh/-/plugin-react-refresh-1.6.1.tgz", - "integrity": "sha512-eqqW5645VG3CzGzFgNg5HqNdHVXY+567PGjtDhhrM8t67caxmsSzRmT5qfoEIfBcGgFkH9vEg7kzXwmCYQdQDw==", - "license": "MIT", - "dependencies": { - "error-stack-parser": "^2.1.4", - "html-entities": "^2.6.0" - }, - "peerDependencies": { - "react-refresh": ">=0.10.0 <1.0.0", - "webpack-hot-middleware": "2.x" - }, - "peerDependenciesMeta": { - "webpack-hot-middleware": { - "optional": true - } - } - }, - "node_modules/@tybys/wasm-util": { - "version": "0.10.1", - "resolved": "https://registry.npmjs.org/@tybys/wasm-util/-/wasm-util-0.10.1.tgz", - "integrity": "sha512-9tTaPJLSiejZKx+Bmog4uSubteqTvFrVrURwkmHixBo0G4seD0zUxp98E1DzUBJxLQ3NPwXrGKDiVjwx/DpPsg==", - "license": "MIT", - "optional": true, - "dependencies": { - "tslib": "^2.4.0" - } - }, - "node_modules/@types/body-parser": { - "version": "1.19.6", - "resolved": "https://registry.npmjs.org/@types/body-parser/-/body-parser-1.19.6.tgz", - "integrity": "sha512-HLFeCYgz89uk22N5Qg3dvGvsv46B8GLvKKo1zKG4NybA8U2DiEO3w9lqGg29t/tfLRJpJ6iQxnVw4OnB7MoM9g==", - "dev": true, - "license": "MIT", - "dependencies": { - "@types/connect": "*", - "@types/node": "*" - } - }, - "node_modules/@types/connect": { - "version": "3.4.38", - "resolved": "https://registry.npmjs.org/@types/connect/-/connect-3.4.38.tgz", - "integrity": "sha512-K6uROf1LD88uDQqJCktA4yzL1YYAK6NgfsI0v/mTgyPKWsX1CnJ0XPSDhViejru1GcRkLWb8RlzFYJRqGUbaug==", - "dev": true, - "license": "MIT", - "dependencies": { - "@types/node": "*" - } - }, - "node_modules/@types/dom-mediacapture-transform": { - "version": "0.1.11", - "resolved": "https://registry.npmjs.org/@types/dom-mediacapture-transform/-/dom-mediacapture-transform-0.1.11.tgz", - "integrity": "sha512-Y2p+nGf1bF2XMttBnsVPHUWzRRZzqUoJAKmiP10b5umnO6DDrWI0BrGDJy1pOHoOULVmGSfFNkQrAlC5dcj6nQ==", - "license": "MIT", - "dependencies": { - "@types/dom-webcodecs": "*" - } - }, - "node_modules/@types/dom-webcodecs": { - "version": "0.1.13", - "resolved": "https://registry.npmjs.org/@types/dom-webcodecs/-/dom-webcodecs-0.1.13.tgz", - "integrity": "sha512-O5hkiFIcjjszPIYyUSyvScyvrBoV3NOEEZx/pMlsu44TKzWNkLVBBxnxJz42in5n3QIolYOcBYFCPZZ0h8SkwQ==", - "license": "MIT" - }, - "node_modules/@types/eslint": { - "version": "9.6.1", - "resolved": "https://registry.npmjs.org/@types/eslint/-/eslint-9.6.1.tgz", - "integrity": "sha512-FXx2pKgId/WyYo2jXw63kk7/+TY7u7AziEJxJAnSFzHlqTAS3Ync6SvgYAN/k4/PQpnnVuzoMuVnByKK2qp0ag==", - "license": "MIT", - "dependencies": { - "@types/estree": "*", - "@types/json-schema": "*" - } - }, - "node_modules/@types/eslint-scope": { - "version": "3.7.7", - "resolved": "https://registry.npmjs.org/@types/eslint-scope/-/eslint-scope-3.7.7.tgz", - "integrity": "sha512-MzMFlSLBqNF2gcHWO0G1vP/YQyfvrxZ0bF+u7mzUdZ1/xK4A4sru+nraZz5i3iEIk1l1uyicaDVTB4QbbEkAYg==", - "license": "MIT", - "dependencies": { - "@types/eslint": "*", - "@types/estree": "*" - } - }, - "node_modules/@types/estree": { - "version": "1.0.8", - "resolved": "https://registry.npmjs.org/@types/estree/-/estree-1.0.8.tgz", - "integrity": "sha512-dWHzHa2WqEXI/O1E9OjrocMTKJl2mSrEolh1Iomrv6U+JuNwaHXsXx9bLu5gG7BUWFIN0skIQJQ/L1rIex4X6w==", - "license": "MIT" - }, - "node_modules/@types/express": { - "version": "5.0.6", - "resolved": "https://registry.npmjs.org/@types/express/-/express-5.0.6.tgz", - "integrity": "sha512-sKYVuV7Sv9fbPIt/442koC7+IIwK5olP1KWeD88e/idgoJqDm3JV/YUiPwkoKK92ylff2MGxSz1CSjsXelx0YA==", - "dev": true, - "license": "MIT", - "dependencies": { - "@types/body-parser": "*", - "@types/express-serve-static-core": "^5.0.0", - "@types/serve-static": "^2" - } - }, - "node_modules/@types/express-serve-static-core": { - "version": "5.1.1", - "resolved": "https://registry.npmjs.org/@types/express-serve-static-core/-/express-serve-static-core-5.1.1.tgz", - "integrity": "sha512-v4zIMr/cX7/d2BpAEX3KNKL/JrT1s43s96lLvvdTmza1oEvDudCqK9aF/djc/SWgy8Yh0h30TZx5VpzqFCxk5A==", - "dev": true, - "license": "MIT", - "dependencies": { - "@types/node": "*", - "@types/qs": "*", - "@types/range-parser": "*", - "@types/send": "*" - } - }, - "node_modules/@types/http-errors": { - "version": "2.0.5", - "resolved": "https://registry.npmjs.org/@types/http-errors/-/http-errors-2.0.5.tgz", - "integrity": "sha512-r8Tayk8HJnX0FztbZN7oVqGccWgw98T/0neJphO91KkmOzug1KkofZURD4UaD5uH8AqcFLfdPErnBod0u71/qg==", - "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==", - "license": "MIT" - }, - "node_modules/@types/node": { - "version": "25.5.2", - "resolved": "https://registry.npmjs.org/@types/node/-/node-25.5.2.tgz", - "integrity": "sha512-tO4ZIRKNC+MDWV4qKVZe3Ql/woTnmHDr5JD8UI5hn2pwBrHEwOEMZK7WlNb5RKB6EoJ02gwmQS9OrjuFnZYdpg==", - "license": "MIT", - "dependencies": { - "undici-types": "~7.18.0" - } - }, - "node_modules/@types/qs": { - "version": "6.15.0", - "resolved": "https://registry.npmjs.org/@types/qs/-/qs-6.15.0.tgz", - "integrity": "sha512-JawvT8iBVWpzTrz3EGw9BTQFg3BQNmwERdKE22vlTxawwtbyUSlMppvZYKLZzB5zgACXdXxbD3m1bXaMqP/9ow==", - "dev": true, - "license": "MIT" - }, - "node_modules/@types/range-parser": { - "version": "1.2.7", - "resolved": "https://registry.npmjs.org/@types/range-parser/-/range-parser-1.2.7.tgz", - "integrity": "sha512-hKormJbkJqzQGhziax5PItDUTMAM9uE2XXQmM37dyd4hVM+5aVl7oVxMVUiVQn2oCQFN/LKCZdvSM0pFRqbSmQ==", - "dev": true, - "license": "MIT" - }, - "node_modules/@types/send": { - "version": "1.2.1", - "resolved": "https://registry.npmjs.org/@types/send/-/send-1.2.1.tgz", - "integrity": "sha512-arsCikDvlU99zl1g69TcAB3mzZPpxgw0UQnaHeC1Nwb015xp8bknZv5rIfri9xTOcMuaVgvabfIRA7PSZVuZIQ==", - "dev": true, - "license": "MIT", - "dependencies": { - "@types/node": "*" - } - }, - "node_modules/@types/serve-static": { - "version": "2.2.0", - "resolved": "https://registry.npmjs.org/@types/serve-static/-/serve-static-2.2.0.tgz", - "integrity": "sha512-8mam4H1NHLtu7nmtalF7eyBH14QyOASmcxHhSfEoRyr0nP/YdoesEtU+uSRvMe96TW/HPTtkoKqQLl53N7UXMQ==", - "dev": true, - "license": "MIT", - "dependencies": { - "@types/http-errors": "*", - "@types/node": "*" - } - }, - "node_modules/@types/uuid": { - "version": "10.0.0", - "resolved": "https://registry.npmjs.org/@types/uuid/-/uuid-10.0.0.tgz", - "integrity": "sha512-7gqG38EyHgyP1S+7+xomFtL+ZNHcKv6DwNaCZmJmo1vgMugyF3TCnXVg4t1uk89mLNwnLtnY3TpOpCOyp1/xHQ==", - "dev": true, - "license": "MIT" - }, - "node_modules/@types/yauzl": { - "version": "2.10.3", - "resolved": "https://registry.npmjs.org/@types/yauzl/-/yauzl-2.10.3.tgz", - "integrity": "sha512-oJoftv0LSuaDZE3Le4DbKX+KS9G36NzOeSap90UIK0yMA/NhKJhqlSGtNDORNRaIbQfzjXDrQa0ytJ6mNRGz/Q==", - "license": "MIT", - "optional": true, - "dependencies": { - "@types/node": "*" - } - }, - "node_modules/@webassemblyjs/ast": { - "version": "1.14.1", - "resolved": "https://registry.npmjs.org/@webassemblyjs/ast/-/ast-1.14.1.tgz", - "integrity": "sha512-nuBEDgQfm1ccRp/8bCQrx1frohyufl4JlbMMZ4P1wpeOfDhF6FQkxZJ1b/e+PLwr6X1Nhw6OLme5usuBWYBvuQ==", - "license": "MIT", - "dependencies": { - "@webassemblyjs/helper-numbers": "1.13.2", - "@webassemblyjs/helper-wasm-bytecode": "1.13.2" - } - }, - "node_modules/@webassemblyjs/floating-point-hex-parser": { - "version": "1.13.2", - "resolved": "https://registry.npmjs.org/@webassemblyjs/floating-point-hex-parser/-/floating-point-hex-parser-1.13.2.tgz", - "integrity": "sha512-6oXyTOzbKxGH4steLbLNOu71Oj+C8Lg34n6CqRvqfS2O71BxY6ByfMDRhBytzknj9yGUPVJ1qIKhRlAwO1AovA==", - "license": "MIT" - }, - "node_modules/@webassemblyjs/helper-api-error": { - "version": "1.13.2", - "resolved": "https://registry.npmjs.org/@webassemblyjs/helper-api-error/-/helper-api-error-1.13.2.tgz", - "integrity": "sha512-U56GMYxy4ZQCbDZd6JuvvNV/WFildOjsaWD3Tzzvmw/mas3cXzRJPMjP83JqEsgSbyrmaGjBfDtV7KDXV9UzFQ==", - "license": "MIT" - }, - "node_modules/@webassemblyjs/helper-buffer": { - "version": "1.14.1", - "resolved": "https://registry.npmjs.org/@webassemblyjs/helper-buffer/-/helper-buffer-1.14.1.tgz", - "integrity": "sha512-jyH7wtcHiKssDtFPRB+iQdxlDf96m0E39yb0k5uJVhFGleZFoNw1c4aeIcVUPPbXUVJ94wwnMOAqUHyzoEPVMA==", - "license": "MIT" - }, - "node_modules/@webassemblyjs/helper-numbers": { - "version": "1.13.2", - "resolved": "https://registry.npmjs.org/@webassemblyjs/helper-numbers/-/helper-numbers-1.13.2.tgz", - "integrity": "sha512-FE8aCmS5Q6eQYcV3gI35O4J789wlQA+7JrqTTpJqn5emA4U2hvwJmvFRC0HODS+3Ye6WioDklgd6scJ3+PLnEA==", - "license": "MIT", - "dependencies": { - "@webassemblyjs/floating-point-hex-parser": "1.13.2", - "@webassemblyjs/helper-api-error": "1.13.2", - "@xtuc/long": "4.2.2" - } - }, - "node_modules/@webassemblyjs/helper-wasm-bytecode": { - "version": "1.13.2", - "resolved": "https://registry.npmjs.org/@webassemblyjs/helper-wasm-bytecode/-/helper-wasm-bytecode-1.13.2.tgz", - "integrity": "sha512-3QbLKy93F0EAIXLh0ogEVR6rOubA9AoZ+WRYhNbFyuB70j3dRdwH9g+qXhLAO0kiYGlg3TxDV+I4rQTr/YNXkA==", - "license": "MIT" - }, - "node_modules/@webassemblyjs/helper-wasm-section": { - "version": "1.14.1", - "resolved": "https://registry.npmjs.org/@webassemblyjs/helper-wasm-section/-/helper-wasm-section-1.14.1.tgz", - "integrity": "sha512-ds5mXEqTJ6oxRoqjhWDU83OgzAYjwsCV8Lo/N+oRsNDmx/ZDpqalmrtgOMkHwxsG0iI//3BwWAErYRHtgn0dZw==", - "license": "MIT", - "dependencies": { - "@webassemblyjs/ast": "1.14.1", - "@webassemblyjs/helper-buffer": "1.14.1", - "@webassemblyjs/helper-wasm-bytecode": "1.13.2", - "@webassemblyjs/wasm-gen": "1.14.1" - } - }, - "node_modules/@webassemblyjs/ieee754": { - "version": "1.13.2", - "resolved": "https://registry.npmjs.org/@webassemblyjs/ieee754/-/ieee754-1.13.2.tgz", - "integrity": "sha512-4LtOzh58S/5lX4ITKxnAK2USuNEvpdVV9AlgGQb8rJDHaLeHciwG4zlGr0j/SNWlr7x3vO1lDEsuePvtcDNCkw==", - "license": "MIT", - "dependencies": { - "@xtuc/ieee754": "^1.2.0" - } - }, - "node_modules/@webassemblyjs/leb128": { - "version": "1.13.2", - "resolved": "https://registry.npmjs.org/@webassemblyjs/leb128/-/leb128-1.13.2.tgz", - "integrity": "sha512-Lde1oNoIdzVzdkNEAWZ1dZ5orIbff80YPdHx20mrHwHrVNNTjNr8E3xz9BdpcGqRQbAEa+fkrCb+fRFTl/6sQw==", - "license": "Apache-2.0", - "dependencies": { - "@xtuc/long": "4.2.2" - } - }, - "node_modules/@webassemblyjs/utf8": { - "version": "1.13.2", - "resolved": "https://registry.npmjs.org/@webassemblyjs/utf8/-/utf8-1.13.2.tgz", - "integrity": "sha512-3NQWGjKTASY1xV5m7Hr0iPeXD9+RDobLll3T9d2AO+g3my8xy5peVyjSag4I50mR1bBSN/Ct12lo+R9tJk0NZQ==", - "license": "MIT" - }, - "node_modules/@webassemblyjs/wasm-edit": { - "version": "1.14.1", - "resolved": "https://registry.npmjs.org/@webassemblyjs/wasm-edit/-/wasm-edit-1.14.1.tgz", - "integrity": "sha512-RNJUIQH/J8iA/1NzlE4N7KtyZNHi3w7at7hDjvRNm5rcUXa00z1vRz3glZoULfJ5mpvYhLybmVcwcjGrC1pRrQ==", - "license": "MIT", - "dependencies": { - "@webassemblyjs/ast": "1.14.1", - "@webassemblyjs/helper-buffer": "1.14.1", - "@webassemblyjs/helper-wasm-bytecode": "1.13.2", - "@webassemblyjs/helper-wasm-section": "1.14.1", - "@webassemblyjs/wasm-gen": "1.14.1", - "@webassemblyjs/wasm-opt": "1.14.1", - "@webassemblyjs/wasm-parser": "1.14.1", - "@webassemblyjs/wast-printer": "1.14.1" - } - }, - "node_modules/@webassemblyjs/wasm-gen": { - "version": "1.14.1", - "resolved": "https://registry.npmjs.org/@webassemblyjs/wasm-gen/-/wasm-gen-1.14.1.tgz", - "integrity": "sha512-AmomSIjP8ZbfGQhumkNvgC33AY7qtMCXnN6bL2u2Js4gVCg8fp735aEiMSBbDR7UQIj90n4wKAFUSEd0QN2Ukg==", - "license": "MIT", - "dependencies": { - "@webassemblyjs/ast": "1.14.1", - "@webassemblyjs/helper-wasm-bytecode": "1.13.2", - "@webassemblyjs/ieee754": "1.13.2", - "@webassemblyjs/leb128": "1.13.2", - "@webassemblyjs/utf8": "1.13.2" - } - }, - "node_modules/@webassemblyjs/wasm-opt": { - "version": "1.14.1", - "resolved": "https://registry.npmjs.org/@webassemblyjs/wasm-opt/-/wasm-opt-1.14.1.tgz", - "integrity": "sha512-PTcKLUNvBqnY2U6E5bdOQcSM+oVP/PmrDY9NzowJjislEjwP/C4an2303MCVS2Mg9d3AJpIGdUFIQQWbPds0Sw==", - "license": "MIT", - "dependencies": { - "@webassemblyjs/ast": "1.14.1", - "@webassemblyjs/helper-buffer": "1.14.1", - "@webassemblyjs/wasm-gen": "1.14.1", - "@webassemblyjs/wasm-parser": "1.14.1" - } - }, - "node_modules/@webassemblyjs/wasm-parser": { - "version": "1.14.1", - "resolved": "https://registry.npmjs.org/@webassemblyjs/wasm-parser/-/wasm-parser-1.14.1.tgz", - "integrity": "sha512-JLBl+KZ0R5qB7mCnud/yyX08jWFw5MsoalJ1pQ4EdFlgj9VdXKGuENGsiCIjegI1W7p91rUlcB/LB5yRJKNTcQ==", - "license": "MIT", - "dependencies": { - "@webassemblyjs/ast": "1.14.1", - "@webassemblyjs/helper-api-error": "1.13.2", - "@webassemblyjs/helper-wasm-bytecode": "1.13.2", - "@webassemblyjs/ieee754": "1.13.2", - "@webassemblyjs/leb128": "1.13.2", - "@webassemblyjs/utf8": "1.13.2" - } - }, - "node_modules/@webassemblyjs/wast-printer": { - "version": "1.14.1", - "resolved": "https://registry.npmjs.org/@webassemblyjs/wast-printer/-/wast-printer-1.14.1.tgz", - "integrity": "sha512-kPSSXE6De1XOR820C90RIo2ogvZG+c3KiHzqUoO/F34Y2shGzesfqv7o57xrxovZJH/MetF5UjroJ/R/3isoiw==", - "license": "MIT", - "dependencies": { - "@webassemblyjs/ast": "1.14.1", - "@xtuc/long": "4.2.2" - } - }, - "node_modules/@xtuc/ieee754": { - "version": "1.2.0", - "resolved": "https://registry.npmjs.org/@xtuc/ieee754/-/ieee754-1.2.0.tgz", - "integrity": "sha512-DX8nKgqcGwsc0eJSqYt5lwP4DH5FlHnmuWWBRy7X0NcaGR0ZtuyeESgMwTYVEtxmsNGY+qit4QYT/MIYTOTPeA==", - "license": "BSD-3-Clause" - }, - "node_modules/@xtuc/long": { - "version": "4.2.2", - "resolved": "https://registry.npmjs.org/@xtuc/long/-/long-4.2.2.tgz", - "integrity": "sha512-NuHqBY1PB/D8xU6s/thBgOAiAP7HOYDQ32+BFZILJ8ivkUkAHQnWfn6WhL79Owj1qmUnoN/YPhktdIoucipkAQ==", - "license": "Apache-2.0" - }, - "node_modules/accepts": { - "version": "1.3.8", - "resolved": "https://registry.npmjs.org/accepts/-/accepts-1.3.8.tgz", - "integrity": "sha512-PYAthTa2m2VKxuvSD3DPC/Gy+U+sOA1LAuT8mkmRuvw+NACSaeXEQ+NHcVF7rONl6qcaxV3Uuemwawk+7+SJLw==", - "license": "MIT", - "dependencies": { - "mime-types": "~2.1.34", - "negotiator": "0.6.3" - }, - "engines": { - "node": ">= 0.6" - } - }, - "node_modules/acorn": { - "version": "8.16.0", - "resolved": "https://registry.npmjs.org/acorn/-/acorn-8.16.0.tgz", - "integrity": "sha512-UVJyE9MttOsBQIDKw1skb9nAwQuR5wuGD3+82K6JgJlm/Y+KI92oNsMNGZCYdDsVtRHSak0pcV5Dno5+4jh9sw==", - "license": "MIT", - "bin": { - "acorn": "bin/acorn" - }, - "engines": { - "node": ">=0.4.0" - } - }, - "node_modules/acorn-import-phases": { - "version": "1.0.4", - "resolved": "https://registry.npmjs.org/acorn-import-phases/-/acorn-import-phases-1.0.4.tgz", - "integrity": "sha512-wKmbr/DDiIXzEOiWrTTUcDm24kQ2vGfZQvM2fwg2vXqR5uW6aapr7ObPtj1th32b9u90/Pf4AItvdTh42fBmVQ==", - "license": "MIT", - "engines": { - "node": ">=10.13.0" - }, - "peerDependencies": { - "acorn": "^8.14.0" - } - }, - "node_modules/ajv": { - "version": "8.18.0", - "resolved": "https://registry.npmjs.org/ajv/-/ajv-8.18.0.tgz", - "integrity": "sha512-PlXPeEWMXMZ7sPYOHqmDyCJzcfNrUr3fGNKtezX14ykXOEIvyK81d+qydx89KY5O71FKMPaQ2vBfBFI5NHR63A==", - "license": "MIT", - "dependencies": { - "fast-deep-equal": "^3.1.3", - "fast-uri": "^3.0.1", - "json-schema-traverse": "^1.0.0", - "require-from-string": "^2.0.2" - }, - "funding": { - "type": "github", - "url": "https://github.com/sponsors/epoberezkin" - } - }, - "node_modules/ajv-formats": { - "version": "2.1.1", - "resolved": "https://registry.npmjs.org/ajv-formats/-/ajv-formats-2.1.1.tgz", - "integrity": "sha512-Wx0Kx52hxE7C18hkMEggYlEifqWZtYaRgouJor+WMdPnQyEK13vgEWyVNup7SoeeoLMsr4kf5h6dOW11I15MUA==", - "license": "MIT", - "dependencies": { - "ajv": "^8.0.0" - }, - "peerDependencies": { - "ajv": "^8.0.0" - }, - "peerDependenciesMeta": { - "ajv": { - "optional": true - } - } - }, - "node_modules/ajv-keywords": { - "version": "5.1.0", - "resolved": "https://registry.npmjs.org/ajv-keywords/-/ajv-keywords-5.1.0.tgz", - "integrity": "sha512-YCS/JNFAUyr5vAuhk1DWm1CBxRHW9LbJ2ozWeemrIqpbsqKjHVxYPyi5GC0rjZIT5JxJ3virVTS8wk4i/Z+krw==", - "license": "MIT", - "dependencies": { - "fast-deep-equal": "^3.1.3" - }, - "peerDependencies": { - "ajv": "^8.8.2" - } - }, - "node_modules/array-flatten": { - "version": "1.1.1", - "resolved": "https://registry.npmjs.org/array-flatten/-/array-flatten-1.1.1.tgz", - "integrity": "sha512-PCVAQswWemu6UdxsDFFX/+gVeYqKAod3D3UVm91jHwynguOwAvYPhx8nNlM++NqRcK6CxxpUafjmhIdKiHibqg==", - "license": "MIT" - }, - "node_modules/baseline-browser-mapping": { - "version": "2.10.16", - "resolved": "https://registry.npmjs.org/baseline-browser-mapping/-/baseline-browser-mapping-2.10.16.tgz", - "integrity": "sha512-Lyf3aK28zpsD1yQMiiHD4RvVb6UdMoo8xzG2XzFIfR9luPzOpcBlAsT/qfB1XWS1bxWT+UtE4WmQgsp297FYOA==", - "license": "Apache-2.0", - "bin": { - "baseline-browser-mapping": "dist/cli.cjs" - }, - "engines": { - "node": ">=6.0.0" - } - }, - "node_modules/big.js": { - "version": "5.2.2", - "resolved": "https://registry.npmjs.org/big.js/-/big.js-5.2.2.tgz", - "integrity": "sha512-vyL2OymJxmarO8gxMr0mhChsO9QGwhynfuu4+MHTAW6czfq9humCB7rKpUjDd9YUiDPU4mzpyupFSvOClAwbmQ==", - "license": "MIT", - "engines": { - "node": "*" - } - }, - "node_modules/body-parser": { - "version": "1.20.4", - "resolved": "https://registry.npmjs.org/body-parser/-/body-parser-1.20.4.tgz", - "integrity": "sha512-ZTgYYLMOXY9qKU/57FAo8F+HA2dGX7bqGc71txDRC1rS4frdFI5R7NhluHxH6M0YItAP0sHB4uqAOcYKxO6uGA==", - "license": "MIT", - "dependencies": { - "bytes": "~3.1.2", - "content-type": "~1.0.5", - "debug": "2.6.9", - "depd": "2.0.0", - "destroy": "~1.2.0", - "http-errors": "~2.0.1", - "iconv-lite": "~0.4.24", - "on-finished": "~2.4.1", - "qs": "~6.14.0", - "raw-body": "~2.5.3", - "type-is": "~1.6.18", - "unpipe": "~1.0.0" - }, - "engines": { - "node": ">= 0.8", - "npm": "1.2.8000 || >= 1.4.16" - } - }, - "node_modules/browserslist": { - "version": "4.28.2", - "resolved": "https://registry.npmjs.org/browserslist/-/browserslist-4.28.2.tgz", - "integrity": "sha512-48xSriZYYg+8qXna9kwqjIVzuQxi+KYWp2+5nCYnYKPTr0LvD89Jqk2Or5ogxz0NUMfIjhh2lIUX/LyX9B4oIg==", - "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.10.12", - "caniuse-lite": "^1.0.30001782", - "electron-to-chromium": "^1.5.328", - "node-releases": "^2.0.36", - "update-browserslist-db": "^1.2.3" - }, - "bin": { - "browserslist": "cli.js" - }, - "engines": { - "node": "^6 || ^7 || ^8 || ^9 || ^10 || ^11 || ^12 || >=13.7" - } - }, - "node_modules/buffer-crc32": { - "version": "0.2.13", - "resolved": "https://registry.npmjs.org/buffer-crc32/-/buffer-crc32-0.2.13.tgz", - "integrity": "sha512-VO9Ht/+p3SN7SKWqcrgEzjGbRSJYTx+Q1pTQC0wrWqHx0vpJraQ6GtHx8tvcg1rlK1byhU5gccxgOgj7B0TDkQ==", - "license": "MIT", - "engines": { - "node": "*" - } - }, - "node_modules/buffer-from": { - "version": "1.1.2", - "resolved": "https://registry.npmjs.org/buffer-from/-/buffer-from-1.1.2.tgz", - "integrity": "sha512-E+XQCRwSbaaiChtv6k6Dwgc+bx+Bs6vuKJHHl5kox/BaKbhiXzqQOwK4cO22yElGp2OCmjwVhT3HmxgyPGnJfQ==", - "license": "MIT" - }, - "node_modules/bytes": { - "version": "3.1.2", - "resolved": "https://registry.npmjs.org/bytes/-/bytes-3.1.2.tgz", - "integrity": "sha512-/Nf7TyzTx6S3yRJObOAV7956r8cr2+Oj8AC5dt8wSP3BQAoeX58NoHyCU8P8zGkNXStjTSi6fzO6F0pBdcYbEg==", - "license": "MIT", - "engines": { - "node": ">= 0.8" - } - }, - "node_modules/call-bind-apply-helpers": { - "version": "1.0.2", - "resolved": "https://registry.npmjs.org/call-bind-apply-helpers/-/call-bind-apply-helpers-1.0.2.tgz", - "integrity": "sha512-Sp1ablJ0ivDkSzjcaJdxEunN5/XvksFJ2sMBFfq6x0ryhQV/2b/KwFe21cMpmHtPOSij8K99/wSfoEuTObmuMQ==", - "license": "MIT", - "dependencies": { - "es-errors": "^1.3.0", - "function-bind": "^1.1.2" - }, - "engines": { - "node": ">= 0.4" - } - }, - "node_modules/call-bound": { - "version": "1.0.4", - "resolved": "https://registry.npmjs.org/call-bound/-/call-bound-1.0.4.tgz", - "integrity": "sha512-+ys997U96po4Kx/ABpBCqhA9EuxJaQWDQg7295H4hBphv3IZg0boBKuwYpt4YXp6MZ5AmZQnU/tyMTlRpaSejg==", - "license": "MIT", - "dependencies": { - "call-bind-apply-helpers": "^1.0.2", - "get-intrinsic": "^1.3.0" - }, - "engines": { - "node": ">= 0.4" - }, - "funding": { - "url": "https://github.com/sponsors/ljharb" - } - }, - "node_modules/caniuse-lite": { - "version": "1.0.30001786", - "resolved": "https://registry.npmjs.org/caniuse-lite/-/caniuse-lite-1.0.30001786.tgz", - "integrity": "sha512-4oxTZEvqmLLrERwxO76yfKM7acZo310U+v4kqexI2TL1DkkUEMT8UijrxxcnVdxR3qkVf5awGRX+4Z6aPHVKrA==", - "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/chrome-trace-event": { - "version": "1.0.4", - "resolved": "https://registry.npmjs.org/chrome-trace-event/-/chrome-trace-event-1.0.4.tgz", - "integrity": "sha512-rNjApaLzuwaOTjCiT8lSDdGN1APCiqkChLMJxJPWLunPAt5fy8xgU9/jNOchV84wfIxrA0lRQB7oCT8jrn/wrQ==", - "license": "MIT", - "engines": { - "node": ">=6.0" - } - }, - "node_modules/commander": { - "version": "2.20.3", - "resolved": "https://registry.npmjs.org/commander/-/commander-2.20.3.tgz", - "integrity": "sha512-GpVkmM8vF2vQUkj2LvZmD35JxeJOLCwJ9cUkugyk2nuhbv3+mJvpLYYt+0+USMxE+oj+ey/lJEnhZw75x/OMcQ==", - "license": "MIT" - }, - "node_modules/content-disposition": { - "version": "0.5.4", - "resolved": "https://registry.npmjs.org/content-disposition/-/content-disposition-0.5.4.tgz", - "integrity": "sha512-FveZTNuGw04cxlAiWbzi6zTAL/lhehaWbTtgluJh4/E95DqMwTmha3KZN1aAWA8cFIhHzMZUvLevkw5Rqk+tSQ==", - "license": "MIT", - "dependencies": { - "safe-buffer": "5.2.1" - }, - "engines": { - "node": ">= 0.6" - } - }, - "node_modules/content-type": { - "version": "1.0.5", - "resolved": "https://registry.npmjs.org/content-type/-/content-type-1.0.5.tgz", - "integrity": "sha512-nTjqfcBFEipKdXCv4YDQWCfmcLZKm81ldF0pAopTvyrFGVbcR6P/VAAd5G7N+0tTr8QqiU0tFadD6FK4NtJwOA==", - "license": "MIT", - "engines": { - "node": ">= 0.6" - } - }, - "node_modules/cookie": { - "version": "0.7.2", - "resolved": "https://registry.npmjs.org/cookie/-/cookie-0.7.2.tgz", - "integrity": "sha512-yki5XnKuf750l50uGTllt6kKILY4nQ1eNIQatoXEByZ5dWgnKqbnqmTrBE5B4N7lrMJKQ2ytWMiTO2o0v6Ew/w==", - "license": "MIT", - "engines": { - "node": ">= 0.6" - } - }, - "node_modules/cookie-signature": { - "version": "1.0.7", - "resolved": "https://registry.npmjs.org/cookie-signature/-/cookie-signature-1.0.7.tgz", - "integrity": "sha512-NXdYc3dLr47pBkpUCHtKSwIOQXLVn8dZEuywboCOJY/osA0wFSLlSawr3KN8qXJEyX66FcONTH8EIlVuK0yyFA==", - "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==", - "license": "MIT", - "dependencies": { - "path-key": "^3.1.0", - "shebang-command": "^2.0.0", - "which": "^2.0.1" - }, - "engines": { - "node": ">= 8" - } - }, - "node_modules/debug": { - "version": "2.6.9", - "resolved": "https://registry.npmjs.org/debug/-/debug-2.6.9.tgz", - "integrity": "sha512-bC7ElrdJaJnPbAP+1EotYvqZsb3ecl5wi6Bfi6BJTUcNowp6cvspg0jXznRTKDjm/E7AdgFBVeAPVMNcKGsHMA==", - "license": "MIT", - "dependencies": { - "ms": "2.0.0" - } - }, - "node_modules/define-lazy-prop": { - "version": "2.0.0", - "resolved": "https://registry.npmjs.org/define-lazy-prop/-/define-lazy-prop-2.0.0.tgz", - "integrity": "sha512-Ds09qNh8yw3khSjiJjiUInaGX9xlqZDY7JVryGxdxV7NPeuqQfplOpQ66yJFZut3jLa5zOwkXw1g9EI2uKh4Og==", - "license": "MIT", - "engines": { - "node": ">=8" - } - }, - "node_modules/depd": { - "version": "2.0.0", - "resolved": "https://registry.npmjs.org/depd/-/depd-2.0.0.tgz", - "integrity": "sha512-g7nH6P6dyDioJogAAGprGpCtVImJhpPk/roCzdb3fIh61/s/nPsfR6onyMwkCAR/OlC3yBC0lESvUoQEAssIrw==", - "license": "MIT", - "engines": { - "node": ">= 0.8" - } - }, - "node_modules/destroy": { - "version": "1.2.0", - "resolved": "https://registry.npmjs.org/destroy/-/destroy-1.2.0.tgz", - "integrity": "sha512-2sJGJTaXIIaR1w4iJSNoN0hnMY7Gpc/n8D4qSCJw8QqFWXf7cuAgnEHxBpweaVcPevC2l3KpjYCx3NypQQgaJg==", - "license": "MIT", - "engines": { - "node": ">= 0.8", - "npm": "1.2.8000 || >= 1.4.16" - } - }, - "node_modules/dunder-proto": { - "version": "1.0.1", - "resolved": "https://registry.npmjs.org/dunder-proto/-/dunder-proto-1.0.1.tgz", - "integrity": "sha512-KIN/nDJBQRcXw0MLVhZE9iQHmG68qAVIBg9CqmUYjmQIhgij9U5MFvrqkUL5FbtyyzZuOeOt0zdeRe4UY7ct+A==", - "license": "MIT", - "dependencies": { - "call-bind-apply-helpers": "^1.0.1", - "es-errors": "^1.3.0", - "gopd": "^1.2.0" - }, - "engines": { - "node": ">= 0.4" - } - }, - "node_modules/ee-first": { - "version": "1.1.1", - "resolved": "https://registry.npmjs.org/ee-first/-/ee-first-1.1.1.tgz", - "integrity": "sha512-WMwm9LhRUo+WUaRN+vRuETqG89IgZphVSNkdFgeb6sS/E4OrDIN7t48CAewSHXc6C8lefD8KKfr5vY61brQlow==", - "license": "MIT" - }, - "node_modules/electron-to-chromium": { - "version": "1.5.332", - "resolved": "https://registry.npmjs.org/electron-to-chromium/-/electron-to-chromium-1.5.332.tgz", - "integrity": "sha512-7OOtytmh/rINMLwaFTbcMVvYXO3AUm029X0LcyfYk0B557RlPkdpTpnH9+htMlfu5dKwOmT0+Zs2Aw+lnn6TeQ==", - "license": "ISC" - }, - "node_modules/emojis-list": { - "version": "3.0.0", - "resolved": "https://registry.npmjs.org/emojis-list/-/emojis-list-3.0.0.tgz", - "integrity": "sha512-/kyM18EfinwXZbno9FyUGeFh87KC8HRQBQGildHZbEuRyWFOmv1U10o9BBp8XVZDVNNuQKyIGIu5ZYAAXJ0V2Q==", - "license": "MIT", - "engines": { - "node": ">= 4" - } - }, - "node_modules/encodeurl": { - "version": "2.0.0", - "resolved": "https://registry.npmjs.org/encodeurl/-/encodeurl-2.0.0.tgz", - "integrity": "sha512-Q0n9HRi4m6JuGIV1eFlmvJB7ZEVxu93IrMyiMsGC0lrMJMWzRgx6WGquyfQgZVb31vhGgXnfmPNNXmxnOkRBrg==", - "license": "MIT", - "engines": { - "node": ">= 0.8" - } - }, - "node_modules/end-of-stream": { - "version": "1.4.5", - "resolved": "https://registry.npmjs.org/end-of-stream/-/end-of-stream-1.4.5.tgz", - "integrity": "sha512-ooEGc6HP26xXq/N+GCGOT0JKCLDGrq2bQUZrQ7gyrJiZANJ/8YDTxTpQBXGMn+WbIQXNVpyWymm7KYVICQnyOg==", - "license": "MIT", - "dependencies": { - "once": "^1.4.0" - } - }, - "node_modules/enhanced-resolve": { - "version": "5.20.1", - "resolved": "https://registry.npmjs.org/enhanced-resolve/-/enhanced-resolve-5.20.1.tgz", - "integrity": "sha512-Qohcme7V1inbAfvjItgw0EaxVX5q2rdVEZHRBrEQdRZTssLDGsL8Lwrznl8oQ/6kuTJONLaDcGjkNP247XEhcA==", - "license": "MIT", - "dependencies": { - "graceful-fs": "^4.2.4", - "tapable": "^2.3.0" - }, - "engines": { - "node": ">=10.13.0" - } - }, - "node_modules/error-stack-parser": { - "version": "2.1.4", - "resolved": "https://registry.npmjs.org/error-stack-parser/-/error-stack-parser-2.1.4.tgz", - "integrity": "sha512-Sk5V6wVazPhq5MhpO+AUxJn5x7XSXGl1R93Vn7i+zS15KDVxQijejNCrz8340/2bgLBjR9GtEG8ZVKONDjcqGQ==", - "license": "MIT", - "dependencies": { - "stackframe": "^1.3.4" - } - }, - "node_modules/es-define-property": { - "version": "1.0.1", - "resolved": "https://registry.npmjs.org/es-define-property/-/es-define-property-1.0.1.tgz", - "integrity": "sha512-e3nRfgfUZ4rNGL232gUgX06QNyyez04KdjFrF+LTRoOXmrOgFKDg4BCdsjW8EnT69eqdYGmRpJwiPVYNrCaW3g==", - "license": "MIT", - "engines": { - "node": ">= 0.4" - } - }, - "node_modules/es-errors": { - "version": "1.3.0", - "resolved": "https://registry.npmjs.org/es-errors/-/es-errors-1.3.0.tgz", - "integrity": "sha512-Zf5H2Kxt2xjTvbJvP2ZWLEICxA6j+hAmMzIlypy4xcBg1vKVnx89Wy0GbS+kf5cwCVFFzdCFh2XSCFNULS6csw==", - "license": "MIT", - "engines": { - "node": ">= 0.4" - } - }, - "node_modules/es-module-lexer": { - "version": "2.0.0", - "resolved": "https://registry.npmjs.org/es-module-lexer/-/es-module-lexer-2.0.0.tgz", - "integrity": "sha512-5POEcUuZybH7IdmGsD8wlf0AI55wMecM9rVBTI/qEAy2c1kTOm3DjFYjrBdI2K3BaJjJYfYFeRtM0t9ssnRuxw==", - "license": "MIT" - }, - "node_modules/es-object-atoms": { - "version": "1.1.1", - "resolved": "https://registry.npmjs.org/es-object-atoms/-/es-object-atoms-1.1.1.tgz", - "integrity": "sha512-FGgH2h8zKNim9ljj7dankFPcICIK9Cp5bm+c2gQSYePhpaG5+esrLODihIorn+Pe6FGJzWhXQotPv73jTaldXA==", - "license": "MIT", - "dependencies": { - "es-errors": "^1.3.0" - }, - "engines": { - "node": ">= 0.4" - } - }, - "node_modules/esbuild": { - "version": "0.25.0", - "resolved": "https://registry.npmjs.org/esbuild/-/esbuild-0.25.0.tgz", - "integrity": "sha512-BXq5mqc8ltbaN34cDqWuYKyNhX8D/Z0J1xdtdQ8UcIIIyJyz+ZMKUt58tF3SrZ85jcfN/PZYhjR5uDQAYNVbuw==", - "hasInstallScript": true, - "license": "MIT", - "bin": { - "esbuild": "bin/esbuild" - }, - "engines": { - "node": ">=18" - }, - "optionalDependencies": { - "@esbuild/aix-ppc64": "0.25.0", - "@esbuild/android-arm": "0.25.0", - "@esbuild/android-arm64": "0.25.0", - "@esbuild/android-x64": "0.25.0", - "@esbuild/darwin-arm64": "0.25.0", - "@esbuild/darwin-x64": "0.25.0", - "@esbuild/freebsd-arm64": "0.25.0", - "@esbuild/freebsd-x64": "0.25.0", - "@esbuild/linux-arm": "0.25.0", - "@esbuild/linux-arm64": "0.25.0", - "@esbuild/linux-ia32": "0.25.0", - "@esbuild/linux-loong64": "0.25.0", - "@esbuild/linux-mips64el": "0.25.0", - "@esbuild/linux-ppc64": "0.25.0", - "@esbuild/linux-riscv64": "0.25.0", - "@esbuild/linux-s390x": "0.25.0", - "@esbuild/linux-x64": "0.25.0", - "@esbuild/netbsd-arm64": "0.25.0", - "@esbuild/netbsd-x64": "0.25.0", - "@esbuild/openbsd-arm64": "0.25.0", - "@esbuild/openbsd-x64": "0.25.0", - "@esbuild/sunos-x64": "0.25.0", - "@esbuild/win32-arm64": "0.25.0", - "@esbuild/win32-ia32": "0.25.0", - "@esbuild/win32-x64": "0.25.0" - } - }, - "node_modules/escalade": { - "version": "3.2.0", - "resolved": "https://registry.npmjs.org/escalade/-/escalade-3.2.0.tgz", - "integrity": "sha512-WUj2qlxaQtO4g6Pq5c29GTcWGDyd8itL8zTlipgECz3JesAiiOKotd8JU6otB3PACgG6xkJUyVhboMS+bje/jA==", - "license": "MIT", - "engines": { - "node": ">=6" - } - }, - "node_modules/escape-html": { - "version": "1.0.3", - "resolved": "https://registry.npmjs.org/escape-html/-/escape-html-1.0.3.tgz", - "integrity": "sha512-NiSupZ4OeuGwr68lGIeym/ksIZMJodUGOSCZ/FSnTxcrekbvqrgdUxlJOMpijaKZVjAJrWrGs/6Jy8OMuyj9ow==", - "license": "MIT" - }, - "node_modules/eslint-scope": { - "version": "5.1.1", - "resolved": "https://registry.npmjs.org/eslint-scope/-/eslint-scope-5.1.1.tgz", - "integrity": "sha512-2NxwbF/hZ0KpepYN0cNbo+FN6XoK7GaHlQhgx/hIZl6Va0bF45RQOOwhLIy8lQDbuCiadSLCBnH2CFYquit5bw==", - "license": "BSD-2-Clause", - "dependencies": { - "esrecurse": "^4.3.0", - "estraverse": "^4.1.1" - }, - "engines": { - "node": ">=8.0.0" - } - }, - "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==", - "license": "BSD-2-Clause", - "dependencies": { - "estraverse": "^5.2.0" - }, - "engines": { - "node": ">=4.0" - } - }, - "node_modules/esrecurse/node_modules/estraverse": { - "version": "5.3.0", - "resolved": "https://registry.npmjs.org/estraverse/-/estraverse-5.3.0.tgz", - "integrity": "sha512-MMdARuVEQziNTeJD8DgMqmhwR11BRQ/cBP+pLtYdSTnf3MIO8fFeiINEbX36ZdNlfU/7A9f3gUw49B3oQsvwBA==", - "license": "BSD-2-Clause", - "engines": { - "node": ">=4.0" - } - }, - "node_modules/estraverse": { - "version": "4.3.0", - "resolved": "https://registry.npmjs.org/estraverse/-/estraverse-4.3.0.tgz", - "integrity": "sha512-39nnKffWz8xN1BU/2c79n9nB9HDzo0niYUqx6xyqUnyoAnQyyWpOTdZEeiCch8BBu515t4wp9ZmgVfVhn9EBpw==", - "license": "BSD-2-Clause", - "engines": { - "node": ">=4.0" - } - }, - "node_modules/etag": { - "version": "1.8.1", - "resolved": "https://registry.npmjs.org/etag/-/etag-1.8.1.tgz", - "integrity": "sha512-aIL5Fx7mawVa300al2BnEE4iNvo1qETxLrPI/o05L7z6go7fCw1J6EQmbK4FmJ2AS7kgVF/KEZWufBfdClMcPg==", - "license": "MIT", - "engines": { - "node": ">= 0.6" - } - }, - "node_modules/events": { - "version": "3.3.0", - "resolved": "https://registry.npmjs.org/events/-/events-3.3.0.tgz", - "integrity": "sha512-mQw+2fkQbALzQ7V0MY0IqdnXNOeTtP4r0lN9z7AAawCXgqea7bDii20AYrIBrFd/Hx0M2Ocz6S111CaFkUcb0Q==", - "license": "MIT", - "engines": { - "node": ">=0.8.x" - } - }, - "node_modules/execa": { - "version": "5.1.1", - "resolved": "https://registry.npmjs.org/execa/-/execa-5.1.1.tgz", - "integrity": "sha512-8uSpZZocAZRBAPIEINJj3Lo9HyGitllczc27Eh5YYojjMFMn8yHMDMaUHE2Jqfq05D/wucwI4JGURyXt1vchyg==", - "license": "MIT", - "dependencies": { - "cross-spawn": "^7.0.3", - "get-stream": "^6.0.0", - "human-signals": "^2.1.0", - "is-stream": "^2.0.0", - "merge-stream": "^2.0.0", - "npm-run-path": "^4.0.1", - "onetime": "^5.1.2", - "signal-exit": "^3.0.3", - "strip-final-newline": "^2.0.0" - }, - "engines": { - "node": ">=10" - }, - "funding": { - "url": "https://github.com/sindresorhus/execa?sponsor=1" - } - }, - "node_modules/express": { - "version": "4.22.1", - "resolved": "https://registry.npmjs.org/express/-/express-4.22.1.tgz", - "integrity": "sha512-F2X8g9P1X7uCPZMA3MVf9wcTqlyNp7IhH5qPCI0izhaOIYXaW9L535tGA3qmjRzpH+bZczqq7hVKxTR4NWnu+g==", - "license": "MIT", - "dependencies": { - "accepts": "~1.3.8", - "array-flatten": "1.1.1", - "body-parser": "~1.20.3", - "content-disposition": "~0.5.4", - "content-type": "~1.0.4", - "cookie": "~0.7.1", - "cookie-signature": "~1.0.6", - "debug": "2.6.9", - "depd": "2.0.0", - "encodeurl": "~2.0.0", - "escape-html": "~1.0.3", - "etag": "~1.8.1", - "finalhandler": "~1.3.1", - "fresh": "~0.5.2", - "http-errors": "~2.0.0", - "merge-descriptors": "1.0.3", - "methods": "~1.1.2", - "on-finished": "~2.4.1", - "parseurl": "~1.3.3", - "path-to-regexp": "~0.1.12", - "proxy-addr": "~2.0.7", - "qs": "~6.14.0", - "range-parser": "~1.2.1", - "safe-buffer": "5.2.1", - "send": "~0.19.0", - "serve-static": "~1.16.2", - "setprototypeof": "1.2.0", - "statuses": "~2.0.1", - "type-is": "~1.6.18", - "utils-merge": "1.0.1", - "vary": "~1.1.2" - }, - "engines": { - "node": ">= 0.10.0" - }, - "funding": { - "type": "opencollective", - "url": "https://opencollective.com/express" - } - }, - "node_modules/extract-zip": { - "version": "2.0.1", - "resolved": "https://registry.npmjs.org/extract-zip/-/extract-zip-2.0.1.tgz", - "integrity": "sha512-GDhU9ntwuKyGXdZBUgTIe+vXnWj0fppUEtMDL0+idd5Sta8TGpHssn/eusA9mrPr9qNDym6SxAYZjNvCn/9RBg==", - "license": "BSD-2-Clause", - "dependencies": { - "debug": "^4.1.1", - "get-stream": "^5.1.0", - "yauzl": "^2.10.0" - }, - "bin": { - "extract-zip": "cli.js" - }, - "engines": { - "node": ">= 10.17.0" - }, - "optionalDependencies": { - "@types/yauzl": "^2.9.1" - } - }, - "node_modules/extract-zip/node_modules/debug": { - "version": "4.4.3", - "resolved": "https://registry.npmjs.org/debug/-/debug-4.4.3.tgz", - "integrity": "sha512-RGwwWnwQvkVfavKVt22FGLw+xYSdzARwm0ru6DhTVA3umU5hZc28V3kO4stgYryrTlLpuvgI9GiijltAjNbcqA==", - "license": "MIT", - "dependencies": { - "ms": "^2.1.3" - }, - "engines": { - "node": ">=6.0" - }, - "peerDependenciesMeta": { - "supports-color": { - "optional": true - } - } - }, - "node_modules/extract-zip/node_modules/get-stream": { - "version": "5.2.0", - "resolved": "https://registry.npmjs.org/get-stream/-/get-stream-5.2.0.tgz", - "integrity": "sha512-nBF+F1rAZVCu/p7rjzgA+Yb4lfYXrpl7a6VmJrU8wF9I1CKvP/QwPNZHnOlwbTkY6dvtFIzFMSyQXbLoTQPRpA==", - "license": "MIT", - "dependencies": { - "pump": "^3.0.0" - }, - "engines": { - "node": ">=8" - }, - "funding": { - "url": "https://github.com/sponsors/sindresorhus" - } - }, - "node_modules/extract-zip/node_modules/ms": { - "version": "2.1.3", - "resolved": "https://registry.npmjs.org/ms/-/ms-2.1.3.tgz", - "integrity": "sha512-6FlzubTLZG3J2a/NVCAleEhjzq5oxgHyaCU9yYXvcLsvoVaHJq/s5xXI6/XXP6tz7R9xAOtHnSO/tXtF3WRTlA==", - "license": "MIT" - }, - "node_modules/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==", - "license": "MIT" - }, - "node_modules/fast-uri": { - "version": "3.1.0", - "resolved": "https://registry.npmjs.org/fast-uri/-/fast-uri-3.1.0.tgz", - "integrity": "sha512-iPeeDKJSWf4IEOasVVrknXpaBV0IApz/gp7S2bb7Z4Lljbl2MGJRqInZiUrQwV16cpzw/D3S5j5Julj/gT52AA==", - "funding": [ - { - "type": "github", - "url": "https://github.com/sponsors/fastify" - }, - { - "type": "opencollective", - "url": "https://opencollective.com/fastify" - } - ], - "license": "BSD-3-Clause" - }, - "node_modules/fd-slicer": { - "version": "1.1.0", - "resolved": "https://registry.npmjs.org/fd-slicer/-/fd-slicer-1.1.0.tgz", - "integrity": "sha512-cE1qsB/VwyQozZ+q1dGxR8LBYNZeofhEdUNGSMbQD3Gw2lAzX9Zb3uIU6Ebc/Fmyjo9AWWfnn0AUCHqtevs/8g==", - "license": "MIT", - "dependencies": { - "pend": "~1.2.0" - } - }, - "node_modules/finalhandler": { - "version": "1.3.2", - "resolved": "https://registry.npmjs.org/finalhandler/-/finalhandler-1.3.2.tgz", - "integrity": "sha512-aA4RyPcd3badbdABGDuTXCMTtOneUCAYH/gxoYRTZlIJdF0YPWuGqiAsIrhNnnqdXGswYk6dGujem4w80UJFhg==", - "license": "MIT", - "dependencies": { - "debug": "2.6.9", - "encodeurl": "~2.0.0", - "escape-html": "~1.0.3", - "on-finished": "~2.4.1", - "parseurl": "~1.3.3", - "statuses": "~2.0.2", - "unpipe": "~1.0.0" - }, - "engines": { - "node": ">= 0.8" - } - }, - "node_modules/forwarded": { - "version": "0.2.0", - "resolved": "https://registry.npmjs.org/forwarded/-/forwarded-0.2.0.tgz", - "integrity": "sha512-buRG0fpBtRHSTCOASe6hD258tEubFoRLb4ZNA6NxMVHNw2gOcwHo9wyablzMzOA5z9xA9L1KNjk/Nt6MT9aYow==", - "license": "MIT", - "engines": { - "node": ">= 0.6" - } - }, - "node_modules/fresh": { - "version": "0.5.2", - "resolved": "https://registry.npmjs.org/fresh/-/fresh-0.5.2.tgz", - "integrity": "sha512-zJ2mQYM18rEFOudeV4GShTGIQ7RbzA7ozbU9I/XBpm7kqgMywgmylMwXHxZJmkVoYkna9d2pVXVXPdYTP9ej8Q==", - "license": "MIT", - "engines": { - "node": ">= 0.6" - } - }, - "node_modules/fs-monkey": { - "version": "1.0.3", - "resolved": "https://registry.npmjs.org/fs-monkey/-/fs-monkey-1.0.3.tgz", - "integrity": "sha512-cybjIfiiE+pTWicSCLFHSrXZ6EilF30oh91FDP9S2B051prEa7QWfrVTQm10/dDpswBDXZugPa1Ogu8Yh+HV0Q==", - "license": "Unlicense" - }, - "node_modules/fsevents": { - "version": "2.3.3", - "resolved": "https://registry.npmjs.org/fsevents/-/fsevents-2.3.3.tgz", - "integrity": "sha512-5xoDfX+fL7faATnagmWPpbFtwh/R77WmMMqqHGS65C3vvB0YHrgF+B1YmZ3441tMj5n63k0212XNoJwzlhffQw==", - "dev": true, - "hasInstallScript": true, - "license": "MIT", - "optional": true, - "os": [ - "darwin" - ], - "engines": { - "node": "^8.16.0 || ^10.6.0 || >=11.0.0" - } - }, - "node_modules/function-bind": { - "version": "1.1.2", - "resolved": "https://registry.npmjs.org/function-bind/-/function-bind-1.1.2.tgz", - "integrity": "sha512-7XHNxH7qX9xG5mIwxkhumTox/MIRNcOgDrxWsMt2pAr23WHp6MrRlN7FBSFpCpr+oVO0F744iUgR82nJMfG2SA==", - "license": "MIT", - "funding": { - "url": "https://github.com/sponsors/ljharb" - } - }, - "node_modules/get-intrinsic": { - "version": "1.3.0", - "resolved": "https://registry.npmjs.org/get-intrinsic/-/get-intrinsic-1.3.0.tgz", - "integrity": "sha512-9fSjSaos/fRIVIp+xSJlE6lfwhES7LNtKaCBIamHsjr2na1BiABJPo0mOjjz8GJDURarmCPGqaiVg5mfjb98CQ==", - "license": "MIT", - "dependencies": { - "call-bind-apply-helpers": "^1.0.2", - "es-define-property": "^1.0.1", - "es-errors": "^1.3.0", - "es-object-atoms": "^1.1.1", - "function-bind": "^1.1.2", - "get-proto": "^1.0.1", - "gopd": "^1.2.0", - "has-symbols": "^1.1.0", - "hasown": "^2.0.2", - "math-intrinsics": "^1.1.0" - }, - "engines": { - "node": ">= 0.4" - }, - "funding": { - "url": "https://github.com/sponsors/ljharb" - } - }, - "node_modules/get-proto": { - "version": "1.0.1", - "resolved": "https://registry.npmjs.org/get-proto/-/get-proto-1.0.1.tgz", - "integrity": "sha512-sTSfBjoXBp89JvIKIefqw7U2CCebsc74kiY6awiGogKtoSGbgjYE/G/+l9sF3MWFPNc9IcoOC4ODfKHfxFmp0g==", - "license": "MIT", - "dependencies": { - "dunder-proto": "^1.0.1", - "es-object-atoms": "^1.0.0" - }, - "engines": { - "node": ">= 0.4" - } - }, - "node_modules/get-stream": { - "version": "6.0.1", - "resolved": "https://registry.npmjs.org/get-stream/-/get-stream-6.0.1.tgz", - "integrity": "sha512-ts6Wi+2j3jQjqi70w5AlN8DFnkSwC+MqmxEzdEALB2qXZYV3X/b1CTfgPLGJNMeAWxdPfU8FO1ms3NUfaHCPYg==", - "license": "MIT", - "engines": { - "node": ">=10" - }, - "funding": { - "url": "https://github.com/sponsors/sindresorhus" - } - }, - "node_modules/get-tsconfig": { - "version": "4.13.7", - "resolved": "https://registry.npmjs.org/get-tsconfig/-/get-tsconfig-4.13.7.tgz", - "integrity": "sha512-7tN6rFgBlMgpBML5j8typ92BKFi2sFQvIdpAqLA2beia5avZDrMs0FLZiM5etShWq5irVyGcGMEA1jcDaK7A/Q==", - "dev": true, - "license": "MIT", - "dependencies": { - "resolve-pkg-maps": "^1.0.0" - }, - "funding": { - "url": "https://github.com/privatenumber/get-tsconfig?sponsor=1" - } - }, - "node_modules/glob-to-regexp": { - "version": "0.4.1", - "resolved": "https://registry.npmjs.org/glob-to-regexp/-/glob-to-regexp-0.4.1.tgz", - "integrity": "sha512-lkX1HJXwyMcprw/5YUZc2s7DrpAiHB21/V+E1rHUrVNokkvB6bqMzT0VfV6/86ZNabt1k14YOIaT7nDvOX3Iiw==", - "license": "BSD-2-Clause" - }, - "node_modules/gopd": { - "version": "1.2.0", - "resolved": "https://registry.npmjs.org/gopd/-/gopd-1.2.0.tgz", - "integrity": "sha512-ZUKRh6/kUFoAiTAtTYPZJ3hw9wNxx+BIBOijnlG9PnrJsCcSjs1wyyD6vJpaYtgnzDrKYRSqf3OO6Rfa93xsRg==", - "license": "MIT", - "engines": { - "node": ">= 0.4" - }, - "funding": { - "url": "https://github.com/sponsors/ljharb" - } - }, - "node_modules/graceful-fs": { - "version": "4.2.11", - "resolved": "https://registry.npmjs.org/graceful-fs/-/graceful-fs-4.2.11.tgz", - "integrity": "sha512-RbJ5/jmFcNNCcDV5o9eTnBLJ/HszWV0P73bc+Ff4nS/rJj+YaS6IGyiOL0VoBYX+l1Wrl3k63h/KrH+nhJ0XvQ==", - "license": "ISC" - }, - "node_modules/has-flag": { - "version": "4.0.0", - "resolved": "https://registry.npmjs.org/has-flag/-/has-flag-4.0.0.tgz", - "integrity": "sha512-EykJT/Q1KjTWctppgIAgfSO0tKVuZUjhgMr17kqTumMl6Afv3EISleU7qZUzoXDFTAHTDC4NOoG/ZxU3EvlMPQ==", - "license": "MIT", - "engines": { - "node": ">=8" - } - }, - "node_modules/has-symbols": { - "version": "1.1.0", - "resolved": "https://registry.npmjs.org/has-symbols/-/has-symbols-1.1.0.tgz", - "integrity": "sha512-1cDNdwJ2Jaohmb3sg4OmKaMBwuC48sYni5HUw2DvsC8LjGTLK9h+eb1X6RyuOHe4hT0ULCW68iomhjUoKUqlPQ==", - "license": "MIT", - "engines": { - "node": ">= 0.4" - }, - "funding": { - "url": "https://github.com/sponsors/ljharb" - } - }, - "node_modules/hasown": { - "version": "2.0.2", - "resolved": "https://registry.npmjs.org/hasown/-/hasown-2.0.2.tgz", - "integrity": "sha512-0hJU9SCPvmMzIBdZFqNPXWa6dqh7WdH0cII9y+CyS8rG3nL48Bclra9HmKhVVUHyPWNH5Y7xDwAB7bfgSjkUMQ==", - "license": "MIT", - "dependencies": { - "function-bind": "^1.1.2" - }, - "engines": { - "node": ">= 0.4" - } - }, - "node_modules/html-entities": { - "version": "2.6.0", - "resolved": "https://registry.npmjs.org/html-entities/-/html-entities-2.6.0.tgz", - "integrity": "sha512-kig+rMn/QOVRvr7c86gQ8lWXq+Hkv6CbAH1hLu+RG338StTpE8Z0b44SDVaqVu7HGKf27frdmUYEs9hTUX/cLQ==", - "funding": [ - { - "type": "github", - "url": "https://github.com/sponsors/mdevils" - }, - { - "type": "patreon", - "url": "https://patreon.com/mdevils" - } - ], - "license": "MIT" - }, - "node_modules/http-errors": { - "version": "2.0.1", - "resolved": "https://registry.npmjs.org/http-errors/-/http-errors-2.0.1.tgz", - "integrity": "sha512-4FbRdAX+bSdmo4AUFuS0WNiPz8NgFt+r8ThgNWmlrjQjt1Q7ZR9+zTlce2859x4KSXrwIsaeTqDoKQmtP8pLmQ==", - "license": "MIT", - "dependencies": { - "depd": "~2.0.0", - "inherits": "~2.0.4", - "setprototypeof": "~1.2.0", - "statuses": "~2.0.2", - "toidentifier": "~1.0.1" - }, - "engines": { - "node": ">= 0.8" - }, - "funding": { - "type": "opencollective", - "url": "https://opencollective.com/express" - } - }, - "node_modules/human-signals": { - "version": "2.1.0", - "resolved": "https://registry.npmjs.org/human-signals/-/human-signals-2.1.0.tgz", - "integrity": "sha512-B4FFZ6q/T2jhhksgkbEW3HBvWIfDW85snkQgawt07S7J5QXTk6BkNV+0yAeZrM5QpMAdYlocGoljn0sJ/WQkFw==", - "license": "Apache-2.0", - "engines": { - "node": ">=10.17.0" - } - }, - "node_modules/iconv-lite": { - "version": "0.4.24", - "resolved": "https://registry.npmjs.org/iconv-lite/-/iconv-lite-0.4.24.tgz", - "integrity": "sha512-v3MXnZAcvnywkTUEZomIActle7RXXeedOR31wwl7VlyoXO4Qi9arvSenNQWne1TcRwhCL1HwLI21bEqdpj8/rA==", - "license": "MIT", - "dependencies": { - "safer-buffer": ">= 2.1.2 < 3" - }, - "engines": { - "node": ">=0.10.0" - } - }, - "node_modules/inherits": { - "version": "2.0.4", - "resolved": "https://registry.npmjs.org/inherits/-/inherits-2.0.4.tgz", - "integrity": "sha512-k/vGaX4/Yla3WzyMCvTQOXYeIHvqOKtnqBduzTHpzpQZzAskKMhZ2K+EnBiSM9zGSoIFeMpXKxa4dYeZIQqewQ==", - "license": "ISC" - }, - "node_modules/ipaddr.js": { - "version": "1.9.1", - "resolved": "https://registry.npmjs.org/ipaddr.js/-/ipaddr.js-1.9.1.tgz", - "integrity": "sha512-0KI/607xoxSToH7GjN1FfSbLoU0+btTicjsQSWQlh/hZykN8KpmMf7uYwPW3R+akZ6R/w18ZlXSHBYXiYUPO3g==", - "license": "MIT", - "engines": { - "node": ">= 0.10" - } - }, - "node_modules/is-docker": { - "version": "2.2.1", - "resolved": "https://registry.npmjs.org/is-docker/-/is-docker-2.2.1.tgz", - "integrity": "sha512-F+i2BKsFrH66iaUFc0woD8sLy8getkwTwtOBjvs56Cx4CgJDeKQeqfz8wAYiSb8JOprWhHH5p77PbmYCvvUuXQ==", - "license": "MIT", - "bin": { - "is-docker": "cli.js" - }, - "engines": { - "node": ">=8" - }, - "funding": { - "url": "https://github.com/sponsors/sindresorhus" - } - }, - "node_modules/is-stream": { - "version": "2.0.1", - "resolved": "https://registry.npmjs.org/is-stream/-/is-stream-2.0.1.tgz", - "integrity": "sha512-hFoiJiTl63nn+kstHGBtewWSKnQLpyb155KHheA1l39uvtO9nWIop1p3udqPcUd/xbF1VLMO4n7OI6p7RbngDg==", - "license": "MIT", - "engines": { - "node": ">=8" - }, - "funding": { - "url": "https://github.com/sponsors/sindresorhus" - } - }, - "node_modules/is-wsl": { - "version": "2.2.0", - "resolved": "https://registry.npmjs.org/is-wsl/-/is-wsl-2.2.0.tgz", - "integrity": "sha512-fKzAra0rGJUUBwGBgNkHZuToZcn+TtXHpeCgmkMJMMYx1sQDYaCSyjJBSCa2nH1DGm7s3n1oBnohoVTBaN7Lww==", - "license": "MIT", - "dependencies": { - "is-docker": "^2.0.0" - }, - "engines": { - "node": ">=8" - } - }, - "node_modules/isexe": { - "version": "2.0.0", - "resolved": "https://registry.npmjs.org/isexe/-/isexe-2.0.0.tgz", - "integrity": "sha512-RHxMLp9lnKHGHRng9QFhRCMbYAcVpn69smSGcq3f36xjgVVWThj4qqLbTLlq7Ssj8B+fIQ1EuCEGI2lKsyQeIw==", - "license": "ISC" - }, - "node_modules/jest-worker": { - "version": "27.5.1", - "resolved": "https://registry.npmjs.org/jest-worker/-/jest-worker-27.5.1.tgz", - "integrity": "sha512-7vuh85V5cdDofPyxn58nrPjBktZo0u9x1g8WtjQol+jZDaE+fhN+cIvTj11GndBnMnyfrUOG1sZQxCdjKh+DKg==", - "license": "MIT", - "dependencies": { - "@types/node": "*", - "merge-stream": "^2.0.0", - "supports-color": "^8.0.0" - }, - "engines": { - "node": ">= 10.13.0" - } - }, - "node_modules/json-parse-even-better-errors": { - "version": "2.3.1", - "resolved": "https://registry.npmjs.org/json-parse-even-better-errors/-/json-parse-even-better-errors-2.3.1.tgz", - "integrity": "sha512-xyFwyhro/JEof6Ghe2iz2NcXoj2sloNsWr/XsERDK/oiPCfaNhl5ONfp+jQdAZRQQ0IJWNzH9zIZF7li91kh2w==", - "license": "MIT" - }, - "node_modules/json-schema-traverse": { - "version": "1.0.0", - "resolved": "https://registry.npmjs.org/json-schema-traverse/-/json-schema-traverse-1.0.0.tgz", - "integrity": "sha512-NM8/P9n3XjXhIZn1lLhkFaACTOURQXjWhV4BA/RnOv8xvgqtqpAX9IO4mRQxSx1Rlo4tqzeqb0sOlruaOy3dug==", - "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==", - "license": "MIT", - "bin": { - "json5": "lib/cli.js" - }, - "engines": { - "node": ">=6" - } - }, - "node_modules/loader-runner": { - "version": "4.3.1", - "resolved": "https://registry.npmjs.org/loader-runner/-/loader-runner-4.3.1.tgz", - "integrity": "sha512-IWqP2SCPhyVFTBtRcgMHdzlf9ul25NwaFx4wCEH/KjAXuuHY4yNjvPXsBokp8jCB936PyWRaPKUNh8NvylLp2Q==", - "license": "MIT", - "engines": { - "node": ">=6.11.5" - }, - "funding": { - "type": "opencollective", - "url": "https://opencollective.com/webpack" - } - }, - "node_modules/loader-utils": { - "version": "2.0.4", - "resolved": "https://registry.npmjs.org/loader-utils/-/loader-utils-2.0.4.tgz", - "integrity": "sha512-xXqpXoINfFhgua9xiqD8fPFHgkoq1mmmpE92WlDbm9rNRd/EbRb+Gqf908T2DMfuHjjJlksiK2RbHVOdD/MqSw==", - "license": "MIT", - "dependencies": { - "big.js": "^5.2.2", - "emojis-list": "^3.0.0", - "json5": "^2.1.2" - }, - "engines": { - "node": ">=8.9.0" - } - }, - "node_modules/lodash.sortby": { - "version": "4.7.0", - "resolved": "https://registry.npmjs.org/lodash.sortby/-/lodash.sortby-4.7.0.tgz", - "integrity": "sha512-HDWXG8isMntAyRF5vZ7xKuEvOhT4AhlRt/3czTSjvGUxjYCBVRQY48ViDHyfYz9VIoBkW4TMGQNapx+l3RUwdA==", - "license": "MIT" - }, - "node_modules/lru-cache": { - "version": "6.0.0", - "resolved": "https://registry.npmjs.org/lru-cache/-/lru-cache-6.0.0.tgz", - "integrity": "sha512-Jo6dJ04CmSjuznwJSS3pUeWmd/H0ffTlkXXgwZi+eq1UCmqQwCh+eLsYOYCwY991i2Fah4h1BEMCx4qThGbsiA==", - "license": "ISC", - "dependencies": { - "yallist": "^4.0.0" - }, - "engines": { - "node": ">=10" - } - }, - "node_modules/math-intrinsics": { - "version": "1.1.0", - "resolved": "https://registry.npmjs.org/math-intrinsics/-/math-intrinsics-1.1.0.tgz", - "integrity": "sha512-/IXtbwEk5HTPyEwyKX6hGkYXxM9nbj64B+ilVJnC/R6B0pH5G4V3b0pVbL7DBj4tkhBAppbQUlf6F6Xl9LHu1g==", - "license": "MIT", - "engines": { - "node": ">= 0.4" - } - }, - "node_modules/media-typer": { - "version": "0.3.0", - "resolved": "https://registry.npmjs.org/media-typer/-/media-typer-0.3.0.tgz", - "integrity": "sha512-dq+qelQ9akHpcOl/gUVRTxVIOkAJ1wR3QAvb4RsVjS8oVoFjDGTc679wJYmUmknUF5HwMLOgb5O+a3KxfWapPQ==", - "license": "MIT", - "engines": { - "node": ">= 0.6" - } - }, - "node_modules/mediabunny": { - "version": "1.39.2", - "resolved": "https://registry.npmjs.org/mediabunny/-/mediabunny-1.39.2.tgz", - "integrity": "sha512-VcrisGRt+OI7tTPrziucJoCIPYIS/DEWY37TqzQVLWSUUHiyvsiRizEypQ3FOlhfIZ4ytAG/Mw4zxfetCTyKUg==", - "license": "MPL-2.0", - "workspaces": [ - "packages/*" - ], - "dependencies": { - "@types/dom-mediacapture-transform": "^0.1.11", - "@types/dom-webcodecs": "0.1.13" - }, - "funding": { - "type": "individual", - "url": "https://github.com/sponsors/Vanilagy" - } - }, - "node_modules/memfs": { - "version": "3.4.3", - "resolved": "https://registry.npmjs.org/memfs/-/memfs-3.4.3.tgz", - "integrity": "sha512-eivjfi7Ahr6eQTn44nvTnR60e4a1Fs1Via2kCR5lHo/kyNoiMWaXCNJ/GpSd0ilXas2JSOl9B5FTIhflXu0hlg==", - "license": "Unlicense", - "dependencies": { - "fs-monkey": "1.0.3" - }, - "engines": { - "node": ">= 4.0.0" - } - }, - "node_modules/merge-descriptors": { - "version": "1.0.3", - "resolved": "https://registry.npmjs.org/merge-descriptors/-/merge-descriptors-1.0.3.tgz", - "integrity": "sha512-gaNvAS7TZ897/rVaZ0nMtAyxNyi/pdbjbAwUpFQpN70GqnVfOiXpeUUMKRBmzXaSQ8DdTX4/0ms62r2K+hE6mQ==", - "license": "MIT", - "funding": { - "url": "https://github.com/sponsors/sindresorhus" - } - }, - "node_modules/merge-stream": { - "version": "2.0.0", - "resolved": "https://registry.npmjs.org/merge-stream/-/merge-stream-2.0.0.tgz", - "integrity": "sha512-abv/qOcuPfk3URPfDzmZU1LKmuw8kT+0nIHvKrKgFrwifol/doWcdA4ZqsWQ8ENrFKkd67Mfpo/LovbIUsbt3w==", - "license": "MIT" - }, - "node_modules/methods": { - "version": "1.1.2", - "resolved": "https://registry.npmjs.org/methods/-/methods-1.1.2.tgz", - "integrity": "sha512-iclAHeNqNm68zFtnZ0e+1L2yUIdvzNoauKU4WBA3VvH/vPFieF7qfRlwUZU+DA9P9bPXIS90ulxoUoCH23sV2w==", - "license": "MIT", - "engines": { - "node": ">= 0.6" - } - }, - "node_modules/mime": { - "version": "1.6.0", - "resolved": "https://registry.npmjs.org/mime/-/mime-1.6.0.tgz", - "integrity": "sha512-x0Vn8spI+wuJ1O6S7gnbaQg8Pxh4NNHb7KSINmEWKiPE4RKOplvijn+NkmYmmRgP68mc70j2EbeTFRsrswaQeg==", - "license": "MIT", - "bin": { - "mime": "cli.js" - }, - "engines": { - "node": ">=4" - } - }, - "node_modules/mime-db": { - "version": "1.52.0", - "resolved": "https://registry.npmjs.org/mime-db/-/mime-db-1.52.0.tgz", - "integrity": "sha512-sPU4uV7dYlvtWJxwwxHD0PuihVNiE7TyAbQ5SWxDCB9mUYvOgroQOwYQQOKPJ8CIbE+1ETVlOoK1UC2nU3gYvg==", - "license": "MIT", - "engines": { - "node": ">= 0.6" - } - }, - "node_modules/mime-types": { - "version": "2.1.35", - "resolved": "https://registry.npmjs.org/mime-types/-/mime-types-2.1.35.tgz", - "integrity": "sha512-ZDY+bPm5zTTF+YpCrAU9nK0UgICYPT0QtT1NZWFv4s++TNkcgVaT0g6+4R2uI4MjQjzysHB1zxuWL50hzaeXiw==", - "license": "MIT", - "dependencies": { - "mime-db": "1.52.0" - }, - "engines": { - "node": ">= 0.6" - } - }, - "node_modules/mimic-fn": { - "version": "2.1.0", - "resolved": "https://registry.npmjs.org/mimic-fn/-/mimic-fn-2.1.0.tgz", - "integrity": "sha512-OqbOk5oEQeAZ8WXWydlu9HJjz9WVdEIvamMCcXmuqUYjTknH/sqsWvhQ3vgwKFRR1HpjvNBKQ37nbJgYzGqGcg==", - "license": "MIT", - "engines": { - "node": ">=6" - } - }, - "node_modules/ms": { - "version": "2.0.0", - "resolved": "https://registry.npmjs.org/ms/-/ms-2.0.0.tgz", - "integrity": "sha512-Tpp60P6IUJDTuOq/5Z8cdskzJujfwqfOTkrwIwj7IRISpnkJnT6SyJ4PCPnGMoFjC9ddhal5KVIYtAt97ix05A==", - "license": "MIT" - }, - "node_modules/nanoid": { - "version": "3.3.11", - "resolved": "https://registry.npmjs.org/nanoid/-/nanoid-3.3.11.tgz", - "integrity": "sha512-N8SpfPUnUp1bK+PMYW8qSWdl9U+wwNWI4QKxOYDy9JAro3WMX7p2OeVRF9v+347pnakNevPmiHhNmZ2HbFA76w==", - "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/negotiator": { - "version": "0.6.3", - "resolved": "https://registry.npmjs.org/negotiator/-/negotiator-0.6.3.tgz", - "integrity": "sha512-+EUsqGPLsM+j/zdChZjsnX51g4XrHFOIXwfnCVPGlQk/k5giakcKsuxCObBRu6DSm9opw/O6slWbJdghQM4bBg==", - "license": "MIT", - "engines": { - "node": ">= 0.6" - } - }, - "node_modules/neo-async": { - "version": "2.6.2", - "resolved": "https://registry.npmjs.org/neo-async/-/neo-async-2.6.2.tgz", - "integrity": "sha512-Yd3UES5mWCSqR+qNT93S3UoYUkqAZ9lLg8a7g9rimsWmYGK8cVToA4/sF3RrshdyV3sAGMXVUmpMYOw+dLpOuw==", - "license": "MIT" - }, - "node_modules/node-releases": { - "version": "2.0.37", - "resolved": "https://registry.npmjs.org/node-releases/-/node-releases-2.0.37.tgz", - "integrity": "sha512-1h5gKZCF+pO/o3Iqt5Jp7wc9rH3eJJ0+nh/CIoiRwjRxde/hAHyLPXYN4V3CqKAbiZPSeJFSWHmJsbkicta0Eg==", - "license": "MIT" - }, - "node_modules/npm-run-path": { - "version": "4.0.1", - "resolved": "https://registry.npmjs.org/npm-run-path/-/npm-run-path-4.0.1.tgz", - "integrity": "sha512-S48WzZW777zhNIrn7gxOlISNAqi9ZC/uQFnRdbeIHhZhCA6UqpkOT8T1G7BvfdgP4Er8gF4sUbaS0i7QvIfCWw==", - "license": "MIT", - "dependencies": { - "path-key": "^3.0.0" - }, - "engines": { - "node": ">=8" - } - }, - "node_modules/object-inspect": { - "version": "1.13.4", - "resolved": "https://registry.npmjs.org/object-inspect/-/object-inspect-1.13.4.tgz", - "integrity": "sha512-W67iLl4J2EXEGTbfeHCffrjDfitvLANg0UlX3wFUUSTx92KXRFegMHUVgSqE+wvhAbi4WqjGg9czysTV2Epbew==", - "license": "MIT", - "engines": { - "node": ">= 0.4" - }, - "funding": { - "url": "https://github.com/sponsors/ljharb" - } - }, - "node_modules/on-finished": { - "version": "2.4.1", - "resolved": "https://registry.npmjs.org/on-finished/-/on-finished-2.4.1.tgz", - "integrity": "sha512-oVlzkg3ENAhCk2zdv7IJwd/QUD4z2RxRwpkcGY8psCVcCYZNq4wYnVWALHM+brtuJjePWiYF/ClmuDr8Ch5+kg==", - "license": "MIT", - "dependencies": { - "ee-first": "1.1.1" - }, - "engines": { - "node": ">= 0.8" - } - }, - "node_modules/once": { - "version": "1.4.0", - "resolved": "https://registry.npmjs.org/once/-/once-1.4.0.tgz", - "integrity": "sha512-lNaJgI+2Q5URQBkccEKHTQOPaXdUxnZZElQTZY0MFUAuaEqe1E+Nyvgdz/aIyNi6Z9MzO5dv1H8n58/GELp3+w==", - "license": "ISC", - "dependencies": { - "wrappy": "1" - } - }, - "node_modules/onetime": { - "version": "5.1.2", - "resolved": "https://registry.npmjs.org/onetime/-/onetime-5.1.2.tgz", - "integrity": "sha512-kbpaSSGJTWdAY5KPVeMOKXSrPtr8C8C7wodJbcsd51jRnmD+GZu8Y0VoU6Dm5Z4vWr0Ig/1NKuWRKf7j5aaYSg==", - "license": "MIT", - "dependencies": { - "mimic-fn": "^2.1.0" - }, - "engines": { - "node": ">=6" - }, - "funding": { - "url": "https://github.com/sponsors/sindresorhus" - } - }, - "node_modules/open": { - "version": "8.4.2", - "resolved": "https://registry.npmjs.org/open/-/open-8.4.2.tgz", - "integrity": "sha512-7x81NCL719oNbsq/3mh+hVrAWmFuEYUqrq/Iw3kUzH8ReypT9QQ0BLoJS7/G9k6N81XjW4qHWtjWwe/9eLy1EQ==", - "license": "MIT", - "dependencies": { - "define-lazy-prop": "^2.0.0", - "is-docker": "^2.1.1", - "is-wsl": "^2.2.0" - }, - "engines": { - "node": ">=12" - }, - "funding": { - "url": "https://github.com/sponsors/sindresorhus" - } - }, - "node_modules/parseurl": { - "version": "1.3.3", - "resolved": "https://registry.npmjs.org/parseurl/-/parseurl-1.3.3.tgz", - "integrity": "sha512-CiyeOxFT/JZyN5m0z9PfXw4SCBJ6Sygz1Dpl0wqjlhDEGGBP1GnsUVEL0p63hoG1fcj3fHynXi9NYO4nWOL+qQ==", - "license": "MIT", - "engines": { - "node": ">= 0.8" - } - }, - "node_modules/path-key": { - "version": "3.1.1", - "resolved": "https://registry.npmjs.org/path-key/-/path-key-3.1.1.tgz", - "integrity": "sha512-ojmeN0qd+y0jszEtoY48r0Peq5dwMEkIlCOu6Q5f41lfkswXuKtYrhgoTpLnyIcHm24Uhqx+5Tqm2InSwLhE6Q==", - "license": "MIT", - "engines": { - "node": ">=8" - } - }, - "node_modules/path-to-regexp": { - "version": "0.1.13", - "resolved": "https://registry.npmjs.org/path-to-regexp/-/path-to-regexp-0.1.13.tgz", - "integrity": "sha512-A/AGNMFN3c8bOlvV9RreMdrv7jsmF9XIfDeCd87+I8RNg6s78BhJxMu69NEMHBSJFxKidViTEdruRwEk/WIKqA==", - "license": "MIT" - }, - "node_modules/pend": { - "version": "1.2.0", - "resolved": "https://registry.npmjs.org/pend/-/pend-1.2.0.tgz", - "integrity": "sha512-F3asv42UuXchdzt+xXqfW1OGlVBe+mxa2mqI0pg5yAHZPvFmY3Y6drSf/GQ1A86WgWEN9Kzh/WrgKa6iGcHXLg==", - "license": "MIT" - }, - "node_modules/picocolors": { - "version": "1.1.1", - "resolved": "https://registry.npmjs.org/picocolors/-/picocolors-1.1.1.tgz", - "integrity": "sha512-xceH2snhtb5M9liqDsmEw56le376mTZkEX/jEb/RxNFyegNul7eNslCXP9FDj/Lcu0X8KEyMceP2ntpaHrDEVA==", - "license": "ISC" - }, - "node_modules/postcss": { - "version": "8.5.1", - "resolved": "https://registry.npmjs.org/postcss/-/postcss-8.5.1.tgz", - "integrity": "sha512-6oz2beyjc5VMn/KV1pPw8fliQkhBXrVn1Z3TVyqZxU8kZpzEKhBdmCFqI6ZbmGtamQvQGuU1sgPTk8ZrXDD7jQ==", - "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.8", - "picocolors": "^1.1.1", - "source-map-js": "^1.2.1" - }, - "engines": { - "node": "^10 || ^12 || >=14" - } - }, - "node_modules/postcss-value-parser": { - "version": "4.2.0", - "resolved": "https://registry.npmjs.org/postcss-value-parser/-/postcss-value-parser-4.2.0.tgz", - "integrity": "sha512-1NNCs6uurfkVbeXG4S8JFT9t19m45ICnif8zWLd5oPSZ50QnwMfK+H3jv408d4jw/7Bttv5axS5IiHoLaVNHeQ==", - "license": "MIT" - }, - "node_modules/proxy-addr": { - "version": "2.0.7", - "resolved": "https://registry.npmjs.org/proxy-addr/-/proxy-addr-2.0.7.tgz", - "integrity": "sha512-llQsMLSUDUPT44jdrU/O37qlnifitDP+ZwrmmZcoSKyLKvtZxpyV0n2/bD/N4tBAAZ/gJEdZU7KMraoK1+XYAg==", - "license": "MIT", - "dependencies": { - "forwarded": "0.2.0", - "ipaddr.js": "1.9.1" - }, - "engines": { - "node": ">= 0.10" - } - }, - "node_modules/pump": { - "version": "3.0.4", - "resolved": "https://registry.npmjs.org/pump/-/pump-3.0.4.tgz", - "integrity": "sha512-VS7sjc6KR7e1ukRFhQSY5LM2uBWAUPiOPa/A3mkKmiMwSmRFUITt0xuj+/lesgnCv+dPIEYlkzrcyXgquIHMcA==", - "license": "MIT", - "dependencies": { - "end-of-stream": "^1.1.0", - "once": "^1.3.1" - } - }, - "node_modules/punycode": { - "version": "2.3.1", - "resolved": "https://registry.npmjs.org/punycode/-/punycode-2.3.1.tgz", - "integrity": "sha512-vYt7UD1U9Wg6138shLtLOvdAu+8DsC/ilFtEVHcH+wydcSpNE20AfSOduf6MkRFahL5FY7X1oU7nKVZFtfq8Fg==", - "license": "MIT", - "engines": { - "node": ">=6" - } - }, - "node_modules/qs": { - "version": "6.14.2", - "resolved": "https://registry.npmjs.org/qs/-/qs-6.14.2.tgz", - "integrity": "sha512-V/yCWTTF7VJ9hIh18Ugr2zhJMP01MY7c5kh4J870L7imm6/DIzBsNLTXzMwUA3yZ5b/KBqLx8Kp3uRvd7xSe3Q==", - "license": "BSD-3-Clause", - "dependencies": { - "side-channel": "^1.1.0" - }, - "engines": { - "node": ">=0.6" - }, - "funding": { - "url": "https://github.com/sponsors/ljharb" - } - }, - "node_modules/range-parser": { - "version": "1.2.1", - "resolved": "https://registry.npmjs.org/range-parser/-/range-parser-1.2.1.tgz", - "integrity": "sha512-Hrgsx+orqoygnmhFbKaHE6c296J+HTAQXoxEF6gNupROmmGJRoyzfG3ccAveqCBrwr/2yxQ5BVd/GTl5agOwSg==", - "license": "MIT", - "engines": { - "node": ">= 0.6" - } - }, - "node_modules/raw-body": { - "version": "2.5.3", - "resolved": "https://registry.npmjs.org/raw-body/-/raw-body-2.5.3.tgz", - "integrity": "sha512-s4VSOf6yN0rvbRZGxs8Om5CWj6seneMwK3oDb4lWDH0UPhWcxwOWw5+qk24bxq87szX1ydrwylIOp2uG1ojUpA==", - "license": "MIT", - "dependencies": { - "bytes": "~3.1.2", - "http-errors": "~2.0.1", - "iconv-lite": "~0.4.24", - "unpipe": "~1.0.0" - }, - "engines": { - "node": ">= 0.8" - } - }, - "node_modules/react": { - "version": "19.2.4", - "resolved": "https://registry.npmjs.org/react/-/react-19.2.4.tgz", - "integrity": "sha512-9nfp2hYpCwOjAN+8TZFGhtWEwgvWHXqESH8qT89AT/lWklpLON22Lc8pEtnpsZz7VmawabSU0gCjnj8aC0euHQ==", - "license": "MIT", - "peer": true, - "engines": { - "node": ">=0.10.0" - } - }, - "node_modules/react-dom": { - "version": "19.2.4", - "resolved": "https://registry.npmjs.org/react-dom/-/react-dom-19.2.4.tgz", - "integrity": "sha512-AXJdLo8kgMbimY95O2aKQqsz2iWi9jMgKJhRBAxECE4IFxfcazB2LmzloIoibJI3C12IlY20+KFaLv+71bUJeQ==", - "license": "MIT", - "peer": true, - "dependencies": { - "scheduler": "^0.27.0" - }, - "peerDependencies": { - "react": "^19.2.4" - } - }, - "node_modules/react-refresh": { - "version": "0.18.0", - "resolved": "https://registry.npmjs.org/react-refresh/-/react-refresh-0.18.0.tgz", - "integrity": "sha512-QgT5//D3jfjJb6Gsjxv0Slpj23ip+HtOpnNgnb2S5zU3CB26G/IDPGoy4RJB42wzFE46DRsstbW6tKHoKbhAxw==", - "license": "MIT", - "engines": { - "node": ">=0.10.0" - } - }, - "node_modules/remotion": { - "version": "4.0.446", - "resolved": "https://registry.npmjs.org/remotion/-/remotion-4.0.446.tgz", - "integrity": "sha512-NkE0d1APetJywF6MJJXE1dlMDXKhQWtlJV3HUfVBd7QUKPmoA3nhFBJaIsCyl/Rve2bmnq8h+yBjAU/skXezcA==", - "license": "SEE LICENSE IN LICENSE.md", - "peerDependencies": { - "react": ">=16.8.0", - "react-dom": ">=16.8.0" - } - }, - "node_modules/require-from-string": { - "version": "2.0.2", - "resolved": "https://registry.npmjs.org/require-from-string/-/require-from-string-2.0.2.tgz", - "integrity": "sha512-Xf0nWe6RseziFMu+Ap9biiUbmplq6S9/p+7w7YXP/JBHhrUDDUhwa+vANyubuqfZWTveU//DYVGsDG7RKL/vEw==", - "license": "MIT", - "engines": { - "node": ">=0.10.0" - } - }, - "node_modules/resolve-pkg-maps": { - "version": "1.0.0", - "resolved": "https://registry.npmjs.org/resolve-pkg-maps/-/resolve-pkg-maps-1.0.0.tgz", - "integrity": "sha512-seS2Tj26TBVOC2NIc2rOe2y2ZO7efxITtLZcGSOnHHNOQ7CkiUBfw0Iw2ck6xkIhPwLhKNLS8BO+hEpngQlqzw==", - "dev": true, - "license": "MIT", - "funding": { - "url": "https://github.com/privatenumber/resolve-pkg-maps?sponsor=1" - } - }, - "node_modules/safe-buffer": { - "version": "5.2.1", - "resolved": "https://registry.npmjs.org/safe-buffer/-/safe-buffer-5.2.1.tgz", - "integrity": "sha512-rp3So07KcdmmKbGvgaNxQSJr7bGVSVk5S9Eq1F+ppbRo70+YeaDxkw5Dd8NPN+GD6bjnYm2VuPuCXmpuYvmCXQ==", - "funding": [ - { - "type": "github", - "url": "https://github.com/sponsors/feross" - }, - { - "type": "patreon", - "url": "https://www.patreon.com/feross" - }, - { - "type": "consulting", - "url": "https://feross.org/support" - } - ], - "license": "MIT" - }, - "node_modules/safer-buffer": { - "version": "2.1.2", - "resolved": "https://registry.npmjs.org/safer-buffer/-/safer-buffer-2.1.2.tgz", - "integrity": "sha512-YZo3K82SD7Riyi0E1EQPojLz7kpepnSQI9IyPbHHg1XXXevb5dJI7tpyN2ADxGcQbHG7vcyRHk0cbwqcQriUtg==", - "license": "MIT" - }, - "node_modules/scheduler": { - "version": "0.27.0", - "resolved": "https://registry.npmjs.org/scheduler/-/scheduler-0.27.0.tgz", - "integrity": "sha512-eNv+WrVbKu1f3vbYJT/xtiF5syA5HPIMtf9IgY/nKg0sWqzAUEvqY/xm7OcZc/qafLx/iO9FgOmeSAp4v5ti/Q==", - "license": "MIT", - "peer": true - }, - "node_modules/schema-utils": { - "version": "4.3.3", - "resolved": "https://registry.npmjs.org/schema-utils/-/schema-utils-4.3.3.tgz", - "integrity": "sha512-eflK8wEtyOE6+hsaRVPxvUKYCpRgzLqDTb8krvAsRIwOGlHoSgYLgBXoubGgLd2fT41/OUYdb48v4k4WWHQurA==", - "license": "MIT", - "dependencies": { - "@types/json-schema": "^7.0.9", - "ajv": "^8.9.0", - "ajv-formats": "^2.1.1", - "ajv-keywords": "^5.1.0" - }, - "engines": { - "node": ">= 10.13.0" - }, - "funding": { - "type": "opencollective", - "url": "https://opencollective.com/webpack" - } - }, - "node_modules/semver": { - "version": "7.5.3", - "resolved": "https://registry.npmjs.org/semver/-/semver-7.5.3.tgz", - "integrity": "sha512-QBlUtyVk/5EeHbi7X0fw6liDZc7BBmEaSYn01fMU1OUYbf6GPsbTtd8WmnqbI20SeycoHSeiybkE/q1Q+qlThQ==", - "license": "ISC", - "dependencies": { - "lru-cache": "^6.0.0" - }, - "bin": { - "semver": "bin/semver.js" - }, - "engines": { - "node": ">=10" - } - }, - "node_modules/send": { - "version": "0.19.2", - "resolved": "https://registry.npmjs.org/send/-/send-0.19.2.tgz", - "integrity": "sha512-VMbMxbDeehAxpOtWJXlcUS5E8iXh6QmN+BkRX1GARS3wRaXEEgzCcB10gTQazO42tpNIya8xIyNx8fll1OFPrg==", - "license": "MIT", - "dependencies": { - "debug": "2.6.9", - "depd": "2.0.0", - "destroy": "1.2.0", - "encodeurl": "~2.0.0", - "escape-html": "~1.0.3", - "etag": "~1.8.1", - "fresh": "~0.5.2", - "http-errors": "~2.0.1", - "mime": "1.6.0", - "ms": "2.1.3", - "on-finished": "~2.4.1", - "range-parser": "~1.2.1", - "statuses": "~2.0.2" - }, - "engines": { - "node": ">= 0.8.0" - } - }, - "node_modules/send/node_modules/ms": { - "version": "2.1.3", - "resolved": "https://registry.npmjs.org/ms/-/ms-2.1.3.tgz", - "integrity": "sha512-6FlzubTLZG3J2a/NVCAleEhjzq5oxgHyaCU9yYXvcLsvoVaHJq/s5xXI6/XXP6tz7R9xAOtHnSO/tXtF3WRTlA==", - "license": "MIT" - }, - "node_modules/serve-static": { - "version": "1.16.3", - "resolved": "https://registry.npmjs.org/serve-static/-/serve-static-1.16.3.tgz", - "integrity": "sha512-x0RTqQel6g5SY7Lg6ZreMmsOzncHFU7nhnRWkKgWuMTu5NN0DR5oruckMqRvacAN9d5w6ARnRBXl9xhDCgfMeA==", - "license": "MIT", - "dependencies": { - "encodeurl": "~2.0.0", - "escape-html": "~1.0.3", - "parseurl": "~1.3.3", - "send": "~0.19.1" - }, - "engines": { - "node": ">= 0.8.0" - } - }, - "node_modules/setprototypeof": { - "version": "1.2.0", - "resolved": "https://registry.npmjs.org/setprototypeof/-/setprototypeof-1.2.0.tgz", - "integrity": "sha512-E5LDX7Wrp85Kil5bhZv46j8jOeboKq5JMmYM3gVGdGH8xFpPWXUMsNrlODCrkoxMEeNi/XZIwuRvY4XNwYMJpw==", - "license": "ISC" - }, - "node_modules/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==", - "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==", - "license": "MIT", - "engines": { - "node": ">=8" - } - }, - "node_modules/side-channel": { - "version": "1.1.0", - "resolved": "https://registry.npmjs.org/side-channel/-/side-channel-1.1.0.tgz", - "integrity": "sha512-ZX99e6tRweoUXqR+VBrslhda51Nh5MTQwou5tnUDgbtyM0dBgmhEDtWGP/xbKn6hqfPRHujUNwz5fy/wbbhnpw==", - "license": "MIT", - "dependencies": { - "es-errors": "^1.3.0", - "object-inspect": "^1.13.3", - "side-channel-list": "^1.0.0", - "side-channel-map": "^1.0.1", - "side-channel-weakmap": "^1.0.2" - }, - "engines": { - "node": ">= 0.4" - }, - "funding": { - "url": "https://github.com/sponsors/ljharb" - } - }, - "node_modules/side-channel-list": { - "version": "1.0.0", - "resolved": "https://registry.npmjs.org/side-channel-list/-/side-channel-list-1.0.0.tgz", - "integrity": "sha512-FCLHtRD/gnpCiCHEiJLOwdmFP+wzCmDEkc9y7NsYxeF4u7Btsn1ZuwgwJGxImImHicJArLP4R0yX4c2KCrMrTA==", - "license": "MIT", - "dependencies": { - "es-errors": "^1.3.0", - "object-inspect": "^1.13.3" - }, - "engines": { - "node": ">= 0.4" - }, - "funding": { - "url": "https://github.com/sponsors/ljharb" - } - }, - "node_modules/side-channel-map": { - "version": "1.0.1", - "resolved": "https://registry.npmjs.org/side-channel-map/-/side-channel-map-1.0.1.tgz", - "integrity": "sha512-VCjCNfgMsby3tTdo02nbjtM/ewra6jPHmpThenkTYh8pG9ucZ/1P8So4u4FGBek/BjpOVsDCMoLA/iuBKIFXRA==", - "license": "MIT", - "dependencies": { - "call-bound": "^1.0.2", - "es-errors": "^1.3.0", - "get-intrinsic": "^1.2.5", - "object-inspect": "^1.13.3" - }, - "engines": { - "node": ">= 0.4" - }, - "funding": { - "url": "https://github.com/sponsors/ljharb" - } - }, - "node_modules/side-channel-weakmap": { - "version": "1.0.2", - "resolved": "https://registry.npmjs.org/side-channel-weakmap/-/side-channel-weakmap-1.0.2.tgz", - "integrity": "sha512-WPS/HvHQTYnHisLo9McqBHOJk2FkHO/tlpvldyrnem4aeQp4hai3gythswg6p01oSoTl58rcpiFAjF2br2Ak2A==", - "license": "MIT", - "dependencies": { - "call-bound": "^1.0.2", - "es-errors": "^1.3.0", - "get-intrinsic": "^1.2.5", - "object-inspect": "^1.13.3", - "side-channel-map": "^1.0.1" - }, - "engines": { - "node": ">= 0.4" - }, - "funding": { - "url": "https://github.com/sponsors/ljharb" - } - }, - "node_modules/signal-exit": { - "version": "3.0.7", - "resolved": "https://registry.npmjs.org/signal-exit/-/signal-exit-3.0.7.tgz", - "integrity": "sha512-wnD2ZE+l+SPC/uoS0vXeE9L1+0wuaMqKlfz9AMUo38JsyLSBWSFcHR1Rri62LZc12vLr1gb3jl7iwQhgwpAbGQ==", - "license": "ISC" - }, - "node_modules/source-map": { - "version": "0.7.3", - "resolved": "https://registry.npmjs.org/source-map/-/source-map-0.7.3.tgz", - "integrity": "sha512-CkCj6giN3S+n9qrYiBTX5gystlENnRW5jZeNLHpe6aue+SrHcG5VYwujhW9s4dY31mEGsxBDrHR6oI69fTXsaQ==", - "license": "BSD-3-Clause", - "engines": { - "node": ">= 8" - } - }, - "node_modules/source-map-js": { - "version": "1.2.1", - "resolved": "https://registry.npmjs.org/source-map-js/-/source-map-js-1.2.1.tgz", - "integrity": "sha512-UXWMKhLOwVKb728IUtQPXxfYU+usdybtUrK/8uGE8CQMvrhOpwvzDBwj0QhSL7MQc7vIsISBG8VQ8+IDQxpfQA==", - "license": "BSD-3-Clause", - "engines": { - "node": ">=0.10.0" - } - }, - "node_modules/source-map-support": { - "version": "0.5.21", - "resolved": "https://registry.npmjs.org/source-map-support/-/source-map-support-0.5.21.tgz", - "integrity": "sha512-uBHU3L3czsIyYXKX88fdrGovxdSCoTGDRZ6SYXtSRxLZUzHg5P/66Ht6uoUlHu9EZod+inXhKo3qQgwXUT/y1w==", - "license": "MIT", - "dependencies": { - "buffer-from": "^1.0.0", - "source-map": "^0.6.0" - } - }, - "node_modules/source-map-support/node_modules/source-map": { - "version": "0.6.1", - "resolved": "https://registry.npmjs.org/source-map/-/source-map-0.6.1.tgz", - "integrity": "sha512-UjgapumWlbMhkBgzT7Ykc5YXUT46F0iKu8SGXq0bcwP5dz/h0Plj6enJqjz1Zbq2l5WaqYnrVbwWOWMyF3F47g==", - "license": "BSD-3-Clause", - "engines": { - "node": ">=0.10.0" - } - }, - "node_modules/stackframe": { - "version": "1.3.4", - "resolved": "https://registry.npmjs.org/stackframe/-/stackframe-1.3.4.tgz", - "integrity": "sha512-oeVtt7eWQS+Na6F//S4kJ2K2VbRlS9D43mAlMyVpVWovy9o+jfgH8O9agzANzaiLjclA0oYzUXEM4PurhSUChw==", - "license": "MIT" - }, - "node_modules/statuses": { - "version": "2.0.2", - "resolved": "https://registry.npmjs.org/statuses/-/statuses-2.0.2.tgz", - "integrity": "sha512-DvEy55V3DB7uknRo+4iOGT5fP1slR8wQohVdknigZPMpMstaKJQWhwiYBACJE3Ul2pTnATihhBYnRhZQHGBiRw==", - "license": "MIT", - "engines": { - "node": ">= 0.8" - } - }, - "node_modules/strip-final-newline": { - "version": "2.0.0", - "resolved": "https://registry.npmjs.org/strip-final-newline/-/strip-final-newline-2.0.0.tgz", - "integrity": "sha512-BrpvfNAE3dcvq7ll3xVumzjKjZQ5tI1sEUIKr3Uoks0XUl45St3FlatVqef9prk4jRDzhW6WZg+3bk93y6pLjA==", - "license": "MIT", - "engines": { - "node": ">=6" - } - }, - "node_modules/style-loader": { - "version": "4.0.0", - "resolved": "https://registry.npmjs.org/style-loader/-/style-loader-4.0.0.tgz", - "integrity": "sha512-1V4WqhhZZgjVAVJyt7TdDPZoPBPNHbekX4fWnCJL1yQukhCeZhJySUL+gL9y6sNdN95uEOS83Y55SqHcP7MzLA==", - "license": "MIT", - "engines": { - "node": ">= 18.12.0" - }, - "funding": { - "type": "opencollective", - "url": "https://opencollective.com/webpack" - }, - "peerDependencies": { - "webpack": "^5.27.0" - } - }, - "node_modules/supports-color": { - "version": "8.1.1", - "resolved": "https://registry.npmjs.org/supports-color/-/supports-color-8.1.1.tgz", - "integrity": "sha512-MpUEN2OodtUzxvKQl72cUF7RQ5EiHsGvSsVG0ia9c5RbWGL2CI4C7EpPS8UTBIplnlzZiNuV56w+FuNxy3ty2Q==", - "license": "MIT", - "dependencies": { - "has-flag": "^4.0.0" - }, - "engines": { - "node": ">=10" - }, - "funding": { - "url": "https://github.com/chalk/supports-color?sponsor=1" - } - }, - "node_modules/tapable": { - "version": "2.3.2", - "resolved": "https://registry.npmjs.org/tapable/-/tapable-2.3.2.tgz", - "integrity": "sha512-1MOpMXuhGzGL5TTCZFItxCc0AARf1EZFQkGqMm7ERKj8+Hgr5oLvJOVFcC+lRmR8hCe2S3jC4T5D7Vg/d7/fhA==", - "license": "MIT", - "engines": { - "node": ">=6" - }, - "funding": { - "type": "opencollective", - "url": "https://opencollective.com/webpack" - } - }, - "node_modules/terser": { - "version": "5.46.1", - "resolved": "https://registry.npmjs.org/terser/-/terser-5.46.1.tgz", - "integrity": "sha512-vzCjQO/rgUuK9sf8VJZvjqiqiHFaZLnOiimmUuOKODxWL8mm/xua7viT7aqX7dgPY60otQjUotzFMmCB4VdmqQ==", - "license": "BSD-2-Clause", - "dependencies": { - "@jridgewell/source-map": "^0.3.3", - "acorn": "^8.15.0", - "commander": "^2.20.0", - "source-map-support": "~0.5.20" - }, - "bin": { - "terser": "bin/terser" - }, - "engines": { - "node": ">=10" - } - }, - "node_modules/terser-webpack-plugin": { - "version": "5.4.0", - "resolved": "https://registry.npmjs.org/terser-webpack-plugin/-/terser-webpack-plugin-5.4.0.tgz", - "integrity": "sha512-Bn5vxm48flOIfkdl5CaD2+1CiUVbonWQ3KQPyP7/EuIl9Gbzq/gQFOzaMFUEgVjB1396tcK0SG8XcNJ/2kDH8g==", - "license": "MIT", - "dependencies": { - "@jridgewell/trace-mapping": "^0.3.25", - "jest-worker": "^27.4.5", - "schema-utils": "^4.3.0", - "terser": "^5.31.1" - }, - "engines": { - "node": ">= 10.13.0" - }, - "funding": { - "type": "opencollective", - "url": "https://opencollective.com/webpack" - }, - "peerDependencies": { - "webpack": "^5.1.0" - }, - "peerDependenciesMeta": { - "@swc/core": { - "optional": true - }, - "esbuild": { - "optional": true - }, - "uglify-js": { - "optional": true - } - } - }, - "node_modules/toidentifier": { - "version": "1.0.1", - "resolved": "https://registry.npmjs.org/toidentifier/-/toidentifier-1.0.1.tgz", - "integrity": "sha512-o5sSPKEkg/DIQNmH43V0/uerLrpzVedkUh8tGNvaeXpfpuwjKenlSox/2O/BTlZUtEe+JG7s5YhEz608PlAHRA==", - "license": "MIT", - "engines": { - "node": ">=0.6" - } - }, - "node_modules/tr46": { - "version": "1.0.1", - "resolved": "https://registry.npmjs.org/tr46/-/tr46-1.0.1.tgz", - "integrity": "sha512-dTpowEjclQ7Kgx5SdBkqRzVhERQXov8/l9Ft9dVM9fmg0W0KQSVaXX9T4i6twCPNtYiZM53lpSSUAwJbFPOHxA==", - "license": "MIT", - "dependencies": { - "punycode": "^2.1.0" - } - }, - "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", - "optional": true - }, - "node_modules/tsx": { - "version": "4.21.0", - "resolved": "https://registry.npmjs.org/tsx/-/tsx-4.21.0.tgz", - "integrity": "sha512-5C1sg4USs1lfG0GFb2RLXsdpXqBSEhAaA/0kPL01wxzpMqLILNxIxIOKiILz+cdg/pLnOUxFYOR5yhHU666wbw==", - "dev": true, - "license": "MIT", - "dependencies": { - "esbuild": "~0.27.0", - "get-tsconfig": "^4.7.5" - }, - "bin": { - "tsx": "dist/cli.mjs" - }, - "engines": { - "node": ">=18.0.0" - }, - "optionalDependencies": { - "fsevents": "~2.3.3" - } - }, - "node_modules/tsx/node_modules/@esbuild/aix-ppc64": { - "version": "0.27.7", - "resolved": "https://registry.npmjs.org/@esbuild/aix-ppc64/-/aix-ppc64-0.27.7.tgz", - "integrity": "sha512-EKX3Qwmhz1eMdEJokhALr0YiD0lhQNwDqkPYyPhiSwKrh7/4KRjQc04sZ8db+5DVVnZ1LmbNDI1uAMPEUBnQPg==", - "cpu": [ - "ppc64" - ], - "dev": true, - "license": "MIT", - "optional": true, - "os": [ - "aix" - ], - "engines": { - "node": ">=18" - } - }, - "node_modules/tsx/node_modules/@esbuild/android-arm": { - "version": "0.27.7", - "resolved": "https://registry.npmjs.org/@esbuild/android-arm/-/android-arm-0.27.7.tgz", - "integrity": "sha512-jbPXvB4Yj2yBV7HUfE2KHe4GJX51QplCN1pGbYjvsyCZbQmies29EoJbkEc+vYuU5o45AfQn37vZlyXy4YJ8RQ==", - "cpu": [ - "arm" - ], - "dev": true, - "license": "MIT", - "optional": true, - "os": [ - "android" - ], - "engines": { - "node": ">=18" - } - }, - "node_modules/tsx/node_modules/@esbuild/android-arm64": { - "version": "0.27.7", - "resolved": "https://registry.npmjs.org/@esbuild/android-arm64/-/android-arm64-0.27.7.tgz", - "integrity": "sha512-62dPZHpIXzvChfvfLJow3q5dDtiNMkwiRzPylSCfriLvZeq0a1bWChrGx/BbUbPwOrsWKMn8idSllklzBy+dgQ==", - "cpu": [ - "arm64" - ], - "dev": true, - "license": "MIT", - "optional": true, - "os": [ - "android" - ], - "engines": { - "node": ">=18" - } - }, - "node_modules/tsx/node_modules/@esbuild/android-x64": { - "version": "0.27.7", - "resolved": "https://registry.npmjs.org/@esbuild/android-x64/-/android-x64-0.27.7.tgz", - "integrity": "sha512-x5VpMODneVDb70PYV2VQOmIUUiBtY3D3mPBG8NxVk5CogneYhkR7MmM3yR/uMdITLrC1ml/NV1rj4bMJuy9MCg==", - "cpu": [ - "x64" - ], - "dev": true, - "license": "MIT", - "optional": true, - "os": [ - "android" - ], - "engines": { - "node": ">=18" - } - }, - "node_modules/tsx/node_modules/@esbuild/darwin-arm64": { - "version": "0.27.7", - "resolved": "https://registry.npmjs.org/@esbuild/darwin-arm64/-/darwin-arm64-0.27.7.tgz", - "integrity": "sha512-5lckdqeuBPlKUwvoCXIgI2D9/ABmPq3Rdp7IfL70393YgaASt7tbju3Ac+ePVi3KDH6N2RqePfHnXkaDtY9fkw==", - "cpu": [ - "arm64" - ], - "dev": true, - "license": "MIT", - "optional": true, - "os": [ - "darwin" - ], - "engines": { - "node": ">=18" - } - }, - "node_modules/tsx/node_modules/@esbuild/darwin-x64": { - "version": "0.27.7", - "resolved": "https://registry.npmjs.org/@esbuild/darwin-x64/-/darwin-x64-0.27.7.tgz", - "integrity": "sha512-rYnXrKcXuT7Z+WL5K980jVFdvVKhCHhUwid+dDYQpH+qu+TefcomiMAJpIiC2EM3Rjtq0sO3StMV/+3w3MyyqQ==", - "cpu": [ - "x64" - ], - "dev": true, - "license": "MIT", - "optional": true, - "os": [ - "darwin" - ], - "engines": { - "node": ">=18" - } - }, - "node_modules/tsx/node_modules/@esbuild/freebsd-arm64": { - "version": "0.27.7", - "resolved": "https://registry.npmjs.org/@esbuild/freebsd-arm64/-/freebsd-arm64-0.27.7.tgz", - "integrity": "sha512-B48PqeCsEgOtzME2GbNM2roU29AMTuOIN91dsMO30t+Ydis3z/3Ngoj5hhnsOSSwNzS+6JppqWsuhTp6E82l2w==", - "cpu": [ - "arm64" - ], - "dev": true, - "license": "MIT", - "optional": true, - "os": [ - "freebsd" - ], - "engines": { - "node": ">=18" - } - }, - "node_modules/tsx/node_modules/@esbuild/freebsd-x64": { - "version": "0.27.7", - "resolved": "https://registry.npmjs.org/@esbuild/freebsd-x64/-/freebsd-x64-0.27.7.tgz", - "integrity": "sha512-jOBDK5XEjA4m5IJK3bpAQF9/Lelu/Z9ZcdhTRLf4cajlB+8VEhFFRjWgfy3M1O4rO2GQ/b2dLwCUGpiF/eATNQ==", - "cpu": [ - "x64" - ], - "dev": true, - "license": "MIT", - "optional": true, - "os": [ - "freebsd" - ], - "engines": { - "node": ">=18" - } - }, - "node_modules/tsx/node_modules/@esbuild/linux-arm": { - "version": "0.27.7", - "resolved": "https://registry.npmjs.org/@esbuild/linux-arm/-/linux-arm-0.27.7.tgz", - "integrity": "sha512-RkT/YXYBTSULo3+af8Ib0ykH8u2MBh57o7q/DAs3lTJlyVQkgQvlrPTnjIzzRPQyavxtPtfg0EopvDyIt0j1rA==", - "cpu": [ - "arm" - ], - "dev": true, - "license": "MIT", - "optional": true, - "os": [ - "linux" - ], - "engines": { - "node": ">=18" - } - }, - "node_modules/tsx/node_modules/@esbuild/linux-arm64": { - "version": "0.27.7", - "resolved": "https://registry.npmjs.org/@esbuild/linux-arm64/-/linux-arm64-0.27.7.tgz", - "integrity": "sha512-RZPHBoxXuNnPQO9rvjh5jdkRmVizktkT7TCDkDmQ0W2SwHInKCAV95GRuvdSvA7w4VMwfCjUiPwDi0ZO6Nfe9A==", - "cpu": [ - "arm64" - ], - "dev": true, - "license": "MIT", - "optional": true, - "os": [ - "linux" - ], - "engines": { - "node": ">=18" - } - }, - "node_modules/tsx/node_modules/@esbuild/linux-ia32": { - "version": "0.27.7", - "resolved": "https://registry.npmjs.org/@esbuild/linux-ia32/-/linux-ia32-0.27.7.tgz", - "integrity": "sha512-GA48aKNkyQDbd3KtkplYWT102C5sn/EZTY4XROkxONgruHPU72l+gW+FfF8tf2cFjeHaRbWpOYa/uRBz/Xq1Pg==", - "cpu": [ - "ia32" - ], - "dev": true, - "license": "MIT", - "optional": true, - "os": [ - "linux" - ], - "engines": { - "node": ">=18" - } - }, - "node_modules/tsx/node_modules/@esbuild/linux-loong64": { - "version": "0.27.7", - "resolved": "https://registry.npmjs.org/@esbuild/linux-loong64/-/linux-loong64-0.27.7.tgz", - "integrity": "sha512-a4POruNM2oWsD4WKvBSEKGIiWQF8fZOAsycHOt6JBpZ+JN2n2JH9WAv56SOyu9X5IqAjqSIPTaJkqN8F7XOQ5Q==", - "cpu": [ - "loong64" - ], - "dev": true, - "license": "MIT", - "optional": true, - "os": [ - "linux" - ], - "engines": { - "node": ">=18" - } - }, - "node_modules/tsx/node_modules/@esbuild/linux-mips64el": { - "version": "0.27.7", - "resolved": "https://registry.npmjs.org/@esbuild/linux-mips64el/-/linux-mips64el-0.27.7.tgz", - "integrity": "sha512-KabT5I6StirGfIz0FMgl1I+R1H73Gp0ofL9A3nG3i/cYFJzKHhouBV5VWK1CSgKvVaG4q1RNpCTR2LuTVB3fIw==", - "cpu": [ - "mips64el" - ], - "dev": true, - "license": "MIT", - "optional": true, - "os": [ - "linux" - ], - "engines": { - "node": ">=18" - } - }, - "node_modules/tsx/node_modules/@esbuild/linux-ppc64": { - "version": "0.27.7", - "resolved": "https://registry.npmjs.org/@esbuild/linux-ppc64/-/linux-ppc64-0.27.7.tgz", - "integrity": "sha512-gRsL4x6wsGHGRqhtI+ifpN/vpOFTQtnbsupUF5R5YTAg+y/lKelYR1hXbnBdzDjGbMYjVJLJTd2OFmMewAgwlQ==", - "cpu": [ - "ppc64" - ], - "dev": true, - "license": "MIT", - "optional": true, - "os": [ - "linux" - ], - "engines": { - "node": ">=18" - } - }, - "node_modules/tsx/node_modules/@esbuild/linux-riscv64": { - "version": "0.27.7", - "resolved": "https://registry.npmjs.org/@esbuild/linux-riscv64/-/linux-riscv64-0.27.7.tgz", - "integrity": "sha512-hL25LbxO1QOngGzu2U5xeXtxXcW+/GvMN3ejANqXkxZ/opySAZMrc+9LY/WyjAan41unrR3YrmtTsUpwT66InQ==", - "cpu": [ - "riscv64" - ], - "dev": true, - "license": "MIT", - "optional": true, - "os": [ - "linux" - ], - "engines": { - "node": ">=18" - } - }, - "node_modules/tsx/node_modules/@esbuild/linux-s390x": { - "version": "0.27.7", - "resolved": "https://registry.npmjs.org/@esbuild/linux-s390x/-/linux-s390x-0.27.7.tgz", - "integrity": "sha512-2k8go8Ycu1Kb46vEelhu1vqEP+UeRVj2zY1pSuPdgvbd5ykAw82Lrro28vXUrRmzEsUV0NzCf54yARIK8r0fdw==", - "cpu": [ - "s390x" - ], - "dev": true, - "license": "MIT", - "optional": true, - "os": [ - "linux" - ], - "engines": { - "node": ">=18" - } - }, - "node_modules/tsx/node_modules/@esbuild/linux-x64": { - "version": "0.27.7", - "resolved": "https://registry.npmjs.org/@esbuild/linux-x64/-/linux-x64-0.27.7.tgz", - "integrity": "sha512-hzznmADPt+OmsYzw1EE33ccA+HPdIqiCRq7cQeL1Jlq2gb1+OyWBkMCrYGBJ+sxVzve2ZJEVeePbLM2iEIZSxA==", - "cpu": [ - "x64" - ], - "dev": true, - "license": "MIT", - "optional": true, - "os": [ - "linux" - ], - "engines": { - "node": ">=18" - } - }, - "node_modules/tsx/node_modules/@esbuild/netbsd-arm64": { - "version": "0.27.7", - "resolved": "https://registry.npmjs.org/@esbuild/netbsd-arm64/-/netbsd-arm64-0.27.7.tgz", - "integrity": "sha512-b6pqtrQdigZBwZxAn1UpazEisvwaIDvdbMbmrly7cDTMFnw/+3lVxxCTGOrkPVnsYIosJJXAsILG9XcQS+Yu6w==", - "cpu": [ - "arm64" - ], - "dev": true, - "license": "MIT", - "optional": true, - "os": [ - "netbsd" - ], - "engines": { - "node": ">=18" - } - }, - "node_modules/tsx/node_modules/@esbuild/netbsd-x64": { - "version": "0.27.7", - "resolved": "https://registry.npmjs.org/@esbuild/netbsd-x64/-/netbsd-x64-0.27.7.tgz", - "integrity": "sha512-OfatkLojr6U+WN5EDYuoQhtM+1xco+/6FSzJJnuWiUw5eVcicbyK3dq5EeV/QHT1uy6GoDhGbFpprUiHUYggrw==", - "cpu": [ - "x64" - ], - "dev": true, - "license": "MIT", - "optional": true, - "os": [ - "netbsd" - ], - "engines": { - "node": ">=18" - } - }, - "node_modules/tsx/node_modules/@esbuild/openbsd-arm64": { - "version": "0.27.7", - "resolved": "https://registry.npmjs.org/@esbuild/openbsd-arm64/-/openbsd-arm64-0.27.7.tgz", - "integrity": "sha512-AFuojMQTxAz75Fo8idVcqoQWEHIXFRbOc1TrVcFSgCZtQfSdc1RXgB3tjOn/krRHENUB4j00bfGjyl2mJrU37A==", - "cpu": [ - "arm64" - ], - "dev": true, - "license": "MIT", - "optional": true, - "os": [ - "openbsd" - ], - "engines": { - "node": ">=18" - } - }, - "node_modules/tsx/node_modules/@esbuild/openbsd-x64": { - "version": "0.27.7", - "resolved": "https://registry.npmjs.org/@esbuild/openbsd-x64/-/openbsd-x64-0.27.7.tgz", - "integrity": "sha512-+A1NJmfM8WNDv5CLVQYJ5PshuRm/4cI6WMZRg1by1GwPIQPCTs1GLEUHwiiQGT5zDdyLiRM/l1G0Pv54gvtKIg==", - "cpu": [ - "x64" - ], - "dev": true, - "license": "MIT", - "optional": true, - "os": [ - "openbsd" - ], - "engines": { - "node": ">=18" - } - }, - "node_modules/tsx/node_modules/@esbuild/sunos-x64": { - "version": "0.27.7", - "resolved": "https://registry.npmjs.org/@esbuild/sunos-x64/-/sunos-x64-0.27.7.tgz", - "integrity": "sha512-ikktIhFBzQNt/QDyOL580ti9+5mL/YZeUPKU2ivGtGjdTYoqz6jObj6nOMfhASpS4GU4Q/Clh1QtxWAvcYKamA==", - "cpu": [ - "x64" - ], - "dev": true, - "license": "MIT", - "optional": true, - "os": [ - "sunos" - ], - "engines": { - "node": ">=18" - } - }, - "node_modules/tsx/node_modules/@esbuild/win32-arm64": { - "version": "0.27.7", - "resolved": "https://registry.npmjs.org/@esbuild/win32-arm64/-/win32-arm64-0.27.7.tgz", - "integrity": "sha512-7yRhbHvPqSpRUV7Q20VuDwbjW5kIMwTHpptuUzV+AA46kiPze5Z7qgt6CLCK3pWFrHeNfDd1VKgyP4O+ng17CA==", - "cpu": [ - "arm64" - ], - "dev": true, - "license": "MIT", - "optional": true, - "os": [ - "win32" - ], - "engines": { - "node": ">=18" - } - }, - "node_modules/tsx/node_modules/@esbuild/win32-ia32": { - "version": "0.27.7", - "resolved": "https://registry.npmjs.org/@esbuild/win32-ia32/-/win32-ia32-0.27.7.tgz", - "integrity": "sha512-SmwKXe6VHIyZYbBLJrhOoCJRB/Z1tckzmgTLfFYOfpMAx63BJEaL9ExI8x7v0oAO3Zh6D/Oi1gVxEYr5oUCFhw==", - "cpu": [ - "ia32" - ], - "dev": true, - "license": "MIT", - "optional": true, - "os": [ - "win32" - ], - "engines": { - "node": ">=18" - } - }, - "node_modules/tsx/node_modules/@esbuild/win32-x64": { - "version": "0.27.7", - "resolved": "https://registry.npmjs.org/@esbuild/win32-x64/-/win32-x64-0.27.7.tgz", - "integrity": "sha512-56hiAJPhwQ1R4i+21FVF7V8kSD5zZTdHcVuRFMW0hn753vVfQN8xlx4uOPT4xoGH0Z/oVATuR82AiqSTDIpaHg==", - "cpu": [ - "x64" - ], - "dev": true, - "license": "MIT", - "optional": true, - "os": [ - "win32" - ], - "engines": { - "node": ">=18" - } - }, - "node_modules/tsx/node_modules/esbuild": { - "version": "0.27.7", - "resolved": "https://registry.npmjs.org/esbuild/-/esbuild-0.27.7.tgz", - "integrity": "sha512-IxpibTjyVnmrIQo5aqNpCgoACA/dTKLTlhMHihVHhdkxKyPO1uBBthumT0rdHmcsk9uMonIWS0m4FljWzILh3w==", - "dev": true, - "hasInstallScript": true, - "license": "MIT", - "bin": { - "esbuild": "bin/esbuild" - }, - "engines": { - "node": ">=18" - }, - "optionalDependencies": { - "@esbuild/aix-ppc64": "0.27.7", - "@esbuild/android-arm": "0.27.7", - "@esbuild/android-arm64": "0.27.7", - "@esbuild/android-x64": "0.27.7", - "@esbuild/darwin-arm64": "0.27.7", - "@esbuild/darwin-x64": "0.27.7", - "@esbuild/freebsd-arm64": "0.27.7", - "@esbuild/freebsd-x64": "0.27.7", - "@esbuild/linux-arm": "0.27.7", - "@esbuild/linux-arm64": "0.27.7", - "@esbuild/linux-ia32": "0.27.7", - "@esbuild/linux-loong64": "0.27.7", - "@esbuild/linux-mips64el": "0.27.7", - "@esbuild/linux-ppc64": "0.27.7", - "@esbuild/linux-riscv64": "0.27.7", - "@esbuild/linux-s390x": "0.27.7", - "@esbuild/linux-x64": "0.27.7", - "@esbuild/netbsd-arm64": "0.27.7", - "@esbuild/netbsd-x64": "0.27.7", - "@esbuild/openbsd-arm64": "0.27.7", - "@esbuild/openbsd-x64": "0.27.7", - "@esbuild/openharmony-arm64": "0.27.7", - "@esbuild/sunos-x64": "0.27.7", - "@esbuild/win32-arm64": "0.27.7", - "@esbuild/win32-ia32": "0.27.7", - "@esbuild/win32-x64": "0.27.7" - } - }, - "node_modules/type-is": { - "version": "1.6.18", - "resolved": "https://registry.npmjs.org/type-is/-/type-is-1.6.18.tgz", - "integrity": "sha512-TkRKr9sUTxEH8MdfuCSP7VizJyzRNMjj2J2do2Jr3Kym598JVdEksuzPQCnlFPW4ky9Q+iA+ma9BGm06XQBy8g==", - "license": "MIT", - "dependencies": { - "media-typer": "0.3.0", - "mime-types": "~2.1.24" - }, - "engines": { - "node": ">= 0.6" - } - }, - "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/undici-types": { - "version": "7.18.2", - "resolved": "https://registry.npmjs.org/undici-types/-/undici-types-7.18.2.tgz", - "integrity": "sha512-AsuCzffGHJybSaRrmr5eHr81mwJU3kjw6M+uprWvCXiNeN9SOGwQ3Jn8jb8m3Z6izVgknn1R0FTCEAP2QrLY/w==", - "license": "MIT" - }, - "node_modules/unpipe": { - "version": "1.0.0", - "resolved": "https://registry.npmjs.org/unpipe/-/unpipe-1.0.0.tgz", - "integrity": "sha512-pjy2bYhSsufwWlKwPc+l3cN7+wuJlK6uz0YdJEOlQDbl6jo/YlPi4mb8agUkVC8BF7V8NuzeyPNqRksA3hztKQ==", - "license": "MIT", - "engines": { - "node": ">= 0.8" - } - }, - "node_modules/update-browserslist-db": { - "version": "1.2.3", - "resolved": "https://registry.npmjs.org/update-browserslist-db/-/update-browserslist-db-1.2.3.tgz", - "integrity": "sha512-Js0m9cx+qOgDxo0eMiFGEueWztz+d4+M3rGlmKPT+T4IS/jP4ylw3Nwpu6cpTTP8R1MAC1kF4VbdLt3ARf209w==", - "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/utils-merge": { - "version": "1.0.1", - "resolved": "https://registry.npmjs.org/utils-merge/-/utils-merge-1.0.1.tgz", - "integrity": "sha512-pMZTvIkT1d+TFGvDOqodOclx0QWkkgi6Tdoa8gC8ffGAAqz9pzPTZWAybbsHHoED/ztMtkv/VoYTYyShUn81hA==", - "license": "MIT", - "engines": { - "node": ">= 0.4.0" - } - }, - "node_modules/uuid": { - "version": "10.0.0", - "resolved": "https://registry.npmjs.org/uuid/-/uuid-10.0.0.tgz", - "integrity": "sha512-8XkAphELsDnEGrDxUOHB3RGvXz6TeuYSGEZBOjtTtPm2lwhGBjLgOzLHB63IUWfBpNucQjND6d3AOudO+H3RWQ==", - "funding": [ - "https://github.com/sponsors/broofa", - "https://github.com/sponsors/ctavan" - ], - "license": "MIT", - "bin": { - "uuid": "dist/bin/uuid" - } - }, - "node_modules/vary": { - "version": "1.1.2", - "resolved": "https://registry.npmjs.org/vary/-/vary-1.1.2.tgz", - "integrity": "sha512-BNGbWLfd0eUPabhkXUVm0j8uuvREyTh5ovRa/dyow/BqAbZJyC+5fU+IzQOzmAKzYqYRAISoRhdQr3eIZ/PXqg==", - "license": "MIT", - "engines": { - "node": ">= 0.8" - } - }, - "node_modules/watchpack": { - "version": "2.5.1", - "resolved": "https://registry.npmjs.org/watchpack/-/watchpack-2.5.1.tgz", - "integrity": "sha512-Zn5uXdcFNIA1+1Ei5McRd+iRzfhENPCe7LeABkJtNulSxjma+l7ltNx55BWZkRlwRnpOgHqxnjyaDgJnNXnqzg==", - "license": "MIT", - "dependencies": { - "glob-to-regexp": "^0.4.1", - "graceful-fs": "^4.1.2" - }, - "engines": { - "node": ">=10.13.0" - } - }, - "node_modules/webidl-conversions": { - "version": "4.0.2", - "resolved": "https://registry.npmjs.org/webidl-conversions/-/webidl-conversions-4.0.2.tgz", - "integrity": "sha512-YQ+BmxuTgd6UXZW3+ICGfyqRyHXVlD5GtQr5+qjiNW7bF0cqrzX500HVXPBOvgXb5YnzDd+h0zqyv61KUD7+Sg==", - "license": "BSD-2-Clause" - }, - "node_modules/webpack": { - "version": "5.105.0", - "resolved": "https://registry.npmjs.org/webpack/-/webpack-5.105.0.tgz", - "integrity": "sha512-gX/dMkRQc7QOMzgTe6KsYFM7DxeIONQSui1s0n/0xht36HvrgbxtM1xBlgx596NbpHuQU8P7QpKwrZYwUX48nw==", - "license": "MIT", - "dependencies": { - "@types/eslint-scope": "^3.7.7", - "@types/estree": "^1.0.8", - "@types/json-schema": "^7.0.15", - "@webassemblyjs/ast": "^1.14.1", - "@webassemblyjs/wasm-edit": "^1.14.1", - "@webassemblyjs/wasm-parser": "^1.14.1", - "acorn": "^8.15.0", - "acorn-import-phases": "^1.0.3", - "browserslist": "^4.28.1", - "chrome-trace-event": "^1.0.2", - "enhanced-resolve": "^5.19.0", - "es-module-lexer": "^2.0.0", - "eslint-scope": "5.1.1", - "events": "^3.2.0", - "glob-to-regexp": "^0.4.1", - "graceful-fs": "^4.2.11", - "json-parse-even-better-errors": "^2.3.1", - "loader-runner": "^4.3.1", - "mime-types": "^2.1.27", - "neo-async": "^2.6.2", - "schema-utils": "^4.3.3", - "tapable": "^2.3.0", - "terser-webpack-plugin": "^5.3.16", - "watchpack": "^2.5.1", - "webpack-sources": "^3.3.3" - }, - "bin": { - "webpack": "bin/webpack.js" - }, - "engines": { - "node": ">=10.13.0" - }, - "funding": { - "type": "opencollective", - "url": "https://opencollective.com/webpack" - }, - "peerDependenciesMeta": { - "webpack-cli": { - "optional": true - } - } - }, - "node_modules/webpack-sources": { - "version": "3.3.4", - "resolved": "https://registry.npmjs.org/webpack-sources/-/webpack-sources-3.3.4.tgz", - "integrity": "sha512-7tP1PdV4vF+lYPnkMR0jMY5/la2ub5Fc/8VQrrU+lXkiM6C4TjVfGw7iKfyhnTQOsD+6Q/iKw0eFciziRgD58Q==", - "license": "MIT", - "engines": { - "node": ">=10.13.0" - } - }, - "node_modules/whatwg-url": { - "version": "7.1.0", - "resolved": "https://registry.npmjs.org/whatwg-url/-/whatwg-url-7.1.0.tgz", - "integrity": "sha512-WUu7Rg1DroM7oQvGWfOiAK21n74Gg+T4elXEQYkOhtyLeWiJFoOGLXPKI/9gzIie9CtwVLm8wtw6YJdKyxSjeg==", - "license": "MIT", - "dependencies": { - "lodash.sortby": "^4.7.0", - "tr46": "^1.0.1", - "webidl-conversions": "^4.0.2" - } - }, - "node_modules/which": { - "version": "2.0.2", - "resolved": "https://registry.npmjs.org/which/-/which-2.0.2.tgz", - "integrity": "sha512-BLI3Tl1TW3Pvl70l3yq3Y64i+awpwXqsGBYWkkqMtnbXgrMD+yj7rhW0kuEDxzJaYXGjEW5ogapKNMEKNMjibA==", - "license": "ISC", - "dependencies": { - "isexe": "^2.0.0" - }, - "bin": { - "node-which": "bin/node-which" - }, - "engines": { - "node": ">= 8" - } - }, - "node_modules/wrappy": { - "version": "1.0.2", - "resolved": "https://registry.npmjs.org/wrappy/-/wrappy-1.0.2.tgz", - "integrity": "sha512-l4Sp/DRseor9wL6EvV2+TuQn63dMkPjZ/sp9XkghTEbV9KlPS1xUsZ3u7/IQO4wxtcFB4bgpQPRcR3QCvezPcQ==", - "license": "ISC" - }, - "node_modules/ws": { - "version": "8.17.1", - "resolved": "https://registry.npmjs.org/ws/-/ws-8.17.1.tgz", - "integrity": "sha512-6XQFvXTkbfUOZOKKILFG1PDK2NDQs4azKQl26T0YS5CxqWLgXajbPZ+h4gZekJyRqFU8pvnbAbbs/3TgRPy+GQ==", - "license": "MIT", - "engines": { - "node": ">=10.0.0" - }, - "peerDependencies": { - "bufferutil": "^4.0.1", - "utf-8-validate": ">=5.0.2" - }, - "peerDependenciesMeta": { - "bufferutil": { - "optional": true - }, - "utf-8-validate": { - "optional": true - } - } - }, - "node_modules/yallist": { - "version": "4.0.0", - "resolved": "https://registry.npmjs.org/yallist/-/yallist-4.0.0.tgz", - "integrity": "sha512-3wdGidZyq5PB084XLES5TpOSRA3wjXAlIWMhum2kRcv/41Sn2emQ0dycQW4uZXLejwKvg6EsvbdlVL+FYEct7A==", - "license": "ISC" - }, - "node_modules/yauzl": { - "version": "2.10.0", - "resolved": "https://registry.npmjs.org/yauzl/-/yauzl-2.10.0.tgz", - "integrity": "sha512-p4a9I6X6nu6IhoGmBqAcbJy1mlC4j27vEPZX9F4L4/vZT3Lyq1VkFHw/V/PUcB9Buo+DG3iHkT0x3Qya58zc3g==", - "license": "MIT", - "dependencies": { - "buffer-crc32": "~0.2.3", - "fd-slicer": "~1.1.0" - } - }, - "node_modules/zod": { - "version": "4.3.6", - "resolved": "https://registry.npmjs.org/zod/-/zod-4.3.6.tgz", - "integrity": "sha512-rftlrkhHZOcjDwkGlnUtZZkvaPHCsDATp4pGpuOOMDaTdDDXF91wuVDJoWoPsKX/3YPQ5fHuF3STjcYyKr+Qhg==", - "license": "MIT", - "funding": { - "url": "https://github.com/sponsors/colinhacks" - } - } - } -} diff --git a/render-service/package.json b/render-service/package.json deleted file mode 100644 index 7fd9ecf..0000000 --- a/render-service/package.json +++ /dev/null @@ -1,26 +0,0 @@ -{ - "name": "clipwright-render-service", - "version": "1.0.0", - "private": true, - "type": "module", - "scripts": { - "dev": "tsx watch src/server.ts", - "test": "node --import tsx --test src/composition-metadata.test.ts", - "build": "tsc", - "start": "node dist/server.js" - }, - "dependencies": { - "@remotion/bundler": "^4.0.0", - "@remotion/renderer": "^4.0.0", - "express": "^4.21.0", - "remotion": "^4.0.0", - "uuid": "^10.0.0", - "zod": "^4.3.6" - }, - "devDependencies": { - "@types/express": "^5.0.0", - "@types/uuid": "^10.0.0", - "tsx": "^4.19.0", - "typescript": "^5.4.0" - } -} diff --git a/render-service/src/bundle.ts b/render-service/src/bundle.ts deleted file mode 100644 index 1ab94ce..0000000 --- a/render-service/src/bundle.ts +++ /dev/null @@ -1,43 +0,0 @@ -import path from "node:path"; -import { bundle } from "@remotion/bundler"; - -let bundleLocation: string | null = null; - -/** - * Bundles the Remotion project on startup and caches the result. - * Uses REMOTION_BUNDLE_PATH env var to locate the remotion source - * (default: "../remotion" relative to this service's root). - */ -export async function initBundle(): Promise<void> { - const remotionRoot = process.env.REMOTION_BUNDLE_PATH - ? path.resolve(process.env.REMOTION_BUNDLE_PATH) - : path.resolve(import.meta.dirname, "../../remotion"); - - const entryPoint = path.join(remotionRoot, "src", "index.ts"); - - console.log(`[bundle] Bundling Remotion project from: ${entryPoint}`); - - bundleLocation = await bundle({ - entryPoint, - onProgress: (progress: number) => { - if (progress % 10 === 0) { - console.log(`[bundle] Progress: ${progress}%`); - } - }, - }); - - console.log(`[bundle] Bundle created at: ${bundleLocation}`); -} - -/** - * Returns the cached bundle location. - * Throws if initBundle() has not been called yet. - */ -export function getBundleLocation(): string { - if (!bundleLocation) { - throw new Error( - "Bundle not initialized. Call initBundle() before getBundleLocation()." - ); - } - return bundleLocation; -} diff --git a/render-service/src/composition-metadata.test.ts b/render-service/src/composition-metadata.test.ts deleted file mode 100644 index eadb777..0000000 --- a/render-service/src/composition-metadata.test.ts +++ /dev/null @@ -1,62 +0,0 @@ -import { before, test } from "node:test"; -import assert from "node:assert/strict"; -import { selectComposition } from "@remotion/renderer"; -import { initBundle, getBundleLocation } from "./bundle.js"; - -/** - * Contract test for the render pipeline's composition metadata. - * - * render-worker.ts passes durationInFrames/fps/width/height via inputProps and - * renders whatever selectComposition() reports. Without calculateMetadata on - * the ShortVideo Composition, Remotion ignores those inputProps and always - * reports the static DEFAULT_PROPS metadata (900 frames / 30fps / 1080x1920), - * so every clip renders at 30s regardless of its real length. - */ - -const BUNDLE_TIMEOUT_MS = 5 * 60 * 1000; - -before(async () => { - await initBundle(); -}, { timeout: BUNDLE_TIMEOUT_MS }); - -test( - "selectComposition honors per-render duration/fps/dimensions from inputProps", - { timeout: BUNDLE_TIMEOUT_MS }, - async () => { - const composition = await selectComposition({ - serveUrl: getBundleLocation(), - id: "ShortVideo", - inputProps: { - videoUrl: "", - durationInFrames: 300, - fps: 25, - width: 720, - height: 1280, - }, - logLevel: "error", - }); - - assert.equal(composition.durationInFrames, 300); - assert.equal(composition.fps, 25); - assert.equal(composition.width, 720); - assert.equal(composition.height, 1280); - } -); - -test( - "selectComposition falls back to DEFAULT_PROPS metadata when inputProps omit it", - { timeout: BUNDLE_TIMEOUT_MS }, - async () => { - const composition = await selectComposition({ - serveUrl: getBundleLocation(), - id: "ShortVideo", - inputProps: { videoUrl: "" }, - logLevel: "error", - }); - - assert.equal(composition.durationInFrames, 900); - assert.equal(composition.fps, 30); - assert.equal(composition.width, 1080); - assert.equal(composition.height, 1920); - } -); diff --git a/render-service/src/render-worker.ts b/render-service/src/render-worker.ts deleted file mode 100644 index 5a09bd7..0000000 --- a/render-service/src/render-worker.ts +++ /dev/null @@ -1,96 +0,0 @@ -import fs from "node:fs"; -import path from "node:path"; -import { selectComposition, renderMedia } from "@remotion/renderer"; -import { getBundleLocation } from "./bundle.js"; -import { renderJobs } from "./server.js"; - -export interface RenderParams { - renderId: string; - jobId: string; - clipIndex: number; - props: { - videoUrl: string; - durationInFrames: number; - fps: number; - width: number; - height: number; - subtitles: unknown; - hook: unknown; - effects: unknown; - }; -} - -/** - * Executes a Remotion render in the background. - * Updates the in-memory render job map with progress and final status. - */ -export async function executeRender(params: RenderParams): Promise<void> { - const { renderId, jobId, clipIndex, props } = params; - const job = renderJobs.get(renderId); - - if (!job) { - console.error(`[render-worker] Job ${renderId} not found in map`); - return; - } - - try { - job.status = "rendering"; - job.progress = 0; - - console.log( - `[render-worker] Starting render ${renderId} (job=${jobId}, clip=${clipIndex})` - ); - - const bundleLocation = getBundleLocation(); - - // Select the composition with the provided input props - const composition = await selectComposition({ - serveUrl: bundleLocation, - id: "ShortVideo", - inputProps: props, - }); - - // Determine output directory and file path - const outputDir = process.env.OUTPUT_DIR - ? path.resolve(process.env.OUTPUT_DIR) - : path.resolve(import.meta.dirname, "../../output"); - - const jobOutputDir = path.join(outputDir, jobId); - fs.mkdirSync(jobOutputDir, { recursive: true }); - - const timestamp = Date.now(); - const outputFileName = `remotion_${clipIndex}_${timestamp}.mp4`; - const outputLocation = path.join(jobOutputDir, outputFileName); - - console.log(`[render-worker] Output: ${outputLocation}`); - - // Render the video - await renderMedia({ - composition, - serveUrl: bundleLocation, - codec: "h264", - crf: 22, - outputLocation, - onProgress: ({ progress }) => { - const percent = Math.round(progress * 100); - job.progress = percent; - - if (percent % 10 === 0) { - console.log(`[render-worker] ${renderId} progress: ${percent}%`); - } - }, - }); - - // Success - job.status = "done"; - job.progress = 100; - job.outputUrl = outputLocation; - - console.log(`[render-worker] Render ${renderId} completed: ${outputLocation}`); - } catch (err) { - job.status = "error"; - job.error = err instanceof Error ? err.message : String(err); - - console.error(`[render-worker] Render ${renderId} failed:`, err); - } -} diff --git a/render-service/src/server.ts b/render-service/src/server.ts deleted file mode 100644 index a86d8c0..0000000 --- a/render-service/src/server.ts +++ /dev/null @@ -1,166 +0,0 @@ -import express from "express"; -import { v4 as uuidv4 } from "uuid"; -import { z } from "zod"; -import { initBundle } from "./bundle.js"; -import { executeRender } from "./render-worker.js"; - -// --- Render status types --- - -export type RenderStatus = "queued" | "rendering" | "done" | "error"; - -export interface RenderJob { - renderId: string; - jobId: string; - clipIndex: number; - status: RenderStatus; - progress: number; - outputUrl?: string; - error?: string; -} - -// In-memory render job map -export const renderJobs = new Map<string, RenderJob>(); - -// --- Request validation schema --- - -const renderRequestSchema = z.object({ - jobId: z.string().min(1), - clipIndex: z.number().int().min(0), - props: z.object({ - videoUrl: z.string(), - durationInFrames: z.number().int().positive(), - fps: z.number().positive(), - width: z.number().int().positive(), - height: z.number().int().positive(), - subtitles: z.any().nullable().optional(), - hook: z.any().nullable().optional(), - effects: z.any().nullable().optional(), - }), -}); - -// --- Express app --- - -const app = express(); -app.use(express.json({ limit: "10mb" })); - -const PORT = parseInt(process.env.PORT || "3100", 10); -const OUTPUT_DIR = process.env.OUTPUT_DIR || "/output"; - -// Serve video files from the shared output volume so Remotion can access them via HTTP -app.use("/output", express.static(OUTPUT_DIR)); - -// Health check -app.get("/health", (_req, res) => { - res.json({ ok: true }); -}); - -// Submit a render job -app.post("/render", (req, res) => { - const parsed = renderRequestSchema.safeParse(req.body); - - if (!parsed.success) { - res.status(400).json({ - error: "Invalid request body", - details: parsed.error.issues, - }); - return; - } - - const { jobId, clipIndex, props } = parsed.data; - const renderId = uuidv4(); - - const job: RenderJob = { - renderId, - jobId, - clipIndex, - status: "queued", - progress: 0, - }; - - renderJobs.set(renderId, job); - - console.log( - `[render] Queued render ${renderId} for job=${jobId} clip=${clipIndex}` - ); - - // Resolve video URL: convert frontend/backend URLs to renderer's own static server - // The renderer serves /output/* from the shared Docker volume - let resolvedVideoUrl = props.videoUrl; - const videoPathMatch = props.videoUrl.match(/\/videos\/([^/]+)\/(.+)$/); - if (videoPathMatch) { - resolvedVideoUrl = `http://localhost:${PORT}/output/${videoPathMatch[1]}/${videoPathMatch[2]}`; - console.log(`[render] Resolved video URL: ${props.videoUrl} -> ${resolvedVideoUrl}`); - } - - // Fire and forget - render runs in background - executeRender({ - renderId, - jobId, - clipIndex, - props: { - videoUrl: resolvedVideoUrl, - durationInFrames: props.durationInFrames, - fps: props.fps, - width: props.width, - height: props.height, - subtitles: props.subtitles ?? null, - hook: props.hook ?? null, - effects: props.effects ?? null, - }, - }).catch((err) => { - console.error(`[render] Unhandled error for ${renderId}:`, err); - const existingJob = renderJobs.get(renderId); - if (existingJob) { - existingJob.status = "error"; - existingJob.error = - err instanceof Error ? err.message : "Unknown error"; - } - }); - - res.status(202).json({ renderId, status: "queued" }); -}); - -// Get render status -app.get("/render/:renderId", (req, res) => { - const { renderId } = req.params; - const job = renderJobs.get(renderId); - - if (!job) { - res.status(404).json({ error: "Render not found" }); - return; - } - - const response: Record<string, unknown> = { - renderId: job.renderId, - status: job.status, - }; - - if (job.progress !== undefined) { - response.progress = job.progress; - } - if (job.outputUrl) { - response.outputUrl = job.outputUrl; - } - if (job.error) { - response.error = job.error; - } - - res.json(response); -}); - -// --- Start server --- - -async function main() { - console.log("[render-service] Initializing Remotion bundle..."); - await initBundle(); - console.log("[render-service] Bundle ready."); - - app.listen(PORT, () => { - console.log(`[render-service] Listening on port ${PORT}`); - }); -} - -main().catch((err) => { - console.error("[render-service] Fatal error during startup:", err); - process.exit(1); -}); diff --git a/render-service/tsconfig.json b/render-service/tsconfig.json deleted file mode 100644 index a9838bf..0000000 --- a/render-service/tsconfig.json +++ /dev/null @@ -1,17 +0,0 @@ -{ - "compilerOptions": { - "target": "ES2022", - "module": "ESNext", - "moduleResolution": "bundler", - "strict": true, - "esModuleInterop": true, - "skipLibCheck": true, - "forceConsistentCasingInFileNames": true, - "outDir": "dist", - "rootDir": "src", - "declaration": true, - "resolveJsonModule": true - }, - "include": ["src"], - "exclude": ["node_modules", "dist"] -} diff --git a/screenshots/ai-shorts.png b/screenshots/ai-shorts.png deleted file mode 100644 index fc0fbc1..0000000 Binary files a/screenshots/ai-shorts.png and /dev/null differ diff --git a/screenshots/clip-results.png b/screenshots/clip-results.png deleted file mode 100644 index 2c6b280..0000000 Binary files a/screenshots/clip-results.png and /dev/null differ diff --git a/screenshots/ugc-gallery.png b/screenshots/ugc-gallery.png deleted file mode 100644 index 1eef3f8..0000000 Binary files a/screenshots/ugc-gallery.png and /dev/null differ diff --git a/screenshots/youtube-studio.png b/screenshots/youtube-studio.png deleted file mode 100644 index edc0652..0000000 Binary files a/screenshots/youtube-studio.png and /dev/null differ diff --git a/tests/test_ai_disclosure.py b/tests/test_ai_disclosure.py index ca535f7..ebf0069 100644 --- a/tests/test_ai_disclosure.py +++ b/tests/test_ai_disclosure.py @@ -1,13 +1,11 @@ """AI Act art. 50(2) marking on the images the thumbnail studio generates. -Videos have carried an mp4 ``comment`` tag since the doubling/AI-Shorts work -(``ffmpeg_utils.mark_ai_generated``). Thumbnails carried nothing — and they are -the output most likely to be a synthetic image *of a real person*, because the -studio hands the model the presenter's own face as a reference. The mark is XMP +Thumbnails are the output most likely to be a synthetic image *of a real +person*, because the studio hands the model the presenter's own face as a +reference. The mark is XMP ``Iptc4xmpExt:DigitalSourceType = trainedAlgorithmicMedia``, which is the vocabulary the platforms actually read. """ -import io import os import pytest diff --git a/tests/test_clip_selection.py b/tests/test_clip_selection.py index c984b58..b5f94df 100644 --- a/tests/test_clip_selection.py +++ b/tests/test_clip_selection.py @@ -10,7 +10,6 @@ from clipwright.pipeline.clip_selection import ( score_batches, shortlist_target, snap_clip_to_words, - compact_words, lookup_model_prices, trim_to_best, ) @@ -103,12 +102,6 @@ class TestPricing: assert lookup_model_prices(None) is None -class TestCompactWords: - def test_rounds_timestamps(self): - words = [{"w": " hi", "s": 17.240000000000002, "e": 17.899999999999999}] - assert compact_words(words) == [{"w": " hi", "s": 17.24, "e": 17.9}] - - class TestClipCountTargets: """The floor is the whole point: prod was delivering a single clip on the mode, and users who got 1-3 came back 0.4% of the time against 16% for 4-9. diff --git a/tests/test_deploy_drain.py b/tests/test_deploy_drain.py index e22e16b..a1c448f 100644 --- a/tests/test_deploy_drain.py +++ b/tests/test_deploy_drain.py @@ -7,7 +7,6 @@ landing on either instance must answer from disk. """ import asyncio import json -import os import time import httpx diff --git a/tests/test_ffmpeg_utils.py b/tests/test_ffmpeg_utils.py index be2c4d4..476ca91 100644 --- a/tests/test_ffmpeg_utils.py +++ b/tests/test_ffmpeg_utils.py @@ -4,13 +4,11 @@ import pytest from clipwright.media import ffmpeg_utils from clipwright.media.ffmpeg_utils import ( - AI_DISCLOSURE, DELIVERY, METADATA_SCRUB, QUALITY, QUALITY_FAST, blurred_backdrop, - mark_ai_generated, reset_encoder_cache, video_encode_args, ) @@ -102,51 +100,6 @@ def test_encode_args_stay_free_of_metadata_flags(): assert not any(a.startswith("-map_metadata") for a in video_encode_args(tier)) -def _tiny_mp4(path): - subprocess.run( - ["ffmpeg", "-y", "-f", "lavfi", "-i", "testsrc=size=320x240:rate=10:duration=1", - "-f", "lavfi", "-i", "sine=frequency=440:duration=1", - "-c:v", "libx264", "-c:a", "aac", "-pix_fmt", "yuv420p", str(path)], - capture_output=True, check=True) - - -def _comment_tag(path): - r = subprocess.run( - ["ffprobe", "-v", "error", "-show_entries", "format_tags=comment", - "-of", "default=noprint_wrappers=1:nokey=1", str(path)], - capture_output=True, text=True, check=True) - return r.stdout.strip() - - -def test_ai_disclosure_survives_in_a_tag_a_machine_can_read(): - # AI Act art. 50(2) wants the marking readable by a machine, so it has to - # come back out of the file. `comment` is the only tag mp4 keeps: a custom - # key is dropped by ffmpeg without any warning. - pytest.importorskip("shutil") - import shutil, tempfile, os - if not shutil.which("ffmpeg") or not shutil.which("ffprobe"): - pytest.skip("ffmpeg/ffprobe not installed") - with tempfile.TemporaryDirectory() as d: - p = os.path.join(d, "clip.mp4") - _tiny_mp4(p) - assert mark_ai_generated(p, "AI voice dubbing") is True - tag = _comment_tag(p) - assert AI_DISCLOSURE in tag - assert "AI voice dubbing" in tag - - -def test_ai_disclosure_never_destroys_the_file_it_cannot_tag(): - # The tag is a nicety; the video the user just paid minutes for is not. - import tempfile, os - with tempfile.TemporaryDirectory() as d: - p = os.path.join(d, "broken.mp4") - with open(p, "wb") as f: - f.write(b"not a video") - assert mark_ai_generated(p) is False - assert open(p, "rb").read() == b"not a video" - assert not os.path.exists(p + ".aitag.mp4") - - # --- cut_clip: a failed cut must say why, not hand an empty file downstream --- class _FakeRun: diff --git a/tests/test_layout_ranges.py b/tests/test_layout_ranges.py index 37f1a01..87b4b8c 100644 --- a/tests/test_layout_ranges.py +++ b/tests/test_layout_ranges.py @@ -2,7 +2,6 @@ are stacked (layout_ranges sidecar), and generate_ass anchors the word events inside them mid-frame (\\an5) while everything else keeps the style's own alignment. A clip mixes both, so the placement is per event, not per style.""" -import json import os import pytest diff --git a/tests/test_package_layout.py b/tests/test_package_layout.py index a3958fb..0528983 100644 --- a/tests/test_package_layout.py +++ b/tests/test_package_layout.py @@ -23,7 +23,7 @@ LEGACY_MODULES = frozenset({ "active_speaker", "app", "camera_inset", "clip_selection", "edit_builder", "editor", "ffmpeg_utils", "file_hosts", "frame_sampler", "free_tools", "gemini_worker", "hook_grounding", "hooks", "layout_picker", - "layout_ranges", "llm_backend", "main", "media_auth", "panel_layout", + "layout_ranges", "llm_backend", "main", "media_auth", "postiz", "punch_in", "quality_probe", "recut", "reframe_v2", "restoring_static", "scene_detection", "screencast_layout", "security_utils", "split_layout", "subtitles", "thumbnail", diff --git a/tests/test_panel_layout.py b/tests/test_panel_layout.py deleted file mode 100644 index 09f3120..0000000 --- a/tests/test_panel_layout.py +++ /dev/null @@ -1,205 +0,0 @@ -from clipwright.layouts import panel_layout -from clipwright.layouts.panel_layout import ( - analyze_scene, - panel_filtergraph, - panel_geometry, - tile_grid, - usable_faces, - well_separated, -) - - -def face(cx, w=200, h=200, cy=400): - box = [int(cx - w / 2), int(cy - h / 2), w, h] - return {'box': box, 'score': w * h} - - -def panel(n, frame_w=1920): - """n evenly spaced faces across the frame.""" - step = frame_w / (n + 1) - return [face(step * (i + 1)) for i in range(n)] - - -class TestTileGrid: - def test_three_people_also_use_the_grid(self): - # Landscape bands need a crop wider than a person owns; portrait tiles - # do not. Three people take three cells, the fourth holds the wide shot. - cols, rows, tw, th = tile_grid(3, 1080, 1920) - assert (cols, rows) == (2, 2) - assert tw == 540 and th == 960 - - def test_four_people_make_a_grid(self): - cols, rows, tw, th = tile_grid(4, 1080, 1920) - assert (cols, rows) == (2, 2) - assert tw == 540 and th == 960 - - def test_tiles_are_even(self): - for n in (3, 4): - _c, _r, tw, th = tile_grid(n, 1080, 1920) - assert tw % 2 == 0 and th % 2 == 0 - - def test_tiles_fill_the_frame(self): - for n in (3, 4): - cols, rows, tw, th = tile_grid(n, 1080, 1920) - assert cols * tw == 1080 - assert abs(rows * th - 1920) <= 2 - - -class TestUsableFaces: - def test_tiny_faces_are_dropped(self): - faces = panel(3) + [face(1800, w=40, h=40)] - assert len(usable_faces(faces, 1920)) == 3 - - def test_result_is_left_to_right(self): - faces = list(reversed(panel(4))) - xs = [c['box'][0] for c in usable_faces(faces, 1920)] - assert xs == sorted(xs) - - -class TestWellSeparated: - def test_evenly_spaced_panel_passes(self): - assert well_separated(usable_faces(panel(4), 1920), 1920) - - def test_two_people_shoulder_to_shoulder_fail(self): - faces = [face(900), face(980), face(1500)] - assert not well_separated(faces, 1920) - - def test_people_stacked_vertically_count_as_separated(self): - # Measured on a real recording: two webcams on the same side of the - # frame, 18px apart horizontally and 545px vertically. A horizontal-gap - # test called them one person. - faces = [face(300, cy=400), face(1760, cy=210), face(1760, cy=755)] - assert well_separated(faces, 1920) - - def test_faces_close_in_both_axes_still_fail(self): - faces = [face(300, cy=400), face(1760, cy=400), face(1780, cy=420)] - assert not well_separated(faces, 1920) - - -class TestAnalyzeScene: - def test_steady_panel_of_three_is_found(self): - centres = analyze_scene([panel(3)] * 10, 1920) - assert centres is not None and len(centres) == 3 - - def test_steady_panel_of_four_is_found(self): - centres = analyze_scene([panel(4)] * 10, 1920) - assert len(centres) == 4 - - def test_two_people_are_left_to_split(self): - # Two is SPLIT's job; this layout must not claim it. - assert analyze_scene([panel(2)] * 10, 1920) is None - - def test_a_crowd_is_rejected(self): - # Five tiles on a 1080-wide frame leaves nobody legible. - assert analyze_scene([panel(6)] * 10, 1920) is None - - def test_shot_reverse_shot_is_rejected(self): - # Faces never coexisting means a multi-camera cut; tiling would show the - # same person more than once. - frames = [[face(900)], [face(1000)], [face(800)]] * 4 - assert analyze_scene(frames, 1920) is None - - def test_the_dominant_headcount_wins(self): - # One frame catching a fourth person must not turn a trio into a quad. - frames = [panel(3)] * 9 + [panel(4)] - assert len(analyze_scene(frames, 1920)) == 3 - - def test_empty_input_is_rejected(self): - assert analyze_scene([], 1920) is None - - def test_centres_come_back_left_to_right(self): - centres = analyze_scene([panel(4)] * 10, 1920) - assert [c[0] for c in centres] == sorted(c[0] for c in centres) - - -class TestPanelGeometry: - def test_crop_stays_inside_the_source(self): - _c, _r, tw, th = tile_grid(3, 1080, 1920) - for cx in (100, 960, 1850): - w, h, x, y = panel_geometry(1920, 1080, tw, th, (cx, 400, 200, 200)) - assert 0 <= x <= 1920 - w - assert 0 <= y <= 1080 - h - - def test_crop_matches_the_tile_aspect(self): - _c, _r, tw, th = tile_grid(4, 1080, 1920) - w, h, _x, _y = panel_geometry(1920, 1080, tw, th, (900, 400, 200, 200)) - assert abs((w / h) - (tw / th)) < 0.02 - - def test_dimensions_are_even(self): - _c, _r, tw, th = tile_grid(3, 1080, 1920) - w, h, x, y = panel_geometry(1920, 1080, tw, th, (777, 333, 201, 201)) - assert w % 2 == 0 and h % 2 == 0 and x % 2 == 0 and y % 2 == 0 - - -class TestPanelFiltergraph: - def test_three_people_fill_a_grid_plus_the_wide_shot(self): - graph = panel_filtergraph(1920, 1080, 1080, 1920, - [(300, 400, 200, 200), (900, 400, 200, 200), - (1500, 400, 200, 200)]) - assert "split=4" in graph # three crops plus the wide shot - assert graph.count("hstack=inputs=2") == 2 - assert "[s3]scale=540:-2" in graph # the room, letterboxed, not cropped - assert graph.endswith("[v]") - - def test_four_make_a_grid(self): - graph = panel_filtergraph(1920, 1080, 1080, 1920, - [(200, 400, 180, 180), (700, 400, 180, 180), - (1200, 400, 180, 180), (1700, 400, 180, 180)]) - assert "split=4" in graph - assert graph.count("hstack=inputs=2") == 2 - assert "vstack=inputs=2" in graph - - def test_every_person_tile_is_the_same_size(self): - graph = panel_filtergraph(1920, 1080, 1080, 1920, - [(300, 400, 200, 200), (900, 400, 200, 200), - (1500, 400, 200, 200)]) - assert graph.count("scale=540:960") == 3 - - def test_tiles_keep_source_order(self): - graph = panel_filtergraph(1920, 1080, 1080, 1920, - [(300, 400, 200, 200), (900, 400, 200, 200), - (1500, 400, 200, 200)]) - xs = [int(seg.split("x=")[1].split(":")[0]) - for seg in graph.split("crop=")[1:]] - assert xs == sorted(xs) - - -class TestGating: - def test_disabled_module_touches_nothing(self, monkeypatch): - monkeypatch.setattr(panel_layout, "ENABLED", False) - assert panel_layout.detect_panel_scenes("x.mp4", [], []) == {} - - -class TestNeighbourClamp: - def test_crop_never_swallows_the_neighbour(self): - # A 1080x640 tile is landscape, so an unclamped crop is 1551px wide on a - # 1080-tall source. With three people on a 1920 frame that reaches both - # neighbours, and the rendered bands showed two faces each. - _c, _r, tw, th = tile_grid(3, 1080, 1920) - w, _h, _x, _y = panel_geometry(1920, 1080, tw, th, (960, 400, 200, 200), - neighbour_gap=530) - assert w <= 530 - - def test_no_gap_given_keeps_the_widest_crop(self): - _c, _r, tw, th = tile_grid(3, 1080, 1920) - w, _h, _x, _y = panel_geometry(1920, 1080, tw, th, (960, 400, 200, 200)) - assert w >= 500 - - def test_clamped_crop_keeps_the_tile_aspect(self): - _c, _r, tw, th = tile_grid(3, 1080, 1920) - w, h, _x, _y = panel_geometry(1920, 1080, tw, th, (960, 400, 200, 200), - neighbour_gap=530) - assert abs((w / h) - (tw / th)) < 0.05 - - def test_gaps_measure_the_closest_neighbour(self): - from clipwright.layouts.panel_layout import neighbour_gaps - gaps = neighbour_gaps([(100, 0, 0, 0), (400, 0, 0, 0), (1500, 0, 0, 0)]) - assert gaps == [300, 300, 1100] - - def test_filtergraph_clamps_every_tile(self): - graph = panel_filtergraph(1920, 1080, 1080, 1920, - [(300, 400, 200, 200), (900, 400, 200, 200), - (1500, 400, 200, 200)]) - widths = [int(seg.split("w=")[1].split(":")[0]) - for seg in graph.split("crop=")[1:]] - assert all(w <= 600 for w in widths) diff --git a/tests/test_restoring_static.py b/tests/test_restoring_static.py index e0fcdaf..623ce68 100644 --- a/tests/test_restoring_static.py +++ b/tests/test_restoring_static.py @@ -1,9 +1,5 @@ -"""/videos serving: a miss under /videos/<job_id>/ asks the restorer to bring -the job back before answering 404, keeping StaticFiles' Range support. - -Observed 6-sep-2026: reopening a project whose working files were gone fired -15 transcript requests (which restored it from R2 in ~25 s) and 15 <video> -loads at once; every player got a 404 until the user reloaded. +"""/videos serving: StaticFiles that refuses non-deliverables via ``guard``, +keeping Range support. There is no restorer hook in this fork. """ import os @@ -15,72 +11,33 @@ from clipwright.api.restoring_static import RestoringStaticFiles JOB = "cff3ad6c-c1e6-48e8-9a75-be74f39779c5" -def _app(tmp_path, restorer): +def _app(tmp_path, guard=None): app = Starlette() - app.mount("/videos", RestoringStaticFiles(directory=str(tmp_path), restorer=restorer)) + app.mount("/videos", RestoringStaticFiles(directory=str(tmp_path), guard=guard)) return TestClient(app), tmp_path -def test_existing_file_is_served_without_calling_the_restorer(tmp_path): - calls = [] - - async def restorer(job_id): - calls.append(job_id) - return True - - client, root = _app(tmp_path, restorer) +def test_existing_file_is_served(tmp_path): + client, root = _app(tmp_path) os.makedirs(root / JOB) (root / JOB / "clip_1.mp4").write_bytes(b"x" * 100) r = client.get(f"/videos/{JOB}/clip_1.mp4") - assert r.status_code == 200 and calls == [] + assert r.status_code == 200 -def test_missing_file_is_restored_then_served_with_ranges(tmp_path): - calls = [] +def test_guard_refuses_a_non_deliverable(tmp_path): + def guard(path): + return not path.endswith(".json") - async def restorer(job_id): - calls.append(job_id) - os.makedirs(root / job_id, exist_ok=True) - (root / job_id / "clip_1.mp4").write_bytes(bytes(range(100))) - return True - - client, root = _app(tmp_path, restorer) - r = client.get(f"/videos/{JOB}/clip_1.mp4", headers={"Range": "bytes=10-19"}) - assert calls == [JOB] - # The player's seek keeps working: the second lookup is the normal - # StaticFiles one. Range support itself depends on the starlette version - # (prod's honours it, an older local one answers the whole file). - if r.status_code == 206: - assert r.content == bytes(range(10, 20)) - assert r.headers["content-range"] == "bytes 10-19/100" - else: - assert r.status_code == 200 and r.content == bytes(range(100)) + client, root = _app(tmp_path, guard) + os.makedirs(root / JOB) + (root / JOB / "clip_1.mp4").write_bytes(b"x" * 100) + (root / JOB / "x_metadata.json").write_bytes(b"{}") + assert client.get(f"/videos/{JOB}/clip_1.mp4").status_code == 200 + # A refused path must look exactly like a missing one. + assert client.get(f"/videos/{JOB}/x_metadata.json").status_code == 404 -def test_restorer_false_or_failure_keeps_the_404(tmp_path): - async def says_no(job_id): - return False - - async def blows_up(job_id): - raise RuntimeError("R2 down") - - for restorer in (says_no, blows_up): - client, _root = _app(tmp_path, restorer) - assert client.get(f"/videos/{JOB}/clip_1.mp4").status_code == 404 - - -def test_paths_without_a_job_segment_never_call_the_restorer(tmp_path): - calls = [] - - async def restorer(job_id): - calls.append(job_id) - return True - - client, _root = _app(tmp_path, restorer) - assert client.get("/videos/robots.txt").status_code == 404 - assert calls == [] - - -def test_no_restorer_behaves_like_staticfiles(tmp_path): +def test_no_guard_behaves_like_staticfiles(tmp_path): client, _root = _app(tmp_path, None) assert client.get(f"/videos/{JOB}/clip_1.mp4").status_code == 404 diff --git a/tests/test_subtitles.py b/tests/test_subtitles.py index 2d31d75..86311d6 100644 --- a/tests/test_subtitles.py +++ b/tests/test_subtitles.py @@ -297,7 +297,7 @@ class TestAutoCaptionDefaults: """The caption look every clip now ships with (chosen 25-jul-2026).""" def test_style_is_complete(self): - from clipwright.media.subtitles import AUTO_CAPTION_STYLE, generate_ass + from clipwright.media.subtitles import AUTO_CAPTION_STYLE required = {"alignment", "font_name", "font_size", "font_color", "highlight_color", "border_color", "border_width", "effect", "base_opacity", "uppercase", diff --git a/tests/test_thumbnail_studio.py b/tests/test_thumbnail_studio.py index 494e285..d3932a8 100644 --- a/tests/test_thumbnail_studio.py +++ b/tests/test_thumbnail_studio.py @@ -1,5 +1,4 @@ """Thumbnail Studio pieces that run without Gemini or a video.""" -import pytest from PIL import Image from clipwright.media import thumbnail @@ -24,7 +23,6 @@ def test_burn_text_no_text_is_a_noop(): def test_finalize_cover_crops_to_1280x720_under_2mb(tmp_path): # A 2K-ish image with a different aspect ratio, full of noise so JPEG is heavy. - import random noisy = Image.effect_noise((2048, 1536), 80).convert("RGB") out = tmp_path / "t.jpg" thumbnail.finalize_thumbnail(noisy, str(out)) diff --git a/tests/test_watermark_delivery.py b/tests/test_watermark_delivery.py index 516bf87..438d094 100644 --- a/tests/test_watermark_delivery.py +++ b/tests/test_watermark_delivery.py @@ -39,9 +39,6 @@ class TestNames: assert not watermarked.job_is_marked(d) watermarked.mark_job(d) assert watermarked.job_is_marked(d) - watermarked.unmark_job(d) - assert not watermarked.job_is_marked(d) - watermarked.unmark_job(d) # idempotent class TestMarkDelivery: