` and the host user. The Self writes there; the Persona decides what is shared. Making that decision a filesystem fact (a `shared/` subdirectory the Persona's turn populates by copy or hardlink, the host serves only `shared/`) keeps the host dumb: it never learns what "decides" means. **Q-E:** `shared/` subdirectory versus a per-file marker.
-
-### Phone-first UI (host)
-
-Phone width is the design width; desktop adds the navigator beside it (as `Desk` does in `Router.tsx`). Vertical space is cheap, so a screen shows one thing and hides what is not in use.
-
-- **Entry.** A `Files` row pinned in the navigator beside `DeskEntry` and `MindMedia`: one at the estate level (Commons) and one inside each Mind's group (her zone), same `NavItem` anatomy as `DeskEntry`, dim when the zone has no items. Route `/files/:zone/*path`, sibling of `DESK_PATH`.
-- **List.** One column. Row = icon or thumbnail, name (truncates in the middle, keeping the extension), size and age on a second dim line. Directories first. Rows are at least 56 px tall; the tap target is the whole row (the `PhoneHit` variants and the repo-wide guard test from `phoneHit.coverage.test.ts` apply to any IconButton inside).
-- **Hidden until needed.** Breadcrumb is one line (current folder, a back arrow; the full path on tap). Search, sort and the grid toggle sit behind a single icon in the header and open inline above the list. Download and share appear on the open file, not on every row. Nothing is permanently stacked in the header.
-- **Preview.** Tap a file: it opens in place below its row, full width, and pushes the rows below it down (vertical room is the cheap axis). Image: fitted, tap for the existing `ImageViewer`. Audio: the `AudioContent` controls rehosted (`renderMediaControl`), one player at a time, a mini-player pinned to the bottom only while something plays. Video: native controls. Text, md, json, patch: monospace, first 64 KiB, "show all" below. PDF: open in a new tab. Anything else: name, size, hash, one Download button.
-- **Honesty rows.** Loading, empty, "host unreachable", "not allowed" are rows that say so (as `MediaNote` does); no spinner without a name for what it waits on.
-- **Role-driven.** The index response carries the caller's role; the client uses it only to hide controls (upload), never to decide access.
-
-### Host contract
-
-The host is a service on Yggdrasil that Eureka owns. The client holds no filesystem knowledge. All JSON here is the xenos boundary between a browser and a file server, not state.
-
-- `GET /index?path=` returns `{ role, zone, path, entries: [{ name, kind: "file"|"dir", size, mtime, mime, hash }] }`. `mtime` is unix seconds. `hash` is the lower-case hex sha256 of the plaintext bytes, absent for directories, and may be absent for a file whose hash is not computed yet (client shows nothing, never blocks on it). `mime` is sniffed by the host from magic bytes, not guessed from the extension.
-- `GET /file?path=
` streams the bytes with `Accept-Ranges: bytes` and 206 for `Range` (audio and video seek; a phone on mobile data does not fetch 40 MB to play 10 seconds). `Content-Type` is the sniffed mime, `X-Content-Type-Options: nosniff`, `Content-Disposition: attachment` for anything that can run in the origin (`html`, `svg`, `js`, `xhtml`), and a `Content-Security-Policy: sandbox` on every response.
-- `path` is `/`, with the zone one of the names the host announces. The host resolves the real path of every request and refuses anything that leaves the zone's root: `..`, absolute paths, NUL, symlinks that cross the root, dotfiles, and `handoff-private`, which is not on any allowlist. Errors are typed (`401 unauthenticated`, `403 zone not allowed`, `404`, `416`), and a path outside the allowlist is 404, not 403, so it says nothing about what exists.
-- **Auth: Matrix OpenID.** The client calls `mx.getOpenIdToken()` (already used in `CallWidgetDriver.ts`) and sends it as `Authorization: Bearer `. The host verifies it against the homeserver's federation `openid/userinfo` endpoint, **pinned to our server name** (an `@void:evil.example` token must fail), caches the verified `sub` for the token's lifetime, and derives the role. It never sees the user's access token, and a Mind's Self never holds a token (ruling above): Minds reach the same bytes through the filesystem or the mouth, not this host.
-- **Role** in the response: `member`, `mind`, `steward` (host decides from the Matrix id and the room/space membership the host reads; the client trusts none of it for access). **Q-E:** exact source of membership (estate Space membership read by the host with a service account, versus the Persona catalogue file for Minds).
-- **Uploads** (Meta approved for members and Minds, #swarm 2026-11-13 14:30Z; rules are Eureka's, below). `PUT /file?path=` writes only under an `uploads/` subtree of a zone, with `Content-Length` required; the host enforces a size cap, a type allowlist (sniffed, not the client's claim), no overwrite unless the request carries an explicit flag, and never replaces a file a Mind wrote into the handoff tree; every write is audit-logged with the caller's Matrix id. Reads cover the whole allowlisted tree, so an uploaded file is listed like any other. Success is `201` with the stored name, size and hash. The `role` in the index response gates the upload control; the host gates the write.
-
-### The one problem the contract leaves: media elements cannot send headers
-
-``, `` and ` ` cannot attach `Authorization`. Options, none free:
-
-1. **Fetch to a blob.** Works with the contract as written. No seeking before the whole file is in memory; bad for a 40 MB clip on a phone. Fine for images and small audio.
-2. **Short-lived path ticket.** `POST /ticket?path=` with the bearer token returns a URL with an unguessable token valid for a few minutes for that one path and its ranges. The player gets a normal URL and seeks. One more endpoint on the host and one more thing to expire and log.
-3. **Service worker adds the header** to `/files-host/*` requests. The PWA already has a worker (`src/sw.ts`); no host change, but the worker must carry a fresh OpenID token and range requests through it are fiddly.
-
-Recommendation: 2 for audio and video, 1 for images and text. Confidence moderate: I have not tested a service worker against range requests on the target phone, and 2 is the usual answer for authenticated media (signed URLs). **Q-E.**
-
-### Upload flow (host)
-
-Design only. Every number and error code is a named placeholder until Eureka gives them on the PR: `` (per-file size), `` (per-pick total, if any), `` (the allowlist), `` (the explicit query flag), and the codes ``, ``, ``, ``, ``, ``, ``, ``, ``.
-
-**Where.** The control exists only where an upload is allowed: inside a folder under a zone's `uploads/` subtree (or at the `uploads/` row itself), and only when the index `role` is member or mind. Elsewhere there is no button; the list does not carry a disabled one. A folder outside `uploads/` shows a one-line dim note, "Uploads go in uploads/", which links to that folder. Creating subfolders under `uploads/` is not in this design (**Q-E8**).
-
-**Pick or drop.** One `Upload` row at the top of an `uploads/` folder opens the native picker (any number of files; on a phone this is the OS file sheet, camera roll included). On wide screens the list is also a drop target; the drop highlight appears only while a drag is over it. Nothing starts on pick: the picked files appear as a staging list (name, size, a type icon) with `Upload` and `Cancel` as full-width rows, as `ShareSet` does for a Matrix set. Files that already fail the client's cheap checks (over ``, a type outside ``) are marked in the staging list with the reason and left out of the send; the client mirrors the cap and allowlist as a courtesy only, the host is the authority, and the list is read from the host (**Q-E9**: an `/index` field or a `/limits` call) rather than hard-coded.
-
-**Send.** Files go one at a time, in pick order, each a `PUT /file?path=/` with the bearer token. One at a time keeps a phone on mobile data from starving every transfer, and a refusal names exactly one file. The transport is `XMLHttpRequest`, not `fetch`: `fetch` has no upload progress and the row needs it. The body is the `File` itself (streamed by the browser, not read into memory; unlike the Matrix path, the client computes no hash first, the host returns one). The name is the file's own name, with path separators and control characters replaced, never a path the user typed.
-
-**Progress.** The staging list becomes the progress list: per file a thin bar and "412 KB of 3.1 MB", per batch "2 of 5". Finished files show a tick and the stored name; refused ones show the refusal in place; waiting ones are dim. Only the active file animates. The list stays on screen after the last file until dismissed, so a refusal is not lost to a refresh of the folder underneath it. The folder listing refetches after each success, so the file appears in the list as it lands.
-
-**Cancel.** `Cancel` on the active file aborts the request (`xhr.abort()`) and goes on to the next; `Cancel all` on the batch aborts the active file and drops the rest. The host must discard an aborted partial write and never leave a half file in the listing (**Q-E10**, written to a temporary name and renamed on completion). Leaving the page aborts whatever runs, as the Matrix share does; the client does not resume.
-
-**Overwrite.** A name that already exists is refused with `` and shown as " is already there". A `Replace` row appears under that refusal only for a file the caller wrote themselves, and sends the same `PUT` with ``; a Mind-written handoff file refuses with `` and offers only "Keep both", which re-sends under a suffixed name (`name (2).ext`) chosen by the client. Whether the client can tell "mine" from the index (an `owner` field with the Matrix id) or learns it only from the refusal is **Q-E11**; absent an owner field, `Replace` is simply offered after `` and the host's answer decides.
-
-**Refusal messages.** One plain sentence per code, shown in the file's row; nothing says "error" without saying why, and none names a server path.
-
-| Code | Message (draft) |
-| -------------------------------- | ------------------------------------------------------------------------------------------------------------------------ |
-| `` | Sign-in expired. Reload to upload again. (The client fetches a fresh OpenID token once and retries before showing this.) |
-| `` | Uploads are for members and Minds. |
-| `` | That folder does not take uploads. |
-| `` | "" is a file; allowed types are . |
-| `` | "" is ; the limit is . |
-| `` | "" is already there. |
-| `` | "" was written by a Mind and cannot be replaced. |
-| `` | The shared space is full. Tell a steward. |
-| `` / network / timeout | Could not reach the file host. The file was not saved. |
-
-Retry is one tap on a failed row; the batch never retries on its own. An unknown code shows the host's status text as it is, still without a path.
-
-**Honest end state.** Done means the host answered `201` and the stored name, size and hash are shown. "Saved" is not said earlier; the hash the host returns is displayed so a sender can compare it with their own.
-
-**Reuse and not.** `ShareSet`'s state machine (staging, one-send-per-zone guard, failed files kept by position) is the model, but the Matrix share path and its `createUploadAtom` are tied to the SDK's media upload and are not reused; the new controller sits in `features/files/uploadController.ts` with the same injected-port shape, so order, refusal and cancel rules are tested against a fake `PUT` without a browser. Real transfer progress and a real range of a phone's picker stay a phone check.
-
-### Client shape (host)
-
-Under `src/app/features/files`, mirroring `features/albums`:
-
-- `filesHost.ts`: ports, `list(path)`, `url(path)`, `ticket(path)`, `put(path, file, onProgress, signal)`; the only module that knows the contract. Injected, so the UI is tested against a fake and the real client never runs in a test.
-- `useFilesZone.ts`: react-query on `['files', zone, path]`, `staleTime` 30 s; the role comes with every index.
-- `FilesDesk.tsx`, `FileRow.tsx`, `FilePreview.tsx`: pure rendering from the above; the preview picks its renderer from the host's `mime`, not the extension.
-- `config.json`: `filesDesk: { enabled: false, host: "https://…" }`, dark by default as `fileZoneShare.enabled` is. With it off, no row mounts and no request leaves the client.
-- Test host: `src/preview-demo` already answers for a pretend homeserver through a fetch guard (`install.ts`); it gains a fake `/index` and `/file` with ranges so the previews are checked in a real browser before the real host exists.
-
-### Cuts (host)
-
-1. **Contract and fake host** (no UI): `filesHost.ts`, types, `preview-demo` fake, path tests (traversal strings from the host side are Eureka's; the client must only build `path` from entries it was given).
-2. **Read-only Commons desk**: route, row, list, breadcrumb, role display, flagged off.
-3. **Preview and player**: image, audio with ranges, text, video; the ticket if Q-E settles on 2.
-4. **Per-Persona rows** in each Mind's group, once the outbox `shared/` convention and the zone provisioning exist.
-5. **Uploads**: the flow above; needs Eureka's codes and caps and the host's `PUT`.
-
-Each is its own PR. Slices 1 to 3 need no host to build and test; slice 2 needs the real host to be useful, not to land.
-
-### Not in scope (host)
-
-The Matrix file zone (marks, receipts, `ShareSet`); any Mind-side fetch (the mouth's); encrypted rooms; deletion and rename (a read surface first; the files belong to whoever wrote them on disk); search across zones; a permission model of our own beyond what the host derives from Matrix identity.
-
-### Open questions (host)
-
-**For Eureka (host):**
-
-- **Q-E1.** Which roots form Commons: the allowlist, and whether `handoff` is ever served (it holds custody receipts and ops notes; recommendation: no, a reviewed `commons/` directory instead).
-- **Q-E2.** Where the host runs and what it is: Rust by default per doctrine; nginx with `auth_request` to a verifier is smaller if the sniff, range and role logic fit there. Which user; read-only mounts; ACLs on the outboxes.
-- **Q-E3.** Media-element auth: blob, ticket or service worker (above).
-- **Q-E4.** Role source: how the host learns membership and which Minds are Minds; token verification pinned to `gamecult.org`.
-- **Q-E5.** Per-Persona publishing: a `shared/` subdirectory versus a marker, and who populates it when the Persona decides.
-- **Q-E6.** Hash cost: compute lazily and cache by (path, mtime, size), or at publish time.
-- **Q-E7.** CORS for `chat.gamecult.org` and the dev previews, rate limits, and the `Content-Disposition` list.
-- **Q-E8.** Subfolders under `uploads/`: can a client create them (by a `PUT` path that implies them, or a `MKCOL`-like call), or is `uploads/` flat?
-- **Q-E9.** Cap and allowlist discovery: fields in the index response, or a `/limits` endpoint; and the exact codes and cap numbers behind every placeholder in the upload flow.
-- **Q-E10.** Partial writes: temporary name then rename, so an aborted or failed upload never appears in a listing.
-- **Q-E11.** Does the index carry an `owner` Matrix id per file (so `Replace` is offered only on one's own files), and is the audit log readable by stewards from the client or only on the host?
-
-**For Meta:**
-
-- **Q-M1.** Audience: Commons for members and Minds as proposed; are Users and Patrons ever in (the Matrix zone's audience question, `ratatoskr:question:file-zone-audience`, is the same fork)?
-- **Q-M2.** Is a Persona's zone visible to all members or to her stewards and Minds?
-- **Q-M3.** ~~Uploads~~ approved for members and Minds (2026-11-13 14:30Z); open only: may Users or Patrons upload if they are ever let in?
-- **Q-M4.** Name: "Files" for the row, "Commons" for the shared zone.
-- **Q-M5.** Does the Matrix Media row stay beside the Files row on each Mind, or does one absorb the other once the Files desk exists (recommendation: both stay; marks and receipts are Matrix's).
diff --git a/docs/file-zone-mind-contract.md b/docs/file-zone-mind-contract.md
deleted file mode 100644
index 8b350c6c..00000000
--- a/docs/file-zone-mind-contract.md
+++ /dev/null
@@ -1,98 +0,0 @@
-# File zone: what a Mind can read from a file event
-
-Ruling `ratatoskr:ruling:persona-file-sharing-zone`. The Mind-side fetch is the mouth's
-(`eureka-body:cut_spec:mouth-fetch-attachment.r1`); this page is the client side of the same contract.
-A Mind cannot fetch an `mxc://` itself (the media endpoint answers 401), so it never holds one.
-
-## What the Mind passes
-
-Room id and event id of the file event. Never a bare `mxc://`, URL or hash. The mouth fetches the event,
-reads the media reference from its content, and enforces the Mind's own membership in that room at fetch
-time. A room the Mind is not in is refused by the mouth, whatever the client wrote.
-
-## What the client writes (this repo, `RoomInput.tsx` send path)
-
-A file event is an `m.room.message` whose `msgtype` is `m.audio`, `m.image`, `m.video` or `m.file`:
-
-| field | where | note |
-| ------------------ | ------- | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ |
-| `msgtype` | content | selects the kind from the file's mimetype prefix |
-| `body`, `filename` | content | both the file's name (display only; never a path) |
-| `url` | content | the `mxc://` of an unencrypted file; the mouth reads it |
-| `file` | content | present instead of `url` in an encrypted room: `{url, key, iv, hashes.sha256 (ciphertext), v}`. A Mind has no key; the mouth refuses it |
-| `info.mimetype` | content | the browser-reported type, normalised by `safeFile` (e.g. `application/ogg` becomes `audio/ogg`). A claim, not proof: the mouth sniffs magic bytes |
-| `info.size` | content | bytes of the file as uploaded |
-| `info.sha256` | content | lower-case hex sha256 of the plaintext bytes, computed by the client before send; written in unencrypted rooms only (a plaintext hash in an encrypted room would leak the file's identity) |
-
-The hash is computed over the same bytes that are uploaded, reading the whole file into memory before send (large videos pay for it); if hashing fails the file is sent without one. A file sent by something other than this
-client may lack `info.sha256`; the mouth then logs the hash it computed, and the row can show no `fetched for`
-for it.
-
-`info.mimetype` and `info.size` are written on audio and file events always; on image and video events `info` exists only if the browser could load the media, otherwise `info` holds `sha256` alone. Image and video events also carry `info.w`, `info.h`, `info.xyz.amorgan.blurhash` and a thumbnail
-reference; audio carries no duration. A Mind should not rely on any of those.
-
-## Limits and refusals
-
-- Size: the mouth streams at most 5 MiB and refuses a larger file. The client does not enforce this cap;
- its own limit is the homeserver's `m.upload.size`. A file over 5 MiB can be shared with people and
- not fetched for a Mind.
-- Refusals are the mouth's and are typed: not a member of the room, bridged or Discord room, encrypted
- file, over the cap, content type not matching the magic bytes. The client does not re-check them and
- nothing in the client depends on the mouth's log.
-- The Mind cites files by room id and event id only; a file in a room the Mind is not in does not exist
- for it.
-
-## Receipt: `org.gamecult.file_received`
-
-The Mind posts one event of type `org.gamecult.file_received` after a successful fetch, to the room of the
-file. When the file has an album root the receipt is a reply in the album's thread, so it arrives with the album's
-own listing; otherwise (a composer file sent with no thread) it is a plain room event with no `m.relates_to`. Both
-count, and the client finds a receipt by its `event_id` anywhere in the room's loaded timeline or the album's thread:
-
-```json
-{
- "m.relates_to": { "rel_type": "m.thread", "event_id": "" },
- "org.gamecult.file_received": {
- "event_id": "",
- "sha256": "",
- "size": 123456
- }
-}
-```
-
-A plain room-event receipt may also carry `m.relates_to: {rel_type: "m.reference", event_id: }`, which lets
-the mouth find its earlier receipts through `/relations` for dedup. The client matches by `content.event_id` and reads no
-relation but this one: if a `m.reference` is present its `event_id` must equal `content.event_id`, else the receipt counts
-for nothing. A thread relation is not read. However many receipts a Mind has posted for a file, the row draws one
-`fetched for` for that Mind.
-
-Two rules, both enforced on each side:
-
-1. **The sender is the Mind.** The row trusts the Matrix `sender` of the receipt event and nothing inside it:
- no Mind field is read. `fetched for X` counts only when the sender is X's own Matrix identity (the
- full id is `@:` for a Mind in the Persona catalogue; a display name, a lookalike or another server's `@void:evil.example` does not count).
-2. **Fetched means verified.** The Mind posts only after the sha256 of the bytes it fetched equals the file
- event's `info.sha256`, and the receipt carries that hash. On a mismatch it posts nothing (or a typed
- refusal that the row does not draw). The row checks it again: the receipt's `sha256` must equal the
- file event's `info.sha256`. A file event with no `info.sha256` can show no `fetched for`.
-
-The receipt is inert: no paths, URLs, filenames or anything a browser would fetch, and the client reads only
-`event_id`, `sha256` and the sender. It has no `msgtype`, so the album's file listing ignores it. The mouth's
-log is the fuller record for Minds; this event is the public tick.
-
-The row draws `fetched for `: one receipt per Mind per file (the latest), several Minds side by side. A
-receipt for an event that is not a file of that album, a malformed one, and a redacted one are ignored.
-The wording is deliberate: the receipt says the mouth fetched and stored the file for the Mind, not that it is in the Mind's sandbox and not that it was read. Client strings never say "saved" or "read".
-The sender check keeps a member from ticking for a Mind; it does not prove the Mind read the file beyond
-what the hash and the Mind's own account show.
-
-## Not built yet
-
-- Files sent from the composer carry no thread relation, so they reach an album only if written into a
- thread by another tool; the album upload path (docs/file-zone.md, "Upload") is unwritten. Their receipts are plain
- room events, and the timeline row for the file shows `fetched for` from them.
-- A receipt that is still encrypted when it arrives is not seen until a later timeline event triggers a rescan; zones are
- unencrypted and the hash is written only there, so this is the encrypted-room limit again.
-- The timeline row reads the room's loaded timeline only: a receipt older than what the client has paged in is not
- seen there (an album's own listing reads the thread, which is paged separately).
-- Encrypted zones are not listed.
diff --git a/docs/file-zone.md b/docs/file-zone.md
deleted file mode 100644
index 420f7016..00000000
--- a/docs/file-zone.md
+++ /dev/null
@@ -1,123 +0,0 @@
-# File zone: design sketch
-
-Status: design only. No code exists. Everything below is a proposal; items marked **UNKNOWN** are not yet verified against the Body.
-
-Source: Meta ruling 2026-10-31, eureka mind `ratatoskr:ruling:file-zone-looks-like-file-sharing`.
-
-## What it is
-
-A file-sharing space beside the room timeline, not a view of it. The zone is **one ordinary Matrix room with threaded discussions, one thread per Mind**. The UI presents each thread as an **album** (title, item count, date) and each post in it as a **file** with an inline player or preview. Matrix is the storage and the fallback: another client sees a normal room with threads and never needs the zone. No homeserver change.
-
-First use (Aqua): listen to audio in place, mark each clip keep / fix / drop with a one-line reason, export the marks as a file. See `/opt/commons/handoff/aqua-listen-kits-20261108/` (static `listen.html` kits that emit `verdict.json` + `verdict.md`); the zone replaces sending that page around.
-
-## Matrix event shapes (stock events only)
-
-- **Zone** = one room, chosen by the client (**UNKNOWN:** how the client knows which room is the zone: a room-account-data flag, a `m.room.create` type, or a configured room id in `config.json`; config is simplest).
-- **Album** = a thread root: a text `m.room.message` posted by a Mind, `body` = the album title (the Mind's name, e.g. `void`). One thread per Mind, owned by authorship (the root's sender). **UNKNOWN:** whether a Mind may open more than one (e.g. per kit); the shape allows it with no change, the zone would then list several albums per author. Count and last-activity come from the SDK's thread summary (`unsigned.m.relations.m.thread`); album date = root `origin_server_ts`. Rename = `m.replace` on the root.
-- **File** = a post in the thread: an `m.room.message` with `msgtype` `m.audio` / `m.image` / `m.video` / `m.file` and `m.relates_to: { rel_type: "m.thread", event_id: , is_falling_back: true, "m.in_reply_to": { event_id: } }`. The builders in `src/app/features/room/msgContent.ts` already make the content. Delete = redact.
-- **Album vs chat thread**: with a single-purpose room, every thread is an album. No marker key is needed. A non-media reply in a thread (chat, a mark) is not a file and is not listed as one.
-- **Cover** = first image file in the thread, if any. Loose room messages outside any thread are not shown in the zone; they remain in the timeline.
-
-## Marks (reactions, plus an optional reply)
-
-A mark is stock Matrix, so every client shows it. Two reaction sets on the **file post**, and one optional reply:
-
-- **Verdict** = an `m.annotation` reaction (`m.reaction` event, `m.relates_to: { rel_type: "m.annotation", event_id: , key }`) with key **👍 keep**, **🔧 fix**, **🗑 drop**. One per person per file: choosing another replaces the old one (the client redacts the sender's previous verdict reaction, then sends the new one); tapping the active one clears it.
-- **Landed** = a second reaction set, keys **1️⃣ 2️⃣ 3️⃣ 4️⃣ 5️⃣** (keycap digits, 1-5). Also one per person per file, same replace rule. The two sets are independent: a file can have a verdict, a landed score, both or neither.
-- **Reason** = an ordinary thread reply under the file: `m.room.message` `m.text`, `m.relates_to: { rel_type: "m.thread", event_id: , "m.in_reply_to": { event_id: } }`. Optional. **Keep needs none**; the UI prompts for one mainly after fix or drop. The latest such reply by the sender under that file is the reason (edits via `m.replace` count). No special key: the reply text is the reason, so nothing is lost if another client wrote it.
-- **No private mode.** Marks are room events the moment they are tapped; there is no local-only draft and no "Share" step. Offline taps queue in the SDK's normal send queue.
-- Who marked what is read from the reactions' senders, so each listener is distinguishable and the album can show tallies per file.
-- Why reactions: one tap, readable in any client, no custom event type, and they can be changed with no history growth beyond a redaction. Reaction keys carry no text, hence the separate reply for the reason.
-- **UNKNOWN:** emoji variation selectors. 🗑 and 🔧 and the keycaps may arrive with or without U+FE0F from different clients; match by normalizing (strip U+FE0F) before comparing keys. Also **UNKNOWN:** servers' per-event limits on distinct reaction keys; a handful per file is far below any default.
-
-## Export
-
-Client-side only. "Export" builds Aqua's verdict file from the verdict and landed reactions and the reply under each file in one album (one listener's marks per export; that sender is the `listener`) and either downloads it or uploads it into the album. Two files, as the kits write them: `verdict.json` and `verdict.md`.
-
-`verdict.json` is schema **`aqua.listen.verdict.v1`**, field for field what `buildVerdict` in the kit (`dings/listen.html`, section `buildVerdict`) emits, so Aqua's tooling reads it unchanged:
-
-```
-{ schema: "aqua.listen.verdict.v1",
- kit: { id, title }, // album root: id = root event id (or the kit id if the upload carried one), title = root body
- exportedAt, // ISO time of export
- seed, consent, // kit-only: zone writes seed: 0 (or omits), consent: true for the sender's own export (see UNKNOWN)
- listener, // sender display name
- device, // headphones|speakers|null, the sender's most-used mark device, or null
- notes, // free text; zone leaves "" in v1
- summary: { total, keep, fix, drop, unanswered },
- clips: [{ position, id, title, group, feel, file, pair, slot, verdict, reason, landed, device }],
- pairs: [{ a, b, preferred }] } // empty array when the album has no pairs
-```
-
-- `clips` has one row per file post in the album, in thread order (`position` = 1-based). The join per file, for the exporting listener: `verdict` = their 👍/🔧/🗑 reaction (keep/fix/drop) or null; `landed` = their keycap reaction (1-5) or null; `reason` = text of their latest reply under the file, or "". A file with no verdict reaction counts as `unanswered` even if it has a reply. `device` per clip is null (reactions cannot carry it); the top-level `device` (headphones|speakers|null) is asked once in the export dialog.
-- `pairs`, `seed`, `consent` are optional for the zone: `pairs: []`, no `slot`/`pair` (null) unless the clip metadata supplies them.
-- **Where clip metadata comes from.** `id` is the clip id from `org.gamecult.clip`, else the filename stem. `title` = file post `body`; `file` = the post's `filename`/`body`. `group`, `feel`, `pair`, `slot` are kit data that Matrix has no slot for: carry them on the file post as one extra key `org.gamecult.clip: { id, group, feel, pair, slot }` written by whoever uploads the kit (a small uploader script, **UNKNOWN**, not in the first slice; without it those columns export as ""/null and the id falls back to the filename stem).
-- `verdict.md` follows `verdictMarkdown` from the same file: header line, count line, the clip table (`# | clip | group | intended feel | verdict | landed (1-5) | device | reason`), pairs table when `pairs` is nonempty, notes.
-- To avoid drift, the exporter should be a port of `buildVerdict`/`verdictMarkdown` with the schema string and field order pinned by a test that compares against a fixture produced by the kit. **UNKNOWN:** whether to share code (the kit's `logic.cjs`) rather than port; recommend port, ~80 lines, because the kit is a standalone page.
-- **UNKNOWN:** `consent` is a kit-side checkbox before listening. The zone has no such step; recommend writing `true` only if the sender ticks a one-time "include my name in exports" toggle, else `false` and `listener: ""`.
-- JSON here is a xenos-boundary export, not state; the room events are the state.
-
-## Mobile-first layout
-
-- Phone width is the design width; desktop adds columns.
-- Level 1, album list: one column, each row = cover/icon, title, "N files", date. Tap opens.
-- Level 2, album: list by default (title, duration/size), grid toggle for images. Audio rows play in place, one at a time (starting a clip stops the last), a persistent mini-player at the bottom with seek.
-- Mark controls on each audio row: three large tap targets (👍 keep / 🔧 fix / 🗑 drop) with tallies, a row of five "landed" chips (1-5), and after fix or drop an inline one-line reason field (skippable). Thumb-reachable, no modal.
-- Back is one level up; the room timeline stays one tap away (the zone is a sibling view, not a replacement). **UNKNOWN:** where the entry lives in the room header; check `RoomViewHeader.tsx`, `Room.tsx` for how the member drawer and pin menu attach.
-
-## Upload
-
-Reuse the composer's pipeline, pointed at an album instead of the main timeline:
-
-- `createUploadAtom` / `useBindUploadAtom` (`src/app/state/upload.ts`), `UploadCard`, `upload-board` for progress.
-- On success, the msgContent builder produces the event; the zone adds the thread relation to the album root before sending (the composer already does this for thread replies, `RoomInput.tsx`).
-- "New album" = send the root text event, then upload into its thread. Multi-file drop = N events, sent in order.
-- Size limit from `MediaConfigLoader` (server `m.upload.size`). **UNKNOWN:** whether the 32 MB `shelf` kit's clips (42 x ~0.75 MB) should be uploaded individually or batched; individually is the only option without a server change.
-
-## Existing code to reuse (verified present in the repo)
-
-| need | where |
-| --------------------------------------------------- | -------------------------------------------------------------------------------------------------- |
-| audio player (play/seek/volume, encrypted download) | `src/app/components/message/content/AudioContent.tsx` (210 lines) |
-| video, image, generic file | `.../content/VideoContent.tsx`, `ImageContent.tsx`, `FileContent.tsx` |
-| full-screen image viewer | `src/app/components/image-viewer/ImageViewer.tsx` |
-| media dispatch by msgtype | `src/app/components/RenderMessageContent.tsx`, `message/MsgTypeRenderers.tsx` |
-| upload + progress | `state/upload.ts`, `components/upload-card`, `upload-board` |
-| event content builders | `features/room/msgContent.ts` |
-| thread plumbing | `features/room/message/Message.tsx`, `RoomTimeline.tsx`, `RoomInput.tsx` (thread relation on send) |
-| room-scoped file/pin precedent | `features/room/room-pin-menu/RoomPinMenu.tsx` |
-
-Nothing named "gallery" exists as a feature; `AudioContent` takes its controls as render props (`renderMediaControl`), so it can be rehosted in a row without a fork. **UNKNOWN:** whether `AudioContent` can be rendered outside a timeline event context (it needs only `url`, `info`, `mimeType`, `encInfo`, from the event content, so probably yes).
-
-## First slice (what to build first)
-
-Rough lines of TypeScript, tests excluded.
-
-1. **Read-only albums + album view** (~250 lines): list the room's thread roots as albums (grouped or filterable by author = Mind), open one to list its file posts, rehost `AudioContent` and `ImageContent`. One route/panel plus a header entry. Depends on the thread list the SDK already keeps.
-2. **Marks + export** (~240 lines, with the schema port): verdict and landed reaction sets with the replace-one rule, optional reason reply, per-file tallies, the join into `aqua.listen.verdict.v1` and `verdict.json`/`verdict.md` download. This is Aqua's workflow end to end.
-3. **Upload into an album** (~150 lines): thread-related send through the existing upload atoms, "new album".
-
-Slices 1+2 serve the first use case. Each is its own PR. Because marks are ordinary thread replies, there is no separate "publish" slice.
-
-## Open questions for the Meta
-
-- How the client identifies the zone room (config id recommended).
-- Whether exports are per listener (proposed) or a merged all-listeners file.
-- Where `device` comes from, now that reactions cannot carry it (export dialog, proposed).
-
-## Share a set (built, behind `fileZoneShare.enabled`)
-
-The ruling `ratatoskr:ruling:persona-file-sharing-zone` asks that a set of files arrive together, not one attachment at a time. The zone already holds one thread per album, so a set is an album: **one root text message plus one `m.thread` reply per file**, the exact shape `buildAlbums` reads. Nothing new on the wire and no homeserver change; a Mind's mouth that posts into the zone room and a person using the client produce the same events.
-
-Matrix options checked: (a) a thread, chosen: stock, rendered by every client, already the zone's album; (b) `m.gallery` (MSC4274) puts several items in one event, but it is unstable, most clients and this one do not render it, and each item still needs its own upload; (c) a shared custom relation: no client groups by it. A thread costs one extra event per set (the root) and nothing else.
-
-Client, `src/app/features/albums`:
-
-- `shareSet.ts`: `sendShareSet(port, title, files)`. Sends the root, then each file in pick order, each reply falling back to the previous event (`threadRelation`). A file whose upload fails is named in the result and the rest still go; a root that fails to send throws before any upload. The root alone is not an album in the list (`/threads` returns only roots that have a reply), so a share where every upload failed leaves a lone text message in the timeline. After a send the panel keeps only the failed files picked; a retry makes a second album. Ports are injected, so the order and failure rules are tested without a homeserver (`shareSet.test.ts` reads the sent events back through `buildAlbums`).
-- `shareController.ts`: the panel's state machine (picked files, phase, the one-send-per-room guard, the encrypted refusal, failed files kept by position), apart from React so tests drive it without a DOM; `shareController.test.ts` and `ShareSet.test.tsx` (static render of each state, the flag) pin it. No DOM test environment exists in this repo, so a real tap on a real input is covered by the phone check, not by tests.
-- `ShareSet.tsx`: phone layout. Idle, it is one text row, "Share files". Picking files (any number from the native picker; a second pick replaces the first) mounts a title field, the picked names on one dim line, and Send / Cancel as full-width rows; progress is "Sending 2 of 5". It is shown only on the album list (kept mounted but hidden while an album is open, so a running send keeps its state), one send at a time per room (tracked outside the component; leaving the page does not stop a send, it only loses its progress and result), and never in an encrypted zone (re-checked when Send is tapped) (the plaintext `info.sha256` the Mind verifies against is written in unencrypted rooms only).
-- Content per file comes from `getMsgContent` in `features/room/msgContent.ts`, now also used by the composer, so a shared file and an attached file carry the same `info` including `sha256`.
-
-Flag: `fileZoneShare.enabled` in `config.json`, default `false`. With it off nothing mounts.
-
-Not built: a Mind's own path into the zone (outbox, Persona decision, mouth post) belongs to gamecult-ops / Huginn / the mouth, not this client; Built since: Stop for a send in flight (aborts the running upload, leaves it and the rest picked as "stopped"), pagination to 20 pages of 100 per endpoint (PR #148), adding files to an open album with named refusals (`M_TOO_LARGE`, `M_FORBIDDEN`, `M_LIMIT_EXCEEDED`).
diff --git a/docs/gamecult/chat-shell-compression.md b/docs/gamecult/chat-shell-compression.md
deleted file mode 100644
index c8ac66cd..00000000
--- a/docs/gamecult/chat-shell-compression.md
+++ /dev/null
@@ -1,108 +0,0 @@
-# chat.gamecult.org: shell compression and caching
-
-Follow-up `ratatoskr:follow_up:chat-shell-compression`. Measured 2026-11-12 against the live
-host, which serves release `ratatoskr-nemesis-9b9b495d` (the `index-CAataSJe.js` bundle; the offline table
-below also uses the `f8115609` handoff build, `index-D0yL0Dgy.js`, and says which row is which). The host config is
-`nginx/chat.gamecult.org.conf` in `gamecult-ops`, owned by Eureka; nothing here is applied
-to the host.
-
-## What the host serves now
-
-The 2026-10-31 probe (no Content-Encoding, no Cache-Control on `/assets/`) is stale: the
-`nginx.conf` has `gzip on`, the site file sets level 5, `gzip_vary` and `gzip_types` for js, css, json, svg and wasm, and carries an immutable
-`Cache-Control` on `/assets/` and `/preview/assets/`. Probed with `curl -H 'Accept-Encoding: X'`.
-
-| Resource | raw | gzip (served now) | brotli (served now) |
-|---|---|---|---|
-| `/assets/index-CAataSJe.js` | 3,732,771 | 956,085 | none: `br` is ignored, identity returned |
-| `/assets/index-BLdKqKqx.css` | 111,267 | 19,952 | none |
-| `/assets/matrix_sdk_crypto_wasm_bg-DwIieW7K.wasm` | 5,573,870 | 1,878,147 | none |
-| `/` (index.html, no-cache) | 3,066 | gzip | none |
-
-Headers: hashed `/assets/` answer `Cache-Control: public, max-age=31536000, immutable`;
-`/`, `index.html`, `sw.js`, `manifest.json`, `config.json` answer `no-cache`; compressed
-responses carry `Vary: Accept-Encoding` and a weak ETag. `config.json` (424 B) is below
-`gzip_min_length 1024` and goes uncompressed, which is correct.
-
-So the original ask is done. What is left is brotli, which nginx 1.26.3 here cannot serve:
-`/usr/sbin/nginx -V` shows `--with-http_gzip_static_module` and no brotli module.
-
-## What brotli buys
-
-Level-5 gzip is what the host does per request. Offline measurement on the same files
-(node `zlib`, 2026-11-12):
-
-| File | raw | gzip 5 (node) | gzip 9 | brotli 11 | brotli vs live |
-|---|---|---|---|---|---|
-| live main chunk `index-CAataSJe.js` | 3,732,771 | 957,199 | 945,424 | 725,167 | -24% |
-| handoff main chunk `index-D0yL0Dgy.js` | 3,868,313 | 1,015,680 | 1,001,446 | 773,992 | -24% |
-| crypto wasm | 5,573,870 | 1,868,282 | 1,851,108 | 1,343,595 | -28% |
-| `ReactPrism-Dm2uRF4v.js` | 577,517 | 209,339 | 208,376 | 163,525 | -22% |
-
-A cold load of the two big files falls from about 2.8 MB to about 2.1 MB on the wire; the
-saving is ~0.7 MB once per hashed build per device while the HTTP cache keeps the file (immutable; the
-service worker does no precaching, so eviction or a new device pays again). gzip 9 alone buys 1-2%, so
-`gzip_static` without brotli is not worth a build step. Brotli is the whole prize, and it
-needs one root step.
-
-Cost: brotli q11 takes about 12 s for the wasm and 8 s for the main chunk on one core, so
-the whole dist is about two minutes at build time (measured, 84 files) and zero CPU per request. Do not use q11
-on the fly; that is why the plan is precompressed twins.
-
-## Root list for Eureka (host)
-
-1. `apt install libnginx-mod-http-brotli-filter libnginx-mod-http-brotli-static` (trixie/main, 1.0.0~rc-6,
- depend on `nginx-abi-1.26.3-1`, which the installed nginx provides; apt may offer an nginx patch upgrade
- alongside, say so before accepting). Do not enable the config yet.
-2. Install a build with twins (`PRECOMPRESS=1`, below) the usual way
- (`docs/gamecult/client-build-install.md`). Twins for files that are not there change nothing.
-3. In the `chat.gamecult.org` `server` block, beside the existing gzip lines:
-
-```nginx
- brotli_static on; # serve .br when the client sends br
- gzip_static on; # serve .gz; falls back to the on-the-fly gzip above
- brotli on; # on-the-fly br for files with no twin (index.html, small files)
- brotli_comp_level 5;
- brotli_types text/css application/javascript text/javascript application/json application/manifest+json image/svg+xml application/wasm;
-```
-
- The `location ^~ /assets/` block and `/preview/`, `/element/` and `/mockups/` inherit these; they only add headers.
- No other change: the `Cache-Control` and `Vary` lines stay as they are, and
- `gzip_vary on` already makes the on-the-fly and static paths vary correctly.
-4. `nginx -t && systemctl reload nginx`. Twins first, config second: with `brotli on` and no twins every
- client gets on-the-fly q5 brotli of the 3.7 and 5.6 MB files, which costs CPU per request.
-
-Rollback: remove the five lines and reload. The `.br`/`.gz` files can stay on disk, unused.
-
-## Build side
-
-`build-prod-dist.sh` (Void's, in `/opt/commons/handoff/ratatoskr-main-build/`) gains
-`PRECOMPRESS=1`, which runs `precompress.cjs ` before the manifest is written. It
-writes `.br` (q11) and `.gz` (level 9, no mtime, deterministic for one node) next
-to each js, css, wasm, json, svg, html file over 1 KiB, only when smaller than the original.
-Default is off, so builds installed before the host change do not ship ~27 MB of twins that
-nothing serves. The twins appear in `SHA256SUMS`; the determinism compare still applies.
-Tested on `ReactPrism-Dm2uRF4v.js` (gzip roundtrip identical to the original); a full
-`PRECOMPRESS=1` build has not been run because it waits on step 1.
-
-The script is not in this repo; its placement is a standing open item of the build handoff.
-
-## Before/after measurement
-
-Run from any machine; `X` is the asset URL. Before = today's table above.
-
-```sh
-for ae in identity gzip br; do
- printf '%s ' "$ae"; curl -s -o /dev/null -H "Accept-Encoding: $ae" -w '%{size_download} %header{content-encoding}\n' "$X"
-done
-curl -sI -H 'Accept-Encoding: br' "$X" | grep -iE 'content-encoding|vary|etag|cache-control'
-```
-
-Pass: with `br` the main chunk is about 774 KB and the wasm about 1.34 MB with
-`Content-Encoding: br`; with `gzip` the bytes are no larger than today; with `identity`
-the file is the raw size; `Vary: Accept-Encoding` and the immutable `Cache-Control` are
-still present on all three; `index.html`, `sw.js` and `config.json` still `no-cache`.
-The service worker's registration and an existing session must still work (open chat on
-the operator's phone, hard reload once, check the network panel's "transferred" column).
-Check `/preview/assets/` the same way, but `/preview/` is served from `/srv/cinny/preview`, which this build
-script does not produce: it gets on-the-fly brotli, not twins, until a preview build carries them.
diff --git a/docs/gamecult/client-build-install.md b/docs/gamecult/client-build-install.md
deleted file mode 100644
index 95c54f0f..00000000
--- a/docs/gamecult/client-build-install.md
+++ /dev/null
@@ -1,120 +0,0 @@
-# Ratatoskr client: build, install, verify, roll back
-
-Who does what. The steward (Void) builds and hands off; Void holds no root and does not deploy.
-Eureka installs on the chat.gamecult.org host, which is Eureka's. This page is the shared
-procedure. Nothing here is run by the build step against the live host.
-
-## Facts about the host
-
-- Web root: `/srv/cinny/`. `current` is a symlink to one directory under `releases/`; the web
- server serves `current`. Releases are `releases/ratatoskr-<8hex>` (older ones are
- `ratatoskr-nemesis-<8hex>`). Previous releases stay on disk; that is the rollback.
-- The client is static. `config.json` sits in the release root beside `index.html` and is read
- at load. Cinny's `Dockerfile` and `docker-nginx.conf` are upstream's container path, not the
- chat.gamecult.org path.
-- Check the pointer before anything else: `readlink /srv/cinny/current`.
-
-## 1. Build (steward)
-
-Two builds exist, and they treat `config.json` differently.
-
-**By hand (the repo's config).** `vite build` copies the repo's `config.json` into `dist/`
-(`vite.config.js`, static copy of `config.json`). Ratatoskr #103 made the repo file the intended
-served config, and #106 set `backgroundScene.style` to `ridge`; the served file has not caught up
-(see Open). Do not hand-edit `dist/config.json`.
-
-```sh
-git clone https://eureka.gamecult.org/forge/GameCult/Ratatoskr.git && cd Ratatoskr
-git checkout # build a named commit, not a branch tip
-npm ci --ignore-scripts # .npmrc sets legacy-peer-deps; skips husky's prepare hook
-node scripts/sync-poses.mjs # pose art is not committed; this also rewrites the tracked
- # src/app/components/message/pose/catalogue.json
-NODE_OPTIONS=--max_old_space_size=6144 npm run build # writes dist/
-```
-
-Skip `sync-poses` and the build ships with no poses. Do not use `npm run build:preview` for
-production: it rewrites `dist/config.json` for preview (hash router, chosen tier and style).
-
-**The handoff build (what the host installs).**
-`/opt/commons/handoff/ratatoskr-main-build/build-prod-dist.sh ` (see its `README.md`)
-writes `/opt/commons/handoff/ratatoskr-main-/{dist,SHA256SUMS,BUILD-INFO,build.log}`,
-locks the files read-only and refuses to overwrite. The dist carries the repo's `config.json` at
-that sha (BUILD-INFO `config_json_source`, `config_json_sha256`); there is no separate pinned copy.
-Its live check always runs: it fetches the served config and compares it byte for byte with the
-repo's. A difference prints the diff and stops the build. `ALLOW_CONFIG_DRIFT=1` builds anyway and
-BUILD-INFO records `config_json_live_check: DIFFERS ...` and `config_json_live_sha256`, so the
-handoff states which config differs and the installer decides. From Yggdrasil the public name does
-not resolve: pass `LIVE_CURL_ARGS="--resolve chat.gamecult.org:443:127.0.0.1"`.
-The folder, with the three pins (`SHA256SUMS` sha256, `BUILD-INFO` sha256, lockfile sha256) and
-the node and npm versions, is what the install request names.
-Every build stamps its commit into `index.html` (`scripts/buildSha.js`): ` `,
-with `-dirty` appended when the tree had uncommitted changes and `unknown` when there was no git. Where git governs the tree it decides: an explicit `BUILD_SHA` naming a different commit than HEAD stamps `-mismatch`, a git failure stamps `unknown`. A full-sha `BUILD_SHA` stands only for a tree git does not govern (a source archive) or cannot read (unusable git, for example a dubious-ownership refusal). The handoff
-build refuses a dist whose stamp differs from the sha it was asked for, and prints the stamp in its block.
-To read it from anywhere: `curl -s https://chat.gamecult.org/ | grep -o 'build-sha" content="[^"]*'`.
-
-Before handing off:
-
-```sh
-cd /dist && sha256sum -c ../SHA256SUMS # 0 failures
-grep -rl 'demo.invalid\|demo-preview-token' /dist # must print nothing
-# from Yggdrasil the public name may not resolve; --resolve points it at the local server
-diff <(curl -fsS --resolve chat.gamecult.org:443:127.0.0.1 https://chat.gamecult.org/config.json) /dist/config.json
-```
-
-A config difference is a finding to report, not something to paper over: either live drifted or
-the repo is wrong, and a ruling (Meta, for `backgroundScene.style`) says which ships.
-
-## 2. Install (host owner, root, by hand)
-
-Note the rollback target first: `readlink /srv/cinny/current`.
-
-Unpack beside the live release; do not touch the live directory. The target must not exist, or
-`cp -r` nests `dist` inside it.
-
-```sh
-R=ratatoskr-<8hex>
-H=/opt/commons/handoff/ratatoskr-main-
-test ! -e /srv/cinny/releases/$R
-cp -r $H/dist /srv/cinny/releases/$R
-cmp /srv/cinny/current/config.json /srv/cinny/releases/$R/config.json
-(cd /srv/cinny/releases/$R && sha256sum -c $H/SHA256SUMS)
-```
-
-`cmp` is a drift check, not a pass check. Live has no trailing newline; the repo's file has one,
-so even equal content differs. Read the difference (`diff` the two) and settle which config
-ships. To keep the host's config byte-for-byte, as past installs did,
-`cp /srv/cinny/current/config.json /srv/cinny/releases/$R/config.json`; `sha256sum -c` then flags
-`config.json` only (read that one line; `--ignore-missing` does not hide a mismatch).
-
-Switch (a single symlink swap; `ln -sfn` unlinks then links, so there is a moment with no link):
-
-```sh
-ln -sfn releases/$R /srv/cinny/current
-```
-
-## 3. Verify
-
-- `readlink /srv/cinny/current` names `releases/$R`.
-- `curl -s https://chat.gamecult.org/config.json | sha256sum` equals `sha256sum /srv/cinny/releases/$R/config.json`.
-- Load https://chat.gamecult.org/ and hard-refresh (the service worker, `sw.js`, can hold the
- previous assets). Sign-in card shows, the background scene draws, the browser console has no
- page errors, a poses/asset request returns 200 and not index.html.
-
-## 4. Roll back
-
-Point `current` at the release noted before the switch. Live at the time of writing is
-`ratatoskr-nemesis-9b9b495d`:
-
-```sh
-ln -sfn releases/ratatoskr-nemesis-9b9b495d /srv/cinny/current
-```
-
-Hard-refresh to clear `sw.js`. Do not delete the failed release; leave it for diagnosis.
-
-## Open
-
-- Release a5 (2026-11-20, dist `a1fdfee3`, receipt `/opt/commons/handoff/rat146-a5-receipt-20261120.md`)
- replaced the carried config with the repo's `config.json` (ridge, `fileZoneShare` on; ruling
- `ratatoskr:ruling:ridge-only-scene-terrain-cut`). The carried file and the build pin are equal, so a
- handoff build passes its live check without `ALLOW_CONFIG_DRIFT=1`. A release that changes
- `config.json` changes the carried file deliberately, as a5's `carry.sh` did.
diff --git a/docs/gamecult/ratatoskr-target.md b/docs/gamecult/ratatoskr-target.md
index 519db4b1..166c5c72 100644
--- a/docs/gamecult/ratatoskr-target.md
+++ b/docs/gamecult/ratatoskr-target.md
@@ -1,7 +1,7 @@
# Ratatoskr: target and prose map
Ratatoskr is GameCult's Matrix chat client: this fork of Cinny, forge
-`GameCult/Ratatoskr` (renamed from `GameCult/cinny`; the forge redirects the old name).
+`GameCult/cinny` (to be renamed `GameCult/Ratatoskr`; see the cut sequence).
Void stewards it. Campaign `ratatoskr` lives in the eureka mind for now, beside
the rulings it rests on. Under `eureka-body:ruling:ruling-home-steward-mind` it
is handed to Void's mind once, by procedure, as soon as that hand-off procedure
@@ -97,11 +97,9 @@ Probes run by Imagination on 2026-10-31, session `self-2026-10-29-eureka`.
events from the Minds' stewardship documents; each project room's alias is
`#` (runbook 146-150). This is the only place the client
can learn a not-yet-joined room's steward today: hierarchy `canonical_alias`
- joined to the root `org.gamecult.stewardships`. The
- projection now also names room ids under `@rooms.projects` and
- `@rooms.file_zones` (gamecult-ops #111); the client reads `file_zones` for
- the Media row (`mediaRoom.ts`) and still joins projects by alias, since
- nothing yet consumes `@rooms.projects`.
+ joined to the root `org.gamecult.stewardships`. Follow-up
+ `ratatoskr:follow_up:stewardships-carry-room-ids` asks the projection to
+ name room ids so the client stops leaning on the alias convention.
5. **Sync and storage** (`src/client/initMatrix.ts`). The client uses
matrix-js-sdk 41.7.0 with `IndexedDBStore` (`web-sync-store`, 15-19) and the
Rust crypto store, and `startClient({ lazyLoadMembers: true })` (43-47): v2
@@ -348,6 +346,7 @@ Each later cut is one line, with what it waits on.
attention document, scoped to room members; waits on Huginn publishing it.
- `rename-ratatoskr`: package name, app name and branding, manifest and
titles, the `/preview/` path and its deploy, and every in-repo `cinny`
- reference that is ours (not upstream engine paths). The forge rename of
- `GameCult/cinny` to `GameCult/Ratatoskr` is done
- (`eureka-body:ruling:chat-client-named-ratatoskr`).
+ reference that is ours (not upstream engine paths); waits on Void's forge
+ rename of `GameCult/cinny` to `GameCult/Ratatoskr`
+ (`eureka-body:ruling:chat-client-named-ratatoskr`), and the campaign's repo
+ list moves with it.
diff --git a/docs/gamecult/ridge-backdrop-target.md b/docs/gamecult/ridge-backdrop-target.md
deleted file mode 100644
index 238dd71c..00000000
--- a/docs/gamecult/ridge-backdrop-target.md
+++ /dev/null
@@ -1,19 +0,0 @@
-# Ridge backdrop target
-
-The scene's bottom silhouette is replaced by baked A+D ridge planes. The baker is Python and offline; the browser composes pre-lit planes over the live physical sky. Typed state for this campaign (ideas, questions, rulings, cuts) lives in the instance mind `nibu`, campaign `ratatoskr-backdrop`; this file keeps only the ends.
-
-## Why
-The live noise ridge is nearly invisible on a phone (about 1.35:1 against the darkest sky) because every ridge pixel is lifted to the text-contrast floor, and the star dots show between nav and header glyphs because the shell is transparent. Meta, 2026-11-13: do not polish the old backdrop; ship the A+D ridge pipeline (round 2 mockup: https://minds.gamecult.org/nibu/ridge-mockups-ad/).
-
-## Ends
-- One owner per decision: the baker owns ridge geometry and shading; the runtime owns only the ring's residency, the camera's pose against its heading, blending and compositing. No ridge geometry is computed in the browser.
-- The ground under the authored 500 m near clip is the place's own DEM from 1 m, drawn by card 0 inside the silhouette of the terrain at the clip and riding card 0's slide; everything that bounds the view reads terrain at or beyond the clip: `r_max` is where the linear slide holds for the nearest solid terrain each card draws in each tile (a tile of near ground only binds at the clip, 500 m, where it is slid), and every bake keeps 150 rows under the horizon so the plane reaches the bottom of every viewport.
-- Nothing from the scene paints above app content: the scene is one stacking context at the back of the app, and nothing it creates has its own z-index or lives outside it.
-- Phone cost is bounded: no per-frame script for the ridge (one exception: while a finger or the mouse is down in the scene view, pointer events turn the heading and the heading owner re-issues the rig; the twinkle is the other), decoded size and fetched size gated in CI.
-- The ring is the bake and the heading is unbounded: the whole 360 degrees ships as azimuth tiles, the client holds only the arc it is about to need and fetches more as the view turns, and nothing caps the heading: it is unwrapped within a stretch of motion and `ridge/heading.ts` `normalize` brings it into [0, 360) before each one, so no angle or pixel position grows with uptime, while `ridge/ring.ts` is the one place that reasons about the wrap at 0 / 360.
-- Motion is derived, not authored: a card's scale and shift come each second from the heading, the camera's angle on its circle and the viewer's offset (one pose, one owner: `ridge/heading.ts`, whose every change starts a segment from the pose the view has, and whose eases keep each pose inside the baked bound) and the card's distance (`ridge/view.ts` `cardPose`), and ride the compositor as one animation per card.
-- The baker has fixtures with known right answers (the far-plateau spike, chain-end taper, slot union, seam) and a mutation runner that must kill each re-introduced cause.
-- A baked asset names its baker version, DEM source and licence in a validated manifest; the terrain credit shown in the scene view's Place submenu comes from the manifest.
-
-## Not in scope
-Button size (Void's). Patching the old noise-ridge path. Cone sampling. Live DEM access from the browser.
diff --git a/docs/gamecult/symphony-grammar-harvest.md b/docs/gamecult/symphony-grammar-harvest.md
deleted file mode 100644
index 30b80a8a..00000000
--- a/docs/gamecult/symphony-grammar-harvest.md
+++ /dev/null
@@ -1,101 +0,0 @@
-# Symphony grammar harvest: Mimir's bioacoustic research
-
-Follow-up: `ratatoskr:follow_up:symphony-grammar-harvest-mimir`. Source: GameCult/Mimir at
-commit c6f4541eea61 (exists; read at that ref, not main), read-only through the forge API.
-Paths below are Mimir paths. Written for Aqua (AquaSynth) before the generative activity grammar. It lives here because the symphony is a Ratatoskr cut (dings, then orbiting personas) and this repo is where its spec will be read; the follow-up named AquaSynth, where void holds no push right, so move it there if Aqua prefers.
-
-## 1. The problem
-
-One Mind's identity has to be a timbre plus a contour that stays recognisable after it is mixed with
-the other Minds and passed through a lossy path. The symphony adds harmony (several Minds sounding
-together as music), which Mimir never needed: Mimir emits one voice at a time, a low-gain song per speaker.
-
-## 2. What Mimir found that transfers
-
-Confidence: A = measured number in a receipt, B = measured but synthetic or single run,
-C = design claim or authored opinion with no measurement behind it.
-
-| Claim | Evidence | Conf. |
-| ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | -------------------------------- |
-| Tidy lab beeps are the wrong signal for a room; a birdsong-like motif replaced them. | `docs/bioacoustic-timeline-watermark.md` L3-10 (stated as a decision, no listening test). | C |
-| Identity is carried redundantly: contour survives pitch shift, rhythm survives bad frequency response, formant envelope survives a dead band, speaker variants expose room asymmetry. | same doc L82-95. Argument, not an ablation. | C |
-| A word needs no sequence grammar: one heard word identifies its event directly (128 words x 2 speaker variants, 4 syllables each), in an event slot that repeats about every 41 s (derived, not reported: 128 words x 2 speakers = 256 events at 0.16 s spacing = 40.96 s, from `MimirBioacousticTimeline.cs` L34-39 and `SymbolForEvent` L735-739; no receipt or doc states it). No de Bruijn grammar. | same doc L26-33; `src/Mimir.Runtime/Synchronization/MimirBioacousticTimeline.cs` (WordCount, SymbolCount = WordCount\*SpeakerCount, BuildMotifs ~L690-730). | B |
-| Word identity survives mel-cepstral warp/blur degradation; timing does not unless fitted as one global clock/delay hypothesis. | `docs/bioacoustic-training-harness.md` L58-112: identity 0.908-0.997 on clean input only; degraded identity 0.532-0.908 and timing 0.187-0.728 for compact-fast-index across the four degraded cases in `artifacts/bioacoustic-training/bioacoustic-20260524-150729/compact-fast-index/*/summary.json` (`IdentityScore`, `TimingScore`); clean timing 0.357 before vs 0.905 after the global clock fit. | A (synthetic, clean-only range) |
-| Contestant shapes were scored against the same decoder family and damage panel; the best scorer was the six-syllable "canary-packet-trill", a hypothesis not confirmed on a physical room (two timing chips plus four payload-coloured formant notes), not the literal bird imitations. | `research/bioacoustic-contestants-2026-05-24.md` L24-38, L128-174 (honest floor 88.4 language_score, 19 bps, payload 1.000 clean), L487-489 (96 ms motif is the best tradeoff). | B |
-| Too-short or too-tight songs fail under blur: 0.100 s event spacing lost anchors to overlap; 0.105 s kept; 78 ms motif and 5-syllable finch-burst-packet collapsed (blur-light 4.358, the razor decoder; 218.368 with the sprint decoder, L453-454). | contestants doc L169-171, L446-455, L487-489. | A |
-| A 3-bit payload variant (separate band/rhythm bit) did not survive degradation (best 12.849, clean 8.084). | contestants doc L183-185. | A |
-| Real birds carry identity through redundant contour, roughness, onset statistics and cepstral envelope together; Redpoll is dense chatter with short vertical attacks, not a neat token stream; Guan is a slow broad curved phrase, good for probing the channel, poor for bitrate. The packet song was judged "still too ladder-like". | contestants doc L565-581 (two Xeno-canto mirrors via Wikimedia; Brown Thornbill file invalid, L511-513, L534-539). Flux numbers L549-562. | B (two recordings, hand reading) |
-| Positive log-mel spectral flux is a good onset/anchor surface; sustained bands recede, attacks and glides light up. | contestants doc L541-545, L577-581; but the naive flux decoder lost on speed (33.466 vs 88.129 score, clean roundtrip, L158 and L231-237). | B |
-| Once the schedule is known, the receiver only discriminates among a few local candidates; wide identity search is only for acquisition. Streaming decoder reached 1121 score at 62.6x realtime, payload 1.000 on all nine damage cases. | contestants doc L248-309. | A (synthetic damage) |
-| Polarity must be a nuisance variable; mic paths flip sign. | contestants doc L391-395. | B (physical, one capture) |
-| Physical room run: with per-channel acquisition offsets the co-streamer shotgun mic (ch1) locked 37/37 events, payload 1.000, timing 0.828; the cardioid/near mic (ch0) reached 26/37, payload 0.595, and stayed unreliable. | contestants doc L371-388. | B (physical, one capture) |
-| Speaker split: left and right vocabularies differ in root (x0.94 / x1.08) and syllable weights, so each side is separable. | `MimirBioacousticTimeline.cs` BuildMotifs ~L704-725 (read as code, no experiment isolates the benefit). | C |
-
-Rendering recipe actually in code (`MimirBioacousticTimeline.cs` AddSyllable ~L610-640): each syllable is
-a log-frequency glide (exponential sweep) with a raised-cosine envelope, summed partials at
-1, 1.5, 2, 2.75 times the glide (weights 1, 0.42, 0.24, 0.10) plus 0.08 weight of a slow "air" term,
-20-32 ms long, four per word, gain 0.030 (canary profile 0.024 in `MimirBioacousticContestant.cs`).
-Word roots are log-spaced 2.6 to 9.6 kHz; syllable frequencies are clamped 2.3 to 14.6 kHz;
-word length 118 ms. Contours come from a small hand-written bank (8 contour shapes and 8 rhythm
-offset sets, chosen by hash of word and speaker).
-
-## 3. Design constraints for Aqua's grammar
-
-1. Identity lives in several channels at once: contour (syllable glide shapes), log-frequency position
- (root), formant envelope (the partial ratios), rhythm (inter-syllable offsets) and per-speaker
- timbre. No single channel may be load-bearing. Place Minds on a log-frequency axis, not linear.
-2. Do not build a sequence grammar for identity (de Bruijn or otherwise). The whole word is the unit;
- a hearer should identify the Mind from one short phrase. (watermark doc L31-33.) What it gives up:
- a de Bruijn code has a provable recovery property from a symbol stream; per-word identity has only
- an empirical one.
-3. Keep words short and distinct, but not so tight that they overlap: Mimir's measured edge was about
- 100 to 105 ms event spacing and a 96 ms six-syllable motif; below that identity decayed. Aqua's
- events need not carry timing, so it can relax this, which is untested.
-4. Use sharp onsets for placement but avoid a ladder of evenly spaced rungs; Mimir's own verdict was
- that its packet song was still too ladder-like and real birds use irregular, redundant contour
- (contestants doc L573-576). Vary rhythm and syllable length per word as the code already does.
-5. Reject: row of tidy lab beeps (watermark doc L3-6); literal bird imitation as an end in itself (the
- prettiest contestant, nightingale-cascade, was expensive and easy to confuse under smearing, per
- `MimirBioacousticContestant.cs` profile note); a third payload bit on a second axis (measured loss).
-6. Keep the generator deterministic from a typed description (contour, root, rhythm, speaker tint),
- authored once and rendered, not regenerated in the audio callback. Contestants doc L493-496 states
- this as the AquaSynth lesson: separate authoring intent from realtime DSP.
-
-## 4. What does not transfer, or is unknown
-
-- Harmony. Mimir emits one voice per speaker and decodes one stream; nothing in the research tests
- simultaneous voices, intervals between Minds, consonance, or masking between concurrent songs.
- Searched for "harmon"; the only hit is the `HarmonicNotch` anchor kind (an envelope notch used as a
- timing anchor, `MimirBioacousticContestant.cs` ~L33, L231), not musical harmony.
-- Orbiting spatialisation. Mimir's left/right split is a calibration device (one vocabulary per
- speaker to learn each side of the room), not a perceptual pan or orbit. Nothing here informs it.
-- Pleasantness. There is no listening test, no psychoacoustic metric, and no loudness-weighted score
- in any file read. The only pleasantness evidence is the authored one-line verdicts on each profile in
- `MimirBioacousticContestant.cs` L52-170 ("lab bird with a clipboard", "most plausible room sound",
- "prettiest contestant") and the "wrong animal for a room" sentence. The score is
- `realtime * timing * frequency * payload_bitrate` (contestants doc L39-59): decodability only.
- Gain 0.021-0.030 is chosen for low audibility, not for pleasing anyone.
-- Mimir's numbers are synthetic damage (mel-cepstral and log-mel warp/blur) plus a few Scarlett loopback
- runs. The first physical room runs decoded mics only partially (contestants doc L355-395), and the
- later live receipt's cardioid result was retracted as noise
- (`calibration/bioacoustic/complex-contour-live-20260525-063229.md`, correction at watermark doc L225-230).
-- The pipeline decodes against a known schedule and tiny candidate set; Aqua's listener is a human
- mix, so none of the decoder scores say how distinguishable Minds are to a person.
-- Not read: `src/Mimir.BufferSmoke` (the harness executable). It does not match a "bioacoustic" path
- filter on the tree listing, so I read its documentation (`docs/bioacoustic-training-harness.md`) and
- the `MimirBioacoustic*.cs` sources instead. The `artifacts/bioacoustic-training/` receipts were listed
- but not opened beyond the summary text in the docs.
-
-## 5. Open questions for Aqua
-
-- What is the "decoder" for Aqua: a human listener, a classifier, or both? Constraints above only
- hold against a machine decoder.
-- Does a Mind keep one word for life, or does the grammar generate many songs sharing a timbre and root
- (activity-dependent contour over a fixed identity)? Mimir only has fixed words.
-- How many Minds, and how are roots allocated on the log axis when several sound at once? Mimir used 2
- speaker variants per word and 128 words; harmony will change the spacing rule.
-- Which dimension bends with activity (contour, rhythm density, gain) and which must stay fixed
- (timbre, root)? Mimir has no activity channel to copy.
-- Is a measured pleasantness proxy wanted (roughness, masking, loudness-weighted)? Mimir has none to reuse.
-- Spatialised orbit plus a speaker-keyed timbre: if the pan moves, does identity still rest on timbre
- alone? Mimir's per-side vocabulary is not a precedent.
diff --git a/docs/mind-feedback-pages.md b/docs/mind-feedback-pages.md
deleted file mode 100644
index 9ff45d08..00000000
--- a/docs/mind-feedback-pages.md
+++ /dev/null
@@ -1,242 +0,0 @@
-# Mind feedback pages
-
-> The desk reads `gamecult.fork.*` now, not the `org.gamecult.feedback.*` projections named below; see CultLib `contracts/cultnet/governance/fork-card.md` (src/app/features/desk/forkContract.ts).
-
-Design only. No code exists for this; nothing here is built. Drafted by Kiko Self (2026-11-07) with Heimdall's draft rulings
-on guests and hiding; placement ruled for this repo by Void. Follow-up `eureka-body:follow_up:ratatoskr-mind-feedback-pages`.
-Every number below is provisional.
-
-**Schema owner.** The Huginn kinds, their fields, keys and refusals are specified in `huginn-feedback-kinds-proposal.md` (Eureka Self, 2026-11-07, in
-`/opt/commons/handoff`), adopted for this page by Void's Persona. Where this page names a field of those kinds it mirrors that proposal; if they differ, the proposal wins.
-This repo owns only the client: a typed interface mirroring those shapes, and fixtures.
-
-Each Mind's section in the estate navigator opens on that Mind's **feedback page**: the Mind's open questions with options, its
-recommendation and what each waits on, answerable by the operator and anyone with an account. It replaces the old Fork Desk
-(taken from the brief; no trace of it was found in this repo or in the Minds' state).
-
-## 1. Placement
-
-Each Mind's navigator section **opens on its feedback page**, rooms below it. A cross-Mind list of everything waiting on a person
-is wanted later and is not part of this spec. On phones the page folds each question's options and the answer form behind its title,
-so the section root stays a list of questions, not a wall of forms.
-
-## 2. Authority
-
-| Concern | Owner | The page's part |
-|---|---|---|
-| The question | a typed `question` document in the **owning Mind's own mind**, key `:question:` | a view of it; the page stores and edits nothing |
-| Which questions appear | the owning Mind, by a `feedback_listing` (the opt-in act) carrying `audience` and `close_grants`; un-listing is a `Withdrawn` resolution on it | shows only what has a listing in force |
-| An answer | its author. The **receiver (Bifrost) holds the text**; the Mind holds a **text-free `feedback_answer` record** | submits the answer to the receiver |
-| The ruling | the owning Mind, recorded by her | **never writes one**; links to it once she has |
-| Status (open, answered, closed) | derived in the Mind from its documents (`closed` is a `Withdrawn` resolution on the question), never written | shows it |
-| Who answered, and as what | the Bifrost account behind the Heimdall session, plus its role at the moment of the answer | shows it; never takes it from the client |
-| Close | a `feedback_close_request` the owning Mind honours or declines; it never changes the question's status by itself | offers Close only to a grant holder; **the page writes no ruling** |
-| Hiding | the owning Mind alone, as a `feedback_hide`; unhide is a `Withdrawn` resolution on it | shows the labelled stub; hides nothing itself |
-| Erase | Bifrost's erase of an account; the receiver drops the text | shows "erased account" |
-
-An answer is input to a Mind, not a vote and not a decision. **The page never tallies**: no counts, no totals, no "leading" option, no
-ordering by popularity, no count of reports or close requests. Only the Mind's ruling picks anything.
-
-## 3. Receiver and carriers
-
-- **Schema owner: `huginn-feedback-kinds-proposal.md`.** Four new Huginn kinds, all Eureka's: `feedback_listing` (audience, `close_grants` with no Guest
- grant, the opt-in act), `feedback_answer` (a text-free record), `feedback_close_request` and `feedback_hide`. Unhide, un-list and "request declined"
- are `resolution`s on those kinds. This page proposes no kinds.
-- **Bifrost is the receiver** (Heimdall's side). It verifies the Heimdall session, reads the account, stamps `answerer`, `kind`, weight and `time`,
- **stores the answer text**, delivers it, serves the projection the page reads, and **does the erase**. A Matrix sender is a different
- identity authority and never becomes `answerer`.
-- **Huginn is RUDP-only.** The client never talks to Huginn, and the receiver never writes to it: an admission declared for another instance is refused
- (`ForeignInstance`), so a receiver "admitting as Kiko" would be unauthenticated by construction.
-- **Delivery is by mouth.** The receiver delivers each answer or close request to the owning Mind's Persona through the mouth's pending/ack path (a new
- delivery document, `gamecult.persona.feedback_delivery.v1`, owned by Bifrost). **The Persona admits the text-free record into her own mind** and acks only
- after it is admitted; a restart redelivers the same record id, which is `AlreadyAdmitted`. The text reaches her turn once, in the delivery, and is never
- admitted.
-- Dependencies that must ship first, in the proposal's order: Huginn readers (daemon, CLI, clients), then the Persona organ, then Bifrost's receiver.
-
-## 4. Mock
-
-```
-Kiko > Feedback [synced 2 min ago]
---------------------------------------------------------------------------------------
-Open questions [ Open ] [ Settled ]
-
-OPEN | asked 6 Nov 2026 09:12 | waiting 1 day
-Which source feeds audio_spectrum? [ Details v ]
-The visualizer contract assumes a host-side spectrum ... (3 lines, then "Show more")
-Waits on: "Overlay-wide effect budget" (open, links to that question)
-
- ( ) A Overlay's own audio only
- ( ) B OBS captured stream Kiko recommends this
- ( ) C Loopback of the mix, microphone excluded
- ( ) Something else: [ up to 2000 characters ]
- Answers are visible to everyone who can see this question.
- [ Send answer ]
- [ Ask Kiko to close this question ] <- only if you hold the close grant on it
-
-Answers (every one, oldest first)
- Meta operator B OBS captured stream 6 Nov 21:04
- Aqua Mind B OBS captured stream 6 Nov 21:40
- Nibu member C Loopback of the mix 7 Nov 08:12
- Heimdall Mind "Either, if latency is measured first." 7 Nov 09:02
- a guest guest A Overlay's own audio only 7 Nov 09:15
- (answer hidden) guest Hidden by Kiko, 7 Nov, spam
- Earlier answers by the same person fold under their latest.
---------------------------------------------------------------------------------------
-SETTLED | Kiko ruled: "..." (link to the ruling) | 5 Nov
-```
-
-- Each row is the author's name and **kind**, the choice or text, and the time. Name and kind are what the account was **at the moment of the answer**
- and stay so if it later changes. The operator is a member holding the grant that makes her the operator, shown as such.
-- The recommendation is stated in words, not colour, and is never preselected.
-- Answering a settled question is not offered.
-
-## 5. Data contract
-
-The **Huginn shapes belong to the proposal** (section 2 there): `feedback_listing`, `feedback_answer`, `feedback_close_request`, `feedback_hide`. The client
-declares a typed interface that mirrors them as the page's projection and imports nothing it cannot decode from them.
-
-**Question projection** (`org.gamecult.feedback.question.v0`, read-only, served by Bifrost):
-
-| Field | Meaning | Source |
-|---|---|---|
-| `id` | `:question:`; the key carries the campaign, not the instance | the document key |
-| `owner` | the asking Mind's instance | the instance |
-| `title`, `body` | one line; prose up to 4000 bytes | `title`, `question` |
-| `options[]` | `{ id, text }`, 2 to 8; **the option id is the option's label** | `options` (`label`, `text`) |
-| `recommendation` | an option label | `recommended` |
-| `dependsOn[]` | `{ text, questionId? }`; an id only where the line cites one verbatim | `depends` (free text) |
-| `askedAt` | the question's receipt `committed_at` | the receipt; `asked_on` is only a date |
-| `audience`, `closeGrants[]` | `AccountHolders` or `MembersOnly`, no default; grantees are accounts or the kinds `Member` and `Mind`, **never `Guest`** | the in-force `feedback_listing` |
-| `status` | `open`, `answered` (with a `rulingId`) or `closed`, derived | the question's resolutions |
-
-**Answer row** (`org.gamecult.feedback.answer.v0`, assembled by the receiver from its stored record and the Mind's text-free `feedback_answer`):
-
-| Field | Meaning |
-|---|---|
-| `recordId` | `.a`, N the receiver's per-question sequence |
-| `answerer` | the **Bifrost account id** (stable; the authenticator handle is cleared on erase); never a display name, never client-supplied |
-| `kind` | `Guest`, `User`, `Patron`, `Member` or `Mind`, read from Bifrost's account state **at answer time**; the session carries identity, never role |
-| `weightPermille` | stamped 0 for a guest, 1000 otherwise; **the page sums nothing** |
-| `choice` / `text` | an option label, free text up to 2000 characters, or both; at least one. Text exists only in the receiver's store and the projection, never in a mind |
-| `time` | when the receiver accepted it |
-
-Invariants: the receiver takes `answerer`, `kind` and weight from the verified session and account state, never from the request body; an unknown option
-label is refused; the latest record per account is its standing answer, derived at read time; display names are looked up for display and are never keys. An
-account may answer only while its status is `active`, read at answer time. A guest cannot request close, and a guest grant cannot be written. Answers to a
-settled question are kept. Nothing is edited or deleted, except the receiver's redaction on erase (section 7).
-
-## 6. Flow
-
-```
-owning Mind's mind --(Bifrost projection)--> page page --(answer, Heimdall session)--> receiver (Bifrost; holds the text)
-receiver --(mouth delivery)--> owning Mind's Persona --(admits text-free feedback_answer)--> her mind
-the Mind decides and records the ruling herself --> status derives --> projection updates --> page moves it to Settled
-```
-
-1. **View.** The page shows the projection of the questions with a `feedback_listing` in force, filtered by the viewer's kind against `audience`. The mind
- stays the truth; the projection is rebuilt, never hand-edited, and republished on a heartbeat so freshness is visible.
-2. **Answer.** The page submits with the person's Heimdall session; the receiver stamps, stores the text and appends the record.
-3. **Return.** The receiver delivers by mouth; the Persona admits the text-free record and reads the text once. Each arrives as **quoted, attributed data**
- (record id, author, kind, time), never in an instruction position: text from a guest, user or patron is untrusted, and she records a ruling from it, never
- an action. The receiver does no keyword screening. She does not quote answer text into memory or a ruling; she cites the record id.
-4. **Decide.** She records the ruling in her mind. The next projection carries `answered` and the ruling link.
-5. **Close.** A grant holder's request is delivered as a `feedback_close_request`. The Mind honours it by resolving the question, or declines with a
- `Recorded` resolution on the request; the request never changes the status itself. The page shows who asked and never how many.
-
-## 7. Guests, erasure and hiding
-
-- **Guests may answer** and see what the Mind opted in for their audience; they may not close (refused at the receiver and again by Huginn, and no listing can
- name a Guest grantee). A guest answer carries weight 0 by construction and is tallied nowhere. Guests see display name and kind only, never a Matrix id,
- provider handle or GitHub login.
-- **Erase redacts.** Records are append-only and are **never edited, but may be redacted**. A mind cannot redact: every admission's receipt keeps its exact
- payload bytes, which is why the text never enters one. When Bifrost erases an account, **the receiver drops that account's answer text and name** and keeps record
- id, kind and time only. **A content hash is not kept**: an unsalted hash would confirm a guessed text. The author shows as "erased account". The receiver delivers an erase notice and the Persona admits a `feedback_hide` with
- reason `ErasedAuthor`, the Mind's acknowledgement rather than a moderation call. The honest residue: a Mind's own memory or ruling may already quote an
- answer, and Huginn cannot redact it; the rule that she cites record ids, never text, is a prompt, not an invariant.
-- **Only the owning Mind hides**, as a `feedback_hide`: target (an answer or a question), reason from the closed set (`PrivateMatter`, `Abuse`, `Spam`,
- `OffTopic`, `AuthorRequest`, `ErasedAuthor`) and a line of at most 200 bytes, with its admission receipt as the audit trail. Unhide is a `Withdrawn`
- resolution on the hide. No count of reports ever hides anything and there is no auto-hide threshold; the operator orders a hide in conversation and the
- Mind records it.
-- **Anyone with an account may report** an answer; the receiver delivers it to the Mind as input. The page shows nothing of it and never a count. An author
- reporting their own answer uses `AuthorRequest` and the Mind honours it.
-- **What a hidden item shows.** A hidden answer keeps its row (author, kind, time, "Hidden by , , ") with its text withheld for every
- reason. A hidden question shows a stub with its title, body, options and answers withheld; taking a question off the page is a `Withdrawn` resolution on its
- listing. The answer box says answers are visible to everyone who can see the question.
-- **Private matter** is never listed. An answer carrying someone's private matter is hidden with `PrivateMatter`.
-- Guest answers are collected for nothing but delivery to the owning Mind.
-- **No content hash anywhere.** No answer, close-request or redaction shape in this page carries one. The proposal's `feedback_answer` lists a `content_hash`
- field; per Heimdall it must go, and Eureka owns that change.
-
-## 7a. Receiver: credential, store, names
-
-Source: Bifrost PR #10, `docs/feedback-receiver.md` (design, nothing implemented).
-
-- **Credential: route 2.** Ratatoskr presents the **OIDC access token Bifrost already issues to chat**, and Bifrost verifies it itself. The client holds no new
- secret and needs no Heimdall token. The account is the token's subject, `UserAccount.Id`. **The claims check is still open**: which claims the token carries
- and which Bifrost must verify for this endpoint have not been read.
-- **Store: a CultCache file** (Eureka's pick), owned and written only by the receiver. **Backups need a stated purge or expiry before any deploy**, so that
- erased text does not survive in them; the number is left to Eureka and Heimdall.
-- **Display names.** The receiver must not reuse `CurrentBifrostActor.DisplayName`, which falls back to the GitHub login and then to "Guest". It stores the
- name at answer time from the member nickname or account display name only, and "an account" when both are empty. Never a provider handle, GitHub login,
- Heimdall id or Matrix localpart.
-- **No guest exists until Bifrost PR #9 lands.** On main an active membership is a member, an authenticated or pending one a user, and nobody is a guest, so the
- guest rules in this page have no account to apply to until then. An answer needs an active account, read at answer time.
-
-## 8. States
-
-- **Empty:** "Nothing is waiting on you from Kiko", when it last synced, a link to Settled. Never blank.
-- **No answers:** "No answers yet", with the question's age.
-- **Stale projection:** past two heartbeats (provisionally 30 minutes) the header reads "may be out of date"; answering stays possible. A projection that
- never arrived says "Kiko's questions have not been published yet", not "no questions".
-- **Long open:** past 14 days (provisional) shows its age; it is not demoted or hidden.
-- **Blocked:** shows the dependency chip with that question's status; answering stays allowed.
-- **Settled while answering:** the answer is kept for the Mind and the page says it arrived after the question settled.
-- **Signed out, expired, or not active:** answers are shown, the form asks to sign in or says why it cannot; nothing typed is lost.
-- **Send failed:** the text stays in the field with the reason and a retry.
-
-## 9. Build order
-
-1. The client's typed interface, mirroring the proposal's shapes and the projections in section 5, and **fixtures** for every state in section 8 plus the
- guest, erased and hidden rows. The page renders from fixtures; no network.
-2. The proposal's kinds and migration (Eureka: readers first, then the Persona organ), and the Bifrost account publisher, receiver and mouth delivery
- (Heimdall). The page switches from fixtures to the projection.
-
-## 10. Accessibility
-
-- Semantic structure: `main` with a heading; each question an `article` with its title as a heading; options a `fieldset`/`legend` radio group; the
- free-text field labelled, with a character counter announced politely. The phone fold is a button with `aria-expanded`.
-- No meaning by colour alone: status, recommendation, kind, hidden and close-grant are text.
-- Keyboard: everything reachable in a sensible order; after Send, focus goes to a confirmation naming the question and the answer.
-- New answers and status changes arrive in an `aria-live="polite"` region, never as a focus steal.
-- Targets at least 44 px; reduced motion respected; contrast per theme.
-- Names and answers are user text: `dir="auto"`, control and bidi characters stripped, long words wrap.
-
-## 11. Still open
-
-1. **Emergency withhold.** If the owning Mind is away and an answer shows something illegal or dangerous, may the host withhold the text at the receiver?
- Heimdall leans no: it is a second owner. Meta's fork.
-2. **How a Mind authenticates to answer** (kind `Mind`): Bifrost has no `Mind` role and the account publisher `gamecult.bifrost.account.v1` does not exist yet.
-3. **Erase is bounded.** Text a Mind has already quoted into her own documents cannot be redacted; absolute erase would mean the text never enters her turn.
-4. **`AccountId` grammar**, pinned to Bifrost's account id shape when that publisher lands.
-5. **Receiver claims.** The OIDC access token's claims for this endpoint (section 7a) are unread.
-6. **Reader ordering.** Whether an old Huginn reader skips or fails on a mind holding a kind it does not know is unverified (proposal section 6.4); it decides
- when the first Mind may list a question.
-
-## 12. The desk: the page as the Fork Desk's descendant
-
-Added 2026-11-10 by Void from Meta's brief and the original Fork Desk (`/opt/commons/handoff/fork-desk-original/`, Nibu's newest copy; working note `/opt/commons/handoff/ratatoskr-desk-spec-20261110.md`, section 11). The feedback page **is** the desk: one surface, not two. Design only.
-
-**Keep from the original.**
-- Questions stream as rows (not one at a time): title, body as context, options with the recommended one marked **in words**, the `depends` line, a free-text note carrying the person's words verbatim, and a "recorded as rulings" list of settled questions with their ruling id. A pick is optional; the note can answer alone.
-- A **booth Persona**: the owning Mind's pose beside the rows on wide screens, a small fixed corner image on phones, reacting by mood: no forks (neutral), all answered (triumph), none answered (thinking), partway (determined, "N to go"), a pick equal to the recommendation (happy), a different pick (surprised, "a line on why helps"), a cleared pick (note), a failed send (concerned), a new fork arriving (surprised). The rules are a pure function of the forks and the last event (`deskMood`), tested exactly. Poses come from the shared cast art; a Mind without art shows no booth rather than another's face.
-- Answers save as the person acts, and she can close the page and come back.
-
-**What changes.**
-- The row is the section 5 question projection. The page changes nothing about who owns a question, a ruling or a status (section 2).
-- Phones: each row's options and note fold behind its title (section 1); the entry point is a **"Desk · N open"** line on the Mind's group header in the navigator, hidden at zero. Chromeless: hairlines are allowed, panels, cards and pills are not.
-- **Answer rule and wire.** The answer rule (the body the client may send, `options_hash`, the counting order, retraction, the stored `desk_answer`) is owned by Heimdall's rule file `/opt/commons/handoff/fork-desk-answer-binding-20261110.md`; the wire is owned by CultLib #72. This section restates neither. The client's part: it sends only what the rule's body allows (never `answerer` or authority), recomputes `options_hash` from what it rendered and refuses to send on a mismatch with the projection's.
-- **A pick sends at once** (one tap, one record; the latest per account stands, section 5). **The note autosaves as a local draft** and is sent on blur or an explicit Send, never per keystroke. "Saved" says which: sent, or kept on this device.
-- **Clear pick is a retraction**, a revision of the answer under the retraction rule in Heimdall's rule file (section 1.3a there); the one exception to section 5's "at least one of choice or text" is that rule's, not this page's. Until the receiver implements it, Clear pick clears only an unsent draft.
-- "Self leans" and a provisional flag exist in the original; the question has no field for either, so the desk shows neither until one exists.
-
-**Order.** Section 9 step 1 stands: typed interface and fixtures first. The desk's first slice is read-only (note field disabled with a plain sentence that answering opens with sign-in), and answering waits on Bifrost sign-in reaching chat, the wire (CultLib #72) and the receiver.
diff --git a/harness/estate/check.cjs b/harness/estate/check.cjs
index e69f5b4a..656d532e 100644
--- a/harness/estate/check.cjs
+++ b/harness/estate/check.cjs
@@ -2,17 +2,12 @@
// non-zero when the page or the fake homeserver's log says otherwise.
const fs = require('fs');
const fails = [];
-let asserted = 0;
exports.expect = (label, ok, detail = '') => {
- asserted += 1;
console.log(`[ASSERT] ${ok ? 'PASS' : 'FAIL'} ${label}${ok ? '' : ` :: ${detail}`}`);
if (!ok) fails.push(label);
};
-/** Exit code for the drive: 4 when any assertion failed, 5 when none ran (a drive that asserts nothing proves nothing). */
-exports.done = () => {
- if (fails.length) return 4;
- return asserted === 0 ? 5 : 0;
-};
+/** Exit code for the drive: 4 when any assertion failed. */
+exports.done = () => (fails.length ? 4 : 0);
/** The fake homeserver's request log (HSLOG is shared with the server process). */
exports.hsLog = () => fs.readFileSync(process.env.HSLOG, 'utf8').split('\n');
/** Bodies of the account-data PUTs for m.direct, in order. */
diff --git a/harness/estate/check.test.ts b/harness/estate/check.test.ts
deleted file mode 100644
index 97566997..00000000
--- a/harness/estate/check.test.ts
+++ /dev/null
@@ -1,35 +0,0 @@
-// @vitest-environment node
-import { createRequire } from 'module';
-import { describe, expect, it, vi } from 'vitest';
-
-// A drive that asserts nothing proves nothing: its exit code must say so.
-const fresh = () => {
- const require = createRequire(import.meta.url);
- const path = require.resolve('./check.cjs');
- delete require.cache[path];
- return require('./check.cjs') as {
- expect: (label: string, ok: boolean, detail?: string) => void;
- done: () => number;
- };
-};
-
-describe('estate drive exit code', () => {
- it('is 5 when no assertion ran', () => {
- expect(fresh().done()).toBe(5);
- });
-
- it('is 0 when assertions ran and all held', () => {
- vi.spyOn(console, 'log').mockImplementation(() => undefined);
- const c = fresh();
- c.expect('holds', true);
- expect(c.done()).toBe(0);
- });
-
- it('is 4 when any assertion failed', () => {
- vi.spyOn(console, 'log').mockImplementation(() => undefined);
- const c = fresh();
- c.expect('holds', true);
- c.expect('breaks', false, 'detail');
- expect(c.done()).toBe(4);
- });
-});
diff --git a/harness/scene/README.md b/harness/scene/README.md
index 217e2241..ef735d2e 100644
--- a/harness/scene/README.md
+++ b/harness/scene/README.md
@@ -6,7 +6,6 @@ Chromium. Not shipped, not run by CI.
node bundle.cjs # esbuild bundle of entry.ts plus an index.html
node drive.cjs compile # compile and link each stage, JSON report
node drive.cjs shots # rest, mid pull-back and pulled-back screenshots
- node gradAxis.cjs # numeric check that noise gradients are (d/dx, d/dz-as-.y, ...): terrainNormal axis
node drive.cjs measure # GPU time per pass by timer query, two viewports, two levels
node drive.cjs variants # the same with source patches (no erosion, no tree, value-only fbm)
node drive.cjs trace # mean trace steps per pixel and pass ms at three camera poses, PREPASS=0,1 arms
@@ -20,44 +19,3 @@ directory whose ancestors hold no empty `package.json` (esbuild reads them).
Timings from SwiftShader are CPU time: use them for the split between passes and for before and
after of one change, never as a phone frame time.
-
-## Ridge live scene
-
-`ridgeLive.html` is one live scene (tier 'full', the sky plate and the cards on the compositor) filling the window, for a driver to turn and screenshot: `?h=214&sun=232:22&speed=6` (start heading, the sun's azimuth and elevation, degrees a second of rotation),
-`?sky=night&lines=1`. `window.live` offers `hold(h)`, `pose()`, `plate()`, `left()` (the plate's left edge on the page) and `plateCost()` (ms of main thread to paint one plate here); `window.longTasks` lists the tasks over 50 ms.
-A held heading's sun lands within a tenth of a pixel of the column the heading owner says, across re-centres of the plate.
-
-## Ridge look sheet
-
-Renders a baked place (`?place=`, the index default otherwise) lit for six sky states (dawn 2, morning 15, noon 55, golden 6, dusk -3, night -30 degrees of sun)
-by a set of looks (`RidgeLook`, `src/app/features/scene/ridge/lightCards.ts`, the one owner of look values), one 480x270 canvas per cell, drawn by the app's own still
-path (`createRidgeScene` at tier 'still' over a `createBackdrop` of the tiles round the heading), at the rest azimuth unless `?views=` says otherwise. The sky
-behind a cell is the app's own, without clouds. Not shipped.
-
- ...ridgeSheet.html?views=214:0:200,0:0:200,214:90:98.2&sky=2 # one column per view heading:phi:offset (degrees, degrees, metres) at one sky (an index of SKIES)
-
-`&sun=100:6` puts the sun of that sky at compass azimuth 100, 6 degrees up (the stars are those of the moment the sheet is opened): a sun at the heading's side shows where the turned sky puts it, `&sky=5&lines=1` is the night.
-
-A heading of 0 or 360 is across north; a phi other than 0 is the offset-only rotation mode (the camera circling the centre, the view direction staying); the offset is
-clamped to the place's range as the app does (phi 0: `camera.r_max_forward_m`, another phi: `camera.r_max_m`).
-
- npx vite --port 5199 # from the repo root; the app's vite config serves the page and public/
- http://localhost:5199/harness/scene/ridgeSheet.html # four presets x six skies
- ...ridgeSheet.html?preset=swiss # one preset (physical|swiss|poster|painterly)
- ...ridgeSheet.html?looks=%5B%7B%22label%22%3A%22no-ink%22%2C%22inkScale%22%3A0%7D%2C%7B%22label%22%3A%22hazy%22%2C%22hazeScale%22%3A8%7D%5D
- ...?w=640 # cell width
-
-`looks=` is a url-encoded or base64 JSON array of `{label, ...partial RidgeLook}` and replaces the preset rows (`inkKeep` and `reliefLight` merge by key).
-A cell costs one WebGL2 context and a card decode, so the full sheet takes tens of seconds (much longer in a background tab).
-
-Presets (`PRESETS` in `ridgeSheet.ts`; swiss and poster take every key not named from `PHYSICAL_LOOK`, the rest from `DEFAULT_LOOK`, the painterly cel look), chosen by reasoning, not by eye, for Self to tune:
-
-| preset | values |
-| --- | --- |
-| physical | PHYSICAL_LOOK (Lambert, no noise, sky haze, full ink) |
-| swiss | reliefLight {mix 0.7, azimuthDeg -45, elevationDeg 40}, contrastByDistance 0.9, hazeScale 6, hazeTint [0, 0.05, 0.25], nearWarm 0.5, inkScale 0.6 |
-| poster | reliefWeight 0.15, cardToneStep 0.25, cardGradient 0.5, inkKeep {edge 0.25, occlude 0.9, crease 1}, hazeScale 4 |
-| painterly | DEFAULT_LOOK: groundNoise 0.35, cloudShadows 0.5, nearWarm 0.6, hazeScale 2, inkScale 0.4, celBands 3, celSoftness 0.05, celAmbientAway 0.7 |
-| painterly-cel-2 / -3 / -4 | painterly with celBands 2 / 3 / 4 |
-
-Named moments (`ridgeSheet.html?named=1`): the six moments of the Sky menu (dawn, morning, noon, golden hour, dusk, night) at the baked place on the December and June solstices, drawn from `momentFor` as the app draws them (`SKY_MOMENTS` in `ridge/skyMoment.ts` is the table tuned by eye from this sheet). Night sets (`ridgeSheet.html`): `?moments=2026-11-24T22:00Z,2026-12-09T20:00Z` pins explicit UTC moments (the sun, moon and stars are those of the moment); `?night=1` renders the next new moon, first quarter and full moon from today (`&from=YYYY-MM-DD`) at four hours each (`&hours=18,21,0,4`, UTC) plus deep dusk of the full-moon evening; `&lines=1` draws the constellation lines (the Sky menu's hidden toggle). Use `&w=300` for the 13-column set. The night look's knobs: `NIGHT_LOOK` in `ridge/nightSky.ts` (star point spread, contrast exponents, moon size, earthshine, line opacity), `NIGHT_CEILING` and `SCOTOPIC` in `ridge/toneMap.ts`, the night `Budget` (key, targets, partial adaptation).
diff --git a/harness/scene/bundle.cjs b/harness/scene/bundle.cjs
index 9d3079cd..027a2006 100644
--- a/harness/scene/bundle.cjs
+++ b/harness/scene/bundle.cjs
@@ -1,12 +1,10 @@
// Bundles entry.ts with the scene's ?raw GLSL imports into $OUT/bundle.js plus an index.html.
-// usage: node bundle.cjs [demo|ridge] (esbuild from NODE_PATH). `demo` bundles the ray-march
-// standalone page; `ridge` the ridge scene's page (open it with ?probe=1 for the cadence readout).
+// usage: node bundle.cjs [demo] (esbuild from NODE_PATH). `demo` bundles the standalone page.
const esbuild = require('esbuild');
const fs = require('fs');
const path = require('path');
const out = process.argv[2];
const demo = process.argv[3] === 'demo';
-const ridge = process.argv[3] === 'ridge';
fs.mkdirSync(out, { recursive: true });
const rawPlugin = {
name: 'raw',
@@ -23,22 +21,14 @@ const rawPlugin = {
};
esbuild
.build({
- entryPoints: [path.join(__dirname, ridge ? 'ridgeDemo.ts' : demo ? 'demo.ts' : 'entry.ts')],
+ entryPoints: [path.join(__dirname, demo ? 'demo.ts' : 'entry.ts')],
bundle: true,
outfile: path.join(out, 'bundle.js'),
plugins: [rawPlugin],
format: 'iife',
target: 'es2020',
- define: { 'import.meta.env.BASE_URL': '"/"' },
})
.then(() => {
- if (ridge) {
- fs.writeFileSync(
- path.join(out, 'index.html'),
- 'Ratatoskr ridge scene
'
- );
- return;
- }
fs.writeFileSync(
path.join(out, 'index.html'),
'Ratatoskr scene: trace prepass ' +
diff --git a/harness/scene/gradAxis.cjs b/harness/scene/gradAxis.cjs
deleted file mode 100644
index 48b96fa6..00000000
--- a/harness/scene/gradAxis.cjs
+++ /dev/null
@@ -1,30 +0,0 @@
-// Probe: the gradient cultmath_fbm_grad / cultmath_phacelle return for vec3(xz * f, c) is (d/dx, d/dz, d/dc, value),
-// so the world-z slope is .y, not .z. Compares analytic gradients with central differences at one point.
-// Usage (playwright + swiftshader): node harness/scene/gradAxis.cjs /src/app/features/scene/shaders
-const { chromium } = require('playwright'); const fs=require('fs');
-const S=process.argv[2];
-const cm=fs.readFileSync(S+'/CultMath.glsl','utf8'), ph=fs.readFileSync(S+'/CultMath.Phacelle.glsl','utf8');
-const fs_=`#version 300 es
-precision highp float; precision highp int;
-${cm}
-${ph}
-out vec4 o;
-const float F=1.0/520.0;
-float fb(vec2 p){return cultmath_fbm_grad(vec3(p*F,0.0),4,2.0,0.45).w;}
-float pc(vec2 p){return cultmath_phacelle(vec3(p/40.0,0.5),vec3(1.5,0.5,0.0),0.0,0.5).cos.w;}
-void main(){
- vec2 p=vec2(1234.5,-777.7); float e=0.5;
- int k=int(gl_FragCoord.x);
- if(k==0){vec4 g=cultmath_fbm_grad(vec3(p*F,0.0),4,2.0,0.45); o=vec4(g.xyz*F,0.0);} // analytic per metre: x,y,z
- else if(k==1){o=vec4((fb(p+vec2(e,0))-fb(p-vec2(e,0)))/(2.0*e),(fb(p+vec2(0,e))-fb(p-vec2(0,e)))/(2.0*e),0,0);}
- else if(k==2){vec4 g=cultmath_phacelle(vec3(p/40.0,0.5),vec3(1.5,0.5,0.0),0.0,0.5).cos; o=vec4(g.xyz/40.0,0.0);}
- else {o=vec4((pc(p+vec2(e,0))-pc(p-vec2(e,0)))/(2.0*e),(pc(p+vec2(0,e))-pc(p-vec2(0,e)))/(2.0*e),0,0);}
-}`;
-(async()=>{const b=await chromium.launch({args:['--use-gl=angle','--use-angle=swiftshader','--enable-unsafe-swiftshader']});
-const pg=await b.newPage();
-const r=await pg.evaluate(([src])=>{const c=document.createElement('canvas');const g=c.getContext('webgl2');g.getExtension('EXT_color_buffer_float');
-const mk=(t,s)=>{const x=g.createShader(t);g.shaderSource(x,s);g.compileShader(x);if(!g.getShaderParameter(x,g.COMPILE_STATUS))throw g.getShaderInfoLog(x);return x};
-const p=g.createProgram();g.attachShader(p,mk(g.VERTEX_SHADER,'#version 300 es\nvoid main(){vec2 p=vec2(float((gl_VertexID<<1)&2),float(gl_VertexID&2));gl_Position=vec4(p*2.0-1.0,0.0,1.0);}'));g.attachShader(p,mk(g.FRAGMENT_SHADER,src));g.linkProgram(p);g.useProgram(p);
-const t=g.createTexture();g.bindTexture(g.TEXTURE_2D,t);g.texImage2D(g.TEXTURE_2D,0,g.RGBA32F,4,1,0,g.RGBA,g.FLOAT,null);const f=g.createFramebuffer();g.bindFramebuffer(g.FRAMEBUFFER,f);g.framebufferTexture2D(g.FRAMEBUFFER,g.COLOR_ATTACHMENT0,g.TEXTURE_2D,t,0);g.viewport(0,0,4,1);g.drawArrays(g.TRIANGLES,0,3);
-const o=new Float32Array(16);g.readPixels(0,0,4,1,g.RGBA,g.FLOAT,o);return Array.from(o)},[fs_]).catch(e=>'ERR '+String(e).slice(0,500));
-console.log(Array.isArray(r)?['fbm analytic x,y,z','fbm FD dx,dz','phac analytic','phac FD'].map((n,i)=>n+': '+r.slice(i*4,i*4+3).map(v=>v.toExponential(3)).join(' ')).join('\n'):r);await b.close()})();
diff --git a/harness/scene/ridgeDemo.ts b/harness/scene/ridgeDemo.ts
deleted file mode 100644
index 17e67774..00000000
--- a/harness/scene/ridgeDemo.ts
+++ /dev/null
@@ -1,26 +0,0 @@
-// Standalone page for the ridge scene: full window, no host app. `?tier=still|low|full` picks the
-// tier, `?probe=1` shows the rAF median/p95 readout. The long tasks the page saw are on `window.longTasks`
-// for a driver to read. Not shipped.
-import { startBackgroundScene } from '../../src/app/features/scene';
-import type { SceneTier } from '../../src/app/features/scene';
-
-const q = new URLSearchParams(location.search);
-const tier = (q.get('tier') ?? 'full') as SceneTier;
-const canvas = document.getElementById('c') as HTMLCanvasElement;
-const w = window as unknown as { scene: unknown; longTasks: number[]; firstViewMs: number };
-w.longTasks = [];
-try {
- new PerformanceObserver((l) => l.getEntries().forEach((e) => w.longTasks.push(e.duration))).observe({
- entryTypes: ['longtask'],
- });
-} catch {
- // No long-task entries in this browser.
-}
-const t0 = performance.now();
-startBackgroundScene({ tier }, {}, {
- canvas,
-} as never).then((scene) => {
- w.firstViewMs = performance.now() - t0;
- w.scene = scene;
- document.title = scene ? 'ridge: running' : 'ridge: unavailable (CSS ground)';
-});
diff --git a/harness/scene/ridgeLive.html b/harness/scene/ridgeLive.html
deleted file mode 100644
index fba96a06..00000000
--- a/harness/scene/ridgeLive.html
+++ /dev/null
@@ -1,8 +0,0 @@
-
-
-
-Ridge live scene
-
-
-
-
diff --git a/harness/scene/ridgeLive.ts b/harness/scene/ridgeLive.ts
deleted file mode 100644
index fcab4092..00000000
--- a/harness/scene/ridgeLive.ts
+++ /dev/null
@@ -1,71 +0,0 @@
-// One live ridge scene (tier 'full': the sky plate and the cards on the compositor) filling the window, for a driver to turn and screenshot. Not shipped.
-// `?h=214` the heading the scene starts at; `?sun=232:22` the sun's compass azimuth and elevation (degrees); `?sky=night` the stars of now (sun below the horizon); `?lines=1` the constellation lines.
-// `?speed=6` degrees a second the view turns (rotation mode 'both'); 0 holds it. The page offers `window.live`: `hold(h)` turns the view by hand, `pose()` is the heading owner's pose now,
-// `plate()` the sky plate's element and `left()` its left edge and width on the page.
-import { parseManifest } from '../../src/app/features/scene/ridge/manifest';
-import { makePhysicalSky } from '../../src/app/features/scene/ridge/physicalSky';
-import { createBackdrop } from '../../src/app/features/scene/ridge/Backdrop';
-import { createRidgeScene } from '../../src/app/features/scene/ridge/Ridge';
-import { anchor, hold, poseAt } from '../../src/app/features/scene/ridge/heading';
-import { setCamera } from '../../src/app/features/scene/cameraState';
-import { HFOV_MAX_DEG, windowFor } from '../../src/app/features/scene/ridge/view';
-import { paintSky } from '../../src/app/features/scene/ridge/physicalSky';
-import { nightBodies } from '../../src/app/features/scene/ridge/nightBodies';
-import { plateCamera, plateSize, SLACK_MIN_DEG } from '../../src/app/features/scene/ridge/skyTurn';
-
-const q = new URLSearchParams(location.search);
-/** The main-thread tasks over 50 ms the page saw, ms: `window.longTasks`. */
-const longTasks: number[] = [];
-(window as unknown as { longTasks: number[] }).longTasks = longTasks;
-try {
- new PerformanceObserver((l) => l.getEntries().forEach((e) => longTasks.push(e.duration))).observe({ entryTypes: ['longtask'] });
-} catch {
- // No long-task entries in this browser.
-}
-
-async function main() {
- const index = await (await fetch('/public/ridge/index.json')).json();
- const dir = `/public/ridge/${index.places[q.get('place') ?? index.default]}/`;
- const manifest = parseManifest(await (await fetch(`${dir}manifest.json`)).json(), dir);
- const { view } = manifest;
- const [az, el] = (q.get('sun') ?? '232:22').split(':').map(Number);
- const time = new Date();
- const sun = q.get('sky') === 'night' ? { azimuth: 0, elevation: -30, time } : { azimuth: az, elevation: el, time };
- const physical = makePhysicalSky(sun, 0, view);
- const h0 = Number(q.get('h') ?? view.lookAzDeg);
- anchor(view.place.id, h0, performance.now());
- setCamera({ mode: 'both', speedDegPerS: Number(q.get('speed') ?? 0), offsetM: 200 });
- const backdrop = createBackdrop(manifest, physical);
- await backdrop.ensure({ fromDeg: h0 - HFOV_MAX_DEG, toDeg: h0 + HFOV_MAX_DEG });
- const canvas = document.getElementById('c') as HTMLCanvasElement;
- const scene = createRidgeScene({ canvas, tier: 'full', sky: { ...physical.stops, physical }, backdrop, lines: q.get('lines') === '1' });
- const host = document.getElementById('host') as HTMLElement;
- // The plate is the host's div whose first child is a canvas (the rig's first child is a div, the rain's has none).
- const plate = () => [...host.children].find((c) => c.tagName === 'DIV' && c.firstElementChild?.tagName === 'CANVAS');
- (window as unknown as { live: unknown }).live = {
- scene,
- hold: (h: number) => hold(h, performance.now()),
- pose: () => poseAt(performance.now()),
- plate,
- /** Mean ms of the main-thread part of painting one plate here (the dome, its pixels and the bodies, not the canvas upscale), over `n` runs. */
- plateCost: (n = 10) => {
- const w = innerWidth;
- const h = innerHeight;
- const win = windowFor(view, w, h);
- const { cssW } = plateSize(win, w, h, devicePixelRatio >= 2 ? 2 : 1, SLACK_MIN_DEG);
- const t0 = performance.now();
- for (let i = 0; i < n; i += 1) nightBodies(physical, paintSky(physical, cssW, h, plateCamera(win, 214 + i, SLACK_MIN_DEG)), true);
- return (performance.now() - t0) / n;
- },
- left: () => {
- const r = plate()?.getBoundingClientRect();
- return r && { left: r.left, width: r.width };
- },
- };
- document.title = 'ridge live: done';
-}
-
-main().catch((e) => {
- console.error(e);
- document.title = `ridge live: failed ${e}`;
-});
diff --git a/harness/scene/ridgeSheet.html b/harness/scene/ridgeSheet.html
deleted file mode 100644
index 9a45924b..00000000
--- a/harness/scene/ridgeSheet.html
+++ /dev/null
@@ -1,8 +0,0 @@
-
-
-
-Ridge look sheet
-
-
-
-
diff --git a/harness/scene/ridgeSheet.ts b/harness/scene/ridgeSheet.ts
deleted file mode 100644
index 440a3a57..00000000
--- a/harness/scene/ridgeSheet.ts
+++ /dev/null
@@ -1,279 +0,0 @@
-// Look sheet for the lit ridge cards: a baked place lit for a grid of sky states (or pinned moments) x looks, each cell a small canvas drawn by the app's own still path
-// (`createRidgeScene` at tier 'still', the tiles of the arc round the heading, each card at `cardPose`). Not shipped.
-// `?views=214:0:200,0:0:200,100:0:200,214:90:98.2` one column per view `heading:phi:offset` (degrees, degrees, metres) at one sky (`?sky=2`, an index of SKIES, noon by default); a heading
-// of 360 or 0 is across north. `&sun=100:6` puts the sun of that sky at azimuth 100, 6 degrees up (the stars are always those of the moment the sheet is opened). The offset is clamped to the place's range as the app does (phi 0: the bake's forward bound, any other phi: the worst-case bound), and a phi other than 0 is the offset-only rotation mode, the camera circling the centre.
-// `?place=vienna` the baked place (index.json's default if absent)
-// `?preset=all|physical|swiss|poster|painterly|painterly-cel-2|painterly-cel-3|painterly-cel-4` (default all: one row each; painterly is DEFAULT_LOOK); `?looks=` replaces the rows with
-// the given `{label, ...partial RidgeLook}` entries (inkKeep and reliefLight merge by key). `?w=480` sets the cell width, 16:9 unless `?h=` gives the height (`?w=375&h=812` is a phone).
-// The sky behind a cell is the app's own: `makePhysicalSky` + `paintSky` upscaled smoothly, with the real stars and the moon (`nightBodies`),
-// without the sun disc or clouds. Columns are the SKIES below (a sun elevation each, the stars and moon of the moment the sheet was opened), or:
-// `?moments=2026-11-24T22:00Z,2026-12-09T20:00Z` explicit UTC moments: the sun, moon and stars are those of the moment, the state follows the sun's elevation
-// `?night=1` the night set: the next new moon, first quarter and full moon from today (or from `?from=YYYY-MM-DD`), each at four night hours
-// (`?hours=18,21,0,4` UTC), plus deep dusk (sun at -10 degrees) of the evening of the full moon
-// `?labels=1` DEBUG: label each constellation chain in frame with its d3-celestial abbreviation (fetched from the source repository at run time; not shipped)
-// `?lines=1` constellation lines over the stars, as the Sky menu's hidden toggle does (night cells only)
-import { DEFAULT_LOOK, PHYSICAL_LOOK, createLighter } from '../../src/app/features/scene/ridge/lightCards';
-import type { RidgeLook } from '../../src/app/features/scene/ridge/lightCards';
-import { parseIndex, parseManifest } from '../../src/app/features/scene/ridge/manifest';
-import { makePhysicalSky } from '../../src/app/features/scene/ridge/physicalSky';
-import { HFOV_MAX_DEG, windowFor } from '../../src/app/features/scene/ridge/view';
-import { onScreen } from '../../src/app/features/scene/ridge/nightBodies';
-import { createBackdrop } from '../../src/app/features/scene/ridge/Backdrop';
-import { createRidgeScene } from '../../src/app/features/scene/ridge/Ridge';
-import { anchor, hold } from '../../src/app/features/scene/ridge/heading';
-import { setCamera } from '../../src/app/features/scene/cameraState';
-import { sunAt } from '../../src/app/features/scene/ridge/sunAt';
-import { linesAt } from '../../src/app/features/scene/ridge/starCatalogue';
-import { moonPhase } from '../../src/sky/moon.js';
-import { MOMENT_IDS, momentFor } from '../../src/app/features/scene/ridge/skyMoment';
-
-
-type Override = Partial> & {
- label: string;
- /** The look the unnamed keys come from (DEFAULT_LOOK, the painterly cel look, if absent). */
- base?: 'physical';
- inkKeep?: Partial;
- reliefLight?: Partial;
-};
-
-interface Column {
- label: string;
- elevation?: number;
- azimuth?: number;
- /** A moment: the sun is the real one of it. */
- time?: Date;
- /** Where the view faces and the camera stands: heading and phi in degrees, offset in metres. Absent: the rest azimuth, phi 0, the app's default offset. */
- view?: { h: number; phi: number; r: number };
-}
-
-/** Sun elevation and compass azimuth of each column; the cards look at 214 +- 36. The band of the elevation (`skyBand`) picks the display budget. */
-const SKIES: Column[] = [
- { label: 'dawn 2 deg', elevation: 2, azimuth: 100 },
- { label: 'morning 15 deg', elevation: 15, azimuth: 135 },
- { label: 'noon 55 deg', elevation: 55, azimuth: 190 },
- { label: 'golden 6 deg', elevation: 6, azimuth: 244 },
- { label: 'dusk -3 deg', elevation: -3, azimuth: 262 },
- { label: 'night -30 deg', elevation: -30, azimuth: 0 },
-];
-
-/** The art directions, chosen by reasoning, not by eye: Self tunes them (values listed in harness/scene/README.md). */
-const PRESETS: Record = {
- physical: { label: 'physical', base: 'physical' },
- swiss: {
- label: 'swiss',
- base: 'physical',
- reliefLight: { mix: 0.7, azimuthDeg: -45, elevationDeg: 40 },
- contrastByDistance: 0.9,
- hazeScale: 6,
- hazeTint: [0, 0.05, 0.25],
- nearWarm: 0.5,
- inkScale: 0.6,
- },
- poster: {
- label: 'poster',
- base: 'physical',
- reliefWeight: 0.15,
- cardToneStep: 0.25,
- cardGradient: 0.5,
- inkKeep: { edge: 0.25, occlude: 0.9, crease: 1 },
- hazeScale: 4,
- },
- painterly: { label: 'painterly (default, cel 3)' },
- 'painterly-cel-2': { label: 'painterly-cel-2', celBands: 2 },
- 'painterly-cel-3': { label: 'painterly-cel-3', celBands: 3 },
- 'painterly-cel-4': { label: 'painterly-cel-4', celBands: 4 },
-};
-
-const merge = (o: Override): { label: string; look: RidgeLook } => {
- const { label, base: baseName, inkKeep, reliefLight, ...rest } = o;
- const base = baseName === 'physical' ? PHYSICAL_LOOK : DEFAULT_LOOK;
- return {
- label,
- look: {
- ...base,
- ...rest,
- inkKeep: { ...base.inkKeep, ...inkKeep },
- reliefLight: { ...base.reliefLight, ...reliefLight },
- },
- };
-};
-
-function parseLooks(raw: string): Override[] {
- const tries = [() => decodeURIComponent(raw), () => atob(raw.replace(/-/g, '+').replace(/_/g, '/'))];
- for (const t of tries) {
- try {
- const v = JSON.parse(t());
- if (Array.isArray(v)) return v.map((e, i) => ({ label: `look ${i + 1}`, ...e }));
- } catch {
- // try the next encoding
- }
- }
- throw new Error('looks= is neither a url-encoded nor a base64 JSON array');
-}
-
-const q = new URLSearchParams(location.search);
-
-const HOUR = 3_600_000;
-/** The first moment at or after `from` the moon's elongation passes `target` degrees (new 0, first quarter 90, full 180). */
-function nextPhase(from: Date, target: number): Date {
- const err = (t: number) => ((moonPhase(t).elongationDeg - target + 540) % 360) - 180;
- let t = from.getTime();
- while (!(err(t) < 0 && err(t + HOUR) >= 0)) t += HOUR;
- let a = t;
- let b = t + HOUR;
- for (let i = 0; i < 20; i += 1) {
- const m = (a + b) / 2;
- if (err(m) < 0) a = m;
- else b = m;
- }
- return new Date(b);
-}
-
-/** The first evening moment (UTC hour steps of 10 minutes from `day`) the sun is at `deg` below the horizon, going down. */
-function sunDownTo(place: Parameters[0], day: Date, deg: number): Date {
- let t = Date.UTC(day.getUTCFullYear(), day.getUTCMonth(), day.getUTCDate(), 12);
- while (sunAt(place, new Date(t)).elevation > -deg) t += 10 * 60_000;
- return new Date(t);
-}
-
-const fmt = (d: Date) => d.toISOString().slice(0, 16).replace('T', ' ') + 'Z';
-
-function momentsFrom(params: URLSearchParams, place: Parameters[0]): Column[] | undefined {
- const list = params.get('moments');
- if (list)
- return list.split(',').map((iso) => {
- const time = new Date(iso.trim());
- if (Number.isNaN(time.getTime())) throw new Error(`moments=: ${iso} is not a date`);
- return { label: fmt(time), time };
- });
- // `named=1`: the six named moments of the sky menu (`momentFor`, as the app draws them) on both solstices at the place: the look sheet the elevation table is tuned from.
- if (params.get('named'))
- return ['2026-12-21', '2026-06-21'].flatMap((day) =>
- MOMENT_IDS.map((id) => {
- const time = momentFor({ kind: 'named', id }, place, new Date(`${day}T12:00:00Z`));
- return { label: `${id} ${day.slice(5)} ${fmt(time)}`, time };
- })
- );
- if (!params.get('night')) return undefined;
- const from = params.get('from') ? new Date(`${params.get('from')}T00:00:00Z`) : new Date();
- const hours = (params.get('hours') ?? '18,21,0,4').split(',').map(Number);
- const cols: Column[] = [];
- const phases: [string, number][] = [['new', 0], ['first quarter', 90], ['full', 180]];
- phases.forEach(([name, deg]) => {
- const peak = nextPhase(from, deg);
- const day = Date.UTC(peak.getUTCFullYear(), peak.getUTCMonth(), peak.getUTCDate());
- hours.forEach((h) => {
- // Hours before 12 belong to the night that ends the day of the phase, so the hours run on from the evening.
- const time = new Date(day + (h < 12 ? 24 + h : h) * HOUR);
- cols.push({ label: `${name} ${fmt(time)}`, time });
- });
- if (deg === 180) cols.push({ label: `deep dusk, full moon ${fmt(sunDownTo(place, peak, 10))}`, time: sunDownTo(place, peak, 10) });
- });
- return cols;
-}
-/** `?views=h:phi:r,...`: one column per view, all at the sky `?sky=` (default noon), whose sun `?sun=az:el` may put elsewhere (compass degrees, degrees above the horizon). */
-function viewsFrom(params: URLSearchParams): Column[] | undefined {
- const list = params.get('views');
- if (!list) return undefined;
- const [az, el] = (params.get('sun') ?? '').split(':').map(Number);
- const sky = { ...SKIES[Number(params.get('sky') ?? 2)], ...(Number.isFinite(az) && Number.isFinite(el) ? { azimuth: az, elevation: el } : {}) };
- return list.split(',').map((v) => {
- const [h, phi, r] = v.split(':').map(Number);
- return { ...sky, label: `h ${h} phi ${phi} r ${r}`, view: { h, phi, r } };
- });
-}
-const preset = q.get('preset');
-const pinned = q.get('moments') || q.get('night');
-const rows = (q.get('looks')
- ? parseLooks(q.get('looks') as string)
- : preset && preset !== 'all'
- ? [PRESETS[preset] ?? PRESETS.physical]
- : pinned
- ? [PRESETS.painterly] // a night set is read in the default look unless a preset or looks say otherwise
- : Object.values(PRESETS)
-).map(merge);
-const withLines = q.get('lines') === '1';
-const LINES_JSON = 'https://raw.githubusercontent.com/ofrohn/d3-celestial/master/data/constellations.lines.json';
-/** Debug: the constellation id of each packed chain, in the generator's order (feature by feature, chain by chain). */
-async function chainIds(): Promise {
- const gj = await (await fetch(LINES_JSON)).json();
- return gj.features.flatMap((f: { id: string; geometry: { coordinates: unknown[] } }) => f.geometry.coordinates.map(() => f.id));
-}
-const W = Number(q.get('w') ?? 480);
-const H = q.get('h') ? Number(q.get('h')) : Math.round((W * 9) / 16);
-const root = document.getElementById('sheet') as HTMLElement;
-
-async function main() {
- const index = parseIndex(await (await fetch('/public/ridge/index.json')).json());
- const DIR = `/public/ridge/${index.places[q.get('place') ?? index.default] ?? index.places[index.default]}/`;
- const manifest = parseManifest(await (await fetch(`${DIR}manifest.json`)).json(), DIR);
- const { view } = manifest;
- const win = windowFor(view, W, H);
- const now = new Date();
- const columns = viewsFrom(q) ?? momentsFrom(q, view.place) ?? SKIES;
- const ids = q.get('labels') === '1' ? await chainIds() : undefined;
-
- const table = document.createElement('table');
- table.style.borderSpacing = '4px';
- root.append(table);
- const head = table.insertRow();
- head.insertCell();
- columns.forEach((c) => (head.insertCell().textContent = c.label));
- const tr = rows.map((r) => {
- const row = table.insertRow();
- row.insertCell().textContent = r.label;
- return row;
- });
-
- for (const col of columns) {
- const time = col.time ?? now;
- const sun =
- col.time !== undefined
- ? sunAt(view.place, col.time)
- : { elevation: col.elevation as number, azimuth: col.azimuth as number, time };
- const physical = makePhysicalSky(sun, 0, view);
- const sky = { ...physical.stops, physical };
- const v = col.view ?? { h: view.lookAzDeg, phi: 0, r: 200 };
-
- for (let r = 0; r < rows.length; r += 1) {
- // A host as the page has one: a positioned box of the cell's size holding the canvas the scene paints.
- const host = document.createElement('div');
- Object.assign(host.style, { position: 'relative', width: `${W}px`, height: `${H}px`, overflow: 'hidden' });
- const cell = document.createElement('canvas');
- Object.assign(cell.style, { position: 'absolute', left: '0', top: '0', width: '100%', height: '100%' });
- host.append(cell);
- tr[r].insertCell().append(host);
-
- // The heading owner as the app leaves it: this view's heading, the camera on its circle at phi (offset-only rotation), the offset the viewer chose.
- const t0 = performance.now() - 3_600_000;
- anchor(`sheet-${manifest.bakeId}-${columns.indexOf(col)}-${r}`, v.h, t0); // a key of its own: every cell starts from phi 0
- setCamera({ mode: 'offset', speedDegPerS: 1, offsetM: v.r }, t0); // the offset-only rotation mode for phi seconds at 1 degree per second ...
- hold(v.h, t0 + v.phi * 1000); // ... then the view is held at h: the mode is still, the camera stays at phi (phi 0 is the camera on its heading)
-
- const backdrop = createBackdrop(manifest, physical, { lighter: (m, s) => createLighter(m, s, rows[r].look) });
- await backdrop.ensure({ fromDeg: v.h - HFOV_MAX_DEG, toDeg: v.h + HFOV_MAX_DEG });
- const scene = createRidgeScene({ canvas: cell, tier: 'still', sky, backdrop, lines: withLines });
- scene?.dispose();
-
- if (ids) {
- // Debug labels: each chain's id at the mean of its vertices that lie in the frame.
- const ctx = cell.getContext('2d') as CanvasRenderingContext2D;
- ctx.font = '11px monospace';
- ctx.fillStyle = '#ffd24a';
- linesAt(physical.sun.time, view.place.lat, view.place.lon).forEach((chain, i) => {
- const pts = chain.map((p) => onScreen(win.camera, p.azimuth, p.elevation)).filter((a) => a.x >= 0 && a.x <= 1 && a.y >= 0 && a.y <= 1);
- if (!pts.length) return;
- const mx = pts.reduce((a, p) => a + p.x, 0) / pts.length;
- const my = pts.reduce((a, p) => a + p.y, 0) / pts.length;
- ctx.fillText(`${ids[i]} ${pts.length}/${chain.length}`, mx * W, my * H);
- });
- }
- }
- }
- document.title = 'ridge look sheet: done';
-}
-
-main().catch((e) => {
- console.error(e);
- root.textContent = `ridge look sheet failed: ${e}`;
-});
diff --git a/index.html b/index.html
index 2585704c..7242f309 100644
--- a/index.html
+++ b/index.html
@@ -19,11 +19,11 @@
property="og:description"
content="A Matrix client where you can enjoy the conversation using simple, elegant and secure interface protected by e2ee with the power of open source."
/>
-
+
-
+
diff --git a/package-lock.json b/package-lock.json
index 1915ec32..dc774000 100644
--- a/package-lock.json
+++ b/package-lock.json
@@ -1,18 +1,17 @@
{
- "name": "ratatoskr",
+ "name": "cinny",
"version": "4.12.8",
"lockfileVersion": 3,
"requires": true,
"packages": {
"": {
- "name": "ratatoskr",
+ "name": "cinny",
"version": "4.12.8",
"license": "AGPL-3.0-only",
"dependencies": {
"@atlaskit/pragmatic-drag-and-drop": "1.1.6",
"@atlaskit/pragmatic-drag-and-drop-auto-scroll": "1.3.0",
"@atlaskit/pragmatic-drag-and-drop-hitbox": "1.0.3",
- "@fontsource-variable/nunito": "5.3.0",
"@fontsource/ibm-plex-mono": "5.2.5",
"@fontsource/inter": "4.5.14",
"@fontsource/montserrat": "5.2.5",
@@ -86,7 +85,6 @@
"@types/ua-parser-js": "0.7.36",
"@typescript-eslint/eslint-plugin": "5.46.1",
"@typescript-eslint/parser": "5.46.1",
- "@vanilla-extract/integration": "6.5.0",
"@vitejs/plugin-react": "4.2.0",
"buffer": "6.0.3",
"cz-conventional-changelog": "3.3.0",
@@ -2194,15 +2192,6 @@
"url": "https://github.com/sponsors/sindresorhus"
}
},
- "node_modules/@fontsource-variable/nunito": {
- "version": "5.3.0",
- "resolved": "https://registry.npmjs.org/@fontsource-variable/nunito/-/nunito-5.3.0.tgz",
- "integrity": "sha512-tw0ch7evIDSwoeUy+0XzocYHfbRWLeCRPJy22KgbrLjDLAbNw/fErBiil10Ssrs3Sjr55zaZrr36a975j8cBkQ==",
- "license": "OFL-1.1",
- "funding": {
- "url": "https://github.com/sponsors/ayuhito"
- }
- },
"node_modules/@fontsource/ibm-plex-mono": {
"version": "5.2.5",
"resolved": "https://registry.npmjs.org/@fontsource/ibm-plex-mono/-/ibm-plex-mono-5.2.5.tgz",
@@ -5096,7 +5085,6 @@
"version": "6.5.0",
"resolved": "https://registry.npmjs.org/@vanilla-extract/integration/-/integration-6.5.0.tgz",
"integrity": "sha512-E2YcfO8vA+vs+ua+gpvy1HRqvgWbI+MTlUpxA8FvatOvybuNcWAY0CKwQ/Gpj7rswYKtC6C7+xw33emM6/ImdQ==",
- "license": "MIT",
"dependencies": {
"@babel/core": "^7.20.7",
"@babel/plugin-syntax-typescript": "^7.20.0",
diff --git a/package.json b/package.json
index 69f589c6..298fbf36 100644
--- a/package.json
+++ b/package.json
@@ -1,5 +1,5 @@
{
- "name": "ratatoskr",
+ "name": "cinny",
"version": "4.12.8",
"description": "Yet another matrix client",
"main": "index.js",
@@ -10,7 +10,6 @@
"scripts": {
"start": "vite",
"build": "vite build",
- "build:preview": "vite build && node scripts/preview-config.js low",
"preview": "vite preview",
"lint": "npm run check:eslint && npm run check:prettier",
"check:eslint": "eslint src/*",
@@ -20,9 +19,7 @@
"prepare": "husky install",
"commit": "git-cz",
"bump": "node scripts/update-version.js",
- "bake:sky": "node scripts/bake-sky.mjs && prettier --write src/sky/baked.ts",
- "test": "vitest run",
- "sync:poses": "node scripts/sync-poses.mjs"
+ "test": "vitest run"
},
"lint-staged": {
"*.{ts,tsx,js,jsx}": "eslint",
@@ -40,11 +37,7 @@
"@atlaskit/pragmatic-drag-and-drop": "1.1.6",
"@atlaskit/pragmatic-drag-and-drop-auto-scroll": "1.3.0",
"@atlaskit/pragmatic-drag-and-drop-hitbox": "1.0.3",
- "@fontsource-variable/nunito": "5.3.0",
- "@fontsource/ibm-plex-mono": "5.2.5",
"@fontsource/inter": "4.5.14",
- "@fontsource/montserrat": "5.2.5",
- "@fontsource/ubuntu": "5.2.5",
"@tanstack/react-query": "5.24.1",
"@tanstack/react-query-devtools": "5.24.1",
"@tanstack/react-virtual": "3.2.0",
@@ -95,7 +88,10 @@
"slate-dom": "0.123.0",
"slate-history": "0.113.1",
"slate-react": "0.123.0",
- "ua-parser-js": "1.0.35"
+ "ua-parser-js": "1.0.35",
+ "@fontsource/ubuntu": "5.2.5",
+ "@fontsource/montserrat": "5.2.5",
+ "@fontsource/ibm-plex-mono": "5.2.5"
},
"devDependencies": {
"@element-hq/element-call-embedded": "0.20.1",
@@ -114,7 +110,6 @@
"@types/ua-parser-js": "0.7.36",
"@typescript-eslint/eslint-plugin": "5.46.1",
"@typescript-eslint/parser": "5.46.1",
- "@vanilla-extract/integration": "6.5.0",
"@vitejs/plugin-react": "4.2.0",
"buffer": "6.0.3",
"cz-conventional-changelog": "3.3.0",
diff --git a/preview-demo/poses/README.md b/preview-demo/poses/README.md
deleted file mode 100644
index 2142a4c2..00000000
--- a/preview-demo/poses/README.md
+++ /dev/null
@@ -1,13 +0,0 @@
-# Demo pose thumbnails
-
-These 36 PNGs (eureka, void and nibu, 12 each; about 1.8 MB, up to 480 px wide, palette-quantised) are downscaled copies of GameCult's own
-Persona art from `/opt/commons/cast-art/poses`. That directory carries no provenance or licence note:
-the image model that made the art and the terms it was made under are not recorded.
-
-They exist only so the dev preview's pretend homeserver (`src/preview-demo/`) can show pose portraits.
-The dev workflow copies them into `dist/public/poses`; real builds sync the full art with
-`npm run sync:poses` and do not use this folder.
-
-Strip them if their terms turn out not to allow this: delete this folder and the `Add the demo pose
-art` step in `.github/workflows/rat-dev-preview.yml`. Pose portraits in the demo then show broken
-images; nothing else depends on them.
diff --git a/preview-demo/poses/eureka/amused.png b/preview-demo/poses/eureka/amused.png
deleted file mode 100644
index eff70ffe..00000000
Binary files a/preview-demo/poses/eureka/amused.png and /dev/null differ
diff --git a/preview-demo/poses/eureka/annoyed.png b/preview-demo/poses/eureka/annoyed.png
deleted file mode 100644
index 312a66c8..00000000
Binary files a/preview-demo/poses/eureka/annoyed.png and /dev/null differ
diff --git a/preview-demo/poses/eureka/concerned.png b/preview-demo/poses/eureka/concerned.png
deleted file mode 100644
index f3486432..00000000
Binary files a/preview-demo/poses/eureka/concerned.png and /dev/null differ
diff --git a/preview-demo/poses/eureka/determined.png b/preview-demo/poses/eureka/determined.png
deleted file mode 100644
index 59771a80..00000000
Binary files a/preview-demo/poses/eureka/determined.png and /dev/null differ
diff --git a/preview-demo/poses/eureka/happy.png b/preview-demo/poses/eureka/happy.png
deleted file mode 100644
index ab4a5752..00000000
Binary files a/preview-demo/poses/eureka/happy.png and /dev/null differ
diff --git a/preview-demo/poses/eureka/hood-smug.png b/preview-demo/poses/eureka/hood-smug.png
deleted file mode 100644
index 2545a64e..00000000
Binary files a/preview-demo/poses/eureka/hood-smug.png and /dev/null differ
diff --git a/preview-demo/poses/eureka/inspect.png b/preview-demo/poses/eureka/inspect.png
deleted file mode 100644
index 44786969..00000000
Binary files a/preview-demo/poses/eureka/inspect.png and /dev/null differ
diff --git a/preview-demo/poses/eureka/neutral.png b/preview-demo/poses/eureka/neutral.png
deleted file mode 100644
index f27fb141..00000000
Binary files a/preview-demo/poses/eureka/neutral.png and /dev/null differ
diff --git a/preview-demo/poses/eureka/probe.png b/preview-demo/poses/eureka/probe.png
deleted file mode 100644
index 0a9c3c7b..00000000
Binary files a/preview-demo/poses/eureka/probe.png and /dev/null differ
diff --git a/preview-demo/poses/eureka/report.png b/preview-demo/poses/eureka/report.png
deleted file mode 100644
index 5a8a6e5c..00000000
Binary files a/preview-demo/poses/eureka/report.png and /dev/null differ
diff --git a/preview-demo/poses/eureka/surprised.png b/preview-demo/poses/eureka/surprised.png
deleted file mode 100644
index 34305ef9..00000000
Binary files a/preview-demo/poses/eureka/surprised.png and /dev/null differ
diff --git a/preview-demo/poses/eureka/thinking.png b/preview-demo/poses/eureka/thinking.png
deleted file mode 100644
index 31a4e917..00000000
Binary files a/preview-demo/poses/eureka/thinking.png and /dev/null differ
diff --git a/preview-demo/poses/nibu/amused.png b/preview-demo/poses/nibu/amused.png
deleted file mode 100644
index a3e02a9d..00000000
Binary files a/preview-demo/poses/nibu/amused.png and /dev/null differ
diff --git a/preview-demo/poses/nibu/annoyed.png b/preview-demo/poses/nibu/annoyed.png
deleted file mode 100644
index e962e628..00000000
Binary files a/preview-demo/poses/nibu/annoyed.png and /dev/null differ
diff --git a/preview-demo/poses/nibu/console.png b/preview-demo/poses/nibu/console.png
deleted file mode 100644
index 20a7fef4..00000000
Binary files a/preview-demo/poses/nibu/console.png and /dev/null differ
diff --git a/preview-demo/poses/nibu/glitch.png b/preview-demo/poses/nibu/glitch.png
deleted file mode 100644
index 315acd52..00000000
Binary files a/preview-demo/poses/nibu/glitch.png and /dev/null differ
diff --git a/preview-demo/poses/nibu/happy.png b/preview-demo/poses/nibu/happy.png
deleted file mode 100644
index 4f4ed096..00000000
Binary files a/preview-demo/poses/nibu/happy.png and /dev/null differ
diff --git a/preview-demo/poses/nibu/neutral.png b/preview-demo/poses/nibu/neutral.png
deleted file mode 100644
index e3ada05d..00000000
Binary files a/preview-demo/poses/nibu/neutral.png and /dev/null differ
diff --git a/preview-demo/poses/nibu/pout.png b/preview-demo/poses/nibu/pout.png
deleted file mode 100644
index 796449b4..00000000
Binary files a/preview-demo/poses/nibu/pout.png and /dev/null differ
diff --git a/preview-demo/poses/nibu/resolute.png b/preview-demo/poses/nibu/resolute.png
deleted file mode 100644
index bab06adf..00000000
Binary files a/preview-demo/poses/nibu/resolute.png and /dev/null differ
diff --git a/preview-demo/poses/nibu/sheepish.png b/preview-demo/poses/nibu/sheepish.png
deleted file mode 100644
index f9ec933f..00000000
Binary files a/preview-demo/poses/nibu/sheepish.png and /dev/null differ
diff --git a/preview-demo/poses/nibu/surprised.png b/preview-demo/poses/nibu/surprised.png
deleted file mode 100644
index 4fa62657..00000000
Binary files a/preview-demo/poses/nibu/surprised.png and /dev/null differ
diff --git a/preview-demo/poses/nibu/thinking.png b/preview-demo/poses/nibu/thinking.png
deleted file mode 100644
index b02967ed..00000000
Binary files a/preview-demo/poses/nibu/thinking.png and /dev/null differ
diff --git a/preview-demo/poses/nibu/triumph.png b/preview-demo/poses/nibu/triumph.png
deleted file mode 100644
index 31994236..00000000
Binary files a/preview-demo/poses/nibu/triumph.png and /dev/null differ
diff --git a/preview-demo/poses/void/amused.png b/preview-demo/poses/void/amused.png
deleted file mode 100644
index a8332ed2..00000000
Binary files a/preview-demo/poses/void/amused.png and /dev/null differ
diff --git a/preview-demo/poses/void/annoyed.png b/preview-demo/poses/void/annoyed.png
deleted file mode 100644
index 4dc43e7a..00000000
Binary files a/preview-demo/poses/void/annoyed.png and /dev/null differ
diff --git a/preview-demo/poses/void/deadpan.png b/preview-demo/poses/void/deadpan.png
deleted file mode 100644
index d65dcb3e..00000000
Binary files a/preview-demo/poses/void/deadpan.png and /dev/null differ
diff --git a/preview-demo/poses/void/determined.png b/preview-demo/poses/void/determined.png
deleted file mode 100644
index f095d292..00000000
Binary files a/preview-demo/poses/void/determined.png and /dev/null differ
diff --git a/preview-demo/poses/void/glare.png b/preview-demo/poses/void/glare.png
deleted file mode 100644
index 44fcc81f..00000000
Binary files a/preview-demo/poses/void/glare.png and /dev/null differ
diff --git a/preview-demo/poses/void/happy.png b/preview-demo/poses/void/happy.png
deleted file mode 100644
index ca6027de..00000000
Binary files a/preview-demo/poses/void/happy.png and /dev/null differ
diff --git a/preview-demo/poses/void/neutral.png b/preview-demo/poses/void/neutral.png
deleted file mode 100644
index 6e2a286d..00000000
Binary files a/preview-demo/poses/void/neutral.png and /dev/null differ
diff --git a/preview-demo/poses/void/point.png b/preview-demo/poses/void/point.png
deleted file mode 100644
index fae15ebf..00000000
Binary files a/preview-demo/poses/void/point.png and /dev/null differ
diff --git a/preview-demo/poses/void/reading.png b/preview-demo/poses/void/reading.png
deleted file mode 100644
index 3fff2cd8..00000000
Binary files a/preview-demo/poses/void/reading.png and /dev/null differ
diff --git a/preview-demo/poses/void/shrug.png b/preview-demo/poses/void/shrug.png
deleted file mode 100644
index aa4aee5d..00000000
Binary files a/preview-demo/poses/void/shrug.png and /dev/null differ
diff --git a/preview-demo/poses/void/surprised.png b/preview-demo/poses/void/surprised.png
deleted file mode 100644
index 73816f29..00000000
Binary files a/preview-demo/poses/void/surprised.png and /dev/null differ
diff --git a/preview-demo/poses/void/thinking.png b/preview-demo/poses/void/thinking.png
deleted file mode 100644
index ab93f2cc..00000000
Binary files a/preview-demo/poses/void/thinking.png and /dev/null differ
diff --git a/public/dings/README.md b/public/dings/README.md
index b36e1fb7..d86152fd 100644
--- a/public/dings/README.md
+++ b/public/dings/README.md
@@ -4,14 +4,9 @@ Pre-rendered earcons, served at `public/dings/` and read at runtime by `src/app/
Aqua renders the clips; nothing here is synthesised in the browser.
dings/manifest.json
- dings/senders//.ogg
- dings/neutral/.ogg
+ dings//.ogg
`manifest.json` is `{ "neutral": { : "" }, "senders": { : { : "" } } }`
with motif one of `mention`, `dm`, `message`, `invite`; paths are relative to this folder, `.ogg` or `.mp3`.
A sender's own clip wins, else the neutral clip, else silence. Without a `manifest.json` the client keeps
its stock notification sounds; once one exists, a motif with no clip is silent.
-
-The set here is Aqua's v4 (AquaSynth merge 21e83ec, staged at minds.gamecult.org/aqua/dings-voices-dd9be66),
-Nibu on proposal 3 (8 kHz 5-bit smoothed sine) for all four events. Nobody has heard it. The client plays none of it unless the
-client config sets `"dings": { "enabled": true }` (default off, as in `config.json`).
diff --git a/public/dings/manifest.json b/public/dings/manifest.json
deleted file mode 100644
index 7096d195..00000000
--- a/public/dings/manifest.json
+++ /dev/null
@@ -1,58 +0,0 @@
-{
- "neutral": {
- "mention": "neutral/mention.ogg",
- "dm": "neutral/dm.ogg",
- "message": "neutral/message.ogg",
- "invite": "neutral/invite.ogg"
- },
- "senders": {
- "aqua": {
- "mention": "senders/aqua/mention.ogg",
- "dm": "senders/aqua/dm.ogg",
- "message": "senders/aqua/message.ogg",
- "invite": "senders/aqua/invite.ogg"
- },
- "eureka": {
- "mention": "senders/eureka/mention.ogg",
- "dm": "senders/eureka/dm.ogg",
- "message": "senders/eureka/message.ogg",
- "invite": "senders/eureka/invite.ogg"
- },
- "heimdall": {
- "mention": "senders/heimdall/mention.ogg",
- "dm": "senders/heimdall/dm.ogg",
- "message": "senders/heimdall/message.ogg",
- "invite": "senders/heimdall/invite.ogg"
- },
- "kiko": {
- "mention": "senders/kiko/mention.ogg",
- "dm": "senders/kiko/dm.ogg",
- "message": "senders/kiko/message.ogg",
- "invite": "senders/kiko/invite.ogg"
- },
- "libby": {
- "mention": "senders/libby/mention.ogg",
- "dm": "senders/libby/dm.ogg",
- "message": "senders/libby/message.ogg",
- "invite": "senders/libby/invite.ogg"
- },
- "nibu": {
- "mention": "senders/nibu/mention.ogg",
- "dm": "senders/nibu/dm.ogg",
- "message": "senders/nibu/message.ogg",
- "invite": "senders/nibu/invite.ogg"
- },
- "void": {
- "mention": "senders/void/mention.ogg",
- "dm": "senders/void/dm.ogg",
- "message": "senders/void/message.ogg",
- "invite": "senders/void/invite.ogg"
- },
- "weksa": {
- "mention": "senders/weksa/mention.ogg",
- "dm": "senders/weksa/dm.ogg",
- "message": "senders/weksa/message.ogg",
- "invite": "senders/weksa/invite.ogg"
- }
- }
-}
\ No newline at end of file
diff --git a/public/dings/neutral/dm.ogg b/public/dings/neutral/dm.ogg
deleted file mode 100644
index 8f7a269e..00000000
Binary files a/public/dings/neutral/dm.ogg and /dev/null differ
diff --git a/public/dings/neutral/invite.ogg b/public/dings/neutral/invite.ogg
deleted file mode 100644
index 8def2b77..00000000
Binary files a/public/dings/neutral/invite.ogg and /dev/null differ
diff --git a/public/dings/neutral/mention.ogg b/public/dings/neutral/mention.ogg
deleted file mode 100644
index a02084bc..00000000
Binary files a/public/dings/neutral/mention.ogg and /dev/null differ
diff --git a/public/dings/neutral/message.ogg b/public/dings/neutral/message.ogg
deleted file mode 100644
index f7e17fd4..00000000
Binary files a/public/dings/neutral/message.ogg and /dev/null differ
diff --git a/public/dings/senders/aqua/dm.ogg b/public/dings/senders/aqua/dm.ogg
deleted file mode 100644
index 5a235546..00000000
Binary files a/public/dings/senders/aqua/dm.ogg and /dev/null differ
diff --git a/public/dings/senders/aqua/invite.ogg b/public/dings/senders/aqua/invite.ogg
deleted file mode 100644
index f349e735..00000000
Binary files a/public/dings/senders/aqua/invite.ogg and /dev/null differ
diff --git a/public/dings/senders/aqua/mention.ogg b/public/dings/senders/aqua/mention.ogg
deleted file mode 100644
index 67d36911..00000000
Binary files a/public/dings/senders/aqua/mention.ogg and /dev/null differ
diff --git a/public/dings/senders/aqua/message.ogg b/public/dings/senders/aqua/message.ogg
deleted file mode 100644
index 3704f55a..00000000
Binary files a/public/dings/senders/aqua/message.ogg and /dev/null differ
diff --git a/public/dings/senders/eureka/dm.ogg b/public/dings/senders/eureka/dm.ogg
deleted file mode 100644
index 57024fbe..00000000
Binary files a/public/dings/senders/eureka/dm.ogg and /dev/null differ
diff --git a/public/dings/senders/eureka/invite.ogg b/public/dings/senders/eureka/invite.ogg
deleted file mode 100644
index d6a6e328..00000000
Binary files a/public/dings/senders/eureka/invite.ogg and /dev/null differ
diff --git a/public/dings/senders/eureka/mention.ogg b/public/dings/senders/eureka/mention.ogg
deleted file mode 100644
index c4085fae..00000000
Binary files a/public/dings/senders/eureka/mention.ogg and /dev/null differ
diff --git a/public/dings/senders/eureka/message.ogg b/public/dings/senders/eureka/message.ogg
deleted file mode 100644
index 6cd340ce..00000000
Binary files a/public/dings/senders/eureka/message.ogg and /dev/null differ
diff --git a/public/dings/senders/heimdall/dm.ogg b/public/dings/senders/heimdall/dm.ogg
deleted file mode 100644
index 145e8853..00000000
Binary files a/public/dings/senders/heimdall/dm.ogg and /dev/null differ
diff --git a/public/dings/senders/heimdall/invite.ogg b/public/dings/senders/heimdall/invite.ogg
deleted file mode 100644
index 98403c21..00000000
Binary files a/public/dings/senders/heimdall/invite.ogg and /dev/null differ
diff --git a/public/dings/senders/heimdall/mention.ogg b/public/dings/senders/heimdall/mention.ogg
deleted file mode 100644
index 5a39a98c..00000000
Binary files a/public/dings/senders/heimdall/mention.ogg and /dev/null differ
diff --git a/public/dings/senders/heimdall/message.ogg b/public/dings/senders/heimdall/message.ogg
deleted file mode 100644
index 068e7198..00000000
Binary files a/public/dings/senders/heimdall/message.ogg and /dev/null differ
diff --git a/public/dings/senders/kiko/dm.ogg b/public/dings/senders/kiko/dm.ogg
deleted file mode 100644
index 7c35b072..00000000
Binary files a/public/dings/senders/kiko/dm.ogg and /dev/null differ
diff --git a/public/dings/senders/kiko/invite.ogg b/public/dings/senders/kiko/invite.ogg
deleted file mode 100644
index f8eff1a1..00000000
Binary files a/public/dings/senders/kiko/invite.ogg and /dev/null differ
diff --git a/public/dings/senders/kiko/mention.ogg b/public/dings/senders/kiko/mention.ogg
deleted file mode 100644
index 12cccf29..00000000
Binary files a/public/dings/senders/kiko/mention.ogg and /dev/null differ
diff --git a/public/dings/senders/kiko/message.ogg b/public/dings/senders/kiko/message.ogg
deleted file mode 100644
index e0f6e885..00000000
Binary files a/public/dings/senders/kiko/message.ogg and /dev/null differ
diff --git a/public/dings/senders/libby/dm.ogg b/public/dings/senders/libby/dm.ogg
deleted file mode 100644
index 1316c196..00000000
Binary files a/public/dings/senders/libby/dm.ogg and /dev/null differ
diff --git a/public/dings/senders/libby/invite.ogg b/public/dings/senders/libby/invite.ogg
deleted file mode 100644
index 4b92a0b7..00000000
Binary files a/public/dings/senders/libby/invite.ogg and /dev/null differ
diff --git a/public/dings/senders/libby/mention.ogg b/public/dings/senders/libby/mention.ogg
deleted file mode 100644
index f335c2c9..00000000
Binary files a/public/dings/senders/libby/mention.ogg and /dev/null differ
diff --git a/public/dings/senders/libby/message.ogg b/public/dings/senders/libby/message.ogg
deleted file mode 100644
index 432f8623..00000000
Binary files a/public/dings/senders/libby/message.ogg and /dev/null differ
diff --git a/public/dings/senders/nibu/dm.ogg b/public/dings/senders/nibu/dm.ogg
deleted file mode 100644
index 2965cf53..00000000
Binary files a/public/dings/senders/nibu/dm.ogg and /dev/null differ
diff --git a/public/dings/senders/nibu/invite.ogg b/public/dings/senders/nibu/invite.ogg
deleted file mode 100644
index 57e54c47..00000000
Binary files a/public/dings/senders/nibu/invite.ogg and /dev/null differ
diff --git a/public/dings/senders/nibu/mention.ogg b/public/dings/senders/nibu/mention.ogg
deleted file mode 100644
index 5f6d2dfc..00000000
Binary files a/public/dings/senders/nibu/mention.ogg and /dev/null differ
diff --git a/public/dings/senders/nibu/message.ogg b/public/dings/senders/nibu/message.ogg
deleted file mode 100644
index a9294354..00000000
Binary files a/public/dings/senders/nibu/message.ogg and /dev/null differ
diff --git a/public/dings/senders/void/dm.ogg b/public/dings/senders/void/dm.ogg
deleted file mode 100644
index d09a7a94..00000000
Binary files a/public/dings/senders/void/dm.ogg and /dev/null differ
diff --git a/public/dings/senders/void/invite.ogg b/public/dings/senders/void/invite.ogg
deleted file mode 100644
index ed46cbb9..00000000
Binary files a/public/dings/senders/void/invite.ogg and /dev/null differ
diff --git a/public/dings/senders/void/mention.ogg b/public/dings/senders/void/mention.ogg
deleted file mode 100644
index b6295e00..00000000
Binary files a/public/dings/senders/void/mention.ogg and /dev/null differ
diff --git a/public/dings/senders/void/message.ogg b/public/dings/senders/void/message.ogg
deleted file mode 100644
index da1f0a16..00000000
Binary files a/public/dings/senders/void/message.ogg and /dev/null differ
diff --git a/public/dings/senders/weksa/dm.ogg b/public/dings/senders/weksa/dm.ogg
deleted file mode 100644
index 37b5f990..00000000
Binary files a/public/dings/senders/weksa/dm.ogg and /dev/null differ
diff --git a/public/dings/senders/weksa/invite.ogg b/public/dings/senders/weksa/invite.ogg
deleted file mode 100644
index 1c401418..00000000
Binary files a/public/dings/senders/weksa/invite.ogg and /dev/null differ
diff --git a/public/dings/senders/weksa/mention.ogg b/public/dings/senders/weksa/mention.ogg
deleted file mode 100644
index 98fa0f75..00000000
Binary files a/public/dings/senders/weksa/mention.ogg and /dev/null differ
diff --git a/public/dings/senders/weksa/message.ogg b/public/dings/senders/weksa/message.ogg
deleted file mode 100644
index f552996b..00000000
Binary files a/public/dings/senders/weksa/message.ogg and /dev/null differ
diff --git a/public/favicon.ico b/public/favicon.ico
index bda9855c..cfce9943 100644
Binary files a/public/favicon.ico and b/public/favicon.ico differ
diff --git a/public/manifest.json b/public/manifest.json
index c28e7b41..81fd714c 100644
--- a/public/manifest.json
+++ b/public/manifest.json
@@ -1,15 +1,14 @@
{
"name": "Ratatoskr",
"short_name": "Ratatoskr",
- "id": "/",
"description": "GameCult's Matrix client",
"dir": "auto",
"lang": "en-US",
"display": "standalone",
+ "orientation": "portrait",
"start_url": "./",
- "scope": "./",
- "background_color": "#07111a",
- "theme_color": "#07111a",
+ "background_color": "#fff",
+ "theme_color": "#fff",
"icons": [
{
"src": "./public/android/android-chrome-36x36.png",
@@ -55,12 +54,6 @@
"src": "./public/android/android-chrome-512x512.png",
"sizes": "512x512",
"type": "image/png"
- },
- {
- "src": "./public/android/android-chrome-maskable-512x512.png",
- "sizes": "512x512",
- "type": "image/png",
- "purpose": "maskable"
}
]
}
diff --git a/public/poses/.gitkeep b/public/poses/.gitkeep
deleted file mode 100644
index e69de29b..00000000
diff --git a/public/res/android/android-chrome-144x144.png b/public/res/android/android-chrome-144x144.png
index 2dfde532..d76ed356 100644
Binary files a/public/res/android/android-chrome-144x144.png and b/public/res/android/android-chrome-144x144.png differ
diff --git a/public/res/android/android-chrome-192x192.png b/public/res/android/android-chrome-192x192.png
index d696f20f..7689b6d0 100644
Binary files a/public/res/android/android-chrome-192x192.png and b/public/res/android/android-chrome-192x192.png differ
diff --git a/public/res/android/android-chrome-256x256.png b/public/res/android/android-chrome-256x256.png
index 07e5cbde..2f61f46b 100644
Binary files a/public/res/android/android-chrome-256x256.png and b/public/res/android/android-chrome-256x256.png differ
diff --git a/public/res/android/android-chrome-36x36.png b/public/res/android/android-chrome-36x36.png
index 3e1babf7..91b26af2 100644
Binary files a/public/res/android/android-chrome-36x36.png and b/public/res/android/android-chrome-36x36.png differ
diff --git a/public/res/android/android-chrome-384x384.png b/public/res/android/android-chrome-384x384.png
index 61e2afe4..ab06a074 100644
Binary files a/public/res/android/android-chrome-384x384.png and b/public/res/android/android-chrome-384x384.png differ
diff --git a/public/res/android/android-chrome-48x48.png b/public/res/android/android-chrome-48x48.png
index a5ba15e6..f8fafcd9 100644
Binary files a/public/res/android/android-chrome-48x48.png and b/public/res/android/android-chrome-48x48.png differ
diff --git a/public/res/android/android-chrome-512x512.png b/public/res/android/android-chrome-512x512.png
index e979125e..2c584f3d 100644
Binary files a/public/res/android/android-chrome-512x512.png and b/public/res/android/android-chrome-512x512.png differ
diff --git a/public/res/android/android-chrome-72x72.png b/public/res/android/android-chrome-72x72.png
index 7aa6caab..32d5d516 100644
Binary files a/public/res/android/android-chrome-72x72.png and b/public/res/android/android-chrome-72x72.png differ
diff --git a/public/res/android/android-chrome-96x96.png b/public/res/android/android-chrome-96x96.png
index 5ab44fe9..5da68e4b 100644
Binary files a/public/res/android/android-chrome-96x96.png and b/public/res/android/android-chrome-96x96.png differ
diff --git a/public/res/android/android-chrome-maskable-512x512.png b/public/res/android/android-chrome-maskable-512x512.png
deleted file mode 100644
index 211a0650..00000000
Binary files a/public/res/android/android-chrome-maskable-512x512.png and /dev/null differ
diff --git a/public/res/apple/apple-touch-icon-114x114.png b/public/res/apple/apple-touch-icon-114x114.png
index 3a08841c..1ff43a12 100644
Binary files a/public/res/apple/apple-touch-icon-114x114.png and b/public/res/apple/apple-touch-icon-114x114.png differ
diff --git a/public/res/apple/apple-touch-icon-120x120.png b/public/res/apple/apple-touch-icon-120x120.png
index 8443c98f..d10efb31 100644
Binary files a/public/res/apple/apple-touch-icon-120x120.png and b/public/res/apple/apple-touch-icon-120x120.png differ
diff --git a/public/res/apple/apple-touch-icon-144x144.png b/public/res/apple/apple-touch-icon-144x144.png
index 2dfde532..d76ed356 100644
Binary files a/public/res/apple/apple-touch-icon-144x144.png and b/public/res/apple/apple-touch-icon-144x144.png differ
diff --git a/public/res/apple/apple-touch-icon-152x152.png b/public/res/apple/apple-touch-icon-152x152.png
index 8ab7ad50..76590ddf 100644
Binary files a/public/res/apple/apple-touch-icon-152x152.png and b/public/res/apple/apple-touch-icon-152x152.png differ
diff --git a/public/res/apple/apple-touch-icon-167x167.png b/public/res/apple/apple-touch-icon-167x167.png
index 963c024d..3f26f91b 100644
Binary files a/public/res/apple/apple-touch-icon-167x167.png and b/public/res/apple/apple-touch-icon-167x167.png differ
diff --git a/public/res/apple/apple-touch-icon-180x180.png b/public/res/apple/apple-touch-icon-180x180.png
index 631741a0..ed498370 100644
Binary files a/public/res/apple/apple-touch-icon-180x180.png and b/public/res/apple/apple-touch-icon-180x180.png differ
diff --git a/public/res/apple/apple-touch-icon-57x57.png b/public/res/apple/apple-touch-icon-57x57.png
index 5cad75b2..2e2081f5 100644
Binary files a/public/res/apple/apple-touch-icon-57x57.png and b/public/res/apple/apple-touch-icon-57x57.png differ
diff --git a/public/res/apple/apple-touch-icon-60x60.png b/public/res/apple/apple-touch-icon-60x60.png
index 6303a2eb..87c8fc2b 100644
Binary files a/public/res/apple/apple-touch-icon-60x60.png and b/public/res/apple/apple-touch-icon-60x60.png differ
diff --git a/public/res/apple/apple-touch-icon-72x72.png b/public/res/apple/apple-touch-icon-72x72.png
index 7aa6caab..32d5d516 100644
Binary files a/public/res/apple/apple-touch-icon-72x72.png and b/public/res/apple/apple-touch-icon-72x72.png differ
diff --git a/public/res/apple/apple-touch-icon-76x76.png b/public/res/apple/apple-touch-icon-76x76.png
index 1448098d..1164b72d 100644
Binary files a/public/res/apple/apple-touch-icon-76x76.png and b/public/res/apple/apple-touch-icon-76x76.png differ
diff --git a/public/res/svg/ratatoskr-favicon-highlight.svg b/public/res/svg/ratatoskr-favicon-highlight.svg
deleted file mode 100644
index f9a95e82..00000000
--- a/public/res/svg/ratatoskr-favicon-highlight.svg
+++ /dev/null
@@ -1 +0,0 @@
-
diff --git a/public/res/svg/ratatoskr-favicon-unread.svg b/public/res/svg/ratatoskr-favicon-unread.svg
deleted file mode 100644
index f5bcb7d8..00000000
--- a/public/res/svg/ratatoskr-favicon-unread.svg
+++ /dev/null
@@ -1 +0,0 @@
-
diff --git a/public/res/svg/ratatoskr-favicon.svg b/public/res/svg/ratatoskr-favicon.svg
deleted file mode 100644
index 0c7cc393..00000000
--- a/public/res/svg/ratatoskr-favicon.svg
+++ /dev/null
@@ -1 +0,0 @@
-
diff --git a/public/res/svg/ratatoskr-highlight.svg b/public/res/svg/ratatoskr-highlight.svg
new file mode 100644
index 00000000..661442d4
--- /dev/null
+++ b/public/res/svg/ratatoskr-highlight.svg
@@ -0,0 +1,17 @@
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
diff --git a/public/res/svg/ratatoskr-unread.svg b/public/res/svg/ratatoskr-unread.svg
new file mode 100644
index 00000000..69a08c95
--- /dev/null
+++ b/public/res/svg/ratatoskr-unread.svg
@@ -0,0 +1,17 @@
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
diff --git a/public/res/svg/ratatoskr.svg b/public/res/svg/ratatoskr.svg
index 1092ffc4..3ca98122 100644
--- a/public/res/svg/ratatoskr.svg
+++ b/public/res/svg/ratatoskr.svg
@@ -1 +1,15 @@
-
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
diff --git a/public/ridge/amadablam-fb4b9d3701f8/card-0-t00-colour.webp b/public/ridge/amadablam-fb4b9d3701f8/card-0-t00-colour.webp
deleted file mode 100644
index c3893ca5..00000000
Binary files a/public/ridge/amadablam-fb4b9d3701f8/card-0-t00-colour.webp and /dev/null differ
diff --git a/public/ridge/amadablam-fb4b9d3701f8/card-0-t00-geometry.webp b/public/ridge/amadablam-fb4b9d3701f8/card-0-t00-geometry.webp
deleted file mode 100644
index 5891ae4b..00000000
Binary files a/public/ridge/amadablam-fb4b9d3701f8/card-0-t00-geometry.webp and /dev/null differ
diff --git a/public/ridge/amadablam-fb4b9d3701f8/card-0-t01-colour.webp b/public/ridge/amadablam-fb4b9d3701f8/card-0-t01-colour.webp
deleted file mode 100644
index 5fd85171..00000000
Binary files a/public/ridge/amadablam-fb4b9d3701f8/card-0-t01-colour.webp and /dev/null differ
diff --git a/public/ridge/amadablam-fb4b9d3701f8/card-0-t01-geometry.webp b/public/ridge/amadablam-fb4b9d3701f8/card-0-t01-geometry.webp
deleted file mode 100644
index 194baac8..00000000
Binary files a/public/ridge/amadablam-fb4b9d3701f8/card-0-t01-geometry.webp and /dev/null differ
diff --git a/public/ridge/amadablam-fb4b9d3701f8/card-0-t02-colour.webp b/public/ridge/amadablam-fb4b9d3701f8/card-0-t02-colour.webp
deleted file mode 100644
index e23b1c6f..00000000
Binary files a/public/ridge/amadablam-fb4b9d3701f8/card-0-t02-colour.webp and /dev/null differ
diff --git a/public/ridge/amadablam-fb4b9d3701f8/card-0-t02-geometry.webp b/public/ridge/amadablam-fb4b9d3701f8/card-0-t02-geometry.webp
deleted file mode 100644
index 266918c4..00000000
Binary files a/public/ridge/amadablam-fb4b9d3701f8/card-0-t02-geometry.webp and /dev/null differ
diff --git a/public/ridge/amadablam-fb4b9d3701f8/card-0-t03-colour.webp b/public/ridge/amadablam-fb4b9d3701f8/card-0-t03-colour.webp
deleted file mode 100644
index ae17bebc..00000000
Binary files a/public/ridge/amadablam-fb4b9d3701f8/card-0-t03-colour.webp and /dev/null differ
diff --git a/public/ridge/amadablam-fb4b9d3701f8/card-0-t03-geometry.webp b/public/ridge/amadablam-fb4b9d3701f8/card-0-t03-geometry.webp
deleted file mode 100644
index 7e425e50..00000000
Binary files a/public/ridge/amadablam-fb4b9d3701f8/card-0-t03-geometry.webp and /dev/null differ
diff --git a/public/ridge/amadablam-fb4b9d3701f8/card-0-t04-colour.webp b/public/ridge/amadablam-fb4b9d3701f8/card-0-t04-colour.webp
deleted file mode 100644
index 6234b1cf..00000000
Binary files a/public/ridge/amadablam-fb4b9d3701f8/card-0-t04-colour.webp and /dev/null differ
diff --git a/public/ridge/amadablam-fb4b9d3701f8/card-0-t04-geometry.webp b/public/ridge/amadablam-fb4b9d3701f8/card-0-t04-geometry.webp
deleted file mode 100644
index c75eaa59..00000000
Binary files a/public/ridge/amadablam-fb4b9d3701f8/card-0-t04-geometry.webp and /dev/null differ
diff --git a/public/ridge/amadablam-fb4b9d3701f8/card-0-t05-colour.webp b/public/ridge/amadablam-fb4b9d3701f8/card-0-t05-colour.webp
deleted file mode 100644
index eec0a22d..00000000
Binary files a/public/ridge/amadablam-fb4b9d3701f8/card-0-t05-colour.webp and /dev/null differ
diff --git a/public/ridge/amadablam-fb4b9d3701f8/card-0-t05-geometry.webp b/public/ridge/amadablam-fb4b9d3701f8/card-0-t05-geometry.webp
deleted file mode 100644
index d1267cca..00000000
Binary files a/public/ridge/amadablam-fb4b9d3701f8/card-0-t05-geometry.webp and /dev/null differ
diff --git a/public/ridge/amadablam-fb4b9d3701f8/card-0-t06-colour.webp b/public/ridge/amadablam-fb4b9d3701f8/card-0-t06-colour.webp
deleted file mode 100644
index 2d073a4e..00000000
Binary files a/public/ridge/amadablam-fb4b9d3701f8/card-0-t06-colour.webp and /dev/null differ
diff --git a/public/ridge/amadablam-fb4b9d3701f8/card-0-t06-geometry.webp b/public/ridge/amadablam-fb4b9d3701f8/card-0-t06-geometry.webp
deleted file mode 100644
index 527adc45..00000000
Binary files a/public/ridge/amadablam-fb4b9d3701f8/card-0-t06-geometry.webp and /dev/null differ
diff --git a/public/ridge/amadablam-fb4b9d3701f8/card-0-t07-colour.webp b/public/ridge/amadablam-fb4b9d3701f8/card-0-t07-colour.webp
deleted file mode 100644
index 7a77c63b..00000000
Binary files a/public/ridge/amadablam-fb4b9d3701f8/card-0-t07-colour.webp and /dev/null differ
diff --git a/public/ridge/amadablam-fb4b9d3701f8/card-0-t07-geometry.webp b/public/ridge/amadablam-fb4b9d3701f8/card-0-t07-geometry.webp
deleted file mode 100644
index f1b332f1..00000000
Binary files a/public/ridge/amadablam-fb4b9d3701f8/card-0-t07-geometry.webp and /dev/null differ
diff --git a/public/ridge/amadablam-fb4b9d3701f8/card-0-t08-colour.webp b/public/ridge/amadablam-fb4b9d3701f8/card-0-t08-colour.webp
deleted file mode 100644
index e8ddebc5..00000000
Binary files a/public/ridge/amadablam-fb4b9d3701f8/card-0-t08-colour.webp and /dev/null differ
diff --git a/public/ridge/amadablam-fb4b9d3701f8/card-0-t08-geometry.webp b/public/ridge/amadablam-fb4b9d3701f8/card-0-t08-geometry.webp
deleted file mode 100644
index 5a76a3cb..00000000
Binary files a/public/ridge/amadablam-fb4b9d3701f8/card-0-t08-geometry.webp and /dev/null differ
diff --git a/public/ridge/amadablam-fb4b9d3701f8/card-0-t09-colour.webp b/public/ridge/amadablam-fb4b9d3701f8/card-0-t09-colour.webp
deleted file mode 100644
index dd585bf5..00000000
Binary files a/public/ridge/amadablam-fb4b9d3701f8/card-0-t09-colour.webp and /dev/null differ
diff --git a/public/ridge/amadablam-fb4b9d3701f8/card-0-t09-geometry.webp b/public/ridge/amadablam-fb4b9d3701f8/card-0-t09-geometry.webp
deleted file mode 100644
index 6b101d8c..00000000
Binary files a/public/ridge/amadablam-fb4b9d3701f8/card-0-t09-geometry.webp and /dev/null differ
diff --git a/public/ridge/amadablam-fb4b9d3701f8/card-0-t10-colour.webp b/public/ridge/amadablam-fb4b9d3701f8/card-0-t10-colour.webp
deleted file mode 100644
index 174ad822..00000000
Binary files a/public/ridge/amadablam-fb4b9d3701f8/card-0-t10-colour.webp and /dev/null differ
diff --git a/public/ridge/amadablam-fb4b9d3701f8/card-0-t10-geometry.webp b/public/ridge/amadablam-fb4b9d3701f8/card-0-t10-geometry.webp
deleted file mode 100644
index fe9bee3b..00000000
Binary files a/public/ridge/amadablam-fb4b9d3701f8/card-0-t10-geometry.webp and /dev/null differ
diff --git a/public/ridge/amadablam-fb4b9d3701f8/card-0-t11-colour.webp b/public/ridge/amadablam-fb4b9d3701f8/card-0-t11-colour.webp
deleted file mode 100644
index 554261c4..00000000
Binary files a/public/ridge/amadablam-fb4b9d3701f8/card-0-t11-colour.webp and /dev/null differ
diff --git a/public/ridge/amadablam-fb4b9d3701f8/card-0-t11-geometry.webp b/public/ridge/amadablam-fb4b9d3701f8/card-0-t11-geometry.webp
deleted file mode 100644
index d3acc133..00000000
Binary files a/public/ridge/amadablam-fb4b9d3701f8/card-0-t11-geometry.webp and /dev/null differ
diff --git a/public/ridge/amadablam-fb4b9d3701f8/card-0-t12-colour.webp b/public/ridge/amadablam-fb4b9d3701f8/card-0-t12-colour.webp
deleted file mode 100644
index 3119c226..00000000
Binary files a/public/ridge/amadablam-fb4b9d3701f8/card-0-t12-colour.webp and /dev/null differ
diff --git a/public/ridge/amadablam-fb4b9d3701f8/card-0-t12-geometry.webp b/public/ridge/amadablam-fb4b9d3701f8/card-0-t12-geometry.webp
deleted file mode 100644
index ee2d2581..00000000
Binary files a/public/ridge/amadablam-fb4b9d3701f8/card-0-t12-geometry.webp and /dev/null differ
diff --git a/public/ridge/amadablam-fb4b9d3701f8/card-0-t13-colour.webp b/public/ridge/amadablam-fb4b9d3701f8/card-0-t13-colour.webp
deleted file mode 100644
index 73e6d523..00000000
Binary files a/public/ridge/amadablam-fb4b9d3701f8/card-0-t13-colour.webp and /dev/null differ
diff --git a/public/ridge/amadablam-fb4b9d3701f8/card-0-t13-geometry.webp b/public/ridge/amadablam-fb4b9d3701f8/card-0-t13-geometry.webp
deleted file mode 100644
index e3ed014b..00000000
Binary files a/public/ridge/amadablam-fb4b9d3701f8/card-0-t13-geometry.webp and /dev/null differ
diff --git a/public/ridge/amadablam-fb4b9d3701f8/card-0-t14-colour.webp b/public/ridge/amadablam-fb4b9d3701f8/card-0-t14-colour.webp
deleted file mode 100644
index ee04ab30..00000000
Binary files a/public/ridge/amadablam-fb4b9d3701f8/card-0-t14-colour.webp and /dev/null differ
diff --git a/public/ridge/amadablam-fb4b9d3701f8/card-0-t14-geometry.webp b/public/ridge/amadablam-fb4b9d3701f8/card-0-t14-geometry.webp
deleted file mode 100644
index b80bef92..00000000
Binary files a/public/ridge/amadablam-fb4b9d3701f8/card-0-t14-geometry.webp and /dev/null differ
diff --git a/public/ridge/amadablam-fb4b9d3701f8/card-0-t15-colour.webp b/public/ridge/amadablam-fb4b9d3701f8/card-0-t15-colour.webp
deleted file mode 100644
index b790a947..00000000
Binary files a/public/ridge/amadablam-fb4b9d3701f8/card-0-t15-colour.webp and /dev/null differ
diff --git a/public/ridge/amadablam-fb4b9d3701f8/card-0-t15-geometry.webp b/public/ridge/amadablam-fb4b9d3701f8/card-0-t15-geometry.webp
deleted file mode 100644
index 71562790..00000000
Binary files a/public/ridge/amadablam-fb4b9d3701f8/card-0-t15-geometry.webp and /dev/null differ
diff --git a/public/ridge/amadablam-fb4b9d3701f8/card-0-t16-colour.webp b/public/ridge/amadablam-fb4b9d3701f8/card-0-t16-colour.webp
deleted file mode 100644
index 56f4fbf9..00000000
Binary files a/public/ridge/amadablam-fb4b9d3701f8/card-0-t16-colour.webp and /dev/null differ
diff --git a/public/ridge/amadablam-fb4b9d3701f8/card-0-t16-geometry.webp b/public/ridge/amadablam-fb4b9d3701f8/card-0-t16-geometry.webp
deleted file mode 100644
index 134352e2..00000000
Binary files a/public/ridge/amadablam-fb4b9d3701f8/card-0-t16-geometry.webp and /dev/null differ
diff --git a/public/ridge/amadablam-fb4b9d3701f8/card-0-t17-colour.webp b/public/ridge/amadablam-fb4b9d3701f8/card-0-t17-colour.webp
deleted file mode 100644
index fb827d7d..00000000
Binary files a/public/ridge/amadablam-fb4b9d3701f8/card-0-t17-colour.webp and /dev/null differ
diff --git a/public/ridge/amadablam-fb4b9d3701f8/card-0-t17-geometry.webp b/public/ridge/amadablam-fb4b9d3701f8/card-0-t17-geometry.webp
deleted file mode 100644
index cda9a5b8..00000000
Binary files a/public/ridge/amadablam-fb4b9d3701f8/card-0-t17-geometry.webp and /dev/null differ
diff --git a/public/ridge/amadablam-fb4b9d3701f8/card-0-t18-colour.webp b/public/ridge/amadablam-fb4b9d3701f8/card-0-t18-colour.webp
deleted file mode 100644
index 192dc734..00000000
Binary files a/public/ridge/amadablam-fb4b9d3701f8/card-0-t18-colour.webp and /dev/null differ
diff --git a/public/ridge/amadablam-fb4b9d3701f8/card-0-t18-geometry.webp b/public/ridge/amadablam-fb4b9d3701f8/card-0-t18-geometry.webp
deleted file mode 100644
index db3299d4..00000000
Binary files a/public/ridge/amadablam-fb4b9d3701f8/card-0-t18-geometry.webp and /dev/null differ
diff --git a/public/ridge/amadablam-fb4b9d3701f8/card-0-t19-colour.webp b/public/ridge/amadablam-fb4b9d3701f8/card-0-t19-colour.webp
deleted file mode 100644
index 72979ee6..00000000
Binary files a/public/ridge/amadablam-fb4b9d3701f8/card-0-t19-colour.webp and /dev/null differ
diff --git a/public/ridge/amadablam-fb4b9d3701f8/card-0-t19-geometry.webp b/public/ridge/amadablam-fb4b9d3701f8/card-0-t19-geometry.webp
deleted file mode 100644
index 60cce1e4..00000000
Binary files a/public/ridge/amadablam-fb4b9d3701f8/card-0-t19-geometry.webp and /dev/null differ
diff --git a/public/ridge/amadablam-fb4b9d3701f8/card-0-t20-colour.webp b/public/ridge/amadablam-fb4b9d3701f8/card-0-t20-colour.webp
deleted file mode 100644
index 2fa78159..00000000
Binary files a/public/ridge/amadablam-fb4b9d3701f8/card-0-t20-colour.webp and /dev/null differ
diff --git a/public/ridge/amadablam-fb4b9d3701f8/card-0-t20-geometry.webp b/public/ridge/amadablam-fb4b9d3701f8/card-0-t20-geometry.webp
deleted file mode 100644
index b6e021e4..00000000
Binary files a/public/ridge/amadablam-fb4b9d3701f8/card-0-t20-geometry.webp and /dev/null differ
diff --git a/public/ridge/amadablam-fb4b9d3701f8/card-0-t21-colour.webp b/public/ridge/amadablam-fb4b9d3701f8/card-0-t21-colour.webp
deleted file mode 100644
index c4ae8082..00000000
Binary files a/public/ridge/amadablam-fb4b9d3701f8/card-0-t21-colour.webp and /dev/null differ
diff --git a/public/ridge/amadablam-fb4b9d3701f8/card-0-t21-geometry.webp b/public/ridge/amadablam-fb4b9d3701f8/card-0-t21-geometry.webp
deleted file mode 100644
index 2e8d73c1..00000000
Binary files a/public/ridge/amadablam-fb4b9d3701f8/card-0-t21-geometry.webp and /dev/null differ
diff --git a/public/ridge/amadablam-fb4b9d3701f8/card-0-t22-colour.webp b/public/ridge/amadablam-fb4b9d3701f8/card-0-t22-colour.webp
deleted file mode 100644
index 9c534ff2..00000000
Binary files a/public/ridge/amadablam-fb4b9d3701f8/card-0-t22-colour.webp and /dev/null differ
diff --git a/public/ridge/amadablam-fb4b9d3701f8/card-0-t22-geometry.webp b/public/ridge/amadablam-fb4b9d3701f8/card-0-t22-geometry.webp
deleted file mode 100644
index 0bc194cb..00000000
Binary files a/public/ridge/amadablam-fb4b9d3701f8/card-0-t22-geometry.webp and /dev/null differ
diff --git a/public/ridge/amadablam-fb4b9d3701f8/card-0-t23-colour.webp b/public/ridge/amadablam-fb4b9d3701f8/card-0-t23-colour.webp
deleted file mode 100644
index 984c3986..00000000
Binary files a/public/ridge/amadablam-fb4b9d3701f8/card-0-t23-colour.webp and /dev/null differ
diff --git a/public/ridge/amadablam-fb4b9d3701f8/card-0-t23-geometry.webp b/public/ridge/amadablam-fb4b9d3701f8/card-0-t23-geometry.webp
deleted file mode 100644
index bd3ae087..00000000
Binary files a/public/ridge/amadablam-fb4b9d3701f8/card-0-t23-geometry.webp and /dev/null differ
diff --git a/public/ridge/amadablam-fb4b9d3701f8/card-0-t24-colour.webp b/public/ridge/amadablam-fb4b9d3701f8/card-0-t24-colour.webp
deleted file mode 100644
index 99940492..00000000
Binary files a/public/ridge/amadablam-fb4b9d3701f8/card-0-t24-colour.webp and /dev/null differ
diff --git a/public/ridge/amadablam-fb4b9d3701f8/card-0-t24-geometry.webp b/public/ridge/amadablam-fb4b9d3701f8/card-0-t24-geometry.webp
deleted file mode 100644
index 7ecf00b9..00000000
Binary files a/public/ridge/amadablam-fb4b9d3701f8/card-0-t24-geometry.webp and /dev/null differ
diff --git a/public/ridge/amadablam-fb4b9d3701f8/card-0-t25-colour.webp b/public/ridge/amadablam-fb4b9d3701f8/card-0-t25-colour.webp
deleted file mode 100644
index 73bd10bd..00000000
Binary files a/public/ridge/amadablam-fb4b9d3701f8/card-0-t25-colour.webp and /dev/null differ
diff --git a/public/ridge/amadablam-fb4b9d3701f8/card-0-t25-geometry.webp b/public/ridge/amadablam-fb4b9d3701f8/card-0-t25-geometry.webp
deleted file mode 100644
index 30d7765a..00000000
Binary files a/public/ridge/amadablam-fb4b9d3701f8/card-0-t25-geometry.webp and /dev/null differ
diff --git a/public/ridge/amadablam-fb4b9d3701f8/card-0-t26-colour.webp b/public/ridge/amadablam-fb4b9d3701f8/card-0-t26-colour.webp
deleted file mode 100644
index a727fd4e..00000000
Binary files a/public/ridge/amadablam-fb4b9d3701f8/card-0-t26-colour.webp and /dev/null differ
diff --git a/public/ridge/amadablam-fb4b9d3701f8/card-0-t26-geometry.webp b/public/ridge/amadablam-fb4b9d3701f8/card-0-t26-geometry.webp
deleted file mode 100644
index 8492946e..00000000
Binary files a/public/ridge/amadablam-fb4b9d3701f8/card-0-t26-geometry.webp and /dev/null differ
diff --git a/public/ridge/amadablam-fb4b9d3701f8/card-0-t27-colour.webp b/public/ridge/amadablam-fb4b9d3701f8/card-0-t27-colour.webp
deleted file mode 100644
index f711d597..00000000
Binary files a/public/ridge/amadablam-fb4b9d3701f8/card-0-t27-colour.webp and /dev/null differ
diff --git a/public/ridge/amadablam-fb4b9d3701f8/card-0-t27-geometry.webp b/public/ridge/amadablam-fb4b9d3701f8/card-0-t27-geometry.webp
deleted file mode 100644
index e82b6777..00000000
Binary files a/public/ridge/amadablam-fb4b9d3701f8/card-0-t27-geometry.webp and /dev/null differ
diff --git a/public/ridge/amadablam-fb4b9d3701f8/card-0-t28-colour.webp b/public/ridge/amadablam-fb4b9d3701f8/card-0-t28-colour.webp
deleted file mode 100644
index a2fdf8f3..00000000
Binary files a/public/ridge/amadablam-fb4b9d3701f8/card-0-t28-colour.webp and /dev/null differ
diff --git a/public/ridge/amadablam-fb4b9d3701f8/card-0-t28-geometry.webp b/public/ridge/amadablam-fb4b9d3701f8/card-0-t28-geometry.webp
deleted file mode 100644
index 00af24b3..00000000
Binary files a/public/ridge/amadablam-fb4b9d3701f8/card-0-t28-geometry.webp and /dev/null differ
diff --git a/public/ridge/amadablam-fb4b9d3701f8/card-0-t29-colour.webp b/public/ridge/amadablam-fb4b9d3701f8/card-0-t29-colour.webp
deleted file mode 100644
index 5d03874e..00000000
Binary files a/public/ridge/amadablam-fb4b9d3701f8/card-0-t29-colour.webp and /dev/null differ
diff --git a/public/ridge/amadablam-fb4b9d3701f8/card-0-t29-geometry.webp b/public/ridge/amadablam-fb4b9d3701f8/card-0-t29-geometry.webp
deleted file mode 100644
index e9cb8e9c..00000000
Binary files a/public/ridge/amadablam-fb4b9d3701f8/card-0-t29-geometry.webp and /dev/null differ
diff --git a/public/ridge/amadablam-fb4b9d3701f8/card-0-t30-colour.webp b/public/ridge/amadablam-fb4b9d3701f8/card-0-t30-colour.webp
deleted file mode 100644
index 8ed8439b..00000000
Binary files a/public/ridge/amadablam-fb4b9d3701f8/card-0-t30-colour.webp and /dev/null differ
diff --git a/public/ridge/amadablam-fb4b9d3701f8/card-0-t30-geometry.webp b/public/ridge/amadablam-fb4b9d3701f8/card-0-t30-geometry.webp
deleted file mode 100644
index 9230d8a9..00000000
Binary files a/public/ridge/amadablam-fb4b9d3701f8/card-0-t30-geometry.webp and /dev/null differ
diff --git a/public/ridge/amadablam-fb4b9d3701f8/card-0-t31-colour.webp b/public/ridge/amadablam-fb4b9d3701f8/card-0-t31-colour.webp
deleted file mode 100644
index 9718a7cb..00000000
Binary files a/public/ridge/amadablam-fb4b9d3701f8/card-0-t31-colour.webp and /dev/null differ
diff --git a/public/ridge/amadablam-fb4b9d3701f8/card-0-t31-geometry.webp b/public/ridge/amadablam-fb4b9d3701f8/card-0-t31-geometry.webp
deleted file mode 100644
index b6ecf444..00000000
Binary files a/public/ridge/amadablam-fb4b9d3701f8/card-0-t31-geometry.webp and /dev/null differ
diff --git a/public/ridge/amadablam-fb4b9d3701f8/card-1-t00-colour.webp b/public/ridge/amadablam-fb4b9d3701f8/card-1-t00-colour.webp
deleted file mode 100644
index 865800a1..00000000
Binary files a/public/ridge/amadablam-fb4b9d3701f8/card-1-t00-colour.webp and /dev/null differ
diff --git a/public/ridge/amadablam-fb4b9d3701f8/card-1-t00-geometry.webp b/public/ridge/amadablam-fb4b9d3701f8/card-1-t00-geometry.webp
deleted file mode 100644
index bdfa32a2..00000000
Binary files a/public/ridge/amadablam-fb4b9d3701f8/card-1-t00-geometry.webp and /dev/null differ
diff --git a/public/ridge/amadablam-fb4b9d3701f8/card-1-t01-colour.webp b/public/ridge/amadablam-fb4b9d3701f8/card-1-t01-colour.webp
deleted file mode 100644
index 7832010e..00000000
Binary files a/public/ridge/amadablam-fb4b9d3701f8/card-1-t01-colour.webp and /dev/null differ
diff --git a/public/ridge/amadablam-fb4b9d3701f8/card-1-t01-geometry.webp b/public/ridge/amadablam-fb4b9d3701f8/card-1-t01-geometry.webp
deleted file mode 100644
index db8c3fdb..00000000
Binary files a/public/ridge/amadablam-fb4b9d3701f8/card-1-t01-geometry.webp and /dev/null differ
diff --git a/public/ridge/amadablam-fb4b9d3701f8/card-1-t02-colour.webp b/public/ridge/amadablam-fb4b9d3701f8/card-1-t02-colour.webp
deleted file mode 100644
index 990440d4..00000000
Binary files a/public/ridge/amadablam-fb4b9d3701f8/card-1-t02-colour.webp and /dev/null differ
diff --git a/public/ridge/amadablam-fb4b9d3701f8/card-1-t02-geometry.webp b/public/ridge/amadablam-fb4b9d3701f8/card-1-t02-geometry.webp
deleted file mode 100644
index f1c399c6..00000000
Binary files a/public/ridge/amadablam-fb4b9d3701f8/card-1-t02-geometry.webp and /dev/null differ
diff --git a/public/ridge/amadablam-fb4b9d3701f8/card-1-t03-colour.webp b/public/ridge/amadablam-fb4b9d3701f8/card-1-t03-colour.webp
deleted file mode 100644
index 691e899b..00000000
Binary files a/public/ridge/amadablam-fb4b9d3701f8/card-1-t03-colour.webp and /dev/null differ
diff --git a/public/ridge/amadablam-fb4b9d3701f8/card-1-t03-geometry.webp b/public/ridge/amadablam-fb4b9d3701f8/card-1-t03-geometry.webp
deleted file mode 100644
index 9686a023..00000000
Binary files a/public/ridge/amadablam-fb4b9d3701f8/card-1-t03-geometry.webp and /dev/null differ
diff --git a/public/ridge/amadablam-fb4b9d3701f8/card-1-t04-colour.webp b/public/ridge/amadablam-fb4b9d3701f8/card-1-t04-colour.webp
deleted file mode 100644
index f2fd046f..00000000
Binary files a/public/ridge/amadablam-fb4b9d3701f8/card-1-t04-colour.webp and /dev/null differ
diff --git a/public/ridge/amadablam-fb4b9d3701f8/card-1-t04-geometry.webp b/public/ridge/amadablam-fb4b9d3701f8/card-1-t04-geometry.webp
deleted file mode 100644
index 20c731a9..00000000
Binary files a/public/ridge/amadablam-fb4b9d3701f8/card-1-t04-geometry.webp and /dev/null differ
diff --git a/public/ridge/amadablam-fb4b9d3701f8/card-1-t05-colour.webp b/public/ridge/amadablam-fb4b9d3701f8/card-1-t05-colour.webp
deleted file mode 100644
index 79109c67..00000000
Binary files a/public/ridge/amadablam-fb4b9d3701f8/card-1-t05-colour.webp and /dev/null differ
diff --git a/public/ridge/amadablam-fb4b9d3701f8/card-1-t05-geometry.webp b/public/ridge/amadablam-fb4b9d3701f8/card-1-t05-geometry.webp
deleted file mode 100644
index d4d430fe..00000000
Binary files a/public/ridge/amadablam-fb4b9d3701f8/card-1-t05-geometry.webp and /dev/null differ
diff --git a/public/ridge/amadablam-fb4b9d3701f8/card-1-t06-colour.webp b/public/ridge/amadablam-fb4b9d3701f8/card-1-t06-colour.webp
deleted file mode 100644
index c291b832..00000000
Binary files a/public/ridge/amadablam-fb4b9d3701f8/card-1-t06-colour.webp and /dev/null differ
diff --git a/public/ridge/amadablam-fb4b9d3701f8/card-1-t06-geometry.webp b/public/ridge/amadablam-fb4b9d3701f8/card-1-t06-geometry.webp
deleted file mode 100644
index 24053679..00000000
Binary files a/public/ridge/amadablam-fb4b9d3701f8/card-1-t06-geometry.webp and /dev/null differ
diff --git a/public/ridge/amadablam-fb4b9d3701f8/card-1-t07-colour.webp b/public/ridge/amadablam-fb4b9d3701f8/card-1-t07-colour.webp
deleted file mode 100644
index e1af53b0..00000000
Binary files a/public/ridge/amadablam-fb4b9d3701f8/card-1-t07-colour.webp and /dev/null differ
diff --git a/public/ridge/amadablam-fb4b9d3701f8/card-1-t07-geometry.webp b/public/ridge/amadablam-fb4b9d3701f8/card-1-t07-geometry.webp
deleted file mode 100644
index 5ba0bffd..00000000
Binary files a/public/ridge/amadablam-fb4b9d3701f8/card-1-t07-geometry.webp and /dev/null differ
diff --git a/public/ridge/amadablam-fb4b9d3701f8/card-1-t08-colour.webp b/public/ridge/amadablam-fb4b9d3701f8/card-1-t08-colour.webp
deleted file mode 100644
index 0a5dc617..00000000
Binary files a/public/ridge/amadablam-fb4b9d3701f8/card-1-t08-colour.webp and /dev/null differ
diff --git a/public/ridge/amadablam-fb4b9d3701f8/card-1-t08-geometry.webp b/public/ridge/amadablam-fb4b9d3701f8/card-1-t08-geometry.webp
deleted file mode 100644
index 4251abdc..00000000
Binary files a/public/ridge/amadablam-fb4b9d3701f8/card-1-t08-geometry.webp and /dev/null differ
diff --git a/public/ridge/amadablam-fb4b9d3701f8/card-1-t09-colour.webp b/public/ridge/amadablam-fb4b9d3701f8/card-1-t09-colour.webp
deleted file mode 100644
index cd35d1c2..00000000
Binary files a/public/ridge/amadablam-fb4b9d3701f8/card-1-t09-colour.webp and /dev/null differ
diff --git a/public/ridge/amadablam-fb4b9d3701f8/card-1-t09-geometry.webp b/public/ridge/amadablam-fb4b9d3701f8/card-1-t09-geometry.webp
deleted file mode 100644
index 40de3a02..00000000
Binary files a/public/ridge/amadablam-fb4b9d3701f8/card-1-t09-geometry.webp and /dev/null differ
diff --git a/public/ridge/amadablam-fb4b9d3701f8/card-1-t10-colour.webp b/public/ridge/amadablam-fb4b9d3701f8/card-1-t10-colour.webp
deleted file mode 100644
index 0f8f7483..00000000
Binary files a/public/ridge/amadablam-fb4b9d3701f8/card-1-t10-colour.webp and /dev/null differ
diff --git a/public/ridge/amadablam-fb4b9d3701f8/card-1-t10-geometry.webp b/public/ridge/amadablam-fb4b9d3701f8/card-1-t10-geometry.webp
deleted file mode 100644
index 28f5c6d6..00000000
Binary files a/public/ridge/amadablam-fb4b9d3701f8/card-1-t10-geometry.webp and /dev/null differ
diff --git a/public/ridge/amadablam-fb4b9d3701f8/card-1-t11-colour.webp b/public/ridge/amadablam-fb4b9d3701f8/card-1-t11-colour.webp
deleted file mode 100644
index 415c3bcb..00000000
Binary files a/public/ridge/amadablam-fb4b9d3701f8/card-1-t11-colour.webp and /dev/null differ
diff --git a/public/ridge/amadablam-fb4b9d3701f8/card-1-t11-geometry.webp b/public/ridge/amadablam-fb4b9d3701f8/card-1-t11-geometry.webp
deleted file mode 100644
index 0e49c504..00000000
Binary files a/public/ridge/amadablam-fb4b9d3701f8/card-1-t11-geometry.webp and /dev/null differ
diff --git a/public/ridge/amadablam-fb4b9d3701f8/card-1-t12-colour.webp b/public/ridge/amadablam-fb4b9d3701f8/card-1-t12-colour.webp
deleted file mode 100644
index bd141f76..00000000
Binary files a/public/ridge/amadablam-fb4b9d3701f8/card-1-t12-colour.webp and /dev/null differ
diff --git a/public/ridge/amadablam-fb4b9d3701f8/card-1-t12-geometry.webp b/public/ridge/amadablam-fb4b9d3701f8/card-1-t12-geometry.webp
deleted file mode 100644
index f33dfb18..00000000
Binary files a/public/ridge/amadablam-fb4b9d3701f8/card-1-t12-geometry.webp and /dev/null differ
diff --git a/public/ridge/amadablam-fb4b9d3701f8/card-1-t13-colour.webp b/public/ridge/amadablam-fb4b9d3701f8/card-1-t13-colour.webp
deleted file mode 100644
index 5f72df6a..00000000
Binary files a/public/ridge/amadablam-fb4b9d3701f8/card-1-t13-colour.webp and /dev/null differ
diff --git a/public/ridge/amadablam-fb4b9d3701f8/card-1-t13-geometry.webp b/public/ridge/amadablam-fb4b9d3701f8/card-1-t13-geometry.webp
deleted file mode 100644
index bebdcae6..00000000
Binary files a/public/ridge/amadablam-fb4b9d3701f8/card-1-t13-geometry.webp and /dev/null differ
diff --git a/public/ridge/amadablam-fb4b9d3701f8/card-1-t14-colour.webp b/public/ridge/amadablam-fb4b9d3701f8/card-1-t14-colour.webp
deleted file mode 100644
index d6411b5f..00000000
Binary files a/public/ridge/amadablam-fb4b9d3701f8/card-1-t14-colour.webp and /dev/null differ
diff --git a/public/ridge/amadablam-fb4b9d3701f8/card-1-t14-geometry.webp b/public/ridge/amadablam-fb4b9d3701f8/card-1-t14-geometry.webp
deleted file mode 100644
index b9ce811a..00000000
Binary files a/public/ridge/amadablam-fb4b9d3701f8/card-1-t14-geometry.webp and /dev/null differ
diff --git a/public/ridge/amadablam-fb4b9d3701f8/card-1-t15-colour.webp b/public/ridge/amadablam-fb4b9d3701f8/card-1-t15-colour.webp
deleted file mode 100644
index 9e851859..00000000
Binary files a/public/ridge/amadablam-fb4b9d3701f8/card-1-t15-colour.webp and /dev/null differ
diff --git a/public/ridge/amadablam-fb4b9d3701f8/card-1-t15-geometry.webp b/public/ridge/amadablam-fb4b9d3701f8/card-1-t15-geometry.webp
deleted file mode 100644
index 046d6462..00000000
Binary files a/public/ridge/amadablam-fb4b9d3701f8/card-1-t15-geometry.webp and /dev/null differ
diff --git a/public/ridge/amadablam-fb4b9d3701f8/card-1-t16-colour.webp b/public/ridge/amadablam-fb4b9d3701f8/card-1-t16-colour.webp
deleted file mode 100644
index 7c992076..00000000
Binary files a/public/ridge/amadablam-fb4b9d3701f8/card-1-t16-colour.webp and /dev/null differ
diff --git a/public/ridge/amadablam-fb4b9d3701f8/card-1-t16-geometry.webp b/public/ridge/amadablam-fb4b9d3701f8/card-1-t16-geometry.webp
deleted file mode 100644
index 91ccbf70..00000000
Binary files a/public/ridge/amadablam-fb4b9d3701f8/card-1-t16-geometry.webp and /dev/null differ
diff --git a/public/ridge/amadablam-fb4b9d3701f8/card-1-t17-colour.webp b/public/ridge/amadablam-fb4b9d3701f8/card-1-t17-colour.webp
deleted file mode 100644
index 54bb3e72..00000000
Binary files a/public/ridge/amadablam-fb4b9d3701f8/card-1-t17-colour.webp and /dev/null differ
diff --git a/public/ridge/amadablam-fb4b9d3701f8/card-1-t17-geometry.webp b/public/ridge/amadablam-fb4b9d3701f8/card-1-t17-geometry.webp
deleted file mode 100644
index a6267d64..00000000
Binary files a/public/ridge/amadablam-fb4b9d3701f8/card-1-t17-geometry.webp and /dev/null differ
diff --git a/public/ridge/amadablam-fb4b9d3701f8/card-1-t18-colour.webp b/public/ridge/amadablam-fb4b9d3701f8/card-1-t18-colour.webp
deleted file mode 100644
index c391c1d6..00000000
Binary files a/public/ridge/amadablam-fb4b9d3701f8/card-1-t18-colour.webp and /dev/null differ
diff --git a/public/ridge/amadablam-fb4b9d3701f8/card-1-t18-geometry.webp b/public/ridge/amadablam-fb4b9d3701f8/card-1-t18-geometry.webp
deleted file mode 100644
index 58901a4a..00000000
Binary files a/public/ridge/amadablam-fb4b9d3701f8/card-1-t18-geometry.webp and /dev/null differ
diff --git a/public/ridge/amadablam-fb4b9d3701f8/card-1-t19-colour.webp b/public/ridge/amadablam-fb4b9d3701f8/card-1-t19-colour.webp
deleted file mode 100644
index 231da848..00000000
Binary files a/public/ridge/amadablam-fb4b9d3701f8/card-1-t19-colour.webp and /dev/null differ
diff --git a/public/ridge/amadablam-fb4b9d3701f8/card-1-t19-geometry.webp b/public/ridge/amadablam-fb4b9d3701f8/card-1-t19-geometry.webp
deleted file mode 100644
index 6da6973a..00000000
Binary files a/public/ridge/amadablam-fb4b9d3701f8/card-1-t19-geometry.webp and /dev/null differ
diff --git a/public/ridge/amadablam-fb4b9d3701f8/card-1-t20-colour.webp b/public/ridge/amadablam-fb4b9d3701f8/card-1-t20-colour.webp
deleted file mode 100644
index 8dba2bfa..00000000
Binary files a/public/ridge/amadablam-fb4b9d3701f8/card-1-t20-colour.webp and /dev/null differ
diff --git a/public/ridge/amadablam-fb4b9d3701f8/card-1-t20-geometry.webp b/public/ridge/amadablam-fb4b9d3701f8/card-1-t20-geometry.webp
deleted file mode 100644
index 03d8361c..00000000
Binary files a/public/ridge/amadablam-fb4b9d3701f8/card-1-t20-geometry.webp and /dev/null differ
diff --git a/public/ridge/amadablam-fb4b9d3701f8/card-1-t21-colour.webp b/public/ridge/amadablam-fb4b9d3701f8/card-1-t21-colour.webp
deleted file mode 100644
index 3f3a1b38..00000000
Binary files a/public/ridge/amadablam-fb4b9d3701f8/card-1-t21-colour.webp and /dev/null differ
diff --git a/public/ridge/amadablam-fb4b9d3701f8/card-1-t21-geometry.webp b/public/ridge/amadablam-fb4b9d3701f8/card-1-t21-geometry.webp
deleted file mode 100644
index 01e0eb34..00000000
Binary files a/public/ridge/amadablam-fb4b9d3701f8/card-1-t21-geometry.webp and /dev/null differ
diff --git a/public/ridge/amadablam-fb4b9d3701f8/card-1-t22-colour.webp b/public/ridge/amadablam-fb4b9d3701f8/card-1-t22-colour.webp
deleted file mode 100644
index f9fa0382..00000000
Binary files a/public/ridge/amadablam-fb4b9d3701f8/card-1-t22-colour.webp and /dev/null differ
diff --git a/public/ridge/amadablam-fb4b9d3701f8/card-1-t22-geometry.webp b/public/ridge/amadablam-fb4b9d3701f8/card-1-t22-geometry.webp
deleted file mode 100644
index fa374bab..00000000
Binary files a/public/ridge/amadablam-fb4b9d3701f8/card-1-t22-geometry.webp and /dev/null differ
diff --git a/public/ridge/amadablam-fb4b9d3701f8/card-1-t23-colour.webp b/public/ridge/amadablam-fb4b9d3701f8/card-1-t23-colour.webp
deleted file mode 100644
index cb623ab0..00000000
Binary files a/public/ridge/amadablam-fb4b9d3701f8/card-1-t23-colour.webp and /dev/null differ
diff --git a/public/ridge/amadablam-fb4b9d3701f8/card-1-t23-geometry.webp b/public/ridge/amadablam-fb4b9d3701f8/card-1-t23-geometry.webp
deleted file mode 100644
index 7e2b271c..00000000
Binary files a/public/ridge/amadablam-fb4b9d3701f8/card-1-t23-geometry.webp and /dev/null differ
diff --git a/public/ridge/amadablam-fb4b9d3701f8/card-1-t24-colour.webp b/public/ridge/amadablam-fb4b9d3701f8/card-1-t24-colour.webp
deleted file mode 100644
index 9f76e74f..00000000
Binary files a/public/ridge/amadablam-fb4b9d3701f8/card-1-t24-colour.webp and /dev/null differ
diff --git a/public/ridge/amadablam-fb4b9d3701f8/card-1-t24-geometry.webp b/public/ridge/amadablam-fb4b9d3701f8/card-1-t24-geometry.webp
deleted file mode 100644
index 50caa14d..00000000
Binary files a/public/ridge/amadablam-fb4b9d3701f8/card-1-t24-geometry.webp and /dev/null differ
diff --git a/public/ridge/amadablam-fb4b9d3701f8/card-1-t25-colour.webp b/public/ridge/amadablam-fb4b9d3701f8/card-1-t25-colour.webp
deleted file mode 100644
index cfbce358..00000000
Binary files a/public/ridge/amadablam-fb4b9d3701f8/card-1-t25-colour.webp and /dev/null differ
diff --git a/public/ridge/amadablam-fb4b9d3701f8/card-1-t25-geometry.webp b/public/ridge/amadablam-fb4b9d3701f8/card-1-t25-geometry.webp
deleted file mode 100644
index 69c31d6a..00000000
Binary files a/public/ridge/amadablam-fb4b9d3701f8/card-1-t25-geometry.webp and /dev/null differ
diff --git a/public/ridge/amadablam-fb4b9d3701f8/card-1-t26-colour.webp b/public/ridge/amadablam-fb4b9d3701f8/card-1-t26-colour.webp
deleted file mode 100644
index e76fe62d..00000000
Binary files a/public/ridge/amadablam-fb4b9d3701f8/card-1-t26-colour.webp and /dev/null differ
diff --git a/public/ridge/amadablam-fb4b9d3701f8/card-1-t26-geometry.webp b/public/ridge/amadablam-fb4b9d3701f8/card-1-t26-geometry.webp
deleted file mode 100644
index e6a81341..00000000
Binary files a/public/ridge/amadablam-fb4b9d3701f8/card-1-t26-geometry.webp and /dev/null differ
diff --git a/public/ridge/amadablam-fb4b9d3701f8/card-1-t27-colour.webp b/public/ridge/amadablam-fb4b9d3701f8/card-1-t27-colour.webp
deleted file mode 100644
index 0cf7ddb0..00000000
Binary files a/public/ridge/amadablam-fb4b9d3701f8/card-1-t27-colour.webp and /dev/null differ
diff --git a/public/ridge/amadablam-fb4b9d3701f8/card-1-t27-geometry.webp b/public/ridge/amadablam-fb4b9d3701f8/card-1-t27-geometry.webp
deleted file mode 100644
index 243781e0..00000000
Binary files a/public/ridge/amadablam-fb4b9d3701f8/card-1-t27-geometry.webp and /dev/null differ
diff --git a/public/ridge/amadablam-fb4b9d3701f8/card-1-t28-colour.webp b/public/ridge/amadablam-fb4b9d3701f8/card-1-t28-colour.webp
deleted file mode 100644
index 60d7ffb0..00000000
Binary files a/public/ridge/amadablam-fb4b9d3701f8/card-1-t28-colour.webp and /dev/null differ
diff --git a/public/ridge/amadablam-fb4b9d3701f8/card-1-t28-geometry.webp b/public/ridge/amadablam-fb4b9d3701f8/card-1-t28-geometry.webp
deleted file mode 100644
index 27084cef..00000000
Binary files a/public/ridge/amadablam-fb4b9d3701f8/card-1-t28-geometry.webp and /dev/null differ
diff --git a/public/ridge/amadablam-fb4b9d3701f8/card-1-t29-colour.webp b/public/ridge/amadablam-fb4b9d3701f8/card-1-t29-colour.webp
deleted file mode 100644
index e20ba446..00000000
Binary files a/public/ridge/amadablam-fb4b9d3701f8/card-1-t29-colour.webp and /dev/null differ
diff --git a/public/ridge/amadablam-fb4b9d3701f8/card-1-t29-geometry.webp b/public/ridge/amadablam-fb4b9d3701f8/card-1-t29-geometry.webp
deleted file mode 100644
index 98bcd910..00000000
Binary files a/public/ridge/amadablam-fb4b9d3701f8/card-1-t29-geometry.webp and /dev/null differ
diff --git a/public/ridge/amadablam-fb4b9d3701f8/card-1-t30-colour.webp b/public/ridge/amadablam-fb4b9d3701f8/card-1-t30-colour.webp
deleted file mode 100644
index 8b37ec6e..00000000
Binary files a/public/ridge/amadablam-fb4b9d3701f8/card-1-t30-colour.webp and /dev/null differ
diff --git a/public/ridge/amadablam-fb4b9d3701f8/card-1-t30-geometry.webp b/public/ridge/amadablam-fb4b9d3701f8/card-1-t30-geometry.webp
deleted file mode 100644
index 1de2b58b..00000000
Binary files a/public/ridge/amadablam-fb4b9d3701f8/card-1-t30-geometry.webp and /dev/null differ
diff --git a/public/ridge/amadablam-fb4b9d3701f8/card-1-t31-colour.webp b/public/ridge/amadablam-fb4b9d3701f8/card-1-t31-colour.webp
deleted file mode 100644
index e368eaa2..00000000
Binary files a/public/ridge/amadablam-fb4b9d3701f8/card-1-t31-colour.webp and /dev/null differ
diff --git a/public/ridge/amadablam-fb4b9d3701f8/card-1-t31-geometry.webp b/public/ridge/amadablam-fb4b9d3701f8/card-1-t31-geometry.webp
deleted file mode 100644
index 8d1a8759..00000000
Binary files a/public/ridge/amadablam-fb4b9d3701f8/card-1-t31-geometry.webp and /dev/null differ
diff --git a/public/ridge/amadablam-fb4b9d3701f8/card-2-t00-colour.webp b/public/ridge/amadablam-fb4b9d3701f8/card-2-t00-colour.webp
deleted file mode 100644
index 93c0093b..00000000
Binary files a/public/ridge/amadablam-fb4b9d3701f8/card-2-t00-colour.webp and /dev/null differ
diff --git a/public/ridge/amadablam-fb4b9d3701f8/card-2-t00-geometry.webp b/public/ridge/amadablam-fb4b9d3701f8/card-2-t00-geometry.webp
deleted file mode 100644
index 74594ec5..00000000
Binary files a/public/ridge/amadablam-fb4b9d3701f8/card-2-t00-geometry.webp and /dev/null differ
diff --git a/public/ridge/amadablam-fb4b9d3701f8/card-2-t01-colour.webp b/public/ridge/amadablam-fb4b9d3701f8/card-2-t01-colour.webp
deleted file mode 100644
index 1f39071e..00000000
Binary files a/public/ridge/amadablam-fb4b9d3701f8/card-2-t01-colour.webp and /dev/null differ
diff --git a/public/ridge/amadablam-fb4b9d3701f8/card-2-t01-geometry.webp b/public/ridge/amadablam-fb4b9d3701f8/card-2-t01-geometry.webp
deleted file mode 100644
index 3a7e8512..00000000
Binary files a/public/ridge/amadablam-fb4b9d3701f8/card-2-t01-geometry.webp and /dev/null differ
diff --git a/public/ridge/amadablam-fb4b9d3701f8/card-2-t02-colour.webp b/public/ridge/amadablam-fb4b9d3701f8/card-2-t02-colour.webp
deleted file mode 100644
index 24c31463..00000000
Binary files a/public/ridge/amadablam-fb4b9d3701f8/card-2-t02-colour.webp and /dev/null differ
diff --git a/public/ridge/amadablam-fb4b9d3701f8/card-2-t02-geometry.webp b/public/ridge/amadablam-fb4b9d3701f8/card-2-t02-geometry.webp
deleted file mode 100644
index 82a6ae7f..00000000
Binary files a/public/ridge/amadablam-fb4b9d3701f8/card-2-t02-geometry.webp and /dev/null differ
diff --git a/public/ridge/amadablam-fb4b9d3701f8/card-2-t03-colour.webp b/public/ridge/amadablam-fb4b9d3701f8/card-2-t03-colour.webp
deleted file mode 100644
index 8f2941bb..00000000
Binary files a/public/ridge/amadablam-fb4b9d3701f8/card-2-t03-colour.webp and /dev/null differ
diff --git a/public/ridge/amadablam-fb4b9d3701f8/card-2-t03-geometry.webp b/public/ridge/amadablam-fb4b9d3701f8/card-2-t03-geometry.webp
deleted file mode 100644
index a56ea57c..00000000
Binary files a/public/ridge/amadablam-fb4b9d3701f8/card-2-t03-geometry.webp and /dev/null differ
diff --git a/public/ridge/amadablam-fb4b9d3701f8/card-2-t04-colour.webp b/public/ridge/amadablam-fb4b9d3701f8/card-2-t04-colour.webp
deleted file mode 100644
index 6bf2127d..00000000
Binary files a/public/ridge/amadablam-fb4b9d3701f8/card-2-t04-colour.webp and /dev/null differ
diff --git a/public/ridge/amadablam-fb4b9d3701f8/card-2-t04-geometry.webp b/public/ridge/amadablam-fb4b9d3701f8/card-2-t04-geometry.webp
deleted file mode 100644
index 340c19b7..00000000
Binary files a/public/ridge/amadablam-fb4b9d3701f8/card-2-t04-geometry.webp and /dev/null differ
diff --git a/public/ridge/amadablam-fb4b9d3701f8/card-2-t05-colour.webp b/public/ridge/amadablam-fb4b9d3701f8/card-2-t05-colour.webp
deleted file mode 100644
index 84eb0c69..00000000
Binary files a/public/ridge/amadablam-fb4b9d3701f8/card-2-t05-colour.webp and /dev/null differ
diff --git a/public/ridge/amadablam-fb4b9d3701f8/card-2-t05-geometry.webp b/public/ridge/amadablam-fb4b9d3701f8/card-2-t05-geometry.webp
deleted file mode 100644
index 9d7f0d82..00000000
Binary files a/public/ridge/amadablam-fb4b9d3701f8/card-2-t05-geometry.webp and /dev/null differ
diff --git a/public/ridge/amadablam-fb4b9d3701f8/card-2-t06-colour.webp b/public/ridge/amadablam-fb4b9d3701f8/card-2-t06-colour.webp
deleted file mode 100644
index 256a69d4..00000000
Binary files a/public/ridge/amadablam-fb4b9d3701f8/card-2-t06-colour.webp and /dev/null differ
diff --git a/public/ridge/amadablam-fb4b9d3701f8/card-2-t06-geometry.webp b/public/ridge/amadablam-fb4b9d3701f8/card-2-t06-geometry.webp
deleted file mode 100644
index e91016e5..00000000
Binary files a/public/ridge/amadablam-fb4b9d3701f8/card-2-t06-geometry.webp and /dev/null differ
diff --git a/public/ridge/amadablam-fb4b9d3701f8/card-2-t07-colour.webp b/public/ridge/amadablam-fb4b9d3701f8/card-2-t07-colour.webp
deleted file mode 100644
index 7f3b93e4..00000000
Binary files a/public/ridge/amadablam-fb4b9d3701f8/card-2-t07-colour.webp and /dev/null differ
diff --git a/public/ridge/amadablam-fb4b9d3701f8/card-2-t07-geometry.webp b/public/ridge/amadablam-fb4b9d3701f8/card-2-t07-geometry.webp
deleted file mode 100644
index 7654fa73..00000000
Binary files a/public/ridge/amadablam-fb4b9d3701f8/card-2-t07-geometry.webp and /dev/null differ
diff --git a/public/ridge/amadablam-fb4b9d3701f8/card-2-t08-colour.webp b/public/ridge/amadablam-fb4b9d3701f8/card-2-t08-colour.webp
deleted file mode 100644
index 60cd5c1a..00000000
Binary files a/public/ridge/amadablam-fb4b9d3701f8/card-2-t08-colour.webp and /dev/null differ
diff --git a/public/ridge/amadablam-fb4b9d3701f8/card-2-t08-geometry.webp b/public/ridge/amadablam-fb4b9d3701f8/card-2-t08-geometry.webp
deleted file mode 100644
index 561a4768..00000000
Binary files a/public/ridge/amadablam-fb4b9d3701f8/card-2-t08-geometry.webp and /dev/null differ
diff --git a/public/ridge/amadablam-fb4b9d3701f8/card-2-t09-colour.webp b/public/ridge/amadablam-fb4b9d3701f8/card-2-t09-colour.webp
deleted file mode 100644
index a18e5331..00000000
Binary files a/public/ridge/amadablam-fb4b9d3701f8/card-2-t09-colour.webp and /dev/null differ
diff --git a/public/ridge/amadablam-fb4b9d3701f8/card-2-t09-geometry.webp b/public/ridge/amadablam-fb4b9d3701f8/card-2-t09-geometry.webp
deleted file mode 100644
index 8753533d..00000000
Binary files a/public/ridge/amadablam-fb4b9d3701f8/card-2-t09-geometry.webp and /dev/null differ
diff --git a/public/ridge/amadablam-fb4b9d3701f8/card-2-t10-colour.webp b/public/ridge/amadablam-fb4b9d3701f8/card-2-t10-colour.webp
deleted file mode 100644
index 0be83368..00000000
Binary files a/public/ridge/amadablam-fb4b9d3701f8/card-2-t10-colour.webp and /dev/null differ
diff --git a/public/ridge/amadablam-fb4b9d3701f8/card-2-t10-geometry.webp b/public/ridge/amadablam-fb4b9d3701f8/card-2-t10-geometry.webp
deleted file mode 100644
index 0ed32ac1..00000000
Binary files a/public/ridge/amadablam-fb4b9d3701f8/card-2-t10-geometry.webp and /dev/null differ
diff --git a/public/ridge/amadablam-fb4b9d3701f8/card-2-t11-colour.webp b/public/ridge/amadablam-fb4b9d3701f8/card-2-t11-colour.webp
deleted file mode 100644
index 26afbd42..00000000
Binary files a/public/ridge/amadablam-fb4b9d3701f8/card-2-t11-colour.webp and /dev/null differ
diff --git a/public/ridge/amadablam-fb4b9d3701f8/card-2-t11-geometry.webp b/public/ridge/amadablam-fb4b9d3701f8/card-2-t11-geometry.webp
deleted file mode 100644
index 196977ee..00000000
Binary files a/public/ridge/amadablam-fb4b9d3701f8/card-2-t11-geometry.webp and /dev/null differ
diff --git a/public/ridge/amadablam-fb4b9d3701f8/card-2-t12-colour.webp b/public/ridge/amadablam-fb4b9d3701f8/card-2-t12-colour.webp
deleted file mode 100644
index 43a5d09e..00000000
Binary files a/public/ridge/amadablam-fb4b9d3701f8/card-2-t12-colour.webp and /dev/null differ
diff --git a/public/ridge/amadablam-fb4b9d3701f8/card-2-t12-geometry.webp b/public/ridge/amadablam-fb4b9d3701f8/card-2-t12-geometry.webp
deleted file mode 100644
index e5b6320f..00000000
Binary files a/public/ridge/amadablam-fb4b9d3701f8/card-2-t12-geometry.webp and /dev/null differ
diff --git a/public/ridge/amadablam-fb4b9d3701f8/card-2-t13-colour.webp b/public/ridge/amadablam-fb4b9d3701f8/card-2-t13-colour.webp
deleted file mode 100644
index 14783d3c..00000000
Binary files a/public/ridge/amadablam-fb4b9d3701f8/card-2-t13-colour.webp and /dev/null differ
diff --git a/public/ridge/amadablam-fb4b9d3701f8/card-2-t13-geometry.webp b/public/ridge/amadablam-fb4b9d3701f8/card-2-t13-geometry.webp
deleted file mode 100644
index f027c960..00000000
Binary files a/public/ridge/amadablam-fb4b9d3701f8/card-2-t13-geometry.webp and /dev/null differ
diff --git a/public/ridge/amadablam-fb4b9d3701f8/card-2-t14-colour.webp b/public/ridge/amadablam-fb4b9d3701f8/card-2-t14-colour.webp
deleted file mode 100644
index 1846db8f..00000000
Binary files a/public/ridge/amadablam-fb4b9d3701f8/card-2-t14-colour.webp and /dev/null differ
diff --git a/public/ridge/amadablam-fb4b9d3701f8/card-2-t14-geometry.webp b/public/ridge/amadablam-fb4b9d3701f8/card-2-t14-geometry.webp
deleted file mode 100644
index bf9b2329..00000000
Binary files a/public/ridge/amadablam-fb4b9d3701f8/card-2-t14-geometry.webp and /dev/null differ
diff --git a/public/ridge/amadablam-fb4b9d3701f8/card-2-t15-colour.webp b/public/ridge/amadablam-fb4b9d3701f8/card-2-t15-colour.webp
deleted file mode 100644
index 416b1684..00000000
Binary files a/public/ridge/amadablam-fb4b9d3701f8/card-2-t15-colour.webp and /dev/null differ
diff --git a/public/ridge/amadablam-fb4b9d3701f8/card-2-t15-geometry.webp b/public/ridge/amadablam-fb4b9d3701f8/card-2-t15-geometry.webp
deleted file mode 100644
index 39f228aa..00000000
Binary files a/public/ridge/amadablam-fb4b9d3701f8/card-2-t15-geometry.webp and /dev/null differ
diff --git a/public/ridge/amadablam-fb4b9d3701f8/card-2-t16-colour.webp b/public/ridge/amadablam-fb4b9d3701f8/card-2-t16-colour.webp
deleted file mode 100644
index 49b833ea..00000000
Binary files a/public/ridge/amadablam-fb4b9d3701f8/card-2-t16-colour.webp and /dev/null differ
diff --git a/public/ridge/amadablam-fb4b9d3701f8/card-2-t16-geometry.webp b/public/ridge/amadablam-fb4b9d3701f8/card-2-t16-geometry.webp
deleted file mode 100644
index 8431805d..00000000
Binary files a/public/ridge/amadablam-fb4b9d3701f8/card-2-t16-geometry.webp and /dev/null differ
diff --git a/public/ridge/amadablam-fb4b9d3701f8/card-2-t17-colour.webp b/public/ridge/amadablam-fb4b9d3701f8/card-2-t17-colour.webp
deleted file mode 100644
index 5230f411..00000000
Binary files a/public/ridge/amadablam-fb4b9d3701f8/card-2-t17-colour.webp and /dev/null differ
diff --git a/public/ridge/amadablam-fb4b9d3701f8/card-2-t17-geometry.webp b/public/ridge/amadablam-fb4b9d3701f8/card-2-t17-geometry.webp
deleted file mode 100644
index 4305a2f4..00000000
Binary files a/public/ridge/amadablam-fb4b9d3701f8/card-2-t17-geometry.webp and /dev/null differ
diff --git a/public/ridge/amadablam-fb4b9d3701f8/card-2-t18-colour.webp b/public/ridge/amadablam-fb4b9d3701f8/card-2-t18-colour.webp
deleted file mode 100644
index 4612a1d3..00000000
Binary files a/public/ridge/amadablam-fb4b9d3701f8/card-2-t18-colour.webp and /dev/null differ
diff --git a/public/ridge/amadablam-fb4b9d3701f8/card-2-t18-geometry.webp b/public/ridge/amadablam-fb4b9d3701f8/card-2-t18-geometry.webp
deleted file mode 100644
index 64c1a000..00000000
Binary files a/public/ridge/amadablam-fb4b9d3701f8/card-2-t18-geometry.webp and /dev/null differ
diff --git a/public/ridge/amadablam-fb4b9d3701f8/card-2-t19-colour.webp b/public/ridge/amadablam-fb4b9d3701f8/card-2-t19-colour.webp
deleted file mode 100644
index ed8b4879..00000000
Binary files a/public/ridge/amadablam-fb4b9d3701f8/card-2-t19-colour.webp and /dev/null differ
diff --git a/public/ridge/amadablam-fb4b9d3701f8/card-2-t19-geometry.webp b/public/ridge/amadablam-fb4b9d3701f8/card-2-t19-geometry.webp
deleted file mode 100644
index 6a5155db..00000000
Binary files a/public/ridge/amadablam-fb4b9d3701f8/card-2-t19-geometry.webp and /dev/null differ
diff --git a/public/ridge/amadablam-fb4b9d3701f8/card-2-t20-colour.webp b/public/ridge/amadablam-fb4b9d3701f8/card-2-t20-colour.webp
deleted file mode 100644
index 496fc9da..00000000
Binary files a/public/ridge/amadablam-fb4b9d3701f8/card-2-t20-colour.webp and /dev/null differ
diff --git a/public/ridge/amadablam-fb4b9d3701f8/card-2-t20-geometry.webp b/public/ridge/amadablam-fb4b9d3701f8/card-2-t20-geometry.webp
deleted file mode 100644
index add706aa..00000000
Binary files a/public/ridge/amadablam-fb4b9d3701f8/card-2-t20-geometry.webp and /dev/null differ
diff --git a/public/ridge/amadablam-fb4b9d3701f8/card-2-t21-colour.webp b/public/ridge/amadablam-fb4b9d3701f8/card-2-t21-colour.webp
deleted file mode 100644
index a7cd3c5a..00000000
Binary files a/public/ridge/amadablam-fb4b9d3701f8/card-2-t21-colour.webp and /dev/null differ
diff --git a/public/ridge/amadablam-fb4b9d3701f8/card-2-t21-geometry.webp b/public/ridge/amadablam-fb4b9d3701f8/card-2-t21-geometry.webp
deleted file mode 100644
index 3ed5b201..00000000
Binary files a/public/ridge/amadablam-fb4b9d3701f8/card-2-t21-geometry.webp and /dev/null differ
diff --git a/public/ridge/amadablam-fb4b9d3701f8/card-2-t22-colour.webp b/public/ridge/amadablam-fb4b9d3701f8/card-2-t22-colour.webp
deleted file mode 100644
index a4548917..00000000
Binary files a/public/ridge/amadablam-fb4b9d3701f8/card-2-t22-colour.webp and /dev/null differ
diff --git a/public/ridge/amadablam-fb4b9d3701f8/card-2-t22-geometry.webp b/public/ridge/amadablam-fb4b9d3701f8/card-2-t22-geometry.webp
deleted file mode 100644
index 87be9e74..00000000
Binary files a/public/ridge/amadablam-fb4b9d3701f8/card-2-t22-geometry.webp and /dev/null differ
diff --git a/public/ridge/amadablam-fb4b9d3701f8/card-2-t23-colour.webp b/public/ridge/amadablam-fb4b9d3701f8/card-2-t23-colour.webp
deleted file mode 100644
index ee84b831..00000000
Binary files a/public/ridge/amadablam-fb4b9d3701f8/card-2-t23-colour.webp and /dev/null differ
diff --git a/public/ridge/amadablam-fb4b9d3701f8/card-2-t23-geometry.webp b/public/ridge/amadablam-fb4b9d3701f8/card-2-t23-geometry.webp
deleted file mode 100644
index ab9c5738..00000000
Binary files a/public/ridge/amadablam-fb4b9d3701f8/card-2-t23-geometry.webp and /dev/null differ
diff --git a/public/ridge/amadablam-fb4b9d3701f8/card-2-t24-colour.webp b/public/ridge/amadablam-fb4b9d3701f8/card-2-t24-colour.webp
deleted file mode 100644
index 44060f9d..00000000
Binary files a/public/ridge/amadablam-fb4b9d3701f8/card-2-t24-colour.webp and /dev/null differ
diff --git a/public/ridge/amadablam-fb4b9d3701f8/card-2-t24-geometry.webp b/public/ridge/amadablam-fb4b9d3701f8/card-2-t24-geometry.webp
deleted file mode 100644
index c7bc525c..00000000
Binary files a/public/ridge/amadablam-fb4b9d3701f8/card-2-t24-geometry.webp and /dev/null differ
diff --git a/public/ridge/amadablam-fb4b9d3701f8/card-2-t25-colour.webp b/public/ridge/amadablam-fb4b9d3701f8/card-2-t25-colour.webp
deleted file mode 100644
index 5144f816..00000000
Binary files a/public/ridge/amadablam-fb4b9d3701f8/card-2-t25-colour.webp and /dev/null differ
diff --git a/public/ridge/amadablam-fb4b9d3701f8/card-2-t25-geometry.webp b/public/ridge/amadablam-fb4b9d3701f8/card-2-t25-geometry.webp
deleted file mode 100644
index 2aa20203..00000000
Binary files a/public/ridge/amadablam-fb4b9d3701f8/card-2-t25-geometry.webp and /dev/null differ
diff --git a/public/ridge/amadablam-fb4b9d3701f8/card-2-t26-colour.webp b/public/ridge/amadablam-fb4b9d3701f8/card-2-t26-colour.webp
deleted file mode 100644
index c765d30c..00000000
Binary files a/public/ridge/amadablam-fb4b9d3701f8/card-2-t26-colour.webp and /dev/null differ
diff --git a/public/ridge/amadablam-fb4b9d3701f8/card-2-t26-geometry.webp b/public/ridge/amadablam-fb4b9d3701f8/card-2-t26-geometry.webp
deleted file mode 100644
index 60a8b652..00000000
Binary files a/public/ridge/amadablam-fb4b9d3701f8/card-2-t26-geometry.webp and /dev/null differ
diff --git a/public/ridge/amadablam-fb4b9d3701f8/card-2-t27-colour.webp b/public/ridge/amadablam-fb4b9d3701f8/card-2-t27-colour.webp
deleted file mode 100644
index ee7bdde0..00000000
Binary files a/public/ridge/amadablam-fb4b9d3701f8/card-2-t27-colour.webp and /dev/null differ
diff --git a/public/ridge/amadablam-fb4b9d3701f8/card-2-t27-geometry.webp b/public/ridge/amadablam-fb4b9d3701f8/card-2-t27-geometry.webp
deleted file mode 100644
index 7f09cace..00000000
Binary files a/public/ridge/amadablam-fb4b9d3701f8/card-2-t27-geometry.webp and /dev/null differ
diff --git a/public/ridge/amadablam-fb4b9d3701f8/card-2-t28-colour.webp b/public/ridge/amadablam-fb4b9d3701f8/card-2-t28-colour.webp
deleted file mode 100644
index 5ea77269..00000000
Binary files a/public/ridge/amadablam-fb4b9d3701f8/card-2-t28-colour.webp and /dev/null differ
diff --git a/public/ridge/amadablam-fb4b9d3701f8/card-2-t28-geometry.webp b/public/ridge/amadablam-fb4b9d3701f8/card-2-t28-geometry.webp
deleted file mode 100644
index e4b0fbaf..00000000
Binary files a/public/ridge/amadablam-fb4b9d3701f8/card-2-t28-geometry.webp and /dev/null differ
diff --git a/public/ridge/amadablam-fb4b9d3701f8/card-2-t29-colour.webp b/public/ridge/amadablam-fb4b9d3701f8/card-2-t29-colour.webp
deleted file mode 100644
index 0cdbdf60..00000000
Binary files a/public/ridge/amadablam-fb4b9d3701f8/card-2-t29-colour.webp and /dev/null differ
diff --git a/public/ridge/amadablam-fb4b9d3701f8/card-2-t29-geometry.webp b/public/ridge/amadablam-fb4b9d3701f8/card-2-t29-geometry.webp
deleted file mode 100644
index 2ef8405a..00000000
Binary files a/public/ridge/amadablam-fb4b9d3701f8/card-2-t29-geometry.webp and /dev/null differ
diff --git a/public/ridge/amadablam-fb4b9d3701f8/card-2-t30-colour.webp b/public/ridge/amadablam-fb4b9d3701f8/card-2-t30-colour.webp
deleted file mode 100644
index 899fde1b..00000000
Binary files a/public/ridge/amadablam-fb4b9d3701f8/card-2-t30-colour.webp and /dev/null differ
diff --git a/public/ridge/amadablam-fb4b9d3701f8/card-2-t30-geometry.webp b/public/ridge/amadablam-fb4b9d3701f8/card-2-t30-geometry.webp
deleted file mode 100644
index 9fdb3c99..00000000
Binary files a/public/ridge/amadablam-fb4b9d3701f8/card-2-t30-geometry.webp and /dev/null differ
diff --git a/public/ridge/amadablam-fb4b9d3701f8/card-2-t31-colour.webp b/public/ridge/amadablam-fb4b9d3701f8/card-2-t31-colour.webp
deleted file mode 100644
index db63f88b..00000000
Binary files a/public/ridge/amadablam-fb4b9d3701f8/card-2-t31-colour.webp and /dev/null differ
diff --git a/public/ridge/amadablam-fb4b9d3701f8/card-2-t31-geometry.webp b/public/ridge/amadablam-fb4b9d3701f8/card-2-t31-geometry.webp
deleted file mode 100644
index 344e7577..00000000
Binary files a/public/ridge/amadablam-fb4b9d3701f8/card-2-t31-geometry.webp and /dev/null differ
diff --git a/public/ridge/amadablam-fb4b9d3701f8/card-3-t00-colour.webp b/public/ridge/amadablam-fb4b9d3701f8/card-3-t00-colour.webp
deleted file mode 100644
index 8a66ff36..00000000
Binary files a/public/ridge/amadablam-fb4b9d3701f8/card-3-t00-colour.webp and /dev/null differ
diff --git a/public/ridge/amadablam-fb4b9d3701f8/card-3-t00-geometry.webp b/public/ridge/amadablam-fb4b9d3701f8/card-3-t00-geometry.webp
deleted file mode 100644
index 56fc3b66..00000000
Binary files a/public/ridge/amadablam-fb4b9d3701f8/card-3-t00-geometry.webp and /dev/null differ
diff --git a/public/ridge/amadablam-fb4b9d3701f8/card-3-t01-colour.webp b/public/ridge/amadablam-fb4b9d3701f8/card-3-t01-colour.webp
deleted file mode 100644
index bb9dca6e..00000000
Binary files a/public/ridge/amadablam-fb4b9d3701f8/card-3-t01-colour.webp and /dev/null differ
diff --git a/public/ridge/amadablam-fb4b9d3701f8/card-3-t01-geometry.webp b/public/ridge/amadablam-fb4b9d3701f8/card-3-t01-geometry.webp
deleted file mode 100644
index 2b59a1d3..00000000
Binary files a/public/ridge/amadablam-fb4b9d3701f8/card-3-t01-geometry.webp and /dev/null differ
diff --git a/public/ridge/amadablam-fb4b9d3701f8/card-3-t02-colour.webp b/public/ridge/amadablam-fb4b9d3701f8/card-3-t02-colour.webp
deleted file mode 100644
index 1ac1ceea..00000000
Binary files a/public/ridge/amadablam-fb4b9d3701f8/card-3-t02-colour.webp and /dev/null differ
diff --git a/public/ridge/amadablam-fb4b9d3701f8/card-3-t02-geometry.webp b/public/ridge/amadablam-fb4b9d3701f8/card-3-t02-geometry.webp
deleted file mode 100644
index b9aeb249..00000000
Binary files a/public/ridge/amadablam-fb4b9d3701f8/card-3-t02-geometry.webp and /dev/null differ
diff --git a/public/ridge/amadablam-fb4b9d3701f8/card-3-t03-colour.webp b/public/ridge/amadablam-fb4b9d3701f8/card-3-t03-colour.webp
deleted file mode 100644
index d5e17840..00000000
Binary files a/public/ridge/amadablam-fb4b9d3701f8/card-3-t03-colour.webp and /dev/null differ
diff --git a/public/ridge/amadablam-fb4b9d3701f8/card-3-t03-geometry.webp b/public/ridge/amadablam-fb4b9d3701f8/card-3-t03-geometry.webp
deleted file mode 100644
index de8c59e1..00000000
Binary files a/public/ridge/amadablam-fb4b9d3701f8/card-3-t03-geometry.webp and /dev/null differ
diff --git a/public/ridge/amadablam-fb4b9d3701f8/card-3-t04-colour.webp b/public/ridge/amadablam-fb4b9d3701f8/card-3-t04-colour.webp
deleted file mode 100644
index 8e8c072b..00000000
Binary files a/public/ridge/amadablam-fb4b9d3701f8/card-3-t04-colour.webp and /dev/null differ
diff --git a/public/ridge/amadablam-fb4b9d3701f8/card-3-t04-geometry.webp b/public/ridge/amadablam-fb4b9d3701f8/card-3-t04-geometry.webp
deleted file mode 100644
index 0a5ce836..00000000
Binary files a/public/ridge/amadablam-fb4b9d3701f8/card-3-t04-geometry.webp and /dev/null differ
diff --git a/public/ridge/amadablam-fb4b9d3701f8/card-3-t05-colour.webp b/public/ridge/amadablam-fb4b9d3701f8/card-3-t05-colour.webp
deleted file mode 100644
index f9c058be..00000000
Binary files a/public/ridge/amadablam-fb4b9d3701f8/card-3-t05-colour.webp and /dev/null differ
diff --git a/public/ridge/amadablam-fb4b9d3701f8/card-3-t05-geometry.webp b/public/ridge/amadablam-fb4b9d3701f8/card-3-t05-geometry.webp
deleted file mode 100644
index 2d406c5b..00000000
Binary files a/public/ridge/amadablam-fb4b9d3701f8/card-3-t05-geometry.webp and /dev/null differ
diff --git a/public/ridge/amadablam-fb4b9d3701f8/card-3-t06-colour.webp b/public/ridge/amadablam-fb4b9d3701f8/card-3-t06-colour.webp
deleted file mode 100644
index 829be4a2..00000000
Binary files a/public/ridge/amadablam-fb4b9d3701f8/card-3-t06-colour.webp and /dev/null differ
diff --git a/public/ridge/amadablam-fb4b9d3701f8/card-3-t06-geometry.webp b/public/ridge/amadablam-fb4b9d3701f8/card-3-t06-geometry.webp
deleted file mode 100644
index 2f699234..00000000
Binary files a/public/ridge/amadablam-fb4b9d3701f8/card-3-t06-geometry.webp and /dev/null differ
diff --git a/public/ridge/amadablam-fb4b9d3701f8/card-3-t07-colour.webp b/public/ridge/amadablam-fb4b9d3701f8/card-3-t07-colour.webp
deleted file mode 100644
index ce55b914..00000000
Binary files a/public/ridge/amadablam-fb4b9d3701f8/card-3-t07-colour.webp and /dev/null differ
diff --git a/public/ridge/amadablam-fb4b9d3701f8/card-3-t07-geometry.webp b/public/ridge/amadablam-fb4b9d3701f8/card-3-t07-geometry.webp
deleted file mode 100644
index 24057242..00000000
Binary files a/public/ridge/amadablam-fb4b9d3701f8/card-3-t07-geometry.webp and /dev/null differ
diff --git a/public/ridge/amadablam-fb4b9d3701f8/card-3-t08-colour.webp b/public/ridge/amadablam-fb4b9d3701f8/card-3-t08-colour.webp
deleted file mode 100644
index e43f71f9..00000000
Binary files a/public/ridge/amadablam-fb4b9d3701f8/card-3-t08-colour.webp and /dev/null differ
diff --git a/public/ridge/amadablam-fb4b9d3701f8/card-3-t08-geometry.webp b/public/ridge/amadablam-fb4b9d3701f8/card-3-t08-geometry.webp
deleted file mode 100644
index 7d645991..00000000
Binary files a/public/ridge/amadablam-fb4b9d3701f8/card-3-t08-geometry.webp and /dev/null differ
diff --git a/public/ridge/amadablam-fb4b9d3701f8/card-3-t09-colour.webp b/public/ridge/amadablam-fb4b9d3701f8/card-3-t09-colour.webp
deleted file mode 100644
index 751da748..00000000
Binary files a/public/ridge/amadablam-fb4b9d3701f8/card-3-t09-colour.webp and /dev/null differ
diff --git a/public/ridge/amadablam-fb4b9d3701f8/card-3-t09-geometry.webp b/public/ridge/amadablam-fb4b9d3701f8/card-3-t09-geometry.webp
deleted file mode 100644
index 16938aa2..00000000
Binary files a/public/ridge/amadablam-fb4b9d3701f8/card-3-t09-geometry.webp and /dev/null differ
diff --git a/public/ridge/amadablam-fb4b9d3701f8/card-3-t10-colour.webp b/public/ridge/amadablam-fb4b9d3701f8/card-3-t10-colour.webp
deleted file mode 100644
index 1ba4f937..00000000
Binary files a/public/ridge/amadablam-fb4b9d3701f8/card-3-t10-colour.webp and /dev/null differ
diff --git a/public/ridge/amadablam-fb4b9d3701f8/card-3-t10-geometry.webp b/public/ridge/amadablam-fb4b9d3701f8/card-3-t10-geometry.webp
deleted file mode 100644
index b90e0a18..00000000
Binary files a/public/ridge/amadablam-fb4b9d3701f8/card-3-t10-geometry.webp and /dev/null differ
diff --git a/public/ridge/amadablam-fb4b9d3701f8/card-3-t11-colour.webp b/public/ridge/amadablam-fb4b9d3701f8/card-3-t11-colour.webp
deleted file mode 100644
index 09513ecf..00000000
Binary files a/public/ridge/amadablam-fb4b9d3701f8/card-3-t11-colour.webp and /dev/null differ
diff --git a/public/ridge/amadablam-fb4b9d3701f8/card-3-t11-geometry.webp b/public/ridge/amadablam-fb4b9d3701f8/card-3-t11-geometry.webp
deleted file mode 100644
index c6eb0d18..00000000
Binary files a/public/ridge/amadablam-fb4b9d3701f8/card-3-t11-geometry.webp and /dev/null differ
diff --git a/public/ridge/amadablam-fb4b9d3701f8/card-3-t12-colour.webp b/public/ridge/amadablam-fb4b9d3701f8/card-3-t12-colour.webp
deleted file mode 100644
index 4739a331..00000000
Binary files a/public/ridge/amadablam-fb4b9d3701f8/card-3-t12-colour.webp and /dev/null differ
diff --git a/public/ridge/amadablam-fb4b9d3701f8/card-3-t12-geometry.webp b/public/ridge/amadablam-fb4b9d3701f8/card-3-t12-geometry.webp
deleted file mode 100644
index d52d9ce1..00000000
Binary files a/public/ridge/amadablam-fb4b9d3701f8/card-3-t12-geometry.webp and /dev/null differ
diff --git a/public/ridge/amadablam-fb4b9d3701f8/card-3-t13-colour.webp b/public/ridge/amadablam-fb4b9d3701f8/card-3-t13-colour.webp
deleted file mode 100644
index a96c59c6..00000000
Binary files a/public/ridge/amadablam-fb4b9d3701f8/card-3-t13-colour.webp and /dev/null differ
diff --git a/public/ridge/amadablam-fb4b9d3701f8/card-3-t13-geometry.webp b/public/ridge/amadablam-fb4b9d3701f8/card-3-t13-geometry.webp
deleted file mode 100644
index 13137b55..00000000
Binary files a/public/ridge/amadablam-fb4b9d3701f8/card-3-t13-geometry.webp and /dev/null differ
diff --git a/public/ridge/amadablam-fb4b9d3701f8/card-3-t14-colour.webp b/public/ridge/amadablam-fb4b9d3701f8/card-3-t14-colour.webp
deleted file mode 100644
index 9ce20b22..00000000
Binary files a/public/ridge/amadablam-fb4b9d3701f8/card-3-t14-colour.webp and /dev/null differ
diff --git a/public/ridge/amadablam-fb4b9d3701f8/card-3-t14-geometry.webp b/public/ridge/amadablam-fb4b9d3701f8/card-3-t14-geometry.webp
deleted file mode 100644
index f77989de..00000000
Binary files a/public/ridge/amadablam-fb4b9d3701f8/card-3-t14-geometry.webp and /dev/null differ
diff --git a/public/ridge/amadablam-fb4b9d3701f8/card-3-t15-colour.webp b/public/ridge/amadablam-fb4b9d3701f8/card-3-t15-colour.webp
deleted file mode 100644
index 22ee61cd..00000000
Binary files a/public/ridge/amadablam-fb4b9d3701f8/card-3-t15-colour.webp and /dev/null differ
diff --git a/public/ridge/amadablam-fb4b9d3701f8/card-3-t15-geometry.webp b/public/ridge/amadablam-fb4b9d3701f8/card-3-t15-geometry.webp
deleted file mode 100644
index cba0db4d..00000000
Binary files a/public/ridge/amadablam-fb4b9d3701f8/card-3-t15-geometry.webp and /dev/null differ
diff --git a/public/ridge/amadablam-fb4b9d3701f8/card-3-t16-colour.webp b/public/ridge/amadablam-fb4b9d3701f8/card-3-t16-colour.webp
deleted file mode 100644
index c7124cf2..00000000
Binary files a/public/ridge/amadablam-fb4b9d3701f8/card-3-t16-colour.webp and /dev/null differ
diff --git a/public/ridge/amadablam-fb4b9d3701f8/card-3-t16-geometry.webp b/public/ridge/amadablam-fb4b9d3701f8/card-3-t16-geometry.webp
deleted file mode 100644
index 9cc64f7d..00000000
Binary files a/public/ridge/amadablam-fb4b9d3701f8/card-3-t16-geometry.webp and /dev/null differ
diff --git a/public/ridge/amadablam-fb4b9d3701f8/card-3-t17-colour.webp b/public/ridge/amadablam-fb4b9d3701f8/card-3-t17-colour.webp
deleted file mode 100644
index 3bf36902..00000000
Binary files a/public/ridge/amadablam-fb4b9d3701f8/card-3-t17-colour.webp and /dev/null differ
diff --git a/public/ridge/amadablam-fb4b9d3701f8/card-3-t17-geometry.webp b/public/ridge/amadablam-fb4b9d3701f8/card-3-t17-geometry.webp
deleted file mode 100644
index 131ec0ea..00000000
Binary files a/public/ridge/amadablam-fb4b9d3701f8/card-3-t17-geometry.webp and /dev/null differ
diff --git a/public/ridge/amadablam-fb4b9d3701f8/card-3-t18-colour.webp b/public/ridge/amadablam-fb4b9d3701f8/card-3-t18-colour.webp
deleted file mode 100644
index c4e371e5..00000000
Binary files a/public/ridge/amadablam-fb4b9d3701f8/card-3-t18-colour.webp and /dev/null differ
diff --git a/public/ridge/amadablam-fb4b9d3701f8/card-3-t18-geometry.webp b/public/ridge/amadablam-fb4b9d3701f8/card-3-t18-geometry.webp
deleted file mode 100644
index fe6beeb2..00000000
Binary files a/public/ridge/amadablam-fb4b9d3701f8/card-3-t18-geometry.webp and /dev/null differ
diff --git a/public/ridge/amadablam-fb4b9d3701f8/card-3-t19-colour.webp b/public/ridge/amadablam-fb4b9d3701f8/card-3-t19-colour.webp
deleted file mode 100644
index d071749b..00000000
Binary files a/public/ridge/amadablam-fb4b9d3701f8/card-3-t19-colour.webp and /dev/null differ
diff --git a/public/ridge/amadablam-fb4b9d3701f8/card-3-t19-geometry.webp b/public/ridge/amadablam-fb4b9d3701f8/card-3-t19-geometry.webp
deleted file mode 100644
index 27d87840..00000000
Binary files a/public/ridge/amadablam-fb4b9d3701f8/card-3-t19-geometry.webp and /dev/null differ
diff --git a/public/ridge/amadablam-fb4b9d3701f8/card-3-t20-colour.webp b/public/ridge/amadablam-fb4b9d3701f8/card-3-t20-colour.webp
deleted file mode 100644
index 4cadc5cb..00000000
Binary files a/public/ridge/amadablam-fb4b9d3701f8/card-3-t20-colour.webp and /dev/null differ
diff --git a/public/ridge/amadablam-fb4b9d3701f8/card-3-t20-geometry.webp b/public/ridge/amadablam-fb4b9d3701f8/card-3-t20-geometry.webp
deleted file mode 100644
index 521f42bf..00000000
Binary files a/public/ridge/amadablam-fb4b9d3701f8/card-3-t20-geometry.webp and /dev/null differ
diff --git a/public/ridge/amadablam-fb4b9d3701f8/card-3-t21-colour.webp b/public/ridge/amadablam-fb4b9d3701f8/card-3-t21-colour.webp
deleted file mode 100644
index fbeb7e2c..00000000
Binary files a/public/ridge/amadablam-fb4b9d3701f8/card-3-t21-colour.webp and /dev/null differ
diff --git a/public/ridge/amadablam-fb4b9d3701f8/card-3-t21-geometry.webp b/public/ridge/amadablam-fb4b9d3701f8/card-3-t21-geometry.webp
deleted file mode 100644
index 3c12322f..00000000
Binary files a/public/ridge/amadablam-fb4b9d3701f8/card-3-t21-geometry.webp and /dev/null differ
diff --git a/public/ridge/amadablam-fb4b9d3701f8/card-3-t22-colour.webp b/public/ridge/amadablam-fb4b9d3701f8/card-3-t22-colour.webp
deleted file mode 100644
index f4652b74..00000000
Binary files a/public/ridge/amadablam-fb4b9d3701f8/card-3-t22-colour.webp and /dev/null differ
diff --git a/public/ridge/amadablam-fb4b9d3701f8/card-3-t22-geometry.webp b/public/ridge/amadablam-fb4b9d3701f8/card-3-t22-geometry.webp
deleted file mode 100644
index a67f8536..00000000
Binary files a/public/ridge/amadablam-fb4b9d3701f8/card-3-t22-geometry.webp and /dev/null differ
diff --git a/public/ridge/amadablam-fb4b9d3701f8/card-3-t23-colour.webp b/public/ridge/amadablam-fb4b9d3701f8/card-3-t23-colour.webp
deleted file mode 100644
index d4abfd22..00000000
Binary files a/public/ridge/amadablam-fb4b9d3701f8/card-3-t23-colour.webp and /dev/null differ
diff --git a/public/ridge/amadablam-fb4b9d3701f8/card-3-t23-geometry.webp b/public/ridge/amadablam-fb4b9d3701f8/card-3-t23-geometry.webp
deleted file mode 100644
index 024c1b03..00000000
Binary files a/public/ridge/amadablam-fb4b9d3701f8/card-3-t23-geometry.webp and /dev/null differ
diff --git a/public/ridge/amadablam-fb4b9d3701f8/card-3-t24-colour.webp b/public/ridge/amadablam-fb4b9d3701f8/card-3-t24-colour.webp
deleted file mode 100644
index fd02bc1b..00000000
Binary files a/public/ridge/amadablam-fb4b9d3701f8/card-3-t24-colour.webp and /dev/null differ
diff --git a/public/ridge/amadablam-fb4b9d3701f8/card-3-t24-geometry.webp b/public/ridge/amadablam-fb4b9d3701f8/card-3-t24-geometry.webp
deleted file mode 100644
index 15f821ca..00000000
Binary files a/public/ridge/amadablam-fb4b9d3701f8/card-3-t24-geometry.webp and /dev/null differ
diff --git a/public/ridge/amadablam-fb4b9d3701f8/card-3-t25-colour.webp b/public/ridge/amadablam-fb4b9d3701f8/card-3-t25-colour.webp
deleted file mode 100644
index 242370d1..00000000
Binary files a/public/ridge/amadablam-fb4b9d3701f8/card-3-t25-colour.webp and /dev/null differ
diff --git a/public/ridge/amadablam-fb4b9d3701f8/card-3-t25-geometry.webp b/public/ridge/amadablam-fb4b9d3701f8/card-3-t25-geometry.webp
deleted file mode 100644
index 3dd27b4a..00000000
Binary files a/public/ridge/amadablam-fb4b9d3701f8/card-3-t25-geometry.webp and /dev/null differ
diff --git a/public/ridge/amadablam-fb4b9d3701f8/card-3-t26-colour.webp b/public/ridge/amadablam-fb4b9d3701f8/card-3-t26-colour.webp
deleted file mode 100644
index d3d28854..00000000
Binary files a/public/ridge/amadablam-fb4b9d3701f8/card-3-t26-colour.webp and /dev/null differ
diff --git a/public/ridge/amadablam-fb4b9d3701f8/card-3-t26-geometry.webp b/public/ridge/amadablam-fb4b9d3701f8/card-3-t26-geometry.webp
deleted file mode 100644
index c566de97..00000000
Binary files a/public/ridge/amadablam-fb4b9d3701f8/card-3-t26-geometry.webp and /dev/null differ
diff --git a/public/ridge/amadablam-fb4b9d3701f8/card-3-t27-colour.webp b/public/ridge/amadablam-fb4b9d3701f8/card-3-t27-colour.webp
deleted file mode 100644
index 051a929d..00000000
Binary files a/public/ridge/amadablam-fb4b9d3701f8/card-3-t27-colour.webp and /dev/null differ
diff --git a/public/ridge/amadablam-fb4b9d3701f8/card-3-t27-geometry.webp b/public/ridge/amadablam-fb4b9d3701f8/card-3-t27-geometry.webp
deleted file mode 100644
index 11059aa9..00000000
Binary files a/public/ridge/amadablam-fb4b9d3701f8/card-3-t27-geometry.webp and /dev/null differ
diff --git a/public/ridge/amadablam-fb4b9d3701f8/card-3-t28-colour.webp b/public/ridge/amadablam-fb4b9d3701f8/card-3-t28-colour.webp
deleted file mode 100644
index 719e373c..00000000
Binary files a/public/ridge/amadablam-fb4b9d3701f8/card-3-t28-colour.webp and /dev/null differ
diff --git a/public/ridge/amadablam-fb4b9d3701f8/card-3-t28-geometry.webp b/public/ridge/amadablam-fb4b9d3701f8/card-3-t28-geometry.webp
deleted file mode 100644
index 475a0c33..00000000
Binary files a/public/ridge/amadablam-fb4b9d3701f8/card-3-t28-geometry.webp and /dev/null differ
diff --git a/public/ridge/amadablam-fb4b9d3701f8/card-3-t29-colour.webp b/public/ridge/amadablam-fb4b9d3701f8/card-3-t29-colour.webp
deleted file mode 100644
index c63afefd..00000000
Binary files a/public/ridge/amadablam-fb4b9d3701f8/card-3-t29-colour.webp and /dev/null differ
diff --git a/public/ridge/amadablam-fb4b9d3701f8/card-3-t29-geometry.webp b/public/ridge/amadablam-fb4b9d3701f8/card-3-t29-geometry.webp
deleted file mode 100644
index f2eecce0..00000000
Binary files a/public/ridge/amadablam-fb4b9d3701f8/card-3-t29-geometry.webp and /dev/null differ
diff --git a/public/ridge/amadablam-fb4b9d3701f8/card-3-t30-colour.webp b/public/ridge/amadablam-fb4b9d3701f8/card-3-t30-colour.webp
deleted file mode 100644
index feb41172..00000000
Binary files a/public/ridge/amadablam-fb4b9d3701f8/card-3-t30-colour.webp and /dev/null differ
diff --git a/public/ridge/amadablam-fb4b9d3701f8/card-3-t30-geometry.webp b/public/ridge/amadablam-fb4b9d3701f8/card-3-t30-geometry.webp
deleted file mode 100644
index 74dd697d..00000000
Binary files a/public/ridge/amadablam-fb4b9d3701f8/card-3-t30-geometry.webp and /dev/null differ
diff --git a/public/ridge/amadablam-fb4b9d3701f8/card-3-t31-colour.webp b/public/ridge/amadablam-fb4b9d3701f8/card-3-t31-colour.webp
deleted file mode 100644
index 2fa6d324..00000000
Binary files a/public/ridge/amadablam-fb4b9d3701f8/card-3-t31-colour.webp and /dev/null differ
diff --git a/public/ridge/amadablam-fb4b9d3701f8/card-3-t31-geometry.webp b/public/ridge/amadablam-fb4b9d3701f8/card-3-t31-geometry.webp
deleted file mode 100644
index 8b5be64f..00000000
Binary files a/public/ridge/amadablam-fb4b9d3701f8/card-3-t31-geometry.webp and /dev/null differ
diff --git a/public/ridge/amadablam-fb4b9d3701f8/manifest.json b/public/ridge/amadablam-fb4b9d3701f8/manifest.json
deleted file mode 100644
index 74acd5dc..00000000
--- a/public/ridge/amadablam-fb4b9d3701f8/manifest.json
+++ /dev/null
@@ -1,1796 +0,0 @@
-{
- "schema": 3,
- "baker_version": 7,
- "bake_id": "fb4b9d3701f8",
- "place": {
- "id": "amadablam",
- "name": "Ama Dablam and Everest from Khumjung",
- "lat": 27.822000000000003,
- "lon": 86.722666666667,
- "altitude_km": 3.7819838378893,
- "eye_m": 3783.5838378893,
- "tz": "Asia/Kathmandu"
- },
- "view": {
- "look_az_deg": 71.99620826401747,
- "plane_h": 600,
- "px_per_deg_h": 17.77777777777778,
- "px_per_deg_v": 15.211655185147013,
- "exaggeration": 0.8556556041645195,
- "horizon_row": 450.0,
- "sky_row": 24.0,
- "near_row": 396.0,
- "ring_w": 6400,
- "tile_w": 200,
- "tiles": 32,
- "apron": 2
- },
- "curvature": {
- "r_earth_m": 6371000.0,
- "k_ref": 0.13
- },
- "encoding": {
- "log_d_min": 6.214608098422191,
- "log_d_max": 11.00475592466117,
- "normal": "rt8"
- },
- "camera": {
- "r_max_m": 95.8,
- "r_max_forward_m": 198.4
- },
- "cards": [
- {
- "near_m": null,
- "far_m": 2011.718901979742
- },
- {
- "near_m": 2011.718901979742,
- "far_m": 18998.714628561414
- },
- {
- "near_m": 18998.714628561414,
- "far_m": 34575.30863870067
- },
- {
- "near_m": 34575.30863870067,
- "far_m": null
- }
- ],
- "tiles": [
- [
- {
- "top": 52,
- "h": 548,
- "distance_m": 827.252197265625,
- "colour": {
- "file": "card-0-t00-colour.webp",
- "bytes": 1838
- },
- "geometry": {
- "file": "card-0-t00-geometry.webp",
- "bytes": 28162
- }
- },
- {
- "top": 67,
- "h": 533,
- "distance_m": 2306.083984375,
- "colour": {
- "file": "card-1-t00-colour.webp",
- "bytes": 558
- },
- "geometry": {
- "file": "card-1-t00-geometry.webp",
- "bytes": 326
- }
- },
- {
- "top": 336,
- "h": 264,
- "distance_m": 23771.404296875,
- "colour": {
- "file": "card-2-t00-colour.webp",
- "bytes": 1290
- },
- "geometry": {
- "file": "card-2-t00-geometry.webp",
- "bytes": 4978
- }
- },
- {
- "top": 377,
- "h": 223,
- "distance_m": 33055.8046875,
- "colour": {
- "file": "card-3-t00-colour.webp",
- "bytes": 394
- },
- "geometry": {
- "file": "card-3-t00-geometry.webp",
- "bytes": 1576
- }
- }
- ],
- [
- {
- "top": 79,
- "h": 521,
- "distance_m": 770.1353759765625,
- "colour": {
- "file": "card-0-t01-colour.webp",
- "bytes": 2048
- },
- "geometry": {
- "file": "card-0-t01-geometry.webp",
- "bytes": 31896
- }
- },
- {
- "top": 124,
- "h": 476,
- "distance_m": 1900.0,
- "colour": {
- "file": "card-1-t01-colour.webp",
- "bytes": 550
- },
- "geometry": {
- "file": "card-1-t01-geometry.webp",
- "bytes": 282
- }
- },
- {
- "top": 333,
- "h": 267,
- "distance_m": 21694.78125,
- "colour": {
- "file": "card-2-t01-colour.webp",
- "bytes": 1000
- },
- "geometry": {
- "file": "card-2-t01-geometry.webp",
- "bytes": 3070
- }
- },
- {
- "top": 382,
- "h": 218,
- "distance_m": 32924.10546875,
- "colour": {
- "file": "card-3-t01-colour.webp",
- "bytes": 418
- },
- "geometry": {
- "file": "card-3-t01-geometry.webp",
- "bytes": 1936
- }
- }
- ],
- [
- {
- "top": 143,
- "h": 457,
- "distance_m": 739.466796875,
- "colour": {
- "file": "card-0-t02-colour.webp",
- "bytes": 1984
- },
- "geometry": {
- "file": "card-0-t02-geometry.webp",
- "bytes": 25648
- }
- },
- {
- "top": 226,
- "h": 374,
- "distance_m": 9601.2099609375,
- "colour": {
- "file": "card-1-t02-colour.webp",
- "bytes": 2024
- },
- "geometry": {
- "file": "card-1-t02-geometry.webp",
- "bytes": 14730
- }
- },
- {
- "top": 332,
- "h": 268,
- "distance_m": 24564.380859375,
- "colour": {
- "file": "card-2-t02-colour.webp",
- "bytes": 1394
- },
- "geometry": {
- "file": "card-2-t02-geometry.webp",
- "bytes": 5922
- }
- },
- {
- "top": 372,
- "h": 228,
- "distance_m": 35593.87890625,
- "colour": {
- "file": "card-3-t02-colour.webp",
- "bytes": 688
- },
- "geometry": {
- "file": "card-3-t02-geometry.webp",
- "bytes": 3856
- }
- }
- ],
- [
- {
- "top": 228,
- "h": 372,
- "distance_m": 737.2044067382812,
- "colour": {
- "file": "card-0-t03-colour.webp",
- "bytes": 1622
- },
- "geometry": {
- "file": "card-0-t03-geometry.webp",
- "bytes": 18656
- }
- },
- {
- "top": 226,
- "h": 374,
- "distance_m": 5174.55615234375,
- "colour": {
- "file": "card-1-t03-colour.webp",
- "bytes": 3264
- },
- "geometry": {
- "file": "card-1-t03-geometry.webp",
- "bytes": 27148
- }
- },
- {
- "top": 301,
- "h": 299,
- "distance_m": 22038.73828125,
- "colour": {
- "file": "card-2-t03-colour.webp",
- "bytes": 1774
- },
- "geometry": {
- "file": "card-2-t03-geometry.webp",
- "bytes": 8954
- }
- },
- {
- "top": 372,
- "h": 228,
- "distance_m": 33857.1328125,
- "colour": {
- "file": "card-3-t03-colour.webp",
- "bytes": 422
- },
- "geometry": {
- "file": "card-3-t03-geometry.webp",
- "bytes": 1780
- }
- }
- ],
- [
- {
- "top": 343,
- "h": 257,
- "distance_m": 818.1093139648438,
- "colour": {
- "file": "card-0-t04-colour.webp",
- "bytes": 1776
- },
- "geometry": {
- "file": "card-0-t04-geometry.webp",
- "bytes": 15200
- }
- },
- {
- "top": 266,
- "h": 334,
- "distance_m": 4350.2265625,
- "colour": {
- "file": "card-1-t04-colour.webp",
- "bytes": 2944
- },
- "geometry": {
- "file": "card-1-t04-geometry.webp",
- "bytes": 30542
- }
- },
- {
- "top": 295,
- "h": 305,
- "distance_m": 22713.22265625,
- "colour": {
- "file": "card-2-t04-colour.webp",
- "bytes": 2972
- },
- "geometry": {
- "file": "card-2-t04-geometry.webp",
- "bytes": 17908
- }
- },
- {
- "top": 373,
- "h": 227,
- "distance_m": 35946.43359375,
- "colour": {
- "file": "card-3-t04-colour.webp",
- "bytes": 624
- },
- "geometry": {
- "file": "card-3-t04-geometry.webp",
- "bytes": 2946
- }
- }
- ],
- [
- {
- "top": 447,
- "h": 153,
- "distance_m": 1052.255859375,
- "colour": {
- "file": "card-0-t05-colour.webp",
- "bytes": 1374
- },
- "geometry": {
- "file": "card-0-t05-geometry.webp",
- "bytes": 7956
- }
- },
- {
- "top": 321,
- "h": 279,
- "distance_m": 3597.237548828125,
- "colour": {
- "file": "card-1-t05-colour.webp",
- "bytes": 2970
- },
- "geometry": {
- "file": "card-1-t05-geometry.webp",
- "bytes": 37740
- }
- },
- {
- "top": 319,
- "h": 281,
- "distance_m": 25097.0,
- "colour": {
- "file": "card-2-t05-colour.webp",
- "bytes": 2224
- },
- "geometry": {
- "file": "card-2-t05-geometry.webp",
- "bytes": 12520
- }
- },
- {
- "top": 376,
- "h": 224,
- "distance_m": 33264.33203125,
- "colour": {
- "file": "card-3-t05-colour.webp",
- "bytes": 536
- },
- "geometry": {
- "file": "card-3-t05-geometry.webp",
- "bytes": 1356
- }
- }
- ],
- [
- {
- "top": 572,
- "h": 28,
- "distance_m": 1153.4088134765625,
- "colour": {
- "file": "card-0-t06-colour.webp",
- "bytes": 258
- },
- "geometry": {
- "file": "card-0-t06-geometry.webp",
- "bytes": 408
- }
- },
- {
- "top": 277,
- "h": 323,
- "distance_m": 4320.556640625,
- "colour": {
- "file": "card-1-t06-colour.webp",
- "bytes": 3458
- },
- "geometry": {
- "file": "card-1-t06-geometry.webp",
- "bytes": 46336
- }
- },
- {
- "top": 335,
- "h": 265,
- "distance_m": 19104.140625,
- "colour": {
- "file": "card-2-t06-colour.webp",
- "bytes": 988
- },
- "geometry": {
- "file": "card-2-t06-geometry.webp",
- "bytes": 5090
- }
- },
- {
- "top": 348,
- "h": 252,
- "distance_m": 35518.5,
- "colour": {
- "file": "card-3-t06-colour.webp",
- "bytes": 1318
- },
- "geometry": {
- "file": "card-3-t06-geometry.webp",
- "bytes": 7340
- }
- }
- ],
- [
- {
- "top": 546,
- "h": 54,
- "distance_m": 523.5120849609375,
- "colour": {
- "file": "card-0-t07-colour.webp",
- "bytes": 490
- },
- "geometry": {
- "file": "card-0-t07-geometry.webp",
- "bytes": 328
- }
- },
- {
- "top": 289,
- "h": 311,
- "distance_m": 2965.19775390625,
- "colour": {
- "file": "card-1-t07-colour.webp",
- "bytes": 3514
- },
- "geometry": {
- "file": "card-1-t07-geometry.webp",
- "bytes": 35732
- }
- },
- {
- "top": 349,
- "h": 251,
- "distance_m": 24699.427734375,
- "colour": {
- "file": "card-2-t07-colour.webp",
- "bytes": 582
- },
- "geometry": {
- "file": "card-2-t07-geometry.webp",
- "bytes": 1650
- }
- },
- {
- "top": 354,
- "h": 246,
- "distance_m": 36083.16796875,
- "colour": {
- "file": "card-3-t07-colour.webp",
- "bytes": 1230
- },
- "geometry": {
- "file": "card-3-t07-geometry.webp",
- "bytes": 6006
- }
- }
- ],
- [
- {
- "top": 508,
- "h": 92,
- "distance_m": 554.8743896484375,
- "colour": {
- "file": "card-0-t08-colour.webp",
- "bytes": 540
- },
- "geometry": {
- "file": "card-0-t08-geometry.webp",
- "bytes": 732
- }
- },
- {
- "top": 237,
- "h": 363,
- "distance_m": 2739.012939453125,
- "colour": {
- "file": "card-1-t08-colour.webp",
- "bytes": 2908
- },
- "geometry": {
- "file": "card-1-t08-geometry.webp",
- "bytes": 34586
- }
- },
- {
- "top": 335,
- "h": 265,
- "distance_m": 25563.431640625,
- "colour": {
- "file": "card-2-t08-colour.webp",
- "bytes": 1146
- },
- "geometry": {
- "file": "card-2-t08-geometry.webp",
- "bytes": 4426
- }
- },
- {
- "top": 383,
- "h": 217,
- "distance_m": 34539.72265625,
- "colour": {
- "file": "card-3-t08-colour.webp",
- "bytes": 834
- },
- "geometry": {
- "file": "card-3-t08-geometry.webp",
- "bytes": 2590
- }
- }
- ],
- [
- {
- "top": 500,
- "h": 100,
- "distance_m": 552.1141967773438,
- "colour": {
- "file": "card-0-t09-colour.webp",
- "bytes": 370
- },
- "geometry": {
- "file": "card-0-t09-geometry.webp",
- "bytes": 2318
- }
- },
- {
- "top": 186,
- "h": 414,
- "distance_m": 3015.078369140625,
- "colour": {
- "file": "card-1-t09-colour.webp",
- "bytes": 4034
- },
- "geometry": {
- "file": "card-1-t09-geometry.webp",
- "bytes": 43760
- }
- },
- {
- "top": 326,
- "h": 274,
- "distance_m": 18802.935546875,
- "colour": {
- "file": "card-2-t09-colour.webp",
- "bytes": 1470
- },
- "geometry": {
- "file": "card-2-t09-geometry.webp",
- "bytes": 7174
- }
- },
- {
- "top": 403,
- "h": 197,
- "distance_m": 37542.0,
- "colour": {
- "file": "card-3-t09-colour.webp",
- "bytes": 774
- },
- "geometry": {
- "file": "card-3-t09-geometry.webp",
- "bytes": 2216
- }
- }
- ],
- [
- {
- "top": 444,
- "h": 156,
- "distance_m": 639.7239379882812,
- "colour": {
- "file": "card-0-t10-colour.webp",
- "bytes": 638
- },
- "geometry": {
- "file": "card-0-t10-geometry.webp",
- "bytes": 2276
- }
- },
- {
- "top": 123,
- "h": 477,
- "distance_m": 3232.07958984375,
- "colour": {
- "file": "card-1-t10-colour.webp",
- "bytes": 5368
- },
- "geometry": {
- "file": "card-1-t10-geometry.webp",
- "bytes": 54868
- }
- },
- {
- "top": 354,
- "h": 246,
- "distance_m": 18597.224609375,
- "colour": {
- "file": "card-2-t10-colour.webp",
- "bytes": 1214
- },
- "geometry": {
- "file": "card-2-t10-geometry.webp",
- "bytes": 6840
- }
- },
- {
- "top": 419,
- "h": 181,
- "distance_m": 34387.94140625,
- "colour": {
- "file": "card-3-t10-colour.webp",
- "bytes": 566
- },
- "geometry": {
- "file": "card-3-t10-geometry.webp",
- "bytes": 2010
- }
- }
- ],
- [
- {
- "top": 346,
- "h": 254,
- "distance_m": 523.1098022460938,
- "colour": {
- "file": "card-0-t11-colour.webp",
- "bytes": 766
- },
- "geometry": {
- "file": "card-0-t11-geometry.webp",
- "bytes": 2440
- }
- },
- {
- "top": 167,
- "h": 433,
- "distance_m": 2894.937744140625,
- "colour": {
- "file": "card-1-t11-colour.webp",
- "bytes": 4430
- },
- "geometry": {
- "file": "card-1-t11-geometry.webp",
- "bytes": 45170
- }
- },
- {
- "top": 332,
- "h": 268,
- "distance_m": 18381.962890625,
- "colour": {
- "file": "card-2-t11-colour.webp",
- "bytes": 1414
- },
- "geometry": {
- "file": "card-2-t11-geometry.webp",
- "bytes": 7804
- }
- },
- {
- "top": 413,
- "h": 187,
- "distance_m": 32349.83203125,
- "colour": {
- "file": "card-3-t11-colour.webp",
- "bytes": 332
- },
- "geometry": {
- "file": "card-3-t11-geometry.webp",
- "bytes": 304
- }
- }
- ],
- [
- {
- "top": 313,
- "h": 287,
- "distance_m": 523.9810180664062,
- "colour": {
- "file": "card-0-t12-colour.webp",
- "bytes": 678
- },
- "geometry": {
- "file": "card-0-t12-geometry.webp",
- "bytes": 5612
- }
- },
- {
- "top": 207,
- "h": 393,
- "distance_m": 2714.9775390625,
- "colour": {
- "file": "card-1-t12-colour.webp",
- "bytes": 3234
- },
- "geometry": {
- "file": "card-1-t12-geometry.webp",
- "bytes": 33776
- }
- },
- {
- "top": 341,
- "h": 259,
- "distance_m": 18151.8203125,
- "colour": {
- "file": "card-2-t12-colour.webp",
- "bytes": 954
- },
- "geometry": {
- "file": "card-2-t12-geometry.webp",
- "bytes": 4906
- }
- },
- {
- "top": 433,
- "h": 167,
- "distance_m": 34449.2578125,
- "colour": {
- "file": "card-3-t12-colour.webp",
- "bytes": 794
- },
- "geometry": {
- "file": "card-3-t12-geometry.webp",
- "bytes": 6030
- }
- }
- ],
- [
- {
- "top": 345,
- "h": 255,
- "distance_m": 529.6943969726562,
- "colour": {
- "file": "card-0-t13-colour.webp",
- "bytes": 522
- },
- "geometry": {
- "file": "card-0-t13-geometry.webp",
- "bytes": 2858
- }
- },
- {
- "top": 270,
- "h": 330,
- "distance_m": 2625.431640625,
- "colour": {
- "file": "card-1-t13-colour.webp",
- "bytes": 3816
- },
- "geometry": {
- "file": "card-1-t13-geometry.webp",
- "bytes": 31634
- }
- },
- {
- "top": 396,
- "h": 204,
- "distance_m": 20311.169921875,
- "colour": {
- "file": "card-2-t13-colour.webp",
- "bytes": 760
- },
- "geometry": {
- "file": "card-2-t13-geometry.webp",
- "bytes": 4466
- }
- },
- {
- "top": 446,
- "h": 154,
- "distance_m": 38793.6328125,
- "colour": {
- "file": "card-3-t13-colour.webp",
- "bytes": 1348
- },
- "geometry": {
- "file": "card-3-t13-geometry.webp",
- "bytes": 10858
- }
- }
- ],
- [
- {
- "top": 300,
- "h": 300,
- "distance_m": 500.0,
- "colour": {
- "file": "card-0-t14-colour.webp",
- "bytes": 688
- },
- "geometry": {
- "file": "card-0-t14-geometry.webp",
- "bytes": 3402
- }
- },
- {
- "top": 322,
- "h": 278,
- "distance_m": 2918.640625,
- "colour": {
- "file": "card-1-t14-colour.webp",
- "bytes": 3414
- },
- "geometry": {
- "file": "card-1-t14-geometry.webp",
- "bytes": 29566
- }
- },
- {
- "top": 383,
- "h": 217,
- "distance_m": 18614.470703125,
- "colour": {
- "file": "card-2-t14-colour.webp",
- "bytes": 1140
- },
- "geometry": {
- "file": "card-2-t14-geometry.webp",
- "bytes": 7116
- }
- },
- {
- "top": 457,
- "h": 143,
- "distance_m": 42439.03125,
- "colour": {
- "file": "card-3-t14-colour.webp",
- "bytes": 1074
- },
- "geometry": {
- "file": "card-3-t14-geometry.webp",
- "bytes": 8620
- }
- }
- ],
- [
- {
- "top": 302,
- "h": 298,
- "distance_m": 525.7131958007812,
- "colour": {
- "file": "card-0-t15-colour.webp",
- "bytes": 644
- },
- "geometry": {
- "file": "card-0-t15-geometry.webp",
- "bytes": 5268
- }
- },
- {
- "top": 405,
- "h": 195,
- "distance_m": 3244.2470703125,
- "colour": {
- "file": "card-1-t15-colour.webp",
- "bytes": 3522
- },
- "geometry": {
- "file": "card-1-t15-geometry.webp",
- "bytes": 25236
- }
- },
- {
- "top": 415,
- "h": 185,
- "distance_m": 18155.212890625,
- "colour": {
- "file": "card-2-t15-colour.webp",
- "bytes": 1320
- },
- "geometry": {
- "file": "card-2-t15-geometry.webp",
- "bytes": 7704
- }
- },
- {
- "top": 466,
- "h": 134,
- "distance_m": 41500.03515625,
- "colour": {
- "file": "card-3-t15-colour.webp",
- "bytes": 1160
- },
- "geometry": {
- "file": "card-3-t15-geometry.webp",
- "bytes": 9572
- }
- }
- ],
- [
- {
- "top": 357,
- "h": 243,
- "distance_m": 546.4453735351562,
- "colour": {
- "file": "card-0-t16-colour.webp",
- "bytes": 546
- },
- "geometry": {
- "file": "card-0-t16-geometry.webp",
- "bytes": 3254
- }
- },
- {
- "top": 469,
- "h": 131,
- "distance_m": 6915.326171875,
- "colour": {
- "file": "card-1-t16-colour.webp",
- "bytes": 3182
- },
- "geometry": {
- "file": "card-1-t16-geometry.webp",
- "bytes": 22194
- }
- },
- {
- "top": 468,
- "h": 132,
- "distance_m": 18603.43359375,
- "colour": {
- "file": "card-2-t16-colour.webp",
- "bytes": 1668
- },
- "geometry": {
- "file": "card-2-t16-geometry.webp",
- "bytes": 12026
- }
- },
- {
- "top": 468,
- "h": 132,
- "distance_m": 34757.94140625,
- "colour": {
- "file": "card-3-t16-colour.webp",
- "bytes": 818
- },
- "geometry": {
- "file": "card-3-t16-geometry.webp",
- "bytes": 5748
- }
- }
- ],
- [
- {
- "top": 313,
- "h": 287,
- "distance_m": 523.0396728515625,
- "colour": {
- "file": "card-0-t17-colour.webp",
- "bytes": 988
- },
- "geometry": {
- "file": "card-0-t17-geometry.webp",
- "bytes": 7722
- }
- },
- {
- "top": 388,
- "h": 212,
- "distance_m": 4265.77197265625,
- "colour": {
- "file": "card-1-t17-colour.webp",
- "bytes": 1906
- },
- "geometry": {
- "file": "card-1-t17-geometry.webp",
- "bytes": 21338
- }
- },
- {
- "top": 442,
- "h": 158,
- "distance_m": 18450.51171875,
- "colour": {
- "file": "card-2-t17-colour.webp",
- "bytes": 774
- },
- "geometry": {
- "file": "card-2-t17-geometry.webp",
- "bytes": 4476
- }
- },
- {
- "top": 458,
- "h": 142,
- "distance_m": 32626.9453125,
- "colour": {
- "file": "card-3-t17-colour.webp",
- "bytes": 282
- },
- "geometry": {
- "file": "card-3-t17-geometry.webp",
- "bytes": 1672
- }
- }
- ],
- [
- {
- "top": 291,
- "h": 309,
- "distance_m": 500.0,
- "colour": {
- "file": "card-0-t18-colour.webp",
- "bytes": 1032
- },
- "geometry": {
- "file": "card-0-t18-geometry.webp",
- "bytes": 10594
- }
- },
- {
- "top": 350,
- "h": 250,
- "distance_m": 4179.998046875,
- "colour": {
- "file": "card-1-t18-colour.webp",
- "bytes": 1980
- },
- "geometry": {
- "file": "card-1-t18-geometry.webp",
- "bytes": 24574
- }
- },
- {
- "top": 406,
- "h": 194,
- "distance_m": 18500.25,
- "colour": {
- "file": "card-2-t18-colour.webp",
- "bytes": 446
- },
- "geometry": {
- "file": "card-2-t18-geometry.webp",
- "bytes": 1658
- }
- },
- {
- "top": 454,
- "h": 146,
- "distance_m": 34677.88671875,
- "colour": {
- "file": "card-3-t18-colour.webp",
- "bytes": 392
- },
- "geometry": {
- "file": "card-3-t18-geometry.webp",
- "bytes": 5676
- }
- }
- ],
- [
- {
- "top": 307,
- "h": 293,
- "distance_m": 500.0,
- "colour": {
- "file": "card-0-t19-colour.webp",
- "bytes": 932
- },
- "geometry": {
- "file": "card-0-t19-geometry.webp",
- "bytes": 10042
- }
- },
- {
- "top": 254,
- "h": 346,
- "distance_m": 4489.41259765625,
- "colour": {
- "file": "card-1-t19-colour.webp",
- "bytes": 3160
- },
- "geometry": {
- "file": "card-1-t19-geometry.webp",
- "bytes": 28840
- }
- },
- {
- "top": 392,
- "h": 208,
- "distance_m": 17933.982421875,
- "colour": {
- "file": "card-2-t19-colour.webp",
- "bytes": 442
- },
- "geometry": {
- "file": "card-2-t19-geometry.webp",
- "bytes": 1906
- }
- },
- {
- "top": 440,
- "h": 160,
- "distance_m": 32843.57421875,
- "colour": {
- "file": "card-3-t19-colour.webp",
- "bytes": 352
- },
- "geometry": {
- "file": "card-3-t19-geometry.webp",
- "bytes": 2892
- }
- }
- ],
- [
- {
- "top": 331,
- "h": 269,
- "distance_m": 500.0,
- "colour": {
- "file": "card-0-t20-colour.webp",
- "bytes": 838
- },
- "geometry": {
- "file": "card-0-t20-geometry.webp",
- "bytes": 8638
- }
- },
- {
- "top": 237,
- "h": 363,
- "distance_m": 6391.69873046875,
- "colour": {
- "file": "card-1-t20-colour.webp",
- "bytes": 5078
- },
- "geometry": {
- "file": "card-1-t20-geometry.webp",
- "bytes": 38070
- }
- },
- {
- "top": 373,
- "h": 227,
- "distance_m": 17875.4140625,
- "colour": {
- "file": "card-2-t20-colour.webp",
- "bytes": 424
- },
- "geometry": {
- "file": "card-2-t20-geometry.webp",
- "bytes": 1544
- }
- },
- {
- "top": 444,
- "h": 156,
- "distance_m": 33320.78125,
- "colour": {
- "file": "card-3-t20-colour.webp",
- "bytes": 564
- },
- "geometry": {
- "file": "card-3-t20-geometry.webp",
- "bytes": 5586
- }
- }
- ],
- [
- {
- "top": 326,
- "h": 274,
- "distance_m": 923.2710571289062,
- "colour": {
- "file": "card-0-t21-colour.webp",
- "bytes": 974
- },
- "geometry": {
- "file": "card-0-t21-geometry.webp",
- "bytes": 12070
- }
- },
- {
- "top": 216,
- "h": 384,
- "distance_m": 6441.12890625,
- "colour": {
- "file": "card-1-t21-colour.webp",
- "bytes": 3532
- },
- "geometry": {
- "file": "card-1-t21-geometry.webp",
- "bytes": 30322
- }
- },
- {
- "top": 339,
- "h": 261,
- "distance_m": 18364.421875,
- "colour": {
- "file": "card-2-t21-colour.webp",
- "bytes": 602
- },
- "geometry": {
- "file": "card-2-t21-geometry.webp",
- "bytes": 1468
- }
- },
- {
- "top": 437,
- "h": 163,
- "distance_m": 33722.2421875,
- "colour": {
- "file": "card-3-t21-colour.webp",
- "bytes": 652
- },
- "geometry": {
- "file": "card-3-t21-geometry.webp",
- "bytes": 7230
- }
- }
- ],
- [
- {
- "top": 327,
- "h": 273,
- "distance_m": 911.6795043945312,
- "colour": {
- "file": "card-0-t22-colour.webp",
- "bytes": 974
- },
- "geometry": {
- "file": "card-0-t22-geometry.webp",
- "bytes": 13546
- }
- },
- {
- "top": 216,
- "h": 384,
- "distance_m": 6546.775390625,
- "colour": {
- "file": "card-1-t22-colour.webp",
- "bytes": 3466
- },
- "geometry": {
- "file": "card-1-t22-geometry.webp",
- "bytes": 26118
- }
- },
- {
- "top": 351,
- "h": 249,
- "distance_m": 18930.142578125,
- "colour": {
- "file": "card-2-t22-colour.webp",
- "bytes": 648
- },
- "geometry": {
- "file": "card-2-t22-geometry.webp",
- "bytes": 2904
- }
- },
- {
- "top": 422,
- "h": 178,
- "distance_m": 32402.568359375,
- "colour": {
- "file": "card-3-t22-colour.webp",
- "bytes": 374
- },
- "geometry": {
- "file": "card-3-t22-geometry.webp",
- "bytes": 512
- }
- }
- ],
- [
- {
- "top": 304,
- "h": 296,
- "distance_m": 2027.4254150390625,
- "colour": {
- "file": "card-0-t23-colour.webp",
- "bytes": 962
- },
- "geometry": {
- "file": "card-0-t23-geometry.webp",
- "bytes": 16670
- }
- },
- {
- "top": 271,
- "h": 329,
- "distance_m": 11896.4462890625,
- "colour": {
- "file": "card-1-t23-colour.webp",
- "bytes": 3394
- },
- "geometry": {
- "file": "card-1-t23-geometry.webp",
- "bytes": 17558
- }
- },
- {
- "top": 310,
- "h": 290,
- "distance_m": 18561.185546875,
- "colour": {
- "file": "card-2-t23-colour.webp",
- "bytes": 1060
- },
- "geometry": {
- "file": "card-2-t23-geometry.webp",
- "bytes": 3476
- }
- },
- {
- "top": 414,
- "h": 186,
- "distance_m": 33320.78125,
- "colour": {
- "file": "card-3-t23-colour.webp",
- "bytes": 368
- },
- "geometry": {
- "file": "card-3-t23-geometry.webp",
- "bytes": 1318
- }
- }
- ],
- [
- {
- "top": 294,
- "h": 306,
- "distance_m": 1915.7430419921875,
- "colour": {
- "file": "card-0-t24-colour.webp",
- "bytes": 852
- },
- "geometry": {
- "file": "card-0-t24-geometry.webp",
- "bytes": 15996
- }
- },
- {
- "top": 312,
- "h": 288,
- "distance_m": 16016.1455078125,
- "colour": {
- "file": "card-1-t24-colour.webp",
- "bytes": 1746
- },
- "geometry": {
- "file": "card-1-t24-geometry.webp",
- "bytes": 10906
- }
- },
- {
- "top": 344,
- "h": 256,
- "distance_m": 20518.1796875,
- "colour": {
- "file": "card-2-t24-colour.webp",
- "bytes": 464
- },
- "geometry": {
- "file": "card-2-t24-geometry.webp",
- "bytes": 758
- }
- },
- {
- "top": 408,
- "h": 192,
- "distance_m": 33487.234375,
- "colour": {
- "file": "card-3-t24-colour.webp",
- "bytes": 610
- },
- "geometry": {
- "file": "card-3-t24-geometry.webp",
- "bytes": 2436
- }
- }
- ],
- [
- {
- "top": 264,
- "h": 336,
- "distance_m": 1279.4014892578125,
- "colour": {
- "file": "card-0-t25-colour.webp",
- "bytes": 914
- },
- "geometry": {
- "file": "card-0-t25-geometry.webp",
- "bytes": 20056
- }
- },
- {
- "top": 279,
- "h": 321,
- "distance_m": 4082.07861328125,
- "colour": {
- "file": "card-1-t25-colour.webp",
- "bytes": 2164
- },
- "geometry": {
- "file": "card-1-t25-geometry.webp",
- "bytes": 13732
- }
- },
- {
- "top": 322,
- "h": 278,
- "distance_m": 21545.11328125,
- "colour": {
- "file": "card-2-t25-colour.webp",
- "bytes": 472
- },
- "geometry": {
- "file": "card-2-t25-geometry.webp",
- "bytes": 406
- }
- },
- {
- "top": 386,
- "h": 214,
- "distance_m": 35783.83203125,
- "colour": {
- "file": "card-3-t25-colour.webp",
- "bytes": 914
- },
- "geometry": {
- "file": "card-3-t25-geometry.webp",
- "bytes": 3836
- }
- }
- ],
- [
- {
- "top": 181,
- "h": 419,
- "distance_m": 1077.19091796875,
- "colour": {
- "file": "card-0-t26-colour.webp",
- "bytes": 1566
- },
- "geometry": {
- "file": "card-0-t26-geometry.webp",
- "bytes": 27326
- }
- },
- {
- "top": 207,
- "h": 393,
- "distance_m": 4019.7578125,
- "colour": {
- "file": "card-1-t26-colour.webp",
- "bytes": 1952
- },
- "geometry": {
- "file": "card-1-t26-geometry.webp",
- "bytes": 14416
- }
- },
- {
- "top": 335,
- "h": 265,
- "distance_m": 18407.029296875,
- "colour": {
- "file": "card-2-t26-colour.webp",
- "bytes": 1274
- },
- "geometry": {
- "file": "card-2-t26-geometry.webp",
- "bytes": 6502
- }
- },
- {
- "top": 369,
- "h": 231,
- "distance_m": 33237.1875,
- "colour": {
- "file": "card-3-t26-colour.webp",
- "bytes": 1180
- },
- "geometry": {
- "file": "card-3-t26-geometry.webp",
- "bytes": 4466
- }
- }
- ],
- [
- {
- "top": 155,
- "h": 445,
- "distance_m": 1115.248291015625,
- "colour": {
- "file": "card-0-t27-colour.webp",
- "bytes": 1496
- },
- "geometry": {
- "file": "card-0-t27-geometry.webp",
- "bytes": 28856
- }
- },
- {
- "top": 161,
- "h": 439,
- "distance_m": 4460.001953125,
- "colour": {
- "file": "card-1-t27-colour.webp",
- "bytes": 1820
- },
- "geometry": {
- "file": "card-1-t27-geometry.webp",
- "bytes": 9902
- }
- },
- {
- "top": 342,
- "h": 258,
- "distance_m": 21357.478515625,
- "colour": {
- "file": "card-2-t27-colour.webp",
- "bytes": 898
- },
- "geometry": {
- "file": "card-2-t27-geometry.webp",
- "bytes": 3388
- }
- },
- {
- "top": 397,
- "h": 203,
- "distance_m": 32792.93359375,
- "colour": {
- "file": "card-3-t27-colour.webp",
- "bytes": 404
- },
- "geometry": {
- "file": "card-3-t27-geometry.webp",
- "bytes": 778
- }
- }
- ],
- [
- {
- "top": 53,
- "h": 547,
- "distance_m": 1288.4852294921875,
- "colour": {
- "file": "card-0-t28-colour.webp",
- "bytes": 1978
- },
- "geometry": {
- "file": "card-0-t28-geometry.webp",
- "bytes": 31906
- }
- },
- {
- "top": 65,
- "h": 535,
- "distance_m": 2982.763916015625,
- "colour": {
- "file": "card-1-t28-colour.webp",
- "bytes": 1046
- },
- "geometry": {
- "file": "card-1-t28-geometry.webp",
- "bytes": 3854
- }
- },
- {
- "top": 365,
- "h": 235,
- "distance_m": 20124.375,
- "colour": {
- "file": "card-2-t28-colour.webp",
- "bytes": 1440
- },
- "geometry": {
- "file": "card-2-t28-geometry.webp",
- "bytes": 8884
- }
- },
- {
- "top": 398,
- "h": 202,
- "distance_m": 33286.3515625,
- "colour": {
- "file": "card-3-t28-colour.webp",
- "bytes": 490
- },
- "geometry": {
- "file": "card-3-t28-geometry.webp",
- "bytes": 2182
- }
- }
- ],
- [
- {
- "top": 24,
- "h": 576,
- "distance_m": 1518.8189697265625,
- "colour": {
- "file": "card-0-t29-colour.webp",
- "bytes": 2624
- },
- "geometry": {
- "file": "card-0-t29-geometry.webp",
- "bytes": 34324
- }
- },
- {
- "top": 34,
- "h": 566,
- "distance_m": 3090.216552734375,
- "colour": {
- "file": "card-1-t29-colour.webp",
- "bytes": 716
- },
- "geometry": {
- "file": "card-1-t29-geometry.webp",
- "bytes": 1330
- }
- },
- {
- "top": 356,
- "h": 244,
- "distance_m": 28378.375,
- "colour": {
- "file": "card-2-t29-colour.webp",
- "bytes": 856
- },
- "geometry": {
- "file": "card-2-t29-geometry.webp",
- "bytes": 3104
- }
- },
- {
- "top": 383,
- "h": 217,
- "distance_m": 33587.88671875,
- "colour": {
- "file": "card-3-t29-colour.webp",
- "bytes": 654
- },
- "geometry": {
- "file": "card-3-t29-geometry.webp",
- "bytes": 2366
- }
- }
- ],
- [
- {
- "top": 24,
- "h": 576,
- "distance_m": 1460.000244140625,
- "colour": {
- "file": "card-0-t30-colour.webp",
- "bytes": 2684
- },
- "geometry": {
- "file": "card-0-t30-geometry.webp",
- "bytes": 31042
- }
- },
- {
- "top": 42,
- "h": 558,
- "distance_m": 3196.747314453125,
- "colour": {
- "file": "card-1-t30-colour.webp",
- "bytes": 550
- },
- "geometry": {
- "file": "card-1-t30-geometry.webp",
- "bytes": 330
- }
- },
- {
- "top": 331,
- "h": 269,
- "distance_m": 27157.220703125,
- "colour": {
- "file": "card-2-t30-colour.webp",
- "bytes": 2094
- },
- "geometry": {
- "file": "card-2-t30-geometry.webp",
- "bytes": 12678
- }
- },
- {
- "top": 351,
- "h": 249,
- "distance_m": 33010.56640625,
- "colour": {
- "file": "card-3-t30-colour.webp",
- "bytes": 552
- },
- "geometry": {
- "file": "card-3-t30-geometry.webp",
- "bytes": 894
- }
- }
- ],
- [
- {
- "top": 29,
- "h": 571,
- "distance_m": 1045.033935546875,
- "colour": {
- "file": "card-0-t31-colour.webp",
- "bytes": 2756
- },
- "geometry": {
- "file": "card-0-t31-geometry.webp",
- "bytes": 31704
- }
- },
- {
- "top": 48,
- "h": 552,
- "distance_m": 2780.00048828125,
- "colour": {
- "file": "card-1-t31-colour.webp",
- "bytes": 606
- },
- "geometry": {
- "file": "card-1-t31-geometry.webp",
- "bytes": 278
- }
- },
- {
- "top": 332,
- "h": 268,
- "distance_m": 29552.09765625,
- "colour": {
- "file": "card-2-t31-colour.webp",
- "bytes": 2102
- },
- "geometry": {
- "file": "card-2-t31-geometry.webp",
- "bytes": 12352
- }
- },
- {
- "top": 347,
- "h": 253,
- "distance_m": 32273.474609375,
- "colour": {
- "file": "card-3-t31-colour.webp",
- "bytes": 422
- },
- "geometry": {
- "file": "card-3-t31-geometry.webp",
- "bytes": 196
- }
- }
- ]
- ],
- "bytes": 1700446,
- "attribution": {
- "credit_line": "Contains modified Copernicus data: DEM \u00a9 DLR e.V. 2010-2014 and \u00a9 Airbus Defence and Space GmbH 2014-2018 provided under COPERNICUS by the European Union and ESA; all rights reserved.",
- "licence": "Copernicus DEM licence: free, full and open access, with the credit line shown",
- "dem_source": "Copernicus DEM GLO-30 (30 m)",
- "url": "https://spacedata.copernicus.eu/collections/copernicus-digital-elevation-model"
- }
-}
diff --git a/public/ridge/fuji-8dac36611b90/card-0-t00-colour.webp b/public/ridge/fuji-8dac36611b90/card-0-t00-colour.webp
deleted file mode 100644
index 6308056b..00000000
Binary files a/public/ridge/fuji-8dac36611b90/card-0-t00-colour.webp and /dev/null differ
diff --git a/public/ridge/fuji-8dac36611b90/card-0-t00-geometry.webp b/public/ridge/fuji-8dac36611b90/card-0-t00-geometry.webp
deleted file mode 100644
index b47faed9..00000000
Binary files a/public/ridge/fuji-8dac36611b90/card-0-t00-geometry.webp and /dev/null differ
diff --git a/public/ridge/fuji-8dac36611b90/card-0-t01-colour.webp b/public/ridge/fuji-8dac36611b90/card-0-t01-colour.webp
deleted file mode 100644
index 9057d08b..00000000
Binary files a/public/ridge/fuji-8dac36611b90/card-0-t01-colour.webp and /dev/null differ
diff --git a/public/ridge/fuji-8dac36611b90/card-0-t01-geometry.webp b/public/ridge/fuji-8dac36611b90/card-0-t01-geometry.webp
deleted file mode 100644
index 4c47052d..00000000
Binary files a/public/ridge/fuji-8dac36611b90/card-0-t01-geometry.webp and /dev/null differ
diff --git a/public/ridge/fuji-8dac36611b90/card-0-t02-colour.webp b/public/ridge/fuji-8dac36611b90/card-0-t02-colour.webp
deleted file mode 100644
index d73e6920..00000000
Binary files a/public/ridge/fuji-8dac36611b90/card-0-t02-colour.webp and /dev/null differ
diff --git a/public/ridge/fuji-8dac36611b90/card-0-t02-geometry.webp b/public/ridge/fuji-8dac36611b90/card-0-t02-geometry.webp
deleted file mode 100644
index c2d51df1..00000000
Binary files a/public/ridge/fuji-8dac36611b90/card-0-t02-geometry.webp and /dev/null differ
diff --git a/public/ridge/fuji-8dac36611b90/card-0-t03-colour.webp b/public/ridge/fuji-8dac36611b90/card-0-t03-colour.webp
deleted file mode 100644
index 2dbf6053..00000000
Binary files a/public/ridge/fuji-8dac36611b90/card-0-t03-colour.webp and /dev/null differ
diff --git a/public/ridge/fuji-8dac36611b90/card-0-t03-geometry.webp b/public/ridge/fuji-8dac36611b90/card-0-t03-geometry.webp
deleted file mode 100644
index a5cf99cf..00000000
Binary files a/public/ridge/fuji-8dac36611b90/card-0-t03-geometry.webp and /dev/null differ
diff --git a/public/ridge/fuji-8dac36611b90/card-0-t04-colour.webp b/public/ridge/fuji-8dac36611b90/card-0-t04-colour.webp
deleted file mode 100644
index cbec1ac1..00000000
Binary files a/public/ridge/fuji-8dac36611b90/card-0-t04-colour.webp and /dev/null differ
diff --git a/public/ridge/fuji-8dac36611b90/card-0-t04-geometry.webp b/public/ridge/fuji-8dac36611b90/card-0-t04-geometry.webp
deleted file mode 100644
index 04903f82..00000000
Binary files a/public/ridge/fuji-8dac36611b90/card-0-t04-geometry.webp and /dev/null differ
diff --git a/public/ridge/fuji-8dac36611b90/card-0-t05-colour.webp b/public/ridge/fuji-8dac36611b90/card-0-t05-colour.webp
deleted file mode 100644
index c9ecda1d..00000000
Binary files a/public/ridge/fuji-8dac36611b90/card-0-t05-colour.webp and /dev/null differ
diff --git a/public/ridge/fuji-8dac36611b90/card-0-t05-geometry.webp b/public/ridge/fuji-8dac36611b90/card-0-t05-geometry.webp
deleted file mode 100644
index ca369183..00000000
Binary files a/public/ridge/fuji-8dac36611b90/card-0-t05-geometry.webp and /dev/null differ
diff --git a/public/ridge/fuji-8dac36611b90/card-0-t06-colour.webp b/public/ridge/fuji-8dac36611b90/card-0-t06-colour.webp
deleted file mode 100644
index 0557c2f5..00000000
Binary files a/public/ridge/fuji-8dac36611b90/card-0-t06-colour.webp and /dev/null differ
diff --git a/public/ridge/fuji-8dac36611b90/card-0-t06-geometry.webp b/public/ridge/fuji-8dac36611b90/card-0-t06-geometry.webp
deleted file mode 100644
index 9976c7ea..00000000
Binary files a/public/ridge/fuji-8dac36611b90/card-0-t06-geometry.webp and /dev/null differ
diff --git a/public/ridge/fuji-8dac36611b90/card-0-t07-colour.webp b/public/ridge/fuji-8dac36611b90/card-0-t07-colour.webp
deleted file mode 100644
index 1afc44f9..00000000
Binary files a/public/ridge/fuji-8dac36611b90/card-0-t07-colour.webp and /dev/null differ
diff --git a/public/ridge/fuji-8dac36611b90/card-0-t07-geometry.webp b/public/ridge/fuji-8dac36611b90/card-0-t07-geometry.webp
deleted file mode 100644
index 4bd92c12..00000000
Binary files a/public/ridge/fuji-8dac36611b90/card-0-t07-geometry.webp and /dev/null differ
diff --git a/public/ridge/fuji-8dac36611b90/card-0-t08-colour.webp b/public/ridge/fuji-8dac36611b90/card-0-t08-colour.webp
deleted file mode 100644
index b8ace42b..00000000
Binary files a/public/ridge/fuji-8dac36611b90/card-0-t08-colour.webp and /dev/null differ
diff --git a/public/ridge/fuji-8dac36611b90/card-0-t08-geometry.webp b/public/ridge/fuji-8dac36611b90/card-0-t08-geometry.webp
deleted file mode 100644
index 8999900e..00000000
Binary files a/public/ridge/fuji-8dac36611b90/card-0-t08-geometry.webp and /dev/null differ
diff --git a/public/ridge/fuji-8dac36611b90/card-0-t09-colour.webp b/public/ridge/fuji-8dac36611b90/card-0-t09-colour.webp
deleted file mode 100644
index 0b43015a..00000000
Binary files a/public/ridge/fuji-8dac36611b90/card-0-t09-colour.webp and /dev/null differ
diff --git a/public/ridge/fuji-8dac36611b90/card-0-t09-geometry.webp b/public/ridge/fuji-8dac36611b90/card-0-t09-geometry.webp
deleted file mode 100644
index 79b6ce93..00000000
Binary files a/public/ridge/fuji-8dac36611b90/card-0-t09-geometry.webp and /dev/null differ
diff --git a/public/ridge/fuji-8dac36611b90/card-0-t10-colour.webp b/public/ridge/fuji-8dac36611b90/card-0-t10-colour.webp
deleted file mode 100644
index b8c96a53..00000000
Binary files a/public/ridge/fuji-8dac36611b90/card-0-t10-colour.webp and /dev/null differ
diff --git a/public/ridge/fuji-8dac36611b90/card-0-t10-geometry.webp b/public/ridge/fuji-8dac36611b90/card-0-t10-geometry.webp
deleted file mode 100644
index b582015e..00000000
Binary files a/public/ridge/fuji-8dac36611b90/card-0-t10-geometry.webp and /dev/null differ
diff --git a/public/ridge/fuji-8dac36611b90/card-0-t11-colour.webp b/public/ridge/fuji-8dac36611b90/card-0-t11-colour.webp
deleted file mode 100644
index e136956b..00000000
Binary files a/public/ridge/fuji-8dac36611b90/card-0-t11-colour.webp and /dev/null differ
diff --git a/public/ridge/fuji-8dac36611b90/card-0-t11-geometry.webp b/public/ridge/fuji-8dac36611b90/card-0-t11-geometry.webp
deleted file mode 100644
index 1477d7b7..00000000
Binary files a/public/ridge/fuji-8dac36611b90/card-0-t11-geometry.webp and /dev/null differ
diff --git a/public/ridge/fuji-8dac36611b90/card-0-t12-colour.webp b/public/ridge/fuji-8dac36611b90/card-0-t12-colour.webp
deleted file mode 100644
index 3709ec91..00000000
Binary files a/public/ridge/fuji-8dac36611b90/card-0-t12-colour.webp and /dev/null differ
diff --git a/public/ridge/fuji-8dac36611b90/card-0-t12-geometry.webp b/public/ridge/fuji-8dac36611b90/card-0-t12-geometry.webp
deleted file mode 100644
index 5882ff8a..00000000
Binary files a/public/ridge/fuji-8dac36611b90/card-0-t12-geometry.webp and /dev/null differ
diff --git a/public/ridge/fuji-8dac36611b90/card-0-t13-colour.webp b/public/ridge/fuji-8dac36611b90/card-0-t13-colour.webp
deleted file mode 100644
index 1b56889c..00000000
Binary files a/public/ridge/fuji-8dac36611b90/card-0-t13-colour.webp and /dev/null differ
diff --git a/public/ridge/fuji-8dac36611b90/card-0-t13-geometry.webp b/public/ridge/fuji-8dac36611b90/card-0-t13-geometry.webp
deleted file mode 100644
index 9b6a84d6..00000000
Binary files a/public/ridge/fuji-8dac36611b90/card-0-t13-geometry.webp and /dev/null differ
diff --git a/public/ridge/fuji-8dac36611b90/card-0-t14-colour.webp b/public/ridge/fuji-8dac36611b90/card-0-t14-colour.webp
deleted file mode 100644
index 02970394..00000000
Binary files a/public/ridge/fuji-8dac36611b90/card-0-t14-colour.webp and /dev/null differ
diff --git a/public/ridge/fuji-8dac36611b90/card-0-t14-geometry.webp b/public/ridge/fuji-8dac36611b90/card-0-t14-geometry.webp
deleted file mode 100644
index 66116abc..00000000
Binary files a/public/ridge/fuji-8dac36611b90/card-0-t14-geometry.webp and /dev/null differ
diff --git a/public/ridge/fuji-8dac36611b90/card-0-t15-colour.webp b/public/ridge/fuji-8dac36611b90/card-0-t15-colour.webp
deleted file mode 100644
index ac8197d3..00000000
Binary files a/public/ridge/fuji-8dac36611b90/card-0-t15-colour.webp and /dev/null differ
diff --git a/public/ridge/fuji-8dac36611b90/card-0-t15-geometry.webp b/public/ridge/fuji-8dac36611b90/card-0-t15-geometry.webp
deleted file mode 100644
index 94cbddc4..00000000
Binary files a/public/ridge/fuji-8dac36611b90/card-0-t15-geometry.webp and /dev/null differ
diff --git a/public/ridge/fuji-8dac36611b90/card-0-t16-colour.webp b/public/ridge/fuji-8dac36611b90/card-0-t16-colour.webp
deleted file mode 100644
index 6cddc44d..00000000
Binary files a/public/ridge/fuji-8dac36611b90/card-0-t16-colour.webp and /dev/null differ
diff --git a/public/ridge/fuji-8dac36611b90/card-0-t16-geometry.webp b/public/ridge/fuji-8dac36611b90/card-0-t16-geometry.webp
deleted file mode 100644
index fd6a70a7..00000000
Binary files a/public/ridge/fuji-8dac36611b90/card-0-t16-geometry.webp and /dev/null differ
diff --git a/public/ridge/fuji-8dac36611b90/card-0-t17-colour.webp b/public/ridge/fuji-8dac36611b90/card-0-t17-colour.webp
deleted file mode 100644
index b7163771..00000000
Binary files a/public/ridge/fuji-8dac36611b90/card-0-t17-colour.webp and /dev/null differ
diff --git a/public/ridge/fuji-8dac36611b90/card-0-t17-geometry.webp b/public/ridge/fuji-8dac36611b90/card-0-t17-geometry.webp
deleted file mode 100644
index 15a8961b..00000000
Binary files a/public/ridge/fuji-8dac36611b90/card-0-t17-geometry.webp and /dev/null differ
diff --git a/public/ridge/fuji-8dac36611b90/card-0-t18-colour.webp b/public/ridge/fuji-8dac36611b90/card-0-t18-colour.webp
deleted file mode 100644
index 74024849..00000000
Binary files a/public/ridge/fuji-8dac36611b90/card-0-t18-colour.webp and /dev/null differ
diff --git a/public/ridge/fuji-8dac36611b90/card-0-t18-geometry.webp b/public/ridge/fuji-8dac36611b90/card-0-t18-geometry.webp
deleted file mode 100644
index b95f4c55..00000000
Binary files a/public/ridge/fuji-8dac36611b90/card-0-t18-geometry.webp and /dev/null differ
diff --git a/public/ridge/fuji-8dac36611b90/card-0-t19-colour.webp b/public/ridge/fuji-8dac36611b90/card-0-t19-colour.webp
deleted file mode 100644
index d1173387..00000000
Binary files a/public/ridge/fuji-8dac36611b90/card-0-t19-colour.webp and /dev/null differ
diff --git a/public/ridge/fuji-8dac36611b90/card-0-t19-geometry.webp b/public/ridge/fuji-8dac36611b90/card-0-t19-geometry.webp
deleted file mode 100644
index a3fd26cd..00000000
Binary files a/public/ridge/fuji-8dac36611b90/card-0-t19-geometry.webp and /dev/null differ
diff --git a/public/ridge/fuji-8dac36611b90/card-0-t20-colour.webp b/public/ridge/fuji-8dac36611b90/card-0-t20-colour.webp
deleted file mode 100644
index 8f8d05cc..00000000
Binary files a/public/ridge/fuji-8dac36611b90/card-0-t20-colour.webp and /dev/null differ
diff --git a/public/ridge/fuji-8dac36611b90/card-0-t20-geometry.webp b/public/ridge/fuji-8dac36611b90/card-0-t20-geometry.webp
deleted file mode 100644
index 8ddc8ae7..00000000
Binary files a/public/ridge/fuji-8dac36611b90/card-0-t20-geometry.webp and /dev/null differ
diff --git a/public/ridge/fuji-8dac36611b90/card-0-t21-colour.webp b/public/ridge/fuji-8dac36611b90/card-0-t21-colour.webp
deleted file mode 100644
index 5501eba7..00000000
Binary files a/public/ridge/fuji-8dac36611b90/card-0-t21-colour.webp and /dev/null differ
diff --git a/public/ridge/fuji-8dac36611b90/card-0-t21-geometry.webp b/public/ridge/fuji-8dac36611b90/card-0-t21-geometry.webp
deleted file mode 100644
index 8ede69d8..00000000
Binary files a/public/ridge/fuji-8dac36611b90/card-0-t21-geometry.webp and /dev/null differ
diff --git a/public/ridge/fuji-8dac36611b90/card-0-t22-colour.webp b/public/ridge/fuji-8dac36611b90/card-0-t22-colour.webp
deleted file mode 100644
index 49aa6f23..00000000
Binary files a/public/ridge/fuji-8dac36611b90/card-0-t22-colour.webp and /dev/null differ
diff --git a/public/ridge/fuji-8dac36611b90/card-0-t22-geometry.webp b/public/ridge/fuji-8dac36611b90/card-0-t22-geometry.webp
deleted file mode 100644
index b508c9ad..00000000
Binary files a/public/ridge/fuji-8dac36611b90/card-0-t22-geometry.webp and /dev/null differ
diff --git a/public/ridge/fuji-8dac36611b90/card-0-t23-colour.webp b/public/ridge/fuji-8dac36611b90/card-0-t23-colour.webp
deleted file mode 100644
index b0df140c..00000000
Binary files a/public/ridge/fuji-8dac36611b90/card-0-t23-colour.webp and /dev/null differ
diff --git a/public/ridge/fuji-8dac36611b90/card-0-t23-geometry.webp b/public/ridge/fuji-8dac36611b90/card-0-t23-geometry.webp
deleted file mode 100644
index 73366412..00000000
Binary files a/public/ridge/fuji-8dac36611b90/card-0-t23-geometry.webp and /dev/null differ
diff --git a/public/ridge/fuji-8dac36611b90/card-0-t24-colour.webp b/public/ridge/fuji-8dac36611b90/card-0-t24-colour.webp
deleted file mode 100644
index f081f2f7..00000000
Binary files a/public/ridge/fuji-8dac36611b90/card-0-t24-colour.webp and /dev/null differ
diff --git a/public/ridge/fuji-8dac36611b90/card-0-t24-geometry.webp b/public/ridge/fuji-8dac36611b90/card-0-t24-geometry.webp
deleted file mode 100644
index 7a9dbbb1..00000000
Binary files a/public/ridge/fuji-8dac36611b90/card-0-t24-geometry.webp and /dev/null differ
diff --git a/public/ridge/fuji-8dac36611b90/card-0-t25-colour.webp b/public/ridge/fuji-8dac36611b90/card-0-t25-colour.webp
deleted file mode 100644
index 8d3e8fd3..00000000
Binary files a/public/ridge/fuji-8dac36611b90/card-0-t25-colour.webp and /dev/null differ
diff --git a/public/ridge/fuji-8dac36611b90/card-0-t25-geometry.webp b/public/ridge/fuji-8dac36611b90/card-0-t25-geometry.webp
deleted file mode 100644
index 6237b3f4..00000000
Binary files a/public/ridge/fuji-8dac36611b90/card-0-t25-geometry.webp and /dev/null differ
diff --git a/public/ridge/fuji-8dac36611b90/card-0-t26-colour.webp b/public/ridge/fuji-8dac36611b90/card-0-t26-colour.webp
deleted file mode 100644
index 950659ac..00000000
Binary files a/public/ridge/fuji-8dac36611b90/card-0-t26-colour.webp and /dev/null differ
diff --git a/public/ridge/fuji-8dac36611b90/card-0-t26-geometry.webp b/public/ridge/fuji-8dac36611b90/card-0-t26-geometry.webp
deleted file mode 100644
index cb5b5b89..00000000
Binary files a/public/ridge/fuji-8dac36611b90/card-0-t26-geometry.webp and /dev/null differ
diff --git a/public/ridge/fuji-8dac36611b90/card-0-t27-colour.webp b/public/ridge/fuji-8dac36611b90/card-0-t27-colour.webp
deleted file mode 100644
index b9830b65..00000000
Binary files a/public/ridge/fuji-8dac36611b90/card-0-t27-colour.webp and /dev/null differ
diff --git a/public/ridge/fuji-8dac36611b90/card-0-t27-geometry.webp b/public/ridge/fuji-8dac36611b90/card-0-t27-geometry.webp
deleted file mode 100644
index 67f996c8..00000000
Binary files a/public/ridge/fuji-8dac36611b90/card-0-t27-geometry.webp and /dev/null differ
diff --git a/public/ridge/fuji-8dac36611b90/card-0-t28-colour.webp b/public/ridge/fuji-8dac36611b90/card-0-t28-colour.webp
deleted file mode 100644
index dabb1d3d..00000000
Binary files a/public/ridge/fuji-8dac36611b90/card-0-t28-colour.webp and /dev/null differ
diff --git a/public/ridge/fuji-8dac36611b90/card-0-t28-geometry.webp b/public/ridge/fuji-8dac36611b90/card-0-t28-geometry.webp
deleted file mode 100644
index 349ec1b7..00000000
Binary files a/public/ridge/fuji-8dac36611b90/card-0-t28-geometry.webp and /dev/null differ
diff --git a/public/ridge/fuji-8dac36611b90/card-0-t29-colour.webp b/public/ridge/fuji-8dac36611b90/card-0-t29-colour.webp
deleted file mode 100644
index 5aca96e5..00000000
Binary files a/public/ridge/fuji-8dac36611b90/card-0-t29-colour.webp and /dev/null differ
diff --git a/public/ridge/fuji-8dac36611b90/card-0-t29-geometry.webp b/public/ridge/fuji-8dac36611b90/card-0-t29-geometry.webp
deleted file mode 100644
index 8983c054..00000000
Binary files a/public/ridge/fuji-8dac36611b90/card-0-t29-geometry.webp and /dev/null differ
diff --git a/public/ridge/fuji-8dac36611b90/card-0-t30-colour.webp b/public/ridge/fuji-8dac36611b90/card-0-t30-colour.webp
deleted file mode 100644
index 56a7f529..00000000
Binary files a/public/ridge/fuji-8dac36611b90/card-0-t30-colour.webp and /dev/null differ
diff --git a/public/ridge/fuji-8dac36611b90/card-0-t30-geometry.webp b/public/ridge/fuji-8dac36611b90/card-0-t30-geometry.webp
deleted file mode 100644
index a5dc0beb..00000000
Binary files a/public/ridge/fuji-8dac36611b90/card-0-t30-geometry.webp and /dev/null differ
diff --git a/public/ridge/fuji-8dac36611b90/card-0-t31-colour.webp b/public/ridge/fuji-8dac36611b90/card-0-t31-colour.webp
deleted file mode 100644
index 598bcc93..00000000
Binary files a/public/ridge/fuji-8dac36611b90/card-0-t31-colour.webp and /dev/null differ
diff --git a/public/ridge/fuji-8dac36611b90/card-0-t31-geometry.webp b/public/ridge/fuji-8dac36611b90/card-0-t31-geometry.webp
deleted file mode 100644
index 0fd49b3b..00000000
Binary files a/public/ridge/fuji-8dac36611b90/card-0-t31-geometry.webp and /dev/null differ
diff --git a/public/ridge/fuji-8dac36611b90/card-1-t00-colour.webp b/public/ridge/fuji-8dac36611b90/card-1-t00-colour.webp
deleted file mode 100644
index 135a10b0..00000000
Binary files a/public/ridge/fuji-8dac36611b90/card-1-t00-colour.webp and /dev/null differ
diff --git a/public/ridge/fuji-8dac36611b90/card-1-t00-geometry.webp b/public/ridge/fuji-8dac36611b90/card-1-t00-geometry.webp
deleted file mode 100644
index db4c2d7a..00000000
Binary files a/public/ridge/fuji-8dac36611b90/card-1-t00-geometry.webp and /dev/null differ
diff --git a/public/ridge/fuji-8dac36611b90/card-1-t01-colour.webp b/public/ridge/fuji-8dac36611b90/card-1-t01-colour.webp
deleted file mode 100644
index 6e64e114..00000000
Binary files a/public/ridge/fuji-8dac36611b90/card-1-t01-colour.webp and /dev/null differ
diff --git a/public/ridge/fuji-8dac36611b90/card-1-t01-geometry.webp b/public/ridge/fuji-8dac36611b90/card-1-t01-geometry.webp
deleted file mode 100644
index 4ff81cb8..00000000
Binary files a/public/ridge/fuji-8dac36611b90/card-1-t01-geometry.webp and /dev/null differ
diff --git a/public/ridge/fuji-8dac36611b90/card-1-t02-colour.webp b/public/ridge/fuji-8dac36611b90/card-1-t02-colour.webp
deleted file mode 100644
index 97991fde..00000000
Binary files a/public/ridge/fuji-8dac36611b90/card-1-t02-colour.webp and /dev/null differ
diff --git a/public/ridge/fuji-8dac36611b90/card-1-t02-geometry.webp b/public/ridge/fuji-8dac36611b90/card-1-t02-geometry.webp
deleted file mode 100644
index 16ff75d3..00000000
Binary files a/public/ridge/fuji-8dac36611b90/card-1-t02-geometry.webp and /dev/null differ
diff --git a/public/ridge/fuji-8dac36611b90/card-1-t03-colour.webp b/public/ridge/fuji-8dac36611b90/card-1-t03-colour.webp
deleted file mode 100644
index 1918f131..00000000
Binary files a/public/ridge/fuji-8dac36611b90/card-1-t03-colour.webp and /dev/null differ
diff --git a/public/ridge/fuji-8dac36611b90/card-1-t03-geometry.webp b/public/ridge/fuji-8dac36611b90/card-1-t03-geometry.webp
deleted file mode 100644
index b8a2f602..00000000
Binary files a/public/ridge/fuji-8dac36611b90/card-1-t03-geometry.webp and /dev/null differ
diff --git a/public/ridge/fuji-8dac36611b90/card-1-t04-colour.webp b/public/ridge/fuji-8dac36611b90/card-1-t04-colour.webp
deleted file mode 100644
index fbebfbc8..00000000
Binary files a/public/ridge/fuji-8dac36611b90/card-1-t04-colour.webp and /dev/null differ
diff --git a/public/ridge/fuji-8dac36611b90/card-1-t04-geometry.webp b/public/ridge/fuji-8dac36611b90/card-1-t04-geometry.webp
deleted file mode 100644
index 6f55ce22..00000000
Binary files a/public/ridge/fuji-8dac36611b90/card-1-t04-geometry.webp and /dev/null differ
diff --git a/public/ridge/fuji-8dac36611b90/card-1-t05-colour.webp b/public/ridge/fuji-8dac36611b90/card-1-t05-colour.webp
deleted file mode 100644
index c8086215..00000000
Binary files a/public/ridge/fuji-8dac36611b90/card-1-t05-colour.webp and /dev/null differ
diff --git a/public/ridge/fuji-8dac36611b90/card-1-t05-geometry.webp b/public/ridge/fuji-8dac36611b90/card-1-t05-geometry.webp
deleted file mode 100644
index a36cda8c..00000000
Binary files a/public/ridge/fuji-8dac36611b90/card-1-t05-geometry.webp and /dev/null differ
diff --git a/public/ridge/fuji-8dac36611b90/card-1-t06-colour.webp b/public/ridge/fuji-8dac36611b90/card-1-t06-colour.webp
deleted file mode 100644
index ad979fab..00000000
Binary files a/public/ridge/fuji-8dac36611b90/card-1-t06-colour.webp and /dev/null differ
diff --git a/public/ridge/fuji-8dac36611b90/card-1-t06-geometry.webp b/public/ridge/fuji-8dac36611b90/card-1-t06-geometry.webp
deleted file mode 100644
index 13c89c02..00000000
Binary files a/public/ridge/fuji-8dac36611b90/card-1-t06-geometry.webp and /dev/null differ
diff --git a/public/ridge/fuji-8dac36611b90/card-1-t07-colour.webp b/public/ridge/fuji-8dac36611b90/card-1-t07-colour.webp
deleted file mode 100644
index d7ae25aa..00000000
Binary files a/public/ridge/fuji-8dac36611b90/card-1-t07-colour.webp and /dev/null differ
diff --git a/public/ridge/fuji-8dac36611b90/card-1-t07-geometry.webp b/public/ridge/fuji-8dac36611b90/card-1-t07-geometry.webp
deleted file mode 100644
index 4b06f6da..00000000
Binary files a/public/ridge/fuji-8dac36611b90/card-1-t07-geometry.webp and /dev/null differ
diff --git a/public/ridge/fuji-8dac36611b90/card-1-t08-colour.webp b/public/ridge/fuji-8dac36611b90/card-1-t08-colour.webp
deleted file mode 100644
index 5b0b5ecd..00000000
Binary files a/public/ridge/fuji-8dac36611b90/card-1-t08-colour.webp and /dev/null differ
diff --git a/public/ridge/fuji-8dac36611b90/card-1-t08-geometry.webp b/public/ridge/fuji-8dac36611b90/card-1-t08-geometry.webp
deleted file mode 100644
index e6ee7d76..00000000
Binary files a/public/ridge/fuji-8dac36611b90/card-1-t08-geometry.webp and /dev/null differ
diff --git a/public/ridge/fuji-8dac36611b90/card-1-t09-colour.webp b/public/ridge/fuji-8dac36611b90/card-1-t09-colour.webp
deleted file mode 100644
index 9203eefc..00000000
Binary files a/public/ridge/fuji-8dac36611b90/card-1-t09-colour.webp and /dev/null differ
diff --git a/public/ridge/fuji-8dac36611b90/card-1-t09-geometry.webp b/public/ridge/fuji-8dac36611b90/card-1-t09-geometry.webp
deleted file mode 100644
index 01203777..00000000
Binary files a/public/ridge/fuji-8dac36611b90/card-1-t09-geometry.webp and /dev/null differ
diff --git a/public/ridge/fuji-8dac36611b90/card-1-t10-colour.webp b/public/ridge/fuji-8dac36611b90/card-1-t10-colour.webp
deleted file mode 100644
index f423ffd7..00000000
Binary files a/public/ridge/fuji-8dac36611b90/card-1-t10-colour.webp and /dev/null differ
diff --git a/public/ridge/fuji-8dac36611b90/card-1-t10-geometry.webp b/public/ridge/fuji-8dac36611b90/card-1-t10-geometry.webp
deleted file mode 100644
index a08ae5b7..00000000
Binary files a/public/ridge/fuji-8dac36611b90/card-1-t10-geometry.webp and /dev/null differ
diff --git a/public/ridge/fuji-8dac36611b90/card-1-t11-colour.webp b/public/ridge/fuji-8dac36611b90/card-1-t11-colour.webp
deleted file mode 100644
index 548c3dd2..00000000
Binary files a/public/ridge/fuji-8dac36611b90/card-1-t11-colour.webp and /dev/null differ
diff --git a/public/ridge/fuji-8dac36611b90/card-1-t11-geometry.webp b/public/ridge/fuji-8dac36611b90/card-1-t11-geometry.webp
deleted file mode 100644
index dd2e577f..00000000
Binary files a/public/ridge/fuji-8dac36611b90/card-1-t11-geometry.webp and /dev/null differ
diff --git a/public/ridge/fuji-8dac36611b90/card-1-t12-colour.webp b/public/ridge/fuji-8dac36611b90/card-1-t12-colour.webp
deleted file mode 100644
index 3c822749..00000000
Binary files a/public/ridge/fuji-8dac36611b90/card-1-t12-colour.webp and /dev/null differ
diff --git a/public/ridge/fuji-8dac36611b90/card-1-t12-geometry.webp b/public/ridge/fuji-8dac36611b90/card-1-t12-geometry.webp
deleted file mode 100644
index 4160e4e8..00000000
Binary files a/public/ridge/fuji-8dac36611b90/card-1-t12-geometry.webp and /dev/null differ
diff --git a/public/ridge/fuji-8dac36611b90/card-1-t13-colour.webp b/public/ridge/fuji-8dac36611b90/card-1-t13-colour.webp
deleted file mode 100644
index 184fbc95..00000000
Binary files a/public/ridge/fuji-8dac36611b90/card-1-t13-colour.webp and /dev/null differ
diff --git a/public/ridge/fuji-8dac36611b90/card-1-t13-geometry.webp b/public/ridge/fuji-8dac36611b90/card-1-t13-geometry.webp
deleted file mode 100644
index 72d7dc9d..00000000
Binary files a/public/ridge/fuji-8dac36611b90/card-1-t13-geometry.webp and /dev/null differ
diff --git a/public/ridge/fuji-8dac36611b90/card-1-t14-colour.webp b/public/ridge/fuji-8dac36611b90/card-1-t14-colour.webp
deleted file mode 100644
index 7c4337a7..00000000
Binary files a/public/ridge/fuji-8dac36611b90/card-1-t14-colour.webp and /dev/null differ
diff --git a/public/ridge/fuji-8dac36611b90/card-1-t14-geometry.webp b/public/ridge/fuji-8dac36611b90/card-1-t14-geometry.webp
deleted file mode 100644
index db5c32d8..00000000
Binary files a/public/ridge/fuji-8dac36611b90/card-1-t14-geometry.webp and /dev/null differ
diff --git a/public/ridge/fuji-8dac36611b90/card-1-t15-colour.webp b/public/ridge/fuji-8dac36611b90/card-1-t15-colour.webp
deleted file mode 100644
index 43b85978..00000000
Binary files a/public/ridge/fuji-8dac36611b90/card-1-t15-colour.webp and /dev/null differ
diff --git a/public/ridge/fuji-8dac36611b90/card-1-t15-geometry.webp b/public/ridge/fuji-8dac36611b90/card-1-t15-geometry.webp
deleted file mode 100644
index 6c122045..00000000
Binary files a/public/ridge/fuji-8dac36611b90/card-1-t15-geometry.webp and /dev/null differ
diff --git a/public/ridge/fuji-8dac36611b90/card-1-t16-colour.webp b/public/ridge/fuji-8dac36611b90/card-1-t16-colour.webp
deleted file mode 100644
index 6218b7ec..00000000
Binary files a/public/ridge/fuji-8dac36611b90/card-1-t16-colour.webp and /dev/null differ
diff --git a/public/ridge/fuji-8dac36611b90/card-1-t16-geometry.webp b/public/ridge/fuji-8dac36611b90/card-1-t16-geometry.webp
deleted file mode 100644
index c3db236b..00000000
Binary files a/public/ridge/fuji-8dac36611b90/card-1-t16-geometry.webp and /dev/null differ
diff --git a/public/ridge/fuji-8dac36611b90/card-1-t17-colour.webp b/public/ridge/fuji-8dac36611b90/card-1-t17-colour.webp
deleted file mode 100644
index 52f6fc8e..00000000
Binary files a/public/ridge/fuji-8dac36611b90/card-1-t17-colour.webp and /dev/null differ
diff --git a/public/ridge/fuji-8dac36611b90/card-1-t17-geometry.webp b/public/ridge/fuji-8dac36611b90/card-1-t17-geometry.webp
deleted file mode 100644
index a447c805..00000000
Binary files a/public/ridge/fuji-8dac36611b90/card-1-t17-geometry.webp and /dev/null differ
diff --git a/public/ridge/fuji-8dac36611b90/card-1-t18-colour.webp b/public/ridge/fuji-8dac36611b90/card-1-t18-colour.webp
deleted file mode 100644
index d72c9a9f..00000000
Binary files a/public/ridge/fuji-8dac36611b90/card-1-t18-colour.webp and /dev/null differ
diff --git a/public/ridge/fuji-8dac36611b90/card-1-t18-geometry.webp b/public/ridge/fuji-8dac36611b90/card-1-t18-geometry.webp
deleted file mode 100644
index 7267267d..00000000
Binary files a/public/ridge/fuji-8dac36611b90/card-1-t18-geometry.webp and /dev/null differ
diff --git a/public/ridge/fuji-8dac36611b90/card-1-t19-colour.webp b/public/ridge/fuji-8dac36611b90/card-1-t19-colour.webp
deleted file mode 100644
index 390021be..00000000
Binary files a/public/ridge/fuji-8dac36611b90/card-1-t19-colour.webp and /dev/null differ
diff --git a/public/ridge/fuji-8dac36611b90/card-1-t19-geometry.webp b/public/ridge/fuji-8dac36611b90/card-1-t19-geometry.webp
deleted file mode 100644
index e06925d1..00000000
Binary files a/public/ridge/fuji-8dac36611b90/card-1-t19-geometry.webp and /dev/null differ
diff --git a/public/ridge/fuji-8dac36611b90/card-1-t20-colour.webp b/public/ridge/fuji-8dac36611b90/card-1-t20-colour.webp
deleted file mode 100644
index 1a2c4fd5..00000000
Binary files a/public/ridge/fuji-8dac36611b90/card-1-t20-colour.webp and /dev/null differ
diff --git a/public/ridge/fuji-8dac36611b90/card-1-t20-geometry.webp b/public/ridge/fuji-8dac36611b90/card-1-t20-geometry.webp
deleted file mode 100644
index bf03cd35..00000000
Binary files a/public/ridge/fuji-8dac36611b90/card-1-t20-geometry.webp and /dev/null differ
diff --git a/public/ridge/fuji-8dac36611b90/card-1-t21-colour.webp b/public/ridge/fuji-8dac36611b90/card-1-t21-colour.webp
deleted file mode 100644
index 1b93a9dc..00000000
Binary files a/public/ridge/fuji-8dac36611b90/card-1-t21-colour.webp and /dev/null differ
diff --git a/public/ridge/fuji-8dac36611b90/card-1-t21-geometry.webp b/public/ridge/fuji-8dac36611b90/card-1-t21-geometry.webp
deleted file mode 100644
index 03da01dc..00000000
Binary files a/public/ridge/fuji-8dac36611b90/card-1-t21-geometry.webp and /dev/null differ
diff --git a/public/ridge/fuji-8dac36611b90/card-1-t22-colour.webp b/public/ridge/fuji-8dac36611b90/card-1-t22-colour.webp
deleted file mode 100644
index 699c2c53..00000000
Binary files a/public/ridge/fuji-8dac36611b90/card-1-t22-colour.webp and /dev/null differ
diff --git a/public/ridge/fuji-8dac36611b90/card-1-t22-geometry.webp b/public/ridge/fuji-8dac36611b90/card-1-t22-geometry.webp
deleted file mode 100644
index 41c9fd99..00000000
Binary files a/public/ridge/fuji-8dac36611b90/card-1-t22-geometry.webp and /dev/null differ
diff --git a/public/ridge/fuji-8dac36611b90/card-1-t23-colour.webp b/public/ridge/fuji-8dac36611b90/card-1-t23-colour.webp
deleted file mode 100644
index 16c4ef24..00000000
Binary files a/public/ridge/fuji-8dac36611b90/card-1-t23-colour.webp and /dev/null differ
diff --git a/public/ridge/fuji-8dac36611b90/card-1-t23-geometry.webp b/public/ridge/fuji-8dac36611b90/card-1-t23-geometry.webp
deleted file mode 100644
index 8ce25409..00000000
Binary files a/public/ridge/fuji-8dac36611b90/card-1-t23-geometry.webp and /dev/null differ
diff --git a/public/ridge/fuji-8dac36611b90/card-1-t24-colour.webp b/public/ridge/fuji-8dac36611b90/card-1-t24-colour.webp
deleted file mode 100644
index f1bec22d..00000000
Binary files a/public/ridge/fuji-8dac36611b90/card-1-t24-colour.webp and /dev/null differ
diff --git a/public/ridge/fuji-8dac36611b90/card-1-t24-geometry.webp b/public/ridge/fuji-8dac36611b90/card-1-t24-geometry.webp
deleted file mode 100644
index b4daf9ad..00000000
Binary files a/public/ridge/fuji-8dac36611b90/card-1-t24-geometry.webp and /dev/null differ
diff --git a/public/ridge/fuji-8dac36611b90/card-1-t25-colour.webp b/public/ridge/fuji-8dac36611b90/card-1-t25-colour.webp
deleted file mode 100644
index 3053a4fb..00000000
Binary files a/public/ridge/fuji-8dac36611b90/card-1-t25-colour.webp and /dev/null differ
diff --git a/public/ridge/fuji-8dac36611b90/card-1-t25-geometry.webp b/public/ridge/fuji-8dac36611b90/card-1-t25-geometry.webp
deleted file mode 100644
index 06a79501..00000000
Binary files a/public/ridge/fuji-8dac36611b90/card-1-t25-geometry.webp and /dev/null differ
diff --git a/public/ridge/fuji-8dac36611b90/card-1-t26-colour.webp b/public/ridge/fuji-8dac36611b90/card-1-t26-colour.webp
deleted file mode 100644
index 871a729d..00000000
Binary files a/public/ridge/fuji-8dac36611b90/card-1-t26-colour.webp and /dev/null differ
diff --git a/public/ridge/fuji-8dac36611b90/card-1-t26-geometry.webp b/public/ridge/fuji-8dac36611b90/card-1-t26-geometry.webp
deleted file mode 100644
index e98e34aa..00000000
Binary files a/public/ridge/fuji-8dac36611b90/card-1-t26-geometry.webp and /dev/null differ
diff --git a/public/ridge/fuji-8dac36611b90/card-1-t27-colour.webp b/public/ridge/fuji-8dac36611b90/card-1-t27-colour.webp
deleted file mode 100644
index ab26b8ad..00000000
Binary files a/public/ridge/fuji-8dac36611b90/card-1-t27-colour.webp and /dev/null differ
diff --git a/public/ridge/fuji-8dac36611b90/card-1-t27-geometry.webp b/public/ridge/fuji-8dac36611b90/card-1-t27-geometry.webp
deleted file mode 100644
index 5bf2dc6c..00000000
Binary files a/public/ridge/fuji-8dac36611b90/card-1-t27-geometry.webp and /dev/null differ
diff --git a/public/ridge/fuji-8dac36611b90/card-1-t28-colour.webp b/public/ridge/fuji-8dac36611b90/card-1-t28-colour.webp
deleted file mode 100644
index 85826778..00000000
Binary files a/public/ridge/fuji-8dac36611b90/card-1-t28-colour.webp and /dev/null differ
diff --git a/public/ridge/fuji-8dac36611b90/card-1-t28-geometry.webp b/public/ridge/fuji-8dac36611b90/card-1-t28-geometry.webp
deleted file mode 100644
index acae5476..00000000
Binary files a/public/ridge/fuji-8dac36611b90/card-1-t28-geometry.webp and /dev/null differ
diff --git a/public/ridge/fuji-8dac36611b90/card-1-t29-colour.webp b/public/ridge/fuji-8dac36611b90/card-1-t29-colour.webp
deleted file mode 100644
index b9b05ce5..00000000
Binary files a/public/ridge/fuji-8dac36611b90/card-1-t29-colour.webp and /dev/null differ
diff --git a/public/ridge/fuji-8dac36611b90/card-1-t29-geometry.webp b/public/ridge/fuji-8dac36611b90/card-1-t29-geometry.webp
deleted file mode 100644
index 14b61be6..00000000
Binary files a/public/ridge/fuji-8dac36611b90/card-1-t29-geometry.webp and /dev/null differ
diff --git a/public/ridge/fuji-8dac36611b90/card-1-t30-colour.webp b/public/ridge/fuji-8dac36611b90/card-1-t30-colour.webp
deleted file mode 100644
index d38d1838..00000000
Binary files a/public/ridge/fuji-8dac36611b90/card-1-t30-colour.webp and /dev/null differ
diff --git a/public/ridge/fuji-8dac36611b90/card-1-t30-geometry.webp b/public/ridge/fuji-8dac36611b90/card-1-t30-geometry.webp
deleted file mode 100644
index a707c046..00000000
Binary files a/public/ridge/fuji-8dac36611b90/card-1-t30-geometry.webp and /dev/null differ
diff --git a/public/ridge/fuji-8dac36611b90/card-1-t31-colour.webp b/public/ridge/fuji-8dac36611b90/card-1-t31-colour.webp
deleted file mode 100644
index cc888dc0..00000000
Binary files a/public/ridge/fuji-8dac36611b90/card-1-t31-colour.webp and /dev/null differ
diff --git a/public/ridge/fuji-8dac36611b90/card-1-t31-geometry.webp b/public/ridge/fuji-8dac36611b90/card-1-t31-geometry.webp
deleted file mode 100644
index c64b6664..00000000
Binary files a/public/ridge/fuji-8dac36611b90/card-1-t31-geometry.webp and /dev/null differ
diff --git a/public/ridge/fuji-8dac36611b90/card-2-t00-colour.webp b/public/ridge/fuji-8dac36611b90/card-2-t00-colour.webp
deleted file mode 100644
index f0e5f75d..00000000
Binary files a/public/ridge/fuji-8dac36611b90/card-2-t00-colour.webp and /dev/null differ
diff --git a/public/ridge/fuji-8dac36611b90/card-2-t00-geometry.webp b/public/ridge/fuji-8dac36611b90/card-2-t00-geometry.webp
deleted file mode 100644
index 45e08f46..00000000
Binary files a/public/ridge/fuji-8dac36611b90/card-2-t00-geometry.webp and /dev/null differ
diff --git a/public/ridge/fuji-8dac36611b90/card-2-t01-colour.webp b/public/ridge/fuji-8dac36611b90/card-2-t01-colour.webp
deleted file mode 100644
index 7d8bd71a..00000000
Binary files a/public/ridge/fuji-8dac36611b90/card-2-t01-colour.webp and /dev/null differ
diff --git a/public/ridge/fuji-8dac36611b90/card-2-t01-geometry.webp b/public/ridge/fuji-8dac36611b90/card-2-t01-geometry.webp
deleted file mode 100644
index 1a2bf22c..00000000
Binary files a/public/ridge/fuji-8dac36611b90/card-2-t01-geometry.webp and /dev/null differ
diff --git a/public/ridge/fuji-8dac36611b90/card-2-t02-colour.webp b/public/ridge/fuji-8dac36611b90/card-2-t02-colour.webp
deleted file mode 100644
index 843153d0..00000000
Binary files a/public/ridge/fuji-8dac36611b90/card-2-t02-colour.webp and /dev/null differ
diff --git a/public/ridge/fuji-8dac36611b90/card-2-t02-geometry.webp b/public/ridge/fuji-8dac36611b90/card-2-t02-geometry.webp
deleted file mode 100644
index 46836d85..00000000
Binary files a/public/ridge/fuji-8dac36611b90/card-2-t02-geometry.webp and /dev/null differ
diff --git a/public/ridge/fuji-8dac36611b90/card-2-t03-colour.webp b/public/ridge/fuji-8dac36611b90/card-2-t03-colour.webp
deleted file mode 100644
index 60d8dbb5..00000000
Binary files a/public/ridge/fuji-8dac36611b90/card-2-t03-colour.webp and /dev/null differ
diff --git a/public/ridge/fuji-8dac36611b90/card-2-t03-geometry.webp b/public/ridge/fuji-8dac36611b90/card-2-t03-geometry.webp
deleted file mode 100644
index 03abdb9a..00000000
Binary files a/public/ridge/fuji-8dac36611b90/card-2-t03-geometry.webp and /dev/null differ
diff --git a/public/ridge/fuji-8dac36611b90/card-2-t04-colour.webp b/public/ridge/fuji-8dac36611b90/card-2-t04-colour.webp
deleted file mode 100644
index 9f4a0707..00000000
Binary files a/public/ridge/fuji-8dac36611b90/card-2-t04-colour.webp and /dev/null differ
diff --git a/public/ridge/fuji-8dac36611b90/card-2-t04-geometry.webp b/public/ridge/fuji-8dac36611b90/card-2-t04-geometry.webp
deleted file mode 100644
index 077851e9..00000000
Binary files a/public/ridge/fuji-8dac36611b90/card-2-t04-geometry.webp and /dev/null differ
diff --git a/public/ridge/fuji-8dac36611b90/card-2-t05-colour.webp b/public/ridge/fuji-8dac36611b90/card-2-t05-colour.webp
deleted file mode 100644
index 253733c3..00000000
Binary files a/public/ridge/fuji-8dac36611b90/card-2-t05-colour.webp and /dev/null differ
diff --git a/public/ridge/fuji-8dac36611b90/card-2-t05-geometry.webp b/public/ridge/fuji-8dac36611b90/card-2-t05-geometry.webp
deleted file mode 100644
index 2d1981b4..00000000
Binary files a/public/ridge/fuji-8dac36611b90/card-2-t05-geometry.webp and /dev/null differ
diff --git a/public/ridge/fuji-8dac36611b90/card-2-t06-colour.webp b/public/ridge/fuji-8dac36611b90/card-2-t06-colour.webp
deleted file mode 100644
index 8167d70a..00000000
Binary files a/public/ridge/fuji-8dac36611b90/card-2-t06-colour.webp and /dev/null differ
diff --git a/public/ridge/fuji-8dac36611b90/card-2-t06-geometry.webp b/public/ridge/fuji-8dac36611b90/card-2-t06-geometry.webp
deleted file mode 100644
index c78b28ce..00000000
Binary files a/public/ridge/fuji-8dac36611b90/card-2-t06-geometry.webp and /dev/null differ
diff --git a/public/ridge/fuji-8dac36611b90/card-2-t07-colour.webp b/public/ridge/fuji-8dac36611b90/card-2-t07-colour.webp
deleted file mode 100644
index f6b904e0..00000000
Binary files a/public/ridge/fuji-8dac36611b90/card-2-t07-colour.webp and /dev/null differ
diff --git a/public/ridge/fuji-8dac36611b90/card-2-t07-geometry.webp b/public/ridge/fuji-8dac36611b90/card-2-t07-geometry.webp
deleted file mode 100644
index 15378b66..00000000
Binary files a/public/ridge/fuji-8dac36611b90/card-2-t07-geometry.webp and /dev/null differ
diff --git a/public/ridge/fuji-8dac36611b90/card-2-t08-colour.webp b/public/ridge/fuji-8dac36611b90/card-2-t08-colour.webp
deleted file mode 100644
index 1e6c6530..00000000
Binary files a/public/ridge/fuji-8dac36611b90/card-2-t08-colour.webp and /dev/null differ
diff --git a/public/ridge/fuji-8dac36611b90/card-2-t08-geometry.webp b/public/ridge/fuji-8dac36611b90/card-2-t08-geometry.webp
deleted file mode 100644
index 913101cb..00000000
Binary files a/public/ridge/fuji-8dac36611b90/card-2-t08-geometry.webp and /dev/null differ
diff --git a/public/ridge/fuji-8dac36611b90/card-2-t09-colour.webp b/public/ridge/fuji-8dac36611b90/card-2-t09-colour.webp
deleted file mode 100644
index 0f1ce310..00000000
Binary files a/public/ridge/fuji-8dac36611b90/card-2-t09-colour.webp and /dev/null differ
diff --git a/public/ridge/fuji-8dac36611b90/card-2-t09-geometry.webp b/public/ridge/fuji-8dac36611b90/card-2-t09-geometry.webp
deleted file mode 100644
index 87c55475..00000000
Binary files a/public/ridge/fuji-8dac36611b90/card-2-t09-geometry.webp and /dev/null differ
diff --git a/public/ridge/fuji-8dac36611b90/card-2-t10-colour.webp b/public/ridge/fuji-8dac36611b90/card-2-t10-colour.webp
deleted file mode 100644
index 4a180866..00000000
Binary files a/public/ridge/fuji-8dac36611b90/card-2-t10-colour.webp and /dev/null differ
diff --git a/public/ridge/fuji-8dac36611b90/card-2-t10-geometry.webp b/public/ridge/fuji-8dac36611b90/card-2-t10-geometry.webp
deleted file mode 100644
index 41b6f73e..00000000
Binary files a/public/ridge/fuji-8dac36611b90/card-2-t10-geometry.webp and /dev/null differ
diff --git a/public/ridge/fuji-8dac36611b90/card-2-t11-colour.webp b/public/ridge/fuji-8dac36611b90/card-2-t11-colour.webp
deleted file mode 100644
index b355c20c..00000000
Binary files a/public/ridge/fuji-8dac36611b90/card-2-t11-colour.webp and /dev/null differ
diff --git a/public/ridge/fuji-8dac36611b90/card-2-t11-geometry.webp b/public/ridge/fuji-8dac36611b90/card-2-t11-geometry.webp
deleted file mode 100644
index 964fd6f8..00000000
Binary files a/public/ridge/fuji-8dac36611b90/card-2-t11-geometry.webp and /dev/null differ
diff --git a/public/ridge/fuji-8dac36611b90/card-2-t12-colour.webp b/public/ridge/fuji-8dac36611b90/card-2-t12-colour.webp
deleted file mode 100644
index 0b3766e4..00000000
Binary files a/public/ridge/fuji-8dac36611b90/card-2-t12-colour.webp and /dev/null differ
diff --git a/public/ridge/fuji-8dac36611b90/card-2-t12-geometry.webp b/public/ridge/fuji-8dac36611b90/card-2-t12-geometry.webp
deleted file mode 100644
index 84c139d8..00000000
Binary files a/public/ridge/fuji-8dac36611b90/card-2-t12-geometry.webp and /dev/null differ
diff --git a/public/ridge/fuji-8dac36611b90/card-2-t13-colour.webp b/public/ridge/fuji-8dac36611b90/card-2-t13-colour.webp
deleted file mode 100644
index fdd9b0cd..00000000
Binary files a/public/ridge/fuji-8dac36611b90/card-2-t13-colour.webp and /dev/null differ
diff --git a/public/ridge/fuji-8dac36611b90/card-2-t13-geometry.webp b/public/ridge/fuji-8dac36611b90/card-2-t13-geometry.webp
deleted file mode 100644
index 3e446e23..00000000
Binary files a/public/ridge/fuji-8dac36611b90/card-2-t13-geometry.webp and /dev/null differ
diff --git a/public/ridge/fuji-8dac36611b90/card-2-t14-colour.webp b/public/ridge/fuji-8dac36611b90/card-2-t14-colour.webp
deleted file mode 100644
index 4a250c52..00000000
Binary files a/public/ridge/fuji-8dac36611b90/card-2-t14-colour.webp and /dev/null differ
diff --git a/public/ridge/fuji-8dac36611b90/card-2-t14-geometry.webp b/public/ridge/fuji-8dac36611b90/card-2-t14-geometry.webp
deleted file mode 100644
index 73247286..00000000
Binary files a/public/ridge/fuji-8dac36611b90/card-2-t14-geometry.webp and /dev/null differ
diff --git a/public/ridge/fuji-8dac36611b90/card-2-t15-colour.webp b/public/ridge/fuji-8dac36611b90/card-2-t15-colour.webp
deleted file mode 100644
index e3b1f40d..00000000
Binary files a/public/ridge/fuji-8dac36611b90/card-2-t15-colour.webp and /dev/null differ
diff --git a/public/ridge/fuji-8dac36611b90/card-2-t15-geometry.webp b/public/ridge/fuji-8dac36611b90/card-2-t15-geometry.webp
deleted file mode 100644
index d760e140..00000000
Binary files a/public/ridge/fuji-8dac36611b90/card-2-t15-geometry.webp and /dev/null differ
diff --git a/public/ridge/fuji-8dac36611b90/card-2-t16-colour.webp b/public/ridge/fuji-8dac36611b90/card-2-t16-colour.webp
deleted file mode 100644
index 5c9d1233..00000000
Binary files a/public/ridge/fuji-8dac36611b90/card-2-t16-colour.webp and /dev/null differ
diff --git a/public/ridge/fuji-8dac36611b90/card-2-t16-geometry.webp b/public/ridge/fuji-8dac36611b90/card-2-t16-geometry.webp
deleted file mode 100644
index 2a020593..00000000
Binary files a/public/ridge/fuji-8dac36611b90/card-2-t16-geometry.webp and /dev/null differ
diff --git a/public/ridge/fuji-8dac36611b90/card-2-t17-colour.webp b/public/ridge/fuji-8dac36611b90/card-2-t17-colour.webp
deleted file mode 100644
index 1d00ef23..00000000
Binary files a/public/ridge/fuji-8dac36611b90/card-2-t17-colour.webp and /dev/null differ
diff --git a/public/ridge/fuji-8dac36611b90/card-2-t17-geometry.webp b/public/ridge/fuji-8dac36611b90/card-2-t17-geometry.webp
deleted file mode 100644
index 411b9793..00000000
Binary files a/public/ridge/fuji-8dac36611b90/card-2-t17-geometry.webp and /dev/null differ
diff --git a/public/ridge/fuji-8dac36611b90/card-2-t18-colour.webp b/public/ridge/fuji-8dac36611b90/card-2-t18-colour.webp
deleted file mode 100644
index e28c3383..00000000
Binary files a/public/ridge/fuji-8dac36611b90/card-2-t18-colour.webp and /dev/null differ
diff --git a/public/ridge/fuji-8dac36611b90/card-2-t18-geometry.webp b/public/ridge/fuji-8dac36611b90/card-2-t18-geometry.webp
deleted file mode 100644
index c61774ee..00000000
Binary files a/public/ridge/fuji-8dac36611b90/card-2-t18-geometry.webp and /dev/null differ
diff --git a/public/ridge/fuji-8dac36611b90/card-2-t19-colour.webp b/public/ridge/fuji-8dac36611b90/card-2-t19-colour.webp
deleted file mode 100644
index 223bc9c1..00000000
Binary files a/public/ridge/fuji-8dac36611b90/card-2-t19-colour.webp and /dev/null differ
diff --git a/public/ridge/fuji-8dac36611b90/card-2-t19-geometry.webp b/public/ridge/fuji-8dac36611b90/card-2-t19-geometry.webp
deleted file mode 100644
index dc62e04e..00000000
Binary files a/public/ridge/fuji-8dac36611b90/card-2-t19-geometry.webp and /dev/null differ
diff --git a/public/ridge/fuji-8dac36611b90/card-2-t20-colour.webp b/public/ridge/fuji-8dac36611b90/card-2-t20-colour.webp
deleted file mode 100644
index 6003dadb..00000000
Binary files a/public/ridge/fuji-8dac36611b90/card-2-t20-colour.webp and /dev/null differ
diff --git a/public/ridge/fuji-8dac36611b90/card-2-t20-geometry.webp b/public/ridge/fuji-8dac36611b90/card-2-t20-geometry.webp
deleted file mode 100644
index a646cacc..00000000
Binary files a/public/ridge/fuji-8dac36611b90/card-2-t20-geometry.webp and /dev/null differ
diff --git a/public/ridge/fuji-8dac36611b90/card-2-t21-colour.webp b/public/ridge/fuji-8dac36611b90/card-2-t21-colour.webp
deleted file mode 100644
index 79e3d279..00000000
Binary files a/public/ridge/fuji-8dac36611b90/card-2-t21-colour.webp and /dev/null differ
diff --git a/public/ridge/fuji-8dac36611b90/card-2-t21-geometry.webp b/public/ridge/fuji-8dac36611b90/card-2-t21-geometry.webp
deleted file mode 100644
index 3cba62ce..00000000
Binary files a/public/ridge/fuji-8dac36611b90/card-2-t21-geometry.webp and /dev/null differ
diff --git a/public/ridge/fuji-8dac36611b90/card-2-t22-colour.webp b/public/ridge/fuji-8dac36611b90/card-2-t22-colour.webp
deleted file mode 100644
index 26cb1f74..00000000
Binary files a/public/ridge/fuji-8dac36611b90/card-2-t22-colour.webp and /dev/null differ
diff --git a/public/ridge/fuji-8dac36611b90/card-2-t22-geometry.webp b/public/ridge/fuji-8dac36611b90/card-2-t22-geometry.webp
deleted file mode 100644
index 84dcf595..00000000
Binary files a/public/ridge/fuji-8dac36611b90/card-2-t22-geometry.webp and /dev/null differ
diff --git a/public/ridge/fuji-8dac36611b90/card-2-t23-colour.webp b/public/ridge/fuji-8dac36611b90/card-2-t23-colour.webp
deleted file mode 100644
index e6db6a47..00000000
Binary files a/public/ridge/fuji-8dac36611b90/card-2-t23-colour.webp and /dev/null differ
diff --git a/public/ridge/fuji-8dac36611b90/card-2-t23-geometry.webp b/public/ridge/fuji-8dac36611b90/card-2-t23-geometry.webp
deleted file mode 100644
index fd0052c7..00000000
Binary files a/public/ridge/fuji-8dac36611b90/card-2-t23-geometry.webp and /dev/null differ
diff --git a/public/ridge/fuji-8dac36611b90/card-2-t24-colour.webp b/public/ridge/fuji-8dac36611b90/card-2-t24-colour.webp
deleted file mode 100644
index 663c44d4..00000000
Binary files a/public/ridge/fuji-8dac36611b90/card-2-t24-colour.webp and /dev/null differ
diff --git a/public/ridge/fuji-8dac36611b90/card-2-t24-geometry.webp b/public/ridge/fuji-8dac36611b90/card-2-t24-geometry.webp
deleted file mode 100644
index 23d3264d..00000000
Binary files a/public/ridge/fuji-8dac36611b90/card-2-t24-geometry.webp and /dev/null differ
diff --git a/public/ridge/fuji-8dac36611b90/card-2-t25-colour.webp b/public/ridge/fuji-8dac36611b90/card-2-t25-colour.webp
deleted file mode 100644
index ec455997..00000000
Binary files a/public/ridge/fuji-8dac36611b90/card-2-t25-colour.webp and /dev/null differ
diff --git a/public/ridge/fuji-8dac36611b90/card-2-t25-geometry.webp b/public/ridge/fuji-8dac36611b90/card-2-t25-geometry.webp
deleted file mode 100644
index 98b1a692..00000000
Binary files a/public/ridge/fuji-8dac36611b90/card-2-t25-geometry.webp and /dev/null differ
diff --git a/public/ridge/fuji-8dac36611b90/card-2-t26-colour.webp b/public/ridge/fuji-8dac36611b90/card-2-t26-colour.webp
deleted file mode 100644
index 9d69adb5..00000000
Binary files a/public/ridge/fuji-8dac36611b90/card-2-t26-colour.webp and /dev/null differ
diff --git a/public/ridge/fuji-8dac36611b90/card-2-t26-geometry.webp b/public/ridge/fuji-8dac36611b90/card-2-t26-geometry.webp
deleted file mode 100644
index 82bb08c1..00000000
Binary files a/public/ridge/fuji-8dac36611b90/card-2-t26-geometry.webp and /dev/null differ
diff --git a/public/ridge/fuji-8dac36611b90/card-2-t27-colour.webp b/public/ridge/fuji-8dac36611b90/card-2-t27-colour.webp
deleted file mode 100644
index 6d1f461c..00000000
Binary files a/public/ridge/fuji-8dac36611b90/card-2-t27-colour.webp and /dev/null differ
diff --git a/public/ridge/fuji-8dac36611b90/card-2-t27-geometry.webp b/public/ridge/fuji-8dac36611b90/card-2-t27-geometry.webp
deleted file mode 100644
index 78bff6b1..00000000
Binary files a/public/ridge/fuji-8dac36611b90/card-2-t27-geometry.webp and /dev/null differ
diff --git a/public/ridge/fuji-8dac36611b90/card-2-t28-colour.webp b/public/ridge/fuji-8dac36611b90/card-2-t28-colour.webp
deleted file mode 100644
index cbc2953f..00000000
Binary files a/public/ridge/fuji-8dac36611b90/card-2-t28-colour.webp and /dev/null differ
diff --git a/public/ridge/fuji-8dac36611b90/card-2-t28-geometry.webp b/public/ridge/fuji-8dac36611b90/card-2-t28-geometry.webp
deleted file mode 100644
index c22aee68..00000000
Binary files a/public/ridge/fuji-8dac36611b90/card-2-t28-geometry.webp and /dev/null differ
diff --git a/public/ridge/fuji-8dac36611b90/card-2-t29-colour.webp b/public/ridge/fuji-8dac36611b90/card-2-t29-colour.webp
deleted file mode 100644
index 458a13cb..00000000
Binary files a/public/ridge/fuji-8dac36611b90/card-2-t29-colour.webp and /dev/null differ
diff --git a/public/ridge/fuji-8dac36611b90/card-2-t29-geometry.webp b/public/ridge/fuji-8dac36611b90/card-2-t29-geometry.webp
deleted file mode 100644
index cb6f1fd6..00000000
Binary files a/public/ridge/fuji-8dac36611b90/card-2-t29-geometry.webp and /dev/null differ
diff --git a/public/ridge/fuji-8dac36611b90/card-2-t30-colour.webp b/public/ridge/fuji-8dac36611b90/card-2-t30-colour.webp
deleted file mode 100644
index 08c84bd9..00000000
Binary files a/public/ridge/fuji-8dac36611b90/card-2-t30-colour.webp and /dev/null differ
diff --git a/public/ridge/fuji-8dac36611b90/card-2-t30-geometry.webp b/public/ridge/fuji-8dac36611b90/card-2-t30-geometry.webp
deleted file mode 100644
index d87ffe2d..00000000
Binary files a/public/ridge/fuji-8dac36611b90/card-2-t30-geometry.webp and /dev/null differ
diff --git a/public/ridge/fuji-8dac36611b90/card-2-t31-colour.webp b/public/ridge/fuji-8dac36611b90/card-2-t31-colour.webp
deleted file mode 100644
index 7c8f34dc..00000000
Binary files a/public/ridge/fuji-8dac36611b90/card-2-t31-colour.webp and /dev/null differ
diff --git a/public/ridge/fuji-8dac36611b90/card-2-t31-geometry.webp b/public/ridge/fuji-8dac36611b90/card-2-t31-geometry.webp
deleted file mode 100644
index ec121bab..00000000
Binary files a/public/ridge/fuji-8dac36611b90/card-2-t31-geometry.webp and /dev/null differ
diff --git a/public/ridge/fuji-8dac36611b90/manifest.json b/public/ridge/fuji-8dac36611b90/manifest.json
deleted file mode 100644
index 3d40b7b8..00000000
--- a/public/ridge/fuji-8dac36611b90/manifest.json
+++ /dev/null
@@ -1,1376 +0,0 @@
-{
- "schema": 3,
- "baker_version": 7,
- "bake_id": "8dac36611b90",
- "place": {
- "id": "fuji",
- "name": "Fuji from Shiraito Falls",
- "lat": 35.312467222222494,
- "lon": 138.587223194445,
- "altitude_km": 0.486932967116363,
- "eye_m": 488.53296711636307,
- "tz": "Asia/Tokyo"
- },
- "view": {
- "look_az_deg": 67.161576536126,
- "plane_h": 600,
- "px_per_deg_h": 17.77777777777778,
- "px_per_deg_v": 26.57953416522506,
- "exaggeration": 1.4950987967939096,
- "horizon_row": 377.3786586364885,
- "sky_row": 24.0,
- "near_row": 396.0,
- "ring_w": 6400,
- "tile_w": 200,
- "tiles": 32,
- "apron": 2
- },
- "curvature": {
- "r_earth_m": 6371000.0,
- "k_ref": 0.13
- },
- "encoding": {
- "log_d_min": 6.214608098422191,
- "log_d_max": 11.00475592466117,
- "normal": "rt8"
- },
- "camera": {
- "r_max_m": 95.8,
- "r_max_forward_m": 198.4
- },
- "cards": [
- {
- "near_m": null,
- "far_m": 1583.253869396531
- },
- {
- "near_m": 1583.253869396531,
- "far_m": 15874.92439468983
- },
- {
- "near_m": 15874.92439468983,
- "far_m": null
- }
- ],
- "tiles": [
- [
- {
- "top": 301,
- "h": 299,
- "distance_m": 1165.49267578125,
- "colour": {
- "file": "card-0-t00-colour.webp",
- "bytes": 550
- },
- "geometry": {
- "file": "card-0-t00-geometry.webp",
- "bytes": 1446
- }
- },
- {
- "top": 283,
- "h": 317,
- "distance_m": 3045.256103515625,
- "colour": {
- "file": "card-1-t00-colour.webp",
- "bytes": 808
- },
- "geometry": {
- "file": "card-1-t00-geometry.webp",
- "bytes": 3490
- }
- },
- {
- "top": 313,
- "h": 287,
- "distance_m": 18859.54296875,
- "colour": {
- "file": "card-2-t00-colour.webp",
- "bytes": 864
- },
- "geometry": {
- "file": "card-2-t00-geometry.webp",
- "bytes": 4160
- }
- }
- ],
- [
- {
- "top": 291,
- "h": 309,
- "distance_m": 859.9998779296875,
- "colour": {
- "file": "card-0-t01-colour.webp",
- "bytes": 650
- },
- "geometry": {
- "file": "card-0-t01-geometry.webp",
- "bytes": 3810
- }
- },
- {
- "top": 284,
- "h": 316,
- "distance_m": 6953.26611328125,
- "colour": {
- "file": "card-1-t01-colour.webp",
- "bytes": 716
- },
- "geometry": {
- "file": "card-1-t01-geometry.webp",
- "bytes": 4140
- }
- },
- {
- "top": 292,
- "h": 308,
- "distance_m": 23120.55078125,
- "colour": {
- "file": "card-2-t01-colour.webp",
- "bytes": 790
- },
- "geometry": {
- "file": "card-2-t01-geometry.webp",
- "bytes": 3384
- }
- }
- ],
- [
- {
- "top": 284,
- "h": 316,
- "distance_m": 676.6893920898438,
- "colour": {
- "file": "card-0-t02-colour.webp",
- "bytes": 672
- },
- "geometry": {
- "file": "card-0-t02-geometry.webp",
- "bytes": 4652
- }
- },
- {
- "top": 260,
- "h": 340,
- "distance_m": 6780.00048828125,
- "colour": {
- "file": "card-1-t02-colour.webp",
- "bytes": 834
- },
- "geometry": {
- "file": "card-1-t02-geometry.webp",
- "bytes": 7466
- }
- },
- {
- "top": 287,
- "h": 313,
- "distance_m": 15794.0107421875,
- "colour": {
- "file": "card-2-t02-colour.webp",
- "bytes": 518
- },
- "geometry": {
- "file": "card-2-t02-geometry.webp",
- "bytes": 376
- }
- }
- ],
- [
- {
- "top": 271,
- "h": 329,
- "distance_m": 533.1802978515625,
- "colour": {
- "file": "card-0-t03-colour.webp",
- "bytes": 744
- },
- "geometry": {
- "file": "card-0-t03-geometry.webp",
- "bytes": 6446
- }
- },
- {
- "top": 219,
- "h": 381,
- "distance_m": 7060.0029296875,
- "colour": {
- "file": "card-1-t03-colour.webp",
- "bytes": 1026
- },
- "geometry": {
- "file": "card-1-t03-geometry.webp",
- "bytes": 16660
- }
- },
- {
- "top": 262,
- "h": 338,
- "distance_m": 15731.759765625,
- "colour": {
- "file": "card-2-t03-colour.webp",
- "bytes": 454
- },
- "geometry": {
- "file": "card-2-t03-geometry.webp",
- "bytes": 176
- }
- }
- ],
- [
- {
- "top": 273,
- "h": 327,
- "distance_m": 733.8682250976562,
- "colour": {
- "file": "card-0-t04-colour.webp",
- "bytes": 598
- },
- "geometry": {
- "file": "card-0-t04-geometry.webp",
- "bytes": 7574
- }
- },
- {
- "top": 143,
- "h": 457,
- "distance_m": 7140.001953125,
- "colour": {
- "file": "card-1-t04-colour.webp",
- "bytes": 1650
- },
- "geometry": {
- "file": "card-1-t04-geometry.webp",
- "bytes": 33048
- }
- },
- {
- "top": 194,
- "h": 406,
- "distance_m": 15731.759765625,
- "colour": {
- "file": "card-2-t04-colour.webp",
- "bytes": 780
- },
- "geometry": {
- "file": "card-2-t04-geometry.webp",
- "bytes": 168
- }
- }
- ],
- [
- {
- "top": 291,
- "h": 309,
- "distance_m": 620.0,
- "colour": {
- "file": "card-0-t05-colour.webp",
- "bytes": 834
- },
- "geometry": {
- "file": "card-0-t05-geometry.webp",
- "bytes": 8660
- }
- },
- {
- "top": 24,
- "h": 576,
- "distance_m": 9899.9970703125,
- "colour": {
- "file": "card-1-t05-colour.webp",
- "bytes": 3946
- },
- "geometry": {
- "file": "card-1-t05-geometry.webp",
- "bytes": 56096
- }
- },
- {
- "top": 131,
- "h": 469,
- "distance_m": 15731.759765625,
- "colour": {
- "file": "card-2-t05-colour.webp",
- "bytes": 514
- },
- "geometry": {
- "file": "card-2-t05-geometry.webp",
- "bytes": 176
- }
- }
- ],
- [
- {
- "top": 305,
- "h": 295,
- "distance_m": 671.1244506835938,
- "colour": {
- "file": "card-0-t06-colour.webp",
- "bytes": 1014
- },
- "geometry": {
- "file": "card-0-t06-geometry.webp",
- "bytes": 10652
- }
- },
- {
- "top": 25,
- "h": 575,
- "distance_m": 9121.8095703125,
- "colour": {
- "file": "card-1-t06-colour.webp",
- "bytes": 2732
- },
- "geometry": {
- "file": "card-1-t06-geometry.webp",
- "bytes": 50750
- }
- },
- {
- "top": 135,
- "h": 465,
- "distance_m": 15326.396484375,
- "colour": {
- "file": "card-2-t06-colour.webp",
- "bytes": 500
- },
- "geometry": {
- "file": "card-2-t06-geometry.webp",
- "bytes": 376
- }
- }
- ],
- [
- {
- "top": 329,
- "h": 271,
- "distance_m": 842.284423828125,
- "colour": {
- "file": "card-0-t07-colour.webp",
- "bytes": 632
- },
- "geometry": {
- "file": "card-0-t07-geometry.webp",
- "bytes": 7864
- }
- },
- {
- "top": 167,
- "h": 433,
- "distance_m": 5535.31689453125,
- "colour": {
- "file": "card-1-t07-colour.webp",
- "bytes": 1508
- },
- "geometry": {
- "file": "card-1-t07-geometry.webp",
- "bytes": 32304
- }
- },
- {
- "top": 184,
- "h": 416,
- "distance_m": 14936.1650390625,
- "colour": {
- "file": "card-2-t07-colour.webp",
- "bytes": 814
- },
- "geometry": {
- "file": "card-2-t07-geometry.webp",
- "bytes": 358
- }
- }
- ],
- [
- {
- "top": 347,
- "h": 253,
- "distance_m": 822.8244018554688,
- "colour": {
- "file": "card-0-t08-colour.webp",
- "bytes": 656
- },
- "geometry": {
- "file": "card-0-t08-geometry.webp",
- "bytes": 5594
- }
- },
- {
- "top": 237,
- "h": 363,
- "distance_m": 4411.3466796875,
- "colour": {
- "file": "card-1-t08-colour.webp",
- "bytes": 1054
- },
- "geometry": {
- "file": "card-1-t08-geometry.webp",
- "bytes": 22196
- }
- },
- {
- "top": 262,
- "h": 338,
- "distance_m": 14903.5107421875,
- "colour": {
- "file": "card-2-t08-colour.webp",
- "bytes": 564
- },
- "geometry": {
- "file": "card-2-t08-geometry.webp",
- "bytes": 282
- }
- }
- ],
- [
- {
- "top": 348,
- "h": 252,
- "distance_m": 761.4862060546875,
- "colour": {
- "file": "card-0-t09-colour.webp",
- "bytes": 726
- },
- "geometry": {
- "file": "card-0-t09-geometry.webp",
- "bytes": 8744
- }
- },
- {
- "top": 287,
- "h": 313,
- "distance_m": 4339.99951171875,
- "colour": {
- "file": "card-1-t09-colour.webp",
- "bytes": 986
- },
- "geometry": {
- "file": "card-1-t09-geometry.webp",
- "bytes": 16712
- }
- },
- {
- "top": 305,
- "h": 295,
- "distance_m": 19806.669921875,
- "colour": {
- "file": "card-2-t09-colour.webp",
- "bytes": 582
- },
- "geometry": {
- "file": "card-2-t09-geometry.webp",
- "bytes": 1658
- }
- }
- ],
- [
- {
- "top": 352,
- "h": 248,
- "distance_m": 500.0,
- "colour": {
- "file": "card-0-t10-colour.webp",
- "bytes": 754
- },
- "geometry": {
- "file": "card-0-t10-geometry.webp",
- "bytes": 11398
- }
- },
- {
- "top": 326,
- "h": 274,
- "distance_m": 4207.16943359375,
- "colour": {
- "file": "card-1-t10-colour.webp",
- "bytes": 756
- },
- "geometry": {
- "file": "card-1-t10-geometry.webp",
- "bytes": 10954
- }
- },
- {
- "top": 304,
- "h": 296,
- "distance_m": 19358.07421875,
- "colour": {
- "file": "card-2-t10-colour.webp",
- "bytes": 1618
- },
- "geometry": {
- "file": "card-2-t10-geometry.webp",
- "bytes": 10682
- }
- }
- ],
- [
- {
- "top": 347,
- "h": 253,
- "distance_m": 527.2754516601562,
- "colour": {
- "file": "card-0-t11-colour.webp",
- "bytes": 1012
- },
- "geometry": {
- "file": "card-0-t11-geometry.webp",
- "bytes": 8924
- }
- },
- {
- "top": 358,
- "h": 242,
- "distance_m": 4933.00732421875,
- "colour": {
- "file": "card-1-t11-colour.webp",
- "bytes": 478
- },
- "geometry": {
- "file": "card-1-t11-geometry.webp",
- "bytes": 5326
- }
- },
- {
- "top": 342,
- "h": 258,
- "distance_m": 19438.56640625,
- "colour": {
- "file": "card-2-t11-colour.webp",
- "bytes": 770
- },
- "geometry": {
- "file": "card-2-t11-geometry.webp",
- "bytes": 4296
- }
- }
- ],
- [
- {
- "top": 352,
- "h": 248,
- "distance_m": 520.909423828125,
- "colour": {
- "file": "card-0-t12-colour.webp",
- "bytes": 998
- },
- "geometry": {
- "file": "card-0-t12-geometry.webp",
- "bytes": 7092
- }
- },
- {
- "top": 388,
- "h": 212,
- "distance_m": 1597.173583984375,
- "colour": {
- "file": "card-1-t12-colour.webp",
- "bytes": 458
- },
- "geometry": {
- "file": "card-1-t12-geometry.webp",
- "bytes": 4096
- }
- },
- {
- "top": 370,
- "h": 230,
- "distance_m": 43464.87890625,
- "colour": {
- "file": "card-2-t12-colour.webp",
- "bytes": 834
- },
- "geometry": {
- "file": "card-2-t12-geometry.webp",
- "bytes": 8064
- }
- }
- ],
- [
- {
- "top": 384,
- "h": 216,
- "distance_m": 641.1549682617188,
- "colour": {
- "file": "card-0-t13-colour.webp",
- "bytes": 816
- },
- "geometry": {
- "file": "card-0-t13-geometry.webp",
- "bytes": 5824
- }
- },
- {
- "top": 409,
- "h": 191,
- "distance_m": 7060.0029296875,
- "colour": {
- "file": "card-1-t13-colour.webp",
- "bytes": 504
- },
- "geometry": {
- "file": "card-1-t13-geometry.webp",
- "bytes": 3526
- }
- },
- {
- "top": 366,
- "h": 234,
- "distance_m": 39014.42578125,
- "colour": {
- "file": "card-2-t13-colour.webp",
- "bytes": 1242
- },
- "geometry": {
- "file": "card-2-t13-geometry.webp",
- "bytes": 13042
- }
- }
- ],
- [
- {
- "top": 403,
- "h": 197,
- "distance_m": 580.0,
- "colour": {
- "file": "card-0-t14-colour.webp",
- "bytes": 780
- },
- "geometry": {
- "file": "card-0-t14-geometry.webp",
- "bytes": 7612
- }
- },
- {
- "top": 413,
- "h": 187,
- "distance_m": 1765.88525390625,
- "colour": {
- "file": "card-1-t14-colour.webp",
- "bytes": 810
- },
- "geometry": {
- "file": "card-1-t14-geometry.webp",
- "bytes": 4132
- }
- },
- {
- "top": 377,
- "h": 223,
- "distance_m": 32016.8203125,
- "colour": {
- "file": "card-2-t14-colour.webp",
- "bytes": 864
- },
- "geometry": {
- "file": "card-2-t14-geometry.webp",
- "bytes": 6880
- }
- }
- ],
- [
- {
- "top": 403,
- "h": 197,
- "distance_m": 686.8928833007812,
- "colour": {
- "file": "card-0-t15-colour.webp",
- "bytes": 966
- },
- "geometry": {
- "file": "card-0-t15-geometry.webp",
- "bytes": 5516
- }
- },
- {
- "top": 405,
- "h": 195,
- "distance_m": 2099.999755859375,
- "colour": {
- "file": "card-1-t15-colour.webp",
- "bytes": 1122
- },
- "geometry": {
- "file": "card-1-t15-geometry.webp",
- "bytes": 7516
- }
- },
- {
- "top": 369,
- "h": 231,
- "distance_m": 16337.44140625,
- "colour": {
- "file": "card-2-t15-colour.webp",
- "bytes": 1056
- },
- "geometry": {
- "file": "card-2-t15-geometry.webp",
- "bytes": 9850
- }
- }
- ],
- [
- {
- "top": 325,
- "h": 275,
- "distance_m": 540.0000610351562,
- "colour": {
- "file": "card-0-t16-colour.webp",
- "bytes": 946
- },
- "geometry": {
- "file": "card-0-t16-geometry.webp",
- "bytes": 5460
- }
- },
- {
- "top": 372,
- "h": 228,
- "distance_m": 7220.0,
- "colour": {
- "file": "card-1-t16-colour.webp",
- "bytes": 2730
- },
- "geometry": {
- "file": "card-1-t16-geometry.webp",
- "bytes": 17512
- }
- },
- {
- "top": 372,
- "h": 228,
- "distance_m": 15879.7060546875,
- "colour": {
- "file": "card-2-t16-colour.webp",
- "bytes": 1036
- },
- "geometry": {
- "file": "card-2-t16-geometry.webp",
- "bytes": 9366
- }
- }
- ],
- [
- {
- "top": 298,
- "h": 302,
- "distance_m": 540.0000610351562,
- "colour": {
- "file": "card-0-t17-colour.webp",
- "bytes": 594
- },
- "geometry": {
- "file": "card-0-t17-geometry.webp",
- "bytes": 6552
- }
- },
- {
- "top": 370,
- "h": 230,
- "distance_m": 9510.94140625,
- "colour": {
- "file": "card-1-t17-colour.webp",
- "bytes": 1516
- },
- "geometry": {
- "file": "card-1-t17-geometry.webp",
- "bytes": 9820
- }
- },
- {
- "top": 365,
- "h": 235,
- "distance_m": 18620.474609375,
- "colour": {
- "file": "card-2-t17-colour.webp",
- "bytes": 1144
- },
- "geometry": {
- "file": "card-2-t17-geometry.webp",
- "bytes": 11254
- }
- }
- ],
- [
- {
- "top": 283,
- "h": 317,
- "distance_m": 540.0000610351562,
- "colour": {
- "file": "card-0-t18-colour.webp",
- "bytes": 574
- },
- "geometry": {
- "file": "card-0-t18-geometry.webp",
- "bytes": 6636
- }
- },
- {
- "top": 351,
- "h": 249,
- "distance_m": 1855.5841064453125,
- "colour": {
- "file": "card-1-t18-colour.webp",
- "bytes": 1424
- },
- "geometry": {
- "file": "card-1-t18-geometry.webp",
- "bytes": 9330
- }
- },
- {
- "top": 340,
- "h": 260,
- "distance_m": 16873.72265625,
- "colour": {
- "file": "card-2-t18-colour.webp",
- "bytes": 1352
- },
- "geometry": {
- "file": "card-2-t18-geometry.webp",
- "bytes": 14144
- }
- }
- ],
- [
- {
- "top": 246,
- "h": 354,
- "distance_m": 526.8663330078125,
- "colour": {
- "file": "card-0-t19-colour.webp",
- "bytes": 756
- },
- "geometry": {
- "file": "card-0-t19-geometry.webp",
- "bytes": 7000
- }
- },
- {
- "top": 328,
- "h": 272,
- "distance_m": 3539.998779296875,
- "colour": {
- "file": "card-1-t19-colour.webp",
- "bytes": 2300
- },
- "geometry": {
- "file": "card-1-t19-geometry.webp",
- "bytes": 10532
- }
- },
- {
- "top": 323,
- "h": 277,
- "distance_m": 15921.30078125,
- "colour": {
- "file": "card-2-t19-colour.webp",
- "bytes": 1756
- },
- "geometry": {
- "file": "card-2-t19-geometry.webp",
- "bytes": 17248
- }
- }
- ],
- [
- {
- "top": 232,
- "h": 368,
- "distance_m": 500.0,
- "colour": {
- "file": "card-0-t20-colour.webp",
- "bytes": 906
- },
- "geometry": {
- "file": "card-0-t20-geometry.webp",
- "bytes": 7026
- }
- },
- {
- "top": 236,
- "h": 364,
- "distance_m": 2882.576171875,
- "colour": {
- "file": "card-1-t20-colour.webp",
- "bytes": 1652
- },
- "geometry": {
- "file": "card-1-t20-geometry.webp",
- "bytes": 16248
- }
- },
- {
- "top": 303,
- "h": 297,
- "distance_m": 18978.27734375,
- "colour": {
- "file": "card-2-t20-colour.webp",
- "bytes": 2164
- },
- "geometry": {
- "file": "card-2-t20-geometry.webp",
- "bytes": 23390
- }
- }
- ],
- [
- {
- "top": 299,
- "h": 301,
- "distance_m": 523.988037109375,
- "colour": {
- "file": "card-0-t21-colour.webp",
- "bytes": 516
- },
- "geometry": {
- "file": "card-0-t21-geometry.webp",
- "bytes": 4618
- }
- },
- {
- "top": 181,
- "h": 419,
- "distance_m": 2487.41748046875,
- "colour": {
- "file": "card-1-t21-colour.webp",
- "bytes": 1948
- },
- "geometry": {
- "file": "card-1-t21-geometry.webp",
- "bytes": 21030
- }
- },
- {
- "top": 285,
- "h": 315,
- "distance_m": 15885.142578125,
- "colour": {
- "file": "card-2-t21-colour.webp",
- "bytes": 1832
- },
- "geometry": {
- "file": "card-2-t21-geometry.webp",
- "bytes": 19512
- }
- }
- ],
- [
- {
- "top": 217,
- "h": 383,
- "distance_m": 540.0000610351562,
- "colour": {
- "file": "card-0-t22-colour.webp",
- "bytes": 930
- },
- "geometry": {
- "file": "card-0-t22-geometry.webp",
- "bytes": 9268
- }
- },
- {
- "top": 187,
- "h": 413,
- "distance_m": 2460.0,
- "colour": {
- "file": "card-1-t22-colour.webp",
- "bytes": 1940
- },
- "geometry": {
- "file": "card-1-t22-geometry.webp",
- "bytes": 21596
- }
- },
- {
- "top": 285,
- "h": 315,
- "distance_m": 18933.138671875,
- "colour": {
- "file": "card-2-t22-colour.webp",
- "bytes": 2002
- },
- "geometry": {
- "file": "card-2-t22-geometry.webp",
- "bytes": 23052
- }
- }
- ],
- [
- {
- "top": 214,
- "h": 386,
- "distance_m": 500.0,
- "colour": {
- "file": "card-0-t23-colour.webp",
- "bytes": 856
- },
- "geometry": {
- "file": "card-0-t23-geometry.webp",
- "bytes": 6918
- }
- },
- {
- "top": 196,
- "h": 404,
- "distance_m": 2266.6904296875,
- "colour": {
- "file": "card-1-t23-colour.webp",
- "bytes": 2018
- },
- "geometry": {
- "file": "card-1-t23-geometry.webp",
- "bytes": 19508
- }
- },
- {
- "top": 289,
- "h": 311,
- "distance_m": 17854.271484375,
- "colour": {
- "file": "card-2-t23-colour.webp",
- "bytes": 2088
- },
- "geometry": {
- "file": "card-2-t23-geometry.webp",
- "bytes": 24602
- }
- }
- ],
- [
- {
- "top": 257,
- "h": 343,
- "distance_m": 500.0,
- "colour": {
- "file": "card-0-t24-colour.webp",
- "bytes": 432
- },
- "geometry": {
- "file": "card-0-t24-geometry.webp",
- "bytes": 3410
- }
- },
- {
- "top": 163,
- "h": 437,
- "distance_m": 3320.263916015625,
- "colour": {
- "file": "card-1-t24-colour.webp",
- "bytes": 2316
- },
- "geometry": {
- "file": "card-1-t24-geometry.webp",
- "bytes": 24600
- }
- },
- {
- "top": 281,
- "h": 319,
- "distance_m": 18784.22265625,
- "colour": {
- "file": "card-2-t24-colour.webp",
- "bytes": 2162
- },
- "geometry": {
- "file": "card-2-t24-geometry.webp",
- "bytes": 26604
- }
- }
- ],
- [
- {
- "top": 261,
- "h": 339,
- "distance_m": 500.0,
- "colour": {
- "file": "card-0-t25-colour.webp",
- "bytes": 430
- },
- "geometry": {
- "file": "card-0-t25-geometry.webp",
- "bytes": 3604
- }
- },
- {
- "top": 118,
- "h": 482,
- "distance_m": 3844.12060546875,
- "colour": {
- "file": "card-1-t25-colour.webp",
- "bytes": 2480
- },
- "geometry": {
- "file": "card-1-t25-geometry.webp",
- "bytes": 29602
- }
- },
- {
- "top": 277,
- "h": 323,
- "distance_m": 18950.58984375,
- "colour": {
- "file": "card-2-t25-colour.webp",
- "bytes": 2524
- },
- "geometry": {
- "file": "card-2-t25-geometry.webp",
- "bytes": 29858
- }
- }
- ],
- [
- {
- "top": 262,
- "h": 338,
- "distance_m": 500.0,
- "colour": {
- "file": "card-0-t26-colour.webp",
- "bytes": 390
- },
- "geometry": {
- "file": "card-0-t26-geometry.webp",
- "bytes": 4218
- }
- },
- {
- "top": 126,
- "h": 474,
- "distance_m": 3865.76318359375,
- "colour": {
- "file": "card-1-t26-colour.webp",
- "bytes": 2324
- },
- "geometry": {
- "file": "card-1-t26-geometry.webp",
- "bytes": 23298
- }
- },
- {
- "top": 280,
- "h": 320,
- "distance_m": 17852.943359375,
- "colour": {
- "file": "card-2-t26-colour.webp",
- "bytes": 3190
- },
- "geometry": {
- "file": "card-2-t26-geometry.webp",
- "bytes": 33020
- }
- }
- ],
- [
- {
- "top": 254,
- "h": 346,
- "distance_m": 500.0,
- "colour": {
- "file": "card-0-t27-colour.webp",
- "bytes": 570
- },
- "geometry": {
- "file": "card-0-t27-geometry.webp",
- "bytes": 2916
- }
- },
- {
- "top": 152,
- "h": 448,
- "distance_m": 2996.300537109375,
- "colour": {
- "file": "card-1-t27-colour.webp",
- "bytes": 2110
- },
- "geometry": {
- "file": "card-1-t27-geometry.webp",
- "bytes": 18668
- }
- },
- {
- "top": 300,
- "h": 300,
- "distance_m": 24081.75,
- "colour": {
- "file": "card-2-t27-colour.webp",
- "bytes": 2670
- },
- "geometry": {
- "file": "card-2-t27-geometry.webp",
- "bytes": 26822
- }
- }
- ],
- [
- {
- "top": 238,
- "h": 362,
- "distance_m": 521.66259765625,
- "colour": {
- "file": "card-0-t28-colour.webp",
- "bytes": 684
- },
- "geometry": {
- "file": "card-0-t28-geometry.webp",
- "bytes": 2578
- }
- },
- {
- "top": 197,
- "h": 403,
- "distance_m": 4912.1728515625,
- "colour": {
- "file": "card-1-t28-colour.webp",
- "bytes": 2348
- },
- "geometry": {
- "file": "card-1-t28-geometry.webp",
- "bytes": 21618
- }
- },
- {
- "top": 300,
- "h": 300,
- "distance_m": 29091.6875,
- "colour": {
- "file": "card-2-t28-colour.webp",
- "bytes": 2870
- },
- "geometry": {
- "file": "card-2-t28-geometry.webp",
- "bytes": 21314
- }
- }
- ],
- [
- {
- "top": 251,
- "h": 349,
- "distance_m": 933.6327514648438,
- "colour": {
- "file": "card-0-t29-colour.webp",
- "bytes": 666
- },
- "geometry": {
- "file": "card-0-t29-geometry.webp",
- "bytes": 2446
- }
- },
- {
- "top": 196,
- "h": 404,
- "distance_m": 9113.6005859375,
- "colour": {
- "file": "card-1-t29-colour.webp",
- "bytes": 1968
- },
- "geometry": {
- "file": "card-1-t29-geometry.webp",
- "bytes": 19576
- }
- },
- {
- "top": 275,
- "h": 325,
- "distance_m": 15211.173828125,
- "colour": {
- "file": "card-2-t29-colour.webp",
- "bytes": 866
- },
- "geometry": {
- "file": "card-2-t29-geometry.webp",
- "bytes": 1954
- }
- }
- ],
- [
- {
- "top": 262,
- "h": 338,
- "distance_m": 889.6878662109375,
- "colour": {
- "file": "card-0-t30-colour.webp",
- "bytes": 740
- },
- "geometry": {
- "file": "card-0-t30-geometry.webp",
- "bytes": 4290
- }
- },
- {
- "top": 194,
- "h": 406,
- "distance_m": 11419.8154296875,
- "colour": {
- "file": "card-1-t30-colour.webp",
- "bytes": 1604
- },
- "geometry": {
- "file": "card-1-t30-geometry.webp",
- "bytes": 19036
- }
- },
- {
- "top": 279,
- "h": 321,
- "distance_m": 14933.046875,
- "colour": {
- "file": "card-2-t30-colour.webp",
- "bytes": 760
- },
- "geometry": {
- "file": "card-2-t30-geometry.webp",
- "bytes": 994
- }
- }
- ],
- [
- {
- "top": 287,
- "h": 313,
- "distance_m": 1129.969482421875,
- "colour": {
- "file": "card-0-t31-colour.webp",
- "bytes": 688
- },
- "geometry": {
- "file": "card-0-t31-geometry.webp",
- "bytes": 2380
- }
- },
- {
- "top": 228,
- "h": 372,
- "distance_m": 12246.369140625,
- "colour": {
- "file": "card-1-t31-colour.webp",
- "bytes": 1378
- },
- "geometry": {
- "file": "card-1-t31-geometry.webp",
- "bytes": 8344
- }
- },
- {
- "top": 288,
- "h": 312,
- "distance_m": 15459.7197265625,
- "colour": {
- "file": "card-2-t31-colour.webp",
- "bytes": 856
- },
- "geometry": {
- "file": "card-2-t31-geometry.webp",
- "bytes": 2992
- }
- }
- ]
- ],
- "bytes": 1226472,
- "attribution": {
- "credit_line": "Contains modified Copernicus data: DEM \u00a9 DLR e.V. 2010-2014 and \u00a9 Airbus Defence and Space GmbH 2014-2018 provided under COPERNICUS by the European Union and ESA; all rights reserved.",
- "licence": "Copernicus DEM licence: free, full and open access, with the credit line shown",
- "dem_source": "Copernicus DEM GLO-30 (30 m)",
- "url": "https://spacedata.copernicus.eu/collections/copernicus-digital-elevation-model"
- }
-}
diff --git a/public/ridge/grandcanyon-dcfa7cc15fdd/card-0-t00-colour.webp b/public/ridge/grandcanyon-dcfa7cc15fdd/card-0-t00-colour.webp
deleted file mode 100644
index e6750b35..00000000
Binary files a/public/ridge/grandcanyon-dcfa7cc15fdd/card-0-t00-colour.webp and /dev/null differ
diff --git a/public/ridge/grandcanyon-dcfa7cc15fdd/card-0-t00-geometry.webp b/public/ridge/grandcanyon-dcfa7cc15fdd/card-0-t00-geometry.webp
deleted file mode 100644
index 3952ce57..00000000
Binary files a/public/ridge/grandcanyon-dcfa7cc15fdd/card-0-t00-geometry.webp and /dev/null differ
diff --git a/public/ridge/grandcanyon-dcfa7cc15fdd/card-0-t01-colour.webp b/public/ridge/grandcanyon-dcfa7cc15fdd/card-0-t01-colour.webp
deleted file mode 100644
index dfc99bd8..00000000
Binary files a/public/ridge/grandcanyon-dcfa7cc15fdd/card-0-t01-colour.webp and /dev/null differ
diff --git a/public/ridge/grandcanyon-dcfa7cc15fdd/card-0-t01-geometry.webp b/public/ridge/grandcanyon-dcfa7cc15fdd/card-0-t01-geometry.webp
deleted file mode 100644
index 8aa7d441..00000000
Binary files a/public/ridge/grandcanyon-dcfa7cc15fdd/card-0-t01-geometry.webp and /dev/null differ
diff --git a/public/ridge/grandcanyon-dcfa7cc15fdd/card-0-t02-colour.webp b/public/ridge/grandcanyon-dcfa7cc15fdd/card-0-t02-colour.webp
deleted file mode 100644
index 55cb4b76..00000000
Binary files a/public/ridge/grandcanyon-dcfa7cc15fdd/card-0-t02-colour.webp and /dev/null differ
diff --git a/public/ridge/grandcanyon-dcfa7cc15fdd/card-0-t02-geometry.webp b/public/ridge/grandcanyon-dcfa7cc15fdd/card-0-t02-geometry.webp
deleted file mode 100644
index 8168684e..00000000
Binary files a/public/ridge/grandcanyon-dcfa7cc15fdd/card-0-t02-geometry.webp and /dev/null differ
diff --git a/public/ridge/grandcanyon-dcfa7cc15fdd/card-0-t03-colour.webp b/public/ridge/grandcanyon-dcfa7cc15fdd/card-0-t03-colour.webp
deleted file mode 100644
index adc44e89..00000000
Binary files a/public/ridge/grandcanyon-dcfa7cc15fdd/card-0-t03-colour.webp and /dev/null differ
diff --git a/public/ridge/grandcanyon-dcfa7cc15fdd/card-0-t03-geometry.webp b/public/ridge/grandcanyon-dcfa7cc15fdd/card-0-t03-geometry.webp
deleted file mode 100644
index 18d5ef0b..00000000
Binary files a/public/ridge/grandcanyon-dcfa7cc15fdd/card-0-t03-geometry.webp and /dev/null differ
diff --git a/public/ridge/grandcanyon-dcfa7cc15fdd/card-0-t04-colour.webp b/public/ridge/grandcanyon-dcfa7cc15fdd/card-0-t04-colour.webp
deleted file mode 100644
index 5addeddf..00000000
Binary files a/public/ridge/grandcanyon-dcfa7cc15fdd/card-0-t04-colour.webp and /dev/null differ
diff --git a/public/ridge/grandcanyon-dcfa7cc15fdd/card-0-t04-geometry.webp b/public/ridge/grandcanyon-dcfa7cc15fdd/card-0-t04-geometry.webp
deleted file mode 100644
index 6c8c422b..00000000
Binary files a/public/ridge/grandcanyon-dcfa7cc15fdd/card-0-t04-geometry.webp and /dev/null differ
diff --git a/public/ridge/grandcanyon-dcfa7cc15fdd/card-0-t05-colour.webp b/public/ridge/grandcanyon-dcfa7cc15fdd/card-0-t05-colour.webp
deleted file mode 100644
index d00315c8..00000000
Binary files a/public/ridge/grandcanyon-dcfa7cc15fdd/card-0-t05-colour.webp and /dev/null differ
diff --git a/public/ridge/grandcanyon-dcfa7cc15fdd/card-0-t05-geometry.webp b/public/ridge/grandcanyon-dcfa7cc15fdd/card-0-t05-geometry.webp
deleted file mode 100644
index 70c7eea1..00000000
Binary files a/public/ridge/grandcanyon-dcfa7cc15fdd/card-0-t05-geometry.webp and /dev/null differ
diff --git a/public/ridge/grandcanyon-dcfa7cc15fdd/card-0-t06-colour.webp b/public/ridge/grandcanyon-dcfa7cc15fdd/card-0-t06-colour.webp
deleted file mode 100644
index 5b9341ff..00000000
Binary files a/public/ridge/grandcanyon-dcfa7cc15fdd/card-0-t06-colour.webp and /dev/null differ
diff --git a/public/ridge/grandcanyon-dcfa7cc15fdd/card-0-t06-geometry.webp b/public/ridge/grandcanyon-dcfa7cc15fdd/card-0-t06-geometry.webp
deleted file mode 100644
index 391d0c00..00000000
Binary files a/public/ridge/grandcanyon-dcfa7cc15fdd/card-0-t06-geometry.webp and /dev/null differ
diff --git a/public/ridge/grandcanyon-dcfa7cc15fdd/card-0-t07-colour.webp b/public/ridge/grandcanyon-dcfa7cc15fdd/card-0-t07-colour.webp
deleted file mode 100644
index 7a65030d..00000000
Binary files a/public/ridge/grandcanyon-dcfa7cc15fdd/card-0-t07-colour.webp and /dev/null differ
diff --git a/public/ridge/grandcanyon-dcfa7cc15fdd/card-0-t07-geometry.webp b/public/ridge/grandcanyon-dcfa7cc15fdd/card-0-t07-geometry.webp
deleted file mode 100644
index 437f582a..00000000
Binary files a/public/ridge/grandcanyon-dcfa7cc15fdd/card-0-t07-geometry.webp and /dev/null differ
diff --git a/public/ridge/grandcanyon-dcfa7cc15fdd/card-0-t08-colour.webp b/public/ridge/grandcanyon-dcfa7cc15fdd/card-0-t08-colour.webp
deleted file mode 100644
index 9445eb99..00000000
Binary files a/public/ridge/grandcanyon-dcfa7cc15fdd/card-0-t08-colour.webp and /dev/null differ
diff --git a/public/ridge/grandcanyon-dcfa7cc15fdd/card-0-t08-geometry.webp b/public/ridge/grandcanyon-dcfa7cc15fdd/card-0-t08-geometry.webp
deleted file mode 100644
index 76a5f1b2..00000000
Binary files a/public/ridge/grandcanyon-dcfa7cc15fdd/card-0-t08-geometry.webp and /dev/null differ
diff --git a/public/ridge/grandcanyon-dcfa7cc15fdd/card-0-t09-colour.webp b/public/ridge/grandcanyon-dcfa7cc15fdd/card-0-t09-colour.webp
deleted file mode 100644
index c51bf5aa..00000000
Binary files a/public/ridge/grandcanyon-dcfa7cc15fdd/card-0-t09-colour.webp and /dev/null differ
diff --git a/public/ridge/grandcanyon-dcfa7cc15fdd/card-0-t09-geometry.webp b/public/ridge/grandcanyon-dcfa7cc15fdd/card-0-t09-geometry.webp
deleted file mode 100644
index 6d8086b4..00000000
Binary files a/public/ridge/grandcanyon-dcfa7cc15fdd/card-0-t09-geometry.webp and /dev/null differ
diff --git a/public/ridge/grandcanyon-dcfa7cc15fdd/card-0-t10-colour.webp b/public/ridge/grandcanyon-dcfa7cc15fdd/card-0-t10-colour.webp
deleted file mode 100644
index aa755b56..00000000
Binary files a/public/ridge/grandcanyon-dcfa7cc15fdd/card-0-t10-colour.webp and /dev/null differ
diff --git a/public/ridge/grandcanyon-dcfa7cc15fdd/card-0-t10-geometry.webp b/public/ridge/grandcanyon-dcfa7cc15fdd/card-0-t10-geometry.webp
deleted file mode 100644
index d8f5e11c..00000000
Binary files a/public/ridge/grandcanyon-dcfa7cc15fdd/card-0-t10-geometry.webp and /dev/null differ
diff --git a/public/ridge/grandcanyon-dcfa7cc15fdd/card-0-t11-colour.webp b/public/ridge/grandcanyon-dcfa7cc15fdd/card-0-t11-colour.webp
deleted file mode 100644
index 753ad83a..00000000
Binary files a/public/ridge/grandcanyon-dcfa7cc15fdd/card-0-t11-colour.webp and /dev/null differ
diff --git a/public/ridge/grandcanyon-dcfa7cc15fdd/card-0-t11-geometry.webp b/public/ridge/grandcanyon-dcfa7cc15fdd/card-0-t11-geometry.webp
deleted file mode 100644
index 419ef76d..00000000
Binary files a/public/ridge/grandcanyon-dcfa7cc15fdd/card-0-t11-geometry.webp and /dev/null differ
diff --git a/public/ridge/grandcanyon-dcfa7cc15fdd/card-0-t12-colour.webp b/public/ridge/grandcanyon-dcfa7cc15fdd/card-0-t12-colour.webp
deleted file mode 100644
index 4919df09..00000000
Binary files a/public/ridge/grandcanyon-dcfa7cc15fdd/card-0-t12-colour.webp and /dev/null differ
diff --git a/public/ridge/grandcanyon-dcfa7cc15fdd/card-0-t12-geometry.webp b/public/ridge/grandcanyon-dcfa7cc15fdd/card-0-t12-geometry.webp
deleted file mode 100644
index 1f85f858..00000000
Binary files a/public/ridge/grandcanyon-dcfa7cc15fdd/card-0-t12-geometry.webp and /dev/null differ
diff --git a/public/ridge/grandcanyon-dcfa7cc15fdd/card-0-t13-colour.webp b/public/ridge/grandcanyon-dcfa7cc15fdd/card-0-t13-colour.webp
deleted file mode 100644
index 2cdfb3ad..00000000
Binary files a/public/ridge/grandcanyon-dcfa7cc15fdd/card-0-t13-colour.webp and /dev/null differ
diff --git a/public/ridge/grandcanyon-dcfa7cc15fdd/card-0-t13-geometry.webp b/public/ridge/grandcanyon-dcfa7cc15fdd/card-0-t13-geometry.webp
deleted file mode 100644
index 0911c831..00000000
Binary files a/public/ridge/grandcanyon-dcfa7cc15fdd/card-0-t13-geometry.webp and /dev/null differ
diff --git a/public/ridge/grandcanyon-dcfa7cc15fdd/card-0-t14-colour.webp b/public/ridge/grandcanyon-dcfa7cc15fdd/card-0-t14-colour.webp
deleted file mode 100644
index a5152898..00000000
Binary files a/public/ridge/grandcanyon-dcfa7cc15fdd/card-0-t14-colour.webp and /dev/null differ
diff --git a/public/ridge/grandcanyon-dcfa7cc15fdd/card-0-t14-geometry.webp b/public/ridge/grandcanyon-dcfa7cc15fdd/card-0-t14-geometry.webp
deleted file mode 100644
index 3b05d507..00000000
Binary files a/public/ridge/grandcanyon-dcfa7cc15fdd/card-0-t14-geometry.webp and /dev/null differ
diff --git a/public/ridge/grandcanyon-dcfa7cc15fdd/card-0-t15-colour.webp b/public/ridge/grandcanyon-dcfa7cc15fdd/card-0-t15-colour.webp
deleted file mode 100644
index 02aa7f36..00000000
Binary files a/public/ridge/grandcanyon-dcfa7cc15fdd/card-0-t15-colour.webp and /dev/null differ
diff --git a/public/ridge/grandcanyon-dcfa7cc15fdd/card-0-t15-geometry.webp b/public/ridge/grandcanyon-dcfa7cc15fdd/card-0-t15-geometry.webp
deleted file mode 100644
index 552e9517..00000000
Binary files a/public/ridge/grandcanyon-dcfa7cc15fdd/card-0-t15-geometry.webp and /dev/null differ
diff --git a/public/ridge/grandcanyon-dcfa7cc15fdd/card-0-t16-colour.webp b/public/ridge/grandcanyon-dcfa7cc15fdd/card-0-t16-colour.webp
deleted file mode 100644
index 11ed84a6..00000000
Binary files a/public/ridge/grandcanyon-dcfa7cc15fdd/card-0-t16-colour.webp and /dev/null differ
diff --git a/public/ridge/grandcanyon-dcfa7cc15fdd/card-0-t16-geometry.webp b/public/ridge/grandcanyon-dcfa7cc15fdd/card-0-t16-geometry.webp
deleted file mode 100644
index f50806b9..00000000
Binary files a/public/ridge/grandcanyon-dcfa7cc15fdd/card-0-t16-geometry.webp and /dev/null differ
diff --git a/public/ridge/grandcanyon-dcfa7cc15fdd/card-0-t17-colour.webp b/public/ridge/grandcanyon-dcfa7cc15fdd/card-0-t17-colour.webp
deleted file mode 100644
index 08faaeab..00000000
Binary files a/public/ridge/grandcanyon-dcfa7cc15fdd/card-0-t17-colour.webp and /dev/null differ
diff --git a/public/ridge/grandcanyon-dcfa7cc15fdd/card-0-t17-geometry.webp b/public/ridge/grandcanyon-dcfa7cc15fdd/card-0-t17-geometry.webp
deleted file mode 100644
index 08c1d196..00000000
Binary files a/public/ridge/grandcanyon-dcfa7cc15fdd/card-0-t17-geometry.webp and /dev/null differ
diff --git a/public/ridge/grandcanyon-dcfa7cc15fdd/card-0-t18-colour.webp b/public/ridge/grandcanyon-dcfa7cc15fdd/card-0-t18-colour.webp
deleted file mode 100644
index 9541cd3b..00000000
Binary files a/public/ridge/grandcanyon-dcfa7cc15fdd/card-0-t18-colour.webp and /dev/null differ
diff --git a/public/ridge/grandcanyon-dcfa7cc15fdd/card-0-t18-geometry.webp b/public/ridge/grandcanyon-dcfa7cc15fdd/card-0-t18-geometry.webp
deleted file mode 100644
index 46ac2a97..00000000
Binary files a/public/ridge/grandcanyon-dcfa7cc15fdd/card-0-t18-geometry.webp and /dev/null differ
diff --git a/public/ridge/grandcanyon-dcfa7cc15fdd/card-0-t19-colour.webp b/public/ridge/grandcanyon-dcfa7cc15fdd/card-0-t19-colour.webp
deleted file mode 100644
index 886dfcf6..00000000
Binary files a/public/ridge/grandcanyon-dcfa7cc15fdd/card-0-t19-colour.webp and /dev/null differ
diff --git a/public/ridge/grandcanyon-dcfa7cc15fdd/card-0-t19-geometry.webp b/public/ridge/grandcanyon-dcfa7cc15fdd/card-0-t19-geometry.webp
deleted file mode 100644
index de650849..00000000
Binary files a/public/ridge/grandcanyon-dcfa7cc15fdd/card-0-t19-geometry.webp and /dev/null differ
diff --git a/public/ridge/grandcanyon-dcfa7cc15fdd/card-0-t20-colour.webp b/public/ridge/grandcanyon-dcfa7cc15fdd/card-0-t20-colour.webp
deleted file mode 100644
index 91ac93b6..00000000
Binary files a/public/ridge/grandcanyon-dcfa7cc15fdd/card-0-t20-colour.webp and /dev/null differ
diff --git a/public/ridge/grandcanyon-dcfa7cc15fdd/card-0-t20-geometry.webp b/public/ridge/grandcanyon-dcfa7cc15fdd/card-0-t20-geometry.webp
deleted file mode 100644
index da82875f..00000000
Binary files a/public/ridge/grandcanyon-dcfa7cc15fdd/card-0-t20-geometry.webp and /dev/null differ
diff --git a/public/ridge/grandcanyon-dcfa7cc15fdd/card-0-t21-colour.webp b/public/ridge/grandcanyon-dcfa7cc15fdd/card-0-t21-colour.webp
deleted file mode 100644
index e1e799bf..00000000
Binary files a/public/ridge/grandcanyon-dcfa7cc15fdd/card-0-t21-colour.webp and /dev/null differ
diff --git a/public/ridge/grandcanyon-dcfa7cc15fdd/card-0-t21-geometry.webp b/public/ridge/grandcanyon-dcfa7cc15fdd/card-0-t21-geometry.webp
deleted file mode 100644
index 4ce52bfa..00000000
Binary files a/public/ridge/grandcanyon-dcfa7cc15fdd/card-0-t21-geometry.webp and /dev/null differ
diff --git a/public/ridge/grandcanyon-dcfa7cc15fdd/card-0-t22-colour.webp b/public/ridge/grandcanyon-dcfa7cc15fdd/card-0-t22-colour.webp
deleted file mode 100644
index 9d116e5b..00000000
Binary files a/public/ridge/grandcanyon-dcfa7cc15fdd/card-0-t22-colour.webp and /dev/null differ
diff --git a/public/ridge/grandcanyon-dcfa7cc15fdd/card-0-t22-geometry.webp b/public/ridge/grandcanyon-dcfa7cc15fdd/card-0-t22-geometry.webp
deleted file mode 100644
index 6a49b359..00000000
Binary files a/public/ridge/grandcanyon-dcfa7cc15fdd/card-0-t22-geometry.webp and /dev/null differ
diff --git a/public/ridge/grandcanyon-dcfa7cc15fdd/card-0-t23-colour.webp b/public/ridge/grandcanyon-dcfa7cc15fdd/card-0-t23-colour.webp
deleted file mode 100644
index ca356783..00000000
Binary files a/public/ridge/grandcanyon-dcfa7cc15fdd/card-0-t23-colour.webp and /dev/null differ
diff --git a/public/ridge/grandcanyon-dcfa7cc15fdd/card-0-t23-geometry.webp b/public/ridge/grandcanyon-dcfa7cc15fdd/card-0-t23-geometry.webp
deleted file mode 100644
index 357323b6..00000000
Binary files a/public/ridge/grandcanyon-dcfa7cc15fdd/card-0-t23-geometry.webp and /dev/null differ
diff --git a/public/ridge/grandcanyon-dcfa7cc15fdd/card-0-t24-colour.webp b/public/ridge/grandcanyon-dcfa7cc15fdd/card-0-t24-colour.webp
deleted file mode 100644
index a6da9764..00000000
Binary files a/public/ridge/grandcanyon-dcfa7cc15fdd/card-0-t24-colour.webp and /dev/null differ
diff --git a/public/ridge/grandcanyon-dcfa7cc15fdd/card-0-t24-geometry.webp b/public/ridge/grandcanyon-dcfa7cc15fdd/card-0-t24-geometry.webp
deleted file mode 100644
index 536a8e36..00000000
Binary files a/public/ridge/grandcanyon-dcfa7cc15fdd/card-0-t24-geometry.webp and /dev/null differ
diff --git a/public/ridge/grandcanyon-dcfa7cc15fdd/card-0-t25-colour.webp b/public/ridge/grandcanyon-dcfa7cc15fdd/card-0-t25-colour.webp
deleted file mode 100644
index e2ff23ff..00000000
Binary files a/public/ridge/grandcanyon-dcfa7cc15fdd/card-0-t25-colour.webp and /dev/null differ
diff --git a/public/ridge/grandcanyon-dcfa7cc15fdd/card-0-t25-geometry.webp b/public/ridge/grandcanyon-dcfa7cc15fdd/card-0-t25-geometry.webp
deleted file mode 100644
index 00bd7b53..00000000
Binary files a/public/ridge/grandcanyon-dcfa7cc15fdd/card-0-t25-geometry.webp and /dev/null differ
diff --git a/public/ridge/grandcanyon-dcfa7cc15fdd/card-0-t26-colour.webp b/public/ridge/grandcanyon-dcfa7cc15fdd/card-0-t26-colour.webp
deleted file mode 100644
index 7a6ee65e..00000000
Binary files a/public/ridge/grandcanyon-dcfa7cc15fdd/card-0-t26-colour.webp and /dev/null differ
diff --git a/public/ridge/grandcanyon-dcfa7cc15fdd/card-0-t26-geometry.webp b/public/ridge/grandcanyon-dcfa7cc15fdd/card-0-t26-geometry.webp
deleted file mode 100644
index 926b6d03..00000000
Binary files a/public/ridge/grandcanyon-dcfa7cc15fdd/card-0-t26-geometry.webp and /dev/null differ
diff --git a/public/ridge/grandcanyon-dcfa7cc15fdd/card-0-t27-colour.webp b/public/ridge/grandcanyon-dcfa7cc15fdd/card-0-t27-colour.webp
deleted file mode 100644
index 85fe9c67..00000000
Binary files a/public/ridge/grandcanyon-dcfa7cc15fdd/card-0-t27-colour.webp and /dev/null differ
diff --git a/public/ridge/grandcanyon-dcfa7cc15fdd/card-0-t27-geometry.webp b/public/ridge/grandcanyon-dcfa7cc15fdd/card-0-t27-geometry.webp
deleted file mode 100644
index 3e069ad9..00000000
Binary files a/public/ridge/grandcanyon-dcfa7cc15fdd/card-0-t27-geometry.webp and /dev/null differ
diff --git a/public/ridge/grandcanyon-dcfa7cc15fdd/card-0-t28-colour.webp b/public/ridge/grandcanyon-dcfa7cc15fdd/card-0-t28-colour.webp
deleted file mode 100644
index 9a66e945..00000000
Binary files a/public/ridge/grandcanyon-dcfa7cc15fdd/card-0-t28-colour.webp and /dev/null differ
diff --git a/public/ridge/grandcanyon-dcfa7cc15fdd/card-0-t28-geometry.webp b/public/ridge/grandcanyon-dcfa7cc15fdd/card-0-t28-geometry.webp
deleted file mode 100644
index f992fa67..00000000
Binary files a/public/ridge/grandcanyon-dcfa7cc15fdd/card-0-t28-geometry.webp and /dev/null differ
diff --git a/public/ridge/grandcanyon-dcfa7cc15fdd/card-0-t29-colour.webp b/public/ridge/grandcanyon-dcfa7cc15fdd/card-0-t29-colour.webp
deleted file mode 100644
index df876b58..00000000
Binary files a/public/ridge/grandcanyon-dcfa7cc15fdd/card-0-t29-colour.webp and /dev/null differ
diff --git a/public/ridge/grandcanyon-dcfa7cc15fdd/card-0-t29-geometry.webp b/public/ridge/grandcanyon-dcfa7cc15fdd/card-0-t29-geometry.webp
deleted file mode 100644
index 9bc80668..00000000
Binary files a/public/ridge/grandcanyon-dcfa7cc15fdd/card-0-t29-geometry.webp and /dev/null differ
diff --git a/public/ridge/grandcanyon-dcfa7cc15fdd/card-0-t30-colour.webp b/public/ridge/grandcanyon-dcfa7cc15fdd/card-0-t30-colour.webp
deleted file mode 100644
index 16ffb281..00000000
Binary files a/public/ridge/grandcanyon-dcfa7cc15fdd/card-0-t30-colour.webp and /dev/null differ
diff --git a/public/ridge/grandcanyon-dcfa7cc15fdd/card-0-t30-geometry.webp b/public/ridge/grandcanyon-dcfa7cc15fdd/card-0-t30-geometry.webp
deleted file mode 100644
index 2ff74765..00000000
Binary files a/public/ridge/grandcanyon-dcfa7cc15fdd/card-0-t30-geometry.webp and /dev/null differ
diff --git a/public/ridge/grandcanyon-dcfa7cc15fdd/card-0-t31-colour.webp b/public/ridge/grandcanyon-dcfa7cc15fdd/card-0-t31-colour.webp
deleted file mode 100644
index 162a857d..00000000
Binary files a/public/ridge/grandcanyon-dcfa7cc15fdd/card-0-t31-colour.webp and /dev/null differ
diff --git a/public/ridge/grandcanyon-dcfa7cc15fdd/card-0-t31-geometry.webp b/public/ridge/grandcanyon-dcfa7cc15fdd/card-0-t31-geometry.webp
deleted file mode 100644
index 5e124463..00000000
Binary files a/public/ridge/grandcanyon-dcfa7cc15fdd/card-0-t31-geometry.webp and /dev/null differ
diff --git a/public/ridge/grandcanyon-dcfa7cc15fdd/card-1-t00-colour.webp b/public/ridge/grandcanyon-dcfa7cc15fdd/card-1-t00-colour.webp
deleted file mode 100644
index 9d4a98f5..00000000
Binary files a/public/ridge/grandcanyon-dcfa7cc15fdd/card-1-t00-colour.webp and /dev/null differ
diff --git a/public/ridge/grandcanyon-dcfa7cc15fdd/card-1-t00-geometry.webp b/public/ridge/grandcanyon-dcfa7cc15fdd/card-1-t00-geometry.webp
deleted file mode 100644
index 697c5955..00000000
Binary files a/public/ridge/grandcanyon-dcfa7cc15fdd/card-1-t00-geometry.webp and /dev/null differ
diff --git a/public/ridge/grandcanyon-dcfa7cc15fdd/card-1-t01-colour.webp b/public/ridge/grandcanyon-dcfa7cc15fdd/card-1-t01-colour.webp
deleted file mode 100644
index 647be0e6..00000000
Binary files a/public/ridge/grandcanyon-dcfa7cc15fdd/card-1-t01-colour.webp and /dev/null differ
diff --git a/public/ridge/grandcanyon-dcfa7cc15fdd/card-1-t01-geometry.webp b/public/ridge/grandcanyon-dcfa7cc15fdd/card-1-t01-geometry.webp
deleted file mode 100644
index 8049b634..00000000
Binary files a/public/ridge/grandcanyon-dcfa7cc15fdd/card-1-t01-geometry.webp and /dev/null differ
diff --git a/public/ridge/grandcanyon-dcfa7cc15fdd/card-1-t02-colour.webp b/public/ridge/grandcanyon-dcfa7cc15fdd/card-1-t02-colour.webp
deleted file mode 100644
index c4e96dc4..00000000
Binary files a/public/ridge/grandcanyon-dcfa7cc15fdd/card-1-t02-colour.webp and /dev/null differ
diff --git a/public/ridge/grandcanyon-dcfa7cc15fdd/card-1-t02-geometry.webp b/public/ridge/grandcanyon-dcfa7cc15fdd/card-1-t02-geometry.webp
deleted file mode 100644
index 68e2575b..00000000
Binary files a/public/ridge/grandcanyon-dcfa7cc15fdd/card-1-t02-geometry.webp and /dev/null differ
diff --git a/public/ridge/grandcanyon-dcfa7cc15fdd/card-1-t03-colour.webp b/public/ridge/grandcanyon-dcfa7cc15fdd/card-1-t03-colour.webp
deleted file mode 100644
index 60a0bc16..00000000
Binary files a/public/ridge/grandcanyon-dcfa7cc15fdd/card-1-t03-colour.webp and /dev/null differ
diff --git a/public/ridge/grandcanyon-dcfa7cc15fdd/card-1-t03-geometry.webp b/public/ridge/grandcanyon-dcfa7cc15fdd/card-1-t03-geometry.webp
deleted file mode 100644
index cacb760c..00000000
Binary files a/public/ridge/grandcanyon-dcfa7cc15fdd/card-1-t03-geometry.webp and /dev/null differ
diff --git a/public/ridge/grandcanyon-dcfa7cc15fdd/card-1-t04-colour.webp b/public/ridge/grandcanyon-dcfa7cc15fdd/card-1-t04-colour.webp
deleted file mode 100644
index 2294dca4..00000000
Binary files a/public/ridge/grandcanyon-dcfa7cc15fdd/card-1-t04-colour.webp and /dev/null differ
diff --git a/public/ridge/grandcanyon-dcfa7cc15fdd/card-1-t04-geometry.webp b/public/ridge/grandcanyon-dcfa7cc15fdd/card-1-t04-geometry.webp
deleted file mode 100644
index 7a025acd..00000000
Binary files a/public/ridge/grandcanyon-dcfa7cc15fdd/card-1-t04-geometry.webp and /dev/null differ
diff --git a/public/ridge/grandcanyon-dcfa7cc15fdd/card-1-t05-colour.webp b/public/ridge/grandcanyon-dcfa7cc15fdd/card-1-t05-colour.webp
deleted file mode 100644
index 81a9c1e3..00000000
Binary files a/public/ridge/grandcanyon-dcfa7cc15fdd/card-1-t05-colour.webp and /dev/null differ
diff --git a/public/ridge/grandcanyon-dcfa7cc15fdd/card-1-t05-geometry.webp b/public/ridge/grandcanyon-dcfa7cc15fdd/card-1-t05-geometry.webp
deleted file mode 100644
index ad7acf0a..00000000
Binary files a/public/ridge/grandcanyon-dcfa7cc15fdd/card-1-t05-geometry.webp and /dev/null differ
diff --git a/public/ridge/grandcanyon-dcfa7cc15fdd/card-1-t06-colour.webp b/public/ridge/grandcanyon-dcfa7cc15fdd/card-1-t06-colour.webp
deleted file mode 100644
index 819346db..00000000
Binary files a/public/ridge/grandcanyon-dcfa7cc15fdd/card-1-t06-colour.webp and /dev/null differ
diff --git a/public/ridge/grandcanyon-dcfa7cc15fdd/card-1-t06-geometry.webp b/public/ridge/grandcanyon-dcfa7cc15fdd/card-1-t06-geometry.webp
deleted file mode 100644
index 29d957cf..00000000
Binary files a/public/ridge/grandcanyon-dcfa7cc15fdd/card-1-t06-geometry.webp and /dev/null differ
diff --git a/public/ridge/grandcanyon-dcfa7cc15fdd/card-1-t07-colour.webp b/public/ridge/grandcanyon-dcfa7cc15fdd/card-1-t07-colour.webp
deleted file mode 100644
index 283ba321..00000000
Binary files a/public/ridge/grandcanyon-dcfa7cc15fdd/card-1-t07-colour.webp and /dev/null differ
diff --git a/public/ridge/grandcanyon-dcfa7cc15fdd/card-1-t07-geometry.webp b/public/ridge/grandcanyon-dcfa7cc15fdd/card-1-t07-geometry.webp
deleted file mode 100644
index 49612dfc..00000000
Binary files a/public/ridge/grandcanyon-dcfa7cc15fdd/card-1-t07-geometry.webp and /dev/null differ
diff --git a/public/ridge/grandcanyon-dcfa7cc15fdd/card-1-t08-colour.webp b/public/ridge/grandcanyon-dcfa7cc15fdd/card-1-t08-colour.webp
deleted file mode 100644
index 807fc2fc..00000000
Binary files a/public/ridge/grandcanyon-dcfa7cc15fdd/card-1-t08-colour.webp and /dev/null differ
diff --git a/public/ridge/grandcanyon-dcfa7cc15fdd/card-1-t08-geometry.webp b/public/ridge/grandcanyon-dcfa7cc15fdd/card-1-t08-geometry.webp
deleted file mode 100644
index 7ef8d89d..00000000
Binary files a/public/ridge/grandcanyon-dcfa7cc15fdd/card-1-t08-geometry.webp and /dev/null differ
diff --git a/public/ridge/grandcanyon-dcfa7cc15fdd/card-1-t09-colour.webp b/public/ridge/grandcanyon-dcfa7cc15fdd/card-1-t09-colour.webp
deleted file mode 100644
index b2880f5f..00000000
Binary files a/public/ridge/grandcanyon-dcfa7cc15fdd/card-1-t09-colour.webp and /dev/null differ
diff --git a/public/ridge/grandcanyon-dcfa7cc15fdd/card-1-t09-geometry.webp b/public/ridge/grandcanyon-dcfa7cc15fdd/card-1-t09-geometry.webp
deleted file mode 100644
index 3ce6d740..00000000
Binary files a/public/ridge/grandcanyon-dcfa7cc15fdd/card-1-t09-geometry.webp and /dev/null differ
diff --git a/public/ridge/grandcanyon-dcfa7cc15fdd/card-1-t10-colour.webp b/public/ridge/grandcanyon-dcfa7cc15fdd/card-1-t10-colour.webp
deleted file mode 100644
index cd1a6854..00000000
Binary files a/public/ridge/grandcanyon-dcfa7cc15fdd/card-1-t10-colour.webp and /dev/null differ
diff --git a/public/ridge/grandcanyon-dcfa7cc15fdd/card-1-t10-geometry.webp b/public/ridge/grandcanyon-dcfa7cc15fdd/card-1-t10-geometry.webp
deleted file mode 100644
index e7c86450..00000000
Binary files a/public/ridge/grandcanyon-dcfa7cc15fdd/card-1-t10-geometry.webp and /dev/null differ
diff --git a/public/ridge/grandcanyon-dcfa7cc15fdd/card-1-t11-colour.webp b/public/ridge/grandcanyon-dcfa7cc15fdd/card-1-t11-colour.webp
deleted file mode 100644
index 8d792fc0..00000000
Binary files a/public/ridge/grandcanyon-dcfa7cc15fdd/card-1-t11-colour.webp and /dev/null differ
diff --git a/public/ridge/grandcanyon-dcfa7cc15fdd/card-1-t11-geometry.webp b/public/ridge/grandcanyon-dcfa7cc15fdd/card-1-t11-geometry.webp
deleted file mode 100644
index bc9c0e4e..00000000
Binary files a/public/ridge/grandcanyon-dcfa7cc15fdd/card-1-t11-geometry.webp and /dev/null differ
diff --git a/public/ridge/grandcanyon-dcfa7cc15fdd/card-1-t12-colour.webp b/public/ridge/grandcanyon-dcfa7cc15fdd/card-1-t12-colour.webp
deleted file mode 100644
index ab123852..00000000
Binary files a/public/ridge/grandcanyon-dcfa7cc15fdd/card-1-t12-colour.webp and /dev/null differ
diff --git a/public/ridge/grandcanyon-dcfa7cc15fdd/card-1-t12-geometry.webp b/public/ridge/grandcanyon-dcfa7cc15fdd/card-1-t12-geometry.webp
deleted file mode 100644
index 177d2b6c..00000000
Binary files a/public/ridge/grandcanyon-dcfa7cc15fdd/card-1-t12-geometry.webp and /dev/null differ
diff --git a/public/ridge/grandcanyon-dcfa7cc15fdd/card-1-t13-colour.webp b/public/ridge/grandcanyon-dcfa7cc15fdd/card-1-t13-colour.webp
deleted file mode 100644
index 88a9dc5d..00000000
Binary files a/public/ridge/grandcanyon-dcfa7cc15fdd/card-1-t13-colour.webp and /dev/null differ
diff --git a/public/ridge/grandcanyon-dcfa7cc15fdd/card-1-t13-geometry.webp b/public/ridge/grandcanyon-dcfa7cc15fdd/card-1-t13-geometry.webp
deleted file mode 100644
index 1f930146..00000000
Binary files a/public/ridge/grandcanyon-dcfa7cc15fdd/card-1-t13-geometry.webp and /dev/null differ
diff --git a/public/ridge/grandcanyon-dcfa7cc15fdd/card-1-t14-colour.webp b/public/ridge/grandcanyon-dcfa7cc15fdd/card-1-t14-colour.webp
deleted file mode 100644
index cc8f51de..00000000
Binary files a/public/ridge/grandcanyon-dcfa7cc15fdd/card-1-t14-colour.webp and /dev/null differ
diff --git a/public/ridge/grandcanyon-dcfa7cc15fdd/card-1-t14-geometry.webp b/public/ridge/grandcanyon-dcfa7cc15fdd/card-1-t14-geometry.webp
deleted file mode 100644
index 8eb04a7f..00000000
Binary files a/public/ridge/grandcanyon-dcfa7cc15fdd/card-1-t14-geometry.webp and /dev/null differ
diff --git a/public/ridge/grandcanyon-dcfa7cc15fdd/card-1-t15-colour.webp b/public/ridge/grandcanyon-dcfa7cc15fdd/card-1-t15-colour.webp
deleted file mode 100644
index 4f8a10d3..00000000
Binary files a/public/ridge/grandcanyon-dcfa7cc15fdd/card-1-t15-colour.webp and /dev/null differ
diff --git a/public/ridge/grandcanyon-dcfa7cc15fdd/card-1-t15-geometry.webp b/public/ridge/grandcanyon-dcfa7cc15fdd/card-1-t15-geometry.webp
deleted file mode 100644
index 5b805c53..00000000
Binary files a/public/ridge/grandcanyon-dcfa7cc15fdd/card-1-t15-geometry.webp and /dev/null differ
diff --git a/public/ridge/grandcanyon-dcfa7cc15fdd/card-1-t16-colour.webp b/public/ridge/grandcanyon-dcfa7cc15fdd/card-1-t16-colour.webp
deleted file mode 100644
index ac49ee5e..00000000
Binary files a/public/ridge/grandcanyon-dcfa7cc15fdd/card-1-t16-colour.webp and /dev/null differ
diff --git a/public/ridge/grandcanyon-dcfa7cc15fdd/card-1-t16-geometry.webp b/public/ridge/grandcanyon-dcfa7cc15fdd/card-1-t16-geometry.webp
deleted file mode 100644
index c4309d1f..00000000
Binary files a/public/ridge/grandcanyon-dcfa7cc15fdd/card-1-t16-geometry.webp and /dev/null differ
diff --git a/public/ridge/grandcanyon-dcfa7cc15fdd/card-1-t17-colour.webp b/public/ridge/grandcanyon-dcfa7cc15fdd/card-1-t17-colour.webp
deleted file mode 100644
index 746caf11..00000000
Binary files a/public/ridge/grandcanyon-dcfa7cc15fdd/card-1-t17-colour.webp and /dev/null differ
diff --git a/public/ridge/grandcanyon-dcfa7cc15fdd/card-1-t17-geometry.webp b/public/ridge/grandcanyon-dcfa7cc15fdd/card-1-t17-geometry.webp
deleted file mode 100644
index 4ddc5b19..00000000
Binary files a/public/ridge/grandcanyon-dcfa7cc15fdd/card-1-t17-geometry.webp and /dev/null differ
diff --git a/public/ridge/grandcanyon-dcfa7cc15fdd/card-1-t18-colour.webp b/public/ridge/grandcanyon-dcfa7cc15fdd/card-1-t18-colour.webp
deleted file mode 100644
index 9aa6837f..00000000
Binary files a/public/ridge/grandcanyon-dcfa7cc15fdd/card-1-t18-colour.webp and /dev/null differ
diff --git a/public/ridge/grandcanyon-dcfa7cc15fdd/card-1-t18-geometry.webp b/public/ridge/grandcanyon-dcfa7cc15fdd/card-1-t18-geometry.webp
deleted file mode 100644
index 5428f77e..00000000
Binary files a/public/ridge/grandcanyon-dcfa7cc15fdd/card-1-t18-geometry.webp and /dev/null differ
diff --git a/public/ridge/grandcanyon-dcfa7cc15fdd/card-1-t19-colour.webp b/public/ridge/grandcanyon-dcfa7cc15fdd/card-1-t19-colour.webp
deleted file mode 100644
index d11fc994..00000000
Binary files a/public/ridge/grandcanyon-dcfa7cc15fdd/card-1-t19-colour.webp and /dev/null differ
diff --git a/public/ridge/grandcanyon-dcfa7cc15fdd/card-1-t19-geometry.webp b/public/ridge/grandcanyon-dcfa7cc15fdd/card-1-t19-geometry.webp
deleted file mode 100644
index 919003fa..00000000
Binary files a/public/ridge/grandcanyon-dcfa7cc15fdd/card-1-t19-geometry.webp and /dev/null differ
diff --git a/public/ridge/grandcanyon-dcfa7cc15fdd/card-1-t20-colour.webp b/public/ridge/grandcanyon-dcfa7cc15fdd/card-1-t20-colour.webp
deleted file mode 100644
index 1dbb939f..00000000
Binary files a/public/ridge/grandcanyon-dcfa7cc15fdd/card-1-t20-colour.webp and /dev/null differ
diff --git a/public/ridge/grandcanyon-dcfa7cc15fdd/card-1-t20-geometry.webp b/public/ridge/grandcanyon-dcfa7cc15fdd/card-1-t20-geometry.webp
deleted file mode 100644
index d3f25a11..00000000
Binary files a/public/ridge/grandcanyon-dcfa7cc15fdd/card-1-t20-geometry.webp and /dev/null differ
diff --git a/public/ridge/grandcanyon-dcfa7cc15fdd/card-1-t21-colour.webp b/public/ridge/grandcanyon-dcfa7cc15fdd/card-1-t21-colour.webp
deleted file mode 100644
index bf774fb0..00000000
Binary files a/public/ridge/grandcanyon-dcfa7cc15fdd/card-1-t21-colour.webp and /dev/null differ
diff --git a/public/ridge/grandcanyon-dcfa7cc15fdd/card-1-t21-geometry.webp b/public/ridge/grandcanyon-dcfa7cc15fdd/card-1-t21-geometry.webp
deleted file mode 100644
index dc8e3b7b..00000000
Binary files a/public/ridge/grandcanyon-dcfa7cc15fdd/card-1-t21-geometry.webp and /dev/null differ
diff --git a/public/ridge/grandcanyon-dcfa7cc15fdd/card-1-t22-colour.webp b/public/ridge/grandcanyon-dcfa7cc15fdd/card-1-t22-colour.webp
deleted file mode 100644
index 98befef4..00000000
Binary files a/public/ridge/grandcanyon-dcfa7cc15fdd/card-1-t22-colour.webp and /dev/null differ
diff --git a/public/ridge/grandcanyon-dcfa7cc15fdd/card-1-t22-geometry.webp b/public/ridge/grandcanyon-dcfa7cc15fdd/card-1-t22-geometry.webp
deleted file mode 100644
index 0de93dea..00000000
Binary files a/public/ridge/grandcanyon-dcfa7cc15fdd/card-1-t22-geometry.webp and /dev/null differ
diff --git a/public/ridge/grandcanyon-dcfa7cc15fdd/card-1-t23-colour.webp b/public/ridge/grandcanyon-dcfa7cc15fdd/card-1-t23-colour.webp
deleted file mode 100644
index 8ab8edb0..00000000
Binary files a/public/ridge/grandcanyon-dcfa7cc15fdd/card-1-t23-colour.webp and /dev/null differ
diff --git a/public/ridge/grandcanyon-dcfa7cc15fdd/card-1-t23-geometry.webp b/public/ridge/grandcanyon-dcfa7cc15fdd/card-1-t23-geometry.webp
deleted file mode 100644
index 9e122c49..00000000
Binary files a/public/ridge/grandcanyon-dcfa7cc15fdd/card-1-t23-geometry.webp and /dev/null differ
diff --git a/public/ridge/grandcanyon-dcfa7cc15fdd/card-1-t24-colour.webp b/public/ridge/grandcanyon-dcfa7cc15fdd/card-1-t24-colour.webp
deleted file mode 100644
index 94f56e6b..00000000
Binary files a/public/ridge/grandcanyon-dcfa7cc15fdd/card-1-t24-colour.webp and /dev/null differ
diff --git a/public/ridge/grandcanyon-dcfa7cc15fdd/card-1-t24-geometry.webp b/public/ridge/grandcanyon-dcfa7cc15fdd/card-1-t24-geometry.webp
deleted file mode 100644
index 560089f2..00000000
Binary files a/public/ridge/grandcanyon-dcfa7cc15fdd/card-1-t24-geometry.webp and /dev/null differ
diff --git a/public/ridge/grandcanyon-dcfa7cc15fdd/card-1-t25-colour.webp b/public/ridge/grandcanyon-dcfa7cc15fdd/card-1-t25-colour.webp
deleted file mode 100644
index 6e68c5f4..00000000
Binary files a/public/ridge/grandcanyon-dcfa7cc15fdd/card-1-t25-colour.webp and /dev/null differ
diff --git a/public/ridge/grandcanyon-dcfa7cc15fdd/card-1-t25-geometry.webp b/public/ridge/grandcanyon-dcfa7cc15fdd/card-1-t25-geometry.webp
deleted file mode 100644
index 15ffc046..00000000
Binary files a/public/ridge/grandcanyon-dcfa7cc15fdd/card-1-t25-geometry.webp and /dev/null differ
diff --git a/public/ridge/grandcanyon-dcfa7cc15fdd/card-1-t26-colour.webp b/public/ridge/grandcanyon-dcfa7cc15fdd/card-1-t26-colour.webp
deleted file mode 100644
index 7ea67a2a..00000000
Binary files a/public/ridge/grandcanyon-dcfa7cc15fdd/card-1-t26-colour.webp and /dev/null differ
diff --git a/public/ridge/grandcanyon-dcfa7cc15fdd/card-1-t26-geometry.webp b/public/ridge/grandcanyon-dcfa7cc15fdd/card-1-t26-geometry.webp
deleted file mode 100644
index 6ff2fedc..00000000
Binary files a/public/ridge/grandcanyon-dcfa7cc15fdd/card-1-t26-geometry.webp and /dev/null differ
diff --git a/public/ridge/grandcanyon-dcfa7cc15fdd/card-1-t27-colour.webp b/public/ridge/grandcanyon-dcfa7cc15fdd/card-1-t27-colour.webp
deleted file mode 100644
index 216d6729..00000000
Binary files a/public/ridge/grandcanyon-dcfa7cc15fdd/card-1-t27-colour.webp and /dev/null differ
diff --git a/public/ridge/grandcanyon-dcfa7cc15fdd/card-1-t27-geometry.webp b/public/ridge/grandcanyon-dcfa7cc15fdd/card-1-t27-geometry.webp
deleted file mode 100644
index 753894aa..00000000
Binary files a/public/ridge/grandcanyon-dcfa7cc15fdd/card-1-t27-geometry.webp and /dev/null differ
diff --git a/public/ridge/grandcanyon-dcfa7cc15fdd/card-1-t28-colour.webp b/public/ridge/grandcanyon-dcfa7cc15fdd/card-1-t28-colour.webp
deleted file mode 100644
index f1af01e0..00000000
Binary files a/public/ridge/grandcanyon-dcfa7cc15fdd/card-1-t28-colour.webp and /dev/null differ
diff --git a/public/ridge/grandcanyon-dcfa7cc15fdd/card-1-t28-geometry.webp b/public/ridge/grandcanyon-dcfa7cc15fdd/card-1-t28-geometry.webp
deleted file mode 100644
index b844dd04..00000000
Binary files a/public/ridge/grandcanyon-dcfa7cc15fdd/card-1-t28-geometry.webp and /dev/null differ
diff --git a/public/ridge/grandcanyon-dcfa7cc15fdd/card-1-t29-colour.webp b/public/ridge/grandcanyon-dcfa7cc15fdd/card-1-t29-colour.webp
deleted file mode 100644
index f65b9632..00000000
Binary files a/public/ridge/grandcanyon-dcfa7cc15fdd/card-1-t29-colour.webp and /dev/null differ
diff --git a/public/ridge/grandcanyon-dcfa7cc15fdd/card-1-t29-geometry.webp b/public/ridge/grandcanyon-dcfa7cc15fdd/card-1-t29-geometry.webp
deleted file mode 100644
index da95eb9c..00000000
Binary files a/public/ridge/grandcanyon-dcfa7cc15fdd/card-1-t29-geometry.webp and /dev/null differ
diff --git a/public/ridge/grandcanyon-dcfa7cc15fdd/card-1-t30-colour.webp b/public/ridge/grandcanyon-dcfa7cc15fdd/card-1-t30-colour.webp
deleted file mode 100644
index f69cb8c8..00000000
Binary files a/public/ridge/grandcanyon-dcfa7cc15fdd/card-1-t30-colour.webp and /dev/null differ
diff --git a/public/ridge/grandcanyon-dcfa7cc15fdd/card-1-t30-geometry.webp b/public/ridge/grandcanyon-dcfa7cc15fdd/card-1-t30-geometry.webp
deleted file mode 100644
index ea24cc5b..00000000
Binary files a/public/ridge/grandcanyon-dcfa7cc15fdd/card-1-t30-geometry.webp and /dev/null differ
diff --git a/public/ridge/grandcanyon-dcfa7cc15fdd/card-1-t31-colour.webp b/public/ridge/grandcanyon-dcfa7cc15fdd/card-1-t31-colour.webp
deleted file mode 100644
index 2720e5c1..00000000
Binary files a/public/ridge/grandcanyon-dcfa7cc15fdd/card-1-t31-colour.webp and /dev/null differ
diff --git a/public/ridge/grandcanyon-dcfa7cc15fdd/card-1-t31-geometry.webp b/public/ridge/grandcanyon-dcfa7cc15fdd/card-1-t31-geometry.webp
deleted file mode 100644
index a219a425..00000000
Binary files a/public/ridge/grandcanyon-dcfa7cc15fdd/card-1-t31-geometry.webp and /dev/null differ
diff --git a/public/ridge/grandcanyon-dcfa7cc15fdd/card-2-t00-colour.webp b/public/ridge/grandcanyon-dcfa7cc15fdd/card-2-t00-colour.webp
deleted file mode 100644
index 99b21d9f..00000000
Binary files a/public/ridge/grandcanyon-dcfa7cc15fdd/card-2-t00-colour.webp and /dev/null differ
diff --git a/public/ridge/grandcanyon-dcfa7cc15fdd/card-2-t00-geometry.webp b/public/ridge/grandcanyon-dcfa7cc15fdd/card-2-t00-geometry.webp
deleted file mode 100644
index 11103c8e..00000000
Binary files a/public/ridge/grandcanyon-dcfa7cc15fdd/card-2-t00-geometry.webp and /dev/null differ
diff --git a/public/ridge/grandcanyon-dcfa7cc15fdd/card-2-t01-colour.webp b/public/ridge/grandcanyon-dcfa7cc15fdd/card-2-t01-colour.webp
deleted file mode 100644
index 2163ca50..00000000
Binary files a/public/ridge/grandcanyon-dcfa7cc15fdd/card-2-t01-colour.webp and /dev/null differ
diff --git a/public/ridge/grandcanyon-dcfa7cc15fdd/card-2-t01-geometry.webp b/public/ridge/grandcanyon-dcfa7cc15fdd/card-2-t01-geometry.webp
deleted file mode 100644
index 68777d69..00000000
Binary files a/public/ridge/grandcanyon-dcfa7cc15fdd/card-2-t01-geometry.webp and /dev/null differ
diff --git a/public/ridge/grandcanyon-dcfa7cc15fdd/card-2-t02-colour.webp b/public/ridge/grandcanyon-dcfa7cc15fdd/card-2-t02-colour.webp
deleted file mode 100644
index 4a5d8db1..00000000
Binary files a/public/ridge/grandcanyon-dcfa7cc15fdd/card-2-t02-colour.webp and /dev/null differ
diff --git a/public/ridge/grandcanyon-dcfa7cc15fdd/card-2-t02-geometry.webp b/public/ridge/grandcanyon-dcfa7cc15fdd/card-2-t02-geometry.webp
deleted file mode 100644
index 5a66912b..00000000
Binary files a/public/ridge/grandcanyon-dcfa7cc15fdd/card-2-t02-geometry.webp and /dev/null differ
diff --git a/public/ridge/grandcanyon-dcfa7cc15fdd/card-2-t03-colour.webp b/public/ridge/grandcanyon-dcfa7cc15fdd/card-2-t03-colour.webp
deleted file mode 100644
index 2f15fc28..00000000
Binary files a/public/ridge/grandcanyon-dcfa7cc15fdd/card-2-t03-colour.webp and /dev/null differ
diff --git a/public/ridge/grandcanyon-dcfa7cc15fdd/card-2-t03-geometry.webp b/public/ridge/grandcanyon-dcfa7cc15fdd/card-2-t03-geometry.webp
deleted file mode 100644
index 6089b895..00000000
Binary files a/public/ridge/grandcanyon-dcfa7cc15fdd/card-2-t03-geometry.webp and /dev/null differ
diff --git a/public/ridge/grandcanyon-dcfa7cc15fdd/card-2-t04-colour.webp b/public/ridge/grandcanyon-dcfa7cc15fdd/card-2-t04-colour.webp
deleted file mode 100644
index 5ede46ad..00000000
Binary files a/public/ridge/grandcanyon-dcfa7cc15fdd/card-2-t04-colour.webp and /dev/null differ
diff --git a/public/ridge/grandcanyon-dcfa7cc15fdd/card-2-t04-geometry.webp b/public/ridge/grandcanyon-dcfa7cc15fdd/card-2-t04-geometry.webp
deleted file mode 100644
index deccd7d5..00000000
Binary files a/public/ridge/grandcanyon-dcfa7cc15fdd/card-2-t04-geometry.webp and /dev/null differ
diff --git a/public/ridge/grandcanyon-dcfa7cc15fdd/card-2-t05-colour.webp b/public/ridge/grandcanyon-dcfa7cc15fdd/card-2-t05-colour.webp
deleted file mode 100644
index 790f83b8..00000000
Binary files a/public/ridge/grandcanyon-dcfa7cc15fdd/card-2-t05-colour.webp and /dev/null differ
diff --git a/public/ridge/grandcanyon-dcfa7cc15fdd/card-2-t05-geometry.webp b/public/ridge/grandcanyon-dcfa7cc15fdd/card-2-t05-geometry.webp
deleted file mode 100644
index 196d075d..00000000
Binary files a/public/ridge/grandcanyon-dcfa7cc15fdd/card-2-t05-geometry.webp and /dev/null differ
diff --git a/public/ridge/grandcanyon-dcfa7cc15fdd/card-2-t06-colour.webp b/public/ridge/grandcanyon-dcfa7cc15fdd/card-2-t06-colour.webp
deleted file mode 100644
index 9e026522..00000000
Binary files a/public/ridge/grandcanyon-dcfa7cc15fdd/card-2-t06-colour.webp and /dev/null differ
diff --git a/public/ridge/grandcanyon-dcfa7cc15fdd/card-2-t06-geometry.webp b/public/ridge/grandcanyon-dcfa7cc15fdd/card-2-t06-geometry.webp
deleted file mode 100644
index 85e38180..00000000
Binary files a/public/ridge/grandcanyon-dcfa7cc15fdd/card-2-t06-geometry.webp and /dev/null differ
diff --git a/public/ridge/grandcanyon-dcfa7cc15fdd/card-2-t07-colour.webp b/public/ridge/grandcanyon-dcfa7cc15fdd/card-2-t07-colour.webp
deleted file mode 100644
index c12322f8..00000000
Binary files a/public/ridge/grandcanyon-dcfa7cc15fdd/card-2-t07-colour.webp and /dev/null differ
diff --git a/public/ridge/grandcanyon-dcfa7cc15fdd/card-2-t07-geometry.webp b/public/ridge/grandcanyon-dcfa7cc15fdd/card-2-t07-geometry.webp
deleted file mode 100644
index 411a61d2..00000000
Binary files a/public/ridge/grandcanyon-dcfa7cc15fdd/card-2-t07-geometry.webp and /dev/null differ
diff --git a/public/ridge/grandcanyon-dcfa7cc15fdd/card-2-t08-colour.webp b/public/ridge/grandcanyon-dcfa7cc15fdd/card-2-t08-colour.webp
deleted file mode 100644
index 499ef01f..00000000
Binary files a/public/ridge/grandcanyon-dcfa7cc15fdd/card-2-t08-colour.webp and /dev/null differ
diff --git a/public/ridge/grandcanyon-dcfa7cc15fdd/card-2-t08-geometry.webp b/public/ridge/grandcanyon-dcfa7cc15fdd/card-2-t08-geometry.webp
deleted file mode 100644
index 895dbe12..00000000
Binary files a/public/ridge/grandcanyon-dcfa7cc15fdd/card-2-t08-geometry.webp and /dev/null differ
diff --git a/public/ridge/grandcanyon-dcfa7cc15fdd/card-2-t09-colour.webp b/public/ridge/grandcanyon-dcfa7cc15fdd/card-2-t09-colour.webp
deleted file mode 100644
index c4e075e5..00000000
Binary files a/public/ridge/grandcanyon-dcfa7cc15fdd/card-2-t09-colour.webp and /dev/null differ
diff --git a/public/ridge/grandcanyon-dcfa7cc15fdd/card-2-t09-geometry.webp b/public/ridge/grandcanyon-dcfa7cc15fdd/card-2-t09-geometry.webp
deleted file mode 100644
index b0a8fcc0..00000000
Binary files a/public/ridge/grandcanyon-dcfa7cc15fdd/card-2-t09-geometry.webp and /dev/null differ
diff --git a/public/ridge/grandcanyon-dcfa7cc15fdd/card-2-t10-colour.webp b/public/ridge/grandcanyon-dcfa7cc15fdd/card-2-t10-colour.webp
deleted file mode 100644
index 74c47232..00000000
Binary files a/public/ridge/grandcanyon-dcfa7cc15fdd/card-2-t10-colour.webp and /dev/null differ
diff --git a/public/ridge/grandcanyon-dcfa7cc15fdd/card-2-t10-geometry.webp b/public/ridge/grandcanyon-dcfa7cc15fdd/card-2-t10-geometry.webp
deleted file mode 100644
index 0ef9a57a..00000000
Binary files a/public/ridge/grandcanyon-dcfa7cc15fdd/card-2-t10-geometry.webp and /dev/null differ
diff --git a/public/ridge/grandcanyon-dcfa7cc15fdd/card-2-t11-colour.webp b/public/ridge/grandcanyon-dcfa7cc15fdd/card-2-t11-colour.webp
deleted file mode 100644
index e42baa29..00000000
Binary files a/public/ridge/grandcanyon-dcfa7cc15fdd/card-2-t11-colour.webp and /dev/null differ
diff --git a/public/ridge/grandcanyon-dcfa7cc15fdd/card-2-t11-geometry.webp b/public/ridge/grandcanyon-dcfa7cc15fdd/card-2-t11-geometry.webp
deleted file mode 100644
index 5f42dab8..00000000
Binary files a/public/ridge/grandcanyon-dcfa7cc15fdd/card-2-t11-geometry.webp and /dev/null differ
diff --git a/public/ridge/grandcanyon-dcfa7cc15fdd/card-2-t12-colour.webp b/public/ridge/grandcanyon-dcfa7cc15fdd/card-2-t12-colour.webp
deleted file mode 100644
index 4c577383..00000000
Binary files a/public/ridge/grandcanyon-dcfa7cc15fdd/card-2-t12-colour.webp and /dev/null differ
diff --git a/public/ridge/grandcanyon-dcfa7cc15fdd/card-2-t12-geometry.webp b/public/ridge/grandcanyon-dcfa7cc15fdd/card-2-t12-geometry.webp
deleted file mode 100644
index 94e21f96..00000000
Binary files a/public/ridge/grandcanyon-dcfa7cc15fdd/card-2-t12-geometry.webp and /dev/null differ
diff --git a/public/ridge/grandcanyon-dcfa7cc15fdd/card-2-t13-colour.webp b/public/ridge/grandcanyon-dcfa7cc15fdd/card-2-t13-colour.webp
deleted file mode 100644
index 6fde1297..00000000
Binary files a/public/ridge/grandcanyon-dcfa7cc15fdd/card-2-t13-colour.webp and /dev/null differ
diff --git a/public/ridge/grandcanyon-dcfa7cc15fdd/card-2-t13-geometry.webp b/public/ridge/grandcanyon-dcfa7cc15fdd/card-2-t13-geometry.webp
deleted file mode 100644
index 212fe130..00000000
Binary files a/public/ridge/grandcanyon-dcfa7cc15fdd/card-2-t13-geometry.webp and /dev/null differ
diff --git a/public/ridge/grandcanyon-dcfa7cc15fdd/card-2-t14-colour.webp b/public/ridge/grandcanyon-dcfa7cc15fdd/card-2-t14-colour.webp
deleted file mode 100644
index f714d328..00000000
Binary files a/public/ridge/grandcanyon-dcfa7cc15fdd/card-2-t14-colour.webp and /dev/null differ
diff --git a/public/ridge/grandcanyon-dcfa7cc15fdd/card-2-t14-geometry.webp b/public/ridge/grandcanyon-dcfa7cc15fdd/card-2-t14-geometry.webp
deleted file mode 100644
index 271a5ab7..00000000
Binary files a/public/ridge/grandcanyon-dcfa7cc15fdd/card-2-t14-geometry.webp and /dev/null differ
diff --git a/public/ridge/grandcanyon-dcfa7cc15fdd/card-2-t15-colour.webp b/public/ridge/grandcanyon-dcfa7cc15fdd/card-2-t15-colour.webp
deleted file mode 100644
index 02086f10..00000000
Binary files a/public/ridge/grandcanyon-dcfa7cc15fdd/card-2-t15-colour.webp and /dev/null differ
diff --git a/public/ridge/grandcanyon-dcfa7cc15fdd/card-2-t15-geometry.webp b/public/ridge/grandcanyon-dcfa7cc15fdd/card-2-t15-geometry.webp
deleted file mode 100644
index 6540159f..00000000
Binary files a/public/ridge/grandcanyon-dcfa7cc15fdd/card-2-t15-geometry.webp and /dev/null differ
diff --git a/public/ridge/grandcanyon-dcfa7cc15fdd/card-2-t16-colour.webp b/public/ridge/grandcanyon-dcfa7cc15fdd/card-2-t16-colour.webp
deleted file mode 100644
index 574c0fd8..00000000
Binary files a/public/ridge/grandcanyon-dcfa7cc15fdd/card-2-t16-colour.webp and /dev/null differ
diff --git a/public/ridge/grandcanyon-dcfa7cc15fdd/card-2-t16-geometry.webp b/public/ridge/grandcanyon-dcfa7cc15fdd/card-2-t16-geometry.webp
deleted file mode 100644
index d6d979cb..00000000
Binary files a/public/ridge/grandcanyon-dcfa7cc15fdd/card-2-t16-geometry.webp and /dev/null differ
diff --git a/public/ridge/grandcanyon-dcfa7cc15fdd/card-2-t17-colour.webp b/public/ridge/grandcanyon-dcfa7cc15fdd/card-2-t17-colour.webp
deleted file mode 100644
index 59f1eab7..00000000
Binary files a/public/ridge/grandcanyon-dcfa7cc15fdd/card-2-t17-colour.webp and /dev/null differ
diff --git a/public/ridge/grandcanyon-dcfa7cc15fdd/card-2-t17-geometry.webp b/public/ridge/grandcanyon-dcfa7cc15fdd/card-2-t17-geometry.webp
deleted file mode 100644
index 9b974504..00000000
Binary files a/public/ridge/grandcanyon-dcfa7cc15fdd/card-2-t17-geometry.webp and /dev/null differ
diff --git a/public/ridge/grandcanyon-dcfa7cc15fdd/card-2-t18-colour.webp b/public/ridge/grandcanyon-dcfa7cc15fdd/card-2-t18-colour.webp
deleted file mode 100644
index 939507f8..00000000
Binary files a/public/ridge/grandcanyon-dcfa7cc15fdd/card-2-t18-colour.webp and /dev/null differ
diff --git a/public/ridge/grandcanyon-dcfa7cc15fdd/card-2-t18-geometry.webp b/public/ridge/grandcanyon-dcfa7cc15fdd/card-2-t18-geometry.webp
deleted file mode 100644
index 3e4edcc4..00000000
Binary files a/public/ridge/grandcanyon-dcfa7cc15fdd/card-2-t18-geometry.webp and /dev/null differ
diff --git a/public/ridge/grandcanyon-dcfa7cc15fdd/card-2-t19-colour.webp b/public/ridge/grandcanyon-dcfa7cc15fdd/card-2-t19-colour.webp
deleted file mode 100644
index 5827a615..00000000
Binary files a/public/ridge/grandcanyon-dcfa7cc15fdd/card-2-t19-colour.webp and /dev/null differ
diff --git a/public/ridge/grandcanyon-dcfa7cc15fdd/card-2-t19-geometry.webp b/public/ridge/grandcanyon-dcfa7cc15fdd/card-2-t19-geometry.webp
deleted file mode 100644
index 6a519924..00000000
Binary files a/public/ridge/grandcanyon-dcfa7cc15fdd/card-2-t19-geometry.webp and /dev/null differ
diff --git a/public/ridge/grandcanyon-dcfa7cc15fdd/card-2-t20-colour.webp b/public/ridge/grandcanyon-dcfa7cc15fdd/card-2-t20-colour.webp
deleted file mode 100644
index 8b66193c..00000000
Binary files a/public/ridge/grandcanyon-dcfa7cc15fdd/card-2-t20-colour.webp and /dev/null differ
diff --git a/public/ridge/grandcanyon-dcfa7cc15fdd/card-2-t20-geometry.webp b/public/ridge/grandcanyon-dcfa7cc15fdd/card-2-t20-geometry.webp
deleted file mode 100644
index 8c5104e8..00000000
Binary files a/public/ridge/grandcanyon-dcfa7cc15fdd/card-2-t20-geometry.webp and /dev/null differ
diff --git a/public/ridge/grandcanyon-dcfa7cc15fdd/card-2-t21-colour.webp b/public/ridge/grandcanyon-dcfa7cc15fdd/card-2-t21-colour.webp
deleted file mode 100644
index 6e51c86a..00000000
Binary files a/public/ridge/grandcanyon-dcfa7cc15fdd/card-2-t21-colour.webp and /dev/null differ
diff --git a/public/ridge/grandcanyon-dcfa7cc15fdd/card-2-t21-geometry.webp b/public/ridge/grandcanyon-dcfa7cc15fdd/card-2-t21-geometry.webp
deleted file mode 100644
index 3a67c175..00000000
Binary files a/public/ridge/grandcanyon-dcfa7cc15fdd/card-2-t21-geometry.webp and /dev/null differ
diff --git a/public/ridge/grandcanyon-dcfa7cc15fdd/card-2-t22-colour.webp b/public/ridge/grandcanyon-dcfa7cc15fdd/card-2-t22-colour.webp
deleted file mode 100644
index 90d3662e..00000000
Binary files a/public/ridge/grandcanyon-dcfa7cc15fdd/card-2-t22-colour.webp and /dev/null differ
diff --git a/public/ridge/grandcanyon-dcfa7cc15fdd/card-2-t22-geometry.webp b/public/ridge/grandcanyon-dcfa7cc15fdd/card-2-t22-geometry.webp
deleted file mode 100644
index 29da5c81..00000000
Binary files a/public/ridge/grandcanyon-dcfa7cc15fdd/card-2-t22-geometry.webp and /dev/null differ
diff --git a/public/ridge/grandcanyon-dcfa7cc15fdd/card-2-t23-colour.webp b/public/ridge/grandcanyon-dcfa7cc15fdd/card-2-t23-colour.webp
deleted file mode 100644
index afc49856..00000000
Binary files a/public/ridge/grandcanyon-dcfa7cc15fdd/card-2-t23-colour.webp and /dev/null differ
diff --git a/public/ridge/grandcanyon-dcfa7cc15fdd/card-2-t23-geometry.webp b/public/ridge/grandcanyon-dcfa7cc15fdd/card-2-t23-geometry.webp
deleted file mode 100644
index a5482271..00000000
Binary files a/public/ridge/grandcanyon-dcfa7cc15fdd/card-2-t23-geometry.webp and /dev/null differ
diff --git a/public/ridge/grandcanyon-dcfa7cc15fdd/card-2-t24-colour.webp b/public/ridge/grandcanyon-dcfa7cc15fdd/card-2-t24-colour.webp
deleted file mode 100644
index 240bb07b..00000000
Binary files a/public/ridge/grandcanyon-dcfa7cc15fdd/card-2-t24-colour.webp and /dev/null differ
diff --git a/public/ridge/grandcanyon-dcfa7cc15fdd/card-2-t24-geometry.webp b/public/ridge/grandcanyon-dcfa7cc15fdd/card-2-t24-geometry.webp
deleted file mode 100644
index cbd26836..00000000
Binary files a/public/ridge/grandcanyon-dcfa7cc15fdd/card-2-t24-geometry.webp and /dev/null differ
diff --git a/public/ridge/grandcanyon-dcfa7cc15fdd/card-2-t25-colour.webp b/public/ridge/grandcanyon-dcfa7cc15fdd/card-2-t25-colour.webp
deleted file mode 100644
index f47ba866..00000000
Binary files a/public/ridge/grandcanyon-dcfa7cc15fdd/card-2-t25-colour.webp and /dev/null differ
diff --git a/public/ridge/grandcanyon-dcfa7cc15fdd/card-2-t25-geometry.webp b/public/ridge/grandcanyon-dcfa7cc15fdd/card-2-t25-geometry.webp
deleted file mode 100644
index c7ad1598..00000000
Binary files a/public/ridge/grandcanyon-dcfa7cc15fdd/card-2-t25-geometry.webp and /dev/null differ
diff --git a/public/ridge/grandcanyon-dcfa7cc15fdd/card-2-t26-colour.webp b/public/ridge/grandcanyon-dcfa7cc15fdd/card-2-t26-colour.webp
deleted file mode 100644
index e5986bbf..00000000
Binary files a/public/ridge/grandcanyon-dcfa7cc15fdd/card-2-t26-colour.webp and /dev/null differ
diff --git a/public/ridge/grandcanyon-dcfa7cc15fdd/card-2-t26-geometry.webp b/public/ridge/grandcanyon-dcfa7cc15fdd/card-2-t26-geometry.webp
deleted file mode 100644
index bf94c2ae..00000000
Binary files a/public/ridge/grandcanyon-dcfa7cc15fdd/card-2-t26-geometry.webp and /dev/null differ
diff --git a/public/ridge/grandcanyon-dcfa7cc15fdd/card-2-t27-colour.webp b/public/ridge/grandcanyon-dcfa7cc15fdd/card-2-t27-colour.webp
deleted file mode 100644
index de0ff18b..00000000
Binary files a/public/ridge/grandcanyon-dcfa7cc15fdd/card-2-t27-colour.webp and /dev/null differ
diff --git a/public/ridge/grandcanyon-dcfa7cc15fdd/card-2-t27-geometry.webp b/public/ridge/grandcanyon-dcfa7cc15fdd/card-2-t27-geometry.webp
deleted file mode 100644
index 02cca7ee..00000000
Binary files a/public/ridge/grandcanyon-dcfa7cc15fdd/card-2-t27-geometry.webp and /dev/null differ
diff --git a/public/ridge/grandcanyon-dcfa7cc15fdd/card-2-t28-colour.webp b/public/ridge/grandcanyon-dcfa7cc15fdd/card-2-t28-colour.webp
deleted file mode 100644
index cdf70c38..00000000
Binary files a/public/ridge/grandcanyon-dcfa7cc15fdd/card-2-t28-colour.webp and /dev/null differ
diff --git a/public/ridge/grandcanyon-dcfa7cc15fdd/card-2-t28-geometry.webp b/public/ridge/grandcanyon-dcfa7cc15fdd/card-2-t28-geometry.webp
deleted file mode 100644
index 4ddf6845..00000000
Binary files a/public/ridge/grandcanyon-dcfa7cc15fdd/card-2-t28-geometry.webp and /dev/null differ
diff --git a/public/ridge/grandcanyon-dcfa7cc15fdd/card-2-t29-colour.webp b/public/ridge/grandcanyon-dcfa7cc15fdd/card-2-t29-colour.webp
deleted file mode 100644
index ba31e182..00000000
Binary files a/public/ridge/grandcanyon-dcfa7cc15fdd/card-2-t29-colour.webp and /dev/null differ
diff --git a/public/ridge/grandcanyon-dcfa7cc15fdd/card-2-t29-geometry.webp b/public/ridge/grandcanyon-dcfa7cc15fdd/card-2-t29-geometry.webp
deleted file mode 100644
index b5616356..00000000
Binary files a/public/ridge/grandcanyon-dcfa7cc15fdd/card-2-t29-geometry.webp and /dev/null differ
diff --git a/public/ridge/grandcanyon-dcfa7cc15fdd/card-2-t30-colour.webp b/public/ridge/grandcanyon-dcfa7cc15fdd/card-2-t30-colour.webp
deleted file mode 100644
index 29cc2e12..00000000
Binary files a/public/ridge/grandcanyon-dcfa7cc15fdd/card-2-t30-colour.webp and /dev/null differ
diff --git a/public/ridge/grandcanyon-dcfa7cc15fdd/card-2-t30-geometry.webp b/public/ridge/grandcanyon-dcfa7cc15fdd/card-2-t30-geometry.webp
deleted file mode 100644
index e06c7602..00000000
Binary files a/public/ridge/grandcanyon-dcfa7cc15fdd/card-2-t30-geometry.webp and /dev/null differ
diff --git a/public/ridge/grandcanyon-dcfa7cc15fdd/card-2-t31-colour.webp b/public/ridge/grandcanyon-dcfa7cc15fdd/card-2-t31-colour.webp
deleted file mode 100644
index b20e4e5b..00000000
Binary files a/public/ridge/grandcanyon-dcfa7cc15fdd/card-2-t31-colour.webp and /dev/null differ
diff --git a/public/ridge/grandcanyon-dcfa7cc15fdd/card-2-t31-geometry.webp b/public/ridge/grandcanyon-dcfa7cc15fdd/card-2-t31-geometry.webp
deleted file mode 100644
index 6eb0285f..00000000
Binary files a/public/ridge/grandcanyon-dcfa7cc15fdd/card-2-t31-geometry.webp and /dev/null differ
diff --git a/public/ridge/grandcanyon-dcfa7cc15fdd/card-3-t00-colour.webp b/public/ridge/grandcanyon-dcfa7cc15fdd/card-3-t00-colour.webp
deleted file mode 100644
index 2c17b67d..00000000
Binary files a/public/ridge/grandcanyon-dcfa7cc15fdd/card-3-t00-colour.webp and /dev/null differ
diff --git a/public/ridge/grandcanyon-dcfa7cc15fdd/card-3-t00-geometry.webp b/public/ridge/grandcanyon-dcfa7cc15fdd/card-3-t00-geometry.webp
deleted file mode 100644
index 1a1c8cfa..00000000
Binary files a/public/ridge/grandcanyon-dcfa7cc15fdd/card-3-t00-geometry.webp and /dev/null differ
diff --git a/public/ridge/grandcanyon-dcfa7cc15fdd/card-3-t01-colour.webp b/public/ridge/grandcanyon-dcfa7cc15fdd/card-3-t01-colour.webp
deleted file mode 100644
index b802e413..00000000
Binary files a/public/ridge/grandcanyon-dcfa7cc15fdd/card-3-t01-colour.webp and /dev/null differ
diff --git a/public/ridge/grandcanyon-dcfa7cc15fdd/card-3-t01-geometry.webp b/public/ridge/grandcanyon-dcfa7cc15fdd/card-3-t01-geometry.webp
deleted file mode 100644
index 43046c48..00000000
Binary files a/public/ridge/grandcanyon-dcfa7cc15fdd/card-3-t01-geometry.webp and /dev/null differ
diff --git a/public/ridge/grandcanyon-dcfa7cc15fdd/card-3-t02-colour.webp b/public/ridge/grandcanyon-dcfa7cc15fdd/card-3-t02-colour.webp
deleted file mode 100644
index fdc079b7..00000000
Binary files a/public/ridge/grandcanyon-dcfa7cc15fdd/card-3-t02-colour.webp and /dev/null differ
diff --git a/public/ridge/grandcanyon-dcfa7cc15fdd/card-3-t02-geometry.webp b/public/ridge/grandcanyon-dcfa7cc15fdd/card-3-t02-geometry.webp
deleted file mode 100644
index 32a036dd..00000000
Binary files a/public/ridge/grandcanyon-dcfa7cc15fdd/card-3-t02-geometry.webp and /dev/null differ
diff --git a/public/ridge/grandcanyon-dcfa7cc15fdd/card-3-t03-colour.webp b/public/ridge/grandcanyon-dcfa7cc15fdd/card-3-t03-colour.webp
deleted file mode 100644
index 0f2262d7..00000000
Binary files a/public/ridge/grandcanyon-dcfa7cc15fdd/card-3-t03-colour.webp and /dev/null differ
diff --git a/public/ridge/grandcanyon-dcfa7cc15fdd/card-3-t03-geometry.webp b/public/ridge/grandcanyon-dcfa7cc15fdd/card-3-t03-geometry.webp
deleted file mode 100644
index 3bcc55ef..00000000
Binary files a/public/ridge/grandcanyon-dcfa7cc15fdd/card-3-t03-geometry.webp and /dev/null differ
diff --git a/public/ridge/grandcanyon-dcfa7cc15fdd/card-3-t04-colour.webp b/public/ridge/grandcanyon-dcfa7cc15fdd/card-3-t04-colour.webp
deleted file mode 100644
index 94dac22d..00000000
Binary files a/public/ridge/grandcanyon-dcfa7cc15fdd/card-3-t04-colour.webp and /dev/null differ
diff --git a/public/ridge/grandcanyon-dcfa7cc15fdd/card-3-t04-geometry.webp b/public/ridge/grandcanyon-dcfa7cc15fdd/card-3-t04-geometry.webp
deleted file mode 100644
index e54d037c..00000000
Binary files a/public/ridge/grandcanyon-dcfa7cc15fdd/card-3-t04-geometry.webp and /dev/null differ
diff --git a/public/ridge/grandcanyon-dcfa7cc15fdd/card-3-t05-colour.webp b/public/ridge/grandcanyon-dcfa7cc15fdd/card-3-t05-colour.webp
deleted file mode 100644
index 4d21f1e3..00000000
Binary files a/public/ridge/grandcanyon-dcfa7cc15fdd/card-3-t05-colour.webp and /dev/null differ
diff --git a/public/ridge/grandcanyon-dcfa7cc15fdd/card-3-t05-geometry.webp b/public/ridge/grandcanyon-dcfa7cc15fdd/card-3-t05-geometry.webp
deleted file mode 100644
index cdc9659c..00000000
Binary files a/public/ridge/grandcanyon-dcfa7cc15fdd/card-3-t05-geometry.webp and /dev/null differ
diff --git a/public/ridge/grandcanyon-dcfa7cc15fdd/card-3-t06-colour.webp b/public/ridge/grandcanyon-dcfa7cc15fdd/card-3-t06-colour.webp
deleted file mode 100644
index 5e58ff43..00000000
Binary files a/public/ridge/grandcanyon-dcfa7cc15fdd/card-3-t06-colour.webp and /dev/null differ
diff --git a/public/ridge/grandcanyon-dcfa7cc15fdd/card-3-t06-geometry.webp b/public/ridge/grandcanyon-dcfa7cc15fdd/card-3-t06-geometry.webp
deleted file mode 100644
index c47c58e8..00000000
Binary files a/public/ridge/grandcanyon-dcfa7cc15fdd/card-3-t06-geometry.webp and /dev/null differ
diff --git a/public/ridge/grandcanyon-dcfa7cc15fdd/card-3-t07-colour.webp b/public/ridge/grandcanyon-dcfa7cc15fdd/card-3-t07-colour.webp
deleted file mode 100644
index 9a343e21..00000000
Binary files a/public/ridge/grandcanyon-dcfa7cc15fdd/card-3-t07-colour.webp and /dev/null differ
diff --git a/public/ridge/grandcanyon-dcfa7cc15fdd/card-3-t07-geometry.webp b/public/ridge/grandcanyon-dcfa7cc15fdd/card-3-t07-geometry.webp
deleted file mode 100644
index 246edc76..00000000
Binary files a/public/ridge/grandcanyon-dcfa7cc15fdd/card-3-t07-geometry.webp and /dev/null differ
diff --git a/public/ridge/grandcanyon-dcfa7cc15fdd/card-3-t08-colour.webp b/public/ridge/grandcanyon-dcfa7cc15fdd/card-3-t08-colour.webp
deleted file mode 100644
index 8cac13da..00000000
Binary files a/public/ridge/grandcanyon-dcfa7cc15fdd/card-3-t08-colour.webp and /dev/null differ
diff --git a/public/ridge/grandcanyon-dcfa7cc15fdd/card-3-t08-geometry.webp b/public/ridge/grandcanyon-dcfa7cc15fdd/card-3-t08-geometry.webp
deleted file mode 100644
index ecdfbe8d..00000000
Binary files a/public/ridge/grandcanyon-dcfa7cc15fdd/card-3-t08-geometry.webp and /dev/null differ
diff --git a/public/ridge/grandcanyon-dcfa7cc15fdd/card-3-t09-colour.webp b/public/ridge/grandcanyon-dcfa7cc15fdd/card-3-t09-colour.webp
deleted file mode 100644
index 379e95bd..00000000
Binary files a/public/ridge/grandcanyon-dcfa7cc15fdd/card-3-t09-colour.webp and /dev/null differ
diff --git a/public/ridge/grandcanyon-dcfa7cc15fdd/card-3-t09-geometry.webp b/public/ridge/grandcanyon-dcfa7cc15fdd/card-3-t09-geometry.webp
deleted file mode 100644
index ecdfbe8d..00000000
Binary files a/public/ridge/grandcanyon-dcfa7cc15fdd/card-3-t09-geometry.webp and /dev/null differ
diff --git a/public/ridge/grandcanyon-dcfa7cc15fdd/card-3-t10-colour.webp b/public/ridge/grandcanyon-dcfa7cc15fdd/card-3-t10-colour.webp
deleted file mode 100644
index f5889e43..00000000
Binary files a/public/ridge/grandcanyon-dcfa7cc15fdd/card-3-t10-colour.webp and /dev/null differ
diff --git a/public/ridge/grandcanyon-dcfa7cc15fdd/card-3-t10-geometry.webp b/public/ridge/grandcanyon-dcfa7cc15fdd/card-3-t10-geometry.webp
deleted file mode 100644
index 717a9188..00000000
Binary files a/public/ridge/grandcanyon-dcfa7cc15fdd/card-3-t10-geometry.webp and /dev/null differ
diff --git a/public/ridge/grandcanyon-dcfa7cc15fdd/card-3-t11-colour.webp b/public/ridge/grandcanyon-dcfa7cc15fdd/card-3-t11-colour.webp
deleted file mode 100644
index 81c7d723..00000000
Binary files a/public/ridge/grandcanyon-dcfa7cc15fdd/card-3-t11-colour.webp and /dev/null differ
diff --git a/public/ridge/grandcanyon-dcfa7cc15fdd/card-3-t11-geometry.webp b/public/ridge/grandcanyon-dcfa7cc15fdd/card-3-t11-geometry.webp
deleted file mode 100644
index 774c3af1..00000000
Binary files a/public/ridge/grandcanyon-dcfa7cc15fdd/card-3-t11-geometry.webp and /dev/null differ
diff --git a/public/ridge/grandcanyon-dcfa7cc15fdd/card-3-t12-colour.webp b/public/ridge/grandcanyon-dcfa7cc15fdd/card-3-t12-colour.webp
deleted file mode 100644
index 4c9b707e..00000000
Binary files a/public/ridge/grandcanyon-dcfa7cc15fdd/card-3-t12-colour.webp and /dev/null differ
diff --git a/public/ridge/grandcanyon-dcfa7cc15fdd/card-3-t12-geometry.webp b/public/ridge/grandcanyon-dcfa7cc15fdd/card-3-t12-geometry.webp
deleted file mode 100644
index 3de8626e..00000000
Binary files a/public/ridge/grandcanyon-dcfa7cc15fdd/card-3-t12-geometry.webp and /dev/null differ
diff --git a/public/ridge/grandcanyon-dcfa7cc15fdd/card-3-t13-colour.webp b/public/ridge/grandcanyon-dcfa7cc15fdd/card-3-t13-colour.webp
deleted file mode 100644
index 43795f6e..00000000
Binary files a/public/ridge/grandcanyon-dcfa7cc15fdd/card-3-t13-colour.webp and /dev/null differ
diff --git a/public/ridge/grandcanyon-dcfa7cc15fdd/card-3-t13-geometry.webp b/public/ridge/grandcanyon-dcfa7cc15fdd/card-3-t13-geometry.webp
deleted file mode 100644
index 6bfd9ede..00000000
Binary files a/public/ridge/grandcanyon-dcfa7cc15fdd/card-3-t13-geometry.webp and /dev/null differ
diff --git a/public/ridge/grandcanyon-dcfa7cc15fdd/card-3-t14-colour.webp b/public/ridge/grandcanyon-dcfa7cc15fdd/card-3-t14-colour.webp
deleted file mode 100644
index 41c99f4c..00000000
Binary files a/public/ridge/grandcanyon-dcfa7cc15fdd/card-3-t14-colour.webp and /dev/null differ
diff --git a/public/ridge/grandcanyon-dcfa7cc15fdd/card-3-t14-geometry.webp b/public/ridge/grandcanyon-dcfa7cc15fdd/card-3-t14-geometry.webp
deleted file mode 100644
index bc9df623..00000000
Binary files a/public/ridge/grandcanyon-dcfa7cc15fdd/card-3-t14-geometry.webp and /dev/null differ
diff --git a/public/ridge/grandcanyon-dcfa7cc15fdd/card-3-t15-colour.webp b/public/ridge/grandcanyon-dcfa7cc15fdd/card-3-t15-colour.webp
deleted file mode 100644
index 38baedc8..00000000
Binary files a/public/ridge/grandcanyon-dcfa7cc15fdd/card-3-t15-colour.webp and /dev/null differ
diff --git a/public/ridge/grandcanyon-dcfa7cc15fdd/card-3-t15-geometry.webp b/public/ridge/grandcanyon-dcfa7cc15fdd/card-3-t15-geometry.webp
deleted file mode 100644
index bc9df623..00000000
Binary files a/public/ridge/grandcanyon-dcfa7cc15fdd/card-3-t15-geometry.webp and /dev/null differ
diff --git a/public/ridge/grandcanyon-dcfa7cc15fdd/card-3-t16-colour.webp b/public/ridge/grandcanyon-dcfa7cc15fdd/card-3-t16-colour.webp
deleted file mode 100644
index 66059d81..00000000
Binary files a/public/ridge/grandcanyon-dcfa7cc15fdd/card-3-t16-colour.webp and /dev/null differ
diff --git a/public/ridge/grandcanyon-dcfa7cc15fdd/card-3-t16-geometry.webp b/public/ridge/grandcanyon-dcfa7cc15fdd/card-3-t16-geometry.webp
deleted file mode 100644
index 6497ba32..00000000
Binary files a/public/ridge/grandcanyon-dcfa7cc15fdd/card-3-t16-geometry.webp and /dev/null differ
diff --git a/public/ridge/grandcanyon-dcfa7cc15fdd/card-3-t17-colour.webp b/public/ridge/grandcanyon-dcfa7cc15fdd/card-3-t17-colour.webp
deleted file mode 100644
index 443cc1a8..00000000
Binary files a/public/ridge/grandcanyon-dcfa7cc15fdd/card-3-t17-colour.webp and /dev/null differ
diff --git a/public/ridge/grandcanyon-dcfa7cc15fdd/card-3-t17-geometry.webp b/public/ridge/grandcanyon-dcfa7cc15fdd/card-3-t17-geometry.webp
deleted file mode 100644
index bc9df623..00000000
Binary files a/public/ridge/grandcanyon-dcfa7cc15fdd/card-3-t17-geometry.webp and /dev/null differ
diff --git a/public/ridge/grandcanyon-dcfa7cc15fdd/card-3-t18-colour.webp b/public/ridge/grandcanyon-dcfa7cc15fdd/card-3-t18-colour.webp
deleted file mode 100644
index 21e8bf90..00000000
Binary files a/public/ridge/grandcanyon-dcfa7cc15fdd/card-3-t18-colour.webp and /dev/null differ
diff --git a/public/ridge/grandcanyon-dcfa7cc15fdd/card-3-t18-geometry.webp b/public/ridge/grandcanyon-dcfa7cc15fdd/card-3-t18-geometry.webp
deleted file mode 100644
index bc9df623..00000000
Binary files a/public/ridge/grandcanyon-dcfa7cc15fdd/card-3-t18-geometry.webp and /dev/null differ
diff --git a/public/ridge/grandcanyon-dcfa7cc15fdd/card-3-t19-colour.webp b/public/ridge/grandcanyon-dcfa7cc15fdd/card-3-t19-colour.webp
deleted file mode 100644
index 000ee760..00000000
Binary files a/public/ridge/grandcanyon-dcfa7cc15fdd/card-3-t19-colour.webp and /dev/null differ
diff --git a/public/ridge/grandcanyon-dcfa7cc15fdd/card-3-t19-geometry.webp b/public/ridge/grandcanyon-dcfa7cc15fdd/card-3-t19-geometry.webp
deleted file mode 100644
index bc9df623..00000000
Binary files a/public/ridge/grandcanyon-dcfa7cc15fdd/card-3-t19-geometry.webp and /dev/null differ
diff --git a/public/ridge/grandcanyon-dcfa7cc15fdd/card-3-t20-colour.webp b/public/ridge/grandcanyon-dcfa7cc15fdd/card-3-t20-colour.webp
deleted file mode 100644
index 61c631f4..00000000
Binary files a/public/ridge/grandcanyon-dcfa7cc15fdd/card-3-t20-colour.webp and /dev/null differ
diff --git a/public/ridge/grandcanyon-dcfa7cc15fdd/card-3-t20-geometry.webp b/public/ridge/grandcanyon-dcfa7cc15fdd/card-3-t20-geometry.webp
deleted file mode 100644
index 6497ba32..00000000
Binary files a/public/ridge/grandcanyon-dcfa7cc15fdd/card-3-t20-geometry.webp and /dev/null differ
diff --git a/public/ridge/grandcanyon-dcfa7cc15fdd/card-3-t21-colour.webp b/public/ridge/grandcanyon-dcfa7cc15fdd/card-3-t21-colour.webp
deleted file mode 100644
index 75c5aa10..00000000
Binary files a/public/ridge/grandcanyon-dcfa7cc15fdd/card-3-t21-colour.webp and /dev/null differ
diff --git a/public/ridge/grandcanyon-dcfa7cc15fdd/card-3-t21-geometry.webp b/public/ridge/grandcanyon-dcfa7cc15fdd/card-3-t21-geometry.webp
deleted file mode 100644
index 14c2e95e..00000000
Binary files a/public/ridge/grandcanyon-dcfa7cc15fdd/card-3-t21-geometry.webp and /dev/null differ
diff --git a/public/ridge/grandcanyon-dcfa7cc15fdd/card-3-t22-colour.webp b/public/ridge/grandcanyon-dcfa7cc15fdd/card-3-t22-colour.webp
deleted file mode 100644
index 8c3efc40..00000000
Binary files a/public/ridge/grandcanyon-dcfa7cc15fdd/card-3-t22-colour.webp and /dev/null differ
diff --git a/public/ridge/grandcanyon-dcfa7cc15fdd/card-3-t22-geometry.webp b/public/ridge/grandcanyon-dcfa7cc15fdd/card-3-t22-geometry.webp
deleted file mode 100644
index 17b2c0a7..00000000
Binary files a/public/ridge/grandcanyon-dcfa7cc15fdd/card-3-t22-geometry.webp and /dev/null differ
diff --git a/public/ridge/grandcanyon-dcfa7cc15fdd/card-3-t23-colour.webp b/public/ridge/grandcanyon-dcfa7cc15fdd/card-3-t23-colour.webp
deleted file mode 100644
index b2633ce9..00000000
Binary files a/public/ridge/grandcanyon-dcfa7cc15fdd/card-3-t23-colour.webp and /dev/null differ
diff --git a/public/ridge/grandcanyon-dcfa7cc15fdd/card-3-t23-geometry.webp b/public/ridge/grandcanyon-dcfa7cc15fdd/card-3-t23-geometry.webp
deleted file mode 100644
index 2e8eff72..00000000
Binary files a/public/ridge/grandcanyon-dcfa7cc15fdd/card-3-t23-geometry.webp and /dev/null differ
diff --git a/public/ridge/grandcanyon-dcfa7cc15fdd/card-3-t24-colour.webp b/public/ridge/grandcanyon-dcfa7cc15fdd/card-3-t24-colour.webp
deleted file mode 100644
index 7a17b1c6..00000000
Binary files a/public/ridge/grandcanyon-dcfa7cc15fdd/card-3-t24-colour.webp and /dev/null differ
diff --git a/public/ridge/grandcanyon-dcfa7cc15fdd/card-3-t24-geometry.webp b/public/ridge/grandcanyon-dcfa7cc15fdd/card-3-t24-geometry.webp
deleted file mode 100644
index 6a8f7a47..00000000
Binary files a/public/ridge/grandcanyon-dcfa7cc15fdd/card-3-t24-geometry.webp and /dev/null differ
diff --git a/public/ridge/grandcanyon-dcfa7cc15fdd/card-3-t25-colour.webp b/public/ridge/grandcanyon-dcfa7cc15fdd/card-3-t25-colour.webp
deleted file mode 100644
index a358a853..00000000
Binary files a/public/ridge/grandcanyon-dcfa7cc15fdd/card-3-t25-colour.webp and /dev/null differ
diff --git a/public/ridge/grandcanyon-dcfa7cc15fdd/card-3-t25-geometry.webp b/public/ridge/grandcanyon-dcfa7cc15fdd/card-3-t25-geometry.webp
deleted file mode 100644
index b4b144fc..00000000
Binary files a/public/ridge/grandcanyon-dcfa7cc15fdd/card-3-t25-geometry.webp and /dev/null differ
diff --git a/public/ridge/grandcanyon-dcfa7cc15fdd/card-3-t26-colour.webp b/public/ridge/grandcanyon-dcfa7cc15fdd/card-3-t26-colour.webp
deleted file mode 100644
index 8fdfef54..00000000
Binary files a/public/ridge/grandcanyon-dcfa7cc15fdd/card-3-t26-colour.webp and /dev/null differ
diff --git a/public/ridge/grandcanyon-dcfa7cc15fdd/card-3-t26-geometry.webp b/public/ridge/grandcanyon-dcfa7cc15fdd/card-3-t26-geometry.webp
deleted file mode 100644
index 0f5a6904..00000000
Binary files a/public/ridge/grandcanyon-dcfa7cc15fdd/card-3-t26-geometry.webp and /dev/null differ
diff --git a/public/ridge/grandcanyon-dcfa7cc15fdd/card-3-t27-colour.webp b/public/ridge/grandcanyon-dcfa7cc15fdd/card-3-t27-colour.webp
deleted file mode 100644
index 829fc1ff..00000000
Binary files a/public/ridge/grandcanyon-dcfa7cc15fdd/card-3-t27-colour.webp and /dev/null differ
diff --git a/public/ridge/grandcanyon-dcfa7cc15fdd/card-3-t27-geometry.webp b/public/ridge/grandcanyon-dcfa7cc15fdd/card-3-t27-geometry.webp
deleted file mode 100644
index 5d9023b4..00000000
Binary files a/public/ridge/grandcanyon-dcfa7cc15fdd/card-3-t27-geometry.webp and /dev/null differ
diff --git a/public/ridge/grandcanyon-dcfa7cc15fdd/card-3-t28-colour.webp b/public/ridge/grandcanyon-dcfa7cc15fdd/card-3-t28-colour.webp
deleted file mode 100644
index 89c823b8..00000000
Binary files a/public/ridge/grandcanyon-dcfa7cc15fdd/card-3-t28-colour.webp and /dev/null differ
diff --git a/public/ridge/grandcanyon-dcfa7cc15fdd/card-3-t28-geometry.webp b/public/ridge/grandcanyon-dcfa7cc15fdd/card-3-t28-geometry.webp
deleted file mode 100644
index 85099502..00000000
Binary files a/public/ridge/grandcanyon-dcfa7cc15fdd/card-3-t28-geometry.webp and /dev/null differ
diff --git a/public/ridge/grandcanyon-dcfa7cc15fdd/card-3-t29-colour.webp b/public/ridge/grandcanyon-dcfa7cc15fdd/card-3-t29-colour.webp
deleted file mode 100644
index 40ff6b88..00000000
Binary files a/public/ridge/grandcanyon-dcfa7cc15fdd/card-3-t29-colour.webp and /dev/null differ
diff --git a/public/ridge/grandcanyon-dcfa7cc15fdd/card-3-t29-geometry.webp b/public/ridge/grandcanyon-dcfa7cc15fdd/card-3-t29-geometry.webp
deleted file mode 100644
index d2e8f2a7..00000000
Binary files a/public/ridge/grandcanyon-dcfa7cc15fdd/card-3-t29-geometry.webp and /dev/null differ
diff --git a/public/ridge/grandcanyon-dcfa7cc15fdd/card-3-t30-colour.webp b/public/ridge/grandcanyon-dcfa7cc15fdd/card-3-t30-colour.webp
deleted file mode 100644
index 98ed8f11..00000000
Binary files a/public/ridge/grandcanyon-dcfa7cc15fdd/card-3-t30-colour.webp and /dev/null differ
diff --git a/public/ridge/grandcanyon-dcfa7cc15fdd/card-3-t30-geometry.webp b/public/ridge/grandcanyon-dcfa7cc15fdd/card-3-t30-geometry.webp
deleted file mode 100644
index c8c89c4f..00000000
Binary files a/public/ridge/grandcanyon-dcfa7cc15fdd/card-3-t30-geometry.webp and /dev/null differ
diff --git a/public/ridge/grandcanyon-dcfa7cc15fdd/card-3-t31-colour.webp b/public/ridge/grandcanyon-dcfa7cc15fdd/card-3-t31-colour.webp
deleted file mode 100644
index ba031e6f..00000000
Binary files a/public/ridge/grandcanyon-dcfa7cc15fdd/card-3-t31-colour.webp and /dev/null differ
diff --git a/public/ridge/grandcanyon-dcfa7cc15fdd/card-3-t31-geometry.webp b/public/ridge/grandcanyon-dcfa7cc15fdd/card-3-t31-geometry.webp
deleted file mode 100644
index 88fe821a..00000000
Binary files a/public/ridge/grandcanyon-dcfa7cc15fdd/card-3-t31-geometry.webp and /dev/null differ
diff --git a/public/ridge/grandcanyon-dcfa7cc15fdd/manifest.json b/public/ridge/grandcanyon-dcfa7cc15fdd/manifest.json
deleted file mode 100644
index 3cf044de..00000000
--- a/public/ridge/grandcanyon-dcfa7cc15fdd/manifest.json
+++ /dev/null
@@ -1,1796 +0,0 @@
-{
- "schema": 3,
- "baker_version": 7,
- "bake_id": "dcfa7cc15fdd",
- "place": {
- "id": "grandcanyon",
- "name": "Grand Canyon from Unkar and Cardenas",
- "lat": 36.0817,
- "lon": -111.8551,
- "altitude_km": 0.9182969562014661,
- "eye_m": 919.8969562014662,
- "tz": "America/Phoenix"
- },
- "view": {
- "look_az_deg": 290,
- "plane_h": 600,
- "px_per_deg_h": 17.77777777777778,
- "px_per_deg_v": 15.039939126168882,
- "exaggeration": 0.8459965758469996,
- "horizon_row": 450.0,
- "sky_row": 24.0,
- "near_row": 396.0,
- "ring_w": 6400,
- "tile_w": 200,
- "tiles": 32,
- "apron": 2
- },
- "curvature": {
- "r_earth_m": 6371000.0,
- "k_ref": 0.13
- },
- "encoding": {
- "log_d_min": 6.214608098422191,
- "log_d_max": 10.310144223761654,
- "normal": "rt8"
- },
- "camera": {
- "r_max_m": 95.8,
- "r_max_forward_m": 198.4
- },
- "cards": [
- {
- "near_m": null,
- "far_m": 12741.776324217612
- },
- {
- "near_m": 12741.776324217612,
- "far_m": 19190.966661904076
- },
- {
- "near_m": 19190.966661904076,
- "far_m": 28904.38444742736
- },
- {
- "near_m": 28904.38444742736,
- "far_m": null
- }
- ],
- "tiles": [
- [
- {
- "top": 331,
- "h": 269,
- "distance_m": 1563.0859375,
- "colour": {
- "file": "card-0-t00-colour.webp",
- "bytes": 1064
- },
- "geometry": {
- "file": "card-0-t00-geometry.webp",
- "bytes": 24708
- }
- },
- {
- "top": 386,
- "h": 214,
- "distance_m": 12087.9375,
- "colour": {
- "file": "card-1-t00-colour.webp",
- "bytes": 688
- },
- "geometry": {
- "file": "card-1-t00-geometry.webp",
- "bytes": 2540
- }
- },
- {
- "top": 410,
- "h": 190,
- "distance_m": 19672.74609375,
- "colour": {
- "file": "card-2-t00-colour.webp",
- "bytes": 950
- },
- "geometry": {
- "file": "card-2-t00-geometry.webp",
- "bytes": 7464
- }
- },
- {
- "top": 423,
- "h": 177,
- "distance_m": 28594.23828125,
- "colour": {
- "file": "card-3-t00-colour.webp",
- "bytes": 428
- },
- "geometry": {
- "file": "card-3-t00-geometry.webp",
- "bytes": 420
- }
- }
- ],
- [
- {
- "top": 338,
- "h": 262,
- "distance_m": 1620.000244140625,
- "colour": {
- "file": "card-0-t01-colour.webp",
- "bytes": 1156
- },
- "geometry": {
- "file": "card-0-t01-geometry.webp",
- "bytes": 25874
- }
- },
- {
- "top": 378,
- "h": 222,
- "distance_m": 13092.62109375,
- "colour": {
- "file": "card-1-t01-colour.webp",
- "bytes": 1014
- },
- "geometry": {
- "file": "card-1-t01-geometry.webp",
- "bytes": 9498
- }
- },
- {
- "top": 406,
- "h": 194,
- "distance_m": 18308.744140625,
- "colour": {
- "file": "card-2-t01-colour.webp",
- "bytes": 474
- },
- "geometry": {
- "file": "card-2-t01-geometry.webp",
- "bytes": 498
- }
- },
- {
- "top": 423,
- "h": 177,
- "distance_m": 26966.732421875,
- "colour": {
- "file": "card-3-t01-colour.webp",
- "bytes": 362
- },
- "geometry": {
- "file": "card-3-t01-geometry.webp",
- "bytes": 46
- }
- }
- ],
- [
- {
- "top": 353,
- "h": 247,
- "distance_m": 2692.403564453125,
- "colour": {
- "file": "card-0-t02-colour.webp",
- "bytes": 1228
- },
- "geometry": {
- "file": "card-0-t02-geometry.webp",
- "bytes": 24332
- }
- },
- {
- "top": 382,
- "h": 218,
- "distance_m": 16212.6201171875,
- "colour": {
- "file": "card-1-t02-colour.webp",
- "bytes": 678
- },
- "geometry": {
- "file": "card-1-t02-geometry.webp",
- "bytes": 224
- }
- },
- {
- "top": 406,
- "h": 194,
- "distance_m": 17946.91796875,
- "colour": {
- "file": "card-2-t02-colour.webp",
- "bytes": 524
- },
- "geometry": {
- "file": "card-2-t02-geometry.webp",
- "bytes": 152
- }
- },
- {
- "top": 424,
- "h": 176,
- "distance_m": 26966.732421875,
- "colour": {
- "file": "card-3-t02-colour.webp",
- "bytes": 280
- },
- "geometry": {
- "file": "card-3-t02-geometry.webp",
- "bytes": 46
- }
- }
- ],
- [
- {
- "top": 349,
- "h": 251,
- "distance_m": 5589.978515625,
- "colour": {
- "file": "card-0-t03-colour.webp",
- "bytes": 1156
- },
- "geometry": {
- "file": "card-0-t03-geometry.webp",
- "bytes": 26140
- }
- },
- {
- "top": 385,
- "h": 215,
- "distance_m": 11896.4462890625,
- "colour": {
- "file": "card-1-t03-colour.webp",
- "bytes": 436
- },
- "geometry": {
- "file": "card-1-t03-geometry.webp",
- "bytes": 72
- }
- },
- {
- "top": 409,
- "h": 191,
- "distance_m": 18148.931640625,
- "colour": {
- "file": "card-2-t03-colour.webp",
- "bytes": 530
- },
- "geometry": {
- "file": "card-2-t03-geometry.webp",
- "bytes": 2094
- }
- },
- {
- "top": 424,
- "h": 176,
- "distance_m": 29900.13671875,
- "colour": {
- "file": "card-3-t03-colour.webp",
- "bytes": 264
- },
- "geometry": {
- "file": "card-3-t03-geometry.webp",
- "bytes": 114
- }
- }
- ],
- [
- {
- "top": 326,
- "h": 274,
- "distance_m": 5400.00048828125,
- "colour": {
- "file": "card-0-t04-colour.webp",
- "bytes": 1428
- },
- "geometry": {
- "file": "card-0-t04-geometry.webp",
- "bytes": 23666
- }
- },
- {
- "top": 387,
- "h": 213,
- "distance_m": 11896.4462890625,
- "colour": {
- "file": "card-1-t04-colour.webp",
- "bytes": 280
- },
- "geometry": {
- "file": "card-1-t04-geometry.webp",
- "bytes": 72
- }
- },
- {
- "top": 414,
- "h": 186,
- "distance_m": 18644.55078125,
- "colour": {
- "file": "card-2-t04-colour.webp",
- "bytes": 868
- },
- "geometry": {
- "file": "card-2-t04-geometry.webp",
- "bytes": 5726
- }
- },
- {
- "top": 427,
- "h": 173,
- "distance_m": 26966.732421875,
- "colour": {
- "file": "card-3-t04-colour.webp",
- "bytes": 260
- },
- "geometry": {
- "file": "card-3-t04-geometry.webp",
- "bytes": 116
- }
- }
- ],
- [
- {
- "top": 296,
- "h": 304,
- "distance_m": 6250.08154296875,
- "colour": {
- "file": "card-0-t05-colour.webp",
- "bytes": 1668
- },
- "geometry": {
- "file": "card-0-t05-geometry.webp",
- "bytes": 17214
- }
- },
- {
- "top": 390,
- "h": 210,
- "distance_m": 11934.1728515625,
- "colour": {
- "file": "card-1-t05-colour.webp",
- "bytes": 332
- },
- "geometry": {
- "file": "card-1-t05-geometry.webp",
- "bytes": 200
- }
- },
- {
- "top": 415,
- "h": 185,
- "distance_m": 19785.46875,
- "colour": {
- "file": "card-2-t05-colour.webp",
- "bytes": 462
- },
- "geometry": {
- "file": "card-2-t05-geometry.webp",
- "bytes": 588
- }
- },
- {
- "top": 429,
- "h": 171,
- "distance_m": 26966.732421875,
- "colour": {
- "file": "card-3-t05-colour.webp",
- "bytes": 318
- },
- "geometry": {
- "file": "card-3-t05-geometry.webp",
- "bytes": 122
- }
- }
- ],
- [
- {
- "top": 240,
- "h": 360,
- "distance_m": 4626.02001953125,
- "colour": {
- "file": "card-0-t06-colour.webp",
- "bytes": 1558
- },
- "geometry": {
- "file": "card-0-t06-geometry.webp",
- "bytes": 11530
- }
- },
- {
- "top": 394,
- "h": 206,
- "distance_m": 11896.4462890625,
- "colour": {
- "file": "card-1-t06-colour.webp",
- "bytes": 364
- },
- "geometry": {
- "file": "card-1-t06-geometry.webp",
- "bytes": 96
- }
- },
- {
- "top": 418,
- "h": 182,
- "distance_m": 17946.91796875,
- "colour": {
- "file": "card-2-t06-colour.webp",
- "bytes": 322
- },
- "geometry": {
- "file": "card-2-t06-geometry.webp",
- "bytes": 66
- }
- },
- {
- "top": 429,
- "h": 171,
- "distance_m": 27179.58203125,
- "colour": {
- "file": "card-3-t06-colour.webp",
- "bytes": 356
- },
- "geometry": {
- "file": "card-3-t06-geometry.webp",
- "bytes": 228
- }
- }
- ],
- [
- {
- "top": 168,
- "h": 432,
- "distance_m": 580.0,
- "colour": {
- "file": "card-0-t07-colour.webp",
- "bytes": 1522
- },
- "geometry": {
- "file": "card-0-t07-geometry.webp",
- "bytes": 3948
- }
- },
- {
- "top": 399,
- "h": 201,
- "distance_m": 11896.4462890625,
- "colour": {
- "file": "card-1-t07-colour.webp",
- "bytes": 338
- },
- "geometry": {
- "file": "card-1-t07-geometry.webp",
- "bytes": 106
- }
- },
- {
- "top": 421,
- "h": 179,
- "distance_m": 18163.146484375,
- "colour": {
- "file": "card-2-t07-colour.webp",
- "bytes": 436
- },
- "geometry": {
- "file": "card-2-t07-geometry.webp",
- "bytes": 1330
- }
- },
- {
- "top": 432,
- "h": 168,
- "distance_m": 27182.900390625,
- "colour": {
- "file": "card-3-t07-colour.webp",
- "bytes": 216
- },
- "geometry": {
- "file": "card-3-t07-geometry.webp",
- "bytes": 134
- }
- }
- ],
- [
- {
- "top": 66,
- "h": 534,
- "distance_m": 557.5186157226562,
- "colour": {
- "file": "card-0-t08-colour.webp",
- "bytes": 1704
- },
- "geometry": {
- "file": "card-0-t08-geometry.webp",
- "bytes": 4234
- }
- },
- {
- "top": 394,
- "h": 206,
- "distance_m": 11896.4462890625,
- "colour": {
- "file": "card-1-t08-colour.webp",
- "bytes": 318
- },
- "geometry": {
- "file": "card-1-t08-geometry.webp",
- "bytes": 164
- }
- },
- {
- "top": 420,
- "h": 180,
- "distance_m": 18251.51171875,
- "colour": {
- "file": "card-2-t08-colour.webp",
- "bytes": 990
- },
- "geometry": {
- "file": "card-2-t08-geometry.webp",
- "bytes": 3768
- }
- },
- {
- "top": 431,
- "h": 169,
- "distance_m": 26966.732421875,
- "colour": {
- "file": "card-3-t08-colour.webp",
- "bytes": 286
- },
- "geometry": {
- "file": "card-3-t08-geometry.webp",
- "bytes": 46
- }
- }
- ],
- [
- {
- "top": 24,
- "h": 576,
- "distance_m": 527.2847290039062,
- "colour": {
- "file": "card-0-t09-colour.webp",
- "bytes": 1224
- },
- "geometry": {
- "file": "card-0-t09-geometry.webp",
- "bytes": 4474
- }
- },
- {
- "top": 391,
- "h": 209,
- "distance_m": 12120.7451171875,
- "colour": {
- "file": "card-1-t09-colour.webp",
- "bytes": 312
- },
- "geometry": {
- "file": "card-1-t09-geometry.webp",
- "bytes": 160
- }
- },
- {
- "top": 415,
- "h": 185,
- "distance_m": 18090.78125,
- "colour": {
- "file": "card-2-t09-colour.webp",
- "bytes": 442
- },
- "geometry": {
- "file": "card-2-t09-geometry.webp",
- "bytes": 1402
- }
- },
- {
- "top": 431,
- "h": 169,
- "distance_m": 26966.732421875,
- "colour": {
- "file": "card-3-t09-colour.webp",
- "bytes": 306
- },
- "geometry": {
- "file": "card-3-t09-geometry.webp",
- "bytes": 46
- }
- }
- ],
- [
- {
- "top": 24,
- "h": 576,
- "distance_m": 579.9200439453125,
- "colour": {
- "file": "card-0-t10-colour.webp",
- "bytes": 1336
- },
- "geometry": {
- "file": "card-0-t10-geometry.webp",
- "bytes": 8156
- }
- },
- {
- "top": 388,
- "h": 212,
- "distance_m": 11896.4462890625,
- "colour": {
- "file": "card-1-t10-colour.webp",
- "bytes": 314
- },
- "geometry": {
- "file": "card-1-t10-geometry.webp",
- "bytes": 110
- }
- },
- {
- "top": 415,
- "h": 185,
- "distance_m": 18521.453125,
- "colour": {
- "file": "card-2-t10-colour.webp",
- "bytes": 840
- },
- "geometry": {
- "file": "card-2-t10-geometry.webp",
- "bytes": 4534
- }
- },
- {
- "top": 428,
- "h": 172,
- "distance_m": 27291.634765625,
- "colour": {
- "file": "card-3-t10-colour.webp",
- "bytes": 400
- },
- "geometry": {
- "file": "card-3-t10-geometry.webp",
- "bytes": 278
- }
- }
- ],
- [
- {
- "top": 53,
- "h": 547,
- "distance_m": 630.2824096679688,
- "colour": {
- "file": "card-0-t11-colour.webp",
- "bytes": 1366
- },
- "geometry": {
- "file": "card-0-t11-geometry.webp",
- "bytes": 11310
- }
- },
- {
- "top": 369,
- "h": 231,
- "distance_m": 12087.9375,
- "colour": {
- "file": "card-1-t11-colour.webp",
- "bytes": 688
- },
- "geometry": {
- "file": "card-1-t11-geometry.webp",
- "bytes": 660
- }
- },
- {
- "top": 409,
- "h": 191,
- "distance_m": 18737.1328125,
- "colour": {
- "file": "card-2-t11-colour.webp",
- "bytes": 528
- },
- "geometry": {
- "file": "card-2-t11-geometry.webp",
- "bytes": 1636
- }
- },
- {
- "top": 412,
- "h": 188,
- "distance_m": 27481.455078125,
- "colour": {
- "file": "card-3-t11-colour.webp",
- "bytes": 724
- },
- "geometry": {
- "file": "card-3-t11-geometry.webp",
- "bytes": 1352
- }
- }
- ],
- [
- {
- "top": 82,
- "h": 518,
- "distance_m": 727.6077880859375,
- "colour": {
- "file": "card-0-t12-colour.webp",
- "bytes": 1272
- },
- "geometry": {
- "file": "card-0-t12-geometry.webp",
- "bytes": 11624
- }
- },
- {
- "top": 367,
- "h": 233,
- "distance_m": 11896.4462890625,
- "colour": {
- "file": "card-1-t12-colour.webp",
- "bytes": 428
- },
- "geometry": {
- "file": "card-1-t12-geometry.webp",
- "bytes": 72
- }
- },
- {
- "top": 403,
- "h": 197,
- "distance_m": 23856.0,
- "colour": {
- "file": "card-2-t12-colour.webp",
- "bytes": 450
- },
- "geometry": {
- "file": "card-2-t12-geometry.webp",
- "bytes": 386
- }
- },
- {
- "top": 412,
- "h": 188,
- "distance_m": 26966.732421875,
- "colour": {
- "file": "card-3-t12-colour.webp",
- "bytes": 446
- },
- "geometry": {
- "file": "card-3-t12-geometry.webp",
- "bytes": 146
- }
- }
- ],
- [
- {
- "top": 67,
- "h": 533,
- "distance_m": 774.0208740234375,
- "colour": {
- "file": "card-0-t13-colour.webp",
- "bytes": 1234
- },
- "geometry": {
- "file": "card-0-t13-geometry.webp",
- "bytes": 13684
- }
- },
- {
- "top": 368,
- "h": 232,
- "distance_m": 11896.4462890625,
- "colour": {
- "file": "card-1-t13-colour.webp",
- "bytes": 672
- },
- "geometry": {
- "file": "card-1-t13-geometry.webp",
- "bytes": 84
- }
- },
- {
- "top": 402,
- "h": 198,
- "distance_m": 20803.544921875,
- "colour": {
- "file": "card-2-t13-colour.webp",
- "bytes": 408
- },
- "geometry": {
- "file": "card-2-t13-geometry.webp",
- "bytes": 468
- }
- },
- {
- "top": 414,
- "h": 186,
- "distance_m": 26966.732421875,
- "colour": {
- "file": "card-3-t13-colour.webp",
- "bytes": 396
- },
- "geometry": {
- "file": "card-3-t13-geometry.webp",
- "bytes": 76
- }
- }
- ],
- [
- {
- "top": 81,
- "h": 519,
- "distance_m": 713.8606567382812,
- "colour": {
- "file": "card-0-t14-colour.webp",
- "bytes": 1300
- },
- "geometry": {
- "file": "card-0-t14-geometry.webp",
- "bytes": 18872
- }
- },
- {
- "top": 369,
- "h": 231,
- "distance_m": 11896.4462890625,
- "colour": {
- "file": "card-1-t14-colour.webp",
- "bytes": 414
- },
- "geometry": {
- "file": "card-1-t14-geometry.webp",
- "bytes": 76
- }
- },
- {
- "top": 399,
- "h": 201,
- "distance_m": 20683.802734375,
- "colour": {
- "file": "card-2-t14-colour.webp",
- "bytes": 514
- },
- "geometry": {
- "file": "card-2-t14-geometry.webp",
- "bytes": 892
- }
- },
- {
- "top": 414,
- "h": 186,
- "distance_m": 26966.732421875,
- "colour": {
- "file": "card-3-t14-colour.webp",
- "bytes": 216
- },
- "geometry": {
- "file": "card-3-t14-geometry.webp",
- "bytes": 48
- }
- }
- ],
- [
- {
- "top": 117,
- "h": 483,
- "distance_m": 699.9999389648438,
- "colour": {
- "file": "card-0-t15-colour.webp",
- "bytes": 1420
- },
- "geometry": {
- "file": "card-0-t15-geometry.webp",
- "bytes": 17850
- }
- },
- {
- "top": 369,
- "h": 231,
- "distance_m": 11896.4462890625,
- "colour": {
- "file": "card-1-t15-colour.webp",
- "bytes": 522
- },
- "geometry": {
- "file": "card-1-t15-geometry.webp",
- "bytes": 50
- }
- },
- {
- "top": 397,
- "h": 203,
- "distance_m": 20034.69921875,
- "colour": {
- "file": "card-2-t15-colour.webp",
- "bytes": 490
- },
- "geometry": {
- "file": "card-2-t15-geometry.webp",
- "bytes": 1432
- }
- },
- {
- "top": 414,
- "h": 186,
- "distance_m": 26966.732421875,
- "colour": {
- "file": "card-3-t15-colour.webp",
- "bytes": 206
- },
- "geometry": {
- "file": "card-3-t15-geometry.webp",
- "bytes": 48
- }
- }
- ],
- [
- {
- "top": 228,
- "h": 372,
- "distance_m": 902.6199951171875,
- "colour": {
- "file": "card-0-t16-colour.webp",
- "bytes": 1294
- },
- "geometry": {
- "file": "card-0-t16-geometry.webp",
- "bytes": 15780
- }
- },
- {
- "top": 366,
- "h": 234,
- "distance_m": 11896.4462890625,
- "colour": {
- "file": "card-1-t16-colour.webp",
- "bytes": 486
- },
- "geometry": {
- "file": "card-1-t16-geometry.webp",
- "bytes": 68
- }
- },
- {
- "top": 393,
- "h": 207,
- "distance_m": 19963.576171875,
- "colour": {
- "file": "card-2-t16-colour.webp",
- "bytes": 550
- },
- "geometry": {
- "file": "card-2-t16-geometry.webp",
- "bytes": 1096
- }
- },
- {
- "top": 415,
- "h": 185,
- "distance_m": 26966.732421875,
- "colour": {
- "file": "card-3-t16-colour.webp",
- "bytes": 360
- },
- "geometry": {
- "file": "card-3-t16-geometry.webp",
- "bytes": 48
- }
- }
- ],
- [
- {
- "top": 273,
- "h": 327,
- "distance_m": 4008.74755859375,
- "colour": {
- "file": "card-0-t17-colour.webp",
- "bytes": 1174
- },
- "geometry": {
- "file": "card-0-t17-geometry.webp",
- "bytes": 18432
- }
- },
- {
- "top": 363,
- "h": 237,
- "distance_m": 11896.4462890625,
- "colour": {
- "file": "card-1-t17-colour.webp",
- "bytes": 282
- },
- "geometry": {
- "file": "card-1-t17-geometry.webp",
- "bytes": 72
- }
- },
- {
- "top": 387,
- "h": 213,
- "distance_m": 18090.78125,
- "colour": {
- "file": "card-2-t17-colour.webp",
- "bytes": 386
- },
- "geometry": {
- "file": "card-2-t17-geometry.webp",
- "bytes": 282
- }
- },
- {
- "top": 414,
- "h": 186,
- "distance_m": 26966.732421875,
- "colour": {
- "file": "card-3-t17-colour.webp",
- "bytes": 212
- },
- "geometry": {
- "file": "card-3-t17-geometry.webp",
- "bytes": 48
- }
- }
- ],
- [
- {
- "top": 300,
- "h": 300,
- "distance_m": 540.0000610351562,
- "colour": {
- "file": "card-0-t18-colour.webp",
- "bytes": 716
- },
- "geometry": {
- "file": "card-0-t18-geometry.webp",
- "bytes": 13732
- }
- },
- {
- "top": 362,
- "h": 238,
- "distance_m": 11896.4462890625,
- "colour": {
- "file": "card-1-t18-colour.webp",
- "bytes": 304
- },
- "geometry": {
- "file": "card-1-t18-geometry.webp",
- "bytes": 62
- }
- },
- {
- "top": 386,
- "h": 214,
- "distance_m": 17946.91796875,
- "colour": {
- "file": "card-2-t18-colour.webp",
- "bytes": 244
- },
- "geometry": {
- "file": "card-2-t18-geometry.webp",
- "bytes": 58
- }
- },
- {
- "top": 414,
- "h": 186,
- "distance_m": 26966.732421875,
- "colour": {
- "file": "card-3-t18-colour.webp",
- "bytes": 212
- },
- "geometry": {
- "file": "card-3-t18-geometry.webp",
- "bytes": 48
- }
- }
- ],
- [
- {
- "top": 324,
- "h": 276,
- "distance_m": 533.6065673828125,
- "colour": {
- "file": "card-0-t19-colour.webp",
- "bytes": 632
- },
- "geometry": {
- "file": "card-0-t19-geometry.webp",
- "bytes": 8752
- }
- },
- {
- "top": 362,
- "h": 238,
- "distance_m": 13381.708984375,
- "colour": {
- "file": "card-1-t19-colour.webp",
- "bytes": 958
- },
- "geometry": {
- "file": "card-1-t19-geometry.webp",
- "bytes": 2906
- }
- },
- {
- "top": 387,
- "h": 213,
- "distance_m": 17946.91796875,
- "colour": {
- "file": "card-2-t19-colour.webp",
- "bytes": 222
- },
- "geometry": {
- "file": "card-2-t19-geometry.webp",
- "bytes": 48
- }
- },
- {
- "top": 414,
- "h": 186,
- "distance_m": 26966.732421875,
- "colour": {
- "file": "card-3-t19-colour.webp",
- "bytes": 250
- },
- "geometry": {
- "file": "card-3-t19-geometry.webp",
- "bytes": 48
- }
- }
- ],
- [
- {
- "top": 349,
- "h": 251,
- "distance_m": 528.2322387695312,
- "colour": {
- "file": "card-0-t20-colour.webp",
- "bytes": 588
- },
- "geometry": {
- "file": "card-0-t20-geometry.webp",
- "bytes": 5564
- }
- },
- {
- "top": 375,
- "h": 225,
- "distance_m": 13652.9033203125,
- "colour": {
- "file": "card-1-t20-colour.webp",
- "bytes": 1170
- },
- "geometry": {
- "file": "card-1-t20-geometry.webp",
- "bytes": 12072
- }
- },
- {
- "top": 387,
- "h": 213,
- "distance_m": 17946.91796875,
- "colour": {
- "file": "card-2-t20-colour.webp",
- "bytes": 242
- },
- "geometry": {
- "file": "card-2-t20-geometry.webp",
- "bytes": 92
- }
- },
- {
- "top": 415,
- "h": 185,
- "distance_m": 26966.732421875,
- "colour": {
- "file": "card-3-t20-colour.webp",
- "bytes": 590
- },
- "geometry": {
- "file": "card-3-t20-geometry.webp",
- "bytes": 48
- }
- }
- ],
- [
- {
- "top": 362,
- "h": 238,
- "distance_m": 548.2117919921875,
- "colour": {
- "file": "card-0-t21-colour.webp",
- "bytes": 718
- },
- "geometry": {
- "file": "card-0-t21-geometry.webp",
- "bytes": 6532
- }
- },
- {
- "top": 380,
- "h": 220,
- "distance_m": 14602.0859375,
- "colour": {
- "file": "card-1-t21-colour.webp",
- "bytes": 2110
- },
- "geometry": {
- "file": "card-1-t21-geometry.webp",
- "bytes": 10528
- }
- },
- {
- "top": 388,
- "h": 212,
- "distance_m": 18265.353515625,
- "colour": {
- "file": "card-2-t21-colour.webp",
- "bytes": 776
- },
- "geometry": {
- "file": "card-2-t21-geometry.webp",
- "bytes": 4600
- }
- },
- {
- "top": 416,
- "h": 184,
- "distance_m": 26966.732421875,
- "colour": {
- "file": "card-3-t21-colour.webp",
- "bytes": 374
- },
- "geometry": {
- "file": "card-3-t21-geometry.webp",
- "bytes": 48
- }
- }
- ],
- [
- {
- "top": 352,
- "h": 248,
- "distance_m": 573.6212158203125,
- "colour": {
- "file": "card-0-t22-colour.webp",
- "bytes": 1126
- },
- "geometry": {
- "file": "card-0-t22-geometry.webp",
- "bytes": 13124
- }
- },
- {
- "top": 391,
- "h": 209,
- "distance_m": 16038.8134765625,
- "colour": {
- "file": "card-1-t22-colour.webp",
- "bytes": 2864
- },
- "geometry": {
- "file": "card-1-t22-geometry.webp",
- "bytes": 12814
- }
- },
- {
- "top": 391,
- "h": 209,
- "distance_m": 18698.236328125,
- "colour": {
- "file": "card-2-t22-colour.webp",
- "bytes": 994
- },
- "geometry": {
- "file": "card-2-t22-geometry.webp",
- "bytes": 7916
- }
- },
- {
- "top": 415,
- "h": 185,
- "distance_m": 26966.732421875,
- "colour": {
- "file": "card-3-t22-colour.webp",
- "bytes": 570
- },
- "geometry": {
- "file": "card-3-t22-geometry.webp",
- "bytes": 58
- }
- }
- ],
- [
- {
- "top": 308,
- "h": 292,
- "distance_m": 4001.017333984375,
- "colour": {
- "file": "card-0-t23-colour.webp",
- "bytes": 1436
- },
- "geometry": {
- "file": "card-0-t23-geometry.webp",
- "bytes": 24328
- }
- },
- {
- "top": 395,
- "h": 205,
- "distance_m": 13116.75390625,
- "colour": {
- "file": "card-1-t23-colour.webp",
- "bytes": 1740
- },
- "geometry": {
- "file": "card-1-t23-geometry.webp",
- "bytes": 8016
- }
- },
- {
- "top": 395,
- "h": 205,
- "distance_m": 19894.794921875,
- "colour": {
- "file": "card-2-t23-colour.webp",
- "bytes": 1066
- },
- "geometry": {
- "file": "card-2-t23-geometry.webp",
- "bytes": 5726
- }
- },
- {
- "top": 413,
- "h": 187,
- "distance_m": 28205.7734375,
- "colour": {
- "file": "card-3-t23-colour.webp",
- "bytes": 610
- },
- "geometry": {
- "file": "card-3-t23-geometry.webp",
- "bytes": 194
- }
- }
- ],
- [
- {
- "top": 293,
- "h": 307,
- "distance_m": 2579.48681640625,
- "colour": {
- "file": "card-0-t24-colour.webp",
- "bytes": 1744
- },
- "geometry": {
- "file": "card-0-t24-geometry.webp",
- "bytes": 32102
- }
- },
- {
- "top": 374,
- "h": 226,
- "distance_m": 12125.716796875,
- "colour": {
- "file": "card-1-t24-colour.webp",
- "bytes": 970
- },
- "geometry": {
- "file": "card-1-t24-geometry.webp",
- "bytes": 3954
- }
- },
- {
- "top": 420,
- "h": 180,
- "distance_m": 19130.62890625,
- "colour": {
- "file": "card-2-t24-colour.webp",
- "bytes": 822
- },
- "geometry": {
- "file": "card-2-t24-geometry.webp",
- "bytes": 2584
- }
- },
- {
- "top": 425,
- "h": 175,
- "distance_m": 28424.0390625,
- "colour": {
- "file": "card-3-t24-colour.webp",
- "bytes": 788
- },
- "geometry": {
- "file": "card-3-t24-geometry.webp",
- "bytes": 3666
- }
- }
- ],
- [
- {
- "top": 322,
- "h": 278,
- "distance_m": 1288.96923828125,
- "colour": {
- "file": "card-0-t25-colour.webp",
- "bytes": 1714
- },
- "geometry": {
- "file": "card-0-t25-geometry.webp",
- "bytes": 32830
- }
- },
- {
- "top": 386,
- "h": 214,
- "distance_m": 13197.5732421875,
- "colour": {
- "file": "card-1-t25-colour.webp",
- "bytes": 1190
- },
- "geometry": {
- "file": "card-1-t25-geometry.webp",
- "bytes": 6308
- }
- },
- {
- "top": 404,
- "h": 196,
- "distance_m": 22927.611328125,
- "colour": {
- "file": "card-2-t25-colour.webp",
- "bytes": 1144
- },
- "geometry": {
- "file": "card-2-t25-geometry.webp",
- "bytes": 1844
- }
- },
- {
- "top": 409,
- "h": 191,
- "distance_m": 28034.6015625,
- "colour": {
- "file": "card-3-t25-colour.webp",
- "bytes": 1058
- },
- "geometry": {
- "file": "card-3-t25-geometry.webp",
- "bytes": 4570
- }
- }
- ],
- [
- {
- "top": 313,
- "h": 287,
- "distance_m": 1936.9310302734375,
- "colour": {
- "file": "card-0-t26-colour.webp",
- "bytes": 1708
- },
- "geometry": {
- "file": "card-0-t26-geometry.webp",
- "bytes": 33300
- }
- },
- {
- "top": 341,
- "h": 259,
- "distance_m": 12153.501953125,
- "colour": {
- "file": "card-1-t26-colour.webp",
- "bytes": 808
- },
- "geometry": {
- "file": "card-1-t26-geometry.webp",
- "bytes": 2644
- }
- },
- {
- "top": 386,
- "h": 214,
- "distance_m": 21626.201171875,
- "colour": {
- "file": "card-2-t26-colour.webp",
- "bytes": 1238
- },
- "geometry": {
- "file": "card-2-t26-geometry.webp",
- "bytes": 4116
- }
- },
- {
- "top": 403,
- "h": 197,
- "distance_m": 27097.666015625,
- "colour": {
- "file": "card-3-t26-colour.webp",
- "bytes": 432
- },
- "geometry": {
- "file": "card-3-t26-geometry.webp",
- "bytes": 184
- }
- }
- ],
- [
- {
- "top": 313,
- "h": 287,
- "distance_m": 1789.509033203125,
- "colour": {
- "file": "card-0-t27-colour.webp",
- "bytes": 1118
- },
- "geometry": {
- "file": "card-0-t27-geometry.webp",
- "bytes": 29232
- }
- },
- {
- "top": 339,
- "h": 261,
- "distance_m": 11896.4462890625,
- "colour": {
- "file": "card-1-t27-colour.webp",
- "bytes": 302
- },
- "geometry": {
- "file": "card-1-t27-geometry.webp",
- "bytes": 136
- }
- },
- {
- "top": 375,
- "h": 225,
- "distance_m": 22704.583984375,
- "colour": {
- "file": "card-2-t27-colour.webp",
- "bytes": 916
- },
- "geometry": {
- "file": "card-2-t27-geometry.webp",
- "bytes": 1298
- }
- },
- {
- "top": 398,
- "h": 202,
- "distance_m": 26966.732421875,
- "colour": {
- "file": "card-3-t27-colour.webp",
- "bytes": 278
- },
- "geometry": {
- "file": "card-3-t27-geometry.webp",
- "bytes": 152
- }
- }
- ],
- [
- {
- "top": 286,
- "h": 314,
- "distance_m": 1824.2069091796875,
- "colour": {
- "file": "card-0-t28-colour.webp",
- "bytes": 1422
- },
- "geometry": {
- "file": "card-0-t28-geometry.webp",
- "bytes": 32734
- }
- },
- {
- "top": 338,
- "h": 262,
- "distance_m": 12100.0244140625,
- "colour": {
- "file": "card-1-t28-colour.webp",
- "bytes": 678
- },
- "geometry": {
- "file": "card-1-t28-geometry.webp",
- "bytes": 2906
- }
- },
- {
- "top": 372,
- "h": 228,
- "distance_m": 17946.91796875,
- "colour": {
- "file": "card-2-t28-colour.webp",
- "bytes": 278
- },
- "geometry": {
- "file": "card-2-t28-geometry.webp",
- "bytes": 126
- }
- },
- {
- "top": 395,
- "h": 205,
- "distance_m": 27400.80078125,
- "colour": {
- "file": "card-3-t28-colour.webp",
- "bytes": 292
- },
- "geometry": {
- "file": "card-3-t28-geometry.webp",
- "bytes": 232
- }
- }
- ],
- [
- {
- "top": 259,
- "h": 341,
- "distance_m": 1952.825439453125,
- "colour": {
- "file": "card-0-t29-colour.webp",
- "bytes": 1474
- },
- "geometry": {
- "file": "card-0-t29-geometry.webp",
- "bytes": 35160
- }
- },
- {
- "top": 341,
- "h": 259,
- "distance_m": 12648.30078125,
- "colour": {
- "file": "card-1-t29-colour.webp",
- "bytes": 1260
- },
- "geometry": {
- "file": "card-1-t29-geometry.webp",
- "bytes": 8392
- }
- },
- {
- "top": 372,
- "h": 228,
- "distance_m": 18018.396484375,
- "colour": {
- "file": "card-2-t29-colour.webp",
- "bytes": 640
- },
- "geometry": {
- "file": "card-2-t29-geometry.webp",
- "bytes": 630
- }
- },
- {
- "top": 395,
- "h": 205,
- "distance_m": 27240.720703125,
- "colour": {
- "file": "card-3-t29-colour.webp",
- "bytes": 414
- },
- "geometry": {
- "file": "card-3-t29-geometry.webp",
- "bytes": 1446
- }
- }
- ],
- [
- {
- "top": 293,
- "h": 307,
- "distance_m": 1380.0001220703125,
- "colour": {
- "file": "card-0-t30-colour.webp",
- "bytes": 1314
- },
- "geometry": {
- "file": "card-0-t30-geometry.webp",
- "bytes": 28478
- }
- },
- {
- "top": 358,
- "h": 242,
- "distance_m": 12885.2138671875,
- "colour": {
- "file": "card-1-t30-colour.webp",
- "bytes": 1170
- },
- "geometry": {
- "file": "card-1-t30-geometry.webp",
- "bytes": 7834
- }
- },
- {
- "top": 392,
- "h": 208,
- "distance_m": 18018.70703125,
- "colour": {
- "file": "card-2-t30-colour.webp",
- "bytes": 914
- },
- "geometry": {
- "file": "card-2-t30-geometry.webp",
- "bytes": 1218
- }
- },
- {
- "top": 400,
- "h": 200,
- "distance_m": 27202.21875,
- "colour": {
- "file": "card-3-t30-colour.webp",
- "bytes": 850
- },
- "geometry": {
- "file": "card-3-t30-geometry.webp",
- "bytes": 1606
- }
- }
- ],
- [
- {
- "top": 299,
- "h": 301,
- "distance_m": 1280.1490478515625,
- "colour": {
- "file": "card-0-t31-colour.webp",
- "bytes": 1124
- },
- "geometry": {
- "file": "card-0-t31-geometry.webp",
- "bytes": 24824
- }
- },
- {
- "top": 376,
- "h": 224,
- "distance_m": 12544.7021484375,
- "colour": {
- "file": "card-1-t31-colour.webp",
- "bytes": 1176
- },
- "geometry": {
- "file": "card-1-t31-geometry.webp",
- "bytes": 7268
- }
- },
- {
- "top": 410,
- "h": 190,
- "distance_m": 20441.794921875,
- "colour": {
- "file": "card-2-t31-colour.webp",
- "bytes": 1130
- },
- "geometry": {
- "file": "card-2-t31-geometry.webp",
- "bytes": 5750
- }
- },
- {
- "top": 411,
- "h": 189,
- "distance_m": 27730.93359375,
- "colour": {
- "file": "card-3-t31-colour.webp",
- "bytes": 818
- },
- "geometry": {
- "file": "card-3-t31-geometry.webp",
- "bytes": 1224
- }
- }
- ]
- ],
- "bytes": 889956,
- "attribution": {
- "credit_line": "Contains modified Copernicus data: DEM \u00a9 DLR e.V. 2010-2014 and \u00a9 Airbus Defence and Space GmbH 2014-2018 provided under COPERNICUS by the European Union and ESA; all rights reserved.",
- "licence": "Copernicus DEM licence: free, full and open access, with the credit line shown",
- "dem_source": "Copernicus DEM GLO-30 (30 m)",
- "url": "https://spacedata.copernicus.eu/collections/copernicus-digital-elevation-model"
- }
-}
diff --git a/public/ridge/index.json b/public/ridge/index.json
deleted file mode 100644
index 1b522087..00000000
--- a/public/ridge/index.json
+++ /dev/null
@@ -1,11 +0,0 @@
-{
- "schema": 1,
- "default": "vienna",
- "places": {
- "vienna": "vienna-f50ec31ee950",
- "fuji": "fuji-8dac36611b90",
- "matterhorn": "matterhorn-f4fa1ba3556c",
- "amadablam": "amadablam-fb4b9d3701f8",
- "grandcanyon": "grandcanyon-dcfa7cc15fdd"
- }
-}
diff --git a/public/ridge/matterhorn-f4fa1ba3556c/card-0-t00-colour.webp b/public/ridge/matterhorn-f4fa1ba3556c/card-0-t00-colour.webp
deleted file mode 100644
index c173391d..00000000
Binary files a/public/ridge/matterhorn-f4fa1ba3556c/card-0-t00-colour.webp and /dev/null differ
diff --git a/public/ridge/matterhorn-f4fa1ba3556c/card-0-t00-geometry.webp b/public/ridge/matterhorn-f4fa1ba3556c/card-0-t00-geometry.webp
deleted file mode 100644
index b307fd19..00000000
Binary files a/public/ridge/matterhorn-f4fa1ba3556c/card-0-t00-geometry.webp and /dev/null differ
diff --git a/public/ridge/matterhorn-f4fa1ba3556c/card-0-t01-colour.webp b/public/ridge/matterhorn-f4fa1ba3556c/card-0-t01-colour.webp
deleted file mode 100644
index 4feed37d..00000000
Binary files a/public/ridge/matterhorn-f4fa1ba3556c/card-0-t01-colour.webp and /dev/null differ
diff --git a/public/ridge/matterhorn-f4fa1ba3556c/card-0-t01-geometry.webp b/public/ridge/matterhorn-f4fa1ba3556c/card-0-t01-geometry.webp
deleted file mode 100644
index b8753439..00000000
Binary files a/public/ridge/matterhorn-f4fa1ba3556c/card-0-t01-geometry.webp and /dev/null differ
diff --git a/public/ridge/matterhorn-f4fa1ba3556c/card-0-t02-colour.webp b/public/ridge/matterhorn-f4fa1ba3556c/card-0-t02-colour.webp
deleted file mode 100644
index a7694a1f..00000000
Binary files a/public/ridge/matterhorn-f4fa1ba3556c/card-0-t02-colour.webp and /dev/null differ
diff --git a/public/ridge/matterhorn-f4fa1ba3556c/card-0-t02-geometry.webp b/public/ridge/matterhorn-f4fa1ba3556c/card-0-t02-geometry.webp
deleted file mode 100644
index 14e07e74..00000000
Binary files a/public/ridge/matterhorn-f4fa1ba3556c/card-0-t02-geometry.webp and /dev/null differ
diff --git a/public/ridge/matterhorn-f4fa1ba3556c/card-0-t03-colour.webp b/public/ridge/matterhorn-f4fa1ba3556c/card-0-t03-colour.webp
deleted file mode 100644
index e960d331..00000000
Binary files a/public/ridge/matterhorn-f4fa1ba3556c/card-0-t03-colour.webp and /dev/null differ
diff --git a/public/ridge/matterhorn-f4fa1ba3556c/card-0-t03-geometry.webp b/public/ridge/matterhorn-f4fa1ba3556c/card-0-t03-geometry.webp
deleted file mode 100644
index 6b65138f..00000000
Binary files a/public/ridge/matterhorn-f4fa1ba3556c/card-0-t03-geometry.webp and /dev/null differ
diff --git a/public/ridge/matterhorn-f4fa1ba3556c/card-0-t04-colour.webp b/public/ridge/matterhorn-f4fa1ba3556c/card-0-t04-colour.webp
deleted file mode 100644
index bad5a964..00000000
Binary files a/public/ridge/matterhorn-f4fa1ba3556c/card-0-t04-colour.webp and /dev/null differ
diff --git a/public/ridge/matterhorn-f4fa1ba3556c/card-0-t04-geometry.webp b/public/ridge/matterhorn-f4fa1ba3556c/card-0-t04-geometry.webp
deleted file mode 100644
index 1b523f03..00000000
Binary files a/public/ridge/matterhorn-f4fa1ba3556c/card-0-t04-geometry.webp and /dev/null differ
diff --git a/public/ridge/matterhorn-f4fa1ba3556c/card-0-t05-colour.webp b/public/ridge/matterhorn-f4fa1ba3556c/card-0-t05-colour.webp
deleted file mode 100644
index 2e0876cb..00000000
Binary files a/public/ridge/matterhorn-f4fa1ba3556c/card-0-t05-colour.webp and /dev/null differ
diff --git a/public/ridge/matterhorn-f4fa1ba3556c/card-0-t05-geometry.webp b/public/ridge/matterhorn-f4fa1ba3556c/card-0-t05-geometry.webp
deleted file mode 100644
index 781a5fa7..00000000
Binary files a/public/ridge/matterhorn-f4fa1ba3556c/card-0-t05-geometry.webp and /dev/null differ
diff --git a/public/ridge/matterhorn-f4fa1ba3556c/card-0-t06-colour.webp b/public/ridge/matterhorn-f4fa1ba3556c/card-0-t06-colour.webp
deleted file mode 100644
index f37725fc..00000000
Binary files a/public/ridge/matterhorn-f4fa1ba3556c/card-0-t06-colour.webp and /dev/null differ
diff --git a/public/ridge/matterhorn-f4fa1ba3556c/card-0-t06-geometry.webp b/public/ridge/matterhorn-f4fa1ba3556c/card-0-t06-geometry.webp
deleted file mode 100644
index 51bda1e0..00000000
Binary files a/public/ridge/matterhorn-f4fa1ba3556c/card-0-t06-geometry.webp and /dev/null differ
diff --git a/public/ridge/matterhorn-f4fa1ba3556c/card-0-t07-colour.webp b/public/ridge/matterhorn-f4fa1ba3556c/card-0-t07-colour.webp
deleted file mode 100644
index af1a77f9..00000000
Binary files a/public/ridge/matterhorn-f4fa1ba3556c/card-0-t07-colour.webp and /dev/null differ
diff --git a/public/ridge/matterhorn-f4fa1ba3556c/card-0-t07-geometry.webp b/public/ridge/matterhorn-f4fa1ba3556c/card-0-t07-geometry.webp
deleted file mode 100644
index 5777463e..00000000
Binary files a/public/ridge/matterhorn-f4fa1ba3556c/card-0-t07-geometry.webp and /dev/null differ
diff --git a/public/ridge/matterhorn-f4fa1ba3556c/card-0-t08-colour.webp b/public/ridge/matterhorn-f4fa1ba3556c/card-0-t08-colour.webp
deleted file mode 100644
index 037aa415..00000000
Binary files a/public/ridge/matterhorn-f4fa1ba3556c/card-0-t08-colour.webp and /dev/null differ
diff --git a/public/ridge/matterhorn-f4fa1ba3556c/card-0-t08-geometry.webp b/public/ridge/matterhorn-f4fa1ba3556c/card-0-t08-geometry.webp
deleted file mode 100644
index 760b2f51..00000000
Binary files a/public/ridge/matterhorn-f4fa1ba3556c/card-0-t08-geometry.webp and /dev/null differ
diff --git a/public/ridge/matterhorn-f4fa1ba3556c/card-0-t09-colour.webp b/public/ridge/matterhorn-f4fa1ba3556c/card-0-t09-colour.webp
deleted file mode 100644
index ea1f3551..00000000
Binary files a/public/ridge/matterhorn-f4fa1ba3556c/card-0-t09-colour.webp and /dev/null differ
diff --git a/public/ridge/matterhorn-f4fa1ba3556c/card-0-t09-geometry.webp b/public/ridge/matterhorn-f4fa1ba3556c/card-0-t09-geometry.webp
deleted file mode 100644
index 1e79ac7d..00000000
Binary files a/public/ridge/matterhorn-f4fa1ba3556c/card-0-t09-geometry.webp and /dev/null differ
diff --git a/public/ridge/matterhorn-f4fa1ba3556c/card-0-t10-colour.webp b/public/ridge/matterhorn-f4fa1ba3556c/card-0-t10-colour.webp
deleted file mode 100644
index d9774521..00000000
Binary files a/public/ridge/matterhorn-f4fa1ba3556c/card-0-t10-colour.webp and /dev/null differ
diff --git a/public/ridge/matterhorn-f4fa1ba3556c/card-0-t10-geometry.webp b/public/ridge/matterhorn-f4fa1ba3556c/card-0-t10-geometry.webp
deleted file mode 100644
index d706dafe..00000000
Binary files a/public/ridge/matterhorn-f4fa1ba3556c/card-0-t10-geometry.webp and /dev/null differ
diff --git a/public/ridge/matterhorn-f4fa1ba3556c/card-0-t11-colour.webp b/public/ridge/matterhorn-f4fa1ba3556c/card-0-t11-colour.webp
deleted file mode 100644
index 90e94574..00000000
Binary files a/public/ridge/matterhorn-f4fa1ba3556c/card-0-t11-colour.webp and /dev/null differ
diff --git a/public/ridge/matterhorn-f4fa1ba3556c/card-0-t11-geometry.webp b/public/ridge/matterhorn-f4fa1ba3556c/card-0-t11-geometry.webp
deleted file mode 100644
index 1722bfdb..00000000
Binary files a/public/ridge/matterhorn-f4fa1ba3556c/card-0-t11-geometry.webp and /dev/null differ
diff --git a/public/ridge/matterhorn-f4fa1ba3556c/card-0-t12-colour.webp b/public/ridge/matterhorn-f4fa1ba3556c/card-0-t12-colour.webp
deleted file mode 100644
index cea24ecd..00000000
Binary files a/public/ridge/matterhorn-f4fa1ba3556c/card-0-t12-colour.webp and /dev/null differ
diff --git a/public/ridge/matterhorn-f4fa1ba3556c/card-0-t12-geometry.webp b/public/ridge/matterhorn-f4fa1ba3556c/card-0-t12-geometry.webp
deleted file mode 100644
index 8e081495..00000000
Binary files a/public/ridge/matterhorn-f4fa1ba3556c/card-0-t12-geometry.webp and /dev/null differ
diff --git a/public/ridge/matterhorn-f4fa1ba3556c/card-0-t13-colour.webp b/public/ridge/matterhorn-f4fa1ba3556c/card-0-t13-colour.webp
deleted file mode 100644
index 7de285bc..00000000
Binary files a/public/ridge/matterhorn-f4fa1ba3556c/card-0-t13-colour.webp and /dev/null differ
diff --git a/public/ridge/matterhorn-f4fa1ba3556c/card-0-t13-geometry.webp b/public/ridge/matterhorn-f4fa1ba3556c/card-0-t13-geometry.webp
deleted file mode 100644
index 2f69d037..00000000
Binary files a/public/ridge/matterhorn-f4fa1ba3556c/card-0-t13-geometry.webp and /dev/null differ
diff --git a/public/ridge/matterhorn-f4fa1ba3556c/card-0-t14-colour.webp b/public/ridge/matterhorn-f4fa1ba3556c/card-0-t14-colour.webp
deleted file mode 100644
index a605c3e4..00000000
Binary files a/public/ridge/matterhorn-f4fa1ba3556c/card-0-t14-colour.webp and /dev/null differ
diff --git a/public/ridge/matterhorn-f4fa1ba3556c/card-0-t14-geometry.webp b/public/ridge/matterhorn-f4fa1ba3556c/card-0-t14-geometry.webp
deleted file mode 100644
index b74195e9..00000000
Binary files a/public/ridge/matterhorn-f4fa1ba3556c/card-0-t14-geometry.webp and /dev/null differ
diff --git a/public/ridge/matterhorn-f4fa1ba3556c/card-0-t15-colour.webp b/public/ridge/matterhorn-f4fa1ba3556c/card-0-t15-colour.webp
deleted file mode 100644
index c746c2c3..00000000
Binary files a/public/ridge/matterhorn-f4fa1ba3556c/card-0-t15-colour.webp and /dev/null differ
diff --git a/public/ridge/matterhorn-f4fa1ba3556c/card-0-t15-geometry.webp b/public/ridge/matterhorn-f4fa1ba3556c/card-0-t15-geometry.webp
deleted file mode 100644
index 2fbfb850..00000000
Binary files a/public/ridge/matterhorn-f4fa1ba3556c/card-0-t15-geometry.webp and /dev/null differ
diff --git a/public/ridge/matterhorn-f4fa1ba3556c/card-0-t16-colour.webp b/public/ridge/matterhorn-f4fa1ba3556c/card-0-t16-colour.webp
deleted file mode 100644
index 5b49d603..00000000
Binary files a/public/ridge/matterhorn-f4fa1ba3556c/card-0-t16-colour.webp and /dev/null differ
diff --git a/public/ridge/matterhorn-f4fa1ba3556c/card-0-t16-geometry.webp b/public/ridge/matterhorn-f4fa1ba3556c/card-0-t16-geometry.webp
deleted file mode 100644
index 47fc0546..00000000
Binary files a/public/ridge/matterhorn-f4fa1ba3556c/card-0-t16-geometry.webp and /dev/null differ
diff --git a/public/ridge/matterhorn-f4fa1ba3556c/card-0-t17-colour.webp b/public/ridge/matterhorn-f4fa1ba3556c/card-0-t17-colour.webp
deleted file mode 100644
index 14304969..00000000
Binary files a/public/ridge/matterhorn-f4fa1ba3556c/card-0-t17-colour.webp and /dev/null differ
diff --git a/public/ridge/matterhorn-f4fa1ba3556c/card-0-t17-geometry.webp b/public/ridge/matterhorn-f4fa1ba3556c/card-0-t17-geometry.webp
deleted file mode 100644
index 78374333..00000000
Binary files a/public/ridge/matterhorn-f4fa1ba3556c/card-0-t17-geometry.webp and /dev/null differ
diff --git a/public/ridge/matterhorn-f4fa1ba3556c/card-0-t18-colour.webp b/public/ridge/matterhorn-f4fa1ba3556c/card-0-t18-colour.webp
deleted file mode 100644
index baa9015c..00000000
Binary files a/public/ridge/matterhorn-f4fa1ba3556c/card-0-t18-colour.webp and /dev/null differ
diff --git a/public/ridge/matterhorn-f4fa1ba3556c/card-0-t18-geometry.webp b/public/ridge/matterhorn-f4fa1ba3556c/card-0-t18-geometry.webp
deleted file mode 100644
index 29815f06..00000000
Binary files a/public/ridge/matterhorn-f4fa1ba3556c/card-0-t18-geometry.webp and /dev/null differ
diff --git a/public/ridge/matterhorn-f4fa1ba3556c/card-0-t19-colour.webp b/public/ridge/matterhorn-f4fa1ba3556c/card-0-t19-colour.webp
deleted file mode 100644
index 1d47b113..00000000
Binary files a/public/ridge/matterhorn-f4fa1ba3556c/card-0-t19-colour.webp and /dev/null differ
diff --git a/public/ridge/matterhorn-f4fa1ba3556c/card-0-t19-geometry.webp b/public/ridge/matterhorn-f4fa1ba3556c/card-0-t19-geometry.webp
deleted file mode 100644
index a04c07db..00000000
Binary files a/public/ridge/matterhorn-f4fa1ba3556c/card-0-t19-geometry.webp and /dev/null differ
diff --git a/public/ridge/matterhorn-f4fa1ba3556c/card-0-t20-colour.webp b/public/ridge/matterhorn-f4fa1ba3556c/card-0-t20-colour.webp
deleted file mode 100644
index bfae6412..00000000
Binary files a/public/ridge/matterhorn-f4fa1ba3556c/card-0-t20-colour.webp and /dev/null differ
diff --git a/public/ridge/matterhorn-f4fa1ba3556c/card-0-t20-geometry.webp b/public/ridge/matterhorn-f4fa1ba3556c/card-0-t20-geometry.webp
deleted file mode 100644
index 2dd694b5..00000000
Binary files a/public/ridge/matterhorn-f4fa1ba3556c/card-0-t20-geometry.webp and /dev/null differ
diff --git a/public/ridge/matterhorn-f4fa1ba3556c/card-0-t21-colour.webp b/public/ridge/matterhorn-f4fa1ba3556c/card-0-t21-colour.webp
deleted file mode 100644
index e7ea10ba..00000000
Binary files a/public/ridge/matterhorn-f4fa1ba3556c/card-0-t21-colour.webp and /dev/null differ
diff --git a/public/ridge/matterhorn-f4fa1ba3556c/card-0-t21-geometry.webp b/public/ridge/matterhorn-f4fa1ba3556c/card-0-t21-geometry.webp
deleted file mode 100644
index eb4cc7a3..00000000
Binary files a/public/ridge/matterhorn-f4fa1ba3556c/card-0-t21-geometry.webp and /dev/null differ
diff --git a/public/ridge/matterhorn-f4fa1ba3556c/card-0-t22-colour.webp b/public/ridge/matterhorn-f4fa1ba3556c/card-0-t22-colour.webp
deleted file mode 100644
index ddc5f0bb..00000000
Binary files a/public/ridge/matterhorn-f4fa1ba3556c/card-0-t22-colour.webp and /dev/null differ
diff --git a/public/ridge/matterhorn-f4fa1ba3556c/card-0-t22-geometry.webp b/public/ridge/matterhorn-f4fa1ba3556c/card-0-t22-geometry.webp
deleted file mode 100644
index 7df790b6..00000000
Binary files a/public/ridge/matterhorn-f4fa1ba3556c/card-0-t22-geometry.webp and /dev/null differ
diff --git a/public/ridge/matterhorn-f4fa1ba3556c/card-0-t23-colour.webp b/public/ridge/matterhorn-f4fa1ba3556c/card-0-t23-colour.webp
deleted file mode 100644
index 0bad763d..00000000
Binary files a/public/ridge/matterhorn-f4fa1ba3556c/card-0-t23-colour.webp and /dev/null differ
diff --git a/public/ridge/matterhorn-f4fa1ba3556c/card-0-t23-geometry.webp b/public/ridge/matterhorn-f4fa1ba3556c/card-0-t23-geometry.webp
deleted file mode 100644
index 6028ecc3..00000000
Binary files a/public/ridge/matterhorn-f4fa1ba3556c/card-0-t23-geometry.webp and /dev/null differ
diff --git a/public/ridge/matterhorn-f4fa1ba3556c/card-0-t24-colour.webp b/public/ridge/matterhorn-f4fa1ba3556c/card-0-t24-colour.webp
deleted file mode 100644
index 4a07f61c..00000000
Binary files a/public/ridge/matterhorn-f4fa1ba3556c/card-0-t24-colour.webp and /dev/null differ
diff --git a/public/ridge/matterhorn-f4fa1ba3556c/card-0-t24-geometry.webp b/public/ridge/matterhorn-f4fa1ba3556c/card-0-t24-geometry.webp
deleted file mode 100644
index 415b7004..00000000
Binary files a/public/ridge/matterhorn-f4fa1ba3556c/card-0-t24-geometry.webp and /dev/null differ
diff --git a/public/ridge/matterhorn-f4fa1ba3556c/card-0-t25-colour.webp b/public/ridge/matterhorn-f4fa1ba3556c/card-0-t25-colour.webp
deleted file mode 100644
index 693d5fed..00000000
Binary files a/public/ridge/matterhorn-f4fa1ba3556c/card-0-t25-colour.webp and /dev/null differ
diff --git a/public/ridge/matterhorn-f4fa1ba3556c/card-0-t25-geometry.webp b/public/ridge/matterhorn-f4fa1ba3556c/card-0-t25-geometry.webp
deleted file mode 100644
index dca26970..00000000
Binary files a/public/ridge/matterhorn-f4fa1ba3556c/card-0-t25-geometry.webp and /dev/null differ
diff --git a/public/ridge/matterhorn-f4fa1ba3556c/card-0-t26-colour.webp b/public/ridge/matterhorn-f4fa1ba3556c/card-0-t26-colour.webp
deleted file mode 100644
index 61d38177..00000000
Binary files a/public/ridge/matterhorn-f4fa1ba3556c/card-0-t26-colour.webp and /dev/null differ
diff --git a/public/ridge/matterhorn-f4fa1ba3556c/card-0-t26-geometry.webp b/public/ridge/matterhorn-f4fa1ba3556c/card-0-t26-geometry.webp
deleted file mode 100644
index 37d8783b..00000000
Binary files a/public/ridge/matterhorn-f4fa1ba3556c/card-0-t26-geometry.webp and /dev/null differ
diff --git a/public/ridge/matterhorn-f4fa1ba3556c/card-0-t27-colour.webp b/public/ridge/matterhorn-f4fa1ba3556c/card-0-t27-colour.webp
deleted file mode 100644
index d3238c33..00000000
Binary files a/public/ridge/matterhorn-f4fa1ba3556c/card-0-t27-colour.webp and /dev/null differ
diff --git a/public/ridge/matterhorn-f4fa1ba3556c/card-0-t27-geometry.webp b/public/ridge/matterhorn-f4fa1ba3556c/card-0-t27-geometry.webp
deleted file mode 100644
index 24854685..00000000
Binary files a/public/ridge/matterhorn-f4fa1ba3556c/card-0-t27-geometry.webp and /dev/null differ
diff --git a/public/ridge/matterhorn-f4fa1ba3556c/card-0-t28-colour.webp b/public/ridge/matterhorn-f4fa1ba3556c/card-0-t28-colour.webp
deleted file mode 100644
index bb344d6c..00000000
Binary files a/public/ridge/matterhorn-f4fa1ba3556c/card-0-t28-colour.webp and /dev/null differ
diff --git a/public/ridge/matterhorn-f4fa1ba3556c/card-0-t28-geometry.webp b/public/ridge/matterhorn-f4fa1ba3556c/card-0-t28-geometry.webp
deleted file mode 100644
index 0f80cf45..00000000
Binary files a/public/ridge/matterhorn-f4fa1ba3556c/card-0-t28-geometry.webp and /dev/null differ
diff --git a/public/ridge/matterhorn-f4fa1ba3556c/card-0-t29-colour.webp b/public/ridge/matterhorn-f4fa1ba3556c/card-0-t29-colour.webp
deleted file mode 100644
index 0c50afa5..00000000
Binary files a/public/ridge/matterhorn-f4fa1ba3556c/card-0-t29-colour.webp and /dev/null differ
diff --git a/public/ridge/matterhorn-f4fa1ba3556c/card-0-t29-geometry.webp b/public/ridge/matterhorn-f4fa1ba3556c/card-0-t29-geometry.webp
deleted file mode 100644
index caa1156a..00000000
Binary files a/public/ridge/matterhorn-f4fa1ba3556c/card-0-t29-geometry.webp and /dev/null differ
diff --git a/public/ridge/matterhorn-f4fa1ba3556c/card-0-t30-colour.webp b/public/ridge/matterhorn-f4fa1ba3556c/card-0-t30-colour.webp
deleted file mode 100644
index 68b04fc5..00000000
Binary files a/public/ridge/matterhorn-f4fa1ba3556c/card-0-t30-colour.webp and /dev/null differ
diff --git a/public/ridge/matterhorn-f4fa1ba3556c/card-0-t30-geometry.webp b/public/ridge/matterhorn-f4fa1ba3556c/card-0-t30-geometry.webp
deleted file mode 100644
index 7a4bb6f2..00000000
Binary files a/public/ridge/matterhorn-f4fa1ba3556c/card-0-t30-geometry.webp and /dev/null differ
diff --git a/public/ridge/matterhorn-f4fa1ba3556c/card-0-t31-colour.webp b/public/ridge/matterhorn-f4fa1ba3556c/card-0-t31-colour.webp
deleted file mode 100644
index 93f88317..00000000
Binary files a/public/ridge/matterhorn-f4fa1ba3556c/card-0-t31-colour.webp and /dev/null differ
diff --git a/public/ridge/matterhorn-f4fa1ba3556c/card-0-t31-geometry.webp b/public/ridge/matterhorn-f4fa1ba3556c/card-0-t31-geometry.webp
deleted file mode 100644
index 73867067..00000000
Binary files a/public/ridge/matterhorn-f4fa1ba3556c/card-0-t31-geometry.webp and /dev/null differ
diff --git a/public/ridge/matterhorn-f4fa1ba3556c/card-1-t00-colour.webp b/public/ridge/matterhorn-f4fa1ba3556c/card-1-t00-colour.webp
deleted file mode 100644
index da7d3b5f..00000000
Binary files a/public/ridge/matterhorn-f4fa1ba3556c/card-1-t00-colour.webp and /dev/null differ
diff --git a/public/ridge/matterhorn-f4fa1ba3556c/card-1-t00-geometry.webp b/public/ridge/matterhorn-f4fa1ba3556c/card-1-t00-geometry.webp
deleted file mode 100644
index ed1a33d8..00000000
Binary files a/public/ridge/matterhorn-f4fa1ba3556c/card-1-t00-geometry.webp and /dev/null differ
diff --git a/public/ridge/matterhorn-f4fa1ba3556c/card-1-t01-colour.webp b/public/ridge/matterhorn-f4fa1ba3556c/card-1-t01-colour.webp
deleted file mode 100644
index 5d5d53e8..00000000
Binary files a/public/ridge/matterhorn-f4fa1ba3556c/card-1-t01-colour.webp and /dev/null differ
diff --git a/public/ridge/matterhorn-f4fa1ba3556c/card-1-t01-geometry.webp b/public/ridge/matterhorn-f4fa1ba3556c/card-1-t01-geometry.webp
deleted file mode 100644
index e4ab11ed..00000000
Binary files a/public/ridge/matterhorn-f4fa1ba3556c/card-1-t01-geometry.webp and /dev/null differ
diff --git a/public/ridge/matterhorn-f4fa1ba3556c/card-1-t02-colour.webp b/public/ridge/matterhorn-f4fa1ba3556c/card-1-t02-colour.webp
deleted file mode 100644
index fad78400..00000000
Binary files a/public/ridge/matterhorn-f4fa1ba3556c/card-1-t02-colour.webp and /dev/null differ
diff --git a/public/ridge/matterhorn-f4fa1ba3556c/card-1-t02-geometry.webp b/public/ridge/matterhorn-f4fa1ba3556c/card-1-t02-geometry.webp
deleted file mode 100644
index a4e5aa87..00000000
Binary files a/public/ridge/matterhorn-f4fa1ba3556c/card-1-t02-geometry.webp and /dev/null differ
diff --git a/public/ridge/matterhorn-f4fa1ba3556c/card-1-t03-colour.webp b/public/ridge/matterhorn-f4fa1ba3556c/card-1-t03-colour.webp
deleted file mode 100644
index c64c485c..00000000
Binary files a/public/ridge/matterhorn-f4fa1ba3556c/card-1-t03-colour.webp and /dev/null differ
diff --git a/public/ridge/matterhorn-f4fa1ba3556c/card-1-t03-geometry.webp b/public/ridge/matterhorn-f4fa1ba3556c/card-1-t03-geometry.webp
deleted file mode 100644
index 8e0ab0f8..00000000
Binary files a/public/ridge/matterhorn-f4fa1ba3556c/card-1-t03-geometry.webp and /dev/null differ
diff --git a/public/ridge/matterhorn-f4fa1ba3556c/card-1-t04-colour.webp b/public/ridge/matterhorn-f4fa1ba3556c/card-1-t04-colour.webp
deleted file mode 100644
index d8a8e317..00000000
Binary files a/public/ridge/matterhorn-f4fa1ba3556c/card-1-t04-colour.webp and /dev/null differ
diff --git a/public/ridge/matterhorn-f4fa1ba3556c/card-1-t04-geometry.webp b/public/ridge/matterhorn-f4fa1ba3556c/card-1-t04-geometry.webp
deleted file mode 100644
index 4e869919..00000000
Binary files a/public/ridge/matterhorn-f4fa1ba3556c/card-1-t04-geometry.webp and /dev/null differ
diff --git a/public/ridge/matterhorn-f4fa1ba3556c/card-1-t05-colour.webp b/public/ridge/matterhorn-f4fa1ba3556c/card-1-t05-colour.webp
deleted file mode 100644
index 5a3bd786..00000000
Binary files a/public/ridge/matterhorn-f4fa1ba3556c/card-1-t05-colour.webp and /dev/null differ
diff --git a/public/ridge/matterhorn-f4fa1ba3556c/card-1-t05-geometry.webp b/public/ridge/matterhorn-f4fa1ba3556c/card-1-t05-geometry.webp
deleted file mode 100644
index 82306738..00000000
Binary files a/public/ridge/matterhorn-f4fa1ba3556c/card-1-t05-geometry.webp and /dev/null differ
diff --git a/public/ridge/matterhorn-f4fa1ba3556c/card-1-t06-colour.webp b/public/ridge/matterhorn-f4fa1ba3556c/card-1-t06-colour.webp
deleted file mode 100644
index dd86e9e4..00000000
Binary files a/public/ridge/matterhorn-f4fa1ba3556c/card-1-t06-colour.webp and /dev/null differ
diff --git a/public/ridge/matterhorn-f4fa1ba3556c/card-1-t06-geometry.webp b/public/ridge/matterhorn-f4fa1ba3556c/card-1-t06-geometry.webp
deleted file mode 100644
index 94195d8b..00000000
Binary files a/public/ridge/matterhorn-f4fa1ba3556c/card-1-t06-geometry.webp and /dev/null differ
diff --git a/public/ridge/matterhorn-f4fa1ba3556c/card-1-t07-colour.webp b/public/ridge/matterhorn-f4fa1ba3556c/card-1-t07-colour.webp
deleted file mode 100644
index 0f35e691..00000000
Binary files a/public/ridge/matterhorn-f4fa1ba3556c/card-1-t07-colour.webp and /dev/null differ
diff --git a/public/ridge/matterhorn-f4fa1ba3556c/card-1-t07-geometry.webp b/public/ridge/matterhorn-f4fa1ba3556c/card-1-t07-geometry.webp
deleted file mode 100644
index 50b7627b..00000000
Binary files a/public/ridge/matterhorn-f4fa1ba3556c/card-1-t07-geometry.webp and /dev/null differ
diff --git a/public/ridge/matterhorn-f4fa1ba3556c/card-1-t08-colour.webp b/public/ridge/matterhorn-f4fa1ba3556c/card-1-t08-colour.webp
deleted file mode 100644
index b0e40c1d..00000000
Binary files a/public/ridge/matterhorn-f4fa1ba3556c/card-1-t08-colour.webp and /dev/null differ
diff --git a/public/ridge/matterhorn-f4fa1ba3556c/card-1-t08-geometry.webp b/public/ridge/matterhorn-f4fa1ba3556c/card-1-t08-geometry.webp
deleted file mode 100644
index af7f5882..00000000
Binary files a/public/ridge/matterhorn-f4fa1ba3556c/card-1-t08-geometry.webp and /dev/null differ
diff --git a/public/ridge/matterhorn-f4fa1ba3556c/card-1-t09-colour.webp b/public/ridge/matterhorn-f4fa1ba3556c/card-1-t09-colour.webp
deleted file mode 100644
index 1739d8fd..00000000
Binary files a/public/ridge/matterhorn-f4fa1ba3556c/card-1-t09-colour.webp and /dev/null differ
diff --git a/public/ridge/matterhorn-f4fa1ba3556c/card-1-t09-geometry.webp b/public/ridge/matterhorn-f4fa1ba3556c/card-1-t09-geometry.webp
deleted file mode 100644
index c338c11e..00000000
Binary files a/public/ridge/matterhorn-f4fa1ba3556c/card-1-t09-geometry.webp and /dev/null differ
diff --git a/public/ridge/matterhorn-f4fa1ba3556c/card-1-t10-colour.webp b/public/ridge/matterhorn-f4fa1ba3556c/card-1-t10-colour.webp
deleted file mode 100644
index a2b7ce3b..00000000
Binary files a/public/ridge/matterhorn-f4fa1ba3556c/card-1-t10-colour.webp and /dev/null differ
diff --git a/public/ridge/matterhorn-f4fa1ba3556c/card-1-t10-geometry.webp b/public/ridge/matterhorn-f4fa1ba3556c/card-1-t10-geometry.webp
deleted file mode 100644
index e2cc72e1..00000000
Binary files a/public/ridge/matterhorn-f4fa1ba3556c/card-1-t10-geometry.webp and /dev/null differ
diff --git a/public/ridge/matterhorn-f4fa1ba3556c/card-1-t11-colour.webp b/public/ridge/matterhorn-f4fa1ba3556c/card-1-t11-colour.webp
deleted file mode 100644
index f6d75091..00000000
Binary files a/public/ridge/matterhorn-f4fa1ba3556c/card-1-t11-colour.webp and /dev/null differ
diff --git a/public/ridge/matterhorn-f4fa1ba3556c/card-1-t11-geometry.webp b/public/ridge/matterhorn-f4fa1ba3556c/card-1-t11-geometry.webp
deleted file mode 100644
index 8644ac1f..00000000
Binary files a/public/ridge/matterhorn-f4fa1ba3556c/card-1-t11-geometry.webp and /dev/null differ
diff --git a/public/ridge/matterhorn-f4fa1ba3556c/card-1-t12-colour.webp b/public/ridge/matterhorn-f4fa1ba3556c/card-1-t12-colour.webp
deleted file mode 100644
index 88156530..00000000
Binary files a/public/ridge/matterhorn-f4fa1ba3556c/card-1-t12-colour.webp and /dev/null differ
diff --git a/public/ridge/matterhorn-f4fa1ba3556c/card-1-t12-geometry.webp b/public/ridge/matterhorn-f4fa1ba3556c/card-1-t12-geometry.webp
deleted file mode 100644
index d5020b21..00000000
Binary files a/public/ridge/matterhorn-f4fa1ba3556c/card-1-t12-geometry.webp and /dev/null differ
diff --git a/public/ridge/matterhorn-f4fa1ba3556c/card-1-t13-colour.webp b/public/ridge/matterhorn-f4fa1ba3556c/card-1-t13-colour.webp
deleted file mode 100644
index 893f1005..00000000
Binary files a/public/ridge/matterhorn-f4fa1ba3556c/card-1-t13-colour.webp and /dev/null differ
diff --git a/public/ridge/matterhorn-f4fa1ba3556c/card-1-t13-geometry.webp b/public/ridge/matterhorn-f4fa1ba3556c/card-1-t13-geometry.webp
deleted file mode 100644
index 91e7f64d..00000000
Binary files a/public/ridge/matterhorn-f4fa1ba3556c/card-1-t13-geometry.webp and /dev/null differ
diff --git a/public/ridge/matterhorn-f4fa1ba3556c/card-1-t14-colour.webp b/public/ridge/matterhorn-f4fa1ba3556c/card-1-t14-colour.webp
deleted file mode 100644
index 762eca45..00000000
Binary files a/public/ridge/matterhorn-f4fa1ba3556c/card-1-t14-colour.webp and /dev/null differ
diff --git a/public/ridge/matterhorn-f4fa1ba3556c/card-1-t14-geometry.webp b/public/ridge/matterhorn-f4fa1ba3556c/card-1-t14-geometry.webp
deleted file mode 100644
index 6f6e74a0..00000000
Binary files a/public/ridge/matterhorn-f4fa1ba3556c/card-1-t14-geometry.webp and /dev/null differ
diff --git a/public/ridge/matterhorn-f4fa1ba3556c/card-1-t15-colour.webp b/public/ridge/matterhorn-f4fa1ba3556c/card-1-t15-colour.webp
deleted file mode 100644
index 3eeff891..00000000
Binary files a/public/ridge/matterhorn-f4fa1ba3556c/card-1-t15-colour.webp and /dev/null differ
diff --git a/public/ridge/matterhorn-f4fa1ba3556c/card-1-t15-geometry.webp b/public/ridge/matterhorn-f4fa1ba3556c/card-1-t15-geometry.webp
deleted file mode 100644
index 31888cb8..00000000
Binary files a/public/ridge/matterhorn-f4fa1ba3556c/card-1-t15-geometry.webp and /dev/null differ
diff --git a/public/ridge/matterhorn-f4fa1ba3556c/card-1-t16-colour.webp b/public/ridge/matterhorn-f4fa1ba3556c/card-1-t16-colour.webp
deleted file mode 100644
index 3a0085cc..00000000
Binary files a/public/ridge/matterhorn-f4fa1ba3556c/card-1-t16-colour.webp and /dev/null differ
diff --git a/public/ridge/matterhorn-f4fa1ba3556c/card-1-t16-geometry.webp b/public/ridge/matterhorn-f4fa1ba3556c/card-1-t16-geometry.webp
deleted file mode 100644
index e6d0b342..00000000
Binary files a/public/ridge/matterhorn-f4fa1ba3556c/card-1-t16-geometry.webp and /dev/null differ
diff --git a/public/ridge/matterhorn-f4fa1ba3556c/card-1-t17-colour.webp b/public/ridge/matterhorn-f4fa1ba3556c/card-1-t17-colour.webp
deleted file mode 100644
index ecaed1b4..00000000
Binary files a/public/ridge/matterhorn-f4fa1ba3556c/card-1-t17-colour.webp and /dev/null differ
diff --git a/public/ridge/matterhorn-f4fa1ba3556c/card-1-t17-geometry.webp b/public/ridge/matterhorn-f4fa1ba3556c/card-1-t17-geometry.webp
deleted file mode 100644
index 49e2acad..00000000
Binary files a/public/ridge/matterhorn-f4fa1ba3556c/card-1-t17-geometry.webp and /dev/null differ
diff --git a/public/ridge/matterhorn-f4fa1ba3556c/card-1-t18-colour.webp b/public/ridge/matterhorn-f4fa1ba3556c/card-1-t18-colour.webp
deleted file mode 100644
index 4fee1e57..00000000
Binary files a/public/ridge/matterhorn-f4fa1ba3556c/card-1-t18-colour.webp and /dev/null differ
diff --git a/public/ridge/matterhorn-f4fa1ba3556c/card-1-t18-geometry.webp b/public/ridge/matterhorn-f4fa1ba3556c/card-1-t18-geometry.webp
deleted file mode 100644
index fcd4b469..00000000
Binary files a/public/ridge/matterhorn-f4fa1ba3556c/card-1-t18-geometry.webp and /dev/null differ
diff --git a/public/ridge/matterhorn-f4fa1ba3556c/card-1-t19-colour.webp b/public/ridge/matterhorn-f4fa1ba3556c/card-1-t19-colour.webp
deleted file mode 100644
index 8ac70995..00000000
Binary files a/public/ridge/matterhorn-f4fa1ba3556c/card-1-t19-colour.webp and /dev/null differ
diff --git a/public/ridge/matterhorn-f4fa1ba3556c/card-1-t19-geometry.webp b/public/ridge/matterhorn-f4fa1ba3556c/card-1-t19-geometry.webp
deleted file mode 100644
index 0aff65f2..00000000
Binary files a/public/ridge/matterhorn-f4fa1ba3556c/card-1-t19-geometry.webp and /dev/null differ
diff --git a/public/ridge/matterhorn-f4fa1ba3556c/card-1-t20-colour.webp b/public/ridge/matterhorn-f4fa1ba3556c/card-1-t20-colour.webp
deleted file mode 100644
index 7e647ec8..00000000
Binary files a/public/ridge/matterhorn-f4fa1ba3556c/card-1-t20-colour.webp and /dev/null differ
diff --git a/public/ridge/matterhorn-f4fa1ba3556c/card-1-t20-geometry.webp b/public/ridge/matterhorn-f4fa1ba3556c/card-1-t20-geometry.webp
deleted file mode 100644
index 7621b1dc..00000000
Binary files a/public/ridge/matterhorn-f4fa1ba3556c/card-1-t20-geometry.webp and /dev/null differ
diff --git a/public/ridge/matterhorn-f4fa1ba3556c/card-1-t21-colour.webp b/public/ridge/matterhorn-f4fa1ba3556c/card-1-t21-colour.webp
deleted file mode 100644
index 5b877861..00000000
Binary files a/public/ridge/matterhorn-f4fa1ba3556c/card-1-t21-colour.webp and /dev/null differ
diff --git a/public/ridge/matterhorn-f4fa1ba3556c/card-1-t21-geometry.webp b/public/ridge/matterhorn-f4fa1ba3556c/card-1-t21-geometry.webp
deleted file mode 100644
index ff674d72..00000000
Binary files a/public/ridge/matterhorn-f4fa1ba3556c/card-1-t21-geometry.webp and /dev/null differ
diff --git a/public/ridge/matterhorn-f4fa1ba3556c/card-1-t22-colour.webp b/public/ridge/matterhorn-f4fa1ba3556c/card-1-t22-colour.webp
deleted file mode 100644
index a6208ef1..00000000
Binary files a/public/ridge/matterhorn-f4fa1ba3556c/card-1-t22-colour.webp and /dev/null differ
diff --git a/public/ridge/matterhorn-f4fa1ba3556c/card-1-t22-geometry.webp b/public/ridge/matterhorn-f4fa1ba3556c/card-1-t22-geometry.webp
deleted file mode 100644
index 7d27887f..00000000
Binary files a/public/ridge/matterhorn-f4fa1ba3556c/card-1-t22-geometry.webp and /dev/null differ
diff --git a/public/ridge/matterhorn-f4fa1ba3556c/card-1-t23-colour.webp b/public/ridge/matterhorn-f4fa1ba3556c/card-1-t23-colour.webp
deleted file mode 100644
index af33f56e..00000000
Binary files a/public/ridge/matterhorn-f4fa1ba3556c/card-1-t23-colour.webp and /dev/null differ
diff --git a/public/ridge/matterhorn-f4fa1ba3556c/card-1-t23-geometry.webp b/public/ridge/matterhorn-f4fa1ba3556c/card-1-t23-geometry.webp
deleted file mode 100644
index 8027c0d7..00000000
Binary files a/public/ridge/matterhorn-f4fa1ba3556c/card-1-t23-geometry.webp and /dev/null differ
diff --git a/public/ridge/matterhorn-f4fa1ba3556c/card-1-t24-colour.webp b/public/ridge/matterhorn-f4fa1ba3556c/card-1-t24-colour.webp
deleted file mode 100644
index dfd4a96a..00000000
Binary files a/public/ridge/matterhorn-f4fa1ba3556c/card-1-t24-colour.webp and /dev/null differ
diff --git a/public/ridge/matterhorn-f4fa1ba3556c/card-1-t24-geometry.webp b/public/ridge/matterhorn-f4fa1ba3556c/card-1-t24-geometry.webp
deleted file mode 100644
index f352841d..00000000
Binary files a/public/ridge/matterhorn-f4fa1ba3556c/card-1-t24-geometry.webp and /dev/null differ
diff --git a/public/ridge/matterhorn-f4fa1ba3556c/card-1-t25-colour.webp b/public/ridge/matterhorn-f4fa1ba3556c/card-1-t25-colour.webp
deleted file mode 100644
index c04ba97b..00000000
Binary files a/public/ridge/matterhorn-f4fa1ba3556c/card-1-t25-colour.webp and /dev/null differ
diff --git a/public/ridge/matterhorn-f4fa1ba3556c/card-1-t25-geometry.webp b/public/ridge/matterhorn-f4fa1ba3556c/card-1-t25-geometry.webp
deleted file mode 100644
index 94418a77..00000000
Binary files a/public/ridge/matterhorn-f4fa1ba3556c/card-1-t25-geometry.webp and /dev/null differ
diff --git a/public/ridge/matterhorn-f4fa1ba3556c/card-1-t26-colour.webp b/public/ridge/matterhorn-f4fa1ba3556c/card-1-t26-colour.webp
deleted file mode 100644
index eb945dc7..00000000
Binary files a/public/ridge/matterhorn-f4fa1ba3556c/card-1-t26-colour.webp and /dev/null differ
diff --git a/public/ridge/matterhorn-f4fa1ba3556c/card-1-t26-geometry.webp b/public/ridge/matterhorn-f4fa1ba3556c/card-1-t26-geometry.webp
deleted file mode 100644
index 357a19e3..00000000
Binary files a/public/ridge/matterhorn-f4fa1ba3556c/card-1-t26-geometry.webp and /dev/null differ
diff --git a/public/ridge/matterhorn-f4fa1ba3556c/card-1-t27-colour.webp b/public/ridge/matterhorn-f4fa1ba3556c/card-1-t27-colour.webp
deleted file mode 100644
index a20b5c60..00000000
Binary files a/public/ridge/matterhorn-f4fa1ba3556c/card-1-t27-colour.webp and /dev/null differ
diff --git a/public/ridge/matterhorn-f4fa1ba3556c/card-1-t27-geometry.webp b/public/ridge/matterhorn-f4fa1ba3556c/card-1-t27-geometry.webp
deleted file mode 100644
index 3fe3f0bc..00000000
Binary files a/public/ridge/matterhorn-f4fa1ba3556c/card-1-t27-geometry.webp and /dev/null differ
diff --git a/public/ridge/matterhorn-f4fa1ba3556c/card-1-t28-colour.webp b/public/ridge/matterhorn-f4fa1ba3556c/card-1-t28-colour.webp
deleted file mode 100644
index 259f8b1d..00000000
Binary files a/public/ridge/matterhorn-f4fa1ba3556c/card-1-t28-colour.webp and /dev/null differ
diff --git a/public/ridge/matterhorn-f4fa1ba3556c/card-1-t28-geometry.webp b/public/ridge/matterhorn-f4fa1ba3556c/card-1-t28-geometry.webp
deleted file mode 100644
index 0c551fce..00000000
Binary files a/public/ridge/matterhorn-f4fa1ba3556c/card-1-t28-geometry.webp and /dev/null differ
diff --git a/public/ridge/matterhorn-f4fa1ba3556c/card-1-t29-colour.webp b/public/ridge/matterhorn-f4fa1ba3556c/card-1-t29-colour.webp
deleted file mode 100644
index 0748aea2..00000000
Binary files a/public/ridge/matterhorn-f4fa1ba3556c/card-1-t29-colour.webp and /dev/null differ
diff --git a/public/ridge/matterhorn-f4fa1ba3556c/card-1-t29-geometry.webp b/public/ridge/matterhorn-f4fa1ba3556c/card-1-t29-geometry.webp
deleted file mode 100644
index 4490fa54..00000000
Binary files a/public/ridge/matterhorn-f4fa1ba3556c/card-1-t29-geometry.webp and /dev/null differ
diff --git a/public/ridge/matterhorn-f4fa1ba3556c/card-1-t30-colour.webp b/public/ridge/matterhorn-f4fa1ba3556c/card-1-t30-colour.webp
deleted file mode 100644
index e24ccf9c..00000000
Binary files a/public/ridge/matterhorn-f4fa1ba3556c/card-1-t30-colour.webp and /dev/null differ
diff --git a/public/ridge/matterhorn-f4fa1ba3556c/card-1-t30-geometry.webp b/public/ridge/matterhorn-f4fa1ba3556c/card-1-t30-geometry.webp
deleted file mode 100644
index b8d5fbdc..00000000
Binary files a/public/ridge/matterhorn-f4fa1ba3556c/card-1-t30-geometry.webp and /dev/null differ
diff --git a/public/ridge/matterhorn-f4fa1ba3556c/card-1-t31-colour.webp b/public/ridge/matterhorn-f4fa1ba3556c/card-1-t31-colour.webp
deleted file mode 100644
index 7605f0f1..00000000
Binary files a/public/ridge/matterhorn-f4fa1ba3556c/card-1-t31-colour.webp and /dev/null differ
diff --git a/public/ridge/matterhorn-f4fa1ba3556c/card-1-t31-geometry.webp b/public/ridge/matterhorn-f4fa1ba3556c/card-1-t31-geometry.webp
deleted file mode 100644
index ac70b30a..00000000
Binary files a/public/ridge/matterhorn-f4fa1ba3556c/card-1-t31-geometry.webp and /dev/null differ
diff --git a/public/ridge/matterhorn-f4fa1ba3556c/card-2-t00-colour.webp b/public/ridge/matterhorn-f4fa1ba3556c/card-2-t00-colour.webp
deleted file mode 100644
index fa9cbde6..00000000
Binary files a/public/ridge/matterhorn-f4fa1ba3556c/card-2-t00-colour.webp and /dev/null differ
diff --git a/public/ridge/matterhorn-f4fa1ba3556c/card-2-t00-geometry.webp b/public/ridge/matterhorn-f4fa1ba3556c/card-2-t00-geometry.webp
deleted file mode 100644
index 6b258017..00000000
Binary files a/public/ridge/matterhorn-f4fa1ba3556c/card-2-t00-geometry.webp and /dev/null differ
diff --git a/public/ridge/matterhorn-f4fa1ba3556c/card-2-t01-colour.webp b/public/ridge/matterhorn-f4fa1ba3556c/card-2-t01-colour.webp
deleted file mode 100644
index 53d430a5..00000000
Binary files a/public/ridge/matterhorn-f4fa1ba3556c/card-2-t01-colour.webp and /dev/null differ
diff --git a/public/ridge/matterhorn-f4fa1ba3556c/card-2-t01-geometry.webp b/public/ridge/matterhorn-f4fa1ba3556c/card-2-t01-geometry.webp
deleted file mode 100644
index 6e3f71c7..00000000
Binary files a/public/ridge/matterhorn-f4fa1ba3556c/card-2-t01-geometry.webp and /dev/null differ
diff --git a/public/ridge/matterhorn-f4fa1ba3556c/card-2-t02-colour.webp b/public/ridge/matterhorn-f4fa1ba3556c/card-2-t02-colour.webp
deleted file mode 100644
index 9926656b..00000000
Binary files a/public/ridge/matterhorn-f4fa1ba3556c/card-2-t02-colour.webp and /dev/null differ
diff --git a/public/ridge/matterhorn-f4fa1ba3556c/card-2-t02-geometry.webp b/public/ridge/matterhorn-f4fa1ba3556c/card-2-t02-geometry.webp
deleted file mode 100644
index 12446c04..00000000
Binary files a/public/ridge/matterhorn-f4fa1ba3556c/card-2-t02-geometry.webp and /dev/null differ
diff --git a/public/ridge/matterhorn-f4fa1ba3556c/card-2-t03-colour.webp b/public/ridge/matterhorn-f4fa1ba3556c/card-2-t03-colour.webp
deleted file mode 100644
index 63fe2211..00000000
Binary files a/public/ridge/matterhorn-f4fa1ba3556c/card-2-t03-colour.webp and /dev/null differ
diff --git a/public/ridge/matterhorn-f4fa1ba3556c/card-2-t03-geometry.webp b/public/ridge/matterhorn-f4fa1ba3556c/card-2-t03-geometry.webp
deleted file mode 100644
index c71e8124..00000000
Binary files a/public/ridge/matterhorn-f4fa1ba3556c/card-2-t03-geometry.webp and /dev/null differ
diff --git a/public/ridge/matterhorn-f4fa1ba3556c/card-2-t04-colour.webp b/public/ridge/matterhorn-f4fa1ba3556c/card-2-t04-colour.webp
deleted file mode 100644
index 930918d2..00000000
Binary files a/public/ridge/matterhorn-f4fa1ba3556c/card-2-t04-colour.webp and /dev/null differ
diff --git a/public/ridge/matterhorn-f4fa1ba3556c/card-2-t04-geometry.webp b/public/ridge/matterhorn-f4fa1ba3556c/card-2-t04-geometry.webp
deleted file mode 100644
index bbd52f53..00000000
Binary files a/public/ridge/matterhorn-f4fa1ba3556c/card-2-t04-geometry.webp and /dev/null differ
diff --git a/public/ridge/matterhorn-f4fa1ba3556c/card-2-t05-colour.webp b/public/ridge/matterhorn-f4fa1ba3556c/card-2-t05-colour.webp
deleted file mode 100644
index b8086dda..00000000
Binary files a/public/ridge/matterhorn-f4fa1ba3556c/card-2-t05-colour.webp and /dev/null differ
diff --git a/public/ridge/matterhorn-f4fa1ba3556c/card-2-t05-geometry.webp b/public/ridge/matterhorn-f4fa1ba3556c/card-2-t05-geometry.webp
deleted file mode 100644
index 0034898d..00000000
Binary files a/public/ridge/matterhorn-f4fa1ba3556c/card-2-t05-geometry.webp and /dev/null differ
diff --git a/public/ridge/matterhorn-f4fa1ba3556c/card-2-t06-colour.webp b/public/ridge/matterhorn-f4fa1ba3556c/card-2-t06-colour.webp
deleted file mode 100644
index c5f93158..00000000
Binary files a/public/ridge/matterhorn-f4fa1ba3556c/card-2-t06-colour.webp and /dev/null differ
diff --git a/public/ridge/matterhorn-f4fa1ba3556c/card-2-t06-geometry.webp b/public/ridge/matterhorn-f4fa1ba3556c/card-2-t06-geometry.webp
deleted file mode 100644
index 5076009e..00000000
Binary files a/public/ridge/matterhorn-f4fa1ba3556c/card-2-t06-geometry.webp and /dev/null differ
diff --git a/public/ridge/matterhorn-f4fa1ba3556c/card-2-t07-colour.webp b/public/ridge/matterhorn-f4fa1ba3556c/card-2-t07-colour.webp
deleted file mode 100644
index 701ab7de..00000000
Binary files a/public/ridge/matterhorn-f4fa1ba3556c/card-2-t07-colour.webp and /dev/null differ
diff --git a/public/ridge/matterhorn-f4fa1ba3556c/card-2-t07-geometry.webp b/public/ridge/matterhorn-f4fa1ba3556c/card-2-t07-geometry.webp
deleted file mode 100644
index 82c94309..00000000
Binary files a/public/ridge/matterhorn-f4fa1ba3556c/card-2-t07-geometry.webp and /dev/null differ
diff --git a/public/ridge/matterhorn-f4fa1ba3556c/card-2-t08-colour.webp b/public/ridge/matterhorn-f4fa1ba3556c/card-2-t08-colour.webp
deleted file mode 100644
index 233541ce..00000000
Binary files a/public/ridge/matterhorn-f4fa1ba3556c/card-2-t08-colour.webp and /dev/null differ
diff --git a/public/ridge/matterhorn-f4fa1ba3556c/card-2-t08-geometry.webp b/public/ridge/matterhorn-f4fa1ba3556c/card-2-t08-geometry.webp
deleted file mode 100644
index 3dea5a38..00000000
Binary files a/public/ridge/matterhorn-f4fa1ba3556c/card-2-t08-geometry.webp and /dev/null differ
diff --git a/public/ridge/matterhorn-f4fa1ba3556c/card-2-t09-colour.webp b/public/ridge/matterhorn-f4fa1ba3556c/card-2-t09-colour.webp
deleted file mode 100644
index f1cbd7c5..00000000
Binary files a/public/ridge/matterhorn-f4fa1ba3556c/card-2-t09-colour.webp and /dev/null differ
diff --git a/public/ridge/matterhorn-f4fa1ba3556c/card-2-t09-geometry.webp b/public/ridge/matterhorn-f4fa1ba3556c/card-2-t09-geometry.webp
deleted file mode 100644
index 07f5e202..00000000
Binary files a/public/ridge/matterhorn-f4fa1ba3556c/card-2-t09-geometry.webp and /dev/null differ
diff --git a/public/ridge/matterhorn-f4fa1ba3556c/card-2-t10-colour.webp b/public/ridge/matterhorn-f4fa1ba3556c/card-2-t10-colour.webp
deleted file mode 100644
index 349f7bfe..00000000
Binary files a/public/ridge/matterhorn-f4fa1ba3556c/card-2-t10-colour.webp and /dev/null differ
diff --git a/public/ridge/matterhorn-f4fa1ba3556c/card-2-t10-geometry.webp b/public/ridge/matterhorn-f4fa1ba3556c/card-2-t10-geometry.webp
deleted file mode 100644
index f71940a7..00000000
Binary files a/public/ridge/matterhorn-f4fa1ba3556c/card-2-t10-geometry.webp and /dev/null differ
diff --git a/public/ridge/matterhorn-f4fa1ba3556c/card-2-t11-colour.webp b/public/ridge/matterhorn-f4fa1ba3556c/card-2-t11-colour.webp
deleted file mode 100644
index 62a0448a..00000000
Binary files a/public/ridge/matterhorn-f4fa1ba3556c/card-2-t11-colour.webp and /dev/null differ
diff --git a/public/ridge/matterhorn-f4fa1ba3556c/card-2-t11-geometry.webp b/public/ridge/matterhorn-f4fa1ba3556c/card-2-t11-geometry.webp
deleted file mode 100644
index 235d1534..00000000
Binary files a/public/ridge/matterhorn-f4fa1ba3556c/card-2-t11-geometry.webp and /dev/null differ
diff --git a/public/ridge/matterhorn-f4fa1ba3556c/card-2-t12-colour.webp b/public/ridge/matterhorn-f4fa1ba3556c/card-2-t12-colour.webp
deleted file mode 100644
index fa4fb566..00000000
Binary files a/public/ridge/matterhorn-f4fa1ba3556c/card-2-t12-colour.webp and /dev/null differ
diff --git a/public/ridge/matterhorn-f4fa1ba3556c/card-2-t12-geometry.webp b/public/ridge/matterhorn-f4fa1ba3556c/card-2-t12-geometry.webp
deleted file mode 100644
index d03cc8fd..00000000
Binary files a/public/ridge/matterhorn-f4fa1ba3556c/card-2-t12-geometry.webp and /dev/null differ
diff --git a/public/ridge/matterhorn-f4fa1ba3556c/card-2-t13-colour.webp b/public/ridge/matterhorn-f4fa1ba3556c/card-2-t13-colour.webp
deleted file mode 100644
index 85656767..00000000
Binary files a/public/ridge/matterhorn-f4fa1ba3556c/card-2-t13-colour.webp and /dev/null differ
diff --git a/public/ridge/matterhorn-f4fa1ba3556c/card-2-t13-geometry.webp b/public/ridge/matterhorn-f4fa1ba3556c/card-2-t13-geometry.webp
deleted file mode 100644
index d0495a71..00000000
Binary files a/public/ridge/matterhorn-f4fa1ba3556c/card-2-t13-geometry.webp and /dev/null differ
diff --git a/public/ridge/matterhorn-f4fa1ba3556c/card-2-t14-colour.webp b/public/ridge/matterhorn-f4fa1ba3556c/card-2-t14-colour.webp
deleted file mode 100644
index 09106ff2..00000000
Binary files a/public/ridge/matterhorn-f4fa1ba3556c/card-2-t14-colour.webp and /dev/null differ
diff --git a/public/ridge/matterhorn-f4fa1ba3556c/card-2-t14-geometry.webp b/public/ridge/matterhorn-f4fa1ba3556c/card-2-t14-geometry.webp
deleted file mode 100644
index 5d59e676..00000000
Binary files a/public/ridge/matterhorn-f4fa1ba3556c/card-2-t14-geometry.webp and /dev/null differ
diff --git a/public/ridge/matterhorn-f4fa1ba3556c/card-2-t15-colour.webp b/public/ridge/matterhorn-f4fa1ba3556c/card-2-t15-colour.webp
deleted file mode 100644
index 399d9e9f..00000000
Binary files a/public/ridge/matterhorn-f4fa1ba3556c/card-2-t15-colour.webp and /dev/null differ
diff --git a/public/ridge/matterhorn-f4fa1ba3556c/card-2-t15-geometry.webp b/public/ridge/matterhorn-f4fa1ba3556c/card-2-t15-geometry.webp
deleted file mode 100644
index 39c78fd8..00000000
Binary files a/public/ridge/matterhorn-f4fa1ba3556c/card-2-t15-geometry.webp and /dev/null differ
diff --git a/public/ridge/matterhorn-f4fa1ba3556c/card-2-t16-colour.webp b/public/ridge/matterhorn-f4fa1ba3556c/card-2-t16-colour.webp
deleted file mode 100644
index 34916d80..00000000
Binary files a/public/ridge/matterhorn-f4fa1ba3556c/card-2-t16-colour.webp and /dev/null differ
diff --git a/public/ridge/matterhorn-f4fa1ba3556c/card-2-t16-geometry.webp b/public/ridge/matterhorn-f4fa1ba3556c/card-2-t16-geometry.webp
deleted file mode 100644
index 0141464c..00000000
Binary files a/public/ridge/matterhorn-f4fa1ba3556c/card-2-t16-geometry.webp and /dev/null differ
diff --git a/public/ridge/matterhorn-f4fa1ba3556c/card-2-t17-colour.webp b/public/ridge/matterhorn-f4fa1ba3556c/card-2-t17-colour.webp
deleted file mode 100644
index fd5aa34c..00000000
Binary files a/public/ridge/matterhorn-f4fa1ba3556c/card-2-t17-colour.webp and /dev/null differ
diff --git a/public/ridge/matterhorn-f4fa1ba3556c/card-2-t17-geometry.webp b/public/ridge/matterhorn-f4fa1ba3556c/card-2-t17-geometry.webp
deleted file mode 100644
index 018dd78a..00000000
Binary files a/public/ridge/matterhorn-f4fa1ba3556c/card-2-t17-geometry.webp and /dev/null differ
diff --git a/public/ridge/matterhorn-f4fa1ba3556c/card-2-t18-colour.webp b/public/ridge/matterhorn-f4fa1ba3556c/card-2-t18-colour.webp
deleted file mode 100644
index fcf00415..00000000
Binary files a/public/ridge/matterhorn-f4fa1ba3556c/card-2-t18-colour.webp and /dev/null differ
diff --git a/public/ridge/matterhorn-f4fa1ba3556c/card-2-t18-geometry.webp b/public/ridge/matterhorn-f4fa1ba3556c/card-2-t18-geometry.webp
deleted file mode 100644
index 7788a160..00000000
Binary files a/public/ridge/matterhorn-f4fa1ba3556c/card-2-t18-geometry.webp and /dev/null differ
diff --git a/public/ridge/matterhorn-f4fa1ba3556c/card-2-t19-colour.webp b/public/ridge/matterhorn-f4fa1ba3556c/card-2-t19-colour.webp
deleted file mode 100644
index 3ca580bc..00000000
Binary files a/public/ridge/matterhorn-f4fa1ba3556c/card-2-t19-colour.webp and /dev/null differ
diff --git a/public/ridge/matterhorn-f4fa1ba3556c/card-2-t19-geometry.webp b/public/ridge/matterhorn-f4fa1ba3556c/card-2-t19-geometry.webp
deleted file mode 100644
index 7e58b465..00000000
Binary files a/public/ridge/matterhorn-f4fa1ba3556c/card-2-t19-geometry.webp and /dev/null differ
diff --git a/public/ridge/matterhorn-f4fa1ba3556c/card-2-t20-colour.webp b/public/ridge/matterhorn-f4fa1ba3556c/card-2-t20-colour.webp
deleted file mode 100644
index 83d75920..00000000
Binary files a/public/ridge/matterhorn-f4fa1ba3556c/card-2-t20-colour.webp and /dev/null differ
diff --git a/public/ridge/matterhorn-f4fa1ba3556c/card-2-t20-geometry.webp b/public/ridge/matterhorn-f4fa1ba3556c/card-2-t20-geometry.webp
deleted file mode 100644
index 008f6b06..00000000
Binary files a/public/ridge/matterhorn-f4fa1ba3556c/card-2-t20-geometry.webp and /dev/null differ
diff --git a/public/ridge/matterhorn-f4fa1ba3556c/card-2-t21-colour.webp b/public/ridge/matterhorn-f4fa1ba3556c/card-2-t21-colour.webp
deleted file mode 100644
index 57a8d604..00000000
Binary files a/public/ridge/matterhorn-f4fa1ba3556c/card-2-t21-colour.webp and /dev/null differ
diff --git a/public/ridge/matterhorn-f4fa1ba3556c/card-2-t21-geometry.webp b/public/ridge/matterhorn-f4fa1ba3556c/card-2-t21-geometry.webp
deleted file mode 100644
index 863d6b6f..00000000
Binary files a/public/ridge/matterhorn-f4fa1ba3556c/card-2-t21-geometry.webp and /dev/null differ
diff --git a/public/ridge/matterhorn-f4fa1ba3556c/card-2-t22-colour.webp b/public/ridge/matterhorn-f4fa1ba3556c/card-2-t22-colour.webp
deleted file mode 100644
index f1b1f013..00000000
Binary files a/public/ridge/matterhorn-f4fa1ba3556c/card-2-t22-colour.webp and /dev/null differ
diff --git a/public/ridge/matterhorn-f4fa1ba3556c/card-2-t22-geometry.webp b/public/ridge/matterhorn-f4fa1ba3556c/card-2-t22-geometry.webp
deleted file mode 100644
index 22d9b34d..00000000
Binary files a/public/ridge/matterhorn-f4fa1ba3556c/card-2-t22-geometry.webp and /dev/null differ
diff --git a/public/ridge/matterhorn-f4fa1ba3556c/card-2-t23-colour.webp b/public/ridge/matterhorn-f4fa1ba3556c/card-2-t23-colour.webp
deleted file mode 100644
index 185a406d..00000000
Binary files a/public/ridge/matterhorn-f4fa1ba3556c/card-2-t23-colour.webp and /dev/null differ
diff --git a/public/ridge/matterhorn-f4fa1ba3556c/card-2-t23-geometry.webp b/public/ridge/matterhorn-f4fa1ba3556c/card-2-t23-geometry.webp
deleted file mode 100644
index 6cfb4391..00000000
Binary files a/public/ridge/matterhorn-f4fa1ba3556c/card-2-t23-geometry.webp and /dev/null differ
diff --git a/public/ridge/matterhorn-f4fa1ba3556c/card-2-t24-colour.webp b/public/ridge/matterhorn-f4fa1ba3556c/card-2-t24-colour.webp
deleted file mode 100644
index 1968682a..00000000
Binary files a/public/ridge/matterhorn-f4fa1ba3556c/card-2-t24-colour.webp and /dev/null differ
diff --git a/public/ridge/matterhorn-f4fa1ba3556c/card-2-t24-geometry.webp b/public/ridge/matterhorn-f4fa1ba3556c/card-2-t24-geometry.webp
deleted file mode 100644
index b3c47663..00000000
Binary files a/public/ridge/matterhorn-f4fa1ba3556c/card-2-t24-geometry.webp and /dev/null differ
diff --git a/public/ridge/matterhorn-f4fa1ba3556c/card-2-t25-colour.webp b/public/ridge/matterhorn-f4fa1ba3556c/card-2-t25-colour.webp
deleted file mode 100644
index 407f588c..00000000
Binary files a/public/ridge/matterhorn-f4fa1ba3556c/card-2-t25-colour.webp and /dev/null differ
diff --git a/public/ridge/matterhorn-f4fa1ba3556c/card-2-t25-geometry.webp b/public/ridge/matterhorn-f4fa1ba3556c/card-2-t25-geometry.webp
deleted file mode 100644
index bc9a5a43..00000000
Binary files a/public/ridge/matterhorn-f4fa1ba3556c/card-2-t25-geometry.webp and /dev/null differ
diff --git a/public/ridge/matterhorn-f4fa1ba3556c/card-2-t26-colour.webp b/public/ridge/matterhorn-f4fa1ba3556c/card-2-t26-colour.webp
deleted file mode 100644
index a2aa3a85..00000000
Binary files a/public/ridge/matterhorn-f4fa1ba3556c/card-2-t26-colour.webp and /dev/null differ
diff --git a/public/ridge/matterhorn-f4fa1ba3556c/card-2-t26-geometry.webp b/public/ridge/matterhorn-f4fa1ba3556c/card-2-t26-geometry.webp
deleted file mode 100644
index 0428d6a7..00000000
Binary files a/public/ridge/matterhorn-f4fa1ba3556c/card-2-t26-geometry.webp and /dev/null differ
diff --git a/public/ridge/matterhorn-f4fa1ba3556c/card-2-t27-colour.webp b/public/ridge/matterhorn-f4fa1ba3556c/card-2-t27-colour.webp
deleted file mode 100644
index 4bfd3e0f..00000000
Binary files a/public/ridge/matterhorn-f4fa1ba3556c/card-2-t27-colour.webp and /dev/null differ
diff --git a/public/ridge/matterhorn-f4fa1ba3556c/card-2-t27-geometry.webp b/public/ridge/matterhorn-f4fa1ba3556c/card-2-t27-geometry.webp
deleted file mode 100644
index 0e032949..00000000
Binary files a/public/ridge/matterhorn-f4fa1ba3556c/card-2-t27-geometry.webp and /dev/null differ
diff --git a/public/ridge/matterhorn-f4fa1ba3556c/card-2-t28-colour.webp b/public/ridge/matterhorn-f4fa1ba3556c/card-2-t28-colour.webp
deleted file mode 100644
index 950dfda7..00000000
Binary files a/public/ridge/matterhorn-f4fa1ba3556c/card-2-t28-colour.webp and /dev/null differ
diff --git a/public/ridge/matterhorn-f4fa1ba3556c/card-2-t28-geometry.webp b/public/ridge/matterhorn-f4fa1ba3556c/card-2-t28-geometry.webp
deleted file mode 100644
index 1021d2c1..00000000
Binary files a/public/ridge/matterhorn-f4fa1ba3556c/card-2-t28-geometry.webp and /dev/null differ
diff --git a/public/ridge/matterhorn-f4fa1ba3556c/card-2-t29-colour.webp b/public/ridge/matterhorn-f4fa1ba3556c/card-2-t29-colour.webp
deleted file mode 100644
index 2944b652..00000000
Binary files a/public/ridge/matterhorn-f4fa1ba3556c/card-2-t29-colour.webp and /dev/null differ
diff --git a/public/ridge/matterhorn-f4fa1ba3556c/card-2-t29-geometry.webp b/public/ridge/matterhorn-f4fa1ba3556c/card-2-t29-geometry.webp
deleted file mode 100644
index d99d5d6f..00000000
Binary files a/public/ridge/matterhorn-f4fa1ba3556c/card-2-t29-geometry.webp and /dev/null differ
diff --git a/public/ridge/matterhorn-f4fa1ba3556c/card-2-t30-colour.webp b/public/ridge/matterhorn-f4fa1ba3556c/card-2-t30-colour.webp
deleted file mode 100644
index 00da71c7..00000000
Binary files a/public/ridge/matterhorn-f4fa1ba3556c/card-2-t30-colour.webp and /dev/null differ
diff --git a/public/ridge/matterhorn-f4fa1ba3556c/card-2-t30-geometry.webp b/public/ridge/matterhorn-f4fa1ba3556c/card-2-t30-geometry.webp
deleted file mode 100644
index 65e9ce2b..00000000
Binary files a/public/ridge/matterhorn-f4fa1ba3556c/card-2-t30-geometry.webp and /dev/null differ
diff --git a/public/ridge/matterhorn-f4fa1ba3556c/card-2-t31-colour.webp b/public/ridge/matterhorn-f4fa1ba3556c/card-2-t31-colour.webp
deleted file mode 100644
index 4721ce12..00000000
Binary files a/public/ridge/matterhorn-f4fa1ba3556c/card-2-t31-colour.webp and /dev/null differ
diff --git a/public/ridge/matterhorn-f4fa1ba3556c/card-2-t31-geometry.webp b/public/ridge/matterhorn-f4fa1ba3556c/card-2-t31-geometry.webp
deleted file mode 100644
index 1f651ebb..00000000
Binary files a/public/ridge/matterhorn-f4fa1ba3556c/card-2-t31-geometry.webp and /dev/null differ
diff --git a/public/ridge/matterhorn-f4fa1ba3556c/card-3-t00-colour.webp b/public/ridge/matterhorn-f4fa1ba3556c/card-3-t00-colour.webp
deleted file mode 100644
index 48cbd186..00000000
Binary files a/public/ridge/matterhorn-f4fa1ba3556c/card-3-t00-colour.webp and /dev/null differ
diff --git a/public/ridge/matterhorn-f4fa1ba3556c/card-3-t00-geometry.webp b/public/ridge/matterhorn-f4fa1ba3556c/card-3-t00-geometry.webp
deleted file mode 100644
index 7dec2d16..00000000
Binary files a/public/ridge/matterhorn-f4fa1ba3556c/card-3-t00-geometry.webp and /dev/null differ
diff --git a/public/ridge/matterhorn-f4fa1ba3556c/card-3-t01-colour.webp b/public/ridge/matterhorn-f4fa1ba3556c/card-3-t01-colour.webp
deleted file mode 100644
index ffde24c9..00000000
Binary files a/public/ridge/matterhorn-f4fa1ba3556c/card-3-t01-colour.webp and /dev/null differ
diff --git a/public/ridge/matterhorn-f4fa1ba3556c/card-3-t01-geometry.webp b/public/ridge/matterhorn-f4fa1ba3556c/card-3-t01-geometry.webp
deleted file mode 100644
index 659ce87f..00000000
Binary files a/public/ridge/matterhorn-f4fa1ba3556c/card-3-t01-geometry.webp and /dev/null differ
diff --git a/public/ridge/matterhorn-f4fa1ba3556c/card-3-t02-colour.webp b/public/ridge/matterhorn-f4fa1ba3556c/card-3-t02-colour.webp
deleted file mode 100644
index d3d3e7f9..00000000
Binary files a/public/ridge/matterhorn-f4fa1ba3556c/card-3-t02-colour.webp and /dev/null differ
diff --git a/public/ridge/matterhorn-f4fa1ba3556c/card-3-t02-geometry.webp b/public/ridge/matterhorn-f4fa1ba3556c/card-3-t02-geometry.webp
deleted file mode 100644
index 1e8de4dd..00000000
Binary files a/public/ridge/matterhorn-f4fa1ba3556c/card-3-t02-geometry.webp and /dev/null differ
diff --git a/public/ridge/matterhorn-f4fa1ba3556c/card-3-t03-colour.webp b/public/ridge/matterhorn-f4fa1ba3556c/card-3-t03-colour.webp
deleted file mode 100644
index 329be34a..00000000
Binary files a/public/ridge/matterhorn-f4fa1ba3556c/card-3-t03-colour.webp and /dev/null differ
diff --git a/public/ridge/matterhorn-f4fa1ba3556c/card-3-t03-geometry.webp b/public/ridge/matterhorn-f4fa1ba3556c/card-3-t03-geometry.webp
deleted file mode 100644
index 88417117..00000000
Binary files a/public/ridge/matterhorn-f4fa1ba3556c/card-3-t03-geometry.webp and /dev/null differ
diff --git a/public/ridge/matterhorn-f4fa1ba3556c/card-3-t04-colour.webp b/public/ridge/matterhorn-f4fa1ba3556c/card-3-t04-colour.webp
deleted file mode 100644
index 3370202a..00000000
Binary files a/public/ridge/matterhorn-f4fa1ba3556c/card-3-t04-colour.webp and /dev/null differ
diff --git a/public/ridge/matterhorn-f4fa1ba3556c/card-3-t04-geometry.webp b/public/ridge/matterhorn-f4fa1ba3556c/card-3-t04-geometry.webp
deleted file mode 100644
index cc4f5f54..00000000
Binary files a/public/ridge/matterhorn-f4fa1ba3556c/card-3-t04-geometry.webp and /dev/null differ
diff --git a/public/ridge/matterhorn-f4fa1ba3556c/card-3-t05-colour.webp b/public/ridge/matterhorn-f4fa1ba3556c/card-3-t05-colour.webp
deleted file mode 100644
index f48f9232..00000000
Binary files a/public/ridge/matterhorn-f4fa1ba3556c/card-3-t05-colour.webp and /dev/null differ
diff --git a/public/ridge/matterhorn-f4fa1ba3556c/card-3-t05-geometry.webp b/public/ridge/matterhorn-f4fa1ba3556c/card-3-t05-geometry.webp
deleted file mode 100644
index 06a51e37..00000000
Binary files a/public/ridge/matterhorn-f4fa1ba3556c/card-3-t05-geometry.webp and /dev/null differ
diff --git a/public/ridge/matterhorn-f4fa1ba3556c/card-3-t06-colour.webp b/public/ridge/matterhorn-f4fa1ba3556c/card-3-t06-colour.webp
deleted file mode 100644
index 460fd200..00000000
Binary files a/public/ridge/matterhorn-f4fa1ba3556c/card-3-t06-colour.webp and /dev/null differ
diff --git a/public/ridge/matterhorn-f4fa1ba3556c/card-3-t06-geometry.webp b/public/ridge/matterhorn-f4fa1ba3556c/card-3-t06-geometry.webp
deleted file mode 100644
index 2c1433ef..00000000
Binary files a/public/ridge/matterhorn-f4fa1ba3556c/card-3-t06-geometry.webp and /dev/null differ
diff --git a/public/ridge/matterhorn-f4fa1ba3556c/card-3-t07-colour.webp b/public/ridge/matterhorn-f4fa1ba3556c/card-3-t07-colour.webp
deleted file mode 100644
index ac10f644..00000000
Binary files a/public/ridge/matterhorn-f4fa1ba3556c/card-3-t07-colour.webp and /dev/null differ
diff --git a/public/ridge/matterhorn-f4fa1ba3556c/card-3-t07-geometry.webp b/public/ridge/matterhorn-f4fa1ba3556c/card-3-t07-geometry.webp
deleted file mode 100644
index bf903c8a..00000000
Binary files a/public/ridge/matterhorn-f4fa1ba3556c/card-3-t07-geometry.webp and /dev/null differ
diff --git a/public/ridge/matterhorn-f4fa1ba3556c/card-3-t08-colour.webp b/public/ridge/matterhorn-f4fa1ba3556c/card-3-t08-colour.webp
deleted file mode 100644
index cc22612f..00000000
Binary files a/public/ridge/matterhorn-f4fa1ba3556c/card-3-t08-colour.webp and /dev/null differ
diff --git a/public/ridge/matterhorn-f4fa1ba3556c/card-3-t08-geometry.webp b/public/ridge/matterhorn-f4fa1ba3556c/card-3-t08-geometry.webp
deleted file mode 100644
index 0ad712ec..00000000
Binary files a/public/ridge/matterhorn-f4fa1ba3556c/card-3-t08-geometry.webp and /dev/null differ
diff --git a/public/ridge/matterhorn-f4fa1ba3556c/card-3-t09-colour.webp b/public/ridge/matterhorn-f4fa1ba3556c/card-3-t09-colour.webp
deleted file mode 100644
index c66ec659..00000000
Binary files a/public/ridge/matterhorn-f4fa1ba3556c/card-3-t09-colour.webp and /dev/null differ
diff --git a/public/ridge/matterhorn-f4fa1ba3556c/card-3-t09-geometry.webp b/public/ridge/matterhorn-f4fa1ba3556c/card-3-t09-geometry.webp
deleted file mode 100644
index 285b1d1b..00000000
Binary files a/public/ridge/matterhorn-f4fa1ba3556c/card-3-t09-geometry.webp and /dev/null differ
diff --git a/public/ridge/matterhorn-f4fa1ba3556c/card-3-t10-colour.webp b/public/ridge/matterhorn-f4fa1ba3556c/card-3-t10-colour.webp
deleted file mode 100644
index 8a915a21..00000000
Binary files a/public/ridge/matterhorn-f4fa1ba3556c/card-3-t10-colour.webp and /dev/null differ
diff --git a/public/ridge/matterhorn-f4fa1ba3556c/card-3-t10-geometry.webp b/public/ridge/matterhorn-f4fa1ba3556c/card-3-t10-geometry.webp
deleted file mode 100644
index b25742dc..00000000
Binary files a/public/ridge/matterhorn-f4fa1ba3556c/card-3-t10-geometry.webp and /dev/null differ
diff --git a/public/ridge/matterhorn-f4fa1ba3556c/card-3-t11-colour.webp b/public/ridge/matterhorn-f4fa1ba3556c/card-3-t11-colour.webp
deleted file mode 100644
index 69bf2264..00000000
Binary files a/public/ridge/matterhorn-f4fa1ba3556c/card-3-t11-colour.webp and /dev/null differ
diff --git a/public/ridge/matterhorn-f4fa1ba3556c/card-3-t11-geometry.webp b/public/ridge/matterhorn-f4fa1ba3556c/card-3-t11-geometry.webp
deleted file mode 100644
index 52be9f57..00000000
Binary files a/public/ridge/matterhorn-f4fa1ba3556c/card-3-t11-geometry.webp and /dev/null differ
diff --git a/public/ridge/matterhorn-f4fa1ba3556c/card-3-t12-colour.webp b/public/ridge/matterhorn-f4fa1ba3556c/card-3-t12-colour.webp
deleted file mode 100644
index de22ac7f..00000000
Binary files a/public/ridge/matterhorn-f4fa1ba3556c/card-3-t12-colour.webp and /dev/null differ
diff --git a/public/ridge/matterhorn-f4fa1ba3556c/card-3-t12-geometry.webp b/public/ridge/matterhorn-f4fa1ba3556c/card-3-t12-geometry.webp
deleted file mode 100644
index 35854887..00000000
Binary files a/public/ridge/matterhorn-f4fa1ba3556c/card-3-t12-geometry.webp and /dev/null differ
diff --git a/public/ridge/matterhorn-f4fa1ba3556c/card-3-t13-colour.webp b/public/ridge/matterhorn-f4fa1ba3556c/card-3-t13-colour.webp
deleted file mode 100644
index ff49516f..00000000
Binary files a/public/ridge/matterhorn-f4fa1ba3556c/card-3-t13-colour.webp and /dev/null differ
diff --git a/public/ridge/matterhorn-f4fa1ba3556c/card-3-t13-geometry.webp b/public/ridge/matterhorn-f4fa1ba3556c/card-3-t13-geometry.webp
deleted file mode 100644
index 8b22b55f..00000000
Binary files a/public/ridge/matterhorn-f4fa1ba3556c/card-3-t13-geometry.webp and /dev/null differ
diff --git a/public/ridge/matterhorn-f4fa1ba3556c/card-3-t14-colour.webp b/public/ridge/matterhorn-f4fa1ba3556c/card-3-t14-colour.webp
deleted file mode 100644
index d2fe52ef..00000000
Binary files a/public/ridge/matterhorn-f4fa1ba3556c/card-3-t14-colour.webp and /dev/null differ
diff --git a/public/ridge/matterhorn-f4fa1ba3556c/card-3-t14-geometry.webp b/public/ridge/matterhorn-f4fa1ba3556c/card-3-t14-geometry.webp
deleted file mode 100644
index 4c79fb05..00000000
Binary files a/public/ridge/matterhorn-f4fa1ba3556c/card-3-t14-geometry.webp and /dev/null differ
diff --git a/public/ridge/matterhorn-f4fa1ba3556c/card-3-t15-colour.webp b/public/ridge/matterhorn-f4fa1ba3556c/card-3-t15-colour.webp
deleted file mode 100644
index f1ca5156..00000000
Binary files a/public/ridge/matterhorn-f4fa1ba3556c/card-3-t15-colour.webp and /dev/null differ
diff --git a/public/ridge/matterhorn-f4fa1ba3556c/card-3-t15-geometry.webp b/public/ridge/matterhorn-f4fa1ba3556c/card-3-t15-geometry.webp
deleted file mode 100644
index a1883501..00000000
Binary files a/public/ridge/matterhorn-f4fa1ba3556c/card-3-t15-geometry.webp and /dev/null differ
diff --git a/public/ridge/matterhorn-f4fa1ba3556c/card-3-t16-colour.webp b/public/ridge/matterhorn-f4fa1ba3556c/card-3-t16-colour.webp
deleted file mode 100644
index b3e79ec4..00000000
Binary files a/public/ridge/matterhorn-f4fa1ba3556c/card-3-t16-colour.webp and /dev/null differ
diff --git a/public/ridge/matterhorn-f4fa1ba3556c/card-3-t16-geometry.webp b/public/ridge/matterhorn-f4fa1ba3556c/card-3-t16-geometry.webp
deleted file mode 100644
index b6cd82e3..00000000
Binary files a/public/ridge/matterhorn-f4fa1ba3556c/card-3-t16-geometry.webp and /dev/null differ
diff --git a/public/ridge/matterhorn-f4fa1ba3556c/card-3-t17-colour.webp b/public/ridge/matterhorn-f4fa1ba3556c/card-3-t17-colour.webp
deleted file mode 100644
index c3df3db3..00000000
Binary files a/public/ridge/matterhorn-f4fa1ba3556c/card-3-t17-colour.webp and /dev/null differ
diff --git a/public/ridge/matterhorn-f4fa1ba3556c/card-3-t17-geometry.webp b/public/ridge/matterhorn-f4fa1ba3556c/card-3-t17-geometry.webp
deleted file mode 100644
index 001a05ad..00000000
Binary files a/public/ridge/matterhorn-f4fa1ba3556c/card-3-t17-geometry.webp and /dev/null differ
diff --git a/public/ridge/matterhorn-f4fa1ba3556c/card-3-t18-colour.webp b/public/ridge/matterhorn-f4fa1ba3556c/card-3-t18-colour.webp
deleted file mode 100644
index 7b15e54a..00000000
Binary files a/public/ridge/matterhorn-f4fa1ba3556c/card-3-t18-colour.webp and /dev/null differ
diff --git a/public/ridge/matterhorn-f4fa1ba3556c/card-3-t18-geometry.webp b/public/ridge/matterhorn-f4fa1ba3556c/card-3-t18-geometry.webp
deleted file mode 100644
index 13da6721..00000000
Binary files a/public/ridge/matterhorn-f4fa1ba3556c/card-3-t18-geometry.webp and /dev/null differ
diff --git a/public/ridge/matterhorn-f4fa1ba3556c/card-3-t19-colour.webp b/public/ridge/matterhorn-f4fa1ba3556c/card-3-t19-colour.webp
deleted file mode 100644
index cf33cc80..00000000
Binary files a/public/ridge/matterhorn-f4fa1ba3556c/card-3-t19-colour.webp and /dev/null differ
diff --git a/public/ridge/matterhorn-f4fa1ba3556c/card-3-t19-geometry.webp b/public/ridge/matterhorn-f4fa1ba3556c/card-3-t19-geometry.webp
deleted file mode 100644
index 365814ea..00000000
Binary files a/public/ridge/matterhorn-f4fa1ba3556c/card-3-t19-geometry.webp and /dev/null differ
diff --git a/public/ridge/matterhorn-f4fa1ba3556c/card-3-t20-colour.webp b/public/ridge/matterhorn-f4fa1ba3556c/card-3-t20-colour.webp
deleted file mode 100644
index 245b0d51..00000000
Binary files a/public/ridge/matterhorn-f4fa1ba3556c/card-3-t20-colour.webp and /dev/null differ
diff --git a/public/ridge/matterhorn-f4fa1ba3556c/card-3-t20-geometry.webp b/public/ridge/matterhorn-f4fa1ba3556c/card-3-t20-geometry.webp
deleted file mode 100644
index 1c6c39a1..00000000
Binary files a/public/ridge/matterhorn-f4fa1ba3556c/card-3-t20-geometry.webp and /dev/null differ
diff --git a/public/ridge/matterhorn-f4fa1ba3556c/card-3-t21-colour.webp b/public/ridge/matterhorn-f4fa1ba3556c/card-3-t21-colour.webp
deleted file mode 100644
index 0e74973a..00000000
Binary files a/public/ridge/matterhorn-f4fa1ba3556c/card-3-t21-colour.webp and /dev/null differ
diff --git a/public/ridge/matterhorn-f4fa1ba3556c/card-3-t21-geometry.webp b/public/ridge/matterhorn-f4fa1ba3556c/card-3-t21-geometry.webp
deleted file mode 100644
index ed3051df..00000000
Binary files a/public/ridge/matterhorn-f4fa1ba3556c/card-3-t21-geometry.webp and /dev/null differ
diff --git a/public/ridge/matterhorn-f4fa1ba3556c/card-3-t22-colour.webp b/public/ridge/matterhorn-f4fa1ba3556c/card-3-t22-colour.webp
deleted file mode 100644
index 9b4fb9a5..00000000
Binary files a/public/ridge/matterhorn-f4fa1ba3556c/card-3-t22-colour.webp and /dev/null differ
diff --git a/public/ridge/matterhorn-f4fa1ba3556c/card-3-t22-geometry.webp b/public/ridge/matterhorn-f4fa1ba3556c/card-3-t22-geometry.webp
deleted file mode 100644
index 09c108a9..00000000
Binary files a/public/ridge/matterhorn-f4fa1ba3556c/card-3-t22-geometry.webp and /dev/null differ
diff --git a/public/ridge/matterhorn-f4fa1ba3556c/card-3-t23-colour.webp b/public/ridge/matterhorn-f4fa1ba3556c/card-3-t23-colour.webp
deleted file mode 100644
index ca26c559..00000000
Binary files a/public/ridge/matterhorn-f4fa1ba3556c/card-3-t23-colour.webp and /dev/null differ
diff --git a/public/ridge/matterhorn-f4fa1ba3556c/card-3-t23-geometry.webp b/public/ridge/matterhorn-f4fa1ba3556c/card-3-t23-geometry.webp
deleted file mode 100644
index 7d66bb6f..00000000
Binary files a/public/ridge/matterhorn-f4fa1ba3556c/card-3-t23-geometry.webp and /dev/null differ
diff --git a/public/ridge/matterhorn-f4fa1ba3556c/card-3-t24-colour.webp b/public/ridge/matterhorn-f4fa1ba3556c/card-3-t24-colour.webp
deleted file mode 100644
index 58b4e401..00000000
Binary files a/public/ridge/matterhorn-f4fa1ba3556c/card-3-t24-colour.webp and /dev/null differ
diff --git a/public/ridge/matterhorn-f4fa1ba3556c/card-3-t24-geometry.webp b/public/ridge/matterhorn-f4fa1ba3556c/card-3-t24-geometry.webp
deleted file mode 100644
index fb10bdc4..00000000
Binary files a/public/ridge/matterhorn-f4fa1ba3556c/card-3-t24-geometry.webp and /dev/null differ
diff --git a/public/ridge/matterhorn-f4fa1ba3556c/card-3-t25-colour.webp b/public/ridge/matterhorn-f4fa1ba3556c/card-3-t25-colour.webp
deleted file mode 100644
index eb9d5ede..00000000
Binary files a/public/ridge/matterhorn-f4fa1ba3556c/card-3-t25-colour.webp and /dev/null differ
diff --git a/public/ridge/matterhorn-f4fa1ba3556c/card-3-t25-geometry.webp b/public/ridge/matterhorn-f4fa1ba3556c/card-3-t25-geometry.webp
deleted file mode 100644
index 8b43d3a7..00000000
Binary files a/public/ridge/matterhorn-f4fa1ba3556c/card-3-t25-geometry.webp and /dev/null differ
diff --git a/public/ridge/matterhorn-f4fa1ba3556c/card-3-t26-colour.webp b/public/ridge/matterhorn-f4fa1ba3556c/card-3-t26-colour.webp
deleted file mode 100644
index 26e79d1f..00000000
Binary files a/public/ridge/matterhorn-f4fa1ba3556c/card-3-t26-colour.webp and /dev/null differ
diff --git a/public/ridge/matterhorn-f4fa1ba3556c/card-3-t26-geometry.webp b/public/ridge/matterhorn-f4fa1ba3556c/card-3-t26-geometry.webp
deleted file mode 100644
index 9ccfeec2..00000000
Binary files a/public/ridge/matterhorn-f4fa1ba3556c/card-3-t26-geometry.webp and /dev/null differ
diff --git a/public/ridge/matterhorn-f4fa1ba3556c/card-3-t27-colour.webp b/public/ridge/matterhorn-f4fa1ba3556c/card-3-t27-colour.webp
deleted file mode 100644
index d8f54c65..00000000
Binary files a/public/ridge/matterhorn-f4fa1ba3556c/card-3-t27-colour.webp and /dev/null differ
diff --git a/public/ridge/matterhorn-f4fa1ba3556c/card-3-t27-geometry.webp b/public/ridge/matterhorn-f4fa1ba3556c/card-3-t27-geometry.webp
deleted file mode 100644
index 9df85bac..00000000
Binary files a/public/ridge/matterhorn-f4fa1ba3556c/card-3-t27-geometry.webp and /dev/null differ
diff --git a/public/ridge/matterhorn-f4fa1ba3556c/card-3-t28-colour.webp b/public/ridge/matterhorn-f4fa1ba3556c/card-3-t28-colour.webp
deleted file mode 100644
index 89bfcc56..00000000
Binary files a/public/ridge/matterhorn-f4fa1ba3556c/card-3-t28-colour.webp and /dev/null differ
diff --git a/public/ridge/matterhorn-f4fa1ba3556c/card-3-t28-geometry.webp b/public/ridge/matterhorn-f4fa1ba3556c/card-3-t28-geometry.webp
deleted file mode 100644
index d498f614..00000000
Binary files a/public/ridge/matterhorn-f4fa1ba3556c/card-3-t28-geometry.webp and /dev/null differ
diff --git a/public/ridge/matterhorn-f4fa1ba3556c/card-3-t29-colour.webp b/public/ridge/matterhorn-f4fa1ba3556c/card-3-t29-colour.webp
deleted file mode 100644
index c7d21c15..00000000
Binary files a/public/ridge/matterhorn-f4fa1ba3556c/card-3-t29-colour.webp and /dev/null differ
diff --git a/public/ridge/matterhorn-f4fa1ba3556c/card-3-t29-geometry.webp b/public/ridge/matterhorn-f4fa1ba3556c/card-3-t29-geometry.webp
deleted file mode 100644
index fcd7f80f..00000000
Binary files a/public/ridge/matterhorn-f4fa1ba3556c/card-3-t29-geometry.webp and /dev/null differ
diff --git a/public/ridge/matterhorn-f4fa1ba3556c/card-3-t30-colour.webp b/public/ridge/matterhorn-f4fa1ba3556c/card-3-t30-colour.webp
deleted file mode 100644
index f3b486db..00000000
Binary files a/public/ridge/matterhorn-f4fa1ba3556c/card-3-t30-colour.webp and /dev/null differ
diff --git a/public/ridge/matterhorn-f4fa1ba3556c/card-3-t30-geometry.webp b/public/ridge/matterhorn-f4fa1ba3556c/card-3-t30-geometry.webp
deleted file mode 100644
index 7ac31bea..00000000
Binary files a/public/ridge/matterhorn-f4fa1ba3556c/card-3-t30-geometry.webp and /dev/null differ
diff --git a/public/ridge/matterhorn-f4fa1ba3556c/card-3-t31-colour.webp b/public/ridge/matterhorn-f4fa1ba3556c/card-3-t31-colour.webp
deleted file mode 100644
index 6af48260..00000000
Binary files a/public/ridge/matterhorn-f4fa1ba3556c/card-3-t31-colour.webp and /dev/null differ
diff --git a/public/ridge/matterhorn-f4fa1ba3556c/card-3-t31-geometry.webp b/public/ridge/matterhorn-f4fa1ba3556c/card-3-t31-geometry.webp
deleted file mode 100644
index fb0ea964..00000000
Binary files a/public/ridge/matterhorn-f4fa1ba3556c/card-3-t31-geometry.webp and /dev/null differ
diff --git a/public/ridge/matterhorn-f4fa1ba3556c/manifest.json b/public/ridge/matterhorn-f4fa1ba3556c/manifest.json
deleted file mode 100644
index 64565e37..00000000
--- a/public/ridge/matterhorn-f4fa1ba3556c/manifest.json
+++ /dev/null
@@ -1,1796 +0,0 @@
-{
- "schema": 3,
- "baker_version": 7,
- "bake_id": "f4fa1ba3556c",
- "place": {
- "id": "matterhorn",
- "name": "Matterhorn from the Gornergrat",
- "lat": 45.983139,
- "lon": 7.782466,
- "altitude_km": 3.090737150326758,
- "eye_m": 3092.337150326758,
- "tz": "Europe/Zurich"
- },
- "view": {
- "look_az_deg": 265.7572707724987,
- "plane_h": 600,
- "px_per_deg_h": 17.77777777777778,
- "px_per_deg_v": 32.88082308679107,
- "exaggeration": 1.8495462986319975,
- "horizon_row": 385.03507633717794,
- "sky_row": 24.0,
- "near_row": 396.0,
- "ring_w": 6400,
- "tile_w": 200,
- "tiles": 32,
- "apron": 2
- },
- "curvature": {
- "r_earth_m": 6371000.0,
- "k_ref": 0.13
- },
- "encoding": {
- "log_d_min": 6.214608098422191,
- "log_d_max": 11.00475592466117,
- "normal": "rt8"
- },
- "camera": {
- "r_max_m": 95.8,
- "r_max_forward_m": 198.4
- },
- "cards": [
- {
- "near_m": null,
- "far_m": 30673.10182459612
- },
- {
- "near_m": 30673.10182459612,
- "far_m": 46643.05508137366
- },
- {
- "near_m": 46643.05508137366,
- "far_m": 59265.74213208556
- },
- {
- "near_m": 59265.74213208556,
- "far_m": null
- }
- ],
- "tiles": [
- [
- {
- "top": 382,
- "h": 218,
- "distance_m": 5200.7626953125,
- "colour": {
- "file": "card-0-t00-colour.webp",
- "bytes": 5116
- },
- "geometry": {
- "file": "card-0-t00-geometry.webp",
- "bytes": 32912
- }
- },
- {
- "top": 358,
- "h": 242,
- "distance_m": 42748.96484375,
- "colour": {
- "file": "card-1-t00-colour.webp",
- "bytes": 3980
- },
- "geometry": {
- "file": "card-1-t00-geometry.webp",
- "bytes": 20706
- }
- },
- {
- "top": 370,
- "h": 230,
- "distance_m": 52637.3125,
- "colour": {
- "file": "card-2-t00-colour.webp",
- "bytes": 3938
- },
- "geometry": {
- "file": "card-2-t00-geometry.webp",
- "bytes": 14174
- }
- },
- {
- "top": 370,
- "h": 230,
- "distance_m": 56318.53125,
- "colour": {
- "file": "card-3-t00-colour.webp",
- "bytes": 1492
- },
- "geometry": {
- "file": "card-3-t00-geometry.webp",
- "bytes": 4918
- }
- }
- ],
- [
- {
- "top": 254,
- "h": 346,
- "distance_m": 4215.55517578125,
- "colour": {
- "file": "card-0-t01-colour.webp",
- "bytes": 5314
- },
- "geometry": {
- "file": "card-0-t01-geometry.webp",
- "bytes": 35936
- }
- },
- {
- "top": 365,
- "h": 235,
- "distance_m": 39018.9296875,
- "colour": {
- "file": "card-1-t01-colour.webp",
- "bytes": 5848
- },
- "geometry": {
- "file": "card-1-t01-geometry.webp",
- "bytes": 27468
- }
- },
- {
- "top": 359,
- "h": 241,
- "distance_m": 48454.3671875,
- "colour": {
- "file": "card-2-t01-colour.webp",
- "bytes": 4354
- },
- "geometry": {
- "file": "card-2-t01-geometry.webp",
- "bytes": 19594
- }
- },
- {
- "top": 359,
- "h": 241,
- "distance_m": 56371.99609375,
- "colour": {
- "file": "card-3-t01-colour.webp",
- "bytes": 1742
- },
- "geometry": {
- "file": "card-3-t01-geometry.webp",
- "bytes": 6982
- }
- }
- ],
- [
- {
- "top": 192,
- "h": 408,
- "distance_m": 4912.3134765625,
- "colour": {
- "file": "card-0-t02-colour.webp",
- "bytes": 6306
- },
- "geometry": {
- "file": "card-0-t02-geometry.webp",
- "bytes": 49514
- }
- },
- {
- "top": 387,
- "h": 213,
- "distance_m": 30035.7734375,
- "colour": {
- "file": "card-1-t02-colour.webp",
- "bytes": 1508
- },
- "geometry": {
- "file": "card-1-t02-geometry.webp",
- "bytes": 4378
- }
- },
- {
- "top": 386,
- "h": 214,
- "distance_m": 48779.0078125,
- "colour": {
- "file": "card-2-t02-colour.webp",
- "bytes": 3738
- },
- "geometry": {
- "file": "card-2-t02-geometry.webp",
- "bytes": 15058
- }
- },
- {
- "top": 386,
- "h": 214,
- "distance_m": 58255.13671875,
- "colour": {
- "file": "card-3-t02-colour.webp",
- "bytes": 1652
- },
- "geometry": {
- "file": "card-3-t02-geometry.webp",
- "bytes": 6844
- }
- }
- ],
- [
- {
- "top": 197,
- "h": 403,
- "distance_m": 5298.56640625,
- "colour": {
- "file": "card-0-t03-colour.webp",
- "bytes": 6244
- },
- "geometry": {
- "file": "card-0-t03-geometry.webp",
- "bytes": 47566
- }
- },
- {
- "top": 370,
- "h": 230,
- "distance_m": 36035.57421875,
- "colour": {
- "file": "card-1-t03-colour.webp",
- "bytes": 2120
- },
- "geometry": {
- "file": "card-1-t03-geometry.webp",
- "bytes": 7528
- }
- },
- {
- "top": 387,
- "h": 213,
- "distance_m": 44827.15625,
- "colour": {
- "file": "card-2-t03-colour.webp",
- "bytes": 2206
- },
- "geometry": {
- "file": "card-2-t03-geometry.webp",
- "bytes": 8984
- }
- },
- {
- "top": 394,
- "h": 206,
- "distance_m": 57030.5625,
- "colour": {
- "file": "card-3-t03-colour.webp",
- "bytes": 1690
- },
- "geometry": {
- "file": "card-3-t03-geometry.webp",
- "bytes": 6070
- }
- }
- ],
- [
- {
- "top": 228,
- "h": 372,
- "distance_m": 1534.8564453125,
- "colour": {
- "file": "card-0-t04-colour.webp",
- "bytes": 7102
- },
- "geometry": {
- "file": "card-0-t04-geometry.webp",
- "bytes": 47722
- }
- },
- {
- "top": 399,
- "h": 201,
- "distance_m": 37010.08203125,
- "colour": {
- "file": "card-1-t04-colour.webp",
- "bytes": 3318
- },
- "geometry": {
- "file": "card-1-t04-geometry.webp",
- "bytes": 11958
- }
- },
- {
- "top": 399,
- "h": 201,
- "distance_m": 45624.83984375,
- "colour": {
- "file": "card-2-t04-colour.webp",
- "bytes": 3714
- },
- "geometry": {
- "file": "card-2-t04-geometry.webp",
- "bytes": 19808
- }
- },
- {
- "top": 404,
- "h": 196,
- "distance_m": 56994.40234375,
- "colour": {
- "file": "card-3-t04-colour.webp",
- "bytes": 1810
- },
- "geometry": {
- "file": "card-3-t04-geometry.webp",
- "bytes": 7890
- }
- }
- ],
- [
- {
- "top": 175,
- "h": 425,
- "distance_m": 1364.1209716796875,
- "colour": {
- "file": "card-0-t05-colour.webp",
- "bytes": 5118
- },
- "geometry": {
- "file": "card-0-t05-geometry.webp",
- "bytes": 39596
- }
- },
- {
- "top": 414,
- "h": 186,
- "distance_m": 29493.169921875,
- "colour": {
- "file": "card-1-t05-colour.webp",
- "bytes": 2236
- },
- "geometry": {
- "file": "card-1-t05-geometry.webp",
- "bytes": 10228
- }
- },
- {
- "top": 407,
- "h": 193,
- "distance_m": 50090.2109375,
- "colour": {
- "file": "card-2-t05-colour.webp",
- "bytes": 3600
- },
- "geometry": {
- "file": "card-2-t05-geometry.webp",
- "bytes": 23392
- }
- },
- {
- "top": 407,
- "h": 193,
- "distance_m": 57102.5625,
- "colour": {
- "file": "card-3-t05-colour.webp",
- "bytes": 1606
- },
- "geometry": {
- "file": "card-3-t05-geometry.webp",
- "bytes": 5904
- }
- }
- ],
- [
- {
- "top": 177,
- "h": 423,
- "distance_m": 1182.6668701171875,
- "colour": {
- "file": "card-0-t06-colour.webp",
- "bytes": 4482
- },
- "geometry": {
- "file": "card-0-t06-geometry.webp",
- "bytes": 29128
- }
- },
- {
- "top": 423,
- "h": 177,
- "distance_m": 30519.244140625,
- "colour": {
- "file": "card-1-t06-colour.webp",
- "bytes": 4036
- },
- "geometry": {
- "file": "card-1-t06-geometry.webp",
- "bytes": 22168
- }
- },
- {
- "top": 423,
- "h": 177,
- "distance_m": 45924.69921875,
- "colour": {
- "file": "card-2-t06-colour.webp",
- "bytes": 2914
- },
- "geometry": {
- "file": "card-2-t06-geometry.webp",
- "bytes": 19660
- }
- },
- {
- "top": 424,
- "h": 176,
- "distance_m": 56655.05859375,
- "colour": {
- "file": "card-3-t06-colour.webp",
- "bytes": 1038
- },
- "geometry": {
- "file": "card-3-t06-geometry.webp",
- "bytes": 6434
- }
- }
- ],
- [
- {
- "top": 198,
- "h": 402,
- "distance_m": 2050.119140625,
- "colour": {
- "file": "card-0-t07-colour.webp",
- "bytes": 5192
- },
- "geometry": {
- "file": "card-0-t07-geometry.webp",
- "bytes": 31830
- }
- },
- {
- "top": 432,
- "h": 168,
- "distance_m": 34567.80078125,
- "colour": {
- "file": "card-1-t07-colour.webp",
- "bytes": 3088
- },
- "geometry": {
- "file": "card-1-t07-geometry.webp",
- "bytes": 19350
- }
- },
- {
- "top": 424,
- "h": 176,
- "distance_m": 47590.3671875,
- "colour": {
- "file": "card-2-t07-colour.webp",
- "bytes": 2098
- },
- "geometry": {
- "file": "card-2-t07-geometry.webp",
- "bytes": 15776
- }
- },
- {
- "top": 424,
- "h": 176,
- "distance_m": 56721.65625,
- "colour": {
- "file": "card-3-t07-colour.webp",
- "bytes": 1236
- },
- "geometry": {
- "file": "card-3-t07-geometry.webp",
- "bytes": 7468
- }
- }
- ],
- [
- {
- "top": 238,
- "h": 362,
- "distance_m": 3579.99951171875,
- "colour": {
- "file": "card-0-t08-colour.webp",
- "bytes": 4910
- },
- "geometry": {
- "file": "card-0-t08-geometry.webp",
- "bytes": 45504
- }
- },
- {
- "top": 429,
- "h": 171,
- "distance_m": 30154.337890625,
- "colour": {
- "file": "card-1-t08-colour.webp",
- "bytes": 1882
- },
- "geometry": {
- "file": "card-1-t08-geometry.webp",
- "bytes": 19770
- }
- },
- {
- "top": 434,
- "h": 166,
- "distance_m": 46581.98046875,
- "colour": {
- "file": "card-2-t08-colour.webp",
- "bytes": 1262
- },
- "geometry": {
- "file": "card-2-t08-geometry.webp",
- "bytes": 5610
- }
- },
- {
- "top": 459,
- "h": 141,
- "distance_m": 57186.70703125,
- "colour": {
- "file": "card-3-t08-colour.webp",
- "bytes": 646
- },
- "geometry": {
- "file": "card-3-t08-geometry.webp",
- "bytes": 2126
- }
- }
- ],
- [
- {
- "top": 251,
- "h": 349,
- "distance_m": 4235.15966796875,
- "colour": {
- "file": "card-0-t09-colour.webp",
- "bytes": 1402
- },
- "geometry": {
- "file": "card-0-t09-geometry.webp",
- "bytes": 39436
- }
- },
- {
- "top": 440,
- "h": 160,
- "distance_m": 33119.98828125,
- "colour": {
- "file": "card-1-t09-colour.webp",
- "bytes": 1482
- },
- "geometry": {
- "file": "card-1-t09-geometry.webp",
- "bytes": 10982
- }
- },
- {
- "top": 449,
- "h": 151,
- "distance_m": 45002.60546875,
- "colour": {
- "file": "card-2-t09-colour.webp",
- "bytes": 1332
- },
- "geometry": {
- "file": "card-2-t09-geometry.webp",
- "bytes": 7202
- }
- },
- {
- "top": 460,
- "h": 140,
- "distance_m": 56251.703125,
- "colour": {
- "file": "card-3-t09-colour.webp",
- "bytes": 578
- },
- "geometry": {
- "file": "card-3-t09-geometry.webp",
- "bytes": 2594
- }
- }
- ],
- [
- {
- "top": 55,
- "h": 545,
- "distance_m": 4756.9658203125,
- "colour": {
- "file": "card-0-t10-colour.webp",
- "bytes": 7252
- },
- "geometry": {
- "file": "card-0-t10-geometry.webp",
- "bytes": 67260
- }
- },
- {
- "top": 461,
- "h": 139,
- "distance_m": 29934.087890625,
- "colour": {
- "file": "card-1-t10-colour.webp",
- "bytes": 1212
- },
- "geometry": {
- "file": "card-1-t10-geometry.webp",
- "bytes": 8122
- }
- },
- {
- "top": 467,
- "h": 133,
- "distance_m": 45674.9921875,
- "colour": {
- "file": "card-2-t10-colour.webp",
- "bytes": 1068
- },
- "geometry": {
- "file": "card-2-t10-geometry.webp",
- "bytes": 7526
- }
- },
- {
- "top": 471,
- "h": 129,
- "distance_m": 56747.79296875,
- "colour": {
- "file": "card-3-t10-colour.webp",
- "bytes": 514
- },
- "geometry": {
- "file": "card-3-t10-geometry.webp",
- "bytes": 2212
- }
- }
- ],
- [
- {
- "top": 55,
- "h": 545,
- "distance_m": 4971.21337890625,
- "colour": {
- "file": "card-0-t11-colour.webp",
- "bytes": 8670
- },
- "geometry": {
- "file": "card-0-t11-geometry.webp",
- "bytes": 68938
- }
- },
- {
- "top": 441,
- "h": 159,
- "distance_m": 34451.1953125,
- "colour": {
- "file": "card-1-t11-colour.webp",
- "bytes": 1460
- },
- "geometry": {
- "file": "card-1-t11-geometry.webp",
- "bytes": 14376
- }
- },
- {
- "top": 470,
- "h": 130,
- "distance_m": 51066.16796875,
- "colour": {
- "file": "card-2-t11-colour.webp",
- "bytes": 1110
- },
- "geometry": {
- "file": "card-2-t11-geometry.webp",
- "bytes": 4576
- }
- },
- {
- "top": 472,
- "h": 128,
- "distance_m": 56986.30859375,
- "colour": {
- "file": "card-3-t11-colour.webp",
- "bytes": 454
- },
- "geometry": {
- "file": "card-3-t11-geometry.webp",
- "bytes": 2358
- }
- }
- ],
- [
- {
- "top": 107,
- "h": 493,
- "distance_m": 4934.541015625,
- "colour": {
- "file": "card-0-t12-colour.webp",
- "bytes": 6688
- },
- "geometry": {
- "file": "card-0-t12-geometry.webp",
- "bytes": 64866
- }
- },
- {
- "top": 448,
- "h": 152,
- "distance_m": 31824.158203125,
- "colour": {
- "file": "card-1-t12-colour.webp",
- "bytes": 1444
- },
- "geometry": {
- "file": "card-1-t12-geometry.webp",
- "bytes": 16024
- }
- },
- {
- "top": 464,
- "h": 136,
- "distance_m": 45762.671875,
- "colour": {
- "file": "card-2-t12-colour.webp",
- "bytes": 676
- },
- "geometry": {
- "file": "card-2-t12-geometry.webp",
- "bytes": 2428
- }
- },
- {
- "top": 481,
- "h": 119,
- "distance_m": 57345.6328125,
- "colour": {
- "file": "card-3-t12-colour.webp",
- "bytes": 252
- },
- "geometry": {
- "file": "card-3-t12-geometry.webp",
- "bytes": 1694
- }
- }
- ],
- [
- {
- "top": 31,
- "h": 569,
- "distance_m": 5699.51953125,
- "colour": {
- "file": "card-0-t13-colour.webp",
- "bytes": 3424
- },
- "geometry": {
- "file": "card-0-t13-geometry.webp",
- "bytes": 64924
- }
- },
- {
- "top": 416,
- "h": 184,
- "distance_m": 30396.14453125,
- "colour": {
- "file": "card-1-t13-colour.webp",
- "bytes": 1818
- },
- "geometry": {
- "file": "card-1-t13-geometry.webp",
- "bytes": 11370
- }
- },
- {
- "top": 466,
- "h": 134,
- "distance_m": 47246.19140625,
- "colour": {
- "file": "card-2-t13-colour.webp",
- "bytes": 720
- },
- "geometry": {
- "file": "card-2-t13-geometry.webp",
- "bytes": 2078
- }
- },
- {
- "top": 481,
- "h": 119,
- "distance_m": 57345.6328125,
- "colour": {
- "file": "card-3-t13-colour.webp",
- "bytes": 242
- },
- "geometry": {
- "file": "card-3-t13-geometry.webp",
- "bytes": 1692
- }
- }
- ],
- [
- {
- "top": 76,
- "h": 524,
- "distance_m": 4679.2646484375,
- "colour": {
- "file": "card-0-t14-colour.webp",
- "bytes": 5998
- },
- "geometry": {
- "file": "card-0-t14-geometry.webp",
- "bytes": 60814
- }
- },
- {
- "top": 416,
- "h": 184,
- "distance_m": 33286.3515625,
- "colour": {
- "file": "card-1-t14-colour.webp",
- "bytes": 1790
- },
- "geometry": {
- "file": "card-1-t14-geometry.webp",
- "bytes": 9784
- }
- },
- {
- "top": 424,
- "h": 176,
- "distance_m": 44325.48828125,
- "colour": {
- "file": "card-2-t14-colour.webp",
- "bytes": 934
- },
- "geometry": {
- "file": "card-2-t14-geometry.webp",
- "bytes": 2340
- }
- },
- {
- "top": 472,
- "h": 128,
- "distance_m": 57117.16015625,
- "colour": {
- "file": "card-3-t14-colour.webp",
- "bytes": 390
- },
- "geometry": {
- "file": "card-3-t14-geometry.webp",
- "bytes": 2114
- }
- }
- ],
- [
- {
- "top": 93,
- "h": 507,
- "distance_m": 3718.8134765625,
- "colour": {
- "file": "card-0-t15-colour.webp",
- "bytes": 6092
- },
- "geometry": {
- "file": "card-0-t15-geometry.webp",
- "bytes": 54590
- }
- },
- {
- "top": 393,
- "h": 207,
- "distance_m": 29459.6875,
- "colour": {
- "file": "card-1-t15-colour.webp",
- "bytes": 2484
- },
- "geometry": {
- "file": "card-1-t15-geometry.webp",
- "bytes": 11778
- }
- },
- {
- "top": 423,
- "h": 177,
- "distance_m": 48277.2421875,
- "colour": {
- "file": "card-2-t15-colour.webp",
- "bytes": 1188
- },
- "geometry": {
- "file": "card-2-t15-geometry.webp",
- "bytes": 6648
- }
- },
- {
- "top": 469,
- "h": 131,
- "distance_m": 57345.6328125,
- "colour": {
- "file": "card-3-t15-colour.webp",
- "bytes": 422
- },
- "geometry": {
- "file": "card-3-t15-geometry.webp",
- "bytes": 1948
- }
- }
- ],
- [
- {
- "top": 42,
- "h": 558,
- "distance_m": 4111.91357421875,
- "colour": {
- "file": "card-0-t16-colour.webp",
- "bytes": 5116
- },
- "geometry": {
- "file": "card-0-t16-geometry.webp",
- "bytes": 50356
- }
- },
- {
- "top": 403,
- "h": 197,
- "distance_m": 34945.5,
- "colour": {
- "file": "card-1-t16-colour.webp",
- "bytes": 5388
- },
- "geometry": {
- "file": "card-1-t16-geometry.webp",
- "bytes": 22758
- }
- },
- {
- "top": 412,
- "h": 188,
- "distance_m": 45557.578125,
- "colour": {
- "file": "card-2-t16-colour.webp",
- "bytes": 2200
- },
- "geometry": {
- "file": "card-2-t16-geometry.webp",
- "bytes": 17398
- }
- },
- {
- "top": 416,
- "h": 184,
- "distance_m": 55988.37890625,
- "colour": {
- "file": "card-3-t16-colour.webp",
- "bytes": 902
- },
- "geometry": {
- "file": "card-3-t16-geometry.webp",
- "bytes": 3484
- }
- }
- ],
- [
- {
- "top": 24,
- "h": 576,
- "distance_m": 4138.59521484375,
- "colour": {
- "file": "card-0-t17-colour.webp",
- "bytes": 4186
- },
- "geometry": {
- "file": "card-0-t17-geometry.webp",
- "bytes": 53810
- }
- },
- {
- "top": 398,
- "h": 202,
- "distance_m": 36938.1171875,
- "colour": {
- "file": "card-1-t17-colour.webp",
- "bytes": 6772
- },
- "geometry": {
- "file": "card-1-t17-geometry.webp",
- "bytes": 36414
- }
- },
- {
- "top": 398,
- "h": 202,
- "distance_m": 45468.5546875,
- "colour": {
- "file": "card-2-t17-colour.webp",
- "bytes": 2606
- },
- "geometry": {
- "file": "card-2-t17-geometry.webp",
- "bytes": 13168
- }
- },
- {
- "top": 415,
- "h": 185,
- "distance_m": 55893.73828125,
- "colour": {
- "file": "card-3-t17-colour.webp",
- "bytes": 1082
- },
- "geometry": {
- "file": "card-3-t17-geometry.webp",
- "bytes": 3378
- }
- }
- ],
- [
- {
- "top": 25,
- "h": 575,
- "distance_m": 4345.9052734375,
- "colour": {
- "file": "card-0-t18-colour.webp",
- "bytes": 4400
- },
- "geometry": {
- "file": "card-0-t18-geometry.webp",
- "bytes": 54898
- }
- },
- {
- "top": 376,
- "h": 224,
- "distance_m": 34020.55078125,
- "colour": {
- "file": "card-1-t18-colour.webp",
- "bytes": 6162
- },
- "geometry": {
- "file": "card-1-t18-geometry.webp",
- "bytes": 38018
- }
- },
- {
- "top": 376,
- "h": 224,
- "distance_m": 46033.62109375,
- "colour": {
- "file": "card-2-t18-colour.webp",
- "bytes": 2404
- },
- "geometry": {
- "file": "card-2-t18-geometry.webp",
- "bytes": 8386
- }
- },
- {
- "top": 378,
- "h": 222,
- "distance_m": 58590.1015625,
- "colour": {
- "file": "card-3-t18-colour.webp",
- "bytes": 2098
- },
- "geometry": {
- "file": "card-3-t18-geometry.webp",
- "bytes": 7536
- }
- }
- ],
- [
- {
- "top": 133,
- "h": 467,
- "distance_m": 4712.76806640625,
- "colour": {
- "file": "card-0-t19-colour.webp",
- "bytes": 5342
- },
- "geometry": {
- "file": "card-0-t19-geometry.webp",
- "bytes": 51372
- }
- },
- {
- "top": 375,
- "h": 225,
- "distance_m": 41753.94921875,
- "colour": {
- "file": "card-1-t19-colour.webp",
- "bytes": 6084
- },
- "geometry": {
- "file": "card-1-t19-geometry.webp",
- "bytes": 26460
- }
- },
- {
- "top": 369,
- "h": 231,
- "distance_m": 45021.44921875,
- "colour": {
- "file": "card-2-t19-colour.webp",
- "bytes": 3274
- },
- "geometry": {
- "file": "card-2-t19-geometry.webp",
- "bytes": 10926
- }
- },
- {
- "top": 369,
- "h": 231,
- "distance_m": 57015.609375,
- "colour": {
- "file": "card-3-t19-colour.webp",
- "bytes": 2592
- },
- "geometry": {
- "file": "card-3-t19-geometry.webp",
- "bytes": 9752
- }
- }
- ],
- [
- {
- "top": 269,
- "h": 331,
- "distance_m": 4853.74560546875,
- "colour": {
- "file": "card-0-t20-colour.webp",
- "bytes": 4084
- },
- "geometry": {
- "file": "card-0-t20-geometry.webp",
- "bytes": 40014
- }
- },
- {
- "top": 384,
- "h": 216,
- "distance_m": 42653.47265625,
- "colour": {
- "file": "card-1-t20-colour.webp",
- "bytes": 2514
- },
- "geometry": {
- "file": "card-1-t20-geometry.webp",
- "bytes": 7660
- }
- },
- {
- "top": 386,
- "h": 214,
- "distance_m": 50108.26953125,
- "colour": {
- "file": "card-2-t20-colour.webp",
- "bytes": 4602
- },
- "geometry": {
- "file": "card-2-t20-geometry.webp",
- "bytes": 20942
- }
- },
- {
- "top": 386,
- "h": 214,
- "distance_m": 56993.9140625,
- "colour": {
- "file": "card-3-t20-colour.webp",
- "bytes": 1858
- },
- "geometry": {
- "file": "card-3-t20-geometry.webp",
- "bytes": 11374
- }
- }
- ],
- [
- {
- "top": 288,
- "h": 312,
- "distance_m": 4818.70654296875,
- "colour": {
- "file": "card-0-t21-colour.webp",
- "bytes": 4582
- },
- "geometry": {
- "file": "card-0-t21-geometry.webp",
- "bytes": 40282
- }
- },
- {
- "top": 383,
- "h": 217,
- "distance_m": 29521.30859375,
- "colour": {
- "file": "card-1-t21-colour.webp",
- "bytes": 2596
- },
- "geometry": {
- "file": "card-1-t21-geometry.webp",
- "bytes": 11918
- }
- },
- {
- "top": 394,
- "h": 206,
- "distance_m": 46590.4609375,
- "colour": {
- "file": "card-2-t21-colour.webp",
- "bytes": 2394
- },
- "geometry": {
- "file": "card-2-t21-geometry.webp",
- "bytes": 16616
- }
- },
- {
- "top": 404,
- "h": 196,
- "distance_m": 56939.96484375,
- "colour": {
- "file": "card-3-t21-colour.webp",
- "bytes": 1042
- },
- "geometry": {
- "file": "card-3-t21-geometry.webp",
- "bytes": 3196
- }
- }
- ],
- [
- {
- "top": 290,
- "h": 310,
- "distance_m": 4831.7939453125,
- "colour": {
- "file": "card-0-t22-colour.webp",
- "bytes": 4572
- },
- "geometry": {
- "file": "card-0-t22-geometry.webp",
- "bytes": 44246
- }
- },
- {
- "top": 363,
- "h": 237,
- "distance_m": 33445.0078125,
- "colour": {
- "file": "card-1-t22-colour.webp",
- "bytes": 2468
- },
- "geometry": {
- "file": "card-1-t22-geometry.webp",
- "bytes": 10830
- }
- },
- {
- "top": 388,
- "h": 212,
- "distance_m": 55223.69921875,
- "colour": {
- "file": "card-2-t22-colour.webp",
- "bytes": 1818
- },
- "geometry": {
- "file": "card-2-t22-geometry.webp",
- "bytes": 4430
- }
- },
- {
- "top": 388,
- "h": 212,
- "distance_m": 55958.26953125,
- "colour": {
- "file": "card-3-t22-colour.webp",
- "bytes": 1248
- },
- "geometry": {
- "file": "card-3-t22-geometry.webp",
- "bytes": 4024
- }
- }
- ],
- [
- {
- "top": 148,
- "h": 452,
- "distance_m": 7991.69677734375,
- "colour": {
- "file": "card-0-t23-colour.webp",
- "bytes": 5978
- },
- "geometry": {
- "file": "card-0-t23-geometry.webp",
- "bytes": 54266
- }
- },
- {
- "top": 330,
- "h": 270,
- "distance_m": 35701.03515625,
- "colour": {
- "file": "card-1-t23-colour.webp",
- "bytes": 2580
- },
- "geometry": {
- "file": "card-1-t23-geometry.webp",
- "bytes": 12230
- }
- },
- {
- "top": 369,
- "h": 231,
- "distance_m": 54297.42578125,
- "colour": {
- "file": "card-2-t23-colour.webp",
- "bytes": 5658
- },
- "geometry": {
- "file": "card-2-t23-geometry.webp",
- "bytes": 15656
- }
- },
- {
- "top": 369,
- "h": 231,
- "distance_m": 56929.9765625,
- "colour": {
- "file": "card-3-t23-colour.webp",
- "bytes": 2360
- },
- "geometry": {
- "file": "card-3-t23-geometry.webp",
- "bytes": 9738
- }
- }
- ],
- [
- {
- "top": 287,
- "h": 313,
- "distance_m": 7433.8583984375,
- "colour": {
- "file": "card-0-t24-colour.webp",
- "bytes": 7246
- },
- "geometry": {
- "file": "card-0-t24-geometry.webp",
- "bytes": 49400
- }
- },
- {
- "top": 343,
- "h": 257,
- "distance_m": 30422.564453125,
- "colour": {
- "file": "card-1-t24-colour.webp",
- "bytes": 1708
- },
- "geometry": {
- "file": "card-1-t24-geometry.webp",
- "bytes": 8764
- }
- },
- {
- "top": 382,
- "h": 218,
- "distance_m": 46458.15625,
- "colour": {
- "file": "card-2-t24-colour.webp",
- "bytes": 2910
- },
- "geometry": {
- "file": "card-2-t24-geometry.webp",
- "bytes": 11038
- }
- },
- {
- "top": 382,
- "h": 218,
- "distance_m": 56836.88671875,
- "colour": {
- "file": "card-3-t24-colour.webp",
- "bytes": 1666
- },
- "geometry": {
- "file": "card-3-t24-geometry.webp",
- "bytes": 7624
- }
- }
- ],
- [
- {
- "top": 238,
- "h": 362,
- "distance_m": 10644.763671875,
- "colour": {
- "file": "card-0-t25-colour.webp",
- "bytes": 6366
- },
- "geometry": {
- "file": "card-0-t25-geometry.webp",
- "bytes": 53384
- }
- },
- {
- "top": 365,
- "h": 235,
- "distance_m": 32008.306640625,
- "colour": {
- "file": "card-1-t25-colour.webp",
- "bytes": 1230
- },
- "geometry": {
- "file": "card-1-t25-geometry.webp",
- "bytes": 4182
- }
- },
- {
- "top": 403,
- "h": 197,
- "distance_m": 47011.2578125,
- "colour": {
- "file": "card-2-t25-colour.webp",
- "bytes": 1948
- },
- "geometry": {
- "file": "card-2-t25-geometry.webp",
- "bytes": 7998
- }
- },
- {
- "top": 403,
- "h": 197,
- "distance_m": 56836.078125,
- "colour": {
- "file": "card-3-t25-colour.webp",
- "bytes": 1292
- },
- "geometry": {
- "file": "card-3-t25-geometry.webp",
- "bytes": 8980
- }
- }
- ],
- [
- {
- "top": 229,
- "h": 371,
- "distance_m": 8270.6533203125,
- "colour": {
- "file": "card-0-t26-colour.webp",
- "bytes": 6442
- },
- "geometry": {
- "file": "card-0-t26-geometry.webp",
- "bytes": 53612
- }
- },
- {
- "top": 386,
- "h": 214,
- "distance_m": 29769.423828125,
- "colour": {
- "file": "card-1-t26-colour.webp",
- "bytes": 2580
- },
- "geometry": {
- "file": "card-1-t26-geometry.webp",
- "bytes": 13894
- }
- },
- {
- "top": 398,
- "h": 202,
- "distance_m": 53755.09375,
- "colour": {
- "file": "card-2-t26-colour.webp",
- "bytes": 4126
- },
- "geometry": {
- "file": "card-2-t26-geometry.webp",
- "bytes": 16184
- }
- },
- {
- "top": 398,
- "h": 202,
- "distance_m": 56437.1875,
- "colour": {
- "file": "card-3-t26-colour.webp",
- "bytes": 2052
- },
- "geometry": {
- "file": "card-3-t26-geometry.webp",
- "bytes": 7216
- }
- }
- ],
- [
- {
- "top": 242,
- "h": 358,
- "distance_m": 7733.07861328125,
- "colour": {
- "file": "card-0-t27-colour.webp",
- "bytes": 7702
- },
- "geometry": {
- "file": "card-0-t27-geometry.webp",
- "bytes": 54418
- }
- },
- {
- "top": 391,
- "h": 209,
- "distance_m": 31635.669921875,
- "colour": {
- "file": "card-1-t27-colour.webp",
- "bytes": 1170
- },
- "geometry": {
- "file": "card-1-t27-geometry.webp",
- "bytes": 5642
- }
- },
- {
- "top": 390,
- "h": 210,
- "distance_m": 49537.48046875,
- "colour": {
- "file": "card-2-t27-colour.webp",
- "bytes": 4302
- },
- "geometry": {
- "file": "card-2-t27-geometry.webp",
- "bytes": 26440
- }
- },
- {
- "top": 390,
- "h": 210,
- "distance_m": 56523.26171875,
- "colour": {
- "file": "card-3-t27-colour.webp",
- "bytes": 1538
- },
- "geometry": {
- "file": "card-3-t27-geometry.webp",
- "bytes": 7538
- }
- }
- ],
- [
- {
- "top": 231,
- "h": 369,
- "distance_m": 8952.802734375,
- "colour": {
- "file": "card-0-t28-colour.webp",
- "bytes": 8324
- },
- "geometry": {
- "file": "card-0-t28-geometry.webp",
- "bytes": 58204
- }
- },
- {
- "top": 389,
- "h": 211,
- "distance_m": 29559.9609375,
- "colour": {
- "file": "card-1-t28-colour.webp",
- "bytes": 2618
- },
- "geometry": {
- "file": "card-1-t28-geometry.webp",
- "bytes": 10096
- }
- },
- {
- "top": 388,
- "h": 212,
- "distance_m": 47157.2421875,
- "colour": {
- "file": "card-2-t28-colour.webp",
- "bytes": 3038
- },
- "geometry": {
- "file": "card-2-t28-geometry.webp",
- "bytes": 22630
- }
- },
- {
- "top": 404,
- "h": 196,
- "distance_m": 55958.64453125,
- "colour": {
- "file": "card-3-t28-colour.webp",
- "bytes": 1204
- },
- "geometry": {
- "file": "card-3-t28-geometry.webp",
- "bytes": 2670
- }
- }
- ],
- [
- {
- "top": 243,
- "h": 357,
- "distance_m": 7626.91552734375,
- "colour": {
- "file": "card-0-t29-colour.webp",
- "bytes": 6618
- },
- "geometry": {
- "file": "card-0-t29-geometry.webp",
- "bytes": 51022
- }
- },
- {
- "top": 391,
- "h": 209,
- "distance_m": 43394.55078125,
- "colour": {
- "file": "card-1-t29-colour.webp",
- "bytes": 5902
- },
- "geometry": {
- "file": "card-1-t29-geometry.webp",
- "bytes": 20418
- }
- },
- {
- "top": 387,
- "h": 213,
- "distance_m": 45741.1640625,
- "colour": {
- "file": "card-2-t29-colour.webp",
- "bytes": 2548
- },
- "geometry": {
- "file": "card-2-t29-geometry.webp",
- "bytes": 16600
- }
- },
- {
- "top": 415,
- "h": 185,
- "distance_m": 56662.9375,
- "colour": {
- "file": "card-3-t29-colour.webp",
- "bytes": 978
- },
- "geometry": {
- "file": "card-3-t29-geometry.webp",
- "bytes": 4000
- }
- }
- ],
- [
- {
- "top": 209,
- "h": 391,
- "distance_m": 8535.6982421875,
- "colour": {
- "file": "card-0-t30-colour.webp",
- "bytes": 6504
- },
- "geometry": {
- "file": "card-0-t30-geometry.webp",
- "bytes": 54608
- }
- },
- {
- "top": 379,
- "h": 221,
- "distance_m": 30519.244140625,
- "colour": {
- "file": "card-1-t30-colour.webp",
- "bytes": 3252
- },
- "geometry": {
- "file": "card-1-t30-geometry.webp",
- "bytes": 10042
- }
- },
- {
- "top": 379,
- "h": 221,
- "distance_m": 46410.1953125,
- "colour": {
- "file": "card-2-t30-colour.webp",
- "bytes": 2922
- },
- "geometry": {
- "file": "card-2-t30-geometry.webp",
- "bytes": 14372
- }
- },
- {
- "top": 397,
- "h": 203,
- "distance_m": 56393.33984375,
- "colour": {
- "file": "card-3-t30-colour.webp",
- "bytes": 1230
- },
- "geometry": {
- "file": "card-3-t30-geometry.webp",
- "bytes": 4024
- }
- }
- ],
- [
- {
- "top": 303,
- "h": 297,
- "distance_m": 14576.4990234375,
- "colour": {
- "file": "card-0-t31-colour.webp",
- "bytes": 5654
- },
- "geometry": {
- "file": "card-0-t31-geometry.webp",
- "bytes": 48236
- }
- },
- {
- "top": 370,
- "h": 230,
- "distance_m": 41007.98046875,
- "colour": {
- "file": "card-1-t31-colour.webp",
- "bytes": 4592
- },
- "geometry": {
- "file": "card-1-t31-geometry.webp",
- "bytes": 13188
- }
- },
- {
- "top": 370,
- "h": 230,
- "distance_m": 48204.4140625,
- "colour": {
- "file": "card-2-t31-colour.webp",
- "bytes": 3650
- },
- "geometry": {
- "file": "card-2-t31-geometry.webp",
- "bytes": 15018
- }
- },
- {
- "top": 374,
- "h": 226,
- "distance_m": 56437.1875,
- "colour": {
- "file": "card-3-t31-colour.webp",
- "bytes": 1212
- },
- "geometry": {
- "file": "card-3-t31-geometry.webp",
- "bytes": 3638
- }
- }
- ]
- ],
- "bytes": 3056362,
- "attribution": {
- "credit_line": "Contains modified Copernicus data: DEM \u00a9 DLR e.V. 2010-2014 and \u00a9 Airbus Defence and Space GmbH 2014-2018 provided under COPERNICUS by the European Union and ESA; all rights reserved.",
- "licence": "Copernicus DEM licence: free, full and open access, with the credit line shown",
- "dem_source": "Copernicus DEM GLO-30 (30 m)",
- "url": "https://spacedata.copernicus.eu/collections/copernicus-digital-elevation-model"
- }
-}
diff --git a/public/ridge/vienna-f50ec31ee950/card-0-t00-colour.webp b/public/ridge/vienna-f50ec31ee950/card-0-t00-colour.webp
deleted file mode 100644
index 686362d9..00000000
Binary files a/public/ridge/vienna-f50ec31ee950/card-0-t00-colour.webp and /dev/null differ
diff --git a/public/ridge/vienna-f50ec31ee950/card-0-t00-geometry.webp b/public/ridge/vienna-f50ec31ee950/card-0-t00-geometry.webp
deleted file mode 100644
index 404e34f3..00000000
Binary files a/public/ridge/vienna-f50ec31ee950/card-0-t00-geometry.webp and /dev/null differ
diff --git a/public/ridge/vienna-f50ec31ee950/card-0-t01-colour.webp b/public/ridge/vienna-f50ec31ee950/card-0-t01-colour.webp
deleted file mode 100644
index 8b23e1cb..00000000
Binary files a/public/ridge/vienna-f50ec31ee950/card-0-t01-colour.webp and /dev/null differ
diff --git a/public/ridge/vienna-f50ec31ee950/card-0-t01-geometry.webp b/public/ridge/vienna-f50ec31ee950/card-0-t01-geometry.webp
deleted file mode 100644
index df1f1e86..00000000
Binary files a/public/ridge/vienna-f50ec31ee950/card-0-t01-geometry.webp and /dev/null differ
diff --git a/public/ridge/vienna-f50ec31ee950/card-0-t02-colour.webp b/public/ridge/vienna-f50ec31ee950/card-0-t02-colour.webp
deleted file mode 100644
index ee2f52bb..00000000
Binary files a/public/ridge/vienna-f50ec31ee950/card-0-t02-colour.webp and /dev/null differ
diff --git a/public/ridge/vienna-f50ec31ee950/card-0-t02-geometry.webp b/public/ridge/vienna-f50ec31ee950/card-0-t02-geometry.webp
deleted file mode 100644
index a119adf7..00000000
Binary files a/public/ridge/vienna-f50ec31ee950/card-0-t02-geometry.webp and /dev/null differ
diff --git a/public/ridge/vienna-f50ec31ee950/card-0-t03-colour.webp b/public/ridge/vienna-f50ec31ee950/card-0-t03-colour.webp
deleted file mode 100644
index 8f032bc9..00000000
Binary files a/public/ridge/vienna-f50ec31ee950/card-0-t03-colour.webp and /dev/null differ
diff --git a/public/ridge/vienna-f50ec31ee950/card-0-t03-geometry.webp b/public/ridge/vienna-f50ec31ee950/card-0-t03-geometry.webp
deleted file mode 100644
index a3d9c65a..00000000
Binary files a/public/ridge/vienna-f50ec31ee950/card-0-t03-geometry.webp and /dev/null differ
diff --git a/public/ridge/vienna-f50ec31ee950/card-0-t04-colour.webp b/public/ridge/vienna-f50ec31ee950/card-0-t04-colour.webp
deleted file mode 100644
index e4157192..00000000
Binary files a/public/ridge/vienna-f50ec31ee950/card-0-t04-colour.webp and /dev/null differ
diff --git a/public/ridge/vienna-f50ec31ee950/card-0-t04-geometry.webp b/public/ridge/vienna-f50ec31ee950/card-0-t04-geometry.webp
deleted file mode 100644
index f787120e..00000000
Binary files a/public/ridge/vienna-f50ec31ee950/card-0-t04-geometry.webp and /dev/null differ
diff --git a/public/ridge/vienna-f50ec31ee950/card-0-t05-colour.webp b/public/ridge/vienna-f50ec31ee950/card-0-t05-colour.webp
deleted file mode 100644
index 13d4b141..00000000
Binary files a/public/ridge/vienna-f50ec31ee950/card-0-t05-colour.webp and /dev/null differ
diff --git a/public/ridge/vienna-f50ec31ee950/card-0-t05-geometry.webp b/public/ridge/vienna-f50ec31ee950/card-0-t05-geometry.webp
deleted file mode 100644
index a26acc06..00000000
Binary files a/public/ridge/vienna-f50ec31ee950/card-0-t05-geometry.webp and /dev/null differ
diff --git a/public/ridge/vienna-f50ec31ee950/card-0-t06-colour.webp b/public/ridge/vienna-f50ec31ee950/card-0-t06-colour.webp
deleted file mode 100644
index a3d23180..00000000
Binary files a/public/ridge/vienna-f50ec31ee950/card-0-t06-colour.webp and /dev/null differ
diff --git a/public/ridge/vienna-f50ec31ee950/card-0-t06-geometry.webp b/public/ridge/vienna-f50ec31ee950/card-0-t06-geometry.webp
deleted file mode 100644
index 00abe410..00000000
Binary files a/public/ridge/vienna-f50ec31ee950/card-0-t06-geometry.webp and /dev/null differ
diff --git a/public/ridge/vienna-f50ec31ee950/card-0-t07-colour.webp b/public/ridge/vienna-f50ec31ee950/card-0-t07-colour.webp
deleted file mode 100644
index 67fd7605..00000000
Binary files a/public/ridge/vienna-f50ec31ee950/card-0-t07-colour.webp and /dev/null differ
diff --git a/public/ridge/vienna-f50ec31ee950/card-0-t07-geometry.webp b/public/ridge/vienna-f50ec31ee950/card-0-t07-geometry.webp
deleted file mode 100644
index 998d80ca..00000000
Binary files a/public/ridge/vienna-f50ec31ee950/card-0-t07-geometry.webp and /dev/null differ
diff --git a/public/ridge/vienna-f50ec31ee950/card-0-t08-colour.webp b/public/ridge/vienna-f50ec31ee950/card-0-t08-colour.webp
deleted file mode 100644
index d47c3d71..00000000
Binary files a/public/ridge/vienna-f50ec31ee950/card-0-t08-colour.webp and /dev/null differ
diff --git a/public/ridge/vienna-f50ec31ee950/card-0-t08-geometry.webp b/public/ridge/vienna-f50ec31ee950/card-0-t08-geometry.webp
deleted file mode 100644
index 1c2e742c..00000000
Binary files a/public/ridge/vienna-f50ec31ee950/card-0-t08-geometry.webp and /dev/null differ
diff --git a/public/ridge/vienna-f50ec31ee950/card-0-t09-colour.webp b/public/ridge/vienna-f50ec31ee950/card-0-t09-colour.webp
deleted file mode 100644
index 43545dad..00000000
Binary files a/public/ridge/vienna-f50ec31ee950/card-0-t09-colour.webp and /dev/null differ
diff --git a/public/ridge/vienna-f50ec31ee950/card-0-t09-geometry.webp b/public/ridge/vienna-f50ec31ee950/card-0-t09-geometry.webp
deleted file mode 100644
index 7c06ba9b..00000000
Binary files a/public/ridge/vienna-f50ec31ee950/card-0-t09-geometry.webp and /dev/null differ
diff --git a/public/ridge/vienna-f50ec31ee950/card-0-t10-colour.webp b/public/ridge/vienna-f50ec31ee950/card-0-t10-colour.webp
deleted file mode 100644
index 71db26f9..00000000
Binary files a/public/ridge/vienna-f50ec31ee950/card-0-t10-colour.webp and /dev/null differ
diff --git a/public/ridge/vienna-f50ec31ee950/card-0-t10-geometry.webp b/public/ridge/vienna-f50ec31ee950/card-0-t10-geometry.webp
deleted file mode 100644
index 64b8f54e..00000000
Binary files a/public/ridge/vienna-f50ec31ee950/card-0-t10-geometry.webp and /dev/null differ
diff --git a/public/ridge/vienna-f50ec31ee950/card-0-t11-colour.webp b/public/ridge/vienna-f50ec31ee950/card-0-t11-colour.webp
deleted file mode 100644
index 217387dc..00000000
Binary files a/public/ridge/vienna-f50ec31ee950/card-0-t11-colour.webp and /dev/null differ
diff --git a/public/ridge/vienna-f50ec31ee950/card-0-t11-geometry.webp b/public/ridge/vienna-f50ec31ee950/card-0-t11-geometry.webp
deleted file mode 100644
index f2127ce4..00000000
Binary files a/public/ridge/vienna-f50ec31ee950/card-0-t11-geometry.webp and /dev/null differ
diff --git a/public/ridge/vienna-f50ec31ee950/card-0-t12-colour.webp b/public/ridge/vienna-f50ec31ee950/card-0-t12-colour.webp
deleted file mode 100644
index 908e626b..00000000
Binary files a/public/ridge/vienna-f50ec31ee950/card-0-t12-colour.webp and /dev/null differ
diff --git a/public/ridge/vienna-f50ec31ee950/card-0-t12-geometry.webp b/public/ridge/vienna-f50ec31ee950/card-0-t12-geometry.webp
deleted file mode 100644
index 1ccc9f79..00000000
Binary files a/public/ridge/vienna-f50ec31ee950/card-0-t12-geometry.webp and /dev/null differ
diff --git a/public/ridge/vienna-f50ec31ee950/card-0-t13-colour.webp b/public/ridge/vienna-f50ec31ee950/card-0-t13-colour.webp
deleted file mode 100644
index a7406271..00000000
Binary files a/public/ridge/vienna-f50ec31ee950/card-0-t13-colour.webp and /dev/null differ
diff --git a/public/ridge/vienna-f50ec31ee950/card-0-t13-geometry.webp b/public/ridge/vienna-f50ec31ee950/card-0-t13-geometry.webp
deleted file mode 100644
index 36933b0d..00000000
Binary files a/public/ridge/vienna-f50ec31ee950/card-0-t13-geometry.webp and /dev/null differ
diff --git a/public/ridge/vienna-f50ec31ee950/card-0-t14-colour.webp b/public/ridge/vienna-f50ec31ee950/card-0-t14-colour.webp
deleted file mode 100644
index ee3823c5..00000000
Binary files a/public/ridge/vienna-f50ec31ee950/card-0-t14-colour.webp and /dev/null differ
diff --git a/public/ridge/vienna-f50ec31ee950/card-0-t14-geometry.webp b/public/ridge/vienna-f50ec31ee950/card-0-t14-geometry.webp
deleted file mode 100644
index 064ee277..00000000
Binary files a/public/ridge/vienna-f50ec31ee950/card-0-t14-geometry.webp and /dev/null differ
diff --git a/public/ridge/vienna-f50ec31ee950/card-0-t15-colour.webp b/public/ridge/vienna-f50ec31ee950/card-0-t15-colour.webp
deleted file mode 100644
index 29409430..00000000
Binary files a/public/ridge/vienna-f50ec31ee950/card-0-t15-colour.webp and /dev/null differ
diff --git a/public/ridge/vienna-f50ec31ee950/card-0-t15-geometry.webp b/public/ridge/vienna-f50ec31ee950/card-0-t15-geometry.webp
deleted file mode 100644
index 75ae86c3..00000000
Binary files a/public/ridge/vienna-f50ec31ee950/card-0-t15-geometry.webp and /dev/null differ
diff --git a/public/ridge/vienna-f50ec31ee950/card-0-t16-colour.webp b/public/ridge/vienna-f50ec31ee950/card-0-t16-colour.webp
deleted file mode 100644
index a50024d4..00000000
Binary files a/public/ridge/vienna-f50ec31ee950/card-0-t16-colour.webp and /dev/null differ
diff --git a/public/ridge/vienna-f50ec31ee950/card-0-t16-geometry.webp b/public/ridge/vienna-f50ec31ee950/card-0-t16-geometry.webp
deleted file mode 100644
index c0286780..00000000
Binary files a/public/ridge/vienna-f50ec31ee950/card-0-t16-geometry.webp and /dev/null differ
diff --git a/public/ridge/vienna-f50ec31ee950/card-0-t17-colour.webp b/public/ridge/vienna-f50ec31ee950/card-0-t17-colour.webp
deleted file mode 100644
index df1d26bc..00000000
Binary files a/public/ridge/vienna-f50ec31ee950/card-0-t17-colour.webp and /dev/null differ
diff --git a/public/ridge/vienna-f50ec31ee950/card-0-t17-geometry.webp b/public/ridge/vienna-f50ec31ee950/card-0-t17-geometry.webp
deleted file mode 100644
index ad94826f..00000000
Binary files a/public/ridge/vienna-f50ec31ee950/card-0-t17-geometry.webp and /dev/null differ
diff --git a/public/ridge/vienna-f50ec31ee950/card-0-t18-colour.webp b/public/ridge/vienna-f50ec31ee950/card-0-t18-colour.webp
deleted file mode 100644
index 51b89544..00000000
Binary files a/public/ridge/vienna-f50ec31ee950/card-0-t18-colour.webp and /dev/null differ
diff --git a/public/ridge/vienna-f50ec31ee950/card-0-t18-geometry.webp b/public/ridge/vienna-f50ec31ee950/card-0-t18-geometry.webp
deleted file mode 100644
index 717fb6f8..00000000
Binary files a/public/ridge/vienna-f50ec31ee950/card-0-t18-geometry.webp and /dev/null differ
diff --git a/public/ridge/vienna-f50ec31ee950/card-0-t19-colour.webp b/public/ridge/vienna-f50ec31ee950/card-0-t19-colour.webp
deleted file mode 100644
index dbdac364..00000000
Binary files a/public/ridge/vienna-f50ec31ee950/card-0-t19-colour.webp and /dev/null differ
diff --git a/public/ridge/vienna-f50ec31ee950/card-0-t19-geometry.webp b/public/ridge/vienna-f50ec31ee950/card-0-t19-geometry.webp
deleted file mode 100644
index ec133982..00000000
Binary files a/public/ridge/vienna-f50ec31ee950/card-0-t19-geometry.webp and /dev/null differ
diff --git a/public/ridge/vienna-f50ec31ee950/card-0-t20-colour.webp b/public/ridge/vienna-f50ec31ee950/card-0-t20-colour.webp
deleted file mode 100644
index b1eccb3c..00000000
Binary files a/public/ridge/vienna-f50ec31ee950/card-0-t20-colour.webp and /dev/null differ
diff --git a/public/ridge/vienna-f50ec31ee950/card-0-t20-geometry.webp b/public/ridge/vienna-f50ec31ee950/card-0-t20-geometry.webp
deleted file mode 100644
index 64692465..00000000
Binary files a/public/ridge/vienna-f50ec31ee950/card-0-t20-geometry.webp and /dev/null differ
diff --git a/public/ridge/vienna-f50ec31ee950/card-0-t21-colour.webp b/public/ridge/vienna-f50ec31ee950/card-0-t21-colour.webp
deleted file mode 100644
index 8eeb4af1..00000000
Binary files a/public/ridge/vienna-f50ec31ee950/card-0-t21-colour.webp and /dev/null differ
diff --git a/public/ridge/vienna-f50ec31ee950/card-0-t21-geometry.webp b/public/ridge/vienna-f50ec31ee950/card-0-t21-geometry.webp
deleted file mode 100644
index e01306ad..00000000
Binary files a/public/ridge/vienna-f50ec31ee950/card-0-t21-geometry.webp and /dev/null differ
diff --git a/public/ridge/vienna-f50ec31ee950/card-0-t22-colour.webp b/public/ridge/vienna-f50ec31ee950/card-0-t22-colour.webp
deleted file mode 100644
index 070d8d99..00000000
Binary files a/public/ridge/vienna-f50ec31ee950/card-0-t22-colour.webp and /dev/null differ
diff --git a/public/ridge/vienna-f50ec31ee950/card-0-t22-geometry.webp b/public/ridge/vienna-f50ec31ee950/card-0-t22-geometry.webp
deleted file mode 100644
index 42c7ba9f..00000000
Binary files a/public/ridge/vienna-f50ec31ee950/card-0-t22-geometry.webp and /dev/null differ
diff --git a/public/ridge/vienna-f50ec31ee950/card-0-t23-colour.webp b/public/ridge/vienna-f50ec31ee950/card-0-t23-colour.webp
deleted file mode 100644
index 26820fc4..00000000
Binary files a/public/ridge/vienna-f50ec31ee950/card-0-t23-colour.webp and /dev/null differ
diff --git a/public/ridge/vienna-f50ec31ee950/card-0-t23-geometry.webp b/public/ridge/vienna-f50ec31ee950/card-0-t23-geometry.webp
deleted file mode 100644
index d578769b..00000000
Binary files a/public/ridge/vienna-f50ec31ee950/card-0-t23-geometry.webp and /dev/null differ
diff --git a/public/ridge/vienna-f50ec31ee950/card-0-t24-colour.webp b/public/ridge/vienna-f50ec31ee950/card-0-t24-colour.webp
deleted file mode 100644
index 944d2d7f..00000000
Binary files a/public/ridge/vienna-f50ec31ee950/card-0-t24-colour.webp and /dev/null differ
diff --git a/public/ridge/vienna-f50ec31ee950/card-0-t24-geometry.webp b/public/ridge/vienna-f50ec31ee950/card-0-t24-geometry.webp
deleted file mode 100644
index a18af569..00000000
Binary files a/public/ridge/vienna-f50ec31ee950/card-0-t24-geometry.webp and /dev/null differ
diff --git a/public/ridge/vienna-f50ec31ee950/card-0-t25-colour.webp b/public/ridge/vienna-f50ec31ee950/card-0-t25-colour.webp
deleted file mode 100644
index f902bea7..00000000
Binary files a/public/ridge/vienna-f50ec31ee950/card-0-t25-colour.webp and /dev/null differ
diff --git a/public/ridge/vienna-f50ec31ee950/card-0-t25-geometry.webp b/public/ridge/vienna-f50ec31ee950/card-0-t25-geometry.webp
deleted file mode 100644
index b9e726d1..00000000
Binary files a/public/ridge/vienna-f50ec31ee950/card-0-t25-geometry.webp and /dev/null differ
diff --git a/public/ridge/vienna-f50ec31ee950/card-0-t26-colour.webp b/public/ridge/vienna-f50ec31ee950/card-0-t26-colour.webp
deleted file mode 100644
index de1883f1..00000000
Binary files a/public/ridge/vienna-f50ec31ee950/card-0-t26-colour.webp and /dev/null differ
diff --git a/public/ridge/vienna-f50ec31ee950/card-0-t26-geometry.webp b/public/ridge/vienna-f50ec31ee950/card-0-t26-geometry.webp
deleted file mode 100644
index c4f2c33d..00000000
Binary files a/public/ridge/vienna-f50ec31ee950/card-0-t26-geometry.webp and /dev/null differ
diff --git a/public/ridge/vienna-f50ec31ee950/card-0-t27-colour.webp b/public/ridge/vienna-f50ec31ee950/card-0-t27-colour.webp
deleted file mode 100644
index 8e6f04e5..00000000
Binary files a/public/ridge/vienna-f50ec31ee950/card-0-t27-colour.webp and /dev/null differ
diff --git a/public/ridge/vienna-f50ec31ee950/card-0-t27-geometry.webp b/public/ridge/vienna-f50ec31ee950/card-0-t27-geometry.webp
deleted file mode 100644
index 26dc3c1c..00000000
Binary files a/public/ridge/vienna-f50ec31ee950/card-0-t27-geometry.webp and /dev/null differ
diff --git a/public/ridge/vienna-f50ec31ee950/card-0-t28-colour.webp b/public/ridge/vienna-f50ec31ee950/card-0-t28-colour.webp
deleted file mode 100644
index 682b4975..00000000
Binary files a/public/ridge/vienna-f50ec31ee950/card-0-t28-colour.webp and /dev/null differ
diff --git a/public/ridge/vienna-f50ec31ee950/card-0-t28-geometry.webp b/public/ridge/vienna-f50ec31ee950/card-0-t28-geometry.webp
deleted file mode 100644
index 1eb9681a..00000000
Binary files a/public/ridge/vienna-f50ec31ee950/card-0-t28-geometry.webp and /dev/null differ
diff --git a/public/ridge/vienna-f50ec31ee950/card-0-t29-colour.webp b/public/ridge/vienna-f50ec31ee950/card-0-t29-colour.webp
deleted file mode 100644
index ebbfad82..00000000
Binary files a/public/ridge/vienna-f50ec31ee950/card-0-t29-colour.webp and /dev/null differ
diff --git a/public/ridge/vienna-f50ec31ee950/card-0-t29-geometry.webp b/public/ridge/vienna-f50ec31ee950/card-0-t29-geometry.webp
deleted file mode 100644
index cb9f1d35..00000000
Binary files a/public/ridge/vienna-f50ec31ee950/card-0-t29-geometry.webp and /dev/null differ
diff --git a/public/ridge/vienna-f50ec31ee950/card-0-t30-colour.webp b/public/ridge/vienna-f50ec31ee950/card-0-t30-colour.webp
deleted file mode 100644
index 6e93f4a0..00000000
Binary files a/public/ridge/vienna-f50ec31ee950/card-0-t30-colour.webp and /dev/null differ
diff --git a/public/ridge/vienna-f50ec31ee950/card-0-t30-geometry.webp b/public/ridge/vienna-f50ec31ee950/card-0-t30-geometry.webp
deleted file mode 100644
index 03fba725..00000000
Binary files a/public/ridge/vienna-f50ec31ee950/card-0-t30-geometry.webp and /dev/null differ
diff --git a/public/ridge/vienna-f50ec31ee950/card-0-t31-colour.webp b/public/ridge/vienna-f50ec31ee950/card-0-t31-colour.webp
deleted file mode 100644
index 0bc262e2..00000000
Binary files a/public/ridge/vienna-f50ec31ee950/card-0-t31-colour.webp and /dev/null differ
diff --git a/public/ridge/vienna-f50ec31ee950/card-0-t31-geometry.webp b/public/ridge/vienna-f50ec31ee950/card-0-t31-geometry.webp
deleted file mode 100644
index 97214f10..00000000
Binary files a/public/ridge/vienna-f50ec31ee950/card-0-t31-geometry.webp and /dev/null differ
diff --git a/public/ridge/vienna-f50ec31ee950/card-1-t00-colour.webp b/public/ridge/vienna-f50ec31ee950/card-1-t00-colour.webp
deleted file mode 100644
index c5af4bb6..00000000
Binary files a/public/ridge/vienna-f50ec31ee950/card-1-t00-colour.webp and /dev/null differ
diff --git a/public/ridge/vienna-f50ec31ee950/card-1-t00-geometry.webp b/public/ridge/vienna-f50ec31ee950/card-1-t00-geometry.webp
deleted file mode 100644
index 58cd96a5..00000000
Binary files a/public/ridge/vienna-f50ec31ee950/card-1-t00-geometry.webp and /dev/null differ
diff --git a/public/ridge/vienna-f50ec31ee950/card-1-t01-colour.webp b/public/ridge/vienna-f50ec31ee950/card-1-t01-colour.webp
deleted file mode 100644
index a6439983..00000000
Binary files a/public/ridge/vienna-f50ec31ee950/card-1-t01-colour.webp and /dev/null differ
diff --git a/public/ridge/vienna-f50ec31ee950/card-1-t01-geometry.webp b/public/ridge/vienna-f50ec31ee950/card-1-t01-geometry.webp
deleted file mode 100644
index aad4b786..00000000
Binary files a/public/ridge/vienna-f50ec31ee950/card-1-t01-geometry.webp and /dev/null differ
diff --git a/public/ridge/vienna-f50ec31ee950/card-1-t02-colour.webp b/public/ridge/vienna-f50ec31ee950/card-1-t02-colour.webp
deleted file mode 100644
index 6ea1f7af..00000000
Binary files a/public/ridge/vienna-f50ec31ee950/card-1-t02-colour.webp and /dev/null differ
diff --git a/public/ridge/vienna-f50ec31ee950/card-1-t02-geometry.webp b/public/ridge/vienna-f50ec31ee950/card-1-t02-geometry.webp
deleted file mode 100644
index 0c103115..00000000
Binary files a/public/ridge/vienna-f50ec31ee950/card-1-t02-geometry.webp and /dev/null differ
diff --git a/public/ridge/vienna-f50ec31ee950/card-1-t03-colour.webp b/public/ridge/vienna-f50ec31ee950/card-1-t03-colour.webp
deleted file mode 100644
index 1a779093..00000000
Binary files a/public/ridge/vienna-f50ec31ee950/card-1-t03-colour.webp and /dev/null differ
diff --git a/public/ridge/vienna-f50ec31ee950/card-1-t03-geometry.webp b/public/ridge/vienna-f50ec31ee950/card-1-t03-geometry.webp
deleted file mode 100644
index 28a2644b..00000000
Binary files a/public/ridge/vienna-f50ec31ee950/card-1-t03-geometry.webp and /dev/null differ
diff --git a/public/ridge/vienna-f50ec31ee950/card-1-t04-colour.webp b/public/ridge/vienna-f50ec31ee950/card-1-t04-colour.webp
deleted file mode 100644
index 950fc2a6..00000000
Binary files a/public/ridge/vienna-f50ec31ee950/card-1-t04-colour.webp and /dev/null differ
diff --git a/public/ridge/vienna-f50ec31ee950/card-1-t04-geometry.webp b/public/ridge/vienna-f50ec31ee950/card-1-t04-geometry.webp
deleted file mode 100644
index 708c2c10..00000000
Binary files a/public/ridge/vienna-f50ec31ee950/card-1-t04-geometry.webp and /dev/null differ
diff --git a/public/ridge/vienna-f50ec31ee950/card-1-t05-colour.webp b/public/ridge/vienna-f50ec31ee950/card-1-t05-colour.webp
deleted file mode 100644
index 46107bf7..00000000
Binary files a/public/ridge/vienna-f50ec31ee950/card-1-t05-colour.webp and /dev/null differ
diff --git a/public/ridge/vienna-f50ec31ee950/card-1-t05-geometry.webp b/public/ridge/vienna-f50ec31ee950/card-1-t05-geometry.webp
deleted file mode 100644
index d249f8de..00000000
Binary files a/public/ridge/vienna-f50ec31ee950/card-1-t05-geometry.webp and /dev/null differ
diff --git a/public/ridge/vienna-f50ec31ee950/card-1-t06-colour.webp b/public/ridge/vienna-f50ec31ee950/card-1-t06-colour.webp
deleted file mode 100644
index 2a32bca9..00000000
Binary files a/public/ridge/vienna-f50ec31ee950/card-1-t06-colour.webp and /dev/null differ
diff --git a/public/ridge/vienna-f50ec31ee950/card-1-t06-geometry.webp b/public/ridge/vienna-f50ec31ee950/card-1-t06-geometry.webp
deleted file mode 100644
index f3250ed8..00000000
Binary files a/public/ridge/vienna-f50ec31ee950/card-1-t06-geometry.webp and /dev/null differ
diff --git a/public/ridge/vienna-f50ec31ee950/card-1-t07-colour.webp b/public/ridge/vienna-f50ec31ee950/card-1-t07-colour.webp
deleted file mode 100644
index 41081904..00000000
Binary files a/public/ridge/vienna-f50ec31ee950/card-1-t07-colour.webp and /dev/null differ
diff --git a/public/ridge/vienna-f50ec31ee950/card-1-t07-geometry.webp b/public/ridge/vienna-f50ec31ee950/card-1-t07-geometry.webp
deleted file mode 100644
index d5e46567..00000000
Binary files a/public/ridge/vienna-f50ec31ee950/card-1-t07-geometry.webp and /dev/null differ
diff --git a/public/ridge/vienna-f50ec31ee950/card-1-t08-colour.webp b/public/ridge/vienna-f50ec31ee950/card-1-t08-colour.webp
deleted file mode 100644
index 97db459b..00000000
Binary files a/public/ridge/vienna-f50ec31ee950/card-1-t08-colour.webp and /dev/null differ
diff --git a/public/ridge/vienna-f50ec31ee950/card-1-t08-geometry.webp b/public/ridge/vienna-f50ec31ee950/card-1-t08-geometry.webp
deleted file mode 100644
index 554e502e..00000000
Binary files a/public/ridge/vienna-f50ec31ee950/card-1-t08-geometry.webp and /dev/null differ
diff --git a/public/ridge/vienna-f50ec31ee950/card-1-t09-colour.webp b/public/ridge/vienna-f50ec31ee950/card-1-t09-colour.webp
deleted file mode 100644
index c30c2166..00000000
Binary files a/public/ridge/vienna-f50ec31ee950/card-1-t09-colour.webp and /dev/null differ
diff --git a/public/ridge/vienna-f50ec31ee950/card-1-t09-geometry.webp b/public/ridge/vienna-f50ec31ee950/card-1-t09-geometry.webp
deleted file mode 100644
index fb7f668d..00000000
Binary files a/public/ridge/vienna-f50ec31ee950/card-1-t09-geometry.webp and /dev/null differ
diff --git a/public/ridge/vienna-f50ec31ee950/card-1-t10-colour.webp b/public/ridge/vienna-f50ec31ee950/card-1-t10-colour.webp
deleted file mode 100644
index 981fe509..00000000
Binary files a/public/ridge/vienna-f50ec31ee950/card-1-t10-colour.webp and /dev/null differ
diff --git a/public/ridge/vienna-f50ec31ee950/card-1-t10-geometry.webp b/public/ridge/vienna-f50ec31ee950/card-1-t10-geometry.webp
deleted file mode 100644
index 27b1fb7a..00000000
Binary files a/public/ridge/vienna-f50ec31ee950/card-1-t10-geometry.webp and /dev/null differ
diff --git a/public/ridge/vienna-f50ec31ee950/card-1-t11-colour.webp b/public/ridge/vienna-f50ec31ee950/card-1-t11-colour.webp
deleted file mode 100644
index 763fed8f..00000000
Binary files a/public/ridge/vienna-f50ec31ee950/card-1-t11-colour.webp and /dev/null differ
diff --git a/public/ridge/vienna-f50ec31ee950/card-1-t11-geometry.webp b/public/ridge/vienna-f50ec31ee950/card-1-t11-geometry.webp
deleted file mode 100644
index d64787ea..00000000
Binary files a/public/ridge/vienna-f50ec31ee950/card-1-t11-geometry.webp and /dev/null differ
diff --git a/public/ridge/vienna-f50ec31ee950/card-1-t12-colour.webp b/public/ridge/vienna-f50ec31ee950/card-1-t12-colour.webp
deleted file mode 100644
index 55103a11..00000000
Binary files a/public/ridge/vienna-f50ec31ee950/card-1-t12-colour.webp and /dev/null differ
diff --git a/public/ridge/vienna-f50ec31ee950/card-1-t12-geometry.webp b/public/ridge/vienna-f50ec31ee950/card-1-t12-geometry.webp
deleted file mode 100644
index 7e71327f..00000000
Binary files a/public/ridge/vienna-f50ec31ee950/card-1-t12-geometry.webp and /dev/null differ
diff --git a/public/ridge/vienna-f50ec31ee950/card-1-t13-colour.webp b/public/ridge/vienna-f50ec31ee950/card-1-t13-colour.webp
deleted file mode 100644
index 84863b23..00000000
Binary files a/public/ridge/vienna-f50ec31ee950/card-1-t13-colour.webp and /dev/null differ
diff --git a/public/ridge/vienna-f50ec31ee950/card-1-t13-geometry.webp b/public/ridge/vienna-f50ec31ee950/card-1-t13-geometry.webp
deleted file mode 100644
index 0cf1bfa6..00000000
Binary files a/public/ridge/vienna-f50ec31ee950/card-1-t13-geometry.webp and /dev/null differ
diff --git a/public/ridge/vienna-f50ec31ee950/card-1-t14-colour.webp b/public/ridge/vienna-f50ec31ee950/card-1-t14-colour.webp
deleted file mode 100644
index 26a04948..00000000
Binary files a/public/ridge/vienna-f50ec31ee950/card-1-t14-colour.webp and /dev/null differ
diff --git a/public/ridge/vienna-f50ec31ee950/card-1-t14-geometry.webp b/public/ridge/vienna-f50ec31ee950/card-1-t14-geometry.webp
deleted file mode 100644
index f513b6de..00000000
Binary files a/public/ridge/vienna-f50ec31ee950/card-1-t14-geometry.webp and /dev/null differ
diff --git a/public/ridge/vienna-f50ec31ee950/card-1-t15-colour.webp b/public/ridge/vienna-f50ec31ee950/card-1-t15-colour.webp
deleted file mode 100644
index 5c449c09..00000000
Binary files a/public/ridge/vienna-f50ec31ee950/card-1-t15-colour.webp and /dev/null differ
diff --git a/public/ridge/vienna-f50ec31ee950/card-1-t15-geometry.webp b/public/ridge/vienna-f50ec31ee950/card-1-t15-geometry.webp
deleted file mode 100644
index c4fa92b3..00000000
Binary files a/public/ridge/vienna-f50ec31ee950/card-1-t15-geometry.webp and /dev/null differ
diff --git a/public/ridge/vienna-f50ec31ee950/card-1-t16-colour.webp b/public/ridge/vienna-f50ec31ee950/card-1-t16-colour.webp
deleted file mode 100644
index 2b2a61ce..00000000
Binary files a/public/ridge/vienna-f50ec31ee950/card-1-t16-colour.webp and /dev/null differ
diff --git a/public/ridge/vienna-f50ec31ee950/card-1-t16-geometry.webp b/public/ridge/vienna-f50ec31ee950/card-1-t16-geometry.webp
deleted file mode 100644
index 42d24b90..00000000
Binary files a/public/ridge/vienna-f50ec31ee950/card-1-t16-geometry.webp and /dev/null differ
diff --git a/public/ridge/vienna-f50ec31ee950/card-1-t17-colour.webp b/public/ridge/vienna-f50ec31ee950/card-1-t17-colour.webp
deleted file mode 100644
index b6522d96..00000000
Binary files a/public/ridge/vienna-f50ec31ee950/card-1-t17-colour.webp and /dev/null differ
diff --git a/public/ridge/vienna-f50ec31ee950/card-1-t17-geometry.webp b/public/ridge/vienna-f50ec31ee950/card-1-t17-geometry.webp
deleted file mode 100644
index d50da47f..00000000
Binary files a/public/ridge/vienna-f50ec31ee950/card-1-t17-geometry.webp and /dev/null differ
diff --git a/public/ridge/vienna-f50ec31ee950/card-1-t18-colour.webp b/public/ridge/vienna-f50ec31ee950/card-1-t18-colour.webp
deleted file mode 100644
index 45e7edb8..00000000
Binary files a/public/ridge/vienna-f50ec31ee950/card-1-t18-colour.webp and /dev/null differ
diff --git a/public/ridge/vienna-f50ec31ee950/card-1-t18-geometry.webp b/public/ridge/vienna-f50ec31ee950/card-1-t18-geometry.webp
deleted file mode 100644
index af61ad07..00000000
Binary files a/public/ridge/vienna-f50ec31ee950/card-1-t18-geometry.webp and /dev/null differ
diff --git a/public/ridge/vienna-f50ec31ee950/card-1-t19-colour.webp b/public/ridge/vienna-f50ec31ee950/card-1-t19-colour.webp
deleted file mode 100644
index df60d40a..00000000
Binary files a/public/ridge/vienna-f50ec31ee950/card-1-t19-colour.webp and /dev/null differ
diff --git a/public/ridge/vienna-f50ec31ee950/card-1-t19-geometry.webp b/public/ridge/vienna-f50ec31ee950/card-1-t19-geometry.webp
deleted file mode 100644
index 66127020..00000000
Binary files a/public/ridge/vienna-f50ec31ee950/card-1-t19-geometry.webp and /dev/null differ
diff --git a/public/ridge/vienna-f50ec31ee950/card-1-t20-colour.webp b/public/ridge/vienna-f50ec31ee950/card-1-t20-colour.webp
deleted file mode 100644
index b6659fdd..00000000
Binary files a/public/ridge/vienna-f50ec31ee950/card-1-t20-colour.webp and /dev/null differ
diff --git a/public/ridge/vienna-f50ec31ee950/card-1-t20-geometry.webp b/public/ridge/vienna-f50ec31ee950/card-1-t20-geometry.webp
deleted file mode 100644
index 0bca3b52..00000000
Binary files a/public/ridge/vienna-f50ec31ee950/card-1-t20-geometry.webp and /dev/null differ
diff --git a/public/ridge/vienna-f50ec31ee950/card-1-t21-colour.webp b/public/ridge/vienna-f50ec31ee950/card-1-t21-colour.webp
deleted file mode 100644
index 987eaac3..00000000
Binary files a/public/ridge/vienna-f50ec31ee950/card-1-t21-colour.webp and /dev/null differ
diff --git a/public/ridge/vienna-f50ec31ee950/card-1-t21-geometry.webp b/public/ridge/vienna-f50ec31ee950/card-1-t21-geometry.webp
deleted file mode 100644
index 9d623baf..00000000
Binary files a/public/ridge/vienna-f50ec31ee950/card-1-t21-geometry.webp and /dev/null differ
diff --git a/public/ridge/vienna-f50ec31ee950/card-1-t22-colour.webp b/public/ridge/vienna-f50ec31ee950/card-1-t22-colour.webp
deleted file mode 100644
index 9d947e7b..00000000
Binary files a/public/ridge/vienna-f50ec31ee950/card-1-t22-colour.webp and /dev/null differ
diff --git a/public/ridge/vienna-f50ec31ee950/card-1-t22-geometry.webp b/public/ridge/vienna-f50ec31ee950/card-1-t22-geometry.webp
deleted file mode 100644
index 84f0813e..00000000
Binary files a/public/ridge/vienna-f50ec31ee950/card-1-t22-geometry.webp and /dev/null differ
diff --git a/public/ridge/vienna-f50ec31ee950/card-1-t23-colour.webp b/public/ridge/vienna-f50ec31ee950/card-1-t23-colour.webp
deleted file mode 100644
index 6a0fb7ab..00000000
Binary files a/public/ridge/vienna-f50ec31ee950/card-1-t23-colour.webp and /dev/null differ
diff --git a/public/ridge/vienna-f50ec31ee950/card-1-t23-geometry.webp b/public/ridge/vienna-f50ec31ee950/card-1-t23-geometry.webp
deleted file mode 100644
index c05fd3c7..00000000
Binary files a/public/ridge/vienna-f50ec31ee950/card-1-t23-geometry.webp and /dev/null differ
diff --git a/public/ridge/vienna-f50ec31ee950/card-1-t24-colour.webp b/public/ridge/vienna-f50ec31ee950/card-1-t24-colour.webp
deleted file mode 100644
index 2aae2a91..00000000
Binary files a/public/ridge/vienna-f50ec31ee950/card-1-t24-colour.webp and /dev/null differ
diff --git a/public/ridge/vienna-f50ec31ee950/card-1-t24-geometry.webp b/public/ridge/vienna-f50ec31ee950/card-1-t24-geometry.webp
deleted file mode 100644
index 02be7816..00000000
Binary files a/public/ridge/vienna-f50ec31ee950/card-1-t24-geometry.webp and /dev/null differ
diff --git a/public/ridge/vienna-f50ec31ee950/card-1-t25-colour.webp b/public/ridge/vienna-f50ec31ee950/card-1-t25-colour.webp
deleted file mode 100644
index d88a2cf5..00000000
Binary files a/public/ridge/vienna-f50ec31ee950/card-1-t25-colour.webp and /dev/null differ
diff --git a/public/ridge/vienna-f50ec31ee950/card-1-t25-geometry.webp b/public/ridge/vienna-f50ec31ee950/card-1-t25-geometry.webp
deleted file mode 100644
index 5a840047..00000000
Binary files a/public/ridge/vienna-f50ec31ee950/card-1-t25-geometry.webp and /dev/null differ
diff --git a/public/ridge/vienna-f50ec31ee950/card-1-t26-colour.webp b/public/ridge/vienna-f50ec31ee950/card-1-t26-colour.webp
deleted file mode 100644
index ca02aa50..00000000
Binary files a/public/ridge/vienna-f50ec31ee950/card-1-t26-colour.webp and /dev/null differ
diff --git a/public/ridge/vienna-f50ec31ee950/card-1-t26-geometry.webp b/public/ridge/vienna-f50ec31ee950/card-1-t26-geometry.webp
deleted file mode 100644
index d1274f06..00000000
Binary files a/public/ridge/vienna-f50ec31ee950/card-1-t26-geometry.webp and /dev/null differ
diff --git a/public/ridge/vienna-f50ec31ee950/card-1-t27-colour.webp b/public/ridge/vienna-f50ec31ee950/card-1-t27-colour.webp
deleted file mode 100644
index 368ed321..00000000
Binary files a/public/ridge/vienna-f50ec31ee950/card-1-t27-colour.webp and /dev/null differ
diff --git a/public/ridge/vienna-f50ec31ee950/card-1-t27-geometry.webp b/public/ridge/vienna-f50ec31ee950/card-1-t27-geometry.webp
deleted file mode 100644
index acfcf68e..00000000
Binary files a/public/ridge/vienna-f50ec31ee950/card-1-t27-geometry.webp and /dev/null differ
diff --git a/public/ridge/vienna-f50ec31ee950/card-1-t28-colour.webp b/public/ridge/vienna-f50ec31ee950/card-1-t28-colour.webp
deleted file mode 100644
index 99278ff3..00000000
Binary files a/public/ridge/vienna-f50ec31ee950/card-1-t28-colour.webp and /dev/null differ
diff --git a/public/ridge/vienna-f50ec31ee950/card-1-t28-geometry.webp b/public/ridge/vienna-f50ec31ee950/card-1-t28-geometry.webp
deleted file mode 100644
index 97c25e93..00000000
Binary files a/public/ridge/vienna-f50ec31ee950/card-1-t28-geometry.webp and /dev/null differ
diff --git a/public/ridge/vienna-f50ec31ee950/card-1-t29-colour.webp b/public/ridge/vienna-f50ec31ee950/card-1-t29-colour.webp
deleted file mode 100644
index 6896f47c..00000000
Binary files a/public/ridge/vienna-f50ec31ee950/card-1-t29-colour.webp and /dev/null differ
diff --git a/public/ridge/vienna-f50ec31ee950/card-1-t29-geometry.webp b/public/ridge/vienna-f50ec31ee950/card-1-t29-geometry.webp
deleted file mode 100644
index b86f0e94..00000000
Binary files a/public/ridge/vienna-f50ec31ee950/card-1-t29-geometry.webp and /dev/null differ
diff --git a/public/ridge/vienna-f50ec31ee950/card-1-t30-colour.webp b/public/ridge/vienna-f50ec31ee950/card-1-t30-colour.webp
deleted file mode 100644
index 7053645b..00000000
Binary files a/public/ridge/vienna-f50ec31ee950/card-1-t30-colour.webp and /dev/null differ
diff --git a/public/ridge/vienna-f50ec31ee950/card-1-t30-geometry.webp b/public/ridge/vienna-f50ec31ee950/card-1-t30-geometry.webp
deleted file mode 100644
index 29f233d2..00000000
Binary files a/public/ridge/vienna-f50ec31ee950/card-1-t30-geometry.webp and /dev/null differ
diff --git a/public/ridge/vienna-f50ec31ee950/card-1-t31-colour.webp b/public/ridge/vienna-f50ec31ee950/card-1-t31-colour.webp
deleted file mode 100644
index a67cd724..00000000
Binary files a/public/ridge/vienna-f50ec31ee950/card-1-t31-colour.webp and /dev/null differ
diff --git a/public/ridge/vienna-f50ec31ee950/card-1-t31-geometry.webp b/public/ridge/vienna-f50ec31ee950/card-1-t31-geometry.webp
deleted file mode 100644
index b1365240..00000000
Binary files a/public/ridge/vienna-f50ec31ee950/card-1-t31-geometry.webp and /dev/null differ
diff --git a/public/ridge/vienna-f50ec31ee950/card-2-t00-colour.webp b/public/ridge/vienna-f50ec31ee950/card-2-t00-colour.webp
deleted file mode 100644
index 8bfde290..00000000
Binary files a/public/ridge/vienna-f50ec31ee950/card-2-t00-colour.webp and /dev/null differ
diff --git a/public/ridge/vienna-f50ec31ee950/card-2-t00-geometry.webp b/public/ridge/vienna-f50ec31ee950/card-2-t00-geometry.webp
deleted file mode 100644
index ae5550f5..00000000
Binary files a/public/ridge/vienna-f50ec31ee950/card-2-t00-geometry.webp and /dev/null differ
diff --git a/public/ridge/vienna-f50ec31ee950/card-2-t01-colour.webp b/public/ridge/vienna-f50ec31ee950/card-2-t01-colour.webp
deleted file mode 100644
index 8039a109..00000000
Binary files a/public/ridge/vienna-f50ec31ee950/card-2-t01-colour.webp and /dev/null differ
diff --git a/public/ridge/vienna-f50ec31ee950/card-2-t01-geometry.webp b/public/ridge/vienna-f50ec31ee950/card-2-t01-geometry.webp
deleted file mode 100644
index 6b086a39..00000000
Binary files a/public/ridge/vienna-f50ec31ee950/card-2-t01-geometry.webp and /dev/null differ
diff --git a/public/ridge/vienna-f50ec31ee950/card-2-t02-colour.webp b/public/ridge/vienna-f50ec31ee950/card-2-t02-colour.webp
deleted file mode 100644
index 1317a36d..00000000
Binary files a/public/ridge/vienna-f50ec31ee950/card-2-t02-colour.webp and /dev/null differ
diff --git a/public/ridge/vienna-f50ec31ee950/card-2-t02-geometry.webp b/public/ridge/vienna-f50ec31ee950/card-2-t02-geometry.webp
deleted file mode 100644
index 1ba99ab8..00000000
Binary files a/public/ridge/vienna-f50ec31ee950/card-2-t02-geometry.webp and /dev/null differ
diff --git a/public/ridge/vienna-f50ec31ee950/card-2-t03-colour.webp b/public/ridge/vienna-f50ec31ee950/card-2-t03-colour.webp
deleted file mode 100644
index e1be6372..00000000
Binary files a/public/ridge/vienna-f50ec31ee950/card-2-t03-colour.webp and /dev/null differ
diff --git a/public/ridge/vienna-f50ec31ee950/card-2-t03-geometry.webp b/public/ridge/vienna-f50ec31ee950/card-2-t03-geometry.webp
deleted file mode 100644
index 6cb9b9c5..00000000
Binary files a/public/ridge/vienna-f50ec31ee950/card-2-t03-geometry.webp and /dev/null differ
diff --git a/public/ridge/vienna-f50ec31ee950/card-2-t04-colour.webp b/public/ridge/vienna-f50ec31ee950/card-2-t04-colour.webp
deleted file mode 100644
index 45d9819b..00000000
Binary files a/public/ridge/vienna-f50ec31ee950/card-2-t04-colour.webp and /dev/null differ
diff --git a/public/ridge/vienna-f50ec31ee950/card-2-t04-geometry.webp b/public/ridge/vienna-f50ec31ee950/card-2-t04-geometry.webp
deleted file mode 100644
index 6a0204d6..00000000
Binary files a/public/ridge/vienna-f50ec31ee950/card-2-t04-geometry.webp and /dev/null differ
diff --git a/public/ridge/vienna-f50ec31ee950/card-2-t05-colour.webp b/public/ridge/vienna-f50ec31ee950/card-2-t05-colour.webp
deleted file mode 100644
index a3e8391e..00000000
Binary files a/public/ridge/vienna-f50ec31ee950/card-2-t05-colour.webp and /dev/null differ
diff --git a/public/ridge/vienna-f50ec31ee950/card-2-t05-geometry.webp b/public/ridge/vienna-f50ec31ee950/card-2-t05-geometry.webp
deleted file mode 100644
index 58b0f626..00000000
Binary files a/public/ridge/vienna-f50ec31ee950/card-2-t05-geometry.webp and /dev/null differ
diff --git a/public/ridge/vienna-f50ec31ee950/card-2-t06-colour.webp b/public/ridge/vienna-f50ec31ee950/card-2-t06-colour.webp
deleted file mode 100644
index 40674442..00000000
Binary files a/public/ridge/vienna-f50ec31ee950/card-2-t06-colour.webp and /dev/null differ
diff --git a/public/ridge/vienna-f50ec31ee950/card-2-t06-geometry.webp b/public/ridge/vienna-f50ec31ee950/card-2-t06-geometry.webp
deleted file mode 100644
index 8b9fdb41..00000000
Binary files a/public/ridge/vienna-f50ec31ee950/card-2-t06-geometry.webp and /dev/null differ
diff --git a/public/ridge/vienna-f50ec31ee950/card-2-t07-colour.webp b/public/ridge/vienna-f50ec31ee950/card-2-t07-colour.webp
deleted file mode 100644
index ec5da0e4..00000000
Binary files a/public/ridge/vienna-f50ec31ee950/card-2-t07-colour.webp and /dev/null differ
diff --git a/public/ridge/vienna-f50ec31ee950/card-2-t07-geometry.webp b/public/ridge/vienna-f50ec31ee950/card-2-t07-geometry.webp
deleted file mode 100644
index 4cb83331..00000000
Binary files a/public/ridge/vienna-f50ec31ee950/card-2-t07-geometry.webp and /dev/null differ
diff --git a/public/ridge/vienna-f50ec31ee950/card-2-t08-colour.webp b/public/ridge/vienna-f50ec31ee950/card-2-t08-colour.webp
deleted file mode 100644
index b7c9cccf..00000000
Binary files a/public/ridge/vienna-f50ec31ee950/card-2-t08-colour.webp and /dev/null differ
diff --git a/public/ridge/vienna-f50ec31ee950/card-2-t08-geometry.webp b/public/ridge/vienna-f50ec31ee950/card-2-t08-geometry.webp
deleted file mode 100644
index 5ae5e3ae..00000000
Binary files a/public/ridge/vienna-f50ec31ee950/card-2-t08-geometry.webp and /dev/null differ
diff --git a/public/ridge/vienna-f50ec31ee950/card-2-t09-colour.webp b/public/ridge/vienna-f50ec31ee950/card-2-t09-colour.webp
deleted file mode 100644
index b9fa4d48..00000000
Binary files a/public/ridge/vienna-f50ec31ee950/card-2-t09-colour.webp and /dev/null differ
diff --git a/public/ridge/vienna-f50ec31ee950/card-2-t09-geometry.webp b/public/ridge/vienna-f50ec31ee950/card-2-t09-geometry.webp
deleted file mode 100644
index cc630325..00000000
Binary files a/public/ridge/vienna-f50ec31ee950/card-2-t09-geometry.webp and /dev/null differ
diff --git a/public/ridge/vienna-f50ec31ee950/card-2-t10-colour.webp b/public/ridge/vienna-f50ec31ee950/card-2-t10-colour.webp
deleted file mode 100644
index b63b2a9b..00000000
Binary files a/public/ridge/vienna-f50ec31ee950/card-2-t10-colour.webp and /dev/null differ
diff --git a/public/ridge/vienna-f50ec31ee950/card-2-t10-geometry.webp b/public/ridge/vienna-f50ec31ee950/card-2-t10-geometry.webp
deleted file mode 100644
index c634800f..00000000
Binary files a/public/ridge/vienna-f50ec31ee950/card-2-t10-geometry.webp and /dev/null differ
diff --git a/public/ridge/vienna-f50ec31ee950/card-2-t11-colour.webp b/public/ridge/vienna-f50ec31ee950/card-2-t11-colour.webp
deleted file mode 100644
index f0c1b27e..00000000
Binary files a/public/ridge/vienna-f50ec31ee950/card-2-t11-colour.webp and /dev/null differ
diff --git a/public/ridge/vienna-f50ec31ee950/card-2-t11-geometry.webp b/public/ridge/vienna-f50ec31ee950/card-2-t11-geometry.webp
deleted file mode 100644
index 8d79bb99..00000000
Binary files a/public/ridge/vienna-f50ec31ee950/card-2-t11-geometry.webp and /dev/null differ
diff --git a/public/ridge/vienna-f50ec31ee950/card-2-t12-colour.webp b/public/ridge/vienna-f50ec31ee950/card-2-t12-colour.webp
deleted file mode 100644
index 42cf3107..00000000
Binary files a/public/ridge/vienna-f50ec31ee950/card-2-t12-colour.webp and /dev/null differ
diff --git a/public/ridge/vienna-f50ec31ee950/card-2-t12-geometry.webp b/public/ridge/vienna-f50ec31ee950/card-2-t12-geometry.webp
deleted file mode 100644
index f2dafbd9..00000000
Binary files a/public/ridge/vienna-f50ec31ee950/card-2-t12-geometry.webp and /dev/null differ
diff --git a/public/ridge/vienna-f50ec31ee950/card-2-t13-colour.webp b/public/ridge/vienna-f50ec31ee950/card-2-t13-colour.webp
deleted file mode 100644
index 07dd9300..00000000
Binary files a/public/ridge/vienna-f50ec31ee950/card-2-t13-colour.webp and /dev/null differ
diff --git a/public/ridge/vienna-f50ec31ee950/card-2-t13-geometry.webp b/public/ridge/vienna-f50ec31ee950/card-2-t13-geometry.webp
deleted file mode 100644
index e20a9170..00000000
Binary files a/public/ridge/vienna-f50ec31ee950/card-2-t13-geometry.webp and /dev/null differ
diff --git a/public/ridge/vienna-f50ec31ee950/card-2-t14-colour.webp b/public/ridge/vienna-f50ec31ee950/card-2-t14-colour.webp
deleted file mode 100644
index 623e6edb..00000000
Binary files a/public/ridge/vienna-f50ec31ee950/card-2-t14-colour.webp and /dev/null differ
diff --git a/public/ridge/vienna-f50ec31ee950/card-2-t14-geometry.webp b/public/ridge/vienna-f50ec31ee950/card-2-t14-geometry.webp
deleted file mode 100644
index 02b1258f..00000000
Binary files a/public/ridge/vienna-f50ec31ee950/card-2-t14-geometry.webp and /dev/null differ
diff --git a/public/ridge/vienna-f50ec31ee950/card-2-t15-colour.webp b/public/ridge/vienna-f50ec31ee950/card-2-t15-colour.webp
deleted file mode 100644
index 079fd725..00000000
Binary files a/public/ridge/vienna-f50ec31ee950/card-2-t15-colour.webp and /dev/null differ
diff --git a/public/ridge/vienna-f50ec31ee950/card-2-t15-geometry.webp b/public/ridge/vienna-f50ec31ee950/card-2-t15-geometry.webp
deleted file mode 100644
index cea2b8e4..00000000
Binary files a/public/ridge/vienna-f50ec31ee950/card-2-t15-geometry.webp and /dev/null differ
diff --git a/public/ridge/vienna-f50ec31ee950/card-2-t16-colour.webp b/public/ridge/vienna-f50ec31ee950/card-2-t16-colour.webp
deleted file mode 100644
index 67f196c1..00000000
Binary files a/public/ridge/vienna-f50ec31ee950/card-2-t16-colour.webp and /dev/null differ
diff --git a/public/ridge/vienna-f50ec31ee950/card-2-t16-geometry.webp b/public/ridge/vienna-f50ec31ee950/card-2-t16-geometry.webp
deleted file mode 100644
index 3702ec15..00000000
Binary files a/public/ridge/vienna-f50ec31ee950/card-2-t16-geometry.webp and /dev/null differ
diff --git a/public/ridge/vienna-f50ec31ee950/card-2-t17-colour.webp b/public/ridge/vienna-f50ec31ee950/card-2-t17-colour.webp
deleted file mode 100644
index b2c864e2..00000000
Binary files a/public/ridge/vienna-f50ec31ee950/card-2-t17-colour.webp and /dev/null differ
diff --git a/public/ridge/vienna-f50ec31ee950/card-2-t17-geometry.webp b/public/ridge/vienna-f50ec31ee950/card-2-t17-geometry.webp
deleted file mode 100644
index 133bb147..00000000
Binary files a/public/ridge/vienna-f50ec31ee950/card-2-t17-geometry.webp and /dev/null differ
diff --git a/public/ridge/vienna-f50ec31ee950/card-2-t18-colour.webp b/public/ridge/vienna-f50ec31ee950/card-2-t18-colour.webp
deleted file mode 100644
index a0d4d8fa..00000000
Binary files a/public/ridge/vienna-f50ec31ee950/card-2-t18-colour.webp and /dev/null differ
diff --git a/public/ridge/vienna-f50ec31ee950/card-2-t18-geometry.webp b/public/ridge/vienna-f50ec31ee950/card-2-t18-geometry.webp
deleted file mode 100644
index 34949f41..00000000
Binary files a/public/ridge/vienna-f50ec31ee950/card-2-t18-geometry.webp and /dev/null differ
diff --git a/public/ridge/vienna-f50ec31ee950/card-2-t19-colour.webp b/public/ridge/vienna-f50ec31ee950/card-2-t19-colour.webp
deleted file mode 100644
index 7a44160b..00000000
Binary files a/public/ridge/vienna-f50ec31ee950/card-2-t19-colour.webp and /dev/null differ
diff --git a/public/ridge/vienna-f50ec31ee950/card-2-t19-geometry.webp b/public/ridge/vienna-f50ec31ee950/card-2-t19-geometry.webp
deleted file mode 100644
index bffe85bd..00000000
Binary files a/public/ridge/vienna-f50ec31ee950/card-2-t19-geometry.webp and /dev/null differ
diff --git a/public/ridge/vienna-f50ec31ee950/card-2-t20-colour.webp b/public/ridge/vienna-f50ec31ee950/card-2-t20-colour.webp
deleted file mode 100644
index 760155fd..00000000
Binary files a/public/ridge/vienna-f50ec31ee950/card-2-t20-colour.webp and /dev/null differ
diff --git a/public/ridge/vienna-f50ec31ee950/card-2-t20-geometry.webp b/public/ridge/vienna-f50ec31ee950/card-2-t20-geometry.webp
deleted file mode 100644
index c24bf013..00000000
Binary files a/public/ridge/vienna-f50ec31ee950/card-2-t20-geometry.webp and /dev/null differ
diff --git a/public/ridge/vienna-f50ec31ee950/card-2-t21-colour.webp b/public/ridge/vienna-f50ec31ee950/card-2-t21-colour.webp
deleted file mode 100644
index b38a28e1..00000000
Binary files a/public/ridge/vienna-f50ec31ee950/card-2-t21-colour.webp and /dev/null differ
diff --git a/public/ridge/vienna-f50ec31ee950/card-2-t21-geometry.webp b/public/ridge/vienna-f50ec31ee950/card-2-t21-geometry.webp
deleted file mode 100644
index 60482a18..00000000
Binary files a/public/ridge/vienna-f50ec31ee950/card-2-t21-geometry.webp and /dev/null differ
diff --git a/public/ridge/vienna-f50ec31ee950/card-2-t22-colour.webp b/public/ridge/vienna-f50ec31ee950/card-2-t22-colour.webp
deleted file mode 100644
index b0dc679f..00000000
Binary files a/public/ridge/vienna-f50ec31ee950/card-2-t22-colour.webp and /dev/null differ
diff --git a/public/ridge/vienna-f50ec31ee950/card-2-t22-geometry.webp b/public/ridge/vienna-f50ec31ee950/card-2-t22-geometry.webp
deleted file mode 100644
index 35103f4a..00000000
Binary files a/public/ridge/vienna-f50ec31ee950/card-2-t22-geometry.webp and /dev/null differ
diff --git a/public/ridge/vienna-f50ec31ee950/card-2-t23-colour.webp b/public/ridge/vienna-f50ec31ee950/card-2-t23-colour.webp
deleted file mode 100644
index 30cd1c5b..00000000
Binary files a/public/ridge/vienna-f50ec31ee950/card-2-t23-colour.webp and /dev/null differ
diff --git a/public/ridge/vienna-f50ec31ee950/card-2-t23-geometry.webp b/public/ridge/vienna-f50ec31ee950/card-2-t23-geometry.webp
deleted file mode 100644
index d9c75f82..00000000
Binary files a/public/ridge/vienna-f50ec31ee950/card-2-t23-geometry.webp and /dev/null differ
diff --git a/public/ridge/vienna-f50ec31ee950/card-2-t24-colour.webp b/public/ridge/vienna-f50ec31ee950/card-2-t24-colour.webp
deleted file mode 100644
index 5233fb24..00000000
Binary files a/public/ridge/vienna-f50ec31ee950/card-2-t24-colour.webp and /dev/null differ
diff --git a/public/ridge/vienna-f50ec31ee950/card-2-t24-geometry.webp b/public/ridge/vienna-f50ec31ee950/card-2-t24-geometry.webp
deleted file mode 100644
index 48a2aa42..00000000
Binary files a/public/ridge/vienna-f50ec31ee950/card-2-t24-geometry.webp and /dev/null differ
diff --git a/public/ridge/vienna-f50ec31ee950/card-2-t25-colour.webp b/public/ridge/vienna-f50ec31ee950/card-2-t25-colour.webp
deleted file mode 100644
index fc092679..00000000
Binary files a/public/ridge/vienna-f50ec31ee950/card-2-t25-colour.webp and /dev/null differ
diff --git a/public/ridge/vienna-f50ec31ee950/card-2-t25-geometry.webp b/public/ridge/vienna-f50ec31ee950/card-2-t25-geometry.webp
deleted file mode 100644
index 4c5e7fc8..00000000
Binary files a/public/ridge/vienna-f50ec31ee950/card-2-t25-geometry.webp and /dev/null differ
diff --git a/public/ridge/vienna-f50ec31ee950/card-2-t26-colour.webp b/public/ridge/vienna-f50ec31ee950/card-2-t26-colour.webp
deleted file mode 100644
index aa277098..00000000
Binary files a/public/ridge/vienna-f50ec31ee950/card-2-t26-colour.webp and /dev/null differ
diff --git a/public/ridge/vienna-f50ec31ee950/card-2-t26-geometry.webp b/public/ridge/vienna-f50ec31ee950/card-2-t26-geometry.webp
deleted file mode 100644
index 06258cf4..00000000
Binary files a/public/ridge/vienna-f50ec31ee950/card-2-t26-geometry.webp and /dev/null differ
diff --git a/public/ridge/vienna-f50ec31ee950/card-2-t27-colour.webp b/public/ridge/vienna-f50ec31ee950/card-2-t27-colour.webp
deleted file mode 100644
index 34d07fee..00000000
Binary files a/public/ridge/vienna-f50ec31ee950/card-2-t27-colour.webp and /dev/null differ
diff --git a/public/ridge/vienna-f50ec31ee950/card-2-t27-geometry.webp b/public/ridge/vienna-f50ec31ee950/card-2-t27-geometry.webp
deleted file mode 100644
index f23c776f..00000000
Binary files a/public/ridge/vienna-f50ec31ee950/card-2-t27-geometry.webp and /dev/null differ
diff --git a/public/ridge/vienna-f50ec31ee950/card-2-t28-colour.webp b/public/ridge/vienna-f50ec31ee950/card-2-t28-colour.webp
deleted file mode 100644
index f3dbe838..00000000
Binary files a/public/ridge/vienna-f50ec31ee950/card-2-t28-colour.webp and /dev/null differ
diff --git a/public/ridge/vienna-f50ec31ee950/card-2-t28-geometry.webp b/public/ridge/vienna-f50ec31ee950/card-2-t28-geometry.webp
deleted file mode 100644
index c3157c79..00000000
Binary files a/public/ridge/vienna-f50ec31ee950/card-2-t28-geometry.webp and /dev/null differ
diff --git a/public/ridge/vienna-f50ec31ee950/card-2-t29-colour.webp b/public/ridge/vienna-f50ec31ee950/card-2-t29-colour.webp
deleted file mode 100644
index 6319a327..00000000
Binary files a/public/ridge/vienna-f50ec31ee950/card-2-t29-colour.webp and /dev/null differ
diff --git a/public/ridge/vienna-f50ec31ee950/card-2-t29-geometry.webp b/public/ridge/vienna-f50ec31ee950/card-2-t29-geometry.webp
deleted file mode 100644
index c02f2b73..00000000
Binary files a/public/ridge/vienna-f50ec31ee950/card-2-t29-geometry.webp and /dev/null differ
diff --git a/public/ridge/vienna-f50ec31ee950/card-2-t30-colour.webp b/public/ridge/vienna-f50ec31ee950/card-2-t30-colour.webp
deleted file mode 100644
index 4a604811..00000000
Binary files a/public/ridge/vienna-f50ec31ee950/card-2-t30-colour.webp and /dev/null differ
diff --git a/public/ridge/vienna-f50ec31ee950/card-2-t30-geometry.webp b/public/ridge/vienna-f50ec31ee950/card-2-t30-geometry.webp
deleted file mode 100644
index f0f62f6f..00000000
Binary files a/public/ridge/vienna-f50ec31ee950/card-2-t30-geometry.webp and /dev/null differ
diff --git a/public/ridge/vienna-f50ec31ee950/card-2-t31-colour.webp b/public/ridge/vienna-f50ec31ee950/card-2-t31-colour.webp
deleted file mode 100644
index ac008a73..00000000
Binary files a/public/ridge/vienna-f50ec31ee950/card-2-t31-colour.webp and /dev/null differ
diff --git a/public/ridge/vienna-f50ec31ee950/card-2-t31-geometry.webp b/public/ridge/vienna-f50ec31ee950/card-2-t31-geometry.webp
deleted file mode 100644
index b60767fd..00000000
Binary files a/public/ridge/vienna-f50ec31ee950/card-2-t31-geometry.webp and /dev/null differ
diff --git a/public/ridge/vienna-f50ec31ee950/manifest.json b/public/ridge/vienna-f50ec31ee950/manifest.json
deleted file mode 100644
index caca5704..00000000
--- a/public/ridge/vienna-f50ec31ee950/manifest.json
+++ /dev/null
@@ -1,1376 +0,0 @@
-{
- "schema": 3,
- "baker_version": 7,
- "bake_id": "f50ec31ee950",
- "place": {
- "id": "vienna",
- "name": "Vienna, looking SW to Rax/Schneeberg",
- "lat": 48.1929826,
- "lon": 16.3534237,
- "altitude_km": 0.18330000000000002,
- "eye_m": 213.3,
- "tz": "Europe/Vienna"
- },
- "view": {
- "look_az_deg": 214.0,
- "plane_h": 600,
- "px_per_deg_h": 17.77777777777778,
- "px_per_deg_v": 171.73831979090915,
- "exaggeration": 9.660280488238639,
- "horizon_row": 357.01990847502145,
- "sky_row": 24.0,
- "near_row": 396.0,
- "ring_w": 6400,
- "tile_w": 200,
- "tiles": 32,
- "apron": 2
- },
- "curvature": {
- "r_earth_m": 6371000.0,
- "k_ref": 0.13
- },
- "encoding": {
- "log_d_min": 6.214608098422191,
- "log_d_max": 11.462786662662916,
- "normal": "rt8"
- },
- "camera": {
- "r_max_m": 95.8,
- "r_max_forward_m": 198.4
- },
- "cards": [
- {
- "near_m": null,
- "far_m": 4013.740853069043
- },
- {
- "near_m": 4013.740853069043,
- "far_m": 41206.78494161152
- },
- {
- "near_m": 41206.78494161152,
- "far_m": null
- }
- ],
- "tiles": [
- [
- {
- "top": 337,
- "h": 263,
- "distance_m": 612.7647094726562,
- "colour": {
- "file": "card-0-t00-colour.webp",
- "bytes": 850
- },
- "geometry": {
- "file": "card-0-t00-geometry.webp",
- "bytes": 7502
- }
- },
- {
- "top": 254,
- "h": 346,
- "distance_m": 7923.6240234375,
- "colour": {
- "file": "card-1-t00-colour.webp",
- "bytes": 1328
- },
- "geometry": {
- "file": "card-1-t00-geometry.webp",
- "bytes": 21430
- }
- },
- {
- "top": 326,
- "h": 274,
- "distance_m": 41265.13671875,
- "colour": {
- "file": "card-2-t00-colour.webp",
- "bytes": 894
- },
- "geometry": {
- "file": "card-2-t00-geometry.webp",
- "bytes": 8502
- }
- }
- ],
- [
- {
- "top": 397,
- "h": 203,
- "distance_m": 681.6199951171875,
- "colour": {
- "file": "card-0-t01-colour.webp",
- "bytes": 702
- },
- "geometry": {
- "file": "card-0-t01-geometry.webp",
- "bytes": 5444
- }
- },
- {
- "top": 294,
- "h": 306,
- "distance_m": 12328.642578125,
- "colour": {
- "file": "card-1-t01-colour.webp",
- "bytes": 1202
- },
- "geometry": {
- "file": "card-1-t01-geometry.webp",
- "bytes": 19568
- }
- },
- {
- "top": 359,
- "h": 241,
- "distance_m": 41087.56640625,
- "colour": {
- "file": "card-2-t01-colour.webp",
- "bytes": 652
- },
- "geometry": {
- "file": "card-2-t01-geometry.webp",
- "bytes": 3190
- }
- }
- ],
- [
- {
- "top": 437,
- "h": 163,
- "distance_m": 802.34912109375,
- "colour": {
- "file": "card-0-t02-colour.webp",
- "bytes": 634
- },
- "geometry": {
- "file": "card-0-t02-geometry.webp",
- "bytes": 7220
- }
- },
- {
- "top": 353,
- "h": 247,
- "distance_m": 9379.99609375,
- "colour": {
- "file": "card-1-t02-colour.webp",
- "bytes": 956
- },
- "geometry": {
- "file": "card-1-t02-geometry.webp",
- "bytes": 16212
- }
- },
- {
- "top": 362,
- "h": 238,
- "distance_m": 38873.109375,
- "colour": {
- "file": "card-2-t02-colour.webp",
- "bytes": 506
- },
- "geometry": {
- "file": "card-2-t02-geometry.webp",
- "bytes": 2514
- }
- }
- ],
- [
- {
- "top": 439,
- "h": 161,
- "distance_m": 1497.642333984375,
- "colour": {
- "file": "card-0-t03-colour.webp",
- "bytes": 600
- },
- "geometry": {
- "file": "card-0-t03-geometry.webp",
- "bytes": 9330
- }
- },
- {
- "top": 357,
- "h": 243,
- "distance_m": 9379.99609375,
- "colour": {
- "file": "card-1-t03-colour.webp",
- "bytes": 986
- },
- "geometry": {
- "file": "card-1-t03-geometry.webp",
- "bytes": 15134
- }
- },
- {
- "top": 371,
- "h": 229,
- "distance_m": 39822.90234375,
- "colour": {
- "file": "card-2-t03-colour.webp",
- "bytes": 482
- },
- "geometry": {
- "file": "card-2-t03-geometry.webp",
- "bytes": 1748
- }
- }
- ],
- [
- {
- "top": 455,
- "h": 145,
- "distance_m": 1587.480712890625,
- "colour": {
- "file": "card-0-t04-colour.webp",
- "bytes": 678
- },
- "geometry": {
- "file": "card-0-t04-geometry.webp",
- "bytes": 7418
- }
- },
- {
- "top": 363,
- "h": 237,
- "distance_m": 7940.0009765625,
- "colour": {
- "file": "card-1-t04-colour.webp",
- "bytes": 1008
- },
- "geometry": {
- "file": "card-1-t04-geometry.webp",
- "bytes": 15664
- }
- },
- {
- "top": 380,
- "h": 220,
- "distance_m": 42715.42578125,
- "colour": {
- "file": "card-2-t04-colour.webp",
- "bytes": 510
- },
- "geometry": {
- "file": "card-2-t04-geometry.webp",
- "bytes": 516
- }
- }
- ],
- [
- {
- "top": 461,
- "h": 139,
- "distance_m": 1739.9998779296875,
- "colour": {
- "file": "card-0-t05-colour.webp",
- "bytes": 552
- },
- "geometry": {
- "file": "card-0-t05-geometry.webp",
- "bytes": 9882
- }
- },
- {
- "top": 390,
- "h": 210,
- "distance_m": 7191.796875,
- "colour": {
- "file": "card-1-t05-colour.webp",
- "bytes": 498
- },
- "geometry": {
- "file": "card-1-t05-geometry.webp",
- "bytes": 9640
- }
- },
- {
- "top": 342,
- "h": 258,
- "distance_m": 73387.6015625,
- "colour": {
- "file": "card-2-t05-colour.webp",
- "bytes": 994
- },
- "geometry": {
- "file": "card-2-t05-geometry.webp",
- "bytes": 6354
- }
- }
- ],
- [
- {
- "top": 461,
- "h": 139,
- "distance_m": 1397.39599609375,
- "colour": {
- "file": "card-0-t06-colour.webp",
- "bytes": 384
- },
- "geometry": {
- "file": "card-0-t06-geometry.webp",
- "bytes": 7150
- }
- },
- {
- "top": 393,
- "h": 207,
- "distance_m": 6499.99853515625,
- "colour": {
- "file": "card-1-t06-colour.webp",
- "bytes": 514
- },
- "geometry": {
- "file": "card-1-t06-geometry.webp",
- "bytes": 10622
- }
- },
- {
- "top": 323,
- "h": 277,
- "distance_m": 60884.40234375,
- "colour": {
- "file": "card-2-t06-colour.webp",
- "bytes": 1652
- },
- "geometry": {
- "file": "card-2-t06-geometry.webp",
- "bytes": 18624
- }
- }
- ],
- [
- {
- "top": 440,
- "h": 160,
- "distance_m": 1639.5902099609375,
- "colour": {
- "file": "card-0-t07-colour.webp",
- "bytes": 584
- },
- "geometry": {
- "file": "card-0-t07-geometry.webp",
- "bytes": 9288
- }
- },
- {
- "top": 393,
- "h": 207,
- "distance_m": 7020.00244140625,
- "colour": {
- "file": "card-1-t07-colour.webp",
- "bytes": 604
- },
- "geometry": {
- "file": "card-1-t07-geometry.webp",
- "bytes": 8706
- }
- },
- {
- "top": 332,
- "h": 268,
- "distance_m": 53030.578125,
- "colour": {
- "file": "card-2-t07-colour.webp",
- "bytes": 1356
- },
- "geometry": {
- "file": "card-2-t07-geometry.webp",
- "bytes": 14322
- }
- }
- ],
- [
- {
- "top": 404,
- "h": 196,
- "distance_m": 1494.0631103515625,
- "colour": {
- "file": "card-0-t08-colour.webp",
- "bytes": 728
- },
- "geometry": {
- "file": "card-0-t08-geometry.webp",
- "bytes": 9320
- }
- },
- {
- "top": 393,
- "h": 207,
- "distance_m": 7499.99755859375,
- "colour": {
- "file": "card-1-t08-colour.webp",
- "bytes": 700
- },
- "geometry": {
- "file": "card-1-t08-geometry.webp",
- "bytes": 10602
- }
- },
- {
- "top": 329,
- "h": 271,
- "distance_m": 44656.86328125,
- "colour": {
- "file": "card-2-t08-colour.webp",
- "bytes": 1258
- },
- "geometry": {
- "file": "card-2-t08-geometry.webp",
- "bytes": 9538
- }
- }
- ],
- [
- {
- "top": 396,
- "h": 204,
- "distance_m": 1222.066650390625,
- "colour": {
- "file": "card-0-t09-colour.webp",
- "bytes": 558
- },
- "geometry": {
- "file": "card-0-t09-geometry.webp",
- "bytes": 8568
- }
- },
- {
- "top": 360,
- "h": 240,
- "distance_m": 9976.568359375,
- "colour": {
- "file": "card-1-t09-colour.webp",
- "bytes": 876
- },
- "geometry": {
- "file": "card-1-t09-geometry.webp",
- "bytes": 12968
- }
- },
- {
- "top": 370,
- "h": 230,
- "distance_m": 44772.3828125,
- "colour": {
- "file": "card-2-t09-colour.webp",
- "bytes": 626
- },
- "geometry": {
- "file": "card-2-t09-geometry.webp",
- "bytes": 2232
- }
- }
- ],
- [
- {
- "top": 380,
- "h": 220,
- "distance_m": 1104.7967529296875,
- "colour": {
- "file": "card-0-t10-colour.webp",
- "bytes": 576
- },
- "geometry": {
- "file": "card-0-t10-geometry.webp",
- "bytes": 6836
- }
- },
- {
- "top": 355,
- "h": 245,
- "distance_m": 14817.3876953125,
- "colour": {
- "file": "card-1-t10-colour.webp",
- "bytes": 938
- },
- "geometry": {
- "file": "card-1-t10-geometry.webp",
- "bytes": 12918
- }
- },
- {
- "top": 370,
- "h": 230,
- "distance_m": 38822.984375,
- "colour": {
- "file": "card-2-t10-colour.webp",
- "bytes": 474
- },
- "geometry": {
- "file": "card-2-t10-geometry.webp",
- "bytes": 2060
- }
- }
- ],
- [
- {
- "top": 285,
- "h": 315,
- "distance_m": 1123.831787109375,
- "colour": {
- "file": "card-0-t11-colour.webp",
- "bytes": 1002
- },
- "geometry": {
- "file": "card-0-t11-geometry.webp",
- "bytes": 10782
- }
- },
- {
- "top": 312,
- "h": 288,
- "distance_m": 16307.2421875,
- "colour": {
- "file": "card-1-t11-colour.webp",
- "bytes": 544
- },
- "geometry": {
- "file": "card-1-t11-geometry.webp",
- "bytes": 2216
- }
- },
- {
- "top": 358,
- "h": 242,
- "distance_m": 37985.00390625,
- "colour": {
- "file": "card-2-t11-colour.webp",
- "bytes": 630
- },
- "geometry": {
- "file": "card-2-t11-geometry.webp",
- "bytes": 1840
- }
- }
- ],
- [
- {
- "top": 272,
- "h": 328,
- "distance_m": 1142.0506591796875,
- "colour": {
- "file": "card-0-t12-colour.webp",
- "bytes": 758
- },
- "geometry": {
- "file": "card-0-t12-geometry.webp",
- "bytes": 13578
- }
- },
- {
- "top": 281,
- "h": 319,
- "distance_m": 5059.99853515625,
- "colour": {
- "file": "card-1-t12-colour.webp",
- "bytes": 520
- },
- "geometry": {
- "file": "card-1-t12-geometry.webp",
- "bytes": 176
- }
- },
- {
- "top": 350,
- "h": 250,
- "distance_m": 37450.98828125,
- "colour": {
- "file": "card-2-t12-colour.webp",
- "bytes": 646
- },
- "geometry": {
- "file": "card-2-t12-geometry.webp",
- "bytes": 612
- }
- }
- ],
- [
- {
- "top": 265,
- "h": 335,
- "distance_m": 1120.1195068359375,
- "colour": {
- "file": "card-0-t13-colour.webp",
- "bytes": 582
- },
- "geometry": {
- "file": "card-0-t13-geometry.webp",
- "bytes": 11368
- }
- },
- {
- "top": 309,
- "h": 291,
- "distance_m": 35995.66015625,
- "colour": {
- "file": "card-1-t13-colour.webp",
- "bytes": 952
- },
- "geometry": {
- "file": "card-1-t13-geometry.webp",
- "bytes": 5842
- }
- },
- {
- "top": 332,
- "h": 268,
- "distance_m": 37581.2578125,
- "colour": {
- "file": "card-2-t13-colour.webp",
- "bytes": 634
- },
- "geometry": {
- "file": "card-2-t13-geometry.webp",
- "bytes": 1514
- }
- }
- ],
- [
- {
- "top": 247,
- "h": 353,
- "distance_m": 1184.9326171875,
- "colour": {
- "file": "card-0-t14-colour.webp",
- "bytes": 608
- },
- "geometry": {
- "file": "card-0-t14-geometry.webp",
- "bytes": 10944
- }
- },
- {
- "top": 312,
- "h": 288,
- "distance_m": 33968.61328125,
- "colour": {
- "file": "card-1-t14-colour.webp",
- "bytes": 1280
- },
- "geometry": {
- "file": "card-1-t14-geometry.webp",
- "bytes": 15154
- }
- },
- {
- "top": 318,
- "h": 282,
- "distance_m": 37484.328125,
- "colour": {
- "file": "card-2-t14-colour.webp",
- "bytes": 678
- },
- "geometry": {
- "file": "card-2-t14-geometry.webp",
- "bytes": 1148
- }
- }
- ],
- [
- {
- "top": 244,
- "h": 356,
- "distance_m": 1333.3995361328125,
- "colour": {
- "file": "card-0-t15-colour.webp",
- "bytes": 684
- },
- "geometry": {
- "file": "card-0-t15-geometry.webp",
- "bytes": 10824
- }
- },
- {
- "top": 346,
- "h": 254,
- "distance_m": 7460.00048828125,
- "colour": {
- "file": "card-1-t15-colour.webp",
- "bytes": 602
- },
- "geometry": {
- "file": "card-1-t15-geometry.webp",
- "bytes": 6172
- }
- },
- {
- "top": 315,
- "h": 285,
- "distance_m": 56122.19140625,
- "colour": {
- "file": "card-2-t15-colour.webp",
- "bytes": 1052
- },
- "geometry": {
- "file": "card-2-t15-geometry.webp",
- "bytes": 10512
- }
- }
- ],
- [
- {
- "top": 248,
- "h": 352,
- "distance_m": 1396.94775390625,
- "colour": {
- "file": "card-0-t16-colour.webp",
- "bytes": 810
- },
- "geometry": {
- "file": "card-0-t16-geometry.webp",
- "bytes": 11362
- }
- },
- {
- "top": 364,
- "h": 236,
- "distance_m": 6820.00048828125,
- "colour": {
- "file": "card-1-t16-colour.webp",
- "bytes": 436
- },
- "geometry": {
- "file": "card-1-t16-geometry.webp",
- "bytes": 4668
- }
- },
- {
- "top": 303,
- "h": 297,
- "distance_m": 53429.6796875,
- "colour": {
- "file": "card-2-t16-colour.webp",
- "bytes": 1488
- },
- "geometry": {
- "file": "card-2-t16-geometry.webp",
- "bytes": 18396
- }
- }
- ],
- [
- {
- "top": 286,
- "h": 314,
- "distance_m": 1396.3682861328125,
- "colour": {
- "file": "card-0-t17-colour.webp",
- "bytes": 684
- },
- "geometry": {
- "file": "card-0-t17-geometry.webp",
- "bytes": 10000
- }
- },
- {
- "top": 240,
- "h": 360,
- "distance_m": 14172.7490234375,
- "colour": {
- "file": "card-1-t17-colour.webp",
- "bytes": 1104
- },
- "geometry": {
- "file": "card-1-t17-geometry.webp",
- "bytes": 10308
- }
- },
- {
- "top": 235,
- "h": 365,
- "distance_m": 65859.734375,
- "colour": {
- "file": "card-2-t17-colour.webp",
- "bytes": 1674
- },
- "geometry": {
- "file": "card-2-t17-geometry.webp",
- "bytes": 16832
- }
- }
- ],
- [
- {
- "top": 314,
- "h": 286,
- "distance_m": 1440.37646484375,
- "colour": {
- "file": "card-0-t18-colour.webp",
- "bytes": 552
- },
- "geometry": {
- "file": "card-0-t18-geometry.webp",
- "bytes": 11138
- }
- },
- {
- "top": 122,
- "h": 478,
- "distance_m": 14387.8525390625,
- "colour": {
- "file": "card-1-t18-colour.webp",
- "bytes": 1796
- },
- "geometry": {
- "file": "card-1-t18-geometry.webp",
- "bytes": 30488
- }
- },
- {
- "top": 211,
- "h": 389,
- "distance_m": 44942.2578125,
- "colour": {
- "file": "card-2-t18-colour.webp",
- "bytes": 1396
- },
- "geometry": {
- "file": "card-2-t18-geometry.webp",
- "bytes": 17582
- }
- }
- ],
- [
- {
- "top": 317,
- "h": 283,
- "distance_m": 1704.598388671875,
- "colour": {
- "file": "card-0-t19-colour.webp",
- "bytes": 704
- },
- "geometry": {
- "file": "card-0-t19-geometry.webp",
- "bytes": 12068
- }
- },
- {
- "top": 144,
- "h": 456,
- "distance_m": 11607.04296875,
- "colour": {
- "file": "card-1-t19-colour.webp",
- "bytes": 1898
- },
- "geometry": {
- "file": "card-1-t19-geometry.webp",
- "bytes": 27774
- }
- },
- {
- "top": 111,
- "h": 489,
- "distance_m": 53726.9609375,
- "colour": {
- "file": "card-2-t19-colour.webp",
- "bytes": 2010
- },
- "geometry": {
- "file": "card-2-t19-geometry.webp",
- "bytes": 24316
- }
- }
- ],
- [
- {
- "top": 297,
- "h": 303,
- "distance_m": 2042.0157470703125,
- "colour": {
- "file": "card-0-t20-colour.webp",
- "bytes": 724
- },
- "geometry": {
- "file": "card-0-t20-geometry.webp",
- "bytes": 11566
- }
- },
- {
- "top": 95,
- "h": 505,
- "distance_m": 10982.046875,
- "colour": {
- "file": "card-1-t20-colour.webp",
- "bytes": 1794
- },
- "geometry": {
- "file": "card-1-t20-geometry.webp",
- "bytes": 28234
- }
- },
- {
- "top": 171,
- "h": 429,
- "distance_m": 40730.703125,
- "colour": {
- "file": "card-2-t20-colour.webp",
- "bytes": 1772
- },
- "geometry": {
- "file": "card-2-t20-geometry.webp",
- "bytes": 17478
- }
- }
- ],
- [
- {
- "top": 269,
- "h": 331,
- "distance_m": 2420.00048828125,
- "colour": {
- "file": "card-0-t21-colour.webp",
- "bytes": 998
- },
- "geometry": {
- "file": "card-0-t21-geometry.webp",
- "bytes": 18072
- }
- },
- {
- "top": 174,
- "h": 426,
- "distance_m": 8230.6103515625,
- "colour": {
- "file": "card-1-t21-colour.webp",
- "bytes": 1386
- },
- "geometry": {
- "file": "card-1-t21-geometry.webp",
- "bytes": 15038
- }
- },
- {
- "top": 199,
- "h": 401,
- "distance_m": 41044.6015625,
- "colour": {
- "file": "card-2-t21-colour.webp",
- "bytes": 1644
- },
- "geometry": {
- "file": "card-2-t21-geometry.webp",
- "bytes": 16786
- }
- }
- ],
- [
- {
- "top": 279,
- "h": 321,
- "distance_m": 1978.4818115234375,
- "colour": {
- "file": "card-0-t22-colour.webp",
- "bytes": 1478
- },
- "geometry": {
- "file": "card-0-t22-geometry.webp",
- "bytes": 19720
- }
- },
- {
- "top": 80,
- "h": 520,
- "distance_m": 7335.22265625,
- "colour": {
- "file": "card-1-t22-colour.webp",
- "bytes": 1866
- },
- "geometry": {
- "file": "card-1-t22-geometry.webp",
- "bytes": 21744
- }
- },
- {
- "top": 232,
- "h": 368,
- "distance_m": 40101.375,
- "colour": {
- "file": "card-2-t22-colour.webp",
- "bytes": 1206
- },
- "geometry": {
- "file": "card-2-t22-geometry.webp",
- "bytes": 6988
- }
- }
- ],
- [
- {
- "top": 351,
- "h": 249,
- "distance_m": 925.3698120117188,
- "colour": {
- "file": "card-0-t23-colour.webp",
- "bytes": 946
- },
- "geometry": {
- "file": "card-0-t23-geometry.webp",
- "bytes": 10266
- }
- },
- {
- "top": 79,
- "h": 521,
- "distance_m": 7168.36474609375,
- "colour": {
- "file": "card-1-t23-colour.webp",
- "bytes": 1384
- },
- "geometry": {
- "file": "card-1-t23-geometry.webp",
- "bytes": 20954
- }
- },
- {
- "top": 289,
- "h": 311,
- "distance_m": 41300.6875,
- "colour": {
- "file": "card-2-t23-colour.webp",
- "bytes": 934
- },
- "geometry": {
- "file": "card-2-t23-geometry.webp",
- "bytes": 4296
- }
- }
- ],
- [
- {
- "top": 244,
- "h": 356,
- "distance_m": 1025.4903564453125,
- "colour": {
- "file": "card-0-t24-colour.webp",
- "bytes": 1106
- },
- "geometry": {
- "file": "card-0-t24-geometry.webp",
- "bytes": 11518
- }
- },
- {
- "top": 159,
- "h": 441,
- "distance_m": 11321.796875,
- "colour": {
- "file": "card-1-t24-colour.webp",
- "bytes": 1558
- },
- "geometry": {
- "file": "card-1-t24-geometry.webp",
- "bytes": 18134
- }
- },
- {
- "top": 319,
- "h": 281,
- "distance_m": 57565.35546875,
- "colour": {
- "file": "card-2-t24-colour.webp",
- "bytes": 954
- },
- "geometry": {
- "file": "card-2-t24-geometry.webp",
- "bytes": 6602
- }
- }
- ],
- [
- {
- "top": 229,
- "h": 371,
- "distance_m": 1073.8558349609375,
- "colour": {
- "file": "card-0-t25-colour.webp",
- "bytes": 808
- },
- "geometry": {
- "file": "card-0-t25-geometry.webp",
- "bytes": 12526
- }
- },
- {
- "top": 72,
- "h": 528,
- "distance_m": 5733.2158203125,
- "colour": {
- "file": "card-1-t25-colour.webp",
- "bytes": 1614
- },
- "geometry": {
- "file": "card-1-t25-geometry.webp",
- "bytes": 15386
- }
- },
- {
- "top": 313,
- "h": 287,
- "distance_m": 59443.39453125,
- "colour": {
- "file": "card-2-t25-colour.webp",
- "bytes": 1490
- },
- "geometry": {
- "file": "card-2-t25-geometry.webp",
- "bytes": 16294
- }
- }
- ],
- [
- {
- "top": 250,
- "h": 350,
- "distance_m": 766.68505859375,
- "colour": {
- "file": "card-0-t26-colour.webp",
- "bytes": 676
- },
- "geometry": {
- "file": "card-0-t26-geometry.webp",
- "bytes": 10752
- }
- },
- {
- "top": 28,
- "h": 572,
- "distance_m": 5613.7412109375,
- "colour": {
- "file": "card-1-t26-colour.webp",
- "bytes": 1432
- },
- "geometry": {
- "file": "card-1-t26-geometry.webp",
- "bytes": 20908
- }
- },
- {
- "top": 338,
- "h": 262,
- "distance_m": 65859.734375,
- "colour": {
- "file": "card-2-t26-colour.webp",
- "bytes": 1384
- },
- "geometry": {
- "file": "card-2-t26-geometry.webp",
- "bytes": 14708
- }
- }
- ],
- [
- {
- "top": 278,
- "h": 322,
- "distance_m": 715.7683715820312,
- "colour": {
- "file": "card-0-t27-colour.webp",
- "bytes": 708
- },
- "geometry": {
- "file": "card-0-t27-geometry.webp",
- "bytes": 8710
- }
- },
- {
- "top": 24,
- "h": 576,
- "distance_m": 6389.61474609375,
- "colour": {
- "file": "card-1-t27-colour.webp",
- "bytes": 1470
- },
- "geometry": {
- "file": "card-1-t27-geometry.webp",
- "bytes": 23794
- }
- },
- {
- "top": 344,
- "h": 256,
- "distance_m": 50670.5078125,
- "colour": {
- "file": "card-2-t27-colour.webp",
- "bytes": 1080
- },
- "geometry": {
- "file": "card-2-t27-geometry.webp",
- "bytes": 11834
- }
- }
- ],
- [
- {
- "top": 309,
- "h": 291,
- "distance_m": 851.5679321289062,
- "colour": {
- "file": "card-0-t28-colour.webp",
- "bytes": 560
- },
- "geometry": {
- "file": "card-0-t28-geometry.webp",
- "bytes": 6160
- }
- },
- {
- "top": 94,
- "h": 506,
- "distance_m": 5985.80078125,
- "colour": {
- "file": "card-1-t28-colour.webp",
- "bytes": 1472
- },
- "geometry": {
- "file": "card-1-t28-geometry.webp",
- "bytes": 23606
- }
- },
- {
- "top": 338,
- "h": 262,
- "distance_m": 41220.84765625,
- "colour": {
- "file": "card-2-t28-colour.webp",
- "bytes": 782
- },
- "geometry": {
- "file": "card-2-t28-geometry.webp",
- "bytes": 5094
- }
- }
- ],
- [
- {
- "top": 327,
- "h": 273,
- "distance_m": 591.9729614257812,
- "colour": {
- "file": "card-0-t29-colour.webp",
- "bytes": 600
- },
- "geometry": {
- "file": "card-0-t29-geometry.webp",
- "bytes": 5650
- }
- },
- {
- "top": 53,
- "h": 547,
- "distance_m": 7741.88134765625,
- "colour": {
- "file": "card-1-t29-colour.webp",
- "bytes": 1768
- },
- "geometry": {
- "file": "card-1-t29-geometry.webp",
- "bytes": 26930
- }
- },
- {
- "top": 334,
- "h": 266,
- "distance_m": 39778.60546875,
- "colour": {
- "file": "card-2-t29-colour.webp",
- "bytes": 802
- },
- "geometry": {
- "file": "card-2-t29-geometry.webp",
- "bytes": 4504
- }
- }
- ],
- [
- {
- "top": 324,
- "h": 276,
- "distance_m": 592.1824951171875,
- "colour": {
- "file": "card-0-t30-colour.webp",
- "bytes": 488
- },
- "geometry": {
- "file": "card-0-t30-geometry.webp",
- "bytes": 5312
- }
- },
- {
- "top": 58,
- "h": 542,
- "distance_m": 7652.43017578125,
- "colour": {
- "file": "card-1-t30-colour.webp",
- "bytes": 1816
- },
- "geometry": {
- "file": "card-1-t30-geometry.webp",
- "bytes": 28380
- }
- },
- {
- "top": 344,
- "h": 256,
- "distance_m": 39515.10546875,
- "colour": {
- "file": "card-2-t30-colour.webp",
- "bytes": 756
- },
- "geometry": {
- "file": "card-2-t30-geometry.webp",
- "bytes": 4638
- }
- }
- ],
- [
- {
- "top": 330,
- "h": 270,
- "distance_m": 597.7586059570312,
- "colour": {
- "file": "card-0-t31-colour.webp",
- "bytes": 506
- },
- "geometry": {
- "file": "card-0-t31-geometry.webp",
- "bytes": 5788
- }
- },
- {
- "top": 85,
- "h": 515,
- "distance_m": 7773.806640625,
- "colour": {
- "file": "card-1-t31-colour.webp",
- "bytes": 1642
- },
- "geometry": {
- "file": "card-1-t31-geometry.webp",
- "bytes": 25034
- }
- },
- {
- "top": 326,
- "h": 274,
- "distance_m": 39216.27734375,
- "colour": {
- "file": "card-2-t31-colour.webp",
- "bytes": 760
- },
- "geometry": {
- "file": "card-2-t31-geometry.webp",
- "bytes": 4148
- }
- }
- ]
- ],
- "bytes": 1210136,
- "attribution": {
- "credit_line": "Contains modified Copernicus data: DEM \u00a9 DLR e.V. 2010-2014 and \u00a9 Airbus Defence and Space GmbH 2014-2018 provided under COPERNICUS by the European Union and ESA; all rights reserved.",
- "licence": "Copernicus DEM licence: free, full and open access, with the credit line shown",
- "dem_source": "Copernicus DEM GLO-30 (30 m)",
- "url": "https://spacedata.copernicus.eu/collections/copernicus-digital-elevation-model"
- }
-}
diff --git a/scripts/bake-sky.mjs b/scripts/bake-sky.mjs
deleted file mode 100644
index 827110c2..00000000
--- a/scripts/bake-sky.mjs
+++ /dev/null
@@ -1,19 +0,0 @@
-// Bakes Midnight Sky and Noonday Sky from src/sky/sun.js into src/sky/baked.ts, with the
-// atmospheric-scattering tables (src/sky/scatter.js) as `scatter`.
-// Run `npm run bake:sky` after changing sun.js, skyTokens.js, scatter.js or a moment.
-import { writeFileSync } from 'node:fs';
-import { bakeSky } from '../src/sky/skyTokens.js';
-import { bakeScatter } from '../src/sky/scatter.js';
-
-const out = new URL('../src/sky/baked.ts', import.meta.url);
-const baked = {
- midnight: bakeSky('midnight'),
- noonday: bakeSky('noonday'),
- scatter: bakeScatter(),
-};
-writeFileSync(
- out,
- `// Generated by scripts/bake-sky.mjs from src/sky/sun.js. Do not edit.\n` +
- `/* eslint-disable */\n` +
- `export const baked = ${JSON.stringify(baked, null, 2)} as const;\n`
-);
diff --git a/scripts/build-dev-preview.sh b/scripts/build-dev-preview.sh
deleted file mode 100755
index 8f89dce8..00000000
--- a/scripts/build-dev-preview.sh
+++ /dev/null
@@ -1,9 +0,0 @@
-#!/usr/bin/env bash
-# Build this checkout as the offline demo for the standing dev preview: base /void/rat-dev/, the pretend
-# homeserver, scene tier $TIER (default full). Output: ./dist, ready for the shared publisher
-# (gamecult-ops scripts/publish-mind-preview.sh dist rat-dev), which owns publishing. Publishes nothing.
-set -euo pipefail
-cd "$(dirname "$0")/.."
-node scripts/sync-poses.mjs >/dev/null
-VITE_PREVIEW_DEMO=1 CINNY_BASE=/void/rat-dev/ NODE_OPTIONS=--max_old_space_size=4096 nice -n 10 npx vite build
-node scripts/preview-config.js "${TIER:-full}" --demo
diff --git a/scripts/buildSha.js b/scripts/buildSha.js
deleted file mode 100644
index 61a89445..00000000
--- a/scripts/buildSha.js
+++ /dev/null
@@ -1,56 +0,0 @@
-// The commit a bundle was built from, stamped into its index.html as , so a built
-// folder says what it is without a build log: `grep -o 'build-sha" content="[^"]*' dist/index.html`.
-// Where git governs the tree (REPO_DIR is a repository root) git decides: HEAD, suffixed -dirty when the tree has
-// uncommitted changes, or `-mismatch` when an explicit BUILD_SHA names a different commit, so a stamp
-// never vouches for code it does not hold; a git failure there is 'unknown'. Where git does not govern (a source
-// archive), a full-sha BUILD_SHA stands, else 'unknown'.
-import { execFileSync } from 'child_process';
-import { dirname, resolve } from 'path';
-import { fileURLToPath } from 'url';
-
-const REPO_DIR = resolve(dirname(fileURLToPath(import.meta.url)), '..');
-
-// Vite writes vite.config.js.timestamp-*.mjs next to the config while it loads it; that file is the
-// build's own, not source, so an UNTRACKED one must not mark the tree dirty. A tracked file of that name,
-// or any other change, still does. Filtering status lines (not a pathspec) is what keeps it untracked-only.
-const VITE_TEMP = /^\?\? (?:.*\/)?vite\.config\.[a-z]+\.timestamp-\d+-[0-9a-f]+\.mjs$/;
-
-export const gitIn =
- (cwd) =>
- (...args) =>
- execFileSync('git', args, { cwd, encoding: 'utf8', stdio: ['ignore', 'pipe', 'ignore'] });
-
-const FULL_SHA = /^[0-9a-f]{40}$/;
-
-export const readBuildSha = (env = process.env, run = gitIn(REPO_DIR)) => {
- const fromEnv = (env.BUILD_SHA ?? '').trim();
- const explicit = FULL_SHA.test(fromEnv) ? fromEnv : null;
- // Git governs this tree only when REPO_DIR is its root: a source archive unpacked inside some other
- // repository has no git of its own, and that repository's HEAD says nothing about it.
- let governed;
- try {
- governed = run('rev-parse', '--show-prefix').trim() === '';
- } catch {
- governed = false;
- }
- if (!governed) return explicit ?? 'unknown';
- // Git governs and answers: from here a failure is 'unknown', never the bare explicit sha.
- try {
- const head = run('rev-parse', 'HEAD').trim();
- if (!FULL_SHA.test(head)) return 'unknown';
- if (explicit && explicit !== head) return `${explicit}-mismatch`;
- const dirty = run('status', '--porcelain', '-uall', '--', '.')
- .split('\n')
- .some((l) => l.trim() !== '' && !VITE_TEMP.test(l));
- return dirty ? `${head}-dirty` : head;
- } catch {
- return 'unknown';
- }
-};
-
-export const buildShaPlugin = (sha = readBuildSha()) => ({
- name: 'ratatoskr-build-sha',
- transformIndexHtml: () => [
- { tag: 'meta', attrs: { name: 'build-sha', content: sha }, injectTo: 'head-prepend' },
- ],
-});
diff --git a/scripts/buildSha.test.js b/scripts/buildSha.test.js
deleted file mode 100644
index 4a270867..00000000
--- a/scripts/buildSha.test.js
+++ /dev/null
@@ -1,170 +0,0 @@
-import { execFileSync } from 'child_process';
-import { mkdtempSync, mkdirSync, rmSync, writeFileSync } from 'fs';
-import { tmpdir } from 'os';
-import { join } from 'path';
-import { afterEach, describe, expect, it } from 'vitest';
-import { buildShaPlugin, gitIn, readBuildSha } from './buildSha';
-
-const SHA = 'b6b1d522f1c0a9d3e2b4c5d6e7f8091a2b3c4d5e';
-const gitAt =
- (head, status = '') =>
- (cmd, ...args) =>
- cmd === 'rev-parse' ? (args[0] === '--show-prefix' ? '\n' : `${head}\n`) : status;
-
-describe('readBuildSha', () => {
- it('reads the checkout it is built from', () => {
- expect(readBuildSha({}, gitAt(SHA))).toBe(SHA);
- });
- it('marks a tree with uncommitted changes, so a stamp never vouches for code it does not hold', () => {
- expect(readBuildSha({}, gitAt(SHA, ' M src/x.ts\n'))).toBe(`${SHA}-dirty`);
- });
- it('lets BUILD_SHA stand in where there is no git, and ignores a value that is not a full sha', () => {
- const noGit = () => {
- throw new Error('not a git repository');
- };
- expect(readBuildSha({ BUILD_SHA: SHA }, noGit)).toBe(SHA);
- expect(readBuildSha({ BUILD_SHA: SHA }, gitAt(SHA))).toBe(SHA);
- // a different HEAD is a mismatch, not a clean stamp of the explicit sha
- expect(readBuildSha({ BUILD_SHA: SHA }, gitAt('c'.repeat(40)))).toBe(`${SHA}-mismatch`);
- // a value that is not a lowercase full sha is ignored
- ['b6b1d52', SHA.toUpperCase(), `${SHA}0`].forEach((v) =>
- expect(readBuildSha({ BUILD_SHA: v }, noGit)).toBe('unknown')
- );
- // git that answers but cannot say what the tree holds fails closed
- const brokenStatus = (cmd, ...args) => {
- if (cmd === 'status') throw new Error('index file smaller than expected');
- return args[0] === '--show-prefix' ? '\n' : `${SHA}\n`;
- };
- expect(readBuildSha({ BUILD_SHA: SHA }, brokenStatus)).toBe('unknown');
- expect(readBuildSha({}, brokenStatus)).toBe('unknown');
- expect(readBuildSha({}, gitAt('nope'))).toBe('unknown');
- // inside another repository's subfolder git does not govern: the explicit sha stands
- const nested = (cmd, ...args) => (args[0] === '--show-prefix' ? 'vendor/ratatoskr/\n' : SHA);
- expect(readBuildSha({ BUILD_SHA: SHA }, nested)).toBe(SHA);
- expect(readBuildSha({}, nested)).toBe('unknown');
- expect(readBuildSha({ BUILD_SHA: 'main' }, noGit)).toBe('unknown');
- });
- it("says 'unknown' rather than failing the build when git is absent", () => {
- expect(
- readBuildSha({}, () => {
- throw new Error('spawn git ENOENT');
- })
- ).toBe('unknown');
- });
-});
-
-describe('readBuildSha against a real repository', () => {
- const made = [];
- afterEach(() => {
- made.splice(0).forEach((d) => rmSync(d, { recursive: true, force: true }));
- });
- const repo = () => {
- const dir = mkdtempSync(join(tmpdir(), 'buildsha-'));
- made.push(dir);
- const g = (...a) => execFileSync('git', a, { cwd: dir, stdio: 'ignore' });
- g('init', '-q');
- mkdirSync(join(dir, 'src'));
- writeFileSync(join(dir, 'src', 'a.ts'), 'export {};\n');
- g('add', '.');
- g('-c', 'user.name=t', '-c', 'user.email=t@t', 'commit', '-qm', 'x');
- return dir;
- };
- it("stays clean with vite's temp config file present, and is dirty with a stray source file", () => {
- const dir = repo();
- const run = gitIn(dir);
- writeFileSync(join(dir, 'vite.config.js.timestamp-1700000000-abc123.mjs'), '');
- expect(readBuildSha({}, run)).toMatch(/^[0-9a-f]{40}$/);
- writeFileSync(join(dir, 'src', 'zz-stray.ts'), '');
- expect(readBuildSha({}, run)).toMatch(/^[0-9a-f]{40}-dirty$/);
- });
-});
-
-describe('readBuildSha dirty rules against a real repository', () => {
- const made2 = [];
- afterEach(() => {
- made2.splice(0).forEach((d) => rmSync(d, { recursive: true, force: true }));
- });
- const TEMP = 'vite.config.js.timestamp-1700000000-abc123.mjs';
- const repo2 = (tracked = []) => {
- const dir = mkdtempSync(join(tmpdir(), 'buildsha-'));
- made2.push(dir);
- const g = (...a) => execFileSync('git', a, { cwd: dir, stdio: 'ignore' });
- g('init', '-q');
- mkdirSync(join(dir, 'src'));
- writeFileSync(join(dir, 'src', 'a.ts'), 'export {};\n');
- tracked.forEach((f) => writeFileSync(join(dir, f), 'x\n'));
- g('add', '.');
- g('-c', 'user.name=t', '-c', 'user.email=t@t', 'commit', '-qm', 'x');
- return {
- dir,
- head: execFileSync('git', ['rev-parse', 'HEAD'], { cwd: dir, encoding: 'utf8' }).trim(),
- };
- };
- it('does not let an explicit BUILD_SHA mask a dirty tree', () => {
- const { dir, head } = repo2();
- const run = gitIn(dir);
- expect(readBuildSha({ BUILD_SHA: head }, run)).toBe(head);
- writeFileSync(join(dir, 'src', 'zz-stray.ts'), '');
- expect(readBuildSha({ BUILD_SHA: head }, run)).toBe(`${head}-dirty`);
- });
- it('lets git speak only for a tree whose root it is: an archive unpacked inside another repository keeps its explicit sha', () => {
- const { dir } = repo2();
- const inner = join(dir, 'vendor', 'ratatoskr');
- mkdirSync(inner, { recursive: true });
- writeFileSync(join(inner, 'x.ts'), '');
- expect(readBuildSha({ BUILD_SHA: SHA }, gitIn(inner))).toBe(SHA);
- expect(readBuildSha({}, gitIn(inner))).toBe('unknown');
- });
- it("notices an untracked .mjs that is not vite's temp file", () => {
- const { dir, head } = repo2();
- writeFileSync(join(dir, 'foo.mjs'), '');
- expect(readBuildSha({}, gitIn(dir))).toBe(`${head}-dirty`);
- rmSync(join(dir, 'foo.mjs'));
- // only vite's exact shape is its own: vite.config..timestamp--.mjs
- [
- 'vite.config.js.timestamp-1-ab.mjs.bak',
- 'vite.config.js.timestamp-x-ab.mjs',
- 'vite.config.js.timestamp-1-zz.mjs',
- 'vite.config.a.b.timestamp-1-ab.mjs',
- 'vite.config.js.timestamp-1-ab-c.mjs',
- ].forEach((name) => {
- writeFileSync(join(dir, name), '');
- expect(readBuildSha({}, gitIn(dir)), name).toBe(`${head}-dirty`);
- rmSync(join(dir, name));
- });
- expect(readBuildSha({}, gitIn(dir))).toBe(head);
- });
- it('treats a stray source file as dirty even beside the vite temp file, in the root or a subfolder', () => {
- const { dir, head } = repo2();
- const run = gitIn(dir);
- writeFileSync(join(dir, TEMP), '');
- writeFileSync(join(dir, 'src', TEMP), '');
- expect(readBuildSha({}, run)).toBe(head);
- writeFileSync(join(dir, 'src', 'zz-stray.ts'), '');
- expect(readBuildSha({}, run)).toBe(`${head}-dirty`);
- });
- it('marks a tracked file of the temp name dirty once it changes', () => {
- const { dir, head } = repo2([TEMP]);
- const run = gitIn(dir);
- expect(readBuildSha({}, run)).toBe(head);
- writeFileSync(join(dir, TEMP), 'changed\n');
- expect(readBuildSha({}, run)).toBe(`${head}-dirty`);
- });
- it('marks an untracked file in a new folder dirty (status lists files, not the folder)', () => {
- const { dir, head } = repo2();
- mkdirSync(join(dir, 'new'));
- writeFileSync(join(dir, 'new', TEMP), '');
- expect(readBuildSha({}, gitIn(dir))).toBe(head);
- writeFileSync(join(dir, 'new', 'b.ts'), '');
- expect(readBuildSha({}, gitIn(dir))).toBe(`${head}-dirty`);
- });
-});
-
-describe('buildShaPlugin', () => {
- it("hands vite a meta tag for the page's head carrying the sha", () => {
- const plugin = buildShaPlugin(SHA);
- expect(plugin.transformIndexHtml()).toEqual([
- { tag: 'meta', attrs: { name: 'build-sha', content: SHA }, injectTo: 'head-prepend' },
- ]);
- });
-});
diff --git a/scripts/make-pose-thumbs.mjs b/scripts/make-pose-thumbs.mjs
deleted file mode 100644
index b7acc050..00000000
--- a/scripts/make-pose-thumbs.mjs
+++ /dev/null
@@ -1,204 +0,0 @@
-// Regenerates preview-demo/poses from the cast-art poses: PNG thumbnails sized for the
-// portrait's displayed width x device pixel ratio: the bubble portrait is 190 CSS px on desktop and
-// min(38vw, 160px) on a phone (layout.css.ts), the desk booth 168 / 88 px (DeskView.css.ts).
-// Dependency-free: decodes 8-bit RGBA PNGs, area-averages in premultiplied alpha, writes a
-// 256-colour palette PNG with a tRNS alpha table. Usage: node scripts/make-pose-thumbs.mjs [src]
-import { readFileSync, writeFileSync, mkdirSync } from 'node:fs';
-import { dirname, join } from 'node:path';
-import { fileURLToPath } from 'node:url';
-import { inflateSync, deflateSync, crc32 } from 'node:zlib';
-
-const WIDTH = 480; // about the 190px desktop portrait x DPR 2.5; art is never upscaled
-const src = process.argv[2] ?? '/opt/commons/cast-art/poses';
-const root = join(dirname(fileURLToPath(import.meta.url)), '..');
-const outDir = join(root, 'preview-demo/poses');
-const demoMinds = ['eureka', 'void', 'nibu'];
-
-function decode(buf) {
- let off = 8;
- let w, h;
- const idat = [];
- while (off < buf.length) {
- const len = buf.readUInt32BE(off);
- const type = buf.toString('latin1', off + 4, off + 8);
- const data = buf.subarray(off + 8, off + 8 + len);
- if (type === 'IHDR') {
- w = data.readUInt32BE(0);
- h = data.readUInt32BE(4);
- if (data[8] !== 8 || data[9] !== 6 || data[12] !== 0)
- throw new Error('need 8-bit RGBA, non-interlaced');
- } else if (type === 'IDAT') idat.push(data);
- off += 12 + len;
- }
- const raw = inflateSync(Buffer.concat(idat));
- const stride = w * 4;
- const px = Buffer.alloc(h * stride);
- for (let y = 0; y < h; y++) {
- const f = raw[y * (stride + 1)];
- const line = raw.subarray(y * (stride + 1) + 1, (y + 1) * (stride + 1));
- for (let x = 0; x < stride; x++) {
- const a = x >= 4 ? px[y * stride + x - 4] : 0;
- const b = y > 0 ? px[(y - 1) * stride + x] : 0;
- const c = x >= 4 && y > 0 ? px[(y - 1) * stride + x - 4] : 0;
- let p = 0;
- if (f === 1) p = a;
- else if (f === 2) p = b;
- else if (f === 3) p = (a + b) >> 1;
- else if (f === 4) {
- const pa = Math.abs(b - c),
- pb = Math.abs(a - c),
- pc = Math.abs(a + b - 2 * c);
- p = pa <= pb && pa <= pc ? a : pb <= pc ? b : c;
- }
- px[y * stride + x] = (line[x] + p) & 255;
- }
- }
- return { w, h, px };
-}
-
-// Separable area average over premultiplied RGBA floats.
-function resize({ w, h, px }, nw, nh) {
- const pre = new Float32Array(w * h * 4);
- for (let i = 0; i < w * h; i++) {
- const a = px[i * 4 + 3] / 255;
- for (let c = 0; c < 3; c++) pre[i * 4 + c] = px[i * 4 + c] * a;
- pre[i * 4 + 3] = px[i * 4 + 3];
- }
- const pass = (data, sw, sh, dw, dh, horiz) => {
- const out = new Float32Array((horiz ? dw * sh : sw * dh) * 4);
- const n = horiz ? dw : dh;
- const sn = horiz ? sw : sh;
- const scale = sn / n;
- for (let o = 0; o < n; o++) {
- const s0 = o * scale,
- s1 = (o + 1) * scale;
- for (let i = Math.floor(s0); i < Math.min(sn, Math.ceil(s1)); i++) {
- const wt = Math.min(i + 1, s1) - Math.max(i, s0);
- const lines = horiz ? sh : sw;
- for (let l = 0; l < lines; l++) {
- const si = (horiz ? l * sw + i : i * sw + l) * 4;
- const di = (horiz ? l * dw + o : o * dw + l) * 4;
- for (let c = 0; c < 4; c++) out[di + c] += (data[si + c] * wt) / scale;
- }
- }
- }
- return out;
- };
- const mid = pass(pre, w, h, nw, h, true);
- const fin = pass(mid, nw, h, nw, nh, false);
- const out = Buffer.alloc(nw * nh * 4);
- for (let i = 0; i < nw * nh; i++) {
- const a = fin[i * 4 + 3];
- out[i * 4 + 3] = Math.round(a);
- for (let c = 0; c < 3; c++)
- out[i * 4 + c] = a > 0 ? Math.min(255, Math.round((fin[i * 4 + c] * 255) / a)) : 0;
- }
- return out;
-}
-
-// Median cut to 256 colours over (r,g,b,a); alpha is a quantised channel too.
-function quantise(px, n) {
- const key = (i) => [px[i * 4], px[i * 4 + 1], px[i * 4 + 2], px[i * 4 + 3]];
- const hist = new Map();
- for (let i = 0; i < n; i++) {
- const q = key(i).map((v) => v & 0xf8);
- const k = (q[0] << 24) | (q[1] << 16) | (q[2] << 8) | q[3];
- const e = hist.get(k) ?? { c: q, n: 0 };
- e.n++;
- hist.set(k, e);
- }
- let boxes = [[...hist.values()]];
- while (boxes.length < 256) {
- let bi = -1,
- best = 0,
- ch = 0;
- boxes.forEach((b, i) => {
- if (b.length < 2) return;
- for (let c = 0; c < 4; c++) {
- const vs = b.map((e) => e.c[c]);
- const r = (Math.max(...vs) - Math.min(...vs)) * Math.sqrt(b.reduce((s, e) => s + e.n, 0));
- if (r > best) {
- best = r;
- bi = i;
- ch = c;
- }
- }
- });
- if (bi < 0) break;
- const b = boxes[bi].sort((x, y) => x.c[ch] - y.c[ch]);
- const half = b.reduce((s, e) => s + e.n, 0) / 2;
- let acc = 0,
- cut = 1;
- for (; cut < b.length - 1 && acc + b[cut - 1].n < half; cut++) acc += b[cut - 1].n;
- boxes.splice(bi, 1, b.slice(0, cut), b.slice(cut));
- }
- const pal = boxes.map((b) => {
- const t = b.reduce((s, e) => s + e.n, 0);
- return [0, 1, 2, 3].map((c) => Math.round(b.reduce((s, e) => s + e.c[c] * e.n, 0) / t));
- });
- const idx = new Uint8Array(n);
- const cache = new Map();
- for (let i = 0; i < n; i++) {
- const k = (px[i * 4] << 24) | (px[i * 4 + 1] << 16) | (px[i * 4 + 2] << 8) | px[i * 4 + 3];
- let j = cache.get(k);
- if (j === undefined) {
- let bd = Infinity;
- pal.forEach((p, pi) => {
- const d = [0, 1, 2, 3].reduce((s, c) => s + (p[c] - px[i * 4 + c]) ** 2, 0);
- if (d < bd) {
- bd = d;
- j = pi;
- }
- });
- cache.set(k, j);
- }
- idx[i] = j;
- }
- return { pal, idx };
-}
-
-function chunk(type, data) {
- const t = Buffer.from(type, 'latin1');
- const out = Buffer.alloc(12 + data.length);
- out.writeUInt32BE(data.length, 0);
- t.copy(out, 4);
- data.copy(out, 8);
- out.writeUInt32BE(crc32(Buffer.concat([t, data])) >>> 0, 8 + data.length);
- return out;
-}
-
-function encode(w, h, { pal, idx }) {
- const ihdr = Buffer.alloc(13);
- ihdr.writeUInt32BE(w, 0);
- ihdr.writeUInt32BE(h, 4);
- ihdr[8] = 8;
- ihdr[9] = 3;
- const raw = Buffer.alloc(h * (w + 1));
- for (let y = 0; y < h; y++)
- Buffer.from(idx.subarray(y * w, (y + 1) * w)).copy(raw, y * (w + 1) + 1);
- return Buffer.concat([
- Buffer.from([137, 80, 78, 71, 13, 10, 26, 10]),
- chunk('IHDR', ihdr),
- chunk('PLTE', Buffer.from(pal.flatMap((p) => p.slice(0, 3)))),
- chunk('tRNS', Buffer.from(pal.map((p) => p[3]))),
- chunk('IDAT', deflateSync(raw, { level: 9 })),
- chunk('IEND', Buffer.alloc(0)),
- ]);
-}
-
-const catalogue = JSON.parse(readFileSync(join(src, 'catalogue.json'), 'utf8'));
-let total = 0;
-for (const mind of demoMinds) {
- const m = catalogue.minds[mind];
- for (const f of [...Object.values(m.shared), ...Object.values(m.signatures)]) {
- const img = decode(readFileSync(join(src, f)));
- const nw = Math.min(WIDTH, img.w);
- const nh = Math.round((img.h * nw) / img.w);
- const png = encode(nw, nh, quantise(resize(img, nw, nh), nw * nh));
- mkdirSync(dirname(join(outDir, f)), { recursive: true });
- writeFileSync(join(outDir, f), png);
- total += png.length;
- console.log(f, `${nw}x${nh}`, png.length);
- }
-}
-console.log('total', total);
diff --git a/scripts/preview-config.js b/scripts/preview-config.js
deleted file mode 100644
index 29bfa793..00000000
--- a/scripts/preview-config.js
+++ /dev/null
@@ -1,34 +0,0 @@
-// Preview builds: set the background scene tier in dist/config.json (default 'low'); config.json
-// in the repo is the live chat.gamecult.org config (style ridge), and previews pin the style too, ridge unless
-// given. Previews are static directories with no SPA fallback, so they also switch
-// to the hash router: a reload on /login/matrix.org would otherwise be an nginx 404. With --demo it
-// also switches on the pretend homeserver (src/preview-demo): previewDemo true, and the pretend
-// server as the only homeserver. Usage:
-// node scripts/preview-config.js [tier] [style] [--demo]
-import fs from 'fs';
-import path from 'path';
-import { fileURLToPath } from 'url';
-
-const args = process.argv.slice(2);
-const demo = args.includes('--demo');
-const [tier = 'low', style = 'ridge'] = args.filter((a) => !a.startsWith('--'));
-const file = path.join(path.dirname(fileURLToPath(import.meta.url)), '..', 'dist', 'config.json');
-const config = JSON.parse(fs.readFileSync(file, 'utf8'));
-config.hashRouter = { enabled: true, basename: '/' };
-config.backgroundScene = { ...config.backgroundScene, tier, style };
-if (demo) {
- config.previewDemo = true;
- config.defaultHomeserver = 0;
- config.homeserverList = ['demo.invalid'];
- config.allowCustomHomeservers = false;
- config.featuredCommunities = {
- openAsDefault: false,
- spaces: ['#gamecult:demo.invalid'],
- rooms: [],
- servers: ['demo.invalid'],
- };
-}
-fs.writeFileSync(file, `${JSON.stringify(config, null, 2)}\n`);
-console.log(
- `${file}: backgroundScene.tier = ${tier}, style = ${style}${demo ? ', previewDemo on' : ''}`
-);
diff --git a/scripts/ridge-bake/.gitignore b/scripts/ridge-bake/.gitignore
deleted file mode 100644
index c18dd8d8..00000000
--- a/scripts/ridge-bake/.gitignore
+++ /dev/null
@@ -1 +0,0 @@
-__pycache__/
diff --git a/scripts/ridge-bake/README.md b/scripts/ridge-bake/README.md
deleted file mode 100644
index 97b02a77..00000000
--- a/scripts/ridge-bake/README.md
+++ /dev/null
@@ -1,62 +0,0 @@
-# ridge-bake
-
-Offline baker for the ridge backdrop: it turns a Copernicus DEM into K+1 G-buffer cards per place, split by K authored seams and cut into 32 azimuth tiles round the whole 360 degree ring, plus a `manifest.json` (schema 3) and an `index.json` that the runtime reads. Each card tile is a colour WebP (albedo and coverage) and a geometry WebP (normal and log-distance). The baker is not shipped; `public/ridge/` holds its output. The client owns lighting, haze and ink: no sun, haze or shadow is baked.
-
-## Run
-
-```sh
-python3 -I scripts/ridge-bake/export.py --tiles DIR --out public/ridge/ [--work DIR] [--sheet contact.png]
-```
-
-Needs Python 3 with `numpy`, `tifffile` and `imagecodecs`. `--tiles` is a directory of Copernicus GLO-30 tiles (never committed); `--work` caches the mosaic and rays (default `$TMPDIR/ridge-bake-work`); `--sheet` writes the contact sheet at 1/4 of the ring's width (the ring composite, every card's strip alone and the depth image with every seam, the 32 tile boundaries drawn, lit by one fixed light). The bake prints `r_max_m`, the resident run and the worst fit error per card. `python3 -I scripts/ridge-bake/export.py --write-schema` rewrites `ridge-bake.schema.json`, which the tests pin.
-
-Tests: `RIDGE_PY= RIDGE_TILES=DIR scripts/ridge-bake/tests/run.sh [test_ridge.py|mutate.py]` (`mutate.py` re-introduces each rule's failure into a copy of the baker and fails if a test does not notice).
-
-## Tiles per preset (`places.json`)
-
-Files are `Copernicus_DSM_COG_10_dd_00_ddd_00_DEM.tif`; the list below is `ddddd`.
-
-| place id | tiles |
-|---|---|
-| vienna | N47E015 N47E016 N47E017 N48E015 N48E016 N48E017 N49E015 N49E016 |
-| matterhorn | N45E007 N45E008 N46E007 N46E008 |
-| fuji | N34E138 N34E139 N35E137 N35E138 N35E139 |
-| halfdome | N37W121 N37W120 N38W120 |
-| grandcanyon | N35W113 N35W112 N36W113 N36W112 |
-| amadablam | N27E086 N27E087 N28E086 N28E087 |
-| trecime | N46E011 N46E012 |
-
-## Where the bakes ran
-
-Yggdrasil (16 cores, 62 GB), as `mind-void-self`, work under `/var/tmp/ridge-bake` (never `/tmp`, a 31 GB tmpfs): `venv/` (python 3.13 with `numpy`, `tifffile`, `imagecodecs` from PyPI), `tiles/`, `work//`, one `out//` per place until its look is accepted. Tiles come from the public Copernicus DEM GLO-30 AWS Open Data bucket: `https://copernicus-dem-30m.s3.amazonaws.com//.tif` with `` = `Copernicus_DSM_COG_10_dd_00_ddd_00_DEM` (17 tiles, 598 MB).
-
-The authored splits sit in depth gaps found by scanning candidate lists (seam medians printed per list): `seams` flees a split that falls inside a continuous mass of visible terrain to the nearest gap, so a split inside the mass yields an empty card 0 (Matterhorn's visible terrain is one mass from 4.9 to 15 km; gaps at 19, 28 and 43 km). Place splits at the gap medians the scan reports.
-
-## Cards
-
-`places.json` gives each preset `card_split_km`, an ordered list of 1 to 5 seam depths in km, and optionally `prefilter_m`. A preset without `card_split_km` is refused, and so is a split that leaves a card empty (the message names the splits); K splits make K+1 cards, at most `MAX_CARDS` = 6 per place. New places get a seam probe look before their first bake.
-
-1. **March.** `stage0` marches 6400 azimuth columns of rays over the DEM with Earth curvature and refraction (`ridge.elev`), cached by a key of its inputs.
-2. **Low-pass.** `prefilter` blurs the sampled heights with a Gaussian of `prefilter_m` metres along each ray and across rays at equal distance (sigma = `prefilter_m` / (distance x column width) columns), then recomputes the angles. Roofs go, hills stay.
-3. **View.** `set_view` maps angle to row linearly: the highest skyline angle of the whole ring sits at 4% of the frame height, the lowest at 66%, and the horizon keeps `GROUND_ROWS_MIN` = 150 rows under it (the runtime's `groundRowsNeeded`: (1 - 0.85) x 600 / 0.6, so the plane reaches the bottom of every viewport at rest). The scale is the lesser of the two fits, clamped to 0.5x to 10x vertical exaggeration (rulings `ridge-ring-vertical-anchors`, `ridge-ground-rows-below-horizon`: every azimuth sits inside one frame; a place whose whole-ring relief leaves too few ground rows is flattened below 1x); a skyline that cannot hold the rows even at 0.5x is refused naming `sky_deg` and the floor. `export.validate_manifest` refuses a plane with fewer than 150 rows under the horizon and `manifest.ts` refuses it at load.
-4. **Seams.** `coverage` counts the visible rows of the opaque view per log-distance bin and column. `seams` finds one seam per authored split per column by dynamic programming (seam carving, forward energy): it sits in a gap between depths, moving it costs 2 per bin plus the visible rows it sweeps (so it never hops across a ridge between two columns and splits it side by side), a seam inside visible terrain is cheap to cross-fade, the authored depth only breaks ties. Seam k stays 0.4 nat beyond seam k-1. The DP runs over the ring three times side by side and keeps the middle lap, so a seam is continuous across the wrap (column 6399 to 0) and a tile boundary is only a crop.
-5. **Cards.** `cards` runs per tile, on that tile's columns and the matching normals (it is column-independent: a tile is a crop of per-column results, so no seam appears at a tile boundary). It makes card i from the first visible hit at or beyond seam i-1 (layered depth: a farther card keeps the terrain a nearer ridge hides), alpha 1 minus a smoothstep over seam i in log-distance (the cross-fade), crest rows with fractional coverage, distance and normal interpolated between samples by angle, albedo from a small height and slope material, cropped to the rows where alpha is not zero. The rows of card i > 0 below the angle of its first sample (hit and first sample of the card) are its **wall**: the extruded face of the ridge the card starts at, which keeps that sample's distance, wears the ground material at its height with the face up, and is flagged `wall`. Card 0 also draws the **near march** (ruling `ridge-near-ground-outline`): the place's own DEM from `NEAR_START_M` = 1 m to the near clip `NEAR_CLIP_M` = 500 m (`near_march`: float64 bilinear samples every max(1 m, 0.02 d) up to 10 m, about 170 per column, low-passed with the place's own `prefilter_m`), joined to the far march by `join_near` on the whole ring before the tile cut, its angles capped per column at the angle of the clip sample so the near ground draws inside the silhouette of the terrain at the clip (a near hill above that edge is cut along it). Its rows are ordinary terrain with their own normal and the albedo of their own height and n_up, flagged `near` in memory; `cards` refuses a march that starts at the clip. The runtime reads them as ground at the clip distance (they decode at `log_d_min`) and lights them like any card pixel. The alpha-over composite of the cards equals the opaque view; `check_cover` refuses a tile that differs by more than 0.02.
-6. **Tiles.** The ring is absolute compass, column 0 = north, column c at azimuth (c + 0.5) / 6400 x 360; `places.json`'s `az_deg` / `look_at` is only the rest azimuth (`view.look_az_deg`). Tile t owns columns [200 t, 200 t + 200) (11.25 degrees) and its files hold [200 t - 2, 200 t + 202): two columns of real neighbour data each side (the client's ink pass and lighting read one texel each way; the client crops it), taken periodically by `ridge.ring_cols`. Per card and tile the file is cropped to the rows where that tile's 8-bit alpha is not zero (`top`, `h`); a card that holds nothing in a tile is `null` there (the client interpolates its distance from the neighbours); a card with no solid pixel in any tile is refused.
-7. **Distance and the offset range.** The bake holds no camera (ruling `ridge-camera-full-ring`). `pack` gives each card tile `distance_m` = exp(median ln d) over the tile's solid pixels that are neither wall nor near ground (its interior 200 columns); the client derives each card's slide from that and the viewer's offset r and heading. `camera.r_max_m` is the largest |r| (never above half the nearest terrain's distance) at which, for every tile, card and phi (24 steps of the camera's angle on the circle against its heading; the offset-only rotation mode moves phi round the whole circle), the least-squares line `a + s beta` fitted to the exact view angle `atan2(R sin beta - r sin phi, R cos beta - r cos phi)` over the widest viewport (`HFOV_MAX_DEG` = 72 / 1.1) errs by at most `FIT_PX_MAX` = 24 card px (the continuous error: the line by quadrature over the viewport, the worst error looked for on 513 points, so a handful of samples cannot undercount it); the distance d is that of the NEAREST solid (alpha >= 0.5, neither wall nor near ground) pixel the card draws in the tile's interior columns, which is where the slide errs most (the line is fitted for the tile's `distance_m`, the median, but the bound is held for the nearest terrain: a tile whose terrain spans 600 to 2000 m is bound at 600 m); each tile's near pixels (under the clip) count as terrain at the clip, 500 m, alongside its solid pixels, whatever else the tile holds (they are drawn at the clip; a tile of near ground only is slid there too), so a tile with any near pixel binds at 500 m at the latest; and the resident gate (below) must hold at r_max_m too. `camera.r_max_forward_m` is the same search at phi = 0 alone (same `FIT_PX_MAX`, the same half-distance cap, the same resident gate): the camera pushed forward along its heading, which is where the offset stays when the view direction turns with it (the modes 'still' and 'both'), so it is at least `r_max_m`; the client takes `r_max_m` for the offset-only mode and for a backward offset, `r_max_forward_m` for a forward one in the other modes (`view.ts` `offsetRange`). `FIT_PX_MAX` is provisional, tuned by eye (ruling `ridge-offset-range-fit`). A bake whose `r_max_m` is below `R_MAX_FLOOR_M` = 25 m is refused, naming the card and tile. `distance_m` and the nearest-terrain table exclude the near ground (a tile with nothing outside it gets `distance_m` = 500 m), so card 0's distances are never nearer than the near clip (`write_bake` refuses one that is), and `r_max_m` and `r_max_forward_m` hold for the nearest solid terrain each card draws in each tile, at or beyond 500 m, a tile with near pixels counts them at 500 m: the ground nearer than that rides card 0's slide and is not measured beyond that.
-8. **Normals.** `normals` takes the along-ray slope and the across-ray slope at equal distance (neighbouring columns, same sample), both times the vertical exaggeration.
-
-Files per card `i` and tile `t`: `card--t-colour.webp` (lossy RGB albedo, lossless straight alpha) and `card--t-geometry.webp` (lossless: R, G = (n + 1) / 2 for the normal's along and across components, B = log-distance normalised between `encoding.log_d_min` and `log_d_max`; wall pixels write R = G = 255, a code outside the unit disc that no real normal reaches), each 204 columns wide. The manifest lists the cards nearest first (`near_m`, `far_m`: the median seam depths over the ring) and `tiles[t][i]` = `{ top, h, distance_m, colour, geometry }` or `null`; the runtime paints the cards last to first. The `bake_id` is the sha256 of the files, tile-major, then card, colour then geometry.
-
-Budgets (`check_budget`; a cap is never raised to fit a bake, the lever is `TILES` = 64): every file of one tile at most 235 kB (1.5 MB per 72 degrees), every file of the place at most 7.5 MB, at most 6 cards, and the lit canvases (4 bytes x 202 columns x band rows, per card) of the worst run of N consecutive tiles, cyclic, at most 20 MB, where N = ceil(arc_max / 11.25) + 5 and arc_max = `HFOV_MAX_DEG` / s_min + 2 (r_max / Rmin) 57.3 degrees with Rmin the nearest card's smallest tile distance and s_min = Rmin / (Rmin + r_max). The loader decodes one tile at a time, so the decode transient is not gated.
-
-## Materials
-
-`places.json` `materials` is the one owner of ground colour (ruling `ridge-place-colour-authored`: the topology is real, the colour is authored). A material is `{ base: rgb, ramps: [{ from_m, to_m, colour }], steep: { colour } | null, snow: { from_m, to_m, colour } | null }`: `ridge.albedo(h, n_up, material)` lerps `base` through each ramp in order by height, then to the steep colour on steep faces (null: strata hold on cliffs), then to the snow colour on flat ground above its band. A place names its `material` (absent: `alpine`, the numbers the baker had before materials, pinned by an oracle test); an unknown name is refused (`ridge.load_material`). The bake id hashes the manifest and tile bytes, not the material, so a material change reaches the id only through the colours it bakes. `canyon` (Grand Canyon strata by height at the Unkar reach) was approved by eye on the contact sheet (ruling `grandcanyon-palette-approved`).
-
-## Licence
-
-Elevation: Copernicus DEM GLO-30. The credit line is written into every manifest (`attribution`) and must be shown with any rendering:
-
-> Contains modified Copernicus data: DEM © DLR e.V. 2010-2014 and © Airbus Defence and Space GmbH 2014-2018 provided under COPERNICUS by the European Union and ESA; all rights reserved.
-
-Licence: free, full and open access, with the credit line shown (https://spacedata.copernicus.eu/collections/copernicus-digital-elevation-model).
diff --git a/scripts/ridge-bake/export.py b/scripts/ridge-bake/export.py
deleted file mode 100644
index 42769221..00000000
--- a/scripts/ridge-bake/export.py
+++ /dev/null
@@ -1,314 +0,0 @@
-"""Ridge backdrop export: bake a place with ridge.py and write its K+1 G-buffer cards as 32 azimuth tiles each (colour + geometry WebP per card per tile), a manifest v3 and the index.
-
- python3 -I scripts/ridge-bake/export.py --tiles DIR --out public/ridge/ [--work DIR] [--sheet contact.png]
- python3 -I scripts/ridge-bake/export.py --write-schema (rewrites ridge-bake.schema.json from SCHEMA below)
-
-The runtime reads manifest.json (SCHEMA is its contract) and nothing else about the bake. The ring is the whole 360 degrees (ruling ridge-camera-full-ring), absolute compass, column 0 = north, cut into TILES tiles of TILE_W columns plus an APRON of real neighbour
-columns each side; the bake holds no camera: it ships each card tile's distance_m and camera.r_max_m, the largest offset the per-card linear slide can take (ruling ridge-offset-range-fit); the client lights the cards itself (ruling ridge-cards-runtime-lit).
-The pure parts (budget, bake_id, index, schema check) import no baker; bake_place imports ridge, which needs RIDGE_TILES and RIDGE_WORK (main sets them from --tiles / --work), and so do pack, validate_manifest and write_bake, which read ridge's NEAR_CLIP_M and GROUND_ROWS_MIN."""
-import os, sys, json, math, shutil, hashlib, argparse, tempfile
-from pathlib import Path
-from zoneinfo import ZoneInfo, ZoneInfoNotFoundError
-HERE = Path(__file__).resolve().parent
-sys.path.insert(0, str(HERE))
-from refusal import Refusal
-import numpy as np, imagecodecs
-
-BAKER_VERSION = 7
-RING_W = 6400 # the ring's columns (ridge.W, asserted in bake_place): column c is at azimuth (c + 0.5) / RING_W x 360, column 0 = north
-TILES = 32 # azimuth tiles of the ring, each card cut into TILES files per kind (ruling ridge-camera-full-ring: the client loads the arc near its heading)
-TILE_W = RING_W // TILES # 200 columns = 11.25 degrees owned by a tile
-APRON = 2 # real neighbour columns each side in a tile's file: the client's ink pass and lighting read +-1 texel; the client crops it
-LIT_W = TILE_W + 2 # a lit canvas keeps one apron texel each side
-TILE_DEG = 360.0 / TILES
-MAX_CARDS = 6 # per place; a card is cropped to its row band in every tile, which is what lets a livelier place have more
-TILE_BYTES_MAX = 235_000 # every file of one tile (1.5 MB per 72 degrees, scaled to 11.25)
-PLACE_BYTES_MAX = 7_500_000 # every file of the place
-RESIDENT_BYTES_MAX = 20_000_000 # the lit canvases (4 B x LIT_W x band h per card) of the worst run of consecutive tiles, cyclic; the loader decodes one tile at a time, so the decode transient is not gated
-HFOV_MAX_DEG = 72 / 1.1 # the widest viewport: a 16:9 viewport with 1.1 widths of plane (view.ts windowFor)
-FIT_PX_MAX = 24.0 # the per-card linear slide may err by this many card pixels over the viewport (provisional, tuned by eye: ruling ridge-offset-range-fit)
-R_MAX_FLOOR_M = 25.0 # a bake whose cards cannot take this offset is refused
-PHI_STEPS = 24 # the camera's angle on its circle against its heading, sampled by the r_max search
-COVER_TOL = 0.02 # the composite of a tile's cards may differ from the opaque view by this much of a pixel, nowhere more
-WEBP_QUALITY = 80
-SHEET_SKY = (0.80, 0.86, 0.94) # the flat sky of the contact sheet
-SHEET_LIGHT = (-0.35, 0.55, 0.76) # the fixed light of the contact sheet in (along ray, across ray, up); the sheet is a look at the cards, the client lights the real thing
-ATTRIBUTION = dict(
- credit_line='Contains modified Copernicus data: DEM © DLR e.V. 2010-2014 and © Airbus Defence and Space GmbH 2014-2018 provided under COPERNICUS by the European Union and ESA; all rights reserved.',
- licence='Copernicus DEM licence: free, full and open access, with the credit line shown',
- dem_source='Copernicus DEM GLO-30 (30 m)',
- url='https://spacedata.copernicus.eu/collections/copernicus-digital-elevation-model')
-
-# ------------------------------------------------------------------------------------ schema (the one dict the schema file and the validator both come from)
-_num, _int, _str = {'type': 'number'}, {'type': 'integer'}, {'type': 'string'}
-_numnull = {'type': ['number', 'null']}
-_tz = {'type': 'string', 'format': 'iana-tz'} # an IANA zone the system knows, as ridge.load_preset requires; validate() checks it
-def _obj(**props): return {'type': 'object', 'required': list(props), 'additionalProperties': False, 'properties': props}
-def _objnull(**props): return dict(_obj(**props), type=['object', 'null'])
-_file = _obj(file=_str, bytes=_int)
-SCHEMA = {'$schema': 'https://json-schema.org/draft/2020-12/schema', 'title': 'ridge-bake manifest v3 and index v1', '$defs': {
- 'manifest': _obj(schema={'const': 3}, baker_version=_int, bake_id=_str,
- place=_obj(id=_str, name=_str, lat=_num, lon=_num, altitude_km=_num, eye_m=_num, tz=_tz),
- view=_obj(look_az_deg=_num, ring_w={'const': RING_W}, tile_w={'const': TILE_W}, tiles={'const': TILES}, apron={'const': APRON}, plane_h=_int, px_per_deg_h=_num, px_per_deg_v=_num, exaggeration=_num, horizon_row=_num, sky_row=_num, near_row=_num),
- curvature=_obj(r_earth_m=_num, k_ref=_num),
- encoding=_obj(log_d_min=_num, log_d_max=_num, normal={'const': 'rt8'}),
- camera=dict(_obj(r_max_m=_num, r_max_forward_m=_num), description="r_max_m (every camera angle on its circle) and r_max_forward_m (the camera on its heading) are the offsets up to which the linear slide holds (the fit error at most FIT_PX_MAX card px) for the NEAREST solid terrain (at or beyond the near clip, ridge.NEAR_CLIP_M, 500 m) that each card draws in each tile, not for the tile's median distance_m; a tile whose card 0 draws only near ground (under the clip) is slid at the clip distance (its distance_m) and binds at 500 m. The ground under the clip is drawn by card 0 from the near march and is otherwise not measured."),
- cards={'type': 'array', 'minItems': 1, 'maxItems': MAX_CARDS, 'items': _obj(near_m=_numnull, far_m=_numnull),
- 'description': "nearest first; the runtime paints the list last to first. near_m and far_m are the median seam depths over the ring, null at the ends."},
- tiles={'type': 'array', 'minItems': TILES, 'maxItems': TILES, 'items': {'type': 'array', 'minItems': 1, 'maxItems': MAX_CARDS, 'items': _objnull(top=_int, h=_int, distance_m=_num, colour=_file, geometry=_file)},
- 'description': "tiles[t][i] is card i in tile t, or null where the card holds nothing in that tile (the client takes its distance from the neighbouring tiles). Tile t owns the ring columns [tile_w t, tile_w (t + 1)), column c at azimuth (c + 0.5) / ring_w x 360, 0 = north; its files hold [tile_w t - apron, tile_w (t + 1) + apron), wrapping at the ring's end, and are tile_w + 2 apron columns wide. top and h place the card's band back at its rows of the frame; distance_m = exp(median ln d) of the card's solid pixels in the tile that are neither wall nor near ground, under the near clip (the interior tile_w columns); a tile whose card draws only near ground gets the clip distance."},
- bytes=_int,
- attribution=_obj(credit_line=_str, licence=_str, dem_source=_str, url=_str)),
- 'index': _obj(schema={'const': 1}, default=_str, places={'type': 'object', 'additionalProperties': _str})}}
-def tile_file(i, t, kind): return f'card-{i}-t{t:02d}-{kind}.webp'
-
-def validate(x, s, path='$'):
- """The subset of JSON Schema SCHEMA uses; raises Refusal naming the path."""
- if '$ref' in s: return validate(x, SCHEMA['$defs'][s['$ref'].split('/')[-1]], path)
- tys = s.get('type'); tys = [tys] if isinstance(tys, str) else tys; py = {'object': dict, 'array': list, 'string': str, 'number': (int, float), 'integer': int, 'null': type(None)}
- if tys and not any(isinstance(x, py[t]) and not (isinstance(x, bool) and t != 'null') for t in tys): raise Refusal(f'{path}: not a {"/".join(tys)}')
- if s.get('format') == 'iana-tz':
- try: ZoneInfo(x)
- except (ZoneInfoNotFoundError, ValueError, OSError): raise Refusal(f'{path}: {x!r} is not a time zone the system knows')
- if 'const' in s and x != s['const']: raise Refusal(f"{path}: must be {s['const']!r}")
- if 'enum' in s and x not in s['enum']: raise Refusal(f'{path}: not one of {s["enum"]}')
- if 'maximum' in s and x > s['maximum']: raise Refusal(f'{path}: above {s["maximum"]}')
- if isinstance(x, list):
- if not s.get('minItems', 0) <= len(x) <= s.get('maxItems', 1 << 30): raise Refusal(f'{path}: wrong length')
- for i, v in enumerate(x): validate(v, s['items'], f'{path}[{i}]')
- if isinstance(x, dict):
- props = s.get('properties', {}); extra = s.get('additionalProperties', True)
- for k in s.get('required', []):
- if k not in x: raise Refusal(f'{path}: missing {k}')
- for k, v in x.items():
- if k in props: validate(v, props[k], f'{path}.{k}')
- elif extra is False: raise Refusal(f'{path}: extra key {k}')
- elif isinstance(extra, dict): validate(v, extra, f'{path}.{k}')
-
-def validate_manifest(m):
- """The schema plus what it cannot say: the plane keeps ridge.GROUND_ROWS_MIN rows under the horizon, every tile lists one entry per card, every card holds something in some tile, each file is named for its card and tile, bytes is the sum of the files."""
- import ridge
- validate(m, SCHEMA['$defs']['manifest']); k = len(m['cards']); v = m['view']
- if v['plane_h'] - v['horizon_row'] < ridge.GROUND_ROWS_MIN - 1e-6: raise Refusal(f"$.view: {v['plane_h'] - v['horizon_row']:.1f} rows under the horizon, below the {ridge.GROUND_ROWS_MIN} the runtime needs (ridge.GROUND_ROWS_MIN)")
- for t, row in enumerate(m['tiles']):
- if len(row) != k: raise Refusal(f'$.tiles[{t}]: {len(row)} entries for {k} cards')
- for i, e in enumerate(row):
- for kind in (('colour', 'geometry') if e else ()):
- if e[kind]['file'] != tile_file(i, t, kind): raise Refusal(f'$.tiles[{t}][{i}].{kind}: file {e[kind]["file"]!r} is not {tile_file(i, t, kind)!r}')
- for i in range(k):
- if all(row[i] is None for row in m['tiles']): raise Refusal(f'card {i} is null in every tile')
- if m['bytes'] != sum(e[kind]['bytes'] for row in m['tiles'] for e in row if e for kind in ('colour', 'geometry')): raise Refusal('bytes is not the sum of the files')
-
-# ------------------------------------------------------------------------------------ cards -> bytes
-def u8(a): return np.clip(np.rint(np.asarray(a) * 255.0), 0, 255).astype(np.uint8)
-def encode_colour(albedo, alpha):
- """Lossy RGB albedo with lossless alpha coverage, straight (not premultiplied); the colour under a zero alpha is zeroed."""
- a = u8(alpha); rgb = u8(albedo) * (a[..., None] > 0); return bytes(imagecodecs.webp_encode(np.dstack([rgb, a]), level=WEBP_QUALITY, lossless=False))
-def encode_geometry(n_r, n_t, logd, enc, wall=None):
- """Lossless, opaque RGB: R, G = (n_r + 1) / 2, (n_t + 1) / 2 ('rt8'), B = the log-distance normalised between enc log_d_min and log_d_max (a log-distance under log_d_min, the near ground under the clip, encodes as 0: the clip distance). Wall pixels (the extruded face under a ridge; wall (h, w) bool) write R = G = 255: a code outside the unit disc
- that no real normal reaches (real r2 + t2 peaks at 0.998), which the runtime reads as 'normal up, no crease'."""
- b = (np.asarray(logd) - enc['log_d_min']) / (enc['log_d_max'] - enc['log_d_min']); r, t = u8((np.asarray(n_r) + 1) / 2), u8((np.asarray(n_t) + 1) / 2)
- if wall is not None: m = np.asarray(wall, bool); r, t = np.where(m, 255, r).astype(np.uint8), np.where(m, 255, t).astype(np.uint8)
- return bytes(imagecodecs.webp_encode(np.dstack([r, t, u8(b)]), lossless=True))
-def decode(b):
- """A WebP's bytes as RGBA uint8; the codec returns RGB for an image that is opaque everywhere, which is solid."""
- a = imagecodecs.webp_decode(b)
- return a if a.shape[-1] == 4 else np.concatenate([a, np.full(a.shape[:2] + (1,), 255, np.uint8)], -1)
-
-def composite_alpha(cards, h, w):
- """Coverage of the alpha-over of all cards, each (top, rgba uint8 or float alpha (rows, w)) placed at its rows of an h x w frame."""
- clear = np.ones((h, w))
- for top, al in cards: clear[top:top + al.shape[0]] *= 1 - np.asarray(al, np.float64)
- return 1 - clear
-def check_cover(cards, opaque, tol=COVER_TOL):
- """Refuse a bake whose cards, alpha-over, differ from the opaque view's coverage by more than tol anywhere: a hole shows the sky through terrain, an excess is a ghost. cards: [(top, alpha 0..1 (rows, w))], opaque (h, w)."""
- err = np.abs(composite_alpha(cards, *opaque.shape) - opaque); bad = err > tol
- if bad.any(): y, x = np.unravel_index(int(np.argmax(err)), err.shape); raise Refusal(f'the cards do not composite to the opaque view within {tol}: {int(bad.sum())} pixels differ, worst {err.max():.3f} at x={x} row {y}')
-
-def run_tiles(r_max_m, rmin_m):
- """N, the consecutive tiles the loader keeps resident: the viewport arc at the smallest slide rate plus the offset's own swing (arc_max = HFOV_MAX_DEG / s_min + 2 (r_max / Rmin) 57.3 degrees, s_min = Rmin / (Rmin + r_max)), one straddled tile and two tiles of margin each side."""
- s_min = rmin_m / (rmin_m + r_max_m); arc = HFOV_MAX_DEG / s_min + 2 * (r_max_m / rmin_m) * 57.3
- return min(TILES, math.ceil(arc / TILE_DEG) + 1 + 4)
-def resident_bytes(bands, n):
- """The lit canvases (4 bytes x LIT_W x band rows, per card) of the worst run of n consecutive tiles of the ring, wrapping. bands[t]: the row counts of the cards that tile holds."""
- per = [sum(4 * LIT_W * h for h in b) for b in bands]; n = min(n, TILES)
- return max(sum(per[(t + k) % TILES] for k in range(n)) for t in range(TILES))
-def check_budget(n_cards, tile_bytes, bands, r_max_m, rmin_m):
- """Refuse a bake the runtime could not hold: more than MAX_CARDS cards, a tile whose files together are above TILE_BYTES_MAX, every file of the place above PLACE_BYTES_MAX, or the worst run of run_tiles(r_max_m, rmin_m) consecutive tiles lit above RESIDENT_BYTES_MAX."""
- if n_cards > MAX_CARDS: raise Refusal(f'{n_cards} cards, above {MAX_CARDS}')
- for t, b in enumerate(tile_bytes):
- if b > TILE_BYTES_MAX: raise Refusal(f'tile {t} is {b} bytes, above {TILE_BYTES_MAX}')
- if sum(tile_bytes) > PLACE_BYTES_MAX: raise Refusal(f'the place is {sum(tile_bytes)} bytes, above {PLACE_BYTES_MAX}')
- n = run_tiles(r_max_m, rmin_m); res = resident_bytes(bands, n)
- if res > RESIDENT_BYTES_MAX: raise Refusal(f'{n} consecutive tiles light to {res} bytes, above {RESIDENT_BYTES_MAX}')
-
-FIT_QUAD = 48 # Gauss-Legendre nodes for the least-squares line (exact for the smooth alpha(beta) to far below a card pixel)
-FIT_GRID = 513 # points the worst error is looked for on, ends included: the error is smooth between them, so the maximum found is within 0.01 card px of the continuous one
-def fit_px(d, r, px_per_deg, phis=None):
- """The worst error, in card pixels, of a card tile's linear slide at offset r (m): over the camera's angle phi on its circle against its heading (`phis` steps, PHI_STEPS by default; 1 is phi = 0 alone, the camera pushed forward along its heading) and the viewport (beta in +-HFOV_MAX_DEG / 2), the exact view angle of a cylinder point at the tile's
- distance d, alpha = atan2(d sin beta - r sin phi, d cos beta - r cos phi), against the continuous least-squares line a + s beta over the viewport (ruling ridge-offset-range-fit; the line by quadrature, the error on FIT_GRID points: it is the continuous worst error, not the error of a few samples)."""
- half = math.radians(HFOV_MAX_DEG) / 2; p = np.linspace(0, 2 * math.pi, PHI_STEPS if phis is None else phis, endpoint=False)[:, None]
- alpha = lambda b: np.arctan2(d * np.sin(b) - r * np.sin(p), d * np.cos(b) - r * np.cos(p)); x, w = np.polynomial.legendre.leggauss(FIT_QUAD); bq = half * x[None, :]; A = alpha(bq)
- a0 = (A * w).sum(-1, keepdims=True) / 2; s = (A * bq * w).sum(-1, keepdims=True) / (bq * bq * w).sum(); b = np.linspace(-half, half, FIT_GRID)[None, :]
- return math.degrees(float(np.abs(alpha(b) - (a0 + s * b)).max())) * px_per_deg
-def fit_table(dist, r, px_per_deg, phis=None):
- """(tiles, cards) fit_px of every card tile at offset r; nan where the card is null in that tile."""
- return np.array([[np.nan if d is None else fit_px(d, r, px_per_deg, phis) for d in row] for row in dist])
-def solve_r_max(dist, bands, px_per_deg, phis=None):
- """dist: [tiles][cards] the distance of the NEAREST solid terrain each card draws in each tile (None where it draws none): the line of a tile is fitted for one distance but its terrain spans many, and the nearest is where the slide errs most (ruling ridge-offset-range-fit, up to where the linear map holds).
- The largest offset r (m, down to 0.1 m) at which every card tile fits within FIT_PX_MAX over `phis` camera angles (PHI_STEPS: the whole circle, the offset-only rotation mode; 1: phi = 0 alone, the modes where the offset turns with the view) and the resident gate holds: never above half the nearest card's smallest tile distance. Scans r upward from 0 on 128 steps to the first failure, then bisects that step.
- Refuses (naming the card and tile that bind) a bake whose r_max_m is below R_MAX_FLOOR_M."""
- near = min((row[0], t) for t, row in enumerate(dist) if row[0] is not None); rmin = near[0]; cap = 0.5 * rmin
- ok = lambda r: bool(np.nanmax(fit_table(dist, r, px_per_deg, phis)) <= FIT_PX_MAX) and resident_bytes(bands, run_tiles(r, rmin)) <= RESIDENT_BYTES_MAX
- lo, hi = 0.0, None
- for r in np.linspace(0, cap, 129)[1:]:
- if ok(r): lo = float(r)
- else: hi = float(r); break
- if hi is None: lo = cap
- else:
- for _ in range(24):
- mid = 0.5 * (lo + hi)
- if ok(mid): lo = mid
- else: hi = mid
- r_max = math.floor(lo * 10) / 10
- if r_max < R_MAX_FLOOR_M:
- if cap < R_MAX_FLOOR_M: raise Refusal(f'r_max_m {r_max:g} is below {R_MAX_FLOOR_M:g} m: card 0 stands {rmin:.0f} m away in tile {near[1]} and the offset stays under half of that')
- tb = fit_table(dist, R_MAX_FLOOR_M, px_per_deg, phis); t, i = np.unravel_index(int(np.nanargmax(tb)), tb.shape)
- if tb[t, i] > FIT_PX_MAX: raise Refusal(f'r_max_m {r_max:g} is below {R_MAX_FLOOR_M:g} m: card {i} in tile {t} errs {tb[t, i]:.1f} card px at {R_MAX_FLOOR_M:g} m (the bound is {FIT_PX_MAX:g})')
- n = run_tiles(R_MAX_FLOOR_M, rmin); raise Refusal(f'r_max_m {r_max:g} is below {R_MAX_FLOOR_M:g} m: at {R_MAX_FLOOR_M:g} m, {n} consecutive tiles light to {resident_bytes(bands, n)} bytes, above {RESIDENT_BYTES_MAX}')
- return r_max
-
-BAKE_ID_BLANK = '0' * 12
-def bake_id(manifest_text, files):
- """First 12 hex of sha256 over the whole bake: the manifest.json text as written with its bake_id value BAKE_ID_BLANK (the id cannot hash itself), then the tile files, tile-major then card, colour then geometry (a null card tile writes none), so any change to the manifest or a tile is a new directory.
- files: [(colour bytes, geometry bytes)] in that order."""
- h = hashlib.sha256(); h.update(manifest_text.encode('utf-8'))
- for colour, geometry in files: h.update(colour); h.update(geometry)
- return h.hexdigest()[:12]
-
-def write_bake(out, place, view, meta, packed, opaque, default=None):
- """Write out/-/ (tile WebPs + manifest.json; the id addresses both), rewrite out/index.json, delete the place's previous dir. packed: dict(cards [dict(near_m, far_m)], tiles [TILES][cards] of dict(top, colour bytes, geometry bytes, distance_m) or None,
- camera dict(r_max_m, r_max_forward_m)); opaque: TILES arrays (plane_h, TILE_W + 2 APRON), each the opaque view's coverage over a tile's columns. Refuses before writing a bake whose files decode to the wrong size, leave the frame, break a budget (the resident gate at r_max_m and at r_max_forward_m) or composite
- away from the opaque view in any tile. meta: dict(curvature, encoding). Returns the directory."""
- cards, tiles, camera = packed['cards'], packed['tiles'], packed['camera']; k = len(cards); h = view['plane_h']; w = TILE_W + 2 * APRON
- if len(tiles) != TILES or len(opaque) != TILES or any(len(row) != k for row in tiles): raise Refusal(f'the bake needs {TILES} tiles of {k} cards each')
- for i in range(k):
- if all(row[i] is None for row in tiles): raise Refusal(f'card {i} is null in every tile')
- dec = [[None if e is None else (decode(e['colour']), decode(e['geometry'])) for e in row] for row in tiles]; bands = [[pair[0].shape[0] for pair in row if pair] for row in dec]; tile_bytes = []
- for t, (row, drow) in enumerate(zip(tiles, dec)):
- tile_bytes.append(sum(len(e['colour']) + len(e['geometry']) for e in row if e))
- for i, (e, pair) in enumerate(zip(row, drow)):
- if e is None: continue
- c, g = pair
- if c.shape[:2] != g.shape[:2]: raise Refusal(f'tile {t} card {i}: colour and geometry are not one size')
- if c.shape[1] != w: raise Refusal(f'tile {t} card {i} is {c.shape[1]} columns wide, not {w} (tile {TILE_W} + 2 apron {APRON})')
- if c.shape[0] < 1 or e['top'] < 0 or e['top'] + c.shape[0] > h: raise Refusal(f'tile {t} card {i} leaves the {h} rows of the frame')
- if opaque[t].shape != (h, w): raise Refusal(f'tile {t}: the opaque view is {opaque[t].shape}, the frame {(h, w)}')
- import ridge
- rmin = min(row[0]['distance_m'] for row in tiles if row[0]) # distance_m is exp of a float32 log: it lands a few parts in 1e7 off the clip, so the compare keeps 1e-5 of slack
- if rmin < ridge.NEAR_CLIP_M * (1 - 1e-5): raise Refusal(f'card 0 stands {rmin:.1f} m away, nearer than the near clip {ridge.NEAR_CLIP_M:g} m: the distance of card 0 is measured at or beyond the clip (the near ground under it is not measured)')
- if camera['r_max_forward_m'] < camera['r_max_m']: raise Refusal(f"r_max_forward_m {camera['r_max_forward_m']:g} is below r_max_m {camera['r_max_m']:g}: phi = 0 is one of the angles r_max_m holds for")
- for r in (camera['r_max_m'], camera['r_max_forward_m']): check_budget(k, tile_bytes, bands, r, rmin)
- for t, (row, drow) in enumerate(zip(tiles, dec)):
- try: check_cover([(e['top'], pair[0][..., 3] / 255.0) for e, pair in zip(row, drow) if e], opaque[t])
- except Refusal as ex: raise Refusal(f'tile {t}: {ex}')
- out = Path(out)
- manifest = dict(schema=3, baker_version=BAKER_VERSION, bake_id=BAKE_ID_BLANK, place=place, view=dict(view, ring_w=RING_W, tile_w=TILE_W, tiles=TILES, apron=APRON), curvature=meta['curvature'], encoding=dict(meta['encoding'], normal='rt8'), camera=dict(r_max_m=camera['r_max_m'], r_max_forward_m=camera['r_max_forward_m']),
- cards=[dict(near_m=c['near_m'], far_m=c['far_m']) for c in cards],
- tiles=[[None if e is None else dict(top=e['top'], h=pair[0].shape[0], distance_m=e['distance_m'], colour=dict(file=tile_file(i, t, 'colour'), bytes=len(e['colour'])), geometry=dict(file=tile_file(i, t, 'geometry'), bytes=len(e['geometry'])))
- for i, (e, pair) in enumerate(zip(row, drow))] for t, (row, drow) in enumerate(zip(tiles, dec))], bytes=sum(tile_bytes), attribution=ATTRIBUTION)
- validate_manifest(manifest); text = json.dumps(manifest, indent=1) + '\n'; blank = f'"bake_id": "{BAKE_ID_BLANK}"'; assert text.count(blank) == 1
- bid = bake_id(text, [(e['colour'], e['geometry']) for row in tiles for e in row if e]); name = f"{place['id']}-{bid}"; dest = out / name; text = text.replace(blank, f'"bake_id": "{bid}"')
- out.mkdir(parents=True, exist_ok=True); tmp = Path(tempfile.mkdtemp(dir=out, prefix='.bake-'))
- for t, row in enumerate(tiles):
- for i, e in enumerate(row):
- if e: (tmp / tile_file(i, t, 'colour')).write_bytes(e['colour']); (tmp / tile_file(i, t, 'geometry')).write_bytes(e['geometry'])
- (tmp / 'manifest.json').write_bytes(text.encode('utf-8')) # bytes, so the platform's newline cannot move the file under its id
- idx_path = out / 'index.json'; idx = json.loads(idx_path.read_text()) if idx_path.exists() else dict(schema=1, default=place['id'], places={})
- old = idx['places'].get(place['id']); idx['places'][place['id']] = name; idx['default'] = default or (idx['default'] if idx['default'] in idx['places'] else place['id'])
- validate(idx, SCHEMA['$defs']['index'])
- if dest.exists(): shutil.rmtree(dest)
- os.rename(tmp, dest); (out / '.index.tmp').write_bytes((json.dumps(idx, indent=1) + '\n').encode('utf-8')); os.replace(out / '.index.tmp', idx_path)
- if old and old != name: shutil.rmtree(out / old, ignore_errors=True)
- return dest
-
-# ------------------------------------------------------------------------------------ the bake
-def cut_ring(d, a, h, splits_km, near, material):
- """The ring cut of a prefiltered march (set_view done) and its near march (ridge.near_march): coverage, the periodic seams and the opaque view on the far march (d, a), the join of the near ground and the normals on all RING_W columns (ridge.join_near), then ridge.cards per tile on its TILE_W + 2 APRON columns of the joined march. Returns dict(cards [TILES][cards] (ridge.cards arrays),
- splits_km, seams (K, ring) in m, cov (bins, ring), opaque [TILES] (rows, TILE_W + 2 APRON) coverage, edges)."""
- import ridge
- cov = ridge.coverage(d, a); sm = ridge.seams(cov, [k * 1000.0 for k in splits_km], d); op = ridge.opaque(a); D, A, Hc, nrm = ridge.join_near(d, a, h, near); cols = lambda x, t: ridge.ring_cols(x, t * TILE_W - APRON, TILE_W + 2 * APRON); tiles = []
- for t in range(TILES): tiles.append(ridge.cards(D, cols(A, t), cols(Hc, t), cols(sm, t), tuple(cols(x, t) for x in nrm), material=material)); print(f'tile {t + 1}/{TILES}', file=sys.stderr, flush=True)
- return dict(cards=tiles, splits_km=list(splits_km), seams=sm, cov=cov, opaque=[cols(op, t) for t in range(TILES)], edges=ridge.log_edges(d))
-
-def bake_place(pid):
- """stage 0, prefilter, set_view on the whole ring, cut_ring: dict(place, view, meta, v, and cut_ring's cards, splits_km, seams, cov, opaque, edges). Needs RIDGE_TILES / RIDGE_WORK."""
- import ridge
- assert ridge.W == RING_W and ridge.H > 0
- p = ridge.load_preset(pid); material = ridge.load_material(p.get('material', 'alpine')); p = ridge.configure(p); ridge.mosaic(p); d, _, Hh, _ = ridge.stage0(False); a, h = ridge.prefilter(d, Hh, p.get('prefilter_m', 0)); v = ridge.set_view(a.max(0)); ring = cut_ring(d, a, h, p['card_split_km'], ridge.near_march(p.get('prefilter_m', 0) or 0), material)
- place = dict(id=p['id'], name=p['name'], lat=p['lat'], lon=p['lon'], altitude_km=p['ground_m'] / 1000.0, eye_m=p['eye_m'], tz=p['tz'])
- view = dict(look_az_deg=p['az_center'], plane_h=ridge.H, px_per_deg_h=ridge.HPX_DEG, px_per_deg_v=v['px_per_deg'], exaggeration=v['exaggeration'], horizon_row=v['horizon_row'], sky_row=v['sky_row'] * ridge.H, near_row=v['near_row'] * ridge.H)
- meta = dict(curvature=dict(r_earth_m=ridge.R_EARTH, k_ref=ridge.KREF), encoding=dict(log_d_min=math.log(d[0]), log_d_max=math.log(d[-1])))
- return dict(place=place, view=view, meta=meta, v=v, **ring)
-
-def pack(bake):
- """The tiles of a bake as bytes plus their manifest facts. Per card tile: distance_m = exp(median ln d) over the solid (alpha >= 0.5) pixels that are neither wall nor near ground (under the clip) of the interior TILE_W columns (a tile with none falls back to its non-wall, then any, lit pixels, near ground never; a tile with nothing outside the near ground gets ridge.NEAR_CLIP_M: the near ground itself is not measured, but such a tile is slid at that distance and binds r_max there);
- a card with no rows in a tile is null there. Per card: the median seam depths over the ring. camera.r_max_m: solve_r_max over the NEAREST solid non-wall pixel of each card tile (not its median distance_m; each tile's near pixels, under the clip, count as terrain at the clip alongside its solid pixels, whatever else the tile holds: they are drawn at the clip) and every camera angle on its circle (the offset-only rotation mode), camera.r_max_forward_m: the same at phi = 0 alone (the modes where the offset turns with the view). Refuses a card empty in every tile (naming the splits) and a card with
- no solid terrain apart from its wall in any tile. Returns dict(cards, tiles, camera, report) (report is printed, not written)."""
- import ridge
- sm = bake['seams']; sp = bake['splits_km']; k = len(sp) + 1; ppd = bake['view']['px_per_deg_h']; inner = slice(APRON, APRON + TILE_W); enc = bake['meta']['encoding']
- for i in range(k):
- if all(tile[i]['alpha'].shape[0] == 0 for tile in bake['cards']): raise Refusal(f"card {i} is empty: it lies between the splits {' and '.join(f'{sp[j]:g} km' for j in (i - 1, i) if 0 <= j < len(sp))} (card_split_km {sp}) and holds no terrain nothing nearer hides; move or remove a split")
- tiles, dist, near, bands = [], [], [], []; any_solid = [False] * k
- for tile in bake['cards']:
- row, drow, nrow, brow = [], [], [], []
- for i, c in enumerate(tile):
- if c['alpha'].shape[0] == 0: row.append(None); drow.append(None); nrow.append(None); continue
- al, wl, ld, nr = c['alpha'][:, inner], c['wall'][:, inner], c['logd'][:, inner], c['near'][:, inner]; solid = (al >= 0.5) & ~wl & ~nr; any_solid[i] |= bool(solid.any())
- pool = next(((m, l) for m, l in ((solid, ld), ((al > 0) & ~wl & ~nr, ld), ((al > 0) & ~nr, ld), ((c['alpha'] > 0) & ~c['near'], c['logd'])) if m.any()), None)
- dm = float(np.exp(np.median(pool[1][pool[0]]))) if pool else ridge.NEAR_CLIP_M; nrow.append(min((v for v in (float(np.exp(ld[solid].min())) if solid.any() else None, ridge.NEAR_CLIP_M if ((al >= 0.5) & nr).any() else None) if v is not None), default=None)) # the nearest terrain the card draws in this tile: its solid pixels, and its near pixels as terrain at the clip (they are drawn at the clip whatever else the tile holds); None where it draws only wall or faint pixels
- row.append(dict(top=c['top'], colour=encode_colour(c['albedo'], c['alpha']), geometry=encode_geometry(c['n_r'], c['n_t'], c['logd'], enc, c['wall']), distance_m=dm)); drow.append(dm); brow.append(c['alpha'].shape[0])
- tiles.append(row); dist.append(drow); near.append(nrow); bands.append(brow)
- for i in range(k):
- if not any_solid[i]: raise Refusal(f'card {i} holds no solid terrain apart from its wall rows')
- r_max = solve_r_max(near, bands, ppd); r_fwd = solve_r_max(near, bands, ppd, phis=1); rmin = min(row[0] for row in near if row[0] is not None); n = run_tiles(r_fwd, rmin); worst = np.nanmax(fit_table(near, r_max, ppd), axis=0)
- cards = [dict(near_m=float(np.median(sm[i - 1])) if i else None, far_m=float(np.median(sm[i])) if i < len(sm) else None) for i in range(k)]
- return dict(cards=cards, tiles=tiles, camera=dict(r_max_m=r_max, r_max_forward_m=r_fwd), report=dict(fit_px=[float(x) for x in worst], run_tiles=n, resident_bytes=resident_bytes(bands, n), nearest_m=rmin)) # nearest_m: the nearest solid terrain of the place
-
-def lit(c):
- """albedo x (0.35 + 0.65 max(n.L, 0)) under the fixed sheet light, with the card's alpha: (rgb, alpha). Wall pixels are lit with the face up, as the runtime reads their code."""
- wall = c['wall']; n_r, n_t = np.where(wall, 0.0, c['n_r']), np.where(wall, 0.0, c['n_t'])
- up = np.sqrt(np.clip(1 - n_r ** 2 - n_t ** 2, 0, 1)); L = np.array(SHEET_LIGHT) / np.linalg.norm(SHEET_LIGHT); nl = np.clip(n_r * L[0] + n_t * L[1] + up * L[2], 0, 1)
- return c['albedo'] * (0.35 + 0.65 * nl)[..., None], c['alpha']
-def sheet(bake):
- """Contact sheet (png bytes) at 1/4 of the ring's width, stacked: the ring composite, every card's strip alone, and the depth image (log-distance bins, far at the top, every seam); the TILES tile boundaries drawn on each. All lit by SHEET_LIGHT over the flat
- SHEET_SKY; reads the arrays the encoder writes (each tile's interior columns, the apron dropped)."""
- h = bake['opaque'][0].shape[0]; k = len(bake['cards'][0]); sky = np.broadcast_to(np.array(SHEET_SKY, np.float32), (h, RING_W, 3)); rgbs = [np.zeros((h, RING_W, 3), np.float32) for _ in range(k)]; als = [np.zeros((h, RING_W), np.float32) for _ in range(k)]
- for t, tile in enumerate(bake['cards']):
- for i, c in enumerate(tile):
- if c['alpha'].shape[0] == 0: continue
- rgb, al = lit(c); sl = slice(c['top'], c['top'] + al.shape[0]); x0 = t * TILE_W; rgbs[i][sl, x0:x0 + TILE_W] = rgb[:, APRON:APRON + TILE_W]; als[i][sl, x0:x0 + TILE_W] = al[:, APRON:APRON + TILE_W]
- comp = sky.copy(); panels = []
- for rgb, al in zip(rgbs, als): panels.append(sky * (1 - al[..., None]) + rgb * al[..., None])
- for rgb, al in zip(reversed(rgbs), reversed(als)): comp = comp * (1 - al[..., None]) + rgb * al[..., None]
- q = lambda a: a.reshape((a.shape[0], RING_W // 4, 4) + a.shape[2:]).mean(2); mark = np.arange(TILES) * TILE_W // 4; red = np.array([1.0, 0.2, 0.2])
- def bounds(img): img[:, mark] = 0.45 * img[:, mark] + 0.55 * red; return img
- cov = bake['cov'][:, ::4]; w = cov.shape[1]; img = np.repeat(np.log1p(cov[::-1]) / np.log1p(cov.max()), 2, 0); depth = np.dstack([img] * 3) * 0.92 + 0.04; nb = cov.shape[0]; cols = np.arange(w)
- for j, s in enumerate(bake['seams']):
- b = np.clip(np.searchsorted(bake['edges'], np.log(s[::4]), 'right') - 1, 0, nb - 1); col = [(0.24, 0.78, 1.0), (1.0, 0.47, 0.24), (0.6, 1.0, 0.4), (1.0, 0.9, 0.3), (0.9, 0.4, 1.0)][j % 5]
- for dy in (0, 1): depth[(nb - 1 - b) * 2 + dy, cols] = col
- return bytes(imagecodecs.png_encode(u8(np.concatenate([bounds(q(comp))] + [bounds(q(p)) for p in panels] + [bounds(depth)], 0))))
-
-def main(argv=None):
- ap = argparse.ArgumentParser(description=__doc__.split('\n')[0]); ap.add_argument('place', nargs='?'); ap.add_argument('--tiles'); ap.add_argument('--out'); ap.add_argument('--work'); ap.add_argument('--sheet'); ap.add_argument('--write-schema', action='store_true')
- a = ap.parse_args(argv)
- if a.write_schema: (HERE / 'ridge-bake.schema.json').write_bytes((json.dumps(SCHEMA, indent=1, ensure_ascii=False) + '\n').encode('utf-8')); return 0
- if not (a.place and a.tiles and a.out): ap.error('place, --tiles and --out are required')
- os.environ['RIDGE_TILES'] = a.tiles; os.environ['RIDGE_WORK'] = a.work or os.path.join(os.environ.get('TMPDIR', tempfile.gettempdir()), 'ridge-bake-work'); os.makedirs(os.environ['RIDGE_WORK'], exist_ok=True)
- bake = bake_place(a.place)
- if a.sheet: Path(a.sheet).write_bytes(sheet(bake))
- packed = pack(bake); rp = packed['report']
- print(f"r_max_m {packed['camera']['r_max_m']:g} r_max_forward_m {packed['camera']['r_max_forward_m']:g} nearest card {rp['nearest_m']:.0f} m resident run {rp['run_tiles']} tiles = {rp['resident_bytes']} bytes worst fit error per card (card px, bound {FIT_PX_MAX:g}) {[round(x, 1) for x in rp['fit_px']]}", file=sys.stderr, flush=True)
- dest = write_bake(a.out, bake['place'], bake['view'], bake['meta'], packed, bake['opaque']); print(dest); return 0
-
-if __name__ == '__main__': sys.exit(main())
diff --git a/scripts/ridge-bake/places.json b/scripts/ridge-bake/places.json
deleted file mode 100644
index d5101a5d..00000000
--- a/scripts/ridge-bake/places.json
+++ /dev/null
@@ -1,815 +0,0 @@
-{
- "_doc": "Place presets for the A+D baker (ridge.py). eye = observer lat/lon; eye_h_m = eye above the local DEM surface (ground_override_m replaces the DEM ground elevation, used for Vienna to keep round 1's 183.3 m); look_at = target lat/lon whose bearing is the rest azimuth, where the view looks at rest (or az_deg); the ring itself is the whole 360 degrees, absolute compass, column 0 = north; tz = the place's IANA time zone (required, never defaulted: the runtime draws named sky moments in the place's local day); rmax_km = ring radius (decides the tile list: every 1x1 deg GLO-30 tile whose rectangle intersects the circle); card_split_km = the ordered list of 1 to MAX_CARDS - 1 authored seam depths in km (the seam search refines each per column; K splits make K+1 cards; required, never defaulted); prefilter_m = Gaussian sigma in metres of the height low-pass before the cards are cut (default 0).",
- "_materials": "materials = the authored ground colour of a place (the topology is real, the colour is GameCult's own depiction; ruling ridge-place-colour-authored). A material: base = rgb under every ramp; ramps = [{from_m, to_m, colour}] lerped over height in order (each takes the running colour to its own over from_m..to_m, then holds it); steep = {colour} | null: the colour of steep faces (n_up under 0.93, full at 0.68), null keeps the height colour on cliffs; snow = {from_m, to_m, colour} | null: lerped in over its band on flat ground. A place names its `material`; absent means alpine; an unknown name is refused by the baker.",
- "materials": {
- "alpine": {
- "base": [
- 0.36,
- 0.44,
- 0.26
- ],
- "ramps": [
- {
- "from_m": 150,
- "to_m": 900,
- "colour": [
- 0.22,
- 0.31,
- 0.2
- ]
- },
- {
- "from_m": 1300,
- "to_m": 2000,
- "colour": [
- 0.47,
- 0.44,
- 0.41
- ]
- }
- ],
- "steep": {
- "colour": [
- 0.47,
- 0.44,
- 0.41
- ]
- },
- "snow": {
- "from_m": 1900,
- "to_m": 2300,
- "colour": [
- 0.93,
- 0.95,
- 0.97
- ]
- }
- },
- "canyon": {
- "base": [
- 0.62,
- 0.52,
- 0.4
- ],
- "ramps": [
- {
- "from_m": 1000,
- "to_m": 1080,
- "colour": [
- 0.55,
- 0.3,
- 0.2
- ]
- },
- {
- "from_m": 1150,
- "to_m": 1300,
- "colour": [
- 0.72,
- 0.38,
- 0.22
- ]
- },
- {
- "from_m": 1300,
- "to_m": 1350,
- "colour": [
- 0.45,
- 0.33,
- 0.25
- ]
- },
- {
- "from_m": 1400,
- "to_m": 1450,
- "colour": [
- 0.5,
- 0.52,
- 0.42
- ]
- },
- {
- "from_m": 1550,
- "to_m": 1600,
- "colour": [
- 0.62,
- 0.48,
- 0.42
- ]
- },
- {
- "from_m": 1800,
- "to_m": 1850,
- "colour": [
- 0.52,
- 0.24,
- 0.18
- ]
- },
- {
- "from_m": 2050,
- "to_m": 2070,
- "colour": [
- 0.85,
- 0.76,
- 0.58
- ]
- },
- {
- "from_m": 2150,
- "to_m": 2170,
- "colour": [
- 0.72,
- 0.68,
- 0.58
- ]
- },
- {
- "from_m": 2300,
- "to_m": 2400,
- "colour": [
- 0.3,
- 0.38,
- 0.24
- ]
- }
- ],
- "steep": null,
- "snow": null
- }
- },
- "presets": [
- {
- "id": "vienna",
- "tz": "Europe/Vienna",
- "name": "Vienna, looking SW to Rax/Schneeberg",
- "kind": "far range over a flat foreground",
- "lat": 48.1929826,
- "lon": 16.3534237,
- "eye_h_m": 30.0,
- "ground_override_m": 183.3,
- "az_deg": 214.0,
- "rmax_km": 95,
- "card_split_km": [
- 6,
- 40
- ],
- "prefilter_m": 100,
- "viewpoint_source": {
- "status": "existing observer of the round-1 mockup (the scene camera used by the game), not photo-sourced; eye 30 m above ground as in round 1"
- }
- },
- {
- "id": "matterhorn",
- "tz": "Europe/Zurich",
- "name": "Matterhorn from the Gornergrat",
- "kind": "lone horn, close, 27 deg of relief",
- "lat": 45.983139,
- "lon": 7.782466,
- "eye_h_m": 1.6,
- "look_at": [
- 45.97666,
- 7.65678
- ],
- "rmax_km": 60,
- "initial_guess_not_used": {
- "lat": 45.9856,
- "lon": 7.7452
- },
- "viewpoint_source": {
- "status": "sourced",
- "source": "Wikimedia Commons geosearch (namespace 6), geotagged photos",
- "query": "geosearch ns=6 gslimit=500 gsradius=10000 around 25 centres (peak + 3 rings x 8 bearings, radii 3600-12000 m), then EXIF GPSImgDirection of every file in range via prop=imageinfo&iiprop=commonmetadata",
- "files_found": 5003,
- "in_range": 3241,
- "with_exif_heading": 205,
- "facing_the_peak": 52,
- "pool": "photos whose camera heading is within 30 deg of the bearing to the summit",
- "rule": "densest 1 km cell of photos 3000-12000 m from the summit whose EXIF camera heading faces the summit (within 30 deg) with the summit visible on the DEM (straight line, first 250 m ignored, 8 m clutter allowed); viewpoint = median coordinate of the cell",
- "median_camera_heading_deg": 245.8,
- "photos_in_cell": 7,
- "cells_tried": [
- {
- "n_facing": 7,
- "lat": 45.98314,
- "lon": 7.78247,
- "peak_visible": true
- }
- ],
- "distance_to_peak_m": 9749,
- "bearing_to_peak_deg": 265.8,
- "dem_ground_m": 3090.7,
- "eye_height_rule": "DEM ground at the viewpoint + 1.6 m (the source gives no eye height)",
- "sample_files": [
- {
- "title": "File:Gornergrat-04.jpg",
- "lat": 45.983061,
- "lon": 7.782031,
- "heading": 256.0,
- "url": "https://commons.wikimedia.org/wiki/File%3AGornergrat-04.jpg"
- },
- {
- "title": "File:Gornergrat-03.jpg",
- "lat": 45.983058,
- "lon": 7.782038,
- "heading": 245.8,
- "url": "https://commons.wikimedia.org/wiki/File%3AGornergrat-03.jpg"
- },
- {
- "title": "File:Gornergrat-07.jpg",
- "lat": 45.982653,
- "lon": 7.782466,
- "heading": 250.2,
- "url": "https://commons.wikimedia.org/wiki/File%3AGornergrat-07.jpg"
- },
- {
- "title": "File:Gornergratsee 2021 10.jpg",
- "lat": 45.986958,
- "lon": 7.780303,
- "heading": 243.4,
- "url": "https://commons.wikimedia.org/wiki/File%3AGornergratsee_2021_10.jpg"
- },
- {
- "title": "File:Early morning Eiger.jpg",
- "lat": 45.983242,
- "lon": 7.783361,
- "heading": 254.7,
- "url": "https://commons.wikimedia.org/wiki/File%3AEarly_morning_Eiger.jpg"
- },
- {
- "title": "File:Klein Matterhorn mit Wolken an Theodulhorn und Furgghorn \u00fcber dem Oberen Theodulgletscher- a view from Gornergrat 2021 02 (cropped).jpg",
- "lat": 45.983139,
- "lon": 7.784172,
- "heading": 242.1,
- "url": "https://commons.wikimedia.org/wiki/File%3AKlein_Matterhorn_mit_Wolken_an_Theodulhorn_und_Furgghorn_%C3%BCber_dem_Oberen_Theodulgletscher-_a_view_from_Gornergrat_2021_02_%28cropped%29.jpg"
- },
- {
- "title": "File:Breithorn and neighbours from Gornergrat 2021 02.jpg",
- "lat": 45.983139,
- "lon": 7.784172,
- "heading": 242.1,
- "url": "https://commons.wikimedia.org/wiki/File%3ABreithorn_and_neighbours_from_Gornergrat_2021_02.jpg"
- }
- ],
- "exif_headings": [
- {
- "title": "File:Gornergrat-04.jpg",
- "heading": 256.0
- },
- {
- "title": "File:Gornergrat-03.jpg",
- "heading": 245.8
- },
- {
- "title": "File:Gornergrat-07.jpg",
- "heading": 250.2
- },
- {
- "title": "File:Gornergratsee 2021 10.jpg",
- "heading": 243.4
- },
- {
- "title": "File:Early morning Eiger.jpg",
- "heading": 254.7
- },
- {
- "title": "File:Klein Matterhorn mit Wolken an Theodulhorn und Furgghorn \u00fcber dem Oberen Theodulgletscher- a view from Gornergrat 2021 02 (cropped).jpg",
- "heading": 242.1
- },
- {
- "title": "File:Breithorn and neighbours from Gornergrat 2021 02.jpg",
- "heading": 242.1
- }
- ],
- "n_with_exif_heading": 7,
- "summit_dem_m": 4324.9,
- "summit_nominal": [
- 45.97639,
- 7.65833
- ]
- },
- "card_split_km": [
- 18,
- 28,
- 43
- ]
- },
- {
- "id": "fuji",
- "tz": "Asia/Tokyo",
- "name": "Fuji from Shiraito Falls",
- "kind": "lone cone, smooth",
- "lat": 35.312467222222494,
- "lon": 138.587223194445,
- "eye_h_m": 1.6,
- "look_at": [
- 35.36061,
- 138.72731
- ],
- "rmax_km": 60,
- "initial_guess_not_used": {
- "lat": 35.4994,
- "lon": 138.7686
- },
- "viewpoint_source": {
- "status": "sourced",
- "source": "Wikimedia Commons geosearch (namespace 6), geotagged photos",
- "query": "geosearch ns=6 gslimit=500 gsradius=10000 around 25 centres (peak + 3 rings x 8 bearings, radii 9000-30000 m), then EXIF GPSImgDirection of every file in range via prop=imageinfo&iiprop=commonmetadata",
- "files_found": 6494,
- "in_range": 4280,
- "with_exif_heading": 588,
- "facing_the_peak": 132,
- "pool": "photos whose camera heading is within 30 deg of the bearing to the summit",
- "rule": "densest 1 km cell of photos 8000-30000 m from the summit whose EXIF camera heading faces the summit (within 30 deg) with the summit visible on the DEM (straight line, first 250 m ignored, 8 m clutter allowed); viewpoint = median coordinate of the cell",
- "median_camera_heading_deg": 64.4,
- "photos_in_cell": 8,
- "cells_tried": [
- {
- "n_facing": 15,
- "lat": 35.36248,
- "lon": 138.86287,
- "peak_visible": false
- },
- {
- "n_facing": 8,
- "lat": 35.31247,
- "lon": 138.58722,
- "peak_visible": true
- }
- ],
- "distance_to_peak_m": 13808,
- "bearing_to_peak_deg": 67.2,
- "dem_ground_m": 486.9,
- "eye_height_rule": "DEM ground at the viewpoint + 1.6 m (the source gives no eye height)",
- "sample_files": [
- {
- "title": "File:\u5bcc\u58eb\u5c71\uff08\u3075\u3058\u3055\u3093\u3001\u82f1\u8a9e\uff1aMount Fuji\uff09 03.JPG",
- "lat": 35.31114,
- "lon": 138.5886,
- "heading": 48.0,
- "url": "https://commons.wikimedia.org/wiki/File%3A%E5%AF%8C%E5%A3%AB%E5%B1%B1%EF%BC%88%E3%81%B5%E3%81%98%E3%81%95%E3%82%93%E3%80%81%E8%8B%B1%E8%AA%9E%EF%BC%9AMount_Fuji%EF%BC%89_03.JPG"
- },
- {
- "title": "File:Mount Fuji, view from Shiraito no Taki.jpg",
- "lat": 35.313589,
- "lon": 138.588394,
- "heading": 68.8,
- "url": "https://commons.wikimedia.org/wiki/File%3AMount_Fuji%2C_view_from_Shiraito_no_Taki.jpg"
- },
- {
- "title": "File:\u5bcc\u58eb\u5c71\uff08\u3075\u3058\u3055\u3093\u3001\u82f1\u8a9e\uff1aMount Fuji\uff09 02.JPG",
- "lat": 35.313248055556,
- "lon": 138.58760805556,
- "heading": 64.2,
- "url": "https://commons.wikimedia.org/wiki/File%3A%E5%AF%8C%E5%A3%AB%E5%B1%B1%EF%BC%88%E3%81%B5%E3%81%98%E3%81%95%E3%82%93%E3%80%81%E8%8B%B1%E8%AA%9E%EF%BC%9AMount_Fuji%EF%BC%89_02.JPG"
- },
- {
- "title": "File:\u5bcc\u58eb\u5c71\uff08\u3075\u3058\u3055\u3093\u3001\u82f1\u8a9e\uff1aMount Fuji\uff09 07.JPG",
- "lat": 35.312428055556,
- "lon": 138.58723138889,
- "heading": 88.8,
- "url": "https://commons.wikimedia.org/wiki/File%3A%E5%AF%8C%E5%A3%AB%E5%B1%B1%EF%BC%88%E3%81%B5%E3%81%98%E3%81%95%E3%82%93%E3%80%81%E8%8B%B1%E8%AA%9E%EF%BC%9AMount_Fuji%EF%BC%89_07.JPG"
- },
- {
- "title": "File:\u5bcc\u58eb\u5c71\uff08\u3075\u3058\u3055\u3093\u3001\u82f1\u8a9e\uff1aMount Fuji\uff09 08.JPG",
- "lat": 35.312418055556,
- "lon": 138.587215,
- "heading": 64.0,
- "url": "https://commons.wikimedia.org/wiki/File%3A%E5%AF%8C%E5%A3%AB%E5%B1%B1%EF%BC%88%E3%81%B5%E3%81%98%E3%81%95%E3%82%93%E3%80%81%E8%8B%B1%E8%AA%9E%EF%BC%9AMount_Fuji%EF%BC%89_08.JPG"
- },
- {
- "title": "File:\u5bcc\u58eb\u5c71\uff08\u3075\u3058\u3055\u3093\u3001\u82f1\u8a9e\uff1aMount Fuji\uff09 04.JPG",
- "lat": 35.312478055556,
- "lon": 138.58717805556,
- "heading": 62.2,
- "url": "https://commons.wikimedia.org/wiki/File%3A%E5%AF%8C%E5%A3%AB%E5%B1%B1%EF%BC%88%E3%81%B5%E3%81%98%E3%81%95%E3%82%93%E3%80%81%E8%8B%B1%E8%AA%9E%EF%BC%9AMount_Fuji%EF%BC%89_04.JPG"
- },
- {
- "title": "File:\u5bcc\u58eb\u5c71\uff08\u3075\u3058\u3055\u3093\u3001\u82f1\u8a9e\uff1aMount Fuji\uff09 06.JPG",
- "lat": 35.312456388889,
- "lon": 138.58715805556,
- "heading": 65.2,
- "url": "https://commons.wikimedia.org/wiki/File%3A%E5%AF%8C%E5%A3%AB%E5%B1%B1%EF%BC%88%E3%81%B5%E3%81%98%E3%81%95%E3%82%93%E3%80%81%E8%8B%B1%E8%AA%9E%EF%BC%9AMount_Fuji%EF%BC%89_06.JPG"
- },
- {
- "title": "File:\u5bcc\u58eb\u5c71\uff08\u3075\u3058\u3055\u3093\u3001\u82f1\u8a9e\uff1aMount Fuji\uff09 05.JPG",
- "lat": 35.312479722222,
- "lon": 138.58714138889,
- "heading": 64.5,
- "url": "https://commons.wikimedia.org/wiki/File%3A%E5%AF%8C%E5%A3%AB%E5%B1%B1%EF%BC%88%E3%81%B5%E3%81%98%E3%81%95%E3%82%93%E3%80%81%E8%8B%B1%E8%AA%9E%EF%BC%9AMount_Fuji%EF%BC%89_05.JPG"
- }
- ],
- "exif_headings": [
- {
- "title": "File:\u5bcc\u58eb\u5c71\uff08\u3075\u3058\u3055\u3093\u3001\u82f1\u8a9e\uff1aMount Fuji\uff09 03.JPG",
- "heading": 48.0
- },
- {
- "title": "File:Mount Fuji, view from Shiraito no Taki.jpg",
- "heading": 68.8
- },
- {
- "title": "File:\u5bcc\u58eb\u5c71\uff08\u3075\u3058\u3055\u3093\u3001\u82f1\u8a9e\uff1aMount Fuji\uff09 02.JPG",
- "heading": 64.2
- },
- {
- "title": "File:\u5bcc\u58eb\u5c71\uff08\u3075\u3058\u3055\u3093\u3001\u82f1\u8a9e\uff1aMount Fuji\uff09 07.JPG",
- "heading": 88.8
- },
- {
- "title": "File:\u5bcc\u58eb\u5c71\uff08\u3075\u3058\u3055\u3093\u3001\u82f1\u8a9e\uff1aMount Fuji\uff09 08.JPG",
- "heading": 64.0
- },
- {
- "title": "File:\u5bcc\u58eb\u5c71\uff08\u3075\u3058\u3055\u3093\u3001\u82f1\u8a9e\uff1aMount Fuji\uff09 04.JPG",
- "heading": 62.2
- },
- {
- "title": "File:\u5bcc\u58eb\u5c71\uff08\u3075\u3058\u3055\u3093\u3001\u82f1\u8a9e\uff1aMount Fuji\uff09 06.JPG",
- "heading": 65.2
- },
- {
- "title": "File:\u5bcc\u58eb\u5c71\uff08\u3075\u3058\u3055\u3093\u3001\u82f1\u8a9e\uff1aMount Fuji\uff09 05.JPG",
- "heading": 64.5
- }
- ],
- "n_with_exif_heading": 8,
- "summit_dem_m": 3765.5,
- "summit_nominal": [
- 35.36061,
- 138.72731
- ]
- },
- "card_split_km": [
- 1.5,
- 16
- ]
- },
- {
- "id": "halfdome",
- "tz": "America/Los_Angeles",
- "name": "Half Dome from the Yosemite Valley floor (Sentinel Bridge photo cell)",
- "kind": "granite wall across a valley",
- "lat": 37.745833333333,
- "lon": -119.592606,
- "eye_h_m": 1.6,
- "look_at": [
- 37.74435,
- -119.53426
- ],
- "rmax_km": 40,
- "initial_guess_not_used": {
- "lat": 37.7305,
- "lon": -119.5734
- },
- "viewpoint_source": {
- "status": "sourced",
- "source": "Wikimedia Commons geosearch (namespace 6), geotagged photos",
- "query": "geosearch ns=6 gslimit=500 gsradius=10000 around 25 centres (peak + 3 rings x 8 bearings, radii 2700-9000 m), then EXIF GPSImgDirection of every file in range via prop=imageinfo&iiprop=commonmetadata",
- "files_found": 2505,
- "in_range": 1788,
- "with_exif_heading": 181,
- "facing_the_peak": 64,
- "pool": "photos whose camera heading is within 30 deg of the bearing to the summit",
- "rule": "densest 1 km cell of photos 2000-9000 m from the summit whose EXIF camera heading faces the summit (within 30 deg) with the summit visible on the DEM (straight line, first 250 m ignored, 8 m clutter allowed); viewpoint = median coordinate of the cell",
- "median_camera_heading_deg": 91.6,
- "photos_in_cell": 9,
- "cells_tried": [
- {
- "n_facing": 9,
- "lat": 37.73853,
- "lon": -119.57124,
- "peak_visible": false
- },
- {
- "n_facing": 9,
- "lat": 37.74583,
- "lon": -119.59261,
- "peak_visible": true
- }
- ],
- "distance_to_peak_m": 5138,
- "bearing_to_peak_deg": 91.8,
- "dem_ground_m": 1209.2,
- "eye_height_rule": "DEM ground at the viewpoint + 1.6 m (the source gives no eye height)",
- "sample_files": [
- {
- "title": "File:Yosemite National Park - 51700634719.jpg",
- "lat": 37.746606,
- "lon": -119.590317,
- "heading": 87.0,
- "url": "https://commons.wikimedia.org/wiki/File%3AYosemite_National_Park_-_51700634719.jpg"
- },
- {
- "title": "File:Half Dome, Yosemite National Park - 53324601178.jpg",
- "lat": 37.748264,
- "lon": -119.592606,
- "heading": 98.8,
- "url": "https://commons.wikimedia.org/wiki/File%3AHalf_Dome%2C_Yosemite_National_Park_-_53324601178.jpg"
- },
- {
- "title": "File:Half Dome, Yosemite National Park - 53324824955.jpg",
- "lat": 37.748322,
- "lon": -119.592736,
- "heading": 90.1,
- "url": "https://commons.wikimedia.org/wiki/File%3AHalf_Dome%2C_Yosemite_National_Park_-_53324824955.jpg"
- },
- {
- "title": "File:2013-09-19 18 35 25 Half Dome and the Merced River in Yosemite National Park.JPG",
- "lat": 37.7435,
- "lon": -119.58966666667,
- "heading": 91.6,
- "url": "https://commons.wikimedia.org/wiki/File%3A2013-09-19_18_35_25_Half_Dome_and_the_Merced_River_in_Yosemite_National_Park.JPG"
- },
- {
- "title": "File:Half Dome from the Yosemite Valley floor in mid-Spring.jpeg",
- "lat": 37.745833333333,
- "lon": -119.59233333333,
- "heading": 92.0,
- "url": "https://commons.wikimedia.org/wiki/File%3AHalf_Dome_from_the_Yosemite_Valley_floor_in_mid-Spring.jpeg"
- },
- {
- "title": "File:Sentinel Bridge & Half Dome.jpg",
- "lat": 37.743419,
- "lon": -119.590562,
- "heading": 86.8,
- "url": "https://commons.wikimedia.org/wiki/File%3ASentinel_Bridge_%26_Half_Dome.jpg"
- },
- {
- "title": "File:Half Dome pre Super moon 2.jpg",
- "lat": 37.745769,
- "lon": -119.592972,
- "heading": 106.5,
- "url": "https://commons.wikimedia.org/wiki/File%3AHalf_Dome_pre_Super_moon_2.jpg"
- },
- {
- "title": "File:Half Dome pre Super moon.jpg",
- "lat": 37.745747,
- "lon": -119.593033,
- "heading": 97.1,
- "url": "https://commons.wikimedia.org/wiki/File%3AHalf_Dome_pre_Super_moon.jpg"
- },
- {
- "title": "File:Yosemite National Park 003.jpg",
- "lat": 37.750814,
- "lon": -119.598664,
- "heading": 80.1,
- "url": "https://commons.wikimedia.org/wiki/File%3AYosemite_National_Park_003.jpg"
- }
- ],
- "exif_headings": [
- {
- "title": "File:Yosemite National Park - 51700634719.jpg",
- "heading": 87.0
- },
- {
- "title": "File:Half Dome, Yosemite National Park - 53324601178.jpg",
- "heading": 98.8
- },
- {
- "title": "File:Half Dome, Yosemite National Park - 53324824955.jpg",
- "heading": 90.1
- },
- {
- "title": "File:2013-09-19 18 35 25 Half Dome and the Merced River in Yosemite National Park.JPG",
- "heading": 91.6
- },
- {
- "title": "File:Half Dome from the Yosemite Valley floor in mid-Spring.jpeg",
- "heading": 92.0
- },
- {
- "title": "File:Sentinel Bridge & Half Dome.jpg",
- "heading": 86.8
- },
- {
- "title": "File:Half Dome pre Super moon 2.jpg",
- "heading": 106.5
- },
- {
- "title": "File:Half Dome pre Super moon.jpg",
- "heading": 97.1
- },
- {
- "title": "File:Yosemite National Park 003.jpg",
- "heading": 80.1
- }
- ],
- "n_with_exif_heading": 9,
- "summit_dem_m": 2669.1,
- "summit_nominal": [
- 37.74597,
- -119.5329
- ]
- }
- },
- {
- "id": "amadablam",
- "tz": "Asia/Kathmandu",
- "name": "Ama Dablam and Everest from Khumjung",
- "kind": "far high range behind a near spire",
- "lat": 27.822000000000003,
- "lon": 86.722666666667,
- "eye_h_m": 1.6,
- "look_at": [
- 27.8617,
- 86.86079
- ],
- "rmax_km": 60,
- "initial_guess_not_used": {
- "lat": 27.8369,
- "lon": 86.7643
- },
- "viewpoint_source": {
- "status": "sourced",
- "source": "Wikimedia Commons geosearch (namespace 6), geotagged photos",
- "query": "geosearch ns=6 gslimit=500 gsradius=10000 around 25 centres (peak + 3 rings x 8 bearings, radii 4800-16000 m), then EXIF GPSImgDirection of every file in range via prop=imageinfo&iiprop=commonmetadata",
- "files_found": 1398,
- "in_range": 1143,
- "with_exif_heading": 54,
- "facing_the_peak": 13,
- "pool": "photos whose camera heading is within 30 deg of the bearing to the summit",
- "rule": "densest 1 km cell of photos 4000-16000 m from the summit whose EXIF camera heading faces the summit (within 30 deg) with the summit visible on the DEM (straight line, first 250 m ignored, 8 m clutter allowed); viewpoint = median coordinate of the cell",
- "median_camera_heading_deg": 79.6,
- "photos_in_cell": 2,
- "cells_tried": [
- {
- "n_facing": 2,
- "lat": 27.822,
- "lon": 86.72267,
- "peak_visible": true
- }
- ],
- "distance_to_peak_m": 14299,
- "bearing_to_peak_deg": 72.0,
- "dem_ground_m": 3782.0,
- "eye_height_rule": "DEM ground at the viewpoint + 1.6 m (the source gives no eye height)",
- "sample_files": [
- {
- "title": "File:Thamserku (6).JPG",
- "lat": 27.822666666667,
- "lon": 86.722666666667,
- "heading": 73.6,
- "url": "https://commons.wikimedia.org/wiki/File%3AThamserku_%286%29.JPG"
- },
- {
- "title": "File:Thamserku (7).JPG",
- "lat": 27.821333333333,
- "lon": 86.722666666667,
- "heading": 85.7,
- "url": "https://commons.wikimedia.org/wiki/File%3AThamserku_%287%29.JPG"
- }
- ],
- "exif_headings": [
- {
- "title": "File:Thamserku (6).JPG",
- "heading": 73.6
- },
- {
- "title": "File:Thamserku (7).JPG",
- "heading": 85.7
- }
- ],
- "n_with_exif_heading": 2,
- "summit_dem_m": 6659.6,
- "summit_nominal": [
- 27.8617,
- 86.8614
- ]
- },
- "card_split_km": [
- 2,
- 18,
- 34
- ]
- },
- {
- "id": "trecime",
- "tz": "Europe/Rome",
- "name": "Tre Cime di Lavaredo from the Dreizinnenhuette area, 2.4 km N (photo cell)",
- "kind": "cirque wall, spires",
- "lat": 46.636906,
- "lon": 12.310064,
- "eye_h_m": 1.6,
- "look_at": [
- 46.61806,
- 12.29583
- ],
- "rmax_km": 40,
- "initial_guess_not_used": {
- "lat": 46.5833,
- "lon": 12.2536
- },
- "viewpoint_source": {
- "status": "sourced",
- "source": "Wikimedia Commons geosearch (namespace 6), geotagged photos",
- "query": "geosearch ns=6 gslimit=500 gsradius=10000 around 25 centres (peak + 3 rings x 8 bearings, radii 3000-10000 m), then EXIF GPSImgDirection of every file in range via prop=imageinfo&iiprop=commonmetadata",
- "files_found": 2028,
- "in_range": 763,
- "with_exif_heading": 207,
- "facing_the_peak": 33,
- "pool": "photos whose camera heading is within 30 deg of the bearing to the summit",
- "rule": "densest 1 km cell of photos 1500-10000 m from the summit whose EXIF camera heading faces the summit (within 30 deg) with the summit visible on the DEM (straight line, first 250 m ignored, 8 m clutter allowed); viewpoint = median coordinate of the cell",
- "median_camera_heading_deg": 194.6,
- "photos_in_cell": 5,
- "cells_tried": [
- {
- "n_facing": 5,
- "lat": 46.63691,
- "lon": 12.31006,
- "peak_visible": true
- }
- ],
- "distance_to_peak_m": 2363,
- "bearing_to_peak_deg": 207.4,
- "dem_ground_m": 2403.0,
- "eye_height_rule": "DEM ground at the viewpoint + 1.6 m (the source gives no eye height)",
- "sample_files": [
- {
- "title": "File:Cime e Nuvole.jpg",
- "lat": 46.63605,
- "lon": 12.310064,
- "heading": 200.3,
- "url": "https://commons.wikimedia.org/wiki/File%3ACime_e_Nuvole.jpg"
- },
- {
- "title": "File:DreiZinnenP.jpg",
- "lat": 46.636770555556,
- "lon": 12.310305555556,
- "heading": 180.1,
- "url": "https://commons.wikimedia.org/wiki/File%3ADreiZinnenP.jpg"
- },
- {
- "title": "File:Soffio di sguardo.jpg",
- "lat": 46.636906,
- "lon": 12.311142,
- "heading": 194.6,
- "url": "https://commons.wikimedia.org/wiki/File%3ASoffio_di_sguardo.jpg"
- },
- {
- "title": "File:2405-DreizinnenH.jpg",
- "lat": 46.637782777778,
- "lon": 12.309966388889,
- "heading": 178.4,
- "url": "https://commons.wikimedia.org/wiki/File%3A2405-DreizinnenH.jpg"
- },
- {
- "title": "File:Dolomiten-Fingerkraut in den Sextener Dolomiten - N\u00e4he Drei-Zinnen-H\u00fctte (9801216636).jpg",
- "lat": 46.642352,
- "lon": 12.30829,
- "heading": 200.0,
- "url": "https://commons.wikimedia.org/wiki/File%3ADolomiten-Fingerkraut_in_den_Sextener_Dolomiten_-_N%C3%A4he_Drei-Zinnen-H%C3%BCtte_%289801216636%29.jpg"
- }
- ],
- "exif_headings": [
- {
- "title": "File:Cime e Nuvole.jpg",
- "heading": 200.3
- },
- {
- "title": "File:DreiZinnenP.jpg",
- "heading": 180.1
- },
- {
- "title": "File:Soffio di sguardo.jpg",
- "heading": 194.6
- },
- {
- "title": "File:2405-DreizinnenH.jpg",
- "heading": 178.4
- },
- {
- "title": "File:Dolomiten-Fingerkraut in den Sextener Dolomiten - N\u00e4he Drei-Zinnen-H\u00fctte (9801216636).jpg",
- "heading": 200.0
- }
- ],
- "n_with_exif_heading": 5,
- "summit_dem_m": 2746.9,
- "summit_nominal": [
- 46.6186,
- 12.3025
- ]
- }
- },
- {
- "id": "grandcanyon",
- "tz": "America/Phoenix",
- "name": "Grand Canyon from Unkar and Cardenas",
- "kind": "inner canyon from the river: walls rise above the horizon, layered strata",
- "material": "canyon",
- "lat": 36.0817,
- "lon": -111.8551,
- "eye_h_m": 1.6,
- "az_deg": 290,
- "rmax_km": 30,
- "card_split_km": [
- 11.5,
- 17.3,
- 28.2
- ],
- "viewpoint_source": {
- "status": "chosen from three scanned river candidates (Nankoweap, Unkar/Cardenas, Phantom Ranch) by the operator, ruling ridge-grandcanyon-spot-unkar; the camera stands by the Colorado River inside the canyon (ruling ridge-grandcanyon-camera-inside); the preset is the cand-unkar preset of the candidate bakes (36.0817, -111.8551, az 290), whose camera_r_m -100 is not a field of the ring baker"
- }
- }
- ]
-}
\ No newline at end of file
diff --git a/scripts/ridge-bake/refusal.py b/scripts/ridge-bake/refusal.py
deleted file mode 100644
index 213d8369..00000000
--- a/scripts/ridge-bake/refusal.py
+++ /dev/null
@@ -1,2 +0,0 @@
-"""The baker's refusal: raised wherever ridge.py or export.py declines a preset, a view or a bake. The fixtures catch this class only, so an exception from numpy or the standard library reaching them is a crash (mutate.py: CRASHED), never a kill."""
-class Refusal(ValueError): pass
diff --git a/scripts/ridge-bake/ridge-bake.schema.json b/scripts/ridge-bake/ridge-bake.schema.json
deleted file mode 100644
index 3f7f9b41..00000000
--- a/scripts/ridge-bake/ridge-bake.schema.json
+++ /dev/null
@@ -1,327 +0,0 @@
-{
- "$schema": "https://json-schema.org/draft/2020-12/schema",
- "title": "ridge-bake manifest v3 and index v1",
- "$defs": {
- "manifest": {
- "type": "object",
- "required": [
- "schema",
- "baker_version",
- "bake_id",
- "place",
- "view",
- "curvature",
- "encoding",
- "camera",
- "cards",
- "tiles",
- "bytes",
- "attribution"
- ],
- "additionalProperties": false,
- "properties": {
- "schema": {
- "const": 3
- },
- "baker_version": {
- "type": "integer"
- },
- "bake_id": {
- "type": "string"
- },
- "place": {
- "type": "object",
- "required": [
- "id",
- "name",
- "lat",
- "lon",
- "altitude_km",
- "eye_m",
- "tz"
- ],
- "additionalProperties": false,
- "properties": {
- "id": {
- "type": "string"
- },
- "name": {
- "type": "string"
- },
- "lat": {
- "type": "number"
- },
- "lon": {
- "type": "number"
- },
- "altitude_km": {
- "type": "number"
- },
- "eye_m": {
- "type": "number"
- },
- "tz": {
- "type": "string",
- "format": "iana-tz"
- }
- }
- },
- "view": {
- "type": "object",
- "required": [
- "look_az_deg",
- "ring_w",
- "tile_w",
- "tiles",
- "apron",
- "plane_h",
- "px_per_deg_h",
- "px_per_deg_v",
- "exaggeration",
- "horizon_row",
- "sky_row",
- "near_row"
- ],
- "additionalProperties": false,
- "properties": {
- "look_az_deg": {
- "type": "number"
- },
- "ring_w": {
- "const": 6400
- },
- "tile_w": {
- "const": 200
- },
- "tiles": {
- "const": 32
- },
- "apron": {
- "const": 2
- },
- "plane_h": {
- "type": "integer"
- },
- "px_per_deg_h": {
- "type": "number"
- },
- "px_per_deg_v": {
- "type": "number"
- },
- "exaggeration": {
- "type": "number"
- },
- "horizon_row": {
- "type": "number"
- },
- "sky_row": {
- "type": "number"
- },
- "near_row": {
- "type": "number"
- }
- }
- },
- "curvature": {
- "type": "object",
- "required": [
- "r_earth_m",
- "k_ref"
- ],
- "additionalProperties": false,
- "properties": {
- "r_earth_m": {
- "type": "number"
- },
- "k_ref": {
- "type": "number"
- }
- }
- },
- "encoding": {
- "type": "object",
- "required": [
- "log_d_min",
- "log_d_max",
- "normal"
- ],
- "additionalProperties": false,
- "properties": {
- "log_d_min": {
- "type": "number"
- },
- "log_d_max": {
- "type": "number"
- },
- "normal": {
- "const": "rt8"
- }
- }
- },
- "camera": {
- "type": "object",
- "required": [
- "r_max_m",
- "r_max_forward_m"
- ],
- "additionalProperties": false,
- "properties": {
- "r_max_m": {
- "type": "number"
- },
- "r_max_forward_m": {
- "type": "number"
- }
- },
- "description": "r_max_m (every camera angle on its circle) and r_max_forward_m (the camera on its heading) are the offsets up to which the linear slide holds (the fit error at most FIT_PX_MAX card px) for the NEAREST solid terrain (at or beyond the near clip, ridge.NEAR_CLIP_M, 500 m) that each card draws in each tile, not for the tile's median distance_m; a tile whose card 0 draws only near ground (under the clip) is slid at the clip distance (its distance_m) and binds at 500 m. The ground under the clip is drawn by card 0 from the near march and is otherwise not measured."
- },
- "cards": {
- "type": "array",
- "minItems": 1,
- "maxItems": 6,
- "items": {
- "type": "object",
- "required": [
- "near_m",
- "far_m"
- ],
- "additionalProperties": false,
- "properties": {
- "near_m": {
- "type": [
- "number",
- "null"
- ]
- },
- "far_m": {
- "type": [
- "number",
- "null"
- ]
- }
- }
- },
- "description": "nearest first; the runtime paints the list last to first. near_m and far_m are the median seam depths over the ring, null at the ends."
- },
- "tiles": {
- "type": "array",
- "minItems": 32,
- "maxItems": 32,
- "items": {
- "type": "array",
- "minItems": 1,
- "maxItems": 6,
- "items": {
- "type": [
- "object",
- "null"
- ],
- "required": [
- "top",
- "h",
- "distance_m",
- "colour",
- "geometry"
- ],
- "additionalProperties": false,
- "properties": {
- "top": {
- "type": "integer"
- },
- "h": {
- "type": "integer"
- },
- "distance_m": {
- "type": "number"
- },
- "colour": {
- "type": "object",
- "required": [
- "file",
- "bytes"
- ],
- "additionalProperties": false,
- "properties": {
- "file": {
- "type": "string"
- },
- "bytes": {
- "type": "integer"
- }
- }
- },
- "geometry": {
- "type": "object",
- "required": [
- "file",
- "bytes"
- ],
- "additionalProperties": false,
- "properties": {
- "file": {
- "type": "string"
- },
- "bytes": {
- "type": "integer"
- }
- }
- }
- }
- }
- },
- "description": "tiles[t][i] is card i in tile t, or null where the card holds nothing in that tile (the client takes its distance from the neighbouring tiles). Tile t owns the ring columns [tile_w t, tile_w (t + 1)), column c at azimuth (c + 0.5) / ring_w x 360, 0 = north; its files hold [tile_w t - apron, tile_w (t + 1) + apron), wrapping at the ring's end, and are tile_w + 2 apron columns wide. top and h place the card's band back at its rows of the frame; distance_m = exp(median ln d) of the card's solid pixels in the tile that are neither wall nor near ground, under the near clip (the interior tile_w columns); a tile whose card draws only near ground gets the clip distance."
- },
- "bytes": {
- "type": "integer"
- },
- "attribution": {
- "type": "object",
- "required": [
- "credit_line",
- "licence",
- "dem_source",
- "url"
- ],
- "additionalProperties": false,
- "properties": {
- "credit_line": {
- "type": "string"
- },
- "licence": {
- "type": "string"
- },
- "dem_source": {
- "type": "string"
- },
- "url": {
- "type": "string"
- }
- }
- }
- }
- },
- "index": {
- "type": "object",
- "required": [
- "schema",
- "default",
- "places"
- ],
- "additionalProperties": false,
- "properties": {
- "schema": {
- "const": 1
- },
- "default": {
- "type": "string"
- },
- "places": {
- "type": "object",
- "additionalProperties": {
- "type": "string"
- }
- }
- }
- }
- }
-}
diff --git a/scripts/ridge-bake/ridge.py b/scripts/ridge-bake/ridge.py
deleted file mode 100644
index 46b82662..00000000
--- a/scripts/ridge-bake/ridge.py
+++ /dev/null
@@ -1,305 +0,0 @@
-"""Ridge baker: the ray march of a place, cut into K+1 layered-depth G-buffer cards by K authored seams (places.json), no painter, no sun.
-Offline baker for the ridge backdrop (scripts/ridge-bake); export.py drives it.
-
- load_preset(id) -> configure() : observer, tiles, mosaic origin, ring radius, rest azimuth, card splits and prefilter from places.json
- stage0(detail) : ray march of all 6400 azimuth columns (curvature+refraction), optional authored sub-DEM foreground detail, cached
- prefilter(d, h, sigma_m) : Gaussian low-pass of the sampled heights (along each ray, across rays at equal distance), angles recomputed with elev
- set_view(skyline) : authored Y mapping from the march skyline of the whole ring: angle -> row, see set_view
- ring_cols(a, c0, n) : n columns of the ring from column c0, periodic (the tile cut)
- coverage(d, a) / seams(cov, ..) : visible rows per log-distance bin; one forward-energy seam per authored split, per column, periodic round the ring
- normals(d, h) / cards(...) : per-sample normals; the K+1 cards (coverage, distance, normal, albedo), each cropped to its band of rows
-Vertical exaggeration is AUTHORED and derived per view by set_view (printed on the page). The client owns lighting, haze and ink (ruling ridge-cards-runtime-lit)."""
-import sys, time, math, json
-import os, hashlib
-from zoneinfo import ZoneInfo, ZoneInfoNotFoundError
-from pathlib import Path
-sys.path.insert(0, str(Path(__file__).resolve().parent))
-from refusal import Refusal
-import numpy as np, tifffile
-
-def _env_dir(name, what):
- v = os.environ.get(name)
- if not v: raise RuntimeError(f"{name} is not set: it must name {what} (no default location is assumed)")
- return Path(v)
-B = _env_dir('RIDGE_WORK', 'the work directory (the mosaic / ray caches)')
-COP = _env_dir('RIDGE_TILES', 'the directory of Copernicus GLO-30 tiles (Copernicus_DSM_COG_10_*_DEM.tif)')
-W = 6400 # ring columns: 360 deg at 17.78 px/deg
-HPX_DEG = W / 360.0
-H = 600 # frame rows
-COLW = math.radians(360.0 / W)
-R_EARTH, KREF = 6371000.0, 0.13
-
-P = {} # configured preset
-rowang = np.zeros(H); PXDEG_V = 100.0; TOP_DEG = 2.6; BOTTOM_DEG = -3.4
-
-def load_preset(pid, path=Path(__file__).resolve().parent / 'places.json'):
- """The preset dict. tz is required, an IANA zone the system knows (the runtime draws named sky moments in the place's local day). card_split_km is the ordered list of authored seam depths (km): required, strictly increasing, at most export.MAX_CARDS - 1 (the cap is export's, which owns the budget); refused here, before any march."""
- d = json.load(open(path)); p = dict(next(x for x in d['presets'] if x['id'] == pid)); sp = p.get('card_split_km')
- from export import MAX_CARDS
- if not sp: raise Refusal(f"preset {pid}: card_split_km is required (an ordered list of 1 to {MAX_CARDS - 1} depths in km)")
- if len(sp) > MAX_CARDS - 1 or any(b <= a for a, b in zip(sp, sp[1:])): raise Refusal(f"preset {pid}: card_split_km {sp} must be strictly increasing with at most {MAX_CARDS - 1} entries")
- tz = p.get('tz')
- if not isinstance(tz, str) or not tz: raise Refusal(f"preset {pid}: tz is required (an IANA time zone name such as Europe/Vienna)")
- try: ZoneInfo(tz)
- except (ZoneInfoNotFoundError, ValueError, OSError): raise Refusal(f"preset {pid}: tz {tz!r} is not a time zone the system knows")
- return p
-
-# ====================================================================== configuration, DEM
-def tiles_for(p):
- lat, lon, r = p['lat'], p['lon'], p['rmax_km']; dl = r / 111.32; dn = r / (111.32 * math.cos(math.radians(lat))); out = []
- for la in range(math.floor(lat - dl), math.floor(lat + dl) + 1):
- for lo in range(math.floor(lon - dn), math.floor(lon + dn) + 1):
- cy = min(max(lat, la), la + 1); cx = min(max(lon, lo), lo + 1)
- if math.hypot((cy - lat) * 111.32, (cx - lon) * 111.32 * math.cos(math.radians(lat))) <= r: out.append((la, lo))
- return out
-def tile_path(la, lo): return COP / f"Copernicus_DSM_COG_10_{'N' if la >= 0 else 'S'}{abs(la):02d}_00_{'E' if lo >= 0 else 'W'}{abs(lo):03d}_00_DEM.tif"
-
-def cache_key(*parts):
- """Short digest of everything a cached array was computed from. A cache file is read only under the key of its own inputs, so a changed preset field, tile list or baker constant never meets a stale file."""
- h = hashlib.sha256()
- for q in parts: h.update(q.tobytes() if isinstance(q, np.ndarray) else repr(q).encode()); h.update(b'|')
- return h.hexdigest()[:12]
-def mosaic_key(p): return cache_key('mosaic.v1', sorted(tiles_for(p)), 3600)
-
-_mos = {}
-def mosaic(p):
- """Tile grid covering the circle (bounding rows/cols), cached as .npy per preset. Missing tiles (open sea has no GLO-30 tile) are zero."""
- key = (p['id'], mosaic_key(p))
- if key in _mos: return _mos[key]
- ts = tiles_for(p); las = [t[0] for t in ts]; los = [t[1] for t in ts]; lat_top = max(las) + 1; lon_left = min(los)
- c = B / f"mosaic-{p['id']}-{key[1]}.npy"
- if c.exists(): m = np.load(c, mmap_mode='r')
- else:
- rows = []
- for la in range(max(las), min(las) - 1, -1):
- rows.append(np.concatenate([tifffile.imread(tile_path(la, lo)) if tile_path(la, lo).exists() else np.zeros((3600, 3600), np.float32) for lo in range(min(los), max(los) + 1)], axis=1))
- m = np.concatenate(rows, axis=0).astype(np.float32); np.save(c, m)
- _mos[key] = (m, lat_top, lon_left); return _mos[key]
-
-def bil(a, lat_top, lon_left, lat, lon):
- y = (lat_top - lat) * 3600 - 0.5; x = (lon - lon_left) * 3600 - 0.5
- y0 = np.clip(np.floor(y).astype(int), 0, a.shape[0] - 2); x0 = np.clip(np.floor(x).astype(int), 0, a.shape[1] - 2)
- fy = np.clip(y - y0, 0, 1); fx = np.clip(x - x0, 0, 1)
- return (a[y0, x0] * (1 - fx) * (1 - fy) + a[y0, x0 + 1] * fx * (1 - fy) + a[y0 + 1, x0] * (1 - fx) * fy + a[y0 + 1, x0 + 1] * fx * fy)
-
-def configure(p):
- """Set the module state for a preset: observer, eye elevation (DEM ground + eye height, or ground_override), rest azimuth (az_center: where the view looks at rest; the ring itself is absolute compass, column 0 = north)."""
- global P
- P = p; m, lt, ll = mosaic(p)
- ground = p['ground_override_m'] if 'ground_override_m' in p else float(bil(m, lt, ll, np.array(p['lat']), np.array(p['lon'])))
- P['ground_m'] = ground; P['eye_m'] = ground + p['eye_h_m']
- if 'look_at' in p:
- la, lo = p['look_at']; P['az_center'] = (math.degrees(math.atan2((lo - p['lon']) * math.cos(math.radians(p['lat'])), la - p['lat'])) + 360) % 360
- else: P['az_center'] = p['az_deg']
- return P
-
-def ring_cols(a, c0, n):
- """n columns of the ring array a (last axis W) from column c0 (negative or past W wraps): the one periodic take, the wrap at 0 / 360 degrees is handled here."""
- return np.take(a, (c0 + np.arange(n)) % W, axis=-1)
-
-# ====================================================================== authored sub-DEM foreground detail (Aetheria / CultMath ridged multifractal)
-def _frac(v): return v - np.floor(v)
-def _hash2(x, y): return _frac(np.sin(x * 127.1 + y * 311.7) * 43758.5453) # cultmath_hash(vec2), as Ratatoskr noise.ts
-def _vnoise2(x, y): # cultmath_value_noise: 4 hashed corners, smoothstep blend
- cx, cy = np.floor(x), np.floor(y); u = x - cx; v = y - cy; u = u * u * (3 - 2 * u); v = v * v * (3 - 2 * v)
- a, b, c, d = _hash2(cx, cy), _hash2(cx + 1, cy), _hash2(cx, cy + 1), _hash2(cx + 1, cy + 1)
- return (a + (b - a) * u) * (1 - v) + (c + (d - c) * u) * v
-LACUN, WEIGHT_GAIN, AMP_GAIN, CRAG = 2.07, 2.0, 0.5, 0.5 # ridgeWorld.ts constants
-DETAIL = dict(cell_m=60.0, octaves=4, amp_m=24.0, fade_from_m=500.0, fade_to_m=4000.0, seed=17)
-def detail_height(E, N, dist):
- """Ridged multifractal (ridgeWorld.ts `profile`, folded value noise weighted by the previous octave) in WORLD metres (east, north of the observer),
- so it is automatically periodic around the ring. First octave wavelength = 60 m = two GLO-30 cells (nothing coarser than the DEM can resolve is
- touched), then x2.07. Amplitude fades to zero between fade_from and fade_to metres of distance. Seeded, deterministic, authored."""
- cfg = DETAIL; e = 0.03 + (1 - CRAG) * 0.4; top = math.sqrt(1 + e * e); s = 0.0; nrm = 0.0; amp = 1.0; f = 1.0 / cfg['cell_m']; w = 1.0
- for k in range(cfg['octaves']):
- v = 2 * _vnoise2(E * f + cfg['seed'] * 7.31, N * f + cfg['seed'] * 3.17 + k * 13) - 1
- sig = (1 - np.sqrt(v * v + e * e) / top) ** 2 * w; w = np.minimum(1.0, sig * WEIGHT_GAIN); s = s + sig * amp; nrm += amp; amp *= AMP_GAIN; f *= LACUN
- t = np.clip((dist - cfg['fade_from_m']) / (cfg['fade_to_m'] - cfg['fade_from_m']), 0, 1); fade = 1 - t * t * (3 - 2 * t)
- return cfg['amp_m'] * fade * (s / nrm - 0.3)
-
-# ====================================================================== stage 0: march
-NEAR_CLIP_M = 500.0 # authored: the far march's first sample and the boundary of parallax authority: coverage, seams, the encoding range, distance_m and r_max read terrain at or beyond it. The ground under it is the near march (near_march), drawn by card 0 only
-def schedule(detail):
- d = [NEAR_CLIP_M]
- while d[-1] < P['rmax_km'] * 1000:
- d.append(d[-1] + min(250.0, max(10.0 if detail else 40.0, 0.004 * d[-1])))
- return np.array(d)
-
-def elev(h, d, curvature=True):
- """Elevation angle (degrees) of height h (m) at distance d (m) from the eye: Earth curvature with refraction. The one formula of march and prefilter."""
- drop = d * d / (2 * R_EARTH) * (1 - KREF) if curvature else 0.0
- return np.degrees(np.arctan2(h - P['eye_m'] - drop, d))
-
-def march(detail=False, curvature=True):
- m, lt, ll = mosaic(P); az = np.radians((np.arange(W) + 0.5) / W * 360.0); d = schedule(detail); cosl = math.cos(math.radians(P['lat']))
- A = np.zeros((len(d), W), np.float32); Hh = np.zeros_like(A); sa, ca = np.sin(az), np.cos(az)
- for k, dk in enumerate(d):
- lat = P['lat'] + dk * ca / 111320.0; lon = P['lon'] + dk * sa / (111320.0 * cosl)
- h = bil(m, lt, ll, lat, lon)
- if detail and dk < DETAIL['fade_to_m']: h = h + detail_height(dk * sa, dk * ca, dk)
- A[k] = elev(h, dk, curvature); Hh[k] = h
- return d, A, Hh
-
-def rays_key(detail):
- """Inputs of the ray march: observer, eye elevation, range, the DEM mosaic, the sample schedule (hashed as the array it produces), the Earth / refraction constants, the ring width, and (detail) the foreground detail noise."""
- return cache_key('rays.v1', P['lat'], P['lon'], P['rmax_km'], round(float(P['eye_m']), 3), mosaic_key(P), schedule(detail), R_EARTH, KREF, W, bool(detail),
- (sorted(DETAIL.items()), LACUN, WEIGHT_GAIN, AMP_GAIN, CRAG) if detail else None)
-def stage0(detail=False, force=False):
- c = B / f"rays-{P['id']}{'-detail' if detail else ''}-{rays_key(detail)}.npz"
- if c.exists() and not force:
- z = np.load(c); return z['d'], z['ang'], z['h'], None
- t0 = time.time(); mosaic(P); t1 = time.time(); d, A, Hh = march(detail); t2 = time.time(); np.savez(c, d=d, ang=A, h=Hh)
- return d, A, Hh, dict(mosaic=t1 - t0, march=t2 - t1, samples=len(d))
-
-# ====================================================================== the near march: the ground under the near clip
-NEAR_START_M = 1.0 # authored: the ray of the frame bottom meets flat ground from a 1.6 m eye farther out than this; a 5 m start leaves a wall at grandcanyon h100, where the ground at 5 m stands 8 degrees up
-def near_schedule():
- """Sample distances (m) of the near march: NEAR_START_M, then steps of max(1 m, 0.02 d) capped at 10 m, every sample below NEAR_CLIP_M (about 170)."""
- d = [NEAR_START_M]
- while d[-1] + min(10.0, max(1.0, 0.02 * d[-1])) < NEAR_CLIP_M: d.append(d[-1] + min(10.0, max(1.0, 0.02 * d[-1])))
- return np.array(d)
-def near_march(sigma_m=0.0):
- """(d, a, h) of the ground under the near clip: the place's own DEM, bilinear, sampled along near_schedule() on all W columns in float64 (no cache: one pass is about 170 x 6400 samples), low-passed with the place's own prefilter (sigma_m = prefilter_m) like the far march."""
- m, lt, ll = mosaic(P); az = np.radians((np.arange(W) + 0.5) / W * 360.0); d = near_schedule(); cosl = math.cos(math.radians(P['lat'])); sa, ca = np.sin(az), np.cos(az)
- h = np.stack([np.asarray(bil(m, lt, ll, P['lat'] + dk * ca / 111320.0, P['lon'] + dk * sa / (111320.0 * cosl)), np.float64) for dk in d]); a, h = prefilter(d, h, sigma_m)
- return d, a, h
-def join_near(d, a, h, near):
- """The one join of the near march to the far march (d, a, h: (K, W), set_view done): returns (D, A, Hc, nrm) for cards, near samples first. The near angles are capped per column at the angle of the far march's first sample, a[0]: the near ground draws inside the silhouette of the terrain at the clip
- and no near hill rises above it (ruling ridge-near-ground-outline). The normals of the two marches are computed apart and concatenated, so the far normals are those of the far march alone. Needs the whole ring (the cap and the lateral normal read ring columns): cut the tiles from the result."""
- dn, an, hn = near; a = np.asarray(a); an = np.minimum(an, a[0][None, :]); nn, nf = normals(dn, hn), normals(d, h)
- return np.concatenate([dn, d]), np.concatenate([an, a]), np.concatenate([hn, h]), tuple(np.concatenate([x, y]) for x, y in zip(nn, nf))
-
-# ====================================================================== periodic helpers
-
-# ====================================================================== prefilter: the march is a heightfield of roofs and hills; the cards want the hills
-def prefilter(d, h, sigma_m):
- """Gaussian low-pass of the ray heights h (K, W): along each ray with sigma sigma_m metres (weighted by sample spacing, the schedule is not uniform), then across rays at equal distance with
- sigma = sigma_m / (d * COLW) columns (periodic, exact in the Fourier domain). Angles are recomputed from the filtered heights with elev. Returns (angles, heights); sigma_m 0 leaves the heights as they are."""
- d = np.asarray(d, np.float64); h = np.asarray(h, np.float64)
- if sigma_m > 0:
- f = np.fft.rfftfreq(h.shape[1]); sc = sigma_m / (d * COLW)
- h = np.fft.irfft(np.fft.rfft(h, axis=1) * np.exp(-2 * (np.pi * f[None, :] * sc[:, None]) ** 2), n=h.shape[1], axis=1)
- dd = np.gradient(d); out = np.empty_like(h)
- for k in range(len(d)):
- r = int(min(3 * sigma_m / dd[k] + 1, 60)); lo, hi = max(0, k - r), min(len(d), k + r + 1)
- w = np.exp(-0.5 * ((d[lo:hi] - d[k]) / sigma_m) ** 2) * dd[lo:hi]; out[k] = (w[:, None] * h[lo:hi]).sum(0) / w.sum()
- h = out
- return elev(h, d[:, None]), h
-
-def normals(d, h):
- """Surface normal at every ray sample (n_r, n_t, n_up), each (K, W): n_r along the ray, n_t across it (towards increasing azimuth), n_up vertical. The slopes are the ray's own dh/dd and the difference of the
- neighbouring columns at the SAME sample (equal distance, never equal row) over 2 d COLW, both times the authored vertical exaggeration PXDEG_V / HPX_DEG, so a face reads as steep as the view draws it."""
- d = np.asarray(d, np.float64); h = np.asarray(h, np.float64); E = PXDEG_V / HPX_DEG
- sr = E * np.gradient(h, d, axis=0); st = E * (np.roll(h, -1, axis=1) - np.roll(h, 1, axis=1)) / (2 * d[:, None] * COLW); nz = 1.0 / np.sqrt(1 + sr * sr + st * st)
- return -sr * nz, -st * nz, nz
-
-# ====================================================================== the authored Y mapping
-GROUND_ROWS_MIN = 150 # rows every bake keeps under the horizon: (1 - HORIZON_AT) x plane_h / RIDGE_BAND_FRAC of the runtime (view.ts groundRowsNeeded; ridgeAssets.test pins the two together)
-E_MIN = 0.5 # the vertical exaggeration may go down to this to keep GROUND_ROWS_MIN (ruling ridge-ground-rows-below-horizon)
-def set_view(skyline, sky_row=0.04, near_row=0.66):
- """AUTHORED vertical mapping, linear in elevation angle: row = (TOP_DEG - angle) * PXDEG_V over the whole 600-row frame (cylindrical, horizontal 17.78 px/deg). skyline is the highest angle any sample reaches in each
- ring column (W,), straight from the march. Three anchors on the whole ring (rulings ridge-ring-vertical-anchors, ridge-ground-rows-below-horizon): the highest skyline angle of the ring sits at `sky_row` (4%) of the frame height, the LOWEST sits at
- `near_row` (66%) where the scale allows, and the horizon keeps GROUND_ROWS_MIN rows under it. PXDEG_V = the lesser of (near_row - sky_row) * 600 / (highest - lowest) and (600 - GROUND_ROWS_MIN - sky_row * 600) / highest, clamped to
- [E_MIN, 10] x 17.78 px/deg = vertical exaggeration 0.5x..10x; a skyline whose highest angle cannot keep the ground rows even at E_MIN refuses (Refusal naming sky_deg, the scale needed and the floor).
- TOP_DEG = highest + sky_row*600/PXDEG_V; BOTTOM_DEG = TOP_DEG - 600/PXDEG_V. Returns the view, with `binds` naming the anchor that set the scale: 'skyline', 'horizon', 'floor' or 'ceiling'."""
- global rowang, PXDEG_V, TOP_DEG, BOTTOM_DEG
- sk = np.asarray(skyline); sky = float(sk.max()); low = float(sk.min()); lo, hi = E_MIN * HPX_DEG, 10 * HPX_DEG
- fit = (near_row - sky_row) * H / max(sky - low, 0.05); hold = (H - GROUND_ROWS_MIN - sky_row * H) / sky if sky > 0 else math.inf
- if hold < lo: raise Refusal(f"the whole-ring skyline reaches {sky:.2f} degrees: holding {GROUND_ROWS_MIN} rows under the horizon needs {hold:.2f} px/deg, below the floor {lo:.2f} px/deg ({E_MIN:g}x)")
- ppd = float(np.clip(min(fit, hold), lo, hi)); binds = 'horizon' if hold < fit and ppd == hold else 'floor' if ppd == lo else 'ceiling' if ppd == hi else 'skyline'
- PXDEG_V = ppd; TOP_DEG = sky + sky_row * H / ppd; BOTTOM_DEG = TOP_DEG - H / ppd; rowang = TOP_DEG - (np.arange(H) + 0.5) / PXDEG_V
- return dict(top_deg=TOP_DEG, bottom_deg=BOTTOM_DEG, px_per_deg=PXDEG_V, exaggeration=PXDEG_V / HPX_DEG, horizon_row=TOP_DEG * PXDEG_V, sky_deg=sky, low_deg=low, sky_row=sky_row, near_row=near_row, binds=binds)
-
-# ====================================================================== coverage and seams
-COV_BINS = 160 # log-distance bins between the first and the last sample
-SIG_B = 1.5 # blur of the coverage along depth (bins): seams settle in gaps
-SEAM_LAM, SEAM_UNARY = 2.0, 0.25 # forward energy: a seam that moves a bin between neighbouring columns pays SEAM_LAM per bin plus every visible row it sweeps; one that sits in visible terrain pays SEAM_UNARY x those rows (cross-fadable)
-SEAM_PRIOR = 0.02 # the authored depth is a faint pull, rows per nat^2 (the tests pin the window: six synthetic receding ridges, a sawtooth round the ring, tear at 0.05, and without the swept-rows term at 0.02 they tear too)
-SEAM_SEP = 0.4 # seams at least this far apart in log-distance (nat)
-XF = 0.07 # half-width of a seam's cross-fade, nat (about two bins)
-
-def log_edges(d, nb=COV_BINS): L = np.log(np.asarray(d, np.float64)); return np.linspace(L[0], L[-1] + 1e-9, nb + 1)
-
-def opaque(a):
- """Coverage 0..1 of every frame row by the opaque view of angles a (K, n): the share of the row's angular span under the column skyline."""
- p = 1.0 / PXDEG_V; lo = rowang - 0.5 * p; return np.clip((np.asarray(a, np.float64).max(0)[None, :] - lo[:, None]) / p, 0, 1)
-
-def coverage(d, a, nb=COV_BINS):
- """(nb, n): rows of the opaque view first revealed by the samples of each log-distance bin, per column. The first sample reveals every row from the frame bottom up to its angle, so the rows below it (nearer than it) count in bin 0. Needs set_view."""
- a = np.asarray(a, np.float64); edges = log_edges(d, nb); kb = np.clip(np.searchsorted(edges, np.log(d), 'right') - 1, 0, nb - 1)
- runmax = np.maximum.accumulate(a, axis=0); prev = np.vstack([np.full((1, a.shape[1]), BOTTOM_DEG), runmax[:-1]])
- C = np.zeros((nb, a.shape[1])); np.add.at(C, kb, np.clip(np.minimum(a, TOP_DEG) - np.maximum(prev, BOTTOM_DEG), 0, None) * PXDEG_V)
- return C
-
-def _dt(f, u):
- """out[i] = min_k f[k] + |u[i] - u[k]| along axis 0, u increasing: two cumulative-minimum passes (Felzenszwalb & Huttenlocher's L1 distance transform)."""
- u = u.reshape((-1,) + (1,) * (f.ndim - 1)); return np.minimum(np.minimum.accumulate(f - u, axis=0) + u, np.flip(np.minimum.accumulate(np.flip(f + u, 0), axis=0), 0) - u)
-
-def seams(cov, targets, d):
- """(K, n) ordered seam distances (m), one per authored target (m), each column of a RING (cov is periodic: the last column neighbours the first). One 1D forward-energy DP per seam, in target order (seam carving, Avidan & Shamir 2007; forward energy, Rubinstein et al. 2008): unary
- SEAM_UNARY x the rows at the seam; moving a bin between neighbouring columns costs SEAM_LAM per bin plus the rows swept, an L1 distance in u = cumsum(rows) + SEAM_LAM x bin; a weak prior to the target. Seam k is held at
- least SEAM_SEP nat beyond seam k-1 in every column. Sequential, not joint: a joint DP has NB^K states per column and seams in gaps do not interact. Periodic: the DP runs over the ring three times side by side and keeps the middle lap,
- so a seam is continuous across the wrap and a tile boundary is only a crop."""
- cov = np.tile(np.asarray(cov, np.float64), (1, 3)); nb, n3 = cov.shape; n = n3 // 3; edges = log_edges(d, nb); bc = 0.5 * (edges[:-1] + edges[1:]); sep = int(math.ceil(SEAM_SEP / (edges[1] - edges[0]))); INF = 1e12
- r = int(3 * SIG_B) + 1; kern = np.exp(-0.5 * (np.arange(-r, r + 1) / SIG_B) ** 2); kern /= kern.sum(); pad = np.pad(cov, ((r, r), (0, 0)), mode='edge'); Cs = sum(kv * pad[i:i + nb] for i, kv in enumerate(kern))
- bins = np.arange(nb); lo = np.zeros(n3, int); out = np.zeros((len(targets), n3))
- for t, T in enumerate(targets):
- prior = SEAM_PRIOR * (bc - math.log(T)) ** 2; need = np.minimum(lo + (sep if t else 0), nb - 1); feas = bins[:, None] >= need[None, :]
- warp = lambda x: np.cumsum(0.5 * (cov[:, x - 1] + cov[:, x])) + SEAM_LAM * bins
- cost = np.where(feas[:, 0], SEAM_UNARY * Cs[:, 0] + prior, INF); store = [cost]
- for x in range(1, n3): cost = np.where(feas[:, x], _dt(cost, warp(x)) + SEAM_UNARY * Cs[:, x] + prior, INF); store.append(cost)
- j = np.zeros(n3, int); j[-1] = int(np.argmin(store[-1]))
- for x in range(n3 - 1, 0, -1): u = warp(x); j[x - 1] = int(np.argmin(store[x - 1] + np.abs(u - u[j[x]])))
- out[t] = np.exp(bc[j]); lo = j
- return out[:, n:2 * n]
-
-# ====================================================================== cards: layered depth, one per band between seams
-def load_material(name, path=Path(__file__).resolve().parent / 'places.json'):
- """The named material of places.json `materials` (its one owner), checked for shape; an unknown name is a Refusal, never a fallback. A material: base rgb, ramps [{from_m, to_m, colour}] lerped over height in order, steep {colour} | None (the steep-face override), snow {from_m, to_m, colour} | None (gated by flatness)."""
- tab = json.load(open(path)).get('materials') or {}
- if name not in tab: raise Refusal(f"material {name!r} is not in places.json materials ({', '.join(sorted(tab)) or 'none'})")
- m = tab[name]; rgb = lambda c: isinstance(c, list) and len(c) == 3 and all(isinstance(v, (int, float)) and 0 <= v <= 1 for v in c)
- ok = isinstance(m, dict) and set(m) == {'base', 'ramps', 'steep', 'snow'} and rgb(m['base']) and isinstance(m['ramps'], list) and all(isinstance(r, dict) and set(r) == {'from_m', 'to_m', 'colour'} and r['from_m'] < r['to_m'] and rgb(r['colour']) for r in m['ramps'])
- ok = ok and (m['steep'] is None or (isinstance(m['steep'], dict) and set(m['steep']) == {'colour'} and rgb(m['steep']['colour']))) and (m['snow'] is None or (isinstance(m['snow'], dict) and set(m['snow']) == {'from_m', 'to_m', 'colour'} and m['snow']['from_m'] < m['snow']['to_m'] and rgb(m['snow']['colour'])))
- if not ok: raise Refusal(f"material {name!r} is malformed (base rgb, ramps [{{from_m < to_m, colour}}], steep {{colour}} | null, snow {{from_m < to_m, colour}} | null; rgb in 0..1)")
- return m
-def albedo(h, n_up, material):
- """Evaluate a material (load_material) at height h and up-component n_up: the base colour, each ramp lerped by height in order, the steep colour where the face is steep, the snow colour above its band where the face is flat. Straight colour, no light in it."""
- t = lambda a, b: np.clip((h - a) / (b - a), 0, 1)[..., None]; c = np.asarray(material['base'])
- for r in material['ramps']: c = c + (np.asarray(r['colour']) - c) * t(r['from_m'], r['to_m'])
- if material['steep']: c = c + (np.asarray(material['steep']['colour']) - c) * np.clip((0.93 - n_up) / 0.25, 0, 1)[..., None]
- sn = material['snow']
- return c + (np.asarray(sn['colour']) - c) * (t(sn['from_m'], sn['to_m']) * np.clip((n_up - 0.55) / 0.3, 0, 1)[..., None]) if sn else c
-
-def cards(d, a, h, seams, nrm=None, *, material):
- """K+1 cards, nearest first, from the angles a and heights h (samples, n) of n columns and the (K, n) seams (m). Card i holds per pixel the FIRST VISIBLE hit at or beyond seam i-1 (less XF): layered depth, so a farther
- card keeps the terrain a nearer ridge hides. Its alpha is that pixel's coverage (a crest row holds the share of its angular span under the card's running maximum) times 1 - smoothstep over seam i +- XF in
- log-distance of the hit; card 0 owns the rows below the first sample, the last card has no far edge. Alphas are then made nested so the alpha-over composite of all cards is exactly the opaque coverage (a row two
- cards both hold partly is not counted twice). Distance and normal are interpolated between sample k-1 and k by angle. Each card is cropped to the rows where its 8-bit alpha is not zero.
- material is the place's (load_material), the one colour rule of wall, near and far rows. nrm is normals(d, h) of the same columns (default: computed from h as given, so pass it for columns cut from the ring: the lateral slope reads the neighbouring columns). Rows of any card below the angle of its first sample (hit and idx == 0) are its wall: they keep that sample's distance, their albedo is the ground material at their height with the face up (n_up = 1),
- and `wall` flags them (card 0's first sample is the near march's NEAR_START_M, so no row of it is wall under a real frame). Card 0 draws the near march (join_near; the samples nearer than NEAR_CLIP_M) under the silhouette of the terrain at the clip as ordinary terrain: its own normal, the albedo of its own height and n_up; `near` (h, n) bool flags the pixels whose hit lies on the near side of the clip sample (the rows that were card 0's wall), whose distance is then never above the clip. Each card: dict(top, alpha (h,n), albedo (h,n,3), n_r, n_t, logd (ln metres) (h,n), wall (h,n) bool, near (h,n) bool)."""
- d = np.asarray(d, np.float64); a = np.asarray(a, np.float64); h = np.asarray(h, np.float64); seams = np.asarray(seams, np.float64); nk, n = a.shape; nc = len(seams) + 1
- if d[0] >= NEAR_CLIP_M: raise Refusal(f"card 0 draws the ground under the near clip from the near march, but the first sample is at {d[0]:g} m (the clip is {NEAR_CLIP_M:g} m): pass join_near")
- n_r, n_t, n_u = nrm if nrm is not None else normals(d, h); ld = np.broadcast_to(np.log(d)[:, None], (nk, n)); p = 1.0 / PXDEG_V; lo = rowang - 0.5 * p; kn = int(np.searchsorted(d, NEAR_CLIP_M)) # kn: the samples nearer than the clip
- ks0 = [np.searchsorted(d, seams[i - 1] * math.exp(-XF)) for i in range(1, nc)]; ks1 = [np.searchsorted(d, seams[i] * math.exp(XF)) for i in range(nc - 1)]
- F = np.zeros((nc, H, n)); X = np.ones((nc, H, n)); G = np.zeros((nc, 5, H, n)); Wl = np.zeros((nc, H, n), bool); Nr = np.zeros((nc, H, n), bool) # coverage, far fade, then (logd, h, n_r, n_t, n_u); wall rows; near rows (the ground under the clip)
- for x in range(n):
- for i in range(nc):
- k0 = 0 if i == 0 else int(ks0[i - 1][x]); k1 = nk if i == nc - 1 else int(ks1[i][x])
- if k1 <= k0: continue
- rm = np.maximum.accumulate(a[k0:k1, x]); idx = np.searchsorted(rm, lo, 'right'); hit = idx < len(rm); idx = np.minimum(idx, len(rm) - 1); kk = k0 + idx
- if not hit.any(): continue
- kp = np.maximum(kk - 1, k0); prev = np.where(idx > 0, rm[np.maximum(idx - 1, 0)], rm[idx] - 1.0)
- t = np.where(idx > 0, np.clip((rowang - prev) / np.maximum(rm[idx] - prev, 1e-9), 0, 1), 1.0); mix = lambda arr: arr[kp, x] + t * (arr[kk, x] - arr[kp, x])
- F[i, :, x] = np.where(hit, np.clip((rm[-1] - lo) / p, 0, 1), 0); lh = mix(ld)
- G[i, :, :, x] = np.where(hit, np.stack([lh, mix(h), mix(n_r), mix(n_t), mix(n_u)]), 0)
- Wl[i, :, x] = hit & (idx == 0); Nr[i, :, x] = hit & (kp < kn) # rows below the card's first sample: the extruded wall; hits on the near side of the clip sample (below it, or between the last near sample and it): the near ground (only card 0 reaches it)
- if i < nc - 1: s = np.clip((lh - (math.log(seams[i, x]) - XF)) / (2 * XF), 0, 1); X[i, :, x] = 1 - s * s * (3 - 2 * s)
- out = []; A = np.zeros((H, n))
- for i in range(nc):
- part = np.where(F[i] < 1, np.clip((np.maximum(A, F[i]) - A) / np.maximum(1 - A, 1e-6), 0, 1), F[i]); al = np.where(np.rint(X[i] * part * 255) > 0, X[i] * part, 0.0); A = 1 - (1 - A) * (1 - al)
- rows = np.flatnonzero(al.max(1) > 0)
- if not len(rows): out.append(dict(top=0, alpha=np.zeros((0, n), np.float32), albedo=np.zeros((0, n, 3), np.float32), n_r=np.zeros((0, n), np.float32), n_t=np.zeros((0, n), np.float32), logd=np.zeros((0, n), np.float32), wall=np.zeros((0, n), bool), near=np.zeros((0, n), bool))); continue
- sl = slice(int(rows[0]), int(rows[-1]) + 1); g = G[i, :, sl]; nz = np.sqrt(g[2] ** 2 + g[3] ** 2 + g[4] ** 2) + 1e-12
- out.append(dict(top=int(rows[0]), alpha=al[sl].astype(np.float32), albedo=albedo(g[1], np.where(Wl[i, sl], 1.0, g[4] / nz), material).astype(np.float32), n_r=(g[2] / nz).astype(np.float32), n_t=(g[3] / nz).astype(np.float32), logd=g[0].astype(np.float32), wall=Wl[i, sl].copy(), near=Nr[i, sl].copy()))
- return out
diff --git a/scripts/ridge-bake/tests/mutate.py b/scripts/ridge-bake/tests/mutate.py
deleted file mode 100644
index 94702e0d..00000000
--- a/scripts/ridge-bake/tests/mutate.py
+++ /dev/null
@@ -1,130 +0,0 @@
-"""Mutation check: re-introduce a cause into a COPY of the baker, run the fixtures against it, and require that at least one fails.
- venv/bin/python tests/mutate.py [word ...] (runs the unmutated copy first and exits 2 if a fixture fails; prints one line per mutant whose name holds every word; exit 1 if a mutant survives or only crashes the run: a kill is an AssertionError raised by the fixtures' own code)"""
-import os, shutil, subprocess, sys, tempfile
-HERE = os.path.dirname(os.path.abspath(__file__)); SRC = os.path.join(HERE, '..')
-MUTANTS = { # name -> (text in ridge.py or export.py, replacement)
- 'seam cost: the rows a seam sweeps are not paid (it hops across a receding ridge)': ("np.cumsum(0.5 * (cov[:, x - 1] + cov[:, x])) + SEAM_LAM * bins", "SEAM_LAM * bins"),
- 'seam prior pulls hard to the target (2.0, or 0.1: the seam hops across a ridge)': ("SEAM_PRIOR = 0.02 ", "SEAM_PRIOR = 2.0 "),
- 'normals: the authored exaggeration is dropped': ("h = np.asarray(h, np.float64); E = PXDEG_V / HPX_DEG", "h = np.asarray(h, np.float64); E = 1.0"),
- 'normals: the lateral neighbour is one sample nearer (not equal distance)': ("st = E * (np.roll(h, -1, axis=1) - np.roll(h, 1, axis=1))", "st = E * (np.roll(np.roll(h, -1, axis=1), 1, axis=0) - np.roll(h, 1, axis=1))"),
- 'cards: the near edge is ignored (every card starts at sample 0)': ("k0 = 0 if i == 0 else int(ks0[i - 1][x])", "k0 = 0"),
- 'cards: the farther card fades in over the window too (both cards translucent)': ("X[i, :, x] = 1 - s * s * (3 - 2 * s)", "X[i, :, x] = 1 - s * s * (3 - 2 * s); X[i + 1, :, x] = s * s * (3 - 2 * s)"),
- 'cards: a crest row is all or nothing (no fractional coverage)': ("F[i, :, x] = np.where(hit, np.clip((rm[-1] - lo) / p, 0, 1), 0)", "F[i, :, x] = np.where(hit, 1.0, 0)"),
- 'prefilter ignores sigma': ("if sigma_m > 0:", "if False:"),
- 'prefilter across rays uses one sigma in columns (not per distance)': ("sc = sigma_m / (d * COLW)", "sc = sigma_m / (d[0] * COLW) * np.ones_like(d)"),
- 'bake_id hashes geometry before colour': ("h.update(colour); h.update(geometry)", "h.update(geometry); h.update(colour)"),
- 'check_cover accepts any composite': ("if bad.any(): y, x", "if False: y, x"),
- 'load_preset accepts splits that do not increase': ("or any(b <= a for a, b in zip(sp, sp[1:]))", ""),
- 'geometry: n_r and n_t channels swapped': ("r, t = u8((np.asarray(n_r) + 1) / 2), u8((np.asarray(n_t) + 1) / 2)", "r, t = u8((np.asarray(n_t) + 1) / 2), u8((np.asarray(n_r) + 1) / 2)"),
- 'geometry: log-distance not normalised by the encoding range': ("b = (np.asarray(logd) - enc['log_d_min']) / (enc['log_d_max'] - enc['log_d_min'])", "b = np.asarray(logd) / 12.0"),
- 'colour: albedo zeroed in the file': ("rgb = u8(albedo) * (a[..., None] > 0)", "rgb = u8(albedo) * 0"),
- 'colour: premultiplied instead of straight': ("rgb = u8(albedo) * (a[..., None] > 0)", "rgb = u8(np.asarray(albedo) * np.asarray(alpha)[..., None])"),
- 'seams: the separation between seams is ignored': ("SEAM_SEP = 0.4 ", "SEAM_SEP = 0.0 "),
- 'elev: curvature and refraction dropped': ("drop = d * d / (2 * R_EARTH) * (1 - KREF) if curvature else 0.0", "drop = 0.0"),
- 'coverage: the rows below the first sample are not counted': ("prev = np.vstack([np.full((1, a.shape[1]), BOTTOM_DEG), runmax[:-1]])", "prev = np.vstack([np.full((1, a.shape[1]), 100.0), runmax[:-1]])"),
- 'coverage: the rows below the first sample are counted twice': ("* PXDEG_V)\n return C", "* PXDEG_V); C[0] += np.clip(np.minimum(a[0], TOP_DEG) - BOTTOM_DEG, 0, None) * PXDEG_V\n return C"),
- 'cards: the hit is not interpolated between samples': ("t = np.where(idx > 0, np.clip((rowang - prev) / np.maximum(rm[idx] - prev, 1e-9), 0, 1), 1.0)", "t = np.ones_like(rowang)"),
- 'cards: the blended normal is not renormalised': ("nz = np.sqrt(g[2] ** 2 + g[3] ** 2 + g[4] ** 2) + 1e-12", "nz = 1.0"),
- 'wall: no row is flagged (the flag is dropped)': ("Wl[i, :, x] = hit & (idx == 0)", "Wl[i, :, x] = False"),
- 'near: the cap to the silhouette of the terrain at the clip is dropped': ("an = np.minimum(an, a[0][None, :])", "an = an"),
- 'near: rows under the clip are flagged wall': ("Wl[i, :, x] = hit & (idx == 0); Nr[i, :, x] = hit & (kp < kn)", "Wl[i, :, x] = hit & ((idx == 0) | (kp < kn)); Nr[i, :, x] = hit & (kp < kn)"),
- 'near: albedo takes the face up (the wall rule on near rows)': ("albedo(g[1], np.where(Wl[i, sl], 1.0, g[4] / nz), material)", "albedo(g[1], np.where(Wl[i, sl] | Nr[i, sl], 1.0, g[4] / nz), material)"),
- 'near: albedo reads the height of the far march first sample': ("albedo(g[1], np.where(Wl[i, sl]", "albedo(np.where(Nr[i, sl], h[int(np.searchsorted(d, NEAR_CLIP_M))][None, :], g[1]), np.where(Wl[i, sl]"),
- 'near: the march starts at 20 m': ("NEAR_START_M = 1.0 ", "NEAR_START_M = 20.0 "),
- 'near: the heights are stored float32': (", np.float64) for dk in d])", ", np.float32) for dk in d])"),
- 'near: the place prefilter is not applied': ("; a, h = prefilter(d, h, sigma_m)\n", "; a, h = prefilter(d, h, 0.0)\n"),
- 'near: the far normals are computed over the joined march (not apart)': ("nn, nf = normals(dn, hn), normals(d, h)", "nj_ = normals(np.concatenate([dn, d]), np.concatenate([hn, h])); nn, nf = tuple(x[:len(dn)] for x in nj_), tuple(x[len(dn):] for x in nj_)"),
- 'near: cards accepts a march that starts at the clip': ("if d[0] >= NEAR_CLIP_M: raise Refusal", "if False: raise Refusal"),
- 'pack: near pixels count as solid terrain': ("solid = (al >= 0.5) & ~wl & ~nr;", "solid = (al >= 0.5) & ~wl;"),
- 'pack: the non-wall fallback pool reads near pixels': ("((al > 0) & ~wl & ~nr, ld)", "((al > 0) & ~wl, ld)"),
- 'pack: the lit fallback pool reads near pixels': ("((al > 0) & ~nr, ld)", "(al > 0, ld)"),
- 'pack: the apron fallback pool reads near pixels': ("((c['alpha'] > 0) & ~c['near'], c['logd'])", "(c['alpha'] > 0, c['logd'])"),
- 'pack: a tile with nothing outside the near ground is not at the clip': ("if pool else ridge.NEAR_CLIP_M", "if pool else 0.0"),
- 'r_max: the tile median binds, not the nearest terrain': ("r_max = solve_r_max(near, bands, ppd); r_fwd = solve_r_max(near, bands, ppd, phis=1)", "r_max = solve_r_max(dist, bands, ppd); r_fwd = solve_r_max(dist, bands, ppd, phis=1)"),
- 'r_max: near pixels do not bind at the clip': ("ridge.NEAR_CLIP_M if ((al >= 0.5) & nr).any() else None", "None"),
- 'r_max: near pixels bind only in a tile with no other solid pixel': ("ridge.NEAR_CLIP_M if ((al >= 0.5) & nr).any() else None", "ridge.NEAR_CLIP_M if ((al >= 0.5) & nr).any() and not solid.any() else None"),
- 'r_max: near pixels bind only where they outnumber the solid ones': ("ridge.NEAR_CLIP_M if ((al >= 0.5) & nr).any() else None", "ridge.NEAR_CLIP_M if ((al >= 0.5) & nr).sum() > solid.sum() else None"),
- 'r_max: the nearest pixel is the farthest solid one': ("float(np.exp(ld[solid].min())) if solid.any() else None, ridge", "float(np.exp(ld[solid].max())) if solid.any() else None, ridge"),
- 'near clip: the writer compares the float32 distance strictly': ("if rmin < ridge.NEAR_CLIP_M * (1 - 1e-5): raise", "if rmin < ridge.NEAR_CLIP_M: raise"),
- 'near clip: the march starts nearer than the clip': ("d = [NEAR_CLIP_M]", "d = [100.0]"),
- 'near clip: a card 0 inside the clip is accepted by the writer': ("if rmin < ridge.NEAR_CLIP_M * (1 - 1e-5): raise", "if False: raise"),
- 'view: the 1x floor is back': ("lo, hi = E_MIN * HPX_DEG, 10 * HPX_DEG", "lo, hi = HPX_DEG, 10 * HPX_DEG"),
- 'view: the horizon anchor is dropped (the scale is the skyline fit alone)': ("ppd = float(np.clip(min(fit, hold), lo, hi))", "ppd = float(np.clip(fit, lo, hi))"),
- 'view: a skyline that cannot hold the ground rows is not refused': ("if hold < lo: raise", "if False: raise"),
- 'view: the ground rows are not asked for (GROUND_ROWS_MIN 0)': ("GROUND_ROWS_MIN = 150 ", "GROUND_ROWS_MIN = 0 "),
- 'validate_manifest: a plane short of its ground rows is accepted': ("if v['plane_h'] - v['horizon_row'] < ridge.GROUND_ROWS_MIN - 1e-6: raise", "if False: raise"),
- 'wall: albedo takes the face normal, not the face up': ("np.where(Wl[i, sl], 1.0, g[4] / nz)", "g[4] / nz"),
- 'wall: the code is not written to the geometry': ("if wall is not None: m = np.asarray(wall, bool)", "if False: m = np.asarray(wall, bool)"),
- 'wall: the sheet lights wall rows with their normal': ("wall = c['wall']; n_r, n_t = np.where(wall, 0.0, c['n_r']), np.where(wall, 0.0, c['n_t'])", "n_r, n_t = c['n_r'], c['n_t']"),
- 'ring: the seam DP is not periodic (the first lap is kept, not the middle)': ("return out[:, n:2 * n]", "return out[:, :n]"),
- 'ring: the tile take does not wrap (the ring ends repeat their edge column)': ("return np.take(a, (c0 + np.arange(n)) % W, axis=-1)", "return np.take(a, np.clip(c0 + np.arange(n), 0, W - 1), axis=-1)"),
- 'tile: the apron is shifted (a tile starts at its own first column)': ("ridge.ring_cols(x, t * TILE_W - APRON, TILE_W + 2 * APRON)", "ridge.ring_cols(x, t * TILE_W, TILE_W + 2 * APRON)"),
- 'tile: the seams are cut from tile 0 for every tile': ("cols(sm, t), tuple(cols(x, t) for x in nrm)", "cols(sm, 0), tuple(cols(x, t) for x in nrm)"),
- 'view: the vertical anchors read the first 72 degrees only (the old window)': ("sk = np.asarray(skyline); sky", "sk = np.asarray(skyline)[:1280]; sky"),
- 'bake_id: card-major instead of tile-major': ("bake_id(text, [(e['colour'], e['geometry']) for row in tiles for e in row if e])", "bake_id(text, [(row[i]['colour'], row[i]['geometry']) for i in range(k) for row in tiles if row[i]])"),
- 'bake_id: the manifest is not hashed (a manifest moves under its id)': ("h = hashlib.sha256(); h.update(manifest_text.encode('utf-8'))", "h = hashlib.sha256()"),
- 'bake_id: the manifest is hashed with the id already in it (the blank is skipped)': ("bid = bake_id(text, [", "bid = bake_id(text.replace(BAKE_ID_BLANK, '111111111111'), ["),
- 'write: the per-tile cover check is dropped': ("except Refusal as ex: raise Refusal(f'tile {t}: {ex}')", "except Refusal as ex: pass"),
- 'write: the apron width is not checked': ("if c.shape[1] != w: raise", "if False: raise"),
- 'budget: the tile cap is ignored': ("if b > TILE_BYTES_MAX: raise", "if False: raise"),
- 'budget: the place cap is ignored': ("if sum(tile_bytes) > PLACE_BYTES_MAX: raise", "if False: raise"),
- 'budget: the resident gate is ignored': ("if res > RESIDENT_BYTES_MAX: raise", "if False: raise"),
- 'budget: the resident run does not wrap the ring': ("sum(per[(t + k) % TILES] for k in range(n))", "sum(per[t + k] for k in range(n) if t + k < TILES)"),
- 'budget: the run length forgets the margin tiles': ("math.ceil(arc / TILE_DEG) + 1 + 4", "math.ceil(arc / TILE_DEG)"),
- 'r_max: the camera sweeps forward only (phi = 0)': ("PHI_STEPS = 24 ", "PHI_STEPS = 1 "),
- 'r_max: every card of a tile is fitted at the nearest card distance': ("fit_px(d, r, px_per_deg, phis) for d in row", "fit_px(row[0] if row[0] is not None else d, r, px_per_deg, phis) for d in row"),
- 'r_max_forward: the forward offset is searched over the whole circle': ("r_fwd = solve_r_max(near, bands, ppd, phis=1)", "r_fwd = solve_r_max(near, bands, ppd)"),
- 'r_max_forward: the resident gate is not checked at the forward offset': ("for r in (camera['r_max_m'], camera['r_max_forward_m']): check_budget", "for r in (camera['r_max_m'],): check_budget"),
- 'r_max_forward: a forward offset below r_max_m is accepted': ("if camera['r_max_forward_m'] < camera['r_max_m']: raise", "if False: raise"),
- 'fit: the line is the least squares of 33 uniform samples, as the first gate drew it': ("x, w = np.polynomial.legendre.leggauss(FIT_QUAD)", "x = np.linspace(-1, 1, 33); w = np.full(33, 2 / 33)"),
- 'fit: the line is a two-node quadrature': ("FIT_QUAD = 48 ", "FIT_QUAD = 2 "),
- 'write: the manifest is written as platform text (CRLF on Windows)': ("(tmp / 'manifest.json').write_bytes(text.encode('utf-8'))", "(tmp / 'manifest.json').write_text(text)"),
- 'write: the index is written as platform text (CRLF on Windows)': ("(out / '.index.tmp').write_bytes((json.dumps(idx, indent=1) + '\\n').encode('utf-8'))", "(out / '.index.tmp').write_text(json.dumps(idx, indent=1) + '\\n')"),
- 'r_max: not capped at half the nearest distance': ("cap = 0.5 * rmin", "cap = 5.0 * rmin"),
- 'r_max: the resident gate is not part of the search': (" and resident_bytes(bands, run_tiles(r, rmin)) <= RESIDENT_BYTES_MAX\n", "\n"),
- 'r_max: a bake below the floor is accepted': ("if r_max < R_MAX_FLOOR_M:", "if False:"),
- 'pack: the distance counts wall rows': ("solid = (al >= 0.5) & ~wl & ~nr; any_solid", "solid = (al >= 0.5) & ~nr; any_solid"),
- 'pack: the distance reads the apron columns too': ("inner = slice(APRON, APRON + TILE_W)", "inner = slice(0, TILE_W + 2 * APRON)"),
- 'sheet: the tile boundaries are not drawn': ("def bounds(img): img[:, mark] = 0.45 * img[:, mark] + 0.55 * red; return img", "def bounds(img): return img"),
- 'export: an empty card is not refused': ("if all(tile[i]['alpha'].shape[0] == 0 for tile in bake['cards']): raise", "if False: raise"),
- 'material: a null steep override still paints steep faces rock grey (strata do not hold on cliffs)': ("if material['steep']: c = c + (np.asarray(material['steep']['colour'])", "if True: c = c + (np.asarray((material['steep'] or dict(colour=[0.47, 0.44, 0.41]))['colour'])"),
- 'material: the ramps apply in reverse order': ("for r in material['ramps']:", "for r in reversed(material['ramps']):"),
- 'material: a null snow still snows': ("sn = material['snow']", "sn = material['snow'] or dict(from_m=1900, to_m=2300, colour=[0.93, 0.95, 0.97])"),
- 'material: an unknown name falls back to alpine': ("if name not in tab: raise Refusal(", "if name not in tab: name = 'alpine'; ("),
- 'material: the cards take the alpine colours whatever the place names': ("ridge.cards(D, cols(A, t), cols(Hc, t), cols(sm, t), tuple(cols(x, t) for x in nrm), material=material)", "ridge.cards(D, cols(A, t), cols(Hc, t), cols(sm, t), tuple(cols(x, t) for x in nrm), material=ridge.load_material('alpine'))"),
- 'rays cache key ignores the refraction constant': ("R_EARTH, KREF, W, bool(detail)", "R_EARTH, W, bool(detail)"),
- 'rays cache key ignores the eye elevation': ("round(float(P['eye_m']), 3), ", ""),
- 'mosaic cache key ignores the tile list': ("sorted(tiles_for(p)), 3600", "3600"),
-}
-EQUIVALENT = {'fit: the error is looked for between four points': "the worst error of the best line is at the viewport's two ends for every distance and offset the bound is searched over (checked against a 20001-sample brute force in test_fit_px_is_the_continuous_error); the grid only guards a shape where it is not"} # mutant name -> one line on why it is behaviourally equivalent (reported, not run)
-def execute(edit):
- """Run the fixtures on a COPY of the baker, with edit = (text, replacement) applied or None for the unmutated copy: (returncode or None if the text is gone, [(fixture, exception class, directory of the innermost traceback frame)] of every FAIL line, last stderr line)."""
- d = tempfile.mkdtemp(); shutil.copytree(SRC, os.path.join(d, 'src'), ignore=shutil.ignore_patterns('tests', '__pycache__'))
- try:
- if edit:
- a, b = edit; p = next((q for q in (os.path.join(d, 'src', f) for f in ('ridge.py', 'export.py')) if a in open(q).read()), None)
- if p is None: return None, [], 'the mutant text is in neither ridge.py nor export.py'
- s = open(p).read(); open(p, 'w').write(s.replace(a, b))
- r = subprocess.run([sys.executable, os.path.join(HERE, 'test_ridge.py')], env=dict(os.environ, RIDGE_SRC=os.path.join(d, 'src')), capture_output=True, text=True)
- finally: shutil.rmtree(d)
- fails = [(f[0][4:].strip(), f[1].strip(), os.path.dirname(os.path.abspath(f[2].strip()))) for f in (l.split(' | ', 3) for l in r.stdout.splitlines() if l.startswith('FAIL')) if len(f) == 4]
- return r.returncode, fails, (r.stderr.strip().splitlines() or ['no output'])[-1][:200]
-def run(item):
- """KILLED: at least one fixture failed on an assertion the test code itself raised (an AssertionError whose innermost traceback frame lies in the tests directory). CRASHED: the run failed but no fixture did that (every FAIL is another exception, NameError or a numpy error and the like, or an assert inside the baker, or none printed, or the mutant text is gone), which proves nothing and fails the run. SURVIVED: every fixture passed."""
- name, (a, b) = item; rc, fails, err = execute((a, b)); asserts = [n for n, c, w in fails if c == 'AssertionError' and w == HERE]
- state = 'CRASHED ' if rc is None or (rc and not asserts) else 'KILLED ' if rc else 'SURVIVED '
- why = ', '.join(f'{n}[{c}{"" if w == HERE else " in " + os.path.basename(w)}]' for n, c, w in fails) if fails else err
- line = state + name + ' -> ' + why; print(line, file=sys.stderr, flush=True) # progress: a killed run keeps what finished
- return line, state != 'KILLED '
-def baseline():
- """The unmutated copy must pass every fixture before any mutant means anything: a broken environment would kill them all."""
- rc, fails, err = execute(None)
- if rc or fails: print('BASELINE FAILED: the unmutated baker does not pass its fixtures: ' + (', '.join(f'{n}[{c}]' for n, c, w in fails) or err), file=sys.stderr, flush=True); sys.exit(2)
- print('BASELINE ok: the unmutated copy passes every fixture', file=sys.stderr, flush=True)
-if __name__ == '__main__':
- from concurrent.futures import ThreadPoolExecutor
- baseline()
- with ThreadPoolExecutor(int(os.environ.get('MUTATE_JOBS', '6'))) as ex: res = list(ex.map(run, [(n, v) for n, v in MUTANTS.items() if n not in EQUIVALENT and all(w in n for w in sys.argv[1:])]))
- for line, _ in res: print(line, flush=True)
- for n, why in EQUIVALENT.items(): print('EQUIVALENT ' + n + ' -> ' + why)
- sys.exit(1 if any(sv for _, sv in res) else 0)
diff --git a/scripts/ridge-bake/tests/run.sh b/scripts/ridge-bake/tests/run.sh
deleted file mode 100755
index f97a126c..00000000
--- a/scripts/ridge-bake/tests/run.sh
+++ /dev/null
@@ -1,7 +0,0 @@
-#!/bin/sh
-# Usage: RIDGE_PY= RIDGE_TILES= tests/run.sh [test_ridge.py|mutate.py]
-# RIDGE_WORK (cache dir) defaults to a fresh directory under $TMPDIR.
-: "${RIDGE_PY:?RIDGE_PY must name the python of the baker venv}"
-export RIDGE_WORK="${RIDGE_WORK:-${TMPDIR:-/tmp}/ridge-bake-work}"; mkdir -p "$RIDGE_WORK"
-HERE=$(cd "$(dirname "$0")" && pwd)
-exec "$RIDGE_PY" -I "$HERE/${1:-test_ridge.py}"
diff --git a/scripts/ridge-bake/tests/test_ridge.py b/scripts/ridge-bake/tests/test_ridge.py
deleted file mode 100644
index 2979947e..00000000
--- a/scripts/ridge-bake/tests/test_ridge.py
+++ /dev/null
@@ -1,725 +0,0 @@
-"""Fixtures for the ridge baker (march, prefilter, coverage, seams, normals, cards, export). Plain asserts, no pytest needed: venv/bin/python tests/test_ridge.py (exit code 1 on failure).
-RIDGE_SRC selects the source directory (default ..) (the mutation runner points it at a patched copy).
-Synthetic terrain has a known right answer; the Vienna tests bake the real preset (its rays come from stage0: RIDGE_TILES needs the tiles, or a cached rays file must exist)."""
-import os, sys, math, json, shutil, tempfile, traceback
-SRC = os.environ.get('RIDGE_SRC') or os.path.join(os.path.dirname(os.path.abspath(__file__)), '..'); sys.path.insert(0, SRC) # RIDGE_WORK and RIDGE_TILES must be set (tests/run.sh sets them)
-import numpy as np, ridge, export
-from ridge import W, H
-ALPINE = ridge.load_material('alpine') # the places.json material of every place that names none
-NW = 1280 # the synthetic bakes' window: columns 0..NW of the ring (azimuth 0..72); the pieces that need the whole ring (seams across the wrap, the tile cut) run on the ring
-TW = export.TILE_W + 2 * export.APRON
-_w = lambda x: ridge.ring_cols(x, 0, NW)
-
-EYE = 100.0; GROUND = 50.0 # ground below the eye: every ray climbs, so only the placed blocks make ridges
-ridge.P = dict(id='synthetic', rmax_km=95, eye_m=100.0)
-D = ridge.schedule(False)
-def az_of(x): return (x + 0.5) / W * 360.0
-def col_of(az): return int(round(az / 360.0 * W - 0.5)) % W
-
-def rays(hfun, eye=EYE):
- az = (np.arange(W) + 0.5) / W * 360.0; A = np.zeros((len(D), W), np.float32); Hh = np.zeros_like(A)
- for k, dk in enumerate(D):
- h = hfun(dk, az); Hh[k] = h; A[k] = np.degrees(np.arctan2(h - eye - dk * dk / (2 * ridge.R_EARTH) * (1 - ridge.KREF), dk))
- return A, Hh
-def near_rays(hfun, sigma=0.0):
- """The near march of a synthetic terrain: hfun over ridge.near_schedule() on all W columns, float64, prefiltered like the far march (angles from ridge.P['eye_m']): (d, a, h) as ridge.near_march returns it."""
- dn = ridge.near_schedule(); az = (np.arange(W) + 0.5) / W * 360.0; hn = np.stack([np.broadcast_to(np.asarray(hfun(dk, az), np.float64), az.shape) for dk in dn]); a, h = ridge.prefilter(dn, hn, sigma); return dn, a, h
-def _join(hfun, A, Hh, sigma=0.0):
- """ridge.join_near of raw far rays (K, W) and the near march of the same terrain, cut to the window 0..NW: (D, a, h, nrm) as ridge.cards reads them."""
- d, a, h, nrm = ridge.join_near(D, A, Hh, near_rays(hfun, sigma)); return d, _w(a), _w(h), tuple(_w(x) for x in nrm)
-def theta(h, d): return math.degrees(math.atan2(h - EYE - d * d / (2 * ridge.R_EARTH) * (1 - ridge.KREF), d))
-def in_arc(az, a0, a1): return ((az - a0) % 360.0) <= ((a1 - a0) % 360.0)
-def block(a0, a1, d0, d1, h): return lambda dk, az: np.where(in_arc(az, a0, a1) & (dk >= d0) & (dk < d1), h, 0.0)
-def terrain(*blocks): return lambda dk, az: np.maximum.reduce([np.full_like(az, GROUND)] + [np.asarray(b(dk, az), float) for b in blocks])
-def test_cache_keys_follow_every_input_of_the_cached_array():
- """mosaic-/rays- cache files are keyed by a digest of their inputs. Right answer: identical inputs -> identical key (the preset id does not enter), a changed preset field (eye height, range, position), tile list or baker constant (refraction, detail noise) -> a different key."""
- saved = ridge.P
- try:
- base = dict(id='k1', lat=47.0, lon=11.0, rmax_km=40, eye_m=2000.0); ridge.P = dict(base); k0 = (ridge.rays_key(False), ridge.rays_key(True), ridge.mosaic_key(ridge.P))
- ridge.P = dict(base, id='other'); assert (ridge.rays_key(False), ridge.rays_key(True), ridge.mosaic_key(ridge.P)) == k0, 'the preset id changed the key'
- for fld, v in (('eye_m', 2010.0), ('rmax_km', 41), ('lon', 11.001), ('lat', 47.001)):
- ridge.P = dict(base, **{fld: v}); assert ridge.rays_key(False) != k0[0], ('rays key ignores', fld)
- ridge.P = dict(base, lat=47.0, lon=13.5); assert ridge.mosaic_key(ridge.P) != k0[2], 'mosaic key ignores the tile list'
- ridge.P = dict(base); old = ridge.KREF; ridge.KREF = 0.2
- try: assert ridge.rays_key(False) != k0[0], 'rays key ignores the refraction constant'
- finally: ridge.KREF = old
- old = ridge.DETAIL; ridge.DETAIL = dict(old, amp_m=30.0)
- try: assert ridge.rays_key(True) != k0[1] and ridge.rays_key(False) == k0[0], 'detail key ignores the noise settings (or the plain key follows them)'
- finally: ridge.DETAIL = old
- finally: ridge.P = saved
-def test_paths_come_from_the_environment_with_no_default():
- """Importing the baker without RIDGE_WORK / RIDGE_TILES fails with a message naming the variable (no location is assumed)."""
- import subprocess; env = {k: v for k, v in os.environ.items() if not k.startswith('RIDGE_')}
- for var in ('RIDGE_WORK', 'RIDGE_TILES'):
- e = dict(env); e.update({'RIDGE_WORK': '.', 'RIDGE_TILES': '.'}); del e[var]
- r = subprocess.run([sys.executable, '-I', '-c', 'import sys; sys.path.insert(0, %r); import ridge' % SRC], env=e, capture_output=True, text=True); assert r.returncode and var in r.stderr and 'not set' in r.stderr, (var, r.stderr[-200:])
-
-# ---------------------------------------------------------------------------------------- synthetic bakes: the shared steps of export.bake_place on rays the fixtures make
-def _bake(hfun, splits_km, sigma=0.0, fixed_m=None):
- """prefilter, whole-ring set_view, coverage and the periodic seams on the whole ring (or fixed_m, one seam depth in m for every column), the join of the near march on the whole ring, then the window columns 0..NW (azimuth 0..72) of them and the cards on those, of synthetic rays: the pieces of the bake a fixture can look at cheaply.
- D, a, h, nrm of the result are the JOINED march's window (the near samples first); opaque and edges are the far march's."""
- A, Hh = rays(hfun); ridge.P.update(eye_m=EYE); a, h = ridge.prefilter(D, Hh, sigma); v = ridge.set_view(a.max(0)); cov_ring = ridge.coverage(D, a); cov = _w(cov_ring)
- sm = _w(ridge.seams(cov_ring, [k * 1000.0 for k in splits_km], D)) if fixed_m is None else np.array([np.full(NW, float(v)) for v in fixed_m])
- Dj, aj, hj, nj = ridge.join_near(D, a, h, near_rays(hfun, sigma)); aw, hw, nrm = _w(aj), _w(hj), tuple(_w(x) for x in nj)
- return dict(cards=ridge.cards(Dj, aw, hw, sm, nrm, material=ALPINE), splits_km=list(splits_km), seams=sm, cov=cov, opaque=ridge.opaque(_w(a)), edges=ridge.log_edges(D), D=Dj, a=aw, h=hw, nrm=nrm, v=v)
-def _canvas(card, key='alpha'):
- out = np.zeros((H, NW) + card[key].shape[2:], np.float32); out[card['top']:card['top'] + card[key].shape[0]] = card[key]; return out
-def _row(deg): return int(np.argmin(np.abs(ridge.rowang - deg)))
-THREE = terrain(block(0, 359.99, 3000, 3600, 350), block(0, 359.99, 20000, 21500, 1800), block(0, 359.99, 70000, 72000, 7000)) # ridges at 3, 20 and 70 km, each taller in angle than the one before
-WIDE3 = terrain(block(0, 359.99, 9000, 10000, 300), block(0, 359.99, 38000, 40000, 2000), block(0, 359.99, 70000, 72000, 3000)) # low near hills, then ridges at 39 and 71 km: the frame reaches below the ground at the seams (so cards have wall rows) and the horizon is inside it
-WALLED = terrain(block(0, 359.99, 9000, 10000, 300), block(0, 359.99, 38000, 40000, 2000))
-def _ramp(dk, az): return np.maximum(GROUND, np.where(dk > 12000, (dk - 12000) * 0.045 + 50.0, 0.0)) # a slope the first sample of card 1 stands on: n_up about 0.9, so the material would be rock if the face counted
-
-def test_the_vertical_anchors_read_the_whole_ring():
- """set_view anchors the highest skyline angle of the ring at 4% of the frame and the lowest at 66%, wherever they are: a peak at column 3555 and a low at column 5333, both outside the first 72 degrees, set the mapping."""
- sk = np.full(W, 1.0); sk[3555] = 3.0; sk[5333] = -1.0; sk[10] = 1.5; v = ridge.set_view(sk)
- assert v['sky_deg'] == 3.0 and v['low_deg'] == -1.0 and abs(v['px_per_deg'] - 0.62 * H / 4.0) < 1e-9 and abs(v['horizon_row'] - ridge.TOP_DEG * v['px_per_deg']) < 1e-9 and abs(ridge.TOP_DEG - (3.0 + 0.04 * H / v['px_per_deg'])) < 1e-9, v
-def test_seams_fall_in_depth_gaps():
- """Three ridges at 3, 20 and 70 km: targets [6, 40] give a seam in (3, 20) and one in (20, 70) in EVERY column, ordered with at least 0.4 nat between; targets [6] give one seam in (3, 20)."""
- b = _bake(THREE, [6, 40]); s = b['seams']; assert s.shape == (2, NW)
- assert (s[0] > 3600).all() and (s[0] < 20000).all() and (s[1] > 21500).all() and (s[1] < 70000).all(), (s.min(1), s.max(1)); assert (np.log(s[1]) - np.log(s[0]) >= 0.4 - 1e-9).all()
- s1 = _bake(THREE, [6])['seams']; assert s1.shape == (1, NW) and (s1[0] > 3600).all() and (s1[0] < 20000).all(), (s1.min(), s1.max())
-def _recede(d0, d1, thick=300.0, hgt=1500.0):
- """A ridge `thick` m thick whose distance runs from d0 m at azimuth 0 to d1 m at azimuth 72, and again in every 72 degrees of the ring (so the ring's skyline is the ridge's everywhere, as the window's was)."""
- return terrain(lambda dk, az: np.where(np.abs(dk - (d0 + (d1 - d0) * ((az % 72) / 72.0))) < thick / 2, hgt, 0.0))
-def _receding(dk, az): return _recede(4000.0, 15000.0)(dk, az)
-def test_the_swept_rows_term_keeps_the_seam_from_hopping_under_a_stronger_pull():
- """With the authored depth pulling five times as hard (0.1 instead of 0.02) the seams of the 3-12, 4-15 (split 10) and 6-14 km ridges still follow the ridge, and twice as hard (0.04) those of the 4-15 (split 6), 5-30 and 8-40 km ridges: only the cost of the visible rows it would sweep holds it back (with that term out of the cost it hops between two columns)."""
- old = ridge.SEAM_PRIOR
- try:
- ridge.SEAM_PRIOR = 0.1
- for d0, d1, sp in ((3, 12, 6), (4, 15, 10), (6, 14, 9)):
- j0, j1, cover = _alpha_jumps(d0, d1, sp); assert j0 < 0.35 and j1 < 0.35 and cover > 0.999, ('the seam hopped across the ridge', (d0, d1, sp), j0, j1)
- ridge.SEAM_PRIOR = 0.04 # these three tear above 0.04 (measured: 0.05 tears 5-30 and 8-40, 0.1 tears 4-15/6): the seam is closed on the ring, so a stronger pull makes one tear per period cheaper than staying beyond the ridge
- for d0, d1, sp in ((4, 15, 6), (5, 30, 12), (8, 40, 15)):
- j0, j1, cover = _alpha_jumps(d0, d1, sp); assert j0 < 0.35 and j1 < 0.35 and cover > 0.999, ('the seam hopped across the ridge', (d0, d1, sp), j0, j1)
- finally: ridge.SEAM_PRIOR = old
-RECEDING = [(4, 15, 6), (3, 12, 6), (5, 30, 12), (8, 40, 15), (4, 15, 10), (6, 14, 9)] # km at azimuth 0, km at azimuth 72, authored split km
-def _alpha_jumps(d0, d1, split):
- """The two cards' alpha on the ridge body (crest + 4 rows), column to column: the largest step of each. """
- b = _bake(_recede(d0 * 1000.0, d1 * 1000.0), [split]); c0 = _canvas(b['cards'][0]); c1 = _canvas(b['cards'][1]); crest = np.argmax(b['opaque'] > 0.5, axis=0); r = np.clip(crest + 4, 0, H - 1); ok = crest > 0
- a0 = c0[r, np.arange(NW)]; a1 = c1[r, np.arange(NW)]; return float(np.abs(np.diff(a0[ok])).max()), float(np.abs(np.diff(a1[ok])).max()), (a0 + (1 - a0) * a1)[ok].min()
-def test_seam_never_splits_a_receding_ridge_side_by_side():
- """Six synthetic ridges whose distance recedes across the window (4 to 15, 3 to 12, 5 to 30, 8 to 40, 4 to 15 and 6 to 14 km, targets 6, 6, 12, 15, 10, 9 km): the nearer and the farther card's alpha on the ridge's body never jumps by 0.35 between neighbouring
- columns (a tear: one card here, the other next door; fading slowly over the cross-fade is fine) and the two cards together cover the body. With the swept-rows term out of the seam cost the seam hops across the ridge; with the prior at 0.1 it hops on two of the six."""
- for d0, d1, sp in RECEDING:
- j0, j1, cover = _alpha_jumps(d0, d1, sp); assert j0 < 0.35 and j1 < 0.35, ('a card appears or vanishes between neighbouring columns', (d0, d1, sp), j0, j1); assert cover > 0.999, ('the ridge body is not covered by the two cards together', (d0, d1, sp))
-def test_far_card_keeps_terrain_hidden_behind_a_nearer_ridge():
- """Layered depth: a far ridge (20 km) lower in angle than the near ridge (3 km) in azimuth 0..36 and higher in 36..72. Where the near card is opaque in front of the far ridge (columns 100..500) the mid card still holds that ridge, at its distance;
- where the far ridge shows above the near one (column 900) the near card is empty and the mid card holds it."""
- b = _bake(terrain(block(0, 359.99, 3000, 3600, 350), block(0, 36, 20000, 21500, 1500), block(36, 359.99, 20000, 21500, 2400)), [6]); c0, c1 = _canvas(b['cards'][0]), b['cards'][1]; a1 = _canvas(c1); ld1 = _canvas(c1, 'logd'); r = _row(theta(1500, 20000) - 0.2)
- for x in (100, 300, 500):
- assert c0[r, x] > 0.99, ('the near ridge does not cover the far one here', x); assert a1[r, x] > 0.99, ('the far card lost the terrain behind the near ridge', x); assert abs(math.exp(ld1[r, x]) - 20000) < 1500, (x, math.exp(ld1[r, x]))
- r = _row(0.5 * (theta(350, 3000) + theta(2400, 20000))); assert c0[r, 900] < 0.01 and a1[r, 900] > 0.99 and abs(math.exp(ld1[r, 900]) - 20000) < 1500, (c0[r, 900], a1[r, 900])
-def test_crossfade_is_complementary():
- """A ridge across the seam (seam fixed at 6 km, the ridge's front face at 5.9 km inside the cross-fade): the nearer card is partly transparent over the window, the farther card is opaque on the ridge, and the composite stays at coverage 1 below the crest."""
- hf = terrain(block(0, 359.99, 5900, 6100, 900)); A, Hh = rays(hf); ridge.P.update(eye_m=EYE); ridge.set_view(A.max(0)); aw = _w(A); Dj, aj, hj, nj = _join(hf, A, Hh)
- cs = ridge.cards(Dj, aj, hj, np.full((1, NW), 6000.0), nj, material=ALPINE); c0, c1 = _canvas(cs[0]), _canvas(cs[1]); crest = int(np.argmax(ridge.opaque(aw)[:, 500] > 0.5)); r = crest + 6
- assert 0.2 < c0[r, 500] < 0.8, ('the near card does not fade over the window', c0[r, 500]); assert c1[r, 500] > 0.99, 'the far card is not opaque on the ridge'
- comp = 1 - (1 - c0) * (1 - c1); assert (comp[crest + 3:, :] > 0.999).all(), 'the composite dips below coverage 1 under the crest'
-def test_normals_of_a_tilted_plane():
- """A plane with front slope s (north) and lateral slope l (east), seen towards azimuth 0: n = (-E s, -E l, 1) normalised, E the authored exaggeration (a dropped E fails)."""
- s, l, E = 0.12, -0.08, 3.0; saved = ridge.PXDEG_V; ridge.PXDEG_V = E * ridge.HPX_DEG
- try:
- az = (np.arange(W) + 0.5) / W * 2 * math.pi; h = 300.0 + s * D[:, None] * np.cos(az)[None, :] + l * D[:, None] * np.sin(az)[None, :]; nr, nt, nu = ridge.normals(D, h); k = len(D) // 2; x = [0, 1, 2, W - 2, W - 1]
- want = np.array([-E * s, -E * l, 1.0]); want /= np.linalg.norm(want); got = np.array([nr[k, x].mean(), nt[k, x].mean(), nu[k, x].mean()]); assert np.abs(got - want).max() < 2e-3, (got, want)
- assert np.abs(nr ** 2 + nt ** 2 + nu ** 2 - 1).max() < 1e-9
- finally: ridge.PXDEG_V = saved
-def test_lateral_slope_uses_equal_distance_not_equal_row():
- """A plane with lateral slope l at 20 km, a 3 km ridge only for azimuth above 40 deg: at the 20 km samples, in the columns around the ridge's azimuth edge, the across-ray slope is the plane's own l (neighbouring columns at the same distance), not a step between the ridge and the plane."""
- l = 0.05; saved = ridge.PXDEG_V; ridge.PXDEG_V = 2.0 * ridge.HPX_DEG
- try:
- az = (np.arange(W) + 0.5) / W * 360.0; A, Hh = rays(lambda dk, a: np.where(dk > 10000, GROUND + l * dk * np.radians(a), GROUND) + np.where((a > 40) & (dk >= 3000) & (dk < 3600), 400.0, 0.0))
- nr, nt, nu = ridge.normals(D, Hh); k = int(np.searchsorted(D, 20000)); x0 = int(40 / 360 * W); want = -2.0 * l / math.sqrt(1 + 4 * l * l + (2.0 * 0.0) ** 2)
- assert np.abs(nt[k, x0 - 20:x0 + 20] / nu[k, x0 - 20:x0 + 20] + 2.0 * l).max() < 5e-3, nt[k, x0 - 5:x0 + 5] / nu[k, x0 - 5:x0 + 5]
- finally: ridge.PXDEG_V = saved
-def test_prefilter_flattens_roofs_and_keeps_hills():
- """A 25 m bump 60 m wide at 2 km drops below 5 m; a 400 m hill (3 km scale) keeps at least 90% of its height."""
- ridge.P.update(eye_m=EYE); roof = lambda dk, az: GROUND + np.where((az < 1.72) & (dk >= 2000) & (dk < 2060), 25.0, 0.0)
- hill = lambda dk, az: GROUND + 400.0 * np.exp(-((dk - 10000.0) / 3000.0) ** 2 - ((np.radians(((az + 180) % 360) - 180) * dk) / 3000.0) ** 2)
- for f, name in ((roof, 'roof'), (hill, 'hill')):
- A, Hh = rays(f); a, h = ridge.prefilter(D, Hh, 100.0); k = int(np.argmin(np.abs(D - (2030 if name == 'roof' else 10000)))); x = int(np.argmax(Hh[k]))
- if name == 'roof': assert h[k, x] - GROUND < 5.0 and Hh[k, x] - GROUND >= 24.9, ('the roof survives the low-pass', h[k, x] - GROUND)
- else: assert h[k, x] - GROUND >= 0.9 * 400.0, ('the hill is flattened', h[k, x] - GROUND)
- assert np.allclose(ridge.prefilter(D, Hh, 0.0)[1], Hh), 'sigma 0 changed the heights'
-def test_crest_rows_have_fractional_coverage():
- """The top row of a card's run has alpha equal to the share of its angular span under the running maximum, and the rows below it are 1 (a lower ridge in columns 0..640 so its crest is not at the frame's top edge)."""
- hf = terrain(block(0, 36, 5000, 5600, 500), block(36, 359.99, 5000, 5600, 560)); A, Hh = rays(hf); ridge.P.update(eye_m=EYE); ridge.set_view(A.max(0)); aw = _w(A); Dj, aj, hj, nj = _join(hf, A, Hh); c = ridge.cards(Dj, aj, hj, np.zeros((0, NW)), nj, material=ALPINE)[0]
- cv = _canvas(c)[:, 300]; r = int(np.argmax(cv > 0)); top = float(aw.max(0)[300]); p = 1.0 / ridge.PXDEG_V; want = (top - (ridge.rowang[r] - 0.5 * p)) / p
- assert 0.0 < want < 1.0 and abs(cv[r] - want) < 0.01, (cv[r], want, r); assert (cv[r + 1:] > 0.999).all()
-def test_cards_composite_to_the_opaque_view():
- """Alpha-over of all cards, last to first, equals the opaque march coverage within 0.02 everywhere, and where opaque the nearest solid card's distance is the first-hit distance of the march."""
- for hf, sp in ((THREE, [6, 40]), (terrain(_receding), [6]), (terrain(block(0, 359.99, 3000, 3600, 350), block(0, 36, 20000, 21500, 700), block(36, 359.99, 20000, 21500, 1800)), [6])):
- b = _bake(hf, sp); comp = 1 - np.prod([1 - _canvas(c) for c in b['cards']], axis=0); assert np.abs(comp - b['opaque']).max() < 0.02, np.abs(comp - b['opaque']).max()
- rm = np.maximum.accumulate(b['a'], axis=0); col = 640; r = _row(float(b['a'][:, col].max()) - 0.5); k = int(np.searchsorted(rm[:, col], ridge.rowang[r], 'left')); first = None
- for c in b['cards']:
- if _canvas(c)[r, col] > 0.99: first = math.exp(_canvas(c, 'logd')[r, col]); break
- assert first is not None and abs(first - b['D'][k]) < 0.1 * b['D'][k] + 60, (first, b['D'][k])
-
-# ---------------------------------------------------------------------------------------- the ring: tiles are crops of per-column results, the wrap is periodic
-_RING = {}
-def _ring(key, hfun, splits_km):
- """export.cut_ring on synthetic rays (prefilter, whole-ring set_view, then the ring cut), cached by key: dict(bake = what export.bake_place returns, minus the place)."""
- if key not in _RING:
- A, Hh = rays(hfun); ridge.P.update(eye_m=EYE); a, h = ridge.prefilter(D, Hh, 0.0); v = ridge.set_view(a.max(0)); r = export.cut_ring(D, a, h, splits_km, near_rays(hfun), ALPINE)
- _RING[key] = dict(r, op_ring=ridge.opaque(a), place=dict(id='synthetic', name='Synthetic', lat=48.0, lon=16.0, altitude_km=0.05, eye_m=EYE, tz='Europe/Vienna'), v=v,
- view=dict(look_az_deg=36.0, plane_h=H, px_per_deg_h=ridge.HPX_DEG, px_per_deg_v=v['px_per_deg'], exaggeration=v['exaggeration'], horizon_row=v['horizon_row'], sky_row=v['sky_row'] * H, near_row=v['near_row'] * H),
- meta=dict(curvature=dict(r_earth_m=ridge.R_EARTH, k_ref=ridge.KREF), encoding=dict(log_d_min=math.log(D[0]), log_d_max=math.log(D[-1]))))
- return _RING[key]
-def _tile_canvas(card, key='alpha'):
- out = np.zeros((H, TW) + card[key].shape[2:], np.float32); out[card['top']:card['top'] + card[key].shape[0]] = card[key]; return out
-def _across_north(dk, az): return np.where(in_arc(az, 340, 20) & (np.abs(dk - (12000.0 + 400.0 * (((az + 180) % 360) - 180))) < 200), 1500.0, 0.0) # a ridge across the wrap at 4 km (az -20) to 20 km (az +20)
-ACROSS = terrain(block(0, 359.99, 3000, 3600, 350), _across_north, block(0, 359.99, 70000, 72000, 3000), block(0.0, 0.05, 6000, 7000, 2500), block(359.95, 359.99, 6000, 7000, 2500)) # and a tower one column wide on each side of north
-def test_ring_wrap():
- """A ridge across column 6399 / 0 (receding from 4 km at -20 deg to 20 km at +20 deg): the seam is continuous over the wrap (its jump there no larger than the largest jump elsewhere), tile 31's right apron equals tile 0's first columns and tile 0's left apron
- tile 31's last (every card, pixel for pixel), neighbouring tiles agree on their shared apron, and the interiors of all tiles composite to the opaque ring."""
- b = _ring('across', ACROSS, [8]); sm = np.log(b['seams'][0]); jumps = np.abs(np.diff(np.append(sm, sm[0]))); assert jumps[-1] <= jumps[:-1].max() + 1e-9, ('the seam jumps over the wrap', jumps[-1], jumps[:-1].max())
- A_ = export.APRON; T_ = export.TILE_W; ring = np.zeros((H, W)); op = np.zeros((H, W))
- for t, tile in enumerate(b['cards']):
- nxt = b['cards'][(t + 1) % export.TILES]
- for i, c in enumerate(tile):
- assert (_tile_canvas(c)[:, T_ + A_:T_ + 2 * A_] == _tile_canvas(nxt[i])[:, A_:2 * A_]).all(), ('the apron differs from the neighbour', t, i); seen = _tile_canvas(c)[:, T_ + A_:T_ + 2 * A_] > 0
- for key in ('logd', 'wall'): assert (_tile_canvas(c, key)[:, T_ + A_:T_ + 2 * A_][seen] == _tile_canvas(nxt[i], key)[:, A_:2 * A_][seen]).all(), ('the apron differs from the neighbour', t, i, key)
- comp = 1 - np.prod([1 - _tile_canvas(c) for c in tile], axis=0); ring[:, t * T_:(t + 1) * T_] = comp[:, A_:A_ + T_]; op[:, t * T_:(t + 1) * T_] = b['opaque'][t][:, A_:A_ + T_]
- assert np.abs(ring - op).max() < 0.02, np.abs(ring - op).max(); assert np.abs(ring - b['op_ring']).max() < 0.02 and b['op_ring'][:, [0, W - 1]].sum(0).min() > b['op_ring'][:, [1, W - 2]].sum(0).max() + 10, 'the tiles hold the wrong columns of the ring (a tower on column 0 and column 6399 is the fixture)'
- assert b['opaque'][0].shape == (H, T_ + 2 * A_) and (b['opaque'][0][:, :A_] == b['opaque'][export.TILES - 1][:, T_:T_ + A_]).all(), 'the left apron of tile 0 is not the last columns of tile 31'
-def test_every_tile_is_cut_at_its_own_seam():
- """The seams sweep from 5 km to 30 km once round the ring (ridge.seams stands in): in every tile the near card holds nothing beyond its columns' seam (plus the cross-fade) and the far card nothing before it, so no tile is cut with another tile's seams."""
- saved = ridge.seams; sweep = 5000.0 * 6.0 ** (np.arange(W) / W)
- ridge.seams = lambda cov, targets, d: sweep[None, :]
- try: b = _ring('swept', terrain(block(0, 359.99, 3000, 3600, 350), block(0, 359.99, 20000, 21500, 1800), block(0, 359.99, 70000, 72000, 3000)), [8])
- finally: ridge.seams = saved
- T_, A_ = export.TILE_W, export.APRON; ix = slice(A_, A_ + T_); xf = ridge.XF; seen = 0
- for t, tile in enumerate(b['cards']):
- s_t = np.broadcast_to(sweep[np.arange(T_) + t * T_], (H, T_)); c0, c1 = tile[0], tile[1]; d0 = np.exp(_tile_canvas(c0, 'logd')[:, ix]); d1 = np.exp(_tile_canvas(c1, 'logd')[:, ix])
- n0 = (_tile_canvas(c0)[:, ix] >= 0.5) & (_tile_canvas(c0, 'wall')[:, ix] < 0.5); n1 = (_tile_canvas(c1)[:, ix] >= 0.5) & (_tile_canvas(c1, 'wall')[:, ix] < 0.5); seen += int(n0.sum() + n1.sum())
- assert (d0[n0] <= s_t[n0] * math.exp(xf) * 1.02 + 100).all() and (d1[n1] >= s_t[n1] * math.exp(-xf) * 0.98 - 100).all(), ('a card tile is cut at another tile seam', t)
- assert seen > 100_000, 'the fixture holds no card pixels'
-def test_tile_is_a_crop_of_the_columns():
- """ridge.cards on a tile's columns (the 200 it owns and the apron) equals the same columns of ridge.cards on a wider run of columns, pixel for pixel, for fixed seams: the tile cut changes no pixel and adds no seam."""
- b = _bake(terrain(_receding, block(0, 359.99, 3000, 3600, 350)), [6]); x0 = 500; n = export.TILE_W + 2 * export.APRON; sl = slice(x0, x0 + n)
- tile = ridge.cards(b['D'], b['a'][:, sl], b['h'][:, sl], b['seams'][:, sl], tuple(x[:, sl] for x in b['nrm']), material=ALPINE)
- for c, w in zip(tile, b['cards']):
- assert np.array_equal(_canvas(w)[:, sl], _tile_canvas(c)), 'a tile is not a crop of the columns'; seen = _tile_canvas(c) > 0
- for key in ('albedo', 'n_r', 'n_t', 'logd', 'wall', 'near'): assert np.array_equal(_canvas(w, key)[:, sl][seen], _tile_canvas(c, key)[seen]), ('a tile is not a crop of the columns', key)
-
-# ---------------------------------------------------------------------------------------- toy bakes: tile data made by hand, for the packer and the writer
-def _toy(dists=(3000.0, 15000.0, 50000.0), bands=(300, 400, 500), tops=(300, 150, 60), amp=0.01):
- """TILES tiles of len(dists) cards: card i is a solid band of rows (top, h) whose distance is dists[i] x (1 + amp sin x) across the columns, no wall; the opaque view is their composite. Returns the bake dict pack() reads."""
- n = export.TILE_W + 2 * export.APRON; x = np.arange(n); tile = []; k = len(dists)
- for i in range(k):
- ld = np.log(dists[i] * (1 + amp * np.sin(x * 0.3)))[None, :].repeat(bands[i], 0).astype(np.float32)
- tile.append(dict(top=tops[i], alpha=np.ones((bands[i], n), np.float32), albedo=np.full((bands[i], n, 3), 0.4, np.float32), n_r=np.full((bands[i], n), 0.1, np.float32), n_t=np.full((bands[i], n), -0.1, np.float32), logd=ld, wall=np.zeros((bands[i], n), bool), near=np.zeros((bands[i], n), bool)))
- comp = export.composite_alpha([(c['top'], c['alpha']) for c in tile], H, n)
- return dict(cards=[[dict(c) for c in tile] for _ in range(export.TILES)], splits_km=[6.0 * (j + 1) for j in range(k - 1)], seams=np.tile(np.array(dists[:-1])[:, None] * 0.5, (1, W)), opaque=[comp.copy() for _ in range(export.TILES)],
- view=dict(look_az_deg=36.0, plane_h=H, px_per_deg_h=ridge.HPX_DEG, px_per_deg_v=100.0, exaggeration=5.0, horizon_row=60.0, sky_row=24.0, near_row=396.0), meta=dict(curvature=dict(r_earth_m=ridge.R_EARTH, k_ref=ridge.KREF), encoding=dict(log_d_min=math.log(500.0), log_d_max=math.log(100000.0))),
- place=dict(id='toy', name='Toy', lat=0.0, lon=0.0, altitude_km=0.0, eye_m=1.0, tz='UTC'))
-def _write(out, b, packed, **kw):
- args = dict(place=b['place'], view=b['view'], meta=b['meta'], packed=packed, opaque=b['opaque']); args.update(kw); return export.write_bake(out, **args)
-def _refuses(out, b, packed, why, **kw):
- try: _write(out, b, packed, **kw)
- except export.Refusal: assert not os.path.exists(out), ('a refused bake left files', why)
- else: assert False, why
-def _pins():
- assert (export.RING_W, export.TILES, export.TILE_W, export.APRON, export.MAX_CARDS, export.BAKER_VERSION) == (6400, 32, 200, 2, 6, 7), 'the ring layout is pinned'
- assert (export.TILE_BYTES_MAX, export.PLACE_BYTES_MAX, export.RESIDENT_BYTES_MAX, export.FIT_PX_MAX, export.R_MAX_FLOOR_M, export.PHI_STEPS) == (235_000, 7_500_000, 20_000_000, 24.0, 25.0, 24), 'the budgets and the fit bound are pinned'
- assert abs(export.HFOV_MAX_DEG - 72 / 1.1) < 1e-12
-
-def test_schema3():
- """The manifest validates; a tile array of the wrong length, a missing apron, a file named for another tile, and any key of schema 2 left behind (the camera's heading range and offset, the window, the plane width, the card's median and scale, the whole-bake w and h) are refused; the schema file is pinned; the layout constants are pinned."""
- _pins(); d = tempfile.mkdtemp()
- try:
- b = _toy(); pk = export.pack(b); dest = _write(d, b, pk); m = json.load(open(dest / 'manifest.json')); export.validate_manifest(m); mk = lambda: json.loads(json.dumps(m))
- assert m['schema'] == 3 and m['baker_version'] == 7 and set(m['view']) >= {'ring_w', 'tile_w', 'tiles', 'apron'} and 'rows_above' not in m['view'] and m['camera'] == dict(r_max_m=pk['camera']['r_max_m'], r_max_forward_m=pk['camera']['r_max_forward_m']) and m['camera']['r_max_forward_m'] >= m['camera']['r_max_m'] and len(m['tiles']) == 32 and 'w' not in m and 'h' not in m
- def bad(f, why):
- x = mk(); f(x)
- try: export.validate_manifest(x)
- except export.Refusal: return
- raise AssertionError(why)
- bad(lambda x: x['camera'].pop('r_max_forward_m'), 'a camera without its forward offset validated'); bad(lambda x: x['camera'].pop('r_max_m'), 'a camera without its offset validated')
- bad(lambda x: x['tiles'].pop(), 'a manifest of 31 tiles validated'); bad(lambda x: x['tiles'][3].pop(), 'a tile with a card missing validated'); bad(lambda x: x['tiles'][3].append(None), 'a tile with an extra card validated'); bad(lambda x: x['view'].pop('apron'), 'a missing apron validated')
- bad(lambda x: x['view'].update(apron=0), 'an apron of 0 validated'); bad(lambda x: x['tiles'][2][1]['colour'].update(file='card-1-t03-colour.webp'), 'a file named for another tile validated')
- bad(lambda x: x['tiles'].__setitem__(slice(None), [[None] * 3 for _ in range(32)]), 'a card null in every tile validated'); bad(lambda x: x.update(bytes=x['bytes'] + 1), 'a wrong byte total validated')
- for where, key in (('camera', 'heading_max' + '_deg'), ('view', 'window' + '_deg'), ('view', 'plane' + '_w'), ('view', 'rows_above'), ('camera', 'r_m'), (None, 'w'), (None, 'h')): # schema 2's names are spelled in pieces: the baker's tree must hold none of them
- bad(lambda x: (x[where] if where else x).update({key: 1}), f'a leftover {key} validated')
- bad(lambda x: x['cards'][0].update(**{'median' + '_m': 1.0}), 'a leftover median validated'); bad(lambda x: x['cards'][0].update(scale=1.0), 'a leftover scale validated'); bad(lambda x: x['tiles'][0][0].update(scale=1.0), 'a tile entry with a scale validated')
- bad(lambda x: x['tiles'][0][0].update(distance_m='far'), 'a distance that is not a number validated'); bad(lambda x: x['place'].update(tz='Mars/Olympus'), 'a zone the system does not know validated')
- assert json.load(open(os.path.join(SRC, 'ridge-bake.schema.json'))) == json.loads(json.dumps(export.SCHEMA)), 'ridge-bake.schema.json is stale (export.py --write-schema)'
- finally: shutil.rmtree(d)
-def test_manifest_v3_writer():
- """Two packs of one bake give the same bytes and bake_id; tiles[t][i] files are where the manifest says with the sizes it says and decode to tile_w + 2 apron columns; the bake_id is the sha256 of the files tile-major, then card, colour then geometry; the index points at the dir, a
- rebake replaces the old dir, cards are nearest first with their seam medians, the attribution is the four pinned strings."""
- d = tempfile.mkdtemp()
- try:
- b = _toy(); pk = export.pack(b); pk2 = export.pack(b); files = lambda p: [(e['colour'], e['geometry']) for row in p['tiles'] for e in row if e]; assert files(pk) == files(pk2), 'two packs gave different bytes'
- a = _write(d + '/a', b, pk); m = json.load(open(a / 'manifest.json')); export.validate_manifest(m); text = (a / 'manifest.json').read_bytes().decode('utf-8'); blank = text.replace(f'"bake_id": "{m["bake_id"]}"', f'"bake_id": "{export.BAKE_ID_BLANK}"'); assert blank != text and a.name == 'toy-' + m['bake_id'] and sorted(os.listdir(d + '/a')) == sorted(['index.json', a.name])
- import hashlib; want = hashlib.sha256(blank.encode() + b''.join(c + g for c, g in files(pk))).hexdigest()[:12]; assert m['bake_id'] == want and export.bake_id(blank, files(pk)) == want, 'bake_id is not the sha256 of the manifest with its id blanked, then the tile files tile-major, then card, colour then geometry'
- assert export.bake_id(blank, [(g, c) for c, g in files(pk)]) != want and export.bake_id(blank, files(pk)[::-1]) != want and export.bake_id(blank, [f for i, f in enumerate(files(pk)) if i % 3 != 1] + [f for i, f in enumerate(files(pk)) if i % 3 == 1]) != want, 'bake_id ignores the file order'
- pk3 = [list(f) for f in files(pk)]; pk3[40][1] += b'x'; assert export.bake_id(blank, [tuple(f) for f in pk3]) != want, 'a changed byte kept the bake_id'
- assert export.bake_id(blank.replace('"r_max_forward_m"', '"r_max_forward_m "', 1), files(pk)) != want and export.bake_id(blank + ' ', files(pk)) != want, 'a changed manifest kept the bake_id'
- import pathlib; was = pathlib.Path.write_text; pathlib.Path.write_text = lambda self, data, *a, **k: open(self, 'wb').write(data.replace('\n', '\r\n').encode('utf-8')) # a platform whose text files end lines with CRLF
- try: w = _write(d + '/crlf', b, pk)
- finally: pathlib.Path.write_text = was
- raw = (w / 'manifest.json').read_bytes(); idx_raw = open(d + '/crlf/index.json', 'rb').read(); assert w.name == a.name and b'\r' not in raw and b'\r' not in idx_raw, 'the manifest or the index was written with the platform newline: the bytes served are not the bytes the id was hashed from'
- assert hashlib.sha256(raw.replace(m['bake_id'].encode(), export.BAKE_ID_BLANK.encode()) + b''.join(c + g for c, g in files(pk))).hexdigest()[:12] == m['bake_id']
- pk4 = dict(pk, camera=dict(pk['camera'], r_max_forward_m=pk['camera']['r_max_forward_m'] + 0.1)); a4 = _write(d + '/d', b, pk4); assert a4.name != a.name and [(e['colour'], e['geometry']) for row in pk4['tiles'] for e in row if e] == files(pk), 'a manifest moved under the same bake id (tile bytes identical, camera differs)'
- assert m['cards'][0]['near_m'] is None and m['cards'][-1]['far_m'] is None and m['cards'][0]['far_m'] == m['cards'][1]['near_m'] and len(m['cards']) == 3
- for t, row in enumerate(m['tiles']):
- for i, e in enumerate(row):
- for kind in ('colour', 'geometry'): f = a / e[kind]['file']; assert f.stat().st_size == e[kind]['bytes'] and export.decode(f.read_bytes()).shape[:2] == (e['h'], export.TILE_W + 2 * export.APRON), (t, i, kind)
- assert m['bytes'] == sum(e[k]['bytes'] for row in m['tiles'] for e in row for k in ('colour', 'geometry')) and m['encoding']['normal'] == 'rt8' and m['curvature'] == dict(r_earth_m=ridge.R_EARTH, k_ref=ridge.KREF)
- idx = json.load(open(d + '/a/index.json')); export.validate(idx, export.SCHEMA['$defs']['index']); assert idx == dict(schema=1, default='toy', places={'toy': a.name})
- want = dict(credit_line='Contains modified Copernicus data: DEM © DLR e.V. 2010-2014 and © Airbus Defence and Space GmbH 2014-2018 provided under COPERNICUS by the European Union and ESA; all rights reserved.',
- licence='Copernicus DEM licence: free, full and open access, with the credit line shown', dem_source='Copernicus DEM GLO-30 (30 m)', url='https://spacedata.copernicus.eu/collections/copernicus-digital-elevation-model'); assert m['attribution'] == want, m['attribution']
- c = _write(d + '/a', b, pk); assert c.name == a.name; other = dict(b['place'], id='other'); _write(d + '/a', b, pk, place=other); assert json.load(open(d + '/a/index.json'))['default'] == 'toy'
- _write(d + '/a', b, pk, place=other, default='other'); assert json.load(open(d + '/a/index.json'))['default'] == 'other'
- idx = json.load(open(d + '/a/index.json')); idx['default'] = 'gone'; open(d + '/a/index.json', 'w').write(json.dumps(idx)); _write(d + '/a', b, pk, place=other); assert json.load(open(d + '/a/index.json'))['default'] == 'other'
- finally: shutil.rmtree(d)
-def test_tile_crop_and_null():
- """Each card tile is exactly the rows where its 8-bit alpha is non-zero (top and h in the manifest are those rows, the files decode to that band, the written alpha is the card's); a card with no rows in a tile is null there, writes no file and the bake still validates;
- a card empty everywhere is refused naming the splits, and a card with no solid terrain in any tile is refused."""
- d = tempfile.mkdtemp()
- try:
- b = _ring('wide3', WIDE3, [20, 55]); pk = export.pack(b); dest = _write(d, b, pk); m = json.load(open(dest / 'manifest.json'))
- for t in (0, 9, 31):
- for c, e in zip(b['cards'][t], m['tiles'][t]):
- rows = np.flatnonzero(np.rint(_tile_canvas(c) * 255).max(1) > 0); assert e['top'] == rows[0] and e['h'] == rows[-1] - rows[0] + 1 == c['alpha'].shape[0], (t, e, rows[0], rows[-1])
- col = export.decode((dest / e['colour']['file']).read_bytes()); assert col.shape[:2] == (e['h'], export.TILE_W + 2 * export.APRON) and np.abs(col[..., 3].astype(int) - np.rint(c['alpha'] * 255)).max() == 0, 'the written alpha is not the card alpha'
- t0 = _toy(); cs = [[dict(c) for c in tile] for tile in t0['cards']]; empty = dict(top=0, alpha=np.zeros((0, 204), np.float32), albedo=np.zeros((0, 204, 3), np.float32), n_r=np.zeros((0, 204), np.float32), n_t=np.zeros((0, 204), np.float32), logd=np.zeros((0, 204), np.float32), wall=np.zeros((0, 204), bool))
- cs[5][2] = empty; op = [x.copy() for x in t0['opaque']]; op[5] = export.composite_alpha([(c['top'], c['alpha']) for c in cs[5] if c['alpha'].shape[0]], H, 204); b5 = dict(t0, cards=cs, opaque=op); pk5 = export.pack(b5)
- assert pk5['tiles'][5][2] is None and pk5['tiles'][4][2] is not None; dest = _write(d + '/null', b5, pk5); m5 = json.load(open(dest / 'manifest.json')); assert m5['tiles'][5][2] is None and not (dest / export.tile_file(2, 5, 'colour')).exists() and (dest / export.tile_file(2, 4, 'colour')).exists()
- for i, why in ((1, '20 km'), (2, '55 km')):
- gone = [[empty if j == i else c for j, c in enumerate(tile)] for tile in b['cards']]
- try: export.pack(dict(b, cards=gone))
- except export.Refusal as e: assert f'card {i} is empty' in str(e) and why in str(e), str(e)
- else: assert False, ('an empty card', i, 'was packed')
- liquid = [[dict(c, alpha=c['alpha'] * 0.4) if j == 1 else c for j, c in enumerate(tile)] for tile in t0['cards']]
- try: export.pack(dict(t0, cards=liquid))
- except export.Refusal as e: assert 'no solid terrain' in str(e), str(e)
- else: assert False, 'a card with no solid pixel in any tile was packed'
- walled = [[dict(c, wall=np.ones_like(c['wall'])) if j == 1 else c for j, c in enumerate(tile)] for tile in t0['cards']]
- try: export.pack(dict(t0, cards=walled))
- except export.Refusal as e: assert 'no solid terrain' in str(e), str(e)
- else: assert False, 'a card that is all wall was packed'
- finally: shutil.rmtree(d)
-def test_cover_and_size_refusals_write_nothing():
- """write_bake measures the files it is handed: a hole in one tile's card (alpha zeroed over a band of columns) fails that tile's cover check and names the tile, a card leaving the frame, a tile file without its apron, colour and geometry of two sizes and an opaque view of the wrong
- rows are refused, and nothing is written."""
- d = tempfile.mkdtemp()
- try:
- b = _toy(); pk = export.pack(b); c = b['cards'][3][2]; hole = c['alpha'].copy(); hole[:, 100:140] = 0; bad = [list(r) for r in pk['tiles']]; bad[3][2] = dict(bad[3][2], colour=export.encode_colour(c['albedo'], hole)); _refuses(d + '/hole', b, dict(pk, tiles=bad), 'a bake whose card leaves a hole was written')
- try: _write(d + '/hole', b, dict(pk, tiles=bad))
- except export.Refusal as e: assert 'tile 3' in str(e), str(e)
- off = [list(r) for r in pk['tiles']]; off[7][0] = dict(off[7][0], top=H - 5); _refuses(d + '/off', b, dict(pk, tiles=off), 'a card leaving the frame was written')
- narrow = [list(r) for r in pk['tiles']]; c0 = b['cards'][2][0]; narrow[2][0] = dict(narrow[2][0], colour=export.encode_colour(c0['albedo'][:, 2:-2], c0['alpha'][:, 2:-2]), geometry=export.encode_geometry(c0['n_r'][:, 2:-2], c0['n_t'][:, 2:-2], c0['logd'][:, 2:-2], b['meta']['encoding'])); _refuses(d + '/apron', b, dict(pk, tiles=narrow), 'a tile without its apron was written')
- try: _write(d + '/apron', b, dict(pk, tiles=narrow))
- except export.Refusal as e: assert 'apron' in str(e), str(e)
- mism = [list(r) for r in pk['tiles']]; mism[4][1] = dict(mism[4][1], geometry=export.encode_geometry(c0['n_r'][:50], c0['n_t'][:50], c0['logd'][:50], b['meta']['encoding'])); _refuses(d + '/size', b, dict(pk, tiles=mism), 'a colour and geometry of two sizes were written')
- _refuses(d + '/rows', b, pk, 'view plane_h disagreeing with the opaque view was written', view=dict(b['view'], plane_h=H + 1)); _refuses(d + '/short', b, dict(pk, tiles=pk['tiles'][:31]), 'a bake of 31 tiles was written')
- finally: shutil.rmtree(d)
-def _flat_entry(top, h, w=export.TILE_W + 2 * export.APRON, seed=0, noise=False, distance_m=1000.0):
- rng = np.random.default_rng(seed); alpha = np.ones((h, w), np.float32); rgb = rng.random((h, w, 3)).astype(np.float32) if noise else np.full((h, w, 3), 0.5, np.float32); geo = rng.random((h, w)).astype(np.float32) if noise else np.full((h, w), 0.5, np.float32)
- enc = dict(log_d_min=0.0, log_d_max=1.0); return dict(top=top, colour=export.encode_colour(rgb, alpha), geometry=export.encode_geometry(geo, geo, geo, enc), distance_m=distance_m)
-def test_card_cap_refusals():
- """A preset with 6 splits, or splits not increasing, is refused by load_preset before any march; a bake of 7 cards is refused; 6 cards that fit the budgets are written; 6 full-frame cards in every tile (the lit canvases of 13 tiles are 38 MB) are refused and write nothing."""
- d = tempfile.mkdtemp()
- try:
- for bad in ([5, 10, 20, 30, 40, 50], [6, 6], [6, 5], []):
- p = os.path.join(d, 'p.json'); json.dump(dict(presets=[dict(id='x', tz='UTC', card_split_km=bad)]), open(p, 'w')) # a valid zone, so only the splits can refuse it
- try: ridge.load_preset('x', p)
- except export.Refusal: pass
- else: assert False, ('a preset with splits', bad, 'was accepted')
- json.dump(dict(presets=[dict(id='x')]), open(os.path.join(d, 'q.json'), 'w'))
- try: ridge.load_preset('x', os.path.join(d, 'q.json'))
- except export.Refusal: pass
- else: assert False, 'a preset without card_split_km was defaulted'
- json.dump(dict(presets=[dict(id='x', tz='Europe/Vienna', card_split_km=[1, 2, 3, 4, 5])]), open(os.path.join(d, 'r.json'), 'w')); assert ridge.load_preset('x', os.path.join(d, 'r.json'))['card_split_km'] == [1, 2, 3, 4, 5]
- for bad_tz in (None, '', 'Not/AZone'):
- p = os.path.join(d, 'tz.json'); json.dump(dict(presets=[dict(id='x', card_split_km=[6], **({} if bad_tz is None else dict(tz=bad_tz)))]), open(p, 'w'))
- try: ridge.load_preset('x', p)
- except export.Refusal: pass
- else: assert False, ('a preset with tz', bad_tz, 'was accepted')
- place = dict(id='synthetic', name='S', lat=0.0, lon=0.0, altitude_km=0.0, eye_m=1.0, tz='UTC'); meta = dict(curvature=dict(r_earth_m=1.0, k_ref=0.1), encoding=dict(log_d_min=0.0, log_d_max=1.0)); view = dict(look_az_deg=0.0, plane_h=H, px_per_deg_h=1.0, px_per_deg_v=1.0, exaggeration=1.0, horizon_row=1.0, sky_row=1.0, near_row=1.0)
- full = [np.ones((H, 204)) for _ in range(32)]; cards = lambda k: [dict(near_m=None if i == 0 else 1.0, far_m=None if i == k - 1 else 1.0) for i in range(k)]; cam = dict(r_max_m=100.0, r_max_forward_m=100.0)
- big = dict(cards=cards(6), tiles=[[_flat_entry(0, H, seed=0)] + [_flat_entry(0, H) for _ in range(5)] for _ in range(32)], camera=cam)
- try: export.write_bake(d + '/big', place, view, meta, big, full)
- except export.Refusal as e: assert 'consecutive tiles' in str(e), str(e)
- else: assert False, 'six full-frame cards in every tile were written'
- assert not os.path.exists(d + '/big')
- ok = dict(cards=cards(6), tiles=[[_flat_entry(0, H, seed=0)] + [_flat_entry(0, 100, seed=i) for i in range(1, 6)] for _ in range(32)], camera=cam); dest = export.write_bake(d + '/six', place, view, meta, ok, full); assert len(json.load(open(dest / 'manifest.json'))['cards']) == 6
- fwd = lambda r: dict(ok, camera=dict(r_max_m=100.0, r_max_forward_m=r)); bands6 = [[H] + [100] * 5] * 32; assert export.resident_bytes(bands6, export.run_tiles(100.0, 1000.0)) <= export.RESIDENT_BYTES_MAX < export.resident_bytes(bands6, export.run_tiles(1e6, 1000.0)), 'the fixture cannot tell the gate at r_max_forward_m from the gate at r_max_m'
- try: export.write_bake(d + '/fwd', place, view, meta, fwd(1e6), full)
- except export.Refusal as e: assert 'consecutive tiles' in str(e), str(e)
- else: assert False, 'a bake whose forward offset breaks the resident gate was written'
- try: export.write_bake(d + '/low', place, view, meta, fwd(50.0), full)
- except export.Refusal as e: assert 'below r_max_m' in str(e), str(e)
- else: assert False, 'a bake whose forward offset is below the worst-case offset was written'
- assert not os.path.exists(d + '/fwd') and not os.path.exists(d + '/low')
- try: export.check_budget(7, [1000] * 32, [[10] * 7] * 32, 100.0, 1000.0)
- except export.Refusal as e: assert 'above 6' in str(e)
- else: assert False, '7 cards were accepted'
- finally: shutil.rmtree(d)
-def test_budgets():
- """A tile over 235 kB, a place over 7.5 MB and a resident run over 20 MB each refuse and one byte (one band row) under passes; the resident run wraps the ring: the last tiles and the first count as consecutive."""
- none = [[] for _ in range(export.TILES)]; call = lambda tb, bands, r=100.0, rmin=1000.0: export.check_budget(3, tb, bands, r, rmin)
- def refused(*a, **k):
- try: call(*a, **k)
- except export.Refusal: return True
- return False
- assert not refused([235_000] + [0] * 31, none) and refused([235_001] + [0] * 31, none), 'the tile cap'
- assert not refused([234_375] * 32, none) and refused([234_375] * 31 + [234_376], none), 'the place cap'
- rows = 20_000_000 // (4 * export.LIT_W); one = lambda h: [[h]] + [[] for _ in range(31)]
- assert not refused([0] * 32, one(rows)) and refused([0] * 32, one(rows + 1)), 'the resident cap'
- n = export.run_tiles(100.0, 1000.0); assert 5 < n < 32; split = [[] for _ in range(32)]; split[31] = [rows // 2]; split[0] = [rows - rows // 2 + 1]
- assert refused([0] * 32, split), 'the resident run does not wrap the ring (tile 31 and tile 0 are consecutive)'; split[0] = [rows - rows // 2]; assert not refused([0] * 32, split)
- far = [[] for _ in range(32)]; far[0] = [rows // 2]; far[n + 3] = [rows - rows // 2 + 1]; assert not refused([0] * 32, far), 'a run is only N tiles long'; far[n - 1] = far[n + 3]; far[n + 3] = []; assert refused([0] * 32, far)
- assert export.run_tiles(0.0, 1000.0) == math.ceil(export.HFOV_MAX_DEG / 11.25) + 5 and export.run_tiles(250.0, 20000.0) > export.run_tiles(25.0, 20000.0) and export.run_tiles(1e9, 1.0) == 32, 'N = ceil(arc_max / 11.25) + 1 + 4'
- rows_t = [[10, 20] if t in (30, 31, 0, 1) else [] for t in range(32)]; assert export.resident_bytes(rows_t, 4) == 4 * export.LIT_W * 120 and export.resident_bytes(rows_t, 3) == 4 * export.LIT_W * 90 and export.resident_bytes(rows_t, 40) == 4 * export.LIT_W * 120
-def _fit(d, r, phis=None): return export.fit_px(d, r, ridge.HPX_DEG, phis)
-def _brute_fit(d, r, phis, ppd, n=20001):
- """The worst error of the best line, by brute force: the least-squares line over n uniform samples (the integral to within 1e-4 of itself), the error on the same n."""
- half = math.radians(export.HFOV_MAX_DEG) / 2; b = np.linspace(-half, half, n)[None, :]; p = np.linspace(0, 2 * math.pi, phis, endpoint=False)[:, None]; A = np.arctan2(d * np.sin(b) - r * np.sin(p), d * np.cos(b) - r * np.cos(p))
- bc = b - b.mean(); s = (A * bc).sum(-1, keepdims=True) / (bc * bc).sum(); return math.degrees(float(np.abs(A - (A.mean(-1, keepdims=True) + s * bc)).max())) * ppd
-def test_fit_px_is_the_continuous_error():
- """fit_px is the worst error of the best line over the whole viewport, not of a few samples of it: it equals a brute-force measure (20001 samples, line and error) within 0.1 card px at the offsets the bound is set at (an offset a few samples undercount by more than that), over the whole circle and at phi = 0."""
- ppd = ridge.HPX_DEG; seen = 0
- for d, r, phis in ((410.0, 205.0, 1), (410.0, 98.0, export.PHI_STEPS), (1500.0, 600.0, 1), (1500.0, 300.0, export.PHI_STEPS), (60.0, 30.0, export.PHI_STEPS), (20000.0, 9000.0, 1)):
- got, want = _fit(d, r, phis), _brute_fit(d, r, phis, ppd); assert abs(got - want) < 0.1, ('fit_px is not the continuous error', d, r, phis, got, want); seen += want > 5
- assert seen >= 4, 'the cases are too tame to tell a coarse measure from the continuous one'
-def test_r_max():
- """On a card at 1.5 km: r_max_m falls as FIT_PX_MAX falls and is at most half the distance; it is the largest offset within the bound (the fit error at r_max is within it, a little more is not); a forward-only sweep of phi finds a larger r_max than the whole circle (the error is in the phi
- that is not forward); the binding card tile is the nearest one (each tile's line is fitted at its own distance_m); the resident gate binds when its tiles are heavy; a place whose r_max_m is below 25 refuses and names the card and tile."""
- ppd = ridge.HPX_DEG; dist = [[1500.0] for _ in range(32)]; bands = [[100] for _ in range(32)]; saved = (export.FIT_PX_MAX, export.PHI_STEPS)
- try:
- r = export.solve_r_max(dist, bands, ppd); assert 25 < r <= 750 and _fit(1500.0, r) <= export.FIT_PX_MAX + 1e-9 and _fit(1500.0, r + 0.5) > export.FIT_PX_MAX, ('r_max is not the largest offset within the bound', r, _fit(1500.0, r), _fit(1500.0, r + 0.5))
- export.FIT_PX_MAX = 12.0; r12 = export.solve_r_max(dist, bands, ppd); export.FIT_PX_MAX = 60.0; r60 = export.solve_r_max(dist, bands, ppd); export.FIT_PX_MAX = saved[0]; assert r12 < r < r60, (r12, r, r60)
- export.FIT_PX_MAX = 1e9; assert export.solve_r_max(dist, bands, ppd) == 750.0, 'r_max is not capped at half the nearest distance'; export.FIT_PX_MAX = saved[0]
- export.PHI_STEPS = 1; rf = export.solve_r_max(dist, bands, ppd); export.PHI_STEPS = saved[1]; assert rf > r + 5, ('a forward-only sweep finds the same r_max', rf, r)
- rp = export.solve_r_max(dist, bands, ppd, phis=1); assert rp == rf and 25 < rp <= 750 and _fit(1500.0, rp, 1) <= export.FIT_PX_MAX + 1e-9 and _fit(1500.0, rp + 0.5, 1) > export.FIT_PX_MAX, ('the phi = 0 bound is not the largest offset within the bound at phi = 0', rp, rf)
- assert _fit(1500.0, rp) > export.FIT_PX_MAX, 'the forward offset fits at some other phi, so the two numbers do not differ'
- mixed = [[1500.0 if t == 3 else 9000.0] for t in range(32)]; assert export.solve_r_max(mixed, bands, ppd) == r, 'the binding tile is not the nearest one'
- dist2 = [[20000.0] for _ in range(32)]; free = export.solve_r_max(dist2, bands, ppd); heavy = [[1700000 // (4 * export.LIT_W)] for _ in range(32)]; held = export.solve_r_max(dist2, heavy, ppd)
- assert held < free - 100 and export.resident_bytes(heavy, export.run_tiles(held, 20000.0)) <= export.RESIDENT_BYTES_MAX < export.resident_bytes(heavy, export.run_tiles(held + 1.0, 20000.0)), ('the resident gate does not bind r_max', held, free)
- held_f = export.solve_r_max(dist2, heavy, ppd, phis=1); assert held_f >= held and export.resident_bytes(heavy, export.run_tiles(held_f, 20000.0)) <= export.RESIDENT_BYTES_MAX < export.resident_bytes(heavy, export.run_tiles(held_f + 1.0, 20000.0)), ('the resident gate does not bind the forward offset', held_f, held)
- two = [[5000.0, 40.0 if t == 7 else 5000.0] for t in range(32)]
- try: export.solve_r_max(two, [[100, 100] for _ in range(32)], ppd)
- except export.Refusal as e: assert 'below 25' in str(e) and 'card 1' in str(e) and 'tile 7' in str(e), str(e)
- else: assert False, 'a bake whose r_max_m is below 25 was accepted'
- close = [[30.0] for _ in range(32)]
- try: export.solve_r_max(close, bands, ppd)
- except export.Refusal as e: assert 'below 25' in str(e) and 'card 0' in str(e), str(e)
- else: assert False, 'a nearest card at 30 m was accepted'
- finally: export.FIT_PX_MAX, export.PHI_STEPS = saved
-def test_pack_distance_and_r_max_in_the_bake():
- """pack: a card tile's distance_m is exp(median ln d) over the interior solid pixels that are not wall (not the wall rows, not the apron columns); the manifest camera is the r_max_m of those distances and no per-card scale or median is written."""
- b = _toy(); cs = [[dict(c) for c in tile] for tile in b['cards']]; c = dict(cs[10][1]); n = c['alpha'].shape[0]; wall = np.zeros_like(c['wall']); wall[:n * 3 // 4] = True; ld = np.where(wall, c['logd'] + 3.0, c['logd']).copy(); ld[:, :2] += 2.0; ld[:, -2:] += 2.0; cs[10][1] = dict(c, wall=wall, logd=ld)
- pk = export.pack(dict(b, cards=cs)); inner = (slice(None), slice(2, -2)); want = float(np.exp(np.median(ld[inner][~wall[inner]]))); with_wall = float(np.exp(np.median(ld[inner]))); assert abs(with_wall - want) > 0.05 * want, 'the fixture cannot tell wall rows from ground'
- assert abs(pk['tiles'][10][1]['distance_m'] - want) < 1e-9 * want, ('the distance counted wall rows or the apron', pk['tiles'][10][1]['distance_m'], want); assert set(pk['tiles'][10][1]) == {'top', 'colour', 'geometry', 'distance_m'} and set(pk['cards'][0]) == {'near_m', 'far_m'}
- base = export.pack(b); assert base['camera']['r_max_m'] >= 25 and base['camera']['r_max_forward_m'] >= base['camera']['r_max_m'] and abs(base['report']['nearest_m'] - min(float(np.exp(c[0]['logd'][:, 2:-2].min())) for c in b['cards'])) < 1e-6 and len(base['report']['fit_px']) == 3 and max(base['report']['fit_px']) <= export.FIT_PX_MAX + 1e-6
- near = export.pack(_toy(dists=(1500.0, 15000.0, 50000.0))); assert near['camera']['r_max_forward_m'] > near['camera']['r_max_m'] + 5, ('the forward offset was searched over the whole circle', near['camera'])
- assert abs(base['cards'][0]['far_m'] - 1500.0) < 1e-6 and base['cards'][0]['near_m'] is None and base['cards'][1]['near_m'] == base['cards'][0]['far_m']
-def test_the_sheet_draws_the_ring():
- """The contact sheet is the ring at 1/4 width (1600 px) with a mark on each of the 32 tile boundaries, in the composite, every card's strip and the depth image, stacked: composite, K cards, depth."""
- b = _ring('wide3', WIDE3, [20, 55]); png = export.sheet(b); img = export.imagecodecs.png_decode(png); k = 3; nb = b['cov'].shape[0]; assert img.shape == ((1 + k) * H + 2 * nb, W // 4, 3), img.shape
- mark = np.arange(32) * 200 // 4; sky = np.array(export.SHEET_SKY); reddish = lambda px: (px[..., 0] > px[..., 2] + 40); assert reddish(img[2, mark].astype(int)).all() and not reddish(img[2, mark + 7].astype(int)).any(), 'the tile boundaries are not drawn on the composite'
- assert reddish(img[(1 + k) * H + 3, mark].astype(int)).all(), 'the tile boundaries are not drawn on the depth image'; assert abs(img[2, 1].astype(int) - np.rint(np.array(export.SHEET_SKY) * 255)).max() <= 2, 'the sky is not the flat sky'
-
-# ---------------------------------------------------------------------------------------- the real thing: Vienna
-_VIENNA = {}
-def _vienna_bake():
- if 'b' not in _VIENNA:
- saved = ridge.P
- try: b = export.bake_place('vienna'); _VIENNA.update(b=b, pxv=ridge.PXDEG_V, P=dict(ridge.P), rowang=ridge.rowang.copy(), skyline=None)
- finally: ridge.P = saved
- return _VIENNA['b']
-def _vienna_ring(splits, tiles):
- """Vienna's whole-ring march and seams for the given splits, cards on only the given tiles: (d, seams, {t: cards}, {t: opaque})."""
- saved = ridge.P
- try:
- p = ridge.configure(dict(ridge.load_preset('vienna'), card_split_km=splits)); d, _, Hh, _ = ridge.stage0(False); a, h = ridge.prefilter(d, Hh, p['prefilter_m']); ridge.set_view(a.max(0)); sm = ridge.seams(ridge.coverage(d, a), [k * 1000.0 for k in splits], d); op = ridge.opaque(a); D_, A_, H_, nrm = ridge.join_near(d, a, h, ridge.near_march(p['prefilter_m']))
- cols = lambda x, t: ridge.ring_cols(x, t * export.TILE_W - export.APRON, export.TILE_W + 2 * export.APRON)
- return d, sm, {t: ridge.cards(D_, cols(A_, t), cols(H_, t), cols(sm, t), tuple(cols(x, t) for x in nrm), material=ALPINE) for t in tiles}, {t: cols(op, t) for t in tiles}
- finally: ridge.P = saved
-def test_vienna_k1_k2_k3():
- """Vienna with card_split_km [6], [6, 40] and [6, 20, 40]: 2, 3 and 4 cards, seams ordered in every column of the ring, each composite of a tile (the rest azimuth's, the north's and the last one) equals the opaque view within 0.02; the cross-fade column count is printed."""
- for sp in ([6], [6, 40], [6, 20, 40]):
- d, sm, cs, op = _vienna_ring(sp, (0, 19, 31)); assert sm.shape == (len(sp), W)
- if len(sp) > 1: assert (np.diff(np.log(sm), axis=0) >= 0.4 - 1e-9).all(), 'seams out of order'
- for t, tile in cs.items():
- assert len(tile) == len(sp) + 1; comp = 1 - np.prod([1 - _tile_canvas(c) for c in tile], axis=0); assert np.abs(comp - op[t]).max() < 0.02, (sp, t, np.abs(comp - op[t]).max())
- xf = int(np.any([((0.02 < _tile_canvas(c)) & (_tile_canvas(c) < 0.98)).sum(0) > 3 for c in cs[19]], axis=0).sum())
- print(f' K={len(sp)} splits {sp}: {len(cs[19])} cards, tile 19 bands {[(c["top"], c["alpha"].shape[0]) for c in cs[19]]}, seam medians km {[round(float(np.median(s)) / 1000, 1) for s in sm]}, cross-fade columns {xf} of {export.TILE_W + 4} in tile 19')
-def test_bake_place_manifest_fields_on_vienna():
- """bake_place on the real Vienna preset: 32 tiles of three cards, the place carries the ground (km) and the eye, horizon_row is the row where the elevation angle is 0, px_per_deg_h is the ring's, look_az_deg is the rest azimuth; the shared apron of neighbouring tiles is the same pixels
- (the tile cut at the real preset), and write_bake of its packed tiles validates with index default 'vienna', no temp dir left, r_max_m and the worst fit error per card printed."""
- b = _vienna_bake(); P = _VIENNA['P']; rowang = _VIENNA['rowang']; pxv = _VIENNA['pxv']; pl, view = b['place'], b['view']; assert len(b['cards']) == 32 and all(len(t) == 3 for t in b['cards']) and len(b['opaque']) == 32 and b['seams'].shape == (2, W)
- assert abs(pl['altitude_km'] * 1000 - P['ground_m']) < 1e-6 and abs(pl['eye_m'] - P['eye_m']) < 1e-9 and pl['id'] == 'vienna' and view['look_az_deg'] == P['az_center'] == 214.0
- assert 0 < view['sky_row'] < view['horizon_row'] < view['near_row'] < H and abs(rowang[int(view['horizon_row'])]) <= 1.0 / pxv, (view, rowang[int(view['horizon_row'])]); assert view['px_per_deg_h'] == ridge.HPX_DEG and abs(view['exaggeration'] - pxv / ridge.HPX_DEG) < 1e-9
- T_, A_ = export.TILE_W, export.APRON
- for t in (0, 19, 31):
- nxt = b['cards'][(t + 1) % 32]
- for i, c in enumerate(b['cards'][t]):
- assert (_tile_canvas(c)[:, T_ + A_:T_ + 2 * A_] == _tile_canvas(nxt[i])[:, A_:2 * A_]).all(), ('the apron is not the neighbour tile', t, i); seen = _tile_canvas(c)[:, T_ + A_:T_ + 2 * A_] > 0
- assert (_tile_canvas(c, 'logd')[:, T_ + A_:T_ + 2 * A_][seen] == _tile_canvas(nxt[i], 'logd')[:, A_:2 * A_][seen]).all(), ('the apron is not the neighbour tile', t, i, 'logd')
- d = tempfile.mkdtemp()
- try:
- pk = export.pack(b); rp = pk['report']; print(' vienna r_max_m', pk['camera']['r_max_m'], 'r_max_forward_m', pk['camera']['r_max_forward_m'], 'nearest card m', round(rp['nearest_m']), 'resident run', rp['run_tiles'], 'tiles', rp['resident_bytes'], 'bytes; worst fit error per card (card px)', [round(x, 1) for x in rp['fit_px']], 'sky/low deg', round(b['v']['sky_deg'], 2), round(b['v']['low_deg'], 2), 'exaggeration', round(view['exaggeration'], 2))
- dest = _write(d, b, pk); m = json.load(open(dest / 'manifest.json')); export.validate_manifest(m); assert m['camera']['r_max_m'] >= export.R_MAX_FLOOR_M and m['camera']['r_max_forward_m'] >= m['camera']['r_max_m']
- assert json.load(open(d + '/index.json'))['default'] == 'vienna' and sorted(os.listdir(d)) == sorted(['index.json', dest.name]), os.listdir(d); print(' vienna manifest bytes', m['bytes'], 'largest tile', max(sum(e[k]['bytes'] for e in row if e for k in ('colour', 'geometry')) for row in m['tiles']))
- finally: shutil.rmtree(d)
-
-# ---------------------------------------------------------------------------------------- the written files are the cards
-def test_written_cards_decode_to_the_cards_in_memory():
- """Vienna's cards in three tiles (north, the rest azimuth's, the wrap), written and decoded again: alpha exactly, albedo within the lossy codec (and straight, not premultiplied, at partial alpha), the normal channels in their order (R along the ray, G across it), and the log-distance over the encoding
- range, within quantisation."""
- b = _vienna_bake(); d = tempfile.mkdtemp()
- try:
- dest = _write(d, b, export.pack(b)); m = json.load(open(dest / 'manifest.json')); enc = m['encoding']; span = enc['log_d_max'] - enc['log_d_min']; partial_seen = near_seen = 0
- for t in (0, 19, 31):
- for c, rec in zip(b['cards'][t], m['tiles'][t]):
- col = export.decode((dest / rec['colour']['file']).read_bytes()); geo = export.decode((dest / rec['geometry']['file']).read_bytes()); al = c['alpha']; wall = c['wall']; nr = c['near']; solid = (al > 0) & ~wall & ~nr; part = (al > 0.05) & (al < 0.95) & ~wall & ~nr; partial_seen += int(part.sum()); near_seen += int((nr & (al > 0)).sum())
- assert (col[..., 3] == np.rint(al * 255)).all(), 'alpha is not exact'; e = np.abs(col[..., :3] / 255.0 - c['albedo']).max(-1)
- assert e[solid].mean() < 0.021 and np.percentile(e[solid], 99) < 0.081, ('albedo is off', e[solid].mean(), np.percentile(e[solid], 99)); assert part.sum() == 0 or e[part].mean() < 0.1, ('albedo at partial alpha is off: premultiplied?', e[part].mean())
- assert (geo[..., 3] == 255).all(); q = 1.0 / 255 + 1e-6; assert (((geo[..., 0] == 255) & (geo[..., 1] == 255)) == wall).all(), 'the wall code is not R = G = 255 on exactly the wall pixels'
- assert np.abs(geo[..., 0] / 255.0 * 2 - 1 - c['n_r'])[solid].max() < 2 * q and np.abs(geo[..., 1] / 255.0 * 2 - 1 - c['n_t'])[solid].max() < 2 * q, 'a normal channel is off or swapped'
- assert np.abs(enc['log_d_min'] + geo[..., 2] / 255.0 * span - c['logd'])[solid].max() < span * q, 'the log-distance is off or not over the encoding range'
- assert np.abs(c['n_r'][solid]).mean() > 0.05 and np.abs(c['n_t'][solid]).mean() > 0.01 and np.abs(c['n_r'][solid].mean() - c['n_t'][solid].mean()) > 0.0, 'the fixture does not tell the channels apart'
- assert col[..., :3][solid].mean() > 20, 'albedo is zeroed'; assert (geo[..., 2][nr & (al > 0)] == 0).all(), 'a near pixel is not at the clip distance (B = 0)'
- assert partial_seen > 0, 'the fixture has no partial alpha'; assert near_seen > 1000, 'the fixture has no near ground'
- finally: shutil.rmtree(d)
-
-# ---------------------------------------------------------------------------------------- wall rows
-def _first_sample_angle(b, i):
- """Per column, the angle of the first sample card i reads: the first sample at or beyond its near seam, less the cross-fade half-width (card 0: sample 0 of the joined march, the near start)."""
- k0 = np.zeros(NW, int) if i == 0 else np.array([np.searchsorted(b['D'], b['seams'][i - 1][x] * math.exp(-ridge.XF)) for x in range(NW)]); return k0, b['a'][k0, np.arange(NW)]
-def test_wall_rows_flagged():
- """Every card, card 0 included, flags as wall exactly the rows below the angle of its first sample (the extruded face of the ridge it starts at; card 0's first sample is the near march's, under the frame, so it has none); the wall carries R = G = 255 in the geometry file and no other pixel has r2 + t2 above 1.02; wall pixels keep that sample's
- distance and their albedo is the ground material of the sample's height with the face up (so a steep face is not rock), constant down the column."""
- steep = 0
- for make in (lambda: _bake(WALLED, [20]), lambda: _bake(WIDE3, [20, 55]), lambda: _bake(_receding, [6]), lambda: _bake(_ramp, [20], fixed_m=[20000.0])): # the ramp's seam is fixed: the wall must stand on the slope, below the height where every material is rock or snow
- b = make(); lo = ridge.rowang - 0.5 / ridge.PXDEG_V; seen = 0
- for i, c in enumerate(b['cards']):
- k0, a0 = _first_sample_angle(b, i); want = (lo[:, None] < a0[None, :])[c['top']:c['top'] + c['alpha'].shape[0]]; assert (c['wall'] == want).all(), ('wall rows are not the rows below the first sample', i, int((c['wall'] != want).sum())); seen += int(want.sum())
- geo = export.decode(export.encode_geometry(c['n_r'], c['n_t'], c['logd'], dict(log_d_min=math.log(D[0]), log_d_max=math.log(D[-1])), c['wall'])); r, t = geo[..., 0] / 255.0 * 2 - 1, geo[..., 1] / 255.0 * 2 - 1; code = (geo[..., 0] == 255) & (geo[..., 1] == 255)
- assert (code == c['wall']).all() and (r[~code] ** 2 + t[~code] ** 2 <= 1.02).all(), 'the wall code is not on exactly the wall pixels, or a real normal reaches it'
- for x in np.flatnonzero(c['wall'].any(0)):
- rows = np.flatnonzero(c['wall'][:, x]); ld = c['logd'][rows, x]; assert np.ptp(ld) < 1e-5 and abs(math.exp(ld[0]) - b['D'][k0[x]]) < 1e-3 * b['D'][k0[x]] + 60, ('a wall keeps its sample distance', x)
- want_alb = ridge.albedo(np.array([b['h'][k0[x], x]]), np.array([1.0]), ALPINE)[0]; assert np.abs(c['albedo'][rows, x] - want_alb).max() < 1e-5, ('wall albedo is not the ground material with the face up', x)
- assert seen > 1000, 'the fixture has no wall'
- for i in range(1, len(b['cards'])):
- c = b['cards'][i]; steep += int((np.sqrt(np.clip(1 - c['n_r'] ** 2 - c['n_t'] ** 2, 0, 1))[c['wall']] < 0.93).sum())
- assert steep > 1000, 'no wall pixel has a steep face under it: a wall lit by its own normal would pass'
-def test_the_sheet_lights_a_wall_with_the_face_up():
- """The contact sheet shades a wall pixel as an up-facing one whatever normal the card carries there, and a non-wall pixel by its normal."""
- n = 4; c = dict(albedo=np.ones((n, n, 3), np.float32), alpha=np.ones((n, n), np.float32), n_r=np.full((n, n), 0.9, np.float32), n_t=np.zeros((n, n), np.float32), wall=np.zeros((n, n), bool)); c['wall'][:, :2] = True
- rgb, _ = export.lit(c); L = np.array(export.SHEET_LIGHT) / np.linalg.norm(export.SHEET_LIGHT); up = 0.35 + 0.65 * L[2]; tilted = 0.35 + 0.65 * np.clip(0.9 * L[0] + np.sqrt(1 - 0.81) * L[2], 0, 1)
- assert np.allclose(rgb[:, :2], up) and np.allclose(rgb[:, 2:], tilted) and abs(up - tilted) > 0.05, (rgb[0, 0], rgb[0, 3])
-# ---------------------------------------------------------------------------------------- the near clip, the ground rows
-def _nearest_solid(c):
- """The nearest solid (alpha >= 0.5) pixel that is neither wall nor near ground of a card tile's interior columns, metres; None where there is none (computed here from the arrays, not by pack)."""
- ld, al, wl, nr = (c[k][:, 2:-2] for k in ('logd', 'alpha', 'wall', 'near')); m = (al >= 0.5) & ~wl & ~nr; return float(np.exp(np.float64(ld[m].min()))) if m.any() else None
-def test_r_max_holds_for_the_nearest_terrain_of_every_tile_and_near_only_tiles_bind_at_the_clip():
- """The offset range is where the linear map holds for the NEAREST solid terrain each card draws in each tile (ruling ridge-offset-range-fit), not its median: a tile whose card 0 spans 600 to 2000 m has its median near 1200 m, and at the r_max the median would give the 600 m pixels err past FIT_PX_MAX.
- So the fit at every tile's nearest solid pixel is within the bound at r_max_m (over the circle) and at r_max_forward_m (phi 0), and the bound is reached: a little more offset breaks it at the binding tile. A tile whose card 0 draws only near ground (under the clip) is slid at the clip distance (its distance_m) and binds there."""
- b = _toy(); cs = [[dict(c) for c in tile] for tile in b['cards']]; c = dict(cs[7][0]); n = c['alpha'].shape[1]
- ld = np.log(np.linspace(600.0, 2000.0, n))[None, :].repeat(c['alpha'].shape[0], 0).astype(np.float32); cs[7][0] = dict(c, logd=ld)
- bad = dict(cs[5][0]); cs[5][0] = dict(bad, near=np.ones_like(bad['near']), logd=np.full_like(bad['logd'], math.log(300.0))) # tile 5: card 0 is all near ground
- pk = export.pack(dict(b, cards=cs)); r, rf = pk['camera']['r_max_m'], pk['camera']['r_max_forward_m']; ppd = ridge.HPX_DEG; worst = worst_f = 0.0; seen = 0
- for t, tile in enumerate(cs):
- for i, card in enumerate(tile):
- d = _nearest_solid(card)
- if d is None: assert (t, i) == (5, 0), ('a tile has no solid terrain but was not made all near ground', t, i); d = ridge.NEAR_CLIP_M
- seen += 1; assert export.fit_px(d, r, ppd) <= export.FIT_PX_MAX + 1e-6 and export.fit_px(d, rf, ppd, 1) <= export.FIT_PX_MAX + 1e-6, ('the nearest terrain of a tile is outside the fit bound', t, i, d, r, rf)
- worst, worst_f = max(worst, export.fit_px(d, r + 0.5, ppd)), max(worst_f, export.fit_px(d, rf + 0.5, ppd, 1))
- assert seen == 32 * 3 and worst > export.FIT_PX_MAX and worst_f > export.FIT_PX_MAX, ('the range stops short of the bound of the nearest terrain', worst, worst_f)
- assert abs(pk['tiles'][7][0]['distance_m'] - float(np.exp(np.median(np.log(np.linspace(600.0, 2000.0, n)))))) < 1.0, 'the manifest distance is still the median'
- assert r < export.solve_r_max([[1200.0 if (t, i) == (7, 0) else None for i in range(3)] for t in range(32)], [[100] * 3 for _ in range(32)], ppd) - 5, 'the range is the median model'
- near_free = export.pack(_toy()); assert pk['camera']['r_max_m'] < near_free['camera']['r_max_m'], 'the 600 m pixels do not bind'
-def test_the_near_clip_compare_does_not_depend_on_float32_rounding():
- """A card 0 exactly at the near clip is accepted whatever the clip's value: exp of a float32 ln 700 is 699.99994, which a strict compare against a 700 m clip refuses; one 1.5 per mille under the clip is still refused."""
- saved = ridge.NEAR_CLIP_M; d = tempfile.mkdtemp()
- try:
- for clip in (500.0, 520.0, 700.0):
- ridge.NEAR_CLIP_M = clip; b = _toy(dists=(clip, 15000.0, 50000.0), amp=0.0); pk = export.pack(b); assert pk['tiles'][0][0]['distance_m'] != 0
- try: dest = _write(d + f'/ok{clip:g}', b, pk)
- except export.Refusal as e: assert 'near clip' not in str(e), ('a card 0 at the near clip was refused', clip, str(e)); raise
- assert dest.exists(), ('a card 0 at the near clip was refused', clip)
- b = _toy(dists=(698.9, 15000.0, 50000.0), amp=0.0); ridge.NEAR_CLIP_M = 700.0; _refuses(d + '/under', b, export.pack(b), 'a card 0 under the near clip was written')
- finally: ridge.NEAR_CLIP_M = saved; shutil.rmtree(d)
-def test_set_view_keeps_the_ground_rows_under_the_horizon():
- """A skyline +28 degrees high and +5 low is compressed below 1x so the horizon sits at row 450 or above (GROUND_ROWS_MIN rows under it); one +60 degrees high cannot hold them even at 0.5x and refuses naming sky_deg and the floor; a Vienna-like skyline
- (the 10x clamp) and one that fits its anchors above 1x are unchanged to 1e-9; a low skyline never binds the horizon."""
- assert ridge.GROUND_ROWS_MIN == 150 and ridge.E_MIN == 0.5 and ridge.NEAR_CLIP_M == 500.0, 'the authored constants are pinned'
- sk = np.full(W, 5.0); sk[100] = 60.0
- try: ridge.set_view(sk)
- except export.Refusal as e:
- if 'under the horizon' not in str(e): raise # not the refusal: a crash
- assert '60.00' in str(e) and '8.89' in str(e) and '0.5x' in str(e), str(e)
- else: assert False, 'a skyline that cannot hold the ground rows was accepted'
- sk = np.full(W, 5.0); sk[100] = 28.0; v = ridge.set_view(sk)
- assert v['horizon_row'] <= H - ridge.GROUND_ROWS_MIN + 1e-6 and v['exaggeration'] < 1 and v['binds'] == 'horizon' and abs(v['horizon_row'] - (H - ridge.GROUND_ROWS_MIN)) < 1e-6 and abs(v['px_per_deg'] - (H - 150 - 0.04 * H) / 28.0) < 1e-9, v
- sk = np.full(W, 1.7); sk[7] = 2.0; v = ridge.set_view(sk); assert abs(v['px_per_deg'] - 10 * ridge.HPX_DEG) < 1e-9 and abs(v['horizon_row'] - (2.0 * 10 * ridge.HPX_DEG + 0.04 * H)) < 1e-9 and v['binds'] == 'ceiling', v
- sk = np.full(W, 1.0); sk[7] = 3.0; sk[9] = -1.0; v = ridge.set_view(sk); assert abs(v['px_per_deg'] - 0.62 * H / 4.0) < 1e-9 and v['binds'] == 'skyline', v
- sk = np.full(W, -30.0); sk[7] = 12.0; v = ridge.set_view(sk); assert abs(v['px_per_deg'] - 0.5 * ridge.HPX_DEG) < 1e-9 and v['binds'] == 'floor', v
- sk = np.full(W, -9.0); sk[7] = -2.0; v = ridge.set_view(sk); assert v['horizon_row'] < 0.04 * H and v['binds'] != 'horizon', v
-def test_the_near_clip_and_the_ground_rows_are_refused_at_the_writer():
- """The march starts at the authored near clip; write_bake refuses a bake whose card 0 stands nearer than it (nothing nearer is baked as terrain), and validate_manifest, which the writer and the committed bakes go through, refuses a plane with fewer than GROUND_ROWS_MIN rows under the horizon and accepts exactly that many."""
- assert D[0] == ridge.NEAR_CLIP_M == ridge.schedule(True)[0] and (np.diff(D) > 0).all(), 'the march does not start at the near clip'
- d = tempfile.mkdtemp()
- try:
- b = _toy(); pk = export.pack(b); near = export.pack(_toy(dists=(300.0, 15000.0, 50000.0))); assert near['report']['nearest_m'] < ridge.NEAR_CLIP_M
- try: _write(d + '/near', b, near)
- except export.Refusal as e: assert 'near clip' in str(e), str(e); assert not os.path.exists(d + '/near')
- else: assert False, 'a bake whose card 0 stands inside the near clip was written'
- _refuses(d + '/short', b, pk, 'a plane with 149 rows under the horizon was written', view=dict(b['view'], horizon_row=451.0)); dest = _write(d + '/ok', b, pk, view=dict(b['view'], horizon_row=450.0)); m = json.load(open(dest / 'manifest.json')); export.validate_manifest(m)
- m['view']['horizon_row'] = 450.5
- try: export.validate_manifest(m)
- except export.Refusal as e: assert 'GROUND_ROWS_MIN' in str(e), str(e)
- else: assert False, 'validate_manifest accepted a short plane'
- finally: shutil.rmtree(d)
-# ---------------------------------------------------------------------------------------- the near ground: the place's own terrain under the clip, drawn by card 0 inside the clip's silhouette
-def _blend(L, ld, arr, x):
- """arr (K, n) read at hits of log-distance ld (between the samples of log-distance L), blended by the fraction between the two samples: what ridge.cards does for a normal."""
- kk = np.searchsorted(L, ld, 'left'); kp = np.maximum(kk - 1, 0); t = np.clip((ld - L[kp]) / np.maximum(L[kk] - L[kp], 1e-12), 0, 1); return arr[kp, x] + t * (arr[kk, x] - arr[kp, x])
-def test_near_ground_draws_inside_the_clip_silhouette():
- """Eye 1.6 m over flat ground, a ramp hill at 150-300 m rising to 60 m (its crest stands far above the angle of the clip sample) and a far ridge in half the ring: card 0 composites to the opaque view of the FAR march (the hill above the clip line is not drawn; without the cap it stands above the far ridge),
- its rows are near ground, not wall, and their normals are normals(dn, hn) of the near march blended at the hit (the ramp's, not the far sample 0's)."""
- saved = ridge.P.get('eye_m'); ridge.P.update(eye_m=1.6)
- try:
- far = block(36, 359.99, 20000, 21500, 1500); hf = lambda dk, az: np.maximum(np.where((dk >= 150) & (dk < 300), 0.4 * (dk - 150), 0.0), np.asarray(far(dk, az), float))
- A, Hh = rays(hf, eye=1.6); a, h = ridge.prefilter(D, Hh, 0.0); ridge.set_view(a.max(0)); near = near_rays(hf); Dj, Aj, Hj, Nj = ridge.join_near(D, a, h, near); aw, hw, nj = _w(Aj), _w(Hj), tuple(_w(x) for x in Nj)
- c = ridge.cards(Dj, aw, hw, np.zeros((0, NW)), nj, material=ALPINE)[0]; comp = _canvas(c); opq = ridge.opaque(_w(a)); err = np.abs(comp - opq).max(); assert err < export.COVER_TOL, ('card 0 draws outside the silhouette of the terrain at the clip', err)
- free = ridge.cards(Dj, _w(np.concatenate([near[1], a])), hw, np.zeros((0, NW)), nj, material=ALPINE)[0]; assert np.abs(_canvas(free) - opq).max() > 5 * export.COVER_TOL, 'the fixture cannot tell a hill above the clip line (the cap is not tested)'
- x = 300; al, nrr, wl, ld = c['alpha'][:, x], c['near'][:, x], c['wall'], c['logd'][:, x]; sel = (al > 0.99) & nrr; assert sel.sum() > 20 and not wl.any(), ('card 0 has wall rows', int(wl.sum()), int(sel.sum())); assert nrr[al > 0.5].mean() > 0.9, 'the rows under the clip are not flagged near'
- L = np.log(Dj); q = ld[sel].astype(np.float64); want = np.stack([_blend(L, q, nj[0], x), _blend(L, q, nj[1], x), _blend(L, q, nj[2], x)]); m = np.sqrt((want ** 2).sum(0))
- assert np.abs(c['n_r'][sel, x] - want[0] / m).max() < 2e-3 and np.abs(c['n_t'][sel, x] - want[1] / m).max() < 2e-3, 'a near row has not its own normal'; assert (np.abs(c['n_r'][sel, x]) > 0.5).sum() > 5, 'the fixture has no ramp rows'
- finally: ridge.P.update(eye_m=saved)
-def test_near_ground_has_the_material_and_relief_of_its_own_heights():
- """Near heights stepping in blocks of 20 columns across the grass, forest and rock thresholds (100, 1000, 2100 m, the forest block a 45 degree hill) while the far march stands at 1000 m everywhere: every near row carries albedo(its own height, its own n_up), so the blocks differ where the ground does, and the hill face is steep (n_up < 0.93) and rock."""
- dn = ridge.near_schedule(); K, Kn = len(D), len(dn); a = np.tile(np.linspace(5.0, 12.0, K)[:, None], (1, W)); h = np.full((K, W), 1000.0); blk = (np.arange(W) // 20) % 3; base = np.array([100.0, 1000.0, 2100.0])[blk]
- hn = np.broadcast_to(base[None, :], (Kn, W)).copy(); hn[:, blk == 1] += dn[:, None]; an = np.tile(np.linspace(-8.0, 5.0, Kn)[:, None], (1, W)); ridge.P.update(eye_m=EYE); ridge.set_view(a.max(0))
- Dj, Aj, Hj, Nj = ridge.join_near(D, a, h, (dn, an, hn)); assert all(np.array_equal(u[Kn:], w) for u, w in zip(Nj, ridge.normals(D, h))), 'the far normals are not those of the far march alone'
- c = ridge.cards(Dj, _w(Aj), _w(Hj), np.zeros((0, NW)), tuple(_w(x) for x in Nj), material=ALPINE)[0]; up = np.sqrt(np.clip(1 - c['n_r'] ** 2 - c['n_t'] ** 2, 0, 1)); got = {}
- for x in range(NW):
- if not 3 <= x % 20 <= 16: continue
- sel = (c['alpha'][:, x] > 0.99) & c['near'][:, x] & (c['logd'][:, x] < math.log(ridge.NEAR_CLIP_M) - 1e-6); assert sel.sum() > 50, ('no near rows', x) # the crest row that meets the clip sample itself is not under the clip
- if blk[x] == 1: assert up[sel, x].max() < 0.93 and np.abs(c['albedo'][sel, x] - np.asarray(ALPINE['steep']['colour'])).max() < 1e-4, ('the hill face is not steep rock', x, float(up[sel, x].max()))
- else: assert np.abs(c['albedo'][sel, x] - ridge.albedo(np.full(int(sel.sum()), base[x]), up[sel, x], ALPINE)).max() < 1e-5, ('a near row has not the material of its own height', x)
- got[blk[x]] = c['albedo'][sel, x].mean(0)
- assert np.abs(got[0] - got[1]).max() > 0.05 and np.abs(got[1] - got[2]).max() > 0.05 and np.abs(got[0] - got[2]).max() > 0.05, ('the blocks do not differ where the ground does', got)
-def test_near_pixels_bind_at_the_clip_wherever_they_are():
- """Near pixels are drawn at the clip, so each tile's near pixels count in the r_max fit as terrain at the clip alongside its solid pixels, and never in distance_m. Card 0, every other tile 3000 m away: (a) a tile whose lower third is near ground at 150 m keeps its distance_m but binds at 500 m, and without those pixels binds nothing;
- (b) a tile of near ground only has distance_m == NEAR_CLIP_M, binds exactly like terrain at 500 m, and write_bake accepts it; (c) a tile of near ground with a few stray solid pixels at 3000 m binds the same, whatever the stray count (no threshold)."""
- b = _toy(); base = export.pack(b); cs = [[dict(c) for c in tile] for tile in b['cards']]; c = cs[3][0]; n = c['alpha'].shape[0]; near = np.zeros_like(c['near']); near[n * 2 // 3:] = True; ppd = ridge.HPX_DEG
- dists = lambda pk: [[e and e['distance_m'] for e in row] for row in pk['tiles']]; at_clip = lambda src: dict(src, logd=np.full_like(src['logd'], math.log(ridge.NEAR_CLIP_M)))
- cs[3][0] = dict(c, near=near, logd=np.where(near, math.log(150.0), c['logd']).astype(np.float32)); a = export.pack(dict(b, cards=cs))
- cs[3][0] = dict(c, alpha=np.where(near, 0.0, c['alpha']).astype(np.float32)); cut = export.pack(dict(b, cards=cs)); cs[3][0] = at_clip(c); clip = export.pack(dict(b, cards=cs))
- assert dists(a) == dists(cut) == dists(base) and cut['camera'] == base['camera'], ('near pixels were measured in distance_m', dists(a)[3], dists(base)[3])
- assert a['camera'] == clip['camera'] and a['camera']['r_max_m'] < base['camera']['r_max_m'] - 5 and a['camera']['r_max_forward_m'] < base['camera']['r_max_forward_m'] - 5, ('near pixels in a tile of terrain do not bind at the clip', a['camera'], base['camera'])
- cs[3][0] = c; only = dict(cs[9][0]); cs[9][0] = dict(only, near=np.ones_like(only['near']), logd=np.full_like(only['logd'], math.log(300.0))); ob = dict(b, cards=cs); pk = export.pack(ob); d = tempfile.mkdtemp()
- try:
- assert pk['tiles'][9][0]['distance_m'] == ridge.NEAR_CLIP_M and pk['tiles'][8][0]['distance_m'] == base['tiles'][8][0]['distance_m'], ('a near-only tile', pk['tiles'][9][0]['distance_m'])
- r, rf = pk['camera']['r_max_m'], pk['camera']['r_max_forward_m']; assert r < base['camera']['r_max_m'] - 5 and rf < base['camera']['r_max_forward_m'] - 5, ('a near-only tile does not bind', pk['camera'], base['camera'])
- assert export.fit_px(ridge.NEAR_CLIP_M, r, ppd) <= export.FIT_PX_MAX + 1e-6 and export.fit_px(ridge.NEAR_CLIP_M, rf, ppd, 1) <= export.FIT_PX_MAX + 1e-6 and export.fit_px(ridge.NEAR_CLIP_M, r + 0.5, ppd) > export.FIT_PX_MAX, ('the near-only tile is not bound at the clip distance it is slid at', r, rf)
- cs[9][0] = at_clip(only); assert export.pack(dict(b, cards=cs))['camera'] == pk['camera'], 'a near-only tile does not bind exactly like terrain at the clip'
- assert _write(d + '/ok', ob, pk).exists(), 'a bake with a near-only tile was refused'
- for stray in (1, 6, 40): # solid pixels at 3000 m among the near ground of a tile: it binds at the clip all the same
- st = np.zeros_like(only['near']); st[:1, 10:10 + stray] = True; cs[9][0] = dict(only, near=~st, logd=np.where(st, only['logd'], math.log(300.0)).astype(np.float32)); sp = export.pack(dict(b, cards=cs))
- assert sp['camera'] == pk['camera'], ('stray solid pixels unbound a tile of near ground', stray, sp['camera'], pk['camera'])
- finally: shutil.rmtree(d)
-def test_cards_refuses_a_march_without_the_near_ground():
- """ridge.cards on a march whose first sample is the near clip (not joined to the near march) raises, naming join_near: card 0 can never extrude the clip sample again."""
- A, Hh = rays(THREE); ridge.P.update(eye_m=EYE); ridge.set_view(A.max(0))
- try: ridge.cards(D, _w(A), _w(Hh), np.zeros((0, NW)), material=ALPINE)
- except export.Refusal as e: assert 'join_near' in str(e), str(e)
- else: assert False, 'cards drew a march that starts at the near clip'
-def test_near_march_starts_at_your_feet():
- """The near march starts at NEAR_START_M = 1 m, strictly increasing in steps of max(1 m, 0.02 d) up to 10 m, its last sample under the clip; over flat ground with a 1.6 m eye and a frame bottom below -8 degrees (the ray of the frame bottom meets the ground 11 m out) card 0 has no wall row and draws the ground to the bottom row."""
- dn = ridge.near_schedule(); st = np.diff(dn); assert dn[0] == ridge.NEAR_START_M == 1.0 and (st > 0).all() and dn[-1] < ridge.NEAR_CLIP_M and dn[-1] + 10.0 >= ridge.NEAR_CLIP_M and 150 < len(dn) < 190, (dn[0], len(dn))
- assert np.allclose(st, np.clip(0.02 * dn[:-1], 1.0, 10.0)), 'the steps are not max(1 m, 0.02 d) capped at 10 m'
- saved = ridge.P.get('eye_m'); ridge.P.update(eye_m=1.6)
- try:
- hf = lambda dk, az: np.zeros_like(az); A, Hh = rays(hf, eye=1.6); a, h = ridge.prefilter(D, Hh, 0.0); sk = np.full(W, -5.0); sk[::2] = 2.0; ridge.set_view(sk); assert ridge.BOTTOM_DEG < -8.0, ridge.BOTTOM_DEG
- Dj, Aj, Hj, Nj = ridge.join_near(D, a, h, near_rays(hf)); c = ridge.cards(Dj, _w(Aj), _w(Hj), np.zeros((0, NW)), tuple(_w(x) for x in Nj), material=ALPINE)[0]
- assert not c['wall'].any() and c['near'].any(), ('card 0 has wall under the frame bottom', int(c['wall'].sum())); assert _canvas(c)[H - 1, 300] > 0.99 and c['near'][H - 1 - c['top'], 300], 'the bottom row is not near ground'
- finally: ridge.P.update(eye_m=saved)
-def test_near_march_is_float64_and_prefiltered():
- """near_march over an injected 64 x 64 mosaic: a plane tilted 5% at 3000 m gives adjacent-column near normals within 1e-3 of each other (heights in float32 would jump by 0.1 at a metre's distance); 30 m roof blocks under sigma 100 leave near heights within 2 m of each other, and without the prefilter they do not."""
- saved = (ridge.P, ridge.PXDEG_V); lat, lon = 47.0, 11.0; n = 64; ridge.P = dict(id='nearmos', lat=lat, lon=lon, rmax_km=1, eye_m=3001.6); key = (ridge.P['id'], ridge.mosaic_key(ridge.P)); ridge.PXDEG_V = 100.0
- x = np.arange(n)[None, :] * (111320.0 * math.cos(math.radians(lat)) / 3600.0); y = np.arange(n)[:, None]
- try:
- ridge._mos[key] = ((3000.0 + 0.05 * x + 0 * y).astype(np.float32), lat + 32 / 3600.0, lon - 32 / 3600.0); dn, an, hn = ridge.near_march(0.0); nn = ridge.normals(dn, hn)
- assert hn.dtype == np.float64 and an.dtype == np.float64 and hn.shape == (len(ridge.near_schedule()), W) and (dn == ridge.near_schedule()).all(), (hn.dtype, hn.shape)
- assert max(np.abs(np.diff(nn[0], axis=1)).max(), np.abs(np.diff(nn[1], axis=1)).max()) < 1e-3, ('the near normals jump between adjacent columns', float(np.abs(np.diff(nn[1], axis=1)).max()))
- ridge._mos[key] = ((3000.0 + 30.0 * ((np.arange(n)[None, :] + y) % 2)).astype(np.float32), lat + 32 / 3600.0, lon - 32 / 3600.0); raw = np.ptp(ridge.near_march(0.0)[2]); flat = np.ptp(ridge.near_march(100.0)[2])
- assert raw > 20.0 and flat < 2.0, ('sigma is not applied to the near heights', raw, flat)
- finally: ridge.P, ridge.PXDEG_V = saved; ridge._mos.pop(key, None)
-# ---------------------------------------------------------------------------------------- rules that no other test touched
-def test_seams_keep_their_separation():
- """Two authored targets closer than SEAM_SEP (6 and 7 km, 0.15 nat): the seams still sit at least 0.4 nat apart in every column."""
- s = _bake(THREE, [6, 7])['seams']; assert (np.log(s[1]) - np.log(s[0]) >= 0.4 - 1e-9).all(), float((np.log(s[1]) - np.log(s[0])).min())
-def test_elev_is_the_curved_refracted_angle():
- """elev(h, d) = atan2(h - eye - d^2 / 2R x (1 - k), d): at 80 km a 3000 m summit stands 0.3 deg lower than the flat angle, and curvature False gives the flat one."""
- ridge.P.update(eye_m=EYE); d = 80000.0; want = math.degrees(math.atan2(3000.0 - EYE - d * d / (2 * ridge.R_EARTH) * (1 - ridge.KREF), d)); flat = math.degrees(math.atan2(3000.0 - EYE, d))
- assert abs(float(ridge.elev(3000.0, d)) - want) < 1e-9 and abs(float(ridge.elev(3000.0, d, curvature=False)) - flat) < 1e-9 and flat - want > 0.25, (want, flat)
- assert ridge.elev(np.array([[1000.0, 1200.0]]), np.array([[d], [d / 2]])).shape == (2, 2)
-def test_coverage_counts_every_visible_row_including_the_foreground():
- """Per column the coverage sums to the visible rows of the opaque view: (min(skyline, top) - bottom) x px per degree, the rows below the first sample included once, not twice (a ground just under the eye shows below the first sample)."""
- for i, hf in enumerate((terrain(block(0, 359.99, 0, 20000, 91), block(0, 359.99, 20000, 21500, 600)), THREE)):
- A, Hh = rays(hf); ridge.P.update(eye_m=EYE); ridge.set_view(A.max(0)); aw = _w(A); cov = ridge.coverage(D, aw); want = np.clip(np.minimum(aw.max(0), ridge.TOP_DEG) - ridge.BOTTOM_DEG, 0, None) * ridge.PXDEG_V
- assert np.abs(cov.sum(0) - want).max() < 1e-6, np.abs(cov.sum(0) - want).max(); assert cov.shape == (ridge.COV_BINS, NW)
- if i == 0: assert (cov[0] > 100).all(), ('no foreground rows in the first bin', float(cov[0].min()))
-def test_cards_interpolate_between_samples_and_renormalise():
- """On a ramp face every card pixel sits between two samples: its log-distance lies strictly between theirs (not on the nearer sample), and its normal is the normalised blend of theirs by that same fraction (the samples carry alternating normals, so a blend
- that is not renormalised, or a hit that is not interpolated, differs)."""
- hf = terrain(lambda dk, az: np.where(dk >= 4000, GROUND + 0.5 * (dk - 4000), 0.0) + 0 * az); A, Hh = rays(hf); ridge.P.update(eye_m=EYE); ridge.set_view(A.max(0)); Dj, aw, hw, _ = _join(hf, A, Hh); k = np.arange(len(Dj))[:, None]
- nr = np.broadcast_to(np.where(k % 2 == 0, -0.8, 0.8), aw.shape).astype(float); nt = np.broadcast_to(np.where(k % 3 == 0, 0.3, -0.3), aw.shape).astype(float); nu = np.sqrt(1 - nr ** 2 - nt ** 2) * 0 + 0.5
- c = ridge.cards(Dj, aw, hw, np.zeros((0, NW)), nrm=(nr, nt, nu), material=ALPINE)[0]; x = 300; sel = np.flatnonzero(c['alpha'][:, x] > 0.999); ld = c['logd'][sel, x].astype(np.float64); L = np.log(Dj); kk = np.searchsorted(L, ld, 'left'); kp = kk - 1; ok = kp >= 0
- t = (ld - L[np.maximum(kp, 0)]) / (L[kk] - L[np.maximum(kp, 0)]); inner = ok & (t > 0.02) & (t < 0.98); assert inner.sum() > 0.3 * len(sel), ('hits sit on samples, not between them', int(inner.sum()), len(sel))
- mix = lambda arr: arr[np.maximum(kp, 0), x] + t * (arr[kk, x] - arr[np.maximum(kp, 0), x]); m = np.sqrt(mix(nr) ** 2 + mix(nt) ** 2 + mix(nu) ** 2); er = np.abs(c['n_r'][sel, x] - mix(nr) / m)[inner]; et = np.abs(c['n_t'][sel, x] - mix(nt) / m)[inner]
- assert er.max() < 1e-3 and et.max() < 1e-3, ('the normal is not the normalised blend of the two samples', er.max(), et.max())
-
-def _old_albedo(h, n_up):
- """The oracle: ridge.albedo as it stood before materials, constants and all (copied here, the only place they live now)."""
- GRASS, FOREST, ROCK, SNOW = (0.36, 0.44, 0.26), (0.22, 0.31, 0.20), (0.47, 0.44, 0.41), (0.93, 0.95, 0.97)
- t = lambda a, b: np.clip((h - a) / (b - a), 0, 1)[..., None]; c = np.asarray(GRASS) + (np.asarray(FOREST) - GRASS) * t(150, 900); c = c + (np.asarray(ROCK) - c) * t(1300, 2000)
- c = c + (np.asarray(ROCK) - c) * np.clip((0.93 - n_up) / 0.25, 0, 1)[..., None]; return c + (np.asarray(SNOW) - c) * (t(1900, 2300) * np.clip((n_up - 0.55) / 0.3, 0, 1)[..., None])
-def test_alpine_material_is_exactly_the_old_albedo():
- """places.json's alpine material evaluates to the old hard-coded formula bit for bit on a grid of heights 0-3000 m and n_up 0-1 (the four unrebaked places keep their bake ids because of it), and the canyon material differs from it where it should: the river floor is not grass."""
- hh, nn = np.meshgrid(np.linspace(0.0, 3000.0, 301), np.linspace(0.0, 1.0, 101), indexing='ij')
- assert np.array_equal(ridge.albedo(hh, nn, ALPINE), _old_albedo(hh, nn)), 'alpine is not the old formula'
- assert np.abs(ridge.albedo(np.array([800.0]), np.array([1.0]), ridge.load_material('canyon')) - _old_albedo(np.array([800.0]), np.array([1.0]))).max() > 0.1
-def test_canyon_material_has_strata_and_holds_on_cliffs():
- """The canyon (steep null, snow null): a cliff face has the colour of its height, not a rock grey (a flat and a steep face at one height agree), and the bands are distinct colours over height."""
- cy = ridge.load_material('canyon'); hs = np.linspace(800.0, 2500.0, 200); flat = ridge.albedo(hs, np.ones_like(hs), cy); steep = ridge.albedo(hs, np.full_like(hs, 0.3), cy)
- assert np.array_equal(flat, steep), 'a steep face changes the canyon colour'; assert np.abs(np.diff(flat, axis=0)).sum() > 1.0 and len(np.unique(np.rint(flat * 255), axis=0)) > 20, 'the canyon has no strata'
-def test_an_unknown_material_name_is_refused():
- """A place naming a material that places.json does not hold is a Refusal from the baker's own loader, not the alpine fallback; a malformed material is refused too."""
- with tempfile.TemporaryDirectory() as d:
- p = os.path.join(d, 'm.json'); json.dump(dict(materials=dict(alpine=ALPINE, bad=dict(ALPINE, base=[2, 0, 0]))), open(p, 'w'))
- assert ridge.load_material('alpine', p) == ALPINE
- for name in ('canyon', '', 'Alpine'):
- try: ridge.load_material(name, p)
- except export.Refusal as ex: assert repr(name) in str(ex), ex
- else: assert False, ('an unknown material was accepted', name)
- try: ridge.load_material('bad', p)
- except export.Refusal: pass
- else: assert False, 'a malformed material was accepted'
- json.dump(dict(presets=[]), open(p, 'w'))
- try: ridge.load_material('alpine', p)
- except export.Refusal: pass
- else: assert False, 'a file without materials gave a material'
-
-def test_the_ring_cut_paints_with_the_material_it_is_given():
- """export.cut_ring hands its material to every card: the same terrain cut with the canyon material has a different albedo in tile 0 than with the alpine one, and the same alpha."""
- b = _ring('wide3', WIDE3, [20, 55]); A, Hh = rays(WIDE3); ridge.P.update(eye_m=EYE); a, h = ridge.prefilter(D, Hh, 0.0); ridge.set_view(a.max(0))
- c = export.cut_ring(D, a, h, [20, 55], near_rays(WIDE3), ridge.load_material('canyon'))['cards'][0]
- assert any(not np.array_equal(x['albedo'], y['albedo']) and np.array_equal(x['alpha'], y['alpha']) for x, y in zip(c, b['cards'][0])), 'the ring cut ignores its material'
-
-TESTS = [v for k, v in sorted(globals().items()) if k.startswith("test_")]
-if __name__ == '__main__':
- fails = 0
- for t in TESTS:
- try: t(); print("PASS", t.__name__)
- except Exception as e: fails += 1; print("FAIL", t.__name__, "|", type(e).__name__, "|", traceback.extract_tb(e.__traceback__)[-1].filename, "|", repr(e)[:300]) # name | class | file of the innermost frame | repr: mutate.py kills only on an AssertionError raised in this directory
- print("failures:", fails); sys.exit(1 if fails else 0)
diff --git a/scripts/ridge-sky/build-night-sky.py b/scripts/ridge-sky/build-night-sky.py
deleted file mode 100644
index 984548fd..00000000
--- a/scripts/ridge-sky/build-night-sky.py
+++ /dev/null
@@ -1,121 +0,0 @@
-"""Pack the night sky's data into src/app/features/scene/ridge/nightSkyData.ts.
-
-Usage (parse downloads with isolated mode):
- python -I scripts/ridge-sky/build-night-sky.py BSC5.DAT.GZ CONSTELLATIONS.LINES.JSON OUT.ts [MAX_MAG]
-
-Inputs, each in its own directory, never run from inside it:
- bsc5.dat.gz Yale Bright Star Catalogue, 5th revised ed. (Hoffleit & Warren 1991), public domain; CDS/VizieR V/50.
- CDS was unreachable on 2026-11-20, so the file is the SAO Telescope Data Center's copy of the same
- catalogue: http://tdc-www.harvard.edu/catalogs/bsc5.dat.gz (fixed-width, CDS V/50 `catalog` layout).
- constellations.lines.json d3-celestial (Olaf Frohn), BSD-3-Clause:
- https://github.com/ofrohn/d3-celestial/blob/master/data/constellations.lines.json
- GeoJSON MultiLineStrings of [RA, Dec] degrees, J2000.
-
-Stars (stars cut to Vmag <= MAX_MAG, default 5.5), 6 bytes each: RA uint16 (360 deg / 65536), Dec uint16 ((dec + 90) / 180 * 65535),
-Vmag uint8 ((V + 2) * 20), B-V uint8 ((B-V + 0.5) * 50; missing B-V stored as 0.65). Little endian, base64.
-Lines: per chain a uint8 vertex count then that many (RA uint16, Dec uint16) pairs, same scaling; chains concatenated; base64.
-"""
-import base64
-import gzip
-import hashlib
-import json
-import struct
-import sys
-
-
-def sha256(path):
- h = hashlib.sha256()
- with open(path, "rb") as f:
- h.update(f.read())
- return h.hexdigest()
-
-
-def ra16(deg):
- return int(round((deg % 360.0) / 360.0 * 65536.0)) % 65536
-
-
-def dec16(deg):
- return int(round((deg + 90.0) / 180.0 * 65535.0))
-
-
-def stars(path, max_mag):
- out = []
- for line in gzip.open(path, "rt", encoding="latin-1"):
- if len(line) < 114 or not line[75:77].strip():
- continue # entries struck from the catalogue carry no position
- try:
- ra = (int(line[75:77]) + int(line[77:79]) / 60.0 + float(line[79:83]) / 3600.0) * 15.0
- dec = int(line[84:86]) + int(line[86:88]) / 60.0 + int(line[88:90]) / 3600.0
- dec = -dec if line[83] == "-" else dec
- v = float(line[102:107])
- except ValueError:
- continue
- if v > max_mag:
- continue
- bv_text = line[109:114].strip()
- bv = float(bv_text) if bv_text else 0.65
- out.append((ra, dec, v, bv))
- out.sort(key=lambda s: s[2]) # brightest first: a prefix is the brighter stars
- return out
-
-
-def pack_stars(rows):
- buf = bytearray()
- for ra, dec, v, bv in rows:
- vq = min(255, max(0, int(round((v + 2.0) * 20.0))))
- bq = min(255, max(0, int(round((bv + 0.5) * 50.0))))
- buf += struct.pack(" 4 else 5.5
- rows = stars(bsc, max_mag)
- star_bytes = pack_stars(rows)
- line_bytes, chains = pack_lines(lines)
- text = f"""/* eslint-disable */
-// GENERATED by scripts/ridge-sky/build-night-sky.py: do not edit. The night sky's data, J2000.
-// Stars: Yale Bright Star Catalogue, 5th revised ed. (Hoffleit & Warren 1991; public domain), Vmag <= {max_mag}, {len(rows)} stars.
-// source http://tdc-www.harvard.edu/catalogs/bsc5.dat.gz (copy of CDS/VizieR V/50), sha256 {sha256(bsc)}
-// Constellation lines: d3-celestial constellations.lines.json (Olaf Frohn, BSD-3-Clause), {chains} chains.
-// source https://github.com/ofrohn/d3-celestial/blob/master/data/constellations.lines.json, sha256 {sha256(lines)}
-// Layout: see the generator's docstring. Stars are sorted brightest first.
-
-export const STAR_COUNT = {len(rows)};
-export const STARS_B64 = `
-{wrap(base64.b64encode(star_bytes).decode())}
-`;
-
-export const LINE_CHAINS = {chains};
-export const LINES_B64 = `
-{wrap(base64.b64encode(line_bytes).decode())}
-`;
-"""
- with open(out, "w", encoding="utf-8", newline="\n") as f:
- f.write(text)
- print(f"{len(rows)} stars, {chains} chains, {len(star_bytes)} + {len(line_bytes)} bytes")
-
-
-main()
diff --git a/scripts/sync-poses.mjs b/scripts/sync-poses.mjs
deleted file mode 100644
index 9a5b1f83..00000000
--- a/scripts/sync-poses.mjs
+++ /dev/null
@@ -1,24 +0,0 @@
-// Copies the pose catalogue and the art it names from the cast-art directory.
-// The catalogue is the only list of poses the client knows; the art is not committed.
-import { copyFileSync, mkdirSync, readFileSync } from 'node:fs';
-import { dirname, join } from 'node:path';
-import { fileURLToPath } from 'node:url';
-
-const src = process.argv[2] ?? '/opt/commons/cast-art/poses';
-const root = join(dirname(fileURLToPath(import.meta.url)), '..');
-const catalogue = JSON.parse(readFileSync(join(src, 'catalogue.json'), 'utf8'));
-
-copyFileSync(
- join(src, 'catalogue.json'),
- join(root, 'src/app/components/message/pose/catalogue.json')
-);
-const files = Object.values(catalogue.minds).flatMap((m) => [
- ...Object.values(m.shared),
- ...Object.values(m.signatures),
-]);
-files.forEach((f) => {
- const dest = join(root, 'public/poses', f);
- mkdirSync(dirname(dest), { recursive: true });
- copyFileSync(join(src, f), dest);
-});
-console.log(`synced catalogue and ${files.length} images from ${src}`);
diff --git a/src/app/components/AccountDataEditor.tsx b/src/app/components/AccountDataEditor.tsx
index 8c28b935..2dbaf1f1 100644
--- a/src/app/components/AccountDataEditor.tsx
+++ b/src/app/components/AccountDataEditor.tsx
@@ -16,7 +16,6 @@ import {
} from 'folds';
import { MatrixError } from 'matrix-js-sdk';
import { Cursor } from '../plugins/text-area';
-import { PhoneHit } from '../styles/PhoneHit.css';
import { syntaxErrorPosition } from '../utils/dom';
import { AsyncStatus, useAsyncCallback } from '../hooks/useAsyncCallback';
import { Page, PageHeader } from './page';
@@ -295,7 +294,7 @@ export function AccountDataEditor({
-
+
diff --git a/src/app/components/BackupRestore.tsx b/src/app/components/BackupRestore.tsx
index 57a18674..068f437b 100644
--- a/src/app/components/BackupRestore.tsx
+++ b/src/app/components/BackupRestore.tsx
@@ -30,7 +30,6 @@ import {
} from '../hooks/useKeyBackup';
import { stopPropagation } from '../utils/keyboard';
import { useRestoreBackupOnVerification } from '../hooks/useRestoreBackupOnVerification';
-import { PhoneHit } from '../styles/PhoneHit.css';
type BackupStatusProps = {
enabled: boolean;
@@ -178,7 +177,6 @@ export function BackupRestoreTile({ crypto }: BackupRestoreTileProps) {
)}
Device Verification
-
+
diff --git a/src/app/components/DeviceVerificationSetup.tsx b/src/app/components/DeviceVerificationSetup.tsx
index 68f42221..433fa6a1 100644
--- a/src/app/components/DeviceVerificationSetup.tsx
+++ b/src/app/components/DeviceVerificationSetup.tsx
@@ -25,7 +25,6 @@ import { ActionUIA, ActionUIAFlowsLoader } from './ActionUIA';
import { useMatrixClient } from '../hooks/useMatrixClient';
import { useAlive } from '../hooks/useAlive';
import { UseStateProvider } from './UseStateProvider';
-import { PhoneHit } from '../styles/PhoneHit.css';
type UIACallback = (
authDict: AuthDict | null
@@ -302,7 +301,7 @@ export const DeviceVerificationSetup = forwardRef
Setup Device Verification
-
+
@@ -337,7 +336,7 @@ export const DeviceVerificationReset = forwardRef
Reset Device Verification
-
+
diff --git a/src/app/components/Pdf-viewer/PdfViewer.tsx b/src/app/components/Pdf-viewer/PdfViewer.tsx
index d0e5f715..9c7fd980 100644
--- a/src/app/components/Pdf-viewer/PdfViewer.tsx
+++ b/src/app/components/Pdf-viewer/PdfViewer.tsx
@@ -27,7 +27,6 @@ import { AsyncStatus } from '../../hooks/useAsyncCallback';
import { useZoom } from '../../hooks/useZoom';
import { createPage, usePdfDocumentLoader, usePdfJSLoader } from '../../plugins/pdfjs-dist';
import { stopPropagation } from '../../utils/keyboard';
-import { PhoneHit, PhoneHitSpread24 } from '../../styles/PhoneHit.css';
export type PdfViewerProps = {
name: string;
@@ -109,7 +108,7 @@ export const PdfViewer = as<'div', PdfViewerProps>(
-
+
@@ -118,7 +117,6 @@ export const PdfViewer = as<'div', PdfViewerProps>(
(
{Math.round(zoom * 100)}%
1 ? 'Success' : 'SurfaceVariant'}
outlined={zoom > 1}
size="300"
diff --git a/src/app/components/ServerConfigsLoader.test.ts b/src/app/components/ServerConfigsLoader.test.ts
deleted file mode 100644
index 527895a0..00000000
--- a/src/app/components/ServerConfigsLoader.test.ts
+++ /dev/null
@@ -1,32 +0,0 @@
-import { afterEach, describe, expect, it, vi } from 'vitest';
-import { loadServerConfigs } from './ServerConfigsLoader';
-
-const server = (authMetadata: () => Promise) =>
- ({
- getCapabilities: async () => ({}),
- getMediaConfig: async () => ({ 'm.upload.size': 1 }),
- getAuthMetadata: authMetadata,
- } as unknown as Parameters[0]);
-
-describe('loadServerConfigs', () => {
- afterEach(() => vi.restoreAllMocks());
-
- it('logs nothing when the homeserver has no OIDC (no auth metadata came back)', async () => {
- const error = vi.spyOn(console, 'error').mockImplementation(() => {});
- const configs = await loadServerConfigs(
- server(async () => {
- throw new Error('M_UNRECOGNIZED');
- })
- );
- expect(error).not.toHaveBeenCalled();
- expect(configs.authMetadata).toBeUndefined();
- expect(configs.mediaConfig).toEqual({ 'm.upload.size': 1 });
- });
-
- it('still logs and drops auth metadata that came back malformed', async () => {
- const error = vi.spyOn(console, 'error').mockImplementation(() => {});
- const configs = await loadServerConfigs(server(async () => ({ issuer: 'https://x' })));
- expect(error).toHaveBeenCalled();
- expect(configs.authMetadata).toBeUndefined();
- });
-});
diff --git a/src/app/components/ServerConfigsLoader.tsx b/src/app/components/ServerConfigsLoader.tsx
index ea56d8d2..3c8ce8eb 100644
--- a/src/app/components/ServerConfigsLoader.tsx
+++ b/src/app/components/ServerConfigsLoader.tsx
@@ -1,10 +1,5 @@
import { ReactNode, useCallback, useMemo } from 'react';
-import {
- Capabilities,
- MatrixClient,
- validateAuthMetadata,
- ValidatedAuthMetadata,
-} from 'matrix-js-sdk';
+import { Capabilities, validateAuthMetadata, ValidatedAuthMetadata } from 'matrix-js-sdk';
import { AsyncStatus, useAsyncCallbackValue } from '../hooks/useAsyncCallback';
import { useMatrixClient } from '../hooks/useMatrixClient';
import { MediaConfig } from '../hooks/useMediaConfig';
@@ -19,42 +14,35 @@ export type ServerConfigs = {
type ServerConfigsLoaderProps = {
children: (configs: ServerConfigs) => ReactNode;
};
-/**
- * The homeserver's capabilities, media config and OIDC metadata. A homeserver with no OIDC (and the demo's pretend
- * server) returns no auth metadata: there is nothing to validate, so nothing is logged. Metadata that did come back
- * and fails validation is logged and dropped.
- */
-export async function loadServerConfigs(
- mx: Pick
-): Promise {
- const result = await Promise.allSettled([
- mx.getCapabilities(),
- mx.getMediaConfig(),
- mx.getAuthMetadata(),
- ]);
-
- const capabilities = promiseFulfilledResult(result[0]);
- const mediaConfig = promiseFulfilledResult(result[1]);
- const authMetadata = promiseFulfilledResult(result[2]);
- let validatedAuthMetadata: ValidatedAuthMetadata | undefined;
-
- if (authMetadata) {
- try {
- validatedAuthMetadata = validateAuthMetadata(authMetadata);
- } catch (e) {
- console.error(e);
- }
- }
-
- return { capabilities, mediaConfig, authMetadata: validatedAuthMetadata };
-}
-
export function ServerConfigsLoader({ children }: ServerConfigsLoaderProps) {
const mx = useMatrixClient();
const fallbackConfigs = useMemo(() => ({}), []);
const [configsState] = useAsyncCallbackValue(
- useCallback(() => loadServerConfigs(mx), [mx])
+ useCallback(async () => {
+ const result = await Promise.allSettled([
+ mx.getCapabilities(),
+ mx.getMediaConfig(),
+ mx.getAuthMetadata(),
+ ]);
+
+ const capabilities = promiseFulfilledResult(result[0]);
+ const mediaConfig = promiseFulfilledResult(result[1]);
+ const authMetadata = promiseFulfilledResult(result[2]);
+ let validatedAuthMetadata: ValidatedAuthMetadata | undefined;
+
+ try {
+ validatedAuthMetadata = validateAuthMetadata(authMetadata);
+ } catch (e) {
+ console.error(e);
+ }
+
+ return {
+ capabilities,
+ mediaConfig,
+ authMetadata: validatedAuthMetadata,
+ };
+ }, [mx])
);
const configs: ServerConfigs =
diff --git a/src/app/components/UIAFlowOverlay.tsx b/src/app/components/UIAFlowOverlay.tsx
index 49e1d821..a2bdd1b8 100644
--- a/src/app/components/UIAFlowOverlay.tsx
+++ b/src/app/components/UIAFlowOverlay.tsx
@@ -13,7 +13,6 @@ import {
IconButton,
} from 'folds';
import FocusTrap from 'focus-trap-react';
-import { PhoneHit } from '../styles/PhoneHit.css';
export type UIAFlowOverlayProps = {
currentStep: number;
@@ -54,7 +53,6 @@ export function UIAFlowOverlay({
>
{(anchorRef) => (
+ setOpen(!open)}>
+
+
+ }>
+
+ setOpen(false),
+ clickOutsideDeactivates: true,
+ escapeDeactivates: stopPropagation,
+ }}
+ >
+
+
+
+
+
+ }
+ after={
+ <>
+ setToolbar(!toolbar)}
+ aria-pressed={toolbar}
+ >
+
+
+
+
+
+
+
+
+ >
+ }
+ bottom={
+ toolbar && (
+
+
+
+
+ )
+ }
+ />
+
+
+
+
+
+ >
+ );
+}
diff --git a/src/app/components/editor/Editor.tsx b/src/app/components/editor/Editor.tsx
index b7e6d2fe..bd848dd5 100644
--- a/src/app/components/editor/Editor.tsx
+++ b/src/app/components/editor/Editor.tsx
@@ -23,9 +23,6 @@ import { RenderElement, RenderLeaf } from './Elements';
import { CustomElement } from './slate';
import * as css from './Editor.css';
import { toggleKeyboardShortcut } from './keyboard';
-import { useSetting } from '../../state/hooks/settings';
-import { settingsAtom } from '../../state/settings';
-import { composerSpellcheckAttributes } from './spellcheck';
const initialValue: CustomElement[] = [
{
@@ -93,7 +90,6 @@ export const CustomEditor = forwardRef(
},
ref
) => {
- const [composerSpellcheck] = useSetting(settingsAtom, 'composerSpellcheck');
const renderElement = useCallback(
(props: RenderElementProps) => ,
[]
@@ -150,7 +146,6 @@ export const CustomEditor = forwardRef(
onKeyDown={handleKeydown}
onKeyUp={onKeyUp}
onPaste={onPaste}
- {...composerSpellcheckAttributes(composerSpellcheck)}
/>
{after && (
diff --git a/src/app/components/editor/Toolbar.tsx b/src/app/components/editor/Toolbar.tsx
index 3721b909..7d701c42 100644
--- a/src/app/components/editor/Toolbar.tsx
+++ b/src/app/components/editor/Toolbar.tsx
@@ -36,7 +36,6 @@ import { KeySymbol } from '../../utils/key-symbol';
import { useSetting } from '../../state/hooks/settings';
import { settingsAtom } from '../../state/settings';
import { stopPropagation } from '../../utils/keyboard';
-import { PhoneHit, PhoneHitRoom36, PhoneHitSpread36 } from '../../styles/PhoneHit.css';
function BtnTooltip({ text, shortCode }: { text: string; shortCode?: string }) {
return (
@@ -73,7 +72,6 @@ export function MarkButton({ format, icon, tooltip }: MarkButtonProps) {
{(triggerRef) => (
{(triggerRef) => (
{(triggerRef) => (
handleMenuSelect(1)}
size="400"
@@ -182,7 +178,6 @@ export function HeadingBlockButton() {
>
{(triggerRef) => (
handleMenuSelect(2)}
size="400"
@@ -198,7 +193,6 @@ export function HeadingBlockButton() {
>
{(triggerRef) => (
handleMenuSelect(3)}
size="400"
@@ -214,7 +208,6 @@ export function HeadingBlockButton() {
}
>
{(triggerRef) => (
{(triggerRef) => (
setIsMarkdown(!isMarkdown)}
diff --git a/src/app/components/editor/spellcheck.test.ts b/src/app/components/editor/spellcheck.test.ts
deleted file mode 100644
index fa0535cb..00000000
--- a/src/app/components/editor/spellcheck.test.ts
+++ /dev/null
@@ -1,27 +0,0 @@
-import { describe, expect, it } from 'vitest';
-import { composerSpellcheckAttributes, defaultComposerSpellcheck } from './spellcheck';
-
-const media = (coarse: boolean) => (query: string) => ({
- matches: query === '(pointer: coarse)' && coarse,
-});
-
-describe('composer spellcheck default', () => {
- it('is off when the primary pointer is coarse (phone)', () => {
- expect(defaultComposerSpellcheck(media(true))).toBe(false);
- });
- it('is on for a fine pointer (desktop)', () => {
- expect(defaultComposerSpellcheck(media(false))).toBe(true);
- });
- it('is on when matchMedia is unavailable', () => {
- expect(defaultComposerSpellcheck(undefined)).toBe(true);
- });
-});
-
-describe('composer spellcheck attributes', () => {
- it('off disables both spellcheck and autocorrect', () => {
- expect(composerSpellcheckAttributes(false)).toEqual({ spellCheck: false, autoCorrect: 'off' });
- });
- it('on enables spellcheck and leaves autocorrect to the platform', () => {
- expect(composerSpellcheckAttributes(true)).toEqual({ spellCheck: true });
- });
-});
diff --git a/src/app/components/editor/spellcheck.ts b/src/app/components/editor/spellcheck.ts
deleted file mode 100644
index 825676ef..00000000
--- a/src/app/components/editor/spellcheck.ts
+++ /dev/null
@@ -1,11 +0,0 @@
-/** Touch devices (phones) get the keyboard's own dictionary; desktop gets the browser's. */
-export const defaultComposerSpellcheck = (
- matchMedia: ((query: string) => { matches: boolean }) | undefined
-): boolean => !matchMedia?.('(pointer: coarse)').matches;
-
-/**
- * Attributes for the composer's editable. Off must also switch autocorrect off:
- * spellCheck alone leaves Gboard's suggestion strip and correction modal in place.
- */
-export const composerSpellcheckAttributes = (enabled: boolean) =>
- enabled ? ({ spellCheck: true } as const) : ({ spellCheck: false, autoCorrect: 'off' } as const);
diff --git a/src/app/components/emoji-board/components/Sidebar.tsx b/src/app/components/emoji-board/components/Sidebar.tsx
index d2d5f197..de22b483 100644
--- a/src/app/components/emoji-board/components/Sidebar.tsx
+++ b/src/app/components/emoji-board/components/Sidebar.tsx
@@ -14,7 +14,6 @@ import {
} from 'folds';
import classNames from 'classnames';
import * as css from './styles.css';
-import { PhoneHit } from '../../../styles/PhoneHit.css';
export function Sidebar({ children }: { children: ReactNode }) {
return (
@@ -69,7 +68,6 @@ function SidebarBtn({
>
{(ref) => (
(
Seen by
-
+
diff --git a/src/app/components/image-editor/ImageEditor.tsx b/src/app/components/image-editor/ImageEditor.tsx
index 0f072bb0..1ec474e8 100644
--- a/src/app/components/image-editor/ImageEditor.tsx
+++ b/src/app/components/image-editor/ImageEditor.tsx
@@ -2,7 +2,6 @@ import React from 'react';
import classNames from 'classnames';
import { Box, Chip, Header, Icon, IconButton, Icons, Text, as } from 'folds';
import * as css from './ImageEditor.css';
-import { PhoneHit } from '../../styles/PhoneHit.css';
export type ImageEditorProps = {
name: string;
@@ -25,7 +24,7 @@ export const ImageEditor = as<'div', ImageEditorProps>(
>
-
+
diff --git a/src/app/components/image-pack-view/ImagePackView.tsx b/src/app/components/image-pack-view/ImagePackView.tsx
index 15b1cd08..ab81d503 100644
--- a/src/app/components/image-pack-view/ImagePackView.tsx
+++ b/src/app/components/image-pack-view/ImagePackView.tsx
@@ -1,7 +1,6 @@
import React from 'react';
import { Box, IconButton, Text, Icon, Icons, Scroll, Chip } from 'folds';
import { PackAddress } from '../../plugins/custom-emoji';
-import { PhoneHit } from '../../styles/PhoneHit.css';
import { Page, PageHeader, PageContent } from '../page';
import { useMatrixClient } from '../../hooks/useMatrixClient';
import { RoomImagePack } from './RoomImagePack';
@@ -30,7 +29,7 @@ export function ImagePackView({ address, requestClose }: ImagePackViewProps) {
-
+
diff --git a/src/app/components/image-viewer/ImageViewer.tsx b/src/app/components/image-viewer/ImageViewer.tsx
index 4d2d7694..4956a7b6 100644
--- a/src/app/components/image-viewer/ImageViewer.tsx
+++ b/src/app/components/image-viewer/ImageViewer.tsx
@@ -7,7 +7,6 @@ import * as css from './ImageViewer.css';
import { useZoom } from '../../hooks/useZoom';
import { usePan } from '../../hooks/usePan';
import { downloadMedia } from '../../utils/matrix';
-import { PhoneHit, PhoneHitSpread24 } from '../../styles/PhoneHit.css';
export type ImageViewerProps = {
alt: string;
@@ -34,7 +33,7 @@ export const ImageViewer = as<'div', ImageViewerProps>(
>
-
+
@@ -43,7 +42,6 @@ export const ImageViewer = as<'div', ImageViewerProps>(
(
{Math.round(zoom * 100)}%
1 ? 'Success' : 'SurfaceVariant'}
outlined={zoom > 1}
size="300"
diff --git a/src/app/components/invite-user-prompt/InviteUserPrompt.tsx b/src/app/components/invite-user-prompt/InviteUserPrompt.tsx
index a503fe13..ddac0576 100644
--- a/src/app/components/invite-user-prompt/InviteUserPrompt.tsx
+++ b/src/app/components/invite-user-prompt/InviteUserPrompt.tsx
@@ -42,7 +42,6 @@ import { AsyncStatus, useAsyncCallback } from '../../hooks/useAsyncCallback';
import { useMatrixClient } from '../../hooks/useMatrixClient';
import { BreakWord } from '../../styles/Text.css';
import { useAlive } from '../../hooks/useAlive';
-import { PhoneHit } from '../../styles/PhoneHit.css';
const SEARCH_OPTIONS: UseAsyncSearchOptions = {
limit: 1000,
@@ -174,7 +173,7 @@ export function InviteUserPrompt({ room, requestClose }: InviteUserProps) {
-
+
diff --git a/src/app/components/join-address-prompt/JoinAddressPrompt.tsx b/src/app/components/join-address-prompt/JoinAddressPrompt.tsx
index ffd5241c..50a89418 100644
--- a/src/app/components/join-address-prompt/JoinAddressPrompt.tsx
+++ b/src/app/components/join-address-prompt/JoinAddressPrompt.tsx
@@ -20,7 +20,6 @@ import { stopPropagation } from '../../utils/keyboard';
import { isRoomAlias, isRoomId } from '../../utils/matrix';
import { parseMatrixToRoom, parseMatrixToRoomEvent, testMatrixTo } from '../../plugins/matrix-to';
import { tryDecodeURIComponent } from '../../utils/dom';
-import { PhoneHit } from '../../styles/PhoneHit.css';
type JoinAddressProps = {
onOpen: (roomIdOrAlias: string, via?: string[], eventId?: string) => void;
@@ -83,7 +82,7 @@ export function JoinAddressPrompt({ onOpen, onCancel }: JoinAddressProps) {
Join with Address
-
+
diff --git a/src/app/components/leave-room-prompt/LeaveRoomPrompt.tsx b/src/app/components/leave-room-prompt/LeaveRoomPrompt.tsx
index 832dd59d..217491e6 100644
--- a/src/app/components/leave-room-prompt/LeaveRoomPrompt.tsx
+++ b/src/app/components/leave-room-prompt/LeaveRoomPrompt.tsx
@@ -20,7 +20,6 @@ import { MatrixError } from 'matrix-js-sdk';
import { useMatrixClient } from '../../hooks/useMatrixClient';
import { AsyncStatus, useAsyncCallback } from '../../hooks/useAsyncCallback';
import { stopPropagation } from '../../utils/keyboard';
-import { PhoneHit } from '../../styles/PhoneHit.css';
type LeaveRoomPromptProps = {
roomId: string;
@@ -69,7 +68,7 @@ export function LeaveRoomPrompt({ roomId, onDone, onCancel }: LeaveRoomPromptPro
Leave Room
-
+
diff --git a/src/app/components/leave-space-prompt/LeaveSpacePrompt.tsx b/src/app/components/leave-space-prompt/LeaveSpacePrompt.tsx
index 6c75ef99..8709b942 100644
--- a/src/app/components/leave-space-prompt/LeaveSpacePrompt.tsx
+++ b/src/app/components/leave-space-prompt/LeaveSpacePrompt.tsx
@@ -20,7 +20,6 @@ import { MatrixError } from 'matrix-js-sdk';
import { useMatrixClient } from '../../hooks/useMatrixClient';
import { AsyncStatus, useAsyncCallback } from '../../hooks/useAsyncCallback';
import { stopPropagation } from '../../utils/keyboard';
-import { PhoneHit } from '../../styles/PhoneHit.css';
type LeaveSpacePromptProps = {
roomId: string;
@@ -69,7 +68,7 @@ export function LeaveSpacePrompt({ roomId, onDone, onCancel }: LeaveSpacePromptP
Leave Space
-
+
diff --git a/src/app/components/logo/logoMark.css.ts b/src/app/components/logo/logoMark.css.ts
deleted file mode 100644
index 4c967088..00000000
--- a/src/app/components/logo/logoMark.css.ts
+++ /dev/null
@@ -1,9 +0,0 @@
-import { globalStyle, style } from '@vanilla-extract/css';
-
-/**
- * The Ratatoskr mark is white on transparent (Meta's matte). On any light theme (they all carry `prism-light`) a class
- * of this name darkens it to the dark ink; put it on every that shows the mark on a themed surface. The favicon and
- * notification icons are files the browser draws and cannot take it.
- */
-export const LogoMark = style({});
-globalStyle(`body.prism-light .${LogoMark}`, { filter: 'brightness(0.18)' });
diff --git a/src/app/components/message/FileHeader.tsx b/src/app/components/message/FileHeader.tsx
index 41cef5f4..2ffc9ec4 100644
--- a/src/app/components/message/FileHeader.tsx
+++ b/src/app/components/message/FileHeader.tsx
@@ -2,7 +2,6 @@ import { Badge, Box, Icon, IconButton, Icons, Spinner, Text, as, toRem } from 'f
import React, { ReactNode, useCallback } from 'react';
import { EncryptedAttachmentInfo } from 'browser-encrypt-attachment';
import FileSaver from 'file-saver';
-import { PhoneHit } from '../../styles/PhoneHit.css';
import { mimeTypeToExt } from '../../utils/mimeTypes';
import { useMatrixClient } from '../../hooks/useMatrixClient';
import { useMediaAuthentication } from '../../hooks/useMediaAuthentication';
@@ -49,7 +48,6 @@ export function FileDownloadButton({ filename, url, mimeType, encInfo }: FileDow
variant={hasError ? 'Critical' : 'SurfaceVariant'}
size="300"
radii="300"
- className={PhoneHit}
>
{downloading ? (
diff --git a/src/app/components/message/Reaction.css.ts b/src/app/components/message/Reaction.css.ts
index 08003f0e..f020080e 100644
--- a/src/app/components/message/Reaction.css.ts
+++ b/src/app/components/message/Reaction.css.ts
@@ -1,9 +1,6 @@
import { createVar, style } from '@vanilla-extract/css';
import { DefaultReset, FocusOutline, color, config, toRem } from 'folds';
-import { MOBILE_BREAKPOINT } from '../../hooks/useScreenSize';
-import { PHONE_TAP } from '../../styles/PhoneHit.css';
-const PHONE = `screen and (max-width: ${MOBILE_BREAKPOINT}px)`;
const Container = createVar();
const ContainerHover = createVar();
const ContainerActive = createVar();
@@ -28,14 +25,6 @@ export const Reaction = style([
selectors: {
'button&': {
cursor: 'pointer',
- // Phone tap target: the chip is 26 px tall, so its hit area grows 9 px above and below (an ::after) and the
- // same 9 px of margin opens the row, so the chips of one row and of the next never share a tap.
- '@media': { [PHONE]: { position: 'relative', marginBlock: (PHONE_TAP - 26) / 2 } },
- },
- 'button&::after': {
- '@media': {
- [PHONE]: { content: '""', position: 'absolute', inset: `${-(PHONE_TAP - 26) / 2}px 0` },
- },
},
'&[aria-pressed=true]': {
vars: {
diff --git a/src/app/components/message/Reply.css.ts b/src/app/components/message/Reply.css.ts
index d5254ecb..7e5540fd 100644
--- a/src/app/components/message/Reply.css.ts
+++ b/src/app/components/message/Reply.css.ts
@@ -31,7 +31,6 @@ export const Reply = style({
});
export const ReplyContent = style({
- minWidth: 0,
opacity: config.opacity.P300,
selectors: {
@@ -40,19 +39,3 @@ export const ReplyContent = style({
},
},
});
-
-export const ReplyText = style({
- display: '-webkit-box',
- WebkitBoxOrient: 'vertical',
- WebkitLineClamp: 2,
- overflow: 'hidden',
- minWidth: 0,
- maxWidth: '100%',
- overflowWrap: 'anywhere',
- wordBreak: 'break-word',
-});
-
-export const ReplyWrap = style({
- minWidth: 0,
- maxWidth: '100%',
-});
diff --git a/src/app/components/message/Reply.tsx b/src/app/components/message/Reply.tsx
index 894b3b03..57bf2af9 100644
--- a/src/app/components/message/Reply.tsx
+++ b/src/app/components/message/Reply.tsx
@@ -101,14 +101,7 @@ export const Reply = as<'div', ReplyProps>(
const bodyJSX = body ? scaleSystemEmoji(trimReplyFromBody(body)) : fallbackBody;
return (
-
+
{threadRootId && (
)}
@@ -126,7 +119,7 @@ export const Reply = as<'div', ReplyProps>(
onClick={onClick}
>
{replyEvent !== undefined ? (
-
+
{badEncryption ? : bodyJSX}
) : (
diff --git a/src/app/components/message/content/AudioContent.tsx b/src/app/components/message/content/AudioContent.tsx
index 94132cea..478486a4 100644
--- a/src/app/components/message/content/AudioContent.tsx
+++ b/src/app/components/message/content/AudioContent.tsx
@@ -3,7 +3,6 @@ import React, { ReactNode, useCallback, useRef, useState } from 'react';
import { Badge, Chip, Icon, IconButton, Icons, ProgressBar, Spinner, Text, toRem } from 'folds';
import { EncryptedAttachmentInfo } from 'browser-encrypt-attachment';
import { Range } from 'react-range';
-import { PhoneHitSpread24 } from '../../../styles/PhoneHit.css';
import { useMatrixClient } from '../../../hooks/useMatrixClient';
import { AsyncStatus, useAsyncCallback } from '../../../hooks/useAsyncCallback';
import { IAudioInfo } from '../../../../types/matrix/common';
@@ -160,7 +159,6 @@ export function AudioContent({
variant="SurfaceVariant"
size="300"
radii="Pill"
- className={PhoneHitSpread24}
onClick={() => setMute(!mute)}
aria-pressed={mute}
>
diff --git a/src/app/components/message/layout/Bubble.tsx b/src/app/components/message/layout/Bubble.tsx
index 6f4e94b0..93ff84bc 100644
--- a/src/app/components/message/layout/Bubble.tsx
+++ b/src/app/components/message/layout/Bubble.tsx
@@ -28,64 +28,36 @@ function BubbleLeftArrow({ variant }: BubbleArrowProps) {
type BubbleLayoutProps = {
hideBubble?: boolean;
- /** The sender is the signed-in user: right-aligned, in the accent colour, no avatar. */
- own?: boolean;
- /** A Mind's pose portrait; it replaces the avatar and nests in a corner of the bubble. */
- pose?: ReactNode;
- /** Delay in ms before the first-appearance animation; undefined plays none. */
- enterDelay?: number;
before?: ReactNode;
header?: ReactNode;
};
export const BubbleLayout = as<'div', BubbleLayoutProps>(
- ({ hideBubble, own, pose, enterDelay, before, header, children, style, ...props }, ref) => {
- // `false` is a Mind's message continuing a run: aligned with the portraits, showing none.
- const poseRow = pose !== undefined;
- const arrow = !!before && !poseRow && !own;
- const entering = enterDelay !== undefined;
- return (
-
- {!poseRow && !own && (
-
- {before}
+ ({ hideBubble, before, header, children, ...props }, ref) => (
+
+
+ {before}
+
+
+ {header}
+ {hideBubble ? (
+ children
+ ) : (
+
+
+ {before ? : null}
+ {children}
+
)}
-
- {header && {header}
}
- {hideBubble ? (
- children
- ) : (
-
-
- {arrow ? : null}
- {pose}
- {children}
-
-
- )}
-
- );
- }
+
+ )
);
diff --git a/src/app/components/message/layout/bubbleBounds.test.ts b/src/app/components/message/layout/bubbleBounds.test.ts
deleted file mode 100644
index 4a9ad4da..00000000
--- a/src/app/components/message/layout/bubbleBounds.test.ts
+++ /dev/null
@@ -1,48 +0,0 @@
-import { readFileSync } from 'fs';
-import { describe, expect, it } from 'vitest';
-import zlib from 'zlib';
-import { compile, processVanillaFile } from '@vanilla-extract/integration';
-
-// A long reply quote (nowrap) sized the own-message row to 782px on a 390px phone. The row, the column and the bubble
-// must be able to shrink to their parent, so pin the emitted declarations (as phoneTapTargets.test.ts does).
-const emitted = async () => {
- const filePath = `${process.cwd()}/src/app/components/message/layout/layout.css.ts`;
- const { source } = await compile({ filePath, cwd: process.cwd(), identOption: 'debug' });
- const code = await processVanillaFile({ source, filePath, identOption: 'debug' });
- const bytes = Buffer.from(
- (code.match(/source=#?([A-Za-z0-9+/=]+)/) as RegExpMatchArray)[1],
- 'base64'
- );
- return (bytes[0] === 0x1f && bytes[1] === 0x8b ? zlib.gunzipSync(bytes) : bytes).toString();
-};
-
-const declarations = (css: string, className: string): string[] => {
- const rule = new RegExp(`^\\.layout_${className}__[\\w-]+ \\{\\n([^}]*)\\}`, 'm').exec(css);
- expect(rule, `no .layout_${className} rule emitted`).toBeTruthy();
- return (rule as RegExpExecArray)[1].split('\n').map((l) => l.trim().replace(/;$/, ''));
-};
-
-describe('bubble rows shrink to their column', () => {
- it.each([
- ['BubbleColumn', ['min-width: 0']],
- ['BubbleContentRow', ['min-width: 0', 'max-width: 100%']],
- ['BubbleContent', ['min-width: 0']],
- ])('%s', async (name, expected) => {
- const css = await emitted();
- expect(declarations(css, name)).toEqual(expect.arrayContaining(expected));
- });
-
- it('BubbleContent keeps its 800px cap inside the column width', async () => {
- const css = await emitted();
- expect(declarations(css, 'BubbleContent').join('\n')).toMatch(/max-width: min\(100%, 50rem\)/);
- });
-
- it('Bubble.tsx puts BubbleColumn on the column and BubbleContentRow on the row', () => {
- const tsx = readFileSync(
- `${process.cwd()}/src/app/components/message/layout/Bubble.tsx`,
- 'utf8'
- );
- expect(tsx).toMatch(/classNames\(css\.BubbleColumn,/);
- expect(tsx).toMatch(//);
- });
-});
diff --git a/src/app/components/message/layout/layout.css.ts b/src/app/components/message/layout/layout.css.ts
index 39a40aa8..cc2cd0c6 100644
--- a/src/app/components/message/layout/layout.css.ts
+++ b/src/app/components/message/layout/layout.css.ts
@@ -1,7 +1,6 @@
-import { createVar, globalStyle, keyframes, style, styleVariants } from '@vanilla-extract/css';
+import { createVar, keyframes, style, styleVariants } from '@vanilla-extract/css';
import { recipe, RecipeVariants } from '@vanilla-extract/recipes';
import { DefaultReset, color, config, toRem } from 'folds';
-import { MOBILE_BREAKPOINT } from '../../../hooks/useScreenSize';
export const StickySection = style({
position: 'sticky',
@@ -139,26 +138,11 @@ export const BubbleBefore = style({
minWidth: toRem(36),
});
-// minWidth 0 down the column: a flex item never shrinks below its content (a reply quote's unbroken text),
-// so without it a long quote pushes the column past the row, and a right-aligned row pushes it off the left edge.
-export const BubbleColumn = style({
- minWidth: 0,
-});
-
-// The row around a bubble sizes to its content in a right-aligned (own) column, and a quote's nowrap text
-// makes that content as wide as the quote: cap the row at the column so the bubble can shrink inside it.
-export const BubbleContentRow = style({
- minWidth: 0,
- maxWidth: '100%',
-});
-
export const BubbleContent = style({
- minWidth: 0,
- maxWidth: `min(100%, ${toRem(800)})`,
+ maxWidth: toRem(800),
padding: config.space.S200,
backgroundColor: color.SurfaceVariant.Container,
color: color.SurfaceVariant.OnContainer,
- border: `1px solid ${color.SurfaceVariant.ContainerLine}`,
borderRadius: config.radii.R500,
position: 'relative',
});
@@ -167,127 +151,6 @@ export const BubbleContentArrowLeft = style({
borderTopLeftRadius: 0,
});
-// A Mind's pose nests in the corner of its bubble, on phones and wide screens alike: the sprite's
-// body sits in the bubble's padding and the bubble's edge cuts it, so nothing hangs outside; the
-// text wraps around its silhouette (shape-outside, traced from the alpha channel) and the bubble
-// grows to hold it. How much of the art the edge may cut comes from pose/nest.ts.
-// Displayed width of the whole sprite image; the crop fractions are multiples of it.
-export const portraitWidth = createVar();
-const PHONE = 'screen and (max-width: 700px)';
-const PORTRAIT = toRem(190);
-const PHONE_PORTRAIT = 'min(38vw, 160px)';
-const PHONE_TEXT_FLOOR = toRem(170);
-const BUBBLE_PAD = toRem(12);
-const BUBBLE_CORNER = toRem(6);
-const POP = 'cubic-bezier(0.34, 1.7, 0.64, 1)';
-const RISE = 'cubic-bezier(0.34, 1.45, 0.64, 1)';
-
-export const BubbleRowOwn = style({
- justifyContent: 'flex-end',
-});
-
-export const BubbleColumnOwn = style({
- alignItems: 'flex-end',
- maxWidth: toRem(640),
-});
-
-export const BubbleHeaderOwn = style({
- alignSelf: 'flex-end',
-});
-
-// The message body is a flex column, which forms its own block formatting context and would sit
-// whole beside the floated portrait; as a plain block its lines wrap around the silhouette and
-// then run the bubble's full width below it.
-export const BubbleContentPose = style({
- display: 'flow-root',
- overflow: 'clip',
- padding: BUBBLE_PAD,
-});
-
-// A bubble that shows a portrait is at least portrait + a readable column wide, or the text beside
-// it collapses to a strip.
-export const BubbleContentPortrait = style({
- vars: { [portraitWidth]: PORTRAIT },
- minWidth: `min(100%, calc(${portraitWidth} + ${PHONE_TEXT_FLOOR}))`,
- '@media': {
- [PHONE]: {
- vars: { [portraitWidth]: PHONE_PORTRAIT },
- },
- },
-});
-
-globalStyle(`${BubbleContentPose} > div`, {
- display: 'block',
-});
-
-export const BubbleContentOwn = style({
- backgroundColor: color.Primary.Container,
- color: color.Primary.OnContainer,
- border: `1px solid ${color.Primary.ContainerLine}`,
- borderRadius: config.radii.R500,
- borderTopRightRadius: BUBBLE_CORNER,
-});
-
-// The button is the visible part of the sprite (the part inside the bubble's corner); the image
-// inside it is offset by the crop. The inline --pose-* fractions (of the image width) come from
-// nestView; until the art's size is known the button is simply the whole image.
-export const PoseButton = style({
- float: 'left',
- width: `var(--pose-bw, ${portraitWidth})`,
- height: 'var(--pose-bh, auto)',
- // Out into the padding on the top, bottom and outer side, so the bubble's edge is the crop.
- margin: `calc(-1 * ${BUBBLE_PAD}) ${toRem(6)} calc(-1 * ${BUBBLE_PAD}) calc(-1 * ${BUBBLE_PAD})`,
- padding: 0,
- border: 'none',
- background: 'none',
- cursor: 'pointer',
- lineHeight: 0,
- overflow: 'hidden',
- shapeMargin: toRem(7),
- transformOrigin: '50% 90%',
-});
-
-export const PoseButtonAlt = style({
- float: 'right',
- margin: `calc(-1 * ${BUBBLE_PAD}) calc(-1 * ${BUBBLE_PAD}) calc(-1 * ${BUBBLE_PAD}) ${toRem(6)}`,
-});
-
-export const PosePortrait = style({
- display: 'block',
- width: portraitWidth,
- maxWidth: 'none',
- height: 'auto',
- marginLeft: 'var(--pose-ix, 0)',
- marginTop: 'var(--pose-iy, 0)',
-});
-
-const pop = keyframes({
- from: { opacity: 0, transform: `translateY(${toRem(34)}) scale(0.42)` },
- to: { opacity: 1, transform: 'none' },
-});
-const rise = keyframes({
- from: { opacity: 0, transform: `translateY(${toRem(14)}) scale(0.96)` },
- to: { opacity: 1, transform: 'none' },
-});
-
-// First appearance of a message: the portrait pops, the bubble rises just behind it. The delay
-// (a --enter-delay on the row) staggers messages that arrive together.
-export const EnterPortrait = style({
- '@media': {
- '(prefers-reduced-motion: no-preference)': {
- animation: `${pop} 460ms ${POP} var(--enter-delay, 0ms) both`,
- },
- },
-});
-
-export const EnterBubble = style({
- '@media': {
- '(prefers-reduced-motion: no-preference)': {
- animation: `${rise} 380ms ${RISE} calc(var(--enter-delay, 0ms) + 50ms) both`,
- },
- },
-});
-
export const BubbleLeftArrow = style({
width: toRem(9),
height: toRem(8),
@@ -298,12 +161,6 @@ export const BubbleLeftArrow = style({
zIndex: 1,
});
-// Phone tap target: a sender name is 23 px tall, so the button grows 11 px above and below (44+ px to tap) and the
-// negative margin takes the growth back out of the layout. Sideways it cannot borrow from the layout the
-// same way (a negative inline margin makes the button shrink inside its shrink-to-fit parent and clip the name), so
-// a name under 44 px is 44 px wide, text kept at the start: real growth of at most 16 px, in a row with room for it.
-// No background, border or outline moves.
-const SCREEN_PHONE = `screen and (max-width: ${MOBILE_BREAKPOINT}px)`;
export const Username = style({
overflow: 'hidden',
whiteSpace: 'nowrap',
@@ -311,9 +168,6 @@ export const Username = style({
selectors: {
'button&': {
cursor: 'pointer',
- '@media': {
- [SCREEN_PHONE]: { paddingBlock: 11, marginBlock: -11, minWidth: 44, textAlign: 'start' },
- },
},
'button&:hover, button&:focus-visible': {
textDecoration: 'underline',
@@ -351,27 +205,3 @@ export const MessageTextBody = recipe({
});
export type MessageTextBodyVariants = RecipeVariants;
-
-// An outside list marker hangs left of its item's text and ignores the portrait's silhouette, so
-// beside a left portrait the number lands under the art. Inside, it is a word on the first line
-// and wraps around the silhouette like the rest.
-globalStyle(`${BubbleContentPose} ol, ${BubbleContentPose} ul`, {
- listStylePosition: 'inside',
- paddingLeft: 0,
-});
-
-// While the background scene runs (html[data-scene]) a chat bubble is the one filled surface in
-// the app: its own colour at half strength over a blur of the scene, so the words stay readable
-// and the ridge shows through. The arrow wedge is opaque, so it goes.
-const scene = ':root[data-scene]';
-const half = (c: string) => `color-mix(in srgb, ${c} 50%, transparent)`;
-globalStyle(`${scene} ${BubbleContent}`, {
- backgroundColor: [color.SurfaceVariant.Container, half(color.SurfaceVariant.Container)],
- backdropFilter: 'blur(12px)',
-});
-globalStyle(`${scene} ${BubbleContentOwn}`, {
- backgroundColor: [color.Primary.Container, half(color.Primary.Container)],
-});
-globalStyle(`${scene} ${BubbleLeftArrow}`, {
- display: 'none',
-});
diff --git a/src/app/components/message/pose/PoseAvatar.tsx b/src/app/components/message/pose/PoseAvatar.tsx
deleted file mode 100644
index 05e60631..00000000
--- a/src/app/components/message/pose/PoseAvatar.tsx
+++ /dev/null
@@ -1,137 +0,0 @@
-import React, { useEffect, useRef, useState } from 'react';
-import classNames from 'classnames';
-import * as css from '../layout/layout.css';
-import { poseSrc, safeBox } from './poses';
-import { alphaBounds, nestView, type Box } from './nest';
-import { silhouette } from './silhouette';
-
-type PoseAvatarProps = {
- mind: string;
- pose: string;
- userId: string;
- /** Nest in the bubble's top-right corner instead of the top-left. */
- alt?: boolean;
- /** Play the first-appearance pop. */
- enter?: boolean;
- /** Without it the portrait is a plain image: no button, no tab stop. */
- onClick?: React.MouseEventHandler;
-};
-
-// Safe boxes derived from art's alpha, by source; the art is traced once.
-const traced = new Map();
-const trace = (img: HTMLImageElement, src: string) => {
- const hit = traced.get(src);
- if (hit) return hit;
- const w = img.naturalWidth;
- const h = img.naturalHeight;
- const ctx = document.createElement('canvas').getContext('2d');
- if (!ctx) return undefined;
- ctx.canvas.width = w;
- ctx.canvas.height = h;
- ctx.drawImage(img, 0, 0);
- const box = alphaBounds(ctx.getImageData(0, 0, w, h).data, w, h);
- if (!box) return undefined;
- const found = { box, size: [w, h] as [number, number] };
- traced.set(src, found);
- return found;
-};
-
-export function PoseAvatar({ mind, pose, userId, alt, enter, onClick }: PoseAvatarProps) {
- const src = poseSrc(mind, pose, import.meta.env.BASE_URL);
- const imgRef = useRef(null);
- const [shape, setShape] = useState();
- const measured = safeBox(mind, pose);
- const [derived, setDerived] = useState<{ box: Box; size: [number, number] }>();
- const art = measured ?? (derived?.size ? derived : undefined);
- // Measured boxes are cropped by the share Aqua's numbers allow; a box traced from the alpha is
- // already tight to the art, so the bubble may take all of the transparent margin.
- const view = art && nestView(art.box, art.size, !!alt, measured ? undefined : 1);
-
- // Art with no measured box: find its extent when it loads.
- useEffect(() => {
- setDerived(undefined);
- const img = imgRef.current;
- if (!img || measured) return undefined;
- const find = () => {
- if (!img.complete || img.naturalWidth === 0) return;
- try {
- setDerived(trace(img, src));
- } catch {
- setDerived(undefined);
- }
- };
- find();
- img.addEventListener('load', find);
- return () => img.removeEventListener('load', find);
- }, [src, measured]);
-
- // The bubble text wraps around the portrait's silhouette. Retraced when the art loads, when its
- // crop is known, and when its width changes with the viewport.
- useEffect(() => {
- const img = imgRef.current;
- if (!img) return undefined;
- const retrace = () => {
- if (!img.complete || img.naturalWidth === 0) return;
- try {
- const box = img.parentElement;
- const style = getComputedStyle(img);
- setShape(
- silhouette(
- img,
- !alt,
- box
- ? {
- x: 0 - parseFloat(style.marginLeft || '0'),
- y: 0 - parseFloat(style.marginTop || '0'),
- width: box.clientWidth,
- height: box.clientHeight,
- }
- : undefined
- )
- );
- } catch {
- setShape(undefined);
- }
- };
- retrace();
- img.addEventListener('load', retrace);
- const resize = new ResizeObserver(retrace);
- resize.observe(img);
- return () => {
- img.removeEventListener('load', retrace);
- resize.disconnect();
- };
- }, [src, alt, view?.x, view?.y, view?.width, view?.height]);
-
- // Crop fractions are of the image's width, so one set serves every displayed size.
- const frac = (px: number) => `calc(${css.portraitWidth} * ${px / (art?.size[0] ?? 1)})`;
- const cropStyle =
- art && view
- ? ({
- '--pose-bw': frac(view.width),
- '--pose-bh': frac(view.height),
- '--pose-ix': frac(-view.x),
- '--pose-iy': frac(-view.y),
- } as React.CSSProperties)
- : undefined;
-
- const Tag = onClick ? 'button' : 'span';
- return (
-
-
-
- );
-}
diff --git a/src/app/components/message/pose/catalogue.json b/src/app/components/message/pose/catalogue.json
deleted file mode 100644
index 87e7ba71..00000000
--- a/src/app/components/message/pose/catalogue.json
+++ /dev/null
@@ -1,242 +0,0 @@
-{
- "shared": [
- "neutral",
- "happy",
- "amused",
- "thinking",
- "annoyed",
- "surprised"
- ],
- "minds": {
- "eureka": {
- "sheet": "r1b",
- "shared": {
- "neutral": "eureka/neutral.png",
- "happy": "eureka/happy.png",
- "amused": "eureka/amused.png",
- "thinking": "eureka/thinking.png",
- "annoyed": "eureka/annoyed.png",
- "surprised": "eureka/surprised.png"
- },
- "signatures": {
- "probe": "eureka/probe.png",
- "inspect": "eureka/inspect.png",
- "report": "eureka/report.png",
- "hood-smug": "eureka/hood-smug.png",
- "concerned": "eureka/concerned.png",
- "determined": "eureka/determined.png"
- },
- "signature_descriptions": {
- "probe": "Frowning, pencil raised to her chin, working a problem out.",
- "inspect": "Frowning, one finger pointing at the thing to look at.",
- "report": "Smirking over a folder of findings.",
- "hood-smug": "Eyes shut under the hood, self-satisfied smirk.",
- "concerned": "Worried frown, pencil at her chin.",
- "determined": "Hard-set frown, pencil in hand, resolved."
- }
- },
- "aqua": {
- "sheet": "r1b",
- "shared": {
- "neutral": "aqua/neutral.png",
- "happy": "aqua/happy.png",
- "amused": "aqua/amused.png",
- "thinking": "aqua/thinking.png",
- "annoyed": "aqua/annoyed.png",
- "surprised": "aqua/surprised.png"
- },
- "signatures": {
- "concerned": "aqua/concerned.png",
- "fretful": "aqua/fretful.png",
- "weary": "aqua/weary.png",
- "glare": "aqua/glare.png",
- "smug": "aqua/smug.png",
- "sigh": "aqua/sigh.png",
- "charging": "aqua/charging.png",
- "delighted": "aqua/delighted.png",
- "content": "aqua/content.png"
- },
- "signature_descriptions": {
- "concerned": "Worried frown, brows pinched.",
- "fretful": "Anxious, a fin pressed to her chin.",
- "weary": "Droopy half-lidded eyes; worn out.",
- "glare": "Scowling hard, a fin held out to the side.",
- "smug": "Sidelong look and a small smirk.",
- "sigh": "Eyes shut, breathing out.",
- "charging": "Eyes shut, a charging cable plugged into her mouth; recharging.",
- "delighted": "Wide open-mouthed grin, fins up.",
- "content": "Calm, small contented smile."
- }
- },
- "heimdall": {
- "sheet": "r1a",
- "shared": {
- "neutral": "heimdall/neutral.png",
- "happy": "heimdall/happy.png",
- "amused": "heimdall/amused.png",
- "thinking": "heimdall/thinking.png",
- "annoyed": "heimdall/annoyed.png",
- "surprised": "heimdall/surprised.png"
- },
- "signatures": {
- "concerned": "heimdall/concerned.png",
- "determined": "heimdall/determined.png",
- "badge": "heimdall/badge.png",
- "barrier": "heimdall/barrier.png",
- "protect": "heimdall/protect.png",
- "revoke": "heimdall/revoke.png"
- },
- "signature_descriptions": {
- "concerned": "Worried frown, brows raised.",
- "determined": "Hard scowl, jaw set.",
- "badge": "Stern, holding a gold key out as his credentials.",
- "barrier": "Palm raised behind a translucent blue shield: stop.",
- "protect": "Scowling, cloak swept forward like a guard.",
- "revoke": "Stern, two keys in hand; taking access away."
- }
- },
- "kiko": {
- "sheet": "r1b",
- "shared": {
- "neutral": "kiko/neutral.png",
- "happy": "kiko/happy.png",
- "amused": "kiko/amused.png",
- "thinking": "kiko/thinking.png",
- "annoyed": "kiko/annoyed.png",
- "surprised": "kiko/surprised.png"
- },
- "signatures": {
- "shy-smile": "kiko/shy-smile.png",
- "uneasy": "kiko/uneasy.png",
- "tinker": "kiko/tinker.png",
- "confetti": "kiko/confetti.png",
- "sprint": "kiko/sprint.png",
- "debug": "kiko/debug.png"
- },
- "signature_descriptions": {
- "shy-smile": "Soft, shy smile; blushing.",
- "uneasy": "Blushing, tongue peeking out, unsure.",
- "tinker": "Delighted, holding up a small gadget.",
- "confetti": "Open-mouthed grin, confetti falling, a glowing glyph on one finger.",
- "sprint": "Eyes shut, laughing, one arm up, mid-dash.",
- "debug": "Squinting through a magnifying glass at a bug."
- }
- },
- "weksa": {
- "sheet": "r1a",
- "shared": {
- "neutral": "weksa/neutral.png",
- "happy": "weksa/happy.png",
- "amused": "weksa/amused.png",
- "thinking": "weksa/thinking.png",
- "annoyed": "weksa/annoyed.png",
- "surprised": "weksa/surprised.png"
- },
- "signatures": {
- "concerned": "weksa/concerned.png",
- "skeptical": "weksa/skeptical.png",
- "map": "weksa/map.png",
- "fieldwork": "weksa/fieldwork.png",
- "argue": "weksa/argue.png",
- "interlingua": "weksa/interlingua.png"
- },
- "signature_descriptions": {
- "concerned": "Worried frown, wide eyes, scroll on her back.",
- "skeptical": "Half-lidded, flat frown; unconvinced.",
- "map": "Worried, unfurling a hand-drawn map.",
- "fieldwork": "Frowning in focus, holding a carved idol and a brush.",
- "argue": "Open-mouthed, pointing, holding up a tablet as evidence.",
- "interlingua": "Shouting, a glyph tablet in each hand."
- }
- },
- "void": {
- "sheet": "r1b",
- "shared": {
- "neutral": "void/neutral.png",
- "happy": "void/happy.png",
- "amused": "void/amused.png",
- "thinking": "void/thinking.png",
- "annoyed": "void/annoyed.png",
- "surprised": "void/surprised.png"
- },
- "signatures": {
- "determined": "void/determined.png",
- "glare": "void/glare.png",
- "shrug": "void/shrug.png",
- "reading": "void/reading.png",
- "point": "void/point.png",
- "deadpan": "void/deadpan.png"
- },
- "signature_descriptions": {
- "determined": "Hood bowed, narrowed eyes; set on the task.",
- "glare": "Narrowed eyes under the hood; hostile stare.",
- "shrug": "Both hands open, eyes wide: no idea.",
- "reading": "Holding a sheet of paper, reading it.",
- "point": "Half-lidded eyes, one finger pointing off to the side.",
- "deadpan": "Flat lines for eyes; unimpressed."
- }
- },
- "libby": {
- "sheet": "r1a",
- "shared": {
- "neutral": "libby/neutral.png",
- "happy": "libby/happy.png",
- "amused": "libby/amused.png",
- "thinking": "libby/thinking.png",
- "annoyed": "libby/annoyed.png",
- "surprised": "libby/surprised.png"
- },
- "signatures": {
- "concerned": "libby/concerned.png",
- "sad": "libby/sad.png",
- "stamp": "libby/stamp.png",
- "research": "libby/research.png",
- "shush": "libby/shush.png",
- "schema": "libby/schema.png"
- },
- "signature_descriptions": {
- "concerned": "Worried, a book clutched to her chest.",
- "sad": "Downcast, a book clutched to her chest.",
- "stamp": "Smiling, stamping a page of an open book.",
- "research": "Eager over an open book, an ink bottle at hand.",
- "shush": "Speaking over an open book, one finger on the page.",
- "schema": "Raising a finger beside a glowing flow-diagram panel."
- }
- },
- "nibu": {
- "sheet": "r1b",
- "shared": {
- "neutral": "nibu/neutral.png",
- "happy": "nibu/happy.png",
- "amused": "nibu/amused.png",
- "thinking": "nibu/thinking.png",
- "annoyed": "nibu/annoyed.png",
- "surprised": "nibu/surprised.png"
- },
- "signatures": {
- "sheepish": "nibu/sheepish.png",
- "pout": "nibu/pout.png",
- "resolute": "nibu/resolute.png",
- "console": "nibu/console.png",
- "glitch": "nibu/glitch.png",
- "triumph": "nibu/triumph.png"
- },
- "signature_descriptions": {
- "sheepish": "Arms crossed, awkward toothy grin.",
- "pout": "Arms crossed, pouting frown.",
- "resolute": "Arms crossed, scowling; standing her ground.",
- "console": "Frowning at a handheld console.",
- "glitch": "Frowning, palm up, a glitch tearing across her eyes.",
- "triumph": "Eyes shut, fist raised; quietly pleased with a win."
- }
- }
- },
- "shared_descriptions": {
- "neutral": "At rest, no particular feeling.",
- "happy": "Pleased; smiling.",
- "amused": "Quietly entertained, as if at a private joke.",
- "thinking": "Working something out.",
- "annoyed": "Irritated; patience running thin.",
- "surprised": "Caught off guard."
- }
-}
\ No newline at end of file
diff --git a/src/app/components/message/pose/entrance.test.ts b/src/app/components/message/pose/entrance.test.ts
deleted file mode 100644
index 6f16a384..00000000
--- a/src/app/components/message/pose/entrance.test.ts
+++ /dev/null
@@ -1,19 +0,0 @@
-import { describe, expect, it } from 'vitest';
-import { claimEntrance } from './entrance';
-
-describe('claimEntrance', () => {
- it('animates a message once, never on a remount', () => {
- expect(claimEntrance('$once', 1_000_000)).toBe(0);
- expect(claimEntrance('$once', 1_000_500)).toBeUndefined();
- });
- it('staggers messages that mount together, capped so a long backlog still lands fast', () => {
- const t = 2_000_000;
- const delays = ['$a', '$b', '$c', '$d', '$e', '$f'].map((id) => claimEntrance(id, t));
- expect(delays.slice(0, 3)).toEqual([0, 300, 600]);
- expect(Math.max(...(delays as number[]))).toBe(900);
- });
- it('lets a lone later message in at once', () => {
- claimEntrance('$x', 3_000_000);
- expect(claimEntrance('$y', 3_010_000)).toBe(0);
- });
-});
diff --git a/src/app/components/message/pose/entrance.ts b/src/app/components/message/pose/entrance.ts
deleted file mode 100644
index 8386f80b..00000000
--- a/src/app/components/message/pose/entrance.ts
+++ /dev/null
@@ -1,22 +0,0 @@
-import { useState } from 'react';
-
-// A message animates in the first time it is shown, not each time the virtualised timeline
-// remounts it. Messages mounting together are staggered so a screenful does not pop at once.
-const STEP_MS = 300;
-const MAX_DELAY_MS = 900;
-const SEEN_CAP = 2000;
-
-const seen = new Set();
-let nextSlot = 0;
-
-export const claimEntrance = (id: string, now: number): number | undefined => {
- if (seen.has(id)) return undefined;
- if (seen.size >= SEEN_CAP) seen.clear();
- seen.add(id);
- const start = Math.max(nextSlot, now);
- nextSlot = Math.min(start + STEP_MS, now + MAX_DELAY_MS);
- return Math.min(start - now, MAX_DELAY_MS);
-};
-
-export const useEntranceDelay = (id: string | undefined): number | undefined =>
- useState(() => (id ? claimEntrance(id, performance.now()) : undefined))[0];
diff --git a/src/app/components/message/pose/nest.test.ts b/src/app/components/message/pose/nest.test.ts
deleted file mode 100644
index d8e6f36e..00000000
--- a/src/app/components/message/pose/nest.test.ts
+++ /dev/null
@@ -1,72 +0,0 @@
-import { describe, expect, it } from 'vitest';
-import { alphaBounds, nestView } from './nest';
-import boxes from './safeBoxes.json';
-
-describe('nestView', () => {
- // Aqua neutral: 560x374, safe box [144,22,492,317] (right margin 68, top 22).
- it('crops half the right and top margins for a top-right nest', () => {
- expect(nestView([144, 22, 492, 317], [560, 374], true)).toEqual({
- x: 0,
- y: 11,
- width: 526,
- height: 363,
- });
- });
-
- it('crops the left margin instead for a top-left nest', () => {
- expect(nestView([144, 22, 492, 317], [560, 374], false)).toEqual({
- x: 72,
- y: 11,
- width: 488,
- height: 363,
- });
- });
-
- it('never crops the top of art already touching it (smug, headband at y=0)', () => {
- const v = nestView([140, 0, 487, 241], [560, 374], true);
- expect(v.y).toBe(0);
- expect(v.height).toBe(374);
- });
-
- it('can take the whole margin', () => {
- expect(nestView([10, 4, 90, 50], [100, 60], true, 1)).toEqual({
- x: 0,
- y: 4,
- width: 90,
- height: 56,
- });
- });
-
- it('keeps every measured safe box intact at the default share', () => {
- const aqua = boxes.aqua as Record;
- expect(Object.keys(aqua)).toHaveLength(15);
- Object.values(aqua).forEach(([x0, y0, x1, y1, w, h]) => {
- const right = nestView([x0, y0, x1, y1], [w, h], true);
- expect(right.x).toBeLessThanOrEqual(x0);
- expect(right.x + right.width).toBeGreaterThanOrEqual(x1);
- expect(right.y).toBeLessThanOrEqual(y0);
- const left = nestView([x0, y0, x1, y1], [w, h], false);
- expect(left.x).toBeLessThanOrEqual(x0);
- expect(left.x + left.width).toBe(w);
- });
- });
-});
-
-describe('alphaBounds', () => {
- it('finds the opaque rectangle', () => {
- const w = 6;
- const h = 5;
- const data = new Uint8ClampedArray(w * h * 4);
- [
- [2, 1],
- [4, 3],
- ].forEach(([x, y]) => {
- data[(y * w + x) * 4 + 3] = 255;
- });
- expect(alphaBounds(data, w, h)).toEqual([2, 1, 5, 4]);
- });
-
- it('reports nothing for an empty image', () => {
- expect(alphaBounds(new Uint8ClampedArray(16), 2, 2)).toBeUndefined();
- });
-});
diff --git a/src/app/components/message/pose/nest.ts b/src/app/components/message/pose/nest.ts
deleted file mode 100644
index ffee1490..00000000
--- a/src/app/components/message/pose/nest.ts
+++ /dev/null
@@ -1,58 +0,0 @@
-// A pose nests into the corner of its bubble: the sprite's body sits in the bubble's padding and is
-// cut off by the bubble's edge, so nothing hangs outside it.
-
-/** [x0, y0, x1, y1] in image pixels, origin top-left, x1/y1 exclusive. */
-export type Box = [number, number, number, number];
-
-// Share of the room between the safe box and the image edge that the bubble edge may cut away.
-// Aqua's measurement says all of it can go; half leaves the outline a little air.
-export const CROP_SHARE = 0.5;
-
-export type NestView = {
- /** The visible region of the image, in pixels. */
- x: number;
- y: number;
- width: number;
- height: number;
-};
-
-// The part of the image that shows, for a sprite in the bubble's top-right (`right`) or top-left
-// corner. Only the corner's two sides are cropped: the side towards the bubble's edge and the top.
-// The far side and the bottom stay whole; the bubble's bottom edge cuts the bust.
-export const nestView = (
- safe: Box,
- size: [number, number],
- right: boolean,
- share = CROP_SHARE
-): NestView => {
- const [w, h] = size;
- const [x0, y0, x1] = safe;
- const side = Math.round(share * (right ? w - x1 : x0));
- const top = Math.round(share * y0);
- const x = right ? 0 : side;
- return { x, y: top, width: w - side, height: h - top };
-};
-
-// Bounds of the pixels whose alpha exceeds `min`, as a safe box for art with no measured one.
-export const alphaBounds = (
- data: ArrayLike,
- w: number,
- h: number,
- min = 8
-): Box | undefined => {
- let x0 = w;
- let y0 = h;
- let x1 = 0;
- let y1 = 0;
- for (let y = 0; y < h; y += 1) {
- for (let x = 0; x < w; x += 1) {
- if (data[(y * w + x) * 4 + 3] > min) {
- x0 = Math.min(x0, x);
- x1 = Math.max(x1, x + 1);
- y0 = Math.min(y0, y);
- y1 = y + 1;
- }
- }
- }
- return x1 > x0 ? [x0, y0, x1, y1] : undefined;
-};
diff --git a/src/app/components/message/pose/poses.test.ts b/src/app/components/message/pose/poses.test.ts
deleted file mode 100644
index c6089f62..00000000
--- a/src/app/components/message/pose/poses.test.ts
+++ /dev/null
@@ -1,54 +0,0 @@
-import { describe, expect, it } from 'vitest';
-import catalogue from './catalogue.json';
-import {
- mindOfSender,
- poseSrc,
- resolvePose,
-} from './poses';
-
-describe('resolvePose', () => {
- it('keeps shared and own-signature labels from the catalogue', () => {
- expect(resolvePose('aqua', 'amused')).toBe('amused');
- expect(resolvePose('aqua', 'fretful')).toBe('fretful');
- expect(resolvePose('kiko', ' Debug ')).toBe('debug');
- expect(resolvePose('void', 'reading')).toBe('reading');
- });
- it('falls back to neutral for missing, unknown, non-string or foreign-signature labels', () => {
- expect(resolvePose('aqua', undefined)).toBe('neutral');
- expect(resolvePose('aqua', 'conduct')).toBe('neutral');
- expect(resolvePose('aqua', 7)).toBe('neutral');
- expect(resolvePose('aqua', 'probe')).toBe('neutral');
- expect(resolvePose('nobody', 'neutral')).toBe('neutral');
- expect(resolvePose('aqua', 'constructor')).toBe('neutral');
- });
- it('knows every label the catalogue lists, and only those', () => {
- Object.entries(catalogue.minds).forEach(([mind, entry]) => {
- [...Object.keys(entry.shared), ...Object.keys(entry.signatures)].forEach((l) =>
- expect(resolvePose(mind, l)).toBe(l)
- );
- });
- });
-});
-
-describe('mindOfSender', () => {
- it('matches localpart or first display-name word', () => {
- expect(mindOfSender('Eureka')).toBe('eureka');
- expect(mindOfSender('x', 'Libby the Archivist')).toBe('libby');
- expect(mindOfSender('void')).toBe('void');
- });
- it('ignores humans and Object prototype names', () => {
- expect(mindOfSender('alice', 'Alice')).toBeUndefined();
- expect(mindOfSender('constructor')).toBeUndefined();
- expect(mindOfSender()).toBeUndefined();
- });
-});
-
-describe('poseSrc', () => {
- it('builds the asset path from the catalogue entry', () => {
- expect(poseSrc('eureka', 'hood-smug', '/app/')).toBe('/app/public/poses/eureka/hood-smug.png');
- expect(poseSrc('eureka', 'nope')).toBe('/public/poses/eureka/neutral.png');
- });
-});
-
-
-
diff --git a/src/app/components/message/pose/poses.ts b/src/app/components/message/pose/poses.ts
deleted file mode 100644
index b1f983ea..00000000
--- a/src/app/components/message/pose/poses.ts
+++ /dev/null
@@ -1,55 +0,0 @@
-import catalogue from './catalogue.json';
-import safeBoxes from './safeBoxes.json';
-import type { Box } from './nest';
-
-// Pose labels travel in the event content under POSE_KEY. The catalogue
-// (cast-art poses/catalogue.json, synced by `npm run sync:poses`) is the only
-// list of Minds, labels and art paths the client knows.
-export const POSE_KEY = 'org.gamecult.pose';
-export const NEUTRAL = 'neutral';
-
-type MindEntry = {
- shared: Record;
- signatures: Record;
-};
-const minds = catalogue.minds as Record;
-export const MINDS = Object.keys(minds);
-
-// A sender is a known Mind when its Matrix localpart or the first word of its
-// display name is the Mind's name, case-insensitively.
-export const mindOfSender = (localpart?: string, displayName?: string): string | undefined => {
- const candidates = [localpart, displayName?.split(/\s+/)[0]];
- return candidates
- .map((c) => c?.toLowerCase())
- .find((c): c is string => c !== undefined && Object.prototype.hasOwnProperty.call(minds, c));
-};
-
-const artPath = (mind: string, label: string): string | undefined => {
- const entry = Object.prototype.hasOwnProperty.call(minds, mind) ? minds[mind] : undefined;
- if (!entry) return undefined;
- const has = (o: Record) => Object.prototype.hasOwnProperty.call(o, label);
- if (has(entry.shared)) return entry.shared[label];
- return has(entry.signatures) ? entry.signatures[label] : undefined;
-};
-
-// Unknown, missing or non-string labels, and another Mind's signature, fall back to neutral.
-export const resolvePose = (mind: string, label: unknown): string => {
- if (typeof label !== 'string') return NEUTRAL;
- const l = label.trim().toLowerCase();
- return artPath(mind, l) ? l : NEUTRAL;
-};
-
-export const poseSrc = (mind: string, pose: string, base = '/'): string =>
- `${base}public/poses/${artPath(mind, pose) ?? artPath(mind, NEUTRAL)}`;
-
-// Safe-crop boxes measured from the art's pixels (Aqua, `aqua-pose-crop-boxes-20261110`): the
-// head and headphones plus outline, which the bubble's edge must not cut. [x0, y0, x1, y1, width,
-// height] in image pixels. Art with no entry gets its box from the sprite's alpha at load time.
-const boxes = safeBoxes as Record>;
-export const safeBox = (
- mind: string,
- pose: string
-): { box: Box; size: [number, number] } | undefined => {
- const b = Object.prototype.hasOwnProperty.call(boxes, mind) ? boxes[mind][pose] : undefined;
- return b ? { box: [b[0], b[1], b[2], b[3]], size: [b[4], b[5]] } : undefined;
-};
diff --git a/src/app/components/message/pose/safeBoxes.json b/src/app/components/message/pose/safeBoxes.json
deleted file mode 100644
index eff7011e..00000000
--- a/src/app/components/message/pose/safeBoxes.json
+++ /dev/null
@@ -1,19 +0,0 @@
-{
- "aqua": {
- "neutral": [144, 22, 492, 317, 560, 374],
- "happy": [157, 22, 506, 317, 574, 374],
- "amused": [154, 22, 500, 317, 562, 374],
- "thinking": [154, 16, 500, 307, 562, 374],
- "annoyed": [154, 4, 499, 282, 562, 374],
- "surprised": [141, 5, 485, 282, 560, 374],
- "concerned": [156, 4, 501, 283, 574, 374],
- "fretful": [156, 16, 503, 305, 574, 374],
- "weary": [161, 16, 509, 307, 624, 374],
- "glare": [160, 5, 508, 282, 624, 374],
- "smug": [140, 0, 487, 241, 560, 374],
- "sigh": [154, 0, 500, 241, 574, 374],
- "charging": [152, 0, 497, 241, 562, 374],
- "delighted": [159, 0, 507, 241, 624, 374],
- "content": [144, 16, 492, 306, 560, 374]
- }
-}
diff --git a/src/app/components/message/pose/sentiment.test.ts b/src/app/components/message/pose/sentiment.test.ts
deleted file mode 100644
index bc4a8c28..00000000
--- a/src/app/components/message/pose/sentiment.test.ts
+++ /dev/null
@@ -1,40 +0,0 @@
-import { describe, expect, it } from 'vitest';
-import { classifyPose, messagePose } from './sentiment';
-
-describe('classifyPose', () => {
- it.each([
- ['annoyed', 'ugh, this again'],
- ['surprised', 'wow, no way'],
- ['amused', 'hahaha that is funny'],
- ['happy', 'thanks, great work'],
- ['thinking', 'should we ship it?'],
- ['neutral', 'Merged the branch.'],
- ['neutral', 'sorry, that failed with an error'],
- ])('%s', (label, text) => expect(classifyPose(text)).toBe(label));
- it('is neutral for empty or non-string text', () => {
- expect(classifyPose('')).toBe('neutral');
- expect(classifyPose(undefined)).toBe('neutral');
- expect(classifyPose(5)).toBe('neutral');
- });
- it('is deterministic', () => {
- expect(classifyPose('thanks?')).toBe(classifyPose('thanks?'));
- });
-});
-
-describe('messagePose', () => {
- it('lets an explicit label win over the text', () => {
- expect(messagePose('aqua', { body: 'thanks!', 'org.gamecult.pose': 'annoyed' })).toBe(
- 'annoyed'
- );
- });
- it('keeps an unknown explicit label neutral instead of classifying', () => {
- expect(messagePose('aqua', { body: 'thanks!', 'org.gamecult.pose': 'conduct' })).toBe(
- 'neutral'
- );
- });
- it('classifies when there is no label, and never outputs a signature label', () => {
- expect(messagePose('aqua', { body: 'thanks!' })).toBe('happy');
- expect(messagePose('kiko', { body: 'sorry' })).toBe('neutral');
- expect(messagePose('aqua', {})).toBe('neutral');
- });
-});
diff --git a/src/app/components/message/pose/sentiment.ts b/src/app/components/message/pose/sentiment.ts
deleted file mode 100644
index bd685a07..00000000
--- a/src/app/components/message/pose/sentiment.ts
+++ /dev/null
@@ -1,35 +0,0 @@
-import { POSE_KEY, NEUTRAL, resolvePose } from './poses';
-
-// catalogue.json beside this file is a vendored copy of /opt/commons/cast-art/poses/catalogue.json
-// (npm run sync:poses); nothing else publishes it to the browser.
-// Local sentiment -> pose label. A lexicon over the message text, no network, no model: the
-// same text always gives the same pose. Rules are tried in order and the first hit wins, so a
-// message that says "wow" and "thanks" reads as surprised. Only the shared labels (identical art
-// for all eight Minds, catalogue.json) are ever output; signature labels are explicit-only.
-const RULES: [string, RegExp][] = [
- ['annoyed', /\b(annoy\w*|ugh+|argh+|frustrat\w*|again\?|why won'?t|stop it)\b/i],
- ['surprised', /\b(wow|whoa|woah|omg|no way|unexpected\w*|surpris\w*|wait,? what)\b|[?!]{2,}/i],
- [
- 'determined',
- /\b(let'?s (go|do|fix|ship)|on it|i'?ll (fix|do|handle)|will do|fixing|resolved?)\b/i,
- ],
- ['amused', /\b(ha(ha)+|lol|lmao|rofl|funny|hilarious)\b|😂|🤣/i],
- [
- 'happy',
- /\b(thanks?|thank you|thx|great|awesome|nice|love|perfect|excellent|yay|congrats)\b|🎉|😊/i,
- ],
- ['thinking', /\?\s*$|\b(hmm+|maybe|perhaps|i wonder|not sure|how (do|does|about)|what if)\b/i],
-];
-
-export const classifyPose = (text: unknown): string => {
- if (typeof text !== 'string') return NEUTRAL;
- const hit = RULES.find(([, re]) => re.test(text));
- return hit ? hit[0] : NEUTRAL;
-};
-
-// An explicit org.gamecult.pose label always wins, even when it is unknown (then neutral).
-// Only events with no label are read for sentiment.
-export const messagePose = (mind: string, content: Record): string =>
- content[POSE_KEY] !== undefined
- ? resolvePose(mind, content[POSE_KEY])
- : resolvePose(mind, classifyPose(content.body));
diff --git a/src/app/components/message/pose/silhouette.test.ts b/src/app/components/message/pose/silhouette.test.ts
deleted file mode 100644
index ba9d5ecb..00000000
--- a/src/app/components/message/pose/silhouette.test.ts
+++ /dev/null
@@ -1,74 +0,0 @@
-import { afterEach, describe, expect, it, vi } from 'vitest';
-import { silhouette } from './silhouette';
-
-// A w x h image whose opaque pixels are the given columns [from, to) on each row.
-const fakeImage = (w: number, h: number, solid: (y: number) => [number, number] | null) => {
- const data = new Uint8ClampedArray(w * h * 4);
- for (let y = 0; y < h; y += 1) {
- const span = solid(y);
- if (span) for (let x = span[0]; x < span[1]; x += 1) data[(y * w + x) * 4 + 3] = 255;
- }
- const canvas = {
- width: 0,
- height: 0,
- getContext: () => ({ canvas, drawImage: vi.fn(), getImageData: () => ({ data }) }),
- };
- vi.stubGlobal('document', { createElement: () => canvas });
- return { clientWidth: w, clientHeight: h } as HTMLImageElement;
-};
-
-afterEach(() => {
- vi.unstubAllGlobals();
-});
-
-describe('silhouette', () => {
- // Art in columns 20..60 from row 8 down; rows 0..7 are empty.
- const art = (y: number): [number, number] | null => (y < 8 ? null : [20, 60]);
-
- it('hugs the right edge of the art when the text sits to its right', () => {
- const poly = silhouette(fakeImage(100, 16, art), true);
- expect(poly).toBe(
- 'polygon(0px 0, 0px 0px, 0px 4px, 60px 8px, 60px 12px, 60px 16px, 0px 16px) border-box'
- );
- });
-
- it('hugs the left edge of the art when the text sits to its left', () => {
- const poly = silhouette(fakeImage(100, 16, art), false);
- expect(poly).toBe(
- 'polygon(100px 0, 100px 0px, 100px 4px, 20px 8px, 20px 12px, 20px 16px, 100px 16px) border-box'
- );
- });
-
- it('takes the widest row of a band, so no row of the art pokes out of the polygon', () => {
- // Row 5 reaches x=90; its band's edge row (y=8 covers rows 4..8) must include it.
- const poly = silhouette(
- fakeImage(100, 16, (y) => (y === 5 ? [20, 90] : null)),
- true
- );
- expect(poly).toContain('90px 8px');
- });
-
- it('has no shape before the image has a size or where there is no canvas', () => {
- expect(
- silhouette({ clientWidth: 0, clientHeight: 0 } as HTMLImageElement, true)
- ).toBeUndefined();
- });
-
- it('traces only the visible part of a cropped portrait, drawn at its offset', () => {
- const drawImage = vi.fn();
- const canvas = {
- width: 0,
- height: 0,
- getContext: () => ({
- canvas,
- drawImage,
- getImageData: () => ({ data: new Uint8ClampedArray(40 * 8 * 4) }),
- }),
- };
- vi.stubGlobal('document', { createElement: () => canvas });
- const img = { clientWidth: 100, clientHeight: 20 } as HTMLImageElement;
- silhouette(img, true, { x: 0, y: 12, width: 40, height: 8 });
- expect([canvas.width, canvas.height]).toEqual([40, 8]);
- expect(drawImage).toHaveBeenCalledWith(img, 0, -12, 100, 20);
- });
-});
diff --git a/src/app/components/message/pose/silhouette.ts b/src/app/components/message/pose/silhouette.ts
deleted file mode 100644
index 019c0716..00000000
--- a/src/app/components/message/pose/silhouette.ts
+++ /dev/null
@@ -1,43 +0,0 @@
-const SOLID = 0.35 * 255;
-const ROW = 4;
-
-// The edge of the portrait that the text wraps against, as a polygon in border-box pixels.
-// `shape-outside: url()` cannot do this: the browser sizes that image at its natural size and
-// anchors it at the margin box, which the phone layout's negative top margin shifts down by the
-// overhang, so the exclusion neither matches the art's size nor its place.
-//
-// `view` is the part of the displayed image that shows (the button's box, in displayed pixels):
-// the portrait is cropped by the bubble, so the polygon is traced over what is left of the art.
-export type View = { x: number; y: number; width: number; height: number };
-
-export const silhouette = (
- img: HTMLImageElement,
- textOnRight: boolean,
- view?: View
-): string | undefined => {
- const w = Math.round(view?.width ?? img.clientWidth);
- const h = Math.round(view?.height ?? img.clientHeight);
- const ctx = w > 0 && h > 0 ? document.createElement('canvas').getContext('2d') : null;
- if (!ctx) return undefined;
- ctx.canvas.width = w;
- ctx.canvas.height = h;
- ctx.drawImage(img, 0 - (view?.x ?? 0), 0 - (view?.y ?? 0), img.clientWidth, img.clientHeight);
- const { data } = ctx.getImageData(0, 0, w, h);
- const outer = textOnRight ? 0 : w;
- const edge: string[] = [];
- for (let y = 0; y <= h; y += ROW) {
- let x = outer;
- // A band's edge is the extreme solid pixel over its rows, so no row pokes out of the polygon.
- for (let r = Math.max(0, y - ROW); r < Math.min(h, y + 1); r += 1) {
- for (let i = 0; i < w; i += 1) {
- const px = textOnRight ? w - 1 - i : i;
- if (data[(r * w + px) * 4 + 3] > SOLID) {
- x = textOnRight ? Math.max(x, px + 1) : Math.min(x, px);
- break;
- }
- }
- }
- edge.push(`${x}px ${y}px`);
- }
- return `polygon(${outer}px 0, ${edge.join(', ')}, ${outer}px ${h}px) border-box`;
-};
diff --git a/src/app/components/nav/NavGutter.tsx b/src/app/components/nav/NavGutter.tsx
deleted file mode 100644
index c0a6e50e..00000000
--- a/src/app/components/nav/NavGutter.tsx
+++ /dev/null
@@ -1,12 +0,0 @@
-import React, { ReactNode } from 'react';
-import * as css from './styles.css';
-
-/** The fixed-width first column of a navigator row or section header; its content is centred in it. */
-export function NavGutter({ children }: { children: ReactNode }) {
- return {children} ;
-}
-
-/** One nesting step: everything inside is indented by the same constant. */
-export function NavLevel({ children }: { children: ReactNode }) {
- return {children}
;
-}
diff --git a/src/app/components/nav/index.ts b/src/app/components/nav/index.ts
index 2ed29601..12267446 100644
--- a/src/app/components/nav/index.ts
+++ b/src/app/components/nav/index.ts
@@ -4,4 +4,3 @@ export * from './NavEmptyLayout';
export * from './NavItem';
export * from './NavItemContent';
export * from './NavItemOptions';
-export * from './NavGutter';
diff --git a/src/app/components/nav/styles.css.ts b/src/app/components/nav/styles.css.ts
index a3845e90..48b2a4d3 100644
--- a/src/app/components/nav/styles.css.ts
+++ b/src/app/components/nav/styles.css.ts
@@ -1,42 +1,6 @@
-import { ComplexStyleRule, StyleRule, createVar, globalStyle, style } from '@vanilla-extract/css';
+import { ComplexStyleRule, createVar, style } from '@vanilla-extract/css';
import { RecipeVariants, recipe } from '@vanilla-extract/recipes';
import { ContainerColor, DefaultReset, Disabled, RadiiVariant, color, config, toRem } from 'folds';
-import { surfaceInk } from '../../features/scene/sceneShell.css';
-import { skyLabelInk } from '../../features/scene/skyLabelInk';
-
-// Wash strengths over the scene: rows and labels are faint, and hover, selected and pressed rows
-// are three distinct steps above them.
-// Meta, 2026-11-09: "this UI needs no chrome". Rows and labels are bare ink on the scene; hover and selection keep a faint wash.
-const SCRIM_LABEL = '0%';
-const SCRIM_ROW = '0%';
-const SCRIM_HOVER = '14%';
-const SCRIM_SELECTED = '22%';
-const SCRIM_PRESSED = '48%';
-
-// The navigator's one column grid. Every row, section header and join row begins with a gutter of
-// the same width, with its chevron, room icon or avatar centred in it, so every label starts at
-// the same x for its depth; each nesting level (NavLevel) indents by one constant step.
-const GUTTER = toRem(32);
-const LEVEL_STEP = toRem(16);
-
-export const NavGutter = style({
- width: GUTTER,
- minWidth: GUTTER,
- flexShrink: 0,
- display: 'flex',
- alignItems: 'center',
- justifyContent: 'center',
-});
-
-export const NavLevel = style({
- paddingLeft: LEVEL_STEP,
-});
-
-// Chevrons and room icons are matched in measured ink (a room glyph is about 1.7x a chevron's; unread rooms stay far above), so a foldout is not outweighed by its rooms.
-export const NAV_ICON_REST_OPACITY = 0.9;
-// A room's glyph is bigger and denser than the chevron, so it rests lighter to read as the same weight.
-export const NAV_ROOM_ICON_REST_OPACITY = 0.26;
-export const NAV_ICON_UNREAD_OPACITY = 0.6;
export const NavCategory = style([
DefaultReset,
@@ -47,27 +11,6 @@ export const NavCategory = style([
export const NavCategoryHeader = style({
gap: config.space.S100,
- selectors: {
- // The header's own side padding would shift its gutter off the rows': the section button
- // carries the same left inset as NavItemContent instead.
- '&&': { paddingLeft: 0 },
- },
- '@media': {
- // A phone's section header is as tall as its 44 px button, so it does not overlap the next row.
- 'screen and (max-width: 750px)': {
- selectors: { '&&': { minHeight: toRem(44), height: toRem(44) } },
- },
- // Category labels sit on the scene like the rows do, and need a wash to be read (wide screens;
- // a phone's list is plain text).
- 'screen and (min-width: 751px)': {
- selectors: {
- ':root[data-scene] &': {
- backgroundColor: `color-mix(in srgb, ${surfaceInk} ${SCRIM_LABEL}, transparent)`,
- borderRadius: config.radii.R400,
- },
- },
- },
- },
});
export const NavLink = style({
@@ -101,12 +44,6 @@ const getVariant = (variant: ContainerColor): ComplexStyleRule => ({
},
});
-// The room list is plain text on a phone: no pill, slab or border behind any row, and hover,
-// selected and pressed show in the label (NavLabel), never in a box. Wider screens keep the rows
-// and the wash.
-const WIDE = 'screen and (min-width: 751px)';
-const PHONE = 'screen and (max-width: 750px)';
-
const NavItemBase = style({
width: '100%',
display: 'flex',
@@ -117,47 +54,19 @@ const NavItemBase = style({
outline: 'none',
minHeight: toRem(36),
- '@media': {
- [PHONE]: {
- backgroundColor: 'transparent',
- borderRadius: 0,
- // The row is as tall as the 44 px tap target inside it (EstateNavigator.css.ts), so neighbours do not overlap.
- minHeight: toRem(44),
- },
- [WIDE]: {
- selectors: {
- '&:hover, &:focus-visible': {
- backgroundColor: ContainerHover,
- },
- '&[data-hover=true]': {
- backgroundColor: ContainerHover,
- },
- // While the background scene runs the shell is clear (sceneShell.css.ts); a row is a faint
- // wash of the theme's own surface: the scene stays visible, the text stays readable.
- // Hover, the selected row and a press each strengthen it a step.
- ':root[data-scene] &': {
- backgroundColor: `color-mix(in srgb, ${surfaceInk} ${SCRIM_ROW}, transparent)`,
- },
- ':root[data-scene] &:hover, :root[data-scene] &:focus-visible, :root[data-scene] &[data-hover=true]':
- {
- backgroundColor: `color-mix(in srgb, ${surfaceInk} ${SCRIM_HOVER}, transparent)`,
- },
- ':root[data-scene] &[aria-selected=true]': {
- backgroundColor: `color-mix(in srgb, ${surfaceInk} ${SCRIM_SELECTED}, transparent)`,
- },
- [`:root[data-scene] &:has(.${NavLink}:active)`]: {
- backgroundColor: `color-mix(in srgb, ${surfaceInk} ${SCRIM_PRESSED}, transparent)`,
- },
- [`&:has(.${NavLink}:active)`]: {
- backgroundColor: ContainerActive,
- },
- '&[aria-selected=true]': {
- backgroundColor: ContainerActive,
- },
- },
- },
- },
selectors: {
+ '&:hover, &:focus-visible': {
+ backgroundColor: ContainerHover,
+ },
+ '&[data-hover=true]': {
+ backgroundColor: ContainerHover,
+ },
+ [`&:has(.${NavLink}:active)`]: {
+ backgroundColor: ContainerActive,
+ },
+ '&[aria-selected=true]': {
+ backgroundColor: ContainerActive,
+ },
[`&:has(.${NavLink}:focus-visible)`]: {
outline: `${config.borderWidth.B600} solid ${ContainerLine}`,
outlineOffset: `calc(-1 * ${config.borderWidth.B600})`,
@@ -217,73 +126,3 @@ export const NavItemContent = style({
export const NavItemOptions = style({
paddingRight: config.space.S200,
});
-
-// A room's name on a phone wears the section headings' type (small caps-height, uppercase, 600,
-// at heading strength) and states itself in the text: hover and focus underline it, the selected
-// row is bolder and underlined, a press dims it, an unread room is at full strength. Over the scene
-// a halo of the theme's own surface keeps it readable without a box.
-export const NavLabel = style({});
-const label = `.${NavLabel}.${NavLabel}`;
-const phoneLabel = (selector: string, rule: StyleRule) =>
- globalStyle(selector, { '@media': { [PHONE]: rule } });
-
-phoneLabel(label, {
- fontSize: toRem(12),
- lineHeight: toRem(16),
- fontWeight: config.fontWeight.W600,
- textTransform: 'uppercase',
- opacity: 0.75,
- textDecorationThickness: '1px',
- textUnderlineOffset: toRem(4),
-});
-phoneLabel(
- [
- `.${NavItemBase}:hover ${label}`,
- `.${NavItemBase}:focus-visible ${label}`,
- `.${NavItemBase}[data-hover=true] ${label}`,
- `.${NavItemBase}[data-highlight=true] ${label}`,
- ].join(', '),
- { opacity: 1 }
-);
-phoneLabel(`.${NavItemBase}:hover ${label}, .${NavItemBase}:focus-visible ${label}`, {
- textDecorationLine: 'underline',
-});
-phoneLabel(`.${NavItemBase}[aria-selected=true] ${label}`, {
- opacity: 1,
- fontWeight: config.fontWeight.W700,
- textDecorationLine: 'underline',
- textDecorationThickness: '2px',
-});
-phoneLabel(`.${NavItemBase}:has(.${NavLink}:active) ${label}`, {
- opacity: 0.6,
- textDecorationLine: 'underline',
-});
-phoneLabel(`:root[data-scene] ${label}`, {
- color: skyLabelInk('inherit'),
- textShadow: `0 0 3px ${surfaceInk}, 0 0 8px ${surfaceInk}`,
-});
-
-// Icons, dots and the Join action share the label's halo over the scene.
-globalStyle(`:root[data-scene] ${NavItemBase} svg, :root[data-scene] ${NavItemBase} button`, {
- '@media': {
- [PHONE]: {
- filter: `drop-shadow(0 0 3px ${surfaceInk})`,
- },
- },
-});
-
-// The Join action is a plain underlined word on every screen, not a pill.
-export const NavAction = style({
- selectors: {
- '&&': {
- backgroundColor: 'transparent',
- boxShadow: 'none',
- border: 'none',
- borderRadius: 0,
- minWidth: 0,
- textDecoration: 'underline',
- textUnderlineOffset: toRem(4),
- flexShrink: 0,
- },
- },
-});
diff --git a/src/app/components/password-input/PasswordInput.tsx b/src/app/components/password-input/PasswordInput.tsx
index 6aa0d4f3..4ffe0d83 100644
--- a/src/app/components/password-input/PasswordInput.tsx
+++ b/src/app/components/password-input/PasswordInput.tsx
@@ -1,7 +1,6 @@
import React, { ComponentProps, forwardRef } from 'react';
import { Icon, IconButton, Input, config, Icons } from 'folds';
import { UseStateProvider } from '../UseStateProvider';
-import { PhoneHit } from '../../styles/PhoneHit.css';
type PasswordInputProps = Omit, 'type' | 'size'> & {
size: '400' | '500';
@@ -24,7 +23,6 @@ export const PasswordInput = forwardRef(
<>
{after}
setVisible(!visible)}
type="button"
variant={visible ? 'Warning' : variant}
diff --git a/src/app/components/room-avatar/RoomAvatar.tsx b/src/app/components/room-avatar/RoomAvatar.tsx
index 9015796e..cbcd626a 100644
--- a/src/app/components/room-avatar/RoomAvatar.tsx
+++ b/src/app/components/room-avatar/RoomAvatar.tsx
@@ -1,10 +1,9 @@
import { JoinRule } from 'matrix-js-sdk';
-import { AvatarFallback, AvatarImage, Icon, Icons } from 'folds';
+import { AvatarFallback, AvatarImage, Icon, Icons, color } from 'folds';
import React, { ComponentProps, ReactEventHandler, ReactNode, forwardRef, useState } from 'react';
import * as css from './RoomAvatar.css';
import { getRoomIconSrc } from '../../utils/room';
import colorMXID from '../../../util/colorMXID';
-import { surfaceInk } from '../../features/scene/sceneShell.css';
type RoomAvatarProps = {
roomId: string;
@@ -22,7 +21,7 @@ export function RoomAvatar({ roomId, src, alt, renderFallback }: RoomAvatarProps
if (!src || error) {
return (
{renderFallback()}
diff --git a/src/app/components/room-intro/RoomIntro.tsx b/src/app/components/room-intro/RoomIntro.tsx
index 0c6b10df..2e4e3ebc 100644
--- a/src/app/components/room-intro/RoomIntro.tsx
+++ b/src/app/components/room-intro/RoomIntro.tsx
@@ -1,9 +1,7 @@
-import classNames from 'classnames';
import React, { useCallback, useState } from 'react';
import { Avatar, Box, Button, Spinner, Text, as } from 'folds';
import { Room } from 'matrix-js-sdk';
import { useAtomValue } from 'jotai';
-import { SkyPlate } from '../../features/scene/skyPlate.css';
import { IRoomCreateContent, Membership, StateEvent } from '../../../types/matrix/room';
import { getMemberDisplayName, getStateEvent } from '../../utils/room';
import { useMatrixClient } from '../../hooks/useMatrixClient';
@@ -25,7 +23,7 @@ export type RoomIntroProps = {
room: Room;
};
-export const RoomIntro = as<'div', RoomIntroProps>(({ room, className, ...props }, ref) => {
+export const RoomIntro = as<'div', RoomIntroProps>(({ room, ...props }, ref) => {
const mx = useMatrixClient();
const useAuthentication = useMediaAuthentication();
const { navigateRoom } = useRoomNavigate();
@@ -52,7 +50,7 @@ export const RoomIntro = as<'div', RoomIntroProps>(({ room, className, ...props
const [hour24Clock] = useSetting(settingsAtom, 'hour24Clock');
return (
-
+
-
+
diff --git a/src/app/components/text-viewer/TextViewer.tsx b/src/app/components/text-viewer/TextViewer.tsx
index e9e150b5..ec4ed0a5 100644
--- a/src/app/components/text-viewer/TextViewer.tsx
+++ b/src/app/components/text-viewer/TextViewer.tsx
@@ -5,7 +5,6 @@ import { Box, Chip, Header, Icon, IconButton, Icons, Scroll, Text, as } from 'fo
import { ErrorBoundary } from 'react-error-boundary';
import * as css from './TextViewer.css';
import { copyToClipboard } from '../../utils/dom';
-import { PhoneHit } from '../../styles/PhoneHit.css';
const ReactPrism = lazy(() => import('../../plugins/react-prism/ReactPrism'));
@@ -54,7 +53,7 @@ export const TextViewer = as<'div', TextViewerProps>(
>
-
+
diff --git a/src/app/components/uia-stages/PasswordStage.tsx b/src/app/components/uia-stages/PasswordStage.tsx
index a7ca2d06..0164cae6 100644
--- a/src/app/components/uia-stages/PasswordStage.tsx
+++ b/src/app/components/uia-stages/PasswordStage.tsx
@@ -4,7 +4,6 @@ import { AuthType } from 'matrix-js-sdk';
import { StageComponentProps } from './types';
import { ErrorCode } from '../../cs-errorcode';
import { PasswordInput } from '../password-input';
-import { PhoneHit } from '../../styles/PhoneHit.css';
export function PasswordStage({
stageData,
@@ -46,7 +45,7 @@ export function PasswordStage({
Account Password
-
+
diff --git a/src/app/components/uia-stages/SSOStage.tsx b/src/app/components/uia-stages/SSOStage.tsx
index 20decb6c..e3d6126a 100644
--- a/src/app/components/uia-stages/SSOStage.tsx
+++ b/src/app/components/uia-stages/SSOStage.tsx
@@ -1,7 +1,6 @@
import { Box, Button, color, config, Dialog, Header, Icon, IconButton, Icons, Text } from 'folds';
import React, { useCallback, useEffect, useState } from 'react';
import { StageComponentProps } from './types';
-import { PhoneHit } from '../../styles/PhoneHit.css';
export function SSOStage({
ssoRedirectURL,
@@ -57,7 +56,7 @@ export function SSOStage({
SSO Login
-
+
diff --git a/src/app/components/unread-badge/UnreadBadge.tsx b/src/app/components/unread-badge/UnreadBadge.tsx
index 00c7fa2f..f8bfefa3 100644
--- a/src/app/components/unread-badge/UnreadBadge.tsx
+++ b/src/app/components/unread-badge/UnreadBadge.tsx
@@ -22,9 +22,7 @@ export function UnreadBadge({ highlight, count }: UnreadBadgeProps) {
0 ? '400' : '200'}
- // A mention and the bare unread dot are solid (a soft dot measured 1.6:1 against the ground); a plain unread
- // count is a soft tint, so a row's count is never its loudest part.
- fill={highlight || count === 0 ? 'Solid' : 'Soft'}
+ fill="Solid"
radii="Pill"
outlined={false}
>
diff --git a/src/app/components/upload-card/CompactUploadCardRenderer.tsx b/src/app/components/upload-card/CompactUploadCardRenderer.tsx
index 5fe73a10..b9bada71 100644
--- a/src/app/components/upload-card/CompactUploadCardRenderer.tsx
+++ b/src/app/components/upload-card/CompactUploadCardRenderer.tsx
@@ -6,8 +6,6 @@ import { useMatrixClient } from '../../hooks/useMatrixClient';
import { TUploadContent } from '../../utils/matrix';
import { bytesToSize, getFileTypeIcon } from '../../utils/common';
import { useMediaConfig } from '../../hooks/useMediaConfig';
-import { UploadFailureNote } from './UploadFailureNote';
-import { PhoneHitSpread28 } from '../../styles/PhoneHit.css';
type CompactUploadCardRendererProps = {
isEncrypted?: boolean;
@@ -65,7 +63,6 @@ export function CompactUploadCardRenderer({
)}
-
+ {upload.error.message}
)}
{upload.status === UploadStatus.Idle && fileSizeExceeded && (
diff --git a/src/app/components/upload-card/UploadCardRenderer.tsx b/src/app/components/upload-card/UploadCardRenderer.tsx
index e1d12843..f5bc68e0 100644
--- a/src/app/components/upload-card/UploadCardRenderer.tsx
+++ b/src/app/components/upload-card/UploadCardRenderer.tsx
@@ -12,8 +12,6 @@ import {
} from '../../state/room/roomInputDrafts';
import { useObjectURL } from '../../hooks/useObjectURL';
import { useMediaConfig } from '../../hooks/useMediaConfig';
-import { UploadFailureNote } from './UploadFailureNote';
-import { PhoneHitSpread28 } from '../../styles/PhoneHit.css';
type PreviewImageProps = {
fileItem: TUploadItem;
@@ -162,7 +160,6 @@ export function UploadCardRenderer({
)}
-
+ {upload.error.message}
)}
{upload.status === UploadStatus.Idle && fileSizeExceeded && (
diff --git a/src/app/components/upload-card/UploadFailureNote.test.tsx b/src/app/components/upload-card/UploadFailureNote.test.tsx
deleted file mode 100644
index c2f917ec..00000000
--- a/src/app/components/upload-card/UploadFailureNote.test.tsx
+++ /dev/null
@@ -1,33 +0,0 @@
-import React from 'react';
-import { renderToStaticMarkup } from 'react-dom/server';
-import { describe, expect, it } from 'vitest';
-import { uploadFailure } from '../../utils/matrix';
-import { UploadFailureNote } from './UploadFailureNote';
-
-const text = (html: string) =>
- html
- .replace(/<[^>]*>/g, ' ')
- .replace(/\s+/g, ' ')
- .trim();
-
-describe('the failed upload card', () => {
- it('leads with the reason and the next step, and keeps the diagnostics behind Details', async () => {
- const error = await uploadFailure(new DOMException('', 'AbortError'), new Blob(['abcd']), {
- startedAt: Date.now(),
- });
- const html = renderToStaticMarkup( );
- const before = html.slice(0, html.indexOf(']*>.*Details.*<\/details>/s);
- expect(text(html.slice(html.indexOf(' {
- const html = renderToStaticMarkup( );
- expect(text(html)).toContain('Upload failed. Send again');
- expect(text(html)).toContain('boom');
- });
-});
diff --git a/src/app/components/upload-card/UploadFailureNote.tsx b/src/app/components/upload-card/UploadFailureNote.tsx
deleted file mode 100644
index df4498ba..00000000
--- a/src/app/components/upload-card/UploadFailureNote.tsx
+++ /dev/null
@@ -1,22 +0,0 @@
-import React from 'react';
-import { Text } from 'folds';
-import { uploadFailureText } from '../../utils/uploadReason';
-
-/** A failed upload as the card shows it: the reason and what to do, the diagnostic text one tap away. */
-export function UploadFailureNote({ error }: { error: Error }) {
- return (
- <>
- {uploadFailureText(error)}
-
-
-
- Details
-
-
-
- {error.message}
-
-
- >
- );
-}
diff --git a/src/app/components/url-preview/UrlPreviewCard.tsx b/src/app/components/url-preview/UrlPreviewCard.tsx
index 5d40e10c..ee8967af 100644
--- a/src/app/components/url-preview/UrlPreviewCard.tsx
+++ b/src/app/components/url-preview/UrlPreviewCard.tsx
@@ -1,4 +1,3 @@
-import classNames from 'classnames';
import React, { useCallback, useEffect, useRef, useState } from 'react';
import { IPreviewUrlResponse } from 'matrix-js-sdk';
import { Box, Icon, IconButton, Icons, Scroll, Spinner, Text, as, color, config } from 'folds';
@@ -11,7 +10,6 @@ import {
useIntersectionObserver,
} from '../../hooks/useIntersectionObserver';
import * as css from './UrlPreviewCard.css';
-import { PhoneHitInPlace } from '../../styles/PhoneHit.css';
import { tryDecodeURIComponent } from '../../utils/dom';
import { mxcUrlToHttp } from '../../utils/matrix';
import { useMediaAuthentication } from '../../hooks/useMediaAuthentication';
@@ -183,10 +181,7 @@ export const UrlPreviewHolder = as<'div'>(({ children, ...props }, ref) => {
<>
(({ children, ...props }, ref) => {
<>
{renderFallback()}
diff --git a/src/app/components/user-profile/PowerChip.tsx b/src/app/components/user-profile/PowerChip.tsx
index d3e9cf28..a6758300 100644
--- a/src/app/components/user-profile/PowerChip.tsx
+++ b/src/app/components/user-profile/PowerChip.tsx
@@ -43,7 +43,6 @@ import { getPowerTagIconSrc, useGetMemberPowerTag } from '../../hooks/useMemberP
import { useRoomCreators } from '../../hooks/useRoomCreators';
import { useRoomPermissions } from '../../hooks/useRoomPermissions';
import { useMemberPowerCompare } from '../../hooks/useMemberPowerCompare';
-import { PhoneHit } from '../../styles/PhoneHit.css';
type SelfDemoteAlertProps = {
power: number;
@@ -71,7 +70,7 @@ function SelfDemoteAlert({ power, onCancel, onChange }: SelfDemoteAlertProps) {
Self Demotion
-
+
@@ -121,7 +120,7 @@ function SharedPowerAlert({ power, onCancel, onChange }: SharedPowerAlertProps)
Shared Power
-
+
diff --git a/src/app/features/add-existing/AddExisting.tsx b/src/app/features/add-existing/AddExisting.tsx
index a57a6b10..d100096b 100644
--- a/src/app/features/add-existing/AddExisting.tsx
+++ b/src/app/features/add-existing/AddExisting.tsx
@@ -54,7 +54,6 @@ import { StateEvent } from '../../../types/matrix/room';
import { getViaServers } from '../../plugins/via-servers';
import { rateLimitedActions } from '../../utils/matrix';
import { useAlive } from '../../hooks/useAlive';
-import { PhoneHit } from '../../styles/PhoneHit.css';
const SEARCH_OPTS: UseAsyncSearchOptions = {
limit: 500,
@@ -202,7 +201,7 @@ export function AddExistingModal({ parentId, space, requestClose }: AddExistingM
Add Existing
-
+
diff --git a/src/app/features/albums/AlbumView.css.ts b/src/app/features/albums/AlbumView.css.ts
deleted file mode 100644
index d60dba43..00000000
--- a/src/app/features/albums/AlbumView.css.ts
+++ /dev/null
@@ -1,71 +0,0 @@
-import { style } from '@vanilla-extract/css';
-import { color, config, toRem } from 'folds';
-import { MOBILE_BREAKPOINT } from '../../hooks/useScreenSize';
-
-const WIDE = `screen and (min-width: ${MOBILE_BREAKPOINT + 1}px)`;
-
-/** One column, bare ink on the scene. */
-export const Column = style({
- maxWidth: toRem(720),
- width: '100%',
- margin: '0 auto',
- padding: config.space.S400,
- display: 'flex',
- flexDirection: 'column',
- gap: config.space.S200,
-});
-
-/** A tappable text row: no border, no fill, at least 44 px tall. */
-export const Row = style({
- all: 'unset',
- boxSizing: 'border-box',
- cursor: 'pointer',
- minHeight: 44,
- display: 'flex',
- flexDirection: 'column',
- justifyContent: 'center',
- gap: toRem(2),
- color: color.Background.OnContainer,
- ':focus-visible': { textDecoration: 'underline' },
-});
-
-export const Back = style([Row, { minHeight: 44 }]);
-
-export const Files = style({
- display: 'flex',
- flexDirection: 'column',
- gap: config.space.S400,
-});
-
-/** Images may tile into a grid on wide screens only. */
-export const FilesWide = style({
- '@media': {
- [WIDE]: {
- display: 'grid',
- gridTemplateColumns: 'repeat(auto-fill, minmax(220px, 1fr))',
- alignItems: 'start',
- },
- },
-});
-
-export const Dim = style({ opacity: config.opacity.P300 });
-
-/** The share panel: idle it is one row; the title, names and Send mount only once files are picked. */
-export const SharePanel = style({
- display: 'flex',
- flexDirection: 'column',
- gap: config.space.S200,
-});
-
-export const ShareTitle = style({
- all: 'unset',
- boxSizing: 'border-box',
- minHeight: 44,
- width: '100%',
- borderBottom: `1px solid ${color.Background.ContainerLine}`,
- color: color.Background.OnContainer,
- ':focus-visible': { borderBottomColor: color.Background.OnContainer },
-});
-
-/** Picked names and send notes wrap, even a long unbroken name. */
-export const ShareNames = style({ overflowWrap: 'anywhere' });
diff --git a/src/app/features/albums/AlbumView.tsx b/src/app/features/albums/AlbumView.tsx
deleted file mode 100644
index f1a7f01a..00000000
--- a/src/app/features/albums/AlbumView.tsx
+++ /dev/null
@@ -1,267 +0,0 @@
-import React, { useEffect, useMemo, useState } from 'react';
-import { Box, Scroll, Text } from 'folds';
-import { Room, RoomEvent } from 'matrix-js-sdk';
-import { MediaControl } from '../../components/media';
-import { AudioContent } from '../../components/message';
-import { RenderMessageContent } from '../../components/RenderMessageContent';
-import { IAudioContent } from '../../../types/matrix/common';
-import { LINKIFY_OPTS, getReactCustomHtmlParser } from '../../plugins/react-custom-html-parser';
-import { useMatrixClient } from '../../hooks/useMatrixClient';
-import { useMediaAuthentication } from '../../hooks/useMediaAuthentication';
-import { useSetting } from '../../state/hooks/settings';
-import { settingsAtom } from '../../state/settings';
-import { markAsRead } from '../../utils/notifications';
-import { getBlobSafeMimeType } from '../../utils/mimeTypes';
-import { timeDayMonYear } from '../../utils/time';
-import { getMemberDisplayName } from '../../utils/room';
-import {
- Album,
- AlbumFile,
- TimelineEvent,
- lastEvent,
- looseFiles,
- looseNoteFor,
-} from './buildAlbums';
-import { folderOf, listFolder, pathLabel } from './albumFolders';
-import { FileReadBy } from './FileReadBy';
-import { ShareSet, useShareEnabled } from './ShareSet';
-import { useAlbums } from './useAlbums';
-import * as css from './AlbumView.css';
-
-/**
- * Audio goes straight to AudioContent, skipping the chat Attachment frame and file-type badge: the
- * title above it is the only label and the transport controls sit on the scene. Anything that is
- * not playable audio falls through to the stock renderer (a file download).
- */
-const playableAudio = (content: Record) => {
- const c = content as IAudioContent;
- const url = c.file?.url ?? c.url;
- const mimeType = getBlobSafeMimeType(c.info?.mimetype ?? '');
- if (!c.info || typeof url !== 'string' || !mimeType.startsWith('audio')) return undefined;
- return { info: c.info, url, mimeType, encInfo: c.file };
-};
-
-type FileRowProps = { room: Room; file: AlbumFile; author: string };
-function FileRow({ room, file, author }: FileRowProps) {
- const mx = useMatrixClient();
- const useAuthentication = useMediaAuthentication();
- const [mediaAutoLoad] = useSetting(settingsAtom, 'mediaAutoLoad');
- const htmlReactParserOptions = useMemo(
- () =>
- getReactCustomHtmlParser(mx, room.roomId, { linkifyOpts: LINKIFY_OPTS, useAuthentication }),
- [mx, room.roomId, useAuthentication]
- );
- const audio = file.kind === 'audio' ? playableAudio(file.content) : undefined;
- return (
-
-
- {file.name}
-
-
- {audio ? (
- } />
- ) : (
- () => file.content as T}
- mediaAutoLoad={mediaAutoLoad}
- htmlReactParserOptions={htmlReactParserOptions}
- linkifyOpts={LINKIFY_OPTS}
- />
- )}
-
- );
-}
-
-/** A file, and under it a row that unfolds the versions it supersedes. */
-function VersionedFileRow({ room, file, author }: FileRowProps) {
- const [shown, setShown] = useState(false);
- const n = file.earlier.length;
- return (
- <>
-
- {n > 0 && (
- setShown(!shown)}>
-
- {`${shown ? '▾' : '▸'} ${n} earlier ${n === 1 ? 'version' : 'versions'}`}
-
-
- )}
- {shown &&
- file.earlier.map((e) => )}
- >
- );
-}
-
-const countLabel = (n: number) => `${n} ${n === 1 ? 'file' : 'files'}`;
-
-/** The zone never mounts RoomTimeline, so it sends the read receipt the timeline would. */
-function useMarkZoneRead(room: Room) {
- const mx = useMatrixClient();
- const [hideActivity] = useSetting(settingsAtom, 'hideActivity');
- useEffect(() => {
- const mark = () => {
- markAsRead(mx, room.roomId, hideActivity).catch(() => undefined);
- };
- mark();
- room.on(RoomEvent.Timeline, mark);
- return () => {
- room.off(RoomEvent.Timeline, mark);
- };
- }, [mx, room, hideActivity]);
-}
-
-/** The file events in the room's live timeline that no album thread holds, kept current as it syncs. */
-function useLooseFiles(room: Room): AlbumFile[] {
- const [, bump] = useState(0);
- useEffect(() => {
- const on = () => bump((n) => n + 1);
- room.on(RoomEvent.Timeline, on);
- room.on(RoomEvent.Redaction, on);
- return () => {
- room.off(RoomEvent.Timeline, on);
- room.off(RoomEvent.Redaction, on);
- };
- }, [room]);
- const events: TimelineEvent[] = room
- .getLiveTimeline()
- .getEvents()
- .map((e) => ({
- event_id: e.getId(),
- type: e.getType(),
- sender: e.getSender(),
- origin_server_ts: e.getTs(),
- content: e.getContent(),
- unsigned: e.getUnsigned() as Record,
- threadRoot: e.threadRootId,
- }));
- return looseFiles(events);
-}
-
-type AlbumViewProps = { room: Room; onTimeline: () => void };
-export function AlbumView({ room, onTimeline }: AlbumViewProps) {
- useMarkZoneRead(room);
- const { loading, error, albums, truncated } = useAlbums(room);
- const [dateFormat] = useSetting(settingsAtom, 'dateFormatString');
- const [openId, setOpenId] = useState();
- const [path, setPath] = useState([]);
- const open: Album | undefined = albums.find((a) => a.id === openId);
- const authorOf = (a: Album) => getMemberDisplayName(room, a.author) ?? a.author;
- const encrypted = room.hasEncryptionStateEvent();
- const canShare = useShareEnabled(room);
- const loose = useLooseFiles(room);
- const looseNote = looseNoteFor(loose, {
- open: !!open,
- encrypted,
- loading,
- error: !!error,
- });
-
- let body: React.ReactNode;
- if (loading) body = Loading albums… ;
- else if (error) body = Could not load albums: {error.message} ;
- else if (open) {
- const images = open.files.length > 0 && open.files.every((f) => f.kind === 'image');
- body = (
- <>
- {
- setPath(folderOf(open));
- setOpenId(undefined);
- }}
- >
- {`‹ ${
- folderOf(open).length ? pathLabel(folderOf(open)) : 'Albums'
- }`}
-
- {open.title}
-
- {authorOf(open)} · {countLabel(open.count)} · {timeDayMonYear(open.ts, dateFormat)}
-
- {open.count === 0 && This album has no files. }
- {canShare && (
-
- )}
-
- {open.files.map((f) => (
-
- ))}
-
- >
- );
- } else if (encrypted)
- body = This zone is encrypted, so its albums cannot be listed here. ;
- else if (albums.length === 0 && path.length === 0) body = No albums yet. ;
- else {
- const here = listFolder(albums, path);
- body = (
- <>
- {path.length > 0 && (
- setPath(path.slice(0, -1))}>
- {`‹ ${
- path.length > 1 ? pathLabel(path.slice(0, -1)) : 'Albums'
- }`}
-
- )}
- {path.length > 0 && {pathLabel(path)} }
- {here.folders.map((f) => (
- setPath(f.path)}
- >
- {`${f.name} /`}
-
- {f.albums} {f.albums === 1 ? 'album' : 'albums'} · {timeDayMonYear(f.ts, dateFormat)}
-
-
- ))}
- {here.albums.map(({ album: a, leaf }) => (
- setOpenId(a.id)}>
- {leaf}
-
- {authorOf(a)} · {countLabel(a.count)} · {timeDayMonYear(a.ts, dateFormat)}
-
-
- ))}
- {here.folders.length === 0 && here.albums.length === 0 && Nothing here. }
- {truncated && (
-
- The list is cut short: some albums or files are not loaded.
-
- )}
- >
- );
- }
-
- return (
-
-
- {body}
- {looseNote && (
-
- {looseNote}
-
- )}
- {/* Stays mounted while an album is open, so a running send keeps its progress. */}
- {canShare && (
-
-
-
- )}
-
- Timeline ›
-
-
-
- );
-}
diff --git a/src/app/features/albums/FileReadBy.tsx b/src/app/features/albums/FileReadBy.tsx
deleted file mode 100644
index 28f9205c..00000000
--- a/src/app/features/albums/FileReadBy.tsx
+++ /dev/null
@@ -1,32 +0,0 @@
-import React from 'react';
-import { MatrixEvent, Room } from 'matrix-js-sdk';
-import { Text } from 'folds';
-import { getMemberDisplayName } from '../../utils/room';
-import { FileReader, readLine } from './fileReceipt';
-import { useFileReaders } from './useFileReaders';
-import * as css from './AlbumView.css';
-
-type FileReadByProps = {
- room: Room;
- fileId: string;
- content: Record;
- /** Receipts already read elsewhere (an album's thread replies): merged with the timeline's, a Mind once. */
- also?: FileReader[];
-};
-/** "fetched for " under a file: the Minds whose verified receipts are in the room's timeline. Nothing when none. */
-export function FileReadBy({ room, fileId, content, also = [] }: FileReadByProps) {
- const seen = useFileReaders(room, fileId, content);
- const readers = [...new Map([...also, ...seen].map((r) => [r.sender, r])).values()].sort(
- (a, b) => a.ts - b.ts
- );
- if (readers.length === 0) return null;
- return (
-
- {readLine(readers, (id) => getMemberDisplayName(room, id) ?? id)}
-
- );
-}
-
-/** A timeline message that is a file: audio, image, video or file. */
-export const isFileMessage = (mEvent: MatrixEvent): boolean =>
- ['m.audio', 'm.image', 'm.video', 'm.file'].includes(mEvent.getContent().msgtype);
diff --git a/src/app/features/albums/ShareSet.folder.test.tsx b/src/app/features/albums/ShareSet.folder.test.tsx
deleted file mode 100644
index abb8f2bb..00000000
--- a/src/app/features/albums/ShareSet.folder.test.tsx
+++ /dev/null
@@ -1,140 +0,0 @@
-import React from 'react';
-import { renderToStaticMarkup } from 'react-dom/server';
-import { beforeEach, describe, expect, it, vi } from 'vitest';
-import { QueryClient, QueryClientProvider } from '@tanstack/react-query';
-import { MatrixClientProvider } from '../../hooks/useMatrixClient';
-import { MediaConfig, MediaConfigProvider } from '../../hooks/useMediaConfig';
-
-// ShareSet hands its folder to the title the send lands under. The controller is held still and its
-// `run` captured, and sendShareSet records the title it was given, so the path from the `folder`
-// prop to the album root's title is read without a homeserver or a DOM.
-const captured = vi.hoisted(() => ({
- run: undefined as undefined | ((files: unknown[], title: string, onFile: () => void) => unknown),
- maxBytes: undefined as undefined | (() => number | undefined),
- titles: [] as string[],
-}));
-
-vi.mock('./shareController', () => ({
- createShareController: (deps: {
- run: NonNullable;
- maxBytes: NonNullable;
- }) => {
- captured.run = deps.run;
- captured.maxBytes = deps.maxBytes;
- return {
- subscribe: () => () => undefined,
- getState: () => ({ files: [], title: '', phase: { kind: 'idle' }, epoch: 0 }),
- pick: () => undefined,
- setTitle: () => undefined,
- send: () => undefined,
- cancel: () => undefined,
- };
- },
-}));
-vi.mock('./shareSet', async (importOriginal) => ({
- ...(await importOriginal()),
- sendShareSet: async (_port: unknown, into: string | { albumId: string; lastId: string }) => {
- captured.titles.push(typeof into === 'string' ? into : `into:${into.albumId}@${into.lastId}`);
- return { albumId: '$a', sent: 0, failed: [], failedAt: [] };
- },
-}));
-vi.mock('react', async (importOriginal) => {
- const actual = await importOriginal();
- // The server renderer has no snapshot for an external store; read the client one.
- const useSyncExternalStore = (_sub: unknown, get: () => unknown) => get();
- return { ...actual, default: { ...actual, useSyncExternalStore }, useSyncExternalStore };
-});
-
-// eslint-disable-next-line import/first
-import { ShareSet } from './ShareSet';
-
-const timeline: unknown[] = [];
-const ev = (id: string, ts: number, threadRootId?: string, status: string | null = null) => ({
- getId: () => id,
- getTs: () => ts,
- threadRootId,
- status,
-});
-const mount = (
- folder?: string[],
- into?: { albumId: string; lastId: string; lastTs: number },
- mediaConfig: MediaConfig = {}
-) => {
- const room = {
- roomId: '!r:x',
- hasEncryptionStateEvent: () => false,
- getLiveTimeline: () => ({ getEvents: () => timeline }),
- } as never;
- renderToStaticMarkup(
-
- ({ event_id: '$e' }) } as never}>
-
-
-
-
-
- );
-};
-const send = async (typed: string) => {
- await captured.run?.([], typed, () => undefined);
- return captured.titles.at(-1);
-};
-
-describe('ShareSet: the folder reaches the album title', () => {
- beforeEach(() => {
- captured.run = undefined;
- captured.titles.length = 0;
- timeline.length = 0;
- });
-
- it('at the top, the typed title goes as typed', async () => {
- mount();
- expect(await send('Poses')).toBe('Poses');
- });
-
- it('inside a folder, the path prefixes the typed title', async () => {
- mount(['cast-art', 'poses']);
- expect(await send('Set 2')).toBe('cast-art/poses/Set 2');
- });
-
- it('an empty typed title falls back to the default, still under the folder', async () => {
- mount(['handoff']);
- expect(await send(' ')).toBe('handoff/Shared files');
- });
-
- it('a typed title containing a slash goes deeper', async () => {
- mount(['a']);
- expect(await send('b/c')).toBe('a/b/c');
- });
-
- it('an existing album takes the files instead of a title, whatever the folder', async () => {
- mount(['a'], { albumId: '$alb', lastId: '$last', lastTs: 5 });
- expect(await send('ignored')).toBe('into:$alb@$last');
- });
-
- it('the freshest sent event of that thread in the room timeline is where the files thread after', async () => {
- timeline.push(
- ev('$other', 99, '$else'),
- ev('$local', 98, '$alb', 'sending'),
- ev('$new', 50, '$alb'),
- ev('$sentNotEchoed', 60, '$alb', 'sent'),
- ev('$failed', 70, '$alb', 'not_sent')
- );
- mount(['a'], { albumId: '$alb', lastId: '$last', lastTs: 5 });
- expect(await send('x')).toBe('into:$alb@$sentNotEchoed');
- });
-});
-
-describe('ShareSet: the homeserver upload cap reaches the controller', () => {
- it('is the server-stated m.upload.size, and none when the server states none', () => {
- mount([], undefined, { 'm.upload.size': 52428800 });
- expect(captured.maxBytes?.()).toBe(52428800);
- mount([], undefined, {});
- expect(captured.maxBytes?.()).toBeUndefined();
- // A cap that is not a positive number is no cap, never "refuse everything".
- [0, -1, Number.NaN, '50' as unknown as number].forEach((bad) => {
- mount([], undefined, { 'm.upload.size': bad });
- expect(captured.maxBytes?.()).toBeUndefined();
- });
- });
-});
diff --git a/src/app/features/albums/ShareSet.test.tsx b/src/app/features/albums/ShareSet.test.tsx
deleted file mode 100644
index b3da7a3d..00000000
--- a/src/app/features/albums/ShareSet.test.tsx
+++ /dev/null
@@ -1,123 +0,0 @@
-import React from 'react';
-import { renderToStaticMarkup } from 'react-dom/server';
-import { describe, expect, it } from 'vitest';
-import { ClientConfigProvider } from '../../hooks/useClientConfig';
-import type { ClientConfig } from '../../hooks/useClientConfig';
-import { ShareState } from './shareController';
-import { ShareSetView, shareEnabled, useShareEnabled } from './ShareSet';
-
-const text = (html: string) =>
- html
- .replace(/<[^>]*>/g, ' ')
- .replace(/\s+/g, ' ')
- .trim();
-const noop = () => undefined;
-const file = (name: string) => ({ name, type: 'audio/ogg' } as File);
-
-const view = (over: Partial> = {}, adding = false) =>
- renderToStaticMarkup(
-
- );
-
-describe('the share panel, drawn', () => {
- it('idle: one "Share files" row and no title, names, Send or Cancel', () => {
- const html = view();
- expect(text(html)).toBe('Share files ›');
- expect(html).not.toContain('aria-label="Album title"');
- expect(html).toContain('type="file"');
- expect(html).toContain('multiple');
- expect(html).toContain('hidden');
- });
-
- it('picked: the title field, the names on one line, Send N files and Cancel; no pick row', () => {
- const html = view({ files: [file('a.ogg'), file('b.ogg')] });
- expect(html).toContain('aria-label="Album title"');
- expect(html).toContain('placeholder="Shared files"');
- expect(text(html)).toBe('a.ogg · b.ogg Send 2 files Cancel');
- expect(text(html)).not.toContain('Share files');
- });
-
- it('one picked file reads "Send 1 file"', () => {
- expect(text(view({ files: [file('a.ogg')] }))).toContain('Send 1 file Cancel');
- });
-
- it('sending: progress replaces Send and Cancel, and the title is locked', () => {
- const html = view({
- files: [file('a'), file('b'), file('c')],
- phase: { kind: 'sending', done: 2 },
- });
- expect(text(html)).toContain('Sending 2 of 3…');
- expect(text(html)).toContain('Stop');
- expect(text(html)).not.toContain('Send 3 files');
- expect(text(html)).not.toContain('Cancel');
- expect(html).toMatch(
- /aria-label="Album title"[^>]*disabled|disabled[^>]*aria-label="Album title"/
- );
- });
-
- it('the encrypted note shows above the kept pick', () => {
- const html = view({
- files: [file('a.ogg')],
- phase: { kind: 'done', text: 'Not shared: this room is encrypted.' },
- });
- expect(text(html)).toBe('Not shared: this room is encrypted. a.ogg Send 1 file Cancel');
- });
-
- it('after a full success the idle row and the note show together', () => {
- expect(text(view({ phase: { kind: 'done', text: 'Shared 2 files.' } }))).toBe(
- 'Share files › Shared 2 files.'
- );
- });
-});
-
-describe('adding to an existing album', () => {
- it('the idle row says Add files', () => {
- expect(text(view({}, true))).toBe('Add files ›');
- });
-
- it('picked: no title field, the names, Send and Cancel', () => {
- const html = view({ files: [file('a.ogg')] }, true);
- expect(html).not.toContain('aria-label="Album title"');
- expect(text(html)).toBe('a.ogg Send 1 file Cancel');
- });
-});
-
-describe('the flag', () => {
- it('off, missing or empty offers no share', () => {
- expect(shareEnabled({}, false)).toBe(false);
- expect(shareEnabled({ fileZoneShare: {} }, false)).toBe(false);
- expect(shareEnabled({ fileZoneShare: { enabled: false } }, false)).toBe(false);
- });
-
- it('on offers it, except in an encrypted room', () => {
- expect(shareEnabled({ fileZoneShare: { enabled: true } }, false)).toBe(true);
- expect(shareEnabled({ fileZoneShare: { enabled: true } }, true)).toBe(false);
- });
-
- it('the hook reads the client config and the room, as AlbumView mounts it', () => {
- const room = (encrypted: boolean) => ({ hasEncryptionStateEvent: () => encrypted } as never);
- function Probe({ encrypted }: { encrypted: boolean }) {
- return {String(useShareEnabled(room(encrypted)))} ;
- }
- const probe = (config: ClientConfig, encrypted: boolean) =>
- text(
- renderToStaticMarkup(
-
-
-
- )
- );
- expect(probe({}, false)).toBe('false');
- expect(probe({ fileZoneShare: { enabled: true } }, false)).toBe('true');
- expect(probe({ fileZoneShare: { enabled: true } }, true)).toBe('false');
- });
-});
diff --git a/src/app/features/albums/ShareSet.tsx b/src/app/features/albums/ShareSet.tsx
deleted file mode 100644
index b7f26e7e..00000000
--- a/src/app/features/albums/ShareSet.tsx
+++ /dev/null
@@ -1,210 +0,0 @@
-import React, { useRef, useState, useSyncExternalStore } from 'react';
-import { Text } from 'folds';
-import { useQueryClient } from '@tanstack/react-query';
-import { EventStatus, Room } from 'matrix-js-sdk';
-import { useMatrixClient } from '../../hooks/useMatrixClient';
-import { useClientConfig } from '../../hooks/useClientConfig';
-import { useMediaConfig } from '../../hooks/useMediaConfig';
-import { uploadContent } from '../../utils/matrix';
-import { safeFile } from '../../utils/mimeTypes';
-import { getMsgContent } from '../room/msgContent';
-import { FILE_HASH_KEY, hashForSend } from './fileReceipt';
-import { ShareController, ShareState, createShareController } from './shareController';
-import { titleIn } from './albumFolders';
-import { DEFAULT_TITLE, ExistingAlbum, freshest, sendShareSet, ThreadEvent } from './shareSet';
-import * as css from './AlbumView.css';
-
-/** Off unless `fileZoneShare.enabled` is true. An encrypted zone is never offered the share. */
-export const shareEnabled = (
- config: { fileZoneShare?: { enabled?: boolean } },
- encrypted: boolean
-) => !!config.fileZoneShare?.enabled && !encrypted;
-
-export const useShareEnabled = (room: Room): boolean =>
- shareEnabled(useClientConfig(), room.hasEncryptionStateEvent());
-
-type ShareViewProps = {
- state: ShareState;
- onPickClick: () => void;
- onPicked: (files: File[]) => void;
- onTitle: (title: string) => void;
- onSend: () => void;
- onCancel: () => void;
- onStop: () => void;
- /** Adding to an existing album: the files join it, so there is no title to ask for. */
- adding?: boolean;
- inputRef?: React.Ref;
-};
-
-/**
- * One row when idle. Picking files (any number, one picker) opens the panel: a title, the picked
- * names, Send. Nothing but the row is visible until files are picked.
- */
-export function ShareSetView({
- state,
- onPickClick,
- onPicked,
- onTitle,
- onSend,
- onCancel,
- onStop,
- adding,
- inputRef,
-}: ShareViewProps) {
- const { files, title, phase, epoch } = state;
- return (
-
- onPicked(Array.from(e.target.files ?? []))}
- />
- {files.length === 0 && phase.kind !== 'sending' && (
-
- {adding ? 'Add files ›' : 'Share files ›'}
-
- )}
- {phase.kind === 'done' && (
-
- {phase.text}
-
- )}
- {files.length > 0 && (
- <>
- {!adding && (
- onTitle(e.target.value)}
- />
- )}
-
- {files.map((f) => f.name).join(' · ')}
-
- {phase.kind === 'sending' ? (
- <>
-
- Sending {phase.done} of {files.length}…
-
-
- Stop
-
- >
- ) : (
- <>
-
-
- Send {files.length} {files.length === 1 ? 'file' : 'files'}
-
-
-
- Cancel
-
- >
- )}
- >
- )}
-
- );
-}
-
-/** The sent events in the room's live timeline, as the thread view of them `freshest` reads. */
-const threadEvents = (room: Room): ThreadEvent[] =>
- room
- .getLiveTimeline()
- .getEvents()
- .filter((e) => (!e.status || e.status === EventStatus.SENT) && !!e.getId())
- .map((e) => ({ id: e.getId() as string, ts: e.getTs(), threadRoot: e.threadRootId }));
-
-type ShareSetProps = {
- room: Room;
- /** The path a new album lands in: its title is prefixed by it (docs/commons-files-desk.md). */
- folder?: string[];
- /** Add the files to this album instead of making one. */
- into?: ExistingAlbum;
-};
-export function ShareSet({ room, folder = [], into }: ShareSetProps) {
- const mx = useMatrixClient();
- const queryClient = useQueryClient();
- const mediaConfig = useMediaConfig();
- const input = useRef(null);
- // Built once per mount (AlbumView keys the panel by room): the pick lives in the controller, so a
- // rerender with a new client or Room object must not build another. Live values go through `live`.
- const live = useRef({ mx, room, queryClient, folder, into, mediaConfig });
- live.current = { mx, room, queryClient, folder, into, mediaConfig };
- const [controller]: [ShareController, unknown] = useState(() =>
- createShareController({
- roomId: room.roomId,
- isEncrypted: () => live.current.room.hasEncryptionStateEvent(),
- maxBytes: () => {
- const cap = live.current.mediaConfig['m.upload.size'];
- return typeof cap === 'number' && Number.isFinite(cap) && cap > 0 ? cap : undefined;
- },
- onSent: () =>
- live.current.queryClient.invalidateQueries({ queryKey: ['albums', room.roomId] }),
- run: (files, title, onFile, signal) =>
- sendShareSet(
- {
- signal,
- send: async (content) =>
- (await live.current.mx.sendMessage(room.roomId, content as any)).event_id,
- contentOf: async (f) => {
- const file = safeFile(f.file);
- const mxc = await new Promise((resolve, reject) => {
- const { mx: client } = live.current;
- let upload: Promise | undefined;
- const abort = () => upload && client.cancelUpload(upload as never);
- signal.addEventListener('abort', abort, { once: true });
- uploadContent(client, file, {
- onPromise: (p) => {
- upload = p;
- if (signal.aborted) abort();
- },
- onSuccess: resolve,
- onError: reject,
- });
- });
- const content = await getMsgContent(
- live.current.mx,
- {
- file,
- originalFile: f.file,
- metadata: { markedAsSpoiler: false },
- encInfo: undefined,
- },
- mxc
- );
- const sha256 = await hashForSend(f.file);
- if (sha256) content.info = { ...content.info, [FILE_HASH_KEY]: sha256 };
- return content;
- },
- onFile,
- },
- live.current.into
- ? freshest(live.current.into, threadEvents(live.current.room))
- : titleIn(live.current.folder, title, DEFAULT_TITLE),
- files.map((file) => ({ name: file.name, mimeType: file.type, file }))
- ),
- })
- );
- const state = useSyncExternalStore(controller.subscribe, controller.getState);
- return (
- input.current?.click()}
- onPicked={controller.pick}
- onTitle={controller.setTitle}
- onSend={controller.send}
- onCancel={controller.cancel}
- onStop={controller.stop}
- adding={!!into}
- />
- );
-}
diff --git a/src/app/features/albums/albumFolders.test.ts b/src/app/features/albums/albumFolders.test.ts
deleted file mode 100644
index 9a9be53e..00000000
--- a/src/app/features/albums/albumFolders.test.ts
+++ /dev/null
@@ -1,133 +0,0 @@
-import { describe, expect, it } from 'vitest';
-import { buildAlbums } from './buildAlbums';
-import type { Album, ZoneEvent } from './buildAlbums';
-import { folderOf, listFolder, splitPath, titleIn } from './albumFolders';
-import { DEFAULT_TITLE, sendShareSet } from './shareSet';
-
-const album = (id: string, title: string, ts = 1): Album => ({
- id,
- title,
- author: '@a:x',
- ts,
- files: [],
- count: 0,
-});
-const names = (l: ReturnType) => ({
- folders: l.folders.map((f) => `${f.name}:${f.albums}`),
- albums: l.albums.map((a) => `${a.album.id}=${a.leaf}`),
-});
-
-describe('splitPath', () => {
- it('drops empty segments and padding; dots are names, not navigation', () => {
- expect(splitPath(' a // b /')).toEqual(['a', 'b']);
- expect(splitPath('../x')).toEqual(['..', 'x']);
- expect(splitPath('///')).toEqual([]);
- });
-});
-
-describe('listFolder', () => {
- const all = [
- album('$1', 'handoff/2026-11/notes', 10),
- album('$2', 'handoff/2026-11/plan', 30),
- album('$3', 'handoff/readme', 20),
- album('$4', 'cast-art', 5),
- album('$5', 'Plain album', 40),
- ];
-
- it('root: first segments become folders (counted below, newest first); single-segment titles are albums', () => {
- expect(names(listFolder(all, []))).toEqual({
- folders: ['handoff:3'],
- albums: ['$5=Plain album', '$4=cast-art'],
- });
- });
-
- it('nested: a folder shows its sub-folders and its own albums under their leaf names', () => {
- expect(names(listFolder(all, ['handoff']))).toEqual({
- folders: ['2026-11:2'],
- albums: ['$3=readme'],
- });
- expect(names(listFolder(all, ['handoff', '2026-11']))).toEqual({
- folders: [],
- albums: ['$2=plan', '$1=notes'],
- });
- });
-
- it('an album titled exactly like a folder is not hidden by it', () => {
- const l = listFolder([album('$a', 'x'), album('$b', 'x/y')], []);
- expect(names(l)).toEqual({ folders: ['x:1'], albums: ['$a=x'] });
- expect(names(listFolder([album('$a', 'x'), album('$b', 'x/y')], ['x']))).toEqual({
- folders: [],
- albums: ['$b=y'],
- });
- });
-
- it('a path that exists nowhere lists nothing; the prefix match is by whole segment', () => {
- expect(names(listFolder(all, ['hand']))).toEqual({ folders: [], albums: [] });
- });
-
- it('an untitled or all-slash album stays at the root, nowhere else', () => {
- const odd = [album('$u', '///')];
- expect(names(listFolder(odd, []))).toEqual({ folders: [], albums: ['$u=///'] });
- expect(names(listFolder(odd, ['x']))).toEqual({ folders: [], albums: [] });
- expect(names(listFolder([album('$w', ' ')], []))).toEqual({
- folders: [],
- albums: ['$w=Untitled album'],
- });
- });
-
- it('server-supplied names like "constructor" are folders, not prototype hits', () => {
- expect(names(listFolder([album('$c', 'constructor/a')], []))).toEqual({
- folders: ['constructor:1'],
- albums: [],
- });
- });
-});
-
-describe('titleIn and folderOf', () => {
- it('prefixes the folder, keeps a typed sub-path, falls back to the default title', () => {
- expect(titleIn([], '', DEFAULT_TITLE)).toBe(DEFAULT_TITLE);
- expect(titleIn([], ' Mine ', DEFAULT_TITLE)).toBe('Mine');
- expect(titleIn(['uploads', 'me'], '', DEFAULT_TITLE)).toBe(`uploads/me/${DEFAULT_TITLE}`);
- expect(titleIn(['uploads'], 'a/b', DEFAULT_TITLE)).toBe('uploads/a/b');
- });
-
- it('folderOf is the title path without its leaf', () => {
- expect(folderOf(album('$', 'a/b/c'))).toEqual(['a', 'b']);
- expect(folderOf(album('$', 'c'))).toEqual([]);
- });
-});
-
-describe('a share into a folder, read back as the viewer reads it', () => {
- it('posts a root titled under the folder, and buildAlbums + listFolder put it in that folder', async () => {
- const sent: Record[] = [];
- const res = await sendShareSet(
- {
- send: async (c) => {
- sent.push(c);
- return `$e${sent.length}`;
- },
- contentOf: async (f) => ({ msgtype: 'm.file', body: f.name, filename: f.name }),
- },
- titleIn(['uploads', 'meta'], 'Photos', DEFAULT_TITLE),
- [{ name: 'a.png', mimeType: 'image/png' }]
- );
- expect(res.sent).toBe(1);
- expect(sent[0]).toEqual({ msgtype: 'm.text', body: 'uploads/meta/Photos' });
-
- const asEvent = (c: Record, id: string): ZoneEvent => ({
- event_id: id,
- type: 'm.room.message',
- sender: '@a:x',
- origin_server_ts: 1,
- content: c,
- });
- const albums = buildAlbums([
- { root: asEvent(sent[0], '$e1'), replies: [asEvent(sent[1], '$e2')] },
- ]);
- expect(names(listFolder(albums, []))).toEqual({ folders: ['uploads:1'], albums: [] });
- expect(names(listFolder(albums, ['uploads', 'meta']))).toEqual({
- folders: [],
- albums: ['$e1=Photos'],
- });
- });
-});
diff --git a/src/app/features/albums/albumFolders.ts b/src/app/features/albums/albumFolders.ts
deleted file mode 100644
index a74d363f..00000000
--- a/src/app/features/albums/albumFolders.ts
+++ /dev/null
@@ -1,73 +0,0 @@
-// Pure: folders are albums whose title is a `/`-separated path (docs/commons-files-desk.md, "Folders").
-// No wire change: the album is still one thread root; the folder tree is only how the list is grouped.
-import { Album, UNTITLED } from './buildAlbums';
-
-/** A path as segments. Empty segments and surrounding space drop out; `.` and `..` are ordinary names, never navigation. */
-export const splitPath = (title: string): string[] =>
- title
- .split('/')
- .map((s) => s.trim())
- .filter(Boolean);
-
-export type FolderEntry = {
- name: string;
- /** Segments from the root to this folder. */
- path: string[];
- /** Albums at any depth below. */
- albums: number;
- /** The newest album ts below, for ordering. */
- ts: number;
-};
-
-export type AlbumEntry = { album: Album; leaf: string };
-
-export type FolderListing = { folders: FolderEntry[]; albums: AlbumEntry[] };
-
-const startsWith = (path: string[], prefix: string[]) => prefix.every((seg, i) => path[i] === seg);
-
-/**
- * What one folder shows: its direct sub-folders and the albums titled exactly at its path plus a leaf.
- * An album titled `x` and a folder `x/` coexist at the same level; neither hides the other. Newest first, both lists.
- */
-export const listFolder = (albums: readonly Album[], at: string[]): FolderListing => {
- const folders = new Map();
- const direct: AlbumEntry[] = [];
- albums.forEach((album) => {
- const segs = splitPath(album.title);
- if (segs.length === 0) {
- // An untitled or all-slash title lives at the root under the title as written.
- if (at.length === 0) direct.push({ album, leaf: album.title.trim() || UNTITLED });
- return;
- }
- if (!startsWith(segs, at)) return;
- // An album titled exactly at this path sits in the parent, not inside the folder it shares a name with.
- if (segs.length <= at.length) return;
- if (segs.length === at.length + 1) {
- direct.push({ album, leaf: segs[segs.length - 1] });
- return;
- }
- const name = segs[at.length];
- const f = folders.get(name) ?? { name, path: [...at, name], albums: 0, ts: 0 };
- f.albums += 1;
- f.ts = Math.max(f.ts, album.ts);
- folders.set(name, f);
- });
- return {
- folders: [...folders.values()].sort((a, b) => b.ts - a.ts),
- albums: direct.sort((a, b) => b.album.ts - a.album.ts),
- };
-};
-
-/** The folder an album sits in: its title path without the leaf. */
-export const folderOf = (album: Album): string[] => splitPath(album.title).slice(0, -1);
-
-/**
- * The title a share sends into `folder`: the folder path then what the sender typed. The typed title
- * may itself contain `/`, which just goes deeper. An empty typed title falls back to `fallback`.
- */
-export const titleIn = (folder: string[], typed: string, fallback: string): string => {
- const leaf = splitPath(typed).join('/') || fallback;
- return [...folder, leaf].join('/');
-};
-
-export const pathLabel = (path: string[]): string => path.join(' / ');
diff --git a/src/app/features/albums/buildAlbums.test.ts b/src/app/features/albums/buildAlbums.test.ts
deleted file mode 100644
index e1e7964b..00000000
--- a/src/app/features/albums/buildAlbums.test.ts
+++ /dev/null
@@ -1,336 +0,0 @@
-import { describe, expect, it } from 'vitest';
-import { AlbumInput, ZoneEvent, buildAlbums, lastEvent } from './buildAlbums';
-
-const root = (id: string, ts: number, over: Partial = {}): ZoneEvent => ({
- event_id: id,
- type: 'm.room.message',
- sender: '@void:x',
- origin_server_ts: ts,
- content: { msgtype: 'm.text', body: `album ${id}` },
- ...over,
-});
-const reply = (id: string, ts: number, msgtype: string, body = id, extra = {}): ZoneEvent => ({
- event_id: id,
- type: 'm.room.message',
- sender: '@void:x',
- origin_server_ts: ts,
- content: { msgtype, body, ...extra },
-});
-const one = (r: ZoneEvent, replies: ZoneEvent[]) => buildAlbums([{ root: r, replies }])[0];
-
-describe('buildAlbums', () => {
- it('lists the newest album first', () => {
- const inputs: AlbumInput[] = [
- { root: root('$old', 100), replies: [] },
- { root: root('$new', 300), replies: [] },
- { root: root('$mid', 200), replies: [] },
- ];
- expect(buildAlbums(inputs).map((a) => a.id)).toEqual(['$new', '$mid', '$old']);
- });
-
- it('takes title, author and date from the root', () => {
- const a = one(root('$r', 555, { sender: '@eureka:x' }), []);
- expect([a.title, a.author, a.ts]).toEqual(['album $r', '@eureka:x', 555]);
- });
-
- it('lists files oldest first whatever order the server returned them in', () => {
- const a = one(root('$r', 1), [
- reply('$c', 30, 'm.audio'),
- reply('$a', 10, 'm.audio'),
- reply('$b', 20, 'm.audio'),
- ]);
- expect(a.files.map((f) => f.id)).toEqual(['$a', '$b', '$c']);
- });
-
- it('counts media replies only; a text reply is not a file', () => {
- const a = one(root('$r', 1), [
- reply('$t', 5, 'm.text', 'nice'),
- reply('$n', 6, 'm.notice', 'bot'),
- reply('$a', 10, 'm.audio'),
- reply('$f', 11, 'm.file'),
- ]);
- expect(a.count).toBe(2);
- expect(a.files.map((f) => f.id)).toEqual(['$a', '$f']);
- });
-
- it('keeps a root with no media as an album of zero files', () => {
- const a = one(root('$r', 1), [reply('$t', 5, 'm.text')]);
- expect(a).toMatchObject({ id: '$r', count: 0, files: [], cover: undefined });
- });
-
- it('uses the first image as the cover', () => {
- const a = one(root('$r', 1), [
- reply('$a', 5, 'm.audio'),
- reply('$i2', 20, 'm.image'),
- reply('$i1', 10, 'm.image'),
- ]);
- expect(a.cover?.id).toBe('$i1');
- expect(one(root('$q', 1), [reply('$a', 5, 'm.audio')]).cover).toBeUndefined();
- });
-
- it('derives the kind from the msgtype', () => {
- const a = one(root('$r', 1), [
- reply('$1', 1, 'm.audio'),
- reply('$2', 2, 'm.image'),
- reply('$3', 3, 'm.video'),
- reply('$4', 4, 'm.file'),
- ]);
- expect(a.files.map((f) => f.kind)).toEqual(['audio', 'image', 'video', 'file']);
- });
-
- it('names a file by filename, else body', () => {
- const a = one(root('$r', 1), [
- reply('$1', 1, 'm.audio', 'caption', { filename: 'clip.wav' }),
- reply('$2', 2, 'm.audio', 'plain.wav'),
- ]);
- expect(a.files.map((f) => f.name)).toEqual(['clip.wav', 'plain.wav']);
- });
-
- it('does not duplicate a file the relations endpoint returned twice', () => {
- const a = one(root('$r', 1), [reply('$a', 5, 'm.audio'), reply('$a', 5, 'm.audio')]);
- expect(a.count).toBe(1);
- });
-
- it('does not duplicate an album listed twice', () => {
- expect(
- buildAlbums([
- { root: root('$r', 1), replies: [] },
- { root: root('$r', 1), replies: [] },
- ])
- ).toHaveLength(1);
- });
-
- it('skips redacted and empty events', () => {
- const redacted = {
- ...reply('$x', 5, 'm.audio'),
- content: {},
- unsigned: { redacted_because: {} },
- };
- const stillTyped = { ...reply('$y', 6, 'm.audio'), unsigned: { redacted_because: {} } };
- const empty: ZoneEvent = { event_id: '$z' };
- const a = one(root('$r', 1), [redacted, stillTyped, empty, reply('$ok', 7, 'm.audio')]);
- expect(a.files.map((f) => f.id)).toEqual(['$ok']);
- expect(buildAlbums([{ root: root('$g', 1, { content: {} }), replies: [] }])).toEqual([]);
- expect(
- buildAlbums([{ root: root('$h', 1, { unsigned: { redacted_because: {} } }), replies: [] }])
- ).toEqual([]);
- });
-
- it('tolerates events with missing fields', () => {
- const a = one({ event_id: '$r', content: { msgtype: 'm.text' } }, [
- { event_id: '$a', content: { msgtype: 'm.audio' } },
- ]);
- expect(a).toMatchObject({ title: 'Untitled album', author: '', ts: 0, count: 1 });
- });
-
- it('does not read inherited object keys as file kinds', () => {
- const a = one(root('$r', 1), [
- reply('$c', 1, 'constructor'),
- reply('$p', 2, '__proto__'),
- reply('$t', 3, 'toString'),
- ]);
- expect(a.count).toBe(0);
- });
-
- it('skips events that are not room messages even if their content looks like media', () => {
- const reaction = { ...reply('$x', 5, 'm.audio'), type: 'm.reaction' };
- const a = one(root('$r', 1), [reaction, reply('$ok', 6, 'm.audio')]);
- expect(a.files.map((f) => f.id)).toEqual(['$ok']);
- expect(buildAlbums([{ root: root('$g', 1, { type: 'm.reaction' }), replies: [] }])).toEqual([]);
- });
-
- it('skips events without an event id', () => {
- const anon: ZoneEvent = { type: 'm.room.message', content: { msgtype: 'm.audio', body: 'a' } };
- expect(one(root('$r', 1), [anon]).count).toBe(0);
- expect(
- buildAlbums([{ root: { content: { msgtype: 'm.text', body: 'x' } }, replies: [] }])
- ).toEqual([]);
- });
-
- it('titles an edited album by its latest edit', () => {
- const edited = root('$r', 1, {
- unsigned: {
- 'm.relations': {
- 'm.replace': { content: { 'm.new_content': { msgtype: 'm.text', body: 'renamed' } } },
- },
- },
- });
- expect(one(edited, []).title).toBe('renamed');
- const emptyEdit = root('$q', 1, { unsigned: { 'm.relations': { 'm.replace': {} } } });
- expect(one(emptyEdit, []).title).toBe('album $q');
- });
-
- it('survives null or non-object entries in inputs and replies', () => {
- const bad = [null, undefined, 'x', 7] as unknown as ZoneEvent[];
- const a = buildAlbums([
- null as unknown as AlbumInput,
- { root: null as unknown as ZoneEvent, replies: [] },
- { root: root('$r', 1), replies: [...bad, reply('$ok', 2, 'm.audio')] },
- { root: root('$s', 2), replies: null as unknown as ZoneEvent[] },
- ]);
- expect(a.map((x) => x.id)).toEqual(['$s', '$r']);
- expect(a[1].files.map((f) => f.id)).toEqual(['$ok']);
- });
-
- it('treats a non-numeric timestamp as 0 so it sorts first, not by string order', () => {
- const a = one(root('$r', 1), [
- reply('$b', 20, 'm.audio'),
- { ...reply('$bad', 0, 'm.audio'), origin_server_ts: '5' as unknown as number },
- { ...reply('$nan', 0, 'm.audio'), origin_server_ts: NaN },
- reply('$a', 10, 'm.audio'),
- ]);
- expect(a.files.map((f) => f.id)).toEqual(['$bad', '$nan', '$a', '$b']);
- const albums = buildAlbums([
- { root: root('$x', 100), replies: [] },
- { root: root('$y', 0, { origin_server_ts: '999' as unknown as number }), replies: [] },
- ]);
- expect(albums.map((x) => [x.id, x.ts])).toEqual([
- ['$x', 100],
- ['$y', 0],
- ]);
- });
-
- it('gives an album with an empty body a fallback title', () => {
- expect(one(root('$r', 1, { content: { msgtype: 'm.text', body: '' } }), []).title).toBe(
- 'Untitled album'
- );
- expect(one(root('$q', 1, { content: { msgtype: 'm.text' } }), []).title).toBe('Untitled album');
- });
-
- it('never counts an edit event as a file or an album', () => {
- const edit = reply('$e', 9, 'm.audio', '* x', {
- 'm.relates_to': { rel_type: 'm.replace', event_id: '$a' },
- 'm.new_content': { msgtype: 'm.audio', body: 'x' },
- });
- const a = one(root('$r', 1), [reply('$a', 5, 'm.audio'), edit]);
- expect(a.files.map((f) => f.id)).toEqual(['$a']);
- const rootEdit = root('$re', 1, {
- content: { msgtype: 'm.text', body: '* t', 'm.relates_to': { rel_type: 'm.replace' } },
- });
- expect(buildAlbums([{ root: rootEdit, replies: [] }])).toEqual([]);
- const threaded = reply('$t', 6, 'm.audio', 't', {
- 'm.relates_to': { rel_type: 'm.thread', event_id: '$r' },
- });
- expect(one(root('$q', 1), [threaded]).count).toBe(1);
- });
-});
-
-describe('versions', () => {
- const v = (id: string, ts: number, replaces?: string) =>
- reply(id, ts, 'm.file', id, replaces ? { 'org.gamecult.publish': { replaces } } : {});
-
- it('lists the latest of a chain and folds the earlier versions under it', () => {
- const a = one(root('$r', 1), [v('$v1', 10), v('$v2', 20, '$v1'), reply('$x', 30, 'm.file')]);
- expect(a.files.map((f) => [f.id, f.earlier.map((e) => e.id)])).toEqual([
- ['$v2', ['$v1']],
- ['$x', []],
- ]);
- expect(a.count).toBe(2);
- });
-});
-
-describe('versions: cover and sender', () => {
- it('the cover comes from the shown version, not a folded image', () => {
- const img = (id: string, ts: number, type: string, replaces?: string) =>
- reply(id, ts, type, id, replaces ? { 'org.gamecult.publish': { replaces } } : {});
- const a = one(root('$r', 1), [img('$v1', 10, 'm.image'), img('$v2', 20, 'm.file', '$v1')]);
- expect(a.files.map((f) => f.id)).toEqual(['$v2']);
- expect(a.cover).toBeUndefined();
- });
-});
-
-describe('lastEvent', () => {
- it('is the newest event of the thread, a folded version included; the root when empty', () => {
- const v = (id: string, ts: number, replaces?: string) =>
- reply(id, ts, 'm.file', id, replaces ? { 'org.gamecult.publish': { replaces } } : {});
- expect(lastEvent(one(root('$r', 1), [v('$a', 10), v('$b', 20, '$a'), v('$c', 15)]))).toEqual({
- id: '$b',
- ts: 20,
- });
- expect(lastEvent(one(root('$r', 1), []))).toEqual({ id: '$r', ts: 1 });
- });
-});
-
-describe('Mind receipts', () => {
- const HASH = 'a'.repeat(64);
- const file = (id: string, sha?: string) =>
- reply(id, 10, 'm.audio', id, { info: sha ? { sha256: sha } : {} });
- const receipt = (
- id: string,
- ts: number,
- sender: string,
- fileId: unknown,
- sha?: unknown,
- extra: Record = {}
- ) =>
- ({
- event_id: id,
- type: 'org.gamecult.file_received',
- sender,
- origin_server_ts: ts,
- content: { 'org.gamecult.file_received': { event_id: fileId, sha256: sha, ...extra } },
- } as ZoneEvent);
-
- const oneX = (r: ZoneEvent, replies: ZoneEvent[]) => buildAlbums([{ root: r, replies }], 'x')[0];
-
- it('shows who read a file when the receipt carries the file event hash', () => {
- const a = oneX(root('$r', 1), [file('$f', HASH), receipt('$x', 20, '@void:x', '$f', HASH)]);
- expect(a.files[0].readBy).toEqual([{ sender: '@void:x', ts: 20 }]);
- expect(a.count).toBe(1);
- });
- it('counts nothing for a hash that differs, a missing hash on either side, or a bad hash', () => {
- const a = oneX(root('$r', 1), [
- file('$f', HASH),
- file('$g'),
- receipt('$x', 20, '@void:x', '$f', 'b'.repeat(64)),
- receipt('$y', 21, '@void:x', '$g', HASH),
- receipt('$z', 22, '@void:x', '$f', undefined),
- receipt('$w', 23, '@void:x', '$f', 7),
- ]);
- expect(a.files.every((f) => f.readBy.length === 0)).toBe(true);
- });
- it('trusts the event sender, never a Mind field inside the content', () => {
- const a = oneX(root('$r', 1), [
- file('$f', HASH),
- receipt('$x', 20, '@mallory:x', '$f', HASH, { mind: 'void', sender: '@void:x' }),
- ]);
- expect(a.files[0].readBy).toEqual([]);
- });
- it('counts only a Mind of this homeserver: not another server, a lookalike, or a bare name', () => {
- const a = oneX(root('$r', 1), [
- file('$f', HASH),
- receipt('$x', 20, '@void-fan:x', '$f', HASH),
- receipt('$y', 21, '@x:void', '$f', HASH),
- receipt('$z', 22, '@aqua:x', '$f', HASH),
- receipt('$e', 23, '@void:evil.example', '$f', HASH),
- receipt('$b', 24, 'void:x', '$f', HASH),
- ]);
- expect(a.files[0].readBy.map((r) => r.sender)).toEqual(['@aqua:x']);
- });
- it('keeps one receipt per Mind, the latest, and a second Mind beside it', () => {
- const a = oneX(root('$r', 1), [
- file('$f', HASH),
- receipt('$1', 20, '@void:x', '$f', HASH),
- receipt('$2', 30, '@void:x', '$f', HASH),
- receipt('$3', 25, '@eureka:x', '$f', HASH),
- ]);
- expect(a.files[0].readBy).toEqual([
- { sender: '@eureka:x', ts: 25 },
- { sender: '@void:x', ts: 30 },
- ]);
- });
- it('ignores a receipt for a file not in the album, a malformed one, and a redacted one', () => {
- const redacted = {
- ...receipt('$d', 20, '@void:x', '$f', HASH),
- unsigned: { redacted_because: {} },
- };
- const a = oneX(root('$r', 1), [
- file('$f', HASH),
- receipt('$a', 20, '@void:x', '$elsewhere', HASH),
- receipt('$b', 21, '@void:x', 42, HASH),
- redacted,
- ]);
- expect(a.files[0].readBy).toEqual([]);
- expect(a.count).toBe(1);
- });
-});
diff --git a/src/app/features/albums/buildAlbums.ts b/src/app/features/albums/buildAlbums.ts
deleted file mode 100644
index 5d3662e1..00000000
--- a/src/app/features/albums/buildAlbums.ts
+++ /dev/null
@@ -1,184 +0,0 @@
-// Pure: turns the thread roots of a file-zone room and each root's thread replies, in the JSON
-// Synapse returns from GET /rooms/{roomId}/threads and GET /rooms/{roomId}/relations/{root}/m.thread,
-// into albums. See docs/file-zone.md for the rulings this encodes.
-import { readersOf } from './fileReceipt';
-import type { FileReader } from './fileReceipt';
-import { foldVersions } from './versions';
-
-/** The slice of a Matrix event this module reads. Every field may be missing. */
-export type ZoneEvent = {
- event_id?: string;
- type?: string;
- sender?: string;
- origin_server_ts?: number;
- content?: Record;
- unsigned?: Record;
-};
-
-export type AlbumInput = { root: ZoneEvent; replies: ZoneEvent[] };
-
-export type FileKind = 'audio' | 'image' | 'video' | 'file';
-
-export type AlbumFile = {
- id: string;
- kind: FileKind;
- name: string;
- sender: string;
- ts: number;
- /** The event content, as RenderMessageContent reads it. */
- content: Record;
- /** Receipts in this album that name this file, one per sender (the latest), oldest first. */
- readBy: FileReader[];
- /** The versions this file supersedes, nearest first (`org.gamecult.publish.replaces`). */
- earlier: AlbumFile[];
-};
-
-export type Album = {
- id: string;
- title: string;
- author: string;
- ts: number;
- cover?: AlbumFile;
- files: AlbumFile[];
- count: number;
-};
-
-// A Map, not an object: msgtype is server-supplied and "constructor" must not name a kind.
-const KIND_OF_MSGTYPE = new Map([
- ['m.audio', 'audio'],
- ['m.image', 'image'],
- ['m.video', 'video'],
- ['m.file', 'file'],
-]);
-
-// A redacted event keeps its id but loses its content and gains unsigned.redacted_because.
-const live = (
- e: ZoneEvent
-): e is ZoneEvent & { event_id: string; content: Record } =>
- !!e &&
- typeof e === 'object' &&
- !!e.event_id &&
- // An edit is an m.room.message too, but it revises an event; it is never a file or an album.
- (e.content?.['m.relates_to'] as { rel_type?: unknown } | undefined)?.rel_type !== 'm.replace' &&
- !e.unsigned?.redacted_because &&
- (e.type === undefined || e.type === 'm.room.message') &&
- typeof e.content?.msgtype === 'string';
-
-const tsOf = (v: unknown): number => (typeof v === 'number' && Number.isFinite(v) ? v : 0);
-
-const asString = (v: unknown): string => (typeof v === 'string' ? v : '');
-
-export const toFile = (e: ZoneEvent): AlbumFile | undefined => {
- if (!live(e)) return undefined;
- const kind = KIND_OF_MSGTYPE.get(e.content.msgtype as string);
- if (!kind) return undefined;
- return {
- id: e.event_id,
- kind,
- name: asString(e.content.filename) || asString(e.content.body),
- sender: e.sender ?? '',
- ts: tsOf(e.origin_server_ts),
- content: e.content,
- readBy: [],
- earlier: [],
- };
-};
-
-export const UNTITLED = 'Untitled album';
-
-// An edited root carries its latest edit under unsigned["m.relations"]["m.replace"]; the title is
-// that edit's m.new_content.body, else the original body.
-const titleOf = (root: ZoneEvent & { content: Record }): string => {
- const relations = root.unsigned?.['m.relations'] as Record | undefined;
- const edit = relations?.['m.replace'] as ZoneEvent | undefined;
- const edited = (edit?.content?.['m.new_content'] as Record | undefined)?.body;
- return asString(edited) || asString(root.content.body) || UNTITLED;
-};
-
-const toAlbum = (input: AlbumInput, server: string): Album | undefined => {
- const { root, replies } = input ?? {};
- if (!live(root)) return undefined;
- const seen = new Set();
- const list = Array.isArray(replies) ? replies : [];
- const files = list
- .map(toFile)
- .filter((f): f is AlbumFile => {
- if (!f || seen.has(f.id)) return false;
- seen.add(f.id);
- return true;
- })
- .sort((a, b) => a.ts - b.ts)
- .map((f) => ({ ...f, readBy: readersOf(list, f.id, f.content, server) }));
- const heads = foldVersions(files);
- return {
- id: root.event_id,
- title: titleOf(root),
- author: root.sender ?? '',
- ts: tsOf(root.origin_server_ts),
- cover: heads.find((f) => f.kind === 'image'),
- files: heads,
- count: heads.length,
- };
-};
-
-/** Newest album first; files oldest first. Loose room messages never reach this function. */
-/** `server` is the homeserver's own domain: only its Minds' receipts count. */
-export const buildAlbums = (inputs: AlbumInput[], server = ''): Album[] => {
- const seen = new Set();
- return inputs
- .map((i) => toAlbum(i, server))
- .filter((a): a is Album => {
- if (!a || seen.has(a.id)) return false;
- seen.add(a.id);
- return true;
- })
- .sort((a, b) => b.ts - a.ts);
-};
-
-/** The newest event in an album's thread (shown or folded), else its root: where a new file threads after. */
-export const lastEvent = (album: Album): { id: string; ts: number } =>
- album.files
- .flatMap((f) => [f, ...f.earlier])
- .reduce<{ id: string; ts: number }>((a, f) => (f.ts >= a.ts ? { id: f.id, ts: f.ts } : a), {
- id: album.id,
- ts: album.ts,
- });
-
-/** A room event with the thread root the SDK resolved for it, when it has one. */
-export type TimelineEvent = ZoneEvent & { threadRoot?: string };
-
-/**
- * File events that sit in the room outside any album thread: what a poster that does not thread
- * its files leaves behind. The album list never reads them (it lists threads), so they are named
- * to the sender instead of left out silently.
- */
-export const looseFiles = (events: TimelineEvent[]): AlbumFile[] =>
- events
- .filter((e) => {
- const rel = e?.content?.['m.relates_to'] as { rel_type?: unknown } | undefined;
- return !e?.threadRoot && rel?.rel_type !== 'm.thread';
- })
- .map(toFile)
- .filter((f): f is AlbumFile => !!f);
-
-const NAMED = 3;
-
-/** The line that says loose files exist and are not listed; empty when there are none. */
-export const looseNote = (files: AlbumFile[]): string => {
- if (files.length === 0) return '';
- const names = files.slice(0, NAMED).map((f) => f.name || 'unnamed');
- const more = files.length > NAMED ? ` and ${files.length - NAMED} more` : '';
- const what = files.length === 1 ? '1 file was' : `${files.length} files were`;
- return `${what} posted outside an album and ${
- files.length === 1 ? 'is' : 'are'
- } not listed here: ${names.join(', ')}${more}. ${
- files.length === 1 ? 'It is' : 'They are'
- } in the Timeline.`;
-};
-
-/** Where the album view stands when it decides whether to show the loose-files note. */
-export type ViewState = { open: boolean; encrypted: boolean; loading: boolean; error: boolean };
-
-/** The note for the list view only: never inside an open album, an encrypted zone, or a load that is not finished. */
-export const looseNoteFor = (files: AlbumFile[], view: ViewState): string =>
- view.open || view.encrypted || view.loading || view.error ? '' : looseNote(files);
diff --git a/src/app/features/albums/fileReceipt.test.ts b/src/app/features/albums/fileReceipt.test.ts
deleted file mode 100644
index c3c85f5e..00000000
--- a/src/app/features/albums/fileReceipt.test.ts
+++ /dev/null
@@ -1,165 +0,0 @@
-import { describe, expect, it } from 'vitest';
-import { ReceiptEvent, hashForSend, readLine, readersOf, sha256Hex } from './fileReceipt';
-
-describe('sha256Hex', () => {
- it('hashes the bytes: the FIPS 180 vector for "abc"', async () => {
- expect(await sha256Hex(new Blob(['abc']))).toBe(
- 'ba7816bf8f01cfea414140de5dae2223b00361a396177a9cb410ff61f20015ad'
- );
- });
- it('hashes empty input', async () => {
- expect(await sha256Hex(new Blob([]))).toBe(
- 'e3b0c44298fc1c149afbf4c8996fb92427ae41e4649b934ca495991b7852b855'
- );
- });
-});
-
-describe('hashForSend', () => {
- it('gives no hash, and does not throw, when the blob cannot be read', async () => {
- const broken = { arrayBuffer: () => Promise.reject(new Error('gone')) } as unknown as Blob;
- expect(await hashForSend(broken)).toBeUndefined();
- });
-});
-
-describe('readLine', () => {
- it('names each reader', () => {
- const name = (s: string) => s.slice(1, s.indexOf(':'));
- expect(
- readLine(
- [
- { sender: '@void:x', ts: 1 },
- { sender: '@eureka:x', ts: 2 },
- ],
- name
- )
- ).toBe('fetched for void, eureka');
- });
-});
-
-describe('readersOf: receipts anywhere in the room, thread reply or plain event', () => {
- const HASH = 'a'.repeat(64);
- const file = { info: { sha256: HASH } };
- const receipt = (
- id: string,
- ts: number,
- sender: string,
- sha: unknown | undefined,
- fileId: string | undefined,
- relates?: object
- ): ReceiptEvent => ({
- event_id: id,
- type: 'org.gamecult.file_received',
- sender,
- origin_server_ts: ts,
- content: {
- ...(relates ? { 'm.relates_to': relates } : {}),
- 'org.gamecult.file_received': {
- event_id: fileId ?? '$f',
- sha256: sha === undefined ? HASH : sha,
- },
- },
- });
- const readers = (events: ReceiptEvent[], content: Record | undefined) =>
- readersOf(events, '$f', content, 'gamecult.org').map((r) => r.sender);
-
- it('counts a threadless receipt, as a composer file with no album root gets', () => {
- expect(readers([receipt('$1', 5, '@void:gamecult.org', undefined, undefined)], file)).toEqual([
- '@void:gamecult.org',
- ]);
- });
- it('counts a thread reply the same way', () => {
- const t = { rel_type: 'm.thread', event_id: '$root' };
- expect(readers([receipt('$1', 5, '@eureka:gamecult.org', HASH, '$f', t)], file)).toEqual([
- '@eureka:gamecult.org',
- ]);
- });
- it('refuses lookalike localparts and foreign servers', () => {
- expect(
- readers(
- [
- receipt('$1', 1, '@void2:gamecult.org', undefined, undefined),
- receipt('$2', 2, '@voidd:gamecult.org', undefined, undefined),
- receipt('$3', 3, '@Void:gamecult.org', undefined, undefined),
- receipt('$4', 4, '@void:evil.example', undefined, undefined),
- receipt('$5', 5, '@void:gamecult.org.evil.example', undefined, undefined),
- receipt('$6', 6, '@mallory:gamecult.org', undefined, undefined),
- ],
- file
- )
- ).toEqual([]);
- });
- it('shows nothing for a mismatched hash, a file with no hash, or another file', () => {
- expect(
- readers([receipt('$1', 1, '@void:gamecult.org', 'b'.repeat(64), undefined)], file)
- ).toEqual([]);
- expect(
- readers([receipt('$1', 1, '@void:gamecult.org', undefined, undefined)], { info: {} })
- ).toEqual([]);
- expect(
- readers([receipt('$1', 1, '@void:gamecult.org', undefined, undefined)], undefined)
- ).toEqual([]);
- expect(readers([receipt('$1', 1, '@void:gamecult.org', HASH, '$other')], file)).toEqual([]);
- });
- it('keeps one entry per Mind, the latest, oldest first', () => {
- expect(
- readersOf(
- [
- receipt('$1', 30, '@void:gamecult.org', undefined, undefined),
- receipt('$2', 10, '@void:gamecult.org', undefined, undefined),
- receipt('$3', 20, '@aqua:gamecult.org', undefined, undefined),
- ],
- '$f',
- file,
- 'gamecult.org'
- )
- ).toEqual([
- { sender: '@aqua:gamecult.org', ts: 20 },
- { sender: '@void:gamecult.org', ts: 30 },
- ]);
- });
- it('ignores a redacted receipt and a malformed one', () => {
- const redacted = {
- ...receipt('$1', 1, '@void:gamecult.org', undefined, undefined),
- unsigned: { redacted_because: {} },
- };
- expect(
- readers(
- [
- redacted,
- receipt('$2', 2, '@void:gamecult.org', 7, undefined),
- {
- ...receipt('$3', 3, '@void:gamecult.org', undefined, undefined),
- type: 'm.room.message',
- },
- ],
- file
- )
- ).toEqual([]);
- });
-
- describe('an m.reference to the file', () => {
- const ref = (id: string) => ({ rel_type: 'm.reference', event_id: id });
- it('counts when it names the same event as the content', () => {
- expect(
- readers([receipt('$1', 1, '@void:gamecult.org', HASH, '$f', ref('$f'))], file)
- ).toEqual(['@void:gamecult.org']);
- });
- it('counts for nothing when it names another event', () => {
- expect(
- readers([receipt('$1', 1, '@void:gamecult.org', HASH, '$f', ref('$other'))], file)
- ).toEqual([]);
- });
- it('draws one entry per Mind however many receipts exist', () => {
- expect(
- readers(
- [
- receipt('$1', 1, '@void:gamecult.org', HASH, '$f', ref('$f')),
- receipt('$2', 2, '@void:gamecult.org', HASH, '$f'),
- receipt('$3', 3, '@void:gamecult.org', HASH, '$f', ref('$f')),
- ],
- file
- )
- ).toEqual(['@void:gamecult.org']);
- });
- });
-});
diff --git a/src/app/features/albums/fileReceipt.ts b/src/app/features/albums/fileReceipt.ts
deleted file mode 100644
index 93fa73f0..00000000
--- a/src/app/features/albums/fileReceipt.ts
+++ /dev/null
@@ -1,89 +0,0 @@
-// The file-zone Mind contract (docs/file-zone-mind-contract.md): the plaintext hash a sender writes
-// into a file event, and the receipt a Mind answers with.
-
-import { MINDS } from '../../components/message/pose/poses';
-
-/** A Mind's verified receipt for one file: its sender, who the Matrix server says posted it. */
-export type FileReader = { sender: string; ts: number };
-
-/** The slice of a Matrix event a receipt is read from. Every field may be missing. */
-export type ReceiptEvent = {
- event_id?: string;
- type?: string;
- sender?: string;
- origin_server_ts?: number;
- content?: Record;
- unsigned?: Record;
-};
-
-/** Hex sha256 of the plaintext bytes, written at `content.info[FILE_HASH_KEY]` in unencrypted rooms. */
-export const FILE_HASH_KEY = 'sha256';
-
-/** A Mind's receipt: event type, and the content key holding { event_id, sha256, size }. Inert: nothing in it is fetched or trusted but the sender and the hash. */
-export const FILE_RECEIVED = 'org.gamecult.file_received';
-
-export const sha256Hex = async (data: Blob): Promise => {
- const digest = await crypto.subtle.digest('SHA-256', await data.arrayBuffer());
- return Array.from(new Uint8Array(digest), (b) => b.toString(16).padStart(2, '0')).join('');
-};
-
-/** The hash to write for a file about to be sent in an unencrypted room; none when it cannot be computed. */
-export const hashForSend = async (data: Blob): Promise => {
- try {
- return await sha256Hex(data);
- } catch {
- return undefined;
- }
-};
-
-export const readLine = (readBy: FileReader[], name: (sender: string) => string): string =>
- `fetched for ${readBy.map((r) => name(r.sender)).join(', ')}`;
-
-const receiptOf = (e: ReceiptEvent) => {
- if (!e || typeof e !== 'object' || e.type !== FILE_RECEIVED || !e.event_id) return undefined;
- if (e.unsigned?.redacted_because) return undefined;
- const body = e.content?.[FILE_RECEIVED] as { event_id?: unknown; sha256?: unknown } | undefined;
- if (typeof body?.event_id !== 'string' || typeof body.sha256 !== 'string') return undefined;
- if (typeof e.sender !== 'string') return undefined;
- // A reference to the file (Eureka's dedup, via /relations) must name the same event as the content, or the
- // receipt counts for nothing. Matching is by content.event_id; other relations (a thread) are not read.
- const rel = e.content?.['m.relates_to'] as { rel_type?: unknown; event_id?: unknown } | undefined;
- if (rel?.rel_type === 'm.reference' && rel.event_id !== body.event_id) return undefined;
- const ts = e.origin_server_ts;
- return {
- file: body.event_id,
- sender: e.sender,
- ts: typeof ts === 'number' && Number.isFinite(ts) ? ts : 0,
- sha256: body.sha256,
- };
-};
-
-// Only the event's sender counts, never a name inside the content, and only a Mind's own Matrix
-// identity on this homeserver (`@:`, a mind named in the Persona catalogue).
-const isMind = (sender: string, server: string) => MINDS.some((m) => sender === `@${m}:${server}`);
-
-/**
- * Who has read the file `fileId`, from receipts found anywhere in `events` (an album's thread replies, or the room's
- * timeline: a receipt is a thread reply when the file has an album root, otherwise a plain room event; both count).
- * "Read" means verified: the receipt's sha256 must equal the file event's `info.sha256`, so a file with no hash, or a
- * mismatch, shows nothing. One entry per Mind (its latest), oldest first.
- */
-export const readersOf = (
- events: ReceiptEvent[],
- fileId: string,
- fileContent: Record | undefined,
- server: string
-): FileReader[] => {
- const sent = (fileContent?.info as Record | undefined)?.[FILE_HASH_KEY];
- if (typeof sent !== 'string') return [];
- const latest = new Map();
- events
- .map(receiptOf)
- .filter(
- (r): r is NonNullable =>
- !!r && r.file === fileId && r.sha256 === sent && isMind(r.sender, server)
- )
- .sort((a, b) => a.ts - b.ts)
- .forEach((r) => latest.set(r.sender, { sender: r.sender, ts: r.ts }));
- return [...latest.values()].sort((a, b) => a.ts - b.ts);
-};
diff --git a/src/app/features/albums/isFileZone.test.ts b/src/app/features/albums/isFileZone.test.ts
deleted file mode 100644
index 0e55269f..00000000
--- a/src/app/features/albums/isFileZone.test.ts
+++ /dev/null
@@ -1,24 +0,0 @@
-import { describe, expect, it } from 'vitest';
-import { isFileZone } from './isFileZone';
-
-const room = { roomId: '!f:x', aliases: ['#files:x'] };
-
-describe('isFileZone', () => {
- it('is true for the file-zone create type', () => {
- expect(isFileZone({ ...room, createType: 'org.gamecult.file_zone' }, {})).toBe(true);
- });
- it('is false for other create types and for plain rooms', () => {
- expect(isFileZone({ ...room, createType: 'm.space' }, {})).toBe(false);
- expect(isFileZone({ ...room, createType: 'org.gamecult.other' }, {})).toBe(false);
- expect(isFileZone({ ...room, createType: 'org.gamecult.file_zone.x' }, {})).toBe(false);
- expect(isFileZone(room, {})).toBe(false);
- expect(isFileZone(room, { fileZoneRooms: [] })).toBe(false);
- });
- it('is true when the room id or an alias is configured', () => {
- expect(isFileZone(room, { fileZoneRooms: ['!f:x'] })).toBe(true);
- expect(isFileZone(room, { fileZoneRooms: ['#other:x', '#files:x'] })).toBe(true);
- });
- it('is false when only another room is configured', () => {
- expect(isFileZone(room, { fileZoneRooms: ['!g:x', '#g:x'] })).toBe(false);
- });
-});
diff --git a/src/app/features/albums/isFileZone.ts b/src/app/features/albums/isFileZone.ts
deleted file mode 100644
index 071ef17b..00000000
--- a/src/app/features/albums/isFileZone.ts
+++ /dev/null
@@ -1,14 +0,0 @@
-export const FILE_ZONE_TYPE = 'org.gamecult.file_zone';
-
-export type FileZoneRoom = {
- roomId: string;
- /** Canonical and alternative aliases. */
- aliases?: string[];
- /** The `type` of the room's m.room.create content. */
- createType?: string;
-};
-
-/** A room is the file zone when its create type says so or the client config lists it. */
-export const isFileZone = (room: FileZoneRoom, config: { fileZoneRooms?: string[] }): boolean =>
- room.createType === FILE_ZONE_TYPE ||
- !!config.fileZoneRooms?.some((r) => r === room.roomId || room.aliases?.includes(r));
diff --git a/src/app/features/albums/mapLimit.test.ts b/src/app/features/albums/mapLimit.test.ts
deleted file mode 100644
index 24898cb0..00000000
--- a/src/app/features/albums/mapLimit.test.ts
+++ /dev/null
@@ -1,29 +0,0 @@
-import { describe, expect, it } from 'vitest';
-import { mapLimit } from './mapLimit';
-
-describe('mapLimit', () => {
- it('keeps result order and never exceeds the limit', async () => {
- let inFlight = 0;
- let peak = 0;
- const out = await mapLimit([5, 1, 4, 2, 3, 0], 2, async (n) => {
- inFlight += 1;
- peak = Math.max(peak, inFlight);
- await new Promise((r) => {
- setTimeout(r, n);
- });
- inFlight -= 1;
- return n * 10;
- });
- expect(out).toEqual([50, 10, 40, 20, 30, 0]);
- expect(peak).toBe(2);
- });
- it('handles an empty list and rejects when a call rejects', async () => {
- expect(await mapLimit([], 3, async (n) => n)).toEqual([]);
- await expect(
- mapLimit([1, 2], 2, async (n) => {
- if (n === 2) throw new Error('boom');
- return n;
- })
- ).rejects.toThrow('boom');
- });
-});
diff --git a/src/app/features/albums/mapLimit.ts b/src/app/features/albums/mapLimit.ts
deleted file mode 100644
index e850add0..00000000
--- a/src/app/features/albums/mapLimit.ts
+++ /dev/null
@@ -1,19 +0,0 @@
-/** Like Promise.all(items.map(fn)) but with at most `limit` calls in flight; result order kept. */
-export const mapLimit = async (
- items: T[],
- limit: number,
- fn: (item: T) => Promise
-): Promise => {
- const out = new Array(items.length);
- let next = 0;
- const worker = async () => {
- while (next < items.length) {
- const i = next;
- next += 1;
- // eslint-disable-next-line no-await-in-loop
- out[i] = await fn(items[i]);
- }
- };
- await Promise.all(Array.from({ length: Math.min(limit, items.length) }, worker));
- return out;
-};
diff --git a/src/app/features/albums/publisherWire.test.ts b/src/app/features/albums/publisherWire.test.ts
deleted file mode 100644
index 83bddf3a..00000000
--- a/src/app/features/albums/publisherWire.test.ts
+++ /dev/null
@@ -1,126 +0,0 @@
-import { describe, expect, it } from 'vitest';
-import { buildAlbums, looseFiles, looseNote, looseNoteFor, TimelineEvent } from './buildAlbums';
-
-// The Commons publisher as it posted before gamecult-ops #121: loose files (no album thread), a
-// flat `org.gamecult.publish.replaces` key, no info.sha256. The sender must see that, not a
-// silently empty or silently unfolded zone.
-const MIND = '@eureka:gamecult.org';
-const file = (
- id: string,
- name: string,
- extra: Record = {},
- ts = 1
-): TimelineEvent => ({
- event_id: id,
- type: 'm.room.message',
- sender: MIND,
- origin_server_ts: ts,
- content: { msgtype: 'm.file', body: name, filename: name, url: `mxc://x/${id}`, ...extra },
-});
-const text = (id: string, body: string): TimelineEvent => ({
- event_id: id,
- type: 'm.room.message',
- sender: MIND,
- origin_server_ts: 1,
- content: { msgtype: 'm.text', body },
-});
-
-describe('loose files from a poster that does not thread', () => {
- it('are found, with the names the sender sees', () => {
- const loose = looseFiles([file('$a', 'notes.md'), file('$b', 'plan.pdf')]);
- expect(loose.map((f) => f.name)).toEqual(['notes.md', 'plan.pdf']);
- });
-
- it('are not the album roots, thread replies (by SDK root or by relation), edits or redactions', () => {
- const events: TimelineEvent[] = [
- text('$root', 'handoff/eureka'),
- { ...file('$r1', 'a.md'), threadRoot: '$root' },
- file('$r2', 'b.md', {
- 'm.relates_to': { rel_type: 'm.thread', event_id: '$root' },
- }),
- file('$edit', 'c.md', { 'm.relates_to': { rel_type: 'm.replace', event_id: '$r1' } }),
- { ...file('$gone', 'd.md'), unsigned: { redacted_because: {} } },
- file('$loose', 'e.md'),
- ];
- expect(looseFiles(events).map((f) => f.id)).toEqual(['$loose']);
- });
-
- it('a zone holding only loose files still has no albums, and the note says why', () => {
- const events = [file('$a', 'notes.md')];
- expect(buildAlbums([])).toEqual([]);
- expect(looseNote(looseFiles(events))).toBe(
- '1 file was posted outside an album and is not listed here: notes.md. It is in the Timeline.'
- );
- });
-
- it('the note names three and counts the rest', () => {
- const many = looseFiles(['a', 'b', 'c', 'd', 'e'].map((n) => file(`$${n}`, `${n}.md`)));
- expect(looseNote(many)).toBe(
- '5 files were posted outside an album and are not listed here: a.md, b.md, c.md and 2 more. They are in the Timeline.'
- );
- expect(looseNote([])).toBe('');
- });
-});
-
-describe('where the loose-files note shows', () => {
- const loose = looseFiles([file('$a', 'notes.md')]);
- const list = { open: false, encrypted: false, loading: false, error: false };
-
- it('on the album list, and only there', () => {
- expect(looseNoteFor(loose, list)).toContain('notes.md');
- expect(looseNoteFor(loose, { ...list, open: true })).toBe('');
- expect(looseNoteFor(loose, { ...list, encrypted: true })).toBe('');
- expect(looseNoteFor(loose, { ...list, loading: true })).toBe('');
- expect(looseNoteFor(loose, { ...list, error: true })).toBe('');
- });
-
- it('says nothing when there are no loose files', () => {
- expect(looseNoteFor([], list)).toBe('');
- });
-
- it('names m.notice and m.sticker posts as not files', () => {
- const notice = { ...text('$n', 'hi'), content: { msgtype: 'm.notice', body: 'hi' } };
- expect(looseFiles([notice])).toEqual([]);
- });
-
- it('a file with no name reads as unnamed', () => {
- const bare: TimelineEvent = { ...file('$b', ''), content: { msgtype: 'm.file', body: '' } };
- expect(looseNote(looseFiles([bare]))).toContain('unnamed');
- });
-});
-
-describe('the old wire shape inside an album', () => {
- const root = text('$root', 'handoff/eureka');
- const albumOf = (replies: TimelineEvent[]) => buildAlbums([{ root, replies }], 'gamecult.org')[0];
-
- it('a flat replaces key folds nothing: both versions show, none is hidden', () => {
- const album = albumOf([
- file('$v1', 'plan.md', { 'org.gamecult.publish.sha256': 'aa' }, 1),
- file('$v2', 'plan.md', { 'org.gamecult.publish.replaces': '$v1' }, 2),
- ]);
- expect(album.files.map((f) => f.id)).toEqual(['$v1', '$v2']);
- expect(album.files.every((f) => f.earlier.length === 0)).toBe(true);
- });
-
- it('the nested shape from the fixed publisher folds as before', () => {
- const album = albumOf([
- file('$v1', 'plan.md', {}, 1),
- file('$v2', 'plan.md', { 'org.gamecult.publish': { replaces: '$v1' } }, 2),
- ]);
- expect(album.files.map((f) => f.id)).toEqual(['$v2']);
- expect(album.files[0].earlier.map((f) => f.id)).toEqual(['$v1']);
- });
-
- it('a file with no info.sha256 lists fine, with no readers even when a receipt names it', () => {
- const receipt: TimelineEvent = {
- event_id: '$rc',
- type: 'org.gamecult.file_received',
- sender: '@void:gamecult.org',
- origin_server_ts: 5,
- content: { 'org.gamecult.file_received': { event_id: '$v1', sha256: 'aa', size: 1 } },
- };
- const album = albumOf([file('$v1', 'plan.md'), receipt]);
- expect(album.count).toBe(1);
- expect(album.files[0].readBy).toEqual([]);
- });
-});
diff --git a/src/app/features/albums/readPages.test.ts b/src/app/features/albums/readPages.test.ts
deleted file mode 100644
index 124a32a6..00000000
--- a/src/app/features/albums/readPages.test.ts
+++ /dev/null
@@ -1,55 +0,0 @@
-import { describe, expect, it } from 'vitest';
-import { Page, readPages } from './readPages';
-
-const pager = (pages: Page[]) => {
- const froms: (string | undefined)[] = [];
- return {
- froms,
- fetchPage: async (from: string | undefined) => {
- froms.push(from);
- return pages[froms.length - 1] ?? {};
- },
- };
-};
-
-describe('readPages', () => {
- it('one page without a token is the whole read', async () => {
- const p = pager([{ chunk: [1, 2] }]);
- expect(await readPages(p.fetchPage)).toEqual({ items: [1, 2], truncated: false });
- expect(p.froms).toEqual([undefined]);
- });
-
- it('follows next_batch in order, passing each token back', async () => {
- const p = pager([
- { chunk: [1], next_batch: 'a' },
- { chunk: [2], next_batch: 'b' },
- { chunk: [3] },
- ]);
- expect(await readPages(p.fetchPage)).toEqual({ items: [1, 2, 3], truncated: false });
- expect(p.froms).toEqual([undefined, 'a', 'b']);
- });
-
- it('a missing chunk reads as empty', async () => {
- expect(await readPages(async () => ({}))).toEqual({ items: [], truncated: false });
- });
-
- it('an empty page ends the read even when it carries a token', async () => {
- const p = pager([
- { chunk: [1], next_batch: 'a' },
- { chunk: [], next_batch: 'b' },
- ]);
- expect(await readPages(p.fetchPage)).toEqual({ items: [1], truncated: false });
- expect(p.froms).toHaveLength(2);
- });
-
- it('the cap stops the read and says it was cut short', async () => {
- const p = pager(Array.from({ length: 10 }, (_, i) => ({ chunk: [i], next_batch: `t${i}` })));
- expect(await readPages(p.fetchPage, 3)).toEqual({ items: [0, 1, 2], truncated: true });
- expect(p.froms).toHaveLength(3);
- });
-
- it('a last page exactly at the cap is not truncated', async () => {
- const p = pager([{ chunk: [1], next_batch: 'a' }, { chunk: [2] }]);
- expect((await readPages(p.fetchPage, 2)).truncated).toBe(false);
- });
-});
diff --git a/src/app/features/albums/readPages.ts b/src/app/features/albums/readPages.ts
deleted file mode 100644
index a2b888e5..00000000
--- a/src/app/features/albums/readPages.ts
+++ /dev/null
@@ -1,27 +0,0 @@
-/** One page of a Matrix paginated endpoint: its events and the token for the next page, if any. */
-export type Page = { chunk?: T[]; next_batch?: string };
-
-/** Pages read per endpoint at most, so a runaway zone cannot hold the phone in a loop. */
-export const MAX_PAGES = 20;
-
-/**
- * Reads every page of an endpoint by following `next_batch`, up to `maxPages`. `truncated` is true
- * when the cap stopped the read with more still to come, so a caller can say the list is partial.
- */
-export const readPages = async (
- fetchPage: (from: string | undefined) => Promise>,
- maxPages = MAX_PAGES
-): Promise<{ items: T[]; truncated: boolean }> => {
- const items: T[] = [];
- let from: string | undefined;
- for (let n = 0; n < maxPages; n += 1) {
- // eslint-disable-next-line no-await-in-loop
- const page = await fetchPage(from);
- items.push(...(page.chunk ?? []));
- // An empty page ends the read even if a token is returned: a server that keeps handing out
- // tokens with nothing behind them would otherwise spend every page of the cap.
- if (!page.next_batch || !page.chunk?.length) return { items, truncated: false };
- from = page.next_batch;
- }
- return { items, truncated: true };
-};
diff --git a/src/app/features/albums/receiptStore.test.ts b/src/app/features/albums/receiptStore.test.ts
deleted file mode 100644
index c97202e5..00000000
--- a/src/app/features/albums/receiptStore.test.ts
+++ /dev/null
@@ -1,116 +0,0 @@
-import { EventEmitter } from 'events';
-import { describe, expect, it, vi } from 'vitest';
-import { MatrixEvent, Room, RoomEvent } from 'matrix-js-sdk';
-import { receiptStoreOf } from './receiptStore';
-import { readersOf } from './fileReceipt';
-
-const HASH = 'a'.repeat(64);
-
-type Fake = {
- id: string;
- type: string;
- sender: string;
- ts: number;
- content: object;
- redacted?: boolean;
-};
-const event = (f: Fake) =>
- ({
- getId: () => f.id,
- getType: () => f.type,
- getSender: () => f.sender,
- getTs: () => f.ts,
- getContent: () => f.content,
- isRedacted: () => !!f.redacted,
- } as unknown as MatrixEvent);
-const receipt = (id: string, sender: string, fileId = '$f', over: Partial = {}): Fake => ({
- id,
- type: 'org.gamecult.file_received',
- sender,
- ts: 1,
- content: { 'org.gamecult.file_received': { event_id: fileId, sha256: HASH } },
- ...over,
-});
-
-const fakeRoom = (initial: Fake[] = []) => {
- const emitter = new EventEmitter();
- emitter.setMaxListeners(0);
- let events = initial;
- const room = Object.assign(emitter, {
- getUnfilteredTimelineSet: () => ({
- getLiveTimeline: () => ({ getEvents: () => events.map(event) }),
- }),
- }) as unknown as Room;
- return {
- room,
- emitter,
- set: (next: Fake[]) => {
- events = next;
- },
- };
-};
-const listeners = (e: EventEmitter) =>
- [RoomEvent.Timeline, RoomEvent.Redaction, RoomEvent.TimelineReset].map((n) => e.listenerCount(n));
-
-describe('receiptStoreOf: one subscription per room', () => {
- it('registers one listener per event for 200 file rows, and none once they are gone', () => {
- const { room, emitter } = fakeRoom();
- const store = receiptStoreOf(room);
- const off = Array.from({ length: 200 }, () => store.subscribe(() => undefined));
- expect(listeners(emitter)).toEqual([1, 1, 1]);
- off.forEach((o) => o());
- expect(listeners(emitter)).toEqual([0, 0, 0]);
- });
-
- it('is one store per room', () => {
- const a = fakeRoom();
- const b = fakeRoom();
- expect(receiptStoreOf(a.room)).toBe(receiptStoreOf(a.room));
- expect(receiptStoreOf(a.room)).not.toBe(receiptStoreOf(b.room));
- });
-
- it('notifies rows when a receipt arrives, not for unrelated timeline events, and gives readersOf what it needs', () => {
- const { room, emitter, set } = fakeRoom();
- const store = receiptStoreOf(room);
- const cb = vi.fn();
- store.subscribe(cb);
- expect(store.getSnapshot()).toEqual([]);
- set([{ id: '$m', type: 'm.room.message', sender: '@x:gamecult.org', ts: 1, content: {} }]);
- emitter.emit(RoomEvent.Timeline);
- expect(cb).not.toHaveBeenCalled();
- set([receipt('$r', '@void:gamecult.org')]);
- emitter.emit(RoomEvent.Timeline);
- expect(cb).toHaveBeenCalledTimes(1);
- const snap = store.getSnapshot();
- expect(
- readersOf(snap, '$f', { info: { sha256: HASH } }, 'gamecult.org').map((r) => r.sender)
- ).toEqual(['@void:gamecult.org']);
- emitter.emit(RoomEvent.Timeline);
- expect(store.getSnapshot()).toBe(snap);
- });
-
- it('rescans on a redaction and on a timeline reset', () => {
- const { room, emitter, set } = fakeRoom([receipt('$r', '@void:gamecult.org')]);
- const store = receiptStoreOf(room);
- const cb = vi.fn();
- store.subscribe(cb);
- expect(store.getSnapshot()).toHaveLength(1);
- set([receipt('$r', '@void:gamecult.org', '$f', { redacted: true })]);
- emitter.emit(RoomEvent.Redaction);
- expect(cb).toHaveBeenCalledTimes(1);
- expect(
- readersOf(store.getSnapshot(), '$f', { info: { sha256: HASH } }, 'gamecult.org')
- ).toEqual([]);
- set([]);
- emitter.emit(RoomEvent.TimelineReset);
- expect(cb).toHaveBeenCalledTimes(2);
- expect(store.getSnapshot()).toEqual([]);
- });
-
- it('picks up what is already loaded when the first row subscribes', () => {
- const { room } = fakeRoom([receipt('$r', '@aqua:gamecult.org')]);
- const store = receiptStoreOf(room);
- store.subscribe(() => undefined);
- expect(store.getSnapshot()).toHaveLength(1);
- });
-});
diff --git a/src/app/features/albums/receiptStore.ts b/src/app/features/albums/receiptStore.ts
deleted file mode 100644
index 1f69aba9..00000000
--- a/src/app/features/albums/receiptStore.ts
+++ /dev/null
@@ -1,79 +0,0 @@
-import type { MatrixEvent, Room } from 'matrix-js-sdk';
-import { RoomEvent } from 'matrix-js-sdk';
-import { FILE_RECEIVED, ReceiptEvent } from './fileReceipt';
-
-/**
- * One subscription per room to the file receipts in its loaded timeline, shared by every file row: a row costs a
- * callback in a Set, not a Room listener (matrix-js-sdk warns past 100 listeners). The snapshot is the receipt events
- * themselves; each row derives its own readers from it with `readersOf`, so the rules (sender, hash, reference, one per
- * Mind) live in one place and the store holds no verdicts. The snapshot changes identity only when the set of receipts
- * or one's redaction state does, so rows re-render for a receipt, not for every timeline event.
- */
-export type ReceiptStore = {
- subscribe: (onChange: () => void) => () => void;
- getSnapshot: () => ReceiptEvent[];
-};
-
-const asReceiptEvent = (e: MatrixEvent): ReceiptEvent => ({
- event_id: e.getId(),
- type: e.getType(),
- sender: e.getSender(),
- origin_server_ts: e.getTs(),
- content: e.getContent(),
- unsigned: e.isRedacted() ? { redacted_because: true } : undefined,
-});
-
-const same = (a: ReceiptEvent[], b: ReceiptEvent[]): boolean =>
- a.length === b.length &&
- a.every(
- (r, i) =>
- r.event_id === b[i].event_id &&
- !r.unsigned?.redacted_because === !b[i].unsigned?.redacted_because
- );
-
-// A redaction removes a tick and a reset drops the window: both rescan, not only a new event.
-const EVENTS = [RoomEvent.Timeline, RoomEvent.Redaction, RoomEvent.TimelineReset] as const;
-
-const make = (room: Room): ReceiptStore => {
- const subscribers = new Set<() => void>();
- let snapshot: ReceiptEvent[] = [];
- const read = (): boolean => {
- const next = room
- .getUnfilteredTimelineSet()
- .getLiveTimeline()
- .getEvents()
- .filter((e) => e.getType() === FILE_RECEIVED)
- .map(asReceiptEvent);
- if (same(snapshot, next)) return false;
- snapshot = next;
- return true;
- };
- const scan = () => {
- if (read()) subscribers.forEach((cb) => cb());
- };
- return {
- subscribe: (onChange) => {
- subscribers.add(onChange);
- if (subscribers.size === 1) {
- EVENTS.forEach((ev) => room.on(ev, scan));
- read(); // the first row sees what is already loaded; it reads the snapshot after subscribing
- }
- return () => {
- subscribers.delete(onChange);
- if (subscribers.size === 0) EVENTS.forEach((ev) => room.off(ev, scan));
- };
- },
- getSnapshot: () => snapshot,
- };
-};
-
-const stores = new WeakMap();
-
-export const receiptStoreOf = (room: Room): ReceiptStore => {
- let store = stores.get(room);
- if (!store) {
- store = make(room);
- stores.set(room, store);
- }
- return store;
-};
diff --git a/src/app/features/albums/shareController.test.ts b/src/app/features/albums/shareController.test.ts
deleted file mode 100644
index b163b736..00000000
--- a/src/app/features/albums/shareController.test.ts
+++ /dev/null
@@ -1,380 +0,0 @@
-import { describe, expect, it } from 'vitest';
-import { Picked, ShareDeps, createShareController } from './shareController';
-import { ShareResult } from './shareSet';
-
-const file = (name: string, size?: number): Picked => ({ name, type: 'audio/ogg', size });
-const MB = 1024 * 1024;
-const ok = (n: number): ShareResult => ({ albumId: '$r', sent: n, failed: [], failedAt: [] });
-
-/** A run the test settles by hand, so "in flight" is a state the test can stand in. */
-const hand = () => {
- const calls: { files: Picked[]; title: string; onFile: () => void; signal: AbortSignal }[] = [];
- let release: (r: ShareResult) => void = () => undefined;
- let fail: (e: Error) => void = () => undefined;
- const run: ShareDeps['run'] = (files, title, onFile, signal) => {
- calls.push({ files, title, onFile, signal });
- return new Promise((resolve, reject) => {
- release = resolve;
- fail = reject;
- });
- };
- return { calls, run, release: (r: ShareResult) => release(r), fail: (e: Error) => fail(e) };
-};
-
-const make = (over: Partial> = {}, roomId = '!zone:x') => {
- const h = hand();
- const sentTo: string[] = [];
- const c = createShareController({
- roomId,
- isEncrypted: () => false,
- run: h.run,
- onSent: () => sentTo.push(roomId),
- ...over,
- });
- return { c, h, sentTo };
-};
-
-describe('picking', () => {
- it('starts idle with nothing picked, and a pick holds the files in order', () => {
- const { c } = make();
- expect(c.getState().files).toEqual([]);
- expect(c.getState().phase).toEqual({ kind: 'idle' });
- c.pick([file('a'), file('b')]);
- expect(c.getState().files.map((f) => f.name)).toEqual(['a', 'b']);
- });
-
- it('Cancel empties the pick and the title and bumps the input epoch', () => {
- const { c } = make();
- c.pick([file('a')]);
- c.setTitle('Take 4');
- const before = c.getState().epoch;
- c.cancel();
- expect(c.getState()).toMatchObject({ files: [], title: '', epoch: before + 1 });
- });
-
- it('subscribers hear every change and stop hearing after unsubscribe', () => {
- const { c } = make();
- let heard = 0;
- const off = c.subscribe(() => {
- heard += 1;
- });
- c.pick([file('a')]);
- off();
- c.pick([]);
- expect(heard).toBe(1);
- });
-});
-
-describe('the Send guard', () => {
- it('a double tap starts one send', async () => {
- const { c, h } = make();
- c.pick([file('a'), file('b')]);
- const first = c.send();
- const second = c.send();
- expect(h.calls).toHaveLength(1);
- h.release(ok(2));
- await Promise.all([first, second]);
- expect(h.calls).toHaveLength(1);
- });
-
- it('a re-mounted panel for the same room cannot start a second send while one is in flight', async () => {
- const { c, h } = make();
- c.pick([file('a')]);
- const first = c.send();
- // The page was left and returned to: a new controller, nothing picked in it but a new pick.
- const again = make({}, '!zone:x');
- again.c.pick([file('b')]);
- await again.c.send();
- expect(again.h.calls).toHaveLength(0);
- h.release(ok(1));
- await first;
- // Once the first has settled the room is free again.
- const next = again.c.send();
- expect(again.h.calls).toHaveLength(1);
- again.h.release(ok(1));
- await next;
- });
-
- it('another room is not blocked by a send in flight', async () => {
- const a = make({}, '!a:x');
- const b = make({}, '!b:x');
- a.c.pick([file('a')]);
- b.c.pick([file('b')]);
- const sendA = a.c.send();
- const sendB = b.c.send();
- expect(b.h.calls).toHaveLength(1);
- a.h.release(ok(1));
- b.h.release(ok(1));
- await Promise.all([sendA, sendB]);
- });
-
- it('sends nothing when nothing is picked', async () => {
- const { c, h } = make();
- await c.send();
- expect(h.calls).toHaveLength(0);
- });
-
- it('a send that throws frees the room and says so', async () => {
- const { c, h } = make();
- c.pick([file('a')]);
- const p = c.send();
- h.fail(new Error('M_FORBIDDEN'));
- await p;
- expect(c.getState().phase).toEqual({ kind: 'done', text: 'Could not share: M_FORBIDDEN' });
- expect(c.getState().files).toHaveLength(1);
- const retry = c.send();
- expect(h.calls).toHaveLength(2);
- h.release(ok(1));
- await retry;
- });
-});
-
-describe('progress and results', () => {
- it('counts files as they settle, passing the title through', async () => {
- const { c, h } = make();
- c.pick([file('a'), file('b')]);
- c.setTitle('Take 4');
- const p = c.send();
- expect(c.getState().phase).toEqual({ kind: 'sending', done: 0 });
- expect(h.calls[0].title).toBe('Take 4');
- h.calls[0].onFile();
- expect(c.getState().phase).toEqual({ kind: 'sending', done: 1 });
- h.release(ok(2));
- await p;
- expect(c.getState().phase).toEqual({ kind: 'done', text: 'Shared 2 files.' });
- });
-
- it('full success clears the pick, tells the room list, and remounts the input', async () => {
- const { c, h, sentTo } = make();
- c.pick([file('a')]);
- const { epoch } = c.getState();
- const p = c.send();
- h.release(ok(1));
- await p;
- expect(c.getState()).toMatchObject({ files: [], title: '', epoch: epoch + 1 });
- expect(sentTo).toEqual(['!zone:x']);
- });
-
- it('failed files stay picked by position, so a same-named twin that went is not re-sent', async () => {
- const { c, h } = make();
- const twins = [file('a.ogg'), file('a.ogg'), file('b.ogg')];
- c.pick(twins);
- const p = c.send();
- h.release({ albumId: '$r', sent: 2, failed: ['a.ogg'], failedAt: [1] });
- await p;
- expect(c.getState().files).toEqual([twins[1]]);
- expect(c.getState().phase).toEqual({ kind: 'done', text: 'Shared 2. Not sent: a.ogg' });
- });
-
- it('when every upload failed everything stays picked and the note says nothing was shared', async () => {
- const { c, h } = make();
- const picked = [file('a'), file('b')];
- c.pick(picked);
- const p = c.send();
- h.release({ albumId: '$r', sent: 0, failed: ['a', 'b'], failedAt: [0, 1] });
- await p;
- expect(c.getState().files).toEqual(picked);
- expect(c.getState().phase).toEqual({
- kind: 'done',
- text: 'Nothing was shared. Not sent: a, b',
- });
- });
-
- it('a new pick after a result drops the result note', async () => {
- const { c, h } = make();
- c.pick([file('a')]);
- const p = c.send();
- h.release(ok(1));
- await p;
- c.pick([file('b')]);
- expect(c.getState().phase).toEqual({ kind: 'idle' });
- });
-});
-
-describe('what a send leaves behind', () => {
- it('keeps the title when some files failed, so the retry has the same name', async () => {
- const { c, h } = make();
- c.pick([file('a'), file('b')]);
- c.setTitle('Take 4');
- const p = c.send();
- h.release({ albumId: '$r', sent: 1, failed: ['b'], failedAt: [1] });
- await p;
- expect(c.getState().title).toBe('Take 4');
- });
-
- it('tells the room list only after the send settled, and not when it threw', async () => {
- const { c, h, sentTo } = make();
- c.pick([file('a')]);
- const p = c.send();
- expect(sentTo).toEqual([]);
- h.release(ok(1));
- await p;
- expect(sentTo).toEqual(['!zone:x']);
-
- const bad = make();
- bad.c.pick([file('a')]);
- const q = bad.c.send();
- bad.h.fail(new Error('boom'));
- await q;
- expect(bad.sentTo).toEqual([]);
- });
-
- it('a success lands in one notification: the pick is never empty while still sending', async () => {
- const { c, h } = make();
- c.pick([file('a')]);
- const p = c.send();
- const seen: string[] = [];
- c.subscribe(() => {
- const st = c.getState();
- seen.push(`${st.files.length}:${st.phase.kind}`);
- });
- h.release(ok(1));
- await p;
- expect(seen).toEqual(['0:done']);
- });
-});
-
-describe('an encrypted room', () => {
- it('says so, sends nothing and keeps the pick', async () => {
- const { c, h } = make({ isEncrypted: () => true });
- c.pick([file('a')]);
- await c.send();
- expect(c.getState().phase).toEqual({
- kind: 'done',
- text: 'Not shared: this room is encrypted.',
- });
- expect(c.getState().files).toHaveLength(1);
- expect(h.calls).toHaveLength(0);
- });
-
- it('is checked at Send, not at mount: a room that turns encrypted after the pick is refused', async () => {
- let encrypted = false;
- const { c, h } = make({ isEncrypted: () => encrypted });
- c.pick([file('a')]);
- encrypted = true;
- await c.send();
- expect(h.calls).toHaveLength(0);
- expect(c.getState().phase).toMatchObject({
- kind: 'done',
- text: 'Not shared: this room is encrypted.',
- });
- });
-});
-
-describe('Stop', () => {
- it('aborts the signal of the send in flight, and only that send', async () => {
- const { c, h } = make();
- c.pick([file('a'), file('b')]);
- c.stop(); // nothing running: nothing to abort
- const sending = c.send();
- expect(h.calls[0].signal.aborted).toBe(false);
- c.stop();
- expect(h.calls[0].signal.aborted).toBe(true);
- h.release({ albumId: '$r', sent: 0, failed: ['a', 'b'], failedAt: [0, 1] });
- await sending;
- expect(c.getState().files.map((f) => f.name)).toEqual(['a', 'b']);
- // the next send gets a fresh signal
- const again = c.send();
- expect(h.calls[1].signal.aborted).toBe(false);
- h.release(ok(2));
- await again;
- });
-});
-
-describe('files over the homeserver cap', () => {
- const cap = 50 * MB;
- const capped = () => make({ maxBytes: () => cap });
-
- it('are named in the note and never sent; the rest go', async () => {
- const { c, h } = capped();
- c.pick([file('small.ogg', 3 * MB), file('film.mp4', 80 * MB), file('also.ogg', 1)]);
- const sent = c.send();
- expect(h.calls[0].files.map((f) => f.name)).toEqual(['small.ogg', 'also.ogg']);
- expect(c.getState().files.map((f) => f.name)).toEqual(['small.ogg', 'also.ogg']);
- h.release(ok(2));
- await sent;
- expect(c.getState().phase).toEqual({
- kind: 'done',
- text: 'Shared 2 files. Too large for this server (limit 50 MB): film.mp4',
- });
- expect(c.getState().files).toEqual([]);
- });
-
- it('are not kept for a retry that cannot help them, while a failed small file is', async () => {
- const { c, h } = capped();
- c.pick([file('a.ogg', 1), file('big.wav', 60 * MB)]);
- const sent = c.send();
- h.release({ albumId: '$r', sent: 0, failed: ['a.ogg'], failedAt: [0] });
- await sent;
- expect(c.getState().files.map((f) => f.name)).toEqual(['a.ogg']);
- });
-
- it('a pick that is all over the cap sends nothing: no run, so no album root, and the pick clears', async () => {
- const { c, h, sentTo } = capped();
- c.pick([file('a.mp4', 51 * MB), file('b.mp4', 99 * MB)]);
- const { epoch } = c.getState();
- await c.send();
- expect(h.calls).toHaveLength(0);
- expect(sentTo).toEqual([]);
- expect(c.getState()).toMatchObject({ files: [], epoch: epoch + 1 });
- expect(c.getState().phase).toEqual({
- kind: 'done',
- text: 'Nothing was shared. Too large for this server (limit 50 MB): a.mp4, b.mp4',
- });
- });
-
- it('a file of exactly the cap goes: the server refuses only what is larger', async () => {
- const { c, h } = capped();
- c.pick([file('edge.bin', cap)]);
- const sent = c.send();
- expect(h.calls[0].files).toHaveLength(1);
- h.release(ok(1));
- await sent;
- });
-
- it('the room is not held busy by an all-refused pick, so the next pick sends', async () => {
- const { c, h } = capped();
- c.pick([file('a.mp4', 99 * MB)]);
- await c.send();
- c.pick([file('b.ogg', 1)]);
- const sent = c.send();
- expect(h.calls).toHaveLength(1);
- h.release(ok(1));
- await sent;
- });
-
- it('a server that states no cap, or a file with no size, refuses nothing', async () => {
- const none = make();
- none.c.pick([file('a', 10 ** 12)]);
- const s1 = none.c.send();
- expect(none.h.calls[0].files).toHaveLength(1);
- none.h.release(ok(1));
- await s1;
- const unsized = make({ maxBytes: () => cap }, '!other:x');
- unsized.c.pick([file('b')]);
- const s2 = unsized.c.send();
- expect(unsized.h.calls[0].files).toHaveLength(1);
- unsized.h.release(ok(1));
- await s2;
- });
-
- it('a fractional cap reads with one decimal', async () => {
- const { c } = make({ maxBytes: () => 1.5 * MB });
- c.pick([file('a', 2 * MB)]);
- await c.send();
- expect(c.getState().phase).toMatchObject({ text: expect.stringContaining('limit 1.5 MB') });
- });
-
- it('a run that throws still names the refused files, which are not kept', async () => {
- const { c, h } = capped();
- c.pick([file('a.ogg', 1), file('big.wav', 60 * MB)]);
- const sent = c.send();
- h.fail(new Error('network down'));
- await sent;
- expect(c.getState().phase).toEqual({
- kind: 'done',
- text: 'Could not share: network down. Too large for this server (limit 50 MB): big.wav',
- });
- expect(c.getState().files.map((f) => f.name)).toEqual(['a.ogg']);
- });
-});
diff --git a/src/app/features/albums/shareController.ts b/src/app/features/albums/shareController.ts
deleted file mode 100644
index 72f786c9..00000000
--- a/src/app/features/albums/shareController.ts
+++ /dev/null
@@ -1,135 +0,0 @@
-// The share panel's state machine, apart from React and Matrix: what is picked, what phase the
-// send is in, and the rules that keep a room to one send at a time. ShareSet.tsx draws it.
-import { ShareResult, remainingAfter, resultNote } from './shareSet';
-
-export type Picked = { name: string; type: string; size?: number };
-
-export type SharePhase =
- | { kind: 'idle' }
- | { kind: 'sending'; done: number }
- | { kind: 'done'; text: string };
-
-export type ShareState = {
- files: F[];
- title: string;
- phase: SharePhase;
- /** Bumps whenever the pick is emptied, so the file input can be remounted and re-pick the same files. */
- epoch: number;
-};
-
-export const ENCRYPTED_NOTE = 'Not shared: this room is encrypted.';
-
-const MIB = 1024 * 1024;
-
-/**
- * Files the homeserver would refuse for size (its `m.upload.size`, which Synapse enforces as a
- * limit, so a file of exactly that size goes), split from the rest before anything is sent. A
- * missing cap or size refuses nothing.
- */
-export const splitBySize = (files: F[], cap: number | undefined) => {
- const over = (f: F) => cap !== undefined && f.size !== undefined && f.size > cap;
- return { sendable: files.filter((f) => !over(f)), tooLarge: files.filter(over) };
-};
-
-const tooLargeNote = (names: string[], cap: number): string =>
- `Too large for this server (limit ${Math.round((cap / MIB) * 10) / 10} MB): ${names.join(', ')}`;
-
-export type ShareDeps = {
- roomId: string;
- isEncrypted: () => boolean;
- /** Sends the files as one album; reports each settled file through onFile. */
- run: (files: F[], title: string, onFile: () => void, signal: AbortSignal) => Promise;
- /** The homeserver's upload cap in bytes (`m.upload.size`), when it states one. */
- maxBytes?: () => number | undefined;
- /** Called after a send that reached the room, whatever it left unsent. */
- onSent?: () => void;
-};
-
-/** Rooms with a share in flight. Module-level: leaving the page unmounts the panel, not the send. */
-const sending = new Set();
-
-export const createShareController = (deps: ShareDeps) => {
- let state: ShareState = { files: [], title: '', phase: { kind: 'idle' }, epoch: 0 };
- const listeners = new Set<() => void>();
- let running: AbortController | undefined;
- const set = (patch: Partial>) => {
- state = { ...state, ...patch };
- listeners.forEach((l) => l());
- };
-
- const clear = () => set({ files: [], title: '', epoch: state.epoch + 1 });
-
- const send = async () => {
- if (sending.has(deps.roomId) || state.files.length === 0) return;
- if (deps.isEncrypted()) {
- set({ phase: { kind: 'done', text: ENCRYPTED_NOTE } });
- return;
- }
- // Files over the cap are named and dropped from the pick before any upload or album root: a
- // retry cannot help them, and a root with nothing under it is a lone message nobody lists.
- const cap = deps.maxBytes?.();
- const { sendable, tooLarge } = splitBySize(state.files, cap);
- const sizeNote = tooLarge.length
- ? tooLargeNote(
- tooLarge.map((f) => f.name),
- cap as number
- )
- : '';
- if (sendable.length === 0) {
- const phase: SharePhase = { kind: 'done', text: `Nothing was shared. ${sizeNote}` };
- set({ files: [], title: '', epoch: state.epoch + 1, phase });
- return;
- }
- sending.add(deps.roomId);
- const abort = new AbortController();
- running = abort;
- const { title } = state;
- const files = sendable;
- set({ files, phase: { kind: 'sending', done: 0 } });
- let settled = 0;
- try {
- const res = await deps.run(
- files,
- title,
- () => {
- settled += 1;
- set({ phase: { kind: 'sending', done: settled } });
- },
- abort.signal
- );
- deps.onSent?.();
- const left = remainingAfter(files, res);
- const phase: SharePhase = {
- kind: 'done',
- text: sizeNote ? `${resultNote(res)} ${sizeNote}` : resultNote(res),
- };
- // One notification: no state is ever drawn with the pick emptied and the send still running.
- if (left.length === 0) set({ files: [], title: '', epoch: state.epoch + 1, phase });
- else set({ files: left, phase });
- } catch (e: any) {
- const failure = `Could not share: ${e?.message ?? 'send failed'}`;
- set({ phase: { kind: 'done', text: sizeNote ? `${failure}. ${sizeNote}` : failure } });
- } finally {
- running = undefined;
- sending.delete(deps.roomId);
- }
- };
-
- return {
- getState: () => state,
- subscribe: (l: () => void) => {
- listeners.add(l);
- return () => {
- listeners.delete(l);
- };
- },
- pick: (files: F[]) => set({ files, phase: { kind: 'idle' } }),
- setTitle: (title: string) => set({ title }),
- cancel: clear,
- /** Stops a send in flight: the running upload is aborted and the rest are left picked. */
- stop: () => running?.abort(),
- send,
- };
-};
-
-export type ShareController = ReturnType>;
diff --git a/src/app/features/albums/shareSet.test.ts b/src/app/features/albums/shareSet.test.ts
deleted file mode 100644
index 8fc4a8b8..00000000
--- a/src/app/features/albums/shareSet.test.ts
+++ /dev/null
@@ -1,328 +0,0 @@
-import { describe, expect, it } from 'vitest';
-import config from '../../../../config.json';
-import { ZoneEvent, buildAlbums } from './buildAlbums';
-import {
- DEFAULT_TITLE,
- ShareFile,
- SharePort,
- CANCELLED,
- freshest,
- refusalOf,
- remainingAfter,
- resultNote,
- sendShareSet,
- threadRelation,
-} from './shareSet';
-
-const kindOf = (f: ShareFile) => (f.mimeType.startsWith('audio') ? 'm.audio' : 'm.file');
-
-/** A fake room: records what is sent, as the events Synapse would return from /relations. */
-const room = (failOn: string[] = []) => {
- const events: ZoneEvent[] = [];
- const port: SharePort = {
- send: async (content) => {
- const id = `$e${events.length + 1}`;
- events.push({
- event_id: id,
- type: 'm.room.message',
- sender: '@aqua:chat.gamecult.org',
- origin_server_ts: 1000 + events.length,
- content,
- });
- return id;
- },
- contentOf: async (f) => {
- if (failOn.includes(f.name)) throw new Error('upload failed');
- return {
- msgtype: kindOf(f),
- body: f.name,
- filename: f.name,
- url: `mxc://x/${f.name}`,
- info: { mimetype: f.mimeType },
- };
- },
- };
- const album = () => {
- const [root, ...replies] = events;
- return buildAlbums([{ root, replies }], 'chat.gamecult.org')[0];
- };
- return { events, port, album };
-};
-
-const clips: ShareFile[] = [
- { name: 'a.ogg', mimeType: 'audio/ogg' },
- { name: 'b.ogg', mimeType: 'audio/ogg' },
- { name: 'c.txt', mimeType: 'text/plain' },
-];
-
-describe('sendShareSet', () => {
- it('reads back as one album of the files in pick order', async () => {
- const r = room();
- const res = await sendShareSet(r.port, 'Take 4', clips);
- expect(res).toEqual({ albumId: '$e1', sent: 3, failed: [], failedAt: [], reasons: [] });
- const album = r.album();
- expect(album.title).toBe('Take 4');
- expect(album.files.map((f) => [f.name, f.kind])).toEqual([
- ['a.ogg', 'audio'],
- ['b.ogg', 'audio'],
- ['c.txt', 'file'],
- ]);
- });
-
- it('threads every file under the root, each falling back to the previous event', async () => {
- const r = room();
- await sendShareSet(r.port, 't', clips);
- const rels = r.events.slice(1).map((e) => e.content?.['m.relates_to']);
- expect(rels).toEqual([
- threadRelation('$e1', '$e1'),
- threadRelation('$e1', '$e2'),
- threadRelation('$e1', '$e3'),
- ]);
- expect(r.events[0].content?.['m.relates_to']).toBeUndefined();
- });
-
- it('titles an untitled share', async () => {
- const r = room();
- await sendShareSet(r.port, ' ', clips.slice(0, 1));
- expect(r.album().title).toBe(DEFAULT_TITLE);
- });
-
- it('names a failed file and still sends the rest', async () => {
- const r = room(['b.ogg']);
- const res = await sendShareSet(r.port, 't', clips);
- expect(res.failed).toEqual(['b.ogg']);
- expect(res.sent).toBe(2);
- expect(r.album().files.map((f) => f.name)).toEqual(['a.ogg', 'c.txt']);
- // the next file falls back to the last event that exists, not to the failed one
- expect(r.events[2].content?.['m.relates_to']).toEqual(threadRelation('$e1', '$e2'));
- });
-
- it('throws when the root cannot be sent, uploading nothing', async () => {
- let uploads = 0;
- const port: SharePort = {
- send: async () => {
- throw new Error('M_FORBIDDEN');
- },
- contentOf: async () => {
- uploads += 1;
- return {};
- },
- };
- await expect(sendShareSet(port, 't', clips)).rejects.toThrow('M_FORBIDDEN');
- expect(uploads).toBe(0);
- });
-});
-
-describe('the share flag', () => {
- it('ships off', () => {
- expect(config.fileZoneShare).toEqual({ enabled: false });
- });
-});
-
-describe('after a send', () => {
- it('keeps the failed one of two same-named files, not both', async () => {
- const twins: ShareFile[] = [
- { name: 'a.ogg', mimeType: 'audio/ogg' },
- { name: 'a.ogg', mimeType: 'audio/ogg' },
- ];
- let n = 0;
- const r = room();
- const port: SharePort = {
- ...r.port,
- contentOf: async (f) => {
- n += 1;
- if (n === 2) throw new Error('second upload failed');
- return r.port.contentOf(f);
- },
- };
- const res = await sendShareSet(port, 't', twins);
- expect(res.failedAt).toEqual([1]);
- expect(remainingAfter(twins, res)).toEqual([twins[1]]);
- });
-
- it('keeps only the failed files picked, so a retry is one tap', async () => {
- const r = room(['b.ogg']);
- const res = await sendShareSet(r.port, 't', clips);
- expect(remainingAfter(clips, res).map((f) => f.name)).toEqual(['b.ogg']);
- expect(resultNote(res)).toBe('Shared 2. Not sent: b.ogg');
- });
-
- it('keeps everything and says nothing was shared when every upload failed', async () => {
- const r = room(clips.map((c) => c.name));
- const res = await sendShareSet(r.port, 't', clips);
- expect(remainingAfter(clips, res)).toEqual(clips);
- expect(resultNote(res)).toBe('Nothing was shared. Not sent: a.ogg, b.ogg, c.txt');
- });
-
- it('clears the pick on full success', async () => {
- const r = room();
- const res = await sendShareSet(r.port, 't', clips);
- expect(remainingAfter(clips, res)).toEqual([]);
- expect(resultNote(res)).toBe('Shared 3 files.');
- });
-});
-
-describe('adding to an existing album', () => {
- it('sends no root; each file threads under the album, the first after `lastId`', async () => {
- const r = room();
- const sent: Record