@geminilight/mindos-windows-arm64 1.0.5 → 1.0.6
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/_standalone/.mindos-build-version +1 -1
- package/_standalone/__next/BUILD_ID +1 -1
- package/_standalone/__next/app-path-routes-manifest.json +22 -22
- package/_standalone/__next/build-manifest.json +3 -3
- package/_standalone/__next/prerender-manifest.json +3 -3
- package/_standalone/__next/react-loadable-manifest.json +4 -4
- package/_standalone/__next/server/app/.well-known/agent-card.json/route_client-reference-manifest.js +1 -1
- package/_standalone/__next/server/app/_global-error/page_client-reference-manifest.js +1 -1
- package/_standalone/__next/server/app/_global-error.html +2 -2
- package/_standalone/__next/server/app/_global-error.rsc +1 -1
- package/_standalone/__next/server/app/_global-error.segments/_full.segment.rsc +1 -1
- package/_standalone/__next/server/app/_global-error.segments/_global-error/__PAGE__.segment.rsc +1 -1
- package/_standalone/__next/server/app/_global-error.segments/_global-error.segment.rsc +1 -1
- package/_standalone/__next/server/app/_global-error.segments/_head.segment.rsc +1 -1
- package/_standalone/__next/server/app/_global-error.segments/_index.segment.rsc +1 -1
- package/_standalone/__next/server/app/_global-error.segments/_tree.segment.rsc +1 -1
- package/_standalone/__next/server/app/_not-found/page.js +1 -1
- package/_standalone/__next/server/app/_not-found/page.js.nft.json +1 -1
- package/_standalone/__next/server/app/_not-found/page_client-reference-manifest.js +1 -1
- package/_standalone/__next/server/app/agents/[agentKey]/page.js +1 -1
- package/_standalone/__next/server/app/agents/[agentKey]/page.js.nft.json +1 -1
- package/_standalone/__next/server/app/agents/[agentKey]/page_client-reference-manifest.js +1 -1
- package/_standalone/__next/server/app/agents/page.js +1 -1
- package/_standalone/__next/server/app/agents/page.js.nft.json +1 -1
- package/_standalone/__next/server/app/agents/page_client-reference-manifest.js +1 -1
- package/_standalone/__next/server/app/api/a2a/agents/route.js +1 -1
- package/_standalone/__next/server/app/api/a2a/agents/route.js.nft.json +1 -1
- package/_standalone/__next/server/app/api/a2a/agents/route_client-reference-manifest.js +1 -1
- package/_standalone/__next/server/app/api/a2a/delegations/route.js +1 -1
- package/_standalone/__next/server/app/api/a2a/delegations/route.js.nft.json +1 -1
- package/_standalone/__next/server/app/api/a2a/delegations/route_client-reference-manifest.js +1 -1
- package/_standalone/__next/server/app/api/a2a/discover/route.js +1 -1
- package/_standalone/__next/server/app/api/a2a/discover/route.js.nft.json +1 -1
- package/_standalone/__next/server/app/api/a2a/discover/route_client-reference-manifest.js +1 -1
- package/_standalone/__next/server/app/api/a2a/route.js +1 -1
- package/_standalone/__next/server/app/api/a2a/route.js.nft.json +1 -1
- package/_standalone/__next/server/app/api/a2a/route_client-reference-manifest.js +1 -1
- package/_standalone/__next/server/app/api/acp/config/route.js +1 -1
- package/_standalone/__next/server/app/api/acp/config/route.js.nft.json +1 -1
- package/_standalone/__next/server/app/api/acp/config/route_client-reference-manifest.js +1 -1
- package/_standalone/__next/server/app/api/acp/detect/route.js +1 -1
- package/_standalone/__next/server/app/api/acp/detect/route.js.nft.json +1 -1
- package/_standalone/__next/server/app/api/acp/detect/route_client-reference-manifest.js +1 -1
- package/_standalone/__next/server/app/api/acp/install/route.js +1 -1
- package/_standalone/__next/server/app/api/acp/install/route.js.nft.json +1 -1
- package/_standalone/__next/server/app/api/acp/install/route_client-reference-manifest.js +1 -1
- package/_standalone/__next/server/app/api/acp/registry/route.js +1 -1
- package/_standalone/__next/server/app/api/acp/registry/route.js.nft.json +1 -1
- package/_standalone/__next/server/app/api/acp/registry/route_client-reference-manifest.js +1 -1
- package/_standalone/__next/server/app/api/acp/session/route.js +1 -1
- package/_standalone/__next/server/app/api/acp/session/route.js.nft.json +1 -1
- package/_standalone/__next/server/app/api/acp/session/route_client-reference-manifest.js +1 -1
- package/_standalone/__next/server/app/api/agent-activity/route.js +1 -1
- package/_standalone/__next/server/app/api/agent-activity/route.js.nft.json +1 -1
- package/_standalone/__next/server/app/api/agent-activity/route_client-reference-manifest.js +1 -1
- package/_standalone/__next/server/app/api/agents/copy-skill/route.js +1 -1
- package/_standalone/__next/server/app/api/agents/copy-skill/route.js.nft.json +1 -1
- package/_standalone/__next/server/app/api/agents/copy-skill/route_client-reference-manifest.js +1 -1
- package/_standalone/__next/server/app/api/agents/custom/detect/route.js +1 -1
- package/_standalone/__next/server/app/api/agents/custom/detect/route.js.nft.json +1 -1
- package/_standalone/__next/server/app/api/agents/custom/detect/route_client-reference-manifest.js +1 -1
- package/_standalone/__next/server/app/api/agents/custom/route.js +1 -1
- package/_standalone/__next/server/app/api/agents/custom/route.js.nft.json +1 -1
- package/_standalone/__next/server/app/api/agents/custom/route_client-reference-manifest.js +1 -1
- package/_standalone/__next/server/app/api/ask/route.js +1 -1
- package/_standalone/__next/server/app/api/ask/route.js.nft.json +1 -1
- package/_standalone/__next/server/app/api/ask/route_client-reference-manifest.js +1 -1
- package/_standalone/__next/server/app/api/ask-sessions/route.js +1 -1
- package/_standalone/__next/server/app/api/ask-sessions/route.js.nft.json +1 -1
- package/_standalone/__next/server/app/api/ask-sessions/route_client-reference-manifest.js +1 -1
- package/_standalone/__next/server/app/api/auth/route_client-reference-manifest.js +1 -1
- package/_standalone/__next/server/app/api/backlinks/route.js +1 -1
- package/_standalone/__next/server/app/api/backlinks/route.js.nft.json +1 -1
- package/_standalone/__next/server/app/api/backlinks/route_client-reference-manifest.js +1 -1
- package/_standalone/__next/server/app/api/bootstrap/route.js +1 -1
- package/_standalone/__next/server/app/api/bootstrap/route.js.nft.json +1 -1
- package/_standalone/__next/server/app/api/bootstrap/route_client-reference-manifest.js +1 -1
- package/_standalone/__next/server/app/api/changes/route.js +1 -1
- package/_standalone/__next/server/app/api/changes/route.js.nft.json +1 -1
- package/_standalone/__next/server/app/api/changes/route_client-reference-manifest.js +1 -1
- package/_standalone/__next/server/app/api/channels/verify/route.js +1 -1
- package/_standalone/__next/server/app/api/channels/verify/route.js.nft.json +1 -1
- package/_standalone/__next/server/app/api/channels/verify/route_client-reference-manifest.js +1 -1
- package/_standalone/__next/server/app/api/connect/route.js +1 -1
- package/_standalone/__next/server/app/api/connect/route.js.nft.json +1 -1
- package/_standalone/__next/server/app/api/connect/route_client-reference-manifest.js +1 -1
- package/_standalone/__next/server/app/api/embedding/route.js +1 -1
- package/_standalone/__next/server/app/api/embedding/route.js.nft.json +1 -1
- package/_standalone/__next/server/app/api/embedding/route_client-reference-manifest.js +1 -1
- package/_standalone/__next/server/app/api/export/route.js +1 -1
- package/_standalone/__next/server/app/api/export/route.js.nft.json +1 -1
- package/_standalone/__next/server/app/api/export/route_client-reference-manifest.js +1 -1
- package/_standalone/__next/server/app/api/extract-docx/route_client-reference-manifest.js +1 -1
- package/_standalone/__next/server/app/api/extract-pdf/route_client-reference-manifest.js +1 -1
- package/_standalone/__next/server/app/api/file/import/route.js +1 -1
- package/_standalone/__next/server/app/api/file/import/route.js.nft.json +1 -1
- package/_standalone/__next/server/app/api/file/import/route_client-reference-manifest.js +1 -1
- package/_standalone/__next/server/app/api/file/raw/route.js +1 -1
- package/_standalone/__next/server/app/api/file/raw/route.js.nft.json +1 -1
- package/_standalone/__next/server/app/api/file/raw/route_client-reference-manifest.js +1 -1
- package/_standalone/__next/server/app/api/file/route.js +1 -1
- package/_standalone/__next/server/app/api/file/route.js.nft.json +1 -1
- package/_standalone/__next/server/app/api/file/route_client-reference-manifest.js +1 -1
- package/_standalone/__next/server/app/api/files/route.js +1 -1
- package/_standalone/__next/server/app/api/files/route.js.nft.json +1 -1
- package/_standalone/__next/server/app/api/files/route_client-reference-manifest.js +1 -1
- package/_standalone/__next/server/app/api/git/route.js +1 -1
- package/_standalone/__next/server/app/api/git/route.js.nft.json +1 -1
- package/_standalone/__next/server/app/api/git/route_client-reference-manifest.js +1 -1
- package/_standalone/__next/server/app/api/graph/route.js +1 -1
- package/_standalone/__next/server/app/api/graph/route.js.nft.json +1 -1
- package/_standalone/__next/server/app/api/graph/route_client-reference-manifest.js +1 -1
- package/_standalone/__next/server/app/api/health/route.js +1 -1
- package/_standalone/__next/server/app/api/health/route.js.nft.json +1 -1
- package/_standalone/__next/server/app/api/health/route_client-reference-manifest.js +1 -1
- package/_standalone/__next/server/app/api/im/activity/route.js +1 -1
- package/_standalone/__next/server/app/api/im/activity/route.js.nft.json +1 -1
- package/_standalone/__next/server/app/api/im/activity/route_client-reference-manifest.js +1 -1
- package/_standalone/__next/server/app/api/im/config/route.js +1 -1
- package/_standalone/__next/server/app/api/im/config/route.js.nft.json +1 -1
- package/_standalone/__next/server/app/api/im/config/route_client-reference-manifest.js +1 -1
- package/_standalone/__next/server/app/api/im/feishu/long-connection/event/route.js +1 -1
- package/_standalone/__next/server/app/api/im/feishu/long-connection/event/route.js.nft.json +1 -1
- package/_standalone/__next/server/app/api/im/feishu/long-connection/event/route_client-reference-manifest.js +1 -1
- package/_standalone/__next/server/app/api/im/feishu/long-connection/route.js +1 -1
- package/_standalone/__next/server/app/api/im/feishu/long-connection/route.js.nft.json +1 -1
- package/_standalone/__next/server/app/api/im/feishu/long-connection/route_client-reference-manifest.js +1 -1
- package/_standalone/__next/server/app/api/im/status/route.js +1 -1
- package/_standalone/__next/server/app/api/im/status/route.js.nft.json +1 -1
- package/_standalone/__next/server/app/api/im/status/route_client-reference-manifest.js +1 -1
- package/_standalone/__next/server/app/api/im/test/route.js +1 -1
- package/_standalone/__next/server/app/api/im/test/route.js.nft.json +1 -1
- package/_standalone/__next/server/app/api/im/test/route_client-reference-manifest.js +1 -1
- package/_standalone/__next/server/app/api/im/webhook/feishu/route.js +1 -1
- package/_standalone/__next/server/app/api/im/webhook/feishu/route.js.nft.json +1 -1
- package/_standalone/__next/server/app/api/im/webhook/feishu/route_client-reference-manifest.js +1 -1
- package/_standalone/__next/server/app/api/im/webhook-status/route.js +1 -1
- package/_standalone/__next/server/app/api/im/webhook-status/route.js.nft.json +1 -1
- package/_standalone/__next/server/app/api/im/webhook-status/route_client-reference-manifest.js +1 -1
- package/_standalone/__next/server/app/api/inbox/clip/route.js +1 -1
- package/_standalone/__next/server/app/api/inbox/clip/route.js.nft.json +1 -1
- package/_standalone/__next/server/app/api/inbox/clip/route_client-reference-manifest.js +1 -1
- package/_standalone/__next/server/app/api/inbox/route.js +1 -1
- package/_standalone/__next/server/app/api/inbox/route.js.nft.json +1 -1
- package/_standalone/__next/server/app/api/inbox/route_client-reference-manifest.js +1 -1
- package/_standalone/__next/server/app/api/init/route.js +1 -1
- package/_standalone/__next/server/app/api/init/route.js.nft.json +1 -1
- package/_standalone/__next/server/app/api/init/route_client-reference-manifest.js +1 -1
- package/_standalone/__next/server/app/api/lint/route.js +1 -1
- package/_standalone/__next/server/app/api/lint/route.js.nft.json +1 -1
- package/_standalone/__next/server/app/api/lint/route_client-reference-manifest.js +1 -1
- package/_standalone/__next/server/app/api/mcp/agents/route.js +1 -1
- package/_standalone/__next/server/app/api/mcp/agents/route.js.nft.json +1 -1
- package/_standalone/__next/server/app/api/mcp/agents/route_client-reference-manifest.js +1 -1
- package/_standalone/__next/server/app/api/mcp/direct-tools/route.js +1 -1
- package/_standalone/__next/server/app/api/mcp/direct-tools/route.js.nft.json +1 -1
- package/_standalone/__next/server/app/api/mcp/direct-tools/route_client-reference-manifest.js +1 -1
- package/_standalone/__next/server/app/api/mcp/install/route.js +1 -1
- package/_standalone/__next/server/app/api/mcp/install/route.js.nft.json +1 -1
- package/_standalone/__next/server/app/api/mcp/install/route_client-reference-manifest.js +1 -1
- package/_standalone/__next/server/app/api/mcp/install-skill/route.js +1 -1
- package/_standalone/__next/server/app/api/mcp/install-skill/route.js.nft.json +1 -1
- package/_standalone/__next/server/app/api/mcp/install-skill/route_client-reference-manifest.js +1 -1
- package/_standalone/__next/server/app/api/mcp/restart/route.js +1 -1
- package/_standalone/__next/server/app/api/mcp/restart/route.js.nft.json +1 -1
- package/_standalone/__next/server/app/api/mcp/restart/route_client-reference-manifest.js +1 -1
- package/_standalone/__next/server/app/api/mcp/status/route.js +1 -1
- package/_standalone/__next/server/app/api/mcp/status/route.js.nft.json +1 -1
- package/_standalone/__next/server/app/api/mcp/status/route_client-reference-manifest.js +1 -1
- package/_standalone/__next/server/app/api/mcp/tools/route.js +1 -1
- package/_standalone/__next/server/app/api/mcp/tools/route.js.nft.json +1 -1
- package/_standalone/__next/server/app/api/mcp/tools/route_client-reference-manifest.js +1 -1
- package/_standalone/__next/server/app/api/mcp/uninstall/route.js +1 -1
- package/_standalone/__next/server/app/api/mcp/uninstall/route.js.nft.json +1 -1
- package/_standalone/__next/server/app/api/mcp/uninstall/route_client-reference-manifest.js +1 -1
- package/_standalone/__next/server/app/api/monitoring/route.js +1 -1
- package/_standalone/__next/server/app/api/monitoring/route.js.nft.json +1 -1
- package/_standalone/__next/server/app/api/monitoring/route_client-reference-manifest.js +1 -1
- package/_standalone/__next/server/app/api/obsidian/compat-report/route.js +1 -1
- package/_standalone/__next/server/app/api/obsidian/compat-report/route.js.nft.json +1 -1
- package/_standalone/__next/server/app/api/obsidian/compat-report/route_client-reference-manifest.js +1 -1
- package/_standalone/__next/server/app/api/obsidian/import/route.js +1 -1
- package/_standalone/__next/server/app/api/obsidian/import/route.js.nft.json +1 -1
- package/_standalone/__next/server/app/api/obsidian/import/route_client-reference-manifest.js +1 -1
- package/_standalone/__next/server/app/api/obsidian-plugins/settings/route.js +1 -1
- package/_standalone/__next/server/app/api/obsidian-plugins/settings/route.js.nft.json +1 -1
- package/_standalone/__next/server/app/api/obsidian-plugins/settings/route_client-reference-manifest.js +1 -1
- package/_standalone/__next/server/app/api/recent-files/route.js +1 -1
- package/_standalone/__next/server/app/api/recent-files/route.js.nft.json +1 -1
- package/_standalone/__next/server/app/api/recent-files/route_client-reference-manifest.js +1 -1
- package/_standalone/__next/server/app/api/restart/route.js +1 -1
- package/_standalone/__next/server/app/api/restart/route.js.nft.json +1 -1
- package/_standalone/__next/server/app/api/restart/route_client-reference-manifest.js +1 -1
- package/_standalone/__next/server/app/api/search/prewarm/route.js +1 -1
- package/_standalone/__next/server/app/api/search/prewarm/route.js.nft.json +1 -1
- package/_standalone/__next/server/app/api/search/prewarm/route_client-reference-manifest.js +1 -1
- package/_standalone/__next/server/app/api/search/route.js +1 -1
- package/_standalone/__next/server/app/api/search/route.js.nft.json +1 -1
- package/_standalone/__next/server/app/api/search/route_client-reference-manifest.js +1 -1
- package/_standalone/__next/server/app/api/settings/list-models/route.js +1 -1
- package/_standalone/__next/server/app/api/settings/list-models/route.js.nft.json +1 -1
- package/_standalone/__next/server/app/api/settings/list-models/route_client-reference-manifest.js +1 -1
- package/_standalone/__next/server/app/api/settings/reset-token/route.js +1 -1
- package/_standalone/__next/server/app/api/settings/reset-token/route.js.nft.json +1 -1
- package/_standalone/__next/server/app/api/settings/reset-token/route_client-reference-manifest.js +1 -1
- package/_standalone/__next/server/app/api/settings/route.js +1 -1
- package/_standalone/__next/server/app/api/settings/route.js.nft.json +1 -1
- package/_standalone/__next/server/app/api/settings/route_client-reference-manifest.js +1 -1
- package/_standalone/__next/server/app/api/settings/test-key/route.js +1 -1
- package/_standalone/__next/server/app/api/settings/test-key/route.js.nft.json +1 -1
- package/_standalone/__next/server/app/api/settings/test-key/route_client-reference-manifest.js +1 -1
- package/_standalone/__next/server/app/api/setup/check-path/route.js +1 -1
- package/_standalone/__next/server/app/api/setup/check-path/route.js.nft.json +1 -1
- package/_standalone/__next/server/app/api/setup/check-path/route_client-reference-manifest.js +1 -1
- package/_standalone/__next/server/app/api/setup/check-port/route.js +1 -1
- package/_standalone/__next/server/app/api/setup/check-port/route.js.nft.json +1 -1
- package/_standalone/__next/server/app/api/setup/check-port/route_client-reference-manifest.js +1 -1
- package/_standalone/__next/server/app/api/setup/generate-token/route.js +1 -1
- package/_standalone/__next/server/app/api/setup/generate-token/route.js.nft.json +1 -1
- package/_standalone/__next/server/app/api/setup/generate-token/route_client-reference-manifest.js +1 -1
- package/_standalone/__next/server/app/api/setup/ls/route.js +1 -1
- package/_standalone/__next/server/app/api/setup/ls/route.js.nft.json +1 -1
- package/_standalone/__next/server/app/api/setup/ls/route_client-reference-manifest.js +1 -1
- package/_standalone/__next/server/app/api/setup/route.js +1 -1
- package/_standalone/__next/server/app/api/setup/route.js.nft.json +1 -1
- package/_standalone/__next/server/app/api/setup/route_client-reference-manifest.js +1 -1
- package/_standalone/__next/server/app/api/skills/route.js +1 -1
- package/_standalone/__next/server/app/api/skills/route.js.nft.json +1 -1
- package/_standalone/__next/server/app/api/skills/route_client-reference-manifest.js +1 -1
- package/_standalone/__next/server/app/api/space-overview/route.js +1 -1
- package/_standalone/__next/server/app/api/space-overview/route.js.nft.json +1 -1
- package/_standalone/__next/server/app/api/space-overview/route_client-reference-manifest.js +1 -1
- package/_standalone/__next/server/app/api/sync/route.js +1 -1
- package/_standalone/__next/server/app/api/sync/route.js.nft.json +1 -1
- package/_standalone/__next/server/app/api/sync/route_client-reference-manifest.js +1 -1
- package/_standalone/__next/server/app/api/tree-version/route.js +1 -1
- package/_standalone/__next/server/app/api/tree-version/route.js.nft.json +1 -1
- package/_standalone/__next/server/app/api/tree-version/route_client-reference-manifest.js +1 -1
- package/_standalone/__next/server/app/api/uninstall/route.js +1 -1
- package/_standalone/__next/server/app/api/uninstall/route.js.nft.json +1 -1
- package/_standalone/__next/server/app/api/uninstall/route_client-reference-manifest.js +1 -1
- package/_standalone/__next/server/app/api/update/route.js +1 -1
- package/_standalone/__next/server/app/api/update/route.js.nft.json +1 -1
- package/_standalone/__next/server/app/api/update/route_client-reference-manifest.js +1 -1
- package/_standalone/__next/server/app/api/update-check/route.js +1 -1
- package/_standalone/__next/server/app/api/update-check/route.js.nft.json +1 -1
- package/_standalone/__next/server/app/api/update-check/route_client-reference-manifest.js +1 -1
- package/_standalone/__next/server/app/api/update-status/route.js +1 -1
- package/_standalone/__next/server/app/api/update-status/route.js.nft.json +1 -1
- package/_standalone/__next/server/app/api/update-status/route_client-reference-manifest.js +1 -1
- package/_standalone/__next/server/app/api/workflows/route.js +1 -1
- package/_standalone/__next/server/app/api/workflows/route.js.nft.json +1 -1
- package/_standalone/__next/server/app/api/workflows/route_client-reference-manifest.js +1 -1
- package/_standalone/__next/server/app/capture/history/page.js +1 -1
- package/_standalone/__next/server/app/capture/history/page.js.nft.json +1 -1
- package/_standalone/__next/server/app/capture/history/page_client-reference-manifest.js +1 -1
- package/_standalone/__next/server/app/capture/page.js +1 -1
- package/_standalone/__next/server/app/capture/page.js.nft.json +1 -1
- package/_standalone/__next/server/app/capture/page_client-reference-manifest.js +1 -1
- package/_standalone/__next/server/app/changelog/page.js +1 -1
- package/_standalone/__next/server/app/changelog/page.js.nft.json +1 -1
- package/_standalone/__next/server/app/changelog/page_client-reference-manifest.js +1 -1
- package/_standalone/__next/server/app/changes/page.js +1 -1
- package/_standalone/__next/server/app/changes/page.js.nft.json +1 -1
- package/_standalone/__next/server/app/changes/page_client-reference-manifest.js +1 -1
- package/_standalone/__next/server/app/echo/[segment]/page.js +1 -1
- package/_standalone/__next/server/app/echo/[segment]/page.js.nft.json +1 -1
- package/_standalone/__next/server/app/echo/[segment]/page_client-reference-manifest.js +1 -1
- package/_standalone/__next/server/app/echo/page.js +1 -1
- package/_standalone/__next/server/app/echo/page.js.nft.json +1 -1
- package/_standalone/__next/server/app/echo/page_client-reference-manifest.js +1 -1
- package/_standalone/__next/server/app/explore/page.js +1 -1
- package/_standalone/__next/server/app/explore/page.js.nft.json +1 -1
- package/_standalone/__next/server/app/explore/page_client-reference-manifest.js +1 -1
- package/_standalone/__next/server/app/help/page.js +1 -1
- package/_standalone/__next/server/app/help/page.js.nft.json +1 -1
- package/_standalone/__next/server/app/help/page_client-reference-manifest.js +1 -1
- package/_standalone/__next/server/app/inbox/history/page.js +1 -1
- package/_standalone/__next/server/app/inbox/history/page.js.nft.json +1 -1
- package/_standalone/__next/server/app/inbox/history/page_client-reference-manifest.js +1 -1
- package/_standalone/__next/server/app/login/page.js +1 -1
- package/_standalone/__next/server/app/login/page.js.nft.json +1 -1
- package/_standalone/__next/server/app/login/page_client-reference-manifest.js +1 -1
- package/_standalone/__next/server/app/page.js +1 -1
- package/_standalone/__next/server/app/page.js.nft.json +1 -1
- package/_standalone/__next/server/app/page_client-reference-manifest.js +1 -1
- package/_standalone/__next/server/app/settings/page.js +2 -2
- package/_standalone/__next/server/app/settings/page.js.nft.json +1 -1
- package/_standalone/__next/server/app/settings/page_client-reference-manifest.js +1 -1
- package/_standalone/__next/server/app/setup/page.js +1 -1
- package/_standalone/__next/server/app/setup/page.js.nft.json +1 -1
- package/_standalone/__next/server/app/setup/page_client-reference-manifest.js +1 -1
- package/_standalone/__next/server/app/todo/page.js +1 -1
- package/_standalone/__next/server/app/todo/page.js.nft.json +1 -1
- package/_standalone/__next/server/app/todo/page_client-reference-manifest.js +1 -1
- package/_standalone/__next/server/app/trash/page.js +2 -2
- package/_standalone/__next/server/app/trash/page.js.nft.json +1 -1
- package/_standalone/__next/server/app/trash/page_client-reference-manifest.js +1 -1
- package/_standalone/__next/server/app/view/[...path]/page.js +3 -3
- package/_standalone/__next/server/app/view/[...path]/page.js.nft.json +1 -1
- package/_standalone/__next/server/app/view/[...path]/page_client-reference-manifest.js +1 -1
- package/_standalone/__next/server/app/wiki/page.js +1 -1
- package/_standalone/__next/server/app/wiki/page.js.nft.json +1 -1
- package/_standalone/__next/server/app/wiki/page_client-reference-manifest.js +1 -1
- package/_standalone/__next/server/app-paths-manifest.json +22 -22
- package/_standalone/__next/server/chunks/1976.js +3 -3
- package/_standalone/__next/server/chunks/{5225.js → 3219.js} +4 -4
- package/_standalone/__next/server/chunks/3566.js +1 -1
- package/_standalone/__next/server/chunks/6602.js +29 -29
- package/_standalone/__next/server/chunks/6754.js +1 -1
- package/_standalone/__next/server/chunks/7765.js +1 -1
- package/_standalone/__next/server/chunks/8028.js +1 -1
- package/_standalone/__next/server/chunks/{7295.js → 8461.js} +19 -19
- package/_standalone/__next/server/middleware-build-manifest.js +1 -1
- package/_standalone/__next/server/middleware-react-loadable-manifest.js +1 -1
- package/_standalone/__next/server/pages/500.html +2 -2
- package/_standalone/__next/server/server-reference-manifest.js +1 -1
- package/_standalone/__next/server/server-reference-manifest.json +1 -1
- package/_standalone/__next/static/chunks/{1430-a3447cf370715cad.js → 1430-c4ffa328888515c1.js} +1 -1
- package/{static-web/_next/static/chunks/7166-d6d8489fdf67d180.js → _standalone/__next/static/chunks/2461-a1073a0bd04c228a.js} +3 -3
- package/_standalone/__next/static/chunks/{2280-2277c97eae59ded9.js → 47-41e1a06e6d389b69.js} +2 -2
- package/{static-web/_next/static/chunks/5200-2447cea5eb41a922.js → _standalone/__next/static/chunks/5200-6c82e5ce54a95b4b.js} +2 -2
- package/_standalone/__next/static/chunks/{6947.51e37852cef26113.js → 6947.7e50e18da7dc4aef.js} +1 -1
- package/_standalone/__next/static/chunks/{1998.c8edc5601fa7362f.js → 9216.d3339c27169b21bf.js} +1 -1
- package/{static-web/_next/static/chunks/app/layout-7aa371fe2615cd3e.js → _standalone/__next/static/chunks/app/layout-5966cd317bbed698.js} +37 -37
- package/_standalone/__next/static/chunks/app/settings/{page-4b75d6c17f42d565.js → page-c9f44b3447a41431.js} +1 -1
- package/_standalone/__next/static/chunks/app/trash/page-d87207a63591ee16.js +1 -0
- package/_standalone/__next/static/chunks/app/view/[...path]/page-1898f4ae4ab28db0.js +12 -0
- package/_standalone/__next/static/chunks/webpack-75abef9cbb1ea912.js +1 -0
- package/dist/server/handlers/mcp-agents.d.ts +1 -0
- package/dist/server/handlers/mcp-agents.d.ts.map +1 -1
- package/dist/server/handlers/mcp-agents.js +230 -7
- package/dist/server/handlers/mcp-agents.js.map +1 -1
- package/dist/server/http.d.ts +7 -4
- package/dist/server/http.d.ts.map +1 -1
- package/dist/server/http.js +2 -0
- package/dist/server/http.js.map +1 -1
- package/dist/server/mcp-agent-registry.d.ts +4 -0
- package/dist/server/mcp-agent-registry.d.ts.map +1 -0
- package/dist/server/mcp-agent-registry.js +266 -0
- package/dist/server/mcp-agent-registry.js.map +1 -0
- package/package.json +1 -1
- package/runtime-manifest.json +1 -1
- package/scripts/smoke-desktop-app.mjs +82 -8
- package/scripts/verify-desktop-runtime.mjs +2 -1
- package/static-web/.mindos-build-version +1 -1
- package/static-web/_next/static/chunks/{1430-a3447cf370715cad.js → 1430-c4ffa328888515c1.js} +1 -1
- package/{_standalone/__next/static/chunks/7166-d6d8489fdf67d180.js → static-web/_next/static/chunks/2461-a1073a0bd04c228a.js} +3 -3
- package/static-web/_next/static/chunks/{2280-2277c97eae59ded9.js → 47-41e1a06e6d389b69.js} +2 -2
- package/{_standalone/__next/static/chunks/5200-2447cea5eb41a922.js → static-web/_next/static/chunks/5200-6c82e5ce54a95b4b.js} +2 -2
- package/static-web/_next/static/chunks/{6947.51e37852cef26113.js → 6947.7e50e18da7dc4aef.js} +1 -1
- package/static-web/_next/static/chunks/{1998.c8edc5601fa7362f.js → 9216.d3339c27169b21bf.js} +1 -1
- package/{_standalone/__next/static/chunks/app/layout-7aa371fe2615cd3e.js → static-web/_next/static/chunks/app/layout-5966cd317bbed698.js} +37 -37
- package/static-web/_next/static/chunks/app/settings/{page-4b75d6c17f42d565.js → page-c9f44b3447a41431.js} +1 -1
- package/static-web/_next/static/chunks/app/trash/page-d87207a63591ee16.js +1 -0
- package/static-web/_next/static/chunks/app/view/[...path]/page-1898f4ae4ab28db0.js +12 -0
- package/static-web/_next/static/chunks/webpack-75abef9cbb1ea912.js +1 -0
- package/static-web/help/index.html +3 -3
- package/static-web/index.html +3 -3
- package/static-web/setup/index.html +3 -3
- package/static-web/static-web-manifest.json +1 -1
- package/static-web/wiki/index.html +3 -3
- package/_standalone/__next/static/chunks/app/trash/page-e1bfaeeca2de6ab4.js +0 -1
- package/_standalone/__next/static/chunks/app/view/[...path]/page-ffe3c61100e25591.js +0 -12
- package/_standalone/__next/static/chunks/webpack-e39fda9494843875.js +0 -1
- package/static-web/_next/static/chunks/app/trash/page-e1bfaeeca2de6ab4.js +0 -1
- package/static-web/_next/static/chunks/app/view/[...path]/page-ffe3c61100e25591.js +0 -12
- package/static-web/_next/static/chunks/webpack-e39fda9494843875.js +0 -1
- /package/_standalone/__next/static/{DFngZEGZSufSm5RuKPkYN → J9M4pgRyRHH7Ofbxuuklh}/_buildManifest.js +0 -0
- /package/_standalone/__next/static/{DFngZEGZSufSm5RuKPkYN → J9M4pgRyRHH7Ofbxuuklh}/_ssgManifest.js +0 -0
- /package/static-web/_next/static/{DFngZEGZSufSm5RuKPkYN → J9M4pgRyRHH7Ofbxuuklh}/_buildManifest.js +0 -0
- /package/static-web/_next/static/{DFngZEGZSufSm5RuKPkYN → J9M4pgRyRHH7Ofbxuuklh}/_ssgManifest.js +0 -0
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
<!DOCTYPE html><html lang="en" style="background-color:#f8f6f1;color:#1c1a17"><head><meta charSet="utf-8"/><meta name="viewport" content="width=device-width, initial-scale=1, viewport-fit=cover"/><link rel="stylesheet" href="/_next/static/css/0d2fd378b5449176.css" data-precedence="next"/><link rel="stylesheet" href="/_next/static/css/599369d853c61df7.css" data-precedence="next"/><link rel="preload" as="script" fetchPriority="low" href="/_next/static/chunks/webpack-
|
|
1
|
+
<!DOCTYPE html><html lang="en" style="background-color:#f8f6f1;color:#1c1a17"><head><meta charSet="utf-8"/><meta name="viewport" content="width=device-width, initial-scale=1, viewport-fit=cover"/><link rel="stylesheet" href="/_next/static/css/0d2fd378b5449176.css" data-precedence="next"/><link rel="stylesheet" href="/_next/static/css/599369d853c61df7.css" data-precedence="next"/><link rel="preload" as="script" fetchPriority="low" href="/_next/static/chunks/webpack-75abef9cbb1ea912.js"/><script src="/_next/static/chunks/bf0c1d5b-a40904205f332b1b.js" async=""></script><script src="/_next/static/chunks/2330-3ba4770e88bc8707.js" async=""></script><script src="/_next/static/chunks/main-app-23adfdc06470abb6.js" async=""></script><script src="/_next/static/chunks/3940-5473abef004ec592.js" async=""></script><script src="/_next/static/chunks/2130-8604144349838fa9.js" async=""></script><script src="/_next/static/chunks/7355-4510296488659369.js" async=""></script><script src="/_next/static/chunks/2073-3f913ebb13702b7e.js" async=""></script><script src="/_next/static/chunks/app/wiki/page-4c9bc816069b6f2a.js" async=""></script><script src="/_next/static/chunks/app/global-error-d42727c6c6c48879.js" async=""></script><script src="/_next/static/chunks/505c7712-0c24a53e04230ea7.js" async=""></script><script src="/_next/static/chunks/325a3484-c4849768e3512277.js" async=""></script><script src="/_next/static/chunks/8225-4655c2b7b7e84b86.js" async=""></script><script src="/_next/static/chunks/7156-9bff361e032a7906.js" async=""></script><script src="/_next/static/chunks/7368-36239cc62a8bcd45.js" async=""></script><script src="/_next/static/chunks/4937-4101fcdadacf46e3.js" async=""></script><script src="/_next/static/chunks/4172-4fc551f07f7d082f.js" async=""></script><script src="/_next/static/chunks/878-dcbd588adc2102fa.js" async=""></script><script src="/_next/static/chunks/2288-4dcb8ad3ccbd651e.js" async=""></script><script src="/_next/static/chunks/4454-f582e17b76ccf1d1.js" async=""></script><script src="/_next/static/chunks/5152-2db55438be7ecb94.js" async=""></script><script src="/_next/static/chunks/5191-88914df1c15c22e6.js" async=""></script><script src="/_next/static/chunks/5200-6c82e5ce54a95b4b.js" async=""></script><script src="/_next/static/chunks/9479-7b304601a56304cd.js" async=""></script><script src="/_next/static/chunks/2461-a1073a0bd04c228a.js" async=""></script><script src="/_next/static/chunks/763-10e7ea1774f0970d.js" async=""></script><script src="/_next/static/chunks/2669-60014e0cb3a45fce.js" async=""></script><script src="/_next/static/chunks/app/layout-5966cd317bbed698.js" async=""></script><script src="/_next/static/chunks/app/error-c46d1b03d5e3289c.js" async=""></script><meta name="theme-color" content="#c8873a"/><title>MindOS</title><meta name="description" content="Personal knowledge base"/><link rel="manifest" href="/manifest.json"/><meta name="mobile-web-app-capable" content="yes"/><meta name="apple-mobile-web-app-capable" content="yes"/><meta name="apple-mobile-web-app-status-bar-style" content="black-translucent"/><link rel="icon" href="/logo-square.svg"/><link rel="apple-touch-icon" href="/icons/icon-192.png"/><script>(function(){if(typeof Node!=='undefined'){var o=Node.prototype.removeChild;Node.prototype.removeChild=function(c){if(c.parentNode!==this){try{return o.call(c.parentNode,c)}catch(e){return c}}return o.call(this,c)};var i=Node.prototype.insertBefore;Node.prototype.insertBefore=function(n,r){if(r&&r.parentNode!==this){try{return i.call(r.parentNode,n,r)}catch(e){return i.call(this,n,null)}}return i.call(this,n,r)}}})();</script><script>(function(){try{if(/electron/i.test(navigator.userAgent)&&/macintosh/i.test(navigator.userAgent)){document.documentElement.setAttribute('data-electron-mac','')}}catch(e){}})();</script><script>(function(){try{var s=localStorage.getItem('theme');var dark=s&&s!=='system'?s==='dark':window.matchMedia('(prefers-color-scheme: dark)').matches;document.documentElement.classList.toggle('dark',dark);document.documentElement.style.backgroundColor=dark?'#131210':'#f8f6f1';document.documentElement.style.color=dark?'#e8e4dc':'#1c1a17';var cw=localStorage.getItem('content-width');if(cw)document.documentElement.style.setProperty('--content-width-override',cw);var pf=localStorage.getItem('prose-font');if(!pf){pf='inter';localStorage.setItem('prose-font','inter')}if(pf==='geist'){pf='inter';localStorage.setItem('prose-font','inter')}var fm={lora:'"Lora", Georgia, serif','ibm-plex-sans':'"IBM Plex Sans", sans-serif',inter:'var(--font-inter), sans-serif','ibm-plex-mono':'"IBM Plex Mono", monospace'};if(pf&&fm[pf])document.documentElement.style.setProperty('--prose-font-override',fm[pf]);var loc=localStorage.getItem('locale')||'system';var rl=loc==='system'?(navigator.language.startsWith('zh')?'zh':'en'):loc;window.__mindos_locale__=rl;document.documentElement.lang=rl==='zh'?'zh':'en';document.cookie='locale='+rl+';path=/;max-age=31536000;SameSite=Lax'}catch(e){}})();</script><script src="/_next/static/chunks/polyfills-42372ed130431b0a.js" noModule=""></script></head><body class="antialiased bg-background text-foreground"><div hidden=""><!--$--><!--/$--></div><a href="#main-content" class="sr-only focus-visible:not-sr-only focus-visible:fixed focus-visible:top-2 focus-visible:left-2 focus-visible:z-[60] focus-visible:px-4 focus-visible:py-2 focus-visible:rounded-lg focus-visible:text-sm focus-visible:font-medium bg-[var(--amber)] text-[var(--amber-foreground)]">Skip to main content</a><aside class="group hidden md:flex fixed top-0 left-0 h-screen z-[31] flex-col bg-background border-r border-border transition-[width] duration-200 ease-out" style="width:48px" role="toolbar" aria-label="Navigation" aria-orientation="vertical"><div class="flex flex-col h-full w-full overflow-hidden"><button type="button" class="flex items-center justify-center w-full h-[46px] shrink-0 transition-opacity cursor-pointer opacity-50 hover:opacity-80" aria-label="MindOS Home"><svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 80 40" fill="none" class="w-7 h-3.5 shrink-0 text-[var(--amber)]" aria-hidden="true"><defs><linearGradient id="grad-human-rail" x1="35" y1="20" x2="5" y2="20" gradientUnits="userSpaceOnUse"><stop offset="0%" stop-color="currentColor" stop-opacity="0.8"></stop><stop offset="100%" stop-color="currentColor" stop-opacity="0.3"></stop></linearGradient><linearGradient id="grad-agent-rail" x1="35" y1="20" x2="75" y2="20" gradientUnits="userSpaceOnUse"><stop offset="0%" stop-color="currentColor" stop-opacity="0.8"></stop><stop offset="100%" stop-color="currentColor" stop-opacity="1"></stop></linearGradient></defs><path d="M35,20 C25,35 8,35 8,20 C8,5 25,5 35,20" stroke="url(#grad-human-rail)" stroke-width="3" stroke-dasharray="2 4" stroke-linecap="round"></path><path d="M35,20 C45,2 75,2 75,20 C75,38 45,38 35,20" stroke="url(#grad-agent-rail)" stroke-width="4.5" stroke-linecap="round"></path><path d="M35,17.5 Q35,20 37.5,20 Q35,20 35,22.5 Q35,20 32.5,20 Q35,20 35,17.5 Z" fill="var(--logo-sparkle)"></path></svg></button><div class="mx-2 border-t border-border"></div><div class="flex flex-col items-center gap-1 py-2"><button aria-pressed="true" aria-label="Wiki" data-walkthrough="files-panel" class="
|
|
2
2
|
relative flex items-center justify-center w-10 h-10 rounded-md transition-colors
|
|
3
3
|
text-[var(--amber)] bg-[var(--amber-dim)]
|
|
4
4
|
focus-visible:ring-2 focus-visible:ring-ring
|
|
@@ -62,5 +62,5 @@
|
|
|
62
62
|
padding-top: 0;
|
|
63
63
|
}
|
|
64
64
|
}
|
|
65
|
-
</style><script>requestAnimationFrame(function(){$RT=performance.now()});</script><script src="/_next/static/chunks/webpack-e39fda9494843875.js" id="_R_" async=""></script><div hidden id="S:0"><div class="content-width px-4 md:px-6 py-10 md:py-14"><div class="mb-10"><div class="flex items-center gap-3 mb-6"><div class="w-1 h-7 rounded-full bg-gradient-to-b from-[var(--amber)] to-[var(--amber)]/20"></div><h1 class="text-2xl font-semibold tracking-tight text-foreground">Wiki</h1></div><div class="w-full max-w-xl flex flex-col sm:flex-row items-stretch sm:items-center gap-2 pl-4"><button title="⌘/" class="flex-1 flex items-center gap-3 px-4 py-3.5 rounded-xl border border-border/50 shadow-sm bg-card/80 backdrop-blur-sm transition-all duration-200 hover:border-[var(--amber)]/40 hover:shadow-md hover:-translate-y-0.5 group"><svg xmlns="http://www.w3.org/2000/svg" width="16" height="16" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" class="lucide lucide-sparkles shrink-0 text-[var(--amber)] group-hover:scale-110 transition-transform duration-150" aria-hidden="true"><path d="M11.017 2.814a1 1 0 0 1 1.966 0l1.051 5.558a2 2 0 0 0 1.594 1.594l5.558 1.051a1 1 0 0 1 0 1.966l-5.558 1.051a2 2 0 0 0-1.594 1.594l-1.051 5.558a1 1 0 0 1-1.966 0l-1.051-5.558a2 2 0 0 0-1.594-1.594l-5.558-1.051a1 1 0 0 1 0-1.966l5.558-1.051a2 2 0 0 0 1.594-1.594z"></path><path d="M20 2v4"></path><path d="M22 4h-4"></path><circle cx="4" cy="20" r="2"></circle></svg><div class="flex-1 min-h-[1.5rem] flex items-center"><span class="text-sm text-left text-muted-foreground animate-in fade-in duration-300">Organize inbox</span></div><kbd class="hidden sm:inline-flex items-center gap-0.5 px-2 py-0.5 rounded text-xs font-mono font-medium bg-[var(--amber-dim)] text-[var(--amber-text)]">⌘/</kbd></button><button title="⌘K" class="flex items-center gap-2 px-3.5 py-3 rounded-xl border border-border/50 text-sm text-muted-foreground transition-all duration-200 shrink-0 hover:bg-muted/60 hover:shadow-sm hover:-translate-y-0.5"><svg xmlns="http://www.w3.org/2000/svg" width="14" height="14" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" class="lucide lucide-search" aria-hidden="true"><path d="m21 21-4.34-4.34"></path><circle cx="11" cy="11" r="8"></circle></svg><kbd class="hidden sm:inline-flex items-center px-1.5 py-0.5 rounded text-xs font-mono bg-muted">⌘K</kbd></button></div><div class="flex items-center gap-3 mt-4 pl-4"><a class="inline-flex items-center gap-2 px-4 py-2.5 rounded-lg text-sm font-medium transition-all duration-200 hover:shadow-md hover:-translate-y-0.5 bg-[var(--amber)] text-[var(--amber-foreground)]" href="/view/Untitled.md"><svg xmlns="http://www.w3.org/2000/svg" width="14" height="14" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" class="lucide lucide-file-plus" aria-hidden="true"><path d="M6 22a2 2 0 0 1-2-2V4a2 2 0 0 1 2-2h8a2.4 2.4 0 0 1 1.704.706l3.588 3.588A2.4 2.4 0 0 1 20 8v12a2 2 0 0 1-2 2z"></path><path d="M14 2v5a1 1 0 0 0 1 1h5"></path><path d="M9 15h6"></path><path d="M12 18v-6"></path></svg><span>New Notes</span></a><a class="inline-flex items-center gap-2 px-3.5 py-2 rounded-lg text-sm font-medium transition-colors text-muted-foreground hover:text-foreground hover:bg-muted" href="/view/README.md"><svg xmlns="http://www.w3.org/2000/svg" width="14" height="14" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" class="lucide lucide-arrow-right text-[var(--amber)]/60" aria-hidden="true"><path d="M5 12h14"></path><path d="m12 5 7 7-7 7"></path></svg><span>Continue editing</span><span class="text-xs opacity-40 truncate max-w-32">README.md</span></a></div></div><section class="mb-10"><div class="flex items-center gap-2.5 mb-5"><div class="flex items-center justify-center w-6 h-6 rounded-md bg-[var(--amber-subtle)] text-[var(--amber)]"><svg xmlns="http://www.w3.org/2000/svg" width="14" height="14" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" class="lucide lucide-brain" aria-hidden="true"><path d="M12 18V5"></path><path d="M15 13a4.17 4.17 0 0 1-3-4 4.17 4.17 0 0 1-3 4"></path><path d="M17.598 6.5A3 3 0 1 0 12 5a3 3 0 1 0-5.598 1.5"></path><path d="M17.997 5.125a4 4 0 0 1 2.526 5.77"></path><path d="M18 18a4 4 0 0 0 2-7.464"></path><path d="M19.967 17.483A4 4 0 1 1 12 18a4 4 0 1 1-7.967-.517"></path><path d="M6 18a4 4 0 0 1-2-7.464"></path><path d="M6.003 5.125a4 4 0 0 0-2.526 5.77"></path></svg></div><h2 class="text-[13px] font-semibold text-foreground tracking-wide">Spaces</h2><div class="ml-auto flex items-center gap-3"><button class="flex items-center gap-1.5 text-xs font-medium text-[var(--amber)] transition-colors hover:opacity-80 cursor-pointer font-display"><svg xmlns="http://www.w3.org/2000/svg" width="12" height="12" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" class="lucide lucide-plus" aria-hidden="true"><path d="M5 12h14"></path><path d="M12 5v14"></path></svg><span>New Space</span></button></div></div><div class="rounded-xl border border-border/40 bg-card/30 px-6 py-12 text-center"><div class="inline-flex items-center justify-center w-12 h-12 rounded-full bg-[var(--amber-subtle)] mb-4"><svg xmlns="http://www.w3.org/2000/svg" width="22" height="22" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" class="lucide lucide-brain text-[var(--amber)]/60" aria-hidden="true"><path d="M12 18V5"></path><path d="M15 13a4.17 4.17 0 0 1-3-4 4.17 4.17 0 0 1-3 4"></path><path d="M17.598 6.5A3 3 0 1 0 12 5a3 3 0 1 0-5.598 1.5"></path><path d="M17.997 5.125a4 4 0 0 1 2.526 5.77"></path><path d="M18 18a4 4 0 0 0 2-7.464"></path><path d="M19.967 17.483A4 4 0 1 1 12 18a4 4 0 1 1-7.967-.517"></path><path d="M6 18a4 4 0 0 1-2-7.464"></path><path d="M6.003 5.125a4 4 0 0 0-2.526 5.77"></path></svg></div><p class="text-sm font-medium text-muted-foreground/70 mb-1">No spaces yet. Create one to organize your knowledge.</p><p class="text-xs text-muted-foreground/60 mb-4">Create your first space to organize your knowledge</p><button class="inline-flex items-center gap-2 px-4 py-2 text-sm font-medium rounded-lg transition-colors bg-[var(--amber)] text-[var(--amber-foreground)] hover:opacity-80"><svg xmlns="http://www.w3.org/2000/svg" width="14" height="14" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" class="lucide lucide-plus" aria-hidden="true"><path d="M5 12h14"></path><path d="M12 5v14"></path></svg>Create Space</button></div></section><section class="mb-8 animate-pulse"><div class="h-4 w-24 bg-muted rounded mb-3"></div><div class="space-y-2"><div class="h-10 bg-muted/50 rounded-lg"></div><div class="h-10 bg-muted/50 rounded-lg"></div></div></section><div class="border-t border-border/30 mb-8"></div><section class="mb-8"><div class="flex items-center gap-2.5 mb-4"><div class="flex items-center justify-center w-6 h-6 rounded-md bg-[var(--amber-subtle)] text-[var(--amber)]"><svg xmlns="http://www.w3.org/2000/svg" width="14" height="14" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" class="lucide lucide-clock" aria-hidden="true"><circle cx="12" cy="12" r="10"></circle><path d="M12 6v6l4 2"></path></svg></div><h2 class="text-[13px] font-semibold text-foreground tracking-wide">Recently Edited</h2><span class="inline-flex items-center justify-center min-w-[20px] h-5 px-1.5 text-[10px] font-semibold rounded-full bg-muted text-muted-foreground tabular-nums">1</span><div class="ml-auto"><a class="flex items-center gap-1.5 text-xs font-medium text-[var(--amber)] transition-colors hover:opacity-80" href="/changelog"><svg xmlns="http://www.w3.org/2000/svg" width="12" height="12" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" class="lucide lucide-history" aria-hidden="true"><path d="M3 12a9 9 0 1 0 9-9 9.75 9.75 0 0 0-6.74 2.74L3 8"></path><path d="M3 3v5h5"></path><path d="M12 7v5l4 2"></path></svg><span>Change History</span></a></div></div><div class="flex flex-col gap-0.5"><a class="flex items-center gap-3 px-3 py-2 rounded-lg transition-all duration-100 hover:translate-x-0.5 hover:bg-muted group overflow-hidden" href="/view/README.md"><svg xmlns="http://www.w3.org/2000/svg" width="12" height="12" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" class="lucide lucide-file-text shrink-0 text-muted-foreground" aria-hidden="true"><path d="M6 22a2 2 0 0 1-2-2V4a2 2 0 0 1 2-2h8a2.4 2.4 0 0 1 1.704.706l3.588 3.588A2.4 2.4 0 0 1 20 8v12a2 2 0 0 1-2 2z"></path><path d="M14 2v5a1 1 0 0 0 1 1h5"></path><path d="M10 9H8"></path><path d="M16 13H8"></path><path d="M16 17H8"></path></svg><div class="flex-1 min-w-0"><span class="text-sm truncate block text-foreground">README.md</span></div><span class="text-xs shrink-0 tabular-nums text-muted-foreground/40">just now</span></a></div></section><div class="py-6 border-t border-border/20 flex items-center gap-1.5 text-xs font-display text-muted-foreground/30"><svg xmlns="http://www.w3.org/2000/svg" width="10" height="10" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" class="lucide lucide-sparkles text-[var(--amber)]/40" aria-hidden="true"><path d="M11.017 2.814a1 1 0 0 1 1.966 0l1.051 5.558a2 2 0 0 0 1.594 1.594l5.558 1.051a1 1 0 0 1 0 1.966l-5.558 1.051a2 2 0 0 0-1.594 1.594l-1.051 5.558a1 1 0 0 1-1.966 0l-1.051-5.558a2 2 0 0 0-1.594-1.594l-5.558-1.051a1 1 0 0 1 0-1.966l5.558-1.051a2 2 0 0 0 1.594-1.594z"></path><path d="M20 2v4"></path><path d="M22 4h-4"></path><circle cx="4" cy="20" r="2"></circle></svg><span>MindOS · human-agent collaborative mind system</span></div></div><!--$--><!--/$--></div><script>$RB=[];$RV=function(a){$RT=performance.now();for(var b=0;b<a.length;b+=2){var c=a[b],e=a[b+1];null!==e.parentNode&&e.parentNode.removeChild(e);var f=c.parentNode;if(f){var g=c.previousSibling,h=0;do{if(c&&8===c.nodeType){var d=c.data;if("/$"===d||"/&"===d)if(0===h)break;else h--;else"$"!==d&&"$?"!==d&&"$~"!==d&&"$!"!==d&&"&"!==d||h++}d=c.nextSibling;f.removeChild(c);c=d}while(c);for(;e.firstChild;)f.insertBefore(e.firstChild,c);g.data="$";g._reactRetry&&requestAnimationFrame(g._reactRetry)}}a.length=0};
|
|
66
|
-
$RC=function(a,b){if(b=document.getElementById(b))(a=document.getElementById(a))?(a.previousSibling.data="$~",$RB.push(a,b),2===$RB.length&&("number"!==typeof $RT?requestAnimationFrame($RV.bind(null,$RB)):(a=performance.now(),setTimeout($RV.bind(null,$RB),2300>a&&2E3<a?2300-a:$RT+300-a)))):b.parentNode.removeChild(b)};$RC("B:0","S:0")</script><script>(self.__next_f=self.__next_f||[]).push([0])</script><script>self.__next_f.push([1,"1:\"$Sreact.fragment\"\n3:I[49357,[],\"\"]\n4:I[90681,[],\"\"]\n5:I[28355,[\"3940\",\"static/chunks/3940-5473abef004ec592.js\",\"2130\",\"static/chunks/2130-8604144349838fa9.js\",\"7355\",\"static/chunks/7355-4510296488659369.js\",\"2073\",\"static/chunks/2073-3f913ebb13702b7e.js\",\"6023\",\"static/chunks/app/wiki/page-4c9bc816069b6f2a.js\"],\"default\"]\n6:I[73360,[],\"OutletBoundary\"]\n7:\"$Sreact.suspense\"\nc:I[62926,[\"4219\",\"static/chunks/app/global-error-d42727c6c6c48879.js\"],\"default\"]\nd:I[73360,[],\"ViewportBoundary\"]\nf:I[73360,[],\"MetadataBoundary\"]\n12:I[95878,[\"5883\",\"static/chunks/505c7712-0c24a53e04230ea7.js\",\"6435\",\"static/chunks/325a3484-c4849768e3512277.js\",\"3940\",\"static/chunks/3940-5473abef004ec592.js\",\"2130\",\"static/chunks/2130-8604144349838fa9.js\",\"8225\",\"static/chunks/8225-4655c2b7b7e84b86.js\",\"7156\",\"static/chunks/7156-9bff361e032a7906.js\",\"7368\",\"static/chunks/7368-36239cc62a8bcd45.js\",\"4937\",\"static/chunks/4937-4101fcdadacf46e3.js\",\"4172\",\"static/chunks/4172-4fc551f07f7d082f.js\",\"878\",\"static/chunks/878-dcbd588adc2102fa.js\",\"2288\",\"static/chunks/2288-4dcb8ad3ccbd651e.js\",\"4454\",\"static/chunks/4454-f582e17b76ccf1d1.js\",\"2073\",\"static/chunks/2073-3f913ebb13702b7e.js\",\"5152\",\"static/chunks/5152-2db55438be7ecb94.js\",\"5191\",\"static/chunks/5191-88914df1c15c22e6.js\",\"5200\",\"static/chunks/5200-2447cea5eb41a922.js\",\"9479\",\"static/chunks/9479-7b304601a56304cd.js\",\"7166\",\"static/chunks/7166-d6d8489fdf67d180.js\",\"763\",\"static/chunks/763-10e7ea1774f0970d.js\",\"2669\",\"static/chunks/2669-60014e0cb3a45fce.js\",\"7177\",\"static/chunks/app/layout-7aa371fe2615cd3e.js\"],\"default\"]\n13:I[57679,[\"5883\",\"static/chunks/505c7712-0c24a53e04230ea7.js\",\"6435\",\"static/chunks/325a3484-c4849768e3512277.js\",\"3940\",\"static/chunks/3940-5473abef004ec592.js\",\"2130\",\"static/chunks/2130-8604144349838fa9.js\",\"8225\",\"static/chunks/8225-4655c2b7b7e84b86.js\",\"7156\",\"static/chunks/7156-9bff361e032a7906.js\",\"7368\",\"static/chunks/7368-36239cc62a8bcd45.js\",\"4937\",\"static/chunks/4937-4101fcdadacf46e3.js\",\"4172\",\"static/chunks/4172-4fc551f07f7d082f.js\",\"878\",\"static/chunks/878-dcbd588adc2102fa.js\",\"2288\",\"static/chunks/2288-4dcb8ad3ccbd651e.js\",\"4454\",\"static/chunks/4454-f582e17b76ccf1d1.js\",\"2073\",\"static/chunks/2073-3f913ebb13702b7e.js\",\"5152\",\"static/chunks/5152-2db55438be7ecb94.js\",\"5191\",\"static/chunks/5191-88914df1c15c22e6.js\",\"5200\",\"static/chunks/5200-2447cea5eb41a922.js\",\"9479\",\"static/chunks/9479-7b304601a56304cd.js\",\"7166\",\"static/chunks/7166-d6d8489fdf67d180.js\",\"763\",\"static/chunks/763-10e7ea1774f0970d.js\",\"2669\",\"static/chunks/2669-60014e0cb3a45fce.js\",\"7177\",\"static/chunks/app/layout-7aa371fe2615cd3e.js\"],\"TooltipProvider\"]\n14:I[74179,[\"5883\",\"static/chunks/505c7712-0c24a53e04230ea7.js\",\"6435\",\"static/chunks/325a3484-c4849768e3512277.js\",\"3940\",\"static/chunks/3940-5473abef004ec592.js\",\"2130\",\"static/chunks/2130-8604144349838fa9.js\",\"8225\",\"static/chunks/8225-4655c2b7b7e84b86.js\",\"7156\",\"static/chunks/7156-9bff361e032a7906.js\",\"7368\",\"static/chunks/7368-36239cc62a8bcd45.js\",\"4937\",\"static/chunks/4937-4101fcdadacf46e3.js\",\"4172\",\"static/chunks/4172-4fc551f07f7d082f.js\",\"878\",\"static/chunks/878-dcbd588adc2102fa.js\",\"2288\",\"static/chunks/2288-4dcb8ad3ccbd651e.js\",\"4454\",\"static/chunks/4454-f582e17b76ccf1d1.js\",\"2073\",\"static/chunks/2073-3f913ebb13702b7e.js\",\"5152\",\"static/chunks/5152-2db55438be7ecb94.js\",\"5191\",\"static/chunks/5191-88914df1c15c22e6.js\",\"5200\",\"static/chunks/5200-2447cea5eb41a922.js\",\"9479\",\"static/chunks/9479-7b304601a56304cd.js\",\"7166\",\"static/chunks/7166-d6d8489fdf67d180.js\",\"763\",\"static/chunks/763-10e7ea1774f0970d.js\",\"2669\",\"static/chunks/2669-60014e0cb3a45fce.js\",\"7177\",\"static/chunks/app/layout-7aa371fe2615cd3e.js\"],\"default\"]\n15:I[98356,[\"5883\",\"static/chunks/505c7712-0c24a53e04230ea7.js\",\"6435\",\"static/chunks/325a3484-c4849768e3512277.js\",\"3940\",\"static/chunks/3940-5473abef004ec592.js\",\"2130\",\"static/chunks/2130-8604144349838fa9.js\",\"8225\",\"static/chunks/8225-4655c2b7b7e84b86.js\",\"7156\",\"static/chunks/7156-9bff361e032a7906.js\",\"7368\",\"static/chunks/7368-36239cc62a8bcd45.js\",\"4937\",\"static/chunks/4937-4101fcdadacf46e3.js\",\"4172\",\"static/chunks/4172-4fc"])</script><script>self.__next_f.push([1,"551f07f7d082f.js\",\"878\",\"static/chunks/878-dcbd588adc2102fa.js\",\"2288\",\"static/chunks/2288-4dcb8ad3ccbd651e.js\",\"4454\",\"static/chunks/4454-f582e17b76ccf1d1.js\",\"2073\",\"static/chunks/2073-3f913ebb13702b7e.js\",\"5152\",\"static/chunks/5152-2db55438be7ecb94.js\",\"5191\",\"static/chunks/5191-88914df1c15c22e6.js\",\"5200\",\"static/chunks/5200-2447cea5eb41a922.js\",\"9479\",\"static/chunks/9479-7b304601a56304cd.js\",\"7166\",\"static/chunks/7166-d6d8489fdf67d180.js\",\"763\",\"static/chunks/763-10e7ea1774f0970d.js\",\"2669\",\"static/chunks/2669-60014e0cb3a45fce.js\",\"7177\",\"static/chunks/app/layout-7aa371fe2615cd3e.js\"],\"default\",1]\n16:I[9392,[\"8039\",\"static/chunks/app/error-c46d1b03d5e3289c.js\"],\"default\"]\n17:I[79726,[\"5883\",\"static/chunks/505c7712-0c24a53e04230ea7.js\",\"6435\",\"static/chunks/325a3484-c4849768e3512277.js\",\"3940\",\"static/chunks/3940-5473abef004ec592.js\",\"2130\",\"static/chunks/2130-8604144349838fa9.js\",\"8225\",\"static/chunks/8225-4655c2b7b7e84b86.js\",\"7156\",\"static/chunks/7156-9bff361e032a7906.js\",\"7368\",\"static/chunks/7368-36239cc62a8bcd45.js\",\"4937\",\"static/chunks/4937-4101fcdadacf46e3.js\",\"4172\",\"static/chunks/4172-4fc551f07f7d082f.js\",\"878\",\"static/chunks/878-dcbd588adc2102fa.js\",\"2288\",\"static/chunks/2288-4dcb8ad3ccbd651e.js\",\"4454\",\"static/chunks/4454-f582e17b76ccf1d1.js\",\"2073\",\"static/chunks/2073-3f913ebb13702b7e.js\",\"5152\",\"static/chunks/5152-2db55438be7ecb94.js\",\"5191\",\"static/chunks/5191-88914df1c15c22e6.js\",\"5200\",\"static/chunks/5200-2447cea5eb41a922.js\",\"9479\",\"static/chunks/9479-7b304601a56304cd.js\",\"7166\",\"static/chunks/7166-d6d8489fdf67d180.js\",\"763\",\"static/chunks/763-10e7ea1774f0970d.js\",\"2669\",\"static/chunks/2669-60014e0cb3a45fce.js\",\"7177\",\"static/chunks/app/layout-7aa371fe2615cd3e.js\"],\"default\"]\n18:I[28632,[\"5883\",\"static/chunks/505c7712-0c24a53e04230ea7.js\",\"6435\",\"static/chunks/325a3484-c4849768e3512277.js\",\"3940\",\"static/chunks/3940-5473abef004ec592.js\",\"2130\",\"static/chunks/2130-8604144349838fa9.js\",\"8225\",\"static/chunks/8225-4655c2b7b7e84b86.js\",\"7156\",\"static/chunks/7156-9bff361e032a7906.js\",\"7368\",\"static/chunks/7368-36239cc62a8bcd45.js\",\"4937\",\"static/chunks/4937-4101fcdadacf46e3.js\",\"4172\",\"static/chunks/4172-4fc551f07f7d082f.js\",\"878\",\"static/chunks/878-dcbd588adc2102fa.js\",\"2288\",\"static/chunks/2288-4dcb8ad3ccbd651e.js\",\"4454\",\"static/chunks/4454-f582e17b76ccf1d1.js\",\"2073\",\"static/chunks/2073-3f913ebb13702b7e.js\",\"5152\",\"static/chunks/5152-2db55438be7ecb94.js\",\"5191\",\"static/chunks/5191-88914df1c15c22e6.js\",\"5200\",\"static/chunks/5200-2447cea5eb41a922.js\",\"9479\",\"static/chunks/9479-7b304601a56304cd.js\",\"7166\",\"static/chunks/7166-d6d8489fdf67d180.js\",\"763\",\"static/chunks/763-10e7ea1774f0970d.js\",\"2669\",\"static/chunks/2669-60014e0cb3a45fce.js\",\"7177\",\"static/chunks/app/layout-7aa371fe2615cd3e.js\"],\"default\"]\n19:I[80250,[\"5883\",\"static/chunks/505c7712-0c24a53e04230ea7.js\",\"6435\",\"static/chunks/325a3484-c4849768e3512277.js\",\"3940\",\"static/chunks/3940-5473abef004ec592.js\",\"2130\",\"static/chunks/2130-8604144349838fa9.js\",\"8225\",\"static/chunks/8225-4655c2b7b7e84b86.js\",\"7156\",\"static/chunks/7156-9bff361e032a7906.js\",\"7368\",\"static/chunks/7368-36239cc62a8bcd45.js\",\"4937\",\"static/chunks/4937-4101fcdadacf46e3.js\",\"4172\",\"static/chunks/4172-4fc551f07f7d082f.js\",\"878\",\"static/chunks/878-dcbd588adc2102fa.js\",\"2288\",\"static/chunks/2288-4dcb8ad3ccbd651e.js\",\"4454\",\"static/chunks/4454-f582e17b76ccf1d1.js\",\"2073\",\"static/chunks/2073-3f913ebb13702b7e.js\",\"5152\",\"static/chunks/5152-2db55438be7ecb94.js\",\"5191\",\"static/chunks/5191-88914df1c15c22e6.js\",\"5200\",\"static/chunks/5200-2447cea5eb41a922.js\",\"9479\",\"static/chunks/9479-7b304601a56304cd.js\",\"7166\",\"static/chunks/7166-d6d8489fdf67d180.js\",\"763\",\"static/chunks/763-10e7ea1774f0970d.js\",\"2669\",\"static/chunks/2669-60014e0cb3a45fce.js\",\"7177\",\"static/chunks/app/layout-7aa371fe2615cd3e.js\"],\"default\"]\n1a:I[98163,[\"5883\",\"static/chunks/505c7712-0c24a53e04230ea7.js\",\"6435\",\"static/chunks/325a3484-c4849768e3512277.js\",\"3940\",\"static/chunks/3940-5473abef004ec592.js\",\"2130\",\"static/chunks/2130-8604144349838fa9.js\",\"8225\",\"static/chunks/8225-4655c2b7b7e84b86.js\",\"7156\",\"static/chunks/71"])</script><script>self.__next_f.push([1,"56-9bff361e032a7906.js\",\"7368\",\"static/chunks/7368-36239cc62a8bcd45.js\",\"4937\",\"static/chunks/4937-4101fcdadacf46e3.js\",\"4172\",\"static/chunks/4172-4fc551f07f7d082f.js\",\"878\",\"static/chunks/878-dcbd588adc2102fa.js\",\"2288\",\"static/chunks/2288-4dcb8ad3ccbd651e.js\",\"4454\",\"static/chunks/4454-f582e17b76ccf1d1.js\",\"2073\",\"static/chunks/2073-3f913ebb13702b7e.js\",\"5152\",\"static/chunks/5152-2db55438be7ecb94.js\",\"5191\",\"static/chunks/5191-88914df1c15c22e6.js\",\"5200\",\"static/chunks/5200-2447cea5eb41a922.js\",\"9479\",\"static/chunks/9479-7b304601a56304cd.js\",\"7166\",\"static/chunks/7166-d6d8489fdf67d180.js\",\"763\",\"static/chunks/763-10e7ea1774f0970d.js\",\"2669\",\"static/chunks/2669-60014e0cb3a45fce.js\",\"7177\",\"static/chunks/app/layout-7aa371fe2615cd3e.js\"],\"default\"]\n1b:I[28169,[],\"IconMark\"]\n:HL[\"/_next/static/css/0d2fd378b5449176.css\",\"style\"]\n:HL[\"/_next/static/css/599369d853c61df7.css\",\"style\"]\n"])</script><script>self.__next_f.push([1,"0:{\"P\":null,\"b\":\"DFngZEGZSufSm5RuKPkYN\",\"c\":[\"\",\"wiki\"],\"q\":\"\",\"i\":false,\"f\":[[[\"\",{\"children\":[\"wiki\",{\"children\":[\"__PAGE__\",{}]}]},\"$undefined\",\"$undefined\",true],[[\"$\",\"$1\",\"c\",{\"children\":[[[\"$\",\"link\",\"0\",{\"rel\":\"stylesheet\",\"href\":\"/_next/static/css/0d2fd378b5449176.css\",\"precedence\":\"next\",\"crossOrigin\":\"$undefined\",\"nonce\":\"$undefined\"}],[\"$\",\"link\",\"1\",{\"rel\":\"stylesheet\",\"href\":\"/_next/static/css/599369d853c61df7.css\",\"precedence\":\"next\",\"crossOrigin\":\"$undefined\",\"nonce\":\"$undefined\"}]],\"$L2\"]}],{\"children\":[[\"$\",\"$1\",\"c\",{\"children\":[null,[\"$\",\"$L3\",null,{\"parallelRouterKey\":\"children\",\"error\":\"$undefined\",\"errorStyles\":\"$undefined\",\"errorScripts\":\"$undefined\",\"template\":[\"$\",\"$L4\",null,{}],\"templateStyles\":\"$undefined\",\"templateScripts\":\"$undefined\",\"notFound\":\"$undefined\",\"forbidden\":\"$undefined\",\"unauthorized\":\"$undefined\"}]]}],{\"children\":[[\"$\",\"$1\",\"c\",{\"children\":[[\"$\",\"$L5\",null,{\"spaces\":[],\"recent\":[{\"path\":\"README.md\",\"mtime\":1778420867846.83}]}],null,[\"$\",\"$L6\",null,{\"children\":[\"$\",\"$7\",null,{\"name\":\"Next.MetadataOutlet\",\"children\":\"$@8\"}]}]]}],{},null,false,false]},null,false,false]},[[\"$\",\"div\",\"l\",{\"className\":\"content-width px-4 md:px-6 py-10 md:py-14 animate-pulse\",\"aria-busy\":\"true\",\"aria-label\":\"Loading\",\"children\":[[\"$\",\"div\",null,{\"className\":\"mb-10\",\"children\":[[\"$\",\"div\",null,{\"className\":\"flex items-center gap-3 mb-2\",\"children\":[[\"$\",\"div\",null,{\"className\":\"w-1 h-7 rounded-full bg-muted\"}],[\"$\",\"div\",null,{\"className\":\"h-6 w-28 bg-muted rounded\"}]]}],[\"$\",\"div\",null,{\"className\":\"h-4 w-64 bg-muted rounded ml-4 mb-6\"}],[\"$\",\"div\",null,{\"className\":\"w-full max-w-xl flex flex-col sm:flex-row items-stretch sm:items-center gap-2 ml-4\",\"children\":[[\"$\",\"div\",null,{\"className\":\"flex-1 h-12 rounded-xl bg-muted\"}],[\"$\",\"div\",null,{\"className\":\"h-12 w-16 rounded-xl bg-muted shrink-0\"}]]}],[\"$\",\"div\",null,{\"className\":\"flex items-center gap-3 mt-4 ml-4\",\"children\":[[\"$\",\"div\",null,{\"className\":\"h-9 w-28 rounded-lg bg-muted\"}],[\"$\",\"div\",null,{\"className\":\"h-9 w-40 rounded-lg bg-muted\"}]]}]]}],[\"$\",\"div\",null,{\"className\":\"mb-10\",\"children\":[[\"$\",\"div\",null,{\"className\":\"flex items-center gap-2 mb-4\",\"children\":[[\"$\",\"div\",null,{\"className\":\"w-4 h-4 rounded bg-muted\"}],[\"$\",\"div\",null,{\"className\":\"h-4 w-16 bg-muted rounded\"}]]}],[\"$\",\"div\",null,{\"className\":\"grid grid-cols-2 sm:grid-cols-3 gap-2\",\"children\":[[\"$\",\"div\",\"0\",{\"className\":\"flex items-start gap-3 px-3.5 py-3 rounded-xl border border-border\",\"children\":[[\"$\",\"div\",null,{\"className\":\"w-5 h-5 rounded bg-muted shrink-0 mt-0.5\"}],[\"$\",\"div\",null,{\"className\":\"flex-1 space-y-1.5\",\"children\":[[\"$\",\"div\",null,{\"className\":\"h-4 w-20 bg-muted rounded\"}],[\"$\",\"div\",null,{\"className\":\"h-3 w-full bg-muted rounded\"}],[\"$\",\"div\",null,{\"className\":\"h-3 w-12 bg-muted rounded\"}]]}]]}],[\"$\",\"div\",\"1\",{\"className\":\"flex items-start gap-3 px-3.5 py-3 rounded-xl border border-border\",\"children\":[[\"$\",\"div\",null,{\"className\":\"w-5 h-5 rounded bg-muted shrink-0 mt-0.5\"}],[\"$\",\"div\",null,{\"className\":\"flex-1 space-y-1.5\",\"children\":[[\"$\",\"div\",null,{\"className\":\"h-4 w-20 bg-muted rounded\"}],[\"$\",\"div\",null,{\"className\":\"h-3 w-full bg-muted rounded\"}],[\"$\",\"div\",null,{\"className\":\"h-3 w-12 bg-muted rounded\"}]]}]]}],[\"$\",\"div\",\"2\",{\"className\":\"flex items-start gap-3 px-3.5 py-3 rounded-xl border border-border\",\"children\":[[\"$\",\"div\",null,{\"className\":\"w-5 h-5 rounded bg-muted shrink-0 mt-0.5\"}],[\"$\",\"div\",null,{\"className\":\"flex-1 space-y-1.5\",\"children\":[[\"$\",\"div\",null,{\"className\":\"h-4 w-20 bg-muted rounded\"}],[\"$\",\"div\",null,{\"className\":\"h-3 w-full bg-muted rounded\"}],[\"$\",\"div\",null,{\"className\":\"h-3 w-12 bg-muted rounded\"}]]}]]}],[\"$\",\"div\",\"3\",{\"className\":\"flex items-start gap-3 px-3.5 py-3 rounded-xl border border-border\",\"children\":[[\"$\",\"div\",null,{\"className\":\"w-5 h-5 rounded bg-muted shrink-0 mt-0.5\"}],[\"$\",\"div\",null,{\"className\":\"flex-1 space-y-1.5\",\"children\":[[\"$\",\"div\",null,{\"className\":\"h-4 w-20 bg-muted rounded\"}],[\"$\",\"div\",null,{\"className\":\"h-3 w-full bg-muted rounded\"}],[\"$\",\"div\",null,{\"className\":\"h-3 w-12 bg-muted rounded\"}]]}]]}],[\"$\",\"div\",\"4\",{\"className\":\"flex items-start gap-3 px-3.5 py-3 rounded-xl border border-border\",\"children\":[[\"$\",\"div\",null,{\"className\":\"w-5 h-5 rounded bg-muted shrink-0 mt-0.5\"}],[\"$\",\"div\",null,{\"className\":\"flex-1 space-y-1.5\",\"children\":[[\"$\",\"div\",null,{\"className\":\"h-4 w-20 bg-muted rounded\"}],[\"$\",\"div\",null,{\"className\":\"h-3 w-full bg-muted rounded\"}],[\"$\",\"div\",null,{\"className\":\"h-3 w-12 bg-muted rounded\"}]]}]]}],[\"$\",\"div\",\"5\",{\"className\":\"flex items-start gap-3 px-3.5 py-3 rounded-xl border border-border\",\"children\":[[\"$\",\"div\",null,{\"className\":\"w-5 h-5 rounded bg-muted shrink-0 mt-0.5\"}],\"$L9\"]}]]}]]}],\"$La\"]}],[],[]],false,false],\"$Lb\",false]],\"m\":\"$undefined\",\"G\":[\"$c\",[]],\"S\":false}\n"])</script><script>self.__next_f.push([1,"9:[\"$\",\"div\",null,{\"className\":\"flex-1 space-y-1.5\",\"children\":[[\"$\",\"div\",null,{\"className\":\"h-4 w-20 bg-muted rounded\"}],[\"$\",\"div\",null,{\"className\":\"h-3 w-full bg-muted rounded\"}],[\"$\",\"div\",null,{\"className\":\"h-3 w-12 bg-muted rounded\"}]]}]\n"])</script><script>self.__next_f.push([1,"a:[\"$\",\"div\",null,{\"className\":\"mb-10\",\"children\":[[\"$\",\"div\",null,{\"className\":\"flex items-center gap-2 mb-4\",\"children\":[[\"$\",\"div\",null,{\"className\":\"w-4 h-4 rounded bg-muted\"}],[\"$\",\"div\",null,{\"className\":\"h-4 w-24 bg-muted rounded\"}]]}],[\"$\",\"div\",null,{\"className\":\"flex flex-col gap-3\",\"children\":[[\"$\",\"div\",\"0\",{\"children\":[[\"$\",\"div\",null,{\"className\":\"flex items-center gap-2 px-1 py-1.5\",\"children\":[[\"$\",\"div\",null,{\"className\":\"w-4 h-4 rounded bg-muted\"}],[\"$\",\"div\",null,{\"className\":\"h-3 w-24 bg-muted rounded\"}]]}],[\"$\",\"div\",null,{\"className\":\"flex flex-col gap-0.5 ml-2 border-l border-border/40 pl-3\",\"children\":[[\"$\",\"div\",\"0\",{\"className\":\"flex items-center gap-3 px-3 py-2\",\"children\":[[\"$\",\"div\",null,{\"className\":\"w-3 h-3 rounded bg-muted shrink-0\"}],[\"$\",\"div\",null,{\"className\":\"flex-1 space-y-1\",\"children\":[[\"$\",\"div\",null,{\"className\":\"h-4 w-40 bg-muted rounded\"}],[\"$\",\"div\",null,{\"className\":\"h-3 w-24 bg-muted rounded\"}]]}],[\"$\",\"div\",null,{\"className\":\"h-3 w-12 bg-muted rounded shrink-0\"}]]}],[\"$\",\"div\",\"1\",{\"className\":\"flex items-center gap-3 px-3 py-2\",\"children\":[[\"$\",\"div\",null,{\"className\":\"w-3 h-3 rounded bg-muted shrink-0\"}],[\"$\",\"div\",null,{\"className\":\"flex-1 space-y-1\",\"children\":[[\"$\",\"div\",null,{\"className\":\"h-4 w-40 bg-muted rounded\"}],[\"$\",\"div\",null,{\"className\":\"h-3 w-24 bg-muted rounded\"}]]}],[\"$\",\"div\",null,{\"className\":\"h-3 w-12 bg-muted rounded shrink-0\"}]]}]]}]]}],[\"$\",\"div\",\"1\",{\"children\":[[\"$\",\"div\",null,{\"className\":\"flex items-center gap-2 px-1 py-1.5\",\"children\":[[\"$\",\"div\",null,{\"className\":\"w-4 h-4 rounded bg-muted\"}],[\"$\",\"div\",null,{\"className\":\"h-3 w-24 bg-muted rounded\"}]]}],[\"$\",\"div\",null,{\"className\":\"flex flex-col gap-0.5 ml-2 border-l border-border/40 pl-3\",\"children\":[[\"$\",\"div\",\"0\",{\"className\":\"flex items-center gap-3 px-3 py-2\",\"children\":[[\"$\",\"div\",null,{\"className\":\"w-3 h-3 rounded bg-muted shrink-0\"}],[\"$\",\"div\",null,{\"className\":\"flex-1 space-y-1\",\"children\":[[\"$\",\"div\",null,{\"className\":\"h-4 w-40 bg-muted rounded\"}],[\"$\",\"div\",null,{\"className\":\"h-3 w-24 bg-muted rounded\"}]]}],[\"$\",\"div\",null,{\"className\":\"h-3 w-12 bg-muted rounded shrink-0\"}]]}],[\"$\",\"div\",\"1\",{\"className\":\"flex items-center gap-3 px-3 py-2\",\"children\":[[\"$\",\"div\",null,{\"className\":\"w-3 h-3 rounded bg-muted shrink-0\"}],[\"$\",\"div\",null,{\"className\":\"flex-1 space-y-1\",\"children\":[[\"$\",\"div\",null,{\"className\":\"h-4 w-40 bg-muted rounded\"}],[\"$\",\"div\",null,{\"className\":\"h-3 w-24 bg-muted rounded\"}]]}],[\"$\",\"div\",null,{\"className\":\"h-3 w-12 bg-muted rounded shrink-0\"}]]}]]}]]}],[\"$\",\"div\",\"2\",{\"children\":[[\"$\",\"div\",null,{\"className\":\"flex items-center gap-2 px-1 py-1.5\",\"children\":[[\"$\",\"div\",null,{\"className\":\"w-4 h-4 rounded bg-muted\"}],[\"$\",\"div\",null,{\"className\":\"h-3 w-24 bg-muted rounded\"}]]}],[\"$\",\"div\",null,{\"className\":\"flex flex-col gap-0.5 ml-2 border-l border-border/40 pl-3\",\"children\":[[\"$\",\"div\",\"0\",{\"className\":\"flex items-center gap-3 px-3 py-2\",\"children\":[[\"$\",\"div\",null,{\"className\":\"w-3 h-3 rounded bg-muted shrink-0\"}],[\"$\",\"div\",null,{\"className\":\"flex-1 space-y-1\",\"children\":[[\"$\",\"div\",null,{\"className\":\"h-4 w-40 bg-muted rounded\"}],[\"$\",\"div\",null,{\"className\":\"h-3 w-24 bg-muted rounded\"}]]}],[\"$\",\"div\",null,{\"className\":\"h-3 w-12 bg-muted rounded shrink-0\"}]]}],[\"$\",\"div\",\"1\",{\"className\":\"flex items-center gap-3 px-3 py-2\",\"children\":[[\"$\",\"div\",null,{\"className\":\"w-3 h-3 rounded bg-muted shrink-0\"}],[\"$\",\"div\",null,{\"className\":\"flex-1 space-y-1\",\"children\":[[\"$\",\"div\",null,{\"className\":\"h-4 w-40 bg-muted rounded\"}],[\"$\",\"div\",null,{\"className\":\"h-3 w-24 bg-muted rounded\"}]]}],[\"$\",\"div\",null,{\"className\":\"h-3 w-12 bg-muted rounded shrink-0\"}]]}]]}]]}]]}]]}]\n"])</script><script>self.__next_f.push([1,"b:[\"$\",\"$1\",\"h\",{\"children\":[null,[\"$\",\"$Ld\",null,{\"children\":\"$Le\"}],[\"$\",\"div\",null,{\"hidden\":true,\"children\":[\"$\",\"$Lf\",null,{\"children\":[\"$\",\"$7\",null,{\"name\":\"Next.Metadata\",\"children\":\"$L10\"}]}]}],null]}]\n11:T499,(function(){try{var s=localStorage.getItem('theme');var dark=s\u0026\u0026s!=='system'?s==='dark':window.matchMedia('(prefers-color-scheme: dark)').matches;document.documentElement.classList.toggle('dark',dark);document.documentElement.style.backgroundColor=dark?'#131210':'#f8f6f1';document.documentElement.style.color=dark?'#e8e4dc':'#1c1a17';var cw=localStorage.getItem('content-width');if(cw)document.documentElement.style.setProperty('--content-width-override',cw);var pf=localStorage.getItem('prose-font');if(!pf){pf='inter';localStorage.setItem('prose-font','inter')}if(pf==='geist'){pf='inter';localStorage.setItem('prose-font','inter')}var fm={lora:'\"Lora\", Georgia, serif','ibm-plex-sans':'\"IBM Plex Sans\", sans-serif',inter:'var(--font-inter), sans-serif','ibm-plex-mono':'\"IBM Plex Mono\", monospace'};if(pf\u0026\u0026fm[pf])document.documentElement.style.setProperty('--prose-font-override',fm[pf]);var loc=localStorage.getItem('locale')||'system';var rl=loc==='system'?(navigator.language.startsWith('zh')?'zh':'en'):loc;window.__mindos_locale__=rl;document.documentElement.lang=rl==='zh'?'zh':'en';document.cookie='locale='+rl+';path=/;max-age=31536000;SameSite=Lax'}catch(e){}})();"])</script><script>self.__next_f.push([1,"2:[\"$\",\"html\",null,{\"lang\":\"en\",\"suppressHydrationWarning\":true,\"style\":{\"backgroundColor\":\"#f8f6f1\",\"color\":\"#1c1a17\"},\"children\":[[\"$\",\"head\",null,{\"children\":[[\"$\",\"meta\",null,{\"name\":\"theme-color\",\"content\":\"#c8873a\"}],[\"$\",\"script\",null,{\"dangerouslySetInnerHTML\":{\"__html\":\"(function(){if(typeof Node!=='undefined'){var o=Node.prototype.removeChild;Node.prototype.removeChild=function(c){if(c.parentNode!==this){try{return o.call(c.parentNode,c)}catch(e){return c}}return o.call(this,c)};var i=Node.prototype.insertBefore;Node.prototype.insertBefore=function(n,r){if(r\u0026\u0026r.parentNode!==this){try{return i.call(r.parentNode,n,r)}catch(e){return i.call(this,n,null)}}return i.call(this,n,r)}}})();\"}}],[\"$\",\"script\",null,{\"dangerouslySetInnerHTML\":{\"__html\":\"(function(){try{if(/electron/i.test(navigator.userAgent)\u0026\u0026/macintosh/i.test(navigator.userAgent)){document.documentElement.setAttribute('data-electron-mac','')}}catch(e){}})();\"}}],[\"$\",\"script\",null,{\"dangerouslySetInnerHTML\":{\"__html\":\"$11\"}}]]}],[\"$\",\"body\",null,{\"className\":\"antialiased bg-background text-foreground\",\"suppressHydrationWarning\":true,\"children\":[[\"$\",\"$L12\",null,{\"ssrLocale\":\"en\"}],[\"$\",\"$L13\",null,{\"delay\":300,\"children\":[\"$\",\"$L14\",null,{\"children\":[\"$\",\"$L15\",null,{\"fileTree\":[{\"name\":\"README.md\",\"path\":\"README.md\",\"type\":\"file\",\"extension\":\".md\"}],\"children\":[\"$\",\"$L3\",null,{\"parallelRouterKey\":\"children\",\"error\":\"$16\",\"errorStyles\":[],\"errorScripts\":[],\"template\":[\"$\",\"$L4\",null,{}],\"templateStyles\":\"$undefined\",\"templateScripts\":\"$undefined\",\"notFound\":[[[\"$\",\"title\",null,{\"children\":\"404: This page could not be found.\"}],[\"$\",\"div\",null,{\"style\":{\"fontFamily\":\"system-ui,\\\"Segoe UI\\\",Roboto,Helvetica,Arial,sans-serif,\\\"Apple Color Emoji\\\",\\\"Segoe UI Emoji\\\"\",\"height\":\"100vh\",\"textAlign\":\"center\",\"display\":\"flex\",\"flexDirection\":\"column\",\"alignItems\":\"center\",\"justifyContent\":\"center\"},\"children\":[\"$\",\"div\",null,{\"children\":[[\"$\",\"style\",null,{\"dangerouslySetInnerHTML\":{\"__html\":\"body{color:#000;background:#fff;margin:0}.next-error-h1{border-right:1px solid rgba(0,0,0,.3)}@media (prefers-color-scheme:dark){body{color:#fff;background:#000}.next-error-h1{border-right:1px solid rgba(255,255,255,.3)}}\"}}],[\"$\",\"h1\",null,{\"className\":\"next-error-h1\",\"style\":{\"display\":\"inline-block\",\"margin\":\"0 20px 0 0\",\"padding\":\"0 23px 0 0\",\"fontSize\":24,\"fontWeight\":500,\"verticalAlign\":\"top\",\"lineHeight\":\"49px\"},\"children\":404}],[\"$\",\"div\",null,{\"style\":{\"display\":\"inline-block\"},\"children\":[\"$\",\"h2\",null,{\"style\":{\"fontSize\":14,\"fontWeight\":400,\"lineHeight\":\"49px\",\"margin\":0},\"children\":\"This page could not be found.\"}]}]]}]}]],[]],\"forbidden\":\"$undefined\",\"unauthorized\":\"$undefined\"}]}]}]}],[\"$\",\"$L17\",null,{}],[\"$\",\"$L18\",null,{}],[\"$\",\"$L19\",null,{}],[\"$\",\"$L1a\",null,{}]]}]]}]\n"])</script><script>self.__next_f.push([1,"e:[[\"$\",\"meta\",\"0\",{\"charSet\":\"utf-8\"}],[\"$\",\"meta\",\"1\",{\"name\":\"viewport\",\"content\":\"width=device-width, initial-scale=1, viewport-fit=cover\"}]]\n8:null\n10:[[\"$\",\"title\",\"0\",{\"children\":\"MindOS\"}],[\"$\",\"meta\",\"1\",{\"name\":\"description\",\"content\":\"Personal knowledge base\"}],[\"$\",\"link\",\"2\",{\"rel\":\"manifest\",\"href\":\"/manifest.json\",\"crossOrigin\":\"$undefined\"}],[\"$\",\"meta\",\"3\",{\"name\":\"mobile-web-app-capable\",\"content\":\"yes\"}],[\"$\",\"meta\",\"4\",{\"name\":\"apple-mobile-web-app-capable\",\"content\":\"yes\"}],[\"$\",\"meta\",\"5\",{\"name\":\"apple-mobile-web-app-status-bar-style\",\"content\":\"black-translucent\"}],[\"$\",\"link\",\"6\",{\"rel\":\"icon\",\"href\":\"/logo-square.svg\"}],[\"$\",\"link\",\"7\",{\"rel\":\"apple-touch-icon\",\"href\":\"/icons/icon-192.png\"}],[\"$\",\"$L1b\",\"8\",{}]]\n"])</script></body></html>
|
|
65
|
+
</style><script>requestAnimationFrame(function(){$RT=performance.now()});</script><script src="/_next/static/chunks/webpack-75abef9cbb1ea912.js" id="_R_" async=""></script><div hidden id="S:0"><div class="content-width px-4 md:px-6 py-10 md:py-14"><div class="mb-10"><div class="flex items-center gap-3 mb-6"><div class="w-1 h-7 rounded-full bg-gradient-to-b from-[var(--amber)] to-[var(--amber)]/20"></div><h1 class="text-2xl font-semibold tracking-tight text-foreground">Wiki</h1></div><div class="w-full max-w-xl flex flex-col sm:flex-row items-stretch sm:items-center gap-2 pl-4"><button title="⌘/" class="flex-1 flex items-center gap-3 px-4 py-3.5 rounded-xl border border-border/50 shadow-sm bg-card/80 backdrop-blur-sm transition-all duration-200 hover:border-[var(--amber)]/40 hover:shadow-md hover:-translate-y-0.5 group"><svg xmlns="http://www.w3.org/2000/svg" width="16" height="16" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" class="lucide lucide-sparkles shrink-0 text-[var(--amber)] group-hover:scale-110 transition-transform duration-150" aria-hidden="true"><path d="M11.017 2.814a1 1 0 0 1 1.966 0l1.051 5.558a2 2 0 0 0 1.594 1.594l5.558 1.051a1 1 0 0 1 0 1.966l-5.558 1.051a2 2 0 0 0-1.594 1.594l-1.051 5.558a1 1 0 0 1-1.966 0l-1.051-5.558a2 2 0 0 0-1.594-1.594l-5.558-1.051a1 1 0 0 1 0-1.966l5.558-1.051a2 2 0 0 0 1.594-1.594z"></path><path d="M20 2v4"></path><path d="M22 4h-4"></path><circle cx="4" cy="20" r="2"></circle></svg><div class="flex-1 min-h-[1.5rem] flex items-center"><span class="text-sm text-left text-muted-foreground animate-in fade-in duration-300">Organize inbox</span></div><kbd class="hidden sm:inline-flex items-center gap-0.5 px-2 py-0.5 rounded text-xs font-mono font-medium bg-[var(--amber-dim)] text-[var(--amber-text)]">⌘/</kbd></button><button title="⌘K" class="flex items-center gap-2 px-3.5 py-3 rounded-xl border border-border/50 text-sm text-muted-foreground transition-all duration-200 shrink-0 hover:bg-muted/60 hover:shadow-sm hover:-translate-y-0.5"><svg xmlns="http://www.w3.org/2000/svg" width="14" height="14" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" class="lucide lucide-search" aria-hidden="true"><path d="m21 21-4.34-4.34"></path><circle cx="11" cy="11" r="8"></circle></svg><kbd class="hidden sm:inline-flex items-center px-1.5 py-0.5 rounded text-xs font-mono bg-muted">⌘K</kbd></button></div><div class="flex items-center gap-3 mt-4 pl-4"><a class="inline-flex items-center gap-2 px-4 py-2.5 rounded-lg text-sm font-medium transition-all duration-200 hover:shadow-md hover:-translate-y-0.5 bg-[var(--amber)] text-[var(--amber-foreground)]" href="/view/Untitled.md"><svg xmlns="http://www.w3.org/2000/svg" width="14" height="14" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" class="lucide lucide-file-plus" aria-hidden="true"><path d="M6 22a2 2 0 0 1-2-2V4a2 2 0 0 1 2-2h8a2.4 2.4 0 0 1 1.704.706l3.588 3.588A2.4 2.4 0 0 1 20 8v12a2 2 0 0 1-2 2z"></path><path d="M14 2v5a1 1 0 0 0 1 1h5"></path><path d="M9 15h6"></path><path d="M12 18v-6"></path></svg><span>New Notes</span></a><a class="inline-flex items-center gap-2 px-3.5 py-2 rounded-lg text-sm font-medium transition-colors text-muted-foreground hover:text-foreground hover:bg-muted" href="/view/README.md"><svg xmlns="http://www.w3.org/2000/svg" width="14" height="14" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" class="lucide lucide-arrow-right text-[var(--amber)]/60" aria-hidden="true"><path d="M5 12h14"></path><path d="m12 5 7 7-7 7"></path></svg><span>Continue editing</span><span class="text-xs opacity-40 truncate max-w-32">README.md</span></a></div></div><section class="mb-10"><div class="flex items-center gap-2.5 mb-5"><div class="flex items-center justify-center w-6 h-6 rounded-md bg-[var(--amber-subtle)] text-[var(--amber)]"><svg xmlns="http://www.w3.org/2000/svg" width="14" height="14" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" class="lucide lucide-brain" aria-hidden="true"><path d="M12 18V5"></path><path d="M15 13a4.17 4.17 0 0 1-3-4 4.17 4.17 0 0 1-3 4"></path><path d="M17.598 6.5A3 3 0 1 0 12 5a3 3 0 1 0-5.598 1.5"></path><path d="M17.997 5.125a4 4 0 0 1 2.526 5.77"></path><path d="M18 18a4 4 0 0 0 2-7.464"></path><path d="M19.967 17.483A4 4 0 1 1 12 18a4 4 0 1 1-7.967-.517"></path><path d="M6 18a4 4 0 0 1-2-7.464"></path><path d="M6.003 5.125a4 4 0 0 0-2.526 5.77"></path></svg></div><h2 class="text-[13px] font-semibold text-foreground tracking-wide">Spaces</h2><div class="ml-auto flex items-center gap-3"><button class="flex items-center gap-1.5 text-xs font-medium text-[var(--amber)] transition-colors hover:opacity-80 cursor-pointer font-display"><svg xmlns="http://www.w3.org/2000/svg" width="12" height="12" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" class="lucide lucide-plus" aria-hidden="true"><path d="M5 12h14"></path><path d="M12 5v14"></path></svg><span>New Space</span></button></div></div><div class="rounded-xl border border-border/40 bg-card/30 px-6 py-12 text-center"><div class="inline-flex items-center justify-center w-12 h-12 rounded-full bg-[var(--amber-subtle)] mb-4"><svg xmlns="http://www.w3.org/2000/svg" width="22" height="22" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" class="lucide lucide-brain text-[var(--amber)]/60" aria-hidden="true"><path d="M12 18V5"></path><path d="M15 13a4.17 4.17 0 0 1-3-4 4.17 4.17 0 0 1-3 4"></path><path d="M17.598 6.5A3 3 0 1 0 12 5a3 3 0 1 0-5.598 1.5"></path><path d="M17.997 5.125a4 4 0 0 1 2.526 5.77"></path><path d="M18 18a4 4 0 0 0 2-7.464"></path><path d="M19.967 17.483A4 4 0 1 1 12 18a4 4 0 1 1-7.967-.517"></path><path d="M6 18a4 4 0 0 1-2-7.464"></path><path d="M6.003 5.125a4 4 0 0 0-2.526 5.77"></path></svg></div><p class="text-sm font-medium text-muted-foreground/70 mb-1">No spaces yet. Create one to organize your knowledge.</p><p class="text-xs text-muted-foreground/60 mb-4">Create your first space to organize your knowledge</p><button class="inline-flex items-center gap-2 px-4 py-2 text-sm font-medium rounded-lg transition-colors bg-[var(--amber)] text-[var(--amber-foreground)] hover:opacity-80"><svg xmlns="http://www.w3.org/2000/svg" width="14" height="14" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" class="lucide lucide-plus" aria-hidden="true"><path d="M5 12h14"></path><path d="M12 5v14"></path></svg>Create Space</button></div></section><section class="mb-8 animate-pulse"><div class="h-4 w-24 bg-muted rounded mb-3"></div><div class="space-y-2"><div class="h-10 bg-muted/50 rounded-lg"></div><div class="h-10 bg-muted/50 rounded-lg"></div></div></section><div class="border-t border-border/30 mb-8"></div><section class="mb-8"><div class="flex items-center gap-2.5 mb-4"><div class="flex items-center justify-center w-6 h-6 rounded-md bg-[var(--amber-subtle)] text-[var(--amber)]"><svg xmlns="http://www.w3.org/2000/svg" width="14" height="14" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" class="lucide lucide-clock" aria-hidden="true"><circle cx="12" cy="12" r="10"></circle><path d="M12 6v6l4 2"></path></svg></div><h2 class="text-[13px] font-semibold text-foreground tracking-wide">Recently Edited</h2><span class="inline-flex items-center justify-center min-w-[20px] h-5 px-1.5 text-[10px] font-semibold rounded-full bg-muted text-muted-foreground tabular-nums">1</span><div class="ml-auto"><a class="flex items-center gap-1.5 text-xs font-medium text-[var(--amber)] transition-colors hover:opacity-80" href="/changelog"><svg xmlns="http://www.w3.org/2000/svg" width="12" height="12" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" class="lucide lucide-history" aria-hidden="true"><path d="M3 12a9 9 0 1 0 9-9 9.75 9.75 0 0 0-6.74 2.74L3 8"></path><path d="M3 3v5h5"></path><path d="M12 7v5l4 2"></path></svg><span>Change History</span></a></div></div><div class="flex flex-col gap-0.5"><a class="flex items-center gap-3 px-3 py-2 rounded-lg transition-all duration-100 hover:translate-x-0.5 hover:bg-muted group overflow-hidden" href="/view/README.md"><svg xmlns="http://www.w3.org/2000/svg" width="12" height="12" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" class="lucide lucide-file-text shrink-0 text-muted-foreground" aria-hidden="true"><path d="M6 22a2 2 0 0 1-2-2V4a2 2 0 0 1 2-2h8a2.4 2.4 0 0 1 1.704.706l3.588 3.588A2.4 2.4 0 0 1 20 8v12a2 2 0 0 1-2 2z"></path><path d="M14 2v5a1 1 0 0 0 1 1h5"></path><path d="M10 9H8"></path><path d="M16 13H8"></path><path d="M16 17H8"></path></svg><div class="flex-1 min-w-0"><span class="text-sm truncate block text-foreground">README.md</span></div><span class="text-xs shrink-0 tabular-nums text-muted-foreground/40">just now</span></a></div></section><div class="py-6 border-t border-border/20 flex items-center gap-1.5 text-xs font-display text-muted-foreground/30"><svg xmlns="http://www.w3.org/2000/svg" width="10" height="10" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" class="lucide lucide-sparkles text-[var(--amber)]/40" aria-hidden="true"><path d="M11.017 2.814a1 1 0 0 1 1.966 0l1.051 5.558a2 2 0 0 0 1.594 1.594l5.558 1.051a1 1 0 0 1 0 1.966l-5.558 1.051a2 2 0 0 0-1.594 1.594l-1.051 5.558a1 1 0 0 1-1.966 0l-1.051-5.558a2 2 0 0 0-1.594-1.594l-5.558-1.051a1 1 0 0 1 0-1.966l5.558-1.051a2 2 0 0 0 1.594-1.594z"></path><path d="M20 2v4"></path><path d="M22 4h-4"></path><circle cx="4" cy="20" r="2"></circle></svg><span>MindOS · human-agent collaborative mind system</span></div></div><!--$--><!--/$--></div><script>$RB=[];$RV=function(a){$RT=performance.now();for(var b=0;b<a.length;b+=2){var c=a[b],e=a[b+1];null!==e.parentNode&&e.parentNode.removeChild(e);var f=c.parentNode;if(f){var g=c.previousSibling,h=0;do{if(c&&8===c.nodeType){var d=c.data;if("/$"===d||"/&"===d)if(0===h)break;else h--;else"$"!==d&&"$?"!==d&&"$~"!==d&&"$!"!==d&&"&"!==d||h++}d=c.nextSibling;f.removeChild(c);c=d}while(c);for(;e.firstChild;)f.insertBefore(e.firstChild,c);g.data="$";g._reactRetry&&requestAnimationFrame(g._reactRetry)}}a.length=0};
|
|
66
|
+
$RC=function(a,b){if(b=document.getElementById(b))(a=document.getElementById(a))?(a.previousSibling.data="$~",$RB.push(a,b),2===$RB.length&&("number"!==typeof $RT?requestAnimationFrame($RV.bind(null,$RB)):(a=performance.now(),setTimeout($RV.bind(null,$RB),2300>a&&2E3<a?2300-a:$RT+300-a)))):b.parentNode.removeChild(b)};$RC("B:0","S:0")</script><script>(self.__next_f=self.__next_f||[]).push([0])</script><script>self.__next_f.push([1,"1:\"$Sreact.fragment\"\n3:I[49357,[],\"\"]\n4:I[90681,[],\"\"]\n5:I[28355,[\"3940\",\"static/chunks/3940-5473abef004ec592.js\",\"2130\",\"static/chunks/2130-8604144349838fa9.js\",\"7355\",\"static/chunks/7355-4510296488659369.js\",\"2073\",\"static/chunks/2073-3f913ebb13702b7e.js\",\"6023\",\"static/chunks/app/wiki/page-4c9bc816069b6f2a.js\"],\"default\"]\n6:I[73360,[],\"OutletBoundary\"]\n7:\"$Sreact.suspense\"\nc:I[62926,[\"4219\",\"static/chunks/app/global-error-d42727c6c6c48879.js\"],\"default\"]\nd:I[73360,[],\"ViewportBoundary\"]\nf:I[73360,[],\"MetadataBoundary\"]\n12:I[95878,[\"5883\",\"static/chunks/505c7712-0c24a53e04230ea7.js\",\"6435\",\"static/chunks/325a3484-c4849768e3512277.js\",\"3940\",\"static/chunks/3940-5473abef004ec592.js\",\"2130\",\"static/chunks/2130-8604144349838fa9.js\",\"8225\",\"static/chunks/8225-4655c2b7b7e84b86.js\",\"7156\",\"static/chunks/7156-9bff361e032a7906.js\",\"7368\",\"static/chunks/7368-36239cc62a8bcd45.js\",\"4937\",\"static/chunks/4937-4101fcdadacf46e3.js\",\"4172\",\"static/chunks/4172-4fc551f07f7d082f.js\",\"878\",\"static/chunks/878-dcbd588adc2102fa.js\",\"2288\",\"static/chunks/2288-4dcb8ad3ccbd651e.js\",\"4454\",\"static/chunks/4454-f582e17b76ccf1d1.js\",\"2073\",\"static/chunks/2073-3f913ebb13702b7e.js\",\"5152\",\"static/chunks/5152-2db55438be7ecb94.js\",\"5191\",\"static/chunks/5191-88914df1c15c22e6.js\",\"5200\",\"static/chunks/5200-6c82e5ce54a95b4b.js\",\"9479\",\"static/chunks/9479-7b304601a56304cd.js\",\"2461\",\"static/chunks/2461-a1073a0bd04c228a.js\",\"763\",\"static/chunks/763-10e7ea1774f0970d.js\",\"2669\",\"static/chunks/2669-60014e0cb3a45fce.js\",\"7177\",\"static/chunks/app/layout-5966cd317bbed698.js\"],\"default\"]\n13:I[57679,[\"5883\",\"static/chunks/505c7712-0c24a53e04230ea7.js\",\"6435\",\"static/chunks/325a3484-c4849768e3512277.js\",\"3940\",\"static/chunks/3940-5473abef004ec592.js\",\"2130\",\"static/chunks/2130-8604144349838fa9.js\",\"8225\",\"static/chunks/8225-4655c2b7b7e84b86.js\",\"7156\",\"static/chunks/7156-9bff361e032a7906.js\",\"7368\",\"static/chunks/7368-36239cc62a8bcd45.js\",\"4937\",\"static/chunks/4937-4101fcdadacf46e3.js\",\"4172\",\"static/chunks/4172-4fc551f07f7d082f.js\",\"878\",\"static/chunks/878-dcbd588adc2102fa.js\",\"2288\",\"static/chunks/2288-4dcb8ad3ccbd651e.js\",\"4454\",\"static/chunks/4454-f582e17b76ccf1d1.js\",\"2073\",\"static/chunks/2073-3f913ebb13702b7e.js\",\"5152\",\"static/chunks/5152-2db55438be7ecb94.js\",\"5191\",\"static/chunks/5191-88914df1c15c22e6.js\",\"5200\",\"static/chunks/5200-6c82e5ce54a95b4b.js\",\"9479\",\"static/chunks/9479-7b304601a56304cd.js\",\"2461\",\"static/chunks/2461-a1073a0bd04c228a.js\",\"763\",\"static/chunks/763-10e7ea1774f0970d.js\",\"2669\",\"static/chunks/2669-60014e0cb3a45fce.js\",\"7177\",\"static/chunks/app/layout-5966cd317bbed698.js\"],\"TooltipProvider\"]\n14:I[74179,[\"5883\",\"static/chunks/505c7712-0c24a53e04230ea7.js\",\"6435\",\"static/chunks/325a3484-c4849768e3512277.js\",\"3940\",\"static/chunks/3940-5473abef004ec592.js\",\"2130\",\"static/chunks/2130-8604144349838fa9.js\",\"8225\",\"static/chunks/8225-4655c2b7b7e84b86.js\",\"7156\",\"static/chunks/7156-9bff361e032a7906.js\",\"7368\",\"static/chunks/7368-36239cc62a8bcd45.js\",\"4937\",\"static/chunks/4937-4101fcdadacf46e3.js\",\"4172\",\"static/chunks/4172-4fc551f07f7d082f.js\",\"878\",\"static/chunks/878-dcbd588adc2102fa.js\",\"2288\",\"static/chunks/2288-4dcb8ad3ccbd651e.js\",\"4454\",\"static/chunks/4454-f582e17b76ccf1d1.js\",\"2073\",\"static/chunks/2073-3f913ebb13702b7e.js\",\"5152\",\"static/chunks/5152-2db55438be7ecb94.js\",\"5191\",\"static/chunks/5191-88914df1c15c22e6.js\",\"5200\",\"static/chunks/5200-6c82e5ce54a95b4b.js\",\"9479\",\"static/chunks/9479-7b304601a56304cd.js\",\"2461\",\"static/chunks/2461-a1073a0bd04c228a.js\",\"763\",\"static/chunks/763-10e7ea1774f0970d.js\",\"2669\",\"static/chunks/2669-60014e0cb3a45fce.js\",\"7177\",\"static/chunks/app/layout-5966cd317bbed698.js\"],\"default\"]\n15:I[75914,[\"5883\",\"static/chunks/505c7712-0c24a53e04230ea7.js\",\"6435\",\"static/chunks/325a3484-c4849768e3512277.js\",\"3940\",\"static/chunks/3940-5473abef004ec592.js\",\"2130\",\"static/chunks/2130-8604144349838fa9.js\",\"8225\",\"static/chunks/8225-4655c2b7b7e84b86.js\",\"7156\",\"static/chunks/7156-9bff361e032a7906.js\",\"7368\",\"static/chunks/7368-36239cc62a8bcd45.js\",\"4937\",\"static/chunks/4937-4101fcdadacf46e3.js\",\"4172\",\"static/chunks/4172-4fc"])</script><script>self.__next_f.push([1,"551f07f7d082f.js\",\"878\",\"static/chunks/878-dcbd588adc2102fa.js\",\"2288\",\"static/chunks/2288-4dcb8ad3ccbd651e.js\",\"4454\",\"static/chunks/4454-f582e17b76ccf1d1.js\",\"2073\",\"static/chunks/2073-3f913ebb13702b7e.js\",\"5152\",\"static/chunks/5152-2db55438be7ecb94.js\",\"5191\",\"static/chunks/5191-88914df1c15c22e6.js\",\"5200\",\"static/chunks/5200-6c82e5ce54a95b4b.js\",\"9479\",\"static/chunks/9479-7b304601a56304cd.js\",\"2461\",\"static/chunks/2461-a1073a0bd04c228a.js\",\"763\",\"static/chunks/763-10e7ea1774f0970d.js\",\"2669\",\"static/chunks/2669-60014e0cb3a45fce.js\",\"7177\",\"static/chunks/app/layout-5966cd317bbed698.js\"],\"default\",1]\n16:I[9392,[\"8039\",\"static/chunks/app/error-c46d1b03d5e3289c.js\"],\"default\"]\n17:I[79726,[\"5883\",\"static/chunks/505c7712-0c24a53e04230ea7.js\",\"6435\",\"static/chunks/325a3484-c4849768e3512277.js\",\"3940\",\"static/chunks/3940-5473abef004ec592.js\",\"2130\",\"static/chunks/2130-8604144349838fa9.js\",\"8225\",\"static/chunks/8225-4655c2b7b7e84b86.js\",\"7156\",\"static/chunks/7156-9bff361e032a7906.js\",\"7368\",\"static/chunks/7368-36239cc62a8bcd45.js\",\"4937\",\"static/chunks/4937-4101fcdadacf46e3.js\",\"4172\",\"static/chunks/4172-4fc551f07f7d082f.js\",\"878\",\"static/chunks/878-dcbd588adc2102fa.js\",\"2288\",\"static/chunks/2288-4dcb8ad3ccbd651e.js\",\"4454\",\"static/chunks/4454-f582e17b76ccf1d1.js\",\"2073\",\"static/chunks/2073-3f913ebb13702b7e.js\",\"5152\",\"static/chunks/5152-2db55438be7ecb94.js\",\"5191\",\"static/chunks/5191-88914df1c15c22e6.js\",\"5200\",\"static/chunks/5200-6c82e5ce54a95b4b.js\",\"9479\",\"static/chunks/9479-7b304601a56304cd.js\",\"2461\",\"static/chunks/2461-a1073a0bd04c228a.js\",\"763\",\"static/chunks/763-10e7ea1774f0970d.js\",\"2669\",\"static/chunks/2669-60014e0cb3a45fce.js\",\"7177\",\"static/chunks/app/layout-5966cd317bbed698.js\"],\"default\"]\n18:I[28632,[\"5883\",\"static/chunks/505c7712-0c24a53e04230ea7.js\",\"6435\",\"static/chunks/325a3484-c4849768e3512277.js\",\"3940\",\"static/chunks/3940-5473abef004ec592.js\",\"2130\",\"static/chunks/2130-8604144349838fa9.js\",\"8225\",\"static/chunks/8225-4655c2b7b7e84b86.js\",\"7156\",\"static/chunks/7156-9bff361e032a7906.js\",\"7368\",\"static/chunks/7368-36239cc62a8bcd45.js\",\"4937\",\"static/chunks/4937-4101fcdadacf46e3.js\",\"4172\",\"static/chunks/4172-4fc551f07f7d082f.js\",\"878\",\"static/chunks/878-dcbd588adc2102fa.js\",\"2288\",\"static/chunks/2288-4dcb8ad3ccbd651e.js\",\"4454\",\"static/chunks/4454-f582e17b76ccf1d1.js\",\"2073\",\"static/chunks/2073-3f913ebb13702b7e.js\",\"5152\",\"static/chunks/5152-2db55438be7ecb94.js\",\"5191\",\"static/chunks/5191-88914df1c15c22e6.js\",\"5200\",\"static/chunks/5200-6c82e5ce54a95b4b.js\",\"9479\",\"static/chunks/9479-7b304601a56304cd.js\",\"2461\",\"static/chunks/2461-a1073a0bd04c228a.js\",\"763\",\"static/chunks/763-10e7ea1774f0970d.js\",\"2669\",\"static/chunks/2669-60014e0cb3a45fce.js\",\"7177\",\"static/chunks/app/layout-5966cd317bbed698.js\"],\"default\"]\n19:I[80250,[\"5883\",\"static/chunks/505c7712-0c24a53e04230ea7.js\",\"6435\",\"static/chunks/325a3484-c4849768e3512277.js\",\"3940\",\"static/chunks/3940-5473abef004ec592.js\",\"2130\",\"static/chunks/2130-8604144349838fa9.js\",\"8225\",\"static/chunks/8225-4655c2b7b7e84b86.js\",\"7156\",\"static/chunks/7156-9bff361e032a7906.js\",\"7368\",\"static/chunks/7368-36239cc62a8bcd45.js\",\"4937\",\"static/chunks/4937-4101fcdadacf46e3.js\",\"4172\",\"static/chunks/4172-4fc551f07f7d082f.js\",\"878\",\"static/chunks/878-dcbd588adc2102fa.js\",\"2288\",\"static/chunks/2288-4dcb8ad3ccbd651e.js\",\"4454\",\"static/chunks/4454-f582e17b76ccf1d1.js\",\"2073\",\"static/chunks/2073-3f913ebb13702b7e.js\",\"5152\",\"static/chunks/5152-2db55438be7ecb94.js\",\"5191\",\"static/chunks/5191-88914df1c15c22e6.js\",\"5200\",\"static/chunks/5200-6c82e5ce54a95b4b.js\",\"9479\",\"static/chunks/9479-7b304601a56304cd.js\",\"2461\",\"static/chunks/2461-a1073a0bd04c228a.js\",\"763\",\"static/chunks/763-10e7ea1774f0970d.js\",\"2669\",\"static/chunks/2669-60014e0cb3a45fce.js\",\"7177\",\"static/chunks/app/layout-5966cd317bbed698.js\"],\"default\"]\n1a:I[98163,[\"5883\",\"static/chunks/505c7712-0c24a53e04230ea7.js\",\"6435\",\"static/chunks/325a3484-c4849768e3512277.js\",\"3940\",\"static/chunks/3940-5473abef004ec592.js\",\"2130\",\"static/chunks/2130-8604144349838fa9.js\",\"8225\",\"static/chunks/8225-4655c2b7b7e84b86.js\",\"7156\",\"static/chunks/71"])</script><script>self.__next_f.push([1,"56-9bff361e032a7906.js\",\"7368\",\"static/chunks/7368-36239cc62a8bcd45.js\",\"4937\",\"static/chunks/4937-4101fcdadacf46e3.js\",\"4172\",\"static/chunks/4172-4fc551f07f7d082f.js\",\"878\",\"static/chunks/878-dcbd588adc2102fa.js\",\"2288\",\"static/chunks/2288-4dcb8ad3ccbd651e.js\",\"4454\",\"static/chunks/4454-f582e17b76ccf1d1.js\",\"2073\",\"static/chunks/2073-3f913ebb13702b7e.js\",\"5152\",\"static/chunks/5152-2db55438be7ecb94.js\",\"5191\",\"static/chunks/5191-88914df1c15c22e6.js\",\"5200\",\"static/chunks/5200-6c82e5ce54a95b4b.js\",\"9479\",\"static/chunks/9479-7b304601a56304cd.js\",\"2461\",\"static/chunks/2461-a1073a0bd04c228a.js\",\"763\",\"static/chunks/763-10e7ea1774f0970d.js\",\"2669\",\"static/chunks/2669-60014e0cb3a45fce.js\",\"7177\",\"static/chunks/app/layout-5966cd317bbed698.js\"],\"default\"]\n1b:I[28169,[],\"IconMark\"]\n:HL[\"/_next/static/css/0d2fd378b5449176.css\",\"style\"]\n:HL[\"/_next/static/css/599369d853c61df7.css\",\"style\"]\n"])</script><script>self.__next_f.push([1,"0:{\"P\":null,\"b\":\"J9M4pgRyRHH7Ofbxuuklh\",\"c\":[\"\",\"wiki\"],\"q\":\"\",\"i\":false,\"f\":[[[\"\",{\"children\":[\"wiki\",{\"children\":[\"__PAGE__\",{}]}]},\"$undefined\",\"$undefined\",true],[[\"$\",\"$1\",\"c\",{\"children\":[[[\"$\",\"link\",\"0\",{\"rel\":\"stylesheet\",\"href\":\"/_next/static/css/0d2fd378b5449176.css\",\"precedence\":\"next\",\"crossOrigin\":\"$undefined\",\"nonce\":\"$undefined\"}],[\"$\",\"link\",\"1\",{\"rel\":\"stylesheet\",\"href\":\"/_next/static/css/599369d853c61df7.css\",\"precedence\":\"next\",\"crossOrigin\":\"$undefined\",\"nonce\":\"$undefined\"}]],\"$L2\"]}],{\"children\":[[\"$\",\"$1\",\"c\",{\"children\":[null,[\"$\",\"$L3\",null,{\"parallelRouterKey\":\"children\",\"error\":\"$undefined\",\"errorStyles\":\"$undefined\",\"errorScripts\":\"$undefined\",\"template\":[\"$\",\"$L4\",null,{}],\"templateStyles\":\"$undefined\",\"templateScripts\":\"$undefined\",\"notFound\":\"$undefined\",\"forbidden\":\"$undefined\",\"unauthorized\":\"$undefined\"}]]}],{\"children\":[[\"$\",\"$1\",\"c\",{\"children\":[[\"$\",\"$L5\",null,{\"spaces\":[],\"recent\":[{\"path\":\"README.md\",\"mtime\":1778471788449.5483}]}],null,[\"$\",\"$L6\",null,{\"children\":[\"$\",\"$7\",null,{\"name\":\"Next.MetadataOutlet\",\"children\":\"$@8\"}]}]]}],{},null,false,false]},null,false,false]},[[\"$\",\"div\",\"l\",{\"className\":\"content-width px-4 md:px-6 py-10 md:py-14 animate-pulse\",\"aria-busy\":\"true\",\"aria-label\":\"Loading\",\"children\":[[\"$\",\"div\",null,{\"className\":\"mb-10\",\"children\":[[\"$\",\"div\",null,{\"className\":\"flex items-center gap-3 mb-2\",\"children\":[[\"$\",\"div\",null,{\"className\":\"w-1 h-7 rounded-full bg-muted\"}],[\"$\",\"div\",null,{\"className\":\"h-6 w-28 bg-muted rounded\"}]]}],[\"$\",\"div\",null,{\"className\":\"h-4 w-64 bg-muted rounded ml-4 mb-6\"}],[\"$\",\"div\",null,{\"className\":\"w-full max-w-xl flex flex-col sm:flex-row items-stretch sm:items-center gap-2 ml-4\",\"children\":[[\"$\",\"div\",null,{\"className\":\"flex-1 h-12 rounded-xl bg-muted\"}],[\"$\",\"div\",null,{\"className\":\"h-12 w-16 rounded-xl bg-muted shrink-0\"}]]}],[\"$\",\"div\",null,{\"className\":\"flex items-center gap-3 mt-4 ml-4\",\"children\":[[\"$\",\"div\",null,{\"className\":\"h-9 w-28 rounded-lg bg-muted\"}],[\"$\",\"div\",null,{\"className\":\"h-9 w-40 rounded-lg bg-muted\"}]]}]]}],[\"$\",\"div\",null,{\"className\":\"mb-10\",\"children\":[[\"$\",\"div\",null,{\"className\":\"flex items-center gap-2 mb-4\",\"children\":[[\"$\",\"div\",null,{\"className\":\"w-4 h-4 rounded bg-muted\"}],[\"$\",\"div\",null,{\"className\":\"h-4 w-16 bg-muted rounded\"}]]}],[\"$\",\"div\",null,{\"className\":\"grid grid-cols-2 sm:grid-cols-3 gap-2\",\"children\":[[\"$\",\"div\",\"0\",{\"className\":\"flex items-start gap-3 px-3.5 py-3 rounded-xl border border-border\",\"children\":[[\"$\",\"div\",null,{\"className\":\"w-5 h-5 rounded bg-muted shrink-0 mt-0.5\"}],[\"$\",\"div\",null,{\"className\":\"flex-1 space-y-1.5\",\"children\":[[\"$\",\"div\",null,{\"className\":\"h-4 w-20 bg-muted rounded\"}],[\"$\",\"div\",null,{\"className\":\"h-3 w-full bg-muted rounded\"}],[\"$\",\"div\",null,{\"className\":\"h-3 w-12 bg-muted rounded\"}]]}]]}],[\"$\",\"div\",\"1\",{\"className\":\"flex items-start gap-3 px-3.5 py-3 rounded-xl border border-border\",\"children\":[[\"$\",\"div\",null,{\"className\":\"w-5 h-5 rounded bg-muted shrink-0 mt-0.5\"}],[\"$\",\"div\",null,{\"className\":\"flex-1 space-y-1.5\",\"children\":[[\"$\",\"div\",null,{\"className\":\"h-4 w-20 bg-muted rounded\"}],[\"$\",\"div\",null,{\"className\":\"h-3 w-full bg-muted rounded\"}],[\"$\",\"div\",null,{\"className\":\"h-3 w-12 bg-muted rounded\"}]]}]]}],[\"$\",\"div\",\"2\",{\"className\":\"flex items-start gap-3 px-3.5 py-3 rounded-xl border border-border\",\"children\":[[\"$\",\"div\",null,{\"className\":\"w-5 h-5 rounded bg-muted shrink-0 mt-0.5\"}],[\"$\",\"div\",null,{\"className\":\"flex-1 space-y-1.5\",\"children\":[[\"$\",\"div\",null,{\"className\":\"h-4 w-20 bg-muted rounded\"}],[\"$\",\"div\",null,{\"className\":\"h-3 w-full bg-muted rounded\"}],[\"$\",\"div\",null,{\"className\":\"h-3 w-12 bg-muted rounded\"}]]}]]}],[\"$\",\"div\",\"3\",{\"className\":\"flex items-start gap-3 px-3.5 py-3 rounded-xl border border-border\",\"children\":[[\"$\",\"div\",null,{\"className\":\"w-5 h-5 rounded bg-muted shrink-0 mt-0.5\"}],[\"$\",\"div\",null,{\"className\":\"flex-1 space-y-1.5\",\"children\":[[\"$\",\"div\",null,{\"className\":\"h-4 w-20 bg-muted rounded\"}],[\"$\",\"div\",null,{\"className\":\"h-3 w-full bg-muted rounded\"}],[\"$\",\"div\",null,{\"className\":\"h-3 w-12 bg-muted rounded\"}]]}]]}],[\"$\",\"div\",\"4\",{\"className\":\"flex items-start gap-3 px-3.5 py-3 rounded-xl border border-border\",\"children\":[[\"$\",\"div\",null,{\"className\":\"w-5 h-5 rounded bg-muted shrink-0 mt-0.5\"}],[\"$\",\"div\",null,{\"className\":\"flex-1 space-y-1.5\",\"children\":[[\"$\",\"div\",null,{\"className\":\"h-4 w-20 bg-muted rounded\"}],[\"$\",\"div\",null,{\"className\":\"h-3 w-full bg-muted rounded\"}],[\"$\",\"div\",null,{\"className\":\"h-3 w-12 bg-muted rounded\"}]]}]]}],[\"$\",\"div\",\"5\",{\"className\":\"flex items-start gap-3 px-3.5 py-3 rounded-xl border border-border\",\"children\":[[\"$\",\"div\",null,{\"className\":\"w-5 h-5 rounded bg-muted shrink-0 mt-0.5\"}],\"$L9\"]}]]}]]}],\"$La\"]}],[],[]],false,false],\"$Lb\",false]],\"m\":\"$undefined\",\"G\":[\"$c\",[]],\"S\":false}\n"])</script><script>self.__next_f.push([1,"9:[\"$\",\"div\",null,{\"className\":\"flex-1 space-y-1.5\",\"children\":[[\"$\",\"div\",null,{\"className\":\"h-4 w-20 bg-muted rounded\"}],[\"$\",\"div\",null,{\"className\":\"h-3 w-full bg-muted rounded\"}],[\"$\",\"div\",null,{\"className\":\"h-3 w-12 bg-muted rounded\"}]]}]\n"])</script><script>self.__next_f.push([1,"a:[\"$\",\"div\",null,{\"className\":\"mb-10\",\"children\":[[\"$\",\"div\",null,{\"className\":\"flex items-center gap-2 mb-4\",\"children\":[[\"$\",\"div\",null,{\"className\":\"w-4 h-4 rounded bg-muted\"}],[\"$\",\"div\",null,{\"className\":\"h-4 w-24 bg-muted rounded\"}]]}],[\"$\",\"div\",null,{\"className\":\"flex flex-col gap-3\",\"children\":[[\"$\",\"div\",\"0\",{\"children\":[[\"$\",\"div\",null,{\"className\":\"flex items-center gap-2 px-1 py-1.5\",\"children\":[[\"$\",\"div\",null,{\"className\":\"w-4 h-4 rounded bg-muted\"}],[\"$\",\"div\",null,{\"className\":\"h-3 w-24 bg-muted rounded\"}]]}],[\"$\",\"div\",null,{\"className\":\"flex flex-col gap-0.5 ml-2 border-l border-border/40 pl-3\",\"children\":[[\"$\",\"div\",\"0\",{\"className\":\"flex items-center gap-3 px-3 py-2\",\"children\":[[\"$\",\"div\",null,{\"className\":\"w-3 h-3 rounded bg-muted shrink-0\"}],[\"$\",\"div\",null,{\"className\":\"flex-1 space-y-1\",\"children\":[[\"$\",\"div\",null,{\"className\":\"h-4 w-40 bg-muted rounded\"}],[\"$\",\"div\",null,{\"className\":\"h-3 w-24 bg-muted rounded\"}]]}],[\"$\",\"div\",null,{\"className\":\"h-3 w-12 bg-muted rounded shrink-0\"}]]}],[\"$\",\"div\",\"1\",{\"className\":\"flex items-center gap-3 px-3 py-2\",\"children\":[[\"$\",\"div\",null,{\"className\":\"w-3 h-3 rounded bg-muted shrink-0\"}],[\"$\",\"div\",null,{\"className\":\"flex-1 space-y-1\",\"children\":[[\"$\",\"div\",null,{\"className\":\"h-4 w-40 bg-muted rounded\"}],[\"$\",\"div\",null,{\"className\":\"h-3 w-24 bg-muted rounded\"}]]}],[\"$\",\"div\",null,{\"className\":\"h-3 w-12 bg-muted rounded shrink-0\"}]]}]]}]]}],[\"$\",\"div\",\"1\",{\"children\":[[\"$\",\"div\",null,{\"className\":\"flex items-center gap-2 px-1 py-1.5\",\"children\":[[\"$\",\"div\",null,{\"className\":\"w-4 h-4 rounded bg-muted\"}],[\"$\",\"div\",null,{\"className\":\"h-3 w-24 bg-muted rounded\"}]]}],[\"$\",\"div\",null,{\"className\":\"flex flex-col gap-0.5 ml-2 border-l border-border/40 pl-3\",\"children\":[[\"$\",\"div\",\"0\",{\"className\":\"flex items-center gap-3 px-3 py-2\",\"children\":[[\"$\",\"div\",null,{\"className\":\"w-3 h-3 rounded bg-muted shrink-0\"}],[\"$\",\"div\",null,{\"className\":\"flex-1 space-y-1\",\"children\":[[\"$\",\"div\",null,{\"className\":\"h-4 w-40 bg-muted rounded\"}],[\"$\",\"div\",null,{\"className\":\"h-3 w-24 bg-muted rounded\"}]]}],[\"$\",\"div\",null,{\"className\":\"h-3 w-12 bg-muted rounded shrink-0\"}]]}],[\"$\",\"div\",\"1\",{\"className\":\"flex items-center gap-3 px-3 py-2\",\"children\":[[\"$\",\"div\",null,{\"className\":\"w-3 h-3 rounded bg-muted shrink-0\"}],[\"$\",\"div\",null,{\"className\":\"flex-1 space-y-1\",\"children\":[[\"$\",\"div\",null,{\"className\":\"h-4 w-40 bg-muted rounded\"}],[\"$\",\"div\",null,{\"className\":\"h-3 w-24 bg-muted rounded\"}]]}],[\"$\",\"div\",null,{\"className\":\"h-3 w-12 bg-muted rounded shrink-0\"}]]}]]}]]}],[\"$\",\"div\",\"2\",{\"children\":[[\"$\",\"div\",null,{\"className\":\"flex items-center gap-2 px-1 py-1.5\",\"children\":[[\"$\",\"div\",null,{\"className\":\"w-4 h-4 rounded bg-muted\"}],[\"$\",\"div\",null,{\"className\":\"h-3 w-24 bg-muted rounded\"}]]}],[\"$\",\"div\",null,{\"className\":\"flex flex-col gap-0.5 ml-2 border-l border-border/40 pl-3\",\"children\":[[\"$\",\"div\",\"0\",{\"className\":\"flex items-center gap-3 px-3 py-2\",\"children\":[[\"$\",\"div\",null,{\"className\":\"w-3 h-3 rounded bg-muted shrink-0\"}],[\"$\",\"div\",null,{\"className\":\"flex-1 space-y-1\",\"children\":[[\"$\",\"div\",null,{\"className\":\"h-4 w-40 bg-muted rounded\"}],[\"$\",\"div\",null,{\"className\":\"h-3 w-24 bg-muted rounded\"}]]}],[\"$\",\"div\",null,{\"className\":\"h-3 w-12 bg-muted rounded shrink-0\"}]]}],[\"$\",\"div\",\"1\",{\"className\":\"flex items-center gap-3 px-3 py-2\",\"children\":[[\"$\",\"div\",null,{\"className\":\"w-3 h-3 rounded bg-muted shrink-0\"}],[\"$\",\"div\",null,{\"className\":\"flex-1 space-y-1\",\"children\":[[\"$\",\"div\",null,{\"className\":\"h-4 w-40 bg-muted rounded\"}],[\"$\",\"div\",null,{\"className\":\"h-3 w-24 bg-muted rounded\"}]]}],[\"$\",\"div\",null,{\"className\":\"h-3 w-12 bg-muted rounded shrink-0\"}]]}]]}]]}]]}]]}]\n"])</script><script>self.__next_f.push([1,"b:[\"$\",\"$1\",\"h\",{\"children\":[null,[\"$\",\"$Ld\",null,{\"children\":\"$Le\"}],[\"$\",\"div\",null,{\"hidden\":true,\"children\":[\"$\",\"$Lf\",null,{\"children\":[\"$\",\"$7\",null,{\"name\":\"Next.Metadata\",\"children\":\"$L10\"}]}]}],null]}]\n11:T499,(function(){try{var s=localStorage.getItem('theme');var dark=s\u0026\u0026s!=='system'?s==='dark':window.matchMedia('(prefers-color-scheme: dark)').matches;document.documentElement.classList.toggle('dark',dark);document.documentElement.style.backgroundColor=dark?'#131210':'#f8f6f1';document.documentElement.style.color=dark?'#e8e4dc':'#1c1a17';var cw=localStorage.getItem('content-width');if(cw)document.documentElement.style.setProperty('--content-width-override',cw);var pf=localStorage.getItem('prose-font');if(!pf){pf='inter';localStorage.setItem('prose-font','inter')}if(pf==='geist'){pf='inter';localStorage.setItem('prose-font','inter')}var fm={lora:'\"Lora\", Georgia, serif','ibm-plex-sans':'\"IBM Plex Sans\", sans-serif',inter:'var(--font-inter), sans-serif','ibm-plex-mono':'\"IBM Plex Mono\", monospace'};if(pf\u0026\u0026fm[pf])document.documentElement.style.setProperty('--prose-font-override',fm[pf]);var loc=localStorage.getItem('locale')||'system';var rl=loc==='system'?(navigator.language.startsWith('zh')?'zh':'en'):loc;window.__mindos_locale__=rl;document.documentElement.lang=rl==='zh'?'zh':'en';document.cookie='locale='+rl+';path=/;max-age=31536000;SameSite=Lax'}catch(e){}})();"])</script><script>self.__next_f.push([1,"2:[\"$\",\"html\",null,{\"lang\":\"en\",\"suppressHydrationWarning\":true,\"style\":{\"backgroundColor\":\"#f8f6f1\",\"color\":\"#1c1a17\"},\"children\":[[\"$\",\"head\",null,{\"children\":[[\"$\",\"meta\",null,{\"name\":\"theme-color\",\"content\":\"#c8873a\"}],[\"$\",\"script\",null,{\"dangerouslySetInnerHTML\":{\"__html\":\"(function(){if(typeof Node!=='undefined'){var o=Node.prototype.removeChild;Node.prototype.removeChild=function(c){if(c.parentNode!==this){try{return o.call(c.parentNode,c)}catch(e){return c}}return o.call(this,c)};var i=Node.prototype.insertBefore;Node.prototype.insertBefore=function(n,r){if(r\u0026\u0026r.parentNode!==this){try{return i.call(r.parentNode,n,r)}catch(e){return i.call(this,n,null)}}return i.call(this,n,r)}}})();\"}}],[\"$\",\"script\",null,{\"dangerouslySetInnerHTML\":{\"__html\":\"(function(){try{if(/electron/i.test(navigator.userAgent)\u0026\u0026/macintosh/i.test(navigator.userAgent)){document.documentElement.setAttribute('data-electron-mac','')}}catch(e){}})();\"}}],[\"$\",\"script\",null,{\"dangerouslySetInnerHTML\":{\"__html\":\"$11\"}}]]}],[\"$\",\"body\",null,{\"className\":\"antialiased bg-background text-foreground\",\"suppressHydrationWarning\":true,\"children\":[[\"$\",\"$L12\",null,{\"ssrLocale\":\"en\"}],[\"$\",\"$L13\",null,{\"delay\":300,\"children\":[\"$\",\"$L14\",null,{\"children\":[\"$\",\"$L15\",null,{\"fileTree\":[{\"name\":\"README.md\",\"path\":\"README.md\",\"type\":\"file\",\"extension\":\".md\"}],\"children\":[\"$\",\"$L3\",null,{\"parallelRouterKey\":\"children\",\"error\":\"$16\",\"errorStyles\":[],\"errorScripts\":[],\"template\":[\"$\",\"$L4\",null,{}],\"templateStyles\":\"$undefined\",\"templateScripts\":\"$undefined\",\"notFound\":[[[\"$\",\"title\",null,{\"children\":\"404: This page could not be found.\"}],[\"$\",\"div\",null,{\"style\":{\"fontFamily\":\"system-ui,\\\"Segoe UI\\\",Roboto,Helvetica,Arial,sans-serif,\\\"Apple Color Emoji\\\",\\\"Segoe UI Emoji\\\"\",\"height\":\"100vh\",\"textAlign\":\"center\",\"display\":\"flex\",\"flexDirection\":\"column\",\"alignItems\":\"center\",\"justifyContent\":\"center\"},\"children\":[\"$\",\"div\",null,{\"children\":[[\"$\",\"style\",null,{\"dangerouslySetInnerHTML\":{\"__html\":\"body{color:#000;background:#fff;margin:0}.next-error-h1{border-right:1px solid rgba(0,0,0,.3)}@media (prefers-color-scheme:dark){body{color:#fff;background:#000}.next-error-h1{border-right:1px solid rgba(255,255,255,.3)}}\"}}],[\"$\",\"h1\",null,{\"className\":\"next-error-h1\",\"style\":{\"display\":\"inline-block\",\"margin\":\"0 20px 0 0\",\"padding\":\"0 23px 0 0\",\"fontSize\":24,\"fontWeight\":500,\"verticalAlign\":\"top\",\"lineHeight\":\"49px\"},\"children\":404}],[\"$\",\"div\",null,{\"style\":{\"display\":\"inline-block\"},\"children\":[\"$\",\"h2\",null,{\"style\":{\"fontSize\":14,\"fontWeight\":400,\"lineHeight\":\"49px\",\"margin\":0},\"children\":\"This page could not be found.\"}]}]]}]}]],[]],\"forbidden\":\"$undefined\",\"unauthorized\":\"$undefined\"}]}]}]}],[\"$\",\"$L17\",null,{}],[\"$\",\"$L18\",null,{}],[\"$\",\"$L19\",null,{}],[\"$\",\"$L1a\",null,{}]]}]]}]\n"])</script><script>self.__next_f.push([1,"e:[[\"$\",\"meta\",\"0\",{\"charSet\":\"utf-8\"}],[\"$\",\"meta\",\"1\",{\"name\":\"viewport\",\"content\":\"width=device-width, initial-scale=1, viewport-fit=cover\"}]]\n8:null\n10:[[\"$\",\"title\",\"0\",{\"children\":\"MindOS\"}],[\"$\",\"meta\",\"1\",{\"name\":\"description\",\"content\":\"Personal knowledge base\"}],[\"$\",\"link\",\"2\",{\"rel\":\"manifest\",\"href\":\"/manifest.json\",\"crossOrigin\":\"$undefined\"}],[\"$\",\"meta\",\"3\",{\"name\":\"mobile-web-app-capable\",\"content\":\"yes\"}],[\"$\",\"meta\",\"4\",{\"name\":\"apple-mobile-web-app-capable\",\"content\":\"yes\"}],[\"$\",\"meta\",\"5\",{\"name\":\"apple-mobile-web-app-status-bar-style\",\"content\":\"black-translucent\"}],[\"$\",\"link\",\"6\",{\"rel\":\"icon\",\"href\":\"/logo-square.svg\"}],[\"$\",\"link\",\"7\",{\"rel\":\"apple-touch-icon\",\"href\":\"/icons/icon-192.png\"}],[\"$\",\"$L1b\",\"8\",{}]]\n"])</script></body></html>
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[1227],{5038:(e,t,r)=>{"use strict";r.d(t,{A:()=>s});let s=(0,r(73015).A)("triangle-alert",[["path",{d:"m21.73 18-8-14a2 2 0 0 0-3.48 0l-8 14A2 2 0 0 0 4 21h16a2 2 0 0 0 1.73-3",key:"wmoenq"}],["path",{d:"M12 9v4",key:"juzpu7"}],["path",{d:"M12 17h.01",key:"p32p05"}]])},18659:(e,t,r)=>{"use strict";r.d(t,{A:()=>s});let s=(0,r(73015).A)("table",[["path",{d:"M12 3v18",key:"108xh3"}],["rect",{width:"18",height:"18",x:"3",y:"3",rx:"2",key:"afitv7"}],["path",{d:"M3 9h18",key:"1pudct"}],["path",{d:"M3 15h18",key:"5xshup"}]])},30401:(e,t,r)=>{"use strict";r.d(t,{A:()=>s});let s=(0,r(73015).A)("file-text",[["path",{d:"M6 22a2 2 0 0 1-2-2V4a2 2 0 0 1 2-2h8a2.4 2.4 0 0 1 1.704.706l3.588 3.588A2.4 2.4 0 0 1 20 8v12a2 2 0 0 1-2 2z",key:"1oefj6"}],["path",{d:"M14 2v5a1 1 0 0 0 1 1h5",key:"wfsgrz"}],["path",{d:"M10 9H8",key:"b1mrlr"}],["path",{d:"M16 13H8",key:"t4e002"}],["path",{d:"M16 17H8",key:"z1uh3a"}]])},31606:(e,t,r)=>{"use strict";r.d(t,{A:()=>s});let s=(0,r(73015).A)("trash-2",[["path",{d:"M10 11v6",key:"nco0om"}],["path",{d:"M14 11v6",key:"outv1u"}],["path",{d:"M19 6v14a2 2 0 0 1-2 2H7a2 2 0 0 1-2-2V6",key:"miytrc"}],["path",{d:"M3 6h18",key:"d0wm0j"}],["path",{d:"M8 6V4a2 2 0 0 1 2-2h4a2 2 0 0 1 2 2v2",key:"e791ji"}]])},44361:(e,t,r)=>{"use strict";r.d(t,{A:()=>s});let s=(0,r(73015).A)("loader-circle",[["path",{d:"M21 12a9 9 0 1 1-6.219-8.56",key:"13zald"}]])},50560:(e,t,r)=>{Promise.resolve().then(r.bind(r,61696))},52212:(e,t,r)=>{"use strict";r.d(t,{A:()=>s});let s=(0,r(73015).A)("rotate-ccw",[["path",{d:"M3 12a9 9 0 1 0 9-9 9.75 9.75 0 0 0-6.74 2.74L3 8",key:"1357e3"}],["path",{d:"M3 3v5h5",key:"1xhq8a"}]])},56261:(e,t,r)=>{"use strict";var s=r(59889);r.o(s,"usePathname")&&r.d(t,{usePathname:function(){return s.usePathname}}),r.o(s,"useRouter")&&r.d(t,{useRouter:function(){return s.useRouter}}),r.o(s,"useSearchParams")&&r.d(t,{useSearchParams:function(){return s.useSearchParams}})},59029:(e,t,r)=>{"use strict";r.d(t,{v:()=>i});var s=r(44223);let a=e=>{let t,r=new Set,s=(e,s)=>{let a="function"==typeof e?e(t):e;if(!Object.is(a,t)){let e=t;t=(null!=s?s:"object"!=typeof a||null===a)?a:Object.assign({},t,a),r.forEach(r=>r(t,e))}},a=()=>t,l={setState:s,getState:a,getInitialState:()=>i,subscribe:e=>(r.add(e),()=>r.delete(e))},i=t=e(s,a,l);return l},l=e=>{let t=e?a(e):a,r=e=>(function(e,t=e=>e){let r=s.useSyncExternalStore(e.subscribe,s.useCallback(()=>t(e.getState()),[e,t]),s.useCallback(()=>t(e.getInitialState()),[e,t]));return s.useDebugValue(r),r})(t,e);return Object.assign(r,t),r},i=e=>e?l(e):l},61017:(e,t,r)=>{"use strict";r.d(t,{A:()=>s});let s=(0,r(73015).A)("folder",[["path",{d:"M20 20a2 2 0 0 0 2-2V8a2 2 0 0 0-2-2h-7.9a2 2 0 0 1-1.69-.9L9.6 3.9A2 2 0 0 0 7.93 3H4a2 2 0 0 0-2 2v13a2 2 0 0 0 2 2Z",key:"1kt360"}]])},61696:(e,t,r)=>{"use strict";r.d(t,{default:()=>j});var s=r(66839),a=r(44223),l=r(31606),i=r(61017),n=r(18659),d=r(30401),o=r(5038),c=r(44361),u=r(52212),m=r(72799),h=r(56261),x=r(2073),f=r(65799);let p=(0,f.createServerReference)("607778a585a167f00e6b8f7bb0d769d2018701903a",f.callServer,void 0,f.findSourceMapURL,"restoreFromTrashAction"),b=(0,f.createServerReference)("406f608a5bb81b0674fd536b2eb8d55e4143fd9914",f.callServer,void 0,f.findSourceMapURL,"permanentlyDeleteAction"),v=(0,f.createServerReference)("00d4a46cbd97214523891c9ec6b6d34586e62157c7",f.callServer,void 0,f.findSourceMapURL,"emptyTrashAction");var g=r(84734),y=r(79455);function j({initialItems:e}){let{t}=(0,x.Y)(),r=(0,h.useRouter)(),[f,j]=(0,a.useState)(e),[N,k]=(0,a.useTransition)(),[A,w]=(0,a.useState)(!1),[M,C]=(0,a.useState)(null),[S,R]=(0,a.useState)(null),[z,P]=(0,a.useState)(null),L=(0,a.useCallback)(async e=>{P(e.id);try{let s=await p(e.id,"restore");s.success?(j(t=>t.filter(t=>t.id!==e.id)),y.oR.success(t.trash.restored),r.refresh()):s.conflict?R(e):y.oR.error(s.error??t.trash.restoreFailed)}finally{P(null)}},[t,r]),T=(0,a.useCallback)(async e=>{if(!S)return;let s=await p(S.id,e);s.success?(j(e=>e.filter(e=>e.id!==S.id)),y.oR.success(t.trash.restored),R(null),r.refresh()):y.oR.error(s.error??t.trash.restoreFailed)},[S,t,r]),_=(0,a.useCallback)(async()=>{if(!M)return;let e=await b(M.id);e.success?(j(e=>e.filter(e=>e.id!==M.id)),y.oR.success(t.trash.deleted)):y.oR.error(e.error??t.trash.deleteFailed),C(null)},[M,t]),E=(0,a.useCallback)(async()=>{k(async()=>{let e=await v();e.success?(j([]),y.oR.success(t.trash.emptied(e.count??0))):y.oR.error(e.error??t.trash.emptyFailed),w(!1)})},[t]);return(0,s.jsxs)("div",{className:"min-h-screen",children:[(0,s.jsx)("div",{className:"px-4 md:px-6 pt-6 md:pt-8",children:(0,s.jsx)("div",{className:"content-width xl:mr-[220px] rounded-xl border border-border bg-card px-4 py-3 md:px-5 md:py-4",children:(0,s.jsxs)("div",{className:"flex flex-wrap items-start justify-between gap-3",children:[(0,s.jsxs)("div",{className:"min-w-0",children:[(0,s.jsxs)("div",{className:"flex items-center gap-2 text-sm font-medium text-foreground",children:[(0,s.jsx)(l.A,{size:15}),t.trash.title]}),(0,s.jsx)("p",{className:"mt-1 text-xs text-muted-foreground",children:t.trash.subtitle}),f.length>0&&(0,s.jsx)("div",{className:"mt-2 text-xs text-muted-foreground",children:t.trash.itemCount(f.length)})]}),f.length>0&&(0,s.jsx)("button",{type:"button",onClick:()=>w(!0),disabled:N,className:"px-2.5 py-1.5 rounded-md text-xs font-medium bg-error/10 text-error hover:bg-error/20 transition-colors disabled:opacity-50",children:t.trash.emptyTrash})]})})}),(0,s.jsx)("div",{className:"px-4 md:px-6 py-4 md:py-6",children:(0,s.jsx)("div",{className:"content-width xl:mr-[220px]",children:0===f.length?(0,s.jsxs)("div",{className:"rounded-xl border border-border/40 bg-card/30 p-12 text-center",children:[(0,s.jsx)("div",{className:"inline-flex items-center justify-center w-12 h-12 rounded-full bg-muted/60 mb-4",children:(0,s.jsx)(l.A,{size:22,className:"text-muted-foreground/40"})}),(0,s.jsx)("p",{className:"text-sm font-medium text-muted-foreground/70",children:t.trash.empty}),(0,s.jsx)("p",{className:"text-xs text-muted-foreground/40 mt-1 max-w-xs mx-auto leading-relaxed",children:t.trash.emptySubtext})]}):(0,s.jsx)("div",{className:"grid grid-cols-1 sm:grid-cols-2 lg:grid-cols-3 gap-3",children:f.map(e=>{let r=Math.max(0,Math.ceil((new Date(e.expiresAt).getTime()-Date.now())/864e5)),a=r<=3;return(0,s.jsxs)("div",{className:"rounded-xl border border-border bg-card p-4 flex flex-col gap-3 hover:border-border/80 transition-colors",children:[(0,s.jsxs)("div",{className:"flex items-start gap-3 min-w-0",children:[(0,s.jsx)("div",{className:"w-9 h-9 rounded-lg bg-muted/50 flex items-center justify-center shrink-0",children:e.isDirectory?(0,s.jsx)(i.A,{size:16,className:"text-muted-foreground"}):e.fileName.endsWith(".csv")?(0,s.jsx)(n.A,{size:16,className:"text-success"}):(0,s.jsx)(d.A,{size:16,className:"text-muted-foreground"})}),(0,s.jsxs)("div",{className:"min-w-0 flex-1",children:[(0,s.jsx)("p",{className:"text-sm font-medium text-foreground truncate",title:e.fileName,children:e.fileName}),(0,s.jsxs)("p",{className:"text-xs text-muted-foreground truncate mt-0.5",title:e.originalPath,children:[t.trash.from,": ",e.originalPath.split("/").slice(0,-1).join("/")||"/"]})]})]}),(0,s.jsxs)("div",{className:"flex items-center justify-between",children:[(0,s.jsxs)("div",{className:"flex flex-col gap-0.5",children:[(0,s.jsx)("span",{className:"text-2xs text-muted-foreground",children:t.trash.deletedAgo(function(e,t){let r=Math.floor((Date.now()-new Date(e).getTime())/6e4);if(r<1)return t.justNow??"just now";if(r<60)return t.minutesAgo?.(r)??`${r}m ago`;let s=Math.floor(r/60);if(s<24)return t.hoursAgo?.(s)??`${s}h ago`;let a=Math.floor(s/24);return t.daysAgo?.(a)??`${a}d ago`}(e.deletedAt,t.trash))}),(0,s.jsxs)("span",{className:`text-2xs ${a?"text-error":"text-muted-foreground/60"}`,children:[a&&(0,s.jsx)(o.A,{size:9,className:"inline mr-0.5"}),t.trash.expiresIn(r)]})]}),(0,s.jsxs)("div",{className:"flex items-center gap-1.5",children:[(0,s.jsxs)("button",{type:"button",onClick:()=>L(e),disabled:z===e.id,className:"inline-flex items-center gap-1 px-2 py-1 rounded-md text-xs font-medium bg-success/10 text-success hover:bg-success/20 transition-colors disabled:opacity-50",children:[z===e.id?(0,s.jsx)(c.A,{size:11,className:"animate-spin"}):(0,s.jsx)(u.A,{size:11}),t.trash.restore]}),(0,s.jsx)("button",{type:"button",onClick:()=>C(e),className:"p-1 rounded-md text-muted-foreground hover:text-error hover:bg-error/10 transition-colors",title:t.trash.deletePermanently,children:(0,s.jsx)(m.A,{size:13})})]})]})]},e.id)})})})}),(0,s.jsx)(g.TM,{open:A,title:t.trash.emptyTrash,message:t.trash.emptyTrashConfirm,confirmLabel:t.trash.emptyTrash,cancelLabel:t.trash.cancel??"Cancel",onConfirm:()=>void E(),onCancel:()=>w(!1),variant:"destructive"}),(0,s.jsx)(g.TM,{open:!!M,title:t.trash.deletePermanently,message:M?t.trash.deletePermanentlyConfirm(M.fileName):"",confirmLabel:t.trash.deletePermanently,cancelLabel:t.trash.cancel??"Cancel",onConfirm:()=>void _(),onCancel:()=>C(null),variant:"destructive"}),S&&(0,s.jsx)("div",{className:"fixed inset-0 z-50 flex items-center justify-center modal-backdrop",children:(0,s.jsxs)("div",{className:"bg-card border border-border rounded-xl shadow-xl max-w-sm w-full mx-4 p-5",children:[(0,s.jsxs)("div",{className:"flex items-center gap-2 mb-3",children:[(0,s.jsx)(o.A,{size:16,className:"text-[var(--amber)]"}),(0,s.jsx)("h3",{className:"text-sm font-semibold",children:t.trash.restoreConflict})]}),(0,s.jsxs)("p",{className:"text-xs text-muted-foreground mb-4",children:['"',S.fileName,'" — ',S.originalPath]}),(0,s.jsxs)("div",{className:"flex items-center gap-2 justify-end",children:[(0,s.jsx)("button",{type:"button",onClick:()=>R(null),className:"px-3 py-1.5 rounded-md text-xs font-medium text-muted-foreground hover:text-foreground hover:bg-muted transition-colors",children:t.trash.cancel??"Cancel"}),(0,s.jsx)("button",{type:"button",onClick:()=>void T("copy"),className:"px-3 py-1.5 rounded-md text-xs font-medium bg-muted text-foreground hover:bg-muted/80 transition-colors",children:t.trash.saveAsCopy}),(0,s.jsx)("button",{type:"button",onClick:()=>void T("overwrite"),className:"px-3 py-1.5 rounded-md text-xs font-medium bg-[var(--amber-dim)] text-[var(--amber-text)] hover:opacity-80 transition-colors",children:t.trash.overwrite})]})]})})]})}},65799:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0});var s={callServer:function(){return l.callServer},createServerReference:function(){return n.createServerReference},findSourceMapURL:function(){return i.findSourceMapURL}};for(var a in s)Object.defineProperty(t,a,{enumerable:!0,get:s[a]});let l=r(86716),i=r(24480),n=r(25641)},72799:(e,t,r)=>{"use strict";r.d(t,{A:()=>s});let s=(0,r(73015).A)("x",[["path",{d:"M18 6 6 18",key:"1bl5f8"}],["path",{d:"m6 6 12 12",key:"d8bk6v"}]])},73015:(e,t,r)=>{"use strict";r.d(t,{A:()=>d});var s=r(44223);let a=(...e)=>e.filter((e,t,r)=>!!e&&""!==e.trim()&&r.indexOf(e)===t).join(" ").trim(),l=e=>{let t=e.replace(/^([A-Z])|[\s-_]+(\w)/g,(e,t,r)=>r?r.toUpperCase():t.toLowerCase());return t.charAt(0).toUpperCase()+t.slice(1)};var i={xmlns:"http://www.w3.org/2000/svg",width:24,height:24,viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:2,strokeLinecap:"round",strokeLinejoin:"round"};let n=(0,s.forwardRef)(({color:e="currentColor",size:t=24,strokeWidth:r=2,absoluteStrokeWidth:l,className:n="",children:d,iconNode:o,...c},u)=>(0,s.createElement)("svg",{ref:u,...i,width:t,height:t,stroke:e,strokeWidth:l?24*Number(r)/Number(t):r,className:a("lucide",n),...!d&&!(e=>{for(let t in e)if(t.startsWith("aria-")||"role"===t||"title"===t)return!0;return!1})(c)&&{"aria-hidden":"true"},...c},[...o.map(([e,t])=>(0,s.createElement)(e,t)),...Array.isArray(d)?d:[d]])),d=(e,t)=>{let r=(0,s.forwardRef)(({className:r,...i},d)=>(0,s.createElement)(n,{ref:d,iconNode:t,className:a(`lucide-${l(e).replace(/([a-z0-9])([A-Z])/g,"$1-$2").toLowerCase()}`,`lucide-${e}`,r),...i}));return r.displayName=l(e),r}},73601:(e,t,r)=>{"use strict";r.d(t,{A:()=>s});let s=(0,r(73015).A)("plus",[["path",{d:"M5 12h14",key:"1ays0h"}],["path",{d:"M12 5v14",key:"s699le"}]])}},e=>{e.O(0,[2073,5152,5018,2330,7358],()=>e(e.s=50560)),_N_E=e.O()}]);
|
|
@@ -1,12 +0,0 @@
|
|
|
1
|
-
(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[2303,9508],{747:(e,t,r)=>{"use strict";r.d(t,{A:()=>s});let s=(0,r(73015).A)("house",[["path",{d:"M15 21v-8a1 1 0 0 0-1-1h-4a1 1 0 0 0-1 1v8",key:"5wwlr5"}],["path",{d:"M3 10a2 2 0 0 1 .709-1.528l7-6a2 2 0 0 1 2.582 0l7 6A2 2 0 0 1 21 10v9a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2z",key:"r6nss1"}]])},7380:(e,t,r)=>{"use strict";r.d(t,{i:()=>n});var s=r(65799);let n=(0,s.createServerReference)("400ebcf1e8d43496a5778ff1afe5c194bc247d9ba0",s.callServer,void 0,s.findSourceMapURL,"deleteFileAction")},15806:(e,t,r)=>{"use strict";r.d(t,{default:()=>eg});var s=r(66839),n=r(44223),a=r(56261),o=r(71044),i=r(44361),l=r(73260),d=r(73015);let c=(0,d.A)("code",[["path",{d:"m16 18 6-6-6-6",key:"eg8j8"}],["path",{d:"m8 6-6 6 6 6",key:"ppft3o"}]]);var u=r(2408);let m=(0,d.A)("panel-left",[["rect",{width:"18",height:"18",x:"3",y:"3",rx:"2",key:"afitv7"}],["path",{d:"M9 3v18",key:"fh3hqa"}]]);var x=r(55798),p=r(42277),h=r(72799),f=r(80772),g=r(82417),v=r(52954),b=r(30401);let y=(0,d.A)("share-2",[["circle",{cx:"18",cy:"5",r:"3",key:"gq8acd"}],["circle",{cx:"6",cy:"12",r:"3",key:"w7nqdw"}],["circle",{cx:"18",cy:"19",r:"3",key:"1xt0gg"}],["line",{x1:"8.59",x2:"15.42",y1:"13.51",y2:"17.49",key:"47mynk"}],["line",{x1:"15.41",x2:"8.59",y1:"6.51",y2:"10.49",key:"1n3mei"}]]);var j=r(71481),w=r(24336),N=r(31606),k=r(32303);function C({content:e}){let t=(0,n.useMemo)(()=>{try{return JSON.stringify(JSON.parse(e),null,2)}catch{return e}},[e]);return(0,s.jsx)("pre",{className:"rounded-xl border border-border bg-card px-4 py-3 overflow-x-auto text-sm leading-relaxed font-display",children:(0,s.jsx)("code",{suppressHydrationWarning:!0,children:t})})}var A=r(96737),E=r.n(A),S=r(39966),z=r(72615),T=r(76728),R=r(73601);function L(e,t){return E().unparse([e,...t])}function M({value:e,editable:t,onCommit:r}){let[a,o]=(0,n.useState)(!1),[i,l]=(0,n.useState)(e),d=(0,n.useRef)(null);function c(){o(!1),i!==e&&r(i)}return((0,n.useEffect)(()=>{a&&d.current?.select()},[a]),a)?(0,s.jsx)("input",{ref:d,value:i,onChange:e=>l(e.target.value),onBlur:c,onKeyDown:t=>{"Enter"===t.key&&c(),"Escape"===t.key&&(l(e),o(!1))},className:"w-full bg-transparent outline-none text-sm",style:{color:"var(--foreground)",borderBottom:"1px solid var(--amber)",minWidth:60},onClick:e=>e.stopPropagation()}):(0,s.jsx)("div",{className:`truncate text-sm ${t?"cursor-text":""}`,style:{color:"var(--foreground)",minWidth:60},onClick:t?function(){t&&(l(e),o(!0))}:void 0,title:e,children:e||(0,s.jsx)("span",{style:{color:"var(--muted-foreground)",opacity:.4},children:"—"})})}function P({headers:e,onAdd:t,onCancel:r}){let[a,o]=(0,n.useState)(()=>Array(e.length).fill("")),i=(0,n.useRef)(null);return(0,s.jsxs)("tr",{style:{background:"color-mix(in srgb, var(--amber) 6%, transparent)",borderTop:"1px solid var(--amber)"},children:[e.map((e,n)=>(0,s.jsx)("td",{className:"px-3 py-2",style:{borderBottom:"1px solid var(--border)"},children:(0,s.jsx)("input",{ref:0===n?i:void 0,autoFocus:0===n,value:a[n],onChange:e=>{var t;return t=e.target.value,void o(e=>{let r=[...e];return r[n]=t,r})},onKeyDown:e=>{"Enter"===e.key&&t(a),"Escape"===e.key&&r()},placeholder:e,className:"w-full bg-transparent outline-none text-sm placeholder:opacity-30",style:{color:"var(--foreground)",borderBottom:"1px solid var(--border)"}})},n)),(0,s.jsx)("td",{className:"px-2 py-2",style:{borderBottom:"1px solid var(--border)"}})]})}function F({content:e,appendAction:t,saveAction:r}){let[a,o]=(0,n.useState)(e),[l,d]=(0,n.useState)(null),[c,u]=(0,n.useState)(null),[m,x]=(0,n.useState)(!1),[p,h]=(0,n.useState)(!1),f=(0,n.useMemo)(()=>E().parse(a,{skipEmptyLines:!0}).data,[a]),g=f[0]||[],v=f.slice(1),b=(0,n.useMemo)(()=>null===l||null===c?v:[...v].sort((e,t)=>{let r=e[l]??"",s=t[l]??"",n=parseFloat(r),a=parseFloat(s);return isNaN(n)||isNaN(a)?"asc"===c?r.localeCompare(s):s.localeCompare(r):"asc"===c?n-a:a-n}),[v,l,c]),y=(0,n.useCallback)(async(e,t,s)=>{if(!r)return;let n=L(g,v.map(r=>r===b[e]?r.map((e,r)=>r===t?s:e):r));o(n),h(!0);try{await r(n)}catch(e){console.error("[CsvView] Cell save failed:",e)}finally{h(!1)}},[r,v,b,g]),j=(0,n.useCallback)(async e=>{if(!r||p)return;let t=b[e],s=L(g,v.filter(e=>e!==t));o(s),h(!0);try{await r(s)}catch(e){console.error("[CsvView] Row delete failed:",e)}finally{h(!1)}},[r,v,b,g,p]),w=(0,n.useCallback)(async e=>{h(!0);try{if(t){let r=await t(e);o(r.newContent)}else if(r){let t=L(g,[...v,e]);o(t),await r(t)}x(!1)}catch(e){console.error("[CsvView] Add row failed:",e)}finally{h(!1)}},[t,r,g,v]),k=!!r||!!t;return 0===g.length?(0,s.jsx)("div",{className:"text-sm py-4",style:{color:"var(--muted-foreground)"},children:"Empty CSV file"}):(0,s.jsxs)("div",{className:"w-full rounded-xl overflow-hidden border",style:{borderColor:"var(--border)"},children:[(0,s.jsx)("div",{className:"overflow-x-auto",children:(0,s.jsxs)("table",{className:"min-w-full text-sm border-collapse",children:[(0,s.jsx)("thead",{children:(0,s.jsxs)("tr",{style:{background:"var(--muted)"},children:[g.map((e,t)=>(0,s.jsx)("th",{onClick:()=>(function(e){if(l!==e){d(e),u("asc");return}"asc"===c?u("desc"):(d(null),u(null))})(t),className:"px-4 py-2.5 text-left font-semibold cursor-pointer select-none whitespace-nowrap transition-colors hover:bg-accent",style:{color:"var(--foreground)",borderBottom:"1px solid var(--border)",fontSize:"0.75rem",letterSpacing:"0.04em",textTransform:"uppercase"},children:(0,s.jsxs)("div",{className:"flex items-center gap-1.5",children:[(0,s.jsx)("span",{children:e}),l===t?"asc"===c?(0,s.jsx)(S.A,{size:11,style:{color:"var(--amber)"}}):(0,s.jsx)(z.A,{size:11,style:{color:"var(--amber)"}}):(0,s.jsx)(T.A,{size:11,style:{color:"var(--muted-foreground)",opacity:.4}})]})},t)),k&&(0,s.jsx)("th",{className:"w-8",style:{borderBottom:"1px solid var(--border)",background:"var(--muted)"}})]})}),(0,s.jsxs)("tbody",{children:[b.map((e,t)=>(0,s.jsxs)("tr",{className:"group transition-colors",style:{background:t%2==0?"var(--background)":"var(--card)"},onMouseEnter:e=>e.currentTarget.style.background="var(--muted)",onMouseLeave:e=>e.currentTarget.style.background=t%2==0?"var(--background)":"var(--card)",children:[g.map((n,a)=>(0,s.jsx)("td",{className:"px-4 py-2.5 max-w-xs",style:{borderBottom:"1px solid var(--border)"},children:(0,s.jsx)(M,{value:e[a]??"",editable:!!r,onCommit:e=>y(t,a,e)})},a)),k&&(0,s.jsx)("td",{className:"px-2 py-2",style:{borderBottom:"1px solid var(--border)"},children:r&&(0,s.jsx)("button",{onClick:()=>j(t),disabled:p,className:"opacity-0 group-hover:opacity-100 transition-opacity p-1 rounded hover:bg-destructive/10 disabled:opacity-30",style:{color:"var(--muted-foreground)"},title:p?"Saving...":"Delete row",children:(0,s.jsx)(N.A,{size:12})})})]},t)),m&&(0,s.jsx)(P,{headers:g,onAdd:w,onCancel:()=>x(!1)})]})]})}),(0,s.jsxs)("div",{className:"px-4 py-2 flex items-center justify-between",style:{background:"var(--muted)",borderTop:"1px solid var(--border)"},children:[(0,s.jsxs)("span",{className:"text-xs font-display flex items-center gap-1.5",style:{color:"var(--muted-foreground)"},children:[v.length," rows \xb7 ",g.length," cols",p&&(0,s.jsx)(i.A,{size:10,className:"animate-spin",style:{color:"var(--amber)"}})]}),k&&!m&&(0,s.jsxs)("button",{onClick:()=>x(!0),className:"flex items-center gap-1 text-xs px-2.5 py-1 rounded-md transition-colors font-display",style:{color:"var(--amber)",background:"var(--amber-dim)"},children:[(0,s.jsx)(R.A,{size:12}),"Add row"]}),m&&(0,s.jsx)("button",{onClick:()=>x(!1),className:"text-xs px-2.5 py-1 rounded-md transition-colors font-display",style:{color:"var(--muted-foreground)"},children:"Cancel"})]})]})}var $=r(18016),D=r.n($);let I=(0,d.A)("link",[["path",{d:"M10 13a5 5 0 0 0 7.54.54l3-3a5 5 0 0 0-7.07-7.07l-1.72 1.71",key:"1cjeqo"}],["path",{d:"M14 11a5 5 0 0 0-7.54-.54l-3 3a5 5 0 0 0 7.07 7.07l1.71-1.71",key:"19qd67"}]]);var V=r(2073),O=r(65264);function H({filePath:e}){let[t,r]=(0,n.useState)([]),[a,o]=(0,n.useState)(!0),{t:i}=(0,V.Y)();return((0,n.useEffect)(()=>{o(!0),(0,O.n)(`/api/backlinks?path=${encodeURIComponent(e)}`).then(e=>{r(Array.isArray(e)?e:[]),o(!1)}).catch(()=>{r([]),o(!1)})},[e]),a||0!==t.length)?(0,s.jsxs)("div",{className:"mt-12 pt-8 border-t border-border",children:[(0,s.jsxs)("div",{className:"flex items-center gap-2 mb-6 text-muted-foreground",children:[(0,s.jsx)(I,{size:16,className:"text-[var(--amber)]/70"}),(0,s.jsx)("h3",{className:"text-sm font-semibold tracking-wider uppercase",children:i.common?.relatedFiles||"Related Files"}),(0,s.jsx)("span",{className:"text-xs bg-muted px-1.5 py-0.5 rounded-full font-mono",children:t.length})]}),(0,s.jsx)("div",{className:"grid gap-3",children:a?(0,s.jsx)("div",{className:"space-y-3",children:[1,2].map(e=>(0,s.jsx)("div",{className:"h-20 bg-muted/30 rounded-lg animate-pulse"},e))}):t.map(e=>(0,s.jsx)(D(),{href:`/view/${e.filePath.split("/").map(encodeURIComponent).join("/")}`,className:"group block p-4 rounded-xl border border-border/50 bg-card/30 hover:bg-muted/30 hover:border-[var(--amber)]/30 transition-all duration-200",children:(0,s.jsxs)("div",{className:"flex items-start gap-3",children:[(0,s.jsx)("div",{className:"mt-1 p-1.5 rounded-md bg-muted group-hover:bg-[var(--amber)]/10 transition-colors",children:(0,s.jsx)(b.A,{size:14,className:"text-muted-foreground group-hover:text-[var(--amber)]"})}),(0,s.jsxs)("div",{className:"min-w-0 flex-1",children:[(0,s.jsx)("div",{className:"font-medium text-sm text-foreground group-hover:text-[var(--amber)] transition-colors truncate mb-1",title:e.filePath,children:e.filePath}),(0,s.jsx)("div",{className:"text-xs text-muted-foreground line-clamp-2 leading-relaxed italic opacity-80 group-hover:opacity-100 transition-opacity",title:e.snippets[0]||"",children:e.snippets[0]||""})]})]})},e.filePath))})]}):null}var W=r(91216),U=r(72730),B=r(93738);let Y=(0,B.default)(()=>Promise.all([r.e(1708),r.e(7906),r.e(4938),r.e(3648),r.e(570),r.e(2151),r.e(9837),r.e(5835)]).then(r.bind(r,95835)),{loadableGenerated:{webpack:()=>[95835]},ssr:!1,loading:()=>(0,s.jsx)("div",{className:"h-full w-full min-h-[400px] rounded-lg border border-border bg-background flex items-center justify-center",children:(0,s.jsxs)("div",{className:"flex items-center gap-2 text-muted-foreground text-sm",children:[(0,s.jsx)("div",{className:"w-4 h-4 border-2 border-border border-t-foreground rounded-full animate-spin"}),(0,s.jsx)("span",{children:"Loading editor..."})]})})}),q=(0,B.default)(()=>Promise.all([r.e(5365),r.e(149),r.e(1708),r.e(9043),r.e(7613),r.e(7142),r.e(2151),r.e(878),r.e(9602),r.e(5243)]).then(r.bind(r,65243)),{loadableGenerated:{webpack:()=>[65243]},ssr:!1});function J({value:e,onChange:t,viewMode:r}){return(0,s.jsxs)(s.Fragment,{children:[(0,s.jsx)("div",{className:"min-h-[50vh]",style:{display:"wysiwyg"===r?void 0:"none"},children:(0,s.jsx)(q,{value:e,onChange:t})}),"source"===r&&(0,s.jsx)("div",{className:"rounded-xl overflow-hidden border border-border flex",style:{height:"calc(100vh - 160px)"},children:(0,s.jsx)("div",{className:"w-full h-full overflow-auto",children:(0,s.jsx)(Y,{value:e,onChange:t,language:"markdown"})})})]})}var K=r(98327),G=r(63692),_=r(58221);function Z(e){if(0===e.length)return[];for(let t of[...document.querySelectorAll(".prose"),...document.querySelectorAll(".ProseMirror")]){let r=!1,s=t;for(;s;){if("none"===s.style.display){r=!0;break}s=s.parentElement}if(r)continue;let n=Array.from(t.querySelectorAll("h1, h2, h3, h4, h5, h6")).filter(e=>!e.closest('.milkdown-code-block, .milkdown-toolbar, .language-picker, [role="toolbar"], [role="menu"]'));if(n.length>0)return e.map((e,t)=>n[t]??null)}return e.map(()=>null)}function X({content:e}){let{t}=(0,V.Y)(),{headings:r,minLevel:a}=(0,n.useMemo)(()=>{let t=function(e){let t=new G.A,r=e.split("\n"),s=[],n=!1;for(let e of r){if(/^(`{3,}|~{3,})/.test(e)){n=!n;continue}if(n)continue;let r=e.match(/^(#{1,4})\s+(.+)/);if(r){let e=r[1].length,n=r[2].trim(),a=t.slug(n);s.push({id:a,text:n,level:e})}}return s}(e);return{headings:t,minLevel:t.length>0?Math.min(...t.map(e=>e.level)):1}},[e]),[o,i]=(0,n.useState)(-1),[l,d]=(0,n.useState)(!1);(0,n.useEffect)(()=>{let e=document.documentElement.style;return e.setProperty("--toc-width",l?"0px":"212px"),l?e.removeProperty("--toc-margin"):e.setProperty("--toc-margin","220px"),()=>{e.removeProperty("--toc-width"),e.removeProperty("--toc-margin")}},[l]);let c=(0,n.useRef)(null),u=(0,n.useRef)(null),m=(0,n.useRef)(new Map),x=(0,n.useRef)([]),p=(0,n.useCallback)(e=>{let t=m.current.get(e),r=u.current;if(!t||!r||!t.isConnected)return;let s=r.getBoundingClientRect(),n=t.getBoundingClientRect(),a=n.top<s.top+40,o=n.bottom>s.bottom-40;(a||o)&&t.scrollIntoView({block:"center",behavior:"auto"})},[]);return((0,n.useEffect)(()=>{if(0===r.length)return;let e=setTimeout(()=>{let e=Z(r);x.current=e;let t=e.filter(Boolean);0!==t.length&&(c.current?.disconnect(),c.current=new IntersectionObserver(t=>{for(let r of t)if(r.isIntersecting){let t=e.indexOf(r.target);t>=0&&(i(t),p(t));break}},{rootMargin:"-58px 0% -70% 0%",threshold:0}),t.forEach(e=>c.current?.observe(e)))},300);return()=>{clearTimeout(e),c.current?.disconnect()}},[r]),r.length<2)?null:(0,s.jsxs)(s.Fragment,{children:[(0,s.jsx)("button",{onClick:()=>d(e=>!e),className:"hidden xl:flex fixed z-10 top-[46px] flex items-center justify-center w-5 h-8 rounded-l-md border border-r-0 border-border hover:bg-muted transition-colors",style:{right:`calc(var(--right-panel-width, 0px) + ${212*!l}px)`,background:"var(--background)",transition:"right 200ms ease-in-out"},title:l?t.view.tocExpand:t.view.tocCollapse,children:(0,s.jsx)(K.A,{size:11,className:"text-muted-foreground/60 transition-transform duration-200",style:{transform:l?"rotate(180deg)":"rotate(0deg)"}})}),(0,s.jsxs)("aside",{className:"hidden xl:flex flex-col fixed z-10 overflow-hidden",style:{top:46,height:"calc(100vh - 46px)",width:212,right:"var(--right-panel-width, 0px)",transform:l?"translateX(212px)":"translateX(0)",transition:"transform 200ms ease-in-out, right 200ms ease-out"},children:[(0,s.jsx)("div",{className:"flex items-center h-[46px] px-4 border-l border-b border-border",style:{background:"var(--background)"},children:(0,s.jsx)("p",{className:"text-2xs font-semibold uppercase tracking-wider text-muted-foreground/55 shrink-0",children:t.view.tocTitle})}),(0,s.jsx)("nav",{ref:u,"aria-label":t.view.tocTitle,className:"flex flex-col gap-0.5 overflow-y-auto min-h-0 flex-1 pt-3 pb-5 pl-2 pr-3 border-l border-border",style:{background:"var(--background)"},children:r.map((e,t)=>{let n=(e.level-a)*14,l=o===t,d=e.level>a;return(0,s.jsx)("a",{ref:e=>{e?m.current.set(t,e):m.current.delete(t)},href:`#${e.id}`,onClick:e=>((e,t)=>{e.preventDefault();let s=Z(r);x.current=s;let n=s[t];if(!n)return;let a=n.getBoundingClientRect().top+window.scrollY-58;window.scrollTo({top:a,behavior:"smooth"}),i(t)})(e,t),className:(0,_.cn)("block text-xs py-1 rounded transition-colors duration-100 leading-snug shrink-0 focus-visible:outline-none focus-visible:ring-1 focus-visible:ring-ring",l&&"font-medium"),style:{paddingLeft:`${8+n}px`,paddingRight:"8px",borderLeft:"2px solid",borderLeftColor:l?"var(--amber)":d?"var(--border)":"transparent",marginLeft:d?"7px":"0",...l?{color:"var(--amber)",background:"var(--amber-dim)"}:{color:"var(--muted-foreground)"}},title:e.text,children:(0,s.jsx)("span",{className:"block truncate",suppressHydrationWarning:!0,children:e.text})},`${e.id}-${t}`)})})]})]})}let Q="findip-highlight",ee="findip-active";function et({containerRef:e,onClose:t}){let{t:r}=(0,V.Y)(),[a,o]=(0,n.useState)(""),[i,l]=(0,n.useState)(0),[d,c]=(0,n.useState)(0),u=(0,n.useRef)(null),m=(0,n.useRef)([]);(0,n.useEffect)(()=>{u.current?.focus()},[]);let x=(0,n.useCallback)(()=>{for(let e of m.current){let t=e.parentNode;t&&(t.replaceChild(document.createTextNode(e.textContent||""),e),t.normalize())}m.current=[]},[]);(0,n.useEffect)(()=>{x(),l(0),c(0);let t=e.current;if(!t||!a.trim())return;let r=a.toLowerCase(),s=document.createTreeWalker(t,NodeFilter.SHOW_TEXT,{acceptNode:e=>e.parentElement?.closest("[data-find-in-page]")?NodeFilter.FILTER_REJECT:NodeFilter.FILTER_ACCEPT}),n=[];for(;s.nextNode();)n.push(s.currentNode);let o=[];for(let e of n){let t=e.textContent||"",s=t.toLowerCase(),n=0,a=[];for(;;){let e=s.indexOf(r,n);if(-1===e)break;a.push(e),n=e+r.length}if(0===a.length)continue;let i=e.parentNode;if(!i)continue;let l=document.createDocumentFragment(),d=0;for(let e of a){e>d&&l.appendChild(document.createTextNode(t.slice(d,e)));let s=document.createElement("mark");s.className=Q,s.textContent=t.slice(e,e+r.length),l.appendChild(s),o.push(s),d=e+r.length}d<t.length&&l.appendChild(document.createTextNode(t.slice(d))),i.replaceChild(l,e)}return m.current=o,c(o.length),l(+(o.length>0)),o.length>0&&(o[0].classList.add(ee),o[0].scrollIntoView({block:"center",behavior:"smooth"})),()=>{}},[a,e,x]),(0,n.useEffect)(()=>()=>{x()},[x]);let p=(0,n.useCallback)(e=>{let t=m.current;if(0===t.length)return;for(let e of t)e.classList.remove(ee);let r=((e-1)%t.length+t.length)%t.length;t[r].classList.add(ee),t[r].scrollIntoView({block:"center",behavior:"smooth"}),l(r+1)},[]),f=(0,n.useCallback)(()=>p(i+1),[i,p]),g=(0,n.useCallback)(()=>p(i-1),[i,p]),v=(0,n.useCallback)(e=>{"Escape"===e.key?(e.preventDefault(),t()):"Enter"===e.key&&(e.preventDefault(),e.shiftKey?g():f())},[t,f,g]);return(0,s.jsxs)(s.Fragment,{children:[(0,s.jsx)("style",{children:`
|
|
2
|
-
mark.${Q} {
|
|
3
|
-
background: rgba(250, 204, 21, 0.3);
|
|
4
|
-
color: inherit;
|
|
5
|
-
border-radius: 2px;
|
|
6
|
-
padding: 0;
|
|
7
|
-
}
|
|
8
|
-
mark.${ee} {
|
|
9
|
-
background: rgba(250, 204, 21, 0.7);
|
|
10
|
-
outline: 2px solid rgba(250, 204, 21, 0.5);
|
|
11
|
-
}
|
|
12
|
-
`}),(0,s.jsx)("div",{className:"sticky top-[98px] md:top-[46px] z-30 flex justify-end px-4 md:px-6 pointer-events-none","data-find-in-page":!0,children:(0,s.jsxs)("div",{className:"pointer-events-auto flex items-center gap-1.5 px-3 py-1.5 rounded-lg border border-border bg-card shadow-lg",children:[(0,s.jsx)("input",{ref:u,type:"text",value:a,onChange:e=>o(e.target.value),onKeyDown:v,placeholder:r.findInPage.placeholder,className:"w-[180px] sm:w-[220px] px-2 py-1 text-sm bg-transparent text-foreground placeholder:text-muted-foreground outline-none"}),(0,s.jsx)("span",{className:"text-xs text-muted-foreground tabular-nums shrink-0 min-w-[48px] text-center font-display",children:a.trim()?d>0?r.findInPage.matchCount(i,d):r.findInPage.noResults:""}),(0,s.jsx)("button",{onClick:g,disabled:0===d,className:"p-1 rounded text-muted-foreground hover:text-foreground disabled:opacity-30 transition-colors","aria-label":"Previous match",children:(0,s.jsx)(S.A,{size:14})}),(0,s.jsx)("button",{onClick:f,disabled:0===d,className:"p-1 rounded text-muted-foreground hover:text-foreground disabled:opacity-30 transition-colors","aria-label":"Next match",children:(0,s.jsx)(z.A,{size:14})}),(0,s.jsx)("button",{onClick:t,className:"p-1 rounded text-muted-foreground hover:text-foreground transition-colors","aria-label":"Close find",children:(0,s.jsx)(h.A,{size:14})})]})})]})}var er=r(46354),es=r(25176),en=r(84387),ea=r(7380),eo=r(55873),ei=r(79455),el=r(84734),ed=r(48107),ec=r(27069),eu=r(74197),em=r(31082),ex=r(76723);function ep({open:e,onClose:t,filePath:r,isDirectory:a,fileName:o}){let{t:l}=(0,V.Y)(),[d,c]=(0,n.useState)(a?"zip":"md"),[u,m]=(0,n.useState)("idle"),[x,p]=(0,n.useState)(""),f=(0,n.useRef)(null),g=(0,n.useCallback)(()=>{m("exporting"),p("");let e=new AbortController;f.current=e,fetch(`/api/export?path=${encodeURIComponent(r)}&format=${d}`,{signal:e.signal}).then(e=>{if(!e.ok){if((e.headers.get("content-type")??"").includes("json"))return e.json().then(e=>{throw Error(e.error||"Export failed")});throw Error(`Export failed (${e.status})`)}return e.blob().then(t=>({blob:t,res:e}))}).then(({blob:e,res:t})=>{let r=(t.headers.get("Content-Disposition")??"").match(/filename="?([^"]+)"?/),s=r?decodeURIComponent(r[1]):o,n=document.createElement("a");n.href=URL.createObjectURL(e),n.download=s,document.body.appendChild(n),n.click(),document.body.removeChild(n),URL.revokeObjectURL(n.href),m("done"),ei.oR.success(l.export?.downloaded??"Downloaded")}).catch(e=>{"AbortError"!==e.name&&(m("error"),p(e.message??"Export failed"))}).finally(()=>{f.current=null})},[r,d,o,l]),v=(0,n.useCallback)(()=>{f.current&&(f.current.abort(),f.current=null),m("idle"),p("")},[]),y=(0,n.useCallback)(()=>{m("idle"),p("")},[]),w=(0,n.useCallback)(()=>{f.current&&f.current.abort(),f.current=null,m("idle"),p(""),t()},[t]);if(!e)return null;let N=a?[{value:"zip",label:l.export?.formatZipMd??"Markdown ZIP",desc:l.export?.formatZipMdDesc??"All files in original format",icon:(0,s.jsx)(eu.A,{size:14})},{value:"zip-html",label:l.export?.formatZipHtml??"HTML ZIP",desc:l.export?.formatZipHtmlDesc??"All files as webpages",icon:(0,s.jsx)(em.A,{size:14})}]:[{value:"md",label:l.export?.formatMd??"Markdown (.md)",desc:l.export?.formatMdDesc??"Original format, editable",icon:(0,s.jsx)(b.A,{size:14})},{value:"html",label:l.export?.formatHtml??"HTML (.html)",desc:l.export?.formatHtmlDesc??"Static webpage, shareable",icon:(0,s.jsx)(em.A,{size:14})}];return(0,s.jsx)("div",{className:"fixed inset-0 z-50 flex items-center justify-center modal-backdrop",onClick:"exporting"===u?void 0:w,children:(0,s.jsxs)("div",{className:"bg-card border border-border rounded-xl shadow-xl max-w-md w-full mx-4 animate-in fade-in-0 zoom-in-95 duration-200",role:"dialog","aria-modal":"true","aria-labelledby":"export-modal-title",onClick:e=>e.stopPropagation(),children:[(0,s.jsxs)("div",{className:"flex items-center justify-between px-5 py-4 border-b border-border",children:[(0,s.jsxs)("div",{className:"flex items-center gap-2",children:[(0,s.jsx)(j.A,{size:15,className:"text-[var(--amber)]"}),(0,s.jsx)("h3",{id:"export-modal-title",className:"text-sm font-semibold",children:a?l.export?.exportSpace??"Export Space":l.export?.exportFile??"Export File"})]}),(0,s.jsx)("button",{onClick:w,className:"p-1 rounded-md text-muted-foreground hover:text-foreground hover:bg-muted transition-colors focus-visible:outline-none focus-visible:ring-1 focus-visible:ring-ring","aria-label":l.export?.cancel??"Close",children:(0,s.jsx)(h.A,{size:14})})]}),(0,s.jsx)("div",{className:"px-5 py-4",children:"done"===u?(0,s.jsxs)("div",{className:"text-center py-6",children:[(0,s.jsx)("div",{className:"w-10 h-10 rounded-full bg-success/10 flex items-center justify-center mx-auto mb-3",children:(0,s.jsx)(ex.A,{size:20,className:"text-success"})}),(0,s.jsx)("p",{className:"text-sm font-medium",children:l.export?.done??"Export Complete"}),(0,s.jsx)("p",{className:"text-xs text-muted-foreground mt-1",children:o})]}):"error"===u?(0,s.jsxs)("div",{className:"text-center py-6",children:[(0,s.jsx)("p",{className:"text-sm font-medium text-error",children:l.export?.error??"Export failed"}),(0,s.jsx)("p",{className:"text-xs text-muted-foreground mt-1",children:x})]}):(0,s.jsxs)(s.Fragment,{children:[(0,s.jsx)("p",{className:"text-xs text-muted-foreground mb-3 truncate",title:r,children:r}),(0,s.jsx)("p",{className:"text-xs font-medium text-foreground mb-2",children:l.export?.chooseFormat??"Choose format"}),(0,s.jsx)("div",{className:"space-y-1.5",children:N.map(e=>(0,s.jsxs)("label",{className:`flex items-start gap-3 p-3 rounded-lg border cursor-pointer transition-all ${d===e.value?"border-[var(--amber)]/40 bg-[var(--amber-dim)]":"border-border hover:border-border/80 hover:bg-muted/30"} ${e.disabled?"opacity-40 cursor-not-allowed":""}`,children:[(0,s.jsx)("input",{type:"radio",name:"export-format",value:e.value,checked:d===e.value,onChange:()=>!e.disabled&&c(e.value),disabled:e.disabled,className:"sr-only"}),(0,s.jsx)("span",{className:`mt-0.5 ${d===e.value?"text-[var(--amber)]":"text-muted-foreground"}`,children:e.icon}),(0,s.jsxs)("div",{children:[(0,s.jsx)("span",{className:"text-sm font-medium text-foreground",children:e.label}),(0,s.jsx)("span",{className:"text-xs text-muted-foreground block mt-0.5",children:e.desc})]})]},e.value))})]})}),(0,s.jsx)("div",{className:"flex items-center justify-end gap-2 px-5 py-3 border-t border-border",children:"done"===u?(0,s.jsxs)(s.Fragment,{children:[(0,s.jsx)("button",{onClick:y,className:"px-3 py-1.5 rounded-md text-xs font-medium text-muted-foreground hover:text-foreground hover:bg-muted transition-colors",children:l.export?.downloadAgain??"Download Again"}),(0,s.jsx)("button",{onClick:w,className:"px-3 py-1.5 rounded-md text-xs font-medium bg-[var(--amber-dim)] text-[var(--amber-text)] hover:opacity-80 transition-colors",children:l.export?.close??"Done"})]}):"error"===u?(0,s.jsxs)(s.Fragment,{children:[(0,s.jsx)("button",{onClick:w,className:"px-3 py-1.5 rounded-md text-xs font-medium text-muted-foreground hover:text-foreground hover:bg-muted transition-colors",children:l.export?.cancel??"Cancel"}),(0,s.jsx)("button",{onClick:y,className:"px-3 py-1.5 rounded-md text-xs font-medium bg-[var(--amber-dim)] text-[var(--amber-text)] hover:opacity-80 transition-colors",children:l.export?.retry??"Retry"})]}):"exporting"===u?(0,s.jsxs)(s.Fragment,{children:[(0,s.jsx)("button",{onClick:v,className:"px-3 py-1.5 rounded-md text-xs font-medium text-muted-foreground hover:text-foreground hover:bg-muted transition-colors",children:l.export?.cancel??"Cancel"}),(0,s.jsxs)("span",{className:"inline-flex items-center gap-1.5 px-3 py-1.5 rounded-md text-xs font-medium text-[var(--amber-text)] opacity-70",children:[(0,s.jsx)(i.A,{size:12,className:"animate-spin"})," ",l.export?.exporting??"Exporting..."]})]}):(0,s.jsxs)(s.Fragment,{children:[(0,s.jsx)("button",{onClick:w,className:"px-3 py-1.5 rounded-md text-xs font-medium text-muted-foreground hover:text-foreground hover:bg-muted transition-colors",children:l.export?.cancel??"Cancel"}),(0,s.jsxs)("button",{onClick:g,className:"inline-flex items-center gap-1.5 px-3 py-1.5 rounded-md text-xs font-medium bg-[var(--amber-dim)] text-[var(--amber-text)] hover:opacity-80 transition-colors",children:[(0,s.jsx)(j.A,{size:12})," ",l.export?.exportButton??"Export"]})]})})]})})}var eh=r(84242),ef=r(94537);function eg({filePath:e,content:t,extension:r,saveAction:d,appendRowAction:A,initialEditing:E=!1,isDraft:S=!1,draftDirectories:z=[],createDraftAction:T}){let{t:R}=(0,V.Y)(),{isPinned:L,togglePin:M}=(0,ec.Z)(),P=L(e),[$,D]=(0,n.useState)(!1);(0,eh.e)(e=>e.theme);let I=(0,n.useSyncExternalStore)(()=>()=>{},()=>!0,()=>!1),[O,B]=(0,W.Un)("_raw",e,!1),[q,K]=(0,n.useState)(!1),G=(0,a.useRouter)(),Z=["pdf","png","jpg","jpeg","gif","webp","svg","bmp","ico","mp3","wav","m4a","ogg","flac","aac","mp4","webm","mov","mkv"].includes(r),Q="md"===r,[ee,eu]=(0,n.useState)(()=>!Z&&(!!E||""===t||(!Q||"preview"!==localStorage.getItem("md-view-mode"))&&Q)),[em,ex]=(0,n.useState)(t),[eg,ev]=(0,n.useState)(t),eb=(0,n.useRef)(t);(0,n.useEffect)(()=>{t!==eb.current&&(eb.current=t,ee||ev(t))},[t,ee]);let[ey,ej]=(0,n.useTransition)(),[ew,eN]=(0,n.useState)(null),[ek,eC]=(0,n.useState)(!1),eA=(0,n.useRef)(null),eE=(0,n.useRef)(!1),eS=(0,n.useRef)(!0),[ez,eT]=(0,n.useState)("idle");(0,n.useEffect)(()=>(eS.current=!0,()=>{eS.current=!1}),[]),(0,n.useEffect)(()=>{if(Q&&ee&&!S&&em!==eg)return eA.current&&clearTimeout(eA.current),eA.current=setTimeout(async()=>{if(!eE.current){eE.current=!0;try{if(!eS.current)return;eT("saving");let e=(0,ef.a)(em);if(await d(e),!eS.current)return;ev(e),eT("saved"),setTimeout(()=>{eS.current&&eT("idle")},1500)}catch{eS.current&&eT("idle")}finally{eE.current=!1}}},1e3),()=>{eA.current&&clearTimeout(eA.current)}},[em,eg,ee,Q,S,d]);let[eR,eL]=(0,n.useState)(()=>{let e=localStorage.getItem("md-view-mode");return"wysiwyg"===e||"source"===e||"preview"===e?e:"wysiwyg"}),[eM,eP]=(0,n.useState)(!1),eF=(0,n.useRef)(null),[e$,eD]=(0,n.useState)(!1),eI=(0,n.useRef)(null),eV=(0,n.useRef)(null),[eO,eH]=(0,n.useState)(!1),[eW,eU]=(0,n.useState)(!1),[eB,eY]=(0,n.useState)(""),[,eq]=(0,n.useTransition)(),eJ=e.split("/").pop()||"Untitled.md",[eK,eG]=(0,n.useState)(S),[e_,eZ]=(0,n.useState)(""),[eX,eQ]=(0,n.useState)(eJ);(0,n.useEffect)(()=>{if(!e$)return;let e=e=>{eI.current&&!eI.current.contains(e.target)&&eV.current&&!eV.current.contains(e.target)&&eD(!1)},t=e=>{"Escape"===e.key&&eD(!1)};return document.addEventListener("mousedown",e),document.addEventListener("keydown",t),()=>{document.removeEventListener("mousedown",e),document.removeEventListener("keydown",t)}},[e$]);let e0=(0,n.useCallback)(()=>{navigator.clipboard.writeText(e).catch(()=>{}),eD(!1)},[e]),e1=(0,n.useCallback)(()=>{eD(!1),eY(e.split("/").pop()??""),eU(!0)},[e]),e2=(0,n.useCallback)(()=>{let t=eB.trim();t&&t!==e.split("/").pop()?eq(async()=>{let r=await (0,en.f)(e,t);eU(!1),r.success&&r.newPath&&(G.push(`/view/${(0,_.O0)(r.newPath)}`),G.refresh(),window.dispatchEvent(new Event("mindos:files-changed")))}):eU(!1)},[eB,e,G]),e3=(0,n.useCallback)(()=>{eH(!1);let t=e.split("/").pop()??e;ej(async()=>{let r=await (0,ea.i)(e);if(r.success){if(r.trashId){let e=r.trashId;ei.oR.undo(`${R.trash?.movedToTrash??"Deleted"} ${t}`,async()=>{let t=await (0,eo.Y)(e);t.success?(G.refresh(),window.dispatchEvent(new Event("mindos:files-changed"))):ei.oR.error(t.error??"Undo failed")},{label:R.trash?.undo??"Undo"})}G.push("/"),G.refresh(),window.dispatchEvent(new Event("mindos:files-changed"))}})},[e,G,R]),e5=!!I&&O,e4=(0,n.useCallback)(()=>{B(e=>!e)},[B]),e6=(0,n.useCallback)(()=>{K(e=>!e)},[K]),e7=(0,er.YB)(e,r),e8="md"===r&&q?(0,er.YB)(e,r,"graph"):void 0,e9=e8||e7,te="csv"===r,tt=!ee&&!!e9&&(!e5||!!e8),tr=(0,n.useMemo)(()=>e9?e9.component?e9.component:e9.load?(0,n.lazy)(e9.load):null:null,[e9]),ts=(0,n.useCallback)(()=>{ex(eg),eu(!0),eN(null),eC(!1)},[eg]),tn=(0,n.useCallback)(()=>{S?G.push("/"):(eu(!1),eN(null))},[S,G]),ta=(0,n.useCallback)(()=>{let e=eX.trim();if(!e)return void eN("Please enter a file name");if(/[/\\:*?"<>|]/.test(e)||e.split(/[\\/]+/).includes(".."))return void eN("File name contains invalid characters");if(!T)return void eN("Draft save is not available");let t=e.endsWith(".md")||e.endsWith(".csv")?e:`${e}.md`,r=e_?`${e_}/${t}`:t;eN(null),ej(async()=>{try{await T(r,em),ev(em),eu(!1),eG(!1),eC(!0),setTimeout(()=>eC(!1),2500),G.push(`/view/${(0,_.O0)(r)}`),G.refresh()}catch(e){eN(e instanceof Error?e.message:"Failed to save")}})},[eX,T,e_,em,G]),to=(0,n.useCallback)(()=>{if(te){eu(!1),eC(!0),setTimeout(()=>eC(!1),2500);return}S?eG(!0):(eN(null),ej(async()=>{try{let e=(0,ef.a)(em);await d(e),ev(e),Q||eu(!1),eC(!0),setTimeout(()=>eC(!1),2500)}catch(e){eN(e instanceof Error?e.message:"Failed to save")}}))},[te,S,Q,d,em]),ti=(0,n.useCallback)(async e=>{await d(e),ev(e)},[d]);(0,n.useEffect)(()=>{let e=e=>{let t=e.key.toLowerCase();(e.metaKey||e.ctrlKey)&&"s"===t&&(e.preventDefault(),ee&&to()),(e.metaKey||e.ctrlKey)&&"f"===t&&!ee&&(e.preventDefault(),eP(!0)),"e"!==t||ee||Z||document.activeElement?.tagName!=="BODY"||ts(),"Escape"===e.key&&ee&&!Q&&tn()};return window.addEventListener("keydown",e),()=>window.removeEventListener("keydown",e)},[ee,to,ts,tn]);let[tl,td]=(0,n.useState)(!1),[tc,tu]=(0,n.useState)([]),tm=(0,n.useRef)(t),tx=(0,n.useRef)(!1),tp=(0,n.useRef)(null),th=(0,n.useRef)(null);return(0,n.useEffect)(()=>{if(!ee&&tx.current&&t!==tm.current&&""!==tm.current){tx.current=!1;let e=(0,ed.m)(tm.current,t),r=[],s=1;for(let t of e)"insert"===t.type?(r.push(s),s++):"equal"===t.type&&s++;r.length>0&&(tu(r),tp.current&&clearTimeout(tp.current),tp.current=setTimeout(()=>tu([]),6e3),setTimeout(()=>{let e=document.querySelector("[data-highlight-line]");e&&e.scrollIntoView({block:"center",behavior:"smooth"})},100))}tm.current=t},[t,ee]),(0,n.useEffect)(()=>{let e=null,t=()=>{ee||(e&&clearTimeout(e),e=setTimeout(()=>{tx.current=!0,G.refresh(),td(!0),th.current&&clearTimeout(th.current),th.current=setTimeout(()=>td(!1),3e3)},300))};return window.addEventListener("mindos:files-changed",t),()=>{window.removeEventListener("mindos:files-changed",t),e&&clearTimeout(e)}},[ee,G]),(0,s.jsxs)("div",{className:"flex flex-col min-h-screen",children:[(0,s.jsx)("div",{className:"sticky top-[52px] md:top-0 z-20 border-b border-border px-4 md:px-6 h-[46px] flex items-center",style:{background:"var(--background)"},children:(0,s.jsxs)("div",{className:"w-full min-w-0 flex items-center justify-between gap-3 h-full",children:[(0,s.jsxs)("div",{className:"min-w-0 flex-1 flex items-center gap-1.5",children:[(0,s.jsx)("button",{onClick:()=>G.back(),className:"md:hidden p-1 -ml-1 rounded text-muted-foreground hover:text-foreground transition-colors shrink-0","aria-label":"Go back",children:(0,s.jsx)(o.A,{size:16})}),(0,s.jsx)(U.A,{filePath:e})]}),(0,s.jsxs)("div",{className:"flex items-center gap-1.5 md:gap-2 shrink-0",children:[tl&&!ee&&(0,s.jsxs)("span",{className:"text-xs flex items-center gap-1.5 text-[var(--amber)] animate-in fade-in-0 duration-200",children:[(0,s.jsx)("span",{className:"w-1.5 h-1.5 rounded-full bg-[var(--amber)]"}),(0,s.jsx)("span",{className:"hidden sm:inline",children:"updated"})]}),Q&&ee&&"saving"===ez&&(0,s.jsxs)("span",{className:"text-xs flex items-center gap-1.5 text-muted-foreground animate-in fade-in-0 duration-200",children:[(0,s.jsx)(i.A,{size:12,className:"animate-spin"}),(0,s.jsx)("span",{className:"hidden sm:inline",children:"saving..."})]}),Q&&ee&&"saved"===ez&&(0,s.jsxs)("span",{className:"text-xs flex items-center gap-1.5 animate-in fade-in-0 duration-200",style:{color:"var(--success)"},children:[(0,s.jsx)("span",{className:"w-1.5 h-1.5 rounded-full",style:{background:"var(--success)"}}),(0,s.jsx)("span",{className:"hidden sm:inline",children:"saved"})]}),ek&&!Q&&(0,s.jsxs)("span",{className:"text-xs flex items-center gap-1.5",style:{color:"var(--success)"},children:[(0,s.jsx)("span",{className:"w-1.5 h-1.5 rounded-full",style:{background:"var(--success)"}}),(0,s.jsx)("span",{className:"hidden sm:inline",children:"saved"})]}),ew&&(0,s.jsx)("span",{className:"text-xs text-error hidden sm:inline",children:ew}),e7&&!ee&&!S&&!e8&&!Z&&(0,s.jsxs)("button",{onClick:e4,className:"flex items-center gap-1.5 px-3 py-1.5 rounded-md text-xs font-medium transition-colors",style:{background:e5?"var(--amber)22":"var(--muted)",color:e5?"var(--amber)":"var(--muted-foreground)"},title:e5?`Switch to ${e7?.name}`:"View raw",children:[e5?(0,s.jsx)(l.A,{size:13}):(0,s.jsx)(c,{size:13}),(0,s.jsx)("span",{className:"hidden sm:inline",children:e5?e7.name:"Raw"})]}),Q&&!S&&(0,s.jsx)("div",{className:"flex items-center gap-0.5 p-0.5 bg-muted rounded-md",children:[{id:"wysiwyg",icon:(0,s.jsx)(u.A,{size:11}),label:"Edit"},{id:"source",icon:(0,s.jsx)(m,{size:11}),label:"Source"},{id:"preview",icon:(0,s.jsx)(x.A,{size:11}),label:"View"}].map(e=>(0,s.jsxs)("button",{onClick:()=>{ej(()=>{var t;if(eL(t=e.id),localStorage.setItem("md-view-mode",t),"preview"===e.id){let e=(0,ef.a)(em);ev(e),e!==eg&&d(e).catch(()=>{}),eu(!1)}else ee||(ex(eg),eu(!0))})},className:`flex items-center gap-1 px-2 py-1 rounded text-[11px] font-medium transition-colors ${eR===e.id?"bg-card text-foreground shadow-sm":"text-muted-foreground hover:text-foreground"}`,children:[e.icon,(0,s.jsx)("span",{className:"hidden md:inline",children:e.label})]},e.id))}),!ee&&!tt&&!S&&!Z&&!Q&&(0,s.jsxs)("button",{onClick:ts,className:"flex items-center gap-1.5 px-3 py-1.5 rounded-md text-xs font-medium transition-colors",style:{background:"var(--muted)",color:"var(--muted-foreground)"},onMouseEnter:e=>{e.currentTarget.style.color="var(--foreground)",e.currentTarget.style.background="var(--accent)"},onMouseLeave:e=>{e.currentTarget.style.color="var(--muted-foreground)",e.currentTarget.style.background="var(--muted)"},children:[(0,s.jsx)(p.A,{size:13}),(0,s.jsx)("span",{className:"hidden sm:inline",children:"Edit"})]}),ee&&!Q&&(0,s.jsxs)(s.Fragment,{children:[(0,s.jsxs)("button",{onClick:tn,disabled:ey,className:"flex items-center gap-1.5 px-3 py-1.5 rounded-md text-xs font-medium transition-colors disabled:opacity-50",style:{background:"var(--muted)",color:"var(--muted-foreground)"},onMouseEnter:e=>{e.currentTarget.style.background="var(--accent)"},onMouseLeave:e=>{e.currentTarget.style.background="var(--muted)"},children:[(0,s.jsx)(h.A,{size:13}),(0,s.jsx)("span",{className:"hidden sm:inline",children:"Cancel"})]}),(0,s.jsxs)("button",{onClick:S&&eK?ta:to,disabled:ey,className:"flex items-center gap-1.5 px-3 py-1.5 rounded-md text-xs font-medium disabled:opacity-50",style:{background:"var(--amber)",color:"var(--amber-foreground)"},children:[ey?(0,s.jsx)(i.A,{size:13,className:"animate-spin"}):(0,s.jsx)(f.A,{size:13}),(0,s.jsx)("span",{className:"hidden sm:inline",children:"Save"})]})]}),ee&&Q&&S&&(0,s.jsxs)(s.Fragment,{children:[(0,s.jsxs)("button",{onClick:tn,disabled:ey,className:"flex items-center gap-1.5 px-3 py-1.5 rounded-md text-xs font-medium transition-colors disabled:opacity-50",style:{background:"var(--muted)",color:"var(--muted-foreground)"},onMouseEnter:e=>{e.currentTarget.style.background="var(--accent)"},onMouseLeave:e=>{e.currentTarget.style.background="var(--muted)"},children:[(0,s.jsx)(h.A,{size:13}),(0,s.jsx)("span",{className:"hidden sm:inline",children:"Cancel"})]}),(0,s.jsxs)("button",{onClick:eK?ta:to,disabled:ey,className:"flex items-center gap-1.5 px-3 py-1.5 rounded-md text-xs font-medium disabled:opacity-50",style:{background:"var(--amber)",color:"var(--amber-foreground)"},children:[ey?(0,s.jsx)(i.A,{size:13,className:"animate-spin"}):(0,s.jsx)(f.A,{size:13}),(0,s.jsx)("span",{className:"hidden sm:inline",children:"Save"})]})]}),!S&&(0,s.jsxs)("div",{className:"relative",children:[(0,s.jsx)("button",{type:"button",onClick:()=>M(e),className:"p-1.5 rounded-md text-muted-foreground hover:text-foreground hover:bg-muted transition-colors",title:P?R.fileTree.removeFromFavorites:R.fileTree.pinToFavorites,children:(0,s.jsx)(g.A,{size:16,className:P?"fill-[var(--amber)] text-[var(--amber)]":""})}),(0,s.jsx)("button",{ref:eI,type:"button",onClick:()=>eD(e=>!e),className:"p-1.5 rounded-md text-muted-foreground hover:text-foreground hover:bg-muted transition-colors",title:R.view?.more??"More",children:(0,s.jsx)(v.A,{size:16})}),e$&&(0,s.jsxs)("div",{ref:eV,className:"absolute right-0 top-full mt-1 z-50 min-w-[160px] rounded-lg border border-border bg-card shadow-lg py-1",children:["md"===r&&!ee&&!S&&(0,er.pl)("graph")&&(0,s.jsxs)("button",{className:"w-full flex items-center gap-2 px-3 py-2 text-sm text-foreground hover:bg-muted transition-colors text-left",onClick:()=>{eD(!1),e6()},children:[q?(0,s.jsx)(b.A,{size:14,className:"shrink-0"}):(0,s.jsx)(y,{size:14,className:"shrink-0"}),q?R.view?.switchToDoc??"Document view":R.view?.switchToGraph??"Wiki Graph"]}),(0,s.jsxs)("button",{className:"w-full flex items-center gap-2 px-3 py-2 text-sm text-foreground hover:bg-muted transition-colors text-left",onClick:()=>{eD(!1),D(!0)},children:[(0,s.jsx)(j.A,{size:14,className:"shrink-0"})," ",R.fileTree?.export??"Export"]}),(0,s.jsxs)("button",{className:"w-full flex items-center gap-2 px-3 py-2 text-sm text-foreground hover:bg-muted transition-colors text-left",onClick:e0,children:[(0,s.jsx)(w.A,{size:14,className:"shrink-0"})," ",R.view?.copyPath??R.fileTree?.copyPath??"Copy Path"]}),(0,s.jsxs)("button",{className:"w-full flex items-center gap-2 px-3 py-2 text-sm text-foreground hover:bg-muted transition-colors text-left",onClick:e1,children:[(0,s.jsx)(u.A,{size:14,className:"shrink-0"})," ",R.view?.rename??"Rename"]}),(0,s.jsx)("div",{className:"my-1 border-t border-border/50"}),(0,s.jsxs)("button",{className:"w-full flex items-center gap-2 px-3 py-2 text-sm text-error hover:bg-error/10 transition-colors text-left",onClick:()=>{eD(!1),eH(!0)},children:[(0,s.jsx)(N.A,{size:14,className:"shrink-0"})," ",R.view?.delete??"Delete"]})]})]})]})]})}),(0,s.jsx)("div",{className:"flex-1 py-6 md:py-8",children:Q&&!tt?(0,s.jsxs)(s.Fragment,{children:[(0,s.jsxs)("div",{className:"content-width",style:{display:ee?void 0:"none"},children:[S&&eK&&(0,s.jsxs)("div",{className:"mb-3 rounded-lg border border-border bg-card p-3 flex flex-col gap-2",children:[(0,s.jsxs)("div",{children:[(0,s.jsx)("label",{className:"text-xs text-muted-foreground",children:R.view?.saveDirectory??"Directory"}),(0,s.jsx)("div",{className:"mt-1",children:(0,s.jsx)(es.A,{dirPaths:z,value:e_,onChange:eZ,rootLabel:R.home?.rootLevel??"Root"})})]}),(0,s.jsxs)("div",{children:[(0,s.jsx)("label",{className:"text-xs text-muted-foreground",children:R.view?.saveFileName??"File name"}),(0,s.jsx)("input",{value:eX,onChange:e=>eQ(e.target.value),onKeyDown:e=>{"Enter"===e.key&&ta()},className:"mt-1 w-full px-2.5 py-1.5 text-sm bg-background border border-border rounded-lg text-foreground outline-none focus-visible:ring-1 focus-visible:ring-ring",placeholder:"Untitled.md"})]})]}),(0,s.jsx)(J,{value:em,onChange:ex,viewMode:eR}),"source"!==eR&&(0,s.jsx)(X,{content:em})]}),(0,s.jsxs)("div",{ref:eF,className:"content-width",style:{display:ee?"none":void 0},children:[eM&&(0,s.jsx)(et,{containerRef:eF,onClose:()=>eP(!1)}),(0,s.jsx)(k.default,{content:(0,ef.a)(eg),highlightLines:tc,onDismissHighlight:()=>tu([]),emptyPlaceholder:R.view?.emptyNote}),(0,s.jsx)(X,{content:(0,ef.a)(eg)}),(0,s.jsx)(H,{filePath:e})]})]}):tt&&tr?(0,s.jsxs)("div",{ref:eF,className:"content-width",children:[eM&&(0,s.jsx)(et,{containerRef:eF,onClose:()=>eP(!1)}),(0,s.jsx)(n.Suspense,{fallback:(0,s.jsx)("div",{className:"flex items-center justify-center py-12",children:(0,s.jsx)(i.A,{size:20,className:"animate-spin text-muted-foreground"})}),children:(0,s.jsx)(tr,{filePath:e,content:eg,extension:r,saveAction:ti})}),(0,s.jsx)(H,{filePath:e})]}):ee?(0,s.jsx)("div",{className:"content-width",children:te?(0,s.jsx)(F,{content:em,filePath:e,appendAction:A,saveAction:async e=>{await d(e),ex(e),ev(e)}}):(0,s.jsx)(Y,{value:em,onChange:ex,language:"plain"})}):(0,s.jsxs)("div",{ref:eF,className:"content-width",children:[eM&&(0,s.jsx)(et,{containerRef:eF,onClose:()=>eP(!1)}),"csv"===r?(0,s.jsx)(F,{content:eg,filePath:e}):"json"===r?(0,s.jsx)(C,{content:eg}):(0,s.jsx)(k.default,{content:eg,highlightLines:tc,onDismissHighlight:()=>tu([]),emptyPlaceholder:R.view?.emptyNote}),(0,s.jsx)(H,{filePath:e})]})}),eW&&(0,s.jsx)("div",{className:"fixed inset-0 z-50 flex items-center justify-center bg-background/60 backdrop-blur-sm",children:(0,s.jsxs)("div",{className:"bg-card border border-border rounded-lg shadow-lg p-4 w-80",children:[(0,s.jsx)("h3",{className:"text-sm font-medium mb-2",children:"Rename"}),(0,s.jsx)("input",{autoFocus:!0,value:eB,onChange:e=>eY(e.target.value),onKeyDown:e=>{"Enter"===e.key&&e2(),"Escape"===e.key&&eU(!1)},className:"w-full bg-muted border border-border rounded-md px-3 py-1.5 text-sm text-foreground focus-visible:outline-none focus-visible:ring-1 focus-visible:ring-ring"}),(0,s.jsxs)("div",{className:"flex justify-end gap-2 mt-3",children:[(0,s.jsx)("button",{onClick:()=>eU(!1),className:"px-3 py-1.5 rounded-md text-xs bg-muted text-muted-foreground hover:bg-accent transition-colors",children:R.view?.cancel??"Cancel"}),(0,s.jsx)("button",{onClick:e2,className:"px-3 py-1.5 rounded-md text-xs bg-[var(--amber)] text-[var(--amber-foreground)] transition-colors",children:R.view?.rename??"Rename"})]})]})}),(0,s.jsx)(el.TM,{open:eO,title:R.view?.delete??"Delete",message:R.view?.deleteConfirm?.(e.split("/").pop()??"")??`Delete "${e.split("/").pop()}"?`,confirmLabel:R.view?.delete??"Delete",cancelLabel:R.view?.cancel??"Cancel",variant:"destructive",onCancel:()=>eH(!1),onConfirm:e3}),(0,s.jsx)(ep,{open:$,onClose:()=>D(!1),filePath:e,isDirectory:!1,fileName:e.split("/").pop()??e})]})}},25176:(e,t,r)=>{"use strict";r.d(t,{A:()=>u});var s=r(66839),n=r(44223),a=r(53454),o=r(98327),i=r(61017),l=r(76723),d=r(72615),c=r(58221);function u({dirPaths:e,value:t,onChange:r,rootLabel:u="Root"}){let[m,x]=(0,n.useState)(!1),[p,h]=(0,n.useState)(t),[f,g]=(0,n.useState)(null),v=(0,n.useRef)(null),b=(0,n.useRef)(null);(0,n.useEffect)(()=>{h(t)},[t]);let y=(0,n.useCallback)(()=>{if(!v.current)return;let e=v.current.getBoundingClientRect(),t=window.innerHeight-e.bottom,r=e.top,s=t<208&&r>t;g({top:s?e.top:e.bottom,left:e.left,width:e.width,flipUp:s})},[]),j=(0,n.useRef)(0),w=(0,n.useCallback)(()=>{j.current||(j.current=requestAnimationFrame(()=>{j.current=0,y()}))},[y]);(0,n.useEffect)(()=>m?(y(),window.addEventListener("scroll",w,!0),window.addEventListener("resize",w),()=>{window.removeEventListener("scroll",w,!0),window.removeEventListener("resize",w),j.current&&(cancelAnimationFrame(j.current),j.current=0)}):void g(null),[m,y,w]);let N=(0,n.useCallback)(()=>x(!1),[]);(0,n.useEffect)(()=>{if(!m)return;let e=e=>{"Escape"===e.key&&(e.preventDefault(),N())},t=e=>{let t=e.target;v.current?.contains(t)||b.current?.contains(t)||N()};return document.addEventListener("keydown",e),document.addEventListener("mousedown",t),()=>{document.removeEventListener("keydown",e),document.removeEventListener("mousedown",t)}},[m,N]);let k=(0,n.useMemo)(()=>{let t=p?p+"/":"";return e.filter(e=>{if(!e.startsWith(t))return!1;let r=e.slice(t.length);return r.length>0&&!r.includes("/")}).sort()},[e,p]),C=(0,n.useMemo)(()=>p?p.split("/"):[],[p]),A=e=>{if(e<0)h(""),r("");else{let t=C.slice(0,e+1).join("/");h(t),r(t)}},E=t?t.split("/").map(e=>(0,c.vr)(e)).join(" / "):"/ "+u,S=m&&f&&(0,a.createPortal)((0,s.jsxs)("div",{ref:b,className:"fixed z-50 rounded-lg border border-[var(--amber)] bg-card shadow-lg overflow-hidden flex flex-col",style:{left:f.left,width:f.width,maxHeight:200,...f.flipUp?{bottom:window.innerHeight-f.top+4}:{top:f.top+4}},children:[(0,s.jsxs)("div",{className:"flex items-center gap-0.5 px-3 py-1.5 bg-muted/30 border-b border-border overflow-x-auto text-xs shrink-0",children:[(0,s.jsxs)("button",{type:"button",onClick:()=>A(-1),className:`shrink-0 px-1.5 py-0.5 rounded transition-colors ${""===p?"text-[var(--amber)] font-medium":"text-muted-foreground hover:text-foreground"}`,children:["/ ",u]}),C.map((e,t)=>(0,s.jsxs)("span",{className:"flex items-center gap-0.5 shrink-0",children:[(0,s.jsx)(o.A,{size:10,className:"text-muted-foreground/50"}),(0,s.jsx)("button",{type:"button",onClick:()=>A(t),className:`px-1.5 py-0.5 rounded transition-colors truncate max-w-[100px] ${t===C.length-1?"text-[var(--amber)] font-medium":"text-muted-foreground hover:text-foreground"}`,children:e})]},t))]}),k.length>0?(0,s.jsx)("div",{className:"flex-1 min-h-0 overflow-y-auto",children:k.map(t=>{let n=t.split("/").pop()||t,a=e.some(e=>e.startsWith(t+"/"));return(0,s.jsxs)("button",{type:"button",onClick:()=>{h(t),r(t)},className:"w-full flex items-center gap-2 px-3 py-1.5 text-xs text-foreground hover:bg-muted/60 transition-colors",children:[(0,s.jsx)(i.A,{size:12,className:"shrink-0 text-[var(--amber)]"}),(0,s.jsx)("span",{className:"flex-1 text-left truncate",children:n}),a&&(0,s.jsx)(o.A,{size:11,className:"shrink-0 text-muted-foreground/40"})]},t)})}):(0,s.jsx)("div",{className:"px-3 py-2 text-xs text-muted-foreground/50 text-center",children:"—"}),(0,s.jsx)("button",{type:"button",onClick:N,className:"w-full py-1.5 flex items-center justify-center gap-1 text-xs font-medium text-[var(--amber)] border-t border-border hover:bg-muted/30 transition-colors shrink-0",children:(0,s.jsx)(l.A,{size:12})})]}),document.body);return(0,s.jsxs)(s.Fragment,{children:[(0,s.jsxs)("button",{ref:v,type:"button",onClick:()=>x(e=>!e),"aria-haspopup":"true","aria-expanded":m,className:`w-full flex items-center gap-2 px-3 py-2 text-sm rounded-lg border bg-background text-foreground transition-colors text-left focus-visible:ring-1 focus-visible:ring-ring outline-none ${m?"border-[var(--amber)]":"border-border hover:border-[var(--amber)]/40"}`,children:[(0,s.jsx)(i.A,{size:14,className:"shrink-0 text-[var(--amber)]"}),(0,s.jsx)("span",{className:"flex-1 truncate",children:E}),(0,s.jsx)(d.A,{size:14,className:`shrink-0 text-muted-foreground transition-transform duration-150 ${m?"rotate-180":""}`})]}),S]})}},27069:(e,t,r)=>{"use strict";r.d(t,{Z:()=>h});var s=r(44223);let n="mindos-pinned-files",a="mindos:pins-changed";function o(){try{let e=localStorage.getItem(n);return e?JSON.parse(e):[]}catch{return[]}}function i(){return c}let l=[];function d(){return l}let c=[],u=!1;function m(){u||(c=o(),u=!0)}function x(e){m();let t=t=>{t.key===n&&(c=o(),e())},r=()=>{c=o(),e()};return window.addEventListener("storage",t),window.addEventListener(a,r),()=>{window.removeEventListener("storage",t),window.removeEventListener(a,r)}}function p(e){c=e;try{localStorage.setItem(n,JSON.stringify(e))}catch{}window.dispatchEvent(new Event(a))}function h(){m();let e=(0,s.useSyncExternalStore)(x,i,d),t=(0,s.useCallback)(t=>e.includes(t),[e]),r=(0,s.useCallback)(e=>{let t=o(),r=t.indexOf(e);r>=0?t.splice(r,1):t.unshift(e),p(t)},[]);return{pinnedFiles:e,isPinned:t,togglePin:r,reorderPins:(0,s.useCallback)(e=>{p(e)},[]),removePin:(0,s.useCallback)(e=>{p(o().filter(t=>t!==e))},[])}}},32303:(e,t,r)=>{"use strict";r.r(t),r.d(t,{default:()=>b});var s=r(66839),n=r(80016),a=r(74576),o=r(1656),i=r(80712),l=r(63386),d=r(44223),c=r(76723),u=r(24336),m=r(72799),x=r(46990),p=r(79455);function h({code:e}){let[t,r]=(0,d.useState)(!1),n=(0,d.useCallback)(()=>{(0,x.l)(e).then(e=>{e&&(r(!0),setTimeout(()=>r(!1),2e3),p.oR.copy())})},[e]);return(0,s.jsx)("button",{onClick:n,className:" absolute top-2.5 right-2.5 p-1.5 rounded-md bg-muted hover:bg-accent text-muted-foreground hover:text-foreground transition-colors duration-100 opacity-60 group-hover:opacity-100 ",title:"Copy code",children:t?(0,s.jsx)(c.A,{size:13}):(0,s.jsx)(u.A,{size:13})})}function f(e){let{node:t,inline:r,ordered:s,depth:n,isHeader:a,...o}=e;return o}function g(e){let t=({children:t,...r})=>(0,s.jsx)(e,{...f(r),suppressHydrationWarning:!0,children:t});return t.displayName=e,t}let v={h1:g("h1"),h2:g("h2"),h3:g("h3"),h4:g("h4"),h5:g("h5"),h6:g("h6"),code:({children:e,node:t,...r})=>(0,s.jsx)("code",{...f(r),suppressHydrationWarning:!0,children:e}),pre({children:e,node:t,...r}){let n="";return e&&"object"==typeof e&&"props"in e&&(n=function e(t){return"string"==typeof t?t:Array.isArray(t)?t.map(e).join(""):t&&"object"==typeof t&&"props"in t?e(t.props?.children):""}(e.props?.children)),(0,s.jsxs)("div",{className:"relative group",children:[(0,s.jsx)("pre",{...f(r),suppressHydrationWarning:!0,children:e}),(0,s.jsx)(h,{code:n})]})},li:({children:e,node:t,...r})=>(0,s.jsx)("li",{...f(r),suppressHydrationWarning:!0,children:e}),p:({children:e,node:t,...r})=>(0,s.jsx)("p",{...f(r),suppressHydrationWarning:!0,children:e}),span:({children:e,node:t,...r})=>(0,s.jsx)("span",{...f(r),suppressHydrationWarning:!0,children:e}),a({href:e,children:t,node:r,...n}){let a=e?.startsWith("http");return(0,s.jsx)("a",{href:e,target:a?"_blank":void 0,rel:a?"noopener noreferrer":void 0,...f(n),children:t})},img({src:e,alt:t,node:r,...n}){if(!e)return null;let a="string"==typeof e?function(e){if(/^(https?|file):\/\//.test(e))return e;if(e.startsWith("/")){let t=e.slice(1);return`/api/file/raw?path=${encodeURIComponent(t)}`}return e}(e):e;return(0,s.jsx)("img",{src:a,alt:t??"",...f(n)})}};function b({content:e,highlightLines:t,onDismissHighlight:r,emptyPlaceholder:c}){let u=t&&t.length>0,[x,p]=(0,d.useState)(!1);return((0,d.useEffect)(()=>{p(!0)},[]),!e.trim()&&c)?(0,s.jsx)("div",{className:"py-16 text-center text-sm text-muted-foreground/60",children:c}):(0,s.jsxs)("div",{children:[u&&(0,s.jsxs)("div",{className:"mb-4 flex items-center gap-2 rounded-md border px-3 py-2 text-xs animate-in fade-in-0 duration-300",style:{borderColor:"color-mix(in srgb, var(--amber) 40%, var(--border))",background:"color-mix(in srgb, var(--amber) 8%, var(--card))",color:"var(--amber)"},"data-highlight-line":!0,children:[(0,s.jsx)("span",{className:"w-1.5 h-1.5 rounded-full bg-[var(--amber)] animate-pulse shrink-0"}),(0,s.jsxs)("span",{className:"font-display font-medium flex-1",children:[t.length," line",1!==t.length?"s":""," updated by AI"]}),r&&(0,s.jsx)("button",{type:"button",onClick:r,className:"p-0.5 rounded hover:bg-[var(--amber)]/15 transition-colors shrink-0","aria-label":"Dismiss",children:(0,s.jsx)(m.A,{size:12})})]}),(0,s.jsx)("div",{className:"prose max-w-none",children:x?(0,s.jsx)(n.oz,{remarkPlugins:[a.A],rehypePlugins:[l.A,o.A,i.A],components:v,children:e}):null})]})}},46354:(e,t,r)=>{"use strict";r.d(t,{$7:()=>o,MZ:()=>c,TS:()=>l,UG:()=>a,YB:()=>d,pl:()=>i});let s=[],n=new Set;function a(){try{let e=localStorage.getItem("mindos-disabled-renderers");n=function(e){if(!e)return new Set;let t=JSON.parse(e);return Array.isArray(t)?new Set(t.filter(e=>"string"==typeof e&&e.length>0)):new Set}(e)}catch{n=new Set}}function o(e,t){let r=s.find(t=>t.id===e);if(!r?.core){t?n.delete(e):n.add(e);try{localStorage.setItem("mindos-disabled-renderers",JSON.stringify([...n]))}catch{}}}function i(e){let t=s.find(t=>t.id===e);return!!t?.core||!n.has(e)}function l(e){s.find(t=>t.id===e.id)||s.push(e)}function d(e,t,r){if(r){let e=s.find(e=>e.id===r);return e&&i(e.id)?e:void 0}return s.find(r=>i(r.id)&&r.match({filePath:e,extension:t}))}function c(){return s.filter(e=>!e.appBuiltinFeature)}},46990:(e,t,r)=>{"use strict";async function s(e){if(navigator.clipboard?.writeText)try{return await navigator.clipboard.writeText(e),!0}catch{}try{let t=document.createElement("textarea");t.value=e,t.style.position="fixed",t.style.opacity="0",document.body.appendChild(t),t.select();let r=document.execCommand("copy");return document.body.removeChild(t),r}catch{return!1}}r.d(t,{l:()=>s})},48107:(e,t,r)=>{"use strict";function s(e,t){let r=e.split("\n"),s=t.split("\n"),n=r.length,a=s.length,o=Array.from({length:n+1},()=>Array(a+1).fill(0));for(let e=n-1;e>=0;e--)for(let t=a-1;t>=0;t--)o[e][t]=r[e]===s[t]?1+o[e+1][t+1]:Math.max(o[e+1][t],o[e][t+1]);let i=[],l=0,d=0;for(;l<n||d<a;){if(l<n&&d<a&&r[l]===s[d]){i.push({type:"equal",text:r[l]}),l+=1,d+=1;continue}if(d<a&&(l>=n||o[l][d+1]>=o[l+1][d])){i.push({type:"insert",text:s[d]}),d+=1;continue}i.push({type:"delete",text:r[l]}),l+=1}return i}function n(e,t=2){let r=new Set;e.forEach((s,n)=>{if("equal"!==s.type)for(let s=Math.max(0,n-t);s<=Math.min(e.length-1,n+t);s++)r.add(s)});let s=[],a=-1;for(let t=0;t<e.length;t++){if(r.has(t)){-1!==a&&(s.push({type:"gap",count:t-a}),a=-1),s.push(e[t]);continue}-1===a&&(a=t)}return -1!==a&&s.push({type:"gap",count:e.length-a}),s}r.d(t,{S:()=>n,m:()=>s})},55873:(e,t,r)=>{"use strict";r.d(t,{Y:()=>n});var s=r(65799);let n=(0,s.createServerReference)("406b0da1a7ae3983e1a8c2dc9e891fd5903b19b18f",s.callServer,void 0,s.findSourceMapURL,"undoDeleteAction")},62329:(e,t,r)=>{"use strict";r.d(t,{A:()=>n,C:()=>s});let s=new Set(["INSTRUCTION.md","README.md","CONFIG.json","CHANGELOG.md"]),n=new Set(["TODO.md"])},65264:(e,t,r)=>{"use strict";r.d(t,{h:()=>s,n:()=>n});class s extends Error{constructor(e,t,r){super(e),this.name="ApiError",this.status=t,this.code=r}}async function n(e,t={}){let r,a,o,{timeout:i=3e4,signal:l,...d}=t;if((i>0||l)&&(r=new AbortController),i>0&&r&&(a=setTimeout(()=>{r.abort(Error(`Request timed out after ${Math.round(i/1e3)}s`))},i)),l&&r)if(l.aborted)r.abort();else{let e=()=>r?.abort();l.addEventListener("abort",e,{once:!0}),o=()=>{l.removeEventListener("abort",e)}}let c=r?.signal??l;try{let t=await fetch(e,{...d,signal:c});if(!t.ok){let e,r=`Request failed (${t.status})`;try{let s=await t.json();s?.error?.code&&s?.error?.message?(r=s.error.message,e=s.error.code):s?.error&&(r="string"==typeof s.error?s.error:s.error.message??r)}catch{}throw new s(r,t.status,e)}return await t.json()}finally{a&&clearTimeout(a),o&&o()}}},72730:(e,t,r)=>{"use strict";r.d(t,{A:()=>h});var s=r(66839),n=r(18016),a=r.n(n),o=r(11235),i=r(18659),l=r(30401),d=r(61017),c=r(747),u=r(98327),m=r(2073);let x={".mindos/change-log.json":{icon:(0,s.jsx)(o.A,{size:13,className:"text-[var(--amber)] shrink-0"}),getLabel:e=>e.changes.title}};function p({name:e}){let t=e.includes(".")?e.slice(e.lastIndexOf(".")).toLowerCase():"";return".csv"===t?(0,s.jsx)(i.A,{size:13,className:"text-success shrink-0"}):t?(0,s.jsx)(l.A,{size:13,className:"text-muted-foreground shrink-0"}):(0,s.jsx)(d.A,{size:13,className:"text-yellow-400 shrink-0"})}function h({filePath:e}){let{t}=(0,m.Y)(),r=x[e];if(r)return(0,s.jsxs)("nav",{className:"flex min-w-0 items-center gap-1 text-xs text-muted-foreground flex-nowrap overflow-hidden",children:[(0,s.jsx)(a(),{href:"/",className:"inline-flex items-center justify-center h-7 w-7 rounded-md hover:bg-muted/50 hover:text-foreground transition-colors shrink-0",title:"Home",children:(0,s.jsx)(c.A,{size:14})}),(0,s.jsx)(u.A,{size:12,className:"text-muted-foreground/50 shrink-0"}),(0,s.jsxs)("span",{className:"min-w-0 flex items-center gap-1.5 px-1.5 py-1 text-foreground font-medium",children:[r.icon,(0,s.jsx)("span",{className:"block truncate max-w-[180px] sm:max-w-[260px] md:max-w-[360px]",children:r.getLabel(t)})]})]});let n=e.split("/");return(0,s.jsxs)("nav",{className:"flex min-w-0 items-center gap-1 text-xs text-muted-foreground flex-nowrap overflow-hidden",children:[(0,s.jsx)(a(),{href:"/",className:"inline-flex items-center justify-center h-7 w-7 rounded-md hover:bg-muted/50 hover:text-foreground transition-colors shrink-0",title:"Home",children:(0,s.jsx)(c.A,{size:14})}),n.map((e,t)=>{let r=t===n.length-1,o="/view/"+n.slice(0,t+1).map(encodeURIComponent).join("/");return(0,s.jsxs)("span",{className:"flex items-center gap-1 min-w-0",children:[(0,s.jsx)(u.A,{size:12,className:"text-muted-foreground/50 shrink-0"}),r?(0,s.jsxs)("span",{className:"min-w-0 flex items-center gap-1.5 px-1.5 py-1 text-foreground font-medium",children:[(0,s.jsx)(p,{name:e}),(0,s.jsx)("span",{className:"block truncate max-w-[180px] sm:max-w-[260px] md:max-w-[360px]",suppressHydrationWarning:!0,children:e})]}):(0,s.jsx)(a(),{href:o,className:"block px-1.5 py-1 rounded-md hover:bg-muted/50 hover:text-foreground transition-colors truncate max-w-[120px] sm:max-w-[160px] md:max-w-[200px]",title:e,children:(0,s.jsx)("span",{suppressHydrationWarning:!0,children:e})})]},t)})]})}},74197:(e,t,r)=>{"use strict";r.d(t,{A:()=>s});let s=(0,r(73015).A)("archive",[["rect",{width:"20",height:"5",x:"2",y:"3",rx:"1",key:"1wp1u1"}],["path",{d:"M4 8v11a2 2 0 0 0 2 2h12a2 2 0 0 0 2-2V8",key:"1s80jp"}],["path",{d:"M10 12h4",key:"a56b0p"}]])},77797:(e,t,r)=>{"use strict";r.d(t,{default:()=>I});var s=r(66839),n=r(44223),a=r(18016),o=r.n(a),i=r(56261),l=r(61017),d=r(18659),c=r(30401),u=r(27636),m=r(88283),x=r(44361),p=r(5038),h=r(19378),f=r(76723),g=r(85764),v=r(24336),b=r(86386),y=r(67294);let j=(0,r(73015).A)("list",[["path",{d:"M3 5h.01",key:"18ugdj"}],["path",{d:"M3 12h.01",key:"nlz23k"}],["path",{d:"M3 19h.01",key:"noohij"}],["path",{d:"M8 5h13",key:"1pao27"}],["path",{d:"M8 12h13",key:"1za7za"}],["path",{d:"M8 19h13",key:"m83p4d"}]]);var w=r(72730),N=r(58221),k=r(62329),C=r(2073);async function A(e){try{await navigator.clipboard.writeText(e)}catch{}}function E({node:e}){return"directory"===e.type?(0,s.jsx)(l.A,{size:16,className:"text-yellow-400 shrink-0"}):".csv"===e.extension?(0,s.jsx)(d.A,{size:16,className:"text-success shrink-0"}):(0,s.jsx)(c.A,{size:16,className:"text-muted-foreground shrink-0"})}function S({node:e}){return"directory"===e.type?(0,s.jsx)(u.A,{size:28,className:"text-yellow-400"}):".csv"===e.extension?(0,s.jsx)(d.A,{size:28,className:"text-success"}):(0,s.jsx)(c.A,{size:28,className:"text-muted-foreground"})}let z="mindos-dir-view",T="show-hidden-files";function R(e){let t=t=>{t.key===T&&e()},r=()=>e();return window.addEventListener("storage",t),window.addEventListener("mindos:hidden-files-changed",r),()=>{window.removeEventListener("storage",t),window.removeEventListener("mindos:hidden-files-changed",r)}}function L(){return"true"===localStorage.getItem(T)}function M({icon:e,title:t,lines:r,viewAllHref:n,viewAllLabel:a,trailing:i,footer:l}){return 0===r.length?null:(0,s.jsxs)("div",{className:"bg-muted/30 border border-border/40 rounded-lg px-4 py-3",children:[(0,s.jsxs)("div",{className:"flex items-center gap-1.5 mb-2",children:[e,(0,s.jsx)("span",{className:"text-sm font-medium text-muted-foreground flex-1",children:t}),i]}),(0,s.jsx)("div",{className:"space-y-1",children:r.map((e,t)=>(0,s.jsxs)("p",{className:"text-sm text-muted-foreground/80 leading-relaxed",suppressHydrationWarning:!0,children:["\xb7 ",e]},t))}),(0,s.jsxs)("div",{className:"flex items-center justify-between mt-2",children:[l||(0,s.jsx)("span",{}),(0,s.jsx)(o(),{href:n,className:"text-xs hover:underline transition-colors text-[var(--amber)]",children:a})]})]})}function P({dirPath:e}){let{t}=(0,C.Y)(),r=(0,i.useRouter)(),[a,l]=(0,n.useState)("idle"),[d,c]=(0,n.useState)(""),u=function(e){let[t,r]=(0,n.useState)(null);return(0,n.useEffect)(()=>{fetch(`/api/space-overview?space=${encodeURIComponent(e)}`).then(e=>e.json()).then(e=>r(e.fileCount??0)).catch(()=>r(null))},[e]),t}(e),f=async()=>{l("loading"),c("");try{let t=await fetch("/api/space-overview",{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({space:e})}),s=await t.json();if(!t.ok){c(s.error||"Unknown error"),l("error");return}r.refresh()}catch(e){c(e instanceof Error?e.message:"Network error"),l("error")}};return(0,s.jsxs)("div",{className:"bg-muted/30 border border-border/40 rounded-lg px-4 py-4",children:[(0,s.jsxs)("div",{className:"flex items-center gap-1.5 mb-3",children:[(0,s.jsx)(m.A,{size:14,className:"text-muted-foreground shrink-0"}),(0,s.jsx)("span",{className:"text-sm font-medium text-muted-foreground",children:t.fileTree.about})]}),"loading"===a?(0,s.jsxs)("div",{className:"flex flex-col items-center gap-2 py-3",children:[(0,s.jsx)(x.A,{size:20,className:"text-[var(--amber)] animate-spin"}),(0,s.jsx)("p",{className:"text-sm text-muted-foreground",children:t.dirView.overviewGenerating}),null!=u&&u>0&&(0,s.jsx)("p",{className:"text-xs text-muted-foreground/60",children:t.dirView.overviewScanningFiles(u)})]}):"error"===a?(0,s.jsxs)("div",{className:"flex flex-col items-center gap-2 py-3",children:[(0,s.jsx)(p.A,{size:18,className:"text-error"}),(0,s.jsx)("p",{className:"text-sm text-muted-foreground",children:t.dirView.overviewError}),(0,s.jsx)("p",{className:"text-xs text-muted-foreground/60 text-center max-w-[280px]",children:d}),(0,s.jsxs)("div",{className:"flex items-center gap-3 mt-1",children:[(0,s.jsx)("button",{onClick:f,className:"text-xs text-[var(--amber)] hover:underline",children:t.dirView.overviewRetry}),(0,s.jsx)(o(),{href:"/settings",className:"text-xs text-muted-foreground hover:text-foreground",children:t.dirView.uninitSettings})]})]}):(0,s.jsxs)("div",{className:"flex flex-col items-center gap-2.5 py-2",children:[null!=u&&u>0?(0,s.jsxs)(s.Fragment,{children:[(0,s.jsx)("p",{className:"text-sm text-muted-foreground text-center",children:t.dirView.overviewCtaHint(u)}),(0,s.jsxs)("button",{onClick:f,className:"inline-flex items-center gap-1.5 px-4 py-2 text-sm rounded-lg transition-colors bg-[var(--amber)] text-[var(--amber-foreground)] hover:opacity-90",children:[(0,s.jsx)(h.A,{size:14}),t.dirView.overviewCta]})]}):0===u?(0,s.jsx)("p",{className:"text-sm text-muted-foreground",children:t.dirView.overviewNoFiles}):null,(0,s.jsx)(o(),{href:`/view/${(0,N.O0)(`${e}/README.md`)}`,className:"text-xs text-muted-foreground hover:text-foreground transition-colors",children:t.dirView.overviewOrEdit})]})]})}function F({dirPath:e,preview:t}){let{t:r}=(0,C.Y)(),a=(0,i.useRouter)(),[o,l]=(0,n.useState)("idle"),[d,c]=(0,n.useState)(""),[u,p]=(0,n.useState)(!1),[g,v]=(0,n.useState)(""),b=(0,n.useRef)(null);(0,n.useEffect)(()=>{if(!u)return;let e=e=>{b.current&&!b.current.contains(e.target)&&p(!1)};return document.addEventListener("mousedown",e),()=>document.removeEventListener("mousedown",e)},[u]);let y=async()=>{p(!1),l("loading"),c(""),v("");try{let t=await fetch("/api/space-overview",{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({space:e})}),s=await t.json().catch(()=>({}));if(!t.ok){c(s.error||"Unknown error"),l("error");return}s.unchanged?(l("unchanged"),setTimeout(()=>l("idle"),3e3)):(s.stats?.mode==="incremental"&&(v(r.dirView.overviewIncremental(s.stats.scannedFiles)),setTimeout(()=>v(""),4e3)),a.refresh(),l("idle"))}catch(e){c(e instanceof Error?e.message:"Network error"),l("error")}};if("loading"===o)return(0,s.jsxs)("div",{className:"bg-muted/30 border border-border/40 rounded-lg px-4 py-3",children:[(0,s.jsxs)("div",{className:"flex items-center gap-1.5 mb-2",children:[(0,s.jsx)(m.A,{size:14,className:"text-muted-foreground shrink-0"}),(0,s.jsx)("span",{className:"text-sm font-medium text-muted-foreground flex-1",children:r.fileTree.about})]}),(0,s.jsxs)("div",{className:"flex items-center gap-2 py-2",children:[(0,s.jsx)(x.A,{size:14,className:"text-[var(--amber)] animate-spin"}),(0,s.jsx)("span",{className:"text-sm text-muted-foreground",children:r.dirView.overviewGenerating})]})]});if("error"===o)return(0,s.jsxs)("div",{className:"bg-muted/30 border border-border/40 rounded-lg px-4 py-3",children:[(0,s.jsxs)("div",{className:"flex items-center gap-1.5 mb-2",children:[(0,s.jsx)(m.A,{size:14,className:"text-muted-foreground shrink-0"}),(0,s.jsx)("span",{className:"text-sm font-medium text-muted-foreground flex-1",children:r.fileTree.about})]}),(0,s.jsxs)("div",{className:"flex flex-col items-center gap-1.5 py-2",children:[(0,s.jsx)("p",{className:"text-xs text-error",children:r.dirView.overviewError}),d&&(0,s.jsx)("p",{className:"text-xs text-muted-foreground/60 text-center",children:d}),(0,s.jsx)("button",{onClick:y,className:"text-xs text-[var(--amber)] hover:underline mt-1",children:r.dirView.overviewRetry})]})]});let j=(0,s.jsxs)("div",{className:"relative",ref:b,children:[(0,s.jsxs)("button",{onClick:()=>p(!0),className:"inline-flex items-center gap-1 px-1.5 py-0.5 rounded text-xs text-muted-foreground/60 hover:text-[var(--amber)] hover:bg-[var(--amber)]/10 transition-colors",title:r.dirView.overviewRegenerate,children:[(0,s.jsx)(h.A,{size:13}),(0,s.jsx)("span",{className:"hidden sm:inline",children:r.dirView.overviewRegenerateLabel})]}),u&&(0,s.jsxs)("div",{className:"absolute right-0 top-full mt-1.5 z-30 w-[260px] bg-card border border-border rounded-lg shadow-lg p-3",children:[(0,s.jsx)("p",{className:"text-xs text-muted-foreground leading-relaxed mb-3",children:r.dirView.overviewRegenerateConfirm}),(0,s.jsxs)("div",{className:"flex items-center justify-end gap-2",children:[(0,s.jsx)("button",{onClick:()=>p(!1),className:"px-2.5 py-1 text-xs rounded-md text-muted-foreground hover:bg-muted transition-colors",children:r.dirView.overviewRegenerateCancel}),(0,s.jsxs)("button",{onClick:y,className:"inline-flex items-center gap-1 px-2.5 py-1 text-xs rounded-md bg-[var(--amber)] text-[var(--amber-foreground)] hover:opacity-90 transition-colors",children:[(0,s.jsx)(h.A,{size:11}),r.dirView.overviewRegenerateStart]})]})]})]}),w=(0,s.jsx)("span",{className:"text-2xs text-muted-foreground/50",suppressHydrationWarning:!0,children:"unchanged"===o?(0,s.jsxs)("span",{className:"inline-flex items-center gap-1 text-success",children:[(0,s.jsx)(f.A,{size:10}),r.dirView.overviewUnchanged]}):g?(0,s.jsxs)("span",{className:"inline-flex items-center gap-1 text-success",children:[(0,s.jsx)(f.A,{size:10}),g]}):t.lastCompiled?r.dirView.overviewLastCompiled((0,N.KW)(new Date(t.lastCompiled).getTime(),r.home.relativeTime)):null});return(0,s.jsx)(M,{icon:(0,s.jsx)(m.A,{size:14,className:"text-muted-foreground shrink-0"}),title:r.fileTree.about,lines:t.readmeLines,viewAllHref:`/view/${(0,N.O0)(`${e}/README.md`)}`,viewAllLabel:r.fileTree.viewAll,trailing:j,footer:w})}function $({preview:e,dirPath:t}){let{t:r}=(0,C.Y)(),n=e.instructionLines.length>0,a=!(e.readmeLines.length>0)||e.readmeIsTemplate||e.isTemplate;return(0,s.jsxs)("div",{className:"grid grid-cols-1 sm:grid-cols-2 gap-3 mb-6",children:[n&&(0,s.jsx)(M,{icon:(0,s.jsx)(g.A,{size:14,className:"text-muted-foreground shrink-0"}),title:r.fileTree.rules,lines:e.instructionLines,viewAllHref:`/view/${(0,N.O0)(`${t}/INSTRUCTION.md`)}`,viewAllLabel:r.fileTree.viewAll}),a?(0,s.jsx)(P,{dirPath:t}):(0,s.jsx)(F,{dirPath:t,preview:e})]})}function D({x:e,y:t,path:r,label:a,onClose:o}){let i=(0,n.useRef)(null),{t:l}=(0,C.Y)();(0,n.useEffect)(()=>{let e=e=>{i.current&&!i.current.contains(e.target)&&o()},t=e=>{"Escape"===e.key&&o()};return document.addEventListener("mousedown",e),document.addEventListener("keydown",t),()=>{document.removeEventListener("mousedown",e),document.removeEventListener("keydown",t)}},[o]);let d=Math.min(e,window.innerWidth-200),c=Math.min(t,window.innerHeight-60);return(0,s.jsx)("div",{ref:i,className:"fixed z-50 min-w-[160px] bg-card border border-border rounded-lg shadow-lg py-1",style:{top:c,left:d},children:(0,s.jsxs)("button",{className:"w-full flex items-center gap-2 px-3 py-1.5 text-sm text-foreground hover:bg-muted transition-colors text-left",onClick:()=>{A(r),o()},children:[(0,s.jsx)(v.A,{size:14,className:"shrink-0"})," ",l.fileTree.copyPath]})})}function I({dirPath:e,entries:t,spacePreview:r}){let[a,i]=[(0,n.useSyncExternalStore)(e=>{let t=()=>e();return window.addEventListener("mindos-dir-view-change",t),()=>window.removeEventListener("mindos-dir-view-change",t)},()=>{let e=localStorage.getItem(z);return"list"===e||"grid"===e?e:"grid"},()=>"grid"),e=>{localStorage.setItem(z,e),window.dispatchEvent(new Event("mindos-dir-view-change"))}],l=(0,n.useSyncExternalStore)(R,L,()=>!1),{t:d}=(0,C.Y)(),c=e=>(0,N.KW)(e,d.home.relativeTime),[m,x]=(0,n.useState)(null),p=(0,n.useCallback)((e,t)=>{e.preventDefault(),e.stopPropagation(),x({x:e.clientX,y:e.clientY,path:t})},[]),h=(0,n.useMemo)(()=>l?t:t.filter(e=>"file"!==e.type||!k.C.has(e.name)),[t,l]),f=(0,n.useMemo)(()=>{let e=new Map;for(let t of h)e.set(t.path,function e(t){return"file"===t.type?1:(t.children||[]).reduce((t,r)=>t+e(r),0)}(t));return e},[h]);return(0,s.jsxs)("div",{className:"flex flex-col min-h-screen",children:[(0,s.jsx)("div",{className:"sticky top-[52px] md:top-0 z-20 border-b border-border px-4 md:px-6 h-[46px] flex items-center bg-background",children:(0,s.jsxs)("div",{className:"w-full flex items-center justify-between gap-2",children:[(0,s.jsx)("div",{className:"min-w-0 flex-1",children:(0,s.jsx)(w.A,{filePath:e})}),(0,s.jsxs)("div",{className:"flex items-center gap-2 shrink-0",children:[(0,s.jsxs)(o(),{href:`/view/${(0,N.O0)(e?`${e}/Untitled.md`:"Untitled.md")}`,className:"flex items-center gap-1.5 px-2.5 py-1.5 text-xs rounded-lg transition-colors text-muted-foreground hover:text-foreground hover:bg-muted",children:[(0,s.jsx)(b.A,{size:13}),(0,s.jsx)("span",{className:"hidden sm:inline",children:d.dirView.newFile})]}),(0,s.jsxs)("div",{className:"flex items-center gap-1 p-1 bg-muted rounded-lg",children:[(0,s.jsx)("button",{onClick:()=>i("grid"),className:`p-1.5 rounded transition-colors ${"grid"===a?"bg-card text-foreground shadow-sm":"text-muted-foreground hover:text-foreground"}`,title:d.dirView.gridView,children:(0,s.jsx)(y.A,{size:14})}),(0,s.jsx)("button",{onClick:()=>i("list"),className:`p-1.5 rounded transition-colors ${"list"===a?"bg-card text-foreground shadow-sm":"text-muted-foreground hover:text-foreground"}`,title:d.dirView.listView,children:(0,s.jsx)(j,{size:14})})]})]})]})}),(0,s.jsx)("div",{className:"flex-1 px-4 md:px-6 py-6",children:(0,s.jsxs)("div",{className:"max-w-[860px] mx-auto",children:[r&&(0,s.jsx)($,{preview:r,dirPath:e}),0===h.length?(0,s.jsx)("p",{className:"text-muted-foreground text-sm",children:d.dirView.emptyFolder}):"grid"===a?(0,s.jsx)("div",{className:"grid grid-cols-2 sm:grid-cols-3 md:grid-cols-4 xl:grid-cols-5 gap-3",children:h.map(e=>(0,s.jsxs)(o(),{href:`/view/${(0,N.O0)(e.path)}`,onContextMenu:t=>p(t,e.path),className:"directory"===e.type?"flex flex-col items-center gap-1.5 p-3 rounded-xl border border-border bg-card hover:bg-accent hover:border-border/80 transition-all duration-100 text-center":"flex flex-col items-center gap-2 p-4 rounded-xl border border-border bg-card hover:bg-accent hover:border-border/80 transition-all duration-100 text-center",children:["directory"===e.type?(0,s.jsx)(u.A,{size:22,className:"text-yellow-400"}):(0,s.jsx)(S,{node:e}),(0,s.jsx)("span",{className:"text-xs text-foreground leading-snug line-clamp-2 w-full",title:e.name,suppressHydrationWarning:!0,children:e.name}),"directory"===e.type&&(0,s.jsx)("span",{className:"text-2xs text-muted-foreground",children:d.dirView.fileCount(f.get(e.path)??0)}),"file"===e.type&&e.mtime&&(0,s.jsx)("span",{className:"text-2xs text-muted-foreground",suppressHydrationWarning:!0,children:c(e.mtime)})]},e.path))}):(0,s.jsx)("div",{className:"flex flex-col divide-y divide-border border border-border rounded-xl overflow-hidden",children:h.map(e=>(0,s.jsxs)(o(),{href:`/view/${(0,N.O0)(e.path)}`,onContextMenu:t=>p(t,e.path),className:"flex items-center gap-3 px-4 py-3 bg-card hover:bg-accent transition-colors duration-100",children:[(0,s.jsx)(E,{node:e}),(0,s.jsx)("span",{className:"flex-1 text-sm text-foreground truncate",title:e.name,suppressHydrationWarning:!0,children:e.name}),"directory"===e.type?(0,s.jsx)("span",{className:"text-xs text-muted-foreground shrink-0",children:d.dirView.fileCount(f.get(e.path)??0)}):e.mtime?(0,s.jsx)("span",{className:"text-xs text-muted-foreground shrink-0 tabular-nums",suppressHydrationWarning:!0,children:c(e.mtime)}):null]},e.path))})]})}),m&&(0,s.jsx)(D,{x:m.x,y:m.y,path:m.path,label:d.fileTree.copyPath,onClose:()=>x(null)})]})}},80772:(e,t,r)=>{"use strict";r.d(t,{A:()=>s});let s=(0,r(73015).A)("save",[["path",{d:"M15.2 3a2 2 0 0 1 1.4.6l3.8 3.8a2 2 0 0 1 .6 1.4V19a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2V5a2 2 0 0 1 2-2z",key:"1c8476"}],["path",{d:"M17 21v-7a1 1 0 0 0-1-1H8a1 1 0 0 0-1 1v7",key:"1ydtos"}],["path",{d:"M7 3v4a1 1 0 0 0 1 1h7",key:"t51u73"}]])},83401:(e,t,r)=>{Promise.resolve().then(r.bind(r,15806)),Promise.resolve().then(r.bind(r,77797)),Promise.resolve().then(r.bind(r,86272))},84242:(e,t,r)=>{"use strict";r.d(t,{e:()=>o});var s=r(59029);let n=[{id:"system",label:"System",description:"Match app colors"},{id:"crepe",label:"Crepe",description:"Warm parchment"},{id:"crepe-dark",label:"Crepe Dark",description:"Warm dark"},{id:"nord",label:"Nord",description:"Cool blue"},{id:"nord-dark",label:"Nord Dark",description:"Arctic night"},{id:"frame",label:"Frame",description:"Clean minimal"},{id:"frame-dark",label:"Frame Dark",description:"Dark minimal"}],a="editor-theme",o=(0,s.v)(e=>{let t;return{theme:(t=localStorage.getItem(a),n.some(e=>e.id===t)?t:"system"),setTheme:t=>{localStorage.setItem(a,t),e({theme:t})}}})},84387:(e,t,r)=>{"use strict";r.d(t,{f:()=>n});var s=r(65799);let n=(0,s.createServerReference)("605841f7673f2503c0372051b198b5f4d1ec737be1",s.callServer,void 0,s.findSourceMapURL,"renameFileAction")},86386:(e,t,r)=>{"use strict";r.d(t,{A:()=>s});let s=(0,r(73015).A)("file-plus",[["path",{d:"M6 22a2 2 0 0 1-2-2V4a2 2 0 0 1 2-2h8a2.4 2.4 0 0 1 1.704.706l3.588 3.588A2.4 2.4 0 0 1 20 8v12a2 2 0 0 1-2 2z",key:"1oefj6"}],["path",{d:"M14 2v5a1 1 0 0 0 1 1h5",key:"wfsgrz"}],["path",{d:"M9 15h6",key:"cctwl0"}],["path",{d:"M12 18v-6",key:"17g6i2"}]])},91216:(e,t,r)=>{"use strict";r.d(t,{Un:()=>a});var s=r(44223);let n="mindos-renderer-state-change";function a(e,t,r){let a=`mindos-renderer:${e}:${t}`,o=(0,s.useRef)({key:a,raw:null,parsed:r});return[(0,s.useSyncExternalStore)(e=>{let t=()=>e();return window.addEventListener("storage",t),window.addEventListener(n,t),()=>{window.removeEventListener("storage",t),window.removeEventListener(n,t)}},()=>{try{o.current.key!==a&&(o.current={key:a,raw:null,parsed:r});let e=localStorage.getItem(a);if(e===o.current.raw)return o.current.parsed;if(null===e)return o.current={key:a,raw:null,parsed:r},r;let t=JSON.parse(e);return o.current={key:a,raw:e,parsed:t},t}catch{return r}},()=>r),(0,s.useCallback)(e=>{try{let t=(()=>{try{let e=localStorage.getItem(a);return null!==e?JSON.parse(e):r}catch{return r}})(),s="function"==typeof e?e(t):e,n=JSON.stringify(s);localStorage.setItem(a,n),o.current={key:a,raw:n,parsed:s}}catch{}window.dispatchEvent(new Event(n))},[a,r])]}},94537:(e,t,r)=>{"use strict";r.d(t,{a:()=>n});let s=/!\[[^\]]*\]\(https?:\/\/cdn\.jsdelivr\.net\/gh\/twitter\/twemoji@[^/]+\/assets\/svg\/([a-f0-9-]+)\.svg\s*(?:"[^"]*")?\)/g;function n(e){return e.replace(s,(e,t)=>{try{return String.fromCodePoint(...t.split("-").map(e=>parseInt(e,16)))}catch{return e}})}}},e=>{e.O(0,[3940,2130,8225,4937,206,2288,2073,5152,6272,5018,2330,7358],()=>e(e.s=83401)),_N_E=e.O()}]);
|