diff --git a/.agents/skills/t3code-routine-update/SKILL.md b/.agents/skills/t3code-routine-update/SKILL.md index a96955b97c305..b8fa56c1124b3 100644 --- a/.agents/skills/t3code-routine-update/SKILL.md +++ b/.agents/skills/t3code-routine-update/SKILL.md @@ -1,72 +1,64 @@ --- name: t3code-routine-update -description: Routine update ("常规更新") of the user's T3 Code fork - merge upstream into fork main, rebase the `wb` branch, move the whiteboard's chat-t3 submodule to the new `wb`, rebuild the whiteboard sandboxes, and restart wb-t3. Use when the user asks to update/sync T3 Code with upstream or refresh the whiteboard chat. +description: Routine update ("常规更新") of the user's T3 Code fork - merge upstream into fork main, then deploy a fork main commit to the whiteboard (the running wb-t3 service and the whiteboard sandboxes). Use when the user asks to update/sync T3 Code with upstream or refresh the whiteboard chat. --- # T3 Code routine update -A routine update carries upstream T3 Code into everything the user runs, in this order: fork `main` → fork `wb` → whiteboard `chat-t3` (the running `wb-t3` service and the whiteboard sandboxes). Each stage builds on the previous one; finish and verify a stage before starting the next. +A routine update carries upstream T3 Code into everything the user runs, in this order: fork `main` → the whiteboard deployment (the running `wb-t3` service and the whiteboard sandboxes). Finish and verify a stage before starting the next. ## Layout - Main checkout `~/utils/t3code`: `origin` = orbitingflea/t3code (the fork), `upstream` = pingdotgg/t3code. It only ever fast-forwards to `origin/main`; all merging, building, and editing happen in worktrees (other agent sessions read this checkout). -- Fork `main` = upstream + a few fork-only commits, kept by **merge** (merge commit titled `Merge upstream main () into the fork`). Find the carried commits with `git log --no-merges upstream/main..origin/main`; drop one when upstream has an equivalent (check the upstream PR state). This skill (`.agents/skills/t3code-routine-update/`) is itself a carried commit; always keep it. -- Fork `wb` = fork `main` + the whiteboard embedding commits (`git log origin/main..origin/wb`). Worktree `~/utils/t3code-wb`. `run-t3.md` at the repo root lists every embedding change with its files; it is the porting checklist. -- Whiteboard repo `~/research/whiteboard` (origin orbitingflea/whiteboard). `chat-t3/` is a git submodule (origin = the fork) pinned to a `wb` commit, served by user unit `wb-t3.service` on 127.0.0.1:6070, state in `~/.whiteboard/t3-userdata`. Browsers reach it only via wb-web's `/chat/` proxy. +- Fork `main` = upstream + the fork-only commits, kept by **merge** (merge commit titled `Merge upstream main () into the fork`). Find the carried commits with `git log --no-merges upstream/main..origin/main`; drop one when upstream has an equivalent (check the upstream PR state). This skill (`.agents/skills/t3code-routine-update/`) is itself a carried commit; always keep it. +- The whiteboard is part of the fork. `fork/whiteboard/` holds its code with its own `package.json` (install with `npm ci` there; it is not a pnpm workspace member). The fork's T3 Code carries the whiteboard's embedding changes, switched by environment variables on the server (`T3CODE_UNSAFE_NO_AUTH`, `T3CODE_CLAUDE_PLUGIN_ROOT`, `T3CODE_CODEX_SKILL_ROOT`, all set by `fork/whiteboard/run-t3.sh`) and by `VITE_T3_WHITEBOARD=1` for the web build. `fork/whiteboard/run-t3.md` lists every embedding change with its files; it is the checklist when an upstream merge moves or deletes one of them. +- Whiteboard deployment `~/.whiteboard/app`: a detached worktree of `~/utils/t3code` at the deployed fork commit (T3 Code at its root, the whiteboard in `fork/whiteboard`). User units `wb-sync` and `wb-web` run from `fork/whiteboard`; `wb-t3.service` runs `fork/whiteboard/run-t3.sh` on 127.0.0.1:6070 with state in `~/.whiteboard/t3-userdata`. Browsers reach the chat only via wb-web's `/chat/` proxy. `~/.local/bin/t3` runs this worktree's server. The sandboxes (`~/utils/wb-sandbox`) mount releases built from a fork commit. ## Steps -Before touching anything: `git fetch upstream && git fetch origin`, then report how many commits `main` is behind `upstream/main` and run `git merge-tree --write-tree --name-only origin/main upstream/main` (and the same for `origin/wb`) to preview conflicts. Confirm with the user which stages to run. +Before touching anything: `git fetch upstream && git fetch origin`, then report how many commits `main` is behind `upstream/main` and run `git merge-tree --write-tree --name-only origin/main upstream/main` to preview conflicts. Confirm with the user which stages to run. ### 1. Merge upstream into fork main 1. In a fresh worktree on a branch from `origin/main`, `git merge upstream/main` with the title above. -2. Resolve conflicts per carried commit, keeping upstream's structure and re-applying the fork fix (the `resolving-merge-conflicts` skill covers the method). `pnpm-lock.yaml`: take upstream's file, then `pnpm install --lockfile-only` so the fork's extra packages are added back. The merge commit body names how non-trivial conflicts were resolved. -3. `vp i`, then run the tests and typecheck of each package a carried commit touches (e.g. `cd apps/web && vp test run --project browser src/components/ChatMarkdown.browser.test.tsx`; browser tests only run from `apps/web`). If `vp` is not on `PATH`, use `pnpm install --frozen-lockfile` and `/node_modules/.bin/vp`. The first one to three browser runs after an install can fail with "Vite unexpectedly reloaded a test" or dynamic-import errors while Vite optimizes new deps; rerun before treating a failure as real. -4. After the user approves: `git push origin HEAD:main`, then `git -C ~/utils/t3code merge --ff-only origin/main`. Remove the worktree. +2. Resolve conflicts per carried commit, keeping upstream's structure and re-applying the fork fix (the `resolving-merge-conflicts` skill covers the method). When upstream moved or deleted a file that an embedding change touches, re-port that change into upstream's new location, guided by `fork/whiteboard/run-t3.md`, and update its file lists. `pnpm-lock.yaml`: take upstream's file, then `pnpm install --lockfile-only` so the fork's extra packages are added back. The merge commit body names how non-trivial conflicts were resolved. +3. `vp i`. Then diff `dev/lib/syntax.js` and `package.json` of `node_modules/.pnpm/micromark-extension-gfm-table@*_patch_hash=*/node_modules/micromark-extension-gfm-table/` against the same files in `~/utils/t3code`: pnpm sometimes leaves this patched package unpatched (math in tables then breaks). If they differ, copy the two files over and delete `apps/web/node_modules/.vite`. The same check applies after every install below. +4. Run the tests and typecheck of each package a carried commit touches, including the tests named in `run-t3.md` (e.g. `cd apps/web && vp test run --project browser src/components/ChatMarkdown.browser.test.tsx`; browser tests only run from `apps/web`), then `vp run check:changed`. If `vp` is not on `PATH`, use `pnpm install --frozen-lockfile` and `/node_modules/.bin/vp`. The first one to three browser runs after an install can fail with "Vite unexpectedly reloaded a test" or dynamic-import errors while Vite optimizes new deps; rerun before treating a failure as real. Inside `wb-t3` your shell inherits `T3CODE_UNSAFE_NO_AUTH` and the other `T3CODE_*` variables `run-t3.sh` sets; unset them for test runs and smoke tests, or the auth and adapter tests fail. +5. After the user approves: `git push origin HEAD:main`, then `git -C ~/utils/t3code merge --ff-only origin/main`. Remove the worktree. -Done when `origin/main` contains `upstream/main`, touched tests and typecheck pass, and the main checkout sits at `origin/main`. +Done when `origin/main` contains `upstream/main`, every `run-t3.md` point still holds in the code, touched tests and typecheck pass, and the main checkout sits at `origin/main`. -### 2. Rebase `wb` +### 2. Deploy fork main to the whiteboard -1. In `~/utils/t3code-wb`: create `backup/wb-pre-rebase-` at the current tip, then `git rebase origin/main`. -2. When upstream moved or deleted a file an embedding commit changed, re-port that change into upstream's new location, guided by `run-t3.md`; update `run-t3.md`'s file lists to match. -3. `vp i`, run the tests of every file the embedding commits touch (`git diff --name-only origin/main...HEAD`) plus typecheck of the touched packages. Inside `wb-t3` your shell inherits `T3CODE_UNSAFE_NO_AUTH` and the other `T3CODE_*` variables `run-t3.sh` sets; unset them for the test run, or the auth and adapter tests fail. -4. After the user approves: `git push origin backup/wb-pre-rebase-` and `git push --force-with-lease origin wb`. +Run in `~/.whiteboard/app`. Note its current commit first (`git rev-parse HEAD`); the rollback needs it. -Done when `wb` = `origin/main` + embedding commits, every `run-t3.md` point still holds in the code, and tests pass. - -### 3. Refresh whiteboard chat-t3 - -Run in `~/research/whiteboard` on a new branch `t3-sync-`. - -1. Move the submodule (stage 2 must have pushed `wb`): `git -C chat-t3 fetch origin && git -C chat-t3 checkout && git add chat-t3`. Check that `git submodule status` shows `` and `git -C chat-t3 status --short` is empty. -2. `cd chat-t3 && pnpm install --frozen-lockfile`, then immediately `git -C ~/research/whiteboard config --unset core.hooksPath` (T3's prepare script hijacks the whiteboard's hooks). Then diff `dev/lib/syntax.js` and `package.json` of `node_modules/.pnpm/micromark-extension-gfm-table@*_patch_hash=*/node_modules/micromark-extension-gfm-table/` against the same files in `~/utils/t3code`: pnpm sometimes leaves this patched package unpatched (math in tables then breaks). If they differ, copy the two files over and delete `apps/web/node_modules/.vite`. The same check applies after installs in `~/utils/t3code-wb`. -3. Build to a side dir: `cd chat-t3/apps/web && vp build --outDir dist.new`; check `dist.new/index.html` references `/chat/assets/`; move `dist` to `~/.whiteboard/chat-dist.old-` and `dist.new` to `dist`. +1. `git fetch origin && git checkout --detach origin/main` (or `--detach ` for a specific fork commit). The working tree must be clean before and after. +2. `pnpm install --frozen-lockfile` at the root, then the micromark check from stage 1 step 3; then `npm ci` in `fork/whiteboard`. +3. Build to a side dir: `cd apps/web && VITE_T3_WHITEBOARD=1 vp build --outDir dist.new`; check that `dist.new/index.html` references `/chat/assets/` and `dist.new/manifest.webmanifest` has `#0a0a0a` (a build without the variable is a normal T3 Code build and does not work behind `/chat/`); move `dist` to `~/.whiteboard/chat-dist.old-` and `dist.new` to `dist`. 4. Snapshot the DB read-only into `statev2.sqlite.bak-sync-` beside the live file, then check `PRAGMA integrity_check` on the copy. The V1 `state.sqlite` there is no longer written. ```bash D=~/.whiteboard/t3-userdata/userdata bun -e 'import { Database } from "bun:sqlite"; const [src,dst]=process.argv.slice(1); const db=new Database(src,{readonly:true}); db.run("VACUUM INTO ?",[dst]); db.close();' "$D/statev2.sqlite" "$D/statev2.sqlite.bak-sync-" ``` -5. Smoke test on a pruned copy: `node chat-t3/apps/server/scripts/migrate-dev-db.ts --source --base-dir /tmp/wbt3-smoke`, with `T3CODE_UNSAFE_NO_AUTH` unset. Never smoke-test on a raw VACUUM copy: it keeps in-flight runs, and the smoke server resumes them as real agents, including the thread running this update. Then run `T3_DATA=/tmp/wbt3-smoke T3_PORT=6079 setsid bash chat-t3/run-t3.sh` in the background, wait for it to listen, and expect 200 from `http://127.0.0.1:6079/chat/` and a JSON reply from `/api/auth/session`. Also check that a websocket to `ws://127.0.0.1:6079/ws?orchestrationProtocol=2` stays open for 5 s and answers a `subscribeServerConfig` request; a socket that closes at once leaves the page stuck on "Still connecting". Stop it by its process group, then also kill the 6079 owner from `ss -H -ltnp` after checking that its `/proc//environ` has `T3_DATA=/tmp/wbt3-smoke` (the server forks a child that keeps the port; its cwd matches the live `wb-t3`, so cwd proves nothing). "Unknown source control provider" log errors are harmless. -6. Commit `Refresh chat-t3 to fork wb@`. Ask the user: PR, or fast-forward whiteboard `main` and push directly. GitHub reports a bypassed "changes must be made through a pull request" rule on direct push; that is expected. -7. Deploy the step-6 commit to every whiteboard sandbox (`~/utils/wb-sandbox`). Each sandbox mounts a release built from a fixed whiteboard commit, so restarting a sandbox does not update it. Run `~/utils/wb-sandbox/bin/wb-sandbox list` and note each sandbox's COMMIT (the rollback needs it). Then, for each NAME, run `~/utils/wb-sandbox/bin/wb-sandbox rebuild `, which deploys the local whiteboard `main`; if step 6 opened a PR, add `--commit `. The user runs this update only when restarts are fine, so rebuild all of them without asking. + +5. Smoke test on a pruned copy: `node apps/server/scripts/migrate-dev-db.ts --source --base-dir /tmp/wbt3-smoke`, with `T3CODE_UNSAFE_NO_AUTH` unset. Never smoke-test on a raw VACUUM copy: it keeps in-flight runs, and the smoke server resumes them as real agents, including the thread running this update. Then run `T3_DATA=/tmp/wbt3-smoke T3_PORT=6079 setsid bash fork/whiteboard/run-t3.sh` in the background, wait for it to listen, and expect 200 from `http://127.0.0.1:6079/chat/` and a JSON reply from `/api/auth/session`. Also check that a websocket to `ws://127.0.0.1:6079/ws?orchestrationProtocol=2` stays open for 5 s and answers a `subscribeServerConfig` request; a socket that closes at once leaves the page stuck on "Still connecting". Stop it by its process group, then also kill the 6079 owner from `ss -H -ltnp` after checking that its `/proc//environ` has `T3_DATA=/tmp/wbt3-smoke` (the server forks a child that keeps the port; its cwd matches the live `wb-t3`, so cwd proves nothing). "Unknown source control provider" log errors are harmless. +6. Deploy the commit to every whiteboard sandbox (`~/utils/wb-sandbox`). Each sandbox mounts a release built from a fixed commit, so restarting a sandbox does not update it. Run `~/utils/wb-sandbox/bin/wb-sandbox list` and note each sandbox's COMMIT (the rollback needs it). Then, for each NAME, run `~/utils/wb-sandbox/bin/wb-sandbox rebuild --commit `. The user runs this update only when restarts are fine, so rebuild all of them without asking. - Each rebuild restarts that sandbox's whiteboard and T3 services, which interrupts its running threads. A stopped sandbox is started and left running. - - The first rebuild builds the shared release `/srv/whiteboard/` and takes several minutes; run it in the background or with a long timeout. Then run the step-2 micromark check against `/srv/whiteboard//chat-t3`; if it differs, tell the user before rebuilding the rest. + - The first rebuild builds the shared release `/srv/whiteboard/` and takes several minutes; run it in the background or with a long timeout. Then run the micromark check against `/srv/whiteboard/` (the release's T3 Code root); if it differs, tell the user before rebuilding the rest. - A failed rebuild leaves that sandbox on its previous release and exits non-zero. Stop at the first failure and show the user the error tail; the release is shared, so the rest would fail the same way. - Done when `list` shows the new commit for every sandbox. -8. Restart `wb-t3` last, after commits, pushes, and memory notes are written. The restart stops every agent session `wb-t3` runs, even though they live in their own `t3code-*.scope` cgroups, so `/proc/$$/cgroup` does not show whether you are one of them. Check `tr '\0' '\n' < /proc/$$/environ | grep -q '^WB_CHAT_PID='` instead (`run-t3.sh` exports it): if it matches, you run under `wb-t3` and a direct restart kills you mid-turn. Then tell the user that running `wb-t3` threads will be interrupted, schedule the restart with `systemd-run --user --on-active=30s systemctl --user restart wb-t3`, and end the turn; check it in the next turn. Otherwise restart directly. Either way, check the `journalctl --user -u wb-t3` tail and that `/chat/` on 6070 answers 200. +7. Restart `wb-t3` last, after pushes and memory notes are written. The restart stops every agent session `wb-t3` runs, even though they live in their own `t3code-*.scope` cgroups, so `/proc/$$/cgroup` does not show whether you are one of them. Check `tr '\0' '\n' < /proc/$$/environ | grep -q '^WB_CHAT_PID='` instead (`run-t3.sh` exports it): if it matches, you run under `wb-t3` and a direct restart kills you mid-turn. Then tell the user that running `wb-t3` threads will be interrupted, schedule the restart with `systemd-run --user --on-active=30s systemctl --user restart wb-t3`, and end the turn; check it in the next turn. Otherwise restart directly. Either way, check the `journalctl --user -u wb-t3` tail and that `/chat/` on 6070 answers 200. When the deployed range changes `fork/whiteboard` (`git diff --stat ..HEAD -- fork/whiteboard`), restart `wb-sync` and `wb-web` as well; they run no agents. -Done when the whiteboard `chat-t3` submodule points at the pushed `wb` tip, the smoke test passed, the commit is pushed or in a PR, every sandbox runs the new whiteboard commit, and `wb-t3` runs the new build. +Done when `~/.whiteboard/app` sits at the pushed fork `main`, the smoke test passed, every sandbox runs the new commit, and `wb-t3` runs the new build. ## Rollback -Every stage leaves a way back: fork main is a merge (revert or reset to the previous tip), `wb` has its backup branch, whiteboard has the DB snapshot, the old `dist`, and the previous commit. A sandbox goes back with `wb-sandbox rebuild --commit `; a release is deleted once no sandbox uses it, so this usually builds it again (several minutes). +Every stage leaves a way back: fork main is a merge (revert or reset to the previous tip); the whiteboard deployment has the DB snapshot, the old `dist`, and the previous commit (`git checkout --detach `, rebuild, restart). A sandbox goes back with `wb-sandbox rebuild --commit `; a release is deleted once no sandbox uses it, so this usually builds it again (several minutes). ## Afterwards -Update the memory notes that record current state (fork scope, whiteboard sync state) with the new shas and date, replacing the old values. +Update the memory notes that record current state (fork scope, whiteboard deployment state) with the new shas and date, replacing the old values. ## Personal live install (optional) diff --git a/apps/server/src/auth/EnvironmentAuth.test.ts b/apps/server/src/auth/EnvironmentAuth.test.ts index 8558a6664c8a6..4f9434cea6abc 100644 --- a/apps/server/src/auth/EnvironmentAuth.test.ts +++ b/apps/server/src/auth/EnvironmentAuth.test.ts @@ -10,6 +10,7 @@ import { } from "@t3tools/shared/dpop"; import { expect, it } from "@effect/vitest"; import * as DateTime from "effect/DateTime"; +import { onTestFinished, vi } from "vite-plus/test"; import * as Effect from "effect/Effect"; import * as Layer from "effect/Layer"; import * as Redacted from "effect/Redacted"; @@ -294,6 +295,27 @@ it.layer(NodeServices.layer)("EnvironmentAuth.layer", (it) => { ), ); + it.effect("authenticates requests without credentials through WebSocket setup", () => { + vi.stubEnv("T3CODE_UNSAFE_NO_AUTH", "1"); + onTestFinished(() => { + vi.unstubAllEnvs(); + }); + return Effect.gen(function* () { + const serverAuth = yield* EnvironmentAuth.EnvironmentAuth; + const request = { cookies: {}, headers: {} }; + const session = yield* serverAuth.authenticateHttpRequest(request as never); + const ticket = yield* serverAuth.issueWebSocketTicket(session); + const websocketSession = yield* serverAuth.authenticateWebSocketUpgrade( + { ...request, url: `/?wsTicket=${encodeURIComponent(ticket.ticket)}` } as never, + "rpc", + ); + + expect(session.subject).toBe("unsafe-no-auth"); + expect(session.scopes).toEqual(AuthStandardClientScopes); + expect(websocketSession).toEqual(session); + }).pipe(Effect.provide(layerEnvironmentAuth())); + }); + it.effect("prefers a bearer token over a stale legacy cookie", () => Effect.gen(function* () { const serverAuth = yield* EnvironmentAuth.EnvironmentAuth; diff --git a/apps/server/src/auth/EnvironmentAuth.ts b/apps/server/src/auth/EnvironmentAuth.ts index 3fbe5a0061c0e..3d758f3813028 100644 --- a/apps/server/src/auth/EnvironmentAuth.ts +++ b/apps/server/src/auth/EnvironmentAuth.ts @@ -12,7 +12,7 @@ import { type AuthMcpClientAccess, type AuthPairingLink, type AuthPairingCredentialResult, - type AuthSessionId, + AuthSessionId, type AuthSessionState, authScopeResponse, type ServerAuthDescriptor, @@ -48,6 +48,17 @@ import * as SqlitePersistence from "../persistence/Sqlite.ts"; const DEFAULT_SESSION_SUBJECT = "cli-issued-session"; export const INTERNAL_ADMINISTRATIVE_BOOTSTRAP_SUBJECT = "administrative-bootstrap"; +const unsafeSession: AuthenticatedSession & { readonly audience?: undefined } = { + sessionId: AuthSessionId.make("unsafe-no-auth"), + subject: "unsafe-no-auth", + method: "browser-session-cookie", + scopes: AuthStandardClientScopes, +}; + +/** The no-auth session has no stored row, so nothing can revoke it. */ +export const isUnsafeNoAuthSession = (sessionId: AuthSessionId) => + sessionId === unsafeSession.sessionId; + export interface IssuedPairingLink { readonly id: string; readonly credential: string; @@ -704,6 +715,7 @@ export const make = Effect.gen(function* () { const descriptor = yield* policy.getDescriptor(); const config = yield* ServerConfig.ServerConfig; const devAuth = resolveReusableDevAuth(config); + const unsafeNoAuth = process.env.T3CODE_UNSAFE_NO_AUTH === "1"; const authenticateToken = ( token: string, @@ -762,7 +774,9 @@ export const make = Effect.gen(function* () { const dpopToken = parseDpopToken(request); const credential = resolveRequestCredential(request); if (!credential?.token) { - return Effect.fail(new ServerAuthMissingCredentialError({})); + return unsafeNoAuth + ? Effect.succeed(unsafeSession) + : Effect.fail(new ServerAuthMissingCredentialError({})); } if ( isBrowserCookieCredential(credential.source) && @@ -805,6 +819,10 @@ export const make = Effect.gen(function* () { } return Effect.succeed(session); }), + Effect.catchIf( + (error) => unsafeNoAuth && isServerAuthCredentialError(error), + () => Effect.succeed(unsafeSession), + ), ); }; @@ -1226,9 +1244,17 @@ export const make = Effect.gen(function* () { if (Option.isSome(requestUrl)) { const websocketTicket = requestUrl.value.searchParams.get(WEBSOCKET_TICKET_QUERY_PARAM); if (websocketTicket && websocketTicket.trim().length > 0) { - const session = yield* sessions - .verifyWebSocketToken(websocketTicket) - .pipe(mapSessionVerificationErrors, Effect.flatMap(rejectMcpClientAudience)); + const session = yield* sessions.verifyWebSocketToken(websocketTicket).pipe( + Effect.catchIf( + (error) => + unsafeNoAuth && + error._tag === "UnknownWebSocketSessionError" && + error.sessionId === unsafeSession.sessionId, + () => Effect.succeed(unsafeSession), + ), + mapSessionVerificationErrors, + Effect.flatMap(rejectMcpClientAudience), + ); if (session.audience !== undefined && session.audience !== use) { return yield* new ServerAuthInvalidCredentialError({ diagnostic: `WebSocket ticket was issued for the ${session.audience} route.`, diff --git a/apps/server/src/orchestration-v2/Adapters/ClaudeAdapterV2.test.ts b/apps/server/src/orchestration-v2/Adapters/ClaudeAdapterV2.test.ts index b95006e651c5e..e1c83b08a6a89 100644 --- a/apps/server/src/orchestration-v2/Adapters/ClaudeAdapterV2.test.ts +++ b/apps/server/src/orchestration-v2/Adapters/ClaudeAdapterV2.test.ts @@ -253,6 +253,17 @@ describe("ClaudeAdapterV2 runtime query policy", () => { assert.isUndefined(options.extraArgs?.["dangerously-skip-permissions"]); }); + it("loads a session-local plugin configured by the hosting T3 instance", () => { + const options = ClaudeAdapterV2.makeClaudeQueryOptions({ + modelSelection: CLAUDE_TEST_MODEL_SELECTION, + nativeThreadId: "native-thread-plugin", + resume: false, + cwd: "/workspace", + environment: { T3CODE_CLAUDE_PLUGIN_ROOT: " /opt/whiteboard " }, + }); + assert.deepEqual(options.plugins, [{ type: "local", path: "/opt/whiteboard" }]); + }); + it("gives delegated children Claude's subagent prompt cache TTL", () => { const lineage = (relationshipToParent: "fork" | "subagent" | null) => ({ lineage: { diff --git a/apps/server/src/orchestration-v2/Adapters/ClaudeAdapterV2.ts b/apps/server/src/orchestration-v2/Adapters/ClaudeAdapterV2.ts index ba698c7f2ea2e..fb3385a372dea 100644 --- a/apps/server/src/orchestration-v2/Adapters/ClaudeAdapterV2.ts +++ b/apps/server/src/orchestration-v2/Adapters/ClaudeAdapterV2.ts @@ -1508,6 +1508,7 @@ export function makeClaudeQueryOptions(input: { : typeof input.sdkSettings === "object" && input.sdkSettings !== null ? ({ ...input.sdkSettings, ...selectionSettings } as ClaudeSdkSettings) : selectionSettings; + const pluginRoot = input.environment?.T3CODE_CLAUDE_PLUGIN_ROOT?.trim(); const compactQuerySettings = input.settings?.autoCompactWindow === undefined || input.settings.autoCompactWindow.length === 0 ? querySettings @@ -1569,6 +1570,7 @@ export function makeClaudeQueryOptions(input: { : {}), ...(input.environment === undefined ? {} : { env: input.environment }), ...(input.mcpServers === undefined ? {} : { mcpServers: input.mcpServers }), + ...(pluginRoot ? { plugins: [{ type: "local" as const, path: pluginRoot }] } : {}), systemPrompt: { type: "preset" as const, preset: "claude_code" as const, diff --git a/apps/server/src/orchestration-v2/Adapters/CodexAdapterV2.ts b/apps/server/src/orchestration-v2/Adapters/CodexAdapterV2.ts index 370986030803a..088d4b9bf8fa5 100644 --- a/apps/server/src/orchestration-v2/Adapters/CodexAdapterV2.ts +++ b/apps/server/src/orchestration-v2/Adapters/CodexAdapterV2.ts @@ -117,7 +117,11 @@ import { shouldPersistProviderEvent, } from "../../provider/EventNdjsonLogger.ts"; import * as ProviderEventLoggers from "@t3tools/provider-core/server/ProviderEventLoggers"; -import { codexAppServerArgs, resolveCodexLaunchArgs } from "../../provider/codexLaunchArgs.ts"; +import { + codexAppServerArgs, + resolveCodexLaunchArgs, + resolveCodexSkillRoot, +} from "../../provider/codexLaunchArgs.ts"; import { mergeProviderInstanceEnvironment } from "@t3tools/provider-core/server/instanceEnvironment"; import * as McpProviderSession from "@t3tools/provider-core/server/mcpSession"; import * as McpProviderSessions from "@t3tools/provider-core/server/McpProviderSessions"; @@ -1752,6 +1756,10 @@ export const makeCodexAdapterV2 = Effect.fn("makeCodexAdapterV2")(function* ( }), ); yield* client.notify("initialized", undefined); + const skillRoot = resolveCodexSkillRoot(clientEnvironment); + if (skillRoot) { + yield* client.request("skills/extraRoots/set", { extraRoots: [skillRoot] }); + } yield* Ref.set(initialized, true); }), ); diff --git a/apps/server/src/provider/CodexProvider.ts b/apps/server/src/provider/CodexProvider.ts index 2b2d5501881b4..c4490ed270fdc 100644 --- a/apps/server/src/provider/CodexProvider.ts +++ b/apps/server/src/provider/CodexProvider.ts @@ -35,7 +35,11 @@ import { formatCodexModelName, } from "@t3tools/shared/model"; import { resolveSpawnCommand } from "@t3tools/shared/shell"; -import { codexAppServerArgs, resolveCodexLaunchArgs } from "./codexLaunchArgs.ts"; +import { + codexAppServerArgs, + resolveCodexLaunchArgs, + resolveCodexSkillRoot, +} from "./codexLaunchArgs.ts"; import { buildServerProvider, COMPACT_SLASH_COMMAND, @@ -505,6 +509,10 @@ export const withCodexAppServerClient = Effect.fn("withCodexAppServerClient")(fu ); const initialize = yield* client.request("initialize", buildCodexInitializeParams()); yield* client.notify("initialized", undefined); + const skillRoot = resolveCodexSkillRoot(input.environment); + if (skillRoot) { + yield* client.request("skills/extraRoots/set", { extraRoots: [skillRoot] }); + } return { client, initialize }; }); diff --git a/apps/server/src/provider/codexLaunchArgs.test.ts b/apps/server/src/provider/codexLaunchArgs.test.ts index ce18c8f3f1bd5..901af12deee2c 100644 --- a/apps/server/src/provider/codexLaunchArgs.test.ts +++ b/apps/server/src/provider/codexLaunchArgs.test.ts @@ -2,7 +2,24 @@ import * as NodeAssert from "node:assert/strict"; import { describe, it } from "vite-plus/test"; -import { codexAppServerArgs, codexExecLaunchArgs } from "./codexLaunchArgs.ts"; +import { + codexAppServerArgs, + codexExecLaunchArgs, + resolveCodexSkillRoot, +} from "./codexLaunchArgs.ts"; + +describe("resolveCodexSkillRoot", () => { + it("returns the configured skill root without surrounding whitespace", () => { + NodeAssert.equal( + resolveCodexSkillRoot({ T3CODE_CODEX_SKILL_ROOT: " /opt/whiteboard/skills " }), + "/opt/whiteboard/skills", + ); + }); + + it("ignores an empty skill root", () => { + NodeAssert.equal(resolveCodexSkillRoot({ T3CODE_CODEX_SKILL_ROOT: " " }), undefined); + }); +}); describe("codexAppServerArgs", () => { it("preserves escaped TOML quotes in config values", () => { diff --git a/apps/server/src/provider/codexLaunchArgs.ts b/apps/server/src/provider/codexLaunchArgs.ts index 33def5ce9a61a..239ee6ad7f042 100644 --- a/apps/server/src/provider/codexLaunchArgs.ts +++ b/apps/server/src/provider/codexLaunchArgs.ts @@ -1,12 +1,16 @@ import { tokenizeCliArgs } from "@t3tools/shared/cliArgs"; const T3CODE_CODEX_LAUNCH_ARGS_ENV = "T3CODE_CODEX_LAUNCH_ARGS"; +const T3CODE_CODEX_SKILL_ROOT_ENV = "T3CODE_CODEX_SKILL_ROOT"; export const resolveCodexLaunchArgs = ( launchArgs?: string, environment: NodeJS.ProcessEnv = process.env, ) => environment[T3CODE_CODEX_LAUNCH_ARGS_ENV]?.trim() || launchArgs?.trim() || ""; +export const resolveCodexSkillRoot = (environment: NodeJS.ProcessEnv = process.env) => + environment[T3CODE_CODEX_SKILL_ROOT_ENV]?.trim() || undefined; + const codexLaunchArgv = (launchArgs?: string): ReadonlyArray => tokenizeCliArgs(launchArgs); export const codexAppServerArgs = (launchArgs?: string) => [ diff --git a/apps/server/src/ws.ts b/apps/server/src/ws.ts index 8c8509550bc11..ee52296b44e84 100644 --- a/apps/server/src/ws.ts +++ b/apps/server/src/ws.ts @@ -3364,16 +3364,18 @@ export const layer = Layer.unwrap( return yield* Effect.acquireUseRelease( sessions.markConnected(session.sessionId), () => - Effect.raceFirst( - rpcWebSocketHttpEffect, - sessions.awaitInvalidation(session.sessionId).pipe( - Effect.as(HttpServerResponse.empty()), - Effect.catchTags({ - SessionCredentialVerificationError: (error) => - failEnvironmentInternal("internal_error", error), - }), - ), - ), + EnvironmentAuth.isUnsafeNoAuthSession(session.sessionId) + ? rpcWebSocketHttpEffect + : Effect.raceFirst( + rpcWebSocketHttpEffect, + sessions.awaitInvalidation(session.sessionId).pipe( + Effect.as(HttpServerResponse.empty()), + Effect.catchTags({ + SessionCredentialVerificationError: (error) => + failEnvironmentInternal("internal_error", error), + }), + ), + ), () => sessions.markDisconnected(session.sessionId), ); }).pipe( diff --git a/apps/web/public/manifest.webmanifest b/apps/web/public/manifest.webmanifest index fa9c40e127ada..83419f1d94601 100644 --- a/apps/web/public/manifest.webmanifest +++ b/apps/web/public/manifest.webmanifest @@ -9,12 +9,12 @@ "theme_color": "#161616", "icons": [ { - "src": "/favicon-32x32.png", + "src": "favicon-32x32.png", "sizes": "32x32", "type": "image/png" }, { - "src": "/apple-touch-icon.png", + "src": "apple-touch-icon.png", "sizes": "180x180", "type": "image/png" } diff --git a/apps/web/src/components/AppSidebarLayout.tsx b/apps/web/src/components/AppSidebarLayout.tsx index 6c8837e63f40a..1c4156163fcc1 100644 --- a/apps/web/src/components/AppSidebarLayout.tsx +++ b/apps/web/src/components/AppSidebarLayout.tsx @@ -12,6 +12,13 @@ import { useLocation, useRouter, type AnyRouter } from "@tanstack/react-router"; import { moveWorkspaceFocus, workspaceAreaProps } from "../lib/workspaceFocus"; import { isCommandPaletteOpen } from "../commandPaletteBus"; import { isElectron } from "../env"; +import { isWhiteboardBuild } from "../fork/whiteboard/build"; +import { + useWhiteboardBoardHidden, + useWhiteboardSidebarStartState, + WHITEBOARD_BOARD_BUTTON_TITLEBAR_STYLE, + WhiteboardBoardButton, +} from "../fork/whiteboard/WhiteboardSidebar"; import { releaseThreadUndoShortcut, threadUndoClaimsShortcut, @@ -311,11 +318,18 @@ function registerAppShellCommands(router: AnyRouter, shellElement: Element): () }; } -function SidebarControl() { +function SidebarControl({ + boardHidden, + sidebarFits, +}: { + boardHidden: boolean | null; + sidebarFits: boolean; +}) { const router = useRouter(); const usagePageOpen = useLocation({ select: (location) => location.pathname === "/usage" }); const keybindings = useAtomValue(primaryServerKeybindingsAtom); - const { toggleSidebar, isMobile, mobileSheetMounted } = useSidebar(); + const { setOpen, toggleSidebar, isMobile, mobileSheetMounted } = useSidebar(); + useWhiteboardSidebarStartState(boardHidden, sidebarFits, setOpen); const isSidebarVisible = useSidebarVisibility(); const environmentIdentificationMode = useEnvironmentIdentificationMode(); const stageBackdropVariant = useSidebarStageBackdropVariant(environmentIdentificationMode); @@ -379,6 +393,7 @@ function SidebarControl() { )} data-sidebar-control="" > + {boardHidden && } = sidebarWidth + THREAD_MAIN_CONTENT_MIN_WIDTH; const resetSidebarWidth = () => { try { removeLocalStorageItem(THREAD_SIDEBAR_WIDTH_STORAGE_KEY); @@ -439,6 +456,7 @@ export function AppSidebarLayout({ children }: { children: ReactNode }) { "--sidebar-width": `${clampThreadSidebarWidth(sidebarWidth, sidebarMinimumWidth, sidebarMaximumWidth)}px`, "--panel-animation-duration": `${panelAnimationDurationMs}ms`, ...windowControlsInsetStyle, + ...(boardHidden ? WHITEBOARD_BOARD_BUTTON_TITLEBAR_STYLE : {}), } as CSSProperties; return ( @@ -446,7 +464,9 @@ export function AppSidebarLayout({ children }: { children: ReactNode }) { @@ -473,7 +493,7 @@ export function AppSidebarLayout({ children }: { children: ReactNode }) { {children} - + ); diff --git a/apps/web/src/components/ChatMarkdown.tsx b/apps/web/src/components/ChatMarkdown.tsx index 6a8f80d6d1071..011af050bfc1a 100644 --- a/apps/web/src/components/ChatMarkdown.tsx +++ b/apps/web/src/components/ChatMarkdown.tsx @@ -89,6 +89,7 @@ import type { } from "react-markdown"; import ReactMarkdown from "react-markdown"; import { createIncrementalMarkdownPlugin } from "../markdown-incremental"; +import { postWhiteboardHover, remarkWhiteboardLinks } from "../fork/whiteboard/markdown-whiteboard"; import { defaultUrlTransform } from "react-markdown"; import { parseAssistantCitationHref } from "@t3tools/shared/assistantCitations"; import { parseComposerContextHref } from "@t3tools/shared/composerContextReferences"; @@ -644,6 +645,7 @@ function useChatMarkdownState({ if (parseComposerContextHref(href)) return href; if (parseThreadLinkHref(href)) return href; if (isWindowsDrivePathHref(href)) return href; + if (href.startsWith("board://")) return href; return rewriteMarkdownFileUriHref(href) ?? defaultUrlTransform(href); }; const handleCopy = (event: ReactClipboardEvent) => { @@ -1119,6 +1121,7 @@ const CHAT_MARKDOWN_COMPONENTS = { }) : null; const isSameDocumentLink = href?.startsWith("#") ?? false; + const isWhiteboardLink = href?.startsWith("board://") ?? false; const onClick = props.onClick; const canOpenInPreview = canOperatePreview && Boolean(threadRef && isPreviewAvailableFor(threadRef.environmentId)); @@ -1132,8 +1135,19 @@ const CHAT_MARKDOWN_COMPONENTS = { href={href} target={isSameDocumentLink ? undefined : "_blank"} rel={isSameDocumentLink ? undefined : "noopener noreferrer"} + onMouseEnter={(event) => { + if (isWhiteboardLink && href) postWhiteboardHover(href, event.currentTarget); + }} + onMouseLeave={() => { + if (isWhiteboardLink) postWhiteboardHover(null); + }} onClick={(event) => { onClick?.(event); + if (isWhiteboardLink && href) { + event.preventDefault(); + window.parent.postMessage({ type: "wb-highlight", ref: href }, "*"); + return; + } if (isSameDocumentLink && href) { handleMarkdownFragmentClick(event, href); return; @@ -1649,6 +1663,7 @@ function ChatMarkdown({ }; const remarkPlugins = [ ...(lineBreaks ? CHAT_MARKDOWN_REMARK_PLUGINS_WITH_BREAKS : CHAT_MARKDOWN_REMARK_PLUGINS), + remarkWhiteboardLinks, ...extraRemarkPlugins, ...(incrementalParsing ? [createIncrementalMarkdownPlugin()] : []), ]; diff --git a/apps/web/src/components/ChatView.tsx b/apps/web/src/components/ChatView.tsx index 665bb2fc5f5cf..f2d8f098485bb 100644 --- a/apps/web/src/components/ChatView.tsx +++ b/apps/web/src/components/ChatView.tsx @@ -35,6 +35,7 @@ import { usageLimitRecoveryBannerItem } from "./chat/UsageLimitRecoveryBanner"; import { resolveDraftHeroState } from "./ChatView.logic"; import { useQueuedRunEdit } from "./chat/useQueuedRunEdit"; import { recallCheckoutIsRepo, rememberCheckoutIsRepo } from "./ChatView.logic"; +import { useWhiteboardProject } from "../fork/whiteboard/useWhiteboardProject"; import { useLogicalProjectEnvironments } from "../hooks/useLogicalProjectEnvironments"; import { useStableCallback } from "../hooks/useStableCallback"; import { useProjectScriptEditing } from "./chat/useProjectScriptEditing"; @@ -1086,6 +1087,7 @@ export default function ChatView(props: ChatViewProps) { !isServerThread && draftFallback ? draftFallback.selection : activeProjectSettings.settings.defaultModelSelection; + useWhiteboardProject(activeProject?.workspaceRoot, activeThreadKey); const handleNewThreadInActiveProject = () => { startNewThreadForProject(activeProjectRef, handleNewThread); }; diff --git a/apps/web/src/components/ComposerPromptEditorTiptap.tsx b/apps/web/src/components/ComposerPromptEditorTiptap.tsx index abc9549ee3d00..4791544e397d8 100644 --- a/apps/web/src/components/ComposerPromptEditorTiptap.tsx +++ b/apps/web/src/components/ComposerPromptEditorTiptap.tsx @@ -106,6 +106,7 @@ import { resolveDiffThemeName } from "~/lib/diffRendering"; import { cn, isMacPlatform } from "~/lib/utils"; import { basenameOfPath } from "~/pierre-icons"; import { WorkspaceEntryTooltip } from "./chat/WorkspaceEntryIcon"; +import { postWhiteboardHover } from "../fork/whiteboard/markdown-whiteboard"; import { FileTagChipContent } from "./chat/FileTagChip"; import { SkillChipPopover, skillPopoverDescription } from "./chat/SkillInlineText"; import { AssistantCitationChip } from "./chat/AssistantCitationChip"; @@ -258,23 +259,29 @@ const ComposerMentionExtension = Node.create({ function ComposerMentionNodeView({ node }: NodeViewProps) { const actions = use(ComposerContextActionsContext); - const path = (node.attrs.path as string) ?? ""; + const mentionPath = (node.attrs.path as string) ?? ""; + const boardMatch = /^\[([^\]]+)\]\((board:\/\/[^)]+)\)$/.exec(mentionPath); + const path = boardMatch?.[2] ?? mentionPath; const chip = ( } - onClick={() => actions.openMention(path)} + onClick={() => actions.openMention(mentionPath)} aria-label={`Preview ${path}`} contentEditable={false} spellCheck={false} data-composer-mention-chip="true" + onMouseEnter={ + boardMatch ? (event) => postWhiteboardHover(path, event.currentTarget) : undefined + } + onMouseLeave={boardMatch ? () => postWhiteboardHover(null) : undefined} > diff --git a/apps/web/src/components/chat/ChatComposer.tsx b/apps/web/src/components/chat/ChatComposer.tsx index d7878cc29a165..76cdfa44c3ed9 100644 --- a/apps/web/src/components/chat/ChatComposer.tsx +++ b/apps/web/src/components/chat/ChatComposer.tsx @@ -256,6 +256,8 @@ import { resolveProviderSkillsForCwd, resolveProviderSlashCommandsForCwd, } from "@t3tools/client-runtime/providerSkills"; +import { isWhiteboardBuild } from "../../fork/whiteboard/build"; +import { useWhiteboardInsertRef } from "../../fork/whiteboard/useWhiteboardInsertRef"; import { useMediaQuery } from "../../hooks/useMediaQuery"; import { useSoftwareKeyboardOpen } from "../../hooks/useSoftwareKeyboardOpen"; import { useStableCallback } from "../../hooks/useStableCallback"; @@ -1007,7 +1009,7 @@ export const ChatComposer = memo(function ChatComposer(props: ChatComposerProps) const [isDragOverComposer, setIsDragOverComposer] = useState(false); const [isComposerPrimaryActionsCompact, setIsComposerPrimaryActionsCompact] = useState(false); const [isComposerModelPickerOpen, setIsComposerModelPickerOpen] = useState(false); - const isMobileViewport = useMediaQuery("max-sm"); + const isMobileViewport = useMediaQuery("max-sm") && !isWhiteboardBuild; const isSoftwareKeyboardOpen = useSoftwareKeyboardOpen(); const [isComposerFocused, setIsComposerFocused] = useState(false); const [composerSubmissionError, setComposerSubmissionError] = useState(null); @@ -1794,6 +1796,7 @@ export const ChatComposer = memo(function ChatComposer(props: ChatComposerProps) return true; }; const applyPromptReplacementStable = useStableCallback(applyPromptReplacement); + useWhiteboardInsertRef(composerEditorRef, promptRef, applyPromptReplacementStable); const readComposerSnapshot = (): { value: string; diff --git a/apps/web/src/fork/whiteboard/WhiteboardSidebar.tsx b/apps/web/src/fork/whiteboard/WhiteboardSidebar.tsx new file mode 100644 index 0000000000000..0c9ff0193800a --- /dev/null +++ b/apps/web/src/fork/whiteboard/WhiteboardSidebar.tsx @@ -0,0 +1,61 @@ +import { useEffect, useRef, useState } from "react"; +import { PresentationIcon } from "lucide-react"; + +import { Button } from "../../components/ui/button"; +import { isEmbeddedInWhiteboard } from "./build"; + +// The whiteboard parent page reports whether its board panel is collapsed; asking on mount +// covers the report it sent before this listener existed. Null until the first report. +export function useWhiteboardBoardHidden() { + const [boardHidden, setBoardHidden] = useState(null); + // oxlint-disable-next-line t3code/no-unreasoned-state-sync -- window message listener for the board page's layout reports, held while mounted + useEffect(() => { + if (!isEmbeddedInWhiteboard()) return; + const receive = (event: MessageEvent) => { + if (event.source === window.parent && event.data?.type === "wb-layout") { + setBoardHidden(event.data.boardHidden === true); + } + }; + window.addEventListener("message", receive); + window.parent.postMessage({ type: "wb-layout-get" }, "*"); + return () => window.removeEventListener("message", receive); + }, []); + return boardHidden; +} + +// In the whiteboard the first layout report sets the start state: with the board hidden this +// frame is the whole page, so the sidebar opens by the same width rule as standalone. +export function useWhiteboardSidebarStartState( + boardHidden: boolean | null, + sidebarFits: boolean, + setOpen: (open: boolean) => void, +) { + const startStateSet = useRef(false); + // oxlint-disable-next-line t3code/no-unreasoned-state-sync -- applies the board page's first layout report, which arrives by message after mount, to the sidebar provider once + useEffect(() => { + if (boardHidden === null || startStateSet.current) return; + startStateSet.current = true; + if (boardHidden && sidebarFits) void setOpen(true); + }, [boardHidden, sidebarFits, setOpen]); +} + +// Header content clears the Board button (w-18 plus mr-2) placed before the sidebar trigger. +export const WHITEBOARD_BOARD_BUTTON_TITLEBAR_STYLE = { + "--workspace-titlebar-content-left": + "calc(var(--workspace-controls-left) + var(--workspace-titlebar-control-size) + var(--workspace-titlebar-control-gap) + 5rem)", +}; + +export function WhiteboardBoardButton() { + return ( +
+ +
+ ); +} diff --git a/apps/web/src/fork/whiteboard/build.ts b/apps/web/src/fork/whiteboard/build.ts new file mode 100644 index 0000000000000..276b7b69f79dc --- /dev/null +++ b/apps/web/src/fork/whiteboard/build.ts @@ -0,0 +1,8 @@ +// Selected at build time with VITE_T3_WHITEBOARD=1 (apps/web/vite/fork/whiteboardBuild.ts sets the +// matching `/chat/` base). The whiteboard page embeds that build as its chat panel. +export const isWhiteboardBuild = import.meta.env.VITE_T3_WHITEBOARD === "1"; + +export const WHITEBOARD_ROUTER_BASEPATH = "/chat"; + +/** True when this frame is the chat panel of the whiteboard page. */ +export const isEmbeddedInWhiteboard = () => isWhiteboardBuild && window.parent !== window; diff --git a/apps/web/src/fork/whiteboard/markdown-whiteboard.test.ts b/apps/web/src/fork/whiteboard/markdown-whiteboard.test.ts new file mode 100644 index 0000000000000..d92505d6950ac --- /dev/null +++ b/apps/web/src/fork/whiteboard/markdown-whiteboard.test.ts @@ -0,0 +1,29 @@ +import { describe, expect, it } from "vite-plus/test"; + +import { remarkWhiteboardLinks } from "./markdown-whiteboard"; + +describe("remarkWhiteboardLinks", () => { + it("links bare board URLs but leaves existing links and code alone", () => { + const tree = { + type: "root", + children: [ + { type: "text", value: "See board://r/1,2,3,4." }, + { type: "link", url: "board://r/5,6,7,8", children: [{ type: "text", value: "Area 1" }] }, + { type: "inlineCode", value: "board://r/9,10,11,12" }, + ], + }; + + remarkWhiteboardLinks()(tree); + expect(tree.children).toEqual([ + { type: "text", value: "See " }, + { + type: "link", + url: "board://r/1,2,3,4", + children: [{ type: "text", value: "board://r/1,2,3,4" }], + }, + { type: "text", value: "." }, + { type: "link", url: "board://r/5,6,7,8", children: [{ type: "text", value: "Area 1" }] }, + { type: "inlineCode", value: "board://r/9,10,11,12" }, + ]); + }); +}); diff --git a/apps/web/src/fork/whiteboard/markdown-whiteboard.ts b/apps/web/src/fork/whiteboard/markdown-whiteboard.ts new file mode 100644 index 0000000000000..d5dce9050cd63 --- /dev/null +++ b/apps/web/src/fork/whiteboard/markdown-whiteboard.ts @@ -0,0 +1,48 @@ +// A board reference is a `board://r/x,y,w,h` URL naming a rectangle on the +// whiteboard that embeds this app. Rendered chat text turns those URLs into +// links that point at the board instead of at a page. +type MarkdownNode = { + type?: string; + value?: string; + url?: string; + children?: MarkdownNode[]; +}; + +const BOARD_URL_REGEX = /board:\/\/[^\s<>]+/g; + +/** Tell the board which reference the pointer is over, and where on screen it is. */ +export function postWhiteboardHover(ref: string | null, element?: Element): void { + const rect = element?.getBoundingClientRect(); + window.parent.postMessage({ type: "wb-hover", ref, rect }, "*"); +} + +/** Autolink bare board URLs in prose, leaving existing links and code alone. */ +export function remarkWhiteboardLinks() { + return (tree: MarkdownNode) => { + const visit = (node: MarkdownNode) => { + if (node.type === "link" || node.type === "code" || node.type === "inlineCode") return; + if (node.children) { + node.children = node.children.flatMap((child) => { + if (child.type !== "text" || !child.value?.includes("board://")) { + visit(child); + return child; + } + const children: MarkdownNode[] = []; + let cursor = 0; + for (const match of child.value.matchAll(BOARD_URL_REGEX)) { + const start = match.index ?? 0; + const url = (match[0] ?? "").replace(/[),.;!?]+$/, ""); + if (start > cursor) + children.push({ type: "text", value: child.value.slice(cursor, start) }); + children.push({ type: "link", url, children: [{ type: "text", value: url }] }); + cursor = start + url.length; + } + if (cursor < child.value.length) + children.push({ type: "text", value: child.value.slice(cursor) }); + return children; + }); + } + }; + visit(tree); + }; +} diff --git a/apps/web/src/fork/whiteboard/useWhiteboardInsertRef.ts b/apps/web/src/fork/whiteboard/useWhiteboardInsertRef.ts new file mode 100644 index 0000000000000..93c1b4ca88a6c --- /dev/null +++ b/apps/web/src/fork/whiteboard/useWhiteboardInsertRef.ts @@ -0,0 +1,28 @@ +import { useEffect, type RefObject } from "react"; + +import type { ComposerPromptEditorHandle } from "../../components/ComposerPromptEditorTiptap"; +import { isEmbeddedInWhiteboard } from "./build"; + +// The board sends the reference of a region the user picked; it lands at the caret as its own word. +export function useWhiteboardInsertRef( + editorRef: RefObject, + promptRef: RefObject, + applyPromptReplacement: (rangeStart: number, rangeEnd: number, replacement: string) => unknown, +) { + // oxlint-disable-next-line t3code/no-unreasoned-state-sync -- window message listener for the board page's insert requests, held while mounted + useEffect(() => { + if (!isEmbeddedInWhiteboard()) return; + const insertWhiteboardRef = (event: MessageEvent) => { + const { type, ref } = (event.data ?? {}) as { type?: string; ref?: string }; + if (event.source !== window.parent || type !== "wb-insert-ref" || !ref) return; + const snapshot = editorRef.current?.readSnapshot(); + const cursor = + snapshot?.value === promptRef.current ? snapshot.expandedCursor : promptRef.current.length; + const spaced = + cursor > 0 && !/\s/.test(promptRef.current[cursor - 1] ?? "") ? ` ${ref}` : ref; + applyPromptReplacement(cursor, cursor, `${spaced} `); + }; + window.addEventListener("message", insertWhiteboardRef); + return () => window.removeEventListener("message", insertWhiteboardRef); + }, [applyPromptReplacement, editorRef, promptRef]); +} diff --git a/apps/web/src/fork/whiteboard/useWhiteboardProject.ts b/apps/web/src/fork/whiteboard/useWhiteboardProject.ts new file mode 100644 index 0000000000000..3bcb2ee3c72f5 --- /dev/null +++ b/apps/web/src/fork/whiteboard/useWhiteboardProject.ts @@ -0,0 +1,13 @@ +import { useEffect } from "react"; + +import { isEmbeddedInWhiteboard } from "./build"; + +// The board binds its room to the project directory this chat is working in, +// so it has to hear which one that is whenever the active thread moves. +export function useWhiteboardProject(workspaceRoot: string | undefined, threadKey: string | null) { + // oxlint-disable-next-line t3code/no-unreasoned-state-sync -- keeps the board page (parent window, outside React) bound to this chat's project through postMessage + useEffect(() => { + if (!workspaceRoot || !isEmbeddedInWhiteboard()) return; + window.parent.postMessage({ type: "wb-project", path: workspaceRoot, session: threadKey }, "*"); + }, [workspaceRoot, threadKey]); +} diff --git a/apps/web/src/fork/whiteboard/vite-env.d.ts b/apps/web/src/fork/whiteboard/vite-env.d.ts new file mode 100644 index 0000000000000..b4d91272855ed --- /dev/null +++ b/apps/web/src/fork/whiteboard/vite-env.d.ts @@ -0,0 +1,3 @@ +interface ImportMetaEnv { + readonly VITE_T3_WHITEBOARD?: string; +} diff --git a/apps/web/src/router.ts b/apps/web/src/router.ts index e8fd2b71d73f1..369a68b64ba3f 100644 --- a/apps/web/src/router.ts +++ b/apps/web/src/router.ts @@ -1,11 +1,13 @@ import { createRouter, RouterHistory } from "@tanstack/react-router"; +import { isWhiteboardBuild, WHITEBOARD_ROUTER_BASEPATH } from "./fork/whiteboard/build"; import { routeTree } from "./routeTree.gen"; export function getRouter(history: RouterHistory) { return createRouter({ routeTree, history, + ...(isWhiteboardBuild ? { basepath: WHITEBOARD_ROUTER_BASEPATH } : {}), context: {}, defaultPreload: "intent", }); diff --git a/apps/web/vite.config.ts b/apps/web/vite.config.ts index 501bac5dba020..9f9442675c949 100644 --- a/apps/web/vite.config.ts +++ b/apps/web/vite.config.ts @@ -22,6 +22,7 @@ import { loadRepoEnv } from "../../scripts/lib/public-config"; import { thirdPartyLicensesPlugin } from "../../scripts/lib/third-party-licenses"; import { tailwindPlugins } from "./vite/tailwind"; import { warmBundledDevPlugin } from "./vite/warmBundledDev"; +import { whiteboardBuildPlugin } from "./vite/fork/whiteboardBuild"; const repoEnv = loadRepoEnv(); Object.assign(process.env, repoEnv); @@ -282,6 +283,7 @@ export default defineConfig(() => { react({ compiler: true }), tailwindPlugins(bundledDev), warmBundledDevPlugin(), + whiteboardBuildPlugin(), ], optimizeDeps: { include: [ diff --git a/apps/web/vite/fork/whiteboardBuild.ts b/apps/web/vite/fork/whiteboardBuild.ts new file mode 100644 index 0000000000000..4365fa4b8c933 --- /dev/null +++ b/apps/web/vite/fork/whiteboardBuild.ts @@ -0,0 +1,22 @@ +// @effect-diagnostics-next-line nodeBuiltinImport:off -- Vite plugin runs before any Effect runtime. +import * as NodeFS from "node:fs"; + +import type { Plugin } from "vite-plus"; + +// Selected with VITE_T3_WHITEBOARD=1: the whiteboard serves this build behind its own `/chat/` +// prefix, and the manifest takes the board page's colour. Client code reads the same variable +// through apps/web/src/fork/whiteboard/build.ts. +export function whiteboardBuildPlugin(): Plugin | undefined { + if (process.env.VITE_T3_WHITEBOARD !== "1") return undefined; + return { + name: "t3code:whiteboard-build", + config: () => ({ base: "/chat/" }), + // Vite copies the public directory into the output directory before writing the bundle. + writeBundle(options) { + if (!options.dir) return; + const manifestPath = `${options.dir}/manifest.webmanifest`; + const manifest = NodeFS.readFileSync(manifestPath, "utf8"); + NodeFS.writeFileSync(manifestPath, manifest.replaceAll("#161616", "#0a0a0a")); + }, + }; +} diff --git a/fork/whiteboard/.gitignore b/fork/whiteboard/.gitignore new file mode 100644 index 0000000000000..b5ae7fb3ecadc --- /dev/null +++ b/fork/whiteboard/.gitignore @@ -0,0 +1,11 @@ +node_modules/ +dist/ +.env +.env.* +*.log +data/ +.omo/ +.codegraph/ +.worktrees/ +*.tsbuildinfo +.debug-journal.md diff --git a/fork/whiteboard/AGENTS.md b/fork/whiteboard/AGENTS.md new file mode 100644 index 0000000000000..7cd9550ea7288 --- /dev/null +++ b/fork/whiteboard/AGENTS.md @@ -0,0 +1,3 @@ +# Whiteboard operations + +To read or draw on the board, follow the skill in `skills/use-whiteboard/SKILL.md`. diff --git a/fork/whiteboard/README.md b/fork/whiteboard/README.md new file mode 100644 index 0000000000000..3b9a3d5e3086e --- /dev/null +++ b/fork/whiteboard/README.md @@ -0,0 +1,96 @@ +# Whiteboard + +A research whiteboard: a tldraw canvas with a side-panel agent chat that supports both Claude Code and Codex, built with a minimum of custom code. + +## Configuration + +The services read `~/.whiteboard/config.json` when it exists. Every field is optional: + +```json +{ + "dataDir": "/path/to/data", + "host": "127.0.0.1", + "port": 6060, + "webPort": 6061, + "chatPort": 6070, + "allowedHosts": [".ts.net", "board.example.com"], + "openViews": { "board.example.com": "board" } +} +``` + +- `dataDir` — directory holding room snapshots (default `~/.whiteboard/data`). +- `host` — address the sync server binds (default `127.0.0.1`). +- `port` — sync server port (default `6060`). The Vite proxy reads this value when it starts, so restart the dev server after changing it. +- `webPort` — port the web page itself is served on (default `6061`). This is the address users open in the browser. +- `chatPort` — port the embedded chat is served on (default `6070`). The Vite proxy reads this value when it starts, so restart the dev server after changing it. +- `allowedHosts` — hostnames the web server accepts in the `Host` header (default none, so only `localhost` works). List every hostname a reverse proxy or Tailscale Serve uses to reach the page; a leading dot matches all subdomains. The web server reads this value when it starts, so restart it after changing it. +- `openViews` — hostnames that open the page with only one side shown, mapped to `"board"` or `"chat"` (default none). The page on such a hostname starts in that view on every load; the buttons still switch to the other side or the split. Other hostnames reopen the layout last used there. The web server reads this value when it starts, so restart it after changing it. + +## Project rooms + +The default room is `main`; clients connect at `/connect/`, read with `GET /api/board?room=`, and write with `POST /api/board/edit?room=`. Omitting `room` selects `main`. Each room persists at `/room-.json`. + +A room slug comes from a directory path: lowercase the path, replace each run of characters that are not letters or digits with a hyphen, trim hyphens at both ends, and use `main` when the result is empty. The chat panel sends the working-directory path of the active conversation's project, so `/home/alice/code/wboard` becomes `home-alice-code-wboard`, and the page title shows the path's last segment as `[Board: wboard]`. The same message carries the chat session id, which the browser uses only to remember that session's last board position and zoom in `localStorage`. + +```bash +curl -s 'http://localhost:6060/api/board?room=' +curl -sS -X POST 'http://localhost:6060/api/board/edit?room=' -H 'content-type: application/json' -d '{"puts":[],"deletes":[]}' +``` + +## Running the services + +Install the dependencies first with `npm ci` in this directory; they are separate from the repository's pnpm workspace. + +The sync server and the web server each run as a systemd user service. Save the two unit files below under `~/.config/systemd/user/`, with `WorkingDirectory` set to this directory. + +`wb-sync.service`: + +```ini +[Unit] +Description=Whiteboard sync server + +[Service] +WorkingDirectory=/path/to/t3code/fork/whiteboard +ExecStart=/usr/bin/env npm run server +Restart=always +RestartSec=5 + +[Install] +WantedBy=default.target +``` + +`wb-web.service`: + +```ini +[Unit] +Description=Whiteboard web server + +[Service] +WorkingDirectory=/path/to/t3code/fork/whiteboard +ExecStart=/usr/bin/env npm run dev +Restart=always +RestartSec=5 + +[Install] +WantedBy=default.target +``` + +Then enable both. `enable-linger` keeps user services running after you log out. + +```bash +loginctl enable-linger "$USER" +systemctl --user daemon-reload +systemctl --user enable --now wb-sync wb-web +``` + +Restart after a configuration change with `systemctl --user restart wb-sync wb-web`; read a log with `journalctl --user -u wb-sync -f` or `journalctl --user -u wb-web -f`. + +The whiteboard page is at `http://localhost:/`. The same port serves the chat under `/chat/` and the sync websocket under `/sync/`, so exposing `webPort` alone is enough. The Vite dev server binds localhost only. Its HMR transport is intentionally disabled for this persistent page, so refresh manually after changing client source. + +## Embedded chat + +The chat panel is an iframe holding a T3 Code instance served on `chatPort`. This directory is `fork/whiteboard/` of a T3 Code fork ([orbitingflea/t3code](https://github.com/orbitingflea/t3code)); the T3 Code at the repository root, two levels up, carries the whiteboard's embedding changes, and `run-t3.sh` here starts it. The instance keeps its own data directory and never reads a personal T3 installation. Vite proxies `/chat/` on `webPort` to it, together with the chat's own `/api`, `/ws`, and `/.well-known` paths, so the iframe loads from the whiteboard's origin. See [run-t3.md](run-t3.md) for how to build and run it. + +## Tests + +Unit tests: `npm test`. Browser probes: see [probes/README.md](probes/README.md). diff --git a/fork/whiteboard/index.html b/fork/whiteboard/index.html new file mode 100644 index 0000000000000..cb65d59077f75 --- /dev/null +++ b/fork/whiteboard/index.html @@ -0,0 +1,24 @@ + + + + + + + + + Board + + + + +
+ + + diff --git a/fork/whiteboard/package-lock.json b/fork/whiteboard/package-lock.json new file mode 100644 index 0000000000000..2099993b2464e --- /dev/null +++ b/fork/whiteboard/package-lock.json @@ -0,0 +1,5223 @@ +{ + "name": "whiteboard", + "lockfileVersion": 3, + "requires": true, + "packages": { + "": { + "name": "whiteboard", + "dependencies": { + "@benrbray/prosemirror-math": "1.0.0", + "@tiptap/core": "3.30.5", + "@tiptap/pm": "3.30.5", + "@tldraw/state-react": "5.3.2", + "@tldraw/sync": "5.3.2", + "@tldraw/sync-core": "5.3.2", + "@tldraw/tlschema": "5.3.2", + "@tldraw/utils": "5.3.2", + "katex": "0.16.47", + "react": "19.2.8", + "react-dom": "19.2.8", + "react-resizable-panels": "4.12.3", + "tldraw": "5.3.2", + "ws": "8.21.3" + }, + "bin": { + "wb": "tools/wb.mjs" + }, + "devDependencies": { + "@types/katex": "0.16.7", + "@types/node": "24.3.0", + "@types/react": "19.2.18", + "@types/react-dom": "19.2.5", + "@types/ws": "8.18.1", + "@vitejs/plugin-react": "^5.2.0", + "playwright-core": "1.61.0", + "tsx": "4.20.5", + "typescript": "5.9.2", + "vite": "7.3.6" + } + }, + "node_modules/@babel/code-frame": { + "version": "7.29.7", + "resolved": "https://registry.npmjs.org/@babel/code-frame/-/code-frame-7.29.7.tgz", + "integrity": "sha512-Aup7aUOfpbAUg2ROOJN6Iw5f9DMBlzu0mIkm/malLQFN/YQgO48wCj0Kxa3sEHJvPVFg7siR+qRInwXd2qhQKw==", + "dev": true, + "license": "MIT", + "dependencies": { + "@babel/helper-validator-identifier": "^7.29.7", + "js-tokens": "^4.0.0", + "picocolors": "^1.1.1" + }, + "engines": { + "node": ">=6.9.0" + } + }, + "node_modules/@babel/compat-data": { + "version": "7.29.7", + "resolved": "https://registry.npmjs.org/@babel/compat-data/-/compat-data-7.29.7.tgz", + "integrity": "sha512-locTkQyKvwIEgBzVrn8693ebc97F2U8ZHjbXwDXJ5Fn2TCpNwTlKcaKLkdHop5c/icOFE7qt7Q9JC5hnKNa6Gg==", + "dev": true, + "license": "MIT", + "engines": { + "node": ">=6.9.0" + } + }, + "node_modules/@babel/core": { + "version": "7.29.7", + "resolved": "https://registry.npmjs.org/@babel/core/-/core-7.29.7.tgz", + "integrity": "sha512-RgHBCvtjbOK2gXSNBNIkNoEc9qoVEtau3hj8gEqKQuL3HZAibKarWFEI3Lfm6EYKkLalOh8eSrj9b+ch9H/VBA==", + "dev": true, + "license": "MIT", + "dependencies": { + "@babel/code-frame": "^7.29.7", + "@babel/generator": "^7.29.7", + "@babel/helper-compilation-targets": "^7.29.7", + "@babel/helper-module-transforms": "^7.29.7", + "@babel/helpers": "^7.29.7", + "@babel/parser": "^7.29.7", + "@babel/template": "^7.29.7", + "@babel/traverse": "^7.29.7", + "@babel/types": "^7.29.7", + "@jridgewell/remapping": "^2.3.5", + "convert-source-map": "^2.0.0", + "debug": "^4.1.0", + "gensync": "^1.0.0-beta.2", + "json5": "^2.2.3", + "semver": "^6.3.1" + }, + "engines": { + "node": ">=6.9.0" + }, + "funding": { + "type": "opencollective", + "url": "https://opencollective.com/babel" + } + }, + "node_modules/@babel/generator": { + "version": "7.29.8", + "resolved": "https://registry.npmjs.org/@babel/generator/-/generator-7.29.8.tgz", + "integrity": "sha512-gZbepsdh3WDtgZKWL+vTPh71LSBrm/Y4/QDZBVCcYfmeTEEuoOYwlSy+G1StfJg+/Zy550u/3TATbm7qDbbMtg==", + "dev": true, + "license": "MIT", + "dependencies": { + "@babel/parser": "^7.29.8", + "@babel/types": "^7.29.8", + "@jridgewell/gen-mapping": "^0.3.12", + "@jridgewell/trace-mapping": "^0.3.28", + "jsesc": "^3.0.2" + }, + "engines": { + "node": ">=6.9.0" + } + }, + "node_modules/@babel/helper-compilation-targets": { + "version": "7.29.7", + "resolved": "https://registry.npmjs.org/@babel/helper-compilation-targets/-/helper-compilation-targets-7.29.7.tgz", + "integrity": "sha512-wem6WaBj4NaVYVdNhLPPVacES6ZJ+KBBfSkTMD3YZxbP3rm3Di85tJU5ljaUNhaOynt+Aj0xruhYuzQBt8n71g==", + "dev": true, + "license": "MIT", + "dependencies": { + "@babel/compat-data": "^7.29.7", + "@babel/helper-validator-option": "^7.29.7", + "browserslist": "^4.24.0", + "lru-cache": "^5.1.1", + "semver": "^6.3.1" + }, + "engines": { + "node": ">=6.9.0" + } + }, + "node_modules/@babel/helper-globals": { + "version": "7.29.7", + "resolved": "https://registry.npmjs.org/@babel/helper-globals/-/helper-globals-7.29.7.tgz", + "integrity": "sha512-3nQVUAtvkKH9zahfWgw96Jc/uFOmjACE1kQz82E2lqWmHBgjzbNlsC22nuQTfahmWeQtTq5nQ/4Nnd2A1wj4zA==", + "dev": true, + "license": "MIT", + "engines": { + "node": ">=6.9.0" + } + }, + "node_modules/@babel/helper-module-imports": { + "version": "7.29.7", + "resolved": "https://registry.npmjs.org/@babel/helper-module-imports/-/helper-module-imports-7.29.7.tgz", + "integrity": "sha512-ejHwrQQYcm9xnTivShn2IDOlIzInN34AXskvq9QicvCtEzq1Vzclu/tKF8Jq1Cg8JG2GL6/EmjgsCT7lXepE3g==", + "dev": true, + "license": "MIT", + "dependencies": { + "@babel/traverse": "^7.29.7", + "@babel/types": "^7.29.7" + }, + "engines": { + "node": ">=6.9.0" + } + }, + "node_modules/@babel/helper-module-transforms": { + "version": "7.29.7", + "resolved": "https://registry.npmjs.org/@babel/helper-module-transforms/-/helper-module-transforms-7.29.7.tgz", + "integrity": "sha512-UPUVSyXbOh627KiCIGQSgwWzGeBKLkaJ9PJEdrngIwMSzxLR4jS4+f1f1jb7VzBbg8nFLaYotvVPFCTqdrmTAg==", + "dev": true, + "license": "MIT", + "dependencies": { + "@babel/helper-module-imports": "^7.29.7", + "@babel/helper-validator-identifier": "^7.29.7", + "@babel/traverse": "^7.29.7" + }, + "engines": { + "node": ">=6.9.0" + }, + "peerDependencies": { + "@babel/core": "^7.0.0" + } + }, + "node_modules/@babel/helper-plugin-utils": { + "version": "7.29.7", + "resolved": "https://registry.npmjs.org/@babel/helper-plugin-utils/-/helper-plugin-utils-7.29.7.tgz", + "integrity": "sha512-G7sHYigPY17oO5SYWnfD/0MTBwVR781S/JI643e/JhUYgVgWE/61SoW3NH9KWUKyKq5LVh3npif99Wkt6j86Jw==", + "dev": true, + "license": "MIT", + "engines": { + "node": ">=6.9.0" + } + }, + "node_modules/@babel/helper-string-parser": { + "version": "7.29.7", + "resolved": "https://registry.npmjs.org/@babel/helper-string-parser/-/helper-string-parser-7.29.7.tgz", + "integrity": "sha512-Pb5ijPrZ89GDH8223L4UP8i6QApWxs04RbPQJTeWDV0/keR2E36MeKnyr6LYmUUvqRRI+Iv87SuF1W6ErINzYw==", + "dev": true, + "license": "MIT", + "engines": { + "node": ">=6.9.0" + } + }, + "node_modules/@babel/helper-validator-identifier": { + "version": "7.29.7", + "resolved": "https://registry.npmjs.org/@babel/helper-validator-identifier/-/helper-validator-identifier-7.29.7.tgz", + "integrity": "sha512-qehxGkRj55h/ff8EMaJ+cYhyaKlHIxqYDn682wQD7RNp9UujOQsHog2uS0r2vzr4pW+sXf90NeeayjcNaX3fFg==", + "dev": true, + "license": "MIT", + "engines": { + "node": ">=6.9.0" + } + }, + "node_modules/@babel/helper-validator-option": { + "version": "7.29.7", + "resolved": "https://registry.npmjs.org/@babel/helper-validator-option/-/helper-validator-option-7.29.7.tgz", + "integrity": "sha512-N9ZErrD+yW5geCDtBqnOoxmR8+tNKiGuxKlDpuJxfsqpa2dFcexaziGAE/qoHLiDDreVNMupxGmSoNlyvsA3gw==", + "dev": true, + "license": "MIT", + "engines": { + "node": ">=6.9.0" + } + }, + "node_modules/@babel/helpers": { + "version": "7.29.7", + "resolved": "https://registry.npmjs.org/@babel/helpers/-/helpers-7.29.7.tgz", + "integrity": "sha512-1k2lAGRMfHTcwuNYcCNUmaUffmQv8KWMfh2iJUUeRlwlwH4FdNG7mfPI10NPfLHJFThE4Tyr4mv7kTNZOiPuBg==", + "dev": true, + "license": "MIT", + "dependencies": { + "@babel/template": "^7.29.7", + "@babel/types": "^7.29.7" + }, + "engines": { + "node": ">=6.9.0" + } + }, + "node_modules/@babel/parser": { + "version": "7.29.8", + "resolved": "https://registry.npmjs.org/@babel/parser/-/parser-7.29.8.tgz", + "integrity": "sha512-E8lTAYNB1KW+FH+VGJuZM1ioAx2E6oVlvQFRrf5P8ZZmsiJXYAD9vTFV7yyEURNzgh1dFqMZuO6tUwcARbqFCA==", + "dev": true, + "license": "MIT", + "dependencies": { + "@babel/types": "^7.29.8" + }, + "bin": { + "parser": "bin/babel-parser.js" + }, + "engines": { + "node": ">=6.0.0" + } + }, + "node_modules/@babel/plugin-transform-react-jsx-self": { + "version": "7.29.7", + "resolved": "https://registry.npmjs.org/@babel/plugin-transform-react-jsx-self/-/plugin-transform-react-jsx-self-7.29.7.tgz", + "integrity": "sha512-TL0hMc9xzy86VD31nUiwzd5otRAcyEPcsegCxolO0PvcXuH1v0kECe/UIznYFihpkvU5wg/jk4v0TTEFfm53fw==", + "dev": true, + "license": "MIT", + "dependencies": { + "@babel/helper-plugin-utils": "^7.29.7" + }, + "engines": { + "node": ">=6.9.0" + }, + "peerDependencies": { + "@babel/core": "^7.0.0-0" + } + }, + "node_modules/@babel/plugin-transform-react-jsx-source": { + "version": "7.29.7", + "resolved": "https://registry.npmjs.org/@babel/plugin-transform-react-jsx-source/-/plugin-transform-react-jsx-source-7.29.7.tgz", + "integrity": "sha512-06IyK09H3wi4cGbhDBwp5gUGo0IKtnYa8tyTiephirPCK6fbobVGiXMMI5zLQ4aKEYP3wZ3ArU44o+8KMrSG/Q==", + "dev": true, + "license": "MIT", + "dependencies": { + "@babel/helper-plugin-utils": "^7.29.7" + }, + "engines": { + "node": ">=6.9.0" + }, + "peerDependencies": { + "@babel/core": "^7.0.0-0" + } + }, + "node_modules/@babel/template": { + "version": "7.29.7", + "resolved": "https://registry.npmjs.org/@babel/template/-/template-7.29.7.tgz", + "integrity": "sha512-puq+Gf35oI24FeN11LkoUQFqv9uwNeWpxXZi/Ji3rRIoKAzKnxRaZ+Gkj0vKS9ZCiTESfng1N9LyOyXvo+m+Gg==", + "dev": true, + "license": "MIT", + "dependencies": { + "@babel/code-frame": "^7.29.7", + "@babel/parser": "^7.29.7", + "@babel/types": "^7.29.7" + }, + "engines": { + "node": ">=6.9.0" + } + }, + "node_modules/@babel/traverse": { + "version": "7.29.8", + "resolved": "https://registry.npmjs.org/@babel/traverse/-/traverse-7.29.8.tgz", + "integrity": "sha512-I5z7H3bf/41ktsNVLtpN0wAa336HkqIHQ5BuPLEhTkt1jVSyZpeNKIzTgEWmlxjdg81R0IgUCcaE+Ok3NvrfZg==", + "dev": true, + "license": "MIT", + "dependencies": { + "@babel/code-frame": "^7.29.7", + "@babel/generator": "^7.29.8", + "@babel/helper-globals": "^7.29.7", + "@babel/parser": "^7.29.8", + "@babel/template": "^7.29.7", + "@babel/types": "^7.29.8", + "debug": "^4.3.1" + }, + "engines": { + "node": ">=6.9.0" + } + }, + "node_modules/@babel/types": { + "version": "7.29.8", + "resolved": "https://registry.npmjs.org/@babel/types/-/types-7.29.8.tgz", + "integrity": "sha512-Vj1jF3cPfxg7OAfoI7QnVKLoILlm2JF9pnVHrX8qx7AHMiYWT+NDAA7jChlNgRS4WTLc/fD1lXLmPixluj+3Gg==", + "dev": true, + "license": "MIT", + "dependencies": { + "@babel/helper-string-parser": "^7.29.7", + "@babel/helper-validator-identifier": "^7.29.7" + }, + "engines": { + "node": ">=6.9.0" + } + }, + "node_modules/@benrbray/prosemirror-math": { + "version": "1.0.0", + "resolved": "https://registry.npmjs.org/@benrbray/prosemirror-math/-/prosemirror-math-1.0.0.tgz", + "integrity": "sha512-5fPeOKP6SJJ3usXhhf6vnLXGJnfPHPzv0OdsOJlGkCdZvNfCuC6f8fZqgpmnP8vxDKjB8fvSVSmAHTMsaiXc6w==", + "license": "MIT", + "peerDependencies": { + "katex": "^0.16.10", + "prosemirror-commands": "^1.5.2", + "prosemirror-history": "^1.4.0", + "prosemirror-inputrules": "^1.4.0", + "prosemirror-keymap": "^1.2.2", + "prosemirror-model": "^1.20.0", + "prosemirror-state": "^1.4.3", + "prosemirror-transform": "^1.8.0", + "prosemirror-view": "^1.33.4" + } + }, + "node_modules/@esbuild/aix-ppc64": { + "version": "0.25.12", + "resolved": "https://registry.npmjs.org/@esbuild/aix-ppc64/-/aix-ppc64-0.25.12.tgz", + "integrity": "sha512-Hhmwd6CInZ3dwpuGTF8fJG6yoWmsToE+vYgD4nytZVxcu1ulHpUQRAB1UJ8+N1Am3Mz4+xOByoQoSZf4D+CpkA==", + "cpu": [ + "ppc64" + ], + "dev": true, + "license": "MIT", + "optional": true, + "os": [ + "aix" + ], + "engines": { + "node": ">=18" + } + }, + "node_modules/@esbuild/android-arm": { + "version": "0.25.12", + "resolved": "https://registry.npmjs.org/@esbuild/android-arm/-/android-arm-0.25.12.tgz", + "integrity": "sha512-VJ+sKvNA/GE7Ccacc9Cha7bpS8nyzVv0jdVgwNDaR4gDMC/2TTRc33Ip8qrNYUcpkOHUT5OZ0bUcNNVZQ9RLlg==", + "cpu": [ + "arm" + ], + "dev": true, + "license": "MIT", + "optional": true, + "os": [ + "android" + ], + "engines": { + "node": ">=18" + } + }, + "node_modules/@esbuild/android-arm64": { + "version": "0.25.12", + "resolved": "https://registry.npmjs.org/@esbuild/android-arm64/-/android-arm64-0.25.12.tgz", + "integrity": "sha512-6AAmLG7zwD1Z159jCKPvAxZd4y/VTO0VkprYy+3N2FtJ8+BQWFXU+OxARIwA46c5tdD9SsKGZ/1ocqBS/gAKHg==", + "cpu": [ + "arm64" + ], + "dev": true, + "license": "MIT", + "optional": true, + "os": [ + "android" + ], + "engines": { + "node": ">=18" + } + }, + "node_modules/@esbuild/android-x64": { + "version": "0.25.12", + "resolved": "https://registry.npmjs.org/@esbuild/android-x64/-/android-x64-0.25.12.tgz", + "integrity": "sha512-5jbb+2hhDHx5phYR2By8GTWEzn6I9UqR11Kwf22iKbNpYrsmRB18aX/9ivc5cabcUiAT/wM+YIZ6SG9QO6a8kg==", + "cpu": [ + "x64" + ], + "dev": true, + "license": "MIT", + "optional": true, + "os": [ + "android" + ], + "engines": { + "node": ">=18" + } + }, + "node_modules/@esbuild/darwin-arm64": { + "version": "0.25.12", + "resolved": "https://registry.npmjs.org/@esbuild/darwin-arm64/-/darwin-arm64-0.25.12.tgz", + "integrity": "sha512-N3zl+lxHCifgIlcMUP5016ESkeQjLj/959RxxNYIthIg+CQHInujFuXeWbWMgnTo4cp5XVHqFPmpyu9J65C1Yg==", + "cpu": [ + "arm64" + ], + "dev": true, + "license": "MIT", + "optional": true, + "os": [ + "darwin" + ], + "engines": { + "node": ">=18" + } + }, + "node_modules/@esbuild/darwin-x64": { + "version": "0.25.12", + "resolved": "https://registry.npmjs.org/@esbuild/darwin-x64/-/darwin-x64-0.25.12.tgz", + "integrity": "sha512-HQ9ka4Kx21qHXwtlTUVbKJOAnmG1ipXhdWTmNXiPzPfWKpXqASVcWdnf2bnL73wgjNrFXAa3yYvBSd9pzfEIpA==", + "cpu": [ + "x64" + ], + "dev": true, + "license": "MIT", + "optional": true, + "os": [ + "darwin" + ], + "engines": { + "node": ">=18" + } + }, + "node_modules/@esbuild/freebsd-arm64": { + "version": "0.25.12", + "resolved": "https://registry.npmjs.org/@esbuild/freebsd-arm64/-/freebsd-arm64-0.25.12.tgz", + "integrity": "sha512-gA0Bx759+7Jve03K1S0vkOu5Lg/85dou3EseOGUes8flVOGxbhDDh/iZaoek11Y8mtyKPGF3vP8XhnkDEAmzeg==", + "cpu": [ + "arm64" + ], + "dev": true, + "license": "MIT", + "optional": true, + "os": [ + "freebsd" + ], + "engines": { + "node": ">=18" + } + }, + "node_modules/@esbuild/freebsd-x64": { + "version": "0.25.12", + "resolved": "https://registry.npmjs.org/@esbuild/freebsd-x64/-/freebsd-x64-0.25.12.tgz", + "integrity": "sha512-TGbO26Yw2xsHzxtbVFGEXBFH0FRAP7gtcPE7P5yP7wGy7cXK2oO7RyOhL5NLiqTlBh47XhmIUXuGciXEqYFfBQ==", + "cpu": [ + "x64" + ], + "dev": true, + "license": "MIT", + "optional": true, + "os": [ + "freebsd" + ], + "engines": { + "node": ">=18" + } + }, + "node_modules/@esbuild/linux-arm": { + "version": "0.25.12", + "resolved": "https://registry.npmjs.org/@esbuild/linux-arm/-/linux-arm-0.25.12.tgz", + "integrity": "sha512-lPDGyC1JPDou8kGcywY0YILzWlhhnRjdof3UlcoqYmS9El818LLfJJc3PXXgZHrHCAKs/Z2SeZtDJr5MrkxtOw==", + "cpu": [ + "arm" + ], + "dev": true, + "license": "MIT", + "optional": true, + "os": [ + "linux" + ], + "engines": { + "node": ">=18" + } + }, + "node_modules/@esbuild/linux-arm64": { + "version": "0.25.12", + "resolved": "https://registry.npmjs.org/@esbuild/linux-arm64/-/linux-arm64-0.25.12.tgz", + "integrity": "sha512-8bwX7a8FghIgrupcxb4aUmYDLp8pX06rGh5HqDT7bB+8Rdells6mHvrFHHW2JAOPZUbnjUpKTLg6ECyzvas2AQ==", + "cpu": [ + "arm64" + ], + "dev": true, + "license": "MIT", + "optional": true, + "os": [ + "linux" + ], + "engines": { + "node": ">=18" + } + }, + "node_modules/@esbuild/linux-ia32": { + "version": "0.25.12", + "resolved": "https://registry.npmjs.org/@esbuild/linux-ia32/-/linux-ia32-0.25.12.tgz", + "integrity": "sha512-0y9KrdVnbMM2/vG8KfU0byhUN+EFCny9+8g202gYqSSVMonbsCfLjUO+rCci7pM0WBEtz+oK/PIwHkzxkyharA==", + "cpu": [ + "ia32" + ], + "dev": true, + "license": "MIT", + "optional": true, + "os": [ + "linux" + ], + "engines": { + "node": ">=18" + } + }, + "node_modules/@esbuild/linux-loong64": { + "version": "0.25.12", + "resolved": "https://registry.npmjs.org/@esbuild/linux-loong64/-/linux-loong64-0.25.12.tgz", + "integrity": "sha512-h///Lr5a9rib/v1GGqXVGzjL4TMvVTv+s1DPoxQdz7l/AYv6LDSxdIwzxkrPW438oUXiDtwM10o9PmwS/6Z0Ng==", + "cpu": [ + "loong64" + ], + "dev": true, + "license": "MIT", + "optional": true, + "os": [ + "linux" + ], + "engines": { + "node": ">=18" + } + }, + "node_modules/@esbuild/linux-mips64el": { + "version": "0.25.12", + "resolved": "https://registry.npmjs.org/@esbuild/linux-mips64el/-/linux-mips64el-0.25.12.tgz", + "integrity": "sha512-iyRrM1Pzy9GFMDLsXn1iHUm18nhKnNMWscjmp4+hpafcZjrr2WbT//d20xaGljXDBYHqRcl8HnxbX6uaA/eGVw==", + "cpu": [ + "mips64el" + ], + "dev": true, + "license": "MIT", + "optional": true, + "os": [ + "linux" + ], + "engines": { + "node": ">=18" + } + }, + "node_modules/@esbuild/linux-ppc64": { + "version": "0.25.12", + "resolved": "https://registry.npmjs.org/@esbuild/linux-ppc64/-/linux-ppc64-0.25.12.tgz", + "integrity": "sha512-9meM/lRXxMi5PSUqEXRCtVjEZBGwB7P/D4yT8UG/mwIdze2aV4Vo6U5gD3+RsoHXKkHCfSxZKzmDssVlRj1QQA==", + "cpu": [ + "ppc64" + ], + "dev": true, + "license": "MIT", + "optional": true, + "os": [ + "linux" + ], + "engines": { + "node": ">=18" + } + }, + "node_modules/@esbuild/linux-riscv64": { + "version": "0.25.12", + "resolved": "https://registry.npmjs.org/@esbuild/linux-riscv64/-/linux-riscv64-0.25.12.tgz", + "integrity": "sha512-Zr7KR4hgKUpWAwb1f3o5ygT04MzqVrGEGXGLnj15YQDJErYu/BGg+wmFlIDOdJp0PmB0lLvxFIOXZgFRrdjR0w==", + "cpu": [ + "riscv64" + ], + "dev": true, + "license": "MIT", + "optional": true, + "os": [ + "linux" + ], + "engines": { + "node": ">=18" + } + }, + "node_modules/@esbuild/linux-s390x": { + "version": "0.25.12", + "resolved": "https://registry.npmjs.org/@esbuild/linux-s390x/-/linux-s390x-0.25.12.tgz", + "integrity": "sha512-MsKncOcgTNvdtiISc/jZs/Zf8d0cl/t3gYWX8J9ubBnVOwlk65UIEEvgBORTiljloIWnBzLs4qhzPkJcitIzIg==", + "cpu": [ + "s390x" + ], + "dev": true, + "license": "MIT", + "optional": true, + "os": [ + "linux" + ], + "engines": { + "node": ">=18" + } + }, + "node_modules/@esbuild/linux-x64": { + "version": "0.25.12", + "resolved": "https://registry.npmjs.org/@esbuild/linux-x64/-/linux-x64-0.25.12.tgz", + "integrity": "sha512-uqZMTLr/zR/ed4jIGnwSLkaHmPjOjJvnm6TVVitAa08SLS9Z0VM8wIRx7gWbJB5/J54YuIMInDquWyYvQLZkgw==", + "cpu": [ + "x64" + ], + "dev": true, + "license": "MIT", + "optional": true, + "os": [ + "linux" + ], + "engines": { + "node": ">=18" + } + }, + "node_modules/@esbuild/netbsd-arm64": { + "version": "0.25.12", + "resolved": "https://registry.npmjs.org/@esbuild/netbsd-arm64/-/netbsd-arm64-0.25.12.tgz", + "integrity": "sha512-xXwcTq4GhRM7J9A8Gv5boanHhRa/Q9KLVmcyXHCTaM4wKfIpWkdXiMog/KsnxzJ0A1+nD+zoecuzqPmCRyBGjg==", + "cpu": [ + "arm64" + ], + "dev": true, + "license": "MIT", + "optional": true, + "os": [ + "netbsd" + ], + "engines": { + "node": ">=18" + } + }, + "node_modules/@esbuild/netbsd-x64": { + "version": "0.25.12", + "resolved": "https://registry.npmjs.org/@esbuild/netbsd-x64/-/netbsd-x64-0.25.12.tgz", + "integrity": "sha512-Ld5pTlzPy3YwGec4OuHh1aCVCRvOXdH8DgRjfDy/oumVovmuSzWfnSJg+VtakB9Cm0gxNO9BzWkj6mtO1FMXkQ==", + "cpu": [ + "x64" + ], + "dev": true, + "license": "MIT", + "optional": true, + "os": [ + "netbsd" + ], + "engines": { + "node": ">=18" + } + }, + "node_modules/@esbuild/openbsd-arm64": { + "version": "0.25.12", + "resolved": "https://registry.npmjs.org/@esbuild/openbsd-arm64/-/openbsd-arm64-0.25.12.tgz", + "integrity": "sha512-fF96T6KsBo/pkQI950FARU9apGNTSlZGsv1jZBAlcLL1MLjLNIWPBkj5NlSz8aAzYKg+eNqknrUJ24QBybeR5A==", + "cpu": [ + "arm64" + ], + "dev": true, + "license": "MIT", + "optional": true, + "os": [ + "openbsd" + ], + "engines": { + "node": ">=18" + } + }, + "node_modules/@esbuild/openbsd-x64": { + "version": "0.25.12", + "resolved": "https://registry.npmjs.org/@esbuild/openbsd-x64/-/openbsd-x64-0.25.12.tgz", + "integrity": "sha512-MZyXUkZHjQxUvzK7rN8DJ3SRmrVrke8ZyRusHlP+kuwqTcfWLyqMOE3sScPPyeIXN/mDJIfGXvcMqCgYKekoQw==", + "cpu": [ + "x64" + ], + "dev": true, + "license": "MIT", + "optional": true, + "os": [ + "openbsd" + ], + "engines": { + "node": ">=18" + } + }, + "node_modules/@esbuild/openharmony-arm64": { + "version": "0.25.12", + "resolved": "https://registry.npmjs.org/@esbuild/openharmony-arm64/-/openharmony-arm64-0.25.12.tgz", + "integrity": "sha512-rm0YWsqUSRrjncSXGA7Zv78Nbnw4XL6/dzr20cyrQf7ZmRcsovpcRBdhD43Nuk3y7XIoW2OxMVvwuRvk9XdASg==", + "cpu": [ + "arm64" + ], + "dev": true, + "license": "MIT", + "optional": true, + "os": [ + "openharmony" + ], + "engines": { + "node": ">=18" + } + }, + "node_modules/@esbuild/sunos-x64": { + "version": "0.25.12", + "resolved": "https://registry.npmjs.org/@esbuild/sunos-x64/-/sunos-x64-0.25.12.tgz", + "integrity": "sha512-3wGSCDyuTHQUzt0nV7bocDy72r2lI33QL3gkDNGkod22EsYl04sMf0qLb8luNKTOmgF/eDEDP5BFNwoBKH441w==", + "cpu": [ + "x64" + ], + "dev": true, + "license": "MIT", + "optional": true, + "os": [ + "sunos" + ], + "engines": { + "node": ">=18" + } + }, + "node_modules/@esbuild/win32-arm64": { + "version": "0.25.12", + "resolved": "https://registry.npmjs.org/@esbuild/win32-arm64/-/win32-arm64-0.25.12.tgz", + "integrity": "sha512-rMmLrur64A7+DKlnSuwqUdRKyd3UE7oPJZmnljqEptesKM8wx9J8gx5u0+9Pq0fQQW8vqeKebwNXdfOyP+8Bsg==", + "cpu": [ + "arm64" + ], + "dev": true, + "license": "MIT", + "optional": true, + "os": [ + "win32" + ], + "engines": { + "node": ">=18" + } + }, + "node_modules/@esbuild/win32-ia32": { + "version": "0.25.12", + "resolved": "https://registry.npmjs.org/@esbuild/win32-ia32/-/win32-ia32-0.25.12.tgz", + "integrity": "sha512-HkqnmmBoCbCwxUKKNPBixiWDGCpQGVsrQfJoVGYLPT41XWF8lHuE5N6WhVia2n4o5QK5M4tYr21827fNhi4byQ==", + "cpu": [ + "ia32" + ], + "dev": true, + "license": "MIT", + "optional": true, + "os": [ + "win32" + ], + "engines": { + "node": ">=18" + } + }, + "node_modules/@esbuild/win32-x64": { + "version": "0.25.12", + "resolved": "https://registry.npmjs.org/@esbuild/win32-x64/-/win32-x64-0.25.12.tgz", + "integrity": "sha512-alJC0uCZpTFrSL0CCDjcgleBXPnCrEAhTBILpeAp7M/OFgoqtAetfBzX0xM00MUsVVPpVjlPuMbREqnZCXaTnA==", + "cpu": [ + "x64" + ], + "dev": true, + "license": "MIT", + "optional": true, + "os": [ + "win32" + ], + "engines": { + "node": ">=18" + } + }, + "node_modules/@floating-ui/core": { + "version": "1.8.0", + "resolved": "https://registry.npmjs.org/@floating-ui/core/-/core-1.8.0.tgz", + "integrity": "sha512-0CIZ5itps/8x7BG8dEIhs53BvCUH2PCoogtakwRTut+Arm58sJooJ0AuZhLw2HJYIR5cMLNPBSS728sPho2khQ==", + "license": "MIT", + "dependencies": { + "@floating-ui/utils": "^0.2.12" + } + }, + "node_modules/@floating-ui/dom": { + "version": "1.8.0", + "resolved": "https://registry.npmjs.org/@floating-ui/dom/-/dom-1.8.0.tgz", + "integrity": "sha512-yXSrzeHZBTZadLOlfyhCkJHNeLJnHRnRInwdZ40L7ZiaAtrBwoYlsDrX3v5zB1Utk7CLfzcOVnVVWoXEky7Ceg==", + "license": "MIT", + "dependencies": { + "@floating-ui/core": "^1.8.0", + "@floating-ui/utils": "^0.2.12" + } + }, + "node_modules/@floating-ui/react-dom": { + "version": "2.1.9", + "resolved": "https://registry.npmjs.org/@floating-ui/react-dom/-/react-dom-2.1.9.tgz", + "integrity": "sha512-JDjEFGCpImxDCA7JJKviA0M9+RtmJdj0m/NVU5IMgBK+AmZouAQQ7/+2GLH0GXXY0YMw9oXPB8hKdbPYg5QLYg==", + "license": "MIT", + "dependencies": { + "@floating-ui/dom": "^1.8.0" + }, + "peerDependencies": { + "react": ">=16.8.0", + "react-dom": ">=16.8.0" + } + }, + "node_modules/@floating-ui/utils": { + "version": "0.2.12", + "resolved": "https://registry.npmjs.org/@floating-ui/utils/-/utils-0.2.12.tgz", + "integrity": "sha512-HpCo8tmWzLVad5s2d19EhAz5zqrrQ6s69qd6moPMQvkOuSwDT1YgRfWSVuc4ennqrgv3OHppiOGMQ7oC13yIww==", + "license": "MIT" + }, + "node_modules/@jridgewell/gen-mapping": { + "version": "0.3.13", + "resolved": "https://registry.npmjs.org/@jridgewell/gen-mapping/-/gen-mapping-0.3.13.tgz", + "integrity": "sha512-2kkt/7niJ6MgEPxF0bYdQ6etZaA+fQvDcLKckhy1yIQOzaoKjBBjSj63/aLVjYE3qhRt5dvM+uUyfCg6UKCBbA==", + "dev": true, + "license": "MIT", + "dependencies": { + "@jridgewell/sourcemap-codec": "^1.5.0", + "@jridgewell/trace-mapping": "^0.3.24" + } + }, + "node_modules/@jridgewell/remapping": { + "version": "2.3.5", + "resolved": "https://registry.npmjs.org/@jridgewell/remapping/-/remapping-2.3.5.tgz", + "integrity": "sha512-LI9u/+laYG4Ds1TDKSJW2YPrIlcVYOwi2fUC6xB43lueCjgxV4lffOCZCtYFiH6TNOX+tQKXx97T4IKHbhyHEQ==", + "dev": true, + "license": "MIT", + "dependencies": { + "@jridgewell/gen-mapping": "^0.3.5", + "@jridgewell/trace-mapping": "^0.3.24" + } + }, + "node_modules/@jridgewell/resolve-uri": { + "version": "3.1.2", + "resolved": "https://registry.npmjs.org/@jridgewell/resolve-uri/-/resolve-uri-3.1.2.tgz", + "integrity": "sha512-bRISgCIjP20/tbWSPWMEi54QVPRZExkuD9lJL+UIxUKtwVJA8wW1Trb1jMs1RFXo1CBTNZ/5hpC9QvmKWdopKw==", + "dev": true, + "license": "MIT", + "engines": { + "node": ">=6.0.0" + } + }, + "node_modules/@jridgewell/sourcemap-codec": { + "version": "1.6.0", + "resolved": "https://registry.npmjs.org/@jridgewell/sourcemap-codec/-/sourcemap-codec-1.6.0.tgz", + "integrity": "sha512-T7jf+5zgsZHwNJ4lvQ7/aezbyk0nNX+zJVWpmHA7VYsEx7a7qr5Rg5IbtJFqkgze5Y2sruq1RUY8Q837Od7iFw==", + "dev": true, + "license": "MIT" + }, + "node_modules/@jridgewell/trace-mapping": { + "version": "0.3.31", + "resolved": "https://registry.npmjs.org/@jridgewell/trace-mapping/-/trace-mapping-0.3.31.tgz", + "integrity": "sha512-zzNR+SdQSDJzc8joaeP8QQoCQr8NuYx2dIIytl1QeBEZHJ9uW6hebsrYgbz8hJwUQao3TWCMtmfV8Nu1twOLAw==", + "dev": true, + "license": "MIT", + "dependencies": { + "@jridgewell/resolve-uri": "^3.1.0", + "@jridgewell/sourcemap-codec": "^1.4.14" + } + }, + "node_modules/@napi-rs/lzma-linux-x64-gnu": { + "version": "1.5.1", + "resolved": "https://registry.npmjs.org/@napi-rs/lzma-linux-x64-gnu/-/lzma-linux-x64-gnu-1.5.1.tgz", + "integrity": "sha512-oTXEIha4SsuXdTA4Iyskj0kpdx2yVXdhd75c2v3xGrHFfVMsbhTPZU/nMPL4sWKo4pBHm3aucLaqGlF696dTyQ==", + "cpu": [ + "x64" + ], + "dev": true, + "libc": [ + "glibc" + ], + "license": "MIT", + "optional": true, + "os": [ + "linux" + ], + "engines": { + "node": "^22.20 || ^24.12 || >=25" + } + }, + "node_modules/@radix-ui/number": { + "version": "1.1.3", + "resolved": "https://registry.npmjs.org/@radix-ui/number/-/number-1.1.3.tgz", + "integrity": "sha512-Road2bidD0uu/1BGDOWNdPI06g0lIRy6IF9GZcIrDK2KGItfor8IQwQa+yM2ERgHM1MmHxaxpTzk0/Jp42lNfA==", + "license": "MIT" + }, + "node_modules/@radix-ui/primitive": { + "version": "1.1.7", + "resolved": "https://registry.npmjs.org/@radix-ui/primitive/-/primitive-1.1.7.tgz", + "integrity": "sha512-rqWnm76nYT8HoNNqEjpgJ7Pw/DrBj5iBTrmEPo6HTX5+VJyBNOqTdv4g89G63HuR5g0AaENoAcH7Is5fF2kZ8Q==", + "license": "MIT" + }, + "node_modules/@radix-ui/react-accessible-icon": { + "version": "1.1.15", + "resolved": "https://registry.npmjs.org/@radix-ui/react-accessible-icon/-/react-accessible-icon-1.1.15.tgz", + "integrity": "sha512-WTQwcAvQf5sOcuUyi90lKPbhwcvQ+j55cjrSmeaN+L2vKU3DooOvlKw2MDeiJ5IkV5N905KW0/fGojKOBhD11A==", + "license": "MIT", + "dependencies": { + "@radix-ui/react-visually-hidden": "1.2.11" + }, + "peerDependencies": { + "@types/react": "*", + "@types/react-dom": "*", + "react": "^16.8 || ^17.0 || ^18.0 || ^19.0 || ^19.0.0-rc", + "react-dom": "^16.8 || ^17.0 || ^18.0 || ^19.0 || ^19.0.0-rc" + }, + "peerDependenciesMeta": { + "@types/react": { + "optional": true + }, + "@types/react-dom": { + "optional": true + } + } + }, + "node_modules/@radix-ui/react-accordion": { + "version": "1.2.20", + "resolved": "https://registry.npmjs.org/@radix-ui/react-accordion/-/react-accordion-1.2.20.tgz", + "integrity": "sha512-jDhG9FvAEnlhnjrsINbNXcUa4G+L1KqSkJSunkbKEzFRcAb52jvM0PjPxPRvhe1HNc5F5yc0yzzWeeqlH4yBIg==", + "license": "MIT", + "dependencies": { + "@radix-ui/primitive": "1.1.7", + "@radix-ui/react-collapsible": "1.1.20", + "@radix-ui/react-collection": "1.1.15", + "@radix-ui/react-compose-refs": "1.1.5", + "@radix-ui/react-context": "1.2.2", + "@radix-ui/react-direction": "1.1.4", + "@radix-ui/react-id": "1.1.4", + "@radix-ui/react-primitive": "2.1.10", + "@radix-ui/react-use-controllable-state": "1.2.6" + }, + "peerDependencies": { + "@types/react": "*", + "@types/react-dom": "*", + "react": "^16.8 || ^17.0 || ^18.0 || ^19.0 || ^19.0.0-rc", + "react-dom": "^16.8 || ^17.0 || ^18.0 || ^19.0 || ^19.0.0-rc" + }, + "peerDependenciesMeta": { + "@types/react": { + "optional": true + }, + "@types/react-dom": { + "optional": true + } + } + }, + "node_modules/@radix-ui/react-alert-dialog": { + "version": "1.1.23", + "resolved": "https://registry.npmjs.org/@radix-ui/react-alert-dialog/-/react-alert-dialog-1.1.23.tgz", + "integrity": "sha512-VAYOiQRqj3GPpYJE0I9J+X8Ip05cyVlNdKOFeiGS2Ou1HHGfpl0BxOyZm6nmVDyU+W+NF3/XLzmjHmVGydhwgA==", + "license": "MIT", + "dependencies": { + "@radix-ui/primitive": "1.1.7", + "@radix-ui/react-compose-refs": "1.1.5", + "@radix-ui/react-context": "1.2.2", + "@radix-ui/react-dialog": "1.1.23", + "@radix-ui/react-primitive": "2.1.10" + }, + "peerDependencies": { + "@types/react": "*", + "@types/react-dom": "*", + "react": "^16.8 || ^17.0 || ^18.0 || ^19.0 || ^19.0.0-rc", + "react-dom": "^16.8 || ^17.0 || ^18.0 || ^19.0 || ^19.0.0-rc" + }, + "peerDependenciesMeta": { + "@types/react": { + "optional": true + }, + "@types/react-dom": { + "optional": true + } + } + }, + "node_modules/@radix-ui/react-arrow": { + "version": "1.1.15", + "resolved": "https://registry.npmjs.org/@radix-ui/react-arrow/-/react-arrow-1.1.15.tgz", + "integrity": "sha512-v4zggRcjadnI+ClKDuijlQEW4tw3NoaeHc/PwpKnLoLLKNUG4InLegkstooLcRIUWCs+8L22dGURCVuFfOKfnA==", + "license": "MIT", + "dependencies": { + "@radix-ui/react-primitive": "2.1.10" + }, + "peerDependencies": { + "@types/react": "*", + "@types/react-dom": "*", + "react": "^16.8 || ^17.0 || ^18.0 || ^19.0 || ^19.0.0-rc", + "react-dom": "^16.8 || ^17.0 || ^18.0 || ^19.0 || ^19.0.0-rc" + }, + "peerDependenciesMeta": { + "@types/react": { + "optional": true + }, + "@types/react-dom": { + "optional": true + } + } + }, + "node_modules/@radix-ui/react-aspect-ratio": { + "version": "1.1.15", + "resolved": "https://registry.npmjs.org/@radix-ui/react-aspect-ratio/-/react-aspect-ratio-1.1.15.tgz", + "integrity": "sha512-fy+dyVR+90nelK8rqIznFlxzx7uPcGbhxH8Nfr2bHb4UfSe+e3hklOC0luK0hDwVwnRX7xTRySpsrQVeW+/oNQ==", + "license": "MIT", + "dependencies": { + "@radix-ui/react-primitive": "2.1.10" + }, + "peerDependencies": { + "@types/react": "*", + "@types/react-dom": "*", + "react": "^16.8 || ^17.0 || ^18.0 || ^19.0 || ^19.0.0-rc", + "react-dom": "^16.8 || ^17.0 || ^18.0 || ^19.0 || ^19.0.0-rc" + }, + "peerDependenciesMeta": { + "@types/react": { + "optional": true + }, + "@types/react-dom": { + "optional": true + } + } + }, + "node_modules/@radix-ui/react-avatar": { + "version": "1.2.6", + "resolved": "https://registry.npmjs.org/@radix-ui/react-avatar/-/react-avatar-1.2.6.tgz", + "integrity": "sha512-4ULOTJ/mqy2hT9GlWa/MFHxHSvH3nJzHnZM1waNsc5Bonv7i70aNenghXmD97S6OJ81ekXONGGt4nT1r0PfEdA==", + "license": "MIT", + "dependencies": { + "@radix-ui/primitive": "1.1.7", + "@radix-ui/react-context": "1.2.2", + "@radix-ui/react-primitive": "2.1.10", + "@radix-ui/react-use-callback-ref": "1.1.4", + "@radix-ui/react-use-is-hydrated": "0.1.3", + "@radix-ui/react-use-layout-effect": "1.1.4" + }, + "peerDependencies": { + "@types/react": "*", + "@types/react-dom": "*", + "react": "^16.8 || ^17.0 || ^18.0 || ^19.0 || ^19.0.0-rc", + "react-dom": "^16.8 || ^17.0 || ^18.0 || ^19.0 || ^19.0.0-rc" + }, + "peerDependenciesMeta": { + "@types/react": { + "optional": true + }, + "@types/react-dom": { + "optional": true + } + } + }, + "node_modules/@radix-ui/react-checkbox": { + "version": "1.3.11", + "resolved": "https://registry.npmjs.org/@radix-ui/react-checkbox/-/react-checkbox-1.3.11.tgz", + "integrity": "sha512-Gnptr9pDDQxD3hgq2dtPbtrp/c2qH1mBwIzw3X/ivrMb2e1t0jMTi606fVEqFPaQR1ggXIVQWKj3P2WW9v7zGQ==", + "license": "MIT", + "dependencies": { + "@radix-ui/primitive": "1.1.7", + "@radix-ui/react-compose-refs": "1.1.5", + "@radix-ui/react-context": "1.2.2", + "@radix-ui/react-presence": "1.1.10", + "@radix-ui/react-primitive": "2.1.10", + "@radix-ui/react-use-controllable-state": "1.2.6", + "@radix-ui/react-use-size": "1.1.4" + }, + "peerDependencies": { + "@types/react": "*", + "@types/react-dom": "*", + "react": "^16.8 || ^17.0 || ^18.0 || ^19.0 || ^19.0.0-rc", + "react-dom": "^16.8 || ^17.0 || ^18.0 || ^19.0 || ^19.0.0-rc" + }, + "peerDependenciesMeta": { + "@types/react": { + "optional": true + }, + "@types/react-dom": { + "optional": true + } + } + }, + "node_modules/@radix-ui/react-collapsible": { + "version": "1.1.20", + "resolved": "https://registry.npmjs.org/@radix-ui/react-collapsible/-/react-collapsible-1.1.20.tgz", + "integrity": "sha512-mcGesGplBnzN2sbvJETzpCNfSMyPnb29q1GRLU+Ib7bJrpIG2ywmRoh2V5VbA2uNvKikKUlVbAPks7JDjz4A8Q==", + "license": "MIT", + "dependencies": { + "@radix-ui/primitive": "1.1.7", + "@radix-ui/react-compose-refs": "1.1.5", + "@radix-ui/react-context": "1.2.2", + "@radix-ui/react-id": "1.1.4", + "@radix-ui/react-presence": "1.1.10", + "@radix-ui/react-primitive": "2.1.10", + "@radix-ui/react-use-controllable-state": "1.2.6", + "@radix-ui/react-use-layout-effect": "1.1.4" + }, + "peerDependencies": { + "@types/react": "*", + "@types/react-dom": "*", + "react": "^16.8 || ^17.0 || ^18.0 || ^19.0 || ^19.0.0-rc", + "react-dom": "^16.8 || ^17.0 || ^18.0 || ^19.0 || ^19.0.0-rc" + }, + "peerDependenciesMeta": { + "@types/react": { + "optional": true + }, + "@types/react-dom": { + "optional": true + } + } + }, + "node_modules/@radix-ui/react-collection": { + "version": "1.1.15", + "resolved": "https://registry.npmjs.org/@radix-ui/react-collection/-/react-collection-1.1.15.tgz", + "integrity": "sha512-9W+B9NPF0NaaPh/1NJd3+KqsnlLqU9H7T2rvww+fp+T/evVXdNAyYcnfRQZFOjkR1ajQp3yORlqnI8soawLvNA==", + "license": "MIT", + "dependencies": { + "@radix-ui/react-compose-refs": "1.1.5", + "@radix-ui/react-context": "1.2.2", + "@radix-ui/react-primitive": "2.1.10", + "@radix-ui/react-slot": "1.3.3" + }, + "peerDependencies": { + "@types/react": "*", + "@types/react-dom": "*", + "react": "^16.8 || ^17.0 || ^18.0 || ^19.0 || ^19.0.0-rc", + "react-dom": "^16.8 || ^17.0 || ^18.0 || ^19.0 || ^19.0.0-rc" + }, + "peerDependenciesMeta": { + "@types/react": { + "optional": true + }, + "@types/react-dom": { + "optional": true + } + } + }, + "node_modules/@radix-ui/react-compose-refs": { + "version": "1.1.5", + "resolved": "https://registry.npmjs.org/@radix-ui/react-compose-refs/-/react-compose-refs-1.1.5.tgz", + "integrity": "sha512-+48PbAAbq3didjJxa+OaWY2ZwgAKsNiRGyeHKszblZMQ+kcpd9pAaT11cMkGEie0vsOi3QdeTE6d5Fe3Gn61kA==", + "license": "MIT", + "peerDependencies": { + "@types/react": "*", + "react": "^16.8 || ^17.0 || ^18.0 || ^19.0 || ^19.0.0-rc" + }, + "peerDependenciesMeta": { + "@types/react": { + "optional": true + } + } + }, + "node_modules/@radix-ui/react-context": { + "version": "1.2.2", + "resolved": "https://registry.npmjs.org/@radix-ui/react-context/-/react-context-1.2.2.tgz", + "integrity": "sha512-RHCUGwKHDr0hDGg4X7ma4JG4/+12qxw8rkh5QKdDldlCvtja6nUx1Ef/8HVrJze81lEsgLQlqjzjGNHantgnQA==", + "license": "MIT", + "peerDependencies": { + "@types/react": "*", + "react": "^16.8 || ^17.0 || ^18.0 || ^19.0 || ^19.0.0-rc" + }, + "peerDependenciesMeta": { + "@types/react": { + "optional": true + } + } + }, + "node_modules/@radix-ui/react-context-menu": { + "version": "2.3.7", + "resolved": "https://registry.npmjs.org/@radix-ui/react-context-menu/-/react-context-menu-2.3.7.tgz", + "integrity": "sha512-CtXP35dxaB5T3zXSd+E3uHe/QpXcpYnZmxp6OaIbfthtfW4wyb77M23BG+bwIJDtsMwEP/YssdsmNyZu7jhWew==", + "license": "MIT", + "dependencies": { + "@radix-ui/primitive": "1.1.7", + "@radix-ui/react-context": "1.2.2", + "@radix-ui/react-menu": "2.1.24", + "@radix-ui/react-primitive": "2.1.10", + "@radix-ui/react-use-controllable-state": "1.2.6" + }, + "peerDependencies": { + "@types/react": "*", + "@types/react-dom": "*", + "react": "^16.8 || ^17.0 || ^18.0 || ^19.0 || ^19.0.0-rc", + "react-dom": "^16.8 || ^17.0 || ^18.0 || ^19.0 || ^19.0.0-rc" + }, + "peerDependenciesMeta": { + "@types/react": { + "optional": true + }, + "@types/react-dom": { + "optional": true + } + } + }, + "node_modules/@radix-ui/react-dialog": { + "version": "1.1.23", + "resolved": "https://registry.npmjs.org/@radix-ui/react-dialog/-/react-dialog-1.1.23.tgz", + "integrity": "sha512-Ksw4WeROkO4rC9k/onilX/Ao2Cr1ku1unMNH+XSCcP4jSXYu7HDsg9n4ojMjVb22XpYjAQ9qfrFlVbru1vXDUA==", + "license": "MIT", + "dependencies": { + "@radix-ui/primitive": "1.1.7", + "@radix-ui/react-compose-refs": "1.1.5", + "@radix-ui/react-context": "1.2.2", + "@radix-ui/react-dismissable-layer": "1.1.19", + "@radix-ui/react-focus-guards": "1.1.6", + "@radix-ui/react-focus-scope": "1.1.16", + "@radix-ui/react-id": "1.1.4", + "@radix-ui/react-portal": "1.1.17", + "@radix-ui/react-presence": "1.1.10", + "@radix-ui/react-primitive": "2.1.10", + "@radix-ui/react-slot": "1.3.3", + "@radix-ui/react-use-controllable-state": "1.2.6", + "@radix-ui/react-use-layout-effect": "1.1.4", + "aria-hidden": "^1.2.4", + "react-remove-scroll": "^2.7.2" + }, + "peerDependencies": { + "@types/react": "*", + "@types/react-dom": "*", + "react": "^16.8 || ^17.0 || ^18.0 || ^19.0 || ^19.0.0-rc", + "react-dom": "^16.8 || ^17.0 || ^18.0 || ^19.0 || ^19.0.0-rc" + }, + "peerDependenciesMeta": { + "@types/react": { + "optional": true + }, + "@types/react-dom": { + "optional": true + } + } + }, + "node_modules/@radix-ui/react-direction": { + "version": "1.1.4", + "resolved": "https://registry.npmjs.org/@radix-ui/react-direction/-/react-direction-1.1.4.tgz", + "integrity": "sha512-5pzg4FGQNpExhnhT2zlrP1wZFaYCd1K0nYWoFAdcYoYK868IEigqMX3B3f8yIoRlAhAeDWciLI6ZdCKHF9P4Vg==", + "license": "MIT", + "peerDependencies": { + "@types/react": "*", + "react": "^16.8 || ^17.0 || ^18.0 || ^19.0 || ^19.0.0-rc" + }, + "peerDependenciesMeta": { + "@types/react": { + "optional": true + } + } + }, + "node_modules/@radix-ui/react-dismissable-layer": { + "version": "1.1.19", + "resolved": "https://registry.npmjs.org/@radix-ui/react-dismissable-layer/-/react-dismissable-layer-1.1.19.tgz", + "integrity": "sha512-8g4pfOL9HoKKLWGiypT+dphVqjFfmcXO5GBnhsG6zI+lxAx/8feQpr+1LSN8Re3hiZ+XkLNS4O9ztK11/LzQ6w==", + "license": "MIT", + "dependencies": { + "@radix-ui/primitive": "1.1.7", + "@radix-ui/react-compose-refs": "1.1.5", + "@radix-ui/react-primitive": "2.1.10", + "@radix-ui/react-use-callback-ref": "1.1.4", + "@radix-ui/react-use-effect-event": "0.0.5" + }, + "peerDependencies": { + "@types/react": "*", + "@types/react-dom": "*", + "react": "^16.8 || ^17.0 || ^18.0 || ^19.0 || ^19.0.0-rc", + "react-dom": "^16.8 || ^17.0 || ^18.0 || ^19.0 || ^19.0.0-rc" + }, + "peerDependenciesMeta": { + "@types/react": { + "optional": true + }, + "@types/react-dom": { + "optional": true + } + } + }, + "node_modules/@radix-ui/react-dropdown-menu": { + "version": "2.1.24", + "resolved": "https://registry.npmjs.org/@radix-ui/react-dropdown-menu/-/react-dropdown-menu-2.1.24.tgz", + "integrity": "sha512-geq8l2rJkxvkXsT9RMgtUE3P8pITFpTsvYpbySi1IH4fZEABD/Gp85myayFgxk0ktljGMJnCbeFkyTusvSvv7g==", + "license": "MIT", + "dependencies": { + "@radix-ui/primitive": "1.1.7", + "@radix-ui/react-compose-refs": "1.1.5", + "@radix-ui/react-context": "1.2.2", + "@radix-ui/react-id": "1.1.4", + "@radix-ui/react-menu": "2.1.24", + "@radix-ui/react-primitive": "2.1.10", + "@radix-ui/react-use-controllable-state": "1.2.6" + }, + "peerDependencies": { + "@types/react": "*", + "@types/react-dom": "*", + "react": "^16.8 || ^17.0 || ^18.0 || ^19.0 || ^19.0.0-rc", + "react-dom": "^16.8 || ^17.0 || ^18.0 || ^19.0 || ^19.0.0-rc" + }, + "peerDependenciesMeta": { + "@types/react": { + "optional": true + }, + "@types/react-dom": { + "optional": true + } + } + }, + "node_modules/@radix-ui/react-focus-guards": { + "version": "1.1.6", + "resolved": "https://registry.npmjs.org/@radix-ui/react-focus-guards/-/react-focus-guards-1.1.6.tgz", + "integrity": "sha512-RNOJjfZMTyBM6xYmV3IVGXkPjIhcBAuv48POevAXwrGJhkWZ9p1rFoIS1JFooPuT193AZmRsCPhpoVJxx6OPoQ==", + "license": "MIT", + "peerDependencies": { + "@types/react": "*", + "react": "^16.8 || ^17.0 || ^18.0 || ^19.0 || ^19.0.0-rc" + }, + "peerDependenciesMeta": { + "@types/react": { + "optional": true + } + } + }, + "node_modules/@radix-ui/react-focus-scope": { + "version": "1.1.16", + "resolved": "https://registry.npmjs.org/@radix-ui/react-focus-scope/-/react-focus-scope-1.1.16.tgz", + "integrity": "sha512-wmRZ2WWLvmt6KHy2rNPOdPUjwq5xOHY02+m+udwJTn0aNIox/rkskAvJTyTLGhPK6KgrUjlJUJpgmx/+wFiFIQ==", + "license": "MIT", + "dependencies": { + "@radix-ui/react-compose-refs": "1.1.5", + "@radix-ui/react-primitive": "2.1.10", + "@radix-ui/react-use-callback-ref": "1.1.4" + }, + "peerDependencies": { + "@types/react": "*", + "@types/react-dom": "*", + "react": "^16.8 || ^17.0 || ^18.0 || ^19.0 || ^19.0.0-rc", + "react-dom": "^16.8 || ^17.0 || ^18.0 || ^19.0 || ^19.0.0-rc" + }, + "peerDependenciesMeta": { + "@types/react": { + "optional": true + }, + "@types/react-dom": { + "optional": true + } + } + }, + "node_modules/@radix-ui/react-form": { + "version": "0.1.16", + "resolved": "https://registry.npmjs.org/@radix-ui/react-form/-/react-form-0.1.16.tgz", + "integrity": "sha512-Q4TLEn2A7TAypxwmd6R9EwrlXDvkfYSDMrq9/887AXAGh+G1rH+kYJKSTv+Si9Y0JPKTwKYv6PviAJosysNimA==", + "license": "MIT", + "dependencies": { + "@radix-ui/primitive": "1.1.7", + "@radix-ui/react-compose-refs": "1.1.5", + "@radix-ui/react-context": "1.2.2", + "@radix-ui/react-id": "1.1.4", + "@radix-ui/react-label": "2.1.15", + "@radix-ui/react-primitive": "2.1.10" + }, + "peerDependencies": { + "@types/react": "*", + "@types/react-dom": "*", + "react": "^16.8 || ^17.0 || ^18.0 || ^19.0 || ^19.0.0-rc", + "react-dom": "^16.8 || ^17.0 || ^18.0 || ^19.0 || ^19.0.0-rc" + }, + "peerDependenciesMeta": { + "@types/react": { + "optional": true + }, + "@types/react-dom": { + "optional": true + } + } + }, + "node_modules/@radix-ui/react-hover-card": { + "version": "1.1.23", + "resolved": "https://registry.npmjs.org/@radix-ui/react-hover-card/-/react-hover-card-1.1.23.tgz", + "integrity": "sha512-H8qONfZd3ltrU3+jHCIgITbWo6e1iTKvP9DHdrvYbX48ooRM5FjEDTn16AMwdfuOGkWdZEhpl3PLL/Wk/AnHDQ==", + "license": "MIT", + "dependencies": { + "@radix-ui/primitive": "1.1.7", + "@radix-ui/react-compose-refs": "1.1.5", + "@radix-ui/react-context": "1.2.2", + "@radix-ui/react-dismissable-layer": "1.1.19", + "@radix-ui/react-popper": "1.3.7", + "@radix-ui/react-portal": "1.1.17", + "@radix-ui/react-presence": "1.1.10", + "@radix-ui/react-primitive": "2.1.10", + "@radix-ui/react-use-controllable-state": "1.2.6" + }, + "peerDependencies": { + "@types/react": "*", + "@types/react-dom": "*", + "react": "^16.8 || ^17.0 || ^18.0 || ^19.0 || ^19.0.0-rc", + "react-dom": "^16.8 || ^17.0 || ^18.0 || ^19.0 || ^19.0.0-rc" + }, + "peerDependenciesMeta": { + "@types/react": { + "optional": true + }, + "@types/react-dom": { + "optional": true + } + } + }, + "node_modules/@radix-ui/react-id": { + "version": "1.1.4", + "resolved": "https://registry.npmjs.org/@radix-ui/react-id/-/react-id-1.1.4.tgz", + "integrity": "sha512-TMQp2llA+RYn7JcjnrMnz7wN4pcVttPZnRZo52PLQsoLVKzNlVwUeHmfePgTgRluXFvlD3GD5g5MOVVTJCO0qA==", + "license": "MIT", + "dependencies": { + "@radix-ui/react-use-layout-effect": "1.1.4" + }, + "peerDependencies": { + "@types/react": "*", + "react": "^16.8 || ^17.0 || ^18.0 || ^19.0 || ^19.0.0-rc" + }, + "peerDependenciesMeta": { + "@types/react": { + "optional": true + } + } + }, + "node_modules/@radix-ui/react-label": { + "version": "2.1.15", + "resolved": "https://registry.npmjs.org/@radix-ui/react-label/-/react-label-2.1.15.tgz", + "integrity": "sha512-o/rdYEwZTTo5tjknnPeyQFU45kUC4i/XyeDPP+HGyi6XqpOP6Zf5Ya5vh/Yfe9Id5JiuWnnAx2XqIeD3UYZt0g==", + "license": "MIT", + "dependencies": { + "@radix-ui/react-primitive": "2.1.10" + }, + "peerDependencies": { + "@types/react": "*", + "@types/react-dom": "*", + "react": "^16.8 || ^17.0 || ^18.0 || ^19.0 || ^19.0.0-rc", + "react-dom": "^16.8 || ^17.0 || ^18.0 || ^19.0 || ^19.0.0-rc" + }, + "peerDependenciesMeta": { + "@types/react": { + "optional": true + }, + "@types/react-dom": { + "optional": true + } + } + }, + "node_modules/@radix-ui/react-menu": { + "version": "2.1.24", + "resolved": "https://registry.npmjs.org/@radix-ui/react-menu/-/react-menu-2.1.24.tgz", + "integrity": "sha512-uW7RVuU6Lp/ZtfeY4b3kL32zccgEWvPv1+cf17ubYzHa9cL8AHokmk36cG/XEiH/smbQvumnieXX9j/e9RqJWA==", + "license": "MIT", + "dependencies": { + "@radix-ui/primitive": "1.1.7", + "@radix-ui/react-collection": "1.1.15", + "@radix-ui/react-compose-refs": "1.1.5", + "@radix-ui/react-context": "1.2.2", + "@radix-ui/react-direction": "1.1.4", + "@radix-ui/react-dismissable-layer": "1.1.19", + "@radix-ui/react-focus-guards": "1.1.6", + "@radix-ui/react-focus-scope": "1.1.16", + "@radix-ui/react-id": "1.1.4", + "@radix-ui/react-popper": "1.3.7", + "@radix-ui/react-portal": "1.1.17", + "@radix-ui/react-presence": "1.1.10", + "@radix-ui/react-primitive": "2.1.10", + "@radix-ui/react-roving-focus": "1.1.19", + "@radix-ui/react-slot": "1.3.3", + "@radix-ui/react-use-callback-ref": "1.1.4", + "aria-hidden": "^1.2.4", + "react-remove-scroll": "^2.7.2" + }, + "peerDependencies": { + "@types/react": "*", + "@types/react-dom": "*", + "react": "^16.8 || ^17.0 || ^18.0 || ^19.0 || ^19.0.0-rc", + "react-dom": "^16.8 || ^17.0 || ^18.0 || ^19.0 || ^19.0.0-rc" + }, + "peerDependenciesMeta": { + "@types/react": { + "optional": true + }, + "@types/react-dom": { + "optional": true + } + } + }, + "node_modules/@radix-ui/react-menubar": { + "version": "1.1.24", + "resolved": "https://registry.npmjs.org/@radix-ui/react-menubar/-/react-menubar-1.1.24.tgz", + "integrity": "sha512-eeVs0vf7cuqXaM0qLQCPcufImiJNVBXdJDLu7ZGYl2732UH23Qat/foNGrr6vYV3/DdTsBqASoggUFgH14OcZA==", + "license": "MIT", + "dependencies": { + "@radix-ui/primitive": "1.1.7", + "@radix-ui/react-collection": "1.1.15", + "@radix-ui/react-compose-refs": "1.1.5", + "@radix-ui/react-context": "1.2.2", + "@radix-ui/react-direction": "1.1.4", + "@radix-ui/react-id": "1.1.4", + "@radix-ui/react-menu": "2.1.24", + "@radix-ui/react-primitive": "2.1.10", + "@radix-ui/react-roving-focus": "1.1.19", + "@radix-ui/react-use-controllable-state": "1.2.6" + }, + "peerDependencies": { + "@types/react": "*", + "@types/react-dom": "*", + "react": "^16.8 || ^17.0 || ^18.0 || ^19.0 || ^19.0.0-rc", + "react-dom": "^16.8 || ^17.0 || ^18.0 || ^19.0 || ^19.0.0-rc" + }, + "peerDependenciesMeta": { + "@types/react": { + "optional": true + }, + "@types/react-dom": { + "optional": true + } + } + }, + "node_modules/@radix-ui/react-navigation-menu": { + "version": "1.2.22", + "resolved": "https://registry.npmjs.org/@radix-ui/react-navigation-menu/-/react-navigation-menu-1.2.22.tgz", + "integrity": "sha512-ou7iLEJ+yrhQndkkA4U21XIdS/CS45F4iXIkTZcb6/Ne9EMsOuDudVmCwmDnfFZZ+y1FZqXRNSIgBy+YMvZVZg==", + "license": "MIT", + "dependencies": { + "@radix-ui/primitive": "1.1.7", + "@radix-ui/react-collection": "1.1.15", + "@radix-ui/react-compose-refs": "1.1.5", + "@radix-ui/react-context": "1.2.2", + "@radix-ui/react-direction": "1.1.4", + "@radix-ui/react-dismissable-layer": "1.1.19", + "@radix-ui/react-id": "1.1.4", + "@radix-ui/react-presence": "1.1.10", + "@radix-ui/react-primitive": "2.1.10", + "@radix-ui/react-use-callback-ref": "1.1.4", + "@radix-ui/react-use-controllable-state": "1.2.6", + "@radix-ui/react-use-layout-effect": "1.1.4", + "@radix-ui/react-use-previous": "1.1.4", + "@radix-ui/react-visually-hidden": "1.2.11" + }, + "peerDependencies": { + "@types/react": "*", + "@types/react-dom": "*", + "react": "^16.8 || ^17.0 || ^18.0 || ^19.0 || ^19.0.0-rc", + "react-dom": "^16.8 || ^17.0 || ^18.0 || ^19.0 || ^19.0.0-rc" + }, + "peerDependenciesMeta": { + "@types/react": { + "optional": true + }, + "@types/react-dom": { + "optional": true + } + } + }, + "node_modules/@radix-ui/react-one-time-password-field": { + "version": "0.1.16", + "resolved": "https://registry.npmjs.org/@radix-ui/react-one-time-password-field/-/react-one-time-password-field-0.1.16.tgz", + "integrity": "sha512-Tj9P6ntAJEw52oq/F0AGknXR4XncxEt7XU47O3xJQOiWfLzEy3d9gtgKfvjSzGxzHkfL+VzvxGu2KTFsloJqXw==", + "license": "MIT", + "dependencies": { + "@radix-ui/number": "1.1.3", + "@radix-ui/primitive": "1.1.7", + "@radix-ui/react-collection": "1.1.15", + "@radix-ui/react-compose-refs": "1.1.5", + "@radix-ui/react-context": "1.2.2", + "@radix-ui/react-direction": "1.1.4", + "@radix-ui/react-primitive": "2.1.10", + "@radix-ui/react-roving-focus": "1.1.19", + "@radix-ui/react-use-controllable-state": "1.2.6", + "@radix-ui/react-use-effect-event": "0.0.5", + "@radix-ui/react-use-is-hydrated": "0.1.3", + "@radix-ui/react-use-layout-effect": "1.1.4" + }, + "peerDependencies": { + "@types/react": "*", + "@types/react-dom": "*", + "react": "^16.8 || ^17.0 || ^18.0 || ^19.0 || ^19.0.0-rc", + "react-dom": "^16.8 || ^17.0 || ^18.0 || ^19.0 || ^19.0.0-rc" + }, + "peerDependenciesMeta": { + "@types/react": { + "optional": true + }, + "@types/react-dom": { + "optional": true + } + } + }, + "node_modules/@radix-ui/react-password-toggle-field": { + "version": "0.1.11", + "resolved": "https://registry.npmjs.org/@radix-ui/react-password-toggle-field/-/react-password-toggle-field-0.1.11.tgz", + "integrity": "sha512-4gvFnmDXu3dgj21CqsufzIameRvlRd4SBqaWhcrlrNhRo0Y5i/49AmRJYe1fdAM3G2VNBbmin4b0D6cdQocwgw==", + "license": "MIT", + "dependencies": { + "@radix-ui/primitive": "1.1.7", + "@radix-ui/react-compose-refs": "1.1.5", + "@radix-ui/react-context": "1.2.2", + "@radix-ui/react-id": "1.1.4", + "@radix-ui/react-primitive": "2.1.10", + "@radix-ui/react-use-controllable-state": "1.2.6", + "@radix-ui/react-use-effect-event": "0.0.5", + "@radix-ui/react-use-is-hydrated": "0.1.3" + }, + "peerDependencies": { + "@types/react": "*", + "@types/react-dom": "*", + "react": "^16.8 || ^17.0 || ^18.0 || ^19.0 || ^19.0.0-rc", + "react-dom": "^16.8 || ^17.0 || ^18.0 || ^19.0 || ^19.0.0-rc" + }, + "peerDependenciesMeta": { + "@types/react": { + "optional": true + }, + "@types/react-dom": { + "optional": true + } + } + }, + "node_modules/@radix-ui/react-popover": { + "version": "1.1.23", + "resolved": "https://registry.npmjs.org/@radix-ui/react-popover/-/react-popover-1.1.23.tgz", + "integrity": "sha512-mw58MrBlyHWFisTOYignD0vf/3gdcgAR+9of1s9G/38CbFiUwH1nCDkc0AUM9IrXFgN5Ue8n45j9WCgyM1sbiQ==", + "license": "MIT", + "dependencies": { + "@radix-ui/primitive": "1.1.7", + "@radix-ui/react-compose-refs": "1.1.5", + "@radix-ui/react-context": "1.2.2", + "@radix-ui/react-dismissable-layer": "1.1.19", + "@radix-ui/react-focus-guards": "1.1.6", + "@radix-ui/react-focus-scope": "1.1.16", + "@radix-ui/react-id": "1.1.4", + "@radix-ui/react-popper": "1.3.7", + "@radix-ui/react-portal": "1.1.17", + "@radix-ui/react-presence": "1.1.10", + "@radix-ui/react-primitive": "2.1.10", + "@radix-ui/react-slot": "1.3.3", + "@radix-ui/react-use-controllable-state": "1.2.6", + "aria-hidden": "^1.2.4", + "react-remove-scroll": "^2.7.2" + }, + "peerDependencies": { + "@types/react": "*", + "@types/react-dom": "*", + "react": "^16.8 || ^17.0 || ^18.0 || ^19.0 || ^19.0.0-rc", + "react-dom": "^16.8 || ^17.0 || ^18.0 || ^19.0 || ^19.0.0-rc" + }, + "peerDependenciesMeta": { + "@types/react": { + "optional": true + }, + "@types/react-dom": { + "optional": true + } + } + }, + "node_modules/@radix-ui/react-popper": { + "version": "1.3.7", + "resolved": "https://registry.npmjs.org/@radix-ui/react-popper/-/react-popper-1.3.7.tgz", + "integrity": "sha512-UsJrrd7w4wuKKTdvd/DNERVlwSlUcyXzjhyDwBk+3aPOsCjOY6ZSbxuw8E6lZTjjfP8Cpd0J8VVkrYUWyGYXyg==", + "license": "MIT", + "dependencies": { + "@floating-ui/react-dom": "^2.0.0", + "@radix-ui/react-arrow": "1.1.15", + "@radix-ui/react-compose-refs": "1.1.5", + "@radix-ui/react-context": "1.2.2", + "@radix-ui/react-primitive": "2.1.10", + "@radix-ui/react-use-callback-ref": "1.1.4", + "@radix-ui/react-use-layout-effect": "1.1.4", + "@radix-ui/react-use-rect": "1.1.4", + "@radix-ui/react-use-size": "1.1.4", + "@radix-ui/rect": "1.1.3" + }, + "peerDependencies": { + "@types/react": "*", + "@types/react-dom": "*", + "react": "^16.8 || ^17.0 || ^18.0 || ^19.0 || ^19.0.0-rc", + "react-dom": "^16.8 || ^17.0 || ^18.0 || ^19.0 || ^19.0.0-rc" + }, + "peerDependenciesMeta": { + "@types/react": { + "optional": true + }, + "@types/react-dom": { + "optional": true + } + } + }, + "node_modules/@radix-ui/react-portal": { + "version": "1.1.17", + "resolved": "https://registry.npmjs.org/@radix-ui/react-portal/-/react-portal-1.1.17.tgz", + "integrity": "sha512-vKQLcWypUnwZVvfV7UkGahH2g6ySe8M8R+zYBwPrv5byZ9QAW6cQVvNKo7GgmD+p8aYb6D9JBuvy8/WhOno2wQ==", + "license": "MIT", + "dependencies": { + "@radix-ui/react-primitive": "2.1.10", + "@radix-ui/react-use-layout-effect": "1.1.4" + }, + "peerDependencies": { + "@types/react": "*", + "@types/react-dom": "*", + "react": "^16.8 || ^17.0 || ^18.0 || ^19.0 || ^19.0.0-rc", + "react-dom": "^16.8 || ^17.0 || ^18.0 || ^19.0 || ^19.0.0-rc" + }, + "peerDependenciesMeta": { + "@types/react": { + "optional": true + }, + "@types/react-dom": { + "optional": true + } + } + }, + "node_modules/@radix-ui/react-presence": { + "version": "1.1.10", + "resolved": "https://registry.npmjs.org/@radix-ui/react-presence/-/react-presence-1.1.10.tgz", + "integrity": "sha512-3wyzCQ6+ubRA+D4uv9m95JYLXxmOHp05qjrkjeA7uKHHtjpPggQzc6DAb0URl7j67oR0K2foO4ip27TiX037Bw==", + "license": "MIT", + "dependencies": { + "@radix-ui/react-use-layout-effect": "1.1.4" + }, + "peerDependencies": { + "@types/react": "*", + "@types/react-dom": "*", + "react": "^16.8 || ^17.0 || ^18.0 || ^19.0 || ^19.0.0-rc", + "react-dom": "^16.8 || ^17.0 || ^18.0 || ^19.0 || ^19.0.0-rc" + }, + "peerDependenciesMeta": { + "@types/react": { + "optional": true + }, + "@types/react-dom": { + "optional": true + } + } + }, + "node_modules/@radix-ui/react-primitive": { + "version": "2.1.10", + "resolved": "https://registry.npmjs.org/@radix-ui/react-primitive/-/react-primitive-2.1.10.tgz", + "integrity": "sha512-MucOnzh6hR5mid6VpkbglRAMYMjKLqRnGBbjXkzjK52fuQDd1qbkx78a5P40mkcnVXJdEVxm26E9OPAiUq7nBg==", + "license": "MIT", + "dependencies": { + "@radix-ui/react-slot": "1.3.3" + }, + "peerDependencies": { + "@types/react": "*", + "@types/react-dom": "*", + "react": "^16.8 || ^17.0 || ^18.0 || ^19.0 || ^19.0.0-rc", + "react-dom": "^16.8 || ^17.0 || ^18.0 || ^19.0 || ^19.0.0-rc" + }, + "peerDependenciesMeta": { + "@types/react": { + "optional": true + }, + "@types/react-dom": { + "optional": true + } + } + }, + "node_modules/@radix-ui/react-progress": { + "version": "1.1.16", + "resolved": "https://registry.npmjs.org/@radix-ui/react-progress/-/react-progress-1.1.16.tgz", + "integrity": "sha512-5XnomAsoZZCY+KNTxbIghpGqPruZvKFNlvcAljVAOdDRDsH4/OZQxhtwo5wdtoDM5R6MhJBb2sPnDuRFep3lzg==", + "license": "MIT", + "dependencies": { + "@radix-ui/react-context": "1.2.2", + "@radix-ui/react-primitive": "2.1.10" + }, + "peerDependencies": { + "@types/react": "*", + "@types/react-dom": "*", + "react": "^16.8 || ^17.0 || ^18.0 || ^19.0 || ^19.0.0-rc", + "react-dom": "^16.8 || ^17.0 || ^18.0 || ^19.0 || ^19.0.0-rc" + }, + "peerDependenciesMeta": { + "@types/react": { + "optional": true + }, + "@types/react-dom": { + "optional": true + } + } + }, + "node_modules/@radix-ui/react-radio-group": { + "version": "1.4.7", + "resolved": "https://registry.npmjs.org/@radix-ui/react-radio-group/-/react-radio-group-1.4.7.tgz", + "integrity": "sha512-cgYFEkntCxppHZgtSZ+7vh0wbZQ+IC7PPMw8DSnRG27B6kDd32/Zw0OJt7dGDigCoprMuWHjg2PvUn3PYvPFoQ==", + "license": "MIT", + "dependencies": { + "@radix-ui/primitive": "1.1.7", + "@radix-ui/react-compose-refs": "1.1.5", + "@radix-ui/react-context": "1.2.2", + "@radix-ui/react-direction": "1.1.4", + "@radix-ui/react-presence": "1.1.10", + "@radix-ui/react-primitive": "2.1.10", + "@radix-ui/react-roving-focus": "1.1.19", + "@radix-ui/react-use-controllable-state": "1.2.6", + "@radix-ui/react-use-size": "1.1.4" + }, + "peerDependencies": { + "@types/react": "*", + "@types/react-dom": "*", + "react": "^16.8 || ^17.0 || ^18.0 || ^19.0 || ^19.0.0-rc", + "react-dom": "^16.8 || ^17.0 || ^18.0 || ^19.0 || ^19.0.0-rc" + }, + "peerDependenciesMeta": { + "@types/react": { + "optional": true + }, + "@types/react-dom": { + "optional": true + } + } + }, + "node_modules/@radix-ui/react-roving-focus": { + "version": "1.1.19", + "resolved": "https://registry.npmjs.org/@radix-ui/react-roving-focus/-/react-roving-focus-1.1.19.tgz", + "integrity": "sha512-V9jI6hDjT7l3jsCQD9bLNvDLM3tH/gdbOTp7Tefp3hbbgCGQoK7tUvrWiRlcoBHIZ809ElXwNQwVo0B98LuTXQ==", + "license": "MIT", + "dependencies": { + "@radix-ui/primitive": "1.1.7", + "@radix-ui/react-collection": "1.1.15", + "@radix-ui/react-compose-refs": "1.1.5", + "@radix-ui/react-context": "1.2.2", + "@radix-ui/react-direction": "1.1.4", + "@radix-ui/react-id": "1.1.4", + "@radix-ui/react-primitive": "2.1.10", + "@radix-ui/react-use-callback-ref": "1.1.4", + "@radix-ui/react-use-controllable-state": "1.2.6", + "@radix-ui/react-use-is-hydrated": "0.1.3", + "@radix-ui/react-use-layout-effect": "1.1.4" + }, + "peerDependencies": { + "@types/react": "*", + "@types/react-dom": "*", + "react": "^16.8 || ^17.0 || ^18.0 || ^19.0 || ^19.0.0-rc", + "react-dom": "^16.8 || ^17.0 || ^18.0 || ^19.0 || ^19.0.0-rc" + }, + "peerDependenciesMeta": { + "@types/react": { + "optional": true + }, + "@types/react-dom": { + "optional": true + } + } + }, + "node_modules/@radix-ui/react-scroll-area": { + "version": "1.2.18", + "resolved": "https://registry.npmjs.org/@radix-ui/react-scroll-area/-/react-scroll-area-1.2.18.tgz", + "integrity": "sha512-Zn5Cd171wxsO3Dfg8HaW6RifTb9CYTKQJHs/G4+LN1GfmJpaQMZQyQxMprVPHpaz7QY4l9BxK2JwQuzHsXC8nA==", + "license": "MIT", + "dependencies": { + "@radix-ui/number": "1.1.3", + "@radix-ui/primitive": "1.1.7", + "@radix-ui/react-compose-refs": "1.1.5", + "@radix-ui/react-context": "1.2.2", + "@radix-ui/react-direction": "1.1.4", + "@radix-ui/react-presence": "1.1.10", + "@radix-ui/react-primitive": "2.1.10", + "@radix-ui/react-use-callback-ref": "1.1.4", + "@radix-ui/react-use-layout-effect": "1.1.4" + }, + "peerDependencies": { + "@types/react": "*", + "@types/react-dom": "*", + "react": "^16.8 || ^17.0 || ^18.0 || ^19.0 || ^19.0.0-rc", + "react-dom": "^16.8 || ^17.0 || ^18.0 || ^19.0 || ^19.0.0-rc" + }, + "peerDependenciesMeta": { + "@types/react": { + "optional": true + }, + "@types/react-dom": { + "optional": true + } + } + }, + "node_modules/@radix-ui/react-select": { + "version": "2.3.7", + "resolved": "https://registry.npmjs.org/@radix-ui/react-select/-/react-select-2.3.7.tgz", + "integrity": "sha512-WFGImkmbzcfxeIwq/+4HvRN0pizBwbwQUED4I13ezQsDdfl38ZntN6TmR8XaSzPBqoCToe8rF75j6NPNDSzhbg==", + "license": "MIT", + "dependencies": { + "@radix-ui/number": "1.1.3", + "@radix-ui/primitive": "1.1.7", + "@radix-ui/react-collection": "1.1.15", + "@radix-ui/react-compose-refs": "1.1.5", + "@radix-ui/react-context": "1.2.2", + "@radix-ui/react-direction": "1.1.4", + "@radix-ui/react-dismissable-layer": "1.1.19", + "@radix-ui/react-focus-guards": "1.1.6", + "@radix-ui/react-focus-scope": "1.1.16", + "@radix-ui/react-id": "1.1.4", + "@radix-ui/react-popper": "1.3.7", + "@radix-ui/react-portal": "1.1.17", + "@radix-ui/react-presence": "1.1.10", + "@radix-ui/react-primitive": "2.1.10", + "@radix-ui/react-slot": "1.3.3", + "@radix-ui/react-use-callback-ref": "1.1.4", + "@radix-ui/react-use-controllable-state": "1.2.6", + "@radix-ui/react-use-layout-effect": "1.1.4", + "@radix-ui/react-use-previous": "1.1.4", + "@radix-ui/react-visually-hidden": "1.2.11", + "aria-hidden": "^1.2.4", + "react-remove-scroll": "^2.7.2" + }, + "peerDependencies": { + "@types/react": "*", + "@types/react-dom": "*", + "react": "^16.8 || ^17.0 || ^18.0 || ^19.0 || ^19.0.0-rc", + "react-dom": "^16.8 || ^17.0 || ^18.0 || ^19.0 || ^19.0.0-rc" + }, + "peerDependenciesMeta": { + "@types/react": { + "optional": true + }, + "@types/react-dom": { + "optional": true + } + } + }, + "node_modules/@radix-ui/react-separator": { + "version": "1.1.15", + "resolved": "https://registry.npmjs.org/@radix-ui/react-separator/-/react-separator-1.1.15.tgz", + "integrity": "sha512-jOLO4lssEzWpoDu7G+Ze4VjwMRUBt291pnZD0gmalREZipnTX3wadQo7Fy48GCTfe14/YRN6rw/rOJqrE85Wxw==", + "license": "MIT", + "dependencies": { + "@radix-ui/react-primitive": "2.1.10" + }, + "peerDependencies": { + "@types/react": "*", + "@types/react-dom": "*", + "react": "^16.8 || ^17.0 || ^18.0 || ^19.0 || ^19.0.0-rc", + "react-dom": "^16.8 || ^17.0 || ^18.0 || ^19.0 || ^19.0.0-rc" + }, + "peerDependenciesMeta": { + "@types/react": { + "optional": true + }, + "@types/react-dom": { + "optional": true + } + } + }, + "node_modules/@radix-ui/react-slider": { + "version": "1.4.7", + "resolved": "https://registry.npmjs.org/@radix-ui/react-slider/-/react-slider-1.4.7.tgz", + "integrity": "sha512-mTSLf1GC/C0moWjTbvCM6Qn/gBjvlFt1azuWF2v7MN5C3Zq2U2J2lN3ZEYkpujuOU5Ro7A28wkviSxaKnG0BYg==", + "license": "MIT", + "dependencies": { + "@radix-ui/number": "1.1.3", + "@radix-ui/primitive": "1.1.7", + "@radix-ui/react-collection": "1.1.15", + "@radix-ui/react-compose-refs": "1.1.5", + "@radix-ui/react-context": "1.2.2", + "@radix-ui/react-direction": "1.1.4", + "@radix-ui/react-primitive": "2.1.10", + "@radix-ui/react-use-controllable-state": "1.2.6", + "@radix-ui/react-use-layout-effect": "1.1.4", + "@radix-ui/react-use-previous": "1.1.4", + "@radix-ui/react-use-size": "1.1.4" + }, + "peerDependencies": { + "@types/react": "*", + "@types/react-dom": "*", + "react": "^16.8 || ^17.0 || ^18.0 || ^19.0 || ^19.0.0-rc", + "react-dom": "^16.8 || ^17.0 || ^18.0 || ^19.0 || ^19.0.0-rc" + }, + "peerDependenciesMeta": { + "@types/react": { + "optional": true + }, + "@types/react-dom": { + "optional": true + } + } + }, + "node_modules/@radix-ui/react-slot": { + "version": "1.3.3", + "resolved": "https://registry.npmjs.org/@radix-ui/react-slot/-/react-slot-1.3.3.tgz", + "integrity": "sha512-qx7oqnYbxnK9kYI9m317qmFmEgo6ywqWvbTogdj7cL9p3/yx4M48p7Rnw5z3H890cL/ow/EeWJsuTykeZVXP5Q==", + "license": "MIT", + "dependencies": { + "@radix-ui/react-compose-refs": "1.1.5" + }, + "peerDependencies": { + "@types/react": "*", + "react": "^16.8 || ^17.0 || ^18.0 || ^19.0 || ^19.0.0-rc" + }, + "peerDependenciesMeta": { + "@types/react": { + "optional": true + } + } + }, + "node_modules/@radix-ui/react-switch": { + "version": "1.3.7", + "resolved": "https://registry.npmjs.org/@radix-ui/react-switch/-/react-switch-1.3.7.tgz", + "integrity": "sha512-48tB/4dn2UVLBCYhTu9AuR63IHl73l/qLbLgxd86noTUor4/K4LFDAcYjK+isP5313qxaFpjPVogE7+Y0/V3Kw==", + "license": "MIT", + "dependencies": { + "@radix-ui/primitive": "1.1.7", + "@radix-ui/react-compose-refs": "1.1.5", + "@radix-ui/react-context": "1.2.2", + "@radix-ui/react-primitive": "2.1.10", + "@radix-ui/react-use-controllable-state": "1.2.6", + "@radix-ui/react-use-size": "1.1.4" + }, + "peerDependencies": { + "@types/react": "*", + "@types/react-dom": "*", + "react": "^16.8 || ^17.0 || ^18.0 || ^19.0 || ^19.0.0-rc", + "react-dom": "^16.8 || ^17.0 || ^18.0 || ^19.0 || ^19.0.0-rc" + }, + "peerDependenciesMeta": { + "@types/react": { + "optional": true + }, + "@types/react-dom": { + "optional": true + } + } + }, + "node_modules/@radix-ui/react-tabs": { + "version": "1.1.21", + "resolved": "https://registry.npmjs.org/@radix-ui/react-tabs/-/react-tabs-1.1.21.tgz", + "integrity": "sha512-UKxJlZid7FVtsk/WTxj4i4uSEgj2Au+KBbS7SQyTlzMhhn+86Cz3tISZdTa87bfEfcuvZezf2ZsxD4xuEKtkog==", + "license": "MIT", + "dependencies": { + "@radix-ui/primitive": "1.1.7", + "@radix-ui/react-context": "1.2.2", + "@radix-ui/react-direction": "1.1.4", + "@radix-ui/react-id": "1.1.4", + "@radix-ui/react-presence": "1.1.10", + "@radix-ui/react-primitive": "2.1.10", + "@radix-ui/react-roving-focus": "1.1.19", + "@radix-ui/react-use-controllable-state": "1.2.6" + }, + "peerDependencies": { + "@types/react": "*", + "@types/react-dom": "*", + "react": "^16.8 || ^17.0 || ^18.0 || ^19.0 || ^19.0.0-rc", + "react-dom": "^16.8 || ^17.0 || ^18.0 || ^19.0 || ^19.0.0-rc" + }, + "peerDependenciesMeta": { + "@types/react": { + "optional": true + }, + "@types/react-dom": { + "optional": true + } + } + }, + "node_modules/@radix-ui/react-toast": { + "version": "1.2.23", + "resolved": "https://registry.npmjs.org/@radix-ui/react-toast/-/react-toast-1.2.23.tgz", + "integrity": "sha512-ofhyAsYaocRGOs/n0XWdUOSVzEAG6BfrMVM8z0c0kLEWY38w/0WuMFPTJP/HVaZPYkMvHZoKIIhNcjbTCBILPg==", + "license": "MIT", + "dependencies": { + "@radix-ui/primitive": "1.1.7", + "@radix-ui/react-collection": "1.1.15", + "@radix-ui/react-compose-refs": "1.1.5", + "@radix-ui/react-context": "1.2.2", + "@radix-ui/react-dismissable-layer": "1.1.19", + "@radix-ui/react-portal": "1.1.17", + "@radix-ui/react-presence": "1.1.10", + "@radix-ui/react-primitive": "2.1.10", + "@radix-ui/react-use-callback-ref": "1.1.4", + "@radix-ui/react-use-controllable-state": "1.2.6", + "@radix-ui/react-use-layout-effect": "1.1.4", + "@radix-ui/react-visually-hidden": "1.2.11" + }, + "peerDependencies": { + "@types/react": "*", + "@types/react-dom": "*", + "react": "^16.8 || ^17.0 || ^18.0 || ^19.0 || ^19.0.0-rc", + "react-dom": "^16.8 || ^17.0 || ^18.0 || ^19.0 || ^19.0.0-rc" + }, + "peerDependenciesMeta": { + "@types/react": { + "optional": true + }, + "@types/react-dom": { + "optional": true + } + } + }, + "node_modules/@radix-ui/react-toggle": { + "version": "1.1.18", + "resolved": "https://registry.npmjs.org/@radix-ui/react-toggle/-/react-toggle-1.1.18.tgz", + "integrity": "sha512-7lonPlKfSacd20GlOBx2ltuVKz9oqWYZz+oMQyOltw6t1y2nyftj2ZmwwUHYn49kqfDWcp8dNZm5NgV+5Z+mug==", + "license": "MIT", + "dependencies": { + "@radix-ui/primitive": "1.1.7", + "@radix-ui/react-primitive": "2.1.10", + "@radix-ui/react-use-controllable-state": "1.2.6" + }, + "peerDependencies": { + "@types/react": "*", + "@types/react-dom": "*", + "react": "^16.8 || ^17.0 || ^18.0 || ^19.0 || ^19.0.0-rc", + "react-dom": "^16.8 || ^17.0 || ^18.0 || ^19.0 || ^19.0.0-rc" + }, + "peerDependenciesMeta": { + "@types/react": { + "optional": true + }, + "@types/react-dom": { + "optional": true + } + } + }, + "node_modules/@radix-ui/react-toggle-group": { + "version": "1.1.19", + "resolved": "https://registry.npmjs.org/@radix-ui/react-toggle-group/-/react-toggle-group-1.1.19.tgz", + "integrity": "sha512-OtnwuSVjd1Ofi+AdnvhsjQdyuhCDwYs1w9RyB5BN/OavXOVQo42SYqQjwUnbPnaiPFBpQ9aX70dWeee+v2oBLA==", + "license": "MIT", + "dependencies": { + "@radix-ui/primitive": "1.1.7", + "@radix-ui/react-context": "1.2.2", + "@radix-ui/react-direction": "1.1.4", + "@radix-ui/react-primitive": "2.1.10", + "@radix-ui/react-roving-focus": "1.1.19", + "@radix-ui/react-toggle": "1.1.18", + "@radix-ui/react-use-controllable-state": "1.2.6" + }, + "peerDependencies": { + "@types/react": "*", + "@types/react-dom": "*", + "react": "^16.8 || ^17.0 || ^18.0 || ^19.0 || ^19.0.0-rc", + "react-dom": "^16.8 || ^17.0 || ^18.0 || ^19.0 || ^19.0.0-rc" + }, + "peerDependenciesMeta": { + "@types/react": { + "optional": true + }, + "@types/react-dom": { + "optional": true + } + } + }, + "node_modules/@radix-ui/react-toolbar": { + "version": "1.1.19", + "resolved": "https://registry.npmjs.org/@radix-ui/react-toolbar/-/react-toolbar-1.1.19.tgz", + "integrity": "sha512-Ph0IvtYw4VB12ZnZg+YtrGs8yJQsnizwo/zu0R4Y/nWugtJzA7Pg1eWeuDR9+LSqn+xjamss+UOSOJJJ4gx8jw==", + "license": "MIT", + "dependencies": { + "@radix-ui/primitive": "1.1.7", + "@radix-ui/react-context": "1.2.2", + "@radix-ui/react-direction": "1.1.4", + "@radix-ui/react-primitive": "2.1.10", + "@radix-ui/react-roving-focus": "1.1.19", + "@radix-ui/react-separator": "1.1.15", + "@radix-ui/react-toggle-group": "1.1.19" + }, + "peerDependencies": { + "@types/react": "*", + "@types/react-dom": "*", + "react": "^16.8 || ^17.0 || ^18.0 || ^19.0 || ^19.0.0-rc", + "react-dom": "^16.8 || ^17.0 || ^18.0 || ^19.0 || ^19.0.0-rc" + }, + "peerDependenciesMeta": { + "@types/react": { + "optional": true + }, + "@types/react-dom": { + "optional": true + } + } + }, + "node_modules/@radix-ui/react-tooltip": { + "version": "1.2.16", + "resolved": "https://registry.npmjs.org/@radix-ui/react-tooltip/-/react-tooltip-1.2.16.tgz", + "integrity": "sha512-6EamKFRRnlpdadndbZ6LMwycfwkwPte1B42hs6QA0gYhjaOKqW4PZ4pjaW9UrlDX5eVt/OjncE7BFTPL5nmZhg==", + "license": "MIT", + "dependencies": { + "@radix-ui/primitive": "1.1.7", + "@radix-ui/react-compose-refs": "1.1.5", + "@radix-ui/react-context": "1.2.2", + "@radix-ui/react-dismissable-layer": "1.1.19", + "@radix-ui/react-id": "1.1.4", + "@radix-ui/react-popper": "1.3.7", + "@radix-ui/react-portal": "1.1.17", + "@radix-ui/react-presence": "1.1.10", + "@radix-ui/react-primitive": "2.1.10", + "@radix-ui/react-slot": "1.3.3", + "@radix-ui/react-use-controllable-state": "1.2.6", + "@radix-ui/react-use-layout-effect": "1.1.4", + "@radix-ui/react-visually-hidden": "1.2.11" + }, + "peerDependencies": { + "@types/react": "*", + "@types/react-dom": "*", + "react": "^16.8 || ^17.0 || ^18.0 || ^19.0 || ^19.0.0-rc", + "react-dom": "^16.8 || ^17.0 || ^18.0 || ^19.0 || ^19.0.0-rc" + }, + "peerDependenciesMeta": { + "@types/react": { + "optional": true + }, + "@types/react-dom": { + "optional": true + } + } + }, + "node_modules/@radix-ui/react-use-callback-ref": { + "version": "1.1.4", + "resolved": "https://registry.npmjs.org/@radix-ui/react-use-callback-ref/-/react-use-callback-ref-1.1.4.tgz", + "integrity": "sha512-R6OUY2e2fA6Yn6s+VSx5KBV6Nx8LQEhu+cz7LCej18rQ1HLyg9PSC9jP/ZNx0o6FAIK9c0F1kHylzSxKsdlkrQ==", + "license": "MIT", + "peerDependencies": { + "@types/react": "*", + "react": "^16.8 || ^17.0 || ^18.0 || ^19.0 || ^19.0.0-rc" + }, + "peerDependenciesMeta": { + "@types/react": { + "optional": true + } + } + }, + "node_modules/@radix-ui/react-use-controllable-state": { + "version": "1.2.6", + "resolved": "https://registry.npmjs.org/@radix-ui/react-use-controllable-state/-/react-use-controllable-state-1.2.6.tgz", + "integrity": "sha512-uEQJGT97ZA/TgP/Hydw47lHu+/vQj6z/0jA+WeTbK1o9Rx45GImjpD0tc3W5ad3D6XTSR6e1yEO0FvGq6WQfVQ==", + "license": "MIT", + "dependencies": { + "@radix-ui/primitive": "1.1.7", + "@radix-ui/react-use-effect-event": "0.0.5", + "@radix-ui/react-use-layout-effect": "1.1.4" + }, + "peerDependencies": { + "@types/react": "*", + "react": "^16.8 || ^17.0 || ^18.0 || ^19.0 || ^19.0.0-rc" + }, + "peerDependenciesMeta": { + "@types/react": { + "optional": true + } + } + }, + "node_modules/@radix-ui/react-use-effect-event": { + "version": "0.0.5", + "resolved": "https://registry.npmjs.org/@radix-ui/react-use-effect-event/-/react-use-effect-event-0.0.5.tgz", + "integrity": "sha512-7cshFL8HGS/7HEiHH+9kL9HBwp2sa9yX18Knwek6KYWmXwM7pegMgta2AXMQKI+rq3JnfSj9x8wYqFMTdG1Jgg==", + "license": "MIT", + "dependencies": { + "@radix-ui/react-use-layout-effect": "1.1.4" + }, + "peerDependencies": { + "@types/react": "*", + "react": "^16.8 || ^17.0 || ^18.0 || ^19.0 || ^19.0.0-rc" + }, + "peerDependenciesMeta": { + "@types/react": { + "optional": true + } + } + }, + "node_modules/@radix-ui/react-use-escape-keydown": { + "version": "1.1.5", + "resolved": "https://registry.npmjs.org/@radix-ui/react-use-escape-keydown/-/react-use-escape-keydown-1.1.5.tgz", + "integrity": "sha512-ge3ipobwSXTj4JyVtswQ7qZj0ZHdtbGuOno/LrgAAeSxtsJ6Vs4Gz5IkPH2bmqpjcLUFoqGhA/mueuIf63UXlA==", + "license": "MIT", + "dependencies": { + "@radix-ui/react-use-callback-ref": "1.1.4" + }, + "peerDependencies": { + "@types/react": "*", + "react": "^16.8 || ^17.0 || ^18.0 || ^19.0 || ^19.0.0-rc" + }, + "peerDependenciesMeta": { + "@types/react": { + "optional": true + } + } + }, + "node_modules/@radix-ui/react-use-is-hydrated": { + "version": "0.1.3", + "resolved": "https://registry.npmjs.org/@radix-ui/react-use-is-hydrated/-/react-use-is-hydrated-0.1.3.tgz", + "integrity": "sha512-umO/aJ+82CpOnhDZUTbILCQf7kU/g0iv+oGs/Q8jw7IkhWBzaEP4sA268PhFAJTFetbwp3ICc6ktpI4TqtxcIw==", + "license": "MIT", + "peerDependencies": { + "@types/react": "*", + "react": "^16.8 || ^17.0 || ^18.0 || ^19.0 || ^19.0.0-rc" + }, + "peerDependenciesMeta": { + "@types/react": { + "optional": true + } + } + }, + "node_modules/@radix-ui/react-use-layout-effect": { + "version": "1.1.4", + "resolved": "https://registry.npmjs.org/@radix-ui/react-use-layout-effect/-/react-use-layout-effect-1.1.4.tgz", + "integrity": "sha512-K20DkRkUwDnxEYMBPcg3Y6voLkEy5p5QQmszZgLngKKiC7dzBR/aEuK3w1qlx2JWDUNH6FluahYdgR3BP+QbYw==", + "license": "MIT", + "peerDependencies": { + "@types/react": "*", + "react": "^16.8 || ^17.0 || ^18.0 || ^19.0 || ^19.0.0-rc" + }, + "peerDependenciesMeta": { + "@types/react": { + "optional": true + } + } + }, + "node_modules/@radix-ui/react-use-previous": { + "version": "1.1.4", + "resolved": "https://registry.npmjs.org/@radix-ui/react-use-previous/-/react-use-previous-1.1.4.tgz", + "integrity": "sha512-XoSLhbRbqxFtgJoi2fNHA3C6pDlY34x508vUpUGoFZfvePfHXHbE1lC4FYFMnJWgiCRroSTw6fOsXQoVS9RwZg==", + "license": "MIT", + "peerDependencies": { + "@types/react": "*", + "react": "^16.8 || ^17.0 || ^18.0 || ^19.0 || ^19.0.0-rc" + }, + "peerDependenciesMeta": { + "@types/react": { + "optional": true + } + } + }, + "node_modules/@radix-ui/react-use-rect": { + "version": "1.1.4", + "resolved": "https://registry.npmjs.org/@radix-ui/react-use-rect/-/react-use-rect-1.1.4.tgz", + "integrity": "sha512-cSOCh6JlkmfjLyNcLiu2nB4v+nm+dkZ+Q5KHWk/soo4U7ZLiEQFKHK9/YmtBHjfCEaU43IBKQOc4/uJmCaiCTQ==", + "license": "MIT", + "dependencies": { + "@radix-ui/rect": "1.1.3" + }, + "peerDependencies": { + "@types/react": "*", + "react": "^16.8 || ^17.0 || ^18.0 || ^19.0 || ^19.0.0-rc" + }, + "peerDependenciesMeta": { + "@types/react": { + "optional": true + } + } + }, + "node_modules/@radix-ui/react-use-size": { + "version": "1.1.4", + "resolved": "https://registry.npmjs.org/@radix-ui/react-use-size/-/react-use-size-1.1.4.tgz", + "integrity": "sha512-D3anSY15EJoxrihpsXI6SMrmmonnQtR2ni7arO+Lfdg3O95b9hNXxONk8jA5C8ANdF/h5HMAxejgs8PWJ6rlhw==", + "license": "MIT", + "dependencies": { + "@radix-ui/react-use-layout-effect": "1.1.4" + }, + "peerDependencies": { + "@types/react": "*", + "react": "^16.8 || ^17.0 || ^18.0 || ^19.0 || ^19.0.0-rc" + }, + "peerDependenciesMeta": { + "@types/react": { + "optional": true + } + } + }, + "node_modules/@radix-ui/react-visually-hidden": { + "version": "1.2.11", + "resolved": "https://registry.npmjs.org/@radix-ui/react-visually-hidden/-/react-visually-hidden-1.2.11.tgz", + "integrity": "sha512-NFS86RYYZb4/exihaESBGOpMJFz8MGLAfu3mOBSGByVnVPC9JPASfYubxd/8KbkQK0sYAv8lVQDEQukDX/qXvQ==", + "license": "MIT", + "dependencies": { + "@radix-ui/react-primitive": "2.1.10" + }, + "peerDependencies": { + "@types/react": "*", + "@types/react-dom": "*", + "react": "^16.8 || ^17.0 || ^18.0 || ^19.0 || ^19.0.0-rc", + "react-dom": "^16.8 || ^17.0 || ^18.0 || ^19.0 || ^19.0.0-rc" + }, + "peerDependenciesMeta": { + "@types/react": { + "optional": true + }, + "@types/react-dom": { + "optional": true + } + } + }, + "node_modules/@radix-ui/rect": { + "version": "1.1.3", + "resolved": "https://registry.npmjs.org/@radix-ui/rect/-/rect-1.1.3.tgz", + "integrity": "sha512-JtyZR+mqgBibTo8xea3B6ZRmzZiM/YeVBtUkas6zMuXjAlfIFIW2FgqeM9eLyvEaYX66vr6DJMK+4U6LV0KhNw==", + "license": "MIT" + }, + "node_modules/@rolldown/pluginutils": { + "version": "1.0.0-rc.3", + "resolved": "https://registry.npmjs.org/@rolldown/pluginutils/-/pluginutils-1.0.0-rc.3.tgz", + "integrity": "sha512-eybk3TjzzzV97Dlj5c+XrBFW57eTNhzod66y9HrBlzJ6NsCrWCp/2kaPS3K9wJmurBC0Tdw4yPjXKZqlznim3Q==", + "dev": true, + "license": "MIT" + }, + "node_modules/@rollup/rollup-android-arm-eabi": { + "version": "4.63.1", + "resolved": "https://registry.npmjs.org/@rollup/rollup-android-arm-eabi/-/rollup-android-arm-eabi-4.63.1.tgz", + "integrity": "sha512-UZ8sUxPTiHWYX9QNdJedb1kDZSpS1t/VPWBWGSgqHNi9w3Cu6IXvu2mzbhiTiPvtrqgTQJ+zqiAq2iPIPilpaQ==", + "cpu": [ + "arm" + ], + "dev": true, + "license": "MIT", + "optional": true, + "os": [ + "android" + ] + }, + "node_modules/@rollup/rollup-android-arm64": { + "version": "4.63.1", + "resolved": "https://registry.npmjs.org/@rollup/rollup-android-arm64/-/rollup-android-arm64-4.63.1.tgz", + "integrity": "sha512-cQ4nFQABN5cDvDpbvJ7bMStCpnaVxynZrRMfUJYgxcIk9Sh54FIO1vtfkg0B69REjER77ioZ/ov+eAApx/KmLQ==", + "cpu": [ + "arm64" + ], + "dev": true, + "license": "MIT", + "optional": true, + "os": [ + "android" + ] + }, + "node_modules/@rollup/rollup-darwin-arm64": { + "version": "4.63.1", + "resolved": "https://registry.npmjs.org/@rollup/rollup-darwin-arm64/-/rollup-darwin-arm64-4.63.1.tgz", + "integrity": "sha512-FQNqd1lRy/0QhDk3xeRIkSBiCpXCiDnZO3YLVdcDKN1UBiKToNftCzcXYNLshmPDUMlu2TdeS8tGcsU6f3YF1Q==", + "cpu": [ + "arm64" + ], + "dev": true, + "license": "MIT", + "optional": true, + "os": [ + "darwin" + ] + }, + "node_modules/@rollup/rollup-darwin-x64": { + "version": "4.63.1", + "resolved": "https://registry.npmjs.org/@rollup/rollup-darwin-x64/-/rollup-darwin-x64-4.63.1.tgz", + "integrity": "sha512-pvD16V939D3CloK0+qikpGaxiPrDUXTe7Y5cWOMkMSy7m1cawa8EGy/kXYi/G/cKAC4HDAbSnzCIk1WmsoOKXg==", + "cpu": [ + "x64" + ], + "dev": true, + "license": "MIT", + "optional": true, + "os": [ + "darwin" + ] + }, + "node_modules/@rollup/rollup-freebsd-arm64": { + "version": "4.63.1", + "resolved": "https://registry.npmjs.org/@rollup/rollup-freebsd-arm64/-/rollup-freebsd-arm64-4.63.1.tgz", + "integrity": "sha512-pcFGeL2345VwdTnJhA6zLbew+YgWB0qBG2+dMtXjCicf6+rm6kO6cOoh5VnTe0ZMrMRgRyuHmCJxZWrIdzYuOw==", + "cpu": [ + "arm64" + ], + "dev": true, + "license": "MIT", + "optional": true, + "os": [ + "freebsd" + ] + }, + "node_modules/@rollup/rollup-freebsd-x64": { + "version": "4.63.1", + "resolved": "https://registry.npmjs.org/@rollup/rollup-freebsd-x64/-/rollup-freebsd-x64-4.63.1.tgz", + "integrity": "sha512-mRJlqSRulVzcKq/LKA6ICSIc3K/l4fzlVn/gePn2nXIHy8seRi5z/eeRE0d/XMBxcMldiXtQTSpRj0tkkC3g8Q==", + "cpu": [ + "x64" + ], + "dev": true, + "license": "MIT", + "optional": true, + "os": [ + "freebsd" + ] + }, + "node_modules/@rollup/rollup-linux-arm-gnueabihf": { + "version": "4.63.1", + "resolved": "https://registry.npmjs.org/@rollup/rollup-linux-arm-gnueabihf/-/rollup-linux-arm-gnueabihf-4.63.1.tgz", + "integrity": "sha512-YDUNvVM85TI3g/1OpnqKP1h4NeW/j64DfWMf+G3M809xNk1bJSnpFp4sh83NpmVE5DXnkh8ULor4LTVZKoYLHw==", + "cpu": [ + "arm" + ], + "dev": true, + "libc": [ + "glibc" + ], + "license": "MIT", + "optional": true, + "os": [ + "linux" + ] + }, + "node_modules/@rollup/rollup-linux-arm-musleabihf": { + "version": "4.63.1", + "resolved": "https://registry.npmjs.org/@rollup/rollup-linux-arm-musleabihf/-/rollup-linux-arm-musleabihf-4.63.1.tgz", + "integrity": "sha512-7Mcn71p9ZuQFAj+h+dhQXy/yeLePRS2yKRnmW1DijA9thKO5qap0GNOIQK4yQ6iP3SU0Mrb/yWo8h8vgRba8lw==", + "cpu": [ + "arm" + ], + "dev": true, + "libc": [ + "musl" + ], + "license": "MIT", + "optional": true, + "os": [ + "linux" + ] + }, + "node_modules/@rollup/rollup-linux-arm64-gnu": { + "version": "4.63.1", + "resolved": "https://registry.npmjs.org/@rollup/rollup-linux-arm64-gnu/-/rollup-linux-arm64-gnu-4.63.1.tgz", + "integrity": "sha512-4YiLQTX6U4CSl0L9cluep9A9W6UmTfqBDc2/CH6wlu54pl4E7Jn3cOD8oxzvBDEGk/JMKgJ47C8g+radF7mwvg==", + "cpu": [ + "arm64" + ], + "dev": true, + "libc": [ + "glibc" + ], + "license": "MIT", + "optional": true, + "os": [ + "linux" + ] + }, + "node_modules/@rollup/rollup-linux-arm64-musl": { + "version": "4.63.1", + "resolved": "https://registry.npmjs.org/@rollup/rollup-linux-arm64-musl/-/rollup-linux-arm64-musl-4.63.1.tgz", + "integrity": "sha512-2ra8F7w8OquwZN9z2/fKFnli69wa8PLwaVzRMIPGb13ByMJwC28Fbp8YcVGoUhlYMTt7j5j9bNgpysrN2UM+vw==", + "cpu": [ + "arm64" + ], + "dev": true, + "libc": [ + "musl" + ], + "license": "MIT", + "optional": true, + "os": [ + "linux" + ] + }, + "node_modules/@rollup/rollup-linux-loong64-gnu": { + "version": "4.63.1", + "resolved": "https://registry.npmjs.org/@rollup/rollup-linux-loong64-gnu/-/rollup-linux-loong64-gnu-4.63.1.tgz", + "integrity": "sha512-Sy20ncyhjmBP0Ml+UvQbimjlk6VFgjW5uNP+qqwHB00mTE8Bl2C1TuHTlRwK2YoXeZbee5lP2XevBWVkAQAtSQ==", + "cpu": [ + "loong64" + ], + "dev": true, + "libc": [ + "glibc" + ], + "license": "MIT", + "optional": true, + "os": [ + "linux" + ] + }, + "node_modules/@rollup/rollup-linux-loong64-musl": { + "version": "4.63.1", + "resolved": "https://registry.npmjs.org/@rollup/rollup-linux-loong64-musl/-/rollup-linux-loong64-musl-4.63.1.tgz", + "integrity": "sha512-noITLp8oNjYliPnGWmLyelIHwULGqbHloQHGw1rtxbWhTuWooRpnZarZQJ1y9EUC4szuCusCc+HEpUtxpIwYvA==", + "cpu": [ + "loong64" + ], + "dev": true, + "libc": [ + "musl" + ], + "license": "MIT", + "optional": true, + "os": [ + "linux" + ] + }, + "node_modules/@rollup/rollup-linux-ppc64-gnu": { + "version": "4.63.1", + "resolved": "https://registry.npmjs.org/@rollup/rollup-linux-ppc64-gnu/-/rollup-linux-ppc64-gnu-4.63.1.tgz", + "integrity": "sha512-hlxxXd+F1mWiAcaFR7Sv9ZQT6m6UfI8+Vy/kFJzztq2pDMU/0wZ9sish0iszNZvsQDo8Gc0i5yuFEOz5dDf6fA==", + "cpu": [ + "ppc64" + ], + "dev": true, + "libc": [ + "glibc" + ], + "license": "MIT", + "optional": true, + "os": [ + "linux" + ] + }, + "node_modules/@rollup/rollup-linux-ppc64-musl": { + "version": "4.63.1", + "resolved": "https://registry.npmjs.org/@rollup/rollup-linux-ppc64-musl/-/rollup-linux-ppc64-musl-4.63.1.tgz", + "integrity": "sha512-EF7OpqQTQ/BvGqLzUi4rEHuagCV9MugAUXSHemwPW5vxZ75RR+jxO/2j95Ph2dalMpFHSVECjRoioHZgA9zOYA==", + "cpu": [ + "ppc64" + ], + "dev": true, + "libc": [ + "musl" + ], + "license": "MIT", + "optional": true, + "os": [ + "linux" + ] + }, + "node_modules/@rollup/rollup-linux-riscv64-gnu": { + "version": "4.63.1", + "resolved": "https://registry.npmjs.org/@rollup/rollup-linux-riscv64-gnu/-/rollup-linux-riscv64-gnu-4.63.1.tgz", + "integrity": "sha512-wQO3JesW9PRkwlabQ27y7sPfVOOTLRG73I4F2UYHG5PXun3J9U3y+b7ezVKSYbsvSKGQ1k1cq8Qlun4C9kLt3w==", + "cpu": [ + "riscv64" + ], + "dev": true, + "libc": [ + "glibc" + ], + "license": "MIT", + "optional": true, + "os": [ + "linux" + ] + }, + "node_modules/@rollup/rollup-linux-riscv64-musl": { + "version": "4.63.1", + "resolved": "https://registry.npmjs.org/@rollup/rollup-linux-riscv64-musl/-/rollup-linux-riscv64-musl-4.63.1.tgz", + "integrity": "sha512-ouAGwhO6wHRXdnOVCOsB0tRFkA7nhNB2Nwax6oECXN0YiN8EYUTBAOudADOB1PI+yDL61TeNx/u7MVCzksNbkQ==", + "cpu": [ + "riscv64" + ], + "dev": true, + "libc": [ + "musl" + ], + "license": "MIT", + "optional": true, + "os": [ + "linux" + ] + }, + "node_modules/@rollup/rollup-linux-s390x-gnu": { + "version": "4.63.1", + "resolved": "https://registry.npmjs.org/@rollup/rollup-linux-s390x-gnu/-/rollup-linux-s390x-gnu-4.63.1.tgz", + "integrity": "sha512-q2R38Sn+1J8RxhfJ+T54wSWmyKXWec+9jgDfqO2AtArEqHO5R2aeayp5H5OYLr5UYDVGsVaZPEFUooMhYCdz5A==", + "cpu": [ + "s390x" + ], + "dev": true, + "libc": [ + "glibc" + ], + "license": "MIT", + "optional": true, + "os": [ + "linux" + ] + }, + "node_modules/@rollup/rollup-linux-x64-gnu": { + "version": "4.63.1", + "resolved": "https://registry.npmjs.org/@rollup/rollup-linux-x64-gnu/-/rollup-linux-x64-gnu-4.63.1.tgz", + "integrity": "sha512-gfI5T24WLLuFfSKw7Go/zDXjAAV0fny0swTaDv+WjK7vqcw4cRhFfdsyKL1n+ukI+ooBxn3bVQnyrn06WpI50w==", + "cpu": [ + "x64" + ], + "dev": true, + "libc": [ + "glibc" + ], + "license": "MIT", + "optional": true, + "os": [ + "linux" + ] + }, + "node_modules/@rollup/rollup-linux-x64-musl": { + "version": "4.63.1", + "resolved": "https://registry.npmjs.org/@rollup/rollup-linux-x64-musl/-/rollup-linux-x64-musl-4.63.1.tgz", + "integrity": "sha512-4h6XqthmB4Hspji84wvgk+ElodTsGj+dbZqHJHHtKxj4mYq0ANSEEPX9ys3moJueqsRjwpaJYH7874Itwnj2ow==", + "cpu": [ + "x64" + ], + "dev": true, + "libc": [ + "musl" + ], + "license": "MIT", + "optional": true, + "os": [ + "linux" + ] + }, + "node_modules/@rollup/rollup-openbsd-x64": { + "version": "4.63.1", + "resolved": "https://registry.npmjs.org/@rollup/rollup-openbsd-x64/-/rollup-openbsd-x64-4.63.1.tgz", + "integrity": "sha512-dlfCOa87o1VAYegLQ9EKilx2JCeRofiyPGhTCmqnuXZ6bMPiycO1rq1+sKoulAp7pGLIsTIw+1x5R+zgh5LhhA==", + "cpu": [ + "x64" + ], + "dev": true, + "license": "MIT", + "optional": true, + "os": [ + "openbsd" + ] + }, + "node_modules/@rollup/rollup-openharmony-arm64": { + "version": "4.63.1", + "resolved": "https://registry.npmjs.org/@rollup/rollup-openharmony-arm64/-/rollup-openharmony-arm64-4.63.1.tgz", + "integrity": "sha512-cjkLbOlfcm3QGhMM1J5zaZjsw1GggbN6rw9UTSSRrPrR1KkcXnN7Uq9rPw34xImQ9VOY9GN+6u2Zj80B9ptkcw==", + "cpu": [ + "arm64" + ], + "dev": true, + "license": "MIT", + "optional": true, + "os": [ + "openharmony" + ] + }, + "node_modules/@rollup/rollup-win32-arm64-msvc": { + "version": "4.63.1", + "resolved": "https://registry.npmjs.org/@rollup/rollup-win32-arm64-msvc/-/rollup-win32-arm64-msvc-4.63.1.tgz", + "integrity": "sha512-Li1KdUnWGE4N3e1F/B4RTB1ms+nG4WBgjByO46pkeBVX/2UBsY53xf5vK9WygVmnH3RwncIST7lkSdLSY6P9lg==", + "cpu": [ + "arm64" + ], + "dev": true, + "license": "MIT", + "optional": true, + "os": [ + "win32" + ] + }, + "node_modules/@rollup/rollup-win32-ia32-msvc": { + "version": "4.63.1", + "resolved": "https://registry.npmjs.org/@rollup/rollup-win32-ia32-msvc/-/rollup-win32-ia32-msvc-4.63.1.tgz", + "integrity": "sha512-t4ZYOSoLTgwhuFMrmTMLx/+i1DQVK7HYqMc6kY46EApwi8X0nIVphzdNoThU3xt6n+N5urG1/gxBdCaKDLavfg==", + "cpu": [ + "ia32" + ], + "dev": true, + "license": "MIT", + "optional": true, + "os": [ + "win32" + ] + }, + "node_modules/@rollup/rollup-win32-x64-gnu": { + "version": "4.63.1", + "resolved": "https://registry.npmjs.org/@rollup/rollup-win32-x64-gnu/-/rollup-win32-x64-gnu-4.63.1.tgz", + "integrity": "sha512-RgroPfMmKlD1RzSDxvwgcPiy2HNQKoYV7OmwIXDsk73uKW5t6B/V8KIy27SMv/FNXFo/oSBtWc9J0X7t91ezZg==", + "cpu": [ + "x64" + ], + "dev": true, + "license": "MIT", + "optional": true, + "os": [ + "win32" + ] + }, + "node_modules/@rollup/rollup-win32-x64-msvc": { + "version": "4.63.1", + "resolved": "https://registry.npmjs.org/@rollup/rollup-win32-x64-msvc/-/rollup-win32-x64-msvc-4.63.1.tgz", + "integrity": "sha512-at8QVep6S3h5Y6gSbdGU06bRY5WJkf6WUduM9YtvYMbYhB1MOFfUgc6kehitQXzOtMSaT70q7f9ydPhpqu821w==", + "cpu": [ + "x64" + ], + "dev": true, + "license": "MIT", + "optional": true, + "os": [ + "win32" + ] + }, + "node_modules/@tiptap/core": { + "version": "3.30.5", + "resolved": "https://registry.npmjs.org/@tiptap/core/-/core-3.30.5.tgz", + "integrity": "sha512-3O7N0FyKIfuLV+xrdWyDM3V5eUY/q2CgLjhhMwOAbM1Pu7VPp9VP+TpEYOdH8aRyB+h1vj5hX5A747D8ZrPfHA==", + "license": "MIT", + "funding": { + "type": "github", + "url": "https://github.com/sponsors/ueberdosis" + }, + "peerDependencies": { + "@tiptap/pm": "3.30.5" + } + }, + "node_modules/@tiptap/extension-blockquote": { + "version": "3.30.5", + "resolved": "https://registry.npmjs.org/@tiptap/extension-blockquote/-/extension-blockquote-3.30.5.tgz", + "integrity": "sha512-8pf1ZDrl6XlVPUee/2YlWZPFSF7yqsJEX6WLW41x06MT1dapG3Qudcns0znj6kYsX8JXTJ+Mhegy4z19bvTtRg==", + "license": "MIT", + "funding": { + "type": "github", + "url": "https://github.com/sponsors/ueberdosis" + }, + "peerDependencies": { + "@tiptap/core": "3.30.5", + "@tiptap/pm": "3.30.5" + } + }, + "node_modules/@tiptap/extension-bold": { + "version": "3.30.5", + "resolved": "https://registry.npmjs.org/@tiptap/extension-bold/-/extension-bold-3.30.5.tgz", + "integrity": "sha512-MLZS+s/BJiJbv2C2M3G4FQGn43kPwYUUr2TiW3afSn+dRkEZlDxx5CwZYbe1PEt2+VX/SIifn945Oqr3s0axSA==", + "license": "MIT", + "funding": { + "type": "github", + "url": "https://github.com/sponsors/ueberdosis" + }, + "peerDependencies": { + "@tiptap/core": "3.30.5" + } + }, + "node_modules/@tiptap/extension-bubble-menu": { + "version": "3.30.5", + "resolved": "https://registry.npmjs.org/@tiptap/extension-bubble-menu/-/extension-bubble-menu-3.30.5.tgz", + "integrity": "sha512-redcmBInVwmipjF/WEVcNwCUJgJygUv8leidfRb/jBSAwx7GgnQWPr2HVQDk9zeTt3ykWld2NRdrk94Crjymow==", + "license": "MIT", + "optional": true, + "dependencies": { + "@floating-ui/dom": "^1.0.0" + }, + "funding": { + "type": "github", + "url": "https://github.com/sponsors/ueberdosis" + }, + "peerDependencies": { + "@tiptap/core": "3.30.5", + "@tiptap/pm": "3.30.5" + } + }, + "node_modules/@tiptap/extension-bullet-list": { + "version": "3.30.5", + "resolved": "https://registry.npmjs.org/@tiptap/extension-bullet-list/-/extension-bullet-list-3.30.5.tgz", + "integrity": "sha512-66OGw4suO0Gr/4QAEiSvVi0eSvEqStvu1moHUSvUlwvEqnuB0ME2w9HuRogPElzWdrYLzbBA47mlCi9Veva0ew==", + "license": "MIT", + "funding": { + "type": "github", + "url": "https://github.com/sponsors/ueberdosis" + }, + "peerDependencies": { + "@tiptap/extension-list": "3.30.5" + } + }, + "node_modules/@tiptap/extension-code": { + "version": "3.30.5", + "resolved": "https://registry.npmjs.org/@tiptap/extension-code/-/extension-code-3.30.5.tgz", + "integrity": "sha512-0dCt8eBo4sMtw+LjUu+0GF0JrTlREROdWoy8TM5kFPxJ5ZU2LKDiROXDPwXStaaoFFR/aStLH9xSpdz7cHUiUA==", + "license": "MIT", + "funding": { + "type": "github", + "url": "https://github.com/sponsors/ueberdosis" + }, + "peerDependencies": { + "@tiptap/core": "3.30.5" + } + }, + "node_modules/@tiptap/extension-code-block": { + "version": "3.30.5", + "resolved": "https://registry.npmjs.org/@tiptap/extension-code-block/-/extension-code-block-3.30.5.tgz", + "integrity": "sha512-SvkNoOio2xBy9AtSMyFKMp88MTUvyIXsGCnuz71INV2wHdH4VfRPoQLT6e077LpTCa9w6LHyTKtbZA4HYOp7wg==", + "license": "MIT", + "funding": { + "type": "github", + "url": "https://github.com/sponsors/ueberdosis" + }, + "peerDependencies": { + "@tiptap/core": "3.30.5", + "@tiptap/pm": "3.30.5" + } + }, + "node_modules/@tiptap/extension-document": { + "version": "3.30.5", + "resolved": "https://registry.npmjs.org/@tiptap/extension-document/-/extension-document-3.30.5.tgz", + "integrity": "sha512-4mKoD3bBr5W2AQ2Y/7amOqcVw0eqJbUwRtwvxypeo5Hi0PB9O5Ev8P05c3EUTo10bllqdKYXGeCU5AcgdQsHWQ==", + "license": "MIT", + "funding": { + "type": "github", + "url": "https://github.com/sponsors/ueberdosis" + }, + "peerDependencies": { + "@tiptap/core": "3.30.5" + } + }, + "node_modules/@tiptap/extension-dropcursor": { + "version": "3.30.5", + "resolved": "https://registry.npmjs.org/@tiptap/extension-dropcursor/-/extension-dropcursor-3.30.5.tgz", + "integrity": "sha512-gJxn9PMUee8zazQBYqbOZiI7zTFXPVJ15AzTnLfUu4eDtPieMwtpgcjhCt4bZlp37drLm+Li76wWLirb7iLxsw==", + "license": "MIT", + "funding": { + "type": "github", + "url": "https://github.com/sponsors/ueberdosis" + }, + "peerDependencies": { + "@tiptap/extensions": "3.30.5" + } + }, + "node_modules/@tiptap/extension-floating-menu": { + "version": "3.30.5", + "resolved": "https://registry.npmjs.org/@tiptap/extension-floating-menu/-/extension-floating-menu-3.30.5.tgz", + "integrity": "sha512-gTjGPWUpGn8IoW533TciZJZC/81LmBgU7zee+aRMRF3ix3K2z1pJjl6knDvrRQA6Kom+yWFaiueqGNXkrk38XQ==", + "license": "MIT", + "optional": true, + "funding": { + "type": "github", + "url": "https://github.com/sponsors/ueberdosis" + }, + "peerDependencies": { + "@floating-ui/dom": "^1.0.0", + "@tiptap/core": "3.30.5", + "@tiptap/pm": "3.30.5" + } + }, + "node_modules/@tiptap/extension-gapcursor": { + "version": "3.30.5", + "resolved": "https://registry.npmjs.org/@tiptap/extension-gapcursor/-/extension-gapcursor-3.30.5.tgz", + "integrity": "sha512-h3m2ZA1XXLAfdHwdtG0MZnf0KWbNyP8xTI3RUlTDR5apmKmYVBaeocOJwTcFFZ92gPKqxYKyhteZqYtHOCZGJA==", + "license": "MIT", + "funding": { + "type": "github", + "url": "https://github.com/sponsors/ueberdosis" + }, + "peerDependencies": { + "@tiptap/extensions": "3.30.5" + } + }, + "node_modules/@tiptap/extension-hard-break": { + "version": "3.30.5", + "resolved": "https://registry.npmjs.org/@tiptap/extension-hard-break/-/extension-hard-break-3.30.5.tgz", + "integrity": "sha512-PcL4Z8l/DlauwZUJg0jf6SXKk6/YOXJtd8yYzqHrmCLRoY4kAa7+TxUhc/lWhuitUiOZ8+nB8V/NNM+WR6mRaw==", + "license": "MIT", + "funding": { + "type": "github", + "url": "https://github.com/sponsors/ueberdosis" + }, + "peerDependencies": { + "@tiptap/core": "3.30.5" + } + }, + "node_modules/@tiptap/extension-heading": { + "version": "3.30.5", + "resolved": "https://registry.npmjs.org/@tiptap/extension-heading/-/extension-heading-3.30.5.tgz", + "integrity": "sha512-x7e7+p1bWXvwz6vqONPP1SVB73V0gZP7LIDL/5KMnxWLjahMTabgVPgjV30kz7GsOEgUYtEf7eCyGVGNNWL5Dg==", + "license": "MIT", + "funding": { + "type": "github", + "url": "https://github.com/sponsors/ueberdosis" + }, + "peerDependencies": { + "@tiptap/core": "3.30.5" + } + }, + "node_modules/@tiptap/extension-highlight": { + "version": "3.30.5", + "resolved": "https://registry.npmjs.org/@tiptap/extension-highlight/-/extension-highlight-3.30.5.tgz", + "integrity": "sha512-vDHdcY3aq3S1yXd8sFk42iLXKRauKgK/Zz4jBE4a33CG/3uf33HN49+wI004W+Avx23z3+4bcCzcqWQRVO1Bdg==", + "license": "MIT", + "funding": { + "type": "github", + "url": "https://github.com/sponsors/ueberdosis" + }, + "peerDependencies": { + "@tiptap/core": "3.30.5" + } + }, + "node_modules/@tiptap/extension-horizontal-rule": { + "version": "3.30.5", + "resolved": "https://registry.npmjs.org/@tiptap/extension-horizontal-rule/-/extension-horizontal-rule-3.30.5.tgz", + "integrity": "sha512-s5t2xM6wPYRJl2cqYplc7Ze8m8xddk4DP2v0aLFcUuD100D1B5eJbxsiwLK6wBAzNwiuVjd486RnmUpcswaXhQ==", + "license": "MIT", + "funding": { + "type": "github", + "url": "https://github.com/sponsors/ueberdosis" + }, + "peerDependencies": { + "@tiptap/core": "3.30.5", + "@tiptap/pm": "3.30.5" + } + }, + "node_modules/@tiptap/extension-italic": { + "version": "3.30.5", + "resolved": "https://registry.npmjs.org/@tiptap/extension-italic/-/extension-italic-3.30.5.tgz", + "integrity": "sha512-Fu9EuSRlHQNGES7UhY4mQod3yUKnWwxsGlPuDJURfwju/Ug04Jz8iRuERZBPcRgLNkwKDmbDsWUZF72RRIL2Uw==", + "license": "MIT", + "funding": { + "type": "github", + "url": "https://github.com/sponsors/ueberdosis" + }, + "peerDependencies": { + "@tiptap/core": "3.30.5" + } + }, + "node_modules/@tiptap/extension-link": { + "version": "3.30.5", + "resolved": "https://registry.npmjs.org/@tiptap/extension-link/-/extension-link-3.30.5.tgz", + "integrity": "sha512-zsQ+q83HpCYOMTNzdjb12dggE7sZMp0aqQJhArdavSTl8hLbVY/u3qJN88t25IEwAKVK0pcTJfWWA2QFl8bjAQ==", + "license": "MIT", + "dependencies": { + "linkifyjs": "^4.3.3" + }, + "funding": { + "type": "github", + "url": "https://github.com/sponsors/ueberdosis" + }, + "peerDependencies": { + "@tiptap/core": "3.30.5", + "@tiptap/pm": "3.30.5" + } + }, + "node_modules/@tiptap/extension-list": { + "version": "3.30.5", + "resolved": "https://registry.npmjs.org/@tiptap/extension-list/-/extension-list-3.30.5.tgz", + "integrity": "sha512-CHThihH+7TA0TfwtmA+eTXP1MAsA/+p011olJHg8Rilj5xA+L+0IFkjhN16JnZkBgSA4MnfEv15UMNfRaNpuVg==", + "license": "MIT", + "funding": { + "type": "github", + "url": "https://github.com/sponsors/ueberdosis" + }, + "peerDependencies": { + "@tiptap/core": "3.30.5", + "@tiptap/pm": "3.30.5" + } + }, + "node_modules/@tiptap/extension-list-item": { + "version": "3.30.5", + "resolved": "https://registry.npmjs.org/@tiptap/extension-list-item/-/extension-list-item-3.30.5.tgz", + "integrity": "sha512-N0fKUyQkPQBvVB48imjfIfdexU9VsAX1RydajYP2xAt+QOJ8KHVmXv1EGTp+v7pGdZMLdls1cSZ2f352vW3aWQ==", + "license": "MIT", + "funding": { + "type": "github", + "url": "https://github.com/sponsors/ueberdosis" + }, + "peerDependencies": { + "@tiptap/extension-list": "3.30.5" + } + }, + "node_modules/@tiptap/extension-list-keymap": { + "version": "3.30.5", + "resolved": "https://registry.npmjs.org/@tiptap/extension-list-keymap/-/extension-list-keymap-3.30.5.tgz", + "integrity": "sha512-3pLR2yo29uhowaGMbD8v71XpgdNmqotBg1NXlyTMVFzxELj+VjjeLLTqSguR/iWDUbHXNzIsfMEgpRnNMO//8w==", + "license": "MIT", + "funding": { + "type": "github", + "url": "https://github.com/sponsors/ueberdosis" + }, + "peerDependencies": { + "@tiptap/extension-list": "3.30.5" + } + }, + "node_modules/@tiptap/extension-ordered-list": { + "version": "3.30.5", + "resolved": "https://registry.npmjs.org/@tiptap/extension-ordered-list/-/extension-ordered-list-3.30.5.tgz", + "integrity": "sha512-bUGUnSAgjZhoUWBtr+1wRJHF3NnNvuKQr6sQ8le1tJ2yvLq448ZsSZjZGvTNeLsy3GDKBoMJ0rqLUK34+nM3hg==", + "license": "MIT", + "funding": { + "type": "github", + "url": "https://github.com/sponsors/ueberdosis" + }, + "peerDependencies": { + "@tiptap/extension-list": "3.30.5" + } + }, + "node_modules/@tiptap/extension-paragraph": { + "version": "3.30.5", + "resolved": "https://registry.npmjs.org/@tiptap/extension-paragraph/-/extension-paragraph-3.30.5.tgz", + "integrity": "sha512-GrNNlAImfQhYRtGE95YNAjcTclUUMPHs9JeE9vMgfcoKcOmZ6GsbWUdN0hA55xqwGaUjnroOVtf77K9z1EbkJQ==", + "license": "MIT", + "funding": { + "type": "github", + "url": "https://github.com/sponsors/ueberdosis" + }, + "peerDependencies": { + "@tiptap/core": "3.30.5" + } + }, + "node_modules/@tiptap/extension-strike": { + "version": "3.30.5", + "resolved": "https://registry.npmjs.org/@tiptap/extension-strike/-/extension-strike-3.30.5.tgz", + "integrity": "sha512-r8IbWUm4YXNCkmc6h6dzuREQIGbO0x9z9l3GfQPUR3LxFtGssDLngE4dFXHRt/ejLWKEauy6clklf7LawtvYzw==", + "license": "MIT", + "funding": { + "type": "github", + "url": "https://github.com/sponsors/ueberdosis" + }, + "peerDependencies": { + "@tiptap/core": "3.30.5" + } + }, + "node_modules/@tiptap/extension-text": { + "version": "3.30.5", + "resolved": "https://registry.npmjs.org/@tiptap/extension-text/-/extension-text-3.30.5.tgz", + "integrity": "sha512-pOgj4mIGFlw4NUdA6PCTFP/MHrYWnOYiZRYeu0I3/Yo3iN4Am/CgYBLl8PWsNh+YPO2hA2DWs7ZMke9D2j5R+g==", + "license": "MIT", + "funding": { + "type": "github", + "url": "https://github.com/sponsors/ueberdosis" + }, + "peerDependencies": { + "@tiptap/core": "3.30.5" + } + }, + "node_modules/@tiptap/extension-underline": { + "version": "3.30.5", + "resolved": "https://registry.npmjs.org/@tiptap/extension-underline/-/extension-underline-3.30.5.tgz", + "integrity": "sha512-u12G/WW2uFRY95BzrSAU9RW002K+7lFpSCL6fb7Puh8yLhek3lddOtAx0P+NI/PyMKtcoVMtBxoi+0mwVM7NPQ==", + "license": "MIT", + "funding": { + "type": "github", + "url": "https://github.com/sponsors/ueberdosis" + }, + "peerDependencies": { + "@tiptap/core": "3.30.5" + } + }, + "node_modules/@tiptap/extensions": { + "version": "3.30.5", + "resolved": "https://registry.npmjs.org/@tiptap/extensions/-/extensions-3.30.5.tgz", + "integrity": "sha512-5x3OiCYBvXz0G5OGM8f7ka++1dh9EXdNRZ8IcMcEd+QwW4RPwvmJ2EjheA1eRRyMlcbNU7T+4IRlBXURlTetEA==", + "license": "MIT", + "funding": { + "type": "github", + "url": "https://github.com/sponsors/ueberdosis" + }, + "peerDependencies": { + "@tiptap/core": "3.30.5", + "@tiptap/pm": "3.30.5" + } + }, + "node_modules/@tiptap/pm": { + "version": "3.30.5", + "resolved": "https://registry.npmjs.org/@tiptap/pm/-/pm-3.30.5.tgz", + "integrity": "sha512-gufkLkW2tA6PZPjivYxDiGzTIIftwqhmYI6lvvKu2S4FbhcysJgMAe/GXVSywzCRVVex9SrvCe6RFYrqnwRitQ==", + "license": "MIT", + "dependencies": { + "prosemirror-changeset": "^2.4.1", + "prosemirror-commands": "^1.7.1", + "prosemirror-dropcursor": "^1.8.2", + "prosemirror-gapcursor": "^1.4.1", + "prosemirror-history": "^1.5.0", + "prosemirror-inputrules": "^1.5.1", + "prosemirror-keymap": "^1.2.3", + "prosemirror-model": "^1.25.11", + "prosemirror-schema-list": "^1.5.1", + "prosemirror-state": "^1.4.4", + "prosemirror-tables": "^1.8.5", + "prosemirror-transform": "^1.12.0", + "prosemirror-view": "^1.41.9" + }, + "funding": { + "type": "github", + "url": "https://github.com/sponsors/ueberdosis" + } + }, + "node_modules/@tiptap/react": { + "version": "3.30.5", + "resolved": "https://registry.npmjs.org/@tiptap/react/-/react-3.30.5.tgz", + "integrity": "sha512-QtHdOmYTCMRkCf5dmLtIqFq0e/yxavkQ6ZXbtytoftWEKJf3MjBTlX4nVAgpvrLAjPmCTxiehEXXxD1AJm/Syw==", + "license": "MIT", + "dependencies": { + "@types/use-sync-external-store": "^0.0.6", + "fast-equals": "^5.3.3", + "use-sync-external-store": "^1.4.0" + }, + "funding": { + "type": "github", + "url": "https://github.com/sponsors/ueberdosis" + }, + "optionalDependencies": { + "@tiptap/extension-bubble-menu": "^3.30.5", + "@tiptap/extension-floating-menu": "^3.30.5" + }, + "peerDependencies": { + "@tiptap/core": "3.30.5", + "@tiptap/pm": "3.30.5", + "@types/react": "^17.0.0 || ^18.0.0 || ^19.0.0", + "@types/react-dom": "^17.0.0 || ^18.0.0 || ^19.0.0", + "react": "^17.0.0 || ^18.0.0 || ^19.0.0", + "react-dom": "^17.0.0 || ^18.0.0 || ^19.0.0" + } + }, + "node_modules/@tiptap/starter-kit": { + "version": "3.30.5", + "resolved": "https://registry.npmjs.org/@tiptap/starter-kit/-/starter-kit-3.30.5.tgz", + "integrity": "sha512-cmDRvukpoqjQjhE96q+l3tCLNZZcJKehxK+00Sp9F4XbKecfM2QpZ2TRHh3vi8qhCeDQNyMoCqfNaqznIjLjIQ==", + "license": "MIT", + "dependencies": { + "@tiptap/core": "3.30.5", + "@tiptap/extension-blockquote": "3.30.5", + "@tiptap/extension-bold": "3.30.5", + "@tiptap/extension-bullet-list": "3.30.5", + "@tiptap/extension-code": "3.30.5", + "@tiptap/extension-code-block": "3.30.5", + "@tiptap/extension-document": "3.30.5", + "@tiptap/extension-dropcursor": "3.30.5", + "@tiptap/extension-gapcursor": "3.30.5", + "@tiptap/extension-hard-break": "3.30.5", + "@tiptap/extension-heading": "3.30.5", + "@tiptap/extension-horizontal-rule": "3.30.5", + "@tiptap/extension-italic": "3.30.5", + "@tiptap/extension-link": "3.30.5", + "@tiptap/extension-list": "3.30.5", + "@tiptap/extension-list-item": "3.30.5", + "@tiptap/extension-list-keymap": "3.30.5", + "@tiptap/extension-ordered-list": "3.30.5", + "@tiptap/extension-paragraph": "3.30.5", + "@tiptap/extension-strike": "3.30.5", + "@tiptap/extension-text": "3.30.5", + "@tiptap/extension-underline": "3.30.5", + "@tiptap/extensions": "3.30.5", + "@tiptap/pm": "3.30.5" + }, + "funding": { + "type": "github", + "url": "https://github.com/sponsors/ueberdosis" + } + }, + "node_modules/@tldraw/driver": { + "version": "5.3.2", + "resolved": "https://registry.npmjs.org/@tldraw/driver/-/driver-5.3.2.tgz", + "integrity": "sha512-OJJwgdoyJv3G2ejvQoqnNKsLphOE8SBCUkiGSZibUCt8tWFrTjvhn7aLxPcXZXtQlxHWmyE4jBvQ56Swguv/rg==", + "license": "SEE LICENSE IN LICENSE.md", + "dependencies": { + "@tldraw/editor": "5.3.2", + "@tldraw/utils": "5.3.2" + }, + "engines": { + "node": ">=22.12.0" + } + }, + "node_modules/@tldraw/editor": { + "version": "5.3.2", + "resolved": "https://registry.npmjs.org/@tldraw/editor/-/editor-5.3.2.tgz", + "integrity": "sha512-4b3aAXNU/CP2soIBuJmyom9Im5/N5Gm+6nBDbHr2yjQ/4CvP047z8ru97Au0YCvK8hF9sg/Ufk18NrBV/3pqlw==", + "license": "SEE LICENSE IN LICENSE.md", + "dependencies": { + "@tiptap/core": "^3.12.1", + "@tiptap/pm": "^3.12.1", + "@tiptap/react": "^3.12.1", + "@tldraw/state": "5.3.2", + "@tldraw/state-react": "5.3.2", + "@tldraw/store": "5.3.2", + "@tldraw/tlschema": "5.3.2", + "@tldraw/utils": "5.3.2", + "@tldraw/validate": "5.3.2", + "classnames": "^2.5.1", + "eventemitter3": "^4.0.7", + "idb": "^7.1.1", + "is-plain-object": "^5.0.0", + "rbush": "^3.0.1" + }, + "engines": { + "node": ">=22.12.0" + }, + "peerDependencies": { + "react": "^18.2.0 || ^19.2.1", + "react-dom": "^18.2.0 || ^19.2.1" + } + }, + "node_modules/@tldraw/state": { + "version": "5.3.2", + "resolved": "https://registry.npmjs.org/@tldraw/state/-/state-5.3.2.tgz", + "integrity": "sha512-kuWsGhao4HkbDwsBfVryRZ8kU6rEWhiA26qpRJ71nS1GXLsQwJarZ5paQzsr14bE27K+D7mJ6qw2couqqKQQJg==", + "license": "MIT", + "dependencies": { + "@tldraw/utils": "5.3.2" + }, + "engines": { + "node": ">=22.12.0" + } + }, + "node_modules/@tldraw/state-react": { + "version": "5.3.2", + "resolved": "https://registry.npmjs.org/@tldraw/state-react/-/state-react-5.3.2.tgz", + "integrity": "sha512-6QBvhHrLu+jlcPh15VWOlhbTgvF7S2qOgYkE9BlXwxNaDn9nriDKAlyUO5vCkERdGfV/2zkk768RhEgGXHTi8A==", + "license": "MIT", + "dependencies": { + "@tldraw/state": "5.3.2", + "@tldraw/utils": "5.3.2" + }, + "engines": { + "node": ">=22.12.0" + }, + "peerDependencies": { + "react": "^18.2.0 || ^19.2.1", + "react-dom": "^18.2.0 || ^19.2.1" + } + }, + "node_modules/@tldraw/store": { + "version": "5.3.2", + "resolved": "https://registry.npmjs.org/@tldraw/store/-/store-5.3.2.tgz", + "integrity": "sha512-hnl8Ianf1CSz4ZcxUt+phxyrBRyvOfCngTrhoXBEiFQY1XFYz2NZ5OLJy3AOrqm/+Z11qnSlrq6GQuhUT0ou5A==", + "license": "MIT", + "dependencies": { + "@tldraw/state": "5.3.2", + "@tldraw/utils": "5.3.2" + }, + "engines": { + "node": ">=22.12.0" + }, + "peerDependencies": { + "react": "^18.2.0 || ^19.2.1" + } + }, + "node_modules/@tldraw/sync": { + "version": "5.3.2", + "resolved": "https://registry.npmjs.org/@tldraw/sync/-/sync-5.3.2.tgz", + "integrity": "sha512-khIgPwwUu6D6V4yrdYV0G91+snHn6gPwpzGHAFPIbnrRPfUXmQNltylx9XpQvl+pqCQ4zM+3Zd+npLH3/EqpPA==", + "license": "SEE LICENSE IN LICENSE.md", + "dependencies": { + "@tldraw/state": "5.3.2", + "@tldraw/state-react": "5.3.2", + "@tldraw/sync-core": "5.3.2", + "@tldraw/utils": "5.3.2", + "nanoevents": "^7.0.1", + "tldraw": "5.3.2", + "ws": "^8.18.0" + }, + "engines": { + "node": ">=22.12.0" + }, + "peerDependencies": { + "react": "^18.2.0 || ^19.2.1", + "react-dom": "^18.2.0 || ^19.2.1" + } + }, + "node_modules/@tldraw/sync-core": { + "version": "5.3.2", + "resolved": "https://registry.npmjs.org/@tldraw/sync-core/-/sync-core-5.3.2.tgz", + "integrity": "sha512-Kz9WYzFM7UW6LcygghboyqOahyKuXlpNWqWQF9AOuexPx4ITXb+8Iejo23YYdp1LOgCXQWb0vHfbMB/5RPSCIw==", + "license": "SEE LICENSE IN LICENSE.md", + "dependencies": { + "@tldraw/state": "5.3.2", + "@tldraw/store": "5.3.2", + "@tldraw/tlschema": "5.3.2", + "@tldraw/utils": "5.3.2", + "nanoevents": "^7.0.1", + "ws": "^8.18.0" + }, + "engines": { + "node": ">=22.12.0" + }, + "peerDependencies": { + "react": "^18.2.0 || ^19.2.1", + "react-dom": "^18.2.0 || ^19.2.1" + } + }, + "node_modules/@tldraw/tlschema": { + "version": "5.3.2", + "resolved": "https://registry.npmjs.org/@tldraw/tlschema/-/tlschema-5.3.2.tgz", + "integrity": "sha512-2lkWWJLcRhUI6bHT/CNxn5ooZJQONStmF3tTcVVt3RIILBFU4xhoPaojNmZBkF90oKLOkU2CEmR7q/OFJfk8kg==", + "license": "MIT", + "dependencies": { + "@tldraw/state": "5.3.2", + "@tldraw/store": "5.3.2", + "@tldraw/utils": "5.3.2", + "@tldraw/validate": "5.3.2" + }, + "engines": { + "node": ">=22.12.0" + }, + "peerDependencies": { + "react": "^18.2.0 || ^19.2.1", + "react-dom": "^18.2.0 || ^19.2.1" + } + }, + "node_modules/@tldraw/utils": { + "version": "5.3.2", + "resolved": "https://registry.npmjs.org/@tldraw/utils/-/utils-5.3.2.tgz", + "integrity": "sha512-rYike11hMqEOPCHVDUtYCwD383G+3Ep6ddK/49p39oTxScZEafpEPs1wNMeke6lKtk/9eU6CFfLM88hHMDAumw==", + "license": "SEE LICENSE IN LICENSE.md", + "dependencies": { + "lodash.isequal": "^4.5.0", + "lodash.isequalwith": "^4.4.0", + "lodash.throttle": "^4.1.1", + "lodash.uniq": "^4.5.0" + }, + "engines": { + "node": ">=22.12.0" + } + }, + "node_modules/@tldraw/validate": { + "version": "5.3.2", + "resolved": "https://registry.npmjs.org/@tldraw/validate/-/validate-5.3.2.tgz", + "integrity": "sha512-JFsbfE3aJq3b2Xrd6Oq0P5Y3A8BrLS3vHrp/izI8VSm+Zun/NejarSavjGaDyUeR6SrTTSeHObyt8O5Ln3mnaA==", + "license": "SEE LICENSE IN LICENSE.md", + "dependencies": { + "@tldraw/utils": "5.3.2" + }, + "engines": { + "node": ">=22.12.0" + } + }, + "node_modules/@types/babel__core": { + "version": "7.20.5", + "resolved": "https://registry.npmjs.org/@types/babel__core/-/babel__core-7.20.5.tgz", + "integrity": "sha512-qoQprZvz5wQFJwMDqeseRXWv3rqMvhgpbXFfVyWhbx9X47POIA6i/+dXefEmZKoAgOaTdaIgNSMqMIU61yRyzA==", + "dev": true, + "license": "MIT", + "dependencies": { + "@babel/parser": "^7.20.7", + "@babel/types": "^7.20.7", + "@types/babel__generator": "*", + "@types/babel__template": "*", + "@types/babel__traverse": "*" + } + }, + "node_modules/@types/babel__generator": { + "version": "7.27.0", + "resolved": "https://registry.npmjs.org/@types/babel__generator/-/babel__generator-7.27.0.tgz", + "integrity": "sha512-ufFd2Xi92OAVPYsy+P4n7/U7e68fex0+Ee8gSG9KX7eo084CWiQ4sdxktvdl0bOPupXtVJPY19zk6EwWqUQ8lg==", + "dev": true, + "license": "MIT", + "dependencies": { + "@babel/types": "^7.0.0" + } + }, + "node_modules/@types/babel__template": { + "version": "7.4.4", + "resolved": "https://registry.npmjs.org/@types/babel__template/-/babel__template-7.4.4.tgz", + "integrity": "sha512-h/NUaSyG5EyxBIp8YRxo4RMe2/qQgvyowRwVMzhYhBCONbW8PUsg4lkFMrhgZhUe5z3L3MiLDuvyJ/CaPa2A8A==", + "dev": true, + "license": "MIT", + "dependencies": { + "@babel/parser": "^7.1.0", + "@babel/types": "^7.0.0" + } + }, + "node_modules/@types/babel__traverse": { + "version": "7.28.0", + "resolved": "https://registry.npmjs.org/@types/babel__traverse/-/babel__traverse-7.28.0.tgz", + "integrity": "sha512-8PvcXf70gTDZBgt9ptxJ8elBeBjcLOAcOtoO/mPJjtji1+CdGbHgm77om1GrsPxsiE+uXIpNSK64UYaIwQXd4Q==", + "dev": true, + "license": "MIT", + "dependencies": { + "@babel/types": "^7.28.2" + } + }, + "node_modules/@types/estree": { + "version": "1.0.9", + "resolved": "https://registry.npmjs.org/@types/estree/-/estree-1.0.9.tgz", + "integrity": "sha512-GhdPgy1el4/ImP05X05Uw4cw2/M93BCUmnEvWZNStlCzEKME4Fkk+YpoA5OiHNQmoS7Cafb8Xa3Pya8m1Qrzeg==", + "dev": true, + "license": "MIT" + }, + "node_modules/@types/katex": { + "version": "0.16.7", + "resolved": "https://registry.npmjs.org/@types/katex/-/katex-0.16.7.tgz", + "integrity": "sha512-HMwFiRujE5PjrgwHQ25+bsLJgowjGjm5Z8FVSf0N6PwgJrwxH0QxzHYDcKsTfV3wva0vzrpqMTJS2jXPr5BMEQ==", + "dev": true, + "license": "MIT" + }, + "node_modules/@types/node": { + "version": "24.3.0", + "resolved": "https://registry.npmjs.org/@types/node/-/node-24.3.0.tgz", + "integrity": "sha512-aPTXCrfwnDLj4VvXrm+UUCQjNEvJgNA8s5F1cvwQU+3KNltTOkBm1j30uNLyqqPNe7gE3KFzImYoZEfLhp4Yow==", + "dev": true, + "license": "MIT", + "dependencies": { + "undici-types": "~7.10.0" + } + }, + "node_modules/@types/react": { + "version": "19.2.18", + "resolved": "https://registry.npmjs.org/@types/react/-/react-19.2.18.tgz", + "integrity": "sha512-AnzbBERsrLKtk2XSfTbYRLjQPdy116Sty4q+T+Bp3IC4l6jNBvreVPAHmpq9qhXQM7CXZPjLVmGMw9sy+hxQ3w==", + "license": "MIT", + "dependencies": { + "csstype": "^3.2.2" + } + }, + "node_modules/@types/react-dom": { + "version": "19.2.5", + "resolved": "https://registry.npmjs.org/@types/react-dom/-/react-dom-19.2.5.tgz", + "integrity": "sha512-fMPwH9v7r/pp43yUd2/Mbiex5KouJwwR3dzHkhLREUC6764VyDsqxhAxv6OFEYR1RhjOyD1naqba8ECDBe7ZQg==", + "license": "MIT", + "peerDependencies": { + "@types/react": "^19.2.0" + } + }, + "node_modules/@types/use-sync-external-store": { + "version": "0.0.6", + "resolved": "https://registry.npmjs.org/@types/use-sync-external-store/-/use-sync-external-store-0.0.6.tgz", + "integrity": "sha512-zFDAD+tlpf2r4asuHEj0XH6pY6i0g5NeAHPn+15wk3BV6JA69eERFXC1gyGThDkVa1zCyKr5jox1+2LbV/AMLg==", + "license": "MIT" + }, + "node_modules/@types/ws": { + "version": "8.18.1", + "resolved": "https://registry.npmjs.org/@types/ws/-/ws-8.18.1.tgz", + "integrity": "sha512-ThVF6DCVhA8kUGy+aazFQ4kXQ7E1Ty7A3ypFOe0IcJV8O/M511G99AW24irKrW56Wt44yG9+ij8FaqoBGkuBXg==", + "dev": true, + "license": "MIT", + "dependencies": { + "@types/node": "*" + } + }, + "node_modules/@vitejs/plugin-react": { + "version": "5.2.0", + "resolved": "https://registry.npmjs.org/@vitejs/plugin-react/-/plugin-react-5.2.0.tgz", + "integrity": "sha512-YmKkfhOAi3wsB1PhJq5Scj3GXMn3WvtQ/JC0xoopuHoXSdmtdStOpFrYaT1kie2YgFBcIe64ROzMYRjCrYOdYw==", + "dev": true, + "license": "MIT", + "dependencies": { + "@babel/core": "^7.29.0", + "@babel/plugin-transform-react-jsx-self": "^7.27.1", + "@babel/plugin-transform-react-jsx-source": "^7.27.1", + "@rolldown/pluginutils": "1.0.0-rc.3", + "@types/babel__core": "^7.20.5", + "react-refresh": "^0.18.0" + }, + "engines": { + "node": "^20.19.0 || >=22.12.0" + }, + "peerDependencies": { + "vite": "^4.2.0 || ^5.0.0 || ^6.0.0 || ^7.0.0 || ^8.0.0" + } + }, + "node_modules/aria-hidden": { + "version": "1.2.6", + "resolved": "https://registry.npmjs.org/aria-hidden/-/aria-hidden-1.2.6.tgz", + "integrity": "sha512-ik3ZgC9dY/lYVVM++OISsaYDeg1tb0VtP5uL3ouh1koGOaUMDPpbFIei4JkFimWUFPn90sbMNMXQAIVOlnYKJA==", + "license": "MIT", + "dependencies": { + "tslib": "^2.0.0" + }, + "engines": { + "node": ">=10" + } + }, + "node_modules/baseline-browser-mapping": { + "version": "2.11.20", + "resolved": "https://registry.npmjs.org/baseline-browser-mapping/-/baseline-browser-mapping-2.11.20.tgz", + "integrity": "sha512-H0ulySigv6icDJ1F7SjtdCD6PrhTpdYCmP0CactWy1+ekh0AFd0o1Wn5T8b+hnTmdBx19u9yhL6wvCylXMY7zw==", + "dev": true, + "license": "Apache-2.0", + "bin": { + "baseline-browser-mapping": "dist/cli.cjs" + }, + "engines": { + "node": ">=6.0.0" + } + }, + "node_modules/browserslist": { + "version": "4.28.8", + "resolved": "https://registry.npmjs.org/browserslist/-/browserslist-4.28.8.tgz", + "integrity": "sha512-V2NpofLblG64mfOtSgDhOJESZEGogzDMBv/q+W6oc4LXWP/q75eOXoOaaOu1EOadB9U4Bwx/e0yzbvwKH8zalA==", + "dev": true, + "funding": [ + { + "type": "opencollective", + "url": "https://opencollective.com/browserslist" + }, + { + "type": "tidelift", + "url": "https://tidelift.com/funding/github/npm/browserslist" + }, + { + "type": "github", + "url": "https://github.com/sponsors/ai" + } + ], + "license": "MIT", + "dependencies": { + "baseline-browser-mapping": "^2.11.12", + "caniuse-lite": "^1.0.30001809", + "electron-to-chromium": "^1.5.402", + "node-releases": "^2.0.53", + "update-browserslist-db": "^1.3.0" + }, + "bin": { + "browserslist": "cli.js" + }, + "engines": { + "node": "^6 || ^7 || ^8 || ^9 || ^10 || ^11 || ^12 || >=13.7" + } + }, + "node_modules/caniuse-lite": { + "version": "1.0.30001810", + "resolved": "https://registry.npmjs.org/caniuse-lite/-/caniuse-lite-1.0.30001810.tgz", + "integrity": "sha512-TITQPUkaz+aVk5GL6NhOdwk1aEaNTSDPsGFWrTuhKGtjTF70jL/Oht2W4c6rXUe5fu7Ie19VIahAXHIIiWWNeg==", + "dev": true, + "funding": [ + { + "type": "opencollective", + "url": "https://opencollective.com/browserslist" + }, + { + "type": "tidelift", + "url": "https://tidelift.com/funding/github/npm/caniuse-lite" + }, + { + "type": "github", + "url": "https://github.com/sponsors/ai" + } + ], + "license": "CC-BY-4.0" + }, + "node_modules/classnames": { + "version": "2.5.1", + "resolved": "https://registry.npmjs.org/classnames/-/classnames-2.5.1.tgz", + "integrity": "sha512-saHYOzhIQs6wy2sVxTM6bUDsQO4F50V9RQ22qBpEdCW+I+/Wmke2HOl6lS6dTpdxVhb88/I6+Hs+438c3lfUow==", + "license": "MIT" + }, + "node_modules/commander": { + "version": "8.3.0", + "resolved": "https://registry.npmjs.org/commander/-/commander-8.3.0.tgz", + "integrity": "sha512-OkTL9umf+He2DZkUq8f8J9of7yL6RJKI24dVITBmNfZBmri9zYZQrKkuXiKhyfPSu8tUhnVBB1iKXevvnlR4Ww==", + "license": "MIT", + "engines": { + "node": ">= 12" + } + }, + "node_modules/convert-source-map": { + "version": "2.0.0", + "resolved": "https://registry.npmjs.org/convert-source-map/-/convert-source-map-2.0.0.tgz", + "integrity": "sha512-Kvp459HrV2FEJ1CAsi1Ku+MY3kasH19TFykTz2xWmMeq6bk2NU3XXvfJ+Q61m0xktWwt+1HSYf3JZsTms3aRJg==", + "dev": true, + "license": "MIT" + }, + "node_modules/csstype": { + "version": "3.2.3", + "resolved": "https://registry.npmjs.org/csstype/-/csstype-3.2.3.tgz", + "integrity": "sha512-z1HGKcYy2xA8AGQfwrn0PAy+PB7X/GSj3UVJW9qKyn43xWa+gl5nXmU4qqLMRzWVLFC8KusUX8T/0kCiOYpAIQ==", + "license": "MIT" + }, + "node_modules/debug": { + "version": "4.4.3", + "resolved": "https://registry.npmjs.org/debug/-/debug-4.4.3.tgz", + "integrity": "sha512-RGwwWnwQvkVfavKVt22FGLw+xYSdzARwm0ru6DhTVA3umU5hZc28V3kO4stgYryrTlLpuvgI9GiijltAjNbcqA==", + "dev": true, + "license": "MIT", + "dependencies": { + "ms": "^2.1.3" + }, + "engines": { + "node": ">=6.0" + }, + "peerDependenciesMeta": { + "supports-color": { + "optional": true + } + } + }, + "node_modules/detect-node-es": { + "version": "1.1.0", + "resolved": "https://registry.npmjs.org/detect-node-es/-/detect-node-es-1.1.0.tgz", + "integrity": "sha512-ypdmJU/TbBby2Dxibuv7ZLW3Bs1QEmM7nHjEANfohJLvE0XVujisn1qPJcZxg+qDucsr+bP6fLD1rPS3AhJ7EQ==", + "license": "MIT" + }, + "node_modules/electron-to-chromium": { + "version": "1.5.416", + "resolved": "https://registry.npmjs.org/electron-to-chromium/-/electron-to-chromium-1.5.416.tgz", + "integrity": "sha512-K6bvB2BjnNrugtIih6ewlbBI9DXa976jIdiIlRLHhBoEI9a4JaQjjHyF+A1IQI543aQYR4LnmOrT/K5fZj0aPA==", + "dev": true, + "license": "ISC" + }, + "node_modules/esbuild": { + "version": "0.25.12", + "resolved": "https://registry.npmjs.org/esbuild/-/esbuild-0.25.12.tgz", + "integrity": "sha512-bbPBYYrtZbkt6Os6FiTLCTFxvq4tt3JKall1vRwshA3fdVztsLAatFaZobhkBC8/BrPetoa0oksYoKXoG4ryJg==", + "dev": true, + "hasInstallScript": true, + "license": "MIT", + "bin": { + "esbuild": "bin/esbuild" + }, + "engines": { + "node": ">=18" + }, + "optionalDependencies": { + "@esbuild/aix-ppc64": "0.25.12", + "@esbuild/android-arm": "0.25.12", + "@esbuild/android-arm64": "0.25.12", + "@esbuild/android-x64": "0.25.12", + "@esbuild/darwin-arm64": "0.25.12", + "@esbuild/darwin-x64": "0.25.12", + "@esbuild/freebsd-arm64": "0.25.12", + "@esbuild/freebsd-x64": "0.25.12", + "@esbuild/linux-arm": "0.25.12", + "@esbuild/linux-arm64": "0.25.12", + "@esbuild/linux-ia32": "0.25.12", + "@esbuild/linux-loong64": "0.25.12", + "@esbuild/linux-mips64el": "0.25.12", + "@esbuild/linux-ppc64": "0.25.12", + "@esbuild/linux-riscv64": "0.25.12", + "@esbuild/linux-s390x": "0.25.12", + "@esbuild/linux-x64": "0.25.12", + "@esbuild/netbsd-arm64": "0.25.12", + "@esbuild/netbsd-x64": "0.25.12", + "@esbuild/openbsd-arm64": "0.25.12", + "@esbuild/openbsd-x64": "0.25.12", + "@esbuild/openharmony-arm64": "0.25.12", + "@esbuild/sunos-x64": "0.25.12", + "@esbuild/win32-arm64": "0.25.12", + "@esbuild/win32-ia32": "0.25.12", + "@esbuild/win32-x64": "0.25.12" + } + }, + "node_modules/escalade": { + "version": "3.2.0", + "resolved": "https://registry.npmjs.org/escalade/-/escalade-3.2.0.tgz", + "integrity": "sha512-WUj2qlxaQtO4g6Pq5c29GTcWGDyd8itL8zTlipgECz3JesAiiOKotd8JU6otB3PACgG6xkJUyVhboMS+bje/jA==", + "dev": true, + "license": "MIT", + "engines": { + "node": ">=6" + } + }, + "node_modules/eventemitter3": { + "version": "4.0.7", + "resolved": "https://registry.npmjs.org/eventemitter3/-/eventemitter3-4.0.7.tgz", + "integrity": "sha512-8guHBZCwKnFhYdHr2ysuRWErTwhoN2X8XELRlrRwpmfeY2jjuUN4taQMsULKUVo1K4DvZl+0pgfyoysHxvmvEw==", + "license": "MIT" + }, + "node_modules/fast-equals": { + "version": "5.4.1", + "resolved": "https://registry.npmjs.org/fast-equals/-/fast-equals-5.4.1.tgz", + "integrity": "sha512-DjlFSM5Pk9cGcL0q5QXl66eGzx0N6szNgaswwc5ZphlBohjTVJSnGgI+rJVOgOi65qUoQnDZN4nDqi33udtydQ==", + "license": "MIT", + "engines": { + "node": ">=6.0.0" + } + }, + "node_modules/fdir": { + "version": "6.5.0", + "resolved": "https://registry.npmjs.org/fdir/-/fdir-6.5.0.tgz", + "integrity": "sha512-tIbYtZbucOs0BRGqPJkshJUYdL+SDH7dVM8gjy+ERp3WAUjLEFJE+02kanyHtwjWOnwrKYBiwAmM0p4kLJAnXg==", + "dev": true, + "license": "MIT", + "engines": { + "node": ">=12.0.0" + }, + "peerDependencies": { + "picomatch": "^3 || ^4" + }, + "peerDependenciesMeta": { + "picomatch": { + "optional": true + } + } + }, + "node_modules/fsevents": { + "version": "2.3.3", + "resolved": "https://registry.npmjs.org/fsevents/-/fsevents-2.3.3.tgz", + "integrity": "sha512-5xoDfX+fL7faATnagmWPpbFtwh/R77WmMMqqHGS65C3vvB0YHrgF+B1YmZ3441tMj5n63k0212XNoJwzlhffQw==", + "dev": true, + "hasInstallScript": true, + "license": "MIT", + "optional": true, + "os": [ + "darwin" + ], + "engines": { + "node": "^8.16.0 || ^10.6.0 || >=11.0.0" + } + }, + "node_modules/gensync": { + "version": "1.0.0-beta.2", + "resolved": "https://registry.npmjs.org/gensync/-/gensync-1.0.0-beta.2.tgz", + "integrity": "sha512-3hN7NaskYvMDLQY55gnW3NQ+mesEAepTqlg+VEbj7zzqEMBVNhzcGYYeqFo/TlYz6eQiFcp1HcsCZO+nGgS8zg==", + "dev": true, + "license": "MIT", + "engines": { + "node": ">=6.9.0" + } + }, + "node_modules/get-nonce": { + "version": "1.0.1", + "resolved": "https://registry.npmjs.org/get-nonce/-/get-nonce-1.0.1.tgz", + "integrity": "sha512-FJhYRoDaiatfEkUK8HKlicmu/3SGFD51q3itKDGoSTysQJBnfOcxU5GxnhE1E6soB76MbT0MBtnKJuXyAx+96Q==", + "license": "MIT", + "engines": { + "node": ">=6" + } + }, + "node_modules/get-tsconfig": { + "version": "4.14.3", + "resolved": "https://registry.npmjs.org/get-tsconfig/-/get-tsconfig-4.14.3.tgz", + "integrity": "sha512-++QEw4DIY7WGoukz+/+A/8dGYPT9l9yIadnmSgZ8Rjr3YVSVDipQSO9CdnJo9ePqFqUUqh+wk9uIaoiAwsiPkA==", + "dev": true, + "license": "MIT", + "dependencies": { + "resolve-pkg-maps": "^1.0.0" + }, + "funding": { + "url": "https://github.com/privatenumber/get-tsconfig?sponsor=1" + } + }, + "node_modules/idb": { + "version": "7.1.1", + "resolved": "https://registry.npmjs.org/idb/-/idb-7.1.1.tgz", + "integrity": "sha512-gchesWBzyvGHRO9W8tzUWFDycow5gwjvFKfyV9FF32Y7F50yZMp7mP+T2mJIWFx49zicqyC4uefHM17o6xKIVQ==", + "license": "ISC" + }, + "node_modules/is-plain-object": { + "version": "5.1.0", + "resolved": "https://registry.npmjs.org/is-plain-object/-/is-plain-object-5.1.0.tgz", + "integrity": "sha512-bUi/yjmtKYcRVUtWRGr0UA6xEFh2I6zWUwMrUXB3s7bmYCaZ8a+0ZsTRkrawh/mzlSD1Y0Ph8bp/U+TvBpWDNw==", + "license": "MIT", + "engines": { + "node": ">=0.10.0" + } + }, + "node_modules/js-tokens": { + "version": "4.0.0", + "resolved": "https://registry.npmjs.org/js-tokens/-/js-tokens-4.0.0.tgz", + "integrity": "sha512-RdJUflcE3cUzKiMqQgsCu06FPu9UdIJO0beYbPhHN4k6apgJtifcoCtT9bcxOpYBtpD2kCM6Sbzg4CausW/PKQ==", + "dev": true, + "license": "MIT" + }, + "node_modules/jsesc": { + "version": "3.1.0", + "resolved": "https://registry.npmjs.org/jsesc/-/jsesc-3.1.0.tgz", + "integrity": "sha512-/sM3dO2FOzXjKQhJuo0Q173wf2KOo8t4I8vHy6lF9poUp7bKT0/NHE8fPX23PwfhnykfqnC2xRxOnVw5XuGIaA==", + "dev": true, + "license": "MIT", + "bin": { + "jsesc": "bin/jsesc" + }, + "engines": { + "node": ">=6" + } + }, + "node_modules/json5": { + "version": "2.2.3", + "resolved": "https://registry.npmjs.org/json5/-/json5-2.2.3.tgz", + "integrity": "sha512-XmOWe7eyHYH14cLdVPoyg+GOH3rYX++KpzrylJwSW98t3Nk+U8XOl8FWKOgwtzdb8lXGf6zYwDUzeHMWfxasyg==", + "dev": true, + "license": "MIT", + "bin": { + "json5": "lib/cli.js" + }, + "engines": { + "node": ">=6" + } + }, + "node_modules/katex": { + "version": "0.16.47", + "resolved": "https://registry.npmjs.org/katex/-/katex-0.16.47.tgz", + "integrity": "sha512-Eeo8Ys1doU1z+x8AZsPpQu+p/QcZBI5PeOo7QGQdy2x2m0MU/hYagBbGOmXwr5KVbEfVuWv9LpnQWeehogurjg==", + "funding": [ + "https://opencollective.com/katex", + "https://github.com/sponsors/katex" + ], + "license": "MIT", + "dependencies": { + "commander": "^8.3.0" + }, + "bin": { + "katex": "cli.js" + } + }, + "node_modules/linkifyjs": { + "version": "4.3.3", + "resolved": "https://registry.npmjs.org/linkifyjs/-/linkifyjs-4.3.3.tgz", + "integrity": "sha512-P8aEP5U/D1/IlTY2OeYsErdwh9bGuLE30NcXtKEjgdHcahveQoQwM2yZNsioQHsWFz0P7KKudisbrzCgR0sDHg==", + "license": "MIT" + }, + "node_modules/lodash.isequal": { + "version": "4.5.0", + "resolved": "https://registry.npmjs.org/lodash.isequal/-/lodash.isequal-4.5.0.tgz", + "integrity": "sha512-pDo3lu8Jhfjqls6GkMgpahsF9kCyayhgykjyLMNFTKWrpVdAQtYyB4muAMWozBB4ig/dtWAmsMxLEI8wuz+DYQ==", + "deprecated": "This package is deprecated. Use require('node:util').isDeepStrictEqual instead.", + "license": "MIT" + }, + "node_modules/lodash.isequalwith": { + "version": "4.4.0", + "resolved": "https://registry.npmjs.org/lodash.isequalwith/-/lodash.isequalwith-4.4.0.tgz", + "integrity": "sha512-dcZON0IalGBpRmJBmMkaoV7d3I80R2O+FrzsZyHdNSFrANq/cgDqKQNmAHE8UEj4+QYWwwhkQOVdLHiAopzlsQ==", + "license": "MIT" + }, + "node_modules/lodash.throttle": { + "version": "4.1.1", + "resolved": "https://registry.npmjs.org/lodash.throttle/-/lodash.throttle-4.1.1.tgz", + "integrity": "sha512-wIkUCfVKpVsWo3JSZlc+8MB5it+2AN5W8J7YVMST30UrvcQNZ1Okbj+rbVniijTWE6FGYy4XJq/rHkas8qJMLQ==", + "license": "MIT" + }, + "node_modules/lodash.uniq": { + "version": "4.5.0", + "resolved": "https://registry.npmjs.org/lodash.uniq/-/lodash.uniq-4.5.0.tgz", + "integrity": "sha512-xfBaXQd9ryd9dlSDvnvI0lvxfLJlYAZzXomUYzLKtUeOQvOP5piqAWuGtrhWeqaXK9hhoM/iyJc5AV+XfsX3HQ==", + "license": "MIT" + }, + "node_modules/lru-cache": { + "version": "5.1.1", + "resolved": "https://registry.npmjs.org/lru-cache/-/lru-cache-5.1.1.tgz", + "integrity": "sha512-KpNARQA3Iwv+jTA0utUVVbrh+Jlrr1Fv0e56GGzAFOXN7dk/FviaDW8LHmK52DlcH4WP2n6gI8vN1aesBFgo9w==", + "dev": true, + "license": "ISC", + "dependencies": { + "yallist": "^3.0.2" + } + }, + "node_modules/lz-string": { + "version": "1.5.0", + "resolved": "https://registry.npmjs.org/lz-string/-/lz-string-1.5.0.tgz", + "integrity": "sha512-h5bgJWpxJNswbU7qCrV0tIKQCaS3blPDrqKWx+QxzuzL1zGUzij9XCWLrSLsJPu5t+eWA/ycetzYAO5IOMcWAQ==", + "license": "MIT", + "bin": { + "lz-string": "bin/bin.js" + } + }, + "node_modules/ms": { + "version": "2.1.3", + "resolved": "https://registry.npmjs.org/ms/-/ms-2.1.3.tgz", + "integrity": "sha512-6FlzubTLZG3J2a/NVCAleEhjzq5oxgHyaCU9yYXvcLsvoVaHJq/s5xXI6/XXP6tz7R9xAOtHnSO/tXtF3WRTlA==", + "dev": true, + "license": "MIT" + }, + "node_modules/nanoevents": { + "version": "7.0.1", + "resolved": "https://registry.npmjs.org/nanoevents/-/nanoevents-7.0.1.tgz", + "integrity": "sha512-o6lpKiCxLeijK4hgsqfR6CNToPyRU3keKyyI6uwuHRvpRTbZ0wXw51WRgyldVugZqoJfkGFrjrIenYH3bfEO3Q==", + "license": "MIT", + "engines": { + "node": "^14.0.0 || ^16.0.0 || >=18.0.0" + } + }, + "node_modules/nanoid": { + "version": "3.3.18", + "resolved": "https://registry.npmjs.org/nanoid/-/nanoid-3.3.18.tgz", + "integrity": "sha512-DTg4MJbGMWkfi6VZFdNt2/caMbQy4Ou+Op/hJQvGEWcnVfoA1QA+xzRKAzw9jD6+GVOOeYr/mIcuDSdug6F6+w==", + "dev": true, + "funding": [ + { + "type": "github", + "url": "https://github.com/sponsors/ai" + } + ], + "license": "MIT", + "bin": { + "nanoid": "bin/nanoid.cjs" + }, + "engines": { + "node": "^10 || ^12 || ^13.7 || ^14 || >=15.0.1" + } + }, + "node_modules/node-releases": { + "version": "2.0.54", + "resolved": "https://registry.npmjs.org/node-releases/-/node-releases-2.0.54.tgz", + "integrity": "sha512-YHs7BmmcsdAI5Ozuf8JZo6PT0mv2GIWC9vMfvUC3dp65M8hn7Ux8CPL+2oBI7juNuj9d0ndhTcznq2ODBps9cQ==", + "dev": true, + "license": "MIT", + "engines": { + "node": ">=18" + } + }, + "node_modules/orderedmap": { + "version": "2.1.1", + "resolved": "https://registry.npmjs.org/orderedmap/-/orderedmap-2.1.1.tgz", + "integrity": "sha512-TvAWxi0nDe1j/rtMcWcIj94+Ffe6n7zhow33h40SKxmsmozs6dz/e+EajymfoFcHd7sxNn8yHM8839uixMOV6g==", + "license": "MIT" + }, + "node_modules/picocolors": { + "version": "1.1.1", + "resolved": "https://registry.npmjs.org/picocolors/-/picocolors-1.1.1.tgz", + "integrity": "sha512-xceH2snhtb5M9liqDsmEw56le376mTZkEX/jEb/RxNFyegNul7eNslCXP9FDj/Lcu0X8KEyMceP2ntpaHrDEVA==", + "dev": true, + "license": "ISC" + }, + "node_modules/picomatch": { + "version": "4.0.7", + "resolved": "https://registry.npmjs.org/picomatch/-/picomatch-4.0.7.tgz", + "integrity": "sha512-qcJu88Q2IWqJsDD529JKMdwGm/dvInW4HvQnRwiH9JtihJvzGOscDtHE3x1pBKeUOTysQ8kVmLnJ2kJu7yhcGA==", + "dev": true, + "license": "MIT", + "engines": { + "node": ">=12" + }, + "funding": { + "url": "https://github.com/sponsors/jonschlinkert" + } + }, + "node_modules/playwright-core": { + "version": "1.61.0", + "resolved": "https://registry.npmjs.org/playwright-core/-/playwright-core-1.61.0.tgz", + "integrity": "sha512-caX7TrY3Ml6egyDX0WUcTHDxodl/b51y5wJOdCEA36QviK/s2g081hvmGs8eaE3DWb6NYZQ6BjO/QkNRPenoPA==", + "dev": true, + "license": "Apache-2.0", + "bin": { + "playwright-core": "cli.js" + }, + "engines": { + "node": ">=18" + } + }, + "node_modules/postcss": { + "version": "8.5.26", + "resolved": "https://registry.npmjs.org/postcss/-/postcss-8.5.26.tgz", + "integrity": "sha512-u82N74LFzG8ca+dD8puPnplTXoGH4fTPpVGuIbt36G3qvNlkvfD0lEAZSxaly3KX8TS/L1A1gsCEmvKmBcVbkQ==", + "dev": true, + "funding": [ + { + "type": "opencollective", + "url": "https://opencollective.com/postcss/" + }, + { + "type": "tidelift", + "url": "https://tidelift.com/funding/github/npm/postcss" + }, + { + "type": "github", + "url": "https://github.com/sponsors/ai" + } + ], + "license": "MIT", + "dependencies": { + "nanoid": "^3.3.17", + "picocolors": "^1.1.1", + "source-map-js": "^1.2.1" + }, + "engines": { + "node": "^10 || ^12 || >=14" + } + }, + "node_modules/prosemirror-changeset": { + "version": "2.4.2", + "resolved": "https://registry.npmjs.org/prosemirror-changeset/-/prosemirror-changeset-2.4.2.tgz", + "integrity": "sha512-ViYrjMSg3YFiXwIhKaluu+/mi3Yrxt6AR8ri14ulTaGcZtXO1CThl7A2gv79qx5fQnOw8woKwyBU2u+9PVCm3w==", + "license": "MIT", + "dependencies": { + "prosemirror-transform": "^1.0.0" + } + }, + "node_modules/prosemirror-commands": { + "version": "1.7.2", + "resolved": "https://registry.npmjs.org/prosemirror-commands/-/prosemirror-commands-1.7.2.tgz", + "integrity": "sha512-q6Q6szxqdu9Xd6EcdKsqXghu5nQdZTpB4Q9yd04WRc7/jt763e/rT60Owh0L1GYY+T46o5rD+9lEN36dZS43tw==", + "license": "MIT", + "dependencies": { + "prosemirror-model": "^1.0.0", + "prosemirror-state": "^1.0.0", + "prosemirror-transform": "^1.10.2" + } + }, + "node_modules/prosemirror-dropcursor": { + "version": "1.8.3", + "resolved": "https://registry.npmjs.org/prosemirror-dropcursor/-/prosemirror-dropcursor-1.8.3.tgz", + "integrity": "sha512-FoYbsJR8gK+DGlqhNoE29Loa38eIZPzQRIb1VMaDNBoo4OLP6vVof/jR8qFY/6XvUd6Dhug8MDCHl2a/h8RTfQ==", + "license": "MIT", + "dependencies": { + "prosemirror-state": "^1.0.0", + "prosemirror-transform": "^1.1.0", + "prosemirror-view": "^1.1.0" + } + }, + "node_modules/prosemirror-gapcursor": { + "version": "1.4.1", + "resolved": "https://registry.npmjs.org/prosemirror-gapcursor/-/prosemirror-gapcursor-1.4.1.tgz", + "integrity": "sha512-pMdYaEnjNMSwl11yjEGtgTmLkR08m/Vl+Jj443167p9eB3HVQKhYCc4gmHVDsLPODfZfjr/MmirsdyZziXbQKw==", + "license": "MIT", + "dependencies": { + "prosemirror-keymap": "^1.0.0", + "prosemirror-model": "^1.0.0", + "prosemirror-state": "^1.0.0", + "prosemirror-view": "^1.0.0" + } + }, + "node_modules/prosemirror-history": { + "version": "1.5.0", + "resolved": "https://registry.npmjs.org/prosemirror-history/-/prosemirror-history-1.5.0.tgz", + "integrity": "sha512-zlzTiH01eKA55UAf1MEjtssJeHnGxO0j4K4Dpx+gnmX9n+SHNlDqI2oO1Kv1iPN5B1dm5fsljCfqKF9nFL6HRg==", + "license": "MIT", + "dependencies": { + "prosemirror-state": "^1.2.2", + "prosemirror-transform": "^1.0.0", + "prosemirror-view": "^1.31.0", + "rope-sequence": "^1.3.0" + } + }, + "node_modules/prosemirror-inputrules": { + "version": "1.5.1", + "resolved": "https://registry.npmjs.org/prosemirror-inputrules/-/prosemirror-inputrules-1.5.1.tgz", + "integrity": "sha512-7wj4uMjKaXWAQ1CDgxNzNtR9AlsuwzHfdFH1ygEHA2KHF2DOEaXl1CJfNPAKCg9qNEh4rum975QLaCiQPyY6Fw==", + "license": "MIT", + "dependencies": { + "prosemirror-state": "^1.0.0", + "prosemirror-transform": "^1.0.0" + } + }, + "node_modules/prosemirror-keymap": { + "version": "1.2.3", + "resolved": "https://registry.npmjs.org/prosemirror-keymap/-/prosemirror-keymap-1.2.3.tgz", + "integrity": "sha512-4HucRlpiLd1IPQQXNqeo81BGtkY8Ai5smHhKW9jjPKRc2wQIxksg7Hl1tTI2IfT2B/LgX6bfYvXxEpJl7aKYKw==", + "license": "MIT", + "dependencies": { + "prosemirror-state": "^1.0.0", + "w3c-keyname": "^2.2.0" + } + }, + "node_modules/prosemirror-model": { + "version": "1.25.11", + "resolved": "https://registry.npmjs.org/prosemirror-model/-/prosemirror-model-1.25.11.tgz", + "integrity": "sha512-QWg9RhnpLlogAmp3p96uEFrE5txQpFynd4vhBAELkwgOCWQs/X0yCzB3/hrHqiPwf91RG5KyWq6553zs9JqIOQ==", + "license": "MIT", + "dependencies": { + "orderedmap": "^2.0.0" + } + }, + "node_modules/prosemirror-schema-list": { + "version": "1.5.1", + "resolved": "https://registry.npmjs.org/prosemirror-schema-list/-/prosemirror-schema-list-1.5.1.tgz", + "integrity": "sha512-927lFx/uwyQaGwJxLWCZRkjXG0p48KpMj6ueoYiu4JX05GGuGcgzAy62dfiV8eFZftgyBUvLx76RsMe20fJl+Q==", + "license": "MIT", + "dependencies": { + "prosemirror-model": "^1.0.0", + "prosemirror-state": "^1.0.0", + "prosemirror-transform": "^1.7.3" + } + }, + "node_modules/prosemirror-state": { + "version": "1.4.4", + "resolved": "https://registry.npmjs.org/prosemirror-state/-/prosemirror-state-1.4.4.tgz", + "integrity": "sha512-6jiYHH2CIGbCfnxdHbXZ12gySFY/fz/ulZE333G6bPqIZ4F+TXo9ifiR86nAHpWnfoNjOb3o5ESi7J8Uz1jXHw==", + "license": "MIT", + "dependencies": { + "prosemirror-model": "^1.0.0", + "prosemirror-transform": "^1.0.0", + "prosemirror-view": "^1.27.0" + } + }, + "node_modules/prosemirror-tables": { + "version": "1.8.5", + "resolved": "https://registry.npmjs.org/prosemirror-tables/-/prosemirror-tables-1.8.5.tgz", + "integrity": "sha512-V/0cDCsHKHe/tfWkeCmthNUcEp1IVO3p6vwN8XtwE9PZQLAZJigbw3QoraAdfJPir4NKJtNvOB8oYGKRl+t0Dw==", + "license": "MIT", + "dependencies": { + "prosemirror-keymap": "^1.2.3", + "prosemirror-model": "^1.25.4", + "prosemirror-state": "^1.4.4", + "prosemirror-transform": "^1.10.5", + "prosemirror-view": "^1.41.4" + } + }, + "node_modules/prosemirror-transform": { + "version": "1.12.0", + "resolved": "https://registry.npmjs.org/prosemirror-transform/-/prosemirror-transform-1.12.0.tgz", + "integrity": "sha512-GxboyN4AMIsoHNtz5uf2r2Ru551i5hWeCMD6E2Ib4Eogqoub0NflniaBPVQ4MrGE5yZ8JV9tUHg9qcZTTrcN4w==", + "license": "MIT", + "dependencies": { + "prosemirror-model": "^1.21.0" + } + }, + "node_modules/prosemirror-view": { + "version": "1.42.3", + "resolved": "https://registry.npmjs.org/prosemirror-view/-/prosemirror-view-1.42.3.tgz", + "integrity": "sha512-oTN7EtH+CpwxU9NrwEYWd0UZ4JUx7l048l5A2Xppm4p/60isZYLnth9QVQmC3VRIvdrIWCxwZSd+Uz791G31/w==", + "license": "MIT", + "dependencies": { + "prosemirror-model": "^1.25.8", + "prosemirror-state": "^1.0.0", + "prosemirror-transform": "^1.1.0" + } + }, + "node_modules/quickselect": { + "version": "2.0.0", + "resolved": "https://registry.npmjs.org/quickselect/-/quickselect-2.0.0.tgz", + "integrity": "sha512-RKJ22hX8mHe3Y6wH/N3wCM6BWtjaxIyyUIkpHOvfFnxdI4yD4tBXEBKSbriGujF6jnSVkJrffuo6vxACiSSxIw==", + "license": "ISC" + }, + "node_modules/radix-ui": { + "version": "1.6.7", + "resolved": "https://registry.npmjs.org/radix-ui/-/radix-ui-1.6.7.tgz", + "integrity": "sha512-QBdhh1arIEUvPC0dQ5+nwWAxt7+N+oP/9jPwjJkGFoSk/sqxg32gJtSXGtFh8frAIcS6oC9cx2Q+7KYCQLOAeA==", + "license": "MIT", + "dependencies": { + "@radix-ui/primitive": "1.1.7", + "@radix-ui/react-accessible-icon": "1.1.15", + "@radix-ui/react-accordion": "1.2.20", + "@radix-ui/react-alert-dialog": "1.1.23", + "@radix-ui/react-arrow": "1.1.15", + "@radix-ui/react-aspect-ratio": "1.1.15", + "@radix-ui/react-avatar": "1.2.6", + "@radix-ui/react-checkbox": "1.3.11", + "@radix-ui/react-collapsible": "1.1.20", + "@radix-ui/react-collection": "1.1.15", + "@radix-ui/react-compose-refs": "1.1.5", + "@radix-ui/react-context": "1.2.2", + "@radix-ui/react-context-menu": "2.3.7", + "@radix-ui/react-dialog": "1.1.23", + "@radix-ui/react-direction": "1.1.4", + "@radix-ui/react-dismissable-layer": "1.1.19", + "@radix-ui/react-dropdown-menu": "2.1.24", + "@radix-ui/react-focus-guards": "1.1.6", + "@radix-ui/react-focus-scope": "1.1.16", + "@radix-ui/react-form": "0.1.16", + "@radix-ui/react-hover-card": "1.1.23", + "@radix-ui/react-label": "2.1.15", + "@radix-ui/react-menu": "2.1.24", + "@radix-ui/react-menubar": "1.1.24", + "@radix-ui/react-navigation-menu": "1.2.22", + "@radix-ui/react-one-time-password-field": "0.1.16", + "@radix-ui/react-password-toggle-field": "0.1.11", + "@radix-ui/react-popover": "1.1.23", + "@radix-ui/react-popper": "1.3.7", + "@radix-ui/react-portal": "1.1.17", + "@radix-ui/react-presence": "1.1.10", + "@radix-ui/react-primitive": "2.1.10", + "@radix-ui/react-progress": "1.1.16", + "@radix-ui/react-radio-group": "1.4.7", + "@radix-ui/react-roving-focus": "1.1.19", + "@radix-ui/react-scroll-area": "1.2.18", + "@radix-ui/react-select": "2.3.7", + "@radix-ui/react-separator": "1.1.15", + "@radix-ui/react-slider": "1.4.7", + "@radix-ui/react-slot": "1.3.3", + "@radix-ui/react-switch": "1.3.7", + "@radix-ui/react-tabs": "1.1.21", + "@radix-ui/react-toast": "1.2.23", + "@radix-ui/react-toggle": "1.1.18", + "@radix-ui/react-toggle-group": "1.1.19", + "@radix-ui/react-toolbar": "1.1.19", + "@radix-ui/react-tooltip": "1.2.16", + "@radix-ui/react-use-callback-ref": "1.1.4", + "@radix-ui/react-use-controllable-state": "1.2.6", + "@radix-ui/react-use-effect-event": "0.0.5", + "@radix-ui/react-use-escape-keydown": "1.1.5", + "@radix-ui/react-use-is-hydrated": "0.1.3", + "@radix-ui/react-use-layout-effect": "1.1.4", + "@radix-ui/react-use-size": "1.1.4", + "@radix-ui/react-visually-hidden": "1.2.11" + }, + "peerDependencies": { + "@types/react": "*", + "@types/react-dom": "*", + "react": "^16.8 || ^17.0 || ^18.0 || ^19.0 || ^19.0.0-rc", + "react-dom": "^16.8 || ^17.0 || ^18.0 || ^19.0 || ^19.0.0-rc" + }, + "peerDependenciesMeta": { + "@types/react": { + "optional": true + }, + "@types/react-dom": { + "optional": true + } + } + }, + "node_modules/rbush": { + "version": "3.0.1", + "resolved": "https://registry.npmjs.org/rbush/-/rbush-3.0.1.tgz", + "integrity": "sha512-XRaVO0YecOpEuIvbhbpTrZgoiI6xBlz6hnlr6EHhd+0x9ase6EmeN+hdwwUaJvLcsFFQ8iWVF1GAK1yB0BWi0w==", + "license": "MIT", + "dependencies": { + "quickselect": "^2.0.0" + } + }, + "node_modules/react": { + "version": "19.2.8", + "resolved": "https://registry.npmjs.org/react/-/react-19.2.8.tgz", + "integrity": "sha512-PWaYA1L/q9u2u7xYQi+Y3L3Yfnie7XyLeaJICV1MGD6LprsBxcAqGjYyr0eY3p+QdsA+x/Irkt4Qif8D63+Sbw==", + "license": "MIT", + "engines": { + "node": ">=0.10.0" + } + }, + "node_modules/react-dom": { + "version": "19.2.8", + "resolved": "https://registry.npmjs.org/react-dom/-/react-dom-19.2.8.tgz", + "integrity": "sha512-rVprimfGBG3DR+Tq0IQG2DT5PxKth1WIGDmj5yPmlzr4YBe7uyE+Du4oVqTDXZSHGGGXRtTJEGSSePyQCMBglQ==", + "license": "MIT", + "dependencies": { + "scheduler": "^0.27.0" + }, + "peerDependencies": { + "react": "^19.2.8" + } + }, + "node_modules/react-refresh": { + "version": "0.18.0", + "resolved": "https://registry.npmjs.org/react-refresh/-/react-refresh-0.18.0.tgz", + "integrity": "sha512-QgT5//D3jfjJb6Gsjxv0Slpj23ip+HtOpnNgnb2S5zU3CB26G/IDPGoy4RJB42wzFE46DRsstbW6tKHoKbhAxw==", + "dev": true, + "license": "MIT", + "engines": { + "node": ">=0.10.0" + } + }, + "node_modules/react-remove-scroll": { + "version": "2.7.2", + "resolved": "https://registry.npmjs.org/react-remove-scroll/-/react-remove-scroll-2.7.2.tgz", + "integrity": "sha512-Iqb9NjCCTt6Hf+vOdNIZGdTiH1QSqr27H/Ek9sv/a97gfueI/5h1s3yRi1nngzMUaOOToin5dI1dXKdXiF+u0Q==", + "license": "MIT", + "dependencies": { + "react-remove-scroll-bar": "^2.3.7", + "react-style-singleton": "^2.2.3", + "tslib": "^2.1.0", + "use-callback-ref": "^1.3.3", + "use-sidecar": "^1.1.3" + }, + "engines": { + "node": ">=10" + }, + "peerDependencies": { + "@types/react": "*", + "react": "^16.8.0 || ^17.0.0 || ^18.0.0 || ^19.0.0 || ^19.0.0-rc" + }, + "peerDependenciesMeta": { + "@types/react": { + "optional": true + } + } + }, + "node_modules/react-remove-scroll-bar": { + "version": "2.3.8", + "resolved": "https://registry.npmjs.org/react-remove-scroll-bar/-/react-remove-scroll-bar-2.3.8.tgz", + "integrity": "sha512-9r+yi9+mgU33AKcj6IbT9oRCO78WriSj6t/cF8DWBZJ9aOGPOTEDvdUDz1FwKim7QXWwmHqtdHnRJfhAxEG46Q==", + "license": "MIT", + "dependencies": { + "react-style-singleton": "^2.2.2", + "tslib": "^2.0.0" + }, + "engines": { + "node": ">=10" + }, + "peerDependencies": { + "@types/react": "*", + "react": "^16.8.0 || ^17.0.0 || ^18.0.0 || ^19.0.0" + }, + "peerDependenciesMeta": { + "@types/react": { + "optional": true + } + } + }, + "node_modules/react-resizable-panels": { + "version": "4.12.3", + "resolved": "https://registry.npmjs.org/react-resizable-panels/-/react-resizable-panels-4.12.3.tgz", + "integrity": "sha512-GHMJWnDXui/3RX4bT+cgBP+N3N2nkwcoZATr/2xLFpqQQe7TlBrE0cGM0dUa9ceT7A90tUrSRsiqgRG+g0/2AA==", + "license": "MIT", + "peerDependencies": { + "react": "^18.0.0 || ^19.0.0", + "react-dom": "^18.0.0 || ^19.0.0" + } + }, + "node_modules/react-style-singleton": { + "version": "2.2.3", + "resolved": "https://registry.npmjs.org/react-style-singleton/-/react-style-singleton-2.2.3.tgz", + "integrity": "sha512-b6jSvxvVnyptAiLjbkWLE/lOnR4lfTtDAl+eUC7RZy+QQWc6wRzIV2CE6xBuMmDxc2qIihtDCZD5NPOFl7fRBQ==", + "license": "MIT", + "dependencies": { + "get-nonce": "^1.0.0", + "tslib": "^2.0.0" + }, + "engines": { + "node": ">=10" + }, + "peerDependencies": { + "@types/react": "*", + "react": "^16.8.0 || ^17.0.0 || ^18.0.0 || ^19.0.0 || ^19.0.0-rc" + }, + "peerDependenciesMeta": { + "@types/react": { + "optional": true + } + } + }, + "node_modules/resolve-pkg-maps": { + "version": "1.0.0", + "resolved": "https://registry.npmjs.org/resolve-pkg-maps/-/resolve-pkg-maps-1.0.0.tgz", + "integrity": "sha512-seS2Tj26TBVOC2NIc2rOe2y2ZO7efxITtLZcGSOnHHNOQ7CkiUBfw0Iw2ck6xkIhPwLhKNLS8BO+hEpngQlqzw==", + "dev": true, + "license": "MIT", + "funding": { + "url": "https://github.com/privatenumber/resolve-pkg-maps?sponsor=1" + } + }, + "node_modules/rollup": { + "version": "4.63.1", + "resolved": "https://registry.npmjs.org/rollup/-/rollup-4.63.1.tgz", + "integrity": "sha512-3Df9jsstwhccuEfmAMi9l8XUh/GOkVObmFTU7CCVBysEbcOZLl84jCtaAZMcPiMz2EGKsATzQcU+Xr3n/wU6cg==", + "dev": true, + "license": "MIT", + "dependencies": { + "@types/estree": "1.0.9" + }, + "bin": { + "rollup": "dist/bin/rollup" + }, + "engines": { + "node": ">=18.0.0", + "npm": ">=8.0.0" + }, + "optionalDependencies": { + "@napi-rs/lzma-linux-x64-gnu": "1.5.1", + "@rollup/rollup-android-arm-eabi": "4.63.1", + "@rollup/rollup-android-arm64": "4.63.1", + "@rollup/rollup-darwin-arm64": "4.63.1", + "@rollup/rollup-darwin-x64": "4.63.1", + "@rollup/rollup-freebsd-arm64": "4.63.1", + "@rollup/rollup-freebsd-x64": "4.63.1", + "@rollup/rollup-linux-arm-gnueabihf": "4.63.1", + "@rollup/rollup-linux-arm-musleabihf": "4.63.1", + "@rollup/rollup-linux-arm64-gnu": "4.63.1", + "@rollup/rollup-linux-arm64-musl": "4.63.1", + "@rollup/rollup-linux-loong64-gnu": "4.63.1", + "@rollup/rollup-linux-loong64-musl": "4.63.1", + "@rollup/rollup-linux-ppc64-gnu": "4.63.1", + "@rollup/rollup-linux-ppc64-musl": "4.63.1", + "@rollup/rollup-linux-riscv64-gnu": "4.63.1", + "@rollup/rollup-linux-riscv64-musl": "4.63.1", + "@rollup/rollup-linux-s390x-gnu": "4.63.1", + "@rollup/rollup-linux-x64-gnu": "4.63.1", + "@rollup/rollup-linux-x64-musl": "4.63.1", + "@rollup/rollup-openbsd-x64": "4.63.1", + "@rollup/rollup-openharmony-arm64": "4.63.1", + "@rollup/rollup-win32-arm64-msvc": "4.63.1", + "@rollup/rollup-win32-ia32-msvc": "4.63.1", + "@rollup/rollup-win32-x64-gnu": "4.63.1", + "@rollup/rollup-win32-x64-msvc": "4.63.1", + "fsevents": "~2.3.2" + } + }, + "node_modules/rope-sequence": { + "version": "1.3.4", + "resolved": "https://registry.npmjs.org/rope-sequence/-/rope-sequence-1.3.4.tgz", + "integrity": "sha512-UT5EDe2cu2E/6O4igUr5PSFs23nvvukicWHx6GnOPlHAiiYbzNuCRQCuiUdHJQcqKalLKlrYJnjY0ySGsXNQXQ==", + "license": "MIT" + }, + "node_modules/scheduler": { + "version": "0.27.0", + "resolved": "https://registry.npmjs.org/scheduler/-/scheduler-0.27.0.tgz", + "integrity": "sha512-eNv+WrVbKu1f3vbYJT/xtiF5syA5HPIMtf9IgY/nKg0sWqzAUEvqY/xm7OcZc/qafLx/iO9FgOmeSAp4v5ti/Q==", + "license": "MIT" + }, + "node_modules/semver": { + "version": "6.3.1", + "resolved": "https://registry.npmjs.org/semver/-/semver-6.3.1.tgz", + "integrity": "sha512-BR7VvDCVHO+q2xBEWskxS6DJE1qRnb7DxzUrogb71CWoSficBxYsiAGd+Kl0mmq/MprG9yArRkyrQxTO6XjMzA==", + "dev": true, + "license": "ISC", + "bin": { + "semver": "bin/semver.js" + } + }, + "node_modules/source-map-js": { + "version": "1.2.1", + "resolved": "https://registry.npmjs.org/source-map-js/-/source-map-js-1.2.1.tgz", + "integrity": "sha512-UXWMKhLOwVKb728IUtQPXxfYU+usdybtUrK/8uGE8CQMvrhOpwvzDBwj0QhSL7MQc7vIsISBG8VQ8+IDQxpfQA==", + "dev": true, + "license": "BSD-3-Clause", + "engines": { + "node": ">=0.10.0" + } + }, + "node_modules/tinyglobby": { + "version": "0.2.17", + "resolved": "https://registry.npmjs.org/tinyglobby/-/tinyglobby-0.2.17.tgz", + "integrity": "sha512-wXR/dYpcqKmfWpEdZjiKJOwCNFndD0DMnrW/cYjVGttEkBfVgcLFHoNrlj47mjOVic9yyNu65alsgF4NQyTa2g==", + "dev": true, + "license": "MIT", + "dependencies": { + "fdir": "^6.5.0", + "picomatch": "^4.0.4" + }, + "engines": { + "node": ">=12.0.0" + }, + "funding": { + "url": "https://github.com/sponsors/SuperchupuDev" + } + }, + "node_modules/tldraw": { + "version": "5.3.2", + "resolved": "https://registry.npmjs.org/tldraw/-/tldraw-5.3.2.tgz", + "integrity": "sha512-HniH9yXFSKQ2l73i2c6+dfZ3SOS9avip+xmJqi69FiZahgIzMKrAtXs8XVwUCgJT9i4Z+KCogW6rWgY3O0iXOA==", + "license": "SEE LICENSE IN LICENSE.md", + "dependencies": { + "@tiptap/core": "^3.12.1", + "@tiptap/extension-code": "^3.12.1", + "@tiptap/extension-highlight": "^3.12.1", + "@tiptap/extension-list": "^3.12.1", + "@tiptap/pm": "^3.12.1", + "@tiptap/react": "^3.12.1", + "@tiptap/starter-kit": "^3.12.1", + "@tldraw/driver": "5.3.2", + "@tldraw/editor": "5.3.2", + "@tldraw/state": "5.3.2", + "@tldraw/store": "5.3.2", + "@tldraw/tlschema": "5.3.2", + "classnames": "^2.5.1", + "idb": "^7.1.1", + "lz-string": "^1.5.0", + "radix-ui": "^1.4.2" + }, + "engines": { + "node": ">=22.12.0" + }, + "peerDependencies": { + "react": "^18.2.0 || ^19.2.1", + "react-dom": "^18.2.0 || ^19.2.1" + } + }, + "node_modules/tslib": { + "version": "2.8.1", + "resolved": "https://registry.npmjs.org/tslib/-/tslib-2.8.1.tgz", + "integrity": "sha512-oJFu94HQb+KVduSUQL7wnpmqnfmLsOA/nAh6b6EH0wCEoK0/mPeXU6c3wKDV83MkOuHPRHtSXKKU99IBazS/2w==", + "license": "0BSD" + }, + "node_modules/tsx": { + "version": "4.20.5", + "resolved": "https://registry.npmjs.org/tsx/-/tsx-4.20.5.tgz", + "integrity": "sha512-+wKjMNU9w/EaQayHXb7WA7ZaHY6hN8WgfvHNQ3t1PnU91/7O8TcTnIhCDYTZwnt8JsO9IBqZ30Ln1r7pPF52Aw==", + "dev": true, + "license": "MIT", + "dependencies": { + "esbuild": "~0.25.0", + "get-tsconfig": "^4.7.5" + }, + "bin": { + "tsx": "dist/cli.mjs" + }, + "engines": { + "node": ">=18.0.0" + }, + "optionalDependencies": { + "fsevents": "~2.3.3" + } + }, + "node_modules/typescript": { + "version": "5.9.2", + "resolved": "https://registry.npmjs.org/typescript/-/typescript-5.9.2.tgz", + "integrity": "sha512-CWBzXQrc/qOkhidw1OzBTQuYRbfyxDXJMVJ1XNwUHGROVmuaeiEm3OslpZ1RV96d7SKKjZKrSJu3+t/xlw3R9A==", + "dev": true, + "license": "Apache-2.0", + "bin": { + "tsc": "bin/tsc", + "tsserver": "bin/tsserver" + }, + "engines": { + "node": ">=14.17" + } + }, + "node_modules/undici-types": { + "version": "7.10.0", + "resolved": "https://registry.npmjs.org/undici-types/-/undici-types-7.10.0.tgz", + "integrity": "sha512-t5Fy/nfn+14LuOc2KNYg75vZqClpAiqscVvMygNnlsHBFpSXdJaYtXMcdNLpl/Qvc3P2cB3s6lOV51nqsFq4ag==", + "dev": true, + "license": "MIT" + }, + "node_modules/update-browserslist-db": { + "version": "1.3.2", + "resolved": "https://registry.npmjs.org/update-browserslist-db/-/update-browserslist-db-1.3.2.tgz", + "integrity": "sha512-UQ+MSxlhRm1bzjhU+DcuXfjFO1FzNtqhK5+9Yvlp90ItDLk5vT932A0rFu619nf7RVS+Y/VeaUW1jaRDqZ8VJw==", + "dev": true, + "funding": [ + { + "type": "opencollective", + "url": "https://opencollective.com/browserslist" + }, + { + "type": "tidelift", + "url": "https://tidelift.com/funding/github/npm/browserslist" + }, + { + "type": "github", + "url": "https://github.com/sponsors/ai" + } + ], + "license": "MIT", + "dependencies": { + "escalade": "^3.2.0", + "picocolors": "^1.1.1" + }, + "bin": { + "update-browserslist-db": "cli.js" + }, + "peerDependencies": { + "browserslist": ">= 4.21.0" + } + }, + "node_modules/use-callback-ref": { + "version": "1.3.3", + "resolved": "https://registry.npmjs.org/use-callback-ref/-/use-callback-ref-1.3.3.tgz", + "integrity": "sha512-jQL3lRnocaFtu3V00JToYz/4QkNWswxijDaCVNZRiRTO3HQDLsdu1ZtmIUvV4yPp+rvWm5j0y0TG/S61cuijTg==", + "license": "MIT", + "dependencies": { + "tslib": "^2.0.0" + }, + "engines": { + "node": ">=10" + }, + "peerDependencies": { + "@types/react": "*", + "react": "^16.8.0 || ^17.0.0 || ^18.0.0 || ^19.0.0 || ^19.0.0-rc" + }, + "peerDependenciesMeta": { + "@types/react": { + "optional": true + } + } + }, + "node_modules/use-sidecar": { + "version": "1.1.3", + "resolved": "https://registry.npmjs.org/use-sidecar/-/use-sidecar-1.1.3.tgz", + "integrity": "sha512-Fedw0aZvkhynoPYlA5WXrMCAMm+nSWdZt6lzJQ7Ok8S6Q+VsHmHpRWndVRJ8Be0ZbkfPc5LRYH+5XrzXcEeLRQ==", + "license": "MIT", + "dependencies": { + "detect-node-es": "^1.1.0", + "tslib": "^2.0.0" + }, + "engines": { + "node": ">=10" + }, + "peerDependencies": { + "@types/react": "*", + "react": "^16.8.0 || ^17.0.0 || ^18.0.0 || ^19.0.0 || ^19.0.0-rc" + }, + "peerDependenciesMeta": { + "@types/react": { + "optional": true + } + } + }, + "node_modules/use-sync-external-store": { + "version": "1.6.0", + "resolved": "https://registry.npmjs.org/use-sync-external-store/-/use-sync-external-store-1.6.0.tgz", + "integrity": "sha512-Pp6GSwGP/NrPIrxVFAIkOQeyw8lFenOHijQWkUTrDvrF4ALqylP2C/KCkeS9dpUM3KvYRQhna5vt7IL95+ZQ9w==", + "license": "MIT", + "peerDependencies": { + "react": "^16.8.0 || ^17.0.0 || ^18.0.0 || ^19.0.0" + } + }, + "node_modules/vite": { + "version": "7.3.6", + "resolved": "https://registry.npmjs.org/vite/-/vite-7.3.6.tgz", + "integrity": "sha512-4XP60spRGjSZFf1qYH+dJIkK2znL3zQfl9KkOV9MkkRR/3Dls0dxaBsQPTloEc5BLXWPL9vsOxopxyKoMmDueg==", + "dev": true, + "license": "MIT", + "dependencies": { + "esbuild": "^0.27.0 || ^0.28.0", + "fdir": "^6.5.0", + "picomatch": "^4.0.3", + "postcss": "^8.5.6", + "rollup": "^4.43.0", + "tinyglobby": "^0.2.15" + }, + "bin": { + "vite": "bin/vite.js" + }, + "engines": { + "node": "^20.19.0 || >=22.12.0" + }, + "funding": { + "url": "https://github.com/vitejs/vite?sponsor=1" + }, + "optionalDependencies": { + "fsevents": "~2.3.3" + }, + "peerDependencies": { + "@types/node": "^20.19.0 || >=22.12.0", + "jiti": ">=1.21.0", + "less": "^4.0.0", + "lightningcss": "^1.21.0", + "sass": "^1.70.0", + "sass-embedded": "^1.70.0", + "stylus": ">=0.54.8", + "sugarss": "^5.0.0", + "terser": "^5.16.0", + "tsx": "^4.8.1", + "yaml": "^2.4.2" + }, + "peerDependenciesMeta": { + "@types/node": { + "optional": true + }, + "jiti": { + "optional": true + }, + "less": { + "optional": true + }, + "lightningcss": { + "optional": true + }, + "sass": { + "optional": true + }, + "sass-embedded": { + "optional": true + }, + "stylus": { + "optional": true + }, + "sugarss": { + "optional": true + }, + "terser": { + "optional": true + }, + "tsx": { + "optional": true + }, + "yaml": { + "optional": true + } + } + }, + "node_modules/vite/node_modules/@esbuild/aix-ppc64": { + "version": "0.28.2", + "resolved": "https://registry.npmjs.org/@esbuild/aix-ppc64/-/aix-ppc64-0.28.2.tgz", + "integrity": "sha512-XExcO+dvLKvVtNTibSTBej1NCAbaGhWn9Ww1ZPx80qsahhPFe/8jgWP0IchNe0F3HwkU7n8ejhH8bjonqht8mQ==", + "cpu": [ + "ppc64" + ], + "dev": true, + "license": "MIT", + "optional": true, + "os": [ + "aix" + ], + "engines": { + "node": ">=18" + } + }, + "node_modules/vite/node_modules/@esbuild/android-arm": { + "version": "0.28.2", + "resolved": "https://registry.npmjs.org/@esbuild/android-arm/-/android-arm-0.28.2.tgz", + "integrity": "sha512-kXXoiPVVGQcnIYGOeaovwOURpniDBpSq4A03qkQ+BMQqtGG6HYap3xne9C1O1yo4TR3qxlCX5IqqmX6fFo2Lqg==", + "cpu": [ + "arm" + ], + "dev": true, + "license": "MIT", + "optional": true, + "os": [ + "android" + ], + "engines": { + "node": ">=18" + } + }, + "node_modules/vite/node_modules/@esbuild/android-arm64": { + "version": "0.28.2", + "resolved": "https://registry.npmjs.org/@esbuild/android-arm64/-/android-arm64-0.28.2.tgz", + "integrity": "sha512-5YfKeeI8qWfBZIX+u2xZC3Zlb3Os/gLS2sbEKM+I4ZOcsWmHS2WLysCcQZDAFRslDUU5Oiq44gf6PYN1vGwG5A==", + "cpu": [ + "arm64" + ], + "dev": true, + "license": "MIT", + "optional": true, + "os": [ + "android" + ], + "engines": { + "node": ">=18" + } + }, + "node_modules/vite/node_modules/@esbuild/android-x64": { + "version": "0.28.2", + "resolved": "https://registry.npmjs.org/@esbuild/android-x64/-/android-x64-0.28.2.tgz", + "integrity": "sha512-O387ite7SzUyCcy3JQX4P4bLtEA7bLLkx+esve5JHnyYfNTxcVpXZo9jhdB0lTKN44gztELTdU7nS8Nr16Fs1Q==", + "cpu": [ + "x64" + ], + "dev": true, + "license": "MIT", + "optional": true, + "os": [ + "android" + ], + "engines": { + "node": ">=18" + } + }, + "node_modules/vite/node_modules/@esbuild/darwin-arm64": { + "version": "0.28.2", + "resolved": "https://registry.npmjs.org/@esbuild/darwin-arm64/-/darwin-arm64-0.28.2.tgz", + "integrity": "sha512-n4KqkOQrraxHJcgjM1RvwbigfQKIKJVpM7xp+KsxiyUSrRdIXnt73VhrPAx0fV44hgfmIVKjxMN9J1t5jySVkw==", + "cpu": [ + "arm64" + ], + "dev": true, + "license": "MIT", + "optional": true, + "os": [ + "darwin" + ], + "engines": { + "node": ">=18" + } + }, + "node_modules/vite/node_modules/@esbuild/darwin-x64": { + "version": "0.28.2", + "resolved": "https://registry.npmjs.org/@esbuild/darwin-x64/-/darwin-x64-0.28.2.tgz", + "integrity": "sha512-uq6suIWYP37qzGddBKPw5QEQPi6HiLGsO7UmkpfyaYNQ3D+rN6w6WfwH+nuqcGXWvawGwxOEroO4YGnFh95azw==", + "cpu": [ + "x64" + ], + "dev": true, + "license": "MIT", + "optional": true, + "os": [ + "darwin" + ], + "engines": { + "node": ">=18" + } + }, + "node_modules/vite/node_modules/@esbuild/freebsd-arm64": { + "version": "0.28.2", + "resolved": "https://registry.npmjs.org/@esbuild/freebsd-arm64/-/freebsd-arm64-0.28.2.tgz", + "integrity": "sha512-n+I0BTSRIoy+d6RPKnEVwql5UwBJolytvY4mAOIEJorKlqgPII8ix6slVVrfZ5Tnj7glIZvloylbB/EJPMWEXw==", + "cpu": [ + "arm64" + ], + "dev": true, + "license": "MIT", + "optional": true, + "os": [ + "freebsd" + ], + "engines": { + "node": ">=18" + } + }, + "node_modules/vite/node_modules/@esbuild/freebsd-x64": { + "version": "0.28.2", + "resolved": "https://registry.npmjs.org/@esbuild/freebsd-x64/-/freebsd-x64-0.28.2.tgz", + "integrity": "sha512-78XJTJkvPs0kz2w61301PJjXl4g7q3JqiYMZ/M/yVI73EHBrCRTgkhu9oqG7vPqq+a/yadEW8aD+agKlk5xrmg==", + "cpu": [ + "x64" + ], + "dev": true, + "license": "MIT", + "optional": true, + "os": [ + "freebsd" + ], + "engines": { + "node": ">=18" + } + }, + "node_modules/vite/node_modules/@esbuild/linux-arm": { + "version": "0.28.2", + "resolved": "https://registry.npmjs.org/@esbuild/linux-arm/-/linux-arm-0.28.2.tgz", + "integrity": "sha512-XlDnu2q5yoqems+xay6wSAcg9DDD7K9RLKZEBOMZm3ckNpJBvOX20tSfby8KfrrhINDyv9V2YVZKY/SpoGJI8w==", + "cpu": [ + "arm" + ], + "dev": true, + "license": "MIT", + "optional": true, + "os": [ + "linux" + ], + "engines": { + "node": ">=18" + } + }, + "node_modules/vite/node_modules/@esbuild/linux-arm64": { + "version": "0.28.2", + "resolved": "https://registry.npmjs.org/@esbuild/linux-arm64/-/linux-arm64-0.28.2.tgz", + "integrity": "sha512-pW4AC0P3it8c7do9MVM4p51FzHzdM/TZrerurgRcHJ2WTa1VQ1CIq18xncfpBJw4ojkiZZrKW2yIBWBP92j6Ug==", + "cpu": [ + "arm64" + ], + "dev": true, + "license": "MIT", + "optional": true, + "os": [ + "linux" + ], + "engines": { + "node": ">=18" + } + }, + "node_modules/vite/node_modules/@esbuild/linux-ia32": { + "version": "0.28.2", + "resolved": "https://registry.npmjs.org/@esbuild/linux-ia32/-/linux-ia32-0.28.2.tgz", + "integrity": "sha512-CYbnj78HsIeA+DhgUKgFCfvNsTHFhMMrinUrMZpDXJXKN8T3XViTZ/+wtHeVxEWY8ewSzTFN+nRmSwO2tZaLUQ==", + "cpu": [ + "ia32" + ], + "dev": true, + "license": "MIT", + "optional": true, + "os": [ + "linux" + ], + "engines": { + "node": ">=18" + } + }, + "node_modules/vite/node_modules/@esbuild/linux-loong64": { + "version": "0.28.2", + "resolved": "https://registry.npmjs.org/@esbuild/linux-loong64/-/linux-loong64-0.28.2.tgz", + "integrity": "sha512-buwkd8nsph4R+ajRvw0qM5Hja/TXQow3ptzWO2EbG/cqcIkHloRrdlBtQlshyYGTNFvfkfJ5tpPLVkY4DtsPfQ==", + "cpu": [ + "loong64" + ], + "dev": true, + "license": "MIT", + "optional": true, + "os": [ + "linux" + ], + "engines": { + "node": ">=18" + } + }, + "node_modules/vite/node_modules/@esbuild/linux-mips64el": { + "version": "0.28.2", + "resolved": "https://registry.npmjs.org/@esbuild/linux-mips64el/-/linux-mips64el-0.28.2.tgz", + "integrity": "sha512-ZVykbDyk7519VwiNb9Lcj9m8XM6v5V9uKPvrEMkkEedVewf+0itkhahp4HDpgERXhwLRpWFypsGbG/J8s0QjJA==", + "cpu": [ + "mips64el" + ], + "dev": true, + "license": "MIT", + "optional": true, + "os": [ + "linux" + ], + "engines": { + "node": ">=18" + } + }, + "node_modules/vite/node_modules/@esbuild/linux-ppc64": { + "version": "0.28.2", + "resolved": "https://registry.npmjs.org/@esbuild/linux-ppc64/-/linux-ppc64-0.28.2.tgz", + "integrity": "sha512-CAXl+Dtd9UUuJd8pKKdwh6MLm3MUMiqMPmhZ3tTSXPqfyQ3vDl6R5hZdZ/kYojK4ofXtdfSv1tFq8XzWx3heNQ==", + "cpu": [ + "ppc64" + ], + "dev": true, + "license": "MIT", + "optional": true, + "os": [ + "linux" + ], + "engines": { + "node": ">=18" + } + }, + "node_modules/vite/node_modules/@esbuild/linux-riscv64": { + "version": "0.28.2", + "resolved": "https://registry.npmjs.org/@esbuild/linux-riscv64/-/linux-riscv64-0.28.2.tgz", + "integrity": "sha512-GeXCej4IQtU1B+QlDV8W/RRvbzI3O/Stss+/bCXv4lZls5WGRtu2a+3JkA3i4qIUlMXpcHebWpF8AkJhATowuA==", + "cpu": [ + "riscv64" + ], + "dev": true, + "license": "MIT", + "optional": true, + "os": [ + "linux" + ], + "engines": { + "node": ">=18" + } + }, + "node_modules/vite/node_modules/@esbuild/linux-s390x": { + "version": "0.28.2", + "resolved": "https://registry.npmjs.org/@esbuild/linux-s390x/-/linux-s390x-0.28.2.tgz", + "integrity": "sha512-3H1weTYZPxt/WOhByszQZybS9w5lKzUn1FDMsgEChbHWQwHYQQRfBxgCcZvPhjHfKyJjIievvMmEUawJrdY9Dg==", + "cpu": [ + "s390x" + ], + "dev": true, + "license": "MIT", + "optional": true, + "os": [ + "linux" + ], + "engines": { + "node": ">=18" + } + }, + "node_modules/vite/node_modules/@esbuild/linux-x64": { + "version": "0.28.2", + "resolved": "https://registry.npmjs.org/@esbuild/linux-x64/-/linux-x64-0.28.2.tgz", + "integrity": "sha512-4xTZr1FUmSoQW4XIWmit3tzQrUTZM+N3P0XV8xROKYF50XfI7xeO90+1bZvNwxIufQ9hDQVRJH5YhgPVF8A/HQ==", + "cpu": [ + "x64" + ], + "dev": true, + "license": "MIT", + "optional": true, + "os": [ + "linux" + ], + "engines": { + "node": ">=18" + } + }, + "node_modules/vite/node_modules/@esbuild/netbsd-arm64": { + "version": "0.28.2", + "resolved": "https://registry.npmjs.org/@esbuild/netbsd-arm64/-/netbsd-arm64-0.28.2.tgz", + "integrity": "sha512-sSATRjPeDBg3pdgHoQfoYBob11Kk1FGa9lui5RIHZCoCkJa9QKlvl3/vKz2usCmYYjs7ymJR/2Nnsqe+Hjt5nw==", + "cpu": [ + "arm64" + ], + "dev": true, + "license": "MIT", + "optional": true, + "os": [ + "netbsd" + ], + "engines": { + "node": ">=18" + } + }, + "node_modules/vite/node_modules/@esbuild/netbsd-x64": { + "version": "0.28.2", + "resolved": "https://registry.npmjs.org/@esbuild/netbsd-x64/-/netbsd-x64-0.28.2.tgz", + "integrity": "sha512-lqnzCV+mM0gIADaKihiCg6ifgfU2L3h5E33rNQBN1Y4MaVGnzryzmvvf7UHxprpQdE8hpqLolJ9Rl+SkIRDpyw==", + "cpu": [ + "x64" + ], + "dev": true, + "license": "MIT", + "optional": true, + "os": [ + "netbsd" + ], + "engines": { + "node": ">=18" + } + }, + "node_modules/vite/node_modules/@esbuild/openbsd-arm64": { + "version": "0.28.2", + "resolved": "https://registry.npmjs.org/@esbuild/openbsd-arm64/-/openbsd-arm64-0.28.2.tgz", + "integrity": "sha512-AL2qJILH7lNjrDmCQDvdxMfAUIv8KMNZOvrwAQ8i8//ntL9FflhOyMJ8OZSMBb8/AWXe3/5v5S20y3zCoZWKoQ==", + "cpu": [ + "arm64" + ], + "dev": true, + "license": "MIT", + "optional": true, + "os": [ + "openbsd" + ], + "engines": { + "node": ">=18" + } + }, + "node_modules/vite/node_modules/@esbuild/openbsd-x64": { + "version": "0.28.2", + "resolved": "https://registry.npmjs.org/@esbuild/openbsd-x64/-/openbsd-x64-0.28.2.tgz", + "integrity": "sha512-QtiuPytchRyC4rwUKhexJdQKvDuZ6hWloi3igqPQNUJCS1/v9EiO3UTOXR6A3FoMo4fnAKbWJdqaIwhOzh8qEw==", + "cpu": [ + "x64" + ], + "dev": true, + "license": "MIT", + "optional": true, + "os": [ + "openbsd" + ], + "engines": { + "node": ">=18" + } + }, + "node_modules/vite/node_modules/@esbuild/openharmony-arm64": { + "version": "0.28.2", + "resolved": "https://registry.npmjs.org/@esbuild/openharmony-arm64/-/openharmony-arm64-0.28.2.tgz", + "integrity": "sha512-WkhYDmpTjLvGlScA1rwjRUmhl4k8oXR3cIbtqWmELgU/dFeHHlEllxDvdWcNJV9rbzCexB5vz8gtNewWLgCT7Q==", + "cpu": [ + "arm64" + ], + "dev": true, + "license": "MIT", + "optional": true, + "os": [ + "openharmony" + ], + "engines": { + "node": ">=18" + } + }, + "node_modules/vite/node_modules/@esbuild/sunos-x64": { + "version": "0.28.2", + "resolved": "https://registry.npmjs.org/@esbuild/sunos-x64/-/sunos-x64-0.28.2.tgz", + "integrity": "sha512-GPMSkTOtMnv2U2F8gxe4Io6qmVs+YKyp832Etqqxr0hFngmXQ3rzwytelm3GIn7T4VviRUlf3sOgBOiTdvaf7g==", + "cpu": [ + "x64" + ], + "dev": true, + "license": "MIT", + "optional": true, + "os": [ + "sunos" + ], + "engines": { + "node": ">=18" + } + }, + "node_modules/vite/node_modules/@esbuild/win32-arm64": { + "version": "0.28.2", + "resolved": "https://registry.npmjs.org/@esbuild/win32-arm64/-/win32-arm64-0.28.2.tgz", + "integrity": "sha512-PIhhEkE9uPBleRBrQEJpUn7MBnibZzbGzYWPmY3x+YoVg/95zbjB4CxPPOQ8l5tYYM4mMaCthF8/1DIfBQQyWQ==", + "cpu": [ + "arm64" + ], + "dev": true, + "license": "MIT", + "optional": true, + "os": [ + "win32" + ], + "engines": { + "node": ">=18" + } + }, + "node_modules/vite/node_modules/@esbuild/win32-ia32": { + "version": "0.28.2", + "resolved": "https://registry.npmjs.org/@esbuild/win32-ia32/-/win32-ia32-0.28.2.tgz", + "integrity": "sha512-YmJbfTlvU7Sdn9BB+4PRES4oB6pxgS37MAONj+hBr/cpXS1aBPKXxNnDbu+QCWPj0o9dgyxeq79g6c5P8KeuYA==", + "cpu": [ + "ia32" + ], + "dev": true, + "license": "MIT", + "optional": true, + "os": [ + "win32" + ], + "engines": { + "node": ">=18" + } + }, + "node_modules/vite/node_modules/@esbuild/win32-x64": { + "version": "0.28.2", + "resolved": "https://registry.npmjs.org/@esbuild/win32-x64/-/win32-x64-0.28.2.tgz", + "integrity": "sha512-5ebpxr3nWMzrL/rnUI755Jkuee0bHL/Gq0WTF9lvcpv73wAp5eu8MfBUgWK9bhWvZjj7yX8etf/8tI8Ney695g==", + "cpu": [ + "x64" + ], + "dev": true, + "license": "MIT", + "optional": true, + "os": [ + "win32" + ], + "engines": { + "node": ">=18" + } + }, + "node_modules/vite/node_modules/esbuild": { + "version": "0.28.2", + "resolved": "https://registry.npmjs.org/esbuild/-/esbuild-0.28.2.tgz", + "integrity": "sha512-HKVLS8dvII+xoKW9kmqxbRKrnWEXfJJr/FZhhJmiqIB0e053QNYFqOBouTMO/k5sID4MvCiUCvv8b9M4h32wIA==", + "dev": true, + "hasInstallScript": true, + "license": "MIT", + "bin": { + "esbuild": "bin/esbuild" + }, + "engines": { + "node": ">=18" + }, + "optionalDependencies": { + "@esbuild/aix-ppc64": "0.28.2", + "@esbuild/android-arm": "0.28.2", + "@esbuild/android-arm64": "0.28.2", + "@esbuild/android-x64": "0.28.2", + "@esbuild/darwin-arm64": "0.28.2", + "@esbuild/darwin-x64": "0.28.2", + "@esbuild/freebsd-arm64": "0.28.2", + "@esbuild/freebsd-x64": "0.28.2", + "@esbuild/linux-arm": "0.28.2", + "@esbuild/linux-arm64": "0.28.2", + "@esbuild/linux-ia32": "0.28.2", + "@esbuild/linux-loong64": "0.28.2", + "@esbuild/linux-mips64el": "0.28.2", + "@esbuild/linux-ppc64": "0.28.2", + "@esbuild/linux-riscv64": "0.28.2", + "@esbuild/linux-s390x": "0.28.2", + "@esbuild/linux-x64": "0.28.2", + "@esbuild/netbsd-arm64": "0.28.2", + "@esbuild/netbsd-x64": "0.28.2", + "@esbuild/openbsd-arm64": "0.28.2", + "@esbuild/openbsd-x64": "0.28.2", + "@esbuild/openharmony-arm64": "0.28.2", + "@esbuild/sunos-x64": "0.28.2", + "@esbuild/win32-arm64": "0.28.2", + "@esbuild/win32-ia32": "0.28.2", + "@esbuild/win32-x64": "0.28.2" + } + }, + "node_modules/w3c-keyname": { + "version": "2.2.8", + "resolved": "https://registry.npmjs.org/w3c-keyname/-/w3c-keyname-2.2.8.tgz", + "integrity": "sha512-dpojBhNsCNN7T82Tm7k26A6G9ML3NkhDsnw9n/eoxSRlVBB4CEtIQ/KTCLI2Fwf3ataSXRhYFkQi3SlnFwPvPQ==", + "license": "MIT" + }, + "node_modules/ws": { + "version": "8.21.3", + "resolved": "https://registry.npmjs.org/ws/-/ws-8.21.3.tgz", + "integrity": "sha512-201TZ/kPWxoPr/OKWjquZR1SWKXcvxdH+e1xrx89b3YbmzLMFCLfnaG1HFIgWzJOEWZ7MvpK++odZufgYR50Rw==", + "license": "MIT", + "engines": { + "node": ">=10.0.0" + }, + "peerDependencies": { + "bufferutil": "^4.0.1", + "utf-8-validate": ">=5.0.2" + }, + "peerDependenciesMeta": { + "bufferutil": { + "optional": true + }, + "utf-8-validate": { + "optional": true + } + } + }, + "node_modules/yallist": { + "version": "3.1.1", + "resolved": "https://registry.npmjs.org/yallist/-/yallist-3.1.1.tgz", + "integrity": "sha512-a4UGQaWPH59mOXUYnAG2ewncQS4i4F43Tv3JoAM+s2VDAmS9NsK8GpDMLrCHPksFT7h3K6TOoUNn2pb7RoXx4g==", + "dev": true, + "license": "ISC" + } + } +} diff --git a/fork/whiteboard/package.json b/fork/whiteboard/package.json new file mode 100644 index 0000000000000..6ae4850b999eb --- /dev/null +++ b/fork/whiteboard/package.json @@ -0,0 +1,42 @@ +{ + "name": "whiteboard", + "private": true, + "bin": { + "wb": "tools/wb.mjs" + }, + "type": "module", + "scripts": { + "dev": "vite", + "server": "tsx server/main.ts", + "test": "tsx web/mathsplit.check.ts && tsx web/camera.check.ts", + "build": "tsc --noEmit && vite build" + }, + "dependencies": { + "@benrbray/prosemirror-math": "1.0.0", + "@tiptap/core": "3.30.5", + "@tiptap/pm": "3.30.5", + "@tldraw/state-react": "5.3.2", + "@tldraw/sync": "5.3.2", + "@tldraw/sync-core": "5.3.2", + "@tldraw/tlschema": "5.3.2", + "@tldraw/utils": "5.3.2", + "katex": "0.16.47", + "react": "19.2.8", + "react-dom": "19.2.8", + "react-resizable-panels": "4.12.3", + "tldraw": "5.3.2", + "ws": "8.21.3" + }, + "devDependencies": { + "@types/katex": "0.16.7", + "@types/node": "24.3.0", + "@types/react": "19.2.18", + "@types/react-dom": "19.2.5", + "@types/ws": "8.18.1", + "@vitejs/plugin-react": "^5.2.0", + "playwright-core": "1.61.0", + "tsx": "4.20.5", + "typescript": "5.9.2", + "vite": "7.3.6" + } +} diff --git a/fork/whiteboard/probes/README.md b/fork/whiteboard/probes/README.md new file mode 100644 index 0000000000000..11da28d4f6522 --- /dev/null +++ b/fork/whiteboard/probes/README.md @@ -0,0 +1,10 @@ +# Browser probes + +Keep the sync server and Vite running on their configured ports, then execute the probes with the local Chrome installation: + +```bash +node probes/board-math.mjs +node probes/board-reference.mjs +``` + +The probes open `http://127.0.0.1:6061` and use `/opt/google/chrome/chrome` by default. Override the endpoints with `WHITEBOARD_URL` and `WHITEBOARD_API_URL`. Screenshots are written to `/tmp/whiteboard-board-*.png` by default. diff --git a/fork/whiteboard/probes/board-math.mjs b/fork/whiteboard/probes/board-math.mjs new file mode 100644 index 0000000000000..0bd6107ac3bc6 --- /dev/null +++ b/fork/whiteboard/probes/board-math.mjs @@ -0,0 +1,200 @@ +import { chromium } from "playwright-core"; + +const baseUrl = process.env.WHITEBOARD_URL ?? "http://127.0.0.1:6061"; +const apiUrl = process.env.WHITEBOARD_API_URL ?? "http://127.0.0.1:6060"; +const screenshot = process.env.WHITEBOARD_PROBE_SCREENSHOT ?? "/tmp/whiteboard-board-math.png"; +const latex = String.raw`\omega < 2.373`; +const zooms = [ + { label: "90%", deltas: [100] }, + { label: "51%", deltas: [100, 100, 100, 100, 20, 10, 5, -2] }, +]; + +function assert(condition, message) { + if (!condition) throw new Error(message); +} + +async function emptyPoints(page) { + return page.evaluate(() => { + const board = document.querySelector(".tl-canvas")?.getBoundingClientRect(); + if (!board) return []; + const points = []; + for (let y = 150; y < board.height - 150; y += 70) + for (let x = 150; x < board.width - 150; x += 90) { + if ( + !document + .elementsFromPoint(board.x + x, board.y + y) + .some((element) => element.closest(".tl-shape")) + ) + points.push({ x: board.x + x, y: board.y + y }); + } + return points; + }); +} + +async function startText(page) { + for (const point of await emptyPoints(page)) { + await page.getByRole("button", { name: /^Text/ }).click(); + await page.mouse.click(point.x, point.y); + if (await page.locator('[contenteditable="true"]').count()) return point; + } + throw new Error("No empty board position is available for text input"); +} + +async function applyZoom(page, zoom) { + await page.mouse.move(500, 400); + for (const delta of zoom.deltas) { + await page.mouse.wheel(0, delta); + await page.waitForTimeout(30); + } + assert( + (await page.getByRole("button", { name: /^Zoom/ }).getAttribute("aria-label")) === + `Zoom — ${zoom.label}`, + `Failed to reach ${zoom.label} zoom`, + ); +} + +async function inspectFormula(locator) { + await locator.waitFor({ state: "visible" }); + return locator.evaluate((element) => { + const shape = element.closest(".tl-shape"); + return { + hasKatex: Boolean(element.querySelector(".katex")), + visibleText: element.innerText, + lineCount: element.getClientRects().length, + width: element.getBoundingClientRect().width, + katexWidth: element.querySelector(".katex")?.getBoundingClientRect().width ?? 0, + shapeWidth: shape?.getBoundingClientRect().width ?? 0, + }; + }); +} + +const browser = await chromium.launch({ + executablePath: "/opt/google/chrome/chrome", + headless: true, + args: ["--no-sandbox"], +}); + +try { + const startup = await browser.newPage({ viewport: { width: 1440, height: 900 } }); + let startupError; + startup.on("pageerror", (error) => { + if (/Adding different instances of a keyed plugin/.test(error.message)) + startupError = error.stack; + }); + startup.on("console", (message) => { + if (/Adding different instances of a keyed plugin/.test(message.text())) + startupError = message.text(); + }); + await startup.goto(baseUrl, { waitUntil: "commit" }); + await startup.waitForSelector(".tlui-layout", { state: "visible" }); + const [startupPoint] = await emptyPoints(startup); + assert(startupPoint, "No empty board position is available after a hard reload"); + await startup.mouse.dblclick(startupPoint.x, startupPoint.y, { delay: 15 }); + await startup.locator('[contenteditable="true"]').waitFor({ state: "visible" }); + assert(!startupError, `The first double-click after a hard reload failed: ${startupError}`); + await startup.close(); + + const results = []; + for (const zoom of zooms) { + const page = await browser.newPage({ viewport: { width: 1440, height: 900 } }); + await page.goto(baseUrl); + await page.waitForSelector(".tl-canvas"); + await page.waitForTimeout(800); + const existingIds = ( + await fetch(`${apiUrl}/api/board`).then((response) => response.json()) + ).map((item) => item.id); + await applyZoom(page, zoom); + await startText(page); + await page.keyboard.insertText(`$${latex}`); + await page.keyboard.insertText("$"); + + const editingFormula = page.locator("math-inline").last(); + await editingFormula.waitFor({ state: "visible" }); + const shapeId = await editingFormula.evaluate((element) => + element.closest(".tl-shape")?.getAttribute("data-shape-id"), + ); + assert( + shapeId && !existingIds.includes(shapeId), + `${zoom.label}: no new formula text shape was created`, + ); + const editing = await inspectFormula(editingFormula); + assert(editing.hasKatex, `${zoom.label}: the editing formula did not render as KaTeX`); + assert( + editing.lineCount === 1, + `${zoom.label}: the editing formula uses ${editing.lineCount} lines instead of one`, + ); + assert( + Math.abs(editing.width - editing.katexWidth) <= 1, + `${zoom.label}: the editing formula and KaTeX widths differ`, + ); + + await page.keyboard.press("Escape"); + const staticFormula = page.locator( + `[data-shape-id="${shapeId}"] span[data-type="inline-math"]`, + ); + const blurred = await inspectFormula(staticFormula); + assert( + !blurred.visibleText.includes("$"), + `${zoom.label}: the blurred formula still displays literal dollar signs`, + ); + assert( + blurred.lineCount === 1, + `${zoom.label}: the blurred formula uses ${blurred.lineCount} lines instead of one`, + ); + assert( + Math.abs(blurred.width - editing.width) <= 1, + `${zoom.label}: formula width changed after blur: ${editing.width} -> ${blurred.width}`, + ); + + const records = await fetch(`${apiUrl}/api/board`).then((response) => response.json()); + assert( + records.find((item) => item.id === shapeId)?.props?.autoSize === true, + `${zoom.label}: the new formula text does not use autoSize=true`, + ); + + await page.reload({ waitUntil: "load" }); + await page.waitForSelector(".tl-canvas"); + await page.waitForTimeout(800); + assert( + (await page.getByRole("button", { name: /^Zoom/ }).getAttribute("aria-label")) === + `Zoom — ${zoom.label}`, + `${zoom.label}: camera memory did not restore the zoom after reload`, + ); + const reloaded = await inspectFormula( + page.locator(`[data-shape-id="${shapeId}"] span[data-type="inline-math"]`), + ); + assert( + reloaded.lineCount === 1, + `${zoom.label}: the reloaded formula uses ${reloaded.lineCount} lines instead of one`, + ); + assert( + Math.abs(reloaded.width - blurred.width) <= 1, + `${zoom.label}: formula width changed after reload: ${blurred.width} -> ${reloaded.width}`, + ); + assert( + Math.abs(reloaded.shapeWidth - blurred.shapeWidth) <= 1, + `${zoom.label}: shape width changed after reload: ${blurred.shapeWidth} -> ${reloaded.shapeWidth}`, + ); + + const zoomScreenshot = screenshot.replace(/(\.[^.]+)$/, `-${zoom.label.replace("%", "")}$1`); + await page.screenshot({ path: zoomScreenshot }); + results.push({ + zoom: zoom.label, + shapeId, + editing, + blurred, + reloaded, + screenshot: zoomScreenshot, + }); + await page.close(); + } + console.log( + JSON.stringify( + { ok: true, startup: "first double-click opened editor without errors", results }, + null, + 2, + ), + ); +} finally { + await browser.close(); +} diff --git a/fork/whiteboard/probes/board-reference.mjs b/fork/whiteboard/probes/board-reference.mjs new file mode 100644 index 0000000000000..baa5cb2b7dbf9 --- /dev/null +++ b/fork/whiteboard/probes/board-reference.mjs @@ -0,0 +1,216 @@ +import { chromium } from "playwright-core"; + +const baseUrl = process.env.WHITEBOARD_URL ?? "http://127.0.0.1:6061"; +const screenshot = process.env.WHITEBOARD_PROBE_SCREENSHOT ?? "/tmp/whiteboard-board-reference.png"; +const offscreenScreenshot = + process.env.WHITEBOARD_PROBE_OFFSCREEN_SCREENSHOT ?? + "/tmp/whiteboard-board-reference-offscreen.png"; + +function assert(condition, message) { + if (!condition) throw new Error(message); +} + +function angleDifference(a, b) { + return Math.abs(((a - b + 540) % 360) - 180); +} + +const browser = await chromium.launch({ + executablePath: "/opt/google/chrome/chrome", + headless: true, + args: ["--no-sandbox"], +}); +const page = await browser.newPage({ viewport: { width: 1440, height: 900 } }); + +try { + await page.goto(baseUrl); + await page.waitForSelector(".tl-canvas"); + await page.waitForTimeout(800); + + const bridgeUrl = await page.evaluate(() => + performance + .getEntriesByType("resource") + .map((entry) => entry.name) + .find((name) => /\/web\/bridge\.ts(?:\?|$)/.test(name)), + ); + assert(bridgeUrl, "The page did not load a bridge.ts module"); + + const initial = await page.evaluate(() => { + const board = document.querySelector(".tl-canvas")?.getBoundingClientRect(); + const shape = [...document.querySelectorAll(".tl-shape")].find( + (element) => + getComputedStyle(element).display !== "none" && element.getBoundingClientRect().width > 20, + ); + if (!board || !shape) return null; + const rect = shape.getBoundingClientRect(); + const transform = new DOMMatrixReadOnly(getComputedStyle(shape).transform); + return { + board: board.toJSON(), + region: { + x: Math.round(transform.e), + y: Math.round(transform.f), + w: Math.max(20, Math.round(rect.width)), + h: Math.max(20, Math.round(rect.height)), + }, + origin: { x: board.right - 70, y: board.top + 110 }, + }; + }); + assert(initial, "The board has no visible shape for the reference probe"); + + const cameraBefore = await page.evaluate(() => ({ + canvas: getComputedStyle(document.querySelector(".tl-canvas")).transform, + shapes: getComputedStyle(document.querySelector('.tl-shape[style*="display: block"]')) + .transform, + })); + + await page.evaluate( + async ({ bridgeUrl, region, origin }) => { + const bridge = await import(bridgeUrl); + bridge.hoverRegion(`board://r/${region.x},${region.y},${region.w},${region.h}`, origin); + }, + { bridgeUrl, region: initial.region, origin: initial.origin }, + ); + await page.locator(".region-mark.hover").waitFor({ state: "visible" }); + await page.locator(".region-arrow line").waitFor({ state: "attached" }); + + const ordinary = await page.evaluate(() => { + const mark = document.querySelector(".region-mark.hover"); + const arrow = document.querySelector(".region-arrow"); + const line = arrow?.querySelector("line"); + const ui = document.querySelector(".tlui-layout"); + return { + mark: mark?.getBoundingClientRect().toJSON(), + arrowCount: document.querySelectorAll(".region-arrow").length, + from: line + ? { x: Number(line.getAttribute("x1")), y: Number(line.getAttribute("y1")) } + : null, + parent: arrow?.parentElement?.tagName, + position: arrow ? getComputedStyle(arrow).position : null, + zIndex: arrow ? Number(getComputedStyle(arrow).zIndex) : 0, + uiZIndex: ui ? Number(getComputedStyle(ui).zIndex) : 0, + }; + }); + assert(ordinary.mark, "Ordinary hover did not highlight the target region"); + assert( + ordinary.arrowCount === 1, + `Ordinary hover rendered ${ordinary.arrowCount} arrows instead of one`, + ); + assert( + ordinary.from?.x === initial.origin.x && ordinary.from?.y === initial.origin.y, + "The ordinary hover arrow did not start at the supplied origin", + ); + assert(ordinary.parent === "BODY", "The reference overlay was not portaled to BODY"); + assert(ordinary.position === "fixed", "The reference overlay does not use fixed positioning"); + assert( + ordinary.zIndex > ordinary.uiZIndex, + `Reference overlay z-index ${ordinary.zIndex} is not above tldraw UI ${ordinary.uiZIndex}`, + ); + await page.screenshot({ path: screenshot }); + + const offscreen = { + x: Math.round(initial.region.x + 5000), + y: Math.round(initial.region.y + 3500), + w: initial.region.w, + h: initial.region.h, + }; + await page.evaluate( + async ({ bridgeUrl, offscreen, origin }) => { + const bridge = await import(bridgeUrl); + bridge.hoverRegion( + `board://r/${offscreen.x},${offscreen.y},${offscreen.w},${offscreen.h}`, + origin, + ); + }, + { bridgeUrl, offscreen, origin: initial.origin }, + ); + await page.locator(".region-arrow-edge").waitFor({ state: "visible" }); + assert( + (await page.locator(".region-mark").count()) === 0, + "The highlight box remains visible for an offscreen target", + ); + + const edge = await page.evaluate( + ({ initialRegion, initialMark, offscreen }) => { + const group = document.querySelector(".region-arrow-edge"); + const arrow = group?.closest(".region-arrow"); + const board = document.querySelector(".tl-canvas")?.getBoundingClientRect(); + const transform = group?.getAttribute("transform") ?? ""; + const match = /translate\(([-\d.]+) ([-\d.]+)\) rotate\(([-\d.]+)\)/.exec(transform); + if (!group || !arrow || !board || !match) return null; + const x = Number(match[1]); + const y = Number(match[2]); + const rotation = Number(match[3]); + const zoom = initialMark.width / initialRegion.w; + const targetCenter = { + x: initialMark.x + (offscreen.x - initialRegion.x + offscreen.w / 2) * zoom, + y: initialMark.y + (offscreen.y - initialRegion.y + offscreen.h / 2) * zoom, + }; + const expected = (Math.atan2(targetCenter.y - y, targetCenter.x - x) * 180) / Math.PI; + const box = group.getBoundingClientRect(); + const circle = group.querySelector("circle"); + return { + box: box.toJSON(), + radius: Number(circle?.getAttribute("r")), + x, + y, + rotation, + expected, + board: board.toJSON(), + zIndex: Number(getComputedStyle(arrow).zIndex), + uiZIndex: Number(getComputedStyle(document.querySelector(".tlui-layout")).zIndex), + }; + }, + { initialRegion: initial.region, initialMark: ordinary.mark, offscreen }, + ); + assert(edge, "The offscreen edge arrow could not be inspected"); + assert( + edge.x >= edge.board.left + 42 && edge.x <= edge.board.right - 42, + "The edge arrow center is not clamped horizontally inside the board", + ); + assert( + edge.y >= edge.board.top + 42 && edge.y <= edge.board.bottom - 42, + "The edge arrow center is not clamped vertically inside the board", + ); + assert( + edge.radius === 30 && edge.box.width >= 58 && edge.box.height >= 58, + `Incorrect edge arrow size: r=${edge.radius}, ${edge.box.width}x${edge.box.height}`, + ); + assert( + edge.box.x >= edge.board.left && + edge.box.y >= edge.board.top && + edge.box.right <= edge.board.right && + edge.box.bottom <= edge.board.bottom, + "The edge arrow is not fully contained within the board", + ); + assert( + angleDifference(edge.rotation, edge.expected) < 3, + `Edge arrow direction differs by ${angleDifference(edge.rotation, edge.expected)} degrees`, + ); + assert(edge.zIndex > edge.uiZIndex, "The offscreen arrow is not above the tldraw UI"); + + const cameraAfter = await page.evaluate(() => ({ + canvas: getComputedStyle(document.querySelector(".tl-canvas")).transform, + shapes: getComputedStyle(document.querySelector('.tl-shape[style*="display: block"]')) + .transform, + })); + assert( + JSON.stringify(cameraAfter) === JSON.stringify(cameraBefore), + "The camera moved during hover", + ); + await page.screenshot({ path: offscreenScreenshot }); + + await page.evaluate(async (bridgeUrl) => { + const bridge = await import(bridgeUrl); + bridge.hoverRegion(null); + }, bridgeUrl); + await page.locator(".region-arrow").waitFor({ state: "detached" }); + assert( + (await page.locator(".region-mark").count()) === 0, + "The overlay remains after hover is cleared", + ); + + console.log( + JSON.stringify({ ok: true, ordinary, edge, screenshot, offscreenScreenshot }, null, 2), + ); +} finally { + await browser.close(); +} diff --git a/fork/whiteboard/run-t3.md b/fork/whiteboard/run-t3.md new file mode 100644 index 0000000000000..5d69f7d035df1 --- /dev/null +++ b/fork/whiteboard/run-t3.md @@ -0,0 +1,58 @@ +# Run the embedded chat + +The whiteboard is `fork/whiteboard/` of a T3 Code fork. The T3 Code at the repository root, two levels up, carries the whiteboard's embedding changes, and the whiteboard's chat panel is an iframe that shows it. That instance keeps its state under `~/.whiteboard/t3-userdata` and reads nothing from a personal T3 installation (`~/.t3`, port 3773, the `t3code` service). + +Browsers reach it only through the whiteboard's `webPort`. The whiteboard proxies `/chat/` on `webPort` to `chatPort`, along with the chat's own `/api`, `/ws`, and `/.well-known` paths, so `chatPort` stays bound to `127.0.0.1` and is never exposed. This instance accepts every browser without pairing, so expose `webPort` only to people who may use the chat. + +## Install and build + +Run once, and again after changing anything under `apps/web` or `packages/`. The server serves the built output. `VITE_T3_WHITEBOARD=1` selects the whiteboard build: it is configured for the `/chat/` prefix, so its pages load only through the whiteboard's `webPort`; opening `chatPort` straight in a browser fails to fetch the assets. A build without the variable is a normal T3 Code build and does not work behind `/chat/`. + +```bash +cd ../.. # the repository root +pnpm install +VITE_T3_WHITEBOARD=1 pnpm --dir apps/web run build +``` + +## Run as a systemd user service + +`run-t3.sh` starts the T3 Code of the repository it sits in. Three environment variables override its defaults: `T3_PORT` (default `6070`, must equal `chatPort` in `~/.whiteboard/config.json`), `T3_DATA` (default `~/.whiteboard/t3-userdata`), and `T3_PROJECT` (default the repository root). `T3_PROJECT` is only the server's working directory: with auto-bootstrap off it opens no project, and it does not choose a board. + +Save this as `~/.config/systemd/user/wb-t3.service`, with `WorkingDirectory` set to the repository root: + +```ini +[Unit] +Description=Whiteboard embedded T3 Code + +[Service] +WorkingDirectory=/path/to/t3code +ExecStart=/usr/bin/env bash fork/whiteboard/run-t3.sh +Restart=always +RestartSec=5 + +[Install] +WantedBy=default.target +``` + +Then enable it. `enable-linger` keeps user services running after you log out. + +```bash +loginctl enable-linger "$USER" +systemctl --user daemon-reload +systemctl --user enable --now wb-t3 +``` + +Restart after a rebuild with `systemctl --user restart wb-t3`; read its log with `journalctl --user -u wb-t3 -f`. + +## Embedding changes to T3 Code + +The fork's T3 Code differs from upstream in the points below for the whiteboard's sake. Keep this list current when merging upstream. Server points are switched by environment variables that `run-t3.sh` sets. Web points are switched at build time by `VITE_T3_WHITEBOARD=1`, read by `apps/web/vite/fork/whiteboardBuild.ts` (Vite) and `apps/web/src/fork/whiteboard/build.ts` (client code; `isEmbeddedInWhiteboard()` adds the check that the page is inside the board's iframe). Whiteboard-only client code lives in `apps/web/src/fork/whiteboard/`; upstream files hold only the call or import. + +- No login, behind a switch. With `T3CODE_UNSAFE_NO_AUTH=1` (set by `run-t3.sh`), requests without a credential, or with a rejected one, get a session with the standard client scopes (`unsafe-no-auth`; no admin scopes such as `review:write`) instead of a 401, websocket tickets issued to that session are accepted, and its websocket does not wait for revocation (the session has no stored row, so upstream's revocation check would end the socket at once). Without the variable upstream auth applies unchanged, so upstream's auth tests stay as they are. Files: `apps/server/src/auth/EnvironmentAuth.ts`, `apps/server/src/ws.ts` (one added test in `EnvironmentAuth.test.ts`). +- Whiteboard skills for agents. `T3CODE_CLAUDE_PLUGIN_ROOT` is loaded as a local Claude plugin; `T3CODE_CODEX_SKILL_ROOT` is registered with each Codex app-server through `skills/extraRoots/set`. Files: `apps/server/src/orchestration-v2/Adapters/ClaudeAdapterV2.ts` (`makeClaudeQueryOptions`, with test), `CodexAdapterV2.ts` (after `initialize`), `apps/server/src/provider/codexLaunchArgs.ts` (`resolveCodexSkillRoot`, with test), `apps/server/src/provider/CodexProvider.ts` (probe client). `run-t3.sh` sets both variables, puts `tools/bin` on `PATH`, and sets `BASH_ENV` to `tools/agent-env.sh`. +- Served under `/chat/` (whiteboard build). The Vite plugin sets `base: "/chat/"` and recolours `manifest.webmanifest` from `#161616` to the board page's `#0a0a0a`; the router gets `basepath: "/chat"`. The manifest's icon paths are relative in every build. Files: `apps/web/vite/fork/whiteboardBuild.ts`, `apps/web/vite.config.ts` (plugin entry), `apps/web/src/router.ts`, `apps/web/public/manifest.webmanifest`. +- Whiteboard links (every build). `board://` links in assistant markdown are allowed, rendered with hover and click messages to the parent window (`wb-hover`, `wb-highlight`), and `[label](board://...)` mention chips in the composer show the label and report hover. Files: `apps/web/src/fork/whiteboard/markdown-whiteboard.ts` (with test), `apps/web/src/components/ChatMarkdown.tsx`, `packages/shared/src/markdownPipeline.ts` (`board` href protocol), `apps/web/src/components/ComposerPromptEditorTiptap.tsx`, `packages/shared/src/composerInlineTokens.ts` (board mention token, with test). +- Parent-window messages (whiteboard build, inside the iframe). The chat posts `wb-project` (workspace root and thread key) when the active thread changes, inserts a reference into the composer on a `wb-insert-ref` message, and follows the board panel's state: it asks with `wb-layout-get`, the parent answers with `wb-layout` (`boardHidden`), and while the board is collapsed a Board button before the sidebar trigger posts `wb-show-board`. Files: `apps/web/src/fork/whiteboard/useWhiteboardProject.ts` (called from `components/ChatView.tsx`), `useWhiteboardInsertRef.ts` (called from `components/chat/ChatComposer.tsx`), `WhiteboardSidebar.tsx` (hooks and Board button, used by `components/AppSidebarLayout.tsx`). +- Iframe layout (whiteboard build). The composer never switches to its mobile layout. Standalone, the sidebar starts open only when the window fits it beside the minimum thread width; inside the iframe it starts closed, unless the first `wb-layout` report says the board is hidden and the sidebar fits. Files: `apps/web/src/components/chat/ChatComposer.tsx` (`isMobileViewport`), `apps/web/src/components/AppSidebarLayout.tsx` (`defaultOpen`), `apps/web/src/fork/whiteboard/WhiteboardSidebar.tsx`. +- New-thread landing. `run-t3.sh` sets `T3CODE_AUTO_BOOTSTRAP_PROJECT_FROM_CWD=false` so each page load opens the new-thread page rather than the oldest thread of the project. +- Board of the calling chat. `run-t3.sh` exports `WB_CHAT_PID`, the server's own PID, which agents inherit. `wb` walks up its parent processes to the server's child, the agent, and uses that agent's working directory to pick the board. diff --git a/fork/whiteboard/run-t3.sh b/fork/whiteboard/run-t3.sh new file mode 100755 index 0000000000000..32903a58efd30 --- /dev/null +++ b/fork/whiteboard/run-t3.sh @@ -0,0 +1,36 @@ +#!/usr/bin/env bash +# Starts the whiteboard's own T3 Code instance: the one at the root of the repository this +# directory sits in. +set -euo pipefail + +WB_DIR=$(cd "$(dirname "${BASH_SOURCE[0]}")" && pwd) +T3_DIR=$(cd "$WB_DIR/../.." && pwd) +T3_DATA=${T3_DATA:-$HOME/.whiteboard/t3-userdata} +T3_PORT=${T3_PORT:-6070} +T3_PROJECT=${T3_PROJECT:-$T3_DIR} + +mkdir -p "$T3_DATA" +# Inherited T3 settings would point this instance at the personal installation. +unset T3_SERVICE_LAUNCHER_CONTEXT T3_BOOT_SERVICE_UNIT \ + T3CODE_PORT T3CODE_HOST T3CODE_HOME T3CODE_NO_BROWSER + +# Agents inherit PATH, while Codex app-servers register the adjacent skill root at startup. +export PATH="$WB_DIR/tools/bin:$PATH" +# Claude names a manifest-less plugin after its directory; `whiteboard` keeps the skill id. +export T3CODE_CLAUDE_PLUGIN_ROOT="$WB_DIR" +export T3CODE_CODEX_SKILL_ROOT="$WB_DIR/skills" +export BASH_ENV="$WB_DIR/tools/agent-env.sh" +# Web mode bootstraps a thread for the cwd project and every page load jumps +# into it. The whiteboard wants the new-thread landing instead. +export T3CODE_AUTO_BOOTSTRAP_PROJECT_FROM_CWD=false +export T3CODE_UNSAFE_NO_AUTH=1 +# exec keeps this PID, so `wb` finds its agent among the server's children. +export WB_CHAT_PID=$$ + +exec node "$T3_DIR/apps/server/src/bin.ts" start \ + --mode web \ + --host 127.0.0.1 \ + --port "$T3_PORT" \ + --base-dir "$T3_DATA" \ + --no-browser \ + "$T3_PROJECT" diff --git a/fork/whiteboard/server/config.mjs b/fork/whiteboard/server/config.mjs new file mode 100644 index 0000000000000..e7e8d1a3b9619 --- /dev/null +++ b/fork/whiteboard/server/config.mjs @@ -0,0 +1,22 @@ +// Loads the service configuration, merging ~/.whiteboard/config.json over defaults. +import * as NodeFS from "node:fs"; +import * as NodeOS from "node:os"; + +const base = `${NodeOS.homedir()}/.whiteboard`; +let overrides = {}; +try { + overrides = JSON.parse(NodeFS.readFileSync(`${base}/config.json`, "utf8")); +} catch (error) { + if (/** @type {NodeJS.ErrnoException} */ (error).code !== "ENOENT") throw error; +} +/** @type {{dataDir: string, host: string, port: number, webPort: number, chatPort: number, allowedHosts: string[], openViews: Record}} */ +export const config = { + dataDir: `${base}/data`, + host: "127.0.0.1", + port: 6060, + webPort: 6061, + chatPort: 6070, + allowedHosts: [], + openViews: {}, + ...overrides, +}; diff --git a/fork/whiteboard/server/main.ts b/fork/whiteboard/server/main.ts new file mode 100644 index 0000000000000..59e65205ceb2f --- /dev/null +++ b/fork/whiteboard/server/main.ts @@ -0,0 +1,136 @@ +// Runs the multi-room sync service and exposes room-addressable board HTTP endpoints. +import * as NodeHttp from "node:http"; +import * as NodeFSP from "node:fs/promises"; +import * as NodeCrypto from "node:crypto"; +import * as NodeStreamConsumers from "node:stream/consumers"; +import { InMemorySyncStorage, TLSocketRoom, type RoomSnapshot } from "@tldraw/sync-core"; +import { createTLSchema, type TLRecord } from "@tldraw/tlschema"; +import { WebSocketServer } from "ws"; +import { config } from "./config.mjs"; +import { normalizeMath } from "../web/mathsplit"; +import { boardRoom } from "../web/room.mjs"; + +const PERSIST_INTERVAL_MS = 30_000; +const schema = createTLSchema(); +type ActiveRoom = { + room: TLSocketRoom; + storage: InMemorySyncStorage; + save: Promise; + snapshot: string; +}; +const rooms = new Map>(); + +async function openRoom(name: string): Promise { + const slug = boardRoom(name); + let pending = rooms.get(slug); + if (!pending) { + pending = (async () => { + const snapshot = `${config.dataDir}/room-${slug}.json`; + let initial: RoomSnapshot | undefined; + try { + initial = JSON.parse(await NodeFSP.readFile(snapshot, "utf8")) as RoomSnapshot; + } catch (error) { + if ((error as NodeJS.ErrnoException).code !== "ENOENT") throw error; + } + const storage = new InMemorySyncStorage({ snapshot: initial }); + return { + storage, + room: new TLSocketRoom({ storage, schema }), + save: Promise.resolve(), + snapshot, + }; + })(); + rooms.set(slug, pending); + } + return pending; +} + +function persist(active: ActiveRoom) { + active.save = active.save + .catch(() => undefined) + .then(async () => { + const temp = `${active.snapshot}.tmp`; + await NodeFSP.writeFile(temp, JSON.stringify(active.storage.getSnapshot())); + await NodeFSP.rename(temp, active.snapshot); + }); + return active.save; +} + +await NodeFSP.mkdir(config.dataDir, { recursive: true }); +setInterval( + () => + void Promise.all([...rooms.values()].map(async (room) => persist(await room))).catch( + console.error, + ), + PERSIST_INTERVAL_MS, +).unref(); + +function json(res: NodeHttp.ServerResponse, status: number, value: unknown) { + res.writeHead(status, { "content-type": "application/json" }); + res.end(JSON.stringify(value)); +} + +const server = NodeHttp.createServer(async (req, res) => { + try { + const url = new URL(req.url ?? "/", "http://localhost"); + const active = await openRoom(url.searchParams.get("room") ?? "main"); + if (req.method === "GET" && url.pathname === "/api/board") + return json( + res, + 200, + active.room.getCurrentSnapshot().documents.map((entry) => entry.state), + ); + if (req.method !== "POST" || url.pathname !== "/api/board/edit") + return json(res, 404, { error: "not found" }); + const body = JSON.parse(await NodeStreamConsumers.text(req)) as { + puts: Array<{ typeName?: string; props?: { richText?: unknown } }>; + deletes: string[]; + }; + const puts = body.puts.map((record) => { + const candidate = structuredClone(record); + if (candidate.typeName === "shape" && candidate.props?.richText) + candidate.props.richText = normalizeMath(candidate.props.richText); + const recordType = + candidate.typeName && schema.types[candidate.typeName as keyof typeof schema.types]; + if (!recordType) throw new Error(`unknown record type: ${String(candidate.typeName)}`); + return recordType.validate(candidate) as TLRecord; + }); + await active.room.updateStore((store) => { + for (const record of puts) store.put(record); + for (const id of body.deletes) store.delete(id); + }); + await persist(active); + json(res, 200, { ok: true }); + } catch (error) { + json(res, 400, { error: error instanceof Error ? error.message : String(error) }); + } +}); + +const sockets = new WebSocketServer({ noServer: true }); +server.on("upgrade", (req, socket, head) => { + const url = new URL(req.url ?? "/", "http://localhost"); + if (!url.pathname.startsWith("/connect/")) return socket.destroy(); + const roomName = url.pathname.slice("/connect/".length); + void openRoom(roomName) + .then((active) => + sockets.handleUpgrade(req, socket, head, (ws) => + active.room.handleSocketConnect({ + sessionId: url.searchParams.get("sessionId") ?? NodeCrypto.randomUUID(), + socket: ws, + }), + ), + ) + .catch(() => socket.destroy()); +}); + +async function stop() { + const active = await Promise.all(rooms.values()); + await Promise.all(active.map(persist)); + active.forEach(({ room }) => room.close()); + server.close(() => process.exit(0)); +} +process.on("SIGINT", () => void stop()); +process.on("SIGTERM", () => void stop()); +server.listen(config.port, config.host, () => + console.log(`whiteboard sync listening on ${config.host}:${config.port}`), +); diff --git a/fork/whiteboard/skills/use-whiteboard/SKILL.md b/fork/whiteboard/skills/use-whiteboard/SKILL.md new file mode 100644 index 0000000000000..1e82cb694552b --- /dev/null +++ b/fork/whiteboard/skills/use-whiteboard/SKILL.md @@ -0,0 +1,39 @@ +--- +name: use-whiteboard +description: Read and draw on the shared whiteboard next to the chat. Use when the user asks to draw, sketch, or put something on the board, when the user asks what is on the board, when a message contains a `board://` link, or when you need the conclusions the user and earlier agents recorded on the board for this project. +--- + +# Use the whiteboard + +The whiteboard is a tldraw board the user sees next to this chat. Each project has its own room, the board content `wb` reads and writes for that project. The room holds the conclusions the user and earlier agents reached for this project, so read it before you carry that work further. + +Work on the board with the `wb` command. `wb --help` prints the syntax. Every command's options and examples are in [commands.md](commands.md). A command that succeeds prints one JSON value on stdout. + +## Room + +`wb` picks the room of the chat that runs it, from that chat's project directory, so it lands on the same board from any directory. Outside a chat it uses the directory it runs in. Inside a git repository the room comes from the main checkout of that repository, so a subdirectory and a linked worktree get the same room as the project. + +## Steps + +1. Read the board with `wb read`. It prints one entry per shape with its id, type, position, size, text, and style. Give it a board link (defined below) to get the shapes in that region. A hand-drawn shape has no text. To see a drawing, take a picture with `wb shot` and open the PNG. +2. Draw with `wb write`. You set every position. Read the coordinates that step 1 printed, then place new content below or to the right of the existing shapes. +3. Check the result before you reply: take a picture of the region you changed with `wb shot`, open the PNG, and fix what is wrong. Look for new content on top of existing shapes, label or note text that runs past its box, a formula shown as raw `$...$` text, an arrow whose end misses its target, and a wrapped line that leaves one word alone on the last line, which a different `--size` width would fix. +4. Refer to what you drew with a board link. + +Edit and delete the shapes you created; their ids start with `shape:wb-`. Change a shape the user drew when the user asks for it. + +## Board links + +A board link names a rectangle of the board: `board://r/,,,`, four integers in the same coordinates that `wb read` prints and `--at` takes. When the user selects a region, the chat receives a Markdown link such as `[Area 1](board://r/120,80,300,180)`. Keep that Markdown form in replies, so the user can click it. `wb read` and `wb shot` accept a board link as their region. + +## Pages + +A board can have several pages, which the user switches in the page menu at the top left. `wb pages` lists them. Without a region or `--page`, `wb read` lists the shapes of every page, and each entry names its `page`. `--page` picks one page for `read`, `write`, and `shot`, by number from 1, by name, or by id. Without it, `write` and `shot` use the first page. A board link to a region on any page but the first carries the page, as `board://p//r/,,,`, and `wb read` and `wb shot` follow that page. When the user works on a page other than the first, pass that page to every command. + +## Mathematics + +In shape text, write each formula as `$...$` with no line break inside it. The board renders those spans. In chat replies, `$...$` renders inline and `$$...$$` as a block. + +## Beyond plain shapes + +`wb read` lists every shape, including frames, groups, and images, with the fields plain shapes share. `wb write` creates and edits plain shapes. Everything else, such as a frame's name, an image, arrow bindings, custom `meta`, and several records in one atomic batch, goes through the raw record commands in [raw-records.md](raw-records.md). diff --git a/fork/whiteboard/skills/use-whiteboard/commands.md b/fork/whiteboard/skills/use-whiteboard/commands.md new file mode 100644 index 0000000000000..604c89d9f62f7 --- /dev/null +++ b/fork/whiteboard/skills/use-whiteboard/commands.md @@ -0,0 +1,82 @@ +# `wb` command reference + +Every command accepts `--room `, or the room name itself. Use it when the board shows a different project than the directory `wb` runs in. + +## `wb pages` + +``` +wb pages +``` + +Prints one entry per page in page-menu order: `{page, id, name, shapes}`. `page` is the number from 1, and `shapes` counts the shapes on it. Every `--page` option below takes that number, the name, or the id. + +## `wb read` + +``` +wb read [x,y,w,h | board://r/x,y,w,h] [--page P] +``` + +Prints one entry per shape: `{id, type, x, y, w, h, text, rotation, opacity, weight, color, fill, dash, font, page}`. `page` is the name of the page the shape is on. Lines and arrows also carry `start` and `end` points in the same coordinates as `x` and `y`. `rotation` is in degrees. Fields that do not apply to a shape are omitted. + +Without a region or `--page`, the command prints the shapes of every page. With a region, it prints every shape on the region's page whose bounding box overlaps the region. A region's page is the one its board link names, else `--page`, else the first page. The box of a text shape is an estimate, because its height is not stored. + +```bash +wb read 'board://r/120,80,300,180' +``` + +## `wb write` + +``` +wb write [--page P] [--id ID] [--type text|rect|ellipse|line|arrow|note] --at x,y [--to x2,y2] + [--text "..."] [--size w,h] [--color C] [--fill F] [--dash D] + [--weight s|m|l|xl] [--font draw|sans|serif|mono] [--rotate degrees] + [--opacity 0..1] [--order front|back] +``` + +- `--at` is the top-left corner, or the start point of a line or arrow. A new shape requires it. +- `--type` defaults to `text`. +- `--page` puts a new shape on that page; the default is the first page. With `--id`, it moves the shape to that page. +- `--size w,h` sets the width and height of a `rect` or `ellipse`. `--size w` sets the width of a `text` shape, and the text wraps at that width. `--to` sets the end point of a `line` or `arrow`. +- `--text` is the body of a `text` or `note` shape, or the label of a `rect`, `ellipse`, or `arrow`. `$...$` spans render as mathematics. Each newline starts a new line. A run of lines that begin with `- ` becomes one bulleted list. +- `--color`, `--fill`, and `--dash` take tldraw style names. Colors: `black`, `grey`, `light-violet`, `violet`, `blue`, `light-blue`, `yellow`, `orange`, `green`, `light-green`, `light-red`, `red`, `white`. Fills: `none`, `semi`, `solid`, `pattern`, `fill`, `lined-fill`. Dashes: `draw`, `solid`, `dashed`, `dotted`, `none`. `--fill` applies to `rect`, `ellipse`, and `arrow`. `--dash` also applies to `line`. +- `--weight` is tldraw's `size` style. It scales the font size and the stroke width. +- `--rotate` takes degrees clockwise. +- `--order front` or `--order back` moves the shape above or below all other shapes in the room. + +The command prints `{id, x, y}`, plus `w` and `h` when the shape has them. + +```bash +wb write --type text --at 120,80 --text 'Bound: $\omega < 2.373$' +wb write --type rect --at 120,200 --size 240,120 --text 'Fast matrix multiplication' --color blue +wb write --type arrow --at 380,260 --to 620,260 --color violet +wb write --type note --at 700,80 --text 'Check the exponent' --color yellow --rotate 8 +wb write --type text --at 120,420 --text 'Headline' --weight xl --opacity 0.6 --order front +wb write --type note --at 700,300 --text $'Todo\n- read the draft\n- send it' --color yellow +``` + +With `--id`, the command edits that shape. It changes only the options named on the command line. So `--at` alone moves the shape, and `--color` alone recolors it. For a line or arrow, `--at` and `--to` move the end points. + +```bash +wb write --id shape:wb-abc123 --color orange +``` + +## `wb delete` + +``` +wb delete +``` + +Deletes the shapes with those ids. + +## `wb shot` + +``` +wb shot [x,y,w,h | board://r/x,y,w,h] [--page P] [--out file] +``` + +Renders one page and writes a PNG. Prints `{file}`. The page is the one the board link names, else `--page`, else the first page. Without a region, the image fits the whole content of the page. With a region, the view frames that region. `--out` defaults to a file in the temporary directory. + +```bash +wb shot 'board://r/120,80,300,180' --out /tmp/area1.png +wb shot --page 2 +``` diff --git a/fork/whiteboard/skills/use-whiteboard/raw-records.md b/fork/whiteboard/skills/use-whiteboard/raw-records.md new file mode 100644 index 0000000000000..6db642af7986c --- /dev/null +++ b/fork/whiteboard/skills/use-whiteboard/raw-records.md @@ -0,0 +1,53 @@ +# Raw record access + +The raw commands read and write tldraw records directly. + +``` +wb read-raw +wb write-raw # reads {"puts": [...], "deletes": [...]} from stdin +``` + +`read-raw` prints every stored record in the room, including the document and page records. Shapes are the records whose `typeName` is `"shape"`. + +`write-raw` reads `puts` and `deletes` from stdin. Each entry of `puts` is a complete tldraw record. Each entry of `deletes` is a record id. The server validates every put, then applies the batch atomically. If any put fails validation, `wb` prints tldraw's error on stderr and exits 1, and the room is unchanged. + +To change anything `wb read` and `wb write` leave out: read the record with `read-raw`, edit it, and send it back with `write-raw`. For a new record, copy the field layout from a record of the same kind, or from the tldraw schema. Use `shape:wb-` as the id of a new shape. + +```bash +wb write-raw <<'JSON' +{ + "puts": [{ + "id": "shape:wb-text-001", + "typeName": "shape", + "type": "text", + "parentId": "page:page", + "index": "a1", + "x": 120, + "y": 120, + "rotation": 0, + "isLocked": false, + "opacity": 1, + "meta": {}, + "props": { + "color": "black", + "size": "m", + "w": 320, + "font": "draw", + "textAlign": "start", + "autoSize": true, + "scale": 1, + "richText": { + "type": "doc", + "attrs": {"dir": "auto"}, + "content": [{ + "type": "paragraph", + "attrs": {"dir": "auto"}, + "content": [{"type": "text", "text": "Text written by an agent"}] + }] + } + } + }], + "deletes": [] +} +JSON +``` diff --git a/fork/whiteboard/tools/agent-env.sh b/fork/whiteboard/tools/agent-env.sh new file mode 100644 index 0000000000000..9438b07742ea7 --- /dev/null +++ b/fork/whiteboard/tools/agent-env.sh @@ -0,0 +1,7 @@ +# Login shells may replace the inherited PATH; restore the whiteboard CLI directory afterward. +WHITEBOARD_TOOLS_DIR=$(cd "$(dirname "${BASH_SOURCE[0]}")" && pwd) +case ":$PATH:" in + *":$WHITEBOARD_TOOLS_DIR/bin:"*) ;; + *) export PATH="$WHITEBOARD_TOOLS_DIR/bin:$PATH" ;; +esac +unset WHITEBOARD_TOOLS_DIR diff --git a/fork/whiteboard/tools/bin/wb b/fork/whiteboard/tools/bin/wb new file mode 100755 index 0000000000000..396f2c5468977 --- /dev/null +++ b/fork/whiteboard/tools/bin/wb @@ -0,0 +1,3 @@ +#!/usr/bin/env bash +# Wrapper so `wb` on PATH runs this repo's tools/wb.mjs regardless of symlinks. +exec node "$(dirname "$(readlink -f "$0")")/../wb.mjs" "$@" diff --git a/fork/whiteboard/tools/wb.mjs b/fork/whiteboard/tools/wb.mjs new file mode 100755 index 0000000000000..5f6eda7185730 --- /dev/null +++ b/fork/whiteboard/tools/wb.mjs @@ -0,0 +1,560 @@ +#!/usr/bin/env node +// Agent-facing whiteboard CLI: read, write and delete board shapes, and screenshot a board region. +import * as NodeChildProcess from "node:child_process"; +import * as NodeFS from "node:fs"; +import * as NodeOS from "node:os"; +import * as NodePath from "node:path"; +import * as NodeStreamConsumers from "node:stream/consumers"; +import * as NodeUtil from "node:util"; +import { getIndexAbove, getIndexBelow } from "@tldraw/utils"; +import { config } from "../server/config.mjs"; +import { boardRoom } from "../web/room.mjs"; + +const api = `http://${config.host}:${config.port}`; +const web = `http://${config.host}:${config.webPort}`; + +function fail(message) { + process.stderr.write(`wb: ${message}\n`); + process.exit(1); +} + +const usage = `usage: + wb pages [--room R] + wb read [x,y,w,h | board://r/x,y,w,h] [--page P] [--room R] + wb write [--room R] [--page P] [--id ID] [--type text|rect|ellipse|line|arrow|note] --at x,y [--to x2,y2] + [--text "..."] [--size w,h | w] [--color C] [--fill F] [--dash D] + [--weight s|m|l|xl] [--font draw|sans|serif|mono] [--rotate degrees] + [--opacity 0..1] [--order front|back] + wb delete [--room R] + wb shot [x,y,w,h | board://r/x,y,w,h] [--page P] [--room R] [--out file] + wb read-raw [--room R] + wb write-raw [--room R] # reads {"puts":[...],"deletes":[...]} from stdin`; + +if (process.argv.includes("--help")) { + process.stdout.write(`${usage}\n`); + process.exit(0); +} + +const { values: flags, positionals } = (() => { + try { + return NodeUtil.parseArgs({ + allowPositionals: true, + options: { + room: { type: "string" }, + id: { type: "string" }, + type: { type: "string" }, + at: { type: "string" }, + to: { type: "string" }, + text: { type: "string" }, + size: { type: "string" }, + color: { type: "string" }, + fill: { type: "string" }, + dash: { type: "string" }, + out: { type: "string" }, + weight: { type: "string" }, + font: { type: "string" }, + rotate: { type: "string" }, + opacity: { type: "string" }, + order: { type: "string" }, + page: { type: "string" }, + }, + }); + } catch (error) { + return fail(`${error.message}\n${usage}`); + } +})(); + +// The board follows the chat's project directory, so from any directory or a linked worktree wb must +// still land in the main checkout's room. The chat server (WB_CHAT_PID) starts each agent in its chat's +// project directory; the shells below the agent may have moved elsewhere. +function agentDir() { + const chat = process.env.WB_CHAT_PID; + if (!chat) return process.cwd(); + try { + for (let pid = String(process.pid); pid !== "1";) { + const parent = NodeFS.readFileSync(`/proc/${pid}/stat`, "utf8") + .split(") ") + .at(-1) + .split(" ")[1]; + if (parent === chat) return NodeFS.readlinkSync(`/proc/${pid}/cwd`); + pid = parent; + } + } catch {} + return process.cwd(); +} +function projectDir() { + const cwd = agentDir(); + try { + const gitDir = NodeChildProcess.execFileSync( + "git", + ["rev-parse", "--path-format=absolute", "--git-common-dir"], + { cwd, stdio: ["ignore", "pipe", "ignore"] }, + ) + .toString() + .trim(); + return NodePath.dirname(gitDir); + } catch { + return cwd; + } +} +const room = flags.room ? boardRoom(flags.room) : boardRoom(projectDir()); + +const point = (value, flag) => { + const parts = String(value).split(",").map(Number); + if (parts.length !== 2 || parts.some((n) => !Number.isFinite(n))) + fail(`--${flag} expects two numbers, for example --${flag} 120,80`); + return parts; +}; + +// A board link on a page other than the first names it: board://p//r/x,y,w,h. +const region = (value) => { + const match = /^(?:board:\/\/(?:p\/([\w-]+)\/)?r\/)?(-?\d+),(-?\d+),(\d+),(\d+)$/.exec(value); + if (!match) fail("region must be x,y,w,h or board://r/x,y,w,h"); + const [x, y, w, h] = match.slice(2, 6).map(Number); + return { x, y, w, h, page: match[1] }; +}; + +const pagesOf = (board) => + board.filter((record) => record.typeName === "page").sort((a, b) => (a.index < b.index ? -1 : 1)); +// --page takes a page number counted from 1, a page name, or a page id; without one it is the first page. +function pageOf(board, value) { + const pages = pagesOf(board); + if (value === undefined) return pages[0]; + const name = value.toLowerCase(); + const page = /^\d+$/.test(value) + ? pages[Number(value) - 1] + : pages.find( + (p) => p.id === value || p.id === `page:${value}` || p.name.toLowerCase() === name, + ); + return ( + page ?? + fail(`no page ${value}; pages: ${pages.map((p, i) => `${i + 1} "${p.name}"`).join(", ")}`) + ); +} +// A shape inside a frame or group has that container as parent; its page is at the top of the chain. +function pageIdOf(byId, shape) { + let id = shape.parentId; + while (!id.startsWith("page:")) id = byId.get(id).parentId; + return id; +} + +async function loadBoard() { + const response = await fetch(`${api}/api/board?room=${room}`); + if (!response.ok) fail(`board read failed: HTTP ${response.status}`); + return response.json(); +} + +async function editBoard(puts, deletes) { + const response = await fetch(`${api}/api/board/edit?room=${room}`, { + method: "POST", + headers: { "content-type": "application/json" }, + body: JSON.stringify({ puts, deletes }), + }); + if (!response.ok) + fail( + `board edit failed: ${(await response.json().catch(() => ({}))).error ?? `HTTP ${response.status}`}`, + ); +} + +// Rich text uses the same document shape the board writes; the server turns $...$ spans into math nodes. +const paragraph = (text) => ({ + type: "paragraph", + attrs: { dir: "auto" }, + ...(text ? { content: [{ type: "text", text }] } : {}), +}); +const richText = (text) => { + const content = []; + for (const line of text.split("\n")) { + // Each line is its own paragraph, except that a run of "- " lines collects into one bulleted list. + if (!line.startsWith("- ")) { + content.push(paragraph(line)); + continue; + } + const item = { type: "listItem", content: [paragraph(line.slice(2))] }; + if (content.at(-1)?.type === "bulletList") content.at(-1).content.push(item); + else content.push({ type: "bulletList", content: [item] }); + } + return { type: "doc", attrs: { dir: "auto" }, content }; +}; + +function plainText(rich) { + const visit = (node) => { + if (node.type === "text") return node.text ?? ""; + if (node.type === "hardBreak") return "\n"; + if (node.type === "math_inline") return `$${(node.content ?? []).map(visit).join("")}$`; + const inner = (node.content ?? []).map(visit).join(""); + if (node.type === "listItem") return `- ${inner}`; + return inner + (node.type === "paragraph" ? "\n" : ""); + }; + return rich ? visit(rich).replace(/\n+$/, "") : ""; +} + +const linePoints = (shape) => + Object.values(shape.props.points).sort((a, b) => (a.index < b.index ? -1 : 1)); +const endpoints = (shape) => + shape.type === "arrow" + ? [shape.props.start, shape.props.end] + : [linePoints(shape)[0], linePoints(shape).at(-1)]; + +// Endpoints are stored in the shape's own frame, which its rotation turns about the shape origin. +const toPage = (shape, point) => ({ + x: shape.x + point.x * Math.cos(shape.rotation) - point.y * Math.sin(shape.rotation), + y: shape.y + point.x * Math.sin(shape.rotation) + point.y * Math.cos(shape.rotation), +}); + +const FONT_PX = { s: 18, m: 24, l: 36, xl: 44 }; // tldraw's FONT_SIZES (em) x 16 + +const boxOf = (points) => { + const xs = points.map((p) => p.x), + ys = points.map((p) => p.y); + return { + x: Math.min(...xs), + y: Math.min(...ys), + w: Math.max(...xs) - Math.min(...xs), + h: Math.max(...ys) - Math.min(...ys), + }; +}; + +// The box a shape occupies in its own unrotated frame; tldraw keeps no single field for this. +function localBounds(shape) { + const props = shape.props; + const scale = props.scale ?? 1; + if (shape.type === "geo") return { x: 0, y: 0, w: props.w, h: props.h + (props.growY ?? 0) }; + if (shape.type === "note") + return { x: 0, y: 0, w: 200 * scale, h: (200 + (props.growY ?? 0)) * scale }; + if (shape.type === "text") { + // Text height isn't stored; estimate from line count and font size. + const lines = Math.max(1, plainText(props.richText).split("\n").length); + return { x: 0, y: 0, w: props.w * scale, h: lines * FONT_PX[props.size] * 1.35 * scale }; + } + if (shape.type === "draw") return boxOf(props.segments.flatMap((segment) => segment.points)); + if (shape.type === "line") return boxOf(Object.values(props.points)); + if (shape.type === "arrow") return boxOf([props.start, props.end]); + if (typeof props.w === "number" && typeof props.h === "number") + return { x: 0, y: 0, w: props.w, h: props.h }; + return { x: 0, y: 0, w: 0, h: 0 }; +} + +// Axis-aligned page-space box: rotate the local box's corners about the shape origin, then re-bound. +function pageBounds(shape) { + const b = localBounds(shape); + const corners = [ + [b.x, b.y], + [b.x + b.w, b.y], + [b.x, b.y + b.h], + [b.x + b.w, b.y + b.h], + ].map(([x, y]) => toPage(shape, { x, y })); + return boxOf(corners); +} + +function summarize(shape) { + const props = shape.props; + const item = { + id: shape.id, + type: shape.type === "geo" ? (props.geo === "rectangle" ? "rect" : props.geo) : shape.type, + x: shape.x, + y: shape.y, + }; + item.rotation = +((shape.rotation * 180) / Math.PI).toFixed(3); + item.opacity = shape.opacity; + if (props.size !== undefined) item.weight = props.size; + if (props.w !== undefined) item.w = props.w; + if (props.h !== undefined) item.h = props.h; + if (props.richText) item.text = plainText(props.richText); + for (const key of ["color", "fill", "dash", "font"]) + if (props[key] !== undefined) item[key] = props[key]; + if (shape.type === "line" || shape.type === "arrow") { + const [start, end] = endpoints(shape).map((p) => toPage(shape, p)); + item.start = start; + item.end = end; + } + return item; +} + +function newShape(type, x, y) { + const base = { + id: `shape:wb-${Date.now().toString(36)}-${Math.random().toString(36).slice(2, 8)}`, + typeName: "shape", + parentId: "page:page", + index: "a1", + x, + y, + rotation: 0, + isLocked: false, + opacity: 1, + meta: {}, + }; + if (type === "text") + return { + ...base, + type: "text", + props: { + color: "black", + size: "m", + w: 320, + font: "draw", + textAlign: "start", + autoSize: true, + scale: 1, + richText: richText(""), + }, + }; + if (type === "rect" || type === "ellipse") + return { + ...base, + type: "geo", + props: { + geo: type === "rect" ? "rectangle" : "ellipse", + dash: "draw", + url: "", + w: 200, + h: 120, + growY: 0, + scale: 1, + flipX: false, + flipY: false, + labelColor: "black", + color: "black", + fill: "none", + size: "m", + font: "draw", + align: "middle", + verticalAlign: "middle", + richText: richText(""), + }, + }; + if (type === "line") + return { + ...base, + type: "line", + props: { + color: "black", + dash: "draw", + size: "m", + spline: "line", + scale: 1, + points: { + a1: { id: "a1", index: "a1", x: 0, y: 0 }, + a2: { id: "a2", index: "a2", x: 100, y: 0 }, + }, + }, + }; + if (type === "note") + return { + ...base, + type: "note", + props: { + color: "black", + labelColor: "black", + size: "m", + font: "draw", + fontSizeAdjustment: null, + align: "middle", + verticalAlign: "middle", + growY: 0, + url: "", + richText: richText(""), + scale: 1, + textLastEditedBy: null, + }, + }; + if (type === "arrow") + return { + ...base, + type: "arrow", + props: { + kind: "arc", + labelColor: "black", + color: "black", + fill: "none", + dash: "draw", + size: "m", + arrowheadStart: "none", + arrowheadEnd: "arrow", + font: "draw", + start: { x: 0, y: 0 }, + end: { x: 100, y: 0 }, + bend: 0, + richText: richText(""), + labelPosition: 0.5, + scale: 1, + elbowMidPoint: 0.5, + }, + }; + return fail(`unknown --type ${type}`); +} + +// Rewrites a line or arrow so its endpoints sit at the given absolute page points. +function setEndpoints(shape, start, end) { + shape.x = start.x; + shape.y = start.y; + // Turning the page-space end vector by the negated rotation puts it back into the shape's frame. + const relative = toPage( + { x: 0, y: 0, rotation: -shape.rotation }, + { x: end.x - start.x, y: end.y - start.y }, + ); + if (shape.type === "arrow") { + shape.props.start = { x: 0, y: 0 }; + shape.props.end = relative; + return; + } + const points = linePoints(shape); + points[0].x = 0; + points[0].y = 0; + points.at(-1).x = relative.x; + points.at(-1).y = relative.y; +} + +async function write() { + const board = await loadBoard(); + let shape; + if (flags.id) { + if (flags.type) fail("--type cannot be changed on an existing shape"); + const existing = board.find((record) => record.id === flags.id); + if (!existing) fail(`no shape ${flags.id} in room ${room}`); + shape = structuredClone(existing); + } else { + if (!flags.at) fail("--at x,y is required when creating a shape"); + const [x, y] = point(flags.at, "at"); + shape = newShape(flags.type ?? "text", x, y); + } + if (!flags.id || flags.page !== undefined) shape.parentId = pageOf(board, flags.page).id; + if (flags.rotate !== undefined) shape.rotation = (Number(flags.rotate) * Math.PI) / 180; + const isSegment = shape.type === "line" || shape.type === "arrow"; + if (isSegment && (flags.at || flags.to)) { + const [start, end] = endpoints(shape).map((p) => toPage(shape, p)); + if (flags.at) { + const [x, y] = point(flags.at, "at"); + start.x = x; + start.y = y; + } + if (flags.to) { + const [x, y] = point(flags.to, "to"); + end.x = x; + end.y = y; + } + setEndpoints(shape, start, end); + } else if (flags.id && flags.at) { + const [x, y] = point(flags.at, "at"); + shape.x = x; + shape.y = y; + } + if (flags.text !== undefined) shape.props.richText = richText(flags.text); + if (flags.size && shape.type === "text") { + // A fixed width makes the text wrap; tldraw otherwise sizes the box to its content. + const w = Number(flags.size); + if (!Number.isFinite(w) || w <= 0) + fail("--size expects one width for a text shape, for example --size 240"); + shape.props.w = w; + shape.props.autoSize = false; + } else if (flags.size) { + if (!("w" in shape.props) || !("h" in shape.props)) + fail(`--size does not apply to a ${shape.type} shape`); + const [w, h] = point(flags.size, "size"); + shape.props.w = w; + shape.props.h = h; + } + for (const [flag, key] of [ + ["color", "color"], + ["fill", "fill"], + ["dash", "dash"], + ["weight", "size"], + ["font", "font"], + ]) { + if (flags[flag] === undefined) continue; + if (!(key in shape.props)) fail(`--${flag} does not apply to a ${shape.type} shape`); + shape.props[key] = flags[flag]; + } + if (flags.opacity !== undefined) shape.opacity = Number(flags.opacity); + // Fractional indices order shapes on the page; step past the current extreme to restack. + const indexes = board + .filter((record) => record.typeName === "shape" && record.id !== shape.id) + .map((record) => record.index) + .sort(); + if (!flags.id) shape.index = getIndexAbove(indexes.at(-1)); + if (flags.order === "front") shape.index = getIndexAbove(indexes.at(-1)); + else if (flags.order === "back") shape.index = getIndexBelow(indexes[0]); + else if (flags.order) fail("--order expects front or back"); + await editBoard([shape], []); + const stored = (await loadBoard()).find((record) => record.id === shape.id); + return { id: stored.id, x: stored.x, y: stored.y, w: stored.props.w, h: stored.props.h }; +} + +async function read() { + const board = await loadBoard(); + const byId = new Map(board.map((record) => [record.id, record])); + const shapes = board.filter((record) => record.typeName === "shape"); + const r = positionals[1] && region(positionals[1]); + // Without a region or --page, every page's shapes are listed; a region always lies on one page. + const page = (r || flags.page !== undefined) && pageOf(board, r?.page ?? flags.page).id; + return shapes + .filter((shape) => { + if (page && pageIdOf(byId, shape) !== page) return false; + if (!r) return true; + const a = pageBounds(shape); + return a.x <= r.x + r.w && a.x + a.w >= r.x && a.y <= r.y + r.h && a.y + a.h >= r.y; + }) + .map((shape) => ({ ...summarize(shape), page: byId.get(pageIdOf(byId, shape)).name })); +} + +async function pages() { + const board = await loadBoard(); + const byId = new Map(board.map((record) => [record.id, record])); + const shapes = board.filter((record) => record.typeName === "shape"); + return pagesOf(board).map((page, i) => ({ + page: i + 1, + id: page.id, + name: page.name, + shapes: shapes.filter((shape) => pageIdOf(byId, shape) === page.id).length, + })); +} + +async function shot() { + const { chromium } = await import("playwright-core"); + const out = flags.out ?? `${NodeOS.tmpdir()}/wb-shot-${Date.now()}.png`; + const arg = positionals[1]; + const box = arg && region(arg); + const pageId = pageOf(await loadBoard(), box?.page ?? flags.page).id; + const request = box ? `${box.x},${box.y},${box.w},${box.h}` : "fit"; + const browser = await chromium.launch({ + executablePath: "/opt/google/chrome/chrome", + headless: true, + args: ["--no-sandbox"], + }); + try { + const page = await browser.newPage(); + await page.goto(`${web}/?room=${room}&export=${request}&page=${encodeURIComponent(pageId)}`); + await page.waitForFunction(() => window.wbExport); + const dataUrl = await page.evaluate(() => window.wbExport); + NodeFS.writeFileSync(out, Buffer.from(dataUrl.slice(dataUrl.indexOf(",") + 1), "base64")); + } finally { + await browser.close(); + } + return { file: out }; +} + +// Sends a raw {puts, deletes} body straight to the API, for records the high-level commands do not model. +async function writeRaw() { + const body = JSON.parse(await NodeStreamConsumers.text(process.stdin)); + await editBoard(body.puts ?? [], body.deletes ?? []); + return { ok: true, puts: (body.puts ?? []).length, deletes: (body.deletes ?? []).length }; +} + +const command = positionals[0]; +const result = + command === "read" + ? await read() + : command === "pages" + ? await pages() + : command === "read-raw" + ? await loadBoard() + : command === "write-raw" + ? await writeRaw() + : command === "write" + ? await write() + : command === "delete" + ? (await editBoard([], positionals.slice(1)), { deleted: positionals.slice(1) }) + : command === "shot" + ? await shot() + : fail(`unknown command ${command ?? ""}\n${usage}`); +process.stdout.write(`${JSON.stringify(result, null, 2)}\n`); diff --git a/fork/whiteboard/tsconfig.json b/fork/whiteboard/tsconfig.json new file mode 100644 index 0000000000000..0695ae740d5d1 --- /dev/null +++ b/fork/whiteboard/tsconfig.json @@ -0,0 +1,21 @@ +{ + "compilerOptions": { + "target": "ES2022", + "allowJs": true, + "checkJs": true, + "useDefineForClassFields": true, + "lib": ["ES2022", "DOM", "DOM.Iterable"], + "module": "ESNext", + "moduleResolution": "Bundler", + "allowImportingTsExtensions": true, + "resolveJsonModule": true, + "isolatedModules": true, + "esModuleInterop": true, + "jsx": "react-jsx", + "strict": true, + "noEmit": true, + "skipLibCheck": true, + "types": ["node", "vite/client"] + }, + "include": ["server", "web", "vite.config.ts"] +} diff --git a/fork/whiteboard/vite.config.ts b/fork/whiteboard/vite.config.ts new file mode 100644 index 0000000000000..c6aaacf4c8063 --- /dev/null +++ b/fork/whiteboard/vite.config.ts @@ -0,0 +1,52 @@ +// Exposes the Vite development and build configuration for the web client. +import { defineConfig, type Plugin } from "vite"; +import react from "@vitejs/plugin-react"; +import { config } from "./server/config.mjs"; + +// Vite's client also supplies the helpers used by dev-mode CSS, so it must remain available. +// Disconnect only its HMR transport: otherwise any brief socket loss makes the client reload the +// entire board. The marker guard makes a future Vite client change fail loudly during startup. +const hmrConnectMarker = "transport.connect(createHMRHandler(handleMessage));"; +const disableHmrTransport = { + name: "whiteboard:disable-hmr-transport", + apply: "serve", + enforce: "post", + transform(code, id) { + if (!id.replaceAll("\\", "/").endsWith("/vite/dist/client/client.mjs")) return; + if (!code.includes(hmrConnectMarker)) + throw new Error("Vite client HMR connection marker not found"); + return code.replace( + hmrConnectMarker, + "/* HMR transport disabled for the persistent whiteboard. */", + ); + }, +} satisfies Plugin; + +export default defineConfig({ + plugins: [react(), disableHmrTransport], + resolve: { dedupe: ["prosemirror-state"] }, + define: { __OPEN_VIEWS__: JSON.stringify(config.openViews) }, + server: { + hmr: false, + port: config.webPort, + strictPort: true, + // Vite refuses other Host headers, so a reverse proxy in front needs its hostname listed here. + allowedHosts: config.allowedHosts, + proxy: { + "/sync": { + target: `http://127.0.0.1:${config.port}`, + ws: true, + rewrite: (path) => path.replace(/^\/sync/, ""), + }, + "/chat": { + target: `http://127.0.0.1:${config.chatPort}`, + ws: true, + rewrite: (path) => path.replace(/^\/chat/, ""), + }, + // The chat's browser code builds these from the page origin, so they reach it unprefixed. + "/api": { target: `http://127.0.0.1:${config.chatPort}`, ws: true }, + "/ws": { target: `http://127.0.0.1:${config.chatPort}`, ws: true }, + "/.well-known": { target: `http://127.0.0.1:${config.chatPort}`, ws: true }, + }, + }, +}); diff --git a/fork/whiteboard/web/ChatSlot.tsx b/fork/whiteboard/web/ChatSlot.tsx new file mode 100644 index 0000000000000..163388613224a --- /dev/null +++ b/fork/whiteboard/web/ChatSlot.tsx @@ -0,0 +1,68 @@ +// Embeds the isolated T3 chat and bridges board references, highlights, and the split layout. +import { useEffect, useRef, type JSX } from "react"; +import { highlightRegion, hoverRegion, onRefToChat, setBoardRoom } from "./bridge"; + +export function ChatSlot({ + boardHidden, + showBoard, +}: { + boardHidden: boolean; + showBoard: () => void; +}): JSX.Element { + const iframeRef = useRef(null); + + useEffect(() => { + // The chat shows its Board button only while the board panel is collapsed. + const postLayout = () => + iframeRef.current?.contentWindow?.postMessage( + { type: "wb-layout", boardHidden }, + location.origin, + ); + postLayout(); + const receive = (event: MessageEvent) => { + if (event.origin !== location.origin || event.source !== iframeRef.current?.contentWindow) + return; + const { type, path, session, ref, rect } = event.data as { + type: string; + path?: string; + session?: string | null; + ref?: string | null; + rect?: DOMRect; + }; + if (type === "wb-project") setBoardRoom(path!, session); + if (type === "wb-highlight") highlightRegion(ref!); + if (type === "wb-layout-get") postLayout(); + if (type === "wb-show-board") showBoard(); + if (type === "wb-hover") { + // The chat reports the chip's position inside the iframe; the board draws in page coordinates. + const frame = iframeRef.current?.getBoundingClientRect(); + if (ref && rect && frame) + hoverRegion(ref, { + x: frame.left + rect.x, + y: frame.top + rect.y + rect.height / 2, + }); + else hoverRegion(null); + } + }; + window.addEventListener("message", receive); + return () => window.removeEventListener("message", receive); + }, [boardHidden, showBoard]); + + return ( +
+