@ofrnsb/whiteboard 0.0.0-stage → 0.1.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +70 -2
- package/dist/boards-ykaNj5ns.d.ts +540 -0
- package/dist/chunk-ORDEALPW.js +1981 -0
- package/dist/chunk-ORDEALPW.js.map +1 -0
- package/dist/cli/index.js +2272 -0
- package/dist/core/index.d.ts +1495 -0
- package/dist/core/index.js +809 -0
- package/dist/core/index.js.map +1 -0
- package/dist/fonts/PatrickHand-OFL.txt +93 -0
- package/dist/fonts/PatrickHand-Regular.ttf +0 -0
- package/dist/index.d.ts +78 -0
- package/dist/index.js +3745 -0
- package/dist/index.js.map +1 -0
- package/dist/style.css +797 -0
- package/package.json +70 -4
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"sources":["../src/react/config.ts","../src/react/copy.ts","../src/react/Whiteboard.tsx","../src/react/format.ts","../src/react/icons.tsx","../src/react/line-icons.ts","../src/react/illustrations.ts","../src/react/useBoard.ts","../src/react/diff.ts","../src/react/boardMachine.ts","../src/react/Choreo.tsx","../src/react/motion.ts","../src/react/pop.ts","../src/react/ink.ts","../src/react/camera.ts","../src/react/motionKit.ts","../src/react/sound.ts","../src/react/tempo.ts","../src/react/transport.ts"],"sourcesContent":["// Sizes, timings and keys of the board view (from simpul config/ui.ts).\nconst SECOND_MS = 1_000;\nexport const BOARD = {\n /** The sidebar reloads its board list this long after the last saved edit. */\n listReloadMs: 800,\n pollMs: 4 * SECOND_MS,\n fastMs: SECOND_MS,\n agentWindowMs: 20 * SECOND_MS,\n minZoom: 0.1,\n maxZoom: 2.5,\n rule: 32,\n presenceMs: 6 * SECOND_MS,\n presenceSlackMs: 50,\n agentRecentMs: 30 * SECOND_MS,\n startView: { x: 24, y: 24, z: 0.8 },\n homeView: { x: 24, y: 24, z: 1 },\n startSize: { w: 800, h: 560 },\n /** Room kept under the content on fit for the change bar and the toolbar floating over the board. */\n fitBottom: 176,\n /** Extra room the history strip and its narration caption take under the board while open. */\n historyRoom: 150,\n fitTop: 24,\n widthPad: 40,\n newItem: { note: { w: 200, h: 120 }, text: { w: 260, h: 40 }, shape: { w: 160, h: 72 } },\n newFrame: { w: 480, h: 320 },\n frameMinSize: { w: 160, h: 100 },\n nudge: 8,\n zoomStep: 1.25,\n wheelZoom: 0.01,\n /** View glide: exponential approach time constant, the longest frame step it trusts, and what counts as a wheel notch. */\n glideTauMs: 90,\n glideFrameCapMs: 64,\n wheelNotch: 40,\n wheelLinePx: 16,\n labelAria: 80,\n noteMax: 1000,\n changeMax: 600,\n linkLabelMax: 60,\n fitPad: 48,\n frameMin: 40,\n sheetOverscan: 8,\n sheetRowH: 44,\n sheetViewH: 480,\n sheetPopW: 300,\n sheetPopGap: 4,\n sheetSkelRows: 6,\n selectMax: 40,\n askMax: 400,\n boostMs: 90 * SECOND_MS,\n /** Stickers: emoji size against the item, room kept for a caption, and the size a placed one starts at. */\n stickerScale: 0.82,\n stickerCaption: 26,\n newSticker: 104,\n /** The board's words stay readable at this zoom. Opening a board, the agent finishing one and full screen never go\n * below it (past it they start at the top-left, where a told board puts its finding), and while the agent draws the\n * camera follows its cursor at this zoom or closer instead of pulling out to frame a large beat. */\n readZoom: 0.8,\n /** While the agent writes, each item is shown so its smallest words are at least this many px on screen, and whole\n * when it fits at that size or closer: a big headline is seen whole from further out, a card's small print up close. */\n readPx: 11,\n /** Full screen is the overview: the whole board, shrunk as far as this zoom before it starts at the top-left. */\n overviewZoom: 0.25,\n /** A card drawn large reads large: from these sizes (board units) its words and picture scale up. */\n big: { h: 110, l: 340, xl: 520 },\n /** Pen ink (perfect-freehand): diameter per width, and how the stroke thins, smooths and trails the pointer. */\n ink: { thinning: 0.55, smoothing: 0.55, streamline: 0.45, taper: 6, minStep: 2 },\n /** Pen widths in board units, per tool and size. */\n brush: { width: { pena: { s: 3, m: 6, l: 10 }, spidol: { s: 8, m: 14, l: 22 } } },\n /** Arrows (perfect-arrows): how far a curved one bows and how much it stretches over short gaps; padding off the boxes. */\n arrow: { curveBow: 0.2, curveStretch: 0.5, padStart: 2, padEnd: 4, head: 9, headWidth: 0.55 },\n /** The ink look (roughjs): careful hand inking, not a scribble; multi-stroke only on shapes and sections. */\n rough: { roughness: 0.75, bowing: 0.5, cellRoughness: 0.55, linkRoughness: 0.6, cacheMax: 3000 },\n /** Agent edits ringed in stamp ink (rough-notation): how many at once, the draw time and how long they stay. */\n notation: { max: 12, drawMs: 720, holdMs: 4200, pad: 6, stroke: 2, stamp: \"#22457a\" },\n /** The board's look per browser: \"ink\" (hand-inked outlines) or \"neat\" (clean vectors). */\n styleKey: (boardId: string) => `sp:wb-style:${boardId}`,\n /** Someone working on the board counts as live this long after their last step (the server's activity window). */\n activityFreshMs: 30 * SECOND_MS,\n /**\n * Choreography at the designed (Tenang) tempo: each step gets 450-900ms and a whole build about 16s at most; the\n * cursor flies 500-900ms, lands `leadMs` before its item, and holds on it `holdMs` before moving on; entrances settle\n * within `enterMs`. Every value is scaled by the viewer's tempo.\n */\n /** A sticky note shows as many 20px lines as fit its height after its padding (`chrome`) and title line; never fewer than `min`. */\n noteLines: { min: 3, lh: 20, chrome: 28, title: 24 },\n choreo: { totalMs: 16_000, minMs: 450, maxMs: 900, enterMs: 1_200, maxSteps: 160, leadMs: 220, holdMs: 450, flightMinMs: 750, flightMaxMs: 1_300 },\n /** Tempo per browser: Tenang (the design), Normal and Cepat scale every client duration by `factor`. */\n tempo: { key: \"sp:wb-tempo\", default: \"tenang\" as \"tenang\" | \"normal\" | \"cepat\", factor: { tenang: 1, normal: 0.6, cepat: 0.35 } },\n /**\n * Entrance times at Tenang: titles type at `typeCps` characters a second; the road draws at a constant speed over\n * `roadMs`; a link draws over `linkMs` and its head appears as it finishes; the stamp's ink ring spreads over `ringMs`.\n * A wire and a heading wait `handMs` for the agent's hand to reach where they start.\n A body line types at `bodyCps` (sped up so a long body takes at most `bodyMaxMs`); the pen hops to the next line in `lineHopMs`. */\n enter: { handMs: 180, typeCps: 28, bodyCps: 75, bodyMaxMs: 3_200, lineHopMs: 90, typeMinMs: 450, roadMs: 2_100, linkMs: 900, stickerMs: 700, ringMs: 800, headingMs: 1_600, frameMs: 1_000, cellMs: 500, dotMs: 520, fadeMs: 420, artMs: 700, footMs: 600 },\n /** A board the agent made counts as new (its build plays once on open) for this long after it was created. */\n buildFreshMs: 10 * 60 * SECOND_MS,\n /** Where this browser remembers which boards already played their build this session. */\n playedKey: \"sp:wb-built\",\n /** \"Putar ulang\": the pause after each version, and how fast the narration types (ms a character). */\n replay: { holdMs: 1_600, typeMs: 36 },\n /** Springs in duration-and-bounce form: the cursor's flight, cards popping in, milestones stamping in. */\n springs: { cursor: { visualDuration: 0.75, bounce: 0 }, card: { visualDuration: 0.7, bounce: 0.12 }, stamp: { visualDuration: 0.6, bounce: 0.3 } },\n /** The cursor's flight bows sideways by this share of its length, and dips this many px as it \"presses\" an item down. */\n cursorArc: 0.08,\n cursorPressPx: 2,\n /** Camera: long flights along the zoom path take this long; the agent leaves the camera alone this long after any input. */\n flight: { minMs: 900, maxMs: 1_800 },\n userWinsMs: 2 * SECOND_MS,\n /** A told board: the camera frames each beat as it is drawn, at most this close, with this much of the board around it. */\n tell: { zoom: 0.95, margin: 120, aspect: 0.5, startMs: 400 },\n /** A follow keeps the target inside the view inset by this share. */\n followInset: 0.15,\n /** Footprints: their stagger as they fade in. A moved item's onion-skin ghost fades over `onionMs`. */\n footStepMs: 70,\n onionMs: 1200,\n /** Sounds (off by default): where the choice is kept, the thud's length and the least time between two. */\n sound: { key: \"sp:wb-sound\", thudMs: 70, thudGapMs: 220 },\n} as const;\n\nexport const INPUT_MAX = { reason: 300, unitName: 80, projectName: 80, projectGoal: 400, frameName: 120, tabName: 60, boardTitle: 120 } as const;\n","// Shared whiteboards and sheets: loading and save states, toolbars, cells, columns and the agent prompts they send.\nexport const BOARD_COPY = {\n loadFailed: \"Could not load the board\",\n unsaved: \"Changes not saved yet\",\n unsavedWhy: (why: string) => `Changes not saved yet: ${why}`,\n you: \"You\",\n} as const;\n\nexport const TASKS = {\n loading: \"Loading the task board…\",\n notTasks: \"This board has no lanes yet: it needs a choice field for the lanes and a text field for the card title.\",\n count: (n: number) => `${n} ${n === 1 ? \"card\" : \"cards\"}`,\n aria: (title: string, lane: string) => `${title}, cards by ${lane}`,\n untitled: \"Untitled card\",\n moveKeys: \"Drag to another lane, or press Alt and an arrow key\",\n addCard: \"Add card\",\n addTo: (lane: string) => `Add a card to ${lane}`,\n cardPh: \"What needs doing?\",\n add: \"Add\",\n cancel: \"Cancel\",\n save: \"Save\",\n remove: \"Delete card\",\n yes: \"Yes\",\n no: \"No\",\n agentDid: (what: string) => `The agent ${what}`,\n keep: \"Keep\",\n undo: \"Undo\",\n} as const;\n\nexport const SHEET = {\n rowCount: (n: string, one: boolean) => `${n} ${one ? \"row\" : \"rows\"}`,\n types: { text: \"Text\", number: \"Number\", money: \"Money\", date: \"Date\", select: \"Choice\", check: \"Checkbox\" },\n totals: { none: \"None\", sum: \"Sum\", avg: \"Average\", count: \"Count\" },\n cells: (n: string) => `${n} cells`,\n cellsSum: (n: string, sum: string) => `${n} cells · Sum ${sum}`,\n newColumn: (n: number) => `Column ${n}`,\n newTab: (n: number) => `Tab ${n}`,\n firstColumn: \"Name\",\n askOnTab: (ref: string, tab: string, q: string) => `On sheet ${ref} tab \"${tab}\": ${q}`,\n loadFailed: \"Could not load the sheet.\",\n reload: \"Reload\",\n loading: \"Loading sheet\",\n changedBy: (who: string) => `Changed by ${who}`,\n saving: \"Saving…\",\n downloadCsv: \"Download CSV\",\n tabsAria: \"Sheet tabs\",\n tabName: \"Tab name\",\n renameHint: \"Double-click to rename\",\n manageTab: \"Manage tab\",\n newTabBtn: \"New tab\",\n renameTab: \"Rename tab\",\n removeTab: \"Delete tab\",\n atLeastOne: \" (at least one tab)\",\n agentChanged: (what: string) => `Changed by the agent: ${what}`,\n markSeen: \"Mark as seen\",\n noTabsTitle: \"No tabs yet.\",\n noTabsBody: \"Add a tab or ask the agent to set up this sheet.\",\n emptyTabTitle: \"This tab is empty.\",\n emptyTabBody: \"Add a column or ask the agent to fill it.\",\n newColumnBtn: \"New column\",\n gridAria: (tab: string, n: number) => `${tab}, ${n} rows`,\n rowHeader: \"Row\",\n formulaTitle: (f: string) => `Formula: ${f}`,\n columnTitle: (type: string) => `${type}. Click to set up the column`,\n formulaAria: \"formula column\",\n removeRowOf: (n: number) => `Delete row ${n}`,\n removeRow: \"Delete row\",\n cellAria: (col: string, row: number) => `${col}, row ${row}`,\n total: \"Total\",\n noRows: \"No rows yet. Add a row or ask the agent to fill it.\",\n newRow: \"New row\",\n askPlaceholder: \"Ask the agent about this tab\",\n askAria: (tab: string) => `Ask the agent about tab ${tab}`,\n ask: \"Ask the agent\",\n noOptions: \"No choices yet. Set them in the column menu.\",\n clear: \"Clear\",\n formulaUnreadable: \"The formula cannot be read. Use {Column name}, numbers, + - * / and parentheses.\",\n formulaNeedsRef: \"A formula must refer to at least one column, for example {Quantity} * {Price}.\",\n formulaUnknown: (name: string | undefined) => `There is no column \"${name}\" in this tab.`,\n nameRequired: \"The column needs a name.\",\n columnMenu: (name: string) => `Set up column ${name}`,\n name: \"Name\",\n type: \"Type\",\n options: \"Choices, separated by commas\",\n optionsPlaceholder: \"New, In progress, Done\",\n formula: \"Formula (optional)\",\n formulaPlaceholder: \"{Quantity} * {Price}\",\n totalBelow: \"Total below\",\n removeColumn: \"Delete column\",\n cancel: \"Cancel\",\n save: \"Save\",\n} as const;\n\nexport const WB = {\n colors: { paper: \"Paper\", ink: \"Ink\", red: \"Red\", yellow: \"Yellow\", blue: \"Blue\", green: \"Green\", pink: \"Pink\", gray: \"Gray\", purple: \"Purple\", outline: \"Outline\", new: \"New\", orange: \"Orange\", peach: \"Peach\", sand: \"Sand\" },\n shapes: { box: \"Box\", ellipse: \"Ellipse\", cloud: \"Cloud\", cylinder: \"Cylinder\", diamond: \"Diamond\", triangle: \"Triangle\", pentagon: \"Pentagon\", hexagon: \"Hexagon\", parallelogram: \"Parallelogram\" },\n sizes: { s: \"Small\", m: \"Medium\", l: \"Large\", xl: \"Heading\" },\n tools: { select: \"Select\", pan: \"Pan\", text: \"Text\", frame: \"Section\", note: \"Note\", pen: \"Pen\", shape: \"Shape\", link: \"Arrow\" },\n inkAria: \"Pen stroke\",\n itemAria: (kind: string, label: string) => `${kind}: ${label}`,\n note: \"Note\",\n text: \"Text\",\n shape: \"Shape\",\n titleAndBody: \"Title on the first line, details on the next\",\n body: \"Details\",\n title: \"Title\",\n emptyNote: \"Empty note\",\n owner: (who: string) => `Owner ${who}`,\n due: (when: string) => `Due ${when}`,\n resize: \"Drag to resize\",\n frameHead: \"Drag to move the section, double-click to rename\",\n frameName: \"Section name\",\n untitled: \"Untitled\",\n resizeFrame: \"Drag to resize the section\",\n newFrame: \"New section\",\n askSelected: (ref: string, ids: string, q: string) => `On board ${ref}, selected notes ${ids}: ${q}`,\n askBoard: (ref: string, q: string) => `On board ${ref}: ${q}`,\n toDocAsk: (ref: string) => `Turn board ${ref} into short meeting notes.`,\n changedBy: (who: string) => `Changed by ${who}`,\n saving: \"Saving…\",\n close: \"Close\",\n fullscreen: \"Full screen\",\n more: \"More\",\n toDoc: \"Turn into a document\",\n reload: \"Reload\",\n loadFailed: \"Could not load the board.\",\n retry: \"Try again\",\n loading: \"Loading board\",\n canvasAria: \"Board canvas\",\n wireHint: \"Drag to another item to connect\",\n agentDrawing: \"The agent is drawing…\",\n empty: \"The board is empty. Pick a tool below, double-click to add a note, or ask the agent to draw it.\",\n zoom: (pct: number) => `Zoom ${pct}%`,\n zoomIn: \"Zoom in\",\n zoomOut: \"Zoom out\",\n fit: \"Fit to screen\",\n selected: (n: number) => `${n} selected`,\n color: \"Color\",\n colorOf: (name: string) => `Color ${name}`,\n textSize: \"Text size\",\n remove: \"Delete\",\n askPick: \"Ask the agent about this selection\",\n ask: \"Ask\",\n linkSelected: \"Selected arrow\",\n routeTo: { elbow: \"Make elbow\", curve: \"Make curved\", straight: \"Make straight\", auto: \"Route around\" },\n stickerTool: \"Sticker\",\n penMenu: \"Pen options\",\n penColors: { ink: \"Ink\", blue: \"Stamp blue\", red: \"Red\" },\n penSizes: { s: \"Thin\", m: \"Medium\", l: \"Thick\" },\n penBrushes: { pena: \"Pen\", spidol: \"Marker\" },\n penBrushGroup: \"Tool\",\n tempoLabel: \"Tempo\",\n tempos: { tenang: \"Calm\", normal: \"Normal\", cepat: \"Fast\" } as Record<\"tenang\" | \"normal\" | \"cepat\", string>,\n penColorGroup: \"Ink color\",\n penSizeGroup: \"Thickness\",\n styleLabel: \"Style\",\n styles: { ink: \"Ink\", neat: \"Neat\" },\n styleOf: (name: string) => `Style: ${name}`,\n stickerMenu: \"Choose a sticker\",\n stickerOf: (name: string) => `Place the ${name.replace(/-/g, \" \")} illustration`,\n toElbow: \"Make elbow\",\n toStraight: \"Make straight\",\n dashed: \"Dashed\",\n ends: (n: string) => `Ends: ${n}`,\n endsOne: \"one\",\n endsTwo: \"two\",\n endsNone: \"none\",\n linkLabel: \"Arrow label\",\n describeChange: \"Describe a change for the agent…\",\n describeChangeAria: \"Describe a change for the agent\",\n send: \"Send\",\n toolbar: \"Board tools\",\n askAgent: \"Ask agent\",\n // The agent working live, the choreography and the time machine\n agent: \"Agent\",\n agentWorking: (what: string) => `Agent · ${what}`,\n agentBuilding: \"building the board\",\n /** What the agent's cursor says while each kind of item lands. */\n stepLabel: { frame: \"laying out a section\", heading: \"writing the title\", track: \"drawing the road\", pill: \"placing milestones\", dot: \"placing milestones\", cell: \"setting up the calendar\", card: \"placing cards\", note: \"placing cards\", sticker: \"placing illustrations\", link: \"connecting steps\", change: \"tidying up\", remove: \"removing\" } as Record<string, string>,\n personWorking: (who: string, what: string) => `${who} · ${what}`,\n skip: \"Skip\",\n /** The agent's piece of work, waiting to be kept or undone. */\n batchOf: (what: string) => `Agent: ${what}`,\n keep: \"Keep\",\n undo: \"Undo\",\n kept: \"Kept\",\n undoing: \"Undoing…\",\n keepAria: (what: string) => `Keep the agent's change: ${what}`,\n undoAria: (what: string) => `Undo the agent's change: ${what}`,\n batchHint: \"Enter keeps, Esc undoes\",\n /** The marker at the view's edge pointing to the agent working off screen; clicking it flies there. */\n edgeOf: (what: string) => `Agent · ${what}`,\n edgeAria: (what: string) => `The agent is ${what} off screen. Show it`,\n planned: \"agent's plan\",\n soundLabel: \"Sound\",\n soundOn: \"Sound on\",\n soundOff: \"Sound off\",\n skipAria: \"Skip the animation, show the final result\",\n history: \"History\",\n historyAria: \"Board history\",\n historyEmpty: \"This board has no history yet.\",\n historyLoading: \"Loading history…\",\n historyRange: \"Slide to see versions\",\n versionTick: (v: number, who: string, when: string, what: string) => `Version ${v} · ${who} · ${when} · ${what}`,\n viewing: (v: number) => `Viewing version ${v}`,\n latest: \"Back to latest\",\n restoreThis: \"Restore this version\",\n restoring: \"Restoring…\",\n replay: \"Replay\",\n replayAria: \"Replay how this board was built\",\n pause: \"Pause\",\n resume: \"Resume\",\n speed: (x: number) => `${x}×`,\n speedAria: \"Replay speed\",\n readOnly: \"View only: go back to latest to change the board\",\n versionMissing: \"This version could not be loaded.\",\n} as const;\n","// The live whiteboard: frames, slips, boxes, shapes, text and pen marks the agent draws and the team keeps editing.\n// One world layer is panned and zoomed with a transform; items are memoised so a drag re-renders only what moves.\nimport { BOARD, INPUT_MAX } from \"./config\";\nimport { BOARD as BOARD_DATA } from \"../core/config\";\n\nconst SKETCH = BOARD_DATA.draw.sketch;\nconst STICKY_DATA = BOARD_DATA.sticky;\nimport { WB } from \"./copy\";\nimport { memo, useCallback, useEffect, useMemo, useReducer, useRef, useState, type KeyboardEvent as ReactKeyboardEvent, type PointerEvent as ReactPointerEvent, type ReactNode } from \"react\";\nimport { frameAt, minSize, OUTLINED, uid, type Board, type BoardOp, type NoteColor, type Shape, type TextSize, type WbFrame, type WbLink, type WbNote } from \"../core/boards\";\nimport type { BoardTransport } from \"./transport\";\nimport { ago } from \"./format\";\nimport { IChat, IClose, IDoc, IPanel, IRefresh, ITrash } from \"./icons\";\nimport { ILLUSTRATIONS, isIllustration } from \"../core/illustrations\";\nimport { isLineIcon } from \"../core/line-icons\";\nimport { isPolygon, polygonPad, routeWires, wrapLines, type Polygon, type Routed } from \"../core/board-geometry\";\nimport { autoWires, obstacles, wireLabel } from \"../core/free-board\";\nimport { LINE_ICON_SVG } from \"./line-icons\";\nimport { ILLUSTRATION_SVG } from \"./illustrations\";\nimport { useBoard, type HistoryEntry, type PendingBatch } from \"./useBoard\";\nimport { AnimatePresence, animate, cubicBezier, motion, useMotionValue, useReducedMotion, type AnimationPlaybackControls } from \"motion/react\";\nimport { diffBoards, paceOf, stepsOf, type Point, type Step } from \"./diff\";\nimport { earliestRebuildable, freshActivity, initialMachine, machine, modeOf } from \"./boardMachine\";\nimport { AgentCursor, BatchPill, Caption, EdgeMarker, HistoryStrip, ScrubBanner } from \"./Choreo\";\nimport { POP_IN, POP_UP } from \"./pop\";\nimport { D } from \"./motion\";\nimport { boxArrow, brushOf, headPath, liveStroke, roughLine, roughOutline, type Brush, type BrushSize, type InkShape } from \"./ink\";\nimport { agentMayMove, centreOn, isLongMove, planCamera, readableView, stepCamera, zoomPath } from \"./camera\";\nimport { arcPoint, liveFootprints, planBounds, springEasing } from \"./motionKit\";\nimport { chime, setSoundOn, soundOn, thud } from \"./sound\";\nimport { factorOf, readTempo, saveTempo, TEMPOS, type Tempo } from \"./tempo\";\nimport type { PlannedItem } from \"../core/boards\";\n\n/**\n * The entrances' timing as CSS custom properties, scaled by the viewer's tempo: springs for cards and stamps matched to\n * the motion/react springs around them, and the draw, drop, ring and typing times of everything else.\n */\nfunction tempoVars(f: number): React.CSSProperties {\n const card = springEasing(BOARD.springs.card.visualDuration * f, BOARD.springs.card.bounce);\n const stamp = springEasing(BOARD.springs.stamp.visualDuration * f, BOARD.springs.stamp.bounce);\n const E = BOARD.enter, ms = (v: number) => `${Math.round(v * f)}ms`;\n return {\n \"--sp-wb-card-ms\": `${card.ms}ms`, \"--sp-wb-card-ease\": card.css,\n \"--sp-wb-stamp-ms\": `${stamp.ms}ms`, \"--sp-wb-stamp-ease\": stamp.css,\n \"--sp-wb-char-ms\": `${Math.round((1000 / E.typeCps) * f * 10) / 10}ms`, \"--sp-wb-type-min\": ms(E.typeMinMs),\n \"--sp-wb-road-ms\": ms(E.roadMs), \"--sp-wb-link-ms\": ms(E.linkMs), \"--sp-wb-sticker-ms\": ms(E.stickerMs), \"--sp-wb-ring-ms\": ms(E.ringMs),\n \"--sp-wb-heading-ms\": ms(E.headingMs), \"--sp-wb-frame-ms\": ms(E.frameMs), \"--sp-wb-cell-ms\": ms(E.cellMs), \"--sp-wb-dot-ms\": ms(E.dotMs),\n \"--sp-wb-fade-ms\": ms(E.fadeMs), \"--sp-wb-art-ms\": ms(E.artMs), \"--sp-wb-hand-ms\": ms(E.handMs),\n \"--sp-wb-onion-ms\": `${BOARD.onionMs}ms`,\n } as React.CSSProperties;\n}\n\nconst COLOR_NAME: Record<NoteColor, string> = WB.colors;\nconst SWATCHES: NoteColor[] = [\"paper\", \"ink\", \"red\", \"yellow\", \"blue\", \"green\", \"pink\", \"gray\"];\ntype BoxShape = \"box\" | \"ellipse\" | \"cloud\" | \"cylinder\" | Polygon;\n/** Pen ink: the product's ink, the stamp's blue and the danger red, stored as the note colour. */\ntype InkColor = \"ink\" | \"blue\" | \"red\";\nconst INK_COLORS: InkColor[] = [\"ink\", \"blue\", \"red\"];\nconst BOX_SHAPES: { id: BoxShape; label: string }[] = ([\"box\", \"ellipse\", \"cloud\", \"cylinder\", \"diamond\", \"triangle\", \"pentagon\", \"hexagon\", \"parallelogram\"] as const).map((id) => ({ id, label: WB.shapes[id] }));\nconst SIZES: { id: TextSize; label: string }[] = [{ id: \"s\", label: WB.sizes.s }, { id: \"m\", label: WB.sizes.m }, { id: \"l\", label: WB.sizes.l }, { id: \"xl\", label: WB.sizes.xl }];\nconst MIN_Z = BOARD.minZoom;\nconst MAX_Z = BOARD.maxZoom;\nconst clampZ = (z: number) => Math.min(MAX_Z, Math.max(MIN_Z, z));\nconst RULE = BOARD.rule;\nconst PRESENCE_MS = BOARD.presenceMs;\n\ntype Tool = \"select\" | \"pan\" | \"text\" | \"frame\" | \"note\" | \"pen\" | \"shape\" | \"link\";\ntype View = { x: number; y: number; z: number };\ntype Rect = { x: number; y: number; w: number; h: number };\ntype Drag =\n | { kind: \"pan\"; sx: number; sy: number; vx: number; vy: number }\n | { kind: \"box\"; wx: number; wy: number }\n | { kind: \"frameDraw\"; wx: number; wy: number }\n | { kind: \"notes\"; sx: number; sy: number; ids: string[] }\n | { kind: \"frame\"; sx: number; sy: number; id: string; ids: string[] }\n | { kind: \"resize\"; sx: number; sy: number; id: string; frame: boolean; w: number; h: number; min: { w: number; h: number } }\n | { kind: \"link\"; from: string }\n | { kind: \"pen\"; pts: number[]; pr: number[]; real: boolean };\n\nconst shapeOf = (n: WbNote): Shape => n.shape ?? \"note\";\nconst isBoxy = (s: Shape): s is BoxShape => OUTLINED.has(s);\n\n/** Roads and matrix cells lie under the cards, links and labels drawn on them. */\nconst UNDER: Partial<Record<Shape, number>> = { track: 0, cell: 1 };\nconst layered = (notes: WbNote[]) => (notes.some((n) => n.shape && n.shape in UNDER) ? [...notes].sort((a, b) => (UNDER[shapeOf(a)] ?? 2) - (UNDER[shapeOf(b)] ?? 2)) : notes);\n\nfunction bounds(rects: Rect[]) {\n if (!rects.length) return null;\n const x0 = Math.min(...rects.map((r) => r.x)), y0 = Math.min(...rects.map((r) => r.y));\n const x1 = Math.max(...rects.map((r) => r.x + r.w)), y1 = Math.max(...rects.map((r) => r.y + r.h));\n return { x0, y0, x1, y1 };\n}\n\n/** A connector's points: it leaves the side facing the target; elbow routes bend once or twice at the midpoint. */\nfunction routeOf(a: Rect, c: Rect, elbow: boolean): number[] {\n const ax = a.x + a.w / 2, ay = a.y + a.h / 2, cx = c.x + c.w / 2, cy = c.y + c.h / 2;\n const horiz = Math.abs(cx - ax) - (a.w + c.w) / 2 > Math.abs(cy - ay) - (a.h + c.h) / 2;\n if (horiz) {\n const x1 = cx > ax ? a.x + a.w : a.x, x2 = cx > ax ? c.x : c.x + c.w;\n if (!elbow || Math.abs(ay - cy) < 1) return elbow ? [x1, ay, x2, ay] : [x1, ay, x2, cy];\n const mx = (x1 + x2) / 2;\n return [x1, ay, mx, ay, mx, cy, x2, cy];\n }\n const y1 = cy > ay ? a.y + a.h : a.y, y2 = cy > ay ? c.y : c.y + c.h;\n if (!elbow || Math.abs(ax - cx) < 1) return elbow ? [ax, y1, ax, y2] : [ax, y1, cx, y2];\n const my = (y1 + y2) / 2;\n return [ax, y1, ax, my, cx, my, cx, y2];\n}\n/**\n * How long an item takes to finish appearing at Tenang, by the same numbers its CSS entrance uses: a card pops, its\n * drawing settles, its title types letter by letter and its words fade in; a heading types; a link draws.\n */\n/** The smallest font, in board units, of the words in an item (already in the DOM, drawn or still pending). */\nfunction smallestFont(root: HTMLElement, id: string): number {\n const box = root.querySelector(`[data-note=\"${CSS.escape(id)}\"]`);\n let f = 0;\n for (const el of box?.querySelectorAll<HTMLElement>(\".sp-wb-text, .sp-wb-title-line, .sp-wb-body > strong, .sp-wb-body > span, .sp-wb-tag\") ?? []) {\n const px = parseFloat(getComputedStyle(el).fontSize);\n if (px && (!f || px < f)) f = px;\n }\n return f;\n}\n/** How long the hand types an item, at Tenang: the title at a writing pace, the words below it faster, line by line. */\nfunction typingMs(n: { title?: string; text?: string; owner?: string; due?: string } | undefined, heading = false): { title: number; body: number; lines: number } {\n const E = BOARD.enter, t = (n?.title ?? \"\").length, x = (n?.text ?? \"\").length + (n?.owner ?? \"\").length + (n?.due ?? \"\").length;\n // A short heading is written like a title; a long line of context goes at the body's pace.\n const all = t || x;\n if (heading) return { title: all <= 60 ? Math.max(E.typeMinMs, (all * 1000) / E.typeCps) : Math.min(E.bodyMaxMs, (all * 1000) / E.bodyCps), body: 0, lines: Math.ceil(all / 40) };\n return { title: t ? Math.max(E.typeMinMs, (t * 1000) / E.typeCps) : 0, body: x ? Math.min(E.bodyMaxMs, (x * 1000) / E.bodyCps) : 0, lines: Math.ceil(t / 30) + Math.ceil(x / 38) };\n}\nfunction entranceMs(st: Step, b: Board | null): number {\n const E = BOARD.enter, n = b?.notes.find((x) => x.id === st.id);\n const ty = typingMs(n, st.kind === \"heading\"), typed = ty.title + ty.body + ty.lines * E.lineHopMs;\n switch (st.kind) {\n case \"card\": return Math.max(BOARD.springs.card.visualDuration * 1000, E.artMs * 0.55 + typed);\n case \"heading\": return E.handMs + typed;\n case \"link\": return E.handMs + E.linkMs;\n case \"track\": return E.roadMs;\n case \"frame\": return E.frameMs * 1.4;\n case \"sticker\": return E.stickerMs;\n case \"pill\": return BOARD.springs.stamp.visualDuration * 1000;\n case \"dot\": return E.dotMs;\n case \"cell\": return E.cellMs;\n default: return 0;\n }\n}\nconst pathOf = (p: number[]) => p.reduce((d, v, i) => (i % 2 ? `${d} ${v}` : `${d}${i ? \" L\" : \"M\"} ${v}`), \"\");\n\n/** A smooth path through the points (Catmull-Rom as cubic Béziers): the timeline road and its bends. */\nfunction smoothOf(p: number[]): string {\n const n = p.length / 2;\n if (n < 2) return \"\";\n if (n === 2) return `M ${p[0]} ${p[1]} L ${p[2]} ${p[3]}`;\n const at = (i: number) => [p[Math.max(0, Math.min(n - 1, i)) * 2], p[Math.max(0, Math.min(n - 1, i)) * 2 + 1]];\n let d = `M ${p[0]} ${p[1]}`;\n for (let i = 0; i < n - 1; i++) {\n const [x0, y0] = at(i - 1), [x1, y1] = at(i), [x2, y2] = at(i + 1), [x3, y3] = at(i + 2);\n d += ` C ${x1 + (x2 - x0) / 6} ${y1 + (y2 - y0) / 6}, ${x2 - (x3 - x1) / 6} ${y2 - (y3 - y1) / 6}, ${x2} ${y2}`;\n }\n return d;\n}\n\ntype Geo = { d: string; mid: { x: number; y: number }; start: [number, number]; end: [number, number]; endAngle: number; startAngle: number; q?: number[]; poly?: number[] };\nconst ASK_SPRING = { visualDuration: 0.34, bounce: 0.08 } as const;\nconst ROUTE_NEXT = { auto: \"elbow\", elbow: \"curve\", curve: \"straight\", straight: \"auto\" } as const;\n/** Elbows keep their orthogonal routing; curved and straight arrows come from perfect-arrows. */\nfunction geoOf(a: Rect, c: Rect, route: WbLink[\"route\"]): Geo {\n if (route === \"curve\" || route === \"straight\") return boxArrow(a, c, route);\n const p = routeOf(a, c, true);\n const k = p.length;\n return {\n d: pathOf(p), mid: midOf(p), start: [p[0], p[1]], end: [p[k - 2], p[k - 1]], poly: p,\n endAngle: Math.atan2(p[k - 1] - p[k - 3], p[k - 2] - p[k - 4]), startAngle: Math.atan2(p[1] - p[3], p[0] - p[2]),\n };\n}\n/** A routed wire's drawing: its polyline, with the arrowhead on its last run. */\nfunction polyGeo(p: number[]): Geo {\n const k = p.length;\n return { d: pathOf(p), mid: midOf(p), start: [p[0], p[1]], end: [p[k - 2], p[k - 1]], poly: p, endAngle: Math.atan2(p[k - 1] - p[k - 3], p[k - 2] - p[k - 4]), startAngle: Math.atan2(p[1] - p[3], p[0] - p[2]) };\n}\nconst midOf = (p: number[]) => {\n const k = p.length / 2;\n if (k === 2) return { x: (p[0] + p[2]) / 2, y: (p[1] + p[3]) / 2 };\n const i = Math.floor((k - 1) / 2) * 2;\n return { x: (p[i] + p[i + 2]) / 2, y: (p[i + 1] + p[i + 3]) / 2 };\n};\n\n/** A board illustration by name (vendored Naive Icons, trusted static markup). Unknown names, such as emoji from older boards, draw nothing. */\nconst Art = memo(function Art({ name, className, size }: { name?: string; className: string; size?: number }) {\n // A line drawing takes the ink of the item it sits in.\n if (isLineIcon(name)) return <svg className={`${className} sp-wb-line-icon`} aria-hidden viewBox=\"0 0 24 24\" fill=\"none\" stroke=\"currentColor\" strokeWidth={1.6} strokeLinecap=\"round\" strokeLinejoin=\"round\" style={size ? { width: size, height: size } : undefined} dangerouslySetInnerHTML={{ __html: LINE_ICON_SVG[name] }} />;\n if (!isIllustration(name)) return null;\n return <span className={className} aria-hidden style={size ? { width: size, height: size } : undefined} dangerouslySetInnerHTML={{ __html: ILLUSTRATION_SVG[name] }} />;\n});\n\n// ---------- Toolbar icons (always shown with their label) ----------\nconst Svg = ({ children }: { children: ReactNode }) => <svg width=\"16\" height=\"16\" viewBox=\"0 0 24 24\" fill=\"none\" stroke=\"currentColor\" strokeWidth=\"1.7\" strokeLinecap=\"round\" strokeLinejoin=\"round\" aria-hidden>{children}</svg>;\nconst TOOL_ICON: Record<Exclude<Tool, \"shape\">, ReactNode> = {\n select: <Svg><path d=\"M5 3.5 18 11l-6 1.6L9.4 19z\" /></Svg>,\n pan: <Svg><path d=\"M8 11V5.5a1.5 1.5 0 0 1 3 0V11m0-1V4.5a1.5 1.5 0 0 1 3 0V11m0-.5V6.5a1.5 1.5 0 0 1 3 0V14a6 6 0 0 1-6 6h-.6a6 6 0 0 1-4.6-2.2L4 14.5a1.5 1.5 0 0 1 2.3-1.9L8 14.5\" /></Svg>,\n text: <Svg><path d=\"M5 6V4.5h14V6M12 4.5v15M9 19.5h6\" /></Svg>,\n frame: <Svg><path d=\"M8 3v18M16 3v18M3 8h18M3 16h18\" /></Svg>,\n note: <Svg><path d=\"M5 4.5h14v9.5l-5.5 5.5H5z\" /><path d=\"M13.5 19.5V14H19\" /></Svg>,\n pen: <Svg><path d=\"m15 5 4 4L8 20H4v-4z\" /></Svg>,\n link: <Svg><path d=\"M4 18 18 6M11 6h7v7\" /></Svg>,\n};\nconst SHAPE_ICON = <Svg><rect x=\"4\" y=\"6\" width=\"16\" height=\"12\" rx=\"1\" /></Svg>;\nconst STICKER_ICON = <Svg><circle cx=\"12\" cy=\"12\" r=\"8.5\" /><path d=\"M9 10h.01M15 10h.01M8.5 14a4.5 4.5 0 0 0 7 0\" /></Svg>;\nconst AGENT_ICON = <Svg><path d=\"M5 12c3-5 4 5 7 0s4 5 7 0\" /></Svg>;\nconst HISTORY_ICON = <Svg><path d=\"M4 12a8 8 0 1 0 2.4-5.7M4 4v4h4\" /><path d=\"M12 8v4l3 2\" /></Svg>;\nconst sleep = (ms: number) => new Promise<void>((r) => setTimeout(r, ms));\n/** Items a choreography step reveals; \"change\" steps only move the cursor (the change itself is ringed in ink). */\nconst reveals = (s: Step) => s.kind !== \"change\";\n\nfunction ShapeBg({ shape }: { shape: Shape }) {\n if (shape === \"cloud\") return (\n <svg className=\"sp-wb-shape-bg\" viewBox=\"0 0 100 62\" preserveAspectRatio=\"none\" aria-hidden>\n <path vectorEffect=\"non-scaling-stroke\" d=\"M24 56C9 56 4 42 15 36 11 22 27 12 39 19 45 6 68 5 74 20 89 15 99 31 89 40 97 52 84 58 75 56Z\" />\n </svg>\n );\n if (shape === \"cylinder\") return (\n <svg className=\"sp-wb-shape-bg\" viewBox=\"0 0 100 100\" preserveAspectRatio=\"none\" aria-hidden>\n <path vectorEffect=\"non-scaling-stroke\" d=\"M2 12V88A48 10 0 0 0 98 88V12\" />\n <ellipse vectorEffect=\"non-scaling-stroke\" cx=\"50\" cy=\"12\" rx=\"48\" ry=\"10\" />\n </svg>\n );\n return null;\n}\n\n/** A pen mark: one filled outline, scaled with the item when it is resized; sharp at any zoom. */\nconst Ink = memo(function Ink({ n, w, h }: { n: WbNote; w: number; h: number }) {\n const pts = n.points ?? [];\n let x0 = Infinity, y0 = Infinity, x1 = 1, y1 = 1;\n for (let i = 0; i < pts.length; i += 2) { x0 = Math.min(x0, pts[i]); y0 = Math.min(y0, pts[i + 1]); x1 = Math.max(x1, pts[i]); y1 = Math.max(y1, pts[i + 1]); }\n // The stroke sits in its box with the same margin on every side, so the natural box is the far point plus that margin.\n const vw = x1 + (Number.isFinite(x0) ? Math.max(0, x0) : 0), vh = y1 + (Number.isFinite(y0) ? Math.max(0, y0) : 0);\n const brush = n.brush ?? \"pena\";\n const size: BrushSize = n.size === \"l\" || n.size === \"xl\" ? \"l\" : n.size === \"m\" ? \"m\" : \"s\";\n const st = useMemo(() => brushOf(n.id, pts, n.pressure, size, brush, n.weight), [n.id, pts, n.pressure, size, brush, n.weight]);\n return (\n <svg className=\"sp-wb-ink\" data-brush={brush} width={w} height={h} viewBox={`0 0 ${vw} ${vh}`} preserveAspectRatio=\"none\" aria-hidden>\n <path d={st.body} />\n </svg>\n );\n});\n\n/** The hand-inked outline of a shape, section or cell (roughjs), drawn over its fill; cached per item and size. */\nconst RoughOutline = memo(function RoughOutline({ id, shape, w, h }: { id: string; shape: InkShape; w: number; h: number }) {\n const paths = roughOutline(id, shape, w, h);\n return (\n <svg className=\"sp-wb-rough\" data-rough={shape} width={w} height={h} viewBox={`0 0 ${Math.round(w)} ${Math.round(h)}`} aria-hidden>\n {paths.map((d, i) => <path key={i} d={d} pathLength={1} />)}\n </svg>\n );\n});\n\n/** Shapes whose whole text is one line or block, edited as is. */\nconst TEXTY = new Set<Shape>([\"text\", \"pill\", \"dot\", \"cell\", \"sticker\"]);\n/** The timeline road: a thick rounded band through its points, drawn under everything else. */\nfunction Track({ n, w, h }: { n: WbNote; w: number; h: number }) {\n const d = smoothOf(n.points ?? []);\n return (\n <svg className=\"sp-wb-track\" width={w} height={h} viewBox={`0 0 ${w} ${h}`} aria-hidden>\n <path className=\"sp-wb-track-edge\" d={d} pathLength={1} />\n <path className=\"sp-wb-track-road\" d={d} pathLength={1} />\n </svg>\n );\n}\n\n/** The width of one letter of an arrow's label (Patrick Hand at 19px, with slack). */\nconst LINK_CHAR = 19 * BOARD_DATA.draw.sketch.lower * BOARD_DATA.draw.sketch.wrapSlack;\n\n/** A sketched item's lettering, from the numbers the board measured it with, so the words fit the outline drawn for them. */\nfunction sketchVars(shape: Shape, size: WbNote[\"size\"] = \"m\"): React.CSSProperties {\n const S = SKETCH, px = (n: number) => `${n}px`;\n if (shape === \"text\") { const t = S.words[size]; return { \"--sp-wb-fs\": px(t.size), \"--sp-wb-lh\": px(t.lh), \"--sp-wb-case\": t.upper ? \"uppercase\" : \"none\" } as React.CSSProperties; }\n const t = S.block[size];\n return { \"--sp-wb-ts\": px(t.title), \"--sp-wb-tl\": px(t.titleLh), \"--sp-wb-fs\": px(t.text), \"--sp-wb-lh\": px(t.textLh), \"--sp-wb-is\": px(t.icon), \"--sp-wb-pad\": px(S.pad) } as React.CSSProperties;\n}\n\nconst draftOf = (n: WbNote) => {\n const s = shapeOf(n);\n if (TEXTY.has(s) || (s === \"note\" && !n.title)) return n.text;\n return n.title ? (n.text ? `${n.title}\\n${n.text}` : n.title) : n.text;\n};\n\nconst Item = memo(function Item({ n, selected, hot, born, leaving, leaveDelay, drag, dx, dy, w, h, target, editing, inked, pending, enter, onCommit, onCancel }: {\n n: WbNote; selected: boolean; hot: boolean; born: boolean; leaving?: boolean; leaveDelay?: number; drag: boolean; dx: number; dy: number; w: number; h: number; target: boolean; editing: boolean;\n /** Not drawn yet: the choreography reveals it in its turn. */\n pending?: boolean;\n /** Its entrance is playing, by kind (pill stamps in, card pops, track draws...). */\n enter?: string;\n /** The board's ink look: shapes and cells get a hand-inked outline instead of a clean one. */\n inked: boolean;\n onCommit: (id: string, text: string) => void; onCancel: () => void;\n}) {\n const shape = shapeOf(n);\n const [draft, setDraft] = useState(() => draftOf(n));\n useEffect(() => { if (editing) setDraft(draftOf(n)); }, [editing]); // eslint-disable-line react-hooks/exhaustive-deps\n const label = n.title ? `${n.title}. ${n.text}` : n.text;\n return (\n <div\n className=\"sp-wb-note\" data-note={n.id} data-shape={shape} data-color={n.color} data-size={shape === \"text\" ? n.size ?? \"m\" : undefined} data-big={shape === \"text\" || shape === \"sticker\" || n.pen || h < BOARD.big.h ? undefined : w >= BOARD.big.xl ? \"xl\" : w >= BOARD.big.l ? \"l\" : undefined} data-icon={(isIllustration(n.icon) || isLineIcon(n.icon)) && shape !== \"sticker\" ? \"\" : undefined} data-pen={n.pen} data-dashed={n.dashed || undefined}\n data-selected={selected || undefined} data-hot={hot || undefined} data-born={(born && !enter && !pending) || undefined} data-leaving={leaving || undefined} data-moving={drag || undefined} data-target={target || undefined}\n data-pending={pending || undefined} data-enter={enter} aria-hidden={pending || undefined}\n tabIndex={0} role=\"button\" aria-label={shape === \"ink\" ? WB.inkAria : WB.itemAria(shape === \"note\" ? WB.note : shape === \"text\" ? WB.text : WB.shape, label.slice(0, BOARD.labelAria))} aria-pressed={selected}\n style={{ translate: `${n.x + dx}px ${n.y + dy}px`, width: w, height: h, ...(leaveDelay ? { animationDelay: `${leaveDelay}ms` } : {}),\n // A title or heading types at a steady pace, so its length sets how long it takes.\n ...(enter ? { \"--sp-wb-chars\": String(Math.max(4, Math.min(60, (n.title || n.text).length))) } as React.CSSProperties : {}),\n ...(n.pen ? sketchVars(shape, n.size) : {}) }}\n >\n <ShapeBg shape={shape} />\n {(inked || n.pen || isPolygon(shape)) && (isBoxy(shape) || shape === \"cell\" || (n.pen && shape === \"pill\")) && <RoughOutline id={n.id} shape={shape as InkShape} w={w} h={h} />}\n {shape === \"ink\" ? <Ink n={n} w={w} h={h} /> : shape === \"track\" ? <Track n={n} w={w} h={h} /> : editing ? (\n <textarea\n className=\"sp-wb-edit\" dir=\"auto\" autoFocus value={draft} maxLength={BOARD.noteMax}\n aria-label={isBoxy(shape) || shape === \"note\" ? WB.titleAndBody : WB.body}\n placeholder={isBoxy(shape) ? WB.title : shape === \"text\" ? WB.text : WB.note}\n onChange={(e) => setDraft(e.target.value)}\n onBlur={() => onCommit(n.id, draft)}\n onKeyDown={(e) => {\n e.stopPropagation();\n if (e.key === \"Escape\") onCancel();\n else if (e.key === \"Enter\" && (e.metaKey || e.ctrlKey || (TEXTY.has(shape) && !e.shiftKey))) { e.preventDefault(); (e.target as HTMLTextAreaElement).blur(); }\n }}\n />\n ) : shape === \"sticker\" ? (\n <>\n <Art name={n.icon} className=\"sp-wb-sticker\" size={Math.round(Math.min(w, h - (n.text ? BOARD.stickerCaption : 0)) * BOARD.stickerScale)} />\n {n.text && <span className=\"sp-wb-caption\" dir=\"auto\">{n.text}</span>}\n </>\n ) : shape === \"pill\" || shape === \"dot\" ? (\n <span className=\"sp-wb-tag\" dir=\"auto\">{n.text}</span>\n ) : shape === \"cell\" ? (\n n.text ? <span className=\"sp-wb-cell-label\" dir=\"auto\">{n.text}</span> : null\n ) : shape === \"note\" ? (\n <>\n <Art name={n.icon} className=\"sp-wb-icon\" />\n {n.title && <strong className=\"sp-wb-title-line\" dir=\"auto\">{n.title}</strong>}\n {/* As many lines as the note is tall: a note sized for its words shows all of them. */}\n <p className=\"sp-wb-text\" dir=\"auto\" style={{ WebkitLineClamp: Math.max(BOARD.noteLines.min, Math.floor((h - BOARD.noteLines.chrome - wrapLines(n.title, STICKY_DATA.titleCharW, w - STICKY_DATA.pad) * STICKY_DATA.titleLh) / BOARD.noteLines.lh)) }}>{n.text || (!n.title && <span className=\"sp-wb-placeholder\">{WB.emptyNote}</span>)}</p>\n {(n.owner || n.due) && <p className=\"sp-wb-meta\" dir=\"auto\">{[n.owner ? WB.owner(n.owner) : null, n.due ? WB.due(n.due) : null].filter(Boolean).join(\" · \")}</p>}\n <p className=\"sp-wb-by\" dir=\"auto\">{n.by}</p>\n </>\n ) : shape === \"text\" ? (\n <p className=\"sp-wb-text\" dir=\"auto\">{n.text || <span className=\"sp-wb-placeholder\">{WB.text}</span>}</p>\n ) : (\n <div className=\"sp-wb-body\" style={isPolygon(shape) ? { padding: polygonPad(shape, w, h).map((v) => `${v + SKETCH.pad}px`).join(\" \") } : undefined}>\n <Art name={n.icon} className=\"sp-wb-icon\" />\n {n.title && <strong dir=\"auto\">{n.title}</strong>}\n {n.text && <span dir=\"auto\">{n.text}</span>}\n {!n.title && !n.text && !n.icon && <span className=\"sp-wb-placeholder\">{WB.shape}</span>}\n {(n.owner || n.due) && <em dir=\"auto\">{[n.owner ? WB.owner(n.owner) : null, n.due].filter(Boolean).join(\" · \")}</em>}\n </div>\n )}\n {!editing && <span className=\"sp-wb-resize\" data-resize={n.id} aria-hidden title={WB.resize} />}\n </div>\n );\n});\n\nconst FrameBox = memo(function FrameBox({ f, dx, dy, w, h, target, hot, born, leaving, leaveDelay, editing, inked, pending, enter, onCommit, onCancel }: {\n f: WbFrame; dx: number; dy: number; w: number; h: number; target: boolean; hot: boolean; born: boolean; leaving?: boolean; leaveDelay?: number; editing: boolean; inked: boolean; pending?: boolean; enter?: string; onCommit: (id: string, title: string) => void; onCancel: () => void;\n}) {\n const [draft, setDraft] = useState(f.title);\n useEffect(() => { if (editing) setDraft(f.title); }, [editing, f.title]);\n return (\n // A section with no name is an open area (a timeline, a free cluster): no card around it, the content stands alone.\n <div className=\"sp-wb-frame\" data-open={(!f.title && !editing) || undefined} data-target={target || undefined} data-hot={hot || undefined} data-born={(born && !enter && !pending) || undefined} data-leaving={leaving || undefined} data-pending={pending || undefined} data-enter={enter} style={{ translate: `${f.x + dx}px ${f.y + dy}px`, width: w, height: h, ...(leaveDelay ? { animationDelay: `${leaveDelay}ms` } : {}) }}>\n {inked && f.title && <RoughOutline id={f.id} shape=\"frame\" w={w} h={h} />}\n <div className=\"sp-wb-frame-head\" data-frame={f.id} title={WB.frameHead}>\n {editing ? (\n <input\n className=\"sp-wb-frame-input\" dir=\"auto\" autoFocus value={draft} maxLength={INPUT_MAX.frameName} aria-label={WB.frameName}\n onChange={(e) => setDraft(e.target.value)} onBlur={() => onCommit(f.id, draft)}\n onKeyDown={(e) => { e.stopPropagation(); if (e.key === \"Escape\") onCancel(); else if (e.key === \"Enter\") (e.target as HTMLInputElement).blur(); }}\n />\n ) : (\n <>\n <strong dir=\"auto\">{f.title || WB.untitled}</strong>\n {f.subtitle && <span dir=\"auto\">{f.subtitle}</span>}\n </>\n )}\n </div>\n <span className=\"sp-wb-resize\" data-resize={f.id} data-resize-frame aria-hidden title={WB.resizeFrame} />\n </div>\n );\n});\n\nfunction Links({ b, rect, selected, preview, inked, hidden, enter }: {\n b: Board; rect: (id: string) => Rect | null; selected: string | null; preview: { a: Rect; x: number; y: number } | null; inked: boolean;\n /** Links (and links to items) not drawn yet by the choreography; `enter`: links whose draw-in is playing. */\n hidden: Set<string>; enter: Map<string, string>;\n}) {\n // Wires the board routes itself: around every item where it stands now, in drawing order, as the server placed them.\n const autos = autoWires(b.links);\n const items = autos.length ? obstacles(b.notes) : null;\n if (items) for (const [id, it] of items) { const r = rect(id); if (r) items.set(id, { ...it, x: r.x, y: r.y, w: r.w, h: r.h }); }\n const sig = items ? [...items.values()].map((r) => `${Math.round(r.x)},${Math.round(r.y)},${Math.round(r.w)},${Math.round(r.h)}`).join(\";\") + \"|\" + autos.map((l) => `${l.from}>${l.to}:${l.label ?? \"\"}`).join(\";\") : \"\";\n const routed = useMemo(() => (items ? routeWires(items, autos.map((l) => ({ from: l.from, to: l.to, ...(l.label ? { label: l.label } : {}) })), wireLabel) : new Map<number, Routed>()), [sig]); // eslint-disable-line react-hooks/exhaustive-deps\n if (!b.links.length && !preview) return null;\n return (\n <svg className=\"sp-wb-links\" width=\"1\" height=\"1\" aria-hidden>\n {b.links.map((l) => {\n if (hidden.has(l.id) || hidden.has(l.from) || hidden.has(l.to)) return null;\n const a = rect(l.from), c = rect(l.to);\n if (!a || !c) return null;\n const auto = l.route === \"auto\" ? routed.get(autos.indexOf(l)) : undefined;\n const g = auto ? polyGeo(auto.pts) : geoOf(a, c, l.route);\n const m = auto?.label ? { x: auto.label.x + auto.label.w / 2, y: auto.label.y + auto.label.h / 2 } : g.mid;\n const arrow = l.arrow ?? \"end\";\n const on = selected === l.id;\n // Inked lines only while still; a selected or dashed line keeps the clean stroke so its state reads exactly.\n const rough = inked && !on && !l.dashed ? roughLine(l.id, g) : null;\n return (\n <g key={l.id} className=\"sp-wb-link-g\" data-selected={on || undefined} data-dashed={l.dashed || undefined} data-thin={arrow === \"none\" || undefined} data-route={l.route ?? \"elbow\"} data-layer={l.layer || undefined} data-inked={rough ? \"\" : undefined} data-enter={enter.get(l.id)}>\n {/* A normalised length only while drawing in: dashed lines measure their dashes in real units. */}\n {rough ? rough.map((d, i) => <path key={i} d={d} className=\"sp-wb-link-line\" pathLength={enter.has(l.id) ? 1 : undefined} />) : <path d={g.d} className=\"sp-wb-link-line\" pathLength={enter.has(l.id) ? 1 : undefined} />}\n {arrow !== \"none\" && <path d={headPath(g.end[0], g.end[1], g.endAngle)} className=\"sp-wb-arrowhead\" />}\n {arrow === \"both\" && <path d={headPath(g.start[0], g.start[1], g.startAngle)} className=\"sp-wb-arrowhead\" />}\n {l.route === \"curve\" && arrow === \"end\" && <circle cx={g.start[0]} cy={g.start[1]} r={3.5} className=\"sp-wb-link-tail\" />}\n <path d={g.d} className=\"sp-wb-link-hit\" data-link={l.id} />\n {l.label && (\n <g transform={`translate(${m.x} ${m.y})`} className=\"sp-wb-link-label\">\n <rect x={-(l.label.length * LINK_CHAR / 2 + 12)} y={-15} width={l.label.length * LINK_CHAR + 24} height={30} rx={8} />\n <text textAnchor=\"middle\" dy=\"4\">{l.label}</text>\n </g>\n )}\n {on && <><circle cx={g.start[0]} cy={g.start[1]} r={4} className=\"sp-wb-link-end\" /><circle cx={g.end[0]} cy={g.end[1]} r={4} className=\"sp-wb-link-end\" /></>}\n </g>\n );\n })}\n {preview && (() => {\n const p = routeOf(preview.a, { x: preview.x, y: preview.y, w: 1, h: 1 }, true), k = p.length;\n return <><path className=\"sp-wb-link-preview\" d={pathOf(p)} /><path className=\"sp-wb-arrowhead\" d={headPath(p[k - 2], p[k - 1], Math.atan2(p[k - 1] - p[k - 3], p[k - 2] - p[k - 4]))} /></>;\n })()}\n </svg>\n );\n}\n\nconst TOOLS: { id: Tool; label: string; key: string }[] = [\n { id: \"select\", label: WB.tools.select, key: \"V\" }, { id: \"pan\", label: WB.tools.pan, key: \"H\" }, { id: \"text\", label: WB.tools.text, key: \"T\" }, { id: \"frame\", label: WB.tools.frame, key: \"F\" },\n { id: \"note\", label: WB.tools.note, key: \"N\" }, { id: \"pen\", label: WB.tools.pen, key: \"P\" }, { id: \"shape\", label: WB.tools.shape, key: \"S\" }, { id: \"link\", label: WB.tools.link, key: \"A\" },\n];\nconst KEY_TOOL: Record<string, Tool> = { v: \"select\", h: \"pan\", t: \"text\", f: \"frame\", n: \"note\", p: \"pen\", s: \"shape\", a: \"link\" };\n\nexport type WhiteboardProps = {\n /** The board to show; used for per-board preferences. */\n boardId: string;\n /** The board's short reference, shown in its header and quoted in questions to the agent (\"WB-3\"). */\n boardRef: string;\n title: string;\n /** How the board is loaded and saved. */\n transport: BoardTransport;\n /** A board drawn without a server (a gallery or a test): read-only, nothing is loaded or saved. */\n preview?: Board;\n /** Sends a question about the board to the agent; the ask controls are hidden without it. */\n onAsk?: (question: string) => void;\n};\n\n/** A live whiteboard: people and the agent draw on it together; edits are saved through the transport. */\nexport function Whiteboard({ boardId, boardRef: reference, title, transport, preview, onAsk }: WhiteboardProps) {\n const data = { boardId, ref: reference, preview };\n const ctx = { onAsk: onAsk ?? (() => {}) };\n const { board: latest, error, saving, apply: applyLive, reload, boost, activity, remote, history, at, restore, pendingBatch, keepBatch, undoBatch } = useBoard(transport, boardId, preview);\n // The board's state machine, and the version on screen: the latest, or an older one while looking back in history.\n const [m, send] = useReducer(machine, initialMachine);\n const [scrubBoard, setScrubBoard] = useState<Board | null>(null);\n const board = scrubBoard ?? latest;\n const readOnly = m.scrub !== null || !!m.replay;\n const readOnlyRef = useRef(readOnly);\n readOnlyRef.current = readOnly;\n // History is read-only: nothing is written while an older version is on screen.\n const ownEditAt = useRef(0);\n const apply = useCallback((ops: BoardOp[]) => { if (!readOnlyRef.current) { ownEditAt.current = Date.now(); applyLive(ops); } }, [applyLive]);\n const viewRef = useRef<HTMLDivElement>(null);\n const bottomRef = useRef<number>(BOARD.fitBottom);\n const changeRef = useRef<HTMLInputElement>(null);\n /** The change box stays out of the way until \"Ask agent\" is pressed. */\n const [askOpen, setAskOpen] = useState(false);\n const [view, setView] = useState<View>(BOARD.startView);\n const [size, setSize] = useState<{ w: number; h: number }>(BOARD.startSize);\n const [tool, setTool] = useState<Tool>(\"select\");\n const [boxShape, setBoxShape] = useState<BoxShape>(\"box\");\n const [menu, setMenu] = useState<\"zoom\" | \"more\" | \"shape\" | \"sticker\" | \"pen\" | null>(null);\n const [inkColor, setInkColor] = useState<InkColor>(\"ink\");\n const [inkSize, setInkSize] = useState<BrushSize>(\"m\");\n const [inkBrush, setInkBrush] = useState<Brush>(\"pena\");\n // The board's look in this browser: hand-inked (default, Simpul's own) or clean vectors.\n const [look, setLook] = useState<\"ink\" | \"neat\">(\"ink\");\n useEffect(() => {\n try { const v = localStorage.getItem(BOARD.styleKey(data.boardId)); if (v === \"neat\" || v === \"ink\") setLook(v); } catch { /* storage unavailable */ }\n }, [data.boardId]);\n const pickLook = (v: \"ink\" | \"neat\") => {\n setLook(v);\n try { localStorage.setItem(BOARD.styleKey(data.boardId), v); } catch { /* storage unavailable */ }\n };\n const inked = look === \"ink\";\n // Sounds are off unless this browser turned them on.\n const [sound, setSound] = useState(false);\n useEffect(() => { setSound(soundOn()); }, []);\n // The tempo of everything the board animates, per browser: Tenang is the designed pace.\n const [tempo, setTempo] = useState<Tempo>(BOARD.tempo.default);\n useEffect(() => { setTempo(readTempo()); }, []);\n const tf = factorOf(tempo);\n const tRef = useRef(tf);\n tRef.current = tf;\n const vars = useMemo(() => tempoVars(tf), [tf]);\n const [full, setFull] = useState(false);\n const [selected, setSelected] = useState<Set<string>>(new Set());\n const [link, setLink] = useState<string | null>(null);\n const [editing, setEditing] = useState<string | null>(null);\n const [moving, setMoving] = useState<{ ids: Set<string>; dx: number; dy: number } | null>(null);\n const [sizing, setSizing] = useState<{ id: string; w: number; h: number } | null>(null);\n const [linking, setLinking] = useState<{ from: string; x: number; y: number; to: string | null } | null>(null);\n const [marquee, setMarquee] = useState<{ x0: number; y0: number; x1: number; y1: number; frame: boolean } | null>(null);\n /** True while a stroke is drawn; the live ink path itself is written straight to the DOM each frame. */\n const [pen, setPen] = useState(false);\n const penPath = useRef<SVGPathElement>(null);\n const [seen, setSeen] = useState<Set<string>>(new Set());\n const [question, setQuestion] = useState(\"\");\n const [change, setChange] = useState(\"\");\n const [labelDraft, setLabelDraft] = useState<string | null>(null);\n const [, setTick] = useState(0);\n const drag = useRef<Drag | null>(null);\n const boardRef = useRef(board);\n boardRef.current = board;\n const viewState = useRef(view);\n viewState.current = view;\n const fitted = useRef(false);\n const hasBoard = !!board;\n\n // Items that appear after the first load fade in; the first load does not animate everything at once.\n const known = useRef<Set<string> | null>(null);\n const born = useRef(new Set<string>());\n if (board) {\n const ids = [...board.notes.map((n) => n.id), ...board.frames.map((f) => f.id)];\n if (!known.current) known.current = new Set(ids);\n else for (const id of ids) if (!known.current.has(id)) { known.current.add(id); born.current.add(id); }\n }\n\n // Moves that arrive from elsewhere (the agent, another person, auto-layout) glide from where the item was shown\n // to where it now is; a local drag already sits at its drop point, so it does not move again. Links read the same\n // offsets, so wires travel with their items. Removed items fade out where they were.\n const reduce = useReducedMotion();\n const glides = useRef(new Map<string, { fx: number; fy: number; t0: number }>());\n const shownAt = useRef(new Map<string, { x: number; y: number }>());\n const leaving = useRef(new Map<string, { item: WbNote | WbFrame; frame: boolean; t0: number; delay: number }>());\n /** Set just before an undo lands: the order the agent drew its piece in, so it un-draws last-first. */\n const undoOrder = useRef<string[] | null>(null);\n const prevBoard = useRef<Board | null>(null);\n const [frameNow, setFrameNow] = useState(0);\n if (board && board !== prevBoard.current) {\n const before = prevBoard.current;\n if (before && !reduce) {\n const now = performance.now();\n for (const r of [...board.notes, ...board.frames]) {\n const at = shownAt.current.get(r.id);\n if (!at || moving?.ids.has(r.id)) continue;\n const fx = at.x - r.x, fy = at.y - r.y;\n if (Math.abs(fx) > 0.5 || Math.abs(fy) > 0.5) glides.current.set(r.id, { fx, fy, t0: now });\n }\n const ids = new Set([...board.notes.map((n) => n.id), ...board.frames.map((f) => f.id)]);\n const order = undoOrder.current;\n undoOrder.current = null;\n const gap = order ? tRef.current * Math.max(BOARD.choreo.minMs / 2, Math.min(BOARD.choreo.maxMs / 2, BOARD.choreo.totalMs / 2 / Math.max(1, order.length))) : 0;\n const delayOf = (id: string) => (order ? Math.max(0, order.indexOf(id)) * gap : 0);\n for (const n of before.notes) if (!ids.has(n.id)) leaving.current.set(n.id, { item: n, frame: false, t0: now + delayOf(n.id), delay: delayOf(n.id) });\n for (const f of before.frames) if (!ids.has(f.id)) leaving.current.set(f.id, { item: f, frame: true, t0: now + delayOf(f.id), delay: delayOf(f.id) });\n }\n prevBoard.current = board;\n }\n const glideOf = (id: string): [number, number] => {\n const g = glides.current.get(id);\n if (!g) return [0, 0];\n const t = Math.max(0, Math.min(1, (frameNow - g.t0) / (D.d4 * 1000)));\n const k = Math.pow(1 - t, 4);\n return [g.fx * k, g.fy * k];\n };\n const animating = glides.current.size > 0 || leaving.current.size > 0;\n useEffect(() => {\n if (!animating) return;\n let raf = 0;\n const tick = (now: number) => {\n for (const [id, g] of glides.current) if (now - g.t0 >= D.d4 * 1000) glides.current.delete(id);\n for (const [id, l] of leaving.current) if (now - l.t0 >= D.d2 * 1000) leaving.current.delete(id);\n setFrameNow(now);\n if (glides.current.size || leaving.current.size) raf = requestAnimationFrame(tick);\n };\n raf = requestAnimationFrame(tick);\n return () => cancelAnimationFrame(raf);\n }, [animating, board]);\n\n useEffect(() => {\n const el = viewRef.current;\n if (!el) return;\n const ro = new ResizeObserver(() => setSize({ w: el.clientWidth, h: el.clientHeight }));\n ro.observe(el);\n return () => ro.disconnect();\n }, [hasBoard]);\n\n const world = useCallback((cx: number, cy: number) => {\n const r = viewRef.current!.getBoundingClientRect();\n const v = viewState.current;\n return { x: (cx - r.left - v.x) / v.z, y: (cy - r.top - v.y) / v.z };\n }, []);\n\n // The view eases toward a target (fit, zoom buttons, 100%, a wheel notch, following the agent) instead of jumping.\n // Panning and trackpad pinch stay 1:1 and cancel any glide. A zoom target keeps the point under the pointer fixed.\n const reduceRef = useRef(reduce);\n reduceRef.current = reduce;\n const glide = useRef<{ raf: number; to: View; anchor: { px: number; py: number; wx: number; wy: number } | null; last: number } | null>(null);\n /** A long move flies along the van Wijk zoom path (pull back, cross, come down) instead of sliding at one zoom. */\n const flight = useRef<{ raf: number } | null>(null);\n const stopGlide = useCallback(() => {\n if (glide.current) { cancelAnimationFrame(glide.current.raf); glide.current = null; }\n if (flight.current) { cancelAnimationFrame(flight.current.raf); flight.current = null; }\n }, []);\n useEffect(() => stopGlide, [stopGlide]);\n const glideTo = useCallback((to: View, anchor: { px: number; py: number; wx: number; wy: number } | null = null) => {\n if (reduceRef.current) { stopGlide(); setView(to); return; }\n if (glide.current) { glide.current.to = to; glide.current.anchor = anchor; return; }\n const g = { raf: 0, to, anchor, last: performance.now() };\n glide.current = g;\n const step = (now: number) => {\n const k = 1 - Math.exp(-Math.min(BOARD.glideFrameCapMs, now - g.last) / BOARD.glideTauMs);\n g.last = now;\n const v = viewState.current, t = g.to;\n const z = Math.exp(Math.log(v.z) + (Math.log(t.z) - Math.log(v.z)) * k);\n const a = g.anchor;\n const next = a ? { z, x: a.px - a.wx * z, y: a.py - a.wy * z } : { z, x: v.x + (t.x - v.x) * k, y: v.y + (t.y - v.y) * k };\n const done = Math.abs(next.z - t.z) < 1e-4 && Math.abs(next.x - t.x) < 0.3 && Math.abs(next.y - t.y) < 0.3;\n const shown = done ? t : next;\n viewState.current = shown;\n setView(shown);\n if (done) glide.current = null;\n else g.raf = requestAnimationFrame(step);\n };\n g.raf = requestAnimationFrame(step);\n }, [stopGlide]);\n const flyTo = useCallback((to: View) => {\n const el = viewRef.current;\n if (reduceRef.current || !el) { stopGlide(); setView(to); viewState.current = to; return; }\n const s = { w: el.clientWidth, h: el.clientHeight };\n if (!isLongMove(viewState.current, to, s)) { glideTo(to); return; }\n stopGlide();\n const path = zoomPath(viewState.current, to, s, { minMs: BOARD.flight.minMs * tRef.current, maxMs: BOARD.flight.maxMs * tRef.current });\n const t0 = performance.now();\n const f = { raf: 0 };\n flight.current = f;\n const step = (now: number) => {\n if (flight.current !== f) return;\n const t = Math.min(1, (now - t0) / path.ms);\n const v = path.at(t);\n viewState.current = v;\n setView(v);\n if (t < 1) f.raf = requestAnimationFrame(step);\n else flight.current = null;\n };\n f.raf = requestAnimationFrame(step);\n }, [glideTo, stopGlide]);\n const panBy = useCallback((f: (v: View) => View) => { userMoved.current = true; stopGlide(); setView(f); }, [stopGlide]);\n\n const fitTo = useCallback((bb: { x0: number; y0: number; x1: number; y1: number } | null, maxZ = 1) => {\n const el = viewRef.current;\n if (!el) return;\n if (!bb) { flyTo(BOARD.homeView); return; }\n const w = el.clientWidth, h = el.clientHeight, pad = BOARD.fitPad;\n const z = clampZ(Math.min(maxZ, (w - pad * 2) / (bb.x1 - bb.x0 || 1), (h - pad * 2 - bottomRef.current) / (bb.y1 - bb.y0 || 1)));\n flyTo({ z, x: (w - (bb.x1 - bb.x0) * z) / 2 - bb.x0 * z, y: pad + BOARD.fitTop - bb.y0 * z });\n }, [flyTo]);\n // The menu's Fit: the person asked for the whole board, however small.\n const fit = useCallback(() => { const b = boardRef.current; if (b) fitTo(bounds([...b.frames, ...b.notes])); }, [fitTo]);\n /** The zoom fitTo would pick for `bb`, without moving. */\n const fitZoom = useCallback((bb: { x0: number; y0: number; x1: number; y1: number }, maxZ = 1) => {\n const el = viewRef.current;\n if (!el) return 0;\n return clampZ(Math.min(maxZ, (el.clientWidth - BOARD.fitPad * 2) / (bb.x1 - bb.x0 || 1), (el.clientHeight - BOARD.fitPad * 2 - bottomRef.current) / (bb.y1 - bb.y0 || 1)));\n }, []);\n // The whole board when it reads; a large one from its top-left at a readable zoom instead of shrunk to a picture.\n const readFit = useCallback(() => {\n const b = boardRef.current, el = viewRef.current;\n if (!b || !el) return;\n const bb = bounds([...b.frames, ...b.notes]);\n if (!bb) { flyTo(BOARD.homeView); return; }\n flyTo(readableView(bb, { w: el.clientWidth, h: el.clientHeight }, BOARD.readZoom, BOARD.fitPad, BOARD.fitTop, bottomRef.current));\n }, [flyTo]);\n const readFitRef = useRef(readFit);\n readFitRef.current = readFit;\n // Full screen is for seeing the whole board at once.\n const overview = useCallback(() => {\n const b = boardRef.current, el = viewRef.current;\n if (!b || !el) return;\n const bb = bounds([...b.frames, ...b.notes]);\n if (!bb) { flyTo(BOARD.homeView); return; }\n flyTo(readableView(bb, { w: el.clientWidth, h: el.clientHeight }, BOARD.overviewZoom, BOARD.fitPad, BOARD.fitTop, bottomRef.current));\n }, [flyTo]);\n\n // First open shows the whole board: it fits the full width (and the height when that is the tighter side), centred,\n // starting at the top. Until the person pans or zooms, a change of the panel's width (the canvas dock gliding open,\n // full screen) fits again, so nothing starts clipped at the right edge.\n const userMoved = useRef(false);\n const open = useCallback(() => {\n const b = boardRef.current, el = viewRef.current;\n if (!b || !el || !el.clientWidth) return;\n const bb = bounds([...b.frames, ...b.notes]);\n if (!bb) { setView(BOARD.homeView); return; }\n const w = el.clientWidth, h = el.clientHeight, pad = BOARD.widthPad, width = bb.x1 - bb.x0 || 1, height = bb.y1 - bb.y0 || 1;\n const fitW = (w - pad * 2) / width, fitH = (h - pad - BOARD.fitTop - bottomRef.current) / height;\n // A tall board fits its width and scrolls down; a wide or short one fits whole.\n const z = clampZ(Math.max(BOARD.readZoom, Math.min(1, fitW, fitH >= fitW * 0.6 ? fitH : fitW)));\n setView({ z, x: width * z <= w - pad * 2 ? (w - width * z) / 2 - bb.x0 * z : pad - bb.x0 * z, y: BOARD.fitTop + pad / 2 - bb.y0 * z });\n }, []);\n useEffect(() => { if (board && !fitted.current) { fitted.current = true; requestAnimationFrame(open); } }, [board, open]);\n useEffect(() => { if (fitted.current && !userMoved.current) open(); }, [size.w, size.h, open]);\n // Re-fit only when full screen is switched, not on mount (the first open above sets a readable zoom).\n const wasFull = useRef(full);\n useEffect(() => { if (wasFull.current !== full) { wasFull.current = full; requestAnimationFrame(full ? overview : readFit); } }, [full, readFit, overview]);\n\n /** Zooms by k around a point; `instant` for trackpad pinch, which already arrives as a smooth stream. */\n const zoomBy = useCallback((k: number, cx?: number, cy?: number, instant = false) => {\n const el = viewRef.current;\n if (!el) return;\n userMoved.current = true;\n const r = el.getBoundingClientRect();\n const px = cx === undefined ? el.clientWidth / 2 : cx - r.left, py = cy === undefined ? el.clientHeight / 2 : cy - r.top;\n if (instant) { panBy((v) => { const z = clampZ(v.z * k); return { z, x: px - ((px - v.x) / v.z) * z, y: py - ((py - v.y) / v.z) * z }; }); return; }\n // Successive notches stack on the pending target, around the same world point.\n const base = glide.current?.to ?? viewState.current, v = viewState.current;\n const wx = (px - v.x) / v.z, wy = (py - v.y) / v.z;\n const z = clampZ(base.z * k);\n glideTo({ z, x: px - wx * z, y: py - wy * z }, { px, py, wx, wy });\n }, [glideTo, panBy]);\n\n // Trackpad pinch (ctrl+wheel) zooms at the pointer; a plain wheel pans. Non-passive so the page does not scroll.\n useEffect(() => {\n const el = viewRef.current;\n if (!el) return;\n const onWheel = (e: WheelEvent) => {\n e.preventDefault();\n // A mouse wheel notch arrives as one large step (or in lines); a trackpad pinch as a stream of small ones.\n const notch = e.deltaMode !== 0 || Math.abs(e.deltaY) >= BOARD.wheelNotch;\n if (e.ctrlKey || e.metaKey) zoomBy(Math.exp(-e.deltaY * (e.deltaMode === 1 ? BOARD.wheelLinePx : 1) * BOARD.wheelZoom), e.clientX, e.clientY, !notch);\n else panBy((v) => ({ ...v, x: v.x - e.deltaX, y: v.y - e.deltaY }));\n };\n el.addEventListener(\"wheel\", onWheel, { passive: false });\n return () => el.removeEventListener(\"wheel\", onWheel);\n }, [zoomBy, panBy, hasBoard]);\n\n useEffect(() => {\n if (!full) return;\n const onKey = (e: KeyboardEvent) => { if (e.key === \"Escape\" && !editing) setFull(false); };\n window.addEventListener(\"keydown\", onKey);\n return () => window.removeEventListener(\"keydown\", onKey);\n }, [full, editing]);\n\n useEffect(() => {\n if (!menu) return;\n const close = (e: PointerEvent) => { if (!(e.target as HTMLElement).closest(\".sp-wb-pop, [data-menu]\")) setMenu(null); };\n document.addEventListener(\"pointerdown\", close);\n return () => document.removeEventListener(\"pointerdown\", close);\n }, [menu]);\n\n // ---------- Choreography: the agent's work drawn step by step ----------\n // Items in `pending` are not drawn yet; each step reveals one with its own entrance (`entering`) while the agent's\n // cursor springs to it. Timers drive it; motion values move the cursor, so no frame re-renders the board.\n const cursorX = useMotionValue(0), cursorY = useMotionValue(0), cursorPress = useMotionValue(0);\n const cursorFlight = useRef<AnimationPlaybackControls | null>(null);\n /** Flies the cursor to a world point on a slight arc with a no-bounce spring; `ms` is its visual duration. */\n const flyCursor = useCallback((to: Point, ms: number = BOARD.springs.cursor.visualDuration * 1000 * tRef.current) => {\n cursorFlight.current?.stop();\n const from = { x: cursorX.get(), y: cursorY.get() };\n if (reduceRef.current || Math.hypot(to.x - from.x, to.y - from.y) < 1) { cursorX.set(to.x); cursorY.set(to.y); return; }\n cursorFlight.current = animate(0, 1, {\n type: \"spring\", visualDuration: ms / 1000, bounce: BOARD.springs.cursor.bounce,\n onUpdate: (t) => { const p = arcPoint(from, to, t, BOARD.cursorArc); cursorX.set(p.x); cursorY.set(p.y); },\n });\n }, [cursorX, cursorY]);\n /**\n * The agent's hand follows the two things a person does by hand on a whiteboard: it pulls a wire along its path as\n * the wire draws, and it writes every line of an item, title and words alike, letter by letter. Shapes are placed whole, as on any whiteboard,\n * so the hand does not trace them. Each phase keeps the timing and easing of the entrance it follows.\n */\n const handFollow = useCallback((st: Step, k: number) => {\n const view = viewRef.current, b = boardRef.current;\n if (reduceRef.current || !view || !b) return;\n const E = BOARD.enter;\n requestAnimationFrame(() => {\n type Phase = { ms: number; at: (q: number) => Point };\n const phases: Phase[] = [];\n let last: Point = { x: cursorX.get(), y: cursorY.get() };\n const glide = (to: Point, ms: number) => { const from = last; last = to; phases.push({ ms, at: (q) => { const e = 1 - (1 - q) ** 3; return { x: from.x + (to.x - from.x) * e, y: from.y + (to.y - from.y) * e }; } }); };\n const trace = (el: SVGGeometryElement | null | undefined, o: Point, ms: number, ease: (q: number) => number) => {\n const len = el?.getTotalLength() ?? 0;\n if (!el || !len) return;\n const p0 = el.getPointAtLength(0), pe = el.getPointAtLength(len);\n glide({ x: o.x + p0.x, y: o.y + p0.y }, E.handMs * k);\n phases.push({ ms, at: (q) => { const p = el.getPointAtLength(len * ease(q)); return { x: o.x + p.x, y: o.y + p.y }; } });\n last = { x: o.x + pe.x, y: o.y + pe.y };\n };\n // Writing: the hand types each line of each block left to right and drops to the next line as it wraps; a line\n // shows only up to the pen. Measured in layout terms, so a card still popping in (scaled) measures at its final\n // size. A safety timer shows every word if the hand is interrupted.\n const writeAll = (root: HTMLElement, at: Point, blocks: { el: HTMLElement; ms: number }[], lead: number) => {\n const parts = blocks.flatMap(({ el, ms }) => {\n let ox = 0, oy = 0, p: HTMLElement | null = el;\n while (p && p !== root) { ox += p.offsetLeft; oy += p.offsetTop; p = p.offsetParent as HTMLElement | null; }\n const br = el.getBoundingClientRect(), s = br.width ? el.offsetWidth / br.width : 1, H = el.offsetHeight;\n const r = document.createRange();\n r.selectNodeContents(el);\n const lines: { x0: number; x1: number; y0: number; y1: number }[] = [];\n for (const q of r.getClientRects()) {\n if (!q.width) continue;\n const l = { x0: (q.left - br.left) * s, x1: (q.right - br.left) * s, y0: (q.top - br.top) * s, y1: (q.bottom - br.top) * s };\n if (l.y0 > H) continue; // clamped away\n const same = lines.find((m) => Math.abs(m.y0 - l.y0) < 3);\n if (same) { same.x0 = Math.min(same.x0, l.x0); same.x1 = Math.max(same.x1, l.x1); same.y1 = Math.max(same.y1, l.y1); } else lines.push(l);\n }\n if (!lines.length) return [];\n lines.sort((u, v) => u.y0 - v.y0);\n el.style.clipPath = \"inset(0 100% 100% 0)\";\n return [{ el, ox, oy, lines, ms, w: el.offsetWidth }];\n });\n if (!parts.length) return;\n root.dataset.typing = \"\";\n const show = () => { for (const p of parts) p.el.style.clipPath = \"\"; };\n let first = true;\n parts.forEach((p, pi) => {\n const width = p.lines.reduce((t, l) => t + (l.x1 - l.x0), 0) || 1;\n p.lines.forEach((l, li) => {\n const y = at.y + p.oy + (l.y0 + l.y1) / 2, x0 = at.x + p.ox + l.x0;\n glide({ x: x0, y }, first ? lead : E.lineHopMs * k);\n first = false;\n const done = p.lines.slice(0, li).reduce((m, o) => Math.max(m, o.y1), 0);\n phases.push({ ms: p.ms * ((l.x1 - l.x0) / width), at: (q) => {\n // Blocks already written show whole, even if the last frame of their last line was skipped.\n for (const o of parts.slice(0, pi)) if (o.el.style.clipPath) o.el.style.clipPath = \"\";\n const xc = l.x0 + (l.x1 - l.x0) * q;\n p.el.style.clipPath = `polygon(-4px -4px, ${p.w + 4}px -4px, ${p.w + 4}px ${done}px, ${xc}px ${done}px, ${xc}px ${l.y1 + 4}px, -4px ${l.y1 + 4}px)`;\n if (q >= 1 && li === p.lines.length - 1) p.el.style.clipPath = \"\";\n return { x: at.x + p.ox + xc, y };\n } });\n last = { x: at.x + p.ox + l.x1, y };\n });\n });\n const total = phases.reduce((t, ph) => t + ph.ms, 0);\n setTimeout(show, total + 600);\n };\n const draw = cubicBezier(0.45, 0, 0.25, 1);\n if (st.kind === \"link\") trace(view.querySelector<SVGPathElement>(`[data-link=\"${CSS.escape(st.id)}\"]`), { x: 0, y: 0 }, E.linkMs * k, draw);\n else {\n const n = b.notes.find((x) => x.id === st.id), box = view.querySelector<HTMLElement>(`[data-note=\"${CSS.escape(st.id)}\"]`);\n if (!n || !box) return;\n const ty = typingMs(n, st.kind === \"heading\");\n const pick = (sel: string, ms: number) => { const el = box.querySelector<HTMLElement>(sel); return el && ms ? [{ el, ms: ms * k }] : []; };\n if (st.kind === \"heading\") writeAll(box, n, pick(\".sp-wb-text\", ty.title), E.handMs * k);\n else if (st.kind === \"card\") {\n const meta = box.querySelector<HTMLElement>(\".sp-wb-meta, .sp-wb-body > em\");\n writeAll(box, n, [\n ...pick(\".sp-wb-title-line, .sp-wb-body > strong\", ty.title),\n ...pick(\".sp-wb-text, .sp-wb-body > span:not(.sp-wb-icon):not(.sp-wb-placeholder)\", ty.body),\n ...(meta ? [{ el: meta, ms: Math.min(E.bodyMaxMs, ((meta.textContent ?? \"\").length * 1000) / E.bodyCps) * k }] : []),\n ], E.artMs * 0.55 * k);\n }\n }\n if (!phases.length) return;\n const total = phases.reduce((t, p) => t + p.ms, 0);\n // The camera reads along with the hand: while the pen stays in the middle of the view it holds; as the pen nears\n // an edge (a long line running right, the next lines going down) it pans so the pen is comfortably in view again.\n const keep = (at: Point) => {\n const el = viewRef.current;\n if (!el || flight.current || !agentMayMove(lastInput.current, Date.now(), BOARD.userWinsMs)) return;\n const v = viewState.current, w = el.clientWidth, h = el.clientHeight - bottomRef.current;\n const sx = at.x * v.z + v.x, sy = at.y * v.z + v.y;\n const tx = sx > w * 0.8 ? v.x - (sx - w * 0.55) : sx < w * 0.1 ? v.x + (w * 0.3 - sx) : v.x;\n const ty = sy > h * 0.8 ? v.y - (sy - h * 0.55) : sy < h * 0.1 ? v.y + (h * 0.3 - sy) : v.y;\n if (tx !== v.x || ty !== v.y) glideTo({ z: v.z, x: tx, y: ty });\n };\n cursorFlight.current?.stop();\n cursorFlight.current = animate(0, 1, {\n duration: total / 1000, ease: \"linear\",\n onUpdate: (t) => {\n let e = t * total;\n for (const p of phases) {\n if (e <= p.ms || p === phases[phases.length - 1]) { const at = p.at(p.ms ? Math.min(1, e / p.ms) : 1); cursorX.set(at.x); cursorY.set(at.y); keep(at); return; }\n e -= p.ms;\n }\n },\n });\n });\n }, [cursorX, cursorY, glideTo]);\n /** The cursor \"presses\" the item down as it lands: a 2px dip and back. */\n const press = useCallback(() => {\n if (reduceRef.current) return;\n void animate(cursorPress, [0, BOARD.cursorPressPx, 0], { duration: 0.28 * tRef.current, ease: \"easeInOut\" });\n }, [cursorPress]);\n /** The last time the person touched the board: for a while after it, the camera is theirs alone. */\n const lastInput = useRef(0);\n const pending = useRef(new Set<string>());\n const entering = useRef(new Map<string, string>());\n const choreoIds = useRef(new Set<string>());\n const [, setBeat] = useState(0);\n const beat = useCallback(() => setBeat((x) => x + 1), []);\n const play = useRef<{ steps: Step[]; i: number; timer: ReturnType<typeof setTimeout> | null; reveal: ReturnType<typeof setTimeout> | null; done: (() => void) | null; agent: boolean; told?: boolean } | null>(null);\n const settleTimers = useRef<ReturnType<typeof setTimeout>[]>([]);\n /** What the agent's hand is doing; `told`: the label is the sentence the agent is saying (shown as narration, not on the hand). */\n const [cursor, setCursor] = useState<{ label: string; agent: boolean; told?: boolean } | null>(null);\n const sayAt = useRef(new Map<string, string>());\n /** The first step of each told beat, with the items of that beat: the camera frames the beat when its drawing starts. */\n const beatAt = useRef(new Map<string, string[]>());\n /** The agent is still at work on this board (more beats are coming). */\n const agentLiveRef = useRef(false);\n const speedRef = useRef(1), pausedRef = useRef(false);\n speedRef.current = m.replay?.speed ?? 1;\n const replayingRef = useRef(false);\n replayingRef.current = !!m.replay;\n pausedRef.current = !!m.replay?.paused;\n\n /** Ends the running choreography at once: everything left is shown, entrances finish on their own. */\n const finish = useCallback((natural = false) => {\n const p = play.current;\n if (!p) return;\n if (p.timer) clearTimeout(p.timer);\n if (p.reveal) clearTimeout(p.reveal);\n play.current = null;\n if (natural && p.agent && p.steps.length > 2 && !replayingRef.current) chime();\n pending.current.clear();\n sayAt.current.clear();\n beatAt.current.clear();\n // A told board that finished drawing is shown as whole as still reads; not while the agent is still sending beats,\n // or the camera would pull out between two of them.\n if (natural && p.told && !replayingRef.current && !agentLiveRef.current && agentMayMove(lastInput.current, Date.now(), BOARD.userWinsMs)) readFitRef.current();\n settleTimers.current.push(setTimeout(() => { entering.current.clear(); choreoIds.current.clear(); beat(); }, BOARD.choreo.enterMs * tRef.current));\n setCursor(null);\n beat();\n send({ type: \"played\" });\n p.done?.();\n }, [beat]);\n\n /** Hides what the steps reveal right away (so nothing flashes), then plays them; resolves when the last one lands. */\n const choreograph = useCallback((steps: Step[], label: string, agent = true, from?: Point, told = false): Promise<void> => {\n const shown = steps.slice(0, BOARD.choreo.maxSteps);\n if (reduceRef.current || !shown.length) { for (const st of shown) pending.current.delete(st.id); return Promise.resolve(); }\n // A choreography already playing takes the new steps on at its end (the agent's paced steps arrive one by one).\n const running = play.current;\n for (const st of shown) if (reveals(st)) { pending.current.add(st.id); choreoIds.current.add(st.id); }\n if (told) beatAt.current.set(shown[0].id, shown.map((s) => s.id));\n if (running) { running.steps.push(...shown); running.told = told; sayAt.current.set(shown[0].id, label); return new Promise((r) => { const prev = running.done; running.done = () => { prev?.(); r(); }; }); }\n const start = from ?? { x: shown[0].at.x - 80, y: shown[0].at.y - 60 };\n cursorFlight.current?.stop();\n cursorX.set(start.x);\n cursorY.set(start.y);\n setCursor({ label, agent, told });\n return new Promise<void>((resolve) => {\n const p: NonNullable<typeof play.current> = { steps: shown, i: 0, timer: null, reveal: null, done: resolve, agent, told };\n play.current = p;\n // Each step: the cursor flies (arriving `leadMs` before the item), the camera follows only if it must, then the\n // item enters with its own motion as the cursor presses it down.\n const next = () => {\n if (play.current !== p) return;\n if (pausedRef.current) { p.timer = setTimeout(next, BOARD.choreo.minMs); return; }\n const st = p.steps[p.i];\n if (!st) { finish(true); return; }\n // A beat that arrived while the last one was still being drawn says its sentence when its drawing starts.\n const say = sayAt.current.get(st.id);\n if (say !== undefined) { sayAt.current.delete(st.id); setCursor((c) => (c ? { ...c, label: say, told: p.told } : c)); }\n // A told beat is framed as its drawing starts when it fits at a readable zoom, the way a person steps up to that\n // part; a larger beat is not shrunk to fit: the camera follows the cursor through it instead.\n const beatIds = beatAt.current.get(st.id);\n let framed = false;\n if (beatIds) {\n beatAt.current.delete(st.id);\n const ids = new Set(beatIds), b = boardRef.current;\n const bb = b ? bounds(b.notes.filter((n) => ids.has(n.id) && n.shape !== \"ink\")) : null;\n const M = BOARD.tell.margin, box = bb && { x0: bb.x0 - M, y0: bb.y0 - M, x1: bb.x1 + M, y1: bb.y1 + M };\n if (box && agentMayMove(lastInput.current, Date.now(), BOARD.userWinsMs) && fitZoom(box, BOARD.tell.zoom) >= BOARD.readZoom) {\n fitTo(box, BOARD.tell.zoom);\n framed = true;\n }\n }\n // Every time below follows the viewer's tempo and, in a replay, its speed.\n const k = tRef.current / speedRef.current, C = BOARD.choreo;\n const pace = paceOf(p.steps.length, C.totalMs, C.minMs, C.maxMs) * k;\n const flightMs = Math.min(C.flightMaxMs * k, Math.max(C.flightMinMs * k, pace * 0.9));\n flyCursor(st.at, flightMs);\n const el = viewRef.current, v = viewState.current;\n // The camera holds while the item being written sits comfortably on screen and glides only when the hand nears\n // the edge, then centres the whole item, never further out than reads.\n if (el && !framed && agentMayMove(lastInput.current, Date.now(), BOARD.userWinsMs)) {\n const s = { w: el.clientWidth, h: el.clientHeight }, it = boardRef.current?.notes.find((x) => x.id === st.id);\n const room = (s.h - bottomRef.current) * 0.8, wide = s.w * 0.85;\n // The zoom this item reads at: its smallest words at readPx, closer when the whole item still fits; kept as is\n // when the current zoom is already within 15% of that, so the camera does not breathe between similar items.\n const font = it ? smallestFont(el, it.id) : 0;\n const zRead = font ? BOARD.readPx / font : BOARD.readZoom;\n const want = clampZ(Math.max(zRead, it ? Math.min(1, wide / it.w, room / it.h) : zRead));\n const z = Math.abs(Math.log(v.z / want)) < 0.15 ? v.z : want;\n // An item wider or taller than the view is entered at its top-left, where the hand starts writing; the camera\n // then pans along with the hand (handFollow).\n const target = it ? { x: it.w * z > wide ? it.x + (s.w * 0.42) / z : it.x + it.w / 2, y: it.h * z > room ? it.y + room / 2 / z : it.y + it.h / 2 } : st.at;\n const box = it && { x0: it.x, y0: it.y, x1: it.x + Math.min(it.w, wide / z), y1: it.y + Math.min(it.h, room / z) };\n if (z !== v.z || stepCamera(v, s, target, bottomRef.current, BOARD.followInset) === \"follow\" || (box && planCamera(v, s, box, bottomRef.current) === \"overview\")) {\n flyTo(centreOn(target, { ...v, z }, s, bottomRef.current));\n }\n }\n // The cursor says what this step is doing; a step it has no word for keeps the edit's own label.\n // A told beat keeps its sentence; otherwise the cursor names the kind of item it is placing.\n const said = p.told ? null : WB.stepLabel[st.kind];\n if (said) setCursor((c) => (c && c.label !== said ? { ...c, label: said } : c));\n const revealAt = Math.max((C.minMs / 2) * k, flightMs - C.leadMs * k);\n p.reveal = setTimeout(() => {\n if (play.current !== p) return;\n pending.current.delete(st.id);\n if (reveals(st)) entering.current.set(st.id, st.kind);\n press();\n if (st.kind === \"pill\") thud();\n beat();\n handFollow(st, k);\n }, revealAt);\n p.i += 1;\n // The cursor stays until the item has fully appeared (its pop, typing and fade), then holds a moment before it\n // moves on: it never leaves something half drawn.\n const settled = revealAt + entranceMs(st, boardRef.current) * k + C.holdMs * k;\n p.timer = setTimeout(next, p.i >= p.steps.length ? Math.max(pace, settled) + C.enterMs * k : Math.max(pace, settled));\n };\n p.timer = setTimeout(next, (BOARD.choreo.minMs * tRef.current) / speedRef.current);\n beat();\n });\n }, [beat, cursorX, cursorY, finish, fitTo, fitZoom, flyCursor, flyTo, handFollow, press]);\n\n useEffect(() => () => {\n const p = play.current;\n if (p?.timer) clearTimeout(p.timer);\n play.current = null;\n for (const t of settleTimers.current) clearTimeout(t);\n }, []);\n\n // A version that arrives from the server: the agent's edits perform; the person's own edits and teammates' do not.\n // Decided while rendering, so new items are hidden before they are ever painted; the timers start in the effect.\n const onions = useRef<{ id: string; x: number; y: number; w: number; h: number; title: string; at: number }[]>([]);\n const deleted = useRef(new Map<string, { x: number; y: number; w: number; h: number; title: string; batch: string }>());\n const seenLatest = useRef<Board | null>(null);\n const kick = useRef<{ steps: Step[]; label: string; told: boolean } | null>(null);\n const tellOnOpen = useRef(false);\n /** The board is being explained on open: one narration (the caption), none of the history controls. */\n const [telling, setTelling] = useState(false);\n const scrubRef = useRef(scrubBoard);\n scrubRef.current = scrubBoard;\n if (latest && latest !== seenLatest.current) {\n const before = seenLatest.current;\n seenLatest.current = latest;\n let steps: Step[] = [];\n let label = \"\";\n let told = false;\n if (!before) {\n // A board the agent has just made plays its whole build once per session when it is opened.\n const first = latest.edits[0];\n if (first?.agent && !data.preview && !reduce && Date.now() - Date.parse(latest.createdAt) < BOARD.buildFreshMs) {\n let played: string[] | null = null;\n try { played = JSON.parse(sessionStorage.getItem(BOARD.playedKey) ?? \"[]\"); } catch { played = null; }\n if (played && !played.includes(latest.id)) {\n try { sessionStorage.setItem(BOARD.playedKey, JSON.stringify([...played, latest.id].slice(-50))); } catch { /* storage unavailable */ }\n // Opened while the agent is still drawing: what is there draws in, and the beats still to come follow live.\n // Opened after: a told board is explained again from a blank board, beat by beat with its sentences;\n // anything else builds in one go.\n const told_ = latest.edits.some((e) => e.told);\n if (told_ && !freshActivity(activity, Date.now(), BOARD.activityFreshMs)?.agent) {\n tellOnOpen.current = true;\n setScrubBoard({ ...latest, frames: [], notes: [], links: [] });\n } else { told = told_; steps = stepsOf(diffBoards(null, latest), latest, told); label = latest.edits.at(-1)?.what || first.what || WB.agentBuilding; }\n }\n }\n } else if (latest === remote.current && !scrubBoard && latest.edits.at(-1)?.agent) {\n const d = diffBoards(before, latest);\n told = !!latest.edits.at(-1)?.told;\n steps = stepsOf(d, latest, told);\n label = latest.edits.at(-1)?.what || WB.agentBuilding;\n // What moved leaves an onion-skin copy where it was; what was deleted stays as a struck-through ghost while the\n // agent's piece of work is still waiting to be kept or undone.\n if (!reduce) {\n const t = Date.now();\n const was = (id: string) => before.notes.find((n) => n.id === id) ?? before.frames.find((f) => f.id === id);\n for (const mv of d.moved.slice(0, BOARD.choreo.maxSteps)) {\n const r = was(mv.id);\n if (r) onions.current.push({ id: `${mv.id}@${t}`, x: r.x, y: r.y, w: r.w, h: r.h, title: \"title\" in r ? r.title ?? \"\" : \"\", at: t });\n }\n const batch = latest.edits.at(-1)?.batch;\n if (batch) for (const r of [...d.removed.notes, ...d.removed.frames]) deleted.current.set(r.id, { x: r.x, y: r.y, w: r.w, h: r.h, title: (\"title\" in r ? r.title : \"\") || (\"text\" in r ? r.text : \"\"), batch });\n }\n }\n if (steps.length && !reduce) {\n for (const st of steps.slice(0, BOARD.choreo.maxSteps)) if (reveals(st)) { pending.current.add(st.id); choreoIds.current.add(st.id); }\n kick.current = kick.current ? { steps: [...kick.current.steps, ...steps], label, told } : { steps, label, told };\n }\n }\n\n // The person's hand on the board: an arriving performance waits until they let go.\n const gestureActive = !!moving || !!sizing || pen || !!marquee || !!linking || !!editing;\n const gestureRef = useRef(gestureActive);\n gestureRef.current = gestureActive;\n useEffect(() => { send({ type: \"gesture\", on: gestureActive }); }, [gestureActive]);\n useEffect(() => { if (latest) send({ type: \"loaded\" }); }, [!!latest]); // eslint-disable-line react-hooks/exhaustive-deps\n useEffect(() => { if (error && !latest) send({ type: \"error\", message: error }); }, [error, latest]);\n useEffect(() => {\n if (!kick.current || gestureActive) return;\n // The first build waits a frame for the board to fit the view. The queue is taken only when the frame fires:\n // an effect re-run (dev double-mount, a re-render) cancels the frame but leaves the queue for the next run.\n let inner = 0;\n const outer = requestAnimationFrame(() => {\n inner = requestAnimationFrame(() => {\n const k = kick.current;\n if (!k) return;\n kick.current = null;\n send({ type: \"incoming\", steps: true });\n void choreograph(k.steps, k.label, true, undefined, k.told);\n });\n });\n return () => { cancelAnimationFrame(outer); cancelAnimationFrame(inner); };\n }, [latest, gestureActive, choreograph]);\n\n // Safety net: content is never left invisible. Anything still waiting for its entrance with nothing playing is shown.\n useEffect(() => {\n const t = setInterval(() => {\n if (play.current || kick.current || !pending.current.size) return;\n pending.current.clear();\n beat();\n }, BOARD.choreo.totalMs + BOARD.choreo.enterMs);\n return () => clearInterval(t);\n }, [beat]);\n\n // ---------- Live presence: who is working on the board right now ----------\n const [, setNowTick] = useState(0);\n useEffect(() => {\n send({ type: \"activity\", activity });\n if (!activity) return;\n const left = Date.parse(activity.at) + BOARD.activityFreshMs - Date.now();\n if (left <= 0) return;\n const t = setTimeout(() => setNowTick((x) => x + 1), left + BOARD.presenceSlackMs);\n return () => clearTimeout(t);\n }, [activity]);\n // Presence is for other people and the agent: the person's own edits never show them as \"editing the board\".\n const freshNow = readOnly ? null : freshActivity(activity, Date.now(), BOARD.activityFreshMs);\n const live = freshNow && !freshNow.agent && Date.now() - ownEditAt.current < BOARD.activityFreshMs ? null : freshNow;\n agentLiveRef.current = !!live?.agent;\n // The agent stopped after the drawing on screen had already caught up: now the told board is shown whole.\n const agentLive = !!live?.agent;\n useEffect(() => {\n if (agentLive || play.current || !boardRef.current?.edits.at(-1)?.told) return;\n if (agentMayMove(lastInput.current, Date.now(), BOARD.userWinsMs)) readFitRef.current();\n }, [agentLive]); // eslint-disable-line react-hooks/exhaustive-deps\n const mode = modeOf(m, Date.now(), BOARD.activityFreshMs);\n\n // ---------- The agent's plan: footprints where it is about to draw ----------\n // Kept while the work plays out on screen, even after the server's activity has ended, so each footprint gives way\n // to its item as the item is drawn; footprints of items never drawn fade when both are over.\n const planKeep = useRef<PlannedItem[] | null>(null);\n const livePlan = live?.agent ? live.plan : undefined;\n if (livePlan?.length) planKeep.current = livePlan;\n else if (!play.current && !kick.current) planKeep.current = null;\n const present = useMemo(() => new Set(board ? [...board.notes.map((n) => n.id), ...board.frames.map((f) => f.id)] : []), [board]);\n // A told board draws its items one by one under the agent's hand, so it shows no footprints ahead of the hand.\n const footprints = readOnly || board?.edits.at(-1)?.told ? [] : liveFootprints(planKeep.current, present, pending.current);\n // A new plan that does not fit the view is framed once, at the start of the work, unless the person is in charge.\n const planKey = livePlan?.length ? `${live?.batch ?? live?.at}|${live?.what}|${livePlan.length}` : \"\";\n useEffect(() => {\n const el = viewRef.current, pb = planBounds(livePlan);\n if (!el || !agentMayMove(lastInput.current, Date.now(), BOARD.userWinsMs)) return;\n const v = viewState.current;\n // A told board's camera follows the drawing on screen (see choreograph), not the server, which runs ahead of it.\n if (!planKey || !pb || board?.edits.at(-1)?.told) return;\n if (planCamera(v, { w: el.clientWidth, h: el.clientHeight }, pb, bottomRef.current) === \"overview\") fitTo(pb, v.z);\n }, [planKey]); // eslint-disable-line react-hooks/exhaustive-deps\n\n // Onion skins fade on their own (CSS); the list is pruned once they are gone.\n useEffect(() => {\n if (!onions.current.length) return;\n const t = setTimeout(() => { const now = Date.now(); onions.current = onions.current.filter((o) => now - o.at < BOARD.onionMs); beat(); }, BOARD.onionMs + 50);\n return () => clearTimeout(t);\n });\n\n // Any touch, wheel or key on the board gives the person the camera for a while.\n useEffect(() => {\n const el = viewRef.current;\n if (!el) return;\n const mark = () => { lastInput.current = Date.now(); };\n el.addEventListener(\"pointerdown\", mark, { capture: true });\n el.addEventListener(\"wheel\", mark, { passive: true });\n el.addEventListener(\"keydown\", mark);\n return () => { el.removeEventListener(\"pointerdown\", mark, { capture: true }); el.removeEventListener(\"wheel\", mark); el.removeEventListener(\"keydown\", mark); };\n }, [hasBoard]);\n\n // ---------- Keep or undo the agent's piece of work ----------\n const [batchUi, setBatchUi] = useState<{ state: \"idle\" | \"keeping\" | \"kept\" | \"undoing\"; error: string | null }>({ state: \"idle\", error: null });\n const shownBatch = useRef<PendingBatch | null>(null);\n if (pendingBatch) shownBatch.current = pendingBatch;\n else if (batchUi.state !== \"kept\") shownBatch.current = null;\n // Ghosts of what the agent deleted live as long as their piece of work is undecided.\n for (const [id, g] of deleted.current) if (g.batch !== pendingBatch?.id) deleted.current.delete(id);\n useEffect(() => { setBatchUi({ state: \"idle\", error: null }); }, [pendingBatch?.id]);\n const keepPending = async () => {\n const b = pendingBatch;\n if (!b || batchUi.state !== \"idle\") return;\n setBatchUi({ state: \"keeping\", error: null });\n const err = await keepBatch(b.id);\n if (err) { setBatchUi({ state: \"idle\", error: err }); return; }\n thud();\n setBatchUi({ state: \"kept\", error: null });\n setTimeout(() => setBatchUi((u) => (u.state === \"kept\" ? { state: \"idle\", error: null } : u)), BOARD.choreo.enterMs * 2);\n };\n const undoPending = async () => {\n const b = pendingBatch, cur = latest;\n if (!b || !cur || batchUi.state !== \"idle\") return;\n setBatchUi({ state: \"undoing\", error: null });\n // The piece un-draws last-first: the reverse of the order the agent drew it in.\n const keys = new Set(b.keys);\n undoOrder.current = stepsOf(diffBoards(null, { notes: cur.notes.filter((n) => keys.has(n.id)), frames: cur.frames.filter((f) => keys.has(f.id)), links: [] }), cur).map((st) => st.id).reverse();\n const err = await undoBatch(b.id);\n if (err) { undoOrder.current = null; setBatchUi({ state: \"idle\", error: err }); return; }\n setBatchUi({ state: \"idle\", error: null });\n };\n\n // ---------- The time machine ----------\n const [histOpen, setHistOpen] = useState(false);\n // With the history strip and its caption open, the board fits in the room above them; opening or closing refits.\n bottomRef.current = BOARD.fitBottom + (histOpen ? BOARD.historyRoom : 0);\n useEffect(() => { if (!userMoved.current) readFitRef.current?.(); }, [histOpen]);\n const [hist, setHist] = useState<HistoryEntry[] | null>(null);\n const [histLoading, setHistLoading] = useState(false);\n const [caption, setCaption] = useState<{ text: string; version: number } | null>(null);\n const [restoring, setRestoring] = useState(false);\n const [histNote, setHistNote] = useState<string | null>(null);\n const replayCancel = useRef(false);\n useEffect(() => () => { replayCancel.current = true; }, []);\n const loadHistory = useCallback(async () => {\n setHistLoading(true);\n const h = await history();\n setHist(h);\n setHistLoading(false);\n return h;\n }, [history]);\n useEffect(() => { if (histOpen) void loadHistory(); }, [histOpen, latest?.version, loadHistory]);\n const entryOf = (v: number) => hist?.find((e) => e.version === v) ?? null;\n\n /** Animates the board to an older version, read-only. */\n const showVersion = useCallback(async (v: number) => {\n if (!latest) return;\n if (v === latest.version) { toLatestRef.current(); return; }\n const target = await at(v);\n if (!target) { setHistNote(WB.versionMissing); return; }\n setHistNote(null);\n const before = scrubRef.current ?? latest;\n const e = hist?.find((x) => x.version === v);\n finish();\n send({ type: \"scrub\", version: v });\n void choreograph(stepsOf(diffBoards(before, target), target), e ? (e.agent ? WB.agentWorking(e.what) : WB.personWorking(e.by, e.what)) : WB.viewing(v), e?.agent ?? true);\n setScrubBoard(target);\n setCaption(null);\n }, [latest, at, hist, finish, choreograph]);\n\n /** Back to the latest version; what differs animates back into place. */\n const toLatestRef = useRef(() => {});\n toLatestRef.current = () => {\n replayCancel.current = true;\n setTelling(false);\n finish();\n const before = scrubRef.current;\n send({ type: \"latest\" });\n setCaption(null);\n if (before && latest) void choreograph(stepsOf(diffBoards(before, latest), latest), WB.latest, false);\n setScrubBoard(null);\n };\n\n /** \"Putar ulang\": from an empty board, every version in turn, each step performed and its reason typed out. */\n const runReplay = useCallback(async () => {\n if (!latest) return;\n const h = hist ?? (await loadHistory());\n replayCancel.current = false;\n finish();\n send({ type: \"replay\" });\n let shown: Board = { ...latest, frames: [], notes: [], links: [] };\n setScrubBoard(shown);\n // From the oldest version that can still be rebuilt; with no history, the whole board builds in one go.\n const versions = h?.length ? h.filter((e) => e.version >= earliestRebuildable(h)) : [{ version: latest.version, at: latest.updatedAt, by: latest.updatedBy, agent: !!latest.edits.at(-1)?.agent, what: WB.agentBuilding, why: latest.title, keys: [] } as HistoryEntry];\n // A told board replays as the agent's explanation, from History as on open.\n setTelling(versions.some((e) => e.told));\n for (const e of versions) {\n while (pausedRef.current && !replayCancel.current) await sleep(BOARD.choreo.maxMs);\n if (replayCancel.current) return;\n const b = e.version === latest.version ? latest : await at(e.version);\n if (replayCancel.current) return;\n if (!b) continue;\n send({ type: \"scrub\", version: e.version });\n setCaption({ text: e.why || e.what, version: e.version });\n // A told beat is framed as it is explained: the camera goes to the part being drawn, close enough to read.\n const el = viewRef.current, fresh = e.told ? b.notes.filter((n) => !shown.notes.some((o) => o.id === n.id) && n.shape !== \"ink\") : [];\n if (el && fresh.length && agentMayMove(lastInput.current, Date.now(), BOARD.userWinsMs)) {\n // The camera takes the step's width at a readable size and starts at its top; as the details go down the\n // column, the cursor's follow keeps the newest one in view.\n const M = BOARD.tell.margin, bb = bounds(fresh);\n const box = bb && { x0: bb.x0 - M, y0: bb.y0 - M, x1: bb.x1 + M, y1: bb.y0 - M + (bb.x1 - bb.x0 + M * 2) * BOARD.tell.aspect };\n // Too wide to read framed whole: the cursor's follow carries the camera through it instead.\n if (box && fitZoom(box, BOARD.tell.zoom) >= BOARD.readZoom) fitTo(box, BOARD.tell.zoom);\n }\n const done = choreograph(stepsOf(diffBoards(shown, b), b, !!e.told), e.agent ? WB.agentWorking(e.what) : WB.personWorking(e.by, e.what), e.agent, undefined, !!e.told);\n setScrubBoard(b);\n shown = b;\n await done;\n await sleep((BOARD.replay.holdMs * tRef.current) / speedRef.current);\n }\n if (replayCancel.current) return;\n send({ type: \"replayDone\" });\n setCaption(null);\n setScrubBoard(null);\n setTelling(false);\n // The explanation ends on as much of the picture as still reads.\n if (agentMayMove(lastInput.current, Date.now(), BOARD.userWinsMs)) readFitRef.current();\n }, [latest, hist, loadHistory, at, finish, choreograph, fitTo, fitZoom]);\n const runReplayRef = useRef(runReplay);\n runReplayRef.current = runReplay;\n useEffect(() => {\n if (!tellOnOpen.current || !latest) return;\n tellOnOpen.current = false;\n setTelling(true);\n // After the first frame, so the view has its size before the camera moves.\n const t = setTimeout(() => void runReplayRef.current(), BOARD.tell.startMs);\n return () => clearTimeout(t);\n }, [latest]);\n\n const restoreShown = async () => {\n if (m.scrub === null) return;\n setRestoring(true);\n const ok = await restore(m.scrub);\n setRestoring(false);\n if (!ok) return;\n replayCancel.current = true;\n finish();\n setScrubBoard(null);\n setCaption(null);\n send({ type: \"latest\" });\n void loadHistory();\n };\n\n const last = board?.edits.at(-1);\n const hot = useMemo(() => new Set(last?.agent ? last.keys : []), [last]);\n\n // ---------- The agent's edits, ringed in stamp ink (rough-notation) ----------\n // Marks live on a screen-space layer that follows pan and zoom with one transform (rough-notation measures in screen\n // pixels, so it cannot sit inside the scaled world). They draw once, stay a moment, then leave.\n const markLayer = useRef<HTMLDivElement>(null);\n const markView = useRef<View | null>(null);\n const titleRef = useRef<HTMLElement>(null);\n const hotKey = last?.agent && last.keys.length ? `${last.at}|${last.keys.join(\",\")}` : \"\";\n useEffect(() => {\n const layer = markLayer.current, b = boardRef.current;\n if (!hotKey || !layer || !b) return;\n const v = viewState.current;\n // The layer is at identity for the current view while rough-notation measures.\n markView.current = v;\n layer.style.transform = \"none\";\n // What the choreography draws in gets its entrance instead of a ring.\n const ids = [...hot].filter((id) => !seen.has(id) && !choreoIds.current.has(id)).slice(0, BOARD.notation.max);\n const color = getComputedStyle(layer).getPropertyValue(\"--sp-stamp\").trim() || BOARD.notation.stamp;\n const marks: { remove: () => void }[] = [];\n const els: HTMLElement[] = [];\n let gone = false;\n const clear = () => { for (const m of marks.splice(0)) m.remove(); for (const el of els.splice(0)) el.remove(); };\n void import(\"rough-notation\").then(({ annotate }) => {\n if (gone) return;\n for (const id of ids) {\n const r = b.frames.find((f) => f.id === id) ?? b.notes.find((n) => n.id === id);\n if (!r) continue;\n const el = document.createElement(\"span\");\n el.className = \"sp-wb-mark\";\n el.style.cssText = `left:${v.x + r.x * v.z}px;top:${v.y + r.y * v.z}px;width:${r.w * v.z}px;height:${r.h * v.z}px`;\n layer.appendChild(el);\n els.push(el);\n const round = \"shape\" in r && (r.shape === \"sticker\" || r.shape === \"pill\" || r.shape === \"dot\" || r.shape === \"ellipse\");\n const m = annotate(el, { type: round ? \"circle\" : \"box\", color, animate: !reduceRef.current, animationDuration: BOARD.notation.drawMs, padding: BOARD.notation.pad, strokeWidth: BOARD.notation.stroke, iterations: 1 });\n m.show();\n marks.push(m);\n }\n });\n const t = setTimeout(clear, BOARD.notation.holdMs);\n return () => { gone = true; clearTimeout(t); clear(); };\n }, [hotKey]); // eslint-disable-line react-hooks/exhaustive-deps\n\n // Opening a board (from the sidebar, a \"Dari chat\" link or a chat answer) underlines its name once.\n const underlined = useRef(false);\n useEffect(() => {\n const el = titleRef.current;\n if (!board || underlined.current || !el) return;\n underlined.current = true;\n let gone = false, mark: { show: () => void; remove: () => void } | null = null;\n const color = getComputedStyle(el).getPropertyValue(\"--sp-stamp\").trim() || BOARD.notation.stamp;\n void import(\"rough-notation\").then(({ annotate }) => {\n if (gone) return;\n mark = annotate(el, { type: \"underline\", color, animate: !reduceRef.current, animationDuration: BOARD.notation.drawMs, strokeWidth: BOARD.notation.stroke, padding: 1, iterations: 1 });\n mark.show();\n });\n const t = setTimeout(() => mark?.remove(), BOARD.notation.holdMs);\n return () => { gone = true; clearTimeout(t); mark?.remove(); };\n }, [board]);\n const touch = useCallback((ids: Iterable<string>) => setSeen((s) => { const n = new Set(s); for (const id of ids) n.add(id); return n; }), []);\n\n const rectRaw = (b: Board, id: string): Rect | null => b.frames.find((f) => f.id === id) ?? b.notes.find((n) => n.id === id) ?? null;\n const dxy = (id: string): [number, number] => {\n const [gx, gy] = glideOf(id);\n return moving?.ids.has(id) ? [moving.dx + gx, moving.dy + gy] : [gx, gy];\n };\n const sizeOf = (r: { id: string; w: number; h: number }) => (sizing?.id === r.id ? [sizing.w, sizing.h] : [r.w, r.h]);\n /** A box as drawn right now, with any drag or resize in progress. */\n const rect = (id: string): Rect | null => {\n const r = board ? rectRaw(board, id) : null;\n if (!r) return null;\n const [dx, dy] = dxy(id), [w, h] = sizeOf({ id, w: r.w, h: r.h });\n return { x: r.x + dx, y: r.y + dy, w, h };\n };\n const editRects = (b: Board, keys: string[]) => keys.flatMap((k) => {\n const r = rectRaw(b, k);\n if (r) return [r];\n const l = b.links.find((x) => x.id === k);\n return l ? [rectRaw(b, l.from), rectRaw(b, l.to)].filter((x): x is Rect => !!x) : [];\n });\n\n // The agent's presence: where its last edit landed, for a few seconds after it lands.\n const presenceAge = last?.agent ? Date.now() - Date.parse(last.at) : Infinity;\n useEffect(() => {\n if (presenceAge >= PRESENCE_MS) return;\n const t = setTimeout(() => setTick((x) => x + 1), PRESENCE_MS - presenceAge + BOARD.presenceSlackMs);\n return () => clearTimeout(t);\n }, [last?.at, presenceAge]);\n const presence = board && last?.agent && presenceAge < PRESENCE_MS ? bounds(editRects(board, last.keys)) : null;\n // Where the person or agent working right now is: their keys, softly outlined; the agent's cursor idles there.\n const liveBox = board && live?.keys?.length ? bounds(editRects(board, live.keys)) : null;\n const liveKey = live ? `${live.at}|${live.keys?.join(\",\") ?? \"\"}` : \"\";\n useEffect(() => {\n if (!live || play.current) return;\n const el = viewRef.current, v = viewState.current;\n const c = liveBox ? { x: (liveBox.x0 + liveBox.x1) / 2, y: liveBox.y0 } : el ? { x: (el.clientWidth / 2 - v.x) / v.z, y: (el.clientHeight / 3 - v.y) / v.z } : null;\n if (c) flyCursor(c);\n }, [liveKey]); // eslint-disable-line react-hooks/exhaustive-deps\n\n // A new area the agent drew entirely off screen is brought into view, once per edit. A told board is not: its beats\n // arrive ahead of the drawing on screen, and the camera follows the drawing beat by beat instead.\n const followed = useRef<string | null>(null);\n useEffect(() => {\n const b = boardRef.current, el = viewRef.current;\n if (!b || !el || !last?.agent || last.told || followed.current === last.at) return;\n followed.current = last.at;\n if (Date.now() - Date.parse(last.at) > BOARD.agentRecentMs) return;\n const bb = bounds(editRects(b, last.keys));\n if (!bb) return;\n const v = viewState.current;\n const vx0 = -v.x / v.z, vy0 = -v.y / v.z, vx1 = vx0 + el.clientWidth / v.z, vy1 = vy0 + el.clientHeight / v.z;\n if ((bb.x1 < vx0 || bb.x0 > vx1 || bb.y1 < vy0 || bb.y0 > vy1) && !userMoved.current) readFit();\n }, [last?.at]); // eslint-disable-line react-hooks/exhaustive-deps\n\n const place = useCallback((shape: Shape, x: number, y: number) => {\n const b = boardRef.current;\n if (!b) return;\n const id = uid(\"n\");\n const n = BOARD.newItem[shape === \"note\" ? \"note\" : shape === \"text\" ? \"text\" : \"shape\"];\n const [w, h] = [n.w, n.h];\n apply([{ op: \"note.add\", note: {\n id, text: \"\", x: Math.round(x - w / 2), y: Math.round(y - h / 2), w, h, color: shape === \"note\" ? \"yellow\" : \"paper\",\n ...(shape !== \"note\" ? { shape } : {}), ...(shape === \"text\" ? { size: \"m\" as const } : {}), frame: frameAt(b, x, y),\n } }]);\n setSelected(new Set([id]));\n setEditing(id);\n setTool(\"select\");\n }, [apply]);\n\n /** A sticker lands in the middle of what is on screen, ready to drag where it belongs. */\n const placeSticker = useCallback((icon: string) => {\n const b = boardRef.current, el = viewRef.current;\n if (!b || !el) return;\n const v = viewState.current, size = BOARD.newSticker;\n const cx = (el.clientWidth / 2 - v.x) / v.z, cy = (el.clientHeight / 2 - v.y) / v.z;\n const id = uid(\"n\");\n apply([{ op: \"note.add\", note: { id, text: \"\", shape: \"sticker\", icon, color: \"paper\", x: Math.round(cx - size / 2), y: Math.round(cy - size / 2), w: size, h: size, frame: frameAt(b, cx, cy) } }]);\n setSelected(new Set([id]));\n setMenu(null);\n setTool(\"select\");\n }, [apply]);\n\n const removeSelected = useCallback(() => {\n const b = boardRef.current;\n if (!b || !selected.size) return;\n apply([...selected].filter((id) => b.notes.some((n) => n.id === id)).map((id): BoardOp => ({ op: \"note.remove\", id })));\n setSelected(new Set());\n }, [apply, selected]);\n\n const commitItem = useCallback((id: string, raw: string) => {\n setEditing(null);\n const n = boardRef.current?.notes.find((x) => x.id === id);\n if (!n) return;\n const shape = shapeOf(n);\n if (shape === \"note\" || shape === \"text\") {\n if (!raw.trim() && !n.text) apply([{ op: \"note.remove\", id }]);\n else if (raw !== n.text) apply([{ op: \"note.update\", id, patch: { text: raw } }]);\n return;\n }\n // Boxes: the first line is the bold title, the rest is the text.\n const [first = \"\", ...rest] = raw.split(\"\\n\");\n const t = first.trim(), body = rest.join(\"\\n\").trim();\n if (!t && !body && !n.title && !n.text) { apply([{ op: \"note.remove\", id }]); return; }\n if (t !== (n.title ?? \"\") || body !== n.text) apply([{ op: \"note.update\", id, patch: { title: t, text: body } }]);\n }, [apply]);\n const commitFrame = useCallback((id: string, t: string) => {\n setEditing(null);\n const f = boardRef.current?.frames.find((x) => x.id === id);\n if (f && t.trim() && t !== f.title) apply([{ op: \"frame.update\", id, patch: { title: t.trim() } }]);\n }, [apply]);\n const cancelEdit = useCallback(() => setEditing(null), []);\n\n /** The item (on top) or section under a world point, never the one a link starts from. */\n const targetAt = useCallback((x: number, y: number, not: string): string | null => {\n const b = boardRef.current;\n if (!b) return null;\n const hit = (r: Rect & { id: string }) => r.id !== not && x >= r.x && x <= r.x + r.w && y >= r.y && y <= r.y + r.h;\n return [...b.notes].reverse().find(hit)?.id ?? [...b.frames].reverse().find(hit)?.id ?? null;\n }, []);\n\n const raf = useRef(0);\n const onPointerDown = (e: ReactPointerEvent<HTMLDivElement>) => {\n const b = boardRef.current;\n const t = e.target as HTMLElement;\n if (!b || t.closest(\"textarea, input, button, .sp-wb-float, .sp-wb-pop\")) return;\n if (e.button !== 0 && e.button !== 1) return;\n viewRef.current?.focus({ preventScroll: true });\n setMenu(null);\n // A hand on the board freezes the camera: a glide still running would shift the board under the gesture.\n stopGlide();\n const el = e.currentTarget, pid = e.pointerId;\n // A pointer that is already gone (or a scripted one) cannot be captured; the gesture still works without it.\n const capture = () => { try { el.setPointerCapture(pid); } catch { /* not capturable */ } };\n const w = world(e.clientX, e.clientY);\n if (e.button === 1 || tool === \"pan\" || readOnlyRef.current) {\n drag.current = { kind: \"pan\", sx: e.clientX, sy: e.clientY, vx: view.x, vy: view.y };\n return capture();\n }\n const noteEl = t.closest<HTMLElement>(\"[data-note]\");\n const headEl = t.closest<HTMLElement>(\"[data-frame]\");\n const sizeEl = t.closest<HTMLElement>(\"[data-resize]\");\n const linkEl = t.closest<SVGElement>(\"[data-link]\");\n setLink(null);\n setLabelDraft(null);\n // A connection handle on the selected item: drag from it to another item to wire them, in any tool.\n const handleEl = t.closest<HTMLElement>(\"[data-handle]\");\n if (handleEl) {\n const from = handleEl.dataset.handle!;\n drag.current = { kind: \"link\", from };\n setLinking({ from, x: w.x, y: w.y, to: null });\n return capture();\n }\n if (tool === \"pen\") {\n const real = e.pointerType === \"pen\" && e.pressure > 0;\n drag.current = { kind: \"pen\", pts: [w.x, w.y], pr: [real ? e.pressure : 0.5], real };\n setPen(true);\n return capture();\n }\n if (tool === \"text\" || tool === \"note\" || tool === \"shape\") { place(tool === \"shape\" ? boxShape : tool, w.x, w.y); return; }\n if (tool === \"frame\") {\n drag.current = { kind: \"frameDraw\", wx: w.x, wy: w.y };\n return capture();\n }\n const target = noteEl?.dataset.note ?? t.closest<HTMLElement>(\".sp-wb-frame\")?.querySelector<HTMLElement>(\"[data-frame]\")?.dataset.frame;\n if (tool === \"link\") {\n if (!target) return;\n drag.current = { kind: \"link\", from: target };\n setLinking({ from: target, x: w.x, y: w.y, to: null });\n return capture();\n }\n if (linkEl) { setLink(linkEl.dataset.link!); setSelected(new Set()); return; }\n if (sizeEl) {\n const id = sizeEl.dataset.resize!, frame = sizeEl.hasAttribute(\"data-resize-frame\");\n const r = frame ? b.frames.find((f) => f.id === id) : b.notes.find((n) => n.id === id);\n if (!r) return;\n drag.current = { kind: \"resize\", sx: e.clientX, sy: e.clientY, id, frame, w: r.w, h: r.h, min: frame ? BOARD.frameMinSize : minSize((r as WbNote).shape) };\n return capture();\n }\n if (noteEl && e.shiftKey) {\n const id = noteEl.dataset.note!;\n setSelected((s) => { const n = new Set(s); if (n.has(id)) n.delete(id); else n.add(id); return n; });\n return;\n }\n if (noteEl) {\n const id = noteEl.dataset.note!;\n const next = selected.has(id) ? new Set(selected) : new Set([id]);\n setSelected(next);\n touch([id]);\n drag.current = { kind: \"notes\", sx: e.clientX, sy: e.clientY, ids: [...next].filter((x) => b.notes.some((n) => n.id === x)) };\n return capture();\n }\n if (headEl) {\n const id = headEl.dataset.frame!;\n drag.current = { kind: \"frame\", sx: e.clientX, sy: e.clientY, id, ids: [id, ...b.notes.filter((n) => n.frame === id).map((n) => n.id)] };\n return capture();\n }\n drag.current = { kind: \"box\", wx: w.x, wy: w.y };\n if (!e.shiftKey) setSelected(new Set());\n capture();\n };\n\n const onPointerMove = (e: ReactPointerEvent<HTMLDivElement>) => {\n const d = drag.current;\n if (!d) return;\n const { clientX, clientY } = e;\n if (d.kind === \"pen\") {\n const w = world(clientX, clientY);\n const n = d.pts.length;\n if (Math.hypot(w.x - d.pts[n - 2], w.y - d.pts[n - 1]) * viewState.current.z >= BOARD.ink.minStep) {\n d.pts.push(Math.round(w.x * 10) / 10, Math.round(w.y * 10) / 10);\n d.pr.push(d.real ? e.pressure : 0.5);\n }\n }\n cancelAnimationFrame(raf.current);\n raf.current = requestAnimationFrame(() => {\n const z = viewState.current.z;\n if (d.kind === \"pan\") panBy((v) => ({ ...v, x: d.vx + clientX - d.sx, y: d.vy + clientY - d.sy }));\n else if (d.kind === \"pen\") penPath.current?.setAttribute(\"d\", liveStroke(d.pts, d.real ? d.pr : undefined, inkSize, inkBrush, BOARD.brush.width[inkBrush][inkSize] / viewState.current.z));\n else if (d.kind === \"resize\") setSizing({ id: d.id, w: Math.max(d.min.w, Math.round(d.w + (clientX - d.sx) / z)), h: Math.max(d.min.h, Math.round(d.h + (clientY - d.sy) / z)) });\n else if (d.kind === \"link\") { const w = world(clientX, clientY); setLinking({ from: d.from, x: w.x, y: w.y, to: targetAt(w.x, w.y, d.from) }); }\n else if (d.kind === \"box\" || d.kind === \"frameDraw\") { const w = world(clientX, clientY); setMarquee({ x0: Math.min(d.wx, w.x), y0: Math.min(d.wy, w.y), x1: Math.max(d.wx, w.x), y1: Math.max(d.wy, w.y), frame: d.kind === \"frameDraw\" }); }\n else setMoving({ ids: new Set(d.ids), dx: (clientX - d.sx) / z, dy: (clientY - d.sy) / z });\n });\n };\n\n const onPointerUp = (e: ReactPointerEvent<HTMLDivElement>) => {\n const d = drag.current;\n drag.current = null;\n cancelAnimationFrame(raf.current);\n const b = boardRef.current;\n if (!d || !b) return;\n const z = viewState.current.z;\n const dx = Math.round((e.clientX - (\"sx\" in d ? d.sx : 0)) / z), dy = Math.round((e.clientY - (\"sy\" in d ? d.sy : 0)) / z);\n if (d.kind === \"resize\") {\n if (sizing && sizing.id === d.id && (sizing.w !== d.w || sizing.h !== d.h)) apply([d.frame ? { op: \"frame.update\", id: d.id, patch: { w: sizing.w, h: sizing.h } } : { op: \"note.update\", id: d.id, patch: { w: sizing.w, h: sizing.h } }]);\n setSizing(null);\n return;\n }\n if (d.kind === \"link\") {\n const w = world(e.clientX, e.clientY);\n const to = targetAt(w.x, w.y, d.from);\n if (to && !b.links.some((l) => l.from === d.from && l.to === to)) apply([{ op: \"link.add\", link: { id: uid(\"l\"), from: d.from, to, route: \"elbow\" } }]);\n setLinking(null);\n setTool(\"select\");\n return;\n }\n if (d.kind === \"pen\") {\n setPen(false);\n if (d.pts.length < 4) return;\n const xs = d.pts.filter((_, i) => i % 2 === 0), ys = d.pts.filter((_, i) => i % 2 === 1);\n const x0 = Math.min(...xs) - 2, y0 = Math.min(...ys) - 2;\n const w = Math.max(...xs) - x0 + 2, h = Math.max(...ys) - y0 + 2;\n // Room for the nib on every side, so a thick stroke is not clipped at its own box.\n // The brush keeps its size on screen: drawn zoomed out, the stroke is that much wider on the board.\n const weight = BOARD.brush.width[inkBrush][inkSize] / viewState.current.z;\n const nib = Math.ceil(weight * 0.75);\n const bx = x0 - nib, by = y0 - nib;\n apply([{ op: \"note.add\", note: {\n id: uid(\"n\"), shape: \"ink\", text: \"\", color: inkColor, size: inkSize, brush: inkBrush, weight, x: Math.round(bx), y: Math.round(by), w: Math.max(24, Math.round(w + nib * 2)), h: Math.max(16, Math.round(h + nib * 2)), frame: null,\n points: d.pts.map((v, i) => Math.round((v - (i % 2 ? by : bx)) * 10) / 10), ...(d.real ? { pressure: d.pr.map((v) => Math.round(v * 100) / 100) } : {}),\n } }]);\n return;\n }\n if (d.kind === \"frameDraw\") {\n const m = marquee;\n const id = uid(\"f\");\n apply([{ op: \"frame.add\", frame: m && m.x1 - m.x0 > BOARD.frameMin && m.y1 - m.y0 > BOARD.frameMin\n ? { id, title: WB.newFrame, x: Math.round(m.x0), y: Math.round(m.y0), w: Math.round(m.x1 - m.x0), h: Math.round(m.y1 - m.y0) }\n : { id, title: WB.newFrame, x: Math.round(d.wx), y: Math.round(d.wy), w: BOARD.newFrame.w, h: BOARD.newFrame.h } }]);\n setEditing(id);\n setMarquee(null);\n setTool(\"select\");\n return;\n }\n if (d.kind === \"notes\" && (Math.abs(dx) > 2 || Math.abs(dy) > 2)) {\n apply(d.ids.flatMap((id): BoardOp[] => { const n = b.notes.find((x) => x.id === id); return n ? [{ op: \"note.update\", id, patch: { x: n.x + dx, y: n.y + dy } }] : []; }));\n } else if (d.kind === \"frame\" && (Math.abs(dx) > 2 || Math.abs(dy) > 2)) {\n apply([{ op: \"frame.move\", id: d.id, dx, dy }]);\n } else if (d.kind === \"box\" && marquee) {\n const hit = b.notes.filter((n) => n.x < marquee.x1 && n.x + n.w > marquee.x0 && n.y < marquee.y1 && n.y + n.h > marquee.y0).map((n) => n.id);\n setSelected((s) => new Set([...(e.shiftKey ? s : []), ...hit]));\n touch(hit);\n }\n setMoving(null);\n setMarquee(null);\n };\n\n const onDoubleClick = (e: React.MouseEvent<HTMLDivElement>) => {\n const t = e.target as HTMLElement;\n if (t.closest(\"textarea, input, button, .sp-wb-float, .sp-wb-pop\") || tool !== \"select\" || readOnlyRef.current) return;\n const noteEl = t.closest<HTMLElement>(\"[data-note]\");\n const headEl = t.closest<HTMLElement>(\"[data-frame]\");\n if (noteEl) { if (noteEl.dataset.shape !== \"ink\") setEditing(noteEl.dataset.note!); }\n else if (headEl) setEditing(headEl.dataset.frame!);\n else { const w = world(e.clientX, e.clientY); place(\"note\", w.x, w.y); }\n };\n\n const onKeyDown = (e: ReactKeyboardEvent<HTMLElement>) => {\n const el = e.target as HTMLElement;\n if (editing || el.closest(\"textarea, input\")) return;\n if (readOnlyRef.current) { if (e.key === \"Escape\") toLatestRef.current(); return; }\n if ((e.key === \"Delete\" || e.key === \"Backspace\") && link) { e.preventDefault(); apply([{ op: \"link.remove\", id: link }]); setLink(null); return; }\n if ((e.key === \"Delete\" || e.key === \"Backspace\") && selected.size) { e.preventDefault(); removeSelected(); return; }\n if (e.key === \"Escape\") { setLinking(null); setLink(null); setSelected(new Set()); setTool(\"select\"); setMenu(null); setPen(false); setMarquee(null); drag.current = null; return; }\n const id = el.closest<HTMLElement>(\"[data-note]\")?.dataset.note;\n const k = e.key.toLowerCase();\n if (!id && !e.metaKey && !e.ctrlKey && !e.altKey && KEY_TOOL[k]) { e.preventDefault(); setTool(KEY_TOOL[k]); return; }\n if (!id) return;\n const n = boardRef.current?.notes.find((x) => x.id === id);\n if (!n) return;\n if (e.key === \"Enter\") { e.preventDefault(); if (shapeOf(n) !== \"ink\") setEditing(id); return; }\n if (e.key === \" \") { e.preventDefault(); setSelected(new Set([id])); touch([id]); return; }\n const step = { ArrowLeft: [-BOARD.nudge, 0], ArrowRight: [BOARD.nudge, 0], ArrowUp: [0, -BOARD.nudge], ArrowDown: [0, BOARD.nudge] }[e.key];\n if (!step) return;\n e.preventDefault();\n touch([id]);\n const min = minSize(n.shape);\n // Shift+arrows resizes, plain arrows move: the keyboard path to everything a drag does.\n apply([e.shiftKey ? { op: \"note.update\", id, patch: { w: Math.max(min.w, n.w + step[0] * 2), h: Math.max(min.h, n.h + step[1] * 2) } } : { op: \"note.update\", id, patch: { x: n.x + step[0], y: n.y + step[1] } }]);\n };\n\n const askSelection = () => {\n const q = question.trim();\n if (!q || !selected.size) return;\n ctx.onAsk(WB.askSelected(data.ref, [...selected].join(\", \"), q));\n setQuestion(\"\");\n boost();\n };\n const sendChange = () => {\n const q = change.trim();\n if (!q) return;\n ctx.onAsk(WB.askBoard(data.ref, q));\n setChange(\"\");\n setAskOpen(false);\n boost();\n };\n\n const selNotes = board ? board.notes.filter((n) => selected.has(n.id)) : [];\n const selLink = board && link ? board.links.find((l) => l.id === link) ?? null : null;\n const empty = !!board && !board.notes.length && !board.frames.length;\n const linkFrom = linking ? rect(linking.from) : null;\n const toScreen = (x: number, y: number) => ({ x: x * view.z + view.x, y: y * view.z + view.y });\n // One selected item (not being edited or dragged) shows four wiring handles, one per side.\n const wireFrom = selNotes.length === 1 && !editing && !moving && !linking && shapeOf(selNotes[0]) !== \"ink\" ? { id: selNotes[0].id, r: rect(selNotes[0].id) } : null;\n const selBox = selNotes.length && !editing && !moving ? bounds(selNotes.map((n) => rect(n.id)).filter((r): r is Rect => !!r)) : null;\n const linkA = selLink ? rect(selLink.from) : null, linkC = selLink ? rect(selLink.to) : null;\n const linkMid = selLink && linkA && linkC ? geoOf(linkA, linkC, selLink.route).mid : null;\n const allBoxy = selNotes.length > 0 && selNotes.every((n) => isBoxy(shapeOf(n)));\n const allText = selNotes.length > 0 && selNotes.every((n) => shapeOf(n) === \"text\");\n const step = RULE * view.z;\n const gridStyle = { backgroundSize: `${step}px ${step}px`, backgroundPosition: `${((view.x % step) + step) % step}px ${((view.y % step) + step) % step}px` };\n\n return (\n <section className=\"sp-lego sp-wb\" data-full={full || undefined} data-look={look} data-mode={mode} aria-label={title} onKeyDown={onKeyDown} style={vars}>\n <header className=\"sp-wb-head\">\n <div className=\"sp-wb-title\">\n <strong ref={titleRef} dir=\"auto\">{board?.title ?? title}</strong>\n <span className=\"sp-wb-sub\">\n <span>{data.ref}</span>\n {board && <span>{WB.changedBy(board.updatedBy)}{ago(board.updatedAt) ? ` · ${ago(board.updatedAt)}` : \"\"}</span>}\n {saving && <span className=\"sp-wb-saving\" role=\"status\">{WB.saving}</span>}\n </span>\n </div>\n <button type=\"button\" className=\"sp-wb-btn\" onClick={() => setFull((f) => !f)}>{full ? <><IClose size={14} /> {WB.close}</> : <><IPanel size={14} /> {WB.fullscreen}</>}</button>\n <div className=\"sp-wb-anchor\">\n <button type=\"button\" className=\"sp-wb-btn\" data-menu aria-haspopup=\"menu\" aria-expanded={menu === \"more\"} onClick={() => setMenu(menu === \"more\" ? null : \"more\")}>{WB.more}</button>\n <AnimatePresence>{menu === \"more\" && (\n <motion.div key=\"more\" className=\"sp-wb-pop sp-wb-pop-right\" role=\"menu\" {...POP_IN}>\n <button type=\"button\" role=\"menuitem\" onClick={() => { setMenu(null); ctx.onAsk(WB.toDocAsk(data.ref)); }}><IDoc size={14} /> {WB.toDoc}</button>\n <button type=\"button\" role=\"menuitem\" onClick={() => { setMenu(null); reload(); }}><IRefresh size={14} /> {WB.reload}</button>\n <div className=\"sp-wb-pop-group\" role=\"group\" aria-label={WB.styleLabel}>\n <span className=\"sp-wb-pop-label\">{WB.styleLabel}</span>\n {([\"ink\", \"neat\"] as const).map((v) => (\n <button key={v} type=\"button\" role=\"menuitemradio\" aria-checked={look === v} onClick={() => pickLook(v)}>{WB.styleOf(WB.styles[v])}</button>\n ))}\n </div>\n <div className=\"sp-wb-pop-group\" role=\"group\" aria-label={WB.tempoLabel}>\n <span className=\"sp-wb-pop-label\">{WB.tempoLabel}</span>\n {TEMPOS.map((t) => (\n <button key={t} type=\"button\" role=\"menuitemradio\" aria-checked={tempo === t} onClick={() => { setTempo(t); saveTempo(t); }}>{WB.tempos[t]}</button>\n ))}\n </div>\n <button type=\"button\" role=\"menuitemcheckbox\" aria-checked={sound} onClick={() => { const on = !sound; setSoundOn(on); setSound(on); }}>{sound ? WB.soundOn : WB.soundOff}</button>\n </motion.div>\n )}</AnimatePresence>\n </div>\n </header>\n\n {error && board && (\n <p className=\"sp-wb-error\" role=\"alert\"><span>{error}</span><button type=\"button\" className=\"sp-wb-link\" onClick={reload}><IRefresh size={13} /> {WB.reload}</button></p>\n )}\n\n {!board ? (\n error ? (\n <div className=\"sp-wb-state\" role=\"alert\"><strong>{WB.loadFailed}</strong><span>{error}</span><button type=\"button\" className=\"sp-wb-btn\" onClick={reload}><IRefresh size={14} /> {WB.retry}</button></div>\n ) : (\n <div className=\"sp-wb-view sp-wb-loading\" role=\"status\" aria-label={WB.loading}><span /><span /><span /></div>\n )\n ) : (\n <div\n ref={viewRef} className=\"sp-wb-view\" data-tool={readOnly ? \"pan\" : tool} data-readonly={readOnly || undefined} tabIndex={0} aria-label={readOnly ? WB.readOnly : WB.canvasAria} style={gridStyle}\n onPointerDown={onPointerDown} onPointerMove={onPointerMove} onPointerUp={onPointerUp} onPointerCancel={onPointerUp}\n onDoubleClick={onDoubleClick}\n >\n <div ref={markLayer} className=\"sp-wb-marks\" aria-hidden style={markView.current ? (() => {\n const v0 = markView.current, k = view.z / v0.z;\n return { transform: `translate(${view.x - v0.x * k}px, ${view.y - v0.y * k}px) scale(${k})` };\n })() : undefined} />\n <div className=\"sp-wb-world\" style={{ transform: `translate(${view.x}px, ${view.y}px) scale(${view.z})` }}>\n <AnimatePresence>\n {footprints.map((p, i) => (\n <motion.div key={`plan-${p.id}`} className=\"sp-wb-foot\" data-kind={p.kind} aria-hidden\n style={{ translate: `${p.x}px ${p.y}px`, width: p.w, height: p.h }}\n initial={{ opacity: 0 }} animate={{ opacity: 1, transition: { duration: (BOARD.enter.footMs * tf) / 1000, ease: \"easeInOut\", delay: (Math.min(i, 24) * BOARD.footStepMs * tf) / 1000 } }} exit={{ opacity: 0, transition: { duration: (BOARD.enter.fadeMs * tf) / 1000, ease: \"easeInOut\" } }}>\n {p.kind !== \"track\" && p.kind !== \"text\" && <RoughOutline id={`plan-${p.id}`} shape={p.kind === \"frame\" ? \"frame\" : p.kind === \"cell\" ? \"cell\" : \"box\"} w={p.w} h={p.h} />}\n {p.kind === \"track\" && <span className=\"sp-wb-foot-road\" />}\n {p.kind === \"card\" && <span className=\"sp-wb-foot-line\" />}\n </motion.div>\n ))}\n </AnimatePresence>\n {onions.current.map((o) => (\n <div key={o.id} className=\"sp-wb-onion\" aria-hidden style={{ translate: `${o.x}px ${o.y}px`, width: o.w, height: o.h }}>{o.title && <span dir=\"auto\">{o.title}</span>}</div>\n ))}\n <AnimatePresence>\n {[...deleted.current.entries()].map(([id, g]) => (\n <motion.div key={`del-${id}`} className=\"sp-wb-struck\" aria-hidden style={{ translate: `${g.x}px ${g.y}px`, width: g.w, height: g.h }}\n initial={{ opacity: 0 }} animate={{ opacity: 1 }} exit={{ opacity: 0, transition: { duration: 0.3 } }}>\n {g.title && <span dir=\"auto\">{g.title}</span>}\n </motion.div>\n ))}\n </AnimatePresence>\n {[...leaving.current.values()].filter((l) => l.frame).map(({ item, delay }) => (\n <FrameBox key={`gone-${item.id}`} f={item as WbFrame} dx={0} dy={0} w={item.w} h={item.h} target={false} hot={false} born={false} leaving leaveDelay={delay} editing={false} inked={inked} onCommit={commitFrame} onCancel={cancelEdit} />\n ))}\n {board.frames.map((f) => {\n const [dx, dy] = dxy(f.id), [w, h] = sizeOf(f);\n shownAt.current.set(f.id, { x: f.x + dx, y: f.y + dy });\n return <FrameBox key={f.id} f={f} dx={dx} dy={dy} w={w} h={h} target={linking?.to === f.id} hot={hot.has(f.id) && !seen.has(f.id)} born={born.current.has(f.id)} editing={editing === f.id} inked={inked} pending={pending.current.has(f.id)} enter={entering.current.get(f.id)} onCommit={commitFrame} onCancel={cancelEdit} />;\n })}\n <Links b={board} rect={rect} selected={link} preview={linking && linkFrom ? { a: linkFrom, x: linking.x, y: linking.y } : null} inked={inked} hidden={pending.current} enter={entering.current} />\n {[...leaving.current.values()].filter((l) => !l.frame).map(({ item, delay }) => (\n <Item key={`gone-${item.id}`} n={item as WbNote} selected={false} hot={false} born={false} leaving leaveDelay={delay} drag={false} dx={0} dy={0} w={item.w} h={item.h} target={false} editing={false} inked={inked} onCommit={commitItem} onCancel={cancelEdit} />\n ))}\n {layered(board.notes).map((n) => {\n const [dx, dy] = dxy(n.id), [w, h] = sizeOf(n);\n shownAt.current.set(n.id, { x: n.x + dx, y: n.y + dy });\n return <Item key={n.id} n={n} selected={selected.has(n.id)} hot={hot.has(n.id) && !seen.has(n.id)} born={born.current.has(n.id)} drag={!!moving?.ids.has(n.id)} dx={dx} dy={dy} w={w} h={h} target={linking?.to === n.id} editing={editing === n.id} inked={inked} pending={pending.current.has(n.id)} enter={entering.current.get(n.id)} onCommit={commitItem} onCancel={cancelEdit} />;\n })}\n {wireFrom && wireFrom.r && ([[0.5, 0], [1, 0.5], [0.5, 1], [0, 0.5]] as const).map(([fx, fy], i) => (\n <span key={`h${i}`} className=\"sp-wb-handle\" data-handle={wireFrom.id} title={WB.wireHint}\n style={{ left: wireFrom.r!.x + wireFrom.r!.w * fx, top: wireFrom.r!.y + wireFrom.r!.h * fy, transform: `translate(-50%, -50%) scale(${1 / view.z})` }} />\n ))}\n {pen && <svg className=\"sp-wb-pen-live\" data-color={inkColor} width=\"1\" height=\"1\" aria-hidden><path ref={penPath} /></svg>}\n {marquee && <div className=\"sp-wb-box\" data-frame-draw={marquee.frame || undefined} style={{ left: marquee.x0, top: marquee.y0, width: marquee.x1 - marquee.x0, height: marquee.y1 - marquee.y0 }} />}\n {presence && !activity && !cursor && (\n <div className=\"sp-wb-presence\" style={{ left: presence.x0 - 8, top: presence.y0 - 8, width: presence.x1 - presence.x0 + 16, height: presence.y1 - presence.y0 + 16 }} aria-hidden>\n <span className=\"sp-wb-presence-chip\" style={{ transform: `scale(${1 / view.z})` }}><i /> {WB.agentDrawing}</span>\n </div>\n )}\n {liveBox && (\n <div className=\"sp-wb-live\" data-agent={live?.agent || undefined} style={{ left: liveBox.x0 - 10, top: liveBox.y0 - 10, width: liveBox.x1 - liveBox.x0 + 20, height: liveBox.y1 - liveBox.y0 + 20 }} aria-hidden />\n )}\n <AgentCursor x={cursorX} y={cursorY} press={cursorPress} z={view.z} show={!!cursor || !!live} agent={cursor ? cursor.agent : !!live?.agent}\n label={telling || cursor?.told ? WB.agent : cursor?.label ?? (live ? (live.agent ? WB.agentWorking(live.what) : WB.personWorking(live.by, live.what)) : \"\")} />\n </div>\n\n {empty && !readOnly && <p className=\"sp-wb-empty\">{WB.empty}</p>}\n\n <AnimatePresence>{(cursor || live) && !telling && !cursor?.told && (\n <motion.div key=\"status\" className=\"sp-wb-float sp-wb-status\" role=\"status\" data-agent={(cursor ? cursor.agent : live?.agent) || undefined} {...POP_IN}>\n <i aria-hidden />\n <span dir=\"auto\">{cursor?.label ?? (live ? (live.agent ? WB.agentWorking(live.what) : WB.personWorking(live.by, live.what)) : \"\")}</span>\n {cursor && !m.replay && <button type=\"button\" className=\"sp-wb-btn\" onClick={() => finish()} aria-label={WB.skipAria}>{WB.skip}</button>}\n </motion.div>\n )}</AnimatePresence>\n\n {(cursor || live) && !telling && !cursor?.told && (\n <EdgeMarker x={cursorX} y={cursorY} view={view} label={WB.edgeOf(cursor?.label ?? live?.what ?? \"\")}\n onFly={() => { const el = viewRef.current; if (el) { lastInput.current = 0; flyTo(centreOn({ x: cursorX.get(), y: cursorY.get() }, viewState.current, { w: el.clientWidth, h: el.clientHeight }, bottomRef.current)); } }} />\n )}\n\n <AnimatePresence>{m.scrub !== null && !telling && (\n <ScrubBanner key=\"scrub\" version={m.scrub} why={entryOf(m.scrub)?.why || entryOf(m.scrub)?.what || \"\"} restoring={restoring} replaying={!!m.replay}\n onLatest={() => toLatestRef.current()} onRestore={() => void restoreShown()} />\n )}</AnimatePresence>\n\n <div className=\"sp-wb-zoomctl sp-wb-float\">\n <button type=\"button\" className=\"sp-wb-btn\" data-menu aria-haspopup=\"menu\" aria-expanded={menu === \"zoom\"} onClick={() => setMenu(menu === \"zoom\" ? null : \"zoom\")}>{WB.zoom(Math.round(view.z * 100))}</button>\n <AnimatePresence>{menu === \"zoom\" && (\n <motion.div key=\"zoom\" className=\"sp-wb-pop sp-wb-pop-right\" role=\"menu\" {...POP_IN}>\n <button type=\"button\" role=\"menuitem\" onClick={() => zoomBy(BOARD.zoomStep)}>{WB.zoomIn}</button>\n <button type=\"button\" role=\"menuitem\" onClick={() => zoomBy(1 / BOARD.zoomStep)}>{WB.zoomOut}</button>\n <button type=\"button\" role=\"menuitem\" onClick={() => { setMenu(null); fit(); }}>{WB.fit}</button>\n <button type=\"button\" role=\"menuitem\" onClick={() => { setMenu(null); zoomBy(1 / viewState.current.z); }}>100%</button>\n </motion.div>\n )}</AnimatePresence>\n </div>\n\n <AnimatePresence>{selBox && (() => {\n return (\n <motion.div key=\"selbar\" className=\"sp-wb-float sp-wb-bar\" role=\"toolbar\" aria-label={WB.selected(selNotes.length)} data-dock=\"top\" {...POP_IN}>\n <span className=\"sp-wb-count\">{WB.selected(selNotes.length)}</span>\n <div className=\"sp-wb-swatches\" role=\"group\" aria-label={WB.color}>\n {SWATCHES.map((c) => (\n <button key={c} type=\"button\" className=\"sp-wb-swatch\" data-color={c} aria-label={WB.colorOf(COLOR_NAME[c])} title={COLOR_NAME[c]}\n aria-pressed={selNotes.every((n) => n.color === c)}\n onClick={() => apply(selNotes.map((n): BoardOp => ({ op: \"note.update\", id: n.id, patch: { color: c } })))}><span /></button>\n ))}\n </div>\n {allBoxy && (\n <div className=\"sp-wb-seg\" role=\"group\" aria-label={WB.shape}>\n {BOX_SHAPES.map((s) => <button key={s.id} type=\"button\" className=\"sp-wb-btn\" aria-pressed={selNotes.every((n) => n.shape === s.id)} onClick={() => apply(selNotes.map((n): BoardOp => ({ op: \"note.update\", id: n.id, patch: { shape: s.id } })))}>{s.label}</button>)}\n </div>\n )}\n {allText && (\n <div className=\"sp-wb-seg\" role=\"group\" aria-label={WB.textSize}>\n {SIZES.map((s) => <button key={s.id} type=\"button\" className=\"sp-wb-btn\" aria-pressed={selNotes.every((n) => (n.size ?? \"m\") === s.id)} onClick={() => apply(selNotes.map((n): BoardOp => ({ op: \"note.update\", id: n.id, patch: { size: s.id } })))}>{s.label}</button>)}\n </div>\n )}\n <button type=\"button\" className=\"sp-wb-btn\" onClick={removeSelected}><ITrash size={14} /> {WB.remove}</button>\n <form className=\"sp-wb-ask\" onSubmit={(e) => { e.preventDefault(); askSelection(); }}>\n <input value={question} onChange={(e) => setQuestion(e.target.value)} placeholder={WB.askPick} aria-label={WB.askPick} maxLength={BOARD.askMax} dir=\"auto\" />\n <button type=\"submit\" className=\"sp-wb-btn\" disabled={!question.trim()}><IChat size={14} /> {WB.ask}</button>\n </form>\n </motion.div>\n );\n })()}</AnimatePresence>\n\n <AnimatePresence>{selLink && linkMid && (() => {\n const arrow = selLink.arrow ?? \"end\";\n const nextArrow = arrow === \"end\" ? \"both\" : arrow === \"both\" ? \"none\" : \"end\";\n const saveLabel = () => { if (labelDraft !== null && labelDraft.trim() !== (selLink.label ?? \"\")) apply([{ op: \"link.update\", id: selLink.id, patch: { label: labelDraft.trim() } }]); setLabelDraft(null); };\n return (\n <motion.div key=\"linkbar\" className=\"sp-wb-float sp-wb-bar\" role=\"toolbar\" aria-label={WB.linkSelected} data-dock=\"top\" {...POP_IN}>\n <button type=\"button\" className=\"sp-wb-btn\" onClick={() => apply([{ op: \"link.update\", id: selLink.id, patch: { route: ROUTE_NEXT[selLink.route ?? \"elbow\"] } }])}>{WB.routeTo[ROUTE_NEXT[selLink.route ?? \"elbow\"]]}</button>\n <button type=\"button\" className=\"sp-wb-btn\" aria-pressed={!!selLink.dashed} onClick={() => apply([{ op: \"link.update\", id: selLink.id, patch: { dashed: !selLink.dashed } }])}>{WB.dashed}</button>\n <button type=\"button\" className=\"sp-wb-btn\" onClick={() => apply([{ op: \"link.update\", id: selLink.id, patch: { arrow: nextArrow } }])}>{WB.ends(arrow === \"end\" ? WB.endsOne : arrow === \"both\" ? WB.endsTwo : WB.endsNone)}</button>\n <form className=\"sp-wb-ask\" onSubmit={(e) => { e.preventDefault(); saveLabel(); }}>\n <input value={labelDraft ?? selLink.label ?? \"\"} onChange={(e) => setLabelDraft(e.target.value)} onBlur={saveLabel} placeholder={WB.linkLabel} aria-label={WB.linkLabel} maxLength={BOARD.linkLabelMax} dir=\"auto\" />\n </form>\n <button type=\"button\" className=\"sp-wb-btn\" onClick={() => { apply([{ op: \"link.remove\", id: selLink.id }]); setLink(null); }}><ITrash size={14} /> {WB.remove}</button>\n </motion.div>\n );\n })()}</AnimatePresence>\n\n <div className=\"sp-wb-dock sp-wb-float\">\n {/* Keep or undo sits in the dock, never over the board, and only once the agent has finished drawing. */}\n <AnimatePresence>\n {shownBatch.current && !readOnly && !telling && !cursor && !live && (\n <motion.div key={`batch-${shownBatch.current.id}`} className=\"sp-wb-batch-dock\" layout=\"position\"\n initial={{ opacity: 0, y: 6 }} animate={{ opacity: 1, y: 0 }} exit={{ opacity: 0, y: 4, transition: { duration: 0.18 } }} transition={{ type: \"spring\", visualDuration: 0.32, bounce: 0.15 }}>\n <BatchPill batch={shownBatch.current} z={1} state={batchUi.state} error={batchUi.error} onKeep={() => void keepPending()} onUndo={() => void undoPending()} />\n </motion.div>\n )}\n </AnimatePresence>\n {/* While the agent draws live, what it says for each beat is narrated here, above the toolbar, as in a replay. */}\n {cursor?.told && !m.replay && <Caption key=\"live-say\" text={cursor.label} version={0} speed={1 / tf} instant={!!reduce} lead={WB.agent} onSkip={() => finish()} />}\n {caption && m.replay && <Caption text={caption.text} version={caption.version} speed={m.replay.speed / tf} instant={!!reduce} {...(telling ? { lead: WB.agent, onSkip: () => toLatestRef.current() } : {})} />}\n <AnimatePresence>{histOpen && (\n <HistoryStrip key=\"history\" entries={hist} loading={histLoading && !hist} current={m.scrub} note={histNote} latest={latest?.version ?? 0} replaying={!!m.replay} paused={!!m.replay?.paused} speed={m.replay?.speed ?? 1}\n onPick={(v) => void showVersion(v)} onReplay={() => void runReplay()} onPause={(p) => send({ type: \"pause\", paused: p })} onSpeed={(x) => send({ type: \"speed\", speed: x })}\n onClose={() => { setHistOpen(false); if (readOnlyRef.current) toLatestRef.current(); }} />\n )}</AnimatePresence>\n {/* Opens and closes like History: it grows out of the toolbar, so everything above it glides rather than jumps. */}\n <AnimatePresence initial={false}>{askOpen && (\n <motion.div key=\"change\" className=\"sp-wb-change-wrap\"\n initial={reduce ? { opacity: 0 } : { height: 0, opacity: 0, y: 6, overflow: \"hidden\" }}\n animate={reduce ? { opacity: 1 } : { height: \"auto\", opacity: 1, y: 0, transitionEnd: { overflow: \"visible\" } }}\n exit={reduce ? { opacity: 0 } : { height: 0, opacity: 0, y: 6, overflow: \"hidden\" }}\n transition={{ type: \"spring\", visualDuration: ASK_SPRING.visualDuration, bounce: ASK_SPRING.bounce }}>\n <form className=\"sp-wb-change\" onSubmit={(e) => { e.preventDefault(); sendChange(); }}>\n <input ref={changeRef} autoFocus value={change} onChange={(e) => setChange(e.target.value)} placeholder={WB.describeChange} aria-label={WB.describeChangeAria} maxLength={BOARD.changeMax} dir=\"auto\"\n onKeyDown={(e) => { if (e.key === \"Escape\") { e.stopPropagation(); setAskOpen(false); } }} />\n <button type=\"submit\" className=\"sp-wb-btn sp-wb-send\" disabled={!change.trim()}>{WB.send}</button>\n </form>\n </motion.div>\n )}</AnimatePresence>\n <div className=\"sp-wb-toolbar\" role=\"toolbar\" aria-label={WB.toolbar}>\n {TOOLS.map((t) => (\n <div key={t.id} className=\"sp-wb-anchor\">\n <button type=\"button\" className=\"sp-wb-tool\" aria-pressed={tool === t.id} title={`${t.label} (${t.key})`} data-menu={t.id === \"shape\" || t.id === \"pen\" || undefined}\n onClick={() => { if (t.id === \"shape\" || t.id === \"pen\") setMenu(menu === t.id ? null : t.id); setTool(t.id); }}>\n {t.id === \"shape\" ? SHAPE_ICON : TOOL_ICON[t.id as Exclude<Tool, \"shape\">]}\n <span>{t.id === \"shape\" ? BOX_SHAPES.find((s) => s.id === boxShape)!.label : t.label}</span>\n </button>\n <AnimatePresence>{t.id === \"pen\" && menu === \"pen\" && (\n <motion.div key=\"pen\" className=\"sp-wb-pop sp-wb-pop-up sp-wb-pen-menu\" role=\"menu\" aria-label={WB.penMenu} {...POP_UP}>\n <div className=\"sp-wb-pop-group\" role=\"group\" aria-label={WB.penColorGroup}>\n <span className=\"sp-wb-pop-label\">{WB.penColorGroup}</span>\n {INK_COLORS.map((c) => (\n <button key={c} type=\"button\" role=\"menuitemradio\" aria-checked={inkColor === c} data-ink={c} onClick={() => { setInkColor(c); setTool(\"pen\"); }}>\n <i className=\"sp-wb-ink-dot\" aria-hidden />{WB.penColors[c]}\n </button>\n ))}\n </div>\n <div className=\"sp-wb-pop-group\" role=\"group\" aria-label={WB.penBrushGroup}>\n <span className=\"sp-wb-pop-label\">{WB.penBrushGroup}</span>\n {([\"pena\", \"spidol\"] as const).map((b) => (\n <button key={b} type=\"button\" role=\"menuitemradio\" aria-checked={inkBrush === b} data-brush={b} onClick={() => { setInkBrush(b); setTool(\"pen\"); }}>\n <i className=\"sp-wb-brush-tip\" aria-hidden />{WB.penBrushes[b]}\n </button>\n ))}\n </div>\n <div className=\"sp-wb-pop-group\" role=\"group\" aria-label={WB.penSizeGroup}>\n <span className=\"sp-wb-pop-label\">{WB.penSizeGroup}</span>\n {([\"s\", \"m\", \"l\"] as const).map((z) => (\n <button key={z} type=\"button\" role=\"menuitemradio\" aria-checked={inkSize === z} data-size={z} onClick={() => { setInkSize(z); setTool(\"pen\"); setMenu(null); }}>\n <i className=\"sp-wb-ink-width\" aria-hidden />{WB.penSizes[z]}\n </button>\n ))}\n </div>\n </motion.div>\n )}</AnimatePresence>\n <AnimatePresence>{t.id === \"shape\" && menu === \"shape\" && (\n <motion.div key=\"shape\" className=\"sp-wb-pop sp-wb-pop-up\" role=\"menu\" {...POP_UP}>\n {BOX_SHAPES.map((s) => <button key={s.id} type=\"button\" role=\"menuitemradio\" aria-checked={boxShape === s.id} onClick={() => { setBoxShape(s.id); setTool(\"shape\"); setMenu(null); }}>{s.label}</button>)}\n </motion.div>\n )}</AnimatePresence>\n </div>\n ))}\n <div className=\"sp-wb-anchor\">\n <button type=\"button\" className=\"sp-wb-tool\" data-menu aria-haspopup=\"menu\" aria-expanded={menu === \"sticker\"} onClick={() => setMenu(menu === \"sticker\" ? null : \"sticker\")}>\n {STICKER_ICON}<span>{WB.stickerTool}</span>\n </button>\n <AnimatePresence>{menu === \"sticker\" && (\n <motion.div key=\"sticker\" className=\"sp-wb-pop sp-wb-pop-up sp-wb-stickers\" role=\"menu\" aria-label={WB.stickerMenu} {...POP_UP}>\n {ILLUSTRATIONS.map((name) => (\n <button key={name} type=\"button\" role=\"menuitem\" aria-label={WB.stickerOf(name)} title={WB.stickerOf(name)} onClick={() => placeSticker(name)}>\n <Art name={name} className=\"sp-wb-pick-art\" />\n </button>\n ))}\n </motion.div>\n )}</AnimatePresence>\n </div>\n <button type=\"button\" className=\"sp-wb-tool\" aria-pressed={histOpen} aria-expanded={histOpen} onClick={() => setHistOpen((o) => !o)}>{HISTORY_ICON}<span>{WB.history}</span></button>\n <button type=\"button\" className=\"sp-wb-tool sp-wb-agent\" aria-pressed={askOpen} aria-expanded={askOpen} onClick={() => setAskOpen((o) => !o)}>{AGENT_ICON}<span>{WB.askAgent}</span></button>\n </div>\n </div>\n </div>\n )}\n </section>\n );\n}\n","/** How long ago an ISO time was, in words: just now, 5 min ago, 3 h ago, 2 d ago, else the date. */\nexport function ago(iso: string, now = Date.now()): string {\n const ts = Date.parse(iso);\n if (!Number.isFinite(ts)) return \"\";\n const s = Math.max(0, Math.round((now - ts) / 1000));\n if (s < 60) return \"just now\";\n if (s < 3600) return `${Math.floor(s / 60)} min ago`;\n if (s < 86400) return `${Math.floor(s / 3600)} h ago`;\n if (s < 86400 * 7) return `${Math.floor(s / 86400)} d ago`;\n return new Date(ts).toLocaleString(undefined, { day: \"numeric\", month: \"short\", year: \"numeric\" });\n}\n","// The few line icons the board's chrome uses: 24px grid, stroked with currentColor.\ntype P = { size?: number; className?: string };\nconst svg = (size: number | undefined, className: string | undefined, d: string) => (\n <svg width={size ?? 16} height={size ?? 16} viewBox=\"0 0 24 24\" fill=\"none\" stroke=\"currentColor\" strokeWidth={1.8} strokeLinecap=\"round\" strokeLinejoin=\"round\" className={className} aria-hidden>\n <path d={d} />\n </svg>\n);\nexport const IChat = ({ size, className }: P) => svg(size, className, \"M21 12a8 8 0 0 1-11.6 7.1L4 20l1-4.6A8 8 0 1 1 21 12Z\");\nexport const IClose = ({ size, className }: P) => svg(size, className, \"M6 6l12 12M18 6 6 18\");\nexport const IDoc = ({ size, className }: P) => svg(size, className, \"M7 3h7l5 5v13H7zM14 3v5h5M10 13h6M10 17h6\");\nexport const IPanel = ({ size, className }: P) => svg(size, className, \"M4 5h16v14H4zM15 5v14\");\nexport const IRefresh = ({ size, className }: P) => svg(size, className, \"M20 11a8 8 0 1 0-2.3 5.7M20 4v7h-7\");\nexport const ITrash = ({ size, className }: P) => svg(size, className, \"M4 7h16M10 11v6M14 11v6M6 7l1 13h10l1-13M9 7V4h6v3\");\n","// Generated by scripts/vendor/lucide-icons.mjs from github.com/lucide-icons/lucide. Do not edit by hand.\n/*\nISC License\n\nCopyright (c) 2026 Lucide Icons and Contributors\n\nPermission to use, copy, modify, and/or distribute this software for any\npurpose with or without fee is hereby granted, provided that the above\ncopyright notice and this permission notice appear in all copies.\n\nTHE SOFTWARE IS PROVIDED \"AS IS\" AND THE AUTHOR DISCLAIMS ALL WARRANTIES\nWITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF\nMERCHANTABILITY AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR\nANY SPECIAL, DIRECT, INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES\nWHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN\nACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF\nOR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.\n\n---\n\nThe following Lucide icons are derived from the Feather project:\n\nairplay, alert-circle, alert-octagon, alert-triangle, aperture, arrow-down-circle, arrow-down-left, arrow-down-right, arrow-down, arrow-left-circle, arrow-left, arrow-right-circle, arrow-right, arrow-up-circle, arrow-up-left, arrow-up-right, arrow-up, at-sign, calendar, cast, check, chevron-down, chevron-left, chevron-right, chevron-up, chevrons-down, chevrons-left, chevrons-right, chevrons-up, circle, clipboard, clock, code, columns, command, compass, corner-down-left, corner-down-right, corner-left-down, corner-left-up, corner-right-down, corner-right-up, corner-up-left, corner-up-right, crosshair, database, divide-circle, divide-square, dollar-sign, download, external-link, feather, frown, hash, headphones, help-circle, info, italic, key, layout, life-buoy, link-2, link, loader, lock, log-in, log-out, maximize, meh, minimize, minimize-2, minus-circle, minus-square, minus, monitor, moon, more-horizontal, more-vertical, move, music, navigation-2, navigation, octagon, pause-circle, percent, plus-circle, plus-square, plus, power, radio, rss, search, server, share, shopping-bag, sidebar, smartphone, smile, square, table-2, tablet, target, terminal, trash-2, trash, triangle, tv, type, upload, x-circle, x-octagon, x-square, x, zoom-in, zoom-out\n\nThe MIT License (MIT) (for the icons listed above)\n\nCopyright (c) 2013-present Cole Bemis\n\nPermission is hereby granted, free of charge, to any person obtaining a copy\nof this software and associated documentation files (the \"Software\"), to deal\nin the Software without restriction, including without limitation the rights\nto use, copy, modify, merge, publish, distribute, sublicense, and/or sell\ncopies of the Software, and to permit persons to whom the Software is\nfurnished to do so, subject to the following conditions:\n\nThe above copyright notice and this permission notice shall be included in all\ncopies or substantial portions of the Software.\n\nTHE SOFTWARE IS PROVIDED \"AS IS\", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR\nIMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,\nFITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE\nAUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER\nLIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,\nOUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE\nSOFTWARE.\n*/\nimport type { LineIcon } from \"../core/line-icons\";\n\nexport const LINE_ICON_SVG: Record<LineIcon, string> = {\n \"phone\": \"<path d=\\\"M13.832 16.568a1 1 0 0 0 1.213-.303l.355-.465A2 2 0 0 1 17 15h3a2 2 0 0 1 2 2v3a2 2 0 0 1-2 2A18 18 0 0 1 2 4a2 2 0 0 1 2-2h3a2 2 0 0 1 2 2v3a2 2 0 0 1-.8 1.6l-.468.351a1 1 0 0 0-.292 1.233 14 14 0 0 0 6.392 6.384\\\" />\",\n \"phone-call\": \"<path d=\\\"M13 2a9 9 0 0 1 9 9\\\" /> <path d=\\\"M13 6a5 5 0 0 1 5 5\\\" /> <path d=\\\"M13.832 16.568a1 1 0 0 0 1.213-.303l.355-.465A2 2 0 0 1 17 15h3a2 2 0 0 1 2 2v3a2 2 0 0 1-2 2A18 18 0 0 1 2 4a2 2 0 0 1 2-2h3a2 2 0 0 1 2 2v3a2 2 0 0 1-.8 1.6l-.468.351a1 1 0 0 0-.292 1.233 14 14 0 0 0 6.392 6.384\\\" />\",\n \"phone-incoming\": \"<path d=\\\"M16 2v6h6\\\" /> <path d=\\\"m22 2-6 6\\\" /> <path d=\\\"M13.832 16.568a1 1 0 0 0 1.213-.303l.355-.465A2 2 0 0 1 17 15h3a2 2 0 0 1 2 2v3a2 2 0 0 1-2 2A18 18 0 0 1 2 4a2 2 0 0 1 2-2h3a2 2 0 0 1 2 2v3a2 2 0 0 1-.8 1.6l-.468.351a1 1 0 0 0-.292 1.233 14 14 0 0 0 6.392 6.384\\\" />\",\n \"phone-missed\": \"<path d=\\\"m16 2 6 6\\\" /> <path d=\\\"m22 2-6 6\\\" /> <path d=\\\"M13.832 16.568a1 1 0 0 0 1.213-.303l.355-.465A2 2 0 0 1 17 15h3a2 2 0 0 1 2 2v3a2 2 0 0 1-2 2A18 18 0 0 1 2 4a2 2 0 0 1 2-2h3a2 2 0 0 1 2 2v3a2 2 0 0 1-.8 1.6l-.468.351a1 1 0 0 0-.292 1.233 14 14 0 0 0 6.392 6.384\\\" />\",\n \"headset\": \"<path d=\\\"M3 11h3a2 2 0 0 1 2 2v3a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2v-5Zm0 0a9 9 0 1 1 18 0m0 0v5a2 2 0 0 1-2 2h-1a2 2 0 0 1-2-2v-3a2 2 0 0 1 2-2h3Z\\\" /> <path d=\\\"M21 16v2a4 4 0 0 1-4 4h-5\\\" />\",\n \"message-circle\": \"<path d=\\\"M2.992 16.342a2 2 0 0 1 .094 1.167l-1.065 3.29a1 1 0 0 0 1.236 1.168l3.413-.998a2 2 0 0 1 1.099.092 10 10 0 1 0-4.777-4.719\\\" />\",\n \"message-square\": \"<path d=\\\"M22 17a2 2 0 0 1-2 2H6.828a2 2 0 0 0-1.414.586l-2.202 2.202A.71.71 0 0 1 2 21.286V5a2 2 0 0 1 2-2h16a2 2 0 0 1 2 2z\\\" />\",\n \"messages-square\": \"<path d=\\\"M16 10a2 2 0 0 1-2 2H6.828a2 2 0 0 0-1.414.586l-2.202 2.202A.71.71 0 0 1 2 14.286V4a2 2 0 0 1 2-2h10a2 2 0 0 1 2 2z\\\" /> <path d=\\\"M20 9a2 2 0 0 1 2 2v10.286a.71.71 0 0 1-1.212.502l-2.202-2.202A2 2 0 0 0 17.172 19H10a2 2 0 0 1-2-2v-1\\\" />\",\n \"mail\": \"<path d=\\\"m22 7-8.991 5.727a2 2 0 0 1-2.009 0L2 7\\\" /> <rect x=\\\"2\\\" y=\\\"4\\\" width=\\\"20\\\" height=\\\"16\\\" rx=\\\"2\\\" />\",\n \"send\": \"<path d=\\\"M14.536 21.686a.5.5 0 0 0 .937-.024l6.5-19a.496.496 0 0 0-.635-.635l-19 6.5a.5.5 0 0 0-.024.937l7.93 3.18a2 2 0 0 1 1.112 1.11z\\\" /> <path d=\\\"m21.854 2.147-10.94 10.939\\\" />\",\n \"bell\": \"<path d=\\\"M10.268 21a2 2 0 0 0 3.464 0\\\" /> <path d=\\\"M3.262 15.326A1 1 0 0 0 4 17h16a1 1 0 0 0 .74-1.673C19.41 13.956 18 12.499 18 8A6 6 0 0 0 6 8c0 4.499-1.411 5.956-2.738 7.326\\\" />\",\n \"megaphone\": \"<path d=\\\"M11 6a13 13 0 0 0 8.4-2.8A1 1 0 0 1 21 4v12a1 1 0 0 1-1.6.8A13 13 0 0 0 11 14H5a2 2 0 0 1-2-2V8a2 2 0 0 1 2-2z\\\" /> <path d=\\\"M6 14a12 12 0 0 0 2.4 7.2 2 2 0 0 0 3.2-2.4A8 8 0 0 1 10 14\\\" /> <path d=\\\"M8 6v8\\\" />\",\n \"user\": \"<path d=\\\"M19 21v-2a4 4 0 0 0-4-4H9a4 4 0 0 0-4 4v2\\\" /> <circle cx=\\\"12\\\" cy=\\\"7\\\" r=\\\"4\\\" />\",\n \"users\": \"<path d=\\\"M16 21v-2a4 4 0 0 0-4-4H6a4 4 0 0 0-4 4v2\\\" /> <path d=\\\"M16 3.128a4 4 0 0 1 0 7.744\\\" /> <path d=\\\"M22 21v-2a4 4 0 0 0-3-3.87\\\" /> <circle cx=\\\"9\\\" cy=\\\"7\\\" r=\\\"4\\\" />\",\n \"user-check\": \"<path d=\\\"m16 11 2 2 4-4\\\" /> <path d=\\\"M16 21v-2a4 4 0 0 0-4-4H6a4 4 0 0 0-4 4v2\\\" /> <circle cx=\\\"9\\\" cy=\\\"7\\\" r=\\\"4\\\" />\",\n \"user-x\": \"<path d=\\\"M16 21v-2a4 4 0 0 0-4-4H6a4 4 0 0 0-4 4v2\\\" /> <circle cx=\\\"9\\\" cy=\\\"7\\\" r=\\\"4\\\" /> <line x1=\\\"17\\\" x2=\\\"22\\\" y1=\\\"8\\\" y2=\\\"13\\\" /> <line x1=\\\"22\\\" x2=\\\"17\\\" y1=\\\"8\\\" y2=\\\"13\\\" />\",\n \"user-plus\": \"<path d=\\\"M16 21v-2a4 4 0 0 0-4-4H6a4 4 0 0 0-4 4v2\\\" /> <circle cx=\\\"9\\\" cy=\\\"7\\\" r=\\\"4\\\" /> <line x1=\\\"19\\\" x2=\\\"19\\\" y1=\\\"8\\\" y2=\\\"14\\\" /> <line x1=\\\"22\\\" x2=\\\"16\\\" y1=\\\"11\\\" y2=\\\"11\\\" />\",\n \"contact\": \"<path d=\\\"M16 2v2\\\" /> <path d=\\\"M7 21v-2a2 2 0 012-2h6a2 2 0 012 2v2\\\" /> <path d=\\\"M8 2v2\\\" /> <circle cx=\\\"12\\\" cy=\\\"10\\\" r=\\\"3\\\" /> <rect x=\\\"3\\\" y=\\\"3\\\" width=\\\"18\\\" height=\\\"18\\\" rx=\\\"2\\\" />\",\n \"crown\": \"<path d=\\\"M11.562 3.266a.5.5 0 0 1 .876 0L15.39 8.87a1 1 0 0 0 1.516.294L21.183 5.5a.5.5 0 0 1 .798.519l-2.834 10.246a1 1 0 0 1-.956.734H5.81a1 1 0 0 1-.957-.734L2.02 6.02a.5.5 0 0 1 .798-.519l4.276 3.664a1 1 0 0 0 1.516-.294z\\\" /> <path d=\\\"M5 21h14\\\" />\",\n \"star\": \"<path d=\\\"M11.525 2.295a.53.53 0 0 1 .95 0l2.31 4.679a2.123 2.123 0 0 0 1.595 1.16l5.166.756a.53.53 0 0 1 .294.904l-3.736 3.638a2.123 2.123 0 0 0-.611 1.878l.882 5.14a.53.53 0 0 1-.771.56l-4.618-2.428a2.122 2.122 0 0 0-1.973 0L6.396 21.01a.53.53 0 0 1-.77-.56l.881-5.139a2.122 2.122 0 0 0-.611-1.879L2.16 9.795a.53.53 0 0 1 .294-.906l5.165-.755a2.122 2.122 0 0 0 1.597-1.16z\\\" />\",\n \"heart\": \"<path d=\\\"M2 9.5a5.5 5.5 0 0 1 9.591-3.676.56.56 0 0 0 .818 0A5.49 5.49 0 0 1 22 9.5c0 2.29-1.5 4-3 5.5l-5.492 5.313a2 2 0 0 1-3 .019L5 15c-1.5-1.5-3-3.2-3-5.5\\\" />\",\n \"handshake\": \"<path d=\\\"m11 17 2 2a1 1 0 1 0 3-3\\\" /> <path d=\\\"m14 14 2.5 2.5a1 1 0 1 0 3-3l-3.88-3.88a3 3 0 0 0-4.24 0l-.88.88a1 1 0 1 1-3-3l2.81-2.81a5.79 5.79 0 0 1 7.06-.87l.47.28a2 2 0 0 0 1.42.25L21 4\\\" /> <path d=\\\"m21 3 1 11h-2\\\" /> <path d=\\\"M3 3 2 14l6.5 6.5a1 1 0 1 0 3-3\\\" /> <path d=\\\"M3 4h8\\\" />\",\n \"briefcase\": \"<path d=\\\"M16 20V4a2 2 0 0 0-2-2h-4a2 2 0 0 0-2 2v16\\\" /> <rect width=\\\"20\\\" height=\\\"14\\\" x=\\\"2\\\" y=\\\"6\\\" rx=\\\"2\\\" />\",\n \"building\": \"<path d=\\\"M12 10h.01\\\" /> <path d=\\\"M12 14h.01\\\" /> <path d=\\\"M12 6h.01\\\" /> <path d=\\\"M16 10h.01\\\" /> <path d=\\\"M16 14h.01\\\" /> <path d=\\\"M16 6h.01\\\" /> <path d=\\\"M8 10h.01\\\" /> <path d=\\\"M8 14h.01\\\" /> <path d=\\\"M8 6h.01\\\" /> <path d=\\\"M9 22v-3a1 1 0 0 1 1-1h4a1 1 0 0 1 1 1v3\\\" /> <rect x=\\\"4\\\" y=\\\"2\\\" width=\\\"16\\\" height=\\\"20\\\" rx=\\\"2\\\" />\",\n \"landmark\": \"<path d=\\\"M10 18v-7\\\" /> <path d=\\\"M11.119 2.205a2 2 0 0 1 1.762 0l7.84 3.846A.5.5 0 0 1 20.5 7h-17a.5.5 0 0 1-.22-.949z\\\" /> <path d=\\\"M14 18v-7\\\" /> <path d=\\\"M18 18v-7\\\" /> <path d=\\\"M3 22h18\\\" /> <path d=\\\"M6 18v-7\\\" />\",\n \"store\": \"<path d=\\\"M15 21v-5a1 1 0 0 0-1-1h-4a1 1 0 0 0-1 1v5\\\" /> <path d=\\\"M17.774 10.31a1.12 1.12 0 0 0-1.549 0 2.5 2.5 0 0 1-3.451 0 1.12 1.12 0 0 0-1.548 0 2.5 2.5 0 0 1-3.452 0 1.12 1.12 0 0 0-1.549 0 2.5 2.5 0 0 1-3.77-3.248l2.889-4.184A2 2 0 0 1 7 2h10a2 2 0 0 1 1.653.873l2.895 4.192a2.5 2.5 0 0 1-3.774 3.244\\\" /> <path d=\\\"M4 10.95V19a2 2 0 0 0 2 2h12a2 2 0 0 0 2-2v-8.05\\\" />\",\n \"house\": \"<path d=\\\"M15 21v-8a1 1 0 0 0-1-1h-4a1 1 0 0 0-1 1v8\\\" /> <path d=\\\"M3 10a2 2 0 0 1 .709-1.528l7-6a2 2 0 0 1 2.582 0l7 6A2 2 0 0 1 21 10v9a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2z\\\" />\",\n \"credit-card\": \"<rect width=\\\"20\\\" height=\\\"14\\\" x=\\\"2\\\" y=\\\"5\\\" rx=\\\"2\\\" /> <line x1=\\\"2\\\" x2=\\\"22\\\" y1=\\\"10\\\" y2=\\\"10\\\" /> <path d=\\\"M6 14h2\\\" />\",\n \"wallet\": \"<path d=\\\"M19 7V4a1 1 0 0 0-1-1H5a2 2 0 0 0 0 4h15a1 1 0 0 1 1 1v4h-3a2 2 0 0 0 0 4h3a1 1 0 0 0 1-1v-2a1 1 0 0 0-1-1\\\" /> <path d=\\\"M3 5v14a2 2 0 0 0 2 2h15a1 1 0 0 0 1-1v-4\\\" />\",\n \"banknote\": \"<rect width=\\\"20\\\" height=\\\"12\\\" x=\\\"2\\\" y=\\\"6\\\" rx=\\\"2\\\" /> <circle cx=\\\"12\\\" cy=\\\"12\\\" r=\\\"2\\\" /> <path d=\\\"M6 12h.01M18 12h.01\\\" />\",\n \"coins\": \"<path d=\\\"M13.744 17.736a6 6 0 1 1-7.48-7.48\\\" /> <path d=\\\"M15 6h1v4\\\" /> <path d=\\\"m6.134 14.768.866-.5 2 3.464\\\" /> <circle cx=\\\"16\\\" cy=\\\"8\\\" r=\\\"6\\\" />\",\n \"piggy-bank\": \"<path d=\\\"M11 17h3v2a1 1 0 0 0 1 1h2a1 1 0 0 0 1-1v-3a3.16 3.16 0 0 0 2-2h1a1 1 0 0 0 1-1v-2a1 1 0 0 0-1-1h-1a5 5 0 0 0-2-4V3a4 4 0 0 0-3.2 1.6l-.3.4H11a6 6 0 0 0-6 6v1a5 5 0 0 0 2 4v3a1 1 0 0 0 1 1h2a1 1 0 0 0 1-1z\\\" /> <path d=\\\"M16 10h.01\\\" /> <path d=\\\"M2 8v1a2 2 0 0 0 2 2h1\\\" />\",\n \"receipt\": \"<path d=\\\"M12 17V7\\\" /> <path d=\\\"M16 8h-6a2 2 0 0 0 0 4h4a2 2 0 0 1 0 4H8\\\" /> <path d=\\\"M4 3a1 1 0 0 1 1-1 1.3 1.3 0 0 1 .7.2l.933.6a1.3 1.3 0 0 0 1.4 0l.934-.6a1.3 1.3 0 0 1 1.4 0l.933.6a1.3 1.3 0 0 0 1.4 0l.933-.6a1.3 1.3 0 0 1 1.4 0l.934.6a1.3 1.3 0 0 0 1.4 0l.933-.6A1.3 1.3 0 0 1 19 2a1 1 0 0 1 1 1v18a1 1 0 0 1-1 1 1.3 1.3 0 0 1-.7-.2l-.933-.6a1.3 1.3 0 0 0-1.4 0l-.934.6a1.3 1.3 0 0 1-1.4 0l-.933-.6a1.3 1.3 0 0 0-1.4 0l-.933.6a1.3 1.3 0 0 1-1.4 0l-.934-.6a1.3 1.3 0 0 0-1.4 0l-.933.6a1.3 1.3 0 0 1-.7.2 1 1 0 0 1-1-1z\\\" />\",\n \"percent\": \"<line x1=\\\"19\\\" x2=\\\"5\\\" y1=\\\"5\\\" y2=\\\"19\\\" /> <circle cx=\\\"6.5\\\" cy=\\\"6.5\\\" r=\\\"2.5\\\" /> <circle cx=\\\"17.5\\\" cy=\\\"17.5\\\" r=\\\"2.5\\\" />\",\n \"badge-dollar-sign\": \"<path d=\\\"M3.85 8.62a4 4 0 0 1 4.78-4.77 4 4 0 0 1 6.74 0 4 4 0 0 1 4.78 4.78 4 4 0 0 1 0 6.74 4 4 0 0 1-4.77 4.78 4 4 0 0 1-6.75 0 4 4 0 0 1-4.78-4.77 4 4 0 0 1 0-6.76Z\\\" /> <path d=\\\"M16 8h-6a2 2 0 1 0 0 4h4a2 2 0 1 1 0 4H8\\\" /> <path d=\\\"M12 18V6\\\" />\",\n \"hand-coins\": \"<path d=\\\"M11 15h2a2 2 0 1 0 0-4h-3c-.6 0-1.1.2-1.4.6L3 17\\\" /> <path d=\\\"m7 21 1.6-1.4c.3-.4.8-.6 1.4-.6h4c1.1 0 2.1-.4 2.8-1.2l4.6-4.4a2 2 0 0 0-2.75-2.91l-4.2 3.9\\\" /> <path d=\\\"m2 16 6 6\\\" /> <circle cx=\\\"16\\\" cy=\\\"9\\\" r=\\\"2.9\\\" /> <circle cx=\\\"6\\\" cy=\\\"5\\\" r=\\\"3\\\" />\",\n \"globe\": \"<circle cx=\\\"12\\\" cy=\\\"12\\\" r=\\\"10\\\" /> <path d=\\\"M12 2a14.5 14.5 0 0 0 0 20 14.5 14.5 0 0 0 0-20\\\" /> <path d=\\\"M2 12h20\\\" />\",\n \"plane\": \"<path d=\\\"M17.8 19.2 16 11l3.5-3.5C21 6 21.5 4 21 3c-1-.5-3 0-4.5 1.5L13 8 4.8 6.2c-.5-.1-.9.1-1.1.5l-.3.5c-.2.5-.1 1 .3 1.3L9 12l-2 3H4l-1 1 3 2 2 3 1-1v-3l3-2 3.5 5.3c.3.4.8.5 1.3.3l.5-.2c.4-.3.6-.7.5-1.2z\\\" />\",\n \"map-pin\": \"<path d=\\\"M20 10c0 4.993-5.539 10.193-7.399 11.799a1 1 0 0 1-1.202 0C9.539 20.193 4 14.993 4 10a8 8 0 0 1 16 0\\\" /> <circle cx=\\\"12\\\" cy=\\\"10\\\" r=\\\"3\\\" />\",\n \"car\": \"<path d=\\\"M19 17h2c.6 0 1-.4 1-1v-3c0-.9-.7-1.7-1.5-1.9C18.7 10.6 16 10 16 10s-1.3-1.4-2.2-2.3c-.5-.4-1.1-.7-1.8-.7H5c-.6 0-1.1.4-1.4.9l-1.4 2.9A3.7 3.7 0 0 0 2 12v4c0 .6.4 1 1 1h2\\\" /> <circle cx=\\\"7\\\" cy=\\\"17\\\" r=\\\"2\\\" /> <path d=\\\"M9 17h6\\\" /> <circle cx=\\\"17\\\" cy=\\\"17\\\" r=\\\"2\\\" />\",\n \"database\": \"<ellipse cx=\\\"12\\\" cy=\\\"5\\\" rx=\\\"9\\\" ry=\\\"3\\\" /> <path d=\\\"M3 5V19A9 3 0 0 0 21 19V5\\\" /> <path d=\\\"M3 12A9 3 0 0 0 21 12\\\" />\",\n \"server\": \"<rect width=\\\"20\\\" height=\\\"8\\\" x=\\\"2\\\" y=\\\"2\\\" rx=\\\"2\\\" ry=\\\"2\\\" /> <rect width=\\\"20\\\" height=\\\"8\\\" x=\\\"2\\\" y=\\\"14\\\" rx=\\\"2\\\" ry=\\\"2\\\" /> <line x1=\\\"6\\\" x2=\\\"6.01\\\" y1=\\\"6\\\" y2=\\\"6\\\" /> <line x1=\\\"6\\\" x2=\\\"6.01\\\" y1=\\\"18\\\" y2=\\\"18\\\" />\",\n \"cloud\": \"<path d=\\\"M17.5 19H9a7 7 0 1 1 6.71-9h1.79a4.5 4.5 0 1 1 0 9Z\\\" />\",\n \"cpu\": \"<path d=\\\"M12 20v2\\\" /> <path d=\\\"M12 2v2\\\" /> <path d=\\\"M17 20v2\\\" /> <path d=\\\"M17 2v2\\\" /> <path d=\\\"M2 12h2\\\" /> <path d=\\\"M2 17h2\\\" /> <path d=\\\"M2 7h2\\\" /> <path d=\\\"M20 12h2\\\" /> <path d=\\\"M20 17h2\\\" /> <path d=\\\"M20 7h2\\\" /> <path d=\\\"M7 20v2\\\" /> <path d=\\\"M7 2v2\\\" /> <rect x=\\\"4\\\" y=\\\"4\\\" width=\\\"16\\\" height=\\\"16\\\" rx=\\\"2\\\" /> <rect x=\\\"8\\\" y=\\\"8\\\" width=\\\"8\\\" height=\\\"8\\\" rx=\\\"1\\\" />\",\n \"bot\": \"<path d=\\\"M12 8V4H8\\\" /> <rect width=\\\"16\\\" height=\\\"12\\\" x=\\\"4\\\" y=\\\"8\\\" rx=\\\"2\\\" /> <path d=\\\"M2 14h2\\\" /> <path d=\\\"M20 14h2\\\" /> <path d=\\\"M15 13v2\\\" /> <path d=\\\"M9 13v2\\\" />\",\n \"brain\": \"<path d=\\\"M12 18V5\\\" /> <path d=\\\"M15 13a4.17 4.17 0 01-3-4 4.17 4.17 0 01-3 4\\\" /> <path d=\\\"M17.707 6.294A3 3 0 1012 5a3 3 0 10-5.707 1.294\\\" /> <path d=\\\"M17.996 5.125a4 4 0 012.526 5.77\\\" /> <path d=\\\"M18 18a4 4 0 002-7.465\\\" /> <path d=\\\"M19.967 17.482a4 4 0 11-7.967.517 4 4 0 11-7.967-.517\\\" /> <path d=\\\"M6 18a4 4 0 01-2-7.465\\\" /> <path d=\\\"M6.004 5.125a4 4 0 00-2.526 5.77\\\" />\",\n \"sparkles\": \"<path d=\\\"M11.017 2.814a1 1 0 0 1 1.966 0l1.051 5.558a2 2 0 0 0 1.594 1.594l5.558 1.051a1 1 0 0 1 0 1.966l-5.558 1.051a2 2 0 0 0-1.594 1.594l-1.051 5.558a1 1 0 0 1-1.966 0l-1.051-5.558a2 2 0 0 0-1.594-1.594l-5.558-1.051a1 1 0 0 1 0-1.966l5.558-1.051a2 2 0 0 0 1.594-1.594z\\\" /> <path d=\\\"M20 2v4\\\" /> <path d=\\\"M22 4h-4\\\" /> <circle cx=\\\"4\\\" cy=\\\"20\\\" r=\\\"2\\\" />\",\n \"wand\": \"<path d=\\\"M15 4V2\\\" /> <path d=\\\"M15 16v-2\\\" /> <path d=\\\"M8 9h2\\\" /> <path d=\\\"M20 9h2\\\" /> <path d=\\\"M17.8 11.8 19 13\\\" /> <path d=\\\"M15 9h.01\\\" /> <path d=\\\"M17.8 6.2 19 5\\\" /> <path d=\\\"m3 21 9-9\\\" /> <path d=\\\"M12.2 6.2 11 5\\\" />\",\n \"zap\": \"<path d=\\\"M15.914 4a1.5 1.5 0 00-2.474-1.561l-9 9A1.5 1.5 0 005.5 14h4.002a.5.5 0 01.471.666L8.086 20a1.5 1.5 0 002.475 1.56l9-9A1.5 1.5 0 0018.5 10h-3.997a.5.5 0 01-.472-.667z\\\" />\",\n \"plug\": \"<path d=\\\"M12 22v-5\\\" /> <path d=\\\"M15 8V2\\\" /> <path d=\\\"M17 8a1 1 0 0 1 1 1v4a4 4 0 0 1-4 4h-4a4 4 0 0 1-4-4V9a1 1 0 0 1 1-1z\\\" /> <path d=\\\"M9 8V2\\\" />\",\n \"workflow\": \"<rect width=\\\"8\\\" height=\\\"8\\\" x=\\\"3\\\" y=\\\"3\\\" rx=\\\"2\\\" /> <path d=\\\"M7 11v4a2 2 0 0 0 2 2h4\\\" /> <rect width=\\\"8\\\" height=\\\"8\\\" x=\\\"13\\\" y=\\\"13\\\" rx=\\\"2\\\" />\",\n \"network\": \"<rect x=\\\"16\\\" y=\\\"16\\\" width=\\\"6\\\" height=\\\"6\\\" rx=\\\"1\\\" /> <rect x=\\\"2\\\" y=\\\"16\\\" width=\\\"6\\\" height=\\\"6\\\" rx=\\\"1\\\" /> <rect x=\\\"9\\\" y=\\\"2\\\" width=\\\"6\\\" height=\\\"6\\\" rx=\\\"1\\\" /> <path d=\\\"M5 16v-3a1 1 0 0 1 1-1h12a1 1 0 0 1 1 1v3\\\" /> <path d=\\\"M12 12V8\\\" />\",\n \"git-branch\": \"<path d=\\\"M15 6a9 9 0 0 0-9 9V3\\\" /> <circle cx=\\\"18\\\" cy=\\\"6\\\" r=\\\"3\\\" /> <circle cx=\\\"6\\\" cy=\\\"18\\\" r=\\\"3\\\" />\",\n \"layers\": \"<path d=\\\"M12.83 2.18a2 2 0 0 0-1.66 0L2.6 6.08a1 1 0 0 0 0 1.83l8.58 3.91a2 2 0 0 0 1.66 0l8.58-3.9a1 1 0 0 0 0-1.83z\\\" /> <path d=\\\"M2 12a1 1 0 0 0 .58.91l8.6 3.91a2 2 0 0 0 1.65 0l8.58-3.9A1 1 0 0 0 22 12\\\" /> <path d=\\\"M2 17a1 1 0 0 0 .58.91l8.6 3.91a2 2 0 0 0 1.65 0l8.58-3.9A1 1 0 0 0 22 17\\\" />\",\n \"boxes\": \"<path d=\\\"M2.97 12.92A2 2 0 0 0 2 14.63v3.24a2 2 0 0 0 .97 1.71l3 1.8a2 2 0 0 0 2.06 0L12 19v-5.5l-5-3-4.03 2.42Z\\\" /> <path d=\\\"m7 16.5-4.74-2.85\\\" /> <path d=\\\"m7 16.5 5-3\\\" /> <path d=\\\"M7 16.5v5.17\\\" /> <path d=\\\"M12 13.5V19l3.97 2.38a2 2 0 0 0 2.06 0l3-1.8a2 2 0 0 0 .97-1.71v-3.24a2 2 0 0 0-.97-1.71L17 10.5l-5 3Z\\\" /> <path d=\\\"m17 16.5-5-3\\\" /> <path d=\\\"m17 16.5 4.74-2.85\\\" /> <path d=\\\"M17 16.5v5.17\\\" /> <path d=\\\"M7.97 4.42A2 2 0 0 0 7 6.13v4.37l5 3 5-3V6.13a2 2 0 0 0-.97-1.71l-3-1.8a2 2 0 0 0-2.06 0l-3 1.8Z\\\" /> <path d=\\\"M12 8 7.26 5.15\\\" /> <path d=\\\"m12 8 4.74-2.85\\\" /> <path d=\\\"M12 13.5V8\\\" />\",\n \"package\": \"<path d=\\\"M11 21.73a2 2 0 0 0 2 0l7-4A2 2 0 0 0 21 16V8a2 2 0 0 0-1-1.73l-7-4a2 2 0 0 0-2 0l-7 4A2 2 0 0 0 3 8v8a2 2 0 0 0 1 1.73z\\\" /> <path d=\\\"M12 22V12\\\" /> <polyline points=\\\"3.29 7 12 12 20.71 7\\\" /> <path d=\\\"m7.5 4.27 9 5.15\\\" />\",\n \"truck\": \"<path d=\\\"M14 18V6a2 2 0 0 0-2-2H4a2 2 0 0 0-2 2v11a1 1 0 0 0 1 1h2\\\" /> <path d=\\\"M15 18H9\\\" /> <path d=\\\"M19 18h2a1 1 0 0 0 1-1v-3.65a1 1 0 0 0-.22-.624l-3.48-4.35A1 1 0 0 0 17.52 8H14\\\" /> <circle cx=\\\"17\\\" cy=\\\"18\\\" r=\\\"2\\\" /> <circle cx=\\\"7\\\" cy=\\\"18\\\" r=\\\"2\\\" />\",\n \"search\": \"<path d=\\\"m21 21-4.34-4.34\\\" /> <circle cx=\\\"11\\\" cy=\\\"11\\\" r=\\\"8\\\" />\",\n \"list-checks\": \"<path d=\\\"M13 5h8\\\" /> <path d=\\\"M13 12h8\\\" /> <path d=\\\"M13 19h8\\\" /> <path d=\\\"m3 17 2 2 4-4\\\" /> <path d=\\\"m3 7 2 2 4-4\\\" />\",\n \"clipboard-check\": \"<rect width=\\\"8\\\" height=\\\"4\\\" x=\\\"8\\\" y=\\\"2\\\" rx=\\\"1\\\" ry=\\\"1\\\" /> <path d=\\\"M16 4h2a2 2 0 0 1 2 2v14a2 2 0 0 1-2 2H6a2 2 0 0 1-2-2V6a2 2 0 0 1 2-2h2\\\" /> <path d=\\\"m9 14 2 2 4-4\\\" />\",\n \"clipboard-list\": \"<rect width=\\\"8\\\" height=\\\"4\\\" x=\\\"8\\\" y=\\\"2\\\" rx=\\\"1\\\" ry=\\\"1\\\" /> <path d=\\\"M16 4h2a2 2 0 0 1 2 2v14a2 2 0 0 1-2 2H6a2 2 0 0 1-2-2V6a2 2 0 0 1 2-2h2\\\" /> <path d=\\\"M12 11h4\\\" /> <path d=\\\"M12 16h4\\\" /> <path d=\\\"M8 11h.01\\\" /> <path d=\\\"M8 16h.01\\\" />\",\n \"file-text\": \"<path d=\\\"M6 22a2 2 0 0 1-2-2V4a2 2 0 0 1 2-2h8a2.4 2.4 0 0 1 1.704.706l3.588 3.588A2.4 2.4 0 0 1 20 8v12a2 2 0 0 1-2 2z\\\" /> <path d=\\\"M14 2v5a1 1 0 0 0 1 1h5\\\" /> <path d=\\\"M10 9H8\\\" /> <path d=\\\"M16 13H8\\\" /> <path d=\\\"M16 17H8\\\" />\",\n \"files\": \"<path d=\\\"M15 2h-4a2 2 0 0 0-2 2v11a2 2 0 0 0 2 2h8a2 2 0 0 0 2-2V8\\\" /> <path d=\\\"M16.706 2.706A2.4 2.4 0 0 0 15 2v5a1 1 0 0 0 1 1h5a2.4 2.4 0 0 0-.706-1.706z\\\" /> <path d=\\\"M5 7a2 2 0 0 0-2 2v11a2 2 0 0 0 2 2h8a2 2 0 0 0 1.732-1\\\" />\",\n \"folder\": \"<path d=\\\"M20 20a2 2 0 0 0 2-2V8a2 2 0 0 0-2-2h-7.9a2 2 0 0 1-1.69-.9L9.6 3.9A2 2 0 0 0 7.93 3H4a2 2 0 0 0-2 2v13a2 2 0 0 0 2 2Z\\\" />\",\n \"book-open\": \"<path d=\\\"M12 5v16\\\" /> <path d=\\\"M20.001 19A2 2 0 0022 17V5a2 2 0 00-1.999-2L16 3.002A5 5 0 0012 5a5 5 0 00-4-2H4a2 2 0 00-2 2v12a2 2 0 001.999 2H8a5 5 0 014 2 5 5 0 014-2z\\\" />\",\n \"notebook-pen\": \"<path d=\\\"M13.4 2H6a2 2 0 0 0-2 2v16a2 2 0 0 0 2 2h12a2 2 0 0 0 2-2v-7.4\\\" /> <path d=\\\"M2 6h4\\\" /> <path d=\\\"M2 10h4\\\" /> <path d=\\\"M2 14h4\\\" /> <path d=\\\"M2 18h4\\\" /> <path d=\\\"M21.378 5.626a1 1 0 1 0-3.004-3.004l-5.01 5.012a2 2 0 0 0-.506.854l-.837 2.87a.5.5 0 0 0 .62.62l2.87-.837a2 2 0 0 0 .854-.506z\\\" />\",\n \"pencil\": \"<path d=\\\"M21.174 6.812a1 1 0 0 0-3.986-3.987L3.842 16.174a2 2 0 0 0-.5.83l-1.321 4.352a.5.5 0 0 0 .623.622l4.353-1.32a2 2 0 0 0 .83-.497z\\\" /> <path d=\\\"m15 5 4 4\\\" />\",\n \"calculator\": \"<rect width=\\\"16\\\" height=\\\"20\\\" x=\\\"4\\\" y=\\\"2\\\" rx=\\\"2\\\" /> <line x1=\\\"8\\\" x2=\\\"16\\\" y1=\\\"6\\\" y2=\\\"6\\\" /> <line x1=\\\"16\\\" x2=\\\"16\\\" y1=\\\"14\\\" y2=\\\"18\\\" /> <path d=\\\"M16 10h.01\\\" /> <path d=\\\"M12 10h.01\\\" /> <path d=\\\"M8 10h.01\\\" /> <path d=\\\"M12 14h.01\\\" /> <path d=\\\"M8 14h.01\\\" /> <path d=\\\"M12 18h.01\\\" /> <path d=\\\"M8 18h.01\\\" />\",\n \"chart-bar\": \"<path d=\\\"M3 3v16a2 2 0 0 0 2 2h16\\\" /> <path d=\\\"M7 16h8\\\" /> <path d=\\\"M7 11h12\\\" /> <path d=\\\"M7 6h3\\\" />\",\n \"chart-line\": \"<path d=\\\"M3 3v16a2 2 0 0 0 2 2h16\\\" /> <path d=\\\"m19 9-5 5-4-4-3 3\\\" />\",\n \"chart-pie\": \"<path d=\\\"M21 12c.552 0 1.005-.449.95-.998a10 10 0 0 0-8.953-8.951c-.55-.055-.998.398-.998.95v8a1 1 0 0 0 1 1z\\\" /> <path d=\\\"M21.21 15.89A10 10 0 1 1 8 2.83\\\" />\",\n \"chart-no-axes-combined\": \"<path d=\\\"M12 16v5\\\" /> <path d=\\\"M16 14.639V21\\\" /> <path d=\\\"M20 10.656V21\\\" /> <path d=\\\"m22 3-8.646 8.646a.5.5 0 0 1-.708 0L9.354 8.354a.5.5 0 0 0-.707 0L2 15\\\" /> <path d=\\\"M4 18.463V21\\\" /> <path d=\\\"M8 14.656V21\\\" />\",\n \"trending-up\": \"<path d=\\\"M16 7h6v6\\\" /> <path d=\\\"m22 7-8.5 8.5-5-5L2 17\\\" />\",\n \"trending-down\": \"<path d=\\\"M16 17h6v-6\\\" /> <path d=\\\"m22 17-8.5-8.5-5 5L2 7\\\" />\",\n \"target\": \"<circle cx=\\\"12\\\" cy=\\\"12\\\" r=\\\"10\\\" /> <circle cx=\\\"12\\\" cy=\\\"12\\\" r=\\\"6\\\" /> <circle cx=\\\"12\\\" cy=\\\"12\\\" r=\\\"2\\\" />\",\n \"gauge\": \"<path d=\\\"m12 14 4-4\\\" /> <path d=\\\"M3.34 19a10 10 0 1 1 17.32 0\\\" />\",\n \"activity\": \"<path d=\\\"M22 12h-2.48a2 2 0 0 0-1.93 1.46l-2.35 8.36a.25.25 0 0 1-.48 0L9.24 2.18a.25.25 0 0 0-.48 0l-2.35 8.36A2 2 0 0 1 4.49 12H2\\\" />\",\n \"funnel\": \"<path d=\\\"M10 20a1 1 0 0 0 .553.895l2 1A1 1 0 0 0 14 21v-7a2 2 0 0 1 .517-1.341L21.74 4.67A1 1 0 0 0 21 3H3a1 1 0 0 0-.742 1.67l7.225 7.989A2 2 0 0 1 10 14z\\\" />\",\n \"calendar\": \"<path d=\\\"M8 2v3\\\" /> <path d=\\\"M16 2v3\\\" /> <rect x=\\\"3\\\" y=\\\"3\\\" width=\\\"18\\\" height=\\\"18\\\" rx=\\\"2\\\" /> <path d=\\\"M3 9h18\\\" />\",\n \"calendar-check\": \"<path d=\\\"M8 2v3\\\" /> <path d=\\\"M16 2v3\\\" /> <rect x=\\\"3\\\" y=\\\"3\\\" width=\\\"18\\\" height=\\\"18\\\" rx=\\\"2\\\" /> <path d=\\\"M3 9h18\\\" /> <path d=\\\"m9 15 2 2 4-4\\\" />\",\n \"calendar-clock\": \"<path d=\\\"M16 14v2.2l1.6 1\\\" /> <path d=\\\"M16 2v3\\\" /> <path d=\\\"M21 7.338V5a2 2 0 00-2-2H5a2 2 0 00-2 2v14a2 2 0 002 2h2.338\\\" /> <path d=\\\"M3 9h5.859\\\" /> <path d=\\\"M8 2v3\\\" /> <circle cx=\\\"16\\\" cy=\\\"16\\\" r=\\\"6\\\" />\",\n \"clock\": \"<circle cx=\\\"12\\\" cy=\\\"12\\\" r=\\\"10\\\" /> <path d=\\\"M12 6v6l4 2\\\" />\",\n \"timer\": \"<line x1=\\\"10\\\" x2=\\\"14\\\" y1=\\\"2\\\" y2=\\\"2\\\" /> <line x1=\\\"12\\\" x2=\\\"15\\\" y1=\\\"14\\\" y2=\\\"11\\\" /> <circle cx=\\\"12\\\" cy=\\\"14\\\" r=\\\"8\\\" />\",\n \"hourglass\": \"<path d=\\\"M5 22h14\\\" /> <path d=\\\"M5 2h14\\\" /> <path d=\\\"M17 22v-4.172a2 2 0 0 0-.586-1.414L12 12l-4.414 4.414A2 2 0 0 0 7 17.828V22\\\" /> <path d=\\\"M7 2v4.172a2 2 0 0 0 .586 1.414L12 12l4.414-4.414A2 2 0 0 0 17 6.172V2\\\" />\",\n \"repeat\": \"<path d=\\\"m17 2 4 4-4 4\\\" /> <path d=\\\"M3 11v-1a4 4 0 0 1 4-4h14\\\" /> <path d=\\\"m7 22-4-4 4-4\\\" /> <path d=\\\"M21 13v1a4 4 0 0 1-4 4H3\\\" />\",\n \"refresh-cw\": \"<path d=\\\"M3 12a9 9 0 0 1 9-9 9.75 9.75 0 0 1 6.74 2.74L21 8\\\" /> <path d=\\\"M21 3v5h-5\\\" /> <path d=\\\"M21 12a9 9 0 0 1-9 9 9.75 9.75 0 0 1-6.74-2.74L3 16\\\" /> <path d=\\\"M8 16H3v5\\\" />\",\n \"infinity\": \"<path d=\\\"M6 16c5 0 7-8 12-8a4 4 0 0 1 0 8c-5 0-7-8-12-8a4 4 0 1 0 0 8\\\" />\",\n \"rocket\": \"<path d=\\\"M12 15v5s3.03-.55 4-2c1.08-1.62 0-5 0-5\\\" /> <path d=\\\"M4.5 16.5c-1.5 1.26-2 5-2 5s3.74-.5 5-2c.71-.84.7-2.13-.09-2.91a2.18 2.18 0 0 0-2.91-.09\\\" /> <path d=\\\"M9 12a22 22 0 0 1 2-3.95A12.88 12.88 0 0 1 22 2c0 2.72-.78 7.5-6 11a22.4 22.4 0 0 1-4 2z\\\" /> <path d=\\\"M9 12H4s.55-3.03 2-4c1.62-1.08 5 .05 5 .05\\\" />\",\n \"flag\": \"<path d=\\\"M4 22V4a1 1 0 0 1 .4-.8A6 6 0 0 1 8 2c3 0 5 2 7.333 2q2 0 3.067-.8A1 1 0 0 1 20 4v10a1 1 0 0 1-.4.8A6 6 0 0 1 16 16c-3 0-5-2-8-2a6 6 0 0 0-4 1.528\\\" />\",\n \"milestone\": \"<path d=\\\"M12 13v8\\\" /> <path d=\\\"M12 3v3\\\" /> <path d=\\\"M18.172 6a2 2 0 0 1 1.414.586l2.06 2.06a1.207 1.207 0 0 1 0 1.708l-2.06 2.06a2 2 0 0 1-1.414.586H4a1 1 0 0 1-1-1V7a1 1 0 0 1 1-1z\\\" />\",\n \"check\": \"<path d=\\\"M20 6 9 17l-5-5\\\" />\",\n \"circle-check\": \"<circle cx=\\\"12\\\" cy=\\\"12\\\" r=\\\"10\\\" /> <path d=\\\"m16 9-5.5 5.5L8 12\\\" />\",\n \"x\": \"<path d=\\\"M18 6 6 18\\\" /> <path d=\\\"m6 6 12 12\\\" />\",\n \"circle-x\": \"<circle cx=\\\"12\\\" cy=\\\"12\\\" r=\\\"10\\\" /> <path d=\\\"m15 9-6 6\\\" /> <path d=\\\"m9 9 6 6\\\" />\",\n \"octagon-x\": \"<path d=\\\"m15 9-6 6\\\" /> <path d=\\\"M2.586 16.726A2 2 0 0 1 2 15.312V8.688a2 2 0 0 1 .586-1.414l4.688-4.688A2 2 0 0 1 8.688 2h6.624a2 2 0 0 1 1.414.586l4.688 4.688A2 2 0 0 1 22 8.688v6.624a2 2 0 0 1-.586 1.414l-4.688 4.688a2 2 0 0 1-1.414.586H8.688a2 2 0 0 1-1.414-.586z\\\" /> <path d=\\\"m9 9 6 6\\\" />\",\n \"shield\": \"<path d=\\\"M20 13c0 5-3.5 7.5-7.66 8.95a1 1 0 0 1-.67-.01C7.5 20.5 4 18 4 13V6a1 1 0 0 1 1-1c2 0 4.5-1.2 6.24-2.72a1.17 1.17 0 0 1 1.52 0C14.51 3.81 17 5 19 5a1 1 0 0 1 1 1z\\\" />\",\n \"shield-check\": \"<path d=\\\"M20 13c0 5-3.5 7.5-7.66 8.95a1 1 0 0 1-.67-.01C7.5 20.5 4 18 4 13V6a1 1 0 0 1 1-1c2 0 4.5-1.2 6.24-2.72a1.17 1.17 0 0 1 1.52 0C14.51 3.81 17 5 19 5a1 1 0 0 1 1 1z\\\" /> <path d=\\\"m9 12 2 2 4-4\\\" />\",\n \"lock\": \"<rect width=\\\"18\\\" height=\\\"11\\\" x=\\\"3\\\" y=\\\"11\\\" rx=\\\"2\\\" ry=\\\"2\\\" /> <path d=\\\"M7 11V7a5 5 0 0 1 10 0v4\\\" />\",\n \"key\": \"<path d=\\\"m2 21 9.6-9.6\\\" /> <path d=\\\"m7.5 15.5 2.3 2.3a1 1 0 0 1 0 1.4l-2.1 2.1a1 1 0 0 1-1.4 0L4 19\\\" /> <circle cx=\\\"15.5\\\" cy=\\\"7.5\\\" r=\\\"5.5\\\" />\",\n \"eye\": \"<path d=\\\"M2.062 12.348a1 1 0 0 1 0-.696 10.75 10.75 0 0 1 19.876 0 1 1 0 0 1 0 .696 10.75 10.75 0 0 1-19.876 0\\\" /> <circle cx=\\\"12\\\" cy=\\\"12\\\" r=\\\"3\\\" />\",\n \"thumbs-up\": \"<path d=\\\"M15 5.88 14 10h5.83a2 2 0 0 1 1.92 2.56l-2.33 8A2 2 0 0 1 17.5 22H4a2 2 0 0 1-2-2v-8a2 2 0 0 1 2-2h2.76a2 2 0 0 0 1.79-1.11L12 2a3.13 3.13 0 0 1 3 3.88Z\\\" /> <path d=\\\"M7 10v12\\\" />\",\n \"thumbs-down\": \"<path d=\\\"M9 18.12 10 14H4.17a2 2 0 0 1-1.92-2.56l2.33-8A2 2 0 0 1 6.5 2H20a2 2 0 0 1 2 2v8a2 2 0 0 1-2 2h-2.76a2 2 0 0 0-1.79 1.11L12 22a3.13 3.13 0 0 1-3-3.88Z\\\" /> <path d=\\\"M17 14V2\\\" />\",\n \"lightbulb\": \"<path d=\\\"M15 14c.2-1 .7-1.7 1.5-2.5 1-.9 1.5-2.2 1.5-3.5A6 6 0 0 0 6 8c0 1 .2 2.2 1.5 3.5.7.7 1.3 1.5 1.5 2.5\\\" /> <path d=\\\"M9 18h6\\\" /> <path d=\\\"M10 22h4\\\" />\",\n \"info\": \"<circle cx=\\\"12\\\" cy=\\\"12\\\" r=\\\"10\\\" /> <path d=\\\"M12 16v-4\\\" /> <path d=\\\"M12 8h.01\\\" />\",\n \"scale\": \"<path d=\\\"M12 3v18\\\" /> <path d=\\\"m19 8 3 8a5 5 0 0 1-6 0zV7\\\" /> <path d=\\\"M3 7h1a17 17 0 0 0 8-2 17 17 0 0 0 8 2h1\\\" /> <path d=\\\"m5 8 3 8a5 5 0 0 1-6 0zV7\\\" /> <path d=\\\"M7 21h10\\\" />\",\n \"gavel\": \"<path d=\\\"m14 13-8.381 8.38a1 1 0 0 1-3.001-3l8.384-8.381\\\" /> <path d=\\\"m16 16 6-6\\\" /> <path d=\\\"m21.5 10.5-8-8\\\" /> <path d=\\\"m8 8 6-6\\\" /> <path d=\\\"m8.5 7.5 8 8\\\" />\",\n \"award\": \"<path d=\\\"m15.477 12.89 1.515 8.526a.5.5 0 0 1-.81.47l-3.58-2.687a1 1 0 0 0-1.197 0l-3.586 2.686a.5.5 0 0 1-.81-.469l1.514-8.526\\\" /> <circle cx=\\\"12\\\" cy=\\\"8\\\" r=\\\"6\\\" />\",\n \"trophy\": \"<path d=\\\"M10 14.66V17a1 1 0 0 1-1 1 2 2 0 0 0-2 2v2\\\" /> <path d=\\\"M14 14.66V17a1 1 0 0 0 1 1 2 2 0 0 1 2 2v2\\\" /> <path d=\\\"M17.916 10H19.5A2.5 2.5 0 0 0 22 7.5V5a1 1 0 0 0-1-1h-3\\\" /> <path d=\\\"M4 22h16\\\" /> <path d=\\\"M6 9a6 6 0 0 0 12 0V3a1 1 0 0 0-1-1H7a1 1 0 0 0-1 1z\\\" /> <path d=\\\"M6.084 10H4.5A2.5 2.5 0 0 1 2 7.5V5a1 1 0 0 1 1-1h3\\\" />\",\n \"gift\": \"<path d=\\\"M12 7v14\\\" /> <path d=\\\"M20 11v8a2 2 0 0 1-2 2H6a2 2 0 0 1-2-2v-8\\\" /> <path d=\\\"M7.5 7a1 1 0 0 1 0-5A4.8 8 0 0 1 12 7a4.8 8 0 0 1 4.5-5 1 1 0 0 1 0 5\\\" /> <rect x=\\\"3\\\" y=\\\"7\\\" width=\\\"18\\\" height=\\\"4\\\" rx=\\\"1\\\" />\",\n \"ticket\": \"<path d=\\\"M2 9a3 3 0 0 1 0 6v2a2 2 0 0 0 2 2h16a2 2 0 0 0 2-2v-2a3 3 0 0 1 0-6V7a2 2 0 0 0-2-2H4a2 2 0 0 0-2 2Z\\\" /> <path d=\\\"M13 5v2\\\" /> <path d=\\\"M13 17v2\\\" /> <path d=\\\"M13 11v2\\\" />\",\n \"tag\": \"<path d=\\\"M12.586 2.586A2 2 0 0 0 11.172 2H4a2 2 0 0 0-2 2v7.172a2 2 0 0 0 .586 1.414l8.704 8.704a2.426 2.426 0 0 0 3.42 0l6.58-6.58a2.426 2.426 0 0 0 0-3.42z\\\" /> <circle cx=\\\"7.5\\\" cy=\\\"7.5\\\" r=\\\".5\\\" fill=\\\"currentColor\\\" />\",\n \"shopping-cart\": \"<path d=\\\"m2.05 2.05 1.099-.028a1 1 0 0 1 1.008.815l2.69 14.347A1 1 0 0 0 7.83 18H18\\\" /> <path d=\\\"M4.563 5h16.435a1 1 0 0 1 .981 1.204l-1.026 6.226A2 2 0 0 1 18.962 14H6.25\\\" /> <circle cx=\\\"18\\\" cy=\\\"20\\\" r=\\\"2\\\" /> <circle cx=\\\"8\\\" cy=\\\"20\\\" r=\\\"2\\\" />\",\n \"smartphone\": \"<rect width=\\\"14\\\" height=\\\"20\\\" x=\\\"5\\\" y=\\\"2\\\" rx=\\\"2\\\" ry=\\\"2\\\" /> <path d=\\\"M12 18h.01\\\" />\",\n \"laptop\": \"<path d=\\\"M18 5a2 2 0 0 1 2 2v8.526a2 2 0 0 0 .212.897l1.068 2.127a1 1 0 0 1-.9 1.45H3.62a1 1 0 0 1-.9-1.45l1.068-2.127A2 2 0 0 0 4 15.526V7a2 2 0 0 1 2-2z\\\" /> <path d=\\\"M20.054 15.987H3.946\\\" />\",\n \"monitor\": \"<rect width=\\\"20\\\" height=\\\"14\\\" x=\\\"2\\\" y=\\\"3\\\" rx=\\\"2\\\" /> <line x1=\\\"8\\\" x2=\\\"16\\\" y1=\\\"21\\\" y2=\\\"21\\\" /> <line x1=\\\"12\\\" x2=\\\"12\\\" y1=\\\"17\\\" y2=\\\"21\\\" />\",\n \"wifi\": \"<path d=\\\"M12 20h.01\\\" /> <path d=\\\"M2 8.82a15 15 0 0 1 20 0\\\" /> <path d=\\\"M5 12.859a10 10 0 0 1 14 0\\\" /> <path d=\\\"M8.5 16.429a5 5 0 0 1 7 0\\\" />\",\n \"arrow-right\": \"<path d=\\\"M5 12h14\\\" /> <path d=\\\"m12 5 7 7-7 7\\\" />\",\n \"arrow-down\": \"<path d=\\\"M12 5v14\\\" /> <path d=\\\"m19 12-7 7-7-7\\\" />\",\n \"arrow-up-right\": \"<path d=\\\"M7 7h10v10\\\" /> <path d=\\\"M7 17 17 7\\\" />\",\n \"corner-down-right\": \"<path d=\\\"m15 10 5 5-5 5\\\" /> <path d=\\\"M4 4v7a4 4 0 0 0 4 4h12\\\" />\",\n \"split\": \"<path d=\\\"M16 3h5v5\\\" /> <path d=\\\"M8 3H3v5\\\" /> <path d=\\\"M12 22v-8.3a4 4 0 0 0-1.172-2.872L3 3\\\" /> <path d=\\\"m15 9 6-6\\\" />\",\n \"merge\": \"<path d=\\\"m8 6 4-4 4 4\\\" /> <path d=\\\"M12 2v10.3a4 4 0 0 1-1.172 2.872L4 22\\\" /> <path d=\\\"m20 22-5-5\\\" />\",\n \"plus\": \"<path d=\\\"M5 12h14\\\" /> <path d=\\\"M12 5v14\\\" />\",\n \"minus\": \"<path d=\\\"M5 12h14\\\" />\",\n \"equal\": \"<line x1=\\\"5\\\" x2=\\\"19\\\" y1=\\\"9\\\" y2=\\\"9\\\" /> <line x1=\\\"5\\\" x2=\\\"19\\\" y1=\\\"15\\\" y2=\\\"15\\\" />\",\n \"ban\": \"<circle cx=\\\"12\\\" cy=\\\"12\\\" r=\\\"10\\\" /> <path d=\\\"M4.929 4.929 19.07 19.071\\\" />\",\n \"hand\": \"<path d=\\\"M18 11V6a2 2 0 0 0-2-2a2 2 0 0 0-2 2\\\" /> <path d=\\\"M14 10V4a2 2 0 0 0-2-2a2 2 0 0 0-2 2v2\\\" /> <path d=\\\"M10 10.5V6a2 2 0 0 0-2-2a2 2 0 0 0-2 2v8\\\" /> <path d=\\\"M18 8a2 2 0 1 1 4 0v6a8 8 0 0 1-8 8h-2c-2.8 0-4.5-.86-5.99-2.34l-3.6-3.6a2 2 0 0 1 2.83-2.82L7 15\\\" />\",\n \"pointer\": \"<path d=\\\"M22 14a8 8 0 0 1-8 8\\\" /> <path d=\\\"M18 11v-1a2 2 0 0 0-2-2a2 2 0 0 0-2 2\\\" /> <path d=\\\"M14 10V9a2 2 0 0 0-2-2a2 2 0 0 0-2 2v1\\\" /> <path d=\\\"M10 9.5V4a2 2 0 0 0-2-2a2 2 0 0 0-2 2v10\\\" /> <path d=\\\"M18 11a2 2 0 1 1 4 0v3a8 8 0 0 1-8 8h-2c-2.8 0-4.5-.86-5.99-2.34l-3.6-3.6a2 2 0 0 1 2.83-2.82L7 15\\\" />\"\n};\n","// Generated by scripts/vendor/naive-icons.mjs from github.com/guokaigdg/naive-icons. Do not edit by hand.\n/*\nMIT License\n\nCopyright (c) 2026 Naive Icons\n\nPermission is hereby granted, free of charge, to any person obtaining a copy\nof this software and associated documentation files (the \"Software\"), to deal\nin the Software without restriction, including without limitation the rights\nto use, copy, modify, merge, publish, distribute, sublicense, and/or sell\ncopies of the Software, and to permit persons to whom the Software is\nfurnished to do so, subject to the following conditions:\n\nThe above copyright notice and this permission notice shall be included in all\ncopies or substantial portions of the Software.\n\nTHE SOFTWARE IS PROVIDED \"AS IS\", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR\nIMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,\nFITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE\nAUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER\nLIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,\nOUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE\nSOFTWARE.\n*/\nimport type { Illustration } from \"../core/illustrations\";\n\nexport const ILLUSTRATION_SVG: Record<Illustration, string> = {\n \"invoice\": \"<svg viewBox=\\\"0 0 48 48\\\" xmlns=\\\"http://www.w3.org/2000/svg\\\" fill=\\\"none\\\" stroke=\\\"#2A2A2A\\\" stroke-width=\\\"3.5\\\" stroke-linecap=\\\"round\\\" stroke-linejoin=\\\"round\\\"> <path d=\\\"M11 5 L30 5 L37 12 L37 42 L11 42 Z\\\" fill=\\\"#FFFFFF\\\"/> <path d=\\\"M30 5 L30 12 L37 12\\\" stroke=\\\"#2A2A2A\\\" stroke-width=\\\"2.5\\\" fill=\\\"none\\\"/> <path d=\\\"M16 18 L32 18 M16 24 L32 24 M16 30 L26 30\\\" stroke=\\\"#264653\\\" stroke-width=\\\"2.5\\\" fill=\\\"none\\\"/> <circle cx=\\\"31\\\" cy=\\\"36\\\" r=\\\"4\\\" fill=\\\"#E76F51\\\"/> </svg>\",\n \"receipt\": \"<svg viewBox=\\\"0 0 48 48\\\" xmlns=\\\"http://www.w3.org/2000/svg\\\" fill=\\\"none\\\" stroke=\\\"#2A2A2A\\\" stroke-width=\\\"3.5\\\" stroke-linecap=\\\"round\\\" stroke-linejoin=\\\"round\\\"> <path d=\\\"M12 6 L36 6 L36 38 L32 41 L28 38 L24 41 L20 38 L16 41 L12 38 Z\\\" fill=\\\"#FAEDCD\\\"/> <path d=\\\"M17 14 L31 14 M17 20 L31 20 M17 26 L26 26\\\" stroke=\\\"#264653\\\" stroke-width=\\\"2.5\\\" fill=\\\"none\\\"/> <path d=\\\"M18 32 L30 32\\\" stroke=\\\"#E76F51\\\" stroke-width=\\\"3\\\" fill=\\\"none\\\"/> </svg>\",\n \"banknote\": \"<svg viewBox=\\\"0 0 48 48\\\" xmlns=\\\"http://www.w3.org/2000/svg\\\" fill=\\\"none\\\" stroke=\\\"#2A2A2A\\\" stroke-width=\\\"3.5\\\" stroke-linecap=\\\"round\\\" stroke-linejoin=\\\"round\\\"> <rect x=\\\"6\\\" y=\\\"13\\\" width=\\\"36\\\" height=\\\"22\\\" rx=\\\"3\\\" fill=\\\"#588157\\\"/> <circle cx=\\\"24\\\" cy=\\\"24\\\" r=\\\"6\\\" fill=\\\"#E9C46A\\\" stroke=\\\"none\\\"/> <path d=\\\"M24 19 L24 24 L28 28\\\" stroke=\\\"#264653\\\" stroke-width=\\\"2.5\\\" fill=\\\"none\\\"/> <path d=\\\"M11 19 L11 29 M37 19 L37 29\\\" stroke=\\\"#FAEDCD\\\" stroke-width=\\\"2.5\\\" fill=\\\"none\\\"/> </svg>\",\n \"coin\": \"<svg viewBox=\\\"0 0 48 48\\\" xmlns=\\\"http://www.w3.org/2000/svg\\\" fill=\\\"none\\\" stroke=\\\"#2A2A2A\\\" stroke-width=\\\"3.5\\\" stroke-linecap=\\\"round\\\" stroke-linejoin=\\\"round\\\"> <circle cx=\\\"24\\\" cy=\\\"24\\\" r=\\\"16\\\" fill=\\\"#E9C46A\\\"/> <circle cx=\\\"24\\\" cy=\\\"24\\\" r=\\\"9.5\\\" fill=\\\"#FAEDCD\\\" stroke=\\\"none\\\"/> <path d=\\\"M19 17 L24 23 L29 17 M24 23 L24 31 M19 27 L29 27\\\" stroke=\\\"#8B5E3C\\\" stroke-width=\\\"2.5\\\" fill=\\\"none\\\"/> </svg>\",\n \"wallet\": \"<svg viewBox=\\\"0 0 48 48\\\" xmlns=\\\"http://www.w3.org/2000/svg\\\" fill=\\\"none\\\" stroke=\\\"#2A2A2A\\\" stroke-width=\\\"3.5\\\" stroke-linecap=\\\"round\\\" stroke-linejoin=\\\"round\\\"> <rect x=\\\"12\\\" y=\\\"8\\\" width=\\\"20\\\" height=\\\"12\\\" rx=\\\"3\\\" fill=\\\"#FAEDCD\\\"/> <rect x=\\\"6\\\" y=\\\"16\\\" width=\\\"36\\\" height=\\\"22\\\" rx=\\\"4\\\" fill=\\\"#8B5E3C\\\"/> <rect x=\\\"29\\\" y=\\\"23\\\" width=\\\"13\\\" height=\\\"8\\\" rx=\\\"3\\\" fill=\\\"#E9C46A\\\"/> </svg>\",\n \"credit-card\": \"<svg viewBox=\\\"0 0 48 48\\\" xmlns=\\\"http://www.w3.org/2000/svg\\\" fill=\\\"none\\\" stroke=\\\"#2A2A2A\\\" stroke-width=\\\"3.5\\\" stroke-linecap=\\\"round\\\" stroke-linejoin=\\\"round\\\"> <rect x=\\\"5\\\" y=\\\"12\\\" width=\\\"38\\\" height=\\\"26\\\" rx=\\\"4\\\" fill=\\\"#2A9D8F\\\"/> <rect x=\\\"5\\\" y=\\\"18\\\" width=\\\"38\\\" height=\\\"6\\\" fill=\\\"#264653\\\"/> <rect x=\\\"11\\\" y=\\\"28\\\" width=\\\"9\\\" height=\\\"6\\\" rx=\\\"1.5\\\" fill=\\\"#E9C46A\\\"/> <path d=\\\"M24 32.5 L 33 32.5\\\" stroke=\\\"#FFFFFF\\\" stroke-width=\\\"2.5\\\"/> </svg>\",\n \"bank\": \"<svg viewBox=\\\"0 0 48 48\\\" xmlns=\\\"http://www.w3.org/2000/svg\\\" fill=\\\"none\\\" stroke=\\\"#2A2A2A\\\" stroke-width=\\\"3.5\\\" stroke-linecap=\\\"round\\\" stroke-linejoin=\\\"round\\\"> <path d=\\\"M8 18 L24 8 L40 18 Z\\\" fill=\\\"#E9C46A\\\"/> <path d=\\\"M10 20 L38 20 L38 38 L10 38 Z\\\" fill=\\\"#FAEDCD\\\"/> <path d=\\\"M15 24 L15 34 M21 24 L21 34 M27 24 L27 34 M33 24 L33 34\\\" stroke=\\\"#2A2A2A\\\" stroke-width=\\\"3\\\" fill=\\\"none\\\"/> <path d=\\\"M7 40 L41 40\\\" stroke=\\\"#2A2A2A\\\" stroke-width=\\\"4\\\" fill=\\\"none\\\"/> </svg>\",\n \"piggy-bank\": \"<svg viewBox=\\\"0 0 48 48\\\" xmlns=\\\"http://www.w3.org/2000/svg\\\" fill=\\\"none\\\" stroke=\\\"#2A2A2A\\\" stroke-width=\\\"3.5\\\" stroke-linecap=\\\"round\\\" stroke-linejoin=\\\"round\\\"> <ellipse cx=\\\"23\\\" cy=\\\"27\\\" rx=\\\"14\\\" ry=\\\"10\\\" fill=\\\"#F4A6A4\\\"/> <path d=\\\"M14 18 L13 10 L21 15 Z\\\" fill=\\\"#F4A6A4\\\"/> <ellipse cx=\\\"35\\\" cy=\\\"27\\\" rx=\\\"4\\\" ry=\\\"3\\\" fill=\\\"#F4A6A4\\\"/> <circle cx=\\\"34\\\" cy=\\\"26\\\" r=\\\"1\\\" fill=\\\"#264653\\\" stroke=\\\"none\\\"/> <circle cx=\\\"36.5\\\" cy=\\\"26\\\" r=\\\"1\\\" fill=\\\"#264653\\\" stroke=\\\"none\\\"/> <path d=\\\"M20 18 L28 18\\\" stroke=\\\"#264653\\\" stroke-width=\\\"2.5\\\" fill=\\\"none\\\"/> <path d=\\\"M13 36 L13 41 M21 37 L21 41 M28 37 L28 41\\\" stroke=\\\"#F4A6A4\\\" stroke-width=\\\"3.5\\\" fill=\\\"none\\\"/> <path d=\\\"M9 23 C5 22 5 18 8 17\\\" stroke=\\\"#F4A6A4\\\" stroke-width=\\\"2.5\\\" fill=\\\"none\\\"/> <circle cx=\\\"30\\\" cy=\\\"23\\\" r=\\\"1.6\\\" fill=\\\"#2A2A2A\\\" stroke=\\\"none\\\"/> </svg>\",\n \"safe\": \"<svg viewBox=\\\"0 0 48 48\\\" xmlns=\\\"http://www.w3.org/2000/svg\\\" fill=\\\"none\\\" stroke=\\\"#2A2A2A\\\" stroke-width=\\\"3.5\\\" stroke-linecap=\\\"round\\\" stroke-linejoin=\\\"round\\\"> <rect x=\\\"7\\\" y=\\\"7\\\" width=\\\"34\\\" height=\\\"34\\\" rx=\\\"4\\\" fill=\\\"#264653\\\"/> <rect x=\\\"12\\\" y=\\\"12\\\" width=\\\"24\\\" height=\\\"24\\\" rx=\\\"3\\\" fill=\\\"#FAEDCD\\\" stroke=\\\"none\\\"/> <circle cx=\\\"23\\\" cy=\\\"24\\\" r=\\\"6\\\" fill=\\\"#E76F51\\\"/> <path d=\\\"M23 18 L23 24 L27 28\\\" stroke=\\\"#2A2A2A\\\" stroke-width=\\\"2.5\\\" fill=\\\"none\\\"/> <path d=\\\"M33 20 L38 20 M33 28 L38 28\\\" stroke=\\\"#E9C46A\\\" stroke-width=\\\"2.5\\\" fill=\\\"none\\\"/> </svg>\",\n \"cash-register\": \"<svg viewBox=\\\"0 0 48 48\\\" xmlns=\\\"http://www.w3.org/2000/svg\\\" fill=\\\"none\\\" stroke=\\\"#2A2A2A\\\" stroke-width=\\\"3.5\\\" stroke-linecap=\\\"round\\\" stroke-linejoin=\\\"round\\\"> <rect x=\\\"12\\\" y=\\\"8\\\" width=\\\"20\\\" height=\\\"10\\\" rx=\\\"2\\\" fill=\\\"#E9C46A\\\"/> <path d=\\\"M9 18 H35 L37 32 H7 Z\\\" fill=\\\"#264653\\\"/> <path d=\\\"M13 24 H31\\\" stroke=\\\"#FAEDCD\\\" stroke-width=\\\"2\\\"/> <path d=\\\"M14 29 H30\\\" stroke=\\\"#FAEDCD\\\" stroke-width=\\\"2\\\"/> <rect x=\\\"7\\\" y=\\\"34\\\" width=\\\"32\\\" height=\\\"7\\\" rx=\\\"2\\\" fill=\\\"#E76F51\\\"/> </svg>\",\n \"calculator\": \"<svg viewBox=\\\"0 0 48 48\\\" xmlns=\\\"http://www.w3.org/2000/svg\\\" fill=\\\"none\\\" stroke=\\\"#2A2A2A\\\" stroke-width=\\\"3.5\\\" stroke-linecap=\\\"round\\\" stroke-linejoin=\\\"round\\\"> <rect x=\\\"13\\\" y=\\\"6\\\" width=\\\"22\\\" height=\\\"36\\\" rx=\\\"4\\\" fill=\\\"#E76F51\\\"/> <rect x=\\\"17\\\" y=\\\"10\\\" width=\\\"14\\\" height=\\\"8\\\" rx=\\\"2\\\" fill=\\\"#FAEDCD\\\"/> <circle cx=\\\"20\\\" cy=\\\"25\\\" r=\\\"1.6\\\" fill=\\\"#2A2A2A\\\" stroke=\\\"none\\\"/> <circle cx=\\\"28\\\" cy=\\\"25\\\" r=\\\"1.6\\\" fill=\\\"#2A2A2A\\\" stroke=\\\"none\\\"/> <circle cx=\\\"20\\\" cy=\\\"31\\\" r=\\\"1.6\\\" fill=\\\"#2A2A2A\\\" stroke=\\\"none\\\"/> <circle cx=\\\"28\\\" cy=\\\"31\\\" r=\\\"1.6\\\" fill=\\\"#2A2A2A\\\" stroke=\\\"none\\\"/> <circle cx=\\\"20\\\" cy=\\\"37\\\" r=\\\"1.6\\\" fill=\\\"#2A2A2A\\\" stroke=\\\"none\\\"/> <circle cx=\\\"28\\\" cy=\\\"37\\\" r=\\\"1.6\\\" fill=\\\"#2A2A2A\\\" stroke=\\\"none\\\"/> </svg>\",\n \"ledger\": \"<svg viewBox=\\\"0 0 48 48\\\" xmlns=\\\"http://www.w3.org/2000/svg\\\" fill=\\\"none\\\" stroke=\\\"#2A2A2A\\\" stroke-width=\\\"3.5\\\" stroke-linecap=\\\"round\\\" stroke-linejoin=\\\"round\\\"> <rect x=\\\"7\\\" y=\\\"6\\\" width=\\\"34\\\" height=\\\"36\\\" rx=\\\"3\\\" fill=\\\"#264653\\\"/> <path d=\\\"M16 6 L16 42\\\" stroke=\\\"#FAEDCD\\\" stroke-width=\\\"3\\\" fill=\\\"none\\\"/> <path d=\\\"M21 14 L35 14 M21 21 L35 21 M21 28 L32 28 M21 35 L28 35\\\" stroke=\\\"#FAEDCD\\\" stroke-width=\\\"2.5\\\" fill=\\\"none\\\"/> <path d=\\\"M10 12 L13 12 M10 20 L13 20 M10 28 L13 28 M10 36 L13 36\\\" stroke=\\\"#E9C46A\\\" stroke-width=\\\"2.5\\\" fill=\\\"none\\\"/> </svg>\",\n \"budget\": \"<svg viewBox=\\\"0 0 48 48\\\" xmlns=\\\"http://www.w3.org/2000/svg\\\" fill=\\\"none\\\" stroke=\\\"#2A2A2A\\\" stroke-width=\\\"3.5\\\" stroke-linecap=\\\"round\\\" stroke-linejoin=\\\"round\\\"> <rect x=\\\"7\\\" y=\\\"9\\\" width=\\\"34\\\" height=\\\"30\\\" rx=\\\"3\\\" fill=\\\"#FAEDCD\\\"/> <path d=\\\"M7 17 L41 17\\\" stroke=\\\"#264653\\\" stroke-width=\\\"2.5\\\" fill=\\\"none\\\"/> <ellipse cx=\\\"24\\\" cy=\\\"26\\\" rx=\\\"9\\\" ry=\\\"3\\\" fill=\\\"#E9C46A\\\" stroke=\\\"none\\\"/> <ellipse cx=\\\"24\\\" cy=\\\"31\\\" rx=\\\"9\\\" ry=\\\"3\\\" fill=\\\"#E9C46A\\\" stroke=\\\"none\\\"/> <ellipse cx=\\\"24\\\" cy=\\\"36\\\" rx=\\\"9\\\" ry=\\\"3\\\" fill=\\\"#E9C46A\\\" stroke=\\\"none\\\"/> </svg>\",\n \"tax\": \"<svg viewBox=\\\"0 0 48 48\\\" xmlns=\\\"http://www.w3.org/2000/svg\\\" fill=\\\"none\\\" stroke=\\\"#2A2A2A\\\" stroke-width=\\\"3.5\\\" stroke-linecap=\\\"round\\\" stroke-linejoin=\\\"round\\\"> <rect x=\\\"9\\\" y=\\\"5\\\" width=\\\"30\\\" height=\\\"38\\\" rx=\\\"3\\\" fill=\\\"#FFFFFF\\\"/> <path d=\\\"M15 14 L33 14 M15 20 L33 20 M15 26 L28 26\\\" stroke=\\\"#264653\\\" stroke-width=\\\"2.5\\\" fill=\\\"none\\\"/> <circle cx=\\\"20\\\" cy=\\\"32\\\" r=\\\"3\\\" fill=\\\"#E76F51\\\" stroke=\\\"none\\\"/> <circle cx=\\\"30\\\" cy=\\\"38\\\" r=\\\"3\\\" fill=\\\"#E76F51\\\" stroke=\\\"none\\\"/> <path d=\\\"M32 31 L18 40\\\" stroke=\\\"#E76F51\\\" stroke-width=\\\"3\\\" fill=\\\"none\\\"/> </svg>\",\n \"refund\": \"<svg viewBox=\\\"0 0 48 48\\\" xmlns=\\\"http://www.w3.org/2000/svg\\\" fill=\\\"none\\\" stroke=\\\"#2A2A2A\\\" stroke-width=\\\"3.5\\\" stroke-linecap=\\\"round\\\" stroke-linejoin=\\\"round\\\"> <circle cx=\\\"24\\\" cy=\\\"24\\\" r=\\\"8\\\" fill=\\\"#E9C46A\\\" stroke=\\\"none\\\"/> <path d=\\\"M36 24 A12 12 0 1 0 22 35.5\\\" stroke=\\\"#2A9D8F\\\" stroke-width=\\\"3.5\\\" fill=\\\"none\\\"/> <path d=\\\"M16 31 L22 37 L28 33\\\" stroke=\\\"#2A9D8F\\\" stroke-width=\\\"3\\\" fill=\\\"none\\\"/> </svg>\",\n \"loan\": \"<svg viewBox=\\\"0 0 48 48\\\" xmlns=\\\"http://www.w3.org/2000/svg\\\" fill=\\\"none\\\" stroke=\\\"#2A2A2A\\\" stroke-width=\\\"3.5\\\" stroke-linecap=\\\"round\\\" stroke-linejoin=\\\"round\\\"> <circle cx=\\\"24\\\" cy=\\\"18\\\" r=\\\"10\\\" fill=\\\"#E9C46A\\\"/> <path d=\\\"M24 13 L24 23 M21 17 L27 17\\\" stroke=\\\"#8B5E3C\\\" stroke-width=\\\"2.5\\\" fill=\\\"none\\\"/> <path d=\\\"M24 31 L24 41 M18 35 L24 41 L30 35\\\" stroke=\\\"#E76F51\\\" stroke-width=\\\"3.5\\\" fill=\\\"none\\\"/> </svg>\",\n \"audit\": \"<svg viewBox=\\\"0 0 48 48\\\" xmlns=\\\"http://www.w3.org/2000/svg\\\" fill=\\\"none\\\" stroke=\\\"#2A2A2A\\\" stroke-width=\\\"3.5\\\" stroke-linecap=\\\"round\\\" stroke-linejoin=\\\"round\\\"> <rect x=\\\"8\\\" y=\\\"5\\\" width=\\\"24\\\" height=\\\"30\\\" rx=\\\"3\\\" fill=\\\"#FFFFFF\\\"/> <path d=\\\"M13 13 L27 13 M13 20 L27 20 M13 27 L22 27\\\" stroke=\\\"#264653\\\" stroke-width=\\\"2.5\\\" fill=\\\"none\\\"/> <circle cx=\\\"30\\\" cy=\\\"30\\\" r=\\\"7\\\" fill=\\\"#E9C46A\\\"/> <path d=\\\"M35 35 L41 41\\\" stroke=\\\"#2A2A2A\\\" stroke-width=\\\"3.5\\\" fill=\\\"none\\\"/> </svg>\",\n \"currency-dollar\": \"<svg viewBox=\\\"0 0 48 48\\\" xmlns=\\\"http://www.w3.org/2000/svg\\\" fill=\\\"none\\\" stroke=\\\"#2A2A2A\\\" stroke-width=\\\"3.5\\\" stroke-linecap=\\\"round\\\" stroke-linejoin=\\\"round\\\"> <circle cx=\\\"24\\\" cy=\\\"24\\\" r=\\\"16\\\" fill=\\\"#E9C46A\\\"/> <path d=\\\"M30 16 C28 13 20 13 19 18 C18 24 30 24 29 30 C28 35 20 35 18 32\\\" stroke=\\\"#264653\\\" stroke-width=\\\"3\\\" fill=\\\"none\\\"/> <path d=\\\"M24 11 L24 37\\\" stroke=\\\"#264653\\\" stroke-width=\\\"2.5\\\" fill=\\\"none\\\"/> </svg>\",\n \"file-text\": \"<svg viewBox=\\\"0 0 48 48\\\" xmlns=\\\"http://www.w3.org/2000/svg\\\" fill=\\\"none\\\" stroke=\\\"#2A2A2A\\\" stroke-width=\\\"3.5\\\" stroke-linecap=\\\"round\\\" stroke-linejoin=\\\"round\\\"> <path d=\\\"M12 6 L12 42 L36 42 L36 18 L24 6 Z\\\" fill=\\\"#FAEDCD\\\"/> <path d=\\\"M24 6 L24 18 L36 18\\\" fill=\\\"#F4A6A4\\\"/> <path d=\\\"M17 25 L31 25\\\" stroke=\\\"#2A2A2A\\\" stroke-width=\\\"2\\\" fill=\\\"none\\\"/> <path d=\\\"M17 31 L31 31\\\" stroke=\\\"#2A2A2A\\\" stroke-width=\\\"2\\\" fill=\\\"none\\\"/> <path d=\\\"M17 37 L26 37\\\" stroke=\\\"#2A2A2A\\\" stroke-width=\\\"2\\\" fill=\\\"none\\\"/> </svg>\",\n \"file-check\": \"<svg viewBox=\\\"0 0 48 48\\\" xmlns=\\\"http://www.w3.org/2000/svg\\\" fill=\\\"none\\\" stroke=\\\"#2A2A2A\\\" stroke-width=\\\"3.5\\\" stroke-linecap=\\\"round\\\" stroke-linejoin=\\\"round\\\"> <path d=\\\"M12 6 L12 42 L36 42 L36 18 L24 6 Z\\\" fill=\\\"#FAEDCD\\\"/> <path d=\\\"M24 6 L24 18 L36 18\\\" fill=\\\"#F4A6A4\\\"/> <path d=\\\"M17 29 L22 34 L31 24\\\" stroke=\\\"#588157\\\" stroke-width=\\\"4\\\" fill=\\\"none\\\"/> </svg>\",\n \"file-spreadsheet\": \"<svg viewBox=\\\"0 0 48 48\\\" xmlns=\\\"http://www.w3.org/2000/svg\\\" fill=\\\"none\\\" stroke=\\\"#2A2A2A\\\" stroke-width=\\\"3.5\\\" stroke-linecap=\\\"round\\\" stroke-linejoin=\\\"round\\\"> <path d=\\\"M12 7 L28 7 L38 17 L38 41 L12 41 Z\\\" fill=\\\"#FAEDCD\\\"/> <path d=\\\"M28 7 L28 17 L38 17\\\" stroke=\\\"#2A2A2A\\\" stroke-width=\\\"2.5\\\" fill=\\\"none\\\"/> <rect x=\\\"16\\\" y=\\\"22\\\" width=\\\"16\\\" height=\\\"12\\\" rx=\\\"1\\\" fill=\\\"#588157\\\" stroke=\\\"none\\\"/> <path d=\\\"M16 28 L32 28 M21 22 L21 34 M27 22 L27 34\\\" stroke=\\\"#FAEDCD\\\" stroke-width=\\\"1.8\\\" fill=\\\"none\\\"/> </svg>\",\n \"clipboard-check\": \"<svg viewBox=\\\"0 0 48 48\\\" xmlns=\\\"http://www.w3.org/2000/svg\\\" fill=\\\"none\\\" stroke=\\\"#2A2A2A\\\" stroke-width=\\\"3.5\\\" stroke-linecap=\\\"round\\\" stroke-linejoin=\\\"round\\\"> <rect x=\\\"10\\\" y=\\\"10\\\" width=\\\"28\\\" height=\\\"32\\\" rx=\\\"4\\\" fill=\\\"#FAEDCD\\\"/> <rect x=\\\"18\\\" y=\\\"6\\\" width=\\\"12\\\" height=\\\"8\\\" rx=\\\"3\\\" fill=\\\"#E9C46A\\\"/> <path d=\\\"M17 27 L22 32 L31 21\\\" stroke=\\\"#588157\\\" stroke-width=\\\"4\\\" fill=\\\"none\\\"/> </svg>\",\n \"rubber-stamp\": \"<svg viewBox=\\\"0 0 48 48\\\" xmlns=\\\"http://www.w3.org/2000/svg\\\" fill=\\\"none\\\" stroke=\\\"#2A2A2A\\\" stroke-width=\\\"3.5\\\" stroke-linecap=\\\"round\\\" stroke-linejoin=\\\"round\\\"> <rect x=\\\"9\\\" y=\\\"26\\\" width=\\\"30\\\" height=\\\"10\\\" rx=\\\"2\\\" fill=\\\"#E76F51\\\"/> <path d=\\\"M16 26 L18 18 L30 18 L32 26 Z\\\" fill=\\\"#264653\\\"/> <path d=\\\"M20 18 C20 12 28 12 28 18\\\" fill=\\\"#264653\\\"/> <path d=\\\"M15 33 L33 33\\\" stroke=\\\"#FAEDCD\\\" stroke-width=\\\"2.5\\\" fill=\\\"none\\\"/> </svg>\",\n \"signature\": \"<svg viewBox=\\\"0 0 48 48\\\" xmlns=\\\"http://www.w3.org/2000/svg\\\" fill=\\\"none\\\" stroke=\\\"#2A2A2A\\\" stroke-width=\\\"3.5\\\" stroke-linecap=\\\"round\\\" stroke-linejoin=\\\"round\\\"> <path d=\\\"M7 34 C11 27 14 30 13 34 C12 38 16 38 18 34 C21 28 24 22 28 25 C31 27 29 33 27 34 C31 34 34 30 37 30\\\" stroke=\\\"#2A2A2A\\\" stroke-width=\\\"3\\\" fill=\\\"none\\\"/> <path d=\\\"M10 41 C18 40 30 41 38 40\\\" stroke=\\\"#2A2A2A\\\" stroke-width=\\\"2.5\\\" fill=\\\"none\\\"/> <path d=\\\"M36 30 C37 27 40 24 41 23 C43 25 42 28 40 31 C39 32 37 31 36 30 Z\\\" fill=\\\"#264653\\\" stroke=\\\"none\\\"/> <path d=\\\"M39 29 L41 25\\\" stroke=\\\"#FAEDCD\\\" stroke-width=\\\"1.5\\\" fill=\\\"none\\\"/> </svg>\",\n \"trending-up\": \"<svg viewBox=\\\"0 0 48 48\\\" xmlns=\\\"http://www.w3.org/2000/svg\\\" fill=\\\"none\\\" stroke=\\\"#2A2A2A\\\" stroke-width=\\\"3.5\\\" stroke-linecap=\\\"round\\\" stroke-linejoin=\\\"round\\\"> <path d=\\\"M8 34 L17 24 L24 29 L32 19\\\" stroke=\\\"#2A9D8F\\\" stroke-width=\\\"4.5\\\" fill=\\\"none\\\"/> <path d=\\\"M 36.88 14.12 L 33.30 22.90 L 28.10 17.70 Z\\\" fill=\\\"#E76F51\\\"/> </svg>\",\n \"bar-chart\": \"<svg viewBox=\\\"0 0 48 48\\\" xmlns=\\\"http://www.w3.org/2000/svg\\\" fill=\\\"none\\\" stroke=\\\"#2A2A2A\\\" stroke-width=\\\"3.5\\\" stroke-linecap=\\\"round\\\" stroke-linejoin=\\\"round\\\"> <rect x=\\\"7\\\" y=\\\"26\\\" width=\\\"8\\\" height=\\\"14\\\" rx=\\\"2\\\" fill=\\\"#2A9D8F\\\"/> <rect x=\\\"19\\\" y=\\\"16\\\" width=\\\"8\\\" height=\\\"24\\\" rx=\\\"2\\\" fill=\\\"#E9C46A\\\"/> <rect x=\\\"31\\\" y=\\\"8\\\" width=\\\"8\\\" height=\\\"32\\\" rx=\\\"2\\\" fill=\\\"#E76F51\\\"/> </svg>\",\n \"line-chart\": \"<svg viewBox=\\\"0 0 48 48\\\" xmlns=\\\"http://www.w3.org/2000/svg\\\" fill=\\\"none\\\" stroke=\\\"#2A2A2A\\\" stroke-width=\\\"3.5\\\" stroke-linecap=\\\"round\\\" stroke-linejoin=\\\"round\\\"> <path d=\\\"M7 40 L41 40 M7 9 L7 40\\\" stroke=\\\"#264653\\\" stroke-width=\\\"2.5\\\" fill=\\\"none\\\"/> <path d=\\\"M11 32 L20 22 L28 27 L38 13\\\" stroke=\\\"#E76F51\\\" stroke-width=\\\"3.5\\\" fill=\\\"none\\\"/> <circle cx=\\\"20\\\" cy=\\\"22\\\" r=\\\"2.5\\\" fill=\\\"#E9C46A\\\" stroke=\\\"none\\\"/> <circle cx=\\\"28\\\" cy=\\\"27\\\" r=\\\"2.5\\\" fill=\\\"#E9C46A\\\" stroke=\\\"none\\\"/> <circle cx=\\\"38\\\" cy=\\\"13\\\" r=\\\"2.5\\\" fill=\\\"#E9C46A\\\" stroke=\\\"none\\\"/> </svg>\",\n \"pie-chart\": \"<svg viewBox=\\\"0 0 48 48\\\" xmlns=\\\"http://www.w3.org/2000/svg\\\" fill=\\\"none\\\" stroke=\\\"#2A2A2A\\\" stroke-width=\\\"3.5\\\" stroke-linecap=\\\"round\\\" stroke-linejoin=\\\"round\\\"> <circle cx=\\\"24\\\" cy=\\\"24\\\" r=\\\"16\\\" fill=\\\"#2A9D8F\\\"/> <path d=\\\"M24 24 L24 8 A 16 16 0 0 1 39.31 16 Z\\\" fill=\\\"#E76F51\\\"/> </svg>\",\n \"darts\": \"<svg viewBox=\\\"0 0 48 48\\\" xmlns=\\\"http://www.w3.org/2000/svg\\\" fill=\\\"none\\\" stroke=\\\"#2A2A2A\\\" stroke-width=\\\"3.5\\\" stroke-linecap=\\\"round\\\" stroke-linejoin=\\\"round\\\"> <circle cx=\\\"24\\\" cy=\\\"24\\\" r=\\\"16\\\" fill=\\\"#264653\\\"/> <circle cx=\\\"24\\\" cy=\\\"24\\\" r=\\\"10\\\" fill=\\\"#FAEDCD\\\" stroke=\\\"none\\\"/> <circle cx=\\\"24\\\" cy=\\\"24\\\" r=\\\"4\\\" fill=\\\"#E76F51\\\" stroke=\\\"none\\\"/> <path d=\\\"M24 24 L40 8\\\" stroke-width=\\\"3\\\"/> <path d=\\\"M40 8 L34 9 M40 8 L39 14\\\" stroke-width=\\\"2\\\" fill=\\\"none\\\"/> </svg>\",\n \"trophy\": \"<svg viewBox=\\\"0 0 48 48\\\" xmlns=\\\"http://www.w3.org/2000/svg\\\" fill=\\\"none\\\" stroke=\\\"#2A2A2A\\\" stroke-width=\\\"3.5\\\" stroke-linecap=\\\"round\\\" stroke-linejoin=\\\"round\\\"> <path d=\\\"M14 12 C 6 12 6 22 14 22\\\" stroke=\\\"#2A2A2A\\\" stroke-width=\\\"3\\\" fill=\\\"none\\\"/> <path d=\\\"M34 12 C 42 12 42 22 34 22\\\" stroke=\\\"#2A2A2A\\\" stroke-width=\\\"3\\\" fill=\\\"none\\\"/> <path d=\\\"M14 7 L 34 7 L 34 17 C 34 25 29 29 24 29 C 19 29 14 25 14 17 Z\\\" fill=\\\"#E9C46A\\\"/> <path d=\\\"M24 29 L 24 37\\\" stroke=\\\"#2A2A2A\\\" stroke-width=\\\"3\\\"/> <rect x=\\\"15\\\" y=\\\"37\\\" width=\\\"18\\\" height=\\\"4.5\\\" rx=\\\"2\\\" fill=\\\"#8B5E3C\\\"/> <path d=\\\"M24 8.1 L 26.16 13.08 L 31.47 13.41 L 27.32 17.23 L 28.98 22.7 L 24 19.72 L 19.02 22.7 L 20.68 17.23 L 16.53 13.41 L 21.84 13.08 Z\\\" fill=\\\"#2A2A2A\\\" stroke=\\\"none\\\"/> <path d=\\\"M24 11.09 L 25.27 14.03 L 28.41 14.22 L 25.96 16.48 L 26.94 19.71 L 24 17.95 L 21.06 19.71 L 22.04 16.48 L 19.59 14.22 L 22.73 14.03 Z\\\" fill=\\\"#E76F51\\\" stroke=\\\"none\\\"/> </svg>\",\n \"medal\": \"<svg viewBox=\\\"0 0 48 48\\\" xmlns=\\\"http://www.w3.org/2000/svg\\\" fill=\\\"none\\\" stroke=\\\"#2A2A2A\\\" stroke-width=\\\"3.5\\\" stroke-linecap=\\\"round\\\" stroke-linejoin=\\\"round\\\"> <path d=\\\"M15 5 L22 17 L12 17 Z\\\" fill=\\\"#E76F51\\\"/> <path d=\\\"M33 5 L26 17 L36 17 Z\\\" fill=\\\"#E76F51\\\"/> <circle cx=\\\"24\\\" cy=\\\"30\\\" r=\\\"10\\\" fill=\\\"#E9C46A\\\"/> <path d=\\\"M24 24 L26.4 29 L32 29.6 L27.8 33.4 L29 39 L24 36 L19 39 L20.2 33.4 L16 29.6 L21.6 29 Z\\\" fill=\\\"#E76F51\\\" stroke=\\\"none\\\"/> </svg>\",\n \"rocket\": \"<svg viewBox=\\\"0 0 48 48\\\" xmlns=\\\"http://www.w3.org/2000/svg\\\" fill=\\\"none\\\" stroke=\\\"#2A2A2A\\\" stroke-width=\\\"3.5\\\" stroke-linecap=\\\"round\\\" stroke-linejoin=\\\"round\\\"> <path d=\\\"M18 32 L24 42.5 L30 32 Z\\\" fill=\\\"#E76F51\\\"/> <path d=\\\"M24 6 C 16 6 14 16 14 25 L 14 34 L 34 34 L 34 25 C 34 16 32 6 24 6 Z\\\" fill=\\\"#FAEDCD\\\"/> <path d=\\\"M14 28 L8 34 L8 40 L14 36 Z\\\" fill=\\\"#E76F51\\\"/> <path d=\\\"M34 28 L40 34 L40 40 L34 36 Z\\\" fill=\\\"#E76F51\\\"/> <circle cx=\\\"24\\\" cy=\\\"20\\\" r=\\\"5\\\" fill=\\\"#2A9D8F\\\"/> </svg>\",\n \"bulb\": \"<svg viewBox=\\\"0 0 48 48\\\" xmlns=\\\"http://www.w3.org/2000/svg\\\" fill=\\\"none\\\" stroke=\\\"#2A2A2A\\\" stroke-width=\\\"3.5\\\" stroke-linecap=\\\"round\\\" stroke-linejoin=\\\"round\\\"> <path d=\\\"M24 6 C 14 6 10 16 14 24 L14 30 L34 30 L34 24 C 38 16 34 6 24 6 Z\\\" fill=\\\"#E9C46A\\\"/> <rect x=\\\"16\\\" y=\\\"30\\\" width=\\\"16\\\" height=\\\"6\\\" fill=\\\"#264653\\\"/> <rect x=\\\"18\\\" y=\\\"36\\\" width=\\\"12\\\" height=\\\"4\\\" fill=\\\"#264653\\\"/> <circle cx=\\\"20\\\" cy=\\\"18\\\" r=\\\"1.5\\\" fill=\\\"#2A2A2A\\\"/> <circle cx=\\\"28\\\" cy=\\\"18\\\" r=\\\"1.5\\\" fill=\\\"#2A2A2A\\\"/> </svg>\",\n \"milestone\": \"<svg viewBox=\\\"0 0 48 48\\\" xmlns=\\\"http://www.w3.org/2000/svg\\\" fill=\\\"none\\\" stroke=\\\"#2A2A2A\\\" stroke-width=\\\"3.5\\\" stroke-linecap=\\\"round\\\" stroke-linejoin=\\\"round\\\"> <path d=\\\"M24 6 L24 42\\\" stroke=\\\"#264653\\\" stroke-width=\\\"3\\\" fill=\\\"none\\\"/> <path d=\\\"M9 12 L33 12 L39 18 L33 24 L9 24 Z\\\" fill=\\\"#E76F51\\\"/> <path d=\\\"M14 18 L28 18\\\" stroke=\\\"#FAEDCD\\\" stroke-width=\\\"2.5\\\" fill=\\\"none\\\"/> </svg>\",\n \"kanban\": \"<svg viewBox=\\\"0 0 48 48\\\" xmlns=\\\"http://www.w3.org/2000/svg\\\" fill=\\\"none\\\" stroke=\\\"#2A2A2A\\\" stroke-width=\\\"3.5\\\" stroke-linecap=\\\"round\\\" stroke-linejoin=\\\"round\\\"> <rect x=\\\"7\\\" y=\\\"8\\\" width=\\\"10\\\" height=\\\"32\\\" rx=\\\"2\\\" fill=\\\"#FAEDCD\\\"/> <rect x=\\\"19\\\" y=\\\"8\\\" width=\\\"10\\\" height=\\\"22\\\" rx=\\\"2\\\" fill=\\\"#E9C46A\\\"/> <rect x=\\\"31\\\" y=\\\"8\\\" width=\\\"10\\\" height=\\\"27\\\" rx=\\\"2\\\" fill=\\\"#2A9D8F\\\"/> </svg>\",\n \"layout-dashboard\": \"<svg viewBox=\\\"0 0 48 48\\\" xmlns=\\\"http://www.w3.org/2000/svg\\\" fill=\\\"none\\\" stroke=\\\"#2A2A2A\\\" stroke-width=\\\"3.5\\\" stroke-linecap=\\\"round\\\" stroke-linejoin=\\\"round\\\"> <rect x=\\\"7\\\" y=\\\"7\\\" width=\\\"15\\\" height=\\\"15\\\" rx=\\\"3\\\" fill=\\\"#E76F51\\\"/> <rect x=\\\"26\\\" y=\\\"7\\\" width=\\\"15\\\" height=\\\"10\\\" rx=\\\"3\\\" fill=\\\"#E9C46A\\\"/> <rect x=\\\"7\\\" y=\\\"26\\\" width=\\\"15\\\" height=\\\"15\\\" rx=\\\"3\\\" fill=\\\"#2A9D8F\\\"/> <rect x=\\\"26\\\" y=\\\"21\\\" width=\\\"15\\\" height=\\\"20\\\" rx=\\\"3\\\" fill=\\\"#264653\\\"/> </svg>\",\n \"presentation\": \"<svg viewBox=\\\"0 0 48 48\\\" xmlns=\\\"http://www.w3.org/2000/svg\\\" fill=\\\"none\\\" stroke=\\\"#2A2A2A\\\" stroke-width=\\\"3.5\\\" stroke-linecap=\\\"round\\\" stroke-linejoin=\\\"round\\\"> <rect x=\\\"6\\\" y=\\\"8\\\" width=\\\"36\\\" height=\\\"24\\\" rx=\\\"3\\\" fill=\\\"#264653\\\"/> <rect x=\\\"9.5\\\" y=\\\"11.5\\\" width=\\\"29\\\" height=\\\"17\\\" rx=\\\"1.5\\\" fill=\\\"#FAEDCD\\\" stroke=\\\"none\\\"/> <path d=\\\"M14 24 L20 17 L25 22 L32 15\\\" stroke=\\\"#E76F51\\\" stroke-width=\\\"2.5\\\" fill=\\\"none\\\"/> <path d=\\\"M24 32 L24 40\\\" stroke=\\\"#2A2A2A\\\" stroke-width=\\\"3.5\\\" fill=\\\"none\\\"/> <path d=\\\"M17 40 L31 40\\\" stroke=\\\"#2A2A2A\\\" stroke-width=\\\"3.5\\\" fill=\\\"none\\\"/> </svg>\",\n \"calendar\": \"<svg viewBox=\\\"0 0 48 48\\\" xmlns=\\\"http://www.w3.org/2000/svg\\\" fill=\\\"none\\\" stroke=\\\"#2A2A2A\\\" stroke-width=\\\"3.5\\\" stroke-linecap=\\\"round\\\" stroke-linejoin=\\\"round\\\"> <rect x=\\\"8\\\" y=\\\"12\\\" width=\\\"32\\\" height=\\\"28\\\" rx=\\\"4\\\" fill=\\\"#FAEDCD\\\"/> <path d=\\\"M8 20 L40 20\\\" stroke=\\\"#2A2A2A\\\" stroke-width=\\\"3\\\"/> <rect x=\\\"8\\\" y=\\\"12\\\" width=\\\"32\\\" height=\\\"8\\\" fill=\\\"#E76F51\\\"/> <path d=\\\"M16 8 L16 16\\\" stroke=\\\"#2A2A2A\\\" stroke-width=\\\"3\\\"/> <path d=\\\"M32 8 L32 16\\\" stroke=\\\"#2A2A2A\\\" stroke-width=\\\"3\\\"/> <circle cx=\\\"18\\\" cy=\\\"28\\\" r=\\\"1.5\\\" fill=\\\"#2A2A2A\\\"/> <circle cx=\\\"24\\\" cy=\\\"28\\\" r=\\\"1.5\\\" fill=\\\"#2A2A2A\\\"/> <circle cx=\\\"30\\\" cy=\\\"28\\\" r=\\\"1.5\\\" fill=\\\"#2A2A2A\\\"/> </svg>\",\n \"calendar-check\": \"<svg viewBox=\\\"0 0 48 48\\\" xmlns=\\\"http://www.w3.org/2000/svg\\\" fill=\\\"none\\\" stroke=\\\"#2A2A2A\\\" stroke-width=\\\"3.5\\\" stroke-linecap=\\\"round\\\" stroke-linejoin=\\\"round\\\"> <rect x=\\\"8\\\" y=\\\"10\\\" width=\\\"32\\\" height=\\\"30\\\" rx=\\\"4\\\" fill=\\\"#FAEDCD\\\"/> <path d=\\\"M8 17 L40 17\\\" stroke=\\\"#264653\\\" stroke-width=\\\"2.5\\\" fill=\\\"none\\\"/> <path d=\\\"M15 7 L15 12 M33 7 L33 12\\\" stroke=\\\"#2A2A2A\\\" stroke-width=\\\"3\\\" fill=\\\"none\\\"/> <path d=\\\"M15 26 L20 31 L31 22\\\" stroke=\\\"#2A9D8F\\\" stroke-width=\\\"2.5\\\" fill=\\\"none\\\"/> </svg>\",\n \"clock\": \"<svg viewBox=\\\"0 0 48 48\\\" xmlns=\\\"http://www.w3.org/2000/svg\\\" fill=\\\"none\\\" stroke=\\\"#2A2A2A\\\" stroke-width=\\\"3.5\\\" stroke-linecap=\\\"round\\\" stroke-linejoin=\\\"round\\\"> <circle cx=\\\"24\\\" cy=\\\"24\\\" r=\\\"18\\\" fill=\\\"#2A9D8F\\\"/> <path d=\\\"M24 24 L24 13\\\" stroke=\\\"#FFFFFF\\\" stroke-width=\\\"3\\\"/> <path d=\\\"M24 24 L33 28\\\" stroke=\\\"#FFFFFF\\\" stroke-width=\\\"3\\\"/> <circle cx=\\\"24\\\" cy=\\\"24\\\" r=\\\"2\\\" fill=\\\"#2A2A2A\\\"/> </svg>\",\n \"hourglass\": \"<svg viewBox=\\\"0 0 48 48\\\" xmlns=\\\"http://www.w3.org/2000/svg\\\" fill=\\\"none\\\" stroke=\\\"#2A2A2A\\\" stroke-width=\\\"3.5\\\" stroke-linecap=\\\"round\\\" stroke-linejoin=\\\"round\\\"> <path d=\\\"M12 8 L36 8 L25 24 L36 40 L12 40 L23 24 Z\\\" fill=\\\"#FAEDCD\\\"/> <path d=\\\"M16.5 12 L31.5 12 L25 22 Z\\\" fill=\\\"#E9C46A\\\" stroke=\\\"none\\\"/> <path d=\\\"M17 36 L31 36 L25 28 Z\\\" fill=\\\"#E9C46A\\\" stroke=\\\"none\\\"/> <path d=\\\"M11 8 L37 8\\\" stroke=\\\"#2A2A2A\\\" stroke-width=\\\"3.5\\\" fill=\\\"none\\\"/> <path d=\\\"M11 40 L37 40\\\" stroke=\\\"#2A2A2A\\\" stroke-width=\\\"3.5\\\" fill=\\\"none\\\"/> </svg>\",\n \"timer\": \"<svg viewBox=\\\"0 0 48 48\\\" xmlns=\\\"http://www.w3.org/2000/svg\\\" fill=\\\"none\\\" stroke=\\\"#2A2A2A\\\" stroke-width=\\\"3.5\\\" stroke-linecap=\\\"round\\\" stroke-linejoin=\\\"round\\\"> <circle cx=\\\"24\\\" cy=\\\"26\\\" r=\\\"14\\\" fill=\\\"#E9C46A\\\"/> <rect x=\\\"19\\\" y=\\\"6\\\" width=\\\"10\\\" height=\\\"6\\\" rx=\\\"2\\\" fill=\\\"#E76F51\\\"/> <path d=\\\"M24 26 L24 18\\\" stroke=\\\"#FFFFFF\\\" stroke-width=\\\"3\\\" fill=\\\"none\\\"/> <path d=\\\"M24 26 L30 30\\\" stroke=\\\"#FFFFFF\\\" stroke-width=\\\"3\\\" fill=\\\"none\\\"/> <path d=\\\"M17 26 L19 26 M29 26 L31 26\\\" stroke=\\\"#8B5E3C\\\" stroke-width=\\\"2\\\" fill=\\\"none\\\"/> </svg>\",\n \"phone\": \"<svg viewBox=\\\"0 0 48 48\\\" xmlns=\\\"http://www.w3.org/2000/svg\\\" fill=\\\"none\\\" stroke=\\\"#2A2A2A\\\" stroke-width=\\\"3.5\\\" stroke-linecap=\\\"round\\\" stroke-linejoin=\\\"round\\\"> <path d=\\\"M10 8 L18 8 L22 18 L16 22 C 18 28 20 30 26 32 L30 26 L40 30 L40 38 C 40 40 38 42 36 42 C 22 42 6 26 6 12 C 6 10 8 8 10 8 Z\\\" fill=\\\"#588157\\\"/> </svg>\",\n \"mail\": \"<svg viewBox=\\\"0 0 48 48\\\" xmlns=\\\"http://www.w3.org/2000/svg\\\" fill=\\\"none\\\" stroke=\\\"#2A2A2A\\\" stroke-width=\\\"3.5\\\" stroke-linecap=\\\"round\\\" stroke-linejoin=\\\"round\\\"> <rect x=\\\"6\\\" y=\\\"12\\\" width=\\\"36\\\" height=\\\"24\\\" rx=\\\"3\\\" fill=\\\"#F4A6A4\\\"/> <path d=\\\"M6 14 L24 28 L42 14\\\" stroke=\\\"#2A2A2A\\\"/> <circle cx=\\\"20\\\" cy=\\\"22\\\" r=\\\"1.5\\\" fill=\\\"#2A2A2A\\\"/> <circle cx=\\\"28\\\" cy=\\\"22\\\" r=\\\"1.5\\\" fill=\\\"#2A2A2A\\\"/> </svg>\",\n \"chat\": \"<svg viewBox=\\\"0 0 48 48\\\" xmlns=\\\"http://www.w3.org/2000/svg\\\" fill=\\\"none\\\" stroke=\\\"#2A2A2A\\\" stroke-width=\\\"3.5\\\" stroke-linecap=\\\"round\\\" stroke-linejoin=\\\"round\\\"> <path d=\\\"M8 10 L40 10 L40 32 L26 32 L20 40 L20 32 L8 32 Z\\\" fill=\\\"#E9C46A\\\"/> <circle cx=\\\"16\\\" cy=\\\"21\\\" r=\\\"1.8\\\" fill=\\\"#2A2A2A\\\"/> <circle cx=\\\"24\\\" cy=\\\"21\\\" r=\\\"1.8\\\" fill=\\\"#2A2A2A\\\"/> <circle cx=\\\"32\\\" cy=\\\"21\\\" r=\\\"1.8\\\" fill=\\\"#2A2A2A\\\"/> </svg>\",\n \"messages\": \"<svg viewBox=\\\"0 0 48 48\\\" xmlns=\\\"http://www.w3.org/2000/svg\\\" fill=\\\"none\\\" stroke=\\\"#2A2A2A\\\" stroke-width=\\\"3.5\\\" stroke-linecap=\\\"round\\\" stroke-linejoin=\\\"round\\\"> <path d=\\\"M6 14 L30 14 L30 30 L20 30 L16 36 L16 30 L6 30 Z\\\" fill=\\\"#E76F51\\\"/> <path d=\\\"M18 8 L42 8 L42 26 L34 26 L30 32 L30 26 L18 26 Z\\\" fill=\\\"#FAEDCD\\\"/> <circle cx=\\\"25\\\" cy=\\\"17\\\" r=\\\"1.8\\\" fill=\\\"#2A2A2A\\\" stroke=\\\"none\\\"/> <circle cx=\\\"32\\\" cy=\\\"17\\\" r=\\\"1.8\\\" fill=\\\"#2A2A2A\\\" stroke=\\\"none\\\"/> <circle cx=\\\"39\\\" cy=\\\"17\\\" r=\\\"1.8\\\" fill=\\\"#2A2A2A\\\" stroke=\\\"none\\\"/> </svg>\",\n \"megaphone\": \"<svg viewBox=\\\"0 0 48 48\\\" xmlns=\\\"http://www.w3.org/2000/svg\\\" fill=\\\"none\\\" stroke=\\\"#2A2A2A\\\" stroke-width=\\\"3.5\\\" stroke-linecap=\\\"round\\\" stroke-linejoin=\\\"round\\\"> <path d=\\\"M7 20 L24 11 L24 37 L7 28 Z\\\" fill=\\\"#E76F51\\\"/> <rect x=\\\"24\\\" y=\\\"9\\\" width=\\\"8\\\" height=\\\"30\\\" rx=\\\"3\\\" fill=\\\"#F4A6A4\\\"/> <path d=\\\"M12 29 L15 41 L21 41 L18 31 Z\\\" fill=\\\"#E9C46A\\\"/> <path d=\\\"M36 16 L40 20\\\" stroke=\\\"#2A9D8F\\\" stroke-width=\\\"3.5\\\" fill=\\\"none\\\"/> <path d=\\\"M36 28 L40 24\\\" stroke=\\\"#2A9D8F\\\" stroke-width=\\\"3.5\\\" fill=\\\"none\\\"/> </svg>\",\n \"bell-ring\": \"<svg viewBox=\\\"0 0 48 48\\\" xmlns=\\\"http://www.w3.org/2000/svg\\\" fill=\\\"none\\\" stroke=\\\"#2A2A2A\\\" stroke-width=\\\"3.5\\\" stroke-linecap=\\\"round\\\" stroke-linejoin=\\\"round\\\"> <path d=\\\"M12 33 C 12 14 36 14 36 33 Z\\\" fill=\\\"#E9C46A\\\"/> <path d=\\\"M10 33 L38 33\\\" stroke=\\\"#2A2A2A\\\" stroke-width=\\\"3\\\"/> <path d=\\\"M20 37 C 20 41 28 41 28 37\\\" fill=\\\"#E76F51\\\"/> <path d=\\\"M6 15 L10 19\\\" stroke=\\\"#E76F51\\\" stroke-width=\\\"3.5\\\" fill=\\\"none\\\"/> <path d=\\\"M42 15 L38 19\\\" stroke=\\\"#E76F51\\\" stroke-width=\\\"3.5\\\" fill=\\\"none\\\"/> </svg>\",\n \"user\": \"<svg viewBox=\\\"0 0 48 48\\\" xmlns=\\\"http://www.w3.org/2000/svg\\\" fill=\\\"none\\\" stroke=\\\"#2A2A2A\\\" stroke-width=\\\"3.5\\\" stroke-linecap=\\\"round\\\" stroke-linejoin=\\\"round\\\"> <circle cx=\\\"24\\\" cy=\\\"16\\\" r=\\\"8.5\\\" fill=\\\"#E76F51\\\"/> <path d=\\\"M7 43 C 7 33 14 29 24 29 C 34 29 41 33 41 43\\\" fill=\\\"#2A9D8F\\\"/> </svg>\",\n \"users\": \"<svg viewBox=\\\"0 0 48 48\\\" xmlns=\\\"http://www.w3.org/2000/svg\\\" fill=\\\"none\\\" stroke=\\\"#2A2A2A\\\" stroke-width=\\\"3.5\\\" stroke-linecap=\\\"round\\\" stroke-linejoin=\\\"round\\\"> <circle cx=\\\"15\\\" cy=\\\"14\\\" r=\\\"6\\\" fill=\\\"#264653\\\"/> <path d=\\\"M5 34 C 5 26 9 23 15 23 C 19 23 22 24 24 26 L 24 40 L 8 40 Z\\\" fill=\\\"#264653\\\"/> <circle cx=\\\"29\\\" cy=\\\"18\\\" r=\\\"7.5\\\" fill=\\\"#E76F51\\\"/> <path d=\\\"M14 42 C 14 33 21 30 29 30 C 37 30 43 33 43 42 Z\\\" fill=\\\"#2A9D8F\\\"/> </svg>\",\n \"briefcase\": \"<svg viewBox=\\\"0 0 48 48\\\" xmlns=\\\"http://www.w3.org/2000/svg\\\" fill=\\\"none\\\" stroke=\\\"#2A2A2A\\\" stroke-width=\\\"3.5\\\" stroke-linecap=\\\"round\\\" stroke-linejoin=\\\"round\\\"> <rect x=\\\"6\\\" y=\\\"16\\\" width=\\\"36\\\" height=\\\"24\\\" rx=\\\"4\\\" fill=\\\"#264653\\\"/> <path d=\\\"M18 16 L18 12 A 3 3 0 0 1 21 9 L27 9 A 3 3 0 0 1 30 12 L30 16\\\" fill=\\\"none\\\" stroke=\\\"#2A2A2A\\\" stroke-width=\\\"3.5\\\"/> <rect x=\\\"19\\\" y=\\\"24\\\" width=\\\"10\\\" height=\\\"7\\\" rx=\\\"2\\\" fill=\\\"#E9C46A\\\" stroke=\\\"none\\\"/> </svg>\",\n \"id-card\": \"<svg viewBox=\\\"0 0 48 48\\\" xmlns=\\\"http://www.w3.org/2000/svg\\\" fill=\\\"none\\\" stroke=\\\"#2A2A2A\\\" stroke-width=\\\"3.5\\\" stroke-linecap=\\\"round\\\" stroke-linejoin=\\\"round\\\"> <rect x=\\\"8\\\" y=\\\"11\\\" width=\\\"32\\\" height=\\\"26\\\" rx=\\\"4\\\" fill=\\\"#FAEDCD\\\"/> <circle cx=\\\"17\\\" cy=\\\"20\\\" r=\\\"4\\\" fill=\\\"#264653\\\"/> <path d=\\\"M11 29 C13 26 16 25 17 25 C19 25 22 26 23 29\\\" fill=\\\"#264653\\\" stroke=\\\"#264653\\\" stroke-width=\\\"1\\\"/> <path d=\\\"M28 18 L36 18 M28 23 L36 23 M28 28 L33 28\\\" stroke=\\\"#2A2A2A\\\" stroke-width=\\\"2\\\" fill=\\\"none\\\"/> <path d=\\\"M8 37 L40 37\\\" stroke=\\\"#2A9D8F\\\" stroke-width=\\\"3\\\" fill=\\\"none\\\"/> </svg>\",\n \"office-chair\": \"<svg viewBox=\\\"0 0 48 48\\\" xmlns=\\\"http://www.w3.org/2000/svg\\\" fill=\\\"none\\\" stroke=\\\"#2A2A2A\\\" stroke-width=\\\"3.5\\\" stroke-linecap=\\\"round\\\" stroke-linejoin=\\\"round\\\"> <rect x=\\\"13\\\" y=\\\"7\\\" width=\\\"22\\\" height=\\\"17\\\" rx=\\\"4\\\" fill=\\\"#264653\\\"/> <rect x=\\\"9\\\" y=\\\"24\\\" width=\\\"30\\\" height=\\\"6\\\" rx=\\\"3\\\" fill=\\\"#E76F51\\\"/> <path d=\\\"M24 30 L24 37 M15 37 L33 37\\\" stroke=\\\"#2A2A2A\\\" stroke-width=\\\"3\\\" fill=\\\"none\\\"/> <circle cx=\\\"12\\\" cy=\\\"39\\\" r=\\\"2.5\\\" fill=\\\"#2A2A2A\\\"/> <circle cx=\\\"36\\\" cy=\\\"39\\\" r=\\\"2.5\\\" fill=\\\"#2A2A2A\\\"/> </svg>\",\n \"truck\": \"<svg viewBox=\\\"0 0 48 48\\\" xmlns=\\\"http://www.w3.org/2000/svg\\\" fill=\\\"none\\\" stroke=\\\"#2A2A2A\\\" stroke-width=\\\"3.5\\\" stroke-linecap=\\\"round\\\" stroke-linejoin=\\\"round\\\"> <path d=\\\"M6 13 L28 13 L28 32 L6 32 Z\\\" fill=\\\"#E76F51\\\"/><path d=\\\"M28 19 L35 19 L41 27 L41 32 L28 32 Z\\\" fill=\\\"#FAEDCD\\\"/><circle cx=\\\"14\\\" cy=\\\"36\\\" r=\\\"4.5\\\" fill=\\\"#2A2A2A\\\"/><circle cx=\\\"34\\\" cy=\\\"36\\\" r=\\\"4.5\\\" fill=\\\"#2A2A2A\\\"/><circle cx=\\\"14\\\" cy=\\\"36\\\" r=\\\"1.5\\\" fill=\\\"#FAEDCD\\\" stroke=\\\"none\\\"/><circle cx=\\\"34\\\" cy=\\\"36\\\" r=\\\"1.5\\\" fill=\\\"#FAEDCD\\\" stroke=\\\"none\\\"/> </svg>\",\n \"van\": \"<svg viewBox=\\\"0 0 48 48\\\" xmlns=\\\"http://www.w3.org/2000/svg\\\" fill=\\\"none\\\" stroke=\\\"#2A2A2A\\\" stroke-width=\\\"3.5\\\" stroke-linecap=\\\"round\\\" stroke-linejoin=\\\"round\\\"> <path d=\\\"M6 18 L24 18 L34 26 L41 26 L41 34 L6 34 Z\\\" fill=\\\"#FAEDCD\\\"/> <path d=\\\"M24 18 L24 26 L34 26\\\" stroke=\\\"#264653\\\" stroke-width=\\\"2\\\" fill=\\\"none\\\"/> <circle cx=\\\"14\\\" cy=\\\"36\\\" r=\\\"4\\\" fill=\\\"#264653\\\"/> <circle cx=\\\"34\\\" cy=\\\"36\\\" r=\\\"4\\\" fill=\\\"#264653\\\"/> </svg>\",\n \"forklift\": \"<svg viewBox=\\\"0 0 48 48\\\" xmlns=\\\"http://www.w3.org/2000/svg\\\" fill=\\\"none\\\" stroke=\\\"#2A2A2A\\\" stroke-width=\\\"3.5\\\" stroke-linecap=\\\"round\\\" stroke-linejoin=\\\"round\\\"> <rect x=\\\"10\\\" y=\\\"22\\\" width=\\\"14\\\" height=\\\"12\\\" rx=\\\"2\\\" fill=\\\"#E9C46A\\\"/> <circle cx=\\\"14\\\" cy=\\\"35\\\" r=\\\"4\\\" fill=\\\"#264653\\\"/> <circle cx=\\\"24\\\" cy=\\\"35\\\" r=\\\"4\\\" fill=\\\"#264653\\\"/> <path d=\\\"M32 10 L32 36 M32 30 L40 30 M32 36 L40 36\\\" stroke=\\\"#2A2A2A\\\" stroke-width=\\\"3.5\\\" fill=\\\"none\\\"/> <path d=\\\"M24 24 L32 24\\\" stroke=\\\"#2A2A2A\\\" stroke-width=\\\"2.5\\\" fill=\\\"none\\\"/> </svg>\",\n \"warehouse\": \"<svg viewBox=\\\"0 0 48 48\\\" xmlns=\\\"http://www.w3.org/2000/svg\\\" fill=\\\"none\\\" stroke=\\\"#2A2A2A\\\" stroke-width=\\\"3.5\\\" stroke-linecap=\\\"round\\\" stroke-linejoin=\\\"round\\\"> <path d=\\\"M6 20 L24 8 L42 20\\\" fill=\\\"#E76F51\\\"/> <rect x=\\\"6\\\" y=\\\"20\\\" width=\\\"36\\\" height=\\\"22\\\" fill=\\\"#E9C46A\\\"/> <rect x=\\\"18\\\" y=\\\"30\\\" width=\\\"12\\\" height=\\\"12\\\" fill=\\\"#264653\\\" stroke=\\\"none\\\"/> <rect x=\\\"10\\\" y=\\\"24\\\" width=\\\"5\\\" height=\\\"5\\\" fill=\\\"#FAEDCD\\\" stroke=\\\"none\\\"/> <rect x=\\\"33\\\" y=\\\"24\\\" width=\\\"5\\\" height=\\\"5\\\" fill=\\\"#FAEDCD\\\" stroke=\\\"none\\\"/> </svg>\",\n \"factory\": \"<svg viewBox=\\\"0 0 48 48\\\" xmlns=\\\"http://www.w3.org/2000/svg\\\" fill=\\\"none\\\" stroke=\\\"#2A2A2A\\\" stroke-width=\\\"3.5\\\" stroke-linecap=\\\"round\\\" stroke-linejoin=\\\"round\\\"> <path d=\\\"M6 40 L6 24 L16 18 L16 24 L26 18 L26 24 L36 18 L36 40 Z\\\" fill=\\\"#264653\\\"/> <rect x=\\\"32\\\" y=\\\"8\\\" width=\\\"8\\\" height=\\\"12\\\" fill=\\\"#E76F51\\\"/> <rect x=\\\"10\\\" y=\\\"28\\\" width=\\\"6\\\" height=\\\"5\\\" fill=\\\"#FAEDCD\\\" stroke=\\\"none\\\"/> <rect x=\\\"19\\\" y=\\\"28\\\" width=\\\"6\\\" height=\\\"5\\\" fill=\\\"#FAEDCD\\\" stroke=\\\"none\\\"/> <rect x=\\\"28\\\" y=\\\"28\\\" width=\\\"6\\\" height=\\\"5\\\" fill=\\\"#FAEDCD\\\" stroke=\\\"none\\\"/> <rect x=\\\"10\\\" y=\\\"35\\\" width=\\\"6\\\" height=\\\"5\\\" fill=\\\"#FAEDCD\\\" stroke=\\\"none\\\"/> <rect x=\\\"28\\\" y=\\\"35\\\" width=\\\"6\\\" height=\\\"5\\\" fill=\\\"#FAEDCD\\\" stroke=\\\"none\\\"/> </svg>\",\n \"store\": \"<svg viewBox=\\\"0 0 48 48\\\" xmlns=\\\"http://www.w3.org/2000/svg\\\" fill=\\\"none\\\" stroke=\\\"#2A2A2A\\\" stroke-width=\\\"3.5\\\" stroke-linecap=\\\"round\\\" stroke-linejoin=\\\"round\\\"> <path d=\\\"M6 12 L42 12 L38 20 L10 20 Z\\\" fill=\\\"#E76F51\\\"/> <rect x=\\\"8\\\" y=\\\"20\\\" width=\\\"32\\\" height=\\\"22\\\" rx=\\\"2\\\" fill=\\\"#FAEDCD\\\"/> <path d=\\\"M6 12 Q 9 17 12 12 Q 15 17 18 12 Q 21 17 24 12 Q 27 17 30 12 Q 33 17 36 12 Q 39 17 42 12\\\" stroke=\\\"#2A2A2A\\\" stroke-width=\\\"2.5\\\" fill=\\\"none\\\"/> <rect x=\\\"20\\\" y=\\\"28\\\" width=\\\"9\\\" height=\\\"14\\\" fill=\\\"#2A9D8F\\\" stroke=\\\"none\\\"/> <rect x=\\\"12\\\" y=\\\"25\\\" width=\\\"5\\\" height=\\\"6\\\" fill=\\\"#E9C46A\\\" stroke=\\\"none\\\"/> </svg>\",\n \"shopping-cart\": \"<svg viewBox=\\\"0 0 48 48\\\" xmlns=\\\"http://www.w3.org/2000/svg\\\" fill=\\\"none\\\" stroke=\\\"#2A2A2A\\\" stroke-width=\\\"3.5\\\" stroke-linecap=\\\"round\\\" stroke-linejoin=\\\"round\\\"> <rect x=\\\"20\\\" y=\\\"10\\\" width=\\\"7\\\" height=\\\"10\\\" rx=\\\"1.5\\\" fill=\\\"#E9C46A\\\"/> <rect x=\\\"29\\\" y=\\\"12\\\" width=\\\"7\\\" height=\\\"8\\\" rx=\\\"1.5\\\" fill=\\\"#FAEDCD\\\"/> <path d=\\\"M15 19 L41 19 L37 32 L16 32 Z\\\" fill=\\\"#E76F51\\\"/> <path d=\\\"M7 11 L12 11 L16 32\\\" stroke=\\\"#2A2A2A\\\" stroke-width=\\\"3\\\" fill=\\\"none\\\"/> <path d=\\\"M12 11 L15 11\\\" stroke=\\\"#2A2A2A\\\" stroke-width=\\\"3\\\" fill=\\\"none\\\"/> <circle cx=\\\"19\\\" cy=\\\"38\\\" r=\\\"3.5\\\" fill=\\\"#2A2A2A\\\" stroke=\\\"none\\\"/> <circle cx=\\\"34\\\" cy=\\\"38\\\" r=\\\"3.5\\\" fill=\\\"#2A2A2A\\\" stroke=\\\"none\\\"/> </svg>\",\n \"cargo-ship\": \"<svg viewBox=\\\"0 0 48 48\\\" xmlns=\\\"http://www.w3.org/2000/svg\\\" fill=\\\"none\\\" stroke=\\\"#2A2A2A\\\" stroke-width=\\\"3.5\\\" stroke-linecap=\\\"round\\\" stroke-linejoin=\\\"round\\\"> <path d=\\\"M6 30 L42 30 L37 40 L11 40 Z\\\" fill=\\\"#264653\\\"/> <rect x=\\\"11\\\" y=\\\"20\\\" width=\\\"8\\\" height=\\\"8\\\" fill=\\\"#E76F51\\\"/> <rect x=\\\"21\\\" y=\\\"20\\\" width=\\\"8\\\" height=\\\"8\\\" fill=\\\"#2A9D8F\\\"/> <rect x=\\\"31\\\" y=\\\"22\\\" width=\\\"7\\\" height=\\\"6\\\" fill=\\\"#E9C46A\\\"/> <path d=\\\"M9 30 L39 30\\\" stroke=\\\"#FAEDCD\\\" stroke-width=\\\"2.5\\\" fill=\\\"none\\\"/> </svg>\",\n \"route\": \"<svg viewBox=\\\"0 0 48 48\\\" xmlns=\\\"http://www.w3.org/2000/svg\\\" fill=\\\"none\\\" stroke=\\\"#2A2A2A\\\" stroke-width=\\\"3.5\\\" stroke-linecap=\\\"round\\\" stroke-linejoin=\\\"round\\\"> <path d=\\\"M10 36 C 10 24 24 28 24 22 C 24 16 38 20 38 12\\\" stroke=\\\"#2A9D8F\\\" stroke-width=\\\"4\\\" fill=\\\"none\\\"/> <circle cx=\\\"10\\\" cy=\\\"36\\\" r=\\\"3.5\\\" fill=\\\"#E76F51\\\"/> <circle cx=\\\"38\\\" cy=\\\"12\\\" r=\\\"3.5\\\" fill=\\\"#E9C46A\\\"/> </svg>\",\n \"map-pin\": \"<svg viewBox=\\\"0 0 48 48\\\" xmlns=\\\"http://www.w3.org/2000/svg\\\" fill=\\\"none\\\" stroke=\\\"#2A2A2A\\\" stroke-width=\\\"3.5\\\" stroke-linecap=\\\"round\\\" stroke-linejoin=\\\"round\\\"> <path d=\\\"M8 12 L 18 8 L 30 12 L 40 8 L 40 34 L 30 38 L 18 34 L 8 38 Z\\\" fill=\\\"#FAEDCD\\\"/> <path d=\\\"M18 8 L 18 34\\\" stroke=\\\"#2A2A2A\\\" stroke-width=\\\"2.5\\\" fill=\\\"none\\\"/> <path d=\\\"M30 12 L 30 38\\\" stroke=\\\"#2A2A2A\\\" stroke-width=\\\"2.5\\\" fill=\\\"none\\\"/> <path d=\\\"M12 30 C 15 23 21 28 24 21 C 26 17 29 18 31 16\\\" stroke=\\\"#E76F51\\\" stroke-width=\\\"2.5\\\" fill=\\\"none\\\"/> <g transform=\\\"translate(11 2) scale(0.7)\\\"><path d=\\\"M30 5 C 25.8 5 22.8 8 22.8 12 C 22.8 16.4 30 23 30 23 C 30 23 37.2 16.4 37.2 12 C 37.2 8 34.2 5 30 5 Z\\\" fill=\\\"#E76F51\\\"/><circle cx=\\\"30\\\" cy=\\\"11.6\\\" r=\\\"2.3\\\" fill=\\\"#FFFFFF\\\" stroke=\\\"none\\\"/></g> </svg>\",\n \"globe\": \"<svg viewBox=\\\"0 0 48 48\\\" xmlns=\\\"http://www.w3.org/2000/svg\\\" fill=\\\"none\\\" stroke=\\\"#2A2A2A\\\" stroke-width=\\\"3.5\\\" stroke-linecap=\\\"round\\\" stroke-linejoin=\\\"round\\\"> <circle cx=\\\"24\\\" cy=\\\"21\\\" r=\\\"14\\\" fill=\\\"#2A9D8F\\\"/> <ellipse cx=\\\"24\\\" cy=\\\"21\\\" rx=\\\"6\\\" ry=\\\"14\\\" stroke=\\\"#2A2A2A\\\" stroke-width=\\\"2\\\" fill=\\\"none\\\"/> <path d=\\\"M10 21 L 38 21\\\" stroke=\\\"#2A2A2A\\\" stroke-width=\\\"2\\\"/> <path d=\\\"M17 13 C 19 10 24 10 25 13 C 23 15 19 16 17 13 Z\\\" fill=\\\"#588157\\\" stroke=\\\"none\\\"/> <path d=\\\"M26 27 C 28 25 32 26 31 29 C 29 31 25 30 26 27 Z\\\" fill=\\\"#588157\\\" stroke=\\\"none\\\"/> <path d=\\\"M24 35 L 24 39\\\" stroke=\\\"#2A2A2A\\\" stroke-width=\\\"3\\\"/> <path d=\\\"M15 42 L 33 42\\\" stroke=\\\"#2A2A2A\\\" stroke-width=\\\"3.5\\\"/> </svg>\",\n \"barcode\": \"<svg viewBox=\\\"0 0 48 48\\\" xmlns=\\\"http://www.w3.org/2000/svg\\\" fill=\\\"none\\\" stroke=\\\"#2A2A2A\\\" stroke-width=\\\"3.5\\\" stroke-linecap=\\\"round\\\" stroke-linejoin=\\\"round\\\"> <rect x=\\\"6\\\" y=\\\"12\\\" width=\\\"3\\\" height=\\\"24\\\" fill=\\\"#264653\\\" stroke=\\\"none\\\"/> <rect x=\\\"11\\\" y=\\\"12\\\" width=\\\"2\\\" height=\\\"24\\\" fill=\\\"#264653\\\" stroke=\\\"none\\\"/> <rect x=\\\"15\\\" y=\\\"12\\\" width=\\\"4\\\" height=\\\"24\\\" fill=\\\"#264653\\\" stroke=\\\"none\\\"/> <rect x=\\\"21\\\" y=\\\"12\\\" width=\\\"2\\\" height=\\\"24\\\" fill=\\\"#264653\\\" stroke=\\\"none\\\"/> <rect x=\\\"25\\\" y=\\\"12\\\" width=\\\"3\\\" height=\\\"24\\\" fill=\\\"#264653\\\" stroke=\\\"none\\\"/> <rect x=\\\"30\\\" y=\\\"12\\\" width=\\\"2\\\" height=\\\"24\\\" fill=\\\"#264653\\\" stroke=\\\"none\\\"/> <rect x=\\\"34\\\" y=\\\"12\\\" width=\\\"4\\\" height=\\\"24\\\" fill=\\\"#264653\\\" stroke=\\\"none\\\"/> <rect x=\\\"40\\\" y=\\\"12\\\" width=\\\"2\\\" height=\\\"24\\\" fill=\\\"#264653\\\" stroke=\\\"none\\\"/> </svg>\",\n \"archive\": \"<svg viewBox=\\\"0 0 48 48\\\" xmlns=\\\"http://www.w3.org/2000/svg\\\" fill=\\\"none\\\" stroke=\\\"#2A2A2A\\\" stroke-width=\\\"3.5\\\" stroke-linecap=\\\"round\\\" stroke-linejoin=\\\"round\\\"> <rect x=\\\"7\\\" y=\\\"12\\\" width=\\\"34\\\" height=\\\"10\\\" rx=\\\"3\\\" fill=\\\"#E9C46A\\\"/> <path d=\\\"M9 22 L9 40 L39 40 L39 22\\\" fill=\\\"#2A9D8F\\\"/> <rect x=\\\"19\\\" y=\\\"28\\\" width=\\\"10\\\" height=\\\"6\\\" rx=\\\"2\\\" fill=\\\"#FAEDCD\\\" stroke=\\\"none\\\"/> </svg>\",\n \"toolbox\": \"<svg viewBox=\\\"0 0 48 48\\\" xmlns=\\\"http://www.w3.org/2000/svg\\\" fill=\\\"none\\\" stroke=\\\"#2A2A2A\\\" stroke-width=\\\"3.5\\\" stroke-linecap=\\\"round\\\" stroke-linejoin=\\\"round\\\"> <rect x=\\\"6\\\" y=\\\"20\\\" width=\\\"36\\\" height=\\\"20\\\" rx=\\\"3\\\" fill=\\\"#E76F51\\\"/> <rect x=\\\"6\\\" y=\\\"16\\\" width=\\\"36\\\" height=\\\"6\\\" rx=\\\"2\\\" fill=\\\"#264653\\\"/> <path d=\\\"M17 16 C 17 10 31 10 31 16\\\" stroke=\\\"#2A2A2A\\\" stroke-width=\\\"3\\\" fill=\\\"none\\\"/> <rect x=\\\"21\\\" y=\\\"22\\\" width=\\\"6\\\" height=\\\"5\\\" rx=\\\"1\\\" fill=\\\"#E9C46A\\\" stroke=\\\"none\\\"/> </svg>\",\n \"alert-triangle\": \"<svg viewBox=\\\"0 0 48 48\\\" xmlns=\\\"http://www.w3.org/2000/svg\\\" fill=\\\"none\\\" stroke=\\\"#2A2A2A\\\" stroke-width=\\\"3.5\\\" stroke-linecap=\\\"round\\\" stroke-linejoin=\\\"round\\\"> <path d=\\\"M24 7 L43 40 L5 40 Z\\\" fill=\\\"#E9C46A\\\" stroke=\\\"#2A2A2A\\\" stroke-width=\\\"3.5\\\"/> <path d=\\\"M24 18 L24 30\\\" fill=\\\"none\\\" stroke=\\\"#2A2A2A\\\" stroke-width=\\\"4\\\"/> <circle cx=\\\"24\\\" cy=\\\"35\\\" r=\\\"2.2\\\" fill=\\\"#2A2A2A\\\"/> </svg>\",\n \"check-circle\": \"<svg viewBox=\\\"0 0 48 48\\\" xmlns=\\\"http://www.w3.org/2000/svg\\\" fill=\\\"none\\\" stroke=\\\"#2A2A2A\\\" stroke-width=\\\"3.5\\\" stroke-linecap=\\\"round\\\" stroke-linejoin=\\\"round\\\"> <circle cx=\\\"24\\\" cy=\\\"24\\\" r=\\\"17\\\" fill=\\\"none\\\" stroke=\\\"#2A2A2A\\\" stroke-width=\\\"3.5\\\"/> <path d=\\\"M15 24.5 L21 30.5 L32 18.5\\\" fill=\\\"none\\\" stroke=\\\"#588157\\\" stroke-width=\\\"4\\\"/> </svg>\",\n \"shield-check\": \"<svg viewBox=\\\"0 0 48 48\\\" xmlns=\\\"http://www.w3.org/2000/svg\\\" fill=\\\"none\\\" stroke=\\\"#2A2A2A\\\" stroke-width=\\\"3.5\\\" stroke-linecap=\\\"round\\\" stroke-linejoin=\\\"round\\\"> <path d=\\\"M24 6 L38 12 V24 C38 34 32 39 24 42 C16 39 10 34 10 24 V12 Z\\\" fill=\\\"#2A9D8F\\\"/> <path d=\\\"M18 24 L23 29 L31 20\\\" stroke=\\\"#FFFFFF\\\" stroke-width=\\\"3\\\" fill=\\\"none\\\"/> </svg>\",\n \"lock\": \"<svg viewBox=\\\"0 0 48 48\\\" xmlns=\\\"http://www.w3.org/2000/svg\\\" fill=\\\"none\\\" stroke=\\\"#2A2A2A\\\" stroke-width=\\\"3.5\\\" stroke-linecap=\\\"round\\\" stroke-linejoin=\\\"round\\\"> <path d=\\\"M16 21 L 16 15 C 16 7 32 7 32 15 L 32 21\\\" stroke=\\\"#2A2A2A\\\" stroke-width=\\\"4\\\" fill=\\\"none\\\"/> <rect x=\\\"10\\\" y=\\\"21\\\" width=\\\"28\\\" height=\\\"19\\\" rx=\\\"3\\\" fill=\\\"#E9C46A\\\"/> <circle cx=\\\"24\\\" cy=\\\"29\\\" r=\\\"3\\\" fill=\\\"#2A2A2A\\\"/> <path d=\\\"M24 29 L 21.5 35 L 26.5 35 Z\\\" fill=\\\"#2A2A2A\\\"/> </svg>\",\n \"courthouse\": \"<svg viewBox=\\\"0 0 48 48\\\" xmlns=\\\"http://www.w3.org/2000/svg\\\" fill=\\\"none\\\" stroke=\\\"#2A2A2A\\\" stroke-width=\\\"3.5\\\" stroke-linecap=\\\"round\\\" stroke-linejoin=\\\"round\\\"> <path d=\\\"M5 19 L24 8 L43 19 Z\\\" fill=\\\"#E76F51\\\"/> <rect x=\\\"7\\\" y=\\\"19\\\" width=\\\"34\\\" height=\\\"19\\\" fill=\\\"#FFFFFF\\\"/> <path d=\\\"M12 24 L12 36 M36 24 L36 36\\\" stroke=\\\"#264653\\\" stroke-width=\\\"3\\\" fill=\\\"none\\\"/> <path d=\\\"M19 38 L19 30 C19 26 29 26 29 30 L29 38\\\" fill=\\\"#264653\\\" stroke=\\\"none\\\"/> <path d=\\\"M7 38 L41 38\\\" stroke=\\\"#264653\\\" stroke-width=\\\"3\\\" fill=\\\"none\\\"/> <path d=\\\"M11 41 L37 41\\\" stroke=\\\"#264653\\\" stroke-width=\\\"2.5\\\" fill=\\\"none\\\"/> </svg>\",\n \"hammer\": \"<svg viewBox=\\\"0 0 48 48\\\" xmlns=\\\"http://www.w3.org/2000/svg\\\" fill=\\\"none\\\" stroke=\\\"#2A2A2A\\\" stroke-width=\\\"3.5\\\" stroke-linecap=\\\"round\\\" stroke-linejoin=\\\"round\\\"> <rect x=\\\"8\\\" y=\\\"8\\\" width=\\\"18\\\" height=\\\"10\\\" rx=\\\"2\\\" fill=\\\"#264653\\\"/> <path d=\\\"M22 18 L38 36 L34 40 L18 22 Z\\\" fill=\\\"#8B5E3C\\\"/> <path d=\\\"M10 12 L24 12\\\" stroke=\\\"#E9C46A\\\" stroke-width=\\\"2.5\\\" fill=\\\"none\\\"/> </svg>\",\n \"scale\": \"<svg viewBox=\\\"0 0 48 48\\\" xmlns=\\\"http://www.w3.org/2000/svg\\\" fill=\\\"none\\\" stroke=\\\"#2A2A2A\\\" stroke-width=\\\"3.5\\\" stroke-linecap=\\\"round\\\" stroke-linejoin=\\\"round\\\"> <rect x=\\\"8\\\" y=\\\"9\\\" width=\\\"32\\\" height=\\\"32\\\" rx=\\\"7\\\" fill=\\\"#FAEDCD\\\"/> <circle cx=\\\"24\\\" cy=\\\"21\\\" r=\\\"7\\\" fill=\\\"#2A9D8F\\\"/> <path d=\\\"M24 21 L28 17\\\" stroke=\\\"#FAEDCD\\\" stroke-width=\\\"2\\\" fill=\\\"none\\\"/> <path d=\\\"M14 33 H34\\\" stroke-width=\\\"2.5\\\" fill=\\\"none\\\"/> </svg>\",\n \"search\": \"<svg viewBox=\\\"0 0 48 48\\\" xmlns=\\\"http://www.w3.org/2000/svg\\\" fill=\\\"none\\\" stroke=\\\"#2A2A2A\\\" stroke-width=\\\"3.5\\\" stroke-linecap=\\\"round\\\" stroke-linejoin=\\\"round\\\"> <path d=\\\"M29 29 L39.5 39.5\\\" stroke=\\\"#264653\\\" stroke-width=\\\"5.5\\\"/> <circle cx=\\\"19\\\" cy=\\\"19\\\" r=\\\"13.5\\\" fill=\\\"#2A9D8F\\\"/> <circle cx=\\\"19\\\" cy=\\\"19\\\" r=\\\"8.5\\\" fill=\\\"#FAEDCD\\\" stroke=\\\"none\\\"/> <circle cx=\\\"19\\\" cy=\\\"19\\\" r=\\\"4.5\\\" fill=\\\"#2A9D8F\\\" stroke=\\\"none\\\"/> <circle cx=\\\"15.5\\\" cy=\\\"15.5\\\" r=\\\"2.3\\\" fill=\\\"#FFFFFF\\\" stroke=\\\"none\\\"/> </svg>\",\n \"flag\": \"<svg viewBox=\\\"0 0 48 48\\\" xmlns=\\\"http://www.w3.org/2000/svg\\\" fill=\\\"none\\\" stroke=\\\"#2A2A2A\\\" stroke-width=\\\"3.5\\\" stroke-linecap=\\\"round\\\" stroke-linejoin=\\\"round\\\"> <path d=\\\"M13.28 7.03 L 13.28 40.97\\\" stroke=\\\"#2A2A2A\\\" stroke-width=\\\"3.5\\\"/> <path d=\\\"M13.28 9.71 C 19.53 6.14 25.79 13.28 32.04 9.71 L 32.04 22.21 C 25.79 25.79 19.53 18.64 13.28 22.21 Z\\\" fill=\\\"#E76F51\\\"/> <circle cx=\\\"13.28\\\" cy=\\\"7.03\\\" r=\\\"2.23\\\" fill=\\\"#E9C46A\\\" stroke=\\\"none\\\"/> </svg>\",\n \"stop-sign\": \"<svg viewBox=\\\"0 0 48 48\\\" xmlns=\\\"http://www.w3.org/2000/svg\\\" fill=\\\"none\\\" stroke=\\\"#2A2A2A\\\" stroke-width=\\\"3.5\\\" stroke-linecap=\\\"round\\\" stroke-linejoin=\\\"round\\\"> <path d=\\\"M18 6 L30 6 L42 18 L42 30 L30 42 L18 42 L6 30 L6 18 Z\\\" fill=\\\"#E76F51\\\"/> <path d=\\\"M14 24 L34 24\\\" stroke=\\\"#FFFFFF\\\" stroke-width=\\\"3\\\" fill=\\\"none\\\"/> </svg>\",\n \"signpost\": \"<svg viewBox=\\\"0 0 48 48\\\" xmlns=\\\"http://www.w3.org/2000/svg\\\" fill=\\\"none\\\" stroke=\\\"#2A2A2A\\\" stroke-width=\\\"3.5\\\" stroke-linecap=\\\"round\\\" stroke-linejoin=\\\"round\\\"> <rect x=\\\"22\\\" y=\\\"14\\\" width=\\\"4\\\" height=\\\"28\\\" fill=\\\"#8B5E3C\\\"/> <path d=\\\"M10 14 L32 14 L36 18 L32 22 L10 22 Z\\\" fill=\\\"#E9C46A\\\"/> <path d=\\\"M38 26 L16 26 L12 30 L16 34 L38 34 Z\\\" fill=\\\"#2A9D8F\\\"/> </svg>\",\n \"database\": \"<svg viewBox=\\\"0 0 48 48\\\" xmlns=\\\"http://www.w3.org/2000/svg\\\" fill=\\\"none\\\" stroke=\\\"#2A2A2A\\\" stroke-width=\\\"3.5\\\" stroke-linecap=\\\"round\\\" stroke-linejoin=\\\"round\\\"> <path d=\\\"M11 13 L11 34 C 11 38 17 41 24 41 C 31 41 37 38 37 34 L37 13 Z\\\" fill=\\\"#2A9D8F\\\"/> <ellipse cx=\\\"24\\\" cy=\\\"13\\\" rx=\\\"13\\\" ry=\\\"5.5\\\" fill=\\\"#264653\\\"/> <path d=\\\"M11 24 C 11 28 17 31 24 31 C 31 31 37 28 37 24\\\" stroke=\\\"#2A2A2A\\\" stroke-width=\\\"2.5\\\" fill=\\\"none\\\"/> </svg>\",\n \"server\": \"<svg viewBox=\\\"0 0 48 48\\\" xmlns=\\\"http://www.w3.org/2000/svg\\\" fill=\\\"none\\\" stroke=\\\"#2A2A2A\\\" stroke-width=\\\"3.5\\\" stroke-linecap=\\\"round\\\" stroke-linejoin=\\\"round\\\"> <rect x=\\\"8\\\" y=\\\"9\\\" width=\\\"32\\\" height=\\\"12\\\" rx=\\\"3\\\" fill=\\\"#264653\\\"/> <rect x=\\\"8\\\" y=\\\"24\\\" width=\\\"32\\\" height=\\\"12\\\" rx=\\\"3\\\" fill=\\\"#2A9D8F\\\"/> <circle cx=\\\"14\\\" cy=\\\"15\\\" r=\\\"1.8\\\" fill=\\\"#E9C46A\\\" stroke=\\\"none\\\"/> <circle cx=\\\"14\\\" cy=\\\"30\\\" r=\\\"1.8\\\" fill=\\\"#E9C46A\\\" stroke=\\\"none\\\"/> <path d=\\\"M21 15 L36 15\\\" stroke=\\\"#FFFFFF\\\" stroke-width=\\\"2\\\" fill=\\\"none\\\"/> <path d=\\\"M21 30 L30 30\\\" stroke=\\\"#FFFFFF\\\" stroke-width=\\\"2\\\" fill=\\\"none\\\"/> </svg>\",\n \"cloud\": \"<svg viewBox=\\\"0 0 48 48\\\" xmlns=\\\"http://www.w3.org/2000/svg\\\" fill=\\\"none\\\" stroke=\\\"#2A2A2A\\\" stroke-width=\\\"3.5\\\" stroke-linecap=\\\"round\\\" stroke-linejoin=\\\"round\\\"> <path d=\\\"M14 30 C 8 30 6 22 12 20 C 12 14 20 12 24 16 C 28 10 38 14 36 22 C 42 22 42 30 36 30 Z\\\" fill=\\\"#FAEDCD\\\"/> <circle cx=\\\"20\\\" cy=\\\"24\\\" r=\\\"1.5\\\" fill=\\\"#2A2A2A\\\"/> <circle cx=\\\"28\\\" cy=\\\"24\\\" r=\\\"1.5\\\" fill=\\\"#2A2A2A\\\"/> </svg>\",\n \"settings\": \"<svg viewBox=\\\"0 0 48 48\\\" xmlns=\\\"http://www.w3.org/2000/svg\\\" fill=\\\"none\\\" stroke=\\\"#2A2A2A\\\" stroke-width=\\\"3.5\\\" stroke-linecap=\\\"round\\\" stroke-linejoin=\\\"round\\\"> <path d=\\\"M24 6 L27 11 L33 10 L34 16 L40 18 L37 23 L40 28 L34 30 L33 36 L27 35 L24 40 L21 35 L15 36 L14 30 L8 28 L11 23 L8 18 L14 16 L15 10 L21 11 Z\\\" fill=\\\"#264653\\\"/> <circle cx=\\\"24\\\" cy=\\\"23\\\" r=\\\"6\\\" fill=\\\"#E9C46A\\\"/> </svg>\",\n \"refresh\": \"<svg viewBox=\\\"0 0 48 48\\\" xmlns=\\\"http://www.w3.org/2000/svg\\\" fill=\\\"none\\\" stroke=\\\"#2A2A2A\\\" stroke-width=\\\"3.5\\\" stroke-linecap=\\\"round\\\" stroke-linejoin=\\\"round\\\"> <path d=\\\"M11 16.5 A 15 15 0 0 1 37 16.5\\\" fill=\\\"none\\\" stroke=\\\"#2A9D8F\\\" stroke-width=\\\"4.5\\\"/> <path d=\\\"M40.7 23 L33 18.8 L41 14.2 Z\\\" fill=\\\"#E76F51\\\" stroke-width=\\\"3\\\"/> <path d=\\\"M37 31.5 A 15 15 0 0 1 11 31.5\\\" fill=\\\"none\\\" stroke=\\\"#2A9D8F\\\" stroke-width=\\\"4.5\\\"/> <path d=\\\"M7.3 25 L15 29.2 L7 33.8 Z\\\" fill=\\\"#E76F51\\\" stroke-width=\\\"3\\\"/> </svg>\",\n \"laptop\": \"<svg viewBox=\\\"0 0 48 48\\\" xmlns=\\\"http://www.w3.org/2000/svg\\\" fill=\\\"none\\\" stroke=\\\"#2A2A2A\\\" stroke-width=\\\"3.5\\\" stroke-linecap=\\\"round\\\" stroke-linejoin=\\\"round\\\"> <rect x=\\\"8\\\" y=\\\"10\\\" width=\\\"32\\\" height=\\\"22\\\" rx=\\\"4\\\" fill=\\\"#264653\\\"/> <rect x=\\\"11\\\" y=\\\"13\\\" width=\\\"26\\\" height=\\\"16\\\" rx=\\\"2\\\" fill=\\\"#FAEDCD\\\" stroke=\\\"none\\\"/> <path d=\\\"M6 34 L42 34 L39 40 L9 40 Z\\\" fill=\\\"#E9C46A\\\"/> </svg>\",\n \"exchange\": \"<svg viewBox=\\\"0 0 48 48\\\" xmlns=\\\"http://www.w3.org/2000/svg\\\" fill=\\\"none\\\" stroke=\\\"#2A2A2A\\\" stroke-width=\\\"3.5\\\" stroke-linecap=\\\"round\\\" stroke-linejoin=\\\"round\\\"> <rect x=\\\"6\\\" y=\\\"8\\\" width=\\\"20\\\" height=\\\"12\\\" rx=\\\"2\\\" fill=\\\"#588157\\\"/> <circle cx=\\\"16\\\" cy=\\\"14\\\" r=\\\"3.5\\\" fill=\\\"#E9C46A\\\" stroke=\\\"none\\\"/> <rect x=\\\"22\\\" y=\\\"28\\\" width=\\\"20\\\" height=\\\"12\\\" rx=\\\"2\\\" fill=\\\"#E76F51\\\"/> <circle cx=\\\"32\\\" cy=\\\"34\\\" r=\\\"3.5\\\" fill=\\\"#E9C46A\\\" stroke=\\\"none\\\"/> <path d=\\\"M19 22 L29 26\\\" stroke=\\\"#264653\\\" stroke-width=\\\"3\\\" fill=\\\"none\\\"/> <path d=\\\"M19 22 L23 21 M19 22 L20 26\\\" stroke=\\\"#264653\\\" stroke-width=\\\"2.5\\\" fill=\\\"none\\\"/> <path d=\\\"M29 26 L25 27 M29 26 L28 22\\\" stroke=\\\"#264653\\\" stroke-width=\\\"2.5\\\" fill=\\\"none\\\"/> </svg>\"\n};\n","// Loads a live board, applies edits at once and sends them through the transport, and picks up the team's edits by\n// polling while the board is on screen and the tab is visible. The server's board always wins once it answers.\n// It also carries who is working on the board right now (the agent or a teammate) and the board's history.\nimport { BOARD } from \"./config\";\nimport { BOARD_COPY } from \"./copy\";\nimport { useCallback, useEffect, useRef, useState } from \"react\";\nimport { applyOps, type Board, type BoardActivity, type BoardOp } from \"../core/boards\";\nimport type { BoardSnapshot, BoardTransport, HistoryEntry, PendingBatch } from \"./transport\";\n\nexport type { HistoryEntry, PendingBatch } from \"./transport\";\n\nexport type BoardState = {\n board: Board | null; error: string | null; saving: boolean; apply: (ops: BoardOp[]) => void; reload: () => void;\n /** Poll every second for a while: the agent is about to draw (the user asked it to), so its strokes show as they land. */\n boost: (ms?: number) => void;\n /** Who is working on the board right now, as last reported by the server. */\n activity: BoardActivity | null;\n /** The board object last set from the server by polling (not from this browser's own edit). */\n remote: React.RefObject<Board | null>;\n history: () => Promise<HistoryEntry[] | null>;\n at: (version: number) => Promise<Board | null>;\n restore: (version: number) => Promise<boolean>;\n /** The agent's last piece of work, until someone keeps or undoes it. */\n pendingBatch: PendingBatch | null;\n /** Keeps or undoes a piece of agent work; resolves with the server's reason when it refused (someone edited after). */\n keepBatch: (id: string) => Promise<string | null>;\n undoBatch: (id: string) => Promise<string | null>;\n};\n\n/** Fired on window after a board edit is saved, with the board id. */\nexport const BOARD_SAVED = \"wb:board-saved\";\nconst POLL_MS = BOARD.pollMs;\nconst FAST_MS = BOARD.fastMs;\n/** After an agent edit, keep polling fast this long: it usually draws in several steps. */\nconst AGENT_WINDOW_MS = BOARD.agentWindowMs;\n\nconst message = (e: unknown) => (e instanceof Error ? e.message : BOARD_COPY.loadFailed);\n\nexport function useBoard(transport: BoardTransport, boardId: string, preview?: Board): BoardState {\n const [board, setBoard] = useState<Board | null>(preview ?? null);\n const [error, setError] = useState<string | null>(null);\n const [saving, setSaving] = useState(false);\n const [activity, setActivity] = useState<BoardActivity | null>(null);\n const [pendingBatch, setPendingBatch] = useState<PendingBatch | null>(null);\n const batchRef = useRef(pendingBatch);\n batchRef.current = pendingBatch;\n const boardRef = useRef(board);\n boardRef.current = board;\n const activityRef = useRef(activity);\n activityRef.current = activity;\n const remote = useRef<Board | null>(null);\n const queue = useRef<BoardOp[]>([]);\n const inflight = useRef(false);\n\n const take = useCallback((d: BoardSnapshot, fromPoll: boolean) => {\n // Activity rides along with every answer, including an unchanged board's.\n const a: BoardActivity | null = d.board?.activity ?? d.activity ?? null;\n if (JSON.stringify(a) !== JSON.stringify(activityRef.current)) setActivity(a);\n // So does the agent's piece of work still waiting to be kept or undone.\n if (\"pendingBatch\" in d) {\n const pb = d.pendingBatch ?? null;\n if (JSON.stringify(pb) !== JSON.stringify(batchRef.current)) setPendingBatch(pb);\n }\n // Edits still on their way would be undone by an older server copy; wait for them.\n if (d.board && (!fromPoll || (!inflight.current && !queue.current.length))) { remote.current = d.board; setBoard(d.board); }\n }, []);\n\n const load = useCallback(async (since?: number) => {\n try {\n take(await transport.load(since), true);\n setError(null);\n } catch (e) { setError(message(e)); }\n }, [transport, take]);\n\n const fastUntil = useRef(0);\n const boost = useCallback((ms: number = BOARD.boostMs) => { fastUntil.current = Math.max(fastUntil.current, Date.now() + ms); }, []);\n useEffect(() => {\n if (preview) return;\n load();\n let last = 0;\n // One tick a second; a tick polls when the board is in a fast window (agent drawing, someone working on it right\n // now) or the slow interval is due.\n const t = setInterval(() => {\n const b = boardRef.current;\n if (document.visibilityState !== \"visible\" || !b) return;\n const e = b.edits.at(-1);\n const agentBusy = !!e?.agent && Date.now() - Date.parse(e.at) < AGENT_WINDOW_MS;\n const a = activityRef.current;\n const live = !!a && Date.now() - Date.parse(a.at) < BOARD.activityFreshMs;\n const due = Date.now() - last >= (agentBusy || live || Date.now() < fastUntil.current ? FAST_MS : POLL_MS);\n if (due) { last = Date.now(); load(b.version); }\n }, FAST_MS);\n return () => clearInterval(t);\n }, [load, preview]);\n\n const flush = useCallback(async () => {\n if (inflight.current || !queue.current.length || preview) return;\n inflight.current = true;\n setSaving(true);\n const ops = queue.current.splice(0);\n try {\n const d = await transport.save(ops);\n // Ops queued meanwhile are replayed on top of the server's answer.\n setBoard(queue.current.length ? applyOps(d.board, queue.current, d.board.updatedBy) : d.board);\n setError(null);\n // Lists of boards show counts and the last change; they refresh when a board is saved.\n window.dispatchEvent(new CustomEvent(BOARD_SAVED, { detail: boardId }));\n } catch (e) {\n setError(e instanceof Error ? BOARD_COPY.unsavedWhy(e.message) : BOARD_COPY.unsaved);\n queue.current = [];\n load();\n } finally {\n inflight.current = false;\n setSaving(false);\n if (queue.current.length) flush();\n }\n }, [transport, preview, load, boardId]);\n\n const apply = useCallback((ops: BoardOp[]) => {\n if (!ops.length) return;\n setBoard((b) => (b ? applyOps(b, ops, BOARD_COPY.you) : b));\n queue.current.push(...ops);\n flush();\n }, [flush]);\n\n // ---------- History: the versions, one version rebuilt, and putting an old version back ----------\n const history = useCallback(async (): Promise<HistoryEntry[] | null> => {\n if (preview || !transport.history) return null;\n try { return await transport.history(); } catch { return null; }\n }, [transport, preview]);\n\n const versions = useRef(new Map<number, Board>());\n useEffect(() => { versions.current.clear(); }, [transport]);\n const at = useCallback(async (version: number): Promise<Board | null> => {\n const kept = versions.current.get(version);\n if (kept) return kept;\n if (preview || !transport.at) return null;\n try {\n const b = await transport.at(version);\n if (b) versions.current.set(version, b);\n return b;\n } catch { return null; }\n }, [transport, preview]);\n\n const restore = useCallback(async (version: number): Promise<boolean> => {\n if (preview || !transport.restore) return false;\n try {\n const d = await transport.restore(version);\n if (d.board) take(d, false); else await load();\n return true;\n } catch (e) { setError(message(e)); return false; }\n }, [transport, preview, load, take]);\n\n // ---------- The agent's piece of work: keep it, or undo it as one ----------\n const decideBatch = useCallback(async (action: { keepBatch: string } | { undoBatch: string }): Promise<string | null> => {\n if (preview || !transport.decide) { setPendingBatch(null); return null; }\n try {\n const d = await transport.decide(action);\n take({ ...d, pendingBatch: d.pendingBatch ?? null }, false);\n return null;\n } catch (e) { return message(e); }\n }, [transport, preview, take]);\n const keepBatch = useCallback((id: string) => decideBatch({ keepBatch: id }), [decideBatch]);\n const undoBatch = useCallback((id: string) => decideBatch({ undoBatch: id }), [decideBatch]);\n\n return { board, error, saving, apply, reload: () => load(), boost, activity, remote, history, at, restore, pendingBatch, keepBatch, undoBatch };\n}\n","// What changed between two versions of a board, and the order to show it in. Pure: no DOM, no React, unit-tested.\n// The board's choreography plays these steps one after another, so the agent's work reads like it is being drawn.\nimport type { Board, WbFrame, WbLink, WbNote } from \"../core/boards\";\n\nexport type Point = { x: number; y: number };\nexport type BoardDiff = {\n added: { notes: WbNote[]; frames: WbFrame[]; links: WbLink[] };\n removed: { notes: WbNote[]; frames: WbFrame[]; links: WbLink[] };\n moved: { id: string; from: Point; to: Point }[];\n /** Fields other than position that differ (text, title, colour, size, route...). */\n changed: { id: string; fields: string[] }[];\n /** Text edits, for the narration and the typed-in title. */\n text: { id: string; before: string; after: string }[];\n};\n\n/** How a step enters: each kind has its own signature motion. */\nexport type StepKind = \"frame\" | \"heading\" | \"track\" | \"pill\" | \"dot\" | \"card\" | \"sticker\" | \"cell\" | \"link\" | \"change\";\nexport type Step = { id: string; kind: StepKind; at: Point };\n\nconst EMPTY: Pick<Board, \"notes\" | \"frames\" | \"links\"> = { notes: [], frames: [], links: [] };\nconst SKIP = new Set([\"x\", \"y\", \"by\"]);\n\nfunction fieldsDiffer<T extends object>(a: T, b: T): string[] {\n const keys = new Set([...Object.keys(a), ...Object.keys(b)]);\n const out: string[] = [];\n for (const k of keys) {\n if (SKIP.has(k)) continue;\n if (JSON.stringify((a as Record<string, unknown>)[k]) !== JSON.stringify((b as Record<string, unknown>)[k])) out.push(k);\n }\n return out;\n}\n\nconst textOf = (r: { text?: string; title?: string }) => [r.title, r.text].filter(Boolean).join(\"\\n\");\n\n/** prev → next. A null prev is an empty board, so a new board's diff is everything on it. */\nexport function diffBoards(prev: Pick<Board, \"notes\" | \"frames\" | \"links\"> | null, next: Pick<Board, \"notes\" | \"frames\" | \"links\">): BoardDiff {\n const a = prev ?? EMPTY;\n const d: BoardDiff = { added: { notes: [], frames: [], links: [] }, removed: { notes: [], frames: [], links: [] }, moved: [], changed: [], text: [] };\n const boxes = <T extends WbNote | WbFrame>(before: T[], after: T[], add: T[], rem: T[]) => {\n const was = new Map(before.map((r) => [r.id, r]));\n const now = new Set(after.map((r) => r.id));\n for (const r of after) {\n const o = was.get(r.id);\n if (!o) { add.push(r); continue; }\n if (o.x !== r.x || o.y !== r.y) d.moved.push({ id: r.id, from: { x: o.x, y: o.y }, to: { x: r.x, y: r.y } });\n const f = fieldsDiffer(o, r);\n if (f.length) d.changed.push({ id: r.id, fields: f });\n const t0 = textOf(o as { text?: string; title?: string }), t1 = textOf(r as { text?: string; title?: string });\n if (t0 !== t1) d.text.push({ id: r.id, before: t0, after: t1 });\n }\n for (const r of before) if (!now.has(r.id)) rem.push(r);\n };\n boxes(a.notes, next.notes, d.added.notes, d.removed.notes);\n boxes(a.frames, next.frames, d.added.frames, d.removed.frames);\n const wasL = new Map(a.links.map((l) => [l.id, l]));\n const nowL = new Set(next.links.map((l) => l.id));\n for (const l of next.links) {\n const o = wasL.get(l.id);\n if (!o) d.added.links.push(l);\n else { const f = fieldsDiffer(o, l); if (f.length) d.changed.push({ id: l.id, fields: f }); }\n }\n for (const l of a.links) if (!nowL.has(l.id)) d.removed.links.push(l);\n return d;\n}\n\nexport const isEmptyDiff = (d: BoardDiff) =>\n !d.added.notes.length && !d.added.frames.length && !d.added.links.length && !d.removed.notes.length && !d.removed.frames.length && !d.removed.links.length && !d.moved.length && !d.changed.length;\n\nconst center = (r: { x: number; y: number; w: number; h: number }): Point => ({ x: r.x + r.w / 2, y: r.y + r.h / 2 });\n\nfunction kindOf(n: WbNote): StepKind {\n switch (n.shape) {\n case \"track\": return \"track\";\n case \"pill\": return \"pill\";\n case \"dot\": return \"dot\";\n case \"sticker\": return \"sticker\";\n case \"cell\": return \"cell\";\n case \"text\": return \"heading\";\n default: return \"card\";\n }\n}\n\n/**\n * The order things are drawn in, as a person would: sections first, then headings, then the road; along a road,\n * left to right with each milestone before the card hung on it; elsewhere, row by row. A link comes right after\n * the later of its two ends; changes to things already there come last.\n */\nexport function stepsOf(d: BoardDiff, next: Pick<Board, \"notes\" | \"frames\" | \"links\">, told = false): Step[] {\n const steps: Step[] = [];\n // A told step is drawn in the order it was told: each thing, then the line that ties it in, then the next.\n if (told) {\n for (const n of d.added.notes) steps.push({ id: n.id, kind: n.shape === \"text\" ? \"heading\" : kindOf(n), at: center(n) });\n } else {\n const frames = [...d.added.frames].sort((p, q) => p.y - q.y || p.x - q.x);\n for (const f of frames) steps.push({ id: f.id, kind: \"frame\", at: { x: f.x + 24, y: f.y + 24 } });\n const notes = d.added.notes;\n const headings = notes.filter((n) => n.shape === \"text\").sort((p, q) => p.y - q.y || p.x - q.x);\n for (const n of headings) steps.push({ id: n.id, kind: \"heading\", at: { x: n.x + 12, y: n.y + n.h / 2 } });\n const tracks = notes.filter((n) => n.shape === \"track\");\n for (const n of tracks) steps.push({ id: n.id, kind: \"track\", at: center(n) });\n const rest = notes.filter((n) => n.shape !== \"text\" && n.shape !== \"track\");\n const cells = rest.filter((n) => n.shape === \"cell\").sort((p, q) => p.y - q.y || p.x - q.x);\n for (const n of cells) steps.push({ id: n.id, kind: \"cell\", at: center(n) });\n const items = rest.filter((n) => n.shape !== \"cell\");\n let ordered: WbNote[];\n if (tracks.length || (next.notes.some((n) => n.shape === \"track\") && items.some((n) => n.shape === \"pill\"))) {\n // Along a road: by x, the milestone first when a card hangs right above or below it.\n const rank = (n: WbNote) => (n.shape === \"pill\" ? 0 : n.shape === \"dot\" ? 1 : 2);\n ordered = [...items].sort((p, q) => {\n const dx = center(p).x - center(q).x;\n return Math.abs(dx) < Math.min(p.w, q.w) / 2 ? rank(p) - rank(q) || dx : dx;\n });\n } else {\n // Row by row: items whose vertical centres are within half a typical height share a row.\n const band = Math.max(40, median(items.map((n) => n.h)) / 2);\n ordered = [...items].sort((p, q) => {\n const dy = center(p).y - center(q).y;\n return Math.abs(dy) < band ? p.x - q.x : dy;\n });\n }\n for (const n of ordered) steps.push({ id: n.id, kind: kindOf(n), at: center(n) });\n }\n\n const order = new Map(steps.map((s, i) => [s.id, i]));\n const boxes = new Map<string, { x: number; y: number; w: number; h: number }>([...next.notes, ...next.frames].map((r) => [r.id, r]));\n const links = d.added.links.map((l) => {\n const a = boxes.get(l.from), b = boxes.get(l.to);\n const after = Math.max(order.get(l.from) ?? -1, order.get(l.to) ?? -1);\n // The hand goes to where the wire starts, then pulls it across.\n const at = a ? center(a) : b ? center(b) : { x: 0, y: 0 };\n return { step: { id: l.id, kind: \"link\" as const, at }, after };\n });\n // Insert each link right after its later end (or at the end when both ends were already there).\n const out: Step[] = [];\n for (let i = 0; i < steps.length; i++) {\n out.push(steps[i]);\n for (const l of links) if (l.after === i) out.push(l.step);\n }\n for (const l of links) if (l.after < 0) out.push(l.step);\n for (const c of d.changed) {\n if (order.has(c.id)) continue;\n const r = boxes.get(c.id);\n if (r) out.push({ id: c.id, kind: \"change\", at: center(r) });\n }\n return out;\n}\n\nfunction median(xs: number[]): number {\n if (!xs.length) return 0;\n const s = [...xs].sort((a, b) => a - b);\n return s[Math.floor(s.length / 2)];\n}\n\n/** Time per step: the whole build fits in about `total` ms, and no step is quicker than `min` or slower than `max`. */\nexport const paceOf = (n: number, total: number, min: number, max: number) => (n ? Math.max(min, Math.min(max, Math.floor(total / n))) : 0);\n","// The whiteboard's state machine. Pure reducer: what the board is doing right now, so the view knows whether to\n// play the agent's work, hold it while the person is mid-gesture, show history read-only, or just sit idle.\nimport type { BoardActivity } from \"../core/boards\";\n\nexport type Mode = \"loading\" | \"idle\" | \"agentWorking\" | \"replaying\" | \"scrubbing\" | \"editing\" | \"error\";\n\nexport type Machine = {\n loaded: boolean;\n error: string | null;\n /** The person is dragging, drawing, resizing or typing on the board. */\n gesture: boolean;\n /** Versions that arrived mid-gesture; their choreography plays when the gesture ends. */\n queued: number;\n /** A choreography is playing (an incoming version, the first build, or a replay step). */\n playing: boolean;\n activity: BoardActivity | null;\n /** Viewing an older version, read-only. */\n scrub: number | null;\n /** \"Putar ulang\": the whole history replays version by version. */\n replay: { paused: boolean; speed: 1 | 2 } | null;\n};\n\nexport type MachineEvent =\n | { type: \"loaded\" }\n | { type: \"error\"; message: string }\n | { type: \"gesture\"; on: boolean }\n /** A remote version landed; `steps` is whether it has anything to choreograph. */\n | { type: \"incoming\"; steps: boolean }\n | { type: \"played\" }\n | { type: \"activity\"; activity: BoardActivity | null }\n | { type: \"scrub\"; version: number }\n | { type: \"latest\" }\n | { type: \"replay\" }\n | { type: \"pause\"; paused: boolean }\n | { type: \"speed\"; speed: 1 | 2 }\n | { type: \"replayDone\" };\n\nexport const initialMachine: Machine = { loaded: false, error: null, gesture: false, queued: 0, playing: false, activity: null, scrub: null, replay: null };\n\nexport function machine(s: Machine, e: MachineEvent): Machine {\n switch (e.type) {\n case \"loaded\": return { ...s, loaded: true, error: null };\n case \"error\": return { ...s, error: e.message };\n case \"gesture\":\n if (e.on) return { ...s, gesture: true };\n // Held versions play once the hand is off the board.\n return { ...s, gesture: false, playing: s.playing || s.queued > 0, queued: 0 };\n case \"incoming\":\n if (!e.steps || s.scrub !== null || s.replay) return s;\n return s.gesture ? { ...s, queued: s.queued + 1 } : { ...s, playing: true };\n case \"played\": return { ...s, playing: false };\n case \"activity\": return { ...s, activity: e.activity };\n case \"scrub\": return { ...s, scrub: e.version, playing: false, queued: 0 };\n case \"latest\": return { ...s, scrub: null, replay: null, playing: false };\n case \"replay\": return { ...s, replay: { paused: false, speed: s.replay?.speed ?? 1 }, playing: false, queued: 0 };\n case \"pause\": return s.replay ? { ...s, replay: { ...s.replay, paused: e.paused } } : s;\n case \"speed\": return s.replay ? { ...s, replay: { ...s.replay, speed: e.speed } } : s;\n case \"replayDone\": return { ...s, replay: null, scrub: null, playing: false };\n }\n}\n\n/** Fresh: who is working on the board right now (the server keeps it for about 15 s after their last step). */\nexport const freshActivity = (a: BoardActivity | null | undefined, now: number, freshMs: number): BoardActivity | null =>\n a && now - Date.parse(a.at) < freshMs ? a : null;\n\n/** One mode for the view, by priority: what the board most visibly is doing. */\nexport function modeOf(s: Machine, now: number, freshMs: number): Mode {\n if (s.error && !s.loaded) return \"error\";\n if (!s.loaded) return \"loading\";\n if (s.scrub !== null || s.replay) return \"scrubbing\";\n if (s.gesture) return \"editing\";\n if (s.playing) return \"replaying\";\n if (freshActivity(s.activity, now, freshMs)?.agent) return \"agentWorking\";\n return \"idle\";\n}\n\n/** The oldest version that can still be rebuilt: the last step that kept no ops, or the first version listed. */\nexport function earliestRebuildable(list: { version: number; replayable?: boolean }[]): number {\n let floor = list[0]?.version ?? 0;\n for (const e of list) if (e.replayable === false) floor = Math.max(floor, e.version);\n return floor;\n}\n","// The board's live layer: the agent's cursor flying to what it draws, the narration typed out during a replay, and\n// the time machine strip. Motion runs on motion values and timers, never a React render per frame.\nimport { memo, useEffect, useRef, useState } from \"react\";\nimport { AnimatePresence, motion, type MotionValue } from \"motion/react\";\nimport { BOARD } from \"./config\";\nimport { WB } from \"./copy\";\nimport { ago } from \"./format\";\nimport type { HistoryEntry, PendingBatch } from \"./useBoard\";\nimport { POP_IN, POP_UP } from \"./pop\";\nimport { earliestRebuildable } from \"./boardMachine\";\n\n/** The agent's (or a teammate's) cursor in world space; `x`/`y` are springs the choreography sets. */\nexport const AgentCursor = memo(function AgentCursor({ x, y, press, z, label, show, agent }: { x: MotionValue<number>; y: MotionValue<number>; press?: MotionValue<number>; z: number; label: string; show: boolean; agent: boolean }) {\n return (\n <AnimatePresence>\n {show && (\n <motion.div key=\"cursor\" className=\"sp-wb-cursor\" data-agent={agent || undefined} style={{ x, y }} aria-hidden\n initial={{ opacity: 0 }} animate={{ opacity: 1 }} exit={{ opacity: 0 }} transition={{ duration: 0.18 }}>\n <motion.span className=\"sp-wb-cursor-in\" style={{ scale: 1 / z, y: press }}>\n <svg width=\"18\" height=\"18\" viewBox=\"0 0 18 18\"><path d=\"M2 2 15 8.5 9.2 10 6.8 15.5Z\" /></svg>\n <span className=\"sp-wb-cursor-label\">{label}</span>\n </motion.span>\n </motion.div>\n )}\n </AnimatePresence>\n );\n});\n\n/** The replay's narration: each version's reason typed out like a director's commentary. */\nexport function Caption({ text, version, speed, instant, lead, onSkip }: { text: string; version: number; speed: number; instant: boolean; lead?: string; onSkip?: () => void }) {\n const [n, setN] = useState(instant ? text.length : 0);\n useEffect(() => {\n if (instant) { setN(text.length); return; }\n setN(0);\n let i = 0;\n const t = setInterval(() => { i += 1; setN(i); if (i >= text.length) clearInterval(t); }, BOARD.replay.typeMs / speed);\n return () => clearInterval(t);\n }, [text, instant, speed]);\n return (\n <p className=\"sp-wb-caption-bar\" role=\"status\" aria-live=\"polite\">\n <strong>{lead ?? WB.viewing(version)}</strong>\n <span dir=\"auto\" aria-label={text}>{text.slice(0, n)}<i className=\"sp-wb-caption-caret\" aria-hidden /></span>\n {onSkip && <button type=\"button\" className=\"sp-wb-caption-skip\" onClick={onSkip}>{WB.skip}</button>}\n </p>\n );\n}\n\n/** The time machine: a tick per version (agent steps in the stamp colour), a slider over them, and the replay controls. */\nexport function HistoryStrip({ entries, loading, current, latest, replaying, paused, speed, note, onPick, onReplay, onPause, onSpeed, onClose }: {\n entries: HistoryEntry[] | null; loading: boolean; current: number | null; latest: number; replaying: boolean; paused: boolean; speed: 1 | 2;\n /** A one-line notice under the strip (a version that could not be loaded). */\n note?: string | null;\n onPick: (v: number) => void; onReplay: () => void; onPause: (p: boolean) => void; onSpeed: (s: 1 | 2) => void; onClose: () => void;\n}) {\n // Versions before a step that kept no ops cannot be rebuilt; they stay listed but cannot be opened.\n const list = entries ?? [];\n const floor = earliestRebuildable(list);\n const at = current ?? latest;\n const idx = Math.max(0, list.findIndex((e) => e.version === at));\n const pick = useRef<ReturnType<typeof setTimeout> | null>(null);\n useEffect(() => () => { if (pick.current) clearTimeout(pick.current); }, []);\n return (\n <motion.div className=\"sp-wb-history\" role=\"region\" aria-label={WB.historyAria} {...POP_UP}>\n <div className=\"sp-wb-history-row\">\n <strong className=\"sp-wb-history-h\">{WB.history}</strong>\n {replaying ? (\n <>\n <button type=\"button\" className=\"sp-wb-btn\" onClick={() => onPause(!paused)}>{paused ? WB.resume : WB.pause}</button>\n <div className=\"sp-wb-seg\" role=\"group\" aria-label={WB.speedAria}>\n {([1, 2] as const).map((s) => <button key={s} type=\"button\" className=\"sp-wb-btn\" aria-pressed={speed === s} onClick={() => onSpeed(s)}>{WB.speed(s)}</button>)}\n </div>\n </>\n ) : (\n <button type=\"button\" className=\"sp-wb-btn sp-wb-replay\" onClick={onReplay} aria-label={WB.replayAria} disabled={loading}>\n <svg width=\"14\" height=\"14\" viewBox=\"0 0 16 16\" aria-hidden><path d=\"M4 3v10l9-5z\" /></svg>{WB.replay}\n </button>\n )}\n <button type=\"button\" className=\"sp-wb-btn sp-wb-history-x\" onClick={onClose}>{WB.close}</button>\n </div>\n {loading ? (\n <p className=\"sp-wb-history-note\" role=\"status\">{WB.historyLoading}</p>\n ) : !list.length ? (\n <p className=\"sp-wb-history-note\">{WB.historyEmpty}</p>\n ) : (\n <div className=\"sp-wb-ticks\">\n <input\n type=\"range\" min={0} max={list.length - 1} step={1} value={idx} aria-label={WB.historyRange} disabled={replaying}\n aria-valuetext={list[idx] ? WB.versionTick(list[idx].version, list[idx].by, ago(list[idx].at), list[idx].what) : undefined}\n onChange={(e) => {\n const v = list[Number(e.target.value)]?.version;\n if (v === undefined || v < floor) return;\n if (pick.current) clearTimeout(pick.current);\n pick.current = setTimeout(() => onPick(v), 120);\n }}\n />\n <ol className=\"sp-wb-tick-list\">\n {list.map((e) => (\n <li key={e.version}>\n <button type=\"button\" className=\"sp-wb-tick\" data-agent={e.agent || undefined} aria-current={e.version === at || undefined} disabled={replaying || e.version < floor}\n title={WB.versionTick(e.version, e.by, ago(e.at), e.why || e.what)} aria-label={WB.versionTick(e.version, e.by, ago(e.at), e.why || e.what)}\n onClick={() => onPick(e.version)} />\n </li>\n ))}\n </ol>\n </div>\n )}\n {note && <p className=\"sp-wb-history-note\" role=\"alert\">{note}</p>}\n </motion.div>\n );\n}\n\n/** Shown while looking at an older version: what it is, and the way back or the way to bring it back. */\nexport function ScrubBanner({ version, why, restoring, onLatest, onRestore, replaying }: { version: number; why: string; restoring: boolean; onLatest: () => void; onRestore: () => void; replaying: boolean }) {\n return (\n <motion.div className=\"sp-wb-float sp-wb-banner\" role=\"status\" data-dock=\"top\" {...POP_IN}>\n <span className=\"sp-wb-banner-text\"><strong>{WB.viewing(version)}</strong>{why && <span dir=\"auto\"> · {why}</span>}</span>\n <button type=\"button\" className=\"sp-wb-btn\" onClick={onLatest}>{WB.latest}</button>\n {!replaying && <button type=\"button\" className=\"sp-wb-btn sp-wb-send\" onClick={onRestore} disabled={restoring}>{restoring ? WB.restoring : WB.restoreThis}</button>}\n </motion.div>\n );\n}\n\n/**\n * The agent's piece of work, waiting for the team: what it did and why, Simpan to keep it, Batalkan to undo it as one.\n * Kept, it stamps \"Disimpan\" and leaves. Enter keeps and Esc undoes while it has focus.\n */\nexport function BatchPill({ batch, z, state, error, onKeep, onUndo }: {\n batch: PendingBatch; z: number; state: \"idle\" | \"keeping\" | \"kept\" | \"undoing\"; error: string | null; onKeep: () => void; onUndo: () => void;\n}) {\n const busy = state !== \"idle\";\n return (\n <div className=\"sp-wb-batch\" style={{ scale: 1 / z }} role=\"group\" aria-label={WB.batchOf(batch.what)} aria-describedby={`batch-hint-${batch.id}`}\n onPointerDown={(e) => e.stopPropagation()} onDoubleClick={(e) => e.stopPropagation()}\n onKeyDown={(e) => {\n if (e.key === \"Escape\") { e.preventDefault(); e.stopPropagation(); if (!busy) onUndo(); }\n else if (e.key === \"Enter\" && (e.target as HTMLElement).tagName !== \"BUTTON\") { e.preventDefault(); e.stopPropagation(); if (!busy) onKeep(); }\n }}>\n <AnimatePresence mode=\"popLayout\" initial={false}>\n {state === \"kept\" ? (\n <motion.span key=\"kept\" className=\"sp-wb-batch-stamp\" role=\"status\"\n initial={{ opacity: 0, scale: 1.3, rotate: -6 }} animate={{ opacity: 1, scale: 1, rotate: -2 }} exit={{ opacity: 0 }}\n transition={{ type: \"spring\", visualDuration: BOARD.springs.stamp.visualDuration, bounce: BOARD.springs.stamp.bounce }}>\n {WB.kept}\n </motion.span>\n ) : (\n <motion.span key=\"ask\" className=\"sp-wb-batch-row\" initial={{ opacity: 0 }} animate={{ opacity: 1 }} exit={{ opacity: 0, transition: { duration: 0.12 } }}>\n <span className=\"sp-wb-batch-what\" tabIndex={0}>\n <i aria-hidden />\n <span dir=\"auto\">{WB.batchOf(batch.what)}</span>\n {batch.why && <small dir=\"auto\">{batch.why}</small>}\n </span>\n <button type=\"button\" className=\"sp-wb-btn sp-wb-send\" onClick={onKeep} disabled={busy} aria-label={WB.keepAria(batch.what)}>{WB.keep}</button>\n <button type=\"button\" className=\"sp-wb-btn\" onClick={onUndo} disabled={busy} aria-label={WB.undoAria(batch.what)}>{state === \"undoing\" ? WB.undoing : WB.undo}</button>\n </motion.span>\n )}\n </AnimatePresence>\n <span id={`batch-hint-${batch.id}`} className=\"ap-sr\">{WB.batchHint}</span>\n <AnimatePresence>{error && (\n <motion.p key=\"err\" className=\"sp-wb-batch-err\" role=\"alert\" initial={{ opacity: 0, height: 0 }} animate={{ opacity: 1, height: \"auto\" }} exit={{ opacity: 0, height: 0 }}>{error}</motion.p>\n )}</AnimatePresence>\n </div>\n );\n}\n\n/**\n * While the agent works off screen, a small stamp-blue pill sits at the nearest edge pointing at it; clicking flies\n * the camera there. Positioned by direct DOM writes as the cursor moves, so it never re-renders the board.\n */\nexport function EdgeMarker({ x, y, view, label, onFly }: { x: MotionValue<number>; y: MotionValue<number>; view: { x: number; y: number; z: number }; label: string; onFly: () => void }) {\n const ref = useRef<HTMLButtonElement>(null);\n const viewNow = useRef(view);\n viewNow.current = view;\n useEffect(() => {\n const el = ref.current, host = el?.parentElement;\n if (!el || !host) return;\n const place = () => {\n const v = viewNow.current, W = host.clientWidth, H = host.clientHeight;\n const sx = x.get() * v.z + v.x, sy = y.get() * v.z + v.y;\n const off = sx < 0 || sy < 0 || sx > W || sy > H;\n el.toggleAttribute(\"data-on\", off);\n if (!off) return;\n const hw = el.offsetWidth / 2 + 10, hh = el.offsetHeight / 2 + 10;\n const cx = Math.min(W - hw, Math.max(hw, sx)), cy = Math.min(H - hh, Math.max(hh, sy));\n el.style.transform = `translate(${cx}px, ${cy}px) translate(-50%, -50%)`;\n el.style.setProperty(\"--sp-wb-edge-angle\", `${Math.atan2(sy - cy, sx - cx)}rad`);\n };\n place();\n const a = x.on(\"change\", place), b = y.on(\"change\", place);\n return () => { a(); b(); };\n }, [x, y, view]);\n return (\n <button ref={ref} type=\"button\" className=\"sp-wb-edge\" onClick={onFly} aria-label={label}>\n <svg className=\"sp-wb-edge-arrow\" width=\"12\" height=\"12\" viewBox=\"0 0 12 12\" aria-hidden><path d=\"M2 6h7M6 2.5 9.5 6 6 9.5\" /></svg>\n <span dir=\"auto\">{label}</span>\n </button>\n );\n}\n","// Shared motion tokens. The shell writes D into the CSS --ap-d1..d4 tokens, so CSS and motion/react share one source.\n// Only transform and opacity are animated; layout height changes use motion layout.\n/** Scales every duration: 1 is the designed pace. */\nconst uiMotionScale = 1;\n\nexport const EASE = [0.16, 1, 0.3, 1] as const;\n\n/** The product's motion character from `motionScale` in ui.ts: below 1 is brisker, above 1 calmer. */\nconst pace = uiMotionScale;\n\nexport const D = {\n d1: 0.12 * pace, // 120ms: micro press, quick fade/exit\n d2: 0.18 * pace, // 180ms: hover, popover, view switch\n d3: 0.24 * pace, // 240ms: card, panel, drawer\n d4: 0.36 * pace, // 360ms: shell, hero stagger, metric bars\n};\n\n/** The same durations as CSS custom properties, set on the shell. */\nexport const MOTION_VARS = {\n \"--ap-d1\": `${Math.round(D.d1 * 1000)}ms`,\n \"--ap-d2\": `${Math.round(D.d2 * 1000)}ms`,\n \"--ap-d3\": `${Math.round(D.d3 * 1000)}ms`,\n \"--ap-d4\": `${Math.round(D.d4 * 1000)}ms`,\n} as React.CSSProperties;\n\n/** The soft ease for things that open and close (a floating list, a disclosure). */\nexport const EASE_SOFT = [0.32, 0.72, 0, 1] as const;\nexport const DISCLOSE = {\n /** A floating list over the content: in with a soft settle, out a little quicker; rows follow once it is in place. */\n pop: 0.3 * pace, popOut: 0.22 * pace, rowsAfter: 0.06 * pace, row: 0.04, rowFade: 0.24 * pace,\n} as const;\n\nexport const SPRING = {\n type: \"spring\",\n stiffness: 420,\n damping: 34,\n} as const;\n\nexport const SPRING_BUBBLE = {\n type: \"spring\",\n stiffness: 420,\n damping: 34,\n mass: 0.8,\n} as const;\n\n/** One stagger rhythm for every list: rows step 30ms, cards 50ms, capped so long lists never wait. */\nexport const STEP = { row: 0.03, card: 0.05, max: 8 } as const;\nexport const stagger = (i: number, step: number = STEP.row) => Math.min(i, STEP.max) * step;\n\n/** Height-auto reveal for content that pushes what is below it (errors, expanders, added rows). */\nexport const REVEAL = {\n initial: { opacity: 0, height: 0 },\n animate: { opacity: 1, height: \"auto\", transition: { height: { duration: D.d3, ease: EASE }, opacity: { duration: D.d2, ease: EASE, delay: 0.04 } } },\n exit: { opacity: 0, height: 0, transition: { height: { duration: D.d2, ease: EASE }, opacity: { duration: D.d1, ease: EASE } } },\n} as const;\n/** The same reveal with no movement, for reduced motion: width and height animations are not covered by MotionConfig. */\nexport const REVEAL_STILL = { initial: { opacity: 0 }, animate: { opacity: 1, transition: { duration: D.d1 } }, exit: { opacity: 0, transition: { duration: D.d1 } } } as const;\n\n/** Fade for anything that leaves without moving the layout (notices, buttons, chips). */\nexport const FADE = {\n initial: { opacity: 0, y: 4 },\n animate: { opacity: 1, y: 0, transition: { duration: D.d2, ease: EASE } },\n exit: { opacity: 0, transition: { duration: D.d1, ease: EASE } },\n} as const;\n","// Enter and exit of the boards' menus, popovers and selection bars. Only transform and opacity move, and the CSS\n// `translate` that positions some of them composes with the motion transform.\nimport { D, EASE } from \"./motion\";\n\n/** Drops in from just above its anchor (menus under a button, bars over a selection). */\nexport const POP_IN = {\n initial: { opacity: 0, y: -4 },\n animate: { opacity: 1, y: 0, transition: { duration: D.d2, ease: EASE } },\n exit: { opacity: 0, y: -4, transition: { duration: D.d1, ease: EASE } },\n} as const;\n\n/** Rises from just below its anchor (menus above a toolbar). */\nexport const POP_UP = {\n initial: { opacity: 0, y: 4 },\n animate: { opacity: 1, y: 0, transition: { duration: D.d2, ease: EASE } },\n exit: { opacity: 0, y: 4, transition: { duration: D.d1, ease: EASE } },\n} as const;\n","// The board's hand: pen strokes (perfect-freehand), arrows between items (perfect-arrows) and the inked outline of\n// shapes, sections, cells and lines (roughjs). All MIT. Pure functions over numbers, safe on the server; the rough\n// outlines are cached per item so a pan, zoom or drag never regenerates them.\nimport { polygonPoints, type Polygon } from \"../core/board-geometry\";\nimport getStroke from \"perfect-freehand\";\nimport { getBoxToBoxArrow } from \"perfect-arrows\";\nimport rough from \"roughjs\";\nimport type { Options } from \"roughjs/bin/core\";\nimport { BOARD } from \"./config\";\n\ntype Rect = { x: number; y: number; w: number; h: number };\n\n/** The filled outline of a stroke (perfect-freehand's polygon) as an SVG path, with quadratic smoothing between points. */\nfunction outlinePath(pts: number[][]): string {\n if (pts.length < 2) return \"\";\n let d = `M ${pts[0][0].toFixed(1)} ${pts[0][1].toFixed(1)} Q`;\n for (let i = 0; i < pts.length; i++) {\n const [x0, y0] = pts[i], [x1, y1] = pts[(i + 1) % pts.length];\n d += ` ${x0.toFixed(1)} ${y0.toFixed(1)} ${((x0 + x1) / 2).toFixed(1)} ${((y0 + y1) / 2).toFixed(1)}`;\n }\n return `${d} Z`;\n}\n\n// ---------- Pen strokes ----------\nexport type Brush = \"pena\" | \"spidol\";\nexport type BrushSize = \"s\" | \"m\" | \"l\";\n/** A stroke as one filled outline. */\nexport type BrushStroke = { body: string; brush: Brush };\n\n/** A pen stroke: `pena` is the clean nib that thins with speed, `spidol` a flat marker of even width. */\nexport function brushStroke(points: number[], pressure: number[] | undefined, size: BrushSize, brush: Brush, weight?: number): BrushStroke {\n // `weight` is the stroke's width in board units, set when it was drawn so it kept its size on screen at that zoom.\n const W = weight && weight > 0 ? weight : BOARD.brush.width[brush][size];\n const n = Math.floor(points.length / 2);\n if (n < 1) return { body: \"\", brush };\n const real = !!pressure && pressure.length === n;\n const input = Array.from({ length: n }, (_, i) => (real ? [points[i * 2], points[i * 2 + 1], pressure![i]] : [points[i * 2], points[i * 2 + 1]]));\n if (brush === \"spidol\") {\n return { brush, body: outlinePath(getStroke(input, { size: W, thinning: 0, smoothing: 0.6, streamline: 0.5, simulatePressure: false, start: { cap: true }, end: { cap: true } })) };\n }\n return { brush, body: inkPathSized(input, real, W) };\n}\n\n/** The clean nib (pena) at a given width. */\nfunction inkPathSized(input: number[][], real: boolean, size: number): string {\n const I = BOARD.ink;\n return outlinePath(getStroke(input, { size, thinning: I.thinning, smoothing: I.smoothing, streamline: I.streamline, simulatePressure: !real, last: true, start: { taper: I.taper, cap: true }, end: { taper: I.taper, cap: true } }));\n}\n\n/** The stroke while it is being drawn; the same outline the stored stroke will have. */\nexport function liveStroke(points: number[], pressure: number[] | undefined, size: BrushSize, brush: Brush, weight?: number): string {\n return brushStroke(points, pressure, size, brush, weight).body;\n}\n\nconst brushCache = new Map<string, BrushStroke>();\n/** The stroke for a stored ink note, generated once per note and shape of its points. */\nexport function brushOf(id: string, points: number[], pressure: number[] | undefined, size: BrushSize, brush: Brush, weight?: number): BrushStroke {\n const key = `${id}|${points.length}|${size}|${brush}|${weight ?? 0}`;\n const hit = brushCache.get(key);\n if (hit) return hit;\n const made = brushStroke(points, pressure, size, brush, weight);\n if (brushCache.size >= BOARD.rough.cacheMax) brushCache.delete(brushCache.keys().next().value!);\n brushCache.set(key, made);\n return made;\n}\n\nexport type ArrowGeo = {\n d: string; mid: { x: number; y: number };\n start: [number, number]; end: [number, number];\n /** Direction of travel at the end (for the head) and the outward direction at the start (for a head pointing back). */\n endAngle: number; startAngle: number;\n /** The quadratic's points, kept for the inked version of the line. */\n q?: [number, number, number, number, number, number];\n};\n\n/** A curved or straight arrow between two boxes, leaving and reaching their edges (perfect-arrows). */\nexport function boxArrow(a: Rect, c: Rect, route: \"curve\" | \"straight\"): ArrowGeo {\n const A = BOARD.arrow;\n const [sx, sy, cx, cy, ex, ey, ae, as] = getBoxToBoxArrow(a.x, a.y, a.w, a.h, c.x, c.y, c.w, c.h, {\n bow: route === \"curve\" ? A.curveBow : 0, stretch: route === \"curve\" ? A.curveStretch : 0, padStart: A.padStart, padEnd: A.padEnd,\n });\n return {\n d: `M ${sx} ${sy} Q ${cx} ${cy} ${ex} ${ey}`,\n mid: { x: (sx + 2 * cx + ex) / 4, y: (sy + 2 * cy + ey) / 4 },\n start: [sx, sy], end: [ex, ey], endAngle: ae, startAngle: as, q: [sx, sy, cx, cy, ex, ey],\n };\n}\n\n/** An arrowhead as a small closed path at a tip, pointing along `angle` (radians). */\nexport function headPath(x: number, y: number, angle: number): string {\n const L = BOARD.arrow.head, Wd = L * BOARD.arrow.headWidth;\n const bx = x - Math.cos(angle) * L, by = y - Math.sin(angle) * L;\n const nx = -Math.sin(angle) * Wd, ny = Math.cos(angle) * Wd;\n const kx = x - Math.cos(angle) * L * 0.72, ky = y - Math.sin(angle) * L * 0.72;\n return `M ${x} ${y} L ${bx + nx} ${by + ny} L ${kx} ${ky} L ${bx - nx} ${by - ny} Z`;\n}\n\n// ---------- The ink look ----------\n\nconst gen = rough.generator();\nconst cache = new Map<string, string[]>();\n\n/** A stable seed per item, so its outline is drawn the same way every time it renders. */\nexport function seedOf(id: string): number {\n let h = 2166136261;\n for (let i = 0; i < id.length; i++) h = Math.imul(h ^ id.charCodeAt(i), 16777619);\n return (h >>> 0) % 2147483646 + 1;\n}\n\nfunction remember(key: string, make: () => string[]): string[] {\n const hit = cache.get(key);\n if (hit) return hit;\n const paths = make();\n if (cache.size >= BOARD.rough.cacheMax) cache.delete(cache.keys().next().value!);\n cache.set(key, paths);\n return paths;\n}\n\n// Trigonometry differs in the last digits between the server and the browser engine; a tenth of a pixel keeps the\n// drawn path identical on both, so the board hydrates without a mismatch.\nconst tenth = (d: string) => d.replace(/-?\\d+\\.\\d+(e-?\\d+)?/g, (n) => String(Math.round(Number(n) * 10) / 10));\nconst strokesOf = (d: ReturnType<typeof gen.rectangle>) => gen.toPaths(d).map((p) => tenth(p.d));\nconst opts = (id: string, extra: Options = {}): Options => ({ roughness: BOARD.rough.roughness, bowing: BOARD.rough.bowing, seed: seedOf(id), fill: undefined, ...extra });\n\n/** Scales an absolute M/C/L/Z path drawn in a w0×h0 box to w×h (the cloud outline). */\nconst scalePath = (d: string, w0: number, h0: number, w: number, h: number) => {\n let i = 0;\n return d.replace(/-?\\d+(\\.\\d+)?/g, (m) => String(Math.round(Number(m) * (i++ % 2 ? h / h0 : w / w0) * 10) / 10));\n};\nconst CLOUD = \"M24 56C9 56 4 42 15 36 11 22 27 12 39 19 45 6 68 5 74 20 89 15 99 31 89 40 97 52 84 58 75 56Z\";\n\nexport type InkShape = \"box\" | \"ellipse\" | \"cloud\" | \"cylinder\" | \"frame\" | \"cell\" | \"pill\" | Polygon;\n\n/** The inked outline of a shape, section or matrix cell, in the item's own coordinates (0,0 at its top-left). */\nexport function roughOutline(id: string, shape: InkShape, w: number, h: number): string[] {\n const W = Math.round(w), H = Math.round(h);\n return remember(`${id}|${shape}|${W}|${H}`, () => {\n switch (shape) {\n case \"ellipse\": return strokesOf(gen.ellipse(W / 2, H / 2, W - 2, H - 2, opts(id)));\n case \"pill\": { const r = Math.min(H, W) / 2 - 1; return strokesOf(gen.path(`M ${r + 1} 1 L ${W - r - 1} 1 A ${r} ${r} 0 0 1 ${W - r - 1} ${H - 1} L ${r + 1} ${H - 1} A ${r} ${r} 0 0 1 ${r + 1} 1 Z`, opts(id))); }\n case \"cloud\": return strokesOf(gen.path(scalePath(CLOUD, 100, 62, W, H), opts(id)));\n case \"cylinder\": {\n const ry = Math.min(H * 0.1, 14), x0 = 1, x1 = W - 1;\n return [\n ...strokesOf(gen.ellipse(W / 2, ry, W - 2, ry * 2, opts(id))),\n ...strokesOf(gen.path(`M ${x0} ${ry} L ${x0} ${H - ry} A ${(W - 2) / 2} ${ry} 0 0 0 ${x1} ${H - ry} L ${x1} ${ry}`, opts(id))),\n ];\n }\n case \"diamond\": case \"triangle\": case \"pentagon\": case \"hexagon\": case \"parallelogram\": return strokesOf(gen.polygon(polygonPoints(shape, W, H), opts(id)));\n case \"cell\": return strokesOf(gen.rectangle(0, 0, W, H, opts(id, { roughness: BOARD.rough.cellRoughness, disableMultiStroke: true })));\n case \"frame\": return strokesOf(gen.rectangle(1, 1, W - 2, H - 2, opts(id, { roughness: BOARD.rough.cellRoughness })));\n default: return strokesOf(gen.rectangle(1, 1, W - 2, H - 2, opts(id)));\n }\n });\n}\n\n/**\n * An inked line along a link: the quadratic for curved and straight arrows, the polyline for elbows. Keyed by its\n * rounded geometry, so it only regenerates when an end moves.\n */\nexport function roughLine(id: string, geo: { q?: number[]; poly?: number[] }): string[] {\n const nums = (geo.q ?? geo.poly ?? []).map((v) => Math.round(v));\n return remember(`${id}|line|${nums.join(\",\")}`, () => {\n const o = opts(id, { roughness: BOARD.rough.linkRoughness, disableMultiStroke: true });\n if (geo.q) {\n const [sx, sy, cx, cy, ex, ey] = nums;\n return strokesOf(gen.path(`M ${sx} ${sy} Q ${cx} ${cy} ${ex} ${ey}`, o));\n }\n const pts: [number, number][] = [];\n for (let i = 0; i + 1 < nums.length; i += 2) pts.push([nums[i], nums[i + 1]]);\n return strokesOf(gen.linearPath(pts, o));\n });\n}\n","// The board's camera, pure: the van Wijk & Nuij smooth zoom-pan path (the curve d3.interpolateZoom draws, ρ = √2) for\n// long flights, the eased timing around it, and the rule for when the agent may move the view at all.\n// No DOM, no React; unit-tested.\n\nexport type View = { x: number; y: number; z: number };\nexport type Size = { w: number; h: number };\nexport type Box = { x0: number; y0: number; x1: number; y1: number };\n\n/** A view as the path works in it: the world point at the centre of the screen and the world width on screen. */\nconst toCam = (v: View, s: Size): [number, number, number] => [(s.w / 2 - v.x) / v.z, (s.h / 2 - v.y) / v.z, s.w / v.z];\nconst toView = ([cx, cy, w]: [number, number, number], s: Size): View => {\n const z = s.w / w;\n return { z, x: s.w / 2 - cx * z, y: s.h / 2 - cy * z };\n};\n\n/** Smooth ease-in-out (cubic): the raw path starts and stops abruptly, so time is eased around it. */\nexport const easeInOut = (t: number) => (t < 0.5 ? 4 * t * t * t : 1 - Math.pow(-2 * t + 2, 3) / 2);\n\n/**\n * The optimal zoom-pan path from `a` to `b` (van Wijk & Nuij 2003): a far target makes the camera pull back, cross\n * and come down, instead of sliding across at one zoom. `at(t)` gives the view at t ∈ [0,1] (already eased);\n * `ms` is the path's natural duration, clamped to [minMs, maxMs].\n */\nexport function zoomPath(a: View, b: View, s: Size, opts: { rho?: number; minMs?: number; maxMs?: number } = {}): { at: (t: number) => View; ms: number } {\n const rho = opts.rho ?? Math.SQRT2, rho2 = rho * rho, rho4 = rho2 * rho2;\n const [ux0, uy0, w0] = toCam(a, s), [ux1, uy1, w1] = toCam(b, s);\n const dx = ux1 - ux0, dy = uy1 - uy0, d2 = dx * dx + dy * dy;\n let S: number;\n let raw: (t: number) => [number, number, number];\n if (d2 < 1e-12) {\n // Zoom only: the width changes exponentially, the centre stays.\n S = Math.log(w1 / w0) / rho;\n raw = (t) => [ux0 + t * dx, uy0 + t * dy, w0 * Math.exp(rho * t * S)];\n } else {\n const d1 = Math.sqrt(d2);\n const b0 = (w1 * w1 - w0 * w0 + rho4 * d2) / (2 * w0 * rho2 * d1);\n const b1 = (w1 * w1 - w0 * w0 - rho4 * d2) / (2 * w1 * rho2 * d1);\n const r0 = Math.log(Math.sqrt(b0 * b0 + 1) - b0);\n const r1 = Math.log(Math.sqrt(b1 * b1 + 1) - b1);\n S = (r1 - r0) / rho;\n raw = (t) => {\n const sv = t * S, c0 = Math.cosh(r0);\n const u = (w0 / (rho2 * d1)) * (c0 * Math.tanh(rho * sv + r0) - Math.sinh(r0));\n return [ux0 + u * dx, uy0 + u * dy, (w0 * c0) / Math.cosh(rho * sv + r0)];\n };\n }\n const ms = Math.min(opts.maxMs ?? 1200, Math.max(opts.minMs ?? 400, Math.abs(S) * 1000));\n return {\n ms,\n at: (t) => {\n if (t <= 0) return a;\n if (t >= 1) return b;\n return toView(raw(easeInOut(t)), s);\n },\n };\n}\n\n/** A short adjustment glides; only a far or big change of scale is worth a flight along the zoom path. */\nexport function isLongMove(a: View, b: View, s: Size): boolean {\n const [ax, ay] = toCam(a, s), [bx, by] = toCam(b, s);\n const screen = Math.hypot((bx - ax) * a.z, (by - ay) * a.z);\n const ratio = Math.max(a.z / b.z, b.z / a.z);\n return screen > Math.hypot(s.w, s.h) * 0.45 || ratio > 1.6;\n}\n\n/** The view that centres a world point at the current zoom, inside the room left above the floating bars. */\nexport function centreOn(p: { x: number; y: number }, v: View, s: Size, bottom = 0): View {\n return { z: v.z, x: s.w / 2 - p.x * v.z, y: (s.h - bottom) / 2 - p.y * v.z };\n}\n\n/**\n * Follow vs stay, per step of the agent's work: a target inside the view inset by `inset` (15% by default) keeps the\n * camera still (only the cursor travels); one nearer the edge or off screen is followed.\n */\nexport function stepCamera(v: View, s: Size, target: { x: number; y: number }, bottom = 0, inset = 0.15): \"stay\" | \"follow\" {\n const sx = target.x * v.z + v.x, sy = target.y * v.z + v.y;\n const h = s.h - bottom;\n const ix = s.w * inset, iy = h * inset;\n return sx >= ix && sx <= s.w - ix && sy >= iy && sy <= h - iy ? \"stay\" : \"follow\";\n}\n\n/** `bb` whole when it still reads at `read` zoom or closer (centred, from the top); past that, `read` zoom from its top-left. */\nexport function readableView(bb: Box, s: Size, read: number, pad: number, top: number, bottom = 0): View {\n const w = bb.x1 - bb.x0 || 1, h = bb.y1 - bb.y0 || 1;\n const z = Math.min(1, (s.w - pad * 2) / w, (s.h - pad * 2 - bottom) / h);\n if (z >= read) return { z, x: (s.w - w * z) / 2 - bb.x0 * z, y: pad + top - bb.y0 * z };\n return { z: read, x: pad - bb.x0 * read, y: pad + top - bb.y0 * read };\n}\n\n/** At the start of a piece of work: when the plan already fits the view it stays; otherwise frame it once. */\nexport function planCamera(v: View, s: Size, plan: Box | null, bottom = 0): \"stay\" | \"overview\" {\n if (!plan) return \"stay\";\n const x0 = plan.x0 * v.z + v.x, y0 = plan.y0 * v.z + v.y, x1 = plan.x1 * v.z + v.x, y1 = plan.y1 * v.z + v.y;\n return x0 >= 0 && y0 >= 0 && x1 <= s.w && y1 <= s.h - bottom ? \"stay\" : \"overview\";\n}\n\n/** The agent may move the camera only when the person has not touched the board for `quietMs`. */\nexport const agentMayMove = (lastInputAt: number, now: number, quietMs = 2000) => now - lastInputAt >= quietMs;\n","// Springs as CSS can play them, the footprints still waiting for their item, and the cursor's arc. Pure, unit-tested.\nimport type { PlannedItem } from \"../core/boards\";\n\n/**\n * A spring in Motion's duration-and-bounce form as a CSS `linear()` easing plus its settle time, so CSS entrances\n * (cards, stamps) move like the motion/react springs around them. Motion's mapping: stiffness = (2π / (1.2·d))²,\n * damping ratio = 1 − bounce (min 0.05), mass 1.\n */\nexport function springEasing(visualDuration: number, bounce: number, samples = 40): { ms: number; css: string } {\n const root = (2 * Math.PI) / (visualDuration * 1.2);\n const zeta = Math.min(1, Math.max(0.05, 1 - bounce));\n const w0 = root;\n const pos = (t: number) => {\n if (zeta < 1) {\n const wd = w0 * Math.sqrt(1 - zeta * zeta);\n return 1 - Math.exp(-zeta * w0 * t) * (Math.cos(wd * t) + ((zeta * w0) / wd) * Math.sin(wd * t));\n }\n return 1 - Math.exp(-w0 * t) * (1 + w0 * t);\n };\n // Settled: within 0.1% of the target and staying there.\n let end = visualDuration;\n for (let t = visualDuration; t < 3; t += 0.01) {\n let calm = true;\n for (let k = t; k < t + 0.12; k += 0.01) if (Math.abs(pos(k) - 1) > 0.001) { calm = false; break; }\n if (calm) { end = t; break; }\n end = t;\n }\n const pts: string[] = [];\n for (let i = 0; i <= samples; i++) pts.push(String(Math.round(pos((end * i) / samples) * 1000) / 1000));\n pts[0] = \"0\";\n pts[pts.length - 1] = \"1\";\n return { ms: Math.round(end * 1000), css: `linear(${pts.join(\", \")})` };\n}\n\n/**\n * The plan's footprints still to show: an item not on the board yet, or on it but still waiting for its entrance.\n * Its footprint gives way when its step reveals it.\n */\nexport function liveFootprints(plan: PlannedItem[] | null | undefined, present: Set<string>, pending: Set<string>): PlannedItem[] {\n return (plan ?? []).filter((p) => !present.has(p.id) || pending.has(p.id));\n}\n\n/** The plan's extent, to frame the whole piece of work once at its start. */\nexport function planBounds(plan: PlannedItem[] | null | undefined): { x0: number; y0: number; x1: number; y1: number } | null {\n if (!plan?.length) return null;\n let x0 = Infinity, y0 = Infinity, x1 = -Infinity, y1 = -Infinity;\n for (const p of plan) { x0 = Math.min(x0, p.x); y0 = Math.min(y0, p.y); x1 = Math.max(x1, p.x + p.w); y1 = Math.max(y1, p.y + p.h); }\n return { x0, y0, x1, y1 };\n}\n\n/** A point on the cursor's flight: a quadratic arc bowed sideways by `bow` of the distance, so it never slides flat. */\nexport function arcPoint(from: { x: number; y: number }, to: { x: number; y: number }, t: number, bow = 0.08): { x: number; y: number } {\n const dx = to.x - from.x, dy = to.y - from.y, d = Math.hypot(dx, dy);\n const cx = (from.x + to.x) / 2 - (d ? (dy / d) * d * bow : 0), cy = (from.y + to.y) / 2 + (d ? (dx / d) * d * bow : 0);\n const u = 1 - t;\n return { x: u * u * from.x + 2 * u * t * cx + t * t * to.x, y: u * u * from.y + 2 * u * t * cy + t * t * to.y };\n}\n","// The board's few sounds, synthesized with Web Audio (no files): an ink-stamp thud when a stamp lands and a two-note\n// chime when the agent finishes a build. Off unless the person turns \"Suara\" on; never one per card.\nimport { BOARD } from \"./config\";\n\nlet ctx: AudioContext | null = null;\nlet lastThud = 0;\n\nexport function soundOn(): boolean {\n try { return localStorage.getItem(BOARD.sound.key) === \"1\"; } catch { return false; }\n}\nexport function setSoundOn(on: boolean): void {\n try { localStorage.setItem(BOARD.sound.key, on ? \"1\" : \"0\"); } catch { /* storage unavailable */ }\n}\n\nfunction audio(): AudioContext | null {\n if (typeof window === \"undefined\") return null;\n const AC = window.AudioContext ?? (window as unknown as { webkitAudioContext?: typeof AudioContext }).webkitAudioContext;\n if (!AC) return null;\n ctx ??= new AC();\n if (ctx.state === \"suspended\") void ctx.resume();\n return ctx;\n}\n\n/** A soft rubber-stamp thud: a short low-passed noise burst over a ~140Hz sine, under 80ms. At most one per beat. */\nexport function thud(): void {\n if (!soundOn()) return;\n const now = performance.now();\n if (now - lastThud < BOARD.sound.thudGapMs) return;\n lastThud = now;\n const a = audio();\n if (!a) return;\n const t = a.currentTime, len = BOARD.sound.thudMs / 1000;\n const buf = a.createBuffer(1, Math.ceil(a.sampleRate * len), a.sampleRate);\n const ch = buf.getChannelData(0);\n for (let i = 0; i < ch.length; i++) ch[i] = (Math.random() * 2 - 1) * (1 - i / ch.length);\n const noise = a.createBufferSource();\n noise.buffer = buf;\n const lp = a.createBiquadFilter();\n lp.type = \"lowpass\";\n lp.frequency.value = 900;\n const ng = a.createGain();\n ng.gain.setValueAtTime(0.22, t);\n ng.gain.exponentialRampToValueAtTime(0.001, t + len);\n noise.connect(lp).connect(ng).connect(a.destination);\n const osc = a.createOscillator();\n osc.frequency.setValueAtTime(140, t);\n osc.frequency.exponentialRampToValueAtTime(80, t + len);\n const og = a.createGain();\n og.gain.setValueAtTime(0.3, t);\n og.gain.exponentialRampToValueAtTime(0.001, t + len);\n osc.connect(og).connect(a.destination);\n noise.start(t);\n osc.start(t);\n noise.stop(t + len);\n osc.stop(t + len);\n}\n\n/** A gentle two-note chime (a rising fifth) when a build finishes. */\nexport function chime(): void {\n if (!soundOn()) return;\n const a = audio();\n if (!a) return;\n const t = a.currentTime;\n [[660, 0], [990, 0.11]].forEach(([f, at]) => {\n const o = a.createOscillator();\n o.type = \"sine\";\n o.frequency.value = f;\n const g = a.createGain();\n g.gain.setValueAtTime(0, t + at);\n g.gain.linearRampToValueAtTime(0.12, t + at + 0.015);\n g.gain.exponentialRampToValueAtTime(0.001, t + at + 0.45);\n o.connect(g).connect(a.destination);\n o.start(t + at);\n o.stop(t + at + 0.5);\n });\n}\n","// The board's tempo in this browser: one multiplier on every client duration (entrances, the cursor, the camera, the\n// replay). Tenang is the designed pace; Normal and Cepat shorten it for people who have seen it many times.\nimport { BOARD } from \"./config\";\n\nexport type Tempo = keyof typeof BOARD.tempo.factor;\nexport const TEMPOS = Object.keys(BOARD.tempo.factor) as Tempo[];\n\nexport const factorOf = (t: Tempo): number => BOARD.tempo.factor[t] ?? 1;\n\nexport function readTempo(): Tempo {\n try {\n const v = localStorage.getItem(BOARD.tempo.key);\n if (v && v in BOARD.tempo.factor) return v as Tempo;\n } catch { /* storage unavailable */ }\n return BOARD.tempo.default;\n}\n\nexport function saveTempo(t: Tempo): void {\n try { localStorage.setItem(BOARD.tempo.key, t); } catch { /* storage unavailable */ }\n}\n","// How a board reaches its server. The view only ever talks to a transport, so any backend can host boards: the HTTP\n// one below speaks the protocol simpul's /api/boards uses, and a test or a gallery can pass an in-memory one.\nimport type { Board, BoardActivity, BoardOp } from \"../core/boards\";\n\n/** One version in the board's history, as the server lists it. */\nexport type HistoryEntry = {\n version: number; at: string; by: string; agent: boolean; what: string; why?: string; keys: string[];\n /** False: that step kept no ops, so versions before it can no longer be rebuilt. */\n replayable?: boolean;\n /** A beat of a told board: replayed with its sentence. */\n told?: boolean;\n};\n\n/** One piece of agent work still waiting for the team to keep it or undo it. */\nexport type PendingBatch = { id: string; by: string; what: string; why?: string; keys: string[]; at: string };\n\n/** What a load answers: the board when it changed since the version asked for, and who is working on it now. */\nexport type BoardSnapshot = { board?: Board | null; activity?: BoardActivity | null; pendingBatch?: PendingBatch | null };\n\nexport interface BoardTransport {\n /** The board, or nothing new when `since` is still its version. */\n load(since?: number): Promise<BoardSnapshot>;\n /** Applies a person's edits on the server and answers with the board as saved. */\n save(ops: BoardOp[]): Promise<{ board: Board }>;\n history?(): Promise<HistoryEntry[] | null>;\n /** The board as it was at a version. */\n at?(version: number): Promise<Board | null>;\n /** Puts an earlier version back as the newest. */\n restore?(version: number): Promise<BoardSnapshot>;\n /** Keeps or undoes a piece of agent work as one. */\n decide?(action: { keepBatch: string } | { undoBatch: string }): Promise<BoardSnapshot>;\n}\n\nasync function json(r: Response): Promise<Record<string, unknown>> {\n const d = (await r.json().catch(() => ({}))) as Record<string, unknown>;\n if (!r.ok) throw new Error(typeof d.error === \"string\" ? d.error : typeof d.detail === \"string\" ? d.detail : `HTTP ${r.status}`);\n return d;\n}\n\n/**\n * A transport over HTTP: GET url (?since=, ?history=1, ?at=), PATCH url {ops}, POST url {restore | keepBatch |\n * undoBatch}. `init` adds headers (authorization) to every request.\n */\nexport function httpTransport(url: string, init: () => RequestInit | Promise<RequestInit> = () => ({})): BoardTransport {\n const join = (q: string) => `${url}${url.includes(\"?\") ? \"&\" : \"?\"}${q}`;\n const send = async (target: string, extra: RequestInit = {}) => {\n const base = await init();\n return fetch(target, { ...base, ...extra, headers: { ...(base.headers ?? {}), ...(extra.headers ?? {}) } });\n };\n const post = async (body: unknown) =>\n (await json(await send(url, { method: \"POST\", headers: { \"content-type\": \"application/json\" }, body: JSON.stringify(body) }))) as BoardSnapshot;\n return {\n load: async (since) => (await json(await send(since ? join(`since=${since}`) : url))) as BoardSnapshot,\n save: async (ops) =>\n (await json(await send(url, { method: \"PATCH\", headers: { \"content-type\": \"application/json\" }, body: JSON.stringify({ ops }) }))) as { board: Board },\n history: async () => {\n const d = await json(await send(join(\"history=1\")));\n return Array.isArray(d.history) ? (d.history as HistoryEntry[]) : null;\n },\n at: async (version) => ((await json(await send(join(`at=${version}`)))).board as Board | undefined) ?? null,\n restore: (version) => post({ restore: version }),\n decide: (action) => post(action),\n };\n}\n"],"mappings":";;;;;;;;;;;;;;;;;;;;;AACA,IAAM,YAAY;AACX,IAAMA,SAAQ;AAAA;AAAA,EAEnB,cAAc;AAAA,EACd,QAAQ,IAAI;AAAA,EACZ,QAAQ;AAAA,EACR,eAAe,KAAK;AAAA,EACpB,SAAS;AAAA,EACT,SAAS;AAAA,EACT,MAAM;AAAA,EACN,YAAY,IAAI;AAAA,EAChB,iBAAiB;AAAA,EACjB,eAAe,KAAK;AAAA,EACpB,WAAW,EAAE,GAAG,IAAI,GAAG,IAAI,GAAG,IAAI;AAAA,EAClC,UAAU,EAAE,GAAG,IAAI,GAAG,IAAI,GAAG,EAAE;AAAA,EAC/B,WAAW,EAAE,GAAG,KAAK,GAAG,IAAI;AAAA;AAAA,EAE5B,WAAW;AAAA;AAAA,EAEX,aAAa;AAAA,EACb,QAAQ;AAAA,EACR,UAAU;AAAA,EACV,SAAS,EAAE,MAAM,EAAE,GAAG,KAAK,GAAG,IAAI,GAAG,MAAM,EAAE,GAAG,KAAK,GAAG,GAAG,GAAG,OAAO,EAAE,GAAG,KAAK,GAAG,GAAG,EAAE;AAAA,EACvF,UAAU,EAAE,GAAG,KAAK,GAAG,IAAI;AAAA,EAC3B,cAAc,EAAE,GAAG,KAAK,GAAG,IAAI;AAAA,EAC/B,OAAO;AAAA,EACP,UAAU;AAAA,EACV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,QAAQ,CAAC,WAAW,KAAK,MAAM;AAAA,EACjC;AACF;","names":["BOARD","memo","useCallback","useEffect","useRef","useState","BOARD","AnimatePresence","motion","useEffect","useRef","useState","jsx","AgentCursor","useState","useEffect","BOARD","useRef","BOARD","opts","BOARD","BOARD","Fragment","jsx","jsxs","BOARD","memo","Art","Ink","RoughOutline","t","Item","useState","useEffect","FrameBox","rough","ctx","useRef","useCallback","at","raf","step","v","z","view","last","glide","m","total","pace","size","AnimatePresence","motion"]}
|