agentroam-runtime-darwin-arm64 0.2.0-preview.82 → 0.2.0-preview.84
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/manifest.json +2 -2
- package/package.json +1 -1
- package/runtime/.next/BUILD_ID +1 -1
- package/runtime/.next/app-build-manifest.json +26 -25
- package/runtime/.next/app-path-routes-manifest.json +1 -1
- package/runtime/.next/build-manifest.json +8 -8
- package/runtime/.next/prerender-manifest.json +1 -1
- package/runtime/.next/react-loadable-manifest.json +4 -4
- package/runtime/.next/required-server-files.json +1 -1
- package/runtime/.next/server/app/_not-found/page.js +1 -1
- package/runtime/.next/server/app/_not-found/page_client-reference-manifest.js +1 -1
- package/runtime/.next/server/app/_not-found.html +1 -1
- package/runtime/.next/server/app/_not-found.rsc +1 -1
- package/runtime/.next/server/app/api/agent/abort/route.js +1 -1
- package/runtime/.next/server/app/api/agent/answer/route.js +1 -1
- package/runtime/.next/server/app/api/agent/codex-sharing/route.js +1 -1
- package/runtime/.next/server/app/api/agent/composer/route.js +1 -1
- package/runtime/.next/server/app/api/agent/harness/status/route.js +1 -1
- package/runtime/.next/server/app/api/agent/model/route.js +1 -1
- package/runtime/.next/server/app/api/agent/models/route.js +1 -1
- package/runtime/.next/server/app/api/agent/run/route.js +1 -1
- package/runtime/.next/server/app/api/agent/runtime-health/route.js +1 -1
- package/runtime/.next/server/app/api/agent/steer/route.js +1 -1
- package/runtime/.next/server/app/api/agent/stream/route.js +3 -3
- package/runtime/.next/server/app/api/agent-workspaces/[workspaceId]/sessions/route.js +1 -1
- package/runtime/.next/server/app/api/agent-workspaces/route.js +1 -1
- package/runtime/.next/server/app/api/auth/verify/route.js +1 -1
- package/runtime/.next/server/app/api/business/route.js +1 -1
- package/runtime/.next/server/app/api/calendar/route.js +2 -2
- package/runtime/.next/server/app/api/client-logs/route.js +1 -1
- package/runtime/.next/server/app/api/collaboration/route.js +2 -2
- package/runtime/.next/server/app/api/engine-threads/route.js +1 -1
- package/runtime/.next/server/app/api/engine-threads.body +1 -1
- package/runtime/.next/server/app/api/flow/v1/catalog/route.js +1 -1
- package/runtime/.next/server/app/api/flow/v1/runs/[runId]/cancel/route.js +1 -1
- package/runtime/.next/server/app/api/flow/v1/runs/[runId]/events/route.js +2 -2
- package/runtime/.next/server/app/api/flow/v1/runs/route.js +1 -1
- package/runtime/.next/server/app/api/flow-studio/config/route.js +1 -1
- package/runtime/.next/server/app/api/internal/todo-bootstrap/route.js +1 -1
- package/runtime/.next/server/app/api/internal/todo-mcp/route.js +1 -1
- package/runtime/.next/server/app/api/mcp/connect/route.js +1 -1
- package/runtime/.next/server/app/api/mcp/disconnect/route.js +1 -1
- package/runtime/.next/server/app/api/mcp/servers/route.js +1 -1
- package/runtime/.next/server/app/api/mcp/servers.body +1 -1
- package/runtime/.next/server/app/api/memory/[key]/route.js +1 -1
- package/runtime/.next/server/app/api/memory/route.js +1 -1
- package/runtime/.next/server/app/api/messaging/route.js +1 -1
- package/runtime/.next/server/app/api/notifications/[id]/ack/route.js +1 -1
- package/runtime/.next/server/app/api/notifications/[id]/route.js +1 -1
- package/runtime/.next/server/app/api/notifications/route.js +1 -1
- package/runtime/.next/server/app/api/notifications/stream/route.js +2 -2
- package/runtime/.next/server/app/api/plugins/load/route.js +1 -1
- package/runtime/.next/server/app/api/projects/[id]/route.js +1 -1
- package/runtime/.next/server/app/api/projects/check/route.js +1 -1
- package/runtime/.next/server/app/api/projects/directories/route.js +1 -1
- package/runtime/.next/server/app/api/projects/roots/route.js +1 -1
- package/runtime/.next/server/app/api/projects/route.js +1 -1
- package/runtime/.next/server/app/api/push/subscribe/route.js +2 -2
- package/runtime/.next/server/app/api/push/unsubscribe/route.js +3 -3
- package/runtime/.next/server/app/api/push/vapid/route.js +2 -2
- package/runtime/.next/server/app/api/push/vapid.body +1 -1
- package/runtime/.next/server/app/api/remote-tools/register/route.js +1 -1
- package/runtime/.next/server/app/api/session-images/[id]/route.js +1 -1
- package/runtime/.next/server/app/api/session-views/route.js +1 -1
- package/runtime/.next/server/app/api/sessions/[id]/background-jobs/[jobId]/route.js +1 -1
- package/runtime/.next/server/app/api/sessions/[id]/background-jobs/[jobId]/stop/route.js +1 -1
- package/runtime/.next/server/app/api/sessions/[id]/background-jobs/route.js +1 -1
- package/runtime/.next/server/app/api/sessions/[id]/changes/route.js +2 -2
- package/runtime/.next/server/app/api/sessions/[id]/engine-switches/route.js +1 -1
- package/runtime/.next/server/app/api/sessions/[id]/fork/route.js +1 -1
- package/runtime/.next/server/app/api/sessions/[id]/fork-at/route.js +1 -1
- package/runtime/.next/server/app/api/sessions/[id]/goals/route.js +1 -1
- package/runtime/.next/server/app/api/sessions/[id]/handoff/route.js +1 -1
- package/runtime/.next/server/app/api/sessions/[id]/native-goal/route.js +1 -1
- package/runtime/.next/server/app/api/sessions/[id]/query-index/route.js +1 -1
- package/runtime/.next/server/app/api/sessions/[id]/release/route.js +1 -1
- package/runtime/.next/server/app/api/sessions/[id]/route.js +1 -1
- package/runtime/.next/server/app/api/sessions/[id]/switch-engine/route.js +1 -1
- package/runtime/.next/server/app/api/sessions/[id]/thread-goal/route.js +1 -1
- package/runtime/.next/server/app/api/sessions/[id]/thread-history/route.js +1 -1
- package/runtime/.next/server/app/api/sessions/[id]/tool-result/route.js +1 -1
- package/runtime/.next/server/app/api/sessions/parallel/route.js +1 -1
- package/runtime/.next/server/app/api/sessions/route.js +1 -1
- package/runtime/.next/server/app/api/settings/route.js +1 -1
- package/runtime/.next/server/app/api/skills/route.js +1 -1
- package/runtime/.next/server/app/api/todos/[id]/commands/route.js +1 -1
- package/runtime/.next/server/app/api/todos/[id]/executions/route.js +1 -1
- package/runtime/.next/server/app/api/todos/[id]/route.js +1 -1
- package/runtime/.next/server/app/api/todos/route.js +1 -1
- package/runtime/.next/server/app/api/tool-policies/[policyId]/route.js +1 -1
- package/runtime/.next/server/app/api/tool-policies/route.js +1 -1
- package/runtime/.next/server/app/api/tools/route.js +1 -1
- package/runtime/.next/server/app/api/update/check/route.js +1 -1
- package/runtime/.next/server/app/api/update/install/route.js +1 -1
- package/runtime/.next/server/app/api/update/status/route.js +1 -1
- package/runtime/.next/server/app/api/web-auth/login/route.js +1 -1
- package/runtime/.next/server/app/api/web-auth/logout/route.js +1 -1
- package/runtime/.next/server/app/api/web-auth/revoke-all/route.js +1 -1
- package/runtime/.next/server/app/api/web-auth/setup/route.js +1 -1
- package/runtime/.next/server/app/api/web-auth/status/route.js +1 -1
- package/runtime/.next/server/app/api/web-console/bootstrap/route.js +1 -1
- package/runtime/.next/server/app/api/web-console/computer-settings/route.js +1 -1
- package/runtime/.next/server/app/api/web-console/computers/route.js +1 -1
- package/runtime/.next/server/app/api/web-console/device-state/route.js +1 -1
- package/runtime/.next/server/app/api/web-console/history/route.js +1 -1
- package/runtime/.next/server/app/api/web-console/preferences/route.js +1 -1
- package/runtime/.next/server/app/api/workspace-changes/route.js +1 -1
- package/runtime/.next/server/app/web/page.js +4 -4
- package/runtime/.next/server/app/web/page_client-reference-manifest.js +1 -1
- package/runtime/.next/server/app-paths-manifest.json +38 -38
- package/runtime/.next/server/chunks/5303.js +2 -2
- package/runtime/.next/server/middleware-build-manifest.js +1 -1
- package/runtime/.next/server/middleware-react-loadable-manifest.js +1 -1
- package/runtime/.next/server/pages/404.html +1 -1
- package/runtime/.next/server/pages/500.html +1 -1
- package/runtime/.next/server/pages-manifest.json +1 -1
- package/runtime/.next/server/server-reference-manifest.json +1 -1
- package/runtime/.next/static/chunks/{183-dbd3e343da4ba103.js → 183-9f47bd28d757e44e.js} +1 -1
- package/runtime/.next/static/chunks/20.2eb9bc3a5b4d410b.js +1 -0
- package/runtime/.next/static/chunks/325-0818ba5a4060a0e8.js +1 -0
- package/runtime/.next/static/chunks/34.c7dbf7ffc8914be9.js +1 -0
- package/runtime/.next/static/chunks/686.7b5c444243fcf29a.js +1 -0
- package/runtime/.next/static/chunks/app/web/{error-828d278147a0619d.js → error-6ca9afc69e38a945.js} +1 -1
- package/runtime/.next/static/chunks/app/web/layout-b1d0dc229e4be45a.js +1 -0
- package/runtime/.next/static/chunks/app/web/page-36f160284a0d79fc.js +1 -0
- package/runtime/.next/static/chunks/main-app-9e9b12e00c3ae35e.js +1 -0
- package/runtime/.next/static/chunks/{webpack-f51a057f833e73eb.js → webpack-040c7a20dd455025.js} +1 -1
- package/runtime/.next/static/css/0e673318adedd54a.css +1 -0
- package/runtime/lib/tunnel-control.mjs +1 -1
- package/runtime/native/Support.noindex/AgentRoam Remote Desktop.app/Contents/MacOS/agentroam-remote-desktop +0 -0
- package/runtime/native/Support.noindex/AgentRoam Remote Desktop.app/Contents/Resources/agentroam-component.json +1 -1
- package/runtime/native/Support.noindex/AgentRoam Remote Desktop.app/Contents/_CodeSignature/CodeResources +2 -2
- package/runtime/node_modules/.package-lock.json +120 -120
- package/runtime/node_modules/@agent/core/dist/index.js +10 -3
- package/runtime/node_modules/@agent/native-runtime/dist/index.js +201 -55
- package/runtime/node_modules/mediabunny/dist/bundles/mediabunny.cjs +41 -10
- package/runtime/node_modules/mediabunny/dist/bundles/mediabunny.min.cjs +9 -9
- package/runtime/node_modules/mediabunny/dist/bundles/mediabunny.min.mjs +10 -10
- package/runtime/node_modules/mediabunny/dist/bundles/mediabunny.mjs +41 -10
- package/runtime/node_modules/mediabunny/dist/bundles/mediabunny.node.cjs +41 -10
- package/runtime/node_modules/mediabunny/dist/modules/src/isobmff/isobmff-demuxer.js +50 -11
- package/runtime/node_modules/mediabunny/dist/modules/src/tsconfig.tsbuildinfo +1 -1
- package/runtime/node_modules/mediabunny/dist/modules/src/version.js +1 -1
- package/runtime/node_modules/mediabunny/package.json +1 -1
- package/runtime/node_modules/mediabunny/src/isobmff/isobmff-demuxer.ts +59 -13
- package/runtime/node_modules/mediabunny/src/metadata.ts +1 -0
- package/runtime/node_modules/mediabunny/src/version.ts +1 -1
- package/runtime/node_modules/sanitize-html/node_modules/postcss/README.md +1 -1
- package/runtime/node_modules/sanitize-html/node_modules/postcss/lib/css-syntax-error.js +1 -3
- package/runtime/node_modules/sanitize-html/node_modules/postcss/lib/parser.js +7 -3
- package/runtime/node_modules/sanitize-html/node_modules/postcss/lib/processor.js +1 -1
- package/runtime/node_modules/sanitize-html/node_modules/postcss/package.json +2 -2
- package/runtime/package-lock.json +137 -137
- package/runtime/server.js +1 -1
- package/runtime/webapp/dist/assets/AIHubView-DKUDkftP.js +1 -0
- package/runtime/webapp/dist/assets/{AgentManager-B8TTqJaL.js → AgentManager-DBsl9Tc-.js} +1 -1
- package/runtime/webapp/dist/assets/AiHubPane-Cq9jov_Y.js +1 -0
- package/runtime/webapp/dist/assets/App-Cw_UxB1o.js +68 -0
- package/runtime/webapp/dist/assets/{BrowserLivePanel-DnzJOz5w.js → BrowserLivePanel-D4-GJ_9P.js} +2 -2
- package/runtime/webapp/dist/assets/CalendarPage-X9TGiQFj.js +1 -0
- package/runtime/webapp/dist/assets/{CalendarView-QXZbXnXA.js → CalendarView-HvfBGuRx.js} +3 -3
- package/runtime/webapp/dist/assets/CollaborationCreateDialog-jp-Nu0XU.js +1 -0
- package/runtime/webapp/dist/assets/CollaborationDashboard-olO_GjsT.js +1 -0
- package/runtime/webapp/dist/assets/{CollaborationPage-B2mIAc-h.js → CollaborationPage-W8naHk0B.js} +2 -2
- package/runtime/webapp/dist/assets/{FilePreview-BCEiERA1.js → FilePreview-DI0rubgD.js} +5 -5
- package/runtime/webapp/dist/assets/{FileTree-CMbs1Gj3.js → FileTree-rE46D8RD.js} +2 -2
- package/runtime/webapp/dist/assets/FileWorkspaceDrawer-wPD_Fs04.js +1 -0
- package/runtime/webapp/dist/assets/FlowStudioPane-BILTrSF5.js +5 -0
- package/runtime/webapp/dist/assets/HostProjectPicker-0CHU4mlN.js +1 -0
- package/runtime/webapp/dist/assets/{LSPServerList-COMVmsvb.js → LSPServerList-T8zw5SN-.js} +1 -1
- package/runtime/webapp/dist/assets/{MCPServerList-C_juD6B4.js → MCPServerList-CQNCdDdm.js} +1 -1
- package/runtime/webapp/dist/assets/{MemoryViewer-Et2vysSN.js → MemoryViewer-mQsBEa17.js} +1 -1
- package/runtime/webapp/dist/assets/NewSessionWindow-CCQJHuTO.js +1 -0
- package/runtime/webapp/dist/assets/NewSessionWindow-aaPt6Fto.css +1 -0
- package/runtime/webapp/dist/assets/RemoteDesktopPage-CSrZ5Ftv.js +1 -0
- package/runtime/webapp/dist/assets/{RemoteDesktopTabBridge-BFzNwpUn.js → RemoteDesktopTabBridge-jgSmDncq.js} +1 -1
- package/runtime/webapp/dist/assets/{RunningSessionsIcon-D_cOqmmk.js → RunningSessionsIcon-Dj0GAkqr.js} +1 -1
- package/runtime/webapp/dist/assets/{SessionDashboard-yjdEKypJ.js → SessionDashboard-kC_8_Bza.js} +2 -2
- package/runtime/webapp/dist/assets/{SessionDashboardBridge-Kc_1Et9r.js → SessionDashboardBridge-BqLN9MBj.js} +1 -1
- package/runtime/webapp/dist/assets/{SettingsPanel-t26XhKHP.js → SettingsPanel-CqQv2eK-.js} +1 -1
- package/runtime/webapp/dist/assets/{SkillManager-nZU7b1sc.js → SkillManager-Bu2BSH0G.js} +1 -1
- package/runtime/webapp/dist/assets/{TaskPaneTerminal-BPaCKman.js → TaskPaneTerminal-BdxQYNc6.js} +1 -1
- package/runtime/webapp/dist/assets/{TerminalPane-CiIpI1Id.js → TerminalPane-BvhhLZN1.js} +1 -1
- package/runtime/webapp/dist/assets/TodoPage-hbsap1E8.js +1 -0
- package/runtime/webapp/dist/assets/{abnfDiagram-VCTEODGH-DmKjGVfG.js → abnfDiagram-VCTEODGH-C_PdiEVZ.js} +1 -1
- package/runtime/webapp/dist/assets/agentroam-welcome-DTi8uo_x.webp +0 -0
- package/runtime/webapp/dist/assets/agentroam-welcome-speaking-Bjq6llMN.webp +0 -0
- package/runtime/webapp/dist/assets/{arc-D6bpvBke.js → arc-CWNpomsA.js} +1 -1
- package/runtime/webapp/dist/assets/{architectureDiagram-5GKGNRK7-NEKc2BYf.js → architectureDiagram-5GKGNRK7-BoOjl_r_.js} +1 -1
- package/runtime/webapp/dist/assets/{blockDiagram-I7D4REHJ-V6G00twZ.js → blockDiagram-I7D4REHJ-vJ_8Ek3u.js} +1 -1
- package/runtime/webapp/dist/assets/{c4Diagram-7LVT6UL2-CojA33V5.js → c4Diagram-7LVT6UL2-DNA4gWKh.js} +1 -1
- package/runtime/webapp/dist/assets/{calendar-days-DXE_2mLa.js → calendar-days-D6jkCzJk.js} +1 -1
- package/runtime/webapp/dist/assets/channel-ComjzpL-.js +1 -0
- package/runtime/webapp/dist/assets/{check-UipgMBET.js → check-Dg_LqC82.js} +1 -1
- package/runtime/webapp/dist/assets/{chevron-down-Dvinwg2S.js → chevron-down-BEj7mlHA.js} +1 -1
- package/runtime/webapp/dist/assets/{chevron-right-BGU3tcLA.js → chevron-right-BJjvR4c0.js} +1 -1
- package/runtime/webapp/dist/assets/{chunk-2Q5K7J3B-DObpPEgk.js → chunk-2Q5K7J3B-CZDhxDbY.js} +1 -1
- package/runtime/webapp/dist/assets/{chunk-5VM5RSS4-PaTzAg6w.js → chunk-5VM5RSS4-BnlDM5br.js} +1 -1
- package/runtime/webapp/dist/assets/{chunk-F27PBJKO-Pn4gut94.js → chunk-F27PBJKO-CB7O8_6v.js} +1 -1
- package/runtime/webapp/dist/assets/{chunk-IMKFNOWR-nRaVFzK9.js → chunk-IMKFNOWR-Bu3AW8DR.js} +1 -1
- package/runtime/webapp/dist/assets/{chunk-JWPE2WC7-CxssjKKN.js → chunk-JWPE2WC7-CBQw1xgF.js} +1 -1
- package/runtime/webapp/dist/assets/{chunk-POPQ4Y6H-CweDXr-B.js → chunk-POPQ4Y6H-Bun3CGx_.js} +1 -1
- package/runtime/webapp/dist/assets/{chunk-SVP7TREG-C7T3FGE-.js → chunk-SVP7TREG-XwWHVyss.js} +1 -1
- package/runtime/webapp/dist/assets/{chunk-TICWLB2K-Nc0H-0_V.js → chunk-TICWLB2K-B7j4XyQE.js} +1 -1
- package/runtime/webapp/dist/assets/{chunk-XXDRQBXY-D_GQGF5g.js → chunk-XXDRQBXY-C4ccrA1p.js} +1 -1
- package/runtime/webapp/dist/assets/classDiagram-ZZMXUADV-CfdRqn0-.js +1 -0
- package/runtime/webapp/dist/assets/classDiagram-v2-VYDZK3BY-CfdRqn0-.js +1 -0
- package/runtime/webapp/dist/assets/{client-Bb0hpbIR.js → client-dnf9nxPX.js} +1 -1
- package/runtime/webapp/dist/assets/{codeSyntax-DHonp3tF.js → codeSyntax-BLQm8ta3.js} +1 -1
- package/runtime/webapp/dist/assets/{collaboration-e_iziKU1.js → collaboration-CJnVMp4H.js} +1 -1
- package/runtime/webapp/dist/assets/{composer-file-routing-CWyT7leB.js → composer-file-routing-DX7AUQpe.js} +2 -2
- package/runtime/webapp/dist/assets/{cose-bilkent-JH36ORCC-Ac_FBan4.js → cose-bilkent-JH36ORCC-610OTEmf.js} +1 -1
- package/runtime/webapp/dist/assets/{cynefin-OW5HDTMX-vr6c389q.js → cynefin-OW5HDTMX-CM8PeVI5.js} +1 -1
- package/runtime/webapp/dist/assets/{cynefinDiagram-5FMLGOSQ-sXmUCrp_.js → cynefinDiagram-5FMLGOSQ-BY4mC_Y_.js} +1 -1
- package/runtime/webapp/dist/assets/{dagre-GXQ25YYZ-B0DmGxDv.js → dagre-GXQ25YYZ-CW6OZxKS.js} +1 -1
- package/runtime/webapp/dist/assets/{diagram-S7CK7UJ4-Dn-2jJ6S.js → diagram-S7CK7UJ4-BaPMOaHo.js} +1 -1
- package/runtime/webapp/dist/assets/{diagram-UQ7AKVKN-BcasYsju.js → diagram-UQ7AKVKN-BWIQcSBB.js} +1 -1
- package/runtime/webapp/dist/assets/{diagram-VSXAHHWV-DCgGkc82.js → diagram-VSXAHHWV-BwkS6jsR.js} +1 -1
- package/runtime/webapp/dist/assets/{diagram-VX7I27RA-Cjs0Ny4i.js → diagram-VX7I27RA-B7rXbpbO.js} +1 -1
- package/runtime/webapp/dist/assets/{diagram-Z3DM3KII-0nyddp0v.js → diagram-Z3DM3KII-CrWfyJCt.js} +1 -1
- package/runtime/webapp/dist/assets/{ebnfDiagram-PWID7BFC-By7gCUsz.js → ebnfDiagram-PWID7BFC-DrpyBRGI.js} +1 -1
- package/runtime/webapp/dist/assets/{erDiagram-RLTQ6QDP-DdwBp45A.js → erDiagram-RLTQ6QDP-D0lubMB8.js} +1 -1
- package/runtime/webapp/dist/assets/{file-types-nujx8XUw.js → file-types-ovF7t8nV.js} +1 -1
- package/runtime/webapp/dist/assets/{flowDiagram-HODETNUW-DbOwRaT9.js → flowDiagram-HODETNUW-mXqeEtep.js} +1 -1
- package/runtime/webapp/dist/assets/{ganttDiagram-EL5Y4UJY-CG8obc7O.js → ganttDiagram-EL5Y4UJY-DgaN-2yI.js} +1 -1
- package/runtime/webapp/dist/assets/{gitGraphDiagram-WWUBYQGX-ru6aSu_g.js → gitGraphDiagram-WWUBYQGX-DadHzOkE.js} +1 -1
- package/runtime/webapp/dist/assets/{history-DaBh5_SJ.js → history-2RoN6nWx.js} +1 -1
- package/runtime/webapp/dist/assets/{image-plus-Cm9jq1yo.js → image-plus-CXCEGNi1.js} +1 -1
- package/runtime/webapp/dist/assets/index-CpGyXlyq.js +500 -0
- package/runtime/webapp/dist/assets/index-DVbDWmLY.css +1 -0
- package/runtime/webapp/dist/assets/{infoDiagram-27XIBGKW-Crx1iSbW.js → infoDiagram-27XIBGKW-BPI3rG8e.js} +1 -1
- package/runtime/webapp/dist/assets/{ishikawaDiagram-5VMMS53U-ClQPMEk5.js → ishikawaDiagram-5VMMS53U-Cwhwp05P.js} +1 -1
- package/runtime/webapp/dist/assets/{journeyDiagram-3NMN7TZE-DHso2Xht.js → journeyDiagram-3NMN7TZE-QeAIq98x.js} +1 -1
- package/runtime/webapp/dist/assets/{kanban-definition-UXKFOSKX-D6psIAhv.js → kanban-definition-UXKFOSKX-BIV4KQ7w.js} +1 -1
- package/runtime/webapp/dist/assets/{layout-B6AVZ9v9.js → layout-DKTcc92n.js} +1 -1
- package/runtime/webapp/dist/assets/{linear-CEZOUjlB.js → linear-CpgQ-vzl.js} +1 -1
- package/runtime/webapp/dist/assets/{list-todo-D9ChIz0f.js → list-todo-D0DdvDdC.js} +1 -1
- package/runtime/webapp/dist/assets/{locate-fixed-2R48MVg_.js → locate-fixed-PoSWErYt.js} +1 -1
- package/runtime/webapp/dist/assets/{mermaid.core-DH0df9xk.js → mermaid.core-DPgekxsA.js} +5 -5
- package/runtime/webapp/dist/assets/{mindmap-definition-YA3MSWOX-QWt8leZC.js → mindmap-definition-YA3MSWOX-DScKRrns.js} +1 -1
- package/runtime/webapp/dist/assets/{mobileViewport-CKvpvxYc.js → mobileViewport-DoX18BIb.js} +1 -1
- package/runtime/webapp/dist/assets/new-session-window-DUUfKFZL.js +191 -0
- package/runtime/webapp/dist/assets/page-DLgrc2Gr.js +86 -0
- package/runtime/webapp/dist/assets/{pause-ddt7BLlm.js → pause-MzDWMIVk.js} +1 -1
- package/runtime/webapp/dist/assets/{pegDiagram-XKGWAZYB-JNBt0nDx.js → pegDiagram-XKGWAZYB-CqPnfn9Z.js} +1 -1
- package/runtime/webapp/dist/assets/{pieDiagram-E7YTZNPT-g0hnDqNp.js → pieDiagram-E7YTZNPT-Dj4dMQpn.js} +1 -1
- package/runtime/webapp/dist/assets/{pin-BTP5lC_c.js → pin-eP6N3HGu.js} +1 -1
- package/runtime/webapp/dist/assets/{quadrantDiagram-AXDQQJYC-mLZASjSm.js → quadrantDiagram-AXDQQJYC-C0OXtsjw.js} +1 -1
- package/runtime/webapp/dist/assets/{railroadDiagram-O6MQD6OU-CAXNAZhB.js → railroadDiagram-O6MQD6OU-CxmJTI75.js} +1 -1
- package/runtime/webapp/dist/assets/{requirementDiagram-BXWQKSXE-BC8y1ZXE.js → requirementDiagram-BXWQKSXE-D27ZD0hS.js} +1 -1
- package/runtime/webapp/dist/assets/{rotate-ccw-CHFTy38a.js → rotate-ccw-Dd67-fEX.js} +1 -1
- package/runtime/webapp/dist/assets/{rotate-cw-CFCtRFDl.js → rotate-cw-bCvV5qtp.js} +1 -1
- package/runtime/webapp/dist/assets/{sankeyDiagram-P5KCCOFB-Boi5NPjT.js → sankeyDiagram-P5KCCOFB-BYXYPMbk.js} +1 -1
- package/runtime/webapp/dist/assets/{send-CzCncLlt.js → send-C3-_dAtW.js} +1 -1
- package/runtime/webapp/dist/assets/{sequenceDiagram-WJ2MYXX4-D4ccoVEB.js → sequenceDiagram-WJ2MYXX4-DjCzHsAJ.js} +1 -1
- package/runtime/webapp/dist/assets/{session-dashboard-C0KfSCDl.js → session-dashboard-B5GjyN-j.js} +1 -1
- package/runtime/webapp/dist/assets/{session-tree-CTzXmV6R.js → session-tree-gH5384IE.js} +1 -1
- package/runtime/webapp/dist/assets/{shield-check-Da6EGdIt.js → shield-check-BH6xSJDa.js} +1 -1
- package/runtime/webapp/dist/assets/{sizeCapture-INFHLROL-Cd5jIVgK.js → sizeCapture-INFHLROL-C3V_IQDa.js} +1 -1
- package/runtime/webapp/dist/assets/{stateDiagram-D77RDMKH-DXlmaNwu.js → stateDiagram-D77RDMKH-SIlV9QsN.js} +1 -1
- package/runtime/webapp/dist/assets/stateDiagram-v2-MP3YSRHH-DBVpokaR.js +1 -0
- package/runtime/webapp/dist/assets/{swimlanes-42K2YHIH-DyhRB_e0.js → swimlanes-42K2YHIH-B_lgpM0k.js} +1 -1
- package/runtime/webapp/dist/assets/swimlanesDiagram-VR7AAH4N-CBmcZlgw.js +8 -0
- package/runtime/webapp/dist/assets/{timeline-definition-24CTP7MA-Bkfs9Mi-.js → timeline-definition-24CTP7MA-CTMVRkSU.js} +1 -1
- package/runtime/webapp/dist/assets/{trash-2-C682LDDA.js → trash-2-BjV9I5RI.js} +1 -1
- package/runtime/webapp/dist/assets/{types-CfOuS-6l.js → types-BB9G1ZRH.js} +1 -1
- package/runtime/webapp/dist/assets/{use-session-activity-C9Cn92Hj.js → use-session-activity-CXZ-jSdd.js} +1 -1
- package/runtime/webapp/dist/assets/{vennDiagram-4TSXK5OY-APWT64sw.js → vennDiagram-4TSXK5OY-CGMGxBWQ.js} +1 -1
- package/runtime/webapp/dist/assets/{wardleyDiagram-VM6X3IG4-H7xLoxwM.js → wardleyDiagram-VM6X3IG4-B9lm4S79.js} +1 -1
- package/runtime/webapp/dist/assets/{web-DG022HwJ.js → web-BZLTjbMF.js} +1 -1
- package/runtime/webapp/dist/assets/{web-CT8e03DV.js → web-DBwe40Mg.js} +1 -1
- package/runtime/webapp/dist/assets/{loader-circle-CAHZbD5s.js → x-C0vSZPZg.js} +2 -2
- package/runtime/webapp/dist/assets/{xychartDiagram-S5SC5T6Z-DIrxZ4UJ.js → xychartDiagram-S5SC5T6Z-D4dVIGis.js} +1 -1
- package/runtime/webapp/dist/assets/{zoom-out-CRN76HNZ.js → zoom-out-CwT1ni3i.js} +1 -1
- package/runtime/webapp/dist/index.html +2 -2
- package/runtime/.next/static/chunks/106.b2050e53421795af.js +0 -1
- package/runtime/.next/static/chunks/20.7bd5212774091396.js +0 -1
- package/runtime/.next/static/chunks/34.40a88b70750502fb.js +0 -1
- package/runtime/.next/static/chunks/753-90c7dd1ba08be9be.js +0 -1
- package/runtime/.next/static/chunks/app/web/layout-1127176e7e88e395.js +0 -1
- package/runtime/.next/static/chunks/app/web/page-f008ab6dfeab7ce7.js +0 -1
- package/runtime/.next/static/chunks/main-app-07d67f2d4e96ecb8.js +0 -1
- package/runtime/webapp/dist/assets/AIHubView-CNKanNZa.js +0 -1
- package/runtime/webapp/dist/assets/AiHubPane-Coyn3P-J.js +0 -1
- package/runtime/webapp/dist/assets/App-BGIGpBp3.js +0 -68
- package/runtime/webapp/dist/assets/CalendarPage-D0oaq2_l.js +0 -1
- package/runtime/webapp/dist/assets/CollaborationCreateDialog-CE8OML-A.js +0 -1
- package/runtime/webapp/dist/assets/CollaborationDashboard-CV18iiBO.js +0 -1
- package/runtime/webapp/dist/assets/FileWorkspaceDrawer-BxFS-0sF.js +0 -1
- package/runtime/webapp/dist/assets/FlowStudioPane-CVP0Q6zR.js +0 -5
- package/runtime/webapp/dist/assets/HostProjectPicker-DUUgM2Cm.js +0 -1
- package/runtime/webapp/dist/assets/NewSessionWindow-DOLG1XEp.css +0 -1
- package/runtime/webapp/dist/assets/NewSessionWindow-DwJhkRJd.js +0 -1
- package/runtime/webapp/dist/assets/RemoteDesktopPage-Cqsea4X7.js +0 -1
- package/runtime/webapp/dist/assets/TodoPage-CG__S6_l.js +0 -1
- package/runtime/webapp/dist/assets/channel-D66Qxmo0.js +0 -1
- package/runtime/webapp/dist/assets/classDiagram-ZZMXUADV-BAX0-S6b.js +0 -1
- package/runtime/webapp/dist/assets/classDiagram-v2-VYDZK3BY-BAX0-S6b.js +0 -1
- package/runtime/webapp/dist/assets/index-BAGzBXQc.css +0 -1
- package/runtime/webapp/dist/assets/index-YrEOkxAg.js +0 -500
- package/runtime/webapp/dist/assets/new-session-window-CiRwM3Od.js +0 -191
- package/runtime/webapp/dist/assets/page-Cd9ci9uo.js +0 -86
- package/runtime/webapp/dist/assets/stateDiagram-v2-MP3YSRHH-Dh6coc1l.js +0 -1
- package/runtime/webapp/dist/assets/swimlanesDiagram-VR7AAH4N-BzriATjP.js +0 -8
- /package/runtime/.next/static/chunks/{3cc391f0-4ff886cecc4d6d79.js → 3cc391f0-6cd083946ece156d.js} +0 -0
- /package/runtime/.next/static/chunks/app/_not-found/{page-c0fc9b6684d4f0ca.js → page-cffe4d626dcef5fd.js} +0 -0
- /package/runtime/.next/static/{_rMvYWpbWkNWrFkCQx3rK → edQT7mZJvA1tWdwiMLtSI}/_buildManifest.js +0 -0
- /package/runtime/.next/static/{_rMvYWpbWkNWrFkCQx3rK → edQT7mZJvA1tWdwiMLtSI}/_ssgManifest.js +0 -0
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use strict";(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[20],{4020:function(e,t,r){r.r(t),r.d(t,{default:function(){return m}});var i=r(1996),n=r(6121),a=r(7317),l=r(7285),o=r(1806);let d=(0,o.Z)("ImagePlus",[["path",{d:"M16 5h6",key:"1vod17"}],["path",{d:"M19 2v6",key:"4bpg5p"}],["path",{d:"M21 11.5V19a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2V5a2 2 0 0 1 2-2h7.5",key:"1ue2ih"}],["path",{d:"m21 15-3.086-3.086a2 2 0 0 0-2.828 0L6 21",key:"1xmnt7"}],["circle",{cx:"9",cy:"9",r:"2",key:"af1f0g"}]]);var s=r(2466);let u=(0,o.Z)("Send",[["path",{d:"M14.536 21.686a.5.5 0 0 0 .937-.024l6.5-19a.496.496 0 0 0-.635-.635l-19 6.5a.5.5 0 0 0-.024.937l7.93 3.18a2 2 0 0 1 1.112 1.11z",key:"1ffxy3"}],["path",{d:"m21.854 2.147-10.94 10.939",key:"12cjpa"}]]),c=[{id:"deepseek",name:"DeepSeek",home:"https://chat.deepseek.com/",buildPromptUrl:null},{id:"gemini",name:"Gemini",home:"https://gemini.google.com/app",buildPromptUrl:null},{id:"chatgpt",name:"ChatGPT",home:"https://chatgpt.com/",buildPromptUrl:e=>"https://chatgpt.com/?q=".concat(encodeURIComponent(e))},{id:"grok",name:"Grok",home:"https://grok.com/",buildPromptUrl:e=>"https://grok.com/?q=".concat(encodeURIComponent(e))}],p="webconsole:ai-hub:sites";function h(e){return c.find(t=>t.id===e)}function f(e){var t;return(null===(t=h(e))||void 0===t?void 0:t.buildPromptUrl)!=null}function g(e,t){let r=h(e);return r?t.trim()&&r.buildPromptUrl?r.buildPromptUrl(t.trim()):r.home:""}async function b(e){try{return await navigator.clipboard.writeText(e),!0}catch(t){try{let t=document.createElement("textarea");t.value=e,document.body.appendChild(t),t.select();let r=document.execCommand("copy");return t.remove(),r}catch(e){return!1}}}function m(e){let{visible:t,rpc:r}=e,[o,h]=(0,n.useState)(()=>c.slice(0,2).map(e=>e.id)),[m,v]=(0,n.useState)(""),[y,k]=(0,n.useState)([]),[w,j]=(0,n.useState)({}),[S,I]=(0,n.useState)(null),[C,z]=(0,n.useState)(!1),[R,A]=(0,n.useState)(!1),[D,U]=(0,n.useState)("probing"),[H,W]=(0,n.useState)(!1),[E,P]=(0,n.useState)(!1),[M,T]=(0,n.useState)({}),[Z,_]=(0,n.useState)({}),B=(0,n.useRef)(null);(0,n.useEffect)(()=>{try{let e=window.localStorage.getItem(p);e&&h(function(e){if(!Array.isArray(e))return c.slice(0,2).map(e=>e.id);let t=e.filter(e=>"string"==typeof e&&c.some(t=>t.id===e));return t.length>0?t:c.slice(0,2).map(e=>e.id)}(JSON.parse(e)))}catch(e){}A(!0)},[]),(0,n.useEffect)(()=>{if(!r){U("offline");return}let e=!1;return r("aihub:status",void 0,6e3).then(t=>{e||U(t.available?"online":"offline")}).catch(()=>{e||U("offline")}),()=>{e=!0}},[r]);let N=(0,n.useCallback)(e=>{h(t=>{let r=t.includes(e)?t.filter(t=>t!==e):[...t,e];if(0===r.length)return t;try{window.localStorage.setItem(p,JSON.stringify(r))}catch(e){}return r})},[]),O=(0,n.useCallback)((e,t)=>{let r=g(e,t);if(!r)return null;let i=window.open(r,"_blank","noopener");return j(t=>({...t,[e]:i?"opened":"blocked"})),null!=i},[]),F=(0,n.useCallback)(async e=>{let t=Array.from(e).filter(e=>e.type.startsWith("image/"));if(0===t.length)return;let r=[];for(let e of t){if(y.length+r.length>=4){I("最多同时携带 ".concat(4," 张图片")),z(!0);break}if(e.size>5242880){I("图片 ".concat(e.name," 超过 5MB,已跳过")),z(!0);continue}try{let t=await function(e){return new Promise((t,r)=>{let i=new FileReader;i.onload=()=>t(String(i.result)),i.onerror=()=>{var e;return r(null!==(e=i.error)&&void 0!==e?e:Error("read failed"))},i.readAsDataURL(e)})}(e);r.push({id:"".concat(Date.now(),"-").concat(r.length,"-").concat(e.name),dataUrl:t,name:e.name})}catch(t){I("图片 ".concat(e.name," 读取失败")),z(!0)}}r.length>0&&k(e=>[...e,...r].slice(0,4))},[y.length]),L=(0,n.useCallback)(e=>{e.target.files&&F(e.target.files),e.target.value=""},[F]),G=(0,n.useCallback)(e=>{k(t=>t.filter(t=>t.id!==e))},[]),K=(0,n.useCallback)(()=>{let e=m.trim(),t=y.map(e=>e.dataUrl);if(!e&&0===t.length||0===o.length)return;if("online"===D&&r){W(!0),I("正在发送至 ".concat(o.length," 个 AI").concat(y.length>0?"(含图片)":"","…")),z(!1),r("aihub:send",{text:e,siteIds:o,images:t},6e4).then(e=>{var t,r;if(!e.available){U("offline"),I("桌面端中继不可用(".concat(null!==(t=e.reason)&&void 0!==t?t:"unknown",")。请再点一次发送,将改用浏览器新标签方式。")),z(!0);return}let i={};for(let t of null!==(r=e.results)&&void 0!==r?r:[])i[t.siteId]=t.ok?"injected":"failed";j(e=>({...e,...i}));let n=Object.values(i).filter(e=>"injected"===e).length;I(0===n?"发送失败,请检查桌面端站点连接":"已发送至 ".concat(n,"/").concat(o.length," 个 AI").concat(n<o.length?",部分失败":"")),z(n<o.length),n>0&&(v(""),k([]))}).catch(()=>{U("offline"),I("桌面端中继请求失败。请再点一次发送,将改用浏览器新标签方式。"),z(!0)}).finally(()=>W(!1));return}if(t.length>0){I("桌面端中继离线:图片只能经桌面端注入已登录页面,请启动桌面端后再发送。"),z(!0);return}let i={};for(let t of o){let r=g(t,e);if(!r)continue;let n=window.open(r,"_blank","noopener");i[t]=n?"opened":"blocked"}j(e=>({...e,...i})),b(e).then(e=>{let t=o.filter(e=>"blocked"===i[e]),r=o.filter(f).length;if(t.length>0){I("已复制问题;".concat(t.map(e=>{var t,r;return null!==(r=null===(t=c.find(t=>t.id===e))||void 0===t?void 0:t.name)&&void 0!==r?r:e}).join("、"),'的标签被浏览器拦截,请点对应分屏里的"打开"按钮(单次点击不会被拦)。')),z(!0);return}I(e&&r<o.length?"已打开 ".concat(o.length," 个站点并复制问题;打勾站点的输入框会自动带上问题并发送,其余站点请粘贴(⌘V)。"):"已打开 ".concat(o.length," 个站点。")),z(!1)})},[m,y,o,D,r]),V=(0,n.useMemo)(()=>Math.min(Math.max(o.length,1),4),[o]);return((0,n.useEffect)(()=>{let e;if("online"!==D||!r||!t||0===o.length)return;let i=!1,n=()=>{r("aihub:capture",{siteIds:o},12e3).then(e=>{var t,r;if(i||!e.available)return;let n={},a={};for(let i of null!==(t=e.results)&&void 0!==t?t:[])i.ok&&i.messages&&i.messages.length>0&&(n[i.siteId]=i.messages),i.ok&&(a[i.siteId]={strategy:i.strategy,bodyChars:"number"==typeof(null===(r=i.debug)||void 0===r?void 0:r.bodyChars)?i.debug.bodyChars:void 0});T(e=>({...e,...n})),_(e=>({...e,...a}))}).catch(()=>{}).finally(()=>{i||(e=window.setTimeout(n,4e3))})};return n(),()=>{i=!0,void 0!==e&&window.clearTimeout(e)}},[D,r,t,o]),R)?(0,i.jsxs)("div",{style:{position:"absolute",inset:0,display:"flex",flexDirection:"column",background:"var(--ui-root-bg)",color:"var(--ui-text)",minHeight:0},children:[(0,i.jsx)("div",{style:{flex:1,minHeight:0,display:"grid",gridTemplateColumns:"repeat(".concat(V,", 1fr)"),gap:1,background:"var(--ui-muted-border)"},children:o.map(e=>{var t,r,n,a;let l=c.find(t=>t.id===e);if(!l)return null;let o=null!==(n=w[e])&&void 0!==n?n:"idle";return(0,i.jsxs)("div",{"data-aihub-pane":e,style:{display:"flex",flexDirection:"column",background:"var(--ui-root-bg)",minWidth:0},children:[(0,i.jsxs)("div",{style:{height:34,display:"flex",alignItems:"center",gap:6,padding:"0 8px",borderBottom:"1px solid var(--ui-muted-border)",background:"var(--ui-tabbar-bg)",fontSize:12,color:"var(--ui-tab-text)"},children:[(0,i.jsx)("strong",{style:{flex:1,overflow:"hidden",textOverflow:"ellipsis",whiteSpace:"nowrap",color:"var(--ui-text)"},children:l.name}),(0,i.jsx)("button",{type:"button",onClick:()=>O(e,m),title:f(e)?"带问题打开":"打开首页(问题在剪贴板)",style:{display:"flex",alignItems:"center",gap:4,padding:"3px 8px",borderRadius:6,border:"1px solid var(--ui-muted-border)",background:"var(--ui-panel-input-bg)",color:"var(--ui-tab-accent)",fontSize:11,cursor:"pointer"},children:"打开"})]}),(0,i.jsx)("div",{style:{flex:1,minHeight:0,display:"flex",flexDirection:"column",alignItems:"center",justifyContent:"center",gap:10,padding:12,overflow:"hidden"},children:(null!==(a=null===(t=M[e])||void 0===t?void 0:t.length)&&void 0!==a?a:0)>0?(0,i.jsx)(x,{messages:M[e]}):(0,i.jsxs)(i.Fragment,{children:[(0,i.jsx)("span",{"aria-hidden":"true",style:{width:44,height:44,display:"grid",placeItems:"center",borderRadius:12,background:"var(--ui-muted-surface)",border:"1px solid var(--ui-muted-border)",color:"var(--ui-tab-accent)",fontSize:18,fontWeight:600},children:l.name.slice(0,1)}),(0,i.jsx)("span",{"data-aihub-pane-state":o,style:{fontSize:12,textAlign:"center",color:"injected"===o||"opened"===o?"var(--ui-success)":"failed"===o||"blocked"===o?"var(--ui-error)":"var(--ui-muted-text)"},children:"opened"===o?"已在新标签打开":"blocked"===o?"标签被拦截":"injected"===o?"已注入 \xb7 回答在桌面端生成":"failed"===o?"注入失败":"等待发送"}),(null===(r=Z[e])||void 0===r?void 0:r.strategy)==="none"&&(0,i.jsx)("span",{style:{fontSize:11,textAlign:"center",color:"var(--ui-muted-text)",maxWidth:200},children:"站点未登录或页面未就绪:请在桌面端 AI Hub 窗口内打开并登录该站点,登录态会持久保留"})]})})]},e)})}),(0,i.jsxs)("div",{style:{borderTop:"1px solid var(--ui-muted-border)",background:"var(--ui-tabbar-bg)",padding:"8px 12px 10px",display:"flex",flexDirection:"column",gap:8},children:[(0,i.jsxs)("div",{role:"status",style:{minWidth:0,fontSize:11,color:C&&S?"var(--ui-error)":"online"===D?"var(--ui-success)":"var(--ui-muted-text)",display:"flex",alignItems:"center",gap:8},children:[(0,i.jsx)("span",{title:S||("online"===D?"通过电脑上已登录的 AI 页面发送和同步回复":"连接桌面端后可同步回复"),style:{flex:1,minWidth:0,whiteSpace:"nowrap",overflow:"hidden",textOverflow:"ellipsis"},children:S||("online"===D?"● 桌面端已连接":"probing"===D?"正在连接桌面端…":"桌面端未连接 \xb7 发送将打开网页")}),S&&(0,i.jsx)("button",{type:"button",onClick:()=>I(null),"aria-label":"关闭提示",style:{flexShrink:0,background:"none",border:0,color:"var(--ui-muted-text)",cursor:"pointer",display:"grid",placeItems:"center"},children:(0,i.jsx)(a.Z,{size:12,"aria-hidden":"true"})})]}),(0,i.jsxs)("div",{style:{position:"relative",display:"flex",alignItems:"center",gap:8,borderRadius:14,border:"1px solid var(--ui-panel-input-border)",background:"var(--ui-panel-input-bg)",padding:"6px 8px"},children:[E&&(0,i.jsxs)(i.Fragment,{children:[(0,i.jsx)("div",{"aria-hidden":"true",onClick:()=>P(!1),style:{position:"fixed",inset:0,zIndex:30}}),(0,i.jsx)("div",{role:"listbox","aria-label":"选择要发送的 AI 站点",style:{position:"absolute",bottom:"calc(100% + 8px)",left:0,zIndex:31,minWidth:210,background:"var(--ui-panel-input-bg)",border:"1px solid var(--ui-muted-border)",borderRadius:12,boxShadow:"0 8px 24px rgba(0,0,0,.14)",padding:4,maxHeight:260,overflowY:"auto"},children:c.map(e=>{let t=o.includes(e.id);return(0,i.jsxs)("button",{type:"button",role:"option","aria-selected":t,onClick:()=>N(e.id),style:{display:"flex",width:"100%",alignItems:"center",gap:8,padding:"8px 10px",border:0,borderRadius:8,background:t?"var(--ui-muted-surface)":"transparent",color:"var(--ui-text)",fontSize:13,cursor:"pointer",textAlign:"left"},children:[(0,i.jsx)("span",{"aria-hidden":"true",style:{width:18,height:18,display:"grid",placeItems:"center",borderRadius:"50%",border:"1px solid ".concat(t?"var(--ui-tab-accent)":"var(--ui-muted-border)"),background:t?"var(--ui-tab-accent)":"transparent",color:"#ffffff",fontSize:11,flexShrink:0},children:t?"✓":""}),e.name,(0,i.jsx)("span",{style:{marginLeft:"auto",fontSize:11,color:"var(--ui-muted-text)"},children:f(e.id)?"自动发送":"粘贴发送"})]},e.id)})})]}),(0,i.jsxs)("button",{type:"button",onClick:()=>P(e=>!e),"aria-haspopup":"listbox","aria-expanded":E,"aria-label":"选择 AI 站点",title:"选择 AI 站点",style:{display:"flex",alignItems:"center",gap:4,height:32,padding:"0 10px",borderRadius:999,border:"1px solid ".concat(E?"var(--ui-tab-accent)":"var(--ui-muted-border)"),background:E?"var(--ui-muted-surface)":"transparent",color:"var(--ui-tab-accent)",fontSize:12,fontWeight:600,cursor:"pointer",flexShrink:0},children:[o.length," 个 AI",(0,i.jsx)(l.Z,{size:14,"aria-hidden":"true",style:{transform:E?"rotate(180deg)":"none",transition:"transform .15s"}})]}),(0,i.jsxs)("div",{style:{flex:1,minWidth:0,display:"flex",flexDirection:"column",gap:6},children:[y.length>0&&(0,i.jsx)("div",{style:{display:"flex",gap:6,flexWrap:"wrap"},children:y.map(e=>(0,i.jsxs)("span",{style:{position:"relative",width:44,height:44,borderRadius:8,overflow:"hidden",border:"1px solid var(--ui-muted-border)",display:"block"},children:[(0,i.jsx)("img",{src:e.dataUrl,alt:e.name,style:{width:"100%",height:"100%",objectFit:"cover",display:"block"}}),(0,i.jsx)("button",{type:"button",onClick:()=>G(e.id),"aria-label":"移除图片 ".concat(e.name),style:{position:"absolute",top:1,right:1,width:16,height:16,display:"grid",placeItems:"center",borderRadius:"50%",border:0,background:"rgba(0,0,0,.6)",color:"#fff",cursor:"pointer",padding:0},children:(0,i.jsx)(a.Z,{size:10,"aria-hidden":"true"})})]},e.id))}),(0,i.jsx)("textarea",{value:m,onChange:e=>v(e.target.value),onKeyDown:e=>{"Enter"===e.key&&(e.metaKey||e.ctrlKey)?(e.preventDefault(),K()):"Escape"===e.key&&E&&(e.preventDefault(),P(!1))},rows:1,placeholder:"一次输入,发到 ".concat(o.length," 个选中的 AI(⌘⏎ 发送)"),style:{resize:"none",border:0,outline:"none",background:"transparent",color:"var(--ui-panel-input-text)",fontSize:16,lineHeight:"20px",maxHeight:60,padding:0,width:"100%"}})]}),(0,i.jsx)("button",{type:"button",onClick:()=>{var e;return null===(e=B.current)||void 0===e?void 0:e.click()},"aria-label":"添加图片",title:"添加图片(最多 ".concat(4," 张)"),disabled:y.length>=4,style:{display:"grid",placeItems:"center",width:32,height:32,borderRadius:"50%",border:"1px solid var(--ui-muted-border)",background:"transparent",color:y.length>=4?"var(--ui-muted-text)":"var(--ui-tab-accent)",cursor:y.length>=4?"default":"pointer",flexShrink:0},children:(0,i.jsx)(d,{size:16,"aria-hidden":"true"})}),(0,i.jsx)("button",{type:"button",onClick:K,"aria-label":"同步发送",disabled:H||0===o.length||!m.trim()&&0===y.length,title:"同步发送(⌘⏎)",style:{display:"grid",placeItems:"center",width:34,height:34,borderRadius:"50%",border:0,background:H||0===o.length||!m.trim()&&0===y.length?"var(--ui-muted-surface)":"var(--ui-tab-accent)",color:H||0===o.length||!m.trim()&&0===y.length?"var(--ui-muted-text)":"#ffffff",cursor:"pointer",flexShrink:0},children:H?(0,i.jsx)(s.Z,{size:16,className:"spin","aria-hidden":"true"}):(0,i.jsx)(u,{size:16,"aria-hidden":"true"})})]}),(0,i.jsx)("input",{ref:B,type:"file",accept:"image/*",multiple:!0,onChange:L,style:{display:"none"}})]})]}):null}function x(e){let{messages:t}=e,r=(0,n.useRef)(null),a=t.map(e=>"".concat(e.role,":").concat(e.text.length)).join("|");return(0,n.useEffect)(()=>{let e=r.current;e&&(e.scrollTop=e.scrollHeight)},[a]),(0,i.jsx)("div",{ref:r,"data-aihub-transcript":"",style:{width:"100%",flex:1,minHeight:0,overflowY:"auto",display:"flex",flexDirection:"column",gap:8,padding:"4px 2px 8px"},children:t.map((e,t)=>{let r="user"===e.role;return(0,i.jsx)("div",{"data-aihub-msg-role":e.role,style:{maxWidth:"92%",alignSelf:r?"flex-end":"flex-start",background:r?"var(--ui-tab-accent)":"var(--ui-muted-surface)",color:r?"#ffffff":"var(--ui-text)",borderRadius:12,borderBottomRightRadius:r?4:12,borderBottomLeftRadius:r?12:4,padding:"6px 9px",fontSize:12,lineHeight:"17px",whiteSpace:"pre-wrap",wordBreak:"break-word"},children:e.text},t)})})}}}]);
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[325],{1806:function(e,t,n){"use strict";n.d(t,{Z:function(){return c}});var r=n(6121);let i=e=>e.replace(/([a-z0-9])([A-Z])/g,"$1-$2").toLowerCase(),o=function(){for(var e=arguments.length,t=Array(e),n=0;n<e;n++)t[n]=arguments[n];return t.filter((e,t,n)=>!!e&&""!==e.trim()&&n.indexOf(e)===t).join(" ").trim()};var s={xmlns:"http://www.w3.org/2000/svg",width:24,height:24,viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:2,strokeLinecap:"round",strokeLinejoin:"round"};let u=(0,r.forwardRef)((e,t)=>{let{color:n="currentColor",size:i=24,strokeWidth:u=2,absoluteStrokeWidth:c,className:l="",children:a,iconNode:d,...h}=e;return(0,r.createElement)("svg",{ref:t,...s,width:i,height:i,stroke:n,strokeWidth:c?24*Number(u)/Number(i):u,className:o("lucide",l),...h},[...d.map(e=>{let[t,n]=e;return(0,r.createElement)(t,n)}),...Array.isArray(a)?a:[a]])}),c=(e,t)=>{let n=(0,r.forwardRef)((n,s)=>{let{className:c,...l}=n;return(0,r.createElement)(u,{ref:s,iconNode:t,className:o("lucide-".concat(i(e)),c),...l})});return n.displayName="".concat(e),n}},1729:function(e,t,n){"use strict";n.d(t,{Z:function(){return r}});let r=(0,n(1806).Z)("ArrowLeft",[["path",{d:"m12 19-7-7 7-7",key:"1l729n"}],["path",{d:"M19 12H5",key:"x3x0zl"}]])},3845:function(e,t,n){"use strict";n.d(t,{Z:function(){return r}});let r=(0,n(1806).Z)("Bot",[["path",{d:"M12 8V4H8",key:"hb8ula"}],["rect",{width:"16",height:"12",x:"4",y:"8",rx:"2",key:"enze0r"}],["path",{d:"M2 14h2",key:"vft8re"}],["path",{d:"M20 14h2",key:"4cs60a"}],["path",{d:"M15 13v2",key:"1xurst"}],["path",{d:"M9 13v2",key:"rq6x2g"}]])},1404:function(e,t,n){"use strict";n.d(t,{Z:function(){return r}});let r=(0,n(1806).Z)("CalendarDays",[["path",{d:"M8 2v4",key:"1cmpym"}],["path",{d:"M16 2v4",key:"4m81vk"}],["rect",{width:"18",height:"18",x:"3",y:"4",rx:"2",key:"1hopcy"}],["path",{d:"M3 10h18",key:"8toen8"}],["path",{d:"M8 14h.01",key:"6423bh"}],["path",{d:"M12 14h.01",key:"1etili"}],["path",{d:"M16 14h.01",key:"1gbofw"}],["path",{d:"M8 18h.01",key:"lrp35t"}],["path",{d:"M12 18h.01",key:"mhygvu"}],["path",{d:"M16 18h.01",key:"kzsmim"}]])},2782:function(e,t,n){"use strict";n.d(t,{Z:function(){return r}});let r=(0,n(1806).Z)("Camera",[["path",{d:"M14.5 4h-5L7 7H4a2 2 0 0 0-2 2v9a2 2 0 0 0 2 2h16a2 2 0 0 0 2-2V9a2 2 0 0 0-2-2h-3l-2.5-3z",key:"1tc9qg"}],["circle",{cx:"12",cy:"13",r:"3",key:"1vg3eu"}]])},4267:function(e,t,n){"use strict";n.d(t,{Z:function(){return r}});let r=(0,n(1806).Z)("Check",[["path",{d:"M20 6 9 17l-5-5",key:"1gmf2c"}]])},7285:function(e,t,n){"use strict";n.d(t,{Z:function(){return r}});let r=(0,n(1806).Z)("ChevronDown",[["path",{d:"m6 9 6 6 6-6",key:"qrunsl"}]])},4040:function(e,t,n){"use strict";n.d(t,{Z:function(){return r}});let r=(0,n(1806).Z)("ChevronLeft",[["path",{d:"m15 18-6-6 6-6",key:"1wnfg3"}]])},6930:function(e,t,n){"use strict";n.d(t,{Z:function(){return r}});let r=(0,n(1806).Z)("ChevronRight",[["path",{d:"m9 18 6-6-6-6",key:"mthhwq"}]])},2199:function(e,t,n){"use strict";n.d(t,{Z:function(){return r}});let r=(0,n(1806).Z)("Copy",[["rect",{width:"14",height:"14",x:"8",y:"8",rx:"2",ry:"2",key:"17jyea"}],["path",{d:"M4 16c-1.1 0-2-.9-2-2V4c0-1.1.9-2 2-2h10c1.1 0 2 .9 2 2",key:"zix9uf"}]])},5984:function(e,t,n){"use strict";n.d(t,{Z:function(){return r}});let r=(0,n(1806).Z)("Download",[["path",{d:"M21 15v4a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2v-4",key:"ih7n3h"}],["polyline",{points:"7 10 12 15 17 10",key:"2ggqvy"}],["line",{x1:"12",x2:"12",y1:"15",y2:"3",key:"1vk2je"}]])},4604:function(e,t,n){"use strict";n.d(t,{Z:function(){return r}});let r=(0,n(1806).Z)("Ellipsis",[["circle",{cx:"12",cy:"12",r:"1",key:"41hilf"}],["circle",{cx:"19",cy:"12",r:"1",key:"1wjl8i"}],["circle",{cx:"5",cy:"12",r:"1",key:"1pcz8c"}]])},656:function(e,t,n){"use strict";n.d(t,{Z:function(){return r}});let r=(0,n(1806).Z)("ExternalLink",[["path",{d:"M15 3h6v6",key:"1q9fwt"}],["path",{d:"M10 14 21 3",key:"gplh6r"}],["path",{d:"M18 13v6a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2V8a2 2 0 0 1 2-2h6",key:"a6xqqp"}]])},4640:function(e,t,n){"use strict";n.d(t,{Z:function(){return r}});let r=(0,n(1806).Z)("FolderOpen",[["path",{d:"m6 14 1.5-2.9A2 2 0 0 1 9.24 10H20a2 2 0 0 1 1.94 2.5l-1.54 6a2 2 0 0 1-1.95 1.5H4a2 2 0 0 1-2-2V5a2 2 0 0 1 2-2h3.9a2 2 0 0 1 1.69.9l.81 1.2a2 2 0 0 0 1.67.9H18a2 2 0 0 1 2 2v2",key:"usdka0"}]])},2194:function(e,t,n){"use strict";n.d(t,{Z:function(){return r}});let r=(0,n(1806).Z)("Globe",[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["path",{d:"M12 2a14.5 14.5 0 0 0 0 20 14.5 14.5 0 0 0 0-20",key:"13o1zl"}],["path",{d:"M2 12h20",key:"9i4pu4"}]])},8026:function(e,t,n){"use strict";n.d(t,{Z:function(){return r}});let r=(0,n(1806).Z)("GripVertical",[["circle",{cx:"9",cy:"12",r:"1",key:"1vctgf"}],["circle",{cx:"9",cy:"5",r:"1",key:"hp0tcf"}],["circle",{cx:"9",cy:"19",r:"1",key:"fkjjf6"}],["circle",{cx:"15",cy:"12",r:"1",key:"1tmaij"}],["circle",{cx:"15",cy:"5",r:"1",key:"19l28e"}],["circle",{cx:"15",cy:"19",r:"1",key:"f4zoj3"}]])},4330:function(e,t,n){"use strict";n.d(t,{Z:function(){return r}});let r=(0,n(1806).Z)("LayoutGrid",[["rect",{width:"7",height:"7",x:"3",y:"3",rx:"1",key:"1g98yp"}],["rect",{width:"7",height:"7",x:"14",y:"3",rx:"1",key:"6d4xhi"}],["rect",{width:"7",height:"7",x:"14",y:"14",rx:"1",key:"nxv5o0"}],["rect",{width:"7",height:"7",x:"3",y:"14",rx:"1",key:"1bb6yr"}]])},2466:function(e,t,n){"use strict";n.d(t,{Z:function(){return r}});let r=(0,n(1806).Z)("LoaderCircle",[["path",{d:"M21 12a9 9 0 1 1-6.219-8.56",key:"13zald"}]])},7402:function(e,t,n){"use strict";n.d(t,{Z:function(){return r}});let r=(0,n(1806).Z)("MessagesSquare",[["path",{d:"M14 9a2 2 0 0 1-2 2H6l-4 4V4a2 2 0 0 1 2-2h8a2 2 0 0 1 2 2z",key:"p1xzt8"}],["path",{d:"M18 9h2a2 2 0 0 1 2 2v11l-4-4h-6a2 2 0 0 1-2-2v-1",key:"1cx29u"}]])},9741:function(e,t,n){"use strict";n.d(t,{Z:function(){return r}});let r=(0,n(1806).Z)("MonitorUp",[["path",{d:"m9 10 3-3 3 3",key:"11gsxs"}],["path",{d:"M12 13V7",key:"h0r20n"}],["rect",{width:"20",height:"14",x:"2",y:"3",rx:"2",key:"48i651"}],["path",{d:"M12 17v4",key:"1riwvh"}],["path",{d:"M8 21h8",key:"1ev6f3"}]])},509:function(e,t,n){"use strict";n.d(t,{Z:function(){return r}});let r=(0,n(1806).Z)("Monitor",[["rect",{width:"20",height:"14",x:"2",y:"3",rx:"2",key:"48i651"}],["line",{x1:"8",x2:"16",y1:"21",y2:"21",key:"1svkeh"}],["line",{x1:"12",x2:"12",y1:"17",y2:"21",key:"vw1qmm"}]])},7880:function(e,t,n){"use strict";n.d(t,{Z:function(){return r}});let r=(0,n(1806).Z)("Palette",[["circle",{cx:"13.5",cy:"6.5",r:".5",fill:"currentColor",key:"1okk4w"}],["circle",{cx:"17.5",cy:"10.5",r:".5",fill:"currentColor",key:"f64h9f"}],["circle",{cx:"8.5",cy:"7.5",r:".5",fill:"currentColor",key:"fotxhn"}],["circle",{cx:"6.5",cy:"12.5",r:".5",fill:"currentColor",key:"qy21gx"}],["path",{d:"M12 2C6.5 2 2 6.5 2 12s4.5 10 10 10c.926 0 1.648-.746 1.648-1.688 0-.437-.18-.835-.437-1.125-.29-.289-.438-.652-.438-1.125a1.64 1.64 0 0 1 1.668-1.668h1.996c3.051 0 5.555-2.503 5.555-5.554C21.965 6.012 17.461 2 12 2z",key:"12rzf8"}]])},1628:function(e,t,n){"use strict";n.d(t,{Z:function(){return r}});let r=(0,n(1806).Z)("PanelRight",[["rect",{width:"18",height:"18",x:"3",y:"3",rx:"2",key:"afitv7"}],["path",{d:"M15 3v18",key:"14nvp0"}]])},6533:function(e,t,n){"use strict";n.d(t,{Z:function(){return r}});let r=(0,n(1806).Z)("Pencil",[["path",{d:"M21.174 6.812a1 1 0 0 0-3.986-3.987L3.842 16.174a2 2 0 0 0-.5.83l-1.321 4.352a.5.5 0 0 0 .623.622l4.353-1.32a2 2 0 0 0 .83-.497z",key:"1a8usu"}],["path",{d:"m15 5 4 4",key:"1mk7zo"}]])},2090:function(e,t,n){"use strict";n.d(t,{Z:function(){return r}});let r=(0,n(1806).Z)("Pin",[["path",{d:"M12 17v5",key:"bb1du9"}],["path",{d:"M9 10.76a2 2 0 0 1-1.11 1.79l-1.78.9A2 2 0 0 0 5 15.24V16a1 1 0 0 0 1 1h12a1 1 0 0 0 1-1v-.76a2 2 0 0 0-1.11-1.79l-1.78-.9A2 2 0 0 1 15 10.76V7a1 1 0 0 1 1-1 2 2 0 0 0 0-4H8a2 2 0 0 0 0 4 1 1 0 0 1 1 1z",key:"1nkz8b"}]])},7805:function(e,t,n){"use strict";n.d(t,{Z:function(){return r}});let r=(0,n(1806).Z)("Plus",[["path",{d:"M5 12h14",key:"1ays0h"}],["path",{d:"M12 5v14",key:"s699le"}]])},3797:function(e,t,n){"use strict";n.d(t,{Z:function(){return r}});let r=(0,n(1806).Z)("RefreshCw",[["path",{d:"M3 12a9 9 0 0 1 9-9 9.75 9.75 0 0 1 6.74 2.74L21 8",key:"v9h5vc"}],["path",{d:"M21 3v5h-5",key:"1q7to0"}],["path",{d:"M21 12a9 9 0 0 1-9 9 9.75 9.75 0 0 1-6.74-2.74L3 16",key:"3uifl3"}],["path",{d:"M8 16H3v5",key:"1cv678"}]])},7678:function(e,t,n){"use strict";n.d(t,{Z:function(){return r}});let r=(0,n(1806).Z)("SlidersHorizontal",[["line",{x1:"21",x2:"14",y1:"4",y2:"4",key:"obuewd"}],["line",{x1:"10",x2:"3",y1:"4",y2:"4",key:"1q6298"}],["line",{x1:"21",x2:"12",y1:"12",y2:"12",key:"1iu8h1"}],["line",{x1:"8",x2:"3",y1:"12",y2:"12",key:"ntss68"}],["line",{x1:"21",x2:"16",y1:"20",y2:"20",key:"14d8ph"}],["line",{x1:"12",x2:"3",y1:"20",y2:"20",key:"m0wm8r"}],["line",{x1:"14",x2:"14",y1:"2",y2:"6",key:"14e1ph"}],["line",{x1:"8",x2:"8",y1:"10",y2:"14",key:"1i6ji0"}],["line",{x1:"16",x2:"16",y1:"18",y2:"22",key:"1lctlv"}]])},7724:function(e,t,n){"use strict";n.d(t,{Z:function(){return r}});let r=(0,n(1806).Z)("Smartphone",[["rect",{width:"14",height:"20",x:"5",y:"2",rx:"2",ry:"2",key:"1yt0o3"}],["path",{d:"M12 18h.01",key:"mhygvu"}]])},5257:function(e,t,n){"use strict";n.d(t,{Z:function(){return r}});let r=(0,n(1806).Z)("TextCursorInput",[["path",{d:"M5 4h1a3 3 0 0 1 3 3 3 3 0 0 1 3-3h1",key:"18xjzo"}],["path",{d:"M13 20h-1a3 3 0 0 1-3-3 3 3 0 0 1-3 3H5",key:"fj48gi"}],["path",{d:"M5 16H4a2 2 0 0 1-2-2v-4a2 2 0 0 1 2-2h1",key:"1n9rhb"}],["path",{d:"M13 8h7a2 2 0 0 1 2 2v4a2 2 0 0 1-2 2h-7",key:"13ksps"}],["path",{d:"M9 7v10",key:"1vc8ob"}]])},1857:function(e,t,n){"use strict";n.d(t,{Z:function(){return r}});let r=(0,n(1806).Z)("Trash2",[["path",{d:"M3 6h18",key:"d0wm0j"}],["path",{d:"M19 6v14c0 1-1 2-2 2H7c-1 0-2-1-2-2V6",key:"4alrt4"}],["path",{d:"M8 6V4c0-1 1-2 2-2h4c1 0 2 1 2 2v2",key:"v07s0e"}],["line",{x1:"10",x2:"10",y1:"11",y2:"17",key:"1uufr5"}],["line",{x1:"14",x2:"14",y1:"11",y2:"17",key:"xtxkd"}]])},341:function(e,t,n){"use strict";n.d(t,{Z:function(){return r}});let r=(0,n(1806).Z)("UsersRound",[["path",{d:"M18 21a8 8 0 0 0-16 0",key:"3ypg7q"}],["circle",{cx:"10",cy:"8",r:"5",key:"o932ke"}],["path",{d:"M22 20c0-3.37-2-6.5-4-8a5 5 0 0 0-.45-8.3",key:"10s06x"}]])},7317:function(e,t,n){"use strict";n.d(t,{Z:function(){return r}});let r=(0,n(1806).Z)("X",[["path",{d:"M18 6 6 18",key:"1bl5f8"}],["path",{d:"m6 6 12 12",key:"d8bk6v"}]])},7004:function(e,t,n){"use strict";n.d(t,{default:function(){return i.a}});var r=n(6302),i=n.n(r)},6584:function(e,t,n){"use strict";var r,i;e.exports=(null==(r=n.g.process)?void 0:r.env)&&"object"==typeof(null==(i=n.g.process)?void 0:i.env)?n.g.process:n(3307)},9844:function(){},3307:function(e){!function(){var t={229:function(e){var t,n,r,i=e.exports={};function o(){throw Error("setTimeout has not been defined")}function s(){throw Error("clearTimeout has not been defined")}function u(e){if(t===setTimeout)return setTimeout(e,0);if((t===o||!t)&&setTimeout)return t=setTimeout,setTimeout(e,0);try{return t(e,0)}catch(n){try{return t.call(null,e,0)}catch(n){return t.call(this,e,0)}}}!function(){try{t="function"==typeof setTimeout?setTimeout:o}catch(e){t=o}try{n="function"==typeof clearTimeout?clearTimeout:s}catch(e){n=s}}();var c=[],l=!1,a=-1;function d(){l&&r&&(l=!1,r.length?c=r.concat(c):a=-1,c.length&&h())}function h(){if(!l){var e=u(d);l=!0;for(var t=c.length;t;){for(r=c,c=[];++a<t;)r&&r[a].run();a=-1,t=c.length}r=null,l=!1,function(e){if(n===clearTimeout)return clearTimeout(e);if((n===s||!n)&&clearTimeout)return n=clearTimeout,clearTimeout(e);try{n(e)}catch(t){try{return n.call(null,e)}catch(t){return n.call(this,e)}}}(e)}}function f(e,t){this.fun=e,this.array=t}function y(){}i.nextTick=function(e){var t=Array(arguments.length-1);if(arguments.length>1)for(var n=1;n<arguments.length;n++)t[n-1]=arguments[n];c.push(new f(e,t)),1!==c.length||l||u(h)},f.prototype.run=function(){this.fun.apply(null,this.array)},i.title="browser",i.browser=!0,i.env={},i.argv=[],i.version="",i.versions={},i.on=y,i.addListener=y,i.once=y,i.off=y,i.removeListener=y,i.removeAllListeners=y,i.emit=y,i.prependListener=y,i.prependOnceListener=y,i.listeners=function(e){return[]},i.binding=function(e){throw Error("process.binding is not supported")},i.cwd=function(){return"/"},i.chdir=function(e){throw Error("process.chdir is not supported")},i.umask=function(){return 0}}},n={};function r(e){var i=n[e];if(void 0!==i)return i.exports;var o=n[e]={exports:{}},s=!0;try{t[e](o,o.exports,r),s=!1}finally{s&&delete n[e]}return o.exports}r.ab="//";var i=r(229);e.exports=i}()},6302:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"default",{enumerable:!0,get:function(){return o}});let r=n(684);n(1996),n(6121);let i=r._(n(6729));function o(e,t){var n;let r={loading:e=>{let{error:t,isLoading:n,pastDelay:r}=e;return null}};"function"==typeof e&&(r.loader=e);let o={...r,...t};return(0,i.default)({...o,modules:null==(n=o.loadableGenerated)?void 0:n.modules})}("function"==typeof t.default||"object"==typeof t.default&&null!==t.default)&&void 0===t.default.__esModule&&(Object.defineProperty(t.default,"__esModule",{value:!0}),Object.assign(t.default,t),e.exports=t.default)},4352:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"BailoutToCSR",{enumerable:!0,get:function(){return i}});let r=n(2723);function i(e){let{reason:t,children:n}=e;if("undefined"==typeof window)throw new r.BailoutToCSRError(t);return n}},6729:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"default",{enumerable:!0,get:function(){return l}});let r=n(1996),i=n(6121),o=n(4352),s=n(5882);function u(e){return{default:e&&"default"in e?e.default:e}}let c={loader:()=>Promise.resolve(u(()=>null)),loading:null,ssr:!0},l=function(e){let t={...c,...e},n=(0,i.lazy)(()=>t.loader().then(u)),l=t.loading;function a(e){let u=l?(0,r.jsx)(l,{isLoading:!0,pastDelay:!0,error:null}):null,c=t.ssr?(0,r.jsxs)(r.Fragment,{children:["undefined"==typeof window?(0,r.jsx)(s.PreloadCss,{moduleIds:t.modules}):null,(0,r.jsx)(n,{...e})]}):(0,r.jsx)(o.BailoutToCSR,{reason:"next/dynamic",children:(0,r.jsx)(n,{...e})});return(0,r.jsx)(i.Suspense,{fallback:u,children:c})}return a.displayName="LoadableComponent",a}},5882:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"PreloadCss",{enumerable:!0,get:function(){return o}});let r=n(1996),i=n(7994);function o(e){let{moduleIds:t}=e;if("undefined"!=typeof window)return null;let n=(0,i.getExpectedRequestStore)("next/dynamic css"),o=[];if(n.reactLoadableManifest&&t){let e=n.reactLoadableManifest;for(let n of t){if(!e[n])continue;let t=e[n].files.filter(e=>e.endsWith(".css"));o.push(...t)}}return 0===o.length?null:(0,r.jsx)(r.Fragment,{children:o.map(e=>(0,r.jsx)("link",{precedence:"dynamic",rel:"stylesheet",href:n.assetPrefix+"/_next/"+encodeURI(e),as:"style"},e))})}},1137:function(e,t,n){"use strict";var r=n(6584);n(9844);var i=n(6121),o=i&&"object"==typeof i&&"default"in i?i:{default:i},s=void 0!==r&&r.env&&!0,u=function(e){return"[object String]"===Object.prototype.toString.call(e)},c=function(){function e(e){var t=void 0===e?{}:e,n=t.name,r=void 0===n?"stylesheet":n,i=t.optimizeForSpeed,o=void 0===i?s:i;l(u(r),"`name` must be a string"),this._name=r,this._deletedRulePlaceholder="#"+r+"-deleted-rule____{}",l("boolean"==typeof o,"`optimizeForSpeed` must be a boolean"),this._optimizeForSpeed=o,this._serverSheet=void 0,this._tags=[],this._injected=!1,this._rulesCount=0;var c="undefined"!=typeof window&&document.querySelector('meta[property="csp-nonce"]');this._nonce=c?c.getAttribute("content"):null}var t=e.prototype;return t.setOptimizeForSpeed=function(e){l("boolean"==typeof e,"`setOptimizeForSpeed` accepts a boolean"),l(0===this._rulesCount,"optimizeForSpeed cannot be when rules have already been inserted"),this.flush(),this._optimizeForSpeed=e,this.inject()},t.isOptimizeForSpeed=function(){return this._optimizeForSpeed},t.inject=function(){var e=this;if(l(!this._injected,"sheet already injected"),this._injected=!0,"undefined"!=typeof window&&this._optimizeForSpeed){this._tags[0]=this.makeStyleTag(this._name),this._optimizeForSpeed="insertRule"in this.getSheet(),this._optimizeForSpeed||(s||console.warn("StyleSheet: optimizeForSpeed mode not supported falling back to standard mode."),this.flush(),this._injected=!0);return}this._serverSheet={cssRules:[],insertRule:function(t,n){return"number"==typeof n?e._serverSheet.cssRules[n]={cssText:t}:e._serverSheet.cssRules.push({cssText:t}),n},deleteRule:function(t){e._serverSheet.cssRules[t]=null}}},t.getSheetForTag=function(e){if(e.sheet)return e.sheet;for(var t=0;t<document.styleSheets.length;t++)if(document.styleSheets[t].ownerNode===e)return document.styleSheets[t]},t.getSheet=function(){return this.getSheetForTag(this._tags[this._tags.length-1])},t.insertRule=function(e,t){if(l(u(e),"`insertRule` accepts only strings"),"undefined"==typeof window)return"number"!=typeof t&&(t=this._serverSheet.cssRules.length),this._serverSheet.insertRule(e,t),this._rulesCount++;if(this._optimizeForSpeed){var n=this.getSheet();"number"!=typeof t&&(t=n.cssRules.length);try{n.insertRule(e,t)}catch(t){return s||console.warn("StyleSheet: illegal rule: \n\n"+e+"\n\nSee https://stackoverflow.com/q/20007992 for more info"),-1}}else{var r=this._tags[t];this._tags.push(this.makeStyleTag(this._name,e,r))}return this._rulesCount++},t.replaceRule=function(e,t){if(this._optimizeForSpeed||"undefined"==typeof window){var n="undefined"!=typeof window?this.getSheet():this._serverSheet;if(t.trim()||(t=this._deletedRulePlaceholder),!n.cssRules[e])return e;n.deleteRule(e);try{n.insertRule(t,e)}catch(r){s||console.warn("StyleSheet: illegal rule: \n\n"+t+"\n\nSee https://stackoverflow.com/q/20007992 for more info"),n.insertRule(this._deletedRulePlaceholder,e)}}else{var r=this._tags[e];l(r,"old rule at index `"+e+"` not found"),r.textContent=t}return e},t.deleteRule=function(e){if("undefined"==typeof window){this._serverSheet.deleteRule(e);return}if(this._optimizeForSpeed)this.replaceRule(e,"");else{var t=this._tags[e];l(t,"rule at index `"+e+"` not found"),t.parentNode.removeChild(t),this._tags[e]=null}},t.flush=function(){this._injected=!1,this._rulesCount=0,"undefined"!=typeof window?(this._tags.forEach(function(e){return e&&e.parentNode.removeChild(e)}),this._tags=[]):this._serverSheet.cssRules=[]},t.cssRules=function(){var e=this;return"undefined"==typeof window?this._serverSheet.cssRules:this._tags.reduce(function(t,n){return n?t=t.concat(Array.prototype.map.call(e.getSheetForTag(n).cssRules,function(t){return t.cssText===e._deletedRulePlaceholder?null:t})):t.push(null),t},[])},t.makeStyleTag=function(e,t,n){t&&l(u(t),"makeStyleTag accepts only strings as second parameter");var r=document.createElement("style");this._nonce&&r.setAttribute("nonce",this._nonce),r.type="text/css",r.setAttribute("data-"+e,""),t&&r.appendChild(document.createTextNode(t));var i=document.head||document.getElementsByTagName("head")[0];return n?i.insertBefore(r,n):i.appendChild(r),r},function(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}(e.prototype,[{key:"length",get:function(){return this._rulesCount}}]),e}();function l(e,t){if(!e)throw Error("StyleSheet: "+t+".")}var a=function(e){for(var t=5381,n=e.length;n;)t=33*t^e.charCodeAt(--n);return t>>>0},d={};function h(e,t){if(!t)return"jsx-"+e;var n=String(t),r=e+n;return d[r]||(d[r]="jsx-"+a(e+"-"+n)),d[r]}function f(e,t){"undefined"==typeof window&&(t=t.replace(/\/style/gi,"\\/style"));var n=e+t;return d[n]||(d[n]=t.replace(/__jsx-style-dynamic-selector/g,e)),d[n]}var y=function(){function e(e){var t=void 0===e?{}:e,n=t.styleSheet,r=void 0===n?null:n,i=t.optimizeForSpeed,o=void 0!==i&&i;this._sheet=r||new c({name:"styled-jsx",optimizeForSpeed:o}),this._sheet.inject(),r&&"boolean"==typeof o&&(this._sheet.setOptimizeForSpeed(o),this._optimizeForSpeed=this._sheet.isOptimizeForSpeed()),this._fromServer=void 0,this._indices={},this._instancesCounts={}}var t=e.prototype;return t.add=function(e){var t=this;void 0===this._optimizeForSpeed&&(this._optimizeForSpeed=Array.isArray(e.children),this._sheet.setOptimizeForSpeed(this._optimizeForSpeed),this._optimizeForSpeed=this._sheet.isOptimizeForSpeed()),"undefined"==typeof window||this._fromServer||(this._fromServer=this.selectFromServer(),this._instancesCounts=Object.keys(this._fromServer).reduce(function(e,t){return e[t]=0,e},{}));var n=this.getIdAndRules(e),r=n.styleId,i=n.rules;if(r in this._instancesCounts){this._instancesCounts[r]+=1;return}var o=i.map(function(e){return t._sheet.insertRule(e)}).filter(function(e){return -1!==e});this._indices[r]=o,this._instancesCounts[r]=1},t.remove=function(e){var t=this,n=this.getIdAndRules(e).styleId;if(function(e,t){if(!e)throw Error("StyleSheetRegistry: "+t+".")}(n in this._instancesCounts,"styleId: `"+n+"` not found"),this._instancesCounts[n]-=1,this._instancesCounts[n]<1){var r=this._fromServer&&this._fromServer[n];r?(r.parentNode.removeChild(r),delete this._fromServer[n]):(this._indices[n].forEach(function(e){return t._sheet.deleteRule(e)}),delete this._indices[n]),delete this._instancesCounts[n]}},t.update=function(e,t){this.add(t),this.remove(e)},t.flush=function(){this._sheet.flush(),this._sheet.inject(),this._fromServer=void 0,this._indices={},this._instancesCounts={}},t.cssRules=function(){var e=this,t=this._fromServer?Object.keys(this._fromServer).map(function(t){return[t,e._fromServer[t]]}):[],n=this._sheet.cssRules();return t.concat(Object.keys(this._indices).map(function(t){return[t,e._indices[t].map(function(e){return n[e].cssText}).join(e._optimizeForSpeed?"":"\n")]}).filter(function(e){return!!e[1]}))},t.styles=function(e){var t,n;return t=this.cssRules(),void 0===(n=e)&&(n={}),t.map(function(e){var t=e[0],r=e[1];return o.default.createElement("style",{id:"__"+t,key:"__"+t,nonce:n.nonce?n.nonce:void 0,dangerouslySetInnerHTML:{__html:r}})})},t.getIdAndRules=function(e){var t=e.children,n=e.dynamic,r=e.id;if(n){var i=h(r,n);return{styleId:i,rules:Array.isArray(t)?t.map(function(e){return f(i,e)}):[f(i,t)]}}return{styleId:h(r),rules:Array.isArray(t)?t:[t]}},t.selectFromServer=function(){return Array.prototype.slice.call(document.querySelectorAll('[id^="__jsx-"]')).reduce(function(e,t){return e[t.id.slice(2)]=t,e},{})},e}(),p=i.createContext(null);p.displayName="StyleSheetContext";var m=o.default.useInsertionEffect||o.default.useLayoutEffect,v="undefined"!=typeof window?new y:void 0;function k(e){var t=v||i.useContext(p);return t&&("undefined"==typeof window?t.add(e):m(function(){return t.add(e),function(){t.remove(e)}},[e.id,String(e.dynamic)])),null}k.dynamic=function(e){return e.map(function(e){return h(e[0],e[1])}).join(" ")},t.style=k},9516:function(e,t,n){"use strict";e.exports=n(1137).style}}]);
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use strict";(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[34],{34:function(e,t,a){a.r(t),a.d(t,{default:function(){return L}});var l=a(1996),r=a(6121);let n=[["style",new Set(["css","scss","sass","less","styl"])],["image",new Set(["png","jpg","jpeg","gif","webp","avif","bmp","ico","svg","tif","tiff"])],["video",new Set(["mp4","mov","m4v","webm","mkv","avi","wmv","flv","mpeg","mpg"])],["audio",new Set(["mp3","wav","m4a","aac","ogg","flac","opus"])],["markdown",new Set(["md","mdx","markdown"])],["json",new Set(["json","jsonc","geojson"])],["archive",new Set(["zip","tar","gz","tgz","bz2","xz","7z","rar"])],["spreadsheet",new Set(["csv","tsv","xls","xlsx","ods"])],["presentation",new Set(["ppt","pptx","key","odp"])],["database",new Set(["db","sqlite","sqlite3"])],["text",new Set(["txt","log","rtf","ini","cfg","conf","env","yaml","yml","toml","xml","pdf","doc","docx","odt"])],["code",new Set(["js","jsx","mjs","cjs","ts","tsx","vue","svelte","java","kt","kts","py","rb","go","rs","php","c","cc","cpp","h","hpp","cs","swift","scala","sh","bash","zsh","fish","sql","html"])]],i=new Map([["dockerfile","code"],["makefile","code"],["gemfile","code"],["rakefile","code"],["license","text"]]);var s=a(1806);let c=(0,s.Z)("FileCode2",[["path",{d:"M4 22h14a2 2 0 0 0 2-2V7l-5-5H6a2 2 0 0 0-2 2v4",key:"1pf5j1"}],["path",{d:"M14 2v4a2 2 0 0 0 2 2h4",key:"tnqrlb"}],["path",{d:"m5 12-3 3 3 3",key:"oke12k"}],["path",{d:"m9 18 3-3-3-3",key:"112psh"}]]);var d=a(7880);let o=(0,s.Z)("FileImage",[["path",{d:"M15 2H6a2 2 0 0 0-2 2v16a2 2 0 0 0 2 2h12a2 2 0 0 0 2-2V7Z",key:"1rqfz7"}],["path",{d:"M14 2v4a2 2 0 0 0 2 2h4",key:"tnqrlb"}],["circle",{cx:"10",cy:"12",r:"2",key:"737tya"}],["path",{d:"m20 17-1.296-1.296a2.41 2.41 0 0 0-3.408 0L9 22",key:"wt3hpn"}]]),h=(0,s.Z)("FileVideo2",[["path",{d:"M4 22h14a2 2 0 0 0 2-2V7l-5-5H6a2 2 0 0 0-2 2v4",key:"1pf5j1"}],["path",{d:"M14 2v4a2 2 0 0 0 2 2h4",key:"tnqrlb"}],["rect",{width:"8",height:"6",x:"2",y:"12",rx:"1",key:"1a6c1e"}],["path",{d:"m10 15.5 4 2.5v-6l-4 2.5",key:"t7cp39"}]]),p=(0,s.Z)("FileAudio",[["path",{d:"M17.5 22h.5a2 2 0 0 0 2-2V7l-5-5H6a2 2 0 0 0-2 2v3",key:"rslqgf"}],["path",{d:"M14 2v4a2 2 0 0 0 2 2h4",key:"tnqrlb"}],["path",{d:"M2 19a2 2 0 1 1 4 0v1a2 2 0 1 1-4 0v-4a6 6 0 0 1 12 0v4a2 2 0 1 1-4 0v-1a2 2 0 1 1 4 0",key:"9f7x3i"}]]),u=(0,s.Z)("NotebookText",[["path",{d:"M2 6h4",key:"aawbzj"}],["path",{d:"M2 10h4",key:"l0bgd4"}],["path",{d:"M2 14h4",key:"1gsvsf"}],["path",{d:"M2 18h4",key:"1bu2t1"}],["rect",{width:"16",height:"20",x:"4",y:"2",rx:"2",key:"1nb95v"}],["path",{d:"M9.5 8h5",key:"11mslq"}],["path",{d:"M9.5 12H16",key:"ktog6x"}],["path",{d:"M9.5 16H14",key:"p1seyn"}]]),v=(0,s.Z)("FileText",[["path",{d:"M15 2H6a2 2 0 0 0-2 2v16a2 2 0 0 0 2 2h12a2 2 0 0 0 2-2V7Z",key:"1rqfz7"}],["path",{d:"M14 2v4a2 2 0 0 0 2 2h4",key:"tnqrlb"}],["path",{d:"M10 9H8",key:"b1mrlr"}],["path",{d:"M16 13H8",key:"t4e002"}],["path",{d:"M16 17H8",key:"z1uh3a"}]]),y=(0,s.Z)("FileJson2",[["path",{d:"M4 22h14a2 2 0 0 0 2-2V7l-5-5H6a2 2 0 0 0-2 2v4",key:"1pf5j1"}],["path",{d:"M14 2v4a2 2 0 0 0 2 2h4",key:"tnqrlb"}],["path",{d:"M4 12a1 1 0 0 0-1 1v1a1 1 0 0 1-1 1 1 1 0 0 1 1 1v1a1 1 0 0 0 1 1",key:"fq0c9t"}],["path",{d:"M8 18a1 1 0 0 0 1-1v-1a1 1 0 0 1 1-1 1 1 0 0 1-1-1v-1a1 1 0 0 0-1-1",key:"4gibmv"}]]),k=(0,s.Z)("FileArchive",[["path",{d:"M10 12v-1",key:"v7bkov"}],["path",{d:"M10 18v-2",key:"1cjy8d"}],["path",{d:"M10 7V6",key:"dljcrl"}],["path",{d:"M14 2v4a2 2 0 0 0 2 2h4",key:"tnqrlb"}],["path",{d:"M15.5 22H18a2 2 0 0 0 2-2V7l-5-5H6a2 2 0 0 0-2 2v16a2 2 0 0 0 .274 1.01",key:"gkbcor"}],["circle",{cx:"10",cy:"20",r:"2",key:"1xzdoj"}]]),f=(0,s.Z)("FileSpreadsheet",[["path",{d:"M15 2H6a2 2 0 0 0-2 2v16a2 2 0 0 0 2 2h12a2 2 0 0 0 2-2V7Z",key:"1rqfz7"}],["path",{d:"M14 2v4a2 2 0 0 0 2 2h4",key:"tnqrlb"}],["path",{d:"M8 13h2",key:"yr2amv"}],["path",{d:"M14 13h2",key:"un5t4a"}],["path",{d:"M8 17h2",key:"2yhykz"}],["path",{d:"M14 17h2",key:"10kma7"}]]),x=(0,s.Z)("Presentation",[["path",{d:"M2 3h20",key:"91anmk"}],["path",{d:"M21 3v11a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2V3",key:"2k9sn8"}],["path",{d:"m7 21 5-5 5 5",key:"bip4we"}]]),m=(0,s.Z)("Database",[["ellipse",{cx:"12",cy:"5",rx:"9",ry:"3",key:"msslwz"}],["path",{d:"M3 5V19A9 3 0 0 0 21 19V5",key:"1wlel7"}],["path",{d:"M3 12A9 3 0 0 0 21 12",key:"mv7ke4"}]]),b=(0,s.Z)("File",[["path",{d:"M15 2H6a2 2 0 0 0-2 2v16a2 2 0 0 0 2 2h12a2 2 0 0 0 2-2V7Z",key:"1rqfz7"}],["path",{d:"M14 2v4a2 2 0 0 0 2 2h4",key:"tnqrlb"}]]);var j=a(2466),g=a(7285),w=a(6930),M=a(4640);let z=(0,s.Z)("Folder",[["path",{d:"M20 20a2 2 0 0 0 2-2V8a2 2 0 0 0-2-2h-7.9a2 2 0 0 1-1.69-.9L9.6 3.9A2 2 0 0 0 7.93 3H4a2 2 0 0 0-2 2v13a2 2 0 0 0 2 2Z",key:"1kt360"}]]),Z=(0,s.Z)("CornerDownLeft",[["polyline",{points:"9 10 4 15 9 20",key:"r3jprv"}],["path",{d:"M20 4v7a4 4 0 0 1-4 4H4",key:"6o5b7l"}]]),q=(0,s.Z)("LocateFixed",[["line",{x1:"2",x2:"5",y1:"12",y2:"12",key:"bvdh0s"}],["line",{x1:"19",x2:"22",y1:"12",y2:"12",key:"1tbv5k"}],["line",{x1:"12",x2:"12",y1:"2",y2:"5",key:"11lu5j"}],["line",{x1:"12",x2:"12",y1:"19",y2:"22",key:"x3vr5v"}],["circle",{cx:"12",cy:"12",r:"7",key:"fim9np"}],["circle",{cx:"12",cy:"12",r:"3",key:"1v7zrd"}]]),N=(0,s.Z)("Search",[["circle",{cx:"11",cy:"11",r:"8",key:"4ej97u"}],["path",{d:"m21 21-4.3-4.3",key:"1qie3q"}]]);var S=a(7317);function C(e){let t=/^(?:[A-Za-z]:[\\/]|\\\\)/.test(e)?e.replaceAll("\\","/"):e,a=/^\/\/[^/]+\/[^/]+/.test(t),l=t.replace(/\/{2,}/g,"/");return/^[A-Za-z]:\/$/.test(l)||"/"===l?l:(a?"/":"")+l.replace(/\/+$/,"")}function H(e){let t=C(e),a=t.lastIndexOf("/");return 2===a&&/^[A-Za-z]:\//.test(t)?t.slice(0,3):a<=0?"/":t.slice(0,a)}function F(e,t){let a=C(e),l=C(t);return a.startsWith(l.endsWith("/")?l:"".concat(l,"/"))}let V={code:{icon:c,color:"#7aa2f7",label:"代码文件"},style:{icon:d.Z,color:"#bb9af7",label:"样式文件"},image:{icon:o,color:"#9ece6a",label:"图片文件"},video:{icon:h,color:"#f7768e",label:"视频文件"},audio:{icon:p,color:"#c099ff",label:"音频文件"},markdown:{icon:u,color:"#73daca",label:"Markdown 文件"},text:{icon:v,color:"#a9b1d6",label:"文本文件"},json:{icon:y,color:"#e0af68",label:"JSON 文件"},archive:{icon:k,color:"#ff9e64",label:"压缩文件"},spreadsheet:{icon:f,color:"#9ece6a",label:"表格文件"},presentation:{icon:x,color:"#f7768e",label:"演示文件"},database:{icon:m,color:"#2ac3de",label:"数据库文件"},file:{icon:b,color:"#c8c8d0",label:"文件"}};function A(e){return e<1024?"".concat(e,"B"):e<1048576?"".concat((e/1024).toFixed(1),"K"):e<1073741824?"".concat((e/1024/1024).toFixed(1),"M"):"".concat((e/1024/1024/1024).toFixed(1),"G")}function L(e){let{gateway:t,onOpenFile:a,selectedPath:s,ready:c,cwd:d,followCwd:o,initialRoot:h,initialFollow:p=!0,onTreeStateChange:u,revealRequest:v}=e,y=t.request,k=t.subscribe,[f,x]=(0,r.useState)(null),[m,b]=(0,r.useState)(""),[L,E]=(0,r.useState)(""),[I,W]=(0,r.useState)(!p),[R,_]=(0,r.useState)(""),D=(0,r.useRef)(new Map),B=(0,r.useRef)(null),J=(0,r.useRef)(null),K=(0,r.useRef)(0),O=(0,r.useRef)(0),[,P]=(0,r.useState)(0),T=()=>P(e=>e+1),$=(0,r.useCallback)(async(e,t)=>{let a={path:e,depth:t,expanded:!0,children:null,loading:!0};D.current.set(e,a),T();try{let t=await y("fs:list",{path:e});a.children=t.entries,y("fs:watch",{path:e}).catch(()=>{})}catch(e){var l;a.children=[],a.error=null!==(l=null==e?void 0:e.message)&&void 0!==l?l:"read failed"}return a.loading=!1,T(),a},[y]),G=!!o&&!I,Q=(0,r.useCallback)(e=>{let t=C(e);B.current=t,D.current.clear(),x({path:t,depth:0,expanded:!1,children:null,loading:!1}),E(t)},[]);(0,r.useEffect)(()=>{c&&d&&G&&B.current!==C(d)&&(Q(d),null==u||u(d,!0))},[c,d,G,Q]),(0,r.useEffect)(()=>{c&&h&&!p&&!B.current&&(W(!0),Q(h))},[c,h,p,Q]),(0,r.useEffect)(()=>{c&&y("hello").then(e=>{_(e.home),!G||d||B.current||Q(e.home)}).catch(()=>{})},[c,d,G,y,Q]);let U=()=>{let e=L.trim();e&&("~"===e?e=R||d||"/":e.startsWith("~/")?e="".concat(R||d||"").concat(e.slice(1)):e.startsWith("/")||(e="".concat(d||(null==f?void 0:f.path)||R||"/","/").concat(e)),e=e.replace(/\/+/g,"/"),W(!0),Q(e),null==u||u(e,!1))},X=(0,r.useCallback)(async e=>{let t=D.current.get(e);t||(t={path:e,depth:0,expanded:!1,children:null,loading:!1},D.current.set(e,t)),t.expanded?t.expanded=!1:(t.expanded=!0,t.children||t.loading||await $(e,t.depth)),T()},[$]),Y=(0,r.useCallback)(async(e,t)=>{let a=D.current.get(e);a?a.children||a.loading||await $(e,t):a=await $(e,t),a.expanded=!0,T()},[$]),ee=(0,r.useCallback)(async e=>{let{path:t,requestId:a,rootAtParent:l}=e,r=C(t),n=H(r),i=B.current;!l&&i&&F(r,i)||(i=n,W(!0),B.current!==i&&Q(i),null==u||u(i,!1)),b("");let s=function(e,t){let a=C(e);if(!F(t,a))return[];let l=H(t);if(l===a)return[a];let r=l.slice(a.length+(a.endsWith("/")?0:1)),n=[a],i=a;for(let e of r.split("/").filter(Boolean))i=i.endsWith("/")?i+e:"".concat(i,"/").concat(e),n.push(i);return n}(i,r);for(let e=0;e<s.length;e+=1){if(K.current!==a)return;await Y(s[e],e)}let c=()=>{var e,t;if(K.current!==a)return;let l=Array.from(null!==(t=null===(e=J.current)||void 0===e?void 0:e.querySelectorAll("[data-tree-path]"))&&void 0!==t?t:[]).find(e=>e.dataset.treePath===r);null==l||l.scrollIntoView({block:"center",inline:"nearest"})};requestAnimationFrame(()=>requestAnimationFrame(c))},[Q,u,Y]);(0,r.useEffect)(()=>{c&&v&&O.current!==v.requestId&&(O.current=v.requestId,K.current=v.requestId,ee(v))},[c,ee,null==v?void 0:v.requestId]),(0,r.useEffect)(()=>k("fs:event",e=>{var t;for(let a of null!==(t=e.events)&&void 0!==t?t:[]){let e=C(a.path);s&&e===C(s)&&window.dispatchEvent(new CustomEvent("file-changed",{detail:s}));let t=H(e),l=D.current.get(t);(null==l?void 0:l.expanded)&&l.children&&!l.loading&&$(t,l.depth).catch(()=>{})}}),[k,s,$]);let et=(e,t)=>e.endsWith("/")?e+t:"".concat(e,"/").concat(t),ea=s&&C(s),el=m.trim().toLowerCase(),er=(e,t)=>{var a,l;if(!el||t.name.toLowerCase().includes(el))return!0;if(!t.dir)return!1;let r=et(e,t.name),n=null===(a=D.current.get(r))||void 0===a?void 0:a.children;return null!==(l=null==n?void 0:n.some(e=>er(r,e)))&&void 0!==l&&l},en=(e,t,r)=>t.filter(t=>er(e,t)).map(t=>{let s=et(e,t.name);if(t.dir){var c;let e=D.current.get(s),a=null!==(c=null==e?void 0:e.expanded)&&void 0!==c&&c;return(0,l.jsxs)("div",{children:[(0,l.jsxs)("div",{className:"tree-row",onClick:()=>X(s),style:{paddingLeft:6+12*r},children:[(0,l.jsx)("span",{className:"tree-disclosure","aria-hidden":"true",children:(null==e?void 0:e.loading)?(0,l.jsx)(j.Z,{className:"tree-spin",size:13}):a?(0,l.jsx)(g.Z,{size:13}):(0,l.jsx)(w.Z,{size:13})}),(0,l.jsx)("span",{className:"tree-entry-icon tree-folder-icon","aria-hidden":"true",children:a?(0,l.jsx)(M.Z,{size:16}):(0,l.jsx)(z,{size:16})}),(0,l.jsx)("span",{className:"tree-entry-name",children:t.name})]}),a&&(e.error?(0,l.jsx)("div",{className:"tree-error",role:"alert",style:{paddingLeft:22+12*r},children:e.error}):e.children?en(s,e.children,r+1):(0,l.jsx)("div",{className:"tree-row",style:{paddingLeft:22+12*r,color:"#556"},children:"…"}))]},s)}let d=V[function(e){var t,a;let l=e.toLocaleLowerCase(),r=i.get(l);if(r)return r;if(l.startsWith(".env")||".gitignore"===l||".npmrc"===l)return"text";let s=l.includes(".")&&l.split(".").pop()||"";return null!==(a=null===(t=n.find(e=>{let[,t]=e;return t.has(s)}))||void 0===t?void 0:t[0])&&void 0!==a?a:"file"}(t.name)],o=d.icon;return(0,l.jsxs)("div",{className:"tree-row","data-tree-path":s,"data-selected":s===ea?"1":void 0,onClick:()=>a(s),title:"".concat(d.label," \xb7 ").concat(s," \xb7 ").concat(A(t.size)),style:{paddingLeft:6+12*r},children:[(0,l.jsx)("span",{className:"tree-disclosure","aria-hidden":"true"}),(0,l.jsx)("span",{className:"tree-entry-icon",style:{color:d.color},"aria-hidden":"true",children:(0,l.jsx)(o,{size:16,strokeWidth:1.8})}),(0,l.jsx)("span",{className:"tree-entry-name",children:t.name}),(0,l.jsx)("span",{className:"tree-size",children:A(t.size)})]},s)});if(!f)return(0,l.jsx)("div",{style:{padding:14,fontSize:12,color:"#556"},children:G?c?"等待终端目录…":"连接中…":"…"});let ei=D.current.get(f.path);return(0,l.jsxs)("div",{className:"tree-scroll",ref:J,children:[(0,l.jsxs)("div",{className:"tree-location",children:[(0,l.jsx)("input",{value:L,onChange:e=>E(e.target.value),onKeyDown:e=>{"Enter"===e.key&&U()},placeholder:"输入目录路径","aria-label":"文件树目录路径",spellCheck:!1}),(0,l.jsx)("button",{tabIndex:-1,onClick:U,title:"定位目录","aria-label":"定位目录",children:(0,l.jsx)(Z,{size:14,"aria-hidden":"true"})}),(0,l.jsx)("button",{tabIndex:-1,onClick:()=>{W(!1),d&&(Q(d),null==u||u(d,!0))},title:"跟随终端目录","aria-label":"跟随终端目录","data-active":G?"1":void 0,children:(0,l.jsx)(q,{size:14,"aria-hidden":"true"})})]}),(0,l.jsxs)("div",{className:"tree-filter",children:[(0,l.jsx)(N,{size:14,"aria-hidden":"true"}),(0,l.jsx)("input",{value:m,onChange:e=>b(e.target.value),placeholder:"筛选已加载文件","aria-label":"筛选文件树"}),m&&(0,l.jsx)("button",{tabIndex:-1,onClick:()=>b(""),"aria-label":"清除筛选",children:(0,l.jsx)(S.Z,{size:13,"aria-hidden":"true"})})]}),(0,l.jsxs)("div",{className:"tree-row",onClick:()=>X(f.path),children:[(0,l.jsx)("span",{className:"tree-disclosure","aria-hidden":"true",children:(null==ei?void 0:ei.loading)?(0,l.jsx)(j.Z,{className:"tree-spin",size:13}):(null==ei?void 0:ei.expanded)?(0,l.jsx)(g.Z,{size:13}):(0,l.jsx)(w.Z,{size:13})}),(0,l.jsx)("span",{className:"tree-entry-icon tree-folder-icon","aria-hidden":"true",children:(null==ei?void 0:ei.expanded)?(0,l.jsx)(M.Z,{size:16}):(0,l.jsx)(z,{size:16})}),(0,l.jsx)("span",{className:"tree-entry-name",style:{direction:"rtl",textAlign:"left"},children:f.path})]}),(null==ei?void 0:ei.expanded)&&(ei.error?(0,l.jsx)("div",{className:"tree-error",role:"alert",children:ei.error}):ei.children?en(f.path,ei.children,1):(0,l.jsx)("div",{className:"tree-row",style:{paddingLeft:24,color:"#556"},children:"…"}))]})}}}]);
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[686],{5686:function(e,t,r){"use strict";r.r(t),r.d(t,{MAX_CLIENT_DOWNLOAD_BYTES:function(){return W},decodeTextChunk:function(){return I},default:function(){return q},isBrowserPreviewPath:function(){return U},isHtmlPreviewPath:function(){return A},isMarkdownPreviewPath:function(){return Z},kindOf:function(){return P},mimeTypeForPath:function(){return T},nativeFileShareReadiness:function(){return E},readFileForClientDownload:function(){return N},shareFileWithNativePicker:function(){return F}});var n=r(1996),i=r(6121),a=r(1806);let l=(0,a.Z)("RotateCcw",[["path",{d:"M3 12a9 9 0 1 0 9-9 9.75 9.75 0 0 0-6.74 2.74L3 8",key:"1357e3"}],["path",{d:"M3 3v5h5",key:"1xhq8a"}]]);var o=r(2466);let s=(0,a.Z)("Save",[["path",{d:"M15.2 3a2 2 0 0 1 1.4.6l3.8 3.8a2 2 0 0 1 .6 1.4V19a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2V5a2 2 0 0 1 2-2z",key:"1c8476"}],["path",{d:"M17 21v-7a1 1 0 0 0-1-1H8a1 1 0 0 0-1 1v7",key:"1ydtos"}],["path",{d:"M7 3v4a1 1 0 0 0 1 1h7",key:"t51u73"}]]);var u=r(6533),c=r(4267),d=r(5984);let p=(0,a.Z)("Share2",[["circle",{cx:"18",cy:"5",r:"3",key:"gq8acd"}],["circle",{cx:"6",cy:"12",r:"3",key:"w7nqdw"}],["circle",{cx:"18",cy:"19",r:"3",key:"1xt0gg"}],["line",{x1:"8.59",x2:"15.42",y1:"13.51",y2:"17.49",key:"47mynk"}],["line",{x1:"15.41",x2:"8.59",y1:"6.51",y2:"10.49",key:"1n3mei"}]]),h=(0,a.Z)("Eye",[["path",{d:"M2.062 12.348a1 1 0 0 1 0-.696 10.75 10.75 0 0 1 19.876 0 1 1 0 0 1 0 .696 10.75 10.75 0 0 1-19.876 0",key:"1nclc0"}],["circle",{cx:"12",cy:"12",r:"3",key:"1v7zrd"}]]);var f=r(7317),m=r(3797);let x=/^@@ -(\d+)(?:,\d+)? \+(\d+)(?:,\d+)? @@/;var v=r(7144);function g(e){let{path:t,chunks:a,fileSize:l}=e,[o,s]=(0,i.useState)(null),u=(0,v.mv)(t),c=a.length>0&&null!==u&&(void 0===l||l<=v.l9)&&a.reduce((e,t)=>e+t.length,0)<=v.l9;(0,i.useEffect)(()=>{if(!c)return;let e=!1;return Promise.all([r.e(940),r.e(304)]).then(r.bind(r,2304)).then(t=>{let{highlightCodeLines:r}=t;e||s(()=>r)}).catch(()=>{}),()=>{e=!0}},[c]);let d=(0,i.useMemo)(()=>(function(e){let t=[""];for(let r of e){let e=r.split("\n");t[t.length-1]+=e[0];for(let r=1;r<e.length;r+=1)t.push(e[r])}return t})(a),[a]),p=(0,i.useMemo)(()=>c&&o?o(t,a.join("")):null,[a,c,o,t]);return(0,n.jsx)("code",{className:"file-code-preview","data-language":null!=u?u:void 0,children:d.map((e,t)=>{let r=t<d.length-1?"\n":"";return(0,n.jsxs)(i.Fragment,{children:[(0,n.jsx)("span",{className:"file-code-line-number","aria-hidden":"true","data-line-number":t+1}),p?(0,n.jsx)("span",{className:"file-code-line-content",dangerouslySetInnerHTML:{__html:p[t]+r}}):(0,n.jsxs)("span",{className:"file-code-line-content",children:[e,r]})]},t)})})}r(7977);var b=r(6411);let y=new Set(["ts","tsx","js","jsx","mjs","cjs","json","md","markdown","mdown","mkdn","mdx","css","scss","html","htm","xml","yml","yaml","toml","sh","zsh","bash","py","rb","go","rs","java","kt","c","h","cpp","hpp","sql","env","gitignore","dockerfile","txt","log","conf","properties","gradle","lock","csv","vue","svelte","astro","graphql","prisma","proto"]),w=new Set(["png","jpg","jpeg","gif","webp","bmp","ico","svg"]),k=new Set(["html","htm"]),j=new Set(["md","markdown","mdown","mkdn","mdx"]),S=new Set(y),C=new Set(["mp4","webm","mov","m4v"]),z=new Set(["mp3","wav","m4a","aac","ogg","flac"]),L=new Set(["pdf"]),W=268435456,M={aac:"audio/aac",csv:"text/csv",doc:"application/msword",docx:"application/vnd.openxmlformats-officedocument.wordprocessingml.document",gif:"image/gif",html:"text/html",jpeg:"image/jpeg",jpg:"image/jpeg",json:"application/json",m4a:"audio/mp4",m4v:"video/mp4",md:"text/markdown",mov:"video/quicktime",mp3:"audio/mpeg",mp4:"video/mp4",ogg:"audio/ogg",pdf:"application/pdf",png:"image/png",ppt:"application/vnd.ms-powerpoint",pptx:"application/vnd.openxmlformats-officedocument.presentationml.presentation",svg:"image/svg+xml",tar:"application/x-tar",txt:"text/plain",wav:"audio/wav",webm:"video/webm",webp:"image/webp",xls:"application/vnd.ms-excel",xlsx:"application/vnd.openxmlformats-officedocument.spreadsheetml.sheet",xml:"application/xml",zip:"application/zip"};function E(e,t){return t?e.share&&e.canShare?"ready":"unsupported-browser":"insecure-context"}function T(e){var t;return null!==(t=M[R(e)])&&void 0!==t?t:"application/octet-stream"}function R(e){var t,r;return null!==(r=null===(t=((0,b.AU)(e)?new URL(e).pathname:e).split(".").pop())||void 0===t?void 0:t.toLowerCase())&&void 0!==r?r:""}async function F(e,t){var r;if(!t.share||!(null===(r=t.canShare)||void 0===r?void 0:r.call(t,{files:[e]})))return"unsupported";try{return await t.share({files:[e],title:e.name}),"shared"}catch(e){if(e&&"object"==typeof e&&"name"in e&&"AbortError"===e.name)return"cancelled";throw e}}function H(e){return Uint8Array.from(atob(e),e=>e.charCodeAt(0))}function I(e,t,r){return e.decode(H(t),{stream:!r})}async function N(e,t){let r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:()=>{},n=arguments.length>3&&void 0!==arguments[3]?arguments[3]:524288,i=await t("fs:stat",{path:e});if(i.dir)throw Error("文件夹不能下载");if(i.size>W)throw Error("文件超过 256M,请通过终端传输");let a=[],l=0;do{let o=await t("fs:read",{path:e,offset:l,length:n},6e4),s=H(o.data);if(s.byteLength!==o.bytes)throw Error("文件分块长度不一致,请重试");a.push(s.slice().buffer);let u=o.offset+o.bytes;if(!o.eof&&u<=l)throw Error("文件下载未取得进展,请重试");if(l=u,r(0===i.size?100:Math.min(100,Math.round(l/i.size*100))),o.eof)break}while(l<i.size);return new Blob(a,{type:"application/octet-stream"})}function A(e){var t,r;let n=null!==(r=null===(t=e.split(".").pop())||void 0===t?void 0:t.toLowerCase())&&void 0!==r?r:"";return k.has(n)}function Z(e){var t,r;let n=null!==(r=null===(t=e.split(".").pop())||void 0===t?void 0:t.toLowerCase())&&void 0!==r?r:"";return j.has(n)}function U(e){var t,r;let n=null!==(r=null===(t=e.split(".").pop())||void 0===t?void 0:t.toLowerCase())&&void 0!==r?r:"";return S.has(n)}function P(e){let t=R(e);return y.has(t)||!e.includes(".")?"text":w.has(t)?"image":C.has(t)?"video":z.has(t)?"audio":L.has(t)?"pdf":"hex"}function q(e){var t,r;let{path:a,gateway:v,onClose:y}=e,w=v.request,[k,j]=(0,i.useState)([]),[S,C]=(0,i.useState)(null),[z,L]=(0,i.useState)(""),[W,M]=(0,i.useState)(null),[R,q]=(0,i.useState)("initial-loading"),[Y,$]=(0,i.useState)(!1),[G,J]=(0,i.useState)(0),[Q,ee]=(0,i.useState)(null),[et,er]=(0,i.useState)(null),[en,ei]=(0,i.useState)(null),[ea,el]=(0,i.useState)(null),[eo,es]=(0,i.useState)(!1),[eu,ec]=(0,i.useState)(null),[ed,ep]=(0,i.useState)(null),[eh,ef]=(0,i.useState)(!1),[em,ex]=(0,i.useState)(!0),[ev,eg]=(0,i.useState)(null),[eb,ey]=(0,i.useState)("unavailable"),[ew,ek]=(0,i.useState)(!1),[ej,eS]=(0,i.useState)(null),[eC,ez]=(0,i.useState)("file"),[eL,eW]=(0,i.useState)(!1),[eM,eE]=(0,i.useState)(!1),[eT,eR]=(0,i.useState)(!1),[eF,eH]=(0,i.useState)(!1),[eI,eN]=(0,i.useState)(""),[eA,eZ]=(0,i.useState)(!1),[eU,eP]=(0,i.useState)(null),[eq,eO]=(0,i.useState)(!1),eB=(0,i.useRef)(null),eD=(0,i.useRef)(null),e_=(0,i.useRef)(0),eV=(0,i.useRef)(!1),eK=(0,i.useRef)(0),eX=(0,i.useRef)(!1),eY=(0,i.useRef)(new TextDecoder("utf-8",{fatal:!1})),e$=(0,i.useRef)(null),eG=(0,i.useRef)(null),eJ=(0,i.useRef)(!1),eQ=a?P(a):"unsupported",e0=!!a&&(0,b.AU)(a),e1=!!a&&A(a),e2=!!a&&Z(a),e6=!!a&&U(a),e8=(0,i.useMemo)(()=>k.join(""),[k]),e4=(0,i.useCallback)(()=>{let e=e$.current;e$.current=null,e&&w("fs:preview-close",{ticketId:e}).catch(()=>{})},[w]),e7=(0,i.useCallback)(async function(e){let t=arguments.length>1&&void 0!==arguments[1]&&arguments[1],r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:eK.current;if(!eX.current){eX.current=!0,t?q("initial-loading"):q("loading-more"),ee(null);try{let n=t?0:e_.current,i=await w("fs:read",{path:e,offset:n,length:262144});if(r!==eK.current)return;let a=i.offset+i.bytes;if(!i.eof&&a<=n)throw Error("文件加载未取得进展,请重试");t&&(eY.current=new TextDecoder("utf-8",{fatal:!1}));let l=I(eY.current,i.data,i.eof);e_.current=a,ex(i.eof),J(a),j(e=>t?[l]:[...e,l]),M(e=>{var t;return{size:i.size,mtime:null!==(t=null==e?void 0:e.mtime)&&void 0!==t?t:0}}),er(null),q("ready")}catch(i){var n;if(r!==eK.current)return;let e=null!==(n=i.message)&&void 0!==n?n:String(i);t?(er(e),q("error")):(ee(e),q("ready"))}finally{r===eK.current&&(eX.current=!1)}}},[w]),e5=(0,i.useCallback)(async(e,t)=>{try{let r=await w("fs:inspect-text-status",{path:e});if(t!==eK.current)return;M({size:r.size,mtime:r.mtime}),ey(r.diffStatus),eE(!r.tooLarge),eO(!1),eP(null)}catch(e){}},[w]),e3=(0,i.useCallback)(async function(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:eK.current;e4(),q("initial-loading"),er(null);try{let r=await w("fs:preview-open",{path:e});if(t!==eK.current){w("fs:preview-close",{ticketId:r.ticketId}).catch(()=>{});return}e$.current=r.ticketId,eG.current=r.url,C(r.url),M({size:r.size,mtime:r.mtime})}catch(e){var r;if(t!==eK.current)return;er(null!==(r=e.message)&&void 0!==r?r:String(e)),q("error")}},[e4,w]),e9=(0,i.useCallback)(async function(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:eK.current;q("initial-loading"),er(null);try{let r=await w("fs:read",{path:e,offset:0,length:4096});if(t!==eK.current)return;(function(e){let t=atob(e),r=[];for(let e=0;e+16<=t.length||0===e;e+=16){let n=t.slice(e,e+16),i=[...n].map(e=>e.charCodeAt(0).toString(16).padStart(2,"0")).join(" ").padEnd(47," "),a=[...n].map(e=>e.charCodeAt(0)>=32&&127>e.charCodeAt(0)?e:".").join("");if(r.push("".concat(e.toString(16).padStart(8,"0")," ").concat(i," |").concat(a,"|")),e+16>t.length)break}L(r.join("\n"))})(r.data),J(r.bytes),M(e=>{var t;return{size:r.size,mtime:null!==(t=null==e?void 0:e.mtime)&&void 0!==t?t:0}}),q("ready")}catch(e){var r;if(t!==eK.current)return;er(null!==(r=e.message)&&void 0!==r?r:String(e)),q("error")}},[w]),te=(0,i.useCallback)((e,t)=>{let r=++eK.current,n=U(e);if(eX.current=!1,e4(),eG.current=null,j([]),C(null),L(""),M(null),er(null),ee(null),J(0),ei(null),el(null),es(!1),ec(null),ep(null),ef(!1),ex(!0),eg(null),ey("unavailable"),ek(!1),eS(null),ez("file"),eE(!1),eR(!1),eH(!1),eN(""),eP(null),eO(!1),q("initial-loading"),eV.current=!1,e_.current=0,eY.current=new TextDecoder("utf-8",{fatal:!1}),(0,b.AU)(e)){eG.current=e,C(e);return}w("fs:watch",{path:function(e){let t=e.lastIndexOf("/");return t>0?e.slice(0,t):"/"}(e)}).catch(()=>{}),"text"===t?(e5(e,r),e7(e,!0,r),n&&eJ.current&&e3(e,r)):"image"===t||"video"===t||"audio"===t||"pdf"===t?e3(e,r):"hex"===t&&(w("fs:stat",{path:e}).then(e=>{r===eK.current&&M(e)}).catch(()=>{}),e9(e,r))},[e7,e9,e3,e5,e4,w]);(0,i.useEffect)(()=>{if(a)return eJ.current=!1,eW(!1),te(a,eQ),()=>{eK.current++,eX.current=!1,e4()}},[a]),(0,i.useEffect)(()=>{let e=null,t=t=>{let r=t.detail;r&&r===a&&(null!==e&&window.clearTimeout(e),e=window.setTimeout(()=>{"text"===eQ&&eV.current?eO(!0):a&&te(a,eQ)},350))};return window.addEventListener("file-changed",t),()=>{window.removeEventListener("file-changed",t),null!==e&&window.clearTimeout(e)}},[a,eQ,te]),(0,i.useEffect)(()=>{eV.current=eF},[eF]),(0,i.useEffect)(()=>{if("initial-loading"!==R){$(!1);return}let e=window.setTimeout(()=>$(!0),120);return()=>window.clearTimeout(e)},[a,R]),(0,i.useEffect)(()=>{let e=eD.current,t=eB.current;if(!e||!t||!a||"text"!==eQ||em||eF||"file"!==eC||"ready"!==R||Q)return;let r=new IntersectionObserver(e=>{e.some(e=>e.isIntersecting)&&e7(a)},{root:t,rootMargin:"0px 0px 360px 0px"});return r.observe(e),()=>r.disconnect()},[eF,em,eQ,e7,Q,a,R,eC]);let tt=(0,i.useCallback)((e,t)=>{let r=URL.createObjectURL(e),n=document.createElement("a");n.href=r,n.download=O(t),n.style.display="none",document.body.appendChild(n),n.click(),n.remove(),window.setTimeout(()=>URL.revokeObjectURL(r),1e3)},[]),tr=(0,i.useCallback)(async()=>{if(a&&null===ea&&null===ed){if((0,b.AU)(a)){window.open(a,"_blank","noopener,noreferrer");return}ei(null),ec(null),es(!1),el(0);try{let e=await N(a,w,el);tt(e,a),es(!0),window.setTimeout(()=>es(!1),1500)}catch(t){var e;ei(null!==(e=null==t?void 0:t.message)&&void 0!==e?e:String(t))}finally{el(null)}}},[tt,ea,a,w,ed]),tn=(0,i.useCallback)(async()=>{var e,t;if(!a||null!==ed||null!==ea)return;ei(null),ec(null),ef(!1);let r=E(navigator,window.isSecureContext);if("insecure-context"===r){ec("当前页面是 HTTP,手机 Chrome 仅允许 HTTPS 页面分享文件,请改用 HTTPS 地址后重试");return}if("unsupported-browser"===r){ec("当前浏览器不支持分享文件,请使用最新版手机 Chrome 或系统浏览器");return}ep(0);try{let t=await N(a,w,ep),r=new File([t],O(a),{type:T(a),lastModified:null!==(e=null==W?void 0:W.mtime)&&void 0!==e?e:Date.now()}),n=await F(r,navigator);"unsupported"===n?ec("当前浏览器不支持分享此文件类型,请使用下载按钮"):"shared"===n&&(ef(!0),window.setTimeout(()=>ef(!1),1500))}catch(e){ec(null!==(t=null==e?void 0:e.message)&&void 0!==t?t:String(e))}finally{ep(null)}},[ea,null==W?void 0:W.mtime,a,w,ed]),ti=(0,i.useCallback)(async(e,t)=>{let r=await w("fs:inspect-text",{path:e},6e4);return t!==eK.current?null:(M({size:r.size,mtime:r.mtime}),ey(r.diffStatus),eg(r.patch),eE(!r.tooLarge&&r.validUtf8),r)},[w]),ta=(0,i.useCallback)(async()=>{if(!a||eT)return;let e=eK.current;eR(!0),eP(null);try{let t=await ti(a,e);if(!t)return;if(t.tooLarge||null===t.data)throw Error("文件超过 8M,无法在线编辑");if(!t.validUtf8)throw Error("此文件不是有效的 UTF-8 文本,无法在线编辑");let r=new TextDecoder("utf-8",{fatal:!1}).decode(H(t.data));j([r]),J(t.size),e_.current=t.size,ex(!0),eN(r),eO(!1),eV.current=!0,eH(!0)}catch(r){var t;e===eK.current&&eP(null!==(t=r.message)&&void 0!==t?t:String(r))}finally{e===eK.current&&eR(!1)}},[eT,ti,a]),tl=(0,i.useCallback)(async()=>{if(!a||ew||(ez("diff"),null!==ev))return;let e=eK.current;ek(!0),eS(null);try{await ti(a,e)}catch(r){var t;e===eK.current&&eS(null!==(t=r.message)&&void 0!==t?t:String(r))}finally{e===eK.current&&ek(!1)}},[ew,ti,ev,a]),to=(0,i.useCallback)(()=>{if(!a)return;let e=!eL;eJ.current=e,eW(e),e&&!S&&e3(a,eK.current)},[e3,S,a,eL]),ts=(0,i.useCallback)(e=>{eG.current===e&&(er(null),q("ready"))},[]),tu=(0,i.useCallback)(e=>{eG.current===e&&(er("文件预览加载失败,请重试"),q("error"))},[]),tc=(0,i.useCallback)(()=>{a&&te(a,eQ)},[eQ,a,te]),td=(0,i.useCallback)(()=>{(eI===e8||window.confirm("放弃未保存的修改?"))&&(eV.current=!1,eH(!1),eN(""),eP(null),eO(!1))},[eI,e8]),tp=(0,i.useCallback)(()=>{(!eF||eI===e8||window.confirm("放弃未保存的修改并关闭预览?"))&&(eK.current++,e4(),y())},[eI,eF,y,e4,e8]),th=(0,i.useCallback)(()=>{a&&(eV.current=!1,eH(!1),eN(""),te(a,"text"))},[a,te]),tf=(0,i.useCallback)(async()=>{if(a&&W&&!eA&&eI!==e8){eZ(!0),eP(null);try{await w("fs:write-text",{path:a,content:eI,expectedSize:W.size,expectedMtime:W.mtime},6e4),eV.current=!1,eH(!1),eN(""),te(a,"text")}catch(t){var e;eP(null!==(e=null==t?void 0:t.message)&&void 0!==e?e:String(t))}finally{eZ(!1)}}},[eI,W,a,w,eA,te,e8]),tm=(0,i.useMemo)(()=>(function(e){if(!e.trim())return{rows:[],added:0,removed:0};let t=[],r=0,n=0,i=!1,a=0,l=0;for(let o of e.replace(/\n$/,"").split("\n")){let e=o.match(x);if(e){r=Number(e[1]),n=Number(e[2]),i=!0,t.push({kind:"hunk",text:o,oldLine:null,newLine:null});continue}if(!i){o.startsWith("diff --git ")||o.startsWith("index ")||o.startsWith("--- ")||o.startsWith("+++ ")||t.push({kind:"meta",text:o,oldLine:null,newLine:null});continue}o.startsWith("+")?(t.push({kind:"added",text:o.slice(1),oldLine:null,newLine:n}),n+=1,a+=1):o.startsWith("-")?(t.push({kind:"removed",text:o.slice(1),oldLine:r,newLine:null}),r+=1,l+=1):o.startsWith(" ")?(t.push({kind:"context",text:o.slice(1),oldLine:r,newLine:n}),r+=1,n+=1):t.push({kind:"note",text:o,oldLine:null,newLine:null})}return{rows:t,added:a,removed:l}})(null!=ev?ev:""),[ev]);if(!a)return null;let tx=(null!==(t=null==W?void 0:W.size)&&void 0!==t?t:0)>8388608,tv=!tx&&("changed"===eb||"untracked"===eb),tg="text"===eQ&&eM&&"initial-loading"!==R&&!eT&&!et;return(0,n.jsxs)("div",{style:{height:"100%",display:"flex",flexDirection:"column",background:"var(--ui-term-col-bg, #101014)",color:"var(--ui-text, #e8e8ee)",colorScheme:"var(--ui-color-scheme, dark)",accentColor:"var(--ui-tab-accent, #7aa2f7)"},children:[(0,n.jsxs)("div",{style:{display:"flex",alignItems:"center",gap:10,padding:"9px 12px",borderBottom:"1px solid var(--ui-tree-border, #222)",background:"var(--ui-tree-bg, #121218)",flexShrink:0},children:[(0,n.jsx)("span",{className:"pv-name",style:{minWidth:0,flex:"1 1 auto",fontSize:12.5,color:"var(--ui-text, #e8e8ee)",overflow:"hidden",textOverflow:"ellipsis",whiteSpace:"nowrap"},children:O(a)}),W&&(0,n.jsx)("span",{style:{fontSize:10.5,color:"var(--ui-history-meta, #666)",flexShrink:0},children:B(W.size)}),eF?(0,n.jsxs)(n.Fragment,{children:[(0,n.jsx)("button",{type:"button",onClick:td,disabled:eA,style:D,"aria-label":"取消编辑",title:"取消编辑",children:(0,n.jsx)(l,{size:15,strokeWidth:1.8,"aria-hidden":"true"})}),(0,n.jsx)("button",{type:"button",onClick:tf,disabled:eA||eI===e8,style:{...D,color:"var(--ui-tab-accent, #7aa2f7)",opacity:eA||eI===e8?.55:1},"aria-label":eA?"正在保存":"保存修改",title:eA?"正在保存":"保存修改",children:eA?(0,n.jsx)(o.Z,{className:"tree-spin",size:15,strokeWidth:1.8,"aria-hidden":"true"}):(0,n.jsx)(s,{size:15,strokeWidth:1.8,"aria-hidden":"true"})})]}):(0,n.jsxs)(n.Fragment,{children:["text"===eQ&&(0,n.jsx)("button",{type:"button",onClick:ta,disabled:!tg,style:{...D,opacity:tg?1:.45},"aria-label":"编辑文件",title:tx?"文件超过 8M,无法在线编辑":eM?"编辑文件":"此文件不可编辑",children:(0,n.jsx)(u.Z,{size:15,strokeWidth:1.8,"aria-hidden":"true"})}),(0,n.jsx)("button",{type:"button",onClick:tr,disabled:null!==ea||null!==ed,style:{...D,opacity:null!==ea||null!==ed?.72:1},"aria-label":e0?"打开原始地址":null===ea?"下载到当前设备":"正在下载 ".concat(ea,"%"),title:e0?"打开原始地址":null===ea?"下载到当前设备":"正在下载 ".concat(ea,"%"),children:null!==ea?(0,n.jsx)(o.Z,{className:"tree-spin",size:15,strokeWidth:1.8,"aria-hidden":"true"}):eo?(0,n.jsx)(c.Z,{size:15,strokeWidth:1.8,"aria-hidden":"true"}):(0,n.jsx)(d.Z,{size:15,strokeWidth:1.8,"aria-hidden":"true"})}),!e0&&(0,n.jsx)("button",{type:"button",onClick:tn,disabled:null!==ed||null!==ea,style:{...D,opacity:null!==ed||null!==ea?.72:1},"aria-label":"分享文件",title:null===ed?"分享文件":"正在准备 ".concat(ed,"%"),children:null!==ed?(0,n.jsx)(o.Z,{className:"tree-spin",size:15,strokeWidth:1.8,"aria-hidden":"true"}):eh?(0,n.jsx)(c.Z,{size:15,strokeWidth:1.8,"aria-hidden":"true"}):(0,n.jsx)(p,{size:15,strokeWidth:1.8,"aria-hidden":"true"})}),e6&&(0,n.jsx)("button",{type:"button",onClick:to,"aria-pressed":eL,style:{...D,...eL?{color:"var(--ui-tab-accent, #7aa2f7)",borderColor:"var(--ui-tab-accent, #7aa2f7)"}:{}},"aria-label":eL?"退出浏览器预览":"浏览器预览",title:eL?"退出浏览器预览":e1?"在浏览器中预览渲染效果":e2?"预览 Markdown 排版效果":"在浏览器中查看原始文件",children:(0,n.jsx)(h,{size:15,strokeWidth:1.8,"aria-hidden":"true"})})]}),(0,n.jsx)("button",{type:"button",onClick:tp,style:D,"aria-label":"关闭预览",title:"关闭预览",children:(0,n.jsx)(f.Z,{size:15,strokeWidth:1.8,"aria-hidden":"true"})})]}),"text"===eQ&&tv&&!eF&&!eL&&(0,n.jsxs)("div",{style:{display:"flex",alignItems:"center",minHeight:34,padding:"0 12px",borderBottom:"1px solid var(--ui-tree-border, #222)",background:"var(--ui-tree-bg, #121218)",flexShrink:0},children:[(0,n.jsxs)("div",{role:"tablist","aria-label":"文件预览模式",style:{display:"inline-flex",gap:2,padding:2,border:"1px solid var(--ui-panel-input-border, #333)",borderRadius:6,background:"var(--ui-muted-surface, #1b1b22)"},children:[(0,n.jsx)(K,{active:"diff"===eC,onClick:tl,children:"变更"}),(0,n.jsx)(K,{active:"file"===eC,onClick:()=>ez("file"),children:"文件"})]}),(0,n.jsxs)("span",{style:{marginLeft:9,display:"inline-flex",gap:7,fontFamily:'"SF Mono", Menlo, Consolas, monospace',fontSize:10.5},children:[tm.added>0&&(0,n.jsxs)("span",{style:{color:"var(--ui-success, #059669)"},children:["+",tm.added]}),tm.removed>0&&(0,n.jsxs)("span",{style:{color:"var(--ui-error, #dc2626)"},children:["-",tm.removed]})]})]}),eu&&(0,n.jsxs)("div",{role:"alert",style:{flexShrink:0,padding:"8px 12px",borderBottom:"1px solid var(--ui-tree-border, #222)",background:"var(--ui-tree-bg, #121218)",color:"var(--ui-error, #f7768e)",fontSize:12.5,lineHeight:1.5},children:["分享失败:",eu]}),(0,n.jsxs)("div",{ref:eB,className:"pv-body",style:{position:"relative",flex:1,minHeight:0,overflow:"auto",background:"var(--ui-term-col-bg, #101014)",WebkitOverflowScrolling:"touch"},children:[en&&(0,n.jsxs)("div",{style:{padding:"10px 14px 0",color:"var(--ui-error, #f7768e)",fontSize:12.5},children:["下载失败:",en]}),eU&&(0,n.jsx)("div",{role:"alert",style:{padding:"10px 14px",color:"var(--ui-error, #f7768e)",fontSize:12.5},children:eU}),eq&&eF&&(0,n.jsxs)("div",{role:"alert",style:{display:"flex",alignItems:"center",gap:8,padding:"8px 12px",borderBottom:"1px solid var(--ui-tree-border, #222)",color:"var(--ui-error, #f7768e)",fontSize:12},children:[(0,n.jsx)("span",{style:{flex:1},children:"文件已在其他位置更新"}),(0,n.jsxs)("button",{type:"button",onClick:th,style:_,children:[(0,n.jsx)(m.Z,{size:13,strokeWidth:1.8,"aria-hidden":"true"}),"重新加载"]})]}),S&&!et&&"image"===eQ&&(0,n.jsx)("img",{src:S,alt:a,onLoad:()=>ts(S),onError:()=>tu(S),style:{maxWidth:"100%",maxHeight:"100%",objectFit:"contain",display:"block",margin:"0 auto"}}),S&&!et&&"video"===eQ&&(0,n.jsx)("video",{src:S,controls:!0,playsInline:!0,preload:"metadata",onLoadedMetadata:()=>ts(S),onError:()=>tu(S),style:{maxWidth:"100%",maxHeight:"100%",display:"block",margin:"0 auto"}}),S&&!et&&"audio"===eQ&&(0,n.jsx)("div",{style:{display:"grid",placeItems:"center",height:"100%"},children:(0,n.jsx)("audio",{src:S,controls:!0,autoPlay:!0,onLoadedMetadata:()=>ts(S),onError:()=>tu(S),style:{width:"min(420px, 88%)"}})}),S&&!et&&"pdf"===eQ&&(0,n.jsx)("iframe",{src:S,title:a,onLoad:()=>ts(S),onError:()=>tu(S),style:{width:"100%",height:"100%",border:"none"}}),S&&!et&&"text"===eQ&&e6&&eL&&!eF&&(0,n.jsx)("iframe",{src:e1||e2?"".concat(S,"/").concat(encodeURIComponent(O(a))):S,sandbox:"allow-scripts allow-popups allow-forms allow-modals",title:a,onLoad:()=>ts(S),onError:()=>tu(S),style:{width:"100%",height:"100%",border:"none",background:"#fff"}}),"text"===eQ&&eF&&!et&&(0,n.jsx)("textarea",{value:eI,onChange:e=>eN(e.target.value),spellCheck:!1,autoCapitalize:"off",autoCorrect:"off","aria-label":"编辑 ".concat(O(a)),style:{width:"100%",minHeight:"100%",boxSizing:"border-box",resize:"none",margin:0,padding:"12px 14px calc(env(safe-area-inset-bottom) + 36px)",border:0,outline:0,background:"var(--ui-term-col-bg, #101014)",color:"var(--ui-history-item-text, var(--ui-text, #d6d6de))",fontFamily:'"SF Mono", Menlo, Consolas, monospace',fontSize:12,lineHeight:1.5,tabSize:2}}),"text"===eQ&&!eF&&!et&&tv&&"diff"===eC&&(ej?(0,n.jsx)(V,{label:ej,actionLabel:"重试",onAction:()=>void tl(),tone:"error"}):ew?(0,n.jsx)(V,{label:"正在加载变更"}):(0,n.jsx)(X,{rows:tm.rows})),("hex"===eQ||"text"===eQ&&!eF&&!eL&&(!tv||"file"===eC))&&!et&&(0,n.jsxs)(n.Fragment,{children:[(0,n.jsx)("pre",{style:{margin:0,padding:"11px 13px calc(env(safe-area-inset-bottom) + 36px)",fontFamily:'"SF Mono", Menlo, Consolas, monospace',fontSize:"hex"===eQ?10.5:12,lineHeight:1.45,color:"hex"===eQ?"var(--ui-muted-text, #9aa)":"var(--ui-history-item-text, var(--ui-text, #d6d6de))",whiteSpace:"hex"===eQ?"pre":"pre-wrap",wordBreak:"hex"===eQ?"normal":"break-word"},children:"hex"===eQ?z:(0,n.jsx)(g,{path:a,chunks:k,fileSize:null==W?void 0:W.size})}),"text"===eQ&&!em&&(0,n.jsxs)("div",{ref:eD,role:"status","aria-live":"polite",style:{minHeight:44,padding:"0 14px calc(env(safe-area-inset-bottom) + 8px)",display:"flex",alignItems:"center",justifyContent:"center",gap:7,color:"var(--ui-history-meta, #666)",fontSize:11.5},children:["loading-more"===R&&(0,n.jsx)(o.Z,{className:"tree-spin",size:14,strokeWidth:1.8,"aria-hidden":"true",style:{color:"var(--ui-tab-accent, #7aa2f7)"}}),Q?(0,n.jsxs)(n.Fragment,{children:[(0,n.jsx)("span",{children:"加载失败"}),(0,n.jsxs)("button",{type:"button",onClick:()=>e7(a),style:_,children:[(0,n.jsx)(m.Z,{size:13,strokeWidth:1.8,"aria-hidden":"true"}),"重试"]})]}):(0,n.jsx)("span",{children:"loading-more"===R?"正在加载更多":"".concat(B(G)," / ").concat(B(null!==(r=null==W?void 0:W.size)&&void 0!==r?r:G))})]})]}),Y&&"initial-loading"===R&&(0,n.jsx)(V,{label:"正在加载文件"}),et&&"error"===R&&(0,n.jsx)(V,{label:et,actionLabel:"重试",onAction:tc,tone:"error"})]})]})}function O(e){return e.slice(e.lastIndexOf("/")+1)||e}function B(e){return e<1024?"".concat(e,"B"):e<1048576?"".concat((e/1024).toFixed(1),"K"):"".concat((e/1024/1024).toFixed(1),"M")}let D={width:28,height:28,borderRadius:7,border:"1px solid var(--ui-panel-input-border, #333)",display:"inline-flex",alignItems:"center",justifyContent:"center",background:"var(--ui-muted-surface, #1b1b22)",color:"var(--ui-muted-text, #ccc)",flexShrink:0,cursor:"pointer",WebkitAppRegion:"no-drag"},_={minHeight:28,padding:"0 9px",borderRadius:6,border:"1px solid var(--ui-panel-input-border, #333)",display:"inline-flex",alignItems:"center",justifyContent:"center",gap:5,background:"var(--ui-muted-surface, #1b1b22)",color:"var(--ui-muted-text, #ccc)",cursor:"pointer",fontSize:11};function V(e){let{label:t,actionLabel:r,onAction:i,tone:a="muted"}=e;return(0,n.jsxs)("div",{role:"error"===a?"alert":"status",style:{position:"absolute",inset:0,minHeight:120,display:"flex",flexDirection:"column",alignItems:"center",justifyContent:"center",gap:10,color:"error"===a?"var(--ui-error, #f7768e)":"var(--ui-muted-text, #9aa)",fontSize:12.5},children:["error"!==a&&(0,n.jsx)(o.Z,{className:"tree-spin",size:18,strokeWidth:1.8,"aria-hidden":"true",style:{color:"var(--ui-tab-accent, #7aa2f7)"}}),(0,n.jsx)("span",{children:t}),r&&i&&(0,n.jsxs)("button",{type:"button",onClick:i,style:_,children:[(0,n.jsx)(m.Z,{size:13,strokeWidth:1.8,"aria-hidden":"true"}),r]})]})}function K(e){let{active:t,onClick:r,children:i}=e;return(0,n.jsx)("button",{type:"button",role:"tab","aria-selected":t,onClick:r,style:{minWidth:48,height:24,padding:"0 9px",border:0,borderRadius:4,background:t?"var(--ui-tab-accent, #7aa2f7)":"transparent",color:t?"var(--ui-tab-active-text, #fff)":"var(--ui-muted-text, #9aa)",fontSize:11,fontWeight:600,cursor:"pointer"},children:i})}function X(e){let{rows:t}=e;return(0,n.jsx)("div",{style:{minWidth:"100%",width:"max-content",paddingBottom:"calc(env(safe-area-inset-bottom) + 36px)",fontFamily:'"SF Mono", Menlo, Consolas, monospace',fontSize:11.5,lineHeight:1.55},children:t.map((e,t)=>{var r,i;let a="added"===e.kind,l="removed"===e.kind,o="hunk"===e.kind||"meta"===e.kind||"note"===e.kind,s=a?"color-mix(in srgb, var(--ui-success, #059669) 12%, transparent)":l?"color-mix(in srgb, var(--ui-error, #dc2626) 11%, transparent)":"hunk"===e.kind?"color-mix(in srgb, var(--ui-tab-accent, #7aa2f7) 10%, transparent)":"transparent",u=a?"var(--ui-success, #059669)":l?"var(--ui-error, #dc2626)":o?"var(--ui-muted-text, #9aa)":"var(--ui-history-item-text, var(--ui-text, #d6d6de))";return(0,n.jsxs)("div",{style:{display:"grid",gridTemplateColumns:"42px 42px 22px minmax(0, 1fr)",minHeight:18,background:s,color:u},children:[(0,n.jsx)("span",{style:Y,children:null!==(r=e.oldLine)&&void 0!==r?r:""}),(0,n.jsx)("span",{style:Y,children:null!==(i=e.newLine)&&void 0!==i?i:""}),(0,n.jsx)("span",{style:{textAlign:"center",userSelect:"none",color:u},children:a?"+":l?"-":" "}),(0,n.jsx)("span",{style:{padding:"0 12px 0 6px",whiteSpace:"pre-wrap",overflowWrap:"anywhere"},children:e.text||" "})]},"".concat(e.kind,"-").concat(t))})})}let Y={padding:"0 6px",borderRight:"1px solid var(--ui-tree-border, #222)",color:"var(--ui-history-meta, #666)",textAlign:"right",userSelect:"none"}},7144:function(e,t,r){"use strict";r.d(t,{l9:function(){return n},mv:function(){return l},zo:function(){return i}});let n=262144,i=16384,a={java:"java",js:"javascript",jsx:"javascript",mjs:"javascript",cjs:"javascript",ts:"typescript",tsx:"typescript",json:"json",py:"python",sh:"bash",bash:"bash",zsh:"bash",css:"css",scss:"scss",html:"xml",htm:"xml",xml:"xml",vue:"xml",svelte:"xml",astro:"xml",yml:"yaml",yaml:"yaml",toml:"ini",env:"ini",sql:"sql",c:"c",h:"c",cpp:"cpp",hpp:"cpp",go:"go",rs:"rust",kt:"kotlin",rb:"ruby",md:"markdown",markdown:"markdown",mdown:"markdown",mkdn:"markdown",mdx:"markdown",dockerfile:"dockerfile",gradle:"groovy",properties:"properties",graphql:"graphql",proto:"protobuf"};function l(e){var t,r,n;let i=null!==(r=null===(t=e.split(/[/\\]/).pop())||void 0===t?void 0:t.toLowerCase())&&void 0!==r?r:"";return"dockerfile"===i||i.startsWith("dockerfile.")?"dockerfile":".env"===i||i.startsWith(".env.")?"ini":".bashrc"===i||".zshrc"===i?"bash":null!==(n=a[i.includes(".")?i.slice(i.lastIndexOf(".")+1):""])&&void 0!==n?n:null}},7977:function(){}}]);
|
package/runtime/.next/static/chunks/app/web/{error-828d278147a0619d.js → error-6ca9afc69e38a945.js}
RENAMED
|
@@ -1 +1 @@
|
|
|
1
|
-
(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[980],{
|
|
1
|
+
(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[980],{1626:function(n,t,e){Promise.resolve().then(e.bind(e,3194))},3194:function(n,t,e){"use strict";e.r(t),e.d(t,{default:function(){return o}});var i=e(1996);function o(n){let{reset:t}=n;return(0,i.jsxs)("main",{role:"alert",style:{padding:32,fontFamily:"system-ui",lineHeight:1.8},children:[(0,i.jsx)("h1",{children:"页面加载失败"}),(0,i.jsx)("p",{children:"请重试;如果仍无法打开,请检查网络,并确认电脑上的 AgentRoam 正在运行。"}),(0,i.jsx)("button",{type:"button",onClick:t,children:"重试"})," ",(0,i.jsx)("button",{type:"button",onClick:()=>window.location.reload(),children:"刷新页面"})]})}}},function(n){n.O(0,[37,183,744],function(){return n(n.s=1626)}),_N_E=n.O()}]);
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[606],{5215:function(n,e,u){Promise.resolve().then(u.t.bind(u,8369,23))},8369:function(){}},function(n){n.O(0,[197,37,183,744],function(){return n(n.s=5215)}),_N_E=n.O()}]);
|