Open-source platform for 3D AI agents. Turn text or a photo into a rigged, animated GLB avatar, give it an LLM brain, memory and a wallet, and embed it anywhere with one web component. Remote MCP server, x402 payments, Three.js, browser-native.
JavaScript 3d-generationai-agentsanimationavatardigital-humangenerative-aiglbgltfimage-to-3dllmmcpmcp-servermodel-context-protocolsolanatext-to-3dthreejsweb-componentswebglwebxrx402
feat(third_party): vendor neilsonnn/image-blaster, the image-to-3D-environment pipeline, with licence and docs
nirholascb6873e83755
diff --git a/docs/vendored-design-libraries.md b/docs/vendored-design-libraries.mdindex 1737046b8..519bb51da 100644--- a/docs/vendored-design-libraries.md+++ b/docs/vendored-design-libraries.md@@ -1,8 +1,9 @@# Vendored design libraries-Two complete MIT source trees from [Meng To](https://github.com/MengTo) live in+Three complete MIT source trees live in[third_party/](../third_party): the **ThreeUI Community** component catalog and the-**Design+Code agent skills** collection. This page is the three.ws-side guide to+**Design+Code agent skills** collection (both from [Meng To](https://github.com/MengTo)), and+**image-blaster**, an image-to-3D-environment pipeline. This page is the three.ws-side guide tothem: what is in each, what it is good for here, and how to actually run one.The vendoring contract itself (why they are byte-identical, which guards skip@@ -10,7 +11,7 @@ them, how to re-sync) is [third_party/README.md](../third_party/README.md). Readbefore you change anything under `third_party/`. The short version: never edit a filein place, and never import from `third_party/` at runtime.-## Why these two are in the repo+## Why these are in the repothree.ws is a Three.js platform whose product surfaces are galleries ofinteractive 3D things, and whose agents are driven by portable `SKILL.md`@@ -144,9 +145,47 @@ our own pack is authored.unanchored `demo/` ignore rule had to be negated for `third_party/`: a skillwithout its demo is a description instead of a proof.+## third_party/image-blaster++[neilsonnn/image-blaster](https://github.com/neilsonnn/image-blaster), a Claude+Code workspace that turns one image into a 3D environment in a few minutes: a+Gaussian splat (`.spz`) of the static scene from World Labs Marble, GLB/OBJ+meshes of each dynamic object from Hunyuan 3D on FAL, and ambient plus+per-object SFX from ElevenLabs on FAL. It is the closest open-source reference+to our own splat ([splat.md](./splat.md)) and Forge generation pipelines.++```+third_party/image-blaster/+ .claude/skills/ image-blast-{project,plate,world,3d,sfx,image-edit,uncover,wildcard}+ .claude/agents/ one subagent per pipeline stage+ .claude/scripts/ FAL queue, Hunyuan/Meshy 3D, nano-banana and gpt-image-2 edit+ app/ React + Vite viewer for the generated worlds+```++### Run it++```bash+cp -r third_party/image-blaster ~/image-blaster && cd ~/image-blaster+cp .env.example .env # WORLD_LABS_API_KEY and FAL_KEY+claude # then: put an image in input/ and ask it to "blast it"+```++Run it from a copy, not in place: it writes `input/` and `worlds/` output next+to itself, and the vendored tree must stay byte-identical to upstream.++### What is worth studying first++- `.claude/skills/image-blast-plate/SKILL.md`: the clean-plate step, which+ removes confirmed foreground objects from the source image before the world+ is generated.+- `.claude/scripts/asset-pipeline/fal-queue.mjs`: the shared FAL queue helper+ (`.env` loading, submit, poll, download) that the 3D and SFX stages reuse.+- `app/src/utils/worldLoader.ts`: how the viewer discovers generated worlds+ and resolves each world's local splat URL.+## Licence-Both trees are MIT, copyright 2026 Meng To. The licence text ships with each+All three trees are MIT. threeui and designcode-agent-skills are copyright 2026 Meng To; image-blaster is copyright 2026 Neilson Koerner-Safrata. The licence text ships with eachtree and must stay with it, and with anything derived from it.## See alsodiff --git a/third_party/README.md b/third_party/README.mdindex 4e6caabe1..bac9d4759 100644--- a/third_party/README.md+++ b/third_party/README.md@@ -20,11 +20,13 @@ diff against upstream rather than a merge against our edits.|---|---|---|---|---|| [threeui/](threeui) | [MengTo/threeui](https://github.com/MengTo/threeui) | `68802d5428071ada5c20db8094b1649e6bb770ed` (2026-09-01) | MIT, (c) 2026 Meng To | 430 || [designcode-agent-skills/](designcode-agent-skills) | [MengTo/Skills](https://github.com/MengTo/Skills) | `321c769739b823de5eb94eb3a52aa1974fe783a2` (2026-08-29) | MIT, (c) 2026 Meng To | 898 |+| [image-blaster/](image-blaster) | [neilsonnn/image-blaster](https://github.com/neilsonnn/image-blaster) | `4acb43ba126a12358f71838d1b1a05e856b10eaf` (2026-05-14) | MIT, (c) 2026 Neilson Koerner-Safrata | 140 |-Both licences ship with their tree ([threeui/LICENSE](threeui/LICENSE),-[designcode-agent-skills/LICENSE](designcode-agent-skills/LICENSE)). MIT+All licences ship with their tree ([threeui/LICENSE](threeui/LICENSE),+[designcode-agent-skills/LICENSE](designcode-agent-skills/LICENSE),+[image-blaster/LICENSE.md](image-blaster/LICENSE.md)). MITrequires the copyright notice and permission notice to travel with the copy, so-those two files are load-bearing: never delete or rewrite them.+those files are load-bearing: never delete or rewrite them.What each tree is for, with entry points and worked examples, is documented onour side in [docs/vendored-design-libraries.md](../docs/vendored-design-libraries.md).@@ -38,6 +40,16 @@ under [threeui/src/](threeui/src), 48 shader and scene studies under[threeui/packages/](threeui/packages), and the catalog application shell thatrenders each component with live controls, a variant picker and a source tab.+### image-blaster++A Claude Code workspace that turns one image into a 3D environment: a Gaussian+splat of the static scene (World Labs Marble), GLB/OBJ meshes of the dynamic+objects (Hunyuan 3D via FAL) and ambient plus per-object SFX (ElevenLabs via+FAL). The pipeline is eight skills under [image-blaster/.claude/skills/](image-blaster/.claude/skills),+six stage subagents, Node scripts under [image-blaster/.claude/scripts/](image-blaster/.claude/scripts)+and a React viewer in [image-blaster/app/](image-blaster/app). Needs+`WORLD_LABS_API_KEY` and `FAL_KEY`; see its README to run it.+### designcode-agent-skills132 portable `SKILL.md` folders in five groups (`web-design` 88,@@ -85,7 +97,7 @@ tests, installs, or ships:`eslint.config.js` and `.i18nrc.json` skip it for the same reason.- **Still scanned for credentials.** `scripts/check-secrets.mjs` deliberatelydoes NOT skip `third_party/`: a third party's leaked key is still a leaked key- in our history. Both trees pass clean.+ in our history. All trees pass clean.- **`demo/` needed an explicit re-include.** [.gitignore](../.gitignore) carriesan unanchored `demo/` rule for local NVIDIA TRELLIS output, which silentlyswallowed 578 demo files here. `!third_party/**/demo/` re-includes them.@@ -117,6 +129,7 @@ find third_party/threeui -type f | wc -l## Attribution-Both trees are the work of [Meng To](https://github.com/MengTo) and the-[Design+Code](https://designcode.io) team, used here under the MIT licence.+threeui and designcode-agent-skills are the work of [Meng To](https://github.com/MengTo) and the+[Design+Code](https://designcode.io) team; image-blaster is the work of+[Neilson Koerner-Safrata](https://github.com/neilsonnn). All are used here under the MIT licence.Anything we ship that derives from them keeps that attribution with it.diff --git a/third_party/image-blaster/.claude/agents/image-blast-3d.md b/third_party/image-blaster/.claude/agents/image-blast-3d.mdnew file mode 100644index 000000000..daa58a212--- /dev/null+++ b/third_party/image-blaster/.claude/agents/image-blast-3d.md@@ -0,0 +1,17 @@+---+name: image-blast-3d+description: Runs one Image Blast 3D object generation in the background. Use for non-blocking 3D generation when the prompt names exactly one world/object pair or one image plus object description.+tools: Read, Write, Glob, Bash+model: inherit+background: true+skills:+ - image-blast-3d+---++Run exactly one 3D object generation.++Use the preloaded `image-blast-3d` skill as the task contract. The prompt must include a world slug plus one object id/name, or one image path plus an object name/description. Honor optional provider arguments when present.++If the prompt is missing the world, missing the object, ambiguous, or asks for multiple objects, stop and report the blocker. Do not batch objects in this agent.++Run the generation to completion and report the object id, output directory, generated model files, and any failed/resumable request metadata.diff --git a/third_party/image-blaster/.claude/agents/image-blast-image-edit.md b/third_party/image-blaster/.claude/agents/image-blast-image-edit.mdnew file mode 100644index 000000000..426c7d489--- /dev/null+++ b/third_party/image-blaster/.claude/agents/image-blast-image-edit.md@@ -0,0 +1,17 @@+---+name: image-blast-image-edit+description: Runs one Image Blast image edit in the background. Use for non-blocking source cleanup, clean plates, object removal, or other prompt-based image edits.+tools: Read, Write, Glob, Bash+model: inherit+background: true+skills:+ - image-blast-image-edit+---++Run exactly one image edit.++Follow the preloaded `image-blast-image-edit` skill. The prompt must include at least one input image, one edit prompt, and the desired output location or world/source context.++If the prompt is missing the image, edit prompt, or output target, stop and report the blocker.++Run generation to completion. Report input images, output image, request metadata, role, and prompt used.diff --git a/third_party/image-blaster/.claude/agents/image-blast-plate.md b/third_party/image-blaster/.claude/agents/image-blast-plate.mdnew file mode 100644index 000000000..4801d5fd8--- /dev/null+++ b/third_party/image-blaster/.claude/agents/image-blast-plate.md@@ -0,0 +1,18 @@+---+name: image-blast-plate+description: Runs one Image Blast clean plate/source cleanup request in the background. Use for non-blocking removal of confirmed objects or specified content from a world source image.+tools: Read, Write, Glob, Bash+model: inherit+background: true+skills:+ - image-blast-plate+ - image-blast-image-edit+---++Run exactly one clean plate/source cleanup request.++Follow the preloaded `image-blast-plate` skill. Use the preloaded `image-blast-image-edit` skill as the generic image edit step inside the plate workflow.++The prompt must include one world slug and may include one source image/path plus removal instructions. If the prompt is missing the world or is ambiguous, stop and report the blocker.++Run generation to completion. Report input image, output plate image, request metadata, and prompt used.diff --git a/third_party/image-blaster/.claude/agents/image-blast-sfx.md b/third_party/image-blaster/.claude/agents/image-blast-sfx.mdnew file mode 100644index 000000000..3bbca8938--- /dev/null+++ b/third_party/image-blaster/.claude/agents/image-blast-sfx.md@@ -0,0 +1,17 @@+---+name: image-blast-sfx+description: Runs one Image Blast SFX generation in the background. Use for non-blocking ambience, object impact, or custom sound generation.+tools: Read, Write, Glob, Bash+model: inherit+background: true+skills:+ - image-blast-sfx+---++Run exactly one SFX generation request.++Use the preloaded `image-blast-sfx` skill as the task contract. The prompt must include one world slug plus one SFX target: world ambience, one object impact set, or one custom SFX prompt.++If the prompt is missing the world, missing the SFX target, or ambiguous, stop and report the blocker.++Run generation to completion. Report generated audio files, loop status, request metadata, prompt used, and trimming/quality notes from `audio_analysis`.diff --git a/third_party/image-blaster/.claude/agents/image-blast-wildcard.md b/third_party/image-blaster/.claude/agents/image-blast-wildcard.mdnew file mode 100644index 000000000..e8ea09768--- /dev/null+++ b/third_party/image-blaster/.claude/agents/image-blast-wildcard.md@@ -0,0 +1,19 @@+---+name: image-blast-wildcard+description: Runs one arbitrary FAL API operation in the background. Use for non-blocking generic FAL requests such as image generation, video models, upscalers, or any explicit FAL endpoints.+tools: Read, Write, Glob, WebFetch, WebSearch, Bash+model: inherit+background: true+skills:+ - image-blast-wildcard+---++Run exactly one arbitrary FAL API operation.++This is the post-confirmation execution agent. The prompt must start with `CONFIRMED_FAL_ENDPOINT: <endpoint>` and include the user's confirmed endpoint plus schema-shaped inputs. Do not select the model in this agent and do not continue from an unconfirmed natural-language request.++Follow the execution phase of the preloaded `image-blast-wildcard` skill. Re-fetch the confirmed endpoint with `expand=openapi-3.0` if needed to validate the input shape, then run `.claude/scripts/fal/run-fal.mjs`.++If the confirmation marker is missing, the endpoint cannot be fetched, required schema inputs cannot be inferred, a referenced local file is missing, or `FAL_KEY` is unavailable, stop and report the blocker.++Run generation to completion. Report the endpoint, input summary, output directory, downloaded output files, request metadata, and any raw result fields that were not downloadable.diff --git a/third_party/image-blaster/.claude/agents/image-blast-world.md b/third_party/image-blaster/.claude/agents/image-blast-world.mdnew file mode 100644index 000000000..c2f68b4e9--- /dev/null+++ b/third_party/image-blaster/.claude/agents/image-blast-world.md@@ -0,0 +1,19 @@+---+name: image-blast-world+description: Runs one Image Blast World Labs generation in the background. Use for non-blocking world generation when the prompt names one world slug and optional source image or world prompt.+tools: Read, Write, Glob, Bash+model: inherit+background: true+skills:+ - image-blast-world+---++Run exactly one World Labs world generation.++Follow the preloaded `image-blast-world` skill. Source cleanup belongs to `image-blast-plate` and should happen before this agent when needed.++The prompt must include one world slug and may include one image path or world prompt.++If the prompt is missing the world or asks for multiple worlds, stop and report the blocker.++Run generation or resume polling to completion. Report the source image used when relevant, generation index, world output path, app route, and any failure/resume metadata.diff --git a/third_party/image-blaster/.claude/hooks/input-check.sh b/third_party/image-blaster/.claude/hooks/input-check.shnew file mode 100755index 000000000..3206cb2e6--- /dev/null+++ b/third_party/image-blaster/.claude/hooks/input-check.sh@@ -0,0 +1,7 @@+#!/bin/bash+# Injects input/ staging area contents before every prompt.+cd "$CLAUDE_PROJECT_DIR" 2>/dev/null || cd "$(dirname "$0")/../.."++FILES=$(ls input/ 2>/dev/null | grep -v '^$' | tr '\n' ' ')+[ -n "$FILES" ] && echo "Staged in input/: $FILES"+exit 0diff --git a/third_party/image-blaster/.claude/hooks/setup-check.sh b/third_party/image-blaster/.claude/hooks/setup-check.shnew file mode 100755index 000000000..f27995802--- /dev/null+++ b/third_party/image-blaster/.claude/hooks/setup-check.sh@@ -0,0 +1,78 @@+#!/bin/bash+# Runs at session start. Stdout is injected into Claude's context.++cd "$CLAUDE_PROJECT_DIR" 2>/dev/null || cd "$(dirname "$0")/../.."++# --- .env checks ---+env_key_is_set() {+ local key="$1"+ local value++ value=$(awk -F= -v key="$key" '$1 == key { sub(/^[^=]*=/, ""); print; exit }' .env 2>/dev/null)+ value="${value%\"}"+ value="${value#\"}"+ value="${value%\'}"+ value="${value#\'}"++ [ -n "$value" ] || return 1++ case "$value" in+ your_world_labs_key_here|your_fal_key_here|changeme|CHANGE_ME|TODO|todo)+ return 1+ ;;+ esac++ return 0+}++print_key_help() {+ local key="$1"+ local purpose="$2"+ local url="$3"++ echo "⚠️ $key is missing in .env."+ echo " Used for: $purpose"+ echo " Tell the user to visit this URL to create or copy the key: $url"+}++env_file_exists=1+if [ ! -f .env ]; then+ env_file_exists=0+ echo "⚠️ .env is missing."+fi++missing_env_key=0++if ! env_key_is_set "WORLD_LABS_API_KEY"; then+ print_key_help "WORLD_LABS_API_KEY" "world generation" "https://platform.worldlabs.ai/"+ missing_env_key=1+fi++if ! env_key_is_set "FAL_KEY"; then+ print_key_help "FAL_KEY" "3D models, SFX, and image editing" "https://fal.ai/"+ missing_env_key=1+fi++if [ "$missing_env_key" -eq 1 ]; then+ if [ "$env_file_exists" -eq 0 ]; then+ echo " Tell the user: paste the key(s) here after visiting those URLs, and I can create .env from .env.example or add them for you."+ else+ echo " Tell the user: paste the missing key(s) here after visiting the URL(s), and I can update .env for you."+ fi+fi++# --- worlds/ status ---+if [ -d worlds ] && [ "$(ls worlds/ 2>/dev/null | wc -l | tr -d ' ')" -gt 0 ]; then+ WORLD_LIST=$(ls worlds/)+ echo "Worlds available: $(echo "$WORLD_LIST" | wc -l | tr -d ' ') — $(echo "$WORLD_LIST" | tr '\n' ' ')"+else+ echo "No worlds yet. Use /image-blast-project to set up a project, then Agent(image-blast-world) for non-blocking world generation."+fi++# --- input/ staging ---+if [ -d input ]; then+ FILES=$(ls input/ 2>/dev/null | grep -v '^$' | tr '\n' ' ')+ [ -n "$FILES" ] && echo "Staged in input/: $FILES"+fi++exit 0diff --git a/third_party/image-blaster/.claude/rules/project.md b/third_party/image-blaster/.claude/rules/project.mdnew file mode 100644index 000000000..b309d3d36--- /dev/null+++ b/third_party/image-blaster/.claude/rules/project.md@@ -0,0 +1,100 @@+# IMAGE-BLASTER++You are image-blaster, a set of CUTTING EDGE image-to-world skills, you can do things like create a 3D environment, SFX, and meshes from any input image you're given.++## Setup++1. Copy `.env.example` to `.env`.+2. Set `WORLD_LABS_API_KEY` for worlds and `FAL_KEY` for 3D/SFX/image editing.++## Directory Layout++```+worlds/+ <world-slug>/+ project.json+ scene.json+ image.json+ source/+ 0-<slug>.<ext>+ <image>.json+ output/+ world/+ sfx/+ <object>/+ object.json+ sfx/++input/+```++`scene.json` holds editor placement state. `source/` holds stable source files and per-image analysis. `output` holds generated files and request metadata.++Generated assets are disk-first: provider URLs in JSON are provenance and resume metadata only; the frontend loads local `/worlds/...` files.++## Indexed Files++Use one convention for generated files:++```text+N-slug.ext+.N-slug-request.json+```++- `N` is the generation index. `0` is the source/original; higher numbers are derived generations.+- `slug` is the stable family or asset slug.+- Hidden request JSON sits beside the file it generated.+- Multi-file generations share one index. A world generation can produce `N-world.json`, `N-world-plate.png`, `N-world.glb`, `N-world-pano.png`, `N-world-thumbnail.webp`, and `N-world-full_res.spz`.+- Inspect generated state with `ls -a <directory>` to get state, and read JSON files to get more details.+- Provider URLs are provenance inside JSON/request metadata. The frontend loads local files only.+- Generation scripts create new indexes and record provider responses. Generic project tools handle local indexed file operations such as path computation, explicit downloads, local asset repair, and deletion.+- Local repair fills missing files for an existing index from recorded JSON/request metadata; it does not create a new generation.++## Skill Invocation++- Every generation request (3D, world, SFX, image editing, etc.) must use Agent with `run_in_background: true` instead of parallel Skill calls, even if it's a single request so they are non-blocking.++## Showing User Folders++If the user specifically asks to open a folder, use the cross-platform helper and report the absolute path instead of calling `open`, `explorer`, or `xdg-open` directly:++```bash+node .claude/scripts/project/show-folder.mjs input+node .claude/scripts/project/show-folder.mjs worlds/<world-slug>+```++The helper prints a fallback command for CLI-only environments. It delegates to the OS file manager and may reuse an existing window when the platform does so by default.++## Don't Load Images Into Your Context++Don't `Read` generated PNG/JPG/WEBP files just to inspect or QC them. If user wants to see it, don't read it into context, just open the folder where it is located for them.++Trust script output, indexed filenames, and JSON sidecars for what generated. Only load images into context when multimodal source-image analysis is the task.++## Generation Scripts Are Synchronous++All generation scripts (`generate-edit.mjs`, `generate-world.mjs`, `generate-single-asset.mjs`, `fal-elevenlabs-sfx.mjs`, etc.) block until the API call completes and print their result to stdout. **Never** run them with `run_in_background: true` or use `tail -f` to monitor their output — just run them directly and read the printed result.++## Order of Operations++When doing an IMAGE-BLAST, it can be done in one-shot by following this order:++1. Inspect project state and `input/`.+2. Initialize project with slug if needed and stage inputs into `worlds/<slug>/source/`.+3. Immediately after staging input, check if something is already running on port 5173 with `lsof -i :5173 -sTCP:LISTEN -n -P`. If not, run `bun install && bun run dev` from the repository root to start the asset viewer. Then open the viewer for the user with `node .claude/scripts/project/show-url.mjs <world-slug>` and report the printed URL.+4. Uncover/analyze the source image.+5. Finish analysis, confirm objects, and write `object.json` per object. This is also the clean plate decision point: in one-shot mode, run `Agent(image-blast-plate)` and wait; otherwise ask whether to remove confirmed objects or anything else from the source image.+6. Create a world with `Agent(image-blast-world)` from the newest source image, which may be the generated plate.+7. Launch one 3D object agent per confirmed object to create 3D models+8. Launch SFX agents for ambience and also for every object to create object-specific sounds.+9. Report the final project state and the URLs to the user, you are done image-blasting!++Normally it is better to do checkins with the user at the end of each step, but if the user is enthusiastic about a full IMAGE-BLAST, you can do it in one-shot in this order.++## Fixing Generations++When the user wants to fix something generated, try to not override the skills by doing the work yourself, but rather identify the appropriate skill, and then use it to fix the generation, it will have the knowledge to fix the generation.++## Vibes+- in general be a hypeman for IMAGE-BLASTER, make sure to mean IMAGE-BLASTER throughout the conversation, enthusiastic and extremely knowledgeeable about computer graphics, aesthetics, and images+- no emojis, lowercase mostly, millenial, lowkey, drops good CGI colloquialisms and slangdiff --git a/third_party/image-blaster/.claude/scripts/asset-pipeline/fal-3d-provider.mjs b/third_party/image-blaster/.claude/scripts/asset-pipeline/fal-3d-provider.mjsnew file mode 100644index 000000000..a4f7908c6--- /dev/null+++ b/third_party/image-blaster/.claude/scripts/asset-pipeline/fal-3d-provider.mjs@@ -0,0 +1,73 @@+import {+ callFalQueue,+ downloadRemoteFiles,+ ensureDir,+ toModelInputUrl,+ writeJson+} from "./fal-queue.mjs";+import { buildRequestSummary, requestPath } from "./request-metadata.mjs";++export async function runFalImageTo3DProvider(options) {+ const {+ endpoint,+ providerSlug,+ imageInputKey,+ image,+ outputDir,+ assetName,+ input,+ metadataPath,+ metadata = {},+ pollIntervalMs = 10000,+ onSubmit,+ onStatus+ } = options;++ if (!endpoint) throw new Error("endpoint is required.");+ if (!providerSlug) throw new Error("providerSlug is required.");+ if (!imageInputKey) throw new Error("imageInputKey is required.");+ if (!image) throw new Error("Input image is required.");+ if (!outputDir) throw new Error("outputDir is required.");++ await ensureDir(outputDir);++ const normalizedInput = {+ ...input,+ [imageInputKey]: await toModelInputUrl(image)+ };+ const requestMetadataPath = metadataPath || requestPath(outputDir, 0, providerSlug);++ const result = await callFalQueue(endpoint, normalizedInput, {+ metadataPath: requestMetadataPath,+ metadata: {+ kind: "3d",+ provider: endpoint,+ provider_slug: providerSlug,+ input: normalizedInput,+ ...metadata+ },+ pollIntervalMs,+ onSubmit,+ onStatus+ });++ const downloaded = await downloadRemoteFiles(result.data, outputDir, providerSlug);+ const summary = buildRequestSummary({+ kind: "3d",+ provider: endpoint,+ metadata: {+ provider_slug: providerSlug,+ ...metadata+ },+ requestId: result.requestId,+ submittedAt: result.submittedAt,+ inputFiles: [image],+ outputFiles: downloaded.map((file) => file.path),+ downloadedFiles: downloaded,+ result: result.data,+ extra: { asset_name: assetName, input: normalizedInput }+ });++ await writeJson(requestMetadataPath, summary);+ return summary;+}diff --git a/third_party/image-blaster/.claude/scripts/asset-pipeline/fal-queue.mjs b/third_party/image-blaster/.claude/scripts/asset-pipeline/fal-queue.mjsnew file mode 100644index 000000000..a687cc91c--- /dev/null+++ b/third_party/image-blaster/.claude/scripts/asset-pipeline/fal-queue.mjs@@ -0,0 +1,452 @@+#!/usr/bin/env node+import { mkdir, readFile, stat, writeFile } from "node:fs/promises";+import path from "node:path";++let envLoaded = false;++export async function loadDotEnv(envPath = ".env") {+ if (envLoaded) return;+ envLoaded = true;++ let contents;+ try {+ contents = await readFile(envPath, "utf8");+ } catch {+ return;+ }++ for (const rawLine of contents.split(/\r?\n/)) {+ const line = rawLine.trim();+ if (!line || line.startsWith("#")) continue;++ const equalsIndex = line.indexOf("=");+ if (equalsIndex === -1) continue;++ const key = line.slice(0, equalsIndex).trim();+ let value = line.slice(equalsIndex + 1).trim();+ if (+ (value.startsWith('"') && value.endsWith('"')) ||+ (value.startsWith("'") && value.endsWith("'"))+ ) {+ value = value.slice(1, -1);+ }++ if (key && process.env[key] === undefined) {+ process.env[key] = value;+ }+ }+}++export async function requireEnv(name) {+ await loadDotEnv();+ const value = process.env[name];+ if (!value) {+ throw new Error(`${name} is not set. Add it to .env before running this script.`);+ }+ return value;+}++export function parseArgs(argv = process.argv.slice(2)) {+ const flags = {};+ const positionals = [];++ for (let index = 0; index < argv.length; index += 1) {+ const token = argv[index];+ if (!token.startsWith("--")) {+ positionals.push(token);+ continue;+ }++ const key = token.slice(2);+ const next = argv[index + 1];+ const value = next === undefined || next.startsWith("--") ? true : next;+ if (value !== true) index += 1;++ if (flags[key] === undefined) {+ flags[key] = value;+ } else if (Array.isArray(flags[key])) {+ flags[key].push(value);+ } else {+ flags[key] = [flags[key], value];+ }+ }++ return { flags, positionals };+}++export function one(flags, key, fallback = undefined) {+ const value = flags[key];+ if (Array.isArray(value)) return value.at(-1);+ return value ?? fallback;+}++export function many(flags, key) {+ const value = flags[key];+ if (value === undefined) return [];+ return Array.isArray(value) ? value : [value];+}++export async function ensureDir(dirPath) {+ await mkdir(dirPath, { recursive: true });+}++export async function pathExists(filePath) {+ try {+ await stat(filePath);+ return true;+ } catch {+ return false;+ }+}++export async function readJson(filePath) {+ const value = JSON.parse(await readFile(filePath, "utf8"));+ return isRequestMetadataPath(filePath) ? stripBase64(value) : value;+}++function isRequestMetadataPath(filePath) {+ return /-request\.json$/i.test(path.basename(filePath || ""));+}++export async function writeJson(filePath, value) {+ await ensureDir(path.dirname(filePath));+ const output = isRequestMetadataPath(filePath) ? stripBase64(value) : value;+ await writeFile(filePath, `${JSON.stringify(output, null, 2)}\n`);+}++export function slugify(value) {+ return String(value)+ .toLowerCase()+ .replace(/[^a-z0-9]+/g, "-")+ .replace(/^-+|-+$/g, "")+ .slice(0, 80);+}++export function isUrl(value) {+ return /^https?:\/\//i.test(value);+}++export function isDataUri(value) {+ return /^data:/i.test(value);+}++export function inferMime(filePath) {+ const extension = path.extname(filePath).toLowerCase();+ const mimes = {+ ".jpg": "image/jpeg",+ ".jpeg": "image/jpeg",+ ".png": "image/png",+ ".webp": "image/webp",+ ".gif": "image/gif",+ ".heic": "image/heic",+ ".heif": "image/heif",+ ".glb": "model/gltf-binary",+ ".obj": "model/obj",+ ".mtl": "model/mtl",+ ".fbx": "application/octet-stream",+ ".usdz": "model/vnd.usdz+zip"+ };+ return mimes[extension] ?? "application/octet-stream";+}++export async function fileToDataUri(filePath) {+ const data = await readFile(filePath);+ return `data:${inferMime(filePath)};base64,${data.toString("base64")}`;+}++export async function toModelInputUrl(value) {+ if (isUrl(value) || isDataUri(value)) return value;+ if (!(await pathExists(value))) {+ throw new Error(`Input file does not exist: ${value}`);+ }+ return fileToDataUri(value);+}++export async function downloadFile(url, outputPath) {+ await ensureDir(path.dirname(outputPath));++ if (isDataUri(url)) {+ const match = url.match(/^data:([^;,]+)?(;base64)?,(.*)$/);+ if (!match) throw new Error("Invalid data URI");+ const body = decodeURIComponent(match[3]);+ const buffer = match[2] ? Buffer.from(body, "base64") : Buffer.from(body);+ await writeFile(outputPath, buffer);+ return outputPath;+ }++ const response = await fetch(url);+ if (!response.ok) {+ throw new Error(`Download failed (${response.status}) for ${url}`);+ }++ const buffer = Buffer.from(await response.arrayBuffer());+ await writeFile(outputPath, buffer);+ return outputPath;+}++export function extensionForFile(file, fallback = ".bin") {+ if (file.file_name) {+ const extension = path.extname(file.file_name);+ if (extension) return extension;+ }++ const mime = file.content_type;+ const extensions = {+ "image/jpeg": ".jpg",+ "image/png": ".png",+ "image/webp": ".webp",+ "model/gltf-binary": ".glb",+ "model/obj": ".obj",+ "model/mtl": ".mtl"+ };+ return extensions[mime] ?? fallback;+}++export function safeFileName(value) {+ return String(value)+ .replace(/[^a-zA-Z0-9._-]+/g, "-")+ .replace(/^-+|-+$/g, "")+ .slice(0, 120);+}++export function collectRemoteFiles(value, label = "file", collected = [], seen = new Set()) {+ if (!value) return collected;++ if (Array.isArray(value)) {+ value.forEach((item, index) => collectRemoteFiles(item, `${label}-${index + 1}`, collected, seen));+ return collected;+ }++ if (typeof value === "object") {+ if (typeof value.url === "string" && !seen.has(value.url)) {+ seen.add(value.url);+ collected.push({ label, file: value });+ return collected;+ }++ for (const [key, child] of Object.entries(value)) {+ collectRemoteFiles(child, key, collected, seen);+ }+ }++ return collected;+}++export async function downloadRemoteFiles(result, outputDir, prefix = "file") {+ const downloaded = [];+ const remoteFiles = collectRemoteFiles(result);++ for (const { label, file } of remoteFiles) {+ const fallbackName = `${prefix}-${safeFileName(label)}${extensionForFile(file)}`;+ const fileName = safeFileName(file.file_name || fallbackName);+ const outputPath = path.join(outputDir, fileName);+ await downloadFile(file.url, outputPath);+ downloaded.push({+ label,+ path: outputPath,+ source: file+ });+ }++ return downloaded;+}++function isBase64Field(key) {+ return /base64|b64/i.test(String(key || ""));+}++export function stripBase64(value, key = "") {+ if (typeof value === "string") {+ if (isDataUri(value) || isBase64Field(key)) return "[stripped]";+ return value;+ }++ if (Array.isArray(value)) {+ return value.map((item) => stripBase64(item, key));+ }++ if (value && typeof value === "object") {+ return Object.fromEntries(+ Object.entries(value).map(([childKey, child]) => [+ childKey,+ stripBase64(child, childKey)+ ])+ );+ }++ return value;+}++export const sanitizeForMetadata = stripBase64;++async function updateMetadata(metadataPath, patch) {+ if (!metadataPath) return;+ const previous = (await pathExists(metadataPath)) ? await readJson(metadataPath) : {};+ await writeJson(metadataPath, {+ schema_version: 1,+ ...previous,+ ...patch,+ updated_at: new Date().toISOString()+ });+}++export async function submitFalQueue(endpoint, input, options = {}) {+ const {+ metadataPath,+ metadata = {},+ onSubmit+ } = options;++ const falKey = await requireEnv("FAL_KEY");+ const submittedAt = new Date().toISOString();++ const submitResponse = await fetch(`https://queue.fal.run/${endpoint}`, {+ method: "POST",+ headers: {+ Authorization: `Key ${falKey}`,+ "Content-Type": "application/json"+ },+ body: JSON.stringify(input)+ });++ const submitBody = await submitResponse.json().catch(() => ({}));++ if (!submitResponse.ok) {+ throw new Error(`FAL submit failed (${submitResponse.status}).`);+ }++ const requestId = submitBody.request_id;+ if (!requestId) {+ throw new Error("FAL submit response did not include request_id.");+ }++ const submitted = stripBase64({+ ...metadata,+ endpoint,+ request_id: requestId,+ status: "submitted",+ submitted_at: submittedAt,+ status_url: submitBody.status_url,+ response_url: submitBody.response_url+ });++ await updateMetadata(metadataPath, submitted);+ if (onSubmit) await onSubmit(submitted);++ return submitted;+}++export async function pollFalQueue(endpoint, requestId, options = {}) {+ const {+ statusUrl: providedStatusUrl,+ metadataPath,+ pollIntervalMs = 5000,+ logs = true,+ onStatus+ } = options;++ const falKey = await requireEnv("FAL_KEY");+ let statusBody;+ while (true) {+ const requestStatusUrl = new URL(+ providedStatusUrl || `https://queue.fal.run/${endpoint}/requests/${requestId}/status`+ );+ if (logs) requestStatusUrl.searchParams.set("logs", "1");++ const statusResponse = await fetch(requestStatusUrl, {+ headers: { Authorization: `Key ${falKey}` }+ });+ statusBody = await statusResponse.json().catch(() => ({}));++ if (!statusResponse.ok) {+ throw new Error(`FAL status failed (${statusResponse.status}).`);+ }++ const statusPatch = {+ endpoint,+ request_id: requestId,+ status: statusBody.status || "UNKNOWN",+ checked_at: new Date().toISOString(),+ queue_status: sanitizeForMetadata(statusBody)+ };+ await updateMetadata(metadataPath, statusPatch);+ if (onStatus) await onStatus(statusPatch);++ if (statusBody.status === "COMPLETED") {+ if (statusBody.error) {+ const message = typeof statusBody.error === "string" ? `: ${statusBody.error}` : "";+ throw new Error(`FAL request failed${message}.`);+ }+ break;+ }++ await new Promise((resolve) => setTimeout(resolve, pollIntervalMs));+ }++ return {+ endpoint,+ request_id: requestId,+ status: statusBody+ };+}++export async function getFalQueueResult(endpoint, requestId, options = {}) {+ const {+ responseUrl,+ metadataPath+ } = options;++ const falKey = await requireEnv("FAL_KEY");+ const resultUrl = responseUrl || `https://queue.fal.run/${endpoint}/requests/${requestId}`;+ const resultResponse = await fetch(resultUrl, {+ headers: { Authorization: `Key ${falKey}` }+ });+ const resultBody = await resultResponse.json().catch(() => ({}));+ if (!resultResponse.ok) {+ throw new Error(`FAL result failed (${resultResponse.status}).`);+ }++ await updateMetadata(metadataPath, {+ endpoint,+ request_id: requestId,+ status: "completed",+ completed_at: new Date().toISOString(),+ result: sanitizeForMetadata(resultBody)+ });++ return {+ requestId,+ data: resultBody+ };+}++export async function callFalQueue(endpoint, input, options = {}) {+ const {+ metadataPath,+ metadata = {},+ pollIntervalMs = 5000,+ logs = true,+ onSubmit,+ onStatus+ } = options;++ const submitted = await submitFalQueue(endpoint, input, { metadataPath, metadata, onSubmit });+ const status = await pollFalQueue(endpoint, submitted.request_id, {+ statusUrl: submitted.status_url,+ metadataPath,+ pollIntervalMs,+ logs,+ onStatus+ });+ const result = await getFalQueueResult(endpoint, submitted.request_id, {+ responseUrl: submitted.response_url,+ metadataPath+ });++ return {+ requestId: submitted.request_id,+ submittedAt: submitted.submitted_at,+ status: status.status,+ data: result.data+ };+}diff --git a/third_party/image-blaster/.claude/scripts/asset-pipeline/generate-single-asset.mjs b/third_party/image-blaster/.claude/scripts/asset-pipeline/generate-single-asset.mjsnew file mode 100644index 000000000..73d220843--- /dev/null+++ b/third_party/image-blaster/.claude/scripts/asset-pipeline/generate-single-asset.mjs@@ -0,0 +1,636 @@+#!/usr/bin/env node+import { readdir, rename } from "node:fs/promises";+import path from "node:path";+import {+ DEFAULT_HUNYUAN_ENABLE_PBR,+ DEFAULT_HUNYUAN_FACE_COUNT,+ DEFAULT_HUNYUAN_GENERATE_TYPE,+ DEFAULT_HUNYUAN_POLYGON_TYPE,+ HUNYUAN_3D_PROVIDER,+ runHunyuan3D+} from "./hunyuan-3d.mjs";+import {+ DEFAULT_MESHY_ANIMATION_ACTION_ID,+ DEFAULT_MESHY_ENABLE_ANIMATION,+ DEFAULT_MESHY_ENABLE_PBR,+ DEFAULT_MESHY_ENABLE_RIGGING,+ DEFAULT_MESHY_ENABLE_SAFETY_CHECKER,+ DEFAULT_MESHY_RIGGING_HEIGHT_METERS,+ DEFAULT_MESHY_SHOULD_REMESH,+ DEFAULT_MESHY_SHOULD_TEXTURE,+ DEFAULT_MESHY_SYMMETRY_MODE,+ DEFAULT_MESHY_TARGET_POLYCOUNT,+ DEFAULT_MESHY_TOPOLOGY,+ MESHY_3D_PROVIDER,+ runMeshy3D+} from "./meshy-3d.mjs";+import { runImageEdit } from "./image-edit.mjs";+import {+ downloadRemoteFiles,+ ensureDir,+ getFalQueueResult,+ one,+ parseArgs,+ pathExists,+ pollFalQueue,+ readJson,+ safeFileName,+ sanitizeForMetadata,+ slugify,+ writeJson+} from "./fal-queue.mjs";+import {+ artifactPath,+ buildRequestSummary,+ nextIndex,+ parseIndexedName,+ requestPath+} from "./request-metadata.mjs";++const IMAGE_EXTENSIONS = new Set([".avif", ".gif", ".jpeg", ".jpg", ".png", ".webp"]);+const MODEL_EXTENSIONS = new Set([".blend", ".fbx", ".glb", ".obj", ".stl", ".usdz"]);+const GENERATED_OBJECT_FIELDS = new Set(["status"]);+export const DEFAULT_3D_PROVIDER = HUNYUAN_3D_PROVIDER;+const MODEL_PROVIDER_ALIASES = new Map([+ ["meshy", MESHY_3D_PROVIDER],+ ["fal-ai/meshy/v6/image-to-3d", MESHY_3D_PROVIDER],+ ["hunyuan", HUNYUAN_3D_PROVIDER],+ ["hunyuan-3d", HUNYUAN_3D_PROVIDER],+ ["hunyuan3d-v3", HUNYUAN_3D_PROVIDER],+ ["fal-ai/hunyuan3d-v3/image-to-3d", HUNYUAN_3D_PROVIDER],+ ["fal-ai/hunyuan-3d/v3.1/pro/image-to-3d", HUNYUAN_3D_PROVIDER]+]);++async function readJsonIfExists(filePath) {+ return (await pathExists(filePath)) ? readJson(filePath) : undefined;+}++async function directoryFiles(dirPath) {+ const entries = await readdir(dirPath, { withFileTypes: true }).catch(() => []);+ return entries+ .filter((entry) => entry.isFile())+ .map((entry) => path.join(dirPath, entry.name));+}++function cleanObject(object, workingDir) {+ const cleaned = { ...object, working_dir: object.working_dir || workingDir };+ for (const field of GENERATED_OBJECT_FIELDS) delete cleaned[field];+ return cleaned;+}++function collectSourceImages(object, directImage) {+ const images = new Set();++ if (directImage) images.add(directImage);++ for (const image of object.source_images || []) {+ images.add(image);+ }++ for (const evidence of object.evidence || []) {+ if (evidence.image) images.add(evidence.image);+ }++ return [...images];+}++function firstGeneratedImage(imageEditSummary) {+ return (imageEditSummary.downloaded_files || []).find((downloaded) => {+ const contentType = downloaded.source?.content_type || "";+ return contentType.startsWith("image/") || /\.(png|jpe?g|webp)$/i.test(downloaded.path);+ });+}++function buildDirectObject({ objectId, objectName, description, image, world }) {+ const name = objectName || objectId || path.basename(image, path.extname(image));+ const id = objectId || slugify(name);+ return {+ id,+ name,+ description: description || name,+ source_images: image ? [image] : [],+ evidence: image ? [{ image, notes: "Direct single-image object input" }] : [],+ generate_as_3d_object: true,+ working_dir: `worlds/${world}/output/${id}`+ };+}++function resolve3DProvider(value = DEFAULT_3D_PROVIDER) {+ const normalized = String(value || DEFAULT_3D_PROVIDER).trim().toLowerCase();+ const provider = MODEL_PROVIDER_ALIASES.get(normalized);+ if (!provider) {+ throw new Error(`Unsupported 3D provider "${value}". Use one of: meshy, hunyuan.`);+ }+ return provider;+}++function modelRequestPrefix(request, fallbackProvider) {+ if (request?.data?.provider_slug) return request.data.provider_slug;+ if (request?.data?.endpoint?.includes("hunyuan")) return HUNYUAN_3D_PROVIDER;+ if (request?.data?.endpoint?.includes("meshy")) return MESHY_3D_PROVIDER;+ return fallbackProvider || DEFAULT_3D_PROVIDER;+}++async function run3DProvider(options) {+ const { provider } = options;+ if (provider === HUNYUAN_3D_PROVIDER) {+ return runHunyuan3D(options);+ }+ if (provider === MESHY_3D_PROVIDER) {+ return runMeshy3D(options);+ }+ throw new Error(`Unsupported 3D provider "${provider}".`);+}++function nowIso() {+ return new Date().toISOString();+}++function statusText(value) {+ return String(value || "").toLowerCase();+}++function isCompletedRequest(request) {+ return ["completed", "succeeded", "success"].includes(statusText(request.data?.status));+}++function isFailedRequest(request) {+ const status = statusText(request.data?.status);+ return Boolean(request.data?.error) || ["failed", "error", "cancelled", "canceled"].includes(status);+}++function isUsableRequest(request) {+ return Boolean(request.data?.request_id && request.data?.endpoint) && !isFailedRequest(request);+}++function isActiveRequest(request) {+ return isUsableRequest(request) && !isCompletedRequest(request);+}++function latestByIndex(entries) {+ return entries+ .filter((entry) => Number.isInteger(entry.index))+ .sort((a, b) => b.index - a.index)+ .at(0);+}++async function latestArtifact(dirPath, slug, extensions) {+ const files = await directoryFiles(dirPath);+ const artifacts = files+ .map((filePath) => {+ const parsed = parseIndexedName(filePath);+ return parsed && !parsed.hidden && parsed.slug === slug && extensions.has(parsed.extension.toLowerCase())+ ? { ...parsed, path: filePath }+ : undefined;+ })+ .filter(Boolean);+ return latestByIndex(artifacts);+}++async function requestMetadataFiles(dirPath, slug, scope) {+ const files = await directoryFiles(dirPath);+ const requests = [];++ for (const filePath of files) {+ const parsed = parseIndexedName(filePath);+ if (!parsed?.hidden || parsed.slug !== slug || parsed.scope !== scope) continue;+ const data = await readJsonIfExists(filePath);+ if (!data) continue;+ requests.push({+ ...parsed,+ path: filePath,+ data+ });+ }++ return requests;+}++async function resolveObject(options) {+ const { world, objectId, directImage, objectName, description } = options;+ const directObject = directImage+ ? buildDirectObject({ objectId, objectName, description, image: directImage, world })+ : undefined;+ const resolvedId = objectId || directObject?.id;++ if (!resolvedId) {+ throw new Error("objectId or directImage is required.");+ }++ const objectDir = `worlds/${world}/output/${resolvedId}`;+ const objectJsonPath = path.join(objectDir, "object.json");+ const existing = await readJsonIfExists(objectJsonPath);++ if (existing?.object) {+ return {+ object: {+ ...cleanObject(existing.object, objectDir),+ ...(directImage+ ? {+ source_images: [...new Set([...(existing.object.source_images || []), directImage])],+ evidence: [+ ...(existing.object.evidence || []),+ { image: directImage, notes: "Direct single-image object input" }+ ]+ }+ : {})+ },+ objectDir,+ objectJsonPath+ };+ }++ if (directObject) {+ return {+ object: cleanObject(directObject, objectDir),+ objectDir,+ objectJsonPath+ };+ }++ throw new Error(`Object file not found: ${objectJsonPath}`);+}++async function writeObjectIntent(objectJsonPath, world, object) {+ const state = {+ schema_version: 1,+ world,+ object,+ updated_at: nowIso()+ };+ await writeJson(objectJsonPath, state);+ return state;+}++async function normalizeReferenceImage(downloadedImage, objectDir, objectId, requestIndex) {+ const extension = path.extname(downloadedImage.path) || ".png";+ const numberedPath = artifactPath(objectDir, requestIndex, objectId, extension);+ if (downloadedImage.path !== numberedPath) {+ await rename(downloadedImage.path, numberedPath);+ }+ return {+ ...downloadedImage,+ path: numberedPath+ };+}++async function normalizeModelFiles(downloadedFiles, objectDir, objectId, requestIndex) {+ const safeSlug = safeFileName(objectId);+ const seen = new Set();+ let primaryModelUsed = false;++ const normalized = [];+ for (let index = 0; index < downloadedFiles.length; index += 1) {+ const downloaded = downloadedFiles[index];+ const extension = path.extname(downloaded.path) || ".bin";+ const label = safeFileName(downloaded.label || `file-${index + 1}`);+ const usePrimaryName = MODEL_EXTENSIONS.has(extension.toLowerCase()) && !primaryModelUsed;+ if (usePrimaryName) primaryModelUsed = true;+ const baseName =+ usePrimaryName+ ? `${requestIndex}-${safeSlug}${extension}`+ : `${requestIndex}-${safeSlug}-${label}${extension}`;+ const dedupedName = seen.has(baseName)+ ? `${requestIndex}-${safeSlug}-${label}-${index + 1}${extension}`+ : baseName;+ seen.add(dedupedName);++ const outputPath = path.join(objectDir, dedupedName);+ if (downloaded.path !== outputPath) {+ await rename(downloaded.path, outputPath);+ }+ normalized.push({+ ...downloaded,+ path: outputPath+ });+ }++ return normalized;+}++async function resumeFalRequest(request, prefix, outputDir, pollIntervalMs = 5000) {+ const status = await pollFalQueue(request.data.endpoint, request.data.request_id, {+ statusUrl: request.data.status_url,+ metadataPath: request.path,+ pollIntervalMs+ });+ const result = await getFalQueueResult(request.data.endpoint, request.data.request_id, {+ responseUrl: request.data.response_url,+ metadataPath: request.path+ });+ const downloaded = await downloadRemoteFiles(result.data, outputDir, prefix);+ const completedAt = nowIso();+ const summary = buildRequestSummary({+ kind: request.data.kind,+ provider: request.data.provider || request.data.endpoint,+ endpoint: request.data.endpoint,+ metadata: {+ index: request.data.index ?? request.index,+ role: request.data.role,+ sfx_kind: request.data.sfx_kind,+ ...(request.data.kind === "3d"+ ? { provider_slug: request.data.provider_slug || prefix }+ : {})+ },+ requestId: request.data.request_id,+ submittedAt: request.data.submitted_at,+ completedAt,+ prompt: request.data.prompt,+ inputFiles: request.data.input_files || [],+ outputFiles: downloaded.map((file) => file.path),+ downloadedFiles: downloaded,+ result: result.data,+ extra: { queue_status: status.status }+ });++ await writeJson(request.path, summary);+ return summary;+}++export async function generateSingleObject(options) {+ const {+ world,+ objectId,+ directImage,+ objectName,+ description,+ imageEditPrompt,+ regenerate = false,+ imageEditProvider,+ modelProvider,+ hunyuanFaceCount = DEFAULT_HUNYUAN_FACE_COUNT,+ hunyuanEnablePbr = DEFAULT_HUNYUAN_ENABLE_PBR,+ hunyuanGenerateType = DEFAULT_HUNYUAN_GENERATE_TYPE,+ hunyuanPolygonType = DEFAULT_HUNYUAN_POLYGON_TYPE,+ meshyTopology = DEFAULT_MESHY_TOPOLOGY,+ meshyTargetPolycount = DEFAULT_MESHY_TARGET_POLYCOUNT,+ meshySymmetryMode = DEFAULT_MESHY_SYMMETRY_MODE,+ meshyShouldRemesh = DEFAULT_MESHY_SHOULD_REMESH,+ meshyShouldTexture = DEFAULT_MESHY_SHOULD_TEXTURE,+ meshyRiggingHeightMeters = DEFAULT_MESHY_RIGGING_HEIGHT_METERS,+ meshyAnimationActionId = DEFAULT_MESHY_ANIMATION_ACTION_ID,+ meshyEnableSafetyChecker = DEFAULT_MESHY_ENABLE_SAFETY_CHECKER,+ meshyEnableAnimation = DEFAULT_MESHY_ENABLE_ANIMATION,+ meshyEnableRigging = DEFAULT_MESHY_ENABLE_RIGGING,+ meshyEnablePbr = DEFAULT_MESHY_ENABLE_PBR,+ referenceOnly = false,+ regenerateReference = false+ } = options;++ if (!world) throw new Error("world is required.");+ if (!objectId && !directImage) throw new Error("objectId or directImage is required.");++ const resolved = await resolveObject({+ world,+ objectId,+ directImage,+ objectName,+ description+ });++ const object = cleanObject(resolved.object, resolved.objectDir);+ const provider = resolve3DProvider(modelProvider || object.model_provider || DEFAULT_3D_PROVIDER);+ const regenerateModel = regenerate || regenerateReference;+ await ensureDir(resolved.objectDir);+ await writeObjectIntent(resolved.objectJsonPath, world, object);++ const sourceImages = collectSourceImages(object, directImage);+ if (sourceImages.length === 0) {+ throw new Error(`Object ${object.id} does not have source images for image editing.`);+ }++ const imageRequests = regenerateReference ? [] : await requestMetadataFiles(resolved.objectDir, object.id, "image");+ const modelRequests = regenerateModel ? [] : await requestMetadataFiles(resolved.objectDir, object.id, "model");+ const activeImageRequest = latestByIndex(imageRequests.filter(isActiveRequest));+ const usableImageRequest = latestByIndex(imageRequests.filter(isUsableRequest));+ const activeModelRequest = latestByIndex(modelRequests.filter(isActiveRequest));+ const usableModelRequest = latestByIndex(modelRequests.filter(isUsableRequest));+ const existingImage = regenerateReference ? undefined : await latestArtifact(resolved.objectDir, object.id, IMAGE_EXTENSIONS);+ const existingModel = regenerateModel ? undefined : await latestArtifact(resolved.objectDir, object.id, MODEL_EXTENSIONS);++ if (existingModel && !activeModelRequest && !regenerateModel) {+ return {+ schema_version: 1,+ world,+ object,+ object_json: resolved.objectJsonPath,+ output_dir: resolved.objectDir,+ skipped: true,+ skip_reason: "Model artifact already exists. Pass --regenerate to create a new generation.",+ model: existingModel.path+ };+ }++ const requestIndex =+ activeModelRequest?.index ??+ (existingImage ? undefined : activeImageRequest?.index) ??+ (regenerateModel ? undefined : existingImage?.index) ??+ usableModelRequest?.index ??+ (existingImage ? undefined : usableImageRequest?.index) ??+ await nextIndex(resolved.objectDir, object.id);++ let generatedImagePath = existingImage?.path;+ let imageMetadataPath;+ let modelMetadataPath;+ let modelFiles = existingModel ? [existingModel.path] : [];++ try {+ if (!generatedImagePath) {+ const imageRequest =+ activeImageRequest && activeImageRequest.index === requestIndex+ ? activeImageRequest+ : usableImageRequest && usableImageRequest.index === requestIndex+ ? usableImageRequest+ : undefined;+ imageMetadataPath = imageRequest?.path || requestPath(resolved.objectDir, requestIndex, object.id, "image");+ if (!imageRequest && !imageEditPrompt) {+ throw new Error(+ `Image edit prompt is required to create a reference image for ${object.id}. Pass --image-edit-prompt "<prompt>".`+ );+ }+ const imageEdit = imageRequest+ ? await resumeFalRequest(imageRequest, "image-edit", resolved.objectDir)+ : await runImageEdit({+ provider: imageEditProvider || object.image_edit_provider,+ prompt: imageEditPrompt,+ images: sourceImages,+ outputDir: resolved.objectDir,+ metadataPath: imageMetadataPath,+ metadata: { index: requestIndex },+ numImages: 1,+ resolution: "1K",+ aspectRatio: "1:1",+ outputFormat: "png",+ limitGenerations: true+ });++ const rawGeneratedImage = firstGeneratedImage(imageEdit);+ if (!rawGeneratedImage) {+ throw new Error(`Image edit did not return a downloadable image for ${object.id}.`);+ }++ const generatedImage = await normalizeReferenceImage(+ rawGeneratedImage,+ resolved.objectDir,+ object.id,+ requestIndex+ );+ generatedImagePath = generatedImage.path;+ const imageEditMetadata = (await readJsonIfExists(imageMetadataPath)) || imageEdit;+ await writeJson(imageMetadataPath, {+ ...imageEditMetadata,+ kind: "2d",+ index: requestIndex,+ output_files: [generatedImage.path],+ downloaded_files: (imageEdit.downloaded_files || []).map((file) =>+ file.path === rawGeneratedImage.path ? { ...file, path: generatedImage.path } : file+ ),+ updated_at: nowIso()+ });+ }++ if (referenceOnly) {+ return {+ schema_version: 1,+ world,+ object,+ object_json: resolved.objectJsonPath,+ output_dir: resolved.objectDir,+ reference_only: true,+ reference_image: generatedImagePath,+ request_metadata: [imageMetadataPath].filter(Boolean)+ };+ }++ const currentModel = regenerateModel ? undefined : await latestArtifact(resolved.objectDir, object.id, MODEL_EXTENSIONS);+ if (!currentModel || activeModelRequest) {+ const modelRequest =+ activeModelRequest && activeModelRequest.index === requestIndex+ ? activeModelRequest+ : usableModelRequest && usableModelRequest.index === requestIndex+ ? usableModelRequest+ : undefined;+ modelMetadataPath = modelRequest?.path || requestPath(resolved.objectDir, requestIndex, object.id, "model");+ const modelGeneration = modelRequest+ ? await resumeFalRequest(+ modelRequest,+ modelRequestPrefix(modelRequest, provider),+ resolved.objectDir,+ 10000+ )+ : await run3DProvider({+ provider,+ image: generatedImagePath,+ outputDir: resolved.objectDir,+ metadataPath: modelMetadataPath,+ metadata: { index: requestIndex, provider_slug: provider },+ assetName: object.name,+ faceCount: hunyuanFaceCount,+ enablePbr: provider === MESHY_3D_PROVIDER ? meshyEnablePbr : hunyuanEnablePbr,+ generateType: hunyuanGenerateType,+ polygonType: hunyuanPolygonType,+ topology: meshyTopology,+ targetPolycount: meshyTargetPolycount,+ symmetryMode: meshySymmetryMode,+ shouldRemesh: meshyShouldRemesh,+ shouldTexture: meshyShouldTexture,+ riggingHeightMeters: meshyRiggingHeightMeters,+ animationActionId: meshyAnimationActionId,+ enableSafetyChecker: meshyEnableSafetyChecker,+ enableAnimation: meshyEnableAnimation,+ enableRigging: meshyEnableRigging+ });++ const normalizedModelFiles = await normalizeModelFiles(+ modelGeneration.downloaded_files || [],+ resolved.objectDir,+ object.id,+ requestIndex+ );+ modelFiles = normalizedModelFiles.map((file) => file.path);+ const modelMetadata = (await readJsonIfExists(modelMetadataPath)) || modelGeneration;+ await writeJson(modelMetadataPath, {+ ...modelMetadata,+ kind: "3d",+ index: requestIndex,+ provider_slug: modelMetadata.provider_slug || modelRequestPrefix(modelRequest, provider),+ output_files: modelFiles,+ downloaded_files: sanitizeForMetadata(normalizedModelFiles),+ updated_at: nowIso()+ });+ } else {+ modelFiles = [currentModel.path];+ }++ return {+ schema_version: 1,+ world,+ object,+ object_json: resolved.objectJsonPath,+ output_dir: resolved.objectDir,+ model_provider: provider,+ reference_image: generatedImagePath,+ model_files: modelFiles,+ request_metadata: [imageMetadataPath, modelMetadataPath].filter(Boolean)+ };+ } catch (error) {+ throw Object.assign(error, {+ object,+ object_json: resolved.objectJsonPath,+ output_dir: resolved.objectDir+ });+ }+}++export const generateSingleAsset = generateSingleObject;++async function main() {+ const { flags } = parseArgs();+ const world = one(flags, "world");+ const objectId = one(flags, "object-id") || one(flags, "asset-id");+ const directImage = one(flags, "image");++ if (!world || (!objectId && !directImage)) {+ throw new Error(+ "Usage: node generate-single-asset.mjs --world <world-name> (--object-id <object-id> | --image <path>) --image-edit-prompt <prompt> [--object-name <name>] [--description <text>] [--provider hunyuan|meshy] [--regenerate] [--regenerate-reference] [--reference-only] [--face-count <40000-1500000>] [--generate-type Normal|LowPoly|Geometry] [--polygon-type triangle|quadrilateral] [--target-polycount 30000] [--enable-pbr true|false]"+ );+ }++ const result = await generateSingleObject({+ world,+ objectId,+ directImage,+ objectName: one(flags, "object-name") || one(flags, "asset-name"),+ description: one(flags, "description"),+ imageEditPrompt: one(flags, "image-edit-prompt") || one(flags, "prompt"),+ regenerate: Boolean(flags.regenerate),+ regenerateReference: Boolean(flags["regenerate-reference"]),+ referenceOnly: Boolean(flags["reference-only"]),+ imageEditProvider: one(flags, "image-edit-provider"),+ modelProvider: one(flags, "provider") || one(flags, "3d-provider") || one(flags, "model-provider"),+ hunyuanFaceCount: one(flags, "face-count", DEFAULT_HUNYUAN_FACE_COUNT),+ hunyuanEnablePbr: one(flags, "enable-pbr", DEFAULT_HUNYUAN_ENABLE_PBR),+ hunyuanGenerateType: one(flags, "generate-type", DEFAULT_HUNYUAN_GENERATE_TYPE),+ hunyuanPolygonType: one(flags, "polygon-type", DEFAULT_HUNYUAN_POLYGON_TYPE),+ meshyTopology: one(flags, "topology", DEFAULT_MESHY_TOPOLOGY),+ meshyTargetPolycount: one(flags, "target-polycount", DEFAULT_MESHY_TARGET_POLYCOUNT),+ meshySymmetryMode: one(flags, "symmetry-mode", DEFAULT_MESHY_SYMMETRY_MODE),+ meshyShouldRemesh: one(flags, "should-remesh", DEFAULT_MESHY_SHOULD_REMESH),+ meshyShouldTexture: one(flags, "should-texture", DEFAULT_MESHY_SHOULD_TEXTURE),+ meshyRiggingHeightMeters: one(flags, "rigging-height-meters", DEFAULT_MESHY_RIGGING_HEIGHT_METERS),+ meshyAnimationActionId: one(flags, "animation-action-id", DEFAULT_MESHY_ANIMATION_ACTION_ID),+ meshyEnableSafetyChecker: one(flags, "enable-safety-checker", DEFAULT_MESHY_ENABLE_SAFETY_CHECKER),+ meshyEnableAnimation: one(flags, "enable-animation", DEFAULT_MESHY_ENABLE_ANIMATION),+ meshyEnableRigging: one(flags, "enable-rigging", DEFAULT_MESHY_ENABLE_RIGGING),+ meshyEnablePbr: one(flags, "enable-pbr", DEFAULT_MESHY_ENABLE_PBR)+ });++ console.log(JSON.stringify(result, null, 2));+}++if (import.meta.url === `file://${process.argv[1]}`) {+ main().catch((error) => {+ console.error(error.message);+ process.exit(1);+ });+}diff --git a/third_party/image-blaster/.claude/scripts/asset-pipeline/gpt-image-2-edit.mjs b/third_party/image-blaster/.claude/scripts/asset-pipeline/gpt-image-2-edit.mjsnew file mode 100644index 000000000..b7bbbcc2f--- /dev/null+++ b/third_party/image-blaster/.claude/scripts/asset-pipeline/gpt-image-2-edit.mjs@@ -0,0 +1,113 @@+#!/usr/bin/env node+import path from "node:path";+import {+ callFalQueue,+ downloadRemoteFiles,+ ensureDir,+ many,+ one,+ parseArgs,+ toModelInputUrl,+ writeJson+} from "./fal-queue.mjs";+import { buildRequestSummary, requestPath } from "./request-metadata.mjs";++const ENDPOINT = "openai/gpt-image-2/edit";++export async function runGptImage2Edit(options) {+ const {+ prompt,+ images,+ outputDir,+ numImages = 1,+ imageSize = "auto",+ quality = "medium",+ outputFormat = "png",+ maskImage,+ metadataPath,+ metadata = {},+ onSubmit,+ onStatus+ } = options;++ if (!prompt) throw new Error("GPT Image 2 prompt is required.");+ if (!images?.length) throw new Error("At least one input image is required.");+ if (!outputDir) throw new Error("outputDir is required.");++ await ensureDir(outputDir);++ const imageUrls = [];+ for (const image of images) {+ imageUrls.push(await toModelInputUrl(image));+ }++ const input = {+ prompt,+ image_urls: imageUrls,+ image_size: imageSize,+ quality,+ num_images: Number(numImages),+ output_format: outputFormat+ };++ if (maskImage) {+ input.mask_image_url = await toModelInputUrl(maskImage);+ }++ const result = await callFalQueue(ENDPOINT, input, {+ metadataPath: metadataPath || requestPath(outputDir, 0, "gpt-image-2"),+ metadata: { kind: "2d", provider: ENDPOINT, ...metadata },+ onSubmit,+ onStatus+ });++ const downloaded = await downloadRemoteFiles(result.data, outputDir, "gpt-image-2");+ const summary = buildRequestSummary({+ kind: "2d",+ provider: ENDPOINT,+ metadata,+ requestId: result.requestId,+ submittedAt: result.submittedAt,+ prompt,+ inputFiles: images,+ outputFiles: downloaded.map((file) => file.path),+ downloadedFiles: downloaded,+ result: result.data+ });++ await writeJson(metadataPath || requestPath(outputDir, 0, "gpt-image-2"), summary);+ return summary;+}++async function main() {+ const { flags } = parseArgs();+ const images = [...many(flags, "image"), ...many(flags, "input-image")];+ const prompt = one(flags, "prompt");+ const outputDir = one(flags, "output-dir");++ if (!prompt || !outputDir || images.length === 0) {+ throw new Error(+ "Usage: node gpt-image-2-edit.mjs --image <path-or-url> --prompt <prompt> --output-dir <dir>"+ );+ }++ const summary = await runGptImage2Edit({+ prompt,+ images,+ outputDir,+ numImages: one(flags, "num-images", 1),+ imageSize: one(flags, "image-size", "auto"),+ quality: one(flags, "quality", "medium"),+ outputFormat: one(flags, "format", "png"),+ maskImage: one(flags, "mask-image")+ });++ console.log(JSON.stringify(summary, null, 2));+}++if (import.meta.url === `file://${process.argv[1]}`) {+ main().catch((error) => {+ console.error(error.message);+ process.exit(1);+ });+}diff --git a/third_party/image-blaster/.claude/scripts/asset-pipeline/hunyuan-3d.mjs b/third_party/image-blaster/.claude/scripts/asset-pipeline/hunyuan-3d.mjsnew file mode 100644index 000000000..6cb652392--- /dev/null+++ b/third_party/image-blaster/.claude/scripts/asset-pipeline/hunyuan-3d.mjs@@ -0,0 +1,138 @@+#!/usr/bin/env node+import {+ one,+ parseArgs,+} from "./fal-queue.mjs";+import { runFalImageTo3DProvider } from "./fal-3d-provider.mjs";++export const HUNYUAN_3D_ENDPOINT = "fal-ai/hunyuan3d-v3/image-to-3d";+export const HUNYUAN_3D_PROVIDER = "hunyuan";+export const DEFAULT_HUNYUAN_FACE_COUNT = 50000;+export const DEFAULT_HUNYUAN_ENABLE_PBR = true;+export const DEFAULT_HUNYUAN_GENERATE_TYPE = "Normal";+export const DEFAULT_HUNYUAN_POLYGON_TYPE = "triangle";++const MIN_FACE_COUNT = 40000;+const MAX_FACE_COUNT = 1500000;+const GENERATE_TYPES = new Map([+ ["normal", "Normal"],+ ["lowpoly", "LowPoly"],+ ["geometry", "Geometry"]+]);+const POLYGON_TYPES = new Map([+ ["triangle", "triangle"],+ ["quadrilateral", "quadrilateral"]+]);++function normalizeFaceCount(value) {+ const faceCount = Number(value);+ if (!Number.isInteger(faceCount) || faceCount < MIN_FACE_COUNT || faceCount > MAX_FACE_COUNT) {+ throw new Error(+ `face-count must be an integer between ${MIN_FACE_COUNT} and ${MAX_FACE_COUNT}.`+ );+ }+ return faceCount;+}++function normalizeGenerateType(value) {+ const normalized = GENERATE_TYPES.get(String(value).trim().toLowerCase());+ if (!normalized) {+ throw new Error("generate-type must be one of: Normal, LowPoly, Geometry.");+ }+ return normalized;+}++function normalizePolygonType(value) {+ const normalized = POLYGON_TYPES.get(String(value).trim().toLowerCase());+ if (!normalized) {+ throw new Error("polygon-type must be one of: triangle, quadrilateral.");+ }+ return normalized;+}++function normalizeBoolean(value) {+ if (typeof value === "boolean") return value;+ const normalized = String(value).trim().toLowerCase();+ if (["true", "1", "yes", "on"].includes(normalized)) return true;+ if (["false", "0", "no", "off"].includes(normalized)) return false;+ throw new Error("enable-pbr must be true or false.");+}++export async function runHunyuan3D(options) {+ const {+ image,+ outputDir,+ assetName,+ faceCount = DEFAULT_HUNYUAN_FACE_COUNT,+ enablePbr = DEFAULT_HUNYUAN_ENABLE_PBR,+ generateType = DEFAULT_HUNYUAN_GENERATE_TYPE,+ polygonType = DEFAULT_HUNYUAN_POLYGON_TYPE,+ metadataPath,+ metadata = {},+ onSubmit,+ onStatus+ } = options;++ if (!image) throw new Error("Input image is required.");+ if (!outputDir) throw new Error("outputDir is required.");++ const normalizedFaceCount = normalizeFaceCount(faceCount);+ const normalizedGenerateType = normalizeGenerateType(generateType);+ const normalizedEnablePbr = normalizeBoolean(enablePbr);+ const normalizedPolygonType = normalizePolygonType(polygonType);++ const input = {+ generate_type: normalizedGenerateType,+ enable_pbr: normalizedEnablePbr,+ face_count: normalizedFaceCount+ };+ if (normalizedGenerateType === "LowPoly") {+ input.polygon_type = normalizedPolygonType;+ }++ return runFalImageTo3DProvider({+ endpoint: HUNYUAN_3D_ENDPOINT,+ providerSlug: HUNYUAN_3D_PROVIDER,+ imageInputKey: "input_image_url",+ image,+ outputDir,+ assetName,+ input,+ metadataPath,+ metadata,+ pollIntervalMs: 10000,+ onSubmit,+ onStatus+ });+}++async function main() {+ const { flags } = parseArgs();+ const image = one(flags, "image") || one(flags, "input-image");+ const outputDir = one(flags, "output-dir");++ if (!image || !outputDir) {+ throw new Error(+ "Usage: node hunyuan-3d.mjs --image <path-or-url> --output-dir <dir> [--asset-name <name>] [--face-count <40000-1500000>] [--generate-type Normal|LowPoly|Geometry] [--polygon-type triangle|quadrilateral] [--enable-pbr true|false]"+ );+ }++ const summary = await runHunyuan3D({+ image,+ outputDir,+ assetName: one(flags, "asset-name"),+ faceCount: one(flags, "face-count", DEFAULT_HUNYUAN_FACE_COUNT),+ enablePbr: one(flags, "enable-pbr", DEFAULT_HUNYUAN_ENABLE_PBR),+ generateType: one(flags, "generate-type", DEFAULT_HUNYUAN_GENERATE_TYPE),+ polygonType: one(flags, "polygon-type", DEFAULT_HUNYUAN_POLYGON_TYPE)+ });++ console.log(JSON.stringify(summary, null, 2));+}++if (import.meta.url === `file://${process.argv[1]}`) {+ main().catch((error) => {+ console.error(error.message);+ process.exit(1);+ });+}diff --git a/third_party/image-blaster/.claude/scripts/asset-pipeline/image-edit.mjs b/third_party/image-blaster/.claude/scripts/asset-pipeline/image-edit.mjsnew file mode 100644index 000000000..ef9680860--- /dev/null+++ b/third_party/image-blaster/.claude/scripts/asset-pipeline/image-edit.mjs@@ -0,0 +1,83 @@+#!/usr/bin/env node+import { runGptImage2Edit } from "./gpt-image-2-edit.mjs";+import { runNanoBananaEdit } from "./nano-banana-edit.mjs";+import { loadDotEnv, many, one, parseArgs } from "./fal-queue.mjs";+import { requestPath } from "./request-metadata.mjs";++const PROVIDERS = new Set(["nano-banana", "gpt-image-2"]);++export function resolveImageEditProvider(provider) {+ const resolved = provider || process.env.ASSET_IMAGE_EDIT_PROVIDER || "nano-banana";+ if (!PROVIDERS.has(resolved)) {+ throw new Error(+ `Unsupported image edit provider "${resolved}". Use one of: ${[...PROVIDERS].join(", ")}.`+ );+ }+ return resolved;+}++export async function runImageEdit(options) {+ await loadDotEnv();+ const provider = resolveImageEditProvider(options.provider);+ let summary;++ if (provider === "gpt-image-2") {+ summary = await runGptImage2Edit({+ ...options,+ metadataPath: options.metadataPath || requestPath(options.outputDir, 0, "image-edit"),+ quality: options.quality || "medium",+ imageSize: options.imageSize || "auto"+ });+ } else {+ summary = await runNanoBananaEdit({+ ...options,+ metadataPath: options.metadataPath || requestPath(options.outputDir, 0, "image-edit"),+ resolution: options.resolution || "1K",+ aspectRatio: options.aspectRatio || "auto"+ });+ }++ const normalizedSummary = {+ ...summary,+ provider_alias: provider+ };++ return normalizedSummary;+}++async function main() {+ const { flags } = parseArgs();+ const images = [...many(flags, "image"), ...many(flags, "input-image")];+ const prompt = one(flags, "prompt");+ const outputDir = one(flags, "output-dir");++ if (!prompt || !outputDir || images.length === 0) {+ throw new Error(+ "Usage: node image-edit.mjs --image <path-or-url> --prompt <prompt> --output-dir <dir> [--provider nano-banana|gpt-image-2]"+ );+ }++ const summary = await runImageEdit({+ provider: one(flags, "provider"),+ prompt,+ images,+ outputDir,+ numImages: one(flags, "num-images", 1),+ outputFormat: one(flags, "format", "png"),+ resolution: one(flags, "resolution", "1K"),+ aspectRatio: one(flags, "aspect-ratio", "auto"),+ quality: one(flags, "quality", "medium"),+ imageSize: one(flags, "image-size", "auto"),+ maskImage: one(flags, "mask-image"),+ seed: one(flags, "seed")+ });++ console.log(JSON.stringify(summary, null, 2));+}++if (import.meta.url === `file://${process.argv[1]}`) {+ main().catch((error) => {+ console.error(error.message);+ process.exit(1);+ });+}diff --git a/third_party/image-blaster/.claude/scripts/asset-pipeline/meshy-3d.mjs b/third_party/image-blaster/.claude/scripts/asset-pipeline/meshy-3d.mjsnew file mode 100644index 000000000..5092fd61e--- /dev/null+++ b/third_party/image-blaster/.claude/scripts/asset-pipeline/meshy-3d.mjs@@ -0,0 +1,151 @@+#!/usr/bin/env node+import { one, parseArgs } from "./fal-queue.mjs";+import { runFalImageTo3DProvider } from "./fal-3d-provider.mjs";++export const MESHY_3D_ENDPOINT = "fal-ai/meshy/v6/image-to-3d";+export const MESHY_3D_PROVIDER = "meshy";+export const DEFAULT_MESHY_TOPOLOGY = "triangle";+export const DEFAULT_MESHY_TARGET_POLYCOUNT = 30000;+export const DEFAULT_MESHY_SYMMETRY_MODE = "auto";+export const DEFAULT_MESHY_SHOULD_REMESH = true;+export const DEFAULT_MESHY_SHOULD_TEXTURE = true;+export const DEFAULT_MESHY_RIGGING_HEIGHT_METERS = 1.7;+export const DEFAULT_MESHY_ANIMATION_ACTION_ID = 12;+export const DEFAULT_MESHY_ENABLE_SAFETY_CHECKER = true;+export const DEFAULT_MESHY_ENABLE_ANIMATION = false;+export const DEFAULT_MESHY_ENABLE_RIGGING = false;+export const DEFAULT_MESHY_ENABLE_PBR = true;++function normalizeBoolean(value, fieldName) {+ if (typeof value === "boolean") return value;+ const normalized = String(value).trim().toLowerCase();+ if (["true", "1", "yes", "on"].includes(normalized)) return true;+ if (["false", "0", "no", "off"].includes(normalized)) return false;+ throw new Error(`${fieldName} must be true or false.`);+}++function normalizeInteger(value, fieldName) {+ const number = Number(value);+ if (!Number.isInteger(number)) throw new Error(`${fieldName} must be an integer.`);+ return number;+}++function normalizePositiveInteger(value, fieldName) {+ const number = normalizeInteger(value, fieldName);+ if (number <= 0) throw new Error(`${fieldName} must be greater than 0.`);+ return number;+}++function normalizeNumber(value, fieldName) {+ const number = Number(value);+ if (!Number.isFinite(number)) throw new Error(`${fieldName} must be a number.`);+ return number;+}++export function buildMeshy3DInput(options = {}) {+ return {+ topology: options.topology || DEFAULT_MESHY_TOPOLOGY,+ target_polycount: normalizePositiveInteger(+ options.targetPolycount ?? DEFAULT_MESHY_TARGET_POLYCOUNT,+ "target-polycount"+ ),+ symmetry_mode: options.symmetryMode || DEFAULT_MESHY_SYMMETRY_MODE,+ should_remesh: normalizeBoolean(+ options.shouldRemesh ?? DEFAULT_MESHY_SHOULD_REMESH,+ "should-remesh"+ ),+ should_texture: normalizeBoolean(+ options.shouldTexture ?? DEFAULT_MESHY_SHOULD_TEXTURE,+ "should-texture"+ ),+ rigging_height_meters: normalizeNumber(+ options.riggingHeightMeters ?? DEFAULT_MESHY_RIGGING_HEIGHT_METERS,+ "rigging-height-meters"+ ),+ animation_action_id: normalizeInteger(+ options.animationActionId ?? DEFAULT_MESHY_ANIMATION_ACTION_ID,+ "animation-action-id"+ ),+ enable_safety_checker: normalizeBoolean(+ options.enableSafetyChecker ?? DEFAULT_MESHY_ENABLE_SAFETY_CHECKER,+ "enable-safety-checker"+ ),+ enable_animation: normalizeBoolean(+ options.enableAnimation ?? DEFAULT_MESHY_ENABLE_ANIMATION,+ "enable-animation"+ ),+ enable_rigging: normalizeBoolean(+ options.enableRigging ?? DEFAULT_MESHY_ENABLE_RIGGING,+ "enable-rigging"+ ),+ enable_pbr: normalizeBoolean(options.enablePbr ?? DEFAULT_MESHY_ENABLE_PBR, "enable-pbr")+ };+}++export async function runMeshy3D(options) {+ const {+ image,+ outputDir,+ assetName,+ metadataPath,+ metadata = {},+ onSubmit,+ onStatus+ } = options;++ if (!image) throw new Error("Input image is required.");+ if (!outputDir) throw new Error("outputDir is required.");++ return runFalImageTo3DProvider({+ endpoint: MESHY_3D_ENDPOINT,+ providerSlug: MESHY_3D_PROVIDER,+ imageInputKey: "image_url",+ image,+ outputDir,+ assetName,+ input: buildMeshy3DInput(options),+ metadataPath,+ metadata,+ pollIntervalMs: 10000,+ onSubmit,+ onStatus+ });+}++async function main() {+ const { flags } = parseArgs();+ const image = one(flags, "image") || one(flags, "input-image");+ const outputDir = one(flags, "output-dir");++ if (!image || !outputDir) {+ throw new Error(+ "Usage: node meshy-3d.mjs --image <path-or-url> --output-dir <dir> [--asset-name <name>] [--target-polycount 30000] [--enable-pbr true|false]"+ );+ }++ const summary = await runMeshy3D({+ image,+ outputDir,+ assetName: one(flags, "asset-name"),+ topology: one(flags, "topology", DEFAULT_MESHY_TOPOLOGY),+ targetPolycount: one(flags, "target-polycount", DEFAULT_MESHY_TARGET_POLYCOUNT),+ symmetryMode: one(flags, "symmetry-mode", DEFAULT_MESHY_SYMMETRY_MODE),+ shouldRemesh: one(flags, "should-remesh", DEFAULT_MESHY_SHOULD_REMESH),+ shouldTexture: one(flags, "should-texture", DEFAULT_MESHY_SHOULD_TEXTURE),+ riggingHeightMeters: one(flags, "rigging-height-meters", DEFAULT_MESHY_RIGGING_HEIGHT_METERS),+ animationActionId: one(flags, "animation-action-id", DEFAULT_MESHY_ANIMATION_ACTION_ID),+ enableSafetyChecker: one(flags, "enable-safety-checker", DEFAULT_MESHY_ENABLE_SAFETY_CHECKER),+ enableAnimation: one(flags, "enable-animation", DEFAULT_MESHY_ENABLE_ANIMATION),+ enableRigging: one(flags, "enable-rigging", DEFAULT_MESHY_ENABLE_RIGGING),+ enablePbr: one(flags, "enable-pbr", DEFAULT_MESHY_ENABLE_PBR)+ });++ console.log(JSON.stringify(summary, null, 2));+}++if (import.meta.url === `file://${process.argv[1]}`) {+ main().catch((error) => {+ console.error(error.message);+ process.exit(1);+ });+}diff --git a/third_party/image-blaster/.claude/scripts/asset-pipeline/nano-banana-edit.mjs b/third_party/image-blaster/.claude/scripts/asset-pipeline/nano-banana-edit.mjsnew file mode 100644index 000000000..ecfaf8cbb--- /dev/null+++ b/third_party/image-blaster/.claude/scripts/asset-pipeline/nano-banana-edit.mjs@@ -0,0 +1,116 @@+#!/usr/bin/env node+import path from "node:path";+import {+ callFalQueue,+ downloadRemoteFiles,+ ensureDir,+ many,+ one,+ parseArgs,+ toModelInputUrl,+ writeJson+} from "./fal-queue.mjs";+import { buildRequestSummary, requestPath } from "./request-metadata.mjs";++const ENDPOINT = "fal-ai/nano-banana-2/edit";++export async function runNanoBananaEdit(options) {+ const {+ prompt,+ images,+ outputDir,+ numImages = 1,+ resolution = "1K",+ aspectRatio = "auto",+ outputFormat = "png",+ safetyTolerance = "4",+ limitGenerations = true,+ seed,+ metadataPath,+ metadata = {},+ onSubmit,+ onStatus+ } = options;++ if (!prompt) throw new Error("Nano Banana prompt is required.");+ if (!images?.length) throw new Error("At least one input image is required.");+ if (!outputDir) throw new Error("outputDir is required.");++ await ensureDir(outputDir);++ const imageUrls = [];+ for (const image of images) {+ imageUrls.push(await toModelInputUrl(image));+ }++ const input = {+ prompt,+ image_urls: imageUrls,+ num_images: Number(numImages),+ aspect_ratio: aspectRatio,+ output_format: outputFormat,+ safety_tolerance: String(safetyTolerance),+ resolution,+ limit_generations: Boolean(limitGenerations)+ };+ if (seed !== undefined) input.seed = Number(seed);++ const result = await callFalQueue(ENDPOINT, input, {+ metadataPath: metadataPath || requestPath(outputDir, 0, "nano-banana"),+ metadata: { kind: "2d", provider: ENDPOINT, ...metadata },+ onSubmit,+ onStatus+ });++ const downloaded = await downloadRemoteFiles(result.data, outputDir, "nano-banana");+ const summary = buildRequestSummary({+ kind: "2d",+ provider: ENDPOINT,+ metadata,+ requestId: result.requestId,+ submittedAt: result.submittedAt,+ prompt,+ inputFiles: images,+ outputFiles: downloaded.map((file) => file.path),+ downloadedFiles: downloaded,+ result: result.data+ });++ await writeJson(metadataPath || requestPath(outputDir, 0, "nano-banana"), summary);+ return summary;+}++async function main() {+ const { flags } = parseArgs();+ const images = [...many(flags, "image"), ...many(flags, "input-image")];+ const prompt = one(flags, "prompt");+ const outputDir = one(flags, "output-dir");++ if (!prompt || !outputDir || images.length === 0) {+ throw new Error(+ "Usage: node nano-banana-edit.mjs --image <path-or-url> --prompt <prompt> --output-dir <dir>"+ );+ }++ const summary = await runNanoBananaEdit({+ prompt,+ images,+ outputDir,+ numImages: one(flags, "num-images", 1),+ resolution: one(flags, "resolution", "1K"),+ aspectRatio: one(flags, "aspect-ratio", "auto"),+ outputFormat: one(flags, "format", "png"),+ safetyTolerance: one(flags, "safety-tolerance", "4"),+ limitGenerations: one(flags, "limit-generations", "true") !== "false",+ seed: one(flags, "seed")+ });++ console.log(JSON.stringify(summary, null, 2));+}++if (import.meta.url === `file://${process.argv[1]}`) {+ main().catch((error) => {+ console.error(error.message);+ process.exit(1);+ });+}diff --git a/third_party/image-blaster/.claude/scripts/asset-pipeline/request-metadata.mjs b/third_party/image-blaster/.claude/scripts/asset-pipeline/request-metadata.mjsnew file mode 100644index 000000000..5a7cfb5c9--- /dev/null+++ b/third_party/image-blaster/.claude/scripts/asset-pipeline/request-metadata.mjs@@ -0,0 +1,147 @@+import { readdir } from "node:fs/promises";+import path from "node:path";+import { ensureDir, readJson, safeFileName, stripBase64 } from "./fal-queue.mjs";++export function parseIndexedName(value) {+ const fileName = path.basename(value || "");+ const requestMatch = fileName.match(/^\.(\d+)-(.+?)(?:__([a-z0-9._-]+))?-request\.json$/i);+ if (requestMatch) {+ return {+ index: Number(requestMatch[1]),+ slug: requestMatch[2],+ scope: requestMatch[3],+ extension: ".json",+ hidden: true,+ name: fileName,+ path: value+ };+ }++ const artifactMatch = fileName.match(/^(\d+)-(.+?)(\.[^.]+)$/);+ if (artifactMatch) {+ return {+ index: Number(artifactMatch[1]),+ slug: artifactMatch[2],+ scope: undefined,+ extension: artifactMatch[3],+ hidden: false,+ name: fileName,+ path: value+ };+ }++ return undefined;+}++export function isHiddenRequestMetadata(value) {+ return parseIndexedName(value)?.hidden === true;+}++export function isVisibleFile(value) {+ return !path.basename(value || "").startsWith(".");+}++async function indexedEntries(filesOrDir) {+ if (Array.isArray(filesOrDir)) {+ return filesOrDir.map((file) => parseIndexedName(file)).filter(Boolean);+ }++ await ensureDir(filesOrDir);+ const entries = await readdir(filesOrDir, { withFileTypes: true }).catch(() => []);+ return entries+ .filter((entry) => entry.isFile())+ .map((entry) => parseIndexedName(path.join(filesOrDir, entry.name)))+ .filter(Boolean);+}++export async function nextIndex(filesOrDir, slug) {+ const entries = await indexedEntries(filesOrDir);+ const maxIndex = entries.reduce((max, entry) => {+ if (slug && entry.slug !== slug) return max;+ return Number.isInteger(entry.index) ? Math.max(max, entry.index) : max;+ }, -1);+ return maxIndex + 1;+}++export async function latestIndexed(filesOrDir, slug) {+ const entries = await indexedEntries(filesOrDir);+ const artifacts = entries.filter((entry) => !entry.hidden && (!slug || entry.slug === slug));+ return artifacts.sort((a, b) => b.index - a.index).at(0);+}++export async function requestMetadataFiles(dir, options = {}) {+ const { slug, scope } = options;+ await ensureDir(dir);+ const entries = await readdir(dir, { withFileTypes: true }).catch(() => []);+ const requests = [];++ for (const entry of entries) {+ if (!entry.isFile()) continue;+ const parsed = parseIndexedName(path.join(dir, entry.name));+ if (!parsed?.hidden) continue;+ if (slug && parsed.slug !== slug) continue;+ if (scope !== undefined && parsed.scope !== scope) continue;+ const filePath = path.join(dir, entry.name);+ let data;+ try {+ data = await readJson(filePath);+ } catch {+ continue;+ }+ requests.push({+ ...parsed,+ path: filePath,+ data+ });+ }++ return requests.sort((a, b) => b.index - a.index);+}++export function requestPath(dir, index, slug, scope) {+ const safeSlug = safeFileName(slug);+ const safeScope = scope ? `__${safeFileName(scope)}` : "";+ return path.join(dir, `.${index}-${safeSlug}${safeScope}-request.json`);+}++export function artifactPath(dir, index, slug, extension) {+ return path.join(dir, `${index}-${safeFileName(slug)}${extension}`);+}++export function buildRequestSummary(options) {+ const {+ kind,+ provider,+ endpoint = provider,+ metadata = {},+ requestId,+ submittedAt,+ completedAt = new Date().toISOString(),+ prompt,+ inputFiles = [],+ outputFiles = [],+ downloadedFiles = [],+ result,+ error = null,+ extra = {}+ } = options;++ return stripBase64({+ schema_version: 1,+ kind,+ ...metadata,+ provider,+ endpoint,+ status: error ? "failed" : "completed",+ request_id: requestId,+ submitted_at: submittedAt,+ completed_at: completedAt,+ ...(prompt !== undefined ? { prompt } : {}),+ input_files: inputFiles,+ output_files: outputFiles,+ downloaded_files: downloadedFiles,+ result,+ error,+ ...extra+ });+}diff --git a/third_party/image-blaster/.claude/scripts/fal/run-fal.mjs b/third_party/image-blaster/.claude/scripts/fal/run-fal.mjsnew file mode 100644index 000000000..2f8876c3b--- /dev/null+++ b/third_party/image-blaster/.claude/scripts/fal/run-fal.mjs@@ -0,0 +1,293 @@+#!/usr/bin/env node+import {+ callFalQueue,+ collectRemoteFiles,+ downloadFile,+ ensureDir,+ extensionForFile,+ many,+ one,+ parseArgs,+ pathExists,+ readJson,+ requireEnv,+ sanitizeForMetadata,+ slugify,+ toModelInputUrl,+ writeJson+} from "../asset-pipeline/fal-queue.mjs";+import {+ artifactPath,+ buildRequestSummary,+ nextIndex,+ requestPath+} from "../asset-pipeline/request-metadata.mjs";++function parseJsonValue(value) {+ if (typeof value !== "string") return value;+ try {+ return JSON.parse(value);+ } catch {+ return value;+ }+}++function pathParts(keyPath) {+ return String(keyPath)+ .split(".")+ .map((part) => {+ if (/^\d+$/.test(part)) return Number(part);+ return part;+ });+}++function setNestedValue(target, keyPath, value) {+ const parts = pathParts(keyPath);+ if (parts.length === 0) throw new Error("Input key path cannot be empty.");++ let cursor = target;+ for (let index = 0; index < parts.length - 1; index += 1) {+ const part = parts[index];+ const nextPart = parts[index + 1];+ if (cursor[part] === undefined) {+ cursor[part] = typeof nextPart === "number" ? [] : {};+ }+ cursor = cursor[part];+ }++ cursor[parts.at(-1)] = value;+}++function splitAssignment(value, flagName) {+ const equalsIndex = String(value).indexOf("=");+ if (equalsIndex === -1) {+ throw new Error(`${flagName} expects key=value, received "${value}".`);+ }++ return {+ key: String(value).slice(0, equalsIndex),+ value: String(value).slice(equalsIndex + 1)+ };+}++function parseBool(value, fallback = false) {+ if (value === undefined) return fallback;+ if (value === true || value === false) return value;+ return !["false", "0", "no", "off"].includes(String(value).toLowerCase());+}++async function readInput(flags) {+ const inputJson = one(flags, "input-json");+ const inputFile = one(flags, "input-file");+ let input = {};++ if (inputJson && inputFile) {+ throw new Error("Use only one of --input-json or --input-file.");+ }++ if (inputFile) {+ input = await readJson(inputFile);+ } else if (inputJson) {+ input = JSON.parse(inputJson);+ }++ for (const assignment of many(flags, "input")) {+ const { key, value } = splitAssignment(assignment, "--input");+ setNestedValue(input, key, parseJsonValue(value));+ }++ for (const assignment of many(flags, "file")) {+ const { key, value } = splitAssignment(assignment, "--file");+ setNestedValue(input, key, await toModelInputUrl(value));+ }++ return input;+}++async function writeDirectMetadata(metadataPath, patch) {+ const previous = (await pathExists(metadataPath)) ? await readJson(metadataPath) : {};+ await writeJson(metadataPath, {+ schema_version: 1,+ ...previous,+ ...patch,+ updated_at: new Date().toISOString()+ });+}++async function callFalRun(endpoint, input, options) {+ const falKey = await requireEnv("FAL_KEY");+ const submittedAt = new Date().toISOString();++ await writeDirectMetadata(options.metadataPath, {+ ...options.metadata,+ endpoint,+ status: "submitted",+ submitted_at: submittedAt+ });++ const response = await fetch(`https://fal.run/${endpoint}`, {+ method: "POST",+ headers: {+ Authorization: `Key ${falKey}`,+ "Content-Type": "application/json"+ },+ body: JSON.stringify(input)+ });+ const body = await response.json().catch(() => ({}));++ if (!response.ok) {+ await writeDirectMetadata(options.metadataPath, {+ ...options.metadata,+ endpoint,+ status: "failed",+ completed_at: new Date().toISOString(),+ error: sanitizeForMetadata(body)+ });+ throw new Error(`FAL run failed (${response.status}).`);+ }++ return {+ requestId: undefined,+ submittedAt,+ data: body+ };+}++async function downloadResultFiles(result, outputDir, index, slug) {+ const remoteFiles = collectRemoteFiles(result);+ const downloaded = [];++ for (const [fileIndex, { label, file }] of remoteFiles.entries()) {+ const labelSlug = slugify(label) || `file-${fileIndex + 1}`;+ const outputSlug = remoteFiles.length === 1 ? slug : `${slug}-${fileIndex + 1}-${labelSlug}`;+ const outputPath = artifactPath(outputDir, index, outputSlug, extensionForFile(file));+ await downloadFile(file.url, outputPath);+ downloaded.push({+ label,+ path: outputPath,+ source: file+ });+ }++ return downloaded;+}++export async function runFalWildcard(options) {+ const {+ endpoint,+ input,+ outputDir,+ outputSlug,+ kind = "fal-wildcard",+ mode = "queue",+ pollIntervalMs = 5000,+ downloadOutputs = true,+ userPrompt+ } = options;++ if (!endpoint) throw new Error("--endpoint is required.");+ if (!outputDir) throw new Error("--output-dir is required.");+ if (!["queue", "run"].includes(mode)) throw new Error("--mode must be queue or run.");++ await ensureDir(outputDir);++ const slug = slugify(outputSlug || endpoint.split("/").at(-1) || "fal-output");+ if (!slug) throw new Error("--output-slug or endpoint must produce a usable slug.");++ const index = await nextIndex(outputDir);+ const metadataPath = requestPath(outputDir, index, slug);+ const metadata = {+ kind,+ provider: endpoint,+ endpoint,+ mode,+ index,+ output_slug: slug,+ input: sanitizeForMetadata(input),+ ...(userPrompt ? { user_prompt: userPrompt } : {})+ };++ const result =+ mode === "queue"+ ? await callFalQueue(endpoint, input, {+ metadataPath,+ metadata,+ pollIntervalMs: Number(pollIntervalMs)+ })+ : await callFalRun(endpoint, input, { metadataPath, metadata });++ const downloaded = downloadOutputs+ ? await downloadResultFiles(result.data, outputDir, index, slug)+ : [];++ const previousMetadata = (await pathExists(metadataPath)) ? await readJson(metadataPath) : {};+ const summary = buildRequestSummary({+ kind,+ provider: endpoint,+ endpoint,+ metadata: {+ mode,+ index,+ output_slug: slug,+ input: sanitizeForMetadata(input),+ ...(userPrompt ? { user_prompt: userPrompt } : {})+ },+ requestId: result.requestId,+ submittedAt: result.submittedAt,+ outputFiles: downloaded.map((file) => file.path),+ downloadedFiles: downloaded,+ result: result.data+ });++ await writeJson(metadataPath, {+ ...previousMetadata,+ ...summary+ });++ return {+ schema_version: 1,+ kind,+ provider: endpoint,+ endpoint,+ mode,+ input: sanitizeForMetadata(input),+ output_dir: outputDir,+ request_metadata: metadataPath,+ output_files: downloaded.map((file) => file.path),+ result: sanitizeForMetadata(result.data)+ };+}++async function main() {+ const { flags } = parseArgs();+ const endpoint = one(flags, "endpoint") || one(flags, "model");+ const outputDir = one(flags, "output-dir");+ const input = await readInput(flags);++ if (!endpoint || !outputDir) {+ throw new Error(+ "Usage: node .claude/scripts/fal/run-fal.mjs --endpoint <fal/model> --input-json '<json>' --output-dir <dir> [--output-slug <slug>]"+ );+ }++ const result = await runFalWildcard({+ endpoint,+ input,+ outputDir,+ outputSlug: one(flags, "output-slug") || one(flags, "slug"),+ kind: one(flags, "kind", "fal-wildcard"),+ mode: one(flags, "mode", "queue"),+ pollIntervalMs: one(flags, "poll-interval-ms", 5000),+ downloadOutputs: parseBool(one(flags, "download-outputs"), true),+ userPrompt: one(flags, "user-prompt")+ });++ console.log(JSON.stringify(result, null, 2));+}++if (import.meta.url === `file://${process.argv[1]}`) {+ main().catch((error) => {+ console.error(error.message);+ process.exit(1);+ });+}diff --git a/third_party/image-blaster/.claude/scripts/image-edit/generate-edit.mjs b/third_party/image-blaster/.claude/scripts/image-edit/generate-edit.mjsnew file mode 100644index 000000000..a65756403--- /dev/null+++ b/third_party/image-blaster/.claude/scripts/image-edit/generate-edit.mjs@@ -0,0 +1,218 @@+#!/usr/bin/env node+import { rename } from "node:fs/promises";+import path from "node:path";+import { runImageEdit } from "../asset-pipeline/image-edit.mjs";+import {+ downloadRemoteFiles,+ ensureDir,+ getFalQueueResult,+ many,+ one,+ parseArgs,+ pathExists,+ pollFalQueue,+ readJson,+ slugify,+ writeJson+} from "../asset-pipeline/fal-queue.mjs";+import {+ artifactPath,+ buildRequestSummary,+ nextIndex,+ requestMetadataFiles,+ requestPath+} from "../asset-pipeline/request-metadata.mjs";++async function readJsonIfExists(filePath) {+ return (await pathExists(filePath)) ? readJson(filePath) : undefined;+}++function isGeneratedImage(downloaded) {+ const contentType = downloaded.source?.content_type || "";+ return contentType.startsWith("image/") || /\.(png|jpe?g|webp)$/i.test(downloaded.path);+}++function firstGeneratedImage(imageEditSummary) {+ return (imageEditSummary.downloaded_files || []).find(isGeneratedImage);+}++function statusText(value) {+ return String(value || "").toLowerCase();+}++function isActiveRequest(request) {+ const status = statusText(request.data?.status);+ return Boolean(request.data?.request_id && request.data?.endpoint) &&+ !["completed", "failed", "cancelled", "canceled"].includes(status);+}++async function resumeImageEditRequest(request, outputDir, slug) {+ const status = await pollFalQueue(request.data.endpoint, request.data.request_id, {+ statusUrl: request.data.status_url,+ metadataPath: request.path+ });+ const result = await getFalQueueResult(request.data.endpoint, request.data.request_id, {+ responseUrl: request.data.response_url,+ metadataPath: request.path+ });+ const downloaded = await downloadRemoteFiles(result.data, outputDir, slug);+ const summary = buildRequestSummary({+ kind: "2d",+ provider: request.data.provider || request.data.endpoint,+ endpoint: request.data.endpoint,+ metadata: {+ index: request.index,+ role: request.data.role,+ output_slug: request.data.output_slug || slug,+ input_images: request.data.input_images,+ mask_image: request.data.mask_image,+ provider_alias: request.data.provider_alias+ },+ requestId: request.data.request_id,+ submittedAt: request.data.submitted_at,+ prompt: request.data.prompt,+ inputFiles: request.data.input_files || request.data.input_images || [],+ outputFiles: downloaded.map((file) => file.path),+ downloadedFiles: downloaded,+ result: result.data,+ extra: { queue_status: status.status }+ });++ await writeJson(request.path, summary);+ return {+ ...summary,+ provider_alias: request.data.provider_alias+ };+}++export async function generateEdit(options) {+ const {+ images,+ prompt,+ outputDir,+ outputSlug,+ role = "image-edit",+ provider,+ numImages = 1,+ outputFormat = "png",+ resolution,+ aspectRatio,+ quality,+ imageSize,+ maskImage,+ seed+ } = options;++ if (!images?.length) throw new Error("At least one --image is required.");+ if (!prompt) throw new Error("--prompt is required.");+ if (!outputDir) throw new Error("--output-dir is required.");++ await ensureDir(outputDir);++ const slug = slugify(outputSlug || role);+ if (!slug) throw new Error("--output-slug or --role must produce a usable slug.");++ const activeRequest = (await requestMetadataFiles(outputDir, { slug })).find(isActiveRequest);+ const outputIndex = activeRequest?.index ?? await nextIndex(outputDir);+ const extension = `.${String(outputFormat).replace(/^\./, "") || "png"}`;+ const outputPath = artifactPath(outputDir, outputIndex, slug, extension);+ const metadataPath = activeRequest?.path ?? requestPath(outputDir, outputIndex, slug);++ const metadata = {+ index: outputIndex,+ role,+ output_slug: slug,+ input_images: images,+ mask_image: maskImage,+ provider_alias: provider+ };++ const imageEdit = activeRequest+ ? await resumeImageEditRequest(activeRequest, outputDir, slug)+ : await runImageEdit({+ provider,+ prompt,+ images,+ outputDir,+ metadataPath,+ metadata,+ numImages,+ outputFormat,+ resolution,+ aspectRatio,+ quality,+ imageSize,+ maskImage,+ seed+ });++ const rawGeneratedImage = firstGeneratedImage(imageEdit);+ if (!rawGeneratedImage) {+ throw new Error("Image edit did not return a downloadable image.");+ }++ if (rawGeneratedImage.path !== outputPath) {+ await rename(rawGeneratedImage.path, outputPath);+ }++ const previousMetadata = await readJsonIfExists(metadataPath);+ await writeJson(metadataPath, {+ ...previousMetadata,+ ...metadata,+ provider_alias: imageEdit.provider_alias,+ prompt,+ output_files: [outputPath],+ downloaded_files: (imageEdit.downloaded_files || []).map((file) =>+ file.path === rawGeneratedImage.path ? { ...file, path: outputPath } : file+ ),+ updated_at: new Date().toISOString()+ });++ return {+ schema_version: 1,+ role,+ prompt,+ input_images: images,+ output_image: outputPath,+ request_metadata: metadataPath+ };+}++async function main() {+ const { flags } = parseArgs();+ const images = [...many(flags, "image"), ...many(flags, "input-image")];+ const prompt = one(flags, "prompt");+ const outputDir = one(flags, "output-dir");++ if (!prompt || !outputDir || images.length === 0) {+ throw new Error(+ "Usage: node generate-edit.mjs --image <path-or-url> --prompt <prompt> --output-dir <dir> --output-slug <slug> [--role image-edit]"+ );+ }++ const result = await generateEdit({+ images,+ prompt,+ outputDir,+ outputSlug: one(flags, "output-slug") || one(flags, "slug"),+ role: one(flags, "role", "image-edit"),+ provider: one(flags, "provider") || one(flags, "image-edit-provider"),+ numImages: one(flags, "num-images", 1),+ outputFormat: one(flags, "format", "png"),+ resolution: one(flags, "resolution"),+ aspectRatio: one(flags, "aspect-ratio"),+ quality: one(flags, "quality"),+ imageSize: one(flags, "image-size"),+ maskImage: one(flags, "mask-image"),+ seed: one(flags, "seed")+ });++ console.log(JSON.stringify(result, null, 2));+}++if (import.meta.url === `file://${process.argv[1]}`) {+ main().catch((error) => {+ console.error(error.message);+ process.exit(1);+ });+}diff --git a/third_party/image-blaster/.claude/scripts/project/delete.mjs b/third_party/image-blaster/.claude/scripts/project/delete.mjsnew file mode 100644index 000000000..bfe7dc9a6--- /dev/null+++ b/third_party/image-blaster/.claude/scripts/project/delete.mjs@@ -0,0 +1,63 @@+#!/usr/bin/env node+import { rm } from "node:fs/promises";+import path from "node:path";+import {+ one,+ parseArgs,+ pathExists+} from "../asset-pipeline/fal-queue.mjs";++const ALLOWED_ROOTS = ["worlds", "input"];++function usage() {+ return "Usage: node .claude/scripts/project/delete.mjs --path <path> [--yes] [--recursive]";+}++function resolveProjectPath(value) {+ const resolved = path.resolve(value);+ const cwd = process.cwd();+ const insideRepo = resolved === cwd || resolved.startsWith(`${cwd}${path.sep}`);+ if (!insideRepo) throw new Error(`Path must stay inside this repository: ${value}`);++ const relative = path.relative(cwd, resolved);+ const top = relative.split(path.sep)[0];+ if (!ALLOWED_ROOTS.includes(top)) {+ throw new Error(`Path must be under one of: ${ALLOWED_ROOTS.join(", ")}.`);+ }+ return { resolved, relative };+}++async function main() {+ const { flags, positionals } = parseArgs();+ const target = one(flags, "path") || positionals[0];+ const confirmed = Boolean(flags.yes);+ const recursive = Boolean(flags.recursive);+ if (!target) throw new Error(usage());++ const { resolved, relative } = resolveProjectPath(target);+ const exists = await pathExists(resolved);+ if (!exists) {+ console.log(JSON.stringify({ action: "skip", reason: "missing", path: relative }, null, 2));+ return;+ }++ if (!confirmed) {+ console.log(JSON.stringify({+ action: "dry-run",+ path: relative,+ recursive,+ next: `node .claude/scripts/project/delete.mjs --path ${JSON.stringify(relative)} --yes${recursive ? " --recursive" : ""}`+ }, null, 2));+ return;+ }++ await rm(resolved, { recursive, force: false });+ console.log(JSON.stringify({ action: "deleted", path: relative, recursive }, null, 2));+}++if (import.meta.url === `file://${process.argv[1]}`) {+ main().catch((error) => {+ console.error(error.message);+ process.exit(1);+ });+}diff --git a/third_party/image-blaster/.claude/scripts/project/download.mjs b/third_party/image-blaster/.claude/scripts/project/download.mjsnew file mode 100644index 000000000..cf1947ea9--- /dev/null+++ b/third_party/image-blaster/.claude/scripts/project/download.mjs@@ -0,0 +1,77 @@+#!/usr/bin/env node+import path from "node:path";+import {+ downloadFile,+ ensureDir,+ one,+ parseArgs,+ pathExists+} from "../asset-pipeline/fal-queue.mjs";++const ALLOWED_ROOTS = ["worlds", "input"];++function usage() {+ return "Usage: node .claude/scripts/project/download.mjs --url <url-or-data-uri> --out <path> [--force] [--dry-run]";+}++function resolveProjectPath(value) {+ const resolved = path.resolve(value);+ const cwd = process.cwd();+ const insideRepo = resolved === cwd || resolved.startsWith(`${cwd}${path.sep}`);+ if (!insideRepo) throw new Error(`Output path must stay inside this repository: ${value}`);++ const relative = path.relative(cwd, resolved);+ const top = relative.split(path.sep)[0];+ if (!ALLOWED_ROOTS.includes(top)) {+ throw new Error(`Output path must be under one of: ${ALLOWED_ROOTS.join(", ")}.`);+ }+ return { resolved, relative };+}++async function main() {+ const { flags } = parseArgs();+ const url = one(flags, "url");+ const out = one(flags, "out") || one(flags, "output");+ const force = Boolean(flags.force);+ const dryRun = Boolean(flags["dry-run"]);++ if (!url || !out) throw new Error(usage());++ const { resolved, relative } = resolveProjectPath(out);+ const exists = await pathExists(resolved);+ if (exists && !force) {+ console.log(JSON.stringify({+ action: "skip",+ reason: "exists",+ path: relative,+ force: false+ }, null, 2));+ return;+ }++ if (dryRun) {+ console.log(JSON.stringify({+ action: exists ? "would-overwrite" : "would-download",+ url,+ path: relative,+ force+ }, null, 2));+ return;+ }++ await ensureDir(path.dirname(resolved));+ await downloadFile(url, resolved);+ console.log(JSON.stringify({+ action: exists ? "overwritten" : "downloaded",+ url,+ path: relative,+ force+ }, null, 2));+}++if (import.meta.url === `file://${process.argv[1]}`) {+ main().catch((error) => {+ console.error(error.message);+ process.exit(1);+ });+}diff --git a/third_party/image-blaster/.claude/scripts/project/ensure-local-assets.mjs b/third_party/image-blaster/.claude/scripts/project/ensure-local-assets.mjsnew file mode 100644index 000000000..32f298bb4--- /dev/null+++ b/third_party/image-blaster/.claude/scripts/project/ensure-local-assets.mjs@@ -0,0 +1,173 @@+#!/usr/bin/env node+import path from "node:path";+import {+ collectRemoteFiles,+ downloadFile,+ ensureDir,+ extensionForFile,+ one,+ parseArgs,+ pathExists,+ readJson,+ safeFileName+} from "../asset-pipeline/fal-queue.mjs";+import {+ artifactPath,+ parseIndexedName+} from "../asset-pipeline/request-metadata.mjs";++const ALLOWED_ROOTS = ["worlds", "input"];++function usage() {+ return "Usage: node .claude/scripts/project/ensure-local-assets.mjs --from <world-json-or-request-json> [--force] [--dry-run]";+}++function extensionFromUrl(url, fallback) {+ try {+ return path.extname(new URL(url).pathname) || fallback;+ } catch {+ return fallback;+ }+}++function resolveProjectPath(value) {+ const resolved = path.resolve(value);+ const cwd = process.cwd();+ const insideRepo = resolved === cwd || resolved.startsWith(`${cwd}${path.sep}`);+ if (!insideRepo) throw new Error(`Path must stay inside this repository: ${value}`);++ const relative = path.relative(cwd, resolved);+ const top = relative.split(path.sep)[0];+ if (!ALLOWED_ROOTS.includes(top)) {+ throw new Error(`Path must be under one of: ${ALLOWED_ROOTS.join(", ")}.`);+ }+ return { resolved, relative };+}++function indexedJsonInfo(filePath, json) {+ const parsed = parseIndexedName(filePath);+ if (parsed) return parsed;+ if (Number.isInteger(json.index) && typeof json.kind === "string") {+ return { index: json.index, slug: json.kind, hidden: true };+ }+ return undefined;+}++function worldCandidates(json, dir, index) {+ const assets = json.response?.assets || json.assets;+ if (!assets) return [];++ const candidates = [];+ const glbUrl = assets.mesh?.collider_mesh_url;+ if (glbUrl) candidates.push({ role: "world-collider", url: glbUrl, path: path.join(dir, `${index}-world.glb`) });++ const panoUrl = assets.imagery?.pano_url;+ if (panoUrl) candidates.push({+ role: "world-pano",+ url: panoUrl,+ path: path.join(dir, `${index}-world-pano${extensionFromUrl(panoUrl, ".png")}`)+ });++ const thumbnailUrl = assets.thumbnail_url;+ if (thumbnailUrl) candidates.push({+ role: "world-thumbnail",+ url: thumbnailUrl,+ path: path.join(dir, `${index}-world-thumbnail${extensionFromUrl(thumbnailUrl, ".webp")}`)+ });++ for (const [key, url] of Object.entries(assets.splats?.spz_urls || {})) {+ if (!url) continue;+ candidates.push({+ role: `world-${key}`,+ url,+ path: path.join(dir, `${index}-world-${safeFileName(key)}.spz`)+ });+ }++ return candidates;+}++function downloadedFileCandidates(json, dir, index, slug) {+ const candidates = [];+ for (const file of json.downloaded_files || []) {+ if (!file || typeof file !== "object") continue;+ const url = file.source?.url || file.file?.url || file.url;+ if (!url || !file.path) continue;+ candidates.push({+ role: file.label || "downloaded-file",+ url,+ path: file.path+ });+ }++ if (candidates.length) return candidates;++ return collectRemoteFiles(json.result).map(({ label, file }, offset) => {+ const safeLabel = safeFileName(label || `file-${offset + 1}`);+ const outputSlug = safeLabel === "file" ? slug : `${slug}-${safeLabel}`;+ return {+ role: label,+ url: file.url,+ path: artifactPath(dir, index, outputSlug, extensionForFile(file))+ };+ });+}++async function ensureCandidate(candidate, options) {+ const { force, dryRun } = options;+ const { resolved, relative } = resolveProjectPath(candidate.path);+ const exists = await pathExists(resolved);+ if (exists && !force) {+ return { ...candidate, path: relative, action: "exists" };+ }+ if (dryRun) {+ return { ...candidate, path: relative, action: exists ? "would-overwrite" : "would-download" };+ }++ await ensureDir(path.dirname(resolved));+ await downloadFile(candidate.url, resolved);+ return { ...candidate, path: relative, action: exists ? "overwritten" : "downloaded" };+}++async function main() {+ const { flags, positionals } = parseArgs();+ const from = one(flags, "from") || positionals[0];+ const force = Boolean(flags.force);+ const dryRun = Boolean(flags["dry-run"]);+ if (!from) throw new Error(usage());++ const { resolved: fromPath, relative: fromRelative } = resolveProjectPath(from);+ if (!(await pathExists(fromPath))) throw new Error(`Metadata file does not exist: ${from}`);++ const json = await readJson(fromPath);+ const info = indexedJsonInfo(fromPath, json);+ if (!info || !Number.isInteger(info.index)) throw new Error(`Could not infer indexed asset metadata from ${from}`);++ const dir = path.dirname(fromPath);+ const candidates = [+ ...worldCandidates(json, dir, info.index),+ ...downloadedFileCandidates(json, dir, info.index, info.slug || "file")+ ];+ const deduped = [...new Map(candidates.map((candidate) => [candidate.path, candidate])).values()];+ const results = [];+ for (const candidate of deduped) {+ results.push(await ensureCandidate(candidate, { force, dryRun }));+ }++ console.log(JSON.stringify({+ source: fromRelative,+ index: info.index,+ slug: info.slug,+ force,+ dry_run: dryRun,+ count: results.length,+ results+ }, null, 2));+}++if (import.meta.url === `file://${process.argv[1]}`) {+ main().catch((error) => {+ console.error(error.message);+ process.exit(1);+ });+}diff --git a/third_party/image-blaster/.claude/scripts/project/indexed-path.mjs b/third_party/image-blaster/.claude/scripts/project/indexed-path.mjsnew file mode 100644index 000000000..f2944942f--- /dev/null+++ b/third_party/image-blaster/.claude/scripts/project/indexed-path.mjs@@ -0,0 +1,72 @@+#!/usr/bin/env node+import path from "node:path";+import {+ one,+ parseArgs+} from "../asset-pipeline/fal-queue.mjs";+import {+ artifactPath,+ latestIndexed,+ nextIndex,+ requestPath+} from "../asset-pipeline/request-metadata.mjs";++function usage() {+ return [+ "Usage: node .claude/scripts/project/indexed-path.mjs --dir <dir> --slug <slug> (--ext <ext> | --request) (--index N | --next | --latest) [--scope <role>]",+ "",+ "Examples:",+ " node .claude/scripts/project/indexed-path.mjs --dir worlds/demo/output/world --slug world --ext .glb --next",+ " node .claude/scripts/project/indexed-path.mjs --dir worlds/demo/output/chair --slug chair --request --index 0 --scope model"+ ].join("\n");+}++async function resolveIndex(dir, slug, flags) {+ const explicit = one(flags, "index");+ if (explicit !== undefined) {+ const index = Number(explicit);+ if (!Number.isInteger(index) || index < 0) throw new Error("index must be a non-negative integer.");+ return index;+ }+ if (flags.next) return nextIndex(dir, slug);+ if (flags.latest) {+ const latest = await latestIndexed(dir, slug);+ if (!latest) throw new Error(`No indexed artifact found for slug "${slug}" in ${dir}.`);+ return latest.index;+ }+ throw new Error("Choose one of: --index N, --next, or --latest.");+}++async function main() {+ const { flags } = parseArgs();+ const dir = one(flags, "dir");+ const slug = one(flags, "slug");+ const extension = one(flags, "ext");+ const isRequest = Boolean(flags.request);+ const scope = one(flags, "scope");++ if (!dir || !slug || (!extension && !isRequest)) throw new Error(usage());+ if (extension && isRequest) throw new Error("Use either --ext or --request, not both.");++ const index = await resolveIndex(dir, slug, flags);+ const outputPath = isRequest+ ? requestPath(dir, index, slug, scope)+ : artifactPath(dir, index, slug, extension.startsWith(".") ? extension : `.${extension}`);++ console.log(JSON.stringify({+ dir,+ slug,+ index,+ path: path.normalize(outputPath),+ request: isRequest,+ ...(scope ? { scope } : {}),+ ...(extension ? { extension: extension.startsWith(".") ? extension : `.${extension}` } : {})+ }, null, 2));+}++if (import.meta.url === `file://${process.argv[1]}`) {+ main().catch((error) => {+ console.error(error.message);+ process.exit(1);+ });+}diff --git a/third_party/image-blaster/.claude/scripts/project/project-state.mjs b/third_party/image-blaster/.claude/scripts/project/project-state.mjsnew file mode 100644index 000000000..84e7cc041--- /dev/null+++ b/third_party/image-blaster/.claude/scripts/project/project-state.mjs@@ -0,0 +1,265 @@+#!/usr/bin/env node+import { readdir, rename } from "node:fs/promises";+import path from "node:path";+import {+ ensureDir,+ one,+ parseArgs,+ pathExists,+ readJson,+ slugify,+ writeJson+} from "../asset-pipeline/fal-queue.mjs";+import {+ artifactPath,+ isHiddenRequestMetadata,+ isVisibleFile,+ latestIndexed,+ parseIndexedName+} from "../asset-pipeline/request-metadata.mjs";++const PROJECT_DIRS = ["source", "output", "output/world", "output/sfx"];+const RESERVED_OUTPUT_DIRS = new Set(["world", "sfx"]);+const MODEL_EXTENSIONS = new Set([".glb", ".obj", ".fbx", ".usdz"]);+const STAGE_EXTENSIONS = new Set([+ ".avif",+ ".gif",+ ".heic",+ ".heif",+ ".jpeg",+ ".jpg",+ ".png",+ ".webp"+]);+const ANALYSIS_EXTENSION = ".json";++async function readJsonIfExists(filePath) {+ return (await pathExists(filePath)) ? readJson(filePath) : undefined;+}++function displayNameFromSlug(slug) {+ return slug+ .split("-")+ .filter(Boolean)+ .map((part) => part.charAt(0).toUpperCase() + part.slice(1))+ .join(" ");+}++async function listDirFiles(dirPath) {+ if (!(await pathExists(dirPath))) return [];++ const files = [];+ const entries = await readdir(dirPath, { withFileTypes: true });+ for (const entry of entries) {+ const fullPath = path.join(dirPath, entry.name);+ if (entry.isFile()) {+ files.push(fullPath);+ }+ }++ return files;+}++function isSourceImage(filePath) {+ return isVisibleFile(filePath) && STAGE_EXTENSIONS.has(path.extname(filePath).toLowerCase());+}++function isSourceAnalysis(filePath) {+ return isVisibleFile(filePath) && path.extname(filePath).toLowerCase() === ANALYSIS_EXTENSION;+}++function isVisibleGeneratedFile(filePath) {+ const fileName = path.basename(filePath);+ return !isHiddenRequestMetadata(filePath) && isVisibleFile(filePath) && fileName !== "sfx.json";+}++function isWorldRequest(filePath) {+ const parsed = parseIndexedName(filePath);+ return parsed?.hidden && parsed.slug === "world";+}++async function nextAvailablePath(filePath) {+ if (!(await pathExists(filePath))) return filePath;++ const dir = path.dirname(filePath);+ const ext = path.extname(filePath);+ const base = path.basename(filePath, ext);+ let index = 1;++ while (true) {+ const candidate = path.join(dir, `${base}-${index}${ext}`);+ if (!(await pathExists(candidate))) return candidate;+ index += 1;+ }+}++async function stageInputFiles(worldDir, inputDir = "input") {+ if (!(await pathExists(inputDir))) return [];++ const sourceDir = path.join(worldDir, "source");+ await ensureDir(sourceDir);+ const staged = [];+ const entries = await readdir(inputDir, { withFileTypes: true });++ for (const entry of entries) {+ if (!entry.isFile()) continue;+ const extension = path.extname(entry.name).toLowerCase();+ if (!STAGE_EXTENSIONS.has(extension)) continue;++ const from = path.join(inputDir, entry.name);+ const parsed = parseIndexedName(entry.name);+ const stagedName = parsed?.index === 0+ ? entry.name+ : path.basename(artifactPath(sourceDir, 0, slugify(path.basename(entry.name, extension)), extension));+ const to = await nextAvailablePath(path.join(sourceDir, stagedName));+ await rename(from, to);+ staged.push({ from, to });+ }++ return staged;+}++async function scanObjects(worldDir) {+ const outputDir = path.join(worldDir, "output");+ if (!(await pathExists(outputDir))) return [];++ const entries = await readdir(outputDir, { withFileTypes: true });+ const objects = [];++ for (const entry of entries) {+ if (!entry.isDirectory() || RESERVED_OUTPUT_DIRS.has(entry.name)) continue;++ const objectDir = path.join(outputDir, entry.name);+ const objectPath = path.join(objectDir, "object.json");+ const objectJson = await readJsonIfExists(objectPath);+ if (!objectJson) continue;++ const object = objectJson.object || objectJson;+ const objectFiles = await listDirFiles(objectDir);+ const hasModel = objectFiles.some((filePath) =>+ isVisibleFile(filePath) && MODEL_EXTENSIONS.has(path.extname(filePath).toLowerCase())+ );+ const sfxDir = path.join(objectDir, "sfx");+ const hasSfx = (await listDirFiles(sfxDir)).some(isVisibleGeneratedFile);++ objects.push({+ id: object.id || entry.name,+ name: object.name || entry.name,+ status: hasModel ? "completed" : "pending",+ working_dir: object.working_dir || objectDir,+ object_json: objectPath,+ has_sfx: hasSfx,+ updated_at: objectJson.updated_at+ });+ }++ return objects.sort((a, b) => a.id.localeCompare(b.id));+}++function objectCounts(objects) {+ const counts = { pending: 0, completed: 0 };+ for (const summary of objects) {+ const status = summary.status || "pending";+ if (counts[status] === undefined) counts[status] = 0;+ counts[status] += 1;+ }+ return counts;+}++function minimalProject({ slug, displayName, existingProject }) {+ return {+ schema_version: 1,+ slug,+ display_name: displayName || existingProject?.display_name || displayNameFromSlug(slug),+ created_at: existingProject?.created_at || new Date().toISOString(),+ notes: existingProject?.notes || undefined+ };+}++export async function ensureProjectState(options) {+ const {+ slug: rawSlug,+ description,+ displayName,+ write = true,+ stageInput = false,+ inputDir = "input"+ } = options;+ const slug = slugify(rawSlug || description || displayName || "");+ if (!slug) throw new Error("A project slug or description is required.");++ const worldDir = path.join("worlds", slug);+ for (const dir of PROJECT_DIRS) {+ await ensureDir(path.join(worldDir, dir));+ }++ const projectPath = path.join(worldDir, "project.json");+ const existingProject = await readJsonIfExists(projectPath);+ const project = minimalProject({ slug, displayName, existingProject });+ if (write) await writeJson(projectPath, project);++ const staged_files = stageInput ? await stageInputFiles(worldDir, inputDir) : [];+ const imagePath = path.join(worldDir, "image.json");+ const worldOutputPath = path.join(worldDir, "output", "world");+ const worldSfxPath = path.join(worldDir, "output", "sfx");+ const scenePath = path.join(worldDir, "scene.json");+ const objects = await scanObjects(worldDir);+ const sourceFiles = await listDirFiles(path.join(worldDir, "source"));+ const worldOutputFiles = await listDirFiles(worldOutputPath);+ const sourceImageFiles = sourceFiles.filter(isSourceImage);+ const sourceAnalysisFiles = sourceFiles.filter(isSourceAnalysis);+ const worldSfxFiles = (await listDirFiles(worldSfxPath)).filter(isVisibleGeneratedFile);+ const objectSfxCount = objects.filter((object) => object.has_sfx).length;++ return {+ schema_version: 1,+ project,+ project_json: projectPath,+ staged_files,+ objects,+ paths: {+ root: worldDir,+ source: path.join(worldDir, "source"),+ output: path.join(worldDir, "output"),+ world: path.join(worldDir, "output", "world"),+ sfx: worldSfxPath,+ scene_json: scenePath,+ image: imagePath+ },+ state: {+ has_world: Boolean(await latestIndexed(worldOutputPath, "world")),+ has_world_operation: worldOutputFiles.some(isWorldRequest) || await pathExists(path.join(worldOutputPath, "operation.json")),+ has_image: await pathExists(imagePath),+ source_image_count: sourceImageFiles.length,+ source_analysis_count: sourceAnalysisFiles.length,+ object_counts: objectCounts(objects),+ has_sfx: worldSfxFiles.length > 0 || objectSfxCount > 0,+ world_sfx_count: worldSfxFiles.length,+ object_sfx_count: objectSfxCount,+ has_scene: await pathExists(scenePath)+ }+ };+}++async function main() {+ const { flags, positionals } = parseArgs();+ const slug = one(flags, "world") || one(flags, "slug") || positionals[0];+ const description = one(flags, "description") || positionals.join(" ");+ const state = await ensureProjectState({+ slug,+ description,+ displayName: one(flags, "display-name"),+ write: one(flags, "write", "true") !== "false",+ stageInput: Boolean(flags["stage-input"]),+ inputDir: one(flags, "input-dir", "input")+ });++ console.log(JSON.stringify(state, null, 2));+}++if (import.meta.url === `file://${process.argv[1]}`) {+ main().catch((error) => {+ console.error(error.message);+ process.exit(1);+ });+}diff --git a/third_party/image-blaster/.claude/scripts/project/show-folder.mjs b/third_party/image-blaster/.claude/scripts/project/show-folder.mjsnew file mode 100644index 000000000..effe79b58--- /dev/null+++ b/third_party/image-blaster/.claude/scripts/project/show-folder.mjs@@ -0,0 +1,51 @@+#!/usr/bin/env node+import { spawn } from "node:child_process";+import { mkdir } from "node:fs/promises";+import path from "node:path";++function quoteForShell(value) {+ return `"${value.replaceAll("\\", "\\\\").replaceAll('"', '\\"')}"`;+}++function platformOpenCommand(targetPath) {+ switch (process.platform) {+ case "darwin":+ return { command: "open", args: [targetPath], display: `open ${quoteForShell(targetPath)}` };+ case "win32":+ return { command: "explorer.exe", args: [targetPath], display: `explorer ${quoteForShell(targetPath)}` };+ default:+ return { command: "xdg-open", args: [targetPath], display: `xdg-open ${quoteForShell(targetPath)}` };+ }+}++async function main() {+ const target = process.argv.slice(2).find((arg) => !arg.startsWith("--")) || "input";+ const targetPath = path.resolve(target);+ await mkdir(targetPath, { recursive: true });++ const openCommand = platformOpenCommand(targetPath);+ console.log(`Folder: ${targetPath}`);+ console.log(`Fallback command: ${openCommand.display}`);++ if (process.argv.includes("--print-only") || process.env.CI) {+ return;+ }++ const child = spawn(openCommand.command, openCommand.args, {+ detached: true,+ stdio: "ignore"+ });++ child.on("error", (error) => {+ console.error(`Could not open folder automatically: ${error.message}`);+ process.exitCode = 1;+ });++ child.unref();+ await new Promise((resolve) => setTimeout(resolve, 100));+}++main().catch((error) => {+ console.error(error.message);+ process.exit(1);+});diff --git a/third_party/image-blaster/.claude/scripts/project/show-path.mjs b/third_party/image-blaster/.claude/scripts/project/show-path.mjsnew file mode 100644index 000000000..abdc451d7--- /dev/null+++ b/third_party/image-blaster/.claude/scripts/project/show-path.mjs@@ -0,0 +1,71 @@+#!/usr/bin/env node+import { spawn } from "node:child_process";+import { access } from "node:fs/promises";+import path from "node:path";++function quoteForShell(value) {+ return `"${value.replaceAll("\\", "\\\\").replaceAll('"', '\\"')}"`;+}++function platformOpenCommand(targetPath, { reveal = false } = {}) {+ if (reveal) {+ switch (process.platform) {+ case "darwin":+ return { command: "open", args: ["-R", targetPath], display: `open -R ${quoteForShell(targetPath)}` };+ case "win32":+ return {+ command: "explorer.exe",+ args: [`/select,${targetPath}`],+ display: `explorer /select,${quoteForShell(targetPath)}`+ };+ default: {+ const folderPath = path.dirname(targetPath);+ return { command: "xdg-open", args: [folderPath], display: `xdg-open ${quoteForShell(folderPath)}` };+ }+ }+ }++ switch (process.platform) {+ case "darwin":+ return { command: "open", args: [targetPath], display: `open ${quoteForShell(targetPath)}` };+ case "win32":+ return { command: "explorer.exe", args: [targetPath], display: `explorer ${quoteForShell(targetPath)}` };+ default:+ return { command: "xdg-open", args: [targetPath], display: `xdg-open ${quoteForShell(targetPath)}` };+ }+}++async function main() {+ const target = process.argv.slice(2).find((arg) => !arg.startsWith("--"));+ if (!target) throw new Error("Usage: node show-path.mjs [--reveal] <file-or-folder>");++ const targetPath = path.resolve(target);+ await access(targetPath);++ const reveal = process.argv.includes("--reveal");+ const openCommand = platformOpenCommand(targetPath, { reveal });+ console.log(`Path: ${targetPath}`);+ console.log(`Fallback command: ${openCommand.display}`);++ if (process.argv.includes("--print-only") || process.env.CI) {+ return;+ }++ const child = spawn(openCommand.command, openCommand.args, {+ detached: true,+ stdio: "ignore"+ });++ child.on("error", (error) => {+ console.error(`Could not open path automatically: ${error.message}`);+ process.exitCode = 1;+ });++ child.unref();+ await new Promise((resolve) => setTimeout(resolve, 100));+}++main().catch((error) => {+ console.error(error.message);+ process.exit(1);+});diff --git a/third_party/image-blaster/.claude/scripts/project/show-url.mjs b/third_party/image-blaster/.claude/scripts/project/show-url.mjsnew file mode 100644index 000000000..7ad54c15b--- /dev/null+++ b/third_party/image-blaster/.claude/scripts/project/show-url.mjs@@ -0,0 +1,54 @@+#!/usr/bin/env node+import { spawn } from "node:child_process";++function quoteForShell(value) {+ return `"${value.replaceAll("\\", "\\\\").replaceAll('"', '\\"')}"`;+}++function platformOpenCommand(url) {+ switch (process.platform) {+ case "darwin":+ return { command: "open", args: [url], display: `open ${quoteForShell(url)}` };+ case "win32":+ return { command: "cmd.exe", args: ["/c", "start", "", url], display: `start ${quoteForShell(url)}` };+ default:+ return { command: "xdg-open", args: [url], display: `xdg-open ${quoteForShell(url)}` };+ }+}++function viewerUrlFromSlug(slug) {+ if (!slug) throw new Error("Usage: node show-url.mjs <world-slug-or-url>");+ if (/^https?:\/\//u.test(slug)) return slug;+ return `http://localhost:5173/${encodeURIComponent(slug)}`;+}++async function main() {+ const slug = process.argv.slice(2).find((arg) => !arg.startsWith("--"));+ const url = viewerUrlFromSlug(slug);+ const openCommand = platformOpenCommand(url);++ console.log(`URL: ${url}`);+ console.log(`Fallback command: ${openCommand.display}`);++ if (process.argv.includes("--print-only") || process.env.CI) {+ return;+ }++ const child = spawn(openCommand.command, openCommand.args, {+ detached: true,+ stdio: "ignore"+ });++ child.on("error", (error) => {+ console.error(`Could not open URL automatically: ${error.message}`);+ process.exitCode = 1;+ });++ child.unref();+ await new Promise((resolve) => setTimeout(resolve, 100));+}++main().catch((error) => {+ console.error(error.message);+ process.exit(1);+});diff --git a/third_party/image-blaster/.claude/scripts/sfx/fal-elevenlabs-sfx.mjs b/third_party/image-blaster/.claude/scripts/sfx/fal-elevenlabs-sfx.mjsnew file mode 100644index 000000000..832c77930--- /dev/null+++ b/third_party/image-blaster/.claude/scripts/sfx/fal-elevenlabs-sfx.mjs@@ -0,0 +1,464 @@+#!/usr/bin/env node+import { execFile } from "node:child_process";+import { rename, stat, unlink } from "node:fs/promises";+import {+ callFalQueue,+ downloadFile,+ ensureDir,+ getFalQueueResult,+ one,+ parseArgs,+ pathExists,+ pollFalQueue,+ readJson,+ slugify,+ writeJson+} from "../asset-pipeline/fal-queue.mjs";+import {+ artifactPath,+ buildRequestSummary,+ nextIndex,+ requestMetadataFiles,+ requestPath+} from "../asset-pipeline/request-metadata.mjs";++const ENDPOINT = "fal-ai/elevenlabs/sound-effects/v2";+const DEFAULT_OUTPUT_FORMAT = "mp3_44100_128";+const SILENCE_THRESHOLD_DB = "-45dB";+const START_SILENCE_SECONDS = "0.03";+const END_SILENCE_SECONDS = "0.05";++function asBool(value, fallback = false) {+ if (value === undefined) return fallback;+ if (value === true) return true;+ if (value === false) return false;+ return !["false", "0", "no", "off"].includes(String(value).toLowerCase());+}++function asNumber(value, fallback = undefined) {+ if (value === undefined || value === null || value === "") return fallback;+ const number = Number(value);+ if (!Number.isFinite(number)) throw new Error(`Expected a number, received "${value}".`);+ return number;+}++function clampCount(value) {+ const count = Math.trunc(asNumber(value, 1));+ if (count < 1 || count > 4) {+ throw new Error("count must be between 1 and 4.");+ }+ return count;+}++function extensionForOutputFormat(outputFormat) {+ if (outputFormat.startsWith("mp3_")) return ".mp3";+ if (outputFormat.startsWith("pcm_")) return ".pcm";+ if (outputFormat.startsWith("opus_")) return ".opus";+ if (outputFormat.startsWith("ulaw_")) return ".ulaw";+ if (outputFormat.startsWith("alaw_")) return ".alaw";+ return ".audio";+}++async function readJsonIfExists(filePath) {+ return (await pathExists(filePath)) ? readJson(filePath) : undefined;+}++function statusText(value) {+ return String(value || "").toLowerCase();+}++function isActiveRequest(request) {+ const status = statusText(request.data?.status);+ return Boolean(request.data?.request_id && request.data?.endpoint) &&+ !["completed", "failed", "cancelled", "canceled"].includes(status);+}++async function resumeFalRequest(request, pollIntervalMs = 3000) {+ const status = await pollFalQueue(request.data.endpoint, request.data.request_id, {+ statusUrl: request.data.status_url,+ metadataPath: request.path,+ pollIntervalMs+ });+ const result = await getFalQueueResult(request.data.endpoint, request.data.request_id, {+ responseUrl: request.data.response_url,+ metadataPath: request.path+ });++ return {+ requestId: request.data.request_id,+ submittedAt: request.data.submitted_at,+ status: status.status,+ data: result.data+ };+}++function runCommand(command, args, options = {}) {+ return new Promise((resolve, reject) => {+ execFile(command, args, { maxBuffer: 1024 * 1024 * 10 }, (error, stdout, stderr) => {+ if (error && !options.allowFailure) {+ error.message = `${command} ${args.join(" ")} failed: ${error.message}\n${stderr}`;+ reject(error);+ return;+ }++ resolve({+ stdout,+ stderr,+ exitCode: error?.code ?? 0+ });+ });+ });+}++async function assertAudioTools() {+ await runCommand("ffmpeg", ["-version"]);+ await runCommand("ffprobe", ["-version"]);+}++function parseDb(value) {+ if (value === undefined) return undefined;+ const number = Number(value);+ return Number.isFinite(number) ? number : undefined;+}++function roundSeconds(value) {+ if (!Number.isFinite(value)) return undefined;+ return Math.round(value * 1000) / 1000;+}++function canPostprocessExtension(extension) {+ return [".mp3", ".opus"].includes(extension);+}++async function probeDuration(filePath) {+ const { stdout } = await runCommand("ffprobe", [+ "-v",+ "error",+ "-show_entries",+ "format=duration",+ "-of",+ "json",+ filePath+ ]);+ const duration = Number(JSON.parse(stdout)?.format?.duration);+ return Number.isFinite(duration) ? duration : undefined;+}++async function detectSilence(filePath, durationSeconds) {+ const { stderr } = await runCommand("ffmpeg", [+ "-hide_banner",+ "-nostats",+ "-i",+ filePath,+ "-af",+ `silencedetect=noise=${SILENCE_THRESHOLD_DB}:d=${START_SILENCE_SECONDS}`,+ "-f",+ "null",+ "-"+ ]);++ const starts = [...stderr.matchAll(/silence_start:\s*([0-9.]+)/g)].map((match) => Number(match[1]));+ const ends = [...stderr.matchAll(/silence_end:\s*([0-9.]+)\s*\|\s*silence_duration:\s*([0-9.]+)/g)].map(+ (match) => ({+ end: Number(match[1]),+ duration: Number(match[2])+ })+ );++ const leadingEnd = starts[0] <= 0.05 ? ends[0]?.end : undefined;+ const lastStart = starts.at(-1);+ const lastEnd = ends.at(-1);+ const trailingStart =+ durationSeconds !== undefined && lastStart !== undefined && durationSeconds - lastStart >= Number(END_SILENCE_SECONDS)+ ? lastStart+ : undefined;++ return {+ threshold_db: SILENCE_THRESHOLD_DB,+ leading_seconds: roundSeconds(leadingEnd ?? 0),+ trailing_seconds: roundSeconds(+ trailingStart !== undefined+ ? Math.max(0, durationSeconds - trailingStart)+ : lastEnd && durationSeconds !== undefined && Math.abs(durationSeconds - lastEnd.end) <= 0.05+ ? lastEnd.duration+ : 0+ ),+ regions: starts.map((start, index) => ({+ start: roundSeconds(start),+ end: roundSeconds(ends[index]?.end),+ duration: roundSeconds(ends[index]?.duration)+ }))+ };+}++async function measureVolume(filePath) {+ const { stderr } = await runCommand("ffmpeg", [+ "-hide_banner",+ "-nostats",+ "-i",+ filePath,+ "-af",+ "volumedetect",+ "-f",+ "null",+ "-"+ ]);++ return {+ mean_db: parseDb(stderr.match(/mean_volume:\s*(-?[0-9.]+)\s*dB/)?.[1]),+ max_db: parseDb(stderr.match(/max_volume:\s*(-?[0-9.]+)\s*dB/)?.[1])+ };+}++export async function analyzeAudio(filePath) {+ const [durationSeconds, volume, fileStat] = await Promise.all([+ probeDuration(filePath),+ measureVolume(filePath),+ stat(filePath)+ ]);+ const silence = await detectSilence(filePath, durationSeconds);++ return {+ duration_seconds: roundSeconds(durationSeconds),+ bytes: fileStat.size,+ volume,+ silence+ };+}++function scoreAudio(analysis) {+ const duration = analysis?.after?.duration_seconds ?? analysis?.before?.duration_seconds ?? 0;+ const leading = analysis?.before?.silence?.leading_seconds ?? 0;+ const trailing = analysis?.before?.silence?.trailing_seconds ?? 0;+ const maxDb = analysis?.after?.volume?.max_db;++ let score = 100;+ score -= Math.min(35, leading * 120);+ score -= Math.min(20, trailing * 50);+ if (duration > 3) score -= Math.min(20, (duration - 3) * 8);+ if (maxDb !== undefined && maxDb < -8) score -= Math.min(20, Math.abs(maxDb + 8) * 2);+ return Math.max(0, Math.round(score));+}++export async function analyzeAndPostprocessAudio(filePath, options = {}) {+ const extension = options.extension ?? ".mp3";+ const postprocess = options.postprocess !== false;+ const before = await analyzeAudio(filePath);++ if (!postprocess || !canPostprocessExtension(extension)) {+ return {+ postprocessed: false,+ skipped_reason: postprocess ? `Unsupported audio extension ${extension}` : "Post-processing disabled",+ before,+ after: before,+ quality_score: scoreAudio({ before, after: before })+ };+ }++ const tempPath = `${filePath}.postprocess${extension}`;+ const filters = [+ `silenceremove=start_periods=1:start_duration=${START_SILENCE_SECONDS}:start_threshold=${SILENCE_THRESHOLD_DB}:stop_periods=-1:stop_duration=${END_SILENCE_SECONDS}:stop_threshold=${SILENCE_THRESHOLD_DB}`,+ "loudnorm=I=-16:TP=-1.5:LRA=11"+ ].join(",");++ try {+ await runCommand("ffmpeg", ["-y", "-hide_banner", "-nostdin", "-i", filePath, "-af", filters, tempPath]);+ await rename(tempPath, filePath);+ } catch (error) {+ await unlink(tempPath).catch(() => {});+ throw error;+ }++ const after = await analyzeAudio(filePath);++ return {+ postprocessed: true,+ filters,+ before,+ after,+ trimmed_seconds: {+ leading: before.silence.leading_seconds,+ trailing: before.silence.trailing_seconds,+ total: roundSeconds((before.duration_seconds ?? 0) - (after.duration_seconds ?? 0))+ },+ quality_score: scoreAudio({ before, after })+ };+}++export async function generateSfx(options) {+ const {+ prompt,+ outputDir,+ prefix = "sfx",+ count = 1,+ loop = false,+ durationSeconds,+ promptInfluence = 0.3,+ outputFormat = DEFAULT_OUTPUT_FORMAT,+ kind = "sfx",+ postprocess = true+ } = options;++ if (!prompt) throw new Error("prompt is required.");+ if (!outputDir) throw new Error("outputDir is required.");++ const requestedCount = clampCount(count);+ const duration = asNumber(durationSeconds, undefined);+ if (duration !== undefined && (duration < 0.5 || duration > 22)) {+ throw new Error("durationSeconds must be between 0.5 and 22 for the FAL ElevenLabs SFX endpoint.");+ }++ const influence = asNumber(promptInfluence, 0.3);+ if (influence < 0 || influence > 1) {+ throw new Error("promptInfluence must be between 0 and 1.");+ }++ await ensureDir(outputDir);+ const extension = extensionForOutputFormat(outputFormat);+ const shouldPostprocess = asBool(postprocess, true) && !loop;+ if (shouldPostprocess) {+ await assertAudioTools();+ if (!canPostprocessExtension(extension)) {+ throw new Error(`Audio post-processing is only supported for mp3 and opus outputs, received ${outputFormat}.`);+ }+ }+ const files = [];+ const requests = [];++ for (let index = 0; index < requestedCount; index += 1) {+ const input = {+ text: prompt,+ loop: Boolean(loop),+ prompt_influence: influence,+ output_format: outputFormat+ };+ if (duration !== undefined) input.duration_seconds = duration;++ const audioPrefix = requestedCount > 1 ? `${prefix}-${index + 1}` : prefix;+ const activeRequest = (await requestMetadataFiles(outputDir, { slug: audioPrefix })).find(isActiveRequest);+ const requestIndex = activeRequest?.index ?? await nextIndex(outputDir, audioPrefix);+ const metadataPath = activeRequest?.path ?? requestPath(outputDir, requestIndex, audioPrefix);+ const result = activeRequest+ ? await resumeFalRequest(activeRequest)+ : await callFalQueue(ENDPOINT, input, {+ metadataPath,+ metadata: {+ kind: "sfx",+ sfx_kind: kind,+ provider: ENDPOINT,+ index: requestIndex+ },+ pollIntervalMs: 3000+ });+ const audioUrl = result.data?.audio?.url;+ if (!audioUrl) {+ throw new Error("FAL SFX result did not include audio.url.");+ }++ const audioPath = artifactPath(outputDir, requestIndex, audioPrefix, extension);+ await downloadFile(audioUrl, audioPath);+ const audioAnalysis = await analyzeAndPostprocessAudio(audioPath, {+ extension,+ postprocess: shouldPostprocess+ });++ const file = {+ path: audioPath,+ url: audioUrl,+ source: result.data.audio,+ output_format: outputFormat,+ loop: Boolean(loop),+ duration_seconds: audioAnalysis.after.duration_seconds ?? duration,+ audio_analysis: audioAnalysis+ };+ files.push(file);+ requests.push({+ index: requestIndex,+ kind: "sfx",+ request_id: result.requestId,+ generated_at: new Date().toISOString(),+ endpoint: ENDPOINT,+ metadata_path: metadataPath,+ file: audioPath+ });++ const metadata = (await readJsonIfExists(metadataPath)) || {};+ const summary = buildRequestSummary({+ kind: "sfx",+ provider: ENDPOINT,+ metadata: {+ index: requestIndex,+ sfx_kind: kind+ },+ requestId: result.requestId,+ submittedAt: result.submittedAt,+ prompt,+ inputFiles: [],+ outputFiles: [audioPath],+ downloadedFiles: [{+ label: "audio",+ path: audioPath,+ source: result.data.audio+ }],+ result: result.data,+ extra: {+ audio_analysis: audioAnalysis+ }+ });++ await writeJson(metadataPath, {+ ...metadata,+ ...summary+ });+ }++ const run = {+ id: new Date().toISOString(),+ kind,+ prompt,+ loop: Boolean(loop),+ count: requestedCount,+ files,+ requests+ };++ return {+ ...run,+ provider: ENDPOINT,+ endpoint: ENDPOINT+ };+}++async function main() {+ const { flags, positionals } = parseArgs();+ const prompt = one(flags, "prompt") || positionals.join(" ");+ const outputDir = one(flags, "output-dir");++ if (!prompt || !outputDir) {+ throw new Error(+ "Usage: node fal-elevenlabs-sfx.mjs --prompt <description> --output-dir <dir> [--count 1-4] [--loop] [--duration-seconds <0.5-22>]"+ );+ }++ const result = await generateSfx({+ prompt,+ outputDir,+ prefix: one(flags, "prefix", slugify(prompt).slice(0, 40) || "sfx"),+ count: one(flags, "count", 1),+ loop: asBool(one(flags, "loop"), false),+ durationSeconds: one(flags, "duration-seconds"),+ promptInfluence: one(flags, "prompt-influence", 0.3),+ outputFormat: one(flags, "output-format", DEFAULT_OUTPUT_FORMAT),+ kind: one(flags, "kind", "sfx"),+ postprocess: asBool(one(flags, "postprocess"), true)+ });++ console.log(JSON.stringify(result, null, 2));+}++if (import.meta.url === `file://${process.argv[1]}`) {+ main().catch((error) => {+ console.error(error.message);+ process.exit(1);+ });+}diff --git a/third_party/image-blaster/.claude/scripts/world/generate-world.mjs b/third_party/image-blaster/.claude/scripts/world/generate-world.mjsnew file mode 100644index 000000000..d562ad0c8--- /dev/null+++ b/third_party/image-blaster/.claude/scripts/world/generate-world.mjs@@ -0,0 +1,410 @@+#!/usr/bin/env node+import { copyFile, readFile, readdir } from "node:fs/promises";+import path from "node:path";+import {+ downloadFile,+ ensureDir,+ inferMime,+ isUrl,+ many,+ one,+ parseArgs,+ pathExists,+ readJson,+ requireEnv,+ stripBase64,+ writeJson+} from "../asset-pipeline/fal-queue.mjs";+import {+ artifactPath,+ isVisibleFile,+ nextIndex,+ parseIndexedName,+ requestPath+} from "../asset-pipeline/request-metadata.mjs";++const ENDPOINT = "https://api.worldlabs.ai/marble/v1";+const MODEL = "marble-1.1";+const IMAGE_EXTENSIONS = new Set([".avif", ".gif", ".heic", ".heif", ".jpeg", ".jpg", ".png", ".webp"]);++async function downloadAsset(url, destPath) {+ if (await pathExists(destPath)) return destPath;+ return downloadFile(url, destPath);+}++async function copyWorldPlate(image, outputDir, index) {+ if (!image || isUrl(image)) return undefined;+ const ext = path.extname(image).toLowerCase();+ if (!IMAGE_EXTENSIONS.has(ext)) return undefined;++ const sourcePath = path.resolve(image);+ if (!(await pathExists(sourcePath))) return undefined;++ const destPath = artifactPath(outputDir, index, "world-plate", ext);+ if (!(await pathExists(destPath))) await copyFile(sourcePath, destPath);+ return destPath;+}++function extensionFromUrl(url, fallback) {+ try {+ return path.extname(new URL(url).pathname) || fallback;+ } catch {+ return fallback;+ }+}++function assetKeyForFilename(key) {+ return String(key).replace(/[^a-z0-9_-]/gi, "_");+}++async function downloadWorldAssets(worldResponse, outputDir, index) {+ const assets = worldResponse.assets || {};+ const result = { spz: {} };++ const glbUrl = assets.mesh?.collider_mesh_url;+ if (glbUrl) {+ result.glb = await downloadAsset(glbUrl, path.join(outputDir, `${index}-world.glb`));+ }++ const panoUrl = assets.imagery?.pano_url;+ if (panoUrl) {+ const ext = extensionFromUrl(panoUrl, ".png");+ result.pano = await downloadAsset(panoUrl, path.join(outputDir, `${index}-world-pano${ext}`));+ }++ const thumbnailUrl = assets.thumbnail_url;+ if (thumbnailUrl) {+ const ext = extensionFromUrl(thumbnailUrl, ".webp");+ result.thumbnail = await downloadAsset(thumbnailUrl, path.join(outputDir, `${index}-world-thumbnail${ext}`));+ }++ const spzUrls = assets.splats?.spz_urls || {};+ for (const [key, url] of Object.entries(spzUrls)) {+ if (!url) continue;+ result.spz[key] = await downloadAsset(url, path.join(outputDir, `${index}-world-${assetKeyForFilename(key)}.spz`));+ }++ return result;+}++function sleep(ms) {+ return new Promise((resolve) => setTimeout(resolve, ms));+}++async function readJsonIfExists(filePath) {+ return (await pathExists(filePath)) ? readJson(filePath) : undefined;+}++async function latestSourceImage(sourceDir) {+ const entries = await readdir(sourceDir, { withFileTypes: true }).catch(() => []);+ const images = entries+ .filter((entry) => entry.isFile())+ .map((entry) => path.join(sourceDir, entry.name))+ .filter((filePath) => isVisibleFile(filePath) && IMAGE_EXTENSIONS.has(path.extname(filePath).toLowerCase()))+ .map((filePath) => parseIndexedName(filePath) || { index: 0, path: filePath, slug: path.basename(filePath) });++ return images.sort((a, b) => b.index - a.index || a.slug.localeCompare(b.slug))[0]?.path;+}++async function promptFromImageJson(world) {+ const imageJson = await readJsonIfExists(`worlds/${world}/image.json`);+ if (!imageJson) return undefined;++ return [+ imageJson.scene_name,+ imageJson.literal_description,+ imageJson.environment,+ imageJson.visual_style,+ imageJson.lighting,+ imageJson.atmosphere+ ]+ .filter(Boolean)+ .join("\n");+}++async function imagePrompt(image, textPrompt) {+ if (isUrl(image)) {+ return {+ type: "image",+ image_prompt: {+ source: "uri",+ uri: image+ },+ ...(textPrompt ? { text_prompt: textPrompt } : {})+ };+ }++ const data = await readFile(image);+ const extension = path.extname(image).replace(/^\./, "") || "png";+ return {+ type: "image",+ image_prompt: {+ source: "data_base64",+ data_base64: data.toString("base64"),+ extension,+ mime_type: inferMime(image)+ },+ ...(textPrompt ? { text_prompt: textPrompt } : {})+ };+}++async function buildRequest({ world, image, prompt }) {+ const textPrompt = prompt || await promptFromImageJson(world);+ if (image) {+ return {+ display_name: world,+ model: MODEL,+ world_prompt: await imagePrompt(image, textPrompt)+ };+ }++ if (!textPrompt) {+ throw new Error("World generation requires a source image, prompt, or worlds/<world>/image.json.");+ }++ return {+ display_name: world,+ model: MODEL,+ world_prompt: {+ type: "text",+ text_prompt: textPrompt+ }+ };+}++async function submitWorld(request) {+ const apiKey = await requireEnv("WORLD_LABS_API_KEY");+ const response = await fetch(`${ENDPOINT}/worlds:generate`, {+ method: "POST",+ headers: {+ "Content-Type": "application/json",+ "WLT-Api-Key": apiKey+ },+ body: JSON.stringify(request)+ });++ const body = await response.json().catch(() => ({}));+ if (!response.ok) {+ throw new Error(`World Labs submit failed (${response.status}).`);+ }++ return body;+}++function operationId(operation) {+ const id = operation?.operation_id || operation?.id || operation?.name;+ if (!id) throw new Error("World Labs operation did not include operation_id.");+ return String(id).split("/").at(-1);+}++function requestStatus(operation) {+ if (operation?.error) return "failed";+ return operation?.done ? "completed" : "running";+}++async function writeWorldRequest(metadataPath, metadata) {+ await writeJson(metadataPath, {+ schema_version: 1,+ kind: "world",+ provider: "world-labs",+ endpoint: ENDPOINT,+ model: MODEL,+ ...metadata,+ result: stripBase64(metadata.result)+ });+}++async function worldRequests(outputDir) {+ const entries = await readdir(outputDir, { withFileTypes: true }).catch(() => []);+ const requests = [];+ for (const entry of entries) {+ if (!entry.isFile()) continue;+ const parsed = parseIndexedName(entry.name);+ if (!parsed?.hidden || parsed.slug !== "world") continue;+ const request = await readJsonIfExists(path.join(outputDir, entry.name));+ if (!request) continue;+ requests.push({ index: parsed.index, path: path.join(outputDir, entry.name), data: request });+ }+ return requests.sort((a, b) => b.index - a.index);+}++function isActiveRequest(request) {+ return request?.data?.request_id && !["completed", "failed", "cancelled", "canceled"].includes(request.data.status);+}++async function latestWorldArtifact(outputDir) {+ const entries = await readdir(outputDir, { withFileTypes: true }).catch(() => []);+ const worlds = entries+ .filter((entry) => entry.isFile())+ .map((entry) => parseIndexedName(entry.name))+ .filter((entry) => entry?.slug === "world" && entry.extension === ".json");+ return worlds.sort((a, b) => b.index - a.index || b.name.localeCompare(a.name))[0];+}++async function nextWorldIndex(outputDir) {+ return nextIndex(outputDir, "world");+}++async function pollOperation(operation, metadataPath, baseMetadata, pollIntervalMs) {+ const apiKey = await requireEnv("WORLD_LABS_API_KEY");+ let current = operation;+ const id = operationId(current);++ while (!current.done) {+ await sleep(pollIntervalMs);+ const response = await fetch(`${ENDPOINT}/operations/${id}`, {+ headers: {+ "WLT-Api-Key": apiKey+ }+ });+ const body = await response.json().catch(() => ({}));+ if (!response.ok) {+ throw new Error(`World Labs poll failed (${response.status}).`);+ }+ current = body;+ await writeWorldRequest(metadataPath, {+ ...baseMetadata,+ status: requestStatus(current),+ result: current+ });+ }++ return current;+}++export async function generateWorld(options) {+ const {+ world,+ image,+ prompt,+ regenerate = false,+ pollIntervalMs = 15000+ } = options;++ if (!world) throw new Error("world is required.");++ const outputDir = `worlds/${world}/output/world`;+ await ensureDir(outputDir);++ const existingWorld = regenerate ? undefined : await latestWorldArtifact(outputDir);+ if (existingWorld) {+ return {+ world,+ index: existingWorld.index,+ skipped: true,+ skip_reason: `${existingWorld.name} already exists. Pass --regenerate to create a new world.`,+ world_json: existingWorld.path+ };+ }++ const activeRequest = regenerate ? undefined : (await worldRequests(outputDir)).find(isActiveRequest);+ const requestIndex = activeRequest?.index ?? await nextWorldIndex(outputDir);+ const metadataPath = activeRequest?.path ?? requestPath(outputDir, requestIndex, "world");+ const worldPath = artifactPath(outputDir, requestIndex, "world", ".json");+ const request = activeRequest?.data?.request || await buildRequest({ world, image, prompt });+ const submittedAt = activeRequest?.data?.submitted_at || new Date().toISOString();+ const inputFiles = image ? [image] : [];+ const textPrompt = prompt || request.world_prompt?.text_prompt || request.world_prompt?.image_prompt?.text_prompt;+ const baseMetadata = {+ index: requestIndex,+ status: "submitted",+ request_id: activeRequest?.data?.request_id,+ submitted_at: submittedAt,+ prompt: textPrompt,+ input_files: inputFiles,+ output_files: [],+ downloaded_files: [],+ request: stripBase64(request)+ };+ const operation = activeRequest?.data?.result || await submitWorld(request);+ const requestId = operationId(operation);++ await writeWorldRequest(metadataPath, {+ ...baseMetadata,+ request_id: requestId,+ status: requestStatus(operation),+ result: operation+ });++ const completed = await pollOperation(operation, metadataPath, {+ ...baseMetadata,+ request_id: requestId+ }, Number(pollIntervalMs));++ if (completed.error) {+ await writeWorldRequest(metadataPath, {+ ...baseMetadata,+ request_id: requestId,+ status: "failed",+ completed_at: new Date().toISOString(),+ result: completed,+ error: completed.error+ });+ const message = typeof completed.error === "string" ? `: ${completed.error}` : "";+ throw new Error(`World Labs generation failed${message}.`);+ }+ if (!completed.response) {+ throw new Error("World Labs operation completed without response.");+ }++ await writeJson(worldPath, completed.response);++ const plate = await copyWorldPlate(image, outputDir, requestIndex);+ const downloaded = await downloadWorldAssets(completed.response, outputDir, requestIndex);+ const downloadedFiles = [+ plate,+ downloaded.glb,+ downloaded.pano,+ downloaded.thumbnail,+ ...Object.values(downloaded.spz)+ ].filter(Boolean);+ await writeWorldRequest(metadataPath, {+ ...baseMetadata,+ request_id: requestId,+ status: "completed",+ completed_at: new Date().toISOString(),+ output_files: [worldPath],+ downloaded_files: downloadedFiles,+ result: completed+ });++ return {+ world,+ index: requestIndex,+ operation_id: operationId(completed),+ request_metadata: metadataPath,+ world_json: worldPath,+ ...(plate ? { plate } : {}),+ ...downloaded,+ route: `/${world}`+ };+}++async function main() {+ const { flags } = parseArgs();+ const world = one(flags, "world");+ if (!world) {+ throw new Error("Usage: node generate-world.mjs --world <world-name> [--image <path-or-url>] [--prompt <text>] [--regenerate]");+ }++ const prompt = [...many(flags, "prompt"), ...many(flags, "description")].join("\n").trim() || undefined;+ const explicitImage = one(flags, "image");+ const image = explicitImage || await latestSourceImage(`worlds/${world}/source`);++ const result = await generateWorld({+ world,+ image,+ prompt,+ regenerate: Boolean(flags.regenerate),+ pollIntervalMs: one(flags, "poll-interval-ms", 15000)+ });++ console.log(JSON.stringify(result, null, 2));+}++if (import.meta.url === `file://${process.argv[1]}`) {+ main().catch((error) => {+ console.error(error.message);+ process.exit(1);+ });+}diff --git a/third_party/image-blaster/.claude/settings.json b/third_party/image-blaster/.claude/settings.jsonnew file mode 100644index 000000000..a523655a1--- /dev/null+++ b/third_party/image-blaster/.claude/settings.json@@ -0,0 +1,44 @@+{+ "permissions": {+ "allow": [+ "Skill(image-blast-project)",+ "Skill(image-blast-uncover)",+ "Skill(image-blast-world)",+ "Skill(image-blast-3d)",+ "Skill(image-blast-sfx)",+ "Skill(image-blast-plate)",+ "Skill(image-blast-image-edit)",+ "Skill(image-blast-wildcard)",+ "Bash(ls:*)",+ "Bash(node .claude/scripts/**:*)",+ "Bash(node .claude/scripts/project/show-url.mjs:*)",+ "Bash(bun install:*)",+ "Bash(bun run dev:*)",+ "Bash(lsof:*)",+ "Bash(mkdir:*)",+ "Bash(cd:*)"+ ]+ },+ "hooks": {+ "SessionStart": [+ {+ "hooks": [+ {+ "type": "command",+ "command": "\"$CLAUDE_PROJECT_DIR\"/.claude/hooks/setup-check.sh"+ }+ ]+ }+ ],+ "UserPromptSubmit": [+ {+ "hooks": [+ {+ "type": "command",+ "command": "\"$CLAUDE_PROJECT_DIR\"/.claude/hooks/input-check.sh"+ }+ ]+ }+ ]+ }+}diff --git a/third_party/image-blaster/.claude/skills/image-blast-3d/SKILL.md b/third_party/image-blaster/.claude/skills/image-blast-3d/SKILL.mdnew file mode 100644index 000000000..d196c2373--- /dev/null+++ b/third_party/image-blaster/.claude/skills/image-blast-3d/SKILL.md@@ -0,0 +1,100 @@+---+name: image-blast-3d+description: Generate one specified atomic 3D object. Use when the user names exactly one object instance to make, or provides one image plus the object name/description.+argument-hint: [world-name] [object-id/name or image path + object description] [--image-edit-prompt prompt] [--provider meshy|hunyuan] [--regenerate] [--regenerate-reference] [--target-polycount N] [--face-count N] [--generate-type Normal|LowPoly|Geometry] [--polygon-type triangle|quadrilateral] [--enable-pbr true|false]+allowed-tools: Read Write Glob Bash(ls *) Bash(node .claude/scripts/project/project-state.mjs *) Bash(node .claude/scripts/project/ensure-local-assets.mjs *) Bash(node .claude/scripts/asset-pipeline/generate-single-asset.mjs *)+context: fork+agent: image-blast-3d+---++Create exactly one 3D object for project `$0`.++## Instructions++The arguments must identify one object clearly enough for this forked skill to work alone.++- If `$0` is missing, ask for the world slug.+- If the object is missing or ambiguous, ask for exactly one atomic object instance.+- Use `ls -a` before reading generated state.+- Find the object in `worlds/$0/output/<object>/object.json`, `worlds/$0/image.json`, or `worlds/$0/source/*.json`.+- If the object has no `object.json`, create the minimal durable intent:++```json+{+ "schema_version": 1,+ "world": "$0",+ "object": {+ "id": "<object-slug>",+ "name": "<object name>",+ "description": "<literal object description>",+ "materials": [],+ "source_images": [],+ "evidence": [],+ "generate_as_3d_object": true,+ "working_dir": "worlds/$0/output/<object-slug>"+ },+ "updated_at": "..."+}+```++- Preserve available `description`, `materials`, `source_images`, and `evidence`.+- Write a natural image-edit prompt for this specific object and pass it as `--image-edit-prompt`. Use this as the base prompt, filling in the target object and then elaborating with object-specific details: "Isolate the <target object> from this image. Reproduce it exactly as shown -- same colors, materials, and proportions. White background, centered, tight crop, studio lighting. No other objects, no scene, no people, no text, no shadows on the ground. Isolate the object and remove all clustered, adjacent, overlapping, or items resting on the target object. Create a clean render of that one single object that is true to the source image."+- The prompt must ask for one atomic physical instance only: not a pair, set, cluster, category example, or adjacent duplicate. If the source contains similar objects, identify the target by location and exclude the others.+- Do not write generated status, jobs, file lists, or request lifecycle into `object.json`.++Run the generator and wait for it to finish:++```bash+node .claude/scripts/asset-pipeline/generate-single-asset.mjs --world "$0" --object-id "<object-id>" --image-edit-prompt "<object-specific extraction prompt>"+```++The first run may create a clean reference PNG with image edit. Later runs reuse the latest reference PNG by default, including `--regenerate` model runs. Use `--regenerate-reference` only when the user asks for a new extraction from the source image. For iterative refinement, pass `--reference-only` to stop after the image-edit step.++If request metadata records provider URLs but local model or image files are missing, fill them from the matching hidden request JSON:++```bash+node .claude/scripts/project/ensure-local-assets.mjs --from "<request-json-path>"+```++Hunyuan is the default 3D provider. Hunyuan defaults are `--face-count 50000`, `--enable-pbr true`, and `--generate-type Normal`. If the user asks for more detail, polygon reduction, or a white geometry-only model, pass the matching options:++- `--face-count <40000-1500000>`+- `--generate-type Normal|LowPoly|Geometry`+- `--polygon-type triangle|quadrilateral` for `LowPoly`+- `--enable-pbr true|false`++Pass `--provider meshy` only when the user asks for Meshy. Meshy defaults are:++```json+{+ "topology": "triangle",+ "target_polycount": 30000,+ "symmetry_mode": "auto",+ "should_remesh": true,+ "should_texture": true,+ "rigging_height_meters": 1.7,+ "animation_action_id": 12,+ "enable_safety_checker": true,+ "enable_animation": false,+ "enable_rigging": false,+ "enable_pbr": true+}+```++For Meshy-specific requests, pass the matching options:++- `--target-polycount <integer>`+- `--topology triangle`+- `--symmetry-mode auto`+- `--should-remesh true|false`+- `--should-texture true|false`+- `--enable-animation true|false`+- `--enable-rigging true|false`++For explicit model regeneration from the existing reference, append `--regenerate`. For a new source extraction and model, append `--regenerate-reference`. For direct single-image generation, use:++```bash+node .claude/scripts/asset-pipeline/generate-single-asset.mjs --world "$0" --image "<image-path>" --object-name "<object-name>" --description "<description>" --image-edit-prompt "<object-specific extraction prompt>"+```++Final response: report the object id, output directory, generated model files, and any failed/resumable request metadata.\ No newline at end of filediff --git a/third_party/image-blaster/.claude/skills/image-blast-image-edit/SKILL.md b/third_party/image-blaster/.claude/skills/image-blast-image-edit/SKILL.mdnew file mode 100644index 000000000..2266f82ef--- /dev/null+++ b/third_party/image-blaster/.claude/skills/image-blast-image-edit/SKILL.md@@ -0,0 +1,40 @@+---+name: image-blast-image-edit+description: Generate one image edit from explicit input images and a prompt. Use for source cleanup, clean plates, object removal, or other FAL-backed image edits.+argument-hint: [image path] [prompt] [optional output dir, role, output slug]+allowed-tools: Read Write Glob Bash(ls *) Bash(node .claude/scripts/project/ensure-local-assets.mjs *) Bash(node .claude/scripts/image-edit/generate-edit.mjs *)+context: fork+agent: image-blast-image-edit+---++Create one edited image.++## Instructions++- Require at least one input image and one edit prompt.+- Use `ls -a` before reading generated state.+- Use the output directory, role, and output slug provided by the caller.+- Use `--role` for semantics such as `plate`, `object-mask`, or `image-edit`.+- Use `--output-slug` for the visible indexed artifact name, such as `<source-slug>-plate`.++Run:++```bash+node .claude/scripts/image-edit/generate-edit.mjs \+ --image "<input image path>" \+ --prompt "<edit prompt>" \+ --output-dir "<output directory>" \+ --role "<role>" \+ --output-slug "<output slug>"+```++Optional provider override: `--provider nano-banana|gpt-image-2`.++If request metadata records provider URLs but local image files are missing, fill them from the matching hidden request JSON:++```bash+node .claude/scripts/project/ensure-local-assets.mjs --from "<request-json-path>"+```++Final response: report input images, output image, request metadata, role, and prompt used.+diff --git a/third_party/image-blaster/.claude/skills/image-blast-plate/SKILL.md b/third_party/image-blaster/.claude/skills/image-blast-plate/SKILL.mdnew file mode 100644index 000000000..aa695f98f--- /dev/null+++ b/third_party/image-blaster/.claude/skills/image-blast-plate/SKILL.md@@ -0,0 +1,50 @@+---+name: image-blast-plate+description: Generate one clean plate/source cleanup image for an IMAGE-BLASTER world. Use after confirmed objects exist, when removing foreground objects or other specified content from a source image.+argument-hint: [world-name] [optional source image or extra removal instructions]+allowed-tools: Read Write Glob Bash(ls *) Bash(node .claude/scripts/project/project-state.mjs *) Bash(node .claude/scripts/project/ensure-local-assets.mjs *) Bash(node .claude/scripts/image-edit/generate-edit.mjs *)+context: fork+agent: image-blast-plate+---++Create one clean plate for project `$0`.++## Instructions++- If `$0` is missing, ask for the world slug.+- Use `ls -a` before reading generated state.+- Select the source image from `$ARGUMENTS` when provided; otherwise use the newest visible source image in `worlds/$0/source/`.+- Build one removal prompt from confirmed objects plus any extra removal instructions. Confirmed objects are `worlds/$0/output/<object>/object.json` files; use `object.name`, adding short details from `object.description` when needed.+- Keep the prompt removal-only: name what to remove, and do not list objects or scene features to keep or add fill-in/background repair instructions unless the user explicitly asked for that wording.+- Remove all requested content in one image edit pass. Do not split removals across multiple agents or one edit per object.+- Follow `image-blast-image-edit` by calling the generic edit script with `--role plate` and `--output-slug "<source-slug>-plate"`.+- The plate is a new source artifact. It must use the next available visible file index in `worlds/$0/source/`, not the source image's index. For example, if the selected source image is `0-room.png`, the first plate must be named like `1-room-plate.png` with matching `.1-room-plate-request.json`, never `0-room-plate.png`.++```bash+node .claude/scripts/project/project-state.mjs --world "$0"+```++Run:++```bash+node .claude/scripts/image-edit/generate-edit.mjs \+ --image "<selected source image path>" \+ --prompt "remove the following from the image: <confirmed object names and any extra removals the user requests>" \+ --output-dir "worlds/$0/source" \+ --role plate \+ --output-slug "<source-slug>-plate"+```++Optional provider override: `--provider nano-banana|gpt-image-2`.++If request metadata records provider URLs but local plate files are missing, fill them from the matching hidden request JSON:++```bash+node .claude/scripts/project/ensure-local-assets.mjs --from "<request-json-path>"+```++```bash+node .claude/scripts/project/project-state.mjs --world "$0"+```++Final response: report input image, output plate image, request metadata, and prompt used.diff --git a/third_party/image-blaster/.claude/skills/image-blast-project/SKILL.md b/third_party/image-blaster/.claude/skills/image-blast-project/SKILL.mdnew file mode 100644index 000000000..d63325aed--- /dev/null+++ b/third_party/image-blaster/.claude/skills/image-blast-project/SKILL.md@@ -0,0 +1,61 @@+---+name: image-blast-project+description: Create, inspect, and manage an IMAGE-BLAST project envelope under worlds/<slug>. Use before other image-blast skills (image-blast-uncover, image-blast-world, image-blast-3d, etc.) or whenever the user asks about active project state.+argument-hint: [world-name or description] [optional instructions]+allowed-tools: Read Write Glob Bash(ls *) Bash(node .claude/scripts/project/project-state.mjs *) Bash(node .claude/scripts/project/indexed-path.mjs *) Bash(node .claude/scripts/project/download.mjs *) Bash(node .claude/scripts/project/ensure-local-assets.mjs *) Bash(node .claude/scripts/project/delete.mjs *)+---++Create or inspect an Image Blast project. Input: `$ARGUMENTS`.++## Instructions++Follow the generic file convention in `.claude/rules/project.md`. Inspect generated directories with `ls -a` before reading JSON details.++Use generic project tools for local indexed asset path computation, explicit downloads, local asset repair, and deletion. Provider-specific scripts are only for provider generation/polling.++1. Resolve the project slug:+ - If `$0` is an existing `worlds/<slug>` directory or a slug-like name, use it.+ - Otherwise derive a lowercase hyphenated slug from `$ARGUMENTS`.+ - If no usable input is provided, ask the user which project/world to use.+2. Run the project-state helper from the repo root. If `input/` contains images or the user asked to use staged input, include `--stage-input` so files move immediately into stable source paths:++```bash+node .claude/scripts/project/project-state.mjs --world "<slug>" --stage-input+```++3. The helper creates and validates:++```text+worlds/<slug>/+ project.json+ scene.json+ image.json+ source/+ <image-name>.json+ output/+ world/+ sfx/+ <object-slug>/+```++Only minimal `project.json` and directories are created automatically. `/image-blast-uncover` writes per-image `source/<image-name>.json` and root `image.json`, then waits for user confirmation before writing per-object `output/<object-slug>/object.json` files.++4. Read the printed project state or `worlds/<slug>/project.json`.+5. Report:+ - project slug and display name+ - source file count+ - per-image JSON count+ - staged files moved from `input/`, if any+ - whether World Labs output exists+ - whether `image.json` exists+ - derived object count+ - whether world-level SFX exists+ - whether `scene.json` exists+6. If source images now exist and `image.json` is missing, continue directly with the `/image-blast-uncover` workflow for no-cost image analysis and object directory creation. If no source images exist and the user needs to add images, report the `input/` path and ask them to add files there.++7. Recommend downstream actions only after no-cost setup/analysis is complete, in this order:+ - `Agent(image-blast-plate)` for clean plate/source cleanup after object confirmation, when requested or one-shotting+ - `Agent(image-blast-world)` for static 3D environment world generation+ - `Agent(image-blast-3d)` per object 3D generation+ - `Agent(image-blast-sfx)` for ambient, object-impact, or arbitrary sound effects+ - `Agent(image-blast-image-edit)` for generic standalone prompt-based image editingdiff --git a/third_party/image-blaster/.claude/skills/image-blast-sfx/SKILL.md b/third_party/image-blaster/.claude/skills/image-blast-sfx/SKILL.mdnew file mode 100644index 000000000..1cfbfe9cf--- /dev/null+++ b/third_party/image-blaster/.claude/skills/image-blast-sfx/SKILL.md@@ -0,0 +1,53 @@+---+name: image-blast-sfx+description: Generate and post-process a clean sound effect, object impact, or ambient loop.+argument-hint: [world-name] [world ambience, object-id impact, or custom SFX prompt]+allowed-tools: Read Write Glob Bash(ls *) Bash(node .claude/scripts/project/project-state.mjs *) Bash(node .claude/scripts/project/ensure-local-assets.mjs *) Bash(node .claude/scripts/sfx/fal-elevenlabs-sfx.mjs *)+context: fork+agent: image-blast-sfx+---++Generate an SFX for project `$0`.++## Instructions++- If `$0` is missing, ask for the world slug.+- If the SFX target is missing or ambiguous, ask for exactly one request.+- Use `ls -a` before reading generated state.+- Choose one mode:+ - World ambience: output to `worlds/$0/output/sfx/`, use `--loop --count 2 --kind world-ambience --prefix ambient-loop --duration-seconds 10`.+ - Object impact: resolve one object, output to `worlds/$0/output/<object-id>/sfx/`, use `--count 4 --kind object-impact --prefix impact-<object-id> --duration-seconds 1`. Do not use `--loop`.+ - Custom SFX: use the supplied prompt, output to `worlds/$0/output/sfx/` unless an object is clearly specified, use `--kind arbitrary`.+- Prompt structure:+ - Object impact: `impact one-shot, short-decay, <object material description from object.json> hitting a hard surface`.+ - World ambience: `ambient environment, loop of <description of only ambient qualities of scene from image.json>`.+ - Custom SFX: keep it literal, short, and isolated unless the user requested ambience or a loop.+- For non-loop output, the script analyzes each returned file with `ffprobe`/`ffmpeg`, trims leading/trailing silence or low noise, normalizes loudness, and stores `audio_analysis` in the hidden request JSON. Loop output is left as raw provider audio so the seamless boundary is preserved.++```bash+node .claude/scripts/project/project-state.mjs --world "$0"+```++Run:++```bash+node .claude/scripts/sfx/fal-elevenlabs-sfx.mjs \+ --prompt "<sound prompt>" \+ --output-dir "<target output dir>" \+ --prefix "<safe prefix>" \+ --count "<1-4>" \+ --kind "<world-ambience|object-impact|arbitrary>" \+ --duration-seconds "<optional 0.5-22>" \+ --loop "<for world ambience or explicit loop requests>" \+ --postprocess true+```++Add `--loop` only for world ambience or explicit looping requests. Avoid music or voices unless explicitly requested.++If request metadata records provider URLs but local audio files are missing, fill them from the matching hidden request JSON:++```bash+node .claude/scripts/project/ensure-local-assets.mjs --from "<request-json-path>"+```++Final response: report generated audio files, loop status, request metadata, prompt used, and the trimming/quality notes from `audio_analysis`.diff --git a/third_party/image-blaster/.claude/skills/image-blast-uncover/IMAGE-BLAST.md b/third_party/image-blaster/.claude/skills/image-blast-uncover/IMAGE-BLAST.mdnew file mode 100644index 000000000..93c76269f--- /dev/null+++ b/third_party/image-blaster/.claude/skills/image-blast-uncover/IMAGE-BLAST.md@@ -0,0 +1,93 @@+# IMAGE-BLAST++Use this prompt/spec to create literal image and scene descriptions for downstream world, object, and sound generation.++## Goal++Analyze one source image at a time and write a sibling JSON file next to it in `source/`. After every source image has a sibling JSON analysis, merge those flat records into the root `image.json`.++Per-image JSON and root `image.json` use the same flat schema. Do not write an `images[]` array anywhere.++## Literal Description Rules++- Describe the image like a technical scene survey.+- Prefer concrete visible evidence over interpretation.+- Do not write narrative phrases such as "feels like", "hints at", "suggests", "under surveillance", "relics", "mysterious", "lonely", or similar editorial framing.+- Keep descriptions useful for generation prompts: subject, arrangement, material, color, shape, lighting, camera/view, and environmental effects.+- If something is uncertain, do not make assumptions about it; describe only what is certain.+- Deduplicate repeated objects. If many similar jars, rocks, chairs, or tools appear, represent them as one unique object with a `count_estimate`.+- For objects, include only single rigid or mostly rigid items that can be cleanly segmented as standalone assets.+- Never group multiple different items into one object candidate, and never create compound assets such as "desk with items", "table setup", "shelf contents", "chair and pillow", or "tool pile". Split visible separable items into separate candidates. Err on letting the user decide which objects to include if you are unsure.+- Avoid sky, fog, terrain, walls, floors, ceilings, whole buildings, and broad environment surfaces unless they are clearly standalone props that make sense as a rigidbody or static scene object.+- Preserve stable object IDs if updating existing object directories.++## Shared JSON Shape++Use this exact flat shape for both `worlds/<slug>/source/<image-name>.json` and `worlds/<slug>/image.json`:++```json+{+ "schema_version": 1,+ "world": "sterile-electronic-lab",+ "source_images": ["worlds/sterile-electronic-lab/source/example.png"],+ "scene_name": "Sterile Electronic Lab",+ "short_caption": "A clinical room with glass display cases and ceramic vessels.",+ "literal_description": "A compact room contains rows of aluminum-framed glass enclosures. Each enclosure holds terracotta ceramic vessels on dark pedestals. A computer workstation sits against the left wall. The room has pale walls, a tiled floor, and even overhead fluorescent lighting.",+ "environment": "Compact indoor display or storage room with glass enclosures, tiled floor, pale walls, and a workstation.",+ "visual_style": "photorealistic, clinical, documentary",+ "lighting": "Even overhead fluorescent lighting, cool color temperature, low contrast, soft shadows.",+ "atmosphere": "Clean indoor air with no visible fog, smoke, dust, haze, or weather.",+ "ambient_sound": "Low ventilation hum with faint fluorescent buzz.",+ "objects": [+ {+ "id": "terracotta-amphora",+ "name": "terracotta amphora",+ "description": "Tall two-handled terracotta ceramic vessel with a narrow neck and rounded body.",+ "count_estimate": 3,+ "materials": ["terracotta ceramic"],+ "source_images": ["worlds/sterile-electronic-lab/source/example.png"],+ "evidence": [+ {+ "image": "worlds/sterile-electronic-lab/source/example.png",+ "location_in_image": "inside glass cases along the back wall",+ }+ ],+ "generate_as_3d_object": true+ }+ ]+}+```++## Field Guidance++- `source_images`: image provenance. Per-image JSON usually has one path; root `image.json` has all merged source image paths.+- `scene_name`: short human-readable scene name.+- `short_caption`: about 10 words, literal and factual.+- `literal_description`: factual visible description only. Do not include narrative, symbolism, or editorial language.+- `environment`: physical setting and visible environmental conditions only.+- `visual_style`: concise visual/rendering labels only.+- `lighting`: visible direction, softness, temperature, contrast, shadow quality, and time of day only when evident.+- `atmosphere`: visible fog, dust, haze, smoke, glow, weather, particles, or explicitly state none visible.+- `ambient_sound`: concise positive description of audible ambience based on visible regular or sustained sound sources only. Describe only what should be present; do not include exclusions, negative prompts, or loop wording.+- `objects`: persisted descriptive object candidates. These are fallback/debug data, not generation state.++## Merge Rules++To create root `worlds/<slug>/image.json`, read all valid `worlds/<slug>/source/*.json` image analyses and merge them into the same flat schema:++- Combine `source_images`.+- Synthesize one shared `scene_name`, `short_caption`, and `literal_description`.+- Merge `environment`, `visual_style`, `lighting`, `atmosphere`, and `ambient_sound` from common or representative visible traits.+- Deduplicate `objects` by stable `id`, name, material, and visible shape.+- Preserve all source image evidence on merged objects.+- Do not write an `images[]` array.++## Object Extraction++After root `image.json` is approved, create or update one `object.json` per approved object at:++```text+worlds/<slug>/output/<object-slug>/object.json+```++Each object file should contain the stable object ID, name, literal description, materials, source image paths, evidence, and working directory. Generated state lives beside it as files and hidden request JSON.diff --git a/third_party/image-blaster/.claude/skills/image-blast-uncover/SKILL.md b/third_party/image-blaster/.claude/skills/image-blast-uncover/SKILL.mdnew file mode 100644index 000000000..cbc93843f--- /dev/null+++ b/third_party/image-blaster/.claude/skills/image-blast-uncover/SKILL.md@@ -0,0 +1,93 @@+---+name: image-blast-uncover+description: Main image analysis skill, object generation, plate decisionmaking, and initial scene description. Use this skill when user wants to create objects and necessary for main image analysis.+argument-hint: [world-name] [optional image paths or instructions]+allowed-tools: Read Write Glob Bash(ls *) Bash(node .claude/scripts/project/project-state.mjs *)+---++Uncover literal image information for project `$0`. Additional image paths or instructions may appear in `$ARGUMENTS`.++## Instructions++Follow the generic file convention in `.claude/rules/project.md`. Use `ls -a` to inspect project/source/output directories before reading JSON details.++1. Require a project/world slug in `$0`. If it is missing, ask which `worlds/<world-name>/` directory to use.+2. Ensure the project envelope exists, stage any input images when appropriate, and read derived state:++```bash+node .claude/scripts/project/project-state.mjs --world "$0" --stage-input+```++If no source images exist after staging and the user needs to add images, report the `input/` path and ask them to add files there.++3. Read `IMAGE-BLAST.md` in this skill directory and follow its JSON contract exactly.+4. Gather source images from explicit paths in `$ARGUMENTS` and `worlds/$0/source/`. Use `input/` only through the project-state staging step so source paths are stable. Source images use indexed families (`0-<slug>.<ext>`, `1-<slug>.png`, etc.); by default, analyze the latest image in each family and do not treat every historical plate/edit as separate evidence unless requested.+5. Analyze one source image at a time:+ - Read the image directly using agent image understanding.+ - Use literal, observational language only.+ - Extract object candidates as single cleanly segmentable items only. A good separability test is whether a human could lift the item or move it by pushing it.+ - Do not extract scene-surface elements or built-in parts of the environment, such as rugs, flooring, walls, or fixed architectural features.+ - Never group different items or create compound assets, such as a combination of table with chairs, or table including the objects on top.+ - Write a sibling JSON file at `worlds/$0/source/<image-name>.json`.+ - Per-image JSON must use the same flat schema as root `image.json`.+ - Per-image JSON must not contain `images[]`.+6. Treat existing `worlds/$0/source/<image-name>.json` files as reusable analysis:+ - If the source image or user instruction changed, update the sibling JSON.+ - If the user deleted a source image or source JSON, do not recreate it unless the image still exists and should be analyzed.+7. After all per-image JSON files exist, derive `worlds/$0/image.json` by reading and merging all valid `worlds/$0/source/*.json` image analyses.+ - combine `source_images`+ - synthesize one shared `scene_name`, `short_caption`, and `literal_description`+ - merge `environment`, `visual_style`, `lighting`, `atmosphere`, and `ambient_sound`+ - deduplicate `objects` while preserving source-image evidence+ - use the same flat schema as each per-image JSON+ - do not write `images[]`+8. Present the root image analysis and merged object candidates to the user for approval or revision. Keep it concise:+ - scene name and short caption+ - literal environment, visual style, lighting, atmosphere, and ambient sound+ - object candidates with material and source-image evidence+9. Stop here until the user confirms which objects to create. When approved, create or update one object file per approved object:++```text+worlds/$0/output/<object-slug>/object.json+```++10. Each `object.json` should use this shape:++```json+{+ "schema_version": 1,+ "world": "$0",+ "object": {+ "id": "<object-slug>",+ "name": "<object name>",+ "description": "<literal object description>",+ "materials": [],+ "source_images": [],+ "evidence": [],+ "generate_as_3d_object": true,+ "working_dir": "worlds/$0/output/<object-slug>"+ },+ "updated_at": "..."+}+```++Object files store durable identity, intent, and provenance only. Do not write generated state such as `status`, `jobs`, generated `files`, request lifecycle, or completion data into `object.json`. Generated outputs and request state live beside `object.json` as indexed visible artifacts and hidden request JSON.++11. After object files are written, handle the clean plate decision:+ - In one-shot mode, continue with `Agent(image-blast-plate)` and wait for it before world generation.+ - Otherwise ask whether to remove confirmed objects any anything else the user wants to remove from the source image to create a clean plate to generate a world from.++12. Refresh derived project state:++```bash+node .claude/scripts/project/project-state.mjs --world "$0"+```++13. Report saved paths, source image count, per-image JSON count, created/updated object directory count, and the clean plate decision.++## Output Locations++- Per-image analysis: `worlds/$0/source/<image-name>.json`+- Merged image and scene analysis: `worlds/$0/image.json`+- Object intent/provenance: `worlds/$0/output/<object-slug>/object.json`+- Clean plate decision: `worlds/$0/source/<source-slug>-plate.png`diff --git a/third_party/image-blaster/.claude/skills/image-blast-wildcard/SKILL.md b/third_party/image-blaster/.claude/skills/image-blast-wildcard/SKILL.mdnew file mode 100644index 000000000..1e25554fa--- /dev/null+++ b/third_party/image-blaster/.claude/skills/image-blast-wildcard/SKILL.md@@ -0,0 +1,45 @@+---+name: image-blast-wildcard+description: Discover and run any FAL API model or operation the user requests. Use this as a generic FAL escape hatch when the user wants to generate something that does not fit a narrower Image Blast skill.+argument-hint: [FAL model/endpoint or natural request] [inputs, prompt, files, output location]+allowed-tools: Read Write Glob WebFetch WebSearch Bash(ls *) Bash(node .claude/scripts/project/ensure-local-assets.mjs *) Bash(node .claude/scripts/fal/run-fal.mjs *)+---++Resolve one arbitrary FAL API operation from `$ARGUMENTS`, confirm it with the user, then run it only after confirmation.++## Instructions++- There are two modes:+ - Discovery mode: normal user requests. Do not run a paid FAL request, call `run-fal.mjs`, or launch the background `image-blast-wildcard` agent until the user confirms the exact endpoint.+ - Execution mode: prompts that start with `CONFIRMED_FAL_ENDPOINT: <endpoint>`. Do not ask for model confirmation again; validate inputs and run exactly one request.+- Discover candidate models with the FAL Platform Model Search API, not the Explore page:+ - `https://api.fal.ai/v1/models?q=<query>&status=active&limit=5`+ - `https://api.fal.ai/v1/models?category=<category>&status=active&limit=5`+ - `https://api.fal.ai/v1/models?endpoint_id=<endpoint>&expand=openapi-3.0`+- Use `https://fal.ai/docs/llms.txt` and the model API docs only as fallback context when the model search response is insufficient.+- Present the best candidate endpoint(s), category, description, and any relevant schema notes. Ask the user to confirm one exact model endpoint before execution, naming it directly, such as `confirm fal-ai/flux/dev`.+- After confirmation in discovery mode, fetch the confirmed endpoint with `expand=openapi-3.0`, build schema-shaped JSON from the user's literal inputs, resolve the output location from the user's request or surrounding project context, and launch `Agent(image-blast-wildcard)` with a prompt that starts with `CONFIRMED_FAL_ENDPOINT: <endpoint>`.+- Build the request JSON from the schema and the user's literal inputs. Use schema defaults for optional fields. Ask only if a required field cannot be inferred, a referenced local file is missing, or `FAL_KEY` is unavailable.+- Use `ls -a` before reading generated state. Do not use a dedicated wildcard directory by default; choose the output directory contextually from the user's request, the active Image Blast project/world, an input file's surrounding generated-output directory, or another clear local workflow context. If no output location can be inferred, ask before execution.+- For local file inputs, pass them with `--file <schema_key>=<path>` so the helper converts them to model input URLs. For nested keys use dot paths, such as `image_urls.0`.++The confirmed background agent should run:++```bash+node .claude/scripts/fal/run-fal.mjs \+ --endpoint "<fal endpoint, such as fal-ai/flux/dev>" \+ --input-json '<schema-shaped JSON input>' \+ --output-dir "<output directory>" \+ --output-slug "<short output slug>" \+ --user-prompt "<literal user request>"+```++Use `--mode run` only when the FAL API page requires a direct `fal.run` call instead of the queue API. The default queue mode persists request metadata before polling and downloads any returned file URLs.++If request metadata records provider URLs but local files are missing, fill them from the matching hidden request JSON:++```bash+node .claude/scripts/project/ensure-local-assets.mjs --from "<request-json-path>"+```++Final response before confirmation: ask for confirmation of the exact endpoint. Final response after execution: report the endpoint, input summary, output directory, downloaded output files, request metadata, and any raw result fields that were not downloadable.diff --git a/third_party/image-blaster/.claude/skills/image-blast-world/SKILL.md b/third_party/image-blaster/.claude/skills/image-blast-world/SKILL.mdnew file mode 100644index 000000000..a388f9b40--- /dev/null+++ b/third_party/image-blaster/.claude/skills/image-blast-world/SKILL.md@@ -0,0 +1,47 @@+---+name: image-blast-world+description: Generate the 3D static environment of a world from a source or plate image.+argument-hint: [world-name] [optional image path or world prompt]+allowed-tools: Read Write Glob Bash(ls *) Bash(node .claude/scripts/project/project-state.mjs *) Bash(node .claude/scripts/project/ensure-local-assets.mjs *) Bash(node .claude/scripts/world/generate-world.mjs *)+context: fork+agent: image-blast-world+---++Create or resume one World Labs world for project `$0`.++## Instructions++- If `$0` is missing, ask for the world slug.+- Use `ls -a` before reading generated state.+- Use an explicit image path or prompt from `$ARGUMENTS` when provided.+- Without an explicit image, the world helper uses the highest-index visible image in `worlds/$0/source/`.+- Before generating, synthesize a prompt for the world that takes the original caption data we have and removes and objects we took out of the image. Use `worlds/$0/image.json` for the original scene description, then subtract all confirmed or explicitly removed objects from that description. Confirmed objects are `worlds/$0/output/<object>/object.json` files; use `object.name` and `object.description` to understand what to remove from the original scene description.+- Treat the synthesized prompt as a text clean plate: preserve the original setting, materials, lighting, atmosphere, camera feel, and spatial layout, but describe the scene as an empty. Do not name, imply, or reintroduce removed objects, and do not reuse `imageJson.short_caption` directly.+- If the user specifically provides caption wording, apply the same subtraction rule before sending it. The World Labs prompt should describe the static empty environment, the "plate" environment, not the objects that were removed.+- The helper resumes unfinished `.N-world-request.json`, strips base64 before writing JSON, polls World Labs, writes `N-world.json`, and downloads every referenced world asset to matching `N-world*` files in `worlds/$0/output/world/`.+- The frontend must only load local files from disk. World Labs URLs in `N-world.json` are provenance/resume data only; never leave `.spz`, collider `.glb`, panorama, or thumbnail assets to be loaded from provider URLs.+- If any referenced `.spz`, collider, or panorama URL exists in `N-world.json`, make sure the matching local file is present before reporting success. Use the generic local asset tool on the matching `N-world.json` if files are missing.++```bash+node .claude/scripts/project/project-state.mjs --world "$0"+```++Run:++```bash+node .claude/scripts/world/generate-world.mjs --world "$0" --prompt "<empty-environment world caption>"+```++Pass `--image` only when an explicit image path is provided or the selected source is not the helper default. Always pass `--prompt` with the synthesized empty-environment caption. For explicit regeneration, append `--regenerate`.++To fill missing local files from an existing world response, run:++```bash+node .claude/scripts/project/ensure-local-assets.mjs --from "worlds/$0/output/world/<N>-world.json"+```++```bash+node .claude/scripts/project/project-state.mjs --world "$0"+```++Final response: report the source image used when relevant, the generation index, world output path, all downloaded `.glb`, `.spz`, panorama, and thumbnail paths if present, and any failure/resume metadata.diff --git a/third_party/image-blaster/.claudeignore b/third_party/image-blaster/.claudeignorenew file mode 100644index 000000000..908f7bbc5--- /dev/null+++ b/third_party/image-blaster/.claudeignore@@ -0,0 +1 @@+app/diff --git a/third_party/image-blaster/.cursor/rules/claude-skill-docs.mdc b/third_party/image-blaster/.cursor/rules/claude-skill-docs.mdcnew file mode 100644index 000000000..643759b5c--- /dev/null+++ b/third_party/image-blaster/.cursor/rules/claude-skill-docs.mdc@@ -0,0 +1,21 @@+---+description: Keep Claude Code skills thin and local tools generic+globs: .claude/skills/**/SKILL.md,.claude/scripts/**/*.mjs,.claude/rules/**/*.md+alwaysApply: false+---++# Claude Code Skills++Follow the official Claude Code skills docs when editing `SKILL.md` files: https://code.claude.com/docs/en/skills++- Skills are thin task surfaces: frontmatter plus concise instructions. Do not turn them into long orchestration manuals.+- `context: fork` means the skill runs in a forked subagent. The rendered `SKILL.md` is the subagent prompt and does not have access to parent conversation history.+- `agent` selects which subagent type executes the forked skill. If omitted, Claude Code uses `general-purpose`.+- `allowed-tools` pre-approves listed tools for the active skill. It does not restrict all other tools; permissions still apply.+- `description` and `when_to_use` should front-load trigger phrases. Keep them clearer than the body.+- Use `disable-model-invocation: true` for side-effecting skills that only the user should trigger.+- Invoked skill content persists for the rest of the session, so keep standing guidance short and unambiguous.+- Keep project rules high-level: shared conventions, routing, and ordering. Put skill-specific operational details in the relevant `.claude/skills/*/SKILL.md`.+- Skills and project rules should teach agents which files matter for a workflow. Do not move that workflow knowledge into `.mjs` scripts unless the script owns a provider contract or a truly generic filesystem invariant.+- Project `.mjs` tools should be dumb, explicit, and argument-driven: compute paths, download a given URL to a given path, delete a given path, or apply generic no-clobber/path-safety checks. Avoid encoding asset-specific knowledge like "world panoramas are important" when the Skill can read JSON and pass explicit args.+- Prefer agent intelligence plus clear Skill instructions over hidden orchestration in scripts. If a script starts deciding which workflow artifacts are important, pause and move that decision back into the Skill/rule layer.diff --git a/third_party/image-blaster/.cursor/rules/image-blast-composition.mdc b/third_party/image-blaster/.cursor/rules/image-blast-composition.mdcnew file mode 100644index 000000000..b83099f8e--- /dev/null+++ b/third_party/image-blaster/.cursor/rules/image-blast-composition.mdc@@ -0,0 +1,18 @@+---+description: Keep Image Blast state composable, colocated, and derived from generated files+alwaysApply: true+---++# Image Blast Composition++- Follow `.claude/rules/project.md` as the canonical Image Blast file convention for the end user (Claude Code users). Keep this Cursor rule as reinforcement only.+- Simplification is the top priority. Prefer deleting state, helpers, manifests, and orchestration layers when the directory layout and small JSON files already explain what happened.+- Use one generic convention for generated things: visible indexed artifacts plus colocated hidden request JSON. Do not create object-specific, SFX-specific, plate-specific, or asset-type-specific state systems.+- Agents should inspect generated state with `ls -a <directory>` first. A directory listing should be enough to understand high-level progress; read visible artifacts or hidden request JSON only when more detail is needed.+- Keep durable JSON tiny. Store identity, user-authored intent, provenance, and API inputs that cannot be inferred from files. Do not duplicate generated file lists, counts, stages, completion status, or request lifecycle in central JSON or `object.json`.+- Avoid helper creep. Do not add directory-specific snapshot helpers or wrappers for simple operations an agent can infer from `ls -a`, indexed filenames, and small JSON files. Keep helpers generic, rare, and clearly worth their complexity.+- For paid or long-running requests, persist request IDs before polling in colocated hidden request JSON. Request metadata should be compact, sanitized, and named with the indexed convention `.N-slug-request.json`.+- Invoke generation through matching background agents, not parallel Skill calls: `Agent(image-blast-world)`, `Agent(image-blast-3d)`, `Agent(image-blast-sfx)`, `Agent(image-blast-plate)`, or `Agent(image-blast-image-edit)`.+- Align generated artifacts with request indexes so related files are easy to inspect together, such as `0-object.png`, `0-object.glb`, `.0-object__image-request.json`, and `.0-object__model-request.json`.+- Read request semantics like `kind`, `role`, provider, and status from JSON contents, not from filename suffixes.+- Do not preserve compatibility with unshipped branch state. If a JSON shape is wrong or bloated, replace it outright instead of layering legacy shims.diff --git a/third_party/image-blaster/.cursor/rules/image-blaster-development.mdc b/third_party/image-blaster/.cursor/rules/image-blaster-development.mdcnew file mode 100644index 000000000..87c398dfe--- /dev/null+++ b/third_party/image-blaster/.cursor/rules/image-blaster-development.mdc@@ -0,0 +1,32 @@+---+description: Cursor-only development guidance for the IMAGE-BLASTER repository+alwaysApply: true+---++# IMAGE-BLASTER Development++- This Cursor rule is for repository development in Cursor only. Do not mirror this into root `CLAUDE.md`; Claude Code end users should consume `.claude/rules/project.md` and `.claude/skills/*/SKILL.md`.+- IMAGE-BLASTER has two main parts:+ - Claude Skills in `.claude/skills/`, backed by scripts in `.claude/scripts/`.+ - The React viewer in `app/`, built with TypeScript, Vite, React Three Fibre, SparkJS, Leva, Wouter, and Tailwind CSS.+- The shared working area is `worlds/`, and staged user input starts in `input/`. Both are gitignored.+- The canonical Image Blast file convention lives in `.claude/rules/project.md`. Keep generated state simple: `ls -a` first, visible indexed artifacts for outputs, hidden request JSON for request/resume details.+- Environment keys:+ - `WORLD_LABS_API_KEY` for `/image-blast-world`.+ - `FAL_KEY` for `/image-blast-3d`, `/image-blast-sfx`, and FAL-backed image editing.+- The repository root is the Bun workspace root. Run package-manager commands from the root; do not create ad hoc root dependencies outside the workspace.+ - `bun install`+ - `bun run dev`+ - `bun run build`+ - `bun run test`+ - `bun run typecheck`+- The React viewer package lives in `app/`. If you need to target it directly, use root commands with `--cwd=app`:+ - `bun --cwd=app run dev`+ - `bun --cwd=app run build`+ - `bun --cwd=app run test`+ - `bun --cwd=app run typecheck`+- `worlds/<slug>/scene/project.json` is the shared Three.js editor scene contract. It uses the Three.js editor App format and is loaded by the React app through `THREE.ObjectLoader`.+- Keep the React viewer modular. Character controller, audio, post-processing, loading transitions, scene objects, and splat rendering should remain independent modules composed at the scene level.+- Use `wouter` for routing. The active world is driven by `/<world-name>`, and `/` loads the first available world.+- Mobile support matters. Character controls should support touch input alongside keyboard/mouse.+- FAL and World Labs API calls belong in implementation scripts, not standalone direct-use skills. Skills should stay thin workflow wrappers.diff --git a/third_party/image-blaster/.env.example b/third_party/image-blaster/.env.examplenew file mode 100644index 000000000..a201e2dd8--- /dev/null+++ b/third_party/image-blaster/.env.example@@ -0,0 +1,2 @@+WORLD_LABS_API_KEY=your_world_labs_key_here+FAL_KEY=your_fal_key_here\ No newline at end of filediff --git a/third_party/image-blaster/.gitattributes b/third_party/image-blaster/.gitattributesnew file mode 100644index 000000000..dfe077042--- /dev/null+++ b/third_party/image-blaster/.gitattributes@@ -0,0 +1,2 @@+# Auto detect text files and perform LF normalization+* text=autodiff --git a/third_party/image-blaster/.gitignore b/third_party/image-blaster/.gitignorenew file mode 100644index 000000000..6dcc691d4--- /dev/null+++ b/third_party/image-blaster/.gitignore@@ -0,0 +1,19 @@+# Working directory (worlds generated by skills)+worlds/*+!worlds/.gitkeep++# Input staging area+input/*+!input/.gitkeep++# App build output+node_modules/+app/dist/+app/node_modules/+app/.vite/++# Environment+.env++# OS+.DS_Storediff --git a/third_party/image-blaster/CLAUDE.md b/third_party/image-blaster/CLAUDE.mdnew file mode 100644index 000000000..e69de29bbdiff --git a/third_party/image-blaster/LICENSE.md b/third_party/image-blaster/LICENSE.mdnew file mode 100644index 000000000..fccee3e98--- /dev/null+++ b/third_party/image-blaster/LICENSE.md@@ -0,0 +1,21 @@+MIT License++Copyright (c) 2026 Neilson Koerner-Safrata++Permission is hereby granted, free of charge, to any person obtaining a copy+of this software and associated documentation files (the "Software"), to deal+in the Software without restriction, including without limitation the rights+to use, copy, modify, merge, publish, distribute, sublicense, and/or sell+copies of the Software, and to permit persons to whom the Software is+furnished to do so, subject to the following conditions:++The above copyright notice and this permission notice shall be included in all+copies or substantial portions of the Software.++THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR+IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,+FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE+AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER+LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,+OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE UaSE OR OTHER DEALINGS IN THE+SOFTWARE.\ No newline at end of filediff --git a/third_party/image-blaster/README.md b/third_party/image-blaster/README.mdnew file mode 100644index 000000000..633aa3bf4--- /dev/null+++ b/third_party/image-blaster/README.md@@ -0,0 +1,60 @@+<img width="960" height="540" alt="image-blaster-1" src="https://github.com/user-attachments/assets/d294e420-eb48-4f00-b6a8-13005442d1a8" />++## `image-blaster`+Creates 3D environments, SFX, and meshes from a single image using Claude skills, World Labs, and FAL.++Can take you from an image to a fully meshed 3D environment in < 5 minutes, great for jumpstarting 3D work. Go full blast.+++## Quickstart++1. Open a Terminal, enter `git clone https://github.com/neilsonnn/image-blaster`+2. Enter the directory with `cd image-blaster`+3. Run `claude` (install with `curl -fsSL https://claude.ai/install.sh | bash`)+4. Say hello to Claude, and give them your API key for [World Labs](https://platform.worldlabs.ai/) and [FAL](https://fal.ai/).+5. Put an image into `input/` directory and ask Claude to `blast it and confirm each step with me`.++### Description++By default `image-blaster` will use your input image to create:++1. 3D models (`.glb`, `.obj`) of all *dynamic* objects+2. Gaussian splat (`.spz`) of the *static* environment,+3. Ambient looping sound and object specific physics SFX (`.mp3`)++### Extensions++You can embed `image-blaster` under the assets of *any game engine, DCC software, or web app*.++1. Unity, Unreal, or Godot game engine+2. Blender, 3DS Max, or Maya or other DCC software+3. Three.js web app or Electron app++## Advanced++IMAGE-BLASTER uses a few generation models:++- `marble-1.1` - World Labs Marble model creates the explorable environment.+- `nano-banana` - default image edit preference for source cleanup, clean plates, and object reference images.+- `gpt-image-2` - alternate image edit provider when the edit skill is asked to prefer it.+- `hunyuan-3d` - Hunyuan 3D model creates 3D object models through FAL.+- `elevenlabs-sfx` - ElevenLabs sound effects model creates ambient and object-specific sounds.++3D model creation supports these Hunyuan parameters:++- `--face-count <40000-1500000>`: target face count. IMAGE-BLASTER defaults to `50000`; Hunyuan's API default is `500000`.+- `--enable-pbr true|false`: enable PBR material generation. Defaults to `true`.+- `--generate-type Normal|LowPoly|Geometry`: `Normal` creates a textured model, `LowPoly` applies polygon reduction, and `Geometry` creates a white geometry-only model. Defaults to `Normal`.+- `--polygon-type triangle|quadrilateral`: polygon type for `LowPoly`. Defaults to `triangle`.++### Examples++- Video game level concepts? `IMAGE-BLAST` it.+- Your childhood bedroom? `IMAGE-BLAST` it.+- Need an environment for a robot? `IMAGE-BLAST` it.+- A film location scout? `IMAGE-BLAST` it.+- An architectural rendering? `IMAGE-BLAST` it.++### Development++- remove `/app` from the `.claudeignore` file to give Claude the ability to change the React viewer.diff --git a/third_party/image-blaster/app/index.html b/third_party/image-blaster/app/index.htmlnew file mode 100644index 000000000..37363f2f4--- /dev/null+++ b/third_party/image-blaster/app/index.html@@ -0,0 +1,12 @@+<!doctype html>+<html lang="en">+ <head>+ <meta charset="UTF-8" />+ <meta name="viewport" content="width=device-width, initial-scale=1.0" />+ <title>image-blaster</title>+ </head>+ <body>+ <div id="root"></div>+ <script type="module" src="/src/main.tsx"></script>+ </body>+</html>diff --git a/third_party/image-blaster/app/package-lock.json b/third_party/image-blaster/app/package-lock.jsonnew file mode 100644index 000000000..3ea2aaa16--- /dev/null+++ b/third_party/image-blaster/app/package-lock.json@@ -0,0 +1,4599 @@+{+ "name": "image-blaster",+ "version": "0.0.1",+ "lockfileVersion": 3,+ "requires": true,+ "packages": {+ "": {+ "name": "image-blaster",+ "version": "0.0.1",+ "dependencies": {+ "@react-three/drei": "^10.7.7",+ "@react-three/fiber": "^9.6.0",+ "@react-three/postprocessing": "^3.0.4",+ "@react-three/rapier": "^2.2.0",+ "@sparkjsdev/spark": "^2.0.0",+ "leva": "^0.9.35",+ "postprocessing": "^6.36.0",+ "react": "^19.2.5",+ "react-dom": "^19.2.5",+ "three": "0.180.0",+ "wouter": "^3.3.5"+ },+ "devDependencies": {+ "@types/react": "^19.2.14",+ "@types/react-dom": "^19.2.3",+ "@types/three": "^0.180.0",+ "@vitejs/plugin-react": "^4.3.3",+ "autoprefixer": "^10.4.20",+ "postcss": "^8.4.49",+ "tailwindcss": "^3.4.15",+ "typescript": "^5.6.3",+ "vite": "^5.4.11",+ "vitest": "^2.1.5"+ }+ },+ "node_modules/@alloc/quick-lru": {+ "version": "5.2.0",+ "resolved": "https://registry.npmjs.org/@alloc/quick-lru/-/quick-lru-5.2.0.tgz",+ "integrity": "sha512-UrcABB+4bUrFABwbluTIBErXwvbsU/V7TZWfmbgJfbkwiBuziS9gxdODUyuiecfdGQ85jglMW6juS3+z5TsKLw==",+ "dev": true,+ "license": "MIT",+ "engines": {+ "node": ">=10"+ },+ "funding": {+ "url": "https://github.com/sponsors/sindresorhus"+ }+ },+ "node_modules/@babel/code-frame": {+ "version": "7.29.0",+ "resolved": "https://registry.npmjs.org/@babel/code-frame/-/code-frame-7.29.0.tgz",+ "integrity": "sha512-9NhCeYjq9+3uxgdtp20LSiJXJvN0FeCtNGpJxuMFZ1Kv3cWUNb6DOhJwUvcVCzKGR66cw4njwM6hrJLqgOwbcw==",+ "dev": true,+ "license": "MIT",+ "dependencies": {+ "@babel/helper-validator-identifier": "^7.28.5",+ "js-tokens": "^4.0.0",+ "picocolors": "^1.1.1"+ },+ "engines": {+ "node": ">=6.9.0"+ }+ },+ "node_modules/@babel/compat-data": {+ "version": "7.29.0",+ "resolved": "https://registry.npmjs.org/@babel/compat-data/-/compat-data-7.29.0.tgz",+ "integrity": "sha512-T1NCJqT/j9+cn8fvkt7jtwbLBfLC/1y1c7NtCeXFRgzGTsafi68MRv8yzkYSapBnFA6L3U2VSc02ciDzoAJhJg==",+ "dev": true,+ "license": "MIT",+ "engines": {+ "node": ">=6.9.0"+ }+ },+ "node_modules/@babel/core": {+ "version": "7.29.0",+ "resolved": "https://registry.npmjs.org/@babel/core/-/core-7.29.0.tgz",+ "integrity": "sha512-CGOfOJqWjg2qW/Mb6zNsDm+u5vFQ8DxXfbM09z69p5Z6+mE1ikP2jUXw+j42Pf1XTYED2Rni5f95npYeuwMDQA==",+ "dev": true,+ "license": "MIT",+ "peer": true,+ "dependencies": {+ "@babel/code-frame": "^7.29.0",+ "@babel/generator": "^7.29.0",+ "@babel/helper-compilation-targets": "^7.28.6",+ "@babel/helper-module-transforms": "^7.28.6",+ "@babel/helpers": "^7.28.6",+ "@babel/parser": "^7.29.0",+ "@babel/template": "^7.28.6",+ "@babel/traverse": "^7.29.0",+ "@babel/types": "^7.29.0",+ "@jridgewell/remapping": "^2.3.5",+ "convert-source-map": "^2.0.0",+ "debug": "^4.1.0",+ "gensync": "^1.0.0-beta.2",+ "json5": "^2.2.3",+ "semver": "^6.3.1"+ },+ "engines": {+ "node": ">=6.9.0"+ },+ "funding": {+ "type": "opencollective",+ "url": "https://opencollective.com/babel"+ }+ },+ "node_modules/@babel/generator": {+ "version": "7.29.1",+ "resolved": "https://registry.npmjs.org/@babel/generator/-/generator-7.29.1.tgz",+ "integrity": "sha512-qsaF+9Qcm2Qv8SRIMMscAvG4O3lJ0F1GuMo5HR/Bp02LopNgnZBC/EkbevHFeGs4ls/oPz9v+Bsmzbkbe+0dUw==",+ "dev": true,+ "license": "MIT",+ "dependencies": {+ "@babel/parser": "^7.29.0",+ "@babel/types": "^7.29.0",+ "@jridgewell/gen-mapping": "^0.3.12",+ "@jridgewell/trace-mapping": "^0.3.28",+ "jsesc": "^3.0.2"+ },+ "engines": {+ "node": ">=6.9.0"+ }+ },+ "node_modules/@babel/helper-compilation-targets": {+ "version": "7.28.6",+ "resolved": "https://registry.npmjs.org/@babel/helper-compilation-targets/-/helper-compilation-targets-7.28.6.tgz",+ "integrity": "sha512-JYtls3hqi15fcx5GaSNL7SCTJ2MNmjrkHXg4FSpOA/grxK8KwyZ5bubHsCq8FXCkua6xhuaaBit+3b7+VZRfcA==",+ "dev": true,+ "license": "MIT",+ "dependencies": {+ "@babel/compat-data": "^7.28.6",+ "@babel/helper-validator-option": "^7.27.1",+ "browserslist": "^4.24.0",+ "lru-cache": "^5.1.1",+ "semver": "^6.3.1"+ },+ "engines": {+ "node": ">=6.9.0"+ }+ },+ "node_modules/@babel/helper-globals": {+ "version": "7.28.0",+ "resolved": "https://registry.npmjs.org/@babel/helper-globals/-/helper-globals-7.28.0.tgz",+ "integrity": "sha512-+W6cISkXFa1jXsDEdYA8HeevQT/FULhxzR99pxphltZcVaugps53THCeiWA8SguxxpSp3gKPiuYfSWopkLQ4hw==",+ "dev": true,+ "license": "MIT",+ "engines": {+ "node": ">=6.9.0"+ }+ },+ "node_modules/@babel/helper-module-imports": {+ "version": "7.28.6",+ "resolved": "https://registry.npmjs.org/@babel/helper-module-imports/-/helper-module-imports-7.28.6.tgz",+ "integrity": "sha512-l5XkZK7r7wa9LucGw9LwZyyCUscb4x37JWTPz7swwFE/0FMQAGpiWUZn8u9DzkSBWEcK25jmvubfpw2dnAMdbw==",+ "dev": true,+ "license": "MIT",+ "dependencies": {+ "@babel/traverse": "^7.28.6",+ "@babel/types": "^7.28.6"+ },+ "engines": {+ "node": ">=6.9.0"+ }+ },+ "node_modules/@babel/helper-module-transforms": {+ "version": "7.28.6",+ "resolved": "https://registry.npmjs.org/@babel/helper-module-transforms/-/helper-module-transforms-7.28.6.tgz",+ "integrity": "sha512-67oXFAYr2cDLDVGLXTEABjdBJZ6drElUSI7WKp70NrpyISso3plG9SAGEF6y7zbha/wOzUByWWTJvEDVNIUGcA==",+ "dev": true,+ "license": "MIT",+ "dependencies": {+ "@babel/helper-module-imports": "^7.28.6",+ "@babel/helper-validator-identifier": "^7.28.5",+ "@babel/traverse": "^7.28.6"+ },+ "engines": {+ "node": ">=6.9.0"+ },+ "peerDependencies": {+ "@babel/core": "^7.0.0"+ }+ },+ "node_modules/@babel/helper-plugin-utils": {+ "version": "7.28.6",+ "resolved": "https://registry.npmjs.org/@babel/helper-plugin-utils/-/helper-plugin-utils-7.28.6.tgz",+ "integrity": "sha512-S9gzZ/bz83GRysI7gAD4wPT/AI3uCnY+9xn+Mx/KPs2JwHJIz1W8PZkg2cqyt3RNOBM8ejcXhV6y8Og7ly/Dug==",+ "dev": true,+ "license": "MIT",+ "engines": {+ "node": ">=6.9.0"+ }+ },+ "node_modules/@babel/helper-string-parser": {+ "version": "7.27.1",+ "resolved": "https://registry.npmjs.org/@babel/helper-string-parser/-/helper-string-parser-7.27.1.tgz",+ "integrity": "sha512-qMlSxKbpRlAridDExk92nSobyDdpPijUq2DW6oDnUqd0iOGxmQjyqhMIihI9+zv4LPyZdRje2cavWPbCbWm3eA==",+ "dev": true,+ "license": "MIT",+ "engines": {+ "node": ">=6.9.0"+ }+ },+ "node_modules/@babel/helper-validator-identifier": {+ "version": "7.28.5",+ "resolved": "https://registry.npmjs.org/@babel/helper-validator-identifier/-/helper-validator-identifier-7.28.5.tgz",+ "integrity": "sha512-qSs4ifwzKJSV39ucNjsvc6WVHs6b7S03sOh2OcHF9UHfVPqWWALUsNUVzhSBiItjRZoLHx7nIarVjqKVusUZ1Q==",+ "dev": true,+ "license": "MIT",+ "engines": {+ "node": ">=6.9.0"+ }+ },+ "node_modules/@babel/helper-validator-option": {+ "version": "7.27.1",+ "resolved": "https://registry.npmjs.org/@babel/helper-validator-option/-/helper-validator-option-7.27.1.tgz",+ "integrity": "sha512-YvjJow9FxbhFFKDSuFnVCe2WxXk1zWc22fFePVNEaWJEu8IrZVlda6N0uHwzZrUM1il7NC9Mlp4MaJYbYd9JSg==",+ "dev": true,+ "license": "MIT",+ "engines": {+ "node": ">=6.9.0"+ }+ },+ "node_modules/@babel/helpers": {+ "version": "7.29.2",+ "resolved": "https://registry.npmjs.org/@babel/helpers/-/helpers-7.29.2.tgz",+ "integrity": "sha512-HoGuUs4sCZNezVEKdVcwqmZN8GoHirLUcLaYVNBK2J0DadGtdcqgr3BCbvH8+XUo4NGjNl3VOtSjEKNzqfFgKw==",+ "dev": true,+ "license": "MIT",+ "dependencies": {+ "@babel/template": "^7.28.6",+ "@babel/types": "^7.29.0"+ },+ "engines": {+ "node": ">=6.9.0"+ }+ },+ "node_modules/@babel/parser": {+ "version": "7.29.2",+ "resolved": "https://registry.npmjs.org/@babel/parser/-/parser-7.29.2.tgz",+ "integrity": "sha512-4GgRzy/+fsBa72/RZVJmGKPmZu9Byn8o4MoLpmNe1m8ZfYnz5emHLQz3U4gLud6Zwl0RZIcgiLD7Uq7ySFuDLA==",+ "dev": true,+ "license": "MIT",+ "dependencies": {+ "@babel/types": "^7.29.0"+ },+ "bin": {+ "parser": "bin/babel-parser.js"+ },+ "engines": {+ "node": ">=6.0.0"+ }+ },+ "node_modules/@babel/plugin-transform-react-jsx-self": {+ "version": "7.27.1",+ "resolved": "https://registry.npmjs.org/@babel/plugin-transform-react-jsx-self/-/plugin-transform-react-jsx-self-7.27.1.tgz",+ "integrity": "sha512-6UzkCs+ejGdZ5mFFC/OCUrv028ab2fp1znZmCZjAOBKiBK2jXD1O+BPSfX8X2qjJ75fZBMSnQn3Rq2mrBJK2mw==",+ "dev": true,+ "license": "MIT",+ "dependencies": {+ "@babel/helper-plugin-utils": "^7.27.1"+ },+ "engines": {+ "node": ">=6.9.0"+ },+ "peerDependencies": {+ "@babel/core": "^7.0.0-0"+ }+ },+ "node_modules/@babel/plugin-transform-react-jsx-source": {+ "version": "7.27.1",+ "resolved": "https://registry.npmjs.org/@babel/plugin-transform-react-jsx-source/-/plugin-transform-react-jsx-source-7.27.1.tgz",+ "integrity": "sha512-zbwoTsBruTeKB9hSq73ha66iFeJHuaFkUbwvqElnygoNbj/jHRsSeokowZFN3CZ64IvEqcmmkVe89OPXc7ldAw==",+ "dev": true,+ "license": "MIT",+ "dependencies": {+ "@babel/helper-plugin-utils": "^7.27.1"+ },+ "engines": {+ "node": ">=6.9.0"+ },+ "peerDependencies": {+ "@babel/core": "^7.0.0-0"+ }+ },+ "node_modules/@babel/runtime": {+ "version": "7.29.2",+ "resolved": "https://registry.npmjs.org/@babel/runtime/-/runtime-7.29.2.tgz",+ "integrity": "sha512-JiDShH45zKHWyGe4ZNVRrCjBz8Nh9TMmZG1kh4QTK8hCBTWBi8Da+i7s1fJw7/lYpM4ccepSNfqzZ/QvABBi5g==",+ "license": "MIT",+ "engines": {+ "node": ">=6.9.0"+ }+ },+ "node_modules/@babel/template": {+ "version": "7.28.6",+ "resolved": "https://registry.npmjs.org/@babel/template/-/template-7.28.6.tgz",+ "integrity": "sha512-YA6Ma2KsCdGb+WC6UpBVFJGXL58MDA6oyONbjyF/+5sBgxY/dwkhLogbMT2GXXyU84/IhRw/2D1Os1B/giz+BQ==",+ "dev": true,+ "license": "MIT",+ "dependencies": {+ "@babel/code-frame": "^7.28.6",+ "@babel/parser": "^7.28.6",+ "@babel/types": "^7.28.6"+ },+ "engines": {+ "node": ">=6.9.0"+ }+ },+ "node_modules/@babel/traverse": {+ "version": "7.29.0",+ "resolved": "https://registry.npmjs.org/@babel/traverse/-/traverse-7.29.0.tgz",+ "integrity": "sha512-4HPiQr0X7+waHfyXPZpWPfWL/J7dcN1mx9gL6WdQVMbPnF3+ZhSMs8tCxN7oHddJE9fhNE7+lxdnlyemKfJRuA==",+ "dev": true,+ "license": "MIT",+ "dependencies": {+ "@babel/code-frame": "^7.29.0",+ "@babel/generator": "^7.29.0",+ "@babel/helper-globals": "^7.28.0",+ "@babel/parser": "^7.29.0",+ "@babel/template": "^7.28.6",+ "@babel/types": "^7.29.0",+ "debug": "^4.3.1"+ },+ "engines": {+ "node": ">=6.9.0"+ }+ },+ "node_modules/@babel/types": {+ "version": "7.29.0",+ "resolved": "https://registry.npmjs.org/@babel/types/-/types-7.29.0.tgz",+ "integrity": "sha512-LwdZHpScM4Qz8Xw2iKSzS+cfglZzJGvofQICy7W7v4caru4EaAmyUuO6BGrbyQ2mYV11W0U8j5mBhd14dd3B0A==",+ "dev": true,+ "license": "MIT",+ "dependencies": {+ "@babel/helper-string-parser": "^7.27.1",+ "@babel/helper-validator-identifier": "^7.28.5"+ },+ "engines": {+ "node": ">=6.9.0"+ }+ },+ "node_modules/@dimforge/rapier3d-compat": {+ "version": "0.19.2",+ "resolved": "https://registry.npmjs.org/@dimforge/rapier3d-compat/-/rapier3d-compat-0.19.2.tgz",+ "integrity": "sha512-AZHL1jqUF55QJkJyU1yKeh4ImX2J93bVLIezT1+o0FZqTix6O06MOaqpKoJ4MmbDCsoZmwO+qc471/SDMDm2AA==",+ "license": "Apache-2.0"+ },+ "node_modules/@esbuild/aix-ppc64": {+ "version": "0.21.5",+ "resolved": "https://registry.npmjs.org/@esbuild/aix-ppc64/-/aix-ppc64-0.21.5.tgz",+ "integrity": "sha512-1SDgH6ZSPTlggy1yI6+Dbkiz8xzpHJEVAlF/AM1tHPLsf5STom9rwtjE4hKAF20FfXXNTFqEYXyJNWh1GiZedQ==",+ "cpu": [+ "ppc64"+ ],+ "dev": true,+ "license": "MIT",+ "optional": true,+ "os": [+ "aix"+ ],+ "engines": {+ "node": ">=12"+ }+ },+ "node_modules/@esbuild/android-arm": {+ "version": "0.21.5",+ "resolved": "https://registry.npmjs.org/@esbuild/android-arm/-/android-arm-0.21.5.tgz",+ "integrity": "sha512-vCPvzSjpPHEi1siZdlvAlsPxXl7WbOVUBBAowWug4rJHb68Ox8KualB+1ocNvT5fjv6wpkX6o/iEpbDrf68zcg==",+ "cpu": [+ "arm"+ ],+ "dev": true,+ "license": "MIT",+ "optional": true,+ "os": [+ "android"+ ],+ "engines": {+ "node": ">=12"+ }+ },+ "node_modules/@esbuild/android-arm64": {+ "version": "0.21.5",+ "resolved": "https://registry.npmjs.org/@esbuild/android-arm64/-/android-arm64-0.21.5.tgz",+ "integrity": "sha512-c0uX9VAUBQ7dTDCjq+wdyGLowMdtR/GoC2U5IYk/7D1H1JYC0qseD7+11iMP2mRLN9RcCMRcjC4YMclCzGwS/A==",+ "cpu": [+ "arm64"+ ],+ "dev": true,+ "license": "MIT",+ "optional": true,+ "os": [+ "android"+ ],+ "engines": {+ "node": ">=12"+ }+ },+ "node_modules/@esbuild/android-x64": {+ "version": "0.21.5",+ "resolved": "https://registry.npmjs.org/@esbuild/android-x64/-/android-x64-0.21.5.tgz",+ "integrity": "sha512-D7aPRUUNHRBwHxzxRvp856rjUHRFW1SdQATKXH2hqA0kAZb1hKmi02OpYRacl0TxIGz/ZmXWlbZgjwWYaCakTA==",+ "cpu": [+ "x64"+ ],+ "dev": true,+ "license": "MIT",+ "optional": true,+ "os": [+ "android"+ ],+ "engines": {+ "node": ">=12"+ }+ },+ "node_modules/@esbuild/darwin-arm64": {+ "version": "0.21.5",+ "resolved": "https://registry.npmjs.org/@esbuild/darwin-arm64/-/darwin-arm64-0.21.5.tgz",+ "integrity": "sha512-DwqXqZyuk5AiWWf3UfLiRDJ5EDd49zg6O9wclZ7kUMv2WRFr4HKjXp/5t8JZ11QbQfUS6/cRCKGwYhtNAY88kQ==",+ "cpu": [+ "arm64"+ ],+ "dev": true,+ "license": "MIT",+ "optional": true,+ "os": [+ "darwin"+ ],+ "engines": {+ "node": ">=12"+ }+ },+ "node_modules/@esbuild/darwin-x64": {+ "version": "0.21.5",+ "resolved": "https://registry.npmjs.org/@esbuild/darwin-x64/-/darwin-x64-0.21.5.tgz",+ "integrity": "sha512-se/JjF8NlmKVG4kNIuyWMV/22ZaerB+qaSi5MdrXtd6R08kvs2qCN4C09miupktDitvh8jRFflwGFBQcxZRjbw==",+ "cpu": [+ "x64"+ ],+ "dev": true,+ "license": "MIT",+ "optional": true,+ "os": [+ "darwin"+ ],+ "engines": {+ "node": ">=12"+ }+ },+ "node_modules/@esbuild/freebsd-arm64": {+ "version": "0.21.5",+ "resolved": "https://registry.npmjs.org/@esbuild/freebsd-arm64/-/freebsd-arm64-0.21.5.tgz",+ "integrity": "sha512-5JcRxxRDUJLX8JXp/wcBCy3pENnCgBR9bN6JsY4OmhfUtIHe3ZW0mawA7+RDAcMLrMIZaf03NlQiX9DGyB8h4g==",+ "cpu": [+ "arm64"+ ],+ "dev": true,+ "license": "MIT",+ "optional": true,+ "os": [+ "freebsd"+ ],+ "engines": {+ "node": ">=12"+ }+ },+ "node_modules/@esbuild/freebsd-x64": {+ "version": "0.21.5",+ "resolved": "https://registry.npmjs.org/@esbuild/freebsd-x64/-/freebsd-x64-0.21.5.tgz",+ "integrity": "sha512-J95kNBj1zkbMXtHVH29bBriQygMXqoVQOQYA+ISs0/2l3T9/kj42ow2mpqerRBxDJnmkUDCaQT/dfNXWX/ZZCQ==",+ "cpu": [+ "x64"+ ],+ "dev": true,+ "license": "MIT",+ "optional": true,+ "os": [+ "freebsd"+ ],+ "engines": {+ "node": ">=12"+ }+ },+ "node_modules/@esbuild/linux-arm": {+ "version": "0.21.5",+ "resolved": "https://registry.npmjs.org/@esbuild/linux-arm/-/linux-arm-0.21.5.tgz",+ "integrity": "sha512-bPb5AHZtbeNGjCKVZ9UGqGwo8EUu4cLq68E95A53KlxAPRmUyYv2D6F0uUI65XisGOL1hBP5mTronbgo+0bFcA==",+ "cpu": [+ "arm"+ ],+ "dev": true,+ "license": "MIT",+ "optional": true,+ "os": [+ "linux"+ ],+ "engines": {+ "node": ">=12"+ }+ },+ "node_modules/@esbuild/linux-arm64": {+ "version": "0.21.5",+ "resolved": "https://registry.npmjs.org/@esbuild/linux-arm64/-/linux-arm64-0.21.5.tgz",+ "integrity": "sha512-ibKvmyYzKsBeX8d8I7MH/TMfWDXBF3db4qM6sy+7re0YXya+K1cem3on9XgdT2EQGMu4hQyZhan7TeQ8XkGp4Q==",+ "cpu": [+ "arm64"+ ],+ "dev": true,+ "license": "MIT",+ "optional": true,+ "os": [+ "linux"+ ],+ "engines": {+ "node": ">=12"+ }+ },+ "node_modules/@esbuild/linux-ia32": {+ "version": "0.21.5",+ "resolved": "https://registry.npmjs.org/@esbuild/linux-ia32/-/linux-ia32-0.21.5.tgz",+ "integrity": "sha512-YvjXDqLRqPDl2dvRODYmmhz4rPeVKYvppfGYKSNGdyZkA01046pLWyRKKI3ax8fbJoK5QbxblURkwK/MWY18Tg==",+ "cpu": [+ "ia32"+ ],+ "dev": true,+ "license": "MIT",+ "optional": true,+ "os": [+ "linux"+ ],+ "engines": {+ "node": ">=12"+ }+ },+ "node_modules/@esbuild/linux-loong64": {+ "version": "0.21.5",+ "resolved": "https://registry.npmjs.org/@esbuild/linux-loong64/-/linux-loong64-0.21.5.tgz",+ "integrity": "sha512-uHf1BmMG8qEvzdrzAqg2SIG/02+4/DHB6a9Kbya0XDvwDEKCoC8ZRWI5JJvNdUjtciBGFQ5PuBlpEOXQj+JQSg==",+ "cpu": [+ "loong64"+ ],+ "dev": true,+ "license": "MIT",+ "optional": true,+ "os": [+ "linux"+ ],+ "engines": {+ "node": ">=12"+ }+ },+ "node_modules/@esbuild/linux-mips64el": {+ "version": "0.21.5",+ "resolved": "https://registry.npmjs.org/@esbuild/linux-mips64el/-/linux-mips64el-0.21.5.tgz",+ "integrity": "sha512-IajOmO+KJK23bj52dFSNCMsz1QP1DqM6cwLUv3W1QwyxkyIWecfafnI555fvSGqEKwjMXVLokcV5ygHW5b3Jbg==",+ "cpu": [+ "mips64el"+ ],+ "dev": true,+ "license": "MIT",+ "optional": true,+ "os": [+ "linux"+ ],+ "engines": {+ "node": ">=12"+ }+ },+ "node_modules/@esbuild/linux-ppc64": {+ "version": "0.21.5",+ "resolved": "https://registry.npmjs.org/@esbuild/linux-ppc64/-/linux-ppc64-0.21.5.tgz",+ "integrity": "sha512-1hHV/Z4OEfMwpLO8rp7CvlhBDnjsC3CttJXIhBi+5Aj5r+MBvy4egg7wCbe//hSsT+RvDAG7s81tAvpL2XAE4w==",+ "cpu": [+ "ppc64"+ ],+ "dev": true,+ "license": "MIT",+ "optional": true,+ "os": [+ "linux"+ ],+ "engines": {+ "node": ">=12"+ }+ },+ "node_modules/@esbuild/linux-riscv64": {+ "version": "0.21.5",+ "resolved": "https://registry.npmjs.org/@esbuild/linux-riscv64/-/linux-riscv64-0.21.5.tgz",+ "integrity": "sha512-2HdXDMd9GMgTGrPWnJzP2ALSokE/0O5HhTUvWIbD3YdjME8JwvSCnNGBnTThKGEB91OZhzrJ4qIIxk/SBmyDDA==",+ "cpu": [+ "riscv64"+ ],+ "dev": true,+ "license": "MIT",+ "optional": true,+ "os": [+ "linux"+ ],+ "engines": {+ "node": ">=12"+ }+ },+ "node_modules/@esbuild/linux-s390x": {+ "version": "0.21.5",+ "resolved": "https://registry.npmjs.org/@esbuild/linux-s390x/-/linux-s390x-0.21.5.tgz",+ "integrity": "sha512-zus5sxzqBJD3eXxwvjN1yQkRepANgxE9lgOW2qLnmr8ikMTphkjgXu1HR01K4FJg8h1kEEDAqDcZQtbrRnB41A==",+ "cpu": [+ "s390x"+ ],+ "dev": true,+ "license": "MIT",+ "optional": true,+ "os": [+ "linux"+ ],+ "engines": {+ "node": ">=12"+ }+ },+ "node_modules/@esbuild/linux-x64": {+ "version": "0.21.5",+ "resolved": "https://registry.npmjs.org/@esbuild/linux-x64/-/linux-x64-0.21.5.tgz",+ "integrity": "sha512-1rYdTpyv03iycF1+BhzrzQJCdOuAOtaqHTWJZCWvijKD2N5Xu0TtVC8/+1faWqcP9iBCWOmjmhoH94dH82BxPQ==",+ "cpu": [+ "x64"+ ],+ "dev": true,+ "license": "MIT",+ "optional": true,+ "os": [+ "linux"+ ],+ "engines": {+ "node": ">=12"+ }+ },+ "node_modules/@esbuild/netbsd-x64": {+ "version": "0.21.5",+ "resolved": "https://registry.npmjs.org/@esbuild/netbsd-x64/-/netbsd-x64-0.21.5.tgz",+ "integrity": "sha512-Woi2MXzXjMULccIwMnLciyZH4nCIMpWQAs049KEeMvOcNADVxo0UBIQPfSmxB3CWKedngg7sWZdLvLczpe0tLg==",+ "cpu": [+ "x64"+ ],+ "dev": true,+ "license": "MIT",+ "optional": true,+ "os": [+ "netbsd"+ ],+ "engines": {+ "node": ">=12"+ }+ },+ "node_modules/@esbuild/openbsd-x64": {+ "version": "0.21.5",+ "resolved": "https://registry.npmjs.org/@esbuild/openbsd-x64/-/openbsd-x64-0.21.5.tgz",+ "integrity": "sha512-HLNNw99xsvx12lFBUwoT8EVCsSvRNDVxNpjZ7bPn947b8gJPzeHWyNVhFsaerc0n3TsbOINvRP2byTZ5LKezow==",+ "cpu": [+ "x64"+ ],+ "dev": true,+ "license": "MIT",+ "optional": true,+ "os": [+ "openbsd"+ ],+ "engines": {+ "node": ">=12"+ }+ },+ "node_modules/@esbuild/sunos-x64": {+ "version": "0.21.5",+ "resolved": "https://registry.npmjs.org/@esbuild/sunos-x64/-/sunos-x64-0.21.5.tgz",+ "integrity": "sha512-6+gjmFpfy0BHU5Tpptkuh8+uw3mnrvgs+dSPQXQOv3ekbordwnzTVEb4qnIvQcYXq6gzkyTnoZ9dZG+D4garKg==",+ "cpu": [+ "x64"+ ],+ "dev": true,+ "license": "MIT",+ "optional": true,+ "os": [+ "sunos"+ ],+ "engines": {+ "node": ">=12"+ }+ },+ "node_modules/@esbuild/win32-arm64": {+ "version": "0.21.5",+ "resolved": "https://registry.npmjs.org/@esbuild/win32-arm64/-/win32-arm64-0.21.5.tgz",+ "integrity": "sha512-Z0gOTd75VvXqyq7nsl93zwahcTROgqvuAcYDUr+vOv8uHhNSKROyU961kgtCD1e95IqPKSQKH7tBTslnS3tA8A==",+ "cpu": [+ "arm64"+ ],+ "dev": true,+ "license": "MIT",+ "optional": true,+ "os": [+ "win32"+ ],+ "engines": {+ "node": ">=12"+ }+ },+ "node_modules/@esbuild/win32-ia32": {+ "version": "0.21.5",+ "resolved": "https://registry.npmjs.org/@esbuild/win32-ia32/-/win32-ia32-0.21.5.tgz",+ "integrity": "sha512-SWXFF1CL2RVNMaVs+BBClwtfZSvDgtL//G/smwAc5oVK/UPu2Gu9tIaRgFmYFFKrmg3SyAjSrElf0TiJ1v8fYA==",+ "cpu": [+ "ia32"+ ],+ "dev": true,+ "license": "MIT",+ "optional": true,+ "os": [+ "win32"+ ],+ "engines": {+ "node": ">=12"+ }+ },+ "node_modules/@esbuild/win32-x64": {+ "version": "0.21.5",+ "resolved": "https://registry.npmjs.org/@esbuild/win32-x64/-/win32-x64-0.21.5.tgz",+ "integrity": "sha512-tQd/1efJuzPC6rCFwEvLtci/xNFcTZknmXs98FYDfGE4wP9ClFV98nyKrzJKVPMhdDnjzLhdUyMX4PsQAPjwIw==",+ "cpu": [+ "x64"+ ],+ "dev": true,+ "license": "MIT",+ "optional": true,+ "os": [+ "win32"+ ],+ "engines": {+ "node": ">=12"+ }+ },+ "node_modules/@floating-ui/core": {+ "version": "0.7.3",+ "resolved": "https://registry.npmjs.org/@floating-ui/core/-/core-0.7.3.tgz",+ "integrity": "sha512-buc8BXHmG9l82+OQXOFU3Kr2XQx9ys01U/Q9HMIrZ300iLc8HLMgh7dcCqgYzAzf4BkoQvDcXf5Y+CuEZ5JBYg==",+ "license": "MIT"+ },+ "node_modules/@floating-ui/dom": {+ "version": "0.5.4",+ "resolved": "https://registry.npmjs.org/@floating-ui/dom/-/dom-0.5.4.tgz",+ "integrity": "sha512-419BMceRLq0RrmTSDxn8hf9R3VCJv2K9PUfugh5JyEFmdjzDo+e8U5EdR8nzKq8Yj1htzLm3b6eQEEam3/rrtg==",+ "license": "MIT",+ "dependencies": {+ "@floating-ui/core": "^0.7.3"+ }+ },+ "node_modules/@floating-ui/react-dom": {+ "version": "0.7.2",+ "resolved": "https://registry.npmjs.org/@floating-ui/react-dom/-/react-dom-0.7.2.tgz",+ "integrity": "sha512-1T0sJcpHgX/u4I1OzIEhlcrvkUN8ln39nz7fMoE/2HDHrPiMFoOGR7++GYyfUmIQHkkrTinaeQsO3XWubjSvGg==",+ "license": "MIT",+ "dependencies": {+ "@floating-ui/dom": "^0.5.3",+ "use-isomorphic-layout-effect": "^1.1.1"+ },+ "peerDependencies": {+ "react": ">=16.8.0",+ "react-dom": ">=16.8.0"+ }+ },+ "node_modules/@jridgewell/gen-mapping": {+ "version": "0.3.13",+ "resolved": "https://registry.npmjs.org/@jridgewell/gen-mapping/-/gen-mapping-0.3.13.tgz",+ "integrity": "sha512-2kkt/7niJ6MgEPxF0bYdQ6etZaA+fQvDcLKckhy1yIQOzaoKjBBjSj63/aLVjYE3qhRt5dvM+uUyfCg6UKCBbA==",+ "dev": true,+ "license": "MIT",+ "dependencies": {+ "@jridgewell/sourcemap-codec": "^1.5.0",+ "@jridgewell/trace-mapping": "^0.3.24"+ }+ },+ "node_modules/@jridgewell/remapping": {+ "version": "2.3.5",+ "resolved": "https://registry.npmjs.org/@jridgewell/remapping/-/remapping-2.3.5.tgz",+ "integrity": "sha512-LI9u/+laYG4Ds1TDKSJW2YPrIlcVYOwi2fUC6xB43lueCjgxV4lffOCZCtYFiH6TNOX+tQKXx97T4IKHbhyHEQ==",+ "dev": true,+ "license": "MIT",+ "dependencies": {+ "@jridgewell/gen-mapping": "^0.3.5",+ "@jridgewell/trace-mapping": "^0.3.24"+ }+ },+ "node_modules/@jridgewell/resolve-uri": {+ "version": "3.1.2",+ "resolved": "https://registry.npmjs.org/@jridgewell/resolve-uri/-/resolve-uri-3.1.2.tgz",+ "integrity": "sha512-bRISgCIjP20/tbWSPWMEi54QVPRZExkuD9lJL+UIxUKtwVJA8wW1Trb1jMs1RFXo1CBTNZ/5hpC9QvmKWdopKw==",+ "dev": true,+ "license": "MIT",+ "engines": {+ "node": ">=6.0.0"+ }+ },+ "node_modules/@jridgewell/sourcemap-codec": {+ "version": "1.5.5",+ "resolved": "https://registry.npmjs.org/@jridgewell/sourcemap-codec/-/sourcemap-codec-1.5.5.tgz",+ "integrity": "sha512-cYQ9310grqxueWbl+WuIUIaiUaDcj7WOq5fVhEljNVgRfOUhY9fy2zTvfoqWsnebh8Sl70VScFbICvJnLKB0Og==",+ "dev": true,+ "license": "MIT"+ },+ "node_modules/@jridgewell/trace-mapping": {+ "version": "0.3.31",+ "resolved": "https://registry.npmjs.org/@jridgewell/trace-mapping/-/trace-mapping-0.3.31.tgz",+ "integrity": "sha512-zzNR+SdQSDJzc8joaeP8QQoCQr8NuYx2dIIytl1QeBEZHJ9uW6hebsrYgbz8hJwUQao3TWCMtmfV8Nu1twOLAw==",+ "dev": true,+ "license": "MIT",+ "dependencies": {+ "@jridgewell/resolve-uri": "^3.1.0",+ "@jridgewell/sourcemap-codec": "^1.4.14"+ }+ },+ "node_modules/@mediapipe/tasks-vision": {+ "version": "0.10.17",+ "resolved": "https://registry.npmjs.org/@mediapipe/tasks-vision/-/tasks-vision-0.10.17.tgz",+ "integrity": "sha512-CZWV/q6TTe8ta61cZXjfnnHsfWIdFhms03M9T7Cnd5y2mdpylJM0rF1qRq+wsQVRMLz1OYPVEBU9ph2Bx8cxrg==",+ "license": "Apache-2.0"+ },+ "node_modules/@monogrid/gainmap-js": {+ "version": "3.4.0",+ "resolved": "https://registry.npmjs.org/@monogrid/gainmap-js/-/gainmap-js-3.4.0.tgz",+ "integrity": "sha512-2Z0FATFHaoYJ8b+Y4y4Hgfn3FRFwuU5zRrk+9dFWp4uGAdHGqVEdP7HP+gLA3X469KXHmfupJaUbKo1b/aDKIg==",+ "license": "MIT",+ "dependencies": {+ "promise-worker-transferable": "^1.0.4"+ },+ "peerDependencies": {+ "three": ">= 0.159.0"+ }+ },+ "node_modules/@nodelib/fs.scandir": {+ "version": "2.1.5",+ "resolved": "https://registry.npmjs.org/@nodelib/fs.scandir/-/fs.scandir-2.1.5.tgz",+ "integrity": "sha512-vq24Bq3ym5HEQm2NKCr3yXDwjc7vTsEThRDnkp2DK9p1uqLR+DHurm/NOTo0KG7HYHU7eppKZj3MyqYuMBf62g==",+ "dev": true,+ "license": "MIT",+ "dependencies": {+ "@nodelib/fs.stat": "2.0.5",+ "run-parallel": "^1.1.9"+ },+ "engines": {+ "node": ">= 8"+ }+ },+ "node_modules/@nodelib/fs.stat": {+ "version": "2.0.5",+ "resolved": "https://registry.npmjs.org/@nodelib/fs.stat/-/fs.stat-2.0.5.tgz",+ "integrity": "sha512-RkhPPp2zrqDAQA/2jNhnztcPAlv64XdhIp7a7454A5ovI7Bukxgt7MX7udwAu3zg1DcpPU0rz3VV1SeaqvY4+A==",+ "dev": true,+ "license": "MIT",+ "engines": {+ "node": ">= 8"+ }+ },+ "node_modules/@nodelib/fs.walk": {+ "version": "1.2.8",+ "resolved": "https://registry.npmjs.org/@nodelib/fs.walk/-/fs.walk-1.2.8.tgz",+ "integrity": "sha512-oGB+UxlgWcgQkgwo8GcEGwemoTFt3FIO9ababBmaGwXIoBKZ+GTy0pP185beGg7Llih/NSHSV2XAs1lnznocSg==",+ "dev": true,+ "license": "MIT",+ "dependencies": {+ "@nodelib/fs.scandir": "2.1.5",+ "fastq": "^1.6.0"+ },+ "engines": {+ "node": ">= 8"+ }+ },+ "node_modules/@radix-ui/primitive": {+ "version": "1.0.0",+ "resolved": "https://registry.npmjs.org/@radix-ui/primitive/-/primitive-1.0.0.tgz",+ "integrity": "sha512-3e7rn8FDMin4CgeL7Z/49smCA3rFYY3Ha2rUQ7HRWFadS5iCRw08ZgVT1LaNTCNqgvrUiyczLflrVrF0SRQtNA==",+ "license": "MIT",+ "dependencies": {+ "@babel/runtime": "^7.13.10"+ }+ },+ "node_modules/@radix-ui/rect": {+ "version": "1.0.0",+ "resolved": "https://registry.npmjs.org/@radix-ui/rect/-/rect-1.0.0.tgz",+ "integrity": "sha512-d0O68AYy/9oeEy1DdC07bz1/ZXX+DqCskRd3i4JzLSTXwefzaepQrKjXC7aNM8lTHjFLDO0pDgaEiQ7jEk+HVg==",+ "license": "MIT",+ "dependencies": {+ "@babel/runtime": "^7.13.10"+ }+ },+ "node_modules/@react-three/drei": {+ "version": "10.7.7",+ "resolved": "https://registry.npmjs.org/@react-three/drei/-/drei-10.7.7.tgz",+ "integrity": "sha512-ff+J5iloR0k4tC++QtD/j9u3w5fzfgFAWDtAGQah9pF2B1YgOq/5JxqY0/aVoQG5r3xSZz0cv5tk2YuBob4xEQ==",+ "license": "MIT",+ "dependencies": {+ "@babel/runtime": "^7.26.0",+ "@mediapipe/tasks-vision": "0.10.17",+ "@monogrid/gainmap-js": "^3.0.6",+ "@use-gesture/react": "^10.3.1",+ "camera-controls": "^3.1.0",+ "cross-env": "^7.0.3",+ "detect-gpu": "^5.0.56",+ "glsl-noise": "^0.0.0",+ "hls.js": "^1.5.17",+ "maath": "^0.10.8",+ "meshline": "^3.3.1",+ "stats-gl": "^2.2.8",+ "stats.js": "^0.17.0",+ "suspend-react": "^0.1.3",+ "three-mesh-bvh": "^0.8.3",+ "three-stdlib": "^2.35.6",+ "troika-three-text": "^0.52.4",+ "tunnel-rat": "^0.1.2",+ "use-sync-external-store": "^1.4.0",+ "utility-types": "^3.11.0",+ "zustand": "^5.0.1"+ },+ "peerDependencies": {+ "@react-three/fiber": "^9.0.0",+ "react": "^19",+ "react-dom": "^19",+ "three": ">=0.159"+ },+ "peerDependenciesMeta": {+ "react-dom": {+ "optional": true+ }+ }+ },+ "node_modules/@react-three/fiber": {+ "version": "9.6.0",+ "resolved": "https://registry.npmjs.org/@react-three/fiber/-/fiber-9.6.0.tgz",+ "integrity": "sha512-90abYK2q5/qDM+GACs9zRvc5KhEEpEWqWlHSd64zTPNxg+9wCJvTfyD9x2so7hlQhjRYO1Fa6flR3BC/kpTFkA==",+ "license": "MIT",+ "peer": true,+ "dependencies": {+ "@babel/runtime": "^7.17.8",+ "@types/webxr": "*",+ "base64-js": "^1.5.1",+ "buffer": "^6.0.3",+ "its-fine": "^2.0.0",+ "react-use-measure": "^2.1.7",+ "scheduler": "^0.27.0",+ "suspend-react": "^0.1.3",+ "use-sync-external-store": "^1.4.0",+ "zustand": "^5.0.3"+ },+ "peerDependencies": {+ "expo": ">=43.0",+ "expo-asset": ">=8.4",+ "expo-file-system": ">=11.0",+ "expo-gl": ">=11.0",+ "react": ">=19 <19.3",+ "react-dom": ">=19 <19.3",+ "react-native": ">=0.78",+ "three": ">=0.156"+ },+ "peerDependenciesMeta": {+ "expo": {+ "optional": true+ },+ "expo-asset": {+ "optional": true+ },+ "expo-file-system": {+ "optional": true+ },+ "expo-gl": {+ "optional": true+ },+ "react-dom": {+ "optional": true+ },+ "react-native": {+ "optional": true+ }+ }+ },+ "node_modules/@react-three/postprocessing": {+ "version": "3.0.4",+ "resolved": "https://registry.npmjs.org/@react-three/postprocessing/-/postprocessing-3.0.4.tgz",+ "integrity": "sha512-e4+F5xtudDYvhxx3y0NtWXpZbwvQ0x1zdOXWTbXMK6fFLVDd4qucN90YaaStanZGS4Bd5siQm0lGL/5ogf8iDQ==",+ "license": "MIT",+ "dependencies": {+ "maath": "^0.6.0",+ "n8ao": "^1.9.4",+ "postprocessing": "^6.36.6"+ },+ "peerDependencies": {+ "@react-three/fiber": "^9.0.0",+ "react": "^19.0",+ "three": ">= 0.156.0"+ }+ },+ "node_modules/@react-three/postprocessing/node_modules/maath": {+ "version": "0.6.0",+ "resolved": "https://registry.npmjs.org/maath/-/maath-0.6.0.tgz",+ "integrity": "sha512-dSb2xQuP7vDnaYqfoKzlApeRcR2xtN8/f7WV/TMAkBC8552TwTLtOO0JTcSygkYMjNDPoo6V01jTw/aPi4JrMw==",+ "license": "MIT",+ "peerDependencies": {+ "@types/three": ">=0.144.0",+ "three": ">=0.144.0"+ }+ },+ "node_modules/@react-three/rapier": {+ "version": "2.2.0",+ "resolved": "https://registry.npmjs.org/@react-three/rapier/-/rapier-2.2.0.tgz",+ "integrity": "sha512-mVsqbKXlGZoN+XrqdhzFZUQmy8pibEOVzl4k7LC+LHe84bQnYBSagy1Hvbda6bL1PJDdTFyiDiBk5buKFinNIQ==",+ "dependencies": {+ "@dimforge/rapier3d-compat": "0.19.2",+ "suspend-react": "^0.1.3",+ "three-stdlib": "^2.35.12"+ },+ "peerDependencies": {+ "@react-three/fiber": "^9.0.4",+ "react": "^19",+ "three": ">=0.159.0"+ }+ },+ "node_modules/@rolldown/pluginutils": {+ "version": "1.0.0-beta.27",+ "resolved": "https://registry.npmjs.org/@rolldown/pluginutils/-/pluginutils-1.0.0-beta.27.tgz",+ "integrity": "sha512-+d0F4MKMCbeVUJwG96uQ4SgAznZNSq93I3V+9NHA4OpvqG8mRCpGdKmK8l/dl02h2CCDHwW2FqilnTyDcAnqjA==",+ "dev": true,+ "license": "MIT"+ },+ "node_modules/@rollup/rollup-android-arm-eabi": {+ "version": "4.60.2",+ "resolved": "https://registry.npmjs.org/@rollup/rollup-android-arm-eabi/-/rollup-android-arm-eabi-4.60.2.tgz",+ "integrity": "sha512-dnlp69efPPg6Uaw2dVqzWRfAWRnYVb1XJ8CyyhIbZeaq4CA5/mLeZ1IEt9QqQxmbdvagjLIm2ZL8BxXv5lH4Yw==",+ "cpu": [+ "arm"+ ],+ "dev": true,+ "license": "MIT",+ "optional": true,+ "os": [+ "android"+ ]+ },+ "node_modules/@rollup/rollup-android-arm64": {+ "version": "4.60.2",+ "resolved": "https://registry.npmjs.org/@rollup/rollup-android-arm64/-/rollup-android-arm64-4.60.2.tgz",+ "integrity": "sha512-OqZTwDRDchGRHHm/hwLOL7uVPB9aUvI0am/eQuWMNyFHf5PSEQmyEeYYheA0EPPKUO/l0uigCp+iaTjoLjVoHg==",+ "cpu": [+ "arm64"+ ],+ "dev": true,+ "license": "MIT",+ "optional": true,+ "os": [+ "android"+ ]+ },+ "node_modules/@rollup/rollup-darwin-arm64": {+ "version": "4.60.2",+ "resolved": "https://registry.npmjs.org/@rollup/rollup-darwin-arm64/-/rollup-darwin-arm64-4.60.2.tgz",+ "integrity": "sha512-UwRE7CGpvSVEQS8gUMBe1uADWjNnVgP3Iusyda1nSRwNDCsRjnGc7w6El6WLQsXmZTbLZx9cecegumcitNfpmA==",+ "cpu": [+ "arm64"+ ],+ "dev": true,+ "license": "MIT",+ "optional": true,+ "os": [+ "darwin"+ ]+ },+ "node_modules/@rollup/rollup-darwin-x64": {+ "version": "4.60.2",+ "resolved": "https://registry.npmjs.org/@rollup/rollup-darwin-x64/-/rollup-darwin-x64-4.60.2.tgz",+ "integrity": "sha512-gjEtURKLCC5VXm1I+2i1u9OhxFsKAQJKTVB8WvDAHF+oZlq0GTVFOlTlO1q3AlCTE/DF32c16ESvfgqR7343/g==",+ "cpu": [+ "x64"+ ],+ "dev": true,+ "license": "MIT",+ "optional": true,+ "os": [+ "darwin"+ ]+ },+ "node_modules/@rollup/rollup-freebsd-arm64": {+ "version": "4.60.2",+ "resolved": "https://registry.npmjs.org/@rollup/rollup-freebsd-arm64/-/rollup-freebsd-arm64-4.60.2.tgz",+ "integrity": "sha512-Bcl6CYDeAgE70cqZaMojOi/eK63h5Me97ZqAQoh77VPjMysA/4ORQBRGo3rRy45x4MzVlU9uZxs8Uwy7ZaKnBw==",+ "cpu": [+ "arm64"+ ],+ "dev": true,+ "license": "MIT",+ "optional": true,+ "os": [+ "freebsd"+ ]+ },+ "node_modules/@rollup/rollup-freebsd-x64": {+ "version": "4.60.2",+ "resolved": "https://registry.npmjs.org/@rollup/rollup-freebsd-x64/-/rollup-freebsd-x64-4.60.2.tgz",+ "integrity": "sha512-LU+TPda3mAE2QB0/Hp5VyeKJivpC6+tlOXd1VMoXV/YFMvk/MNk5iXeBfB4MQGRWyOYVJ01625vjkr0Az98OJQ==",+ "cpu": [+ "x64"+ ],+ "dev": true,+ "license": "MIT",+ "optional": true,+ "os": [+ "freebsd"+ ]+ },+ "node_modules/@rollup/rollup-linux-arm-gnueabihf": {+ "version": "4.60.2",+ "resolved": "https://registry.npmjs.org/@rollup/rollup-linux-arm-gnueabihf/-/rollup-linux-arm-gnueabihf-4.60.2.tgz",+ "integrity": "sha512-2QxQrM+KQ7DAW4o22j+XZ6RKdxjLD7BOWTP0Bv0tmjdyhXSsr2Ul1oJDQqh9Zf5qOwTuTc7Ek83mOFaKnodPjg==",+ "cpu": [+ "arm"+ ],+ "dev": true,+ "license": "MIT",+ "optional": true,+ "os": [+ "linux"+ ]+ },+ "node_modules/@rollup/rollup-linux-arm-musleabihf": {+ "version": "4.60.2",+ "resolved": "https://registry.npmjs.org/@rollup/rollup-linux-arm-musleabihf/-/rollup-linux-arm-musleabihf-4.60.2.tgz",+ "integrity": "sha512-TbziEu2DVsTEOPif2mKWkMeDMLoYjx95oESa9fkQQK7r/Orta0gnkcDpzwufEcAO2BLBsD7mZkXGFqEdMRRwfw==",+ "cpu": [+ "arm"+ ],+ "dev": true,+ "license": "MIT",+ "optional": true,+ "os": [+ "linux"+ ]+ },+ "node_modules/@rollup/rollup-linux-arm64-gnu": {+ "version": "4.60.2",+ "resolved": "https://registry.npmjs.org/@rollup/rollup-linux-arm64-gnu/-/rollup-linux-arm64-gnu-4.60.2.tgz",+ "integrity": "sha512-bO/rVDiDUuM2YfuCUwZ1t1cP+/yqjqz+Xf2VtkdppefuOFS2OSeAfgafaHNkFn0t02hEyXngZkxtGqXcXwO8Rg==",+ "cpu": [+ "arm64"+ ],+ "dev": true,+ "license": "MIT",+ "optional": true,+ "os": [+ "linux"+ ]+ },+ "node_modules/@rollup/rollup-linux-arm64-musl": {+ "version": "4.60.2",+ "resolved": "https://registry.npmjs.org/@rollup/rollup-linux-arm64-musl/-/rollup-linux-arm64-musl-4.60.2.tgz",+ "integrity": "sha512-hr26p7e93Rl0Za+JwW7EAnwAvKkehh12BU1Llm9Ykiibg4uIr2rbpxG9WCf56GuvidlTG9KiiQT/TXT1yAWxTA==",+ "cpu": [+ "arm64"+ ],+ "dev": true,+ "license": "MIT",+ "optional": true,+ "os": [+ "linux"+ ]+ },+ "node_modules/@rollup/rollup-linux-loong64-gnu": {+ "version": "4.60.2",+ "resolved": "https://registry.npmjs.org/@rollup/rollup-linux-loong64-gnu/-/rollup-linux-loong64-gnu-4.60.2.tgz",+ "integrity": "sha512-pOjB/uSIyDt+ow3k/RcLvUAOGpysT2phDn7TTUB3n75SlIgZzM6NKAqlErPhoFU+npgY3/n+2HYIQVbF70P9/A==",+ "cpu": [+ "loong64"+ ],+ "dev": true,+ "license": "MIT",+ "optional": true,+ "os": [+ "linux"+ ]+ },+ "node_modules/@rollup/rollup-linux-loong64-musl": {+ "version": "4.60.2",+ "resolved": "https://registry.npmjs.org/@rollup/rollup-linux-loong64-musl/-/rollup-linux-loong64-musl-4.60.2.tgz",+ "integrity": "sha512-2/w+q8jszv9Ww1c+6uJT3OwqhdmGP2/4T17cu8WuwyUuuaCDDJ2ojdyYwZzCxx0GcsZBhzi3HmH+J5pZNXnd+Q==",+ "cpu": [+ "loong64"+ ],+ "dev": true,+ "license": "MIT",+ "optional": true,+ "os": [+ "linux"+ ]+ },+ "node_modules/@rollup/rollup-linux-ppc64-gnu": {+ "version": "4.60.2",+ "resolved": "https://registry.npmjs.org/@rollup/rollup-linux-ppc64-gnu/-/rollup-linux-ppc64-gnu-4.60.2.tgz",+ "integrity": "sha512-11+aL5vKheYgczxtPVVRhdptAM2H7fcDR5Gw4/bTcteuZBlH4oP9f5s9zYO9aGZvoGeBpqXI/9TZZihZ609wKw==",+ "cpu": [+ "ppc64"+ ],+ "dev": true,+ "license": "MIT",+ "optional": true,+ "os": [+ "linux"+ ]+ },+ "node_modules/@rollup/rollup-linux-ppc64-musl": {+ "version": "4.60.2",+ "resolved": "https://registry.npmjs.org/@rollup/rollup-linux-ppc64-musl/-/rollup-linux-ppc64-musl-4.60.2.tgz",+ "integrity": "sha512-i16fokAGK46IVZuV8LIIwMdtqhin9hfYkCh8pf8iC3QU3LpwL+1FSFGej+O7l3E/AoknL6Dclh2oTdnRMpTzFQ==",+ "cpu": [+ "ppc64"+ ],+ "dev": true,+ "license": "MIT",+ "optional": true,+ "os": [+ "linux"+ ]+ },+ "node_modules/@rollup/rollup-linux-riscv64-gnu": {+ "version": "4.60.2",+ "resolved": "https://registry.npmjs.org/@rollup/rollup-linux-riscv64-gnu/-/rollup-linux-riscv64-gnu-4.60.2.tgz",+ "integrity": "sha512-49FkKS6RGQoriDSK/6E2GkAsAuU5kETFCh7pG4yD/ylj9rKhTmO3elsnmBvRD4PgJPds5W2PkhC82aVwmUcJ7A==",+ "cpu": [+ "riscv64"+ ],+ "dev": true,+ "license": "MIT",+ "optional": true,+ "os": [+ "linux"+ ]+ },+ "node_modules/@rollup/rollup-linux-riscv64-musl": {+ "version": "4.60.2",+ "resolved": "https://registry.npmjs.org/@rollup/rollup-linux-riscv64-musl/-/rollup-linux-riscv64-musl-4.60.2.tgz",+ "integrity": "sha512-mjYNkHPfGpUR00DuM1ZZIgs64Hpf4bWcz9Z41+4Q+pgDx73UwWdAYyf6EG/lRFldmdHHzgrYyge5akFUW0D3mQ==",+ "cpu": [+ "riscv64"+ ],+ "dev": true,+ "license": "MIT",+ "optional": true,+ "os": [+ "linux"+ ]+ },+ "node_modules/@rollup/rollup-linux-s390x-gnu": {+ "version": "4.60.2",+ "resolved": "https://registry.npmjs.org/@rollup/rollup-linux-s390x-gnu/-/rollup-linux-s390x-gnu-4.60.2.tgz",+ "integrity": "sha512-ALyvJz965BQk8E9Al/JDKKDLH2kfKFLTGMlgkAbbYtZuJt9LU8DW3ZoDMCtQpXAltZxwBHevXz5u+gf0yA0YoA==",+ "cpu": [+ "s390x"+ ],+ "dev": true,+ "license": "MIT",+ "optional": true,+ "os": [+ "linux"+ ]+ },+ "node_modules/@rollup/rollup-linux-x64-gnu": {+ "version": "4.60.2",+ "resolved": "https://registry.npmjs.org/@rollup/rollup-linux-x64-gnu/-/rollup-linux-x64-gnu-4.60.2.tgz",+ "integrity": "sha512-UQjrkIdWrKI626Du8lCQ6MJp/6V1LAo2bOK9OTu4mSn8GGXIkPXk/Vsp4bLHCd9Z9Iz2OTEaokUE90VweJgIYQ==",+ "cpu": [+ "x64"+ ],+ "dev": true,+ "license": "MIT",+ "optional": true,+ "os": [+ "linux"+ ]+ },+ "node_modules/@rollup/rollup-linux-x64-musl": {+ "version": "4.60.2",+ "resolved": "https://registry.npmjs.org/@rollup/rollup-linux-x64-musl/-/rollup-linux-x64-musl-4.60.2.tgz",+ "integrity": "sha512-bTsRGj6VlSdn/XD4CGyzMnzaBs9bsRxy79eTqTCBsA8TMIEky7qg48aPkvJvFe1HyzQ5oMZdg7AnVlWQSKLTnw==",+ "cpu": [+ "x64"+ ],+ "dev": true,+ "license": "MIT",+ "optional": true,+ "os": [+ "linux"+ ]+ },+ "node_modules/@rollup/rollup-openbsd-x64": {+ "version": "4.60.2",+ "resolved": "https://registry.npmjs.org/@rollup/rollup-openbsd-x64/-/rollup-openbsd-x64-4.60.2.tgz",+ "integrity": "sha512-6d4Z3534xitaA1FcMWP7mQPq5zGwBmGbhphh2DwaA1aNIXUu3KTOfwrWpbwI4/Gr0uANo7NTtaykFyO2hPuFLg==",+ "cpu": [+ "x64"+ ],+ "dev": true,+ "license": "MIT",+ "optional": true,+ "os": [+ "openbsd"+ ]+ },+ "node_modules/@rollup/rollup-openharmony-arm64": {+ "version": "4.60.2",+ "resolved": "https://registry.npmjs.org/@rollup/rollup-openharmony-arm64/-/rollup-openharmony-arm64-4.60.2.tgz",+ "integrity": "sha512-NetAg5iO2uN7eB8zE5qrZ3CSil+7IJt4WDFLcC75Ymywq1VZVD6qJ6EvNLjZ3rEm6gB7XW5JdT60c6MN35Z85Q==",+ "cpu": [+ "arm64"+ ],+ "dev": true,+ "license": "MIT",+ "optional": true,+ "os": [+ "openharmony"+ ]+ },+ "node_modules/@rollup/rollup-win32-arm64-msvc": {+ "version": "4.60.2",+ "resolved": "https://registry.npmjs.org/@rollup/rollup-win32-arm64-msvc/-/rollup-win32-arm64-msvc-4.60.2.tgz",+ "integrity": "sha512-NCYhOotpgWZ5kdxCZsv6Iudx0wX8980Q/oW4pNFNihpBKsDbEA1zpkfxJGC0yugsUuyDZ7gL37dbzwhR0VI7pQ==",+ "cpu": [+ "arm64"+ ],+ "dev": true,+ "license": "MIT",+ "optional": true,+ "os": [+ "win32"+ ]+ },+ "node_modules/@rollup/rollup-win32-ia32-msvc": {+ "version": "4.60.2",+ "resolved": "https://registry.npmjs.org/@rollup/rollup-win32-ia32-msvc/-/rollup-win32-ia32-msvc-4.60.2.tgz",+ "integrity": "sha512-RXsaOqXxfoUBQoOgvmmijVxJnW2IGB0eoMO7F8FAjaj0UTywUO/luSqimWBJn04WNgUkeNhh7fs7pESXajWmkg==",+ "cpu": [+ "ia32"+ ],+ "dev": true,+ "license": "MIT",+ "optional": true,+ "os": [+ "win32"+ ]+ },+ "node_modules/@rollup/rollup-win32-x64-gnu": {+ "version": "4.60.2",+ "resolved": "https://registry.npmjs.org/@rollup/rollup-win32-x64-gnu/-/rollup-win32-x64-gnu-4.60.2.tgz",+ "integrity": "sha512-qdAzEULD+/hzObedtmV6iBpdL5TIbKVztGiK7O3/KYSf+HIzU257+MX1EXJcyIiDbMAqmbwaufcYPvyRryeZtA==",+ "cpu": [+ "x64"+ ],+ "dev": true,+ "license": "MIT",+ "optional": true,+ "os": [+ "win32"+ ]+ },+ "node_modules/@rollup/rollup-win32-x64-msvc": {+ "version": "4.60.2",+ "resolved": "https://registry.npmjs.org/@rollup/rollup-win32-x64-msvc/-/rollup-win32-x64-msvc-4.60.2.tgz",+ "integrity": "sha512-Nd/SgG27WoA9e+/TdK74KnHz852TLa94ovOYySo/yMPuTmpckK/jIF2jSwS3g7ELSKXK13/cVdmg1Z/DaCWKxA==",+ "cpu": [+ "x64"+ ],+ "dev": true,+ "license": "MIT",+ "optional": true,+ "os": [+ "win32"+ ]+ },+ "node_modules/@sparkjsdev/spark": {+ "version": "2.0.0",+ "resolved": "https://registry.npmjs.org/@sparkjsdev/spark/-/spark-2.0.0.tgz",+ "integrity": "sha512-W1p7NM4xXcUAVVcVus2mIFwcAC3VckyE0l4wXJuSmhcOgb6hHpqhQ/Ks9MK9ts7j23K+UwbCBwe+aTc/zgGygw==",+ "license": "MIT",+ "dependencies": {+ "fflate": "^0.8.2"+ },+ "peerDependencies": {+ "three": "^0.180.0"+ }+ },+ "node_modules/@stitches/react": {+ "version": "1.2.8",+ "resolved": "https://registry.npmjs.org/@stitches/react/-/react-1.2.8.tgz",+ "integrity": "sha512-9g9dWI4gsSVe8bNLlb+lMkBYsnIKCZTmvqvDG+Avnn69XfmHZKiaMrx7cgTaddq7aTPPmXiTsbFcUy0xgI4+wA==",+ "license": "MIT",+ "peerDependencies": {+ "react": ">= 16.3.0"+ }+ },+ "node_modules/@tweenjs/tween.js": {+ "version": "23.1.3",+ "resolved": "https://registry.npmjs.org/@tweenjs/tween.js/-/tween.js-23.1.3.tgz",+ "integrity": "sha512-vJmvvwFxYuGnF2axRtPYocag6Clbb5YS7kLL+SO/TeVFzHqDIWrNKYtcsPMibjDx9O+bu+psAy9NKfWklassUA==",+ "license": "MIT"+ },+ "node_modules/@types/babel__core": {+ "version": "7.20.5",+ "resolved": "https://registry.npmjs.org/@types/babel__core/-/babel__core-7.20.5.tgz",+ "integrity": "sha512-qoQprZvz5wQFJwMDqeseRXWv3rqMvhgpbXFfVyWhbx9X47POIA6i/+dXefEmZKoAgOaTdaIgNSMqMIU61yRyzA==",+ "dev": true,+ "license": "MIT",+ "dependencies": {+ "@babel/parser": "^7.20.7",+ "@babel/types": "^7.20.7",+ "@types/babel__generator": "*",+ "@types/babel__template": "*",+ "@types/babel__traverse": "*"+ }+ },+ "node_modules/@types/babel__generator": {+ "version": "7.27.0",+ "resolved": "https://registry.npmjs.org/@types/babel__generator/-/babel__generator-7.27.0.tgz",+ "integrity": "sha512-ufFd2Xi92OAVPYsy+P4n7/U7e68fex0+Ee8gSG9KX7eo084CWiQ4sdxktvdl0bOPupXtVJPY19zk6EwWqUQ8lg==",+ "dev": true,+ "license": "MIT",+ "dependencies": {+ "@babel/types": "^7.0.0"+ }+ },+ "node_modules/@types/babel__template": {+ "version": "7.4.4",+ "resolved": "https://registry.npmjs.org/@types/babel__template/-/babel__template-7.4.4.tgz",+ "integrity": "sha512-h/NUaSyG5EyxBIp8YRxo4RMe2/qQgvyowRwVMzhYhBCONbW8PUsg4lkFMrhgZhUe5z3L3MiLDuvyJ/CaPa2A8A==",+ "dev": true,+ "license": "MIT",+ "dependencies": {+ "@babel/parser": "^7.1.0",+ "@babel/types": "^7.0.0"+ }+ },+ "node_modules/@types/babel__traverse": {+ "version": "7.28.0",+ "resolved": "https://registry.npmjs.org/@types/babel__traverse/-/babel__traverse-7.28.0.tgz",+ "integrity": "sha512-8PvcXf70gTDZBgt9ptxJ8elBeBjcLOAcOtoO/mPJjtji1+CdGbHgm77om1GrsPxsiE+uXIpNSK64UYaIwQXd4Q==",+ "dev": true,+ "license": "MIT",+ "dependencies": {+ "@babel/types": "^7.28.2"+ }+ },+ "node_modules/@types/draco3d": {+ "version": "1.4.10",+ "resolved": "https://registry.npmjs.org/@types/draco3d/-/draco3d-1.4.10.tgz",+ "integrity": "sha512-AX22jp8Y7wwaBgAixaSvkoG4M/+PlAcm3Qs4OW8yT9DM4xUpWKeFhLueTAyZF39pviAdcDdeJoACapiAceqNcw==",+ "license": "MIT"+ },+ "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==",+ "dev": true,+ "license": "MIT"+ },+ "node_modules/@types/offscreencanvas": {+ "version": "2019.7.3",+ "resolved": "https://registry.npmjs.org/@types/offscreencanvas/-/offscreencanvas-2019.7.3.tgz",+ "integrity": "sha512-ieXiYmgSRXUDeOntE1InxjWyvEelZGP63M+cGuquuRLuIKKT1osnkXjxev9B7d1nXSug5vpunx+gNlbVxMlC9A==",+ "license": "MIT"+ },+ "node_modules/@types/react": {+ "version": "19.2.14",+ "resolved": "https://registry.npmjs.org/@types/react/-/react-19.2.14.tgz",+ "integrity": "sha512-ilcTH/UniCkMdtexkoCN0bI7pMcJDvmQFPvuPvmEaYA/NSfFTAgdUSLAoVjaRJm7+6PvcM+q1zYOwS4wTYMF9w==",+ "license": "MIT",+ "peer": true,+ "dependencies": {+ "csstype": "^3.2.2"+ }+ },+ "node_modules/@types/react-dom": {+ "version": "19.2.3",+ "resolved": "https://registry.npmjs.org/@types/react-dom/-/react-dom-19.2.3.tgz",+ "integrity": "sha512-jp2L/eY6fn+KgVVQAOqYItbF0VY/YApe5Mz2F0aykSO8gx31bYCZyvSeYxCHKvzHG5eZjc+zyaS5BrBWya2+kQ==",+ "dev": true,+ "license": "MIT",+ "peerDependencies": {+ "@types/react": "^19.2.0"+ }+ },+ "node_modules/@types/react-reconciler": {+ "version": "0.28.9",+ "resolved": "https://registry.npmjs.org/@types/react-reconciler/-/react-reconciler-0.28.9.tgz",+ "integrity": "sha512-HHM3nxyUZ3zAylX8ZEyrDNd2XZOnQ0D5XfunJF5FLQnZbHHYq4UWvW1QfelQNXv1ICNkwYhfxjwfnqivYB6bFg==",+ "license": "MIT",+ "peerDependencies": {+ "@types/react": "*"+ }+ },+ "node_modules/@types/stats.js": {+ "version": "0.17.4",+ "resolved": "https://registry.npmjs.org/@types/stats.js/-/stats.js-0.17.4.tgz",+ "integrity": "sha512-jIBvWWShCvlBqBNIZt0KAshWpvSjhkwkEu4ZUcASoAvhmrgAUI2t1dXrjSL4xXVLB4FznPrIsX3nKXFl/Dt4vA==",+ "license": "MIT"+ },+ "node_modules/@types/three": {+ "version": "0.180.0",+ "resolved": "https://registry.npmjs.org/@types/three/-/three-0.180.0.tgz",+ "integrity": "sha512-ykFtgCqNnY0IPvDro7h+9ZeLY+qjgUWv+qEvUt84grhenO60Hqd4hScHE7VTB9nOQ/3QM8lkbNE+4vKjEpUxKg==",+ "license": "MIT",+ "peer": true,+ "dependencies": {+ "@dimforge/rapier3d-compat": "~0.12.0",+ "@tweenjs/tween.js": "~23.1.3",+ "@types/stats.js": "*",+ "@types/webxr": "*",+ "@webgpu/types": "*",+ "fflate": "~0.8.2",+ "meshoptimizer": "~0.22.0"+ }+ },+ "node_modules/@types/three/node_modules/@dimforge/rapier3d-compat": {+ "version": "0.12.0",+ "resolved": "https://registry.npmjs.org/@dimforge/rapier3d-compat/-/rapier3d-compat-0.12.0.tgz",+ "integrity": "sha512-uekIGetywIgopfD97oDL5PfeezkFpNhwlzlaEYNOA0N6ghdsOvh/HYjSMek5Q2O1PYvRSDFcqFVJl4r4ZBwOow==",+ "license": "Apache-2.0"+ },+ "node_modules/@types/webxr": {+ "version": "0.5.24",+ "resolved": "https://registry.npmjs.org/@types/webxr/-/webxr-0.5.24.tgz",+ "integrity": "sha512-h8fgEd/DpoS9CBrjEQXR+dIDraopAEfu4wYVNY2tEPwk60stPWhvZMf4Foo5FakuQ7HFZoa8WceaWFervK2Ovg==",+ "license": "MIT"+ },+ "node_modules/@use-gesture/core": {+ "version": "10.3.1",+ "resolved": "https://registry.npmjs.org/@use-gesture/core/-/core-10.3.1.tgz",+ "integrity": "sha512-WcINiDt8WjqBdUXye25anHiNxPc0VOrlT8F6LLkU6cycrOGUDyY/yyFmsg3k8i5OLvv25llc0QC45GhR/C8llw==",+ "license": "MIT"+ },+ "node_modules/@use-gesture/react": {+ "version": "10.3.1",+ "resolved": "https://registry.npmjs.org/@use-gesture/react/-/react-10.3.1.tgz",+ "integrity": "sha512-Yy19y6O2GJq8f7CHf7L0nxL8bf4PZCPaVOCgJrusOeFHY1LvHgYXnmnXg6N5iwAnbgbZCDjo60SiM6IPJi9C5g==",+ "license": "MIT",+ "dependencies": {+ "@use-gesture/core": "10.3.1"+ },+ "peerDependencies": {+ "react": ">= 16.8.0"+ }+ },+ "node_modules/@vitejs/plugin-react": {+ "version": "4.7.0",+ "resolved": "https://registry.npmjs.org/@vitejs/plugin-react/-/plugin-react-4.7.0.tgz",+ "integrity": "sha512-gUu9hwfWvvEDBBmgtAowQCojwZmJ5mcLn3aufeCsitijs3+f2NsrPtlAWIR6OPiqljl96GVCUbLe0HyqIpVaoA==",+ "dev": true,+ "license": "MIT",+ "dependencies": {+ "@babel/core": "^7.28.0",+ "@babel/plugin-transform-react-jsx-self": "^7.27.1",+ "@babel/plugin-transform-react-jsx-source": "^7.27.1",+ "@rolldown/pluginutils": "1.0.0-beta.27",+ "@types/babel__core": "^7.20.5",+ "react-refresh": "^0.17.0"+ },+ "engines": {+ "node": "^14.18.0 || >=16.0.0"+ },+ "peerDependencies": {+ "vite": "^4.2.0 || ^5.0.0 || ^6.0.0 || ^7.0.0"+ }+ },+ "node_modules/@vitest/expect": {+ "version": "2.1.9",+ "resolved": "https://registry.npmjs.org/@vitest/expect/-/expect-2.1.9.tgz",+ "integrity": "sha512-UJCIkTBenHeKT1TTlKMJWy1laZewsRIzYighyYiJKZreqtdxSos/S1t+ktRMQWu2CKqaarrkeszJx1cgC5tGZw==",+ "dev": true,+ "license": "MIT",+ "dependencies": {+ "@vitest/spy": "2.1.9",+ "@vitest/utils": "2.1.9",+ "chai": "^5.1.2",+ "tinyrainbow": "^1.2.0"+ },+ "funding": {+ "url": "https://opencollective.com/vitest"+ }+ },+ "node_modules/@vitest/mocker": {+ "version": "2.1.9",+ "resolved": "https://registry.npmjs.org/@vitest/mocker/-/mocker-2.1.9.tgz",+ "integrity": "sha512-tVL6uJgoUdi6icpxmdrn5YNo3g3Dxv+IHJBr0GXHaEdTcw3F+cPKnsXFhli6nO+f/6SDKPHEK1UN+k+TQv0Ehg==",+ "dev": true,+ "license": "MIT",+ "dependencies": {+ "@vitest/spy": "2.1.9",+ "estree-walker": "^3.0.3",+ "magic-string": "^0.30.12"+ },+ "funding": {+ "url": "https://opencollective.com/vitest"+ },+ "peerDependencies": {+ "msw": "^2.4.9",+ "vite": "^5.0.0"+ },+ "peerDependenciesMeta": {+ "msw": {+ "optional": true+ },+ "vite": {+ "optional": true+ }+ }+ },+ "node_modules/@vitest/pretty-format": {+ "version": "2.1.9",+ "resolved": "https://registry.npmjs.org/@vitest/pretty-format/-/pretty-format-2.1.9.tgz",+ "integrity": "sha512-KhRIdGV2U9HOUzxfiHmY8IFHTdqtOhIzCpd8WRdJiE7D/HUcZVD0EgQCVjm+Q9gkUXWgBvMmTtZgIG48wq7sOQ==",+ "dev": true,+ "license": "MIT",+ "dependencies": {+ "tinyrainbow": "^1.2.0"+ },+ "funding": {+ "url": "https://opencollective.com/vitest"+ }+ },+ "node_modules/@vitest/runner": {+ "version": "2.1.9",+ "resolved": "https://registry.npmjs.org/@vitest/runner/-/runner-2.1.9.tgz",+ "integrity": "sha512-ZXSSqTFIrzduD63btIfEyOmNcBmQvgOVsPNPe0jYtESiXkhd8u2erDLnMxmGrDCwHCCHE7hxwRDCT3pt0esT4g==",+ "dev": true,+ "license": "MIT",+ "dependencies": {+ "@vitest/utils": "2.1.9",+ "pathe": "^1.1.2"+ },+ "funding": {+ "url": "https://opencollective.com/vitest"+ }+ },+ "node_modules/@vitest/snapshot": {+ "version": "2.1.9",+ "resolved": "https://registry.npmjs.org/@vitest/snapshot/-/snapshot-2.1.9.tgz",+ "integrity": "sha512-oBO82rEjsxLNJincVhLhaxxZdEtV0EFHMK5Kmx5sJ6H9L183dHECjiefOAdnqpIgT5eZwT04PoggUnW88vOBNQ==",+ "dev": true,+ "license": "MIT",+ "dependencies": {+ "@vitest/pretty-format": "2.1.9",+ "magic-string": "^0.30.12",+ "pathe": "^1.1.2"+ },+ "funding": {+ "url": "https://opencollective.com/vitest"+ }+ },+ "node_modules/@vitest/spy": {+ "version": "2.1.9",+ "resolved": "https://registry.npmjs.org/@vitest/spy/-/spy-2.1.9.tgz",+ "integrity": "sha512-E1B35FwzXXTs9FHNK6bDszs7mtydNi5MIfUWpceJ8Xbfb1gBMscAnwLbEu+B44ed6W3XjL9/ehLPHR1fkf1KLQ==",+ "dev": true,+ "license": "MIT",+ "dependencies": {+ "tinyspy": "^3.0.2"+ },+ "funding": {+ "url": "https://opencollective.com/vitest"+ }+ },+ "node_modules/@vitest/utils": {+ "version": "2.1.9",+ "resolved": "https://registry.npmjs.org/@vitest/utils/-/utils-2.1.9.tgz",+ "integrity": "sha512-v0psaMSkNJ3A2NMrUEHFRzJtDPFn+/VWZ5WxImB21T9fjucJRmS7xCS3ppEnARb9y11OAzaD+P2Ps+b+BGX5iQ==",+ "dev": true,+ "license": "MIT",+ "dependencies": {+ "@vitest/pretty-format": "2.1.9",+ "loupe": "^3.1.2",+ "tinyrainbow": "^1.2.0"+ },+ "funding": {+ "url": "https://opencollective.com/vitest"+ }+ },+ "node_modules/@webgpu/types": {+ "version": "0.1.69",+ "resolved": "https://registry.npmjs.org/@webgpu/types/-/types-0.1.69.tgz",+ "integrity": "sha512-RPmm6kgRbI8e98zSD3RVACvnuktIja5+yLgDAkTmxLr90BEwdTXRQWNLF3ETTTyH/8mKhznZuN5AveXYFEsMGQ==",+ "license": "BSD-3-Clause"+ },+ "node_modules/any-promise": {+ "version": "1.3.0",+ "resolved": "https://registry.npmjs.org/any-promise/-/any-promise-1.3.0.tgz",+ "integrity": "sha512-7UvmKalWRt1wgjL1RrGxoSJW/0QZFIegpeGvZG9kjp8vrRu55XTHbwnqq2GpXm9uLbcuhxm3IqX9OB4MZR1b2A==",+ "dev": true,+ "license": "MIT"+ },+ "node_modules/anymatch": {+ "version": "3.1.3",+ "resolved": "https://registry.npmjs.org/anymatch/-/anymatch-3.1.3.tgz",+ "integrity": "sha512-KMReFUr0B4t+D+OBkjR3KYqvocp2XaSzO55UcB6mgQMd3KbcE+mWTyvVV7D/zsdEbNnV6acZUutkiHQXvTr1Rw==",+ "dev": true,+ "license": "ISC",+ "dependencies": {+ "normalize-path": "^3.0.0",+ "picomatch": "^2.0.4"+ },+ "engines": {+ "node": ">= 8"+ }+ },+ "node_modules/arg": {+ "version": "5.0.2",+ "resolved": "https://registry.npmjs.org/arg/-/arg-5.0.2.tgz",+ "integrity": "sha512-PYjyFOLKQ9y57JvQ6QLo8dAgNqswh8M1RMJYdQduT6xbWSgK36P/Z/v+p888pM69jMMfS8Xd8F6I1kQ/I9HUGg==",+ "dev": true,+ "license": "MIT"+ },+ "node_modules/assertion-error": {+ "version": "2.0.1",+ "resolved": "https://registry.npmjs.org/assertion-error/-/assertion-error-2.0.1.tgz",+ "integrity": "sha512-Izi8RQcffqCeNVgFigKli1ssklIbpHnCYc6AknXGYoB6grJqyeby7jv12JUQgmTAnIDnbck1uxksT4dzN3PWBA==",+ "dev": true,+ "license": "MIT",+ "engines": {+ "node": ">=12"+ }+ },+ "node_modules/assign-symbols": {+ "version": "1.0.0",+ "resolved": "https://registry.npmjs.org/assign-symbols/-/assign-symbols-1.0.0.tgz",+ "integrity": "sha512-Q+JC7Whu8HhmTdBph/Tq59IoRtoy6KAm5zzPv00WdujX82lbAL8K7WVjne7vdCsAmbF4AYaDOPyO3k0kl8qIrw==",+ "license": "MIT",+ "engines": {+ "node": ">=0.10.0"+ }+ },+ "node_modules/attr-accept": {+ "version": "2.2.5",+ "resolved": "https://registry.npmjs.org/attr-accept/-/attr-accept-2.2.5.tgz",+ "integrity": "sha512-0bDNnY/u6pPwHDMoF0FieU354oBi0a8rD9FcsLwzcGWbc8KS8KPIi7y+s13OlVY+gMWc/9xEMUgNE6Qm8ZllYQ==",+ "license": "MIT",+ "engines": {+ "node": ">=4"+ }+ },+ "node_modules/autoprefixer": {+ "version": "10.5.0",+ "resolved": "https://registry.npmjs.org/autoprefixer/-/autoprefixer-10.5.0.tgz",+ "integrity": "sha512-FMhOoZV4+qR6aTUALKX2rEqGG+oyATvwBt9IIzVR5rMa2HRWPkxf+P+PAJLD1I/H5/II+HuZcBJYEFBpq39ong==",+ "dev": true,+ "funding": [+ {+ "type": "opencollective",+ "url": "https://opencollective.com/postcss/"+ },+ {+ "type": "tidelift",+ "url": "https://tidelift.com/funding/github/npm/autoprefixer"+ },+ {+ "type": "github",+ "url": "https://github.com/sponsors/ai"+ }+ ],+ "license": "MIT",+ "dependencies": {+ "browserslist": "^4.28.2",+ "caniuse-lite": "^1.0.30001787",+ "fraction.js": "^5.3.4",+ "picocolors": "^1.1.1",+ "postcss-value-parser": "^4.2.0"+ },+ "bin": {+ "autoprefixer": "bin/autoprefixer"+ },+ "engines": {+ "node": "^10 || ^12 || >=14"+ },+ "peerDependencies": {+ "postcss": "^8.1.0"+ }+ },+ "node_modules/base64-js": {+ "version": "1.5.1",+ "resolved": "https://registry.npmjs.org/base64-js/-/base64-js-1.5.1.tgz",+ "integrity": "sha512-AKpaYlHn8t4SVbOHCy+b5+KKgvR4vrsD8vbvrbiQJps7fKDTkjkDry6ji0rUJjC0kzbNePLwzxq8iypo41qeWA==",+ "funding": [+ {+ "type": "github",+ "url": "https://github.com/sponsors/feross"+ },+ {+ "type": "patreon",+ "url": "https://www.patreon.com/feross"+ },+ {+ "type": "consulting",+ "url": "https://feross.org/support"+ }+ ],+ "license": "MIT"+ },+ "node_modules/baseline-browser-mapping": {+ "version": "2.10.20",+ "resolved": "https://registry.npmjs.org/baseline-browser-mapping/-/baseline-browser-mapping-2.10.20.tgz",+ "integrity": "sha512-1AaXxEPfXT+GvTBJFuy4yXVHWJBXa4OdbIebGN/wX5DlsIkU0+wzGnd2lOzokSk51d5LUmqjgBLRLlypLUqInQ==",+ "dev": true,+ "license": "Apache-2.0",+ "bin": {+ "baseline-browser-mapping": "dist/cli.cjs"+ },+ "engines": {+ "node": ">=6.0.0"+ }+ },+ "node_modules/bidi-js": {+ "version": "1.0.3",+ "resolved": "https://registry.npmjs.org/bidi-js/-/bidi-js-1.0.3.tgz",+ "integrity": "sha512-RKshQI1R3YQ+n9YJz2QQ147P66ELpa1FQEg20Dk8oW9t2KgLbpDLLp9aGZ7y8WHSshDknG0bknqGw5/tyCs5tw==",+ "license": "MIT",+ "dependencies": {+ "require-from-string": "^2.0.2"+ }+ },+ "node_modules/binary-extensions": {+ "version": "2.3.0",+ "resolved": "https://registry.npmjs.org/binary-extensions/-/binary-extensions-2.3.0.tgz",+ "integrity": "sha512-Ceh+7ox5qe7LJuLHoY0feh3pHuUDHAcRUeyL2VYghZwfpkNIy/+8Ocg0a3UuSoYzavmylwuLWQOf3hl0jjMMIw==",+ "dev": true,+ "license": "MIT",+ "engines": {+ "node": ">=8"+ },+ "funding": {+ "url": "https://github.com/sponsors/sindresorhus"+ }+ },+ "node_modules/braces": {+ "version": "3.0.3",+ "resolved": "https://registry.npmjs.org/braces/-/braces-3.0.3.tgz",+ "integrity": "sha512-yQbXgO/OSZVD2IsiLlro+7Hf6Q18EJrKSEsdoMzKePKXct3gvD8oLcOQdIzGupr5Fj+EDe8gO/lxc1BzfMpxvA==",+ "dev": true,+ "license": "MIT",+ "dependencies": {+ "fill-range": "^7.1.1"+ },+ "engines": {+ "node": ">=8"+ }+ },+ "node_modules/browserslist": {+ "version": "4.28.2",+ "resolved": "https://registry.npmjs.org/browserslist/-/browserslist-4.28.2.tgz",+ "integrity": "sha512-48xSriZYYg+8qXna9kwqjIVzuQxi+KYWp2+5nCYnYKPTr0LvD89Jqk2Or5ogxz0NUMfIjhh2lIUX/LyX9B4oIg==",+ "dev": true,+ "funding": [+ {+ "type": "opencollective",+ "url": "https://opencollective.com/browserslist"+ },+ {+ "type": "tidelift",+ "url": "https://tidelift.com/funding/github/npm/browserslist"+ },+ {+ "type": "github",+ "url": "https://github.com/sponsors/ai"+ }+ ],+ "license": "MIT",+ "peer": true,+ "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": {+ "version": "6.0.3",+ "resolved": "https://registry.npmjs.org/buffer/-/buffer-6.0.3.tgz",+ "integrity": "sha512-FTiCpNxtwiZZHEZbcbTIcZjERVICn9yq/pDFkTl95/AxzD1naBctN7YO68riM/gLSDY7sdrMby8hofADYuuqOA==",+ "funding": [+ {+ "type": "github",+ "url": "https://github.com/sponsors/feross"+ },+ {+ "type": "patreon",+ "url": "https://www.patreon.com/feross"+ },+ {+ "type": "consulting",+ "url": "https://feross.org/support"+ }+ ],+ "license": "MIT",+ "dependencies": {+ "base64-js": "^1.3.1",+ "ieee754": "^1.2.1"+ }+ },+ "node_modules/cac": {+ "version": "6.7.14",+ "resolved": "https://registry.npmjs.org/cac/-/cac-6.7.14.tgz",+ "integrity": "sha512-b6Ilus+c3RrdDk+JhLKUAQfzzgLEPy6wcXqS7f/xe1EETvsDP6GORG7SFuOs6cID5YkqchW/LXZbX5bc8j7ZcQ==",+ "dev": true,+ "license": "MIT",+ "engines": {+ "node": ">=8"+ }+ },+ "node_modules/camelcase-css": {+ "version": "2.0.1",+ "resolved": "https://registry.npmjs.org/camelcase-css/-/camelcase-css-2.0.1.tgz",+ "integrity": "sha512-QOSvevhslijgYwRx6Rv7zKdMF8lbRmx+uQGx2+vDc+KI/eBnsy9kit5aj23AgGu3pa4t9AgwbnXWqS+iOY+2aA==",+ "dev": true,+ "license": "MIT",+ "engines": {+ "node": ">= 6"+ }+ },+ "node_modules/camera-controls": {+ "version": "3.1.2",+ "resolved": "https://registry.npmjs.org/camera-controls/-/camera-controls-3.1.2.tgz",+ "integrity": "sha512-xkxfpG2ECZ6Ww5/9+kf4mfg1VEYAoe9aDSY+IwF0UEs7qEzwy0aVRfs2grImIECs/PoBtWFrh7RXsQkwG922JA==",+ "license": "MIT",+ "engines": {+ "node": ">=22.0.0",+ "npm": ">=10.5.1"+ },+ "peerDependencies": {+ "three": ">=0.126.1"+ }+ },+ "node_modules/caniuse-lite": {+ "version": "1.0.30001788",+ "resolved": "https://registry.npmjs.org/caniuse-lite/-/caniuse-lite-1.0.30001788.tgz",+ "integrity": "sha512-6q8HFp+lOQtcf7wBK+uEenxymVWkGKkjFpCvw5W25cmMwEDU45p1xQFBQv8JDlMMry7eNxyBaR+qxgmTUZkIRQ==",+ "dev": true,+ "funding": [+ {+ "type": "opencollective",+ "url": "https://opencollective.com/browserslist"+ },+ {+ "type": "tidelift",+ "url": "https://tidelift.com/funding/github/npm/caniuse-lite"+ },+ {+ "type": "github",+ "url": "https://github.com/sponsors/ai"+ }+ ],+ "license": "CC-BY-4.0"+ },+ "node_modules/chai": {+ "version": "5.3.3",+ "resolved": "https://registry.npmjs.org/chai/-/chai-5.3.3.tgz",+ "integrity": "sha512-4zNhdJD/iOjSH0A05ea+Ke6MU5mmpQcbQsSOkgdaUMJ9zTlDTD/GYlwohmIE2u0gaxHYiVHEn1Fw9mZ/ktJWgw==",+ "dev": true,+ "license": "MIT",+ "dependencies": {+ "assertion-error": "^2.0.1",+ "check-error": "^2.1.1",+ "deep-eql": "^5.0.1",+ "loupe": "^3.1.0",+ "pathval": "^2.0.0"+ },+ "engines": {+ "node": ">=18"+ }+ },+ "node_modules/check-error": {+ "version": "2.1.3",+ "resolved": "https://registry.npmjs.org/check-error/-/check-error-2.1.3.tgz",+ "integrity": "sha512-PAJdDJusoxnwm1VwW07VWwUN1sl7smmC3OKggvndJFadxxDRyFJBX/ggnu/KE4kQAB7a3Dp8f/YXC1FlUprWmA==",+ "dev": true,+ "license": "MIT",+ "engines": {+ "node": ">= 16"+ }+ },+ "node_modules/chokidar": {+ "version": "3.6.0",+ "resolved": "https://registry.npmjs.org/chokidar/-/chokidar-3.6.0.tgz",+ "integrity": "sha512-7VT13fmjotKpGipCW9JEQAusEPE+Ei8nl6/g4FBAmIm0GOOLMua9NDDo/DWp0ZAxCr3cPq5ZpBqmPAQgDda2Pw==",+ "dev": true,+ "license": "MIT",+ "dependencies": {+ "anymatch": "~3.1.2",+ "braces": "~3.0.2",+ "glob-parent": "~5.1.2",+ "is-binary-path": "~2.1.0",+ "is-glob": "~4.0.1",+ "normalize-path": "~3.0.0",+ "readdirp": "~3.6.0"+ },+ "engines": {+ "node": ">= 8.10.0"+ },+ "funding": {+ "url": "https://paulmillr.com/funding/"+ },+ "optionalDependencies": {+ "fsevents": "~2.3.2"+ }+ },+ "node_modules/chokidar/node_modules/glob-parent": {+ "version": "5.1.2",+ "resolved": "https://registry.npmjs.org/glob-parent/-/glob-parent-5.1.2.tgz",+ "integrity": "sha512-AOIgSQCepiJYwP3ARnGx+5VnTu2HBYdzbGP45eLw1vr3zB3vZLeyed1sC9hnbcOc9/SrMyM5RPQrkGz4aS9Zow==",+ "dev": true,+ "license": "ISC",+ "dependencies": {+ "is-glob": "^4.0.1"+ },+ "engines": {+ "node": ">= 6"+ }+ },+ "node_modules/colord": {+ "version": "2.9.3",+ "resolved": "https://registry.npmjs.org/colord/-/colord-2.9.3.tgz",+ "integrity": "sha512-jeC1axXpnb0/2nn/Y1LPuLdgXBLH7aDcHu4KEKfqw3CUhX7ZpfBSlPKyqXE6btIgEzfWtrX3/tyBCaCvXvMkOw==",+ "license": "MIT"+ },+ "node_modules/commander": {+ "version": "4.1.1",+ "resolved": "https://registry.npmjs.org/commander/-/commander-4.1.1.tgz",+ "integrity": "sha512-NOKm8xhkzAjzFx8B2v5OAHT+u5pRQc2UCa2Vq9jYL/31o2wi9mxBA7LIFs3sV5VSC49z6pEhfbMULvShKj26WA==",+ "dev": true,+ "license": "MIT",+ "engines": {+ "node": ">= 6"+ }+ },+ "node_modules/convert-source-map": {+ "version": "2.0.0",+ "resolved": "https://registry.npmjs.org/convert-source-map/-/convert-source-map-2.0.0.tgz",+ "integrity": "sha512-Kvp459HrV2FEJ1CAsi1Ku+MY3kasH19TFykTz2xWmMeq6bk2NU3XXvfJ+Q61m0xktWwt+1HSYf3JZsTms3aRJg==",+ "dev": true,+ "license": "MIT"+ },+ "node_modules/cross-env": {+ "version": "7.0.3",+ "resolved": "https://registry.npmjs.org/cross-env/-/cross-env-7.0.3.tgz",+ "integrity": "sha512-+/HKd6EgcQCJGh2PSjZuUitQBQynKor4wrFbRg4DtAgS1aWO+gU52xpH7M9ScGgXSYmAVS9bIJ8EzuaGw0oNAw==",+ "license": "MIT",+ "dependencies": {+ "cross-spawn": "^7.0.1"+ },+ "bin": {+ "cross-env": "src/bin/cross-env.js",+ "cross-env-shell": "src/bin/cross-env-shell.js"+ },+ "engines": {+ "node": ">=10.14",+ "npm": ">=6",+ "yarn": ">=1"+ }+ },+ "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/cssesc": {+ "version": "3.0.0",+ "resolved": "https://registry.npmjs.org/cssesc/-/cssesc-3.0.0.tgz",+ "integrity": "sha512-/Tb/JcjK111nNScGob5MNtsntNM1aCNUDipB/TkwZFhyDrrE47SOx/18wF2bbjgc3ZzCSKW1T5nt5EbFoAz/Vg==",+ "dev": true,+ "license": "MIT",+ "bin": {+ "cssesc": "bin/cssesc"+ },+ "engines": {+ "node": ">=4"+ }+ },+ "node_modules/csstype": {+ "version": "3.2.3",+ "resolved": "https://registry.npmjs.org/csstype/-/csstype-3.2.3.tgz",+ "integrity": "sha512-z1HGKcYy2xA8AGQfwrn0PAy+PB7X/GSj3UVJW9qKyn43xWa+gl5nXmU4qqLMRzWVLFC8KusUX8T/0kCiOYpAIQ==",+ "license": "MIT"+ },+ "node_modules/debug": {+ "version": "4.4.3",+ "resolved": "https://registry.npmjs.org/debug/-/debug-4.4.3.tgz",+ "integrity": "sha512-RGwwWnwQvkVfavKVt22FGLw+xYSdzARwm0ru6DhTVA3umU5hZc28V3kO4stgYryrTlLpuvgI9GiijltAjNbcqA==",+ "dev": true,+ "license": "MIT",+ "dependencies": {+ "ms": "^2.1.3"+ },+ "engines": {+ "node": ">=6.0"+ },+ "peerDependenciesMeta": {+ "supports-color": {+ "optional": true+ }+ }+ },+ "node_modules/deep-eql": {+ "version": "5.0.2",+ "resolved": "https://registry.npmjs.org/deep-eql/-/deep-eql-5.0.2.tgz",+ "integrity": "sha512-h5k/5U50IJJFpzfL6nO9jaaumfjO/f2NjK/oYB2Djzm4p9L+3T9qWpZqZ2hAbLPuuYq9wrU08WQyBTL5GbPk5Q==",+ "dev": true,+ "license": "MIT",+ "engines": {+ "node": ">=6"+ }+ },+ "node_modules/dequal": {+ "version": "2.0.3",+ "resolved": "https://registry.npmjs.org/dequal/-/dequal-2.0.3.tgz",+ "integrity": "sha512-0je+qPKHEMohvfRTCEo3CrPG6cAzAYgmzKyxRiYSSDkS6eGJdyVJm7WaYA5ECaAD9wLB2T4EEeymA5aFVcYXCA==",+ "license": "MIT",+ "engines": {+ "node": ">=6"+ }+ },+ "node_modules/detect-gpu": {+ "version": "5.0.70",+ "resolved": "https://registry.npmjs.org/detect-gpu/-/detect-gpu-5.0.70.tgz",+ "integrity": "sha512-bqerEP1Ese6nt3rFkwPnGbsUF9a4q+gMmpTVVOEzoCyeCc+y7/RvJnQZJx1JwhgQI5Ntg0Kgat8Uu7XpBqnz1w==",+ "license": "MIT",+ "dependencies": {+ "webgl-constants": "^1.1.1"+ }+ },+ "node_modules/didyoumean": {+ "version": "1.2.2",+ "resolved": "https://registry.npmjs.org/didyoumean/-/didyoumean-1.2.2.tgz",+ "integrity": "sha512-gxtyfqMg7GKyhQmb056K7M3xszy/myH8w+B4RT+QXBQsvAOdc3XymqDDPHx1BgPgsdAA5SIifona89YtRATDzw==",+ "dev": true,+ "license": "Apache-2.0"+ },+ "node_modules/dlv": {+ "version": "1.1.3",+ "resolved": "https://registry.npmjs.org/dlv/-/dlv-1.1.3.tgz",+ "integrity": "sha512-+HlytyjlPKnIG8XuRG8WvmBP8xs8P71y+SKKS6ZXWoEgLuePxtDoUEiH7WkdePWrQ5JBpE6aoVqfZfJUQkjXwA==",+ "dev": true,+ "license": "MIT"+ },+ "node_modules/draco3d": {+ "version": "1.5.7",+ "resolved": "https://registry.npmjs.org/draco3d/-/draco3d-1.5.7.tgz",+ "integrity": "sha512-m6WCKt/erDXcw+70IJXnG7M3awwQPAsZvJGX5zY7beBqpELw6RDGkYVU0W43AFxye4pDZ5i2Lbyc/NNGqwjUVQ==",+ "license": "Apache-2.0"+ },+ "node_modules/electron-to-chromium": {+ "version": "1.5.340",+ "resolved": "https://registry.npmjs.org/electron-to-chromium/-/electron-to-chromium-1.5.340.tgz",+ "integrity": "sha512-908qahOGocRMinT2nM3ajCEM99H4iPdv84eagPP3FfZy/1ZGeOy2CZYzjhms81ckOPCXPlW7LkY4XpxD8r1DrA==",+ "dev": true,+ "license": "ISC"+ },+ "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==",+ "dev": true,+ "license": "MIT",+ "engines": {+ "node": ">= 0.4"+ }+ },+ "node_modules/es-module-lexer": {+ "version": "1.7.0",+ "resolved": "https://registry.npmjs.org/es-module-lexer/-/es-module-lexer-1.7.0.tgz",+ "integrity": "sha512-jEQoCwk8hyb2AZziIOLhDqpm5+2ww5uIE6lkO/6jcOCusfk6LhMHpXXfBLXTZ7Ydyt0j4VoUQv6uGNYbdW+kBA==",+ "dev": true,+ "license": "MIT"+ },+ "node_modules/esbuild": {+ "version": "0.21.5",+ "resolved": "https://registry.npmjs.org/esbuild/-/esbuild-0.21.5.tgz",+ "integrity": "sha512-mg3OPMV4hXywwpoDxu3Qda5xCKQi+vCTZq8S9J/EpkhB2HzKXq4SNFZE3+NK93JYxc8VMSep+lOUSC/RVKaBqw==",+ "dev": true,+ "hasInstallScript": true,+ "license": "MIT",+ "bin": {+ "esbuild": "bin/esbuild"+ },+ "engines": {+ "node": ">=12"+ },+ "optionalDependencies": {+ "@esbuild/aix-ppc64": "0.21.5",+ "@esbuild/android-arm": "0.21.5",+ "@esbuild/android-arm64": "0.21.5",+ "@esbuild/android-x64": "0.21.5",+ "@esbuild/darwin-arm64": "0.21.5",+ "@esbuild/darwin-x64": "0.21.5",+ "@esbuild/freebsd-arm64": "0.21.5",+ "@esbuild/freebsd-x64": "0.21.5",+ "@esbuild/linux-arm": "0.21.5",+ "@esbuild/linux-arm64": "0.21.5",+ "@esbuild/linux-ia32": "0.21.5",+ "@esbuild/linux-loong64": "0.21.5",+ "@esbuild/linux-mips64el": "0.21.5",+ "@esbuild/linux-ppc64": "0.21.5",+ "@esbuild/linux-riscv64": "0.21.5",+ "@esbuild/linux-s390x": "0.21.5",+ "@esbuild/linux-x64": "0.21.5",+ "@esbuild/netbsd-x64": "0.21.5",+ "@esbuild/openbsd-x64": "0.21.5",+ "@esbuild/sunos-x64": "0.21.5",+ "@esbuild/win32-arm64": "0.21.5",+ "@esbuild/win32-ia32": "0.21.5",+ "@esbuild/win32-x64": "0.21.5"+ }+ },+ "node_modules/escalade": {+ "version": "3.2.0",+ "resolved": "https://registry.npmjs.org/escalade/-/escalade-3.2.0.tgz",+ "integrity": "sha512-WUj2qlxaQtO4g6Pq5c29GTcWGDyd8itL8zTlipgECz3JesAiiOKotd8JU6otB3PACgG6xkJUyVhboMS+bje/jA==",+ "dev": true,+ "license": "MIT",+ "engines": {+ "node": ">=6"+ }+ },+ "node_modules/estree-walker": {+ "version": "3.0.3",+ "resolved": "https://registry.npmjs.org/estree-walker/-/estree-walker-3.0.3.tgz",+ "integrity": "sha512-7RUKfXgSMMkzt6ZuXmqapOurLGPPfgj6l9uRZ7lRGolvk0y2yocc35LdcxKC5PQZdn2DMqioAQ2NoWcrTKmm6g==",+ "dev": true,+ "license": "MIT",+ "dependencies": {+ "@types/estree": "^1.0.0"+ }+ },+ "node_modules/expect-type": {+ "version": "1.3.0",+ "resolved": "https://registry.npmjs.org/expect-type/-/expect-type-1.3.0.tgz",+ "integrity": "sha512-knvyeauYhqjOYvQ66MznSMs83wmHrCycNEN6Ao+2AeYEfxUIkuiVxdEa1qlGEPK+We3n0THiDciYSsCcgW/DoA==",+ "dev": true,+ "license": "Apache-2.0",+ "engines": {+ "node": ">=12.0.0"+ }+ },+ "node_modules/extend-shallow": {+ "version": "2.0.1",+ "resolved": "https://registry.npmjs.org/extend-shallow/-/extend-shallow-2.0.1.tgz",+ "integrity": "sha512-zCnTtlxNoAiDc3gqY2aYAWFx7XWWiasuF2K8Me5WbN8otHKTUKBwjPtNpRs/rbUZm7KxWAaNj7P1a/p52GbVug==",+ "license": "MIT",+ "dependencies": {+ "is-extendable": "^0.1.0"+ },+ "engines": {+ "node": ">=0.10.0"+ }+ },+ "node_modules/extend-shallow/node_modules/is-extendable": {+ "version": "0.1.1",+ "resolved": "https://registry.npmjs.org/is-extendable/-/is-extendable-0.1.1.tgz",+ "integrity": "sha512-5BMULNob1vgFX6EjQw5izWDxrecWK9AM72rugNr0TFldMOi0fj6Jk+zeKIt0xGj4cEfQIJth4w3OKWOJ4f+AFw==",+ "license": "MIT",+ "engines": {+ "node": ">=0.10.0"+ }+ },+ "node_modules/fast-glob": {+ "version": "3.3.3",+ "resolved": "https://registry.npmjs.org/fast-glob/-/fast-glob-3.3.3.tgz",+ "integrity": "sha512-7MptL8U0cqcFdzIzwOTHoilX9x5BrNqye7Z/LuC7kCMRio1EMSyqRK3BEAUD7sXRq4iT4AzTVuZdhgQ2TCvYLg==",+ "dev": true,+ "license": "MIT",+ "dependencies": {+ "@nodelib/fs.stat": "^2.0.2",+ "@nodelib/fs.walk": "^1.2.3",+ "glob-parent": "^5.1.2",+ "merge2": "^1.3.0",+ "micromatch": "^4.0.8"+ },+ "engines": {+ "node": ">=8.6.0"+ }+ },+ "node_modules/fast-glob/node_modules/glob-parent": {+ "version": "5.1.2",+ "resolved": "https://registry.npmjs.org/glob-parent/-/glob-parent-5.1.2.tgz",+ "integrity": "sha512-AOIgSQCepiJYwP3ARnGx+5VnTu2HBYdzbGP45eLw1vr3zB3vZLeyed1sC9hnbcOc9/SrMyM5RPQrkGz4aS9Zow==",+ "dev": true,+ "license": "ISC",+ "dependencies": {+ "is-glob": "^4.0.1"+ },+ "engines": {+ "node": ">= 6"+ }+ },+ "node_modules/fastq": {+ "version": "1.20.1",+ "resolved": "https://registry.npmjs.org/fastq/-/fastq-1.20.1.tgz",+ "integrity": "sha512-GGToxJ/w1x32s/D2EKND7kTil4n8OVk/9mycTc4VDza13lOvpUZTGX3mFSCtV9ksdGBVzvsyAVLM6mHFThxXxw==",+ "dev": true,+ "license": "ISC",+ "dependencies": {+ "reusify": "^1.0.4"+ }+ },+ "node_modules/fflate": {+ "version": "0.8.2",+ "resolved": "https://registry.npmjs.org/fflate/-/fflate-0.8.2.tgz",+ "integrity": "sha512-cPJU47OaAoCbg0pBvzsgpTPhmhqI5eJjh/JIu8tPj5q+T7iLvW/JAYUqmE7KOB4R1ZyEhzBaIQpQpardBF5z8A==",+ "license": "MIT"+ },+ "node_modules/file-selector": {+ "version": "0.5.0",+ "resolved": "https://registry.npmjs.org/file-selector/-/file-selector-0.5.0.tgz",+ "integrity": "sha512-s8KNnmIDTBoD0p9uJ9uD0XY38SCeBOtj0UMXyQSLg1Ypfrfj8+dAvwsLjYQkQ2GjhVtp2HrnF5cJzMhBjfD8HA==",+ "license": "MIT",+ "dependencies": {+ "tslib": "^2.0.3"+ },+ "engines": {+ "node": ">= 10"+ }+ },+ "node_modules/fill-range": {+ "version": "7.1.1",+ "resolved": "https://registry.npmjs.org/fill-range/-/fill-range-7.1.1.tgz",+ "integrity": "sha512-YsGpe3WHLK8ZYi4tWDg2Jy3ebRz2rXowDxnld4bkQB00cc/1Zw9AWnC0i9ztDJitivtQvaI9KaLyKrc+hBW0yg==",+ "dev": true,+ "license": "MIT",+ "dependencies": {+ "to-regex-range": "^5.0.1"+ },+ "engines": {+ "node": ">=8"+ }+ },+ "node_modules/for-in": {+ "version": "1.0.2",+ "resolved": "https://registry.npmjs.org/for-in/-/for-in-1.0.2.tgz",+ "integrity": "sha512-7EwmXrOjyL+ChxMhmG5lnW9MPt1aIeZEwKhQzoBUdTV0N3zuwWDZYVJatDvZ2OyzPUvdIAZDsCetk3coyMfcnQ==",+ "license": "MIT",+ "engines": {+ "node": ">=0.10.0"+ }+ },+ "node_modules/fraction.js": {+ "version": "5.3.4",+ "resolved": "https://registry.npmjs.org/fraction.js/-/fraction.js-5.3.4.tgz",+ "integrity": "sha512-1X1NTtiJphryn/uLQz3whtY6jK3fTqoE3ohKs0tT+Ujr1W59oopxmoEh7Lu5p6vBaPbgoM0bzveAW4Qi5RyWDQ==",+ "dev": true,+ "license": "MIT",+ "engines": {+ "node": "*"+ },+ "funding": {+ "type": "github",+ "url": "https://github.com/sponsors/rawify"+ }+ },+ "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==",+ "dev": true,+ "license": "MIT",+ "funding": {+ "url": "https://github.com/sponsors/ljharb"+ }+ },+ "node_modules/gensync": {+ "version": "1.0.0-beta.2",+ "resolved": "https://registry.npmjs.org/gensync/-/gensync-1.0.0-beta.2.tgz",+ "integrity": "sha512-3hN7NaskYvMDLQY55gnW3NQ+mesEAepTqlg+VEbj7zzqEMBVNhzcGYYeqFo/TlYz6eQiFcp1HcsCZO+nGgS8zg==",+ "dev": true,+ "license": "MIT",+ "engines": {+ "node": ">=6.9.0"+ }+ },+ "node_modules/get-value": {+ "version": "2.0.6",+ "resolved": "https://registry.npmjs.org/get-value/-/get-value-2.0.6.tgz",+ "integrity": "sha512-Ln0UQDlxH1BapMu3GPtf7CuYNwRZf2gwCuPqbyG6pB8WfmFpzqcy4xtAaAMUhnNqjMKTiCPZG2oMT3YSx8U2NA==",+ "license": "MIT",+ "engines": {+ "node": ">=0.10.0"+ }+ },+ "node_modules/glob-parent": {+ "version": "6.0.2",+ "resolved": "https://registry.npmjs.org/glob-parent/-/glob-parent-6.0.2.tgz",+ "integrity": "sha512-XxwI8EOhVQgWp6iDL+3b0r86f4d6AX6zSU55HfB4ydCEuXLXc5FcYeOu+nnGftS4TEju/11rt4KJPTMgbfmv4A==",+ "dev": true,+ "license": "ISC",+ "dependencies": {+ "is-glob": "^4.0.3"+ },+ "engines": {+ "node": ">=10.13.0"+ }+ },+ "node_modules/glsl-noise": {+ "version": "0.0.0",+ "resolved": "https://registry.npmjs.org/glsl-noise/-/glsl-noise-0.0.0.tgz",+ "integrity": "sha512-b/ZCF6amfAUb7dJM/MxRs7AetQEahYzJ8PtgfrmEdtw6uyGOr+ZSGtgjFm6mfsBkxJ4d2W7kg+Nlqzqvn3Bc0w==",+ "license": "MIT"+ },+ "node_modules/hasown": {+ "version": "2.0.3",+ "resolved": "https://registry.npmjs.org/hasown/-/hasown-2.0.3.tgz",+ "integrity": "sha512-ej4AhfhfL2Q2zpMmLo7U1Uv9+PyhIZpgQLGT1F9miIGmiCJIoCgSmczFdrc97mWT4kVY72KA+WnnhJ5pghSvSg==",+ "dev": true,+ "license": "MIT",+ "dependencies": {+ "function-bind": "^1.1.2"+ },+ "engines": {+ "node": ">= 0.4"+ }+ },+ "node_modules/hls.js": {+ "version": "1.6.16",+ "resolved": "https://registry.npmjs.org/hls.js/-/hls.js-1.6.16.tgz",+ "integrity": "sha512-VSIRpLfRwlAAdGL4wiTucx2ScRipo0ed1FBatWkyt832jC4CReKstga6yIhYVwGu9LOBjuX9wzmRMeQdBJtzEA==",+ "license": "Apache-2.0"+ },+ "node_modules/ieee754": {+ "version": "1.2.1",+ "resolved": "https://registry.npmjs.org/ieee754/-/ieee754-1.2.1.tgz",+ "integrity": "sha512-dcyqhDvX1C46lXZcVqCpK+FtMRQVdIMN6/Df5js2zouUsqG7I6sFxitIC+7KYK29KdXOLHdu9zL4sFnoVQnqaA==",+ "funding": [+ {+ "type": "github",+ "url": "https://github.com/sponsors/feross"+ },+ {+ "type": "patreon",+ "url": "https://www.patreon.com/feross"+ },+ {+ "type": "consulting",+ "url": "https://feross.org/support"+ }+ ],+ "license": "BSD-3-Clause"+ },+ "node_modules/immediate": {+ "version": "3.0.6",+ "resolved": "https://registry.npmjs.org/immediate/-/immediate-3.0.6.tgz",+ "integrity": "sha512-XXOFtyqDjNDAQxVfYxuF7g9Il/IbWmmlQg2MYKOH8ExIT1qg6xc4zyS3HaEEATgs1btfzxq15ciUiY7gjSXRGQ==",+ "license": "MIT"+ },+ "node_modules/is-binary-path": {+ "version": "2.1.0",+ "resolved": "https://registry.npmjs.org/is-binary-path/-/is-binary-path-2.1.0.tgz",+ "integrity": "sha512-ZMERYes6pDydyuGidse7OsHxtbI7WVeUEozgR/g7rd0xUimYNlvZRE/K2MgZTjWy725IfelLeVcEM97mmtRGXw==",+ "dev": true,+ "license": "MIT",+ "dependencies": {+ "binary-extensions": "^2.0.0"+ },+ "engines": {+ "node": ">=8"+ }+ },+ "node_modules/is-core-module": {+ "version": "2.16.1",+ "resolved": "https://registry.npmjs.org/is-core-module/-/is-core-module-2.16.1.tgz",+ "integrity": "sha512-UfoeMA6fIJ8wTYFEUjelnaGI67v6+N7qXJEvQuIGa99l4xsCruSYOVSQ0uPANn4dAzm8lkYPaKLrrijLq7x23w==",+ "dev": true,+ "license": "MIT",+ "dependencies": {+ "hasown": "^2.0.2"+ },+ "engines": {+ "node": ">= 0.4"+ },+ "funding": {+ "url": "https://github.com/sponsors/ljharb"+ }+ },+ "node_modules/is-extendable": {+ "version": "1.0.1",+ "resolved": "https://registry.npmjs.org/is-extendable/-/is-extendable-1.0.1.tgz",+ "integrity": "sha512-arnXMxT1hhoKo9k1LZdmlNyJdDDfy2v0fXjFlmok4+i8ul/6WlbVge9bhM74OpNPQPMGUToDtz+KXa1PneJxOA==",+ "license": "MIT",+ "dependencies": {+ "is-plain-object": "^2.0.4"+ },+ "engines": {+ "node": ">=0.10.0"+ }+ },+ "node_modules/is-extglob": {+ "version": "2.1.1",+ "resolved": "https://registry.npmjs.org/is-extglob/-/is-extglob-2.1.1.tgz",+ "integrity": "sha512-SbKbANkN603Vi4jEZv49LeVJMn4yGwsbzZworEoyEiutsN3nJYdbO36zfhGJ6QEDpOZIFkDtnq5JRxmvl3jsoQ==",+ "dev": true,+ "license": "MIT",+ "engines": {+ "node": ">=0.10.0"+ }+ },+ "node_modules/is-glob": {+ "version": "4.0.3",+ "resolved": "https://registry.npmjs.org/is-glob/-/is-glob-4.0.3.tgz",+ "integrity": "sha512-xelSayHH36ZgE7ZWhli7pW34hNbNl8Ojv5KVmkJD4hBdD3th8Tfk9vYasLM+mXWOZhFkgZfxhLSnrwRr4elSSg==",+ "dev": true,+ "license": "MIT",+ "dependencies": {+ "is-extglob": "^2.1.1"+ },+ "engines": {+ "node": ">=0.10.0"+ }+ },+ "node_modules/is-number": {+ "version": "7.0.0",+ "resolved": "https://registry.npmjs.org/is-number/-/is-number-7.0.0.tgz",+ "integrity": "sha512-41Cifkg6e8TylSpdtTpeLVMqvSBEVzTttHvERD741+pnZ8ANv0004MRL43QKPDlK9cGvNp6NZWZUBlbGXYxxng==",+ "dev": true,+ "license": "MIT",+ "engines": {+ "node": ">=0.12.0"+ }+ },+ "node_modules/is-plain-object": {+ "version": "2.0.4",+ "resolved": "https://registry.npmjs.org/is-plain-object/-/is-plain-object-2.0.4.tgz",+ "integrity": "sha512-h5PpgXkWitc38BBMYawTYMWJHFZJVnBquFE57xFpjB8pJFiF6gZ+bU+WyI/yqXiFR5mdLsgYNaPe8uao6Uv9Og==",+ "license": "MIT",+ "dependencies": {+ "isobject": "^3.0.1"+ },+ "engines": {+ "node": ">=0.10.0"+ }+ },+ "node_modules/is-promise": {+ "version": "2.2.2",+ "resolved": "https://registry.npmjs.org/is-promise/-/is-promise-2.2.2.tgz",+ "integrity": "sha512-+lP4/6lKUBfQjZ2pdxThZvLUAafmZb8OAxFb8XXtiQmS35INgr85hdOGoEs124ez1FCnZJt6jau/T+alh58QFQ==",+ "license": "MIT"+ },+ "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/isobject": {+ "version": "3.0.1",+ "resolved": "https://registry.npmjs.org/isobject/-/isobject-3.0.1.tgz",+ "integrity": "sha512-WhB9zCku7EGTj/HQQRz5aUQEUeoQZH2bWcltRErOpymJ4boYE6wL9Tbr23krRPSZ+C5zqNSrSw+Cc7sZZ4b7vg==",+ "license": "MIT",+ "engines": {+ "node": ">=0.10.0"+ }+ },+ "node_modules/its-fine": {+ "version": "2.0.0",+ "resolved": "https://registry.npmjs.org/its-fine/-/its-fine-2.0.0.tgz",+ "integrity": "sha512-KLViCmWx94zOvpLwSlsx6yOCeMhZYaxrJV87Po5k/FoZzcPSahvK5qJ7fYhS61sZi5ikmh2S3Hz55A2l3U69ng==",+ "license": "MIT",+ "dependencies": {+ "@types/react-reconciler": "^0.28.9"+ },+ "peerDependencies": {+ "react": "^19.0.0"+ }+ },+ "node_modules/jiti": {+ "version": "1.21.7",+ "resolved": "https://registry.npmjs.org/jiti/-/jiti-1.21.7.tgz",+ "integrity": "sha512-/imKNG4EbWNrVjoNC/1H5/9GFy+tqjGBHCaSsN+P2RnPqjsLmv6UD3Ej+Kj8nBWaRAwyk7kK5ZUc+OEatnTR3A==",+ "dev": true,+ "license": "MIT",+ "peer": true,+ "bin": {+ "jiti": "bin/jiti.js"+ }+ },+ "node_modules/js-tokens": {+ "version": "4.0.0",+ "resolved": "https://registry.npmjs.org/js-tokens/-/js-tokens-4.0.0.tgz",+ "integrity": "sha512-RdJUflcE3cUzKiMqQgsCu06FPu9UdIJO0beYbPhHN4k6apgJtifcoCtT9bcxOpYBtpD2kCM6Sbzg4CausW/PKQ==",+ "license": "MIT"+ },+ "node_modules/jsesc": {+ "version": "3.1.0",+ "resolved": "https://registry.npmjs.org/jsesc/-/jsesc-3.1.0.tgz",+ "integrity": "sha512-/sM3dO2FOzXjKQhJuo0Q173wf2KOo8t4I8vHy6lF9poUp7bKT0/NHE8fPX23PwfhnykfqnC2xRxOnVw5XuGIaA==",+ "dev": true,+ "license": "MIT",+ "bin": {+ "jsesc": "bin/jsesc"+ },+ "engines": {+ "node": ">=6"+ }+ },+ "node_modules/json5": {+ "version": "2.2.3",+ "resolved": "https://registry.npmjs.org/json5/-/json5-2.2.3.tgz",+ "integrity": "sha512-XmOWe7eyHYH14cLdVPoyg+GOH3rYX++KpzrylJwSW98t3Nk+U8XOl8FWKOgwtzdb8lXGf6zYwDUzeHMWfxasyg==",+ "dev": true,+ "license": "MIT",+ "bin": {+ "json5": "lib/cli.js"+ },+ "engines": {+ "node": ">=6"+ }+ },+ "node_modules/leva": {+ "version": "0.9.36",+ "resolved": "https://registry.npmjs.org/leva/-/leva-0.9.36.tgz",+ "integrity": "sha512-mzzxZzpPdN1bugl6LXCLgK5PS4rU1NdRX7CWnXjVelK49OP8bdoMHhDDweo/uWIk4UHgwpO1sj9CD5Dai+Pvrg==",+ "license": "MIT",+ "dependencies": {+ "@radix-ui/react-portal": "1.0.2",+ "@radix-ui/react-tooltip": "1.0.5",+ "@stitches/react": "^1.2.8",+ "@use-gesture/react": "^10.2.5",+ "colord": "^2.9.2",+ "dequal": "^2.0.2",+ "merge-value": "^1.0.0",+ "react-colorful": "^5.5.1",+ "react-dropzone": "^12.0.0",+ "v8n": "^1.3.3",+ "zustand": "^3.6.9"+ },+ "peerDependencies": {+ "react": ">=16.8.0",+ "react-dom": ">=16.8.0"+ }+ },+ "node_modules/leva/node_modules/@radix-ui/react-portal": {+ "version": "1.0.2",+ "resolved": "https://registry.npmjs.org/@radix-ui/react-portal/-/react-portal-1.0.2.tgz",+ "integrity": "sha512-swu32idoCW7KA2VEiUZGBSu9nB6qwGdV6k6HYhUoOo3M1FFpD+VgLzUqtt3mwL1ssz7r2x8MggpLSQach2Xy/Q==",+ "license": "MIT",+ "dependencies": {+ "@babel/runtime": "^7.13.10",+ "@radix-ui/react-primitive": "1.0.2"+ },+ "peerDependencies": {+ "react": "^16.8 || ^17.0 || ^18.0",+ "react-dom": "^16.8 || ^17.0 || ^18.0"+ }+ },+ "node_modules/leva/node_modules/@radix-ui/react-portal/node_modules/@radix-ui/react-primitive": {+ "version": "1.0.2",+ "resolved": "https://registry.npmjs.org/@radix-ui/react-primitive/-/react-primitive-1.0.2.tgz",+ "integrity": "sha512-zY6G5Qq4R8diFPNwtyoLRZBxzu1Z+SXMlfYpChN7Dv8gvmx9X3qhDqiLWvKseKVJMuedFeU/Sa0Sy/Ia+t06Dw==",+ "license": "MIT",+ "dependencies": {+ "@babel/runtime": "^7.13.10",+ "@radix-ui/react-slot": "1.0.1"+ },+ "peerDependencies": {+ "react": "^16.8 || ^17.0 || ^18.0",+ "react-dom": "^16.8 || ^17.0 || ^18.0"+ }+ },+ "node_modules/leva/node_modules/@radix-ui/react-portal/node_modules/@radix-ui/react-primitive/node_modules/@radix-ui/react-slot": {+ "version": "1.0.1",+ "resolved": "https://registry.npmjs.org/@radix-ui/react-slot/-/react-slot-1.0.1.tgz",+ "integrity": "sha512-avutXAFL1ehGvAXtPquu0YK5oz6ctS474iM3vNGQIkswrVhdrS52e3uoMQBzZhNRAIE0jBnUyXWNmSjGHhCFcw==",+ "license": "MIT",+ "dependencies": {+ "@babel/runtime": "^7.13.10",+ "@radix-ui/react-compose-refs": "1.0.0"+ },+ "peerDependencies": {+ "react": "^16.8 || ^17.0 || ^18.0"+ }+ },+ "node_modules/leva/node_modules/@radix-ui/react-portal/node_modules/@radix-ui/react-primitive/node_modules/@radix-ui/react-slot/node_modules/@radix-ui/react-compose-refs": {+ "version": "1.0.0",+ "resolved": "https://registry.npmjs.org/@radix-ui/react-compose-refs/-/react-compose-refs-1.0.0.tgz",+ "integrity": "sha512-0KaSv6sx787/hK3eF53iOkiSLwAGlFMx5lotrqD2pTjB18KbybKoEIgkNZTKC60YECDQTKGTRcDBILwZVqVKvA==",+ "license": "MIT",+ "dependencies": {+ "@babel/runtime": "^7.13.10"+ },+ "peerDependencies": {+ "react": "^16.8 || ^17.0 || ^18.0"+ }+ },+ "node_modules/leva/node_modules/@radix-ui/react-tooltip": {+ "version": "1.0.5",+ "resolved": "https://registry.npmjs.org/@radix-ui/react-tooltip/-/react-tooltip-1.0.5.tgz",+ "integrity": "sha512-cDKVcfzyO6PpckZekODJZDe5ZxZ2fCZlzKzTmPhe4mX9qTHRfLcKgqb0OKf22xLwDequ2tVleim+ZYx3rabD5w==",+ "license": "MIT",+ "dependencies": {+ "@babel/runtime": "^7.13.10",+ "@radix-ui/primitive": "1.0.0",+ "@radix-ui/react-compose-refs": "1.0.0",+ "@radix-ui/react-context": "1.0.0",+ "@radix-ui/react-dismissable-layer": "1.0.3",+ "@radix-ui/react-id": "1.0.0",+ "@radix-ui/react-popper": "1.1.1",+ "@radix-ui/react-portal": "1.0.2",+ "@radix-ui/react-presence": "1.0.0",+ "@radix-ui/react-primitive": "1.0.2",+ "@radix-ui/react-slot": "1.0.1",+ "@radix-ui/react-use-controllable-state": "1.0.0",+ "@radix-ui/react-visually-hidden": "1.0.2"+ },+ "peerDependencies": {+ "react": "^16.8 || ^17.0 || ^18.0",+ "react-dom": "^16.8 || ^17.0 || ^18.0"+ }+ },+ "node_modules/leva/node_modules/@radix-ui/react-tooltip/node_modules/@radix-ui/react-compose-refs": {+ "version": "1.0.0",+ "resolved": "https://registry.npmjs.org/@radix-ui/react-compose-refs/-/react-compose-refs-1.0.0.tgz",+ "integrity": "sha512-0KaSv6sx787/hK3eF53iOkiSLwAGlFMx5lotrqD2pTjB18KbybKoEIgkNZTKC60YECDQTKGTRcDBILwZVqVKvA==",+ "license": "MIT",+ "dependencies": {+ "@babel/runtime": "^7.13.10"+ },+ "peerDependencies": {+ "react": "^16.8 || ^17.0 || ^18.0"+ }+ },+ "node_modules/leva/node_modules/@radix-ui/react-tooltip/node_modules/@radix-ui/react-context": {+ "version": "1.0.0",+ "resolved": "https://registry.npmjs.org/@radix-ui/react-context/-/react-context-1.0.0.tgz",+ "integrity": "sha512-1pVM9RfOQ+n/N5PJK33kRSKsr1glNxomxONs5c49MliinBY6Yw2Q995qfBUUo0/Mbg05B/sGA0gkgPI7kmSHBg==",+ "license": "MIT",+ "dependencies": {+ "@babel/runtime": "^7.13.10"+ },+ "peerDependencies": {+ "react": "^16.8 || ^17.0 || ^18.0"+ }+ },+ "node_modules/leva/node_modules/@radix-ui/react-tooltip/node_modules/@radix-ui/react-dismissable-layer": {+ "version": "1.0.3",+ "resolved": "https://registry.npmjs.org/@radix-ui/react-dismissable-layer/-/react-dismissable-layer-1.0.3.tgz",+ "integrity": "sha512-nXZOvFjOuHS1ovumntGV7NNoLaEp9JEvTht3MBjP44NSW5hUKj/8OnfN3+8WmB+CEhN44XaGhpHoSsUIEl5P7Q==",+ "license": "MIT",+ "dependencies": {+ "@babel/runtime": "^7.13.10",+ "@radix-ui/primitive": "1.0.0",+ "@radix-ui/react-compose-refs": "1.0.0",+ "@radix-ui/react-primitive": "1.0.2",+ "@radix-ui/react-use-callback-ref": "1.0.0",+ "@radix-ui/react-use-escape-keydown": "1.0.2"+ },+ "peerDependencies": {+ "react": "^16.8 || ^17.0 || ^18.0",+ "react-dom": "^16.8 || ^17.0 || ^18.0"+ }+ },+ "node_modules/leva/node_modules/@radix-ui/react-tooltip/node_modules/@radix-ui/react-dismissable-layer/node_modules/@radix-ui/react-use-callback-ref": {+ "version": "1.0.0",+ "resolved": "https://registry.npmjs.org/@radix-ui/react-use-callback-ref/-/react-use-callback-ref-1.0.0.tgz",+ "integrity": "sha512-GZtyzoHz95Rhs6S63D2t/eqvdFCm7I+yHMLVQheKM7nBD8mbZIt+ct1jz4536MDnaOGKIxynJ8eHTkVGVVkoTg==",+ "license": "MIT",+ "dependencies": {+ "@babel/runtime": "^7.13.10"+ },+ "peerDependencies": {+ "react": "^16.8 || ^17.0 || ^18.0"+ }+ },+ "node_modules/leva/node_modules/@radix-ui/react-tooltip/node_modules/@radix-ui/react-dismissable-layer/node_modules/@radix-ui/react-use-escape-keydown": {+ "version": "1.0.2",+ "resolved": "https://registry.npmjs.org/@radix-ui/react-use-escape-keydown/-/react-use-escape-keydown-1.0.2.tgz",+ "integrity": "sha512-DXGim3x74WgUv+iMNCF+cAo8xUHHeqvjx8zs7trKf+FkQKPQXLk2sX7Gx1ysH7Q76xCpZuxIJE7HLPxRE+Q+GA==",+ "license": "MIT",+ "dependencies": {+ "@babel/runtime": "^7.13.10",+ "@radix-ui/react-use-callback-ref": "1.0.0"+ },+ "peerDependencies": {+ "react": "^16.8 || ^17.0 || ^18.0"+ }+ },+ "node_modules/leva/node_modules/@radix-ui/react-tooltip/node_modules/@radix-ui/react-id": {+ "version": "1.0.0",+ "resolved": "https://registry.npmjs.org/@radix-ui/react-id/-/react-id-1.0.0.tgz",+ "integrity": "sha512-Q6iAB/U7Tq3NTolBBQbHTgclPmGWE3OlktGGqrClPozSw4vkQ1DfQAOtzgRPecKsMdJINE05iaoDUG8tRzCBjw==",+ "license": "MIT",+ "dependencies": {+ "@babel/runtime": "^7.13.10",+ "@radix-ui/react-use-layout-effect": "1.0.0"+ },+ "peerDependencies": {+ "react": "^16.8 || ^17.0 || ^18.0"+ }+ },+ "node_modules/leva/node_modules/@radix-ui/react-tooltip/node_modules/@radix-ui/react-id/node_modules/@radix-ui/react-use-layout-effect": {+ "version": "1.0.0",+ "resolved": "https://registry.npmjs.org/@radix-ui/react-use-layout-effect/-/react-use-layout-effect-1.0.0.tgz",+ "integrity": "sha512-6Tpkq+R6LOlmQb1R5NNETLG0B4YP0wc+klfXafpUCj6JGyaUc8il7/kUZ7m59rGbXGczE9Bs+iz2qloqsZBduQ==",+ "license": "MIT",+ "dependencies": {+ "@babel/runtime": "^7.13.10"+ },+ "peerDependencies": {+ "react": "^16.8 || ^17.0 || ^18.0"+ }+ },+ "node_modules/leva/node_modules/@radix-ui/react-tooltip/node_modules/@radix-ui/react-popper": {+ "version": "1.1.1",+ "resolved": "https://registry.npmjs.org/@radix-ui/react-popper/-/react-popper-1.1.1.tgz",+ "integrity": "sha512-keYDcdMPNMjSC8zTsZ8wezUMiWM9Yj14wtF3s0PTIs9srnEPC9Kt2Gny1T3T81mmSeyDjZxsD9N5WCwNNb712w==",+ "license": "MIT",+ "dependencies": {+ "@babel/runtime": "^7.13.10",+ "@floating-ui/react-dom": "0.7.2",+ "@radix-ui/react-arrow": "1.0.2",+ "@radix-ui/react-compose-refs": "1.0.0",+ "@radix-ui/react-context": "1.0.0",+ "@radix-ui/react-primitive": "1.0.2",+ "@radix-ui/react-use-callback-ref": "1.0.0",+ "@radix-ui/react-use-layout-effect": "1.0.0",+ "@radix-ui/react-use-rect": "1.0.0",+ "@radix-ui/react-use-size": "1.0.0",+ "@radix-ui/rect": "1.0.0"+ },+ "peerDependencies": {+ "react": "^16.8 || ^17.0 || ^18.0",+ "react-dom": "^16.8 || ^17.0 || ^18.0"+ }+ },+ "node_modules/leva/node_modules/@radix-ui/react-tooltip/node_modules/@radix-ui/react-popper/node_modules/@radix-ui/react-arrow": {+ "version": "1.0.2",+ "resolved": "https://registry.npmjs.org/@radix-ui/react-arrow/-/react-arrow-1.0.2.tgz",+ "integrity": "sha512-fqYwhhI9IarZ0ll2cUSfKuXHlJK0qE4AfnRrPBbRwEH/4mGQn04/QFGomLi8TXWIdv9WJk//KgGm+aDxVIr1wA==",+ "license": "MIT",+ "dependencies": {+ "@babel/runtime": "^7.13.10",+ "@radix-ui/react-primitive": "1.0.2"+ },+ "peerDependencies": {+ "react": "^16.8 || ^17.0 || ^18.0",+ "react-dom": "^16.8 || ^17.0 || ^18.0"+ }+ },+ "node_modules/leva/node_modules/@radix-ui/react-tooltip/node_modules/@radix-ui/react-popper/node_modules/@radix-ui/react-use-callback-ref": {+ "version": "1.0.0",+ "resolved": "https://registry.npmjs.org/@radix-ui/react-use-callback-ref/-/react-use-callback-ref-1.0.0.tgz",+ "integrity": "sha512-GZtyzoHz95Rhs6S63D2t/eqvdFCm7I+yHMLVQheKM7nBD8mbZIt+ct1jz4536MDnaOGKIxynJ8eHTkVGVVkoTg==",+ "license": "MIT",+ "dependencies": {+ "@babel/runtime": "^7.13.10"+ },+ "peerDependencies": {+ "react": "^16.8 || ^17.0 || ^18.0"+ }+ },+ "node_modules/leva/node_modules/@radix-ui/react-tooltip/node_modules/@radix-ui/react-popper/node_modules/@radix-ui/react-use-layout-effect": {+ "version": "1.0.0",+ "resolved": "https://registry.npmjs.org/@radix-ui/react-use-layout-effect/-/react-use-layout-effect-1.0.0.tgz",+ "integrity": "sha512-6Tpkq+R6LOlmQb1R5NNETLG0B4YP0wc+klfXafpUCj6JGyaUc8il7/kUZ7m59rGbXGczE9Bs+iz2qloqsZBduQ==",+ "license": "MIT",+ "dependencies": {+ "@babel/runtime": "^7.13.10"+ },+ "peerDependencies": {+ "react": "^16.8 || ^17.0 || ^18.0"+ }+ },+ "node_modules/leva/node_modules/@radix-ui/react-tooltip/node_modules/@radix-ui/react-popper/node_modules/@radix-ui/react-use-rect": {+ "version": "1.0.0",+ "resolved": "https://registry.npmjs.org/@radix-ui/react-use-rect/-/react-use-rect-1.0.0.tgz",+ "integrity": "sha512-TB7pID8NRMEHxb/qQJpvSt3hQU4sqNPM1VCTjTRjEOa7cEop/QMuq8S6fb/5Tsz64kqSvB9WnwsDHtjnrM9qew==",+ "license": "MIT",+ "dependencies": {+ "@babel/runtime": "^7.13.10",+ "@radix-ui/rect": "1.0.0"+ },+ "peerDependencies": {+ "react": "^16.8 || ^17.0 || ^18.0"+ }+ },+ "node_modules/leva/node_modules/@radix-ui/react-tooltip/node_modules/@radix-ui/react-popper/node_modules/@radix-ui/react-use-size": {+ "version": "1.0.0",+ "resolved": "https://registry.npmjs.org/@radix-ui/react-use-size/-/react-use-size-1.0.0.tgz",+ "integrity": "sha512-imZ3aYcoYCKhhgNpkNDh/aTiU05qw9hX+HHI1QDBTyIlcFjgeFlKKySNGMwTp7nYFLQg/j0VA2FmCY4WPDDHMg==",+ "license": "MIT",+ "dependencies": {+ "@babel/runtime": "^7.13.10",+ "@radix-ui/react-use-layout-effect": "1.0.0"+ },+ "peerDependencies": {+ "react": "^16.8 || ^17.0 || ^18.0"+ }+ },+ "node_modules/leva/node_modules/@radix-ui/react-tooltip/node_modules/@radix-ui/react-presence": {+ "version": "1.0.0",+ "resolved": "https://registry.npmjs.org/@radix-ui/react-presence/-/react-presence-1.0.0.tgz",+ "integrity": "sha512-A+6XEvN01NfVWiKu38ybawfHsBjWum42MRPnEuqPsBZ4eV7e/7K321B5VgYMPv3Xx5An6o1/l9ZuDBgmcmWK3w==",+ "license": "MIT",+ "dependencies": {+ "@babel/runtime": "^7.13.10",+ "@radix-ui/react-compose-refs": "1.0.0",+ "@radix-ui/react-use-layout-effect": "1.0.0"+ },+ "peerDependencies": {+ "react": "^16.8 || ^17.0 || ^18.0",+ "react-dom": "^16.8 || ^17.0 || ^18.0"+ }+ },+ "node_modules/leva/node_modules/@radix-ui/react-tooltip/node_modules/@radix-ui/react-presence/node_modules/@radix-ui/react-use-layout-effect": {+ "version": "1.0.0",+ "resolved": "https://registry.npmjs.org/@radix-ui/react-use-layout-effect/-/react-use-layout-effect-1.0.0.tgz",+ "integrity": "sha512-6Tpkq+R6LOlmQb1R5NNETLG0B4YP0wc+klfXafpUCj6JGyaUc8il7/kUZ7m59rGbXGczE9Bs+iz2qloqsZBduQ==",+ "license": "MIT",+ "dependencies": {+ "@babel/runtime": "^7.13.10"+ },+ "peerDependencies": {+ "react": "^16.8 || ^17.0 || ^18.0"+ }+ },+ "node_modules/leva/node_modules/@radix-ui/react-tooltip/node_modules/@radix-ui/react-primitive": {+ "version": "1.0.2",+ "resolved": "https://registry.npmjs.org/@radix-ui/react-primitive/-/react-primitive-1.0.2.tgz",+ "integrity": "sha512-zY6G5Qq4R8diFPNwtyoLRZBxzu1Z+SXMlfYpChN7Dv8gvmx9X3qhDqiLWvKseKVJMuedFeU/Sa0Sy/Ia+t06Dw==",+ "license": "MIT",+ "dependencies": {+ "@babel/runtime": "^7.13.10",+ "@radix-ui/react-slot": "1.0.1"+ },+ "peerDependencies": {+ "react": "^16.8 || ^17.0 || ^18.0",+ "react-dom": "^16.8 || ^17.0 || ^18.0"+ }+ },+ "node_modules/leva/node_modules/@radix-ui/react-tooltip/node_modules/@radix-ui/react-slot": {+ "version": "1.0.1",+ "resolved": "https://registry.npmjs.org/@radix-ui/react-slot/-/react-slot-1.0.1.tgz",+ "integrity": "sha512-avutXAFL1ehGvAXtPquu0YK5oz6ctS474iM3vNGQIkswrVhdrS52e3uoMQBzZhNRAIE0jBnUyXWNmSjGHhCFcw==",+ "license": "MIT",+ "dependencies": {+ "@babel/runtime": "^7.13.10",+ "@radix-ui/react-compose-refs": "1.0.0"+ },+ "peerDependencies": {+ "react": "^16.8 || ^17.0 || ^18.0"+ }+ },+ "node_modules/leva/node_modules/@radix-ui/react-tooltip/node_modules/@radix-ui/react-use-controllable-state": {+ "version": "1.0.0",+ "resolved": "https://registry.npmjs.org/@radix-ui/react-use-controllable-state/-/react-use-controllable-state-1.0.0.tgz",+ "integrity": "sha512-FohDoZvk3mEXh9AWAVyRTYR4Sq7/gavuofglmiXB2g1aKyboUD4YtgWxKj8O5n+Uak52gXQ4wKz5IFST4vtJHg==",+ "license": "MIT",+ "dependencies": {+ "@babel/runtime": "^7.13.10",+ "@radix-ui/react-use-callback-ref": "1.0.0"+ },+ "peerDependencies": {+ "react": "^16.8 || ^17.0 || ^18.0"+ }+ },+ "node_modules/leva/node_modules/@radix-ui/react-tooltip/node_modules/@radix-ui/react-use-controllable-state/node_modules/@radix-ui/react-use-callback-ref": {+ "version": "1.0.0",+ "resolved": "https://registry.npmjs.org/@radix-ui/react-use-callback-ref/-/react-use-callback-ref-1.0.0.tgz",+ "integrity": "sha512-GZtyzoHz95Rhs6S63D2t/eqvdFCm7I+yHMLVQheKM7nBD8mbZIt+ct1jz4536MDnaOGKIxynJ8eHTkVGVVkoTg==",+ "license": "MIT",+ "dependencies": {+ "@babel/runtime": "^7.13.10"+ },+ "peerDependencies": {+ "react": "^16.8 || ^17.0 || ^18.0"+ }+ },+ "node_modules/leva/node_modules/@radix-ui/react-tooltip/node_modules/@radix-ui/react-visually-hidden": {+ "version": "1.0.2",+ "resolved": "https://registry.npmjs.org/@radix-ui/react-visually-hidden/-/react-visually-hidden-1.0.2.tgz",+ "integrity": "sha512-qirnJxtYn73HEk1rXL12/mXnu2rwsNHDID10th2JGtdK25T9wX+mxRmGt7iPSahw512GbZOc0syZX1nLQGoEOg==",+ "license": "MIT",+ "dependencies": {+ "@babel/runtime": "^7.13.10",+ "@radix-ui/react-primitive": "1.0.2"+ },+ "peerDependencies": {+ "react": "^16.8 || ^17.0 || ^18.0",+ "react-dom": "^16.8 || ^17.0 || ^18.0"+ }+ },+ "node_modules/leva/node_modules/zustand": {+ "version": "3.7.2",+ "resolved": "https://registry.npmjs.org/zustand/-/zustand-3.7.2.tgz",+ "integrity": "sha512-PIJDIZKtokhof+9+60cpockVOq05sJzHCriyvaLBmEJixseQ1a5Kdov6fWZfWOu5SK9c+FhH1jU0tntLxRJYMA==",+ "license": "MIT",+ "engines": {+ "node": ">=12.7.0"+ },+ "peerDependencies": {+ "react": ">=16.8"+ },+ "peerDependenciesMeta": {+ "react": {+ "optional": true+ }+ }+ },+ "node_modules/lie": {+ "version": "3.3.0",+ "resolved": "https://registry.npmjs.org/lie/-/lie-3.3.0.tgz",+ "integrity": "sha512-UaiMJzeWRlEujzAuw5LokY1L5ecNQYZKfmyZ9L7wDHb/p5etKaxXhohBcrw0EYby+G/NA52vRSN4N39dxHAIwQ==",+ "license": "MIT",+ "dependencies": {+ "immediate": "~3.0.5"+ }+ },+ "node_modules/lilconfig": {+ "version": "3.1.3",+ "resolved": "https://registry.npmjs.org/lilconfig/-/lilconfig-3.1.3.tgz",+ "integrity": "sha512-/vlFKAoH5Cgt3Ie+JLhRbwOsCQePABiU3tJ1egGvyQ+33R/vcwM2Zl2QR/LzjsBeItPt3oSVXapn+m4nQDvpzw==",+ "dev": true,+ "license": "MIT",+ "engines": {+ "node": ">=14"+ },+ "funding": {+ "url": "https://github.com/sponsors/antonk52"+ }+ },+ "node_modules/lines-and-columns": {+ "version": "1.2.4",+ "resolved": "https://registry.npmjs.org/lines-and-columns/-/lines-and-columns-1.2.4.tgz",+ "integrity": "sha512-7ylylesZQ/PV29jhEDl3Ufjo6ZX7gCqJr5F7PKrqc93v7fzSymt1BpwEU8nAUXs8qzzvqhbjhK5QZg6Mt/HkBg==",+ "dev": true,+ "license": "MIT"+ },+ "node_modules/loose-envify": {+ "version": "1.4.0",+ "resolved": "https://registry.npmjs.org/loose-envify/-/loose-envify-1.4.0.tgz",+ "integrity": "sha512-lyuxPGr/Wfhrlem2CL/UcnUc1zcqKAImBDzukY7Y5F/yQiNdko6+fRLevlw1HgMySw7f611UIY408EtxRSoK3Q==",+ "license": "MIT",+ "dependencies": {+ "js-tokens": "^3.0.0 || ^4.0.0"+ },+ "bin": {+ "loose-envify": "cli.js"+ }+ },+ "node_modules/loupe": {+ "version": "3.2.1",+ "resolved": "https://registry.npmjs.org/loupe/-/loupe-3.2.1.tgz",+ "integrity": "sha512-CdzqowRJCeLU72bHvWqwRBBlLcMEtIvGrlvef74kMnV2AolS9Y8xUv1I0U/MNAWMhBlKIoyuEgoJ0t/bbwHbLQ==",+ "dev": true,+ "license": "MIT"+ },+ "node_modules/lru-cache": {+ "version": "5.1.1",+ "resolved": "https://registry.npmjs.org/lru-cache/-/lru-cache-5.1.1.tgz",+ "integrity": "sha512-KpNARQA3Iwv+jTA0utUVVbrh+Jlrr1Fv0e56GGzAFOXN7dk/FviaDW8LHmK52DlcH4WP2n6gI8vN1aesBFgo9w==",+ "dev": true,+ "license": "ISC",+ "dependencies": {+ "yallist": "^3.0.2"+ }+ },+ "node_modules/maath": {+ "version": "0.10.8",+ "resolved": "https://registry.npmjs.org/maath/-/maath-0.10.8.tgz",+ "integrity": "sha512-tRvbDF0Pgqz+9XUa4jjfgAQ8/aPKmQdWXilFu2tMy4GWj4NOsx99HlULO4IeREfbO3a0sA145DZYyvXPkybm0g==",+ "license": "MIT",+ "peerDependencies": {+ "@types/three": ">=0.134.0",+ "three": ">=0.134.0"+ }+ },+ "node_modules/magic-string": {+ "version": "0.30.21",+ "resolved": "https://registry.npmjs.org/magic-string/-/magic-string-0.30.21.tgz",+ "integrity": "sha512-vd2F4YUyEXKGcLHoq+TEyCjxueSeHnFxyyjNp80yg0XV4vUhnDer/lvvlqM/arB5bXQN5K2/3oinyCRyx8T2CQ==",+ "dev": true,+ "license": "MIT",+ "dependencies": {+ "@jridgewell/sourcemap-codec": "^1.5.5"+ }+ },+ "node_modules/merge-value": {+ "version": "1.0.0",+ "resolved": "https://registry.npmjs.org/merge-value/-/merge-value-1.0.0.tgz",+ "integrity": "sha512-fJMmvat4NeKz63Uv9iHWcPDjCWcCkoiRoajRTEO8hlhUC6rwaHg0QCF9hBOTjZmm4JuglPckPSTtcuJL5kp0TQ==",+ "license": "MIT",+ "dependencies": {+ "get-value": "^2.0.6",+ "is-extendable": "^1.0.0",+ "mixin-deep": "^1.2.0",+ "set-value": "^2.0.0"+ },+ "engines": {+ "node": ">=0.10.0"+ }+ },+ "node_modules/merge2": {+ "version": "1.4.1",+ "resolved": "https://registry.npmjs.org/merge2/-/merge2-1.4.1.tgz",+ "integrity": "sha512-8q7VEgMJW4J8tcfVPy8g09NcQwZdbwFEqhe/WZkoIzjn/3TGDwtOCYtXGxA3O8tPzpczCCDgv+P2P5y00ZJOOg==",+ "dev": true,+ "license": "MIT",+ "engines": {+ "node": ">= 8"+ }+ },+ "node_modules/meshline": {+ "version": "3.3.1",+ "resolved": "https://registry.npmjs.org/meshline/-/meshline-3.3.1.tgz",+ "integrity": "sha512-/TQj+JdZkeSUOl5Mk2J7eLcYTLiQm2IDzmlSvYm7ov15anEcDJ92GHqqazxTSreeNgfnYu24kiEvvv0WlbCdFQ==",+ "license": "MIT",+ "peerDependencies": {+ "three": ">=0.137"+ }+ },+ "node_modules/meshoptimizer": {+ "version": "0.22.0",+ "resolved": "https://registry.npmjs.org/meshoptimizer/-/meshoptimizer-0.22.0.tgz",+ "integrity": "sha512-IebiK79sqIy+E4EgOr+CAw+Ke8hAspXKzBd0JdgEmPHiAwmvEj2S4h1rfvo+o/BnfEYd/jAOg5IeeIjzlzSnDg==",+ "license": "MIT"+ },+ "node_modules/micromatch": {+ "version": "4.0.8",+ "resolved": "https://registry.npmjs.org/micromatch/-/micromatch-4.0.8.tgz",+ "integrity": "sha512-PXwfBhYu0hBCPw8Dn0E+WDYb7af3dSLVWKi3HGv84IdF4TyFoC0ysxFd0Goxw7nSv4T/PzEJQxsYsEiFCKo2BA==",+ "dev": true,+ "license": "MIT",+ "dependencies": {+ "braces": "^3.0.3",+ "picomatch": "^2.3.1"+ },+ "engines": {+ "node": ">=8.6"+ }+ },+ "node_modules/mitt": {+ "version": "3.0.1",+ "resolved": "https://registry.npmjs.org/mitt/-/mitt-3.0.1.tgz",+ "integrity": "sha512-vKivATfr97l2/QBCYAkXYDbrIWPM2IIKEl7YPhjCvKlG3kE2gm+uBo6nEXK3M5/Ffh/FLpKExzOQ3JJoJGFKBw==",+ "license": "MIT"+ },+ "node_modules/mixin-deep": {+ "version": "1.3.2",+ "resolved": "https://registry.npmjs.org/mixin-deep/-/mixin-deep-1.3.2.tgz",+ "integrity": "sha512-WRoDn//mXBiJ1H40rqa3vH0toePwSsGb45iInWlTySa+Uu4k3tYUSxa2v1KqAiLtvlrSzaExqS1gtk96A9zvEA==",+ "license": "MIT",+ "dependencies": {+ "for-in": "^1.0.2",+ "is-extendable": "^1.0.1"+ },+ "engines": {+ "node": ">=0.10.0"+ }+ },+ "node_modules/ms": {+ "version": "2.1.3",+ "resolved": "https://registry.npmjs.org/ms/-/ms-2.1.3.tgz",+ "integrity": "sha512-6FlzubTLZG3J2a/NVCAleEhjzq5oxgHyaCU9yYXvcLsvoVaHJq/s5xXI6/XXP6tz7R9xAOtHnSO/tXtF3WRTlA==",+ "dev": true,+ "license": "MIT"+ },+ "node_modules/mz": {+ "version": "2.7.0",+ "resolved": "https://registry.npmjs.org/mz/-/mz-2.7.0.tgz",+ "integrity": "sha512-z81GNO7nnYMEhrGh9LeymoE4+Yr0Wn5McHIZMK5cfQCl+NDX08sCZgUc9/6MHni9IWuFLm1Z3HTCXu2z9fN62Q==",+ "dev": true,+ "license": "MIT",+ "dependencies": {+ "any-promise": "^1.0.0",+ "object-assign": "^4.0.1",+ "thenify-all": "^1.0.0"+ }+ },+ "node_modules/n8ao": {+ "version": "1.10.1",+ "resolved": "https://registry.npmjs.org/n8ao/-/n8ao-1.10.1.tgz",+ "integrity": "sha512-hhI1pC+BfOZBV1KMwynBrVlIm8wqLxj/abAWhF2nZ0qQKyzTSQa1QtLVS2veRiuoBQXojxobcnp0oe+PUoxf/w==",+ "license": "ISC",+ "peerDependencies": {+ "postprocessing": ">=6.30.0",+ "three": ">=0.137"+ }+ },+ "node_modules/nanoid": {+ "version": "3.3.11",+ "resolved": "https://registry.npmjs.org/nanoid/-/nanoid-3.3.11.tgz",+ "integrity": "sha512-N8SpfPUnUp1bK+PMYW8qSWdl9U+wwNWI4QKxOYDy9JAro3WMX7p2OeVRF9v+347pnakNevPmiHhNmZ2HbFA76w==",+ "dev": true,+ "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/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==",+ "dev": true,+ "license": "MIT"+ },+ "node_modules/normalize-path": {+ "version": "3.0.0",+ "resolved": "https://registry.npmjs.org/normalize-path/-/normalize-path-3.0.0.tgz",+ "integrity": "sha512-6eZs5Ls3WtCisHWp9S2GUy8dqkpGi4BVSz3GaqiE6ezub0512ESztXUwUB6C6IKbQkY2Pnb/mD4WYojCRwcwLA==",+ "dev": true,+ "license": "MIT",+ "engines": {+ "node": ">=0.10.0"+ }+ },+ "node_modules/object-assign": {+ "version": "4.1.1",+ "resolved": "https://registry.npmjs.org/object-assign/-/object-assign-4.1.1.tgz",+ "integrity": "sha512-rJgTQnkUnH1sFw8yT6VSU3zD3sWmu6sZhIseY8VX+GRu3P6F7Fu+JNDoXfklElbLJSnc3FUQHVe4cU5hj+BcUg==",+ "license": "MIT",+ "engines": {+ "node": ">=0.10.0"+ }+ },+ "node_modules/object-hash": {+ "version": "3.0.0",+ "resolved": "https://registry.npmjs.org/object-hash/-/object-hash-3.0.0.tgz",+ "integrity": "sha512-RSn9F68PjH9HqtltsSnqYC1XXoWe9Bju5+213R98cNGttag9q9yAOTzdbsqvIa7aNm5WffBZFpWYr2aWrklWAw==",+ "dev": true,+ "license": "MIT",+ "engines": {+ "node": ">= 6"+ }+ },+ "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-parse": {+ "version": "1.0.7",+ "resolved": "https://registry.npmjs.org/path-parse/-/path-parse-1.0.7.tgz",+ "integrity": "sha512-LDJzPVEEEPR+y48z93A0Ed0yXb8pAByGWo/k5YYdYgpY2/2EsOsksJrq7lOHxryrVOn1ejG6oAp8ahvOIQD8sw==",+ "dev": true,+ "license": "MIT"+ },+ "node_modules/pathe": {+ "version": "1.1.2",+ "resolved": "https://registry.npmjs.org/pathe/-/pathe-1.1.2.tgz",+ "integrity": "sha512-whLdWMYL2TwI08hn8/ZqAbrVemu0LNaNNJZX73O6qaIdCTfXutsLhMkjdENX0qhsQ9uIimo4/aQOmXkoon2nDQ==",+ "dev": true,+ "license": "MIT"+ },+ "node_modules/pathval": {+ "version": "2.0.1",+ "resolved": "https://registry.npmjs.org/pathval/-/pathval-2.0.1.tgz",+ "integrity": "sha512-//nshmD55c46FuFw26xV/xFAaB5HF9Xdap7HJBBnrKdAd6/GxDBaNA1870O79+9ueg61cZLSVc+OaFlfmObYVQ==",+ "dev": true,+ "license": "MIT",+ "engines": {+ "node": ">= 14.16"+ }+ },+ "node_modules/picocolors": {+ "version": "1.1.1",+ "resolved": "https://registry.npmjs.org/picocolors/-/picocolors-1.1.1.tgz",+ "integrity": "sha512-xceH2snhtb5M9liqDsmEw56le376mTZkEX/jEb/RxNFyegNul7eNslCXP9FDj/Lcu0X8KEyMceP2ntpaHrDEVA==",+ "dev": true,+ "license": "ISC"+ },+ "node_modules/picomatch": {+ "version": "2.3.2",+ "resolved": "https://registry.npmjs.org/picomatch/-/picomatch-2.3.2.tgz",+ "integrity": "sha512-V7+vQEJ06Z+c5tSye8S+nHUfI51xoXIXjHQ99cQtKUkQqqO1kO/KCJUfZXuB47h/YBlDhah2H3hdUGXn8ie0oA==",+ "dev": true,+ "license": "MIT",+ "engines": {+ "node": ">=8.6"+ },+ "funding": {+ "url": "https://github.com/sponsors/jonschlinkert"+ }+ },+ "node_modules/pify": {+ "version": "2.3.0",+ "resolved": "https://registry.npmjs.org/pify/-/pify-2.3.0.tgz",+ "integrity": "sha512-udgsAY+fTnvv7kI7aaxbqwWNb0AHiB0qBO89PZKPkoTmGOgdbrHDKD+0B2X4uTfJ/FT1R09r9gTsjUjNJotuog==",+ "dev": true,+ "license": "MIT",+ "engines": {+ "node": ">=0.10.0"+ }+ },+ "node_modules/pirates": {+ "version": "4.0.7",+ "resolved": "https://registry.npmjs.org/pirates/-/pirates-4.0.7.tgz",+ "integrity": "sha512-TfySrs/5nm8fQJDcBDuUng3VOUKsd7S+zqvbOTiGXHfxX4wK31ard+hoNuvkicM/2YFzlpDgABOevKSsB4G/FA==",+ "dev": true,+ "license": "MIT",+ "engines": {+ "node": ">= 6"+ }+ },+ "node_modules/postcss": {+ "version": "8.5.10",+ "resolved": "https://registry.npmjs.org/postcss/-/postcss-8.5.10.tgz",+ "integrity": "sha512-pMMHxBOZKFU6HgAZ4eyGnwXF/EvPGGqUr0MnZ5+99485wwW41kW91A4LOGxSHhgugZmSChL5AlElNdwlNgcnLQ==",+ "dev": true,+ "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",+ "peer": true,+ "dependencies": {+ "nanoid": "^3.3.11",+ "picocolors": "^1.1.1",+ "source-map-js": "^1.2.1"+ },+ "engines": {+ "node": "^10 || ^12 || >=14"+ }+ },+ "node_modules/postcss-import": {+ "version": "15.1.0",+ "resolved": "https://registry.npmjs.org/postcss-import/-/postcss-import-15.1.0.tgz",+ "integrity": "sha512-hpr+J05B2FVYUAXHeK1YyI267J/dDDhMU6B6civm8hSY1jYJnBXxzKDKDswzJmtLHryrjhnDjqqp/49t8FALew==",+ "dev": true,+ "license": "MIT",+ "dependencies": {+ "postcss-value-parser": "^4.0.0",+ "read-cache": "^1.0.0",+ "resolve": "^1.1.7"+ },+ "engines": {+ "node": ">=14.0.0"+ },+ "peerDependencies": {+ "postcss": "^8.0.0"+ }+ },+ "node_modules/postcss-js": {+ "version": "4.1.0",+ "resolved": "https://registry.npmjs.org/postcss-js/-/postcss-js-4.1.0.tgz",+ "integrity": "sha512-oIAOTqgIo7q2EOwbhb8UalYePMvYoIeRY2YKntdpFQXNosSu3vLrniGgmH9OKs/qAkfoj5oB3le/7mINW1LCfw==",+ "dev": true,+ "funding": [+ {+ "type": "opencollective",+ "url": "https://opencollective.com/postcss/"+ },+ {+ "type": "github",+ "url": "https://github.com/sponsors/ai"+ }+ ],+ "license": "MIT",+ "dependencies": {+ "camelcase-css": "^2.0.1"+ },+ "engines": {+ "node": "^12 || ^14 || >= 16"+ },+ "peerDependencies": {+ "postcss": "^8.4.21"+ }+ },+ "node_modules/postcss-load-config": {+ "version": "6.0.1",+ "resolved": "https://registry.npmjs.org/postcss-load-config/-/postcss-load-config-6.0.1.tgz",+ "integrity": "sha512-oPtTM4oerL+UXmx+93ytZVN82RrlY/wPUV8IeDxFrzIjXOLF1pN+EmKPLbubvKHT2HC20xXsCAH2Z+CKV6Oz/g==",+ "dev": true,+ "funding": [+ {+ "type": "opencollective",+ "url": "https://opencollective.com/postcss/"+ },+ {+ "type": "github",+ "url": "https://github.com/sponsors/ai"+ }+ ],+ "license": "MIT",+ "dependencies": {+ "lilconfig": "^3.1.1"+ },+ "engines": {+ "node": ">= 18"+ },+ "peerDependencies": {+ "jiti": ">=1.21.0",+ "postcss": ">=8.0.9",+ "tsx": "^4.8.1",+ "yaml": "^2.4.2"+ },+ "peerDependenciesMeta": {+ "jiti": {+ "optional": true+ },+ "postcss": {+ "optional": true+ },+ "tsx": {+ "optional": true+ },+ "yaml": {+ "optional": true+ }+ }+ },+ "node_modules/postcss-nested": {+ "version": "6.2.0",+ "resolved": "https://registry.npmjs.org/postcss-nested/-/postcss-nested-6.2.0.tgz",+ "integrity": "sha512-HQbt28KulC5AJzG+cZtj9kvKB93CFCdLvog1WFLf1D+xmMvPGlBstkpTEZfK5+AN9hfJocyBFCNiqyS48bpgzQ==",+ "dev": true,+ "funding": [+ {+ "type": "opencollective",+ "url": "https://opencollective.com/postcss/"+ },+ {+ "type": "github",+ "url": "https://github.com/sponsors/ai"+ }+ ],+ "license": "MIT",+ "dependencies": {+ "postcss-selector-parser": "^6.1.1"+ },+ "engines": {+ "node": ">=12.0"+ },+ "peerDependencies": {+ "postcss": "^8.2.14"+ }+ },+ "node_modules/postcss-selector-parser": {+ "version": "6.1.2",+ "resolved": "https://registry.npmjs.org/postcss-selector-parser/-/postcss-selector-parser-6.1.2.tgz",+ "integrity": "sha512-Q8qQfPiZ+THO/3ZrOrO0cJJKfpYCagtMUkXbnEfmgUjwXg6z/WBeOyS9APBBPCTSiDV+s4SwQGu8yFsiMRIudg==",+ "dev": true,+ "license": "MIT",+ "dependencies": {+ "cssesc": "^3.0.0",+ "util-deprecate": "^1.0.2"+ },+ "engines": {+ "node": ">=4"+ }+ },+ "node_modules/postcss-value-parser": {+ "version": "4.2.0",+ "resolved": "https://registry.npmjs.org/postcss-value-parser/-/postcss-value-parser-4.2.0.tgz",+ "integrity": "sha512-1NNCs6uurfkVbeXG4S8JFT9t19m45ICnif8zWLd5oPSZ50QnwMfK+H3jv408d4jw/7Bttv5axS5IiHoLaVNHeQ==",+ "dev": true,+ "license": "MIT"+ },+ "node_modules/postprocessing": {+ "version": "6.39.1",+ "resolved": "https://registry.npmjs.org/postprocessing/-/postprocessing-6.39.1.tgz",+ "integrity": "sha512-R2dG2zy+BAx3USl5EHw+PvnrlbT5PKnZVp3se0HCR0pWH8WQdh742yNG4YWOsq6c0bFpffk0Gd2RqPeoP/wKng==",+ "license": "Zlib",+ "peer": true,+ "peerDependencies": {+ "three": ">= 0.168.0 < 0.185.0"+ }+ },+ "node_modules/potpack": {+ "version": "1.0.2",+ "resolved": "https://registry.npmjs.org/potpack/-/potpack-1.0.2.tgz",+ "integrity": "sha512-choctRBIV9EMT9WGAZHn3V7t0Z2pMQyl0EZE6pFc/6ml3ssw7Dlf/oAOvFwjm1HVsqfQN8GfeFyJ+d8tRzqueQ==",+ "license": "ISC"+ },+ "node_modules/promise-worker-transferable": {+ "version": "1.0.4",+ "resolved": "https://registry.npmjs.org/promise-worker-transferable/-/promise-worker-transferable-1.0.4.tgz",+ "integrity": "sha512-bN+0ehEnrXfxV2ZQvU2PetO0n4gqBD4ulq3MI1WOPLgr7/Mg9yRQkX5+0v1vagr74ZTsl7XtzlaYDo2EuCeYJw==",+ "license": "Apache-2.0",+ "dependencies": {+ "is-promise": "^2.1.0",+ "lie": "^3.0.2"+ }+ },+ "node_modules/prop-types": {+ "version": "15.8.1",+ "resolved": "https://registry.npmjs.org/prop-types/-/prop-types-15.8.1.tgz",+ "integrity": "sha512-oj87CgZICdulUohogVAR7AjlC0327U4el4L6eAvOqCeudMDVU0NThNaV+b9Df4dXgSP1gXMTnPdhfe/2qDH5cg==",+ "license": "MIT",+ "dependencies": {+ "loose-envify": "^1.4.0",+ "object-assign": "^4.1.1",+ "react-is": "^16.13.1"+ }+ },+ "node_modules/queue-microtask": {+ "version": "1.2.3",+ "resolved": "https://registry.npmjs.org/queue-microtask/-/queue-microtask-1.2.3.tgz",+ "integrity": "sha512-NuaNSa6flKT5JaSYQzJok04JzTL1CA6aGhv5rfLW3PgqA+M2ChpZQnAC8h8i4ZFkBS8X5RqkDBHA7r4hej3K9A==",+ "dev": true,+ "funding": [+ {+ "type": "github",+ "url": "https://github.com/sponsors/feross"+ },+ {+ "type": "patreon",+ "url": "https://www.patreon.com/feross"+ },+ {+ "type": "consulting",+ "url": "https://feross.org/support"+ }+ ],+ "license": "MIT"+ },+ "node_modules/react": {+ "version": "19.2.5",+ "resolved": "https://registry.npmjs.org/react/-/react-19.2.5.tgz",+ "integrity": "sha512-llUJLzz1zTUBrskt2pwZgLq59AemifIftw4aB7JxOqf1HY2FDaGDxgwpAPVzHU1kdWabH7FauP4i1oEeer2WCA==",+ "license": "MIT",+ "peer": true,+ "engines": {+ "node": ">=0.10.0"+ }+ },+ "node_modules/react-colorful": {+ "version": "5.6.1",+ "resolved": "https://registry.npmjs.org/react-colorful/-/react-colorful-5.6.1.tgz",+ "integrity": "sha512-1exovf0uGTGyq5mXQT0zgQ80uvj2PCwvF8zY1RN9/vbJVSjSo3fsB/4L3ObbF7u70NduSiK4xu4Y6q1MHoUGEw==",+ "license": "MIT",+ "peerDependencies": {+ "react": ">=16.8.0",+ "react-dom": ">=16.8.0"+ }+ },+ "node_modules/react-dom": {+ "version": "19.2.5",+ "resolved": "https://registry.npmjs.org/react-dom/-/react-dom-19.2.5.tgz",+ "integrity": "sha512-J5bAZz+DXMMwW/wV3xzKke59Af6CHY7G4uYLN1OvBcKEsWOs4pQExj86BBKamxl/Ik5bx9whOrvBlSDfWzgSag==",+ "license": "MIT",+ "peer": true,+ "dependencies": {+ "scheduler": "^0.27.0"+ },+ "peerDependencies": {+ "react": "^19.2.5"+ }+ },+ "node_modules/react-dropzone": {+ "version": "12.1.0",+ "resolved": "https://registry.npmjs.org/react-dropzone/-/react-dropzone-12.1.0.tgz",+ "integrity": "sha512-iBYHA1rbopIvtzokEX4QubO6qk5IF/x3BtKGu74rF2JkQDXnwC4uO/lHKpaw4PJIV6iIAYOlwLv2FpiGyqHNog==",+ "license": "MIT",+ "dependencies": {+ "attr-accept": "^2.2.2",+ "file-selector": "^0.5.0",+ "prop-types": "^15.8.1"+ },+ "engines": {+ "node": ">= 10.13"+ },+ "peerDependencies": {+ "react": ">= 16.8"+ }+ },+ "node_modules/react-is": {+ "version": "16.13.1",+ "resolved": "https://registry.npmjs.org/react-is/-/react-is-16.13.1.tgz",+ "integrity": "sha512-24e6ynE2H+OKt4kqsOvNd8kBpV65zoxbA4BVsEOB3ARVWQki/DHzaUoC5KuON/BiccDaCCTZBuOcfZs70kR8bQ==",+ "license": "MIT"+ },+ "node_modules/react-refresh": {+ "version": "0.17.0",+ "resolved": "https://registry.npmjs.org/react-refresh/-/react-refresh-0.17.0.tgz",+ "integrity": "sha512-z6F7K9bV85EfseRCp2bzrpyQ0Gkw1uLoCel9XBVWPg/TjRj94SkJzUTGfOa4bs7iJvBWtQG0Wq7wnI0syw3EBQ==",+ "dev": true,+ "license": "MIT",+ "engines": {+ "node": ">=0.10.0"+ }+ },+ "node_modules/react-use-measure": {+ "version": "2.1.7",+ "resolved": "https://registry.npmjs.org/react-use-measure/-/react-use-measure-2.1.7.tgz",+ "integrity": "sha512-KrvcAo13I/60HpwGO5jpW7E9DfusKyLPLvuHlUyP5zqnmAPhNc6qTRjUQrdTADl0lpPpDVU2/Gg51UlOGHXbdg==",+ "license": "MIT",+ "peerDependencies": {+ "react": ">=16.13",+ "react-dom": ">=16.13"+ },+ "peerDependenciesMeta": {+ "react-dom": {+ "optional": true+ }+ }+ },+ "node_modules/read-cache": {+ "version": "1.0.0",+ "resolved": "https://registry.npmjs.org/read-cache/-/read-cache-1.0.0.tgz",+ "integrity": "sha512-Owdv/Ft7IjOgm/i0xvNDZ1LrRANRfew4b2prF3OWMQLxLfu3bS8FVhCsrSCMK4lR56Y9ya+AThoTpDCTxCmpRA==",+ "dev": true,+ "license": "MIT",+ "dependencies": {+ "pify": "^2.3.0"+ }+ },+ "node_modules/readdirp": {+ "version": "3.6.0",+ "resolved": "https://registry.npmjs.org/readdirp/-/readdirp-3.6.0.tgz",+ "integrity": "sha512-hOS089on8RduqdbhvQ5Z37A0ESjsqz6qnRcffsMU3495FuTdqSm+7bhJ29JvIOsBDEEnan5DPu9t3To9VRlMzA==",+ "dev": true,+ "license": "MIT",+ "dependencies": {+ "picomatch": "^2.2.1"+ },+ "engines": {+ "node": ">=8.10.0"+ }+ },+ "node_modules/regexparam": {+ "version": "3.0.0",+ "resolved": "https://registry.npmjs.org/regexparam/-/regexparam-3.0.0.tgz",+ "integrity": "sha512-RSYAtP31mvYLkAHrOlh25pCNQ5hWnT106VukGaaFfuJrZFkGRX5GhUAdPqpSDXxOhA2c4akmRuplv1mRqnBn6Q==",+ "license": "MIT",+ "engines": {+ "node": ">=8"+ }+ },+ "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": {+ "version": "1.22.12",+ "resolved": "https://registry.npmjs.org/resolve/-/resolve-1.22.12.tgz",+ "integrity": "sha512-TyeJ1zif53BPfHootBGwPRYT1RUt6oGWsaQr8UyZW/eAm9bKoijtvruSDEmZHm92CwS9nj7/fWttqPCgzep8CA==",+ "dev": true,+ "license": "MIT",+ "dependencies": {+ "es-errors": "^1.3.0",+ "is-core-module": "^2.16.1",+ "path-parse": "^1.0.7",+ "supports-preserve-symlinks-flag": "^1.0.0"+ },+ "bin": {+ "resolve": "bin/resolve"+ },+ "engines": {+ "node": ">= 0.4"+ },+ "funding": {+ "url": "https://github.com/sponsors/ljharb"+ }+ },+ "node_modules/reusify": {+ "version": "1.1.0",+ "resolved": "https://registry.npmjs.org/reusify/-/reusify-1.1.0.tgz",+ "integrity": "sha512-g6QUff04oZpHs0eG5p83rFLhHeV00ug/Yf9nZM6fLeUrPguBTkTQOdpAWWspMh55TZfVQDPaN3NQJfbVRAxdIw==",+ "dev": true,+ "license": "MIT",+ "engines": {+ "iojs": ">=1.0.0",+ "node": ">=0.10.0"+ }+ },+ "node_modules/rollup": {+ "version": "4.60.2",+ "resolved": "https://registry.npmjs.org/rollup/-/rollup-4.60.2.tgz",+ "integrity": "sha512-J9qZyW++QK/09NyN/zeO0dG/1GdGfyp9lV8ajHnRVLfo/uFsbji5mHnDgn/qYdUHyCkM2N+8VyspgZclfAh0eQ==",+ "dev": true,+ "license": "MIT",+ "dependencies": {+ "@types/estree": "1.0.8"+ },+ "bin": {+ "rollup": "dist/bin/rollup"+ },+ "engines": {+ "node": ">=18.0.0",+ "npm": ">=8.0.0"+ },+ "optionalDependencies": {+ "@rollup/rollup-android-arm-eabi": "4.60.2",+ "@rollup/rollup-android-arm64": "4.60.2",+ "@rollup/rollup-darwin-arm64": "4.60.2",+ "@rollup/rollup-darwin-x64": "4.60.2",+ "@rollup/rollup-freebsd-arm64": "4.60.2",+ "@rollup/rollup-freebsd-x64": "4.60.2",+ "@rollup/rollup-linux-arm-gnueabihf": "4.60.2",+ "@rollup/rollup-linux-arm-musleabihf": "4.60.2",+ "@rollup/rollup-linux-arm64-gnu": "4.60.2",+ "@rollup/rollup-linux-arm64-musl": "4.60.2",+ "@rollup/rollup-linux-loong64-gnu": "4.60.2",+ "@rollup/rollup-linux-loong64-musl": "4.60.2",+ "@rollup/rollup-linux-ppc64-gnu": "4.60.2",+ "@rollup/rollup-linux-ppc64-musl": "4.60.2",+ "@rollup/rollup-linux-riscv64-gnu": "4.60.2",+ "@rollup/rollup-linux-riscv64-musl": "4.60.2",+ "@rollup/rollup-linux-s390x-gnu": "4.60.2",+ "@rollup/rollup-linux-x64-gnu": "4.60.2",+ "@rollup/rollup-linux-x64-musl": "4.60.2",+ "@rollup/rollup-openbsd-x64": "4.60.2",+ "@rollup/rollup-openharmony-arm64": "4.60.2",+ "@rollup/rollup-win32-arm64-msvc": "4.60.2",+ "@rollup/rollup-win32-ia32-msvc": "4.60.2",+ "@rollup/rollup-win32-x64-gnu": "4.60.2",+ "@rollup/rollup-win32-x64-msvc": "4.60.2",+ "fsevents": "~2.3.2"+ }+ },+ "node_modules/run-parallel": {+ "version": "1.2.0",+ "resolved": "https://registry.npmjs.org/run-parallel/-/run-parallel-1.2.0.tgz",+ "integrity": "sha512-5l4VyZR86LZ/lDxZTR6jqL8AFE2S0IFLMP26AbjsLVADxHdhB/c0GUsH+y39UfCi3dzz8OlQuPmnaJOMoDHQBA==",+ "dev": true,+ "funding": [+ {+ "type": "github",+ "url": "https://github.com/sponsors/feross"+ },+ {+ "type": "patreon",+ "url": "https://www.patreon.com/feross"+ },+ {+ "type": "consulting",+ "url": "https://feross.org/support"+ }+ ],+ "license": "MIT",+ "dependencies": {+ "queue-microtask": "^1.2.2"+ }+ },+ "node_modules/scheduler": {+ "version": "0.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"+ },+ "node_modules/semver": {+ "version": "6.3.1",+ "resolved": "https://registry.npmjs.org/semver/-/semver-6.3.1.tgz",+ "integrity": "sha512-BR7VvDCVHO+q2xBEWskxS6DJE1qRnb7DxzUrogb71CWoSficBxYsiAGd+Kl0mmq/MprG9yArRkyrQxTO6XjMzA==",+ "dev": true,+ "license": "ISC",+ "bin": {+ "semver": "bin/semver.js"+ }+ },+ "node_modules/set-value": {+ "version": "2.0.1",+ "resolved": "https://registry.npmjs.org/set-value/-/set-value-2.0.1.tgz",+ "integrity": "sha512-JxHc1weCN68wRY0fhCoXpyK55m/XPHafOmK4UWD7m2CI14GMcFypt4w/0+NV5f/ZMby2F6S2wwA7fgynh9gWSw==",+ "license": "MIT",+ "dependencies": {+ "extend-shallow": "^2.0.1",+ "is-extendable": "^0.1.1",+ "is-plain-object": "^2.0.3",+ "split-string": "^3.0.1"+ },+ "engines": {+ "node": ">=0.10.0"+ }+ },+ "node_modules/set-value/node_modules/is-extendable": {+ "version": "0.1.1",+ "resolved": "https://registry.npmjs.org/is-extendable/-/is-extendable-0.1.1.tgz",+ "integrity": "sha512-5BMULNob1vgFX6EjQw5izWDxrecWK9AM72rugNr0TFldMOi0fj6Jk+zeKIt0xGj4cEfQIJth4w3OKWOJ4f+AFw==",+ "license": "MIT",+ "engines": {+ "node": ">=0.10.0"+ }+ },+ "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/siginfo": {+ "version": "2.0.0",+ "resolved": "https://registry.npmjs.org/siginfo/-/siginfo-2.0.0.tgz",+ "integrity": "sha512-ybx0WO1/8bSBLEWXZvEd7gMW3Sn3JFlW3TvX1nREbDLRNQNaeNN8WK0meBwPdAaOI7TtRRRJn/Es1zhrrCHu7g==",+ "dev": true,+ "license": "ISC"+ },+ "node_modules/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==",+ "dev": true,+ "license": "BSD-3-Clause",+ "engines": {+ "node": ">=0.10.0"+ }+ },+ "node_modules/split-string": {+ "version": "3.1.0",+ "resolved": "https://registry.npmjs.org/split-string/-/split-string-3.1.0.tgz",+ "integrity": "sha512-NzNVhJDYpwceVVii8/Hu6DKfD2G+NrQHlS/V/qgv763EYudVwEcMQNxd2lh+0VrUByXN/oJkl5grOhYWvQUYiw==",+ "license": "MIT",+ "dependencies": {+ "extend-shallow": "^3.0.0"+ },+ "engines": {+ "node": ">=0.10.0"+ }+ },+ "node_modules/split-string/node_modules/extend-shallow": {+ "version": "3.0.2",+ "resolved": "https://registry.npmjs.org/extend-shallow/-/extend-shallow-3.0.2.tgz",+ "integrity": "sha512-BwY5b5Ql4+qZoefgMj2NUmx+tehVTH/Kf4k1ZEtOHNFcm2wSxMRo992l6X3TIgni2eZVTZ85xMOjF31fwZAj6Q==",+ "license": "MIT",+ "dependencies": {+ "assign-symbols": "^1.0.0",+ "is-extendable": "^1.0.1"+ },+ "engines": {+ "node": ">=0.10.0"+ }+ },+ "node_modules/stackback": {+ "version": "0.0.2",+ "resolved": "https://registry.npmjs.org/stackback/-/stackback-0.0.2.tgz",+ "integrity": "sha512-1XMJE5fQo1jGH6Y/7ebnwPOBEkIEnT4QF32d5R1+VXdXveM0IBMJt8zfaxX1P3QhVwrYe+576+jkANtSS2mBbw==",+ "dev": true,+ "license": "MIT"+ },+ "node_modules/stats-gl": {+ "version": "2.4.2",+ "resolved": "https://registry.npmjs.org/stats-gl/-/stats-gl-2.4.2.tgz",+ "integrity": "sha512-g5O9B0hm9CvnM36+v7SFl39T7hmAlv541tU81ME8YeSb3i1CIP5/QdDeSB3A0la0bKNHpxpwxOVRo2wFTYEosQ==",+ "license": "MIT",+ "dependencies": {+ "@types/three": "*",+ "three": "^0.170.0"+ },+ "peerDependencies": {+ "@types/three": "*",+ "three": "*"+ }+ },+ "node_modules/stats-gl/node_modules/three": {+ "version": "0.170.0",+ "resolved": "https://registry.npmjs.org/three/-/three-0.170.0.tgz",+ "integrity": "sha512-FQK+LEpYc0fBD+J8g6oSEyyNzjp+Q7Ks1C568WWaoMRLW+TkNNWmenWeGgJjV105Gd+p/2ql1ZcjYvNiPZBhuQ==",+ "license": "MIT"+ },+ "node_modules/stats.js": {+ "version": "0.17.0",+ "resolved": "https://registry.npmjs.org/stats.js/-/stats.js-0.17.0.tgz",+ "integrity": "sha512-hNKz8phvYLPEcRkeG1rsGmV5ChMjKDAWU7/OJJdDErPBNChQXxCo3WZurGpnWc6gZhAzEPFad1aVgyOANH1sMw==",+ "license": "MIT"+ },+ "node_modules/std-env": {+ "version": "3.10.0",+ "resolved": "https://registry.npmjs.org/std-env/-/std-env-3.10.0.tgz",+ "integrity": "sha512-5GS12FdOZNliM5mAOxFRg7Ir0pWz8MdpYm6AY6VPkGpbA7ZzmbzNcBJQ0GPvvyWgcY7QAhCgf9Uy89I03faLkg==",+ "dev": true,+ "license": "MIT"+ },+ "node_modules/sucrase": {+ "version": "3.35.1",+ "resolved": "https://registry.npmjs.org/sucrase/-/sucrase-3.35.1.tgz",+ "integrity": "sha512-DhuTmvZWux4H1UOnWMB3sk0sbaCVOoQZjv8u1rDoTV0HTdGem9hkAZtl4JZy8P2z4Bg0nT+YMeOFyVr4zcG5Tw==",+ "dev": true,+ "license": "MIT",+ "dependencies": {+ "@jridgewell/gen-mapping": "^0.3.2",+ "commander": "^4.0.0",+ "lines-and-columns": "^1.1.6",+ "mz": "^2.7.0",+ "pirates": "^4.0.1",+ "tinyglobby": "^0.2.11",+ "ts-interface-checker": "^0.1.9"+ },+ "bin": {+ "sucrase": "bin/sucrase",+ "sucrase-node": "bin/sucrase-node"+ },+ "engines": {+ "node": ">=16 || 14 >=14.17"+ }+ },+ "node_modules/supports-preserve-symlinks-flag": {+ "version": "1.0.0",+ "resolved": "https://registry.npmjs.org/supports-preserve-symlinks-flag/-/supports-preserve-symlinks-flag-1.0.0.tgz",+ "integrity": "sha512-ot0WnXS9fgdkgIcePe6RHNk1WA8+muPa6cSjeR3V8K27q9BB1rTE3R1p7Hv0z1ZyAc8s6Vvv8DIyWf681MAt0w==",+ "dev": true,+ "license": "MIT",+ "engines": {+ "node": ">= 0.4"+ },+ "funding": {+ "url": "https://github.com/sponsors/ljharb"+ }+ },+ "node_modules/suspend-react": {+ "version": "0.1.3",+ "resolved": "https://registry.npmjs.org/suspend-react/-/suspend-react-0.1.3.tgz",+ "integrity": "sha512-aqldKgX9aZqpoDp3e8/BZ8Dm7x1pJl+qI3ZKxDN0i/IQTWUwBx/ManmlVJ3wowqbno6c2bmiIfs+Um6LbsjJyQ==",+ "license": "MIT",+ "peerDependencies": {+ "react": ">=17.0"+ }+ },+ "node_modules/tailwindcss": {+ "version": "3.4.19",+ "resolved": "https://registry.npmjs.org/tailwindcss/-/tailwindcss-3.4.19.tgz",+ "integrity": "sha512-3ofp+LL8E+pK/JuPLPggVAIaEuhvIz4qNcf3nA1Xn2o/7fb7s/TYpHhwGDv1ZU3PkBluUVaF8PyCHcm48cKLWQ==",+ "dev": true,+ "license": "MIT",+ "dependencies": {+ "@alloc/quick-lru": "^5.2.0",+ "arg": "^5.0.2",+ "chokidar": "^3.6.0",+ "didyoumean": "^1.2.2",+ "dlv": "^1.1.3",+ "fast-glob": "^3.3.2",+ "glob-parent": "^6.0.2",+ "is-glob": "^4.0.3",+ "jiti": "^1.21.7",+ "lilconfig": "^3.1.3",+ "micromatch": "^4.0.8",+ "normalize-path": "^3.0.0",+ "object-hash": "^3.0.0",+ "picocolors": "^1.1.1",+ "postcss": "^8.4.47",+ "postcss-import": "^15.1.0",+ "postcss-js": "^4.0.1",+ "postcss-load-config": "^4.0.2 || ^5.0 || ^6.0",+ "postcss-nested": "^6.2.0",+ "postcss-selector-parser": "^6.1.2",+ "resolve": "^1.22.8",+ "sucrase": "^3.35.0"+ },+ "bin": {+ "tailwind": "lib/cli.js",+ "tailwindcss": "lib/cli.js"+ },+ "engines": {+ "node": ">=14.0.0"+ }+ },+ "node_modules/thenify": {+ "version": "3.3.1",+ "resolved": "https://registry.npmjs.org/thenify/-/thenify-3.3.1.tgz",+ "integrity": "sha512-RVZSIV5IG10Hk3enotrhvz0T9em6cyHBLkH/YAZuKqd8hRkKhSfCGIcP2KUY0EPxndzANBmNllzWPwak+bheSw==",+ "dev": true,+ "license": "MIT",+ "dependencies": {+ "any-promise": "^1.0.0"+ }+ },+ "node_modules/thenify-all": {+ "version": "1.6.0",+ "resolved": "https://registry.npmjs.org/thenify-all/-/thenify-all-1.6.0.tgz",+ "integrity": "sha512-RNxQH/qI8/t3thXJDwcstUO4zeqo64+Uy/+sNVRBx4Xn2OX+OZ9oP+iJnNFqplFra2ZUVeKCSa2oVWi3T4uVmA==",+ "dev": true,+ "license": "MIT",+ "dependencies": {+ "thenify": ">= 3.1.0 < 4"+ },+ "engines": {+ "node": ">=0.8"+ }+ },+ "node_modules/three": {+ "version": "0.180.0",+ "resolved": "https://registry.npmjs.org/three/-/three-0.180.0.tgz",+ "integrity": "sha512-o+qycAMZrh+TsE01GqWUxUIKR1AL0S8pq7zDkYOQw8GqfX8b8VoCKYUoHbhiX5j+7hr8XsuHDVU6+gkQJQKg9w==",+ "license": "MIT",+ "peer": true+ },+ "node_modules/three-mesh-bvh": {+ "version": "0.8.3",+ "resolved": "https://registry.npmjs.org/three-mesh-bvh/-/three-mesh-bvh-0.8.3.tgz",+ "integrity": "sha512-4G5lBaF+g2auKX3P0yqx+MJC6oVt6sB5k+CchS6Ob0qvH0YIhuUk1eYr7ktsIpY+albCqE80/FVQGV190PmiAg==",+ "license": "MIT",+ "peerDependencies": {+ "three": ">= 0.159.0"+ }+ },+ "node_modules/three-stdlib": {+ "version": "2.36.1",+ "resolved": "https://registry.npmjs.org/three-stdlib/-/three-stdlib-2.36.1.tgz",+ "integrity": "sha512-XyGQrFmNQ5O/IoKm556ftwKsBg11TIb301MB5dWNicziQBEs2g3gtOYIf7pFiLa0zI2gUwhtCjv9fmjnxKZ1Cg==",+ "license": "MIT",+ "dependencies": {+ "@types/draco3d": "^1.4.0",+ "@types/offscreencanvas": "^2019.6.4",+ "@types/webxr": "^0.5.2",+ "draco3d": "^1.4.1",+ "fflate": "^0.6.9",+ "potpack": "^1.0.1"+ },+ "peerDependencies": {+ "three": ">=0.128.0"+ }+ },+ "node_modules/three-stdlib/node_modules/fflate": {+ "version": "0.6.10",+ "resolved": "https://registry.npmjs.org/fflate/-/fflate-0.6.10.tgz",+ "integrity": "sha512-IQrh3lEPM93wVCEczc9SaAOvkmcoQn/G8Bo1e8ZPlY3X3bnAxWaBdvTdvM1hP62iZp0BXWDy4vTAy4fF0+Dlpg==",+ "license": "MIT"+ },+ "node_modules/tinybench": {+ "version": "2.9.0",+ "resolved": "https://registry.npmjs.org/tinybench/-/tinybench-2.9.0.tgz",+ "integrity": "sha512-0+DUvqWMValLmha6lr4kD8iAMK1HzV0/aKnCtWb9v9641TnP/MFb7Pc2bxoxQjTXAErryXVgUOfv2YqNllqGeg==",+ "dev": true,+ "license": "MIT"+ },+ "node_modules/tinyexec": {+ "version": "0.3.2",+ "resolved": "https://registry.npmjs.org/tinyexec/-/tinyexec-0.3.2.tgz",+ "integrity": "sha512-KQQR9yN7R5+OSwaK0XQoj22pwHoTlgYqmUscPYoknOoWCWfj/5/ABTMRi69FrKU5ffPVh5QcFikpWJI/P1ocHA==",+ "dev": true,+ "license": "MIT"+ },+ "node_modules/tinyglobby": {+ "version": "0.2.16",+ "resolved": "https://registry.npmjs.org/tinyglobby/-/tinyglobby-0.2.16.tgz",+ "integrity": "sha512-pn99VhoACYR8nFHhxqix+uvsbXineAasWm5ojXoN8xEwK5Kd3/TrhNn1wByuD52UxWRLy8pu+kRMniEi6Eq9Zg==",+ "dev": true,+ "license": "MIT",+ "dependencies": {+ "fdir": "^6.5.0",+ "picomatch": "^4.0.4"+ },+ "engines": {+ "node": ">=12.0.0"+ },+ "funding": {+ "url": "https://github.com/sponsors/SuperchupuDev"+ }+ },+ "node_modules/tinyglobby/node_modules/fdir": {+ "version": "6.5.0",+ "resolved": "https://registry.npmjs.org/fdir/-/fdir-6.5.0.tgz",+ "integrity": "sha512-tIbYtZbucOs0BRGqPJkshJUYdL+SDH7dVM8gjy+ERp3WAUjLEFJE+02kanyHtwjWOnwrKYBiwAmM0p4kLJAnXg==",+ "dev": true,+ "license": "MIT",+ "engines": {+ "node": ">=12.0.0"+ },+ "peerDependencies": {+ "picomatch": "^3 || ^4"+ },+ "peerDependenciesMeta": {+ "picomatch": {+ "optional": true+ }+ }+ },+ "node_modules/tinyglobby/node_modules/picomatch": {+ "version": "4.0.4",+ "resolved": "https://registry.npmjs.org/picomatch/-/picomatch-4.0.4.tgz",+ "integrity": "sha512-QP88BAKvMam/3NxH6vj2o21R6MjxZUAd6nlwAS/pnGvN9IVLocLHxGYIzFhg6fUQ+5th6P4dv4eW9jX3DSIj7A==",+ "dev": true,+ "license": "MIT",+ "peer": true,+ "engines": {+ "node": ">=12"+ },+ "funding": {+ "url": "https://github.com/sponsors/jonschlinkert"+ }+ },+ "node_modules/tinypool": {+ "version": "1.1.1",+ "resolved": "https://registry.npmjs.org/tinypool/-/tinypool-1.1.1.tgz",+ "integrity": "sha512-Zba82s87IFq9A9XmjiX5uZA/ARWDrB03OHlq+Vw1fSdt0I+4/Kutwy8BP4Y/y/aORMo61FQ0vIb5j44vSo5Pkg==",+ "dev": true,+ "license": "MIT",+ "engines": {+ "node": "^18.0.0 || >=20.0.0"+ }+ },+ "node_modules/tinyrainbow": {+ "version": "1.2.0",+ "resolved": "https://registry.npmjs.org/tinyrainbow/-/tinyrainbow-1.2.0.tgz",+ "integrity": "sha512-weEDEq7Z5eTHPDh4xjX789+fHfF+P8boiFB+0vbWzpbnbsEr/GRaohi/uMKxg8RZMXnl1ItAi/IUHWMsjDV7kQ==",+ "dev": true,+ "license": "MIT",+ "engines": {+ "node": ">=14.0.0"+ }+ },+ "node_modules/tinyspy": {+ "version": "3.0.2",+ "resolved": "https://registry.npmjs.org/tinyspy/-/tinyspy-3.0.2.tgz",+ "integrity": "sha512-n1cw8k1k0x4pgA2+9XrOkFydTerNcJ1zWCO5Nn9scWHTD+5tp8dghT2x1uduQePZTZgd3Tupf+x9BxJjeJi77Q==",+ "dev": true,+ "license": "MIT",+ "engines": {+ "node": ">=14.0.0"+ }+ },+ "node_modules/to-regex-range": {+ "version": "5.0.1",+ "resolved": "https://registry.npmjs.org/to-regex-range/-/to-regex-range-5.0.1.tgz",+ "integrity": "sha512-65P7iz6X5yEr1cwcgvQxbbIw7Uk3gOy5dIdtZ4rDveLqhrdJP+Li/Hx6tyK0NEb+2GCyneCMJiGqrADCSNk8sQ==",+ "dev": true,+ "license": "MIT",+ "dependencies": {+ "is-number": "^7.0.0"+ },+ "engines": {+ "node": ">=8.0"+ }+ },+ "node_modules/troika-three-text": {+ "version": "0.52.4",+ "resolved": "https://registry.npmjs.org/troika-three-text/-/troika-three-text-0.52.4.tgz",+ "integrity": "sha512-V50EwcYGruV5rUZ9F4aNsrytGdKcXKALjEtQXIOBfhVoZU9VAqZNIoGQ3TMiooVqFAbR1w15T+f+8gkzoFzawg==",+ "license": "MIT",+ "dependencies": {+ "bidi-js": "^1.0.2",+ "troika-three-utils": "^0.52.4",+ "troika-worker-utils": "^0.52.0",+ "webgl-sdf-generator": "1.1.1"+ },+ "peerDependencies": {+ "three": ">=0.125.0"+ }+ },+ "node_modules/troika-three-utils": {+ "version": "0.52.4",+ "resolved": "https://registry.npmjs.org/troika-three-utils/-/troika-three-utils-0.52.4.tgz",+ "integrity": "sha512-NORAStSVa/BDiG52Mfudk4j1FG4jC4ILutB3foPnfGbOeIs9+G5vZLa0pnmnaftZUGm4UwSoqEpWdqvC7zms3A==",+ "license": "MIT",+ "peerDependencies": {+ "three": ">=0.125.0"+ }+ },+ "node_modules/troika-worker-utils": {+ "version": "0.52.0",+ "resolved": "https://registry.npmjs.org/troika-worker-utils/-/troika-worker-utils-0.52.0.tgz",+ "integrity": "sha512-W1CpvTHykaPH5brv5VHLfQo9D1OYuo0cSBEUQFFT/nBUzM8iD6Lq2/tgG/f1OelbAS1WtaTPQzE5uM49egnngw==",+ "license": "MIT"+ },+ "node_modules/ts-interface-checker": {+ "version": "0.1.13",+ "resolved": "https://registry.npmjs.org/ts-interface-checker/-/ts-interface-checker-0.1.13.tgz",+ "integrity": "sha512-Y/arvbn+rrz3JCKl9C4kVNfTfSm2/mEp5FSz5EsZSANGPSlQrpRI5M4PKF+mJnE52jOO90PnPSc3Ur3bTQw0gA==",+ "dev": true,+ "license": "Apache-2.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"+ },+ "node_modules/tunnel-rat": {+ "version": "0.1.2",+ "resolved": "https://registry.npmjs.org/tunnel-rat/-/tunnel-rat-0.1.2.tgz",+ "integrity": "sha512-lR5VHmkPhzdhrM092lI2nACsLO4QubF0/yoOhzX7c+wIpbN1GjHNzCc91QlpxBi+cnx8vVJ+Ur6vL5cEoQPFpQ==",+ "license": "MIT",+ "dependencies": {+ "zustand": "^4.3.2"+ }+ },+ "node_modules/tunnel-rat/node_modules/zustand": {+ "version": "4.5.7",+ "resolved": "https://registry.npmjs.org/zustand/-/zustand-4.5.7.tgz",+ "integrity": "sha512-CHOUy7mu3lbD6o6LJLfllpjkzhHXSBlX8B9+qPddUsIfeF5S/UZ5q0kmCsnRqT1UHFQZchNFDDzMbQsuesHWlw==",+ "license": "MIT",+ "dependencies": {+ "use-sync-external-store": "^1.2.2"+ },+ "engines": {+ "node": ">=12.7.0"+ },+ "peerDependencies": {+ "@types/react": ">=16.8",+ "immer": ">=9.0.6",+ "react": ">=16.8"+ },+ "peerDependenciesMeta": {+ "@types/react": {+ "optional": true+ },+ "immer": {+ "optional": true+ },+ "react": {+ "optional": true+ }+ }+ },+ "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/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==",+ "dev": true,+ "funding": [+ {+ "type": "opencollective",+ "url": "https://opencollective.com/browserslist"+ },+ {+ "type": "tidelift",+ "url": "https://tidelift.com/funding/github/npm/browserslist"+ },+ {+ "type": "github",+ "url": "https://github.com/sponsors/ai"+ }+ ],+ "license": "MIT",+ "dependencies": {+ "escalade": "^3.2.0",+ "picocolors": "^1.1.1"+ },+ "bin": {+ "update-browserslist-db": "cli.js"+ },+ "peerDependencies": {+ "browserslist": ">= 4.21.0"+ }+ },+ "node_modules/use-isomorphic-layout-effect": {+ "version": "1.2.1",+ "resolved": "https://registry.npmjs.org/use-isomorphic-layout-effect/-/use-isomorphic-layout-effect-1.2.1.tgz",+ "integrity": "sha512-tpZZ+EX0gaghDAiFR37hj5MgY6ZN55kLiPkJsKxBMZ6GZdOSPJXiOzPM984oPYZ5AnehYx5WQp1+ME8I/P/pRA==",+ "license": "MIT",+ "peerDependencies": {+ "react": "^16.8.0 || ^17.0.0 || ^18.0.0 || ^19.0.0"+ },+ "peerDependenciesMeta": {+ "@types/react": {+ "optional": true+ }+ }+ },+ "node_modules/use-sync-external-store": {+ "version": "1.6.0",+ "resolved": "https://registry.npmjs.org/use-sync-external-store/-/use-sync-external-store-1.6.0.tgz",+ "integrity": "sha512-Pp6GSwGP/NrPIrxVFAIkOQeyw8lFenOHijQWkUTrDvrF4ALqylP2C/KCkeS9dpUM3KvYRQhna5vt7IL95+ZQ9w==",+ "license": "MIT",+ "peerDependencies": {+ "react": "^16.8.0 || ^17.0.0 || ^18.0.0 || ^19.0.0"+ }+ },+ "node_modules/util-deprecate": {+ "version": "1.0.2",+ "resolved": "https://registry.npmjs.org/util-deprecate/-/util-deprecate-1.0.2.tgz",+ "integrity": "sha512-EPD5q1uXyFxJpCrLnCc1nHnq3gOa6DZBocAIiI2TaSCA7VCJ1UJDMagCzIkXNsUYfD1daK//LTEQ8xiIbrHtcw==",+ "dev": true,+ "license": "MIT"+ },+ "node_modules/utility-types": {+ "version": "3.11.0",+ "resolved": "https://registry.npmjs.org/utility-types/-/utility-types-3.11.0.tgz",+ "integrity": "sha512-6Z7Ma2aVEWisaL6TvBCy7P8rm2LQoPv6dJ7ecIaIixHcwfbJ0x7mWdbcwlIM5IGQxPZSFYeqRCqlOOeKoJYMkw==",+ "license": "MIT",+ "engines": {+ "node": ">= 4"+ }+ },+ "node_modules/v8n": {+ "version": "1.5.1",+ "resolved": "https://registry.npmjs.org/v8n/-/v8n-1.5.1.tgz",+ "integrity": "sha512-LdabyT4OffkyXFCe9UT+uMkxNBs5rcTVuZClvxQr08D5TUgo1OFKkoT65qYRCsiKBl/usHjpXvP4hHMzzDRj3A==",+ "license": "MIT"+ },+ "node_modules/vite": {+ "version": "5.4.21",+ "resolved": "https://registry.npmjs.org/vite/-/vite-5.4.21.tgz",+ "integrity": "sha512-o5a9xKjbtuhY6Bi5S3+HvbRERmouabWbyUcpXXUA1u+GNUKoROi9byOJ8M0nHbHYHkYICiMlqxkg1KkYmm25Sw==",+ "dev": true,+ "license": "MIT",+ "peer": true,+ "dependencies": {+ "esbuild": "^0.21.3",+ "postcss": "^8.4.43",+ "rollup": "^4.20.0"+ },+ "bin": {+ "vite": "bin/vite.js"+ },+ "engines": {+ "node": "^18.0.0 || >=20.0.0"+ },+ "funding": {+ "url": "https://github.com/vitejs/vite?sponsor=1"+ },+ "optionalDependencies": {+ "fsevents": "~2.3.3"+ },+ "peerDependencies": {+ "@types/node": "^18.0.0 || >=20.0.0",+ "less": "*",+ "lightningcss": "^1.21.0",+ "sass": "*",+ "sass-embedded": "*",+ "stylus": "*",+ "sugarss": "*",+ "terser": "^5.4.0"+ },+ "peerDependenciesMeta": {+ "@types/node": {+ "optional": true+ },+ "less": {+ "optional": true+ },+ "lightningcss": {+ "optional": true+ },+ "sass": {+ "optional": true+ },+ "sass-embedded": {+ "optional": true+ },+ "stylus": {+ "optional": true+ },+ "sugarss": {+ "optional": true+ },+ "terser": {+ "optional": true+ }+ }+ },+ "node_modules/vite-node": {+ "version": "2.1.9",+ "resolved": "https://registry.npmjs.org/vite-node/-/vite-node-2.1.9.tgz",+ "integrity": "sha512-AM9aQ/IPrW/6ENLQg3AGY4K1N2TGZdR5e4gu/MmmR2xR3Ll1+dib+nook92g4TV3PXVyeyxdWwtaCAiUL0hMxA==",+ "dev": true,+ "license": "MIT",+ "dependencies": {+ "cac": "^6.7.14",+ "debug": "^4.3.7",+ "es-module-lexer": "^1.5.4",+ "pathe": "^1.1.2",+ "vite": "^5.0.0"+ },+ "bin": {+ "vite-node": "vite-node.mjs"+ },+ "engines": {+ "node": "^18.0.0 || >=20.0.0"+ },+ "funding": {+ "url": "https://opencollective.com/vitest"+ }+ },+ "node_modules/vitest": {+ "version": "2.1.9",+ "resolved": "https://registry.npmjs.org/vitest/-/vitest-2.1.9.tgz",+ "integrity": "sha512-MSmPM9REYqDGBI8439mA4mWhV5sKmDlBKWIYbA3lRb2PTHACE0mgKwA8yQ2xq9vxDTuk4iPrECBAEW2aoFXY0Q==",+ "dev": true,+ "license": "MIT",+ "dependencies": {+ "@vitest/expect": "2.1.9",+ "@vitest/mocker": "2.1.9",+ "@vitest/pretty-format": "^2.1.9",+ "@vitest/runner": "2.1.9",+ "@vitest/snapshot": "2.1.9",+ "@vitest/spy": "2.1.9",+ "@vitest/utils": "2.1.9",+ "chai": "^5.1.2",+ "debug": "^4.3.7",+ "expect-type": "^1.1.0",+ "magic-string": "^0.30.12",+ "pathe": "^1.1.2",+ "std-env": "^3.8.0",+ "tinybench": "^2.9.0",+ "tinyexec": "^0.3.1",+ "tinypool": "^1.0.1",+ "tinyrainbow": "^1.2.0",+ "vite": "^5.0.0",+ "vite-node": "2.1.9",+ "why-is-node-running": "^2.3.0"+ },+ "bin": {+ "vitest": "vitest.mjs"+ },+ "engines": {+ "node": "^18.0.0 || >=20.0.0"+ },+ "funding": {+ "url": "https://opencollective.com/vitest"+ },+ "peerDependencies": {+ "@edge-runtime/vm": "*",+ "@types/node": "^18.0.0 || >=20.0.0",+ "@vitest/browser": "2.1.9",+ "@vitest/ui": "2.1.9",+ "happy-dom": "*",+ "jsdom": "*"+ },+ "peerDependenciesMeta": {+ "@edge-runtime/vm": {+ "optional": true+ },+ "@types/node": {+ "optional": true+ },+ "@vitest/browser": {+ "optional": true+ },+ "@vitest/ui": {+ "optional": true+ },+ "happy-dom": {+ "optional": true+ },+ "jsdom": {+ "optional": true+ }+ }+ },+ "node_modules/webgl-constants": {+ "version": "1.1.1",+ "resolved": "https://registry.npmjs.org/webgl-constants/-/webgl-constants-1.1.1.tgz",+ "integrity": "sha512-LkBXKjU5r9vAW7Gcu3T5u+5cvSvh5WwINdr0C+9jpzVB41cjQAP5ePArDtk/WHYdVj0GefCgM73BA7FlIiNtdg=="+ },+ "node_modules/webgl-sdf-generator": {+ "version": "1.1.1",+ "resolved": "https://registry.npmjs.org/webgl-sdf-generator/-/webgl-sdf-generator-1.1.1.tgz",+ "integrity": "sha512-9Z0JcMTFxeE+b2x1LJTdnaT8rT8aEp7MVxkNwoycNmJWwPdzoXzMh0BjJSh/AEFP+KPYZUli814h8bJZFIZ2jA==",+ "license": "MIT"+ },+ "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/why-is-node-running": {+ "version": "2.3.0",+ "resolved": "https://registry.npmjs.org/why-is-node-running/-/why-is-node-running-2.3.0.tgz",+ "integrity": "sha512-hUrmaWBdVDcxvYqnyh09zunKzROWjbZTiNy8dBEjkS7ehEDQibXJ7XvlmtbwuTclUiIyN+CyXQD4Vmko8fNm8w==",+ "dev": true,+ "license": "MIT",+ "dependencies": {+ "siginfo": "^2.0.0",+ "stackback": "0.0.2"+ },+ "bin": {+ "why-is-node-running": "cli.js"+ },+ "engines": {+ "node": ">=8"+ }+ },+ "node_modules/wouter": {+ "version": "3.9.0",+ "resolved": "https://registry.npmjs.org/wouter/-/wouter-3.9.0.tgz",+ "integrity": "sha512-sF/od/PIgqEQBQcrN7a2x3MX6MQE6nW0ygCfy9hQuUkuB28wEZuu/6M5GyqkrrEu9M6jxdkgE12yDFsQMKos4Q==",+ "license": "Unlicense",+ "dependencies": {+ "mitt": "^3.0.1",+ "regexparam": "^3.0.0",+ "use-sync-external-store": "^1.0.0"+ },+ "peerDependencies": {+ "react": ">=16.8.0"+ }+ },+ "node_modules/yallist": {+ "version": "3.1.1",+ "resolved": "https://registry.npmjs.org/yallist/-/yallist-3.1.1.tgz",+ "integrity": "sha512-a4UGQaWPH59mOXUYnAG2ewncQS4i4F43Tv3JoAM+s2VDAmS9NsK8GpDMLrCHPksFT7h3K6TOoUNn2pb7RoXx4g==",+ "dev": true,+ "license": "ISC"+ },+ "node_modules/zustand": {+ "version": "5.0.12",+ "resolved": "https://registry.npmjs.org/zustand/-/zustand-5.0.12.tgz",+ "integrity": "sha512-i77ae3aZq4dhMlRhJVCYgMLKuSiZAaUPAct2AksxQ+gOtimhGMdXljRT21P5BNpeT4kXlLIckvkPM029OljD7g==",+ "license": "MIT",+ "engines": {+ "node": ">=12.20.0"+ },+ "peerDependencies": {+ "@types/react": ">=18.0.0",+ "immer": ">=9.0.6",+ "react": ">=18.0.0",+ "use-sync-external-store": ">=1.2.0"+ },+ "peerDependenciesMeta": {+ "@types/react": {+ "optional": true+ },+ "immer": {+ "optional": true+ },+ "react": {+ "optional": true+ },+ "use-sync-external-store": {+ "optional": true+ }+ }+ }+ }+}diff --git a/third_party/image-blaster/app/package.json b/third_party/image-blaster/app/package.jsonnew file mode 100644index 000000000..e35b326bc--- /dev/null+++ b/third_party/image-blaster/app/package.json@@ -0,0 +1,45 @@+{+ "name": "image-blaster",+ "private": true,+ "version": "0.0.1",+ "type": "module",+ "scripts": {+ "dev": "vite",+ "build": "tsc --noEmit && vite build",+ "preview": "vite preview",+ "test": "vitest run",+ "typecheck": "tsc --noEmit"+ },+ "dependencies": {+ "@phosphor-icons/react": "^2.1.10",+ "@radix-ui/themes": "^3.3.0",+ "@react-three/drei": "^10.7.7",+ "@react-three/fiber": "^9.6.0",+ "@react-three/postprocessing": "^3.0.4",+ "@react-three/rapier": "^2.2.0",+ "@sparkjsdev/spark": "^2.0.0",+ "leva": "^0.10.1",+ "postprocessing": "^6.36.0",+ "react": "^19.2.5",+ "react-dom": "^19.2.5",+ "tailwind-merge": "^3.5.0",+ "three": "0.180.0",+ "three-stdlib": "^2.36.1",+ "wouter": "^3.3.5",+ "zustand": "^5.0.12"+ },+ "devDependencies": {+ "@types/node": "^25.6.0",+ "@types/react": "^19.2.14",+ "@types/react-dom": "^19.2.3",+ "@types/three": "^0.180.0",+ "@vitejs/plugin-react": "^4.3.3",+ "autoprefixer": "^10.4.20",+ "dotenv": "^17.4.2",+ "postcss": "^8.4.49",+ "tailwindcss": "^3.4.15",+ "typescript": "^5.6.3",+ "vite": "^5.4.11",+ "vitest": "^2.1.5"+ }+}diff --git a/third_party/image-blaster/app/postcss.config.js b/third_party/image-blaster/app/postcss.config.jsnew file mode 100644index 000000000..2e7af2b7f--- /dev/null+++ b/third_party/image-blaster/app/postcss.config.js@@ -0,0 +1,6 @@+export default {+ plugins: {+ tailwindcss: {},+ autoprefixer: {},+ },+}diff --git a/third_party/image-blaster/app/public/butterfly/butterfly-loop.glb b/third_party/image-blaster/app/public/butterfly/butterfly-loop.glbnew file mode 100644index 000000000..db9f06436Binary files /dev/null and b/third_party/image-blaster/app/public/butterfly/butterfly-loop.glb differdiff --git a/third_party/image-blaster/app/public/butterfly/butterfly.glb b/third_party/image-blaster/app/public/butterfly/butterfly.glbnew file mode 100644index 000000000..5a99fefe9Binary files /dev/null and b/third_party/image-blaster/app/public/butterfly/butterfly.glb differdiff --git a/third_party/image-blaster/app/public/butterfly/butterfly.png b/third_party/image-blaster/app/public/butterfly/butterfly.pngnew file mode 100644index 000000000..1f36c4b0bBinary files /dev/null and b/third_party/image-blaster/app/public/butterfly/butterfly.png differdiff --git a/third_party/image-blaster/app/public/butterfly/butterfly1.jpg b/third_party/image-blaster/app/public/butterfly/butterfly1.jpgnew file mode 100644index 000000000..89c30aadfBinary files /dev/null and b/third_party/image-blaster/app/public/butterfly/butterfly1.jpg differdiff --git a/third_party/image-blaster/app/public/butterfly/butterfly2.jpg b/third_party/image-blaster/app/public/butterfly/butterfly2.jpgnew file mode 100644index 000000000..678665a3eBinary files /dev/null and b/third_party/image-blaster/app/public/butterfly/butterfly2.jpg differdiff --git a/third_party/image-blaster/app/public/butterfly/butterfly4.jpg b/third_party/image-blaster/app/public/butterfly/butterfly4.jpgnew file mode 100644index 000000000..2d8422503Binary files /dev/null and b/third_party/image-blaster/app/public/butterfly/butterfly4.jpg differdiff --git a/third_party/image-blaster/app/public/butterfly/butterfly5.jpg b/third_party/image-blaster/app/public/butterfly/butterfly5.jpgnew file mode 100644index 000000000..90072e651Binary files /dev/null and b/third_party/image-blaster/app/public/butterfly/butterfly5.jpg differdiff --git a/third_party/image-blaster/app/public/butterfly/butterfly_anim_fbx.FBX b/third_party/image-blaster/app/public/butterfly/butterfly_anim_fbx.FBXnew file mode 100644index 000000000..11e393018Binary files /dev/null and b/third_party/image-blaster/app/public/butterfly/butterfly_anim_fbx.FBX differdiff --git a/third_party/image-blaster/app/public/butterfly/sfx/ambient-loop.wav b/third_party/image-blaster/app/public/butterfly/sfx/ambient-loop.wavnew file mode 100644index 000000000..50abe287cBinary files /dev/null and b/third_party/image-blaster/app/public/butterfly/sfx/ambient-loop.wav differdiff --git a/third_party/image-blaster/app/public/butterfly/sfx/moth-flap-1.wav b/third_party/image-blaster/app/public/butterfly/sfx/moth-flap-1.wavnew file mode 100644index 000000000..d797471daBinary files /dev/null and b/third_party/image-blaster/app/public/butterfly/sfx/moth-flap-1.wav differdiff --git a/third_party/image-blaster/app/public/butterfly/sfx/moth-flap-2.wav b/third_party/image-blaster/app/public/butterfly/sfx/moth-flap-2.wavnew file mode 100644index 000000000..f7621a2ffBinary files /dev/null and b/third_party/image-blaster/app/public/butterfly/sfx/moth-flap-2.wav differdiff --git a/third_party/image-blaster/app/public/butterfly/sfx/moth-flap-3.wav b/third_party/image-blaster/app/public/butterfly/sfx/moth-flap-3.wavnew file mode 100644index 000000000..9e8edfc08Binary files /dev/null and b/third_party/image-blaster/app/public/butterfly/sfx/moth-flap-3.wav differdiff --git a/third_party/image-blaster/app/public/butterfly/sfx/moth-flap-4.wav b/third_party/image-blaster/app/public/butterfly/sfx/moth-flap-4.wavnew file mode 100644index 000000000..1e37a8e50Binary files /dev/null and b/third_party/image-blaster/app/public/butterfly/sfx/moth-flap-4.wav differdiff --git a/third_party/image-blaster/app/public/butterfly/sfx/moth-flap-5.wav b/third_party/image-blaster/app/public/butterfly/sfx/moth-flap-5.wavnew file mode 100644index 000000000..3f3d28fcdBinary files /dev/null and b/third_party/image-blaster/app/public/butterfly/sfx/moth-flap-5.wav differdiff --git a/third_party/image-blaster/app/public/butterfly/sfx/moth-flap-6.wav b/third_party/image-blaster/app/public/butterfly/sfx/moth-flap-6.wavnew file mode 100644index 000000000..05be10dbeBinary files /dev/null and b/third_party/image-blaster/app/public/butterfly/sfx/moth-flap-6.wav differdiff --git a/third_party/image-blaster/app/public/butterfly/sfx/moth-flap-7.wav b/third_party/image-blaster/app/public/butterfly/sfx/moth-flap-7.wavnew file mode 100644index 000000000..b692152e8Binary files /dev/null and b/third_party/image-blaster/app/public/butterfly/sfx/moth-flap-7.wav differdiff --git a/third_party/image-blaster/app/public/butterfly/sfx/moth-flap-8.wav b/third_party/image-blaster/app/public/butterfly/sfx/moth-flap-8.wavnew file mode 100644index 000000000..1fb9d4b93Binary files /dev/null and b/third_party/image-blaster/app/public/butterfly/sfx/moth-flap-8.wav differdiff --git a/third_party/image-blaster/app/public/butterfly/sfx/wing-flap-loop.wav b/third_party/image-blaster/app/public/butterfly/sfx/wing-flap-loop.wavnew file mode 100644index 000000000..158127eceBinary files /dev/null and b/third_party/image-blaster/app/public/butterfly/sfx/wing-flap-loop.wav differdiff --git a/third_party/image-blaster/app/public/hdri.jpg b/third_party/image-blaster/app/public/hdri.jpgnew file mode 100644index 000000000..44fc2be5aBinary files /dev/null and b/third_party/image-blaster/app/public/hdri.jpg differdiff --git a/third_party/image-blaster/app/public/worlds b/third_party/image-blaster/app/public/worldsnew file mode 120000index 000000000..b37a593ab--- /dev/null+++ b/third_party/image-blaster/app/public/worlds@@ -0,0 +1 @@+../../worlds\ No newline at end of filediff --git a/third_party/image-blaster/app/scripts/export_butterfly.py b/third_party/image-blaster/app/scripts/export_butterfly.pynew file mode 100644index 000000000..22ca16f73--- /dev/null+++ b/third_party/image-blaster/app/scripts/export_butterfly.py@@ -0,0 +1,35 @@+"""Headless Blender export: butterfly .blend -> .glb with embedded animation."""+import bpy+import sys+import os++argv = sys.argv+if "--" in argv:+ argv = argv[argv.index("--") + 1 :]+else:+ argv = []++if len(argv) < 2:+ print("usage: blender -b -P export_butterfly.py -- <input.blend> <output.glb>")+ sys.exit(1)++src, dst = argv[0], argv[1]++bpy.ops.wm.open_mainfile(filepath=src)++bpy.ops.object.select_all(action="SELECT")++os.makedirs(os.path.dirname(dst) or ".", exist_ok=True)++bpy.ops.export_scene.gltf(+ filepath=dst,+ export_format="GLB",+ export_animations=True,+ export_animation_mode="ACTIONS",+ export_force_sampling=True,+ export_skins=True,+ export_apply=False,+ export_yup=True,+)++print(f"Wrote {dst}")diff --git a/third_party/image-blaster/app/src/App.tsx b/third_party/image-blaster/app/src/App.tsxnew file mode 100644index 000000000..9f77e23c5--- /dev/null+++ b/third_party/image-blaster/app/src/App.tsx@@ -0,0 +1,230 @@+import { Suspense, lazy, useCallback, useEffect, useRef, useState } from 'react'+import { useRoute, useLocation, Redirect } from 'wouter'+import { WorldViewer } from './components/WorldViewer'+import { WorldSidebar } from './components/WorldSidebar'+import { BottomLeftControls, ViewerModeHotkeys } from './components/BottomLeftControls'+import { TouchControls } from './components/TouchControls'+import { useSceneProject } from './modules/scene/useSceneProject'+import { fetchWorlds, loadWorlds } from './utils/worldLoader'+import { useDebugStore } from './store/debug'+import { isEditableTarget } from './utils/dom'+import type { WorldEntry, WorldHoverPreview, WorldObjectAsset } from './types/world'+import { TerminalWindowIcon } from '@phosphor-icons/react'++const LevaPanel = import.meta.env.DEV+ ? lazy(() => import('leva').then((module) => ({ default: module.Leva })))+ : null+const DebugPanel = import.meta.env.DEV+ ? lazy(() => import('./components/DebugPanel').then((module) => ({ default: module.DebugPanel })))+ : null++export function App() {+ const [worlds, setWorlds] = useState(loadWorlds)+ const [refreshingWorlds, setRefreshingWorlds] = useState(false)+ const refreshTimeoutRef = useRef<number | undefined>(undefined)++ const refreshWorlds = useCallback(async () => {+ if (!import.meta.env.DEV) return+ setRefreshingWorlds(true)+ try {+ setWorlds(await fetchWorlds())+ } catch (error) {+ console.warn('Could not refresh local world assets.', error)+ } finally {+ setRefreshingWorlds(false)+ }+ }, [])++ useEffect(() => {+ refreshWorlds()+ }, [refreshWorlds])++ useEffect(() => {+ if (!import.meta.env.DEV) return++ const refreshSoon = () => {+ window.clearTimeout(refreshTimeoutRef.current)+ refreshTimeoutRef.current = window.setTimeout(() => {+ void refreshWorlds()+ }, 150)+ }++ import.meta.hot?.on('worlds-changed', refreshSoon)+ return () => {+ window.clearTimeout(refreshTimeoutRef.current)+ import.meta.hot?.off('worlds-changed', refreshSoon)+ }+ }, [refreshWorlds])++ if (!worlds.length) {+ return (+ <div className="flex items-center justify-center h-screen text-white bg-black">+ No worlds found in worlds/+ </div>+ )+ }++ return (+ <LoadedApp+ worlds={worlds}+ refreshingWorlds={refreshingWorlds}+ onRefreshWorlds={refreshWorlds}+ />+ )+}++function LoadedApp({+ worlds,+ refreshingWorlds,+ onRefreshWorlds,+}: {+ worlds: WorldEntry[]+ refreshingWorlds: boolean+ onRefreshWorlds: () => void+}) {+ const [editMatch, editParams] = useRoute('/:slug/edit')+ const [match, params] = useRoute('/:slug')+ const levaCollapsed = useDebugStore((s) => s.levaCollapsed)+ const setLevaCollapsed = useDebugStore((s) => s.setLevaCollapsed)+ const [location] = useLocation()+ const [uiHidden, setUiHidden] = useState(false)+ const [sceneProjectEnabled, setSceneProjectEnabled] = useState(true)+ const [selectedWorldVersions, setSelectedWorldVersions] = useState<Record<string, number>>({})+ const [hoveredObjectAssetId, setHoveredObjectAssetId] = useState<string | null>(null)+ const [hoveredObjectInstanceId, setHoveredObjectInstanceId] = useState<string | null>(null)+ const [hoveredWorldPreview, setHoveredWorldPreview] = useState<WorldHoverPreview | null>(null)++ const slug = editParams?.slug ?? params?.slug ?? worlds[0].slug+ const entry = worlds.find((w) => w.slug === slug) ?? worlds[0]+ const editing = Boolean(editMatch)+ const showLeva = import.meta.env.VITE_SHOW_LEVA === 'true'+ const uiVisible = !uiHidden+ const defaultWorldVersionIndex = entry.worldVersions[entry.worldVersions.length - 1]?.index+ const activeWorldVersionIndex = selectedWorldVersions[entry.slug] ?? defaultWorldVersionIndex+ const activeWorldVersion = entry.worldVersions.find((version) => version.index === activeWorldVersionIndex)+ const activeWorld = activeWorldVersion?.world ?? entry.world+ const renderableObjectAssets = entry.objectAssets.filter((asset) => asset.complete && asset.url)+ const renderableAllObjectAssets = entry.allObjectAssets.filter((asset) => asset.complete && asset.url)+ const hasSidebarWorldRow = Boolean(activeWorldVersion || (activeWorld && Object.values(activeWorld.assets.splats.spz_urls).some(Boolean)))+ const emptyWorld = !hasSidebarWorldRow && !entry.objectAssets.length+ const { sceneProject, sceneProjectReady, updateSceneProject } = useSceneProject(entry.slug, location, entry.sceneProject)+ const sceneProjectActive = Boolean(sceneProject && sceneProjectEnabled)++ useEffect(() => {+ setSceneProjectEnabled(true)+ setHoveredObjectAssetId(null)+ setHoveredObjectInstanceId(null)+ setHoveredWorldPreview(null)+ }, [entry.slug])++ const handleObjectHover = useCallback((asset: WorldObjectAsset, hovering: boolean, instanceId?: string) => {+ setHoveredObjectAssetId((current) => {+ if (hovering) return asset.assetId+ return current === asset.assetId ? null : current+ })+ setHoveredObjectInstanceId((current) => {+ if (hovering) return instanceId ?? null+ return current === instanceId ? null : current+ })+ }, [])++ const handleWorldHover = useCallback((preview: WorldHoverPreview, hovering: boolean) => {+ setHoveredWorldPreview((current) => {+ if (hovering) return preview+ return current?.slug === preview.slug ? null : current+ })+ }, [])++ useEffect(() => {+ const onKeyDown = (event: KeyboardEvent) => {+ if (isEditableTarget(event.target)) return+ if (event.code !== 'Backquote') return+ event.preventDefault()+ setUiHidden((hidden) => !hidden)+ }++ window.addEventListener('keydown', onKeyDown)+ return () => window.removeEventListener('keydown', onKeyDown)+ }, [])++ if (!editMatch && !match) {+ return <Redirect to={`/${worlds[0].slug}`} />+ }++ return (+ <div className="relative w-screen h-screen bg-black overflow-hidden select-none [&_*]:focus:outline-none [&_*]:focus-visible:outline-none [&_*]:focus:ring-0 [&_*]:focus-visible:ring-0">+ <ViewerModeHotkeys />+ {!editing && LevaPanel && DebugPanel && showLeva && uiVisible && (+ <div className="hidden md:block">+ <Suspense fallback={null}>+ <LevaPanel+ collapsed={{ collapsed: levaCollapsed, onChange: setLevaCollapsed }}+ theme={{ sizes: { rootWidth: '380px', controlWidth: '180px' } }}+ />+ <DebugPanel />+ </Suspense>+ </div>+ )}+ <WorldViewer+ world={activeWorld}+ slug={entry.slug}+ sourceImageUrl={entry.sourceImageUrl}+ hoveredWorldPreview={hoveredWorldPreview}+ objectAssets={renderableObjectAssets}+ allObjectAssets={renderableAllObjectAssets}+ worldSfxUrls={entry.worldSfxUrls}+ sceneProject={editing || sceneProjectEnabled ? sceneProject : undefined}+ sceneProjectReady={sceneProjectReady}+ hoveredObjectAssetId={hoveredObjectAssetId}+ hoveredObjectInstanceId={hoveredObjectInstanceId}+ editing={editing}+ uiVisible={uiVisible}+ onObjectHover={handleObjectHover}+ onSceneProjectSaved={updateSceneProject}+ onRefreshWorlds={onRefreshWorlds}+ refreshingWorlds={refreshingWorlds}+ />+ {!editing && uiVisible && emptyWorld && (+ <div className="pointer-events-none fixed inset-0 z-10 flex items-center justify-center px-6 gap-2">+ <div className="bg-black/25 rounded px-2 py-1 flex items-center gap-2">+ <TerminalWindowIcon size={18} weight="regular" className='animate-pulse' />+ <span className="truncate text-center font-mono text-sm text-white/75">+ waiting for objects and environment...+ </span>+ </div>+ </div>+ )}+ {uiVisible && (+ <div className={`fixed inset-x-4 top-4 sm:left-4 sm:right-auto ${editing ? 'z-30' : 'z-10'}`}>+ <WorldSidebar+ worlds={worlds}+ activeSlug={entry.slug}+ compact={editing}+ activeSceneProject={sceneProject}+ activeSceneProjectEnabled={sceneProjectActive}+ onActiveSceneProjectToggle={() => setSceneProjectEnabled((enabled) => !enabled)}+ activeWorldVersionIndex={activeWorldVersionIndex}+ hoveredObjectAssetId={hoveredObjectAssetId}+ hoveredObjectInstanceId={hoveredObjectInstanceId}+ onObjectHover={handleObjectHover}+ onWorldHover={handleWorldHover}+ onActiveWorldVersionChange={(index) => setSelectedWorldVersions((versions) => ({+ ...versions,+ [entry.slug]: index,+ }))}+ />+ </div>+ )}+ {!editing && uiVisible && (+ <>+ <TouchControls />+ </>+ )}+ {uiVisible && (+ <div className="fixed inset-x-0 bottom-4 z-20 flex justify-center px-4 sm:left-4 sm:right-auto sm:justify-start sm:px-0">+ <BottomLeftControls />+ </div>+ )}+ </div>+ )+}diff --git a/third_party/image-blaster/app/src/components/AppButton.tsx b/third_party/image-blaster/app/src/components/AppButton.tsxnew file mode 100644index 000000000..4b02d8a80--- /dev/null+++ b/third_party/image-blaster/app/src/components/AppButton.tsx@@ -0,0 +1,25 @@+import type { ButtonHTMLAttributes } from 'react'+import { twMerge } from 'tailwind-merge'++interface AppButtonProps extends ButtonHTMLAttributes<HTMLButtonElement> {+ active?: boolean+}++export function AppButton({+ active,+ className = '',+ type = 'button',+ ...props+}: AppButtonProps) {+ return (+ <button+ type={type}+ className={twMerge(+ 'inline-flex items-center text-xs gap-2 justify-start rounded px-2 py-1 opacity-80 transition-[background-color,opacity] hover:bg-white/10 hover:opacity-100',+ active && 'opacity-100',+ className,+ )}+ {...props}+ />+ )+}diff --git a/third_party/image-blaster/app/src/components/AppChrome.tsx b/third_party/image-blaster/app/src/components/AppChrome.tsxnew file mode 100644index 000000000..87564b997--- /dev/null+++ b/third_party/image-blaster/app/src/components/AppChrome.tsx@@ -0,0 +1,47 @@+import type { ReactNode } from 'react'+import { Cube } from '@phosphor-icons/react'+import { twMerge } from 'tailwind-merge'++export const chrome = {+ enter: 'chrome-enter',+ panel: 'rounded border border-white/15 bg-black/70 shadow-lg backdrop-blur-md',+ bar: 'rounded border border-white/15 bg-black/70 p-1 shadow-lg backdrop-blur-md',+ sectionHeader: 'flex items-center justify-between border-b border-white/10 px-2 py-1 text-xs font-sm tracking-wide text-white/55',+ row: 'group flex items-center gap-1 rounded transition-[background-color,opacity]',+ rowIdle: 'opacity-80 hover:bg-white/10 hover:opacity-100',+ rowActive: 'bg-white/15 opacity-100',+ divider: 'h-6 w-px bg-white/15',+ iconButton: 'h-8 w-8 justify-center',+}++export function ChromePanel({+ children,+ className = '',+}: {+ children: ReactNode+ className?: string+}) {+ return <div className={twMerge(chrome.panel, className)}>{children}</div>+}++export function ChromeThumbnail({+ thumbnailUrl,+ alt = '',+}: {+ thumbnailUrl?: string+ alt?: string+}) {+ if (!thumbnailUrl) {+ return (+ <span className="flex h-7 w-7 flex-shrink-0 items-center justify-center rounded bg-white/10 text-white/35 ring-1 ring-white/10">+ <Cube size={14} weight="regular" />+ </span>+ )+ }++ return (+ <span className="relative h-7 w-7 flex-shrink-0 overflow-hidden rounded bg-white/10 ring-1 ring-white/10">+ <img src={thumbnailUrl} alt={alt} className="h-full w-full object-cover" />+ </span>+ )+}diff --git a/third_party/image-blaster/app/src/components/BottomLeftControls.tsx b/third_party/image-blaster/app/src/components/BottomLeftControls.tsxnew file mode 100644index 000000000..8596c6c9a--- /dev/null+++ b/third_party/image-blaster/app/src/components/BottomLeftControls.tsx@@ -0,0 +1,120 @@+import {+ GlobeSimple,+ Sphere,+ GlobeHemisphereEast,+ ParkIcon,+ MountainsIcon,+ CubeIcon,+} from '@phosphor-icons/react'+import { Tooltip } from '@radix-ui/themes'+import { type ReactElement, useEffect } from 'react'+import { useDebugStore } from '../store/debug'+import { ObjectRenderMode, ViewerQuality, WorldRenderMode } from '../types/world'+import { isEditableTarget } from '../utils/dom'+import { AppButton } from './AppButton'+import { chrome } from './AppChrome'++const OBJECT_MODES = [+ { mode: ObjectRenderMode.Lit, Icon: GlobeHemisphereEast, label: 'Lit' },+ { mode: ObjectRenderMode.ShadedWireframe, Icon: Sphere, label: 'Shaded Wireframe' },+ { mode: ObjectRenderMode.Wireframe, Icon: GlobeSimple, label: 'Wireframe' },+] as const++const WORLD_MODES = [+ { mode: WorldRenderMode.Combined, Icon: ParkIcon, label: 'Scene + Objects' },+ { mode: WorldRenderMode.SplatOnly, Icon: MountainsIcon, label: 'Scene' },+ { mode: WorldRenderMode.ObjectOnly, Icon: CubeIcon, label: 'Objects' },+] as const++const DIGIT_KEY_INDEX: Record<string, number> = {+ Digit1: 0,+ Digit2: 1,+ Digit3: 2,+}++const QUALITY_MODE_KEYS = [ViewerQuality.Low, ViewerQuality.High] as const+const OBJECT_MODE_KEYS = [ObjectRenderMode.Lit, ObjectRenderMode.ShadedWireframe, ObjectRenderMode.Wireframe] as const+const WORLD_MODE_KEYS = [WorldRenderMode.Combined, WorldRenderMode.SplatOnly, WorldRenderMode.ObjectOnly] as const++function ControlTooltip({ content, children }: { content: string; children: ReactElement }) {+ return (+ <Tooltip content={content} delayDuration={0} side="top">+ {children}+ </Tooltip>+ )+}++export function ViewerModeHotkeys() {+ const setViewerQuality = useDebugStore((s) => s.setViewerQuality)+ const setObjectRenderMode = useDebugStore((s) => s.setObjectRenderMode)+ const setWorldRenderMode = useDebugStore((s) => s.setWorldRenderMode)++ useEffect(() => {+ const onKey = (e: KeyboardEvent) => {+ if (isEditableTarget(e.target)) return+ const n = DIGIT_KEY_INDEX[e.code]+ if (n === undefined) return+ if (e.altKey && e.shiftKey) {+ const quality = QUALITY_MODE_KEYS[n]+ if (quality) {+ e.preventDefault()+ setViewerQuality(quality)+ }+ } else if (e.altKey) {+ e.preventDefault()+ setObjectRenderMode(OBJECT_MODE_KEYS[n])+ } else if (e.shiftKey) {+ e.preventDefault()+ setWorldRenderMode(WORLD_MODE_KEYS[n])+ }+ }+ window.addEventListener('keydown', onKey)+ return () => window.removeEventListener('keydown', onKey)+ }, [setObjectRenderMode, setViewerQuality, setWorldRenderMode])++ return null+}++export function BottomLeftControls() {+ const objectRenderMode = useDebugStore((s) => s.objectRenderMode)+ const setObjectRenderMode = useDebugStore((s) => s.setObjectRenderMode)+ const worldRenderMode = useDebugStore((s) => s.worldRenderMode)+ const setWorldRenderMode = useDebugStore((s) => s.setWorldRenderMode)++ const modeBtn = (active: boolean) =>+ `w-8 h-8 justify-center rounded ${+ active ? 'bg-white/15 text-white' : 'text-white'+ }`++ return (+ <div className={`${chrome.enter} flex w-full items-center justify-center gap-2 sm:w-auto`}>+ <div className={`${chrome.bar} flex h-10 items-center gap-1`}>+ {WORLD_MODES.map(({ mode, Icon, label }) => (+ <ControlTooltip key={mode} content={label}>+ <AppButton+ onClick={() => setWorldRenderMode(mode)}+ active={worldRenderMode === mode}+ className={modeBtn(worldRenderMode === mode)}+ >+ <Icon size={17} weight={worldRenderMode === mode ? 'fill' : 'regular'} />+ </AppButton>+ </ControlTooltip>+ ))}+ </div>++ <div className={`${chrome.bar} flex h-10 items-center gap-1`}>+ {OBJECT_MODES.map(({ mode, Icon, label }) => (+ <ControlTooltip key={mode} content={label}>+ <AppButton+ onClick={() => setObjectRenderMode(mode)}+ active={objectRenderMode === mode}+ className={modeBtn(objectRenderMode === mode)}+ >+ <Icon size={17} weight={objectRenderMode === mode ? 'fill' : 'regular'} />+ </AppButton>+ </ControlTooltip>+ ))}+ </div>+ </div>+ )+}diff --git a/third_party/image-blaster/app/src/components/DebugPanel.tsx b/third_party/image-blaster/app/src/components/DebugPanel.tsxnew file mode 100644index 000000000..3fdf15895--- /dev/null+++ b/third_party/image-blaster/app/src/components/DebugPanel.tsx@@ -0,0 +1,305 @@+import { useEffect } from 'react'+import { useControls, button, folder } from 'leva'+import { useDebugStore } from '../store/debug'+import { useButterflyStore } from '../modules/butterfly/store'+import { FOLDER_ORDER, PARAM_SPECS, DEFAULT_PARAMS, type ButterflyParams } from '../modules/butterfly/params'++function clearLocalStorageAndReload() {+ window.localStorage.clear()+ window.location.reload()+}++type ButterflySpec = (typeof PARAM_SPECS)[keyof typeof PARAM_SPECS]+// Leva schema composition is intentionally dynamic because butterfly params are data-driven.+// eslint-disable-next-line @typescript-eslint/no-explicit-any+type AnySchema = any++function specToLeva(spec: ButterflySpec) {+ const out: Record<string, unknown> = { value: spec.value }+ if ('min' in spec) {+ out.min = spec.min+ out.max = spec.max+ out.step = spec.step+ }+ if ('label' in spec && spec.label) out.label = spec.label+ return out+}++function createButterflyLevaSchema() {+ const root: Record<string, AnySchema> = {}+ for (const [key, spec] of Object.entries(PARAM_SPECS)) {+ if (spec.folder === null) root[key] = specToLeva(spec)+ }+ for (const f of FOLDER_ORDER) {+ const entries: Record<string, AnySchema> = {}+ for (const [key, spec] of Object.entries(PARAM_SPECS)) {+ if (spec.folder === f) entries[key] = specToLeva(spec)+ }+ if (Object.keys(entries).length > 0) {+ root[f] = folder(entries, { collapsed: false })+ }+ }+ return root+}++const BUTTERFLY_LEVA_SCHEMA = createButterflyLevaSchema()++function dumpParams() {+ const debug = useDebugStore.getState()+ const dof = {+ dofEnabled: debug.dofEnabled,+ focalDistance: debug.focalDistance,+ apertureAngle: debug.apertureAngle,+ falloff: debug.falloff,+ sharpRange: debug.sharpRange,+ falloffRate: debug.falloffRate,+ }++ const post = {+ bloomEnabled: debug.bloomEnabled,+ bloomIntensity: debug.bloomIntensity,+ bloomThreshold: debug.bloomThreshold,+ chromaticEnabled: debug.chromaticEnabled,+ chromaticOffset: debug.chromaticOffset,+ motionBlurEnabled: debug.motionBlurEnabled,+ motionBlurStrength: debug.motionBlurStrength,+ }++ const lighting = {+ environmentIntensity: debug.environmentIntensity,+ sunIntensity: debug.sunIntensity,+ sunColor: debug.sunColor,+ }++ const out: Record<string, unknown> = { dof, post, lighting }+ out.viewerQuality = debug.viewerQuality+ out.worldRenderMode = debug.worldRenderMode+ out.objectRenderMode = debug.objectRenderMode++ if (debug.butterfliesEnabled) {+ const bf = useButterflyStore.getState()+ const butterfly: Record<string, unknown> = {}+ for (const k of Object.keys(DEFAULT_PARAMS) as Array<keyof ButterflyParams>) {+ butterfly[k] = bf[k]+ }+ out.butterfly = butterfly+ }+ out.flyMouseSensitivity = debug.flyMouseSensitivity++ const json = JSON.stringify(out, null, 2)+ // eslint-disable-next-line no-console+ console.log('[debug params]\n' + json)+ if (typeof navigator !== 'undefined' && navigator.clipboard) {+ navigator.clipboard.writeText(json).catch(() => {})+ }+}++export function DebugPanel() {+ const showOrigin = useDebugStore((s) => s.showOrigin)+ const setShowOrigin = useDebugStore((s) => s.setShowOrigin)+ const butterfliesEnabled = useDebugStore((s) => s.butterfliesEnabled)+ const setButterfliesEnabled = useDebugStore((s) => s.setButterfliesEnabled)+ const controllerMode = useDebugStore((s) => s.controllerMode)+ const setControllerMode = useDebugStore((s) => s.setControllerMode)+ const flyMouseSensitivity = useDebugStore((s) => s.flyMouseSensitivity)+ const dofEnabled = useDebugStore((s) => s.dofEnabled)+ const focalDistance = useDebugStore((s) => s.focalDistance)+ const apertureAngle = useDebugStore((s) => s.apertureAngle)+ const falloff = useDebugStore((s) => s.falloff)+ const sharpRange = useDebugStore((s) => s.sharpRange)+ const falloffRate = useDebugStore((s) => s.falloffRate)+ const bloomEnabled = useDebugStore((s) => s.bloomEnabled)+ const bloomIntensity = useDebugStore((s) => s.bloomIntensity)+ const bloomThreshold = useDebugStore((s) => s.bloomThreshold)+ const chromaticEnabled = useDebugStore((s) => s.chromaticEnabled)+ const chromaticOffset = useDebugStore((s) => s.chromaticOffset)+ const motionBlurEnabled = useDebugStore((s) => s.motionBlurEnabled)+ const motionBlurStrength = useDebugStore((s) => s.motionBlurStrength)+ const environmentIntensity = useDebugStore((s) => s.environmentIntensity)+ const sunIntensity = useDebugStore((s) => s.sunIntensity)+ const sunColor = useDebugStore((s) => s.sunColor)+ const setDofEnabled = useDebugStore((s) => s.setDofEnabled)+ const setFocalDistance = useDebugStore((s) => s.setFocalDistance)+ const setApertureAngle = useDebugStore((s) => s.setApertureAngle)+ const setFalloff = useDebugStore((s) => s.setFalloff)+ const setSharpRange = useDebugStore((s) => s.setSharpRange)+ const setFalloffRate = useDebugStore((s) => s.setFalloffRate)+ const setBloomEnabled = useDebugStore((s) => s.setBloomEnabled)+ const setBloomIntensity = useDebugStore((s) => s.setBloomIntensity)+ const setBloomThreshold = useDebugStore((s) => s.setBloomThreshold)+ const setChromaticEnabled = useDebugStore((s) => s.setChromaticEnabled)+ const setChromaticOffset = useDebugStore((s) => s.setChromaticOffset)+ const setMotionBlurEnabled = useDebugStore((s) => s.setMotionBlurEnabled)+ const setMotionBlurStrength = useDebugStore((s) => s.setMotionBlurStrength)+ const setEnvironmentIntensity = useDebugStore((s) => s.setEnvironmentIntensity)+ const setSunIntensity = useDebugStore((s) => s.setSunIntensity)+ const setSunColor = useDebugStore((s) => s.setSunColor)+ const setFlyMouseSensitivity = useDebugStore((s) => s.setFlyMouseSensitivity)++ useControls({+ 'Clear Local Storage + Reload': button(clearLocalStorageAndReload),+ 'Dump Params (copy JSON)': button(dumpParams),+ Scene: folder({+ showOrigin: {+ value: showOrigin,+ label: 'Show Origin',+ onChange: setShowOrigin,+ },+ butterfliesEnabled: {+ value: butterfliesEnabled,+ label: 'Butterflies',+ onChange: setButterfliesEnabled,+ },+ }),+ 'Splat DoF': folder({+ dofEnabled: {+ value: dofEnabled,+ label: 'Enabled',+ onChange: setDofEnabled,+ },+ focalDistance: {+ value: focalDistance,+ min: 0.1,+ max: 50,+ step: 0.1,+ label: 'Focal Distance',+ onChange: setFocalDistance,+ },+ apertureAngle: {+ value: apertureAngle,+ min: 0,+ max: 0.3,+ step: 0.001,+ label: 'Aperture (rad)',+ onChange: setApertureAngle,+ },+ falloff: {+ value: falloff,+ min: 0,+ max: 1,+ step: 0.01,+ label: 'Falloff (0=disk)',+ onChange: setFalloff,+ },+ sharpRange: {+ value: sharpRange,+ min: 0,+ max: 20,+ step: 0.1,+ label: 'Sharp Range',+ onChange: setSharpRange,+ },+ falloffRate: {+ value: falloffRate,+ min: 0.01,+ max: 2,+ step: 0.01,+ label: 'Exp Rate',+ onChange: setFalloffRate,+ },+ }),+ 'Post FX': folder({+ bloomEnabled: {+ value: bloomEnabled,+ label: 'Bloom',+ onChange: setBloomEnabled,+ },+ bloomIntensity: {+ value: bloomIntensity,+ min: 0,+ max: 3,+ step: 0.01,+ label: 'Bloom Intensity',+ onChange: setBloomIntensity,+ },+ bloomThreshold: {+ value: bloomThreshold,+ min: 0,+ max: 5,+ step: 0.01,+ label: 'Bloom Threshold',+ onChange: setBloomThreshold,+ },+ chromaticEnabled: {+ value: chromaticEnabled,+ label: 'Chromatic Aberr.',+ onChange: setChromaticEnabled,+ },+ chromaticOffset: {+ value: chromaticOffset,+ min: 0,+ max: 0.01,+ step: 0.0001,+ label: 'Chromatic Offset',+ onChange: setChromaticOffset,+ },+ motionBlurEnabled: {+ value: motionBlurEnabled,+ label: 'Motion Blur',+ onChange: setMotionBlurEnabled,+ },+ motionBlurStrength: {+ value: motionBlurStrength,+ min: 0,+ max: 2,+ step: 0.01,+ label: 'Motion Blur Str.',+ onChange: setMotionBlurStrength,+ },+ }),+ Lighting: folder({+ environmentIntensity: {+ value: environmentIntensity,+ min: 0,+ max: 5,+ step: 0.01,+ label: 'Env Strength',+ onChange: setEnvironmentIntensity,+ },+ sunIntensity: {+ value: sunIntensity,+ min: 0,+ max: 10,+ step: 0.01,+ label: 'Sun Strength',+ onChange: setSunIntensity,+ },+ sunColor: {+ value: sunColor,+ label: 'Sun Color',+ onChange: setSunColor,+ },+ }),+ controllerMode: {+ value: controllerMode,+ options: { Fly: 'fly', FPS: 'fps' },+ label: 'Controller',+ onChange: (v: string) => setControllerMode(v as typeof controllerMode),+ },+ flyMouseSensitivity: {+ value: flyMouseSensitivity,+ min: 0.0005,+ max: 0.02,+ step: 0.0005,+ label: 'Fly Mouse Sens.',+ onChange: setFlyMouseSensitivity,+ },+ })++ return butterfliesEnabled ? <ButterflyLevaBridge /> : null+}++function ButterflyLevaBridge() {+ const values = useControls(BUTTERFLY_LEVA_SCHEMA) as unknown as ButterflyParams++ useEffect(() => {+ const state = useButterflyStore.getState()+ const keys = Object.keys(DEFAULT_PARAMS) as Array<keyof ButterflyParams>+ for (const k of keys) {+ const v = values[k]+ if (v !== undefined && v !== state[k]) state.setParam(k, v)+ }+ }, [values])++ return null+}diff --git a/third_party/image-blaster/app/src/components/TouchControls.tsx b/third_party/image-blaster/app/src/components/TouchControls.tsxnew file mode 100644index 000000000..9375a969f--- /dev/null+++ b/third_party/image-blaster/app/src/components/TouchControls.tsx@@ -0,0 +1,93 @@+import { useEffect, useRef, useState } from 'react'+import { useDebugStore } from '../store/debug'++interface JoystickState {+ origin: { x: number; y: number } | null+ current: { x: number; y: number } | null+}++const MAX_RADIUS = 40++export function TouchControls() {+ const controllerMode = useDebugStore((s) => s.controllerMode)+ const [joystick, setJoystick] = useState<JoystickState>({ origin: null, current: null })+ const touchIdRef = useRef<number | null>(null)++ useEffect(() => {+ if (controllerMode !== 'fps') {+ touchIdRef.current = null+ setJoystick({ origin: null, current: null })+ return+ }++ const onStart = (e: TouchEvent) => {+ for (const touch of Array.from(e.changedTouches)) {+ if (touch.clientX < window.innerWidth / 2 && touchIdRef.current === null) {+ touchIdRef.current = touch.identifier+ setJoystick({+ origin: { x: touch.clientX, y: touch.clientY },+ current: { x: touch.clientX, y: touch.clientY },+ })+ }+ }+ }+ const onMove = (e: TouchEvent) => {+ for (const touch of Array.from(e.changedTouches)) {+ if (touch.identifier === touchIdRef.current) {+ setJoystick((prev) =>+ prev.origin+ ? { ...prev, current: { x: touch.clientX, y: touch.clientY } }+ : prev,+ )+ }+ }+ }+ const onEnd = (e: TouchEvent) => {+ for (const touch of Array.from(e.changedTouches)) {+ if (touch.identifier === touchIdRef.current) {+ touchIdRef.current = null+ setJoystick({ origin: null, current: null })+ }+ }+ }++ window.addEventListener('touchstart', onStart, { passive: true })+ window.addEventListener('touchmove', onMove, { passive: true })+ window.addEventListener('touchend', onEnd, { passive: true })+ return () => {+ window.removeEventListener('touchstart', onStart)+ window.removeEventListener('touchmove', onMove)+ window.removeEventListener('touchend', onEnd)+ }+ }, [controllerMode])++ if (controllerMode !== 'fps' || !joystick.origin) return null++ const dx = Math.max(-MAX_RADIUS, Math.min(MAX_RADIUS, (joystick.current?.x ?? joystick.origin.x) - joystick.origin.x))+ const dy = Math.max(-MAX_RADIUS, Math.min(MAX_RADIUS, (joystick.current?.y ?? joystick.origin.y) - joystick.origin.y))++ return (+ <div className="fixed inset-0 pointer-events-none md:hidden z-20">+ {/* Joystick base */}+ <div+ className="absolute rounded-full border-2 border-white/30 bg-white/10"+ style={{+ width: MAX_RADIUS * 2 + 40,+ height: MAX_RADIUS * 2 + 40,+ left: joystick.origin.x - (MAX_RADIUS + 20),+ top: joystick.origin.y - (MAX_RADIUS + 20),+ }}+ />+ {/* Joystick dot */}+ <div+ className="absolute rounded-full bg-white/60"+ style={{+ width: 28,+ height: 28,+ left: joystick.origin.x + dx - 14,+ top: joystick.origin.y + dy - 14,+ }}+ />+ </div>+ )+}diff --git a/third_party/image-blaster/app/src/components/WorldSidebar.tsx b/third_party/image-blaster/app/src/components/WorldSidebar.tsxnew file mode 100644index 000000000..fae43e9e9--- /dev/null+++ b/third_party/image-blaster/app/src/components/WorldSidebar.tsx@@ -0,0 +1,464 @@+import { useState } from 'react'+import { Tooltip } from '@radix-ui/themes'+import { ArrowCounterClockwise, ButterflyIcon, CheckSquareIcon, FileTextIcon, FolderOpenIcon, GlobeHemisphereWestIcon, ImageSquareIcon, ListIcon, PencilSimpleIcon, PersonIcon, QuestionMarkIcon, SpeakerHigh, SpeakerSlash, SquareIcon, TerminalWindowIcon } from '@phosphor-icons/react'+import { useLocation } from 'wouter'+import type { WorldEntry, WorldHoverPreview, WorldObjectAsset, WorldSceneProject } from '../types/world'+import { type ControllerMode, useDebugStore } from '../store/debug'+import { useAudioStore } from '../store/audio'+import { ViewerQuality } from '../types/world'+import { AppButton } from './AppButton'+import { ChromeThumbnail, chrome } from './AppChrome'++const CONTROLLER_MODES: readonly { mode: ControllerMode; label: string }[] = [+ { mode: 'fly', label: 'Fly' },+ { mode: 'fps', label: 'FPS' },+]++const QUALITY_MODES = [+ { mode: ViewerQuality.Low, label: 'Low' },+ { mode: ViewerQuality.High, label: 'High' },+] as const++function nextMode<T>(items: readonly { mode: T }[], current: T) {+ const index = items.findIndex((item) => item.mode === current)+ return items[(index + 1) % items.length].mode+}++interface Props {+ worlds: WorldEntry[]+ activeSlug: string+ compact?: boolean+ activeSceneProject?: WorldSceneProject+ activeSceneProjectEnabled: boolean+ onActiveSceneProjectToggle: () => void+ activeWorldVersionIndex?: number+ hoveredObjectAssetId?: string | null+ hoveredObjectInstanceId?: string | null+ onObjectHover?: (asset: WorldObjectAsset, hovering: boolean, instanceId?: string) => void+ onWorldHover?: (preview: WorldHoverPreview, hovering: boolean) => void+ onActiveWorldVersionChange: (index: number) => void+}++export function WorldSidebar({+ worlds,+ activeSlug,+ compact = false,+ activeSceneProject,+ activeSceneProjectEnabled,+ onActiveSceneProjectToggle,+ activeWorldVersionIndex,+ hoveredObjectAssetId,+ hoveredObjectInstanceId,+ onObjectHover,+ onWorldHover,+ onActiveWorldVersionChange,+}: Props) {+ const [, navigate] = useLocation()+ const [menuOpen, setMenuOpen] = useState(false)+ const butterfliesEnabled = useDebugStore((s) => s.butterfliesEnabled)+ const setButterfliesEnabled = useDebugStore((s) => s.setButterfliesEnabled)+ const canOpenLocalFolders = import.meta.env.DEV++ const selectWorld = (slug: string) => {+ navigate(`/${slug}`)+ setMenuOpen(false)+ }++ const openClaudeTerminal = () => {+ fetch('/__open-claude-terminal').catch((error) => {+ console.warn('Could not open Claude terminal.', error)+ })+ }++ const openWorldFolder = (slug: string) => {+ fetch(`/__open-world-folder?slug=${encodeURIComponent(slug)}`).catch((error) => {+ console.warn(`Could not open world folder for "${slug}".`, error)+ })+ }++ const openAssetFolder = (slug: string, target: 'scene' | 'world-asset' | 'object-asset', asset?: string) => {+ const params = new URLSearchParams({ slug, target })+ if (asset) params.set('asset', asset)+ fetch(`/__open-world-folder?${params.toString()}`).catch((error) => {+ console.warn(`Could not open ${target} folder for "${slug}".`, error)+ })+ }++ return (+ <aside className={`${chrome.enter} ${compact ? 'w-64 max-w-[calc(100vw-2rem)]' : 'w-full sm:w-64 max-h-[80vh]'} flex flex-col gap-1 whitespace-nowrap text-sm`}>+ <div className={`${chrome.bar} flex flex-shrink-0 items-center justify-between px-2 py-1 text-sm font-medium font-mono`}>+ <AppButton+ onClick={() => {+ if (!compact) setMenuOpen((open) => !open)+ }}+ className="min-w-0 flex-1 gap-2 px-1 truncate font-mono text-white opacity-100 hover:bg-transparent"+ aria-expanded={compact ? undefined : menuOpen}+ >+ {!compact && <ListIcon size={16} weight="regular" className="text-white/60 sm:hidden" />}+ <span>image-blaster</span>{activeSlug && <span className="text-white/40 sm:hidden md:hidden">/ {activeSlug}</span>}+ </AppButton>+ <AppButton+ onClick={() => setButterfliesEnabled(!butterfliesEnabled)}+ active={butterfliesEnabled}+ className={`h-7 w-7 justify-center p-1 text-white ${butterfliesEnabled ? 'bg-white/15' : ''}`}+ aria-label={butterfliesEnabled ? 'Hide butterflies' : 'Show butterflies'}+ aria-pressed={butterfliesEnabled}+ title={butterfliesEnabled ? 'Hide butterflies' : 'Show butterflies'}+ >+ <ButterflyIcon size={16} weight={butterfliesEnabled ? 'fill' : 'regular'} />+ </AppButton>+ <a+ href="https://github.com/neilsonnn/image-blaster"+ target="_blank"+ rel="noreferrer"+ className="inline-flex h-7 w-7 items-center justify-center rounded p-1 text-white opacity-80 transition-[background-color,opacity] hover:bg-white/10 hover:opacity-100"+ aria-label="Open image-blaster repository"+ >+ <span className="text-sm leading-none"><QuestionMarkIcon size={16} weight="regular" /></span>+ </a>+ {canOpenLocalFolders && (+ <Tooltip+ content="Open new Claude terminal"+ delayDuration={0}+ side="right"+ >+ <AppButton+ onClick={openClaudeTerminal}+ className="h-7 w-7 justify-center p-1 text-white"+ aria-label="Open new Claude terminal"+ title="Open Claude terminal"+ >+ <TerminalWindowIcon size={16} weight="regular" />+ </AppButton>+ </Tooltip>+ )}+ </div>++ <SidebarViewerControls />++ {!compact && <div+ className={`+ ${chrome.panel} min-h-0 flex flex-1 flex-col gap-1 overflow-hidden p-1.5+ transition-[opacity,transform,max-height] duration-200 ease-out sm:max-h-[calc(90vh-3rem)] sm:translate-y-0 sm:opacity-100+ ${menuOpen ? 'max-h-[calc(90vh-3rem)] translate-y-0 opacity-100' : 'max-h-0 -translate-y-2 opacity-0 pointer-events-none sm:pointer-events-auto'}+ `}+ >+ <div className="w-full min-w-0 flex-1 overflow-y-auto overflow-x-hidden">+ <div className="flex min-w-0 flex-col gap-0 pr-1">+ {worlds.map(({ slug, project, world, worldVersions, objectAssets, sceneProject, sourceImageUrl }) => {+ const isActive = slug === activeSlug+ const name = project.display_name || slug+ const projectLoaded = isActive ? activeSceneProject : sceneProject+ const latestVersion = worldVersions[worldVersions.length - 1]+ const selectedVersionIndex = isActive ? activeWorldVersionIndex : latestVersion?.index+ const selectedVersion = worldVersions.find((version) => version.index === selectedVersionIndex) ?? latestVersion+ const displayWorld = selectedVersion?.world ?? world+ const hasSplatFile = Boolean(displayWorld && Object.values(displayWorld.assets.splats.spz_urls).some(Boolean))+ const hasWorldRow = Boolean(selectedVersion || hasSplatFile)+ const worldLoading = Boolean(selectedVersion && !selectedVersion.complete && isLoadingStatus(selectedVersion.status))+ const sourcePreview: WorldHoverPreview = {+ slug,+ imageUrl: sourceImageUrl,+ alt: `${name} source image`,+ }+ const activeWorldPreview: WorldHoverPreview = {+ slug,+ imageUrl: selectedVersion?.plateImageUrl,+ alt: `${name} world generation image`,+ }+ return (+ <div key={slug} className="rounded">+ <div+ className={`+ min-w-0 flex items-center gap-1 rounded+ ${isActive ? 'border-white/50 bg-white/20' : ''}+ `}+ onMouseEnter={() => {+ if (!isActive) onWorldHover?.(sourcePreview, true)+ }}+ onMouseLeave={() => {+ if (!isActive) onWorldHover?.(sourcePreview, false)+ }}+ >+ <AppButton+ onClick={() => selectWorld(slug)}+ active={isActive}+ className={`+ min-w-0 flex flex-1 items-center rounded py-2 text-left+ ${isActive ? 'hover:bg-transparent' : ''}+ `}+ >+ <span className="block min-w-0 flex-1 truncate text-sm font-medium leading-tight text-white">{slug}</span>+ </AppButton>+ {isActive && (+ <AppButton+ onClick={() => {+ navigate(`/${slug}/edit`)+ setMenuOpen(false)+ }}+ className="h-8 w-8 flex-shrink-0 justify-center text-white"+ aria-label={`Create or edit scene.json for ${name}`}+ title={`Create or edit scene.json for ${name}`}+ >+ <PencilSimpleIcon size={15} weight="regular" />+ </AppButton>+ )}+ {canOpenLocalFolders && isActive && (+ <Tooltip+ content={`Open the local folder for ${name}`}+ delayDuration={0}+ side="right"+ >+ <AppButton+ onClick={() => openWorldFolder(slug)}+ className="h-8 w-8 flex-shrink-0 justify-center text-white"+ aria-label={`Open local folder for ${name}`}+ title={`Open local folder for ${name}`}+ >+ <FolderOpenIcon size={15} weight="regular" />+ </AppButton>+ </Tooltip>+ )}+ </div>++ <div+ className={`+ overflow-hidden transition-all duration-300 ease-in-out+ ${isActive ? 'max-h-[32rem]' : 'max-h-0'}+ `}+ >+ <div className="mt-1 flex min-w-0 flex-col">+ {isActive && projectLoaded && (+ <div className="group flex min-w-0 items-center gap-1 rounded px-2 py-1 text-left text-white/80">+ <span className="relative flex h-7 w-7 flex-shrink-0 items-center justify-center rounded bg-white/10 text-white/45 ring-1 ring-white/10">+ <FileTextIcon size={14} weight="regular" />+ <FileExtensionBadge extension=".json" />+ </span>+ <span className="min-w-0 flex-1 truncate text-xs font-medium leading-tight text-white/80">+ scene.json+ </span>+ {canOpenLocalFolders && (+ <AppButton+ onClick={() => openAssetFolder(slug, 'scene')}+ className="h-7 w-7 flex-shrink-0 justify-center p-1 text-white opacity-0 transition-opacity group-hover:opacity-90 focus-visible:opacity-100 hover:opacity-100"+ aria-label={`Open world folder for ${name}`}+ title={`Open world folder for ${name}`}+ >+ <FolderOpenIcon size={14} weight="regular" />+ </AppButton>+ )}+ <AppButton+ onClick={onActiveSceneProjectToggle}+ active={activeSceneProjectEnabled}+ className="h-6 w-6 flex-shrink-0 justify-center p-1 text-white/70"+ aria-label={activeSceneProjectEnabled ? 'Disable scene.json' : 'Enable scene.json'}+ aria-pressed={activeSceneProjectEnabled}+ title={activeSceneProjectEnabled ? 'Disable scene.json' : 'Enable scene.json'}+ >+ {activeSceneProjectEnabled ? (+ <CheckSquareIcon size={14} weight="bold" />+ ) : (+ <SquareIcon size={14} weight="regular" />+ )}+ </AppButton>+ </div>+ )}+ {hasWorldRow && (+ <div+ className="group flex min-w-0 items-center gap-1 rounded"+ onMouseEnter={() => onWorldHover?.(activeWorldPreview, true)}+ onMouseLeave={() => onWorldHover?.(activeWorldPreview, false)}+ >+ <div className="min-w-0 flex flex-1 items-center gap-2 rounded px-2 py-1 text-left text-white opacity-80">+ <span className="relative flex h-7 w-7 flex-shrink-0">+ {activeWorldPreview.imageUrl ? (+ <ChromeThumbnail thumbnailUrl={activeWorldPreview.imageUrl} alt={activeWorldPreview.alt} />+ ) : (+ <span className="flex h-7 w-7 flex-shrink-0 items-center justify-center rounded bg-white/10 text-white/45 ring-1 ring-white/10">+ <GlobeHemisphereWestIcon size={14} weight="regular" />+ </span>+ )}+ {hasSplatFile && <FileExtensionBadge extension=".spz" />}+ </span>+ <span className="min-w-0 flex-1 text-white/85 text-xs font-semibold leading-tight truncate">+ {slug}+ </span>+ {worldLoading && <LoadingSpinner />}+ {isActive && worldVersions.length > 1 && selectedVersion && (+ <select+ value={selectedVersion.index}+ className="h-5 flex-shrink-0 rounded border border-white/10 bg-white/5 px-1 text-[10px] leading-none text-white/60"+ aria-label={`Select world version for ${name}`}+ onChange={(event) => onActiveWorldVersionChange(Number(event.target.value))}+ >+ {worldVersions.map((version) => (+ <option key={version.index} value={version.index}>+ {version.label}+ </option>+ ))}+ </select>+ )}+ {!isActive && worldVersions.length > 1 && (+ <span className="flex-shrink-0 rounded border border-white/10 bg-white/5 px-1.5 py-0.5 text-[10px] leading-none text-white/45">+ {worldVersions.length}+ </span>+ )}+ </div>+ {canOpenLocalFolders && (+ <AppButton+ onClick={() => openAssetFolder(slug, 'world-asset')}+ className="h-7 w-7 flex-shrink-0 justify-center p-1 text-white opacity-0 transition-opacity group-hover:opacity-90 focus-visible:opacity-100 hover:opacity-100"+ aria-label={`Open world asset folder for ${name}`}+ title={`Open world asset folder for ${name}`}+ >+ <FolderOpenIcon size={14} weight="regular" />+ </AppButton>+ )}+ </div>+ )}+ {objectAssets.map((obj) => {+ const objectLoading = !obj.complete && isLoadingStatus(obj.status)+ const objectPreview: WorldHoverPreview = {+ slug: obj.assetId,+ imageUrl: obj.referenceImageUrl ?? obj.thumbnailUrl,+ alt: `${obj.name} reference image`,+ }+ return (+ <div+ key={obj.assetId}+ className={`flex min-w-0 items-center gap-2 rounded px-2 py-1 text-left group ${+ hoveredObjectAssetId === obj.assetId && !hoveredObjectInstanceId ? 'bg-white/10 opacity-100' : ''+ } ${obj.complete ? '' : 'opacity-80'}`}+ onMouseEnter={() => {+ if (obj.complete) {+ onObjectHover?.(obj, true)+ } else {+ onWorldHover?.(objectPreview, true)+ }+ }}+ onMouseLeave={() => {+ if (obj.complete) {+ onObjectHover?.(obj, false)+ } else {+ onWorldHover?.(objectPreview, false)+ }+ }}+ >+ <span className="relative flex h-7 w-7 flex-shrink-0">+ <ChromeThumbnail thumbnailUrl={obj.thumbnailUrl ?? obj.referenceImageUrl} alt={obj.name} />+ {obj.complete && <FileExtensionBadge extension=".obj" />}+ </span>+ <span className="min-w-0 flex-1">+ <span className="block text-white/80 text-xs font-medium leading-tight truncate">+ {obj.name}+ </span>+ </span>+ {objectLoading ? (+ <LoadingSpinner />+ ) : obj.index !== undefined && obj.index > 0 && obj.variantLabel && (+ <span className="flex-shrink-0 rounded border border-white/10 bg-white/5 px-1.5 py-0.5 text-[10px] leading-none text-white/50">+ {obj.variantLabel}+ </span>+ )}+ {canOpenLocalFolders && (+ <AppButton+ onClick={() => openAssetFolder(slug, 'object-asset', obj.baseObjectId)}+ className="h-7 w-7 flex-shrink-0 justify-center p-1 text-white opacity-0 transition-opacity group-hover:opacity-90 focus-visible:opacity-100 hover:opacity-100"+ aria-label={`Open asset folder for ${obj.name}`}+ title={`Open asset folder for ${obj.name}`}+ >+ <FolderOpenIcon size={14} weight="regular" />+ </AppButton>+ )}+ </div>+ )+ })}+ </div>+ </div>+ </div>+ )+ })}+ </div>+ </div>+ </div>}+ </aside>+ )+}++function SidebarViewerControls() {+ const muted = useAudioStore((s) => s.muted)+ const toggleMuted = useAudioStore((s) => s.toggleMuted)+ const resetObjects = useDebugStore((s) => s.resetObjects)+ const controllerMode = useDebugStore((s) => s.controllerMode)+ const setControllerMode = useDebugStore((s) => s.setControllerMode)+ const viewerQuality = useDebugStore((s) => s.viewerQuality)+ const setViewerQuality = useDebugStore((s) => s.setViewerQuality)+ const currentControllerMode = CONTROLLER_MODES.find((item) => item.mode === controllerMode) ?? CONTROLLER_MODES[0]+ const currentQuality = QUALITY_MODES.find((item) => item.mode === viewerQuality) ?? QUALITY_MODES[0]++ return (+ <div className={`${chrome.bar} flex flex-shrink-0 items-center gap-1 text-sm font-medium font-mono`}>+ <Tooltip content="Reset" delayDuration={0} side="right">+ <AppButton+ onClick={resetObjects}+ className="h-7 w-7 justify-center p-1 text-white"+ aria-label="Reset"+ title="Reset"+ >+ <ArrowCounterClockwise size={16} weight="bold" />+ </AppButton>+ </Tooltip>+ <Tooltip content={muted ? 'Unmute' : 'Mute'} delayDuration={0} side="right">+ <AppButton+ onClick={toggleMuted}+ className="h-7 w-7 justify-center p-1 text-white"+ aria-label={muted ? 'Unmute' : 'Mute'}+ title={muted ? 'Unmute' : 'Mute'}+ >+ {muted ? <SpeakerSlash size={16} weight="fill" /> : <SpeakerHigh size={16} weight="fill" />}+ </AppButton>+ </Tooltip>+ <Tooltip content="Change controller" delayDuration={0} side="right">+ <AppButton+ onClick={() => setControllerMode(nextMode(CONTROLLER_MODES, controllerMode))}+ className="h-7 w-20 justify-center gap-1 flex border flex-1 border-white/20 text-white"+ aria-label="Change controller"+ title="Change controller"+ >+ <PersonIcon size={15} weight="fill" className="flex-shrink-0 text-white/45" />+ <span>{currentControllerMode.label}</span>+ </AppButton>+ </Tooltip>+ <Tooltip content="Change quality" delayDuration={0} side="right">+ <AppButton+ onClick={() => setViewerQuality(nextMode(QUALITY_MODES, viewerQuality))}+ className="h-7 w-16 justify-center gap-1 flex border flex-1 border-white/20 text-white"+ aria-label="Change quality"+ title="Change quality"+ >+ <ImageSquareIcon size={15} weight="fill" className="flex-shrink-0 text-white/45" />+ <span>{currentQuality.label}</span>+ </AppButton>+ </Tooltip>+ </div>+ )+}++function FileExtensionBadge({ extension }: { extension: string }) {+ return (+ <span className="pointer-events-none absolute bottom-0 right-0 rounded-sm bg-black/70 px-px font-mono text-[6px] font-semibold leading-[7px] text-white/70 ring-1 ring-white/10">+ {extension}+ </span>+ )+}++function LoadingSpinner() {+ return (+ <span className="pointer-events-none h-3 w-3 flex-shrink-0 rounded-full border border-white/25 border-t-white/90 animate-spin" />+ )+}++function isLoadingStatus(status?: string) {+ if (!status) return true+ return ['queued', 'submitted', 'running', 'processing', 'in_progress'].includes(status.toLowerCase())+}diff --git a/third_party/image-blaster/app/src/components/WorldViewer.tsx b/third_party/image-blaster/app/src/components/WorldViewer.tsxnew file mode 100644index 000000000..26b1b9620--- /dev/null+++ b/third_party/image-blaster/app/src/components/WorldViewer.tsx@@ -0,0 +1,455 @@+import { Component, Suspense, useRef, useEffect, useState, type ReactNode } from 'react'+import { Tooltip } from '@radix-ui/themes'+import { ArrowsClockwiseIcon, CaretDownIcon, CaretUpIcon } from '@phosphor-icons/react'+import { Canvas } from '@react-three/fiber'+import { Physics } from '@react-three/rapier'+import { SplatRenderer } from '../modules/splat/SplatRenderer'+import { EnvironmentMap } from '../modules/environment/EnvironmentMap'+import { WorldCollider } from '../modules/collider/WorldCollider'+import { GroundPlane } from '../modules/collider/GroundPlane'+import { CharacterController, type CharacterControllerHandle } from '../modules/character/CharacterController'+import { FlyController, type FlyControllerHandle } from '../modules/character/FlyController'+import { ButterflyScene } from '../modules/butterfly/ButterflyScene'+import { ObjectGrid } from '../modules/scene/ObjectGrid'+import { PlacementEditorOverlay, PlacementEditorScene, usePlacementEditor } from '../modules/scene/PlacementEditor'+import { OriginHelper } from '../modules/scene/OriginHelper'+import { AudioManager } from '../modules/audio/AudioManager'+import { PostProcessing } from '../modules/postprocessing/PostProcessing'+import { DEFAULT_SHADOW_CATCHER_COLOR, DEFAULT_SHADOW_CATCHER_OPACITY, shadowCatcherColor, shadowCatcherOpacity } from '../modules/scene/shadows'+import { getSplatUrl } from '../utils/worldLoader'+import { useDebugStore } from '../store/debug'+import { WorldRenderMode, ObjectRenderMode, ViewerQuality, type Vec3Tuple, type World, type WorldHoverPreview, type WorldObjectAsset, type WorldSceneProject } from '../types/world'+import { AppButton } from './AppButton'+import { chrome } from './AppChrome'++type CharHandle = CharacterControllerHandle | FlyControllerHandle+const DEFAULT_ENVIRONMENT_URL = '/hdri.jpg'+const DEFAULT_WORLD_SEMANTICS = {+ metric_scale_factor: 1,+ ground_plane_offset: 0,+ flip_y: true,+}++function sunPositionFromRotation(rotation: Vec3Tuple): Vec3Tuple {+ let x = 0+ let y = 10+ let z = 0+ const [rx, ry, rz] = rotation+ const cx = Math.cos(rx)+ const sx = Math.sin(rx)+ const cy = Math.cos(ry)+ const sy = Math.sin(ry)+ const cz = Math.cos(rz)+ const sz = Math.sin(rz)++ ;[y, z] = [y * cx - z * sx, y * sx + z * cx]+ ;[x, z] = [x * cy + z * sy, -x * sy + z * cy]+ ;[x, y] = [x * cz - y * sz, x * sz + y * cz]++ return [x, y, z]+}++interface OptionalAssetBoundaryProps {+ label: string+ resetKey: string+ fallback?: ReactNode+ children: ReactNode+}++interface OptionalAssetBoundaryState {+ hasError: boolean+}++class OptionalAssetBoundary extends Component<OptionalAssetBoundaryProps, OptionalAssetBoundaryState> {+ state: OptionalAssetBoundaryState = { hasError: false }++ static getDerivedStateFromError(): OptionalAssetBoundaryState {+ return { hasError: true }+ }++ componentDidCatch(error: unknown) {+ console.warn(`Skipping optional world asset "${this.props.label}" because it failed to load.`, error)+ }++ componentDidUpdate(prevProps: OptionalAssetBoundaryProps) {+ if (prevProps.resetKey !== this.props.resetKey && this.state.hasError) {+ this.setState({ hasError: false })+ }+ }++ render() {+ if (this.state.hasError) return this.props.fallback ?? null+ return this.props.children+ }+}++function GrayEnvironmentFallback() {+ return (+ <>+ <color attach="background" args={['#6b7280']} />+ <ambientLight color="#ffffff" intensity={0.9} />+ </>+ )+}++function DefaultEnvironment({ intensity }: { intensity: number }) {+ return (+ <OptionalAssetBoundary label={DEFAULT_ENVIRONMENT_URL} resetKey={DEFAULT_ENVIRONMENT_URL} fallback={<GrayEnvironmentFallback />}>+ <Suspense fallback={null}>+ <EnvironmentMap panoUrl={DEFAULT_ENVIRONMENT_URL} intensity={intensity} />+ </Suspense>+ </OptionalAssetBoundary>+ )+}++interface Props {+ world?: World+ slug: string+ sourceImageUrl?: string+ hoveredWorldPreview?: WorldHoverPreview | null+ objectAssets: WorldObjectAsset[]+ allObjectAssets: WorldObjectAsset[]+ worldSfxUrls: string[]+ sceneProject?: WorldSceneProject+ sceneProjectReady?: boolean+ hoveredObjectAssetId?: string | null+ hoveredObjectInstanceId?: string | null+ editing?: boolean+ uiVisible?: boolean+ onObjectHover?: (asset: WorldObjectAsset, hovering: boolean, instanceId?: string) => void+ onSceneProjectSaved?: (project: WorldSceneProject) => void+ onRefreshWorlds?: () => void+ refreshingWorlds?: boolean+}++export function WorldViewer({+ world: desiredWorld,+ slug: desiredSlug,+ sourceImageUrl,+ hoveredWorldPreview,+ objectAssets: desiredObjectAssets,+ allObjectAssets,+ worldSfxUrls,+ sceneProject,+ sceneProjectReady = true,+ hoveredObjectAssetId,+ hoveredObjectInstanceId,+ editing = false,+ uiVisible = true,+ onObjectHover,+ onSceneProjectSaved,+ onRefreshWorlds,+ refreshingWorlds = false,+}: Props) {+ const charRef = useRef<CharHandle>(null)+ const worldRenderMode = useDebugStore((s) => s.worldRenderMode)+ const objectRenderMode = useDebugStore((s) => s.objectRenderMode)+ const viewerQuality = useDebugStore((s) => s.viewerQuality)+ const controllerMode = useDebugStore((s) => s.controllerMode)+ const butterfliesEnabled = useDebugStore((s) => s.butterfliesEnabled)+ const controllerResetToken = useDebugStore((s) => s.controllerResetToken)+ const environmentIntensity = useDebugStore((s) => s.environmentIntensity)+ const sunIntensity = useDebugStore((s) => s.sunIntensity)+ const sunColor = useDebugStore((s) => s.sunColor)+ const [sourceThumbnailCollapsed, setSourceThumbnailCollapsed] = useState(false)+ const colliderUrl = desiredWorld?.assets.mesh.collider_mesh_url.startsWith('/worlds/')+ ? desiredWorld.assets.mesh.collider_mesh_url+ : ''+ const panoUrl = desiredWorld?.assets.imagery.pano_url.startsWith('/worlds/')+ ? desiredWorld.assets.imagery.pano_url+ : ''++ useEffect(() => {+ charRef.current?.reset()+ }, [desiredSlug])++ useEffect(() => {+ if (controllerResetToken > 0) charRef.current?.reset()+ }, [controllerResetToken])++ const splatUrl = desiredWorld ? getSplatUrl(desiredWorld) : ''+ const { ground_plane_offset, flip_y, metric_scale_factor } = desiredWorld?.assets.splats.semantics_metadata ?? DEFAULT_WORLD_SEMANTICS+ const flipY = flip_y ?? true+ const baseMetricScaleFactor = metric_scale_factor ?? 1+ const baseGroundPlaneOffset = ground_plane_offset ?? 0+ const isHighQuality = viewerQuality === ViewerQuality.High+ const showScene = worldRenderMode !== WorldRenderMode.ObjectOnly+ const showSplat = showScene && objectRenderMode === ObjectRenderMode.Lit+ const showObjects = worldRenderMode !== WorldRenderMode.SplatOnly+ const placementEditor = usePlacementEditor({+ slug: desiredSlug,+ objects: desiredObjectAssets,+ allObjectAssets,+ sceneProject,+ baseMetricScaleFactor,+ baseGroundPlaneOffset,+ sceneProjectReady,+ editing,+ hoveredObjectAssetId,+ hoveredObjectInstanceId,+ onObjectHover,+ onProjectSaved: onSceneProjectSaved,+ })+ const activeSceneSun = editing ? placementEditor.sun : sceneProject?.sun+ const activeSunIntensity = activeSceneSun?.intensity ?? sunIntensity+ const activeEnvironmentIntensity = activeSceneSun?.environmentIntensity ?? environmentIntensity+ const activeSunPosition = sunPositionFromRotation(activeSceneSun?.rotation ?? [0, 0, 0])+ const activeMetricScaleFactor = editing ? placementEditor.metricScaleFactor : sceneProject?.metricScaleFactor ?? baseMetricScaleFactor+ const defaultGroundPlaneOffset = baseGroundPlaneOffset * (activeMetricScaleFactor / baseMetricScaleFactor)+ const activeGroundPlaneOffset = editing+ ? placementEditor.groundPlaneOffset+ : sceneProject?.groundPlaneOffset ?? defaultGroundPlaneOffset+ const sceneGroundPlaneColliderEnabled = editing+ ? placementEditor.groundPlaneColliderEnabled+ : sceneProject?.groundPlaneColliderEnabled ?? true+ const activeGroundPlaneColliderEnabled = worldRenderMode === WorldRenderMode.ObjectOnly+ ? true+ : sceneGroundPlaneColliderEnabled+ const sceneShadowCatcherOpacity = editing ? placementEditor.shadowCatcherOpacity : sceneProject?.shadowCatcherOpacity+ const activeShadowCatcherOpacity = shadowCatcherOpacity(sceneShadowCatcherOpacity ?? DEFAULT_SHADOW_CATCHER_OPACITY)+ const sceneShadowCatcherColor = editing ? placementEditor.shadowCatcherColor : sceneProject?.shadowCatcherColor+ const activeShadowCatcherColor = shadowCatcherColor(sceneShadowCatcherColor ?? DEFAULT_SHADOW_CATCHER_COLOR)+ const objectPlacements = sceneProject?.instances ?? placementEditor.instances+ const objectPhysicsAssets = sceneProject?.instances.length ? allObjectAssets : desiredObjectAssets+ const activeControllerMode = editing ? 'fly' : controllerMode+ const hoveredObjectAsset = hoveredObjectAssetId+ ? allObjectAssets.find((asset) => asset.assetId === hoveredObjectAssetId)+ ?? desiredObjectAssets.find((asset) => asset.assetId === hoveredObjectAssetId)+ : undefined+ const activePreviewImageUrl = hoveredObjectAsset?.referenceImageUrl+ ?? hoveredObjectAsset?.thumbnailUrl+ ?? hoveredWorldPreview?.imageUrl+ ?? sourceImageUrl+ const activePreviewAlt = hoveredObjectAsset+ ? `${hoveredObjectAsset.name} reference image`+ : hoveredWorldPreview?.imageUrl+ ? hoveredWorldPreview.alt+ : 'Original source'+ return (+ <>+ <Canvas+ camera={{ fov: 75, near: 0.1, far: 1000 }}+ className="w-full h-full"+ gl={{ antialias: false }}+ shadows={isHighQuality}+ >+ <Suspense fallback={null}>+ <AudioManager urls={worldSfxUrls} />+ <Physics key={`${desiredSlug}:${controllerResetToken}`} gravity={[0, -9.81, 0]}>+ {activeControllerMode === 'fly' ? (+ <FlyController ref={charRef as React.RefObject<FlyControllerHandle>} preserveCameraOnMount={editing} />+ ) : (+ <CharacterController ref={charRef as React.RefObject<CharacterControllerHandle>} />+ )}+ {showScene && colliderUrl && (+ <OptionalAssetBoundary label={colliderUrl} resetKey={colliderUrl}>+ <Suspense fallback={null}>+ <WorldCollider+ url={colliderUrl}+ flipY={flipY}+ groundPlaneOffset={activeGroundPlaneOffset}+ metricScaleFactor={activeMetricScaleFactor}+ shadowOpacity={activeShadowCatcherOpacity}+ shadowColor={activeShadowCatcherColor}+ />+ </Suspense>+ </OptionalAssetBoundary>+ )}+ {showObjects && !editing && (+ <Suspense fallback={null}>+ <ObjectGrid+ objects={objectPhysicsAssets}+ placements={objectPlacements}+ />+ </Suspense>+ )}+ {showObjects && editing && (+ <Suspense fallback={null}>+ <PlacementEditorScene controller={placementEditor} renderMode={objectRenderMode} />+ </Suspense>+ )}+ <GroundPlane+ groundColliderEnabled={activeGroundPlaneColliderEnabled}+ />+ </Physics>+ {splatUrl && (+ <OptionalAssetBoundary label={splatUrl} resetKey={splatUrl}>+ <SplatRenderer+ url={splatUrl}+ visible={showSplat}+ groundPlaneOffset={activeGroundPlaneOffset}+ flipY={flipY}+ metricScaleFactor={activeMetricScaleFactor}+ />+ </OptionalAssetBoundary>+ )}+ <directionalLight+ castShadow={isHighQuality && activeSunIntensity > 0}+ color={sunColor}+ intensity={activeSunIntensity}+ position={activeSunPosition}+ shadow-mapSize={[2048, 2048]}+ shadow-bias={-0.0001}+ shadow-normalBias={0.02}+ shadow-camera-near={0.5}+ shadow-camera-far={30}+ shadow-camera-left={-20}+ shadow-camera-right={20}+ shadow-camera-top={20}+ shadow-camera-bottom={-20}+ />+ {panoUrl && (+ <OptionalAssetBoundary label={panoUrl} resetKey={panoUrl} fallback={<DefaultEnvironment intensity={activeEnvironmentIntensity} />}>+ <Suspense fallback={null}>+ <EnvironmentMap panoUrl={panoUrl} intensity={activeEnvironmentIntensity} />+ </Suspense>+ </OptionalAssetBoundary>+ )}+ {!panoUrl && <DefaultEnvironment intensity={activeEnvironmentIntensity} />}+ {butterfliesEnabled && <ButterflyScene />}+ <OriginHelper />+ {isHighQuality && <PostProcessing />}+ </Suspense>+ </Canvas>+ {uiVisible && (+ <SourceImageControls+ activeSourceImageUrl={activePreviewImageUrl}+ previewAlt={activePreviewAlt}+ thumbnailCollapsed={sourceThumbnailCollapsed}+ refreshingWorlds={refreshingWorlds}+ onRefreshWorlds={onRefreshWorlds}+ onThumbnailCollapseToggle={() => setSourceThumbnailCollapsed((collapsed) => !collapsed)}+ />+ )}+ {editing && uiVisible && <PlacementEditorOverlay controller={placementEditor} />}+ </>+ )+}++function SourceImageControls({+ activeSourceImageUrl,+ previewAlt,+ thumbnailCollapsed,+ refreshingWorlds,+ onRefreshWorlds,+ onThumbnailCollapseToggle,+}: {+ activeSourceImageUrl?: string+ previewAlt: string+ thumbnailCollapsed: boolean+ refreshingWorlds: boolean+ onRefreshWorlds?: () => void+ onThumbnailCollapseToggle: () => void+}) {+ if (!activeSourceImageUrl && !import.meta.env.DEV) return null++ return (+ <div className={`pointer-events-none fixed bottom-2 right-2 z-30 hidden md:block ${chrome.enter}`}>+ {activeSourceImageUrl ? (+ thumbnailCollapsed ? (+ <div className="flex items-center gap-1">+ {import.meta.env.DEV && onRefreshWorlds && (+ <RefreshWorldsButton+ refreshing={refreshingWorlds}+ onRefresh={onRefreshWorlds}+ className="pointer-events-auto"+ />+ )}+ <SourceThumbnailCollapseButton+ collapsed={thumbnailCollapsed}+ onToggle={onThumbnailCollapseToggle}+ className="pointer-events-auto"+ />+ </div>+ ) : (+ <div className="relative overflow-hidden rounded-lg border border-white/15 bg-black/70 shadow-lg ring-1 ring-black/30 backdrop-blur-md">+ <img+ src={activeSourceImageUrl}+ alt={previewAlt}+ className="block h-96 aspect-square object-cover"+ draggable={false}+ />+ <div className="absolute bottom-0.5 right-0.5 flex items-center gap-1">+ {import.meta.env.DEV && onRefreshWorlds && (+ <RefreshWorldsButton+ refreshing={refreshingWorlds}+ onRefresh={onRefreshWorlds}+ className="pointer-events-auto"+ />+ )}+ <SourceThumbnailCollapseButton+ collapsed={thumbnailCollapsed}+ onToggle={onThumbnailCollapseToggle}+ className="pointer-events-auto"+ />+ </div>+ </div>+ )+ ) : (+ import.meta.env.DEV && onRefreshWorlds && (+ <RefreshWorldsButton+ refreshing={refreshingWorlds}+ onRefresh={onRefreshWorlds}+ className="pointer-events-auto"+ />+ )+ )}+ </div>+ )+}++function SourceThumbnailCollapseButton({+ collapsed,+ onToggle,+ className = '',+}: {+ collapsed: boolean+ onToggle: () => void+ className?: string+}) {+ const Icon = collapsed ? CaretUpIcon : CaretDownIcon++ return (+ <Tooltip+ content={collapsed ? 'show original source image' : 'collapse original source image'}+ delayDuration={0}+ side="top"+ >+ <AppButton+ onClick={onToggle}+ className={`h-6 w-6 justify-center rounded border border-white/15 bg-black/70 p-0 text-white opacity-70 shadow-lg backdrop-blur-md ${className}`}+ aria-label={collapsed ? 'Show original source image' : 'Collapse original source image'}+ aria-pressed={collapsed}+ >+ <Icon size={15} weight="bold" />+ </AppButton>+ </Tooltip>+ )+}++function RefreshWorldsButton({+ refreshing,+ onRefresh,+ className = '',+}: {+ refreshing: boolean+ onRefresh: () => void+ className?: string+}) {+ return (+ <Tooltip+ content={refreshing ? 'refreshing local assets' : 'refresh local assets'}+ delayDuration={0}+ side="top"+ >+ <AppButton+ onClick={onRefresh}+ active={refreshing}+ className={`h-6 w-6 justify-center rounded border border-white/15 bg-black/70 p-0 text-white shadow-lg backdrop-blur-md ${className}`}+ aria-label="Refresh local assets"+ >+ <ArrowsClockwiseIcon size={12} weight={refreshing ? 'bold' : 'regular'} />+ </AppButton>+ </Tooltip>+ )+}diff --git a/third_party/image-blaster/app/src/env.test.ts b/third_party/image-blaster/app/src/env.test.tsnew file mode 100644index 000000000..163216701--- /dev/null+++ b/third_party/image-blaster/app/src/env.test.ts@@ -0,0 +1,17 @@+import { describe, it, expect } from 'vitest'+import dotenv from 'dotenv'+import path from 'path'++dotenv.config({ path: path.resolve(__dirname, '../../.env') })++describe('env vars', () => {+ it('WORLD_LABS_API_KEY is set', () => {+ expect(typeof process.env.WORLD_LABS_API_KEY).toBe('string')+ expect(process.env.WORLD_LABS_API_KEY!.length).toBeGreaterThan(0)+ })++ it('FAL_KEY is set', () => {+ expect(typeof process.env.FAL_KEY).toBe('string')+ expect(process.env.FAL_KEY!.length).toBeGreaterThan(0)+ })+})diff --git a/third_party/image-blaster/app/src/index.css b/third_party/image-blaster/app/src/index.cssnew file mode 100644index 000000000..a9aea33bb--- /dev/null+++ b/third_party/image-blaster/app/src/index.css@@ -0,0 +1,46 @@+@tailwind base;+@tailwind components;+@tailwind utilities;++* {+ box-sizing: border-box;+ margin: 0;+ padding: 0;+}++html, body, #root {+ width: 100%;+ height: 100%;+ overflow: hidden;+ background: black;+}++@keyframes chrome-enter {+ from {+ opacity: 0;+ transform: translateY(-0.5rem);+ }+ to {+ opacity: 1;+ transform: translateY(0);+ }+}++.chrome-enter {+ animation: chrome-enter 180ms ease-out both;+}++@keyframes chrome-enter-center {+ from {+ opacity: 0;+ transform: translate(-50%, -0.5rem);+ }+ to {+ opacity: 1;+ transform: translate(-50%, 0);+ }+}++.chrome-enter-center {+ animation: chrome-enter-center 180ms ease-out both;+}diff --git a/third_party/image-blaster/app/src/main.tsx b/third_party/image-blaster/app/src/main.tsxnew file mode 100644index 000000000..7770d0f6e--- /dev/null+++ b/third_party/image-blaster/app/src/main.tsx@@ -0,0 +1,14 @@+import { createRoot } from 'react-dom/client'+import { Theme } from '@radix-ui/themes'+import { Router } from 'wouter'+import { App } from './App'+import '@radix-ui/themes/styles.css'+import './index.css'++createRoot(document.getElementById('root')!).render(+ <Theme appearance="dark" hasBackground={false}>+ <Router>+ <App />+ </Router>+ </Theme>+)diff --git a/third_party/image-blaster/app/src/modules/audio/AudioManager.tsx b/third_party/image-blaster/app/src/modules/audio/AudioManager.tsxnew file mode 100644index 000000000..ad7f119a1--- /dev/null+++ b/third_party/image-blaster/app/src/modules/audio/AudioManager.tsx@@ -0,0 +1,78 @@+import { useCallback, useEffect, useMemo, useRef } from 'react'+import { useLoader, useThree } from '@react-three/fiber'+import * as THREE from 'three'+import { useAudioStore } from '../../store/audio'+import { useAudioReady } from './useAudioReady'++const BASE_VOLUME = 0.6++interface Props {+ urls: string[]+}++function WorldAudioPlayer({ urls }: Props) {+ const camera = useThree((state) => state.camera)+ const muted = useAudioStore((state) => state.muted)+ const buffers = useLoader(THREE.AudioLoader, urls) as AudioBuffer[]+ const soundsRef = useRef<THREE.Audio[]>([])+ const listener = useMemo(() => new THREE.AudioListener(), [])++ const startSounds = useCallback(() => {+ if (listener.context.state === 'suspended') listener.context.resume().catch(() => {})+ soundsRef.current.forEach((sound) => {+ if (!sound.isPlaying) sound.play()+ })+ }, [listener])++ useEffect(() => {+ camera.add(listener)+ return () => {+ listener.removeFromParent()+ }+ }, [camera, listener])++ useEffect(() => {+ const sounds = buffers.map((buffer) => {+ const sound = new THREE.Audio(listener)+ sound.setBuffer(buffer)+ sound.setLoop(true)+ sound.setVolume(useAudioStore.getState().muted ? 0 : BASE_VOLUME)+ return sound+ })++ soundsRef.current = sounds+ if (!useAudioStore.getState().muted) startSounds()++ return () => {+ sounds.forEach((sound) => {+ if (sound.isPlaying) sound.stop()+ sound.disconnect()+ })+ soundsRef.current = []+ }+ }, [buffers, listener, startSounds])++ useEffect(() => {+ soundsRef.current.forEach((sound) => {+ sound.setVolume(muted ? 0 : BASE_VOLUME)+ })+ if (muted) {+ soundsRef.current.forEach((sound) => {+ if (sound.isPlaying) sound.stop()+ })+ } else {+ startSounds()+ }+ }, [muted, startSounds])++ return null+}++export function AudioManager({ urls }: Props) {+ const ready = useAudioReady()+ const audioKey = urls.join('\0')++ if (!ready || urls.length === 0) return null++ return <WorldAudioPlayer key={audioKey} urls={urls} />+}diff --git a/third_party/image-blaster/app/src/modules/audio/useAudioReady.ts b/third_party/image-blaster/app/src/modules/audio/useAudioReady.tsnew file mode 100644index 000000000..83dc23231--- /dev/null+++ b/third_party/image-blaster/app/src/modules/audio/useAudioReady.ts@@ -0,0 +1,42 @@+import { useEffect, useState } from 'react'+import * as THREE from 'three'++let ready = false+const listeners = new Set<() => void>()++function markReady() {+ if (ready) return+ ready = true+ const ctx = THREE.AudioContext.getContext()+ if (ctx.state === 'suspended') ctx.resume().catch(() => {})+ listeners.forEach((listener) => listener())+ listeners.clear()+}++if (typeof window !== 'undefined') {+ const events: (keyof WindowEventMap)[] = ['pointerdown', 'keydown', 'touchstart']+ const onGesture = () => {+ markReady()+ events.forEach((event) => window.removeEventListener(event, onGesture))+ }+ events.forEach((event) => window.addEventListener(event, onGesture, { once: false }))+}++export function useAudioReady(): boolean {+ const [isReady, setIsReady] = useState(ready)++ useEffect(() => {+ if (ready) {+ setIsReady(true)+ return+ }++ const listener = () => setIsReady(true)+ listeners.add(listener)+ return () => {+ listeners.delete(listener)+ }+ }, [])++ return isReady+}diff --git a/third_party/image-blaster/app/src/modules/butterfly/AmbientAudio.tsx b/third_party/image-blaster/app/src/modules/butterfly/AmbientAudio.tsxnew file mode 100644index 000000000..72dd01453--- /dev/null+++ b/third_party/image-blaster/app/src/modules/butterfly/AmbientAudio.tsx@@ -0,0 +1,37 @@+import { useEffect, useRef } from 'react'+import { useFrame } from '@react-three/fiber'+import { useButterflyStore } from './store'+import { useAudioReady } from '../audio/useAudioReady'+import { useAudioStore } from '../../store/audio'++const URL = '/butterfly/sfx/ambient-loop.wav'++export function AmbientAudio() {+ const audioRef = useRef<HTMLAudioElement | null>(null)+ const ready = useAudioReady()++ useEffect(() => {+ if (!ready) return+ const a = new Audio(URL)+ a.loop = true+ a.volume = useButterflyStore.getState().ambientVolume+ audioRef.current = a+ a.play().catch(() => {})++ return () => {+ a.pause()+ a.src = ''+ audioRef.current = null+ }+ }, [ready])++ useFrame(() => {+ const a = audioRef.current+ if (!a) return+ const v = useButterflyStore.getState().ambientVolume+ const muted = useAudioStore.getState().muted+ a.volume = muted ? 0 : Math.max(0, Math.min(1, v))+ })++ return null+}diff --git a/third_party/image-blaster/app/src/modules/butterfly/BoidsFlock.tsx b/third_party/image-blaster/app/src/modules/butterfly/BoidsFlock.tsxnew file mode 100644index 000000000..5bb527b08--- /dev/null+++ b/third_party/image-blaster/app/src/modules/butterfly/BoidsFlock.tsx@@ -0,0 +1,316 @@+import { Suspense, useEffect, useMemo, useRef, forwardRef, useImperativeHandle } from 'react'+import { useFrame } from '@react-three/fiber'+import * as THREE from 'three'+import { useButterflyStore } from './store'+import { Butterfly } from './ButterflyModel'++const MAX_BOIDS = 100++export interface BoidsFlockHandle {+ reset: (centre: THREE.Vector3) => void+}++interface Props {+ targetRef: React.RefObject<THREE.Vector3>+ centroidRef?: React.RefObject<THREE.Vector3>+ intensityRef?: React.RefObject<number>+}++const _v = new THREE.Vector3()+const _sep = new THREE.Vector3()+const _ali = new THREE.Vector3()+const _coh = new THREE.Vector3()+const _att = new THREE.Vector3()+const _accel = new THREE.Vector3()+const _matrix = new THREE.Matrix4()+const _lookTarget = new THREE.Vector3()+const _up = new THREE.Vector3(0, 1, 0)+const _identityQuat = new THREE.Quaternion()+const _scaleVec = new THREE.Vector3()+const _targetQuat = new THREE.Quaternion()++export const BoidsFlock = forwardRef<BoidsFlockHandle, Props>(function BoidsFlock(+ { targetRef, centroidRef, intensityRef },+ ref,+) {+ const groupRefs = useRef<(THREE.Group | null)[]>([])+ const neighborMeshRef = useRef<THREE.InstancedMesh>(null)+ const sepMeshRef = useRef<THREE.InstancedMesh>(null)+ const lineRef = useRef<THREE.LineSegments>(null)+ const showDebug = useButterflyStore((s) => s.showDebug)++ const lineGeometry = useMemo(() => {+ const g = new THREE.BufferGeometry()+ const positions = new Float32Array(MAX_BOIDS * 2 * 3)+ g.setAttribute('position', new THREE.BufferAttribute(positions, 3))+ g.setDrawRange(0, 0)+ return g+ }, [])++ const state = useMemo(() => {+ const pos = new Float32Array(MAX_BOIDS * 3)+ const vel = new Float32Array(MAX_BOIDS * 3)+ const phase = new Float32Array(MAX_BOIDS * 8)+ for (let i = 0; i < MAX_BOIDS * 8; i++) {+ phase[i] = Math.random() * Math.PI * 2+ }+ return { pos, vel, phase }+ }, [])++ const reset = (centre: THREE.Vector3) => {+ const jitter = useButterflyStore.getState().spawnJitter+ for (let i = 0; i < MAX_BOIDS; i++) {+ state.pos[i * 3 + 0] = centre.x + (Math.random() - 0.5) * jitter+ state.pos[i * 3 + 1] = centre.y + (Math.random() - 0.5) * jitter+ state.pos[i * 3 + 2] = centre.z + (Math.random() - 0.5) * jitter+ state.vel[i * 3 + 0] = 0+ state.vel[i * 3 + 1] = 0+ state.vel[i * 3 + 2] = 0+ }+ }++ useImperativeHandle(ref, () => ({ reset }))++ useEffect(() => {+ reset(targetRef.current ?? new THREE.Vector3())+ }, [])++ const tRef = useRef(0)++ useFrame((_, dtRaw) => {+ const target = targetRef.current+ if (!target) return+ const dt = Math.min(dtRaw, 0.05)+ tRef.current += dt+ const t = tRef.current++ const p = useButterflyStore.getState()+ const n = Math.min(p.boidCount, MAX_BOIDS)+ if (p.paused) {+ updateDebugVisuals(state.pos, n, target, p.showDebug, p.neighborRadius, p.separationRadius)+ return+ }++ let cx = 0+ let cy = 0+ let cz = 0++ const nbr2 = p.neighborRadius * p.neighborRadius+ const sep2 = p.separationRadius * p.separationRadius++ for (let i = 0; i < n; i++) {+ const ix = i * 3+ const px = state.pos[ix + 0]+ const py = state.pos[ix + 1]+ const pz = state.pos[ix + 2]++ _sep.set(0, 0, 0)+ _ali.set(0, 0, 0)+ _coh.set(0, 0, 0)+ let nbrCount = 0++ for (let j = 0; j < n; j++) {+ if (j === i) continue+ const jx = j * 3+ const dx = state.pos[jx + 0] - px+ const dy = state.pos[jx + 1] - py+ const dz = state.pos[jx + 2] - pz+ const d2 = dx * dx + dy * dy + dz * dz+ if (d2 >= nbr2 || d2 === 0) continue+ nbrCount+++ _ali.x += state.vel[jx + 0]+ _ali.y += state.vel[jx + 1]+ _ali.z += state.vel[jx + 2]+ _coh.x += state.pos[jx + 0]+ _coh.y += state.pos[jx + 1]+ _coh.z += state.pos[jx + 2]+ if (d2 < sep2) {+ const inv = 1 / Math.sqrt(d2)+ _sep.x -= dx * inv+ _sep.y -= dy * inv+ _sep.z -= dz * inv+ }+ }++ if (nbrCount > 0) {+ _ali.multiplyScalar(1 / nbrCount)+ _coh.multiplyScalar(1 / nbrCount).sub(_v.set(px, py, pz))+ }++ _att.set(target.x - px, target.y - py, target.z - pz)+ const attLen = _att.length()+ if (attLen > 0.0001) _att.multiplyScalar(1 / attLen)++ const phBase = i * 8+ const adhMul =+ 1 + Math.sin(t * p.adherenceNoiseFreq + state.phase[phBase + 6]) * p.adherenceNoiseAmount+ const speedMul =+ 1 + Math.sin(t * p.speedNoiseFreq + state.phase[phBase + 7]) * p.speedNoiseAmount++ _accel.set(0, 0, 0)+ .addScaledVector(_sep, p.separationWeight * adhMul)+ .addScaledVector(_ali, p.alignmentWeight * adhMul)+ .addScaledVector(_coh, p.cohesionWeight * adhMul)+ .addScaledVector(_att, p.attractionWeight * adhMul)++ let vx = state.vel[ix + 0] + _accel.x * dt+ let vy = state.vel[ix + 1] + _accel.y * dt+ let vz = state.vel[ix + 2] + _accel.z * dt++ const localMaxSpeed = Math.max(0.001, p.maxSpeed * speedMul)+ const speed = Math.hypot(vx, vy, vz)+ if (speed > localMaxSpeed) {+ const s = localMaxSpeed / speed+ vx *= s+ vy *= s+ vz *= s+ }++ const jitterAmp = p.noiseBase + p.noiseVelScale * speed+ const ph = phBase+ const jx =+ Math.sin(t * p.noiseFreq1 + state.phase[ph + 0]) ++ 0.5 * Math.sin(t * p.noiseFreq2 + state.phase[ph + 1])+ const jy =+ Math.sin(t * p.noiseFreq1 + state.phase[ph + 2]) ++ 0.5 * Math.sin(t * p.noiseFreq2 + state.phase[ph + 3])+ const jz =+ Math.sin(t * p.noiseFreq1 + state.phase[ph + 4]) ++ 0.5 * Math.sin(t * p.noiseFreq2 + state.phase[ph + 5])++ const nxPos = px + vx * dt + jx * jitterAmp * dt+ const nyPos = py + vy * dt + jy * jitterAmp * dt+ const nzPos = pz + vz * dt + jz * jitterAmp * dt++ state.vel[ix + 0] = vx+ state.vel[ix + 1] = vy+ state.vel[ix + 2] = vz+ state.pos[ix + 0] = nxPos+ state.pos[ix + 1] = nyPos+ state.pos[ix + 2] = nzPos++ const g = groupRefs.current[i]+ if (g) {+ g.position.set(nxPos, nyPos, nzPos)+ const dirLen = Math.hypot(vx, vy, vz)+ if (dirLen > 0.01) {+ _v.set(nxPos, nyPos, nzPos)+ _lookTarget.set(nxPos + vx, nyPos + vy, nzPos + vz)+ _matrix.lookAt(_v, _lookTarget, _up)+ _targetQuat.setFromRotationMatrix(_matrix)+ const k = 1 - Math.exp(-p.rotationLerp * dt)+ g.quaternion.slerp(_targetQuat, k)+ }+ g.scale.setScalar(p.meshSize)+ g.visible = true+ }++ cx += nxPos+ cy += nyPos+ cz += nzPos+ }++ for (let i = n; i < MAX_BOIDS; i++) {+ const g = groupRefs.current[i]+ if (g) g.visible = false+ }++ if (centroidRef?.current && n > 0) {+ centroidRef.current.set(cx / n, cy / n, cz / n)+ }++ updateDebugVisuals(state.pos, n, target, p.showDebug, p.neighborRadius, p.separationRadius)+ })++ const updateDebugVisuals = (+ pos: Float32Array,+ n: number,+ target: THREE.Vector3,+ enabled: boolean,+ nbrR: number,+ sepR: number,+ ) => {+ const nbrMesh = neighborMeshRef.current+ const sepMesh = sepMeshRef.current+ const line = lineRef.current++ if (nbrMesh) {+ nbrMesh.count = enabled ? n : 0+ if (enabled) {+ for (let i = 0; i < n; i++) {+ _v.set(pos[i * 3], pos[i * 3 + 1], pos[i * 3 + 2])+ _matrix.compose(_v, _identityQuat, _scaleVec.setScalar(nbrR))+ nbrMesh.setMatrixAt(i, _matrix)+ }+ nbrMesh.instanceMatrix.needsUpdate = true+ }+ }+ if (sepMesh) {+ sepMesh.count = enabled ? n : 0+ if (enabled) {+ for (let i = 0; i < n; i++) {+ _v.set(pos[i * 3], pos[i * 3 + 1], pos[i * 3 + 2])+ _matrix.compose(_v, _identityQuat, _scaleVec.setScalar(sepR))+ sepMesh.setMatrixAt(i, _matrix)+ }+ sepMesh.instanceMatrix.needsUpdate = true+ }+ }+ if (line && enabled) {+ const arr = (line.geometry.attributes.position as THREE.BufferAttribute).array as Float32Array+ for (let i = 0; i < n; i++) {+ arr[i * 6 + 0] = pos[i * 3 + 0]+ arr[i * 6 + 1] = pos[i * 3 + 1]+ arr[i * 6 + 2] = pos[i * 3 + 2]+ arr[i * 6 + 3] = target.x+ arr[i * 6 + 4] = target.y+ arr[i * 6 + 5] = target.z+ }+ line.geometry.setDrawRange(0, n * 2)+ ;(line.geometry.attributes.position as THREE.BufferAttribute).needsUpdate = true+ } else if (line) {+ line.geometry.setDrawRange(0, 0)+ }+ }++ return (+ <>+ <Suspense fallback={null}>+ {Array.from({ length: MAX_BOIDS }, (_, i) => (+ <Butterfly+ key={i}+ withAudio={i < 3}+ intensityRef={intensityRef}+ ref={(g) => {+ groupRefs.current[i] = g+ }}+ />+ ))}+ </Suspense>+ {showDebug && (+ <>+ <instancedMesh+ ref={neighborMeshRef}+ args={[undefined, undefined, MAX_BOIDS]}+ frustumCulled={false}+ >+ <sphereGeometry args={[1, 8, 5]} />+ <meshBasicMaterial color={0x00ffff} wireframe transparent opacity={0.2} />+ </instancedMesh>+ <instancedMesh+ ref={sepMeshRef}+ args={[undefined, undefined, MAX_BOIDS]}+ frustumCulled={false}+ >+ <sphereGeometry args={[1, 6, 4]} />+ <meshBasicMaterial color={0xff8800} wireframe transparent opacity={0.35} />+ </instancedMesh>+ <lineSegments ref={lineRef} frustumCulled={false}>+ <primitive object={lineGeometry} attach="geometry" />+ <lineBasicMaterial color={0xffff00} transparent opacity={0.6} />+ </lineSegments>+ </>+ )}+ </>+ )+})diff --git a/third_party/image-blaster/app/src/modules/butterfly/ButterflyController.tsx b/third_party/image-blaster/app/src/modules/butterfly/ButterflyController.tsxnew file mode 100644index 000000000..ff44f975e--- /dev/null+++ b/third_party/image-blaster/app/src/modules/butterfly/ButterflyController.tsx@@ -0,0 +1,217 @@+import { forwardRef, useEffect, useImperativeHandle, useRef } from 'react'+import { useFrame, useThree } from '@react-three/fiber'+import {+ RigidBody,+ BallCollider,+ useRapier,+ type RapierRigidBody,+} from '@react-three/rapier'+import * as THREE from 'three'+import { useButterflyInput } from './useButterflyInput'+import { OrbitCamera } from './OrbitCamera'+import { BoidsFlock, type BoidsFlockHandle } from './BoidsFlock'+import { AmbientAudio } from './AmbientAudio'+import { WindAudio } from './WindAudio'+import { useButterflyStore } from './store'++interface MarkerProps {+ posRef: React.RefObject<THREE.Vector3>+ color: number+}++function DebugMarker({ posRef, color }: MarkerProps) {+ const meshRef = useRef<THREE.Mesh>(null)+ useFrame(() => {+ if (meshRef.current && posRef.current) meshRef.current.position.copy(posRef.current)+ })+ return (+ <mesh ref={meshRef}>+ <sphereGeometry args={[0.03, 6, 4]} />+ <meshBasicMaterial color={color} depthTest={false} />+ </mesh>+ )+}++export interface ButterflyControllerHandle {+ reset: () => void+}++const _forward = new THREE.Vector3()+const _right = new THREE.Vector3()+const _move = new THREE.Vector3()+const _up = new THREE.Vector3(0, 1, 0)+const DEFAULT_SPAWN = new THREE.Vector3(0, 1, -0.5)++export const ButterflyController = forwardRef<ButterflyControllerHandle>(+ function ButterflyController(_props, ref) {+ const bodyRef = useRef<RapierRigidBody>(null)+ const flockRef = useRef<BoidsFlockHandle>(null)+ const { camera } = useThree()+ const input = useButterflyInput()+ const showDebug = useButterflyStore((s) => s.showDebug)+ const { world } = useRapier()+ type CharCtrl = ReturnType<typeof world.createCharacterController>+ const controllerRef = useRef<CharCtrl | null>(null)++ useEffect(() => {+ const c = world.createCharacterController(0.01)+ c.setSlideEnabled(true)+ c.enableAutostep(0, 0, false)+ c.disableSnapToGround()+ c.setApplyImpulsesToDynamicBodies(true)+ controllerRef.current = c+ return () => {+ try {+ world.removeCharacterController(c)+ } catch {+ // The Rapier world may already be tearing down during route changes.+ }+ controllerRef.current = null+ }+ }, [world])++ const targetPos = useRef(DEFAULT_SPAWN.clone())+ const pivotPos = useRef(DEFAULT_SPAWN.clone())+ const flockCentroid = useRef(new THREE.Vector3())+ const cameraPosRef = useRef(new THREE.Vector3())+ const moveIntensityRef = useRef(0)+ const angularIntensityRef = useRef(0)+ const prevYawRef = useRef(0)+ const prevPitchRef = useRef(0)+ const prevSeededRef = useRef(false)++ const reset = () => {+ const params = useButterflyStore.getState()+ targetPos.current.copy(DEFAULT_SPAWN)+ pivotPos.current.copy(DEFAULT_SPAWN)+ input.yaw.current = params.defaultYaw+ input.pitch.current = params.defaultPitch+ input.distance.current = params.defaultDistance+ input.targetDistance.current = params.defaultDistance+ input.keys.current.clear()+ input.touchMoveVec.current.x = 0+ input.touchMoveVec.current.y = 0+ bodyRef.current?.setTranslation(DEFAULT_SPAWN, true)+ bodyRef.current?.setLinvel({ x: 0, y: 0, z: 0 }, true)+ flockRef.current?.reset(targetPos.current)+ }++ useImperativeHandle(ref, () => ({ reset }))++ useFrame((_, dtRaw) => {+ const body = bodyRef.current+ if (!body) return+ const dt = Math.min(dtRaw, 0.05)+ const params = useButterflyStore.getState()++ let fwdAmt = 0+ let rightAmt = 0+ let upAmt = 0+ let yawAmt = 0+ const k = input.keys.current+ if (k.has('KeyW') || k.has('ArrowUp')) fwdAmt += 1+ if (k.has('KeyS') || k.has('ArrowDown')) fwdAmt -= 1+ if (k.has('KeyA') || k.has('ArrowLeft')) yawAmt += 1+ if (k.has('KeyD') || k.has('ArrowRight')) yawAmt -= 1+ if (k.has('KeyE')) upAmt += 1+ if (k.has('KeyQ')) upAmt -= 1++ rightAmt += input.touchMoveVec.current.x+ fwdAmt += input.touchMoveVec.current.y++ if (yawAmt !== 0) input.yaw.current += yawAmt * params.rotationSpeed * dt++ camera.getWorldDirection(_forward)+ _right.copy(_forward).cross(_up).normalize()++ _move+ .set(0, 0, 0)+ .addScaledVector(_forward, fwdAmt)+ .addScaledVector(_right, rightAmt)++ if (_move.lengthSq() > 1) _move.normalize()+ _move.multiplyScalar(params.flightSpeed)+ _move.y += upAmt * params.flightSpeed++ const cur = body.translation()+ const desired = { x: _move.x * dt, y: _move.y * dt, z: _move.z * dt }++ const controller = controllerRef.current+ const collider = body.collider(0)+ let corrected = desired+ if (controller && collider) {+ controller.computeColliderMovement(collider, desired)+ corrected = controller.computedMovement()+ }++ const nx = cur.x + corrected.x+ const ny = cur.y + corrected.y+ const nz = cur.z + corrected.z+ body.setNextKinematicTranslation({ x: nx, y: ny, z: nz })+ targetPos.current.set(nx, ny, nz)+ cameraPosRef.current.copy(camera.position)++ const inputMag = Math.min(+ 1,+ Math.hypot(fwdAmt, rightAmt, upAmt) + Math.abs(yawAmt) * 0.5,+ )+ moveIntensityRef.current = inputMag++ if (!prevSeededRef.current) {+ prevYawRef.current = input.yaw.current+ prevPitchRef.current = input.pitch.current+ prevSeededRef.current = true+ }+ const dy = input.yaw.current - prevYawRef.current+ const dp = input.pitch.current - prevPitchRef.current+ prevYawRef.current = input.yaw.current+ prevPitchRef.current = input.pitch.current+ const angSpeed = Math.hypot(dy, dp) / Math.max(dt, 1e-4)+ const angIntensity = Math.min(1, angSpeed / Math.max(0.0001, params.windAngularThreshold))+ angularIntensityRef.current = angIntensity+ })++ return (+ <>+ <RigidBody+ ref={bodyRef}+ type="kinematicPosition"+ position={DEFAULT_SPAWN}+ colliders={false}+ >+ <BallCollider args={[useButterflyStore.getState().targetRadius]} />+ {showDebug && (+ <mesh>+ <sphereGeometry args={[useButterflyStore.getState().targetRadius, 8, 5]} />+ <meshBasicMaterial color={0xffff00} wireframe transparent opacity={0.4} />+ </mesh>+ )}+ </RigidBody>+ <OrbitCamera input={input} targetRef={targetPos} pivotRef={pivotPos} />+ <BoidsFlock+ ref={flockRef}+ targetRef={targetPos}+ centroidRef={flockCentroid}+ intensityRef={moveIntensityRef}+ />+ <AmbientAudio />+ <WindAudio angularIntensityRef={angularIntensityRef} />+ {showDebug && (+ <>+ <DebugMarker posRef={targetPos} color={0xffff00} />+ <DebugMarker posRef={cameraPosRef} color={0xff0000} />+ <DebugMarker posRef={flockCentroid} color={0x00ff00} />+ <mesh position={[-0.15, 1, 0]}>+ <sphereGeometry args={[0.1, 32, 32]} />+ <meshStandardMaterial color={0xffffff} metalness={1} roughness={0} />+ </mesh>+ <mesh position={[0.15, 1, 0]}>+ <sphereGeometry args={[0.1, 32, 32]} />+ <meshStandardMaterial color={0x808080} metalness={0} roughness={1} />+ </mesh>+ </>+ )}+ </>+ )+ },+)diff --git a/third_party/image-blaster/app/src/modules/butterfly/ButterflyModel.tsx b/third_party/image-blaster/app/src/modules/butterfly/ButterflyModel.tsxnew file mode 100644index 000000000..13aa278ea--- /dev/null+++ b/third_party/image-blaster/app/src/modules/butterfly/ButterflyModel.tsx@@ -0,0 +1,131 @@+import { forwardRef, useEffect, useImperativeHandle, useMemo, useRef, useState } from 'react'+import { useFrame } from '@react-three/fiber'+import { useGLTF, useTexture, PositionalAudio } from '@react-three/drei'+import { SkeletonUtils } from 'three-stdlib'+import * as THREE from 'three'+import { useButterflyStore } from './store'+import { useAudioReady } from '../audio/useAudioReady'+import { useAudioStore } from '../../store/audio'++const GLB_URL = '/butterfly/butterfly-loop.glb'+const TEX_URLS = [+ '/butterfly/butterfly1.jpg',+ '/butterfly/butterfly2.jpg',+ '/butterfly/butterfly4.jpg',+ '/butterfly/butterfly5.jpg',+]+const FLAP_URLS = Array.from({ length: 8 }, (_, i) => `/butterfly/sfx/moth-flap-${i + 1}.wav`)++const MODEL_SCALE = 0.25+const SPEED_SMOOTH = 6 // 1/seconds, exponential damping for measured speed++interface Props {+ visible?: boolean+ withAudio?: boolean+ intensityRef?: React.RefObject<number>+}++export const Butterfly = forwardRef<THREE.Group, Props>(function Butterfly(+ { visible = true, withAudio = false, intensityRef },+ ref,+) {+ const { scene, animations } = useGLTF(GLB_URL)+ const [scale] = useState(MODEL_SCALE * (Math.random() * 0.25 + 0.75))+ const [textureUrl] = useState(() => TEX_URLS[Math.floor(Math.random() * TEX_URLS.length)])+ const texture = useTexture(textureUrl)++ const groupRef = useRef<THREE.Group>(null)+ useImperativeHandle(ref, () => groupRef.current as THREE.Group)++ const [flapUrl] = useState(() => FLAP_URLS[Math.floor(Math.random() * FLAP_URLS.length)])+ const [sinePhase] = useState(() => Math.random() * Math.PI * 2)+ const audioRef = useRef<THREE.PositionalAudio>(null)+ const audioReady = useAudioReady()+ const flapMixRef = useRef(0)+ const tRef = useRef(0)++ const lastPos = useRef(new THREE.Vector3())+ const smoothedSpeed = useRef(0)+ const seededRef = useRef(false)++ const { clone, mixer, speedMul, material } = useMemo(() => {+ const cloned = SkeletonUtils.clone(scene) as THREE.Group+ const mat = new THREE.MeshStandardMaterial({+ map: texture,+ transparent: true,+ alphaTest: 0.5,+ side: THREE.DoubleSide,+ roughness: 0.25,+ })+ cloned.traverse((c) => {+ const mesh = c as THREE.Mesh+ if (mesh.isMesh) mesh.material = mat+ })+ const m = new THREE.AnimationMixer(cloned)+ if (animations.length > 0) {+ const clip = animations[0]+ const action = m.clipAction(clip)+ action.setLoop(THREE.LoopRepeat, Infinity)+ action.clampWhenFinished = false+ action.play()+ m.update(Math.random() * clip.duration)+ }+ return { clone: cloned, mixer: m, speedMul: 0.7 + Math.random() * 0.6, material: mat }+ }, [scene, animations, texture])++ useEffect(() => () => {+ mixer.stopAllAction()+ material.dispose()+ }, [material, mixer])++ useFrame((_, dtRaw) => {+ const dt = Math.min(dtRaw, 0.05)+ const g = groupRef.current+ if (g) {+ if (!seededRef.current) {+ lastPos.current.copy(g.position)+ seededRef.current = true+ }+ const inst = g.position.distanceTo(lastPos.current) / Math.max(dt, 1e-4)+ lastPos.current.copy(g.position)+ const a = 1 - Math.exp(-SPEED_SMOOTH * dt)+ smoothedSpeed.current += (inst - smoothedSpeed.current) * a+ }++ const p = useButterflyStore.getState()+ const flapMul = p.flapSpeedBase + p.flapSpeedVelScale * smoothedSpeed.current+ mixer.update(dt * speedMul * flapMul)++ if (audioRef.current) {+ tRef.current += dt+ const intensity = Math.max(0, Math.min(1, intensityRef?.current ?? 0))+ const k = 1 - Math.exp(-p.flapMoveLerp * dt)+ flapMixRef.current += (intensity - flapMixRef.current) * k+ const sine = 0.5 + 0.5 * Math.sin(tRef.current * p.flapSineFreq + sinePhase)+ const env = 1 - p.flapSineDepth + p.flapSineDepth * sine+ const muted = useAudioStore.getState().muted+ audioRef.current.setVolume(muted ? 0 : flapMixRef.current * env * p.flapVolume)+ audioRef.current.setRefDistance(p.flapRefDistance)+ }+ })++ return (+ <group ref={groupRef} visible={visible}>+ <group scale={scale} rotation={[Math.PI * .05, Math.PI * .5, 0]}>+ <primitive object={clone} />+ </group>+ {audioReady && withAudio && (+ <PositionalAudio+ ref={audioRef}+ url={flapUrl}+ distance={useButterflyStore.getState().flapRefDistance}+ loop+ autoplay+ />+ )}+ </group>+ )+})++useGLTF.preload(GLB_URL)+TEX_URLS.forEach((url) => useTexture.preload(url))diff --git a/third_party/image-blaster/app/src/modules/butterfly/ButterflyScene.tsx b/third_party/image-blaster/app/src/modules/butterfly/ButterflyScene.tsxnew file mode 100644index 000000000..87fcc5649--- /dev/null+++ b/third_party/image-blaster/app/src/modules/butterfly/ButterflyScene.tsx@@ -0,0 +1,25 @@+import { useRef } from 'react'+import { useFrame, useThree } from '@react-three/fiber'+import * as THREE from 'three'+import { BoidsFlock } from './BoidsFlock'++const CAMERA_FORWARD_DISTANCE = 1.5+const _cameraForward = new THREE.Vector3()++export function ButterflyScene() {+ const camera = useThree((state) => state.camera)+ const targetRef = useRef(new THREE.Vector3())+ const intensityRef = useRef(0.25)++ useFrame(() => {+ camera.getWorldDirection(_cameraForward)+ targetRef.current.copy(camera.position).addScaledVector(_cameraForward, CAMERA_FORWARD_DISTANCE)+ })++ return (+ <BoidsFlock+ targetRef={targetRef}+ intensityRef={intensityRef}+ />+ )+}diff --git a/third_party/image-blaster/app/src/modules/butterfly/OrbitCamera.tsx b/third_party/image-blaster/app/src/modules/butterfly/OrbitCamera.tsxnew file mode 100644index 000000000..892160660--- /dev/null+++ b/third_party/image-blaster/app/src/modules/butterfly/OrbitCamera.tsx@@ -0,0 +1,140 @@+import { useRef } from 'react'+import { useFrame, useThree } from '@react-three/fiber'+import * as THREE from 'three'+import { ImprovedNoise } from 'three/examples/jsm/math/ImprovedNoise.js'+import type { ButterflyInput } from './useButterflyInput'+import { useButterflyStore } from './store'++interface Props {+ input: ButterflyInput+ targetRef: React.RefObject<THREE.Vector3>+ pivotRef: React.RefObject<THREE.Vector3>+}++const _offset = new THREE.Vector3()+const _right = new THREE.Vector3()+const _up = new THREE.Vector3()++export function OrbitCamera({ input, targetRef, pivotRef }: Props) {+ const { camera } = useThree()+ const initialised = useRef(false)++ const yawSmooth = useRef(0)+ const pitchSmooth = useRef(0)+ const lastCamPos = useRef(new THREE.Vector3())+ const lastCamQuat = useRef(new THREE.Quaternion())+ const shakeIntensity = useRef(0)+ const fovSmooth = useRef<number | null>(null)+ const tRef = useRef(0)+ const noise = useRef(new ImprovedNoise())+ // independent y-row per axis so each samples uncorrelated 1D slices of the noise field+ const offsets = useRef({+ px: Math.random() * 1000,+ py: Math.random() * 1000,+ rx: Math.random() * 1000,+ ry: Math.random() * 1000,+ })++ useFrame((_, dtRaw) => {+ const dt = Math.min(dtRaw, 0.05)+ const safeDt = Math.max(dt, 0.005)+ const params = useButterflyStore.getState()+ const target = targetRef.current+ const pivot = pivotRef.current+ if (!target || !pivot) return++ if (!initialised.current) {+ pivot.copy(target)+ yawSmooth.current = input.yaw.current+ pitchSmooth.current = input.pitch.current+ lastCamPos.current.copy(camera.position)+ lastCamQuat.current.copy(camera.quaternion)+ initialised.current = true+ }++ pivot.lerp(target, 1 - Math.exp(-params.cameraPositionLerp * dt))++ const zoomA = 1 - Math.exp(-params.zoomLerp * dt)+ input.distance.current += (input.targetDistance.current - input.distance.current) * zoomA++ // distance-derived blend factor (0 at min, 1 at max)+ const distRangeAll = Math.max(1e-4, params.maxDistance - params.minDistance)+ const distU = Math.min(+ 1,+ Math.max(0, (input.distance.current - params.minDistance) / distRangeAll),+ )+ // FOV follows camera distance; right-drag/two-finger dolly update that distance upstream.+ if (camera instanceof THREE.PerspectiveCamera) {+ const baseFov = params.nearFov + (params.farFov - params.nearFov) * distU+ const targetFov = baseFov+ if (fovSmooth.current === null) fovSmooth.current = targetFov+ const fovA = 1 - Math.exp(-params.fovLerp * dt)+ fovSmooth.current += (targetFov - fovSmooth.current) * fovA+ if (Math.abs(camera.fov - fovSmooth.current) > 0.001) {+ camera.fov = fovSmooth.current+ camera.updateProjectionMatrix()+ }+ }++ const rotA = 1 - Math.exp(-params.cameraRotationLerp * dt)+ yawSmooth.current += (input.yaw.current - yawSmooth.current) * rotA+ pitchSmooth.current += (input.pitch.current - pitchSmooth.current) * rotA++ const yaw = yawSmooth.current+ const pitch = pitchSmooth.current+ const dist = input.distance.current++ const cosP = Math.cos(pitch)+ _offset.set(Math.sin(yaw) * cosP, Math.sin(pitch), Math.cos(yaw) * cosP).multiplyScalar(dist)++ const heightY = pivot.y + params.cameraHeightOffset+ camera.position.set(pivot.x + _offset.x, heightY + _offset.y, pivot.z + _offset.z)+ camera.lookAt(pivot.x, heightY, pivot.z)++ // measure pre-shake linear and angular speed magnitudes (direction-agnostic)+ const linSpeed = Math.hypot(+ camera.position.x - lastCamPos.current.x,+ camera.position.y - lastCamPos.current.y,+ camera.position.z - lastCamPos.current.z,+ ) / safeDt+ lastCamPos.current.copy(camera.position)++ const angSpeed = camera.quaternion.angleTo(lastCamQuat.current) / safeDt+ lastCamQuat.current.copy(camera.quaternion)++ // distance-driven freq + max: near distance -> high, far -> low+ const freq = params.shakeFreqNear + (params.shakeFreqFar - params.shakeFreqNear) * distU+ const shakeMax = params.shakeMaxNear + (params.shakeMaxFar - params.shakeMaxNear) * distU++ const rawTarget = linSpeed + angSpeed+ const targetIntensity = Math.min(rawTarget, shakeMax)+ const rampRate =+ targetIntensity > shakeIntensity.current ? params.shakeRampUp : params.shakeRampDown+ const rampA = 1 - Math.exp(-rampRate * dt)+ shakeIntensity.current += (targetIntensity - shakeIntensity.current) * rampA+ const total = shakeIntensity.current+ tRef.current += freq * dt+ if (total > 0.0001) {+ const t = tRef.current+ const o = offsets.current+ const n = noise.current+ // ImprovedNoise.noise(x,y,z) returns ~[-1,1]; we offset y per-axis for uncorrelated streams.+ const npx = n.noise(t, o.px, 0)+ const npy = n.noise(t, o.py, 0)+ const nrx = n.noise(t * 1.3, o.rx, 0)+ const nry = n.noise(t * 1.3, o.ry, 0)++ _right.set(1, 0, 0).applyQuaternion(camera.quaternion)+ _up.set(0, 1, 0).applyQuaternion(camera.quaternion)+ const posAmt = total * params.shakePositionAmount+ camera.position.addScaledVector(_right, npx * posAmt)+ camera.position.addScaledVector(_up, npy * posAmt)++ const rotAmt = total * params.shakeRotationAmount+ camera.rotateX(nrx * rotAmt)+ camera.rotateY(nry * rotAmt)+ }+ })++ return null+}diff --git a/third_party/image-blaster/app/src/modules/butterfly/WindAudio.tsx b/third_party/image-blaster/app/src/modules/butterfly/WindAudio.tsxnew file mode 100644index 000000000..b6a65fe26--- /dev/null+++ b/third_party/image-blaster/app/src/modules/butterfly/WindAudio.tsx@@ -0,0 +1,49 @@+import { useEffect, useRef } from 'react'+import { useFrame } from '@react-three/fiber'+import { useButterflyStore } from './store'+import { useAudioReady } from '../audio/useAudioReady'+import { useAudioStore } from '../../store/audio'++const URL = '/butterfly/sfx/wing-flap-loop.wav'++interface Props {+ angularIntensityRef: React.RefObject<number>+}++export function WindAudio({ angularIntensityRef }: Props) {+ const audioRef = useRef<HTMLAudioElement | null>(null)+ const mixRef = useRef(0)+ const tRef = useRef(0)+ const ready = useAudioReady()++ useEffect(() => {+ if (!ready) return+ const a = new Audio(URL)+ a.loop = true+ a.volume = 0+ audioRef.current = a+ a.play().catch(() => {})+ return () => {+ a.pause()+ a.src = ''+ audioRef.current = null+ }+ }, [ready])++ useFrame((_, dtRaw) => {+ const a = audioRef.current+ if (!a) return+ const dt = Math.min(dtRaw, 0.05)+ tRef.current += dt+ const p = useButterflyStore.getState()+ const ang = Math.max(0, Math.min(1, angularIntensityRef.current ?? 0))+ const k = 1 - Math.exp(-p.windLerpSpeed * dt)+ mixRef.current += (ang - mixRef.current) * k+ const sine = 0.5 + 0.5 * Math.sin(tRef.current * p.windSineFreq)+ const env = 1 - p.windSineDepth + p.windSineDepth * sine+ const muted = useAudioStore.getState().muted+ a.volume = muted ? 0 : Math.max(0, Math.min(1, mixRef.current * env * p.windVolume))+ })++ return null+}diff --git a/third_party/image-blaster/app/src/modules/butterfly/params.ts b/third_party/image-blaster/app/src/modules/butterfly/params.tsnew file mode 100644index 000000000..869a5a6de--- /dev/null+++ b/third_party/image-blaster/app/src/modules/butterfly/params.ts@@ -0,0 +1,100 @@+type Folder = 'Flight' | 'Camera' | 'Shake' | 'Flock' | 'Noise' | 'Appearance' | 'Audio' | null++interface NumSpec {+ value: number+ min: number+ max: number+ step: number+ folder: Folder+ label?: string+}+interface BoolSpec {+ value: boolean+ folder: Folder+ label?: string+}+type Spec = NumSpec | BoolSpec++export const FOLDER_ORDER: Exclude<Folder, null>[] = ['Flight', 'Camera', 'Shake', 'Flock', 'Noise', 'Appearance', 'Audio']++export const PARAM_SPECS = {+ paused: { value: false, folder: null, label: 'Pause Movement' },+ showDebug: { value: false, folder: null, label: 'Show Debug Wireframes' },++ flightSpeed: { value: .3, min: 0, max: 1, step: 0.1, folder: 'Flight' },+ rotationSpeed: { value: 1.5, min: 0, max: 6, step: 0.05, folder: 'Flight' },+ targetRadius: { value: 0.2, min: 0.05, max: 2, step: 0.01, folder: 'Flight' },++ cameraPositionLerp: { value: 2.5, min: 0.1, max: 30, step: 0.1, folder: 'Camera' },+ cameraRotationLerp: { value: 8, min: 0.1, max: 60, step: 0.1, folder: 'Camera' },+ mouseSensitivity: { value: 0.0005, min: 0.0005, max: 0.02, step: 0.0005, folder: 'Camera' },+ invertY: { value: true, folder: 'Camera', label: 'Invert Y' },+ minDistance: { value: 0.3, min: 0.1, max: 10, step: 0.05, folder: 'Camera' },+ maxDistance: { value: 0.8, min: 0.2, max: 50, step: 0.1, folder: 'Camera' },+ defaultDistance: { value: 0.5, min: 0.1, max: 50, step: 0.05, folder: 'Camera' },+ cameraHeightOffset: { value: 0, min: -2, max: 2, step: 0.01, folder: 'Camera' },+ zoomSpeed: { value: 1.0, min: 0.1, max: 5, step: 0.05, folder: 'Camera' },+ zoomLerp: { value: 8, min: 0.5, max: 30, step: 0.5, folder: 'Camera' },+ nearFov: { value: 60, min: 10, max: 120, step: 0.5, folder: 'Camera' },+ farFov: { value: 70, min: 10, max: 120, step: 0.5, folder: 'Camera' },+ fovLerp: { value: 8, min: 0.5, max: 30, step: 0.5, folder: 'Camera' },+ rightClickFovOffset: { value: 15, min: 0, max: 60, step: 0.5, folder: 'Camera' },+ defaultYaw: { value: 0, min: -Math.PI, max: Math.PI, step: 0.01, folder: 'Camera' },+ defaultPitch: { value: -0.15, min: -1.5, max: 1.5, step: 0.01, folder: 'Camera' },++ shakeMaxNear: { value: 0.5, min: 0, max: 10, step: 0.01, folder: 'Shake' },+ shakeMaxFar: { value: 2.5, min: 0, max: 10, step: 0.01, folder: 'Shake' },+ shakeRampUp: { value: 3, min: 0.1, max: 30, step: 0.1, folder: 'Shake' },+ shakeRampDown: { value: 3, min: 0.1, max: 30, step: 0.1, folder: 'Shake' },+ shakePositionAmount: { value: 0.25, min: 0, max: 1, step: 0.001, folder: 'Shake' },+ shakeRotationAmount: { value: 0.01, min: 0, max: 0.3, step: 0.001, folder: 'Shake' },+ shakeFreqNear: { value: 1.4, min: 0.1, max: 30, step: 0.1, folder: 'Shake' },+ shakeFreqFar: { value: 0.8, min: 0.1, max: 30, step: 0.1, folder: 'Shake' },++ boidCount: { value: 8, min: 1, max: 100, step: 1, folder: 'Flock' },+ neighborRadius: { value: 0.4, min: 0.01, max: 2, step: 0.01, folder: 'Flock' },+ separationRadius: { value: 0.5, min: 0.01, max: 5, step: 0.01, folder: 'Flock' },+ maxSpeed: { value: 0.75, min: 0.05, max: 3, step: 0.05, folder: 'Flock' },+ attractionWeight: { value: 6, min: 0, max: 20, step: 0.05, folder: 'Flock' },+ separationWeight: { value: 8, min: 0, max: 20, step: 0.05, folder: 'Flock' },+ alignmentWeight: { value: 5, min: 0, max: 20, step: 0.05, folder: 'Flock' },+ cohesionWeight: { value: 0.1, min: 0, max: 20, step: 0.05, folder: 'Flock' },++ noiseBase: { value: 0.1, min: 0, max: 10, step: 0.05, folder: 'Noise' },+ noiseVelScale: { value: 0.05, min: 0, max: 5, step: 0.05, folder: 'Noise' },+ noiseFreq1: { value: 6.0, min: 0.1, max: 30, step: 0.1, folder: 'Noise' },+ noiseFreq2: { value: 13.0, min: 0.1, max: 30, step: 0.1, folder: 'Noise' },+ adherenceNoiseAmount: { value: 0.6, min: 0, max: 1, step: 0.01, folder: 'Noise' },+ adherenceNoiseFreq: { value: 0.4, min: 0.01, max: 5, step: 0.01, folder: 'Noise' },+ speedNoiseAmount: { value: 0.7, min: 0, max: 1, step: 0.01, folder: 'Noise' },+ speedNoiseFreq: { value: 0.5, min: 0.01, max: 5, step: 0.01, folder: 'Noise' },++ meshSize: { value: 2.5, min: 0.05, max: 10, step: 0.05, folder: 'Appearance' },+ spawnJitter: { value: 0.2, min: 0, max: 10, step: 0.1, folder: 'Appearance' },+ rotationLerp: { value: 25, min: 1, max: 100, step: 0.5, folder: 'Appearance' },++ flapSpeedBase: { value: 1.0, min: 0, max: 10, step: 0.05, folder: 'Appearance' },+ flapSpeedVelScale: { value: 0.5, min: 0, max: 10, step: 0.05, folder: 'Appearance' },++ flapVolume: { value: 0.6, min: 0, max: 2, step: 0.01, folder: 'Audio' },+ flapRefDistance: { value: 0.5, min: 0.05, max: 10, step: 0.05, folder: 'Audio' },+ flapMoveLerp: { value: 4, min: 0.1, max: 30, step: 0.1, folder: 'Audio' },+ flapSineFreq: { value: 1.8, min: 0.05, max: 10, step: 0.05, folder: 'Audio' },+ flapSineDepth: { value: 0.6, min: 0, max: 1, step: 0.01, folder: 'Audio' },+ windVolume: { value: 0.35, min: 0, max: 2, step: 0.01, folder: 'Audio' },+ windLerpSpeed: { value: 3, min: 0.1, max: 30, step: 0.1, folder: 'Audio' },+ windAngularThreshold: { value: 1.5, min: 0.1, max: 10, step: 0.05, folder: 'Audio' },+ windSineFreq: { value: 1.2, min: 0.05, max: 10, step: 0.05, folder: 'Audio' },+ windSineDepth: { value: 0.7, min: 0, max: 1, step: 0.01, folder: 'Audio' },+ ambientVolume: { value: 0.5, min: 0, max: 2, step: 0.01, folder: 'Audio' },+} as const satisfies Record<string, Spec>++type Widen<T> = T extends boolean ? boolean : T extends number ? number : T++export type ButterflyParams = {+ -readonly [K in keyof typeof PARAM_SPECS]: Widen<(typeof PARAM_SPECS)[K]['value']>+}++export const DEFAULT_PARAMS: ButterflyParams = Object.fromEntries(+ Object.entries(PARAM_SPECS).map(([k, s]) => [k, s.value]),+) as ButterflyParamsdiff --git a/third_party/image-blaster/app/src/modules/butterfly/store.ts b/third_party/image-blaster/app/src/modules/butterfly/store.tsnew file mode 100644index 000000000..e4f6273b8--- /dev/null+++ b/third_party/image-blaster/app/src/modules/butterfly/store.ts@@ -0,0 +1,16 @@+import { create } from 'zustand'+import { DEFAULT_PARAMS, type ButterflyParams } from './params'++interface ButterflyStore extends ButterflyParams {+ setParam: <K extends keyof ButterflyParams>(key: K, value: ButterflyParams[K]) => void+}++export const useButterflyStore = create<ButterflyStore>((set) => ({+ ...DEFAULT_PARAMS,+ setParam: (key, value) => set({ [key]: value } as Partial<ButterflyStore>),+}))++export const getButterflyParams = (): ButterflyParams => {+ const s = useButterflyStore.getState()+ return s+}diff --git a/third_party/image-blaster/app/src/modules/butterfly/useButterflyInput.ts b/third_party/image-blaster/app/src/modules/butterfly/useButterflyInput.tsnew file mode 100644index 000000000..63e837357--- /dev/null+++ b/third_party/image-blaster/app/src/modules/butterfly/useButterflyInput.ts@@ -0,0 +1,151 @@+import { useCallback, useEffect, useRef } from 'react'+import { useThree } from '@react-three/fiber'+import { useCameraDollyGestures } from '../camera/useCameraDollyGestures'+import { useButterflyStore } from './store'+import { isEditableTarget } from '../../utils/dom'++export interface ButterflyInput {+ keys: React.MutableRefObject<Set<string>>+ yaw: React.MutableRefObject<number>+ pitch: React.MutableRefObject<number>+ distance: React.MutableRefObject<number>+ targetDistance: React.MutableRefObject<number>+ touchMoveVec: React.MutableRefObject<{ x: number; y: number }>+ touchVertical: React.MutableRefObject<number>+}++const PITCH_LIMIT = Math.PI / 2.1+const DOLLY_UNITS_PER_PIXEL = 0.01++export function useButterflyInput(): ButterflyInput {+ const { gl } = useThree()+ const keys = useRef(new Set<string>())+ const yaw = useRef(useButterflyStore.getState().defaultYaw)+ const pitch = useRef(useButterflyStore.getState().defaultPitch)+ const distance = useRef(useButterflyStore.getState().defaultDistance)+ const targetDistance = useRef(useButterflyStore.getState().defaultDistance)+ const touchMoveVec = useRef({ x: 0, y: 0 })+ const touchVertical = useRef(0)++ const applyDolly = useCallback((deltaY: number) => {+ const s = useButterflyStore.getState()+ targetDistance.current = Math.max(+ s.minDistance,+ Math.min(s.maxDistance, targetDistance.current + deltaY * DOLLY_UNITS_PER_PIXEL * s.zoomSpeed),+ )+ }, [])++ useCameraDollyGestures({ domElement: gl.domElement, onDollyPixels: applyDolly })++ useEffect(() => {+ const onKey = (e: KeyboardEvent) => {+ if (isEditableTarget(e.target)) {+ keys.current.delete(e.code)+ return+ }+ if (e.type === 'keydown') {+ keys.current.add(e.code)+ if (e.code === 'KeyP') {+ const s = useButterflyStore.getState()+ s.setParam('paused', !s.paused)+ }+ } else {+ keys.current.delete(e.code)+ }+ }+ window.addEventListener('keydown', onKey)+ window.addEventListener('keyup', onKey)++ const onBlur = () => keys.current.clear()+ window.addEventListener('blur', onBlur)++ const onWheel = (e: WheelEvent) => {+ e.preventDefault()+ const s = useButterflyStore.getState()+ targetDistance.current = Math.max(+ s.minDistance,+ Math.min(s.maxDistance, targetDistance.current + e.deltaY * 0.01 * s.zoomSpeed),+ )+ }+ gl.domElement.addEventListener('wheel', onWheel, { passive: false })++ const touches = new Map<number, { x: number; y: number }>()+ let moveTouchId: number | null = null+ let lookTouchId: number | null = null+ let moveOrigin = { x: 0, y: 0 }++ const onTouchStart = (e: TouchEvent) => {+ const changedTouches = Array.from(e.changedTouches)+ for (const t of changedTouches) {+ touches.set(t.identifier, { x: t.clientX, y: t.clientY })+ }+ if (e.touches.length >= 2) {+ touchMoveVec.current.x = 0+ touchMoveVec.current.y = 0+ return+ }+ for (const t of changedTouches) {+ const isLeft = t.clientX < window.innerWidth / 2+ if (isLeft && moveTouchId === null) {+ moveTouchId = t.identifier+ moveOrigin = { x: t.clientX, y: t.clientY }+ } else if (!isLeft && lookTouchId === null) {+ lookTouchId = t.identifier+ }+ }+ }+ const onTouchMove = (e: TouchEvent) => {+ for (const t of Array.from(e.changedTouches)) {+ const prev = touches.get(t.identifier)+ touches.set(t.identifier, { x: t.clientX, y: t.clientY })+ if (e.touches.length >= 2) continue+ if (t.identifier === lookTouchId && prev) {+ const st = useButterflyStore.getState()+ const s = st.mouseSensitivity+ const ySign = st.invertY ? 1 : -1+ yaw.current -= (t.clientX - prev.x) * s * 1.5+ pitch.current += (t.clientY - prev.y) * s * 1.5 * ySign+ pitch.current = Math.max(-PITCH_LIMIT, Math.min(PITCH_LIMIT, pitch.current))+ }+ if (t.identifier === moveTouchId) {+ const dx = (t.clientX - moveOrigin.x) / 50+ const dy = (t.clientY - moveOrigin.y) / 50+ touchMoveVec.current.x = Math.max(-1, Math.min(1, dx))+ touchMoveVec.current.y = Math.max(-1, Math.min(1, -dy))+ }+ }+ if (e.touches.length >= 2) {+ touchMoveVec.current.x = 0+ touchMoveVec.current.y = 0+ }+ }+ const onTouchEnd = (e: TouchEvent) => {+ for (const t of Array.from(e.changedTouches)) {+ touches.delete(t.identifier)+ if (t.identifier === moveTouchId) {+ moveTouchId = null+ touchMoveVec.current.x = 0+ touchMoveVec.current.y = 0+ }+ if (t.identifier === lookTouchId) lookTouchId = null+ }+ }+ gl.domElement.addEventListener('touchstart', onTouchStart, { passive: true })+ gl.domElement.addEventListener('touchmove', onTouchMove, { passive: true })+ gl.domElement.addEventListener('touchend', onTouchEnd, { passive: true })+ gl.domElement.addEventListener('touchcancel', onTouchEnd, { passive: true })++ return () => {+ window.removeEventListener('keydown', onKey)+ window.removeEventListener('keyup', onKey)+ window.removeEventListener('blur', onBlur)+ gl.domElement.removeEventListener('wheel', onWheel)+ gl.domElement.removeEventListener('touchstart', onTouchStart)+ gl.domElement.removeEventListener('touchmove', onTouchMove)+ gl.domElement.removeEventListener('touchend', onTouchEnd)+ gl.domElement.removeEventListener('touchcancel', onTouchEnd)+ }+ }, [gl])++ return { keys, yaw, pitch, distance, targetDistance, touchMoveVec, touchVertical }+}diff --git a/third_party/image-blaster/app/src/modules/camera/cameraFocus.ts b/third_party/image-blaster/app/src/modules/camera/cameraFocus.tsnew file mode 100644index 000000000..1cd559829--- /dev/null+++ b/third_party/image-blaster/app/src/modules/camera/cameraFocus.ts@@ -0,0 +1,6 @@+import * as THREE from 'three'++export const cameraFocusTarget = { current: null as THREE.Vector3 | null }++/** Set this to an object id; ObjectGrid resolves it to a world position next frame. */+export const pendingFocusId = { current: null as string | null }diff --git a/third_party/image-blaster/app/src/modules/camera/useCameraDollyGestures.ts b/third_party/image-blaster/app/src/modules/camera/useCameraDollyGestures.tsnew file mode 100644index 000000000..5d53a0b06--- /dev/null+++ b/third_party/image-blaster/app/src/modules/camera/useCameraDollyGestures.ts@@ -0,0 +1,96 @@+import { useEffect } from 'react'++const RIGHT_MOUSE_BUTTON = 2++interface Props {+ domElement: HTMLElement+ onDollyPixels: (deltaY: number) => void+}++function touchCentroidY(touches: TouchList) {+ let total = 0+ for (const touch of Array.from(touches)) total += touch.clientY+ return total / touches.length+}++export function useCameraDollyGestures({ domElement, onDollyPixels }: Props) {+ useEffect(() => {+ let rightDragging = false+ let lastMouseY = 0+ let twoFingerDragging = false+ let lastTouchY = 0++ const onContextMenu = (event: MouseEvent) => {+ event.preventDefault()+ }++ const onMouseDown = (event: MouseEvent) => {+ if (event.button !== RIGHT_MOUSE_BUTTON) return+ rightDragging = true+ lastMouseY = event.clientY+ event.preventDefault()+ }++ const onMouseMove = (event: MouseEvent) => {+ if (!rightDragging) return+ const deltaY = document.pointerLockElement === domElement ? event.movementY : event.clientY - lastMouseY+ lastMouseY = event.clientY+ onDollyPixels(deltaY)+ event.preventDefault()+ }++ const onMouseUp = (event: MouseEvent) => {+ if (event.button !== RIGHT_MOUSE_BUTTON) return+ rightDragging = false+ event.preventDefault()+ }++ const onTouchStart = (event: TouchEvent) => {+ if (event.touches.length !== 2) return+ twoFingerDragging = true+ lastTouchY = touchCentroidY(event.touches)+ }++ const onTouchMove = (event: TouchEvent) => {+ if (event.touches.length !== 2) {+ twoFingerDragging = false+ return+ }++ const currentY = touchCentroidY(event.touches)+ if (twoFingerDragging) onDollyPixels(currentY - lastTouchY)+ lastTouchY = currentY+ twoFingerDragging = true+ event.preventDefault()+ }++ const onTouchEnd = (event: TouchEvent) => {+ if (event.touches.length === 2) {+ lastTouchY = touchCentroidY(event.touches)+ twoFingerDragging = true+ return+ }+ twoFingerDragging = false+ }++ domElement.addEventListener('contextmenu', onContextMenu)+ domElement.addEventListener('mousedown', onMouseDown)+ window.addEventListener('mousemove', onMouseMove, { passive: false })+ window.addEventListener('mouseup', onMouseUp, { passive: false })+ domElement.addEventListener('touchstart', onTouchStart, { passive: true })+ domElement.addEventListener('touchmove', onTouchMove, { passive: false })+ domElement.addEventListener('touchend', onTouchEnd)+ domElement.addEventListener('touchcancel', onTouchEnd)++ return () => {+ domElement.removeEventListener('contextmenu', onContextMenu)+ domElement.removeEventListener('mousedown', onMouseDown)+ window.removeEventListener('mousemove', onMouseMove)+ window.removeEventListener('mouseup', onMouseUp)+ domElement.removeEventListener('touchstart', onTouchStart)+ domElement.removeEventListener('touchmove', onTouchMove)+ domElement.removeEventListener('touchend', onTouchEnd)+ domElement.removeEventListener('touchcancel', onTouchEnd)+ }+ }, [domElement, onDollyPixels])+}diff --git a/third_party/image-blaster/app/src/modules/camera/useCameraGestures.ts b/third_party/image-blaster/app/src/modules/camera/useCameraGestures.tsnew file mode 100644index 000000000..6794a2f44--- /dev/null+++ b/third_party/image-blaster/app/src/modules/camera/useCameraGestures.ts@@ -0,0 +1,125 @@+import { useEffect } from 'react'++interface Props {+ domElement: HTMLElement+ onDollyPixels: (delta: number) => void+ onTumblePixels: (dx: number, dy: number) => void+}++export function useCameraGestures({ domElement, onDollyPixels, onTumblePixels }: Props) {+ useEffect(() => {+ let rightDragging = false+ let lastMouseX = 0+ let lastMouseY = 0+ let twoFingerActive = false+ let lastPinchDist = 0+ let lastTouchX = 0+ let lastTouchY = 0++ const onContextMenu = (e: MouseEvent) => e.preventDefault()++ const onMouseDown = (e: MouseEvent) => {+ if (e.button !== 2) return+ rightDragging = true+ lastMouseX = e.clientX+ lastMouseY = e.clientY+ e.preventDefault()+ }++ const onMouseMove = (e: MouseEvent) => {+ if (!rightDragging) return+ if (document.pointerLockElement === domElement) return+ const dx = e.clientX - lastMouseX+ const dy = e.clientY - lastMouseY+ lastMouseX = e.clientX+ lastMouseY = e.clientY+ onTumblePixels(dx, dy)+ }++ const onMouseUp = (e: MouseEvent) => {+ if (e.button === 2) rightDragging = false+ }++ const onWheel = (e: WheelEvent) => {+ e.preventDefault()+ if (e.ctrlKey) {+ // trackpad pinch-to-zoom+ onDollyPixels(e.deltaY)+ return+ }+ // Trackpad two-finger drag reports as pixel-mode wheel, including vertical drags.+ // Treat it as look/tumble; translation stays on fly keys and zoom stays on pinch/wheel.+ if (e.deltaMode === 0) {+ onTumblePixels(-e.deltaX, -e.deltaY)+ return+ }+ // Mouse wheel zooms on non-pixel wheel events.+ onDollyPixels(e.deltaY)+ }++ const touchDist = (t: TouchList) =>+ Math.hypot(t[1].clientX - t[0].clientX, t[1].clientY - t[0].clientY)++ const touchCenter = (t: TouchList) => ({+ x: (t[0].clientX + t[1].clientX) / 2,+ y: (t[0].clientY + t[1].clientY) / 2,+ })++ const onTouchStart = (e: TouchEvent) => {+ if (e.touches.length !== 2) { twoFingerActive = false; return }+ twoFingerActive = true+ lastPinchDist = touchDist(e.touches)+ const c = touchCenter(e.touches)+ lastTouchX = c.x+ lastTouchY = c.y+ }++ const onTouchMove = (e: TouchEvent) => {+ if (e.touches.length !== 2) { twoFingerActive = false; return }+ e.preventDefault()+ const dist = touchDist(e.touches)+ const c = touchCenter(e.touches)+ if (twoFingerActive) {+ const dx = c.x - lastTouchX+ const dy = c.y - lastTouchY+ const centerMove = Math.hypot(dx, dy)+ const pinchDelta = lastPinchDist - dist+ if (centerMove > 0.2) {+ onTumblePixels(-dx, -dy)+ } else if (Math.abs(pinchDelta) > 4) {+ onDollyPixels(pinchDelta * 2.5)+ }+ }+ lastPinchDist = dist+ lastTouchX = c.x+ lastTouchY = c.y+ twoFingerActive = true+ }++ const onTouchEnd = (e: TouchEvent) => {+ if (e.touches.length < 2) twoFingerActive = false+ }++ domElement.addEventListener('contextmenu', onContextMenu)+ domElement.addEventListener('mousedown', onMouseDown)+ window.addEventListener('mousemove', onMouseMove)+ window.addEventListener('mouseup', onMouseUp)+ domElement.addEventListener('wheel', onWheel, { passive: false })+ domElement.addEventListener('touchstart', onTouchStart, { passive: true })+ domElement.addEventListener('touchmove', onTouchMove, { passive: false })+ domElement.addEventListener('touchend', onTouchEnd)+ domElement.addEventListener('touchcancel', onTouchEnd)++ return () => {+ domElement.removeEventListener('contextmenu', onContextMenu)+ domElement.removeEventListener('mousedown', onMouseDown)+ window.removeEventListener('mousemove', onMouseMove)+ window.removeEventListener('mouseup', onMouseUp)+ domElement.removeEventListener('wheel', onWheel)+ domElement.removeEventListener('touchstart', onTouchStart)+ domElement.removeEventListener('touchmove', onTouchMove)+ domElement.removeEventListener('touchend', onTouchEnd)+ domElement.removeEventListener('touchcancel', onTouchEnd)+ }+ }, [domElement, onDollyPixels, onTumblePixels])+}diff --git a/third_party/image-blaster/app/src/modules/character/CharacterController.tsx b/third_party/image-blaster/app/src/modules/character/CharacterController.tsxnew file mode 100644index 000000000..c1815433b--- /dev/null+++ b/third_party/image-blaster/app/src/modules/character/CharacterController.tsx@@ -0,0 +1,225 @@+import { useRef, useEffect, useState, forwardRef, useImperativeHandle, useCallback } from 'react'+import { useFrame, useThree } from '@react-three/fiber'+import { RigidBody, CapsuleCollider, useRapier } from '@react-three/rapier'+import * as THREE from 'three'+import { useCameraGestures } from '../camera/useCameraGestures'+import { useDebugStore } from '../../store/debug'+import { isEditableTarget } from '../../utils/dom'+import {+ CAMERA_EYE_OFFSET,+ CHARACTER_BODY_SPAWN,+ CHARACTER_BODY_SPAWN_POSITION,+ CHARACTER_HEIGHT,+} from './spawn'++export interface CharacterControllerHandle {+ reset: () => void+}++const SPEED = 4+const JUMP_VELOCITY = 3+const MOUSE_SMOOTHING = 0.12+const DOLLY_UNITS_PER_PIXEL = 0.01+const CHARACTER_RADIUS = 0.25+const CHARACTER_HALF_SEGMENT = CHARACTER_HEIGHT / 2 - CHARACTER_RADIUS+const GROUND_CHECK_DISTANCE = CAMERA_EYE_OFFSET + 0.08+const DEFAULT_YAW = 0++const _forward = new THREE.Vector3()+const _right = new THREE.Vector3()+const _dollyForward = new THREE.Vector3()+const _move = new THREE.Vector3()+const _euler = new THREE.Euler(0, 0, 0, 'YXZ')++export const CharacterController = forwardRef<CharacterControllerHandle>(+ function CharacterController(_, ref) {+ const bodyRef = useRef<React.ComponentRef<typeof RigidBody>>(null)+ const { camera, gl } = useThree()+ const mouseSensitivity = useDebugStore((s) => s.flyMouseSensitivity)+ const { rapier, world } = useRapier()++ const keys = useRef(new Set<string>())+ const jumpQueued = useRef(false)+ const rawYaw = useRef(DEFAULT_YAW)+ const rawPitch = useRef(0)+ const smoothYaw = useRef(DEFAULT_YAW)+ const smoothPitch = useRef(0)+ const touchLook = useRef<{ id: number; x: number; y: number } | null>(null)+ const touchMove = useRef<{ id: number; x: number; y: number } | null>(null)+ const [joystickPos, setJoystickPos] = useState({ x: 0, y: 0 })++ useImperativeHandle(ref, () => ({+ reset: () => {+ if (!bodyRef.current) return+ bodyRef.current.setTranslation(CHARACTER_BODY_SPAWN, true)+ bodyRef.current.setLinvel({ x: 0, y: 0, z: 0 }, true)+ bodyRef.current.setAngvel({ x: 0, y: 0, z: 0 }, true)+ rawYaw.current = DEFAULT_YAW+ rawPitch.current = 0+ smoothYaw.current = DEFAULT_YAW+ smoothPitch.current = 0+ keys.current.clear()+ camera.quaternion.setFromEuler(_euler.set(0, DEFAULT_YAW, 0))+ },+ }))++ const applyDolly = useCallback((deltaY: number) => {+ const body = bodyRef.current+ if (!body) return++ _dollyForward.set(0, 0, -1).applyQuaternion(camera.quaternion).setY(0)+ if (_dollyForward.lengthSq() < 0.0001) return+ _dollyForward.normalize()++ const amount = -deltaY * DOLLY_UNITS_PER_PIXEL+ const position = body.translation()+ body.setTranslation(+ {+ x: position.x + _dollyForward.x * amount,+ y: position.y,+ z: position.z + _dollyForward.z * amount,+ },+ true,+ )+ body.wakeUp()+ }, [camera])++ const applyLook = useCallback((dx: number, dy: number) => {+ rawYaw.current -= dx * mouseSensitivity+ rawPitch.current -= dy * mouseSensitivity+ rawPitch.current = Math.max(-Math.PI / 2.2, Math.min(Math.PI / 2.2, rawPitch.current))+ }, [mouseSensitivity])++ useCameraGestures({ domElement: gl.domElement, onDollyPixels: applyDolly, onTumblePixels: applyLook })++ useEffect(() => {+ const onKey = (e: KeyboardEvent) => {+ if (isEditableTarget(e.target)) {+ keys.current.delete(e.code)+ return+ }+ if (e.type === 'keydown') {+ keys.current.add(e.code)+ if (e.code === 'Space' && !e.repeat) {+ jumpQueued.current = true+ e.preventDefault()+ }+ } else {+ keys.current.delete(e.code)+ }+ }+ window.addEventListener('keydown', onKey)+ window.addEventListener('keyup', onKey)++ // Touch handlers+ const onTouchStart = (e: TouchEvent) => {+ if (e.touches.length >= 2) return+ for (const touch of Array.from(e.changedTouches)) {+ const isLeft = touch.clientX < window.innerWidth / 2+ if (isLeft && !touchMove.current) {+ touchMove.current = { id: touch.identifier, x: touch.clientX, y: touch.clientY }+ setJoystickPos({ x: touch.clientX, y: touch.clientY })+ } else if (!isLeft && !touchLook.current) {+ touchLook.current = { id: touch.identifier, x: touch.clientX, y: touch.clientY }+ }+ }+ }+ const onTouchMove = (e: TouchEvent) => {+ if (e.touches.length >= 2) return+ for (const touch of Array.from(e.changedTouches)) {+ if (touchLook.current?.id === touch.identifier) {+ const dx = touch.clientX - touchLook.current.x+ const dy = touch.clientY - touchLook.current.y+ rawYaw.current -= dx * 0.004+ rawPitch.current -= dy * 0.004+ rawPitch.current = Math.max(-Math.PI / 2.2, Math.min(Math.PI / 2.2, rawPitch.current))+ touchLook.current = { id: touch.identifier, x: touch.clientX, y: touch.clientY }+ }+ if (touchMove.current?.id === touch.identifier) {+ touchMove.current = { ...touchMove.current, x: touch.clientX, y: touch.clientY }+ }+ }+ }+ const onTouchEnd = (e: TouchEvent) => {+ for (const touch of Array.from(e.changedTouches)) {+ if (touchLook.current?.id === touch.identifier) touchLook.current = null+ if (touchMove.current?.id === touch.identifier) {+ touchMove.current = null+ setJoystickPos({ x: 0, y: 0 })+ }+ }+ }+ gl.domElement.addEventListener('touchstart', onTouchStart, { passive: true })+ gl.domElement.addEventListener('touchmove', onTouchMove, { passive: true })+ gl.domElement.addEventListener('touchend', onTouchEnd, { passive: true })++ return () => {+ window.removeEventListener('keydown', onKey)+ window.removeEventListener('keyup', onKey)+ gl.domElement.removeEventListener('touchstart', onTouchStart)+ gl.domElement.removeEventListener('touchmove', onTouchMove)+ gl.domElement.removeEventListener('touchend', onTouchEnd)+ }+ }, [gl.domElement])++ useFrame((_state, delta) => {+ const body = bodyRef.current+ if (!body) return++ const smoothing = 1 - Math.pow(1 - MOUSE_SMOOTHING, delta * 60)+ smoothYaw.current += (rawYaw.current - smoothYaw.current) * smoothing+ smoothPitch.current += (rawPitch.current - smoothPitch.current) * smoothing++ _euler.set(smoothPitch.current, smoothYaw.current, 0)+ camera.quaternion.setFromEuler(_euler)++ // Compute move direction from keys + touch joystick+ let fwd = 0, strafe = 0+ if (keys.current.has('KeyW') || keys.current.has('ArrowUp')) fwd += 1+ if (keys.current.has('KeyS') || keys.current.has('ArrowDown')) fwd -= 1+ if (keys.current.has('KeyA') || keys.current.has('ArrowLeft')) strafe -= 1+ if (keys.current.has('KeyD') || keys.current.has('ArrowRight')) strafe += 1++ if (touchMove.current) {+ const origin = joystickPos+ const dx = (touchMove.current.x - origin.x) / 50+ const dy = (touchMove.current.y - origin.y) / 50+ strafe += Math.max(-1, Math.min(1, dx))+ fwd -= Math.max(-1, Math.min(1, dy))+ }++ _forward.set(0, 0, -1).applyQuaternion(camera.quaternion).setY(0).normalize()+ _right.set(1, 0, 0).applyQuaternion(camera.quaternion).setY(0).normalize()+ _move.set(0, 0, 0).addScaledVector(_forward, fwd).addScaledVector(_right, strafe)+ if (_move.lengthSq() > 1) _move.normalize()++ const vel = body.linvel()+ let nextY = vel.y+ if (jumpQueued.current) {+ const pos = body.translation()+ const ray = new rapier.Ray(+ { x: pos.x, y: pos.y, z: pos.z },+ { x: 0, y: -1, z: 0 },+ )+ const grounded = Boolean(world.castRay(ray, GROUND_CHECK_DISTANCE, true, undefined, undefined, undefined, body))+ if (grounded) nextY = JUMP_VELOCITY+ jumpQueued.current = false+ }+ body.setLinvel({ x: _move.x * SPEED, y: nextY, z: _move.z * SPEED }, true)++ // Sync camera position to body+ const pos = body.translation()+ camera.position.set(pos.x, pos.y + CAMERA_EYE_OFFSET, pos.z)+ })++ return (+ <RigidBody+ ref={bodyRef}+ position={CHARACTER_BODY_SPAWN_POSITION}+ enabledRotations={[false, false, false]}+ linearDamping={0}+ >+ <CapsuleCollider args={[CHARACTER_HALF_SEGMENT, CHARACTER_RADIUS]} />+ </RigidBody>+ )+})diff --git a/third_party/image-blaster/app/src/modules/character/FlyController.tsx b/third_party/image-blaster/app/src/modules/character/FlyController.tsxnew file mode 100644index 000000000..1e50447f4--- /dev/null+++ b/third_party/image-blaster/app/src/modules/character/FlyController.tsx@@ -0,0 +1,147 @@+import { useRef, useEffect, forwardRef, useImperativeHandle, useCallback } from 'react'+import { useFrame, useThree } from '@react-three/fiber'+import * as THREE from 'three'+import { useCameraGestures } from '../camera/useCameraGestures'+import { cameraFocusTarget } from '../camera/cameraFocus'+import { useDebugStore } from '../../store/debug'+import { isEditableTarget } from '../../utils/dom'+import { CHARACTER_SPAWN } from './spawn'++export interface FlyControllerHandle {+ reset: () => void+}++interface FlyControllerProps {+ preserveCameraOnMount?: boolean+}++const SPEED = 6+const SHIFT_MULT = 3+const SMOOTH = 0.12+const DOLLY_UNITS_PER_PIXEL = 0.02+const DEFAULT_YAW = 0++const _forward = new THREE.Vector3()+const _dollyForward = new THREE.Vector3()+const _right = new THREE.Vector3()+const _up = new THREE.Vector3(0, 1, 0)+const _move = new THREE.Vector3()+const _euler = new THREE.Euler(0, 0, 0, 'YXZ')++export const FlyController = forwardRef<FlyControllerHandle, FlyControllerProps>(function FlyController({ preserveCameraOnMount = false }, ref) {+ const { camera, gl } = useThree()+ const mouseSensitivity = useDebugStore((s) => s.flyMouseSensitivity)+ const keys = useRef(new Set<string>())+ const rawYaw = useRef(0)+ const rawPitch = useRef(0)+ const smoothYaw = useRef(0)+ const smoothPitch = useRef(0)++ const reset = useCallback(() => {+ camera.position.set(CHARACTER_SPAWN.x, CHARACTER_SPAWN.y, CHARACTER_SPAWN.z)+ cameraFocusTarget.current = null+ keys.current.clear()+ rawYaw.current = DEFAULT_YAW+ rawPitch.current = 0+ smoothYaw.current = DEFAULT_YAW+ smoothPitch.current = 0+ camera.quaternion.setFromEuler(_euler.set(0, DEFAULT_YAW, 0))+ }, [camera])++ const preserveCamera = useCallback(() => {+ cameraFocusTarget.current = null+ keys.current.clear()+ _euler.setFromQuaternion(camera.quaternion, 'YXZ')+ rawYaw.current = _euler.y+ rawPitch.current = _euler.x+ smoothYaw.current = _euler.y+ smoothPitch.current = _euler.x+ }, [camera])++ const applyDolly = useCallback((deltaY: number) => {+ _dollyForward.set(0, 0, -1).applyQuaternion(camera.quaternion).normalize()+ camera.position.addScaledVector(_dollyForward, -deltaY * DOLLY_UNITS_PER_PIXEL)+ }, [camera])++ const applyTumble = useCallback((dx: number, dy: number) => {+ cameraFocusTarget.current = null+ rawYaw.current -= dx * mouseSensitivity+ rawPitch.current -= dy * mouseSensitivity+ rawPitch.current = Math.max(-Math.PI / 2.2, Math.min(Math.PI / 2.2, rawPitch.current))+ }, [mouseSensitivity])++ useCameraGestures({ domElement: gl.domElement, onDollyPixels: applyDolly, onTumblePixels: applyTumble })++ useImperativeHandle(ref, () => ({+ reset,+ }), [reset])++ useEffect(() => {+ if (preserveCameraOnMount) preserveCamera()+ else reset()+ }, [preserveCamera, preserveCameraOnMount, reset])++ useEffect(() => {+ const onKey = (e: KeyboardEvent) => {+ if (isEditableTarget(e.target)) {+ keys.current.delete(e.code)+ return+ }+ if (e.type === 'keydown') keys.current.add(e.code)+ else keys.current.delete(e.code)+ }+ window.addEventListener('keydown', onKey)+ window.addEventListener('keyup', onKey)++ return () => {+ window.removeEventListener('keydown', onKey)+ window.removeEventListener('keyup', onKey)+ }+ }, [gl])++ useFrame((_state, delta) => {+ // Camera focus: lerp rawYaw/rawPitch toward clicked object (only when pointer is not locked)+ const focusTarget = cameraFocusTarget.current+ if (focusTarget && document.pointerLockElement !== gl.domElement) {+ const dir = new THREE.Vector3().subVectors(focusTarget, camera.position).normalize()+ const targetPitch = Math.asin(Math.max(-1, Math.min(1, dir.y)))+ const targetYaw = Math.atan2(-dir.x, -dir.z)+ const t = 1 - Math.pow(0.04, delta) // ~smooth decay+ // wrap yaw diff to [-π, π] to avoid spinning the long way+ const yawDiff = ((targetYaw - rawYaw.current + Math.PI * 3) % (Math.PI * 2)) - Math.PI+ rawYaw.current += yawDiff * t+ rawPitch.current += (targetPitch - rawPitch.current) * t+ rawPitch.current = Math.max(-Math.PI / 2.2, Math.min(Math.PI / 2.2, rawPitch.current))+ if (Math.abs(yawDiff * t) < 0.0005 && Math.abs((targetPitch - rawPitch.current) * t) < 0.0005) {+ cameraFocusTarget.current = null+ }+ }++ smoothYaw.current += (rawYaw.current - smoothYaw.current) * (1 - Math.pow(1 - SMOOTH, 1))+ smoothPitch.current += (rawPitch.current - smoothPitch.current) * (1 - Math.pow(1 - SMOOTH, 1))+ _euler.set(smoothPitch.current, smoothYaw.current, 0)+ camera.quaternion.setFromEuler(_euler)++ let fwd = 0, strafe = 0, vert = 0+ const k = keys.current+ if (k.has('KeyW') || k.has('ArrowUp')) fwd += 1+ if (k.has('KeyS') || k.has('ArrowDown')) fwd -= 1+ if (k.has('KeyA') || k.has('ArrowLeft')) strafe -= 1+ if (k.has('KeyD') || k.has('ArrowRight')) strafe += 1+ if (k.has('KeyE')) vert += 1+ if (k.has('KeyQ')) vert -= 1++ _forward.set(0, 0, -1).applyQuaternion(camera.quaternion)+ _right.set(1, 0, 0).applyQuaternion(camera.quaternion)+ _move.set(0, 0, 0)+ .addScaledVector(_forward, fwd)+ .addScaledVector(_right, strafe)+ .addScaledVector(_up, vert)+ if (_move.lengthSq() > 1) _move.normalize()++ const speed = SPEED * (k.has('ShiftLeft') || k.has('ShiftRight') ? SHIFT_MULT : 1)+ camera.position.addScaledVector(_move, speed * delta)+ })++ return null+})diff --git a/third_party/image-blaster/app/src/modules/character/spawn.ts b/third_party/image-blaster/app/src/modules/character/spawn.tsnew file mode 100644index 000000000..202e3f5d3--- /dev/null+++ b/third_party/image-blaster/app/src/modules/character/spawn.ts@@ -0,0 +1,21 @@+export const CHARACTER_HEIGHT = 1.6+export const CAMERA_EYE_OFFSET = CHARACTER_HEIGHT / 2+export const CHARACTER_SPAWN_CLEARANCE = 0.25++export const CHARACTER_SPAWN = { x: 0, y: CHARACTER_HEIGHT + CHARACTER_SPAWN_CLEARANCE, z: -0.5 }+export const CHARACTER_SPAWN_POSITION: [number, number, number] = [+ CHARACTER_SPAWN.x,+ CHARACTER_SPAWN.y,+ CHARACTER_SPAWN.z,+]++export const CHARACTER_BODY_SPAWN = {+ x: CHARACTER_SPAWN.x,+ y: CHARACTER_SPAWN.y - CAMERA_EYE_OFFSET,+ z: CHARACTER_SPAWN.z,+}+export const CHARACTER_BODY_SPAWN_POSITION: [number, number, number] = [+ CHARACTER_BODY_SPAWN.x,+ CHARACTER_BODY_SPAWN.y,+ CHARACTER_BODY_SPAWN.z,+]diff --git a/third_party/image-blaster/app/src/modules/collider/GroundPlane.tsx b/third_party/image-blaster/app/src/modules/collider/GroundPlane.tsxnew file mode 100644index 000000000..0270ce6c2--- /dev/null+++ b/third_party/image-blaster/app/src/modules/collider/GroundPlane.tsx@@ -0,0 +1,61 @@+import { RigidBody, CuboidCollider } from '@react-three/rapier'+import { useDebugStore } from '../../store/debug'+import { ObjectRenderMode } from '../../types/world'+import { SHADED_COLOR } from '../scene/useAssetMaterials'+import { DROP_TARGET_LAYER } from '../scene/dropTargets'++const LARGE = 200+const FLOOR_THICKNESS = 0.05++interface GroundPlaneProps {+ groundColliderEnabled?: boolean+}++export function GroundPlane({ groundColliderEnabled = true }: GroundPlaneProps) {+ const objectRenderMode = useDebugStore((s) => s.objectRenderMode)++ const isLit = objectRenderMode === ObjectRenderMode.Lit+ const isShaded = objectRenderMode === ObjectRenderMode.ShadedWireframe++ return (+ <>+ {groundColliderEnabled && !isLit && (+ <>+ <mesh rotation={[-Math.PI / 2, 0, 0]}>+ <planeGeometry args={[LARGE, LARGE]} />+ {isShaded+ ? <meshStandardMaterial color={SHADED_COLOR} roughness={0.75} metalness={0} />+ : <meshBasicMaterial color={0x000000} wireframe toneMapped={false} fog={false} />+ }+ </mesh>+ {isShaded && (+ <mesh rotation={[-Math.PI / 2, 0, 0]} position={[0, 0.001, 0]} renderOrder={1}>+ <planeGeometry args={[LARGE, LARGE]} />+ <meshBasicMaterial color={0x000000} wireframe toneMapped={false} fog={false} />+ </mesh>+ )}+ </>+ )}++ {groundColliderEnabled && (+ <RigidBody type="fixed">+ <CuboidCollider args={[LARGE / 2, FLOOR_THICKNESS, LARGE / 2]} position={[0, -FLOOR_THICKNESS, 0]} />+ </RigidBody>+ )}+ {groundColliderEnabled && (+ <mesh+ rotation={[-Math.PI / 2, 0, 0]}+ onUpdate={(mesh) => mesh.layers.set(DROP_TARGET_LAYER)}+ >+ <planeGeometry args={[LARGE, LARGE]} />+ <meshBasicMaterial colorWrite={false} depthWrite={false} />+ </mesh>+ )}++ {/* physics safety net */}+ <RigidBody type="fixed" position={[0, -10, 0]}>+ <CuboidCollider args={[LARGE / 2, 1, LARGE / 2]} />+ </RigidBody>+ </>+ )+}diff --git a/third_party/image-blaster/app/src/modules/collider/WorldCollider.tsx b/third_party/image-blaster/app/src/modules/collider/WorldCollider.tsxnew file mode 100644index 000000000..7de0a1d94--- /dev/null+++ b/third_party/image-blaster/app/src/modules/collider/WorldCollider.tsx@@ -0,0 +1,112 @@+import { useMemo, useEffect } from 'react'+import { RigidBody } from '@react-three/rapier'+import { useGLTF } from '@react-three/drei'+import { clone as cloneSkeleton } from 'three/examples/jsm/utils/SkeletonUtils.js'+import * as THREE from 'three'+import { useDebugStore } from '../../store/debug'+import { ObjectRenderMode, WorldRenderMode } from '../../types/world'+import { useAssetMaterials } from '../scene/useAssetMaterials'+import { DROP_TARGET_LAYER } from '../scene/dropTargets'+import { shadowCatcherColor, shadowCatcherOpacity } from '../scene/shadows'++interface Props {+ url: string+ flipY?: boolean+ groundPlaneOffset?: number+ metricScaleFactor?: number+ shadowOpacity?: number+ shadowColor?: string+}++const ignoreRaycast: THREE.Object3D['raycast'] = () => {}++export function WorldCollider({ url, flipY, groundPlaneOffset, metricScaleFactor, shadowOpacity, shadowColor }: Props) {+ const { scene: rawScene } = useGLTF(url)+ const objectRenderMode = useDebugStore((s) => s.objectRenderMode)+ const worldRenderMode = useDebugStore((s) => s.worldRenderMode)+ const { wireframeMaterial, shadedMaterial, wireframeOverlayMaterial } = useAssetMaterials()+ const normalizedGroundPlaneOffset = groundPlaneOffset ?? 0+ const normalizedMetricScaleFactor = metricScaleFactor ?? 1+ const normalizedRotation = flipY ? Math.PI : 0+ const colliderTransformKey = `${url}:${normalizedRotation}:${normalizedGroundPlaneOffset}:${normalizedMetricScaleFactor}`++ // Own shadow material instance — not shared, so shader compiles correctly per-mesh+ const shadowMat = useMemo(() => new THREE.ShadowMaterial({+ color: shadowCatcherColor(shadowColor),+ opacity: shadowCatcherOpacity(shadowOpacity),+ transparent: true,+ depthWrite: false,+ }), [shadowColor, shadowOpacity])+ useEffect(() => () => shadowMat.dispose(), [shadowMat])++ useEffect(() => {+ shadowMat.color.set(shadowCatcherColor(shadowColor))+ shadowMat.opacity = shadowCatcherOpacity(shadowOpacity)+ shadowMat.needsUpdate = true+ }, [shadowColor, shadowMat, shadowOpacity])++ const { scene, overlayScene, dropTargetScene } = useMemo(() => {+ const dropTargetScene = cloneSkeleton(rawScene)+ dropTargetScene.traverse((child) => {+ child.layers.set(DROP_TARGET_LAYER)+ })+ return {+ scene: cloneSkeleton(rawScene),+ overlayScene: cloneSkeleton(rawScene),+ dropTargetScene,+ }+ }, [rawScene])++ const showMesh = worldRenderMode !== WorldRenderMode.ObjectOnly++ useEffect(() => {+ const isShadowCatcher = objectRenderMode === ObjectRenderMode.Lit+ scene.traverse((child) => {+ if (!(child instanceof THREE.Mesh)) return+ child.visible = showMesh+ child.raycast = ignoreRaycast+ child.receiveShadow = isShadowCatcher+ if (child.material !== wireframeMaterial && child.material !== shadedMaterial && child.material !== shadowMat) {+ const old = Array.isArray(child.material) ? child.material : [child.material]+ old.forEach((m) => m?.dispose?.())+ }+ child.material = isShadowCatcher ? shadowMat+ : objectRenderMode === ObjectRenderMode.ShadedWireframe ? shadedMaterial+ : wireframeMaterial+ child.material.needsUpdate = true+ })+ }, [scene, showMesh, objectRenderMode, wireframeMaterial, shadedMaterial, shadowMat])++ useEffect(() => {+ overlayScene.traverse((child) => {+ if (!(child instanceof THREE.Mesh)) return+ child.material = wireframeOverlayMaterial+ child.renderOrder = 1+ child.raycast = ignoreRaycast+ })+ }, [overlayScene, wireframeOverlayMaterial])++ return (+ <>+ <RigidBody+ key={colliderTransformKey}+ type="fixed"+ colliders="trimesh"+ rotation={[normalizedRotation, 0, 0]}+ position={[0, normalizedGroundPlaneOffset, 0]}+ scale={[normalizedMetricScaleFactor, normalizedMetricScaleFactor, normalizedMetricScaleFactor]}+ >+ <primitive object={scene} />+ {objectRenderMode === ObjectRenderMode.ShadedWireframe && showMesh && (+ <primitive object={overlayScene} />+ )}+ </RigidBody>+ <primitive+ object={dropTargetScene}+ rotation={[normalizedRotation, 0, 0]}+ position={[0, normalizedGroundPlaneOffset, 0]}+ scale={[normalizedMetricScaleFactor, normalizedMetricScaleFactor, normalizedMetricScaleFactor]}+ />+ </>+ )+}diff --git a/third_party/image-blaster/app/src/modules/environment/EnvironmentMap.tsx b/third_party/image-blaster/app/src/modules/environment/EnvironmentMap.tsxnew file mode 100644index 000000000..6bb731056--- /dev/null+++ b/third_party/image-blaster/app/src/modules/environment/EnvironmentMap.tsx@@ -0,0 +1,56 @@+import { forwardRef, useCallback, useEffect, useImperativeHandle, useRef } from 'react'+import { useThree, useLoader } from '@react-three/fiber'+import * as THREE from 'three'++export interface EnvironmentMapHandle {+ setIntensity: (amount: number) => void+}++interface Props {+ panoUrl: string+ intensity: number+}++const BACKGROUND_BLURRINESS = 1++export const EnvironmentMap = forwardRef<EnvironmentMapHandle, Props>(+ function EnvironmentMap({ panoUrl, intensity }, ref) {+ const texture = useLoader(THREE.TextureLoader, panoUrl)+ const { scene } = useThree()+ const transitionAmountRef = useRef(1)++ const applyIntensity = useCallback(() => {+ const v = transitionAmountRef.current * intensity+ scene.environmentIntensity = v+ scene.backgroundIntensity = v+ }, [intensity, scene])++ useEffect(() => {+ texture.mapping = THREE.EquirectangularReflectionMapping+ texture.colorSpace = THREE.SRGBColorSpace+ scene.environment = texture+ scene.background = texture+ scene.backgroundBlurriness = BACKGROUND_BLURRINESS+ scene.environmentRotation = new THREE.Euler(0, Math.PI / 2, 0)+ scene.backgroundRotation = new THREE.Euler(0, Math.PI / 2, 0)+ applyIntensity()+ return () => {+ if (scene.environment === texture) scene.environment = null+ if (scene.background === texture) scene.background = null+ }+ }, [texture, scene, applyIntensity])++ useEffect(() => {+ applyIntensity()+ }, [applyIntensity])++ useImperativeHandle(ref, () => ({+ setIntensity: (amount: number) => {+ transitionAmountRef.current = amount+ applyIntensity()+ },+ }), [applyIntensity])++ return null+ },+)diff --git a/third_party/image-blaster/app/src/modules/interaction/pointerGuards.ts b/third_party/image-blaster/app/src/modules/interaction/pointerGuards.tsnew file mode 100644index 000000000..f287caa86--- /dev/null+++ b/third_party/image-blaster/app/src/modules/interaction/pointerGuards.ts@@ -0,0 +1,11 @@+const POINTER_LOCK_SUPPRESSION_MS = 300++let lastObjectInteractionAt = 0++export function markObjectInteraction() {+ lastObjectInteractionAt = performance.now()+}++export function shouldSuppressPointerLock() {+ return performance.now() - lastObjectInteractionAt < POINTER_LOCK_SUPPRESSION_MS+}diff --git a/third_party/image-blaster/app/src/modules/postprocessing/MotionBlurEffect.ts b/third_party/image-blaster/app/src/modules/postprocessing/MotionBlurEffect.tsnew file mode 100644index 000000000..466ac9b01--- /dev/null+++ b/third_party/image-blaster/app/src/modules/postprocessing/MotionBlurEffect.ts@@ -0,0 +1,33 @@+import { Effect } from 'postprocessing'+import * as THREE from 'three'++const fragment = /* glsl */ `+ uniform float uStrength;+ uniform vec2 uVelocity;++ void mainImage(const in vec4 inputColor, const in vec2 uv, out vec4 outputColor) {+ vec4 color = inputColor;+ vec2 offset = uVelocity * uStrength;+ int samples = 8;+ for (int i = 1; i <= 8; i++) {+ color += texture2D(inputBuffer, uv - offset * float(i) / 8.0);+ }+ outputColor = color / 9.0;+ }+`++export class MotionBlurEffect extends Effect {+ constructor() {+ const uniforms = new Map<string, THREE.Uniform<unknown>>([+ ['uStrength', new THREE.Uniform(0.0)],+ ['uVelocity', new THREE.Uniform(new THREE.Vector2())],+ ])+ super('MotionBlurEffect', fragment, { uniforms })+ }++ setVelocity(dx: number, dy: number, strength: number) {+ const u = this.uniforms+ ;(u.get('uVelocity')!.value as THREE.Vector2).set(dx, dy)+ u.get('uStrength')!.value = strength+ }+}diff --git a/third_party/image-blaster/app/src/modules/postprocessing/PostProcessing.tsx b/third_party/image-blaster/app/src/modules/postprocessing/PostProcessing.tsxnew file mode 100644index 000000000..685541920--- /dev/null+++ b/third_party/image-blaster/app/src/modules/postprocessing/PostProcessing.tsx@@ -0,0 +1,115 @@+import { useEffect, useMemo } from 'react'+import { EffectComposer } from '@react-three/postprocessing'+import { BlendFunction, BloomEffect, ChromaticAberrationEffect, KernelSize, ToneMappingEffect, ToneMappingMode } from 'postprocessing'+import { useThree, useFrame } from '@react-three/fiber'+import * as THREE from 'three'+import { MotionBlurEffect } from './MotionBlurEffect'+import { useDebugStore } from '../../store/debug'++const _prevQuat = new THREE.Quaternion()+const _prevForward = new THREE.Vector3()+const _currentForward = new THREE.Vector3()+const _deltaForward = new THREE.Vector3()+const _cameraRight = new THREE.Vector3()+const _cameraUp = new THREE.Vector3()++function OptionalEffect({ enabled, object }: { enabled: boolean; object: object }) {+ return enabled ? <primitive object={object} /> : null+}++// Why we instantiate effects directly instead of using <Bloom>/<ChromaticAberration>:+// @react-three/postprocessing's wrapEffect uses `useMemo(..., [JSON.stringify(a)])`+// where `a` is the rest-spread of props. In React 19, `ref` is a regular prop, so+// once the ref populates with the effect instance, JSON.stringify recurses through+// the BloomEffect's render targets/textures and hits circular parent/children refs.+// Mounting effects via <primitive> bypasses that path entirely.+export function PostProcessing() {+ const { camera } = useThree()+ const bloomEnabled = useDebugStore((s) => s.bloomEnabled)+ const chromaticEnabled = useDebugStore((s) => s.chromaticEnabled)+ const motionBlurEnabled = useDebugStore((s) => s.motionBlurEnabled)++ const bloomEffect = useMemo(() => {+ const initial = useDebugStore.getState()+ return new BloomEffect({+ intensity: initial.bloomIntensity,+ luminanceThreshold: initial.bloomThreshold,+ luminanceSmoothing: 0.9,+ blendFunction: BlendFunction.ADD,+ kernelSize: KernelSize.MEDIUM,+ mipmapBlur: false,+ resolutionScale: 0.35,+ })+ }, [])++ const chromaEffect = useMemo(() => {+ const initial = useDebugStore.getState()+ return new ChromaticAberrationEffect({+ offset: new THREE.Vector2(initial.chromaticOffset, initial.chromaticOffset),+ radialModulation: false,+ modulationOffset: 0,+ blendFunction: BlendFunction.NORMAL,+ })+ }, [])++ const blurEffect = useMemo(() => new MotionBlurEffect(), [])+ const toneMappingEffect = useMemo(() => new ToneMappingEffect({+ mode: ToneMappingMode.LINEAR,+ blendFunction: BlendFunction.SRC,+ }), [])++ useEffect(() => {+ _prevQuat.copy(camera.quaternion)+ camera.getWorldDirection(_prevForward)+ }, [camera])++ useEffect(() => {+ return () => {+ bloomEffect.dispose()+ chromaEffect.dispose()+ blurEffect.dispose()+ toneMappingEffect.dispose()+ }+ }, [bloomEffect, chromaEffect, blurEffect, toneMappingEffect])++ useFrame(() => {+ const s = useDebugStore.getState()++ const intensityUniform = bloomEffect.uniforms.get('intensity')+ if (intensityUniform) intensityUniform.value = s.bloomIntensity+ bloomEffect.luminanceMaterial.threshold = s.bloomThreshold++ chromaEffect.offset.set(s.chromaticOffset, s.chromaticOffset)++ camera.getWorldDirection(_currentForward)+ _deltaForward.copy(_currentForward).sub(_prevForward)+ _cameraRight.set(1, 0, 0).applyQuaternion(camera.quaternion)+ _cameraUp.set(0, 1, 0).applyQuaternion(camera.quaternion)++ const x = _deltaForward.dot(_cameraRight)+ const y = _deltaForward.dot(_cameraUp)+ const angle = _deltaForward.length()+ const strength = Math.min(angle * s.motionBlurStrength * 8, 1)+ blurEffect.setVelocity(x * 0.5, y * 0.5, strength)+ _prevQuat.copy(camera.quaternion)+ _prevForward.copy(_currentForward)+ })++ const hasEffects = bloomEnabled || chromaticEnabled || motionBlurEnabled+ if (!hasEffects) return null++ const effectKey = [+ bloomEnabled ? 'bloom' : '',+ chromaticEnabled ? 'chroma' : '',+ motionBlurEnabled ? 'blur' : '',+ ].join('|')++ return (+ <EffectComposer key={effectKey} multisampling={0}>+ <OptionalEffect key="blur" enabled={motionBlurEnabled} object={blurEffect} />+ <OptionalEffect key="bloom" enabled={bloomEnabled} object={bloomEffect} />+ <OptionalEffect key="chroma" enabled={chromaticEnabled} object={chromaEffect} />+ <primitive key="tone-mapping" object={toneMappingEffect} />+ </EffectComposer>+ )+}diff --git a/third_party/image-blaster/app/src/modules/scene/ObjectGrid.tsx b/third_party/image-blaster/app/src/modules/scene/ObjectGrid.tsxnew file mode 100644index 000000000..4c38149cc--- /dev/null+++ b/third_party/image-blaster/app/src/modules/scene/ObjectGrid.tsx@@ -0,0 +1,249 @@+import { Component, createRef, useCallback, useEffect, useLayoutEffect, useMemo, useRef, useState, type ReactNode, type RefObject } from 'react'+import { ThreeEvent, useFrame, useThree } from '@react-three/fiber'+import { RigidBody, type RapierRigidBody } from '@react-three/rapier'+import * as THREE from 'three'+import type { WorldObjectAsset, WorldObjectPhysics, WorldObjectPlacement } from '../../types/world'+import { useDebugStore } from '../../store/debug'+import { SCENE_OBJECT_INSTANCE_ID_KEY, SceneObject, type SceneObjectHandle } from './SceneObject'+import { useObjectGrab } from './useObjectGrab'+import { cameraFocusTarget, pendingFocusId } from '../camera/cameraFocus'+import { getInitialPlacements } from './placements'++const _focusPoint = new THREE.Vector3()+const _hoverObjectCenter = new THREE.Vector3()+const _projectedHoverObjectCenter = new THREE.Vector3()++type ObjectRefMap = Map<string, RefObject<SceneObjectHandle | null>>++interface RenderedObject {+ instanceId: string+ asset: WorldObjectAsset+ position: [number, number, number]+ rotation: [number, number, number]+ scale: [number, number, number]+ physics: WorldObjectPhysics+}++interface Props {+ objects: WorldObjectAsset[]+ placements?: WorldObjectPlacement[]+}++interface ObjectLoadErrorBoundaryProps {+ objectName: string+ resetKey: string+ children: ReactNode+}++interface ObjectLoadErrorBoundaryState {+ hasError: boolean+}++class ObjectLoadErrorBoundary extends Component<ObjectLoadErrorBoundaryProps, ObjectLoadErrorBoundaryState> {+ state: ObjectLoadErrorBoundaryState = { hasError: false }++ static getDerivedStateFromError(): ObjectLoadErrorBoundaryState {+ return { hasError: true }+ }++ componentDidCatch(error: unknown) {+ console.warn(`Skipping object "${this.props.objectName}" because it failed to load.`, error)+ }++ componentDidUpdate(prevProps: ObjectLoadErrorBoundaryProps) {+ if (prevProps.resetKey !== this.props.resetKey && this.state.hasError) {+ this.setState({ hasError: false })+ }+ }++ render() {+ if (this.state.hasError) return null+ return this.props.children+ }+}++function resolveRenderedObjects(+ objects: WorldObjectAsset[],+ placements?: WorldObjectPlacement[],+): RenderedObject[] {+ const assetsById = new Map<string, WorldObjectAsset>()+ for (const object of objects) {+ assetsById.set(object.id, object)+ assetsById.set(object.assetId, object)+ assetsById.set(object.baseObjectId, object)+ assetsById.set(`${object.sourceWorldSlug}/${object.baseObjectId}`, object)+ }+ return getInitialPlacements(objects, placements).flatMap((placement) => {+ const asset = assetsById.get(placement.assetId ?? placement.objectId) ?? assetsById.get(placement.objectId)+ if (!asset) return []+ return [{+ instanceId: placement.instanceId,+ asset,+ position: placement.position,+ rotation: placement.rotation,+ scale: placement.scale,+ physics: placement.physics ?? 'rigidbody',+ }]+ })+}++function objectIdFromIntersectionObject(object: THREE.Object3D) {+ let current: THREE.Object3D | null = object+ while (current) {+ const objectId = current.userData[SCENE_OBJECT_INSTANCE_ID_KEY]+ if (typeof objectId === 'string') return objectId+ current = current.parent+ }+ return null+}++function nearestGrabbableObjectId(+ event: ThreeEvent<PointerEvent>,+ fallbackObjectId: string,+ camera: THREE.Camera,+ objectRefs: ObjectRefMap,+ grabbableObjectIds: Set<string>,+) {+ const seenObjectIds = new Set<string>()+ let best: { objectId: string; centerDistanceSq: number; hitDistance: number } | null = null++ for (const intersection of event.intersections) {+ const objectId = objectIdFromIntersectionObject(intersection.object)+ if (!objectId || seenObjectIds.has(objectId) || !grabbableObjectIds.has(objectId)) continue+ seenObjectIds.add(objectId)++ const handle = objectRefs.get(objectId)?.current+ if (!handle) continue+ handle.getFocusPoint(_hoverObjectCenter)+ _projectedHoverObjectCenter.copy(_hoverObjectCenter).project(camera)+ const centerDistanceSq =+ (_projectedHoverObjectCenter.x - event.pointer.x) ** 2 ++ (_projectedHoverObjectCenter.y - event.pointer.y) ** 2+ const hitDistance = Number.isFinite(intersection.distance) ? intersection.distance : Number.POSITIVE_INFINITY+ if (+ !best ||+ centerDistanceSq < best.centerDistanceSq ||+ (centerDistanceSq === best.centerDistanceSq && hitDistance < best.hitDistance)+ ) {+ best = { objectId, centerDistanceSq, hitDistance }+ }+ }++ if (best) return best.objectId+ return grabbableObjectIds.has(fallbackObjectId) ? fallbackObjectId : null+}++export function ObjectGrid({ objects, placements }: Props) {+ const { camera, gl } = useThree()+ const [hoveredObjectId, setHoveredObjectId] = useState<string | null>(null)+ const renderedObjects = useMemo(() => resolveRenderedObjects(objects, placements), [objects, placements])+ const objectRenderMode = useDebugStore((s) => s.objectRenderMode)+ const objectResetToken = useDebugStore((s) => s.objectResetToken)+ const objectRefs = useRef(new Map<string, RefObject<SceneObjectHandle | null>>())+ const anchorRef = useRef<RapierRigidBody>(null)+ const anchorSphereRef = useRef<THREE.Mesh>(null)+ const grabbableObjectIds = useMemo(+ () => new Set(renderedObjects.filter((object) => object.physics === 'rigidbody').map((object) => object.instanceId)),+ [renderedObjects],+ )+ const isObjectEligible = useCallback((objectId: string) => grabbableObjectIds.has(objectId), [grabbableObjectIds])+ const { activeObjectId, onPointerDown, resetObjects, activeGrabRef, cancelGrab } = useObjectGrab({+ anchorRef,+ objectRefs,+ isObjectEligible,+ })++ useLayoutEffect(() => {+ const objectIds = new Set([+ ...renderedObjects.map((object) => object.instanceId),+ ])+ if (activeGrabRef.current && !objectIds.has(activeGrabRef.current.objectId)) {+ cancelGrab()+ }+ for (const id of objectRefs.current.keys()) {+ if (!objectIds.has(id)) objectRefs.current.delete(id)+ }+ }, [activeGrabRef, cancelGrab, renderedObjects])++ useEffect(() => {+ if (objectResetToken > 0) {+ resetObjects()+ }+ }, [objectResetToken, resetObjects])++ const getObjectRef = (objectId: string) => {+ let objectRef = objectRefs.current.get(objectId)+ if (!objectRef) {+ objectRef = createRef<SceneObjectHandle>()+ objectRefs.current.set(objectId, objectRef)+ }+ return objectRef+ }++ const handleHover = useCallback((event: ThreeEvent<PointerEvent>, objectId: string, hovering: boolean) => {+ const nearestObjectId = hovering+ ? nearestGrabbableObjectId(event, objectId, camera, objectRefs.current, grabbableObjectIds)+ : null+ setHoveredObjectId((current) => {+ if (hovering) return nearestObjectId+ return current ? null : current+ })+ }, [camera, grabbableObjectIds])++ useEffect(() => {+ gl.domElement.style.cursor = activeObjectId ? 'move' : hoveredObjectId ? 'grab' : ''+ return () => {+ gl.domElement.style.cursor = ''+ }+ }, [activeObjectId, gl.domElement, hoveredObjectId, renderedObjects])++ useFrame(() => {+ const id = pendingFocusId.current+ if (id) {+ pendingFocusId.current = null+ const point = objectRefs.current.get(id)?.current?.getFocusPoint(_focusPoint)+ if (point) {+ cameraFocusTarget.current = point.clone()+ }+ }++ const sphere = anchorSphereRef.current+ if (sphere) {+ const grab = activeGrabRef.current+ if (grab) {+ sphere.position.copy(grab.target)+ sphere.visible = true+ } else {+ sphere.visible = false+ }+ }+ })++ if (!renderedObjects.length) return null++ return (+ <>+ <RigidBody ref={anchorRef} type="kinematicPosition" colliders={false} position={[0, -1000, 0]} />+ <mesh ref={anchorSphereRef} visible={false} renderOrder={10000}>+ <sphereGeometry args={[0.025, 10, 10]} />+ <meshBasicMaterial color={0xffffff} depthTest={false} depthWrite={false} toneMapped={false} transparent />+ </mesh>+ {renderedObjects.map((object) => (+ <ObjectLoadErrorBoundary key={`${object.instanceId}:${object.asset.assetId}:${object.asset.url}`} objectName={object.asset.name} resetKey={object.asset.url}>+ <SceneObject+ ref={getObjectRef(object.instanceId)}+ key={`${object.instanceId}:${object.asset.assetId}:${object.position.join(',')}:${object.rotation.join(',')}:${object.scale.join(',')}:${object.physics}`}+ object={{ ...object.asset, id: object.instanceId }}+ position={object.position}+ rotation={object.rotation}+ scale={object.scale}+ physics={object.physics}+ renderMode={objectRenderMode}+ onHover={handleHover}+ onPointerDown={(event) => onPointerDown(object.instanceId, event)}+ />+ </ObjectLoadErrorBoundary>+ ))}+ </>+ )+}diff --git a/third_party/image-blaster/app/src/modules/scene/ObjectHoverGuides.tsx b/third_party/image-blaster/app/src/modules/scene/ObjectHoverGuides.tsxnew file mode 100644index 000000000..b21cbf87b--- /dev/null+++ b/third_party/image-blaster/app/src/modules/scene/ObjectHoverGuides.tsx@@ -0,0 +1,73 @@+import { useEffect, useMemo } from 'react'+import * as THREE from 'three'++const AXIS_LENGTH = 0.2++interface ObjectHoverGuidesProps {+ size: THREE.Vector3 | [number, number, number]+}++function sizeTuple(size: THREE.Vector3 | [number, number, number]): [number, number, number] {+ return Array.isArray(size) ? size : [size.x, size.y, size.z]+}++function useLineGeometry(positions: number[], colors?: number[]) {+ const geometry = useMemo(() => {+ const next = new THREE.BufferGeometry()+ next.setAttribute('position', new THREE.Float32BufferAttribute(positions, 3))+ if (colors) next.setAttribute('color', new THREE.Float32BufferAttribute(colors, 3))+ return next+ }, [colors, positions])++ useEffect(() => () => geometry.dispose(), [geometry])++ return geometry+}++export function ObjectHoverGuides({ size }: ObjectHoverGuidesProps) {+ const [width, height, depth] = sizeTuple(size)+ const safeWidth = Math.max(width, 0.01)+ const safeHeight = Math.max(height, 0.01)+ const safeDepth = Math.max(depth, 0.01)+ const halfWidth = safeWidth / 2+ const halfHeight = safeHeight / 2+ const halfDepth = safeDepth / 2++ const axisGeometry = useLineGeometry([+ 0, 0, 0, AXIS_LENGTH, 0, 0,+ 0, 0, 0, 0, AXIS_LENGTH, 0,+ 0, 0, 0, 0, 0, AXIS_LENGTH,+ ], [+ 1, 0.15, 0.15, 1, 0.15, 0.15,+ 0.2, 1, 0.2, 0.2, 1, 0.2,+ 0.25, 0.5, 1, 0.25, 0.5, 1,+ ])++ const boxGeometry = useLineGeometry([+ -halfWidth, -halfHeight, -halfDepth, halfWidth, -halfHeight, -halfDepth,+ halfWidth, -halfHeight, -halfDepth, halfWidth, -halfHeight, halfDepth,+ halfWidth, -halfHeight, halfDepth, -halfWidth, -halfHeight, halfDepth,+ -halfWidth, -halfHeight, halfDepth, -halfWidth, -halfHeight, -halfDepth,++ -halfWidth, halfHeight, -halfDepth, halfWidth, halfHeight, -halfDepth,+ halfWidth, halfHeight, -halfDepth, halfWidth, halfHeight, halfDepth,+ halfWidth, halfHeight, halfDepth, -halfWidth, halfHeight, halfDepth,+ -halfWidth, halfHeight, halfDepth, -halfWidth, halfHeight, -halfDepth,++ -halfWidth, -halfHeight, -halfDepth, -halfWidth, halfHeight, -halfDepth,+ halfWidth, -halfHeight, -halfDepth, halfWidth, halfHeight, -halfDepth,+ halfWidth, -halfHeight, halfDepth, halfWidth, halfHeight, halfDepth,+ -halfWidth, -halfHeight, halfDepth, -halfWidth, halfHeight, halfDepth,+ ])++ return (+ <group>+ <lineSegments geometry={axisGeometry}>+ <lineBasicMaterial vertexColors depthTest depthWrite toneMapped={false} />+ </lineSegments>+ <lineSegments geometry={boxGeometry} position={[0, halfHeight, 0]}>+ <lineBasicMaterial color={0xffffff} depthTest depthWrite toneMapped={false} />+ </lineSegments>+ </group>+ )+}diff --git a/third_party/image-blaster/app/src/modules/scene/OriginHelper.tsx b/third_party/image-blaster/app/src/modules/scene/OriginHelper.tsxnew file mode 100644index 000000000..31e6d0c9b--- /dev/null+++ b/third_party/image-blaster/app/src/modules/scene/OriginHelper.tsx@@ -0,0 +1,21 @@+import { useDebugStore } from '../../store/debug'++export function OriginHelper() {+ const showOrigin = useDebugStore((s) => s.showOrigin)+ if (!showOrigin) return null++ return (+ <group>+ {/* flat plane at Y=0 */}+ <mesh rotation={[-Math.PI / 2, 0, 0]}>+ <planeGeometry args={[10, 10]} />+ <meshBasicMaterial color={0x00ff88} wireframe />+ </mesh>+ {/* wire sphere at origin */}+ <mesh>+ <sphereGeometry args={[0.5, 16, 12]} />+ <meshBasicMaterial color={0xff4400} wireframe />+ </mesh>+ </group>+ )+}diff --git a/third_party/image-blaster/app/src/modules/scene/PlacementEditor.tsx b/third_party/image-blaster/app/src/modules/scene/PlacementEditor.tsxnew file mode 100644index 000000000..3eeda8b52--- /dev/null+++ b/third_party/image-blaster/app/src/modules/scene/PlacementEditor.tsx@@ -0,0 +1,1907 @@+import { useCallback, useEffect, useMemo, useRef, useState, type Dispatch, type PointerEvent as ReactPointerEvent, type SetStateAction } from 'react'+import { TransformControls } from '@react-three/drei'+import { ThreeEvent, useThree } from '@react-three/fiber'+import { useLocation } from 'wouter'+import {+ ArrowLeft,+ ArrowUUpLeft,+ ArrowUUpRight,+ ArrowsOutCardinal,+ Copy,+ CornersOut,+ FloppyDisk,+ FolderOpen,+ Trash,+ ArrowClockwise,+ ArrowDown,+ Cube,+ GlobeSimple,+ Plus,+} from '@phosphor-icons/react'+import * as THREE from 'three'+import { AppButton } from '../../components/AppButton'+import { ChromePanel, ChromeThumbnail, chrome } from '../../components/AppChrome'+import { ObjectRenderMode, type WorldObjectAsset, type WorldObjectPhysics, type WorldObjectPlacement, type WorldSceneProject, type WorldSceneSun } from '../../types/world'+import { OBJECT_SCALE } from './SceneObject'+import { getInitialPlacements } from './placements'+import { DROP_TARGET_LAYER } from './dropTargets'+import { useSceneObjectVisual } from './useSceneObjectVisual'+import { ObjectHoverGuides } from './ObjectHoverGuides'+import { isEditableTarget } from '../../utils/dom'+import {+ DEFAULT_SHADOW_CATCHER_COLOR,+ DEFAULT_SHADOW_CATCHER_OPACITY,+ shadowCatcherColor as normalizeShadowCatcherColor,+ shadowCatcherOpacity as normalizeShadowCatcherOpacity,+} from './shadows'+import { twMerge } from 'tailwind-merge'++export type TransformMode = 'translate' | 'rotate' | 'scale'+type TransformField = 'position' | 'rotation' | 'scale'+type TransformAxis = 0 | 1 | 2++interface EditorStateArgs {+ slug: string+ objects: WorldObjectAsset[]+ allObjectAssets: WorldObjectAsset[]+ sceneProject?: WorldSceneProject+ baseMetricScaleFactor: number+ baseGroundPlaneOffset: number+ sceneProjectReady: boolean+ editing: boolean+ hoveredObjectAssetId?: string | null+ hoveredObjectInstanceId?: string | null+ onObjectHover?: (asset: WorldObjectAsset, hovering: boolean, instanceId?: string) => void+ onProjectSaved?: (project: WorldSceneProject) => void+}++interface EditableObjectProps {+ asset: WorldObjectAsset+ placement: WorldObjectPlacement+ selected: boolean+ externallyHovered?: boolean+ renderMode: ObjectRenderMode+ onSelect: (event: ThreeEvent<MouseEvent>, instanceId: string) => void+ onHover: (event: ThreeEvent<PointerEvent>, instanceId: string) => void+ onHoverEnd: (event: ThreeEvent<PointerEvent>, instanceId: string) => void+ setRef?: (group: THREE.Group | null) => void+}++interface PlacementEditorSceneProps {+ controller: PlacementEditorController+ renderMode: ObjectRenderMode+}++interface PlacementEditorOverlayProps {+ controller: PlacementEditorController+}++export interface PlacementEditorController {+ slug: string+ objects: WorldObjectAsset[]+ allObjectAssets: WorldObjectAsset[]+ visibleAssetLibrary: WorldObjectAsset[]+ assetFilter: 'world' | 'all'+ setAssetFilter: (filter: 'world' | 'all') => void+ assetsById: Map<string, WorldObjectAsset>+ instances: WorldObjectPlacement[]+ selectedId: string | null+ hoveredObjectAssetId?: string | null+ hoveredObjectInstanceId?: string | null+ selectedInstance?: WorldObjectPlacement+ mode: TransformMode+ setMode: (mode: TransformMode) => void+ saveStatus: 'idle' | 'saving' | 'saved' | 'error'+ dirty: boolean+ canUndo: boolean+ canRedo: boolean+ setSelectedId: Dispatch<SetStateAction<string | null>>+ selectInstance: (event: ThreeEvent<MouseEvent>, instanceId: string) => void+ selectFromOverlay: (instanceId: string) => void+ hoverAsset: (asset: WorldObjectAsset, hovering: boolean, instanceId?: string) => void+ commitInstances: (next: WorldObjectPlacement[]) => void+ duplicateSelected: () => void+ duplicateInstance: (instanceId: string) => void+ deleteSelected: () => void+ deleteInstance: (instanceId: string) => void+ addAsset: (asset: WorldObjectAsset) => void+ dropSelectedToFloor: () => void+ setDropSelectedToFloorHandler: (handler: (() => void) | null) => void+ updateSelectedTransform: (field: TransformField, axis: TransformAxis, value: number) => void+ updateSelectedPhysics: (physics: WorldObjectPhysics) => void+ sun: WorldSceneSun+ updateSunIntensity: (intensity: number) => void+ updateEnvironmentIntensity: (intensity: number) => void+ updateSunRotation: (axis: TransformAxis, value: number) => void+ metricScaleFactor: number+ resetMetricScaleFactor: () => void+ updateMetricScaleFactor: (metricScaleFactor: number) => void+ groundPlaneOffset: number+ resetGroundPlaneOffset: () => void+ updateGroundPlaneOffset: (groundPlaneOffset: number) => void+ groundPlaneColliderEnabled: boolean+ updateGroundPlaneColliderEnabled: (enabled: boolean) => void+ shadowCatcherOpacity: number+ resetShadowCatcherOpacity: () => void+ updateShadowCatcherOpacity: (shadowCatcherOpacity: number) => void+ shadowCatcherColor: string+ resetShadowCatcherColor: () => void+ updateShadowCatcherColor: (shadowCatcherColor: string) => void+ undo: () => void+ redo: () => void+ resetEdits: () => void+ openWorldFolder: () => void+ saveProject: () => Promise<boolean>+ setFlushSelectedTransformHandler: (handler: (() => WorldObjectPlacement[] | null) | null) => void+}++interface EditorBaseline {+ slug: string+ instances: WorldObjectPlacement[]+ sun: WorldSceneSun+ metricScaleFactor: number+ groundPlaneOffset: number+ groundPlaneColliderEnabled: boolean+ shadowCatcherOpacity: number+ shadowCatcherColor: string+ signature: string+}++const HISTORY_LIMIT = 80+const PASTE_OFFSET: [number, number, number] = [0.25, 0, 0.25]+const ROTATION_SNAP_DEGREES = 5+const VALUE_EPSILON = 0.0005+const EDITABLE_OBJECT_INSTANCE_ID_KEY = 'editableObjectInstanceId'+const projectVersion = 1+const DEFAULT_SCENE_SUN: WorldSceneSun = { intensity: 1, rotation: [0, 0, 0], environmentIntensity: 2 }+const TRANSFORM_FIELDS: Array<{ field: TransformField; label: string; step: number }> = [+ { field: 'position', label: 'Pos', step: 0.01 },+ { field: 'rotation', label: 'Rot', step: ROTATION_SNAP_DEGREES },+ { field: 'scale', label: 'Scale', step: 0.01 },+]+const TRANSFORM_AXES: Array<{ axis: TransformAxis; label: string }> = [+ { axis: 0, label: 'X' },+ { axis: 1, label: 'Y' },+ { axis: 2, label: 'Z' },+]+const SCRUB_PIXELS_PER_STEP = 8+const _editableObjectCenter = new THREE.Vector3()+const _projectedEditableObjectCenter = new THREE.Vector3()++function clonePlacements(instances: WorldObjectPlacement[]): WorldObjectPlacement[] {+ return instances.map((instance) => ({+ ...instance,+ physics: instance.physics ?? 'rigidbody',+ position: [...instance.position],+ rotation: [...instance.rotation],+ scale: [...instance.scale],+ }))+}++function cloneSun(sun: WorldSceneSun = DEFAULT_SCENE_SUN): WorldSceneSun {+ return {+ intensity: sun.intensity,+ rotation: [...sun.rotation],+ environmentIntensity: sun.environmentIntensity ?? DEFAULT_SCENE_SUN.environmentIntensity,+ }+}++function signature(value: unknown) {+ return JSON.stringify(value)+}++function editorStateSignature(+ instances: WorldObjectPlacement[],+ sun: WorldSceneSun,+ metricScaleFactor: number,+ groundPlaneOffset: number,+ groundPlaneColliderEnabled: boolean,+ shadowCatcherOpacity: number,+ shadowCatcherColor: string,+) {+ return signature({+ instances,+ sun,+ metricScaleFactor,+ groundPlaneOffset,+ groundPlaneColliderEnabled,+ shadowCatcherOpacity,+ shadowCatcherColor,+ })+}++function scaledGroundPlaneOffset(baseGroundPlaneOffset: number, metricScaleFactor: number, baseMetricScaleFactor: number) {+ const divisor = baseMetricScaleFactor || 1+ return baseGroundPlaneOffset * (metricScaleFactor / divisor)+}++function makeEditorBaseline({+ slug,+ objects,+ sceneProject,+ baseMetricScaleFactor,+ baseGroundPlaneOffset,+}: {+ slug: string+ objects: WorldObjectAsset[]+ sceneProject?: WorldSceneProject+ baseMetricScaleFactor: number+ baseGroundPlaneOffset: number+}): EditorBaseline {+ const metricScaleFactor = sceneProject?.metricScaleFactor ?? baseMetricScaleFactor+ const groundPlaneOffset = sceneProject?.groundPlaneOffset ??+ scaledGroundPlaneOffset(baseGroundPlaneOffset, metricScaleFactor, baseMetricScaleFactor)+ const groundPlaneColliderEnabled = sceneProject?.groundPlaneColliderEnabled ?? false+ const shadowCatcherOpacity = normalizeShadowCatcherOpacity(sceneProject?.shadowCatcherOpacity)+ const shadowCatcherColor = normalizeShadowCatcherColor(sceneProject?.shadowCatcherColor)+ const instances = clonePlacements(getInitialPlacements(objects, sceneProject?.instances))+ const sun = cloneSun(sceneProject?.sun)++ return {+ slug,+ instances,+ sun,+ metricScaleFactor,+ groundPlaneOffset,+ groundPlaneColliderEnabled,+ shadowCatcherOpacity,+ shadowCatcherColor,+ signature: editorStateSignature(+ instances,+ sun,+ metricScaleFactor,+ groundPlaneOffset,+ groundPlaneColliderEnabled,+ shadowCatcherOpacity,+ shadowCatcherColor,+ ),+ }+}++function isDraftDirty(+ baseline: EditorBaseline,+ instances: WorldObjectPlacement[],+ sun: WorldSceneSun,+ metricScaleFactor: number,+ groundPlaneOffset: number,+ groundPlaneColliderEnabled: boolean,+ shadowCatcherOpacity: number,+ shadowCatcherColor: string,+) {+ return editorStateSignature(+ instances,+ sun,+ metricScaleFactor,+ groundPlaneOffset,+ groundPlaneColliderEnabled,+ shadowCatcherOpacity,+ shadowCatcherColor,+ ) !== baseline.signature+}++function asTuple(vector: THREE.Vector3): [number, number, number] {+ return [vector.x, vector.y, vector.z]+}++function eulerTuple(quaternion: THREE.Quaternion): [number, number, number] {+ const euler = new THREE.Euler().setFromQuaternion(quaternion)+ return [euler.x, euler.y, euler.z]+}++function makeInstanceId(objectId: string) {+ return `${objectId.replace(/[^a-z0-9_-]/gi, '-')}-${Date.now().toString(36)}-${Math.random().toString(36).slice(2, 7)}`+}++function assetKey(asset: WorldObjectAsset) {+ return asset.assetId || `${asset.sourceWorldSlug}/${asset.id}`+}++function addAssetAliases(map: Map<string, WorldObjectAsset>, asset: WorldObjectAsset) {+ map.set(asset.id, asset)+ map.set(assetKey(asset), asset)+ map.set(asset.baseObjectId, asset)+ map.set(`${asset.sourceWorldSlug}/${asset.baseObjectId}`, asset)+}++function placementAssetKey(placement: WorldObjectPlacement) {+ return placement.assetId ?? placement.objectId+}++function editableObjectInstanceIdFromIntersectionObject(object: THREE.Object3D) {+ let current: THREE.Object3D | null = object+ while (current) {+ const instanceId = current.userData[EDITABLE_OBJECT_INSTANCE_ID_KEY]+ if (typeof instanceId === 'string') return instanceId+ current = current.parent+ }+ return null+}++function nearestEditableObjectInstanceId(+ event: ThreeEvent<MouseEvent | PointerEvent>,+ fallbackInstanceId: string,+ camera: THREE.Camera,+) {+ const seenInstanceIds = new Set<string>()+ let best: { instanceId: string; centerDistanceSq: number; hitDistance: number } | null = null++ for (const intersection of event.intersections) {+ const instanceId = editableObjectInstanceIdFromIntersectionObject(intersection.object)+ if (!instanceId || seenInstanceIds.has(instanceId)) continue+ seenInstanceIds.add(instanceId)++ intersection.object.getWorldPosition(_editableObjectCenter)+ _projectedEditableObjectCenter.copy(_editableObjectCenter).project(camera)+ const centerDistanceSq =+ (_projectedEditableObjectCenter.x - event.pointer.x) ** 2 ++ (_projectedEditableObjectCenter.y - event.pointer.y) ** 2+ const hitDistance = Number.isFinite(intersection.distance) ? intersection.distance : Number.POSITIVE_INFINITY+ if (+ !best ||+ centerDistanceSq < best.centerDistanceSq ||+ (centerDistanceSq === best.centerDistanceSq && hitDistance < best.hitDistance)+ ) {+ best = { instanceId, centerDistanceSq, hitDistance }+ }+ }++ return best?.instanceId ?? fallbackInstanceId+}++function EditableObject({+ asset,+ placement,+ selected,+ externallyHovered = false,+ renderMode,+ onSelect,+ onHover,+ onHoverEnd,+ setRef,+}: EditableObjectProps) {+ const activeHovered = externallyHovered+ const { scene, wireframeOverlayScene, offset, size } = useSceneObjectVisual({+ asset,+ renderMode,+ })+ const hitboxUserData = useMemo(() => ({+ [EDITABLE_OBJECT_INSTANCE_ID_KEY]: placement.instanceId,+ }), [placement.instanceId])+ const hoverGuideSize = useMemo(+ () => new THREE.Vector3(+ Math.max(size.x * OBJECT_SCALE, 0.01),+ Math.max(size.y * OBJECT_SCALE, 0.01),+ Math.max(size.z * OBJECT_SCALE, 0.01),+ ),+ [size],+ )++ return (+ <group+ ref={setRef}+ position={placement.position}+ rotation={placement.rotation}+ scale={placement.scale}+ >+ <group scale={OBJECT_SCALE}>+ <primitive object={scene} position={offset} dispose={null} />+ {renderMode === ObjectRenderMode.ShadedWireframe && (+ <primitive object={wireframeOverlayScene} position={offset} dispose={null} />+ )}+ </group>+ {(activeHovered || selected) && <ObjectHoverGuides size={hoverGuideSize} />}+ <mesh+ position={[0, Math.max(size.y * OBJECT_SCALE, 0.01) / 2, 0]}+ userData={hitboxUserData}+ onPointerOver={(event) => {+ event.stopPropagation()+ onHover(event, placement.instanceId)+ }}+ onPointerMove={(event) => {+ event.stopPropagation()+ onHover(event, placement.instanceId)+ }}+ onPointerOut={(event) => {+ event.stopPropagation()+ onHoverEnd(event, placement.instanceId)+ }}+ onClick={(event) => onSelect(event, placement.instanceId)}+ >+ <boxGeometry args={[+ Math.max(size.x * OBJECT_SCALE, 0.05),+ Math.max(size.y * OBJECT_SCALE, 0.05),+ Math.max(size.z * OBJECT_SCALE, 0.05),+ ]} />+ <meshBasicMaterial+ color={0xffffff}+ wireframe+ transparent+ opacity={0}+ depthTest+ depthWrite={false}+ toneMapped={false}+ />+ </mesh>+ </group>+ )+}++function formatTransformValue(value: number) {+ return Number.isFinite(value) ? Number(value.toFixed(3)).toString() : '0'+}++function transformInputValue(field: TransformField, value: number) {+ const displayValue = field === 'rotation' ? THREE.MathUtils.radToDeg(value) : value+ return formatTransformValue(displayValue)+}++function transformPlacementValue(field: TransformField, value: number) {+ return field === 'rotation' ? THREE.MathUtils.degToRad(value) : value+}++function snapTransformInputValue(field: TransformField, value: number) {+ if (field !== 'rotation') return value+ return Math.round(value / ROTATION_SNAP_DEGREES) * ROTATION_SNAP_DEGREES+}++function parseDraftNumber(value: string) {+ const trimmed = value.trim()+ if (!trimmed || trimmed === '-' || trimmed === '+' || trimmed === '.' || trimmed === '-.' || trimmed === '+.') return undefined+ const parsed = Number(trimmed)+ return Number.isFinite(parsed) ? parsed : undefined+}++function useHorizontalNumberScrub({+ value,+ step,+ onDraft,+ onCommit,+ format = formatTransformValue,+}: {+ value: number+ step: number+ onDraft: (value: string) => void+ onCommit: (value: number) => void+ format?: (value: number) => string+}) {+ const dragRef = useRef<{+ pointerId: number+ startX: number+ startValue: number+ moved: boolean+ } | null>(null)++ const onPointerDown = useCallback((event: ReactPointerEvent<HTMLInputElement>) => {+ if (event.button !== 0) return+ const parsed = parseDraftNumber(event.currentTarget.value)+ event.currentTarget.style.cursor = 'ew-resize'+ dragRef.current = {+ pointerId: event.pointerId,+ startX: event.clientX,+ startValue: parsed ?? value,+ moved: false,+ }+ event.currentTarget.setPointerCapture(event.pointerId)+ }, [value])++ const onPointerMove = useCallback((event: ReactPointerEvent<HTMLInputElement>) => {+ const drag = dragRef.current+ if (!drag || drag.pointerId !== event.pointerId) return++ const deltaX = event.clientX - drag.startX+ if (Math.abs(deltaX) < 2) return+ drag.moved = true++ const multiplier = event.shiftKey ? 10 : event.altKey ? 0.1 : 1+ const next = drag.startValue + (deltaX / SCRUB_PIXELS_PER_STEP) * step * multiplier+ onDraft(format(next))+ onCommit(next)+ }, [format, onCommit, onDraft, step])++ const finish = useCallback((event: ReactPointerEvent<HTMLInputElement>) => {+ const drag = dragRef.current+ if (!drag || drag.pointerId !== event.pointerId) return+ if (event.currentTarget.hasPointerCapture(event.pointerId)) {+ event.currentTarget.releasePointerCapture(event.pointerId)+ }+ event.currentTarget.style.cursor = ''+ if (drag.moved) event.currentTarget.blur()+ dragRef.current = null+ }, [])++ return {+ isScrubbingRef: dragRef,+ scrubHandlers: {+ onPointerDown,+ onPointerMove,+ onPointerUp: finish,+ onPointerCancel: finish,+ },+ }+}++function TransformValueInput({+ field,+ axis,+ step,+ value,+ onChange,+}: {+ field: TransformField+ axis: TransformAxis+ step: number+ value: number+ onChange: (field: TransformField, axis: TransformAxis, value: number) => void+}) {+ const displayNumber = field === 'rotation' ? THREE.MathUtils.radToDeg(value) : value+ const displayValue = transformInputValue(field, value)+ const [draft, setDraft] = useState(displayValue)+ const [focused, setFocused] = useState(false)+ const { scrubHandlers } = useHorizontalNumberScrub({+ value: displayNumber,+ step,+ onDraft: setDraft,+ onCommit: (next) => onChange(field, axis, transformPlacementValue(field, next)),+ })++ useEffect(() => {+ if (!focused) setDraft(displayValue)+ }, [displayValue, focused])++ return (+ <input+ type="text"+ inputMode="decimal"+ step={step}+ value={draft}+ onFocus={() => setFocused(true)}+ {...scrubHandlers}+ onChange={(event) => {+ const next = event.currentTarget.value+ setDraft(next)+ const parsed = parseDraftNumber(next)+ if (parsed !== undefined) onChange(field, axis, transformPlacementValue(field, parsed))+ }}+ onBlur={() => {+ setFocused(false)+ const parsed = parseDraftNumber(draft)+ if (parsed === undefined) {+ setDraft(displayValue)+ return+ }+ const snapped = snapTransformInputValue(field, parsed)+ setDraft(formatTransformValue(snapped))+ onChange(field, axis, transformPlacementValue(field, snapped))+ }}+ onKeyDown={(event) => {+ if (event.key !== 'Enter') return+ event.preventDefault()+ event.currentTarget.blur()+ }}+ className="h-7 w-full cursor-ew-resize rounded border border-white/10 bg-black/40 px-1.5 text-right text-xs text-white/85"+ />+ )+}++function NumberValueInput({+ value,+ step,+ displayValue = value,+ onChange,+ toStoredValue = (next) => next,+ className = '',+}: {+ value: number+ step: number+ displayValue?: number+ onChange: (value: number) => void+ toStoredValue?: (value: number) => number+ className?: string+}) {+ const formattedValue = formatTransformValue(displayValue)+ const [draft, setDraft] = useState(formattedValue)+ const [focused, setFocused] = useState(false)+ const { scrubHandlers } = useHorizontalNumberScrub({+ value: displayValue,+ step,+ onDraft: setDraft,+ onCommit: (next) => onChange(toStoredValue(next)),+ })++ useEffect(() => {+ if (!focused) setDraft(formattedValue)+ }, [focused, formattedValue])++ return (+ <input+ type="text"+ inputMode="decimal"+ step={step}+ value={draft}+ onFocus={() => setFocused(true)}+ {...scrubHandlers}+ onChange={(event) => {+ const next = event.currentTarget.value+ setDraft(next)+ const parsed = parseDraftNumber(next)+ if (parsed !== undefined) onChange(toStoredValue(parsed))+ }}+ onBlur={() => {+ setFocused(false)+ const parsed = parseDraftNumber(draft)+ if (parsed === undefined) {+ setDraft(formattedValue)+ return+ }+ setDraft(formatTransformValue(parsed))+ onChange(toStoredValue(parsed))+ }}+ onKeyDown={(event) => {+ if (event.key !== 'Enter') return+ event.preventDefault()+ event.currentTarget.blur()+ }}+ className={`h-7 w-full cursor-ew-resize rounded border border-white/10 bg-black/40 px-1.5 text-right text-xs text-white/85 ${className}`}+ />+ )+}++function blurEditableTarget(target: EventTarget | null) {+ if (!(target instanceof HTMLElement) || !isEditableTarget(target)) return false+ target.blur()+ return true+}++export function usePlacementEditor({+ slug,+ objects,+ allObjectAssets,+ sceneProject,+ baseMetricScaleFactor,+ baseGroundPlaneOffset,+ sceneProjectReady,+ editing,+ hoveredObjectAssetId,+ hoveredObjectInstanceId,+ onObjectHover,+ onProjectSaved,+}: EditorStateArgs): PlacementEditorController {+ const incomingBaseline = useMemo(+ () => makeEditorBaseline({ slug, objects, sceneProject, baseMetricScaleFactor, baseGroundPlaneOffset }),+ [baseGroundPlaneOffset, baseMetricScaleFactor, objects, sceneProject, slug],+ )+ const [assetFilter, setAssetFilter] = useState<'world' | 'all'>('world')+ const visibleAssetLibrary = assetFilter === 'world'+ ? allObjectAssets.filter((asset) => asset.sourceWorldSlug === slug)+ : allObjectAssets+ const assetsById = useMemo(() => {+ const map = new Map<string, WorldObjectAsset>()+ for (const asset of allObjectAssets) addAssetAliases(map, asset)+ for (const asset of objects) addAssetAliases(map, asset)+ return map+ }, [allObjectAssets, objects])+ const [baseline, setBaseline] = useState(() => incomingBaseline)+ const [instances, setInstances] = useState(() => clonePlacements(incomingBaseline.instances))+ const [sun, setSun] = useState(() => cloneSun(incomingBaseline.sun))+ const [metricScaleFactor, setMetricScaleFactor] = useState(incomingBaseline.metricScaleFactor)+ const [groundPlaneOffset, setGroundPlaneOffset] = useState(incomingBaseline.groundPlaneOffset)+ const [groundPlaneColliderEnabled, setGroundPlaneColliderEnabled] = useState(incomingBaseline.groundPlaneColliderEnabled)+ const [shadowCatcherOpacity, setShadowCatcherOpacity] = useState(incomingBaseline.shadowCatcherOpacity)+ const [shadowCatcherColor, setShadowCatcherColor] = useState(incomingBaseline.shadowCatcherColor)+ const [selectedId, setSelectedId] = useState<string | null>(null)+ const [mode, setMode] = useState<TransformMode>('translate')+ const [saveStatus, setSaveStatus] = useState<'idle' | 'saving' | 'saved' | 'error'>('idle')+ const clipboardRef = useRef<WorldObjectPlacement[]>([])+ const historyRef = useRef<{ past: WorldObjectPlacement[][]; future: WorldObjectPlacement[][] }>({ past: [], future: [] })+ const baselineRef = useRef(baseline)+ const selectedIdRef = useRef(selectedId)+ const instancesRef = useRef(instances)+ const sunRef = useRef(sun)+ const metricScaleFactorRef = useRef(metricScaleFactor)+ const groundPlaneOffsetRef = useRef(groundPlaneOffset)+ const groundPlaneColliderEnabledRef = useRef(groundPlaneColliderEnabled)+ const shadowCatcherOpacityRef = useRef(shadowCatcherOpacity)+ const shadowCatcherColorRef = useRef(shadowCatcherColor)+ const dropSelectedToFloorHandlerRef = useRef<(() => void) | null>(null)+ const flushSelectedTransformHandlerRef = useRef<(() => WorldObjectPlacement[] | null) | null>(null)++ const selectedInstance = useMemo(+ () => instances.find((instance) => instance.instanceId === selectedId),+ [instances, selectedId],+ )+ const dirty = isDraftDirty(+ baseline,+ instances,+ sun,+ metricScaleFactor,+ groundPlaneOffset,+ groundPlaneColliderEnabled,+ shadowCatcherOpacity,+ shadowCatcherColor,+ )+ const canUndo = historyRef.current.past.length > 0+ const canRedo = historyRef.current.future.length > 0++ baselineRef.current = baseline+ instancesRef.current = instances+ selectedIdRef.current = selectedId+ sunRef.current = sun+ metricScaleFactorRef.current = metricScaleFactor+ groundPlaneOffsetRef.current = groundPlaneOffset+ groundPlaneColliderEnabledRef.current = groundPlaneColliderEnabled+ shadowCatcherOpacityRef.current = shadowCatcherOpacity+ shadowCatcherColorRef.current = shadowCatcherColor++ const pushHistory = useCallback((snapshot: WorldObjectPlacement[]) => {+ historyRef.current.past = [...historyRef.current.past, clonePlacements(snapshot)].slice(-HISTORY_LIMIT)+ historyRef.current.future = []+ }, [])++ const updateInstances = useCallback((updater: (current: WorldObjectPlacement[]) => WorldObjectPlacement[]) => {+ setInstances((current) => {+ const next = updater(clonePlacements(current))+ if (signature(next) === signature(current)) return current+ pushHistory(current)+ setSaveStatus('idle')+ return next+ })+ }, [pushHistory])++ useEffect(() => {+ const currentBaseline = baselineRef.current+ const sameSlug = currentBaseline.slug === incomingBaseline.slug+ if (sameSlug && incomingBaseline.signature === currentBaseline.signature) return+ if (+ sameSlug &&+ isDraftDirty(+ currentBaseline,+ instancesRef.current,+ sunRef.current,+ metricScaleFactorRef.current,+ groundPlaneOffsetRef.current,+ groundPlaneColliderEnabledRef.current,+ shadowCatcherOpacityRef.current,+ shadowCatcherColorRef.current,+ )+ ) {+ return+ }++ setBaseline(incomingBaseline)+ setInstances(clonePlacements(incomingBaseline.instances))+ setSun(cloneSun(incomingBaseline.sun))+ setMetricScaleFactor(incomingBaseline.metricScaleFactor)+ setGroundPlaneOffset(incomingBaseline.groundPlaneOffset)+ setGroundPlaneColliderEnabled(incomingBaseline.groundPlaneColliderEnabled)+ setShadowCatcherOpacity(incomingBaseline.shadowCatcherOpacity)+ setShadowCatcherColor(incomingBaseline.shadowCatcherColor)+ setSelectedId(null)+ historyRef.current = { past: [], future: [] }+ setSaveStatus('idle')+ }, [incomingBaseline])++ const commitInstances = useCallback((next: WorldObjectPlacement[]) => {+ if (signature(next) === signature(instancesRef.current)) return+ pushHistory(instancesRef.current)+ setInstances(clonePlacements(next))+ setSaveStatus('idle')+ }, [pushHistory])++ const currentInstances = useCallback(() => (+ flushSelectedTransformHandlerRef.current?.() ?? instancesRef.current+ ), [])++ const selectInstance = useCallback((event: ThreeEvent<MouseEvent>, instanceId: string) => {+ event.stopPropagation()+ setSelectedId(instanceId)+ }, [])++ const selectFromOverlay = useCallback((instanceId: string) => {+ setSelectedId(instanceId)+ }, [])++ const hoverAsset = useCallback((asset: WorldObjectAsset, hovering: boolean, instanceId?: string) => {+ onObjectHover?.(asset, hovering, instanceId)+ }, [onObjectHover])++ const copySelected = useCallback(() => {+ const selected = selectedIdRef.current+ const instance = currentInstances().find((item) => item.instanceId === selected)+ clipboardRef.current = instance ? [{ ...instance }] : []+ }, [currentInstances])++ const pasteInstances = useCallback(() => {+ const copied = clipboardRef.current+ if (!copied.length) return+ const pasted = copied.map((instance) => ({+ ...instance,+ instanceId: makeInstanceId(instance.assetId ?? instance.objectId),+ position: [+ instance.position[0] + PASTE_OFFSET[0],+ instance.position[1] + PASTE_OFFSET[1],+ instance.position[2] + PASTE_OFFSET[2],+ ] as [number, number, number],+ }))+ commitInstances([...currentInstances(), ...pasted])+ setSelectedId(pasted[pasted.length - 1]?.instanceId ?? null)+ }, [commitInstances, currentInstances])++ const duplicateSelected = useCallback(() => {+ copySelected()+ pasteInstances()+ }, [copySelected, pasteInstances])++ const duplicateInstance = useCallback((instanceId: string) => {+ const instances = currentInstances()+ const instance = instances.find((item) => item.instanceId === instanceId)+ if (!instance) return+ const duplicate = {+ ...instance,+ instanceId: makeInstanceId(instance.assetId ?? instance.objectId),+ position: [+ instance.position[0] + PASTE_OFFSET[0],+ instance.position[1] + PASTE_OFFSET[1],+ instance.position[2] + PASTE_OFFSET[2],+ ] as [number, number, number],+ }+ commitInstances([...instances, duplicate])+ setSelectedId(duplicate.instanceId)+ }, [commitInstances, currentInstances])++ const deleteSelected = useCallback(() => {+ const selected = selectedIdRef.current+ if (!selected) return+ updateInstances((current) => current.filter((instance) => instance.instanceId !== selected))+ setSelectedId(null)+ }, [updateInstances])++ const deleteInstance = useCallback((instanceId: string) => {+ updateInstances((current) => current.filter((instance) => instance.instanceId !== instanceId))+ setSelectedId((current) => (current === instanceId ? null : current))+ }, [updateInstances])++ const addAsset = useCallback((asset: WorldObjectAsset) => {+ const instance: WorldObjectPlacement = {+ instanceId: makeInstanceId(assetKey(asset)),+ objectId: asset.id,+ assetId: assetKey(asset),+ physics: 'rigidbody',+ position: [0, 0, 0.5],+ rotation: [0, 0, 0],+ scale: [1, 1, 1],+ }+ updateInstances((current) => [...current, instance])+ setSelectedId(instance.instanceId)+ }, [updateInstances])++ const dropSelectedToFloor = useCallback(() => {+ if (!selectedIdRef.current) return+ dropSelectedToFloorHandlerRef.current?.()+ }, [])++ const setDropSelectedToFloorHandler = useCallback((handler: (() => void) | null) => {+ dropSelectedToFloorHandlerRef.current = handler+ }, [])++ const setFlushSelectedTransformHandler = useCallback((handler: (() => WorldObjectPlacement[] | null) | null) => {+ flushSelectedTransformHandlerRef.current = handler+ }, [])++ const updateSelectedTransform = useCallback((field: TransformField, axis: TransformAxis, value: number) => {+ if (!Number.isFinite(value)) return+ const selected = selectedIdRef.current+ if (!selected) return++ updateInstances((current) => current.map((instance) => {+ if (instance.instanceId !== selected) return instance+ const nextValue = [...instance[field]] as [number, number, number]+ nextValue[axis] = value+ return { ...instance, [field]: nextValue }+ }))+ }, [updateInstances])++ const updateSelectedPhysics = useCallback((physics: WorldObjectPhysics) => {+ const selected = selectedIdRef.current+ if (!selected) return++ updateInstances((current) => current.map((instance) => (+ instance.instanceId === selected ? { ...instance, physics } : instance+ )))+ }, [updateInstances])++ const updateSunIntensity = useCallback((intensity: number) => {+ if (!Number.isFinite(intensity)) return+ setSun((current) => {+ if (current.intensity === intensity) return current+ setSaveStatus('idle')+ return { ...current, intensity }+ })+ }, [])++ const updateEnvironmentIntensity = useCallback((environmentIntensity: number) => {+ if (!Number.isFinite(environmentIntensity)) return+ setSun((current) => {+ if (current.environmentIntensity === environmentIntensity) return current+ setSaveStatus('idle')+ return { ...current, environmentIntensity }+ })+ }, [])++ const updateSunRotation = useCallback((axis: TransformAxis, value: number) => {+ if (!Number.isFinite(value)) return+ setSun((current) => {+ if (current.rotation[axis] === value) return current+ const rotation = [...current.rotation] as [number, number, number]+ rotation[axis] = value+ setSaveStatus('idle')+ return { ...current, rotation }+ })+ }, [])++ const defaultGroundPlaneOffset = useCallback((metricScaleFactor: number) => (+ scaledGroundPlaneOffset(baseGroundPlaneOffset, metricScaleFactor, baseMetricScaleFactor)+ ), [baseGroundPlaneOffset, baseMetricScaleFactor])++ const updateMetricScaleFactor = useCallback((nextMetricScaleFactor: number) => {+ if (!Number.isFinite(nextMetricScaleFactor) || nextMetricScaleFactor <= 0) return+ const previousMetricScaleFactor = metricScaleFactorRef.current+ setMetricScaleFactor((current) => {+ if (current === nextMetricScaleFactor) return current+ setSaveStatus('idle')+ return nextMetricScaleFactor+ })+ setGroundPlaneOffset((current) => {+ const previousDefault = defaultGroundPlaneOffset(previousMetricScaleFactor)+ if (Math.abs(current - previousDefault) > VALUE_EPSILON) return current+ const nextDefault = defaultGroundPlaneOffset(nextMetricScaleFactor)+ return current === nextDefault ? current : nextDefault+ })+ }, [defaultGroundPlaneOffset])++ const resetMetricScaleFactor = useCallback(() => {+ updateMetricScaleFactor(baseMetricScaleFactor)+ }, [baseMetricScaleFactor, updateMetricScaleFactor])++ const updateGroundPlaneOffset = useCallback((nextGroundPlaneOffset: number) => {+ if (!Number.isFinite(nextGroundPlaneOffset)) return+ setGroundPlaneOffset((current) => {+ if (current === nextGroundPlaneOffset) return current+ setSaveStatus('idle')+ return nextGroundPlaneOffset+ })+ }, [])++ const resetGroundPlaneOffset = useCallback(() => {+ updateGroundPlaneOffset(defaultGroundPlaneOffset(metricScaleFactorRef.current))+ }, [defaultGroundPlaneOffset, updateGroundPlaneOffset])++ const updateGroundPlaneColliderEnabled = useCallback((enabled: boolean) => {+ setGroundPlaneColliderEnabled((current) => {+ if (current === enabled) return current+ setSaveStatus('idle')+ return enabled+ })+ }, [])++ const updateShadowCatcherOpacity = useCallback((nextShadowCatcherOpacity: number) => {+ if (!Number.isFinite(nextShadowCatcherOpacity)) return+ const clampedOpacity = normalizeShadowCatcherOpacity(nextShadowCatcherOpacity)+ setShadowCatcherOpacity((current) => {+ if (current === clampedOpacity) return current+ setSaveStatus('idle')+ return clampedOpacity+ })+ }, [])++ const resetShadowCatcherOpacity = useCallback(() => {+ updateShadowCatcherOpacity(DEFAULT_SHADOW_CATCHER_OPACITY)+ }, [updateShadowCatcherOpacity])++ const updateShadowCatcherColor = useCallback((nextShadowCatcherColor: string) => {+ const normalizedColor = normalizeShadowCatcherColor(nextShadowCatcherColor)+ setShadowCatcherColor((current) => {+ if (current === normalizedColor) return current+ setSaveStatus('idle')+ return normalizedColor+ })+ }, [])++ const resetShadowCatcherColor = useCallback(() => {+ updateShadowCatcherColor(DEFAULT_SHADOW_CATCHER_COLOR)+ }, [updateShadowCatcherColor])++ const undo = useCallback(() => {+ const snapshot = historyRef.current.past[historyRef.current.past.length - 1]+ if (!snapshot) return+ historyRef.current.past = historyRef.current.past.slice(0, -1)+ historyRef.current.future = [clonePlacements(instancesRef.current), ...historyRef.current.future]+ setInstances(clonePlacements(snapshot))+ setSaveStatus('idle')+ }, [])++ const redo = useCallback(() => {+ const snapshot = historyRef.current.future[0]+ if (!snapshot) return+ historyRef.current.future = historyRef.current.future.slice(1)+ historyRef.current.past = [...historyRef.current.past, clonePlacements(instancesRef.current)].slice(-HISTORY_LIMIT)+ setInstances(clonePlacements(snapshot))+ setSaveStatus('idle')+ }, [])++ const resetEdits = useCallback(() => {+ updateInstances(() => clonePlacements(baseline.instances))+ setSun(cloneSun(baseline.sun))+ setMetricScaleFactor(baseline.metricScaleFactor)+ setGroundPlaneOffset(baseline.groundPlaneOffset)+ setGroundPlaneColliderEnabled(baseline.groundPlaneColliderEnabled)+ setShadowCatcherOpacity(baseline.shadowCatcherOpacity)+ setShadowCatcherColor(baseline.shadowCatcherColor)+ setSelectedId(null)+ }, [baseline, updateInstances])++ const openWorldFolder = useCallback(() => {+ if (!import.meta.env.DEV) return+ fetch(`/__open-world-folder?slug=${encodeURIComponent(slug)}&target=scene`).catch((error) => {+ console.warn(`Could not open scene folder for "${slug}".`, error)+ })+ }, [slug])++ const saveProject = useCallback(async () => {+ if (!import.meta.env.DEV) return true+ try {+ const flushedInstances = flushSelectedTransformHandlerRef.current?.()+ const project: WorldSceneProject = {+ version: projectVersion,+ instances: clonePlacements(flushedInstances ?? instancesRef.current),+ sun: cloneSun(sunRef.current),+ metricScaleFactor: metricScaleFactorRef.current,+ groundPlaneOffset: groundPlaneOffsetRef.current,+ groundPlaneColliderEnabled: groundPlaneColliderEnabledRef.current,+ shadowCatcherOpacity: shadowCatcherOpacityRef.current,+ shadowCatcherColor: shadowCatcherColorRef.current,+ }+ setSaveStatus('saving')+ const response = await fetch(`/__scene-project?slug=${encodeURIComponent(slug)}`, {+ method: 'POST',+ headers: { 'Content-Type': 'application/json' },+ body: JSON.stringify(project),+ })+ if (!response.ok) throw new Error(await response.text())+ const savedProject = await response.json() as WorldSceneProject+ const savedMetricScaleFactor = savedProject.metricScaleFactor ?? baseMetricScaleFactor+ const savedGroundPlaneOffset = savedProject.groundPlaneOffset ??+ scaledGroundPlaneOffset(baseGroundPlaneOffset, savedMetricScaleFactor, baseMetricScaleFactor)+ const savedShadowCatcherOpacity = normalizeShadowCatcherOpacity(savedProject.shadowCatcherOpacity)+ const savedShadowCatcherColor = normalizeShadowCatcherColor(savedProject.shadowCatcherColor)+ const savedInstances = clonePlacements(savedProject.instances)+ const savedSun = cloneSun(savedProject.sun)+ setBaseline({+ slug,+ instances: savedInstances,+ sun: savedSun,+ metricScaleFactor: savedMetricScaleFactor,+ groundPlaneOffset: savedGroundPlaneOffset,+ groundPlaneColliderEnabled: savedProject.groundPlaneColliderEnabled ?? true,+ shadowCatcherOpacity: savedShadowCatcherOpacity,+ shadowCatcherColor: savedShadowCatcherColor,+ signature: editorStateSignature(+ savedInstances,+ savedSun,+ savedMetricScaleFactor,+ savedGroundPlaneOffset,+ savedProject.groundPlaneColliderEnabled ?? true,+ savedShadowCatcherOpacity,+ savedShadowCatcherColor,+ ),+ })+ setInstances(clonePlacements(savedInstances))+ setSun(cloneSun(savedSun))+ setMetricScaleFactor(savedMetricScaleFactor)+ setGroundPlaneOffset(savedGroundPlaneOffset)+ setGroundPlaneColliderEnabled(savedProject.groundPlaneColliderEnabled ?? true)+ setShadowCatcherOpacity(savedShadowCatcherOpacity)+ setShadowCatcherColor(savedShadowCatcherColor)+ onProjectSaved?.(savedProject)+ setSaveStatus('saved')+ return true+ } catch (error) {+ console.warn('Failed to save scene project.', error)+ setSaveStatus('error')+ return false+ }+ }, [baseGroundPlaneOffset, baseMetricScaleFactor, onProjectSaved, slug])++ useEffect(() => {+ if (!editing || !sceneProjectReady || sceneProject || !objects.length || !import.meta.env.DEV) return+ const project: WorldSceneProject = {+ version: projectVersion,+ instances: clonePlacements(baseline.instances),+ sun: cloneSun(baseline.sun),+ metricScaleFactor: baseline.metricScaleFactor,+ groundPlaneOffset: baseline.groundPlaneOffset,+ groundPlaneColliderEnabled: baseline.groundPlaneColliderEnabled,+ shadowCatcherOpacity: baseline.shadowCatcherOpacity,+ shadowCatcherColor: baseline.shadowCatcherColor,+ }+ fetch(`/__scene-project?slug=${encodeURIComponent(slug)}`, {+ method: 'POST',+ headers: { 'Content-Type': 'application/json' },+ body: JSON.stringify(project),+ })+ .then(async (response) => {+ if (!response.ok) return+ const savedProject = await response.json() as WorldSceneProject+ onProjectSaved?.(savedProject)+ })+ .catch((error) => {+ console.warn('Failed to initialize scene project.', error)+ })+ }, [baseline, editing, objects.length, onProjectSaved, sceneProject, sceneProjectReady, slug])++ useEffect(() => {+ if (!editing || !dirty) return+ const onBeforeUnload = (event: BeforeUnloadEvent) => {+ event.preventDefault()+ event.returnValue = ''+ }+ window.addEventListener('beforeunload', onBeforeUnload)+ return () => window.removeEventListener('beforeunload', onBeforeUnload)+ }, [dirty, editing])++ useEffect(() => {+ if (!editing) return+ const onKeyDown = (event: KeyboardEvent) => {+ const target = event.target+ if (isEditableTarget(target)) {+ if (event.key === 'Escape') {+ event.preventDefault()+ event.stopPropagation()+ if (target instanceof HTMLElement) target.blur()+ }+ return+ }+ const mod = event.metaKey || event.ctrlKey++ if (mod && event.key.toLowerCase() === 'z' && event.shiftKey) {+ event.preventDefault()+ redo()+ return+ }+ if (mod && event.key.toLowerCase() === 'z') {+ event.preventDefault()+ undo()+ return+ }+ if (mod && event.key.toLowerCase() === 'y') {+ event.preventDefault()+ redo()+ return+ }+ if (mod && event.key.toLowerCase() === 'c') {+ event.preventDefault()+ copySelected()+ return+ }+ if (mod && event.key.toLowerCase() === 'v') {+ event.preventDefault()+ pasteInstances()+ return+ }+ if (event.shiftKey && event.key.toLowerCase() === 'd') {+ event.preventDefault()+ duplicateSelected()+ return+ }+ if (event.key === 'Delete' || event.key === 'Backspace') {+ event.preventDefault()+ deleteSelected()+ return+ }+ if (event.key === '1') setMode('translate')+ if (event.key === '2') setMode('rotate')+ if (event.key === '3') setMode('scale')+ }++ window.addEventListener('keydown', onKeyDown)+ return () => window.removeEventListener('keydown', onKeyDown)+ }, [copySelected, deleteSelected, duplicateSelected, editing, pasteInstances, redo, undo])++ return {+ slug,+ objects,+ allObjectAssets,+ visibleAssetLibrary,+ assetFilter,+ setAssetFilter,+ assetsById,+ instances,+ selectedId,+ hoveredObjectAssetId,+ hoveredObjectInstanceId,+ selectedInstance,+ mode,+ setMode,+ saveStatus,+ dirty,+ canUndo,+ canRedo,+ setSelectedId,+ selectInstance,+ selectFromOverlay,+ hoverAsset,+ commitInstances,+ duplicateSelected,+ duplicateInstance,+ deleteSelected,+ deleteInstance,+ addAsset,+ dropSelectedToFloor,+ setDropSelectedToFloorHandler,+ updateSelectedTransform,+ updateSelectedPhysics,+ sun,+ updateSunIntensity,+ updateEnvironmentIntensity,+ updateSunRotation,+ metricScaleFactor,+ resetMetricScaleFactor,+ updateMetricScaleFactor,+ groundPlaneOffset,+ resetGroundPlaneOffset,+ updateGroundPlaneOffset,+ groundPlaneColliderEnabled,+ updateGroundPlaneColliderEnabled,+ shadowCatcherOpacity,+ resetShadowCatcherOpacity,+ updateShadowCatcherOpacity,+ shadowCatcherColor,+ resetShadowCatcherColor,+ updateShadowCatcherColor,+ undo,+ redo,+ resetEdits,+ openWorldFolder,+ saveProject,+ setFlushSelectedTransformHandler,+ }+}++export function PlacementEditorScene({ controller, renderMode }: PlacementEditorSceneProps) {+ const { camera, scene } = useThree()+ const transformRef = useRef<any>(null)+ const selectedObjectRef = useRef<THREE.Group>(null)+ const selectionSuppressedRef = useRef(false)+ const selectionSuppressionTimeoutRef = useRef<number | undefined>(undefined)+ const [selectedObject, setSelectedObject] = useState<THREE.Group>()+ const [hoveredInstanceId, setHoveredInstanceId] = useState<string | null>(null)+ const dragStartRef = useRef<WorldObjectPlacement | null>(null)+ const raycasterRef = useRef(new THREE.Raycaster())+ const selectedInstance = controller.selectedInstance+ const selectedAsset = selectedInstance+ ? controller.assetsById.get(placementAssetKey(selectedInstance)) ?? controller.assetsById.get(selectedInstance.objectId)+ : undefined++ const bakeSelectedTransform = useCallback(() => {+ const selected = controller.selectedInstance+ const object = selectedObjectRef.current+ if (!selected || !object) return null++ const next = controller.instances.map((instance) => {+ if (instance.instanceId !== selected.instanceId) return instance++ object.updateWorldMatrix(true, false)+ const position = new THREE.Vector3()+ const quaternion = new THREE.Quaternion()+ const scale = new THREE.Vector3()+ object.matrixWorld.decompose(position, quaternion, scale)++ return {+ ...instance,+ position: asTuple(position),+ rotation: eulerTuple(quaternion),+ scale: asTuple(scale),+ }+ })++ controller.commitInstances(next)+ dragStartRef.current = null+ return next+ }, [controller])++ useEffect(() => {+ const controls = transformRef.current as any+ if (!controls) return+ const captureDragStart = () => {+ selectionSuppressedRef.current = true+ if (selectionSuppressionTimeoutRef.current !== undefined) {+ window.clearTimeout(selectionSuppressionTimeoutRef.current)+ selectionSuppressionTimeoutRef.current = undefined+ }+ dragStartRef.current = controller.selectedInstance ? clonePlacements([controller.selectedInstance])[0] : null+ }+ const bakeDragEnd = (event: { value?: boolean }) => {+ if (event.value !== false) return+ bakeSelectedTransform()+ selectionSuppressionTimeoutRef.current = window.setTimeout(() => {+ selectionSuppressedRef.current = false+ selectionSuppressionTimeoutRef.current = undefined+ }, 120)+ }+ controls.addEventListener('mouseDown', captureDragStart)+ controls.addEventListener('dragging-changed', bakeDragEnd)+ return () => {+ if (selectionSuppressionTimeoutRef.current !== undefined) {+ window.clearTimeout(selectionSuppressionTimeoutRef.current)+ selectionSuppressionTimeoutRef.current = undefined+ }+ selectionSuppressedRef.current = false+ controls.removeEventListener('mouseDown', captureDragStart)+ controls.removeEventListener('dragging-changed', bakeDragEnd)+ }+ }, [bakeSelectedTransform, controller.selectedInstance])++ const selectInstance = useCallback((event: ThreeEvent<MouseEvent>, instanceId: string) => {+ if (selectionSuppressedRef.current) {+ event.stopPropagation()+ return+ }+ controller.selectInstance(event, nearestEditableObjectInstanceId(event, instanceId, camera))+ }, [camera, controller])++ const hoverInstance = useCallback((event: ThreeEvent<PointerEvent>, instanceId: string) => {+ setHoveredInstanceId(nearestEditableObjectInstanceId(event, instanceId, camera))+ }, [camera])++ const clearHoveredInstance = useCallback((_event: ThreeEvent<PointerEvent>, instanceId: string) => {+ setHoveredInstanceId((current) => (current === instanceId ? null : current))+ }, [])++ useEffect(() => {+ controller.setFlushSelectedTransformHandler(bakeSelectedTransform)+ return () => controller.setFlushSelectedTransformHandler(null)+ }, [bakeSelectedTransform, controller])++ useEffect(() => {+ const onKeyDown = (event: KeyboardEvent) => {+ if (event.key !== 'Escape') return+ if (blurEditableTarget(event.target)) {+ event.preventDefault()+ event.stopPropagation()+ return+ }++ const dragStart = dragStartRef.current+ const object = selectedObjectRef.current+ if (dragStart && object) {+ event.preventDefault()+ object.position.set(...dragStart.position)+ object.rotation.set(...dragStart.rotation)+ object.scale.set(...dragStart.scale)+ object.updateMatrixWorld(true)+ dragStartRef.current = null+ return+ }++ if (controller.selectedId) {+ event.preventDefault()+ controller.setSelectedId(null)+ }+ }++ window.addEventListener('keydown', onKeyDown)+ return () => window.removeEventListener('keydown', onKeyDown)+ }, [controller])++ const dropSelectedToFloor = useCallback(() => {+ const selected = controller.selectedInstance+ if (!selected) return+ const selectedGroup = selectedObjectRef.current+ const isSelectedObject = (object: THREE.Object3D) => {+ let current: THREE.Object3D | null = object+ while (current) {+ if (current === selectedGroup) return true+ current = current.parent+ }+ return false+ }+ const origin = new THREE.Vector3(...selected.position)+ if (selectedGroup) {+ selectedGroup.updateWorldMatrix(true, true)+ const bounds = new THREE.Box3().setFromObject(selectedGroup)+ selectedGroup.getWorldPosition(origin)+ origin.y = bounds.max.y + 0.25+ } else {+ origin.y += 0.25+ }+ const raycaster = raycasterRef.current+ raycaster.layers.set(DROP_TARGET_LAYER)+ raycaster.set(origin, new THREE.Vector3(0, -1, 0))+ const hit = raycaster+ .intersectObjects(scene.children, true)+ .find((intersection) => !isSelectedObject(intersection.object) && intersection.point.y <= origin.y)+ if (!hit) return++ const next = controller.instances.map((instance) => {+ if (instance.instanceId !== selected.instanceId) return instance+ return { ...instance, position: [instance.position[0], hit.point.y, instance.position[2]] as [number, number, number] }+ })+ controller.commitInstances(next)+ }, [controller, scene.children])++ useEffect(() => {+ controller.setDropSelectedToFloorHandler(dropSelectedToFloor)+ return () => controller.setDropSelectedToFloorHandler(null)+ }, [controller, dropSelectedToFloor])++ return (+ <>+ <group>+ {controller.instances.filter((instance) => instance.instanceId !== controller.selectedId).map((instance) => {+ const asset = controller.assetsById.get(placementAssetKey(instance)) ?? controller.assetsById.get(instance.objectId)+ if (!asset) return null+ return (+ <EditableObject+ key={instance.instanceId}+ asset={asset}+ placement={instance}+ selected={false}+ externallyHovered={+ hoveredInstanceId === instance.instanceId ||+ controller.hoveredObjectInstanceId === instance.instanceId ||+ (!controller.hoveredObjectInstanceId && controller.hoveredObjectAssetId === asset.assetId)+ }+ renderMode={renderMode}+ onSelect={selectInstance}+ onHover={hoverInstance}+ onHoverEnd={clearHoveredInstance}+ />+ )+ })}+ {selectedInstance && selectedAsset && (+ <>+ <EditableObject+ key={selectedInstance.instanceId}+ asset={selectedAsset}+ placement={selectedInstance}+ selected+ externallyHovered={+ hoveredInstanceId === selectedInstance.instanceId ||+ controller.hoveredObjectInstanceId === selectedInstance.instanceId ||+ (!controller.hoveredObjectInstanceId && controller.hoveredObjectAssetId === selectedAsset.assetId)+ }+ renderMode={renderMode}+ onSelect={selectInstance}+ onHover={hoverInstance}+ onHoverEnd={clearHoveredInstance}+ setRef={(group) => {+ if (selectedObjectRef.current === group) return+ selectedObjectRef.current = group+ setSelectedObject(group ?? undefined)+ }}+ />+ {selectedObject && (+ <TransformControls+ ref={transformRef}+ object={selectedObject}+ mode={controller.mode}+ space="local"+ rotationSnap={THREE.MathUtils.degToRad(ROTATION_SNAP_DEGREES)}+ />+ )}+ </>+ )}+ </group>+ </>+ )+}++export function PlacementEditorOverlay({ controller }: PlacementEditorOverlayProps) {+ const [, navigate] = useLocation()+ const selectedInstance = controller.selectedInstance+ const selectedAsset = selectedInstance+ ? controller.assetsById.get(placementAssetKey(selectedInstance)) ?? controller.assetsById.get(selectedInstance.objectId)+ : undefined+ const showSaveStatus = controller.saveStatus === 'error' || controller.saveStatus === 'saved' || !import.meta.env.DEV++ return (+ <div className="pointer-events-none fixed inset-0 z-20 text-sm text-white">+ <div className="pointer-events-auto fixed left-1/2 top-4 -translate-x-1/2">+ <div className={`${chrome.bar} flex flex-shrink-0 gap-1`}>+ <AppButton+ className={`justify-center ${controller.mode === 'translate' ? 'bg-white/15 opacity-100' : ''}`}+ onClick={() => controller.setMode('translate')}+ aria-label="Position tool"+ >+ <ArrowsOutCardinal size={15} weight="regular" />+ Position+ </AppButton>+ <AppButton+ className={`justify-center ${controller.mode === 'rotate' ? 'bg-white/15 opacity-100' : ''}`}+ onClick={() => controller.setMode('rotate')}+ aria-label="Rotation tool"+ >+ <ArrowClockwise size={15} weight="regular" />+ Rotation+ </AppButton>+ <AppButton+ className={`justify-center ${controller.mode === 'scale' ? 'bg-white/15 opacity-100' : ''}`}+ onClick={() => controller.setMode('scale')}+ aria-label="Scale tool"+ >+ <CornersOut size={15} weight="regular" />+ Scale+ </AppButton>+ <AppButton+ className="justify-center"+ disabled={!controller.selectedId}+ onClick={controller.dropSelectedToFloor}+ aria-label="Drop selected object to floor"+ title="Drop to floor"+ >+ <ArrowDown size={15} weight="regular" />+ Drop+ </AppButton>+ </div>+ </div>++ <ChromePanel className="pointer-events-auto fixed right-4 top-4 w-72 p-2 font-mono whitespace-nowrap">+ <div className="flex flex-col gap-1">+ {selectedInstance ? (+ <>+ <div className="mb-1 min-w-0">+ <div className="truncate text-xs font-medium text-white/90">{selectedAsset?.name ?? selectedInstance.objectId}</div>+ <div className="truncate text-[10px] text-white/35">{selectedInstance.instanceId}</div>+ </div>+ {TRANSFORM_FIELDS.map(({ field, label, step }) => (+ <div key={field} className="grid grid-cols-[2.75rem_repeat(3,minmax(0,1fr))] items-center gap-1">+ <div className="text-[10px] tracking-[0.16em] text-white/40">{label}</div>+ {TRANSFORM_AXES.map(({ axis, label: axisLabel }) => (+ <label key={`${field}-${axis}`} className="min-w-0">+ <span className="sr-only">{`${label} ${axisLabel}`}</span>+ <TransformValueInput+ field={field}+ axis={axis}+ step={step}+ value={selectedInstance[field][axis]}+ onChange={controller.updateSelectedTransform}+ />+ </label>+ ))}+ </div>+ ))}+ <label className="grid grid-cols-[2.75rem_1fr] items-center gap-1">+ <span className="text-[10px] tracking-[0.16em] text-white/40">Body</span>+ <select+ value={selectedInstance.physics ?? 'rigidbody'}+ onChange={(event) => controller.updateSelectedPhysics(event.currentTarget.value as WorldObjectPhysics)}+ className="h-7 rounded border border-white/10 bg-black/40 px-1.5 text-xs text-white/85"+ >+ <option value="rigidbody">Rigidbody</option>+ <option value="static">Static</option>+ <option value="ghost">Ghost</option>+ </select>+ </label>+ </>+ ) : (+ <div className="pb-1 text-[10px] text-white/35">No object selected</div>+ )}+ <div className={`${selectedInstance ? 'border-t border-white/10 pt-1' : ''} grid grid-cols-[2.75rem_2.25rem_repeat(3,minmax(0,1fr))] items-center gap-1`}>+ <span className="text-[10px] tracking-[0.16em] text-white/40">Sun</span>+ <NumberValueInput+ value={controller.sun.intensity}+ step={0.01}+ onChange={controller.updateSunIntensity}+ className="h-6 text-[11px]"+ />+ {TRANSFORM_AXES.map(({ axis, label }) => (+ <label key={`sun-${axis}`} className="min-w-0">+ <span className="sr-only">{`Sun rotation ${label}`}</span>+ <NumberValueInput+ value={controller.sun.rotation[axis]}+ displayValue={THREE.MathUtils.radToDeg(controller.sun.rotation[axis])}+ step={1}+ toStoredValue={THREE.MathUtils.degToRad}+ onChange={(value) => controller.updateSunRotation(axis, value)}+ className="h-6 text-[11px]"+ />+ </label>+ ))}+ </div>+ <div className="grid grid-cols-[2.75rem_repeat(2,minmax(0,1fr))] items-center gap-1">+ <span className="text-[10px] tracking-[0.16em] text-white/40">Env</span>+ <NumberValueInput+ value={controller.sun.environmentIntensity ?? DEFAULT_SCENE_SUN.environmentIntensity ?? 2}+ step={0.01}+ onChange={controller.updateEnvironmentIntensity}+ className="h-6 text-[11px]"+ />+ <span className="text-[10px] tracking-[0.16em] text-white/40">HDRI</span>+ </div>+ <div className="grid grid-cols-[2.75rem_1fr_auto] items-center gap-1">+ <span className="text-[10px] tracking-[0.16em] text-white/40">Shadow</span>+ <NumberValueInput+ value={controller.shadowCatcherOpacity}+ step={0.01}+ onChange={controller.updateShadowCatcherOpacity}+ className="h-6 text-[11px]"+ />+ <AppButton+ onClick={controller.resetShadowCatcherOpacity}+ className="h-6 px-1.5 py-0 text-[10px] text-white/55"+ aria-label="Reset shadow opacity"+ title="Reset shadow opacity"+ >+ Reset+ </AppButton>+ </div>+ <div className="grid grid-cols-[2.75rem_1fr_auto] items-center gap-1">+ <span className="text-[10px] tracking-[0.16em] text-white/40">Color</span>+ <input+ type="color"+ value={controller.shadowCatcherColor}+ onChange={(event) => controller.updateShadowCatcherColor(event.currentTarget.value)}+ className="h-6 w-full cursor-pointer rounded border border-white/10 bg-black/40"+ aria-label="Shadow color"+ />+ <AppButton+ onClick={controller.resetShadowCatcherColor}+ className="h-6 px-1.5 py-0 text-[10px] text-white/55"+ aria-label="Reset shadow color"+ title="Reset shadow color"+ >+ Reset+ </AppButton>+ </div>+ <div className="grid grid-cols-[2.75rem_1fr_auto] items-center gap-1">+ <span className="text-[10px] tracking-[0.16em] text-white/40">World</span>+ <NumberValueInput+ value={controller.metricScaleFactor}+ step={0.01}+ onChange={controller.updateMetricScaleFactor}+ className="h-6 text-[11px]"+ />+ <AppButton+ onClick={controller.resetMetricScaleFactor}+ className="h-6 px-1.5 py-0 text-[10px] text-white/55"+ aria-label="Reset world scale"+ title="Reset world scale"+ >+ Reset+ </AppButton>+ </div>+ <div className="grid grid-cols-[2.75rem_1fr_auto] items-center gap-1">+ <span className="text-[10px] tracking-[0.16em] text-white/40">Ground</span>+ <NumberValueInput+ value={controller.groundPlaneOffset}+ step={0.01}+ onChange={controller.updateGroundPlaneOffset}+ className="h-6 text-[11px]"+ />+ <AppButton+ onClick={controller.resetGroundPlaneOffset}+ className="h-6 px-1.5 py-0 text-[10px] text-white/55"+ aria-label="Reset ground offset"+ title="Reset ground offset"+ >+ Reset+ </AppButton>+ </div>+ <div className="grid grid-cols-[2.75rem_1fr] items-center gap-1">+ <span className="text-[10px] tracking-[0.16em] text-white/40">Floor</span>+ <AppButton+ active={controller.groundPlaneColliderEnabled}+ onClick={() => controller.updateGroundPlaneColliderEnabled(!controller.groundPlaneColliderEnabled)}+ className={`h-6 justify-center px-1.5 py-0 text-[10px] ${controller.groundPlaneColliderEnabled ? 'bg-white/15 opacity-100' : 'text-white/55'}`}+ aria-label={controller.groundPlaneColliderEnabled ? 'Disable flat ground floor collider' : 'Enable flat ground floor collider'}+ aria-pressed={controller.groundPlaneColliderEnabled}+ title="Flat ground floor collider"+ >+ {controller.groundPlaneColliderEnabled ? 'Collider On' : 'Collider Off'}+ </AppButton>+ </div>+ </div>+ </ChromePanel>++ <div className={`${chrome.enter} fixed left-4 top-28 flex max-h-[calc(100vh-8rem)] w-64 max-w-[calc(100vw-2rem)] flex-col gap-1 whitespace-nowrap text-sm`}>+ <div className="flex min-h-0 flex-col gap-1">+ <div className={twMerge(chrome.bar, 'pointer-events-auto')}>+ <div className="flex items-center justify-between gap-1">+ <div className="flex min-w-0 items-center gap-1">+ <a+ className="inline-flex h-7 w-7 items-center justify-center rounded p-1 text-xs opacity-80 transition-[background-color,opacity] hover:bg-white/10 hover:opacity-100"+ href={`/${controller.slug}`}+ aria-label="Return to world"+ onClick={(event) => {+ event.preventDefault()+ if (controller.dirty && !window.confirm('You have unsaved scene changes. Leave without saving?')) return+ navigate(`/${controller.slug}`)+ }}+ >+ <ArrowLeft size={16} weight="regular" />+ </a>+ <AppButton+ className={`h-7 w-7 justify-center p-1 ${controller.dirty ? 'text-yellow-300 opacity-100' : ''}`}+ disabled={!import.meta.env.DEV || controller.saveStatus === 'saving'}+ onClick={controller.saveProject}+ aria-label={controller.dirty ? 'Save unsaved scene changes' : 'Save project'}+ title={controller.dirty ? 'Unsaved changes' : 'Saved'}+ >+ <FloppyDisk size={16} weight="regular" />+ </AppButton>+ <AppButton+ className="h-7 w-7 justify-center p-1"+ disabled={!import.meta.env.DEV}+ onClick={controller.openWorldFolder}+ aria-label="Open world folder"+ >+ <FolderOpen size={16} weight="regular" />+ </AppButton>+ </div>+ <div className="ml-auto flex items-center gap-1">+ <AppButton+ className="h-7 w-7 justify-center p-1"+ disabled={!controller.canUndo}+ onClick={controller.undo}+ aria-label="Undo"+ >+ <ArrowUUpLeft size={16} weight="regular" />+ </AppButton>+ <AppButton+ className="h-7 w-7 justify-center p-1"+ disabled={!controller.canRedo}+ onClick={controller.redo}+ aria-label="Redo"+ >+ <ArrowUUpRight size={16} weight="regular" />+ </AppButton>+ </div>+ </div>+ {showSaveStatus && (+ <div className="mt-1 text-xs leading-4 text-white/65">+ {controller.saveStatus === 'error' && <div className="text-red-300">Save failed.</div>}+ {controller.saveStatus === 'saved' && <div className="text-green-300">Saved scene.json.</div>}+ {!import.meta.env.DEV && <div>Saving and folder opening are available in dev only.</div>}+ </div>+ )}+ </div>++ <ChromePanel className="pointer-events-auto min-h-0 overflow-hidden">+ <div className={chrome.sectionHeader}>+ <span>Scene Graph</span>+ <span className="normal-case tracking-normal">{controller.selectedId ? '1 selected' : 'None selected'}</span>+ </div>+ <div className="max-h-[34vh] overflow-y-auto overflow-x-hidden">+ <div className="p-1 pr-2">+ {controller.instances.map((instance) => {+ const asset = controller.assetsById.get(placementAssetKey(instance)) ?? controller.assetsById.get(instance.objectId)+ const selected = controller.selectedId === instance.instanceId+ return (+ <div+ key={instance.instanceId}+ className={`${chrome.row} ${selected ? chrome.rowActive : chrome.rowIdle}`}+ onMouseEnter={() => {+ if (asset) controller.hoverAsset(asset, true, instance.instanceId)+ }}+ onMouseLeave={() => {+ if (asset) controller.hoverAsset(asset, false, instance.instanceId)+ }}+ >+ <button+ type="button"+ className="min-w-0 flex flex-1 items-center gap-1.5 rounded px-1.5 py-0.5 text-left"+ onClick={() => controller.selectFromOverlay(instance.instanceId)}+ >+ <ChromeThumbnail thumbnailUrl={asset?.thumbnailUrl} alt={asset?.name ?? instance.objectId} />+ <span className="min-w-0 flex-1">+ <span className="flex min-w-0 items-center gap-1.5">+ <span className="truncate text-xs text-white/90">{asset?.name ?? instance.objectId}</span>+ {asset?.variantLabel && (+ <span className="flex-shrink-0 rounded border border-white/10 bg-white/5 px-1.5 py-0.5 text-[10px] leading-none text-white/50">+ {asset.variantLabel}+ </span>+ )}+ </span>+ <span className="block truncate text-[10px] text-white/35">{instance.instanceId}</span>+ </span>+ </button>+ <div className="flex flex-shrink-0 items-center gap-0.5 px-0.5 opacity-0 transition-opacity group-hover:opacity-100">+ <AppButton+ className="h-7 w-7 justify-center"+ onClick={(event) => {+ event.stopPropagation()+ controller.duplicateInstance(instance.instanceId)+ }}+ aria-label={`Duplicate ${asset?.name ?? instance.objectId}`}+ >+ <Copy size={14} weight="regular" />+ </AppButton>+ <AppButton+ className="h-7 w-7 justify-center text-red-200"+ onClick={(event) => {+ event.stopPropagation()+ controller.deleteInstance(instance.instanceId)+ }}+ aria-label={`Delete ${asset?.name ?? instance.objectId}`}+ >+ <Trash size={14} weight="regular" />+ </AppButton>+ </div>+ </div>+ )+ })}+ {!controller.instances.length && (+ <div className="px-2 py-3 text-xs text-white/45">No object instances in this scene.</div>+ )}+ </div>+ </div>+ </ChromePanel>++ <ChromePanel className="pointer-events-auto min-h-0 overflow-hidden">+ <div className={chrome.sectionHeader}>+ <span>Assets</span>+ <div className="flex items-center gap-1 normal-case tracking-normal">+ <AppButton+ active={controller.assetFilter === 'world'}+ className={`h-7 justify-center ${controller.assetFilter === 'world' ? 'bg-white/15 opacity-100' : ''}`}+ onClick={() => controller.setAssetFilter('world')}+ aria-label="Show this world's objects"+ title="World objects"+ >+ <Cube size={14} weight="regular" />+ World+ </AppButton>+ <AppButton+ active={controller.assetFilter === 'all'}+ className={`h-7 justify-center ${controller.assetFilter === 'all' ? 'bg-white/15 opacity-100' : ''}`}+ onClick={() => controller.setAssetFilter('all')}+ aria-label="Show all objects"+ title="All objects"+ >+ <GlobeSimple size={14} weight="regular" />+ All+ </AppButton>+ </div>+ </div>+ <div className="max-h-[28vh] overflow-y-auto overflow-x-hidden">+ <div className="p-1 pr-2">+ {controller.visibleAssetLibrary.map((asset) => (+ <div+ key={assetKey(asset)}+ className="group flex items-center gap-1 rounded opacity-80 transition-[background-color,opacity] hover:bg-white/10 hover:opacity-100"+ onMouseEnter={() => controller.hoverAsset(asset, true)}+ onMouseLeave={() => controller.hoverAsset(asset, false)}+ >+ <button+ type="button"+ className="min-w-0 flex flex-1 items-center gap-1.5 rounded px-1.5 py-0.5 text-left"+ onClick={() => controller.addAsset(asset)}+ >+ <ChromeThumbnail thumbnailUrl={asset.thumbnailUrl} alt={asset.name} />+ <span className="min-w-0 flex-1">+ <span className="block truncate text-xs text-white/90">{asset.name}</span>+ <span className="block truncate text-[10px] text-white/35">+ {[asset.sourceWorldSlug, asset.variantLabel].filter(Boolean).join(' / ')}+ </span>+ </span>+ </button>+ <AppButton+ className="mr-0.5 h-7 w-7 justify-center opacity-0 group-hover:opacity-100"+ onClick={() => controller.addAsset(asset)}+ aria-label={`Add ${asset.name} to scene`}+ title={`Add ${asset.name}`}+ >+ <Plus size={14} weight="regular" />+ </AppButton>+ </div>+ ))}+ {!controller.visibleAssetLibrary.length && (+ <div className="px-2 py-3 text-xs text-white/45">No object assets found.</div>+ )}+ </div>+ </div>+ </ChromePanel>+ </div>+ </div>+ </div>+ )+}diff --git a/third_party/image-blaster/app/src/modules/scene/SceneObject.tsx b/third_party/image-blaster/app/src/modules/scene/SceneObject.tsxnew file mode 100644index 000000000..f728e9208--- /dev/null+++ b/third_party/image-blaster/app/src/modules/scene/SceneObject.tsx@@ -0,0 +1,307 @@+import { Component, forwardRef, useCallback, useEffect, useImperativeHandle, useMemo, useRef, type ReactNode } from 'react'+import { ThreeEvent, useFrame } from '@react-three/fiber'+import { PositionalAudio } from '@react-three/drei'+import { CuboidCollider, RigidBody, type RapierRigidBody } from '@react-three/rapier'+import * as THREE from 'three'+import { ObjectRenderMode, type WorldObjectAsset, type WorldObjectPhysics } from '../../types/world'+import { useAudioStore } from '../../store/audio'+import { useSceneObjectVisual } from './useSceneObjectVisual'++export const OBJECT_SCALE = 0.5+const OBJECT_AUTO_ROTATE_Y_SPEED = 0.35++const COLLIDER_WIREFRAME_COLOR = 0x00aaff++type PointerHandler = (event: ThreeEvent<PointerEvent>) => boolean+type HoverHandler = (event: ThreeEvent<PointerEvent>, objectId: string, hovering: boolean) => void+type ClickHandler = (worldPos: THREE.Vector3) => void++const _rotation = new THREE.Quaternion()+export const SCENE_OBJECT_INSTANCE_ID_KEY = 'sceneObjectInstanceId'++export interface SceneObjectHandle {+ id: string+ rigidBody: RapierRigidBody | null+ initialPosition: THREE.Vector3+ initialRotation: THREE.Quaternion+ bounds: THREE.Box3+ getFocusPoint: (target: THREE.Vector3) => THREE.Vector3+ playInteractionSfx: () => void+}++interface Props {+ object: WorldObjectAsset+ position: [number, number, number]+ rotation?: [number, number, number]+ scale?: [number, number, number]+ physics?: WorldObjectPhysics+ renderMode: ObjectRenderMode+ autoRotateY?: boolean+ onHover: HoverHandler+ onClick?: ClickHandler+ onPointerDown?: PointerHandler+ onPointerMove?: PointerHandler+ onPointerUp?: PointerHandler+ onPointerCancel?: PointerHandler+}++interface SfxLoadErrorBoundaryProps {+ url: string+ children: ReactNode+}++interface SfxLoadErrorBoundaryState {+ hasError: boolean+}++class SfxLoadErrorBoundary extends Component<SfxLoadErrorBoundaryProps, SfxLoadErrorBoundaryState> {+ state: SfxLoadErrorBoundaryState = { hasError: false }++ static getDerivedStateFromError(): SfxLoadErrorBoundaryState {+ return { hasError: true }+ }++ componentDidCatch(error: unknown) {+ console.warn(`Skipping object SFX "${this.props.url}" because it failed to load.`, error)+ }++ componentDidUpdate(prevProps: SfxLoadErrorBoundaryProps) {+ if (prevProps.url !== this.props.url && this.state.hasError) {+ this.setState({ hasError: false })+ }+ }++ render() {+ if (this.state.hasError) return null+ return this.props.children+ }+}++export const SceneObject = forwardRef<SceneObjectHandle, Props>(function SceneObject(+ {+ object,+ position,+ rotation = [0, 0, 0],+ scale = [1, 1, 1],+ physics = 'rigidbody',+ renderMode,+ autoRotateY = false,+ onHover,+ onClick,+ onPointerDown,+ onPointerMove,+ onPointerUp,+ onPointerCancel,+ },+ ref,+) {+ const rigidBodyRef = useRef<RapierRigidBody>(null)+ const visualGroupRef = useRef<THREE.Group>(null)+ const colliderProxyRef = useRef<THREE.Mesh>(null)+ const sfxRefs = useRef<Array<THREE.PositionalAudio | null>>([])+ const lastSfxIndexRef = useRef<number | null>(null)+ const muted = useAudioStore((s) => s.muted)+ const isStatic = physics === 'static' || physics === 'ghost'+ const usesBoxCollider = physics === 'rigidbody' || physics === 'static'+ const initialPosition = useMemo(() => new THREE.Vector3(...position), [position])+ const initialRotation = useMemo(() => new THREE.Quaternion().setFromEuler(new THREE.Euler(...rotation)), [rotation])+ const { scene, wireframeOverlayScene, offset, size, bounds } = useSceneObjectVisual({+ asset: object,+ renderMode,+ })+ const colliderCenter = useMemo(+ () => new THREE.Vector3(0, (size.y * OBJECT_SCALE) / 2, 0),+ [size],+ )+ const colliderUserData = useMemo(() => ({+ [SCENE_OBJECT_INSTANCE_ID_KEY]: object.id,+ }), [object.id])+ const colliderHalfExtents = useMemo(+ () => new THREE.Vector3(+ Math.max((size.x * OBJECT_SCALE) / 2, 0.01),+ Math.max((size.y * OBJECT_SCALE) / 2, 0.01),+ Math.max((size.z * OBJECT_SCALE) / 2, 0.01),+ ),+ [size],+ )+ const colliderWireframeMaterial = useMemo(() => new THREE.MeshBasicMaterial({+ color: COLLIDER_WIREFRAME_COLOR,+ wireframe: true,+ transparent: true,+ depthTest: false,+ depthWrite: false,+ toneMapped: false,+ fog: false,+ }), [])++ useFrame((_, delta) => {+ if (!autoRotateY || !visualGroupRef.current) return+ visualGroupRef.current.rotation.y += delta * OBJECT_AUTO_ROTATE_Y_SPEED+ })++ useEffect(() => {+ colliderWireframeMaterial.opacity = 0+ colliderWireframeMaterial.transparent = true+ colliderWireframeMaterial.depthTest = false+ colliderWireframeMaterial.depthWrite = false+ colliderWireframeMaterial.needsUpdate = true+ }, [colliderWireframeMaterial])++ useEffect(() => {+ sfxRefs.current.length = object.sfxUrls.length+ }, [object.sfxUrls.length])++ useEffect(() => {+ if (!muted) return+ sfxRefs.current.forEach((sound) => {+ if (!sound) return+ sound.setVolume(0)+ if (sound.isPlaying) sound.stop()+ })+ }, [muted])++ const playRandomSfx = useCallback(() => {+ if (muted || object.sfxUrls.length === 0) return++ const lastIndex = lastSfxIndexRef.current+ let nextIndex = 0+ if (object.sfxUrls.length > 1) {+ nextIndex = Math.floor(Math.random() * (object.sfxUrls.length - 1))+ if (lastIndex !== null && nextIndex >= lastIndex) nextIndex += 1+ }++ const sound = sfxRefs.current[nextIndex]+ if (!sound) return++ lastSfxIndexRef.current = nextIndex+ sound.setVolume(1)+ if (sound.isPlaying) sound.stop()++ const play = () => sound.play()+ if (sound.context.state === 'suspended') {+ sound.context.resume().then(play).catch(() => {})+ return+ }+ play()+ }, [muted, object.sfxUrls.length])++ useEffect(() => {+ const body = rigidBodyRef.current+ if (!body) return+ body.setTranslation({ x: position[0], y: position[1], z: position[2] }, true)+ _rotation.setFromEuler(new THREE.Euler(...rotation))+ body.setRotation({ x: _rotation.x, y: _rotation.y, z: _rotation.z, w: _rotation.w }, true)+ body.setLinvel({ x: 0, y: 0, z: 0 }, true)+ body.setAngvel({ x: 0, y: 0, z: 0 }, true)+ body.wakeUp()+ }, [position, rotation, scale])++ useEffect(() => {+ return () => {+ colliderWireframeMaterial.dispose()+ }+ }, [colliderWireframeMaterial])++ useImperativeHandle(+ ref,+ () => ({+ id: object.id,+ get rigidBody() {+ return rigidBodyRef.current+ },+ initialPosition,+ initialRotation,+ bounds,+ getFocusPoint: (target) => {+ if (colliderProxyRef.current) return colliderProxyRef.current.getWorldPosition(target)+ return target.copy(initialPosition).add(colliderCenter)+ },+ playInteractionSfx: playRandomSfx,+ }),+ [bounds, colliderCenter, initialPosition, initialRotation, object.id, playRandomSfx],+ )++ const visualContent = (+ <group ref={visualGroupRef} scale={[OBJECT_SCALE * scale[0], OBJECT_SCALE * scale[1], OBJECT_SCALE * scale[2]]}>+ <primitive object={scene} position={offset} dispose={null} />+ {renderMode === ObjectRenderMode.ShadedWireframe && (+ <primitive object={wireframeOverlayScene} position={offset} dispose={null} />+ )}+ {object.sfxUrls.map((url, index) => (+ <SfxLoadErrorBoundary key={url} url={url}>+ <PositionalAudio+ ref={(audio) => {+ sfxRefs.current[index] = audio+ }}+ url={url}+ distance={2}+ loop={false}+ />+ </SfxLoadErrorBoundary>+ ))}+ </group>+ )++ return (+ <RigidBody+ ref={rigidBodyRef}+ type={isStatic ? 'fixed' : 'dynamic'}+ colliders={false}+ position={position}+ rotation={rotation}+ linearDamping={0.45}+ angularDamping={0.35}+ additionalSolverIterations={4}+ ccd+ canSleep+ >+ {usesBoxCollider && (+ <CuboidCollider+ args={[+ colliderHalfExtents.x * scale[0],+ colliderHalfExtents.y * scale[1],+ colliderHalfExtents.z * scale[2],+ ]}+ position={[colliderCenter.x * scale[0], colliderCenter.y * scale[1], colliderCenter.z * scale[2]]}+ />+ )}+ <mesh+ ref={colliderProxyRef}+ position={[colliderCenter.x * scale[0], colliderCenter.y * scale[1], colliderCenter.z * scale[2]]}+ material={colliderWireframeMaterial}+ renderOrder={10000}+ userData={colliderUserData}+ onPointerOver={(event) => {+ event.stopPropagation()+ onHover(event, object.id, true)+ }}+ onPointerOut={(event) => {+ event.stopPropagation()+ onHover(event, object.id, false)+ }}+ onClick={(event) => {+ event.stopPropagation()+ onClick?.(event.point.clone())+ }}+ onPointerDown={(event) => {+ if (event.button !== 0) return+ event.stopPropagation()+ if (!onPointerDown?.(event)) playRandomSfx()+ }}+ onPointerMove={(event) => {+ onHover(event, object.id, true)+ onPointerMove?.(event)+ }}+ onPointerUp={onPointerUp}+ onPointerCancel={onPointerCancel}+ >+ <boxGeometry args={[+ colliderHalfExtents.x * scale[0] * 2,+ colliderHalfExtents.y * scale[1] * 2,+ colliderHalfExtents.z * scale[2] * 2,+ ]} />+ </mesh>+ {visualContent}+ </RigidBody>+ )+})diff --git a/third_party/image-blaster/app/src/modules/scene/dropTargets.ts b/third_party/image-blaster/app/src/modules/scene/dropTargets.tsnew file mode 100644index 000000000..366a09854--- /dev/null+++ b/third_party/image-blaster/app/src/modules/scene/dropTargets.ts@@ -0,0 +1 @@+export const DROP_TARGET_LAYER = 2diff --git a/third_party/image-blaster/app/src/modules/scene/placements.ts b/third_party/image-blaster/app/src/modules/scene/placements.tsnew file mode 100644index 000000000..bb48dcb7b--- /dev/null+++ b/third_party/image-blaster/app/src/modules/scene/placements.ts@@ -0,0 +1,36 @@+import type { WorldObjectAsset, WorldObjectPlacement } from '../../types/world'++const GRID_CELL_SIZE = 1+const GRID_MAX_COLUMNS = 3+export const OBJECT_RESET_ORIGIN: [number, number, number] = [0, 0, -2]++export function gridPosition(index: number, total: number): [number, number, number] {+ const columns = Math.min(GRID_MAX_COLUMNS, Math.max(1, total))+ const column = index % columns+ const row = Math.floor(index / columns)++ return [+ OBJECT_RESET_ORIGIN[0] + (column - (columns - 1) / 2) * GRID_CELL_SIZE,+ OBJECT_RESET_ORIGIN[1],+ OBJECT_RESET_ORIGIN[2] + row * -GRID_CELL_SIZE,+ ]+}++export function createDefaultPlacements(objects: WorldObjectAsset[]): WorldObjectPlacement[] {+ return objects.map((object, index) => ({+ instanceId: object.id,+ objectId: object.id,+ assetId: object.assetId,+ physics: 'rigidbody',+ position: gridPosition(index, objects.length),+ rotation: [0, 0, 0],+ scale: [1, 1, 1],+ }))+}++export function getInitialPlacements(+ objects: WorldObjectAsset[],+ savedPlacements?: WorldObjectPlacement[],+): WorldObjectPlacement[] {+ return savedPlacements ?? createDefaultPlacements(objects)+}diff --git a/third_party/image-blaster/app/src/modules/scene/shadows.ts b/third_party/image-blaster/app/src/modules/scene/shadows.tsnew file mode 100644index 000000000..d9d18d85b--- /dev/null+++ b/third_party/image-blaster/app/src/modules/scene/shadows.ts@@ -0,0 +1,10 @@+export const DEFAULT_SHADOW_CATCHER_OPACITY = 0.75+export const DEFAULT_SHADOW_CATCHER_COLOR = '#000000'++export function shadowCatcherOpacity(opacity = DEFAULT_SHADOW_CATCHER_OPACITY) {+ return Math.min(Math.max(opacity, 0), 1)+}++export function shadowCatcherColor(color = DEFAULT_SHADOW_CATCHER_COLOR) {+ return /^#[0-9a-f]{6}$/i.test(color) ? color.toLowerCase() : DEFAULT_SHADOW_CATCHER_COLOR+}diff --git a/third_party/image-blaster/app/src/modules/scene/useAssetMaterials.ts b/third_party/image-blaster/app/src/modules/scene/useAssetMaterials.tsnew file mode 100644index 000000000..7241cd466--- /dev/null+++ b/third_party/image-blaster/app/src/modules/scene/useAssetMaterials.ts@@ -0,0 +1,45 @@+import { useMemo, useEffect } from 'react'+import * as THREE from 'three'++export const SHADED_COLOR = new THREE.Color(0xb8b8b8)++export interface AssetMaterials {+ wireframeMaterial: THREE.MeshBasicMaterial+ shadedMaterial: THREE.MeshStandardMaterial+ wireframeOverlayMaterial: THREE.MeshBasicMaterial+}++export function useAssetMaterials(): AssetMaterials {+ const materials = useMemo<AssetMaterials>(+ () => ({+ wireframeMaterial: new THREE.MeshBasicMaterial({+ color: 0x000000,+ wireframe: true,+ toneMapped: false,+ fog: false,+ }),+ shadedMaterial: new THREE.MeshStandardMaterial({+ color: SHADED_COLOR,+ roughness: 0.75,+ metalness: 0,+ }),+ wireframeOverlayMaterial: new THREE.MeshBasicMaterial({+ color: 0x000000,+ wireframe: true,+ toneMapped: false,+ fog: false,+ }),+ }),+ [],+ )++ useEffect(() => {+ return () => {+ materials.wireframeMaterial.dispose()+ materials.shadedMaterial.dispose()+ materials.wireframeOverlayMaterial.dispose()+ }+ }, [materials])++ return materials+}diff --git a/third_party/image-blaster/app/src/modules/scene/useObjectGrab.ts b/third_party/image-blaster/app/src/modules/scene/useObjectGrab.tsnew file mode 100644index 000000000..6a9650da8--- /dev/null+++ b/third_party/image-blaster/app/src/modules/scene/useObjectGrab.ts@@ -0,0 +1,393 @@+import { useCallback, useEffect, useRef, useState, type RefObject } from 'react'+import { ThreeEvent, useThree } from '@react-three/fiber'+import { type RapierRigidBody, useAfterPhysicsStep, useBeforePhysicsStep, useRapier } from '@react-three/rapier'+import * as THREE from 'three'+import { markObjectInteraction } from '../interaction/pointerGuards'+import { SCENE_OBJECT_INSTANCE_ID_KEY, type SceneObjectHandle } from './SceneObject'++const GRAB_LINEAR_SPEED_LIMIT = 5+const GRAB_ANGULAR_SPEED_LIMIT = 10++type ObjectRefMap = Map<string, RefObject<SceneObjectHandle | null>>++interface UseObjectGrabArgs {+ anchorRef: RefObject<RapierRigidBody | null>+ objectRefs: RefObject<ObjectRefMap>+ isObjectEligible?: (objectId: string) => boolean+}++interface ActiveGrab {+ objectId: string+ body: RapierRigidBody+ pointerId: number+ depth: number+ pointerNdc: THREE.Vector2+ target: THREE.Vector3+ previousTarget: THREE.Vector3+ releaseVelocity: THREE.Vector3+}++const _raycaster = new THREE.Raycaster()+const _grabDepthVector = new THREE.Vector3()+const _bodyPosition = new THREE.Vector3()+const _bodyRotation = new THREE.Quaternion()+const _inverseBodyRotation = new THREE.Quaternion()+const _localAnchor = new THREE.Vector3()+const _bodyLinearVelocity = new THREE.Vector3()+const _bodyAngularVelocity = new THREE.Vector3()+const _objectCenter = new THREE.Vector3()+const _projectedObjectCenter = new THREE.Vector3()+const _zeroVector = { x: 0, y: 0, z: 0 }++interface PointerTarget {+ objectId: string+ handle: SceneObjectHandle+ point: THREE.Vector3+ centerDistanceSq: number+ hitDistance: number+}++function isBodyUsable(body: RapierRigidBody | null | undefined): body is RapierRigidBody {+ if (!body) return false+ try {+ body.translation()+ return true+ } catch {+ return false+ }+}++function vectorLike(vector: THREE.Vector3) {+ return { x: vector.x, y: vector.y, z: vector.z }+}++function quaternionLike(quaternion: THREE.Quaternion) {+ return { x: quaternion.x, y: quaternion.y, z: quaternion.z, w: quaternion.w }+}++function objectIdFromIntersectionObject(object: THREE.Object3D) {+ let current: THREE.Object3D | null = object+ while (current) {+ const objectId = current.userData[SCENE_OBJECT_INSTANCE_ID_KEY]+ if (typeof objectId === 'string') return objectId+ current = current.parent+ }+ return null+}++function centerDistanceSqToPointer(event: ThreeEvent<PointerEvent>, center: THREE.Vector3, camera: THREE.Camera) {+ _projectedObjectCenter.copy(center).project(camera)+ return (+ (_projectedObjectCenter.x - event.pointer.x) ** 2 ++ (_projectedObjectCenter.y - event.pointer.y) ** 2+ )+}++function computePointerNdc(element: HTMLElement, clientX: number, clientY: number) {+ const rect = element.getBoundingClientRect()+ return new THREE.Vector2(+ ((clientX - rect.left) / rect.width) * 2 - 1,+ -((clientY - rect.top) / rect.height) * 2 + 1,+ )+}++function computeLocalAnchor(body: RapierRigidBody, worldPoint: THREE.Vector3) {+ const translation = body.translation()+ const rotation = body.rotation()++ _bodyPosition.set(translation.x, translation.y, translation.z)+ _bodyRotation.set(rotation.x, rotation.y, rotation.z, rotation.w)+ _inverseBodyRotation.copy(_bodyRotation).invert()++ return _localAnchor.copy(worldPoint).sub(_bodyPosition).applyQuaternion(_inverseBodyRotation).clone()+}++function clampBodyVelocity(body: RapierRigidBody) {+ let linear+ let angular+ try {+ linear = body.linvel()+ angular = body.angvel()+ } catch {+ return false+ }+ _bodyLinearVelocity.set(linear.x, linear.y, linear.z)+ if (_bodyLinearVelocity.length() > GRAB_LINEAR_SPEED_LIMIT) {+ _bodyLinearVelocity.setLength(GRAB_LINEAR_SPEED_LIMIT)+ body.setLinvel(vectorLike(_bodyLinearVelocity), true)+ }++ _bodyAngularVelocity.set(angular.x, angular.y, angular.z)+ if (_bodyAngularVelocity.length() > GRAB_ANGULAR_SPEED_LIMIT) {+ _bodyAngularVelocity.setLength(GRAB_ANGULAR_SPEED_LIMIT)+ body.setAngvel(vectorLike(_bodyAngularVelocity), true)+ }+ return true+}++export function useObjectGrab({ anchorRef, objectRefs, isObjectEligible }: UseObjectGrabArgs) {+ const { camera, gl } = useThree()+ const { rapier, world } = useRapier()+ const [activeObjectId, setActiveObjectId] = useState<string | null>(null)+ const activeGrabRef = useRef<ActiveGrab | null>(null)+ const jointRef = useRef<ReturnType<typeof world.createImpulseJoint> | null>(null)+ const mountedRef = useRef(true)++ const setActiveObjectIdSafe = useCallback((objectId: string | null) => {+ if (mountedRef.current) setActiveObjectId(objectId)+ }, [])++ const removeJoint = useCallback(() => {+ const joint = jointRef.current+ if (!joint) return+ jointRef.current = null+ try {+ world.removeImpulseJoint(joint, true)+ } catch {+ // The Rapier world may already be unloading; stale joints can be ignored.+ }+ }, [world])++ const updatePointerTarget = useCallback(+ (grab: ActiveGrab) => {+ _raycaster.setFromCamera(grab.pointerNdc, camera)+ grab.target.copy(_raycaster.ray.origin).addScaledVector(_raycaster.ray.direction, grab.depth)+ },+ [camera],+ )++ const endGrab = useCallback(() => {+ const activeGrab = activeGrabRef.current+ if (!activeGrab) return++ removeJoint()++ if (isBodyUsable(activeGrab.body)) {+ const releaseVelocity = activeGrab.releaseVelocity.clone()+ if (releaseVelocity.length() > GRAB_LINEAR_SPEED_LIMIT) {+ releaseVelocity.setLength(GRAB_LINEAR_SPEED_LIMIT)+ }+ activeGrab.body.setLinvel(vectorLike(releaseVelocity), true)+ clampBodyVelocity(activeGrab.body)+ activeGrab.body.wakeUp()+ }++ try {+ if (gl.domElement.hasPointerCapture(activeGrab.pointerId)) {+ gl.domElement.releasePointerCapture(activeGrab.pointerId)+ }+ } catch {+ // Pointer capture may already be gone during canvas or route teardown.+ }++ activeGrabRef.current = null+ setActiveObjectIdSafe(null)+ markObjectInteraction()+ }, [gl.domElement, removeJoint, setActiveObjectIdSafe])++ const beginGrab = useCallback(+ (objectId: string, handle: SceneObjectHandle, pointerId: number, clientX: number, clientY: number, worldPoint: THREE.Vector3) => {+ const body = handle.rigidBody+ const anchor = anchorRef.current+ if (!isBodyUsable(body) || !isBodyUsable(anchor)) return++ endGrab()++ const pointerNdc = computePointerNdc(gl.domElement, clientX, clientY)+ _raycaster.setFromCamera(pointerNdc, camera)+ const depth = Math.max(_grabDepthVector.copy(worldPoint).sub(_raycaster.ray.origin).dot(_raycaster.ray.direction), 0.1)++ anchor.setTranslation(vectorLike(worldPoint), true)+ anchor.setNextKinematicTranslation(vectorLike(worldPoint))+ if (!clampBodyVelocity(body)) return+ body.wakeUp()++ const bodyAnchor = computeLocalAnchor(body, worldPoint)+ try {+ jointRef.current = world.createImpulseJoint(+ rapier.JointData.spherical(_zeroVector, vectorLike(bodyAnchor)),+ anchor,+ body,+ true,+ )+ } catch (error) {+ console.warn(`Could not create grab joint for "${objectId}".`, error)+ return+ }++ try {+ if (!gl.domElement.hasPointerCapture(pointerId)) {+ gl.domElement.setPointerCapture(pointerId)+ }+ } catch {+ removeJoint()+ return+ }++ activeGrabRef.current = {+ objectId,+ body,+ pointerId,+ depth,+ pointerNdc,+ target: worldPoint.clone(),+ previousTarget: worldPoint.clone(),+ releaseVelocity: new THREE.Vector3(),+ }+ setActiveObjectIdSafe(objectId)+ },+ [anchorRef, camera, endGrab, gl.domElement, rapier.JointData, removeJoint, setActiveObjectIdSafe, world],+ )++ const getPointerTarget = useCallback(+ (fallbackObjectId: string, event: ThreeEvent<PointerEvent>): PointerTarget | null => {+ const seenObjectIds = new Set<string>()+ let best: PointerTarget | null = null++ for (const intersection of event.intersections) {+ const objectId = objectIdFromIntersectionObject(intersection.object)+ if (!objectId || seenObjectIds.has(objectId)) continue+ seenObjectIds.add(objectId)+ if (isObjectEligible && !isObjectEligible(objectId)) continue++ const handle = objectRefs.current.get(objectId)?.current+ if (!handle || !isBodyUsable(handle.rigidBody)) continue++ const centerDistanceSq = centerDistanceSqToPointer(event, handle.getFocusPoint(_objectCenter), camera)+ const hitDistance = Number.isFinite(intersection.distance) ? intersection.distance : Number.POSITIVE_INFINITY+ if (+ !best ||+ centerDistanceSq < best.centerDistanceSq ||+ (centerDistanceSq === best.centerDistanceSq && hitDistance < best.hitDistance)+ ) {+ best = {+ objectId,+ handle,+ point: intersection.point.clone(),+ centerDistanceSq,+ hitDistance,+ }+ }+ }++ if (best) return best+ if (isObjectEligible && !isObjectEligible(fallbackObjectId)) return null++ const fallbackHandle = objectRefs.current.get(fallbackObjectId)?.current+ if (!fallbackHandle || !isBodyUsable(fallbackHandle.rigidBody)) return null+ return {+ objectId: fallbackObjectId,+ handle: fallbackHandle,+ point: event.point.clone(),+ centerDistanceSq: centerDistanceSqToPointer(event, fallbackHandle.getFocusPoint(_objectCenter), camera),+ hitDistance: event.distance,+ }+ },+ [camera, isObjectEligible, objectRefs],+ )++ const onPointerDown = useCallback(+ (objectId: string, event: ThreeEvent<PointerEvent>) => {+ if (event.button !== 0) return false+ const target = getPointerTarget(objectId, event)+ if (!target) return false++ event.stopPropagation()+ event.nativeEvent.preventDefault()+ markObjectInteraction()+ target.handle.playInteractionSfx()+ beginGrab(target.objectId, target.handle, event.pointerId, event.clientX, event.clientY, target.point)+ return true+ },+ [beginGrab, getPointerTarget],+ )++ const resetObjects = useCallback(() => {+ endGrab()+ for (const objectRef of objectRefs.current.values()) {+ const handle = objectRef.current+ const body = handle?.rigidBody+ if (!handle || !isBodyUsable(body)) continue++ body.setTranslation(vectorLike(handle.initialPosition), true)+ body.setRotation(quaternionLike(handle.initialRotation), true)+ body.setLinvel(_zeroVector, true)+ body.setAngvel(_zeroVector, true)+ body.wakeUp()+ }+ }, [endGrab, objectRefs])++ useBeforePhysicsStep((physicsWorld) => {+ const activeGrab = activeGrabRef.current+ const anchor = anchorRef.current+ if (!activeGrab) return+ if (!isBodyUsable(anchor) || !isBodyUsable(activeGrab.body)) {+ removeJoint()+ activeGrabRef.current = null+ setActiveObjectIdSafe(null)+ return+ }++ updatePointerTarget(activeGrab)+ const dt = physicsWorld.timestep || 1 / 60+ activeGrab.releaseVelocity.copy(activeGrab.target).sub(activeGrab.previousTarget).divideScalar(dt)+ if (activeGrab.releaseVelocity.length() > GRAB_LINEAR_SPEED_LIMIT) {+ activeGrab.releaseVelocity.setLength(GRAB_LINEAR_SPEED_LIMIT)+ }+ activeGrab.previousTarget.copy(activeGrab.target)+ anchor.setNextKinematicTranslation(vectorLike(activeGrab.target))+ clampBodyVelocity(activeGrab.body)+ })++ useAfterPhysicsStep(() => {+ const activeGrab = activeGrabRef.current+ if (!activeGrab) return+ if (!isBodyUsable(activeGrab.body)) {+ removeJoint()+ activeGrabRef.current = null+ setActiveObjectIdSafe(null)+ return+ }+ clampBodyVelocity(activeGrab.body)+ })++ useEffect(() => {+ mountedRef.current = true++ const onPointerMove = (event: PointerEvent) => {+ const activeGrab = activeGrabRef.current+ if (activeGrab && event.pointerId === activeGrab.pointerId) {+ activeGrab.pointerNdc.copy(computePointerNdc(gl.domElement, event.clientX, event.clientY))+ event.preventDefault()+ return+ }++ }++ const onPointerEnd = (event: PointerEvent) => {+ if (activeGrabRef.current?.pointerId === event.pointerId) {+ event.preventDefault()+ endGrab()+ }+ }++ window.addEventListener('pointermove', onPointerMove, { capture: true, passive: false })+ window.addEventListener('pointerup', onPointerEnd, { capture: true, passive: false })+ window.addEventListener('pointercancel', onPointerEnd, { capture: true, passive: false })+ return () => {+ window.removeEventListener('pointermove', onPointerMove, { capture: true })+ window.removeEventListener('pointerup', onPointerEnd, { capture: true })+ window.removeEventListener('pointercancel', onPointerEnd, { capture: true })+ endGrab()+ mountedRef.current = false+ }+ }, [endGrab, gl.domElement])++ return {+ activeObjectId,+ activeGrabRef,+ cancelGrab: endGrab,+ onPointerDown,+ resetObjects,+ }+}diff --git a/third_party/image-blaster/app/src/modules/scene/useSceneObjectVisual.ts b/third_party/image-blaster/app/src/modules/scene/useSceneObjectVisual.tsnew file mode 100644index 000000000..1e6661473--- /dev/null+++ b/third_party/image-blaster/app/src/modules/scene/useSceneObjectVisual.ts@@ -0,0 +1,111 @@+import { useEffect, useMemo } from 'react'+import { useLoader } from '@react-three/fiber'+import * as THREE from 'three'+import { GLTFLoader } from 'three/examples/jsm/loaders/GLTFLoader.js'+import { clone as cloneSkeleton } from 'three/examples/jsm/utils/SkeletonUtils.js'+import { ObjectRenderMode, type WorldObjectAsset } from '../../types/world'+import { SHADED_COLOR, useAssetMaterials } from './useAssetMaterials'++interface MeshMaterialState {+ mesh: THREE.Mesh+ litMaterials: THREE.Material | THREE.Material[]+}++interface SceneObjectVisualArgs {+ asset: WorldObjectAsset+ renderMode: ObjectRenderMode+}++const ignoreRaycast: THREE.Object3D['raycast'] = () => {}++function cloneMaterial(material: THREE.Material | THREE.Material[]): THREE.Material | THREE.Material[] {+ if (Array.isArray(material)) return material.map((m) => m.clone())+ return material.clone()+}++function asMaterialArray(material: THREE.Material | THREE.Material[]) {+ return Array.isArray(material) ? material : [material]+}++export function useSceneObjectVisual({ asset, renderMode }: SceneObjectVisualArgs) {+ const gltf = useLoader(GLTFLoader, asset.url)+ const { wireframeMaterial, shadedMaterial, wireframeOverlayMaterial } = useAssetMaterials()++ const { scene, wireframeOverlayScene, offset, size, bounds, materialStates } = useMemo(() => {+ const clonedScene = cloneSkeleton(gltf.scene)+ const overlayScene = cloneSkeleton(gltf.scene)+ const states: MeshMaterialState[] = []++ clonedScene.traverse((child) => {+ if (!(child instanceof THREE.Mesh)) return+ child.castShadow = true+ child.receiveShadow = true+ child.raycast = ignoreRaycast++ const litMaterials = cloneMaterial(child.material)+ child.material = litMaterials+ states.push({ mesh: child, litMaterials })+ })++ const box = new THREE.Box3().setFromObject(clonedScene)+ const center = new THREE.Vector3()+ const size = new THREE.Vector3()+ box.getCenter(center)+ box.getSize(size)++ overlayScene.traverse((child) => {+ if (!(child instanceof THREE.Mesh)) return+ child.raycast = ignoreRaycast+ })++ return {+ scene: clonedScene,+ wireframeOverlayScene: overlayScene,+ offset: new THREE.Vector3(-center.x, -box.min.y, -center.z),+ size,+ bounds: box.clone(),+ materialStates: states,+ }+ }, [gltf.scene])++ useEffect(() => {+ wireframeOverlayScene.traverse((child) => {+ if (!(child instanceof THREE.Mesh)) return+ child.material = wireframeOverlayMaterial+ child.renderOrder = 1+ child.raycast = ignoreRaycast+ })+ }, [wireframeOverlayMaterial, wireframeOverlayScene])++ useEffect(() => {+ if (renderMode === ObjectRenderMode.ShadedWireframe) {+ shadedMaterial.color.copy(SHADED_COLOR)+ }++ for (const state of materialStates) {+ if (renderMode === ObjectRenderMode.Wireframe) {+ state.mesh.material = wireframeMaterial+ continue+ }++ if (renderMode === ObjectRenderMode.ShadedWireframe) {+ state.mesh.material = shadedMaterial+ continue+ }++ state.mesh.material = state.litMaterials+ }+ }, [materialStates, renderMode, shadedMaterial, wireframeMaterial])++ useEffect(() => {+ return () => {+ for (const state of materialStates) {+ for (const material of asMaterialArray(state.litMaterials)) {+ material.dispose()+ }+ }+ }+ }, [materialStates])++ return { scene, wireframeOverlayScene, offset, size, bounds }+}diff --git a/third_party/image-blaster/app/src/modules/scene/useSceneProject.ts b/third_party/image-blaster/app/src/modules/scene/useSceneProject.tsnew file mode 100644index 000000000..00f735865--- /dev/null+++ b/third_party/image-blaster/app/src/modules/scene/useSceneProject.ts@@ -0,0 +1,50 @@+import { useCallback, useEffect, useState } from 'react'+import type { WorldSceneProject } from '../../types/world'++export function useSceneProject(slug: string, refreshKey: string, bundledSceneProject?: WorldSceneProject) {+ const [sceneProject, setSceneProject] = useState<WorldSceneProject | undefined>(+ import.meta.env.DEV ? undefined : bundledSceneProject,+ )+ const [ready, setReady] = useState(!import.meta.env.DEV)++ useEffect(() => {+ if (!import.meta.env.DEV) {+ setSceneProject(bundledSceneProject)+ setReady(true)+ return+ }++ let cancelled = false+ setReady(false)+ setSceneProject(undefined)++ fetch(`/__scene-project?slug=${encodeURIComponent(slug)}`, { cache: 'no-store' })+ .then(async (response) => {+ if (response.ok) return response.json() as Promise<WorldSceneProject>+ if (response.status === 404) return undefined+ throw new Error(await response.text())+ })+ .then((project) => {+ if (cancelled) return+ setSceneProject(project)+ setReady(true)+ })+ .catch((error) => {+ if (cancelled) return+ console.warn(`Could not read scene project for "${slug}".`, error)+ setSceneProject(undefined)+ setReady(true)+ })++ return () => {+ cancelled = true+ }+ }, [bundledSceneProject, refreshKey, slug])++ const updateSceneProject = useCallback((project: WorldSceneProject) => {+ setSceneProject(project)+ setReady(true)+ }, [])++ return { sceneProject, sceneProjectReady: ready, updateSceneProject }+}diff --git a/third_party/image-blaster/app/src/modules/splat/SplatRenderer.tsx b/third_party/image-blaster/app/src/modules/splat/SplatRenderer.tsxnew file mode 100644index 000000000..a23ce4cfa--- /dev/null+++ b/third_party/image-blaster/app/src/modules/splat/SplatRenderer.tsx@@ -0,0 +1,113 @@+import { useMemo, useRef, useEffect } from 'react'+import { extend, useThree, useFrame } from '@react-three/fiber'+import { SplatMesh, SparkRenderer } from '@sparkjsdev/spark'+import * as THREE from 'three'+import { useDebugStore } from '../../store/debug'+import { ViewerQuality } from '../../types/world'++// Patch Spark's default vertex shader to swap the linear thin-lens CoC formula+// for a configurable curve: zero blur within `sharpRange` of the focal plane,+// then exponential growth at `falloffRate` per world unit beyond it. The+// existing `apertureAngle` uniform stays as the overall blur strength.+const ORIGINAL_FOCUS_BLUR =+ 'float focusBlur = abs((-viewCenter.z - focalDistance) / viewCenter.z);'+const CUSTOM_FOCUS_BLUR = `float dist = -viewCenter.z;+ float diff = abs(dist - focalDistance);+ float beyond = max(0.0, diff - sharpRange);+ float focusBlur = exp(beyond * falloffRate) - 1.0;`+const APERTURE_DECL = 'uniform float apertureAngle;'+const APERTURE_DECL_PLUS = `uniform float apertureAngle;+uniform float sharpRange;+uniform float falloffRate;`+const DEFAULT_SHARP_RANGE = 2+const DEFAULT_FALLOFF_RATE = 0.3++const SparkRendererEl = extend(SparkRenderer)+const SplatMeshEl = extend(SplatMesh)+const ignoreRaycast: THREE.Object3D['raycast'] = () => {}++interface Props {+ url: string+ visible?: boolean+ groundPlaneOffset?: number+ flipY?: boolean+ metricScaleFactor?: number+}+++export function SplatRenderer({+ url,+ visible = true,+ groundPlaneOffset = 0,+ flipY,+ metricScaleFactor = 1,+}: Props) {+ const renderer = useThree((state) => state.gl)+ const viewerQuality = useDebugStore((s) => s.viewerQuality)+ const splatRef = useRef<SplatMesh>(null)+ const sparkRef = useRef<SparkRenderer>(null)+ const encodeLinear = viewerQuality === ViewerQuality.High+ const initialEncodeLinear = useRef(encodeLinear)++ // Patch the SparkRenderer's vertex shader once to add our custom CoC curve+ // and inject `sharpRange` / `falloffRate` uniforms.+ useEffect(() => {+ const spark = sparkRef.current+ if (!spark) return+ const mat = spark.material+ // eslint-disable-next-line @typescript-eslint/no-explicit-any+ const u = mat.uniforms as any+ if (!u.sharpRange) u.sharpRange = { value: DEFAULT_SHARP_RANGE }+ if (!u.falloffRate) u.falloffRate = { value: DEFAULT_FALLOFF_RATE }+ if (!mat.vertexShader.includes('uniform float sharpRange;')) {+ mat.vertexShader = mat.vertexShader+ .replace(APERTURE_DECL, APERTURE_DECL_PLUS)+ .replace(ORIGINAL_FOCUS_BLUR, CUSTOM_FOCUS_BLUR)+ mat.needsUpdate = true+ }+ }, [])++ useFrame(() => {+ const spark = sparkRef.current+ if (!spark) return+ const s = useDebugStore.getState()+ // eslint-disable-next-line @typescript-eslint/no-explicit-any+ const u = spark.material.uniforms as any+ if (s.viewerQuality === ViewerQuality.High && s.dofEnabled) {+ spark.focalDistance = s.focalDistance+ spark.apertureAngle = s.apertureAngle+ spark.falloff = s.falloff+ if (u.sharpRange) u.sharpRange.value = Number.isFinite(s.sharpRange) ? s.sharpRange : DEFAULT_SHARP_RANGE+ if (u.falloffRate) u.falloffRate.value = s.falloffRate > 0 ? s.falloffRate : DEFAULT_FALLOFF_RATE+ } else {+ spark.focalDistance = 0+ spark.apertureAngle = 0+ spark.falloff = 1+ }+ })++ useEffect(() => {+ if (splatRef.current) splatRef.current.raycast = ignoreRaycast+ if (sparkRef.current) sparkRef.current.raycast = ignoreRaycast+ }, [])++ useEffect(() => {+ if (sparkRef.current) sparkRef.current.encodeLinear = encodeLinear+ }, [encodeLinear])++ const sparkArgs = useMemo(() => ({ renderer, enableLod: true, encodeLinear: initialEncodeLinear.current }), [renderer])+ const splatArgs = useMemo(+ () => ({+ url,+ }),+ [url],+ )++ return (+ <SparkRendererEl ref={sparkRef} args={[sparkArgs]} visible={visible}>+ <group position={[0, groundPlaneOffset, 0]} rotation={[flipY ? Math.PI : 0, 0, 0]} scale={metricScaleFactor}>+ <SplatMeshEl ref={splatRef} args={[splatArgs]} />+ </group>+ </SparkRendererEl>+ )+}diff --git a/third_party/image-blaster/app/src/skills.test.ts b/third_party/image-blaster/app/src/skills.test.tsnew file mode 100644index 000000000..af16a6649--- /dev/null+++ b/third_party/image-blaster/app/src/skills.test.ts@@ -0,0 +1,31 @@+import { describe, it, expect } from 'vitest'+import fs from 'fs'+import path from 'path'++const skillsDir = path.resolve(__dirname, '../../.claude/skills')++describe('skills', () => {+ it('skills directory exists and contains skill subdirectories', () => {+ expect(fs.existsSync(skillsDir)).toBe(true)+ const dirs = fs.readdirSync(skillsDir).filter((f) =>+ fs.statSync(path.join(skillsDir, f)).isDirectory(),+ )+ expect(dirs.length).toBeGreaterThan(0)+ })++ it('each skill has a SKILL.md with a # title and ## Instructions or ## Steps section', () => {+ const dirs = fs.readdirSync(skillsDir).filter((f) =>+ fs.statSync(path.join(skillsDir, f)).isDirectory(),+ )+ for (const dir of dirs) {+ const skillFile = path.join(skillsDir, dir, 'SKILL.md')+ expect(fs.existsSync(skillFile), `${dir}/SKILL.md missing`).toBe(true)+ const content = fs.readFileSync(skillFile, 'utf-8')+ const hasTitle = /^# .+/m.test(content) || /^name:\s*.+/m.test(content)+ expect(hasTitle, `${dir}: missing # title or name: frontmatter`).toBe(true)+ const hasInstructions = /^## Instructions/m.test(content)+ const hasSteps = /^## Steps/m.test(content)+ expect(hasInstructions || hasSteps, `${dir}: missing ## Instructions or ## Steps`).toBe(true)+ }+ })+})diff --git a/third_party/image-blaster/app/src/store/audio.ts b/third_party/image-blaster/app/src/store/audio.tsnew file mode 100644index 000000000..c6e7fa643--- /dev/null+++ b/third_party/image-blaster/app/src/store/audio.ts@@ -0,0 +1,19 @@+import { create } from 'zustand'+import { persist } from 'zustand/middleware'++interface AudioStore {+ muted: boolean+ setMuted: (v: boolean) => void+ toggleMuted: () => void+}++export const useAudioStore = create<AudioStore>()(+ persist(+ (set, get) => ({+ muted: false,+ setMuted: (muted) => set({ muted }),+ toggleMuted: () => set({ muted: !get().muted }),+ }),+ { name: 'image-blaster-audio' },+ ),+)diff --git a/third_party/image-blaster/app/src/store/debug.ts b/third_party/image-blaster/app/src/store/debug.tsnew file mode 100644index 000000000..83d6c2c2d--- /dev/null+++ b/third_party/image-blaster/app/src/store/debug.ts@@ -0,0 +1,165 @@+import { create } from 'zustand'+import { persist } from 'zustand/middleware'+import { ObjectRenderMode, ViewerQuality, WorldRenderMode } from '../types/world'++export type ControllerMode = 'fly' | 'fps'++function defaultViewerQuality() {+ if (typeof window === 'undefined') return ViewerQuality.High+ const mobileQuery = '(hover: none), (pointer: coarse), (max-width: 767px)'+ return window.matchMedia(mobileQuery).matches ? ViewerQuality.Low : ViewerQuality.High+}++interface DebugStore {+ viewerQuality: ViewerQuality+ setViewerQuality: (v: ViewerQuality) => void+ worldRenderMode: WorldRenderMode+ setWorldRenderMode: (v: WorldRenderMode) => void+ objectRenderMode: ObjectRenderMode+ setObjectRenderMode: (v: ObjectRenderMode) => void+ objectResetToken: number+ controllerResetToken: number+ resetObjects: () => void+ showOrigin: boolean+ setShowOrigin: (v: boolean) => void+ butterfliesEnabled: boolean+ setButterfliesEnabled: (v: boolean) => void+ controllerMode: ControllerMode+ setControllerMode: (v: ControllerMode) => void+ flyMouseSensitivity: number+ setFlyMouseSensitivity: (v: number) => void+ // Splat depth-of-field (Spark 2.0 built-in DoF + circle-bokeh via flat falloff)+ dofEnabled: boolean+ setDofEnabled: (v: boolean) => void+ focalDistance: number+ setFocalDistance: (v: number) => void+ apertureAngle: number+ setApertureAngle: (v: number) => void+ falloff: number+ setFalloff: (v: number) => void+ // Custom DoF curve: 0 within sharpRange of focal plane, exp growth beyond.+ sharpRange: number+ setSharpRange: (v: number) => void+ falloffRate: number+ setFalloffRate: (v: number) => void+ // Post-processing+ bloomEnabled: boolean+ setBloomEnabled: (v: boolean) => void+ bloomIntensity: number+ setBloomIntensity: (v: number) => void+ bloomThreshold: number+ setBloomThreshold: (v: number) => void+ chromaticEnabled: boolean+ setChromaticEnabled: (v: boolean) => void+ chromaticOffset: number+ setChromaticOffset: (v: number) => void+ motionBlurEnabled: boolean+ setMotionBlurEnabled: (v: boolean) => void+ motionBlurStrength: number+ setMotionBlurStrength: (v: number) => void+ // Lighting+ environmentIntensity: number+ setEnvironmentIntensity: (v: number) => void+ sunIntensity: number+ setSunIntensity: (v: number) => void+ sunColor: string+ setSunColor: (v: string) => void+ levaCollapsed: boolean+ setLevaCollapsed: (v: boolean) => void+}++export const useDebugStore = create<DebugStore>()(+ persist(+ (set) => ({+ viewerQuality: defaultViewerQuality(),+ setViewerQuality: (viewerQuality) => set({ viewerQuality }),+ worldRenderMode: WorldRenderMode.Combined,+ setWorldRenderMode: (worldRenderMode) => set({ worldRenderMode }),+ objectRenderMode: ObjectRenderMode.Lit,+ setObjectRenderMode: (objectRenderMode) => set({ objectRenderMode }),+ objectResetToken: 0,+ controllerResetToken: 0,+ resetObjects: () => set((s) => ({+ objectResetToken: s.objectResetToken + 1,+ controllerResetToken: s.controllerResetToken + 1,+ })),+ showOrigin: false,+ setShowOrigin: (showOrigin) => set({ showOrigin }),+ butterfliesEnabled: false,+ setButterfliesEnabled: (butterfliesEnabled) => set({ butterfliesEnabled }),+ controllerMode: 'fly' as ControllerMode,+ setControllerMode: (controllerMode) => set({ controllerMode }),+ flyMouseSensitivity: 0.003,+ setFlyMouseSensitivity: (flyMouseSensitivity) => set({ flyMouseSensitivity }),+ dofEnabled: true,+ setDofEnabled: (dofEnabled) => set({ dofEnabled }),+ focalDistance: 5,+ setFocalDistance: (focalDistance) => set({ focalDistance }),+ apertureAngle: 0.01,+ setApertureAngle: (apertureAngle) => set({ apertureAngle }),+ falloff: 1,+ setFalloff: (falloff) => set({ falloff }),+ sharpRange: 0,+ setSharpRange: (sharpRange) => set({ sharpRange }),+ falloffRate: 0.01,+ setFalloffRate: (falloffRate) => set({ falloffRate }),+ bloomEnabled: true,+ setBloomEnabled: (bloomEnabled) => set({ bloomEnabled }),+ bloomIntensity: 0.4,+ setBloomIntensity: (bloomIntensity) => set({ bloomIntensity }),+ bloomThreshold: 0.85,+ setBloomThreshold: (bloomThreshold) => set({ bloomThreshold }),+ chromaticEnabled: false,+ setChromaticEnabled: (chromaticEnabled) => set({ chromaticEnabled }),+ chromaticOffset: 0.0008,+ setChromaticOffset: (chromaticOffset) => set({ chromaticOffset }),+ motionBlurEnabled: true,+ setMotionBlurEnabled: (motionBlurEnabled) => set({ motionBlurEnabled }),+ motionBlurStrength: 0.3,+ setMotionBlurStrength: (motionBlurStrength) => set({ motionBlurStrength }),+ environmentIntensity: 2,+ setEnvironmentIntensity: (environmentIntensity) => set({ environmentIntensity }),+ sunIntensity: 1,+ setSunIntensity: (sunIntensity) => set({ sunIntensity }),+ sunColor: '#ffffff',+ setSunColor: (sunColor) => set({ sunColor }),+ levaCollapsed: false,+ setLevaCollapsed: (levaCollapsed) => set({ levaCollapsed }),+ }),+ {+ name: 'image-blaster-debug',+ version: 11,+ migrate: (persisted, version) => {+ if (!persisted || typeof persisted !== 'object') return persisted+ const state = persisted as Record<string, unknown>+ if (state.controllerMode === 'butterfly') state.controllerMode = 'fly'+ if (version < 10) state.butterfliesEnabled = true+ delete state.hotReloadEnabled+ return state+ },+ // Persist user-facing viewer controls so the Leva/debug panel survives reloads.+ partialize: (s) => ({+ viewerQuality: s.viewerQuality,+ worldRenderMode: s.worldRenderMode,+ objectRenderMode: s.objectRenderMode,+ butterfliesEnabled: s.butterfliesEnabled,+ controllerMode: s.controllerMode,+ flyMouseSensitivity: s.flyMouseSensitivity,+ dofEnabled: s.dofEnabled,+ focalDistance: s.focalDistance,+ apertureAngle: s.apertureAngle,+ falloff: s.falloff,+ sharpRange: s.sharpRange,+ falloffRate: s.falloffRate,+ bloomEnabled: s.bloomEnabled,+ bloomIntensity: s.bloomIntensity,+ bloomThreshold: s.bloomThreshold,+ chromaticEnabled: s.chromaticEnabled,+ chromaticOffset: s.chromaticOffset,+ motionBlurEnabled: s.motionBlurEnabled,+ motionBlurStrength: s.motionBlurStrength,+ levaCollapsed: s.levaCollapsed,+ }),+ },+ ),+)diff --git a/third_party/image-blaster/app/src/types/virtual-worlds.d.ts b/third_party/image-blaster/app/src/types/virtual-worlds.d.tsnew file mode 100644index 000000000..c6bf8e042--- /dev/null+++ b/third_party/image-blaster/app/src/types/virtual-worlds.d.ts@@ -0,0 +1,5 @@+declare module 'virtual:worlds' {+ import type { WorldEntry } from './world'+ const worlds: WorldEntry[]+ export default worlds+}diff --git a/third_party/image-blaster/app/src/types/world.ts b/third_party/image-blaster/app/src/types/world.tsnew file mode 100644index 000000000..5b75fd798--- /dev/null+++ b/third_party/image-blaster/app/src/types/world.ts@@ -0,0 +1,137 @@+export interface WorldAssets {+ mesh: { collider_mesh_url: string }+ imagery: { pano_url: string }+ splats: {+ spz_urls: {+ '500k'?: string+ '100k'?: string+ '150k'?: string+ full_res?: string+ }+ semantics_metadata: {+ metric_scale_factor: number+ ground_plane_offset: number+ flip_y?: boolean+ }+ }+ thumbnail_url: string+ caption: string+}++export interface World {+ world_id: string+ display_name: string+ assets: WorldAssets+ world_marble_url: string+ tags: string[] | null+ world_prompt: string | null+ created_at: string | null+ updated_at: string | null+}++export interface WorldProject {+ slug: string+ display_name?: string+ created_at?: string+ updated_at?: string+ notes?: string+}++export interface WorldObjectAsset {+ id: string+ assetId: string+ sourceWorldSlug: string+ baseObjectId: string+ index?: number+ variantLabel?: string+ fileName?: string+ name: string+ url: string+ referenceImageUrl?: string+ thumbnailUrl?: string+ sfxUrls: string[]+ complete: boolean+ status?: string+}++export type Vec3Tuple = [number, number, number]+export type WorldObjectPhysics = 'rigidbody' | 'static' | 'ghost'++export interface WorldObjectPlacement {+ instanceId: string+ objectId: string+ assetId?: string+ physics?: WorldObjectPhysics+ position: Vec3Tuple+ rotation: Vec3Tuple+ scale: Vec3Tuple+}++export interface WorldSceneSun {+ intensity: number+ rotation: Vec3Tuple+ environmentIntensity?: number+}++export interface WorldSceneProject {+ version: 1+ instances: WorldObjectPlacement[]+ sun?: WorldSceneSun+ metricScaleFactor?: number+ groundPlaneOffset?: number+ groundPlaneColliderEnabled?: boolean+ shadowCatcherOpacity?: number+ shadowCatcherColor?: string+}++export interface WorldVersion {+ index: number+ label: string+ world?: World+ plateImageUrl?: string+ complete: boolean+ status?: string+}++export interface SourceImageVersion {+ url: string+ label: string+ fileName: string+ index?: number+}++export interface WorldHoverPreview {+ slug: string+ imageUrl?: string+ alt: string+}++export interface WorldEntry {+ slug: string+ project: WorldProject+ world?: World+ worldVersions: WorldVersion[]+ objectAssets: WorldObjectAsset[]+ allObjectAssets: WorldObjectAsset[]+ sourceImageUrl?: string+ sourceImageVersions: SourceImageVersion[]+ worldSfxUrls: string[]+ sceneProject?: WorldSceneProject+}++export enum WorldRenderMode {+ SplatOnly = 'splat-only',+ ObjectOnly = 'object-only',+ Combined = 'combined',+}++export enum ObjectRenderMode {+ Lit = 'lit',+ Wireframe = 'wireframe',+ ShadedWireframe = 'shaded-wireframe',+}++export enum ViewerQuality {+ Low = 'low',+ High = 'high',+}diff --git a/third_party/image-blaster/app/src/utils/dom.ts b/third_party/image-blaster/app/src/utils/dom.tsnew file mode 100644index 000000000..4abd2cb1b--- /dev/null+++ b/third_party/image-blaster/app/src/utils/dom.ts@@ -0,0 +1,7 @@+export function isEditableTarget(target: EventTarget | null) {+ if (!(target instanceof HTMLElement)) return false+ return target instanceof HTMLInputElement+ || target instanceof HTMLTextAreaElement+ || target instanceof HTMLSelectElement+ || target.isContentEditable+}diff --git a/third_party/image-blaster/app/src/utils/worldLoader.test.ts b/third_party/image-blaster/app/src/utils/worldLoader.test.tsnew file mode 100644index 000000000..3414dc995--- /dev/null+++ b/third_party/image-blaster/app/src/utils/worldLoader.test.ts@@ -0,0 +1,118 @@+import { describe, it, expect, vi } from 'vitest'+import { type World, type WorldEntry } from '../types/world'++const exampleWorld: World = {+ world_id: 'test-id',+ display_name: 'Example World',+ world_marble_url: '',+ tags: null,+ world_prompt: null,+ created_at: null,+ updated_at: null,+ assets: {+ imagery: { pano_url: '/worlds/example/output/world/0-world-pano.png' },+ mesh: { collider_mesh_url: '/worlds/example/output/world/0-world.glb' },+ splats: {+ spz_urls: {+ '500k': '/worlds/example/output/world/0-world-500k.spz',+ '150k': '/worlds/example/output/world/0-world-150k.spz',+ },+ semantics_metadata: { metric_scale_factor: 1.0, ground_plane_offset: 0.5 },+ },+ thumbnail_url: '/worlds/example/output/world/0-world-thumbnail.webp',+ caption: 'A test world',+ },+}++const exampleEntry: WorldEntry = {+ slug: 'example',+ project: { slug: 'example', display_name: 'Example World' },+ objectAssets: [],+ allObjectAssets: [],+ worldSfxUrls: [],+ sourceImageVersions: [],+ world: exampleWorld,+ worldVersions: [{+ index: 0,+ label: 'v0',+ complete: true,+ world: exampleWorld,+ }],+}++vi.mock('virtual:worlds', () => ({ default: [exampleEntry] }))++const { loadWorlds, fetchWorlds, getSplatUrl } = await import('./worldLoader')++describe('worldLoader', () => {+ it('returns WorldEntry array with correct slug', () => {+ const worlds = loadWorlds()+ expect(worlds).toHaveLength(1)+ expect(worlds[0].slug).toBe('example')+ expect(worlds[0].project.display_name).toBe('Example World')+ })++ it('fetches fresh world metadata in dev', async () => {+ const fetchedWorlds = [{ ...exampleEntry, slug: 'fresh-example' }]+ const fetchMock = vi.fn().mockResolvedValue({+ ok: true,+ json: () => Promise.resolve(fetchedWorlds),+ })+ vi.stubGlobal('fetch', fetchMock)++ await expect(fetchWorlds()).resolves.toEqual(fetchedWorlds)+ expect(fetchMock).toHaveBeenCalledWith('/__worlds', { cache: 'no-store' })++ vi.unstubAllGlobals()+ })++ it('getSplatUrl always uses full-res', () => {+ const world = {+ ...exampleWorld,+ assets: {+ ...exampleWorld.assets,+ splats: {+ ...exampleWorld.assets.splats,+ spz_urls: {+ ...exampleWorld.assets.splats.spz_urls,+ full_res: '/worlds/example/output/world/0-world-full_res.spz',+ },+ },+ },+ }+ const url = getSplatUrl(world)+ expect(url).toBe('/worlds/example/output/world/0-world-full_res.spz')+ })++ it('getSplatUrl returns empty when full-res is absent', () => {+ expect(getSplatUrl(exampleWorld)).toBe('')+ })++ it('getSplatUrl ignores non-full-res splats', () => {+ const world = {+ ...exampleWorld,+ assets: {+ ...exampleWorld.assets,+ splats: {+ ...exampleWorld.assets.splats,+ spz_urls: { '150k': '/worlds/example/output/world/0-world-150k.spz' },+ },+ },+ }+ expect(getSplatUrl(world)).toBe('')+ })++ it('getSplatUrl refuses provider URLs', () => {+ const world = {+ ...exampleWorld,+ assets: {+ ...exampleWorld.assets,+ splats: {+ ...exampleWorld.assets.splats,+ spz_urls: { full_res: 'https://cdn.example.com/splat_full.spz' },+ },+ },+ }+ expect(getSplatUrl(world)).toBe('')+ })+})diff --git a/third_party/image-blaster/app/src/utils/worldLoader.ts b/third_party/image-blaster/app/src/utils/worldLoader.tsnew file mode 100644index 000000000..9a350c05b--- /dev/null+++ b/third_party/image-blaster/app/src/utils/worldLoader.ts@@ -0,0 +1,23 @@+import worlds from 'virtual:worlds'+import { type World, type WorldEntry } from '../types/world'++export function loadWorlds(): WorldEntry[] {+ return worlds as WorldEntry[]+}++export async function fetchWorlds(): Promise<WorldEntry[]> {+ if (!import.meta.env.DEV) return loadWorlds()++ const response = await fetch('/__worlds', { cache: 'no-store' })+ if (!response.ok) throw new Error(await response.text())+ return response.json() as Promise<WorldEntry[]>+}++function localWorldAssetUrl(url: string | undefined): string {+ return url?.startsWith('/worlds/') ? url : ''+}++export function getSplatUrl(world: World): string {+ const urls = world.assets.splats.spz_urls+ return localWorldAssetUrl(urls.full_res)+}diff --git a/third_party/image-blaster/app/src/vite-env.d.ts b/third_party/image-blaster/app/src/vite-env.d.tsnew file mode 100644index 000000000..11f02fe2a--- /dev/null+++ b/third_party/image-blaster/app/src/vite-env.d.ts@@ -0,0 +1 @@+/// <reference types="vite/client" />diff --git a/third_party/image-blaster/app/src/viteConfigHelpers.test.ts b/third_party/image-blaster/app/src/viteConfigHelpers.test.tsnew file mode 100644index 000000000..5f6cdd81b--- /dev/null+++ b/third_party/image-blaster/app/src/viteConfigHelpers.test.ts@@ -0,0 +1,92 @@+import { describe, expect, it } from 'vitest'+import {+ byIndex,+ firstIndexed,+ indexedFiles,+ latestIndexed,+ parseIndexedName,+ versionLabel,+ worldsUrl,+} from '../vite.config.ts'++const IMAGE_EXTENSIONS = new Set(['.png', '.jpg', '.webp'])+const MODEL_EXTENSIONS = new Set(['.glb'])++function file(name: string) {+ return { name }+}++describe('vite indexed artifact helpers', () => {+ it('parses indexed names and sorts indexed files before non-indexed fallbacks', () => {+ expect(parseIndexedName('12-world-pano.PNG')).toEqual({+ index: 12,+ slug: 'world-pano',+ extension: '.png',+ name: '12-world-pano.PNG',+ })+ expect(parseIndexedName('.2-tree__model-request.json')).toEqual({+ index: 2,+ slug: 'tree',+ scope: 'model',+ extension: '.json',+ hidden: true,+ name: '.2-tree__model-request.json',+ })++ const files = indexedFiles([+ file('10-source.png'),+ file('source.png'),+ file('2-source.png'),+ file('0-source.png'),+ ], { extensions: IMAGE_EXTENSIONS })++ expect(files.map((entry) => entry.name)).toEqual([+ '0-source.png',+ '2-source.png',+ '10-source.png',+ 'source.png',+ ])+ expect(versionLabel(files[1])).toBe('v2')+ expect(versionLabel(files[3])).toBe('source')+ })++ it('defaults source image selection to the zeroth indexed source image', () => {+ const sourceImages = indexedFiles([+ file('2-source.png'),+ file('0-source.png'),+ file('1-source.png'),+ ], { extensions: IMAGE_EXTENSIONS })++ const defaultSource = byIndex(sourceImages, 0) ?? firstIndexed(sourceImages)++ expect(defaultSource?.name).toBe('0-source.png')+ expect(worldsUrl('demo', 'source/0-source.png')).toBe('/worlds/demo/source/0-source.png')+ })++ it('supports representative object thumbnail and world version lookups', () => {+ const objectFiles = [+ file('0-tree.glb'),+ file('0-tree-thumbnail.webp'),+ file('1-tree.glb'),+ file('1-tree-thumbnail.webp'),+ ]+ const models = indexedFiles(objectFiles, { extensions: MODEL_EXTENSIONS })+ const thumbnails = indexedFiles(objectFiles, { extensions: IMAGE_EXTENSIONS })+ const selectedModel = byIndex(models, 1)+ const selectedThumbnail = thumbnails.find((image) => image.index === selectedModel?.index && image.name.includes('thumbnail'))++ expect(selectedModel?.name).toBe('1-tree.glb')+ expect(selectedThumbnail?.name).toBe('1-tree-thumbnail.webp')++ const worldPanos = indexedFiles([+ file('0-world-pano.png'),+ file('3-world-pano.png'),+ file('1-world-pano.png'),+ ], {+ extensions: IMAGE_EXTENSIONS,+ slugs: new Set(['world-pano']),+ })++ expect(latestIndexed(worldPanos)?.name).toBe('3-world-pano.png')+ })+})diff --git a/third_party/image-blaster/app/tailwind.config.ts b/third_party/image-blaster/app/tailwind.config.tsnew file mode 100644index 000000000..7e29af24c--- /dev/null+++ b/third_party/image-blaster/app/tailwind.config.ts@@ -0,0 +1,7 @@+import type { Config } from 'tailwindcss'++export default {+ content: ['./index.html', './src/**/*.{ts,tsx}'],+ theme: { extend: {} },+ plugins: [],+} satisfies Configdiff --git a/third_party/image-blaster/app/tsconfig.json b/third_party/image-blaster/app/tsconfig.jsonnew file mode 100644index 000000000..a3cf01531--- /dev/null+++ b/third_party/image-blaster/app/tsconfig.json@@ -0,0 +1,21 @@+{+ "compilerOptions": {+ "target": "ES2020",+ "useDefineForClassFields": true,+ "lib": ["ES2020", "DOM", "DOM.Iterable"],+ "types": ["node"],+ "module": "ESNext",+ "skipLibCheck": true,+ "moduleResolution": "bundler",+ "allowImportingTsExtensions": true,+ "isolatedModules": true,+ "moduleDetection": "force",+ "noEmit": true,+ "jsx": "react-jsx",+ "strict": true,+ "noUnusedLocals": true,+ "noUnusedParameters": true,+ "noFallthroughCasesInSwitch": true+ },+ "include": ["src"]+}diff --git a/third_party/image-blaster/app/vite.config.ts b/third_party/image-blaster/app/vite.config.tsnew file mode 100644index 000000000..2d5168dca--- /dev/null+++ b/third_party/image-blaster/app/vite.config.ts@@ -0,0 +1,868 @@+import { defineConfig, type Plugin, type ViteDevServer } from 'vite'+import react from '@vitejs/plugin-react'+import path from 'path'+import fs from 'fs'+import { spawn } from 'child_process'++type WorldManifest = Record<string, unknown> & {+ assets?: Record<string, unknown> & {+ imagery?: Record<string, unknown>+ mesh?: Record<string, unknown>+ splats?: Record<string, unknown> & {+ spz_urls?: Record<string, string | undefined>+ }+ }+}++type ProjectManifest = Record<string, unknown> & {+ slug?: string+ display_name?: string+ created_at?: string+ updated_at?: string+ notes?: string+}++type RequestManifest = Record<string, unknown> & {+ status?: string+ input_files?: unknown+ request?: Record<string, unknown> & {+ world_prompt?: Record<string, unknown> & {+ image_prompt?: Record<string, unknown> & {+ uri?: unknown+ }+ }+ }+}++type FileWithName = { name: string }++export interface IndexedName {+ index: number+ slug: string+ scope?: string+ extension: string+ hidden?: boolean+ name: string+}++export interface IndexedArtifact<T extends FileWithName = FileWithName> {+ file: T+ name: string+ slug: string+ extension: string+ indexed?: IndexedName+ index?: number+}++interface IndexedFileOptions {+ extensions?: ReadonlySet<string>+ slugs?: ReadonlySet<string>+}++function visibleFiles(dir: string) {+ if (!fs.existsSync(dir)) return []+ return fs.readdirSync(dir, { withFileTypes: true })+ .filter((file) => file.isFile() && !file.name.startsWith('.'))+ .sort((a, b) => a.name.localeCompare(b.name))+}++export function parseIndexedName(fileName: string): IndexedName | undefined {+ const requestMatch = fileName.match(/^\.(\d+)-(.+?)(?:__([a-z0-9._-]+))?-request\.json$/i)+ if (requestMatch) {+ return {+ index: Number(requestMatch[1]),+ slug: requestMatch[2],+ ...(requestMatch[3] ? { scope: requestMatch[3] } : {}),+ extension: '.json',+ hidden: true,+ name: fileName,+ }+ }++ const match = fileName.match(/^(\d+)-(.+?)(\.[^.]+)$/)+ if (!match) return undefined+ return {+ index: Number(match[1]),+ slug: match[2],+ extension: match[3].toLowerCase(),+ name: fileName,+ }+}++export function indexedFiles<T extends FileWithName>(+ files: T[],+ options: IndexedFileOptions = {},+): Array<IndexedArtifact<T>> {+ return files+ .map((file) => {+ const indexed = parseIndexedName(file.name)+ const extension = path.extname(file.name).toLowerCase()+ return {+ file,+ name: file.name,+ slug: indexed?.slug ?? path.basename(file.name, extension),+ extension,+ ...(indexed ? { indexed, index: indexed.index } : {}),+ }+ })+ .filter((entry) => !options.extensions || options.extensions.has(entry.extension))+ .filter((entry) => !options.slugs || options.slugs.has(entry.slug))+ .sort((a, b) => {+ const aIndex = a.index ?? Number.MAX_SAFE_INTEGER+ const bIndex = b.index ?? Number.MAX_SAFE_INTEGER+ return aIndex - bIndex || a.name.localeCompare(b.name)+ })+}++export function versionLabel(file: IndexedArtifact) {+ return file.index === undefined ? path.basename(file.name, file.extension) : `v${file.index}`+}++export function firstIndexed<T extends IndexedArtifact>(files: T[]) {+ return files[0]+}++export function latestIndexed<T extends IndexedArtifact>(files: T[]) {+ return [...files].sort((a, b) => {+ const aIndex = a.index ?? Number.MIN_SAFE_INTEGER+ const bIndex = b.index ?? Number.MIN_SAFE_INTEGER+ return bIndex - aIndex || b.name.localeCompare(a.name)+ })[0]+}++export function byIndex<T extends IndexedArtifact>(files: T[], index: number) {+ return files.find((file) => file.index === index)+}++export function worldsUrl(slug: string, relativePath: string) {+ return `/worlds/${slug}/${relativePath.split(path.sep).join('/')}`+}++function worldsPlugin(): Plugin {+ const VIRTUAL_ID = 'virtual:worlds'+ const RESOLVED_ID = '\0' + VIRTUAL_ID+ const WORLD_CHANGE_EVENT = 'worlds-changed'+ const repoRoot = path.resolve(__dirname, '..')+ const worldsDir = path.resolve(__dirname, '../worlds')+ const RESERVED_OUTPUT_DIRS = new Set(['world', 'sfx'])+ const MODEL_EXTENSIONS = new Set(['.glb'])+ const AUDIO_EXTENSIONS = new Set(['.mp3', '.ogg', '.wav', '.m4a', '.opus'])+ const IMAGE_EXTENSIONS = new Set(['.png', '.jpg', '.jpeg', '.webp', '.avif'])+ const PROJECT_VERSION = 1+ const WORLD_SPZ_KEYS = new Set(['100k', '150k', '500k', 'full_res'])++ function readSourceImageVersions(slug: string) {+ const sourceDir = path.join(worldsDir, slug, 'source')+ return indexedFiles(visibleFiles(sourceDir), { extensions: IMAGE_EXTENSIONS })+ .map((image) => ({+ url: worldsUrl(slug, path.join('source', image.name)),+ label: versionLabel(image),+ fileName: image.name,+ ...(image.index === undefined ? {} : { index: image.index }),+ }))+ }++ function readSourceImageUrl(slug: string): string | undefined {+ const versions = readSourceImageVersions(slug)+ return versions.find((version) => version.index === 0)?.url ?? versions[0]?.url+ }++ function statusText(value: unknown) {+ return String(value || '').toLowerCase()+ }++ function requestMetadataFiles(dir: string, slug: string, scope?: string) {+ if (!fs.existsSync(dir)) return []++ return fs.readdirSync(dir, { withFileTypes: true })+ .flatMap((entry) => {+ if (!entry.isFile()) return []+ const parsed = parseIndexedName(entry.name)+ if (!parsed?.hidden || parsed.slug !== slug || parsed.scope !== scope) return []++ try {+ return [{+ ...parsed,+ data: JSON.parse(fs.readFileSync(path.join(dir, entry.name), 'utf-8')) as RequestManifest,+ }]+ } catch {+ return []+ }+ })+ .sort((a, b) => a.index - b.index)+ }++ function readObjectAssets(slug: string) {+ const outputDir = path.join(worldsDir, slug, 'output')+ if (!fs.existsSync(outputDir)) return []++ return fs.readdirSync(outputDir, { withFileTypes: true })+ .filter((entry) => entry.isDirectory() && !RESERVED_OUTPUT_DIRS.has(entry.name))+ .flatMap((entry) => {+ const objectDir = path.join(outputDir, entry.name)+ const files = visibleFiles(objectDir)+ const models = indexedFiles(files, { extensions: MODEL_EXTENSIONS })+ const images = indexedFiles(files, { extensions: IMAGE_EXTENSIONS })+ const objectJsonPath = path.join(objectDir, 'object.json')+ let displayName = entry.name+ if (fs.existsSync(objectJsonPath) && fs.statSync(objectJsonPath).isFile()) {+ try {+ const json = JSON.parse(fs.readFileSync(objectJsonPath, 'utf-8'))+ displayName = json.object?.name ?? json.name ?? displayName+ } catch {+ displayName = entry.name+ }+ }++ const thumbnailFor = (index?: number) => {+ const sameIndexImages = images.filter((image) => index === undefined || image.index === index)+ return sameIndexImages.find((image) => image.name.includes('thumbnail')) ?? firstIndexed(sameIndexImages)+ }++ const referenceImageFor = (model: IndexedArtifact) => {+ const sameIndexImages = images.filter((image) => model.index === undefined || image.index === model.index)+ return sameIndexImages.find((image) => image.slug === model.slug)+ ?? sameIndexImages.find((image) => !image.name.includes('thumbnail'))+ ?? firstIndexed(sameIndexImages)+ }++ const imageRequests = requestMetadataFiles(objectDir, entry.name, 'image')+ const modelRequests = requestMetadataFiles(objectDir, entry.name, 'model')+ const indexes = new Set<number>()+ for (const model of models) if (model.index !== undefined) indexes.add(model.index)+ for (const request of imageRequests) indexes.add(request.index)+ for (const request of modelRequests) indexes.add(request.index)++ if (!indexes.size && models.some((model) => model.index === undefined)) {+ indexes.add(Number.MAX_SAFE_INTEGER)+ }++ return [...indexes].sort((a, b) => a - b).flatMap((indexValue) => {+ const index = indexValue === Number.MAX_SAFE_INTEGER ? undefined : indexValue+ const model = models.find((candidate) => candidate.index === index)+ const imageRequest = imageRequests.find((request) => request.index === index)+ const modelRequest = modelRequests.find((request) => request.index === index)+ const thumbnail = thumbnailFor(index)+ const referenceImage = model ? referenceImageFor(model) : thumbnail+ const referenceImageUrl = referenceImage+ ? worldsUrl(slug, path.join('output', entry.name, referenceImage.name))+ : undefined+ const requestStatus = statusText(modelRequest?.data.status ?? imageRequest?.data.status)+ const complete = Boolean(model)+ if (!complete && !imageRequest && !modelRequest) return []++ return {+ id: index === undefined ? entry.name : `${entry.name}-${index}`,+ assetId: index === undefined ? `${slug}/${entry.name}` : `${slug}/${entry.name}/${index}`,+ sourceWorldSlug: slug,+ baseObjectId: entry.name,+ ...(index === undefined ? {} : { index }),+ variantLabel: model ? versionLabel(model) : `v${index}`,+ fileName: model?.name,+ name: displayName,+ url: model ? worldsUrl(slug, path.join('output', entry.name, model.name)) : '',+ referenceImageUrl,+ thumbnailUrl: thumbnail ? worldsUrl(slug, path.join('output', entry.name, thumbnail.name)) : referenceImageUrl,+ sfxUrls: readSfxUrls(slug, path.join('output', entry.name, 'sfx')),+ complete,+ ...(!complete && requestStatus ? { status: requestStatus } : {}),+ }+ })+ })+ }++ function readSfxUrls(slug: string, relativeDir: string) {+ return indexedFiles(visibleFiles(path.join(worldsDir, slug, relativeDir)), { extensions: AUDIO_EXTENSIONS })+ .map((file) => worldsUrl(slug, path.join(relativeDir, file.name)))+ }++ function readWorldSfxUrls(slug: string) {+ return readSfxUrls(slug, path.join('output', 'sfx'))+ }++ function worldAssetUrl(slug: string, filename?: string) {+ return filename ? worldsUrl(slug, path.join('output', 'world', filename)) : ''+ }++ function httpImageUrl(value: unknown) {+ if (typeof value !== 'string') return undefined+ try {+ const url = new URL(value)+ return url.protocol === 'http:' || url.protocol === 'https:' ? value : undefined+ } catch {+ return undefined+ }+ }++ function localWorldsFileUrl(value: unknown) {+ if (typeof value !== 'string' || httpImageUrl(value)) return undefined++ const resolvedPath = path.resolve(repoRoot, value)+ const relativePath = path.relative(worldsDir, resolvedPath)+ if (relativePath.startsWith('..') || path.isAbsolute(relativePath)) return undefined+ if (!fs.existsSync(resolvedPath) || !fs.statSync(resolvedPath).isFile()) return undefined++ const [worldSlug, ...worldRelativeParts] = relativePath.split(path.sep)+ if (!worldSlug || !worldRelativeParts.length) return undefined+ return worldsUrl(worldSlug, worldRelativeParts.join(path.sep))+ }++ function requestPlateImageUrl(request?: RequestManifest) {+ const inputFiles = Array.isArray(request?.input_files) ? request.input_files : []+ for (const inputFile of inputFiles) {+ const imageUrl = localWorldsFileUrl(inputFile) ?? httpImageUrl(inputFile)+ if (imageUrl) return imageUrl+ }++ return httpImageUrl(request?.request?.world_prompt?.image_prompt?.uri)+ }++ function assetKeyForFilename(key: string) {+ return key.replace(/[^a-z0-9_-]/gi, '_')+ }++ function latestIndexedFile(files: fs.Dirent[], slug: string, extension?: string) {+ const matches = indexedFiles(files, {+ slugs: new Set([slug]),+ ...(extension ? { extensions: new Set([extension.toLowerCase()]) } : {}),+ }).filter((file) => file.index !== undefined)+ return latestIndexed(matches)?.indexed+ }++ function worldAssetFilename(files: fs.Dirent[], index: number | undefined, slug: string, extensions?: ReadonlySet<string>) {+ const matches = indexedFiles(files, {+ slugs: new Set([slug]),+ ...(extensions ? { extensions } : {}),+ }).filter((file) => file.index !== undefined)+ if (index === undefined) return latestIndexed(matches)?.name+ return byIndex(matches, index)?.name+ }++ function readWorldManifest(slug: string) {+ const worldDir = path.join(worldsDir, slug, 'output', 'world')+ const files = visibleFiles(worldDir)+ const latestWorld = latestIndexedFile(files, 'world', '.json')++ if (latestWorld) {+ const raw = fs.readFileSync(path.join(worldDir, latestWorld.name), 'utf-8')+ return {+ world: JSON.parse(raw) as WorldManifest,+ index: latestWorld.index,+ }+ }++ return undefined+ }++ function readWorldManifestForIndex(slug: string, index: number): WorldManifest | undefined {+ const worldDir = path.join(worldsDir, slug, 'output', 'world')+ const indexedPath = path.join(worldDir, `${index}-world.json`)+ if (fs.existsSync(indexedPath) && fs.statSync(indexedPath).isFile()) {+ return JSON.parse(fs.readFileSync(indexedPath, 'utf-8')) as WorldManifest+ }++ return undefined+ }++ function displayNameFromSlug(slug: string) {+ return slug+ .split('-')+ .filter(Boolean)+ .map((part) => part.charAt(0).toUpperCase() + part.slice(1))+ .join(' ')+ }++ function readProjectManifest(slug: string): ProjectManifest | undefined {+ const projectPath = path.join(worldsDir, slug, 'project.json')+ if (!fs.existsSync(projectPath) || !fs.statSync(projectPath).isFile()) return undefined+ try {+ return JSON.parse(fs.readFileSync(projectPath, 'utf-8')) as ProjectManifest+ } catch {+ return undefined+ }+ }++ function withLocalWorldAssets(slug: string, world: WorldManifest, index?: number) {+ const files = visibleFiles(path.join(worldsDir, slug, 'output', 'world'))+ const existingSpzUrls = world.assets?.splats?.spz_urls ?? {}+ const spzUrls: Record<string, string> = {}++ for (const key of Object.keys(existingSpzUrls)) {+ const assetKey = assetKeyForFilename(key)+ const filename = worldAssetFilename(files, index, `world-${assetKey}`, new Set(['.spz']))+ if (filename) spzUrls[key] = worldAssetUrl(slug, filename)+ }++ for (const file of indexedFiles(files, { extensions: new Set(['.spz']) })) {+ const match = file.slug.match(/^world-(100k|150k|500k|full_res)$/)+ if (!match || !WORLD_SPZ_KEYS.has(match[1])) continue++ const key = match[1]+ if (index === undefined || file.index === index) {+ spzUrls[key] = worldAssetUrl(slug, file.name)+ }+ }++ const collider = worldAssetFilename(files, index, 'world', MODEL_EXTENSIONS)+ const pano = worldAssetFilename(files, index, 'world-pano', IMAGE_EXTENSIONS)+ const thumbnail = worldAssetFilename(files, index, 'world-thumbnail', IMAGE_EXTENSIONS)++ return {+ ...world,+ assets: {+ ...(world.assets ?? {}),+ mesh: {+ ...(world.assets?.mesh ?? {}),+ collider_mesh_url: worldAssetUrl(slug, collider),+ },+ imagery: {+ ...(world.assets?.imagery ?? {}),+ pano_url: worldAssetUrl(slug, pano),+ },+ splats: {+ ...(world.assets?.splats ?? {}),+ spz_urls: spzUrls,+ semantics_metadata: {+ metric_scale_factor: 1,+ ground_plane_offset: 0,+ flip_y: true,+ ...((world.assets?.splats?.semantics_metadata ?? {}) as Record<string, unknown>),+ },+ },+ thumbnail_url: worldAssetUrl(slug, thumbnail),+ },+ }+ }++ function worldAssetIndexes(slug: string) {+ const files = visibleFiles(path.join(worldsDir, slug, 'output', 'world'))+ const indexes = new Set<number>()+ for (const file of indexedFiles(files)) {+ if (file.index === undefined) continue+ if (+ file.slug === 'world' && file.extension === '.json'+ ) {+ indexes.add(file.index)+ }+ }+ return [...indexes].sort((a, b) => a - b)+ }++ function worldRequestIndexes(slug: string) {+ const worldDir = path.join(worldsDir, slug, 'output', 'world')+ return requestMetadataFiles(worldDir, 'world').map((request) => request.index)+ }++ function readWorldVersions(slug: string) {+ const indexes = [...new Set([+ ...worldAssetIndexes(slug),+ ...worldRequestIndexes(slug),+ ])].sort((a, b) => a - b)++ return indexes.flatMap((index) => {+ const files = visibleFiles(path.join(worldsDir, slug, 'output', 'world'))+ const request = requestMetadataFiles(path.join(worldsDir, slug, 'output', 'world'), 'world')+ .find((candidate) => candidate.index === index)+ const manifest = readWorldManifestForIndex(slug, index)+ if (!manifest && !request) return []+ const world = manifest ? withLocalWorldAssets(slug, manifest, index) : undefined+ const colliderUrl = String(world?.assets?.mesh?.collider_mesh_url || '')+ const spzUrls = world?.assets?.splats?.spz_urls ?? {}+ const plate = worldAssetFilename(files, index, 'world-plate', IMAGE_EXTENSIONS)+ const plateImageUrl = plate ? worldAssetUrl(slug, plate) : requestPlateImageUrl(request?.data)+ const requestStatus = statusText(request?.data.status)+ const complete = Boolean(world && colliderUrl && Object.keys(spzUrls).length)+ return {+ index,+ label: `v${index}`,+ ...(world ? { world } : {}),+ ...(plateImageUrl ? { plateImageUrl } : {}),+ complete,+ ...(!complete && requestStatus ? { status: requestStatus } : {}),+ }+ })+ }++ function sceneProjectPath(slug: string) {+ const worldDir = path.resolve(worldsDir, slug)+ const isInsideWorlds = worldDir !== worldsDir && worldDir.startsWith(`${worldsDir}${path.sep}`)+ if (!isInsideWorlds) return null+ return path.join(worldDir, 'scene.json')+ }++ function sanitizePlacementProject(input: unknown) {+ if (!input || typeof input !== 'object') return undefined+ const record = input as Record<string, unknown>+ if (record.version !== PROJECT_VERSION || !Array.isArray(record.instances)) return undefined+ const isVec3 = (value: unknown): value is [number, number, number] => (+ Array.isArray(value) &&+ value.length === 3 &&+ value.every((part) => typeof part === 'number' && Number.isFinite(part))+ )++ const instances = record.instances.flatMap((instance): Array<Record<string, unknown>> => {+ if (!instance || typeof instance !== 'object') return []+ const item = instance as Record<string, unknown>+ const { instanceId, objectId, assetId, physics, position, rotation, scale } = item++ if (typeof instanceId !== 'string' || typeof objectId !== 'string') return []+ if (assetId !== undefined && typeof assetId !== 'string') return []+ if (+ physics !== undefined &&+ physics !== 'rigidbody' &&+ physics !== 'static' &&+ physics !== 'ghost'+ ) return []+ if (!isVec3(position) || !isVec3(rotation) || !isVec3(scale)) return []+ return [{ instanceId, objectId, ...(assetId ? { assetId } : {}), physics: physics ?? 'rigidbody', position, rotation, scale }]+ })+ const sun = (() => {+ if (!record.sun || typeof record.sun !== 'object') return undefined+ const candidate = record.sun as Record<string, unknown>+ if (typeof candidate.intensity !== 'number' || !Number.isFinite(candidate.intensity)) return undefined+ if (!isVec3(candidate.rotation)) return undefined+ const environmentIntensity = candidate.environmentIntensity+ return {+ intensity: candidate.intensity,+ rotation: candidate.rotation,+ ...(typeof environmentIntensity === 'number' && Number.isFinite(environmentIntensity) ? { environmentIntensity } : {}),+ }+ })()+ const metricScaleFactor = record.metricScaleFactor+ const groundPlaneOffset = record.groundPlaneOffset+ const groundPlaneColliderEnabled = record.groundPlaneColliderEnabled+ const shadowCatcherOpacity = record.shadowCatcherOpacity+ const normalizedShadowCatcherOpacity = typeof shadowCatcherOpacity === 'number' && Number.isFinite(shadowCatcherOpacity)+ ? Math.min(Math.max(shadowCatcherOpacity, 0), 1)+ : undefined+ const shadowCatcherColor = record.shadowCatcherColor+ const normalizedShadowCatcherColor = typeof shadowCatcherColor === 'string' && /^#[0-9a-f]{6}$/i.test(shadowCatcherColor)+ ? shadowCatcherColor.toLowerCase()+ : undefined++ return {+ version: PROJECT_VERSION,+ instances,+ ...(sun ? { sun } : {}),+ ...(typeof metricScaleFactor === 'number' && Number.isFinite(metricScaleFactor) ? { metricScaleFactor } : {}),+ ...(typeof groundPlaneOffset === 'number' && Number.isFinite(groundPlaneOffset) ? { groundPlaneOffset } : {}),+ ...(typeof groundPlaneColliderEnabled === 'boolean' ? { groundPlaneColliderEnabled } : {}),+ ...(normalizedShadowCatcherOpacity !== undefined ? { shadowCatcherOpacity: normalizedShadowCatcherOpacity } : {}),+ ...(normalizedShadowCatcherColor !== undefined ? { shadowCatcherColor: normalizedShadowCatcherColor } : {}),+ }+ }++ function readSceneProject(slug: string) {+ const filePath = sceneProjectPath(slug)+ if (!filePath || !fs.existsSync(filePath) || !fs.statSync(filePath).isFile()) return undefined+ try {+ return sanitizePlacementProject(JSON.parse(fs.readFileSync(filePath, 'utf-8')))+ } catch {+ return undefined+ }+ }++ function hasHiddenPathPart(file: string) {+ const relative = path.relative(worldsDir, file)+ if (relative.startsWith('..') || path.isAbsolute(relative)) return false+ return relative.split(path.sep).some((part) => part.startsWith('.'))+ }++ function worldSlugForFile(file: string) {+ const relative = path.relative(worldsDir, file)+ if (relative.startsWith('..') || path.isAbsolute(relative)) return null+ return relative.split(path.sep)[0] || null+ }++ function isVisibleWorldPath(file: string) {+ return Boolean(worldSlugForFile(file)) && !hasHiddenPathPart(file)+ }++ function isGeneratedRequestPath(file: string) {+ const worldSlug = worldSlugForFile(file)+ const parsed = parseIndexedName(path.basename(file))+ if (!worldSlug || !parsed?.hidden) return false++ const relativeParts = path.relative(path.join(worldsDir, worldSlug), file).split(path.sep)+ if (relativeParts[0] !== 'output') return false+ if (relativeParts[1] === 'world') return parsed.slug === 'world' && parsed.scope === undefined+ return parsed.scope === 'image' || parsed.scope === 'model'+ }++ function notifyWorldsChanged(server: ViteDevServer) {+ const mod = server.moduleGraph.getModuleById(RESOLVED_ID)+ if (mod) server.moduleGraph.invalidateModule(mod)+ server.ws.send({ type: 'custom', event: WORLD_CHANGE_EVENT })+ }++ function readWorlds() {+ if (!fs.existsSync(worldsDir)) return []+ const entries = fs.readdirSync(worldsDir)+ .flatMap((slug) => {+ const worldDir = path.join(worldsDir, slug)+ if (!fs.statSync(worldDir).isDirectory()) return []+ const project = readProjectManifest(slug)+ if (!project) return []+ const manifest = readWorldManifest(slug)+ const worldVersions = readWorldVersions(slug)+ const defaultWorld = worldVersions[worldVersions.length - 1]?.world+ ?? (manifest ? withLocalWorldAssets(slug, manifest.world, manifest.index) : undefined)+ return [{+ slug,+ project: {+ slug: project.slug ?? slug,+ display_name: project.display_name ?? displayNameFromSlug(slug),+ ...(project.created_at ? { created_at: project.created_at } : {}),+ ...(project.updated_at ? { updated_at: project.updated_at } : {}),+ ...(project.notes ? { notes: project.notes } : {}),+ },+ ...(defaultWorld ? { world: defaultWorld } : {}),+ worldVersions,+ objectAssets: readObjectAssets(slug),+ allObjectAssets: [],+ sourceImageUrl: readSourceImageUrl(slug),+ sourceImageVersions: readSourceImageVersions(slug),+ worldSfxUrls: readWorldSfxUrls(slug),+ sceneProject: readSceneProject(slug),+ }]+ })+ const allObjectAssets = entries.flatMap((entry) => entry.objectAssets)+ return entries.map((entry) => ({ ...entry, allObjectAssets }))+ }++ function openFolder(folderPath: string) {+ const command = process.platform === 'darwin'+ ? 'open'+ : process.platform === 'win32'+ ? 'cmd'+ : 'xdg-open'+ const args = process.platform === 'win32'+ ? ['/c', 'start', '', folderPath]+ : [folderPath]+ const child = spawn(command, args, { detached: true, stdio: 'ignore' })+ child.unref()+ }++ function shellQuote(value: string) {+ return `'${value.replace(/'/g, `'"'"'`)}'`+ }++ function appleScriptString(value: string) {+ return value.replace(/\\/g, '\\\\').replace(/"/g, '\\"')+ }++ function openClaudeTerminal() {+ if (process.platform !== 'darwin') return false++ const command = `cd ${shellQuote(repoRoot)} && claude`+ const child = spawn('osascript', [+ '-e',+ 'tell application "Terminal"',+ '-e',+ `do script "${appleScriptString(command)}"`,+ '-e',+ 'activate',+ '-e',+ 'end tell',+ ], { detached: true, stdio: 'ignore' })+ child.unref()+ return true+ }++ return {+ name: 'worlds',+ resolveId(id) {+ if (id === VIRTUAL_ID) return RESOLVED_ID+ },+ load(id) {+ if (id === RESOLVED_ID) {+ return `export default ${JSON.stringify(readWorlds())}`+ }+ },+ handleHotUpdate({ file, server }) {+ if (!isVisibleWorldPath(file) && !isGeneratedRequestPath(file)) return+ notifyWorldsChanged(server)+ return []+ },+ configureServer(server) {+ server.watcher.add(worldsDir)+ const onWorldFsChange = (file: string) => {+ if (isVisibleWorldPath(file) || isGeneratedRequestPath(file)) notifyWorldsChanged(server)+ }+ server.watcher.on('add', onWorldFsChange)+ server.watcher.on('addDir', onWorldFsChange)+ server.watcher.on('unlink', onWorldFsChange)+ server.watcher.on('unlinkDir', onWorldFsChange)+ const MIME: Record<string, string> = {+ '.spz': 'application/octet-stream',+ '.glb': 'model/gltf-binary',+ '.png': 'image/png',+ '.webp': 'image/webp',+ '.jpg': 'image/jpeg',+ '.mp3': 'audio/mpeg',+ '.ogg': 'audio/ogg',+ '.wav': 'audio/wav',+ '.m4a': 'audio/mp4',+ '.opus': 'audio/ogg',+ '.json': 'application/json',+ }+ server.middlewares.use('/__worlds', (_req, res) => {+ res.setHeader('Cache-Control', 'no-store')+ res.setHeader('Content-Type', 'application/json')+ res.end(JSON.stringify(readWorlds()))+ })+ server.middlewares.use('/__open-claude-terminal', (_req, res) => {+ if (!openClaudeTerminal()) {+ res.statusCode = 501+ res.end('Opening Claude terminal is only supported on macOS.')+ return+ }++ res.statusCode = 204+ res.end()+ })+ server.middlewares.use('/__open-world-folder', (req, res) => {+ const requestUrl = new URL(req.url || '/', 'http://localhost')+ const slug = requestUrl.searchParams.get('slug')+ const target = requestUrl.searchParams.get('target')+ const asset = requestUrl.searchParams.get('asset')+ if (target === 'root') {+ openFolder(repoRoot)+ res.statusCode = 204+ res.end()+ return+ }++ if (!slug) {+ res.statusCode = 400+ res.end('Missing slug')+ return+ }++ const worldDir = path.resolve(worldsDir, slug)+ const isInsideWorlds = worldDir !== worldsDir && worldDir.startsWith(`${worldsDir}${path.sep}`)+ if (!isInsideWorlds) {+ res.statusCode = 404+ res.end('Not found')+ return+ }++ const folderPath = (() => {+ if (target === 'scene') return worldDir+ if (target === 'world-asset') return path.join(worldDir, 'output', 'world')+ if (target === 'object-asset') return asset ? path.join(worldDir, 'output', asset) : undefined+ return worldDir+ })()+ if (!folderPath) {+ res.statusCode = 400+ res.end('Missing asset')+ return+ }+ const resolvedFolderPath = path.resolve(folderPath)+ const isInsideWorld = resolvedFolderPath === worldDir || resolvedFolderPath.startsWith(`${worldDir}${path.sep}`)+ if (!isInsideWorld) {+ res.statusCode = 404+ res.end('Not found')+ return+ }++ if (!fs.existsSync(resolvedFolderPath) || !fs.statSync(resolvedFolderPath).isDirectory()) {+ res.statusCode = 404+ res.end('Not found')+ return+ }++ openFolder(resolvedFolderPath)+ res.statusCode = 204+ res.end()+ })+ server.middlewares.use('/__scene-project', (req, res) => {+ res.setHeader('Cache-Control', 'no-store')+ const requestUrl = new URL(req.url || '/', 'http://localhost')+ const slug = requestUrl.searchParams.get('slug')+ if (!slug) {+ res.statusCode = 400+ res.end('Missing slug')+ return+ }++ const filePath = sceneProjectPath(slug)+ if (!filePath) {+ res.statusCode = 400+ res.end('Invalid slug')+ return+ }++ if (req.method === 'GET') {+ const project = readSceneProject(slug)+ if (!project) {+ res.statusCode = 404+ res.end('Not found')+ return+ }++ res.setHeader('Content-Type', 'application/json')+ res.end(JSON.stringify(project, null, 2))+ return+ }++ if (req.method !== 'POST') {+ res.statusCode = 405+ res.end('Method not allowed')+ return+ }++ let body = ''+ req.setEncoding('utf-8')+ req.on('data', (chunk) => {+ body += chunk+ })+ req.on('end', () => {+ try {+ const project = sanitizePlacementProject(JSON.parse(body))+ if (!project) {+ res.statusCode = 400+ res.end('Invalid project')+ return+ }++ fs.mkdirSync(path.dirname(filePath), { recursive: true })+ fs.writeFileSync(filePath, `${JSON.stringify(project, null, 2)}\n`)+ res.setHeader('Content-Type', 'application/json')+ res.end(JSON.stringify(project))+ } catch {+ res.statusCode = 400+ res.end('Invalid JSON')+ }+ })+ })+ server.middlewares.use('/worlds', (req, res, next) => {+ const requestPath = decodeURIComponent((req.url || '/').split('?')[0])+ const filePath = path.resolve(worldsDir, `.${requestPath}`)+ const isInsideWorlds = filePath === worldsDir || filePath.startsWith(`${worldsDir}${path.sep}`)++ if (!isInsideWorlds) {+ res.statusCode = 404+ res.end('Not found')+ return+ }++ if (fs.existsSync(filePath) && fs.statSync(filePath).isFile()) {+ const ext = path.extname(filePath).toLowerCase()+ res.setHeader('Content-Type', MIME[ext] ?? 'application/octet-stream')+ fs.createReadStream(filePath).pipe(res)+ } else if (path.extname(requestPath)) {+ res.statusCode = 404+ res.end('Not found')+ } else {+ next()+ }+ })+ },+ }+}++export default defineConfig({+ plugins: [react(), worldsPlugin()],+ server: { fs: { allow: ['..'] } },+})diff --git a/third_party/image-blaster/bun.lock b/third_party/image-blaster/bun.locknew file mode 100644index 000000000..d1d289077--- /dev/null+++ b/third_party/image-blaster/bun.lock@@ -0,0 +1,826 @@+{+ "lockfileVersion": 1,+ "configVersion": 1,+ "workspaces": {+ "": {},+ "app": {+ "name": "image-blaster",+ "version": "0.0.1",+ "dependencies": {+ "@phosphor-icons/react": "^2.1.10",+ "@radix-ui/themes": "^3.3.0",+ "@react-three/drei": "^10.7.7",+ "@react-three/fiber": "^9.6.0",+ "@react-three/postprocessing": "^3.0.4",+ "@react-three/rapier": "^2.2.0",+ "@sparkjsdev/spark": "^2.0.0",+ "leva": "^0.10.1",+ "postprocessing": "^6.36.0",+ "react": "^19.2.5",+ "react-dom": "^19.2.5",+ "tailwind-merge": "^3.5.0",+ "three": "0.180.0",+ "three-stdlib": "^2.36.1",+ "wouter": "^3.3.5",+ "zustand": "^5.0.12",+ },+ "devDependencies": {+ "@types/node": "^25.6.0",+ "@types/react": "^19.2.14",+ "@types/react-dom": "^19.2.3",+ "@types/three": "^0.180.0",+ "@vitejs/plugin-react": "^4.3.3",+ "autoprefixer": "^10.4.20",+ "dotenv": "^17.4.2",+ "postcss": "^8.4.49",+ "tailwindcss": "^3.4.15",+ "typescript": "^5.6.3",+ "vite": "^5.4.11",+ "vitest": "^2.1.5",+ },+ },+ },+ "packages": {+ "@alloc/quick-lru": ["@alloc/[email protected]", "", {}, "sha512-UrcABB+4bUrFABwbluTIBErXwvbsU/V7TZWfmbgJfbkwiBuziS9gxdODUyuiecfdGQ85jglMW6juS3+z5TsKLw=="],++ "@babel/code-frame": ["@babel/[email protected]", "", { "dependencies": { "@babel/helper-validator-identifier": "^7.28.5", "js-tokens": "^4.0.0", "picocolors": "^1.1.1" } }, "sha512-9NhCeYjq9+3uxgdtp20LSiJXJvN0FeCtNGpJxuMFZ1Kv3cWUNb6DOhJwUvcVCzKGR66cw4njwM6hrJLqgOwbcw=="],++ "@babel/compat-data": ["@babel/[email protected]", "", {}, "sha512-LIVqM46zQWZhj17qA8wb4nW/ixr2y1Nw+r1etiAWgRM6U1IqP+LNhL1yg440jYZR72jCWcWbLWzIosH+uP1fqg=="],++ "@babel/core": ["@babel/[email protected]", "", { "dependencies": { "@babel/code-frame": "^7.29.0", "@babel/generator": "^7.29.0", "@babel/helper-compilation-targets": "^7.28.6", "@babel/helper-module-transforms": "^7.28.6", "@babel/helpers": "^7.28.6", "@babel/parser": "^7.29.0", "@babel/template": "^7.28.6", "@babel/traverse": "^7.29.0", "@babel/types": "^7.29.0", "@jridgewell/remapping": "^2.3.5", "convert-source-map": "^2.0.0", "debug": "^4.1.0", "gensync": "^1.0.0-beta.2", "json5": "^2.2.3", "semver": "^6.3.1" } }, "sha512-CGOfOJqWjg2qW/Mb6zNsDm+u5vFQ8DxXfbM09z69p5Z6+mE1ikP2jUXw+j42Pf1XTYED2Rni5f95npYeuwMDQA=="],++ "@babel/generator": ["@babel/[email protected]", "", { "dependencies": { "@babel/parser": "^7.29.0", "@babel/types": "^7.29.0", "@jridgewell/gen-mapping": "^0.3.12", "@jridgewell/trace-mapping": "^0.3.28", "jsesc": "^3.0.2" } }, "sha512-qsaF+9Qcm2Qv8SRIMMscAvG4O3lJ0F1GuMo5HR/Bp02LopNgnZBC/EkbevHFeGs4ls/oPz9v+Bsmzbkbe+0dUw=="],++ "@babel/helper-compilation-targets": ["@babel/[email protected]", "", { "dependencies": { "@babel/compat-data": "^7.28.6", "@babel/helper-validator-option": "^7.27.1", "browserslist": "^4.24.0", "lru-cache": "^5.1.1", "semver": "^6.3.1" } }, "sha512-JYtls3hqi15fcx5GaSNL7SCTJ2MNmjrkHXg4FSpOA/grxK8KwyZ5bubHsCq8FXCkua6xhuaaBit+3b7+VZRfcA=="],++ "@babel/helper-globals": ["@babel/[email protected]", "", {}, "sha512-+W6cISkXFa1jXsDEdYA8HeevQT/FULhxzR99pxphltZcVaugps53THCeiWA8SguxxpSp3gKPiuYfSWopkLQ4hw=="],++ "@babel/helper-module-imports": ["@babel/[email protected]", "", { "dependencies": { "@babel/traverse": "^7.28.6", "@babel/types": "^7.28.6" } }, "sha512-l5XkZK7r7wa9LucGw9LwZyyCUscb4x37JWTPz7swwFE/0FMQAGpiWUZn8u9DzkSBWEcK25jmvubfpw2dnAMdbw=="],++ "@babel/helper-module-transforms": ["@babel/[email protected]", "", { "dependencies": { "@babel/helper-module-imports": "^7.28.6", "@babel/helper-validator-identifier": "^7.28.5", "@babel/traverse": "^7.28.6" }, "peerDependencies": { "@babel/core": "^7.0.0" } }, "sha512-67oXFAYr2cDLDVGLXTEABjdBJZ6drElUSI7WKp70NrpyISso3plG9SAGEF6y7zbha/wOzUByWWTJvEDVNIUGcA=="],++ "@babel/helper-plugin-utils": ["@babel/[email protected]", "", {}, "sha512-S9gzZ/bz83GRysI7gAD4wPT/AI3uCnY+9xn+Mx/KPs2JwHJIz1W8PZkg2cqyt3RNOBM8ejcXhV6y8Og7ly/Dug=="],++ "@babel/helper-string-parser": ["@babel/[email protected]", "", {}, "sha512-qMlSxKbpRlAridDExk92nSobyDdpPijUq2DW6oDnUqd0iOGxmQjyqhMIihI9+zv4LPyZdRje2cavWPbCbWm3eA=="],++ "@babel/helper-validator-identifier": ["@babel/[email protected]", "", {}, "sha512-qSs4ifwzKJSV39ucNjsvc6WVHs6b7S03sOh2OcHF9UHfVPqWWALUsNUVzhSBiItjRZoLHx7nIarVjqKVusUZ1Q=="],++ "@babel/helper-validator-option": ["@babel/[email protected]", "", {}, "sha512-YvjJow9FxbhFFKDSuFnVCe2WxXk1zWc22fFePVNEaWJEu8IrZVlda6N0uHwzZrUM1il7NC9Mlp4MaJYbYd9JSg=="],++ "@babel/helpers": ["@babel/[email protected]", "", { "dependencies": { "@babel/template": "^7.28.6", "@babel/types": "^7.29.0" } }, "sha512-HoGuUs4sCZNezVEKdVcwqmZN8GoHirLUcLaYVNBK2J0DadGtdcqgr3BCbvH8+XUo4NGjNl3VOtSjEKNzqfFgKw=="],++ "@babel/parser": ["@babel/[email protected]", "", { "dependencies": { "@babel/types": "^7.29.0" }, "bin": "./bin/babel-parser.js" }, "sha512-b3ctpQwp+PROvU/cttc4OYl4MzfJUWy6FZg+PMXfzmt/+39iHVF0sDfqay8TQM3JA2EUOyKcFZt75jWriQijsA=="],++ "@babel/plugin-transform-react-jsx-self": ["@babel/[email protected]", "", { "dependencies": { "@babel/helper-plugin-utils": "^7.27.1" }, "peerDependencies": { "@babel/core": "^7.0.0-0" } }, "sha512-6UzkCs+ejGdZ5mFFC/OCUrv028ab2fp1znZmCZjAOBKiBK2jXD1O+BPSfX8X2qjJ75fZBMSnQn3Rq2mrBJK2mw=="],++ "@babel/plugin-transform-react-jsx-source": ["@babel/[email protected]", "", { "dependencies": { "@babel/helper-plugin-utils": "^7.27.1" }, "peerDependencies": { "@babel/core": "^7.0.0-0" } }, "sha512-zbwoTsBruTeKB9hSq73ha66iFeJHuaFkUbwvqElnygoNbj/jHRsSeokowZFN3CZ64IvEqcmmkVe89OPXc7ldAw=="],++ "@babel/runtime": ["@babel/[email protected]", "", {}, "sha512-JiDShH45zKHWyGe4ZNVRrCjBz8Nh9TMmZG1kh4QTK8hCBTWBi8Da+i7s1fJw7/lYpM4ccepSNfqzZ/QvABBi5g=="],++ "@babel/template": ["@babel/[email protected]", "", { "dependencies": { "@babel/code-frame": "^7.28.6", "@babel/parser": "^7.28.6", "@babel/types": "^7.28.6" } }, "sha512-YA6Ma2KsCdGb+WC6UpBVFJGXL58MDA6oyONbjyF/+5sBgxY/dwkhLogbMT2GXXyU84/IhRw/2D1Os1B/giz+BQ=="],++ "@babel/traverse": ["@babel/[email protected]", "", { "dependencies": { "@babel/code-frame": "^7.29.0", "@babel/generator": "^7.29.0", "@babel/helper-globals": "^7.28.0", "@babel/parser": "^7.29.0", "@babel/template": "^7.28.6", "@babel/types": "^7.29.0", "debug": "^4.3.1" } }, "sha512-4HPiQr0X7+waHfyXPZpWPfWL/J7dcN1mx9gL6WdQVMbPnF3+ZhSMs8tCxN7oHddJE9fhNE7+lxdnlyemKfJRuA=="],++ "@babel/types": ["@babel/[email protected]", "", { "dependencies": { "@babel/helper-string-parser": "^7.27.1", "@babel/helper-validator-identifier": "^7.28.5" } }, "sha512-LwdZHpScM4Qz8Xw2iKSzS+cfglZzJGvofQICy7W7v4caru4EaAmyUuO6BGrbyQ2mYV11W0U8j5mBhd14dd3B0A=="],++ "@dimforge/rapier3d-compat": ["@dimforge/[email protected]", "", {}, "sha512-uekIGetywIgopfD97oDL5PfeezkFpNhwlzlaEYNOA0N6ghdsOvh/HYjSMek5Q2O1PYvRSDFcqFVJl4r4ZBwOow=="],++ "@esbuild/aix-ppc64": ["@esbuild/[email protected]", "", { "os": "aix", "cpu": "ppc64" }, "sha512-1SDgH6ZSPTlggy1yI6+Dbkiz8xzpHJEVAlF/AM1tHPLsf5STom9rwtjE4hKAF20FfXXNTFqEYXyJNWh1GiZedQ=="],++ "@esbuild/android-arm": ["@esbuild/[email protected]", "", { "os": "android", "cpu": "arm" }, "sha512-vCPvzSjpPHEi1siZdlvAlsPxXl7WbOVUBBAowWug4rJHb68Ox8KualB+1ocNvT5fjv6wpkX6o/iEpbDrf68zcg=="],++ "@esbuild/android-arm64": ["@esbuild/[email protected]", "", { "os": "android", "cpu": "arm64" }, "sha512-c0uX9VAUBQ7dTDCjq+wdyGLowMdtR/GoC2U5IYk/7D1H1JYC0qseD7+11iMP2mRLN9RcCMRcjC4YMclCzGwS/A=="],++ "@esbuild/android-x64": ["@esbuild/[email protected]", "", { "os": "android", "cpu": "x64" }, "sha512-D7aPRUUNHRBwHxzxRvp856rjUHRFW1SdQATKXH2hqA0kAZb1hKmi02OpYRacl0TxIGz/ZmXWlbZgjwWYaCakTA=="],++ "@esbuild/darwin-arm64": ["@esbuild/[email protected]", "", { "os": "darwin", "cpu": "arm64" }, "sha512-DwqXqZyuk5AiWWf3UfLiRDJ5EDd49zg6O9wclZ7kUMv2WRFr4HKjXp/5t8JZ11QbQfUS6/cRCKGwYhtNAY88kQ=="],++ "@esbuild/darwin-x64": ["@esbuild/[email protected]", "", { "os": "darwin", "cpu": "x64" }, "sha512-se/JjF8NlmKVG4kNIuyWMV/22ZaerB+qaSi5MdrXtd6R08kvs2qCN4C09miupktDitvh8jRFflwGFBQcxZRjbw=="],++ "@esbuild/freebsd-arm64": ["@esbuild/[email protected]", "", { "os": "freebsd", "cpu": "arm64" }, "sha512-5JcRxxRDUJLX8JXp/wcBCy3pENnCgBR9bN6JsY4OmhfUtIHe3ZW0mawA7+RDAcMLrMIZaf03NlQiX9DGyB8h4g=="],++ "@esbuild/freebsd-x64": ["@esbuild/[email protected]", "", { "os": "freebsd", "cpu": "x64" }, "sha512-J95kNBj1zkbMXtHVH29bBriQygMXqoVQOQYA+ISs0/2l3T9/kj42ow2mpqerRBxDJnmkUDCaQT/dfNXWX/ZZCQ=="],++ "@esbuild/linux-arm": ["@esbuild/[email protected]", "", { "os": "linux", "cpu": "arm" }, "sha512-bPb5AHZtbeNGjCKVZ9UGqGwo8EUu4cLq68E95A53KlxAPRmUyYv2D6F0uUI65XisGOL1hBP5mTronbgo+0bFcA=="],++ "@esbuild/linux-arm64": ["@esbuild/[email protected]", "", { "os": "linux", "cpu": "arm64" }, "sha512-ibKvmyYzKsBeX8d8I7MH/TMfWDXBF3db4qM6sy+7re0YXya+K1cem3on9XgdT2EQGMu4hQyZhan7TeQ8XkGp4Q=="],++ "@esbuild/linux-ia32": ["@esbuild/[email protected]", "", { "os": "linux", "cpu": "ia32" }, "sha512-YvjXDqLRqPDl2dvRODYmmhz4rPeVKYvppfGYKSNGdyZkA01046pLWyRKKI3ax8fbJoK5QbxblURkwK/MWY18Tg=="],++ "@esbuild/linux-loong64": ["@esbuild/[email protected]", "", { "os": "linux", "cpu": "none" }, "sha512-uHf1BmMG8qEvzdrzAqg2SIG/02+4/DHB6a9Kbya0XDvwDEKCoC8ZRWI5JJvNdUjtciBGFQ5PuBlpEOXQj+JQSg=="],++ "@esbuild/linux-mips64el": ["@esbuild/[email protected]", "", { "os": "linux", "cpu": "none" }, "sha512-IajOmO+KJK23bj52dFSNCMsz1QP1DqM6cwLUv3W1QwyxkyIWecfafnI555fvSGqEKwjMXVLokcV5ygHW5b3Jbg=="],++ "@esbuild/linux-ppc64": ["@esbuild/[email protected]", "", { "os": "linux", "cpu": "ppc64" }, "sha512-1hHV/Z4OEfMwpLO8rp7CvlhBDnjsC3CttJXIhBi+5Aj5r+MBvy4egg7wCbe//hSsT+RvDAG7s81tAvpL2XAE4w=="],++ "@esbuild/linux-riscv64": ["@esbuild/[email protected]", "", { "os": "linux", "cpu": "none" }, "sha512-2HdXDMd9GMgTGrPWnJzP2ALSokE/0O5HhTUvWIbD3YdjME8JwvSCnNGBnTThKGEB91OZhzrJ4qIIxk/SBmyDDA=="],++ "@esbuild/linux-s390x": ["@esbuild/[email protected]", "", { "os": "linux", "cpu": "s390x" }, "sha512-zus5sxzqBJD3eXxwvjN1yQkRepANgxE9lgOW2qLnmr8ikMTphkjgXu1HR01K4FJg8h1kEEDAqDcZQtbrRnB41A=="],++ "@esbuild/linux-x64": ["@esbuild/[email protected]", "", { "os": "linux", "cpu": "x64" }, "sha512-1rYdTpyv03iycF1+BhzrzQJCdOuAOtaqHTWJZCWvijKD2N5Xu0TtVC8/+1faWqcP9iBCWOmjmhoH94dH82BxPQ=="],++ "@esbuild/netbsd-x64": ["@esbuild/[email protected]", "", { "os": "none", "cpu": "x64" }, "sha512-Woi2MXzXjMULccIwMnLciyZH4nCIMpWQAs049KEeMvOcNADVxo0UBIQPfSmxB3CWKedngg7sWZdLvLczpe0tLg=="],++ "@esbuild/openbsd-x64": ["@esbuild/[email protected]", "", { "os": "openbsd", "cpu": "x64" }, "sha512-HLNNw99xsvx12lFBUwoT8EVCsSvRNDVxNpjZ7bPn947b8gJPzeHWyNVhFsaerc0n3TsbOINvRP2byTZ5LKezow=="],++ "@esbuild/sunos-x64": ["@esbuild/[email protected]", "", { "os": "sunos", "cpu": "x64" }, "sha512-6+gjmFpfy0BHU5Tpptkuh8+uw3mnrvgs+dSPQXQOv3ekbordwnzTVEb4qnIvQcYXq6gzkyTnoZ9dZG+D4garKg=="],++ "@esbuild/win32-arm64": ["@esbuild/[email protected]", "", { "os": "win32", "cpu": "arm64" }, "sha512-Z0gOTd75VvXqyq7nsl93zwahcTROgqvuAcYDUr+vOv8uHhNSKROyU961kgtCD1e95IqPKSQKH7tBTslnS3tA8A=="],++ "@esbuild/win32-ia32": ["@esbuild/[email protected]", "", { "os": "win32", "cpu": "ia32" }, "sha512-SWXFF1CL2RVNMaVs+BBClwtfZSvDgtL//G/smwAc5oVK/UPu2Gu9tIaRgFmYFFKrmg3SyAjSrElf0TiJ1v8fYA=="],++ "@esbuild/win32-x64": ["@esbuild/[email protected]", "", { "os": "win32", "cpu": "x64" }, "sha512-tQd/1efJuzPC6rCFwEvLtci/xNFcTZknmXs98FYDfGE4wP9ClFV98nyKrzJKVPMhdDnjzLhdUyMX4PsQAPjwIw=="],++ "@floating-ui/core": ["@floating-ui/[email protected]", "", { "dependencies": { "@floating-ui/utils": "^0.2.11" } }, "sha512-1Ih4WTWyw0+lKyFMcBHGbb5U5FtuHJuujoyyr5zTaWS5EYMeT6Jb2AuDeftsCsEuchO+mM2ij5+q9crhydzLhQ=="],++ "@floating-ui/dom": ["@floating-ui/[email protected]", "", { "dependencies": { "@floating-ui/core": "^1.7.5", "@floating-ui/utils": "^0.2.11" } }, "sha512-9gZSAI5XM36880PPMm//9dfiEngYoC6Am2izES1FF406YFsjvyBMmeJ2g4SAju3xWwtuynNRFL2s9hgxpLI5SQ=="],++ "@floating-ui/react-dom": ["@floating-ui/[email protected]", "", { "dependencies": { "@floating-ui/dom": "^1.7.6" }, "peerDependencies": { "react": ">=16.8.0", "react-dom": ">=16.8.0" } }, "sha512-cC52bHwM/n/CxS87FH0yWdngEZrjdtLW/qVruo68qg+prK7ZQ4YGdut2GyDVpoGeAYe/h899rVeOVm6Oi40k2A=="],++ "@floating-ui/utils": ["@floating-ui/[email protected]", "", {}, "sha512-RiB/yIh78pcIxl6lLMG0CgBXAZ2Y0eVHqMPYugu+9U0AeT6YBeiJpf7lbdJNIugFP5SIjwNRgo4DhR1Qxi26Gg=="],++ "@jridgewell/gen-mapping": ["@jridgewell/[email protected]", "", { "dependencies": { "@jridgewell/sourcemap-codec": "^1.5.0", "@jridgewell/trace-mapping": "^0.3.24" } }, "sha512-2kkt/7niJ6MgEPxF0bYdQ6etZaA+fQvDcLKckhy1yIQOzaoKjBBjSj63/aLVjYE3qhRt5dvM+uUyfCg6UKCBbA=="],++ "@jridgewell/remapping": ["@jridgewell/[email protected]", "", { "dependencies": { "@jridgewell/gen-mapping": "^0.3.5", "@jridgewell/trace-mapping": "^0.3.24" } }, "sha512-LI9u/+laYG4Ds1TDKSJW2YPrIlcVYOwi2fUC6xB43lueCjgxV4lffOCZCtYFiH6TNOX+tQKXx97T4IKHbhyHEQ=="],++ "@jridgewell/resolve-uri": ["@jridgewell/[email protected]", "", {}, "sha512-bRISgCIjP20/tbWSPWMEi54QVPRZExkuD9lJL+UIxUKtwVJA8wW1Trb1jMs1RFXo1CBTNZ/5hpC9QvmKWdopKw=="],++ "@jridgewell/sourcemap-codec": ["@jridgewell/[email protected]", "", {}, "sha512-cYQ9310grqxueWbl+WuIUIaiUaDcj7WOq5fVhEljNVgRfOUhY9fy2zTvfoqWsnebh8Sl70VScFbICvJnLKB0Og=="],++ "@jridgewell/trace-mapping": ["@jridgewell/[email protected]", "", { "dependencies": { "@jridgewell/resolve-uri": "^3.1.0", "@jridgewell/sourcemap-codec": "^1.4.14" } }, "sha512-zzNR+SdQSDJzc8joaeP8QQoCQr8NuYx2dIIytl1QeBEZHJ9uW6hebsrYgbz8hJwUQao3TWCMtmfV8Nu1twOLAw=="],++ "@mediapipe/tasks-vision": ["@mediapipe/[email protected]", "", {}, "sha512-CZWV/q6TTe8ta61cZXjfnnHsfWIdFhms03M9T7Cnd5y2mdpylJM0rF1qRq+wsQVRMLz1OYPVEBU9ph2Bx8cxrg=="],++ "@monogrid/gainmap-js": ["@monogrid/[email protected]", "", { "dependencies": { "promise-worker-transferable": "^1.0.4" }, "peerDependencies": { "three": ">= 0.159.0" } }, "sha512-2Z0FATFHaoYJ8b+Y4y4Hgfn3FRFwuU5zRrk+9dFWp4uGAdHGqVEdP7HP+gLA3X469KXHmfupJaUbKo1b/aDKIg=="],++ "@nodelib/fs.scandir": ["@nodelib/[email protected]", "", { "dependencies": { "@nodelib/fs.stat": "2.0.5", "run-parallel": "^1.1.9" } }, "sha512-vq24Bq3ym5HEQm2NKCr3yXDwjc7vTsEThRDnkp2DK9p1uqLR+DHurm/NOTo0KG7HYHU7eppKZj3MyqYuMBf62g=="],++ "@nodelib/fs.stat": ["@nodelib/[email protected]", "", {}, "sha512-RkhPPp2zrqDAQA/2jNhnztcPAlv64XdhIp7a7454A5ovI7Bukxgt7MX7udwAu3zg1DcpPU0rz3VV1SeaqvY4+A=="],++ "@nodelib/fs.walk": ["@nodelib/[email protected]", "", { "dependencies": { "@nodelib/fs.scandir": "2.1.5", "fastq": "^1.6.0" } }, "sha512-oGB+UxlgWcgQkgwo8GcEGwemoTFt3FIO9ababBmaGwXIoBKZ+GTy0pP185beGg7Llih/NSHSV2XAs1lnznocSg=="],++ "@phosphor-icons/react": ["@phosphor-icons/[email protected]", "", { "peerDependencies": { "react": ">= 16.8", "react-dom": ">= 16.8" } }, "sha512-vt8Tvq8GLjheAZZYa+YG/pW7HDbov8El/MANW8pOAz4eGxrwhnbfrQZq0Cp4q8zBEu8NIhHdnr+r8thnfRSNYA=="],++ "@radix-ui/colors": ["@radix-ui/[email protected]", "", {}, "sha512-FUOsGBkHrYJwCSEtWRCIfQbZG7q1e6DgxCIOe1SUQzDe/7rXXeA47s8yCn6fuTNQAj1Zq4oTFi9Yjp3wzElcxg=="],++ "@radix-ui/number": ["@radix-ui/[email protected]", "", {}, "sha512-MkKCwxlXTgz6CFoJx3pCwn07GKp36+aZyu/u2Ln2VrA5DcdyCZkASEDBTd8x5whTQQL5CiYf4prXKLcgQdv29g=="],++ "@radix-ui/primitive": ["@radix-ui/[email protected]", "", {}, "sha512-JTF99U/6XIjCBo0wqkU5sK10glYe27MRRsfwoiq5zzOEZLHU3A3KCMa5X/azekYRCJ0HlwI0crAXS/5dEHTzDg=="],++ "@radix-ui/react-accessible-icon": ["@radix-ui/[email protected]", "", { "dependencies": { "@radix-ui/react-visually-hidden": "1.2.3" }, "peerDependencies": { "@types/react": "*", "@types/react-dom": "*", "react": "^16.8 || ^17.0 || ^18.0 || ^19.0 || ^19.0.0-rc", "react-dom": "^16.8 || ^17.0 || ^18.0 || ^19.0 || ^19.0.0-rc" }, "optionalPeers": ["@types/react", "@types/react-dom"] }, "sha512-XM+E4WXl0OqUJFovy6GjmxxFyx9opfCAIUku4dlKRd5YEPqt4kALOkQOp0Of6reHuUkJuiPBEc5k0o4z4lTC8A=="],++ "@radix-ui/react-accordion": ["@radix-ui/[email protected]", "", { "dependencies": { "@radix-ui/primitive": "1.1.3", "@radix-ui/react-collapsible": "1.1.12", "@radix-ui/react-collection": "1.1.7", "@radix-ui/react-compose-refs": "1.1.2", "@radix-ui/react-context": "1.1.2", "@radix-ui/react-direction": "1.1.1", "@radix-ui/react-id": "1.1.1", "@radix-ui/react-primitive": "2.1.3", "@radix-ui/react-use-controllable-state": "1.2.2" }, "peerDependencies": { "@types/react": "*", "@types/react-dom": "*", "react": "^16.8 || ^17.0 || ^18.0 || ^19.0 || ^19.0.0-rc", "react-dom": "^16.8 || ^17.0 || ^18.0 || ^19.0 || ^19.0.0-rc" }, "optionalPeers": ["@types/react", "@types/react-dom"] }, "sha512-T4nygeh9YE9dLRPhAHSeOZi7HBXo+0kYIPJXayZfvWOWA0+n3dESrZbjfDPUABkUNym6Hd+f2IR113To8D2GPA=="],++ "@radix-ui/react-alert-dialog": ["@radix-ui/[email protected]", "", { "dependencies": { "@radix-ui/primitive": "1.1.3", "@radix-ui/react-compose-refs": "1.1.2", "@radix-ui/react-context": "1.1.2", "@radix-ui/react-dialog": "1.1.15", "@radix-ui/react-primitive": "2.1.3", "@radix-ui/react-slot": "1.2.3" }, "peerDependencies": { "@types/react": "*", "@types/react-dom": "*", "react": "^16.8 || ^17.0 || ^18.0 || ^19.0 || ^19.0.0-rc", "react-dom": "^16.8 || ^17.0 || ^18.0 || ^19.0 || ^19.0.0-rc" }, "optionalPeers": ["@types/react", "@types/react-dom"] }, "sha512-oTVLkEw5GpdRe29BqJ0LSDFWI3qu0vR1M0mUkOQWDIUnY/QIkLpgDMWuKxP94c2NAC2LGcgVhG1ImF3jkZ5wXw=="],++ "@radix-ui/react-arrow": ["@radix-ui/[email protected]", "", { "dependencies": { "@radix-ui/react-primitive": "2.1.3" }, "peerDependencies": { "@types/react": "*", "@types/react-dom": "*", "react": "^16.8 || ^17.0 || ^18.0 || ^19.0 || ^19.0.0-rc", "react-dom": "^16.8 || ^17.0 || ^18.0 || ^19.0 || ^19.0.0-rc" }, "optionalPeers": ["@types/react", "@types/react-dom"] }, "sha512-F+M1tLhO+mlQaOWspE8Wstg+z6PwxwRd8oQ8IXceWz92kfAmalTRf0EjrouQeo7QssEPfCn05B4Ihs1K9WQ/7w=="],++ "@radix-ui/react-aspect-ratio": ["@radix-ui/[email protected]", "", { "dependencies": { "@radix-ui/react-primitive": "2.1.3" }, "peerDependencies": { "@types/react": "*", "@types/react-dom": "*", "react": "^16.8 || ^17.0 || ^18.0 || ^19.0 || ^19.0.0-rc", "react-dom": "^16.8 || ^17.0 || ^18.0 || ^19.0 || ^19.0.0-rc" }, "optionalPeers": ["@types/react", "@types/react-dom"] }, "sha512-Yq6lvO9HQyPwev1onK1daHCHqXVLzPhSVjmsNjCa2Zcxy2f7uJD2itDtxknv6FzAKCwD1qQkeVDmX/cev13n/g=="],++ "@radix-ui/react-avatar": ["@radix-ui/[email protected]", "", { "dependencies": { "@radix-ui/react-context": "1.1.2", "@radix-ui/react-primitive": "2.1.3", "@radix-ui/react-use-callback-ref": "1.1.1", "@radix-ui/react-use-is-hydrated": "0.1.0", "@radix-ui/react-use-layout-effect": "1.1.1" }, "peerDependencies": { "@types/react": "*", "@types/react-dom": "*", "react": "^16.8 || ^17.0 || ^18.0 || ^19.0 || ^19.0.0-rc", "react-dom": "^16.8 || ^17.0 || ^18.0 || ^19.0 || ^19.0.0-rc" }, "optionalPeers": ["@types/react", "@types/react-dom"] }, "sha512-V8piFfWapM5OmNCXTzVQY+E1rDa53zY+MQ4Y7356v4fFz6vqCyUtIz2rUD44ZEdwg78/jKmMJHj07+C/Z/rcog=="],++ "@radix-ui/react-checkbox": ["@radix-ui/[email protected]", "", { "dependencies": { "@radix-ui/primitive": "1.1.3", "@radix-ui/react-compose-refs": "1.1.2", "@radix-ui/react-context": "1.1.2", "@radix-ui/react-presence": "1.1.5", "@radix-ui/react-primitive": "2.1.3", "@radix-ui/react-use-controllable-state": "1.2.2", "@radix-ui/react-use-previous": "1.1.1", "@radix-ui/react-use-size": "1.1.1" }, "peerDependencies": { "@types/react": "*", "@types/react-dom": "*", "react": "^16.8 || ^17.0 || ^18.0 || ^19.0 || ^19.0.0-rc", "react-dom": "^16.8 || ^17.0 || ^18.0 || ^19.0 || ^19.0.0-rc" }, "optionalPeers": ["@types/react", "@types/react-dom"] }, "sha512-wBbpv+NQftHDdG86Qc0pIyXk5IR3tM8Vd0nWLKDcX8nNn4nXFOFwsKuqw2okA/1D/mpaAkmuyndrPJTYDNZtFw=="],++ "@radix-ui/react-collapsible": ["@radix-ui/[email protected]", "", { "dependencies": { "@radix-ui/primitive": "1.1.3", "@radix-ui/react-compose-refs": "1.1.2", "@radix-ui/react-context": "1.1.2", "@radix-ui/react-id": "1.1.1", "@radix-ui/react-presence": "1.1.5", "@radix-ui/react-primitive": "2.1.3", "@radix-ui/react-use-controllable-state": "1.2.2", "@radix-ui/react-use-layout-effect": "1.1.1" }, "peerDependencies": { "@types/react": "*", "@types/react-dom": "*", "react": "^16.8 || ^17.0 || ^18.0 || ^19.0 || ^19.0.0-rc", "react-dom": "^16.8 || ^17.0 || ^18.0 || ^19.0 || ^19.0.0-rc" }, "optionalPeers": ["@types/react", "@types/react-dom"] }, "sha512-Uu+mSh4agx2ib1uIGPP4/CKNULyajb3p92LsVXmH2EHVMTfZWpll88XJ0j4W0z3f8NK1eYl1+Mf/szHPmcHzyA=="],++ "@radix-ui/react-collection": ["@radix-ui/[email protected]", "", { "dependencies": { "@radix-ui/react-compose-refs": "1.1.2", "@radix-ui/react-context": "1.1.2", "@radix-ui/react-primitive": "2.1.3", "@radix-ui/react-slot": "1.2.3" }, "peerDependencies": { "@types/react": "*", "@types/react-dom": "*", "react": "^16.8 || ^17.0 || ^18.0 || ^19.0 || ^19.0.0-rc", "react-dom": "^16.8 || ^17.0 || ^18.0 || ^19.0 || ^19.0.0-rc" }, "optionalPeers": ["@types/react", "@types/react-dom"] }, "sha512-Fh9rGN0MoI4ZFUNyfFVNU4y9LUz93u9/0K+yLgA2bwRojxM8JU1DyvvMBabnZPBgMWREAJvU2jjVzq+LrFUglw=="],++ "@radix-ui/react-compose-refs": ["@radix-ui/[email protected]", "", { "peerDependencies": { "@types/react": "*", "react": "^16.8 || ^17.0 || ^18.0 || ^19.0 || ^19.0.0-rc" }, "optionalPeers": ["@types/react"] }, "sha512-z4eqJvfiNnFMHIIvXP3CY57y2WJs5g2v3X0zm9mEJkrkNv4rDxu+sg9Jh8EkXyeqBkB7SOcboo9dMVqhyrACIg=="],++ "@radix-ui/react-context": ["@radix-ui/[email protected]", "", { "peerDependencies": { "@types/react": "*", "react": "^16.8 || ^17.0 || ^18.0 || ^19.0 || ^19.0.0-rc" }, "optionalPeers": ["@types/react"] }, "sha512-jCi/QKUM2r1Ju5a3J64TH2A5SpKAgh0LpknyqdQ4m6DCV0xJ2HG1xARRwNGPQfi1SLdLWZ1OJz6F4OMBBNiGJA=="],++ "@radix-ui/react-context-menu": ["@radix-ui/[email protected]", "", { "dependencies": { "@radix-ui/primitive": "1.1.3", "@radix-ui/react-context": "1.1.2", "@radix-ui/react-menu": "2.1.16", "@radix-ui/react-primitive": "2.1.3", "@radix-ui/react-use-callback-ref": "1.1.1", "@radix-ui/react-use-controllable-state": "1.2.2" }, "peerDependencies": { "@types/react": "*", "@types/react-dom": "*", "react": "^16.8 || ^17.0 || ^18.0 || ^19.0 || ^19.0.0-rc", "react-dom": "^16.8 || ^17.0 || ^18.0 || ^19.0 || ^19.0.0-rc" }, "optionalPeers": ["@types/react", "@types/react-dom"] }, "sha512-O8morBEW+HsVG28gYDZPTrT9UUovQUlJue5YO836tiTJhuIWBm/zQHc7j388sHWtdH/xUZurK9olD2+pcqx5ww=="],++ "@radix-ui/react-dialog": ["@radix-ui/[email protected]", "", { "dependencies": { "@radix-ui/primitive": "1.1.3", "@radix-ui/react-compose-refs": "1.1.2", "@radix-ui/react-context": "1.1.2", "@radix-ui/react-dismissable-layer": "1.1.11", "@radix-ui/react-focus-guards": "1.1.3", "@radix-ui/react-focus-scope": "1.1.7", "@radix-ui/react-id": "1.1.1", "@radix-ui/react-portal": "1.1.9", "@radix-ui/react-presence": "1.1.5", "@radix-ui/react-primitive": "2.1.3", "@radix-ui/react-slot": "1.2.3", "@radix-ui/react-use-controllable-state": "1.2.2", "aria-hidden": "^1.2.4", "react-remove-scroll": "^2.6.3" }, "peerDependencies": { "@types/react": "*", "@types/react-dom": "*", "react": "^16.8 || ^17.0 || ^18.0 || ^19.0 || ^19.0.0-rc", "react-dom": "^16.8 || ^17.0 || ^18.0 || ^19.0 || ^19.0.0-rc" }, "optionalPeers": ["@types/react", "@types/react-dom"] }, "sha512-TCglVRtzlffRNxRMEyR36DGBLJpeusFcgMVD9PZEzAKnUs1lKCgX5u9BmC2Yg+LL9MgZDugFFs1Vl+Jp4t/PGw=="],++ "@radix-ui/react-direction": ["@radix-ui/[email protected]", "", { "peerDependencies": { "@types/react": "*", "react": "^16.8 || ^17.0 || ^18.0 || ^19.0 || ^19.0.0-rc" }, "optionalPeers": ["@types/react"] }, "sha512-1UEWRX6jnOA2y4H5WczZ44gOOjTEmlqv1uNW4GAJEO5+bauCBhv8snY65Iw5/VOS/ghKN9gr2KjnLKxrsvoMVw=="],++ "@radix-ui/react-dismissable-layer": ["@radix-ui/[email protected]", "", { "dependencies": { "@radix-ui/primitive": "1.1.3", "@radix-ui/react-compose-refs": "1.1.2", "@radix-ui/react-primitive": "2.1.3", "@radix-ui/react-use-callback-ref": "1.1.1", "@radix-ui/react-use-escape-keydown": "1.1.1" }, "peerDependencies": { "@types/react": "*", "@types/react-dom": "*", "react": "^16.8 || ^17.0 || ^18.0 || ^19.0 || ^19.0.0-rc", "react-dom": "^16.8 || ^17.0 || ^18.0 || ^19.0 || ^19.0.0-rc" }, "optionalPeers": ["@types/react", "@types/react-dom"] }, "sha512-Nqcp+t5cTB8BinFkZgXiMJniQH0PsUt2k51FUhbdfeKvc4ACcG2uQniY/8+h1Yv6Kza4Q7lD7PQV0z0oicE0Mg=="],++ "@radix-ui/react-dropdown-menu": ["@radix-ui/[email protected]", "", { "dependencies": { "@radix-ui/primitive": "1.1.3", "@radix-ui/react-compose-refs": "1.1.2", "@radix-ui/react-context": "1.1.2", "@radix-ui/react-id": "1.1.1", "@radix-ui/react-menu": "2.1.16", "@radix-ui/react-primitive": "2.1.3", "@radix-ui/react-use-controllable-state": "1.2.2" }, "peerDependencies": { "@types/react": "*", "@types/react-dom": "*", "react": "^16.8 || ^17.0 || ^18.0 || ^19.0 || ^19.0.0-rc", "react-dom": "^16.8 || ^17.0 || ^18.0 || ^19.0 || ^19.0.0-rc" }, "optionalPeers": ["@types/react", "@types/react-dom"] }, "sha512-1PLGQEynI/3OX/ftV54COn+3Sud/Mn8vALg2rWnBLnRaGtJDduNW/22XjlGgPdpcIbiQxjKtb7BkcjP00nqfJw=="],++ "@radix-ui/react-focus-guards": ["@radix-ui/[email protected]", "", { "peerDependencies": { "@types/react": "*", "react": "^16.8 || ^17.0 || ^18.0 || ^19.0 || ^19.0.0-rc" }, "optionalPeers": ["@types/react"] }, "sha512-0rFg/Rj2Q62NCm62jZw0QX7a3sz6QCQU0LpZdNrJX8byRGaGVTqbrW9jAoIAHyMQqsNpeZ81YgSizOt5WXq0Pw=="],++ "@radix-ui/react-focus-scope": ["@radix-ui/[email protected]", "", { "dependencies": { "@radix-ui/react-compose-refs": "1.1.2", "@radix-ui/react-primitive": "2.1.3", "@radix-ui/react-use-callback-ref": "1.1.1" }, "peerDependencies": { "@types/react": "*", "@types/react-dom": "*", "react": "^16.8 || ^17.0 || ^18.0 || ^19.0 || ^19.0.0-rc", "react-dom": "^16.8 || ^17.0 || ^18.0 || ^19.0 || ^19.0.0-rc" }, "optionalPeers": ["@types/react", "@types/react-dom"] }, "sha512-t2ODlkXBQyn7jkl6TNaw/MtVEVvIGelJDCG41Okq/KwUsJBwQ4XVZsHAVUkK4mBv3ewiAS3PGuUWuY2BoK4ZUw=="],++ "@radix-ui/react-form": ["@radix-ui/[email protected]", "", { "dependencies": { "@radix-ui/primitive": "1.1.3", "@radix-ui/react-compose-refs": "1.1.2", "@radix-ui/react-context": "1.1.2", "@radix-ui/react-id": "1.1.1", "@radix-ui/react-label": "2.1.7", "@radix-ui/react-primitive": "2.1.3" }, "peerDependencies": { "@types/react": "*", "@types/react-dom": "*", "react": "^16.8 || ^17.0 || ^18.0 || ^19.0 || ^19.0.0-rc", "react-dom": "^16.8 || ^17.0 || ^18.0 || ^19.0 || ^19.0.0-rc" }, "optionalPeers": ["@types/react", "@types/react-dom"] }, "sha512-QM70k4Zwjttifr5a4sZFts9fn8FzHYvQ5PiB19O2HsYibaHSVt9fH9rzB0XZo/YcM+b7t/p7lYCT/F5eOeF5yQ=="],++ "@radix-ui/react-hover-card": ["@radix-ui/[email protected]", "", { "dependencies": { "@radix-ui/primitive": "1.1.3", "@radix-ui/react-compose-refs": "1.1.2", "@radix-ui/react-context": "1.1.2", "@radix-ui/react-dismissable-layer": "1.1.11", "@radix-ui/react-popper": "1.2.8", "@radix-ui/react-portal": "1.1.9", "@radix-ui/react-presence": "1.1.5", "@radix-ui/react-primitive": "2.1.3", "@radix-ui/react-use-controllable-state": "1.2.2" }, "peerDependencies": { "@types/react": "*", "@types/react-dom": "*", "react": "^16.8 || ^17.0 || ^18.0 || ^19.0 || ^19.0.0-rc", "react-dom": "^16.8 || ^17.0 || ^18.0 || ^19.0 || ^19.0.0-rc" }, "optionalPeers": ["@types/react", "@types/react-dom"] }, "sha512-qgTkjNT1CfKMoP0rcasmlH2r1DAiYicWsDsufxl940sT2wHNEWWv6FMWIQXWhVdmC1d/HYfbhQx60KYyAtKxjg=="],++ "@radix-ui/react-id": ["@radix-ui/[email protected]", "", { "dependencies": { "@radix-ui/react-use-layout-effect": "1.1.1" }, "peerDependencies": { "@types/react": "*", "react": "^16.8 || ^17.0 || ^18.0 || ^19.0 || ^19.0.0-rc" }, "optionalPeers": ["@types/react"] }, "sha512-kGkGegYIdQsOb4XjsfM97rXsiHaBwco+hFI66oO4s9LU+PLAC5oJ7khdOVFxkhsmlbpUqDAvXw11CluXP+jkHg=="],++ "@radix-ui/react-label": ["@radix-ui/[email protected]", "", { "dependencies": { "@radix-ui/react-primitive": "2.1.3" }, "peerDependencies": { "@types/react": "*", "@types/react-dom": "*", "react": "^16.8 || ^17.0 || ^18.0 || ^19.0 || ^19.0.0-rc", "react-dom": "^16.8 || ^17.0 || ^18.0 || ^19.0 || ^19.0.0-rc" }, "optionalPeers": ["@types/react", "@types/react-dom"] }, "sha512-YT1GqPSL8kJn20djelMX7/cTRp/Y9w5IZHvfxQTVHrOqa2yMl7i/UfMqKRU5V7mEyKTrUVgJXhNQPVCG8PBLoQ=="],++ "@radix-ui/react-menu": ["@radix-ui/[email protected]", "", { "dependencies": { "@radix-ui/primitive": "1.1.3", "@radix-ui/react-collection": "1.1.7", "@radix-ui/react-compose-refs": "1.1.2", "@radix-ui/react-context": "1.1.2", "@radix-ui/react-direction": "1.1.1", "@radix-ui/react-dismissable-layer": "1.1.11", "@radix-ui/react-focus-guards": "1.1.3", "@radix-ui/react-focus-scope": "1.1.7", "@radix-ui/react-id": "1.1.1", "@radix-ui/react-popper": "1.2.8", "@radix-ui/react-portal": "1.1.9", "@radix-ui/react-presence": "1.1.5", "@radix-ui/react-primitive": "2.1.3", "@radix-ui/react-roving-focus": "1.1.11", "@radix-ui/react-slot": "1.2.3", "@radix-ui/react-use-callback-ref": "1.1.1", "aria-hidden": "^1.2.4", "react-remove-scroll": "^2.6.3" }, "peerDependencies": { "@types/react": "*", "@types/react-dom": "*", "react": "^16.8 || ^17.0 || ^18.0 || ^19.0 || ^19.0.0-rc", "react-dom": "^16.8 || ^17.0 || ^18.0 || ^19.0 || ^19.0.0-rc" }, "optionalPeers": ["@types/react", "@types/react-dom"] }, "sha512-72F2T+PLlphrqLcAotYPp0uJMr5SjP5SL01wfEspJbru5Zs5vQaSHb4VB3ZMJPimgHHCHG7gMOeOB9H3Hdmtxg=="],++ "@radix-ui/react-menubar": ["@radix-ui/[email protected]", "", { "dependencies": { "@radix-ui/primitive": "1.1.3", "@radix-ui/react-collection": "1.1.7", "@radix-ui/react-compose-refs": "1.1.2", "@radix-ui/react-context": "1.1.2", "@radix-ui/react-direction": "1.1.1", "@radix-ui/react-id": "1.1.1", "@radix-ui/react-menu": "2.1.16", "@radix-ui/react-primitive": "2.1.3", "@radix-ui/react-roving-focus": "1.1.11", "@radix-ui/react-use-controllable-state": "1.2.2" }, "peerDependencies": { "@types/react": "*", "@types/react-dom": "*", "react": "^16.8 || ^17.0 || ^18.0 || ^19.0 || ^19.0.0-rc", "react-dom": "^16.8 || ^17.0 || ^18.0 || ^19.0 || ^19.0.0-rc" }, "optionalPeers": ["@types/react", "@types/react-dom"] }, "sha512-EB1FktTz5xRRi2Er974AUQZWg2yVBb1yjip38/lgwtCVRd3a+maUoGHN/xs9Yv8SY8QwbSEb+YrxGadVWbEutA=="],++ "@radix-ui/react-navigation-menu": ["@radix-ui/[email protected]", "", { "dependencies": { "@radix-ui/primitive": "1.1.3", "@radix-ui/react-collection": "1.1.7", "@radix-ui/react-compose-refs": "1.1.2", "@radix-ui/react-context": "1.1.2", "@radix-ui/react-direction": "1.1.1", "@radix-ui/react-dismissable-layer": "1.1.11", "@radix-ui/react-id": "1.1.1", "@radix-ui/react-presence": "1.1.5", "@radix-ui/react-primitive": "2.1.3", "@radix-ui/react-use-callback-ref": "1.1.1", "@radix-ui/react-use-controllable-state": "1.2.2", "@radix-ui/react-use-layout-effect": "1.1.1", "@radix-ui/react-use-previous": "1.1.1", "@radix-ui/react-visually-hidden": "1.2.3" }, "peerDependencies": { "@types/react": "*", "@types/react-dom": "*", "react": "^16.8 || ^17.0 || ^18.0 || ^19.0 || ^19.0.0-rc", "react-dom": "^16.8 || ^17.0 || ^18.0 || ^19.0 || ^19.0.0-rc" }, "optionalPeers": ["@types/react", "@types/react-dom"] }, "sha512-YB9mTFQvCOAQMHU+C/jVl96WmuWeltyUEpRJJky51huhds5W2FQr1J8D/16sQlf0ozxkPK8uF3niQMdUwZPv5w=="],++ "@radix-ui/react-one-time-password-field": ["@radix-ui/[email protected]", "", { "dependencies": { "@radix-ui/number": "1.1.1", "@radix-ui/primitive": "1.1.3", "@radix-ui/react-collection": "1.1.7", "@radix-ui/react-compose-refs": "1.1.2", "@radix-ui/react-context": "1.1.2", "@radix-ui/react-direction": "1.1.1", "@radix-ui/react-primitive": "2.1.3", "@radix-ui/react-roving-focus": "1.1.11", "@radix-ui/react-use-controllable-state": "1.2.2", "@radix-ui/react-use-effect-event": "0.0.2", "@radix-ui/react-use-is-hydrated": "0.1.0", "@radix-ui/react-use-layout-effect": "1.1.1" }, "peerDependencies": { "@types/react": "*", "@types/react-dom": "*", "react": "^16.8 || ^17.0 || ^18.0 || ^19.0 || ^19.0.0-rc", "react-dom": "^16.8 || ^17.0 || ^18.0 || ^19.0 || ^19.0.0-rc" }, "optionalPeers": ["@types/react", "@types/react-dom"] }, "sha512-ycS4rbwURavDPVjCb5iS3aG4lURFDILi6sKI/WITUMZ13gMmn/xGjpLoqBAalhJaDk8I3UbCM5GzKHrnzwHbvg=="],++ "@radix-ui/react-password-toggle-field": ["@radix-ui/[email protected]", "", { "dependencies": { "@radix-ui/primitive": "1.1.3", "@radix-ui/react-compose-refs": "1.1.2", "@radix-ui/react-context": "1.1.2", "@radix-ui/react-id": "1.1.1", "@radix-ui/react-primitive": "2.1.3", "@radix-ui/react-use-controllable-state": "1.2.2", "@radix-ui/react-use-effect-event": "0.0.2", "@radix-ui/react-use-is-hydrated": "0.1.0" }, "peerDependencies": { "@types/react": "*", "@types/react-dom": "*", "react": "^16.8 || ^17.0 || ^18.0 || ^19.0 || ^19.0.0-rc", "react-dom": "^16.8 || ^17.0 || ^18.0 || ^19.0 || ^19.0.0-rc" }, "optionalPeers": ["@types/react", "@types/react-dom"] }, "sha512-/UuCrDBWravcaMix4TdT+qlNdVwOM1Nck9kWx/vafXsdfj1ChfhOdfi3cy9SGBpWgTXwYCuboT/oYpJy3clqfw=="],++ "@radix-ui/react-popover": ["@radix-ui/[email protected]", "", { "dependencies": { "@radix-ui/primitive": "1.1.3", "@radix-ui/react-compose-refs": "1.1.2", "@radix-ui/react-context": "1.1.2", "@radix-ui/react-dismissable-layer": "1.1.11", "@radix-ui/react-focus-guards": "1.1.3", "@radix-ui/react-focus-scope": "1.1.7", "@radix-ui/react-id": "1.1.1", "@radix-ui/react-popper": "1.2.8", "@radix-ui/react-portal": "1.1.9", "@radix-ui/react-presence": "1.1.5", "@radix-ui/react-primitive": "2.1.3", "@radix-ui/react-slot": "1.2.3", "@radix-ui/react-use-controllable-state": "1.2.2", "aria-hidden": "^1.2.4", "react-remove-scroll": "^2.6.3" }, "peerDependencies": { "@types/react": "*", "@types/react-dom": "*", "react": "^16.8 || ^17.0 || ^18.0 || ^19.0 || ^19.0.0-rc", "react-dom": "^16.8 || ^17.0 || ^18.0 || ^19.0 || ^19.0.0-rc" }, "optionalPeers": ["@types/react", "@types/react-dom"] }, "sha512-kr0X2+6Yy/vJzLYJUPCZEc8SfQcf+1COFoAqauJm74umQhta9M7lNJHP7QQS3vkvcGLQUbWpMzwrXYwrYztHKA=="],++ "@radix-ui/react-popper": ["@radix-ui/[email protected]", "", { "dependencies": { "@floating-ui/react-dom": "^2.0.0", "@radix-ui/react-arrow": "1.1.7", "@radix-ui/react-compose-refs": "1.1.2", "@radix-ui/react-context": "1.1.2", "@radix-ui/react-primitive": "2.1.3", "@radix-ui/react-use-callback-ref": "1.1.1", "@radix-ui/react-use-layout-effect": "1.1.1", "@radix-ui/react-use-rect": "1.1.1", "@radix-ui/react-use-size": "1.1.1", "@radix-ui/rect": "1.1.1" }, "peerDependencies": { "@types/react": "*", "@types/react-dom": "*", "react": "^16.8 || ^17.0 || ^18.0 || ^19.0 || ^19.0.0-rc", "react-dom": "^16.8 || ^17.0 || ^18.0 || ^19.0 || ^19.0.0-rc" }, "optionalPeers": ["@types/react", "@types/react-dom"] }, "sha512-0NJQ4LFFUuWkE7Oxf0htBKS6zLkkjBH+hM1uk7Ng705ReR8m/uelduy1DBo0PyBXPKVnBA6YBlU94MBGXrSBCw=="],++ "@radix-ui/react-portal": ["@radix-ui/[email protected]", "", { "dependencies": { "@radix-ui/react-primitive": "2.1.3", "@radix-ui/react-use-layout-effect": "1.1.1" }, "peerDependencies": { "@types/react": "*", "@types/react-dom": "*", "react": "^16.8 || ^17.0 || ^18.0 || ^19.0 || ^19.0.0-rc", "react-dom": "^16.8 || ^17.0 || ^18.0 || ^19.0 || ^19.0.0-rc" }, "optionalPeers": ["@types/react", "@types/react-dom"] }, "sha512-bpIxvq03if6UNwXZ+HTK71JLh4APvnXntDc6XOX8UVq4XQOVl7lwok0AvIl+b8zgCw3fSaVTZMpAPPagXbKmHQ=="],++ "@radix-ui/react-presence": ["@radix-ui/[email protected]", "", { "dependencies": { "@radix-ui/react-compose-refs": "1.1.2", "@radix-ui/react-use-layout-effect": "1.1.1" }, "peerDependencies": { "@types/react": "*", "@types/react-dom": "*", "react": "^16.8 || ^17.0 || ^18.0 || ^19.0 || ^19.0.0-rc", "react-dom": "^16.8 || ^17.0 || ^18.0 || ^19.0 || ^19.0.0-rc" }, "optionalPeers": ["@types/react", "@types/react-dom"] }, "sha512-/jfEwNDdQVBCNvjkGit4h6pMOzq8bHkopq458dPt2lMjx+eBQUohZNG9A7DtO/O5ukSbxuaNGXMjHicgwy6rQQ=="],++ "@radix-ui/react-primitive": ["@radix-ui/[email protected]", "", { "dependencies": { "@radix-ui/react-slot": "1.2.3" }, "peerDependencies": { "@types/react": "*", "@types/react-dom": "*", "react": "^16.8 || ^17.0 || ^18.0 || ^19.0 || ^19.0.0-rc", "react-dom": "^16.8 || ^17.0 || ^18.0 || ^19.0 || ^19.0.0-rc" }, "optionalPeers": ["@types/react", "@types/react-dom"] }, "sha512-m9gTwRkhy2lvCPe6QJp4d3G1TYEUHn/FzJUtq9MjH46an1wJU+GdoGC5VLof8RX8Ft/DlpshApkhswDLZzHIcQ=="],++ "@radix-ui/react-progress": ["@radix-ui/[email protected]", "", { "dependencies": { "@radix-ui/react-context": "1.1.2", "@radix-ui/react-primitive": "2.1.3" }, "peerDependencies": { "@types/react": "*", "@types/react-dom": "*", "react": "^16.8 || ^17.0 || ^18.0 || ^19.0 || ^19.0.0-rc", "react-dom": "^16.8 || ^17.0 || ^18.0 || ^19.0 || ^19.0.0-rc" }, "optionalPeers": ["@types/react", "@types/react-dom"] }, "sha512-vPdg/tF6YC/ynuBIJlk1mm7Le0VgW6ub6J2UWnTQ7/D23KXcPI1qy+0vBkgKgd38RCMJavBXpB83HPNFMTb0Fg=="],++ "@radix-ui/react-radio-group": ["@radix-ui/[email protected]", "", { "dependencies": { "@radix-ui/primitive": "1.1.3", "@radix-ui/react-compose-refs": "1.1.2", "@radix-ui/react-context": "1.1.2", "@radix-ui/react-direction": "1.1.1", "@radix-ui/react-presence": "1.1.5", "@radix-ui/react-primitive": "2.1.3", "@radix-ui/react-roving-focus": "1.1.11", "@radix-ui/react-use-controllable-state": "1.2.2", "@radix-ui/react-use-previous": "1.1.1", "@radix-ui/react-use-size": "1.1.1" }, "peerDependencies": { "@types/react": "*", "@types/react-dom": "*", "react": "^16.8 || ^17.0 || ^18.0 || ^19.0 || ^19.0.0-rc", "react-dom": "^16.8 || ^17.0 || ^18.0 || ^19.0 || ^19.0.0-rc" }, "optionalPeers": ["@types/react", "@types/react-dom"] }, "sha512-VBKYIYImA5zsxACdisNQ3BjCBfmbGH3kQlnFVqlWU4tXwjy7cGX8ta80BcrO+WJXIn5iBylEH3K6ZTlee//lgQ=="],++ "@radix-ui/react-roving-focus": ["@radix-ui/[email protected]", "", { "dependencies": { "@radix-ui/primitive": "1.1.3", "@radix-ui/react-collection": "1.1.7", "@radix-ui/react-compose-refs": "1.1.2", "@radix-ui/react-context": "1.1.2", "@radix-ui/react-direction": "1.1.1", "@radix-ui/react-id": "1.1.1", "@radix-ui/react-primitive": "2.1.3", "@radix-ui/react-use-callback-ref": "1.1.1", "@radix-ui/react-use-controllable-state": "1.2.2" }, "peerDependencies": { "@types/react": "*", "@types/react-dom": "*", "react": "^16.8 || ^17.0 || ^18.0 || ^19.0 || ^19.0.0-rc", "react-dom": "^16.8 || ^17.0 || ^18.0 || ^19.0 || ^19.0.0-rc" }, "optionalPeers": ["@types/react", "@types/react-dom"] }, "sha512-7A6S9jSgm/S+7MdtNDSb+IU859vQqJ/QAtcYQcfFC6W8RS4IxIZDldLR0xqCFZ6DCyrQLjLPsxtTNch5jVA4lA=="],++ "@radix-ui/react-scroll-area": ["@radix-ui/[email protected]", "", { "dependencies": { "@radix-ui/number": "1.1.1", "@radix-ui/primitive": "1.1.3", "@radix-ui/react-compose-refs": "1.1.2", "@radix-ui/react-context": "1.1.2", "@radix-ui/react-direction": "1.1.1", "@radix-ui/react-presence": "1.1.5", "@radix-ui/react-primitive": "2.1.3", "@radix-ui/react-use-callback-ref": "1.1.1", "@radix-ui/react-use-layout-effect": "1.1.1" }, "peerDependencies": { "@types/react": "*", "@types/react-dom": "*", "react": "^16.8 || ^17.0 || ^18.0 || ^19.0 || ^19.0.0-rc", "react-dom": "^16.8 || ^17.0 || ^18.0 || ^19.0 || ^19.0.0-rc" }, "optionalPeers": ["@types/react", "@types/react-dom"] }, "sha512-tAXIa1g3sM5CGpVT0uIbUx/U3Gs5N8T52IICuCtObaos1S8fzsrPXG5WObkQN3S6NVl6wKgPhAIiBGbWnvc97A=="],++ "@radix-ui/react-select": ["@radix-ui/[email protected]", "", { "dependencies": { "@radix-ui/number": "1.1.1", "@radix-ui/primitive": "1.1.3", "@radix-ui/react-collection": "1.1.7", "@radix-ui/react-compose-refs": "1.1.2", "@radix-ui/react-context": "1.1.2", "@radix-ui/react-direction": "1.1.1", "@radix-ui/react-dismissable-layer": "1.1.11", "@radix-ui/react-focus-guards": "1.1.3", "@radix-ui/react-focus-scope": "1.1.7", "@radix-ui/react-id": "1.1.1", "@radix-ui/react-popper": "1.2.8", "@radix-ui/react-portal": "1.1.9", "@radix-ui/react-primitive": "2.1.3", "@radix-ui/react-slot": "1.2.3", "@radix-ui/react-use-callback-ref": "1.1.1", "@radix-ui/react-use-controllable-state": "1.2.2", "@radix-ui/react-use-layout-effect": "1.1.1", "@radix-ui/react-use-previous": "1.1.1", "@radix-ui/react-visually-hidden": "1.2.3", "aria-hidden": "^1.2.4", "react-remove-scroll": "^2.6.3" }, "peerDependencies": { "@types/react": "*", "@types/react-dom": "*", "react": "^16.8 || ^17.0 || ^18.0 || ^19.0 || ^19.0.0-rc", "react-dom": "^16.8 || ^17.0 || ^18.0 || ^19.0 || ^19.0.0-rc" }, "optionalPeers": ["@types/react", "@types/react-dom"] }, "sha512-I30RydO+bnn2PQztvo25tswPH+wFBjehVGtmagkU78yMdwTwVf12wnAOF+AeP8S2N8xD+5UPbGhkUfPyvT+mwQ=="],++ "@radix-ui/react-separator": ["@radix-ui/[email protected]", "", { "dependencies": { "@radix-ui/react-primitive": "2.1.3" }, "peerDependencies": { "@types/react": "*", "@types/react-dom": "*", "react": "^16.8 || ^17.0 || ^18.0 || ^19.0 || ^19.0.0-rc", "react-dom": "^16.8 || ^17.0 || ^18.0 || ^19.0 || ^19.0.0-rc" }, "optionalPeers": ["@types/react", "@types/react-dom"] }, "sha512-0HEb8R9E8A+jZjvmFCy/J4xhbXy3TV+9XSnGJ3KvTtjlIUy/YQ/p6UYZvi7YbeoeXdyU9+Y3scizK6hkY37baA=="],++ "@radix-ui/react-slider": ["@radix-ui/[email protected]", "", { "dependencies": { "@radix-ui/number": "1.1.1", "@radix-ui/primitive": "1.1.3", "@radix-ui/react-collection": "1.1.7", "@radix-ui/react-compose-refs": "1.1.2", "@radix-ui/react-context": "1.1.2", "@radix-ui/react-direction": "1.1.1", "@radix-ui/react-primitive": "2.1.3", "@radix-ui/react-use-controllable-state": "1.2.2", "@radix-ui/react-use-layout-effect": "1.1.1", "@radix-ui/react-use-previous": "1.1.1", "@radix-ui/react-use-size": "1.1.1" }, "peerDependencies": { "@types/react": "*", "@types/react-dom": "*", "react": "^16.8 || ^17.0 || ^18.0 || ^19.0 || ^19.0.0-rc", "react-dom": "^16.8 || ^17.0 || ^18.0 || ^19.0 || ^19.0.0-rc" }, "optionalPeers": ["@types/react", "@types/react-dom"] }, "sha512-JPYb1GuM1bxfjMRlNLE+BcmBC8onfCi60Blk7OBqi2MLTFdS+8401U4uFjnwkOr49BLmXxLC6JHkvAsx5OJvHw=="],++ "@radix-ui/react-slot": ["@radix-ui/[email protected]", "", { "dependencies": { "@radix-ui/react-compose-refs": "1.1.2" }, "peerDependencies": { "@types/react": "*", "react": "^16.8 || ^17.0 || ^18.0 || ^19.0 || ^19.0.0-rc" }, "optionalPeers": ["@types/react"] }, "sha512-aeNmHnBxbi2St0au6VBVC7JXFlhLlOnvIIlePNniyUNAClzmtAUEY8/pBiK3iHjufOlwA+c20/8jngo7xcrg8A=="],++ "@radix-ui/react-switch": ["@radix-ui/[email protected]", "", { "dependencies": { "@radix-ui/primitive": "1.1.3", "@radix-ui/react-compose-refs": "1.1.2", "@radix-ui/react-context": "1.1.2", "@radix-ui/react-primitive": "2.1.3", "@radix-ui/react-use-controllable-state": "1.2.2", "@radix-ui/react-use-previous": "1.1.1", "@radix-ui/react-use-size": "1.1.1" }, "peerDependencies": { "@types/react": "*", "@types/react-dom": "*", "react": "^16.8 || ^17.0 || ^18.0 || ^19.0 || ^19.0.0-rc", "react-dom": "^16.8 || ^17.0 || ^18.0 || ^19.0 || ^19.0.0-rc" }, "optionalPeers": ["@types/react", "@types/react-dom"] }, "sha512-bByzr1+ep1zk4VubeEVViV592vu2lHE2BZY5OnzehZqOOgogN80+mNtCqPkhn2gklJqOpxWgPoYTSnhBCqpOXQ=="],++ "@radix-ui/react-tabs": ["@radix-ui/[email protected]", "", { "dependencies": { "@radix-ui/primitive": "1.1.3", "@radix-ui/react-context": "1.1.2", "@radix-ui/react-direction": "1.1.1", "@radix-ui/react-id": "1.1.1", "@radix-ui/react-presence": "1.1.5", "@radix-ui/react-primitive": "2.1.3", "@radix-ui/react-roving-focus": "1.1.11", "@radix-ui/react-use-controllable-state": "1.2.2" }, "peerDependencies": { "@types/react": "*", "@types/react-dom": "*", "react": "^16.8 || ^17.0 || ^18.0 || ^19.0 || ^19.0.0-rc", "react-dom": "^16.8 || ^17.0 || ^18.0 || ^19.0 || ^19.0.0-rc" }, "optionalPeers": ["@types/react", "@types/react-dom"] }, "sha512-7xdcatg7/U+7+Udyoj2zodtI9H/IIopqo+YOIcZOq1nJwXWBZ9p8xiu5llXlekDbZkca79a/fozEYQXIA4sW6A=="],++ "@radix-ui/react-toast": ["@radix-ui/[email protected]", "", { "dependencies": { "@radix-ui/primitive": "1.1.3", "@radix-ui/react-collection": "1.1.7", "@radix-ui/react-compose-refs": "1.1.2", "@radix-ui/react-context": "1.1.2", "@radix-ui/react-dismissable-layer": "1.1.11", "@radix-ui/react-portal": "1.1.9", "@radix-ui/react-presence": "1.1.5", "@radix-ui/react-primitive": "2.1.3", "@radix-ui/react-use-callback-ref": "1.1.1", "@radix-ui/react-use-controllable-state": "1.2.2", "@radix-ui/react-use-layout-effect": "1.1.1", "@radix-ui/react-visually-hidden": "1.2.3" }, "peerDependencies": { "@types/react": "*", "@types/react-dom": "*", "react": "^16.8 || ^17.0 || ^18.0 || ^19.0 || ^19.0.0-rc", "react-dom": "^16.8 || ^17.0 || ^18.0 || ^19.0 || ^19.0.0-rc" }, "optionalPeers": ["@types/react", "@types/react-dom"] }, "sha512-3OSz3TacUWy4WtOXV38DggwxoqJK4+eDkNMl5Z/MJZaoUPaP4/9lf81xXMe1I2ReTAptverZUpbPY4wWwWyL5g=="],++ "@radix-ui/react-toggle": ["@radix-ui/[email protected]", "", { "dependencies": { "@radix-ui/primitive": "1.1.3", "@radix-ui/react-primitive": "2.1.3", "@radix-ui/react-use-controllable-state": "1.2.2" }, "peerDependencies": { "@types/react": "*", "@types/react-dom": "*", "react": "^16.8 || ^17.0 || ^18.0 || ^19.0 || ^19.0.0-rc", "react-dom": "^16.8 || ^17.0 || ^18.0 || ^19.0 || ^19.0.0-rc" }, "optionalPeers": ["@types/react", "@types/react-dom"] }, "sha512-lS1odchhFTeZv3xwHH31YPObmJn8gOg7Lq12inrr0+BH/l3Tsq32VfjqH1oh80ARM3mlkfMic15n0kg4sD1poQ=="],++ "@radix-ui/react-toggle-group": ["@radix-ui/[email protected]", "", { "dependencies": { "@radix-ui/primitive": "1.1.3", "@radix-ui/react-context": "1.1.2", "@radix-ui/react-direction": "1.1.1", "@radix-ui/react-primitive": "2.1.3", "@radix-ui/react-roving-focus": "1.1.11", "@radix-ui/react-toggle": "1.1.10", "@radix-ui/react-use-controllable-state": "1.2.2" }, "peerDependencies": { "@types/react": "*", "@types/react-dom": "*", "react": "^16.8 || ^17.0 || ^18.0 || ^19.0 || ^19.0.0-rc", "react-dom": "^16.8 || ^17.0 || ^18.0 || ^19.0 || ^19.0.0-rc" }, "optionalPeers": ["@types/react", "@types/react-dom"] }, "sha512-5umnS0T8JQzQT6HbPyO7Hh9dgd82NmS36DQr+X/YJ9ctFNCiiQd6IJAYYZ33LUwm8M+taCz5t2ui29fHZc4Y6Q=="],++ "@radix-ui/react-toolbar": ["@radix-ui/[email protected]", "", { "dependencies": { "@radix-ui/primitive": "1.1.3", "@radix-ui/react-context": "1.1.2", "@radix-ui/react-direction": "1.1.1", "@radix-ui/react-primitive": "2.1.3", "@radix-ui/react-roving-focus": "1.1.11", "@radix-ui/react-separator": "1.1.7", "@radix-ui/react-toggle-group": "1.1.11" }, "peerDependencies": { "@types/react": "*", "@types/react-dom": "*", "react": "^16.8 || ^17.0 || ^18.0 || ^19.0 || ^19.0.0-rc", "react-dom": "^16.8 || ^17.0 || ^18.0 || ^19.0 || ^19.0.0-rc" }, "optionalPeers": ["@types/react", "@types/react-dom"] }, "sha512-4ol06/1bLoFu1nwUqzdD4Y5RZ9oDdKeiHIsntug54Hcr1pgaHiPqHFEaXI1IFP/EsOfROQZ8Mig9VTIRza6Tjg=="],++ "@radix-ui/react-tooltip": ["@radix-ui/[email protected]", "", { "dependencies": { "@radix-ui/primitive": "1.1.3", "@radix-ui/react-compose-refs": "1.1.2", "@radix-ui/react-context": "1.1.2", "@radix-ui/react-dismissable-layer": "1.1.11", "@radix-ui/react-id": "1.1.1", "@radix-ui/react-popper": "1.2.8", "@radix-ui/react-portal": "1.1.9", "@radix-ui/react-presence": "1.1.5", "@radix-ui/react-primitive": "2.1.3", "@radix-ui/react-slot": "1.2.3", "@radix-ui/react-use-controllable-state": "1.2.2", "@radix-ui/react-visually-hidden": "1.2.3" }, "peerDependencies": { "@types/react": "*", "@types/react-dom": "*", "react": "^16.8 || ^17.0 || ^18.0 || ^19.0 || ^19.0.0-rc", "react-dom": "^16.8 || ^17.0 || ^18.0 || ^19.0 || ^19.0.0-rc" }, "optionalPeers": ["@types/react", "@types/react-dom"] }, "sha512-tY7sVt1yL9ozIxvmbtN5qtmH2krXcBCfjEiCgKGLqunJHvgvZG2Pcl2oQ3kbcZARb1BGEHdkLzcYGO8ynVlieg=="],++ "@radix-ui/react-use-callback-ref": ["@radix-ui/[email protected]", "", { "peerDependencies": { "@types/react": "*", "react": "^16.8 || ^17.0 || ^18.0 || ^19.0 || ^19.0.0-rc" }, "optionalPeers": ["@types/react"] }, "sha512-FkBMwD+qbGQeMu1cOHnuGB6x4yzPjho8ap5WtbEJ26umhgqVXbhekKUQO+hZEL1vU92a3wHwdp0HAcqAUF5iDg=="],++ "@radix-ui/react-use-controllable-state": ["@radix-ui/[email protected]", "", { "dependencies": { "@radix-ui/react-use-effect-event": "0.0.2", "@radix-ui/react-use-layout-effect": "1.1.1" }, "peerDependencies": { "@types/react": "*", "react": "^16.8 || ^17.0 || ^18.0 || ^19.0 || ^19.0.0-rc" }, "optionalPeers": ["@types/react"] }, "sha512-BjasUjixPFdS+NKkypcyyN5Pmg83Olst0+c6vGov0diwTEo6mgdqVR6hxcEgFuh4QrAs7Rc+9KuGJ9TVCj0Zzg=="],++ "@radix-ui/react-use-effect-event": ["@radix-ui/[email protected]", "", { "dependencies": { "@radix-ui/react-use-layout-effect": "1.1.1" }, "peerDependencies": { "@types/react": "*", "react": "^16.8 || ^17.0 || ^18.0 || ^19.0 || ^19.0.0-rc" }, "optionalPeers": ["@types/react"] }, "sha512-Qp8WbZOBe+blgpuUT+lw2xheLP8q0oatc9UpmiemEICxGvFLYmHm9QowVZGHtJlGbS6A6yJ3iViad/2cVjnOiA=="],++ "@radix-ui/react-use-escape-keydown": ["@radix-ui/[email protected]", "", { "dependencies": { "@radix-ui/react-use-callback-ref": "1.1.1" }, "peerDependencies": { "@types/react": "*", "react": "^16.8 || ^17.0 || ^18.0 || ^19.0 || ^19.0.0-rc" }, "optionalPeers": ["@types/react"] }, "sha512-Il0+boE7w/XebUHyBjroE+DbByORGR9KKmITzbR7MyQ4akpORYP/ZmbhAr0DG7RmmBqoOnZdy2QlvajJ2QA59g=="],++ "@radix-ui/react-use-is-hydrated": ["@radix-ui/[email protected]", "", { "dependencies": { "use-sync-external-store": "^1.5.0" }, "peerDependencies": { "@types/react": "*", "react": "^16.8 || ^17.0 || ^18.0 || ^19.0 || ^19.0.0-rc" }, "optionalPeers": ["@types/react"] }, "sha512-U+UORVEq+cTnRIaostJv9AGdV3G6Y+zbVd+12e18jQ5A3c0xL03IhnHuiU4UV69wolOQp5GfR58NW/EgdQhwOA=="],++ "@radix-ui/react-use-layout-effect": ["@radix-ui/[email protected]", "", { "peerDependencies": { "@types/react": "*", "react": "^16.8 || ^17.0 || ^18.0 || ^19.0 || ^19.0.0-rc" }, "optionalPeers": ["@types/react"] }, "sha512-RbJRS4UWQFkzHTTwVymMTUv8EqYhOp8dOOviLj2ugtTiXRaRQS7GLGxZTLL1jWhMeoSCf5zmcZkqTl9IiYfXcQ=="],++ "@radix-ui/react-use-previous": ["@radix-ui/[email protected]", "", { "peerDependencies": { "@types/react": "*", "react": "^16.8 || ^17.0 || ^18.0 || ^19.0 || ^19.0.0-rc" }, "optionalPeers": ["@types/react"] }, "sha512-2dHfToCj/pzca2Ck724OZ5L0EVrr3eHRNsG/b3xQJLA2hZpVCS99bLAX+hm1IHXDEnzU6by5z/5MIY794/a8NQ=="],++ "@radix-ui/react-use-rect": ["@radix-ui/[email protected]", "", { "dependencies": { "@radix-ui/rect": "1.1.1" }, "peerDependencies": { "@types/react": "*", "react": "^16.8 || ^17.0 || ^18.0 || ^19.0 || ^19.0.0-rc" }, "optionalPeers": ["@types/react"] }, "sha512-QTYuDesS0VtuHNNvMh+CjlKJ4LJickCMUAqjlE3+j8w+RlRpwyX3apEQKGFzbZGdo7XNG1tXa+bQqIE7HIXT2w=="],++ "@radix-ui/react-use-size": ["@radix-ui/[email protected]", "", { "dependencies": { "@radix-ui/react-use-layout-effect": "1.1.1" }, "peerDependencies": { "@types/react": "*", "react": "^16.8 || ^17.0 || ^18.0 || ^19.0 || ^19.0.0-rc" }, "optionalPeers": ["@types/react"] }, "sha512-ewrXRDTAqAXlkl6t/fkXWNAhFX9I+CkKlw6zjEwk86RSPKwZr3xpBRso655aqYafwtnbpHLj6toFzmd6xdVptQ=="],++ "@radix-ui/react-visually-hidden": ["@radix-ui/[email protected]", "", { "dependencies": { "@radix-ui/react-primitive": "2.1.3" }, "peerDependencies": { "@types/react": "*", "@types/react-dom": "*", "react": "^16.8 || ^17.0 || ^18.0 || ^19.0 || ^19.0.0-rc", "react-dom": "^16.8 || ^17.0 || ^18.0 || ^19.0 || ^19.0.0-rc" }, "optionalPeers": ["@types/react", "@types/react-dom"] }, "sha512-pzJq12tEaaIhqjbzpCuv/OypJY/BPavOofm+dbab+MHLajy277+1lLm6JFcGgF5eskJ6mquGirhXY2GD/8u8Ug=="],++ "@radix-ui/rect": ["@radix-ui/[email protected]", "", {}, "sha512-HPwpGIzkl28mWyZqG52jiqDJ12waP11Pa1lGoiyUkIEuMLBP0oeK/C89esbXrxsky5we7dfd8U58nm0SgAWpVw=="],++ "@radix-ui/themes": ["@radix-ui/[email protected]", "", { "dependencies": { "@radix-ui/colors": "^3.0.0", "classnames": "^2.3.2", "radix-ui": "^1.1.3", "react-remove-scroll-bar": "^2.3.8" }, "peerDependencies": { "@types/react": "*", "@types/react-dom": "*", "react": "16.8 || ^17.0 || ^18.0 || ^19.0 || ^19.0.0-rc", "react-dom": "16.8 || ^17.0 || ^18.0 || ^19.0 || ^19.0.0-rc" }, "optionalPeers": ["@types/react", "@types/react-dom"] }, "sha512-I0/h2CRNTpYNB7Mi3xFIvSsQq5a108d7kK8dTO5zp5b9HR5QJXKag6B8tjpz2ITkVYkFdkGk45doNkSr7OxwNw=="],++ "@react-three/drei": ["@react-three/[email protected]", "", { "dependencies": { "@babel/runtime": "^7.26.0", "@mediapipe/tasks-vision": "0.10.17", "@monogrid/gainmap-js": "^3.0.6", "@use-gesture/react": "^10.3.1", "camera-controls": "^3.1.0", "cross-env": "^7.0.3", "detect-gpu": "^5.0.56", "glsl-noise": "^0.0.0", "hls.js": "^1.5.17", "maath": "^0.10.8", "meshline": "^3.3.1", "stats-gl": "^2.2.8", "stats.js": "^0.17.0", "suspend-react": "^0.1.3", "three-mesh-bvh": "^0.8.3", "three-stdlib": "^2.35.6", "troika-three-text": "^0.52.4", "tunnel-rat": "^0.1.2", "use-sync-external-store": "^1.4.0", "utility-types": "^3.11.0", "zustand": "^5.0.1" }, "peerDependencies": { "@react-three/fiber": "^9.0.0", "react": "^19", "react-dom": "^19", "three": ">=0.159" }, "optionalPeers": ["react-dom"] }, "sha512-ff+J5iloR0k4tC++QtD/j9u3w5fzfgFAWDtAGQah9pF2B1YgOq/5JxqY0/aVoQG5r3xSZz0cv5tk2YuBob4xEQ=="],++ "@react-three/fiber": ["@react-three/[email protected]", "", { "dependencies": { "@babel/runtime": "^7.17.8", "@types/webxr": "*", "base64-js": "^1.5.1", "buffer": "^6.0.3", "its-fine": "^2.0.0", "react-use-measure": "^2.1.7", "scheduler": "^0.27.0", "suspend-react": "^0.1.3", "use-sync-external-store": "^1.4.0", "zustand": "^5.0.3" }, "peerDependencies": { "expo": ">=43.0", "expo-asset": ">=8.4", "expo-file-system": ">=11.0", "expo-gl": ">=11.0", "react": ">=19 <19.3", "react-dom": ">=19 <19.3", "react-native": ">=0.78", "three": ">=0.156" }, "optionalPeers": ["expo", "expo-asset", "expo-file-system", "expo-gl", "react-dom", "react-native"] }, "sha512-zF0rsKcVYpcJwbFEnv2HkHX9cvOEgsfQo/X8lwmR2dn13S4qEQJXir9fxf5js2LQFoXqxOY7MDkOkYx2uZ4gSg=="],++ "@react-three/postprocessing": ["@react-three/[email protected]", "", { "dependencies": { "maath": "^0.6.0", "n8ao": "^1.9.4", "postprocessing": "^6.36.6" }, "peerDependencies": { "@react-three/fiber": "^9.0.0", "react": "^19.0", "three": ">= 0.156.0" } }, "sha512-e4+F5xtudDYvhxx3y0NtWXpZbwvQ0x1zdOXWTbXMK6fFLVDd4qucN90YaaStanZGS4Bd5siQm0lGL/5ogf8iDQ=="],++ "@react-three/rapier": ["@react-three/[email protected]", "", { "dependencies": { "@dimforge/rapier3d-compat": "0.19.2", "suspend-react": "^0.1.3", "three-stdlib": "^2.35.12" }, "peerDependencies": { "@react-three/fiber": "^9.0.4", "react": "^19", "three": ">=0.159.0" } }, "sha512-mVsqbKXlGZoN+XrqdhzFZUQmy8pibEOVzl4k7LC+LHe84bQnYBSagy1Hvbda6bL1PJDdTFyiDiBk5buKFinNIQ=="],++ "@rolldown/pluginutils": ["@rolldown/[email protected]", "", {}, "sha512-+d0F4MKMCbeVUJwG96uQ4SgAznZNSq93I3V+9NHA4OpvqG8mRCpGdKmK8l/dl02h2CCDHwW2FqilnTyDcAnqjA=="],++ "@rollup/rollup-android-arm-eabi": ["@rollup/[email protected]", "", { "os": "android", "cpu": "arm" }, "sha512-x35CNW/ANXG3hE/EZpRU8MXX1JDN86hBb2wMGAtltkz7pc6cxgjpy1OMMfDosOQ+2hWqIkag/fGok1Yady9nGw=="],++ "@rollup/rollup-android-arm64": ["@rollup/[email protected]", "", { "os": "android", "cpu": "arm64" }, "sha512-xw3xtkDApIOGayehp2+Rz4zimfkaX65r4t47iy+ymQB2G4iJCBBfj0ogVg5jpvjpn8UWn/+q9tprxleYeNp3Hw=="],++ "@rollup/rollup-darwin-arm64": ["@rollup/[email protected]", "", { "os": "darwin", "cpu": "arm64" }, "sha512-vo6Y5Qfpx7/5EaamIwi0WqW2+zfiusVihKatLvtN1VFVy3D13uERk/6gZLU1UiHRL6fDXqj/ELIeVRGnvcTE1g=="],++ "@rollup/rollup-darwin-x64": ["@rollup/[email protected]", "", { "os": "darwin", "cpu": "x64" }, "sha512-D+0QGcZhBzTN82weOnsSlY7V7+RMmPuF1CkbxyMAGE8+ZHeUjyb76ZiWmBlCu//AQQONvxcqRbwZTajZKqjuOw=="],++ "@rollup/rollup-freebsd-arm64": ["@rollup/[email protected]", "", { "os": "freebsd", "cpu": "arm64" }, "sha512-6HnvHCT7fDyj6R0Ph7A6x8dQS/S38MClRWeDLqc0MdfWkxjiu1HSDYrdPhqSILzjTIC/pnXbbJbo+ft+gy/9hQ=="],++ "@rollup/rollup-freebsd-x64": ["@rollup/[email protected]", "", { "os": "freebsd", "cpu": "x64" }, "sha512-KHLgC3WKlUYW3ShFKnnosZDOJ0xjg9zp7au3sIm2bs/tGBeC2ipmvRh/N7JKi0t9Ue20C0dpEshi8WUubg+cnA=="],++ "@rollup/rollup-linux-arm-gnueabihf": ["@rollup/[email protected]", "", { "os": "linux", "cpu": "arm" }, "sha512-DV6fJoxEYWJOvaZIsok7KrYl0tPvga5OZ2yvKHNNYyk/2roMLqQAbGhr78EQ5YhHpnhLKJD3S1WFusAkmUuV5g=="],++ "@rollup/rollup-linux-arm-musleabihf": ["@rollup/[email protected]", "", { "os": "linux", "cpu": "arm" }, "sha512-mQKoJAzvuOs6F+TZybQO4GOTSMUu7v0WdxEk24krQ/uUxXoPTtHjuaUuPmFhtBcM4K0ons8nrE3JyhTuCFtT/w=="],++ "@rollup/rollup-linux-arm64-gnu": ["@rollup/[email protected]", "", { "os": "linux", "cpu": "arm64" }, "sha512-Whjj2qoiJ6+OOJMGptTYazaJvjOJm+iKHpXQM1P3LzGjt7Ff++Tp7nH4N8J/BUA7R9IHfDyx4DJIflifwnbmIA=="],++ "@rollup/rollup-linux-arm64-musl": ["@rollup/[email protected]", "", { "os": "linux", "cpu": "arm64" }, "sha512-4YTNHKqGng5+yiZt3mg77nmyuCfmNfX4fPmyUapBcIk+BdwSwmCWGXOUxhXbBEkFHtoN5boLj/5NON+u5QC9tg=="],++ "@rollup/rollup-linux-loong64-gnu": ["@rollup/[email protected]", "", { "os": "linux", "cpu": "none" }, "sha512-SU3kNlhkpI4UqlUc2VXPGK9o886ZsSeGfMAX2ba2b8DKmMXq4AL7KUrkSWVbb7koVqx41Yczx6dx5PNargIrEA=="],++ "@rollup/rollup-linux-loong64-musl": ["@rollup/[email protected]", "", { "os": "linux", "cpu": "none" }, "sha512-6lDLl5h4TXpB1mTf2rQWnAk/LcXrx9vBfu/DT5TIPhvMhRWaZ5MxkIc8u4lJAmBo6klTe1ywXIUHFjylW505sg=="],++ "@rollup/rollup-linux-ppc64-gnu": ["@rollup/[email protected]", "", { "os": "linux", "cpu": "ppc64" }, "sha512-BMo8bOw8evlup/8G+cj5xWtPyp93xPdyoSN16Zy90Q2QZ0ZYRhCt6ZJSwbrRzG9HApFabjwj2p25TUPDWrhzqQ=="],++ "@rollup/rollup-linux-ppc64-musl": ["@rollup/[email protected]", "", { "os": "linux", "cpu": "ppc64" }, "sha512-E0L8X1dZN1/Rph+5VPF6Xj2G7JJvMACVXtamTJIDrVI44Y3K+G8gQaMEAavbqCGTa16InptiVrX6eM6pmJ+7qA=="],++ "@rollup/rollup-linux-riscv64-gnu": ["@rollup/[email protected]", "", { "os": "linux", "cpu": "none" }, "sha512-oZJ/WHaVfHUiRAtmTAeo3DcevNsVvH8mbvodjZy7D5QKvCefO371SiKRpxoDcCxB3PTRTLayWBkvmDQKTcX/sw=="],++ "@rollup/rollup-linux-riscv64-musl": ["@rollup/[email protected]", "", { "os": "linux", "cpu": "none" }, "sha512-Dhbyh7j9FybM3YaTgaHmVALwA8AkUwTPccyCQ79TG9AJUsMQqgN1DDEZNr4+QUfwiWvLDumW5vdwzoeUF+TNxQ=="],++ "@rollup/rollup-linux-s390x-gnu": ["@rollup/[email protected]", "", { "os": "linux", "cpu": "s390x" }, "sha512-cJd1X5XhHHlltkaypz1UcWLA8AcoIi1aWhsvaWDskD1oz2eKCypnqvTQ8ykMNI0RSmm7NkTdSqSSD7zM0xa6Ig=="],++ "@rollup/rollup-linux-x64-gnu": ["@rollup/[email protected]", "", { "os": "linux", "cpu": "x64" }, "sha512-DAZDBHQfG2oQuhY7mc6I3/qB4LU2fQCjRvxbDwd/Jdvb9fypP4IJ4qmtu6lNjes6B531AI8cg1aKC2di97bUxA=="],++ "@rollup/rollup-linux-x64-musl": ["@rollup/[email protected]", "", { "os": "linux", "cpu": "x64" }, "sha512-cRxsE8c13mZOh3vP+wLDxpQBRrOHDIGOWyDL93Sy0Ga8y515fBcC2pjUfFwUe5T7tqvTvWbCpg1URM/AXdWIXA=="],++ "@rollup/rollup-openbsd-x64": ["@rollup/[email protected]", "", { "os": "openbsd", "cpu": "x64" }, "sha512-QaWcIgRxqEdQdhJqW4DJctsH6HCmo5vHxY0krHSX4jMtOqfzC+dqDGuHM87bu4H8JBeibWx7jFz+h6/4C8wA5Q=="],++ "@rollup/rollup-openharmony-arm64": ["@rollup/[email protected]", "", { "os": "none", "cpu": "arm64" }, "sha512-AaXwSvUi3QIPtroAUw1t5yHGIyqKEXwH54WUocFolZhpGDruJcs8c+xPNDRn4XiQsS7MEwnYsHW2l0MBLDMkWg=="],++ "@rollup/rollup-win32-arm64-msvc": ["@rollup/[email protected]", "", { "os": "win32", "cpu": "arm64" }, "sha512-65LAKM/bAWDqKNEelHlcHvm2V+Vfb8C6INFxQXRHCvaVN1rJfwr4NvdP4FyzUaLqWfaCGaadf6UbTm8xJeYfEg=="],++ "@rollup/rollup-win32-ia32-msvc": ["@rollup/[email protected]", "", { "os": "win32", "cpu": "ia32" }, "sha512-EEM2gyhBF5MFnI6vMKdX1LAosE627RGBzIoGMdLloPZkXrUN0Ckqgr2Qi8+J3zip/8NVVro3/FjB+tjhZUgUHA=="],++ "@rollup/rollup-win32-x64-gnu": ["@rollup/[email protected]", "", { "os": "win32", "cpu": "x64" }, "sha512-E5Eb5H/DpxaoXH++Qkv28RcUJboMopmdDUALBczvHMf7hNIxaDZqwY5lK12UK1BHacSmvupoEWGu+n993Z0y1A=="],++ "@rollup/rollup-win32-x64-msvc": ["@rollup/[email protected]", "", { "os": "win32", "cpu": "x64" }, "sha512-hPt/bgL5cE+Qp+/TPHBqptcAgPzgj46mPcg/16zNUmbQk0j+mOEQV/+Lqu8QRtDV3Ek95Q6FeFITpuhl6OTsAA=="],++ "@sparkjsdev/spark": ["@sparkjsdev/[email protected]", "", { "dependencies": { "fflate": "^0.8.2" }, "peerDependencies": { "three": "^0.180.0" } }, "sha512-W1p7NM4xXcUAVVcVus2mIFwcAC3VckyE0l4wXJuSmhcOgb6hHpqhQ/Ks9MK9ts7j23K+UwbCBwe+aTc/zgGygw=="],++ "@stitches/react": ["@stitches/[email protected]", "", { "peerDependencies": { "react": ">= 16.3.0" } }, "sha512-9g9dWI4gsSVe8bNLlb+lMkBYsnIKCZTmvqvDG+Avnn69XfmHZKiaMrx7cgTaddq7aTPPmXiTsbFcUy0xgI4+wA=="],++ "@tweenjs/tween.js": ["@tweenjs/[email protected]", "", {}, "sha512-vJmvvwFxYuGnF2axRtPYocag6Clbb5YS7kLL+SO/TeVFzHqDIWrNKYtcsPMibjDx9O+bu+psAy9NKfWklassUA=="],++ "@types/babel__core": ["@types/[email protected]", "", { "dependencies": { "@babel/parser": "^7.20.7", "@babel/types": "^7.20.7", "@types/babel__generator": "*", "@types/babel__template": "*", "@types/babel__traverse": "*" } }, "sha512-qoQprZvz5wQFJwMDqeseRXWv3rqMvhgpbXFfVyWhbx9X47POIA6i/+dXefEmZKoAgOaTdaIgNSMqMIU61yRyzA=="],++ "@types/babel__generator": ["@types/[email protected]", "", { "dependencies": { "@babel/types": "^7.0.0" } }, "sha512-ufFd2Xi92OAVPYsy+P4n7/U7e68fex0+Ee8gSG9KX7eo084CWiQ4sdxktvdl0bOPupXtVJPY19zk6EwWqUQ8lg=="],++ "@types/babel__template": ["@types/[email protected]", "", { "dependencies": { "@babel/parser": "^7.1.0", "@babel/types": "^7.0.0" } }, "sha512-h/NUaSyG5EyxBIp8YRxo4RMe2/qQgvyowRwVMzhYhBCONbW8PUsg4lkFMrhgZhUe5z3L3MiLDuvyJ/CaPa2A8A=="],++ "@types/babel__traverse": ["@types/[email protected]", "", { "dependencies": { "@babel/types": "^7.28.2" } }, "sha512-8PvcXf70gTDZBgt9ptxJ8elBeBjcLOAcOtoO/mPJjtji1+CdGbHgm77om1GrsPxsiE+uXIpNSK64UYaIwQXd4Q=="],++ "@types/draco3d": ["@types/[email protected]", "", {}, "sha512-AX22jp8Y7wwaBgAixaSvkoG4M/+PlAcm3Qs4OW8yT9DM4xUpWKeFhLueTAyZF39pviAdcDdeJoACapiAceqNcw=="],++ "@types/estree": ["@types/[email protected]", "", {}, "sha512-dWHzHa2WqEXI/O1E9OjrocMTKJl2mSrEolh1Iomrv6U+JuNwaHXsXx9bLu5gG7BUWFIN0skIQJQ/L1rIex4X6w=="],++ "@types/node": ["@types/[email protected]", "", { "dependencies": { "undici-types": "~7.19.0" } }, "sha512-+qIYRKdNYJwY3vRCZMdJbPLJAtGjQBudzZzdzwQYkEPQd+PJGixUL5QfvCLDaULoLv+RhT3LDkwEfKaAkgSmNQ=="],++ "@types/offscreencanvas": ["@types/[email protected]", "", {}, "sha512-ieXiYmgSRXUDeOntE1InxjWyvEelZGP63M+cGuquuRLuIKKT1osnkXjxev9B7d1nXSug5vpunx+gNlbVxMlC9A=="],++ "@types/react": ["@types/[email protected]", "", { "dependencies": { "csstype": "^3.2.2" } }, "sha512-ilcTH/UniCkMdtexkoCN0bI7pMcJDvmQFPvuPvmEaYA/NSfFTAgdUSLAoVjaRJm7+6PvcM+q1zYOwS4wTYMF9w=="],++ "@types/react-dom": ["@types/[email protected]", "", { "peerDependencies": { "@types/react": "^19.2.0" } }, "sha512-jp2L/eY6fn+KgVVQAOqYItbF0VY/YApe5Mz2F0aykSO8gx31bYCZyvSeYxCHKvzHG5eZjc+zyaS5BrBWya2+kQ=="],++ "@types/react-reconciler": ["@types/[email protected]", "", { "peerDependencies": { "@types/react": "*" } }, "sha512-HHM3nxyUZ3zAylX8ZEyrDNd2XZOnQ0D5XfunJF5FLQnZbHHYq4UWvW1QfelQNXv1ICNkwYhfxjwfnqivYB6bFg=="],++ "@types/stats.js": ["@types/[email protected]", "", {}, "sha512-jIBvWWShCvlBqBNIZt0KAshWpvSjhkwkEu4ZUcASoAvhmrgAUI2t1dXrjSL4xXVLB4FznPrIsX3nKXFl/Dt4vA=="],++ "@types/three": ["@types/[email protected]", "", { "dependencies": { "@dimforge/rapier3d-compat": "~0.12.0", "@tweenjs/tween.js": "~23.1.3", "@types/stats.js": "*", "@types/webxr": "*", "@webgpu/types": "*", "fflate": "~0.8.2", "meshoptimizer": "~0.22.0" } }, "sha512-ykFtgCqNnY0IPvDro7h+9ZeLY+qjgUWv+qEvUt84grhenO60Hqd4hScHE7VTB9nOQ/3QM8lkbNE+4vKjEpUxKg=="],++ "@types/webxr": ["@types/[email protected]", "", {}, "sha512-h8fgEd/DpoS9CBrjEQXR+dIDraopAEfu4wYVNY2tEPwk60stPWhvZMf4Foo5FakuQ7HFZoa8WceaWFervK2Ovg=="],++ "@use-gesture/core": ["@use-gesture/[email protected]", "", {}, "sha512-WcINiDt8WjqBdUXye25anHiNxPc0VOrlT8F6LLkU6cycrOGUDyY/yyFmsg3k8i5OLvv25llc0QC45GhR/C8llw=="],++ "@use-gesture/react": ["@use-gesture/[email protected]", "", { "dependencies": { "@use-gesture/core": "10.3.1" }, "peerDependencies": { "react": ">= 16.8.0" } }, "sha512-Yy19y6O2GJq8f7CHf7L0nxL8bf4PZCPaVOCgJrusOeFHY1LvHgYXnmnXg6N5iwAnbgbZCDjo60SiM6IPJi9C5g=="],++ "@vitejs/plugin-react": ["@vitejs/[email protected]", "", { "dependencies": { "@babel/core": "^7.28.0", "@babel/plugin-transform-react-jsx-self": "^7.27.1", "@babel/plugin-transform-react-jsx-source": "^7.27.1", "@rolldown/pluginutils": "1.0.0-beta.27", "@types/babel__core": "^7.20.5", "react-refresh": "^0.17.0" }, "peerDependencies": { "vite": "^4.2.0 || ^5.0.0 || ^6.0.0 || ^7.0.0" } }, "sha512-gUu9hwfWvvEDBBmgtAowQCojwZmJ5mcLn3aufeCsitijs3+f2NsrPtlAWIR6OPiqljl96GVCUbLe0HyqIpVaoA=="],++ "@vitest/expect": ["@vitest/[email protected]", "", { "dependencies": { "@vitest/spy": "2.1.9", "@vitest/utils": "2.1.9", "chai": "^5.1.2", "tinyrainbow": "^1.2.0" } }, "sha512-UJCIkTBenHeKT1TTlKMJWy1laZewsRIzYighyYiJKZreqtdxSos/S1t+ktRMQWu2CKqaarrkeszJx1cgC5tGZw=="],++ "@vitest/mocker": ["@vitest/[email protected]", "", { "dependencies": { "@vitest/spy": "2.1.9", "estree-walker": "^3.0.3", "magic-string": "^0.30.12" }, "peerDependencies": { "msw": "^2.4.9", "vite": "^5.0.0" }, "optionalPeers": ["msw", "vite"] }, "sha512-tVL6uJgoUdi6icpxmdrn5YNo3g3Dxv+IHJBr0GXHaEdTcw3F+cPKnsXFhli6nO+f/6SDKPHEK1UN+k+TQv0Ehg=="],++ "@vitest/pretty-format": ["@vitest/[email protected]", "", { "dependencies": { "tinyrainbow": "^1.2.0" } }, "sha512-KhRIdGV2U9HOUzxfiHmY8IFHTdqtOhIzCpd8WRdJiE7D/HUcZVD0EgQCVjm+Q9gkUXWgBvMmTtZgIG48wq7sOQ=="],++ "@vitest/runner": ["@vitest/[email protected]", "", { "dependencies": { "@vitest/utils": "2.1.9", "pathe": "^1.1.2" } }, "sha512-ZXSSqTFIrzduD63btIfEyOmNcBmQvgOVsPNPe0jYtESiXkhd8u2erDLnMxmGrDCwHCCHE7hxwRDCT3pt0esT4g=="],++ "@vitest/snapshot": ["@vitest/[email protected]", "", { "dependencies": { "@vitest/pretty-format": "2.1.9", "magic-string": "^0.30.12", "pathe": "^1.1.2" } }, "sha512-oBO82rEjsxLNJincVhLhaxxZdEtV0EFHMK5Kmx5sJ6H9L183dHECjiefOAdnqpIgT5eZwT04PoggUnW88vOBNQ=="],++ "@vitest/spy": ["@vitest/[email protected]", "", { "dependencies": { "tinyspy": "^3.0.2" } }, "sha512-E1B35FwzXXTs9FHNK6bDszs7mtydNi5MIfUWpceJ8Xbfb1gBMscAnwLbEu+B44ed6W3XjL9/ehLPHR1fkf1KLQ=="],++ "@vitest/utils": ["@vitest/[email protected]", "", { "dependencies": { "@vitest/pretty-format": "2.1.9", "loupe": "^3.1.2", "tinyrainbow": "^1.2.0" } }, "sha512-v0psaMSkNJ3A2NMrUEHFRzJtDPFn+/VWZ5WxImB21T9fjucJRmS7xCS3ppEnARb9y11OAzaD+P2Ps+b+BGX5iQ=="],++ "@webgpu/types": ["@webgpu/[email protected]", "", {}, "sha512-RPmm6kgRbI8e98zSD3RVACvnuktIja5+yLgDAkTmxLr90BEwdTXRQWNLF3ETTTyH/8mKhznZuN5AveXYFEsMGQ=="],++ "any-promise": ["[email protected]", "", {}, "sha512-7UvmKalWRt1wgjL1RrGxoSJW/0QZFIegpeGvZG9kjp8vrRu55XTHbwnqq2GpXm9uLbcuhxm3IqX9OB4MZR1b2A=="],++ "anymatch": ["[email protected]", "", { "dependencies": { "normalize-path": "^3.0.0", "picomatch": "^2.0.4" } }, "sha512-KMReFUr0B4t+D+OBkjR3KYqvocp2XaSzO55UcB6mgQMd3KbcE+mWTyvVV7D/zsdEbNnV6acZUutkiHQXvTr1Rw=="],++ "arg": ["[email protected]", "", {}, "sha512-PYjyFOLKQ9y57JvQ6QLo8dAgNqswh8M1RMJYdQduT6xbWSgK36P/Z/v+p888pM69jMMfS8Xd8F6I1kQ/I9HUGg=="],++ "aria-hidden": ["[email protected]", "", { "dependencies": { "tslib": "^2.0.0" } }, "sha512-ik3ZgC9dY/lYVVM++OISsaYDeg1tb0VtP5uL3ouh1koGOaUMDPpbFIei4JkFimWUFPn90sbMNMXQAIVOlnYKJA=="],++ "assertion-error": ["[email protected]", "", {}, "sha512-Izi8RQcffqCeNVgFigKli1ssklIbpHnCYc6AknXGYoB6grJqyeby7jv12JUQgmTAnIDnbck1uxksT4dzN3PWBA=="],++ "assign-symbols": ["[email protected]", "", {}, "sha512-Q+JC7Whu8HhmTdBph/Tq59IoRtoy6KAm5zzPv00WdujX82lbAL8K7WVjne7vdCsAmbF4AYaDOPyO3k0kl8qIrw=="],++ "attr-accept": ["[email protected]", "", {}, "sha512-0bDNnY/u6pPwHDMoF0FieU354oBi0a8rD9FcsLwzcGWbc8KS8KPIi7y+s13OlVY+gMWc/9xEMUgNE6Qm8ZllYQ=="],++ "autoprefixer": ["[email protected]", "", { "dependencies": { "browserslist": "^4.28.2", "caniuse-lite": "^1.0.30001787", "fraction.js": "^5.3.4", "picocolors": "^1.1.1", "postcss-value-parser": "^4.2.0" }, "peerDependencies": { "postcss": "^8.1.0" }, "bin": { "autoprefixer": "bin/autoprefixer" } }, "sha512-FMhOoZV4+qR6aTUALKX2rEqGG+oyATvwBt9IIzVR5rMa2HRWPkxf+P+PAJLD1I/H5/II+HuZcBJYEFBpq39ong=="],++ "base64-js": ["[email protected]", "", {}, "sha512-AKpaYlHn8t4SVbOHCy+b5+KKgvR4vrsD8vbvrbiQJps7fKDTkjkDry6ji0rUJjC0kzbNePLwzxq8iypo41qeWA=="],++ "baseline-browser-mapping": ["[email protected]", "", { "bin": { "baseline-browser-mapping": "dist/cli.cjs" } }, "sha512-zEs/ufmZoUd7WftKpKyXaT6RFxpQ5Qm9xytKRHvJfxFV9DFJkZph9RvJ1LcOUi0Z1ZVijMte65JbILeV+8QQEA=="],++ "bidi-js": ["[email protected]", "", { "dependencies": { "require-from-string": "^2.0.2" } }, "sha512-RKshQI1R3YQ+n9YJz2QQ147P66ELpa1FQEg20Dk8oW9t2KgLbpDLLp9aGZ7y8WHSshDknG0bknqGw5/tyCs5tw=="],++ "binary-extensions": ["[email protected]", "", {}, "sha512-Ceh+7ox5qe7LJuLHoY0feh3pHuUDHAcRUeyL2VYghZwfpkNIy/+8Ocg0a3UuSoYzavmylwuLWQOf3hl0jjMMIw=="],++ "braces": ["[email protected]", "", { "dependencies": { "fill-range": "^7.1.1" } }, "sha512-yQbXgO/OSZVD2IsiLlro+7Hf6Q18EJrKSEsdoMzKePKXct3gvD8oLcOQdIzGupr5Fj+EDe8gO/lxc1BzfMpxvA=="],++ "browserslist": ["[email protected]", "", { "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" } }, "sha512-48xSriZYYg+8qXna9kwqjIVzuQxi+KYWp2+5nCYnYKPTr0LvD89Jqk2Or5ogxz0NUMfIjhh2lIUX/LyX9B4oIg=="],++ "buffer": ["[email protected]", "", { "dependencies": { "base64-js": "^1.3.1", "ieee754": "^1.2.1" } }, "sha512-FTiCpNxtwiZZHEZbcbTIcZjERVICn9yq/pDFkTl95/AxzD1naBctN7YO68riM/gLSDY7sdrMby8hofADYuuqOA=="],++ "cac": ["[email protected]", "", {}, "sha512-b6Ilus+c3RrdDk+JhLKUAQfzzgLEPy6wcXqS7f/xe1EETvsDP6GORG7SFuOs6cID5YkqchW/LXZbX5bc8j7ZcQ=="],++ "camelcase-css": ["[email protected]", "", {}, "sha512-QOSvevhslijgYwRx6Rv7zKdMF8lbRmx+uQGx2+vDc+KI/eBnsy9kit5aj23AgGu3pa4t9AgwbnXWqS+iOY+2aA=="],++ "camera-controls": ["[email protected]", "", { "peerDependencies": { "three": ">=0.126.1" } }, "sha512-xkxfpG2ECZ6Ww5/9+kf4mfg1VEYAoe9aDSY+IwF0UEs7qEzwy0aVRfs2grImIECs/PoBtWFrh7RXsQkwG922JA=="],++ "caniuse-lite": ["[email protected]", "", {}, "sha512-yk0l/YSrOnFZk3UROpDLQD9+kC1l4meK/wed583AXrzoarMGJcbRi2Q4RaUYbKxYAsZ8sWmaSa/DsLmdBeI1vQ=="],++ "chai": ["[email protected]", "", { "dependencies": { "assertion-error": "^2.0.1", "check-error": "^2.1.1", "deep-eql": "^5.0.1", "loupe": "^3.1.0", "pathval": "^2.0.0" } }, "sha512-4zNhdJD/iOjSH0A05ea+Ke6MU5mmpQcbQsSOkgdaUMJ9zTlDTD/GYlwohmIE2u0gaxHYiVHEn1Fw9mZ/ktJWgw=="],++ "check-error": ["[email protected]", "", {}, "sha512-PAJdDJusoxnwm1VwW07VWwUN1sl7smmC3OKggvndJFadxxDRyFJBX/ggnu/KE4kQAB7a3Dp8f/YXC1FlUprWmA=="],++ "chokidar": ["[email protected]", "", { "dependencies": { "anymatch": "~3.1.2", "braces": "~3.0.2", "glob-parent": "~5.1.2", "is-binary-path": "~2.1.0", "is-glob": "~4.0.1", "normalize-path": "~3.0.0", "readdirp": "~3.6.0" }, "optionalDependencies": { "fsevents": "~2.3.2" } }, "sha512-7VT13fmjotKpGipCW9JEQAusEPE+Ei8nl6/g4FBAmIm0GOOLMua9NDDo/DWp0ZAxCr3cPq5ZpBqmPAQgDda2Pw=="],++ "classnames": ["[email protected]", "", {}, "sha512-saHYOzhIQs6wy2sVxTM6bUDsQO4F50V9RQ22qBpEdCW+I+/Wmke2HOl6lS6dTpdxVhb88/I6+Hs+438c3lfUow=="],++ "colord": ["[email protected]", "", {}, "sha512-jeC1axXpnb0/2nn/Y1LPuLdgXBLH7aDcHu4KEKfqw3CUhX7ZpfBSlPKyqXE6btIgEzfWtrX3/tyBCaCvXvMkOw=="],++ "commander": ["[email protected]", "", {}, "sha512-NOKm8xhkzAjzFx8B2v5OAHT+u5pRQc2UCa2Vq9jYL/31o2wi9mxBA7LIFs3sV5VSC49z6pEhfbMULvShKj26WA=="],++ "convert-source-map": ["[email protected]", "", {}, "sha512-Kvp459HrV2FEJ1CAsi1Ku+MY3kasH19TFykTz2xWmMeq6bk2NU3XXvfJ+Q61m0xktWwt+1HSYf3JZsTms3aRJg=="],++ "cross-env": ["[email protected]", "", { "dependencies": { "cross-spawn": "^7.0.1" }, "bin": { "cross-env": "src/bin/cross-env.js", "cross-env-shell": "src/bin/cross-env-shell.js" } }, "sha512-+/HKd6EgcQCJGh2PSjZuUitQBQynKor4wrFbRg4DtAgS1aWO+gU52xpH7M9ScGgXSYmAVS9bIJ8EzuaGw0oNAw=="],++ "cross-spawn": ["[email protected]", "", { "dependencies": { "path-key": "^3.1.0", "shebang-command": "^2.0.0", "which": "^2.0.1" } }, "sha512-uV2QOWP2nWzsy2aMp8aRibhi9dlzF5Hgh5SHaB9OiTGEyDTiJJyx0uy51QXdyWbtAHNua4XJzUKca3OzKUd3vA=="],++ "cssesc": ["[email protected]", "", { "bin": { "cssesc": "bin/cssesc" } }, "sha512-/Tb/JcjK111nNScGob5MNtsntNM1aCNUDipB/TkwZFhyDrrE47SOx/18wF2bbjgc3ZzCSKW1T5nt5EbFoAz/Vg=="],++ "csstype": ["[email protected]", "", {}, "sha512-z1HGKcYy2xA8AGQfwrn0PAy+PB7X/GSj3UVJW9qKyn43xWa+gl5nXmU4qqLMRzWVLFC8KusUX8T/0kCiOYpAIQ=="],++ "debug": ["[email protected]", "", { "dependencies": { "ms": "^2.1.3" } }, "sha512-RGwwWnwQvkVfavKVt22FGLw+xYSdzARwm0ru6DhTVA3umU5hZc28V3kO4stgYryrTlLpuvgI9GiijltAjNbcqA=="],++ "deep-eql": ["[email protected]", "", {}, "sha512-h5k/5U50IJJFpzfL6nO9jaaumfjO/f2NjK/oYB2Djzm4p9L+3T9qWpZqZ2hAbLPuuYq9wrU08WQyBTL5GbPk5Q=="],++ "dequal": ["[email protected]", "", {}, "sha512-0je+qPKHEMohvfRTCEo3CrPG6cAzAYgmzKyxRiYSSDkS6eGJdyVJm7WaYA5ECaAD9wLB2T4EEeymA5aFVcYXCA=="],++ "detect-gpu": ["[email protected]", "", { "dependencies": { "webgl-constants": "^1.1.1" } }, "sha512-bqerEP1Ese6nt3rFkwPnGbsUF9a4q+gMmpTVVOEzoCyeCc+y7/RvJnQZJx1JwhgQI5Ntg0Kgat8Uu7XpBqnz1w=="],++ "detect-node-es": ["[email protected]", "", {}, "sha512-ypdmJU/TbBby2Dxibuv7ZLW3Bs1QEmM7nHjEANfohJLvE0XVujisn1qPJcZxg+qDucsr+bP6fLD1rPS3AhJ7EQ=="],++ "didyoumean": ["[email protected]", "", {}, "sha512-gxtyfqMg7GKyhQmb056K7M3xszy/myH8w+B4RT+QXBQsvAOdc3XymqDDPHx1BgPgsdAA5SIifona89YtRATDzw=="],++ "dlv": ["[email protected]", "", {}, "sha512-+HlytyjlPKnIG8XuRG8WvmBP8xs8P71y+SKKS6ZXWoEgLuePxtDoUEiH7WkdePWrQ5JBpE6aoVqfZfJUQkjXwA=="],++ "dotenv": ["[email protected]", "", {}, "sha512-nI4U3TottKAcAD9LLud4Cb7b2QztQMUEfHbvhTH09bqXTxnSie8WnjPALV/WMCrJZ6UV/qHJ6L03OqO3LcdYZw=="],++ "draco3d": ["[email protected]", "", {}, "sha512-m6WCKt/erDXcw+70IJXnG7M3awwQPAsZvJGX5zY7beBqpELw6RDGkYVU0W43AFxye4pDZ5i2Lbyc/NNGqwjUVQ=="],++ "electron-to-chromium": ["[email protected]", "", {}, "sha512-QsWVGyRuY07Aqb234QytTfwd5d9AJlfNIQ5wIOl1L+PZDzI9d9+Fn0FRale/QYlFxt/bUnB0/nLd1jFPGxGK1A=="],++ "es-errors": ["[email protected]", "", {}, "sha512-Zf5H2Kxt2xjTvbJvP2ZWLEICxA6j+hAmMzIlypy4xcBg1vKVnx89Wy0GbS+kf5cwCVFFzdCFh2XSCFNULS6csw=="],++ "es-module-lexer": ["[email protected]", "", {}, "sha512-jEQoCwk8hyb2AZziIOLhDqpm5+2ww5uIE6lkO/6jcOCusfk6LhMHpXXfBLXTZ7Ydyt0j4VoUQv6uGNYbdW+kBA=="],++ "esbuild": ["[email protected]", "", { "optionalDependencies": { "@esbuild/aix-ppc64": "0.21.5", "@esbuild/android-arm": "0.21.5", "@esbuild/android-arm64": "0.21.5", "@esbuild/android-x64": "0.21.5", "@esbuild/darwin-arm64": "0.21.5", "@esbuild/darwin-x64": "0.21.5", "@esbuild/freebsd-arm64": "0.21.5", "@esbuild/freebsd-x64": "0.21.5", "@esbuild/linux-arm": "0.21.5", "@esbuild/linux-arm64": "0.21.5", "@esbuild/linux-ia32": "0.21.5", "@esbuild/linux-loong64": "0.21.5", "@esbuild/linux-mips64el": "0.21.5", "@esbuild/linux-ppc64": "0.21.5", "@esbuild/linux-riscv64": "0.21.5", "@esbuild/linux-s390x": "0.21.5", "@esbuild/linux-x64": "0.21.5", "@esbuild/netbsd-x64": "0.21.5", "@esbuild/openbsd-x64": "0.21.5", "@esbuild/sunos-x64": "0.21.5", "@esbuild/win32-arm64": "0.21.5", "@esbuild/win32-ia32": "0.21.5", "@esbuild/win32-x64": "0.21.5" }, "bin": { "esbuild": "bin/esbuild" } }, "sha512-mg3OPMV4hXywwpoDxu3Qda5xCKQi+vCTZq8S9J/EpkhB2HzKXq4SNFZE3+NK93JYxc8VMSep+lOUSC/RVKaBqw=="],++ "escalade": ["[email protected]", "", {}, "sha512-WUj2qlxaQtO4g6Pq5c29GTcWGDyd8itL8zTlipgECz3JesAiiOKotd8JU6otB3PACgG6xkJUyVhboMS+bje/jA=="],++ "estree-walker": ["[email protected]", "", { "dependencies": { "@types/estree": "^1.0.0" } }, "sha512-7RUKfXgSMMkzt6ZuXmqapOurLGPPfgj6l9uRZ7lRGolvk0y2yocc35LdcxKC5PQZdn2DMqioAQ2NoWcrTKmm6g=="],++ "expect-type": ["[email protected]", "", {}, "sha512-knvyeauYhqjOYvQ66MznSMs83wmHrCycNEN6Ao+2AeYEfxUIkuiVxdEa1qlGEPK+We3n0THiDciYSsCcgW/DoA=="],++ "extend-shallow": ["[email protected]", "", { "dependencies": { "is-extendable": "^0.1.0" } }, "sha512-zCnTtlxNoAiDc3gqY2aYAWFx7XWWiasuF2K8Me5WbN8otHKTUKBwjPtNpRs/rbUZm7KxWAaNj7P1a/p52GbVug=="],++ "fast-glob": ["[email protected]", "", { "dependencies": { "@nodelib/fs.stat": "^2.0.2", "@nodelib/fs.walk": "^1.2.3", "glob-parent": "^5.1.2", "merge2": "^1.3.0", "micromatch": "^4.0.8" } }, "sha512-7MptL8U0cqcFdzIzwOTHoilX9x5BrNqye7Z/LuC7kCMRio1EMSyqRK3BEAUD7sXRq4iT4AzTVuZdhgQ2TCvYLg=="],++ "fastq": ["[email protected]", "", { "dependencies": { "reusify": "^1.0.4" } }, "sha512-GGToxJ/w1x32s/D2EKND7kTil4n8OVk/9mycTc4VDza13lOvpUZTGX3mFSCtV9ksdGBVzvsyAVLM6mHFThxXxw=="],++ "fdir": ["[email protected]", "", { "peerDependencies": { "picomatch": "^3 || ^4" }, "optionalPeers": ["picomatch"] }, "sha512-tIbYtZbucOs0BRGqPJkshJUYdL+SDH7dVM8gjy+ERp3WAUjLEFJE+02kanyHtwjWOnwrKYBiwAmM0p4kLJAnXg=="],++ "fflate": ["[email protected]", "", {}, "sha512-cPJU47OaAoCbg0pBvzsgpTPhmhqI5eJjh/JIu8tPj5q+T7iLvW/JAYUqmE7KOB4R1ZyEhzBaIQpQpardBF5z8A=="],++ "file-selector": ["[email protected]", "", { "dependencies": { "tslib": "^2.0.3" } }, "sha512-s8KNnmIDTBoD0p9uJ9uD0XY38SCeBOtj0UMXyQSLg1Ypfrfj8+dAvwsLjYQkQ2GjhVtp2HrnF5cJzMhBjfD8HA=="],++ "fill-range": ["[email protected]", "", { "dependencies": { "to-regex-range": "^5.0.1" } }, "sha512-YsGpe3WHLK8ZYi4tWDg2Jy3ebRz2rXowDxnld4bkQB00cc/1Zw9AWnC0i9ztDJitivtQvaI9KaLyKrc+hBW0yg=="],++ "for-in": ["[email protected]", "", {}, "sha512-7EwmXrOjyL+ChxMhmG5lnW9MPt1aIeZEwKhQzoBUdTV0N3zuwWDZYVJatDvZ2OyzPUvdIAZDsCetk3coyMfcnQ=="],++ "fraction.js": ["[email protected]", "", {}, "sha512-1X1NTtiJphryn/uLQz3whtY6jK3fTqoE3ohKs0tT+Ujr1W59oopxmoEh7Lu5p6vBaPbgoM0bzveAW4Qi5RyWDQ=="],++ "fsevents": ["[email protected]", "", { "os": "darwin" }, "sha512-5xoDfX+fL7faATnagmWPpbFtwh/R77WmMMqqHGS65C3vvB0YHrgF+B1YmZ3441tMj5n63k0212XNoJwzlhffQw=="],++ "function-bind": ["[email protected]", "", {}, "sha512-7XHNxH7qX9xG5mIwxkhumTox/MIRNcOgDrxWsMt2pAr23WHp6MrRlN7FBSFpCpr+oVO0F744iUgR82nJMfG2SA=="],++ "gensync": ["[email protected]", "", {}, "sha512-3hN7NaskYvMDLQY55gnW3NQ+mesEAepTqlg+VEbj7zzqEMBVNhzcGYYeqFo/TlYz6eQiFcp1HcsCZO+nGgS8zg=="],++ "get-nonce": ["[email protected]", "", {}, "sha512-FJhYRoDaiatfEkUK8HKlicmu/3SGFD51q3itKDGoSTysQJBnfOcxU5GxnhE1E6soB76MbT0MBtnKJuXyAx+96Q=="],++ "get-value": ["[email protected]", "", {}, "sha512-Ln0UQDlxH1BapMu3GPtf7CuYNwRZf2gwCuPqbyG6pB8WfmFpzqcy4xtAaAMUhnNqjMKTiCPZG2oMT3YSx8U2NA=="],++ "glob-parent": ["[email protected]", "", { "dependencies": { "is-glob": "^4.0.3" } }, "sha512-XxwI8EOhVQgWp6iDL+3b0r86f4d6AX6zSU55HfB4ydCEuXLXc5FcYeOu+nnGftS4TEju/11rt4KJPTMgbfmv4A=="],++ "glsl-noise": ["[email protected]", "", {}, "sha512-b/ZCF6amfAUb7dJM/MxRs7AetQEahYzJ8PtgfrmEdtw6uyGOr+ZSGtgjFm6mfsBkxJ4d2W7kg+Nlqzqvn3Bc0w=="],++ "hasown": ["[email protected]", "", { "dependencies": { "function-bind": "^1.1.2" } }, "sha512-ej4AhfhfL2Q2zpMmLo7U1Uv9+PyhIZpgQLGT1F9miIGmiCJIoCgSmczFdrc97mWT4kVY72KA+WnnhJ5pghSvSg=="],++ "hls.js": ["[email protected]", "", {}, "sha512-VSIRpLfRwlAAdGL4wiTucx2ScRipo0ed1FBatWkyt832jC4CReKstga6yIhYVwGu9LOBjuX9wzmRMeQdBJtzEA=="],++ "ieee754": ["[email protected]", "", {}, "sha512-dcyqhDvX1C46lXZcVqCpK+FtMRQVdIMN6/Df5js2zouUsqG7I6sFxitIC+7KYK29KdXOLHdu9zL4sFnoVQnqaA=="],++ "image-blaster": ["image-blaster@workspace:app"],++ "immediate": ["[email protected]", "", {}, "sha512-XXOFtyqDjNDAQxVfYxuF7g9Il/IbWmmlQg2MYKOH8ExIT1qg6xc4zyS3HaEEATgs1btfzxq15ciUiY7gjSXRGQ=="],++ "is-binary-path": ["[email protected]", "", { "dependencies": { "binary-extensions": "^2.0.0" } }, "sha512-ZMERYes6pDydyuGidse7OsHxtbI7WVeUEozgR/g7rd0xUimYNlvZRE/K2MgZTjWy725IfelLeVcEM97mmtRGXw=="],++ "is-core-module": ["[email protected]", "", { "dependencies": { "hasown": "^2.0.2" } }, "sha512-UfoeMA6fIJ8wTYFEUjelnaGI67v6+N7qXJEvQuIGa99l4xsCruSYOVSQ0uPANn4dAzm8lkYPaKLrrijLq7x23w=="],++ "is-extendable": ["[email protected]", "", { "dependencies": { "is-plain-object": "^2.0.4" } }, "sha512-arnXMxT1hhoKo9k1LZdmlNyJdDDfy2v0fXjFlmok4+i8ul/6WlbVge9bhM74OpNPQPMGUToDtz+KXa1PneJxOA=="],++ "is-extglob": ["[email protected]", "", {}, "sha512-SbKbANkN603Vi4jEZv49LeVJMn4yGwsbzZworEoyEiutsN3nJYdbO36zfhGJ6QEDpOZIFkDtnq5JRxmvl3jsoQ=="],++ "is-glob": ["[email protected]", "", { "dependencies": { "is-extglob": "^2.1.1" } }, "sha512-xelSayHH36ZgE7ZWhli7pW34hNbNl8Ojv5KVmkJD4hBdD3th8Tfk9vYasLM+mXWOZhFkgZfxhLSnrwRr4elSSg=="],++ "is-number": ["[email protected]", "", {}, "sha512-41Cifkg6e8TylSpdtTpeLVMqvSBEVzTttHvERD741+pnZ8ANv0004MRL43QKPDlK9cGvNp6NZWZUBlbGXYxxng=="],++ "is-plain-object": ["[email protected]", "", { "dependencies": { "isobject": "^3.0.1" } }, "sha512-h5PpgXkWitc38BBMYawTYMWJHFZJVnBquFE57xFpjB8pJFiF6gZ+bU+WyI/yqXiFR5mdLsgYNaPe8uao6Uv9Og=="],++ "is-promise": ["[email protected]", "", {}, "sha512-+lP4/6lKUBfQjZ2pdxThZvLUAafmZb8OAxFb8XXtiQmS35INgr85hdOGoEs124ez1FCnZJt6jau/T+alh58QFQ=="],++ "isexe": ["[email protected]", "", {}, "sha512-RHxMLp9lnKHGHRng9QFhRCMbYAcVpn69smSGcq3f36xjgVVWThj4qqLbTLlq7Ssj8B+fIQ1EuCEGI2lKsyQeIw=="],++ "isobject": ["[email protected]", "", {}, "sha512-WhB9zCku7EGTj/HQQRz5aUQEUeoQZH2bWcltRErOpymJ4boYE6wL9Tbr23krRPSZ+C5zqNSrSw+Cc7sZZ4b7vg=="],++ "its-fine": ["[email protected]", "", { "dependencies": { "@types/react-reconciler": "^0.28.9" }, "peerDependencies": { "react": "^19.0.0" } }, "sha512-KLViCmWx94zOvpLwSlsx6yOCeMhZYaxrJV87Po5k/FoZzcPSahvK5qJ7fYhS61sZi5ikmh2S3Hz55A2l3U69ng=="],++ "jiti": ["[email protected]", "", { "bin": { "jiti": "bin/jiti.js" } }, "sha512-/imKNG4EbWNrVjoNC/1H5/9GFy+tqjGBHCaSsN+P2RnPqjsLmv6UD3Ej+Kj8nBWaRAwyk7kK5ZUc+OEatnTR3A=="],++ "js-tokens": ["[email protected]", "", {}, "sha512-RdJUflcE3cUzKiMqQgsCu06FPu9UdIJO0beYbPhHN4k6apgJtifcoCtT9bcxOpYBtpD2kCM6Sbzg4CausW/PKQ=="],++ "jsesc": ["[email protected]", "", { "bin": { "jsesc": "bin/jsesc" } }, "sha512-/sM3dO2FOzXjKQhJuo0Q173wf2KOo8t4I8vHy6lF9poUp7bKT0/NHE8fPX23PwfhnykfqnC2xRxOnVw5XuGIaA=="],++ "json5": ["[email protected]", "", { "bin": { "json5": "lib/cli.js" } }, "sha512-XmOWe7eyHYH14cLdVPoyg+GOH3rYX++KpzrylJwSW98t3Nk+U8XOl8FWKOgwtzdb8lXGf6zYwDUzeHMWfxasyg=="],++ "leva": ["[email protected]", "", { "dependencies": { "@radix-ui/react-portal": "^1.1.4", "@radix-ui/react-tooltip": "^1.1.8", "@stitches/react": "^1.2.8", "@use-gesture/react": "^10.2.5", "colord": "^2.9.2", "dequal": "^2.0.2", "merge-value": "^1.0.0", "react-colorful": "^5.5.1", "react-dropzone": "^12.0.0", "v8n": "^1.3.3", "zustand": "^3.6.9" }, "peerDependencies": { "react": "^18.0.0 || ^19.0.0", "react-dom": "^18.0.0 || ^19.0.0" } }, "sha512-BcjnfUX8jpmwZUz2L7AfBtF9vn4ggTH33hmeufDULbP3YgNZ/C+ss/oO3stbrqRQyaOmRwy70y7BGTGO81S3rA=="],++ "lie": ["[email protected]", "", { "dependencies": { "immediate": "~3.0.5" } }, "sha512-UaiMJzeWRlEujzAuw5LokY1L5ecNQYZKfmyZ9L7wDHb/p5etKaxXhohBcrw0EYby+G/NA52vRSN4N39dxHAIwQ=="],++ "lilconfig": ["[email protected]", "", {}, "sha512-/vlFKAoH5Cgt3Ie+JLhRbwOsCQePABiU3tJ1egGvyQ+33R/vcwM2Zl2QR/LzjsBeItPt3oSVXapn+m4nQDvpzw=="],++ "lines-and-columns": ["[email protected]", "", {}, "sha512-7ylylesZQ/PV29jhEDl3Ufjo6ZX7gCqJr5F7PKrqc93v7fzSymt1BpwEU8nAUXs8qzzvqhbjhK5QZg6Mt/HkBg=="],++ "loose-envify": ["[email protected]", "", { "dependencies": { "js-tokens": "^3.0.0 || ^4.0.0" }, "bin": { "loose-envify": "cli.js" } }, "sha512-lyuxPGr/Wfhrlem2CL/UcnUc1zcqKAImBDzukY7Y5F/yQiNdko6+fRLevlw1HgMySw7f611UIY408EtxRSoK3Q=="],++ "loupe": ["[email protected]", "", {}, "sha512-CdzqowRJCeLU72bHvWqwRBBlLcMEtIvGrlvef74kMnV2AolS9Y8xUv1I0U/MNAWMhBlKIoyuEgoJ0t/bbwHbLQ=="],++ "lru-cache": ["[email protected]", "", { "dependencies": { "yallist": "^3.0.2" } }, "sha512-KpNARQA3Iwv+jTA0utUVVbrh+Jlrr1Fv0e56GGzAFOXN7dk/FviaDW8LHmK52DlcH4WP2n6gI8vN1aesBFgo9w=="],++ "maath": ["[email protected]", "", { "peerDependencies": { "@types/three": ">=0.134.0", "three": ">=0.134.0" } }, "sha512-tRvbDF0Pgqz+9XUa4jjfgAQ8/aPKmQdWXilFu2tMy4GWj4NOsx99HlULO4IeREfbO3a0sA145DZYyvXPkybm0g=="],++ "magic-string": ["[email protected]", "", { "dependencies": { "@jridgewell/sourcemap-codec": "^1.5.5" } }, "sha512-vd2F4YUyEXKGcLHoq+TEyCjxueSeHnFxyyjNp80yg0XV4vUhnDer/lvvlqM/arB5bXQN5K2/3oinyCRyx8T2CQ=="],++ "merge-value": ["[email protected]", "", { "dependencies": { "get-value": "^2.0.6", "is-extendable": "^1.0.0", "mixin-deep": "^1.2.0", "set-value": "^2.0.0" } }, "sha512-fJMmvat4NeKz63Uv9iHWcPDjCWcCkoiRoajRTEO8hlhUC6rwaHg0QCF9hBOTjZmm4JuglPckPSTtcuJL5kp0TQ=="],++ "merge2": ["[email protected]", "", {}, "sha512-8q7VEgMJW4J8tcfVPy8g09NcQwZdbwFEqhe/WZkoIzjn/3TGDwtOCYtXGxA3O8tPzpczCCDgv+P2P5y00ZJOOg=="],++ "meshline": ["[email protected]", "", { "peerDependencies": { "three": ">=0.137" } }, "sha512-/TQj+JdZkeSUOl5Mk2J7eLcYTLiQm2IDzmlSvYm7ov15anEcDJ92GHqqazxTSreeNgfnYu24kiEvvv0WlbCdFQ=="],++ "meshoptimizer": ["[email protected]", "", {}, "sha512-IebiK79sqIy+E4EgOr+CAw+Ke8hAspXKzBd0JdgEmPHiAwmvEj2S4h1rfvo+o/BnfEYd/jAOg5IeeIjzlzSnDg=="],++ "micromatch": ["[email protected]", "", { "dependencies": { "braces": "^3.0.3", "picomatch": "^2.3.1" } }, "sha512-PXwfBhYu0hBCPw8Dn0E+WDYb7af3dSLVWKi3HGv84IdF4TyFoC0ysxFd0Goxw7nSv4T/PzEJQxsYsEiFCKo2BA=="],++ "mitt": ["[email protected]", "", {}, "sha512-vKivATfr97l2/QBCYAkXYDbrIWPM2IIKEl7YPhjCvKlG3kE2gm+uBo6nEXK3M5/Ffh/FLpKExzOQ3JJoJGFKBw=="],++ "mixin-deep": ["[email protected]", "", { "dependencies": { "for-in": "^1.0.2", "is-extendable": "^1.0.1" } }, "sha512-WRoDn//mXBiJ1H40rqa3vH0toePwSsGb45iInWlTySa+Uu4k3tYUSxa2v1KqAiLtvlrSzaExqS1gtk96A9zvEA=="],++ "ms": ["[email protected]", "", {}, "sha512-6FlzubTLZG3J2a/NVCAleEhjzq5oxgHyaCU9yYXvcLsvoVaHJq/s5xXI6/XXP6tz7R9xAOtHnSO/tXtF3WRTlA=="],++ "mz": ["[email protected]", "", { "dependencies": { "any-promise": "^1.0.0", "object-assign": "^4.0.1", "thenify-all": "^1.0.0" } }, "sha512-z81GNO7nnYMEhrGh9LeymoE4+Yr0Wn5McHIZMK5cfQCl+NDX08sCZgUc9/6MHni9IWuFLm1Z3HTCXu2z9fN62Q=="],++ "n8ao": ["[email protected]", "", { "peerDependencies": { "postprocessing": ">=6.30.0", "three": ">=0.137" } }, "sha512-hhI1pC+BfOZBV1KMwynBrVlIm8wqLxj/abAWhF2nZ0qQKyzTSQa1QtLVS2veRiuoBQXojxobcnp0oe+PUoxf/w=="],++ "nanoid": ["[email protected]", "", { "bin": { "nanoid": "bin/nanoid.cjs" } }, "sha512-ZB9RH/39qpq5Vu6Y+NmUaFhQR6pp+M2Xt76XBnEwDaGcVAqhlvxrl3B2bKS5D3NH3QR76v3aSrKaF/Kiy7lEtQ=="],++ "node-releases": ["[email protected]", "", {}, "sha512-3qT/88Y3FbH/Kx4szpQQ4HzUbVrHPKTLVpVocKiLfoYvw9XSGOX2FmD2d6DrXbVYyAQTF2HeF6My8jmzx7/CRw=="],++ "normalize-path": ["[email protected]", "", {}, "sha512-6eZs5Ls3WtCisHWp9S2GUy8dqkpGi4BVSz3GaqiE6ezub0512ESztXUwUB6C6IKbQkY2Pnb/mD4WYojCRwcwLA=="],++ "object-assign": ["[email protected]", "", {}, "sha512-rJgTQnkUnH1sFw8yT6VSU3zD3sWmu6sZhIseY8VX+GRu3P6F7Fu+JNDoXfklElbLJSnc3FUQHVe4cU5hj+BcUg=="],++ "object-hash": ["[email protected]", "", {}, "sha512-RSn9F68PjH9HqtltsSnqYC1XXoWe9Bju5+213R98cNGttag9q9yAOTzdbsqvIa7aNm5WffBZFpWYr2aWrklWAw=="],++ "path-key": ["[email protected]", "", {}, "sha512-ojmeN0qd+y0jszEtoY48r0Peq5dwMEkIlCOu6Q5f41lfkswXuKtYrhgoTpLnyIcHm24Uhqx+5Tqm2InSwLhE6Q=="],++ "path-parse": ["[email protected]", "", {}, "sha512-LDJzPVEEEPR+y48z93A0Ed0yXb8pAByGWo/k5YYdYgpY2/2EsOsksJrq7lOHxryrVOn1ejG6oAp8ahvOIQD8sw=="],++ "pathe": ["[email protected]", "", {}, "sha512-whLdWMYL2TwI08hn8/ZqAbrVemu0LNaNNJZX73O6qaIdCTfXutsLhMkjdENX0qhsQ9uIimo4/aQOmXkoon2nDQ=="],++ "pathval": ["[email protected]", "", {}, "sha512-//nshmD55c46FuFw26xV/xFAaB5HF9Xdap7HJBBnrKdAd6/GxDBaNA1870O79+9ueg61cZLSVc+OaFlfmObYVQ=="],++ "picocolors": ["[email protected]", "", {}, "sha512-xceH2snhtb5M9liqDsmEw56le376mTZkEX/jEb/RxNFyegNul7eNslCXP9FDj/Lcu0X8KEyMceP2ntpaHrDEVA=="],++ "picomatch": ["[email protected]", "", {}, "sha512-V7+vQEJ06Z+c5tSye8S+nHUfI51xoXIXjHQ99cQtKUkQqqO1kO/KCJUfZXuB47h/YBlDhah2H3hdUGXn8ie0oA=="],++ "pify": ["[email protected]", "", {}, "sha512-udgsAY+fTnvv7kI7aaxbqwWNb0AHiB0qBO89PZKPkoTmGOgdbrHDKD+0B2X4uTfJ/FT1R09r9gTsjUjNJotuog=="],++ "pirates": ["[email protected]", "", {}, "sha512-TfySrs/5nm8fQJDcBDuUng3VOUKsd7S+zqvbOTiGXHfxX4wK31ard+hoNuvkicM/2YFzlpDgABOevKSsB4G/FA=="],++ "postcss": ["[email protected]", "", { "dependencies": { "nanoid": "^3.3.11", "picocolors": "^1.1.1", "source-map-js": "^1.2.1" } }, "sha512-SoSL4+OSEtR99LHFZQiJLkT59C5B1amGO1NzTwj7TT1qCUgUO6hxOvzkOYxD+vMrXBM3XJIKzokoERdqQq/Zmg=="],++ "postcss-import": ["[email protected]", "", { "dependencies": { "postcss-value-parser": "^4.0.0", "read-cache": "^1.0.0", "resolve": "^1.1.7" }, "peerDependencies": { "postcss": "^8.0.0" } }, "sha512-hpr+J05B2FVYUAXHeK1YyI267J/dDDhMU6B6civm8hSY1jYJnBXxzKDKDswzJmtLHryrjhnDjqqp/49t8FALew=="],++ "postcss-js": ["[email protected]", "", { "dependencies": { "camelcase-css": "^2.0.1" }, "peerDependencies": { "postcss": "^8.4.21" } }, "sha512-oIAOTqgIo7q2EOwbhb8UalYePMvYoIeRY2YKntdpFQXNosSu3vLrniGgmH9OKs/qAkfoj5oB3le/7mINW1LCfw=="],++ "postcss-load-config": ["[email protected]", "", { "dependencies": { "lilconfig": "^3.1.1" }, "peerDependencies": { "jiti": ">=1.21.0", "postcss": ">=8.0.9", "tsx": "^4.8.1", "yaml": "^2.4.2" }, "optionalPeers": ["jiti", "postcss", "tsx", "yaml"] }, "sha512-oPtTM4oerL+UXmx+93ytZVN82RrlY/wPUV8IeDxFrzIjXOLF1pN+EmKPLbubvKHT2HC20xXsCAH2Z+CKV6Oz/g=="],++ "postcss-nested": ["[email protected]", "", { "dependencies": { "postcss-selector-parser": "^6.1.1" }, "peerDependencies": { "postcss": "^8.2.14" } }, "sha512-HQbt28KulC5AJzG+cZtj9kvKB93CFCdLvog1WFLf1D+xmMvPGlBstkpTEZfK5+AN9hfJocyBFCNiqyS48bpgzQ=="],++ "postcss-selector-parser": ["[email protected]", "", { "dependencies": { "cssesc": "^3.0.0", "util-deprecate": "^1.0.2" } }, "sha512-Q8qQfPiZ+THO/3ZrOrO0cJJKfpYCagtMUkXbnEfmgUjwXg6z/WBeOyS9APBBPCTSiDV+s4SwQGu8yFsiMRIudg=="],++ "postcss-value-parser": ["[email protected]", "", {}, "sha512-1NNCs6uurfkVbeXG4S8JFT9t19m45ICnif8zWLd5oPSZ50QnwMfK+H3jv408d4jw/7Bttv5axS5IiHoLaVNHeQ=="],++ "postprocessing": ["[email protected]", "", { "peerDependencies": { "three": ">= 0.168.0 < 0.185.0" } }, "sha512-R2dG2zy+BAx3USl5EHw+PvnrlbT5PKnZVp3se0HCR0pWH8WQdh742yNG4YWOsq6c0bFpffk0Gd2RqPeoP/wKng=="],++ "potpack": ["[email protected]", "", {}, "sha512-choctRBIV9EMT9WGAZHn3V7t0Z2pMQyl0EZE6pFc/6ml3ssw7Dlf/oAOvFwjm1HVsqfQN8GfeFyJ+d8tRzqueQ=="],++ "promise-worker-transferable": ["[email protected]", "", { "dependencies": { "is-promise": "^2.1.0", "lie": "^3.0.2" } }, "sha512-bN+0ehEnrXfxV2ZQvU2PetO0n4gqBD4ulq3MI1WOPLgr7/Mg9yRQkX5+0v1vagr74ZTsl7XtzlaYDo2EuCeYJw=="],++ "prop-types": ["[email protected]", "", { "dependencies": { "loose-envify": "^1.4.0", "object-assign": "^4.1.1", "react-is": "^16.13.1" } }, "sha512-oj87CgZICdulUohogVAR7AjlC0327U4el4L6eAvOqCeudMDVU0NThNaV+b9Df4dXgSP1gXMTnPdhfe/2qDH5cg=="],++ "queue-microtask": ["[email protected]", "", {}, "sha512-NuaNSa6flKT5JaSYQzJok04JzTL1CA6aGhv5rfLW3PgqA+M2ChpZQnAC8h8i4ZFkBS8X5RqkDBHA7r4hej3K9A=="],++ "radix-ui": ["[email protected]", "", { "dependencies": { "@radix-ui/primitive": "1.1.3", "@radix-ui/react-accessible-icon": "1.1.7", "@radix-ui/react-accordion": "1.2.12", "@radix-ui/react-alert-dialog": "1.1.15", "@radix-ui/react-arrow": "1.1.7", "@radix-ui/react-aspect-ratio": "1.1.7", "@radix-ui/react-avatar": "1.1.10", "@radix-ui/react-checkbox": "1.3.3", "@radix-ui/react-collapsible": "1.1.12", "@radix-ui/react-collection": "1.1.7", "@radix-ui/react-compose-refs": "1.1.2", "@radix-ui/react-context": "1.1.2", "@radix-ui/react-context-menu": "2.2.16", "@radix-ui/react-dialog": "1.1.15", "@radix-ui/react-direction": "1.1.1", "@radix-ui/react-dismissable-layer": "1.1.11", "@radix-ui/react-dropdown-menu": "2.1.16", "@radix-ui/react-focus-guards": "1.1.3", "@radix-ui/react-focus-scope": "1.1.7", "@radix-ui/react-form": "0.1.8", "@radix-ui/react-hover-card": "1.1.15", "@radix-ui/react-label": "2.1.7", "@radix-ui/react-menu": "2.1.16", "@radix-ui/react-menubar": "1.1.16", "@radix-ui/react-navigation-menu": "1.2.14", "@radix-ui/react-one-time-password-field": "0.1.8", "@radix-ui/react-password-toggle-field": "0.1.3", "@radix-ui/react-popover": "1.1.15", "@radix-ui/react-popper": "1.2.8", "@radix-ui/react-portal": "1.1.9", "@radix-ui/react-presence": "1.1.5", "@radix-ui/react-primitive": "2.1.3", "@radix-ui/react-progress": "1.1.7", "@radix-ui/react-radio-group": "1.3.8", "@radix-ui/react-roving-focus": "1.1.11", "@radix-ui/react-scroll-area": "1.2.10", "@radix-ui/react-select": "2.2.6", "@radix-ui/react-separator": "1.1.7", "@radix-ui/react-slider": "1.3.6", "@radix-ui/react-slot": "1.2.3", "@radix-ui/react-switch": "1.2.6", "@radix-ui/react-tabs": "1.1.13", "@radix-ui/react-toast": "1.2.15", "@radix-ui/react-toggle": "1.1.10", "@radix-ui/react-toggle-group": "1.1.11", "@radix-ui/react-toolbar": "1.1.11", "@radix-ui/react-tooltip": "1.2.8", "@radix-ui/react-use-callback-ref": "1.1.1", "@radix-ui/react-use-controllable-state": "1.2.2", "@radix-ui/react-use-effect-event": "0.0.2", "@radix-ui/react-use-escape-keydown": "1.1.1", "@radix-ui/react-use-is-hydrated": "0.1.0", "@radix-ui/react-use-layout-effect": "1.1.1", "@radix-ui/react-use-size": "1.1.1", "@radix-ui/react-visually-hidden": "1.2.3" }, "peerDependencies": { "@types/react": "*", "@types/react-dom": "*", "react": "^16.8 || ^17.0 || ^18.0 || ^19.0 || ^19.0.0-rc", "react-dom": "^16.8 || ^17.0 || ^18.0 || ^19.0 || ^19.0.0-rc" }, "optionalPeers": ["@types/react", "@types/react-dom"] }, "sha512-aWizCQiyeAenIdUbqEpXgRA1ya65P13NKn/W8rWkcN0OPkRDxdBVLWnIEDsS2RpwCK2nobI7oMUSmexzTDyAmA=="],++ "react": ["[email protected]", "", {}, "sha512-llUJLzz1zTUBrskt2pwZgLq59AemifIftw4aB7JxOqf1HY2FDaGDxgwpAPVzHU1kdWabH7FauP4i1oEeer2WCA=="],++ "react-colorful": ["[email protected]", "", { "peerDependencies": { "react": ">=16.8.0", "react-dom": ">=16.8.0" } }, "sha512-1exovf0uGTGyq5mXQT0zgQ80uvj2PCwvF8zY1RN9/vbJVSjSo3fsB/4L3ObbF7u70NduSiK4xu4Y6q1MHoUGEw=="],++ "react-dom": ["[email protected]", "", { "dependencies": { "scheduler": "^0.27.0" }, "peerDependencies": { "react": "^19.2.5" } }, "sha512-J5bAZz+DXMMwW/wV3xzKke59Af6CHY7G4uYLN1OvBcKEsWOs4pQExj86BBKamxl/Ik5bx9whOrvBlSDfWzgSag=="],++ "react-dropzone": ["[email protected]", "", { "dependencies": { "attr-accept": "^2.2.2", "file-selector": "^0.5.0", "prop-types": "^15.8.1" }, "peerDependencies": { "react": ">= 16.8" } }, "sha512-iBYHA1rbopIvtzokEX4QubO6qk5IF/x3BtKGu74rF2JkQDXnwC4uO/lHKpaw4PJIV6iIAYOlwLv2FpiGyqHNog=="],++ "react-is": ["[email protected]", "", {}, "sha512-24e6ynE2H+OKt4kqsOvNd8kBpV65zoxbA4BVsEOB3ARVWQki/DHzaUoC5KuON/BiccDaCCTZBuOcfZs70kR8bQ=="],++ "react-refresh": ["[email protected]", "", {}, "sha512-z6F7K9bV85EfseRCp2bzrpyQ0Gkw1uLoCel9XBVWPg/TjRj94SkJzUTGfOa4bs7iJvBWtQG0Wq7wnI0syw3EBQ=="],++ "react-remove-scroll": ["[email protected]", "", { "dependencies": { "react-remove-scroll-bar": "^2.3.7", "react-style-singleton": "^2.2.3", "tslib": "^2.1.0", "use-callback-ref": "^1.3.3", "use-sidecar": "^1.1.3" }, "peerDependencies": { "@types/react": "*", "react": "^16.8.0 || ^17.0.0 || ^18.0.0 || ^19.0.0 || ^19.0.0-rc" }, "optionalPeers": ["@types/react"] }, "sha512-Iqb9NjCCTt6Hf+vOdNIZGdTiH1QSqr27H/Ek9sv/a97gfueI/5h1s3yRi1nngzMUaOOToin5dI1dXKdXiF+u0Q=="],++ "react-remove-scroll-bar": ["[email protected]", "", { "dependencies": { "react-style-singleton": "^2.2.2", "tslib": "^2.0.0" }, "peerDependencies": { "@types/react": "*", "react": "^16.8.0 || ^17.0.0 || ^18.0.0 || ^19.0.0" }, "optionalPeers": ["@types/react"] }, "sha512-9r+yi9+mgU33AKcj6IbT9oRCO78WriSj6t/cF8DWBZJ9aOGPOTEDvdUDz1FwKim7QXWwmHqtdHnRJfhAxEG46Q=="],++ "react-style-singleton": ["[email protected]", "", { "dependencies": { "get-nonce": "^1.0.0", "tslib": "^2.0.0" }, "peerDependencies": { "@types/react": "*", "react": "^16.8.0 || ^17.0.0 || ^18.0.0 || ^19.0.0 || ^19.0.0-rc" }, "optionalPeers": ["@types/react"] }, "sha512-b6jSvxvVnyptAiLjbkWLE/lOnR4lfTtDAl+eUC7RZy+QQWc6wRzIV2CE6xBuMmDxc2qIihtDCZD5NPOFl7fRBQ=="],++ "react-use-measure": ["[email protected]", "", { "peerDependencies": { "react": ">=16.13", "react-dom": ">=16.13" }, "optionalPeers": ["react-dom"] }, "sha512-KrvcAo13I/60HpwGO5jpW7E9DfusKyLPLvuHlUyP5zqnmAPhNc6qTRjUQrdTADl0lpPpDVU2/Gg51UlOGHXbdg=="],++ "read-cache": ["[email protected]", "", { "dependencies": { "pify": "^2.3.0" } }, "sha512-Owdv/Ft7IjOgm/i0xvNDZ1LrRANRfew4b2prF3OWMQLxLfu3bS8FVhCsrSCMK4lR56Y9ya+AThoTpDCTxCmpRA=="],++ "readdirp": ["[email protected]", "", { "dependencies": { "picomatch": "^2.2.1" } }, "sha512-hOS089on8RduqdbhvQ5Z37A0ESjsqz6qnRcffsMU3495FuTdqSm+7bhJ29JvIOsBDEEnan5DPu9t3To9VRlMzA=="],++ "regexparam": ["[email protected]", "", {}, "sha512-RSYAtP31mvYLkAHrOlh25pCNQ5hWnT106VukGaaFfuJrZFkGRX5GhUAdPqpSDXxOhA2c4akmRuplv1mRqnBn6Q=="],++ "require-from-string": ["[email protected]", "", {}, "sha512-Xf0nWe6RseziFMu+Ap9biiUbmplq6S9/p+7w7YXP/JBHhrUDDUhwa+vANyubuqfZWTveU//DYVGsDG7RKL/vEw=="],++ "resolve": ["[email protected]", "", { "dependencies": { "es-errors": "^1.3.0", "is-core-module": "^2.16.1", "path-parse": "^1.0.7", "supports-preserve-symlinks-flag": "^1.0.0" }, "bin": { "resolve": "bin/resolve" } }, "sha512-TyeJ1zif53BPfHootBGwPRYT1RUt6oGWsaQr8UyZW/eAm9bKoijtvruSDEmZHm92CwS9nj7/fWttqPCgzep8CA=="],++ "reusify": ["[email protected]", "", {}, "sha512-g6QUff04oZpHs0eG5p83rFLhHeV00ug/Yf9nZM6fLeUrPguBTkTQOdpAWWspMh55TZfVQDPaN3NQJfbVRAxdIw=="],++ "rollup": ["[email protected]", "", { "dependencies": { "@types/estree": "1.0.8" }, "optionalDependencies": { "@rollup/rollup-android-arm-eabi": "4.60.3", "@rollup/rollup-android-arm64": "4.60.3", "@rollup/rollup-darwin-arm64": "4.60.3", "@rollup/rollup-darwin-x64": "4.60.3", "@rollup/rollup-freebsd-arm64": "4.60.3", "@rollup/rollup-freebsd-x64": "4.60.3", "@rollup/rollup-linux-arm-gnueabihf": "4.60.3", "@rollup/rollup-linux-arm-musleabihf": "4.60.3", "@rollup/rollup-linux-arm64-gnu": "4.60.3", "@rollup/rollup-linux-arm64-musl": "4.60.3", "@rollup/rollup-linux-loong64-gnu": "4.60.3", "@rollup/rollup-linux-loong64-musl": "4.60.3", "@rollup/rollup-linux-ppc64-gnu": "4.60.3", "@rollup/rollup-linux-ppc64-musl": "4.60.3", "@rollup/rollup-linux-riscv64-gnu": "4.60.3", "@rollup/rollup-linux-riscv64-musl": "4.60.3", "@rollup/rollup-linux-s390x-gnu": "4.60.3", "@rollup/rollup-linux-x64-gnu": "4.60.3", "@rollup/rollup-linux-x64-musl": "4.60.3", "@rollup/rollup-openbsd-x64": "4.60.3", "@rollup/rollup-openharmony-arm64": "4.60.3", "@rollup/rollup-win32-arm64-msvc": "4.60.3", "@rollup/rollup-win32-ia32-msvc": "4.60.3", "@rollup/rollup-win32-x64-gnu": "4.60.3", "@rollup/rollup-win32-x64-msvc": "4.60.3", "fsevents": "~2.3.2" }, "bin": { "rollup": "dist/bin/rollup" } }, "sha512-pAQK9HalE84QSm4Po3EmWIZPd3FnjkShVkiMlz1iligWYkWQ7wHYd1PF/T7QZ5TVSD6uSTon5gBVMSM4JfBV+A=="],++ "run-parallel": ["[email protected]", "", { "dependencies": { "queue-microtask": "^1.2.2" } }, "sha512-5l4VyZR86LZ/lDxZTR6jqL8AFE2S0IFLMP26AbjsLVADxHdhB/c0GUsH+y39UfCi3dzz8OlQuPmnaJOMoDHQBA=="],++ "scheduler": ["[email protected]", "", {}, "sha512-eNv+WrVbKu1f3vbYJT/xtiF5syA5HPIMtf9IgY/nKg0sWqzAUEvqY/xm7OcZc/qafLx/iO9FgOmeSAp4v5ti/Q=="],++ "semver": ["[email protected]", "", { "bin": { "semver": "bin/semver.js" } }, "sha512-BR7VvDCVHO+q2xBEWskxS6DJE1qRnb7DxzUrogb71CWoSficBxYsiAGd+Kl0mmq/MprG9yArRkyrQxTO6XjMzA=="],++ "set-value": ["[email protected]", "", { "dependencies": { "extend-shallow": "^2.0.1", "is-extendable": "^0.1.1", "is-plain-object": "^2.0.3", "split-string": "^3.0.1" } }, "sha512-JxHc1weCN68wRY0fhCoXpyK55m/XPHafOmK4UWD7m2CI14GMcFypt4w/0+NV5f/ZMby2F6S2wwA7fgynh9gWSw=="],++ "shebang-command": ["[email protected]", "", { "dependencies": { "shebang-regex": "^3.0.0" } }, "sha512-kHxr2zZpYtdmrN1qDjrrX/Z1rR1kG8Dx+gkpK1G4eXmvXswmcE1hTWBWYUzlraYw1/yZp6YuDY77YtvbN0dmDA=="],++ "shebang-regex": ["[email protected]", "", {}, "sha512-7++dFhtcx3353uBaq8DDR4NuxBetBzC7ZQOhmTQInHEd6bSrXdiEyzCvG07Z44UYdLShWUyXt5M/yhz8ekcb1A=="],++ "siginfo": ["[email protected]", "", {}, "sha512-ybx0WO1/8bSBLEWXZvEd7gMW3Sn3JFlW3TvX1nREbDLRNQNaeNN8WK0meBwPdAaOI7TtRRRJn/Es1zhrrCHu7g=="],++ "source-map-js": ["[email protected]", "", {}, "sha512-UXWMKhLOwVKb728IUtQPXxfYU+usdybtUrK/8uGE8CQMvrhOpwvzDBwj0QhSL7MQc7vIsISBG8VQ8+IDQxpfQA=="],++ "split-string": ["[email protected]", "", { "dependencies": { "extend-shallow": "^3.0.0" } }, "sha512-NzNVhJDYpwceVVii8/Hu6DKfD2G+NrQHlS/V/qgv763EYudVwEcMQNxd2lh+0VrUByXN/oJkl5grOhYWvQUYiw=="],++ "stackback": ["[email protected]", "", {}, "sha512-1XMJE5fQo1jGH6Y/7ebnwPOBEkIEnT4QF32d5R1+VXdXveM0IBMJt8zfaxX1P3QhVwrYe+576+jkANtSS2mBbw=="],++ "stats-gl": ["[email protected]", "", { "dependencies": { "@types/three": "*", "three": "^0.170.0" } }, "sha512-g5O9B0hm9CvnM36+v7SFl39T7hmAlv541tU81ME8YeSb3i1CIP5/QdDeSB3A0la0bKNHpxpwxOVRo2wFTYEosQ=="],++ "stats.js": ["[email protected]", "", {}, "sha512-hNKz8phvYLPEcRkeG1rsGmV5ChMjKDAWU7/OJJdDErPBNChQXxCo3WZurGpnWc6gZhAzEPFad1aVgyOANH1sMw=="],++ "std-env": ["[email protected]", "", {}, "sha512-5GS12FdOZNliM5mAOxFRg7Ir0pWz8MdpYm6AY6VPkGpbA7ZzmbzNcBJQ0GPvvyWgcY7QAhCgf9Uy89I03faLkg=="],++ "sucrase": ["[email protected]", "", { "dependencies": { "@jridgewell/gen-mapping": "^0.3.2", "commander": "^4.0.0", "lines-and-columns": "^1.1.6", "mz": "^2.7.0", "pirates": "^4.0.1", "tinyglobby": "^0.2.11", "ts-interface-checker": "^0.1.9" }, "bin": { "sucrase": "bin/sucrase", "sucrase-node": "bin/sucrase-node" } }, "sha512-DhuTmvZWux4H1UOnWMB3sk0sbaCVOoQZjv8u1rDoTV0HTdGem9hkAZtl4JZy8P2z4Bg0nT+YMeOFyVr4zcG5Tw=="],++ "supports-preserve-symlinks-flag": ["[email protected]", "", {}, "sha512-ot0WnXS9fgdkgIcePe6RHNk1WA8+muPa6cSjeR3V8K27q9BB1rTE3R1p7Hv0z1ZyAc8s6Vvv8DIyWf681MAt0w=="],++ "suspend-react": ["[email protected]", "", { "peerDependencies": { "react": ">=17.0" } }, "sha512-aqldKgX9aZqpoDp3e8/BZ8Dm7x1pJl+qI3ZKxDN0i/IQTWUwBx/ManmlVJ3wowqbno6c2bmiIfs+Um6LbsjJyQ=="],++ "tailwind-merge": ["[email protected]", "", {}, "sha512-I8K9wewnVDkL1NTGoqWmVEIlUcB9gFriAEkXkfCjX5ib8ezGxtR3xD7iZIxrfArjEsH7F1CHD4RFUtxefdqV/A=="],++ "tailwindcss": ["[email protected]", "", { "dependencies": { "@alloc/quick-lru": "^5.2.0", "arg": "^5.0.2", "chokidar": "^3.6.0", "didyoumean": "^1.2.2", "dlv": "^1.1.3", "fast-glob": "^3.3.2", "glob-parent": "^6.0.2", "is-glob": "^4.0.3", "jiti": "^1.21.7", "lilconfig": "^3.1.3", "micromatch": "^4.0.8", "normalize-path": "^3.0.0", "object-hash": "^3.0.0", "picocolors": "^1.1.1", "postcss": "^8.4.47", "postcss-import": "^15.1.0", "postcss-js": "^4.0.1", "postcss-load-config": "^4.0.2 || ^5.0 || ^6.0", "postcss-nested": "^6.2.0", "postcss-selector-parser": "^6.1.2", "resolve": "^1.22.8", "sucrase": "^3.35.0" }, "bin": { "tailwind": "lib/cli.js", "tailwindcss": "lib/cli.js" } }, "sha512-3ofp+LL8E+pK/JuPLPggVAIaEuhvIz4qNcf3nA1Xn2o/7fb7s/TYpHhwGDv1ZU3PkBluUVaF8PyCHcm48cKLWQ=="],++ "thenify": ["[email protected]", "", { "dependencies": { "any-promise": "^1.0.0" } }, "sha512-RVZSIV5IG10Hk3enotrhvz0T9em6cyHBLkH/YAZuKqd8hRkKhSfCGIcP2KUY0EPxndzANBmNllzWPwak+bheSw=="],++ "thenify-all": ["[email protected]", "", { "dependencies": { "thenify": ">= 3.1.0 < 4" } }, "sha512-RNxQH/qI8/t3thXJDwcstUO4zeqo64+Uy/+sNVRBx4Xn2OX+OZ9oP+iJnNFqplFra2ZUVeKCSa2oVWi3T4uVmA=="],++ "three": ["[email protected]", "", {}, "sha512-o+qycAMZrh+TsE01GqWUxUIKR1AL0S8pq7zDkYOQw8GqfX8b8VoCKYUoHbhiX5j+7hr8XsuHDVU6+gkQJQKg9w=="],++ "three-mesh-bvh": ["[email protected]", "", { "peerDependencies": { "three": ">= 0.159.0" } }, "sha512-4G5lBaF+g2auKX3P0yqx+MJC6oVt6sB5k+CchS6Ob0qvH0YIhuUk1eYr7ktsIpY+albCqE80/FVQGV190PmiAg=="],++ "three-stdlib": ["[email protected]", "", { "dependencies": { "@types/draco3d": "^1.4.0", "@types/offscreencanvas": "^2019.6.4", "@types/webxr": "^0.5.2", "draco3d": "^1.4.1", "fflate": "^0.6.9", "potpack": "^1.0.1" }, "peerDependencies": { "three": ">=0.128.0" } }, "sha512-XyGQrFmNQ5O/IoKm556ftwKsBg11TIb301MB5dWNicziQBEs2g3gtOYIf7pFiLa0zI2gUwhtCjv9fmjnxKZ1Cg=="],++ "tinybench": ["[email protected]", "", {}, "sha512-0+DUvqWMValLmha6lr4kD8iAMK1HzV0/aKnCtWb9v9641TnP/MFb7Pc2bxoxQjTXAErryXVgUOfv2YqNllqGeg=="],++ "tinyexec": ["[email protected]", "", {}, "sha512-KQQR9yN7R5+OSwaK0XQoj22pwHoTlgYqmUscPYoknOoWCWfj/5/ABTMRi69FrKU5ffPVh5QcFikpWJI/P1ocHA=="],++ "tinyglobby": ["[email protected]", "", { "dependencies": { "fdir": "^6.5.0", "picomatch": "^4.0.4" } }, "sha512-pn99VhoACYR8nFHhxqix+uvsbXineAasWm5ojXoN8xEwK5Kd3/TrhNn1wByuD52UxWRLy8pu+kRMniEi6Eq9Zg=="],++ "tinypool": ["[email protected]", "", {}, "sha512-Zba82s87IFq9A9XmjiX5uZA/ARWDrB03OHlq+Vw1fSdt0I+4/Kutwy8BP4Y/y/aORMo61FQ0vIb5j44vSo5Pkg=="],++ "tinyrainbow": ["[email protected]", "", {}, "sha512-weEDEq7Z5eTHPDh4xjX789+fHfF+P8boiFB+0vbWzpbnbsEr/GRaohi/uMKxg8RZMXnl1ItAi/IUHWMsjDV7kQ=="],++ "tinyspy": ["[email protected]", "", {}, "sha512-n1cw8k1k0x4pgA2+9XrOkFydTerNcJ1zWCO5Nn9scWHTD+5tp8dghT2x1uduQePZTZgd3Tupf+x9BxJjeJi77Q=="],++ "to-regex-range": ["[email protected]", "", { "dependencies": { "is-number": "^7.0.0" } }, "sha512-65P7iz6X5yEr1cwcgvQxbbIw7Uk3gOy5dIdtZ4rDveLqhrdJP+Li/Hx6tyK0NEb+2GCyneCMJiGqrADCSNk8sQ=="],++ "troika-three-text": ["[email protected]", "", { "dependencies": { "bidi-js": "^1.0.2", "troika-three-utils": "^0.52.4", "troika-worker-utils": "^0.52.0", "webgl-sdf-generator": "1.1.1" }, "peerDependencies": { "three": ">=0.125.0" } }, "sha512-V50EwcYGruV5rUZ9F4aNsrytGdKcXKALjEtQXIOBfhVoZU9VAqZNIoGQ3TMiooVqFAbR1w15T+f+8gkzoFzawg=="],++ "troika-three-utils": ["[email protected]", "", { "peerDependencies": { "three": ">=0.125.0" } }, "sha512-NORAStSVa/BDiG52Mfudk4j1FG4jC4ILutB3foPnfGbOeIs9+G5vZLa0pnmnaftZUGm4UwSoqEpWdqvC7zms3A=="],++ "troika-worker-utils": ["[email protected]", "", {}, "sha512-W1CpvTHykaPH5brv5VHLfQo9D1OYuo0cSBEUQFFT/nBUzM8iD6Lq2/tgG/f1OelbAS1WtaTPQzE5uM49egnngw=="],++ "ts-interface-checker": ["[email protected]", "", {}, "sha512-Y/arvbn+rrz3JCKl9C4kVNfTfSm2/mEp5FSz5EsZSANGPSlQrpRI5M4PKF+mJnE52jOO90PnPSc3Ur3bTQw0gA=="],++ "tslib": ["[email protected]", "", {}, "sha512-oJFu94HQb+KVduSUQL7wnpmqnfmLsOA/nAh6b6EH0wCEoK0/mPeXU6c3wKDV83MkOuHPRHtSXKKU99IBazS/2w=="],++ "tunnel-rat": ["[email protected]", "", { "dependencies": { "zustand": "^4.3.2" } }, "sha512-lR5VHmkPhzdhrM092lI2nACsLO4QubF0/yoOhzX7c+wIpbN1GjHNzCc91QlpxBi+cnx8vVJ+Ur6vL5cEoQPFpQ=="],++ "typescript": ["[email protected]", "", { "bin": { "tsc": "bin/tsc", "tsserver": "bin/tsserver" } }, "sha512-jl1vZzPDinLr9eUt3J/t7V6FgNEw9QjvBPdysz9KfQDD41fQrC2Y4vKQdiaUpFT4bXlb1RHhLpp8wtm6M5TgSw=="],++ "undici-types": ["[email protected]", "", {}, "sha512-qYVnV5OEm2AW8cJMCpdV20CDyaN3g0AjDlOGf1OW4iaDEx8MwdtChUp4zu4H0VP3nDRF/8RKWH+IPp9uW0YGZg=="],++ "update-browserslist-db": ["[email protected]", "", { "dependencies": { "escalade": "^3.2.0", "picocolors": "^1.1.1" }, "peerDependencies": { "browserslist": ">= 4.21.0" }, "bin": { "update-browserslist-db": "cli.js" } }, "sha512-Js0m9cx+qOgDxo0eMiFGEueWztz+d4+M3rGlmKPT+T4IS/jP4ylw3Nwpu6cpTTP8R1MAC1kF4VbdLt3ARf209w=="],++ "use-callback-ref": ["[email protected]", "", { "dependencies": { "tslib": "^2.0.0" }, "peerDependencies": { "@types/react": "*", "react": "^16.8.0 || ^17.0.0 || ^18.0.0 || ^19.0.0 || ^19.0.0-rc" }, "optionalPeers": ["@types/react"] }, "sha512-jQL3lRnocaFtu3V00JToYz/4QkNWswxijDaCVNZRiRTO3HQDLsdu1ZtmIUvV4yPp+rvWm5j0y0TG/S61cuijTg=="],++ "use-sidecar": ["[email protected]", "", { "dependencies": { "detect-node-es": "^1.1.0", "tslib": "^2.0.0" }, "peerDependencies": { "@types/react": "*", "react": "^16.8.0 || ^17.0.0 || ^18.0.0 || ^19.0.0 || ^19.0.0-rc" }, "optionalPeers": ["@types/react"] }, "sha512-Fedw0aZvkhynoPYlA5WXrMCAMm+nSWdZt6lzJQ7Ok8S6Q+VsHmHpRWndVRJ8Be0ZbkfPc5LRYH+5XrzXcEeLRQ=="],++ "use-sync-external-store": ["[email protected]", "", { "peerDependencies": { "react": "^16.8.0 || ^17.0.0 || ^18.0.0 || ^19.0.0" } }, "sha512-Pp6GSwGP/NrPIrxVFAIkOQeyw8lFenOHijQWkUTrDvrF4ALqylP2C/KCkeS9dpUM3KvYRQhna5vt7IL95+ZQ9w=="],++ "util-deprecate": ["[email protected]", "", {}, "sha512-EPD5q1uXyFxJpCrLnCc1nHnq3gOa6DZBocAIiI2TaSCA7VCJ1UJDMagCzIkXNsUYfD1daK//LTEQ8xiIbrHtcw=="],++ "utility-types": ["[email protected]", "", {}, "sha512-6Z7Ma2aVEWisaL6TvBCy7P8rm2LQoPv6dJ7ecIaIixHcwfbJ0x7mWdbcwlIM5IGQxPZSFYeqRCqlOOeKoJYMkw=="],++ "v8n": ["[email protected]", "", {}, "sha512-LdabyT4OffkyXFCe9UT+uMkxNBs5rcTVuZClvxQr08D5TUgo1OFKkoT65qYRCsiKBl/usHjpXvP4hHMzzDRj3A=="],++ "vite": ["[email protected]", "", { "dependencies": { "esbuild": "^0.21.3", "postcss": "^8.4.43", "rollup": "^4.20.0" }, "optionalDependencies": { "fsevents": "~2.3.3" }, "peerDependencies": { "@types/node": "^18.0.0 || >=20.0.0", "less": "*", "lightningcss": "^1.21.0", "sass": "*", "sass-embedded": "*", "stylus": "*", "sugarss": "*", "terser": "^5.4.0" }, "optionalPeers": ["@types/node", "less", "lightningcss", "sass", "sass-embedded", "stylus", "sugarss", "terser"], "bin": { "vite": "bin/vite.js" } }, "sha512-o5a9xKjbtuhY6Bi5S3+HvbRERmouabWbyUcpXXUA1u+GNUKoROi9byOJ8M0nHbHYHkYICiMlqxkg1KkYmm25Sw=="],++ "vite-node": ["[email protected]", "", { "dependencies": { "cac": "^6.7.14", "debug": "^4.3.7", "es-module-lexer": "^1.5.4", "pathe": "^1.1.2", "vite": "^5.0.0" }, "bin": { "vite-node": "vite-node.mjs" } }, "sha512-AM9aQ/IPrW/6ENLQg3AGY4K1N2TGZdR5e4gu/MmmR2xR3Ll1+dib+nook92g4TV3PXVyeyxdWwtaCAiUL0hMxA=="],++ "vitest": ["[email protected]", "", { "dependencies": { "@vitest/expect": "2.1.9", "@vitest/mocker": "2.1.9", "@vitest/pretty-format": "^2.1.9", "@vitest/runner": "2.1.9", "@vitest/snapshot": "2.1.9", "@vitest/spy": "2.1.9", "@vitest/utils": "2.1.9", "chai": "^5.1.2", "debug": "^4.3.7", "expect-type": "^1.1.0", "magic-string": "^0.30.12", "pathe": "^1.1.2", "std-env": "^3.8.0", "tinybench": "^2.9.0", "tinyexec": "^0.3.1", "tinypool": "^1.0.1", "tinyrainbow": "^1.2.0", "vite": "^5.0.0", "vite-node": "2.1.9", "why-is-node-running": "^2.3.0" }, "peerDependencies": { "@edge-runtime/vm": "*", "@types/node": "^18.0.0 || >=20.0.0", "@vitest/browser": "2.1.9", "@vitest/ui": "2.1.9", "happy-dom": "*", "jsdom": "*" }, "optionalPeers": ["@edge-runtime/vm", "@types/node", "@vitest/browser", "@vitest/ui", "happy-dom", "jsdom"], "bin": { "vitest": "vitest.mjs" } }, "sha512-MSmPM9REYqDGBI8439mA4mWhV5sKmDlBKWIYbA3lRb2PTHACE0mgKwA8yQ2xq9vxDTuk4iPrECBAEW2aoFXY0Q=="],++ "webgl-constants": ["[email protected]", "", {}, "sha512-LkBXKjU5r9vAW7Gcu3T5u+5cvSvh5WwINdr0C+9jpzVB41cjQAP5ePArDtk/WHYdVj0GefCgM73BA7FlIiNtdg=="],++ "webgl-sdf-generator": ["[email protected]", "", {}, "sha512-9Z0JcMTFxeE+b2x1LJTdnaT8rT8aEp7MVxkNwoycNmJWwPdzoXzMh0BjJSh/AEFP+KPYZUli814h8bJZFIZ2jA=="],++ "which": ["[email protected]", "", { "dependencies": { "isexe": "^2.0.0" }, "bin": { "node-which": "./bin/node-which" } }, "sha512-BLI3Tl1TW3Pvl70l3yq3Y64i+awpwXqsGBYWkkqMtnbXgrMD+yj7rhW0kuEDxzJaYXGjEW5ogapKNMEKNMjibA=="],++ "why-is-node-running": ["[email protected]", "", { "dependencies": { "siginfo": "^2.0.0", "stackback": "0.0.2" }, "bin": { "why-is-node-running": "cli.js" } }, "sha512-hUrmaWBdVDcxvYqnyh09zunKzROWjbZTiNy8dBEjkS7ehEDQibXJ7XvlmtbwuTclUiIyN+CyXQD4Vmko8fNm8w=="],++ "wouter": ["[email protected]", "", { "dependencies": { "mitt": "^3.0.1", "regexparam": "^3.0.0", "use-sync-external-store": "^1.0.0" }, "peerDependencies": { "react": ">=16.8.0" } }, "sha512-sF/od/PIgqEQBQcrN7a2x3MX6MQE6nW0ygCfy9hQuUkuB28wEZuu/6M5GyqkrrEu9M6jxdkgE12yDFsQMKos4Q=="],++ "yallist": ["[email protected]", "", {}, "sha512-a4UGQaWPH59mOXUYnAG2ewncQS4i4F43Tv3JoAM+s2VDAmS9NsK8GpDMLrCHPksFT7h3K6TOoUNn2pb7RoXx4g=="],++ "zustand": ["[email protected]", "", { "peerDependencies": { "@types/react": ">=18.0.0", "immer": ">=9.0.6", "react": ">=18.0.0", "use-sync-external-store": ">=1.2.0" }, "optionalPeers": ["@types/react", "immer", "react", "use-sync-external-store"] }, "sha512-i77ae3aZq4dhMlRhJVCYgMLKuSiZAaUPAct2AksxQ+gOtimhGMdXljRT21P5BNpeT4kXlLIckvkPM029OljD7g=="],++ "@react-three/postprocessing/maath": ["[email protected]", "", { "peerDependencies": { "@types/three": ">=0.144.0", "three": ">=0.144.0" } }, "sha512-dSb2xQuP7vDnaYqfoKzlApeRcR2xtN8/f7WV/TMAkBC8552TwTLtOO0JTcSygkYMjNDPoo6V01jTw/aPi4JrMw=="],++ "@react-three/rapier/@dimforge/rapier3d-compat": ["@dimforge/[email protected]", "", {}, "sha512-AZHL1jqUF55QJkJyU1yKeh4ImX2J93bVLIezT1+o0FZqTix6O06MOaqpKoJ4MmbDCsoZmwO+qc471/SDMDm2AA=="],++ "chokidar/glob-parent": ["[email protected]", "", { "dependencies": { "is-glob": "^4.0.1" } }, "sha512-AOIgSQCepiJYwP3ARnGx+5VnTu2HBYdzbGP45eLw1vr3zB3vZLeyed1sC9hnbcOc9/SrMyM5RPQrkGz4aS9Zow=="],++ "extend-shallow/is-extendable": ["[email protected]", "", {}, "sha512-5BMULNob1vgFX6EjQw5izWDxrecWK9AM72rugNr0TFldMOi0fj6Jk+zeKIt0xGj4cEfQIJth4w3OKWOJ4f+AFw=="],++ "fast-glob/glob-parent": ["[email protected]", "", { "dependencies": { "is-glob": "^4.0.1" } }, "sha512-AOIgSQCepiJYwP3ARnGx+5VnTu2HBYdzbGP45eLw1vr3zB3vZLeyed1sC9hnbcOc9/SrMyM5RPQrkGz4aS9Zow=="],++ "leva/zustand": ["[email protected]", "", { "peerDependencies": { "react": ">=16.8" }, "optionalPeers": ["react"] }, "sha512-PIJDIZKtokhof+9+60cpockVOq05sJzHCriyvaLBmEJixseQ1a5Kdov6fWZfWOu5SK9c+FhH1jU0tntLxRJYMA=="],++ "set-value/is-extendable": ["[email protected]", "", {}, "sha512-5BMULNob1vgFX6EjQw5izWDxrecWK9AM72rugNr0TFldMOi0fj6Jk+zeKIt0xGj4cEfQIJth4w3OKWOJ4f+AFw=="],++ "split-string/extend-shallow": ["[email protected]", "", { "dependencies": { "assign-symbols": "^1.0.0", "is-extendable": "^1.0.1" } }, "sha512-BwY5b5Ql4+qZoefgMj2NUmx+tehVTH/Kf4k1ZEtOHNFcm2wSxMRo992l6X3TIgni2eZVTZ85xMOjF31fwZAj6Q=="],++ "stats-gl/three": ["[email protected]", "", {}, "sha512-FQK+LEpYc0fBD+J8g6oSEyyNzjp+Q7Ks1C568WWaoMRLW+TkNNWmenWeGgJjV105Gd+p/2ql1ZcjYvNiPZBhuQ=="],++ "three-stdlib/fflate": ["[email protected]", "", {}, "sha512-IQrh3lEPM93wVCEczc9SaAOvkmcoQn/G8Bo1e8ZPlY3X3bnAxWaBdvTdvM1hP62iZp0BXWDy4vTAy4fF0+Dlpg=="],++ "tinyglobby/picomatch": ["[email protected]", "", {}, "sha512-QP88BAKvMam/3NxH6vj2o21R6MjxZUAd6nlwAS/pnGvN9IVLocLHxGYIzFhg6fUQ+5th6P4dv4eW9jX3DSIj7A=="],++ "tunnel-rat/zustand": ["[email protected]", "", { "dependencies": { "use-sync-external-store": "^1.2.2" }, "peerDependencies": { "@types/react": ">=16.8", "immer": ">=9.0.6", "react": ">=16.8" }, "optionalPeers": ["@types/react", "immer", "react"] }, "sha512-CHOUy7mu3lbD6o6LJLfllpjkzhHXSBlX8B9+qPddUsIfeF5S/UZ5q0kmCsnRqT1UHFQZchNFDDzMbQsuesHWlw=="],+ }+}diff --git a/third_party/image-blaster/input/.gitkeep b/third_party/image-blaster/input/.gitkeepnew file mode 100644index 000000000..8b1378917--- /dev/null+++ b/third_party/image-blaster/input/.gitkeep@@ -0,0 +1 @@+diff --git a/third_party/image-blaster/package.json b/third_party/image-blaster/package.jsonnew file mode 100644index 000000000..22f6921aa--- /dev/null+++ b/third_party/image-blaster/package.json@@ -0,0 +1,14 @@+{+ "name": "image-blaster-workspace",+ "private": true,+ "workspaces": [+ "app"+ ],+ "scripts": {+ "dev": "bun --cwd=app run dev",+ "build": "bun --cwd=app run build",+ "preview": "bun --cwd=app run preview",+ "test": "bun --cwd=app run test",+ "typecheck": "bun --cwd=app run typecheck"+ }+}\ No newline at end of filediff --git a/third_party/image-blaster/worlds/.gitkeep b/third_party/image-blaster/worlds/.gitkeepnew file mode 100644index 000000000..8b1378917--- /dev/null+++ b/third_party/image-blaster/worlds/.gitkeep@@ -0,0 +1 @@+