@geminilight/mindos-windows-arm64 1.0.6 → 1.0.7

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (528) hide show
  1. package/_standalone/.mindos-build-version +1 -1
  2. package/_standalone/__next/BUILD_ID +1 -1
  3. package/_standalone/__next/app-path-routes-manifest.json +34 -34
  4. package/_standalone/__next/build-manifest.json +4 -4
  5. package/_standalone/__next/prerender-manifest.json +3 -3
  6. package/_standalone/__next/react-loadable-manifest.json +4 -4
  7. package/_standalone/__next/required-server-files.json +4 -4
  8. package/_standalone/__next/server/app/.well-known/agent-card.json/route.js +1 -1
  9. package/_standalone/__next/server/app/.well-known/agent-card.json/route_client-reference-manifest.js +1 -1
  10. package/_standalone/__next/server/app/_global-error/page.js +3 -3
  11. package/_standalone/__next/server/app/_global-error/page_client-reference-manifest.js +1 -1
  12. package/_standalone/__next/server/app/_global-error.html +2 -2
  13. package/_standalone/__next/server/app/_global-error.rsc +3 -3
  14. package/_standalone/__next/server/app/_global-error.segments/_full.segment.rsc +3 -3
  15. package/_standalone/__next/server/app/_global-error.segments/_global-error/__PAGE__.segment.rsc +1 -1
  16. package/_standalone/__next/server/app/_global-error.segments/_global-error.segment.rsc +1 -1
  17. package/_standalone/__next/server/app/_global-error.segments/_head.segment.rsc +1 -1
  18. package/_standalone/__next/server/app/_global-error.segments/_index.segment.rsc +2 -2
  19. package/_standalone/__next/server/app/_global-error.segments/_tree.segment.rsc +1 -1
  20. package/_standalone/__next/server/app/_not-found/page.js +2 -2
  21. package/_standalone/__next/server/app/_not-found/page.js.nft.json +1 -1
  22. package/_standalone/__next/server/app/_not-found/page_client-reference-manifest.js +1 -1
  23. package/_standalone/__next/server/app/agents/[agentKey]/page.js +2 -2
  24. package/_standalone/__next/server/app/agents/[agentKey]/page.js.nft.json +1 -1
  25. package/_standalone/__next/server/app/agents/[agentKey]/page_client-reference-manifest.js +1 -1
  26. package/_standalone/__next/server/app/agents/page.js +2 -2
  27. package/_standalone/__next/server/app/agents/page.js.nft.json +1 -1
  28. package/_standalone/__next/server/app/agents/page_client-reference-manifest.js +1 -1
  29. package/_standalone/__next/server/app/api/a2a/agents/route.js +1 -1
  30. package/_standalone/__next/server/app/api/a2a/agents/route_client-reference-manifest.js +1 -1
  31. package/_standalone/__next/server/app/api/a2a/delegations/route.js +1 -1
  32. package/_standalone/__next/server/app/api/a2a/delegations/route_client-reference-manifest.js +1 -1
  33. package/_standalone/__next/server/app/api/a2a/discover/route.js +1 -1
  34. package/_standalone/__next/server/app/api/a2a/discover/route_client-reference-manifest.js +1 -1
  35. package/_standalone/__next/server/app/api/a2a/route.js +1 -1
  36. package/_standalone/__next/server/app/api/a2a/route_client-reference-manifest.js +1 -1
  37. package/_standalone/__next/server/app/api/acp/config/route.js +1 -1
  38. package/_standalone/__next/server/app/api/acp/config/route_client-reference-manifest.js +1 -1
  39. package/_standalone/__next/server/app/api/acp/detect/route.js +1 -1
  40. package/_standalone/__next/server/app/api/acp/detect/route_client-reference-manifest.js +1 -1
  41. package/_standalone/__next/server/app/api/acp/install/route.js +1 -1
  42. package/_standalone/__next/server/app/api/acp/install/route_client-reference-manifest.js +1 -1
  43. package/_standalone/__next/server/app/api/acp/registry/route.js +1 -1
  44. package/_standalone/__next/server/app/api/acp/registry/route_client-reference-manifest.js +1 -1
  45. package/_standalone/__next/server/app/api/acp/session/route.js +1 -1
  46. package/_standalone/__next/server/app/api/acp/session/route_client-reference-manifest.js +1 -1
  47. package/_standalone/__next/server/app/api/agent-activity/route.js +1 -1
  48. package/_standalone/__next/server/app/api/agent-activity/route_client-reference-manifest.js +1 -1
  49. package/_standalone/__next/server/app/api/agents/copy-skill/route.js +1 -1
  50. package/_standalone/__next/server/app/api/agents/copy-skill/route_client-reference-manifest.js +1 -1
  51. package/_standalone/__next/server/app/api/agents/custom/detect/route.js +1 -1
  52. package/_standalone/__next/server/app/api/agents/custom/detect/route_client-reference-manifest.js +1 -1
  53. package/_standalone/__next/server/app/api/agents/custom/route.js +1 -1
  54. package/_standalone/__next/server/app/api/agents/custom/route_client-reference-manifest.js +1 -1
  55. package/_standalone/__next/server/app/api/ask/route.js +2 -2
  56. package/_standalone/__next/server/app/api/ask/route_client-reference-manifest.js +1 -1
  57. package/_standalone/__next/server/app/api/ask-sessions/route.js +1 -1
  58. package/_standalone/__next/server/app/api/ask-sessions/route_client-reference-manifest.js +1 -1
  59. package/_standalone/__next/server/app/api/auth/route.js +1 -1
  60. package/_standalone/__next/server/app/api/auth/route_client-reference-manifest.js +1 -1
  61. package/_standalone/__next/server/app/api/backlinks/route.js +1 -1
  62. package/_standalone/__next/server/app/api/backlinks/route_client-reference-manifest.js +1 -1
  63. package/_standalone/__next/server/app/api/bootstrap/route.js +1 -1
  64. package/_standalone/__next/server/app/api/bootstrap/route_client-reference-manifest.js +1 -1
  65. package/_standalone/__next/server/app/api/changes/route.js +1 -1
  66. package/_standalone/__next/server/app/api/changes/route_client-reference-manifest.js +1 -1
  67. package/_standalone/__next/server/app/api/channels/verify/route.js +1 -1
  68. package/_standalone/__next/server/app/api/channels/verify/route_client-reference-manifest.js +1 -1
  69. package/_standalone/__next/server/app/api/connect/route.js +1 -1
  70. package/_standalone/__next/server/app/api/connect/route_client-reference-manifest.js +1 -1
  71. package/_standalone/__next/server/app/api/embedding/route.js +1 -1
  72. package/_standalone/__next/server/app/api/embedding/route_client-reference-manifest.js +1 -1
  73. package/_standalone/__next/server/app/api/export/route.js +1 -1
  74. package/_standalone/__next/server/app/api/export/route_client-reference-manifest.js +1 -1
  75. package/_standalone/__next/server/app/api/extract-docx/route.js +1 -1
  76. package/_standalone/__next/server/app/api/extract-docx/route_client-reference-manifest.js +1 -1
  77. package/_standalone/__next/server/app/api/extract-pdf/route.js +2 -2
  78. package/_standalone/__next/server/app/api/extract-pdf/route_client-reference-manifest.js +1 -1
  79. package/_standalone/__next/server/app/api/file/import/route.js +1 -1
  80. package/_standalone/__next/server/app/api/file/import/route_client-reference-manifest.js +1 -1
  81. package/_standalone/__next/server/app/api/file/raw/route.js +1 -1
  82. package/_standalone/__next/server/app/api/file/raw/route_client-reference-manifest.js +1 -1
  83. package/_standalone/__next/server/app/api/file/route.js +1 -1
  84. package/_standalone/__next/server/app/api/file/route_client-reference-manifest.js +1 -1
  85. package/_standalone/__next/server/app/api/files/route.js +1 -1
  86. package/_standalone/__next/server/app/api/files/route_client-reference-manifest.js +1 -1
  87. package/_standalone/__next/server/app/api/git/route.js +1 -1
  88. package/_standalone/__next/server/app/api/git/route_client-reference-manifest.js +1 -1
  89. package/_standalone/__next/server/app/api/graph/route.js +1 -1
  90. package/_standalone/__next/server/app/api/graph/route_client-reference-manifest.js +1 -1
  91. package/_standalone/__next/server/app/api/health/route.js +1 -1
  92. package/_standalone/__next/server/app/api/health/route_client-reference-manifest.js +1 -1
  93. package/_standalone/__next/server/app/api/im/activity/route.js +1 -1
  94. package/_standalone/__next/server/app/api/im/activity/route_client-reference-manifest.js +1 -1
  95. package/_standalone/__next/server/app/api/im/config/route.js +1 -1
  96. package/_standalone/__next/server/app/api/im/config/route_client-reference-manifest.js +1 -1
  97. package/_standalone/__next/server/app/api/im/feishu/long-connection/event/route.js +1 -1
  98. package/_standalone/__next/server/app/api/im/feishu/long-connection/event/route_client-reference-manifest.js +1 -1
  99. package/_standalone/__next/server/app/api/im/feishu/long-connection/route.js +1 -1
  100. package/_standalone/__next/server/app/api/im/feishu/long-connection/route_client-reference-manifest.js +1 -1
  101. package/_standalone/__next/server/app/api/im/status/route.js +1 -1
  102. package/_standalone/__next/server/app/api/im/status/route_client-reference-manifest.js +1 -1
  103. package/_standalone/__next/server/app/api/im/test/route.js +1 -1
  104. package/_standalone/__next/server/app/api/im/test/route_client-reference-manifest.js +1 -1
  105. package/_standalone/__next/server/app/api/im/webhook/feishu/route.js +1 -1
  106. package/_standalone/__next/server/app/api/im/webhook/feishu/route_client-reference-manifest.js +1 -1
  107. package/_standalone/__next/server/app/api/im/webhook-status/route.js +1 -1
  108. package/_standalone/__next/server/app/api/im/webhook-status/route_client-reference-manifest.js +1 -1
  109. package/_standalone/__next/server/app/api/inbox/clip/route.js +2 -2
  110. package/_standalone/__next/server/app/api/inbox/clip/route_client-reference-manifest.js +1 -1
  111. package/_standalone/__next/server/app/api/inbox/route.js +1 -1
  112. package/_standalone/__next/server/app/api/inbox/route_client-reference-manifest.js +1 -1
  113. package/_standalone/__next/server/app/api/init/route.js +1 -1
  114. package/_standalone/__next/server/app/api/init/route_client-reference-manifest.js +1 -1
  115. package/_standalone/__next/server/app/api/lint/route.js +1 -1
  116. package/_standalone/__next/server/app/api/lint/route_client-reference-manifest.js +1 -1
  117. package/_standalone/__next/server/app/api/mcp/agents/route.js +1 -1
  118. package/_standalone/__next/server/app/api/mcp/agents/route_client-reference-manifest.js +1 -1
  119. package/_standalone/__next/server/app/api/mcp/direct-tools/route.js +1 -1
  120. package/_standalone/__next/server/app/api/mcp/direct-tools/route_client-reference-manifest.js +1 -1
  121. package/_standalone/__next/server/app/api/mcp/install/route.js +1 -1
  122. package/_standalone/__next/server/app/api/mcp/install/route_client-reference-manifest.js +1 -1
  123. package/_standalone/__next/server/app/api/mcp/install-skill/route.js +1 -1
  124. package/_standalone/__next/server/app/api/mcp/install-skill/route_client-reference-manifest.js +1 -1
  125. package/_standalone/__next/server/app/api/mcp/restart/route.js +1 -1
  126. package/_standalone/__next/server/app/api/mcp/restart/route_client-reference-manifest.js +1 -1
  127. package/_standalone/__next/server/app/api/mcp/status/route.js +1 -1
  128. package/_standalone/__next/server/app/api/mcp/status/route_client-reference-manifest.js +1 -1
  129. package/_standalone/__next/server/app/api/mcp/tools/route.js +1 -1
  130. package/_standalone/__next/server/app/api/mcp/tools/route_client-reference-manifest.js +1 -1
  131. package/_standalone/__next/server/app/api/mcp/uninstall/route.js +1 -1
  132. package/_standalone/__next/server/app/api/mcp/uninstall/route_client-reference-manifest.js +1 -1
  133. package/_standalone/__next/server/app/api/monitoring/route.js +1 -1
  134. package/_standalone/__next/server/app/api/monitoring/route_client-reference-manifest.js +1 -1
  135. package/_standalone/__next/server/app/api/obsidian/compat-report/route.js +1 -1
  136. package/_standalone/__next/server/app/api/obsidian/compat-report/route_client-reference-manifest.js +1 -1
  137. package/_standalone/__next/server/app/api/obsidian/import/route.js +1 -1
  138. package/_standalone/__next/server/app/api/obsidian/import/route_client-reference-manifest.js +1 -1
  139. package/_standalone/__next/server/app/api/obsidian-plugins/settings/route.js +2 -2
  140. package/_standalone/__next/server/app/api/obsidian-plugins/settings/route_client-reference-manifest.js +1 -1
  141. package/_standalone/__next/server/app/api/recent-files/route.js +1 -1
  142. package/_standalone/__next/server/app/api/recent-files/route_client-reference-manifest.js +1 -1
  143. package/_standalone/__next/server/app/api/restart/route.js +1 -1
  144. package/_standalone/__next/server/app/api/restart/route_client-reference-manifest.js +1 -1
  145. package/_standalone/__next/server/app/api/search/prewarm/route.js +1 -1
  146. package/_standalone/__next/server/app/api/search/prewarm/route_client-reference-manifest.js +1 -1
  147. package/_standalone/__next/server/app/api/search/route.js +1 -1
  148. package/_standalone/__next/server/app/api/search/route_client-reference-manifest.js +1 -1
  149. package/_standalone/__next/server/app/api/settings/list-models/route.js +1 -1
  150. package/_standalone/__next/server/app/api/settings/list-models/route_client-reference-manifest.js +1 -1
  151. package/_standalone/__next/server/app/api/settings/reset-token/route.js +1 -1
  152. package/_standalone/__next/server/app/api/settings/reset-token/route_client-reference-manifest.js +1 -1
  153. package/_standalone/__next/server/app/api/settings/route.js +1 -1
  154. package/_standalone/__next/server/app/api/settings/route_client-reference-manifest.js +1 -1
  155. package/_standalone/__next/server/app/api/settings/test-key/route.js +1 -1
  156. package/_standalone/__next/server/app/api/settings/test-key/route_client-reference-manifest.js +1 -1
  157. package/_standalone/__next/server/app/api/setup/check-path/route.js +1 -1
  158. package/_standalone/__next/server/app/api/setup/check-path/route_client-reference-manifest.js +1 -1
  159. package/_standalone/__next/server/app/api/setup/check-port/route.js +1 -1
  160. package/_standalone/__next/server/app/api/setup/check-port/route_client-reference-manifest.js +1 -1
  161. package/_standalone/__next/server/app/api/setup/generate-token/route.js +1 -1
  162. package/_standalone/__next/server/app/api/setup/generate-token/route_client-reference-manifest.js +1 -1
  163. package/_standalone/__next/server/app/api/setup/ls/route.js +1 -1
  164. package/_standalone/__next/server/app/api/setup/ls/route_client-reference-manifest.js +1 -1
  165. package/_standalone/__next/server/app/api/setup/route.js +1 -1
  166. package/_standalone/__next/server/app/api/setup/route_client-reference-manifest.js +1 -1
  167. package/_standalone/__next/server/app/api/skills/route.js +1 -1
  168. package/_standalone/__next/server/app/api/skills/route_client-reference-manifest.js +1 -1
  169. package/_standalone/__next/server/app/api/space-overview/route.js +1 -1
  170. package/_standalone/__next/server/app/api/space-overview/route_client-reference-manifest.js +1 -1
  171. package/_standalone/__next/server/app/api/sync/route.js +1 -1
  172. package/_standalone/__next/server/app/api/sync/route_client-reference-manifest.js +1 -1
  173. package/_standalone/__next/server/app/api/tree-version/route.js +1 -1
  174. package/_standalone/__next/server/app/api/tree-version/route_client-reference-manifest.js +1 -1
  175. package/_standalone/__next/server/app/api/uninstall/route.js +1 -1
  176. package/_standalone/__next/server/app/api/uninstall/route_client-reference-manifest.js +1 -1
  177. package/_standalone/__next/server/app/api/update/route.js +1 -1
  178. package/_standalone/__next/server/app/api/update/route_client-reference-manifest.js +1 -1
  179. package/_standalone/__next/server/app/api/update-check/route.js +1 -1
  180. package/_standalone/__next/server/app/api/update-check/route_client-reference-manifest.js +1 -1
  181. package/_standalone/__next/server/app/api/update-status/route.js +1 -1
  182. package/_standalone/__next/server/app/api/update-status/route_client-reference-manifest.js +1 -1
  183. package/_standalone/__next/server/app/api/workflows/route.js +1 -1
  184. package/_standalone/__next/server/app/api/workflows/route_client-reference-manifest.js +1 -1
  185. package/_standalone/__next/server/app/capture/history/page.js +2 -2
  186. package/_standalone/__next/server/app/capture/history/page.js.nft.json +1 -1
  187. package/_standalone/__next/server/app/capture/history/page_client-reference-manifest.js +1 -1
  188. package/_standalone/__next/server/app/capture/page.js +2 -2
  189. package/_standalone/__next/server/app/capture/page.js.nft.json +1 -1
  190. package/_standalone/__next/server/app/capture/page_client-reference-manifest.js +1 -1
  191. package/_standalone/__next/server/app/changelog/page.js +2 -2
  192. package/_standalone/__next/server/app/changelog/page.js.nft.json +1 -1
  193. package/_standalone/__next/server/app/changelog/page_client-reference-manifest.js +1 -1
  194. package/_standalone/__next/server/app/changes/page.js +2 -2
  195. package/_standalone/__next/server/app/changes/page.js.nft.json +1 -1
  196. package/_standalone/__next/server/app/changes/page_client-reference-manifest.js +1 -1
  197. package/_standalone/__next/server/app/echo/[segment]/page.js +4 -4
  198. package/_standalone/__next/server/app/echo/[segment]/page.js.nft.json +1 -1
  199. package/_standalone/__next/server/app/echo/[segment]/page_client-reference-manifest.js +1 -1
  200. package/_standalone/__next/server/app/echo/page.js +2 -2
  201. package/_standalone/__next/server/app/echo/page.js.nft.json +1 -1
  202. package/_standalone/__next/server/app/echo/page_client-reference-manifest.js +1 -1
  203. package/_standalone/__next/server/app/explore/page.js +3 -3
  204. package/_standalone/__next/server/app/explore/page.js.nft.json +1 -1
  205. package/_standalone/__next/server/app/explore/page_client-reference-manifest.js +1 -1
  206. package/_standalone/__next/server/app/help/page.js +2 -2
  207. package/_standalone/__next/server/app/help/page.js.nft.json +1 -1
  208. package/_standalone/__next/server/app/help/page_client-reference-manifest.js +1 -1
  209. package/_standalone/__next/server/app/icon.svg/route.js +1 -1
  210. package/_standalone/__next/server/app/inbox/history/page.js +2 -2
  211. package/_standalone/__next/server/app/inbox/history/page.js.nft.json +1 -1
  212. package/_standalone/__next/server/app/inbox/history/page_client-reference-manifest.js +1 -1
  213. package/_standalone/__next/server/app/login/page.js +2 -2
  214. package/_standalone/__next/server/app/login/page.js.nft.json +1 -1
  215. package/_standalone/__next/server/app/login/page_client-reference-manifest.js +1 -1
  216. package/_standalone/__next/server/app/page.js +2 -2
  217. package/_standalone/__next/server/app/page.js.nft.json +1 -1
  218. package/_standalone/__next/server/app/page_client-reference-manifest.js +1 -1
  219. package/_standalone/__next/server/app/settings/page.js +2 -2
  220. package/_standalone/__next/server/app/settings/page.js.nft.json +1 -1
  221. package/_standalone/__next/server/app/settings/page_client-reference-manifest.js +1 -1
  222. package/_standalone/__next/server/app/setup/page.js +2 -2
  223. package/_standalone/__next/server/app/setup/page.js.nft.json +1 -1
  224. package/_standalone/__next/server/app/setup/page_client-reference-manifest.js +1 -1
  225. package/_standalone/__next/server/app/todo/page.js +2 -2
  226. package/_standalone/__next/server/app/todo/page.js.nft.json +1 -1
  227. package/_standalone/__next/server/app/todo/page_client-reference-manifest.js +1 -1
  228. package/_standalone/__next/server/app/trash/page.js +3 -3
  229. package/_standalone/__next/server/app/trash/page.js.nft.json +1 -1
  230. package/_standalone/__next/server/app/trash/page_client-reference-manifest.js +1 -1
  231. package/_standalone/__next/server/app/view/[...path]/page.js +3 -3
  232. package/_standalone/__next/server/app/view/[...path]/page.js.nft.json +1 -1
  233. package/_standalone/__next/server/app/view/[...path]/page_client-reference-manifest.js +1 -1
  234. package/_standalone/__next/server/app/wiki/page.js +2 -2
  235. package/_standalone/__next/server/app/wiki/page.js.nft.json +1 -1
  236. package/_standalone/__next/server/app/wiki/page_client-reference-manifest.js +1 -1
  237. package/_standalone/__next/server/app-paths-manifest.json +34 -34
  238. package/_standalone/__next/server/chunks/{6602.js → 1834.js} +21 -21
  239. package/_standalone/__next/server/chunks/3466.js +1 -1
  240. package/_standalone/__next/server/chunks/3727.js +1 -1
  241. package/_standalone/__next/server/chunks/4793.js +1 -1
  242. package/_standalone/__next/server/chunks/6377.js +3 -3
  243. package/_standalone/__next/server/chunks/9350.js +2 -2
  244. package/_standalone/__next/server/chunks/{3219.js → 9773.js} +3 -3
  245. package/_standalone/__next/server/middleware-build-manifest.js +1 -1
  246. package/_standalone/__next/server/middleware-react-loadable-manifest.js +1 -1
  247. package/_standalone/__next/server/middleware.js +2 -2
  248. package/_standalone/__next/server/pages/500.html +2 -2
  249. package/_standalone/__next/server/server-reference-manifest.js +1 -1
  250. package/_standalone/__next/server/server-reference-manifest.json +1 -1
  251. package/_standalone/__next/static/chunks/{2461-a1073a0bd04c228a.js → 1957-723ac4eb5200214c.js} +3 -3
  252. package/_standalone/__next/static/chunks/{47-41e1a06e6d389b69.js → 2737-f4970f0684c334d6.js} +1 -1
  253. package/_standalone/__next/static/chunks/{9216.d3339c27169b21bf.js → 6728.e1841cddb63308b0.js} +1 -1
  254. package/_standalone/__next/static/chunks/{6947.7e50e18da7dc4aef.js → 6947.fb89346ef2f6be17.js} +1 -1
  255. package/_standalone/__next/static/chunks/app/_not-found/{page-ec6fa498a07e6fd9.js → page-eaedcec1b693c03c.js} +1 -1
  256. package/{static-web/_next/static/chunks/app/agents/[agentKey]/page-44c493b744d18249.js → _standalone/__next/static/chunks/app/agents/[agentKey]/page-1dac12945bfbaf35.js} +1 -1
  257. package/{static-web/_next/static/chunks/app/agents/page-6591b482a193e657.js → _standalone/__next/static/chunks/app/agents/page-7ff2e39ca12eb20a.js} +1 -1
  258. package/_standalone/__next/static/chunks/app/capture/history/page-51db96203209a441.js +1 -0
  259. package/_standalone/__next/static/chunks/app/capture/page-3bf09d1f5e1c379c.js +1 -0
  260. package/_standalone/__next/static/chunks/app/changelog/page-01dc22b6d2230c7f.js +1 -0
  261. package/_standalone/__next/static/chunks/app/changes/page-c9f8d5632a001849.js +1 -0
  262. package/{static-web/_next/static/chunks/app/echo/[segment]/page-c5ea40ac04f2dc29.js → _standalone/__next/static/chunks/app/echo/[segment]/page-44b6b8e7fd0bbe31.js} +2 -2
  263. package/_standalone/__next/static/chunks/app/echo/page-c9f8d5632a001849.js +1 -0
  264. package/_standalone/__next/static/chunks/app/{error-c46d1b03d5e3289c.js → error-1cfcd6abd93c3837.js} +1 -1
  265. package/_standalone/__next/static/chunks/app/explore/{page-5d6dd4af8d1bb468.js → page-117fcf54b8b9765c.js} +1 -1
  266. package/_standalone/__next/static/chunks/app/global-error-11b333dcf222bc09.js +1 -0
  267. package/_standalone/__next/static/chunks/app/help/{page-3f0a1a8e51249cb2.js → page-6efb8aa3a3c169fa.js} +1 -1
  268. package/_standalone/__next/static/chunks/app/inbox/history/page-913645bbd6161116.js +1 -0
  269. package/{static-web/_next/static/chunks/app/layout-5966cd317bbed698.js → _standalone/__next/static/chunks/app/layout-24a31ea28c556e82.js} +7 -7
  270. package/_standalone/__next/static/chunks/app/login/page-7f9aca3d51266bec.js +1 -0
  271. package/{static-web/_next/static/chunks/app/page-5c9489e28657376e.js → _standalone/__next/static/chunks/app/page-35662964020c0ea9.js} +1 -1
  272. package/_standalone/__next/static/chunks/app/settings/{page-c9f44b3447a41431.js → page-f816f13a34613538.js} +1 -1
  273. package/{static-web/_next/static/chunks/app/setup/page-f5de08d0d588c778.js → _standalone/__next/static/chunks/app/setup/page-a1027871dc33ffbd.js} +1 -1
  274. package/_standalone/__next/static/chunks/app/todo/page-54c3ec77f662ff73.js +1 -0
  275. package/_standalone/__next/static/chunks/app/trash/page-50622e3df2047204.js +1 -0
  276. package/_standalone/__next/static/chunks/app/view/[...path]/{error-f73092e638a4e999.js → error-c9a3f6de7c963c74.js} +1 -1
  277. package/_standalone/__next/static/chunks/app/view/[...path]/{not-found-80e5f4054819b372.js → not-found-5a4f2b4fbe28d617.js} +1 -1
  278. package/_standalone/__next/static/chunks/app/view/[...path]/page-b10d3819827da1c2.js +12 -0
  279. package/{static-web/_next/static/chunks/app/wiki/page-4c9bc816069b6f2a.js → _standalone/__next/static/chunks/app/wiki/page-7afd3b97c1ea1b8c.js} +2 -2
  280. package/_standalone/__next/static/chunks/{main-app-23adfdc06470abb6.js → main-app-8a6081b103b8f494.js} +1 -1
  281. package/_standalone/__next/static/chunks/webpack-7d8c24c6af17dd51.js +1 -0
  282. package/_standalone/__node_modules/@aws-sdk/client-bedrock-runtime/node_modules/@smithy/util-utf8/node_modules/@smithy/util-buffer-from/LICENSE +201 -0
  283. package/_standalone/__node_modules/@aws-sdk/client-bedrock-runtime/node_modules/@smithy/util-utf8/node_modules/@smithy/util-buffer-from/dist-cjs/index.js +20 -0
  284. package/_standalone/__node_modules/@aws-sdk/client-bedrock-runtime/node_modules/@smithy/util-utf8/node_modules/@smithy/util-buffer-from/dist-es/index.js +14 -0
  285. package/_standalone/__node_modules/@aws-sdk/client-bedrock-runtime/node_modules/@smithy/util-utf8/node_modules/@smithy/util-buffer-from/node_modules/@smithy/is-array-buffer/LICENSE +201 -0
  286. package/_standalone/__node_modules/@aws-sdk/client-bedrock-runtime/node_modules/@smithy/util-utf8/node_modules/@smithy/util-buffer-from/node_modules/@smithy/is-array-buffer/dist-cjs/index.js +6 -0
  287. package/_standalone/__node_modules/@aws-sdk/client-bedrock-runtime/node_modules/@smithy/util-utf8/node_modules/@smithy/util-buffer-from/node_modules/@smithy/is-array-buffer/dist-es/index.js +2 -0
  288. package/_standalone/__node_modules/@aws-sdk/client-bedrock-runtime/node_modules/@smithy/util-utf8/node_modules/@smithy/util-buffer-from/node_modules/@smithy/is-array-buffer/package.json +61 -0
  289. package/_standalone/__node_modules/@aws-sdk/client-bedrock-runtime/node_modules/@smithy/util-utf8/node_modules/@smithy/util-buffer-from/package.json +62 -0
  290. package/_standalone/__node_modules/@aws-sdk/core/node_modules/@smithy/util-utf8/node_modules/@smithy/util-buffer-from/LICENSE +201 -0
  291. package/_standalone/__node_modules/@aws-sdk/core/node_modules/@smithy/util-utf8/node_modules/@smithy/util-buffer-from/dist-cjs/index.js +20 -0
  292. package/_standalone/__node_modules/@aws-sdk/core/node_modules/@smithy/util-utf8/node_modules/@smithy/util-buffer-from/dist-es/index.js +14 -0
  293. package/_standalone/__node_modules/@aws-sdk/core/node_modules/@smithy/util-utf8/node_modules/@smithy/util-buffer-from/node_modules/@smithy/is-array-buffer/LICENSE +201 -0
  294. package/_standalone/__node_modules/@aws-sdk/core/node_modules/@smithy/util-utf8/node_modules/@smithy/util-buffer-from/node_modules/@smithy/is-array-buffer/dist-cjs/index.js +6 -0
  295. package/_standalone/__node_modules/@aws-sdk/core/node_modules/@smithy/util-utf8/node_modules/@smithy/util-buffer-from/node_modules/@smithy/is-array-buffer/dist-es/index.js +2 -0
  296. package/_standalone/__node_modules/@aws-sdk/core/node_modules/@smithy/util-utf8/node_modules/@smithy/util-buffer-from/node_modules/@smithy/is-array-buffer/package.json +61 -0
  297. package/_standalone/__node_modules/@aws-sdk/core/node_modules/@smithy/util-utf8/node_modules/@smithy/util-buffer-from/package.json +62 -0
  298. package/_standalone/__node_modules/@aws-sdk/middleware-sdk-s3/node_modules/@smithy/util-utf8/node_modules/@smithy/util-buffer-from/LICENSE +201 -0
  299. package/_standalone/__node_modules/@aws-sdk/middleware-sdk-s3/node_modules/@smithy/util-utf8/node_modules/@smithy/util-buffer-from/dist-cjs/index.js +20 -0
  300. package/_standalone/__node_modules/@aws-sdk/middleware-sdk-s3/node_modules/@smithy/util-utf8/node_modules/@smithy/util-buffer-from/dist-es/index.js +14 -0
  301. package/_standalone/__node_modules/@aws-sdk/middleware-sdk-s3/node_modules/@smithy/util-utf8/node_modules/@smithy/util-buffer-from/node_modules/@smithy/is-array-buffer/LICENSE +201 -0
  302. package/_standalone/__node_modules/@aws-sdk/middleware-sdk-s3/node_modules/@smithy/util-utf8/node_modules/@smithy/util-buffer-from/node_modules/@smithy/is-array-buffer/dist-cjs/index.js +6 -0
  303. package/_standalone/__node_modules/@aws-sdk/middleware-sdk-s3/node_modules/@smithy/util-utf8/node_modules/@smithy/util-buffer-from/node_modules/@smithy/is-array-buffer/dist-es/index.js +2 -0
  304. package/_standalone/__node_modules/@aws-sdk/middleware-sdk-s3/node_modules/@smithy/util-utf8/node_modules/@smithy/util-buffer-from/node_modules/@smithy/is-array-buffer/package.json +61 -0
  305. package/_standalone/__node_modules/@aws-sdk/middleware-sdk-s3/node_modules/@smithy/util-utf8/node_modules/@smithy/util-buffer-from/package.json +62 -0
  306. package/_standalone/__node_modules/@aws-sdk/middleware-websocket/node_modules/@smithy/util-utf8/node_modules/@smithy/util-buffer-from/LICENSE +201 -0
  307. package/_standalone/__node_modules/@aws-sdk/middleware-websocket/node_modules/@smithy/util-utf8/node_modules/@smithy/util-buffer-from/dist-cjs/index.js +20 -0
  308. package/_standalone/__node_modules/@aws-sdk/middleware-websocket/node_modules/@smithy/util-utf8/node_modules/@smithy/util-buffer-from/dist-es/index.js +14 -0
  309. package/_standalone/__node_modules/@aws-sdk/middleware-websocket/node_modules/@smithy/util-utf8/node_modules/@smithy/util-buffer-from/node_modules/@smithy/is-array-buffer/LICENSE +201 -0
  310. package/_standalone/__node_modules/@aws-sdk/middleware-websocket/node_modules/@smithy/util-utf8/node_modules/@smithy/util-buffer-from/node_modules/@smithy/is-array-buffer/dist-cjs/index.js +6 -0
  311. package/_standalone/__node_modules/@aws-sdk/middleware-websocket/node_modules/@smithy/util-utf8/node_modules/@smithy/util-buffer-from/node_modules/@smithy/is-array-buffer/dist-es/index.js +2 -0
  312. package/_standalone/__node_modules/@aws-sdk/middleware-websocket/node_modules/@smithy/util-utf8/node_modules/@smithy/util-buffer-from/node_modules/@smithy/is-array-buffer/package.json +61 -0
  313. package/_standalone/__node_modules/@aws-sdk/middleware-websocket/node_modules/@smithy/util-utf8/node_modules/@smithy/util-buffer-from/package.json +62 -0
  314. package/_standalone/__node_modules/@aws-sdk/nested-clients/node_modules/@smithy/util-utf8/node_modules/@smithy/util-buffer-from/LICENSE +201 -0
  315. package/_standalone/__node_modules/@aws-sdk/nested-clients/node_modules/@smithy/util-utf8/node_modules/@smithy/util-buffer-from/dist-cjs/index.js +20 -0
  316. package/_standalone/__node_modules/@aws-sdk/nested-clients/node_modules/@smithy/util-utf8/node_modules/@smithy/util-buffer-from/dist-es/index.js +14 -0
  317. package/_standalone/__node_modules/@aws-sdk/nested-clients/node_modules/@smithy/util-utf8/node_modules/@smithy/util-buffer-from/node_modules/@smithy/is-array-buffer/LICENSE +201 -0
  318. package/_standalone/__node_modules/@aws-sdk/nested-clients/node_modules/@smithy/util-utf8/node_modules/@smithy/util-buffer-from/node_modules/@smithy/is-array-buffer/dist-cjs/index.js +6 -0
  319. package/_standalone/__node_modules/@aws-sdk/nested-clients/node_modules/@smithy/util-utf8/node_modules/@smithy/util-buffer-from/node_modules/@smithy/is-array-buffer/dist-es/index.js +2 -0
  320. package/_standalone/__node_modules/@aws-sdk/nested-clients/node_modules/@smithy/util-utf8/node_modules/@smithy/util-buffer-from/node_modules/@smithy/is-array-buffer/package.json +61 -0
  321. package/_standalone/__node_modules/@aws-sdk/nested-clients/node_modules/@smithy/util-utf8/node_modules/@smithy/util-buffer-from/package.json +62 -0
  322. package/_standalone/__node_modules/@aws-sdk/xml-builder/node_modules/.bin/fxparser +2 -2
  323. package/_standalone/__node_modules/@mariozechner/pi-agent-core/node_modules/.bin/pi-ai +2 -2
  324. package/_standalone/__node_modules/@mariozechner/pi-agent-core/node_modules/@mariozechner/pi-ai/node_modules/.bin/anthropic-ai-sdk +2 -2
  325. package/_standalone/__node_modules/@mariozechner/pi-agent-core/node_modules/@mariozechner/pi-ai/node_modules/.bin/openai +2 -2
  326. package/_standalone/__node_modules/@mariozechner/pi-ai/node_modules/.bin/anthropic-ai-sdk +2 -2
  327. package/_standalone/__node_modules/@mariozechner/pi-ai/node_modules/.bin/openai +2 -2
  328. package/_standalone/__node_modules/@mariozechner/pi-coding-agent/node_modules/.bin/extract-zip +2 -2
  329. package/_standalone/__node_modules/@mariozechner/pi-coding-agent/node_modules/.bin/highlight +2 -2
  330. package/_standalone/__node_modules/@mariozechner/pi-coding-agent/node_modules/.bin/jiti +2 -2
  331. package/_standalone/__node_modules/@mariozechner/pi-coding-agent/node_modules/.bin/marked +2 -2
  332. package/_standalone/__node_modules/@mariozechner/pi-coding-agent/node_modules/.bin/pi-ai +2 -2
  333. package/_standalone/__node_modules/@mariozechner/pi-coding-agent/node_modules/.bin/yaml +2 -2
  334. package/_standalone/__node_modules/@mariozechner/pi-coding-agent/node_modules/@mariozechner/pi-ai/node_modules/.bin/anthropic-ai-sdk +2 -2
  335. package/_standalone/__node_modules/@mariozechner/pi-coding-agent/node_modules/@mariozechner/pi-ai/node_modules/.bin/openai +2 -2
  336. package/_standalone/__node_modules/@mariozechner/pi-coding-agent/node_modules/strip-ansi/node_modules/ansi-regex/index.js +14 -0
  337. package/_standalone/__node_modules/@mariozechner/pi-coding-agent/node_modules/strip-ansi/node_modules/ansi-regex/license +9 -0
  338. package/_standalone/__node_modules/@mariozechner/pi-coding-agent/node_modules/strip-ansi/node_modules/ansi-regex/package.json +61 -0
  339. package/_standalone/__node_modules/@mariozechner/pi-tui/node_modules/.bin/marked +2 -2
  340. package/_standalone/__node_modules/@smithy/core/node_modules/@smithy/util-utf8/node_modules/@smithy/util-buffer-from/LICENSE +201 -0
  341. package/_standalone/__node_modules/@smithy/core/node_modules/@smithy/util-utf8/node_modules/@smithy/util-buffer-from/dist-cjs/index.js +20 -0
  342. package/_standalone/__node_modules/@smithy/core/node_modules/@smithy/util-utf8/node_modules/@smithy/util-buffer-from/dist-es/index.js +14 -0
  343. package/_standalone/__node_modules/@smithy/core/node_modules/@smithy/util-utf8/node_modules/@smithy/util-buffer-from/node_modules/@smithy/is-array-buffer/LICENSE +201 -0
  344. package/_standalone/__node_modules/@smithy/core/node_modules/@smithy/util-utf8/node_modules/@smithy/util-buffer-from/node_modules/@smithy/is-array-buffer/dist-cjs/index.js +6 -0
  345. package/_standalone/__node_modules/@smithy/core/node_modules/@smithy/util-utf8/node_modules/@smithy/util-buffer-from/node_modules/@smithy/is-array-buffer/dist-es/index.js +2 -0
  346. package/_standalone/__node_modules/@smithy/core/node_modules/@smithy/util-utf8/node_modules/@smithy/util-buffer-from/node_modules/@smithy/is-array-buffer/package.json +61 -0
  347. package/_standalone/__node_modules/@smithy/core/node_modules/@smithy/util-utf8/node_modules/@smithy/util-buffer-from/package.json +62 -0
  348. package/_standalone/__node_modules/@smithy/hash-node/node_modules/@smithy/util-buffer-from/node_modules/@smithy/is-array-buffer/LICENSE +201 -0
  349. package/_standalone/__node_modules/@smithy/hash-node/node_modules/@smithy/util-buffer-from/node_modules/@smithy/is-array-buffer/dist-cjs/index.js +6 -0
  350. package/_standalone/__node_modules/@smithy/hash-node/node_modules/@smithy/util-buffer-from/node_modules/@smithy/is-array-buffer/dist-es/index.js +2 -0
  351. package/_standalone/__node_modules/@smithy/hash-node/node_modules/@smithy/util-buffer-from/node_modules/@smithy/is-array-buffer/package.json +61 -0
  352. package/_standalone/__node_modules/@smithy/hash-node/node_modules/@smithy/util-utf8/node_modules/@smithy/util-buffer-from/LICENSE +201 -0
  353. package/_standalone/__node_modules/@smithy/hash-node/node_modules/@smithy/util-utf8/node_modules/@smithy/util-buffer-from/dist-cjs/index.js +20 -0
  354. package/_standalone/__node_modules/@smithy/hash-node/node_modules/@smithy/util-utf8/node_modules/@smithy/util-buffer-from/dist-es/index.js +14 -0
  355. package/_standalone/__node_modules/@smithy/hash-node/node_modules/@smithy/util-utf8/node_modules/@smithy/util-buffer-from/node_modules/@smithy/is-array-buffer/LICENSE +201 -0
  356. package/_standalone/__node_modules/@smithy/hash-node/node_modules/@smithy/util-utf8/node_modules/@smithy/util-buffer-from/node_modules/@smithy/is-array-buffer/dist-cjs/index.js +6 -0
  357. package/_standalone/__node_modules/@smithy/hash-node/node_modules/@smithy/util-utf8/node_modules/@smithy/util-buffer-from/node_modules/@smithy/is-array-buffer/dist-es/index.js +2 -0
  358. package/_standalone/__node_modules/@smithy/hash-node/node_modules/@smithy/util-utf8/node_modules/@smithy/util-buffer-from/node_modules/@smithy/is-array-buffer/package.json +61 -0
  359. package/_standalone/__node_modules/@smithy/hash-node/node_modules/@smithy/util-utf8/node_modules/@smithy/util-buffer-from/package.json +62 -0
  360. package/_standalone/__node_modules/@smithy/signature-v4/node_modules/@smithy/util-utf8/node_modules/@smithy/util-buffer-from/LICENSE +201 -0
  361. package/_standalone/__node_modules/@smithy/signature-v4/node_modules/@smithy/util-utf8/node_modules/@smithy/util-buffer-from/dist-cjs/index.js +20 -0
  362. package/_standalone/__node_modules/@smithy/signature-v4/node_modules/@smithy/util-utf8/node_modules/@smithy/util-buffer-from/dist-es/index.js +14 -0
  363. package/_standalone/__node_modules/@smithy/signature-v4/node_modules/@smithy/util-utf8/node_modules/@smithy/util-buffer-from/node_modules/@smithy/is-array-buffer/LICENSE +201 -0
  364. package/_standalone/__node_modules/@smithy/signature-v4/node_modules/@smithy/util-utf8/node_modules/@smithy/util-buffer-from/node_modules/@smithy/is-array-buffer/dist-cjs/index.js +6 -0
  365. package/_standalone/__node_modules/@smithy/signature-v4/node_modules/@smithy/util-utf8/node_modules/@smithy/util-buffer-from/node_modules/@smithy/is-array-buffer/dist-es/index.js +2 -0
  366. package/_standalone/__node_modules/@smithy/signature-v4/node_modules/@smithy/util-utf8/node_modules/@smithy/util-buffer-from/node_modules/@smithy/is-array-buffer/package.json +61 -0
  367. package/_standalone/__node_modules/@smithy/signature-v4/node_modules/@smithy/util-utf8/node_modules/@smithy/util-buffer-from/package.json +62 -0
  368. package/_standalone/__node_modules/@smithy/util-base64/node_modules/@smithy/util-buffer-from/node_modules/@smithy/is-array-buffer/LICENSE +201 -0
  369. package/_standalone/__node_modules/@smithy/util-base64/node_modules/@smithy/util-buffer-from/node_modules/@smithy/is-array-buffer/dist-cjs/index.js +6 -0
  370. package/_standalone/__node_modules/@smithy/util-base64/node_modules/@smithy/util-buffer-from/node_modules/@smithy/is-array-buffer/dist-es/index.js +2 -0
  371. package/_standalone/__node_modules/@smithy/util-base64/node_modules/@smithy/util-buffer-from/node_modules/@smithy/is-array-buffer/package.json +61 -0
  372. package/_standalone/__node_modules/@smithy/util-base64/node_modules/@smithy/util-utf8/node_modules/@smithy/util-buffer-from/LICENSE +201 -0
  373. package/_standalone/__node_modules/@smithy/util-base64/node_modules/@smithy/util-utf8/node_modules/@smithy/util-buffer-from/dist-cjs/index.js +20 -0
  374. package/_standalone/__node_modules/@smithy/util-base64/node_modules/@smithy/util-utf8/node_modules/@smithy/util-buffer-from/dist-es/index.js +14 -0
  375. package/_standalone/__node_modules/@smithy/util-base64/node_modules/@smithy/util-utf8/node_modules/@smithy/util-buffer-from/node_modules/@smithy/is-array-buffer/LICENSE +201 -0
  376. package/_standalone/__node_modules/@smithy/util-base64/node_modules/@smithy/util-utf8/node_modules/@smithy/util-buffer-from/node_modules/@smithy/is-array-buffer/dist-cjs/index.js +6 -0
  377. package/_standalone/__node_modules/@smithy/util-base64/node_modules/@smithy/util-utf8/node_modules/@smithy/util-buffer-from/node_modules/@smithy/is-array-buffer/dist-es/index.js +2 -0
  378. package/_standalone/__node_modules/@smithy/util-base64/node_modules/@smithy/util-utf8/node_modules/@smithy/util-buffer-from/node_modules/@smithy/is-array-buffer/package.json +61 -0
  379. package/_standalone/__node_modules/@smithy/util-base64/node_modules/@smithy/util-utf8/node_modules/@smithy/util-buffer-from/package.json +62 -0
  380. package/_standalone/__node_modules/@smithy/util-stream/node_modules/@smithy/util-buffer-from/node_modules/@smithy/is-array-buffer/LICENSE +201 -0
  381. package/_standalone/__node_modules/@smithy/util-stream/node_modules/@smithy/util-buffer-from/node_modules/@smithy/is-array-buffer/dist-cjs/index.js +6 -0
  382. package/_standalone/__node_modules/@smithy/util-stream/node_modules/@smithy/util-buffer-from/node_modules/@smithy/is-array-buffer/dist-es/index.js +2 -0
  383. package/_standalone/__node_modules/@smithy/util-stream/node_modules/@smithy/util-buffer-from/node_modules/@smithy/is-array-buffer/package.json +61 -0
  384. package/_standalone/__node_modules/@smithy/util-stream/node_modules/@smithy/util-utf8/node_modules/@smithy/util-buffer-from/LICENSE +201 -0
  385. package/_standalone/__node_modules/@smithy/util-stream/node_modules/@smithy/util-utf8/node_modules/@smithy/util-buffer-from/dist-cjs/index.js +20 -0
  386. package/_standalone/__node_modules/@smithy/util-stream/node_modules/@smithy/util-utf8/node_modules/@smithy/util-buffer-from/dist-es/index.js +14 -0
  387. package/_standalone/__node_modules/@smithy/util-stream/node_modules/@smithy/util-utf8/node_modules/@smithy/util-buffer-from/node_modules/@smithy/is-array-buffer/LICENSE +201 -0
  388. package/_standalone/__node_modules/@smithy/util-stream/node_modules/@smithy/util-utf8/node_modules/@smithy/util-buffer-from/node_modules/@smithy/is-array-buffer/dist-cjs/index.js +6 -0
  389. package/_standalone/__node_modules/@smithy/util-stream/node_modules/@smithy/util-utf8/node_modules/@smithy/util-buffer-from/node_modules/@smithy/is-array-buffer/dist-es/index.js +2 -0
  390. package/_standalone/__node_modules/@smithy/util-stream/node_modules/@smithy/util-utf8/node_modules/@smithy/util-buffer-from/node_modules/@smithy/is-array-buffer/package.json +61 -0
  391. package/_standalone/__node_modules/@smithy/util-stream/node_modules/@smithy/util-utf8/node_modules/@smithy/util-buffer-from/package.json +62 -0
  392. package/_standalone/__node_modules/bignumber.js/doc/API.html +2249 -0
  393. package/_standalone/__node_modules/degenerator/node_modules/.bin/escodegen +2 -2
  394. package/_standalone/__node_modules/degenerator/node_modules/.bin/esgenerate +2 -2
  395. package/_standalone/__node_modules/degenerator/node_modules/.bin/esparse +2 -2
  396. package/_standalone/__node_modules/degenerator/node_modules/.bin/esvalidate +2 -2
  397. package/_standalone/__node_modules/entities/LICENSE +11 -0
  398. package/_standalone/__node_modules/entities/dist/decode-codepoint.js +46 -0
  399. package/_standalone/__node_modules/entities/dist/decode.js +544 -0
  400. package/_standalone/__node_modules/entities/dist/encode.js +90 -0
  401. package/_standalone/__node_modules/entities/dist/escape.js +132 -0
  402. package/_standalone/__node_modules/entities/dist/generated/decode-data-html.js +5 -0
  403. package/_standalone/__node_modules/entities/dist/generated/decode-data-xml.js +5 -0
  404. package/_standalone/__node_modules/entities/dist/generated/encode-html.js +12 -0
  405. package/_standalone/__node_modules/entities/dist/index.js +91 -0
  406. package/_standalone/__node_modules/entities/dist/internal/bin-trie-flags.js +18 -0
  407. package/_standalone/__node_modules/entities/dist/internal/decode-shared.js +17 -0
  408. package/_standalone/__node_modules/entities/dist/internal/encode-shared.js +93 -0
  409. package/_standalone/__node_modules/entities/package.json +83 -0
  410. package/_standalone/__node_modules/entities/src/decode-codepoint.ts +50 -0
  411. package/_standalone/__node_modules/entities/src/decode.ts +671 -0
  412. package/_standalone/__node_modules/entities/src/encode.ts +95 -0
  413. package/_standalone/__node_modules/entities/src/escape.ts +160 -0
  414. package/_standalone/__node_modules/entities/src/generated/decode-data-html.ts +7 -0
  415. package/_standalone/__node_modules/entities/src/generated/decode-data-xml.ts +7 -0
  416. package/_standalone/__node_modules/entities/src/generated/encode-html.ts +18 -0
  417. package/_standalone/__node_modules/entities/src/index.ts +162 -0
  418. package/_standalone/__node_modules/entities/src/internal/bin-trie-flags.ts +16 -0
  419. package/_standalone/__node_modules/entities/src/internal/decode-shared.ts +18 -0
  420. package/_standalone/__node_modules/entities/src/internal/encode-shared.ts +123 -0
  421. package/_standalone/__node_modules/escodegen/node_modules/.bin/esparse +2 -2
  422. package/_standalone/__node_modules/escodegen/node_modules/.bin/esvalidate +2 -2
  423. package/_standalone/__node_modules/global-agent/node_modules/.bin/semver +2 -2
  424. package/_standalone/__node_modules/has-flag/index.js +8 -0
  425. package/_standalone/__node_modules/has-flag/license +9 -0
  426. package/_standalone/__node_modules/has-flag/package.json +46 -0
  427. package/_standalone/__node_modules/jsdom/node_modules/.bin/specificity +2 -2
  428. package/_standalone/__node_modules/koffi/doc/benchmarks.md +126 -0
  429. package/_standalone/__node_modules/koffi/doc/callbacks.md +210 -0
  430. package/_standalone/__node_modules/koffi/doc/contribute.md +148 -0
  431. package/_standalone/__node_modules/koffi/doc/functions.md +250 -0
  432. package/_standalone/__node_modules/koffi/doc/index.md +61 -0
  433. package/_standalone/__node_modules/koffi/doc/input.md +471 -0
  434. package/_standalone/__node_modules/koffi/doc/migration.md +159 -0
  435. package/_standalone/__node_modules/koffi/doc/misc.md +180 -0
  436. package/_standalone/__node_modules/koffi/doc/output.md +305 -0
  437. package/_standalone/__node_modules/koffi/doc/packaging.md +88 -0
  438. package/_standalone/__node_modules/koffi/doc/platforms.md +36 -0
  439. package/_standalone/__node_modules/koffi/doc/pointers.md +328 -0
  440. package/_standalone/__node_modules/koffi/doc/start.md +118 -0
  441. package/_standalone/__node_modules/koffi/doc/unions.md +186 -0
  442. package/_standalone/__node_modules/koffi/doc/variables.md +102 -0
  443. package/_standalone/__node_modules/postcss/node_modules/.bin/nanoid +2 -2
  444. package/_standalone/__node_modules/supports-color/browser.js +5 -0
  445. package/_standalone/__node_modules/supports-color/index.js +135 -0
  446. package/_standalone/__node_modules/supports-color/license +9 -0
  447. package/_standalone/__node_modules/supports-color/package.json +53 -0
  448. package/_standalone/__node_modules/tough-cookie/node_modules/.bin/tldts +2 -2
  449. package/_standalone/__node_modules/yaml/browser/dist/doc/Document.js +335 -0
  450. package/_standalone/__node_modules/yaml/browser/dist/doc/anchors.js +71 -0
  451. package/_standalone/__node_modules/yaml/browser/dist/doc/applyReviver.js +55 -0
  452. package/_standalone/__node_modules/yaml/browser/dist/doc/createNode.js +88 -0
  453. package/_standalone/__node_modules/yaml/browser/dist/doc/directives.js +176 -0
  454. package/_standalone/__node_modules/yaml/dist/doc/Document.js +337 -0
  455. package/_standalone/__node_modules/yaml/dist/doc/anchors.js +76 -0
  456. package/_standalone/__node_modules/yaml/dist/doc/applyReviver.js +57 -0
  457. package/_standalone/__node_modules/yaml/dist/doc/createNode.js +90 -0
  458. package/_standalone/__node_modules/yaml/dist/doc/directives.js +178 -0
  459. package/_standalone/server.js +1 -1
  460. package/package.json +1 -1
  461. package/runtime-manifest.json +1 -1
  462. package/scripts/prepare-standalone.mjs +0 -1
  463. package/scripts/verify-standalone.mjs +12 -0
  464. package/static-web/.mindos-build-version +1 -1
  465. package/static-web/_next/static/chunks/{2461-a1073a0bd04c228a.js → 1957-723ac4eb5200214c.js} +3 -3
  466. package/static-web/_next/static/chunks/{47-41e1a06e6d389b69.js → 2737-f4970f0684c334d6.js} +1 -1
  467. package/static-web/_next/static/chunks/{9216.d3339c27169b21bf.js → 6728.e1841cddb63308b0.js} +1 -1
  468. package/static-web/_next/static/chunks/{6947.7e50e18da7dc4aef.js → 6947.fb89346ef2f6be17.js} +1 -1
  469. package/static-web/_next/static/chunks/app/_not-found/{page-ec6fa498a07e6fd9.js → page-eaedcec1b693c03c.js} +1 -1
  470. package/{_standalone/__next/static/chunks/app/agents/[agentKey]/page-44c493b744d18249.js → static-web/_next/static/chunks/app/agents/[agentKey]/page-1dac12945bfbaf35.js} +1 -1
  471. package/{_standalone/__next/static/chunks/app/agents/page-6591b482a193e657.js → static-web/_next/static/chunks/app/agents/page-7ff2e39ca12eb20a.js} +1 -1
  472. package/static-web/_next/static/chunks/app/capture/history/page-51db96203209a441.js +1 -0
  473. package/static-web/_next/static/chunks/app/capture/page-3bf09d1f5e1c379c.js +1 -0
  474. package/static-web/_next/static/chunks/app/changelog/page-01dc22b6d2230c7f.js +1 -0
  475. package/static-web/_next/static/chunks/app/changes/page-c9f8d5632a001849.js +1 -0
  476. package/{_standalone/__next/static/chunks/app/echo/[segment]/page-c5ea40ac04f2dc29.js → static-web/_next/static/chunks/app/echo/[segment]/page-44b6b8e7fd0bbe31.js} +2 -2
  477. package/static-web/_next/static/chunks/app/echo/page-c9f8d5632a001849.js +1 -0
  478. package/static-web/_next/static/chunks/app/{error-c46d1b03d5e3289c.js → error-1cfcd6abd93c3837.js} +1 -1
  479. package/static-web/_next/static/chunks/app/explore/{page-5d6dd4af8d1bb468.js → page-117fcf54b8b9765c.js} +1 -1
  480. package/static-web/_next/static/chunks/app/global-error-11b333dcf222bc09.js +1 -0
  481. package/static-web/_next/static/chunks/app/help/{page-3f0a1a8e51249cb2.js → page-6efb8aa3a3c169fa.js} +1 -1
  482. package/static-web/_next/static/chunks/app/inbox/history/page-913645bbd6161116.js +1 -0
  483. package/{_standalone/__next/static/chunks/app/layout-5966cd317bbed698.js → static-web/_next/static/chunks/app/layout-24a31ea28c556e82.js} +7 -7
  484. package/static-web/_next/static/chunks/app/login/page-7f9aca3d51266bec.js +1 -0
  485. package/{_standalone/__next/static/chunks/app/page-5c9489e28657376e.js → static-web/_next/static/chunks/app/page-35662964020c0ea9.js} +1 -1
  486. package/static-web/_next/static/chunks/app/settings/{page-c9f44b3447a41431.js → page-f816f13a34613538.js} +1 -1
  487. package/{_standalone/__next/static/chunks/app/setup/page-f5de08d0d588c778.js → static-web/_next/static/chunks/app/setup/page-a1027871dc33ffbd.js} +1 -1
  488. package/static-web/_next/static/chunks/app/todo/page-54c3ec77f662ff73.js +1 -0
  489. package/static-web/_next/static/chunks/app/trash/page-50622e3df2047204.js +1 -0
  490. package/static-web/_next/static/chunks/app/view/[...path]/{error-f73092e638a4e999.js → error-c9a3f6de7c963c74.js} +1 -1
  491. package/static-web/_next/static/chunks/app/view/[...path]/{not-found-80e5f4054819b372.js → not-found-5a4f2b4fbe28d617.js} +1 -1
  492. package/static-web/_next/static/chunks/app/view/[...path]/page-b10d3819827da1c2.js +12 -0
  493. package/{_standalone/__next/static/chunks/app/wiki/page-4c9bc816069b6f2a.js → static-web/_next/static/chunks/app/wiki/page-7afd3b97c1ea1b8c.js} +2 -2
  494. package/static-web/_next/static/chunks/{main-app-23adfdc06470abb6.js → main-app-8a6081b103b8f494.js} +1 -1
  495. package/static-web/_next/static/chunks/webpack-7d8c24c6af17dd51.js +1 -0
  496. package/static-web/help/index.html +3 -3
  497. package/static-web/index.html +3 -3
  498. package/static-web/setup/index.html +3 -3
  499. package/static-web/static-web-manifest.json +1 -1
  500. package/static-web/wiki/index.html +3 -3
  501. package/_standalone/__next/static/chunks/app/capture/history/page-d157ce945ad84c23.js +0 -1
  502. package/_standalone/__next/static/chunks/app/capture/page-ae4d683afdc7a7b2.js +0 -1
  503. package/_standalone/__next/static/chunks/app/changelog/page-5a39d8fe531f4d45.js +0 -1
  504. package/_standalone/__next/static/chunks/app/changes/page-64cf8d751245eee9.js +0 -1
  505. package/_standalone/__next/static/chunks/app/echo/page-64cf8d751245eee9.js +0 -1
  506. package/_standalone/__next/static/chunks/app/global-error-d42727c6c6c48879.js +0 -1
  507. package/_standalone/__next/static/chunks/app/inbox/history/page-b2930c2ef04e00b0.js +0 -1
  508. package/_standalone/__next/static/chunks/app/login/page-a4f9f9053c75ae8d.js +0 -1
  509. package/_standalone/__next/static/chunks/app/todo/page-c7629a0c102c634f.js +0 -1
  510. package/_standalone/__next/static/chunks/app/trash/page-d87207a63591ee16.js +0 -1
  511. package/_standalone/__next/static/chunks/app/view/[...path]/page-1898f4ae4ab28db0.js +0 -12
  512. package/_standalone/__next/static/chunks/webpack-75abef9cbb1ea912.js +0 -1
  513. package/static-web/_next/static/chunks/app/capture/history/page-d157ce945ad84c23.js +0 -1
  514. package/static-web/_next/static/chunks/app/capture/page-ae4d683afdc7a7b2.js +0 -1
  515. package/static-web/_next/static/chunks/app/changelog/page-5a39d8fe531f4d45.js +0 -1
  516. package/static-web/_next/static/chunks/app/changes/page-64cf8d751245eee9.js +0 -1
  517. package/static-web/_next/static/chunks/app/echo/page-64cf8d751245eee9.js +0 -1
  518. package/static-web/_next/static/chunks/app/global-error-d42727c6c6c48879.js +0 -1
  519. package/static-web/_next/static/chunks/app/inbox/history/page-b2930c2ef04e00b0.js +0 -1
  520. package/static-web/_next/static/chunks/app/login/page-a4f9f9053c75ae8d.js +0 -1
  521. package/static-web/_next/static/chunks/app/todo/page-c7629a0c102c634f.js +0 -1
  522. package/static-web/_next/static/chunks/app/trash/page-d87207a63591ee16.js +0 -1
  523. package/static-web/_next/static/chunks/app/view/[...path]/page-1898f4ae4ab28db0.js +0 -12
  524. package/static-web/_next/static/chunks/webpack-75abef9cbb1ea912.js +0 -1
  525. /package/_standalone/__next/static/{J9M4pgRyRHH7Ofbxuuklh → 3FkuJxcda957EywJ5ZWWG}/_buildManifest.js +0 -0
  526. /package/_standalone/__next/static/{J9M4pgRyRHH7Ofbxuuklh → 3FkuJxcda957EywJ5ZWWG}/_ssgManifest.js +0 -0
  527. /package/static-web/_next/static/{J9M4pgRyRHH7Ofbxuuklh → 3FkuJxcda957EywJ5ZWWG}/_buildManifest.js +0 -0
  528. /package/static-web/_next/static/{J9M4pgRyRHH7Ofbxuuklh → 3FkuJxcda957EywJ5ZWWG}/_ssgManifest.js +0 -0
@@ -0,0 +1 @@
1
+ (self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[6960],{4249:(e,t,r)=>{Promise.resolve().then(r.bind(r,33333))},21082:(e,t,r)=>{"use strict";r.d(t,{A:()=>n});let n=(0,r(73015).A)("circle-alert",[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["line",{x1:"12",x2:"12",y1:"8",y2:"12",key:"1pkeuh"}],["line",{x1:"12",x2:"12.01",y1:"16",y2:"16",key:"4dfq90"}]])},30292:(e,t,r)=>{"use strict";r.d(t,{D4:()=>x,FB:()=>u,W8:()=>p,g4:()=>g,jQ:()=>h});let n="mindos:organize-history",s=new Set(["create","update","unknown"]),a=new Set(["completed","partial","undone"]),i=new Set(["upload","drag-drop","inbox-organize","import-modal","plugin","web-clipper","conversation"]);function o(e){return"object"==typeof e&&null!==e&&!Array.isArray(e)}function d(e){return o(e)&&"string"==typeof e.path&&"boolean"==typeof e.ok&&"string"==typeof e.action&&s.has(e.action)&&(void 0===e.undone||"boolean"==typeof e.undone)}function l(e){return o(e)&&"string"==typeof e.id&&Number.isFinite(e.timestamp)&&Array.isArray(e.sourceFiles)&&e.sourceFiles.every(e=>"string"==typeof e)&&Array.isArray(e.files)&&e.files.every(d)&&"string"==typeof e.status&&a.has(e.status)&&(void 0===e.source||"string"==typeof e.source&&i.has(e.source))&&(void 0===e.durationMs||Number.isFinite(e.durationMs))}function c(e){return Array.isArray(e)?e.filter(l).slice(0,50):[]}function u(){try{let e=localStorage.getItem(n);if(!e)return[];return c(JSON.parse(e))}catch{return[]}}function m(e){try{localStorage.setItem(n,JSON.stringify(c(e)))}catch{}}function x(e){let t=u();t.unshift(e);let r=t.slice(0,50);return m(r),r}function p(e,t){let r=u(),n=r.findIndex(t=>t.id===e);return n>=0&&(r[n]={...r[n],...t},m(r)),r}function g(){try{localStorage.removeItem(n)}catch{}}let f=0;function h(){return`org-${Date.now()}-${++f}`}},31156:(e,t,r)=>{"use strict";r.d(t,{G:()=>z});var n=r(66839),s=r(44223),a=r(64948),i=r(49925),o=r(53499),d=r(65637),l=r(21073),c=r(52229),u=r(31349),m=r(58221),x=r(47934);let p=(0,r(61549).F)("group/button inline-flex shrink-0 items-center justify-center rounded-lg border border-transparent bg-clip-padding text-sm font-medium whitespace-nowrap transition-all outline-none select-none focus-visible:border-ring focus-visible:ring-3 focus-visible:ring-ring/50 disabled:pointer-events-none disabled:opacity-50 aria-invalid:border-destructive aria-invalid:ring-3 aria-invalid:ring-destructive/20 dark:aria-invalid:border-destructive/50 dark:aria-invalid:ring-destructive/40 [&_svg]:pointer-events-none [&_svg]:shrink-0 [&_svg:not([class*='size-'])]:size-4",{variants:{variant:{default:"bg-primary text-primary-foreground [a]:hover:bg-primary/80",outline:"border-border bg-background hover:bg-muted hover:text-foreground aria-expanded:bg-muted aria-expanded:text-foreground dark:border-input dark:bg-input/30 dark:hover:bg-input/50",secondary:"bg-secondary text-secondary-foreground hover:bg-secondary/80 aria-expanded:bg-secondary aria-expanded:text-secondary-foreground",ghost:"hover:bg-muted hover:text-foreground aria-expanded:bg-muted aria-expanded:text-foreground dark:hover:bg-muted/50",destructive:"bg-destructive/10 text-destructive hover:bg-destructive/20 focus-visible:border-destructive/40 focus-visible:ring-destructive/20 dark:bg-destructive/20 dark:hover:bg-destructive/30 dark:focus-visible:ring-destructive/40",link:"text-primary underline-offset-4 hover:underline"},size:{default:"h-8 gap-1.5 px-2.5 has-data-[icon=inline-end]:pr-2 has-data-[icon=inline-start]:pl-2",xs:"h-6 gap-1 rounded-[min(var(--radius-md),10px)] px-2 text-xs in-data-[slot=button-group]:rounded-lg has-data-[icon=inline-end]:pr-1.5 has-data-[icon=inline-start]:pl-1.5 [&_svg:not([class*='size-'])]:size-3",sm:"h-7 gap-1 rounded-[min(var(--radius-md),12px)] px-2.5 text-[0.8rem] in-data-[slot=button-group]:rounded-lg has-data-[icon=inline-end]:pr-1.5 has-data-[icon=inline-start]:pl-1.5 [&_svg:not([class*='size-'])]:size-3.5",lg:"h-9 gap-1.5 px-2.5 has-data-[icon=inline-end]:pr-3 has-data-[icon=inline-start]:pl-3",icon:"size-8","icon-xs":"size-6 rounded-[min(var(--radius-md),10px)] in-data-[slot=button-group]:rounded-lg [&_svg:not([class*='size-'])]:size-3","icon-sm":"size-7 rounded-[min(var(--radius-md),12px)] in-data-[slot=button-group]:rounded-lg","icon-lg":"size-9"}},defaultVariants:{variant:"default",size:"default"}});function g({className:e,variant:t="default",size:r="default",...s}){return(0,n.jsx)(x.$,{"data-slot":"button",className:(0,m.cn)(p({variant:t,size:r,className:e})),...s})}var f=r(72799);function h({...e}){return(0,n.jsx)(a.D,{"data-slot":"dialog",...e})}function v({...e}){return(0,n.jsx)(i.Z,{"data-slot":"dialog-portal",...e})}function b({className:e,...t}){return(0,n.jsx)(o.X,{"data-slot":"dialog-overlay",className:(0,m.cn)("fixed inset-0 isolate z-50 overlay-backdrop duration-100 data-open:animate-in data-open:fade-in-0 data-closed:animate-out data-closed:fade-out-0",e),...t})}function y({className:e,children:t,showCloseButton:r=!0,...s}){return(0,n.jsxs)(v,{children:[(0,n.jsx)(b,{}),(0,n.jsxs)(d.h,{"data-slot":"dialog-content",className:(0,m.cn)("fixed top-1/2 left-1/2 z-50 grid w-full max-w-[calc(100%-2rem)] -translate-x-1/2 -translate-y-1/2 gap-4 rounded-xl bg-background p-4 text-sm ring-1 ring-foreground/10 duration-100 outline-none sm:max-w-sm data-open:animate-in data-open:fade-in-0 data-open:zoom-in-95 data-closed:animate-out data-closed:fade-out-0 data-closed:zoom-out-95",e),...s,children:[t,r&&(0,n.jsxs)(l.H,{"data-slot":"dialog-close",render:(0,n.jsx)(g,{variant:"ghost",className:"absolute top-2 right-2",size:"icon-sm"}),children:[(0,n.jsx)(f.A,{}),(0,n.jsx)("span",{className:"sr-only",children:"Close"})]})]})]})}function j({className:e,...t}){return(0,n.jsx)("div",{"data-slot":"dialog-header",className:(0,m.cn)("flex flex-col gap-2",e),...t})}function N({className:e,showCloseButton:t=!1,children:r,...s}){return(0,n.jsxs)("div",{"data-slot":"dialog-footer",className:(0,m.cn)("-mx-4 -mb-4 flex flex-col-reverse gap-2 rounded-b-xl border-t bg-muted/50 p-4 sm:flex-row sm:justify-end",e),...s,children:[r,t&&(0,n.jsx)(l.H,{render:(0,n.jsx)(g,{variant:"outline"}),children:"Close"})]})}function k({className:e,...t}){return(0,n.jsx)(c.L,{"data-slot":"dialog-title",className:(0,m.cn)("text-base leading-none font-medium",e),...t})}function w({className:e,...t}){return(0,n.jsx)(u.r,{"data-slot":"dialog-description",className:(0,m.cn)("text-sm text-muted-foreground *:[a]:underline *:[a]:underline-offset-3 *:[a]:hover:text-foreground",e),...t})}function z(){let[e,t]=(0,s.useState)(!1),[r,a]=(0,s.useState)({title:""}),i=(0,s.useRef)(null),o=(0,s.useCallback)(e=>(a(e),t(!0),new Promise(e=>{i.current=e})),[]),d=(0,s.useCallback)(e=>{t(!1),i.current?.(e),i.current=null},[]);return{confirm:o,ConfirmDialog:(0,n.jsx)(h,{open:e,onOpenChange:e=>{e||d(!1)},children:(0,n.jsxs)(y,{showCloseButton:!1,className:"sm:max-w-[400px]",children:[(0,n.jsxs)(j,{children:[(0,n.jsx)(k,{children:r.title}),r.description&&(0,n.jsx)(w,{children:r.description})]}),(0,n.jsxs)(N,{children:[(0,n.jsx)(g,{variant:"outline",onClick:()=>d(!1),children:r.cancelLabel??"Cancel"}),(0,n.jsx)(g,{variant:"destructive"===r.variant?"destructive":"default",onClick:()=>d(!0),children:r.confirmLabel??"Confirm"})]})]})})}}},33333:(e,t,r)=>{"use strict";r.r(t),r.d(t,{default:()=>v});var n=r(66839),s=r(44223),a=r(18016),i=r.n(a),o=r(71044),d=r(31606),l=r(74197),c=r(12361),u=r(21082),m=r(76723),x=r(72615),p=r(30401),g=r(2073),f=r(31156),h=r(30292);function v(){let{t:e}=(0,g.Y)(),[t,r]=(0,s.useState)(()=>(0,h.FB)()),{confirm:a,ConfirmDialog:u}=(0,f.G)(),m=(0,s.useCallback)(async()=>{await a({title:e.importHistory.clearConfirm,variant:"destructive",confirmLabel:e.importHistory.clearAll})&&((0,h.g4)(),r([]))},[e,a]),x=(0,s.useMemo)(()=>{let r=new Date,n=r.toDateString(),s=new Date(r);s.setDate(s.getDate()-1);let a=s.toDateString(),i=[],o="",d=[];for(let r of t){let t,s=new Date(r.timestamp),l=s.toDateString();(t=l===n?e.importHistory.today:l===a?e.importHistory.yesterday:s.toLocaleDateString(void 0,{month:"short",day:"numeric",year:"numeric"}))!==o?(d.length>0&&i.push({label:o,entries:d}),o=t,d=[r]):d.push(r)}return d.length>0&&i.push({label:o,entries:d}),i},[t,e]);return(0,n.jsxs)("div",{className:"max-w-2xl mx-auto px-4 py-8",children:[u,(0,n.jsxs)("div",{className:"flex items-center gap-3 mb-6",children:[(0,n.jsx)(i(),{href:"/capture",className:"p-1.5 rounded-lg text-muted-foreground hover:text-foreground hover:bg-muted transition-colors",children:(0,n.jsx)(o.A,{size:16})}),(0,n.jsxs)("div",{className:"flex-1",children:[(0,n.jsx)("h1",{className:"text-lg font-semibold tracking-tight text-foreground",children:e.importHistory.title}),(0,n.jsx)("p",{className:"text-xs text-muted-foreground/60 mt-0.5",children:t.length>0?e.importHistory.recordCount(t.length):e.importHistory.emptyTitle})]}),t.length>0&&(0,n.jsxs)("button",{onClick:m,className:"flex items-center gap-1.5 text-xs text-muted-foreground hover:text-[var(--error)] transition-colors cursor-pointer",children:[(0,n.jsx)(d.A,{size:12}),e.importHistory.clearAll]})]}),t.length>0&&(0,n.jsxs)("div",{className:"flex items-start gap-2 px-3 py-2.5 mb-6 rounded-lg bg-muted/30 border border-border/30",children:[(0,n.jsx)(l.A,{size:13,className:"text-muted-foreground/50 mt-0.5 shrink-0"}),(0,n.jsx)("p",{className:"text-2xs text-muted-foreground/60",children:e.importHistory.processedArchive})]}),0===t.length&&(0,n.jsxs)("div",{className:"flex flex-col items-center gap-3 py-16 text-center",children:[(0,n.jsx)(c.A,{size:32,className:"text-muted-foreground/15"}),(0,n.jsx)("p",{className:"text-sm text-muted-foreground/60",children:e.importHistory.emptyTitle}),(0,n.jsx)("p",{className:"text-xs text-muted-foreground/40",children:e.importHistory.emptyDesc})]}),(0,n.jsx)("div",{className:"space-y-6",children:x.map(e=>(0,n.jsxs)("div",{children:[(0,n.jsx)("h2",{className:"text-2xs font-medium text-muted-foreground/50 uppercase tracking-wider mb-2",children:e.label}),(0,n.jsx)("div",{className:"space-y-2",children:e.entries.map(e=>(0,n.jsx)(b,{entry:e},e.id))})]},e.label))})]})}function b({entry:e}){let{t}=(0,g.Y)(),[r,a]=(0,s.useState)(!1),i="undone"===e.status,o=function(e){switch(e){case"drag-drop":return"Drag & Drop";case"inbox-organize":return"Inbox";case"import-modal":return"Import";case"plugin":return"Plugin";case"upload":return"Upload";default:return null}}(e.source),d=e.durationMs?function(e){let t=Math.round(e/1e3);if(t<60)return`${t}s`;let r=Math.floor(t/60),n=t%60;return`${r}m${n>0?`${n}s`:""}`}(e.durationMs):null,l=new Date(e.timestamp).toLocaleTimeString(void 0,{hour:"2-digit",minute:"2-digit"}),c=e.files.filter(e=>e.ok&&!e.undone).length,f=e.files.length;return(0,n.jsxs)("div",{className:"rounded-xl border border-border/40 overflow-hidden hover:border-border/60 transition-colors",children:[(0,n.jsxs)("button",{type:"button",onClick:()=>a(e=>!e),className:"w-full flex items-start gap-3 px-4 py-3 text-left hover:bg-muted/20 transition-colors",children:[i?(0,n.jsx)(u.A,{size:14,className:"text-muted-foreground/40 mt-0.5 shrink-0"}):(0,n.jsx)(m.A,{size:14,className:"text-success/70 mt-0.5 shrink-0"}),(0,n.jsxs)("div",{className:"flex-1 min-w-0",children:[(0,n.jsx)("div",{className:`text-sm ${i?"text-muted-foreground/50 line-through":"text-foreground/90"}`,children:1===e.sourceFiles.length?e.sourceFiles[0]:`${e.sourceFiles.length} files`}),(0,n.jsxs)("div",{className:"flex items-center gap-2 mt-1 flex-wrap",children:[o&&(0,n.jsx)("span",{className:"text-2xs px-1.5 py-0.5 rounded bg-muted/60 text-muted-foreground/60",children:o}),f>0&&(0,n.jsx)("span",{className:"text-2xs text-muted-foreground/40",children:t.importHistory.changesCount(c,f)}),d&&(0,n.jsx)("span",{className:"text-2xs text-muted-foreground/40",children:d})]})]}),(0,n.jsxs)("div",{className:"flex items-center gap-2 shrink-0",children:[(0,n.jsx)("span",{className:"text-2xs text-muted-foreground/40 tabular-nums",children:l}),f>0&&(0,n.jsx)(x.A,{size:12,className:`text-muted-foreground/30 transition-transform duration-150 ${r?"rotate-180":""}`})]})]}),r&&f>0&&(0,n.jsxs)("div",{className:"border-t border-border/20 px-4 py-2 space-y-1",children:[e.sourceFiles.length>1&&(0,n.jsxs)("div",{className:"mb-2",children:[(0,n.jsx)("span",{className:"text-2xs font-medium text-muted-foreground/50 uppercase tracking-wider",children:t.importHistory.sourceLabel}),(0,n.jsx)("div",{className:"mt-1 space-y-0.5",children:e.sourceFiles.map((e,t)=>(0,n.jsxs)("div",{className:"flex items-center gap-2 text-2xs text-foreground/60",children:[(0,n.jsx)(p.A,{size:10,className:"text-muted-foreground/40 shrink-0"}),(0,n.jsx)("span",{className:"truncate",children:e})]},t))})]}),e.files.map((e,t)=>(e.path.split("/").pop()??e.path,(0,n.jsxs)("div",{className:`flex items-center gap-2 py-1 text-2xs ${e.undone?"opacity-40":""}`,children:[(0,n.jsx)("span",{className:`w-1.5 h-1.5 rounded-full shrink-0 ${e.ok&&!e.undone?"bg-success/60":e.undone?"bg-muted-foreground/30":"bg-[var(--error)]/50"}`}),(0,n.jsx)("span",{className:`truncate flex-1 ${e.undone?"line-through text-muted-foreground":"text-foreground/70"}`,children:e.path}),(0,n.jsx)("span",{className:"text-muted-foreground/40 shrink-0",children:e.undone?"undone":"create"===e.action?"created":"update"===e.action?"updated":e.action})]},`${e.path}-${t}`)))]})]})}},58221:(e,t,r)=>{"use strict";r.d(t,{IX:()=>d,KW:()=>o,O0:()=>i,cn:()=>a,vr:()=>l});var n=r(10325),s=r(91498);function a(...e){return(0,s.QP)((0,n.$)(e))}function i(e){return e.split("/").map(encodeURIComponent).join("/")}function o(e,t){let r=Date.now()-e,n=Math.floor(r/6e4),s=Math.floor(r/36e5),a=Math.floor(r/864e5);return n<1?t.justNow:n<60?t.minutesAgo(n):s<24?t.hoursAgo(s):a<7?t.daysAgo(a):new Date(e).toLocaleDateString()}function d(e){let t=e.match(/^[\p{Emoji_Presentation}\p{Extended_Pictographic}]+/u);return t?.[0]??""}function l(e){return e.replace(/^[\p{Emoji_Presentation}\p{Extended_Pictographic}\s]+/u,"")||e}},71044:(e,t,r)=>{"use strict";r.d(t,{A:()=>n});let n=(0,r(73015).A)("arrow-left",[["path",{d:"m12 19-7-7 7-7",key:"1l729n"}],["path",{d:"M19 12H5",key:"x3x0zl"}]])},74197:(e,t,r)=>{"use strict";r.d(t,{A:()=>n});let n=(0,r(73015).A)("archive",[["rect",{width:"20",height:"5",x:"2",y:"3",rx:"1",key:"1wp1u1"}],["path",{d:"M4 8v11a2 2 0 0 0 2 2h12a2 2 0 0 0 2-2V8",key:"1s80jp"}],["path",{d:"M10 12h4",key:"a56b0p"}]])},76723:(e,t,r)=>{"use strict";r.d(t,{A:()=>n});let n=(0,r(73015).A)("check",[["path",{d:"M20 6 9 17l-5-5",key:"1gmf2c"}]])}},e=>{e.O(0,[3940,2130,7368,2073,5018,2330,7358],()=>e(e.s=4249)),_N_E=e.O()}]);
@@ -0,0 +1 @@
1
+ (self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[9567],{4373:(e,t,a)=>{"use strict";a.d(t,{A:()=>r});let r=(0,a(73015).A)("external-link",[["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"}]])},10952:(e,t,a)=>{"use strict";a.d(t,{A:()=>r});let r=(0,a(73015).A)("folder-input",[["path",{d:"M2 9V5a2 2 0 0 1 2-2h3.9a2 2 0 0 1 1.69.9l.81 1.2a2 2 0 0 0 1.67.9H20a2 2 0 0 1 2 2v10a2 2 0 0 1-2 2H4a2 2 0 0 1-2-2v-1",key:"fm4g5t"}],["path",{d:"M2 13h10",key:"pgb2dq"}],["path",{d:"m9 16 3-3-3-3",key:"6m91ic"}]])},18659:(e,t,a)=>{"use strict";a.d(t,{A:()=>r});let r=(0,a(73015).A)("table",[["path",{d:"M12 3v18",key:"108xh3"}],["rect",{width:"18",height:"18",x:"3",y:"3",rx:"2",key:"afitv7"}],["path",{d:"M3 9h18",key:"1pudct"}],["path",{d:"M3 15h18",key:"5xshup"}]])},24336:(e,t,a)=>{"use strict";a.d(t,{A:()=>r});let r=(0,a(73015).A)("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"}]])},31082:(e,t,a)=>{"use strict";a.d(t,{A:()=>r});let r=(0,a(73015).A)("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"}]])},56261:(e,t,a)=>{"use strict";var r=a(59889);a.o(r,"usePathname")&&a.d(t,{usePathname:function(){return r.usePathname}}),a.o(r,"useRouter")&&a.d(t,{useRouter:function(){return r.useRouter}}),a.o(r,"useSearchParams")&&a.d(t,{useSearchParams:function(){return r.useSearchParams}})},59694:(e,t,a)=>{"use strict";a.d(t,{A:()=>r});let r=(0,a(73015).A)("link-2",[["path",{d:"M9 17H7A5 5 0 0 1 7 7h2",key:"8i5ue5"}],["path",{d:"M15 7h2a5 5 0 1 1 0 10h-2",key:"1b9ql8"}],["line",{x1:"8",x2:"16",y1:"12",y2:"12",key:"1jonct"}]])},79455:(e,t,a)=>{"use strict";a.d(t,{B1:()=>s,X8:()=>c,dV:()=>o,oR:()=>d});let r=[],i=[],u=0;function n(){for(let e of i)e()}function s(e){return i=[...i,e],()=>{i=i.filter(t=>t!==e)}}function o(){return r}function c(e){r=r.filter(t=>t.id!==e),n()}function h(e){let t=`toast-${++u}`,a={id:t,message:e.message,type:e.type??"info",duration:e.duration??2e3,action:e.action};r=[...r,a].slice(-3),n(),a.duration>0&&setTimeout(()=>c(t),a.duration)}function d(e,t){h({message:e,...t})}d.success=(e,t)=>h({message:e,type:"success",duration:t}),d.undo=(e,t,a)=>h({message:e,type:"info",duration:a?.duration??5e3,action:{label:a?.label??"Undo",onClick:t}}),d.error=(e,t)=>h({message:e,type:"error",duration:t}),d.copy=(e="Copied")=>h({message:e,type:"success",duration:1500})},95991:(e,t,a)=>{"use strict";a.d(t,{A:()=>r});let r=(0,a(73015).A)("inbox",[["polyline",{points:"22 12 16 12 14 15 10 15 8 12 2 12",key:"o97t9d"}],["path",{d:"M5.45 5.11 2 12v6a2 2 0 0 0 2 2h16a2 2 0 0 0 2-2v-6l-3.45-6.89A2 2 0 0 0 16.76 4H7.24a2 2 0 0 0-1.79 1.11z",key:"oot6mr"}]])},98577:(e,t,a)=>{Promise.resolve().then(a.bind(a,86272))}},e=>{e.O(0,[3940,2130,2073,6272,5018,2330,7358],()=>e(e.s=98577)),_N_E=e.O()}]);
@@ -0,0 +1 @@
1
+ (self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[1679],{3824:(e,t,r)=>{"use strict";r.d(t,{A:()=>u});var n=r(66839),o=r(44223),s=r(53454),i=r(76723),a=r(72615);function l(e){return"options"in e}function u({value:e,onChange:t,options:r,className:u="",size:d="md",placeholder:c}){let[f,m]=(0,o.useState)(!1),[p,x]=(0,o.useState)(-1),[b,g]=(0,o.useState)(null),v=(0,o.useRef)(null),h=(0,o.useRef)(null),w=(0,o.useMemo)(()=>(function(e){let t=[];for(let r of e)l(r)?t.push(...r.options):t.push(r);return t})(r),[r]),y=(0,o.useMemo)(()=>w.find(t=>t.value===e)??null,[w,e]),E=(0,o.useCallback)(()=>{m(!1),x(-1)},[]),k=(0,o.useCallback)(e=>{t(e),E()},[t,E]);(0,o.useEffect)(()=>{if(!f)return;let e=e=>{v.current&&!v.current.contains(e.target)&&h.current&&!h.current.contains(e.target)&&E()};return document.addEventListener("mousedown",e),()=>document.removeEventListener("mousedown",e)},[f,E]),(0,o.useEffect)(()=>{if(!f)return;let e=e=>{switch(e.key){case"Escape":e.preventDefault(),E(),v.current?.focus();break;case"ArrowDown":e.preventDefault(),x(e=>Math.min(e+1,w.length-1));break;case"ArrowUp":e.preventDefault(),x(e=>Math.max(e-1,0));break;case"Enter":e.preventDefault(),p>=0&&p<w.length&&(k(w[p].value),v.current?.focus())}};return document.addEventListener("keydown",e),()=>document.removeEventListener("keydown",e)},[f,E,p,w,k]),(0,o.useEffect)(()=>{if(!f||!h.current||p<0)return;let e=h.current.querySelector(`[data-idx="${p}"]`);e&&e.scrollIntoView({block:"nearest"})},[f,p]);let j=(0,o.useCallback)(()=>{if(!v.current)return;let e=v.current.getBoundingClientRect(),t="sm"===d?200:260,r=window.innerHeight-e.bottom,n=e.top;g({top:r<t+8&&n>r?e.top:e.bottom,left:e.left,width:e.width,flipUp:r<t+8&&n>r})},[d]);(0,o.useEffect)(()=>{if(!f)return void g(null);let t=w.findIndex(t=>t.value===e);return x(t>=0?t:0),j(),window.addEventListener("scroll",j,!0),window.addEventListener("resize",j),()=>{window.removeEventListener("scroll",j,!0),window.removeEventListener("resize",j)}},[f,w,e,j]);let N="sm"===d,L=N?`inline-flex items-center gap-1 appearance-none rounded-md border border-border bg-background text-foreground outline-none focus-visible:ring-1 focus-visible:ring-ring transition-colors text-2xs px-1.5 py-0.5 pr-5 ${u}`:`w-full flex items-center gap-2 appearance-none rounded-lg border border-border bg-background text-foreground outline-none focus-visible:ring-1 focus-visible:ring-ring transition-colors text-sm px-3 py-2 pr-8 ${u}`,C=N?"w-full flex items-center gap-1.5 px-2 py-1 text-2xs text-left transition-colors cursor-pointer":"w-full flex items-center gap-2 px-3 py-1.5 text-sm text-left transition-colors cursor-pointer",$=-1;function A(t){let r=++$,o=t.value===e,s=r===p;return(0,n.jsxs)("button",{type:"button",role:"option","aria-selected":o,"data-idx":r,onClick:()=>k(t.value),onMouseEnter:()=>x(r),className:`${C} ${s?"bg-muted text-foreground":"text-foreground"}`,children:[t.icon,(0,n.jsx)("span",{className:"flex-1 truncate",children:t.label}),t.suffix,o&&(0,n.jsx)(i.A,{size:N?10:12,className:"shrink-0 text-[var(--amber)]"})]},t.value)}let R=f&&b&&(0,s.createPortal)((0,n.jsx)("div",{ref:h,className:N?"fixed z-50 overflow-y-auto rounded-md border border-border bg-card shadow-lg py-0.5":"fixed z-50 overflow-y-auto rounded-lg border border-border bg-card shadow-lg py-1",role:"listbox",style:{left:b.left,minWidth:b.width,maxHeight:N?200:260,...b.flipUp?{bottom:window.innerHeight-b.top+4}:{top:b.top+4}},children:r.map((e,t)=>l(e)?(0,n.jsxs)("div",{children:[t>0&&(0,n.jsx)("div",{className:"my-0.5 border-t border-border/50"}),(0,n.jsx)("div",{className:`py-1 text-2xs font-medium text-muted-foreground uppercase tracking-wider ${N?"px-2":"px-3"}`,children:e.label}),e.options.map(A)]},e.label):A(e))}),document.body);return(0,n.jsxs)("div",{className:"relative",children:[(0,n.jsxs)("button",{ref:v,type:"button",onClick:()=>m(e=>!e),"aria-haspopup":"listbox","aria-expanded":f,className:L,children:[y?.icon,(0,n.jsx)("span",{className:"flex-1 truncate text-left",children:y?.label??c??"—"}),y?.suffix,(0,n.jsx)(a.A,{size:N?12:14,className:`${N?"absolute right-1 top-1/2 -translate-y-1/2 text-muted-foreground pointer-events-none":"absolute right-2.5 top-1/2 -translate-y-1/2 text-muted-foreground pointer-events-none"} transition-transform duration-150 ${f?"rotate-180":""}`})]}),R]})}},23684:(e,t,r)=>{"use strict";r.d(t,{default:()=>s});var n=r(66839),o=r(44223);function s({href:e,label:t="Redirecting..."}){return(0,o.useEffect)(()=>{window.location.replace(e)},[e]),(0,n.jsx)("main",{className:"min-h-screen flex items-center justify-center px-6",children:(0,n.jsx)("a",{href:e,className:"text-sm underline-offset-4 hover:underline focus-visible:ring-2 focus-visible:ring-ring rounded-sm",style:{color:"var(--muted-foreground)"},children:t})})}},52869:(e,t,r)=>{Promise.resolve().then(r.bind(r,76186)),Promise.resolve().then(r.bind(r,23684))},65264:(e,t,r)=>{"use strict";r.d(t,{h:()=>n,n:()=>o});class n extends Error{constructor(e,t,r){super(e),this.name="ApiError",this.status=t,this.code=r}}async function o(e,t={}){let r,s,i,{timeout:a=3e4,signal:l,...u}=t;if((a>0||l)&&(r=new AbortController),a>0&&r&&(s=setTimeout(()=>{r.abort(Error(`Request timed out after ${Math.round(a/1e3)}s`))},a)),l&&r)if(l.aborted)r.abort();else{let e=()=>r?.abort();l.addEventListener("abort",e,{once:!0}),i=()=>{l.removeEventListener("abort",e)}}let d=r?.signal??l;try{let t=await fetch(e,{...u,signal:d});if(!t.ok){let e,r=`Request failed (${t.status})`;try{let n=await t.json();n?.error?.code&&n?.error?.message?(r=n.error.message,e=n.error.code):n?.error&&(r="string"==typeof n.error?n.error:n.error.message??r)}catch{}throw new n(r,t.status,e)}return await t.json()}finally{s&&clearTimeout(s),i&&i()}}},76186:(e,t,r)=>{"use strict";r.d(t,{default:()=>i});var n=r(66839),o=r(22669);let s={filePath:".mindos/change-log.json",content:"",extension:"json",saveAction:async()=>{}};function i(){return(0,n.jsx)("div",{className:"max-w-4xl mx-auto px-4 md:px-6",children:(0,n.jsx)(o.ChangeLogRenderer,{...s})})}}},e=>{e.O(0,[2130,1410,2073,2669,5018,2330,7358],()=>e(e.s=52869)),_N_E=e.O()}]);
@@ -0,0 +1 @@
1
+ (self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[7538,9336],{5245:(e,n,s)=>{Promise.resolve().then(s.bind(s,23684))},23684:(e,n,s)=>{"use strict";s.d(n,{default:()=>c});var r=s(66839),i=s(44223);function c({href:e,label:n="Redirecting..."}){return(0,i.useEffect)(()=>{window.location.replace(e)},[e]),(0,r.jsx)("main",{className:"min-h-screen flex items-center justify-center px-6",children:(0,r.jsx)("a",{href:e,className:"text-sm underline-offset-4 hover:underline focus-visible:ring-2 focus-visible:ring-ring rounded-sm",style:{color:"var(--muted-foreground)"},children:n})})}}},e=>{e.O(0,[5018,2330,7358],()=>e(e.s=5245)),_N_E=e.O()}]);
@@ -1,6 +1,6 @@
1
1
  (self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[9604],{249:(e,t,r)=>{"use strict";r.d(t,{m:()=>a});var n=r(94456);let s=new Set(["write_file","create_file","batch_create_files","update_section","insert_after_heading","delete_file","rename_file","create_space"]);async function a(e,t,r){let a=e.getReader(),i=new TextDecoder,o="",l=[],d=new Map,c=null,u=null,m=Date.now();function g(){let e=l.map(e=>"text"===e.type?{type:"text",text:e.text}:"reasoning"===e.type?{type:"reasoning",text:e.text}:{...e});return{role:"assistant",content:e.filter(e=>"text"===e.type).map(e=>e.text).join(""),parts:e,timestamp:m}}function h(e,t){let r=d.get(e);return r||(r={type:"tool-call",toolCallId:e,toolName:t??"unknown",input:void 0,state:"pending"},d.set(e,r),l.push(r),c=null),r}try{for(;!r?.aborted;){let{done:e,value:r}=await a.read();if(e&&!o)break;e||(o+=i.decode(r,{stream:!0}));let d=e?[o]:o.split("\n");o=e?"":d.pop()??"";let m=!1;for(let e of d){let t=e.trim(),r=(0,n.t4)(t);if(r)switch(r.type){case"text_delta":{let e=function(e){if(c===e){let e=l[l.length-1];if(e&&"text"===e.type)return e}let t={type:"text",text:""};return l.push(t),c=e,t}("text");e.text+=r.delta??"",m=!0;break}case"thinking_delta":u||(u={type:"reasoning",text:""},l.push(u),c=null),u.text+=r.delta??"",m=!0;break;case"tool_start":{let e=r.toolCallId;if(!e)break;let t=r.toolName,n=h(e,t);n.input=r.args,n.state="running",m=!0;break}case"tool_end":{let e=r.toolCallId;if(!e)break;let t=h(e,r.toolName);t.output=r.output??"",t.state=r.isError?"error":"done",m=!0,!r.isError&&s.has(t.toolName)&&window.dispatchEvent(new Event("mindos:files-changed"));break}case"error":{let e=r.message;l.push({type:"text",text:`
2
2
 
3
- **Stream Error:** ${e}`}),c=null,m=!0}}}if(m&&t(g()),e)break}}finally{a.releaseLock()}let p=!1;for(let e of d.values())("running"===e.state||"pending"===e.state)&&(e.state="error",e.output=e.output??"Stream ended before tool completed",p=!0);return p&&t(g()),g()}},9970:(e,t,r)=>{Promise.resolve().then(r.bind(r,41052))},13229:(e,t,r)=>{"use strict";r.d(t,{A:()=>n});let n=(0,r(73015).A)("footprints",[["path",{d:"M4 16v-2.38C4 11.5 2.97 10.5 3 8c.03-2.72 1.49-6 4.5-6C9.37 2 10 3.8 10 5.5c0 3.11-2 5.66-2 8.68V16a2 2 0 1 1-4 0Z",key:"1dudjm"}],["path",{d:"M20 20v-2.38c0-2.12 1.03-3.12 1-5.62-.03-2.72-1.49-6-4.5-6C14.63 6 14 7.8 14 9.5c0 3.11 2 5.66 2 8.68V20a2 2 0 1 0 4 0Z",key:"l2t8xc"}],["path",{d:"M16 17h4",key:"1dejxt"}],["path",{d:"M4 13h4",key:"1bwh8b"}]])},29696:(e,t,r)=>{"use strict";r.d(t,{A:()=>n});let n=(0,r(73015).A)("zap",[["path",{d:"M4 14a1 1 0 0 1-.78-1.63l9.9-10.2a.5.5 0 0 1 .86.46l-1.92 6.02A1 1 0 0 0 13 10h7a1 1 0 0 1 .78 1.63l-9.9 10.2a.5.5 0 0 1-.86-.46l1.92-6.02A1 1 0 0 0 11 14z",key:"1xq2db"}]])},32959:(e,t,r)=>{"use strict";r.d(t,{A:()=>n});let n=(0,r(73015).A)("brain",[["path",{d:"M12 18V5",key:"adv99a"}],["path",{d:"M15 13a4.17 4.17 0 0 1-3-4 4.17 4.17 0 0 1-3 4",key:"1e3is1"}],["path",{d:"M17.598 6.5A3 3 0 1 0 12 5a3 3 0 1 0-5.598 1.5",key:"1gqd8o"}],["path",{d:"M17.997 5.125a4 4 0 0 1 2.526 5.77",key:"iwvgf7"}],["path",{d:"M18 18a4 4 0 0 0 2-7.464",key:"efp6ie"}],["path",{d:"M19.967 17.483A4 4 0 1 1 12 18a4 4 0 1 1-7.967-.517",key:"1gq6am"}],["path",{d:"M6 18a4 4 0 0 1-2-7.464",key:"k1g0md"}],["path",{d:"M6.003 5.125a4 4 0 0 0-2.526 5.77",key:"q97ue3"}]])},41052:(e,t,r)=>{"use strict";r.d(t,{default:()=>es});var n=r(66839),s=r(44223),a=r(13229),i=r(32959),o=r(55798),l=r(82907),d=r(76723),c=r(2073),u=r(58221),m=r(48234);function g({pageTitle:e,lead:t,titleId:r,children:s}){return(0,n.jsxs)("header",{className:"relative overflow-hidden rounded-xl border border-border bg-card px-5 pb-5 pt-6 shadow-sm sm:px-8 sm:pb-6 sm:pt-8",children:[(0,n.jsx)("div",{className:`absolute left-0 top-5 w-[3px] rounded-sm bg-[var(--amber)] sm:top-6 ${s?"bottom-[40%]":"bottom-5"}`,"aria-hidden":!0}),(0,n.jsxs)("div",{className:"relative pl-4 sm:pl-5",children:[(0,n.jsx)("h1",{id:r,className:"font-display text-2xl font-semibold tracking-tight text-foreground md:text-3xl",children:e}),(0,n.jsx)("p",{className:"mt-3 max-w-prose font-sans text-base leading-relaxed text-muted-foreground",children:t})]}),s]})}var h=r(18016),p=r.n(h),f=r(85130);function b({activeSegment:e}){let{t}=(0,c.Y)(),r=t.panels.echo,s=t.echoPages.segmentNavAria;return(0,n.jsx)("nav",{"aria-label":s,className:"mt-5 border-t border-border/50 pt-4 font-sans",children:(0,n.jsx)("ul",{className:"flex snap-x snap-mandatory gap-2 overflow-x-auto pb-0.5 [scrollbar-width:thin]",children:f.RS.map(t=>{let s=f.AI[t],{label:l,icon:d}=function(e,t){switch(e){case"imprint":return{label:t.imprintTitle,icon:(0,n.jsx)(a.A,{size:14})};case"growth":return{label:t.growthTitle,icon:(0,n.jsx)(i.A,{size:14})};case"self":return{label:t.selfTitle,icon:(0,n.jsx)(o.A,{size:14})}}}(t,r),c=t===e;return(0,n.jsx)("li",{className:"snap-start shrink-0",children:(0,n.jsxs)(p(),{href:s,"aria-current":c?"page":void 0,className:(0,u.cn)("inline-flex min-h-9 max-w-44 items-center gap-1.5 rounded-full border px-3 py-1.5 text-sm transition-[background-color,border-color] duration-150 focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-2 focus-visible:ring-offset-background",c?"border-[var(--amber)]/50 bg-[var(--amber-dim)]/50 font-medium text-foreground":"border-transparent bg-muted/25 text-muted-foreground hover:bg-muted/50 hover:text-foreground"),children:[(0,n.jsx)("span",{className:(0,u.cn)("shrink-0",c?"text-foreground":"text-muted-foreground"),"aria-hidden":!0,children:d}),(0,n.jsx)("span",{className:"truncate",children:l})]})},t)})})})}var x=r(19378),y=r(72615),v=r(44361),w=r(80016),j=r(74576),k=r(249),N=r(69604);function S({title:e,showLabel:t,hideLabel:r,hint:a,generateLabel:i,noAiHint:o,generatingLabel:l,errorPrefix:d,retryLabel:m,userPrompt:g}){let[h,p]=(0,s.useState)(!1),[f,b]=(0,s.useState)(!1),[S,A]=(0,s.useState)(""),[$,C]=(0,s.useState)(""),T=(0,s.useId)(),E=`${T}-btn`,L=(0,s.useRef)(null),{ready:I,loading:z}=function(){let[e,t]=(0,s.useState)(!1),[r,n]=(0,s.useState)(!0);return(0,s.useEffect)(()=>{let e=!1,r=()=>{fetch("/api/settings",{cache:"no-store"}).then(e=>e.json()).then(r=>{e||t(function(e){let t=e.ai?.providers??[],r=e.ai?.activeProvider,n=e.envOverrides??{},s=r?t.find(e=>e.id===r):t[0];if(!s)return!1;if(s.apiKey&&s.apiKey.length>0)return!0;let a=(0,N.rl)(s.protocol)?(0,N.Ux)(s.protocol):void 0;if(a&&n[a])return!0;let i=(0,N.rl)(s.protocol)?N.T_[s.protocol]:void 0;return!!i?.apiKeyFallback}(r))}).catch(()=>{e||t(!1)}).finally(()=>{e||n(!1)})};r();let s=()=>r();return window.addEventListener("mindos:settings-changed",s),()=>{e=!0,window.removeEventListener("mindos:settings-changed",s)}},[]),{ready:e,loading:r}}(),{t:M}=(0,c.Y)();(0,s.useEffect)(()=>()=>L.current?.abort(),[]);let R=(0,s.useCallback)(async()=>{L.current?.abort();let e=new AbortController;L.current=e,C(""),A(""),b(!0);try{let t=await fetch("/api/ask",{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({messages:[{role:"user",content:g}],maxSteps:16}),signal:e.signal});if(!t.ok){let e=`HTTP ${t.status}`;try{let r=await t.json();e=r?.error?.message??r?.message??e}catch{}throw Error(e)}if(!t.body)throw Error("No response body");await (0,k.m)(t.body,e=>{A(e.content??"")},e.signal)}catch(e){if(e instanceof Error&&"AbortError"===e.name)return;C(e instanceof Error?e.message:String(e))}finally{b(!1),L.current=null}},[g]),D=z||!I||f;return(0,n.jsxs)("div",{className:"mt-10 overflow-hidden rounded-xl border border-border bg-card shadow-sm transition-[border-color,box-shadow] duration-150 ease-out hover:border-[var(--amber)]/25 hover:shadow",children:[(0,n.jsxs)("button",{id:E,type:"button",className:"flex w-full items-center gap-3 px-5 py-4 text-left transition-[background-color] duration-200 hover:bg-muted/25 focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-2 focus-visible:ring-offset-background","aria-expanded":h,"aria-controls":T,onClick:()=>p(e=>!e),children:[(0,n.jsx)("span",{className:"flex h-8 w-8 shrink-0 items-center justify-center rounded-lg bg-[var(--amber-dim)] text-[var(--amber)]","aria-hidden":!0,children:(0,n.jsx)(x.A,{size:16,strokeWidth:1.75})}),(0,n.jsx)("span",{className:"flex-1 font-sans text-sm font-medium text-foreground",children:e}),(0,n.jsx)(y.A,{size:16,className:(0,u.cn)("shrink-0 text-muted-foreground transition-transform duration-200",h&&"rotate-180"),"aria-hidden":!0}),(0,n.jsx)("span",{className:"sr-only",children:h?r:t})]}),(0,n.jsx)("div",{id:T,role:"region","aria-labelledby":E,className:(0,u.cn)("grid transition-[grid-template-rows] duration-200 ease-out",h?"grid-rows-[1fr]":"grid-rows-[0fr]"),children:(0,n.jsx)("div",{className:"overflow-hidden",...!h&&{inert:!0},children:(0,n.jsxs)("div",{className:"border-t border-border/60 px-5 pb-5 pt-4",children:[(0,n.jsx)("p",{className:"font-sans text-sm leading-relaxed text-muted-foreground",children:a}),(0,n.jsxs)("div",{className:"mt-4 flex flex-wrap items-center gap-2",children:[(0,n.jsxs)("button",{type:"button",disabled:D,title:D?M.hints.aiNotConfigured:void 0,onClick:R,className:"inline-flex items-center gap-2 rounded-lg bg-[var(--amber)] px-3 py-2 font-sans text-sm font-medium text-[var(--amber-foreground)] transition-opacity duration-150 hover:opacity-90 disabled:cursor-not-allowed disabled:opacity-50 focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-2 focus-visible:ring-offset-background",children:[f?(0,n.jsx)(v.A,{size:16,className:"animate-spin shrink-0","aria-hidden":!0}):(0,n.jsx)(x.A,{size:15,className:"shrink-0","aria-hidden":!0}),f?l:i]}),$?(0,n.jsx)("button",{type:"button",onClick:R,disabled:f||!I,title:f||!I?M.hints.generationInProgress:void 0,className:"font-sans text-sm text-[var(--amber)] underline-offset-2 hover:underline focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring rounded-sm",children:m}):null]}),z||I?null:(0,n.jsx)("p",{className:"mt-2 font-sans text-xs text-muted-foreground",children:o}),$?(0,n.jsxs)("p",{className:"mt-3 font-sans text-sm text-error",role:"alert",children:[d," ",$]}):null,S?(0,n.jsxs)("div",{className:(0,u.cn)("prose prose-sm prose-panel dark:prose-invert max-w-none text-foreground prose-p:my-1 prose-p:leading-relaxed prose-headings:font-semibold prose-headings:my-2 prose-headings:text-sm prose-ul:my-1 prose-li:my-0.5 prose-ol:my-1 prose-code:text-[0.8em] prose-code:bg-muted prose-code:px-1 prose-code:py-0.5 prose-code:rounded prose-code:before:content-none prose-code:after:content-none prose-pre:bg-muted prose-pre:text-foreground prose-pre:text-xs prose-blockquote:border-l-[var(--amber)] prose-blockquote:text-muted-foreground prose-a:text-[var(--amber)] prose-a:no-underline hover:prose-a:underline prose-strong:text-foreground prose-strong:font-semibold","mt-4 border-t border-border/50 pt-4"),children:[(0,n.jsx)(w.oz,{remarkPlugins:[j.A],children:S}),f?(0,n.jsx)("span",{className:"ml-0.5 inline-block h-3.5 w-1 animate-pulse rounded-sm bg-[var(--amber)] align-middle","aria-hidden":!0}):null]}):null]})})})]})}let A=(0,r(73015).A)("library",[["path",{d:"m16 6 4 14",key:"ji33uf"}],["path",{d:"M12 6v14",key:"1n7gus"}],["path",{d:"M8 8v12",key:"1gg7y9"}],["path",{d:"M4 4v16",key:"6qkkli"}]]);function $({headingId:e,heading:t,emptyTitle:r,emptyBody:s,icon:a,actions:i}){return(0,n.jsxs)("section",{className:"rounded-xl border border-border bg-card p-5 shadow-sm sm:p-6","aria-labelledby":e,children:[(0,n.jsxs)("div",{className:"flex items-start gap-3",children:[(0,n.jsx)("span",{className:"flex h-8 w-8 shrink-0 items-center justify-center rounded-lg bg-[var(--amber-dim)] text-[var(--amber)]","aria-hidden":!0,children:a??(0,n.jsx)(A,{size:16,strokeWidth:1.75})}),(0,n.jsxs)("div",{children:[(0,n.jsx)("h2",{id:e,className:"font-sans text-xs font-semibold uppercase tracking-wide text-muted-foreground",children:t}),(0,n.jsx)("p",{className:"mt-2 font-sans font-medium text-foreground",children:r})]})]}),(0,n.jsx)("p",{className:"mt-4 font-sans text-sm leading-relaxed text-muted-foreground",children:s}),i?(0,n.jsx)("div",{className:"mt-4",children:i}):null]})}var C=r(21082),T=r(29696),E=r(65264);async function L(e=new Date){let t,r=e.toISOString().split("T")[0],n=((t=new Date).setHours(t.getHours()-24),t).toISOString(),s=[],a=0,i=0;try{try{let e=await (0,E.n)("/api/changes?op=list&limit=1000",{method:"GET",timeout:5e3});if(e?.events){let t=e.events,r=new Date(n);for(let e of t)if(new Date(e.ts)>=r){let t=e.path.split("/").pop()||e.path;s.push(t),"create"===e.op&&a++}}}catch(e){console.warn("[DailyEcho] Failed to fetch file changes:",e)}try{let e=await (0,E.n)("/api/ask-sessions",{method:"GET",timeout:5e3});if(Array.isArray(e)){let t=new Date(n);i=e.filter(e=>new Date(e.createdAt)>=t).length}}catch(e){console.warn("[DailyEcho] Failed to fetch sessions:",e)}let e="",t="";try{let t=localStorage.getItem("mindos-echo-daily-line");t&&(e=t)}catch(e){console.warn("[DailyEcho] Failed to read daily line:",e)}try{let e=localStorage.getItem("mindos-echo-growth-intent");e&&(t=e)}catch(e){console.warn("[DailyEcho] Failed to read growth intent:",e)}let o=a>0?`+${2*a} KB`:"same";return{date:r,fileNames:s,filesEdited:new Set(s).size,filesCreated:a,sessionCount:i,kbGrowth:o,dailyLine:e,growthIntent:t}}catch(e){return console.error("[DailyEcho] Aggregation failed:",e),{date:r,fileNames:[],filesEdited:0,filesCreated:0,sessionCount:0,kbGrowth:"error",dailyLine:"",growthIntent:""}}}async function I(e,t){let r=await fetch("/api/ask",{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({messages:[{role:"user",content:e}],maxSteps:5}),signal:t});if(!r.ok){let e=`HTTP ${r.status}`;try{let t=await r.json();e=t?.error?.message??t?.message??e}catch{}throw Error(e)}if(!r.body)throw Error("No response body");let n="";return await (0,k.m)(r.body,e=>{n=e.content??""},t),n}async function z(e,t){let r=(await I(e,t)).trim();if(r.startsWith("```")){let e=r.indexOf("\n");(r=r.slice(e+1)).endsWith("```")&&(r=r.slice(0,-3).trim())}return JSON.parse(r)}let M="reports",R=null;async function D(){return R||new Promise((e,t)=>{let r=indexedDB.open("mindos-daily-echo",1);r.onerror=()=>{t(Error(`Failed to open IndexedDB: ${r.error}`))},r.onupgradeneeded=e=>{let t=e.target.result;t.objectStoreNames.contains(M)||t.createObjectStore(M,{keyPath:"date"})},r.onsuccess=()=>{e(R=r.result)}})}async function P(e){let t=(await D()).transaction(M,"readwrite").objectStore(M);return new Promise((r,n)=>{let s=t.put(e);s.onerror=()=>{n(Error(`Failed to save report: ${s.error?.message||"Unknown error"}`))},s.onsuccess=()=>{r()}})}async function O(e){let t=(await D()).transaction(M,"readonly").objectStore(M);return new Promise((r,n)=>{let s=t.get(e);s.onerror=()=>{n(Error(`Failed to get report: ${s.error?.message||"Unknown error"}`))},s.onsuccess=()=>{r(s.result??null)}})}async function F(e=new Date,t,r=!1){var n,s,a;let i=e.toISOString().split("T")[0];if(!r)try{let e=await O(i);if(e)return e}catch{}let o=await L(e),l={filesEdited:o.filesEdited,filesCreated:o.filesCreated,sessionCount:o.sessionCount,kbGrowth:o.kbGrowth},d=[];if(o.fileNames.length>0)try{let e,r=((n={fileNames:o.fileNames,language:t.language}).language,e=n.fileNames.slice(0,20).join(", "),"zh"===n.language?`从以下文件名和编辑活动中提取用户今天的工作主题。
3
+ **Stream Error:** ${e}`}),c=null,m=!0}}}if(m&&t(g()),e)break}}finally{a.releaseLock()}let p=!1;for(let e of d.values())("running"===e.state||"pending"===e.state)&&(e.state="error",e.output=e.output??"Stream ended before tool completed",p=!0);return p&&t(g()),g()}},13229:(e,t,r)=>{"use strict";r.d(t,{A:()=>n});let n=(0,r(73015).A)("footprints",[["path",{d:"M4 16v-2.38C4 11.5 2.97 10.5 3 8c.03-2.72 1.49-6 4.5-6C9.37 2 10 3.8 10 5.5c0 3.11-2 5.66-2 8.68V16a2 2 0 1 1-4 0Z",key:"1dudjm"}],["path",{d:"M20 20v-2.38c0-2.12 1.03-3.12 1-5.62-.03-2.72-1.49-6-4.5-6C14.63 6 14 7.8 14 9.5c0 3.11 2 5.66 2 8.68V20a2 2 0 1 0 4 0Z",key:"l2t8xc"}],["path",{d:"M16 17h4",key:"1dejxt"}],["path",{d:"M4 13h4",key:"1bwh8b"}]])},29696:(e,t,r)=>{"use strict";r.d(t,{A:()=>n});let n=(0,r(73015).A)("zap",[["path",{d:"M4 14a1 1 0 0 1-.78-1.63l9.9-10.2a.5.5 0 0 1 .86.46l-1.92 6.02A1 1 0 0 0 13 10h7a1 1 0 0 1 .78 1.63l-9.9 10.2a.5.5 0 0 1-.86-.46l1.92-6.02A1 1 0 0 0 11 14z",key:"1xq2db"}]])},32959:(e,t,r)=>{"use strict";r.d(t,{A:()=>n});let n=(0,r(73015).A)("brain",[["path",{d:"M12 18V5",key:"adv99a"}],["path",{d:"M15 13a4.17 4.17 0 0 1-3-4 4.17 4.17 0 0 1-3 4",key:"1e3is1"}],["path",{d:"M17.598 6.5A3 3 0 1 0 12 5a3 3 0 1 0-5.598 1.5",key:"1gqd8o"}],["path",{d:"M17.997 5.125a4 4 0 0 1 2.526 5.77",key:"iwvgf7"}],["path",{d:"M18 18a4 4 0 0 0 2-7.464",key:"efp6ie"}],["path",{d:"M19.967 17.483A4 4 0 1 1 12 18a4 4 0 1 1-7.967-.517",key:"1gq6am"}],["path",{d:"M6 18a4 4 0 0 1-2-7.464",key:"k1g0md"}],["path",{d:"M6.003 5.125a4 4 0 0 0-2.526 5.77",key:"q97ue3"}]])},41052:(e,t,r)=>{"use strict";r.d(t,{default:()=>es});var n=r(66839),s=r(44223),a=r(13229),i=r(32959),o=r(55798),l=r(82907),d=r(76723),c=r(2073),u=r(58221),m=r(48234);function g({pageTitle:e,lead:t,titleId:r,children:s}){return(0,n.jsxs)("header",{className:"relative overflow-hidden rounded-xl border border-border bg-card px-5 pb-5 pt-6 shadow-sm sm:px-8 sm:pb-6 sm:pt-8",children:[(0,n.jsx)("div",{className:`absolute left-0 top-5 w-[3px] rounded-sm bg-[var(--amber)] sm:top-6 ${s?"bottom-[40%]":"bottom-5"}`,"aria-hidden":!0}),(0,n.jsxs)("div",{className:"relative pl-4 sm:pl-5",children:[(0,n.jsx)("h1",{id:r,className:"font-display text-2xl font-semibold tracking-tight text-foreground md:text-3xl",children:e}),(0,n.jsx)("p",{className:"mt-3 max-w-prose font-sans text-base leading-relaxed text-muted-foreground",children:t})]}),s]})}var h=r(18016),p=r.n(h),f=r(85130);function b({activeSegment:e}){let{t}=(0,c.Y)(),r=t.panels.echo,s=t.echoPages.segmentNavAria;return(0,n.jsx)("nav",{"aria-label":s,className:"mt-5 border-t border-border/50 pt-4 font-sans",children:(0,n.jsx)("ul",{className:"flex snap-x snap-mandatory gap-2 overflow-x-auto pb-0.5 [scrollbar-width:thin]",children:f.RS.map(t=>{let s=f.AI[t],{label:l,icon:d}=function(e,t){switch(e){case"imprint":return{label:t.imprintTitle,icon:(0,n.jsx)(a.A,{size:14})};case"growth":return{label:t.growthTitle,icon:(0,n.jsx)(i.A,{size:14})};case"self":return{label:t.selfTitle,icon:(0,n.jsx)(o.A,{size:14})}}}(t,r),c=t===e;return(0,n.jsx)("li",{className:"snap-start shrink-0",children:(0,n.jsxs)(p(),{href:s,"aria-current":c?"page":void 0,className:(0,u.cn)("inline-flex min-h-9 max-w-44 items-center gap-1.5 rounded-full border px-3 py-1.5 text-sm transition-[background-color,border-color] duration-150 focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-2 focus-visible:ring-offset-background",c?"border-[var(--amber)]/50 bg-[var(--amber-dim)]/50 font-medium text-foreground":"border-transparent bg-muted/25 text-muted-foreground hover:bg-muted/50 hover:text-foreground"),children:[(0,n.jsx)("span",{className:(0,u.cn)("shrink-0",c?"text-foreground":"text-muted-foreground"),"aria-hidden":!0,children:d}),(0,n.jsx)("span",{className:"truncate",children:l})]})},t)})})})}var x=r(19378),y=r(72615),v=r(44361),w=r(80016),j=r(74576),k=r(249),N=r(69604);function S({title:e,showLabel:t,hideLabel:r,hint:a,generateLabel:i,noAiHint:o,generatingLabel:l,errorPrefix:d,retryLabel:m,userPrompt:g}){let[h,p]=(0,s.useState)(!1),[f,b]=(0,s.useState)(!1),[S,A]=(0,s.useState)(""),[$,C]=(0,s.useState)(""),T=(0,s.useId)(),E=`${T}-btn`,L=(0,s.useRef)(null),{ready:I,loading:z}=function(){let[e,t]=(0,s.useState)(!1),[r,n]=(0,s.useState)(!0);return(0,s.useEffect)(()=>{let e=!1,r=()=>{fetch("/api/settings",{cache:"no-store"}).then(e=>e.json()).then(r=>{e||t(function(e){let t=e.ai?.providers??[],r=e.ai?.activeProvider,n=e.envOverrides??{},s=r?t.find(e=>e.id===r):t[0];if(!s)return!1;if(s.apiKey&&s.apiKey.length>0)return!0;let a=(0,N.rl)(s.protocol)?(0,N.Ux)(s.protocol):void 0;if(a&&n[a])return!0;let i=(0,N.rl)(s.protocol)?N.T_[s.protocol]:void 0;return!!i?.apiKeyFallback}(r))}).catch(()=>{e||t(!1)}).finally(()=>{e||n(!1)})};r();let s=()=>r();return window.addEventListener("mindos:settings-changed",s),()=>{e=!0,window.removeEventListener("mindos:settings-changed",s)}},[]),{ready:e,loading:r}}(),{t:M}=(0,c.Y)();(0,s.useEffect)(()=>()=>L.current?.abort(),[]);let R=(0,s.useCallback)(async()=>{L.current?.abort();let e=new AbortController;L.current=e,C(""),A(""),b(!0);try{let t=await fetch("/api/ask",{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({messages:[{role:"user",content:g}],maxSteps:16}),signal:e.signal});if(!t.ok){let e=`HTTP ${t.status}`;try{let r=await t.json();e=r?.error?.message??r?.message??e}catch{}throw Error(e)}if(!t.body)throw Error("No response body");await (0,k.m)(t.body,e=>{A(e.content??"")},e.signal)}catch(e){if(e instanceof Error&&"AbortError"===e.name)return;C(e instanceof Error?e.message:String(e))}finally{b(!1),L.current=null}},[g]),D=z||!I||f;return(0,n.jsxs)("div",{className:"mt-10 overflow-hidden rounded-xl border border-border bg-card shadow-sm transition-[border-color,box-shadow] duration-150 ease-out hover:border-[var(--amber)]/25 hover:shadow",children:[(0,n.jsxs)("button",{id:E,type:"button",className:"flex w-full items-center gap-3 px-5 py-4 text-left transition-[background-color] duration-200 hover:bg-muted/25 focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-2 focus-visible:ring-offset-background","aria-expanded":h,"aria-controls":T,onClick:()=>p(e=>!e),children:[(0,n.jsx)("span",{className:"flex h-8 w-8 shrink-0 items-center justify-center rounded-lg bg-[var(--amber-dim)] text-[var(--amber)]","aria-hidden":!0,children:(0,n.jsx)(x.A,{size:16,strokeWidth:1.75})}),(0,n.jsx)("span",{className:"flex-1 font-sans text-sm font-medium text-foreground",children:e}),(0,n.jsx)(y.A,{size:16,className:(0,u.cn)("shrink-0 text-muted-foreground transition-transform duration-200",h&&"rotate-180"),"aria-hidden":!0}),(0,n.jsx)("span",{className:"sr-only",children:h?r:t})]}),(0,n.jsx)("div",{id:T,role:"region","aria-labelledby":E,className:(0,u.cn)("grid transition-[grid-template-rows] duration-200 ease-out",h?"grid-rows-[1fr]":"grid-rows-[0fr]"),children:(0,n.jsx)("div",{className:"overflow-hidden",...!h&&{inert:!0},children:(0,n.jsxs)("div",{className:"border-t border-border/60 px-5 pb-5 pt-4",children:[(0,n.jsx)("p",{className:"font-sans text-sm leading-relaxed text-muted-foreground",children:a}),(0,n.jsxs)("div",{className:"mt-4 flex flex-wrap items-center gap-2",children:[(0,n.jsxs)("button",{type:"button",disabled:D,title:D?M.hints.aiNotConfigured:void 0,onClick:R,className:"inline-flex items-center gap-2 rounded-lg bg-[var(--amber)] px-3 py-2 font-sans text-sm font-medium text-[var(--amber-foreground)] transition-opacity duration-150 hover:opacity-90 disabled:cursor-not-allowed disabled:opacity-50 focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-2 focus-visible:ring-offset-background",children:[f?(0,n.jsx)(v.A,{size:16,className:"animate-spin shrink-0","aria-hidden":!0}):(0,n.jsx)(x.A,{size:15,className:"shrink-0","aria-hidden":!0}),f?l:i]}),$?(0,n.jsx)("button",{type:"button",onClick:R,disabled:f||!I,title:f||!I?M.hints.generationInProgress:void 0,className:"font-sans text-sm text-[var(--amber)] underline-offset-2 hover:underline focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring rounded-sm",children:m}):null]}),z||I?null:(0,n.jsx)("p",{className:"mt-2 font-sans text-xs text-muted-foreground",children:o}),$?(0,n.jsxs)("p",{className:"mt-3 font-sans text-sm text-error",role:"alert",children:[d," ",$]}):null,S?(0,n.jsxs)("div",{className:(0,u.cn)("prose prose-sm prose-panel dark:prose-invert max-w-none text-foreground prose-p:my-1 prose-p:leading-relaxed prose-headings:font-semibold prose-headings:my-2 prose-headings:text-sm prose-ul:my-1 prose-li:my-0.5 prose-ol:my-1 prose-code:text-[0.8em] prose-code:bg-muted prose-code:px-1 prose-code:py-0.5 prose-code:rounded prose-code:before:content-none prose-code:after:content-none prose-pre:bg-muted prose-pre:text-foreground prose-pre:text-xs prose-blockquote:border-l-[var(--amber)] prose-blockquote:text-muted-foreground prose-a:text-[var(--amber)] prose-a:no-underline hover:prose-a:underline prose-strong:text-foreground prose-strong:font-semibold","mt-4 border-t border-border/50 pt-4"),children:[(0,n.jsx)(w.oz,{remarkPlugins:[j.A],children:S}),f?(0,n.jsx)("span",{className:"ml-0.5 inline-block h-3.5 w-1 animate-pulse rounded-sm bg-[var(--amber)] align-middle","aria-hidden":!0}):null]}):null]})})})]})}let A=(0,r(73015).A)("library",[["path",{d:"m16 6 4 14",key:"ji33uf"}],["path",{d:"M12 6v14",key:"1n7gus"}],["path",{d:"M8 8v12",key:"1gg7y9"}],["path",{d:"M4 4v16",key:"6qkkli"}]]);function $({headingId:e,heading:t,emptyTitle:r,emptyBody:s,icon:a,actions:i}){return(0,n.jsxs)("section",{className:"rounded-xl border border-border bg-card p-5 shadow-sm sm:p-6","aria-labelledby":e,children:[(0,n.jsxs)("div",{className:"flex items-start gap-3",children:[(0,n.jsx)("span",{className:"flex h-8 w-8 shrink-0 items-center justify-center rounded-lg bg-[var(--amber-dim)] text-[var(--amber)]","aria-hidden":!0,children:a??(0,n.jsx)(A,{size:16,strokeWidth:1.75})}),(0,n.jsxs)("div",{children:[(0,n.jsx)("h2",{id:e,className:"font-sans text-xs font-semibold uppercase tracking-wide text-muted-foreground",children:t}),(0,n.jsx)("p",{className:"mt-2 font-sans font-medium text-foreground",children:r})]})]}),(0,n.jsx)("p",{className:"mt-4 font-sans text-sm leading-relaxed text-muted-foreground",children:s}),i?(0,n.jsx)("div",{className:"mt-4",children:i}):null]})}var C=r(21082),T=r(29696),E=r(65264);async function L(e=new Date){let t,r=e.toISOString().split("T")[0],n=((t=new Date).setHours(t.getHours()-24),t).toISOString(),s=[],a=0,i=0;try{try{let e=await (0,E.n)("/api/changes?op=list&limit=1000",{method:"GET",timeout:5e3});if(e?.events){let t=e.events,r=new Date(n);for(let e of t)if(new Date(e.ts)>=r){let t=e.path.split("/").pop()||e.path;s.push(t),"create"===e.op&&a++}}}catch(e){console.warn("[DailyEcho] Failed to fetch file changes:",e)}try{let e=await (0,E.n)("/api/ask-sessions",{method:"GET",timeout:5e3});if(Array.isArray(e)){let t=new Date(n);i=e.filter(e=>new Date(e.createdAt)>=t).length}}catch(e){console.warn("[DailyEcho] Failed to fetch sessions:",e)}let e="",t="";try{let t=localStorage.getItem("mindos-echo-daily-line");t&&(e=t)}catch(e){console.warn("[DailyEcho] Failed to read daily line:",e)}try{let e=localStorage.getItem("mindos-echo-growth-intent");e&&(t=e)}catch(e){console.warn("[DailyEcho] Failed to read growth intent:",e)}let o=a>0?`+${2*a} KB`:"same";return{date:r,fileNames:s,filesEdited:new Set(s).size,filesCreated:a,sessionCount:i,kbGrowth:o,dailyLine:e,growthIntent:t}}catch(e){return console.error("[DailyEcho] Aggregation failed:",e),{date:r,fileNames:[],filesEdited:0,filesCreated:0,sessionCount:0,kbGrowth:"error",dailyLine:"",growthIntent:""}}}async function I(e,t){let r=await fetch("/api/ask",{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({messages:[{role:"user",content:e}],maxSteps:5}),signal:t});if(!r.ok){let e=`HTTP ${r.status}`;try{let t=await r.json();e=t?.error?.message??t?.message??e}catch{}throw Error(e)}if(!r.body)throw Error("No response body");let n="";return await (0,k.m)(r.body,e=>{n=e.content??""},t),n}async function z(e,t){let r=(await I(e,t)).trim();if(r.startsWith("```")){let e=r.indexOf("\n");(r=r.slice(e+1)).endsWith("```")&&(r=r.slice(0,-3).trim())}return JSON.parse(r)}let M="reports",R=null;async function D(){return R||new Promise((e,t)=>{let r=indexedDB.open("mindos-daily-echo",1);r.onerror=()=>{t(Error(`Failed to open IndexedDB: ${r.error}`))},r.onupgradeneeded=e=>{let t=e.target.result;t.objectStoreNames.contains(M)||t.createObjectStore(M,{keyPath:"date"})},r.onsuccess=()=>{e(R=r.result)}})}async function P(e){let t=(await D()).transaction(M,"readwrite").objectStore(M);return new Promise((r,n)=>{let s=t.put(e);s.onerror=()=>{n(Error(`Failed to save report: ${s.error?.message||"Unknown error"}`))},s.onsuccess=()=>{r()}})}async function O(e){let t=(await D()).transaction(M,"readonly").objectStore(M);return new Promise((r,n)=>{let s=t.get(e);s.onerror=()=>{n(Error(`Failed to get report: ${s.error?.message||"Unknown error"}`))},s.onsuccess=()=>{r(s.result??null)}})}async function F(e=new Date,t,r=!1){var n,s,a;let i=e.toISOString().split("T")[0];if(!r)try{let e=await O(i);if(e)return e}catch{}let o=await L(e),l={filesEdited:o.filesEdited,filesCreated:o.filesCreated,sessionCount:o.sessionCount,kbGrowth:o.kbGrowth},d=[];if(o.fileNames.length>0)try{let e,r=((n={fileNames:o.fileNames,language:t.language}).language,e=n.fileNames.slice(0,20).join(", "),"zh"===n.language?`从以下文件名和编辑活动中提取用户今天的工作主题。
4
4
 
5
5
  文件列表:${e}${n.fileNames.length>20?` ...等 ${n.fileNames.length-20} 个文件`:""}
6
6
 
@@ -156,4 +156,4 @@ Return format (JSON array, JSON only):
156
156
  ${o}
157
157
  ---
158
158
 
159
- Write a short insight in ${n} as Markdown (under 220 words). Tone: warm, restrained, "quiet notebook"—not a hype coach. If the context is only generic empty copy, acknowledge that briefly and offer 2–3 reflection prompts instead of inventing files or facts. Do not claim you read their whole library. Prefer answering from this context; avoid unnecessary tool use.`},[r,e,i,a.factsHeading,z,a.dailyLineLabel,h,a.growthIntentLabel,f]),q="inline-flex items-center gap-1.5 rounded-lg border border-border bg-background px-4 py-2 font-sans text-sm font-medium text-foreground transition-[background-color,border-color] duration-150 hover:border-[var(--amber)]/25 hover:bg-[var(--amber-dim)]/50 focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-2 focus-visible:ring-offset-background",W="imprint"===e?a.imprintChatLabel:"growth"===e?a.growthChatLabel:a.selfChatLabel;return(0,n.jsxs)("article",{className:"mx-auto max-w-3xl px-4 py-6 sm:px-6 md:py-11","aria-labelledby":u,children:[(0,n.jsx)(g,{pageTitle:i,lead:o,titleId:u,children:(0,n.jsx)(b,{activeSegment:e})}),"imprint"===e&&(0,n.jsxs)(n.Fragment,{children:[(0,n.jsxs)("section",{className:`${er} mt-8`,children:[(0,n.jsx)("label",{htmlFor:"echo-daily-line",className:ee,children:a.dailyLineLabel}),(0,n.jsx)("textarea",{id:"echo-daily-line",value:h,onChange:e=>p(e.target.value),onBlur:M,rows:3,placeholder:a.dailyLinePlaceholder,className:et}),(0,n.jsxs)("p",{className:"mt-3 flex items-center gap-2 font-sans text-xs text-muted-foreground",children:[(0,n.jsx)("span",{children:a.dailySavedNote}),(0,n.jsx)("span",{className:"inline-flex items-center gap-1 text-[var(--success)]","aria-live":"polite",children:y?(0,n.jsxs)(n.Fragment,{children:[(0,n.jsx)(d.A,{size:14,"aria-hidden":!0})," ",a.savedFlash]}):null})]}),(0,n.jsxs)("div",{className:"mt-4 grid grid-cols-2 gap-3",children:[(0,n.jsx)(J,{onGenerated:O,onError:e=>console.error("[EchoImprint]",e),locale:{t:a}}),(0,n.jsx)(en,{label:W,onClick:D,disabled:!h.trim(),className:q})]})]}),(0,n.jsx)(V,{isOpen:A,report:k,isGenerating:T,onClose:()=>C(!1),onRegenerate:G,onContinueAgent:_,locale:{t:a}})]}),"growth"===e&&(0,n.jsxs)("section",{className:`${er} mt-8`,children:[(0,n.jsx)("label",{htmlFor:"echo-growth-intent",className:ee,children:a.growthIntentLabel}),(0,n.jsx)("textarea",{id:"echo-growth-intent",value:f,onChange:e=>x(e.target.value),onBlur:R,rows:4,placeholder:a.growthIntentPlaceholder,className:`${et} min-h-24`}),(0,n.jsxs)("p",{className:"mt-3 flex items-center gap-2 font-sans text-xs text-muted-foreground",children:[(0,n.jsx)("span",{children:a.growthSavedNote}),(0,n.jsx)("span",{className:"inline-flex items-center gap-1 text-[var(--success)]","aria-live":"polite",children:w?(0,n.jsxs)(n.Fragment,{children:[(0,n.jsx)(d.A,{size:14,"aria-hidden":!0})," ",a.savedFlash]}):null})]}),(0,n.jsx)("div",{className:"mt-4",children:(0,n.jsx)(en,{label:W,onClick:P,disabled:!f.trim(),className:q})})]}),"self"===e&&(0,n.jsx)("div",{className:"mt-8 space-y-6",children:(0,n.jsx)($,{headingId:l,heading:a.factsHeading,emptyTitle:z.title,emptyBody:z.body,icon:Q[e],actions:(0,n.jsx)(en,{label:W,onClick:P,disabled:!0,className:q})})}),"imprint"!==e&&(0,n.jsx)(S,{title:a.insightTitle,showLabel:a.insightShow,hideLabel:a.insightHide,hint:a.insightHint,generateLabel:a.generateInsight,noAiHint:a.generateInsightNoAi,generatingLabel:a.insightGenerating,errorPrefix:a.insightErrorPrefix,retryLabel:a.insightRetry,userPrompt:B})]})}},48234:(e,t,r)=>{"use strict";r.d(t,{KT:()=>c,NH:()=>d});var n=r(44223);let s={open:!1,initialMessage:"",source:"user",acpAgent:null},a=new Set;function i(){a.forEach(e=>e())}function o(e){return a.add(e),()=>{a.delete(e)}}function l(){return s}function d(e="",t="user",r=null){s={open:!0,initialMessage:e,source:t,acpAgent:r},i()}function c(){let e=(0,n.useSyncExternalStore)(o,l,l);return{open:e.open,initialMessage:e.initialMessage,source:e.source,acpAgent:e.acpAgent,openWith:(0,n.useCallback)((e,t="user",r=null)=>d(e,t,r),[]),close:(0,n.useCallback)(()=>void(s={open:!1,initialMessage:"",source:"user",acpAgent:null},i()),[])}}},55798:(e,t,r)=>{"use strict";r.d(t,{A:()=>n});let n=(0,r(73015).A)("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"}]])},58221:(e,t,r)=>{"use strict";r.d(t,{IX:()=>l,KW:()=>o,O0:()=>i,cn:()=>a,vr:()=>d});var n=r(10325),s=r(91498);function a(...e){return(0,s.QP)((0,n.$)(e))}function i(e){return e.split("/").map(encodeURIComponent).join("/")}function o(e,t){let r=Date.now()-e,n=Math.floor(r/6e4),s=Math.floor(r/36e5),a=Math.floor(r/864e5);return n<1?t.justNow:n<60?t.minutesAgo(n):s<24?t.hoursAgo(s):a<7?t.daysAgo(a):new Date(e).toLocaleDateString()}function l(e){let t=e.match(/^[\p{Emoji_Presentation}\p{Extended_Pictographic}]+/u);return t?.[0]??""}function d(e){return e.replace(/^[\p{Emoji_Presentation}\p{Extended_Pictographic}\s]+/u,"")||e}},65264:(e,t,r)=>{"use strict";r.d(t,{h:()=>n,n:()=>s});class n extends Error{constructor(e,t,r){super(e),this.name="ApiError",this.status=t,this.code=r}}async function s(e,t={}){let r,a,i,{timeout:o=3e4,signal:l,...d}=t;if((o>0||l)&&(r=new AbortController),o>0&&r&&(a=setTimeout(()=>{r.abort(Error(`Request timed out after ${Math.round(o/1e3)}s`))},o)),l&&r)if(l.aborted)r.abort();else{let e=()=>r?.abort();l.addEventListener("abort",e,{once:!0}),i=()=>{l.removeEventListener("abort",e)}}let c=r?.signal??l;try{let t=await fetch(e,{...d,signal:c});if(!t.ok){let e,r=`Request failed (${t.status})`;try{let n=await t.json();n?.error?.code&&n?.error?.message?(r=n.error.message,e=n.error.code):n?.error&&(r="string"==typeof n.error?n.error:n.error.message??r)}catch{}throw new n(r,t.status,e)}return await t.json()}finally{a&&clearTimeout(a),i&&i()}}},72799:(e,t,r)=>{"use strict";r.d(t,{A:()=>n});let n=(0,r(73015).A)("x",[["path",{d:"M18 6 6 18",key:"1bl5f8"}],["path",{d:"m6 6 12 12",key:"d8bk6v"}]])},82907:(e,t,r)=>{"use strict";r.d(t,{A:()=>n});let n=(0,r(73015).A)("arrow-up-right",[["path",{d:"M7 7h10v10",key:"1tivn9"}],["path",{d:"M7 17 17 7",key:"1vkiza"}]])},85130:(e,t,r)=>{"use strict";r.d(t,{AI:()=>s,RS:()=>n});let n=["imprint","growth","self"],s={imprint:"/echo/imprint",growth:"/echo/growth",self:"/echo/self"}},98479:(e,t,r)=>{"use strict";r.d(t,{A:()=>n});let n=(0,r(73015).A)("rotate-cw",[["path",{d:"M21 12a9 9 0 1 1-9-9c2.52 0 4.93 1 6.74 2.74L21 8",key:"1p45f6"}],["path",{d:"M21 3v5h-5",key:"1q7to0"}]])}},e=>{e.O(0,[5883,3940,2130,8225,7156,2073,5191,5018,2330,7358],()=>e(e.s=9970)),_N_E=e.O()}]);
159
+ Write a short insight in ${n} as Markdown (under 220 words). Tone: warm, restrained, "quiet notebook"—not a hype coach. If the context is only generic empty copy, acknowledge that briefly and offer 2–3 reflection prompts instead of inventing files or facts. Do not claim you read their whole library. Prefer answering from this context; avoid unnecessary tool use.`},[r,e,i,a.factsHeading,z,a.dailyLineLabel,h,a.growthIntentLabel,f]),q="inline-flex items-center gap-1.5 rounded-lg border border-border bg-background px-4 py-2 font-sans text-sm font-medium text-foreground transition-[background-color,border-color] duration-150 hover:border-[var(--amber)]/25 hover:bg-[var(--amber-dim)]/50 focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-2 focus-visible:ring-offset-background",W="imprint"===e?a.imprintChatLabel:"growth"===e?a.growthChatLabel:a.selfChatLabel;return(0,n.jsxs)("article",{className:"mx-auto max-w-3xl px-4 py-6 sm:px-6 md:py-11","aria-labelledby":u,children:[(0,n.jsx)(g,{pageTitle:i,lead:o,titleId:u,children:(0,n.jsx)(b,{activeSegment:e})}),"imprint"===e&&(0,n.jsxs)(n.Fragment,{children:[(0,n.jsxs)("section",{className:`${er} mt-8`,children:[(0,n.jsx)("label",{htmlFor:"echo-daily-line",className:ee,children:a.dailyLineLabel}),(0,n.jsx)("textarea",{id:"echo-daily-line",value:h,onChange:e=>p(e.target.value),onBlur:M,rows:3,placeholder:a.dailyLinePlaceholder,className:et}),(0,n.jsxs)("p",{className:"mt-3 flex items-center gap-2 font-sans text-xs text-muted-foreground",children:[(0,n.jsx)("span",{children:a.dailySavedNote}),(0,n.jsx)("span",{className:"inline-flex items-center gap-1 text-[var(--success)]","aria-live":"polite",children:y?(0,n.jsxs)(n.Fragment,{children:[(0,n.jsx)(d.A,{size:14,"aria-hidden":!0})," ",a.savedFlash]}):null})]}),(0,n.jsxs)("div",{className:"mt-4 grid grid-cols-2 gap-3",children:[(0,n.jsx)(J,{onGenerated:O,onError:e=>console.error("[EchoImprint]",e),locale:{t:a}}),(0,n.jsx)(en,{label:W,onClick:D,disabled:!h.trim(),className:q})]})]}),(0,n.jsx)(V,{isOpen:A,report:k,isGenerating:T,onClose:()=>C(!1),onRegenerate:G,onContinueAgent:_,locale:{t:a}})]}),"growth"===e&&(0,n.jsxs)("section",{className:`${er} mt-8`,children:[(0,n.jsx)("label",{htmlFor:"echo-growth-intent",className:ee,children:a.growthIntentLabel}),(0,n.jsx)("textarea",{id:"echo-growth-intent",value:f,onChange:e=>x(e.target.value),onBlur:R,rows:4,placeholder:a.growthIntentPlaceholder,className:`${et} min-h-24`}),(0,n.jsxs)("p",{className:"mt-3 flex items-center gap-2 font-sans text-xs text-muted-foreground",children:[(0,n.jsx)("span",{children:a.growthSavedNote}),(0,n.jsx)("span",{className:"inline-flex items-center gap-1 text-[var(--success)]","aria-live":"polite",children:w?(0,n.jsxs)(n.Fragment,{children:[(0,n.jsx)(d.A,{size:14,"aria-hidden":!0})," ",a.savedFlash]}):null})]}),(0,n.jsx)("div",{className:"mt-4",children:(0,n.jsx)(en,{label:W,onClick:P,disabled:!f.trim(),className:q})})]}),"self"===e&&(0,n.jsx)("div",{className:"mt-8 space-y-6",children:(0,n.jsx)($,{headingId:l,heading:a.factsHeading,emptyTitle:z.title,emptyBody:z.body,icon:Q[e],actions:(0,n.jsx)(en,{label:W,onClick:P,disabled:!0,className:q})})}),"imprint"!==e&&(0,n.jsx)(S,{title:a.insightTitle,showLabel:a.insightShow,hideLabel:a.insightHide,hint:a.insightHint,generateLabel:a.generateInsight,noAiHint:a.generateInsightNoAi,generatingLabel:a.insightGenerating,errorPrefix:a.insightErrorPrefix,retryLabel:a.insightRetry,userPrompt:B})]})}},48234:(e,t,r)=>{"use strict";r.d(t,{KT:()=>c,NH:()=>d});var n=r(44223);let s={open:!1,initialMessage:"",source:"user",acpAgent:null},a=new Set;function i(){a.forEach(e=>e())}function o(e){return a.add(e),()=>{a.delete(e)}}function l(){return s}function d(e="",t="user",r=null){s={open:!0,initialMessage:e,source:t,acpAgent:r},i()}function c(){let e=(0,n.useSyncExternalStore)(o,l,l);return{open:e.open,initialMessage:e.initialMessage,source:e.source,acpAgent:e.acpAgent,openWith:(0,n.useCallback)((e,t="user",r=null)=>d(e,t,r),[]),close:(0,n.useCallback)(()=>void(s={open:!1,initialMessage:"",source:"user",acpAgent:null},i()),[])}}},55798:(e,t,r)=>{"use strict";r.d(t,{A:()=>n});let n=(0,r(73015).A)("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"}]])},58221:(e,t,r)=>{"use strict";r.d(t,{IX:()=>l,KW:()=>o,O0:()=>i,cn:()=>a,vr:()=>d});var n=r(10325),s=r(91498);function a(...e){return(0,s.QP)((0,n.$)(e))}function i(e){return e.split("/").map(encodeURIComponent).join("/")}function o(e,t){let r=Date.now()-e,n=Math.floor(r/6e4),s=Math.floor(r/36e5),a=Math.floor(r/864e5);return n<1?t.justNow:n<60?t.minutesAgo(n):s<24?t.hoursAgo(s):a<7?t.daysAgo(a):new Date(e).toLocaleDateString()}function l(e){let t=e.match(/^[\p{Emoji_Presentation}\p{Extended_Pictographic}]+/u);return t?.[0]??""}function d(e){return e.replace(/^[\p{Emoji_Presentation}\p{Extended_Pictographic}\s]+/u,"")||e}},65264:(e,t,r)=>{"use strict";r.d(t,{h:()=>n,n:()=>s});class n extends Error{constructor(e,t,r){super(e),this.name="ApiError",this.status=t,this.code=r}}async function s(e,t={}){let r,a,i,{timeout:o=3e4,signal:l,...d}=t;if((o>0||l)&&(r=new AbortController),o>0&&r&&(a=setTimeout(()=>{r.abort(Error(`Request timed out after ${Math.round(o/1e3)}s`))},o)),l&&r)if(l.aborted)r.abort();else{let e=()=>r?.abort();l.addEventListener("abort",e,{once:!0}),i=()=>{l.removeEventListener("abort",e)}}let c=r?.signal??l;try{let t=await fetch(e,{...d,signal:c});if(!t.ok){let e,r=`Request failed (${t.status})`;try{let n=await t.json();n?.error?.code&&n?.error?.message?(r=n.error.message,e=n.error.code):n?.error&&(r="string"==typeof n.error?n.error:n.error.message??r)}catch{}throw new n(r,t.status,e)}return await t.json()}finally{a&&clearTimeout(a),i&&i()}}},72799:(e,t,r)=>{"use strict";r.d(t,{A:()=>n});let n=(0,r(73015).A)("x",[["path",{d:"M18 6 6 18",key:"1bl5f8"}],["path",{d:"m6 6 12 12",key:"d8bk6v"}]])},82907:(e,t,r)=>{"use strict";r.d(t,{A:()=>n});let n=(0,r(73015).A)("arrow-up-right",[["path",{d:"M7 7h10v10",key:"1tivn9"}],["path",{d:"M7 17 17 7",key:"1vkiza"}]])},85130:(e,t,r)=>{"use strict";r.d(t,{AI:()=>s,RS:()=>n});let n=["imprint","growth","self"],s={imprint:"/echo/imprint",growth:"/echo/growth",self:"/echo/self"}},86994:(e,t,r)=>{Promise.resolve().then(r.bind(r,41052))},98479:(e,t,r)=>{"use strict";r.d(t,{A:()=>n});let n=(0,r(73015).A)("rotate-cw",[["path",{d:"M21 12a9 9 0 1 1-9-9c2.52 0 4.93 1 6.74 2.74L21 8",key:"1p45f6"}],["path",{d:"M21 3v5h-5",key:"1q7to0"}]])}},e=>{e.O(0,[5883,3940,2130,8225,7156,2073,5191,5018,2330,7358],()=>e(e.s=86994)),_N_E=e.O()}]);
@@ -0,0 +1 @@
1
+ (self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[7538,9336],{5245:(e,n,s)=>{Promise.resolve().then(s.bind(s,23684))},23684:(e,n,s)=>{"use strict";s.d(n,{default:()=>c});var r=s(66839),i=s(44223);function c({href:e,label:n="Redirecting..."}){return(0,i.useEffect)(()=>{window.location.replace(e)},[e]),(0,r.jsx)("main",{className:"min-h-screen flex items-center justify-center px-6",children:(0,r.jsx)("a",{href:e,className:"text-sm underline-offset-4 hover:underline focus-visible:ring-2 focus-visible:ring-ring rounded-sm",style:{color:"var(--muted-foreground)"},children:n})})}}},e=>{e.O(0,[5018,2330,7358],()=>e(e.s=5245)),_N_E=e.O()}]);
@@ -1 +1 @@
1
- (self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[8039],{9392:(e,r,s)=>{"use strict";s.r(r),s.d(r,{default:()=>o});var t=s(66839),n=s(44223);function o({error:e,reset:r}){return(0,n.useEffect)(()=>{console.error("Page error:",e)},[e]),(0,t.jsxs)("div",{className:"flex flex-col items-center justify-center min-h-[50vh] gap-4 px-6",children:[(0,t.jsxs)("div",{className:"text-center",children:[(0,t.jsx)("h2",{className:"text-lg font-semibold text-foreground mb-2",children:"Something went wrong"}),(0,t.jsx)("p",{className:"text-sm text-muted-foreground max-w-md",children:e.message||"An unexpected error occurred while rendering this page."})]}),(0,t.jsx)("button",{onClick:r,className:"px-4 py-2 rounded-md text-sm font-medium transition-colors",style:{background:"var(--muted)",color:"var(--foreground)"},children:"Try again"})]})}},21726:(e,r,s)=>{Promise.resolve().then(s.bind(s,9392))}},e=>{e.O(0,[5018,2330,7358],()=>e(e.s=21726)),_N_E=e.O()}]);
1
+ (self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[8039],{9392:(e,r,s)=>{"use strict";s.r(r),s.d(r,{default:()=>o});var t=s(66839),n=s(44223);function o({error:e,reset:r}){return(0,n.useEffect)(()=>{console.error("Page error:",e)},[e]),(0,t.jsxs)("div",{className:"flex flex-col items-center justify-center min-h-[50vh] gap-4 px-6",children:[(0,t.jsxs)("div",{className:"text-center",children:[(0,t.jsx)("h2",{className:"text-lg font-semibold text-foreground mb-2",children:"Something went wrong"}),(0,t.jsx)("p",{className:"text-sm text-muted-foreground max-w-md",children:e.message||"An unexpected error occurred while rendering this page."})]}),(0,t.jsx)("button",{onClick:r,className:"px-4 py-2 rounded-md text-sm font-medium transition-colors",style:{background:"var(--muted)",color:"var(--foreground)"},children:"Try again"})]})}},95806:(e,r,s)=>{Promise.resolve().then(s.bind(s,9392))}},e=>{e.O(0,[5018,2330,7358],()=>e(e.s=95806)),_N_E=e.O()}]);
@@ -1,4 +1,4 @@
1
1
  (self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[5314],{23684:(e,t,a)=>{"use strict";a.d(t,{default:()=>s});var r=a(66839),n=a(44223);function s({href:e,label:t="Redirecting..."}){return(0,n.useEffect)(()=>{window.location.replace(e)},[e]),(0,r.jsx)("main",{className:"min-h-screen flex items-center justify-center px-6",children:(0,r.jsx)("a",{href:e,className:"text-sm underline-offset-4 hover:underline focus-visible:ring-2 focus-visible:ring-ring rounded-sm",style:{color:"var(--muted-foreground)"},children:t})})}},48234:(e,t,a)=>{"use strict";a.d(t,{KT:()=>d,NH:()=>o});var r=a(44223);let n={open:!1,initialMessage:"",source:"user",acpAgent:null},s=new Set;function i(){s.forEach(e=>e())}function l(e){return s.add(e),()=>{s.delete(e)}}function c(){return n}function o(e="",t="user",a=null){n={open:!0,initialMessage:e,source:t,acpAgent:a},i()}function d(){let e=(0,r.useSyncExternalStore)(l,c,c);return{open:e.open,initialMessage:e.initialMessage,source:e.source,acpAgent:e.acpAgent,openWith:(0,r.useCallback)((e,t="user",a=null)=>o(e,t,a),[]),close:(0,r.useCallback)(()=>void(n={open:!1,initialMessage:"",source:"user",acpAgent:null},i()),[])}}},50567:(e,t,a)=>{"use strict";a.d(t,{LD:()=>r,LZ:()=>n,qQ:()=>s});let r=[{id:"c1",icon:"\uD83D\uDC64",category:"memory-sync",scenario:"first-day"},{id:"c2",icon:"\uD83D\uDCE5",category:"knowledge-management",scenario:"daily"},{id:"c3",icon:"\uD83D\uDD04",category:"memory-sync",scenario:"project"},{id:"c4",icon:"\uD83D\uDD01",category:"experience-evolution",scenario:"daily"},{id:"c5",icon:"\uD83D\uDCA1",category:"auto-execute",scenario:"daily"},{id:"c6",icon:"\uD83D\uDE80",category:"auto-execute",scenario:"project"},{id:"c7",icon:"\uD83D\uDD0D",category:"knowledge-management",scenario:"project"},{id:"c8",icon:"\uD83E\uDD1D",category:"human-insights",scenario:"daily"},{id:"c9",icon:"\uD83D\uDEE1️",category:"audit-control",scenario:"advanced"}],n=["knowledge-management","memory-sync","auto-execute","experience-evolution","human-insights","audit-control"],s=["first-day","daily","project","advanced"]},55312:(e,t,a)=>{"use strict";a.d(t,{default:()=>o});var r=a(66839),n=a(44223),s=a(2073),i=a(50567),l=a(48234);function c({icon:e,image:t,title:a,description:s,prompt:i,tryItLabel:c}){let[o,d]=(0,n.useState)(!1);return(0,r.jsxs)("div",{className:"group flex flex-col gap-3 p-4 rounded-xl border border-border bg-card transition-all duration-150 hover:border-[var(--amber)]/30 hover:bg-muted/50",children:[t&&!o?(0,r.jsx)("div",{className:"w-full aspect-[16/9] rounded-lg overflow-hidden bg-muted",children:(0,r.jsx)("img",{src:t,alt:a,className:"w-full h-full object-cover",loading:"lazy",onError:()=>d(!0)})}):null,(0,r.jsxs)("div",{className:"flex items-start gap-3",children:[(0,r.jsx)("span",{className:"text-xl leading-none shrink-0 mt-0.5",suppressHydrationWarning:!0,children:e}),(0,r.jsxs)("div",{className:"flex-1 min-w-0",children:[(0,r.jsx)("h3",{className:"text-sm font-semibold truncate text-foreground",title:a,children:a}),(0,r.jsx)("p",{className:"text-xs leading-relaxed mt-1 line-clamp-2 text-muted-foreground",title:s,children:s})]})]}),(0,r.jsxs)("button",{onClick:()=>(0,l.NH)(i,"user"),className:"self-start inline-flex items-center gap-1.5 px-3 py-1.5 rounded-lg text-xs font-medium transition-all duration-150 hover:opacity-80 cursor-pointer bg-[var(--amber-dim)] text-[var(--amber-text)]",children:[c," →"]})]})}function o(){let{t:e}=(0,s.Y)(),t=e.explore,[a,l]=(0,n.useState)("all"),[o,u]=(0,n.useState)("all"),m=i.LD.filter(e=>("all"===a||e.category===a)&&("all"===o||e.scenario===o));return(0,r.jsxs)("div",{className:"content-width px-4 md:px-6 py-8 md:py-12",children:[(0,r.jsxs)("div",{className:"mb-8",children:[(0,r.jsxs)("div",{className:"flex items-center gap-2 mb-3",children:[(0,r.jsx)("div",{className:"w-1 h-5 rounded-full bg-[var(--amber)]"}),(0,r.jsx)("h1",{className:"text-2xl font-semibold tracking-tight text-foreground",children:t.title})]}),(0,r.jsx)("p",{className:"text-sm leading-relaxed text-muted-foreground pl-4",children:t.subtitle})]}),(0,r.jsxs)("div",{className:"space-y-3 mb-6",style:{paddingLeft:"1rem"},children:[(0,r.jsxs)("div",{className:"flex flex-wrap items-center gap-2",children:[(0,r.jsx)("span",{className:"text-2xs text-muted-foreground uppercase tracking-wider font-medium w-16 shrink-0",children:t.byCapability}),(0,r.jsx)(d,{label:t.all,active:"all"===a,onClick:()=>l("all")}),i.LZ.map(e=>(0,r.jsx)(d,{label:t.categories[e],active:a===e,onClick:()=>l(e)},e))]}),(0,r.jsxs)("div",{className:"flex flex-wrap items-center gap-2",children:[(0,r.jsx)("span",{className:"text-2xs text-muted-foreground uppercase tracking-wider font-medium w-16 shrink-0",children:t.byScenario}),(0,r.jsx)(d,{label:t.all,active:"all"===o,onClick:()=>u("all")}),i.qQ.map(e=>(0,r.jsx)(d,{label:t.scenarios[e],active:o===e,onClick:()=>u(e)},e))]})]}),(0,r.jsx)("div",{className:"grid grid-cols-1 sm:grid-cols-2 lg:grid-cols-3 gap-3",style:{paddingLeft:"1rem"},children:m.map(e=>{let a=t[e.id];return a?(0,r.jsx)(c,{icon:e.icon,image:e.image,title:a.title,description:a.desc,prompt:a.prompt,tryItLabel:t.tryIt},e.id):null})}),0===m.length&&(0,r.jsx)("p",{className:"text-sm text-muted-foreground text-center py-12",style:{paddingLeft:"1rem"},children:"No use cases match the current filters."})]})}function d({label:e,active:t,onClick:a}){return(0,r.jsx)("button",{onClick:a,className:`
2
2
  px-3 py-1.5 rounded-full text-xs font-medium transition-all duration-150
3
3
  ${t?"text-[var(--amber)] bg-[var(--amber-dim)]":"text-[var(--muted-foreground)] bg-[var(--muted)] hover:text-[var(--foreground)] hover:bg-[var(--muted)]/80"}
4
- `,children:e})}},58322:(e,t,a)=>{Promise.resolve().then(a.bind(a,23684)),Promise.resolve().then(a.bind(a,55312))},59029:(e,t,a)=>{"use strict";a.d(t,{v:()=>i});var r=a(44223);let n=e=>{let t,a=new Set,r=(e,r)=>{let n="function"==typeof e?e(t):e;if(!Object.is(n,t)){let e=t;t=(null!=r?r:"object"!=typeof n||null===n)?n:Object.assign({},t,n),a.forEach(a=>a(t,e))}},n=()=>t,s={setState:r,getState:n,getInitialState:()=>i,subscribe:e=>(a.add(e),()=>a.delete(e))},i=t=e(r,n,s);return s},s=e=>{let t=e?n(e):n,a=e=>(function(e,t=e=>e){let a=r.useSyncExternalStore(e.subscribe,r.useCallback(()=>t(e.getState()),[e,t]),r.useCallback(()=>t(e.getInitialState()),[e,t]));return r.useDebugValue(a),a})(t,e);return Object.assign(a,t),a},i=e=>e?s(e):s}},e=>{e.O(0,[2073,5018,2330,7358],()=>e(e.s=58322)),_N_E=e.O()}]);
4
+ `,children:e})}},59029:(e,t,a)=>{"use strict";a.d(t,{v:()=>i});var r=a(44223);let n=e=>{let t,a=new Set,r=(e,r)=>{let n="function"==typeof e?e(t):e;if(!Object.is(n,t)){let e=t;t=(null!=r?r:"object"!=typeof n||null===n)?n:Object.assign({},t,n),a.forEach(a=>a(t,e))}},n=()=>t,s={setState:r,getState:n,getInitialState:()=>i,subscribe:e=>(a.add(e),()=>a.delete(e))},i=t=e(r,n,s);return s},s=e=>{let t=e?n(e):n,a=e=>(function(e,t=e=>e){let a=r.useSyncExternalStore(e.subscribe,r.useCallback(()=>t(e.getState()),[e,t]),r.useCallback(()=>t(e.getInitialState()),[e,t]));return r.useDebugValue(a),a})(t,e);return Object.assign(a,t),a},i=e=>e?s(e):s},87346:(e,t,a)=>{Promise.resolve().then(a.bind(a,23684)),Promise.resolve().then(a.bind(a,55312))}},e=>{e.O(0,[2073,5018,2330,7358],()=>e(e.s=87346)),_N_E=e.O()}]);
@@ -0,0 +1 @@
1
+ (self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[4219],{62926:(e,r,n)=>{"use strict";n.r(r),n.d(r,{default:()=>t});var o=n(66839);function t({error:e,reset:r}){return(0,o.jsx)("html",{lang:"en",children:(0,o.jsx)("body",{style:{margin:0,fontFamily:"'IBM Plex Sans', system-ui, sans-serif",background:"var(--background, #131210)",color:"var(--foreground, #e8e4dc)"},children:(0,o.jsxs)("div",{style:{display:"flex",flexDirection:"column",alignItems:"center",justifyContent:"center",minHeight:"100vh",gap:"16px",padding:"24px",textAlign:"center"},children:[(0,o.jsx)("h2",{style:{fontSize:"18px",fontWeight:600,margin:0},children:"Something went wrong"}),(0,o.jsx)("p",{style:{fontSize:"14px",color:"var(--muted-foreground, #8a8275)",maxWidth:"400px",margin:0},children:e.message||"An unexpected error occurred. Please try again."}),(0,o.jsxs)("div",{style:{display:"flex",gap:"12px",marginTop:"8px"},children:[(0,o.jsx)("button",{onClick:r,style:{padding:"8px 16px",borderRadius:"6px",fontSize:"14px",fontWeight:500,background:"var(--card, #1c1a17)",color:"var(--foreground, #e8e4dc)",border:"1px solid var(--border, rgba(232,228,220,0.08))",cursor:"pointer"},children:"Try again"}),(0,o.jsx)("a",{href:"/setup",style:{padding:"8px 16px",borderRadius:"6px",fontSize:"14px",fontWeight:500,background:"var(--amber, #c8873a)",color:"var(--amber-foreground, #ffffff)",textDecoration:"none",cursor:"pointer"},children:"Go to Setup"})]})]})})})}},93652:(e,r,n)=>{Promise.resolve().then(n.bind(n,62926))}},e=>{e.O(0,[5018,2330,7358],()=>e(e.s=93652)),_N_E=e.O()}]);
@@ -1 +1 @@
1
- (self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[728],{6037:(e,t,s)=>{"use strict";s.d(t,{A:()=>r});let r=(0,s(73015).A)("rocket",[["path",{d:"M12 15v5s3.03-.55 4-2c1.08-1.62 0-5 0-5",key:"qeys4"}],["path",{d:"M4.5 16.5c-1.5 1.26-2 5-2 5s3.74-.5 5-2c.71-.84.7-2.13-.09-2.91a2.18 2.18 0 0 0-2.91-.09",key:"u4xsad"}],["path",{d:"M9 12a22 22 0 0 1 2-3.95A12.88 12.88 0 0 1 22 2c0 2.72-.78 7.5-6 11a22.4 22.4 0 0 1-4 2z",key:"676m9"}],["path",{d:"M9 12H4s.55-3.03 2-4c1.62-1.08 5 .05 5 .05",key:"92ym6u"}]])},12048:(e,t,s)=>{"use strict";s.d(t,{default:()=>v});var r=s(66839),a=s(44223),i=s(72615),l=s(76723),n=s(24336),c=s(88283),d=s(32959),o=s(6037),u=s(78610);let m=(0,s(73015).A)("keyboard",[["path",{d:"M10 8h.01",key:"1r9ogq"}],["path",{d:"M12 12h.01",key:"1mp3jc"}],["path",{d:"M14 8h.01",key:"1primd"}],["path",{d:"M16 12h.01",key:"1l6xoz"}],["path",{d:"M18 8h.01",key:"emo2bl"}],["path",{d:"M6 8h.01",key:"x9i8wu"}],["path",{d:"M7 16h10",key:"wp8him"}],["path",{d:"M8 12h.01",key:"czm47f"}],["rect",{width:"20",height:"16",x:"2",y:"4",rx:"2",key:"18n3k1"}]]);var x=s(97786),h=s(2073),p=s(46990),f=s(79455);function b({id:e,icon:t,title:s,defaultOpen:l=!1,children:n}){let[c,d]=(0,a.useState)(l);return(0,r.jsxs)("div",{id:e,className:"bg-card border border-border rounded-lg overflow-hidden scroll-mt-4",children:[(0,r.jsx)("h2",{className:"sr-only",children:s}),(0,r.jsxs)("button",{onClick:()=>d(e=>!e),className:"w-full flex items-center gap-3 px-5 py-4 text-left hover:bg-muted/50 transition-colors focus-visible:ring-2 focus-visible:ring-ring","aria-expanded":c,children:[(0,r.jsx)("div",{className:"flex items-center justify-center w-6 h-6 rounded-md bg-[var(--amber-subtle)] text-[var(--amber)] shrink-0",children:t}),(0,r.jsx)("span",{className:"text-[13px] font-semibold text-foreground flex-1 tracking-wide",children:s}),(0,r.jsx)(i.A,{size:16,className:`text-muted-foreground transition-transform duration-200 ${c?"rotate-180":""}`})]}),c&&(0,r.jsx)("div",{className:"px-5 pb-5 pt-0",children:(0,r.jsx)("div",{className:"border-t border-border pt-4",children:n})})]})}function g({step:e,title:t,desc:s}){return(0,r.jsxs)("div",{className:"flex gap-4 items-start",children:[(0,r.jsx)("div",{className:"shrink-0 w-8 h-8 rounded-full flex items-center justify-center text-sm font-bold font-mono bg-[var(--amber-dim)] text-[var(--amber)]",children:e}),(0,r.jsxs)("div",{className:"min-w-0",children:[(0,r.jsx)("p",{className:"text-sm font-medium text-foreground",children:t}),(0,r.jsx)("p",{className:"text-sm text-muted-foreground mt-0.5",children:s})]})]})}function y({text:e,copyLabel:t}){let[s,i]=(0,a.useState)(!1),c=(0,a.useCallback)(()=>{let t=e.replace(/^["“]|["”]$/g,"");(0,p.l)(t).then(e=>{e&&(i(!0),setTimeout(()=>i(!1),1500),f.oR.copy())})},[e]);return(0,r.jsxs)("div",{className:"group/prompt mt-2 flex items-start gap-2 bg-background border border-border rounded-md px-3 py-2",children:[(0,r.jsx)("p",{className:"flex-1 text-xs font-mono leading-relaxed text-[var(--amber)]",children:e}),(0,r.jsx)("button",{onClick:c,className:"shrink-0 p-1 rounded hover:bg-muted text-muted-foreground hover:text-foreground transition-colors opacity-0 group-hover/prompt:opacity-100 focus-visible:opacity-100","aria-label":t,title:t,children:s?(0,r.jsx)(l.A,{size:13,className:"text-success"}):(0,r.jsx)(n.A,{size:13})})]})}function k({q:e,a:t}){let[s,l]=(0,a.useState)(!1);return(0,r.jsxs)("div",{className:"border-b border-border last:border-b-0",children:[(0,r.jsxs)("button",{onClick:()=>l(e=>!e),className:"w-full flex items-center justify-between py-3 text-left focus-visible:ring-2 focus-visible:ring-ring","aria-expanded":s,children:[(0,r.jsx)("span",{className:"text-sm font-medium text-foreground pr-4",children:e}),(0,r.jsx)(i.A,{size:14,className:`shrink-0 text-muted-foreground transition-transform duration-200 ${s?"rotate-180":""}`})]}),s&&(0,r.jsx)("p",{className:"text-sm text-muted-foreground pb-3 leading-relaxed",children:t})]})}function j({keys:e,label:t}){return(0,r.jsxs)("div",{className:"flex items-center justify-between py-1.5",children:[(0,r.jsx)("span",{className:"text-sm text-foreground",children:t}),(0,r.jsx)("div",{className:"flex items-center gap-1",children:e.split(" ").map((e,t)=>(0,r.jsx)("kbd",{className:"px-1.5 py-0.5 text-xs rounded border border-border bg-muted text-muted-foreground font-mono min-w-[24px] text-center",children:e},t))})]})}function v(){let{t:e}=(0,h.Y)(),t=e.help,[s,i]=(0,a.useState)("⌘");(0,a.useEffect)(()=>{i(/Mac|iPhone|iPad/.test(navigator.userAgent)?"⌘":"Ctrl")},[]);let l=(0,a.useMemo)(()=>[{keys:`${s} K`,label:t.shortcuts.search},{keys:`${s} /`,label:t.shortcuts.askAI},{keys:`${s} ,`,label:t.shortcuts.settings},{keys:`${s} ?`,label:t.shortcuts.shortcutPanel},{keys:"E",label:t.shortcuts.editFile},{keys:`${s} S`,label:t.shortcuts.save},{keys:"Esc",label:t.shortcuts.closePanel},{keys:"@",label:t.shortcuts.attachFile}],[s,t.shortcuts]),n=(0,a.useMemo)(()=>[{id:"what-is",label:t.whatIs.title},{id:"concepts",label:t.concepts.title},{id:"quick-start",label:t.quickStart.title},{id:"agent-usage",label:t.agentUsage.title},{id:"shortcuts",label:t.shortcutsTitle},{id:"faq",label:t.faq.title}],[t]),[p,f]=(0,a.useState)("");return(0,a.useEffect)(()=>{let e=n.map(e=>e.id),t=new IntersectionObserver(e=>{for(let t of e)if(t.isIntersecting){f(t.target.id);break}},{rootMargin:"-10% 0px -80% 0px",threshold:0}),s=setTimeout(()=>{for(let s of e){let e=document.getElementById(s);e&&t.observe(e)}},100);return()=>{clearTimeout(s),t.disconnect()}},[n]),(0,r.jsxs)("div",{className:"flex justify-center gap-8 px-4 md:px-6 py-8 md:py-12",children:[(0,r.jsxs)("div",{className:"min-w-0 w-full",style:{maxWidth:"var(--content-width-override, var(--content-width, 780px))"},children:[(0,r.jsxs)("div",{className:"mb-8",children:[(0,r.jsxs)("div",{className:"flex items-center gap-2 mb-1",children:[(0,r.jsx)("div",{className:"w-1 h-6 rounded-full bg-[var(--amber)]"}),(0,r.jsx)("h1",{className:"text-2xl font-semibold tracking-tight text-foreground",children:t.title})]}),(0,r.jsx)("p",{className:"text-muted-foreground text-sm ml-3 mt-1",children:t.subtitle})]}),(0,r.jsxs)("div",{className:"space-y-3",children:[(0,r.jsx)(b,{id:"what-is",icon:(0,r.jsx)(c.A,{size:18}),title:t.whatIs.title,defaultOpen:!0,children:(0,r.jsx)("p",{className:"text-sm text-muted-foreground leading-relaxed",children:t.whatIs.body})}),(0,r.jsx)(b,{id:"concepts",icon:(0,r.jsx)(d.A,{size:18}),title:t.concepts.title,defaultOpen:!0,children:(0,r.jsxs)("div",{className:"space-y-4",children:[(0,r.jsxs)("div",{children:[(0,r.jsx)("p",{className:"text-sm font-medium text-foreground",children:t.concepts.spaceTitle}),(0,r.jsx)("p",{className:"text-sm text-muted-foreground mt-0.5",children:t.concepts.spaceDesc})]}),(0,r.jsxs)("div",{children:[(0,r.jsx)("p",{className:"text-sm font-medium text-foreground",children:t.concepts.instructionTitle}),(0,r.jsx)("p",{className:"text-sm text-muted-foreground mt-0.5",children:t.concepts.instructionDesc})]}),(0,r.jsxs)("div",{children:[(0,r.jsx)("p",{className:"text-sm font-medium text-foreground",children:t.concepts.skillTitle}),(0,r.jsx)("p",{className:"text-sm text-muted-foreground mt-0.5",children:t.concepts.skillDesc})]})]})}),(0,r.jsx)(b,{id:"quick-start",icon:(0,r.jsx)(o.A,{size:18}),title:t.quickStart.title,defaultOpen:!0,children:(0,r.jsxs)("div",{className:"space-y-4",children:[(0,r.jsx)(g,{step:1,title:t.quickStart.step1Title,desc:t.quickStart.step1Desc}),(0,r.jsx)(g,{step:2,title:t.quickStart.step2Title,desc:t.quickStart.step2Desc}),(0,r.jsx)(g,{step:3,title:t.quickStart.step3Title,desc:t.quickStart.step3Desc})]})}),(0,r.jsxs)(b,{id:"agent-usage",icon:(0,r.jsx)(u.A,{size:18}),title:t.agentUsage.title,defaultOpen:!0,children:[(0,r.jsx)("p",{className:"text-sm text-muted-foreground leading-relaxed mb-4",children:t.agentUsage.intro}),(0,r.jsx)("div",{className:"space-y-3",children:t.agentUsage.scenarios.map((e,s)=>{let a=e.prompt.split("\n");return(0,r.jsxs)("div",{className:"bg-muted/50 rounded-md px-4 py-3",children:[(0,r.jsxs)("div",{className:"flex items-center gap-2",children:[(0,r.jsx)("span",{className:"text-base leading-none",role:"img",suppressHydrationWarning:!0,children:e.emoji}),(0,r.jsx)("p",{className:"text-sm font-medium text-foreground",children:e.title})]}),(0,r.jsx)("p",{className:"text-sm text-muted-foreground mt-1",children:e.desc}),a.map((e,s)=>(0,r.jsx)(y,{text:e,copyLabel:t.agentUsage.copy},s))]},s)})}),(0,r.jsx)("p",{className:"text-xs text-muted-foreground mt-4",children:t.agentUsage.hint})]}),(0,r.jsx)(b,{id:"shortcuts",icon:(0,r.jsx)(m,{size:18}),title:t.shortcutsTitle,children:(0,r.jsx)("div",{className:"space-y-0",children:l.map(e=>(0,r.jsx)(j,{keys:e.keys,label:e.label},e.keys))})}),(0,r.jsx)(b,{id:"faq",icon:(0,r.jsx)(x.A,{size:18}),title:t.faq.title,children:(0,r.jsx)("div",{children:t.faq.items.map((e,t)=>(0,r.jsx)(k,{q:e.q,a:e.a},t))})})]})]}),(0,r.jsx)("nav",{className:"hidden xl:block shrink-0 w-40","aria-label":"Table of contents",children:(0,r.jsx)("div",{className:"sticky top-24",children:(0,r.jsx)("ul",{className:"space-y-1 border-l border-border pl-3",children:n.map(e=>(0,r.jsx)("li",{children:(0,r.jsx)("a",{href:`#${e.id}`,onClick:t=>{t.preventDefault(),document.getElementById(e.id)?.scrollIntoView({behavior:"smooth"})},className:`block text-xs py-1 transition-colors ${p===e.id?"text-[var(--amber)] font-medium border-l-2 border-[var(--amber)] -ml-[13px] pl-[11px]":"text-muted-foreground hover:text-foreground"}`,children:e.label})},e.id))})})})]})}},23684:(e,t,s)=>{"use strict";s.d(t,{default:()=>i});var r=s(66839),a=s(44223);function i({href:e,label:t="Redirecting..."}){return(0,a.useEffect)(()=>{window.location.replace(e)},[e]),(0,r.jsx)("main",{className:"min-h-screen flex items-center justify-center px-6",children:(0,r.jsx)("a",{href:e,className:"text-sm underline-offset-4 hover:underline focus-visible:ring-2 focus-visible:ring-ring rounded-sm",style:{color:"var(--muted-foreground)"},children:t})})}},24336:(e,t,s)=>{"use strict";s.d(t,{A:()=>r});let r=(0,s(73015).A)("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"}]])},32959:(e,t,s)=>{"use strict";s.d(t,{A:()=>r});let r=(0,s(73015).A)("brain",[["path",{d:"M12 18V5",key:"adv99a"}],["path",{d:"M15 13a4.17 4.17 0 0 1-3-4 4.17 4.17 0 0 1-3 4",key:"1e3is1"}],["path",{d:"M17.598 6.5A3 3 0 1 0 12 5a3 3 0 1 0-5.598 1.5",key:"1gqd8o"}],["path",{d:"M17.997 5.125a4 4 0 0 1 2.526 5.77",key:"iwvgf7"}],["path",{d:"M18 18a4 4 0 0 0 2-7.464",key:"efp6ie"}],["path",{d:"M19.967 17.483A4 4 0 1 1 12 18a4 4 0 1 1-7.967-.517",key:"1gq6am"}],["path",{d:"M6 18a4 4 0 0 1-2-7.464",key:"k1g0md"}],["path",{d:"M6.003 5.125a4 4 0 0 0-2.526 5.77",key:"q97ue3"}]])},46990:(e,t,s)=>{"use strict";async function r(e){if(navigator.clipboard?.writeText)try{return await navigator.clipboard.writeText(e),!0}catch{}try{let t=document.createElement("textarea");t.value=e,t.style.position="fixed",t.style.opacity="0",document.body.appendChild(t),t.select();let s=document.execCommand("copy");return document.body.removeChild(t),s}catch{return!1}}s.d(t,{l:()=>r})},59029:(e,t,s)=>{"use strict";s.d(t,{v:()=>l});var r=s(44223);let a=e=>{let t,s=new Set,r=(e,r)=>{let a="function"==typeof e?e(t):e;if(!Object.is(a,t)){let e=t;t=(null!=r?r:"object"!=typeof a||null===a)?a:Object.assign({},t,a),s.forEach(s=>s(t,e))}},a=()=>t,i={setState:r,getState:a,getInitialState:()=>l,subscribe:e=>(s.add(e),()=>s.delete(e))},l=t=e(r,a,i);return i},i=e=>{let t=e?a(e):a,s=e=>(function(e,t=e=>e){let s=r.useSyncExternalStore(e.subscribe,r.useCallback(()=>t(e.getState()),[e,t]),r.useCallback(()=>t(e.getInitialState()),[e,t]));return r.useDebugValue(s),s})(t,e);return Object.assign(s,t),s},l=e=>e?i(e):i},68238:(e,t,s)=>{Promise.resolve().then(s.bind(s,23684)),Promise.resolve().then(s.bind(s,12048))},72615:(e,t,s)=>{"use strict";s.d(t,{A:()=>r});let r=(0,s(73015).A)("chevron-down",[["path",{d:"m6 9 6 6 6-6",key:"qrunsl"}]])},73015:(e,t,s)=>{"use strict";s.d(t,{A:()=>c});var r=s(44223);let a=(...e)=>e.filter((e,t,s)=>!!e&&""!==e.trim()&&s.indexOf(e)===t).join(" ").trim(),i=e=>{let t=e.replace(/^([A-Z])|[\s-_]+(\w)/g,(e,t,s)=>s?s.toUpperCase():t.toLowerCase());return t.charAt(0).toUpperCase()+t.slice(1)};var l={xmlns:"http://www.w3.org/2000/svg",width:24,height:24,viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:2,strokeLinecap:"round",strokeLinejoin:"round"};let n=(0,r.forwardRef)(({color:e="currentColor",size:t=24,strokeWidth:s=2,absoluteStrokeWidth:i,className:n="",children:c,iconNode:d,...o},u)=>(0,r.createElement)("svg",{ref:u,...l,width:t,height:t,stroke:e,strokeWidth:i?24*Number(s)/Number(t):s,className:a("lucide",n),...!c&&!(e=>{for(let t in e)if(t.startsWith("aria-")||"role"===t||"title"===t)return!0;return!1})(o)&&{"aria-hidden":"true"},...o},[...d.map(([e,t])=>(0,r.createElement)(e,t)),...Array.isArray(c)?c:[c]])),c=(e,t)=>{let s=(0,r.forwardRef)(({className:s,...l},c)=>(0,r.createElement)(n,{ref:c,iconNode:t,className:a(`lucide-${i(e).replace(/([a-z0-9])([A-Z])/g,"$1-$2").toLowerCase()}`,`lucide-${e}`,s),...l}));return s.displayName=i(e),s}},76723:(e,t,s)=>{"use strict";s.d(t,{A:()=>r});let r=(0,s(73015).A)("check",[["path",{d:"M20 6 9 17l-5-5",key:"1gmf2c"}]])},78610:(e,t,s)=>{"use strict";s.d(t,{A:()=>r});let r=(0,s(73015).A)("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"}]])},79455:(e,t,s)=>{"use strict";s.d(t,{B1:()=>n,X8:()=>d,dV:()=>c,oR:()=>u});let r=[],a=[],i=0;function l(){for(let e of a)e()}function n(e){return a=[...a,e],()=>{a=a.filter(t=>t!==e)}}function c(){return r}function d(e){r=r.filter(t=>t.id!==e),l()}function o(e){let t=`toast-${++i}`,s={id:t,message:e.message,type:e.type??"info",duration:e.duration??2e3,action:e.action};r=[...r,s].slice(-3),l(),s.duration>0&&setTimeout(()=>d(t),s.duration)}function u(e,t){o({message:e,...t})}u.success=(e,t)=>o({message:e,type:"success",duration:t}),u.undo=(e,t,s)=>o({message:e,type:"info",duration:s?.duration??5e3,action:{label:s?.label??"Undo",onClick:t}}),u.error=(e,t)=>o({message:e,type:"error",duration:t}),u.copy=(e="Copied")=>o({message:e,type:"success",duration:1500})},88283:(e,t,s)=>{"use strict";s.d(t,{A:()=>r});let r=(0,s(73015).A)("book-open",[["path",{d:"M12 7v14",key:"1akyts"}],["path",{d:"M3 18a1 1 0 0 1-1-1V4a1 1 0 0 1 1-1h5a4 4 0 0 1 4 4 4 4 0 0 1 4-4h5a1 1 0 0 1 1 1v13a1 1 0 0 1-1 1h-6a3 3 0 0 0-3 3 3 3 0 0 0-3-3z",key:"ruj8y"}]])},97786:(e,t,s)=>{"use strict";s.d(t,{A:()=>r});let r=(0,s(73015).A)("circle-question-mark",[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["path",{d:"M9.09 9a3 3 0 0 1 5.83 1c0 2-3 3-3 3",key:"1u773s"}],["path",{d:"M12 17h.01",key:"p32p05"}]])}},e=>{e.O(0,[2073,5018,2330,7358],()=>e(e.s=68238)),_N_E=e.O()}]);
1
+ (self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[728],{6037:(e,t,s)=>{"use strict";s.d(t,{A:()=>r});let r=(0,s(73015).A)("rocket",[["path",{d:"M12 15v5s3.03-.55 4-2c1.08-1.62 0-5 0-5",key:"qeys4"}],["path",{d:"M4.5 16.5c-1.5 1.26-2 5-2 5s3.74-.5 5-2c.71-.84.7-2.13-.09-2.91a2.18 2.18 0 0 0-2.91-.09",key:"u4xsad"}],["path",{d:"M9 12a22 22 0 0 1 2-3.95A12.88 12.88 0 0 1 22 2c0 2.72-.78 7.5-6 11a22.4 22.4 0 0 1-4 2z",key:"676m9"}],["path",{d:"M9 12H4s.55-3.03 2-4c1.62-1.08 5 .05 5 .05",key:"92ym6u"}]])},12048:(e,t,s)=>{"use strict";s.d(t,{default:()=>v});var r=s(66839),a=s(44223),i=s(72615),l=s(76723),n=s(24336),c=s(88283),d=s(32959),o=s(6037),u=s(78610);let m=(0,s(73015).A)("keyboard",[["path",{d:"M10 8h.01",key:"1r9ogq"}],["path",{d:"M12 12h.01",key:"1mp3jc"}],["path",{d:"M14 8h.01",key:"1primd"}],["path",{d:"M16 12h.01",key:"1l6xoz"}],["path",{d:"M18 8h.01",key:"emo2bl"}],["path",{d:"M6 8h.01",key:"x9i8wu"}],["path",{d:"M7 16h10",key:"wp8him"}],["path",{d:"M8 12h.01",key:"czm47f"}],["rect",{width:"20",height:"16",x:"2",y:"4",rx:"2",key:"18n3k1"}]]);var x=s(97786),h=s(2073),p=s(46990),f=s(79455);function b({id:e,icon:t,title:s,defaultOpen:l=!1,children:n}){let[c,d]=(0,a.useState)(l);return(0,r.jsxs)("div",{id:e,className:"bg-card border border-border rounded-lg overflow-hidden scroll-mt-4",children:[(0,r.jsx)("h2",{className:"sr-only",children:s}),(0,r.jsxs)("button",{onClick:()=>d(e=>!e),className:"w-full flex items-center gap-3 px-5 py-4 text-left hover:bg-muted/50 transition-colors focus-visible:ring-2 focus-visible:ring-ring","aria-expanded":c,children:[(0,r.jsx)("div",{className:"flex items-center justify-center w-6 h-6 rounded-md bg-[var(--amber-subtle)] text-[var(--amber)] shrink-0",children:t}),(0,r.jsx)("span",{className:"text-[13px] font-semibold text-foreground flex-1 tracking-wide",children:s}),(0,r.jsx)(i.A,{size:16,className:`text-muted-foreground transition-transform duration-200 ${c?"rotate-180":""}`})]}),c&&(0,r.jsx)("div",{className:"px-5 pb-5 pt-0",children:(0,r.jsx)("div",{className:"border-t border-border pt-4",children:n})})]})}function g({step:e,title:t,desc:s}){return(0,r.jsxs)("div",{className:"flex gap-4 items-start",children:[(0,r.jsx)("div",{className:"shrink-0 w-8 h-8 rounded-full flex items-center justify-center text-sm font-bold font-mono bg-[var(--amber-dim)] text-[var(--amber)]",children:e}),(0,r.jsxs)("div",{className:"min-w-0",children:[(0,r.jsx)("p",{className:"text-sm font-medium text-foreground",children:t}),(0,r.jsx)("p",{className:"text-sm text-muted-foreground mt-0.5",children:s})]})]})}function y({text:e,copyLabel:t}){let[s,i]=(0,a.useState)(!1),c=(0,a.useCallback)(()=>{let t=e.replace(/^["“]|["”]$/g,"");(0,p.l)(t).then(e=>{e&&(i(!0),setTimeout(()=>i(!1),1500),f.oR.copy())})},[e]);return(0,r.jsxs)("div",{className:"group/prompt mt-2 flex items-start gap-2 bg-background border border-border rounded-md px-3 py-2",children:[(0,r.jsx)("p",{className:"flex-1 text-xs font-mono leading-relaxed text-[var(--amber)]",children:e}),(0,r.jsx)("button",{onClick:c,className:"shrink-0 p-1 rounded hover:bg-muted text-muted-foreground hover:text-foreground transition-colors opacity-0 group-hover/prompt:opacity-100 focus-visible:opacity-100","aria-label":t,title:t,children:s?(0,r.jsx)(l.A,{size:13,className:"text-success"}):(0,r.jsx)(n.A,{size:13})})]})}function k({q:e,a:t}){let[s,l]=(0,a.useState)(!1);return(0,r.jsxs)("div",{className:"border-b border-border last:border-b-0",children:[(0,r.jsxs)("button",{onClick:()=>l(e=>!e),className:"w-full flex items-center justify-between py-3 text-left focus-visible:ring-2 focus-visible:ring-ring","aria-expanded":s,children:[(0,r.jsx)("span",{className:"text-sm font-medium text-foreground pr-4",children:e}),(0,r.jsx)(i.A,{size:14,className:`shrink-0 text-muted-foreground transition-transform duration-200 ${s?"rotate-180":""}`})]}),s&&(0,r.jsx)("p",{className:"text-sm text-muted-foreground pb-3 leading-relaxed",children:t})]})}function j({keys:e,label:t}){return(0,r.jsxs)("div",{className:"flex items-center justify-between py-1.5",children:[(0,r.jsx)("span",{className:"text-sm text-foreground",children:t}),(0,r.jsx)("div",{className:"flex items-center gap-1",children:e.split(" ").map((e,t)=>(0,r.jsx)("kbd",{className:"px-1.5 py-0.5 text-xs rounded border border-border bg-muted text-muted-foreground font-mono min-w-[24px] text-center",children:e},t))})]})}function v(){let{t:e}=(0,h.Y)(),t=e.help,[s,i]=(0,a.useState)("⌘");(0,a.useEffect)(()=>{i(/Mac|iPhone|iPad/.test(navigator.userAgent)?"⌘":"Ctrl")},[]);let l=(0,a.useMemo)(()=>[{keys:`${s} K`,label:t.shortcuts.search},{keys:`${s} /`,label:t.shortcuts.askAI},{keys:`${s} ,`,label:t.shortcuts.settings},{keys:`${s} ?`,label:t.shortcuts.shortcutPanel},{keys:"E",label:t.shortcuts.editFile},{keys:`${s} S`,label:t.shortcuts.save},{keys:"Esc",label:t.shortcuts.closePanel},{keys:"@",label:t.shortcuts.attachFile}],[s,t.shortcuts]),n=(0,a.useMemo)(()=>[{id:"what-is",label:t.whatIs.title},{id:"concepts",label:t.concepts.title},{id:"quick-start",label:t.quickStart.title},{id:"agent-usage",label:t.agentUsage.title},{id:"shortcuts",label:t.shortcutsTitle},{id:"faq",label:t.faq.title}],[t]),[p,f]=(0,a.useState)("");return(0,a.useEffect)(()=>{let e=n.map(e=>e.id),t=new IntersectionObserver(e=>{for(let t of e)if(t.isIntersecting){f(t.target.id);break}},{rootMargin:"-10% 0px -80% 0px",threshold:0}),s=setTimeout(()=>{for(let s of e){let e=document.getElementById(s);e&&t.observe(e)}},100);return()=>{clearTimeout(s),t.disconnect()}},[n]),(0,r.jsxs)("div",{className:"flex justify-center gap-8 px-4 md:px-6 py-8 md:py-12",children:[(0,r.jsxs)("div",{className:"min-w-0 w-full",style:{maxWidth:"var(--content-width-override, var(--content-width, 780px))"},children:[(0,r.jsxs)("div",{className:"mb-8",children:[(0,r.jsxs)("div",{className:"flex items-center gap-2 mb-1",children:[(0,r.jsx)("div",{className:"w-1 h-6 rounded-full bg-[var(--amber)]"}),(0,r.jsx)("h1",{className:"text-2xl font-semibold tracking-tight text-foreground",children:t.title})]}),(0,r.jsx)("p",{className:"text-muted-foreground text-sm ml-3 mt-1",children:t.subtitle})]}),(0,r.jsxs)("div",{className:"space-y-3",children:[(0,r.jsx)(b,{id:"what-is",icon:(0,r.jsx)(c.A,{size:18}),title:t.whatIs.title,defaultOpen:!0,children:(0,r.jsx)("p",{className:"text-sm text-muted-foreground leading-relaxed",children:t.whatIs.body})}),(0,r.jsx)(b,{id:"concepts",icon:(0,r.jsx)(d.A,{size:18}),title:t.concepts.title,defaultOpen:!0,children:(0,r.jsxs)("div",{className:"space-y-4",children:[(0,r.jsxs)("div",{children:[(0,r.jsx)("p",{className:"text-sm font-medium text-foreground",children:t.concepts.spaceTitle}),(0,r.jsx)("p",{className:"text-sm text-muted-foreground mt-0.5",children:t.concepts.spaceDesc})]}),(0,r.jsxs)("div",{children:[(0,r.jsx)("p",{className:"text-sm font-medium text-foreground",children:t.concepts.instructionTitle}),(0,r.jsx)("p",{className:"text-sm text-muted-foreground mt-0.5",children:t.concepts.instructionDesc})]}),(0,r.jsxs)("div",{children:[(0,r.jsx)("p",{className:"text-sm font-medium text-foreground",children:t.concepts.skillTitle}),(0,r.jsx)("p",{className:"text-sm text-muted-foreground mt-0.5",children:t.concepts.skillDesc})]})]})}),(0,r.jsx)(b,{id:"quick-start",icon:(0,r.jsx)(o.A,{size:18}),title:t.quickStart.title,defaultOpen:!0,children:(0,r.jsxs)("div",{className:"space-y-4",children:[(0,r.jsx)(g,{step:1,title:t.quickStart.step1Title,desc:t.quickStart.step1Desc}),(0,r.jsx)(g,{step:2,title:t.quickStart.step2Title,desc:t.quickStart.step2Desc}),(0,r.jsx)(g,{step:3,title:t.quickStart.step3Title,desc:t.quickStart.step3Desc})]})}),(0,r.jsxs)(b,{id:"agent-usage",icon:(0,r.jsx)(u.A,{size:18}),title:t.agentUsage.title,defaultOpen:!0,children:[(0,r.jsx)("p",{className:"text-sm text-muted-foreground leading-relaxed mb-4",children:t.agentUsage.intro}),(0,r.jsx)("div",{className:"space-y-3",children:t.agentUsage.scenarios.map((e,s)=>{let a=e.prompt.split("\n");return(0,r.jsxs)("div",{className:"bg-muted/50 rounded-md px-4 py-3",children:[(0,r.jsxs)("div",{className:"flex items-center gap-2",children:[(0,r.jsx)("span",{className:"text-base leading-none",role:"img",suppressHydrationWarning:!0,children:e.emoji}),(0,r.jsx)("p",{className:"text-sm font-medium text-foreground",children:e.title})]}),(0,r.jsx)("p",{className:"text-sm text-muted-foreground mt-1",children:e.desc}),a.map((e,s)=>(0,r.jsx)(y,{text:e,copyLabel:t.agentUsage.copy},s))]},s)})}),(0,r.jsx)("p",{className:"text-xs text-muted-foreground mt-4",children:t.agentUsage.hint})]}),(0,r.jsx)(b,{id:"shortcuts",icon:(0,r.jsx)(m,{size:18}),title:t.shortcutsTitle,children:(0,r.jsx)("div",{className:"space-y-0",children:l.map(e=>(0,r.jsx)(j,{keys:e.keys,label:e.label},e.keys))})}),(0,r.jsx)(b,{id:"faq",icon:(0,r.jsx)(x.A,{size:18}),title:t.faq.title,children:(0,r.jsx)("div",{children:t.faq.items.map((e,t)=>(0,r.jsx)(k,{q:e.q,a:e.a},t))})})]})]}),(0,r.jsx)("nav",{className:"hidden xl:block shrink-0 w-40","aria-label":"Table of contents",children:(0,r.jsx)("div",{className:"sticky top-24",children:(0,r.jsx)("ul",{className:"space-y-1 border-l border-border pl-3",children:n.map(e=>(0,r.jsx)("li",{children:(0,r.jsx)("a",{href:`#${e.id}`,onClick:t=>{t.preventDefault(),document.getElementById(e.id)?.scrollIntoView({behavior:"smooth"})},className:`block text-xs py-1 transition-colors ${p===e.id?"text-[var(--amber)] font-medium border-l-2 border-[var(--amber)] -ml-[13px] pl-[11px]":"text-muted-foreground hover:text-foreground"}`,children:e.label})},e.id))})})})]})}},23684:(e,t,s)=>{"use strict";s.d(t,{default:()=>i});var r=s(66839),a=s(44223);function i({href:e,label:t="Redirecting..."}){return(0,a.useEffect)(()=>{window.location.replace(e)},[e]),(0,r.jsx)("main",{className:"min-h-screen flex items-center justify-center px-6",children:(0,r.jsx)("a",{href:e,className:"text-sm underline-offset-4 hover:underline focus-visible:ring-2 focus-visible:ring-ring rounded-sm",style:{color:"var(--muted-foreground)"},children:t})})}},24336:(e,t,s)=>{"use strict";s.d(t,{A:()=>r});let r=(0,s(73015).A)("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"}]])},32959:(e,t,s)=>{"use strict";s.d(t,{A:()=>r});let r=(0,s(73015).A)("brain",[["path",{d:"M12 18V5",key:"adv99a"}],["path",{d:"M15 13a4.17 4.17 0 0 1-3-4 4.17 4.17 0 0 1-3 4",key:"1e3is1"}],["path",{d:"M17.598 6.5A3 3 0 1 0 12 5a3 3 0 1 0-5.598 1.5",key:"1gqd8o"}],["path",{d:"M17.997 5.125a4 4 0 0 1 2.526 5.77",key:"iwvgf7"}],["path",{d:"M18 18a4 4 0 0 0 2-7.464",key:"efp6ie"}],["path",{d:"M19.967 17.483A4 4 0 1 1 12 18a4 4 0 1 1-7.967-.517",key:"1gq6am"}],["path",{d:"M6 18a4 4 0 0 1-2-7.464",key:"k1g0md"}],["path",{d:"M6.003 5.125a4 4 0 0 0-2.526 5.77",key:"q97ue3"}]])},46990:(e,t,s)=>{"use strict";async function r(e){if(navigator.clipboard?.writeText)try{return await navigator.clipboard.writeText(e),!0}catch{}try{let t=document.createElement("textarea");t.value=e,t.style.position="fixed",t.style.opacity="0",document.body.appendChild(t),t.select();let s=document.execCommand("copy");return document.body.removeChild(t),s}catch{return!1}}s.d(t,{l:()=>r})},56718:(e,t,s)=>{Promise.resolve().then(s.bind(s,23684)),Promise.resolve().then(s.bind(s,12048))},59029:(e,t,s)=>{"use strict";s.d(t,{v:()=>l});var r=s(44223);let a=e=>{let t,s=new Set,r=(e,r)=>{let a="function"==typeof e?e(t):e;if(!Object.is(a,t)){let e=t;t=(null!=r?r:"object"!=typeof a||null===a)?a:Object.assign({},t,a),s.forEach(s=>s(t,e))}},a=()=>t,i={setState:r,getState:a,getInitialState:()=>l,subscribe:e=>(s.add(e),()=>s.delete(e))},l=t=e(r,a,i);return i},i=e=>{let t=e?a(e):a,s=e=>(function(e,t=e=>e){let s=r.useSyncExternalStore(e.subscribe,r.useCallback(()=>t(e.getState()),[e,t]),r.useCallback(()=>t(e.getInitialState()),[e,t]));return r.useDebugValue(s),s})(t,e);return Object.assign(s,t),s},l=e=>e?i(e):i},72615:(e,t,s)=>{"use strict";s.d(t,{A:()=>r});let r=(0,s(73015).A)("chevron-down",[["path",{d:"m6 9 6 6 6-6",key:"qrunsl"}]])},73015:(e,t,s)=>{"use strict";s.d(t,{A:()=>c});var r=s(44223);let a=(...e)=>e.filter((e,t,s)=>!!e&&""!==e.trim()&&s.indexOf(e)===t).join(" ").trim(),i=e=>{let t=e.replace(/^([A-Z])|[\s-_]+(\w)/g,(e,t,s)=>s?s.toUpperCase():t.toLowerCase());return t.charAt(0).toUpperCase()+t.slice(1)};var l={xmlns:"http://www.w3.org/2000/svg",width:24,height:24,viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:2,strokeLinecap:"round",strokeLinejoin:"round"};let n=(0,r.forwardRef)(({color:e="currentColor",size:t=24,strokeWidth:s=2,absoluteStrokeWidth:i,className:n="",children:c,iconNode:d,...o},u)=>(0,r.createElement)("svg",{ref:u,...l,width:t,height:t,stroke:e,strokeWidth:i?24*Number(s)/Number(t):s,className:a("lucide",n),...!c&&!(e=>{for(let t in e)if(t.startsWith("aria-")||"role"===t||"title"===t)return!0;return!1})(o)&&{"aria-hidden":"true"},...o},[...d.map(([e,t])=>(0,r.createElement)(e,t)),...Array.isArray(c)?c:[c]])),c=(e,t)=>{let s=(0,r.forwardRef)(({className:s,...l},c)=>(0,r.createElement)(n,{ref:c,iconNode:t,className:a(`lucide-${i(e).replace(/([a-z0-9])([A-Z])/g,"$1-$2").toLowerCase()}`,`lucide-${e}`,s),...l}));return s.displayName=i(e),s}},76723:(e,t,s)=>{"use strict";s.d(t,{A:()=>r});let r=(0,s(73015).A)("check",[["path",{d:"M20 6 9 17l-5-5",key:"1gmf2c"}]])},78610:(e,t,s)=>{"use strict";s.d(t,{A:()=>r});let r=(0,s(73015).A)("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"}]])},79455:(e,t,s)=>{"use strict";s.d(t,{B1:()=>n,X8:()=>d,dV:()=>c,oR:()=>u});let r=[],a=[],i=0;function l(){for(let e of a)e()}function n(e){return a=[...a,e],()=>{a=a.filter(t=>t!==e)}}function c(){return r}function d(e){r=r.filter(t=>t.id!==e),l()}function o(e){let t=`toast-${++i}`,s={id:t,message:e.message,type:e.type??"info",duration:e.duration??2e3,action:e.action};r=[...r,s].slice(-3),l(),s.duration>0&&setTimeout(()=>d(t),s.duration)}function u(e,t){o({message:e,...t})}u.success=(e,t)=>o({message:e,type:"success",duration:t}),u.undo=(e,t,s)=>o({message:e,type:"info",duration:s?.duration??5e3,action:{label:s?.label??"Undo",onClick:t}}),u.error=(e,t)=>o({message:e,type:"error",duration:t}),u.copy=(e="Copied")=>o({message:e,type:"success",duration:1500})},88283:(e,t,s)=>{"use strict";s.d(t,{A:()=>r});let r=(0,s(73015).A)("book-open",[["path",{d:"M12 7v14",key:"1akyts"}],["path",{d:"M3 18a1 1 0 0 1-1-1V4a1 1 0 0 1 1-1h5a4 4 0 0 1 4 4 4 4 0 0 1 4-4h5a1 1 0 0 1 1 1v13a1 1 0 0 1-1 1h-6a3 3 0 0 0-3 3 3 3 0 0 0-3-3z",key:"ruj8y"}]])},97786:(e,t,s)=>{"use strict";s.d(t,{A:()=>r});let r=(0,s(73015).A)("circle-question-mark",[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["path",{d:"M9.09 9a3 3 0 0 1 5.83 1c0 2-3 3-3 3",key:"1u773s"}],["path",{d:"M12 17h.01",key:"p32p05"}]])}},e=>{e.O(0,[2073,5018,2330,7358],()=>e(e.s=56718)),_N_E=e.O()}]);
@@ -0,0 +1 @@
1
+ (self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[2474],{18191:(e,t,r)=>{Promise.resolve().then(r.bind(r,28915))},21082:(e,t,r)=>{"use strict";r.d(t,{A:()=>n});let n=(0,r(73015).A)("circle-alert",[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["line",{x1:"12",x2:"12",y1:"8",y2:"12",key:"1pkeuh"}],["line",{x1:"12",x2:"12.01",y1:"16",y2:"16",key:"4dfq90"}]])},28915:(e,t,r)=>{"use strict";r.r(t),r.d(t,{default:()=>v});var n=r(66839),s=r(44223),a=r(18016),i=r.n(a),o=r(71044),d=r(31606),l=r(74197),c=r(12361),u=r(21082),m=r(76723),x=r(72615),p=r(30401),g=r(2073),f=r(31156),h=r(30292);function v(){let{t:e}=(0,g.Y)(),[t,r]=(0,s.useState)(()=>(0,h.FB)()),{confirm:a,ConfirmDialog:u}=(0,f.G)(),m=(0,s.useCallback)(async()=>{await a({title:e.importHistory.clearConfirm,variant:"destructive",confirmLabel:e.importHistory.clearAll})&&((0,h.g4)(),r([]))},[e,a]),x=(0,s.useMemo)(()=>{let r=new Date,n=r.toDateString(),s=new Date(r);s.setDate(s.getDate()-1);let a=s.toDateString(),i=[],o="",d=[];for(let r of t){let t,s=new Date(r.timestamp),l=s.toDateString();(t=l===n?e.importHistory.today:l===a?e.importHistory.yesterday:s.toLocaleDateString(void 0,{month:"short",day:"numeric",year:"numeric"}))!==o?(d.length>0&&i.push({label:o,entries:d}),o=t,d=[r]):d.push(r)}return d.length>0&&i.push({label:o,entries:d}),i},[t,e]);return(0,n.jsxs)("div",{className:"max-w-2xl mx-auto px-4 py-8",children:[u,(0,n.jsxs)("div",{className:"flex items-center gap-3 mb-6",children:[(0,n.jsx)(i(),{href:"/wiki",className:"p-1.5 rounded-lg text-muted-foreground hover:text-foreground hover:bg-muted transition-colors",children:(0,n.jsx)(o.A,{size:16})}),(0,n.jsxs)("div",{className:"flex-1",children:[(0,n.jsx)("h1",{className:"text-lg font-semibold tracking-tight text-foreground",children:e.importHistory.title}),(0,n.jsx)("p",{className:"text-xs text-muted-foreground/60 mt-0.5",children:t.length>0?e.importHistory.recordCount(t.length):e.importHistory.emptyTitle})]}),t.length>0&&(0,n.jsxs)("button",{onClick:m,className:"flex items-center gap-1.5 text-xs text-muted-foreground hover:text-[var(--error)] transition-colors cursor-pointer",children:[(0,n.jsx)(d.A,{size:12}),e.importHistory.clearAll]})]}),t.length>0&&(0,n.jsxs)("div",{className:"flex items-start gap-2 px-3 py-2.5 mb-6 rounded-lg bg-muted/30 border border-border/30",children:[(0,n.jsx)(l.A,{size:13,className:"text-muted-foreground/50 mt-0.5 shrink-0"}),(0,n.jsx)("p",{className:"text-2xs text-muted-foreground/60",children:e.importHistory.processedArchive})]}),0===t.length&&(0,n.jsxs)("div",{className:"flex flex-col items-center gap-3 py-16 text-center",children:[(0,n.jsx)(c.A,{size:32,className:"text-muted-foreground/15"}),(0,n.jsx)("p",{className:"text-sm text-muted-foreground/60",children:e.importHistory.emptyTitle}),(0,n.jsx)("p",{className:"text-xs text-muted-foreground/40",children:e.importHistory.emptyDesc})]}),(0,n.jsx)("div",{className:"space-y-6",children:x.map(e=>(0,n.jsxs)("div",{children:[(0,n.jsx)("h2",{className:"text-2xs font-medium text-muted-foreground/50 uppercase tracking-wider mb-2",children:e.label}),(0,n.jsx)("div",{className:"space-y-2",children:e.entries.map(e=>(0,n.jsx)(b,{entry:e},e.id))})]},e.label))})]})}function b({entry:e}){let{t}=(0,g.Y)(),[r,a]=(0,s.useState)(!1),i="undone"===e.status,o=function(e){switch(e){case"drag-drop":return"Drag & Drop";case"inbox-organize":return"Inbox";case"import-modal":return"Import";case"plugin":return"Plugin";case"upload":return"Upload";default:return null}}(e.source),d=e.durationMs?function(e){let t=Math.round(e/1e3);if(t<60)return`${t}s`;let r=Math.floor(t/60),n=t%60;return`${r}m${n>0?`${n}s`:""}`}(e.durationMs):null,l=new Date(e.timestamp).toLocaleTimeString(void 0,{hour:"2-digit",minute:"2-digit"}),c=e.files.filter(e=>e.ok&&!e.undone).length,f=e.files.length;return(0,n.jsxs)("div",{className:"rounded-xl border border-border/40 overflow-hidden hover:border-border/60 transition-colors",children:[(0,n.jsxs)("button",{type:"button",onClick:()=>a(e=>!e),className:"w-full flex items-start gap-3 px-4 py-3 text-left hover:bg-muted/20 transition-colors",children:[i?(0,n.jsx)(u.A,{size:14,className:"text-muted-foreground/40 mt-0.5 shrink-0"}):(0,n.jsx)(m.A,{size:14,className:"text-success/70 mt-0.5 shrink-0"}),(0,n.jsxs)("div",{className:"flex-1 min-w-0",children:[(0,n.jsx)("div",{className:`text-sm ${i?"text-muted-foreground/50 line-through":"text-foreground/90"}`,children:1===e.sourceFiles.length?e.sourceFiles[0]:`${e.sourceFiles.length} files`}),(0,n.jsxs)("div",{className:"flex items-center gap-2 mt-1 flex-wrap",children:[o&&(0,n.jsx)("span",{className:"text-2xs px-1.5 py-0.5 rounded bg-muted/60 text-muted-foreground/60",children:o}),f>0&&(0,n.jsx)("span",{className:"text-2xs text-muted-foreground/40",children:t.importHistory.changesCount(c,f)}),d&&(0,n.jsx)("span",{className:"text-2xs text-muted-foreground/40",children:d})]})]}),(0,n.jsxs)("div",{className:"flex items-center gap-2 shrink-0",children:[(0,n.jsx)("span",{className:"text-2xs text-muted-foreground/40 tabular-nums",children:l}),f>0&&(0,n.jsx)(x.A,{size:12,className:`text-muted-foreground/30 transition-transform duration-150 ${r?"rotate-180":""}`})]})]}),r&&f>0&&(0,n.jsxs)("div",{className:"border-t border-border/20 px-4 py-2 space-y-1",children:[e.sourceFiles.length>1&&(0,n.jsxs)("div",{className:"mb-2",children:[(0,n.jsx)("span",{className:"text-2xs font-medium text-muted-foreground/50 uppercase tracking-wider",children:t.importHistory.sourceLabel}),(0,n.jsx)("div",{className:"mt-1 space-y-0.5",children:e.sourceFiles.map((e,t)=>(0,n.jsxs)("div",{className:"flex items-center gap-2 text-2xs text-foreground/60",children:[(0,n.jsx)(p.A,{size:10,className:"text-muted-foreground/40 shrink-0"}),(0,n.jsx)("span",{className:"truncate",children:e})]},t))})]}),e.files.map((e,t)=>(e.path.split("/").pop()??e.path,(0,n.jsxs)("div",{className:`flex items-center gap-2 py-1 text-2xs ${e.undone?"opacity-40":""}`,children:[(0,n.jsx)("span",{className:`w-1.5 h-1.5 rounded-full shrink-0 ${e.ok&&!e.undone?"bg-success/60":e.undone?"bg-muted-foreground/30":"bg-[var(--error)]/50"}`}),(0,n.jsx)("span",{className:`truncate flex-1 ${e.undone?"line-through text-muted-foreground":"text-foreground/70"}`,children:e.path}),(0,n.jsx)("span",{className:"text-muted-foreground/40 shrink-0",children:e.undone?"undone":"create"===e.action?"created":"update"===e.action?"updated":e.action})]},`${e.path}-${t}`)))]})]})}},30292:(e,t,r)=>{"use strict";r.d(t,{D4:()=>x,FB:()=>u,W8:()=>p,g4:()=>g,jQ:()=>h});let n="mindos:organize-history",s=new Set(["create","update","unknown"]),a=new Set(["completed","partial","undone"]),i=new Set(["upload","drag-drop","inbox-organize","import-modal","plugin","web-clipper","conversation"]);function o(e){return"object"==typeof e&&null!==e&&!Array.isArray(e)}function d(e){return o(e)&&"string"==typeof e.path&&"boolean"==typeof e.ok&&"string"==typeof e.action&&s.has(e.action)&&(void 0===e.undone||"boolean"==typeof e.undone)}function l(e){return o(e)&&"string"==typeof e.id&&Number.isFinite(e.timestamp)&&Array.isArray(e.sourceFiles)&&e.sourceFiles.every(e=>"string"==typeof e)&&Array.isArray(e.files)&&e.files.every(d)&&"string"==typeof e.status&&a.has(e.status)&&(void 0===e.source||"string"==typeof e.source&&i.has(e.source))&&(void 0===e.durationMs||Number.isFinite(e.durationMs))}function c(e){return Array.isArray(e)?e.filter(l).slice(0,50):[]}function u(){try{let e=localStorage.getItem(n);if(!e)return[];return c(JSON.parse(e))}catch{return[]}}function m(e){try{localStorage.setItem(n,JSON.stringify(c(e)))}catch{}}function x(e){let t=u();t.unshift(e);let r=t.slice(0,50);return m(r),r}function p(e,t){let r=u(),n=r.findIndex(t=>t.id===e);return n>=0&&(r[n]={...r[n],...t},m(r)),r}function g(){try{localStorage.removeItem(n)}catch{}}let f=0;function h(){return`org-${Date.now()}-${++f}`}},31156:(e,t,r)=>{"use strict";r.d(t,{G:()=>z});var n=r(66839),s=r(44223),a=r(64948),i=r(49925),o=r(53499),d=r(65637),l=r(21073),c=r(52229),u=r(31349),m=r(58221),x=r(47934);let p=(0,r(61549).F)("group/button inline-flex shrink-0 items-center justify-center rounded-lg border border-transparent bg-clip-padding text-sm font-medium whitespace-nowrap transition-all outline-none select-none focus-visible:border-ring focus-visible:ring-3 focus-visible:ring-ring/50 disabled:pointer-events-none disabled:opacity-50 aria-invalid:border-destructive aria-invalid:ring-3 aria-invalid:ring-destructive/20 dark:aria-invalid:border-destructive/50 dark:aria-invalid:ring-destructive/40 [&_svg]:pointer-events-none [&_svg]:shrink-0 [&_svg:not([class*='size-'])]:size-4",{variants:{variant:{default:"bg-primary text-primary-foreground [a]:hover:bg-primary/80",outline:"border-border bg-background hover:bg-muted hover:text-foreground aria-expanded:bg-muted aria-expanded:text-foreground dark:border-input dark:bg-input/30 dark:hover:bg-input/50",secondary:"bg-secondary text-secondary-foreground hover:bg-secondary/80 aria-expanded:bg-secondary aria-expanded:text-secondary-foreground",ghost:"hover:bg-muted hover:text-foreground aria-expanded:bg-muted aria-expanded:text-foreground dark:hover:bg-muted/50",destructive:"bg-destructive/10 text-destructive hover:bg-destructive/20 focus-visible:border-destructive/40 focus-visible:ring-destructive/20 dark:bg-destructive/20 dark:hover:bg-destructive/30 dark:focus-visible:ring-destructive/40",link:"text-primary underline-offset-4 hover:underline"},size:{default:"h-8 gap-1.5 px-2.5 has-data-[icon=inline-end]:pr-2 has-data-[icon=inline-start]:pl-2",xs:"h-6 gap-1 rounded-[min(var(--radius-md),10px)] px-2 text-xs in-data-[slot=button-group]:rounded-lg has-data-[icon=inline-end]:pr-1.5 has-data-[icon=inline-start]:pl-1.5 [&_svg:not([class*='size-'])]:size-3",sm:"h-7 gap-1 rounded-[min(var(--radius-md),12px)] px-2.5 text-[0.8rem] in-data-[slot=button-group]:rounded-lg has-data-[icon=inline-end]:pr-1.5 has-data-[icon=inline-start]:pl-1.5 [&_svg:not([class*='size-'])]:size-3.5",lg:"h-9 gap-1.5 px-2.5 has-data-[icon=inline-end]:pr-3 has-data-[icon=inline-start]:pl-3",icon:"size-8","icon-xs":"size-6 rounded-[min(var(--radius-md),10px)] in-data-[slot=button-group]:rounded-lg [&_svg:not([class*='size-'])]:size-3","icon-sm":"size-7 rounded-[min(var(--radius-md),12px)] in-data-[slot=button-group]:rounded-lg","icon-lg":"size-9"}},defaultVariants:{variant:"default",size:"default"}});function g({className:e,variant:t="default",size:r="default",...s}){return(0,n.jsx)(x.$,{"data-slot":"button",className:(0,m.cn)(p({variant:t,size:r,className:e})),...s})}var f=r(72799);function h({...e}){return(0,n.jsx)(a.D,{"data-slot":"dialog",...e})}function v({...e}){return(0,n.jsx)(i.Z,{"data-slot":"dialog-portal",...e})}function b({className:e,...t}){return(0,n.jsx)(o.X,{"data-slot":"dialog-overlay",className:(0,m.cn)("fixed inset-0 isolate z-50 overlay-backdrop duration-100 data-open:animate-in data-open:fade-in-0 data-closed:animate-out data-closed:fade-out-0",e),...t})}function y({className:e,children:t,showCloseButton:r=!0,...s}){return(0,n.jsxs)(v,{children:[(0,n.jsx)(b,{}),(0,n.jsxs)(d.h,{"data-slot":"dialog-content",className:(0,m.cn)("fixed top-1/2 left-1/2 z-50 grid w-full max-w-[calc(100%-2rem)] -translate-x-1/2 -translate-y-1/2 gap-4 rounded-xl bg-background p-4 text-sm ring-1 ring-foreground/10 duration-100 outline-none sm:max-w-sm data-open:animate-in data-open:fade-in-0 data-open:zoom-in-95 data-closed:animate-out data-closed:fade-out-0 data-closed:zoom-out-95",e),...s,children:[t,r&&(0,n.jsxs)(l.H,{"data-slot":"dialog-close",render:(0,n.jsx)(g,{variant:"ghost",className:"absolute top-2 right-2",size:"icon-sm"}),children:[(0,n.jsx)(f.A,{}),(0,n.jsx)("span",{className:"sr-only",children:"Close"})]})]})]})}function j({className:e,...t}){return(0,n.jsx)("div",{"data-slot":"dialog-header",className:(0,m.cn)("flex flex-col gap-2",e),...t})}function N({className:e,showCloseButton:t=!1,children:r,...s}){return(0,n.jsxs)("div",{"data-slot":"dialog-footer",className:(0,m.cn)("-mx-4 -mb-4 flex flex-col-reverse gap-2 rounded-b-xl border-t bg-muted/50 p-4 sm:flex-row sm:justify-end",e),...s,children:[r,t&&(0,n.jsx)(l.H,{render:(0,n.jsx)(g,{variant:"outline"}),children:"Close"})]})}function k({className:e,...t}){return(0,n.jsx)(c.L,{"data-slot":"dialog-title",className:(0,m.cn)("text-base leading-none font-medium",e),...t})}function w({className:e,...t}){return(0,n.jsx)(u.r,{"data-slot":"dialog-description",className:(0,m.cn)("text-sm text-muted-foreground *:[a]:underline *:[a]:underline-offset-3 *:[a]:hover:text-foreground",e),...t})}function z(){let[e,t]=(0,s.useState)(!1),[r,a]=(0,s.useState)({title:""}),i=(0,s.useRef)(null),o=(0,s.useCallback)(e=>(a(e),t(!0),new Promise(e=>{i.current=e})),[]),d=(0,s.useCallback)(e=>{t(!1),i.current?.(e),i.current=null},[]);return{confirm:o,ConfirmDialog:(0,n.jsx)(h,{open:e,onOpenChange:e=>{e||d(!1)},children:(0,n.jsxs)(y,{showCloseButton:!1,className:"sm:max-w-[400px]",children:[(0,n.jsxs)(j,{children:[(0,n.jsx)(k,{children:r.title}),r.description&&(0,n.jsx)(w,{children:r.description})]}),(0,n.jsxs)(N,{children:[(0,n.jsx)(g,{variant:"outline",onClick:()=>d(!1),children:r.cancelLabel??"Cancel"}),(0,n.jsx)(g,{variant:"destructive"===r.variant?"destructive":"default",onClick:()=>d(!0),children:r.confirmLabel??"Confirm"})]})]})})}}},58221:(e,t,r)=>{"use strict";r.d(t,{IX:()=>d,KW:()=>o,O0:()=>i,cn:()=>a,vr:()=>l});var n=r(10325),s=r(91498);function a(...e){return(0,s.QP)((0,n.$)(e))}function i(e){return e.split("/").map(encodeURIComponent).join("/")}function o(e,t){let r=Date.now()-e,n=Math.floor(r/6e4),s=Math.floor(r/36e5),a=Math.floor(r/864e5);return n<1?t.justNow:n<60?t.minutesAgo(n):s<24?t.hoursAgo(s):a<7?t.daysAgo(a):new Date(e).toLocaleDateString()}function d(e){let t=e.match(/^[\p{Emoji_Presentation}\p{Extended_Pictographic}]+/u);return t?.[0]??""}function l(e){return e.replace(/^[\p{Emoji_Presentation}\p{Extended_Pictographic}\s]+/u,"")||e}},71044:(e,t,r)=>{"use strict";r.d(t,{A:()=>n});let n=(0,r(73015).A)("arrow-left",[["path",{d:"m12 19-7-7 7-7",key:"1l729n"}],["path",{d:"M19 12H5",key:"x3x0zl"}]])},74197:(e,t,r)=>{"use strict";r.d(t,{A:()=>n});let n=(0,r(73015).A)("archive",[["rect",{width:"20",height:"5",x:"2",y:"3",rx:"1",key:"1wp1u1"}],["path",{d:"M4 8v11a2 2 0 0 0 2 2h12a2 2 0 0 0 2-2V8",key:"1s80jp"}],["path",{d:"M10 12h4",key:"a56b0p"}]])},76723:(e,t,r)=>{"use strict";r.d(t,{A:()=>n});let n=(0,r(73015).A)("check",[["path",{d:"M20 6 9 17l-5-5",key:"1gmf2c"}]])}},e=>{e.O(0,[3940,2130,7368,2073,5018,2330,7358],()=>e(e.s=18191)),_N_E=e.O()}]);