@geminilight/mindos-windows-arm64 1.0.5 → 1.0.7
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 +26 -26
- package/_standalone/__next/build-manifest.json +4 -4
- package/_standalone/__next/prerender-manifest.json +3 -3
- package/_standalone/__next/react-loadable-manifest.json +4 -4
- package/_standalone/__next/required-server-files.json +4 -4
- package/_standalone/__next/server/app/.well-known/agent-card.json/route.js +1 -1
- 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.js +3 -3
- 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 +3 -3
- package/_standalone/__next/server/app/_global-error.segments/_full.segment.rsc +3 -3
- 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 +2 -2
- package/_standalone/__next/server/app/_global-error.segments/_tree.segment.rsc +1 -1
- package/_standalone/__next/server/app/_not-found/page.js +2 -2
- 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 +2 -2
- 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 +2 -2
- 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 +2 -2
- 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.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.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.js +2 -2
- 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 +2 -2
- 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 +2 -2
- 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 +2 -2
- 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 +2 -2
- 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 +2 -2
- 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 +2 -2
- 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 +4 -4
- 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 +2 -2
- 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 +3 -3
- 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 +2 -2
- 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/icon.svg/route.js +1 -1
- package/_standalone/__next/server/app/inbox/history/page.js +2 -2
- 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 +2 -2
- 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 +2 -2
- 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 +2 -2
- 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 +2 -2
- 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 +3 -3
- 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 +2 -2
- 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 +26 -26
- package/_standalone/__next/server/chunks/{6602.js → 1834.js} +32 -32
- package/_standalone/__next/server/chunks/1976.js +3 -3
- package/_standalone/__next/server/chunks/3466.js +1 -1
- package/_standalone/__next/server/chunks/3566.js +1 -1
- package/_standalone/__next/server/chunks/3727.js +1 -1
- package/_standalone/__next/server/chunks/4793.js +1 -1
- package/_standalone/__next/server/chunks/6377.js +3 -3
- 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/chunks/9350.js +2 -2
- package/_standalone/__next/server/chunks/{5225.js → 9773.js} +4 -4
- 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/middleware.js +2 -2
- 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/1957-723ac4eb5200214c.js} +3 -3
- package/_standalone/__next/static/chunks/{2280-2277c97eae59ded9.js → 2737-f4970f0684c334d6.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/{1998.c8edc5601fa7362f.js → 6728.e1841cddb63308b0.js} +1 -1
- package/_standalone/__next/static/chunks/{6947.51e37852cef26113.js → 6947.fb89346ef2f6be17.js} +1 -1
- package/_standalone/__next/static/chunks/app/_not-found/{page-ec6fa498a07e6fd9.js → page-eaedcec1b693c03c.js} +1 -1
- package/{static-web/_next/static/chunks/app/agents/[agentKey]/page-44c493b744d18249.js → _standalone/__next/static/chunks/app/agents/[agentKey]/page-1dac12945bfbaf35.js} +1 -1
- package/{static-web/_next/static/chunks/app/agents/page-6591b482a193e657.js → _standalone/__next/static/chunks/app/agents/page-7ff2e39ca12eb20a.js} +1 -1
- package/_standalone/__next/static/chunks/app/capture/history/page-51db96203209a441.js +1 -0
- package/_standalone/__next/static/chunks/app/capture/page-3bf09d1f5e1c379c.js +1 -0
- package/_standalone/__next/static/chunks/app/changelog/page-01dc22b6d2230c7f.js +1 -0
- package/_standalone/__next/static/chunks/app/changes/page-c9f8d5632a001849.js +1 -0
- package/{static-web/_next/static/chunks/app/echo/[segment]/page-c5ea40ac04f2dc29.js → _standalone/__next/static/chunks/app/echo/[segment]/page-44b6b8e7fd0bbe31.js} +2 -2
- package/_standalone/__next/static/chunks/app/echo/page-c9f8d5632a001849.js +1 -0
- package/_standalone/__next/static/chunks/app/{error-c46d1b03d5e3289c.js → error-1cfcd6abd93c3837.js} +1 -1
- package/_standalone/__next/static/chunks/app/explore/{page-5d6dd4af8d1bb468.js → page-117fcf54b8b9765c.js} +1 -1
- package/_standalone/__next/static/chunks/app/global-error-11b333dcf222bc09.js +1 -0
- package/{static-web/_next/static/chunks/app/help/page-3f0a1a8e51249cb2.js → _standalone/__next/static/chunks/app/help/page-6efb8aa3a3c169fa.js} +1 -1
- package/_standalone/__next/static/chunks/app/inbox/history/page-913645bbd6161116.js +1 -0
- package/_standalone/__next/static/chunks/app/{layout-7aa371fe2615cd3e.js → layout-24a31ea28c556e82.js} +38 -38
- package/_standalone/__next/static/chunks/app/login/page-7f9aca3d51266bec.js +1 -0
- package/{static-web/_next/static/chunks/app/page-5c9489e28657376e.js → _standalone/__next/static/chunks/app/page-35662964020c0ea9.js} +1 -1
- package/_standalone/__next/static/chunks/app/settings/{page-4b75d6c17f42d565.js → page-f816f13a34613538.js} +1 -1
- package/{static-web/_next/static/chunks/app/setup/page-f5de08d0d588c778.js → _standalone/__next/static/chunks/app/setup/page-a1027871dc33ffbd.js} +1 -1
- package/_standalone/__next/static/chunks/app/todo/page-54c3ec77f662ff73.js +1 -0
- package/_standalone/__next/static/chunks/app/trash/page-50622e3df2047204.js +1 -0
- package/_standalone/__next/static/chunks/app/view/[...path]/{error-f73092e638a4e999.js → error-c9a3f6de7c963c74.js} +1 -1
- package/_standalone/__next/static/chunks/app/view/[...path]/{not-found-80e5f4054819b372.js → not-found-5a4f2b4fbe28d617.js} +1 -1
- package/{static-web/_next/static/chunks/app/view/[...path]/page-ffe3c61100e25591.js → _standalone/__next/static/chunks/app/view/[...path]/page-b10d3819827da1c2.js} +2 -2
- package/{static-web/_next/static/chunks/app/wiki/page-4c9bc816069b6f2a.js → _standalone/__next/static/chunks/app/wiki/page-7afd3b97c1ea1b8c.js} +2 -2
- package/_standalone/__next/static/chunks/{main-app-23adfdc06470abb6.js → main-app-8a6081b103b8f494.js} +1 -1
- package/_standalone/__next/static/chunks/webpack-7d8c24c6af17dd51.js +1 -0
- package/_standalone/__node_modules/@aws-sdk/client-bedrock-runtime/node_modules/@smithy/util-utf8/node_modules/@smithy/util-buffer-from/LICENSE +201 -0
- package/_standalone/__node_modules/@aws-sdk/client-bedrock-runtime/node_modules/@smithy/util-utf8/node_modules/@smithy/util-buffer-from/dist-cjs/index.js +20 -0
- package/_standalone/__node_modules/@aws-sdk/client-bedrock-runtime/node_modules/@smithy/util-utf8/node_modules/@smithy/util-buffer-from/dist-es/index.js +14 -0
- package/_standalone/__node_modules/@aws-sdk/client-bedrock-runtime/node_modules/@smithy/util-utf8/node_modules/@smithy/util-buffer-from/node_modules/@smithy/is-array-buffer/LICENSE +201 -0
- package/_standalone/__node_modules/@aws-sdk/client-bedrock-runtime/node_modules/@smithy/util-utf8/node_modules/@smithy/util-buffer-from/node_modules/@smithy/is-array-buffer/dist-cjs/index.js +6 -0
- package/_standalone/__node_modules/@aws-sdk/client-bedrock-runtime/node_modules/@smithy/util-utf8/node_modules/@smithy/util-buffer-from/node_modules/@smithy/is-array-buffer/dist-es/index.js +2 -0
- package/_standalone/__node_modules/@aws-sdk/client-bedrock-runtime/node_modules/@smithy/util-utf8/node_modules/@smithy/util-buffer-from/node_modules/@smithy/is-array-buffer/package.json +61 -0
- package/_standalone/__node_modules/@aws-sdk/client-bedrock-runtime/node_modules/@smithy/util-utf8/node_modules/@smithy/util-buffer-from/package.json +62 -0
- package/_standalone/__node_modules/@aws-sdk/core/node_modules/@smithy/util-utf8/node_modules/@smithy/util-buffer-from/LICENSE +201 -0
- package/_standalone/__node_modules/@aws-sdk/core/node_modules/@smithy/util-utf8/node_modules/@smithy/util-buffer-from/dist-cjs/index.js +20 -0
- package/_standalone/__node_modules/@aws-sdk/core/node_modules/@smithy/util-utf8/node_modules/@smithy/util-buffer-from/dist-es/index.js +14 -0
- package/_standalone/__node_modules/@aws-sdk/core/node_modules/@smithy/util-utf8/node_modules/@smithy/util-buffer-from/node_modules/@smithy/is-array-buffer/LICENSE +201 -0
- package/_standalone/__node_modules/@aws-sdk/core/node_modules/@smithy/util-utf8/node_modules/@smithy/util-buffer-from/node_modules/@smithy/is-array-buffer/dist-cjs/index.js +6 -0
- package/_standalone/__node_modules/@aws-sdk/core/node_modules/@smithy/util-utf8/node_modules/@smithy/util-buffer-from/node_modules/@smithy/is-array-buffer/dist-es/index.js +2 -0
- package/_standalone/__node_modules/@aws-sdk/core/node_modules/@smithy/util-utf8/node_modules/@smithy/util-buffer-from/node_modules/@smithy/is-array-buffer/package.json +61 -0
- package/_standalone/__node_modules/@aws-sdk/core/node_modules/@smithy/util-utf8/node_modules/@smithy/util-buffer-from/package.json +62 -0
- package/_standalone/__node_modules/@aws-sdk/middleware-sdk-s3/node_modules/@smithy/util-utf8/node_modules/@smithy/util-buffer-from/LICENSE +201 -0
- package/_standalone/__node_modules/@aws-sdk/middleware-sdk-s3/node_modules/@smithy/util-utf8/node_modules/@smithy/util-buffer-from/dist-cjs/index.js +20 -0
- package/_standalone/__node_modules/@aws-sdk/middleware-sdk-s3/node_modules/@smithy/util-utf8/node_modules/@smithy/util-buffer-from/dist-es/index.js +14 -0
- package/_standalone/__node_modules/@aws-sdk/middleware-sdk-s3/node_modules/@smithy/util-utf8/node_modules/@smithy/util-buffer-from/node_modules/@smithy/is-array-buffer/LICENSE +201 -0
- package/_standalone/__node_modules/@aws-sdk/middleware-sdk-s3/node_modules/@smithy/util-utf8/node_modules/@smithy/util-buffer-from/node_modules/@smithy/is-array-buffer/dist-cjs/index.js +6 -0
- package/_standalone/__node_modules/@aws-sdk/middleware-sdk-s3/node_modules/@smithy/util-utf8/node_modules/@smithy/util-buffer-from/node_modules/@smithy/is-array-buffer/dist-es/index.js +2 -0
- package/_standalone/__node_modules/@aws-sdk/middleware-sdk-s3/node_modules/@smithy/util-utf8/node_modules/@smithy/util-buffer-from/node_modules/@smithy/is-array-buffer/package.json +61 -0
- package/_standalone/__node_modules/@aws-sdk/middleware-sdk-s3/node_modules/@smithy/util-utf8/node_modules/@smithy/util-buffer-from/package.json +62 -0
- package/_standalone/__node_modules/@aws-sdk/middleware-websocket/node_modules/@smithy/util-utf8/node_modules/@smithy/util-buffer-from/LICENSE +201 -0
- package/_standalone/__node_modules/@aws-sdk/middleware-websocket/node_modules/@smithy/util-utf8/node_modules/@smithy/util-buffer-from/dist-cjs/index.js +20 -0
- package/_standalone/__node_modules/@aws-sdk/middleware-websocket/node_modules/@smithy/util-utf8/node_modules/@smithy/util-buffer-from/dist-es/index.js +14 -0
- package/_standalone/__node_modules/@aws-sdk/middleware-websocket/node_modules/@smithy/util-utf8/node_modules/@smithy/util-buffer-from/node_modules/@smithy/is-array-buffer/LICENSE +201 -0
- package/_standalone/__node_modules/@aws-sdk/middleware-websocket/node_modules/@smithy/util-utf8/node_modules/@smithy/util-buffer-from/node_modules/@smithy/is-array-buffer/dist-cjs/index.js +6 -0
- package/_standalone/__node_modules/@aws-sdk/middleware-websocket/node_modules/@smithy/util-utf8/node_modules/@smithy/util-buffer-from/node_modules/@smithy/is-array-buffer/dist-es/index.js +2 -0
- package/_standalone/__node_modules/@aws-sdk/middleware-websocket/node_modules/@smithy/util-utf8/node_modules/@smithy/util-buffer-from/node_modules/@smithy/is-array-buffer/package.json +61 -0
- package/_standalone/__node_modules/@aws-sdk/middleware-websocket/node_modules/@smithy/util-utf8/node_modules/@smithy/util-buffer-from/package.json +62 -0
- package/_standalone/__node_modules/@aws-sdk/nested-clients/node_modules/@smithy/util-utf8/node_modules/@smithy/util-buffer-from/LICENSE +201 -0
- package/_standalone/__node_modules/@aws-sdk/nested-clients/node_modules/@smithy/util-utf8/node_modules/@smithy/util-buffer-from/dist-cjs/index.js +20 -0
- package/_standalone/__node_modules/@aws-sdk/nested-clients/node_modules/@smithy/util-utf8/node_modules/@smithy/util-buffer-from/dist-es/index.js +14 -0
- package/_standalone/__node_modules/@aws-sdk/nested-clients/node_modules/@smithy/util-utf8/node_modules/@smithy/util-buffer-from/node_modules/@smithy/is-array-buffer/LICENSE +201 -0
- package/_standalone/__node_modules/@aws-sdk/nested-clients/node_modules/@smithy/util-utf8/node_modules/@smithy/util-buffer-from/node_modules/@smithy/is-array-buffer/dist-cjs/index.js +6 -0
- package/_standalone/__node_modules/@aws-sdk/nested-clients/node_modules/@smithy/util-utf8/node_modules/@smithy/util-buffer-from/node_modules/@smithy/is-array-buffer/dist-es/index.js +2 -0
- package/_standalone/__node_modules/@aws-sdk/nested-clients/node_modules/@smithy/util-utf8/node_modules/@smithy/util-buffer-from/node_modules/@smithy/is-array-buffer/package.json +61 -0
- package/_standalone/__node_modules/@aws-sdk/nested-clients/node_modules/@smithy/util-utf8/node_modules/@smithy/util-buffer-from/package.json +62 -0
- package/_standalone/__node_modules/@aws-sdk/xml-builder/node_modules/.bin/fxparser +2 -2
- package/_standalone/__node_modules/@mariozechner/pi-agent-core/node_modules/.bin/pi-ai +2 -2
- package/_standalone/__node_modules/@mariozechner/pi-agent-core/node_modules/@mariozechner/pi-ai/node_modules/.bin/anthropic-ai-sdk +2 -2
- package/_standalone/__node_modules/@mariozechner/pi-agent-core/node_modules/@mariozechner/pi-ai/node_modules/.bin/openai +2 -2
- package/_standalone/__node_modules/@mariozechner/pi-ai/node_modules/.bin/anthropic-ai-sdk +2 -2
- package/_standalone/__node_modules/@mariozechner/pi-ai/node_modules/.bin/openai +2 -2
- package/_standalone/__node_modules/@mariozechner/pi-coding-agent/node_modules/.bin/extract-zip +2 -2
- package/_standalone/__node_modules/@mariozechner/pi-coding-agent/node_modules/.bin/highlight +2 -2
- package/_standalone/__node_modules/@mariozechner/pi-coding-agent/node_modules/.bin/jiti +2 -2
- package/_standalone/__node_modules/@mariozechner/pi-coding-agent/node_modules/.bin/marked +2 -2
- package/_standalone/__node_modules/@mariozechner/pi-coding-agent/node_modules/.bin/pi-ai +2 -2
- package/_standalone/__node_modules/@mariozechner/pi-coding-agent/node_modules/.bin/yaml +2 -2
- package/_standalone/__node_modules/@mariozechner/pi-coding-agent/node_modules/@mariozechner/pi-ai/node_modules/.bin/anthropic-ai-sdk +2 -2
- package/_standalone/__node_modules/@mariozechner/pi-coding-agent/node_modules/@mariozechner/pi-ai/node_modules/.bin/openai +2 -2
- package/_standalone/__node_modules/@mariozechner/pi-coding-agent/node_modules/strip-ansi/node_modules/ansi-regex/index.js +14 -0
- package/_standalone/__node_modules/@mariozechner/pi-coding-agent/node_modules/strip-ansi/node_modules/ansi-regex/license +9 -0
- package/_standalone/__node_modules/@mariozechner/pi-coding-agent/node_modules/strip-ansi/node_modules/ansi-regex/package.json +61 -0
- package/_standalone/__node_modules/@mariozechner/pi-tui/node_modules/.bin/marked +2 -2
- package/_standalone/__node_modules/@smithy/core/node_modules/@smithy/util-utf8/node_modules/@smithy/util-buffer-from/LICENSE +201 -0
- package/_standalone/__node_modules/@smithy/core/node_modules/@smithy/util-utf8/node_modules/@smithy/util-buffer-from/dist-cjs/index.js +20 -0
- package/_standalone/__node_modules/@smithy/core/node_modules/@smithy/util-utf8/node_modules/@smithy/util-buffer-from/dist-es/index.js +14 -0
- package/_standalone/__node_modules/@smithy/core/node_modules/@smithy/util-utf8/node_modules/@smithy/util-buffer-from/node_modules/@smithy/is-array-buffer/LICENSE +201 -0
- package/_standalone/__node_modules/@smithy/core/node_modules/@smithy/util-utf8/node_modules/@smithy/util-buffer-from/node_modules/@smithy/is-array-buffer/dist-cjs/index.js +6 -0
- package/_standalone/__node_modules/@smithy/core/node_modules/@smithy/util-utf8/node_modules/@smithy/util-buffer-from/node_modules/@smithy/is-array-buffer/dist-es/index.js +2 -0
- package/_standalone/__node_modules/@smithy/core/node_modules/@smithy/util-utf8/node_modules/@smithy/util-buffer-from/node_modules/@smithy/is-array-buffer/package.json +61 -0
- package/_standalone/__node_modules/@smithy/core/node_modules/@smithy/util-utf8/node_modules/@smithy/util-buffer-from/package.json +62 -0
- package/_standalone/__node_modules/@smithy/hash-node/node_modules/@smithy/util-buffer-from/node_modules/@smithy/is-array-buffer/LICENSE +201 -0
- package/_standalone/__node_modules/@smithy/hash-node/node_modules/@smithy/util-buffer-from/node_modules/@smithy/is-array-buffer/dist-cjs/index.js +6 -0
- package/_standalone/__node_modules/@smithy/hash-node/node_modules/@smithy/util-buffer-from/node_modules/@smithy/is-array-buffer/dist-es/index.js +2 -0
- package/_standalone/__node_modules/@smithy/hash-node/node_modules/@smithy/util-buffer-from/node_modules/@smithy/is-array-buffer/package.json +61 -0
- package/_standalone/__node_modules/@smithy/hash-node/node_modules/@smithy/util-utf8/node_modules/@smithy/util-buffer-from/LICENSE +201 -0
- package/_standalone/__node_modules/@smithy/hash-node/node_modules/@smithy/util-utf8/node_modules/@smithy/util-buffer-from/dist-cjs/index.js +20 -0
- package/_standalone/__node_modules/@smithy/hash-node/node_modules/@smithy/util-utf8/node_modules/@smithy/util-buffer-from/dist-es/index.js +14 -0
- package/_standalone/__node_modules/@smithy/hash-node/node_modules/@smithy/util-utf8/node_modules/@smithy/util-buffer-from/node_modules/@smithy/is-array-buffer/LICENSE +201 -0
- package/_standalone/__node_modules/@smithy/hash-node/node_modules/@smithy/util-utf8/node_modules/@smithy/util-buffer-from/node_modules/@smithy/is-array-buffer/dist-cjs/index.js +6 -0
- package/_standalone/__node_modules/@smithy/hash-node/node_modules/@smithy/util-utf8/node_modules/@smithy/util-buffer-from/node_modules/@smithy/is-array-buffer/dist-es/index.js +2 -0
- package/_standalone/__node_modules/@smithy/hash-node/node_modules/@smithy/util-utf8/node_modules/@smithy/util-buffer-from/node_modules/@smithy/is-array-buffer/package.json +61 -0
- package/_standalone/__node_modules/@smithy/hash-node/node_modules/@smithy/util-utf8/node_modules/@smithy/util-buffer-from/package.json +62 -0
- package/_standalone/__node_modules/@smithy/signature-v4/node_modules/@smithy/util-utf8/node_modules/@smithy/util-buffer-from/LICENSE +201 -0
- package/_standalone/__node_modules/@smithy/signature-v4/node_modules/@smithy/util-utf8/node_modules/@smithy/util-buffer-from/dist-cjs/index.js +20 -0
- package/_standalone/__node_modules/@smithy/signature-v4/node_modules/@smithy/util-utf8/node_modules/@smithy/util-buffer-from/dist-es/index.js +14 -0
- package/_standalone/__node_modules/@smithy/signature-v4/node_modules/@smithy/util-utf8/node_modules/@smithy/util-buffer-from/node_modules/@smithy/is-array-buffer/LICENSE +201 -0
- package/_standalone/__node_modules/@smithy/signature-v4/node_modules/@smithy/util-utf8/node_modules/@smithy/util-buffer-from/node_modules/@smithy/is-array-buffer/dist-cjs/index.js +6 -0
- package/_standalone/__node_modules/@smithy/signature-v4/node_modules/@smithy/util-utf8/node_modules/@smithy/util-buffer-from/node_modules/@smithy/is-array-buffer/dist-es/index.js +2 -0
- package/_standalone/__node_modules/@smithy/signature-v4/node_modules/@smithy/util-utf8/node_modules/@smithy/util-buffer-from/node_modules/@smithy/is-array-buffer/package.json +61 -0
- package/_standalone/__node_modules/@smithy/signature-v4/node_modules/@smithy/util-utf8/node_modules/@smithy/util-buffer-from/package.json +62 -0
- package/_standalone/__node_modules/@smithy/util-base64/node_modules/@smithy/util-buffer-from/node_modules/@smithy/is-array-buffer/LICENSE +201 -0
- package/_standalone/__node_modules/@smithy/util-base64/node_modules/@smithy/util-buffer-from/node_modules/@smithy/is-array-buffer/dist-cjs/index.js +6 -0
- package/_standalone/__node_modules/@smithy/util-base64/node_modules/@smithy/util-buffer-from/node_modules/@smithy/is-array-buffer/dist-es/index.js +2 -0
- package/_standalone/__node_modules/@smithy/util-base64/node_modules/@smithy/util-buffer-from/node_modules/@smithy/is-array-buffer/package.json +61 -0
- package/_standalone/__node_modules/@smithy/util-base64/node_modules/@smithy/util-utf8/node_modules/@smithy/util-buffer-from/LICENSE +201 -0
- package/_standalone/__node_modules/@smithy/util-base64/node_modules/@smithy/util-utf8/node_modules/@smithy/util-buffer-from/dist-cjs/index.js +20 -0
- package/_standalone/__node_modules/@smithy/util-base64/node_modules/@smithy/util-utf8/node_modules/@smithy/util-buffer-from/dist-es/index.js +14 -0
- package/_standalone/__node_modules/@smithy/util-base64/node_modules/@smithy/util-utf8/node_modules/@smithy/util-buffer-from/node_modules/@smithy/is-array-buffer/LICENSE +201 -0
- package/_standalone/__node_modules/@smithy/util-base64/node_modules/@smithy/util-utf8/node_modules/@smithy/util-buffer-from/node_modules/@smithy/is-array-buffer/dist-cjs/index.js +6 -0
- package/_standalone/__node_modules/@smithy/util-base64/node_modules/@smithy/util-utf8/node_modules/@smithy/util-buffer-from/node_modules/@smithy/is-array-buffer/dist-es/index.js +2 -0
- package/_standalone/__node_modules/@smithy/util-base64/node_modules/@smithy/util-utf8/node_modules/@smithy/util-buffer-from/node_modules/@smithy/is-array-buffer/package.json +61 -0
- package/_standalone/__node_modules/@smithy/util-base64/node_modules/@smithy/util-utf8/node_modules/@smithy/util-buffer-from/package.json +62 -0
- package/_standalone/__node_modules/@smithy/util-stream/node_modules/@smithy/util-buffer-from/node_modules/@smithy/is-array-buffer/LICENSE +201 -0
- package/_standalone/__node_modules/@smithy/util-stream/node_modules/@smithy/util-buffer-from/node_modules/@smithy/is-array-buffer/dist-cjs/index.js +6 -0
- package/_standalone/__node_modules/@smithy/util-stream/node_modules/@smithy/util-buffer-from/node_modules/@smithy/is-array-buffer/dist-es/index.js +2 -0
- package/_standalone/__node_modules/@smithy/util-stream/node_modules/@smithy/util-buffer-from/node_modules/@smithy/is-array-buffer/package.json +61 -0
- package/_standalone/__node_modules/@smithy/util-stream/node_modules/@smithy/util-utf8/node_modules/@smithy/util-buffer-from/LICENSE +201 -0
- package/_standalone/__node_modules/@smithy/util-stream/node_modules/@smithy/util-utf8/node_modules/@smithy/util-buffer-from/dist-cjs/index.js +20 -0
- package/_standalone/__node_modules/@smithy/util-stream/node_modules/@smithy/util-utf8/node_modules/@smithy/util-buffer-from/dist-es/index.js +14 -0
- package/_standalone/__node_modules/@smithy/util-stream/node_modules/@smithy/util-utf8/node_modules/@smithy/util-buffer-from/node_modules/@smithy/is-array-buffer/LICENSE +201 -0
- package/_standalone/__node_modules/@smithy/util-stream/node_modules/@smithy/util-utf8/node_modules/@smithy/util-buffer-from/node_modules/@smithy/is-array-buffer/dist-cjs/index.js +6 -0
- package/_standalone/__node_modules/@smithy/util-stream/node_modules/@smithy/util-utf8/node_modules/@smithy/util-buffer-from/node_modules/@smithy/is-array-buffer/dist-es/index.js +2 -0
- package/_standalone/__node_modules/@smithy/util-stream/node_modules/@smithy/util-utf8/node_modules/@smithy/util-buffer-from/node_modules/@smithy/is-array-buffer/package.json +61 -0
- package/_standalone/__node_modules/@smithy/util-stream/node_modules/@smithy/util-utf8/node_modules/@smithy/util-buffer-from/package.json +62 -0
- package/_standalone/__node_modules/bignumber.js/doc/API.html +2249 -0
- package/_standalone/__node_modules/degenerator/node_modules/.bin/escodegen +2 -2
- package/_standalone/__node_modules/degenerator/node_modules/.bin/esgenerate +2 -2
- package/_standalone/__node_modules/degenerator/node_modules/.bin/esparse +2 -2
- package/_standalone/__node_modules/degenerator/node_modules/.bin/esvalidate +2 -2
- package/_standalone/__node_modules/entities/LICENSE +11 -0
- package/_standalone/__node_modules/entities/dist/decode-codepoint.js +46 -0
- package/_standalone/__node_modules/entities/dist/decode.js +544 -0
- package/_standalone/__node_modules/entities/dist/encode.js +90 -0
- package/_standalone/__node_modules/entities/dist/escape.js +132 -0
- package/_standalone/__node_modules/entities/dist/generated/decode-data-html.js +5 -0
- package/_standalone/__node_modules/entities/dist/generated/decode-data-xml.js +5 -0
- package/_standalone/__node_modules/entities/dist/generated/encode-html.js +12 -0
- package/_standalone/__node_modules/entities/dist/index.js +91 -0
- package/_standalone/__node_modules/entities/dist/internal/bin-trie-flags.js +18 -0
- package/_standalone/__node_modules/entities/dist/internal/decode-shared.js +17 -0
- package/_standalone/__node_modules/entities/dist/internal/encode-shared.js +93 -0
- package/_standalone/__node_modules/entities/package.json +83 -0
- package/_standalone/__node_modules/entities/src/decode-codepoint.ts +50 -0
- package/_standalone/__node_modules/entities/src/decode.ts +671 -0
- package/_standalone/__node_modules/entities/src/encode.ts +95 -0
- package/_standalone/__node_modules/entities/src/escape.ts +160 -0
- package/_standalone/__node_modules/entities/src/generated/decode-data-html.ts +7 -0
- package/_standalone/__node_modules/entities/src/generated/decode-data-xml.ts +7 -0
- package/_standalone/__node_modules/entities/src/generated/encode-html.ts +18 -0
- package/_standalone/__node_modules/entities/src/index.ts +162 -0
- package/_standalone/__node_modules/entities/src/internal/bin-trie-flags.ts +16 -0
- package/_standalone/__node_modules/entities/src/internal/decode-shared.ts +18 -0
- package/_standalone/__node_modules/entities/src/internal/encode-shared.ts +123 -0
- package/_standalone/__node_modules/escodegen/node_modules/.bin/esparse +2 -2
- package/_standalone/__node_modules/escodegen/node_modules/.bin/esvalidate +2 -2
- package/_standalone/__node_modules/global-agent/node_modules/.bin/semver +2 -2
- package/_standalone/__node_modules/has-flag/index.js +8 -0
- package/_standalone/__node_modules/has-flag/license +9 -0
- package/_standalone/__node_modules/has-flag/package.json +46 -0
- package/_standalone/__node_modules/jsdom/node_modules/.bin/specificity +2 -2
- package/_standalone/__node_modules/koffi/doc/benchmarks.md +126 -0
- package/_standalone/__node_modules/koffi/doc/callbacks.md +210 -0
- package/_standalone/__node_modules/koffi/doc/contribute.md +148 -0
- package/_standalone/__node_modules/koffi/doc/functions.md +250 -0
- package/_standalone/__node_modules/koffi/doc/index.md +61 -0
- package/_standalone/__node_modules/koffi/doc/input.md +471 -0
- package/_standalone/__node_modules/koffi/doc/migration.md +159 -0
- package/_standalone/__node_modules/koffi/doc/misc.md +180 -0
- package/_standalone/__node_modules/koffi/doc/output.md +305 -0
- package/_standalone/__node_modules/koffi/doc/packaging.md +88 -0
- package/_standalone/__node_modules/koffi/doc/platforms.md +36 -0
- package/_standalone/__node_modules/koffi/doc/pointers.md +328 -0
- package/_standalone/__node_modules/koffi/doc/start.md +118 -0
- package/_standalone/__node_modules/koffi/doc/unions.md +186 -0
- package/_standalone/__node_modules/koffi/doc/variables.md +102 -0
- package/_standalone/__node_modules/postcss/node_modules/.bin/nanoid +2 -2
- package/_standalone/__node_modules/supports-color/browser.js +5 -0
- package/_standalone/__node_modules/supports-color/index.js +135 -0
- package/_standalone/__node_modules/supports-color/license +9 -0
- package/_standalone/__node_modules/supports-color/package.json +53 -0
- package/_standalone/__node_modules/tough-cookie/node_modules/.bin/tldts +2 -2
- package/_standalone/__node_modules/yaml/browser/dist/doc/Document.js +335 -0
- package/_standalone/__node_modules/yaml/browser/dist/doc/anchors.js +71 -0
- package/_standalone/__node_modules/yaml/browser/dist/doc/applyReviver.js +55 -0
- package/_standalone/__node_modules/yaml/browser/dist/doc/createNode.js +88 -0
- package/_standalone/__node_modules/yaml/browser/dist/doc/directives.js +176 -0
- package/_standalone/__node_modules/yaml/dist/doc/Document.js +337 -0
- package/_standalone/__node_modules/yaml/dist/doc/anchors.js +76 -0
- package/_standalone/__node_modules/yaml/dist/doc/applyReviver.js +57 -0
- package/_standalone/__node_modules/yaml/dist/doc/createNode.js +90 -0
- package/_standalone/__node_modules/yaml/dist/doc/directives.js +178 -0
- package/_standalone/server.js +1 -1
- 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/prepare-standalone.mjs +0 -1
- package/scripts/smoke-desktop-app.mjs +82 -8
- package/scripts/verify-desktop-runtime.mjs +2 -1
- package/scripts/verify-standalone.mjs +12 -0
- 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/1957-723ac4eb5200214c.js} +3 -3
- package/static-web/_next/static/chunks/{2280-2277c97eae59ded9.js → 2737-f4970f0684c334d6.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/{1998.c8edc5601fa7362f.js → 6728.e1841cddb63308b0.js} +1 -1
- package/static-web/_next/static/chunks/{6947.51e37852cef26113.js → 6947.fb89346ef2f6be17.js} +1 -1
- package/static-web/_next/static/chunks/app/_not-found/{page-ec6fa498a07e6fd9.js → page-eaedcec1b693c03c.js} +1 -1
- package/{_standalone/__next/static/chunks/app/agents/[agentKey]/page-44c493b744d18249.js → static-web/_next/static/chunks/app/agents/[agentKey]/page-1dac12945bfbaf35.js} +1 -1
- package/{_standalone/__next/static/chunks/app/agents/page-6591b482a193e657.js → static-web/_next/static/chunks/app/agents/page-7ff2e39ca12eb20a.js} +1 -1
- package/static-web/_next/static/chunks/app/capture/history/page-51db96203209a441.js +1 -0
- package/static-web/_next/static/chunks/app/capture/page-3bf09d1f5e1c379c.js +1 -0
- package/static-web/_next/static/chunks/app/changelog/page-01dc22b6d2230c7f.js +1 -0
- package/static-web/_next/static/chunks/app/changes/page-c9f8d5632a001849.js +1 -0
- package/{_standalone/__next/static/chunks/app/echo/[segment]/page-c5ea40ac04f2dc29.js → static-web/_next/static/chunks/app/echo/[segment]/page-44b6b8e7fd0bbe31.js} +2 -2
- package/static-web/_next/static/chunks/app/echo/page-c9f8d5632a001849.js +1 -0
- package/static-web/_next/static/chunks/app/{error-c46d1b03d5e3289c.js → error-1cfcd6abd93c3837.js} +1 -1
- package/static-web/_next/static/chunks/app/explore/{page-5d6dd4af8d1bb468.js → page-117fcf54b8b9765c.js} +1 -1
- package/static-web/_next/static/chunks/app/global-error-11b333dcf222bc09.js +1 -0
- package/{_standalone/__next/static/chunks/app/help/page-3f0a1a8e51249cb2.js → static-web/_next/static/chunks/app/help/page-6efb8aa3a3c169fa.js} +1 -1
- package/static-web/_next/static/chunks/app/inbox/history/page-913645bbd6161116.js +1 -0
- package/static-web/_next/static/chunks/app/{layout-7aa371fe2615cd3e.js → layout-24a31ea28c556e82.js} +38 -38
- package/static-web/_next/static/chunks/app/login/page-7f9aca3d51266bec.js +1 -0
- package/{_standalone/__next/static/chunks/app/page-5c9489e28657376e.js → static-web/_next/static/chunks/app/page-35662964020c0ea9.js} +1 -1
- package/static-web/_next/static/chunks/app/settings/{page-4b75d6c17f42d565.js → page-f816f13a34613538.js} +1 -1
- package/{_standalone/__next/static/chunks/app/setup/page-f5de08d0d588c778.js → static-web/_next/static/chunks/app/setup/page-a1027871dc33ffbd.js} +1 -1
- package/static-web/_next/static/chunks/app/todo/page-54c3ec77f662ff73.js +1 -0
- package/static-web/_next/static/chunks/app/trash/page-50622e3df2047204.js +1 -0
- package/static-web/_next/static/chunks/app/view/[...path]/{error-f73092e638a4e999.js → error-c9a3f6de7c963c74.js} +1 -1
- package/static-web/_next/static/chunks/app/view/[...path]/{not-found-80e5f4054819b372.js → not-found-5a4f2b4fbe28d617.js} +1 -1
- package/{_standalone/__next/static/chunks/app/view/[...path]/page-ffe3c61100e25591.js → static-web/_next/static/chunks/app/view/[...path]/page-b10d3819827da1c2.js} +2 -2
- package/{_standalone/__next/static/chunks/app/wiki/page-4c9bc816069b6f2a.js → static-web/_next/static/chunks/app/wiki/page-7afd3b97c1ea1b8c.js} +2 -2
- package/static-web/_next/static/chunks/{main-app-23adfdc06470abb6.js → main-app-8a6081b103b8f494.js} +1 -1
- package/static-web/_next/static/chunks/webpack-7d8c24c6af17dd51.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/capture/history/page-d157ce945ad84c23.js +0 -1
- package/_standalone/__next/static/chunks/app/capture/page-ae4d683afdc7a7b2.js +0 -1
- package/_standalone/__next/static/chunks/app/changelog/page-5a39d8fe531f4d45.js +0 -1
- package/_standalone/__next/static/chunks/app/changes/page-64cf8d751245eee9.js +0 -1
- package/_standalone/__next/static/chunks/app/echo/page-64cf8d751245eee9.js +0 -1
- package/_standalone/__next/static/chunks/app/global-error-d42727c6c6c48879.js +0 -1
- package/_standalone/__next/static/chunks/app/inbox/history/page-b2930c2ef04e00b0.js +0 -1
- package/_standalone/__next/static/chunks/app/login/page-a4f9f9053c75ae8d.js +0 -1
- package/_standalone/__next/static/chunks/app/todo/page-c7629a0c102c634f.js +0 -1
- package/_standalone/__next/static/chunks/app/trash/page-e1bfaeeca2de6ab4.js +0 -1
- package/_standalone/__next/static/chunks/webpack-e39fda9494843875.js +0 -1
- package/static-web/_next/static/chunks/app/capture/history/page-d157ce945ad84c23.js +0 -1
- package/static-web/_next/static/chunks/app/capture/page-ae4d683afdc7a7b2.js +0 -1
- package/static-web/_next/static/chunks/app/changelog/page-5a39d8fe531f4d45.js +0 -1
- package/static-web/_next/static/chunks/app/changes/page-64cf8d751245eee9.js +0 -1
- package/static-web/_next/static/chunks/app/echo/page-64cf8d751245eee9.js +0 -1
- package/static-web/_next/static/chunks/app/global-error-d42727c6c6c48879.js +0 -1
- package/static-web/_next/static/chunks/app/inbox/history/page-b2930c2ef04e00b0.js +0 -1
- package/static-web/_next/static/chunks/app/login/page-a4f9f9053c75ae8d.js +0 -1
- package/static-web/_next/static/chunks/app/todo/page-c7629a0c102c634f.js +0 -1
- package/static-web/_next/static/chunks/app/trash/page-e1bfaeeca2de6ab4.js +0 -1
- package/static-web/_next/static/chunks/webpack-e39fda9494843875.js +0 -1
- /package/_standalone/__next/static/{DFngZEGZSufSm5RuKPkYN → 3FkuJxcda957EywJ5ZWWG}/_buildManifest.js +0 -0
- /package/_standalone/__next/static/{DFngZEGZSufSm5RuKPkYN → 3FkuJxcda957EywJ5ZWWG}/_ssgManifest.js +0 -0
- /package/static-web/_next/static/{DFngZEGZSufSm5RuKPkYN → 3FkuJxcda957EywJ5ZWWG}/_buildManifest.js +0 -0
- /package/static-web/_next/static/{DFngZEGZSufSm5RuKPkYN → 3FkuJxcda957EywJ5ZWWG}/_ssgManifest.js +0 -0
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[6023],{23684:(e,t,r)=>{"use strict";r.d(t,{default:()=>a});var n=r(66839),s=r(44223);function a({href:e,label:t="Redirecting..."}){return(0,s.useEffect)(()=>{window.location.replace(e)},[e]),(0,n.jsx)("main",{className:"min-h-screen flex items-center justify-center px-6",children:(0,n.jsx)("a",{href:e,className:"text-sm underline-offset-4 hover:underline focus-visible:ring-2 focus-visible:ring-ring rounded-sm",style:{color:"var(--muted-foreground)"},children:t})})}},27069:(e,t,r)=>{"use strict";r.d(t,{Z:()=>h});var n=r(44223);let s="mindos-pinned-files",a="mindos:pins-changed";function o(){try{let e=localStorage.getItem(s);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===s&&(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(s,JSON.stringify(e))}catch{}window.dispatchEvent(new Event(a))}function h(){m();let e=(0,n.useSyncExternalStore)(x,i,d),t=(0,n.useCallback)(t=>e.includes(t),[e]),r=(0,n.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,n.useCallback)(e=>{p(e)},[]),removePin:(0,n.useCallback)(e=>{p(o().filter(t=>t!==e))},[])}}},28355:(e,t,r)=>{"use strict";r.d(t,{default:()=>X});var n=r(66839),s=r(44223),a=r(18016),o=r.n(a),i=r(19378),l=r(38325),d=r(86386),c=r(8973),u=r(32959),m=r(73601),x=r(27636),p=r(72615),h=r(82417),f=r(18659),b=r(30401),g=r(72799),v=r(12361),j=r(11235),y=r(27069),w=r(2073),N=r(58221),k=r(95991),A=r(98940),E=r(44361),C=r(98327),z=r(31082),$=r(10952),S=r(59694),D=r(21082),L=r(4373),R=r(24336),F=r(31606),T=r(76723),M=r(56261),W=r(79455),O=r(72466),P=r(30292);function I({isOrganizing:e=!1}){let{t}=(0,w.Y)(),[r,a]=(0,s.useState)([]),[l,d]=(0,s.useState)(!0),[c,u]=(0,s.useState)(!1),[m,x]=(0,s.useState)(!1),[p,h]=(0,s.useState)(!1),[f,b]=(0,s.useState)([]),[g,j]=(0,s.useState)(""),[y,N]=(0,s.useState)(!1),D=(0,s.useRef)(null),L=(0,s.useRef)(null),R=(0,s.useRef)(0),F=e||c,T=(0,s.useCallback)(()=>{0===r.length||F||(u(!0),window.dispatchEvent(new CustomEvent("mindos:inbox-organize",{detail:{files:r}})))},[r,F]),M=(0,s.useCallback)(async e=>{try{if(!(await fetch("/api/inbox",{method:"DELETE",headers:{"Content-Type":"application/json"},body:JSON.stringify({names:[e]})})).ok)throw Error("Failed to delete");a(t=>t.filter(t=>t.name!==e)),window.dispatchEvent(new Event("mindos:inbox-updated")),W.oR.success(t.inbox.fileRemoved)}catch{W.oR.error(t.inbox.fileRemoveFailed)}},[t]),I=(0,s.useCallback)(e=>{e&&0!==e.length&&((0,O.QL)(Array.from(e),t),D.current&&(D.current.value=""))},[t]),B=(0,s.useCallback)(async e=>{let r=e.trim();if(r){if(!(0,O.h0)(r))return void W.oR.error(t.inbox.clipInvalidUrl,3e3);N(!0);try{await (0,O.TM)(r,t),j("")}finally{N(!1)}}},[t]),H=(0,s.useCallback)(e=>{e.preventDefault(),e.stopPropagation(),R.current=0,x(!1),h(!1);let r=(0,O.Aw)(e.nativeEvent);r?B(r):e.dataTransfer.files.length>0&&(0,O.QL)(Array.from(e.dataTransfer.files),t)},[t,B]),K=(0,s.useCallback)(async()=>{try{let e=await fetch("/api/inbox");if(!e.ok)return;let t=await e.json();Array.isArray(t.files)&&a(t.files)}catch(e){console.warn("[InboxSection] Failed to fetch inbox:",e)}finally{d(!1)}},[]),J=(0,s.useCallback)(()=>{b((0,P.FB)().slice(0,3))},[]),Y=(0,s.useRef)(void 0),Q=(0,s.useCallback)(()=>{clearTimeout(Y.current),Y.current=setTimeout(()=>{K(),J()},80)},[K,J]);(0,s.useEffect)(()=>{let e=()=>{R.current=0,x(!1),h(!1)};return window.addEventListener("drop",e,!0),window.addEventListener("dragend",e,!0),()=>{window.removeEventListener("drop",e,!0),window.removeEventListener("dragend",e,!0)}},[]),(0,s.useEffect)(()=>{K(),J();let e=()=>{u(!1),Q()};return window.addEventListener("mindos:files-changed",Q),window.addEventListener("mindos:inbox-updated",Q),window.addEventListener("mindos:organize-done",e),window.addEventListener("mindos:organize-history-update",J),()=>{clearTimeout(Y.current),window.removeEventListener("mindos:files-changed",Q),window.removeEventListener("mindos:inbox-updated",Q),window.removeEventListener("mindos:organize-done",e),window.removeEventListener("mindos:organize-history-update",J)}},[K,Q,J]);let X=(0,s.useMemo)(()=>r.slice(0,5),[r]),V=Math.max(0,r.length-5),Z=r.length>0,[q,G]=(0,s.useState)(0);return((0,s.useEffect)(()=>{G((0,P.FB)().length)},[f]),l)?(0,n.jsxs)("section",{className:"mb-8 animate-pulse",children:[(0,n.jsx)("div",{className:"h-4 w-24 bg-muted rounded mb-3"}),(0,n.jsxs)("div",{className:"space-y-2",children:[(0,n.jsx)("div",{className:"h-10 bg-muted/50 rounded-lg"}),(0,n.jsx)("div",{className:"h-10 bg-muted/50 rounded-lg"})]})]}):(0,n.jsxs)("section",{className:"mb-8",children:[(0,n.jsxs)("div",{className:"flex items-center gap-2.5 mb-4",children:[(0,n.jsx)("div",{className:"flex items-center justify-center w-6 h-6 rounded-md bg-[var(--amber-subtle)] text-[var(--amber)]",children:(0,n.jsx)(k.A,{size:13})}),(0,n.jsx)("h2",{className:"text-[13px] font-semibold text-foreground tracking-wide",children:t.inbox.title}),Z&&(0,n.jsx)("span",{className:"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 shadow-sm shadow-black/[0.02]",children:t.inbox.count(r.length)}),Z&&(0,n.jsxs)("div",{className:"ml-auto flex items-center gap-3",children:[(0,n.jsxs)("button",{type:"button",onClick:()=>D.current?.click(),className:"flex items-center gap-1.5 text-xs font-medium text-muted-foreground rounded-md px-2 py-1 transition-all duration-150 ease-out hover:text-foreground hover:bg-muted/40 cursor-pointer",title:t.inbox.uploadButton,children:[(0,n.jsx)(A.A,{size:12}),(0,n.jsx)("span",{className:"hidden sm:inline",children:t.inbox.uploadButton})]}),(0,n.jsxs)("button",{onClick:T,disabled:F,className:"flex items-center gap-1.5 text-xs font-medium text-[var(--amber)] bg-[var(--amber)]/[0.08] rounded-md px-2.5 py-1 transition-all duration-150 ease-out hover:bg-[var(--amber)]/[0.15] cursor-pointer disabled:opacity-50 disabled:cursor-not-allowed",title:F?t.inbox.organizing:void 0,children:[F?(0,n.jsx)(E.A,{size:12,className:"animate-spin"}):(0,n.jsx)(i.A,{size:12}),(0,n.jsx)("span",{children:F?t.inbox.organizing:t.inbox.organizeButton})]})]})]}),(0,n.jsx)("input",{ref:D,type:"file",multiple:!0,accept:".md,.markdown,.txt,.csv,.json,.yaml,.yml,.xml,.html,.htm,.pdf,.doc,.docx,.docm",className:"hidden",onChange:e=>I(e.target.files)}),Z&&(0,n.jsxs)("div",{className:"rounded-xl bg-card/50 border border-border/10 p-1 mb-3",children:[(0,n.jsx)("div",{className:"flex flex-col gap-px",children:X.map(e=>(0,n.jsx)(U,{file:e,onDelete:M},e.path))}),V>0&&(0,n.jsxs)(o(),{href:"/capture",className:"flex items-center gap-1 px-3 py-1.5 text-xs text-muted-foreground hover:text-[var(--amber)] transition-colors duration-150",children:[(0,n.jsx)(C.A,{size:12}),t.inbox.viewAllFiles(r.length)]})]}),(0,n.jsxs)("div",{className:`rounded-xl border overflow-hidden transition-all duration-150 ease-out ${m?"border-[var(--amber)] bg-[var(--amber-subtle)] shadow-[inset_0_0_0_1px_var(--amber)]":"border-border/40 bg-card/30"}`,onDragEnter:e=>{let t=e.dataTransfer.types.includes("Files"),r=(0,O.lL)(e.nativeEvent);(t||r)&&(e.preventDefault(),e.stopPropagation(),R.current++,1===R.current&&(x(!0),h(r&&!t)))},onDragOver:e=>{let t=e.dataTransfer.types.includes("Files"),r=(0,O.lL)(e.nativeEvent);(t||r)&&(e.preventDefault(),e.stopPropagation())},onDragLeave:e=>{e.stopPropagation(),R.current=Math.max(0,R.current-1),0===R.current&&(x(!1),h(!1))},onDrop:H,children:[(0,n.jsx)("div",{className:`cursor-pointer transition-colors duration-150 ${Z?"px-4 py-3":"px-4 py-7"} ${!m?"hover:bg-muted/[0.06]":""}`,role:"button",tabIndex:0,"aria-label":t.inbox.uploadButton,onClick:()=>D.current?.click(),onKeyDown:e=>{("Enter"===e.key||" "===e.key)&&(e.preventDefault(),D.current?.click())},children:m&&p?(0,n.jsxs)("div",{className:"flex items-center justify-center gap-2.5 text-center py-1",children:[(0,n.jsx)(z.A,{size:20,className:"shrink-0 text-[var(--amber)] animate-pulse"}),(0,n.jsx)("p",{className:"text-sm font-medium text-[var(--amber)]",children:t.inbox.dropUrlOverlay})]}):Z?(0,n.jsxs)("div",{className:"flex items-center justify-center gap-2 text-center",children:[(0,n.jsx)($.A,{size:15,className:`shrink-0 ${m?"text-[var(--amber)]":"text-muted-foreground/30"}`}),(0,n.jsxs)("p",{className:"text-xs text-muted-foreground/50",children:[t.inbox.dropFilesOrLinks," ",(0,n.jsx)("span",{className:"text-[var(--amber)]/70 hover:text-[var(--amber)] hover:underline",children:t.fileImport.dropzoneCompactButton})]})]}):(0,n.jsxs)("div",{className:"flex flex-col items-center gap-1.5 text-center",children:[(0,n.jsx)($.A,{size:26,className:`${m?"text-[var(--amber)]":"text-muted-foreground/15"}`}),(0,n.jsx)("p",{className:"text-sm text-muted-foreground/60",children:t.inbox.emptyTitle}),(0,n.jsx)("p",{className:"text-xs text-muted-foreground/35",children:t.inbox.emptyDesc}),(0,n.jsx)("p",{className:"text-2xs text-muted-foreground/25",children:t.inbox.dropOverlayFormats}),(0,n.jsxs)("button",{type:"button",onClick:e=>{e.stopPropagation(),D.current?.click()},className:"mt-1 inline-flex items-center gap-1.5 px-3 py-1.5 text-xs font-medium rounded-lg transition-all duration-150 ease-out bg-muted/60 text-muted-foreground hover:text-foreground hover:bg-muted/80",children:[(0,n.jsx)(A.A,{size:12}),t.inbox.uploadButton]})]})}),(0,n.jsx)("div",{className:"border-t border-border/20 mx-3"}),(0,n.jsxs)("div",{className:"flex items-center gap-2.5 px-4 py-2.5 transition-colors duration-150 focus-within:bg-muted/[0.06]",onClick:e=>{e.stopPropagation(),L.current?.focus()},children:[(0,n.jsx)("div",{className:`flex items-center justify-center w-6 h-6 rounded-md shrink-0 transition-colors duration-150 ${y?"bg-[var(--amber)]/15":g?"bg-[var(--amber)]/10":"bg-muted/50"}`,children:y?(0,n.jsx)(E.A,{size:12,className:"text-[var(--amber)] animate-spin"}):(0,n.jsx)(S.A,{size:12,className:`transition-colors duration-150 ${g?"text-[var(--amber)]":"text-muted-foreground/40"}`})}),(0,n.jsx)("input",{ref:L,type:"url",value:g,onChange:e=>j(e.target.value),onKeyDown:e=>{"Enter"!==e.key||y||(e.preventDefault(),B(g))},onPaste:e=>{let t=e.clipboardData.getData("text/plain").trim();t&&(0,O.h0)(t)&&!g&&(e.preventDefault(),j(t),setTimeout(()=>B(t),50))},placeholder:t.inbox.clipUrlPlaceholder,disabled:y,className:"flex-1 min-w-0 bg-transparent text-sm text-foreground placeholder:text-muted-foreground/30 outline-none disabled:opacity-50"}),g&&!y&&(0,n.jsxs)("button",{type:"button",onClick:e=>{e.stopPropagation(),B(g)},className:"shrink-0 flex items-center gap-1.5 px-3 py-1 text-xs font-medium rounded-lg bg-[var(--amber)]/10 text-[var(--amber)] hover:bg-[var(--amber)]/20 transition-all duration-150 ease-out cursor-pointer",children:[(0,n.jsx)(z.A,{size:11}),t.inbox.clipButton]}),y&&(0,n.jsx)("span",{className:"shrink-0 text-xs text-[var(--amber)]/70 tabular-nums",children:t.inbox.clipping})]})]}),f.length>0&&(0,n.jsxs)("div",{className:"mt-5",children:[(0,n.jsxs)("div",{className:"flex items-center gap-2 mb-2",children:[(0,n.jsx)(v.A,{size:11,className:"text-muted-foreground/40"}),(0,n.jsx)("span",{className:"text-2xs font-medium text-muted-foreground/60 uppercase tracking-wider",children:t.importHistory.title}),(0,n.jsx)(o(),{href:"/capture/history",className:"ml-auto text-2xs text-muted-foreground/50 hover:text-[var(--amber)] transition-colors",children:t.inbox.viewAllHistory(q)})]}),(0,n.jsx)("div",{className:"flex flex-col gap-1",children:f.map(e=>(0,n.jsx)(_,{entry:e},e.id))})]})]})}function U({file:e,onDelete:t}){let{t:r}=(0,w.Y)(),a=(0,M.useRouter)(),o=e.name.endsWith(".csv"),i=H(e.modifiedAt,r.home.relativeTime),[l,d]=(0,s.useState)(null),c=()=>{a.push(`/view/${(0,N.O0)(e.path)}`)};return(0,n.jsxs)(n.Fragment,{children:[(0,n.jsxs)("div",{role:"button",tabIndex:0,onClick:c,onKeyDown:e=>{"Enter"===e.key&&c()},onContextMenu:e=>{e.preventDefault(),e.stopPropagation(),d({x:e.clientX,y:e.clientY})},className:"flex items-center gap-3 px-3.5 py-2.5 rounded-lg transition-all duration-150 ease-out hover:translate-x-0.5 hover:bg-muted/50 hover:shadow-sm hover:shadow-black/[0.03] group cursor-pointer",children:[(0,n.jsx)("span",{className:`w-[5px] h-[5px] rounded-full shrink-0 ring-2 ring-background ${e.isAging?"bg-[var(--amber)]/60":"bg-[var(--amber)]"}`}),o?(0,n.jsx)(f.A,{size:12,className:"shrink-0 text-success"}):(0,n.jsx)(b.A,{size:12,className:"shrink-0 text-muted-foreground"}),(0,n.jsx)("span",{className:"text-sm truncate flex-1 text-foreground",title:e.name,suppressHydrationWarning:!0,children:e.name}),(0,n.jsx)("span",{className:"text-2xs text-muted-foreground/40 tabular-nums shrink-0 group-hover:hidden",children:i}),e.isAging&&(0,n.jsx)("span",{title:"7+ days",className:"group-hover:hidden",children:(0,n.jsx)(D.A,{size:11,className:"shrink-0 text-[var(--amber)]/60"})}),(0,n.jsx)("button",{type:"button",onClick:r=>{r.stopPropagation(),r.preventDefault(),t(e.name)},className:"hidden group-hover:flex items-center justify-center w-5 h-5 rounded shrink-0 text-muted-foreground/50 hover:text-destructive hover:bg-destructive/10 transition-all duration-150 ease-out",title:r.inbox.removeFile,children:(0,n.jsx)(g.A,{size:12})})]}),l&&(0,n.jsx)(B,{x:l.x,y:l.y,file:e,onDelete:()=>{d(null),t(e.name)},onClose:()=>d(null)})]})}function B({x:e,y:t,file:r,onDelete:a,onClose:o}){let i=(0,s.useRef)(null),l=(0,M.useRouter)(),{t:d}=(0,w.Y)();(0,s.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 c=Math.min(e,window.innerWidth-200),u=Math.min(t,window.innerHeight-120),m="w-full flex items-center gap-2 px-3 py-1.5 text-sm text-foreground hover:bg-muted transition-colors text-left";return(0,n.jsxs)("div",{ref:i,className:"fixed z-50 min-w-[160px] bg-card border border-border rounded-lg shadow-lg py-1",style:{top:u,left:c},children:[(0,n.jsxs)("button",{className:m,onClick:()=>{l.push(`/view/${(0,N.O0)(r.path)}`),o()},children:[(0,n.jsx)(L.A,{size:14,className:"shrink-0"})," ",d.inbox.openFile]}),(0,n.jsxs)("button",{className:m,onClick:()=>{navigator.clipboard.writeText(r.name),W.oR.copy(),o()},children:[(0,n.jsx)(R.A,{size:14,className:"shrink-0"})," ",d.inbox.copyName]}),(0,n.jsx)("div",{className:"border-t border-border my-1"}),(0,n.jsxs)("button",{className:`${m} text-destructive hover:text-destructive`,onClick:a,children:[(0,n.jsx)(F.A,{size:14,className:"shrink-0"})," ",d.inbox.removeFile]})]})}function _({entry:e}){let[t,r]=(0,s.useState)(!1),a="undone"===e.status,i=function(e){switch(e){case"drag-drop":return{label:"drop",className:"bg-muted/50 text-muted-foreground/50"};case"inbox-organize":return{label:"inbox",className:"bg-[var(--amber)]/10 text-[var(--amber)]/70"};case"import-modal":return{label:"import",className:"bg-blue-500/10 text-blue-500/70"};case"plugin":return{label:"plugin",className:"bg-violet-500/10 text-violet-500/70"};case"upload":return{label:"upload",className:"bg-teal-500/10 text-teal-500/70"};case"web-clipper":return{label:"clip",className:"bg-emerald-500/10 text-emerald-500/70"};default:return null}}(e.source),l=e.durationMs?function(e){let t=Math.round(e/1e3);if(t<60)return`${t}s`;let r=Math.floor(t/60),n=t%60;return`${r}m${n>0?`${n}s`:""}`}(e.durationMs):null,d=H(new Date(e.timestamp).toISOString(),{justNow:"just now",minutesAgo:e=>`${e}m ago`,hoursAgo:e=>`${e}h ago`,daysAgo:e=>`${e}d ago`});return(0,n.jsxs)("div",{className:"rounded-lg border border-border/15 overflow-hidden",children:[(0,n.jsxs)("button",{type:"button",onClick:()=>r(e=>!e),className:"w-full flex items-center gap-2 px-3 py-2 text-left hover:bg-muted/15 transition-all duration-150 ease-out",children:[a?(0,n.jsx)(D.A,{size:12,className:"text-muted-foreground/40 shrink-0"}):(0,n.jsx)(T.A,{size:12,className:"text-success/70 shrink-0"}),(0,n.jsxs)("div",{className:"flex-1 min-w-0 flex items-center gap-1.5",children:[(0,n.jsx)("span",{className:`text-xs truncate ${a?"text-muted-foreground/50 line-through":"text-foreground/80"}`,children:1===e.sourceFiles.length?e.sourceFiles[0]:`${e.sourceFiles.length} files`}),i&&(0,n.jsx)("span",{className:`text-2xs px-1.5 py-0.5 rounded shrink-0 ${i.className}`,children:i.label})]}),(0,n.jsxs)("span",{className:"text-2xs text-muted-foreground/40 tabular-nums shrink-0",children:[l&&`${l} \xb7 `,d]}),e.files.length>0&&(0,n.jsx)(p.A,{size:10,className:`text-muted-foreground/30 shrink-0 transition-transform duration-150 ${t?"rotate-180":""}`})]}),t&&e.files.length>0&&(0,n.jsx)("div",{className:"border-t border-border/10 px-3 py-1.5 space-y-0.5",children:e.files.map((e,t)=>{let r=e.path.split("/"),s=r.pop()??e.path,a=r.length>0?r.join("/"):null,i=!e.undone&&e.ok,l=`flex items-center gap-2 py-1 text-2xs${e.undone?" opacity-40":""}${i?" rounded -mx-1 px-1 hover:bg-muted/20 transition-colors":""}`,d=(0,n.jsxs)(n.Fragment,{children:[(0,n.jsx)("span",{className:`w-1 h-1 rounded-full shrink-0 ${e.ok&&!e.undone?"bg-success/60":"bg-muted-foreground/30"}`}),(0,n.jsxs)("span",{className:`truncate flex-1 min-w-0 ${e.undone?"line-through text-muted-foreground":""}`,children:[a&&(0,n.jsxs)("span",{className:"text-muted-foreground/30",children:[a,"/"]}),(0,n.jsx)("span",{className:e.undone?"":"text-foreground/70",children:s})]}),(0,n.jsx)("span",{className:"text-muted-foreground/40 shrink-0",children:e.undone?"undone":"create"===e.action?"created":"updated"})]});return i?(0,n.jsx)(o(),{href:`/view/${(0,N.O0)(e.path)}`,className:l,children:d},`${e.path}-${t}`):(0,n.jsx)("div",{className:l,children:d},`${e.path}-${t}`)})})]})}function H(e,t){let r=Math.floor((Date.now()-new Date(e).getTime())/6e4);if(r<1)return t.justNow;if(r<60)return t.minutesAgo(r);let n=Math.floor(r/60);if(n<24)return t.hoursAgo(n);let s=Math.floor(n/24);return t.daysAgo(s)}var K=r(69527);function J(){window.dispatchEvent(new KeyboardEvent("keydown",{key:"k",metaKey:!0,bubbles:!0}))}function Y(){window.dispatchEvent(new KeyboardEvent("keydown",{key:"/",metaKey:!0,bubbles:!0}))}function Q(e,t){let r=0;for(let n of t)n.path.startsWith(`${e}/`)&&(r=Math.max(r,n.mtime));return r}function X({spaces:e,recent:t}){let{t:r}=(0,w.Y)(),[a,h]=(0,s.useState)("recent"),[f,b]=(0,s.useState)(!1),[g,v]=(0,s.useState)(0),j=r.ask?.suggestions??["Summarize this document","List all action items","What are the key points?","Find related notes"];(0,s.useEffect)(()=>{let e=setInterval(()=>{v(e=>(e+1)%j.length)},4e3);return()=>clearInterval(e)},[j.length]);let y=(0,s.useMemo)(()=>{let r=[...e];return"recent"===a?r.sort((e,r)=>{let n=Q(e.name,t);return Q(r.name,t)-n}):"name"===a?r.sort((e,t)=>e.name.localeCompare(t.name)):"fileCount"===a&&r.sort((e,t)=>t.fileCount-e.fileCount),r},[e,t,a]),k=f?y:y.slice(0,6),A=e=>(0,N.KW)(e,r.home.relativeTime),E=t[0];return(0,n.jsxs)("div",{className:"content-width px-4 md:px-6 py-10 md:py-14",children:[(0,n.jsxs)("div",{className:"mb-10",children:[(0,n.jsxs)("div",{className:"flex items-center gap-3 mb-6",children:[(0,n.jsx)("div",{className:"w-1 h-7 rounded-full bg-gradient-to-b from-[var(--amber)] to-[var(--amber)]/20"}),(0,n.jsx)("h1",{className:"text-2xl font-semibold tracking-tight text-foreground",children:r.sidebar.files})]}),(0,n.jsxs)("div",{className:"w-full max-w-xl flex flex-col sm:flex-row items-stretch sm:items-center gap-2 pl-4",children:[(0,n.jsxs)("button",{onClick:Y,title:"⌘/",className:"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",children:[(0,n.jsx)(i.A,{size:16,className:"shrink-0 text-[var(--amber)] group-hover:scale-110 transition-transform duration-150"}),(0,n.jsx)("div",{className:"flex-1 min-h-[1.5rem] flex items-center",children:(0,n.jsx)("span",{className:"text-sm text-left text-muted-foreground animate-in fade-in duration-300",children:j[g].label},g)}),(0,n.jsx)("kbd",{className:"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)]",children:"⌘/"})]}),(0,n.jsxs)("button",{onClick:J,title:"⌘K",className:"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",children:[(0,n.jsx)(l.A,{size:14}),(0,n.jsx)("kbd",{className:"hidden sm:inline-flex items-center px-1.5 py-0.5 rounded text-xs font-mono bg-muted",children:"⌘K"})]})]}),(0,n.jsxs)("div",{className:"flex items-center gap-3 mt-4 pl-4",children:[(0,n.jsxs)(o(),{href:"/view/Untitled.md",className:"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)]",children:[(0,n.jsx)(d.A,{size:14}),(0,n.jsx)("span",{children:r.home.newNote})]}),E&&(0,n.jsxs)(o(),{href:`/view/${(0,N.O0)(E.path)}`,className:"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",children:[(0,n.jsx)(c.A,{size:14,className:"text-[var(--amber)]/60"}),(0,n.jsx)("span",{children:r.home.continueEditing}),(0,n.jsx)("span",{className:"text-xs opacity-40 truncate max-w-32",suppressHydrationWarning:!0,children:E.path.split("/").pop()})]})]})]}),(0,n.jsxs)("section",{className:"mb-10",children:[(0,n.jsxs)("div",{className:"flex items-center gap-2.5 mb-5",children:[(0,n.jsx)("div",{className:"flex items-center justify-center w-6 h-6 rounded-md bg-[var(--amber-subtle)] text-[var(--amber)]",children:(0,n.jsx)(u.A,{size:14})}),(0,n.jsx)("h2",{className:"text-[13px] font-semibold text-foreground tracking-wide",children:r.home.spaces}),e.length>0&&(0,n.jsx)("span",{className:"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",children:e.length}),(0,n.jsxs)("div",{className:"ml-auto flex items-center gap-3",children:[e.length>0&&(0,n.jsxs)(K.l6,{size:"sm",value:a,onChange:e=>h(e.target.value),children:[(0,n.jsx)("option",{value:"recent",children:r.home.sortRecent??"Recent"}),(0,n.jsx)("option",{value:"name",children:r.home.sortName??"A-Z"}),(0,n.jsx)("option",{value:"fileCount",children:r.home.sortCount??"File Count"})]}),(0,n.jsxs)("button",{onClick:()=>window.dispatchEvent(new Event("mindos:create-space")),className:"flex items-center gap-1.5 text-xs font-medium text-[var(--amber)] transition-colors hover:opacity-80 cursor-pointer font-display",children:[(0,n.jsx)(m.A,{size:12}),(0,n.jsx)("span",{children:r.home.newSpace})]})]})]}),0===e.length?(0,n.jsxs)("div",{className:"rounded-xl border border-border/40 bg-card/30 px-6 py-12 text-center",children:[(0,n.jsx)("div",{className:"inline-flex items-center justify-center w-12 h-12 rounded-full bg-[var(--amber-subtle)] mb-4",children:(0,n.jsx)(u.A,{size:22,className:"text-[var(--amber)]/60"})}),(0,n.jsx)("p",{className:"text-sm font-medium text-muted-foreground/70 mb-1",children:r.home.noSpacesYet??"No spaces yet"}),(0,n.jsx)("p",{className:"text-xs text-muted-foreground/60 mb-4",children:"Create your first space to organize your knowledge"}),(0,n.jsxs)("button",{onClick:()=>window.dispatchEvent(new Event("mindos:create-space")),className:"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",children:[(0,n.jsx)(m.A,{size:14}),"Create Space"]})]}):(0,n.jsxs)(n.Fragment,{children:[(0,n.jsx)("div",{className:"grid grid-cols-1 sm:grid-cols-2 lg:grid-cols-3 gap-2",children:k.map(e=>{let s=(0,N.IX)(e.name),a=(0,N.vr)(e.name),i=Q(e.name,t),l=0===e.fileCount;return(0,n.jsxs)(o(),{href:`/view/${(0,N.O0)(e.path)}`,className:`flex items-start gap-3 px-4 py-3.5 rounded-xl border transition-all duration-200 ${l?"border-dashed border-border/50 opacity-50 hover:opacity-70":"border-border/60 hover:border-[var(--amber)]/30 hover:shadow-md hover:-translate-y-0.5 bg-card/40"}`,children:[s?(0,n.jsx)("span",{className:"text-lg leading-none shrink-0 mt-0.5",suppressHydrationWarning:!0,children:s}):(0,n.jsx)(x.A,{size:16,className:"shrink-0 text-[var(--amber)] mt-0.5"}),(0,n.jsxs)("div",{className:"min-w-0 flex-1",children:[(0,n.jsx)("span",{className:"text-sm font-medium truncate block text-foreground",children:a}),e.description&&(0,n.jsx)("span",{className:"text-xs text-muted-foreground line-clamp-1 mt-0.5",suppressHydrationWarning:!0,children:e.description}),(0,n.jsxs)("span",{className:"text-xs text-muted-foreground/50 mt-0.5 block tabular-nums",children:[r.home.nFiles(e.fileCount),i>0&&` \xb7 ${A(i)}`]})]})]},e.name)})}),y.length>6&&(0,n.jsxs)("button",{onClick:()=>b(!f),"aria-expanded":f,className:"flex items-center gap-1.5 text-xs font-medium text-[var(--amber)] transition-colors hover:opacity-80 cursor-pointer font-display mt-3",children:[(0,n.jsx)(p.A,{size:12,className:`transition-transform duration-200 ${f?"rotate-180":""}`}),(0,n.jsx)("span",{children:f?r.home.showLess:r.home.showMore})]})]})]}),(0,n.jsx)(I,{}),(0,n.jsx)(Z,{formatTime:A}),(0,n.jsx)("div",{className:"border-t border-border/30 mb-8"}),t.length>0&&(0,n.jsx)(q,{recent:t,formatTime:A}),(0,n.jsxs)("div",{className:"py-6 border-t border-border/20 flex items-center gap-1.5 text-xs font-display text-muted-foreground/30",children:[(0,n.jsx)(i.A,{size:10,className:"text-[var(--amber)]/40"}),(0,n.jsx)("span",{children:r.app.footer})]})]})}function V({icon:e,children:t,count:r,action:s}){return(0,n.jsxs)("div",{className:"flex items-center gap-2.5 mb-4",children:[(0,n.jsx)("div",{className:"flex items-center justify-center w-6 h-6 rounded-md bg-[var(--amber-subtle)] text-[var(--amber)]",children:e}),(0,n.jsx)("h2",{className:"text-[13px] font-semibold text-foreground tracking-wide",children:t}),null!=r&&r>0&&(0,n.jsx)("span",{className:"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",children:r}),s?(0,n.jsx)("div",{className:"ml-auto",children:s}):null]})}function Z({formatTime:e}){let{t}=(0,w.Y)(),{pinnedFiles:r,removePin:s}=(0,y.Z)();return 0===r.length?null:(0,n.jsxs)("section",{className:"mb-8",children:[(0,n.jsx)(V,{icon:(0,n.jsx)(h.A,{size:14}),count:r.length,children:t.pinnedFiles.title}),(0,n.jsx)("div",{className:"flex flex-col gap-0.5",children:r.map(e=>{let r=e.split("/").pop()||e,a=e.split("/").slice(0,-1).join("/"),i=e.endsWith(".csv");return(0,n.jsxs)("div",{className:"group/pin relative",children:[(0,n.jsxs)(o(),{href:`/view/${(0,N.O0)(e)}`,className:"flex items-center gap-3 px-3 py-2 rounded-lg transition-all duration-100 hover:translate-x-0.5 hover:bg-muted overflow-hidden",children:[(0,n.jsx)(h.A,{size:12,className:"shrink-0 fill-[var(--amber)] text-[var(--amber)]"}),i?(0,n.jsx)(f.A,{size:12,className:"shrink-0 text-success"}):(0,n.jsx)(b.A,{size:12,className:"shrink-0 text-muted-foreground"}),(0,n.jsxs)("div",{className:"flex-1 min-w-0",children:[(0,n.jsx)("span",{className:"text-sm truncate block text-foreground",suppressHydrationWarning:!0,children:r}),a&&(0,n.jsx)("span",{className:"text-xs truncate block text-muted-foreground opacity-50",suppressHydrationWarning:!0,children:a})]})]}),(0,n.jsx)("button",{onClick:t=>{t.preventDefault(),t.stopPropagation(),s(e)},className:"absolute right-2 top-1/2 -translate-y-1/2 hidden group-hover/pin:flex p-1 rounded text-muted-foreground hover:text-foreground hover:bg-muted transition-colors",title:t.pinnedFiles.removedToast,children:(0,n.jsx)(g.A,{size:12})})]},e)})})]})}function q({recent:e,formatTime:t}){let{t:r}=(0,w.Y)(),[a,i]=(0,s.useState)(!1);return(0,n.jsxs)("section",{className:"mb-8",children:[(0,n.jsx)(V,{icon:(0,n.jsx)(v.A,{size:14}),count:e.length,action:(0,n.jsxs)(o(),{href:"/changelog",className:"flex items-center gap-1.5 text-xs font-medium text-[var(--amber)] transition-colors hover:opacity-80",children:[(0,n.jsx)(j.A,{size:12}),(0,n.jsx)("span",{children:r.home.changeHistory})]}),children:r.home.recentlyEdited}),(0,n.jsx)("div",{className:"flex flex-col gap-0.5",children:(a?e:e.slice(0,8)).map(({path:e,mtime:r})=>{let s=e.split("/").pop()||e,a=e.split("/").slice(0,-1).join("/"),i=e.endsWith(".csv");return(0,n.jsxs)(o(),{href:`/view/${(0,N.O0)(e)}`,className:"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",children:[i?(0,n.jsx)(f.A,{size:12,className:"shrink-0 text-success"}):(0,n.jsx)(b.A,{size:12,className:"shrink-0 text-muted-foreground"}),(0,n.jsxs)("div",{className:"flex-1 min-w-0",children:[(0,n.jsx)("span",{className:"text-sm truncate block text-foreground",suppressHydrationWarning:!0,children:s}),a&&(0,n.jsx)("span",{className:"text-xs truncate block text-muted-foreground opacity-50",suppressHydrationWarning:!0,children:a})]}),(0,n.jsx)("span",{className:"text-xs shrink-0 tabular-nums text-muted-foreground/40",suppressHydrationWarning:!0,children:t(r)})]},e)})}),e.length>8&&(0,n.jsxs)("button",{onClick:()=>i(e=>!e),"aria-expanded":a,className:"flex items-center gap-1.5 text-xs font-medium text-[var(--amber)] transition-colors hover:opacity-80 cursor-pointer mt-2 ml-1",children:[(0,n.jsx)(p.A,{size:12,className:`transition-transform duration-200 ${a?"rotate-180":""}`}),(0,n.jsx)("span",{children:a?r.home.showLess:r.home.showMore})]})]})}},30292:(e,t,r)=>{"use strict";r.d(t,{D4:()=>x,FB:()=>u,W8:()=>p,g4:()=>h,jQ:()=>b});let n="mindos:organize-history",s=new Set(["create","update","unknown"]),a=new Set(["completed","partial","undone"]),o=new Set(["upload","drag-drop","inbox-organize","import-modal","plugin","web-clipper","conversation"]);function i(e){return"object"==typeof e&&null!==e&&!Array.isArray(e)}function l(e){return i(e)&&"string"==typeof e.path&&"boolean"==typeof e.ok&&"string"==typeof e.action&&s.has(e.action)&&(void 0===e.undone||"boolean"==typeof e.undone)}function d(e){return i(e)&&"string"==typeof e.id&&Number.isFinite(e.timestamp)&&Array.isArray(e.sourceFiles)&&e.sourceFiles.every(e=>"string"==typeof e)&&Array.isArray(e.files)&&e.files.every(l)&&"string"==typeof e.status&&a.has(e.status)&&(void 0===e.source||"string"==typeof e.source&&o.has(e.source))&&(void 0===e.durationMs||Number.isFinite(e.durationMs))}function c(e){return Array.isArray(e)?e.filter(d).slice(0,50):[]}function u(){try{let e=localStorage.getItem(n);if(!e)return[];return c(JSON.parse(e))}catch{return[]}}function m(e){try{localStorage.setItem(n,JSON.stringify(c(e)))}catch{}}function x(e){let t=u();t.unshift(e);let r=t.slice(0,50);return m(r),r}function p(e,t){let r=u(),n=r.findIndex(t=>t.id===e);return n>=0&&(r[n]={...r[n],...t},m(r)),r}function h(){try{localStorage.removeItem(n)}catch{}}let f=0;function b(){return`org-${Date.now()}-${++f}`}},47170:(e,t,r)=>{Promise.resolve().then(r.bind(r,23684)),Promise.resolve().then(r.bind(r,28355))},58221:(e,t,r)=>{"use strict";r.d(t,{IX:()=>l,KW:()=>i,O0:()=>o,cn:()=>a,vr:()=>d});var n=r(10325),s=r(91498);function a(...e){return(0,s.QP)((0,n.$)(e))}function o(e){return e.split("/").map(encodeURIComponent).join("/")}function i(e,t){let r=Date.now()-e,n=Math.floor(r/6e4),s=Math.floor(r/36e5),a=Math.floor(r/864e5);return n<1?t.justNow:n<60?t.minutesAgo(n):s<24?t.hoursAgo(s):a<7?t.daysAgo(a):new Date(e).toLocaleDateString()}function l(e){let t=e.match(/^[\p{Emoji_Presentation}\p{Extended_Pictographic}]+/u);return t?.[0]??""}function d(e){return e.replace(/^[\p{Emoji_Presentation}\p{Extended_Pictographic}\s]+/u,"")||e}},69527:(e,t,r)=>{"use strict";r.d(t,{Bt:()=>x,D0:()=>d,L7:()=>f,jn:()=>h,l6:()=>m,lM:()=>p,pM:()=>b,pd:()=>c,yA:()=>u});var n=r(66839),s=r(44223),a=r(9986),o=r(55798),i=r(72615),l=r(76723);function d({label:e,hint:t,hintError:r,children:s}){return(0,n.jsxs)("div",{className:"space-y-1.5",children:[(0,n.jsx)("label",{className:"text-sm text-foreground font-medium",children:e}),s,t&&(0,n.jsx)("p",{className:`text-xs ${r?"text-destructive":"text-muted-foreground"}`,children:t})]})}function c({className:e="",...t}){return(0,n.jsx)("input",{...t,className:`w-full px-3 py-2 text-sm bg-background border border-border rounded-lg text-foreground placeholder:text-muted-foreground outline-none focus-visible:ring-1 focus-visible:ring-ring disabled:opacity-50 ${e}`})}function u({value:e,onChange:t,placeholder:r,disabled:i,className:l="",size:d="md"}){let[c,u]=(0,s.useState)(!1),m="sm"===d;return(0,n.jsxs)("div",{className:`flex items-center border border-border rounded-lg bg-background focus-within:ring-1 focus-within:ring-ring overflow-hidden ${l}`,children:[(0,n.jsx)("input",{type:c?"text":"password",value:e,onChange:e=>t(e.target.value),placeholder:r??"••••••••",disabled:i,className:`flex-1 bg-transparent text-foreground placeholder:text-muted-foreground outline-none disabled:opacity-50 ${m?"px-2.5 py-1.5 text-xs font-mono":"px-3 py-2 text-sm"}`}),!!e&&(0,n.jsx)("button",{type:"button",tabIndex:-1,onMouseDown:e=>e.preventDefault(),onClick:()=>u(e=>!e),disabled:i,className:`shrink-0 text-muted-foreground hover:text-foreground transition-colors disabled:opacity-50 ${m?"p-1.5":"p-2"}`,title:c?"Hide":"Show",children:c?(0,n.jsx)(a.A,{size:m?14:16}):(0,n.jsx)(o.A,{size:m?14:16})})]})}function m({value:e,onChange:t,children:r,className:a="",disabled:o,size:d="md"}){let c=(0,s.useId)(),[u,m]=(0,s.useState)(!1),[x,p]=(0,s.useState)(-1),h=(0,s.useRef)(null),f=(0,s.useRef)(null),b=(0,s.useMemo)(()=>s.Children.toArray(r).filter(e=>s.isValidElement(e)&&"option"===e.type).map(e=>({value:String(e.props.value??""),label:String(e.props.children??e.props.value??"")})),[r]),g=b.findIndex(t=>t.value===e),v=b[g]?.label??"";(0,s.useEffect)(()=>{if(!u)return;let e=e=>{h.current&&!h.current.contains(e.target)&&m(!1)};return document.addEventListener("mousedown",e),()=>document.removeEventListener("mousedown",e)},[u]),(0,s.useEffect)(()=>{if(u&&f.current&&x>=0){let e=f.current.children[x];e?.scrollIntoView({block:"nearest"})}},[u,x]);let j=(0,s.useCallback)(e=>{e>=0&&e<b.length&&(t?.({target:{value:b[e].value}}),m(!1))},[b,t]),y=(0,s.useCallback)(e=>{if(!u){["Enter"," ","ArrowDown","ArrowUp"].includes(e.key)&&(e.preventDefault(),m(!0),p(g>=0?g:0));return}switch(e.key){case"ArrowDown":e.preventDefault(),p(e=>Math.min(e+1,b.length-1));break;case"ArrowUp":e.preventDefault(),p(e=>Math.max(e-1,0));break;case"Enter":case" ":e.preventDefault(),j(x);break;case"Escape":e.preventDefault(),m(!1);break;case"Tab":m(!1)}},[u,b.length,g,x,j]);return(0,n.jsxs)("div",{ref:h,className:`relative ${a}`,children:[(0,n.jsxs)("button",{type:"button",disabled:o,onClick:()=>{m(e=>!e),p(g>=0?g:0)},onKeyDown:y,"aria-haspopup":"listbox","aria-expanded":u,className:`${"sm"===d?"px-1.5 py-0.5 text-xs rounded cursor-pointer":"w-full px-3 py-2 text-sm rounded-lg"} bg-background border border-border text-foreground text-left flex items-center justify-between gap-2 outline-none focus-visible:ring-1 focus-visible:ring-ring disabled:opacity-50 disabled:cursor-not-allowed`,children:[(0,n.jsx)("span",{className:`truncate ${v?"":"text-muted-foreground"}`,children:v||"—"}),(0,n.jsx)(i.A,{size:"sm"===d?10:14,className:`shrink-0 text-muted-foreground transition-transform duration-150 ${u?"rotate-180":""}`})]}),u&&(0,n.jsx)("div",{ref:f,role:"listbox","aria-activedescendant":x>=0?`${c}-opt-${x}`:void 0,className:`absolute z-20 ${"sm"===d?"min-w-[8rem]":"w-full"} mt-1 py-1 border border-border rounded-lg bg-card shadow-lg max-h-60 overflow-auto animate-in fade-in-0 zoom-in-95 duration-100`,children:b.map((t,r)=>{let s=t.value===e,a=r===x;return(0,n.jsxs)("button",{id:`${c}-opt-${r}`,role:"option","aria-selected":s,type:"button",onMouseDown:e=>{e.preventDefault(),j(r)},onMouseEnter:()=>p(r),className:`w-full ${"sm"===d?"px-2 py-1 text-xs":"px-3 py-1.5 text-sm"} text-left flex items-center gap-2 transition-colors ${a?"bg-accent text-accent-foreground":"text-foreground"}`,children:[(0,n.jsx)(l.A,{size:"sm"===d?10:14,className:`shrink-0 ${s?"text-[var(--amber)]":"invisible"}`}),(0,n.jsx)("span",{className:"truncate",children:t.label})]},t.value)})})]})}function x({overridden:e}){return e?(0,n.jsx)("span",{className:"text-2xs px-1.5 py-0.5 rounded bg-[var(--amber-subtle)] text-[var(--amber-text)] font-mono ml-1.5",children:"env"}):null}function p({checked:e,onChange:t,size:r="md",disabled:s,title:a,onClick:o}){let i="sm"===r;return(0,n.jsx)("button",{type:"button",role:"switch","aria-checked":e,disabled:s,title:a,onClick:o??(()=>t?.(!e)),className:`relative inline-flex shrink-0 cursor-pointer rounded-full border-2 border-transparent transition-colors focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring disabled:cursor-not-allowed disabled:opacity-60 ${i?"h-4 w-7":"h-5 w-9"} ${e?"bg-[var(--amber)]":"bg-muted"}`,children:(0,n.jsx)("span",{className:`pointer-events-none inline-block rounded-full bg-white shadow-sm transition-transform ${i?"h-3 w-3":"h-4 w-4"} ${e?i?"translate-x-3":"translate-x-4":"translate-x-0"}`})})}function h({children:e,disabled:t,onClick:r,type:s="button",className:a="",...o}){return(0,n.jsx)("button",{type:s,onClick:r,disabled:t,className:`px-4 py-2 text-sm font-medium rounded-lg bg-[var(--amber)] text-[var(--amber-foreground)] transition-colors disabled:opacity-40 disabled:cursor-not-allowed ${a}`,...o,children:e})}function f({icon:e,title:t,description:r,badge:s,children:a,className:o=""}){return(0,n.jsxs)("div",{className:`rounded-xl border border-border/50 bg-card/50 p-5 ${o}`,children:[(0,n.jsxs)("div",{className:"flex items-start gap-3 mb-4",children:[(0,n.jsx)("div",{className:"w-8 h-8 rounded-lg bg-muted/50 flex items-center justify-center shrink-0 mt-0.5",children:(0,n.jsx)("span",{className:"text-muted-foreground",children:e})}),(0,n.jsxs)("div",{className:"flex-1 min-w-0",children:[(0,n.jsxs)("div",{className:"flex items-center gap-2",children:[(0,n.jsx)("h3",{className:"text-sm font-semibold text-foreground",children:t}),s]}),r&&(0,n.jsx)("p",{className:"text-xs text-muted-foreground mt-0.5 leading-relaxed",children:r})]})]}),(0,n.jsx)("div",{className:"space-y-4 pl-11",children:a})]})}function b({label:e,hint:t,children:r}){return(0,n.jsxs)("div",{className:"flex items-center justify-between gap-4",children:[(0,n.jsxs)("div",{className:"flex-1 min-w-0",children:[(0,n.jsx)("div",{className:"text-sm text-foreground",children:e}),t&&(0,n.jsx)("div",{className:"text-xs text-muted-foreground mt-0.5",children:t})]}),(0,n.jsx)("div",{className:"shrink-0",children:r})]})}},72466:(e,t,r)=>{"use strict";r.d(t,{Aw:()=>d,Nh:()=>u,QL:()=>o,TM:()=>i,h0:()=>l,lL:()=>c});var n=r(79455);function s(e){let t=new Uint8Array(e),r=[];for(let e=0;e<t.length;e+=8192)r.push(String.fromCharCode(...t.subarray(e,e+8192)));return btoa(r.join(""))}async function a(e){if(e.byteLength<524288||"u"<typeof Worker)return s(e);let t=e.slice(0);return new Promise(r=>{let n=new Blob([`
|
|
1
|
+
(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[6023],{23684:(e,t,r)=>{"use strict";r.d(t,{default:()=>a});var n=r(66839),s=r(44223);function a({href:e,label:t="Redirecting..."}){return(0,s.useEffect)(()=>{window.location.replace(e)},[e]),(0,n.jsx)("main",{className:"min-h-screen flex items-center justify-center px-6",children:(0,n.jsx)("a",{href:e,className:"text-sm underline-offset-4 hover:underline focus-visible:ring-2 focus-visible:ring-ring rounded-sm",style:{color:"var(--muted-foreground)"},children:t})})}},27069:(e,t,r)=>{"use strict";r.d(t,{Z:()=>h});var n=r(44223);let s="mindos-pinned-files",a="mindos:pins-changed";function o(){try{let e=localStorage.getItem(s);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===s&&(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(s,JSON.stringify(e))}catch{}window.dispatchEvent(new Event(a))}function h(){m();let e=(0,n.useSyncExternalStore)(x,i,d),t=(0,n.useCallback)(t=>e.includes(t),[e]),r=(0,n.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,n.useCallback)(e=>{p(e)},[]),removePin:(0,n.useCallback)(e=>{p(o().filter(t=>t!==e))},[])}}},28355:(e,t,r)=>{"use strict";r.d(t,{default:()=>X});var n=r(66839),s=r(44223),a=r(18016),o=r.n(a),i=r(19378),l=r(38325),d=r(86386),c=r(8973),u=r(32959),m=r(73601),x=r(27636),p=r(72615),h=r(82417),f=r(18659),b=r(30401),g=r(72799),v=r(12361),j=r(11235),y=r(27069),w=r(2073),N=r(58221),k=r(95991),A=r(98940),E=r(44361),C=r(98327),z=r(31082),$=r(10952),S=r(59694),D=r(21082),L=r(4373),R=r(24336),F=r(31606),T=r(76723),M=r(56261),W=r(79455),O=r(72466),P=r(30292);function I({isOrganizing:e=!1}){let{t}=(0,w.Y)(),[r,a]=(0,s.useState)([]),[l,d]=(0,s.useState)(!0),[c,u]=(0,s.useState)(!1),[m,x]=(0,s.useState)(!1),[p,h]=(0,s.useState)(!1),[f,b]=(0,s.useState)([]),[g,j]=(0,s.useState)(""),[y,N]=(0,s.useState)(!1),D=(0,s.useRef)(null),L=(0,s.useRef)(null),R=(0,s.useRef)(0),F=e||c,T=(0,s.useCallback)(()=>{0===r.length||F||(u(!0),window.dispatchEvent(new CustomEvent("mindos:inbox-organize",{detail:{files:r}})))},[r,F]),M=(0,s.useCallback)(async e=>{try{if(!(await fetch("/api/inbox",{method:"DELETE",headers:{"Content-Type":"application/json"},body:JSON.stringify({names:[e]})})).ok)throw Error("Failed to delete");a(t=>t.filter(t=>t.name!==e)),window.dispatchEvent(new Event("mindos:inbox-updated")),W.oR.success(t.inbox.fileRemoved)}catch{W.oR.error(t.inbox.fileRemoveFailed)}},[t]),I=(0,s.useCallback)(e=>{e&&0!==e.length&&((0,O.QL)(Array.from(e),t),D.current&&(D.current.value=""))},[t]),B=(0,s.useCallback)(async e=>{let r=e.trim();if(r){if(!(0,O.h0)(r))return void W.oR.error(t.inbox.clipInvalidUrl,3e3);N(!0);try{await (0,O.TM)(r,t),j("")}finally{N(!1)}}},[t]),H=(0,s.useCallback)(e=>{e.preventDefault(),e.stopPropagation(),R.current=0,x(!1),h(!1);let r=(0,O.Aw)(e.nativeEvent);r?B(r):e.dataTransfer.files.length>0&&(0,O.QL)(Array.from(e.dataTransfer.files),t)},[t,B]),K=(0,s.useCallback)(async()=>{try{let e=await fetch("/api/inbox");if(!e.ok)return;let t=await e.json();Array.isArray(t.files)&&a(t.files)}catch(e){console.warn("[InboxSection] Failed to fetch inbox:",e)}finally{d(!1)}},[]),J=(0,s.useCallback)(()=>{b((0,P.FB)().slice(0,3))},[]),Y=(0,s.useRef)(void 0),Q=(0,s.useCallback)(()=>{clearTimeout(Y.current),Y.current=setTimeout(()=>{K(),J()},80)},[K,J]);(0,s.useEffect)(()=>{let e=()=>{R.current=0,x(!1),h(!1)};return window.addEventListener("drop",e,!0),window.addEventListener("dragend",e,!0),()=>{window.removeEventListener("drop",e,!0),window.removeEventListener("dragend",e,!0)}},[]),(0,s.useEffect)(()=>{K(),J();let e=()=>{u(!1),Q()};return window.addEventListener("mindos:files-changed",Q),window.addEventListener("mindos:inbox-updated",Q),window.addEventListener("mindos:organize-done",e),window.addEventListener("mindos:organize-history-update",J),()=>{clearTimeout(Y.current),window.removeEventListener("mindos:files-changed",Q),window.removeEventListener("mindos:inbox-updated",Q),window.removeEventListener("mindos:organize-done",e),window.removeEventListener("mindos:organize-history-update",J)}},[K,Q,J]);let X=(0,s.useMemo)(()=>r.slice(0,5),[r]),V=Math.max(0,r.length-5),Z=r.length>0,[q,G]=(0,s.useState)(0);return((0,s.useEffect)(()=>{G((0,P.FB)().length)},[f]),l)?(0,n.jsxs)("section",{className:"mb-8 animate-pulse",children:[(0,n.jsx)("div",{className:"h-4 w-24 bg-muted rounded mb-3"}),(0,n.jsxs)("div",{className:"space-y-2",children:[(0,n.jsx)("div",{className:"h-10 bg-muted/50 rounded-lg"}),(0,n.jsx)("div",{className:"h-10 bg-muted/50 rounded-lg"})]})]}):(0,n.jsxs)("section",{className:"mb-8",children:[(0,n.jsxs)("div",{className:"flex items-center gap-2.5 mb-4",children:[(0,n.jsx)("div",{className:"flex items-center justify-center w-6 h-6 rounded-md bg-[var(--amber-subtle)] text-[var(--amber)]",children:(0,n.jsx)(k.A,{size:13})}),(0,n.jsx)("h2",{className:"text-[13px] font-semibold text-foreground tracking-wide",children:t.inbox.title}),Z&&(0,n.jsx)("span",{className:"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 shadow-sm shadow-black/[0.02]",children:t.inbox.count(r.length)}),Z&&(0,n.jsxs)("div",{className:"ml-auto flex items-center gap-3",children:[(0,n.jsxs)("button",{type:"button",onClick:()=>D.current?.click(),className:"flex items-center gap-1.5 text-xs font-medium text-muted-foreground rounded-md px-2 py-1 transition-all duration-150 ease-out hover:text-foreground hover:bg-muted/40 cursor-pointer",title:t.inbox.uploadButton,children:[(0,n.jsx)(A.A,{size:12}),(0,n.jsx)("span",{className:"hidden sm:inline",children:t.inbox.uploadButton})]}),(0,n.jsxs)("button",{onClick:T,disabled:F,className:"flex items-center gap-1.5 text-xs font-medium text-[var(--amber)] bg-[var(--amber)]/[0.08] rounded-md px-2.5 py-1 transition-all duration-150 ease-out hover:bg-[var(--amber)]/[0.15] cursor-pointer disabled:opacity-50 disabled:cursor-not-allowed",title:F?t.inbox.organizing:void 0,children:[F?(0,n.jsx)(E.A,{size:12,className:"animate-spin"}):(0,n.jsx)(i.A,{size:12}),(0,n.jsx)("span",{children:F?t.inbox.organizing:t.inbox.organizeButton})]})]})]}),(0,n.jsx)("input",{ref:D,type:"file",multiple:!0,accept:".md,.markdown,.txt,.csv,.json,.yaml,.yml,.xml,.html,.htm,.pdf,.doc,.docx,.docm",className:"hidden",onChange:e=>I(e.target.files)}),Z&&(0,n.jsxs)("div",{className:"rounded-xl bg-card/50 border border-border/10 p-1 mb-3",children:[(0,n.jsx)("div",{className:"flex flex-col gap-px",children:X.map(e=>(0,n.jsx)(U,{file:e,onDelete:M},e.path))}),V>0&&(0,n.jsxs)(o(),{href:"/capture",className:"flex items-center gap-1 px-3 py-1.5 text-xs text-muted-foreground hover:text-[var(--amber)] transition-colors duration-150",children:[(0,n.jsx)(C.A,{size:12}),t.inbox.viewAllFiles(r.length)]})]}),(0,n.jsxs)("div",{className:`rounded-xl border overflow-hidden transition-all duration-150 ease-out ${m?"border-[var(--amber)] bg-[var(--amber-subtle)] shadow-[inset_0_0_0_1px_var(--amber)]":"border-border/40 bg-card/30"}`,onDragEnter:e=>{let t=e.dataTransfer.types.includes("Files"),r=(0,O.lL)(e.nativeEvent);(t||r)&&(e.preventDefault(),e.stopPropagation(),R.current++,1===R.current&&(x(!0),h(r&&!t)))},onDragOver:e=>{let t=e.dataTransfer.types.includes("Files"),r=(0,O.lL)(e.nativeEvent);(t||r)&&(e.preventDefault(),e.stopPropagation())},onDragLeave:e=>{e.stopPropagation(),R.current=Math.max(0,R.current-1),0===R.current&&(x(!1),h(!1))},onDrop:H,children:[(0,n.jsx)("div",{className:`cursor-pointer transition-colors duration-150 ${Z?"px-4 py-3":"px-4 py-7"} ${!m?"hover:bg-muted/[0.06]":""}`,role:"button",tabIndex:0,"aria-label":t.inbox.uploadButton,onClick:()=>D.current?.click(),onKeyDown:e=>{("Enter"===e.key||" "===e.key)&&(e.preventDefault(),D.current?.click())},children:m&&p?(0,n.jsxs)("div",{className:"flex items-center justify-center gap-2.5 text-center py-1",children:[(0,n.jsx)(z.A,{size:20,className:"shrink-0 text-[var(--amber)] animate-pulse"}),(0,n.jsx)("p",{className:"text-sm font-medium text-[var(--amber)]",children:t.inbox.dropUrlOverlay})]}):Z?(0,n.jsxs)("div",{className:"flex items-center justify-center gap-2 text-center",children:[(0,n.jsx)($.A,{size:15,className:`shrink-0 ${m?"text-[var(--amber)]":"text-muted-foreground/30"}`}),(0,n.jsxs)("p",{className:"text-xs text-muted-foreground/50",children:[t.inbox.dropFilesOrLinks," ",(0,n.jsx)("span",{className:"text-[var(--amber)]/70 hover:text-[var(--amber)] hover:underline",children:t.fileImport.dropzoneCompactButton})]})]}):(0,n.jsxs)("div",{className:"flex flex-col items-center gap-1.5 text-center",children:[(0,n.jsx)($.A,{size:26,className:`${m?"text-[var(--amber)]":"text-muted-foreground/15"}`}),(0,n.jsx)("p",{className:"text-sm text-muted-foreground/60",children:t.inbox.emptyTitle}),(0,n.jsx)("p",{className:"text-xs text-muted-foreground/35",children:t.inbox.emptyDesc}),(0,n.jsx)("p",{className:"text-2xs text-muted-foreground/25",children:t.inbox.dropOverlayFormats}),(0,n.jsxs)("button",{type:"button",onClick:e=>{e.stopPropagation(),D.current?.click()},className:"mt-1 inline-flex items-center gap-1.5 px-3 py-1.5 text-xs font-medium rounded-lg transition-all duration-150 ease-out bg-muted/60 text-muted-foreground hover:text-foreground hover:bg-muted/80",children:[(0,n.jsx)(A.A,{size:12}),t.inbox.uploadButton]})]})}),(0,n.jsx)("div",{className:"border-t border-border/20 mx-3"}),(0,n.jsxs)("div",{className:"flex items-center gap-2.5 px-4 py-2.5 transition-colors duration-150 focus-within:bg-muted/[0.06]",onClick:e=>{e.stopPropagation(),L.current?.focus()},children:[(0,n.jsx)("div",{className:`flex items-center justify-center w-6 h-6 rounded-md shrink-0 transition-colors duration-150 ${y?"bg-[var(--amber)]/15":g?"bg-[var(--amber)]/10":"bg-muted/50"}`,children:y?(0,n.jsx)(E.A,{size:12,className:"text-[var(--amber)] animate-spin"}):(0,n.jsx)(S.A,{size:12,className:`transition-colors duration-150 ${g?"text-[var(--amber)]":"text-muted-foreground/40"}`})}),(0,n.jsx)("input",{ref:L,type:"url",value:g,onChange:e=>j(e.target.value),onKeyDown:e=>{"Enter"!==e.key||y||(e.preventDefault(),B(g))},onPaste:e=>{let t=e.clipboardData.getData("text/plain").trim();t&&(0,O.h0)(t)&&!g&&(e.preventDefault(),j(t),setTimeout(()=>B(t),50))},placeholder:t.inbox.clipUrlPlaceholder,disabled:y,className:"flex-1 min-w-0 bg-transparent text-sm text-foreground placeholder:text-muted-foreground/30 outline-none disabled:opacity-50"}),g&&!y&&(0,n.jsxs)("button",{type:"button",onClick:e=>{e.stopPropagation(),B(g)},className:"shrink-0 flex items-center gap-1.5 px-3 py-1 text-xs font-medium rounded-lg bg-[var(--amber)]/10 text-[var(--amber)] hover:bg-[var(--amber)]/20 transition-all duration-150 ease-out cursor-pointer",children:[(0,n.jsx)(z.A,{size:11}),t.inbox.clipButton]}),y&&(0,n.jsx)("span",{className:"shrink-0 text-xs text-[var(--amber)]/70 tabular-nums",children:t.inbox.clipping})]})]}),f.length>0&&(0,n.jsxs)("div",{className:"mt-5",children:[(0,n.jsxs)("div",{className:"flex items-center gap-2 mb-2",children:[(0,n.jsx)(v.A,{size:11,className:"text-muted-foreground/40"}),(0,n.jsx)("span",{className:"text-2xs font-medium text-muted-foreground/60 uppercase tracking-wider",children:t.importHistory.title}),(0,n.jsx)(o(),{href:"/capture/history",className:"ml-auto text-2xs text-muted-foreground/50 hover:text-[var(--amber)] transition-colors",children:t.inbox.viewAllHistory(q)})]}),(0,n.jsx)("div",{className:"flex flex-col gap-1",children:f.map(e=>(0,n.jsx)(_,{entry:e},e.id))})]})]})}function U({file:e,onDelete:t}){let{t:r}=(0,w.Y)(),a=(0,M.useRouter)(),o=e.name.endsWith(".csv"),i=H(e.modifiedAt,r.home.relativeTime),[l,d]=(0,s.useState)(null),c=()=>{a.push(`/view/${(0,N.O0)(e.path)}`)};return(0,n.jsxs)(n.Fragment,{children:[(0,n.jsxs)("div",{role:"button",tabIndex:0,onClick:c,onKeyDown:e=>{"Enter"===e.key&&c()},onContextMenu:e=>{e.preventDefault(),e.stopPropagation(),d({x:e.clientX,y:e.clientY})},className:"flex items-center gap-3 px-3.5 py-2.5 rounded-lg transition-all duration-150 ease-out hover:translate-x-0.5 hover:bg-muted/50 hover:shadow-sm hover:shadow-black/[0.03] group cursor-pointer",children:[(0,n.jsx)("span",{className:`w-[5px] h-[5px] rounded-full shrink-0 ring-2 ring-background ${e.isAging?"bg-[var(--amber)]/60":"bg-[var(--amber)]"}`}),o?(0,n.jsx)(f.A,{size:12,className:"shrink-0 text-success"}):(0,n.jsx)(b.A,{size:12,className:"shrink-0 text-muted-foreground"}),(0,n.jsx)("span",{className:"text-sm truncate flex-1 text-foreground",title:e.name,suppressHydrationWarning:!0,children:e.name}),(0,n.jsx)("span",{className:"text-2xs text-muted-foreground/40 tabular-nums shrink-0 group-hover:hidden",children:i}),e.isAging&&(0,n.jsx)("span",{title:"7+ days",className:"group-hover:hidden",children:(0,n.jsx)(D.A,{size:11,className:"shrink-0 text-[var(--amber)]/60"})}),(0,n.jsx)("button",{type:"button",onClick:r=>{r.stopPropagation(),r.preventDefault(),t(e.name)},className:"hidden group-hover:flex items-center justify-center w-5 h-5 rounded shrink-0 text-muted-foreground/50 hover:text-destructive hover:bg-destructive/10 transition-all duration-150 ease-out",title:r.inbox.removeFile,children:(0,n.jsx)(g.A,{size:12})})]}),l&&(0,n.jsx)(B,{x:l.x,y:l.y,file:e,onDelete:()=>{d(null),t(e.name)},onClose:()=>d(null)})]})}function B({x:e,y:t,file:r,onDelete:a,onClose:o}){let i=(0,s.useRef)(null),l=(0,M.useRouter)(),{t:d}=(0,w.Y)();(0,s.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 c=Math.min(e,window.innerWidth-200),u=Math.min(t,window.innerHeight-120),m="w-full flex items-center gap-2 px-3 py-1.5 text-sm text-foreground hover:bg-muted transition-colors text-left";return(0,n.jsxs)("div",{ref:i,className:"fixed z-50 min-w-[160px] bg-card border border-border rounded-lg shadow-lg py-1",style:{top:u,left:c},children:[(0,n.jsxs)("button",{className:m,onClick:()=>{l.push(`/view/${(0,N.O0)(r.path)}`),o()},children:[(0,n.jsx)(L.A,{size:14,className:"shrink-0"})," ",d.inbox.openFile]}),(0,n.jsxs)("button",{className:m,onClick:()=>{navigator.clipboard.writeText(r.name),W.oR.copy(),o()},children:[(0,n.jsx)(R.A,{size:14,className:"shrink-0"})," ",d.inbox.copyName]}),(0,n.jsx)("div",{className:"border-t border-border my-1"}),(0,n.jsxs)("button",{className:`${m} text-destructive hover:text-destructive`,onClick:a,children:[(0,n.jsx)(F.A,{size:14,className:"shrink-0"})," ",d.inbox.removeFile]})]})}function _({entry:e}){let[t,r]=(0,s.useState)(!1),a="undone"===e.status,i=function(e){switch(e){case"drag-drop":return{label:"drop",className:"bg-muted/50 text-muted-foreground/50"};case"inbox-organize":return{label:"inbox",className:"bg-[var(--amber)]/10 text-[var(--amber)]/70"};case"import-modal":return{label:"import",className:"bg-blue-500/10 text-blue-500/70"};case"plugin":return{label:"plugin",className:"bg-violet-500/10 text-violet-500/70"};case"upload":return{label:"upload",className:"bg-teal-500/10 text-teal-500/70"};case"web-clipper":return{label:"clip",className:"bg-emerald-500/10 text-emerald-500/70"};default:return null}}(e.source),l=e.durationMs?function(e){let t=Math.round(e/1e3);if(t<60)return`${t}s`;let r=Math.floor(t/60),n=t%60;return`${r}m${n>0?`${n}s`:""}`}(e.durationMs):null,d=H(new Date(e.timestamp).toISOString(),{justNow:"just now",minutesAgo:e=>`${e}m ago`,hoursAgo:e=>`${e}h ago`,daysAgo:e=>`${e}d ago`});return(0,n.jsxs)("div",{className:"rounded-lg border border-border/15 overflow-hidden",children:[(0,n.jsxs)("button",{type:"button",onClick:()=>r(e=>!e),className:"w-full flex items-center gap-2 px-3 py-2 text-left hover:bg-muted/15 transition-all duration-150 ease-out",children:[a?(0,n.jsx)(D.A,{size:12,className:"text-muted-foreground/40 shrink-0"}):(0,n.jsx)(T.A,{size:12,className:"text-success/70 shrink-0"}),(0,n.jsxs)("div",{className:"flex-1 min-w-0 flex items-center gap-1.5",children:[(0,n.jsx)("span",{className:`text-xs truncate ${a?"text-muted-foreground/50 line-through":"text-foreground/80"}`,children:1===e.sourceFiles.length?e.sourceFiles[0]:`${e.sourceFiles.length} files`}),i&&(0,n.jsx)("span",{className:`text-2xs px-1.5 py-0.5 rounded shrink-0 ${i.className}`,children:i.label})]}),(0,n.jsxs)("span",{className:"text-2xs text-muted-foreground/40 tabular-nums shrink-0",children:[l&&`${l} \xb7 `,d]}),e.files.length>0&&(0,n.jsx)(p.A,{size:10,className:`text-muted-foreground/30 shrink-0 transition-transform duration-150 ${t?"rotate-180":""}`})]}),t&&e.files.length>0&&(0,n.jsx)("div",{className:"border-t border-border/10 px-3 py-1.5 space-y-0.5",children:e.files.map((e,t)=>{let r=e.path.split("/"),s=r.pop()??e.path,a=r.length>0?r.join("/"):null,i=!e.undone&&e.ok,l=`flex items-center gap-2 py-1 text-2xs${e.undone?" opacity-40":""}${i?" rounded -mx-1 px-1 hover:bg-muted/20 transition-colors":""}`,d=(0,n.jsxs)(n.Fragment,{children:[(0,n.jsx)("span",{className:`w-1 h-1 rounded-full shrink-0 ${e.ok&&!e.undone?"bg-success/60":"bg-muted-foreground/30"}`}),(0,n.jsxs)("span",{className:`truncate flex-1 min-w-0 ${e.undone?"line-through text-muted-foreground":""}`,children:[a&&(0,n.jsxs)("span",{className:"text-muted-foreground/30",children:[a,"/"]}),(0,n.jsx)("span",{className:e.undone?"":"text-foreground/70",children:s})]}),(0,n.jsx)("span",{className:"text-muted-foreground/40 shrink-0",children:e.undone?"undone":"create"===e.action?"created":"updated"})]});return i?(0,n.jsx)(o(),{href:`/view/${(0,N.O0)(e.path)}`,className:l,children:d},`${e.path}-${t}`):(0,n.jsx)("div",{className:l,children:d},`${e.path}-${t}`)})})]})}function H(e,t){let r=Math.floor((Date.now()-new Date(e).getTime())/6e4);if(r<1)return t.justNow;if(r<60)return t.minutesAgo(r);let n=Math.floor(r/60);if(n<24)return t.hoursAgo(n);let s=Math.floor(n/24);return t.daysAgo(s)}var K=r(69527);function J(){window.dispatchEvent(new KeyboardEvent("keydown",{key:"k",metaKey:!0,bubbles:!0}))}function Y(){window.dispatchEvent(new KeyboardEvent("keydown",{key:"/",metaKey:!0,bubbles:!0}))}function Q(e,t){let r=0;for(let n of t)n.path.startsWith(`${e}/`)&&(r=Math.max(r,n.mtime));return r}function X({spaces:e,recent:t}){let{t:r}=(0,w.Y)(),[a,h]=(0,s.useState)("recent"),[f,b]=(0,s.useState)(!1),[g,v]=(0,s.useState)(0),j=r.ask?.suggestions??["Summarize this document","List all action items","What are the key points?","Find related notes"];(0,s.useEffect)(()=>{let e=setInterval(()=>{v(e=>(e+1)%j.length)},4e3);return()=>clearInterval(e)},[j.length]);let y=(0,s.useMemo)(()=>{let r=[...e];return"recent"===a?r.sort((e,r)=>{let n=Q(e.name,t);return Q(r.name,t)-n}):"name"===a?r.sort((e,t)=>e.name.localeCompare(t.name)):"fileCount"===a&&r.sort((e,t)=>t.fileCount-e.fileCount),r},[e,t,a]),k=f?y:y.slice(0,6),A=e=>(0,N.KW)(e,r.home.relativeTime),E=t[0];return(0,n.jsxs)("div",{className:"content-width px-4 md:px-6 py-10 md:py-14",children:[(0,n.jsxs)("div",{className:"mb-10",children:[(0,n.jsxs)("div",{className:"flex items-center gap-3 mb-6",children:[(0,n.jsx)("div",{className:"w-1 h-7 rounded-full bg-gradient-to-b from-[var(--amber)] to-[var(--amber)]/20"}),(0,n.jsx)("h1",{className:"text-2xl font-semibold tracking-tight text-foreground",children:r.sidebar.files})]}),(0,n.jsxs)("div",{className:"w-full max-w-xl flex flex-col sm:flex-row items-stretch sm:items-center gap-2 pl-4",children:[(0,n.jsxs)("button",{onClick:Y,title:"⌘/",className:"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",children:[(0,n.jsx)(i.A,{size:16,className:"shrink-0 text-[var(--amber)] group-hover:scale-110 transition-transform duration-150"}),(0,n.jsx)("div",{className:"flex-1 min-h-[1.5rem] flex items-center",children:(0,n.jsx)("span",{className:"text-sm text-left text-muted-foreground animate-in fade-in duration-300",children:j[g].label},g)}),(0,n.jsx)("kbd",{className:"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)]",children:"⌘/"})]}),(0,n.jsxs)("button",{onClick:J,title:"⌘K",className:"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",children:[(0,n.jsx)(l.A,{size:14}),(0,n.jsx)("kbd",{className:"hidden sm:inline-flex items-center px-1.5 py-0.5 rounded text-xs font-mono bg-muted",children:"⌘K"})]})]}),(0,n.jsxs)("div",{className:"flex items-center gap-3 mt-4 pl-4",children:[(0,n.jsxs)(o(),{href:"/view/Untitled.md",className:"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)]",children:[(0,n.jsx)(d.A,{size:14}),(0,n.jsx)("span",{children:r.home.newNote})]}),E&&(0,n.jsxs)(o(),{href:`/view/${(0,N.O0)(E.path)}`,className:"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",children:[(0,n.jsx)(c.A,{size:14,className:"text-[var(--amber)]/60"}),(0,n.jsx)("span",{children:r.home.continueEditing}),(0,n.jsx)("span",{className:"text-xs opacity-40 truncate max-w-32",suppressHydrationWarning:!0,children:E.path.split("/").pop()})]})]})]}),(0,n.jsxs)("section",{className:"mb-10",children:[(0,n.jsxs)("div",{className:"flex items-center gap-2.5 mb-5",children:[(0,n.jsx)("div",{className:"flex items-center justify-center w-6 h-6 rounded-md bg-[var(--amber-subtle)] text-[var(--amber)]",children:(0,n.jsx)(u.A,{size:14})}),(0,n.jsx)("h2",{className:"text-[13px] font-semibold text-foreground tracking-wide",children:r.home.spaces}),e.length>0&&(0,n.jsx)("span",{className:"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",children:e.length}),(0,n.jsxs)("div",{className:"ml-auto flex items-center gap-3",children:[e.length>0&&(0,n.jsxs)(K.l6,{size:"sm",value:a,onChange:e=>h(e.target.value),children:[(0,n.jsx)("option",{value:"recent",children:r.home.sortRecent??"Recent"}),(0,n.jsx)("option",{value:"name",children:r.home.sortName??"A-Z"}),(0,n.jsx)("option",{value:"fileCount",children:r.home.sortCount??"File Count"})]}),(0,n.jsxs)("button",{onClick:()=>window.dispatchEvent(new Event("mindos:create-space")),className:"flex items-center gap-1.5 text-xs font-medium text-[var(--amber)] transition-colors hover:opacity-80 cursor-pointer font-display",children:[(0,n.jsx)(m.A,{size:12}),(0,n.jsx)("span",{children:r.home.newSpace})]})]})]}),0===e.length?(0,n.jsxs)("div",{className:"rounded-xl border border-border/40 bg-card/30 px-6 py-12 text-center",children:[(0,n.jsx)("div",{className:"inline-flex items-center justify-center w-12 h-12 rounded-full bg-[var(--amber-subtle)] mb-4",children:(0,n.jsx)(u.A,{size:22,className:"text-[var(--amber)]/60"})}),(0,n.jsx)("p",{className:"text-sm font-medium text-muted-foreground/70 mb-1",children:r.home.noSpacesYet??"No spaces yet"}),(0,n.jsx)("p",{className:"text-xs text-muted-foreground/60 mb-4",children:"Create your first space to organize your knowledge"}),(0,n.jsxs)("button",{onClick:()=>window.dispatchEvent(new Event("mindos:create-space")),className:"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",children:[(0,n.jsx)(m.A,{size:14}),"Create Space"]})]}):(0,n.jsxs)(n.Fragment,{children:[(0,n.jsx)("div",{className:"grid grid-cols-1 sm:grid-cols-2 lg:grid-cols-3 gap-2",children:k.map(e=>{let s=(0,N.IX)(e.name),a=(0,N.vr)(e.name),i=Q(e.name,t),l=0===e.fileCount;return(0,n.jsxs)(o(),{href:`/view/${(0,N.O0)(e.path)}`,className:`flex items-start gap-3 px-4 py-3.5 rounded-xl border transition-all duration-200 ${l?"border-dashed border-border/50 opacity-50 hover:opacity-70":"border-border/60 hover:border-[var(--amber)]/30 hover:shadow-md hover:-translate-y-0.5 bg-card/40"}`,children:[s?(0,n.jsx)("span",{className:"text-lg leading-none shrink-0 mt-0.5",suppressHydrationWarning:!0,children:s}):(0,n.jsx)(x.A,{size:16,className:"shrink-0 text-[var(--amber)] mt-0.5"}),(0,n.jsxs)("div",{className:"min-w-0 flex-1",children:[(0,n.jsx)("span",{className:"text-sm font-medium truncate block text-foreground",children:a}),e.description&&(0,n.jsx)("span",{className:"text-xs text-muted-foreground line-clamp-1 mt-0.5",suppressHydrationWarning:!0,children:e.description}),(0,n.jsxs)("span",{className:"text-xs text-muted-foreground/50 mt-0.5 block tabular-nums",children:[r.home.nFiles(e.fileCount),i>0&&` \xb7 ${A(i)}`]})]})]},e.name)})}),y.length>6&&(0,n.jsxs)("button",{onClick:()=>b(!f),"aria-expanded":f,className:"flex items-center gap-1.5 text-xs font-medium text-[var(--amber)] transition-colors hover:opacity-80 cursor-pointer font-display mt-3",children:[(0,n.jsx)(p.A,{size:12,className:`transition-transform duration-200 ${f?"rotate-180":""}`}),(0,n.jsx)("span",{children:f?r.home.showLess:r.home.showMore})]})]})]}),(0,n.jsx)(I,{}),(0,n.jsx)(Z,{formatTime:A}),(0,n.jsx)("div",{className:"border-t border-border/30 mb-8"}),t.length>0&&(0,n.jsx)(q,{recent:t,formatTime:A}),(0,n.jsxs)("div",{className:"py-6 border-t border-border/20 flex items-center gap-1.5 text-xs font-display text-muted-foreground/30",children:[(0,n.jsx)(i.A,{size:10,className:"text-[var(--amber)]/40"}),(0,n.jsx)("span",{children:r.app.footer})]})]})}function V({icon:e,children:t,count:r,action:s}){return(0,n.jsxs)("div",{className:"flex items-center gap-2.5 mb-4",children:[(0,n.jsx)("div",{className:"flex items-center justify-center w-6 h-6 rounded-md bg-[var(--amber-subtle)] text-[var(--amber)]",children:e}),(0,n.jsx)("h2",{className:"text-[13px] font-semibold text-foreground tracking-wide",children:t}),null!=r&&r>0&&(0,n.jsx)("span",{className:"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",children:r}),s?(0,n.jsx)("div",{className:"ml-auto",children:s}):null]})}function Z({formatTime:e}){let{t}=(0,w.Y)(),{pinnedFiles:r,removePin:s}=(0,y.Z)();return 0===r.length?null:(0,n.jsxs)("section",{className:"mb-8",children:[(0,n.jsx)(V,{icon:(0,n.jsx)(h.A,{size:14}),count:r.length,children:t.pinnedFiles.title}),(0,n.jsx)("div",{className:"flex flex-col gap-0.5",children:r.map(e=>{let r=e.split("/").pop()||e,a=e.split("/").slice(0,-1).join("/"),i=e.endsWith(".csv");return(0,n.jsxs)("div",{className:"group/pin relative",children:[(0,n.jsxs)(o(),{href:`/view/${(0,N.O0)(e)}`,className:"flex items-center gap-3 px-3 py-2 rounded-lg transition-all duration-100 hover:translate-x-0.5 hover:bg-muted overflow-hidden",children:[(0,n.jsx)(h.A,{size:12,className:"shrink-0 fill-[var(--amber)] text-[var(--amber)]"}),i?(0,n.jsx)(f.A,{size:12,className:"shrink-0 text-success"}):(0,n.jsx)(b.A,{size:12,className:"shrink-0 text-muted-foreground"}),(0,n.jsxs)("div",{className:"flex-1 min-w-0",children:[(0,n.jsx)("span",{className:"text-sm truncate block text-foreground",suppressHydrationWarning:!0,children:r}),a&&(0,n.jsx)("span",{className:"text-xs truncate block text-muted-foreground opacity-50",suppressHydrationWarning:!0,children:a})]})]}),(0,n.jsx)("button",{onClick:t=>{t.preventDefault(),t.stopPropagation(),s(e)},className:"absolute right-2 top-1/2 -translate-y-1/2 hidden group-hover/pin:flex p-1 rounded text-muted-foreground hover:text-foreground hover:bg-muted transition-colors",title:t.pinnedFiles.removedToast,children:(0,n.jsx)(g.A,{size:12})})]},e)})})]})}function q({recent:e,formatTime:t}){let{t:r}=(0,w.Y)(),[a,i]=(0,s.useState)(!1);return(0,n.jsxs)("section",{className:"mb-8",children:[(0,n.jsx)(V,{icon:(0,n.jsx)(v.A,{size:14}),count:e.length,action:(0,n.jsxs)(o(),{href:"/changelog",className:"flex items-center gap-1.5 text-xs font-medium text-[var(--amber)] transition-colors hover:opacity-80",children:[(0,n.jsx)(j.A,{size:12}),(0,n.jsx)("span",{children:r.home.changeHistory})]}),children:r.home.recentlyEdited}),(0,n.jsx)("div",{className:"flex flex-col gap-0.5",children:(a?e:e.slice(0,8)).map(({path:e,mtime:r})=>{let s=e.split("/").pop()||e,a=e.split("/").slice(0,-1).join("/"),i=e.endsWith(".csv");return(0,n.jsxs)(o(),{href:`/view/${(0,N.O0)(e)}`,className:"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",children:[i?(0,n.jsx)(f.A,{size:12,className:"shrink-0 text-success"}):(0,n.jsx)(b.A,{size:12,className:"shrink-0 text-muted-foreground"}),(0,n.jsxs)("div",{className:"flex-1 min-w-0",children:[(0,n.jsx)("span",{className:"text-sm truncate block text-foreground",suppressHydrationWarning:!0,children:s}),a&&(0,n.jsx)("span",{className:"text-xs truncate block text-muted-foreground opacity-50",suppressHydrationWarning:!0,children:a})]}),(0,n.jsx)("span",{className:"text-xs shrink-0 tabular-nums text-muted-foreground/40",suppressHydrationWarning:!0,children:t(r)})]},e)})}),e.length>8&&(0,n.jsxs)("button",{onClick:()=>i(e=>!e),"aria-expanded":a,className:"flex items-center gap-1.5 text-xs font-medium text-[var(--amber)] transition-colors hover:opacity-80 cursor-pointer mt-2 ml-1",children:[(0,n.jsx)(p.A,{size:12,className:`transition-transform duration-200 ${a?"rotate-180":""}`}),(0,n.jsx)("span",{children:a?r.home.showLess:r.home.showMore})]})]})}},30292:(e,t,r)=>{"use strict";r.d(t,{D4:()=>x,FB:()=>u,W8:()=>p,g4:()=>h,jQ:()=>b});let n="mindos:organize-history",s=new Set(["create","update","unknown"]),a=new Set(["completed","partial","undone"]),o=new Set(["upload","drag-drop","inbox-organize","import-modal","plugin","web-clipper","conversation"]);function i(e){return"object"==typeof e&&null!==e&&!Array.isArray(e)}function l(e){return i(e)&&"string"==typeof e.path&&"boolean"==typeof e.ok&&"string"==typeof e.action&&s.has(e.action)&&(void 0===e.undone||"boolean"==typeof e.undone)}function d(e){return i(e)&&"string"==typeof e.id&&Number.isFinite(e.timestamp)&&Array.isArray(e.sourceFiles)&&e.sourceFiles.every(e=>"string"==typeof e)&&Array.isArray(e.files)&&e.files.every(l)&&"string"==typeof e.status&&a.has(e.status)&&(void 0===e.source||"string"==typeof e.source&&o.has(e.source))&&(void 0===e.durationMs||Number.isFinite(e.durationMs))}function c(e){return Array.isArray(e)?e.filter(d).slice(0,50):[]}function u(){try{let e=localStorage.getItem(n);if(!e)return[];return c(JSON.parse(e))}catch{return[]}}function m(e){try{localStorage.setItem(n,JSON.stringify(c(e)))}catch{}}function x(e){let t=u();t.unshift(e);let r=t.slice(0,50);return m(r),r}function p(e,t){let r=u(),n=r.findIndex(t=>t.id===e);return n>=0&&(r[n]={...r[n],...t},m(r)),r}function h(){try{localStorage.removeItem(n)}catch{}}let f=0;function b(){return`org-${Date.now()}-${++f}`}},44962:(e,t,r)=>{Promise.resolve().then(r.bind(r,23684)),Promise.resolve().then(r.bind(r,28355))},58221:(e,t,r)=>{"use strict";r.d(t,{IX:()=>l,KW:()=>i,O0:()=>o,cn:()=>a,vr:()=>d});var n=r(10325),s=r(91498);function a(...e){return(0,s.QP)((0,n.$)(e))}function o(e){return e.split("/").map(encodeURIComponent).join("/")}function i(e,t){let r=Date.now()-e,n=Math.floor(r/6e4),s=Math.floor(r/36e5),a=Math.floor(r/864e5);return n<1?t.justNow:n<60?t.minutesAgo(n):s<24?t.hoursAgo(s):a<7?t.daysAgo(a):new Date(e).toLocaleDateString()}function l(e){let t=e.match(/^[\p{Emoji_Presentation}\p{Extended_Pictographic}]+/u);return t?.[0]??""}function d(e){return e.replace(/^[\p{Emoji_Presentation}\p{Extended_Pictographic}\s]+/u,"")||e}},69527:(e,t,r)=>{"use strict";r.d(t,{Bt:()=>x,D0:()=>d,L7:()=>f,jn:()=>h,l6:()=>m,lM:()=>p,pM:()=>b,pd:()=>c,yA:()=>u});var n=r(66839),s=r(44223),a=r(9986),o=r(55798),i=r(72615),l=r(76723);function d({label:e,hint:t,hintError:r,children:s}){return(0,n.jsxs)("div",{className:"space-y-1.5",children:[(0,n.jsx)("label",{className:"text-sm text-foreground font-medium",children:e}),s,t&&(0,n.jsx)("p",{className:`text-xs ${r?"text-destructive":"text-muted-foreground"}`,children:t})]})}function c({className:e="",...t}){return(0,n.jsx)("input",{...t,className:`w-full px-3 py-2 text-sm bg-background border border-border rounded-lg text-foreground placeholder:text-muted-foreground outline-none focus-visible:ring-1 focus-visible:ring-ring disabled:opacity-50 ${e}`})}function u({value:e,onChange:t,placeholder:r,disabled:i,className:l="",size:d="md"}){let[c,u]=(0,s.useState)(!1),m="sm"===d;return(0,n.jsxs)("div",{className:`flex items-center border border-border rounded-lg bg-background focus-within:ring-1 focus-within:ring-ring overflow-hidden ${l}`,children:[(0,n.jsx)("input",{type:c?"text":"password",value:e,onChange:e=>t(e.target.value),placeholder:r??"••••••••",disabled:i,className:`flex-1 bg-transparent text-foreground placeholder:text-muted-foreground outline-none disabled:opacity-50 ${m?"px-2.5 py-1.5 text-xs font-mono":"px-3 py-2 text-sm"}`}),!!e&&(0,n.jsx)("button",{type:"button",tabIndex:-1,onMouseDown:e=>e.preventDefault(),onClick:()=>u(e=>!e),disabled:i,className:`shrink-0 text-muted-foreground hover:text-foreground transition-colors disabled:opacity-50 ${m?"p-1.5":"p-2"}`,title:c?"Hide":"Show",children:c?(0,n.jsx)(a.A,{size:m?14:16}):(0,n.jsx)(o.A,{size:m?14:16})})]})}function m({value:e,onChange:t,children:r,className:a="",disabled:o,size:d="md"}){let c=(0,s.useId)(),[u,m]=(0,s.useState)(!1),[x,p]=(0,s.useState)(-1),h=(0,s.useRef)(null),f=(0,s.useRef)(null),b=(0,s.useMemo)(()=>s.Children.toArray(r).filter(e=>s.isValidElement(e)&&"option"===e.type).map(e=>({value:String(e.props.value??""),label:String(e.props.children??e.props.value??"")})),[r]),g=b.findIndex(t=>t.value===e),v=b[g]?.label??"";(0,s.useEffect)(()=>{if(!u)return;let e=e=>{h.current&&!h.current.contains(e.target)&&m(!1)};return document.addEventListener("mousedown",e),()=>document.removeEventListener("mousedown",e)},[u]),(0,s.useEffect)(()=>{if(u&&f.current&&x>=0){let e=f.current.children[x];e?.scrollIntoView({block:"nearest"})}},[u,x]);let j=(0,s.useCallback)(e=>{e>=0&&e<b.length&&(t?.({target:{value:b[e].value}}),m(!1))},[b,t]),y=(0,s.useCallback)(e=>{if(!u){["Enter"," ","ArrowDown","ArrowUp"].includes(e.key)&&(e.preventDefault(),m(!0),p(g>=0?g:0));return}switch(e.key){case"ArrowDown":e.preventDefault(),p(e=>Math.min(e+1,b.length-1));break;case"ArrowUp":e.preventDefault(),p(e=>Math.max(e-1,0));break;case"Enter":case" ":e.preventDefault(),j(x);break;case"Escape":e.preventDefault(),m(!1);break;case"Tab":m(!1)}},[u,b.length,g,x,j]);return(0,n.jsxs)("div",{ref:h,className:`relative ${a}`,children:[(0,n.jsxs)("button",{type:"button",disabled:o,onClick:()=>{m(e=>!e),p(g>=0?g:0)},onKeyDown:y,"aria-haspopup":"listbox","aria-expanded":u,className:`${"sm"===d?"px-1.5 py-0.5 text-xs rounded cursor-pointer":"w-full px-3 py-2 text-sm rounded-lg"} bg-background border border-border text-foreground text-left flex items-center justify-between gap-2 outline-none focus-visible:ring-1 focus-visible:ring-ring disabled:opacity-50 disabled:cursor-not-allowed`,children:[(0,n.jsx)("span",{className:`truncate ${v?"":"text-muted-foreground"}`,children:v||"—"}),(0,n.jsx)(i.A,{size:"sm"===d?10:14,className:`shrink-0 text-muted-foreground transition-transform duration-150 ${u?"rotate-180":""}`})]}),u&&(0,n.jsx)("div",{ref:f,role:"listbox","aria-activedescendant":x>=0?`${c}-opt-${x}`:void 0,className:`absolute z-20 ${"sm"===d?"min-w-[8rem]":"w-full"} mt-1 py-1 border border-border rounded-lg bg-card shadow-lg max-h-60 overflow-auto animate-in fade-in-0 zoom-in-95 duration-100`,children:b.map((t,r)=>{let s=t.value===e,a=r===x;return(0,n.jsxs)("button",{id:`${c}-opt-${r}`,role:"option","aria-selected":s,type:"button",onMouseDown:e=>{e.preventDefault(),j(r)},onMouseEnter:()=>p(r),className:`w-full ${"sm"===d?"px-2 py-1 text-xs":"px-3 py-1.5 text-sm"} text-left flex items-center gap-2 transition-colors ${a?"bg-accent text-accent-foreground":"text-foreground"}`,children:[(0,n.jsx)(l.A,{size:"sm"===d?10:14,className:`shrink-0 ${s?"text-[var(--amber)]":"invisible"}`}),(0,n.jsx)("span",{className:"truncate",children:t.label})]},t.value)})})]})}function x({overridden:e}){return e?(0,n.jsx)("span",{className:"text-2xs px-1.5 py-0.5 rounded bg-[var(--amber-subtle)] text-[var(--amber-text)] font-mono ml-1.5",children:"env"}):null}function p({checked:e,onChange:t,size:r="md",disabled:s,title:a,onClick:o}){let i="sm"===r;return(0,n.jsx)("button",{type:"button",role:"switch","aria-checked":e,disabled:s,title:a,onClick:o??(()=>t?.(!e)),className:`relative inline-flex shrink-0 cursor-pointer rounded-full border-2 border-transparent transition-colors focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring disabled:cursor-not-allowed disabled:opacity-60 ${i?"h-4 w-7":"h-5 w-9"} ${e?"bg-[var(--amber)]":"bg-muted"}`,children:(0,n.jsx)("span",{className:`pointer-events-none inline-block rounded-full bg-white shadow-sm transition-transform ${i?"h-3 w-3":"h-4 w-4"} ${e?i?"translate-x-3":"translate-x-4":"translate-x-0"}`})})}function h({children:e,disabled:t,onClick:r,type:s="button",className:a="",...o}){return(0,n.jsx)("button",{type:s,onClick:r,disabled:t,className:`px-4 py-2 text-sm font-medium rounded-lg bg-[var(--amber)] text-[var(--amber-foreground)] transition-colors disabled:opacity-40 disabled:cursor-not-allowed ${a}`,...o,children:e})}function f({icon:e,title:t,description:r,badge:s,children:a,className:o=""}){return(0,n.jsxs)("div",{className:`rounded-xl border border-border/50 bg-card/50 p-5 ${o}`,children:[(0,n.jsxs)("div",{className:"flex items-start gap-3 mb-4",children:[(0,n.jsx)("div",{className:"w-8 h-8 rounded-lg bg-muted/50 flex items-center justify-center shrink-0 mt-0.5",children:(0,n.jsx)("span",{className:"text-muted-foreground",children:e})}),(0,n.jsxs)("div",{className:"flex-1 min-w-0",children:[(0,n.jsxs)("div",{className:"flex items-center gap-2",children:[(0,n.jsx)("h3",{className:"text-sm font-semibold text-foreground",children:t}),s]}),r&&(0,n.jsx)("p",{className:"text-xs text-muted-foreground mt-0.5 leading-relaxed",children:r})]})]}),(0,n.jsx)("div",{className:"space-y-4 pl-11",children:a})]})}function b({label:e,hint:t,children:r}){return(0,n.jsxs)("div",{className:"flex items-center justify-between gap-4",children:[(0,n.jsxs)("div",{className:"flex-1 min-w-0",children:[(0,n.jsx)("div",{className:"text-sm text-foreground",children:e}),t&&(0,n.jsx)("div",{className:"text-xs text-muted-foreground mt-0.5",children:t})]}),(0,n.jsx)("div",{className:"shrink-0",children:r})]})}},72466:(e,t,r)=>{"use strict";r.d(t,{Aw:()=>d,Nh:()=>u,QL:()=>o,TM:()=>i,h0:()=>l,lL:()=>c});var n=r(79455);function s(e){let t=new Uint8Array(e),r=[];for(let e=0;e<t.length;e+=8192)r.push(String.fromCharCode(...t.subarray(e,e+8192)));return btoa(r.join(""))}async function a(e){if(e.byteLength<524288||"u"<typeof Worker)return s(e);let t=e.slice(0);return new Promise(r=>{let n=new Blob([`
|
|
2
2
|
self.onmessage = function(e) {
|
|
3
3
|
try {
|
|
4
4
|
var bytes = new Uint8Array(e.data);
|
|
@@ -11,4 +11,4 @@
|
|
|
11
11
|
self.postMessage({ error: err.message || 'base64 encoding failed' });
|
|
12
12
|
}
|
|
13
13
|
};
|
|
14
|
-
`],{type:"application/javascript"}),a=URL.createObjectURL(n),o=new Worker(a),i=()=>{o.terminate(),URL.revokeObjectURL(a)},l=setTimeout(()=>{i(),r(s(t))},1e4);o.onmessage=e=>{clearTimeout(l),i(),"string"==typeof e.data?r(e.data):r(s(t))},o.onerror=()=>{clearTimeout(l),i(),r(s(t))},o.postMessage(e,[e])})}async function o(e,t){let r=[],s=0;for(let t of e){if(t.size>0xa00000){s++;continue}try{let e=t.name.toLowerCase(),n=e.endsWith(".doc")||e.endsWith(".docx")||e.endsWith(".docm");if(e.endsWith(".pdf")||n){let e=await t.arrayBuffer();r.push({name:t.name,content:await a(e),encoding:"base64"})}else{let e=await t.text();r.push({name:t.name,content:e})}}catch{}}if(0===r.length)return void(s>0?n.oR.error(t.inbox.tooLarge(s),4e3):e.length>0&&n.oR.error(t.inbox.saveFailed,4e3));try{var o;let e=await fetch("/api/inbox",{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({files:r})});if(!e.ok){let r=await e.json().catch(()=>({}));console.error("[QuickDrop] Save failed:",r.error),n.oR.error(t.inbox.saveFailed,4e3);return}let a=await e.json(),i=a.saved?.length??0,l=a.skipped?.length??0;o=s,i>0&&o>0&&0===l?n.oR.success(t.inbox.savedWithOversized(i,o),4e3):i>0&&l+o>0?n.oR.success(t.inbox.savedWithSkipped(i,l+o),4e3):i>0?n.oR.success(t.inbox.savedToast(i),3e3):(o>0&&n.oR.error(t.inbox.tooLarge(o),4e3),l>0&&n.oR.error(t.inbox.savedWithSkipped(0,l),4e3),0===o&&0===l&&n.oR.error(t.inbox.saveFailed,4e3)),window.dispatchEvent(new Event("mindos:files-changed")),window.dispatchEvent(new Event("mindos:inbox-updated"))}catch(e){console.error("[QuickDrop] Network error:",e),n.oR.error(t.inbox.saveFailed,4e3)}}async function i(e,t){try{let r=await fetch("/api/inbox/clip",{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({url:e})}),s=await r.json();if(!r.ok){let e=s.error||t.inbox.clipFailed;return n.oR.error(e,4e3),{ok:!1}}return n.oR.success(t.inbox.clipSuccess(s.title||e),3e3),window.dispatchEvent(new Event("mindos:files-changed")),window.dispatchEvent(new Event("mindos:inbox-updated")),{ok:!0,title:s.title}}catch(e){return console.error("[ClipURL] Network error:",e),n.oR.error(t.inbox.clipFailed,4e3),{ok:!1}}}function l(e){let t=e.trim();if(!t.startsWith("http://")&&!t.startsWith("https://"))return!1;try{return new URL(t),!0}catch{return!1}}function d(e){if(e.dataTransfer?.files&&e.dataTransfer.files.length>0)return null;let t=e.dataTransfer?.getData("text/uri-list");if(t){let e=t.split(/[\r\n]+/).find(e=>!e.startsWith("#")&&e.trim().length>0);if(e&&l(e))return e.trim()}let r=e.dataTransfer?.getData("text/plain");return r&&l(r)?r.trim():null}function c(e){let t=e.dataTransfer?.types??[];return!t.includes("Files")&&(t.includes("text/uri-list")||t.includes("text/plain"))}async function u(e,t,r){let s=[],o=0,i=new Set(["pdf","png","jpg","jpeg","gif","webp","bmp","ico","mp3","wav","m4a","ogg","flac","aac","mp4","webm","mov","mkv","doc","docx","docm"]);for(let t of e){if(t.size>0xa00000){o++;continue}try{let e=(t.name.split(".").pop()??"").toLowerCase();if(i.has(e)){let e=await t.arrayBuffer();s.push({name:t.name,content:await a(e),encoding:"base64"})}else{let e=await t.text();s.push({name:t.name,content:e})}}catch{}}if(0===s.length)return void(o>0?n.oR.error(r.inbox.tooLarge(o),4e3):e.length>0&&n.oR.error(r.inbox.saveFailed,4e3));let l=t.split("/").pop()||t;try{let e=await fetch("/api/file/import",{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({files:s,targetSpace:t,organize:!1,conflict:"rename"})});if(!e.ok){let t=await e.json().catch(()=>({}));console.error("[TreeDrop] Save failed:",t.error),n.oR.error(r.inbox.saveFailed,4e3);return}let a=await e.json(),i=a.created?.length??0,d=a.skipped?.length??0;i>0&&d+o>0?n.oR.success(r.inbox.savedWithSkipped(i,d+o),4e3):i>0?n.oR.success(r.inbox.savedToDir(i,l),3e3):(o>0&&n.oR.error(r.inbox.tooLarge(o),4e3),d>0&&n.oR.error(r.inbox.savedWithSkipped(0,d),4e3)),window.dispatchEvent(new Event("mindos:files-changed"))}catch(e){console.error("[TreeDrop] Network error:",e),n.oR.error(r.inbox.saveFailed,4e3)}}},79455:(e,t,r)=>{"use strict";r.d(t,{B1:()=>i,X8:()=>d,dV:()=>l,oR:()=>u});let n=[],s=[],a=0;function o(){for(let e of s)e()}function i(e){return s=[...s,e],()=>{s=s.filter(t=>t!==e)}}function l(){return n}function d(e){n=n.filter(t=>t.id!==e),o()}function c(e){let t=`toast-${++a}`,r={id:t,message:e.message,type:e.type??"info",duration:e.duration??2e3,action:e.action};n=[...n,r].slice(-3),o(),r.duration>0&&setTimeout(()=>d(t),r.duration)}function u(e,t){c({message:e,...t})}u.success=(e,t)=>c({message:e,type:"success",duration:t}),u.undo=(e,t,r)=>c({message:e,type:"info",duration:r?.duration??5e3,action:{label:r?.label??"Undo",onClick:t}}),u.error=(e,t)=>c({message:e,type:"error",duration:t}),u.copy=(e="Copied")=>c({message:e,type:"success",duration:1500})}},e=>{e.O(0,[3940,2130,7355,2073,5018,2330,7358],()=>e(e.s=
|
|
14
|
+
`],{type:"application/javascript"}),a=URL.createObjectURL(n),o=new Worker(a),i=()=>{o.terminate(),URL.revokeObjectURL(a)},l=setTimeout(()=>{i(),r(s(t))},1e4);o.onmessage=e=>{clearTimeout(l),i(),"string"==typeof e.data?r(e.data):r(s(t))},o.onerror=()=>{clearTimeout(l),i(),r(s(t))},o.postMessage(e,[e])})}async function o(e,t){let r=[],s=0;for(let t of e){if(t.size>0xa00000){s++;continue}try{let e=t.name.toLowerCase(),n=e.endsWith(".doc")||e.endsWith(".docx")||e.endsWith(".docm");if(e.endsWith(".pdf")||n){let e=await t.arrayBuffer();r.push({name:t.name,content:await a(e),encoding:"base64"})}else{let e=await t.text();r.push({name:t.name,content:e})}}catch{}}if(0===r.length)return void(s>0?n.oR.error(t.inbox.tooLarge(s),4e3):e.length>0&&n.oR.error(t.inbox.saveFailed,4e3));try{var o;let e=await fetch("/api/inbox",{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({files:r})});if(!e.ok){let r=await e.json().catch(()=>({}));console.error("[QuickDrop] Save failed:",r.error),n.oR.error(t.inbox.saveFailed,4e3);return}let a=await e.json(),i=a.saved?.length??0,l=a.skipped?.length??0;o=s,i>0&&o>0&&0===l?n.oR.success(t.inbox.savedWithOversized(i,o),4e3):i>0&&l+o>0?n.oR.success(t.inbox.savedWithSkipped(i,l+o),4e3):i>0?n.oR.success(t.inbox.savedToast(i),3e3):(o>0&&n.oR.error(t.inbox.tooLarge(o),4e3),l>0&&n.oR.error(t.inbox.savedWithSkipped(0,l),4e3),0===o&&0===l&&n.oR.error(t.inbox.saveFailed,4e3)),window.dispatchEvent(new Event("mindos:files-changed")),window.dispatchEvent(new Event("mindos:inbox-updated"))}catch(e){console.error("[QuickDrop] Network error:",e),n.oR.error(t.inbox.saveFailed,4e3)}}async function i(e,t){try{let r=await fetch("/api/inbox/clip",{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({url:e})}),s=await r.json();if(!r.ok){let e=s.error||t.inbox.clipFailed;return n.oR.error(e,4e3),{ok:!1}}return n.oR.success(t.inbox.clipSuccess(s.title||e),3e3),window.dispatchEvent(new Event("mindos:files-changed")),window.dispatchEvent(new Event("mindos:inbox-updated")),{ok:!0,title:s.title}}catch(e){return console.error("[ClipURL] Network error:",e),n.oR.error(t.inbox.clipFailed,4e3),{ok:!1}}}function l(e){let t=e.trim();if(!t.startsWith("http://")&&!t.startsWith("https://"))return!1;try{return new URL(t),!0}catch{return!1}}function d(e){if(e.dataTransfer?.files&&e.dataTransfer.files.length>0)return null;let t=e.dataTransfer?.getData("text/uri-list");if(t){let e=t.split(/[\r\n]+/).find(e=>!e.startsWith("#")&&e.trim().length>0);if(e&&l(e))return e.trim()}let r=e.dataTransfer?.getData("text/plain");return r&&l(r)?r.trim():null}function c(e){let t=e.dataTransfer?.types??[];return!t.includes("Files")&&(t.includes("text/uri-list")||t.includes("text/plain"))}async function u(e,t,r){let s=[],o=0,i=new Set(["pdf","png","jpg","jpeg","gif","webp","bmp","ico","mp3","wav","m4a","ogg","flac","aac","mp4","webm","mov","mkv","doc","docx","docm"]);for(let t of e){if(t.size>0xa00000){o++;continue}try{let e=(t.name.split(".").pop()??"").toLowerCase();if(i.has(e)){let e=await t.arrayBuffer();s.push({name:t.name,content:await a(e),encoding:"base64"})}else{let e=await t.text();s.push({name:t.name,content:e})}}catch{}}if(0===s.length)return void(o>0?n.oR.error(r.inbox.tooLarge(o),4e3):e.length>0&&n.oR.error(r.inbox.saveFailed,4e3));let l=t.split("/").pop()||t;try{let e=await fetch("/api/file/import",{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({files:s,targetSpace:t,organize:!1,conflict:"rename"})});if(!e.ok){let t=await e.json().catch(()=>({}));console.error("[TreeDrop] Save failed:",t.error),n.oR.error(r.inbox.saveFailed,4e3);return}let a=await e.json(),i=a.created?.length??0,d=a.skipped?.length??0;i>0&&d+o>0?n.oR.success(r.inbox.savedWithSkipped(i,d+o),4e3):i>0?n.oR.success(r.inbox.savedToDir(i,l),3e3):(o>0&&n.oR.error(r.inbox.tooLarge(o),4e3),d>0&&n.oR.error(r.inbox.savedWithSkipped(0,d),4e3)),window.dispatchEvent(new Event("mindos:files-changed"))}catch(e){console.error("[TreeDrop] Network error:",e),n.oR.error(r.inbox.saveFailed,4e3)}}},79455:(e,t,r)=>{"use strict";r.d(t,{B1:()=>i,X8:()=>d,dV:()=>l,oR:()=>u});let n=[],s=[],a=0;function o(){for(let e of s)e()}function i(e){return s=[...s,e],()=>{s=s.filter(t=>t!==e)}}function l(){return n}function d(e){n=n.filter(t=>t.id!==e),o()}function c(e){let t=`toast-${++a}`,r={id:t,message:e.message,type:e.type??"info",duration:e.duration??2e3,action:e.action};n=[...n,r].slice(-3),o(),r.duration>0&&setTimeout(()=>d(t),r.duration)}function u(e,t){c({message:e,...t})}u.success=(e,t)=>c({message:e,type:"success",duration:t}),u.undo=(e,t,r)=>c({message:e,type:"info",duration:r?.duration??5e3,action:{label:r?.label??"Undo",onClick:t}}),u.error=(e,t)=>c({message:e,type:"error",duration:t}),u.copy=(e="Copied")=>c({message:e,type:"success",duration:1500})}},e=>{e.O(0,[3940,2130,7355,2073,5018,2330,7358],()=>e(e.s=44962)),_N_E=e.O()}]);
|
|
@@ -1 +1 @@
|
|
|
1
|
-
(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[7358],{
|
|
1
|
+
(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[7358],{77024:(e,s,n)=>{Promise.resolve().then(n.t.bind(n,28484,23)),Promise.resolve().then(n.t.bind(n,41500,23)),Promise.resolve().then(n.t.bind(n,32093,23)),Promise.resolve().then(n.t.bind(n,49357,23)),Promise.resolve().then(n.t.bind(n,90681,23)),Promise.resolve().then(n.t.bind(n,73360,23)),Promise.resolve().then(n.bind(n,28169))},78089:()=>{}},e=>{var s=s=>e(e.s=s);e.O(0,[5018,2330],()=>(s(81753),s(77024))),_N_E=e.O()}]);
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
(()=>{"use strict";var e,a,d,t,c,f,b,r,n,o={},i={};function l(e){var a=i[e];if(void 0!==a)return a.exports;var d=i[e]={exports:{}},t=!0;try{o[e].call(d.exports,d,d.exports,l),t=!1}finally{t&&delete i[e]}return d.exports}l.m=o,e=[],l.O=(a,d,t,c)=>{if(d){c=c||0;for(var f=e.length;f>0&&e[f-1][2]>c;f--)e[f]=e[f-1];e[f]=[d,t,c];return}for(var b=1/0,f=0;f<e.length;f++){for(var[d,t,c]=e[f],r=!0,n=0;n<d.length;n++)(!1&c||b>=c)&&Object.keys(l.O).every(e=>l.O[e](d[n]))?d.splice(n--,1):(r=!1,c<b&&(b=c));if(r){e.splice(f--,1);var o=t();void 0!==o&&(a=o)}}return a},l.n=e=>{var a=e&&e.__esModule?()=>e.default:()=>e;return l.d(a,{a:a}),a},d=Object.getPrototypeOf?e=>Object.getPrototypeOf(e):e=>e.__proto__,l.t=function(e,t){if(1&t&&(e=this(e)),8&t||"object"==typeof e&&e&&(4&t&&e.__esModule||16&t&&"function"==typeof e.then))return e;var c=Object.create(null);l.r(c);var f={};a=a||[null,d({}),d([]),d(d)];for(var b=2&t&&e;"object"==typeof b&&!~a.indexOf(b);b=d(b))Object.getOwnPropertyNames(b).forEach(a=>f[a]=()=>e[a]);return f.default=()=>e,l.d(c,f),c},l.d=(e,a)=>{for(var d in a)l.o(a,d)&&!l.o(e,d)&&Object.defineProperty(e,d,{enumerable:!0,get:a[d]})},l.f={},l.e=e=>Promise.all(Object.keys(l.f).reduce((a,d)=>(l.f[d](e,a),a),[])),l.u=e=>2851===e?"static/chunks/2851-26b8808e7efc1816.js":2737===e?"static/chunks/2737-f4970f0684c334d6.js":878===e?"static/chunks/878-dcbd588adc2102fa.js":8225===e?"static/chunks/8225-4655c2b7b7e84b86.js":206===e?"static/chunks/206-f82be5fd4b37d643.js":"static/chunks/"+(({1708:"be1892d2",4977:"3f99fc33",7142:"b3f7ae2a",7613:"6c10039d",9043:"52dbf3db"})[e]||e)+"."+({20:"b09a3a6a9d30f7ee",21:"77bec968a2977d24",98:"75646cc4ada2fc2a",121:"b191f0ec3bb8f102",158:"d13b0ae88f55dfbb",293:"87f2095438bf01a5",319:"56bb43d1a76ea582",324:"c4a1d7d5b05049e3",339:"528ff92dcbaac42f",397:"38dc546fadb5164b",422:"b035c18c9cdc008f",447:"ebe4468809a07e52",540:"7cfffb2e1f6264bf",570:"1e2c686d85a3e8cd",598:"bc9f2e949e47b98e",690:"60128e11fb1d61b8",882:"00a488326b628076",918:"65c7bffee4dacac7",920:"62378e2909b1d794",939:"940f75b2b91405e9",953:"28ddedb68d0ebe82",986:"747af6b7c563e2c5",1050:"bd3a90fee1b71eed",1121:"ec392708b1863097",1125:"8b38488b4d98b297",1191:"a03ca6eecc434fb0",1296:"34af06be8a84af61",1476:"d5e7d5ac7f3cbaaa",1515:"25734bcc941b4345",1627:"aa57d899c0050a8d",1643:"d287e151c94b640e",1695:"b0e8adf139a18ede",1708:"0fb916acb67f0228",1766:"65a386da6c1a792e",1790:"a36c6d3d711cf65c",1855:"031f83f492b87ce3",1856:"342d052c924e016d",1965:"f63c9a7a98bf35a7",2056:"fc9c7066699a5ce7",2095:"a78c004e121aa6ed",2151:"73f15b8043504e4f",2220:"38e0fc677e976444",2293:"7a81770080b9d0ac",2303:"ac755d2213a6ba9e",2394:"d950c35bdc987527",2402:"ef329f7eb4dbf4f9",2507:"3c7bb4c45b04edea",2557:"c01a31c5c0276ff3",2606:"46776bf638b9649e",2631:"2be24bb0b1714ea9",2694:"83ea10dea2915c3b",2778:"ff47dc9241c13efa",3085:"3e0aba3ba9a979fc",3336:"7c1a57e8da2d9e04",3479:"9af230300a62b7ee",3597:"aee8a147b036dc04",3634:"7825da698ee74ff4",3648:"67c844b8de270b86",3741:"0b79dc62feab5568",3819:"42b0ef6a61a01d67",3820:"c708f712f00e9047",3907:"70f4694fecf9a41b",3983:"4fa36392c8353249",4021:"fa8d15b8af471d58",4096:"ad2a0220bff13ae7",4113:"193df8e43847899c",4148:"a7762b4eb5f7abb3",4169:"f7e070a4b1bf6d6a",4173:"f39b467e0aba89d8",4347:"46b12be3be2a1e8c",4867:"3b3cb99f662d6bd6",4883:"f9b225b8dc38483d",4900:"a455a2e49b010838",4938:"7c8b22a23abbe687",4953:"58ba4467c16e9b63",4977:"071b61af302b8e4b",4987:"a9f80d4d4834b5e8",5114:"43bdd2abfca917f0",5139:"118fb3505c82ed83",5199:"8810f54438b6df87",5243:"d32f19ed9d12e453",5247:"b985b71c37362584",5256:"038e4e7d374a17af",5457:"e6d0d3f0b5ed59ee",5491:"d44378f9211c1b93",5496:"6f23088172c643f0",5627:"e63ef0be7e21a9b1",5700:"5f9182871e5bc307",5771:"74703518280275cd",5791:"c159b2f9fd7cbda8",5835:"4061ccd6cbab025f",5840:"b812d86b830668e3",5913:"3cee388e26959b62",6257:"cc18b10cfaeec6a6",6516:"e3e5206da2cdf37e",6622:"82f249f5167a5116",6700:"1550a439f6ceb2d3",6728:"e1841cddb63308b0",6730:"b59c8c0e41eecc88",6868:"adbb34d4ed9f4792",6947:"fb89346ef2f6be17",6989:"f09e160b49cf9749",7041:"e363bfe835a1d379",7047:"0dadfc4921c78566",7142:"3245d7afcbf7d6fa",7229:"d54a73a5041fa707",7292:"7317b36421f1e864",7340:"70d9f59321ba7b31",7398:"2dfec15bf799e2f2",7469:"0b2290fde175916b",7507:"a562bdefab8fae20",7530:"8f09fb03a3f802e2",7568:"2c57694c7f6dfa9c",7584:"87542ea5d4a825dc",7600:"d0c66e144e3725b7",7613:"167a723c1518bf45",7687:"1d84a1ad46d90c48",7750:"9b2281888b774afc",7882:"3b67a1941c59399e",7906:"ae74685b38bb7593",7941:"39655cdfa54b77b1",8020:"4058af26210b8773",8082:"86de349ec6ea7024",8127:"b742cf9bf8ba062a",8160:"9494a966f34d4666",8164:"82c4edca298ad2f9",8598:"65388e4a48f6b084",8732:"9002f42201b06fe8",8769:"bd48d3a484e009f4",8964:"92a49ab198079fbb",9043:"b2bbe4e170a768e5",9090:"e5aedeb28839cf6b",9100:"5b3cf7077c924cb8",9240:"5f3eca11deaa5b99",9599:"e59b83bc728584b3",9602:"4e99e3525e5f062c",9642:"2e9007adc9f6beb3",9657:"f5904374bc80f036",9730:"2893f5c4890c3645",9837:"a78b54036097ba77",9856:"458f29d60b1faab9",9947:"81409c5539cd781d",9969:"7a7762b9bba5eb8d"})[e]+".js",l.miniCssF=e=>"static/css/"+({149:"b76b86dcaafbd85c",5365:"b234a3484362d604"})[e]+".css",l.g=function(){if("object"==typeof globalThis)return globalThis;try{return this||Function("return this")()}catch(e){if("object"==typeof window)return window}}(),l.o=(e,a)=>Object.prototype.hasOwnProperty.call(e,a),t={},l.l=(e,a,d,c)=>{if(t[e])return void t[e].push(a);if(void 0!==d)for(var f,b,r=document.getElementsByTagName("script"),n=0;n<r.length;n++){var o=r[n];if(o.getAttribute("src")==e||o.getAttribute("data-webpack")=="_N_E:"+d){f=o;break}}f||(b=!0,(f=document.createElement("script")).charset="utf-8",f.timeout=120,l.nc&&f.setAttribute("nonce",l.nc),f.setAttribute("data-webpack","_N_E:"+d),f.src=l.tu(e)),t[e]=[a];var i=(a,d)=>{f.onerror=f.onload=null,clearTimeout(s);var c=t[e];if(delete t[e],f.parentNode&&f.parentNode.removeChild(f),c&&c.forEach(e=>e(d)),a)return a(d)},s=setTimeout(i.bind(null,void 0,{type:"timeout",target:f}),12e4);f.onerror=i.bind(null,f.onerror),f.onload=i.bind(null,f.onload),b&&document.head.appendChild(f)},l.r=e=>{"u">typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},l.tt=()=>(void 0===c&&(c={createScriptURL:e=>e},"u">typeof trustedTypes&&trustedTypes.createPolicy&&(c=trustedTypes.createPolicy("nextjs#bundler",c))),c),l.tu=e=>l.tt().createScriptURL(e),l.p="/_next/",f={8068:0},l.f.miniCss=(e,a)=>{if(f[e])a.push(f[e]);else 0!==f[e]&&({149:1,5365:1})[e]&&a.push(f[e]=new Promise((a,d)=>{var t,c=l.miniCssF(e),f=l.p+c;if(((e,a)=>{for(var d=document.getElementsByTagName("link"),t=0;t<d.length;t++){var c=d[t],f=c.getAttribute("data-href")||c.getAttribute("href");if("stylesheet"===c.rel&&(f===e||f===a))return c}for(var b=document.getElementsByTagName("style"),t=0;t<b.length;t++){var c=b[t],f=c.getAttribute("data-href");if(f===e||f===a)return c}})(c,f))return a();(t=document.createElement("link")).rel="stylesheet",t.type="text/css",t.onerror=t.onload=c=>{if(t.onerror=t.onload=null,"load"===c.type)a();else{var b=c&&("load"===c.type?"missing":c.type),r=c&&c.target&&c.target.href||f,n=Error("Loading CSS chunk "+e+" failed.\n("+r+")");n.code="CSS_CHUNK_LOAD_FAILED",n.type=b,n.request=r,t.parentNode.removeChild(t),d(n)}},t.href=f,function(e){if("function"==typeof _N_E_STYLE_LOAD){let{href:a,onload:d,onerror:t}=e;_N_E_STYLE_LOAD(0===a.indexOf(window.location.origin)?new URL(a).pathname:a).then(()=>null==d?void 0:d.call(e,{type:"load"}),()=>null==t?void 0:t.call(e,{}))}else document.head.appendChild(e)}(t)}).then(()=>{f[e]=0},a=>{throw delete f[e],a}))},b={8068:0,4361:0,8738:0},l.f.j=(e,a)=>{var d=l.o(b,e)?b[e]:void 0;if(0!==d)if(d)a.push(d[2]);else if(/^(149|4361|5365|8068|8738)$/.test(e))b[e]=0;else{var t=new Promise((a,t)=>d=b[e]=[a,t]);a.push(d[2]=t);var c=l.p+l.u(e),f=Error();l.l(c,a=>{if(l.o(b,e)&&(0!==(d=b[e])&&(b[e]=void 0),d)){var t=a&&("load"===a.type?"missing":a.type),c=a&&a.target&&a.target.src;f.message="Loading chunk "+e+" failed.\n("+t+": "+c+")",f.name="ChunkLoadError",f.type=t,f.request=c,d[1](f)}},"chunk-"+e,e)}},l.O.j=e=>0===b[e],r=(e,a)=>{var d,t,[c,f,r]=a,n=0;if(c.some(e=>0!==b[e])){for(d in f)l.o(f,d)&&(l.m[d]=f[d]);if(r)var o=r(l)}for(e&&e(a);n<c.length;n++)t=c[n],l.o(b,t)&&b[t]&&b[t][0](),b[t]=0;return l.O(o)},(n=self.webpackChunk_N_E=self.webpackChunk_N_E||[]).forEach(r.bind(null,0)),n.push=r.bind(null,n.push.bind(n))})();
|
|
@@ -0,0 +1,201 @@
|
|
|
1
|
+
Apache License
|
|
2
|
+
Version 2.0, January 2004
|
|
3
|
+
http://www.apache.org/licenses/
|
|
4
|
+
|
|
5
|
+
TERMS AND CONDITIONS FOR USE, REPRODUCTION, AND DISTRIBUTION
|
|
6
|
+
|
|
7
|
+
1. Definitions.
|
|
8
|
+
|
|
9
|
+
"License" shall mean the terms and conditions for use, reproduction,
|
|
10
|
+
and distribution as defined by Sections 1 through 9 of this document.
|
|
11
|
+
|
|
12
|
+
"Licensor" shall mean the copyright owner or entity authorized by
|
|
13
|
+
the copyright owner that is granting the License.
|
|
14
|
+
|
|
15
|
+
"Legal Entity" shall mean the union of the acting entity and all
|
|
16
|
+
other entities that control, are controlled by, or are under common
|
|
17
|
+
control with that entity. For the purposes of this definition,
|
|
18
|
+
"control" means (i) the power, direct or indirect, to cause the
|
|
19
|
+
direction or management of such entity, whether by contract or
|
|
20
|
+
otherwise, or (ii) ownership of fifty percent (50%) or more of the
|
|
21
|
+
outstanding shares, or (iii) beneficial ownership of such entity.
|
|
22
|
+
|
|
23
|
+
"You" (or "Your") shall mean an individual or Legal Entity
|
|
24
|
+
exercising permissions granted by this License.
|
|
25
|
+
|
|
26
|
+
"Source" form shall mean the preferred form for making modifications,
|
|
27
|
+
including but not limited to software source code, documentation
|
|
28
|
+
source, and configuration files.
|
|
29
|
+
|
|
30
|
+
"Object" form shall mean any form resulting from mechanical
|
|
31
|
+
transformation or translation of a Source form, including but
|
|
32
|
+
not limited to compiled object code, generated documentation,
|
|
33
|
+
and conversions to other media types.
|
|
34
|
+
|
|
35
|
+
"Work" shall mean the work of authorship, whether in Source or
|
|
36
|
+
Object form, made available under the License, as indicated by a
|
|
37
|
+
copyright notice that is included in or attached to the work
|
|
38
|
+
(an example is provided in the Appendix below).
|
|
39
|
+
|
|
40
|
+
"Derivative Works" shall mean any work, whether in Source or Object
|
|
41
|
+
form, that is based on (or derived from) the Work and for which the
|
|
42
|
+
editorial revisions, annotations, elaborations, or other modifications
|
|
43
|
+
represent, as a whole, an original work of authorship. For the purposes
|
|
44
|
+
of this License, Derivative Works shall not include works that remain
|
|
45
|
+
separable from, or merely link (or bind by name) to the interfaces of,
|
|
46
|
+
the Work and Derivative Works thereof.
|
|
47
|
+
|
|
48
|
+
"Contribution" shall mean any work of authorship, including
|
|
49
|
+
the original version of the Work and any modifications or additions
|
|
50
|
+
to that Work or Derivative Works thereof, that is intentionally
|
|
51
|
+
submitted to Licensor for inclusion in the Work by the copyright owner
|
|
52
|
+
or by an individual or Legal Entity authorized to submit on behalf of
|
|
53
|
+
the copyright owner. For the purposes of this definition, "submitted"
|
|
54
|
+
means any form of electronic, verbal, or written communication sent
|
|
55
|
+
to the Licensor or its representatives, including but not limited to
|
|
56
|
+
communication on electronic mailing lists, source code control systems,
|
|
57
|
+
and issue tracking systems that are managed by, or on behalf of, the
|
|
58
|
+
Licensor for the purpose of discussing and improving the Work, but
|
|
59
|
+
excluding communication that is conspicuously marked or otherwise
|
|
60
|
+
designated in writing by the copyright owner as "Not a Contribution."
|
|
61
|
+
|
|
62
|
+
"Contributor" shall mean Licensor and any individual or Legal Entity
|
|
63
|
+
on behalf of whom a Contribution has been received by Licensor and
|
|
64
|
+
subsequently incorporated within the Work.
|
|
65
|
+
|
|
66
|
+
2. Grant of Copyright License. Subject to the terms and conditions of
|
|
67
|
+
this License, each Contributor hereby grants to You a perpetual,
|
|
68
|
+
worldwide, non-exclusive, no-charge, royalty-free, irrevocable
|
|
69
|
+
copyright license to reproduce, prepare Derivative Works of,
|
|
70
|
+
publicly display, publicly perform, sublicense, and distribute the
|
|
71
|
+
Work and such Derivative Works in Source or Object form.
|
|
72
|
+
|
|
73
|
+
3. Grant of Patent License. Subject to the terms and conditions of
|
|
74
|
+
this License, each Contributor hereby grants to You a perpetual,
|
|
75
|
+
worldwide, non-exclusive, no-charge, royalty-free, irrevocable
|
|
76
|
+
(except as stated in this section) patent license to make, have made,
|
|
77
|
+
use, offer to sell, sell, import, and otherwise transfer the Work,
|
|
78
|
+
where such license applies only to those patent claims licensable
|
|
79
|
+
by such Contributor that are necessarily infringed by their
|
|
80
|
+
Contribution(s) alone or by combination of their Contribution(s)
|
|
81
|
+
with the Work to which such Contribution(s) was submitted. If You
|
|
82
|
+
institute patent litigation against any entity (including a
|
|
83
|
+
cross-claim or counterclaim in a lawsuit) alleging that the Work
|
|
84
|
+
or a Contribution incorporated within the Work constitutes direct
|
|
85
|
+
or contributory patent infringement, then any patent licenses
|
|
86
|
+
granted to You under this License for that Work shall terminate
|
|
87
|
+
as of the date such litigation is filed.
|
|
88
|
+
|
|
89
|
+
4. Redistribution. You may reproduce and distribute copies of the
|
|
90
|
+
Work or Derivative Works thereof in any medium, with or without
|
|
91
|
+
modifications, and in Source or Object form, provided that You
|
|
92
|
+
meet the following conditions:
|
|
93
|
+
|
|
94
|
+
(a) You must give any other recipients of the Work or
|
|
95
|
+
Derivative Works a copy of this License; and
|
|
96
|
+
|
|
97
|
+
(b) You must cause any modified files to carry prominent notices
|
|
98
|
+
stating that You changed the files; and
|
|
99
|
+
|
|
100
|
+
(c) You must retain, in the Source form of any Derivative Works
|
|
101
|
+
that You distribute, all copyright, patent, trademark, and
|
|
102
|
+
attribution notices from the Source form of the Work,
|
|
103
|
+
excluding those notices that do not pertain to any part of
|
|
104
|
+
the Derivative Works; and
|
|
105
|
+
|
|
106
|
+
(d) If the Work includes a "NOTICE" text file as part of its
|
|
107
|
+
distribution, then any Derivative Works that You distribute must
|
|
108
|
+
include a readable copy of the attribution notices contained
|
|
109
|
+
within such NOTICE file, excluding those notices that do not
|
|
110
|
+
pertain to any part of the Derivative Works, in at least one
|
|
111
|
+
of the following places: within a NOTICE text file distributed
|
|
112
|
+
as part of the Derivative Works; within the Source form or
|
|
113
|
+
documentation, if provided along with the Derivative Works; or,
|
|
114
|
+
within a display generated by the Derivative Works, if and
|
|
115
|
+
wherever such third-party notices normally appear. The contents
|
|
116
|
+
of the NOTICE file are for informational purposes only and
|
|
117
|
+
do not modify the License. You may add Your own attribution
|
|
118
|
+
notices within Derivative Works that You distribute, alongside
|
|
119
|
+
or as an addendum to the NOTICE text from the Work, provided
|
|
120
|
+
that such additional attribution notices cannot be construed
|
|
121
|
+
as modifying the License.
|
|
122
|
+
|
|
123
|
+
You may add Your own copyright statement to Your modifications and
|
|
124
|
+
may provide additional or different license terms and conditions
|
|
125
|
+
for use, reproduction, or distribution of Your modifications, or
|
|
126
|
+
for any such Derivative Works as a whole, provided Your use,
|
|
127
|
+
reproduction, and distribution of the Work otherwise complies with
|
|
128
|
+
the conditions stated in this License.
|
|
129
|
+
|
|
130
|
+
5. Submission of Contributions. Unless You explicitly state otherwise,
|
|
131
|
+
any Contribution intentionally submitted for inclusion in the Work
|
|
132
|
+
by You to the Licensor shall be under the terms and conditions of
|
|
133
|
+
this License, without any additional terms or conditions.
|
|
134
|
+
Notwithstanding the above, nothing herein shall supersede or modify
|
|
135
|
+
the terms of any separate license agreement you may have executed
|
|
136
|
+
with Licensor regarding such Contributions.
|
|
137
|
+
|
|
138
|
+
6. Trademarks. This License does not grant permission to use the trade
|
|
139
|
+
names, trademarks, service marks, or product names of the Licensor,
|
|
140
|
+
except as required for reasonable and customary use in describing the
|
|
141
|
+
origin of the Work and reproducing the content of the NOTICE file.
|
|
142
|
+
|
|
143
|
+
7. Disclaimer of Warranty. Unless required by applicable law or
|
|
144
|
+
agreed to in writing, Licensor provides the Work (and each
|
|
145
|
+
Contributor provides its Contributions) on an "AS IS" BASIS,
|
|
146
|
+
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or
|
|
147
|
+
implied, including, without limitation, any warranties or conditions
|
|
148
|
+
of TITLE, NON-INFRINGEMENT, MERCHANTABILITY, or FITNESS FOR A
|
|
149
|
+
PARTICULAR PURPOSE. You are solely responsible for determining the
|
|
150
|
+
appropriateness of using or redistributing the Work and assume any
|
|
151
|
+
risks associated with Your exercise of permissions under this License.
|
|
152
|
+
|
|
153
|
+
8. Limitation of Liability. In no event and under no legal theory,
|
|
154
|
+
whether in tort (including negligence), contract, or otherwise,
|
|
155
|
+
unless required by applicable law (such as deliberate and grossly
|
|
156
|
+
negligent acts) or agreed to in writing, shall any Contributor be
|
|
157
|
+
liable to You for damages, including any direct, indirect, special,
|
|
158
|
+
incidental, or consequential damages of any character arising as a
|
|
159
|
+
result of this License or out of the use or inability to use the
|
|
160
|
+
Work (including but not limited to damages for loss of goodwill,
|
|
161
|
+
work stoppage, computer failure or malfunction, or any and all
|
|
162
|
+
other commercial damages or losses), even if such Contributor
|
|
163
|
+
has been advised of the possibility of such damages.
|
|
164
|
+
|
|
165
|
+
9. Accepting Warranty or Additional Liability. While redistributing
|
|
166
|
+
the Work or Derivative Works thereof, You may choose to offer,
|
|
167
|
+
and charge a fee for, acceptance of support, warranty, indemnity,
|
|
168
|
+
or other liability obligations and/or rights consistent with this
|
|
169
|
+
License. However, in accepting such obligations, You may act only
|
|
170
|
+
on Your own behalf and on Your sole responsibility, not on behalf
|
|
171
|
+
of any other Contributor, and only if You agree to indemnify,
|
|
172
|
+
defend, and hold each Contributor harmless for any liability
|
|
173
|
+
incurred by, or claims asserted against, such Contributor by reason
|
|
174
|
+
of your accepting any such warranty or additional liability.
|
|
175
|
+
|
|
176
|
+
END OF TERMS AND CONDITIONS
|
|
177
|
+
|
|
178
|
+
APPENDIX: How to apply the Apache License to your work.
|
|
179
|
+
|
|
180
|
+
To apply the Apache License to your work, attach the following
|
|
181
|
+
boilerplate notice, with the fields enclosed by brackets "{}"
|
|
182
|
+
replaced with your own identifying information. (Don't include
|
|
183
|
+
the brackets!) The text should be enclosed in the appropriate
|
|
184
|
+
comment syntax for the file format. We also recommend that a
|
|
185
|
+
file or class name and description of purpose be included on the
|
|
186
|
+
same "printed page" as the copyright notice for easier
|
|
187
|
+
identification within third-party archives.
|
|
188
|
+
|
|
189
|
+
Copyright 2018-2020 Amazon.com, Inc. or its affiliates. All Rights Reserved.
|
|
190
|
+
|
|
191
|
+
Licensed under the Apache License, Version 2.0 (the "License");
|
|
192
|
+
you may not use this file except in compliance with the License.
|
|
193
|
+
You may obtain a copy of the License at
|
|
194
|
+
|
|
195
|
+
http://www.apache.org/licenses/LICENSE-2.0
|
|
196
|
+
|
|
197
|
+
Unless required by applicable law or agreed to in writing, software
|
|
198
|
+
distributed under the License is distributed on an "AS IS" BASIS,
|
|
199
|
+
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
200
|
+
See the License for the specific language governing permissions and
|
|
201
|
+
limitations under the License.
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
'use strict';
|
|
2
|
+
|
|
3
|
+
var isArrayBuffer = require('@smithy/is-array-buffer');
|
|
4
|
+
var buffer = require('buffer');
|
|
5
|
+
|
|
6
|
+
const fromArrayBuffer = (input, offset = 0, length = input.byteLength - offset) => {
|
|
7
|
+
if (!isArrayBuffer.isArrayBuffer(input)) {
|
|
8
|
+
throw new TypeError(`The "input" argument must be ArrayBuffer. Received type ${typeof input} (${input})`);
|
|
9
|
+
}
|
|
10
|
+
return buffer.Buffer.from(input, offset, length);
|
|
11
|
+
};
|
|
12
|
+
const fromString = (input, encoding) => {
|
|
13
|
+
if (typeof input !== "string") {
|
|
14
|
+
throw new TypeError(`The "input" argument must be of type string. Received type ${typeof input} (${input})`);
|
|
15
|
+
}
|
|
16
|
+
return encoding ? buffer.Buffer.from(input, encoding) : buffer.Buffer.from(input);
|
|
17
|
+
};
|
|
18
|
+
|
|
19
|
+
exports.fromArrayBuffer = fromArrayBuffer;
|
|
20
|
+
exports.fromString = fromString;
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
import { isArrayBuffer } from "@smithy/is-array-buffer";
|
|
2
|
+
import { Buffer } from "buffer";
|
|
3
|
+
export const fromArrayBuffer = (input, offset = 0, length = input.byteLength - offset) => {
|
|
4
|
+
if (!isArrayBuffer(input)) {
|
|
5
|
+
throw new TypeError(`The "input" argument must be ArrayBuffer. Received type ${typeof input} (${input})`);
|
|
6
|
+
}
|
|
7
|
+
return Buffer.from(input, offset, length);
|
|
8
|
+
};
|
|
9
|
+
export const fromString = (input, encoding) => {
|
|
10
|
+
if (typeof input !== "string") {
|
|
11
|
+
throw new TypeError(`The "input" argument must be of type string. Received type ${typeof input} (${input})`);
|
|
12
|
+
}
|
|
13
|
+
return encoding ? Buffer.from(input, encoding) : Buffer.from(input);
|
|
14
|
+
};
|