@bd7pil/ocrc 0.24.0 → 0.24.2

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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@bd7pil/ocrc",
3
- "version": "0.24.0",
3
+ "version": "0.24.2",
4
4
  "description": "OpenCode plugin — remote-control your local opencode from Telegram and a mobile web console (channels, schedules, skills, files, worktrees).",
5
5
  "type": "module",
6
6
  "main": "dist/plugin/entry.js",
@@ -0,0 +1 @@
1
+ .suggestions.svelte-1hbn5f9{display:flex;align-items:center;flex-wrap:wrap;gap:8px;padding:0 14px 8px}.chip.svelte-1hbn5f9{min-height:36px;background:var(--bg-elev);border:1px solid var(--border);border-radius:var(--radius-pill);color:var(--text-2);font-size:12px;padding:6px 13px;cursor:pointer;animation:ocrc-rise .22s var(--ease-out, ease-out) backwards;transition:border-color .12s var(--ease, ease),color .12s var(--ease, ease)}.chip.svelte-1hbn5f9:hover{border-color:var(--accent);color:var(--text)}.dismiss.svelte-1hbn5f9{background:transparent;border:none;color:var(--text-4);font-size:12px;cursor:pointer;padding:6px 8px}.dismiss.svelte-1hbn5f9:hover{color:var(--text-2)}.wrap.svelte-1f5vmb3{position:relative;min-width:0}.chip.svelte-1f5vmb3{display:flex;align-items:center;gap:5px;min-height:24px;min-width:0;max-width:100%;box-sizing:border-box;background:transparent;border:1px solid var(--border);color:var(--text-2);border-radius:var(--radius-pill);padding:5px 11px;font-size:11.5px;white-space:nowrap;cursor:pointer;transition:border-color .15s,color .15s}.chip.svelte-1f5vmb3 .icon,.chip.svelte-1f5vmb3 svg{flex-shrink:0}.txt.svelte-1f5vmb3{min-width:0;flex:0 1 auto;overflow:hidden;text-overflow:ellipsis}.chip.icon.svelte-1f5vmb3{display:none}@media (max-width: 820px){.chip.svelte-1f5vmb3{display:none}.chip.icon.svelte-1f5vmb3{display:inline-flex;justify-content:center;min-width:34px;height:30px;padding:0 8px;color:var(--text-2)}}@media (max-width: 820px){.pop.svelte-1f5vmb3{position:fixed;left:12px;right:12px;width:auto;bottom:calc(var(--composer-h, 120px) + env(safe-area-inset-bottom,0px) + 14px)}}.chip.svelte-1f5vmb3:hover{border-color:var(--accent);color:var(--text)}.pop.svelte-1f5vmb3{position:absolute;bottom:36px;left:0;width:220px;max-height:min(52vh,360px);overflow-y:auto;background:var(--bg-elev);border:1px solid var(--border);border-radius:var(--radius);padding:8px;box-shadow:0 16px 40px #00000080;z-index:var(--z-popover)}.opt.svelte-1f5vmb3{display:flex;justify-content:space-between;align-items:center;width:100%;background:transparent;border:none;color:var(--text);padding:6px 8px;border-radius:var(--radius-sm);cursor:pointer;font-size:12px;text-align:left}.opt.svelte-1f5vmb3:hover,.opt.sel.svelte-1f5vmb3{background:var(--accent-2)}.clear.svelte-1f5vmb3{color:var(--text-3);margin-top:4px}.none.svelte-1f5vmb3{padding:6px 8px}.wrap.svelte-1005b73{position:relative;min-width:0}.chip.svelte-1005b73{display:flex;align-items:center;gap:5px;min-height:24px;min-width:0;max-width:min(150px,100%);box-sizing:border-box;background:transparent;border:1px solid var(--border);color:var(--text-2);border-radius:var(--radius-pill);padding:5px 11px;font-size:11.5px;white-space:nowrap;cursor:pointer;transition:border-color .15s,color .15s}.chip.svelte-1005b73:hover{border-color:var(--accent);color:var(--text)}.chip.svelte-1005b73 svg{flex-shrink:0}.txt.svelte-1005b73{min-width:0;flex:0 1 auto;overflow:hidden;text-overflow:ellipsis}.chip.icon.svelte-1005b73{display:none}@media (max-width: 820px){.chip.svelte-1005b73{display:none}.chip.icon.svelte-1005b73{display:inline-flex;justify-content:center;min-width:34px;height:30px;padding:0 8px;color:var(--text-2)}}@media (max-width: 820px){.pop.svelte-1005b73{position:fixed;left:12px;right:12px;width:auto;bottom:calc(var(--composer-h, 120px) + env(safe-area-inset-bottom,0px) + 14px)}}.pop.svelte-1005b73{position:absolute;bottom:36px;right:0;width:248px;max-height:min(56vh,400px);overflow-y:auto;background:var(--bg-elev);border:1px solid var(--border);border-radius:var(--radius);padding:8px;box-shadow:0 16px 40px #00000080;z-index:var(--z-popover)}.prov.svelte-1005b73{padding:7px 8px 2px;color:var(--text-3)}.opt.svelte-1005b73{display:flex;justify-content:space-between;align-items:center;width:100%;background:transparent;border:none;color:var(--text);padding:6px 8px;border-radius:var(--radius-sm);cursor:pointer;font-size:12px;text-align:left}.opt.svelte-1005b73:hover,.opt.sel.svelte-1005b73{background:var(--accent-2)}.clear.svelte-1005b73{color:var(--text-3);margin-top:4px}.none.svelte-1005b73{padding:6px 8px}.controls.svelte-dkbq22{display:contents}.wrap.svelte-dkbq22{position:relative;min-width:0}.chip.svelte-dkbq22{display:flex;align-items:center;gap:5px;min-height:24px;min-width:0;max-width:100%;box-sizing:border-box;background:transparent;border:1px solid var(--border);color:var(--text-2);border-radius:var(--radius-pill);padding:5px 11px;font-size:11.5px;white-space:nowrap;cursor:pointer;transition:border-color .15s,color .15s}.chip.svelte-dkbq22:hover{border-color:var(--accent);color:var(--text)}.chip.svelte-dkbq22 svg{flex-shrink:0}.txt.svelte-dkbq22{min-width:0;flex:0 1 auto;overflow:hidden;text-overflow:ellipsis}.pop.svelte-dkbq22{position:absolute;bottom:44px;left:0;width:220px;background:var(--bg-elev);border:1px solid var(--border);border-radius:var(--radius);padding:8px;box-shadow:0 16px 40px #00000080;z-index:var(--z-popover)}.opt.svelte-dkbq22{display:flex;align-items:center;width:100%;background:transparent;border:none;color:var(--text);padding:6px 8px;border-radius:var(--radius-sm);cursor:pointer;font-size:12px}.opt.svelte-dkbq22:hover,.opt.sel.svelte-dkbq22{background:var(--accent-2)}.wrap.svelte-4bdpxt{position:relative}.ring.svelte-4bdpxt{position:relative;display:inline-flex;align-items:center;gap:5px;background:transparent;border:none;padding:2px;cursor:pointer;color:var(--text-3)}.ring.svelte-4bdpxt svg:where(.svelte-4bdpxt){width:20px;height:20px}.track.svelte-4bdpxt{fill:none;stroke:var(--border);stroke-width:3}.arc.svelte-4bdpxt{fill:none;stroke-width:3;stroke-linecap:round;transition:stroke-dasharray .3s ease}.pct.svelte-4bdpxt{font-size:10.5px;color:var(--text-3)}@media (max-width: 820px){.pct.svelte-4bdpxt{display:none}.ring.svelte-4bdpxt svg:where(.svelte-4bdpxt){width:22px;height:22px}}.pct.svelte-4bdpxt i:where(.svelte-4bdpxt){font-style:normal;font-size:8.5px}.ring.svelte-4bdpxt:hover .pct:where(.svelte-4bdpxt){color:var(--text-2)}.pop.svelte-4bdpxt{position:absolute;bottom:calc(100% + 10px);left:0;width:300px;background:var(--bg-elev);border:1px solid var(--border);border-radius:var(--radius);box-shadow:0 16px 40px #00000047;padding:12px 14px;z-index:var(--z-popover);animation:ocrc-pop .14s var(--ease-out, ease-out);cursor:default}@media (max-width: 820px){.pop.svelte-4bdpxt{width:min(72vw,300px);box-sizing:border-box;left:50%;right:auto;transform:translate(-50%)}}.head.svelte-4bdpxt{display:flex;align-items:baseline;justify-content:space-between;margin-bottom:8px}.label.svelte-4bdpxt{font-size:11px;font-weight:600;color:var(--text-2)}.dim.svelte-4bdpxt{font-size:10.5px;color:var(--text-3)}.bar.svelte-4bdpxt{display:flex;height:6px;border-radius:var(--radius-bar);overflow:hidden;background:var(--border-2)}.seg.svelte-4bdpxt{height:100%}.legend.svelte-4bdpxt{display:flex;flex-wrap:wrap;gap:4px 10px;margin:6px 0 8px}.lg.svelte-4bdpxt{display:inline-flex;align-items:center;gap:4px;font-size:10px;color:var(--text-3)}.dot.svelte-4bdpxt{width:6px;height:6px;border-radius:50%;flex-shrink:0}.rows.svelte-4bdpxt{display:flex;flex-direction:column}.row.svelte-4bdpxt{display:flex;justify-content:space-between;padding:3px 0;font-size:11.5px;color:var(--text-3);border-top:1px solid var(--border-2)}.row.svelte-4bdpxt:first-child{border-top:none}.row.svelte-4bdpxt .mono:where(.svelte-4bdpxt){color:var(--text-2);font-size:11px}.composer.svelte-60fagq{background:var(--bg);padding:6px 24px 18px}@media (min-width: 821px){.composer.svelte-60fagq{background:var(--bg-canvas, var(--bg));padding:6px 28px 18px}}@media (max-width: 820px){.composer.svelte-60fagq{padding:0 0 max(8px,calc(env(safe-area-inset-bottom,0px) + 10px - var(--kb, 0px)))}.box.svelte-60fagq{padding:7px 8px 7px 14px;border-radius:var(--radius-pill)}.footer.svelte-60fagq{margin-top:4px;gap:6px}.footer.svelte-60fagq .wrap{min-width:0;flex-shrink:1}.footer.svelte-60fagq .chip{max-width:min(36vw,100%)}.send.svelte-60fagq,.attach.svelte-60fagq{flex-shrink:0}.send.svelte-60fagq,.attach.svelte-60fagq{width:44px;height:44px}}.dock.svelte-60fagq{max-width:none;margin:0}.error.svelte-60fagq{color:var(--err);font-size:.8em;margin:0 0 8px;font-family:var(--font-mono)}.box.svelte-60fagq{position:relative;background:var(--bg-input);border:1px solid var(--border);border-radius:var(--radius);padding:12px 14px 8px;box-shadow:var(--shadow-composer);transition:border-color .15s ease}.box.focused.svelte-60fagq,.box.has-text.svelte-60fagq{border-color:var(--accent)}textarea.svelte-60fagq{display:block;width:100%;box-sizing:border-box;background:transparent;border:none;padding:2px 4px;color:var(--text);font-family:var(--font-sans);font-size:16px;line-height:1.5;resize:none;min-height:24px;max-height:140px;overflow-y:auto}textarea.svelte-60fagq:focus{outline:none}textarea.svelte-60fagq::placeholder{color:var(--text-4)}.footer.svelte-60fagq{display:flex;align-items:center;gap:8px;margin-top:6px;min-width:0}.spacer.svelte-60fagq{flex:1;min-width:8px}@media (max-width: 720px){.send-hint.svelte-60fagq,.hint.command.svelte-60fagq{display:none}}.hint.svelte-60fagq{background:transparent;border:none;color:var(--text-4);font-family:var(--font-mono);font-size:11px;white-space:nowrap;padding:0;min-width:0;overflow:hidden;text-overflow:ellipsis}.hint.command.svelte-60fagq{cursor:pointer;transition:color .15s ease}.hint.command.svelte-60fagq:hover{color:var(--text-2)}.send.svelte-60fagq{display:inline-flex;align-items:center;justify-content:center;width:33px;height:33px;border-radius:50%;border:none;background:var(--accent);color:var(--accent-ink);cursor:pointer;transition:opacity .15s ease,transform .1s ease;flex-shrink:0}.send.svelte-60fagq:not(:disabled):hover{transform:scale(1.06)}.send.stop.svelte-60fagq:disabled{background:var(--accent);color:var(--accent-ink);cursor:pointer}.send.stop.svelte-60fagq:not(:disabled):active{transform:scale(.9)}.send.svelte-60fagq:disabled{background:var(--border);color:var(--text-3);cursor:not-allowed}.thumbnails.svelte-60fagq{display:flex;gap:8px;flex-wrap:wrap;margin-bottom:8px}.thumb.svelte-60fagq{position:relative;width:56px;height:56px;border-radius:var(--radius-xs);overflow:hidden;border:1px solid var(--border);flex-shrink:0}.thumb.svelte-60fagq img:where(.svelte-60fagq){width:100%;height:100%;object-fit:cover;display:block}.remove.svelte-60fagq{position:absolute;top:2px;right:2px;width:18px;height:18px;border-radius:50%;border:none;background:#0009;color:var(--text);font-size:12px;line-height:1;cursor:pointer;display:flex;align-items:center;justify-content:center;padding:0}.remove.svelte-60fagq:hover{background:#000c}.attach.svelte-60fagq{display:inline-flex;align-items:center;justify-content:center;width:28px;height:28px;border-radius:var(--radius-xs);border:none;background:transparent;color:var(--text-3);cursor:pointer;padding:0;flex-shrink:0}.attach.svelte-60fagq:hover{background:#ffffff0f;color:var(--text)}.mention-dropdown.svelte-60fagq{position:absolute;bottom:100%;left:0;right:0;max-height:180px;overflow-y:auto;background:var(--bg-elev);border:1px solid var(--border);border-radius:var(--radius-sm);margin-bottom:4px;box-shadow:0 -4px 16px #00000059;padding:4px;z-index:var(--z-dropdown)}.mention-row.svelte-60fagq{display:block;width:100%;text-align:left;background:transparent;border:none;color:var(--text);font-family:var(--font-mono);font-size:.85em;padding:6px 8px;border-radius:var(--radius-sm);cursor:pointer;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.mention-row.active.svelte-60fagq,.mention-row.svelte-60fagq:hover{background:var(--accent-2)}.switcher.svelte-rgafhj{position:relative;display:inline-flex;min-width:0}.trigger.svelte-rgafhj{display:inline-flex;align-items:center;gap:7px;min-width:0;padding:5px 9px 5px 5px;background:var(--bg-elev);border:1px solid var(--border);border-radius:var(--radius-pill);color:var(--text-2);cursor:pointer;transition:border-color .12s ease,background .12s ease}.trigger.svelte-rgafhj:hover{border-color:var(--accent);background:var(--bg-elev2)}.glyph-tile.svelte-rgafhj{width:22px;height:22px;display:inline-grid;place-items:center;border-radius:50%;border:1px solid transparent;font-family:var(--font-mono);font-size:10px;font-weight:700;flex-shrink:0}.status-dot.svelte-rgafhj{width:7px;height:7px;border-radius:50%;border:1.5px solid transparent;flex-shrink:0;box-sizing:border-box}.sr-only.svelte-rgafhj{position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip:rect(0,0,0,0);white-space:nowrap;border:0}.status-dot.online.svelte-rgafhj{background:var(--accent);border-color:var(--accent)}.status-dot.connecting.svelte-rgafhj{background:var(--warn);border-color:var(--warn);animation:ocrc-pulse 1.2s ease-in-out infinite}.status-dot.offline.svelte-rgafhj{background:transparent;border:1.5px solid var(--text-4)}.title.svelte-rgafhj{font-size:13px;font-weight:600;color:var(--text);white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.caret.svelte-rgafhj{font-size:9px;color:var(--text-3);flex-shrink:0}.popover.svelte-rgafhj{position:absolute;top:calc(100% + 6px);left:0;width:min(280px,calc(100vw - 32px));background:var(--bg-elev);border:1px solid var(--border);border-radius:var(--radius);box-shadow:0 18px 50px #0000008c;z-index:var(--z-popover);overflow:hidden;animation:svelte-rgafhj-ocrc-pop .14s ease}@keyframes svelte-rgafhj-ocrc-pop{0%{opacity:0;transform:translateY(-6px)}to{opacity:1;transform:translateY(0)}}.list.svelte-rgafhj{max-height:320px;overflow-y:auto;padding:6px;display:flex;flex-direction:column;gap:2px}.row.svelte-rgafhj{display:flex;align-items:center;gap:10px;width:100%;padding:8px 10px;background:transparent;border:none;border-radius:var(--radius-sm);color:var(--text);cursor:pointer;text-align:left;transition:background .12s ease}.row.svelte-rgafhj:hover,.row.active.svelte-rgafhj{background:var(--accent-2)}.dot.svelte-rgafhj{width:7px;height:7px;border-radius:50%;border:1.5px solid transparent;flex-shrink:0;box-sizing:border-box;background:transparent;border-color:var(--text-4)}.dot.active.svelte-rgafhj{background:var(--accent);border-color:var(--accent)}.info.svelte-rgafhj{display:flex;flex-direction:column;gap:2px;min-width:0;flex:1}.row-title.svelte-rgafhj{font-size:12.5px;font-weight:600;color:var(--text);white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.row-meta.svelte-rgafhj{font-size:10.5px;color:var(--text-3)}.check.svelte-rgafhj{font-size:13px;color:var(--accent);flex-shrink:0}.empty.svelte-rgafhj{padding:14px 10px;color:var(--text-3);font-size:12px}.footer.svelte-rgafhj{border-top:1px solid var(--border);padding:6px}.new-session.svelte-rgafhj{display:flex;align-items:center;width:100%;padding:8px 10px;background:transparent;border:1px dashed var(--border);border-radius:var(--radius-sm);color:var(--text-2);font-size:12px;cursor:pointer;transition:color .12s ease,border-color .12s ease,background .12s ease}.new-session.svelte-rgafhj:hover{color:var(--accent);border-color:var(--accent-line);background:var(--accent-2)}.new-session.svelte-rgafhj:disabled{opacity:.5;cursor:default}.ball.svelte-w3h0m4,.plan-card.svelte-w3h0m4{display:none}.ball.svelte-w3h0m4{position:absolute;right:23px;bottom:calc(var(--composer-h, 120px) + 10px);z-index:var(--z-hud);width:38px;height:38px;padding:0;border:1px solid var(--border-2);border-radius:50%;background:var(--bg-elev);box-shadow:0 6px 18px #00000038;cursor:pointer;place-items:center;transition:transform .15s var(--ease, ease);animation:ocrc-pop .22s var(--ease-out, ease-out) backwards}.ball.svelte-w3h0m4:active{transform:scale(.92)}.ghost.svelte-w3h0m4{position:absolute;right:16px;bottom:calc(var(--composer-h, 120px) + 10px);z-index:var(--z-hud);display:flex;align-items:center;gap:8px;padding:5px 10px;background:transparent;border:1px dashed var(--border);border-radius:var(--radius);color:var(--text-3);font:inherit;cursor:pointer;opacity:.75}.ghost.svelte-w3h0m4:hover{opacity:1;color:var(--text-2);border-color:var(--accent-line)}.ghost.svelte-w3h0m4 .label:where(.svelte-w3h0m4){text-transform:uppercase;letter-spacing:.12em;font-size:9.5px;font-weight:600}.ghost.svelte-w3h0m4 .bar-count:where(.svelte-w3h0m4){font-size:10.5px}.ghost.svelte-w3h0m4 .bar-count:where(.svelte-w3h0m4) i:where(.svelte-w3h0m4){font-style:normal;color:var(--text-3);padding:0 1px}.bar.svelte-w3h0m4{display:none;position:absolute;right:16px;bottom:calc(var(--composer-h, 120px) + 10px);z-index:var(--z-hud);align-items:center;gap:10px;padding:7px 12px;background:var(--bg-elev);border:1px solid var(--border);border-radius:var(--radius);box-shadow:var(--shadow-card);cursor:pointer;font:inherit;animation:ocrc-pop .18s var(--ease-out, ease-out) backwards}.bar.svelte-w3h0m4 .label:where(.svelte-w3h0m4){text-transform:uppercase;letter-spacing:.12em;font-size:9.5px;font-weight:600;color:var(--text-3)}.bar-count.svelte-w3h0m4{font-size:11px;color:var(--text)}.bar-count.svelte-w3h0m4 i:where(.svelte-w3h0m4){font-style:normal;color:var(--text-3);padding:0 1px}.bar.svelte-w3h0m4 .badge:where(.svelte-w3h0m4){min-width:15px;height:15px;padding:0 4px;display:grid;place-items:center;background:var(--accent);color:var(--accent-ink);border-radius:var(--radius-pill);font-size:9px;font-weight:700}.bar.svelte-w3h0m4 .caret:where(.svelte-w3h0m4){width:13px;height:13px;color:var(--text-3)}.bar.svelte-w3h0m4:hover{border-color:var(--accent-line)}.ring.svelte-w3h0m4{position:absolute;top:0;right:0;bottom:0;left:0;width:100%;height:100%}.ring.svelte-w3h0m4 circle:where(.svelte-w3h0m4){fill:none;stroke-linecap:round}.track.svelte-w3h0m4{stroke:var(--border);stroke-width:3.5}.arc.svelte-w3h0m4{stroke:var(--accent);stroke-width:3.5;transition:stroke-dasharray .4s var(--ease, ease)}.ball-count.svelte-w3h0m4{position:relative;font-size:9.5px;color:var(--text);letter-spacing:-.02em}.ball-count.svelte-w3h0m4 i:where(.svelte-w3h0m4){font-style:normal;color:var(--text-3);padding:0 1px}.badge.svelte-w3h0m4{position:absolute;bottom:-8px;right:-9px;min-width:15px;height:15px;padding:0 3px;display:grid;place-items:center;background:var(--accent);color:var(--accent-ink);border-radius:var(--radius-pill);font-size:9px;font-weight:700;box-sizing:border-box;box-shadow:0 0 0 2px var(--bg)}.scrim.svelte-w3h0m4{position:absolute;top:0;right:0;bottom:0;left:0;z-index:var(--z-hud);background:var(--scrim);border:none;padding:0}.plan-card.svelte-w3h0m4{position:absolute;right:16px;bottom:calc(var(--composer-h, 120px) + 46px);z-index:calc(var(--z-hud) + 1);width:min(86vw,380px);background:var(--bg-elev);border:1px solid var(--border);border-radius:var(--radius);box-shadow:0 18px 48px #00000073;overflow:visible;transform-origin:85% 100%;animation:ocrc-pop .18s var(--ease-out, ease-out) backwards}.hd.svelte-w3h0m4{display:flex;align-items:center;gap:7px;padding:10px 10px 10px 12px}.label.svelte-w3h0m4{flex-shrink:0;text-transform:uppercase;letter-spacing:.14em;color:var(--text-3);font-size:9.5px;font-weight:600}.title.svelte-w3h0m4{flex:1;min-width:0;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;font-size:12px;font-weight:600;color:var(--text)}.dots.svelte-w3h0m4,.close.svelte-w3h0m4{flex-shrink:0;width:26px;height:26px;display:grid;place-items:center;margin:0;padding:0;background:transparent;border:none;border-radius:var(--radius-sm);color:var(--text-3);cursor:pointer}.dots.svelte-w3h0m4{font-size:14px;line-height:1}.close.svelte-w3h0m4 svg:where(.svelte-w3h0m4){width:15px;height:15px}.dots.svelte-w3h0m4:active,.close.svelte-w3h0m4:active{background:var(--bg-elev2);color:var(--text)}.menu.svelte-w3h0m4{position:absolute;top:40px;right:8px;z-index:1;min-width:168px;display:flex;flex-direction:column;padding:4px;background:var(--bg-elev2);border:1px solid var(--border);border-radius:var(--radius-sm);box-shadow:0 8px 24px #00000040}.menu.svelte-w3h0m4 button:where(.svelte-w3h0m4){margin:0;padding:8px 10px;background:transparent;border:none;border-radius:var(--radius-xs);color:var(--text-2);font-size:12px;text-align:left;cursor:pointer}.menu.svelte-w3h0m4 button:where(.svelte-w3h0m4):hover,.menu.svelte-w3h0m4 button:where(.svelte-w3h0m4):active{background:var(--bg-elev);color:var(--text)}.body.svelte-w3h0m4{padding:2px 12px 12px;border-top:1px solid var(--border-2);max-height:calc(52vh - 47px);overflow-y:auto;-webkit-overflow-scrolling:touch}.prog.svelte-w3h0m4{padding:9px 0 7px;font-size:11px;color:var(--text-3)}.grp.svelte-w3h0m4{display:flex;align-items:center;gap:6px;margin:2px 0;padding:3px 0;background:transparent;border:none;color:var(--text-3);font-size:11.5px;cursor:pointer}.grp.static.svelte-w3h0m4{cursor:default}.sub-label.svelte-w3h0m4{text-transform:uppercase;letter-spacing:.12em;font-size:9.5px;font-weight:600}.caret.svelte-w3h0m4{width:12px;height:12px;transition:transform .16s ease;transform:rotate(0)}.caret.open.svelte-w3h0m4{transform:rotate(90deg)}.row.svelte-w3h0m4{display:flex;align-items:flex-start;gap:8px;padding:3px 0}.box.svelte-w3h0m4{flex-shrink:0;width:13px;height:13px;margin-top:2px;border-radius:var(--radius-xs);display:grid;place-items:center;border:1.5px solid var(--border)}.row.done.svelte-w3h0m4 .box:where(.svelte-w3h0m4){background:var(--accent);border-color:var(--accent)}.check.svelte-w3h0m4{font-size:9px;line-height:1;color:var(--accent-ink)}.dot.svelte-w3h0m4{width:5px;height:5px;border-radius:50%;background:var(--accent);animation:ocrc-pulse 1.2s ease-in-out infinite}.row.running.svelte-w3h0m4 .box:where(.svelte-w3h0m4){border-color:var(--accent)}.tx.svelte-w3h0m4{font-size:12px;line-height:1.45;color:var(--text-2);min-width:0}.row.done.svelte-w3h0m4 .tx:where(.svelte-w3h0m4){color:var(--text-3);text-decoration:line-through;text-decoration-color:var(--border)}.row.running.svelte-w3h0m4 .tx:where(.svelte-w3h0m4){color:var(--text);font-weight:500}.sub-dot.svelte-w3h0m4{flex-shrink:0;width:6px;height:6px;border-radius:50%;background:var(--accent);animation:ocrc-pulse 1.2s ease-in-out infinite}.sub-check.svelte-w3h0m4{flex-shrink:0;font-size:10px;line-height:1;color:var(--text-3)}.row.sub.idle.svelte-w3h0m4 .tx:where(.svelte-w3h0m4){color:var(--text-3)}.row.sub.idle.svelte-w3h0m4 .sub-count:where(.svelte-w3h0m4){color:var(--text-3)}.row.sub.svelte-w3h0m4{padding-left:2px}.row.sub.jump.svelte-w3h0m4{margin:0;padding:3px 2px;width:100%;background:transparent;border:none;border-radius:var(--radius-xs);text-align:left;cursor:pointer;color:inherit;font:inherit;align-items:center}.row.sub.jump.svelte-w3h0m4:active{background:var(--bg-elev2)}.row.sub.jump.svelte-w3h0m4 .tx:where(.svelte-w3h0m4){flex:1;min-width:0}.go.svelte-w3h0m4{flex-shrink:0;width:12px;height:12px;color:var(--text-3)}.crumb.svelte-w3h0m4{display:flex;align-items:center;gap:6px;width:100%;margin:9px 0 0;padding:6px 8px;background:var(--bg-input);border:1px solid var(--border);border-radius:var(--radius-sm);color:var(--text-2);font:inherit;font-size:11.5px;cursor:pointer;text-align:left}.crumb.svelte-w3h0m4 svg:where(.svelte-w3h0m4){width:12px;height:12px;flex-shrink:0}.crumb.svelte-w3h0m4:active{color:var(--text);border-color:var(--accent)}.sub-count.svelte-w3h0m4{flex-shrink:0;margin-top:1px;font-size:10.5px;color:var(--accent);min-width:26px}@media (max-width: 820px){.ball.svelte-w3h0m4{display:grid}.plan-card.svelte-w3h0m4{display:block}}@media (min-width: 821px){.bar.svelte-w3h0m4{display:flex;top:60px;bottom:auto}.plan-card.svelte-w3h0m4{display:block;width:min(60vw,380px);top:60px;bottom:auto;transform-origin:85% 0}}.jump.svelte-eho102{position:absolute;bottom:calc(var(--composer-h, 120px) + 14px + env(safe-area-inset-bottom,0px));left:50%;transform:translate(-50%);z-index:var(--z-sticky);animation:ocrc-fade .15s var(--ease-out, ease-out) backwards;display:inline-flex;align-items:center;gap:5px;padding:7px 13px;background:var(--bg-elev);border:1px solid var(--border);border-radius:var(--radius-pill);color:var(--text-2);font-size:12px;cursor:pointer;box-shadow:var(--shadow-card)}.jump.svelte-eho102:hover{color:var(--text);border-color:var(--text-4)}.load-earlier.svelte-eho102{display:block;margin:0 auto 14px;padding:6px 14px;background:var(--bg-elev);border:1px solid var(--border);border-radius:var(--radius-pill);color:var(--text-2);font-size:11.5px;cursor:pointer;animation:ocrc-rise-sm .16s var(--ease-out, ease-out) backwards}.load-earlier.svelte-eho102:hover{color:var(--text);border-color:var(--text-4)}.load-earlier.svelte-eho102:disabled{opacity:.55;cursor:default}.chat.svelte-eho102{flex:1;overflow-y:auto;overscroll-behavior:contain;-webkit-overflow-scrolling:touch;scrollbar-gutter:stable}@media (max-width: 820px){.chat.svelte-eho102{-webkit-mask-image:linear-gradient(to bottom,#000 calc(100% - var(--kb, 0px) - var(--composer-h, 120px)),rgba(0,0,0,.12) calc(100% - var(--kb, 0px)));mask-image:linear-gradient(to bottom,#000 calc(100% - var(--kb, 0px) - var(--composer-h, 120px)),#0000001f calc(100% - var(--kb, 0px)))}}.sub-header.svelte-eho102{position:sticky;top:0;z-index:var(--z-sticky);display:flex;align-items:center;justify-content:space-between;gap:12px;padding:11px 28px;background:var(--bg);border-bottom:1px solid var(--border-2)}@media (min-width: 821px){.sub-header.svelte-eho102{background:var(--bg-canvas, var(--bg))}}.sub-header.svelte-eho102 .left:where(.svelte-eho102){display:flex;align-items:center;gap:10px;min-width:0}.expand.svelte-eho102{display:inline-flex;align-items:center;justify-content:center;width:26px;height:26px;background:transparent;border:1px solid var(--border-2);border-radius:var(--radius-pill);color:var(--text-3);cursor:pointer;flex-shrink:0;transition:color .12s ease,border-color .12s ease,background .12s ease}.expand.svelte-eho102:hover{color:var(--text);border-color:var(--accent);background:var(--accent-2)}.back.svelte-eho102,.inspect.svelte-eho102{display:none}.pane-toggle.svelte-eho102{display:none;align-items:center;justify-content:center;width:30px;height:30px;flex-shrink:0;background:transparent;border:1px solid var(--border-2);border-radius:var(--radius-sm);color:var(--text-3);cursor:pointer;transition:color .12s ease,border-color .12s ease}.pane-toggle.svelte-eho102:hover{color:var(--text);border-color:var(--text-4)}@media (min-width: 821px){.pane-toggle.svelte-eho102{display:inline-flex}}@media (max-width: 820px){.expand.svelte-eho102{display:none}.back.svelte-eho102,.inspect.svelte-eho102{display:inline-flex;align-items:center;justify-content:center;width:44px;height:44px;flex-shrink:0;background:var(--bg-elev);border:1px solid var(--border);border-radius:var(--radius-pill);color:var(--text-2);cursor:pointer}.back.svelte-eho102:active,.inspect.svelte-eho102:active{background:var(--bg-elev2)}}.sub-header.svelte-eho102 .branch:where(.svelte-eho102){min-width:0;overflow:hidden;white-space:nowrap;text-overflow:ellipsis;font-size:11px;color:var(--hl-purple);background:var(--bg-elev);border:1px solid var(--border-2);border-radius:var(--radius-pill);padding:2px 8px}.sub-header.svelte-eho102 .right:where(.svelte-eho102){display:flex;align-items:center;gap:8px;flex-shrink:0}.pill.svelte-eho102{display:inline-flex;align-items:center;gap:6px;padding:3px 9px;border-radius:var(--radius-pill);background:var(--bg-elev);border:1px solid var(--border);color:var(--text-2);font-size:11px;min-width:0;max-width:30vw;overflow:hidden;white-space:nowrap;text-overflow:ellipsis}.pill.svelte-eho102 .dot:where(.svelte-eho102){width:6px;height:6px;border-radius:50%;background:var(--text-3);animation:ocrc-pulse 1.2s ease-in-out infinite}.idle.svelte-eho102{font-size:11px;color:var(--text-3)}.restore.svelte-eho102{background:transparent;border:1px dashed var(--border-2);color:var(--text-3);border-radius:var(--radius-pill);padding:3px 10px;font-size:11px;cursor:pointer;transition:color .15s ease,border-color .15s ease}.restore.svelte-eho102:hover{color:var(--text);border-color:var(--text-4)}.stream.svelte-eho102{width:100%;box-sizing:border-box;padding:22px 28px 8px;display:flex;flex-direction:column}.stream.svelte-eho102>*:last-child:not(.stream-end){animation:ocrc-rise var(--dur-enter, .2s) var(--ease-out, ease-out) backwards}.stream.suppressed.svelte-eho102>*:last-child:not(.stream-end){animation:none}.stream-end.svelte-eho102{height:1px;flex-shrink:0}.stream.svelte-eho102>*:not(:last-child){content-visibility:auto;contain-intrinsic-size:auto 120px}.loading.svelte-eho102{display:flex;justify-content:center;gap:7px;padding:18vh 24px 40px}.ldot.svelte-eho102{width:6px;height:6px;border-radius:50%;background:var(--text-3);animation:ocrc-pulse 1.2s ease-in-out infinite}.ldot.svelte-eho102:nth-child(2){animation-delay:.15s}.ldot.svelte-eho102:nth-child(3){animation-delay:.3s}.empty.svelte-eho102{display:flex;flex-direction:column;align-items:center;gap:6px;text-align:center;padding:18vh 24px 40px;color:var(--text-3);font-size:14px}.empty-mark.svelte-eho102{width:40px;height:40px;margin-bottom:6px}.empty-title.svelte-eho102{margin:0;font-family:var(--font-serif);font-size:19px;font-weight:600;color:var(--text);letter-spacing:.01em}.empty-hint.svelte-eho102{margin:0;max-width:420px;line-height:1.6;font-size:12.5px}@media (min-width: 821px){.composer-float.svelte-eho102 .composer{padding-right:calc(24px + var(--sbw, 0px))}}@media (max-width: 820px){.composer-float.svelte-eho102{position:absolute;left:0;right:0;bottom:0;z-index:var(--z-dropdown);background:transparent;transform:translateY(calc(-1 * var(--kb, 0px)));transition:transform .25s ease-out;will-change:transform}.composer-float.svelte-eho102 .composer{background:transparent}.stream.svelte-eho102{padding:14px 12px calc(var(--composer-h, 120px) + var(--kb, 0px) + 8px)}.sub-header.svelte-eho102{gap:8px;padding:calc(10px + env(safe-area-inset-top,0px)) 8px 10px}.sub-header.svelte-eho102 .left:where(.svelte-eho102){min-width:0}.composer-float.svelte-eho102{background:var(--bg);border-top:1px solid var(--border-2);padding:6px 10px calc(6px + env(safe-area-inset-bottom,0px))}}
@@ -1,4 +1,4 @@
1
- var Si=Object.defineProperty;var Ri=(t,e,n)=>e in t?Si(t,e,{enumerable:!0,configurable:!0,writable:!0,value:n}):t[e]=n;var ke=(t,e,n)=>Ri(t,typeof e!="symbol"?e+"":e,n);import{z as Ni,ai as Pe,ag as Gn,a8 as c,aG as Ii,k as Oi,aV as Ar,aP as Zt,aQ as In,ah as Pt,a as bs,H as Mi,ak as Sr,U as Mt,T as On,g as lt,G as qn,a0 as Li,aT as Ci,Z as Di,am as Pi,x as Vn,f as Bi,e as $i,au as ne,aW as Rr,E as zi,D as Ui,aL as _s,aA as vs,I as Mn,B as Fi,K as Hi,at as Gi,_ as qi,ac as Lt,aF as cn,ad as Es,d as ys,c as Wi,a$ as ue,u as Ki,y as Ln,aH as Zi,aj as ji,i as Yi,R as Xi,o as Vi,n as Qi,C as Nr,t as Ir,m as Ji,A as ea,N as ta,ae as na,ab as ra,l as ks,F as sa,v as ia,ar as Ts,b1 as aa,b4 as I,aJ as xs,al as oa,a_ as la,b8 as Ue,a9 as ca,w as U,a7 as ua,V as te,aK as O,aE as Ye,J as L,aR as de,aB as Xe,a6 as q,aw as ws,aU as W,a3 as Be,ay as Qn,ap as me,aq as ct,aO as K,M as vt,a4 as Et,b5 as un,Q as da}from"./BjY4dxcB.js";import{b as fa}from"./CDb2pzeY.js";import"./CWj6FrbW.js";import{r as Ve,f as dn,k as pa}from"./CtMqSQTR.js";import{i as fe,a as ga,s as ha}from"./Chcp5gAM.js";import{p as ve}from"./vlg9iH2u.js";function fn(t,e){return e}function ma(t,e,n){for(var r=[],s=e.length,a,i=e.length,o=0;o<s;o++){let h=e[o];vs(h,()=>{if(a){if(a.pending.delete(h),a.done.add(h),a.pending.size===0){var p=t.outrogroups;Wn(t,Vn(a.done)),p.delete(a),p.size===0&&(t.outrogroups=null)}}else i-=1},!1)}if(i===0){var l=r.length===0&&n!==null;if(l){var u=n,f=u.parentNode;Hi(f),f.append(u),t.items.clear()}Wn(t,e,!l)}else a={pending:new Set(e),done:new Set},(t.outrogroups??(t.outrogroups=new Set)).add(a)}function Wn(t,e,n=!0){var r;if(t.pending.size>0){r=new Set;for(const i of t.pending.values())for(const o of i)r.add(t.items.get(o).e)}for(var s=0;s<e.length;s++){var a=e[s];if(r!=null&&r.has(a)){a.f|=lt;const i=document.createDocumentFragment();Gi(a,i)}else qi(e[s],n)}}var Or;function pn(t,e,n,r,s,a=null){var i=t,o=new Map,l=(e&ys)!==0;if(l){var u=t;i=Pe?Zt(Lt(u)):u.appendChild(On())}Pe&&Gn();var f=null,h=Di(()=>{var S=n();return Pi(S)?S:S==null?[]:Vn(S)}),p,E=new Map,y=!0;function x(S){A.effect.f&Ui||(A.pending.delete(S),A.fallback=f,ba(A,p,i,e,r),f!==null&&(p.length===0?f.f&lt?(f.f^=lt,Wt(f,null,i)):_s(f):vs(f,()=>{f=null})))}function g(S){A.pending.delete(S)}var w=Ni(()=>{p=c(h);var S=p.length;let D=!1;if(Pe){var _=Ii(i)===Oi;_!==(S===0)&&(i=Ar(),Zt(i),In(!1),D=!0)}for(var b=new Set,T=Mt,P=Ci(),F=0;F<S;F+=1){Pe&&Pt.nodeType===bs&&Pt.data===Mi&&(i=Pt,D=!0,In(!1));var Y=p[F],re=r(Y,F),Q=y?null:o.get(re);Q?(Q.v&&Sr(Q.v,Y),Q.i&&Sr(Q.i,F),P&&T.unskip_effect(Q.e)):(Q=_a(o,y?i:Or??(Or=On()),Y,re,F,s,e,n),y||(Q.e.f|=lt),o.set(re,Q)),b.add(re)}if(S===0&&a&&!f&&(y?f=qn(()=>a(i)):(f=qn(()=>a(Or??(Or=On()))),f.f|=lt)),S>b.size&&Li(),Pe&&S>0&&Zt(Ar()),!y)if(E.set(T,b),P){for(const[k,ce]of o)b.has(k)||T.skip_effect(ce.e);T.oncommit(x),T.ondiscard(g)}else x(T);D&&In(!0),c(h)}),A={effect:w,items:o,pending:E,outrogroups:null,fallback:f};y=!1,Pe&&(i=Pt)}function Ft(t){for(;t!==null&&!(t.f&Fi);)t=t.next;return t}function ba(t,e,n,r,s){var Y,re,Q,k,ce,se,m,C,M;var a=(r&Wi)!==0,i=e.length,o=t.items,l=Ft(t.effect.first),u,f=null,h,p=[],E=[],y,x,g,w;if(a)for(w=0;w<i;w+=1)y=e[w],x=s(y,w),g=o.get(x).e,g.f&lt||((re=(Y=g.nodes)==null?void 0:Y.a)==null||re.measure(),(h??(h=new Set)).add(g));for(w=0;w<i;w+=1){if(y=e[w],x=s(y,w),g=o.get(x).e,t.outrogroups!==null)for(const R of t.outrogroups)R.pending.delete(g),R.done.delete(g);if(g.f&Mn&&(_s(g),a&&((k=(Q=g.nodes)==null?void 0:Q.a)==null||k.unfix(),(h??(h=new Set)).delete(g))),g.f&lt)if(g.f^=lt,g===l)Wt(g,null,n);else{var A=f?f.next:l;g===t.effect.last&&(t.effect.last=g.prev),g.prev&&(g.prev.next=g.next),g.next&&(g.next.prev=g.prev),gt(t,f,g),gt(t,g,A),Wt(g,A,n),f=g,p=[],E=[],l=Ft(f.next);continue}if(g!==l){if(u!==void 0&&u.has(g)){if(p.length<E.length){var S=E[0],D;f=S.prev;var _=p[0],b=p[p.length-1];for(D=0;D<p.length;D+=1)Wt(p[D],S,n);for(D=0;D<E.length;D+=1)u.delete(E[D]);gt(t,_.prev,b.next),gt(t,f,_),gt(t,b,S),l=S,f=b,w-=1,p=[],E=[]}else u.delete(g),Wt(g,l,n),gt(t,g.prev,g.next),gt(t,g,f===null?t.effect.first:f.next),gt(t,f,g),f=g;continue}for(p=[],E=[];l!==null&&l!==g;)(u??(u=new Set)).add(l),E.push(l),l=Ft(l.next);if(l===null)continue}g.f&lt||p.push(g),f=g,l=Ft(g.next)}if(t.outrogroups!==null){for(const R of t.outrogroups)R.pending.size===0&&(Wn(t,Vn(R.done)),(ce=t.outrogroups)==null||ce.delete(R));t.outrogroups.size===0&&(t.outrogroups=null)}if(l!==null||u!==void 0){var T=[];if(u!==void 0)for(g of u)g.f&Mn||T.push(g);for(;l!==null;)!(l.f&Mn)&&l!==t.fallback&&T.push(l),l=Ft(l.next);var P=T.length;if(P>0){var F=r&ys&&i===0?n:null;if(a){for(w=0;w<P;w+=1)(m=(se=T[w].nodes)==null?void 0:se.a)==null||m.measure();for(w=0;w<P;w+=1)(M=(C=T[w].nodes)==null?void 0:C.a)==null||M.fix()}ma(t,T,F)}}a&&cn(()=>{var R,$;if(h!==void 0)for(g of h)($=(R=g.nodes)==null?void 0:R.a)==null||$.apply()})}function _a(t,e,n,r,s,a,i,o){var l=i&Bi?i&$i?Rr(n):ne(n,!1,!1):null,u=i&zi?Rr(s):null;return{v:l,i:u,e:qn(()=>(a(e,l??n,u??s,o),()=>{t.delete(r)}))}}function Wt(t,e,n){if(t.nodes)for(var r=t.nodes.start,s=t.nodes.end,a=e&&!(e.f&lt)?e.nodes.start:n;r!==null;){var i=Es(r);if(a.before(r),r===s)return;r=i}}function gt(t,e,n){e===null?t.effect.first=n:e.next=n,n===null?t.effect.last=e:n.prev=e}function Jn(t,e,n=!1,r=!1,s=!1,a=!1){var i=t,o="";if(n){var l=t;Pe&&(i=Zt(Lt(l)))}ue(()=>{var u=Ki;if(o===(o=e()??"")){Pe&&Gn();return}if(n&&!Pe){u.nodes=null,l.innerHTML=o,o!==""&&Ln(Lt(l),l.lastChild);return}if(u.nodes!==null&&(Zi(u.nodes.start,u.nodes.end),u.nodes=null),o!==""){if(Pe){Pt.data;for(var f=Gn(),h=f;f!==null&&(f.nodeType!==bs||f.data!=="");)h=f,f=Es(f);if(f===null)throw ji(),Yi;Ln(Pt,h),i=Zt(f);return}var p=r?Vi:s?Qi:void 0,E=Xi(r?"svg":s?"math":"template",p);E.innerHTML=o;var y=r||s?E:E.content;if(Ln(Lt(y),y.lastChild),r||s)for(;Lt(y);)i.before(Lt(y));else i.before(y)}})}const Mr=[...`
1
+ var Si=Object.defineProperty;var Ri=(t,e,n)=>e in t?Si(t,e,{enumerable:!0,configurable:!0,writable:!0,value:n}):t[e]=n;var ke=(t,e,n)=>Ri(t,typeof e!="symbol"?e+"":e,n);import{z as Ni,ai as Pe,ag as Gn,a8 as c,aG as Ii,k as Oi,aV as Ar,aP as Zt,aQ as In,ah as Pt,a as bs,H as Mi,ak as Sr,U as Mt,T as On,g as lt,G as qn,a0 as Li,aT as Ci,Z as Di,am as Pi,x as Vn,f as Bi,e as $i,au as ne,aW as Rr,E as zi,D as Ui,aL as _s,aA as vs,I as Mn,B as Fi,K as Hi,at as Gi,_ as qi,ac as Lt,aF as cn,ad as Es,d as ys,c as Wi,a$ as ue,u as Ki,y as Ln,aH as Zi,aj as ji,i as Yi,R as Xi,o as Vi,n as Qi,C as Nr,t as Ir,m as Ji,A as ea,N as ta,ae as na,ab as ra,l as ks,F as sa,v as ia,ar as Ts,b1 as aa,b4 as I,aJ as xs,al as oa,a_ as la,b8 as Ue,a9 as ca,w as U,a7 as ua,V as te,aK as O,aE as Ye,J as L,aR as de,aB as Xe,a6 as q,aw as ws,aU as W,a3 as Be,ay as Qn,ap as me,aq as ct,aO as K,M as vt,a4 as Et,b5 as un,Q as da}from"./BjY4dxcB.js";import{b as fa}from"./C_mXJaPY.js";import"./CWj6FrbW.js";import{r as Ve,f as dn,k as pa}from"./t4ji6lDi.js";import{i as fe,a as ga,s as ha}from"./Chcp5gAM.js";import{p as ve}from"./vlg9iH2u.js";function fn(t,e){return e}function ma(t,e,n){for(var r=[],s=e.length,a,i=e.length,o=0;o<s;o++){let h=e[o];vs(h,()=>{if(a){if(a.pending.delete(h),a.done.add(h),a.pending.size===0){var p=t.outrogroups;Wn(t,Vn(a.done)),p.delete(a),p.size===0&&(t.outrogroups=null)}}else i-=1},!1)}if(i===0){var l=r.length===0&&n!==null;if(l){var u=n,f=u.parentNode;Hi(f),f.append(u),t.items.clear()}Wn(t,e,!l)}else a={pending:new Set(e),done:new Set},(t.outrogroups??(t.outrogroups=new Set)).add(a)}function Wn(t,e,n=!0){var r;if(t.pending.size>0){r=new Set;for(const i of t.pending.values())for(const o of i)r.add(t.items.get(o).e)}for(var s=0;s<e.length;s++){var a=e[s];if(r!=null&&r.has(a)){a.f|=lt;const i=document.createDocumentFragment();Gi(a,i)}else qi(e[s],n)}}var Or;function pn(t,e,n,r,s,a=null){var i=t,o=new Map,l=(e&ys)!==0;if(l){var u=t;i=Pe?Zt(Lt(u)):u.appendChild(On())}Pe&&Gn();var f=null,h=Di(()=>{var S=n();return Pi(S)?S:S==null?[]:Vn(S)}),p,E=new Map,y=!0;function x(S){A.effect.f&Ui||(A.pending.delete(S),A.fallback=f,ba(A,p,i,e,r),f!==null&&(p.length===0?f.f&lt?(f.f^=lt,Wt(f,null,i)):_s(f):vs(f,()=>{f=null})))}function g(S){A.pending.delete(S)}var w=Ni(()=>{p=c(h);var S=p.length;let D=!1;if(Pe){var _=Ii(i)===Oi;_!==(S===0)&&(i=Ar(),Zt(i),In(!1),D=!0)}for(var b=new Set,T=Mt,P=Ci(),F=0;F<S;F+=1){Pe&&Pt.nodeType===bs&&Pt.data===Mi&&(i=Pt,D=!0,In(!1));var Y=p[F],re=r(Y,F),Q=y?null:o.get(re);Q?(Q.v&&Sr(Q.v,Y),Q.i&&Sr(Q.i,F),P&&T.unskip_effect(Q.e)):(Q=_a(o,y?i:Or??(Or=On()),Y,re,F,s,e,n),y||(Q.e.f|=lt),o.set(re,Q)),b.add(re)}if(S===0&&a&&!f&&(y?f=qn(()=>a(i)):(f=qn(()=>a(Or??(Or=On()))),f.f|=lt)),S>b.size&&Li(),Pe&&S>0&&Zt(Ar()),!y)if(E.set(T,b),P){for(const[k,ce]of o)b.has(k)||T.skip_effect(ce.e);T.oncommit(x),T.ondiscard(g)}else x(T);D&&In(!0),c(h)}),A={effect:w,items:o,pending:E,outrogroups:null,fallback:f};y=!1,Pe&&(i=Pt)}function Ft(t){for(;t!==null&&!(t.f&Fi);)t=t.next;return t}function ba(t,e,n,r,s){var Y,re,Q,k,ce,se,m,C,M;var a=(r&Wi)!==0,i=e.length,o=t.items,l=Ft(t.effect.first),u,f=null,h,p=[],E=[],y,x,g,w;if(a)for(w=0;w<i;w+=1)y=e[w],x=s(y,w),g=o.get(x).e,g.f&lt||((re=(Y=g.nodes)==null?void 0:Y.a)==null||re.measure(),(h??(h=new Set)).add(g));for(w=0;w<i;w+=1){if(y=e[w],x=s(y,w),g=o.get(x).e,t.outrogroups!==null)for(const R of t.outrogroups)R.pending.delete(g),R.done.delete(g);if(g.f&Mn&&(_s(g),a&&((k=(Q=g.nodes)==null?void 0:Q.a)==null||k.unfix(),(h??(h=new Set)).delete(g))),g.f&lt)if(g.f^=lt,g===l)Wt(g,null,n);else{var A=f?f.next:l;g===t.effect.last&&(t.effect.last=g.prev),g.prev&&(g.prev.next=g.next),g.next&&(g.next.prev=g.prev),gt(t,f,g),gt(t,g,A),Wt(g,A,n),f=g,p=[],E=[],l=Ft(f.next);continue}if(g!==l){if(u!==void 0&&u.has(g)){if(p.length<E.length){var S=E[0],D;f=S.prev;var _=p[0],b=p[p.length-1];for(D=0;D<p.length;D+=1)Wt(p[D],S,n);for(D=0;D<E.length;D+=1)u.delete(E[D]);gt(t,_.prev,b.next),gt(t,f,_),gt(t,b,S),l=S,f=b,w-=1,p=[],E=[]}else u.delete(g),Wt(g,l,n),gt(t,g.prev,g.next),gt(t,g,f===null?t.effect.first:f.next),gt(t,f,g),f=g;continue}for(p=[],E=[];l!==null&&l!==g;)(u??(u=new Set)).add(l),E.push(l),l=Ft(l.next);if(l===null)continue}g.f&lt||p.push(g),f=g,l=Ft(g.next)}if(t.outrogroups!==null){for(const R of t.outrogroups)R.pending.size===0&&(Wn(t,Vn(R.done)),(ce=t.outrogroups)==null||ce.delete(R));t.outrogroups.size===0&&(t.outrogroups=null)}if(l!==null||u!==void 0){var T=[];if(u!==void 0)for(g of u)g.f&Mn||T.push(g);for(;l!==null;)!(l.f&Mn)&&l!==t.fallback&&T.push(l),l=Ft(l.next);var P=T.length;if(P>0){var F=r&ys&&i===0?n:null;if(a){for(w=0;w<P;w+=1)(m=(se=T[w].nodes)==null?void 0:se.a)==null||m.measure();for(w=0;w<P;w+=1)(M=(C=T[w].nodes)==null?void 0:C.a)==null||M.fix()}ma(t,T,F)}}a&&cn(()=>{var R,$;if(h!==void 0)for(g of h)($=(R=g.nodes)==null?void 0:R.a)==null||$.apply()})}function _a(t,e,n,r,s,a,i,o){var l=i&Bi?i&$i?Rr(n):ne(n,!1,!1):null,u=i&zi?Rr(s):null;return{v:l,i:u,e:qn(()=>(a(e,l??n,u??s,o),()=>{t.delete(r)}))}}function Wt(t,e,n){if(t.nodes)for(var r=t.nodes.start,s=t.nodes.end,a=e&&!(e.f&lt)?e.nodes.start:n;r!==null;){var i=Es(r);if(a.before(r),r===s)return;r=i}}function gt(t,e,n){e===null?t.effect.first=n:e.next=n,n===null?t.effect.last=e:n.prev=e}function Jn(t,e,n=!1,r=!1,s=!1,a=!1){var i=t,o="";if(n){var l=t;Pe&&(i=Zt(Lt(l)))}ue(()=>{var u=Ki;if(o===(o=e()??"")){Pe&&Gn();return}if(n&&!Pe){u.nodes=null,l.innerHTML=o,o!==""&&Ln(Lt(l),l.lastChild);return}if(u.nodes!==null&&(Zi(u.nodes.start,u.nodes.end),u.nodes=null),o!==""){if(Pe){Pt.data;for(var f=Gn(),h=f;f!==null&&(f.nodeType!==bs||f.data!=="");)h=f,f=Es(f);if(f===null)throw ji(),Yi;Ln(Pt,h),i=Zt(f);return}var p=r?Vi:s?Qi:void 0,E=Xi(r?"svg":s?"math":"template",p);E.innerHTML=o;var y=r||s?E:E.content;if(Ln(Lt(y),y.lastChild),r||s)for(;Lt(y);)i.before(Lt(y));else i.before(y)}})}const Mr=[...`
2
2
  \r\f \v\uFEFF`];function va(t,e,n){var r=t==null?"":""+t;if(e&&(r=r?r+" "+e:e),n){for(var s of Object.keys(n))if(n[s])r=r?r+" "+s:s;else if(r.length)for(var a=s.length,i=0;(i=r.indexOf(s,i))>=0;){var o=i+a;(i===0||Mr.includes(r[i-1]))&&(o===r.length||Mr.includes(r[o]))?r=(i===0?"":r.substring(0,i))+r.substring(o+1):i=o}}return r===""?null:r}function Ea(t,e){return t==null?null:String(t)}function ft(t,e,n,r,s,a){var i=t[Nr];if(Pe||i!==n||i===void 0){var o=va(n,r,a);(!Pe||o!==t.getAttribute("class"))&&(o==null?t.removeAttribute("class"):e?t.className=o:t.setAttribute("class",o)),t[Nr]=n}else if(a&&s!==a)for(var l in a){var u=!!a[l];(s==null||u!==!!s[l])&&t.classList.toggle(l,u)}return a}function Fu(t,e,n,r){var s=t[Ir];if(Pe||s!==e){var a=Ea(e);(!Pe||a!==t.getAttribute("style"))&&(a==null?t.removeAttribute("style"):t.style.cssText=a),t[Ir]=e}return r}const ya=Symbol("is custom element"),ka=Symbol("is html"),Ta=ks?"link":"LINK",xa=ks?"progress":"PROGRESS";function wa(t){if(Pe){var e=!1,n=()=>{if(!e){if(e=!0,t.hasAttribute("value")){var r=t.value;mt(t,"value",null),t.value=r}if(t.hasAttribute("checked")){var s=t.checked;mt(t,"checked",null),t.checked=s}}};t[sa]=n,cn(n),ia()}}function Aa(t,e){var n=As(t);n.value===(n.value=e??void 0)||t.value===e&&(e!==0||t.nodeName!==xa)||(t.value=e??"")}function mt(t,e,n,r){var s=As(t);Pe&&(s[e]=t.getAttribute(e),e==="src"||e==="srcset"||e==="href"&&t.nodeName===Ta)||s[e]!==(s[e]=n)&&(e==="loading"&&(t[Ji]=n),n==null?t.removeAttribute(e):typeof n!="string"&&Sa(t).includes(e)?t[e]=n:t.setAttribute(e,n))}function As(t){var e;return t[e=ea]??(t[e]={[ya]:t.nodeName.includes("-"),[ka]:t.namespaceURI===ta})}var Lr=new Map;function Sa(t){var e=t.getAttribute("is")||t.nodeName,n=Lr.get(e);if(n)return n;Lr.set(e,n=[]);for(var r,s=t,a=Element.prototype;a!==s;){r=ra(s);for(var i in r)r[i].set&&i!=="innerHTML"&&i!=="textContent"&&i!=="innerText"&&n.push(i);s=na(s)}return n}function Hu(t,e,n=e){var r=new WeakSet;Ts(t,"input",async s=>{var a=s?t.defaultValue:t.value;if(a=Dn(t)?Pn(a):a,n(a),Mt!==null&&r.add(Mt),await aa(),a!==(a=e())){var i=t.selectionStart,o=t.selectionEnd,l=t.value.length;if(t.value=a??"",o!==null){var u=t.value.length;i===o&&o===l&&u>l?(t.selectionStart=u,t.selectionEnd=u):(t.selectionStart=i,t.selectionEnd=Math.min(o,u))}}}),(Pe&&t.defaultValue!==t.value||I(e)==null&&t.value)&&(n(Dn(t)?Pn(t.value):t.value),Mt!==null&&r.add(Mt)),xs(()=>{var s=e();if(t===document.activeElement){var a=Mt;if(r.has(a))return}Dn(t)&&s===Pn(t.value)||t.type==="date"&&!s&&!t.value||s!==t.value&&(t.value=s??"")})}const Cn=new Set;function Gu(t,e,n,r,s=r){var a=n.getAttribute("type")==="checkbox",i=t;let o=!1;if(e!==null)for(var l of e)i=i[l]??(i[l]=[]);i.push(n),Ts(n,"change",()=>{var u=n.__value;a&&(u=Cr(i,u,n.checked)),s(u)},()=>s(a?[]:null)),xs(()=>{var u=r();if(Pe&&n.defaultChecked!==n.checked){o=!0;return}a?(u=u||[],n.checked=u.includes(n.__value)):n.checked=oa(n.__value,u)}),la(()=>{var u=i.indexOf(n);u!==-1&&i.splice(u,1)}),Cn.has(i)||(Cn.add(i),cn(()=>{i.sort((u,f)=>u.compareDocumentPosition(f)===4?-1:1),Cn.delete(i)})),cn(()=>{if(o){var u;if(a)u=Cr(i,u,n.checked);else{var f=i.find(h=>h.checked);u=f==null?void 0:f.__value}s(u)}})}function Cr(t,e,n){for(var r=new Set,s=0;s<t.length;s+=1)t[s].checked&&r.add(t[s].__value);return n||r.delete(e),Array.from(r)}function Dn(t){var e=t.type;return e==="number"||e==="range"}function Pn(t){return t===""?null:+t}function qu(t){return function(...e){var n=e[0];return n.stopPropagation(),t==null?void 0:t.apply(this,e)}}function Wu(t){return function(...e){var n=e[0];return n.preventDefault(),t==null?void 0:t.apply(this,e)}}const Ra=()=>{const t=fa;return{page:{subscribe:t.page.subscribe},navigating:{subscribe:t.navigating.subscribe},updated:t.updated}},Ku={subscribe(t){return Ra().page.subscribe(t)}},Zu=Ue("offline"),ju=Ue(0),Ss="ocrc.sidePane.v1",Rs=12,er=[{homeId:"tasks",title:"任务"},{homeId:"files",title:"文件"},{homeId:"subs",title:"子代理"},{homeId:"skills",title:"Skills"},{homeId:"config",title:"配置"}],Ns=new Set(er.map(t=>t.homeId));function Na(t){if(!t||typeof t!="object")return!1;const e=t;if(typeof e.id!="string"||typeof e.title!="string")return!1;switch(e.kind){case"home":return typeof e.homeId=="string"&&Ns.has(e.homeId);case"subagent":return typeof e.childId=="string";case"file":return typeof e.path=="string"&&typeof e.directory=="string";case"tool":return typeof e.sessionId=="string"&&typeof e.messageId=="string"&&typeof e.partId=="string";case"git":return!0;case"sidechat":return typeof e.childId=="string";default:return!1}}function Ia(){try{const t=JSON.parse(localStorage.getItem(Ss)??"{}");let e=Array.isArray(t.tabs)?t.tabs.filter(Na):[],n=typeof t.activeId=="string"?t.activeId:"";if(n&&Ns.has(n)&&!e.some(r=>r.id===n)){const r=er.find(s=>s.homeId===n);e=[...e,{id:r.homeId,kind:"home",title:r.title,homeId:r.homeId}]}return e.some(r=>r.id===n)||(n=""),{tabs:e.slice(-Rs),activeId:n}}catch{return{tabs:[],activeId:""}}}function Oa(t){try{localStorage.setItem(Ss,JSON.stringify(t))}catch{}}const kt=Ue(Ia());kt.subscribe(Oa);function tr(t){kt.update(e=>({tabs:e.tabs.findIndex(s=>s.id===t.id)===-1?[...e.tabs,t].slice(-Rs):e.tabs.map(s=>s.id===t.id?t:s),activeId:t.id}))}function Ma(t){const e=er.find(n=>n.homeId===t);tr({id:e.homeId,kind:"home",title:e.title,homeId:t})}function La(t){kt.update(e=>{var a,i;const n=e.tabs.findIndex(o=>o.id===t);if(n===-1)return e;const r=e.tabs.filter(o=>o.id!==t);let s=e.activeId;return s===t&&(s=((a=r[n-1])==null?void 0:a.id)??((i=r[n])==null?void 0:i.id)??""),{tabs:r,activeId:s}})}function Ca(t,e){t===e||t<0||e<0||kt.update(n=>{if(t>=n.tabs.length||e>=n.tabs.length)return n;const r=[...n.tabs],[s]=r.splice(t,1);return r.splice(e,0,s),{...n,tabs:r}})}function Da(t){kt.update(e=>({...e,activeId:t}))}function Pa(){kt.set({tabs:[],activeId:""})}const Yu={subscribe:kt.subscribe,openPaneTab:tr,openHome:Ma,closePaneTab:La,reorderPaneTab:Ca,activatePane:Da,resetPane:Pa},Xu=Ue(!1),Dr="ocrc.railOpen";function Ba(){let t=!0;try{t=localStorage.getItem(Dr)!=="0"}catch{}const e=Ue(t);return e.subscribe(n=>{try{localStorage.setItem(Dr,n?"1":"0")}catch{}}),e}const Vu=Ba(),Qu=Ue(!1),Ju=Ue(!1),ed=Ue(!1),td=Ue(!1),nd=Ue(!1),rd=Ue(!1),sd=Ue(void 0),id=Ue(!0),Is="ocrc-theme";function nr(){try{const t=localStorage.getItem(Is);if(t==="light"||t==="dark"||t==="auto")return t}catch{}return"auto"}function $a(t){const e=t==="light"?"#faf9f6":"#0d0d0d";document.querySelectorAll('meta[name="theme-color"]').forEach(n=>n.setAttribute("content",e))}const Kn=Ue(nr()),za=Ue(nr()==="dark"?"dark":"light");function Ua(t){return t!=="auto"?t:typeof matchMedia<"u"&&matchMedia("(prefers-color-scheme: light)").matches?"light":"dark"}function Zn(t){t==="auto"?document.documentElement.removeAttribute("data-theme"):document.documentElement.setAttribute("data-theme",t);const e=Ua(t);za.set(e),$a(e)}var hs,ms;if(typeof document<"u"){const t=nr();Zn(t),Kn.set(t),typeof matchMedia<"u"&&((ms=(hs=matchMedia("(prefers-color-scheme: light)")).addEventListener)==null||ms.call(hs,"change",()=>{ca(Kn)==="auto"&&Zn("auto")}))}function ad(){Kn.update(t=>{const e=t==="light"?"dark":t==="dark"?"auto":"light";try{localStorage.setItem(Is,e)}catch{}return Zn(e),e})}var Fa=ua('<svg viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="1.5" stroke-linecap="round" stroke-linejoin="round" aria-hidden="true"></svg>');function Bt(t,e){const n={menu:'<path d="M4 7h16M4 12h16M4 17h16"/>',sun:'<circle cx="12" cy="12" r="4"/><path d="M12 2v2M12 20v2M4.9 4.9l1.4 1.4M17.7 17.7l1.4 1.4M2 12h2M20 12h2M4.9 19.1l1.4-1.4M17.7 6.3l1.4-1.4"/>',moon:'<path d="M21 12.8A9 9 0 1 1 11.2 3 7 7 0 0 0 21 12.8z"/>',"caret-down":'<path d="M6 9l6 6 6-6"/>',"caret-right":'<path d="M9 6l6 6-6 6"/>',search:'<circle cx="11" cy="11" r="7"/><path d="M21 21l-4.3-4.3"/>',check:'<path d="M20 6L9 17l-5-5"/>',copy:'<rect x="9" y="9" width="11" height="11" rx="2"/><path d="M5 15V5a2 2 0 0 1 2-2h10"/>',refresh:'<path d="M20.5 15a9 9 0 1 1-2.2-9.5L21 8"/><path d="M21 3v5h-5"/>',alert:'<path d="M12 3l10 17H2L12 3z"/><path d="M12 10v4"/><path d="M12 17.6v.4"/>',close:'<path d="M6 6l12 12M18 6L6 18"/>',gear:'<circle cx="12" cy="12" r="3"/><path d="M12 2v3M12 19v3M4.6 4.6l2.1 2.1M17.3 17.3l2.1 2.1M2 12h3M19 12h3M4.6 19.4l2.1-2.1M17.3 6.7l2.1-2.1"/>',bolt:'<path d="M13 2L4 14h6l-1 8 9-12h-6l1-8z"/>',cpu:'<rect x="5" y="5" width="14" height="14" rx="2"/><rect x="10" y="10" width="4" height="4"/><path d="M9 2v3M15 2v3M9 19v3M15 19v3M2 9h3M2 15h3M19 9h3M19 15h3"/>',plus:'<path d="M12 5v14M5 12h14"/>',"arrow-down":'<path d="M12 5v14"/><path d="M19 12l-7 7-7-7"/>'};let r=ve(e,"name",8,""),s=ve(e,"size",8,16);var a=Fa();Jn(a,()=>(te(r()),I(()=>n[r()]??"")),!0),O(a),ue(()=>{mt(a,"width",s()),mt(a,"height",s())}),U(t,a)}const od=Ue([]),ld=Ue(null);var Ha=q('<div class="card user svelte-2ec03f"> </div>');function Ga(t,e){Ye(e,!1);let n=ve(e,"card",8);Ve();var r=Ha(),s=L(r,!0);O(r),ue(()=>de(s,(te(n()),I(()=>n().text)))),U(t,r),Xe()}var qa=q('<button class="stop svelte-1n9pz5q">Stop</button>'),Wa=q('<div class="thinking-row svelte-1n9pz5q"><span class="toggle mono svelte-1n9pz5q"><span class="caret svelte-1n9pz5q" aria-hidden="true"><!></span> reasoning</span> <!></div>');function Ka(t,e){Ye(e,!1);let n=ve(e,"card",8);Ve();var r=Wa(),s=L(r),a=L(s),i=L(a);Bt(i,{name:"caret-right",size:11}),O(a),ws(),O(s);var o=W(s,2);{var l=u=>{var f=qa();Be("click",f,()=>dn.abort(n().sessionId)),U(u,f)};fe(o,u=>{te(n()),I(()=>n().showStop)&&u(l)})}O(r),U(t,r),Xe()}function rr(){return{async:!1,breaks:!1,extensions:null,gfm:!0,hooks:null,pedantic:!1,renderer:null,silent:!1,tokenizer:null,walkTokens:null}}let Tt=rr();function Os(t){Tt=t}const Ms=/[&<>"']/,Za=new RegExp(Ms.source,"g"),Ls=/[<>"']|&(?!(#\d{1,7}|#[Xx][a-fA-F0-9]{1,6}|\w+);)/,ja=new RegExp(Ls.source,"g"),Ya={"&":"&amp;","<":"&lt;",">":"&gt;",'"':"&quot;","'":"&#39;"},Pr=t=>Ya[t];function je(t,e){if(e){if(Ms.test(t))return t.replace(Za,Pr)}else if(Ls.test(t))return t.replace(ja,Pr);return t}const Xa=/(^|[^\[])\^/g;function Ee(t,e){let n=typeof t=="string"?t:t.source;e=e||"";const r={replace:(s,a)=>{let i=typeof a=="string"?a:a.source;return i=i.replace(Xa,"$1"),n=n.replace(s,i),r},getRegex:()=>new RegExp(n,e)};return r}function Br(t){try{t=encodeURI(t).replace(/%25/g,"%")}catch{return null}return t}const jt={exec:()=>null};function $r(t,e){const n=t.replace(/\|/g,(a,i,o)=>{let l=!1,u=i;for(;--u>=0&&o[u]==="\\";)l=!l;return l?"|":" |"}),r=n.split(/ \|/);let s=0;if(r[0].trim()||r.shift(),r.length>0&&!r[r.length-1].trim()&&r.pop(),e)if(r.length>e)r.splice(e);else for(;r.length<e;)r.push("");for(;s<r.length;s++)r[s]=r[s].trim().replace(/\\\|/g,"|");return r}function Ht(t,e,n){const r=t.length;if(r===0)return"";let s=0;for(;s<r&&t.charAt(r-s-1)===e;)s++;return t.slice(0,r-s)}function Va(t,e){if(t.indexOf(e[1])===-1)return-1;let n=0;for(let r=0;r<t.length;r++)if(t[r]==="\\")r++;else if(t[r]===e[0])n++;else if(t[r]===e[1]&&(n--,n<0))return r;return-1}function zr(t,e,n,r){const s=e.href,a=e.title?je(e.title):null,i=t[1].replace(/\\([\[\]])/g,"$1");if(t[0].charAt(0)!=="!"){r.state.inLink=!0;const o={type:"link",raw:n,href:s,title:a,text:i,tokens:r.inlineTokens(i)};return r.state.inLink=!1,o}return{type:"image",raw:n,href:s,title:a,text:je(i)}}function Qa(t,e){const n=t.match(/^(\s+)(?:```)/);if(n===null)return e;const r=n[1];return e.split(`
3
3
  `).map(s=>{const a=s.match(/^\s+/);if(a===null)return s;const[i]=a;return i.length>=r.length?s.slice(r.length):s}).join(`
4
4
  `)}class gn{constructor(e){ke(this,"options");ke(this,"rules");ke(this,"lexer");this.options=e||Tt}space(e){const n=this.rules.block.newline.exec(e);if(n&&n[0].length>0)return{type:"space",raw:n[0]}}code(e){const n=this.rules.block.code.exec(e);if(n){const r=n[0].replace(/^(?: {1,4}| {0,3}\t)/gm,"");return{type:"code",raw:n[0],codeBlockStyle:"indented",text:this.options.pedantic?r:Ht(r,`
@@ -0,0 +1 @@
1
+ var tt=e=>{throw TypeError(e)};var Dt=(e,t,n)=>t.has(e)||tt("Cannot "+n);var y=(e,t,n)=>(Dt(e,t,"read from private field"),n?n.call(e):t.get(e)),A=(e,t,n)=>t.has(e)?tt("Cannot add the same private member more than once"):t instanceof WeakSet?t.add(e):t.set(e,n);import{b8 as Ve,az as nt,aX as T,a8 as I,aO as P,b1 as _e,aZ as qt,aS as Vt}from"./BjY4dxcB.js";class Me{constructor(t,n){this.status=t,typeof n=="string"?this.body={message:n}:n?this.body=n:this.body={message:`Error: ${t}`}}toString(){return JSON.stringify(this.body)}}class Be{constructor(t,n){try{new Headers({location:n})}catch{throw new Error(`Invalid redirect location ${JSON.stringify(n)}: this string contains characters that cannot be used in HTTP headers`)}this.status=t,this.location=n}}class Ke extends Error{constructor(t,n,a){super(a),this.status=t,this.text=n}}new URL("sveltekit-internal://");function Mt(e,t){return e==="/"||t==="ignore"?e:t==="never"?e.endsWith("/")?e.slice(0,-1):e:t==="always"&&!e.endsWith("/")?e+"/":e}function Bt(e){return e.split("%25").map(decodeURI).join("%25")}function Kt(e){for(const t in e)e[t]=decodeURIComponent(e[t]);return e}function Pe({href:e}){return e.split("#")[0]}function j(){}function Ft(...e){let t=5381;for(const n of e)if(typeof n=="string"){let a=n.length;for(;a;)t=t*33^n.charCodeAt(--a)}else if(ArrayBuffer.isView(n)){const a=new Uint8Array(n.buffer,n.byteOffset,n.byteLength);let r=a.length;for(;r;)t=t*33^a[--r]}else throw new TypeError("value must be a string or TypedArray");return(t>>>0).toString(36)}new TextEncoder;function Gt(e){const t=atob(e),n=new Uint8Array(t.length);for(let a=0;a<t.length;a++)n[a]=t.charCodeAt(a);return n}const Ht=window.fetch;window.fetch=(e,t)=>((e instanceof Request?e.method:(t==null?void 0:t.method)||"GET")!=="GET"&&X.delete(Fe(e)),Ht(e,t));const X=new Map;function Wt(e,t){const n=Fe(e,t),a=document.querySelector(n);if(a!=null&&a.textContent){a.remove();let{body:r,...i}=JSON.parse(a.textContent);const o=a.getAttribute("data-ttl");return o&&X.set(n,{body:r,init:i,ttl:1e3*Number(o)}),a.getAttribute("data-b64")!==null&&(r=Gt(r)),Promise.resolve(new Response(r,i))}return window.fetch(e,t)}function zt(e,t,n){if(X.size>0){const a=Fe(e,n),r=X.get(a);if(r){if(performance.now()<r.ttl&&["default","force-cache","only-if-cached",void 0].includes(n==null?void 0:n.cache))return new Response(r.body,r.init);X.delete(a)}}return window.fetch(t,n)}function Fe(e,t){let a=`script[data-sveltekit-fetched][data-url=${JSON.stringify(e instanceof Request?e.url:e)}]`;if(t!=null&&t.headers||t!=null&&t.body){const r=[];t.headers&&r.push([...new Headers(t.headers)].join(",")),t.body&&(typeof t.body=="string"||ArrayBuffer.isView(t.body))&&r.push(t.body),a+=`[data-hash="${Ft(...r)}"]`}return a}const Jt=/^(\[)?(\.\.\.)?(\w+)(?:=(\w+))?(\])?$/;function Yt(e){const t=[];return{pattern:e==="/"?/^\/$/:new RegExp(`^${Zt(e).map(a=>{const r=/^\[\.\.\.(\w+)(?:=(\w+))?\]$/.exec(a);if(r)return t.push({name:r[1],matcher:r[2],optional:!1,rest:!0,chained:!0}),"(?:/([^]*))?";const i=/^\[\[(\w+)(?:=(\w+))?\]\]$/.exec(a);if(i)return t.push({name:i[1],matcher:i[2],optional:!0,rest:!1,chained:!0}),"(?:/([^/]+))?";if(!a)return;const o=a.split(/\[(.+?)\](?!\])/);return"/"+o.map((l,c)=>{if(c%2){if(l.startsWith("x+"))return Oe(String.fromCharCode(parseInt(l.slice(2),16)));if(l.startsWith("u+"))return Oe(String.fromCharCode(...l.slice(2).split("-").map(m=>parseInt(m,16))));const d=Jt.exec(l),[,u,w,p,f]=d;return t.push({name:p,matcher:f,optional:!!u,rest:!!w,chained:w?c===1&&o[0]==="":!1}),w?"([^]*?)":u?"([^/]*)?":"([^/]+?)"}return Oe(l)}).join("")}).join("")}/?$`),params:t}}function Xt(e){return e!==""&&!/^\([^)]+\)$/.test(e)}function Zt(e){return e.slice(1).split("/").filter(Xt)}function Qt(e,t,n){const a={},r=e.slice(1),i=r.filter(s=>s!==void 0);let o=0;for(let s=0;s<t.length;s+=1){const l=t[s];let c=r[s-o];if(l.chained&&l.rest&&o&&(c=r.slice(s-o,s+1).filter(d=>d).join("/"),o=0),c===void 0)if(l.rest)c="";else continue;if(!l.matcher||n[l.matcher](c)){a[l.name]=c;const d=t[s+1],u=r[s+1];d&&!d.rest&&d.optional&&u&&l.chained&&(o=0),!d&&!u&&Object.keys(a).length===i.length&&(o=0);continue}if(l.optional&&l.chained){o++;continue}return}if(!o)return a}function Oe(e){return e.normalize().replace(/[[\]]/g,"\\$&").replace(/%/g,"%25").replace(/\//g,"%2[Ff]").replace(/\?/g,"%3[Ff]").replace(/#/g,"%23").replace(/[.*+?^${}()|\\]/g,"\\$&")}function en({nodes:e,server_loads:t,dictionary:n,matchers:a}){const r=new Set(t);return Object.entries(n).map(([s,[l,c,d]])=>{const{pattern:u,params:w}=Yt(s),p={id:s,exec:f=>{const m=u.exec(f);if(m)return Qt(m,w,a)},errors:[1,...d||[]].map(f=>e[f]),layouts:[0,...c||[]].map(o),leaf:i(l)};return p.errors.length=p.layouts.length=Math.max(p.errors.length,p.layouts.length),p});function i(s){const l=s<0;return l&&(s=~s),[l,e[s]]}function o(s){return s===void 0?s:[r.has(s),e[s]]}}function mt(e,t=JSON.parse){try{return t(sessionStorage[e])}catch{}}function rt(e,t,n=JSON.stringify){const a=n(t);try{sessionStorage[e]=a}catch{}}var ut;const U=((ut=globalThis.__sveltekit_1rxlm9)==null?void 0:ut.base)??"";var dt;const tn=((dt=globalThis.__sveltekit_1rxlm9)==null?void 0:dt.assets)??U??"",nn="1790973456313",_t="sveltekit:snapshot",wt="sveltekit:scroll",vt="sveltekit:states",rn="sveltekit:pageurl",F="sveltekit:history",Z="sveltekit:navigation",V={tap:1,hover:2,viewport:3,eager:4,off:-1,false:-1},Le=location.origin;function Ge(e){if(e instanceof URL)return e;let t=document.baseURI;if(!t){const n=document.getElementsByTagName("base");t=n.length?n[0].href:document.URL}return new URL(e,t)}function M(){return{x:pageXOffset,y:pageYOffset}}function K(e,t){return e.getAttribute(`data-sveltekit-${t}`)}const at={...V,"":V.hover};function yt(e){let t=e.assignedSlot??e.parentNode;return(t==null?void 0:t.nodeType)===11&&(t=t.host),t}function bt(e,t){for(;e&&e!==t;){if(e.nodeName.toUpperCase()==="A"&&e.hasAttribute("href"))return e;e=yt(e)}}function je(e,t,n){let a;try{if(a=new URL(e instanceof SVGAElement?e.href.baseVal:e.href,document.baseURI),n&&a.hash.match(/^#[^/]/)){const s=location.hash.split("#")[1]||"/";a.hash=`#${s}${a.hash}`}}catch{}const r=e instanceof SVGAElement?e.target.baseVal:e.target,i=!a||!!r||Ue(a,t,n)||(e.getAttribute("rel")||"").split(/\s+/).includes("external"),o=(a==null?void 0:a.origin)===Le&&e.hasAttribute("download");return{url:a,external:i,target:r,download:o}}function we(e){let t=null,n=null,a=null,r=null,i=null,o=null,s=e;for(;s&&s!==document.documentElement;)a===null&&(a=K(s,"preload-code")),r===null&&(r=K(s,"preload-data")),t===null&&(t=K(s,"keepfocus")),n===null&&(n=K(s,"noscroll")),i===null&&(i=K(s,"reload")),o===null&&(o=K(s,"replacestate")),s=yt(s);function l(c){switch(c){case"":case"true":return!0;case"off":case"false":return!1;default:return}}return{preload_code:at[a??"off"],preload_data:at[r??"off"],keepfocus:l(t),noscroll:l(n),reload:l(i),replace_state:l(o)}}function ot(e){const t=Ve(e);let n=!0;function a(){n=!0,t.update(o=>o)}function r(o){n=!1,t.set(o)}function i(o){let s;return t.subscribe(l=>{(s===void 0||n&&l!==s)&&o(s=l)})}return{notify:a,set:r,subscribe:i}}const kt={v:j};function an(){const{set:e,subscribe:t}=Ve(!1);let n;async function a(){clearTimeout(n);try{const r=await fetch(`${tn}/_app/version.json`,{headers:{pragma:"no-cache","cache-control":"no-cache"}});if(!r.ok)return!1;const o=(await r.json()).version!==nn;return o&&(e(!0),kt.v(),clearTimeout(n)),o}catch{return!1}}return{subscribe:t,check:a}}function Ue(e,t,n){return e.origin!==Le||!e.pathname.startsWith(t)?!0:n?e.pathname!==location.pathname:!1}function On(e){}const St=new Set(["load","prerender","csr","ssr","trailingSlash","config"]);[...St];const on=new Set([...St]);[...on];function sn(e){return e.filter(t=>t!=null)}function ge(e,t){return e+"/"+t}function He(e){return e instanceof Me||e instanceof Ke?e.status:500}function ln(e){return e instanceof Ke?e.text:"Internal Error"}let x,Q,$e;const cn=nt.toString().includes("$$")||/function \w+\(\) \{\}/.test(nt.toString()),st="a:";var ae,oe,se,ie,le,ce,fe,ue,ht,de,pt,he,gt;cn?(x={data:{},form:null,error:null,params:{},route:{id:null},state:{},status:-1,url:new URL(st)},Q={current:null},$e={current:!1}):(x=new(ht=class{constructor(){A(this,ae,T({}));A(this,oe,T(null));A(this,se,T(null));A(this,ie,T({}));A(this,le,T({id:null}));A(this,ce,T({}));A(this,fe,T(-1));A(this,ue,T(new URL(st)))}get data(){return I(y(this,ae))}set data(t){P(y(this,ae),t)}get form(){return I(y(this,oe))}set form(t){P(y(this,oe),t)}get error(){return I(y(this,se))}set error(t){P(y(this,se),t)}get params(){return I(y(this,ie))}set params(t){P(y(this,ie),t)}get route(){return I(y(this,le))}set route(t){P(y(this,le),t)}get state(){return I(y(this,ce))}set state(t){P(y(this,ce),t)}get status(){return I(y(this,fe))}set status(t){P(y(this,fe),t)}get url(){return I(y(this,ue))}set url(t){P(y(this,ue),t)}},ae=new WeakMap,oe=new WeakMap,se=new WeakMap,ie=new WeakMap,le=new WeakMap,ce=new WeakMap,fe=new WeakMap,ue=new WeakMap,ht),Q=new(pt=class{constructor(){A(this,de,T(null))}get current(){return I(y(this,de))}set current(t){P(y(this,de),t)}},de=new WeakMap,pt),$e=new(gt=class{constructor(){A(this,he,T(!1))}get current(){return I(y(this,he))}set current(t){P(y(this,he),t)}},he=new WeakMap,gt),kt.v=()=>$e.current=!0);function Et(e){Object.assign(x,e)}const{onMount:fn}=qt,un=new Set(["icon","shortcut icon","apple-touch-icon"]);let J=null;const D=mt(wt)??{},ee=mt(_t)??{},N={url:ot({}),page:ot({}),navigating:Ve(null),updated:an()};function We(e){D[e]=M()}function dn(e,t){let n=e+1;for(;D[n];)delete D[n],n+=1;for(n=t+1;ee[n];)delete ee[n],n+=1}function te(e,t=!1){return t?location.replace(e.href):location.href=e.href,new Promise(j)}async function Rt(){if("serviceWorker"in navigator){const e=await navigator.serviceWorker.getRegistration(U||"/");e&&await e.update()}}let ze,Ne,ve,O,De,S;const ye=[],be=[];let v=null;function ke(){var e;(e=v==null?void 0:v.fork)==null||e.then(t=>t==null?void 0:t.discard()),v=null}const me=new Map,xt=new Set,hn=new Set,G=new Set;let _={branch:[],error:null,url:null},Lt=!1,Se=!1,it=!0,ne=!1,Y=!1,Ut=!1,Je=!1,At,k,L,C;const Ee=new Set,lt=new Map,ct=new Map;async function Nn(e,t,n){var i,o,s,l;globalThis.__sveltekit_1rxlm9&&(globalThis.__sveltekit_1rxlm9.query,globalThis.__sveltekit_1rxlm9.prerender),document.URL!==location.href&&(location.href=location.href),S=e,await((o=(i=e.hooks).init)==null?void 0:o.call(i)),ze=en(e),O=document.documentElement,De=t,Ne=e.nodes[0],ve=e.nodes[1],Ne(),ve(),k=(s=history.state)==null?void 0:s[F],L=(l=history.state)==null?void 0:l[Z],k||(k=L=Date.now(),history.replaceState({...history.state,[F]:k,[Z]:L},""));const a=D[k];function r(){a&&(history.scrollRestoration="manual",scrollTo(a.x,a.y))}n?(r(),await Ln(De,n)):(await H({type:"enter",url:Ge(S.hash?Tn(new URL(location.href)):location.href),replace_state:!0}),r()),xn()}function pn(){ye.length=0,Je=!1}function Tt(e){be.some(t=>t==null?void 0:t.snapshot)&&(ee[e]=be.map(t=>{var n;return(n=t==null?void 0:t.snapshot)==null?void 0:n.capture()}))}function It(e){var t;(t=ee[e])==null||t.forEach((n,a)=>{var r,i;(i=(r=be[a])==null?void 0:r.snapshot)==null||i.restore(n)})}function ft(){We(k),rt(wt,D),Tt(L),rt(_t,ee)}async function Pt(e,t,n,a){let r,i;t.invalidateAll&&ke(),await H({type:"goto",url:Ge(e),keepfocus:t.keepFocus,noscroll:t.noScroll,replace_state:t.replaceState,state:t.state,redirect_count:n,nav_token:a,accept:()=>{if(t.invalidateAll){Je=!0,r=new Set;for(const[o,s]of lt)for(const l of s.keys())r.add(ge(o,l));i=new Set;for(const[o,s]of ct)for(const l of s.keys())i.add(ge(o,l))}t.invalidate&&t.invalidate.forEach(Rn)}}),t.invalidateAll&&_e().then(_e).then(()=>{for(const[o,s]of lt)for(const[l,{resource:c}]of s)r!=null&&r.has(ge(o,l))&&c.refresh();for(const[o,s]of ct)for(const[l,{resource:c}]of s)i!=null&&i.has(ge(o,l))&&c.reconnect()})}async function gn(e){if(e.id!==(v==null?void 0:v.id)){ke();const t={};Ee.add(t),v={id:e.id,token:t,promise:$t({...e,preload:t}).then(n=>(Ee.delete(t),n.type==="loaded"&&n.state.error&&ke(),n)),fork:null}}return v.promise}async function Ce(e){var n;const t=(n=await Ae(e,!1))==null?void 0:n.route;t&&await Promise.all([...t.layouts,t.leaf].filter(Boolean).map(a=>a[1]()))}async function Ot(e,t,n){var i;const a={params:_.params,route:{id:((i=_.route)==null?void 0:i.id)??null},url:new URL(location.href)};_={...e.state,nav:a};const r=document.querySelector("style[data-sveltekit]");if(r&&r.remove(),Et(e.props.page),At=new S.root({target:t,props:{...e.props,stores:N,components:be},hydrate:n,sync:!1,transformError:void 0}),await Promise.resolve(),It(L),n){const o={from:null,to:{...a,scroll:D[k]??M()},willUnload:!1,type:"enter",complete:Promise.resolve()};G.forEach(s=>s(o))}Se=!0}async function Re({url:e,params:t,branch:n,errors:a,status:r,error:i,route:o,form:s}){let l="never";if(U&&(e.pathname===U||e.pathname===U+"/"))l="always";else for(const f of n)(f==null?void 0:f.slash)!==void 0&&(l=f.slash);e.pathname=Mt(e.pathname,l),e.search=e.search;const c={type:"loaded",state:{url:e,params:t,branch:n,error:i,route:o},props:{constructors:sn(n).map(f=>f.node.component),page:et(x)}};s!==void 0&&(c.props.form=s);let d={},u=!x,w=0;for(let f=0;f<Math.max(n.length,_.branch.length);f+=1){const m=n[f],h=_.branch[f];(m==null?void 0:m.data)!==(h==null?void 0:h.data)&&(u=!0),m&&(d={...d,...m.data},u&&(c.props[`data_${w}`]=d),w+=1)}return(!_.url||e.href!==_.url.href||_.error!==i||s!==void 0&&s!==x.form||u)&&(c.props.page={error:i,params:t,route:{id:(o==null?void 0:o.id)??null},state:{},status:r,url:new URL(e),form:s??null,data:u?d:x.data}),c}async function Ye({loader:e,parent:t,url:n,params:a,route:r,server_data_node:i}){var c,d;let o=null;const s={dependencies:new Set,params:new Set,parent:!1,route:!1,url:!1,search_params:new Set},l=await e();return{node:l,loader:e,server:i,universal:(c=l.universal)!=null&&c.load?{type:"data",data:o,uses:s}:null,data:o??(i==null?void 0:i.data)??null,slash:((d=l.universal)==null?void 0:d.trailingSlash)??(i==null?void 0:i.slash)}}function mn(e,t,n){let a=e instanceof Request?e.url:e;const r=new URL(a,n);r.origin===n.origin&&(a=r.href.slice(n.origin.length));const i=Se?zt(a,r.href,t):Wt(a,t);return{resolved:r,promise:i}}function _n(e,t,n,a,r,i){if(Je)return!0;if(!r)return!1;if(r.parent&&e||r.route&&t||r.url&&n)return!0;for(const o of r.search_params)if(a.has(o))return!0;for(const o of r.params)if(i[o]!==_.params[o])return!0;for(const o of r.dependencies)if(ye.some(s=>s(new URL(o))))return!0;return!1}function Xe(e,t){return(e==null?void 0:e.type)==="data"?e:(e==null?void 0:e.type)==="skip"?t??null:null}function wn(e,t){if(!e)return new Set(t.searchParams.keys());const n=new Set([...e.searchParams.keys(),...t.searchParams.keys()]);for(const a of n){const r=e.searchParams.getAll(a),i=t.searchParams.getAll(a);r.every(o=>i.includes(o))&&i.every(o=>r.includes(o))&&n.delete(a)}return n}function vn({error:e,url:t,route:n,params:a}){return{type:"loaded",state:{error:e,url:t,route:n,params:a,branch:[]},props:{page:et(x),constructors:[]}}}async function $t({id:e,invalidating:t,url:n,params:a,route:r,preload:i}){if((v==null?void 0:v.id)===e)return Ee.delete(v.token),v.promise;const{errors:o,layouts:s,leaf:l}=r,c=[...s,l];o.forEach(h=>h==null?void 0:h().catch(j)),c.forEach(h=>h==null?void 0:h[1]().catch(j));const d=_.url?e!==xe(_.url):!1,u=_.route?r.id!==_.route.id:!1,w=wn(_.url,n);let p=!1;const f=c.map(async(h,g)=>{var $;if(!h)return;const b=_.branch[g];return h[1]===(b==null?void 0:b.loader)&&!_n(p,u,d,w,($=b.universal)==null?void 0:$.uses,a)?b:(p=!0,Ye({loader:h[1],url:n,params:a,route:r,parent:async()=>{var pe;const q={};for(let B=0;B<g;B+=1)Object.assign(q,(pe=await f[B])==null?void 0:pe.data);return q},server_data_node:Xe(h[0]?{type:"skip"}:null,h[0]?b==null?void 0:b.server:void 0)}))});for(const h of f)h.catch(j);const m=[];for(let h=0;h<c.length;h+=1)if(c[h])try{m.push(await f[h])}catch(g){if(g instanceof Be)return{type:"redirect",location:g.location};if(Ee.has(i))return vn({error:await re(g,{params:a,url:n,route:{id:r.id}}),url:n,params:a,route:r});let b=He(g),R;if(g instanceof Me)R=g.body;else{if(await N.updated.check())return await Rt(),await te(n);R=await re(g,{params:a,url:n,route:{id:r.id}})}const $=await yn(h,m,o);return $?Re({url:n,params:a,branch:m.slice(0,$.idx).concat($.node),errors:o,status:b,error:R,route:r}):await jt(n,{id:r.id},R,b)}else m.push(void 0);return Re({url:n,params:a,branch:m,errors:o,status:200,error:null,route:r,form:t?void 0:null})}async function yn(e,t,n){for(;e--;)if(n[e]){let a=e;for(;!t[a];)a-=1;try{return{idx:a+1,node:{node:await n[e](),loader:n[e],data:{},server:null,universal:null}}}catch{continue}}}async function Ze({status:e,error:t,url:n,route:a}){const r={};let i=null;try{const o=await Ye({loader:Ne,url:n,params:r,route:a,parent:()=>Promise.resolve({}),server_data_node:Xe(i)}),s={node:await ve(),loader:ve,universal:null,server:null,data:null};return Re({url:n,params:r,branch:[o,s],status:e,error:t,errors:[],route:null})}catch(o){if(o instanceof Be)return Pt(new URL(o.location,location.href),{},0);throw o}}async function bn(e){const t=e.href;if(me.has(t))return me.get(t);let n;try{const a=(async()=>{let r=await S.hooks.reroute({url:new URL(e),fetch:async(i,o)=>mn(i,o,e).promise})??e;if(typeof r=="string"){const i=new URL(e);S.hash?i.hash=r:i.pathname=r,r=i}return r})();me.set(t,a),n=await a}catch{me.delete(t);return}return n}async function Ae(e,t){if(e&&!Ue(e,U,S.hash)){const n=await bn(e);if(!n)return;const a=kn(n);for(const r of ze){const i=r.exec(a);if(i)return{id:xe(e),invalidating:t,route:r,params:Kt(i),url:e}}}}function kn(e){return Bt(S.hash?e.hash.replace(/^#/,"").replace(/[?#].+/,""):e.pathname.slice(U.length))||"/"}function xe(e){return(S.hash?e.hash.replace(/^#/,""):e.pathname)+e.search}function Ct({url:e,type:t,intent:n,delta:a,event:r,scroll:i}){let o=!1;const s=Qe(_,n,e,t,i??null);a!==void 0&&(s.navigation.delta=a),r!==void 0&&(s.navigation.event=r);const l={...s.navigation,cancel:()=>{o=!0,s.reject(new Error("navigation cancelled"))}};return ne||xt.forEach(c=>c(l)),o?null:s}async function H({type:e,url:t,popped:n,keepfocus:a,noscroll:r,replace_state:i,state:o={},redirect_count:s=0,nav_token:l={},accept:c=j,block:d=j,event:u}){var B;const w=C;C=l;const p=await Ae(t,!1),f=e==="enter"?Qe(_,p,t,e):Ct({url:t,type:e,delta:n==null?void 0:n.delta,intent:p,scroll:n==null?void 0:n.scroll,event:u});if(!f){d(),C===l&&(C=w);return}const m=k,h=L;c(),ne=!0,Se&&f.navigation.type!=="enter"&&N.navigating.set(Q.current=f.navigation);let g=p&&await $t(p);if(!g){if(Ue(t,U,S.hash))return await te(t,i);g=await jt(t,{id:null},await re(new Ke(404,"Not Found",`Not found: ${t.pathname}`),{url:t,params:{},route:{id:null}}),404,i)}if(t=(p==null?void 0:p.url)||t,C!==l)return f.reject(new Error("navigation aborted")),!1;if(g.type==="redirect"){if(s<20){await H({type:e,url:new URL(g.location,t),popped:n,keepfocus:a,noscroll:r,replace_state:i,state:o,redirect_count:s+1,nav_token:l}),f.fulfil(void 0);return}g=await Ze({status:500,error:await re(new Error("Redirect loop"),{url:t,params:{},route:{id:null}}),url:t,route:{id:null}})}else g.props.page.status>=400&&await N.updated.check()&&(await Rt(),await te(t,i));if(pn(),We(m),Tt(h),g.props.page.url.pathname!==t.pathname&&(t.pathname=g.props.page.url.pathname),o=n?n.state:o,!n){const E=i?0:1,W={[F]:k+=E,[Z]:L+=E,[vt]:o};(i?history.replaceState:history.pushState).call(history,W,"",t),i||dn(k,L)}const b=p&&(v==null?void 0:v.id)===p.id?v.fork:null;v!=null&&v.fork&&!b&&ke(),v=null,g.props.page.state=o;let R;if(Se){const E=(await Promise.all(Array.from(hn,z=>z(f.navigation)))).filter(z=>typeof z=="function");if(E.length>0){let z=function(){E.forEach(Ie=>{G.delete(Ie)})};E.push(z),E.forEach(Ie=>{G.add(Ie)})}const W=f.navigation.to;_={...g.state,nav:{params:W.params,route:W.route,url:W.url}},g.props.page&&(g.props.page.url=t);const Te=b&&await b;Te?R=Te.commit():(J=null,At.$set(g.props),J&&Object.assign(g.props.page,J),Et(g.props.page),R=(B=Vt)==null?void 0:B()),Ut=!0}else await Ot(g,De,!1);const{activeElement:$}=document;if(await R,await _e(),await _e(),C!==l)return f.reject(new Error("navigation aborted")),!1;g.props.page&&J&&Object.assign(g.props.page,J);let q=null;if(it){const E=n?n.scroll:r?M():null;E?scrollTo(E.x,E.y):(q=t.hash&&document.getElementById(Nt(t)))?q.scrollIntoView():scrollTo(0,0)}const pe=document.activeElement!==$&&document.activeElement!==document.body;!a&&!pe&&An(t,!q),it=!0,ne=!1,e==="popstate"&&It(L),f.fulfil(void 0),f.navigation.to&&(f.navigation.to.scroll=M()),G.forEach(E=>E(f.navigation)),N.navigating.set(Q.current=null)}async function jt(e,t,n,a,r){return e.origin===Le&&e.pathname===location.pathname&&!Lt?await Ze({status:a,error:n,url:e,route:t}):await te(e,r)}function Sn(){let e,t={element:void 0,href:void 0},n;O.addEventListener("mousemove",s=>{const l=s.target;clearTimeout(e),e=setTimeout(()=>{i(l,V.hover)},20)});function a(s){s.defaultPrevented||i(s.composedPath()[0],V.tap)}O.addEventListener("mousedown",a),O.addEventListener("touchstart",a,{passive:!0});const r=new IntersectionObserver(s=>{for(const l of s)l.isIntersecting&&(Ce(new URL(l.target.href)),r.unobserve(l.target))},{threshold:0});async function i(s,l){const c=bt(s,O),d=c===t.element&&(c==null?void 0:c.href)===t.href&&l>=n;if(!c||d)return;const{url:u,external:w,download:p}=je(c,U,S.hash);if(w||p)return;const f=we(c),m=u&&xe(_.url)===xe(u);if(!(f.reload||m))if(l<=f.preload_data){t={element:c,href:c.href},n=V.tap;const h=await Ae(u,!1);if(!h)return;gn(h)}else l<=f.preload_code&&(t={element:c,href:c.href},n=l,Ce(u))}function o(){r.disconnect();for(const s of O.querySelectorAll("a")){const{url:l,external:c,download:d}=je(s,U,S.hash);if(c||d)continue;const u=we(s);u.reload||(u.preload_code===V.viewport&&r.observe(s),u.preload_code===V.eager&&Ce(l))}}G.add(o),o()}function re(e,t){if(e instanceof Me)return e.body;const n=He(e),a=ln(e);return S.hooks.handleError({error:e,event:t,status:n,message:a})??{message:a}}function En(e,t){fn(()=>(e.add(t),()=>{e.delete(t)}))}function Dn(e){En(G,e)}function qn(e,t={}){return e=new URL(Ge(e)),e.origin!==Le?Promise.reject(new Error("goto: invalid URL")):Pt(e,t,0)}function Rn(e){if(typeof e=="function")ye.push(e);else{const{href:t}=new URL(e,location.href);ye.push(n=>n.href===t)}}function xn(){var t;history.scrollRestoration="manual",addEventListener("beforeunload",n=>{let a=!1;if(ft(),!ne){const r=Qe(_,void 0,null,"leave"),i={...r.navigation,cancel:()=>{a=!0,r.reject(new Error("navigation cancelled"))}};xt.forEach(o=>o(i))}a?(n.preventDefault(),n.returnValue=""):history.scrollRestoration="auto"}),addEventListener("visibilitychange",()=>{document.visibilityState==="hidden"&&ft()}),(t=navigator.connection)!=null&&t.saveData||Sn(),O.addEventListener("click",async n=>{if(n.button||n.which!==1||n.metaKey||n.ctrlKey||n.shiftKey||n.altKey||n.defaultPrevented)return;const a=bt(n.composedPath()[0],O);if(!a)return;const{url:r,external:i,target:o,download:s}=je(a,U,S.hash);if(!r)return;if(o==="_parent"||o==="_top"){if(window.parent!==window)return}else if(o&&o!=="_self")return;const l=we(a);if(!(a instanceof SVGAElement)&&r.protocol!==location.protocol&&!(r.protocol==="https:"||r.protocol==="http:")||s)return;const[d,u]=(S.hash?r.hash.replace(/^#/,""):r.href).split("#"),w=d===Pe(location);if(i||l.reload&&(!w||!u)){Ct({url:r,type:"link",event:n})?ne=!0:n.preventDefault();return}if(u!==void 0&&w){const[,p]=_.url.href.split("#");if(p===u){if(n.preventDefault(),u===""||u==="top"&&a.ownerDocument.getElementById("top")===null)scrollTo({top:0});else{const f=a.ownerDocument.getElementById(decodeURIComponent(u));f&&(f.scrollIntoView(),f.focus())}return}if(Y=!0,We(k),e(r),!l.replace_state)return;Y=!1}n.preventDefault(),await new Promise(p=>{requestAnimationFrame(()=>{setTimeout(p,0)}),setTimeout(p,100)}),await H({type:"link",url:r,keepfocus:l.keepfocus,noscroll:l.noscroll,replace_state:l.replace_state??r.href===location.href,event:n})}),O.addEventListener("submit",n=>{if(n.defaultPrevented)return;const a=HTMLFormElement.prototype.cloneNode.call(n.target),r=n.submitter;if(((r==null?void 0:r.formTarget)||a.target)==="_blank"||((r==null?void 0:r.formMethod)||a.method)!=="get")return;const s=new URL((r==null?void 0:r.hasAttribute("formaction"))&&(r==null?void 0:r.formAction)||a.action);if(Ue(s,U,!1))return;const l=n.target,c=we(l);if(c.reload)return;n.preventDefault(),n.stopPropagation();const d=new FormData(l,r);s.search=new URLSearchParams(d).toString(),H({type:"form",url:s,keepfocus:c.keepfocus,noscroll:c.noscroll,replace_state:c.replace_state??s.href===location.href,event:n})}),addEventListener("popstate",async n=>{var a;if(!qe){if((a=n.state)!=null&&a[F]){const r=n.state[F];if(C={},r===k)return;const i=D[r],o=n.state[vt]??{},s=new URL(n.state[rn]??location.href),l=n.state[Z],c=_.url?Pe(location)===Pe(_.url):!1;if(l===L&&(Ut||c)){o!==x.state&&(x.state=o),e(s),D[k]=M(),i&&scrollTo(i.x,i.y),k=r;return}const u=r-k;await H({type:"popstate",url:s,popped:{state:o,scroll:i,delta:u},accept:()=>{k=r,L=l},block:()=>{history.go(-u)},nav_token:C,event:n})}else if(!Y){const r=new URL(location.href);e(r),S.hash&&location.reload()}}}),addEventListener("hashchange",()=>{Y&&(Y=!1,history.replaceState({...history.state,[F]:++k,[Z]:L},"",location.href))});for(const n of document.querySelectorAll("link"))un.has(n.rel)&&(n.href=n.href);addEventListener("pageshow",n=>{n.persisted&&N.navigating.set(Q.current=null)});function e(n){_.url=x.url=n,N.page.set(et(x)),N.page.notify()}}async function Ln(e,{status:t=200,error:n,node_ids:a,params:r,route:i,server_route:o,data:s,form:l}){Lt=!0;const c=new URL(location.href);let d;({params:r={},route:i={id:null}}=await Ae(c,!1)||{}),d=ze.find(({id:p})=>p===i.id);let u,w=!0;try{const p=a.map(async(m,h)=>{const g=s[h];return g!=null&&g.uses&&(g.uses=Un(g.uses)),Ye({loader:S.nodes[m],url:c,params:r,route:i,parent:async()=>{const b={};for(let R=0;R<h;R+=1)Object.assign(b,(await p[R]).data);return b},server_data_node:Xe(g)})}),f=await Promise.all(p);if(d){const m=d.layouts;for(let h=0;h<m.length;h++)m[h]||f.splice(h,0,void 0)}u=await Re({url:c,params:r,branch:f,status:t,error:n,errors:d==null?void 0:d.errors,form:l,route:d??null})}catch(p){if(p instanceof Be){await te(new URL(p.location,location.href));return}u=await Ze({status:He(p),error:await re(p,{url:c,params:r,route:i}),url:c,route:i}),e.textContent="",w=!1}finally{}u.props.page&&(u.props.page.state={}),await Ot(u,e,w)}function Un(e){return{dependencies:new Set((e==null?void 0:e.dependencies)??[]),params:new Set((e==null?void 0:e.params)??[]),parent:!!(e!=null&&e.parent),route:!!(e!=null&&e.route),url:!!(e!=null&&e.url),search_params:new Set((e==null?void 0:e.search_params)??[])}}let qe=!1;function An(e,t=!0){const n=document.querySelector("[autofocus]");if(n)n.focus();else{const a=Nt(e);if(a&&document.getElementById(a)){const{x:i,y:o}=M();setTimeout(()=>{const s=history.state;qe=!0,location.replace(new URL(`#${a}`,location.href)),history.replaceState(s,"",e),t&&scrollTo(i,o),qe=!1})}else{const i=document.body,o=i.getAttribute("tabindex");i.tabIndex=-1,i.focus({preventScroll:!0,focusVisible:!1}),o!==null?i.setAttribute("tabindex",o):i.removeAttribute("tabindex")}const r=getSelection();if(r&&r.type!=="None"){const i=[];for(let o=0;o<r.rangeCount;o+=1)i.push(r.getRangeAt(o));setTimeout(()=>{if(r.rangeCount===i.length){for(let o=0;o<r.rangeCount;o+=1){const s=i[o],l=r.getRangeAt(o);if(s.commonAncestorContainer!==l.commonAncestorContainer||s.startContainer!==l.startContainer||s.endContainer!==l.endContainer||s.startOffset!==l.startOffset||s.endOffset!==l.endOffset)return}r.removeAllRanges()}})}}}function Qe(e,t,n,a,r=null){var c,d;let i,o;const s=new Promise((u,w)=>{i=u,o=w});return s.catch(j),{navigation:{from:{params:e.params,route:{id:((c=e.route)==null?void 0:c.id)??null},url:e.url,scroll:M()},to:n&&{params:(t==null?void 0:t.params)??null,route:{id:((d=t==null?void 0:t.route)==null?void 0:d.id)??null},url:n,scroll:r},willUnload:!t,type:a,complete:s},fulfil:i,reject:o}}function et(e){return{data:e.data,error:e.error,form:e.form,params:e.params,route:e.route,state:e.state,status:e.status,url:e.url}}function Tn(e){const t=new URL(e);return t.hash=decodeURIComponent(e.hash),t}function Nt(e){let t;if(S.hash){const[,,n]=e.hash.split("#",3);t=n??""}else t=e.hash.slice(1);return decodeURIComponent(t)}export{Dn as a,N as b,qn as g,On as l,x as p,Nn as s};
@@ -0,0 +1 @@
1
+ import{O as K,b7 as X,b6 as P,b4 as V,aM as Z,aN as N,a8 as B,V as ee,X as te,a2 as ne,b8 as p,a9 as y,Y as m}from"./BjY4dxcB.js";function Ce(e=!1){const t=K,n=t.l.u;if(!n)return;let i=()=>ee(t.s);if(e){let s=0,a={};const d=te(()=>{let r=!1;const l=t.s;for(const u in l)l[u]!==a[u]&&(a[u]=l[u],r=!0);return r&&s++,s});i=()=>B(d)}n.b.length&&X(()=>{F(t,i),N(n.b)}),P(()=>{const s=V(()=>n.m.map(Z));return()=>{for(const a of s)typeof a=="function"&&a()}}),n.a.length&&P(()=>{F(t,i),N(n.a)})}function F(e,t){if(e.l.s)for(const n of e.l.s)B(n);t()}ne();const A="ocrc.token";function x(e){const t=e.startsWith("#")?e.slice(1):e;if(!t)return null;const n=new URLSearchParams(t).get("token");return n&&n.trim()?n.trim():null}function se(e){const t=e.startsWith("#")?e.slice(1):e;if(!t)return null;const n=new URLSearchParams(t).get("pair");return n&&n.trim()?n.trim():null}function S(){try{const e=localStorage.getItem(A);return e&&e.trim()?e:null}catch{return null}}function w(e){try{localStorage.setItem(A,e)}catch{}}function J(){try{localStorage.removeItem(A)}catch{}}const I="ocrc.authReloaded";function ie(e=window.location){if(S()){J();try{const{pathname:t,search:n}=window.location;window.history.replaceState(null,"",t+n)}catch{}e.reload();return}try{if(sessionStorage.getItem(I))return;sessionStorage.setItem(I,"1")}catch{}e.reload()}function E(){try{sessionStorage.removeItem(I)}catch{}}const f=p("booting"),$=p("");let b=null;if(typeof location<"u"&&typeof window<"u"){const e=x(location.hash);e&&w(e),b=se(location.hash),b&&history.replaceState(null,"",location.pathname+location.search)}b?(f.set("booting"),(async()=>{try{const e=await fetch("/api/pair/exchange",{method:"POST",headers:{"content-type":"application/json"},credentials:"include",body:JSON.stringify({pending:b})});if(!e.ok)throw new Error(String(e.status));const t=await e.json();if(!t.token)throw new Error("no token");w(t.token),$.set(""),f.set("ready")}catch{$.set("配对链接已失效(1 分钟过期或已被使用)——请在主机上刷新二维码后重试。"),f.set("pairing")}})()):f.set(S()?"ready":"pairing");async function Ae(e){const t=e.trim().match(/[?#]pair=([^&#\s]+)/),n=t?decodeURIComponent(t[1]):e.trim();if(!n)return"这看起来不是有效的配对链接。";try{const i=await fetch("/api/pair/exchange",{method:"POST",headers:{"content-type":"application/json"},credentials:"include",body:JSON.stringify({pending:n})});if(!i.ok)throw new Error(String(i.status));const s=await i.json();return!s.token||!oe(s.token)?"这看起来不是有效的配对链接。":($.set(""),"")}catch{return"配对链接已失效(1 分钟过期或已被使用)——请刷新二维码后重试。"}}function O(){const e=S();if(!e){y(f)==="ready"&&ie();return}const t=typeof location<"u"?x(location.hash):null;if(t&&t!==e){w(t),f.set("ready");return}if(t){f.set("rejected");return}J(),f.set("pairing")}function oe(e){const t=e.trim();return!t||t.length<16?!1:(w(t),f.set("ready"),!0)}let T="";function R(e){const t={...e??{}},n=S();return n&&(t.authorization=`Bearer ${n}`),t}async function o(e){const t=await fetch(`${T}${e}`,{credentials:"include",headers:R()});if(t.status===401)throw O(),new Error(`GET ${e} 401`);if(!t.ok)throw new Error(`GET ${e} ${t.status}`);return E(),t.json()}async function c(e,t){const n=await fetch(`${T}${e}`,{method:"POST",headers:R({"content-type":"application/json"}),credentials:"include",body:JSON.stringify(t)});if(n.status===401)throw O(),new Error(`POST ${e} 401`);if(!n.ok)throw new Error(`POST ${e} ${n.status}`);return E(),n.json()}async function D(e,t,n){const i=await fetch(`${T}${t}`,{method:e,headers:R(n===void 0?void 0:{"content-type":"application/json"}),credentials:"include",body:n===void 0?void 0:JSON.stringify(n)});if(i.status===401)throw O(),new Error(`${e} ${t} 401`);if(!i.ok)throw new Error(`${e} ${t} ${i.status}`);return E(),i.json()}async function G(e,t){return D("PATCH",e,t)}async function H(e){return D("DELETE",e)}const _={me:()=>o("/api/me"),capabilities:()=>o("/api/capabilities"),backends:()=>o("/api/backends"),setActiveBackend:e=>c("/api/backends/active",{backendId:e}),sessions:()=>o("/api/sessions"),cleanupSubagents:()=>c("/api/sessions/cleanup-subagents",{}),revertSession:(e,t)=>c(`/api/session/${e}/revert?messageID=${encodeURIComponent(t)}`,{}),unrevertSession:e=>c(`/api/session/${e}/unrevert`,{}),revertState:e=>o(`/api/session/${e}/revert-state`),deleteSession:e=>c(`/api/sessions/${e}/delete`,{}),renameSession:(e,t)=>c(`/api/sessions/${e}/rename`,{title:t}),history:(e,t)=>{const n=new URLSearchParams;(t==null?void 0:t.limit)!=null&&n.set("limit",String(t.limit)),(t==null?void 0:t.offset)!=null&&n.set("offset",String(t.offset));const i=n.toString();return o(`/api/session/${e}${i?`?${i}`:""}`)},todo:e=>o(`/api/session/${e}/todo`),context:e=>o(`/api/session/${e}/context`),workspaces:()=>o("/api/workspaces"),createSession:e=>c("/api/session",e),mcp:()=>o("/api/mcp"),commands:e=>o(`/api/commands${e?`?backend=${encodeURIComponent(e)}`:""}`),runCommand:e=>c("/api/command",e),agents:()=>o("/api/agents"),models:()=>o("/api/models"),getOverrides:()=>o("/api/overrides"),setOverrides:e=>c("/api/overrides",e),sendMessage:e=>c("/api/message",e),abort:e=>c("/api/abort",{sessionId:e}),suggestions:e=>o(`/api/session/${e}/suggestions`),approve:(e,t,n)=>c("/api/approval",{sessionId:e,requestId:t,decision:n}),answerQuestion:(e,t,n)=>c("/api/question/reply",{sessionId:e,requestId:t,answers:n}),rejectQuestion:(e,t)=>c("/api/question/reject",{sessionId:e,requestId:t}),controls:e=>o(`/api/session/${e}/controls`),setMode:(e,t)=>c(`/api/session/${e}/mode`,{modeId:t}),setModel:(e,t)=>c(`/api/session/${e}/model`,{modelId:t}),files:(e,t)=>o(`/api/session/${e}/files?q=${encodeURIComponent(t)}`),schedules:()=>o("/api/schedules"),subagents:e=>o(`/api/session/${e}/subagents`),messageRaw:(e,t)=>o(`/api/session/${e}/message/${encodeURIComponent(t)}`),vcs:e=>o(`/api/vcs${e?`?sessionId=${encodeURIComponent(e)}`:""}`),vcsDiff:(e,t)=>o(`/api/vcs/diff?file=${encodeURIComponent(t)}${e?`&sessionId=${encodeURIComponent(e)}`:""}`),version:()=>o("/api/version"),skills:e=>o(`/api/skills${e?`?directory=${encodeURIComponent(e)}`:""}`),browse:(e,t)=>o(`/api/browse?directory=${encodeURIComponent(e)}&path=${encodeURIComponent(t)}`),fileContent:(e,t)=>o(`/api/file-content?directory=${encodeURIComponent(e)}&path=${encodeURIComponent(t)}`),worktrees:e=>o(`/api/worktrees${e?`?directory=${encodeURIComponent(e)}`:""}`),createWorktree:(e,t)=>c("/api/worktrees",{directory:e,name:t}),removeWorktree:(e,t)=>H(`/api/worktrees?directory=${encodeURIComponent(e)}&name=${encodeURIComponent(t)}`),channels:()=>o("/api/channels"),updateChannel:(e,t)=>G(`/api/channels/${e}`,t),resetChannel:e=>c(`/api/channels/${e}/reset`,{}),pairQr:()=>o("/api/pair/qr"),pairOnboarding:()=>o("/api/pair/onboarding"),exchangePair:e=>c("/api/pair/exchange",{pending:e}),addSchedule:e=>c("/api/schedules",e),setScheduleEnabled:(e,t)=>G(`/api/schedules/${e}`,{enabled:t}),deleteSchedule:e=>H(`/api/schedules/${e}`)},j=p([]),U=()=>({order:[],byId:{},lastSeq:0}),g=p({});function M(e,t){return e.id??`${e.kind}:${e.seq??t}`}function re(e){return e==="thinking"||e==="think-stream"}function ae(e){return e==="thinking"||e==="streaming"||e==="think-stream"}function ce(e){return e?e.order.map(t=>e.byId[t]).filter(Boolean):[]}function de(e,t){return typeof t.seq=="number"&&e>0&&t.seq>e+1}function le(e){if(!("sessionId"in e)||!e.sessionId)return;const t=e.sessionId,n=M(e,0);g.update(i=>{const s=i[t]??U();if(e.seq!=null&&e.seq<=s.lastSeq&&!(n in s.byId))return i;e.seq!=null&&(s.lastSeq=Math.max(s.lastSeq,e.seq));const a=e.id?e:{...e,id:n};if(e.kind==="status"){const d=s.order[s.order.length-1],r=d?s.byId[d]:void 0;if((r==null?void 0:r.kind)==="status"&&JSON.stringify(r.fields)===JSON.stringify(e.fields))return s.byId={...s.byId,[d]:a},i}if(n in s.byId)s.byId={...s.byId,[n]:a};else{let d=s.order,r=s.byId;(e.kind==="streaming"||e.kind==="assistant"||e.kind==="error")&&(r={...r},d=d.filter(l=>{var u,q;return re((u=r[l])==null?void 0:u.kind)||e.kind==="error"&&((q=r[l])==null?void 0:q.kind)==="streaming"&&l!==n?(delete r[l],!1):!0})),s.order=[...d,n],s.byId={...r,[n]:a}}return{...i,[t]:s}})}function ue(e){g.update(t=>{for(const n of Object.keys(t)){const i=t[n];if(!(e in i.byId))continue;const s={...i.byId};return delete s[e],{...t,[n]:{...i,order:i.order.filter(a=>a!==e),byId:s}}}return t})}function fe(e,t,n=0){g.update(i=>{const s=U();return s.lastSeq=n,t.forEach((a,d)=>{const r=M(a,d);s.order.push(r),s.byId[r]=a.id?a:{...a,id:r}}),{...i,[e]:s}})}let L=0;function pe(e,t){if(t.length===0)return;L+=1;const n=L;g.update(i=>{const s=i[e]??U(),a={...s.byId},d=[];for(let r=t.length-1;r>=0;r--){const l=t[r],u=l.id??`${l.kind}:h${n}:${r}`;u in a||(d.push(u),a[u]=l.id?l:{...l,id:u})}return d.length===0?i:{...i,[e]:{order:[...d.reverse(),...s.order],byId:a,lastSeq:s.lastSeq}}})}function he(e){const t=new Set(Array.isArray(e)?e:e?[e]:[]);g.update(n=>{const i={};for(const s of Object.keys(n))t.has(s)&&(i[s]=n[s]);return i})}const Ee=Object.freeze(Object.defineProperty({__proto__:null,cardsOf:ce,feeds:g,isRunningCard:ae,isSeqGap:de,prependHistory:pe,pruneFeeds:he,removeCard:ue,sessionList:j,setHistory:fe,upsertCard:le},Symbol.toStringTag,{value:"Module"})),k=p(null),h=p(null),W=p(void 0),me=m([h,W,j,k],([e,t,n,i])=>{if(e){const s=t?n.find(r=>r.id===t):void 0,a=(s==null?void 0:s.backendId)??e.activeId,d=e.backends.find(r=>r.id===a);if(d)return d.capabilities}return(i==null?void 0:i.capabilities)??null}),ge=m([h,W,j,k],([e,t,n,i])=>{if(e){const s=t?n.find(a=>a.id===t):void 0;return(s==null?void 0:s.backendId)??e.activeId}return(i==null?void 0:i.id)??null}),Oe=m(me,e=>t=>e?e[t]!==!1:!0),ye=m([h,k],([e,t])=>{var n;return e?((n=e.backends.find(i=>i.id===e.activeId))==null?void 0:n.capabilities)??null:(t==null?void 0:t.capabilities)??null});m(ye,e=>t=>e?e[t]!==!1:!0);const Te=m(ge,e=>{const t=e??"opencode";return t.includes(":")?t.split(":").pop():t}),v=["emerald","azure","amber","violet"],Re={emerald:"#54d398",azure:"#5b9eff",amber:"#ffc34d",violet:"#b48cf0"},_e={emerald:"#0f261b",azure:"#101f33",amber:"#2a2110",violet:"#1d1733"},je={emerald:"#236b49",azure:"#2c5891",amber:"#8a6a26",violet:"#5a4790"},Q="ocrc.agentAccents",z={opencode:"emerald","acp:kimi":"azure"};function be(e){let t=0;for(let n=0;n<e.length;n++)t=t*31+e.charCodeAt(n)>>>0;return t}function ve(e){return z[e]?z[e]:v[be(e)%v.length]}function Se(){if(typeof localStorage>"u")return{};try{const e=localStorage.getItem(Q),t=e?JSON.parse(e):{};return typeof t=="object"&&t!==null?t:{}}catch{return{}}}function we(e){if(!(typeof localStorage>"u"))try{localStorage.setItem(Q,JSON.stringify(e))}catch{}}const C=p(Se());function ke(e){const t=y(C);return v.includes(t[e])?t[e]:ve(e)}function Ue(e,t){var i;const n={...y(C)};t&&v.includes(t)?n[e]=t:delete n[e],C.set(n),we(n),((i=y(h))==null?void 0:i.activeId)===e&&Y(e)}function Y(e){typeof document>"u"||document.documentElement.setAttribute("data-accent",ke(e))}async function qe(){try{k.set(await _.capabilities())}catch(e){console.warn("[capabilities] failed to load",e)}}async function Ie(){try{h.set(await _.backends())}catch(e){console.warn("[backends] failed to load",e)}}async function Pe(e){const t=y(h);t&&h.set({...t,activeId:e});try{await _.setActiveBackend(e)}catch(n){console.warn("[backends] setActive failed",n)}await Ie(),Y(e)}export{v as A,Ee as B,Pe as C,Ue as D,fe as E,oe as F,le as G,W as H,_e as a,Re as b,je as c,C as d,ke as e,_ as f,Y as g,f as h,Te as i,h as j,Oe as k,ce as l,ge as m,ve as n,Ae as o,g as p,S as q,Ce as r,de as s,Ie as t,qe as u,$ as v,pe as w,he as x,ue as y,j as z};
@@ -1,2 +1,2 @@
1
- const __vite__mapDeps=(i,m=__vite__mapDeps,d=(m.f||(m.f=["../nodes/0.meb8zqTp.js","../chunks/CWj6FrbW.js","../chunks/CtMqSQTR.js","../chunks/BjY4dxcB.js","../chunks/Chcp5gAM.js","../chunks/C_vwsPv1.js","../chunks/CDb2pzeY.js","../chunks/vlg9iH2u.js","../assets/summarizeTodos.BnVisgSs.css","../assets/0.BOn9ZJhx.css","../nodes/1.BWB0JgqJ.js","../nodes/2.CzqaLv_7.js","../assets/2.BNuGfmZP.css","../nodes/3.BNEhiQlw.js","../chunks/C1FmrZbK.js","../assets/3.EPSDx0kZ.css"])))=>i.map(i=>d[i]);
2
- var B=e=>{throw TypeError(e)};var N=(e,t,r)=>t.has(e)||B("Cannot "+r);var i=(e,t,r)=>(N(e,t,"read from private field"),r?r.call(e):t.get(e)),w=(e,t,r)=>t.has(e)?B("Cannot add the same private member more than once"):t instanceof WeakSet?t.add(e):t.set(e,r),j=(e,t,r,n)=>(N(e,t,"write to private field"),n?n.call(e,r):t.set(e,r),r);import{_ as x}from"../chunks/C1FmrZbK.js";import{ai as z,ag as X,z as q,h as Z,aG as $,aV as tt,aP as et,aQ as F,j as rt,ah as at,aO as A,L as st,a8 as _,af as nt,as as ot,a5 as ct,W as it,b3 as ut,au as dt,aE as mt,b7 as lt,b6 as _t,az as ft,b1 as ht,a4 as T,aU as vt,w as E,aB as gt,aX as k,M as I,J as bt,aK as yt,a6 as G,b0 as Et,a$ as Rt,aR as Pt,b5 as L}from"../chunks/BjY4dxcB.js";import"../chunks/CWj6FrbW.js";import{B as Ot,i as C}from"../chunks/Chcp5gAM.js";import{p as D,b as S}from"../chunks/vlg9iH2u.js";function V(e,t,r){var n;z&&(n=at,X());var o=new Ot(e);q(()=>{var c=t()??null;if(z){var a=$(n),s=a===rt,l=c!==null;if(s!==l){var R=tt();et(R),o.anchor=R,F(!1),o.ensure(c,c&&(b=>r(b,c))),F(!0);return}}o.ensure(c,c&&(b=>r(b,c)))},Z)}function xt(e){return class extends Tt{constructor(t){super({component:e,...t})}}}var f,d;class Tt{constructor(t){w(this,f);w(this,d);var c;var r=new Map,n=(a,s)=>{var l=dt(s,!1,!1);return r.set(a,l),l};const o=new Proxy({...t.props||{},$$events:{}},{get(a,s){return _(r.get(s)??n(s,Reflect.get(a,s)))},has(a,s){return s===st?!0:(_(r.get(s)??n(s,Reflect.get(a,s))),Reflect.has(a,s))},set(a,s,l){return A(r.get(s)??n(s,l),l),Reflect.set(a,s,l)}});j(this,d,(t.hydrate?nt:ot)(t.component,{target:t.target,anchor:t.anchor,props:o,context:t.context,intro:t.intro??!1,recover:t.recover,transformError:t.transformError})),(!((c=t==null?void 0:t.props)!=null&&c.$$host)||t.sync===!1)&&ct(),j(this,f,o.$$events);for(const a of Object.keys(i(this,d)))a==="$set"||a==="$destroy"||a==="$on"||it(this,a,{get(){return i(this,d)[a]},set(s){i(this,d)[a]=s},enumerable:!0});i(this,d).$set=a=>{Object.assign(o,a)},i(this,d).$destroy=()=>{ut(i(this,d))}}$set(t){i(this,d).$set(t)}$on(t,r){i(this,f)[t]=i(this,f)[t]||[];const n=(...o)=>r.call(this,...o);return i(this,f)[t].push(n),()=>{i(this,f)[t]=i(this,f)[t].filter(o=>o!==n)}}$destroy(){i(this,d).$destroy()}}f=new WeakMap,d=new WeakMap;const Bt={};var At=G('<div id="svelte-announcer" aria-live="assertive" aria-atomic="true" style="position: absolute; left: 0; top: 0; clip: rect(0 0 0 0); clip-path: inset(50%); overflow: hidden; white-space: nowrap; width: 1px; height: 1px"><!></div>'),wt=G("<!> <!>",1);function jt(e,t){mt(t,!0);let r=D(t,"components",23,()=>[]),n=D(t,"data_0",3,null),o=D(t,"data_1",3,null);lt(()=>t.stores.page.set(t.page)),_t(()=>{t.stores,t.page,t.constructors,r(),t.form,n(),o(),t.stores.page.notify()});let c=k(!1),a=k(!1),s=k(null);ft(()=>{const u=t.stores.page.subscribe(()=>{_(c)&&(A(a,!0),ht().then(()=>{A(s,document.title||"untitled page",!0)}))});return A(c,!0),u});const l=L(()=>t.constructors[1]);var R=wt(),b=T(R);{var p=u=>{const h=L(()=>t.constructors[0]);var v=I(),P=T(v);V(P,()=>_(h),(g,y)=>{S(y(g,{get data(){return n()},get form(){return t.form},get params(){return t.page.params},children:(m,It)=>{var M=I(),Q=T(M);V(Q,()=>_(l),(U,W)=>{S(W(U,{get data(){return o()},get form(){return t.form},get params(){return t.page.params}}),O=>r()[1]=O,()=>{var O;return(O=r())==null?void 0:O[1]})}),E(m,M)},$$slots:{default:!0}}),m=>r()[0]=m,()=>{var m;return(m=r())==null?void 0:m[0]})}),E(u,v)},H=u=>{const h=L(()=>t.constructors[0]);var v=I(),P=T(v);V(P,()=>_(h),(g,y)=>{S(y(g,{get data(){return n()},get form(){return t.form},get params(){return t.page.params}}),m=>r()[0]=m,()=>{var m;return(m=r())==null?void 0:m[0]})}),E(u,v)};C(b,u=>{t.constructors[1]?u(p):u(H,-1)})}var J=vt(b,2);{var K=u=>{var h=At(),v=bt(h);{var P=g=>{var y=Et();Rt(()=>Pt(y,_(s))),E(g,y)};C(v,g=>{_(a)&&g(P)})}yt(h),E(u,h)};C(J,u=>{_(c)&&u(K)})}E(e,R),gt()}const Nt=xt(jt),zt=[()=>x(()=>import("../nodes/0.meb8zqTp.js"),__vite__mapDeps([0,1,2,3,4,5,6,7,8,9]),import.meta.url),()=>x(()=>import("../nodes/1.BWB0JgqJ.js"),__vite__mapDeps([10,1,3,6]),import.meta.url),()=>x(()=>import("../nodes/2.CzqaLv_7.js"),__vite__mapDeps([11,1,2,3,4,6,12]),import.meta.url),()=>x(()=>import("../nodes/3.BNEhiQlw.js"),__vite__mapDeps([13,14,1,2,3,4,5,6,7,8,15]),import.meta.url)],Ft=[],Gt={"/":[2],"/[sessionId]":[3]},Y={handleError:({error:e})=>{console.error(e)},reroute:()=>{},transport:{}},kt=Object.fromEntries(Object.entries(Y.transport).map(([e,t])=>[e,t.decode])),Yt=Object.fromEntries(Object.entries(Y.transport).map(([e,t])=>[e,t.encode])),pt=!1,Ht=(e,t)=>kt[e](t);export{Ht as decode,kt as decoders,Gt as dictionary,Yt as encoders,pt as hash,Y as hooks,Bt as matchers,zt as nodes,Nt as root,Ft as server_loads};
1
+ const __vite__mapDeps=(i,m=__vite__mapDeps,d=(m.f||(m.f=["../nodes/0.DNhRQRVG.js","../chunks/CWj6FrbW.js","../chunks/t4ji6lDi.js","../chunks/BjY4dxcB.js","../chunks/Chcp5gAM.js","../chunks/BAYzPyWK.js","../chunks/C_mXJaPY.js","../chunks/vlg9iH2u.js","../assets/summarizeTodos.BnVisgSs.css","../assets/0.BOn9ZJhx.css","../nodes/1.TFFU0HMI.js","../nodes/2.CyFy7Ys8.js","../assets/2.BNuGfmZP.css","../nodes/3.EPvnBrgP.js","../chunks/C1FmrZbK.js","../assets/3.BAwvOE6a.css"])))=>i.map(i=>d[i]);
2
+ var B=e=>{throw TypeError(e)};var N=(e,t,r)=>t.has(e)||B("Cannot "+r);var i=(e,t,r)=>(N(e,t,"read from private field"),r?r.call(e):t.get(e)),w=(e,t,r)=>t.has(e)?B("Cannot add the same private member more than once"):t instanceof WeakSet?t.add(e):t.set(e,r),j=(e,t,r,n)=>(N(e,t,"write to private field"),n?n.call(e,r):t.set(e,r),r);import{_ as x}from"../chunks/C1FmrZbK.js";import{ai as z,ag as X,z as q,h as Z,aG as $,aV as tt,aP as et,aQ as F,j as rt,ah as at,aO as A,L as st,a8 as _,af as nt,as as ot,a5 as ct,W as it,b3 as ut,au as dt,aE as mt,b7 as lt,b6 as _t,az as ft,b1 as ht,a4 as T,aU as vt,w as E,aB as gt,aX as k,M as I,J as bt,aK as yt,a6 as G,b0 as Et,a$ as Rt,aR as Pt,b5 as L}from"../chunks/BjY4dxcB.js";import"../chunks/CWj6FrbW.js";import{B as Ot,i as C}from"../chunks/Chcp5gAM.js";import{p as D,b as S}from"../chunks/vlg9iH2u.js";function V(e,t,r){var n;z&&(n=at,X());var o=new Ot(e);q(()=>{var c=t()??null;if(z){var a=$(n),s=a===rt,l=c!==null;if(s!==l){var R=tt();et(R),o.anchor=R,F(!1),o.ensure(c,c&&(b=>r(b,c))),F(!0);return}}o.ensure(c,c&&(b=>r(b,c)))},Z)}function xt(e){return class extends Tt{constructor(t){super({component:e,...t})}}}var f,d;class Tt{constructor(t){w(this,f);w(this,d);var c;var r=new Map,n=(a,s)=>{var l=dt(s,!1,!1);return r.set(a,l),l};const o=new Proxy({...t.props||{},$$events:{}},{get(a,s){return _(r.get(s)??n(s,Reflect.get(a,s)))},has(a,s){return s===st?!0:(_(r.get(s)??n(s,Reflect.get(a,s))),Reflect.has(a,s))},set(a,s,l){return A(r.get(s)??n(s,l),l),Reflect.set(a,s,l)}});j(this,d,(t.hydrate?nt:ot)(t.component,{target:t.target,anchor:t.anchor,props:o,context:t.context,intro:t.intro??!1,recover:t.recover,transformError:t.transformError})),(!((c=t==null?void 0:t.props)!=null&&c.$$host)||t.sync===!1)&&ct(),j(this,f,o.$$events);for(const a of Object.keys(i(this,d)))a==="$set"||a==="$destroy"||a==="$on"||it(this,a,{get(){return i(this,d)[a]},set(s){i(this,d)[a]=s},enumerable:!0});i(this,d).$set=a=>{Object.assign(o,a)},i(this,d).$destroy=()=>{ut(i(this,d))}}$set(t){i(this,d).$set(t)}$on(t,r){i(this,f)[t]=i(this,f)[t]||[];const n=(...o)=>r.call(this,...o);return i(this,f)[t].push(n),()=>{i(this,f)[t]=i(this,f)[t].filter(o=>o!==n)}}$destroy(){i(this,d).$destroy()}}f=new WeakMap,d=new WeakMap;const Bt={};var At=G('<div id="svelte-announcer" aria-live="assertive" aria-atomic="true" style="position: absolute; left: 0; top: 0; clip: rect(0 0 0 0); clip-path: inset(50%); overflow: hidden; white-space: nowrap; width: 1px; height: 1px"><!></div>'),wt=G("<!> <!>",1);function jt(e,t){mt(t,!0);let r=D(t,"components",23,()=>[]),n=D(t,"data_0",3,null),o=D(t,"data_1",3,null);lt(()=>t.stores.page.set(t.page)),_t(()=>{t.stores,t.page,t.constructors,r(),t.form,n(),o(),t.stores.page.notify()});let c=k(!1),a=k(!1),s=k(null);ft(()=>{const u=t.stores.page.subscribe(()=>{_(c)&&(A(a,!0),ht().then(()=>{A(s,document.title||"untitled page",!0)}))});return A(c,!0),u});const l=L(()=>t.constructors[1]);var R=wt(),b=T(R);{var p=u=>{const h=L(()=>t.constructors[0]);var v=I(),P=T(v);V(P,()=>_(h),(g,y)=>{S(y(g,{get data(){return n()},get form(){return t.form},get params(){return t.page.params},children:(m,It)=>{var M=I(),Q=T(M);V(Q,()=>_(l),(U,W)=>{S(W(U,{get data(){return o()},get form(){return t.form},get params(){return t.page.params}}),O=>r()[1]=O,()=>{var O;return(O=r())==null?void 0:O[1]})}),E(m,M)},$$slots:{default:!0}}),m=>r()[0]=m,()=>{var m;return(m=r())==null?void 0:m[0]})}),E(u,v)},H=u=>{const h=L(()=>t.constructors[0]);var v=I(),P=T(v);V(P,()=>_(h),(g,y)=>{S(y(g,{get data(){return n()},get form(){return t.form},get params(){return t.page.params}}),m=>r()[0]=m,()=>{var m;return(m=r())==null?void 0:m[0]})}),E(u,v)};C(b,u=>{t.constructors[1]?u(p):u(H,-1)})}var J=vt(b,2);{var K=u=>{var h=At(),v=bt(h);{var P=g=>{var y=Et();Rt(()=>Pt(y,_(s))),E(g,y)};C(v,g=>{_(a)&&g(P)})}yt(h),E(u,h)};C(J,u=>{_(c)&&u(K)})}E(e,R),gt()}const Nt=xt(jt),zt=[()=>x(()=>import("../nodes/0.DNhRQRVG.js"),__vite__mapDeps([0,1,2,3,4,5,6,7,8,9]),import.meta.url),()=>x(()=>import("../nodes/1.TFFU0HMI.js"),__vite__mapDeps([10,1,3,6]),import.meta.url),()=>x(()=>import("../nodes/2.CyFy7Ys8.js"),__vite__mapDeps([11,1,2,3,4,6,12]),import.meta.url),()=>x(()=>import("../nodes/3.EPvnBrgP.js"),__vite__mapDeps([13,14,1,2,3,4,5,6,7,8,15]),import.meta.url)],Ft=[],Gt={"/":[2],"/[sessionId]":[3]},Y={handleError:({error:e})=>{console.error(e)},reroute:()=>{},transport:{}},kt=Object.fromEntries(Object.entries(Y.transport).map(([e,t])=>[e,t.decode])),Yt=Object.fromEntries(Object.entries(Y.transport).map(([e,t])=>[e,t.encode])),pt=!1,Ht=(e,t)=>kt[e](t);export{Ht as decode,kt as decoders,Gt as dictionary,Yt as encoders,pt as hash,Y as hooks,Bt as matchers,zt as nodes,Nt as root,Ft as server_loads};
@@ -0,0 +1 @@
1
+ import{l as o,s as r}from"../chunks/C_mXJaPY.js";export{o as load_css,r as start};