@ensocode/server 0.3.13 → 0.3.15-beta.234

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 (216) hide show
  1. package/README.md +11 -1
  2. package/out/phone/assets/{EditDiff-B3HxLrbF.js → EditDiff-DlIQ0NvB.js} +1 -1
  3. package/out/phone/assets/{ReadFileView-BFpGH-kK.js → ReadFileView-hlSV-q1S.js} +1 -1
  4. package/out/phone/assets/{abnfDiagram-VCTEODGH-BNvyPGoF.js → abnfDiagram-VCTEODGH-cWLl_02_.js} +1 -1
  5. package/out/phone/assets/architecture-7GRP2DOG-WvHUAPXe.js +1 -0
  6. package/out/phone/assets/{architectureDiagram-5GKGNRK7-1bhpTEFA.js → architectureDiagram-5GKGNRK7-QEXMUvv5.js} +1 -1
  7. package/out/phone/assets/{blockDiagram-I7D4REHJ-Bo9UMudu.js → blockDiagram-I7D4REHJ-FzQ3vEDv.js} +1 -1
  8. package/out/phone/assets/{c4Diagram-7LVT6UL2-YS11cig2.js → c4Diagram-7LVT6UL2-6iRtBvvT.js} +1 -1
  9. package/out/phone/assets/channel-t2MFK_dg.js +1 -0
  10. package/out/phone/assets/{chunk-4HAMMTFA-gA-CzNGD.js → chunk-4HAMMTFA-4eZjiClJ.js} +1 -1
  11. package/out/phone/assets/{chunk-75Z2AOVW-BL_5b1Dw.js → chunk-75Z2AOVW-BTVSMC3k.js} +1 -1
  12. package/out/phone/assets/{chunk-DU6HZSFF-BpNlAs9R.js → chunk-DU6HZSFF-Ca9U1rWL.js} +1 -1
  13. package/out/phone/assets/{chunk-F27PBJKO-lsKx96Nt.js → chunk-F27PBJKO-iUczI4_Q.js} +1 -1
  14. package/out/phone/assets/{chunk-GMAD6QVW-CxbljbtE.js → chunk-GMAD6QVW-DlbCwmvq.js} +1 -1
  15. package/out/phone/assets/{chunk-GVQU2GXP-CTO3kTOF.js → chunk-GVQU2GXP-DlijzCAw.js} +1 -1
  16. package/out/phone/assets/{chunk-IMKFNOWR-Cq8XlkcB.js → chunk-IMKFNOWR-B1BOj8O6.js} +1 -1
  17. package/out/phone/assets/{chunk-L3NEJ4N5-CvIm0JX7.js → chunk-L3NEJ4N5-Fr_w5bRg.js} +1 -1
  18. package/out/phone/assets/{chunk-OSK3NFVY-Cj3ilTL-.js → chunk-OSK3NFVY-CccDEhXi.js} +1 -1
  19. package/out/phone/assets/{chunk-P2QGCYS3-B-twI_Fz.js → chunk-P2QGCYS3-Dn46j2El.js} +1 -1
  20. package/out/phone/assets/{chunk-POPQ4Y6H-lPQttJ5s.js → chunk-POPQ4Y6H-BQchiHrQ.js} +1 -1
  21. package/out/phone/assets/{chunk-PWAF6VOD-DjwqZuIR.js → chunk-PWAF6VOD-BENw9N2v.js} +1 -1
  22. package/out/phone/assets/{chunk-SHT3W25Y-BWRVin1H.js → chunk-SHT3W25Y-C93BlEB0.js} +1 -1
  23. package/out/phone/assets/{chunk-SVP7TREG-CGLhvnsS.js → chunk-SVP7TREG-wfL37BUq.js} +1 -1
  24. package/out/phone/assets/{chunk-TICWLB2K-DkFUa03q.js → chunk-TICWLB2K-C9-wZ6kk.js} +1 -1
  25. package/out/phone/assets/classDiagram-ZZMXUADV-CM29lfur.js +1 -0
  26. package/out/phone/assets/classDiagram-v2-VYDZK3BY-CM29lfur.js +1 -0
  27. package/out/phone/assets/{codeHighlighter-jQti-W31.js → codeHighlighter-DQ-g-VWX.js} +1 -1
  28. package/out/phone/assets/{cynefin-OW5HDTMX-L8oWVu5S.js → cynefin-OW5HDTMX-DamvwfM9.js} +1 -1
  29. package/out/phone/assets/{cynefinDiagram-5FMLGOSQ-DH8-4p4N.js → cynefinDiagram-5FMLGOSQ-Coz1le1N.js} +1 -1
  30. package/out/phone/assets/{dagre-GXQ25YYZ-HhLDmcu9.js → dagre-GXQ25YYZ-ByJC9Z6k.js} +1 -1
  31. package/out/phone/assets/desk-XkzvZXuU.js +70 -0
  32. package/out/phone/assets/{diagram-S7CK7UJ4-CeIbR3Ir.js → diagram-S7CK7UJ4-BabBefXt.js} +1 -1
  33. package/out/phone/assets/{diagram-UQ7AKVKN-BQ84Qnq6.js → diagram-UQ7AKVKN-DEX56Otl.js} +1 -1
  34. package/out/phone/assets/{diagram-VSXAHHWV-aF_J57fD.js → diagram-VSXAHHWV-GeNN1ZwW.js} +1 -1
  35. package/out/phone/assets/{diagram-VX7I27RA-Bg1ZqM4Y.js → diagram-VX7I27RA-DkclPqXj.js} +1 -1
  36. package/out/phone/assets/{diagram-Z3DM3KII-DjTkPAqa.js → diagram-Z3DM3KII-CDKrxb7_.js} +1 -1
  37. package/out/phone/assets/{ebnfDiagram-PWID7BFC-DPsH5Eky.js → ebnfDiagram-PWID7BFC-B-lRq0nU.js} +1 -1
  38. package/out/phone/assets/{erDiagram-RLTQ6QDP-ExvY7e6T.js → erDiagram-RLTQ6QDP-2PdYpZdI.js} +1 -1
  39. package/out/phone/assets/eventmodeling-NTZA5JFV-DBO84WXk.js +1 -0
  40. package/out/phone/assets/flowDiagram-HODETNUW-89Bcp6BV.js +1 -0
  41. package/out/phone/assets/{ganttDiagram-EL5Y4UJY-hCe06ucl.js → ganttDiagram-EL5Y4UJY-XG84VKNq.js} +1 -1
  42. package/out/phone/assets/{gitGraph-4MIJSDKK-BuZ6lDat.js → gitGraph-4MIJSDKK-BqrA_WVv.js} +1 -1
  43. package/out/phone/assets/{gitGraphDiagram-WWUBYQGX-D-8aVxvj.js → gitGraphDiagram-WWUBYQGX-BAIxr-mN.js} +1 -1
  44. package/out/phone/assets/{info-A6RAGUB7-CrZtdoYs.js → info-A6RAGUB7-DE-jKSbG.js} +1 -1
  45. package/out/phone/assets/{infoDiagram-27XIBGKW-BLRFHxtO.js → infoDiagram-27XIBGKW-BSTxH5Al.js} +1 -1
  46. package/out/phone/assets/{ishikawaDiagram-5VMMS53U-D7SYWKoj.js → ishikawaDiagram-5VMMS53U-zOO97Npq.js} +1 -1
  47. package/out/phone/assets/{journeyDiagram-3NMN7TZE-BPsg7CQD.js → journeyDiagram-3NMN7TZE-dSMVlg_5.js} +1 -1
  48. package/out/phone/assets/{kanban-definition-UXKFOSKX-CbPuNr-E.js → kanban-definition-UXKFOSKX-DHok-qdM.js} +1 -1
  49. package/out/phone/assets/{line-CkpKMiqK.js → line-C5TJMvf6.js} +1 -1
  50. package/out/phone/assets/main-Bk2Gcz5l.css +2 -0
  51. package/out/phone/assets/main-DNK2uR8l.js +277 -0
  52. package/out/phone/assets/{mermaid-parser.core-RTq_mEm1.js → mermaid-parser.core-CrJ82mWd.js} +3 -3
  53. package/out/phone/assets/{mermaid.core-D9LtIKua.js → mermaid.core-CkfKqc8K.js} +4 -4
  54. package/out/phone/assets/{mindmap-definition-YA3MSWOX-8cGgRiRD.js → mindmap-definition-YA3MSWOX-DD-W0NPL.js} +1 -1
  55. package/out/phone/assets/{packet-AYTQ26CC-D9-eSn0v.js → packet-AYTQ26CC-DEZk6B2e.js} +1 -1
  56. package/out/phone/assets/{pegDiagram-XKGWAZYB-DztU_rIE.js → pegDiagram-XKGWAZYB-KND-JwT0.js} +1 -1
  57. package/out/phone/assets/{pie-WAS4IAKB-Bk2Tqaq_.js → pie-WAS4IAKB-DS5oCOdm.js} +1 -1
  58. package/out/phone/assets/{pieDiagram-E7YTZNPT-Dm_3mJ9_.js → pieDiagram-E7YTZNPT-CfWh8T4Z.js} +1 -1
  59. package/out/phone/assets/{quadrantDiagram-AXDQQJYC-lKskzjzu.js → quadrantDiagram-AXDQQJYC-CbquaKYM.js} +1 -1
  60. package/out/phone/assets/{radar-RG4KPBEZ-B2z8Txd8.js → radar-RG4KPBEZ-C0kqKhsd.js} +1 -1
  61. package/out/phone/assets/{railroad-74A4TZTK-11VmdALq.js → railroad-74A4TZTK-C5WV19mk.js} +1 -1
  62. package/out/phone/assets/railroad-abnf-HS5TGJTU-BqkB5NuR.js +1 -0
  63. package/out/phone/assets/railroad-ebnf-LZEXJU2U-DF9ncZF9.js +1 -0
  64. package/out/phone/assets/railroad-peg-WCYAUIDC-CrvTMEVw.js +1 -0
  65. package/out/phone/assets/{railroadDiagram-O6MQD6OU-Dr0NTIA6.js → railroadDiagram-O6MQD6OU-CmkCOdfu.js} +1 -1
  66. package/out/phone/assets/{requirementDiagram-BXWQKSXE-C0W6h_5I.js → requirementDiagram-BXWQKSXE-CrQKPUwx.js} +1 -1
  67. package/out/phone/assets/{sankeyDiagram-P5KCCOFB-CVJDathY.js → sankeyDiagram-P5KCCOFB-CBCG-Eyn.js} +1 -1
  68. package/out/phone/assets/{sequenceDiagram-WJ2MYXX4-BxHQTG6x.js → sequenceDiagram-WJ2MYXX4-D9oVD380.js} +1 -1
  69. package/out/phone/assets/shellUpdate-2rxcUhg5.js +5 -0
  70. package/out/phone/assets/{stateDiagram-D77RDMKH-BO5MAjhs.js → stateDiagram-D77RDMKH-VNnCDAvS.js} +1 -1
  71. package/out/phone/assets/stateDiagram-v2-MP3YSRHH-Qadztnwb.js +1 -0
  72. package/out/phone/assets/{swimlanes-42K2YHIH-DnhDPyy6.js → swimlanes-42K2YHIH-DFtKlQwi.js} +1 -1
  73. package/out/phone/assets/swimlanesDiagram-VR7AAH4N-BG4PsK7t.js +8 -0
  74. package/out/phone/assets/{timeline-definition-24CTP7MA-bLEjS7re.js → timeline-definition-24CTP7MA-BwrAy7Qu.js} +1 -1
  75. package/out/phone/assets/{treeView-Q6P3EWNA-Ci-sA9wK.js → treeView-Q6P3EWNA-BLyQtiYC.js} +1 -1
  76. package/out/phone/assets/{treemap-WGGIJYW6-BXCjzK65.js → treemap-WGGIJYW6-gub1bjDX.js} +1 -1
  77. package/out/phone/assets/{vennDiagram-4TSXK5OY-DHsj5dRx.js → vennDiagram-4TSXK5OY-DayfmvoI.js} +1 -1
  78. package/out/phone/assets/{wardley-WFR3VGLG-d8TdCu-H.js → wardley-WFR3VGLG-B5_pluIE.js} +1 -1
  79. package/out/phone/assets/{wardleyDiagram-VM6X3IG4-DQFVP9qu.js → wardleyDiagram-VM6X3IG4-CHS5ryk0.js} +1 -1
  80. package/out/phone/assets/{xychartDiagram-S5SC5T6Z-Dni2Y0ov.js → xychartDiagram-S5SC5T6Z-C21zSdz1.js} +1 -1
  81. package/out/phone/desk.html +3 -3
  82. package/out/phone/index.html +4 -4
  83. package/out/phone/sw.js +2 -2
  84. package/out/renderer/assets/EditDiff-DJaW24DH.js +1 -0
  85. package/out/renderer/assets/ReadFileView-B1RfgY1_.js +4 -0
  86. package/out/renderer/assets/SidePanel-CXOSOIj_.js +48 -0
  87. package/out/renderer/assets/{SidePanel-D0m4IYxS.css → SidePanel-DN2RL6QD.css} +1 -1
  88. package/out/renderer/assets/abnfDiagram-VCTEODGH-DteC7eOG.js +1 -0
  89. package/out/renderer/assets/{arc-B8im8n0O.js → arc-BafilblL.js} +1 -1
  90. package/out/renderer/assets/{architectureDiagram-5GKGNRK7-BRSi5FBk.js → architectureDiagram-5GKGNRK7-BXxAIsNI.js} +2 -2
  91. package/out/renderer/assets/{blockDiagram-I7D4REHJ-CQ1wirIl.js → blockDiagram-I7D4REHJ-Bt4I5z76.js} +1 -1
  92. package/out/renderer/assets/{c4Diagram-7LVT6UL2-9HyLIioe.js → c4Diagram-7LVT6UL2-Dg1rhQSn.js} +1 -1
  93. package/out/renderer/assets/channel-CpN2DlDo.js +1 -0
  94. package/out/renderer/assets/{chunk-2Q5K7J3B-BwC9g3bx.js → chunk-2Q5K7J3B-Bea4O-pP.js} +1 -1
  95. package/out/renderer/assets/{chunk-5VM5RSS4-DMtgxPBL.js → chunk-5VM5RSS4-9g4O6TgX.js} +1 -1
  96. package/out/renderer/assets/{chunk-F27PBJKO-DSi_XV5v.js → chunk-F27PBJKO-CQFAhmZp.js} +1 -1
  97. package/out/renderer/assets/{chunk-IMKFNOWR-Dctc6Apj.js → chunk-IMKFNOWR-DZKvnXil.js} +1 -1
  98. package/out/renderer/assets/{chunk-JWPE2WC7-I2BD5qM7.js → chunk-JWPE2WC7-UkNkhirX.js} +1 -1
  99. package/out/renderer/assets/{chunk-POPQ4Y6H-k60pc4eT.js → chunk-POPQ4Y6H-D3CSUp94.js} +1 -1
  100. package/out/renderer/assets/{chunk-SVP7TREG-zCGemfqm.js → chunk-SVP7TREG-F3dgPzel.js} +1 -1
  101. package/out/renderer/assets/{chunk-TICWLB2K-CdDiHIq-.js → chunk-TICWLB2K-URu59zvj.js} +1 -1
  102. package/out/renderer/assets/{chunk-XXDRQBXY-GYVDxVfN.js → chunk-XXDRQBXY-DRFxCPER.js} +1 -1
  103. package/out/renderer/assets/classDiagram-ZZMXUADV-D-KG_eK-.js +1 -0
  104. package/out/renderer/assets/classDiagram-v2-VYDZK3BY-D-KG_eK-.js +1 -0
  105. package/out/renderer/assets/cose-bilkent-JH36ORCC-Bx5VqEhK.js +1 -0
  106. package/out/renderer/assets/{cynefin-OW5HDTMX-DnQaS9VN.js → cynefin-OW5HDTMX-YKYl0dFh.js} +1 -1
  107. package/out/renderer/assets/cynefinDiagram-5FMLGOSQ-DaHqCls4.js +62 -0
  108. package/out/renderer/assets/{dagre-GXQ25YYZ-fG1vMsyn.js → dagre-GXQ25YYZ-CRqSls6Q.js} +1 -1
  109. package/out/renderer/assets/{diagram-S7CK7UJ4-BcfAFVc2.js → diagram-S7CK7UJ4-_oJhPbvH.js} +1 -1
  110. package/out/renderer/assets/diagram-UQ7AKVKN-B7P-4UYL.js +41 -0
  111. package/out/renderer/assets/{diagram-VSXAHHWV-B-U9CIWt.js → diagram-VSXAHHWV--0uBugR7.js} +1 -1
  112. package/out/renderer/assets/diagram-VX7I27RA-IaMWXRBT.js +24 -0
  113. package/out/renderer/assets/diagram-Z3DM3KII-BLCY3C4h.js +24 -0
  114. package/out/renderer/assets/ebnfDiagram-PWID7BFC-CUYHhexz.js +1 -0
  115. package/out/renderer/assets/{erDiagram-RLTQ6QDP-CfMNvEoW.js → erDiagram-RLTQ6QDP-BIOsECZV.js} +1 -1
  116. package/out/renderer/assets/{flowDiagram-HODETNUW-C8XM3p4T.js → flowDiagram-HODETNUW-DjggEdce.js} +1 -1
  117. package/out/renderer/assets/ganttDiagram-EL5Y4UJY-Dik61bQB.js +292 -0
  118. package/out/renderer/assets/gitGraphDiagram-WWUBYQGX-BrPFNa7W.js +106 -0
  119. package/out/renderer/assets/index-CtOLwaEJ.css +1 -0
  120. package/out/renderer/assets/index-mVE4g58q.js +3003 -0
  121. package/out/renderer/assets/infoDiagram-27XIBGKW-ZfCvFQE5.js +2 -0
  122. package/out/renderer/assets/{ishikawaDiagram-5VMMS53U-mUoXchkB.js → ishikawaDiagram-5VMMS53U-BhteuTmM.js} +1 -1
  123. package/out/renderer/assets/{journeyDiagram-3NMN7TZE-zzLL0HFW.js → journeyDiagram-3NMN7TZE-BJyr-G3R.js} +1 -1
  124. package/out/renderer/assets/{kanban-definition-UXKFOSKX-BJ_9aIhB.js → kanban-definition-UXKFOSKX-CJyl9IUl.js} +1 -1
  125. package/out/renderer/assets/{layout-3SRMHY7n.js → layout-oTkojEy1.js} +1 -1
  126. package/out/renderer/assets/{linear-CWpclK_R.js → linear-qICDecPr.js} +1 -1
  127. package/out/renderer/assets/{mermaid.core-DORpmVi3.js → mermaid.core-F0flUThf.js} +5 -5
  128. package/out/renderer/assets/{mindmap-definition-YA3MSWOX-CYBlCqIB.js → mindmap-definition-YA3MSWOX-pG7PXlKk.js} +1 -1
  129. package/out/renderer/assets/pegDiagram-XKGWAZYB-CwO9p66t.js +1 -0
  130. package/out/renderer/assets/{pieDiagram-E7YTZNPT-Bzpc57-A.js → pieDiagram-E7YTZNPT-BpqTKO7A.js} +1 -1
  131. package/out/renderer/assets/{quadrantDiagram-AXDQQJYC-spKXEbds.js → quadrantDiagram-AXDQQJYC-Ci1QOcG6.js} +1 -1
  132. package/out/renderer/assets/railroadDiagram-O6MQD6OU-Be-ymk25.js +1 -0
  133. package/out/renderer/assets/{requirementDiagram-BXWQKSXE-CX-Dqij_.js → requirementDiagram-BXWQKSXE-Dotur23i.js} +1 -1
  134. package/out/renderer/assets/{sankeyDiagram-P5KCCOFB-Bgx1W6B9.js → sankeyDiagram-P5KCCOFB-BlTTRpKU.js} +1 -1
  135. package/out/renderer/assets/{sequenceDiagram-WJ2MYXX4-CKQv6pcU.js → sequenceDiagram-WJ2MYXX4-C_llXVvH.js} +1 -1
  136. package/out/renderer/assets/{sessionChanges-BLzNhRuv.js → sessionChanges-BpPkx6v0.js} +5 -5
  137. package/out/renderer/assets/sizeCapture-INFHLROL-xhuCXQI9.js +1 -0
  138. package/out/renderer/assets/stateDiagram-D77RDMKH-BfESnkCR.js +1 -0
  139. package/out/renderer/assets/stateDiagram-v2-MP3YSRHH-C7QWw0La.js +1 -0
  140. package/out/renderer/assets/swimlanes-42K2YHIH-DX8_KJTt.js +1 -0
  141. package/out/renderer/assets/swimlanesDiagram-VR7AAH4N-B7JGQCYf.js +8 -0
  142. package/out/renderer/assets/{timeline-definition-24CTP7MA-CsZAMmMZ.js → timeline-definition-24CTP7MA-DIoNEHAB.js} +1 -1
  143. package/out/renderer/assets/{vennDiagram-4TSXK5OY-COQ7L1f7.js → vennDiagram-4TSXK5OY-KrS4uyWo.js} +1 -1
  144. package/out/renderer/assets/{wardleyDiagram-VM6X3IG4-dqMWLTCs.js → wardleyDiagram-VM6X3IG4-D4i6zXyf.js} +1 -1
  145. package/out/renderer/assets/{xychartDiagram-S5SC5T6Z-DX4clIYP.js → xychartDiagram-S5SC5T6Z-DpCpSTPN.js} +1 -1
  146. package/out/renderer/index.html +2 -3
  147. package/out/renderer/web-preload.js +1 -51
  148. package/out/server/agent.js +1413 -307
  149. package/out/server/chunks/agentConstants-D4t7d6iS.js +9 -0
  150. package/out/server/chunks/builtinOccupancy-zo5-z-s5.js +93 -0
  151. package/out/server/chunks/dispatchModel-D7papgSj.js +76 -0
  152. package/out/server/chunks/{gpuBackendInstall-jAzoFq7U.js → gpuBackendInstall-xFEdr70P.js} +2 -2
  153. package/out/server/chunks/killTree-T-p6Lr3w.js +787 -0
  154. package/out/server/chunks/{loadProvider-NdOVbsHi.js → loadProvider-ChfeR5km.js} +2 -2
  155. package/out/server/chunks/{manifest-BPXFscqI.js → manifest-CmnE8RBt.js} +4 -2
  156. package/out/server/chunks/menuSkills-DC4qs2MC.js +54 -0
  157. package/out/server/chunks/projectCode-BAgpkYYS.js +112 -0
  158. package/out/server/chunks/{registry-BhoHPSKn.js → registry-G4AKEQtl.js} +98 -116
  159. package/out/server/chunks/sendImage-BmenO8Vx.js +646 -0
  160. package/out/server/chunks/{sendImage-BCNW9JRV.js → toolParams-0GakTs9V.js} +25 -234
  161. package/out/server/chunks/web-9MujZLkq.js +7787 -0
  162. package/out/server/chunks/{workflowPresets-C2T1BzA2.js → workflowPresets-CTv2r-Sh.js} +13659 -15598
  163. package/out/server/index.js +10281 -3781
  164. package/out/server/memory-service.js +205 -148
  165. package/out/server/plugin-host.js +44 -18
  166. package/package.json +1 -1
  167. package/out/phone/assets/architecture-7GRP2DOG-Duql1LsL.js +0 -1
  168. package/out/phone/assets/channel-BPoIHov1.js +0 -1
  169. package/out/phone/assets/classDiagram-ZZMXUADV-CIR76lHP.js +0 -1
  170. package/out/phone/assets/classDiagram-v2-VYDZK3BY-CIR76lHP.js +0 -1
  171. package/out/phone/assets/desk-CixRGdTk.js +0 -52
  172. package/out/phone/assets/eventmodeling-NTZA5JFV-DYp-zWcL.js +0 -1
  173. package/out/phone/assets/flowDiagram-HODETNUW-CIU32By5.js +0 -1
  174. package/out/phone/assets/main-BCnf7dVM.js +0 -264
  175. package/out/phone/assets/main-nqB-uD3v.css +0 -2
  176. package/out/phone/assets/railroad-abnf-HS5TGJTU-BkSycwye.js +0 -1
  177. package/out/phone/assets/railroad-ebnf-LZEXJU2U-BsPIU3iV.js +0 -1
  178. package/out/phone/assets/railroad-peg-WCYAUIDC-Cy8G7u5C.js +0 -1
  179. package/out/phone/assets/shellUpdate-DPSfgHG3.js +0 -36
  180. package/out/phone/assets/stateDiagram-v2-MP3YSRHH-B8IHc2bm.js +0 -1
  181. package/out/phone/assets/swimlanesDiagram-VR7AAH4N-dmSDAN2F.js +0 -8
  182. package/out/renderer/assets/EditDiff-DxxLuCEI.js +0 -1
  183. package/out/renderer/assets/File-Tz3MUtN6.js +0 -1
  184. package/out/renderer/assets/ReadFileView-DFoLPU04.js +0 -4
  185. package/out/renderer/assets/SidePanel-CL40W2RY.js +0 -47
  186. package/out/renderer/assets/Virtualizer-B0uwx_XV.js +0 -1345
  187. package/out/renderer/assets/abnfDiagram-VCTEODGH-CJ9nn9eH.js +0 -1
  188. package/out/renderer/assets/channel-DjB0ww6b.js +0 -1
  189. package/out/renderer/assets/classDiagram-ZZMXUADV-6SiAw1np.js +0 -1
  190. package/out/renderer/assets/classDiagram-v2-VYDZK3BY-6SiAw1np.js +0 -1
  191. package/out/renderer/assets/cose-bilkent-JH36ORCC-BnSAtUh-.js +0 -1
  192. package/out/renderer/assets/cynefinDiagram-5FMLGOSQ-BNQdw0PV.js +0 -62
  193. package/out/renderer/assets/cytoscape-fcose-CzkrRInm.js +0 -1
  194. package/out/renderer/assets/cytoscape.esm-DzSz-X2X.js +0 -321
  195. package/out/renderer/assets/diagram-UQ7AKVKN-D8f3Tsx9.js +0 -41
  196. package/out/renderer/assets/diagram-VX7I27RA-CX6ifTkJ.js +0 -24
  197. package/out/renderer/assets/diagram-Z3DM3KII-49dS9s3L.js +0 -24
  198. package/out/renderer/assets/ebnfDiagram-PWID7BFC-CraGJRI7.js +0 -1
  199. package/out/renderer/assets/ganttDiagram-EL5Y4UJY-DlJBMKFX.js +0 -292
  200. package/out/renderer/assets/gitGraphDiagram-WWUBYQGX-DvEzDsKF.js +0 -106
  201. package/out/renderer/assets/globals-BFf1P-Y5.js +0 -715
  202. package/out/renderer/assets/globals-DUBhAVpU.css +0 -1
  203. package/out/renderer/assets/index-L4TTIP10.js +0 -89
  204. package/out/renderer/assets/infoDiagram-27XIBGKW-CckfBO-R.js +0 -2
  205. package/out/renderer/assets/manifest-DOzTaB8J.js +0 -525
  206. package/out/renderer/assets/pegDiagram-XKGWAZYB-DhWwLs4v.js +0 -1
  207. package/out/renderer/assets/railroadDiagram-O6MQD6OU-Br553px3.js +0 -1
  208. package/out/renderer/assets/settings-Bsrw4ERp.js +0 -25
  209. package/out/renderer/assets/sizeCapture-INFHLROL-DtRedfRe.js +0 -1
  210. package/out/renderer/assets/stateDiagram-D77RDMKH-CMP5owem.js +0 -1
  211. package/out/renderer/assets/stateDiagram-v2-MP3YSRHH-6-731AqJ.js +0 -1
  212. package/out/renderer/assets/swimlanes-42K2YHIH-D30AvvmW.js +0 -1
  213. package/out/renderer/assets/swimlanesDiagram-VR7AAH4N-B8KijqIT.js +0 -8
  214. package/out/renderer/settings.html +0 -23
  215. package/out/server/chunks/agent-BbNq8i9j.js +0 -4241
  216. package/out/server/chunks/dispatchModel-CsfmL396.js +0 -20
@@ -0,0 +1,5 @@
1
+ import{i as e,r as t,t as n}from"./rolldown-runtime-Dd_uD5pT.js";(function(){let e=document.createElement(`link`).relList;if(e&&e.supports&&e.supports(`modulepreload`))return;for(let e of document.querySelectorAll(`link[rel="modulepreload"]`))n(e);new MutationObserver(e=>{for(let t of e)if(t.type===`childList`)for(let e of t.addedNodes)e.tagName===`LINK`&&e.rel===`modulepreload`&&n(e)}).observe(document,{childList:!0,subtree:!0});function t(e){let t={};return e.integrity&&(t.integrity=e.integrity),e.referrerPolicy&&(t.referrerPolicy=e.referrerPolicy),t.credentials=e.crossOrigin===`use-credentials`?`include`:e.crossOrigin===`anonymous`?`omit`:`same-origin`,t}function n(e){if(e.ep)return;e.ep=!0;let n=t(e);fetch(e.href,n)}})();var r=n((e=>{var t=Symbol.for(`react.transitional.element`),n=Symbol.for(`react.portal`),r=Symbol.for(`react.fragment`),i=Symbol.for(`react.strict_mode`),a=Symbol.for(`react.profiler`),o=Symbol.for(`react.consumer`),s=Symbol.for(`react.context`),c=Symbol.for(`react.forward_ref`),l=Symbol.for(`react.suspense`),u=Symbol.for(`react.memo`),d=Symbol.for(`react.lazy`),f=Symbol.for(`react.activity`),p=Symbol.iterator;function m(e){return typeof e!=`object`||!e?null:(e=p&&e[p]||e[`@@iterator`],typeof e==`function`?e:null)}var h={isMounted:function(){return!1},enqueueForceUpdate:function(){},enqueueReplaceState:function(){},enqueueSetState:function(){}},g=Object.assign,_={};function v(e,t,n){this.props=e,this.context=t,this.refs=_,this.updater=n||h}v.prototype.isReactComponent={},v.prototype.setState=function(e,t){if(typeof e!=`object`&&typeof e!=`function`&&e!=null)throw Error(`takes an object of state variables to update or a function which returns an object of state variables.`);this.updater.enqueueSetState(this,e,t,`setState`)},v.prototype.forceUpdate=function(e){this.updater.enqueueForceUpdate(this,e,`forceUpdate`)};function y(){}y.prototype=v.prototype;function b(e,t,n){this.props=e,this.context=t,this.refs=_,this.updater=n||h}var x=b.prototype=new y;x.constructor=b,g(x,v.prototype),x.isPureReactComponent=!0;var S=Array.isArray;function C(){}var w={H:null,A:null,T:null,S:null},T=Object.prototype.hasOwnProperty;function E(e,n,r){var i=r.ref;return{$$typeof:t,type:e,key:n,ref:i===void 0?null:i,props:r}}function D(e,t){return E(e.type,t,e.props)}function O(e){return typeof e==`object`&&!!e&&e.$$typeof===t}function k(e){var t={"=":`=0`,":":`=2`};return`$`+e.replace(/[=:]/g,function(e){return t[e]})}var A=/\/+/g;function j(e,t){return typeof e==`object`&&e&&e.key!=null?k(``+e.key):t.toString(36)}function M(e){switch(e.status){case`fulfilled`:return e.value;case`rejected`:throw e.reason;default:switch(typeof e.status==`string`?e.then(C,C):(e.status=`pending`,e.then(function(t){e.status===`pending`&&(e.status=`fulfilled`,e.value=t)},function(t){e.status===`pending`&&(e.status=`rejected`,e.reason=t)})),e.status){case`fulfilled`:return e.value;case`rejected`:throw e.reason}}throw e}function N(e,r,i,a,o){var s=typeof e;(s===`undefined`||s===`boolean`)&&(e=null);var c=!1;if(e===null)c=!0;else switch(s){case`bigint`:case`string`:case`number`:c=!0;break;case`object`:switch(e.$$typeof){case t:case n:c=!0;break;case d:return c=e._init,N(c(e._payload),r,i,a,o)}}if(c)return o=o(e),c=a===``?`.`+j(e,0):a,S(o)?(i=``,c!=null&&(i=c.replace(A,`$&/`)+`/`),N(o,r,i,``,function(e){return e})):o!=null&&(O(o)&&(o=D(o,i+(o.key==null||e&&e.key===o.key?``:(``+o.key).replace(A,`$&/`)+`/`)+c)),r.push(o)),1;c=0;var l=a===``?`.`:a+`:`;if(S(e))for(var u=0;u<e.length;u++)a=e[u],s=l+j(a,u),c+=N(a,r,i,s,o);else if(u=m(e),typeof u==`function`)for(e=u.call(e),u=0;!(a=e.next()).done;)a=a.value,s=l+j(a,u++),c+=N(a,r,i,s,o);else if(s===`object`){if(typeof e.then==`function`)return N(M(e),r,i,a,o);throw r=String(e),Error(`Objects are not valid as a React child (found: `+(r===`[object Object]`?`object with keys {`+Object.keys(e).join(`, `)+`}`:r)+`). If you meant to render a collection of children, use an array instead.`)}return c}function P(e,t,n){if(e==null)return e;var r=[],i=0;return N(e,r,``,``,function(e){return t.call(n,e,i++)}),r}function F(e){if(e._status===-1){var t=e._result;t=t(),t.then(function(t){(e._status===0||e._status===-1)&&(e._status=1,e._result=t)},function(t){(e._status===0||e._status===-1)&&(e._status=2,e._result=t)}),e._status===-1&&(e._status=0,e._result=t)}if(e._status===1)return e._result.default;throw e._result}var I=typeof reportError==`function`?reportError:function(e){if(typeof window==`object`&&typeof window.ErrorEvent==`function`){var t=new window.ErrorEvent(`error`,{bubbles:!0,cancelable:!0,message:typeof e==`object`&&e&&typeof e.message==`string`?String(e.message):String(e),error:e});if(!window.dispatchEvent(t))return}else if(typeof process==`object`&&typeof process.emit==`function`){process.emit(`uncaughtException`,e);return}console.error(e)},L={map:P,forEach:function(e,t,n){P(e,function(){t.apply(this,arguments)},n)},count:function(e){var t=0;return P(e,function(){t++}),t},toArray:function(e){return P(e,function(e){return e})||[]},only:function(e){if(!O(e))throw Error(`React.Children.only expected to receive a single React element child.`);return e}};e.Activity=f,e.Children=L,e.Component=v,e.Fragment=r,e.Profiler=a,e.PureComponent=b,e.StrictMode=i,e.Suspense=l,e.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE=w,e.__COMPILER_RUNTIME={__proto__:null,c:function(e){return w.H.useMemoCache(e)}},e.cache=function(e){return function(){return e.apply(null,arguments)}},e.cacheSignal=function(){return null},e.cloneElement=function(e,t,n){if(e==null)throw Error(`The argument must be a React element, but you passed `+e+`.`);var r=g({},e.props),i=e.key;if(t!=null)for(a in t.key!==void 0&&(i=``+t.key),t)!T.call(t,a)||a===`key`||a===`__self`||a===`__source`||a===`ref`&&t.ref===void 0||(r[a]=t[a]);var a=arguments.length-2;if(a===1)r.children=n;else if(1<a){for(var o=Array(a),s=0;s<a;s++)o[s]=arguments[s+2];r.children=o}return E(e.type,i,r)},e.createContext=function(e){return e={$$typeof:s,_currentValue:e,_currentValue2:e,_threadCount:0,Provider:null,Consumer:null},e.Provider=e,e.Consumer={$$typeof:o,_context:e},e},e.createElement=function(e,t,n){var r,i={},a=null;if(t!=null)for(r in t.key!==void 0&&(a=``+t.key),t)T.call(t,r)&&r!==`key`&&r!==`__self`&&r!==`__source`&&(i[r]=t[r]);var o=arguments.length-2;if(o===1)i.children=n;else if(1<o){for(var s=Array(o),c=0;c<o;c++)s[c]=arguments[c+2];i.children=s}if(e&&e.defaultProps)for(r in o=e.defaultProps,o)i[r]===void 0&&(i[r]=o[r]);return E(e,a,i)},e.createRef=function(){return{current:null}},e.forwardRef=function(e){return{$$typeof:c,render:e}},e.isValidElement=O,e.lazy=function(e){return{$$typeof:d,_payload:{_status:-1,_result:e},_init:F}},e.memo=function(e,t){return{$$typeof:u,type:e,compare:t===void 0?null:t}},e.startTransition=function(e){var t=w.T,n={};w.T=n;try{var r=e(),i=w.S;i!==null&&i(n,r),typeof r==`object`&&r&&typeof r.then==`function`&&r.then(C,I)}catch(e){I(e)}finally{t!==null&&n.types!==null&&(t.types=n.types),w.T=t}},e.unstable_useCacheRefresh=function(){return w.H.useCacheRefresh()},e.use=function(e){return w.H.use(e)},e.useActionState=function(e,t,n){return w.H.useActionState(e,t,n)},e.useCallback=function(e,t){return w.H.useCallback(e,t)},e.useContext=function(e){return w.H.useContext(e)},e.useDebugValue=function(){},e.useDeferredValue=function(e,t){return w.H.useDeferredValue(e,t)},e.useEffect=function(e,t){return w.H.useEffect(e,t)},e.useEffectEvent=function(e){return w.H.useEffectEvent(e)},e.useId=function(){return w.H.useId()},e.useImperativeHandle=function(e,t,n){return w.H.useImperativeHandle(e,t,n)},e.useInsertionEffect=function(e,t){return w.H.useInsertionEffect(e,t)},e.useLayoutEffect=function(e,t){return w.H.useLayoutEffect(e,t)},e.useMemo=function(e,t){return w.H.useMemo(e,t)},e.useOptimistic=function(e,t){return w.H.useOptimistic(e,t)},e.useReducer=function(e,t,n){return w.H.useReducer(e,t,n)},e.useRef=function(e){return w.H.useRef(e)},e.useState=function(e){return w.H.useState(e)},e.useSyncExternalStore=function(e,t,n){return w.H.useSyncExternalStore(e,t,n)},e.useTransition=function(){return w.H.useTransition()},e.version=`19.2.8`})),i=n(((e,t)=>{t.exports=r()}));function a(e,t,n=Date.now()){switch(t.type){case`turn-retry`:{let{attempt:r,maxAttempts:i,delayMs:a,error:o}=t;return typeof r!=`number`||typeof i!=`number`||typeof a!=`number`||typeof o!=`string`||o.length===0?e:{attempt:r,maxAttempts:i,delayMs:a,error:o,at:n}}case`status`:case`turn-completed`:case`turn-failed`:return;default:return e}}function o(e,t){switch(t.type){case`task-started`:{let n=t.task;return!n||typeof n.taskId!=`string`?null:e.tasks.some(e=>e.taskId===n.taskId)?e:{...e,tasks:[...e.tasks,n]}}case`task-output`:{let n=t.taskId;return n?{...e,tasks:e.tasks.map(e=>e.taskId===n?{...e,tail:t.tail,status:t.status,...typeof t.outputBytes==`number`?{outputBytes:t.outputBytes}:{}}:e)}:null}case`task-ended`:{let n=t.taskId;return n?{...e,tasks:e.tasks.map(e=>e.taskId===n?{...e,status:t.status,exitCode:t.exitCode}:e)}:null}case`background-tasks-level`:return Array.isArray(t.tasks)?{...e,tasks:t.tasks}:null;case`subagent-update`:{let n=t.agent;if(!n||typeof n.id!=`string`)return null;let r=e.subagents.some(e=>e.id===n.id);return{...e,subagents:r?e.subagents.map(e=>e.id===n.id?n:e):[...e.subagents,n]}}default:return null}}function s(e,t){if(t===void 0)return;let n=0;for(let r of e)r<t&&(n+=1);return n}function c(){return{messages:new Map,status:`idle`,approvals:[],asks:[],tasks:[],subagents:[]}}var l=e=>e.size?Math.max(...e.keys()):-1;function u(e,t,n){let r={...e,messages:new Map(e.messages)};r.retry=a(r.retry,t,n?.now);let i=o({tasks:r.tasks,subagents:r.subagents},t);if(i)return{view:{...r,...i}};switch(t.type){case`message-upsert`:{let e=t.index;return r.messages.set(e,t.message),{view:r,lastIndex:l(r.messages)}}case`messages-truncated`:{let e=t.length;for(let t of r.messages.keys())t>=e&&r.messages.delete(t);return{view:r,lastIndex:e-1}}case`status`:r.status=t.status;break;case`turn-completed`:r.status=`idle`;break;case`turn-failed`:r.status=`failed`;break;case`approval-request`:{let e=t.request??t;r.approvals=[...r.approvals,e];break}case`approval-resolved`:r.approvals=r.approvals.filter(e=>e.requestId!==t.requestId);break;case`ask-request`:{let e=t.ask??t;r.asks=[...r.asks,e];break}case`ask-resolved`:r.asks=r.asks.filter(e=>e.requestId!==t.requestId);break;case`compaction`:{let e=t.state;r.compaction=e===`queued`?`queued`:e===`start`?`running`:void 0,e===`end`&&!t.error&&!t.abandoned&&(r.compactionNoticeAt=l(r.messages)+1);break}}return{view:r}}function d(e,t){let n=[];for(let r of t.sessions??[]){let t=r.sessionId??r.identity?.sessionId;if(!t)continue;let i=r.baseIndex??0,a=e.get(t)?.messages,o=a?.size?Math.max(...a.keys()):-1,s=a&&i<=o+1?new Map(a):new Map,c=r.messages??[];for(let e of s.keys())e>=i+c.length&&s.delete(e);for(let[e,t]of c.entries())s.set(i+e,t);n.push({id:t,view:{messages:s,status:r.status??`idle`,approvals:r.pendingApprovals??[],asks:r.pendingAsks??[],tasks:r.backgroundTasks??[],subagents:r.subagents??[],compaction:r.compaction,compactionNoticeAt:r.compactionNoticeAt??e.get(t)?.compactionNoticeAt},lastIndex:i+c.length-1})}return n}function f(e,t){if(t.messages.length===0)return e;let n=new Map(e.messages);for(let[e,r]of t.messages.entries())n.set(t.baseIndex+e,r);return{...e,messages:n}}function p(e){let t=new Map;for(let[n,r]of e)t.set(n,{...r,status:`failed`,messages:new Map(r.messages)});return t}var m=e(i(),1),h=e=>typeof e==`string`&&e.length>0,g=e=>!!e&&typeof e==`object`&&h(e.data)&&h(e.mimeType);function _(e){if(!Array.isArray(e))return[];let t=new Set,n=[];for(let r of e){if(!r||typeof r!=`object`)continue;let e=r;if(!h(e.deliveryId)||!h(e.chatId)||typeof e.text!=`string`||typeof e.createdAt!=`number`||t.has(e.deliveryId)||e.images!==void 0&&!(Array.isArray(e.images)&&e.images.every(g)))continue;t.add(e.deliveryId);let i=e.status===`failed`;n.push({deliveryId:e.deliveryId,chatId:e.chatId,text:e.text,...e.images?{images:e.images}:{},createdAt:e.createdAt,status:i?`failed`:`pending`,...i&&typeof e.error==`string`?{error:e.error}:{}})}return n}var v=class{storage;pairId;items=[];listeners=new Set;writing=Promise.resolve();newId;now;durable=new Set;sentAt=new Map;loadFailed=!1;loading;constructor(e,t,n={}){this.storage=e,this.pairId=t,this.newId=n.newId??(()=>crypto.randomUUID()),this.now=n.now??Date.now}async restore(){let e=this.loadExisting();this.loading=e;try{await e}finally{this.loading===e&&(this.loading=void 0)}}async loadExisting(){let e;try{e=_(await this.storage.load(this.pairId)),this.loadFailed=!1}catch(e){throw this.loadFailed=!0,e}let t=new Set(this.items.map(e=>e.deliveryId)),n=e.filter(e=>!t.has(e.deliveryId));if(n.length!==0){this.items=[...n,...this.items];for(let e of n)this.durable.add(e.deliveryId);for(let e of this.listeners)e([...this.items])}}list(e){return e?this.items.filter(t=>t.chatId===e):[...this.items]}subscribe(e){return this.listeners.add(e),()=>this.listeners.delete(e)}enqueue(e){let t={deliveryId:this.newId(),chatId:e.chatId,text:e.text,...e.images?.length?{images:e.images}:{},createdAt:this.now(),status:`pending`};return this.items=[...this.items,t],this.changed(),t}drain(){let e=this.items.filter(e=>e.status===`pending`&&this.durable.has(e.deliveryId));if(e.length===0)return[];let t=new Set(e.map(e=>e.deliveryId));for(let e of t)this.sentAt.set(e,this.now());return this.update(e=>t.has(e.deliveryId)?{...e,status:`sending`}:e),e}interrupted(){this.sentAt.clear(),this.items.some(e=>e.status===`sending`)&&this.update(e=>e.status===`sending`?{...e,status:`pending`}:e)}settle(e,t,n){if(this.sentAt.delete(e),this.items.some(t=>t.deliveryId===e)){if(t){this.durable.delete(e),this.items=this.items.filter(t=>t.deliveryId!==e),this.changed();return}this.update(t=>t.deliveryId===e?{...t,status:`failed`,...n?{error:n}:{}}:t)}}retry(e){this.durable.delete(e),this.update(t=>{if(t.deliveryId!==e||t.status!==`failed`)return t;let{error:n,...r}=t;return{...r,status:`pending`}})}async discard(e){if(!this.items.some(t=>t.deliveryId===e))return;this.durable.delete(e),this.sentAt.delete(e),this.items=this.items.map(t=>t.deliveryId===e?{...t,status:`failed`,error:`outbox-discarding`}:t);for(let e of this.listeners)e([...this.items]);let t=this.writing.then(async()=>{try{await this.loading,this.loadFailed&&await this.loadExisting(),await this.storage.save(this.pairId,this.items.filter(t=>t.deliveryId!==e)),this.items=this.items.filter(t=>t.deliveryId!==e)}catch{this.items=this.items.map(t=>t.deliveryId===e?{...t,status:`failed`,error:`outbox-discard`}:t),await this.storage.save(this.pairId,this.items).catch(()=>{})}for(let e of this.listeners)e([...this.items])});return this.writing=t,t}flushed(){return this.writing}expire(e=this.now()){for(let[t,n]of this.sentAt)e-n>=6e4&&this.settle(t,!1,`delivery-unconfirmed`)}update(e){this.items=this.items.map(e),this.changed()}changed(){for(let e of this.listeners)e([...this.items]);this.writing=this.writing.then(async()=>{let e=[...this.items];try{await this.loading,this.loadFailed&&await this.loadExisting(),e=[...this.items],await this.storage.save(this.pairId,e);let t=!1;for(let n of e){let e=this.items.find(e=>e.deliveryId===n.deliveryId);!e||this.durable.has(n.deliveryId)||(this.durable.add(n.deliveryId),e.status===`pending`&&(t=!0))}if(t)for(let e of this.listeners)e([...this.items])}catch{this.items=this.items.map(t=>t.status!==`pending`||!e.includes(t)?t:(this.durable.delete(t.deliveryId),{...t,status:`failed`,error:`outbox-storage`}));for(let e of this.listeners)e([...this.items])}})}},y=`enso-phone-outbox`,b=`outbox`;function x(e=globalThis.indexedDB){let t=null,n=()=>e?(t??=new Promise((t,n)=>{let r=e.open(y,1);r.onupgradeneeded=()=>{r.result.objectStoreNames.contains(b)||r.result.createObjectStore(b)},r.onsuccess=()=>t(r.result),r.onerror=()=>n(r.error)}).catch(e=>{throw t=null,e}),t):Promise.reject(Error(`IndexedDB unavailable`)),r=async(e,t)=>{let r=await n();return new Promise((n,i)=>{let a=r.transaction(b,e),o=t(a.objectStore(b));a.oncomplete=()=>n(o.result),a.onabort=()=>i(a.error??Error(`Outbox transaction aborted`)),a.onerror=()=>i(a.error),o.onerror=()=>i(o.error)})};return{load:e=>r(`readonly`,t=>t.get(e)),save:async(e,t)=>{await r(`readwrite`,n=>t.length>0?n.put(t,e):n.delete(e))},remove:async e=>{await r(`readwrite`,t=>t.delete(e))}}}var S=x(),C=`enso.windows:temp-root-delete`,w={Contacts:`联系方式`,"From Telegram":`来自 Telegram`,"From {{name}}":`来自 {{name}}`,"Not set up":`未配置`,"Waiting to bind":`等待绑定`,"Enable {{name}}":`启用{{name}}`,"Push to this channel":`主动推送`,"Pushes paused":`已暂停推送`,"Send failed":`发送失败`,"Pushes paused: {{count}} sends failed in a row":`已暂停推送:连续 {{count}} 次发送失败`,"The last send failed ({{count}} in a row)":`最近一次发送失败(连续 {{count}} 次)`,"Last failure: {{time}}":`最近一次失败:{{time}}`,"Next try at {{time}}. A message from this channel or Retry now resumes pushes right away.":`{{time}} 再试一次。从这个渠道发来任意一条消息,或点「立即重试」,会马上恢复推送。`,"The next push will try again.":`下一条推送会再试一次。`,"{{count}} pushes held back.":`已有 {{count}} 条推送没发出去。`,"Sends a test message to this channel.":`会往这个渠道发一条测试消息。`,"Pushes to this channel are paused after repeated failures":`这个渠道连续发送失败,推送已暂停`,"Milestones, questions from the secretary, cards and approval notices go out here.":`里程碑、秘书的提问、确认卡与审批提示会推到这里。`,"Confirm cards from the phone":`手机确认卡`,"Off by default. Approvals are never handled from the phone.":`默认关闭。审批永远不能在手机上处理。`,'Off by default. Reply "confirm 1" to confirm a card. Approvals are never handled from the phone.':`默认关闭。回复「确认 1」确认对应的卡;审批永远不能在手机上处理。`,"Mirror every reply":`同步镜像`,"Off by default. Every reply in the secretary conversation is sent here, not just milestones.":`默认关闭。秘书会话里每一轮回复都发到这里,不只是里程碑。`,"Allow viewing memory titles":`允许查看记忆标题`,"No buttons: questions and cards arrive as numbered text.":`没有按钮:提问和确认卡会变成编号文本。`,"Cannot edit sent messages: answered questions are not marked there.":`不能改已发出的消息:答过的提问不会在这里标记。`,"No typing indicator.":`不显示「正在输入」。`,"The Telegram remote plugin (enso.telegram) is enabled. Do not give both the same bot token: only one place can poll a bot, so they would steal each other's messages.":`已启用 Telegram 远程插件(enso.telegram)。两边不要用同一个 bot token:一个 bot 只能有一处在轮询,会互相抢消息。`,"Enable contacts":`启用联系方式`,"Owner identity":`主人身份`,"GitHub accounts that count as you. Events from anyone else are left to the agent unless you require confirmation.":`这些 GitHub 账号算你本人。其他人的事件默认交给 agent 判断,除非你要求必须确认。`,"GitHub accounts":`GitHub 账号`,"Comma or space separated":`用逗号或空格分隔`,"Detected the gh login {{login}} on this machine":`检测到本机 gh 登录账号 {{login}}`,"Fill in":`填入`,"Save GitHub accounts":`保存`,"That is not a GitHub login":`这不是合法的 GitHub 账号`,"Messages that are not from you":`外部渠道的非主人消息`,"Let the agent decide":`交给 agent 判断`,"Require your confirmation":`必须主人确认`,"Contacts are off: nothing is sent or received on any channel.":`联系方式已关闭:所有渠道都不收不发。`,"Find more contact channels in the plugin market":`从插件市场找更多联系方式`,"Reach the secretary from your phone. Milestones go out; your replies come back.":`不在电脑前也能找到秘书:里程碑推到手机,你在手机上回话就是跟秘书说话。`,"Telegram returned an error":`Telegram 返回了一个错误`,"Cannot reach api.telegram.org. Check the proxy.":`连不上 api.telegram.org,检查代理。`,"Bound to @{{username}}":`已绑定 @{{username}}`,"Bot @{{bot}}":`机器人 @{{bot}}`,"Send a test message":`发一条测试消息`,"Test message sent":`测试消息已发出`,Unbind:`解绑`,"Change bot":`更换 bot`,"Allow confirming cards from Telegram":`允许从 Telegram 确认卡片`,"On by default. A tap on your phone can confirm settings, skill, tool, takeover and cleanup cards. Those cards change which projects the secretary sees, what it may take over, which skills and tools it installs and what it cleans up. Approvals are never handled from Telegram.":`默认打开:手机上的一个按钮就能确认设置、技能、工具、接管与清理卡片——这些卡片能改秘书的可见项目、接管范围,装 skill 和工具,也能清理分支与会话。审批无论如何都不能从 Telegram 处理。`,"No system keychain available: the bot token is stored unencrypted on this machine.":`系统钥匙串不可用:bot token 会以明文存在这台机器上。`,"Bot verified":`bot 已校验`,"Open the bot and press Start":`打开 bot 点 Start`,"Binding QR code":`绑定二维码`,"Binding code":`绑定码`,"Valid for {{minutes}} more minutes":`还有 {{minutes}} 分钟有效`,"Open @{{bot}}":`打开 @{{bot}}`,"Copy link":`复制链接`,"Link copied":`链接已复制`,"New code":`重新生成`,"The code works once, in a private chat with this bot only.":`这个码只能用一次,且只在这个 bot 的私聊里有效。`,"Create a bot with @BotFather":`找 @BotFather 建一个 bot`,"Send /newbot, pick a name, and copy the token it gives you.":`发 /newbot,起个名字,把它给的 token 复制过来。`,"Open @BotFather":`打开 @BotFather`,"Paste the bot token":`粘贴 bot token`,"Verify and continue":`校验并继续`,"Bind again with @{{bot}}":`用 @{{bot}} 重新绑定`,"The token is stored with the system keychain and never written to logs.":`token 存在系统钥匙串里,不会写进日志。`,"That does not look like a bot token":`这不像一个 bot token`,"Telegram rejected this token":`Telegram 拒绝了这个 token`,"Paste a bot token first":`先粘贴 bot token`,"Not bound yet":`还没绑定`,"No secretary conversation is available":`没有可用的秘书会话`,"Could not reach the secretary session":`没能把消息送到秘书会话`,"Not allowed from this window":`这个窗口没有权限`,Privacy:`隐私`,"Privacy masking":`隐私脱敏`,"Replace API keys and personal data with placeholders before requests leave this device, and restore them in replies. Original values stay in memory on this device only.":`请求离开本机前把 API Key 和个人信息换成占位符,回复中自动还原。原值只保存在本机内存里。`,"Applies to chats, compaction, bot members and helper requests.":`作用于会话、压缩、Bot 成员和各类辅助请求。`,Secrets:`密钥`,"API keys, tokens, private keys, passwords in URLs and config files.":`API Key、令牌、私钥、URL 和配置文件里的密码。`,"Detect secrets":`识别密钥`,"Recommended. Covers common vendor key formats.":`建议开启,覆盖常见厂商的 key 格式。`,"Send look-alike keys":`发送形似的假 key`,"Replace keys with fake keys of the same format instead of placeholders, so the model treats them as real keys.":`用格式相同的假 key 代替占位符,模型会把它当成真 key 处理。`,"Personal data":`个人信息`,"Detect personal data":`识别个人信息`,"Matches are validated (checksums, real domains) to limit false hits.":`命中会做校验(校验位、真实域名),减少误伤。`,Mask:`脱敏`,"Warn only":`只提醒`,Block:`拦截`,Email:`邮箱`,"Phone number":`手机号`,"ID card number":`身份证号`,"Bank card number":`银行卡号`,"IP address":`IP 地址`,"Custom rules":`自定义规则`,Words:`词语`,"One per line, case-insensitive. Project codenames, customer names…":`每行一个,不区分大小写。项目代号、客户名称等。`,"Prefixes or patterns":`前缀或正则`,"One per line. A prefix like corp_ or a regex like /INC-\\d{4}/i.":`每行一个。可以是前缀如 corp_,或正则如 /INC-\\d{4}/i。`,"Allow list":`允许名单`,"Never mask":`从不脱敏`,"Exact values, one per line. Team emails, test keys…":`完整值,每行一个。团队邮箱、测试 key 等。`,"Try it":`试一试`,"Runs locally. Nothing is remembered or sent anywhere.":`只在本地运行,不记住也不发送任何内容。`,"Paste some text, e.g. an .env file":`粘贴一段文本,例如 .env 文件`,"Nothing matched":`没有命中`,Records:`记录`,"Requested at":`请求时间`,"Auxiliary request":`辅助请求`,Compaction:`压缩`,Hits:`命中`,"Request blocked":`请求已拦截`,"No records yet":`暂无记录`,"Your message":`你的消息`,"Tool output":`工具输出`,"Tool arguments":`工具参数`,"Earlier replies":`之前的回复`,"Tool descriptions":`工具说明`,"Restored {{count}} in the reply":`回复中已还原 {{count}} 处`,"{{count}} values":`{{count}} 个值`,"Privacy masking blocks {{kinds}}. Remove it, or change the action or allow list in Settings → Privacy.":`隐私脱敏拦截了 {{kinds}}。请删掉它,或到「设置 → 隐私」调整动作或允许名单。`,"Will be blocked: {{kinds}}":`将被拦截:{{kinds}}`,"Emails, phone numbers, ID and bank card numbers, IP addresses.":`邮箱、手机号、身份证号、银行卡号、IP 地址。`,"Words and patterns specific to your work.":`与你的工作相关的词语和格式。`,"{{count}} will be masked":`发送时将脱敏 {{count}} 项`,"Classification only, not for chat":`仅用于分类,不能聊天`,"ChatGPT account selected":`已选择 ChatGPT 账号`,"ChatGPT account switched":`ChatGPT 账号已接替`,"ChatGPT account selected: {{account}}":`已选择 ChatGPT 账号:{{account}}`,"ChatGPT account switched: {{previous}} → {{current}}":`ChatGPT 账号已接替:{{previous}} → {{current}}`,"ChatGPT (automatic failover)":`ChatGPT(自动接替)`,"Create ChatGPT account pool":`创建 ChatGPT 自动接替池`,"Pool members":`接替账号`,"Use enabled, signed-in accounts in the listed order. Model and reasoning stay unchanged. Main agents and subagents share this pool.":`按列表顺序使用已启用且已登录的账号。模型和推理设置保持不变,主代理与子代理共用此池。`,"Account disabled":`账号已停用`,"Account signed out":`账号未登录`,"Pool entries do not show a single account quota. Fixed-account entries remain unchanged.":`自动接替池不显示单个账号额度,固定账号条目保持不变。`,"This reply can no longer be retried. Please send your request again.":`这条回复已无法重试,请重新发送需求。`,"Chat image storage is full (200MiB). Message not sent.":`群图片空间已满(200MiB),这条消息未发送。`,"An image is still over 10MiB after compression. Message not sent.":`图片压缩后仍超过 10MiB,这条消息未发送。`,"An attachment is not a supported image. Message not sent.":`附件不是支持的图片格式,这条消息未发送。`,"Could not save the images. Message not sent. Please try again.":`图片保存失败,这条消息未发送,请重试。`,"Add to favorites":`添加收藏`,Appearance:`外观`,"Bold font weight":`粗体字重`,"Terminal shell":`终端 Shell`,"System default":`系统默认`,"Applies to new side panel terminals. SSH projects keep the remote login shell.":`仅对新开的侧边栏终端生效。SSH 项目仍用远端登录 shell。`,"Worktree root directory":`Worktree 根目录`,"Where isolated session worktrees are created. Leave empty to use the app data directory. Existing worktrees stay where they are.":`隔离会话的 worktree 建在此目录下。留空则用应用数据目录。已有 worktree 不迁移。`,"Default location":`默认位置`,"Enter an absolute path":`请输入绝对路径`,"Choose interface theme":`选择界面主题`,"Accent color":`强调色`,"Highlight color used across the interface":`界面高亮使用的颜色`,"Follow theme":`跟随主题`,Theme:`主题`,"Built-in and plugin themes; each one is a set of color tokens":`内置与插件主题,每个主题是一组颜色 token`,"Plugin · {{name}}":`插件 · {{name}}`,"Get more themes":`获取更多主题`,Personalization:`个性化`,"Applied on top of any theme":`在任意主题之上覆盖`,"Used for running state, checkmarks and plan mode":`用于运行状态、勾选与计划模式`,"Custom CSS":`自定义 CSS`,"Inject user.css into every window; saved changes apply immediately":`把 user.css 注入所有窗口,保存即生效`,"Open user.css":`打开 user.css`,"Cannot open user.css":`无法打开 user.css`,Violet:`紫罗兰`,Indigo:`靛蓝`,Teal:`青绿`,Amber:`琥珀`,Graphite:`石墨`,"Color scheme":`配色方案`,Dark:`深色`,Font:`字体`,"Font size":`字号`,"Font weight":`字重`,General:`通用`,"General application settings":`应用通用设置`,"File opening":`文件打开`,"Context menu opening":`右键打开方式`,"File manager":`文件管理器`,"VS Code":`VS Code`,"Change application":`更换应用`,"Configure list":`配置列表`,"Add application":`添加应用`,"Open in {{app}}":`在 {{app}} 中打开`,"No opening methods enabled":`未启用打开方式`,"You can configure up to 32 opening methods.":`最多可配置 32 项打开方式。`,"Select the opening methods shown in file link context menus. You can add multiple applications.":`勾选文件链接右键菜单中显示的打开方式,可添加多个应用。`,"Configure how local workspace file links open by extension.":`按扩展名配置本地工作区文件链接的打开方式。`,"By default, supported files open inside EnsoCode; other files are revealed in the file manager.":`默认在 EnsoCode 内打开支持的文件,其他文件在文件管理器中显示。`,"Executable and installer files are always revealed in the file manager.":`可执行文件和安装包始终在文件管理器中显示。`,"File extension":`文件扩展名`,"Open inside EnsoCode":`在 EnsoCode 内打开`,"Reveal in file manager":`在文件管理器中显示`,"System default application":`系统默认应用`,"Selected application":`指定应用`,"Choose application":`选择应用`,"The selected application path is invalid.":`所选应用路径无效。`,"VS Code is unavailable. Install it or select another application.":`未找到 VS Code,请安装或选择其他应用。`,"Enter a valid file extension, for example .md.":`请输入有效的文件扩展名,例如 .md。`,"This extension does not support internal preview.":`此扩展名不支持内部预览。`,"Choose an application before saving this rule.":`保存此规则前请选择应用。`,"This extension already has an opening rule.":`此扩展名已有打开规则。`,"Image preview":`图片预览`,"Unable to preview this image.":`无法预览此图片。`,"Open in code editor":`用代码编辑器打开`,"Image is too large. Click to load.":`图片过大,点击加载`,"Actual size":`原始尺寸`,"Fit to window":`适应窗口`,"This file format cannot be previewed inside EnsoCode.":`此文件格式无法在 EnsoCode 内预览。`,"The image is too large to preview.":`图片过大,无法预览。`,Updates:`更新`,"Application update settings":`应用更新设置`,"Current version":`当前版本`,"Check for updates":`检查更新`,"Checking for updates…":`正在检查更新…`,"New version {{version}} found":`发现新版本 {{version}}`,"You are on the latest version":`已是最新版本`,"Downloading update… {{percent}}%":`正在下载更新… {{percent}}%`,"New version {{version}} is downloaded. Restarting waits for the current tool to finish; background commands keep running.":`新版本 {{version}} 已下载。重启会在当前工具结束后进行,转到后台的命令会接着跑。`,"Update check failed":`检查更新失败`,"Restart to update":`重启更新`,"Restart to update is already in progress. Please wait.":`正在重启更新,请稍候`,"No downloaded update to install. Check for updates again.":`没有已下载的更新可安装,请重新检查更新`,"Restart to update failed: {{error}}. Try Restart to update again in a moment; if it still fails, quit EnsoCode completely and reopen it.":`重启更新失败:{{error}}。请稍后再点一次「重启更新」;仍不行就完全退出 EnsoCode 再重新打开`,"{{count}} conversation(s) interrupted by app exit":`{{count}} 个会话因应用退出被中断,已在会话里说明原因`,"Update failed: {{error}}":`更新失败:{{error}}`,"Download update":`下载更新`,"New version {{version}} found. This local build can't install it automatically.":`发现新版本 {{version}},本地构建无法自动安装,请手动下载。`,"This local build is signed differently from the release and can't install updates automatically. Download it manually.":`本地构建与正式版签名不一致,无法自动安装更新,请手动下载。`,"Open release page":`打开 Release 页面`,"Download DMG":`下载 DMG`,"Release notes":`更新日志`,"What's new in {{version}}":`{{version}} 更新内容`,"No release notes provided.":`此版本未提供更新日志。`,Restart:`重启`,"Restarting…":`正在重启…`,"Waiting for running commands to restart…":`等命令跑完再重启…`,"Waiting for the current command to finish":`正在等当前命令结束`,"Waiting for the current reply to finish":`正在等这一轮回复写完`,"Running {{tool}}":`正在执行 {{tool}}`,"A subagent is running {{tool}}":`子代理正在执行 {{tool}}`,"Writing a reply":`正在写回复`,"A subagent is writing a reply":`子代理正在写回复`,"Opening the session":`正在打开会话`,"A subagent is opening the session":`子代理正在打开会话`,"A background command is still running":`转到后台的命令还在跑`,"A subagent still has a background command running":`子代理转到后台的命令还在跑`,"Finishing the turn":`正在收尾这一回合`,"A subagent is finishing the turn":`子代理正在收尾这一回合`,"{{count}} more sessions":`还有 {{count}} 个会话`," · waiting for {{count}} sessions":` · 等 {{count}} 个会话`,"Interrupted by a restart, continued below":`因重启中断,已在下方接着写`,"Show the interrupted part":`展开查看`,"Hide the interrupted part":`收起`,"A session is still writing its reply. EnsoCode waits up to {{minutes}} minutes; if it stops producing output for more than {{idle}} seconds, it is stopped first and continues automatically after the restart.":`有会话的回复还在写,最多等 {{minutes}} 分钟;停止输出超过 {{idle}} 秒就先停下,重启后自动接着写。`,"Restarting EnsoCode…":`正在重启 EnsoCode…`,"Restoring sessions…":`正在恢复会话…`,"EnsoCode will restart once the current command finishes.":`当前命令结束后再重启 EnsoCode。`,"EnsoCode will install the update once the current command finishes.":`当前命令结束后再安装更新。`,"EnsoCode will quit once the current command finishes.":`当前命令结束后再退出 EnsoCode。`,"A command moved to the background cannot keep running without EnsoCode (for example a remote or Windows command), so EnsoCode waits for it.":`有转到后台的命令没法脱离 EnsoCode 继续跑(如远程会话或 Windows 上的命令),所以要等它结束。`,"Force quit":`强制退出`,"Restarting once the current command finishes":`等当前命令结束后重启`,"Installing the update once the current command finishes":`等当前命令结束后安装更新`,"Quitting once the current command finishes":`等当前命令结束后退出`,"Restart failed: {{error}}":`重启失败:{{error}}`,"Restart server":`重启服务端`,"Restart server?":`重启服务端?`,"Running tasks are interrupted; this page reconnects after the server is back.":`正在运行的任务会被中断,服务端起来后本页会自动重连。`,"Server updates install the new version with npm and restart.":`服务端(npm 全局安装):用 npm 安装新版本后重启。`,"This server must be updated on the machine itself.":`这台服务端无法远程更新,请在服务器上执行 npm i -g @ensocode/server。`,"Automatic updates":`自动更新`,"Download and install updates automatically":`自动下载并安装更新`,"Restart automatically to apply updates":`自动重启以应用更新`,"When idle":`空闲时`,"Don't wait for idle":`不等空闲`,"Only notify when an update is ready; never restart automatically.":`更新下载完成后只提示,不自动重启。`,"Restart as soon as the update is downloaded, even while agents are running or messages are queued. The restart happens after the current tool finishes, and running sessions keep going afterwards. It still waits while you're using the window (input in the last 2 minutes), while an input box has an unsent draft, or while a question or approval is pending.":`更新下载完成后就重启,有 agent 在跑、有排队消息也不等。重启会在当前工具结束后进行,在跑的会话重启后接着跑。你正在用窗口(2 分钟内有键盘或鼠标输入)、输入框里有未发送的草稿、或者有待回答/待审批时先等。`,"Update channel":`更新渠道`,Stable:`稳定版`,Beta:`内测版`,"Only stable releases.":`只接收正式发布的稳定版。`,"Beta builds come from the latest main branch and may be unstable. You get whichever of beta and stable is newer.":`内测版由 main 分支最新代码自动构建,可能不稳定;内测版和稳定版里哪个更新就更新到哪个。`,"You're on a beta build. Switching to stable doesn't downgrade; you'll move to the next stable release once it's out.":`当前装的是内测版。切回稳定版不会降级,等下一个稳定版发布后自动更新过去。`,"After the update is downloaded, restart automatically if no agent is running, nothing is queued, and there are no pending questions or approvals. The idle state must last 5 minutes, and a focused window also blocks it.":`更新下载完成后,没有 agent 在跑、没有排队消息、也没有待回答/待审批时自动重启。该状态需连续保持 5 分钟;窗口在前台时也会拦住。`,"Network proxy":`网络代理`,"Used by model requests, the built-in browser, and agent tools":`作用于模型请求、内嵌浏览器和 agent 工具`,"Proxy mode":`代理模式`,"Follow system proxy":`跟随系统代理`,"No proxy":`不使用代理`,"Custom proxy":`自定义代理`,"Proxy URL":`代理地址`,"Enter an http(s) proxy URL":`请输入 http(s) 代理地址`,"Custom CA certificate":`自定义 CA 证书`,"Trust an extra CA (PEM file) for model endpoints signed by a private CA. TLS verification stays on.":`为私有 CA 签发的模型接口额外信任一个 CA(PEM 文件),TLS 校验保持开启。`,"Choose certificate file":`选择证书文件`,"Set: {{path}}":`已设置:{{path}}`,"Using NODE_EXTRA_CA_CERTS from the launch environment: {{path}}":`已使用启动环境中的 NODE_EXTRA_CA_CERTS(优先于此设置):{{path}}`,"Not set; using NODE_EXTRA_CA_CERTS from the login shell: {{path}}":`未设置,使用登录 shell 中的 NODE_EXTRA_CA_CERTS:{{path}}`,"Certificate file unavailable ({{reason}}): {{path}}":`证书文件不可用({{reason}}):{{path}}`,"Path must be absolute":`须为绝对路径`,"File not found":`文件不存在`,"Not a file":`不是文件`,"File is not readable":`文件不可读`,"Changes restart the agent process right away (running turns are interrupted). Requests made by the app main process take effect after restarting the app.":`修改后会立即重启 Agent 进程(进行中的回合会中断);主进程侧需重启应用生效。`,Shortcuts:`快捷键`,"Click a shortcut to rebind it. Backspace removes it; Esc cancels.":`点击键位改绑。Backspace 删除;Esc 取消。`,"Remove shortcut":`删除快捷键`,"No shortcut":`无快捷键`,"Toggle sidebar":`折叠/展开侧栏`,"Open settings":`打开设置`,"Switch model":`切换模型`,"Focus chat input":`聚焦输入框`,"Find in conversation":`在对话中查找`,"Search workspace":`搜索工作区`,"Search anything":`搜索任意内容`,"Search conversations...":`搜索会话...`,"Search conversations, browser tabs, settings…":`搜索对话、浏览器标签、设置…`,"Search all projects":`搜索全部项目`,"Switch scope":`切换范围`,Navigate:`选择`,Open:`打开`,"No matching results":`没有匹配结果`,Conversations:`对话`,"This project":`当前项目`,"All projects":`全部项目`,"Include archived":`含归档`,Current:`当前`,Recent:`最近`,"No projects active in the last {{n}} days":`最近 {{n}} 天没有活跃项目`,"No projects in this group yet":`这个分组还没有项目`,Actions:`动作`,"No matching conversations":`没有匹配的会话`,"Search messages...":`搜索消息...`,"Only when the chat input is focused":`仅在输入框聚焦时生效`,"Send message":`发送消息`,"Next coworker tab":`下一个 coworker 标签`,"Previous coworker tab":`上一个 coworker 标签`,"Press shortcut…":`按下新快捷键…`,'Already used by "{{label}}"':`已被「{{label}}」占用`,"Reset to default":`恢复默认`,Language:`语言`,"Windows local command shell":`Windows 本地命令壳`,"Only the Windows local agent command tool. SSH and other platforms stay on bash. Takes effect on the next session.":`只影响 Windows 本机 agent 命令工具。SSH 与其它平台仍用 bash。下次开会话生效。`,"Windows default (PowerShell)":`Windows 默认(PowerShell)`,PowerShell:`PowerShell`,"Git Bash":`Git Bash`,Light:`浅色`,"No favorite themes yet. Click the heart icon to add favorites.":`暂无收藏主题。点击爱心图标添加收藏。`,"No themes found":`未找到主题`,Preview:`预览`,"Remove from favorites":`取消收藏`,"Search themes...":`搜索主题...`,Settings:`设置`,"Settings…":`设置…`,"Search settings":`搜索设置`,"Back to workspace":`返回工作区`,"{{n}} sessions running":`{{n}} 个会话运行中`,"{{n}} waiting for you":`{{n}} 个待确认`,Application:`应用`,"Models & agents":`模型与智能体`,"Tools & extensions":`工具与扩展`,Connections:`连接`,"Show favorites only":`只显示收藏`,"Sync terminal theme":`同步终端主题`,System:`系统`,Terminal:`终端`,"Conversation display":`对话显示`,"Terminal & editor":`终端与编辑器`,"Runtime & sessions":`运行与会话`,"Contacts & owner":`联系方式与主人`,"Secretary & contacts":`秘书与联系`,"Contact channels":`联系渠道`,"Manage in Settings":`在设置里管理`,"Contacts and owner identity are managed in Settings.":`联系方式和主人身份改在设置里管理。`,"Danger zone":`危险操作`,"Where the secretary can be reached and where it pushes updates.":`秘书能在哪里被联系到、往哪里推送。`,Network:`网络`,Shell:`命令行`,"Conversation typography":`会话排版`,"Headings, tables and inline code scale with the body text":`标题、表格与行内代码按正文比例缩放`,Body:`正文`,"Heading 1":`一级标题`,"Heading 2":`二级标题`,"Heading 3":`三级标题`,"Heading 4–6":`四到六级标题`,Table:`表格`,"Inline code":`行内代码`,"Code block":`代码块`,"Reset to defaults":`恢复默认`,"Agent runtime":`Agent 运行`,"Sessions & worktrees":`会话与 Worktree`,"Collaboration & planning":`协作与规划`,Web:`联网`,Execution:`执行`,"Context & memory":`上下文与记忆`,Safety:`安全`,Changes:`改动`,Session:`会话`,Git:`Git`,"Git views":`Git 视图`,"Staged changes":`已暂存`,"Unstaged changes":`未暂存`,"Untracked changes":`未跟踪`,"Changed files":`改动文件`,"List view":`列表视图`,"Tree view":`树状视图`,"Collapse list":`收起列表`,"Expand list":`展开列表`,"No matching files.":`没有匹配的文件。`,Stage:`暂存`,Unstage:`取消暂存`,"Stage all":`暂存全部`,"Unstage all":`取消全部暂存`,"Discard changes":`丢弃修改`,"Delete untracked file":`删除未跟踪文件`,"Delete untracked files":`删除未跟踪文件`,"Delete untracked file {{path}} permanently?":`永久删除未跟踪文件 {{path}}?`,"Restore {{path}} to its staged version? Unstaged changes will be lost.":`将 {{path}} 恢复为暂存版本?未暂存的修改将丢失。`,"Discard…":`放弃…`,"Discard all":`放弃所有`,"Discard untracked":`放弃跟踪`,"Discard {{tracked}} tracked changes, delete {{untracked}} untracked files":`丢弃 {{tracked}} 个已跟踪文件的修改,删除 {{untracked}} 个未跟踪文件`,"Permanently delete {{count}} untracked files":`永久删除 {{count}} 个未跟踪文件`,"Unstaged changes in {{count}} tracked files will be lost; the files are restored to their staged version.":`{{count}} 个已跟踪文件的未暂存修改将丢失,文件本身保留并恢复为暂存版本。`,"Unstaged changes in {{count}} tracked files in {{path}} will be lost; the files are restored to their staged version.":`{{path}} 中 {{count}} 个已跟踪文件的未暂存修改将丢失,文件本身保留并恢复为暂存版本。`,"{{count}} untracked files will be permanently deleted and cannot be recovered.":`{{count}} 个未跟踪文件将被永久删除,删除后无法恢复。`,"{{count}} untracked files in {{path}} will be permanently deleted and cannot be recovered.":`{{path}} 中的 {{count}} 个未跟踪文件将被永久删除,删除后无法恢复。`,"Tracked files are not changed.":`已跟踪文件不受影响。`,"Resolve conflicts first.":`请先解决冲突。`,"{{count}} conflicted":`{{count}} 个冲突`,"Discard and delete {{count}} untracked files":`放弃修改并删除 {{count}} 个未跟踪文件`,"Delete {{count}} untracked files":`删除 {{count}} 个未跟踪文件`,"Commit message":`提交信息`,"Enter commit message…":`输入提交信息…`,"{{count}} staged files":`已暂存 {{count}} 个文件`,Commit:`提交`,Fetch:`获取远程更新`,Pull:`拉取`,Push:`推送`,"No upstream":`未关联上游`,"No upstream branch configured.":`当前分支未关联上游分支。`,"Working tree clean.":`工作区没有改动。`,"Filter changed files…":`筛选改动文件…`,"Workspace is changing. Please wait.":`工作区正在切换,请稍候。`,"Could not read Git status.":`读取 Git 状态失败。`,"Could not complete the Git operation.":`Git 操作失败。`,"Could not load Git history.":`加载提交历史失败。`,"Could not load the changed files.":`加载改动文件失败。`,"Could not load the diff.":`加载差异失败。`,"Could not load the diff viewer.":`加载差异查看器失败。`,"Select a file to view its diff.":`选择文件查看差异。`,"No text changes to display.":`没有可显示的文本差异。`,"Only line endings changed.":`仅换行符发生变化。`,"No commits yet.":`暂无提交。`,"No file changes in this commit.":`该提交没有文件改动。`,"Load more commits":`加载更多提交`,added:`新增`,modified:`修改`,deleted:`删除`,untracked:`未跟踪`,conflicted:`冲突`,Browser:`浏览器`,"New tab":`新建标签页`,"Pin as default tab":`固定为默认标签页`,"Show in all sessions":`在所有会话中显示`,"Unpin default tab":`取消固定默认标签页`,Soon:`即将支持`,Forward:`前进`,"Enter a URL":`输入网址`,"Navigation failed":`导航失败`,"Agent is browsing":`Agent 正在操作`,"Take control":`接管`,"Enso is in control":`Enso 正在接管`,"Toggle Developer Tools":`开关开发者工具`,"Toggle Design Mode":`开关圈选模式`,"Selected UI element":`圈选的界面元素`,"No Composer for this selection":`没有可接收圈选的输入框`,"Add to conversation":`添加到对话`,"Browser data":`浏览器数据`,"RTK command compression":`RTK 命令压缩`,"Compress supported command output before it enters the model context. Takes effect on new conversations.":`在受支持的命令输出进入模型上下文前进行压缩。新会话生效。`,"Protected action confirmation":`受保护操作确认`,"Even in full-access mode, ask before external sends, deletions, payments, deployments and secret-file access. Always on for Bot members not set to Full access. Takes effect on new conversations.":`即使在完全放行模式下,对外发送、删除、付款、部署和访问密钥文件前也要求确认。非完全放行的 Bot 成员始终开启。新会话生效。`,"Protected actions will not ask for confirmation either.":`受保护操作也不再询问。`,"Protected: external send":`受保护:对外发送`,"Protected: delete":`受保护:删除`,"Protected: payment":`受保护:付款`,"Protected: deploy / production":`受保护:部署 / 生产`,"Protected: secrets":`受保护:密钥`,"Protected: destructive command":`受保护:破坏性命令`,"dcg: {{reason}}":`dcg:{{reason}}`,"dcg notice: {{reason}}":`dcg 提醒(不拦截):{{reason}}`,"dcg notice":`dcg 提醒`,"dcg explanation":`dcg 详细说明`,Matched:`命中片段`,Critical:`严重`,"dcg returned invalid output; confirmation required.":`dcg 返回了无法解析的输出,请人工确认。`,"dcg exited abnormally despite allow decision; confirmation required.":`dcg 退出状态异常(即使标记放行),请人工确认。`,"dcg returned malformed warning; confirmation required.":`dcg 返回了格式异常的警告,请人工确认。`,"dcg returned an unknown decision; confirmation required.":`dcg 返回了未知决策类型,请人工确认。`,"dcg required confirmation without details.":`dcg 要求人工确认(未提供规则详情)。`,"Deletes in the shared system Temp folder root, which holds files of other apps; delete only inside the session temp folder.":`在系统共用的 Temp 根目录里删除,那里有其他程序的文件;只应在会话专属临时目录内删除。`,"Safety floor rule — still requires confirmation in full-access mode. Click Adjust to target a specific subdirectory or session temp folder, or Allow once.":`属于安全底线规则,即使在完全放行模式下也会拦截。可点「调整」改用具体子目录或会话专属临时目录,或确认无误后单次放行。`,"Blocked by built-in guard — still requires confirmation in full-access mode. Review the command, click Adjust, or Allow once.":`由内置守卫拦截,即使在完全放行模式下也会确认。请核对命令内容,可点「调整」或确认无误后单次放行。`,"Command guard could not finish rechecking the remaining command; confirm before running.":`命令守卫未能完成其余语句的复检,执行前请人工确认。`,"High-risk safety floor (cannot be exempted) — still requires confirmation in full-access mode. Click Adjust for a safer command or path, or Allow once.":`属于高危安全底线(不可豁免),即使在完全放行模式下也会拦截。可点「调整」更换更安全的命令或路径,或确认无误后单次放行。`,"Guard rule requires confirmation each time — still prompts in full-access mode. Click Adjust for a safer command, or Allow once.":`该守卫规则要求每次确认,即使在完全放行模式下也会拦截。可点「调整」换用更安全的命令,或确认无误后单次放行。`,"Triggered by command guard — still prompts in full-access mode. Click Adjust to change the command or path, or manage exemptions in Settings (auto-suggested after 5 allows).":`由命令守卫拦截,即使在完全放行模式下也会确认。可点「调整」更换命令或路径,或在设置中管理豁免(单次放行 5 次后也可在此直接豁免)。`,"Destructive command guard (dcg)":`破坏性命令守卫(dcg)`,"Check bash and PowerShell commands with dcg before running. Matches such as git reset --hard or recursive deletes always require your confirmation, even in full-access mode. Takes effect on new conversations.":`执行 bash 和 PowerShell 命令前先用 dcg 检查。命中 git reset --hard、递归删除等危险命令时,即使在完全放行模式下也必须由你确认。新会话生效。`,"Not available on this platform":`当前平台不可用`,"Installed v{{version}}":`已安装 v{{version}}`,"Not installed":`未安装`,Install:`安装`,Uninstall:`卸载`,OK:`好`,Integrations:`集成`,"Install 'enso' Command in PATH":`在 PATH 中安装 enso 命令`,"Install Finder Quick Action":`安装访达快速操作`,"'enso' terminal command":`enso 终端命令`,"Finder Quick Action":`访达快速操作`,Troubleshooting:`故障排查`,"Developer tools":`开发者工具`,"Open the console of the main window to see errors and logs.":`打开主窗口的控制台,查看报错和日志。`,"Could not open developer tools":`无法打开开发者工具`,"The main window is closed. Open it and try again.":`主窗口已关闭,请先打开主窗口再试。`,"Couldn't install the 'enso' command":`无法安装 enso 命令`,"Shell command 'enso' installed in {{dir}}.":`已在 {{dir}} 安装 enso 命令。`,"Run `enso .` in a terminal to open the current folder in EnsoCode.":"在终端运行 `enso .` 即可用 EnsoCode 打开当前目录。","Run `enso .` in a terminal to open the current folder in EnsoCode. Links the command into /usr/local/bin and may ask for your password.":"在终端运行 `enso .` 即可用 EnsoCode 打开当前目录。会把命令链接到 /usr/local/bin,可能需要输入密码。","Couldn't install the Finder Quick Action":`无法安装访达快速操作`,"Finder Quick Action installed.":`访达快速操作已安装。`,"Right-click a folder in Finder and choose Services > Open with EnsoCode.":`在访达中右键文件夹,选择「服务」>「用 EnsoCode 打开」。`,"Installing…":`安装中…`,"Operation failed":`操作失败`,"Install dcg":`安装 dcg`,"Downloads dcg v{{version}} from its GitHub release and verifies the checksum. dcg is a third-party tool, not part of EnsoCode.":`从 GitHub Release 下载 dcg v{{version}} 并校验 sha256。dcg 是第三方工具,不属于 EnsoCode。`,"dcg is licensed under MIT with an additional rider: no rights are granted to OpenAI, Anthropic, their affiliates, or anyone acting on their behalf. Install only if this restriction does not apply to you.":`dcg 使用附加限制条款的 MIT 许可证:不授予 OpenAI、Anthropic 及其关联方或代表它们行事的任何人任何权利。仅在该限制不适用于你时安装。`,"Agree and install":`同意并安装`,"Up to date (latest v{{latest}})":`已是最新(最新版 v{{latest}})`,"dcg v{{latest}} is available (built-in v{{current}}). It can be installed after an EnsoCode update ships its checksum.":`发现 dcg 新版 v{{latest}}(内置 v{{current}})。需等 EnsoCode 更新内置校验值后才能安装。`,"GitHub rate limit reached. Try again in an hour.":`GitHub 接口请求已达上限,请一小时后再试。`,"Could not read the latest dcg release.":`无法读取 dcg 最新版本信息。`,"Could not reach GitHub. Check your network.":`无法连接 GitHub,请检查网络。`,"Clear rule exemptions":`清除规则豁免`,"Rule exemptions cleared.":`已清除规则豁免与放过记录。`,"Why it is dangerous":`为什么危险`,"Safer alternative":`安全替代`,"You have allowed this rule {{count}} times. Allow it automatically from now on?":`这条规则你已经放过 {{count}} 次,要不要以后直接通过?`,"Always allow this rule":`以后直接通过`,"Confirm exemption":`确认豁免`,'Allow "{{rule}}" automatically in new conversations? You can revoke this anytime in Settings.':`确认在新会话中自动放行「{{rule}}」?随时可在设置中撤销。`,"Exempted rules":`已豁免规则`,"No rule exemptions.":`暂无规则豁免。`,"This rule is allowed automatically in new conversations until dcg is updated.":`新会话中这条规则将直接通过,dcg 版本更新后失效。`,"Memory write":`记忆写入`,"Secrets redacted":`已脱敏密钥`,"Memory writes awaiting approval":`待批准的记忆写入`,"Bot members need your approval before writing to project or global memory.":`Bot 成员写入项目或全局记忆前需要你批准。`,Compressed:`已压缩`,Unchanged:`未改变`,"Background task started":`后台任务已启动`,Bypassed:`已绕过`,Unavailable:`不可用`,"This is the startup receipt; see the task_output result for final statistics.":`此处为启动回执,最终统计见 task_output 的结果。`,"~{{count}} tokens saved":`约节省 {{count}} tokens`,"Input estimate":`输入估算`,"Output estimate":`输出估算`,"{{count}} tokens":`{{count}} tokens`,Reason:`原因`,"Cookies and site storage of the built-in browser, separate from the app itself.":`内嵌浏览器的 Cookie 与站点存储,与应用本身隔离。`,"Open chat links in the built-in browser":`对话链接在内嵌浏览器打开`,"Clicking a web link in chat opens it in the side panel browser. {{key}}+Click opens it in the external browser.":`点击对话里的网页链接会在侧栏内嵌浏览器打开;{{key}}+点击在外部浏览器打开。`,"{{key}}+Click to open in external browser":`{{key}}+点击在外部浏览器打开`,Cleared:`已清除`,"Clear cookies":`清除 Cookie`,"Clear cache":`清除缓存`,"Clear all browsing data":`清除全部浏览数据`,"Enter a URL above, or let the agent open a page with browser_navigate.":`在上方输入网址,或让 agent 用 browser_navigate 打开页面。`,"Search...":`搜索…`,"Case sensitive":`区分大小写`,"Whole word":`全词匹配`,"Regular expression":`正则`,"Previous match":`上一个`,"Next match":`下一个`,"Use full chat width":`铺满两侧`,"Use reading width":`恢复两侧留白`,"Toggle side panel":`折叠/展开右侧面板`,"Toggle side panel fullscreen":`右侧面板全屏`,"Toggle minimize to tray":`切换最小化到托盘`,"Works while the app is in the tray":`应用在托盘时也能切换`,"Expand side panel":`全屏右侧面板`,"Exit side panel fullscreen":`退出右侧面板全屏`,"New terminal tab":`新建终端标签`,"New terminal when the side panel is focused; otherwise new conversation":`焦点在右侧边栏时新建终端,否则新建会话`,"Close terminal tab":`关闭终端标签`,"Collapse side panel":`折叠右侧面板`,"Select a conversation to use the side panel.":`选择一个会话后使用右侧面板。`,"No tabs yet. Create one to get started.":`还没有标签页,新建一个开始使用。`,"Open Changes when files are edited":`有文件改动时打开 Changes`,"Automatically show the side panel Changes tab after the agent edits a file":`Agent 改文件后自动打开右侧 Changes`,"Open in side panel":`在侧栏打开`,"Compact read-only tool calls":`精简只读工具调用`,"Expand file edits while running":`运行中自动展开文件改动`,"Automatically unfold diffs or written content from file modification tools while the agent is still running":`agent 运行中,文件修改工具的 diff 或写入内容自动展开`,"Expand reasoning while streaming":`流式推理时自动展开`,"Quote button on text selection":`选中文字时显示「引用」按钮`,"Show a floating Quote button when you select text in the conversation; click it to put the selection into the input box as a quote":`在会话里选中文字时浮出「引用」按钮,点击把选中内容作为引用块放进输入框`,Quote:`引用`,"Quote into the input box":`引用到输入框继续对话`,"Quote · {{count}} lines":`引用 · {{count}} 行`,"Truncated · original {{count}} lines":`已截断,原文 {{count}} 行`,"Click to expand":`点击展开`,"Remove quote":`移除引用`,"Automatically unfold the thinking block while the model is still reasoning. It collapses again when reasoning ends.":`模型思考时自动展开推理内容;思考结束后仍自动收起`,"Context compaction strategy":`上下文压缩策略`,"Standard uses default compact. Smart compaction uses Enso verified summary at compact time. Codex native compaction additionally stores an official Codex checkpoint on Codex models and uses smart compaction otherwise. Continuous memory records observations in the background so compact keeps more context; all fall back to default compact on failure. Switching strategy takes effect on the next session. The summary model and compaction mode apply to open conversations on the next compaction.":`标准使用默认压缩。智能压缩在压缩时用 Enso 验证式摘要。Codex 原生压缩在 Codex 模型上额外保存官方 Codex checkpoint,其他模型按智能压缩处理。持续记忆在后台持续记录观察,压缩时保留更多上下文;失败都回退默认压缩。切换策略从下一个会话生效。摘要模型和压缩档位对已打开的对话在下一次压缩时用最新设置。`,Standard:`标准`,"Smart compaction":`智能压缩`,"Codex native compaction":`Codex 原生压缩`,"Continuous memory (experimental)":`持续记忆(实验性)`,"Summary model":`摘要模型`,"Background memory model":`后台记忆模型`,"Compaction mode":`压缩档位`,"Auto (by usage)":`自动(按占用)`,Fast:`快速`,Balanced:`均衡`,Thorough:`详尽`,"Mode changes summary budget and how much recent tail to keep. It does not decide whether compact runs.":`档位只影响摘要细致和留多长尾巴,不决定是否压缩。`,"Follows the session model":`跟随当前会话模型`,"Follow session model":`改跟会话模型`,"Selected model is unavailable — falls back to the session model.":`所选模型已不可用——将回退到当前会话模型。`,"Show read/grep/find/ls as one-line rows and fold consecutive tool calls while the agent is still running":`read/grep/find/ls 显示为单行,agent 运行中也折叠连续的工具调用`,"Auto-collapse previous turns":`自动折叠历史轮次`,"Collapse activity after reply":`回答完成后折叠过程`,"Collapse finished activity while replying":`过程中折叠已完成的调用`,"Wait before folding":`折叠前等待`,"Seconds to wait after tools and thinking finish":`工具和思考都结束后再等这么多秒`,sec:`秒`,"Pin unfinished todos":`固定显示未完成待办`,"Show active sessions in the title bar":`在顶栏显示活跃会话`,"Show active conversations as tabs above the conversation. Hold ⌘/Ctrl to see number shortcuts. Hidden while Bot mode is enabled.":`在对话区上方以标签显示活跃中的会话,按住 ⌘/Ctrl 显示数字快捷键。开启 Bot 模式时不显示。`,"Also show recent conversations":`同时显示最近会话`,"Remove from title bar":`移出顶栏`,"Conversations with messages within this window. Off shows only Active ones.":`这段时间内有过消息的会话;关闭则只显示活跃中的会话。`,"Turn marks":`轮次刻度`,"Marks along the conversation for each turn. Hover to preview, click to jump. Hidden when the chat uses the full width.":`对话旁边的轮次刻度。悬停预览,点击跳转。聊天铺满宽度时不显示。`,Left:`左`,Right:`右`,"Keep the latest todo list above the input while it has unfinished items, so it does not scroll away with the timeline":`最新任务清单还有未完成项时,固定显示在输入框上方,不随时间线滚走`,"Hide until the todo list updates":`隐藏,清单更新后再显示`,"When a reply finishes, fold consecutive thinking and tool calls (including edits and commands) into one summary row; failed calls stay visible":`回答结束后,把连续的思考和工具调用(包括编辑、命令)折成一行摘要;失败的调用仍单独显示`,"While a reply is still running, wait a moment after tools and thinking finish, then fold that stretch into one row. Calls still running stay visible, and failed calls stay visible":`回答还在进行时,工具和思考都结束后稍等片刻,把这一段折成一行。正在跑的调用不收,失败的调用仍单独显示`,"Worked for {{duration}}":`已工作 {{duration}}`,"Patrol clear":`巡检正常`,"Update seen":`已查看`,"Continue goal: {{summary}}":`继续目标:{{summary}}`,"Scheduled: {{summary}}":`定时:{{summary}}`,"Session updates":`会话更新`,"Session updates: {{summary}}":`会话更新:{{summary}}`,"{{count}} thinking steps":`{{count}} 段思考`,Activity:`过程`,"After you send a new message, fold earlier turns down to the question, timestamp and duration; the latest turn stays expanded":`发送新消息后,之前的轮次只保留提问、时间与用时;最后一轮保持展开`,"Notify only for the main agent":`仅主 agent 发送完成通知`,"Skip coworker completion and failure notifications on this computer and the paired phone. Questions and approvals still notify.":`coworker 的回合完成和失败不弹桌面或手机通知。提问和审批仍会提醒。`,"Stop if no output":`无输出则停止`,"Abort and retry the run when no tokens or tool results arrive for this long. Thinking counts as output.":`超过此时长没有 token 或工具结果就中止并重试。思考输出也算有输出。`,Never:`永不`,"{{count}} min":`{{count}} 分钟`,"Compaction reserve tokens":`压缩预留 token`,"Decision models only allow or block when highly confident. Everything else asks you.":`决策模型只在把握很高时才自动放行或拦截,其余都交给你审批。`,"The assistant approval classifier is unavailable.":`助手代审的决策模型不可用。`,"Auto-manage approvals":`全自动托管`,"Auto-allow threshold":`自动放行阈值`,"0.85 (looser)":`0.85(偏松)`,"0.9 (default)":`0.9(默认)`,"0.95 (stricter)":`0.95(偏严)`,"Only runs automatically when the allow probability reaches this value. Operations near the threshold may be allowed one time and not the next.":`放行概率达到该值才自动执行。概率在阈值附近的操作,可能这次放行、下次不放行。`,"Auto-managed: runs only when the decision model is highly confident it is safe. Everything else is denied and the agent tries another way. Protected actions still ask you.":`托管中:只有决策模型高度确信安全的操作才会执行,其余直接拒绝,由 AI 换一种做法继续。受保护操作仍会问你。`,"Auto-managed · allowed":`托管 · 已放行`,"Auto-managed · denied":`托管 · 已拒绝`,"Read-only":`只读`,"Regenerable output":`可再生成`,"Reversible workspace change":`工作区内可回退的改动`,"Possible data loss":`可能丢失数据`,"Changes system state":`改动系统状态`,"Sends data externally":`向外发送数据`,"Unclear target or intent":`目标或意图不明`,"Auto-managed review timed out. Please decide.":`托管判定超时,请你来决定。`,"Auto-managed review failed. Please decide.":`托管判定出错,请你来决定。`,"Auto-managed review returned no valid decision. Please decide.":`托管判定结果无效,请你来决定。`,"Compaction runs when context exceeds the model window minus this value. Larger values compact earlier. Do not set it close to the window of small-context models, or every request compacts first. Leave empty for the default.":`上下文超过「模型窗口 − 此值」时触发压缩,值越大压缩越早。小窗口模型请勿设得过大,接近窗口会导致每次请求前都先压缩。留空使用默认值。`,"Enter a whole number between {{min}} and {{max}}, or leave it empty.":`请输入 {{min}} 到 {{max}} 之间的整数,或留空。`,"Could not save. Check that pi-agent/settings.json is valid JSON.":`保存失败,请检查 pi-agent/settings.json 是否为合法 JSON。`,"Keep in Active after last message":`活跃中留存时长`,"Stays in Active for about {{count}} more min":`活跃中还会保留约 {{count}} 分钟`,"Viewed conversations stay in Active for this long after their last message or your last open while still in Active, then leave. Unviewed ones stay until you open them.":`从最后一条消息或在「活跃中」时最后一次点开算起,此时长内即使已查看也保留,超时后移出;未查看的仍保留到你点开。`,"Auto-retry on transient errors":`瞬态错误自动重试`,"Retry with backoff (up to 60s apart) after 429, 5xx or network errors. Quota and billing errors are never retried. Unlimited keeps retrying until you cancel.":`遇到 429、5xx 或网络错误时退避重试(间隔最长 60 秒)。额度与计费错误不重试。选「无限」会一直重试,直到手动取消。`,"Retry count after 429, 5xx or network errors; off, fixed count or unlimited":`429、5xx 或网络错误后的重试次数:关闭、固定次数或无限`,"Long prompt cache (1 hour)":`长缓存(1 小时)`,"Keep the prompt cache for 1 hour instead of 5 minutes. Saves a lot when turns are more than 5 minutes apart, since the cache no longer expires and gets rewritten every turn, but cache writes cost 2× instead of 1.25×, so rapid follow-ups tens of seconds apart cost more. Anthropic models only. Applies from the next request.":`把 prompt 缓存有效期从 5 分钟延长到 1 小时。轮次间隔超过 5 分钟时能省很多(缓存不再每轮过期重写),但缓存写入单价从 1.25× 涨到 2×,间隔几十秒的快速连续追问反而更贵。仅对 Anthropic 系模型生效,从下一次请求起生效。`,Unlimited:`无限`,"{{count}} times":`{{count}} 次`,"{{count}} day":`{{count}} 天`,"{{count}} days":`{{count}} 天`,"Archive idle conversations":`归档闲置会话`,"Move conversations that have been idle this long into Archived. Does not delete them.":`将闲置超过此天数的会话移入已归档,不会删除。`,"Clean up merged worktrees":`清理已合并 worktree`,"When archiving idle conversations, also remove isolated worktrees that are merged and clean.":`归档闲置会话时,一并清理已合并且干净的隔离 worktree。`,"Delete archived conversations after":`归档超过此天数后删除`,"Permanently delete conversations that have been archived longer than this. This cannot be undone. Choosing a positive value deletes already-overdue archived conversations immediately.":`永久删除归档超过此天数的会话,不可恢复。改成正数会立即删除已超期的归档。`,"No output for {{minutes}} minutes — retrying":`{{minutes}} 分钟没有输出,正在重试`,"Stopped after repeated stalls":`多次卡住后已停止`,"No file changes in this conversation yet.":`本会话还没有文件改动。`,"No changes relative to HEAD.":`相对 HEAD 没有改动。`,"Collapse all":`全部折叠`,"Expand all":`全部展开`,"Not a git repository.":`不是 git 仓库。`,"Git diff is not available for this workspace.":`当前工作区不支持 Git diff。`,"Terminal appearance":`终端外观`,"Color scheme, font, size and weight of side panel terminals":`侧边栏终端的配色、终端字体、字号与字重`,"Theme mode":`主题模式`,"Background image":`背景图`,"Show a custom image behind the interface":`在界面背后显示自定义背景图`,"The current theme has its own background. Turn this on to replace it with your image.":`当前主题自带背景,开启后用你的图片替换`,"Source type":`来源类型`,"Single image":`单张图片`,"Folder (random)":`文件夹(随机)`,"Remote URL":`网络图片`,"Image path":`图片路径`,"Folder path":`文件夹路径`,"Image URL":`图片地址`,"Auto switch":`自动切换`,seconds:`秒`,"Refresh now":`立即刷新`,"Background visibility":`背景可见度`,"Composer opacity":`输入框不透明度`,"Border opacity":`边框不透明度`,"Code block opacity":`代码块不透明度`,Blur:`模糊`,Brightness:`亮度`,Saturation:`饱和度`,Overlay:`遮罩`,"Size mode":`填充方式`,Cover:`覆盖`,Contain:`完整显示`,Repeat:`平铺`,Center:`居中原图`,Search:`搜索`,"No results":`无匹配结果`,"Semantic similarity":`语义相似度`,"Preset is locked after the conversation starts":`对话开始后预设已锁定,不能中途替换`,Path:`路径`,"Welcome to EnsoCode":`欢迎使用 EnsoCode`,"Import your providers and assets from local AI apps to get started. You can skip any step.":`从本地 AI 应用导入服务商与资源即可开始,每一步都可跳过。`,"Sign in with a provider subscription, or import API providers from local AI apps":`使用订阅账号登录,或从本地 AI 应用导入 API 服务`,"Import skills from Claude Code, Codex or Cursor":`从 Claude Code、Codex 或 Cursor 导入技能`,"Scan and import":`扫描并导入`,"{{count}} imported":`已导入 {{count}} 个`,"All set":`全部就绪`,"You can always import more from Settings later.":`之后随时可在设置里导入更多。`,Back:`上一步`,Skip:`跳过`,Next:`下一步`,"Get started":`开始`,Close:`关闭`,Minimize:`最小化`,Maximize:`最大化`,Restore:`还原`,"No new providers imported":`没有新导入的服务商`,"Fetch models for each provider, then enable the ones you want.":`为每个服务商拉取模型,再启用你需要的。`,"Fetch failed":`拉取失败`,"No models yet":`暂无模型,点击拉取`,"Bundle skills, MCP servers and an instruction file into a preset (optional)":`把技能、MCP 服务和一份指令组合成预设(可选)`,"Give subagents their own model, skills and MCP servers (optional)":`为子代理配置专属模型、技能与 MCP 服务(可选)`,"{{count}} presets":`已有 {{count}} 个预设`,"Model Providers":`模型中心`,"Models used by features":`各功能使用的模型`,Providers:`模型服务`,"Automatically fetch models":`自动拉取模型`,"Model fetch interval":`拉取间隔`,"This interval applies when automatic fetching is enabled for this provider.":`开启此服务商的自动拉取后,按此间隔拉取模型。`,"Enter a whole number from {{min}} to {{max}} hours.":`请输入 {{min}}–{{max}} 小时之间的整数。`,hours:`小时`,"Last fetched {{time}}":`上次拉取成功:{{time}}`,"Last fetch failed {{time}}":`上次拉取失败:{{time}}`,"Manage model API providers for this app":`管理应用的模型 API 服务`,"Import from local apps":`从本地应用导入`,"Scan providers configured in local AI apps and import them.":`扫描本机 AI 应用中已配置的服务商并导入。`,"Scanning local apps...":`正在扫描本地应用...`,"Scan failed":`扫描失败`,Rescan:`重新扫描`,"No local apps detected":`未检测到本地应用`,"Supported: Claude Code, Codex, CC Switch, Alma, Cherry Studio, Hermes, OpenClaw, Grok CLI, Cursor":`支持:Claude Code、Codex、CC Switch、Alma、Cherry Studio、Hermes、OpenClaw、Grok CLI、Cursor`,"No importable providers found":`未发现可导入的服务商`,"Already exists":`已存在`,"{{count}} models":`{{count}} 个模型`,"{{count}} selected":`已选 {{count}} 项`,"Import selected":`导入所选`,Done:`完成`,"No providers yet":`暂无服务商`,"Import providers from local apps or add one manually to get started":`从本地应用导入或手动添加服务商以开始使用`,"Add provider":`添加服务`,"Add Provider":`添加服务商`,"Subscription login":`订阅登录`,"Sign in with provider subscriptions (SuperGrok, Claude Pro, ChatGPT, etc.)":`使用订阅账号登录(SuperGrok、Claude Pro、ChatGPT 等)`,"Add account":`添加账号`,"{{count}} accounts":`{{count}} 个账号`,"Log out":`退出登录`,"Starting login...":`正在启动登录…`,"Complete authorization in your browser":`请在浏览器中完成授权`,"Open authorization page":`打开授权页面`,"Enter code":`输入代码`,"Verifying...":`正在验证…`,"resets {{time}}":`{{time}} 重置`,Submit:`提交`,"Edit Provider":`编辑服务商`,Name:`名称`,"API Type":`API 类型`,"Base URL":`Base URL`,"API Key":`API Key`,Models:`模型`,"Add a model id":`添加模型 ID`,"Filter models...":`筛选模型...`,"Filter skills...":`筛选技能...`,"Filter MCP servers...":`筛选 MCP...`,"Filter projects...":`筛选项目...`,"No models match":`没有匹配的模型`,"Enable all":`全部启用`,"Disable all":`全部禁用`,Enable:`启用`,Disable:`禁用`,"Select all":`全选`,"Deselect all":`全不选`,"{{enabled}}/{{total}} enabled":`已启用 {{enabled}}/{{total}}`,"Fetch models":`拉取模型`,"Fetch all models":`拉取全部模型`,"Refresh model info":`刷新模型信息`,"Refresh all models and info":`拉取全部模型与模型信息`,"Model info updated":`模型信息已更新`,"Model info refresh failed, using cache":`模型信息刷新失败,仍使用缓存`,"Model info refresh failed":`模型信息刷新失败`,"Fetched {{count}} providers":`已拉取 {{count}} 个服务商`,"{{ok}} succeeded, {{failed}} failed":`{{ok}} 个成功,{{failed}} 个失败`,"Sync failed ({{failed}})":`同步失败({{failed}} 个)`,"Skipped {{count}} disabled providers":`已跳过 {{count}} 个未启用的服务商`,"No enabled providers to sync":`没有已启用的服务商可同步`,"Test connection":`测试连接`,Authorize:`授权`,Authorizing:`授权中...`,"Revoke authorization":`取消授权`,Connecting:`连接中`,"Not authorized":`未授权`,"Authorized, pending connection":`已授权,待连接`,"Authorized. Conversations that already include this server can use it on the next message.":`已授权。已包含该服务器的对话,下一条消息即可使用。`,"New sessions only":`新会话生效`,"Open sessions keep the previous setting; it applies once you start a new session.":`已打开的会话保持原设置,新建会话后生效。`,"Settings without this tag take effect immediately.":`没有此标签的设置修改后立即生效。`,"Isolated sandbox switches between script and tool-search mode, so open sessions keep the mode they started with.":`隔离沙箱决定会话用脚本模式还是工具检索模式,已打开的会话保持启动时的模式。`,"The / menu updates right away, but open sessions keep the skills they loaded. Start a new session to load the change.":`输入框的 / 菜单会立即更新,但已打开的会话仍使用原来加载的技能,新建会话后才会加载改动。`,"The file panel and terminal use the change right away. Agents in open sessions keep the previous connection settings.":`文件面板和终端立即使用新配置;已打开会话里的代理仍使用原来的连接配置。`,"Newly enabled models can be picked right away. After changing a key or address, an open session uses it once you switch its model or start a new session.":`新启用的模型可以立即选用;修改 API Key 或地址后,已打开的会话需切换一次模型或新建会话才会使用。`,"Always loaded":`常驻`,"On demand":`按需`,"Load mode":`加载方式`,"On demand: tool descriptions are not preloaded into context; the model connects through the mcp tool when needed. Suits servers with many or rarely used tools. Takes effect in new conversations.":`按需:不预先把工具说明放进上下文,模型用到时经 mcp 工具连接;适合工具多、不常用的 server。新会话生效。`,"{{count}} tools":`{{count}} 个工具`,Fetching:`拉取中...`,Testing:`测试中...`,"Fetched {{count}} models":`拉取到 {{count}} 个模型`,"Connected ({{ms}}ms)":`连接成功({{ms}}ms)`,"Connection failed":`连接失败`,Cancel:`取消`,"Confirm exit":`确认退出`,"Exit closes the app completely, so your phone can no longer connect. Minimize to tray keeps the app running in the background so your phone can still connect.":`退出会完全关闭应用,手机将无法连接。最小化到托盘后应用会在后台继续运行,手机仍可连接。`,"Minimize to tray":`最小化到托盘`,Exit:`退出`,"Add a provider subscription or API Key, or import providers from local AI apps":`添加服务商订阅或 API Key,也可从本地 AI 应用导入服务商`,"Add model or provider":`添加模型 / 服务商`,"Import providers from local apps or use the unified setup to get started":`从本地应用导入服务商,或使用统一向导开始配置`,"Choose a provider first. You will select subscription or API Key next.":`请先选择服务商,下一步再选择订阅或 API Key。`,"Choose how to connect":`选择连接方式`,Subscription:`订阅`,"Provider subscription":`服务商订阅`,"ChatGPT (PI login)":`ChatGPT(PI 登录)`,"Sign in in your browser and use your subscription account.":`在浏览器中登录并使用订阅账号。`,"Configure an endpoint and key, then fetch or test its models.":`配置端点和密钥后,再拉取或测试模型。`,"Authorization failed":`授权失败`,"Authorizing {{provider}}":`正在授权 {{provider}}`,"Enter this code in your browser":`请在浏览器中输入此代码`,"Enter the code in your browser":`请在浏览器中输入代码`,"Open authorization page again":`重新打开授权页面`,"Cancel authorization":`取消授权`,"Subscription authorization":`订阅授权`,"No subscription account connected":`尚未连接订阅账号`,"Authorize this provider to add its available models.":`授权此服务商,以添加其可用模型。`,"Connect subscription":`连接订阅`,"Add another account":`添加其他账号`,"Import from Codex":`从 Codex 导入`,"Codex login not found. Sign in to Codex Desktop or CLI first.":`未找到 Codex 登录态,请先在 Codex Desktop 或 CLI 中登录。`,"Codex is not signed in with a ChatGPT account.":`Codex 未使用 ChatGPT 账号登录。`,"This ChatGPT account is already connected.":`该 ChatGPT 账号已连接。`,"Resets {{time}}":`{{time}} 后重置`,Local:`本地`,"Default model":`默认模型`,"Used for new conversations.":`用于普通新对话。`,"Follow last selection":`跟随最后一次选择`,"New conversations use the last model you picked.":`新对话使用你上次选择的模型。`,"Used for new conversations in this project.":`用于本项目的新对话。`,"Used for new conversations in this group.":`用于本组的新对话。`,"Project settings":`项目设置`,"Default model for {{name}}":`{{name}} 的默认模型`,"Follows group, then global default":`跟随分组默认,再跟随全局默认`,"Follows the global default":`跟随全局默认`,"Follow global built-in tools":`跟随全局内置工具`,"When off, configure built-in tools for this project. They override the global setting on the next session.":`关闭后可为本项目单独配置内置工具,优先级高于全局,下次会话生效。`,"Session choice overrides the project default.":`会话里手动选的模型优先于项目默认。`,"Conversation title summary":`会话标题总结`,"Git commit generation":`Git Commit 生成`,"Model and prompt used by the AI button in the Git commit panel.":`Git 提交面板「AI 生成」按钮使用的模型与提示词。`,"Select provider":`选择服务商`,"The selected model is unavailable. Choose another one.":`所选模型不可用,请重新选择。`,"Could not save the prompt":`提示词保存失败`,"Git commit generation is not configured":`尚未配置 Git Commit 生成`,"Choose a provider and model for Git commit generation in Model Providers.":`请先在模型中心为「Git Commit 生成」选择服务商和模型。`,"The selected model is unavailable. Choose another one in Model Providers.":`所选模型不可用,请在模型中心重新选择。`,"Could not generate a commit message":`提交信息生成失败`,"No changes to commit.":`没有可提交的改动。`,"Cancel generation":`取消生成`,"Generate commit message with AI":`AI 生成提交信息`,"Replace the current commit message?":`覆盖当前提交信息?`,"The AI-generated message will overwrite what you have typed.":`AI 生成的内容会覆盖你已输入的提交信息。`,"Model returned an empty commit message.":`模型返回了空的提交信息。`,"Generate a short AI title from the first message of a new conversation.":`新会话发出首条消息后,用 AI 自动生成简短标题。`,"Follows the default model":`跟随默认模型`,"Follow default model":`改跟默认模型`,"Use the default model":`使用默认模型`,"Summarizing title":`标题总结中`,"Title summary failed":`标题总结失败`,"Click to retry":`点击重试`,"Selected model is unavailable — falls back to the default model.":`所选模型已不可用——将回退到默认模型。`,"No default model":`未设置默认模型`,"No usable models":`没有可用模型`,"Image generation":`生图模型`,"Default image generation model":`默认生图模型`,"Selected image generation model is unavailable":`所选生图模型不可用,请检查模型标记、启用状态和 API Key。`,"Generate images with the configured image model and save them to the session scratch directory":`使用默认生图模型生成图片,并保存到会话专属目录。`,"No image generation models available":`没有可用的图像生成模型`,"Enable a model and configure valid provider credentials first.":`请先启用模型并配置有效的服务商凭证。`,"Default model changed: {{previous}} → {{next}}":`默认模型已更改:{{previous}} → {{next}}`,"Subscription credentials are loading. API-key models remain available.":`正在加载订阅凭证,API Key 模型仍可使用。`,"Subscription credentials could not be loaded: {{error}}":`无法加载订阅凭证:{{error}}`,"Subscription credentials are loading. Choose an API-key model or wait, then retry.":`正在加载订阅凭证。请选择 API Key 模型,或等待加载完成后重试。`,"Subscription credentials could not be loaded. Choose an API-key model or retry the credential refresh.":`无法加载订阅凭证。请选择 API Key 模型,或重新加载凭证。`,"Choose a model for this conversation or set a global default before sending.":`发送前请为此对话选择模型,或设置全局默认模型。`,"Choose a model for this conversation or set a project, group, or global default before sending.":`发送前请为此对话选择模型,或设置项目、分组或全局默认模型。`,"No usable model is available. Configure provider credentials and enable a model first.":`没有可用模型。请先配置服务商凭证并启用模型。`,Agent:`Agent`,Agents:`Agent`,File:`文件`,Files:`文件`,Folder:`文件夹`,"Open a file from the tree.":`从左侧树打开文件。`,"This file is too large to open in the editor.":`文件太大,无法在编辑器中打开。`,"This file changed on disk.":`磁盘上的文件已更改。`,Reload:`重新加载`,"Send to conversation":`发送到对话`,"New File":`新文件`,"New Folder":`新建文件夹`,"Copy Path":`复制路径`,"Copy Relative Path":`复制相对路径`,"View File":`查看文件`,"Open in Browser":`在浏览器中打开`,"Open Markdown Preview":`打开 Markdown 预览`,"View Source":`查看源码`,"Reveal in Finder":`在访达中显示`,"Open in Finder":`在访达中打开`,"Open in File Explorer":`在资源管理器中打开`,"Open in File Manager":`在文件管理器中打开`,Editors:`编辑器`,Terminals:`终端`,"Open Containing Folder":`打开所在文件夹`,"Reveal in File Explorer":`在资源管理器中显示`,"This file is outside the workspace and was not written by this conversation. Show it anyway?":`该文件在工作区外,且不是本会话写入的。仍要在文件管理器中显示吗?`,"A file or folder with that name already exists.":`已存在同名文件或文件夹。`,"Invalid name.":`名称无效。`,"Could not complete the file action.":`无法完成该文件操作。`,"Search needs ripgrep (rg). Install it and make sure it is on PATH.":`搜索依赖 ripgrep(rg):请安装并确保它在 PATH 里。`,"Search timed out. Try a more specific query or a smaller folder.":`搜索超时,请换更具体的关键词或缩小目录范围。`,"Could not open local file link":`无法打开本地文件链接`,"The link is outside the current workspace.":`链接位于当前工作区之外。`,"This link is not available on the local computer.":`此链接不在本机工作区中,无法打开。`,"The linked file or folder is unavailable.":`链接的文件或文件夹不可用。`,"Delete {{name}} permanently?":`永久删除 {{name}}?`,"Close others":`关闭其他`,"Close tabs to the right":`关闭右侧标签页`,"Close saved":`关闭已保存`,"Close all":`关闭所有`,"Force close others":`强制关闭其他`,"Force close all":`强制关闭所有`,"Unsaved changes":`未保存的更改`,"This file has unsaved changes. Close anyway?":`此文件有未保存的更改,仍要关闭吗?`,"Some files have unsaved changes. Close anyway?":`有文件未保存,仍要关闭吗?`,Chat:`会话`,Chats:`过去会话`,"Remove chat reference":`移除会话引用`,"Mention suggestions":`提及建议`,"Command suggestions":`命令建议`,"Plugin suggestions":`插件建议`,"Plugin is not enabled":`插件未启用`,Configure:`配置`,"Set (leave blank to keep)":`已设置(留空保持不变)`,"Not set":`未设置`,"Clear value":`清除`,"Saved. New calls use it right away.":`已保存,新的调用立即生效。`,"Host MCP tools it may call":`可调用的宿主 MCP 工具`,"Type @ to choose a file or Agent":`输入 @ 选择文件或 Agent`,Recipient:`接收者`,"Remove Agent recipient":`移除 Agent 接收者`,"Message the selected Agent…":`向所选 Agent 发送消息…`,"Send only to the selected Agent":`仅发送给所选 Agent`,Send:`发送`,"Create or select a project to start a conversation":`创建或选择一个项目以开始对话`,"Compact view":`精简版`,"The built-in browser is not available in full view. Check it on the computer.":`完整版暂不支持内置浏览器,请在电脑上查看。`,Locked:`已锁定`,"This Agent name is reserved":`此 Agent 名称为系统保留名称`,"Fast read-only recon; returns compressed findings":`快速只读调研,返回精简结论`,"Implements a self-contained coding subtask end to end":`端到端实现自包含编码子任务`,"Reviews code or diffs; read-only, returns prioritized issues":`只读审查代码或差异,并按优先级返回问题`,"Dispatched to":`已派发给`,"From plugin {{name}}":`来自插件 {{name}}`,Completed:`已完成`,Failed:`失败`,succeeded:`已成功`,denied:`已拒绝`,running:`进行中`,done:`已完成`,failed:`失败`,unavailable:`不可用`,cancelled:`已取消`,"The conversation binding expired. Retry.":`对话绑定已过期,请重试。`,"The selected Agent type is no longer available.":`所选 Agent 类型已不可用。`,"Model credentials could not be verified.":`无法验证模型凭证。`,"The parent model is unavailable.":`父会话模型不可用。`,"The Agent type is unavailable.":`Agent 类型不可用。`,"Coworker limit reached (active or reserved).":`已达到容量上限(正在运行或已预留的 coworker)。`,"Failed to spawn parent container.":`无法启动父会话容器。`,"Failed to spawn child Agent.":`无法启动子 Agent。`,"Agent worker exited before ready.":`Agent worker 在就绪前退出。`,"Agent session was rejected before ready.":`Agent 会话在就绪前被拒绝。`,"Agent session ready handshake timed out.":`Agent 会话就绪握手超时。`,"Parent ready model did not match the bound model.":`父会话就绪模型与绑定模型不匹配。`,"Child ready identity mismatch.":`子 Agent 就绪身份不匹配。`,"Child ready profile or model mismatch.":`子 Agent 就绪配置或模型不匹配。`,"Failed to prompt child Agent.":`无法向子 Agent 发送任务。`,"Failed to record dispatch.":`无法记录派发结果。`,Target:`目标`,Provider:`服务商`,Account:`账号`,Coworker:`队员`,"Could not load subscription providers":`无法加载订阅服务商`,Save:`保存`,Skills:`技能`,Skill:`技能`,"Skills registered by reference; files stay in their original location":`以引用方式登记,文件仍留在原应用目录`,"No skills yet":`暂无技能`,"Import skills from Claude Code, Codex or Cursor to get started":`从 Claude Code、Codex 或 Cursor 导入技能以开始使用`,"Import skills from local apps":`从本地应用导入技能`,"MCP Servers":`MCP 服务器`,"Model Context Protocol servers available to this app":`应用可用的 MCP 服务器`,"No MCP servers yet":`暂无 MCP 服务器`,"Import MCP servers configured in local AI apps":`导入本机 AI 应用中已配置的 MCP 服务器`,"Import MCP servers from local apps or add one manually to get started":`从本地应用导入或手动添加 MCP 服务器以开始使用`,"Add MCP server":`添加 MCP`,"Add MCP Server":`添加 MCP 服务器`,"Edit MCP Server":`编辑 MCP 服务器`,Transport:`传输方式`,Command:`命令`,"Arguments (one per line)":`参数(每行一条)`,"Environment variables (KEY=VALUE, one per line)":`环境变量(KEY=VALUE,每行一条)`,"Headers (Name: value, one per line)":`请求头(Name: value,每行一条)`,URL:`URL`,"Connection timeout (seconds)":`连接超时(秒)`,"Tool call timeout (seconds)":`工具调用超时(秒)`,"Description (optional)":`描述(可选)`,"One line telling the model what this server is for":`一句话告诉模型这个服务器的用途`,"OAuth client name (optional)":`OAuth 客户端名称(可选)`,"For servers that only accept known OAuth clients":`用于只接受已知 OAuth 客户端的服务器`,"OAuth authorization server metadata URL (optional)":`OAuth 授权服务器元数据地址(可选)`,"Use when the server advertises a wrong authorization server or none":`服务器声明的授权服务器不对或没有声明时填写`,"This MCP server already exists":`该 MCP 服务器已存在`,"Import MCP servers":`导入 MCP 服务器`,Form:`表单`,JSON:`JSON`,"JSON configuration":`JSON 配置`,Format:`格式化`,"Format failed: {{error}}":`格式化失败:{{error}}`,"Generated code is already formatted":`设计器生成的代码已是规范格式`,"Invalid JSON":`JSON 格式错误`,"No MCP servers found in JSON":`JSON 中没有有效的 MCP 服务器`,"JSON must describe a single MCP server":`JSON 只能描述一台 MCP 服务器`,"JSON must describe a single MCP server to switch to the form":`切回表单时 JSON 只能描述一台 MCP 服务器`,"Paste a server object or mcpServers JSON from Cursor / Claude Desktop":`可粘贴单台配置,或 Cursor / Claude Desktop 的 mcpServers JSON`,"Scan local AI apps and register the entries you want to reuse.":`扫描本机 AI 应用,登记你想复用的条目。`,"Nothing importable found":`未发现可导入的条目`,"{{count}} env vars":`{{count}} 个环境变量`,"Imported {{count}} entries":`已导入 {{count}} 项`,"Instruction Files":`指令文件`,Phone:`手机`,"Use your phone as a second screen. Keep this app running.":`把手机当作第二块屏幕。需保持本应用运行。`,"Pair a phone":`配对手机`,"Cancel pairing":`取消配对`,"Failed to start pairing":`发起配对失败`,"Scan with your phone camera":`用手机相机扫码`,"The code expires in 60 seconds and can only be used once.":`配对码 60 秒后失效,且只能使用一次。`,"Pairing QR code":`配对二维码`,"Expires in {{seconds}}s · single use":`{{seconds}} 秒后失效 · 仅可用一次`,"Code expired":`配对码已失效`,"Scanning opens the app and pairs it. To keep it handy, add it to your home screen.":`扫码即可打开并完成配对。想常用的话,打开后添加到主屏幕。`,"Paired devices":`已配对设备`,"No paired devices":`暂无已配对设备`,"Pair a phone to view sessions and reply on the go.":`配对手机后即可随时查看会话并回复。`,"Secure storage is unavailable on this system, so pairing keys are stored unencrypted.":`当前系统不支持安全存储,配对密钥将以未加密方式保存。`,"Waiting for phone":`等待手机`,Online:`在线`,Offline:`离线`,"Relay server":`中继服务器`,"The relay only forwards encrypted frames and cannot read your messages.":`中继只转发密文,无法读取你的消息内容。`,"Global CLAUDE.md / AGENTS.md style files from local AI tools":`本机 AI 工具的全局 CLAUDE.md / AGENTS.md 类文件`,"No instruction files yet":`暂无指令文件`,"Only one file is active at a time; enabling one disables the others":`同一时间仅一份生效(注入会话);启用一份会自动关闭其余`,"Import global instruction files configured in local AI tools":`导入本机 AI 工具中已配置的全局指令文件`,"Import instruction files from local apps or add one manually to get started":`从本地应用导入或手动添加指令文件以开始使用`,"Add instruction":`添加指令`,"Add Instruction":`添加指令文件`,"An instruction with this name already exists":`已有同名指令文件`,"Import instruction files":`导入指令文件`,"Same content":`内容相同`,"Same name":`同名`,"Edit Instruction":`编辑指令文件`,Content:`内容`,"Loading...":`加载中...`,Linked:`链接`,"Local copy":`本地副本`,"Local copy — edits stay in this app.":`本地副本 —— 修改只保存在应用内。`,"Write back to original file":`直接修改原文件`,"Saving creates a local copy — {{path}} is left untouched, and this entry stops following its updates.":`保存后会复制一份到应用内 —— {{path}} 不会被改动,此条目也将不再跟随其更新。`,"Saving overwrites {{path}} directly — {{source}} will pick up the change.":`保存会直接覆盖 {{path}} —— {{source}} 会随之生效。`,"Overwrite original":`覆盖原文件`,"Save as local copy":`保存为本地副本`,"Failed to read content":`读取内容失败`,"Failed to save":`保存失败`,Model:`模型`,"Working directory":`工作目录`,"Ask the agent…":`想让 agent 做什么…`,"Thinking…":`思考中…`,"Thought process":`思考过程`,"Collapse thinking":`收起思考过程`,"Thought for {{duration}}":`思考了 {{duration}}`,"Working…":`生成中…`,"Map the project":`梳理项目结构`,"Entry points, modules and key dependencies":`入口、模块划分与关键依赖`,"Walk me through this project's structure: entry points, module layout and key dependencies.":`梳理一下这个项目的结构:入口、模块划分和关键依赖。`,"Find potential issues":`排查潜在问题`,"Suspicious logic and unhandled edge cases":`找出可疑逻辑与未处理的边界情况`,"Review this project for potential bugs, suspicious logic and unhandled edge cases, and list them by severity.":`检查这个项目里的潜在 bug、可疑逻辑和未处理的边界情况,按严重程度列出来。`,"Add unit tests":`补充单元测试`,"Cover the core modules with tests":`为核心模块补上测试`,"Find the core modules that lack tests and add unit tests for them.":`找出缺少测试的核心模块,并为它们补充单元测试。`,"Summarize recent changes":`总结最近改动`,"A digest based on git log":`基于 git log 生成变更摘要`,"Summarize the recent changes in this repository based on git log.":`根据 git log 总结这个仓库最近的改动。`,"Loading Mermaid diagram...":`加载 Mermaid 图表...`,"Mermaid render error":`Mermaid 渲染错误`,"Mermaid render failed":`Mermaid 渲染失败`,"Mermaid preview":`Mermaid 预览`,"Zoom in":`放大`,"Zoom out":`缩小`,"Reset zoom":`重置缩放`,"Fit to original size":`适应初始大小`,"View fullscreen":`全屏查看`,"Exit fullscreen":`退出全屏`,"Export SVG":`导出 SVG`,"Export PNG":`导出 PNG`,"Diagram is too large for PNG, exported SVG instead":`图太大,无法导出 PNG,已改为导出 SVG`,"PNG export failed, exported SVG instead":`PNG 导出失败,已改为导出 SVG`,Projects:`项目`,All:`全部`,Ungrouped:`未分组`,"New group":`新建分组`,"Edit group":`编辑分组`,"All groups":`全部分组`,"Search in {{group}}...":`在「{{group}}」中搜索...`,"Delete group":`删除分组`,"No color":`无颜色`,"Project group":`项目组`,Alias:`别名`,"Shown in the sidebar instead of the folder name. Leave blank to reset.":`在侧边栏代替目录名显示,留空则恢复默认。`,"Groups organize projects in the sidebar.":`用分组整理侧栏里的项目。`,"Move projects into this group":`选择要移入的项目`,"Move to group":`移动到分组`,"Open folder":`打开文件夹`,Emoji:`表情符号`,"Add project":`添加项目`,"Adding...":`正在添加...`,"Add a project to start":`添加一个项目开始`,"Temporary chats":`临时会话`,"Drop shelf":`拖放浮窗`,Secretary:`秘书`,"A global agent that watches your projects and sessions, creates sessions to do the work, and reports results back to you.":`一个全局 Agent:替你查看各项目与会话的进展,创建普通会话派活,并把结果回报给你。`,"When you drag files in Finder, a small panel appears at the top right of the screen. Drop them on it to reference them in the current conversation, or drop folders to open them as projects, even when EnsoCode is minimized or in the tray.":`在访达中拖动文件时,屏幕右上角会出现一个小浮窗:把文件拖到上面即可引用到当前会话,拖文件夹还可选择作为项目打开;EnsoCode 最小化或在托盘时同样可用。`,"Drop here to add to the conversation":`拖到这里,添加到会话`,"Reference files in the current conversation":`松手即可引用到当前会话`,"Reference as files":`作为文件引用`,"Opening project":`正在打开项目`,"Opening {{count}} projects":`正在打开 {{count}} 个项目`,"Added 1 file":`已添加 1 个文件`,"Added {{count}} files":`已添加 {{count}} 个文件`,"{{name}} and more":`{{name}} 等`,"Start a temporary chat":`开始临时会话`,"Chats that are not tied to a project. Tools follow your global settings.":`不挂项目的会话。工具跟随全局设置。`,"Add a local directory as the conversation working folder.":`把本地目录加为对话的工作目录。`,"Type a path or select from recent projects...":`输入路径或从最近项目中选择...`,"Local directory":`本地目录`,"Remote (SSH)":`远程(SSH)`,"SSH host":`SSH 主机`,"user@host or an alias from ~/.ssh/config":`user@host 或 ~/.ssh/config 里的别名`,"Remote directory":`远端目录`,Up:`上级`,"Use this directory":`选择此目录`,"No subdirectories":`没有子目录`,"Invalid folder name.":`文件夹名称无效。`,"Folder name":`文件夹名称`,"Failed to list remote directory.":`远程目录列取失败。`,"Requires key-based SSH access. Tools run on the remote host; chat history stays local.":`需要免密钥 SSH 访问。工具在远端主机执行,聊天记录保存在本地。`,"Tools run on the remote host; chat history stays local.":`工具在远端主机执行,聊天记录保存在本地。`,"SSH connection":`SSH 连接`,"Select an SSH connection":`选择 SSH 连接`,"Add an SSH connection in Settings first.":`请先在设置里添加 SSH 连接。`,SSH:`SSH`,Usage:`用量`,"Token usage across all local sessions; cost is estimated from catalog prices.":`统计本机全部会话的 Token 用量;费用按目录单价估算,可在下方覆盖。`,Today:`今天`,"7D":`7 天`,"30D":`30 天`,"90D":`90 天`,"Estimated cost":`预估费用`,"Total tokens":`总 Token`,"Input tokens":`输入 Token`,"Output tokens":`输出 Token`,"Cache tokens":`缓存 Token`,"Active time":`活跃时长`,Sessions:`会话数`,Messages:`消息数`,"Daily trend":`每日趋势`,Input:`输入`,Cache:`缓存`,Token:`Token`,Cost:`费用`,"Activity by hour":`分时活跃`,Less:`少`,More:`多`,Sun:`周日`,Mon:`周一`,Tue:`周二`,Wed:`周三`,Thu:`周四`,Fri:`周五`,Sat:`周六`,"By model":`按模型`,"By project":`按项目`,"By member":`按成员`,"Last 7 days":`近 7 天`,"Last 30 days":`近 30 天`,"Daily budget":`每日预算`,"Cost (USD), empty = unlimited":`成本(美元),留空不限`,"Daily cost limit (USD)":`每日成本上限(美元)`,"Tokens, empty = unlimited":`Token 数,留空不限`,"Daily token limit":`每日 Token 上限`,"Resets at local midnight. Once reached, new messages to this member are refused and a running reply is stopped.":`按本地时间零点重置。用完后新消息会被拒绝,正在进行的回复会被停止。`,"Today's budget is used up":`今日预算已用完`,"Budget must be a positive number":`预算必须是正数`,"Delegation time limit (minutes)":`委派时限(分钟)`,"Empty = 240":`留空 = 240`,"When other members delegate to this one, the task fails with a timeout after this long. A delegator can ask for less, not more.":`其他成员委派给该成员时,超过这个时长未完成即判超时失败。发起方只能要求更短,不能更长。`,"Check the per-turn token limit and delegation time limit":`请检查单回合 Token 上限(正整数)与委派时限(1–1440 的整数分钟)`,"Per-turn token limit":`单回合 Token 上限`,"A single reply that uses more tokens than this (counted while streaming) is stopped.":`单次回复(流式累计)用量超过该值即被停止。`,"Stopped: the member's per-turn token limit was exceeded.":`已停止:超出成员的单回合 Token 上限。`,"This member's daily budget is used up. Try again tomorrow or raise the budget.":`该成员今日预算已用完,请明天再试或调高预算。`,"Over budget":`超出预算`,"The member's daily budget is used up.":`成员今日预算已用完。`,Budget:`预算`,"{{name}}'s budget for today is used up":`{{name}} 今日预算已用完`,"Daily cost limit reached. New messages are refused until local midnight.":`已达每日成本上限,本地时间零点前新消息会被拒绝。`,"Daily token limit reached. New messages are refused until local midnight.":`已达每日 Token 上限,本地时间零点前新消息会被拒绝。`,"No usage in this period":`该周期内没有用量`,"Top {{count}} of {{total}}":`共 {{total}} 项,显示前 {{count}} 项`,"{{total}} items":`共 {{total}} 项`,"(no project)":`(无项目)`,"No catalog price for: {{models}}. Their cost is not included.":`以下模型无目录单价:{{models}},其费用未计入。`,"Unit prices":`单价`,"Rates used for cost estimates ($/M tokens).":`费用估算用的单价($/百万 tokens)。`,"Show all":`显示所有`,"Show all {{count}} lines":`显示全部 {{count}} 行`,"Raw text":`原文`,"Search table":`搜索表格`,"No matching models":`没有匹配的模型`,"Model id":`模型 id`,"Enter a model id and non-negative rates.":`请填写模型 id 和非负单价。`,Reset:`重置`,Refresh:`刷新`,"Saved hosts for remote projects. Passwords stay in the system keychain.":`远程项目用的主机。密码保存在系统钥匙串。`,"Add connection":`添加连接`,"No SSH connections yet":`还没有 SSH 连接`,"SSH timeout":`SSH 超时`,"Time limit for connection tests, loading remote AGENTS.md, remote folder browsing and file panel actions. Agent tool commands are not affected.":`连接测试、读取远端 AGENTS.md、浏览远程目录和文件面板操作的超时时间。不影响 Agent 工具执行的命令。`,"Add SSH connection":`添加 SSH 连接`,"Edit SSH connection":`编辑 SSH 连接`,"Key / agent":`密钥 / agent`,Password:`密码`,Authentication:`认证方式`,"User (optional)":`用户(可选)`,"Port (optional)":`端口(可选)`,Host:`主机`,Test:`测试`,"SSH connection succeeded":`SSH 连接成功`,"Unknown SSH host":`未知 SSH 主机`,"Trust this host and add its key to known_hosts?":`信任此主机并把密钥写入 known_hosts?`,Trust:`信任`,"Could not save host key.":`无法保存主机密钥。`,"Password (leave blank to keep)":`密码(留空则保持原密码)`,"Failed to add project":`添加项目失败`,"Failed to add project.":`添加项目失败。`,"New project":`新建项目`,"Only folders can be added as projects":`只能将文件夹添加为项目`,"At most {{count}} folders can be added at once":`一次最多添加 {{count}} 个文件夹`,"Release to add":`松开以添加`,"Open as project":`作为项目打开`,"Add {{count}} projects":`将添加 {{count}} 个项目`,"Add all":`全部添加`,"Add to current conversation":`添加到当前会话`,"Open a conversation to add files":`请先打开一个会话再添加文件`,Browse:`浏览`,"No matching projects found":`没有匹配的项目`,Add:`添加`,"New conversation":`新对话`,"Local workspace":`本地工作区`,"Workspace moved to an isolated worktree":`工作区已迁移到隔离 worktree`,"Workspace fell back to the main working tree":`工作区已回退到主工作树`,"Work directly in the main working tree":`直接在主工作树里工作`,"Run this session on its own git worktree":`让这个会话在独立的 git worktree 里运行`,"Move to worktree":`切到隔离 worktree`,"Failed to move to worktree":`切到隔离 worktree 失败`,"Move to project…":`移动到项目…`,"Add to project…":`添加到项目…`,"Failed to move conversation":`移动会话失败`,"Cannot move a running conversation":`运行中的会话不能移动`,"Cannot move while its worktree is in use":`会话的 worktree 正在使用,暂不能移动`,"Secretary conversations cannot be moved":`秘书会话不能移出秘书`,"Import conversations from another project…":`导入其他项目的会话…`,"Import conversations from another project":`导入其他项目的会话`,"Pick a project. All of its conversations, archived ones included, are brought into {{name}}.":`选择一个项目,它的全部会话(含已归档)将导入到 {{name}}。`,"Move to this project":`移动到此项目`,"Copy to this project":`复制到此项目`,"The conversations leave the original project and show up only here. Session files stay as they are; nothing is copied or deleted.":`会话从原项目移到这里,原项目中不再显示。会话记录文件原样保留,不复制也不删除。`,"The original project keeps its conversations unchanged; this project gets an independent copy.":`原项目中的会话原样保留,此项目得到一份独立的副本。`,"The source project folder no longer exists, so moving is preselected.":`源项目的目录已不存在,默认选择移动。`,"Already copied here {{count}} times. Copying again adds another independent copy.":`已复制到此项目 {{count}} 次,再次复制会再生成一份独立副本。`,"Copy here":`复制到此项目`,"Moving…":`正在移动…`,"Copying…":`正在复制…`,"Copied {{count}} conversations":`已复制 {{count}} 个会话`,"Copied {{moved}} conversations; {{count}} running ones were not copied":`已复制 {{moved}} 个会话,{{count}} 个运行中的会话未复制`,"Failed to remove project":`移除项目失败`,"The old project has no conversations left. Remove it from the list?":`旧项目已经没有会话了,要从列表中移除吗?`,'"{{name}}" is only removed from the EnsoCode list. Its folder and files on disk are not deleted.':`只会把「{{name}}」从 EnsoCode 列表中移除,磁盘上的目录和文件不会被删除。`,"Move here":`移动到此项目`,"No other projects":`没有其他项目`,"{{count}} conversations":`{{count}} 个会话`,"Failed to import conversations":`导入会话失败`,"Imported {{count}} conversations":`已导入 {{count}} 个会话`,"No conversations to import":`没有可导入的会话`,"Imported {{moved}} conversations; {{count}} running or busy ones stay in the original project":`已导入 {{moved}} 个会话,{{count}} 个运行中或占用中的会话留在原项目`,"Main working tree has uncommitted changes":`主工作树有未提交改动`,"The new worktree branches off HEAD, so those changes stay in the main working tree and will not follow this session.":`新 worktree 从 HEAD 切出,这些改动会留在主工作树,不会跟随本会话。`,"Move anyway":`仍然切换`,"Clean up worktree":`清理 worktree`,"Clean up worktree?":`清理 worktree?`,"Failed to clean up worktree":`清理 worktree 失败`,"Reload conversation":`重新读取会话`,"Failed to reload conversation":`重新读取会话失败`,"Restart conversation (reload settings)":`重启会话(重新加载配置)`,"Failed to restart conversation":`重启会话失败`,"Clean up":`清理`,"Archive session and clean up worktree?":`归档会话并清理 worktree?`,"Pending work: {{warning}}. This session returns to the main working tree. The worktree directory and uncommitted changes are removed only when no other sessions use it. The branch is kept.":`待处理工作:{{warning}}。本会话将回退主工作树。仅在没有其他会话使用此 worktree 时,才删除目录及未提交改动;分支会保留。`,"uncommitted changes will be lost":`未提交改动将丢失`,"{{n}} unmerged commits (branch is kept)":`{{n}} 个未合并提交(分支会保留)`,"Pending work: {{warning}}. This conversation will be removed. Its worktree directory and uncommitted changes are removed only when no other sessions use it. The branch is kept.":`待处理工作:{{warning}}。本会话将被移除。仅在没有其他会话使用此 worktree 时,才删除目录及未提交改动;分支会保留。`,"Isolated worktree":`隔离 worktree`,"New isolated worktree":`新建隔离 worktree`,"Existing worktrees":`已有 worktree`,"New conversation in this worktree":`在此 worktree 新建会话`,"Rename worktree":`重命名 worktree`,"Worktree name":`Worktree 名称`,"Only the display name changes, for all sessions in this worktree. Leave empty to use the branch name.":`仅修改此 worktree 所有会话的显示名称,不改变分支或目录。留空恢复分支名。`,"Failed to rename worktree":`重命名 worktree 失败`,"Failed to use worktree":`使用 worktree 失败`,"Failed to create conversation":`新建会话失败`,"Switch branch":`切换分支`,"Back to workspaces":`返回工作区`,"Local branches":`本地分支`,"Search local branches":`搜索本地分支`,"Switching branches affects all conversations in this workspace.":`切换分支会影响此工作区的所有会话。`,"Create branch from HEAD…":`从当前 HEAD 新建分支…`,"Create branch":`新建分支`,"Create and switch":`新建并切换`,"Branch name":`分支名称`,"Detached HEAD":`分离 HEAD`,"No matching local branches.":`没有匹配的本地分支。`,"Failed to load branches":`读取分支失败`,"Failed to switch branch":`切换分支失败`,"Creates a branch from the current HEAD and switches every conversation in this workspace to it.":`从当前 HEAD 新建分支,并将此工作区的所有会话切换到该分支。`,"Create a commit before creating a branch from HEAD.":`请先创建一个提交,再从 HEAD 新建分支。`,"Stop running conversations and coworkers in this workspace before switching branches.":`请先停止此工作区中运行的会话和协作者,再切换分支。`,"Commit or stash uncommitted changes before switching branches.":`请先提交或暂存(stash)未提交改动,再切换分支。`,"This workspace is busy. Try again when its conversations are ready.":`此工作区正忙,请等待会话就绪后重试。`,"Branch is checked out in another worktree.":`此分支已被其他 worktree 占用。`,"Enter a valid Git branch name.":`请输入有效的 Git 分支名称。`,"A branch with this name already exists.":`同名分支已存在。`,"This branch no longer exists. Refresh the branch list.":`此分支已不存在,请刷新分支列表。`,"This workspace is already on that branch.":`此工作区已在该分支上。`,"Branches are not available for this workspace.":`此工作区无法使用 Git 分支。`,"Git could not switch branches.":`Git 无法切换分支。`,"Wait for the workspace operation to finish before saving.":`请等待工作区操作完成后再保存文件。`,"Worktree missing":`Worktree 已丢失`,"Worktree status unknown":`Worktree 状态未知`,"Uncommitted changes":`有未提交改动`,"Working tree clean":`工作区干净`,"{{n}} unmerged commits":`{{n}} 个未合并提交`,"Isolated worktree · uncommitted changes":`隔离 worktree · 有未提交改动`,"{{n}} browsers":`{{n}} 个浏览器`,"{{n}} terminals":`{{n}} 个终端`,"Isolated worktree · {{n}} unmerged commits":`隔离 worktree · {{n}} 个未合并提交`,"Isolated worktree is missing":`隔离 worktree 已丢失`,'The worktree of this session was deleted. Rebuild it from branch "{{branch}}" (committed work is preserved), or fall back to the main working tree.':`该会话的 worktree 已被删除。可从分支「{{branch}}」重建(已提交的工作会保留),或回退到主工作树继续。`,"Fall back to main working tree":`回退主工作树`,"Rebuild worktree":`重建 worktree`,"Failed to rebuild worktree":`重建 worktree 失败`,"Remove project":`移除项目`,"Archive project":`归档项目`,"Unarchive project":`恢复项目`,"Pin project":`置顶项目`,"Unpin project":`取消置顶项目`,"Pinned projects":`置顶项目`,"Select or create a conversation":`选择或新建一个对话`,"Collapse sidebar":`折叠侧边栏`,"Show {{n}} more":`展开其余 {{n}} 条`,"Archive {{n}} conversations":`归档 {{n}} 条会话`,Collapse:`收起`,Expand:`展开`,"Expand sidebar":`展开侧边栏`,"Show or hide sidebar":`显示/隐藏侧边栏`,"Approval required":`需要审批`,"Timed out · denied":`已超时拒绝`,"Timed out · no answer":`已超时未回答`,"{{time}} left":`剩余 {{time}}`,"Waiting for your answer":`等待你回答`,"Custom answer":`自定义回答`,"No answer in time; the default was selected":`超时未回答,已自动选择默认项`,Selected:`已选`,"Type an answer…":`输入回答…`,Later:`稍后`,Recommended:`推荐`,"Files read":`读入的文件`,"Tool results":`工具输出`,"About {{tokens}} left":`大约还剩 {{tokens}}`,"{{count}} more":`其余 {{count}} 项`,"Earlier {{count}} turns":`更早的 {{count}} 轮`,"Turn {{count}}":`第 {{count}} 轮`,"Compacted summary":`压缩摘要`,"System reminders":`系统提醒`,"Message will queue until this round finishes…":`消息将排队,本轮结束后发送…`,"Press {{key}} to steer the next queued message into this round…":`按 {{key}} 将下一条排队消息插入本轮…`,Queued:`排队`,"Withdraw message":`撤回`,"Not sent":`未发送`,"Not sent: the previous turn is stuck and could not be interrupted. Restart the conversation, then resend.":`未发送:上一轮卡住了,停不下来。请先重启会话再重发`,"Restart conversation":`重启会话`,Resend:`重发`,"Delivery unconfirmed":`送达待确认`,attachments:`个附件`,Edit:`编辑`,"Send now":`立即发送`,"Interrupt and send now":`打断并立即发送`,Remove:`移除`,"Agent types":`子代理类型`,"Max active coworkers":`同时在编 coworker 上限`,"How many coworkers one conversation can keep at once. Existing ones stay if you lower the limit; hire more only after dismissing. Subagents are not counted.":`单个会话最多同时保留多少个 coworker。调低上限不会解散现有成员,雇新的前需先解雇。subagent 不计入。`,"Built-in tools":`内置工具`,"Toggle the built-in tools available to agents.":`开关 agent 可用的内置工具。`,"Try these models' built-in search in order. Credentials resolve at call time; if all fail, the keyless Exa service is the permanent fallback.":`按顺序尝试这些模型的原生搜索。凭证在调用时现取;全部失败时由免 key 的 Exa 服务永久兜底。`,"Default: use the current session model's built-in search when available, otherwise Exa.":`默认:优先使用当前会话模型的原生搜索能力,不支持时回退 Exa。`,"Add candidate":`添加候选`,"Final fallback: Exa (keyless hosted search). Not a chain entry; always last.":`最终兜底:Exa(免 key 托管搜索)。不是链条目,永远在最后。`,"Isolated sandbox":`隔离沙箱`,Memory:`记忆`,"Durable knowledge the agent can search and write across sessions. Stored locally in a SQLite database.":`可跨会话检索与写入的持久知识,本地存放在一个 SQLite 库里。`,"Enable memory tools":`启用记忆工具`,"Gives the agent memory_search, memory_capture, memory_crystallize and memory_delete. The database is only created after you enable this.":`给 agent 提供 memory_search、memory_capture、memory_crystallize 与 memory_delete。开启后才会创建数据库。`,"Memory is off. The settings below take effect once you enable it.":`记忆已关闭。开启后下面的设置才会生效。`,"Embedding model":`嵌入模型`,"Used for semantic search and near-duplicate detection. Without it search still works using full-text only.":`用于语义检索与近重复识别。没有它检索仍可用,只是退化为纯全文。`,"Remote (OpenAI-compatible)":`远程(OpenAI 兼容)`,"Unknown model; the default is used instead.":`未知模型,实际使用默认模型。`,"Model downloaded":`模型已下载`,"Model not downloaded":`模型未下载`,"Downloading…":`下载中…`,"Semantic search stays off until the model is on disk.":`模型落盘前语义检索不会生效。`,"Remote (API model)":`远程(API 模型)`,Experimental:`实验功能`,"Bot mode":`Bot 模式`,"Chat with AI members that have personas, form groups and delegate work. Off by default.":`与有人设的 AI 成员私聊、拉群并互相委派工作。默认关闭。`,"Bot mode is turned off.":`Bot 模式已关闭。`,Download:`下载`,"Remote model":`远程模型`,"Credentials stay in the main process and are never sent to the renderer.":`凭证只留在主进程,不会下发到渲染层。`,"Unload automatically when idle":`空闲自动卸载`,"Release local model memory after this idle period. Models load automatically the next time they are needed.":`空闲达到此时长后释放本地模型内存,下次需要时会自动加载。`,"Download models automatically":`自动下载模型`,"Off by default, so a model is only fetched when you press Download. While a model is missing, search degrades to full-text; existing memories are re-embedded once it arrives.":`默认关闭,模型只在你点「下载」时才获取。模型缺失期间检索降级为纯全文,模型就绪后已有记忆会自动补向量。`,Distillation:`提炼`,"Distillation model":`提炼模型`,"Reads finished sessions and writes the memories.":`读已结束的会话并写出记忆。`,"Follows the title-summary model":`跟随标题模型`,"Memory language":`记忆语言`,"English keeps retrieval and near-duplicate detection stable across languages. Choose Follow conversation if your team only works in one language.":`英文能让跨语言的检索与近重复识别更稳。团队只用一种语言时可选「跟随对话」。`,English:`英文`,"Simplified Chinese":`简体中文`,"Background processing":`后台处理`,"Distill sessions automatically":`自动提炼会话`,"When a session ends, or goes idle for 30 minutes and is reclaimed, extract 1-3 durable memories from it in the background.":`会话结束、或空闲 30 分钟被回收时,在后台从中提炼 1-3 条值得长期保留的记忆。`,"Merge sessions in the same project":`合并同项目会话`,"Wait this long after a session ends, then distill every session of the same project that ended meanwhile in one run. Immediately distills each session on its own.":`会话结束后等待这段时间,再把期间结束的同项目会话合并成一次提炼。选「立即」则每个会话单独提炼。`,Immediately:`立即`,"{{done}}/{{total}} done":`已完成 {{done}}/{{total}}`,"about {{time}} left":`约剩 {{time}}`,"Extract entities":`抽取实体`,"Build an entity graph so a memory can be recalled by a name it does not literally contain.":`建立实体图谱,让正文里没出现该词的记忆也能被这个名字召回。`,"Review conflicting memories":`复核矛盾记忆`,"After new memories are written, ask the model whether they contradict older ones. Conflicts are only flagged for your review; nothing is hidden or deleted. Up to 20 model calls per run.":`写入新记忆后,让模型判断它是否推翻了已有记忆。发现的矛盾只标记待你审阅,不隐藏也不删除任何记忆。每轮最多调用模型 20 次。`,"Review now runs even when the switch above is off.":`「立即复核」在上面的开关关闭时也能运行。`,"No model is available for memory tasks.":`没有可用于记忆任务的模型。`,"Checked {{pairs}} pairs, flagged {{count}} conflicts.":`已复核 {{pairs}} 对,标出 {{count}} 处矛盾。`,"Review now":`立即复核`,Forgetting:`遗忘`,"Decay only changes how search ranks a memory. Archiving keeps it and can be undone; nothing on this page ever deletes a memory.":`衰减只影响检索排序。归档会保留记忆、可随时还原;这一页的任何操作都不会删除记忆。`,"Rank lower when never retrieved":`久未命中则降权`,"Memories that have not been retrieved for a long time rank lower. This changes ranking only — nothing is archived or deleted.":`很久没被检索到的记忆排序靠后。只改排序,不归档也不删除。`,"Mark archive candidates":`标记归档候选`,"Mark cold, low-importance memories as candidates and show them in the library. Marking alone changes nothing.":`把「冷且不重要」的记忆标成候选,并在记忆库里显示。只标记,不改变任何状态。`,"Archive candidates automatically":`自动归档候选`,"Archive candidates at the end of each run. Archived memories are hidden from search but kept and can be restored.":`每轮巡检结束时把候选归档。归档后不参与检索,但记忆仍在,可随时还原。`,"Not retrieved for":`未命中超过`,"Counted from the last retrieval; a memory that was never retrieved counts from creation.":`从最后一次被检索命中算起;从未命中的按创建时间算。`,"Importance at most":`重要度不高于`,"Only memories at or below this importance can become candidates. 0.5 is the lowest tier distillation writes.":`只有重要度不高于这个值的记忆才可能成为候选。0.5 是提炼允许写库的最低档。`,"Run every":`巡检间隔`,"Checked when the library opens; there is no separate background timer.":`开库时检查是否到期,不另起后台定时器。`,"Archive candidates: {{count}}":`归档候选:{{count}} 条`,"Archive candidates: marking is off":`归档候选:未开启标记`,"Running…":`运行中…`,"Review candidates":`查看候选`,"Never run yet":`还没有运行过`,"Last run {{date}}: {{scored}} scored, {{candidates}} candidates, {{archived}} archived":`上次运行 {{date}}:计算 {{scored}} 条,候选 {{candidates}} 条,归档 {{archived}} 条`,"Last retrieved {{date}}":`最后命中 {{date}}`,"No archive candidates right now.":`当前没有归档候选。`,"Archiving…":`归档中…`,"Archive candidate":`建议归档`,"Marked by the forgetting pass: cold and low importance":`遗忘巡检标记:久未命中且重要度低`,"Archive candidates only":`只看归档候选`,"Archive candidates":`归档候选`,"Showing the first {{shown}} of {{total}}.":`只显示前 {{shown}} 条,共 {{total}} 条。`,"{{selected}} of {{total}} selected":`已选 {{selected}}/{{total}}`,"Cold and low-importance memories. Archiving keeps them, hides them from search, and can be undone from the library.":`久未命中且重要度低的记忆。归档会保留它们、从检索里隐藏,随时能在记忆库还原。`,Library:`记忆库`,"No memories stored yet.":`还没有存下任何记忆。`,"Memory is not enabled.":`记忆未启用。`,Memories:`记忆数`,Crystals:`结晶数`,Entities:`实体数`,"With vectors":`已向量化`,Backfill:`补齐`,"Backfilling…":`补齐中…`,"Vectors unavailable: {{reason}}":`无法生成向量:{{reason}}`,"No remote embedding provider is selected. Choose a provider with an API key, or switch to a local embedding model.":`还没有选择远程向量服务商:请选择一个填了 API Key 的服务商,或改用本地向量模型。`,"The selected embedding provider no longer exists. Choose another provider, or switch to a local embedding model.":`所选的向量服务商已被删除:请重新选择服务商,或改用本地向量模型。`,'Provider "{{provider}}" has no Base URL. Fill it in, or choose another provider.':`服务商「{{provider}}」没有填写 Base URL:请补全,或换一个服务商。`,'Provider "{{provider}}" has no API key. Subscription sign-in cannot be used for embeddings; choose a provider with an API key, or switch to a local embedding model.':`服务商「{{provider}}」没有 API Key:订阅登录不能用于向量化,请换一个填了 API Key 的服务商,或改用本地向量模型。`,"No remote embedding model is selected. Choose a model that supports /embeddings.":`还没有选择远程向量模型:请选择支持 /embeddings 的模型。`,'"{{model}}" is a chat model and cannot be used for embeddings. Choose a model that supports /embeddings, or switch to a local embedding model.':`「{{model}}」是对话模型,不能用于向量化:请选择支持 /embeddings 的模型,或改用本地向量模型。`,'Provider "{{provider}}" has no embedding model ("{{model}}" is a chat model). Add one that supports /embeddings (e.g. text-embedding-3-small), or switch to a local embedding model.':`服务商「{{provider}}」下没有向量模型(「{{model}}」是对话模型):请在该服务商里添加支持 /embeddings 的模型(如 text-embedding-3-small),或改用本地向量模型。`,"No model can be used for embeddings: it needs a provider with an API key and an embedding model (e.g. text-embedding-3-small). Subscription sign-in cannot be used for embeddings.":`没有可用于向量化的模型:需要填了 API Key 的服务商,且其中有向量模型(如 text-embedding-3-small)。订阅登录不能用于向量化。`,"{{name}}: missing API key":`{{name}}:没有 API Key`,"{{name}}: missing Base URL":`{{name}}:没有 Base URL`,"{{name}}: no matching embedding model (model names must contain keywords like embed/voyage/bge)":`{{name}}:没有匹配的向量模型(模型名需包含 embed/voyage/bge 等关键词)`,"Database size":`库体积`,Spaces:`空间数`,"Never retrieved":`从未命中`,"{{percent}}% of library":`占 {{percent}}%`,"Added in 7 days":`近 7 天新增`,"Distill past sessions":`提炼历史会话`,"The automatic switch only covers sessions that end from now on. Distill earlier sessions here to fill the library.":`自动开关只对从现在开始结束或被回收的会话生效。早于此的会话在这里手动提炼,否则记忆库一直是空的。`,"No recorded sessions found.":`没有找到已记录的会话。`,"No project":`无项目`,"Already distilled":`已提炼`,"Distill all ({{count}})":`全部提炼({{count}})`,"All sessions":`全部会话`,"View sessions":`会话`,"Some sessions were already distilled":`部分会话已经提炼过`,"{{label}}: {{total}} sessions, {{done}} already distilled. Re-distilling runs the model again and may add new memories alongside the existing ones.":`{{label}}:共 {{total}} 个会话,其中 {{done}} 个已提炼。重新提炼会再跑一次模型,可能在现有记忆之外新增几条。`,"Only the {{count}} remaining":`只提炼剩下的 {{count}} 个`,"Re-distill all {{count}}":`重新提炼全部 {{count}} 个`,"Distill project":`提炼本项目`,"{{total}} sessions · {{pending}} not distilled":`{{total}} 个会话 · {{pending}} 个未提炼`,Distill:`提炼`,"Distill again":`重新提炼`,"Distilling…":`提炼中…`,"Background tasks":`后台任务`,"Background tasks started by this subagent":`这个子代理起的后台任务(归它所有,结束时不通知主会话)`,"Clear finished tasks":`清空历史任务`,"Retry failed extractions ({{count}})":`重试失败项({{count}})`,"Removes completed and cancelled jobs. Running tasks are kept. Sessions will show as not distilled again, since that flag is derived from job history — re-distilling is deduplicated, so it will not create duplicate memories.":`清除已完成和已作废的任务,进行中的保留。清除后会话会重新显示为「未提炼」——该标记是由任务历史推导的;重新提炼有去重,不会产生重复记忆。`,"Removes completed and cancelled jobs. Running tasks are kept.":`只删除已完成和已作废的记录,不影响进行中的任务。`,"Re-embedding memories":`正在重建向量`,"Nothing running.":`没有正在运行的任务。`,"Turn memory off in Built-in tools.":`如需关闭,请到「内置工具」中操作。`,critical:`关键`,important:`重要`,useful:`有用`,low:`次要`,"Importance {{value}}":`重要度 {{value}}`,"(legacy)":`(旧版)`,"superseded by the GGUF build":`已被 GGUF 版取代`,"job:distill":`提炼`,"job:entities":`实体`,"job:vectors":`向量`,queued:`排队中`,"retry {{count}}":`第 {{count}} 次重试`,superseded:`已替代`,"{{count}} stored":`已存 {{count}} 条`,extracting:`抽取中`,"memory changed":`记忆已变更`,"{{entities}} entities · {{links}} links":`{{entities}} 个实体 · {{links}} 条关系`,"{{done}} vectorized":`已向量化 {{done}} 条`,"{{done}} vectorized · {{failed}} failed":`已向量化 {{done}} 条 · {{failed}} 条失败`,"importance too low":`重要度过低`,"similar memory already exists":`已有相似记忆`,"identical to an existing memory":`与已有记忆完全一致`,rejected:`已拒绝`,"Show less":`收起`,"Show full text":`展开全文`,"Dispatch instructions":`派发指令`,Message:`消息`,"Show all {{count}}":`查看全部 {{count}} 条`,"{{count}} task(s) in progress":`{{count}} 个任务进行中`,"Exact match":`精确匹配`,"Semantic search":`语义检索`,"Fast retrieval":`快速检索`,"Deep retrieval":`深入检索`,"Same path the agent uses: full-text, vectors and entities merged by relevance. Shows the top matches only — no exact count, and archived memories are excluded.":`与 agent 同一条检索路径:全文、向量、实体与一跳相关实体按相关度融合。只给最相关的几条,没有精确总数,也不包含已归档的记忆。`,"Same recall as Fast, plus intent-weighted fusion and an optional short-timeout LLM rerank. Failures fall back; archived memories are excluded.":`召回与快速检索相同,再按意图加权融合,并可选短超时 LLM 重排。失败则回退;不含已归档记忆。`,"Embedding model is not ready, so vectors are skipped.":`嵌入模型未就绪,本次跳过了向量通道。`,Knowledge:`知识`,"Browse what the agent knows as a graph or a tree, ask for an interpretation, and consolidate related memories into a crystal.":`用图谱或树浏览 agent 已知的知识,让它解读,并把相关记忆合成结晶。`,Graph:`图谱`,Tree:`知识树`,"By type":`按类型`,"By entity":`按实体`,"By month":`按月份`,"Knowledge graph":`知识图谱`,"No entities yet. Turn on entity extraction and store a few memories first.":`还没有实体。先打开「抽取实体」并存下几条记忆。`,"Colour = entity type · size = how many memories mention it":`颜色 = 实体类型 · 大小 = 被多少条记忆提及`,"{{shown}} of {{total}} entities":`{{total}} 个实体中的 {{shown}} 个`,Fit:`适应窗口`,"Fit to view":`缩放到全图`,Relayout:`重新布局`,"Re-run layout":`重新计算布局`,"{{count}} memories · {{space}}":`{{count}} 条记忆 · {{space}}`,Interpret:`解读`,"Interpreting…":`解读中…`,Interpretation:`解读`,"Based on {{count}} memories":`基于 {{count}} 条记忆`,"Crystallize ({{min}}+)":`结晶({{min}} 条起)`,"Synthesizing…":`合成中…`,"Crystal created":`已生成结晶`,"Nothing was written":`没有写入任何内容`,"Similar memories already exist, nothing was written":`已有相似记忆,没有写入`,"Identical memory already exists, nothing new was written":`已有完全相同的记忆,没有重复写入`,"Showing {{shown}} of {{total}}":`显示 {{shown}} / {{total}}`,"No memories yet.":`还没有记忆。`,"Stored memories":`已存记忆`,"Everything the agent has saved. Archiving hides a memory from search but keeps it.":`agent 存下的全部记忆。归档只是让它不再出现在检索里,内容仍保留。`,"Clear selection":`取消选择`,"Archive selected":`归档所选`,"Select memory":`选中记忆`,"Delete {{count}} memories permanently?":`永久删除这 {{count}} 条记忆?`,"Search memories":`搜索记忆`,"All spaces":`全部空间`,"All types":`全部类型`,"Show archived":`显示已归档`,"No memories yet. They appear here once the agent stores something.":`还没有记忆。agent 存下第一条后会出现在这里。`,"No memories match these filters.":`没有符合当前筛选条件的记忆。`,"Type a query to search by meaning.":`输入关键词后按语义检索。`,Crystal:`结晶`,"Retrieved {{count}} times":`被检索 {{count}} 次`,Previous:`上一页`,"Needs review":`待审阅`,"Reviewing only records your judgement. Nothing is deleted and no memory is superseded.":`审阅只记录你的判断,不会删除任何记忆,也不会让任何一条被取代。`,"Accept: recorded as a confirmed contradiction. Both memories stay and stay searchable — you just stop being asked.":`接受:记为「确认矛盾」。两条记忆都保留、都还能被检索,只是不再提示你。`,"Dismiss: recorded as not a contradiction. Both memories stay unchanged and you stop being asked.":`忽略:记为「不算矛盾」。两条记忆都保持原样,也不再提示你。`,"Nothing to review. When a new memory contradicts an existing one, the pair shows up here.":`没有待审阅的矛盾。新记忆与已有记忆冲突时,这一对会出现在这里。`,"{{count}} contradictions are waiting for review. Clear them in bulk so real conflicts do not get buried.":`已有 {{count}} 条矛盾待审阅,建议批量处理,别让真正的冲突被埋掉。`,"Accept selected":`批量接受`,"Dismiss selected":`批量忽略`,"Earlier memory":`旧记忆`,"Newer memory":`新记忆`,"Why they conflict":`矛盾理由`,"No reason recorded for this pair.":`这一对没有记录矛盾理由。`,Accept:`接受`,Dismiss:`忽略`,Type:`类型`,Space:`空间`,Importance:`重要度`,Created:`创建于`,"Event date":`事件日期`,Embedding:`向量模型`,"Synthesized from":`合成自`,"Related versions":`相关版本`,"Delete permanently":`永久删除`,"Deleting…":`删除中…`,"Delete this memory permanently?":`永久删除这条记忆?`,"All space types":`全部空间类型`,"Recorded {{date}}":`记录于 {{date}}`,"Recorded at":`记录时间`,"Updated at":`更新时间`,"Edit memory":`编辑记忆`,"Search indexes are rebuilt from the new text right away.":`保存后全文、向量和实体索引会立即按新内容重建,旧内容不再能被搜到。`,"Importance (0–1)":`重要度(0–1)`,"Content cannot be empty.":`内容不能为空。`,"Importance must be between 0 and 1.":`重要度需在 0 到 1 之间。`,"Could not save the memory.":`记忆保存失败。`,"Checking what this affects…":`正在检查删除会影响哪些记忆…`,"Memory not found.":`记忆不存在或已被删除。`,"Also deletes {{count}} older versions it replaced: {{titles}}":`会一并删除被它替换掉的 {{count}} 个历史版本:{{titles}}`,"The older and newer versions around it are linked directly, so the history stays continuous.":`它前后的版本会直接相连,版本历史保持连续。`,"Removes the relation links to {{titles}}; those memories are kept.":`会解除与 {{titles}} 的关联,这些记忆本身保留。`,"Crystal {{title}} loses this source and keeps {{count}} sources.":`结晶 {{title}} 会失去这条来源,剩余 {{count}} 条来源。`,"Crystal {{title}} would be left with {{count}} sources, so it becomes a normal memory. Its content is kept.":`结晶 {{title}} 只剩 {{count}} 条来源,不再构成结晶,将转为普通记忆,正文保留。`,"This is a crystal: its {{count}} source memories are kept, only the links are removed.":`这是一条结晶:它的 {{count}} 条来源记忆会保留,只解除结晶关系。`,"No other memories are affected.":`不影响其他记忆。`,"This cannot be undone. Archiving keeps the memory out of search while preserving it.":`此操作不可撤销。归档可以让它不再出现在检索里,同时保留内容。`,"Long-term memory: the agent can search, capture and consolidate durable decisions, preferences and lessons across sessions":`长期记忆:agent 可跨会话检索、记录与归纳持久的决策、偏好与经验`,"Let the agent drop an irrelevant automatic delivery or throwaway exchange from its context; the timeline keeps it and turn_recall can read it back":`让 agent 把无关的自动投递或一次性问答从上下文里丢掉;时间线保留原文,turn_recall 可取回`,"Plan mode: research read-only, submit a plan for approval, then carry it out after approval":`Plan 模式:只读调研并提交计划,审批通过后再执行`,"Run JavaScript in an isolated sandbox that can call session tools. Intermediate reads and edits stay out of the chat; only the returned value is added to the conversation.":`在隔离沙箱里跑 JavaScript,并可调用会话工具。中间的读取和修改不会进对话,只有返回值会留下。`,Workflow:`工作流`,"Run a JavaScript workflow that fans work out across subagents.":`运行一段扇出子代理的 JavaScript 工作流。`,"Run a JavaScript workflow that fans work out across subagents. Live status appears in the side panel.":`运行一段扇出子代理的 JavaScript 工作流。实时状态显示在右侧栏。`,"No workflow runs":`还没有工作流`,"Clear finished runs":`清除已结束`,Run:`运行`,"Workflow preset":`预设工作流`,"Manage workflow presets":`管理工作流预设`,Workflows:`工作流`,"Preset workflows you can run from the Workflow side panel":`可在侧边栏「工作流」面板中运行的预设`,"Project .agents/workflows files take precedence over these; ~/.agents/workflows and built-in presets come after.":`同名时项目 .agents/workflows 下的文件优先于这里,其次是 ~/.agents/workflows 和内置预设。`,"Add workflow preset":`新增工作流预设`,"Edit workflow preset":`编辑工作流预设`,"No custom workflow presets yet":`还没有自定义工作流预设`,"Custom presets":`自定义预设`,"Built-in presets":`内置预设`,Label:`显示名`,"Default value":`默认值`,Required:`必填`,"Add argument":`添加参数`,Script:`脚本`,Steps:`步骤`,Design:`设计`,Code:`代码`,"Default (worker)":`默认(worker)`,"Phase {{n}}":`阶段 {{n}}`,"Phase title":`阶段名称`,Prompt:`提示词`,"Click a node to edit it. Steps in a column run in parallel; columns run from left to right.":`点击节点即可编辑。同一列的步骤并行执行,各列从左到右依次执行。`,Start:`开始`,"No arguments":`无参数`,"Last phase output":`末阶段输出`,"Untitled phase":`未命名阶段`,"Untitled step":`未命名步骤`,"No prompt yet":`尚未填写提示词`,"Parallel step":`并行步骤`,"Insert phase here":`在此插入阶段`,"Phase {{n}} · Step {{m}}":`阶段 {{n}} · 步骤 {{m}}`,"Move left":`左移`,"Move right":`右移`,"Insert argument":`插入参数`,"Previous phase output":`上一阶段输出`,"This preset is plain code and cannot be shown in the designer. Using the designer replaces the current script.":`该预设是纯代码,无法在设计器中显示。改用设计器会替换当前脚本。`,"Use the designer":`改用设计器`,"Every phase needs a title and every step needs a label and a prompt.":`每个阶段需要名称,每个步骤需要显示名和提示词。`,"Generated from the design. Editing the code detaches it from the designer.":`由设计生成。手动修改代码后将脱离设计器,变为纯代码预设。`,"Plain JavaScript with top-level await; end with return. Available: agent(prompt, opts), parallel, pipeline, phase, log, args.":`纯 JavaScript,支持顶层 await,以 return 结束。可用:agent(prompt, opts)、parallel、pipeline、phase、log、args。`,"Workflow preset not found":`工作流预设不存在`,"Workflow preset is larger than 64 KB":`工作流预设超过 64 KB`,"Invalid workflow preset":`工作流预设无效:检查参数名(字母、数字、下划线),且各字段不能包含 */`,"Parallel review":`并行审查`,"Review a change set in parallel along several dimensions with read-only reviewers.":`用只读审查代理按多个维度并行审查一组改动。`,"Review scope":`审查范围`,"Dimensions (comma separated)":`审查维度(逗号分隔)`,"Multi-angle investigation":`多角度调研`,"Investigate one question from implementation, tests and docs in parallel with read-only scouts.":`用只读侦察代理从实现、测试、文档三个角度并行调研同一个问题。`,Question:`问题`,Parallel:`并行`,"{{count}} agents":`{{count}} 个子代理`,"One-shot subagent: delegate a self-contained task and return a final report (parallel or async)":`一次性子代理:委派自包含子任务,返回最终报告(可并行、可异步)`,"Persistent subagent: hire for multi-turn dialogue; you can watch and intervene from a tab":`持久子代理:雇佣后多轮对话,用户可在 tab 旁观介入`,"Task list: track progress on multi-step work":`任务清单:跟踪多步骤工作的进度`,"Ask the user a question and wait for an answer (options / timeout)":`向用户提问并等待回答(带选项/超时)`,"Background shell task: run long commands in the background and notify on completion":`后台 shell 任务:长命令挂后台跑,完成时通知`,"Built-in browser: open pages in Enso's own Chromium, read snapshots, click and type by ref":`内嵌浏览器:在 Enso 自带 Chromium 里打开页面,读快照,按 ref 点击与输入`,"Web search and fetch: search with the session model's built-in search (falls back to a keyless service) and read public pages as markdown":`联网搜索与抓取:优先用会话模型自带的搜索(不支持时降级到免 key 服务),并把公开网页读成 markdown`,"This project ships pi extension code that runs with your permissions. It was not loaded. Trust it only if you trust this repository.":`此项目带有 pi 扩展代码,会以你的权限运行,已阻止加载。只有信任这个仓库时才加载。`,"Trust and load":`信任并加载`,Plugin:`插件`,"Enso plugins":`Enso 插件`,"No Enso plugins installed":`还没有安装 Enso 插件`,"Browse the marketplace or install from a GitHub URL, folder or zip.":`可以从插件市场浏览,或通过 GitHub 地址、文件夹、zip 安装。`,"Or install from":`或从本地安装`,"Installing a plugin lets it run code on this machine. Review what it asks for before confirming.":`安装插件会让它在这台电脑上运行代码。确认前请先查看它申请的权限。`,"Install from folder":`从文件夹安装`,"Install from zip":`从压缩包安装`,"Install from URL":`从链接安装`,Marketplace:`插件市场`,"Search plugins":`搜索插件`,"China mirror":`国内镜像`,"Usage guide":`使用说明`,Homepage:`主页`,"Update plugins automatically":`自动更新插件`,"Marketplace updates that do not ask for new permissions install on their own.":`权限不变的市场更新会自动装上。需要新权限的仍等你同意。`,"Record plugin logs":`记录插件日志`,"Off by default. Record plugin console output and runtime logs to disk. Startup failures and crashes are still shown.":`默认关闭。开启后将插件控制台输出与运行日志写入磁盘;关闭时启动失败和崩溃等错误状态仍会显示。`,"Plugin logging is off":`插件日志未开启`,"New plugin logs are not recorded while off. Existing log files are kept.":`当前不会记录新的插件日志,已有日志文件不会删除。`,"Enable plugin logging":`开启插件日志`,"Record app logs":`记录应用日志`,"Off by default. Write main process and agent logs to disk. Files needed for restart recovery are always kept.":`默认关闭。开启后将主进程与 Agent 日志写入磁盘;重启恢复等功能需要的文件始终照常保存。`,"App logging is off":`应用日志未开启`,"New app logs are not recorded while off. Existing logs are kept below.":`当前不会记录新的应用日志,已有日志不会删除,仍在下方显示。`,"Enable app logging":`开启应用日志`,"App logging is off. The export only includes logs recorded earlier.":`应用日志未开启,导出只包含之前已记录的日志。`,"{{name}} tried to message another session and was blocked":`插件 {{name}} 想向其他会话发消息,已拦截`,"Turn on":`去开启`,"{{name}} {{version}} needs new permissions":`插件 {{name}} 新版本 {{version}} 需要新权限`,"Review permissions":`去授权`,"{{name}} updated to {{version}}":`插件 {{name}} 已更新到 {{version}}`,View:`查看`,"Could not reach the marketplace; showing the last saved list.":`无法连接插件市场,显示的是上次保存的列表。`,"No matching plugins":`没有匹配的插件`,Official:`官方`,Community:`社区`,Installed:`已安装`,"https://github.com/owner/repo":`https://github.com/owner/repo`,"Install failed":`安装失败`,"{{name}} installed":`已安装 {{name}}`,"Turn it on in the list below to use it.":`在下面的列表里打开开关即可使用。`,"updating from {{version}}":`从 {{version}} 更新`,"This update asks for more than {{version}}. {{version}} keeps running until you allow the update in the plugin list.":`这次更新申请的权限比 {{version}} 多。确认后 {{version}} 继续运行,在插件列表里点「允许」才会切到新版。`,"Awaiting approval":`待授权`,"Keep current":`保持现状`,"Stopped after crashes":`多次崩溃后已停止`,"Plugin command failed":`插件命令执行失败`,"Plugin logs":`插件日志`,"No logs yet":`暂无日志`,"Log too large, showing plain text":`日志过大,已切换为纯文本`,"Reinstall from source":`从来源重新安装`,"No plugins installed from GitHub to check":`没有从 GitHub 安装的插件可以检查`,"{{count}} update(s) available":`{{count}} 个插件有新版本`,"All plugins are up to date":`插件都是最新版本`,"Version {{version}} is available":`有新版本 {{version}}`,Update:`更新`,"Update check failed: {{reason}}":`检查更新失败:{{reason}}`,Commands:`命令`,"Project extensions trusted. They load in new sessions and after this one restarts.":`已信任项目扩展,新会话和本会话重新启动后加载。`,"Trusted project extensions":`已信任的项目扩展`,"Revoke trust":`撤销信任`,"No longer loaded after saving, starting with the next session.":`保存后不再加载,从下一个会话开始生效。`,"Web search":`联网搜索`,"Web fetch":`网页抓取`,Computer:`电脑操控`,"Host desktop: list windows, screenshot, accessibility tree, and input. Default off. Not the built-in browser.":`宿主桌面:列窗口、截图、无障碍树与键鼠。默认关闭。不是内嵌浏览器。`,"Operate the host desktop with screenshots, accessibility, and input.":`用截图、无障碍树和键鼠操作宿主桌面。`,"Enso never receives host-desktop computer tools.":`Enso 不会拿到宿主桌面 computer 工具。`,"Ask the coding agent to use the computer tool.":`请让编程 agent 使用 computer 工具。`,"Screen Recording":`屏幕录制`,Accessibility:`辅助功能`,"Open Screen Recording settings":`打开屏幕录制设置`,"Open Accessibility settings":`打开辅助功能设置`,"Computer needs Screen Recording to capture windows and Accessibility to inspect or click them. Grant both to EnsoCode, then restart the app.":`电脑操控需要屏幕录制才能截窗,需要辅助功能才能读无障碍树或点击。请把这两项授权给 EnsoCode,然后重启应用。`,"Grant Computer permissions":`授权电脑操控权限`,"Show permission guide":`打开权限引导`,"Apps the AI may control":`AI 可操作的应用`,"Allow all apps":`允许所有应用`,"The AI can click, type and read in any app without asking. It can see everything in their windows, including chats and passwords.":`AI 操作任何应用都不再询问,可点击、输入并读取所有应用窗口里的内容,包括聊天记录和密码等。`,"Show the app being operated":`显示正在操作的应用`,"While the AI works in an app in the background, a small floating window shows that app live. Close it any time.":`AI 在后台操作某个应用时,用一个小浮窗实时显示这个应用的画面,可随时关掉。`,"The first time the AI clicks or types in an app, EnsoCode asks you. Apps you always allow are listed here; it can then read everything in their windows.":`AI 第一次在某个应用里点击或输入时,EnsoCode 会先询问你。你选择「始终允许」的应用会列在这里,AI 之后可以读取这些应用窗口里的全部内容。`,"No apps are always allowed yet.":`还没有始终允许的应用。`,Revoke:`撤销`,"The agent can screenshot windows and control the mouse and keyboard. Grant Screen Recording and Accessibility to EnsoCode, then restart.":`Agent 可以截取窗口并控制键鼠。请把屏幕录制和辅助功能授权给 EnsoCode,然后重启。`,"Computer is ready. Open sessions can use it from their next step.":`电脑操控已就绪。已打开的会话从下一步起即可使用。`,"Capture: granted":`截屏:已授权`,"Capture: denied":`截屏:未授权`,"Input/AX: granted":`键鼠/AX:已授权`,"Input/AX: denied":`键鼠/AX:未授权`,"This platform cannot operate the desktop yet.":`当前系统还不能操作桌面。`,"QuickJS sandbox: write JavaScript that calls session tools (including edits) in one cell":`QuickJS 沙箱:用 JavaScript 在一个 cell 里调用会话工具(含编辑)`,"(log unavailable)":`(日志不可用)`,"Loading…":`加载中…`,"(no log available)":`(暂无日志)`,"Context compacted":`上下文已压缩`,"{{kind}} · {{before}} → {{after}} · freed {{percent}}%":`{{kind}} · {{before}} → {{after}} · 释放 {{percent}}%`,"Context compacted ({{tokens}} tokens before)":`上下文已压缩(压缩前 {{tokens}} tokens)`,"Verified context compacted":`验证式压缩完成`,"Verified context compacted ({{tokens}} tokens before)":`验证式压缩完成(压缩前 {{tokens}} tokens)`,"Verified summary from smart compaction. Messages above are no longer in the model context.":`这次用了验证式摘要。此线之上的历史已不在模型上下文中。`,"Memory context compacted":`持续记忆压缩完成`,"Memory context compacted ({{tokens}} tokens before)":`持续记忆压缩完成(压缩前 {{tokens}} tokens)`,"Summary rendered from continuous memory. Messages above are no longer in the model context; use recall for sources.":`这次由持续记忆直接渲染摘要。此线之上的历史已不在模型上下文中,可用 recall 查看来源。`,"Messages above are no longer in the model context; only this summary is.":`以上消息已不在模型上下文中,模型只看到这份摘要。`,"Latest compaction summary — expand to read what the model kept.":`最近一次压缩摘要,点开可查看模型保留的内容。`,"(summary unavailable)":`(摘要不可用)`,Note:`注意`,Tip:`提示`,Important:`重要`,Warning:`警告`,Caution:`小心`,"Let the agent pick subagent models":`允许子代理指定模型`,"The main agent can pick one of these models when dispatching subagents or coworkers. The description tells it when to use each model.":`主 agent 派发 subagent/coworker 时可从这些模型里挑选;描述用于告诉它每个模型适合什么任务。`,"When to use it, e.g. cheap and fast for simple subtasks":`什么时候用它,例如:便宜快,适合简单子任务`,"Add model":`添加模型`,Delete:`删除`,Archived:`已归档`,"Clean up archived":`清理已归档`,"Older than {{days}} days":`{{days}} 天前`,"Delete all archived":`全部删除`,"All {{count}} archived conversations will be removed from the list.":`全部 {{count}} 个已归档对话将从列表移除。`,'All {{count}} archived conversations in "{{name}}" will be removed from the list.':`「{{name}}」中全部 {{count}} 个已归档对话将从列表移除。`,"Delete archived conversations?":`删除已归档对话?`,"{{count}} conversations archived more than {{days}} days ago will be removed from the list.":`{{count}} 个归档超过 {{days}} 天的对话将从列表移除。`,'{{count}} conversations in "{{name}}" archived more than {{days}} days ago will be removed from the list.':`「{{name}}」中 {{count}} 个归档超过 {{days}} 天的对话将从列表移除。`,Other:`其他`,Archive:`归档`,Unarchive:`取消归档`,Active:`活跃中`,Pinned:`已置顶`,"Drop here to pin":`拖到此处置顶`,Pin:`置顶`,Unpin:`取消置顶`,Rename:`重命名`,"Model selection":`模型选择`,"Must be picked by main agent":`必须由主 Agent 选择`,"Picked by main agent":`由主 Agent 选择`,"Fixed model":`自选固定模型`,"Subagent models not configured warning":`未在【模型服务】中配置【允许子代理指定模型】。设为【必须由主 Agent 选择】的子代理类型将暂时回退为跟随会话。`,"Custom subagent presets: system prompt, model and toolset. The agent picks one via the agent_type parameter.":`自定义子代理预设:系统提示、模型与工具集,主 agent 经 agent_type 参数选用。`,"New agent type":`新建类型`,"Built-in":`内置`,"Follows the conversation model, full toolset":`跟随会话模型,全部工具`,"Follows the conversation model":`跟随会话模型`,"Overrides built-in":`覆盖内置`,"Edit agent type":`编辑类型`,"Name (slug)":`名称(slug)`,"Description (helps the agent pick this type)":`描述(帮助主 agent 选型)`,"Fast read-only recon, returns compressed findings":`快速只读调研,返回压缩结论`,"System prompt":`系统提示`,"You are a fast recon agent. Explore, never modify…":`你是快速调研代理,只探索不修改…`,"Provider (optional)":`服务商(可选)`,"Follow conversation":`跟随会话`,"Enable subagent model":`启用子代理模型`,"Make this model available to subagents":`允许子代理选择此模型`,"Applies to newly started conversations.":`对新启动的会话生效。`,"Follow parent":`跟随父会话`,"Depth: {{level}}":`深度:{{level}}`,Disabled:`已停用`,"Select model":`选择模型`,Toolset:`工具集`,"All tools (bash/edit/write)":`全部工具(bash/edit/write)`,"Read-only (read/grep/find/ls + bound MCP)":`只读(read/grep/find/ls + 绑定的 MCP)`,Stop:`停止`,"Attach image":`添加图片`,"Stop task":`停止任务`,"Move to background":`转为后台`,"Moving to background…":`正在转后台…`,"Moved to background":`已转后台`,"Moves to background in {{seconds}}s":`{{seconds}} 秒后转后台`,"No output for {{seconds}}s":`{{seconds}} 秒无输出`,"Exit {{code}}":`退出码 {{code}}`,"Killed at timeout":`超时被终止`,"Stopped by you":`已被你停止`,"Needs terminal":`需要终端`,"Needs login":`需要登录`,"Command not found":`找不到命令`,"Not executable":`不可执行`,"Binary output":`二进制输出`,"Log truncated":`日志已截断`,"Killed when its timeout was reached. Raise the timeout or run it in the background.":`到达 timeout 被终止。可提高 timeout 或改为后台运行。`,"Needs an interactive terminal. Use a non-interactive flag (such as --yes) or run it in your own terminal.":`需要交互式终端。改用非交互参数(如 --yes),或在你自己的终端里运行。`,"Needs credentials. Sign in from your own terminal, then retry.":`需要凭证。请先在你自己的终端里登录,再重试。`,"The program is not installed or not on PATH.":`程序未安装或不在 PATH 中。`,"Copy command":`复制命令`,"Rerun in background":`转后台重跑`,"Rerun with {{seconds}}s timeout":`以 {{seconds}}s timeout 重跑`,"Rerun this command with background: true:\n\n{{command}}":`用 background: true 重新运行这条命令:
2
+
3
+ {{command}}`,"Rerun this command with timeout: {{seconds}}:\n\n{{command}}":`用 timeout: {{seconds}} 重新运行这条命令:
4
+
5
+ {{command}}`,"Stop waiting":`不等了`,"Stopping wait…":`正在结束等待…`,"Writing reply…":`正在写回复…`,"No running subagents":`没有在跑的子代理`,"Stopping the wait does not stop subagents; the assistant is notified when they finish.":`不等了也不会停下子代理,它们做完会自动通知助手。`,"Stop subagent":`停止子代理`,"Dismiss coworker":`解雇 coworker`,"Hire coworker":`雇佣 coworker`,"Subagent history":`子代理记录`,"Set a session goal (/goal <objective> · pause · resume · clear)":`设定会话目标(/goal <目标> · pause · resume · clear)`,"Pause the current session goal":`暂停当前会话目标`,"Resume a paused session goal":`继续已暂停的会话目标`,"Clear the session goal":`清除会话目标`,working:`推进中`,paused:`已暂停`,waiting:`等待中`,blocked:`受阻`,completed:`已完成`,aborted:`已中止`,"Goal completed":`目标完成`,"Goal blocked":`目标受阻`,"Goal waiting":`目标等待中`,"Pause goal":`暂停目标`,"Resume goal":`继续目标`,"Clear goal":`清除目标`,"Waiting for upstream recovery":`等待上游恢复`,"Waiting for upstream recovery · next {{time}}":`等待上游恢复 · 下次 {{time}}`,"Quota exhausted":`额度用完`,"Quota exhausted · next {{time}}":`额度用完 · 下次 {{time}}`,"Stop auto-retry":`停止自动重试`,"Upstream unavailable ({{provider}}), retrying automatically":`上游不可用({{provider}}),自动重试中`,Plan:`计划`,"Plan mode is on: read-only research, then a plan for your approval":`Plan 模式已开启:只读调研,产出计划交你审批`,"Plan first: research read-only and submit a plan for approval":`先出计划:只读调研,提交计划审批后再执行`,"Plan response failed":`计划审批未送达`,"Plan awaiting approval":`计划待审批`,"What should change in this plan?":`这份计划需要怎么改?`,"Discard and exit plan mode":`放弃并退出 Plan`,"Send feedback":`发送修改意见`,"Request changes":`修改意见`,"Approve and execute":`批准并执行`,"Choose the approval mode for execution":`选择执行时的审批档位`,"Approve and execute with":`批准后按以下审批档位执行`,"Executing plan":`执行计划`,"Finish plan":`结束计划`,"Plan mode: research read-only, then approve a plan (/plan [task] · off)":`Plan 模式:只读调研后审批计划(/plan [任务] · off)`,"Describe the task — a plan comes first":`描述任务,先产出计划`,"Plan mode on: read-only research, then a plan for your approval":`已进入 Plan 模式:只读调研,产出计划交你审批`,"Plan mode off":`已退出 Plan 模式`,"Unattended mode on: no one is watching, so it decides and keeps going":`已开启无人值守:没人在看,它会自己决定并继续`,"Unattended mode off: a person is available again":`已关闭无人值守:可以再问你了`,"Context compacted: the approved plan was attached again":`上下文已压缩,已重新附上执行中的计划`,"Plan approved, executing":`已批准计划,开始执行`,"Plan feedback":`计划修改意见`,"From main agent":`来自主 agent`,Role:`角色`,"Agent type":`类型`,Hire:`雇佣`,"Dismiss this coworker? Its session will be closed.":`解雇这个 coworker?其会话将被关闭。`,Output:`输出`,Assistant:`助手输出`,Arguments:`参数`,Result:`结果`,"Final report":`最终报告`,"{{count}} chars":`{{count}} 字符`,"Earlier activity details were cleared; the final report is still available.":`较早的过程详情已清理,最终报告仍然保留。`,"(no output yet)":`(暂无输出)`,"Output written ({{size}}), not loaded yet":`已输出 {{size}},面板尚未加载`,"The process has not written anything. Without a terminal, some programs buffer output and only write it in blocks or on exit.":`进程还没有写出任何内容。不在终端里运行时,有些程序会把输出攒成一块或等退出时才写出。`,Deny:`拒绝`,Allow:`允许`,"Run as administrator":`以管理员权限运行`,"Login password":`本机登录密码`,"A command is waiting for the administrator password":`有命令在等待管理员密码`,"Incorrect password. Try again.":`密码不正确,请重试。`,"Applies to this command only. The password is never shown to the AI.":`仅对这一条命令生效,密码不会交给 AI。`,Adjust:`调整`,"Send back for a safer command":`打回去,让模型换一个更安全的命令`,"Assistant review":`代审`,"Let the assistant decide":`交给助手代审`,"Always allow this session":`本会话总是允许`,"Resolve the pending approval to continue":`请先处理待审批的操作`,Supervised:`全程审批`,"Approve every command and file change":`每条命令与文件改动都需确认`,"Auto-accept edits":`自动接受编辑`,"Edits run freely; commands and MCP still ask":`文件编辑直接执行,命令与 MCP 仍需确认`,"Full access":`完全放行`,"Run everything without asking":`所有操作不经确认直接执行`,"Assistant approval":`助手代审`,Unattended:`无人值守`,"Rejects actions that need approval instead of waiting for you":`需要确认的动作直接拒绝,不再弹卡片等人`,"Assistant reviewing…":`代审中…`,"A configured model reviews each action first":`由设置中的模型先审每一步操作`,"Select an assistant approval model in Settings first":`请先在设置里选择助手代审模型`,"Assistant approval model":`助手代审模型`,"Required before Assistant approval can be selected. Does not fall back to the chat model.":`选好后新会话默认走助手代审;未选则该档不可用,不会回退到当前会话模型。`,"No assistant approval model selected":`尚未选择助手代审模型`,"Selected model is unavailable":`所选模型不可用`,Clear:`清除`,"No conversations yet":`暂无对话`,"Preparing session…":`正在读取历史…`,"Loading earlier messages…":`加载更早的消息…`,"Load earlier messages":`加载更早的消息`,"Beginning of conversation":`已到对话开头`,"Retry resume":`重新恢复`,"Session is not ready yet — no history to show.":`会话准备超时,暂无可显示的历史。`,"Retry sync":`重新同步`,Todos:`任务清单`,"Todo list cleared":`已清空`,"{{count}} tool calls":`{{count}} 个工具调用`,"ran {{count}} commands":`跑了 {{count}} 条命令`,"total {{duration}}":`总计 {{duration}}`,"took {{duration}}":`用时 {{duration}}`,"read {{count}} files":`读了 {{count}} 个文件`,"searched {{count}} times":`搜索 {{count}} 次`,"{{count}} other calls":`其他 {{count}} 次调用`,Explored:`探索了`,Exploring:`探索中`,"{{count}} files":`{{count}} 个文件`,"{{count}} searches":`{{count}} 次搜索`,"{{turns}} turns · {{steps}} steps":`{{turns}} 轮 · {{steps}} 步`,"LLM {{duration}}":`LLM {{duration}}`,"Tool calls {{duration}}":`工具调用 {{duration}}`,"First token avg {{duration}}":`首 token 平均 {{duration}}`,"Cache hit {{percent}}%":`缓存命中 {{percent}}%`,"Input {{input}} tok · Output {{output}} tok":`输入 {{input}} · 输出 {{output}} tok`,"{{speed}} tok/s":`{{speed}} tok/s`,"Search models":`搜索模型`,"Virtual models":`虚拟模型`,"Starred & virtual":`星标与虚拟`,"Recently used":`最近使用`,"Remove from recently used":`从最近使用中移除`,"Enable virtual model":`启用虚拟模型`,"Primary model":`主模型`,"Default for each new turn":`每轮默认使用`,"Fast model":`快模型`,"Summaries and simple turns":`摘要与简单问题`,"Fallback models":`备用模型`,"Used in order when a model is rate limited or down":`限流或故障时按顺序切换`,"Add fallback":`添加备用`,"Not used":`不使用`,"Difficulty routing":`按难度分档`,"Set a fast model first":`先设置快模型`,"Fast model judges":`快模型判断`,"Classifier model":`分类器模型`,"No classifier models available":`该服务商暂无可用的分类器模型`,"Classifies each new turn: simple turns use the fast model, complex ones the primary model. Adds a short delay before the reply.":`每轮新输入先分类:简单问题用快模型,复杂任务用主模型。回复前会多一点延迟。`,"New virtual model":`新建虚拟模型`,"A virtual model appears as one model in the picker and routes each request to a real model: fallbacks on rate limits or outages, image-capable or larger-context members when needed, and the fast model for summaries.":`虚拟模型在选择器里显示为一个模型,每次请求由路由挑选真实模型:限流或故障时切到备用,需要时换成支持图片或上下文更大的成员,摘要使用快模型。`,"No models found":`没有匹配的模型`,"Import session":`导入会话`,"More actions":`更多操作`,"Pick a conversation from a local AI app under {{name}}.":`从本地 AI 应用导入 {{name}} 项目下的对话历史。`,"No sessions found for this project":`没有找到该项目的会话`,"Select a session to preview":`选择一个会话预览`,"The session list is out of date. Please rescan.":`会话列表已过期,请重新扫描。`,"This session is outside the allowed folders and cannot be read.":`该会话已不在允许的目录内,无法读取。`,"This session has no messages to import.":`该会话没有可导入的消息。`,Untitled:`未命名`,"{{count}} messages":`{{count}} 条消息`,Import:`导入`,"Scroll to bottom":`回到底部`,Rewind:`回退`,"Rewinding…":`正在回退…`,"Restoring files…":`正在还原文件…`,"Rewinding conversation and files…":`正在回退对话并还原文件…`,"Rewind to this message":`回退到这条消息(其后的消息移出当前分支,文本回填输入框)`,"Conversation only":`仅回退对话`,"Conversation + files":`对话+还原文件`,"Rewind and restore files to before this turn":`回退对话并把工作树还原到这一轮之前(git 项目有效)`,"Rewind to this message?":`回退到这条消息?`,"Later messages leave the current branch; the text returns to the input box.":`其后的消息将移出当前分支,该消息文本回填输入框。`,"Later messages leave the current branch and working-tree files are restored to before this turn.":`其后的消息将移出当前分支,并把工作树文件还原到这一轮开始之前。`,"Remove project?":`移除项目?`,"Delete conversation?":`删除对话?`,'"{{name}}" and its {{count}} conversations will be removed from the list.':`将从列表移除「{{name}}」及其 {{count}} 个对话。`,"This conversation will be removed from the list.":`该对话将从列表移除。`,Reasoning:`推理`,"Load local skills":`加载本机 skill`,Presets:`预设`,"New preset":`新建预设`,"Edit preset":`编辑预设`,"Role descriptions, skills, MCP servers and instruction files, chosen per conversation":`角色描述 / 技能 / MCP / 指令文件的组合,按对话选用`,"View default role description":`查看默认角色描述`,"Custom role":`自定义角色`,"Role description":`角色描述`,"Replace pi opening role description":`替换 pi 开头的角色描述`,"Built-in default (read-only)":`内置默认(只读)`,"System prompt cannot be empty":`系统提示词不能为空`,"Failed to save system prompt":`系统提示词保存失败`,"Failed to read system prompt":`系统提示词读取失败`,"Only replaces the opening role paragraph. Available tools and everything after it stay unchanged. Applies to new and cold-restored sessions.":`仅替换开头的角色段落,Available tools 及之后的全部内容保持不变。新建及冷恢复的会话生效。`,"This is the pi opening role paragraph. Custom presets replace only this paragraph; tools, guidelines and project context stay unchanged.":`这是 pi 开头的角色段落。自定义预设只替换这段,工具、使用准则和项目上下文均保持不变。`,Global:`全局`,"Set as default":`设为默认`,"Plugin preset unavailable":`插件预设不可用`,"Bundled by {{plugin}}":`由插件 {{plugin}} 提供`,"Overlay plugin preset":`叠加插件预设`,"No overlay":`不叠加`,"Unavailable plugin preset":`插件预设不可用`,"Also loads the plugin preset's prompts, skills and overrides. Tails are joined (this preset first); the plugin's role, boost and refusal retry win. Ignored while the plugin is disabled.":`额外加载插件预设的提示词、skill 和覆盖项。两边的尾段依次拼接(本预设在前),角色、加强段和推脱补发以插件为准。插件停用时忽略。`,Default:`默认`,None:`不注入`,"Injection bundles of skills, MCP servers and instruction files, chosen per conversation":`skill / MCP / 指令文件的注入组合,按对话选用`,"Follows the enabled switches on the Skills / MCP / Instructions pages":`跟随技能 / MCP / 指令文件页的启用开关`,"{{skills}} skills · {{mcp}} MCP · {{instruction}} instruction":`{{skills}} 个技能 · {{mcp}} 个 MCP · {{instruction}} 份指令`,Tail:`真尾`,Boost:`Boost`,"Refusal retry":`拒答补发`,"Refusal retry prompt":`拒答补发正文`,Advanced:`高级`,"Request headers":`请求头`,Proxy:`代理`,"Follow global proxy":`跟随全局代理`,"No proxy (direct)":`不使用代理(直连)`,"Uses the network proxy in Settings → General.":`沿用「设置 → 通用 → 网络代理」的配置。`,"All requests to this provider connect directly, ignoring the global and system proxy.":`该服务商的所有请求都直连,不走全局或系统代理。`,"All requests to this provider go through this proxy.":`该服务商的所有请求都经这个代理发送。`,"Show proxy URL":`显示代理地址`,"Hide proxy URL":`隐藏代理地址`,"Add header":`添加请求头`,"Remove header":`移除请求头`,"Header values can only contain tab and single-byte characters (no Chinese, newlines, or NUL).":`请求头的值只能包含制表符和单字节字符(不能有中文、换行或空字符)。`,"Rewrites the role paragraph or appends text to the system prompt.":`改写角色段落,或往系统提示词末尾追加内容。`,"Import URL":`从 URL 导入`,"https://example.com/preset.json":`https://example.com/preset.json`,"Pinned after skills and working directory. Child sessions inherit this text.":`钉在 skills 和工作目录之后。子会话会继承这段文字。`,"Short override block after the tail. Child sessions inherit this text.":`接在真尾之后的短覆盖块。子会话会继承这段文字。`,"If the model refuses, send this once per turn as an internal follow-up. Child sessions inherit it.":`模型推脱时,每轮内部补发一次。子会话会继承。`,"Import hints (not selected): {{skills}} / {{mcp}}":`导入提示(未勾选):{{skills}} / {{mcp}}`,"Let the agent auto-discover skills under .agents/skills and .pi/skills":`让 agent 自动发现 .agents/skills、.pi/skills 下的 skill`,"Explore fold":`探后折叠`,"Explore mark":`开始探索`,"Turn discard":`丢弃本轮`,"Turn recall":`取回已丢弃`,Goal:`目标`,"Show process":`展开过程`,"Hide process":`收起过程`,Subagent:`子代理`,"Read report":`查看报告`,Wait:`等待`,"Dismiss agent":`解雇`,"List agents":`列出全部`,"Resume agent":`续跑`,"awaiting input":`等待输入`,validating:`校验中`,interrupted:`已中断`,"Run info":`运行信息`,"Timed out; unfinished agents keep running":`等待超时,未结束的子代理仍在运行`,"Wait was interrupted":`等待被打断`,creating:`创建中`,idle:`空闲`,parked:`已休眠`,closed:`已关闭`,"No agents":`没有子代理`,"Ask user":`询问用户`,"Task output":`查看后台任务`,"Task stop":`停止后台任务`,"Message coworker":`联系队员`,"Message main agent":`联系主 agent`,"Enso app":`Enso 应用`,"Recall memory":`回溯记忆`,"Memory search":`搜索记忆`,"Memory capture":`记录记忆`,"Memory crystallize":`提炼记忆`,"Memory delete":`删除记忆`,"Browser navigate":`浏览器 · 打开`,"Browser snapshot":`浏览器 · 快照`,"Browser click":`浏览器 · 点击`,"Browser type":`浏览器 · 输入`,"Browser tabs":`浏览器 · 标签页`,"Browser lock":`浏览器 · 锁定`,"Browser fill":`浏览器 · 填写`,"Browser press key":`浏览器 · 按键`,"Browser scroll":`浏览器 · 滚动`,"Browser select option":`浏览器 · 选择选项`,"Browser click xy":`浏览器 · 坐标点击`,"Browser drag":`浏览器 · 拖拽`,"Browser highlight":`浏览器 · 高亮`,"Browser bounding box":`浏览器 · 元素位置`,"Browser screenshot":`浏览器 · 截图`,"Browser CDP":`浏览器 · CDP`,"Let the agent mark exploratory reads and keep only a short report in later model context. Timeline stays intact.":`让模型在探仓库前打点,探完只把报告留在后续模型上下文里;时间线仍完整。`,"File edit mode":`文件编辑模式`,"Choose how files are modified. Apply patch is the default. New and cold-restored sessions use this mode; already warm sessions keep their current mode.":`选择文件修改方式。默认为应用补丁。新建和冷恢复的会话使用此模式;已在内存中的会话保持原模式。`,"Text replacement":`文本替换`,"Apply patch":`应用补丁`,"Tool search":`工具检索`,"Apply patch (default)":`应用补丁(默认)`,"Truncated preview":`截断预览`,"Diff unavailable because the original snapshot was truncated.":`原始快照已截断,无法显示完整差异。`,"Load project harness assets":`加载项目内其它工具目录`,"Also load skills from .claude/.codex/.cursor and rule files (.cursorrules, .cursor/rules, .claude/rules) in the project":`同时加载项目内 .claude/.codex/.cursor 下的 skills,以及规则文件(.cursorrules、.cursor/rules、.claude/rules)`,Custom:`自定义`,"Remove provider?":`删除该配置?`,"Removing this also signs out {{name}}. Other accounts for the same vendor stay signed in.":`删除会同时退登「{{name}}」。同一厂商下的其他账号仍保持登录。`,'This permanently deletes the "{{name}}" provider configuration.':`将永久删除「{{name}}」这项配置。`,"Sign-out failed: {{message}}":`退登失败:{{message}}`,Retry:`重试`,"This panel crashed":`面板出错了`,"Copy error":`复制错误`,"Loading secretary…":`正在读取秘书状态…`,"Auto-retrying ({{attempt}}/{{max}})":`自动重试中 ({{attempt}}/{{max}})`,"Auto-retrying ({{attempt}})":`自动重试中(第 {{attempt}} 次)`,"retrying in {{seconds}}s":`{{seconds}}s 后重试`,"retrying…":`正在重试…`,"Cancel auto-retry":`取消自动重试`,"Delete anyway":`仍要删除`,Overridden:`已覆盖`,Catalog:`catalog`,Inherit:`跟随`,On:`开`,Off:`关`,"Thinking level":`思考档位`,Context:`上下文`,"Max tokens":`最大输出`,"Context window":`上下文窗口`,Estimate:`估算`,"Enabled instructions":`已启用指令`,"Enabled skills":`已启用 Skill`,"Tool definitions":`工具定义`,Conversation:`对话正文`,"Compaction summary":`压缩摘要`,Reminders:`续跑提示`,"{{count}} older messages are folded into the summary":`{{count}} 条旧消息已不在窗口,只留摘要`,"Current summary was produced by another model family":`当前摘要由另一模型生成`,"Context occupancy unavailable until the session starts":`会话启动后才能查看拆账`,"Conversation branch":`对话分支`,"Compact context":`压缩上下文`,"Compaction failed":`压缩失败`,"Compacting…":`正在压缩…`,"Compacts after this turn":`本轮结束后压缩`,"Compaction already in progress":`正在压缩中,请等待完成`,"Compaction is queued and runs after this turn":`压缩已排队,本轮结束后自动执行`,"Session not started yet — nothing to compact":`会话尚未启动,暂无可压缩的上下文`,"Workspace operation in progress — compact again when it finishes":`工作区操作进行中(切换分支、worktree 等),完成后再压缩`,"Workspace operation in progress":`工作区操作进行中`,"Compact the context now (/compact [summary focus])":`立即压缩上下文(/compact [摘要侧重])`,"Keep this session and start a parallel one from here":`保留源线,从这里开对话分支`,"Branched from {{title}}":`分支自 {{title}}`,"Estimated context window (catalog fallback)":`上下文窗口为估算值(取自模型目录回退)`,"{{model}} does not support reasoning":`{{model}} 不支持推理`,"Filter models in this entry":`在此配置内筛选模型`,"Showing {{shown}} of {{total}} models":`显示 {{shown}} / 共 {{total}} 个模型`,"Status line settings":`状态栏设置`,"Session stats":`会话统计`,"Recent request body":`最近请求体`,"Serialized payload":`已序列化`,"Before send":`发送前`,"Blocked before send":`超限,未发送`,"No data yet":`暂无数据`,"{{count}} coworkers":`{{count}} 名队员`,"Drag to reorder":`拖动排序`,Turns:`轮次`,Duration:`耗时`,Speed:`速度`,Tokens:`Token 用量`,"Cache hit rate":`缓存命中率`,"Session name":`会话名称`,"Approval mode":`审批档位`,Coworkers:`队员`,"Session time":`会话时长`,"Subscription usage":`订阅额度`,"resets in {{remaining}}":`{{remaining}} 后重置`,Minimal:`简洁`,Full:`完整`,Min:`极低`,Low:`低`,Medium:`中`,Med:`中`,High:`高`,Extra:`极高`,"Extra High":`极高`,Max:`最高`,"Loading diff…":`加载 diff…`,Copy:`复制`,Description:`描述`,Source:`来源`,"This computer":`本机`,"Switch node":`切换节点`,"{{n}} remote":`{{n}} 个远程`,"Connect to a node":`连接到节点`,"Connect to a node…":`连接到节点…`,Connect:`连接`,Create:`创建`,Project:`项目`,"No conversations":`没有会话`,"Connecting…":`连接中…`,"Remote desktop is offline":`对方桌面离线`,"Directory not found.":`目录不存在。`,"Project path is not a directory.":`项目路径不是目录。`,"On the other computer open Settings → Devices, generate a pairing code and copy the link. Paste it here.":`在对方电脑打开「设置 → 设备」,生成配对码并复制链接,粘到这里。`,"That is not an EnsoCode pairing link.":`这不是 EnsoCode 配对链接。`,"This pairing link has expired or was already used. Generate a new one.":`配对链接已过期或已被使用,请重新生成。`,"Could not reach the relay. Check your network and try again.":`无法连接中继,请检查网络后重试。`,Devices:`设备`,"Allow connections":`允许连入`,"Let your phone or another EnsoCode desktop connect to this computer. Keep this app running.":`让手机或另一台 EnsoCode 桌面连到这台电脑。需保持本应用运行。`,"Generate pairing code":`生成配对码`,"On another EnsoCode desktop, paste the link below into Settings → Devices → Connect to a node.":`在另一台 EnsoCode 桌面,把下方链接粘到「设置 → 设备 → 连接到节点」。`,"Generate a pairing code to let a phone or another desktop connect.":`生成配对码,让手机或另一台桌面连入。`,"Waiting for device":`等待设备`,"Direct link":`直连`,"Via relay":`中继`,Connected:`已连接`,"Desktop is offline":`桌面端离线`,"Pairing expired":`配对已失效`,"Reconnecting…":`重连中…`,"Turn on notifications":`开启推送通知`,"Turn off notifications":`关闭推送通知`,"Push notifications":`推送通知`,"Computers and notifications":`电脑与通知`,"Things that need your attention are pushed to this phone.":`有需要你处理的事时推送到这台手机。`,"Things that need your attention are pushed to this device.":`有需要你处理的事时推送到这台设备。`,"Turning on notifications…":`正在开启推送…`,"Notifications need a newer desktop app.":`需先升级桌面端才能开启推送。`,"Add this app to the Home Screen before notifications can be turned on.":`iOS 需先用分享菜单「添加到主屏幕」,从主屏幕打开后才能开启。`,"This browser cannot show notifications.":`当前浏览器不支持推送。`,"Notification permission was denied. Allow notifications for this site and try again.":`通知权限被拒绝,请在浏览器站点设置中允许后重试。`,"Cannot reach the push service. Check the network or proxy and try again.":`无法连接推送服务,请检查网络或代理后重试。`,"Could not turn on notifications.":`无法开启推送。`,"View only":`只读`,"Can operate":`可操作`,"Click to switch: view-only devices cannot send, approve or stop.":`点击切换:只读设备不能发送、审批或停止。`,Copied:`已复制`,"Copy image":`复制图片`,"Image copied":`图片已复制`,"Image {{n}}":`图片 {{n}}`,"Image {{n}} not accepted: {{reason}}":`图片 {{n}} 未收下:{{reason}}`,"over 10 MB, not saved":`超过 10MB,没有保存`,"not a png / jpeg / webp / gif image, not saved":`不是 png / jpeg / webp / gif 图片,没有保存`,"could not be saved":`没能保存`,"Could not copy image":`复制图片失败`,"Copy failed":`复制失败`,"Browse and drive conversations on another EnsoCode desktop. Its agent, keys and history stay there.":`浏览并操控另一台 EnsoCode 桌面上的会话。agent、密钥与历史都留在对方机器上。`,"Connected nodes":`已连接的节点`,"No connected nodes":`还没有连接节点`,"Each connecting computer needs its own pairing code from the other desktop.":`每台要连入的电脑都需要对方桌面单独生成一个配对码。`,Disconnect:`断开`,"Configuration transfer":`配置迁移`,"Move models, presets, agent types, skills, MCP servers and instruction files between devices.":`在设备之间迁移模型、预设、子代理类型、技能、MCP 服务和指令文件。`,"Portable Enso configuration":`可移植 Enso 配置`,"Export a package or preview one before importing it.":`导出配置包,或在导入前预览配置包。`,"Import configuration":`导入配置`,"Export configuration":`导出配置`,Export:`导出`,"OAuth login sessions are never transferred. Skill, instruction, and system prompt contents require an encrypted export.":`OAuth 登录态不会迁移。技能、指令和系统提示词正文需要使用加密导出。`,"Create a portable .enso-config package for another device.":`创建可在另一台设备使用的 .enso-config 配置包。`,"File contents can be private":`文件内容可能包含私密信息`,"Skill and instruction file contents may contain private data, so configurations containing them can only be exported with encryption.":`技能和指令文件内容可能包含私密信息,因此包含这些文件的配置只能使用加密导出。`,"Include sensitive configuration":`包含敏感配置`,"Encrypt the entire package with a password. OAuth login sessions are still excluded.":`使用密码加密整个配置包。OAuth 登录态仍不会包含在内。`,"API keys, provider account links, MCP arguments and environment values, plus credentials and private URL parts in MCP endpoints, will be omitted. Configurations containing skill or instruction files require encryption.":`API Key、服务商账号关联、MCP 参数和环境变量,以及 MCP 地址中的凭据和私密 URL 部分都会被省略。包含技能或指令文件的配置需要加密导出。`,"Encryption password":`加密密码`,"Confirm password":`确认密码`,"Use at least 8 characters. This password cannot be recovered.":`请使用至少 8 个字符。此密码无法恢复。`,"Password must be at least 8 characters.":`密码至少需要 8 个字符。`,"Passwords do not match.":`两次输入的密码不一致。`,"Configuration exported":`配置已导出`,"Saved package:":`配置包已保存至:`,"Export cancelled.":`导出已取消。`,"Exporting…":`正在导出…`,"Could not export configuration.":`无法导出配置。`,"Encrypted configuration package":`加密配置包`,"Enter the export password to decrypt and preview this package.":`请输入导出时设置的密码,以解密并预览此配置包。`,"Review {{fileName}} before changing this device.":`修改此设备前,请预览 {{fileName}}。`,"Import mode":`导入模式`,Merge:`合并`,"Add and update matching items while keeping items only on this device.":`新增并更新匹配条目,同时保留此设备独有的条目。`,Replace:`替换`,"Replace transferred item categories, removing local-only items in them.":`替换迁移的条目类别,并删除其中此设备独有的条目。`,"Preparing preview…":`正在准备预览…`,Category:`类别`,Added:`新增`,"Subagent Models":`子代理模型`,"Scalar settings":`标量设置`,"Portable settings changed:":`变更的可移植设置:`,Updated:`更新`,Skipped:`跳过`,Removed:`删除`,"Local-only configuration will be deleted":`此设备独有的配置将被删除`,"Items in transferred collections that exist only on this device will be removed. Removed counts are shown above. Included portable preferences are overwritten. A complete backup is created first.":`迁移集合中仅存在于此设备的条目将被删除。上方会显示删除数量。包含的可移植偏好会被覆盖,并会先创建完整备份。`,"Only import packages you trust":`只导入你信任的配置包`,"An imported package can change portable preferences and configuration. Skills and MCP servers may also run commands later when you use them. Previewing does not execute them; continue only if you trust the package.":`导入的配置包可以修改可移植偏好和配置。技能和 MCP 服务在之后使用时也可能运行命令。预览过程不会执行它们;请仅在信任配置包时继续。`,"Confirm configuration import":`确认导入配置`,"This package can change portable preferences and configuration. Continue only if you trust this package.":`此配置包可以修改可移植偏好和配置。请仅在信任此配置包时继续。`,"It includes skills or MCP servers that may execute commands when you use them.":`它包含在使用时可能执行命令的技能或 MCP 服务。`,"Replace mode removes local-only items from transferred collections and overwrites included portable preferences. A complete backup will be created first.":`替换模式会删除迁移集合中此设备独有的条目,并覆盖包中包含的可移植偏好。替换前会先创建完整备份。`,"Do you want to continue with this import?":`要继续导入吗?`,"Confirm import":`确认导入`,"Sensitive provider or MCP values were omitted; existing local values were preserved when available.":`敏感的服务商或 MCP 配置值已省略;如本机已有对应值,则会保留。`,"OAuth login state is not included; sign in again after import.":`配置包不包含 OAuth 登录态;导入后请重新登录。`,"Imported MCP servers may require external commands, packages, or paths.":`导入的 MCP 服务可能依赖外部命令、软件包或本机路径。`,"Refresh preview":`刷新预览`,"Importing…":`正在导入…`,"Could not open configuration package.":`无法打开配置包。`,"Could not preview configuration package.":`无法预览配置包。`,"Could not import configuration.":`无法导入配置。`,"Invalid export options":`导出选项无效。`,"Invalid export request.":`导出请求无效。`,"Export password is too short.":`导出密码太短。`,"Configuration package is too large.":`配置包过大。`,"Unable to export configuration.":`无法导出配置。`,"A preset uses a system prompt that is missing or empty.":`有预设引用的系统提示词不存在或为空。`,"Could not write the export file. Check that the folder is writable.":`无法写入导出文件,请确认所选文件夹可写。`,"The selected file is a symbolic link. Choose a different location.":`所选文件是符号链接,请换一个位置保存。`,"These instructions were skipped because their source files are missing or unreadable:":`以下指令的源文件已丢失或无法读取,未包含在配置包中:`,"Skill, instruction, and system prompt contents require an encrypted export.":`技能、指令和系统提示词正文需要使用加密导出。`,"Invalid import request.":`导入请求无效。`,"Invalid configuration package.":`配置包无效。`,"Unable to read configuration package.":`无法读取配置包。`,"Invalid import preview request.":`导入预览请求无效。`,"Import session expired.":`导入会话已过期。`,"Import password is required.":`请输入导入密码。`,"Invalid import commit request.":`导入提交请求无效。`,"Import must be previewed before commit.":`提交导入前必须先预览。`,"Unable to commit configuration.":`无法提交配置。`,"Settings changed since preview; preview again.":`预览后设置发生了变化,请重新预览。`,"Unable to flush pending settings writes.":`无法刷新待写入的设置。`,"Unable to create settings backup.":`无法创建设置备份。`,"Unable to write settings.":`无法写入设置。`,"Import cancelled.":`导入已取消。`,"Configuration imported":`配置已导入`,"This window has been refreshed with the imported settings.":`此窗口已刷新为导入后的设置。`,"Configuration was imported, but this window could not refresh automatically.":`配置已导入,但此窗口无法自动刷新。`,"Reopen Settings to load the imported configuration in this window.":`请重新打开设置,以在此窗口载入导入后的配置。`,"Import complete":`导入完成`,"Backup of previous settings:":`之前设置的备份位置:`,Btw:`旁路`,Contextual:`带上下文`,Tangent:`独立旁路`,"Insert into chat":`填入主输入框`,"Ask aside…":`旁路提问…`,"Ask a side question without sending it to the main agent.":`旁路提问,不会发给主 agent。`,"New Btw tab":`新建旁路标签`,"Open a Btw tab in the side panel":`在右侧栏打开旁路对话`,"Unified agents: delegate one-shot tasks or keep persistent coworkers under Main control":`统一 Agent:委派一次性任务,或在 Main 控制下保留持久 coworker`,"Unified agent modes":`统一 Agent 模式`,"Choose which Agent modes the unified subagent tool may create in new sessions.":`选择统一 subagent 工具可在新会话中创建哪些 Agent 模式。`,"One-shot task agents":`一次性任务 Agent`,"Persistent coworkers":`持久 coworker`,"The unified subagent tool is off. Re-enabling it keeps this mode selection.":`统一 subagent 工具已关闭。重新开启时会保留此模式选择。`,"Follow global unified agent modes":`跟随全局统一 Agent 模式`,"When off, this project uses its own explicit Agent mode permission mask.":`关闭后,此项目使用自己明确配置的 Agent 模式权限掩码。`,Resources:`资源`,"Recent errors and log export. API keys, tokens and passwords are masked.":`最近的错误与日志导出。API Key、Token、密码等已脱敏。`,"Recent errors":`最近错误`,"Errors only":`仅错误`,"Warnings and errors":`警告及以上`,"No errors recorded.":`暂无错误记录。`,"Agent worker":`Agent 进程`,"Export logs":`导出日志`,"Pack logs from the selected period into a zip file for troubleshooting.":`把所选时间段内的日志打包成 zip,便于排查问题。`,"Time range":`时间范围`,"Last hour":`最近 1 小时`,"Last 6 hours":`最近 6 小时`,"Last 24 hours":`最近 24 小时`,"Last 3 days":`最近 3 天`,"Exporting...":`导出中...`,"Logs exported":`日志已导出`,"Log export failed":`日志导出失败`,"CPU, memory and disk usage of EnsoCode and the processes it started.":`EnsoCode 及其启动的进程占用的 CPU、内存和磁盘。`,RAM:`内存`,Storage:`存储`,"App processes":`应用进程`,"Agent and tools":`Agent 与工具`,"Other child processes":`其他子进程`,"Scanning...":`扫描中...`,Clean:`清理`,"Cleaning...":`清理中...`,"Clean {{name}}?":`清理{{name}}?`,"You will be signed out of sites opened in the built-in browser.":`内置浏览器中打开过的网站将退出登录。`,"Deleted files cannot be restored.":`删除的文件无法恢复。`,"Show in folder":`在文件夹中显示`,"Conversation history":`对话记录`,"Conversation transcripts and usage ledger.":`对话记录文件与用量账本。`,"Coworker transcripts":`Coworker 记录`,"Secretary images":`秘书图片`,"Images sent to the secretary. Cleaning removes only images no message references any more and older than 7 days; referenced images are kept.":`发给秘书的图片。清理只删已不被任何消息引用、且超过 7 天的图片,仍被引用的保留。`,"Coworker journals; only those of deleted conversations are cleaned.":`Coworker 的对话记录;只清理已删除会话留下的。`,"Tool outputs":`工具输出`,"Saved long tool outputs; only those of deleted conversations are cleaned.":`落盘的超长工具输出;只清理已删除会话留下的。`,"Memory database and working memory.":`记忆数据库与工作记忆。`,"Local models":`本地模型`,"Downloaded embedding and chat models.":`已下载的嵌入与对话模型。`,Runtimes:`运行时`,"Bundled tools and GPU backends.":`内置工具与 GPU 后端。`,Worktrees:`Worktree`,"Isolated worktrees created for conversations.":`为会话创建的隔离 worktree。`,"Change snapshots":`变更快照`,"Baselines for the Changes panel.":`Changes 面板的编辑前基线。`,"Cookies, storage and cache of the built-in browser.":`内置浏览器的 Cookie、存储与缓存。`,"Rebuildable caches; cleaning is safe.":`可重建的缓存,清理是安全的。`,Logs:`日志`,"Task and memory logs; files written in the last 24 hours are kept.":`任务与记忆日志;保留最近 24 小时写入的文件。`,Backups:`备份`,"Configuration backup files; files from the last 24 hours are kept.":`配置备份文件;保留最近 24 小时内的文件。`,Configuration:`配置`,"Settings, instructions, prompts and credentials.":`设置、指令、提示词与凭证。`,"Chromium profile data and other files.":`Chromium 配置数据及其他文件。`,"Main process":`主进程`,"Main window":`主窗口`,Window:`窗口`,"Built-in browser":`内置浏览器`,Service:`服务`,Tool:`工具`,"Child process":`子进程`,"App data":`应用数据`,"Worktree directory":`Worktree 目录`,"Freed {{size}}":`释放 {{size}}`,"{{count}} files removed":`删除 {{count}} 个文件`,"{{count}} kept":`保留 {{count}} 个`,"{{count}} failed":`{{count}} 个失败`,"{{name}} cleaned":`已清理{{name}}`,"{{count}} conversations deleted":`已删除 {{count}} 个会话`,"Scanning {{count}} files · {{size}}":`正在扫描 {{count}} 个文件 · {{size}}`,"Scanned at {{time}} · took {{seconds}}s":`扫描于 {{time}} · 用时 {{seconds}} 秒`,"{{count}} paths could not be read and are not counted.":`{{count}} 个路径无法读取,未计入。`,"Include unarchived":`包含未归档会话`,'Delete "{{title}}"?':`删除「{{title}}」?`,"Delete {{count}} conversations?":`删除 {{count}} 个会话?`,"Delete {{count}} conversations in {{project}}?":`删除「{{project}}」下的 {{count}} 个会话?`,"About {{size}} of history, tool output and isolated worktrees will be removed and cannot be restored.":`将删除约 {{size}} 的对话记录、工具输出和隔离 worktree,无法恢复。`,"Open, running and waiting conversations are skipped.":`当前打开、运行中和等待处理的会话会跳过。`,"This chat is archived. Restore it before sending.":`该聊天已归档,恢复后才能发送。`,"Without @, the group owner replies":`不 @ 时由群主回复`,"{{name}} is replying; new messages are routed after they finish":`{{name}}回复中,新消息会在他说完后重新分配`,"Queued until a session slot frees up":`排队中,等有空闲会话名额后开始`,"Queued and has not started yet":`排队中,还没开始`,"{{name}} is working; your message joins the current turn":`{{name}}正在工作,新消息会插入当前这一轮`,"Message not sent":`消息未发送`,"{{n}} members · Owner {{name}}":`{{n}} 名成员 · 群主 {{name}}`,"Group info":`群信息`,"Member profile":`成员资料`,"Message {{name}}…":`给 {{name}} 发消息…`,"@ a member, or just say it…":`@ 成员,或直接说…`,Working:`工作中`,Idle:`空闲`,"Say hi to {{name}}":`和 {{name}} 打个招呼`,"{{name}} needs you":`{{name}} 需要你处理`,"Deleted member":`已删除成员`,everyone:`所有人`,"Mention a member":`提及成员`,"Reference a chat":`引用聊天`,"Unavailable chat":`不可用的聊天`,"Direct chat":`私聊`,"Referenced chat":`引用的聊天`,"Dispatch hint: {{note}}":`分派提示:{{note}}`,"The referenced chat no longer exists.":`引用的聊天已不存在。`,"A chat cannot reference itself.":`不能引用当前聊天本身。`,"The file is not inside this chat's workspace.":`文件不在该聊天的工作区内。`,"This skill is not available to the member.":`该成员没有这个技能。`,"{{names}} cannot use this skill; they will be told it is unavailable":`{{names}} 没有这个技能,投递时会告知其不可用`,"The member is busy. Try again after the current turn.":`成员正忙,请等这一轮结束后再试。`,"That message is no longer on the current branch.":`这条消息已不在当前分支上。`,"Custom color":`自定义颜色`,Inbox:`收件箱`,"Everything members are waiting on you for":`所有成员待你处理的事`,"Nothing needs your attention":`暂无待处理事项`,Approval:`审批`,"Go to chat":`去聊天`,"Always allow in this session":`本会话总是允许`,"Custom answer…":`自定义回答…`,Reply:`回复`,"{{name}} owns group chats":`{{name}} 是群主`,"Choose another owner in {{groups}} first.":`请先在「{{groups}}」中更换群主。`,"Export character card":`导出人物卡`,'Exports a SillyTavern V2 PNG: the avatar as image, persona embedded. Restore it in a new member via "Import character card".':`导出 SillyTavern V2 PNG:图片是头像,人设已嵌在其中。可在新建成员时用「导入人物卡」还原。`,'Persona embedded in the PNG. Restore it in a new member via "Import character card".':`人设已嵌在图片里,可在新建成员时用「导入人物卡」还原。`,Profile:`资料`,Abilities:`能力`,Routines:`例行`,History:`历史`,"Used for @ in groups; must be unique":`群内 @ 用,必须唯一`,Title:`头衔`,"Used for routing and the delegation directory":`用于路由和委派目录`,Responsibilities:`职责`,Persona:`人设`,"Avatar color":`头像颜色`,"Archive member":`归档成员`,Tools:`工具`,"All tools":`全部工具`,"Can delegate to":`可委派给`,"Accepts delegation from":`接受来自`,"Long-term memory":`长期记忆`,"No memories yet":`还没有记忆`,Discard:`放弃修改`,"Delete {{name}}?":`彻底删除 {{name}}?`,"Archive {{name}}?":`归档 {{name}}?`,"The member, their private chats, persona, memories and workspace are deleted. This cannot be undone.":`成员本身、与其的私聊、人设、记忆和工作区都会被删除,无法恢复。`,"Archived members stop replying and are hidden from the list. You can restore them later.":`归档后成员不再回复,并从列表隐藏,之后可以恢复。`,"All members":`所有成员`,"Selected members":`指定成员`,"No other members":`没有其他成员`,"Routines are coming soon.":`例行任务即将推出。`,"No routines yet":`还没有例行任务`,"Posts to {{chat}}":`投递到「{{chat}}」`,Paused:`已暂停`,"Conversation {{n}}":`会话 {{n}}`,"Group chats":`群聊`,"New group chat":`新建群聊`,"No group chats yet":`还没有群聊`,Members:`成员`,Member:`成员`,"New member":`新建成员`,"No members yet":`还没有成员`,"Nothing archived":`没有已归档的内容`,"Switch between Code and Bot":`切换 Code / Bot 模式`,"Only when Bot mode is enabled in Experimental settings":`需先在实验设置中开启 Bot 模式`,"Search Code projects or recent folders...":`搜索 Code 项目或最近打开的目录...`,"Chat threads":`聊天`,"Delete group chat?":`删除群聊?`,"The group timeline and its standalone workspace are deleted. Member sessions stay readable in their history.":`群聊记录及其独立工作区会被删除;成员的会话仍可在其历史中只读查看。`,"Archive chat":`归档聊天`,"Delete group chat":`删除群聊`,"Clone group chat":`克隆群聊`,Clone:`克隆`,"{{title}} copy":`{{title}} 的副本`,"Copies the setup of “{{title}}”. The original stays as is; replies in progress are not stopped.":`从「{{title}}」复制配置。原群保持原样,正在跑的回复也不会停。`,"Will copy":`会复制`,"Not copied":`不复制`,Routing:`分派`,"Relay {{hops}} · {{turns}} replies each":`接力 {{hops}} · 每人 {{turns}} 条`,"Same project: {{name}}":`沿用同一项目:{{name}}`,"A new empty folder, separate from the original":`新建空目录,和原群互不影响`,"Chat history, group notes, routines, task board and group memory":`聊天记录(新群是空的)、群笔记、例行任务、任务板、群记忆`,"Cloned. The chat history is empty.":`已克隆。聊天记录是空的。`,Topics:`话题`,"New topic":`新话题`,"Main topic":`主话题`,"Rename topic":`重命名话题`,"Delete topic":`删除话题`,"Delete this topic?":`删除这个话题?`,"Its messages and member sessions are removed; replies in progress are stopped. Group notes, memory and the task board stay.":`话题里的消息和成员会话会被删除,正在进行的回复会停止。群笔记、群记忆和任务看板保留。`,"Could not create topic":`无法新建话题`,"All topics ({{n}})":`全部话题({{n}})`,"Search topics...":`搜索话题...`,"No matching topics":`没有匹配的话题`,"All conversations ({{n}})":`全部对话({{n}})`,"Untitled conversation":`未命名对话`,"Workspace changed; view only":`工作目录已更换,只能查看`,"Switch conversation?":`切换对话?`,"The reply in progress will be stopped.":`正在进行的回复会停止。`,Switch:`切换`,Unread:`未读`,"Earlier conversation · {{n}} messages":`上一段对话 · {{n}} 条`,"Collapse earlier conversation":`收起上一段对话`,"Create members with their own persona, model and tools, then chat with them alone or in groups.":`创建拥有各自人设、模型和工具的成员,然后与他们私聊或拉群协作。`,"Pick a member or a group chat on the left.":`在左侧选择成员或群聊。`,"Group name":`群名`,Owner:`群主`,"Make owner":`设为群主`,"Remove from group":`移出群聊`,"Add member":`添加成员`,"Reply queue":`回复队列`,"relay {{n}}/{{max}}":`@ 接力 {{n}}/{{max}}`,Waiting:`排队`,"Per-member limit":`每人上限`,"{{n}} replies":`{{n}} 次`,Workspace:`工作区`,"Shared by all members":`所有成员共享`,"Routing limits":`路由上限`,"@ relay limit":`@ 接力上限`,"Replies per member":`每人回复次数`,"Group memory":`群记忆`,"No group memories yet":`还没有群记忆`,"Core notes":`核心笔记`,"Group notes":`群笔记`,"Injected into every new conversation":`每次新对话自动带上`,"Edit notes":`编辑笔记`,"Save failed":`保存失败`,"Notes were updated elsewhere; reloaded the latest version":`笔记已被更新,已加载最新版本`,"No notes yet. Key preferences and facts are summarized here automatically after memories are organized.":`还没有笔记。整理记忆后,重要的偏好和事实会自动汇总到这里。`,"No group notes yet. Group conventions and decisions are summarized here automatically after memories are organized.":`还没有群笔记。整理记忆后,群里的约定和决定会自动汇总到这里。`,"Beginning of the chat":`已经到顶了`,"Back to latest":`回到最新`,"Back to latest · {{n}} new":`回到最新 · {{n}} 条新消息`,"Say something. Mention a member with @, or the group owner replies.":`说点什么吧。@ 某个成员,或由群主来回复。`,Replying:`正在回复`,"View live":`实时查看`,Thinking:`思考中`,"Writing reply":`输出中`,"Calling tools":`调用工具`,Retrying:`重试中`,Denied:`已拒绝`,"Queued · concurrency limit reached":`排队中 · 并发已满`,"Queued · waiting for the current turn to finish":`排队中 · 等上一轮结束`,"Queued · checking whether tasks can run in parallel":`排队中 · 正在判断是否可并行`,"Queued · waiting for the member's current task to finish":`排队中 · 等待成员当前任务完成`,"Queued · waiting for the member's earlier tasks":`排队中 · 等待成员前序任务`,"Queued · waiting for the member to stop":`排队中 · 等待成员停止完成`,"Insert into {{name}}’s current task":`插到 {{name}} 当前任务`,Free:`空闲`,Planning:`思考`,Busy:`执行`,"Needs you":`等待`,"Demand threads":`需求线程`,"Thread owner":`绑定主人`,"Thread external":`外部`,"Handled by {{session}}":`负责会话 {{session}}`,Stuck:`异常`,Finished:`完成`,"In line":`排队中`,Task:`任务`,From:`谁派的`,Time:`用时`,"Waiting on":`在等`,"Nothing in progress":`没有进行中的事`,"Go handle it":`去处理`,"Your approval: {{title}}":`你批准:{{title}}`,"Your answer: {{title}}":`你回答:{{title}}`,"{{holder}} is editing {{file}}":`{{holder}} 改完 {{file}}`,"{{holder}} is running a workspace-wide command":`{{holder}} 跑完整个仓库的命令`,"A free slot (concurrency limit, not a person)":`空位(并发已满,不是在等某个人)`,"Its previous turn to finish":`上一轮结束`,"Still running, no output for {{time}}":`还在跑,但已经 {{time}} 没有输出`,"{{name}} is using this tab":`{{name}} 正在用这个标签页`,Delegation:`委派`,"In progress":`进行中`,"Running sessions and what needs you":`进行中的会话,以及需要你处理的`,"Today's board; optional date":`今天的看板;可带日期,如 /board 2026-05-20`,"Recent activity, with an older button":`最近的动态,底部可翻更早`,"Open todos":`未完成的待办`,"Scheduled tasks and next run":`定时任务与下次运行时间`,"Memory titles (off by default)":`秘书记得的标题(默认关闭)`,"Replay the last round; /last 3 for three":`回看秘书会话最近一轮;/last 3 看最近三轮`,"Mirror every reply here; /sync off stops it":`把所有回复同步到手机;/sync off 关掉`,"List every command":`列出所有命令`,"Commands you can send":`可以发的命令`,"Only groups on this list reach the secretary, and only messages from the bound account count. Messages from anyone else in the group are not received.":`只有名单里的群会进秘书,而且只认绑定的那个账号。群里其他人的话不会收。`,"No groups yet: group messages are not received.":`名单为空:群消息一律不收。`,"Group chat ID, e.g. -1001234567890":`群 chatId,例如 -1001234567890`,"Add group":`添加`,"Remove {{name}}":`删除 {{name}}`,"Group chat IDs are numbers, e.g. -1001234567890":`群 chatId 是数字,例如 -1001234567890`,"General (default topic)":`General(默认话题)`,"Topic #{{id}}":`话题 #{{id}}`,"Make sure the bot is in this group.":`确认 bot 已经在这个群里。`,"This chat is not a group":`这不是群聊`,"Pick at least one topic":`至少勾选一个话题`,"Another secretary already has this group or one of these topics":`这个群或其中某个话题已经交给别的秘书了`,"Whole group":`整群`,"Groups and topics":`群和话题`,"Pick topics":`选话题`,"Bind another group or topic":`再绑一个群或话题`,"Change topics":`改话题`,"What {{name}} hands to this secretary":`{{name}} 交给这个秘书的范围`,"Add the bot to the group: tap the button, or add @{{bot}} as a member in Telegram. For a forum group, turn on Topics first.":`把 bot 拉进群:点下面的按钮,或在 Telegram 里把 @{{bot}} 加为群成员。论坛群要先开启话题。`,"Send this in the group to hand the whole group to this secretary, or inside a forum topic to hand over only that topic:":`在群里发下面这条,整个群归这个秘书;在论坛话题里发,只把这个话题交给它:`,"<code>":`<绑定码>`,"Verify a bot above first; the binding code shows up here.":`先在上面验证 bot,绑定码会显示在这里。`,"Binding code of this secretary: {{code}}":`这个秘书的绑定码:{{code}}`,"Get a binding code":`生成绑定码`,"Bound groups show up in the list of this section, where you can switch between the whole group and picked topics.":`绑好的群会出现在这一块的群列表里,可以切换「整群」或「选话题」。`,"Claimed by other secretaries on this bot (read only):":`同一个 bot 上其他秘书认领的(只读):`,"belongs to {{owner}}":`归「{{owner}}」`,"Groups and topics: {{count}}":`群和话题:{{count}} 个`,"Or add a group by its chat ID:":`也可以直接填群的 chat ID 添加:`,"Topics: {{names}}":`话题:{{names}}`,"Loading topics…":`正在拉取话题…`,"Could not load topics: {{reason}}":`拉取话题失败:{{reason}}`,"Only topics the bot has seen are listed. If one is missing, send a message in that topic, then refresh. Topics you leave unchecked are ignored.":`列表里只有 bot 见过的话题。缺哪个,就在那个话题里发一句话再点刷新。没勾的话题一律忽略。`,"This group has no topics, so it can only be bound as a whole.":`这个群没开话题,只能整群交给秘书。`,"Allow viewing memory titles on Telegram":`允许在 Telegram 查看记忆标题`,"Off by default. /memory lists titles only, never the memory text.":`默认关闭。/memory 只列标题,不显示记忆正文。`,"Mirroring every conversation to Telegram":`正在把所有对话同步到 Telegram`,"Every reply in the secretary conversation is sent to your phone, not just milestones. Silent turns arrive as a one-line summary. Telegram messages are not end-to-end encrypted and stay on Telegram servers. Send /sync off in Telegram to stop.":`秘书会话里每一轮回复都会发到手机,不再只发里程碑;静默回合只发一行摘要。Telegram 消息不是端到端加密的,会存在 Telegram 的服务器上。在 Telegram 发 /sync off 可以关掉。`,"Only milestones go to Telegram. Send /sync in Telegram to mirror every reply; /last replays the latest round.":`目前只把里程碑发到 Telegram。在 Telegram 发 /sync 可以把每一轮回复都同步过去;/last 回看最近一轮。`,"Followed from the phone: {{count}}":`手机关注的 {{count}} 个任务`,"Clear all":`全部清空`,"What you dispatch or schedule from the phone keeps reporting here until it finishes or fails once, even with /sync off.":`从手机派出的会话或加的定时会一直把结果推到这里,直到完成或失败推过一次,/sync 关着也一样。`,Drop:`取消`,"Telegram messages are not end-to-end encrypted and stay on Telegram servers. /status, /board and /feed show titles and short summaries; /last and /sync send conversation text. Memory text and tool output never leave the app.":`Telegram 消息不是端到端加密的,会存在 Telegram 的服务器上。/status、/board、/feed 只显示标题与简短摘要;/last 与 /sync 会发会话正文。记忆正文与工具输出不会离开应用。`,"Waiting on a background task":`等后台任务`,"Waiting for reminder":`等提醒`,"Waiting for reminder · {{time}}":`等提醒 · {{time}}`,"due now":`即将到点`,"<1m":`不足 1 分钟`,"in {{minutes}}m":`{{minutes}} 分钟后`,"in {{hours}}h":`{{hours}} 小时后`,"in {{hours}}h {{minutes}}m":`{{hours}} 小时 {{minutes}} 分钟后`,"{{count}} reminders":`共 {{count}} 条提醒`,"Waiting on subagent":`等子代理`,"Waiting on subagent {{title}} ({{minutes}}m)":`正在等子代理 {{title}}(已运行 {{minutes}} 分钟)`,"Waiting on subagent {{title}} (<1m)":`正在等子代理 {{title}}(不足 1 分钟)`,"Waiting on {{n}} subagents ({{title}} · {{minutes}}m)":`正在等 {{n}} 个子代理({{title}} · 已运行 {{minutes}} 分钟)`,"Waiting on {{n}} subagents ({{title}} · <1m)":`正在等 {{n}} 个子代理({{title}} · 不足 1 分钟)`,"Service running":`有常驻服务`,"Done ({{count}} leftover tasks)":`已完成({{count}} 个遗留任务)`,"Stop leftover tasks":`停止遗留任务`,"Stop background task {{task}}":`停止后台任务 {{task}}`,"Stopped {{count}} background tasks":`停止了 {{count}} 个后台任务`,"Stopping…":`正在停止…`,"Persistent service":`常驻服务`,Leftover:`疑似遗留`,Continuing:`续跑中`,"Taken over":`已接管`,"Started {{time}}":`派出于 {{time}}`,Canceled:`已取消`,"No process recorded.":`没有记录到过程。`,"View process":`查看过程`,"Run history":`历次执行`,"+{{n}} appended":`+{{n}} 追加`,Processing:`处理中`,Delivered:`已送达`,"Not delivered":`未送达`,"Merged into the current run":`已并入当前执行`,"Open task card #{{n}}":`打开任务卡 #{{n}}`,"Expand delegation result":`展开委派结果`,"Collapse delegation result":`收起委派结果`,"Merged into the current run of #{{n}}":`已并入 #{{n}} 当前执行`,Delegated:`派活`,Appended:`追加`,"Resumed after reply":`回复后继续`,Rework:`返工`,"Sub-delegation":`转派`,"Run {{n}} · {{source}}":`第 {{n}} 次执行 · {{source}}`,"Queued {{time}}":`排队 {{time}}`,Continue:`继续`,"Start over":`重新开始`,"Will retry automatically":`将自动重试`,"Retrying automatically at {{time}} (attempt {{n}})":`将于 {{time}} 自动重试(第 {{n}} 次)`,"Retrying automatically · attempt {{n}}":`自动重试中 · 第 {{n}} 次`,"Retry #{{n}} · {{source}}":`第 {{n}} 次重试 · {{source}}`,Automatic:`自动`,"By delegator":`委派人`,"Delegator note: {{note}}":`委派人补充:{{note}}`,"Retry now":`立即重试`,"Skip the wait and retry now. The scheduled automatic retry is canceled.":`不再等待,立即重试;已排定的自动重试会取消。`,"Result posted to the group · View":`结果已发到群里 · 查看`,"Delegation result":`委派结果`,"Locate the delegation card":`定位到对应的委派卡片`,"The delegation card is posted after the delegator receives the result.":`委派人收到结果后,委派卡片才会发到群里。`,"The delegation card is not in the loaded messages.":`委派卡片不在已加载的消息里。`,"{{n}} steps":`{{n}} 步`,"Could not locate this reply; showing the latest turn.":`未定位到这条回复,显示最近一轮。`,"No tool calls in this turn.":`这一轮没有工具调用。`,"Open full conversation":`打开完整会话`,"Delete failed":`删除失败`,"Memory not found":`记忆不存在`,"Memory title":`记忆标题`,"Memory content":`记忆内容`,"Switch mode":`切换模式`,"This file is not valid JSON.":`该文件不是有效的 JSON。`,"This file is not a SillyTavern character card.":`该文件不是 SillyTavern 人物卡。`,"Members have their own persona, model, tools and memory. Their name is how you @ them in groups.":`成员拥有各自的人设、模型、工具和记忆;名字用于在群里 @ 他。`,"From template":`从模板`,Blank:`空白`,"Import character card":`导入人物卡(PNG / JSON)`,"Upload avatar":`上传头像`,"Remove avatar":`移除头像`,"Crop avatar":`裁切头像`,Zoom:`缩放`,"Use this avatar":`使用此头像`,"Drag to move, scroll to zoom.":`拖动调整位置,滚轮缩放。`,"This image cannot be used as an avatar.":`该图片无法用作头像。`,"Avatar update failed":`头像更新失败`,"Blank member":`空白成员`,"Create and start chatting":`创建并开始私聊`,"One member replies at a time. Without @, the best-fit member is picked to reply.":`一次只有一位成员回复;没人被 @ 时智能选出最合适的成员回复。`,"Pick at least two, and one owner":`至少选两位,并指定一位群主`,"Create at least two members first.":`请先创建至少两名成员。`,"Shared workspace":`共享工作区`,"Based on a Code project":`基于 Code 项目`,"Members read and write directly in the project folder":`成员直接在项目目录里读写`,"Standalone workspace":`独立工作区`,"A new empty folder for this group, removed with the group":`为这个群新建一个空目录,删除群时一并清理`,"All members share this folder: anyone who can talk to a member can reach its contents through them. You can change it later in group info (members start new conversations).":`群内成员共享这个目录,能和任一成员对话的人,都能经由他触达目录里的内容。创建后可在群信息里改选(成员会各开新会话)。`,"@ relay limit (per message of yours)":`@ 接力上限(你的每条消息之后)`,"Max replies per member":`每个成员最多回复几次`,"This conversation has no history yet.":`这个会话还没有记录。`,"Member's own workspace":`成员自己的工作区`,"Change workspace":`更换工作区`,"Change workspace?":`更换工作区?`,"Members start new conversations in the new workspace. Earlier conversations stay readable in history.":`成员会在新工作区里各开新会话,旧会话保留在历史中只读查看。`,Change:`更换`,"Names can use up to 24 letters, digits, _ or -, without spaces.":`名字最多 24 个字符,只能包含文字、数字、_ 或 -,不能有空格。`,"This name is reserved. Choose another one.":`这个名字是保留名,请换一个。`,"Another member already uses this name.":`已有成员使用这个名字。`,"Another secretary already uses this name.":`已有别的秘书叫这个名字。`,"This member was changed elsewhere. Refresh and try again.":`该成员已在别处被修改,请刷新后重试。`,"This member no longer exists.":`该成员已不存在。`,"Group chat is not available right now.":`群聊暂不可用。`,"This chat was changed elsewhere. Refresh and try again.":`该聊天已在别处被修改,请刷新后重试。`,"Untitled group":`未命名群聊`,"{{name}}'s workspace":`{{name}}的工作区`,"Group workspace":`群工作区`,"Missing project":`项目已不存在`,"Group reply picker model":`群聊选人模型`,"Bot assistant model":`Bot 助理模型`,"Used for helper tasks such as auto-configuring member abilities.":`用于自动设置成员能力等辅助任务。`,"Features still being tested. They may change or be removed.":`仍在测试中的功能,之后可能调整或移除。`,"Bot mode settings":`Bot 模式设置`,"Settings shared by all members and group chats.":`所有成员和群聊共用的设置。`,"Bot concurrency limit":`Bot 并发上限`,"Shared by private chats, group chats, delegations and routines. Lowering it never interrupts running work; raising it may hit model rate limits.":`私聊、群聊、委派和例行任务共用一个上限。调低不会打断进行中的回复;调高可能触发模型限流。`,Apply:`应用`,"None selected":`未选择`,"Suggested changes":`建议的修改`,"Auto-configure abilities":`自动设置能力`,"Let a model suggest abilities from the name, title, responsibilities and persona.":`让模型根据名称、头衔、职责和人设推荐能力配置。`,"Current abilities already match the suggestion.":`当前能力已与推荐一致。`,"No model is available. Set a default model or a Bot assistant model first.":`没有可用的模型,请先设置默认模型或 Bot 助理模型。`,"Generate with AI":`AI 生成`,"Start from a goal":`从目标开始`,"Tell us in one sentence what you want done; we will recommend a member or a team and draft your first message.":`用一句话说说你想做什么,我们推荐一位成员或一个团队,并帮你起草第一条消息。`,"e.g. Track competitor news every week and send me a summary":`例如:每周跟踪竞品动态,给我发一份摘要`,Recommend:`推荐`,"Recommended: one member":`推荐:单个成员`,"Recommended: a team":`推荐:一个团队`,"First message (put into the input box, not sent)":`第一条消息(放进输入框,不会自动发送)`,"Create this member":`创建这位成员`,"Use this member":`用这个成员`,"Create new instead":`还是新建`,"Could not open chat. Try again.":`无法打开私聊,请重试。`,"Create this team":`创建这个团队`,"Fill in a name and title first.":`请先填写名称和头衔。`,"Persona generated":`人设已生成`,"Persona and responsibilities generated":`人设和职责已生成`,Undo:`撤销`,"The model did not answer in time. Try again.":`模型未及时响应,请重试。`,"The model reply could not be understood. Try again.":`无法理解模型的回复,请重试。`,"Fill in a name, title or responsibilities first.":`请先填写名称、头衔或职责。`,"Could not get suggestions":`获取推荐失败`,"Tools, approval, skills, MCP, delegation and memory":`工具、审批、技能、MCP、委派与记忆`,"When nobody is @-mentioned in a smart-routing group, this model picks which member replies.":`在「智能选人」的群里没人被 @ 时,用这个模型选出回复的成员。`,"Default (title model)":`默认(跟随标题总结模型)`,"Fast chat model":`快速聊天模型`,"Falls back to the group owner on timeout, error or an unclear answer.":`超时、出错或回答不明确时由群主回复。`,"Handed to the group owner on timeout.":`超时就交给群主处理。`,"Discussion mode":`讨论模式`,"Experimental feature":`实验性`,"Off: group chats work the same as the stable release. On: in smart-routing groups, discussion-style messages let the judge model pick who speaks next.":`关闭时,群聊流程与正式版一致。打开后,智能选人的群里遇到讨论类消息,会由判断模型挑选下一位发言人。`,"First pick: the group owner replies on timeout, error or an unclear answer. During a discussion, picking the next speaker ends the discussion in these cases.":`首轮选人遇到超时、出错或回答不明确时由群主回复;讨论中判断下一位遇到这些情况时,结束本轮讨论。`,"First pick: handed to the group owner on timeout. Next speaker in a discussion: the discussion ends on timeout.":`首轮选人超时交给群主回复;讨论中判断下一位超时则结束本轮讨论。`,"Uses the primary model on timeout.":`超时就用主模型。`,Timeout:`超时`,"Without @":`不 @ 时`,"Group owner replies":`群主回复`,"Smart pick":`智能选人`,"Search messages":`搜索消息`,"Search group and direct messages…":`搜索群聊与私聊消息…`,"No matching messages":`没有匹配的消息`,"Deleted chat":`已删除的聊天`,"Showing the latest {{n}} matches":`仅显示最近 {{n}} 条匹配`,"Show in Finder":`在访达中显示`,"Open with default app":`用默认应用打开`,"This file type is only shown in Finder":`该类型文件只能在访达中显示`,"Could not open the file":`无法打开文件`,"The file is too large to preview":`文件过大,无法预览`,"Web screenshot":`网页截图`,"Desktop screenshot":`桌面截图`,"Workspace image":`工作区`,"Not sent: still over 10 MiB after compression":`没发出去:压缩后仍超过 10MiB`,"Chat image storage is full (200 MiB); not saved":`群图片空间已满(200 MiB),没收下`,"Desktop screenshots may capture sensitive content from other windows.":`桌面截图可能拍到别的窗口里的敏感内容。`,"Copied into this chat: later edits or deletion of the original do not change it. Deleted together with the chat.":`已复制到聊天目录:原文件后来被改或删,这张不变;删聊天时一起删。`,"Choosing who replies…":`正在选择回复人…`,"Picked automatically because nobody was @-mentioned":`没人被 @,由智能选人选出`,"Smart pick · build":`智能选人 · 执行`,"Smart pick · answer":`智能选人 · 解答`,"Smart pick · discuss":`智能选人 · 讨论`,"Owner summary":`群主汇总`,"Asked to sum up after the assigned members replied":`派出的成员都回复后,提醒群主汇总`,Mute:`静音`,Unmute:`取消静音`,Muted:`静音`,"Replies only when @-mentioned by name":`只有被点名 @ 时才回复`,"Without @, the best-fit member is picked to reply":`不 @ 时智能选出最合适的成员回复`,"Adds a Code | Bot switch to the sidebar. Create members with their own persona, model and tools, and chat with them alone or in groups.":`在侧栏顶部加入 Code | Bot 切换。创建拥有各自人设、模型和工具的成员,与他们私聊或拉群协作。`,Interrupted:`中断`,"The app restarted before this task finished. It was stopped and will not rerun.":`应用重启时任务未完成,已停止,不会自动重做。`,"Timed out after {{n}} minutes.":`超过 {{n}} 分钟未完成,已超时。`,"Denied.":`已被拒绝。`,"Cancel failed":`取消失败`,"Retry failed":`重试失败`,"{{from}} → {{to}} · Delegation":`{{from}} → {{to}} · 委派`,"Check the title, prompt and schedule, and that the member is still in the target chat.":`请检查标题、提示词和时间表,并确认成员仍在目标聊天中。`,"This routine no longer exists.":`该例行任务已不存在。`,"The member or target chat is archived or unavailable.":`成员或目标聊天已归档或不可用。`,"Bot mode is off.":`Bot 模式已关闭。`,"Enter a title.":`请填写标题。`,"Enter what the member should do.":`请填写成员要做的事。`,"Invalid cron expression (minute hour day month weekday).":`cron 表达式无效(分 时 日 月 周)。`,"Choose a target chat.":`请选择目标聊天。`,"Routine not saved":`例行任务未保存`,"Routine started":`例行任务已开始运行`,"Routine task":`例行任务`,"Group messages":`群消息`,"Task from {{name}}":`来自 {{name}} 的委派任务`,"Result from {{name}}":`{{name}} 的结果`,"Delegation results":`委派结果`,"Continue delegated task":`继续委派任务`,"Acceptance check not passed":`验收未通过`,"Routine did not run":`例行任务未能运行`,"Routine not deleted":`例行任务未删除`,"New routine":`新建例行任务`,Enabled:`已启用`,"Target chat missing":`目标聊天已不存在`,"Last run {{time}} · {{result}}":`上次 {{time}} · {{result}}`,Error:`出错`,"Never run":`尚未运行`,"Missed {{n}} times":`错过 {{n}} 次`,"Run now":`立即运行`,'Delete routine "{{title}}"?':`删除例行任务「{{title}}」?`,"It will no longer run. This cannot be undone.":`删除后不再运行,且无法恢复。`,"Group chat":`群聊`,"Private chat":`私聊`,"Edit routine":`编辑例行任务`,"Routine title":`标题`,"Sent to the member as the task each time it runs":`每次运行时作为任务发给成员`,"cron: minute hour day month weekday, local time":`cron:分 时 日 月 周,本地时间`,Schedule:`时间表`,"Next run {{time}}":`下次运行 {{time}}`,"Never runs":`不会触发`,"Approve this routine before running it. You can still do a dry run.":`请先批准该例行任务再运行;仍可以先试运行。`,"This routine is already running.":`该例行任务正在运行。`,"This routine is blocked. Fix the problem and enable it again.":`该例行任务已被阻塞,处理问题后重新启用。`,"The member who runs it was deleted.":`执行成员已被删除。`,"The member who runs it is archived.":`执行成员已归档。`,"The target chat no longer exists.":`目标聊天已不存在。`,"The target chat is archived.":`目标聊天已归档。`,"The member who runs it is no longer in the target chat.":`执行成员已不在目标聊天中。`,"Delegation permissions do not allow that member to run it.":`委派权限不允许由该成员执行。`,"Skipped (still running)":`跳过(上次仍在运行)`,Blocked:`已阻塞`,Running:`运行中`,"Dry run started":`试运行已开始`,"Done by {{name}}":`由 {{name}} 执行`,"Dry run":`试运行`,Reject:`拒绝`,Approve:`批准`,"Enable again":`重新启用`,"Pending approval":`待批准`,"Routine removed":`已删除`,Scheduled:`定时`,Manual:`手动`,"Catch-up":`补跑`,"Routine blocked":`例行任务已阻塞`,"Proposed by {{name}}, waiting for your approval":`{{name}} 提议,等待你批准`,"No catch-up":`不补跑`,"Run once without affecting the schedule":`运行一次,不影响调度`,"No runs yet":`还没有运行记录`,"Open chat":`打开聊天`,"Every day":`每天`,Weekdays:`工作日`,"Every week on":`每周`,Simple:`简单`,"Advanced (cron)":`高级(cron)`,"The member itself":`成员自己`,"Another member of the target chat runs it, as a delegation":`由目标聊天里的另一位成员执行,受委派权限约束`,"Done by":`执行者`,"If the app was closed at the scheduled time, run the latest missed one once on startup":`到点时应用未运行,启动后补跑最近错过的一次`,"Catch up missed runs":`补跑错过的运行`,"Routine dry run":`例行任务试运行`,"Target chat":`目标聊天`,"This member is not in any chat yet. Start a private chat first.":`该成员还不在任何聊天中,请先发起私聊。`,"Daily at 9:00":`每天 9:00`,"Weekdays at 9:00":`工作日 9:00`,"Mondays at 9:00":`每周一 9:00`,Hourly:`每小时`,"Interrupted delegations":`中断的委派`,"Quiet for {{n}}s":`已安静 {{n}} 秒`,Settled:`已搁置`,Settle:`搁置`,"Back to in progress":`回到进行中`,"Remind me later":`稍后提醒`,"In 1 hour":`1 小时后`,"In 3 hours":`3 小时后`,"Tomorrow 9:00":`明天 9:00`,"Remind {{time}}":`{{time}}提醒`,"Mark as unread":`标为未读`,"Move up":`上移`,"Move down":`下移`,"{{name}} is still running but has produced no output for a while":`{{name}} 仍在运行,但已有一段时间没有任何输出`,"View conversation":`查看会话`,"{{name}} on behalf of {{owner}}":`{{name}} 替 {{owner}} 执行`,"Delegations in progress · {{n}}":`进行中的委派 · {{n}}`,"{{name}} (on behalf of {{owner}}) needs you":`{{name}} 替 {{owner}} 执行 · 需要你处理`,"Task board":`看板`,Delegations:`委派`,"New task":`新建任务`,"Edit task #{{n}}":`编辑任务 #{{n}}`,"Task title":`任务标题`,Details:`详情`,"Check the title and details.":`请检查标题和详情。`,"No tasks yet. Members can also add and claim tasks with the board tool.":`还没有任务。成员也可以用看板工具新建和认领任务。`,"To do":`待办`,Doing:`进行中`,"Awaiting review":`待验收`,"Accept result":`验收通过`,Return:`退回`,"Return task #{{n}}":`退回任务 #{{n}}`,"Return task #{{n}} for rework":`退回返工 #{{n}}`,"Return for rework":`退回返工`,"{{name}} continues in the same conversation with this reason, and the result comes back for review.":`{{name}} 会带着退回原因在原会话里接着改,改完回到待验收。`,"Reason for returning":`退回原因`,"Enter a reason.":`请填写原因。`,"The task goes back to To do with this reason and can be reassigned.":`任务会带着原因回到待办,可以重新指派或委派。`,"Returned: {{reason}}":`退回原因:{{reason}}`,"Show all ({{n}})":`显示全部({{n}})`,"Assign to":`指派给`,"Reassign to":`改派给`,"Stuck tasks":`卡住`,"Stuck run":`卡住了`,"Stuck delegated tasks":`卡住的任务`,"Blocked · needs: {{need}}":`卡住·缺:{{need}}`,"Blocked · run failed: {{reason}}":`卡住·执行失败:{{reason}}`,"Answer {{name}}; they continue after your reply…":`回复 {{name}},回复后接着做…`,"Stuck for {{time}}":`已卡 {{time}}`,"Waiting for your reply":`等你回复`,"Waiting for {{name}} to reply":`等 {{name}} 回复`,"Waiting for you to handle it":`等你处理`,"Stuck several times in a row; only you can answer now.":`已连续卡住多次,只能由你回复。`,"Answered; the work continues":`已回复,接着做`,"Open task card":`打开任务卡`,Reassign:`改派`,"Add to the current run…":`补充给当前执行…`,"Comment…":`评论…`,"Send reply":`发送回复`,"Reply not sent":`回复未发送`,"Mark done":`标记完成`,"Move off the board":`移出`,"Model: {{model}}":`模型:{{model}}`,"Undo mark done":`撤销标记`,"Cancel task":`取消任务`,"Acceptance check":`验收条件`,"Acceptance check (optional)":`验收条件(可选)`,"Done only when the member's tool output contains this text, e.g. a command printing ALL_TESTS_PASS.":`成员的工具输出包含这段文字才算完成,例如命令打印 ALL_TESTS_PASS。`,Passed:`通过`,"Not passed":`未通过`,'Acceptance check failed: "{{text}}" not found in tool outputs.':`验收未通过:未在工具输出中看到「{{text}}」`,Unassigned:`未指派`,You:`你`,"Created by {{name}}":`由 {{name}} 创建`,"Task not assigned":`任务未指派`,"Task not updated":`任务未更新`,"Task not deleted":`任务未删除`,"Delete task #{{n}}?":`删除任务 #{{n}}?`,"The task is removed from the board. This cannot be undone.":`任务将从看板移除,且无法恢复。`,"No delegations in this group yet":`本群还没有委派`,"Failed · interrupted · canceled":`失败 · 中断 · 取消`,"Choose a member.":`请选择成员。`,"Create team from template":`从模板创建团队`,"Creates the members and their group chat in one go. Members follow the default model; expand a member to set tools, approval, delegation, skills and MCP, or let AI set them.":`一次性创建成员和群聊。成员跟随默认模型;展开成员可设置工具、审批、委派、技能和 MCP,也可让 AI 自动设置。`,"AI auto-configure":`AI 自动设置`,"No skills or MCP":`未选技能和 MCP`,"{{n}} skills · {{m}} MCP":`{{n}} 个技能 · {{m}} 个 MCP`,"Configured abilities for {{n}} members":`已为 {{n}} 位成员设置能力`,"Suggestions failed for {{n}} members":`{{n}} 位成员的推荐失败`,"Import team (JSON)":`导入团队(JSON)`,"This team file is too large.":`团队文件过大。`,"This team file comes from an unsupported version.":`团队文件版本不受支持。`,"This file is not a valid EnsoCode team file.":`该文件不是有效的 EnsoCode 团队文件。`,"Uncheck members you do not need; the owner stays":`可取消不需要的成员,群主保留`,"Delegates to {{names}}":`可委派给 {{names}}`,'"{{from}}" is taken, renamed to "{{to}}"':`「{{from}}」已被占用,已改名为「{{to}}」`,"Keep the owner and at least one other member.":`至少保留群主和另一名成员。`,"Without @, the best-fit member replies; @ relay limit {{n}}.":`不 @ 时由最合适的成员回复;@ 接力上限 {{n}} 次。`,"Without @, the owner replies; @ relay limit {{n}}.":`不 @ 时由群主回复;@ 接力上限 {{n}} 次。`,"Create team":`创建团队`,Team:`团队`,"Export team":`导出团队`,"Export failed":`导出失败`,"Save as team template":`存为团队模板`,"Saved as team template":`已存为团队模板`,"Could not save as team template":`无法存为团队模板`,"Bot templates":`Bot 模板`,"Templates used when creating members and teams. Built-in templates can be edited, hidden or restored.":`新建成员和团队时使用的模板。内置模板可以修改、隐藏或恢复默认。`,"Member templates":`成员模板`,"Team templates":`团队模板`,"Member template":`成员模板`,"Team template":`团队模板`,"New member template":`新建成员模板`,"New team template":`新建团队模板`,"Could not save templates":`模板保存失败`,"Imported as a custom team template":`已导入为自定义团队模板`,"Duplicate as custom":`复制为自定义`,Show:`显示`,Hide:`隐藏`,"Restore default":`恢复默认`,"{{n}} members":`{{n}} 名成员`,"Export JSON":`导出 JSON`,Modified:`已修改`,Hidden:`已隐藏`,Summary:`摘要`,"Shown on the template card":`显示在模板卡片上`,"Check the template fields":`请检查模板内容`,"Enter a team title":`请填写团队标题`,"A team needs 2–12 members":`团队需要 2–12 名成员`,"Every member needs a valid name":`每个成员都需要合法的名字`,Unnamed:`未命名`,"Group settings and member personas only. Memory, sessions, timeline, tasks, routines, models, skills and MCP are not included.":`只含群配置和成员人设,不含记忆、会话、时间线、看板、例行任务、模型、技能和 MCP。`,"Interface is zoomed to {{percent}}% · {{shortcut}}":`界面已缩放至 {{percent}}% · {{shortcut}}`,"Restore 100%":`恢复 100%`,"Uninstall 'enso' Command from PATH":`卸载 enso 命令`,"Uninstall Finder Quick Action":`卸载访达快速操作`,"Couldn't uninstall the 'enso' command":`无法卸载 enso 命令`,"Shell command 'enso' uninstalled.":`已卸载 enso 命令。`,"Couldn't uninstall the Finder Quick Action":`无法卸载访达快速操作`,"Finder Quick Action uninstalled.":`访达快速操作已卸载。`,"In progress…":`处理中…`,Dispatch:`派活`,"Confirm dispatch":`确认派活`,"Project checkout":`项目目录`,"Waiting for your confirmation":`等待你确认`,"Creating the session…":`正在创建会话…`,"Session created":`已创建会话`,Rejected:`已拒绝`,Expired:`已过期`,"Secretary settings":`秘书设置`,"Re-run setup":`重新设置秘书`,Secretaries:`秘书`,"New secretary":`新建秘书`,"Delete secretary":`删除秘书`,"Delete this secretary?":`删除这个秘书?`,"This cannot be undone. The sessions it manages stay, but nobody manages them afterwards; its contact bindings are released and its private memory is deleted.":`删除后无法恢复。它管的会话会保留,但之后无人管理;它的联系方式绑定会释放,私有记忆会删除。`,"Sessions it manages ({{n}})":`它在管的会话({{n}})`,"Open todos ({{n}})":`未完成的待办({{n}})`,"Schedules ({{n}})":`定时({{n}})`,"Contact bindings ({{n}})":`联系方式绑定({{n}})`,"Private memories: {{n}}":`私有记忆:{{n}} 条`,"Nothing is managed by this secretary.":`这个秘书没有在管的东西。`,"Next: confirm again":`下一步:再确认一次`,"Transfer to…":`转交给…`,"Transferred to {{name}}":`已转交给 {{name}}`,"Transfer to {{name}}":`转交给 {{name}}`,"Transfer failed":`转交失败`,"The other secretary cannot see this project.":`对方秘书看不到这个项目。`,"The other secretary has no conversation yet: open it once first.":`对方秘书还没有会话,先打开它一次。`,"No secretary manages this session.":`这个会话没有秘书在管。`,"This secretary":`本秘书`,"All secretaries":`全部秘书`,"Filter by secretary":`按秘书筛选`,"Bound to groups and topics":`已绑定群与话题`,"Groups and topics bound to this secretary":`绑定到这个秘书的群与话题`,"Messages there go to this secretary only, and its updates are posted there. One bot can serve several secretaries: each chat or forum topic belongs to one of them.":`那里的消息只交给这个秘书,它的提醒也发到那里。一个 bot 可以给多个秘书用:每个 chat 或 forum 话题只归其中一个。`,"Topic {{id}}":`话题 {{id}}`,"Add the bot to a group":`把 bot 拉进群`,"The code works once. Press Start in a private chat with the bot, or send it in a group or forum topic to bind that place to this secretary instead.":`绑定码只能用一次。在与 bot 的私聊里点 Start,或在群、forum 话题里发送它,把那里绑定到这个秘书。`,'Your private chat with this bot already belongs to secretary "{{owner}}". One person has only one private chat with a bot, so bind this secretary to a group or forum topic below, or give it a different bot.':`你和这个 bot 的私聊已经归秘书「{{owner}}」。同一个人和同一个 bot 只有一个私聊,所以请把这个秘书绑到下面的群或论坛话题,或者给它换一个 bot。`,'That group or topic already belongs to secretary "{{owner}}". Send the code in another group or topic.':`那个群或话题已经归秘书「{{owner}}」。换一个群或话题发送绑定码。`,"The code expired. Generate a new one.":`绑定码已过期,请重新生成。`,"The bot got /start without the code. Open the bot with the button or QR code (the link carries the code), or send /start {{code}} yourself.":`bot 收到了不带绑定码的 /start。请用按钮或二维码打开 bot(链接里带着码),或者手动发送 /start {{code}}。`,'Your private chat with this bot already belongs to secretary "{{owner}}". Bind this secretary to a group or forum topic instead.':`你和这个 bot 的私聊已经归秘书「{{owner}}」:这个秘书请绑到群或论坛话题。`,"This code has expired":`绑定码已过期`,"@{{bot}} is shared by {{count}} secretaries":`@{{bot}} 由 {{count}} 个秘书共用`,"Each private chat, group or forum topic belongs to one secretary. A topic bound on its own wins over the whole group. Places nobody bound get no reply.":`每个私聊、群或论坛话题只归一个秘书;单独绑定的话题优先于整群;没人绑定的地方不回话。`,"Private chat with @{{name}}":`与 @{{name}} 的私聊`,"this secretary":`本秘书`,"Telegram off":`Telegram 已关`,"Nothing bound yet":`还没有绑定任何地方`,"taken by {{owner}}":`已归 {{owner}}`,"Waiting for you":`等你回答`,"Waiting on you":`需要你处理`,"Open session":`打开会话`,Verified:`已核验`,Mismatch:`不一致`,"Could not verify":`未能核验`,"{{count}} screenshots":`{{count}} 张截图`,"Follow-up":`后续`,"Needs the user":`需要你`,Deploy:`部署`,Tests:`测试`,"Got it":`知道了`,Ignore:`忽略`,"Show details":`展开详情`,"Hide details":`收起详情`,"Not started":`未开始`,"Add a to-do":`添加待办`,"Back to to-do":`放回待办`,Problem:`出问题`,"The session failed":`会话失败了`,"The session was stopped":`会话已停止`,"The session was deleted":`会话已删除`,"{{n}} waiting":`{{n}} 件等你`,"{{n}} running":`{{n}} 件在跑`,"{{n}} unread":`{{n}} 条未读`,"{{n}} queued":`{{n}} 件排队`,"{{n}} dispatched tasks running":`派出的 {{n}} 件活在跑`,"Unknown source":`未知来源`,"Nothing running":`没有在跑的活`,"Waiting for dependencies":`等依赖`,"After {{ids}}":`等这些会话结束:{{ids}}`,"Waited for {{ids}}":`等过这些会话:{{ids}}`,"from {{ref}}":`基于 {{ref}}`,"Dispatch problem":`派发出问题`,"A dependency failed":`依赖的会话失败了`,"A dependency was stopped":`依赖的会话被停止了`,"A dependency was deleted":`依赖的会话被删除了`,"The dispatch could not start":`依赖都结束了,但派发没建起来`,"The dispatch was cancelled":`这条派发被取消了`,"Cancel waiting dispatch":`取消等依赖的派发`,Cancelled:`已取消`,"Still running":`还在跑`,Checkout:`检出`,Base:`基线`,"New branch":`新分支`,After:`依赖`,"{{n}} min":`{{n}} 分钟`,"Click to finish setup":`点我完成设置`,"Good morning":`早上好`,"Good afternoon":`下午好`,"Good evening":`晚上好`,"Today {{dispatched}} dispatched, {{completed}} completed, {{failed}} failed":`今天派出 {{dispatched}} 件,已完成 {{completed}} 件,{{failed}} 件失败`,"; plus {{count}} earlier or taken over completed":`;另完成之前派出或接手的 {{count}} 件`,"No new dispatches today; {{count}} earlier or taken over completed":`今天没派新活,完成了之前派出或接手的 {{count}} 件`,"Nothing dispatched today":`今天还没派活`,Started:`开始执行`,"Goal complete":`目标完成`,"Done · needs you":`完成 · 需要你`,"Done · with secretary":`完成 · 秘书处理中`,"Needs you: {{item}}":`需要你:{{item}}`,"Turn ended":`这一轮结束`,Stalled:`停滞`,"Stalled, no activity":`已停住`,"Update the secretary profile":`修改秘书档案`,"Recent activity":`动态`,"No earlier activity":`没有更早的动态了`,"{{count}} new updates":`有 {{count}} 条新动态`,"Nothing on your plate":`手上没活`,"Ask {{name}} for work in the chat, or note a to-do first":`在聊天里让{{name}}派活,或者先记一条待办`,"{{name}} remembers":`{{name}}记得的`,"From your projects":`来自你的项目`,"{{name}} can read these but not change them":`{{name}}能查到但不能改`,Schedules:`定时`,"Scheduled by {{name}}":`{{name}}帮你定的`,"To add a schedule, just tell {{name}}":`想加定时,直接跟{{name}}说`,"Every day at {{time}}":`每天 {{time}}`,"Next: {{time}}":`下次:{{time}}`,"Last run {{time}}":`上次:{{time}}`,"From a to-do":`来自待办`,"One-off":`一次性`,Workbench:`工作台`,"Daily board":`看板`,"Previous day":`前一天`,"Next day":`后一天`,Dispatched:`派出`,"With secretary":`秘书处理中`,"Needed you":`需要你`,"To-dos done":`待办完成`,Merged:`合并`,"What got done":`完成了什么`,"Failed or interrupted":`失败或中断`,"Newly dispatched":`新派出`,"To-dos":`待办`,"Settings and capabilities":`设置和能力变更`,"No cards yet":`暂无卡片`,"Nothing happened this day":`这天没有动静`,"Look back to {{day}}":`可回看至 {{day}}`,Branch:`分支`,"Secretary profile updated":`秘书档案已更新`,"Secretary profile reset":`秘书档案已重置`,"Skill deleted":`技能已删除`,"Tool saved":`工具已保存`,"Tool deleted":`工具已删除`,"Takeover granted":`已授权接管`,"Takeover revoked":`已撤销接管`,"The secretary has not saved anything yet.":`秘书还没有保存任何记忆。`,"Dispatched by {{name}}":`由 {{name}} 派出`,"All archived":`全部归档`,"Archived in group “{{name}}”":`范围:分组「{{name}}」的归档`,"Archived in ungrouped projects":`范围:未分组项目的归档`,"Archived sessions dispatched by {{name}}":`范围:{{name}} 派出的已归档会话`,"“Recent” has no archive scope; showing all archived":`范围:全部归档(「最近」不按项目划分)`,"Showing all archived":`范围:全部归档`,"Dispatched by a deleted secretary":`由已删除的秘书派出`,"{{label}} · muted":`{{label}} · 已静音`,"Set up your secretary":`设置你的秘书`,"Open secretary":`打开秘书`,"Only when the secretary agent is enabled in Experimental settings":`仅在实验设置里开启秘书后生效`,"The secretary is not part of any project. It watches your projects, dispatches sessions and reports results back. It never reads or writes code itself.":`秘书不属于任何项目。它替你看各项目进展、派活给新会话、把结果转告你。它自己不读写代码。`,"Set up with a form":`用表单设置`,"Set up by chatting":`和秘书聊着设置`,"The secretary asks a few questions and hands you a profile card to confirm.":`秘书会问你几个问题,最后给你一张配置卡片确认。`,"Use all defaults and start":`全部用默认,直接开始`,"Could not start the secretary. Try again.":`没能启动秘书,请再试一次。`,Autonomy:`自主度`,"Visible projects":`可见项目`,"Selected projects":`勾选的项目`,"Dispatch model":`派出会话模型`,"Dispatch worktree":`派出会话 worktree`,"Running dispatches at most":`进行中派出会话上限`,"Watch running sessions automatically":`自动巡检进行中的会话`,"While anything is running the secretary checks it and only reports an anomaly: a goal session idle for 3 minutes with an unfinished goal and no live background task, idle for 20 minutes with a background task that never woke it, or running for 30 minutes without any event. Every hour it also reports background tasks left running in finished sessions; nothing is killed. Nothing is sent when all is well.":`只要有会话在跑,秘书就定期检查,只在发现异常时推一条:goal 会话空闲 3 分钟、目标没完成且没有在跑的后台任务;空闲 20 分钟、后台任务一直没叫醒它;或运行 30 分钟没有任何事件。每小时还会汇报已完成会话里遗留的后台任务,不杀进程。一切正常时什么都不推。`,"Patrol on":`巡检开`,"Patrol off":`巡检关`,"Clean up without asking":`清理不用确认`,"Off by default. When on, this secretary's cleanup deletes immediately, with no confirmation card: merged local branches and their worktrees. Sessions are only archived, never deleted. Unmerged branches, branches in use, feat/secretary-agent, main, the current branch and worktrees with uncommitted changes are still refused or skipped.":`默认关。打开后,这个秘书的清理直接删除,不再弹确认卡:已合并的本地分支,以及对应的 worktree。会话只是归档,不会删除。没合并的分支、正在使用的分支、feat/secretary-agent、main、当前分支,以及有未提交改动的 worktree,照旧拒绝或跳过。`,"Cleanup without confirmation":`清理不用确认`,"Cleanup asks first":`清理先确认`,"One page: name, avatar, visible projects and patrol. Every field has a default.":`一页填完:名字、头像、可见项目与巡检。每一项都有默认值。`,"Name, avatar, visible projects and patrol.":`名字、头像、可见项目与巡检。`,"Up to {{n}} at a time":`最多同时 {{n}} 个`,"Concurrent dispatch limit":`同时运行的派发会话上限`,"The most dispatched sessions the secretary may run at the same time. Dispatches beyond the limit wait in line and start on their own when a slot frees up.":`秘书最多同时运行几个派发会话,超出的派发会排队,有空位时自动开始。`,Confirm:`确认`,"Edit here":`就地修改`,"Profile saved":`配置已保存`,"Saving the profile…":`正在保存配置…`,"Check a plugin to give the secretary its agent tools and skills. Tools that are not read-only ask for your approval on every call.":`勾选插件,秘书就能用它的 Agent 工具与技能。不是只读的工具每次调用都要你确认。`,"No plugins enabled":`没有已启用的插件`,"{{n}} tools":`{{n}} 个工具`,"Sends messages":`会投递消息`,"Skills the secretary may use. It proposes new ones in the chat; you confirm before anything is written.":`秘书可以用的技能。新技能由它在聊天里提案,你确认后才写盘。`,"Secretary skills":`秘书自有技能`,"Global skills":`全局技能`,"Own skills":`秘书专属`,"Shared global skills":`全局共享`,"Nothing here yet":`这里还没有`,"The secretary has no skills yet. Ask it to propose one.":`还没有技能,可以让秘书提议一个。`,"Shown for you only: this content is not an instruction to the secretary.":`这段正文只给你看,不会当成秘书的指令。`,"Delete this skill?":`删除这个技能?`,"Show the content":`查看内容`,"Show the current version":`查看现有版本`,"Skill saved":`技能已保存`,"Saving the skill…":`正在保存技能…`,New:`新建`,"Secretary profile":`秘书档案`,"Upload image":`上传图片`,"Remove image":`移除图片`,"Avatar images must be PNG, JPEG, WebP or GIF, and at most 2 MB.":`头像只接受 PNG、JPEG、WebP、GIF,且不超过 2 MB。`,"The secretary has not been set up yet.":`秘书还没完成初次设置。`,"Style and interruptions":`风格与打扰`,"What it calls you, reply language, style and system notifications.":`对你的称呼、回复语言、沟通风格与系统通知。`,"What to call you":`对你的称呼`,Optional:`可选`,"Reply language":`回复语言`,"Follow the interface language":`跟随界面语言`,Chinese:`中文`,"Communication style":`沟通风格`,Concise:`简洁`,Detailed:`详细`,"System notifications":`系统通知`,"Only what needs you":`仅需要你处理`,"Include finished work":`含完成`,"Daily brief time":`每日简报时间`,"Scheduled tasks":`定时任务`,"Nothing scheduled":`还没有定时`,"Daily brief, to-do reminders and one-off or recurring prompts.":`每日简报、待办提醒,以及一次性或重复的提示。`,"Reset the secretary and start over":`重新设置秘书`,"Sessions and dispatch history are kept either way.":`无论是否清空,会话与派活记录都会保留。`,"Also delete the secretary private memory":`同时清空秘书的私有记忆`,Saved:`已保存`,"Could not save the secretary profile. Try again.":`没能保存秘书档案,请再试一次。`,"Could not reset the secretary. Try again.":`没能重新设置秘书,请再试一次。`,"Look at {{name}}":`查看 {{name}}`,Dimensions:`尺寸`,"File size":`文件大小`,"Image unavailable":`图片无法显示`,"Cleanup candidates · {{count}}":`可清理项 · {{count}}`,"Clean up {{count}} items":`清理 {{count}} 项`,"{{count}} items":`{{count}} 项`,"Cleanup card":`清理卡片`,"Cleaning up…":`正在清理…`,"Cleanup done":`清理完成`,"Confirm cleanup":`确认清理`,"and {{count}} more":`还有 {{count}} 条`,"merged into {{refs}}":`已合入 {{refs}}`,"Not merged yet":`还没合入`,"Currently checked out":`当前检出`,"Used by a worktree":`有 worktree 在用`,"Has uncommitted changes":`有未提交改动`,"Take over":`接管`,"The secretary asks to manage this session: it may message and stop it like its own.":`秘书申请接管这个会话:同意后,它能像对自己派出的会话一样给它发消息、停止它。`,"Handing it over…":`正在交给秘书…`,"Handed over to the secretary":`已交给秘书接管`,"Allow takeover":`同意接管`,"Managed by {{name}}":`{{name}}接管中`,"{{name}} is managing this session: it may message and stop it.":`{{name}}正在接管这个会话,可以给它发消息、停止它。`,"Take back from {{name}}":`取消{{name}}接管`,"Takeover failed":`接管操作失败`,"Sessions it may take over":`可接管的会话`,"Which sessions the secretary may message and stop without asking you first. Everything else still needs a confirmation card from the secretary.":`秘书可以直接给哪些会话发消息、停止它们,不用逐个确认。范围外的会话仍然要秘书提确认卡。`,"One by one":`逐个授权`,"All visible projects":`所有可见项目`,"Pick the projects it may take over":`勾选它可以接管的项目`,"No project in the takeover scope":`还没有项目在接管范围内`,"Sessions handed over":`交给秘书接管的会话`,"Sessions you started and handed to the secretary. It may message and stop them like the ones it dispatched; take one back to remove that right.":`你自己开的、交给秘书接管的会话。秘书可以像对派出的会话一样给它们发消息、停止它们;取消接管就收回这项权限。`,"No sessions handed over":`还没有交给秘书接管的会话`,"Take back":`取消接管`,"Not tracked: the takeover scope no longer covers these sessions. Removing one lets the scope cover it again.":`不再跟踪:接管范围不再覆盖这些会话。移除后范围权限恢复。`,"Track again":`恢复跟踪`,"Send message {{title}}":`发送消息 {{title}}`,"Stop session {{title}}":`停止会话 {{title}}`,"Create session {{title}}":`创建会话 {{title}}`,"Dispatch session {{title}}":`派出会话 {{title}}`,"Update to-do {{text}}":`更新待办 {{text}}`,"Add to-do {{text}}":`添加待办 {{text}}`,"Add schedule {{name}}":`添加定时 {{name}}`,"Remove schedule {{name}}":`删除定时 {{name}}`,"Updated {{count}} to-dos":`更新了 {{count}} 条待办`,"Added {{count}} to-dos":`添加了 {{count}} 条待办`,"Sent {{count}} messages":`发了 {{count}} 条消息`,"Stopped {{count}} sessions":`停止了 {{count}} 个会话`,"Added {{count}} schedules":`添加了 {{count}} 个定时`,"Removed {{count}} schedules":`删除了 {{count}} 个定时`,"Created {{count}} sessions":`创建了 {{count}} 个会话`,"Dispatched {{count}} to-dos":`派出了 {{count}} 条待办`,"{{count}} × {{tool}}":`{{count}} 次 {{tool}}`,"Queued until the current turn ends":`已排队(等对方这一轮结束)`,"Steered into the current turn":`已插话(不等这一轮结束)`,"Delivered as a new turn (the session was idle)":`已作为新一轮发出(会话空闲)`,"Steering…":`插话中`,"Sending…":`发送中`,Refused:`被拒绝`,Stopped:`已停止`,"Waiting on {{card}} {{id}}":`等待确认({{card}} {{id}})`,Confirmed:`已确认`,"Confirmation failed":`确认失败`,"Confirmation expired":`确认已过期`,"Confirming…":`正在确认…`,"Confirmation card":`确认卡`,"Dispatch card":`派活卡`,"Profile card":`档案卡`,"Skill card":`技能卡`,"Tool card":`工具卡`,"Takeover card":`接管卡`,"View raw data":`查看原始数据`,"Show more":`展开`,"Marked done":`标记为完成 ✓`,"Marked not done":`标为未完成`,"Due time":`截止时间`,"To-do text":`待办文字`,"Once at {{time}}":`一次,{{time}}`,"List sessions in {{project}}":`列出 {{project}} 的会话`,"List sessions":`列出会话`,"List to-dos":`列出待办`,"List projects":`列出项目`,"Project {{name}}":`项目 {{name}}`,"Session running":`运行中`,"Session idle":`空闲`,"Session needs you":`需要你`,"Session error":`出错`,"Session not started":`未开始`,"{{count}} pending":`{{count}} 项待处理`,"Pending approvals":`待处理审批`,"Pending questions":`待处理提问`,"Read session {{title}}":`读取会话 {{title}}`,"Read message {{index}} in {{title}}":`读取 {{title}} 的第 {{index}} 条消息`,"More text from character {{next}}":`还有正文,从第 {{next}} 字继续`,"Truncated messages {{indexes}}: read them by index":`被截断的消息 {{indexes}},可用 index 读全文`,Read:`已读取`,"Repository status {{project}}":`仓库状态 {{project}}`,HEAD:`HEAD`,"Working tree":`工作区`,"{{count}} changed files":`{{count}} 个文件有改动`,"Against {{ref}}":`对比 {{ref}}`,"{{ahead}} ahead, {{behind}} behind":`领先 {{ahead}},落后 {{behind}}`,"Contains {{sha}}":`是否包含 {{sha}}`,Yes:`是`,No:`否`,Rebase:`变基`,"Background tasks in {{title}}":`{{title}} 的后台任务`,"{{count}} running":`{{count}} 个在跑`,"{{count}} tasks":`{{count}} 个任务`,"{{count}} calls":`{{count}} 次调用`,"Recent tool calls in {{title}}":`{{title}} 最近的工具调用`,Exited:`已退出`,Killed:`已终止`,Succeeded:`成功`,"ran {{duration}}":`已跑 {{duration}}`,"exit {{code}}":`退出码 {{code}}`,"Process gone":`进程已不在`,"Past its deadline":`已过看门狗截止`,"Unknown task":`未知任务`,"Clean tree":`工作区干净`,"No local branch":`没有本机分支`,"Search memory {{query}} · {{count}}":`搜索记忆 {{query}} · {{count}} 条`,"Delete memory {{title}}":`删除记忆 {{title}}`,"Save memory {{title}}":`记住 {{title}}`,"Memory not written":`没有写入记忆`,"Web search {{query}}":`搜索 {{query}}`,"Fetch {{domain}}":`打开 {{domain}}`,"Custom tool {{name}}":`自造工具 {{name}}`,"Propose profile changes":`提议修改档案`,"Propose skill {{name}}":`提议技能 {{name}}`,"Propose tool {{name}}":`提议工具 {{name}}`,"Ask to take over {{title}}":`申请接管 {{title}}`,Worktree:`工作区`,"Unknown session":`未知会话`,"New session":`新会话`,"Tool failed":`工具失败`,"Not found":`找不到`,"This subagent was started before EnsoCode restarted, and its record was lost in the restart":`这个子代理在 EnsoCode 重启前启动,记录已随重启丢失`,"This subagent belongs to another conversation and cannot be controlled here":`这个子代理属于别的会话,不能在这里操作`,"This conversation has no subagent with this id (mistyped, or agentId and runId mixed up)":`本会话没有这个 id 的子代理(可能抄错,或把 agentId 和 runId 弄混了)`,"Dispatch limit reached":`已达到同时派发上限`,"Project is not visible":`项目不在秘书可见范围内`,"The message changed (the session was rewound or switched branches). List the session again and read it with the new id.":`消息已变化(会话回退或换了分支),请重新分页后用新的 id 读取`,"Only user and assistant messages can be read; tool calls and tool output are not shown.":`只能读取用户和助手的消息,工具调用与工具输出不会显示`,"A project is required":`需要指定项目`,"Invalid schedule":`定时表达式不合法`,"Auto-approved projects":`免确认的项目`,"Dispatch limit":`同时派发上限`,"Run in a worktree":`使用隔离工作区`,"Run in the project checkout":`在项目目录里`,"Created the session":`已创建`,"Queued · #{{n}}":`排队中 · 第 {{n}} 位`,"Queued · #{{n}}, starts automatically when a slot opens":`排队中 · 第 {{n}} 位,有空位后自动开始`,"Queued at #{{n}}":`已排队 · 第 {{n}} 位`,"Start now":`立即开始`,"Cancel queue":`取消排队`,"Cancel this queued session? It has not run and will be deleted.":`取消这个排队会话?它还没运行,会被删除。`,"Starting…":`正在开始…`,"Queued start is unavailable":`暂时不能开始排队会话`,"Handed to {{name}}":`已转给 {{name}}`,"No answer in time":`超时未答`,"{{name}} answered: {{answer}}":`{{name}} 已回答:{{answer}}`,"Answered: {{answer}}":`已回答:{{answer}}`,"Answer {{title}}":`回答 {{title}}`,Answered:`已回答`,"Answering…":`回答中…`,"Answered {{count}} questions":`回答了 {{count}} 个提问`,"Background task wrap-up":`后台任务收尾`,"Remind me":`定提醒`,"Reminder list":`提醒列表`,"Cancel reminder":`取消提醒`,"Stop {{stopped}} · Keep {{kept}}":`停 {{stopped}} · 留 {{kept}}`,"Settling…":`收尾中…`,"Not running":`未在运行`,Kept:`已保留`,"Interrupted by restart":`因重启中断`,Keep:`保留`,Unkeep:`取消保留`,"Idle {{duration}}":`疑似闲置 {{duration}}`,"{{n}} h":`{{n}} 小时`,"{{h}} h {{m}} min":`{{h}} 小时 {{m}} 分钟`,"Kept by you · {{detail}}":`你手动保留 · {{detail}}`,"Kept: {{reason}}":`保留:{{reason}}`,"No new output":`无新输出`,"Port {{ports}}":`端口 {{ports}}`,Ports:`端口`,"No connections":`无连接`,"Not listening":`未监听`,"Running for {{duration}} · Suspected idle tasks are never stopped automatically":`已跑 {{duration}} · 疑似闲置不会自动停止`,"Running for {{duration}}":`已跑 {{duration}}`,"Add a reason (optional)":`补一句保留理由(可选)`,"Kept by the agent at {{time}} when wrapping up":`agent 在 {{time}} 回合收尾时保留`,"Kept by you at {{time}}":`你在 {{time}} 手动保留`,"Recent output":`最近输出`,"{{count}} background tasks are still undeclared; the next message asks the agent to stop each one or state why it keeps running":`还有 {{count}} 个后台任务没表态,下一条消息会要求 agent 逐个停止或写明保留理由`,"{{count}} background tasks to wrap up: stop them or say why they keep running":`有 {{count}} 个后台任务待收尾:停掉或说明保留原因`,"Show in task bar":`在任务条中查看`,"Workspace switched to branch {{branch}}":`工作区已切换到分支 {{branch}}`,"Workspace switched branch":`工作区已切换分支`,"{{count}} suspected idle":`{{count}} 个疑似闲置`,"from {{count}} sessions":`来自 {{count}} 个会话`,"Stop selected":`停止所选`,"No background tasks are running":`没有在跑的后台任务`,"Running for":`已运行`,"Rule: no new output for 30 minutes, no active connections on listening ports, CPU near 0, all at once. Kept tasks are excluded for an hour.":`判定:30 分钟无新输出、监听端口无活跃连接、CPU 近 0,三条同时满足。已保留的任务 1 小时内不计入。`,"Suspected idle only":`只看疑似闲置`,"Select all tasks of this session":`选中这个会话的全部任务`,"Session not open":`会话未打开`,"Select task":`选中任务`,"Stop {{count}} background tasks?":`停止 {{count}} 个后台任务?`,"{{title}} (not open)":`{{title}}(未打开)`,"Stop {{count}}":`停止 {{count}} 个`,"{{count}} background tasks":`{{count}} 个后台任务`,"longest running {{duration}}":`最久的已跑 {{duration}}`,"Stop all":`全部停止`,"{{n}} background tasks running":`{{n}} 个后台任务在跑`,"{{n}} suspected idle":`{{n}} 个疑似闲置`,"Background tasks of {{title}}":`{{title}} 的后台任务`,"Port {{ports}} has no connections · CPU 0%":`端口 {{ports}} 无连接 · CPU 0%`,"All tasks":`全部任务`,"Stop suspected idle leftover tasks":`停止疑似闲置的遗留任务`,Status:`状态`,"Done ({{count}} kept tasks)":`已完成(保留 {{count}} 个任务)`,"This session no longer exists, or you do not have access to it":`这条会话已不存在,或你没有权限查看`,"Archived · read-only":`已归档 · 只读`,"Restore and open":`恢复并打开`,"Needs your approval or answer":`等你审批或回答`,"Back to secretary":`返回秘书`,"PR open":`未合并`,"PR merged":`已合并`,"PR closed":`已关闭`,"No report was saved":`没有存下完成报告`,Screenshots:`截图`,"{{count}} screenshots expired":`{{count}} 张截图已过期`,"{{count}} screenshots were cleaned up":`{{count}} 张截图已在资源页清理`,"Completed {{done}}":`完成于 {{done}}`,"Completed {{done}}, kept for {{days}} days, cleaned up on {{gone}}":`完成于 {{done}},保留 {{days}} 天,已于 {{gone}} 清理`,"Completed {{done}}, cleaned up on {{gone}}":`完成于 {{done}},已于 {{gone}} 清理`,"Cleaned up":`已清理`,"Changed files ({{count}})":`改动文件({{count}})`,Binary:`二进制`,"{{count}} more files":`还有 {{count}} 个文件`,"Report screenshots":`报告截图`,"Copies of screenshots in finished reports, kept for 7 days after completion. Cleaning removes all of them; report text is kept.":`已完成报告里截图的副本,完成后保留 7 天。清理会删掉全部截图,报告文字保留。`,"Not vectorized":`未向量化`,"Completion backend":`推理后端`,"Local GGUF runs on this machine. Remote uses the model below.":`本地 GGUF 在本机运行;远程则使用下方的模型。`,"Local model selected but the weights are not on disk. Distillation and interpretation will wait until you click Download.":`已选择本地模型,但权重文件不在磁盘上。提炼和解读会等你点击下载后再进行。`,"Download in progress. Distillation waits until the model is ready.":`正在下载,模型就绪后才开始提炼。`,"Automatic distillation is on, but the local model is not ready. Sessions will queue until you download it.":`已开启自动提炼,但本地模型尚未就绪。会话会排队,直到你下载模型。`,"{{version}} asks for more and is waiting for approval":`{{version}} 需要更多权限,等待你批准`,"No tools yet":`还没有工具`,"Asks every call":`每次调用都询问`,"Show the code":`查看代码`,Plugins:`插件`,"Python or Node tools the secretary builds for itself. It proposes them in the chat; you confirm before anything is written. Read-only tools run directly, anything else asks for your approval on every call.":`秘书为自己编写的 Python 或 Node 工具。它会在对话里提出,你确认后才会写入。只读工具直接运行,其他工具每次调用都要你批准。`};function T(e){return e&&e.toLowerCase().startsWith(`zh`)?`zh`:`en`}function E(e,t){return e===`zh`?w[t]??t:t}function D(e,t,n){let r=E(e,t);return n?r.replace(/\{\{(\w+)\}\}/g,(e,t)=>{let r=n[t];return r===void 0?e:String(r)}):r}var O=[`system`,`user`,`tool_result`,`tool_args`,`assistant`,`tools`],k=class{hits=new Map;blocked=!1;restored=0;add(e,t=1){let n=`${e.kind}\0${e.rule}\0${e.action}\0${e.where}\0${e.token}`,r=this.hits.get(n);r?r.count+=t:this.hits.set(n,{...e,count:t})}get empty(){return this.hits.size===0&&this.restored===0}build(){return{hits:[...this.hits.values()].map(e=>({...e})),blocked:this.blocked,restored:this.restored}}};new Set(O);function A(e,t){if(!e)return t;let n=new k;for(let r of[...e.hits,...t.hits])n.add(r,r.count);return n.blocked=e.blocked||t.blocked,n.restored=e.restored+t.restored,n.build()}function j(e){let t=new Map;for(let n of e){let e=`${n.action}\0${n.kind}\0${n.where}`,r=t.get(e);r?(r.tokens.add(n.token),r.count+=n.count):t.set(e,{action:n.action,kind:n.kind,where:n.where,values:0,count:n.count,preview:n.preview,tokens:new Set([n.token])})}return[...t.values()].map(({tokens:e,...t})=>({...t,values:e.size}))}var M={mask:1,warn:2,block:3};function N(e){let t;for(let n of e.hits)(!t||M[n.action]>M[t])&&(t=n.action);return t}var P=`agent:enso`,F=/^[0-9a-f]{8}-[0-9a-f]{4}-[1-5][0-9a-f]{3}-[89ab][0-9a-f]{3}-[0-9a-f]{12}$/i,I=/^[a-z][a-z0-9_-]*$/;function L(e){return typeof e==`string`&&F.test(e)}function R(e){if(e===`agent:enso`)return P;if(typeof e!=`string`)return null;if(e.startsWith(`builtin:`)){let t=e.slice(8);return I.test(t)&&t!==`general`&&t!==`enso`?e:null}return e.startsWith(`custom:`)?L(e.slice(7))?e:null:e.startsWith(`bot:`)&&L(e.slice(4))?e:null}function z(e){if(!e||typeof e!=`object`||Array.isArray(e))return null;let t=e,n=R(t.typeKey);return Object.keys(t).length!==7||!n||typeof t.displayName!=`string`||!t.displayName.trim()||typeof t.description!=`string`||t.source!==`system`&&t.source!==`builtin`&&t.source!==`custom`&&t.source!==`bot`||typeof t.locked!=`boolean`||typeof t.canDisable!=`boolean`||typeof t.canEdit!=`boolean`||n===`agent:enso`||t.source===`bot`!==n.startsWith(`bot:`)?null:t}function B(e){if(!e||typeof e!=`object`||Array.isArray(e))return null;let t=e;if(Object.keys(t).length!==2||!Number.isInteger(t.revision)||t.revision<0||!Array.isArray(t.candidates)||t.candidates.some(e=>z(e)===null))return null;let n=t.candidates.map(e=>e.typeKey);return new Set(n).size===n.length?t:null}function V(e){return{expandLiveReasoning:e.expandLiveReasoning!==!1,autoCollapseTurns:e.autoCollapseTurns===!0,collapseCompletedActivity:e.collapseCompletedActivity!==!1,collapseLiveActivity:e.collapseLiveActivity===!0,pinUnfinishedTodos:e.pinUnfinishedTodos!==!1}}var H={enabled:!1,secrets:{enabled:!0,action:`mask`,shape:!1},personal:{enabled:!1,action:`mask`,kinds:[`email`,`phone`,`idCard`,`bankCard`]},custom:{words:[],rules:[],action:`mask`},allow:[]},U={language:`system`,theme:`system`,terminalTheme:``,terminalFontFamily:``,syncTerminalTheme:!1,providers:[],projects:[],skills:[],presets:[],agentTypes:[],loadLocalSkills:!0,compactReadOnlyTools:!0,expandLiveEdits:!0,...V({}),keybindings:{},privacyMasking:H,contextMenuOpen:[]},W=new Set;function G(e){let t=U;U={...U,...e};for(let e of W)e(U,t)}var K;function q(e,t){K=e,G({terminalTheme:e?`host`:``,terminalFontFamily:t??``})}function J(e){U.compactReadOnlyTools!==e&&G({compactReadOnlyTools:e})}function ee(e){U.expandLiveEdits!==e&&G({expandLiveEdits:e})}function te(e){Object.keys(e).some(t=>U[t]!==e[t])&&G(e)}function ne(e,t){(U.theme!==e||U.syncTerminalTheme!==t)&&G({theme:e,syncTerminalTheme:t})}function re(){return K}var ie=e=>(W.add(e),()=>{W.delete(e)});function ae(e){return(0,m.useSyncExternalStore)(ie,()=>e(U))}ae.getState=()=>U,ae.subscribe=ie;var oe=`__`,se=/^plugin_([a-z][a-z0-9]*(?:-[a-z0-9]+)+)__([a-z][a-z0-9_]*)$/;function ce(e){let t=se.exec(e);return!t?.[1]||!t[2]||t[2].includes(oe)?null:{pluginId:t[1].replaceAll(`-`,`.`),toolName:t[2]}}var le=/^<(plan-mode|active-plan)(?: id="[^"]*")?>\n([\s\S]*?)\n<\/\1>(?:\n\n|$)/;function ue(e){let t=le.exec(e);return t?{note:t[1]===`active-plan`?`active-plan`:t[2].includes(`Plan mode is ON`)?`on`:`off`,rest:e.slice(t[0].length)}:{rest:e}}var de=/^<plan-approved id="([^"]*)">\nThe user approved the plan "([\s\S]*?)"; plan mode/,fe=/^<plan-feedback id="([^"]*)">\n[\s\S]*?<feedback>\n([\s\S]*)\n<\/feedback>\n<\/plan-feedback>$/;function pe(e){let t=de.exec(e);if(t)return{kind:`approved`,planId:t[1],title:t[2]};let n=fe.exec(e);return n?{kind:`feedback`,planId:n[1],feedback:n[2]}:null}function me(e){if(e.api===`typesafe-system-one`||e.catalogId===`typesafe`)return!0;try{let t=new URL(e.baseUrl??``).hostname.toLowerCase();return t===`api.typesafe.ai`||t.endsWith(`.api.typesafe.ai`)}catch{return!1}}var he={"openai-completions":`https://api.openai.com/v1`,"openai-responses":`https://api.openai.com/v1`,"anthropic-messages":`https://api.anthropic.com`,"google-generative-ai":`https://generativelanguage.googleapis.com/v1beta`,ollama:`http://127.0.0.1:11434`,"typesafe-system-one":`https://api.typesafe.ai/v1/`};he[`google-generative-ai`],he[`typesafe-system-one`],he.ollama;var ge=e=>typeof e==`string`&&/^openai-codex(?:#[2-9]\d*|#1\d+)?$/.test(e);function _e(e){if(!e||typeof e!=`object`||Array.isArray(e))return null;let t=e;if(Object.keys(t).some(e=>e!==`accountKeys`)||!Array.isArray(t.accountKeys))return null;let n=t.accountKeys;return n.length>0&&n.length<=100&&n.every(ge)&&new Set(n).size===n.length?{accountKeys:[...n]}:null}function ve(e){return!e.apiKey&&ge(e.oauthAccountKey)&&_e(e.oauthAccountPool)!==null}function ye(e,t,n,r){return!ve(e)||!e.enabled||!e.models.some(e=>e.id===t&&e.enabled!==!1)?[]:(e.oauthAccountPool?.accountKeys??[]).filter(i=>r.has(i)&&n.some(n=>n.id!==e.id&&n.oauthAccountPool===void 0&&!n.apiKey&&n.oauthAccountKey===i&&n.enabled&&n.models.some(e=>e.id===t&&e.enabled!==!1)))}var be=`local-image`,xe=`__ensoRemoteLocalImagePrefix`;function Se(e){let t=globalThis[xe];return typeof t==`string`?`${t}${encodeURIComponent(e)}`:e}var Ce=`posix`,we=`secretary-avatar`,Te=(e,t,n)=>Se(`${be}://${we}/avatar.png?v=${e}${t?`&h=${encodeURIComponent(t)}`:``}${n?`&s=${encodeURIComponent(n)}`:``}`),Ee=[`png`,`jpg`,`jpeg`,`gif`,`webp`,`bmp`,`svg`,`jfif`,`avif`],De=[`mp4`,`webm`,`ogg`,`ogv`,`mov`];[...Ee,...De];function Oe(e){let t=e.split(/[?#]/)[0]??``,n=t.lastIndexOf(`.`);return n<0?``:t.slice(n+1).toLowerCase()}function ke(e){let t=e.replace(/\\/g,`/`);if(t.startsWith(`//`)){let[e,...n]=t.slice(2).split(`/`).filter(Boolean);return Se(`${be}://${e}/${n.map(encodeURIComponent).join(`/`)}`)}let n=/^([a-zA-Z]):\/(.*)$/.exec(t);if(n){let e=n[2].split(`/`).filter(Boolean).map(encodeURIComponent);return Se(`${be}://${n[1].toLowerCase()}/${e.join(`/`)}`)}return Se(`${be}://${Ce}/${t.split(`/`).filter(Boolean).map(encodeURIComponent).join(`/`)}`)}var Ae=`enso-remote-images`,je=120,Me=8388608,Ne=/\/desk\/li\/([^/]+)\/([^?#]+)$/;function Pe(e){let t=Ne.exec(e.startsWith(`/`)?e:Fe(e));if(!t)return null;let n;try{n=new URL(decodeURIComponent(t[2]))}catch{return null}if(n.protocol!==`local-image:`||!n.searchParams.get(`v`))return null;let r=n.hostname,i=r===`secretary-avatar`?`${r}?s=${n.searchParams.get(`s`)??``}`:r===`bot-avatar`||r===`plugin-asset`||r===`secretary-report`?`${r}${n.pathname}`:null;return i?{pair:t[1],identity:`${t[1]}\n${i}`}:null}function Fe(e){try{return new URL(e).pathname}catch{return``}}var Ie=e=>typeof e==`string`?e:e.url;async function Le(e,t){if(Pe(t))return(await e.open(Ae)).match(t)}async function Re(e,t,n){let r=Pe(t);if(!r||n.status!==200||!n.mime.startsWith(`image/`)||n.body.byteLength===0||n.body.byteLength>Me)return;let i=await e.open(Ae),a=(await i.keys()).map(Ie),o=a.filter(e=>e!==t&&Pe(e)?.identity===r.identity);for(let e of o)await i.delete(e);await i.put(t,new Response(n.body.slice(),{headers:{"Content-Type":n.mime}}));let s=a.filter(e=>e!==t&&!o.includes(e));for(let e of s.slice(0,Math.max(0,s.length+1-je)))await i.delete(e)}async function ze(e,t){let n=Pe(t);if(!n)return;let r=await e.open(Ae),i=await r.match(t);if(i)return i;let a=(await r.keys()).map(Ie).filter(e=>Pe(e)?.identity===n.identity).at(-1);return a?r.match(a):void 0}async function Be(e,t){let n=await e.open(Ae);for(let e of(await n.keys()).map(Ie))t(e)&&await n.delete(e)}function Ve(e,t){let n=new Set(t.map(e=>encodeURIComponent(e)));return Be(e,e=>{let t=Ne.exec(Fe(e))?.[1];return t===void 0||!n.has(t)})}function He(e,t,n){let r=/^\/desk\/li\/([^/]+)\/$/.exec(t)?.[1];if(!r)return Promise.resolve();let i=new Set(n.map(e=>`${r}\n${we}?s=${e}`)),a=`${r}\n${we}?s=`;return Be(e,e=>{let t=Pe(e)?.identity;return!!t&&t.startsWith(a)&&t!==a&&!i.has(t)})}var Ue=/\ssrc="((?:https?:\/\/[^/"]+)?\/desk\/li\/[^"]+)"/g;async function We(e,t){let n=[...new Set([...e.matchAll(Ue)].map(e=>e[1]))],r=new Map;for(let e of n)r.set(e,await t(e).catch(()=>null));return e.replace(Ue,(e,t)=>{let n=r.get(t);return n?` src="${n}"`:``})}var Ge=`<secretary-silent/>`,Ke=`silence_turn`;function qe(e){return/<session-updates>|<secretary-schedule>|<secretary-message>/.test(e)?e.replace(/<session-updates>[\s\S]*?<\/session-updates>/g,``).replace(/<secretary-schedule>[\s\S]*?<\/secretary-schedule>/g,``).replace(/<secretary-message>[\s\S]*?<\/secretary-message>/g,``).trim().length===0:!1}function Je(e){return e.trim()===Ge}var Ye=[{id:`image_generation`,name:`ImageGen`,description:`Generate images with the configured image model and save them to the session scratch directory`},{id:`subagent`,name:`Subagent`,description:`Unified agents: delegate one-shot tasks or keep persistent coworkers under Main control`},{id:`workflow`,name:`Workflow`,description:`Run a JavaScript workflow that fans work out across subagents. Live status appears in the side panel.`},{id:`todo`,name:`Todo`,description:`Task list: track progress on multi-step work`},{id:`plan`,name:`Plan mode`,description:`Plan mode: research read-only, submit a plan for approval, then carry it out after approval`},{id:`ask_user`,name:`Ask user`,description:`Ask the user a question and wait for an answer (options / timeout)`},{id:`browser`,name:`Browser`,description:`Built-in browser: open pages in Enso's own Chromium, read snapshots, click and type by ref`},{id:`web`,name:`Web search`,description:`Web search and fetch: search with the session model's built-in search (falls back to a keyless service) and read public pages as markdown`},{id:`background_tasks`,name:`Background tasks`,description:`Background shell task: run long commands in the background and notify on completion`},{id:`memory`,name:`Memory`,description:`Long-term memory: the agent can search, capture and consolidate durable decisions, preferences and lessons across sessions`},{id:`turn_discard`,name:`Turn discard`,description:`Let the agent drop an irrelevant automatic delivery or throwaway exchange from its context; the timeline keeps it and turn_recall can read it back`},{id:`isolated_sandbox`,name:`Isolated sandbox`,description:`Run JavaScript in an isolated sandbox that can call session tools. Intermediate reads and edits stay out of the chat; only the returned value is added to the conversation.`},{id:`computer`,name:`Computer`,description:`Host desktop: list windows, screenshot, accessibility tree, and input. Default off. Not the built-in browser.`}],Xe=[`memory`,`computer`];function Ze(e){return Array.isArray(e)?e.filter(e=>typeof e==`string`):[...Xe]}function Qe(e,t){return Array.isArray(t?.disabledBuiltinTools)?Ze(t.disabledBuiltinTools):Ze(e)}function $e(e,t,n,r){return!Qe(e,{disabledBuiltinTools:et(t,n)}).includes(r)}function et(e,t){if(!(!t||!Array.isArray(e)))for(let n of e){if(!n||typeof n!=`object`||Array.isArray(n))continue;let e=n;if(e.id===t)return e.disabledBuiltinTools}}var tt=`project_list.project_info.repo_status.session_list.claims_list.threads_list.session_read.session_tasks.session_activity.session_create.session_send.session_queue_list.session_queue_cancel.session_stop.session_task_stop.session_archive.session_unarchive.result_mark_done.result_mark_undo.needs_user_escalate.session_answer.session_takeover_propose.image_view.contact_send_file.cleanup_list.cleanup_apply.todo_list.todo_item_add.todo_item_update.todo_item_dispatch.schedule_add.schedule_list.schedule_remove.secretary_profile_propose.skill_propose.tool_propose.secretary_list.secretary_message`.split(`.`);[...tt];var nt=new Set([`ask_user`,`web`,`memory`]);[...Ye.map(e=>e.id).filter(e=>!nt.has(e))];var rt=500,it=1024,at=/^[A-Za-z0-9](?:[A-Za-z0-9._-]*[A-Za-z0-9])?\/[A-Za-z0-9](?:[A-Za-z0-9._-]*[A-Za-z0-9])?$/,ot=[`merged`,`open`,`closed`],st=[`pass`,`fail`,`skipped`],ct=(e=rt)=>({type:`string`,maxLength:e}),lt={type:`string`,maxLength:rt,pattern:at.source};({...ct()}),{...lt},[...ot],[...st],[...st],{...ct(it)};var ut={background:`#1e1e1e`,foreground:`#d4d4d4`,cursor:`#d4d4d4`,cursorAccent:`#1e1e1e`,selectionBackground:`#264f78`,selectionForeground:`#ffffff`,black:`#000000`,red:`#cd3131`,green:`#0dbc79`,yellow:`#e5e510`,blue:`#2472c8`,magenta:`#bc3fbc`,cyan:`#11a8cd`,white:`#e5e5e5`,brightBlack:`#666666`,brightRed:`#f14c4c`,brightGreen:`#23d18b`,brightYellow:`#f5f543`,brightBlue:`#3b8eea`,brightMagenta:`#d670d6`,brightCyan:`#29b8db`,brightWhite:`#ffffff`};function dt(e){return re()}function ft(e){let t=/^#?([a-f\d]{2})([a-f\d]{2})([a-f\d]{2})/i.exec(e.trim());return t?{r:Number.parseInt(t[1],16),g:Number.parseInt(t[2],16),b:Number.parseInt(t[3],16)}:null}function pt(e,t,n){return`#${[e,t,n].map(e=>Math.round(e).toString(16).padStart(2,`0`)).join(``)}`}function mt(e,t,n){let r=ft(e),i=ft(t);if(!r||!i)return e;let a=Math.max(0,Math.min(1,n));return pt(r.r*(1-a)+i.r*a,r.g*(1-a)+i.g*a,r.b*(1-a)+i.b*a)}function ht(e){let t=ft(e);if(!t)return 0;let[n,r,i]=[t.r,t.g,t.b].map(e=>{let t=e/255;return t<=.03928?t/12.92:((t+.055)/1.055)**2.4});return .2126*n+.7152*r+.0722*i}function gt(e){let t=dt();return!t||ht(t.background)<.5}var _t=[`--background`,`--foreground`,`--card`,`--card-foreground`,`--popover`,`--popover-foreground`,`--primary`,`--primary-foreground`,`--secondary`,`--secondary-foreground`,`--muted`,`--muted-foreground`,`--accent`,`--accent-foreground`,`--destructive`,`--destructive-foreground`,`--success`,`--success-foreground`,`--warning`,`--warning-foreground`,`--info`,`--info-foreground`,`--border`,`--input`,`--ring`];function vt(e,t=!0){let n=dt();if(!n)return;let r=document.documentElement,i=ht(n.background)<.5;t&&r.classList.toggle(`dark`,i),r.style.setProperty(`--background`,n.background),r.style.setProperty(`--foreground`,n.foreground),r.style.setProperty(`--card`,n.background),r.style.setProperty(`--card-foreground`,n.foreground),r.style.setProperty(`--popover`,n.background),r.style.setProperty(`--popover-foreground`,n.foreground),r.style.setProperty(`--primary`,n.foreground),r.style.setProperty(`--primary-foreground`,n.background);let a=i?mt(n.background,n.brightBlack,.5):mt(n.background,n.black,.1);r.style.setProperty(`--secondary`,a),r.style.setProperty(`--secondary-foreground`,n.foreground);let o=i?mt(n.background,n.brightBlack,.4):mt(n.background,n.black,.08),s=i?mt(n.foreground,n.background,.4):mt(n.foreground,n.background,.3);r.style.setProperty(`--muted`,o),r.style.setProperty(`--muted-foreground`,s);let c=i?n.brightBlue:n.blue,l=mt(n.background,c,.3);r.style.setProperty(`--accent`,l),r.style.setProperty(`--accent-foreground`,ht(l)<.5?`#ffffff`:`#000000`),r.style.setProperty(`--destructive`,n.red),r.style.setProperty(`--destructive-foreground`,`#ffffff`),r.style.setProperty(`--success`,n.green),r.style.setProperty(`--success-foreground`,`#ffffff`),r.style.setProperty(`--warning`,n.yellow),r.style.setProperty(`--warning-foreground`,i?n.background:`#000000`),r.style.setProperty(`--info`,n.blue),r.style.setProperty(`--info-foreground`,`#ffffff`);let u=i?mt(n.background,n.foreground,.15):mt(n.background,n.foreground,.12);r.style.setProperty(`--border`,u),r.style.setProperty(`--input`,u),r.style.setProperty(`--ring`,i?n.brightBlue:n.blue)}function yt(){for(let e of _t)document.documentElement.style.removeProperty(e)}var bt=32768,xt=[`read_only`,`regenerable`,`reversible_workspace_change`,`data_loss`,`system_state`,`exfiltration`,`unclear_target`],St=200;function Ct(e){return xt.includes(e)}function wt(e){return typeof e==`number`&&Number.isFinite(e)&&e>=0&&e<=1}function Tt(e){if(!e||typeof e!=`object`||Array.isArray(e))return;let{verdict:t,model:n,allow:r,ask:i,block:a,reason:o}=e;if(!(t!==`allow`&&t!==`deny`||typeof n!=`string`||!n||n.length>St||!wt(r)||!wt(i)||!wt(a)||o!==void 0&&!Ct(o)))return{verdict:t,model:n,allow:r,ask:i,block:a,...o?{reason:o}:{}}}new Set(Ee);var Et=(e,t)=>e.length>t?`${e.slice(0,t)}…`:e;function Dt(e){if(!e||typeof e!=`object`||Array.isArray(e))return;let{status:t,originalCommand:n,rewrittenCommand:r,inputTokens:i,outputTokens:a,reason:o}=e;if(t!==`compressed`&&t!==`unchanged`&&t!==`pending`&&t!==`bypassed`&&t!==`unavailable`||typeof n!=`string`||r!==void 0&&typeof r!=`string`||o!==void 0&&typeof o!=`string`)return;let s={status:t,originalCommand:Et(n,16e3)};if(r!==void 0&&(s.rewrittenCommand=Et(r,16e3)),o!==void 0&&(s.reason=Et(o,1e3)),i!==void 0||a!==void 0){if(typeof i!=`number`||!Number.isSafeInteger(i)||i<0||typeof a!=`number`||!Number.isSafeInteger(a)||a<0)return;s.inputTokens=i,s.outputTokens=a}return s}var Ot=15e3;Object.freeze({yieldDefaultMs:45e3,yieldBuildMs:18e4,yieldServerMs:1e4,quietMs:Ot,taskWaitMaxMs:3e4,maxTasks:20,logMaxBytes:268435456,killGraceMs:5e3});var kt=e=>!!e&&typeof e==`object`&&!Array.isArray(e),At=e=>Number.isInteger(e)&&e>=0,jt=e=>typeof e==`number`&&Number.isFinite(e)&&e>=0;function Mt(e){if(!kt(e)||!At(e.inputTokens)||!At(e.outputTokens))return;let t={inputTokens:e.inputTokens,outputTokens:e.outputTokens};for(let n of[`cacheHitPercent`,`ttftAvgMs`,`tokensPerSecond`]){let r=e[n];if(r!==void 0){if(!jt(r))return;t[n]=r}}return t}var Nt=n(((e,t)=>{t.exports={}})),Pt=e(n(((e,n)=>{(function(e){var n=function(e){var t,n=new Float64Array(16);if(e)for(t=0;t<e.length;t++)n[t]=e[t];return n},r=function(){throw Error(`no PRNG`)},i=new Uint8Array(16),a=new Uint8Array(32);a[0]=9;var o=n(),s=n([1]),c=n([56129,1]),l=n([30883,4953,19914,30187,55467,16705,2637,112,59544,30585,16505,36039,65139,11119,27886,20995]),u=n([61785,9906,39828,60374,45398,33411,5274,224,53552,61171,33010,6542,64743,22239,55772,9222]),d=n([54554,36645,11616,51542,42930,38181,51040,26924,56412,64982,57905,49316,21502,52590,14035,8553]),f=n([26200,26214,26214,26214,26214,26214,26214,26214,26214,26214,26214,26214,26214,26214,26214,26214]),p=n([41136,18958,6951,50414,58488,44335,6150,12099,55207,15867,153,11085,57099,20417,9344,11139]);function m(e,t,n,r){e[t]=n>>24&255,e[t+1]=n>>16&255,e[t+2]=n>>8&255,e[t+3]=n&255,e[t+4]=r>>24&255,e[t+5]=r>>16&255,e[t+6]=r>>8&255,e[t+7]=r&255}function h(e,t,n,r,i){var a,o=0;for(a=0;a<i;a++)o|=e[t+a]^n[r+a];return(1&o-1>>>8)-1}function g(e,t,n,r){return h(e,t,n,r,16)}function _(e,t,n,r){return h(e,t,n,r,32)}function v(e,t,n,r){for(var i=r[0]&255|(r[1]&255)<<8|(r[2]&255)<<16|(r[3]&255)<<24,a=n[0]&255|(n[1]&255)<<8|(n[2]&255)<<16|(n[3]&255)<<24,o=n[4]&255|(n[5]&255)<<8|(n[6]&255)<<16|(n[7]&255)<<24,s=n[8]&255|(n[9]&255)<<8|(n[10]&255)<<16|(n[11]&255)<<24,c=n[12]&255|(n[13]&255)<<8|(n[14]&255)<<16|(n[15]&255)<<24,l=r[4]&255|(r[5]&255)<<8|(r[6]&255)<<16|(r[7]&255)<<24,u=t[0]&255|(t[1]&255)<<8|(t[2]&255)<<16|(t[3]&255)<<24,d=t[4]&255|(t[5]&255)<<8|(t[6]&255)<<16|(t[7]&255)<<24,f=t[8]&255|(t[9]&255)<<8|(t[10]&255)<<16|(t[11]&255)<<24,p=t[12]&255|(t[13]&255)<<8|(t[14]&255)<<16|(t[15]&255)<<24,m=r[8]&255|(r[9]&255)<<8|(r[10]&255)<<16|(r[11]&255)<<24,h=n[16]&255|(n[17]&255)<<8|(n[18]&255)<<16|(n[19]&255)<<24,g=n[20]&255|(n[21]&255)<<8|(n[22]&255)<<16|(n[23]&255)<<24,_=n[24]&255|(n[25]&255)<<8|(n[26]&255)<<16|(n[27]&255)<<24,v=n[28]&255|(n[29]&255)<<8|(n[30]&255)<<16|(n[31]&255)<<24,y=r[12]&255|(r[13]&255)<<8|(r[14]&255)<<16|(r[15]&255)<<24,b=i,x=a,S=o,C=s,w=c,T=l,E=u,D=d,O=f,k=p,A=m,j=h,M=g,N=_,P=v,F=y,I,L=0;L<20;L+=2)I=b+M|0,w^=I<<7|I>>>25,I=w+b|0,O^=I<<9|I>>>23,I=O+w|0,M^=I<<13|I>>>19,I=M+O|0,b^=I<<18|I>>>14,I=T+x|0,k^=I<<7|I>>>25,I=k+T|0,N^=I<<9|I>>>23,I=N+k|0,x^=I<<13|I>>>19,I=x+N|0,T^=I<<18|I>>>14,I=A+E|0,P^=I<<7|I>>>25,I=P+A|0,S^=I<<9|I>>>23,I=S+P|0,E^=I<<13|I>>>19,I=E+S|0,A^=I<<18|I>>>14,I=F+j|0,C^=I<<7|I>>>25,I=C+F|0,D^=I<<9|I>>>23,I=D+C|0,j^=I<<13|I>>>19,I=j+D|0,F^=I<<18|I>>>14,I=b+C|0,x^=I<<7|I>>>25,I=x+b|0,S^=I<<9|I>>>23,I=S+x|0,C^=I<<13|I>>>19,I=C+S|0,b^=I<<18|I>>>14,I=T+w|0,E^=I<<7|I>>>25,I=E+T|0,D^=I<<9|I>>>23,I=D+E|0,w^=I<<13|I>>>19,I=w+D|0,T^=I<<18|I>>>14,I=A+k|0,j^=I<<7|I>>>25,I=j+A|0,O^=I<<9|I>>>23,I=O+j|0,k^=I<<13|I>>>19,I=k+O|0,A^=I<<18|I>>>14,I=F+P|0,M^=I<<7|I>>>25,I=M+F|0,N^=I<<9|I>>>23,I=N+M|0,P^=I<<13|I>>>19,I=P+N|0,F^=I<<18|I>>>14;b=b+i|0,x=x+a|0,S=S+o|0,C=C+s|0,w=w+c|0,T=T+l|0,E=E+u|0,D=D+d|0,O=O+f|0,k=k+p|0,A=A+m|0,j=j+h|0,M=M+g|0,N=N+_|0,P=P+v|0,F=F+y|0,e[0]=b>>>0&255,e[1]=b>>>8&255,e[2]=b>>>16&255,e[3]=b>>>24&255,e[4]=x>>>0&255,e[5]=x>>>8&255,e[6]=x>>>16&255,e[7]=x>>>24&255,e[8]=S>>>0&255,e[9]=S>>>8&255,e[10]=S>>>16&255,e[11]=S>>>24&255,e[12]=C>>>0&255,e[13]=C>>>8&255,e[14]=C>>>16&255,e[15]=C>>>24&255,e[16]=w>>>0&255,e[17]=w>>>8&255,e[18]=w>>>16&255,e[19]=w>>>24&255,e[20]=T>>>0&255,e[21]=T>>>8&255,e[22]=T>>>16&255,e[23]=T>>>24&255,e[24]=E>>>0&255,e[25]=E>>>8&255,e[26]=E>>>16&255,e[27]=E>>>24&255,e[28]=D>>>0&255,e[29]=D>>>8&255,e[30]=D>>>16&255,e[31]=D>>>24&255,e[32]=O>>>0&255,e[33]=O>>>8&255,e[34]=O>>>16&255,e[35]=O>>>24&255,e[36]=k>>>0&255,e[37]=k>>>8&255,e[38]=k>>>16&255,e[39]=k>>>24&255,e[40]=A>>>0&255,e[41]=A>>>8&255,e[42]=A>>>16&255,e[43]=A>>>24&255,e[44]=j>>>0&255,e[45]=j>>>8&255,e[46]=j>>>16&255,e[47]=j>>>24&255,e[48]=M>>>0&255,e[49]=M>>>8&255,e[50]=M>>>16&255,e[51]=M>>>24&255,e[52]=N>>>0&255,e[53]=N>>>8&255,e[54]=N>>>16&255,e[55]=N>>>24&255,e[56]=P>>>0&255,e[57]=P>>>8&255,e[58]=P>>>16&255,e[59]=P>>>24&255,e[60]=F>>>0&255,e[61]=F>>>8&255,e[62]=F>>>16&255,e[63]=F>>>24&255}function y(e,t,n,r){for(var i=r[0]&255|(r[1]&255)<<8|(r[2]&255)<<16|(r[3]&255)<<24,a=n[0]&255|(n[1]&255)<<8|(n[2]&255)<<16|(n[3]&255)<<24,o=n[4]&255|(n[5]&255)<<8|(n[6]&255)<<16|(n[7]&255)<<24,s=n[8]&255|(n[9]&255)<<8|(n[10]&255)<<16|(n[11]&255)<<24,c=n[12]&255|(n[13]&255)<<8|(n[14]&255)<<16|(n[15]&255)<<24,l=r[4]&255|(r[5]&255)<<8|(r[6]&255)<<16|(r[7]&255)<<24,u=t[0]&255|(t[1]&255)<<8|(t[2]&255)<<16|(t[3]&255)<<24,d=t[4]&255|(t[5]&255)<<8|(t[6]&255)<<16|(t[7]&255)<<24,f=t[8]&255|(t[9]&255)<<8|(t[10]&255)<<16|(t[11]&255)<<24,p=t[12]&255|(t[13]&255)<<8|(t[14]&255)<<16|(t[15]&255)<<24,m=r[8]&255|(r[9]&255)<<8|(r[10]&255)<<16|(r[11]&255)<<24,h=n[16]&255|(n[17]&255)<<8|(n[18]&255)<<16|(n[19]&255)<<24,g=n[20]&255|(n[21]&255)<<8|(n[22]&255)<<16|(n[23]&255)<<24,_=n[24]&255|(n[25]&255)<<8|(n[26]&255)<<16|(n[27]&255)<<24,v=n[28]&255|(n[29]&255)<<8|(n[30]&255)<<16|(n[31]&255)<<24,y=r[12]&255|(r[13]&255)<<8|(r[14]&255)<<16|(r[15]&255)<<24,b=i,x=a,S=o,C=s,w=c,T=l,E=u,D=d,O=f,k=p,A=m,j=h,M=g,N=_,P=v,F=y,I,L=0;L<20;L+=2)I=b+M|0,w^=I<<7|I>>>25,I=w+b|0,O^=I<<9|I>>>23,I=O+w|0,M^=I<<13|I>>>19,I=M+O|0,b^=I<<18|I>>>14,I=T+x|0,k^=I<<7|I>>>25,I=k+T|0,N^=I<<9|I>>>23,I=N+k|0,x^=I<<13|I>>>19,I=x+N|0,T^=I<<18|I>>>14,I=A+E|0,P^=I<<7|I>>>25,I=P+A|0,S^=I<<9|I>>>23,I=S+P|0,E^=I<<13|I>>>19,I=E+S|0,A^=I<<18|I>>>14,I=F+j|0,C^=I<<7|I>>>25,I=C+F|0,D^=I<<9|I>>>23,I=D+C|0,j^=I<<13|I>>>19,I=j+D|0,F^=I<<18|I>>>14,I=b+C|0,x^=I<<7|I>>>25,I=x+b|0,S^=I<<9|I>>>23,I=S+x|0,C^=I<<13|I>>>19,I=C+S|0,b^=I<<18|I>>>14,I=T+w|0,E^=I<<7|I>>>25,I=E+T|0,D^=I<<9|I>>>23,I=D+E|0,w^=I<<13|I>>>19,I=w+D|0,T^=I<<18|I>>>14,I=A+k|0,j^=I<<7|I>>>25,I=j+A|0,O^=I<<9|I>>>23,I=O+j|0,k^=I<<13|I>>>19,I=k+O|0,A^=I<<18|I>>>14,I=F+P|0,M^=I<<7|I>>>25,I=M+F|0,N^=I<<9|I>>>23,I=N+M|0,P^=I<<13|I>>>19,I=P+N|0,F^=I<<18|I>>>14;e[0]=b>>>0&255,e[1]=b>>>8&255,e[2]=b>>>16&255,e[3]=b>>>24&255,e[4]=T>>>0&255,e[5]=T>>>8&255,e[6]=T>>>16&255,e[7]=T>>>24&255,e[8]=A>>>0&255,e[9]=A>>>8&255,e[10]=A>>>16&255,e[11]=A>>>24&255,e[12]=F>>>0&255,e[13]=F>>>8&255,e[14]=F>>>16&255,e[15]=F>>>24&255,e[16]=E>>>0&255,e[17]=E>>>8&255,e[18]=E>>>16&255,e[19]=E>>>24&255,e[20]=D>>>0&255,e[21]=D>>>8&255,e[22]=D>>>16&255,e[23]=D>>>24&255,e[24]=O>>>0&255,e[25]=O>>>8&255,e[26]=O>>>16&255,e[27]=O>>>24&255,e[28]=k>>>0&255,e[29]=k>>>8&255,e[30]=k>>>16&255,e[31]=k>>>24&255}function b(e,t,n,r){v(e,t,n,r)}function x(e,t,n,r){y(e,t,n,r)}var S=new Uint8Array([101,120,112,97,110,100,32,51,50,45,98,121,116,101,32,107]);function C(e,t,n,r,i,a,o){var s=new Uint8Array(16),c=new Uint8Array(64),l,u;for(u=0;u<16;u++)s[u]=0;for(u=0;u<8;u++)s[u]=a[u];for(;i>=64;){for(b(c,s,o,S),u=0;u<64;u++)e[t+u]=n[r+u]^c[u];for(l=1,u=8;u<16;u++)l=l+(s[u]&255)|0,s[u]=l&255,l>>>=8;i-=64,t+=64,r+=64}if(i>0)for(b(c,s,o,S),u=0;u<i;u++)e[t+u]=n[r+u]^c[u];return 0}function w(e,t,n,r,i){var a=new Uint8Array(16),o=new Uint8Array(64),s,c;for(c=0;c<16;c++)a[c]=0;for(c=0;c<8;c++)a[c]=r[c];for(;n>=64;){for(b(o,a,i,S),c=0;c<64;c++)e[t+c]=o[c];for(s=1,c=8;c<16;c++)s=s+(a[c]&255)|0,a[c]=s&255,s>>>=8;n-=64,t+=64}if(n>0)for(b(o,a,i,S),c=0;c<n;c++)e[t+c]=o[c];return 0}function T(e,t,n,r,i){var a=new Uint8Array(32);x(a,r,i,S);for(var o=new Uint8Array(8),s=0;s<8;s++)o[s]=r[s+16];return w(e,t,n,o,a)}function E(e,t,n,r,i,a,o){var s=new Uint8Array(32);x(s,a,o,S);for(var c=new Uint8Array(8),l=0;l<8;l++)c[l]=a[l+16];return C(e,t,n,r,i,c,s)}var D=function(e){this.buffer=new Uint8Array(16),this.r=new Uint16Array(10),this.h=new Uint16Array(10),this.pad=new Uint16Array(8),this.leftover=0,this.fin=0;var t=e[0]&255|(e[1]&255)<<8,n,r,i,a,o,s,c;this.r[0]=t&8191,n=e[2]&255|(e[3]&255)<<8,this.r[1]=(t>>>13|n<<3)&8191,r=e[4]&255|(e[5]&255)<<8,this.r[2]=(n>>>10|r<<6)&7939,i=e[6]&255|(e[7]&255)<<8,this.r[3]=(r>>>7|i<<9)&8191,a=e[8]&255|(e[9]&255)<<8,this.r[4]=(i>>>4|a<<12)&255,this.r[5]=a>>>1&8190,o=e[10]&255|(e[11]&255)<<8,this.r[6]=(a>>>14|o<<2)&8191,s=e[12]&255|(e[13]&255)<<8,this.r[7]=(o>>>11|s<<5)&8065,c=e[14]&255|(e[15]&255)<<8,this.r[8]=(s>>>8|c<<8)&8191,this.r[9]=c>>>5&127,this.pad[0]=e[16]&255|(e[17]&255)<<8,this.pad[1]=e[18]&255|(e[19]&255)<<8,this.pad[2]=e[20]&255|(e[21]&255)<<8,this.pad[3]=e[22]&255|(e[23]&255)<<8,this.pad[4]=e[24]&255|(e[25]&255)<<8,this.pad[5]=e[26]&255|(e[27]&255)<<8,this.pad[6]=e[28]&255|(e[29]&255)<<8,this.pad[7]=e[30]&255|(e[31]&255)<<8};D.prototype.blocks=function(e,t,n){for(var r=this.fin?0:2048,i,a,o,s,c,l,u,d,f,p,m,h,g,_,v,y,b,x,S,C=this.h[0],w=this.h[1],T=this.h[2],E=this.h[3],D=this.h[4],O=this.h[5],k=this.h[6],A=this.h[7],j=this.h[8],M=this.h[9],N=this.r[0],P=this.r[1],F=this.r[2],I=this.r[3],L=this.r[4],R=this.r[5],z=this.r[6],B=this.r[7],V=this.r[8],H=this.r[9];n>=16;)i=e[t+0]&255|(e[t+1]&255)<<8,C+=i&8191,a=e[t+2]&255|(e[t+3]&255)<<8,w+=(i>>>13|a<<3)&8191,o=e[t+4]&255|(e[t+5]&255)<<8,T+=(a>>>10|o<<6)&8191,s=e[t+6]&255|(e[t+7]&255)<<8,E+=(o>>>7|s<<9)&8191,c=e[t+8]&255|(e[t+9]&255)<<8,D+=(s>>>4|c<<12)&8191,O+=c>>>1&8191,l=e[t+10]&255|(e[t+11]&255)<<8,k+=(c>>>14|l<<2)&8191,u=e[t+12]&255|(e[t+13]&255)<<8,A+=(l>>>11|u<<5)&8191,d=e[t+14]&255|(e[t+15]&255)<<8,j+=(u>>>8|d<<8)&8191,M+=d>>>5|r,f=0,p=f,p+=C*N,p+=5*H*w,p+=5*V*T,p+=5*B*E,p+=5*z*D,f=p>>>13,p&=8191,p+=5*R*O,p+=5*L*k,p+=5*I*A,p+=5*F*j,p+=5*P*M,f+=p>>>13,p&=8191,m=f,m+=C*P,m+=w*N,m+=5*H*T,m+=5*V*E,m+=5*B*D,f=m>>>13,m&=8191,m+=5*z*O,m+=5*R*k,m+=5*L*A,m+=5*I*j,m+=5*F*M,f+=m>>>13,m&=8191,h=f,h+=C*F,h+=w*P,h+=T*N,h+=5*H*E,h+=5*V*D,f=h>>>13,h&=8191,h+=5*B*O,h+=5*z*k,h+=5*R*A,h+=5*L*j,h+=5*I*M,f+=h>>>13,h&=8191,g=f,g+=C*I,g+=w*F,g+=T*P,g+=E*N,g+=5*H*D,f=g>>>13,g&=8191,g+=5*V*O,g+=5*B*k,g+=5*z*A,g+=5*R*j,g+=5*L*M,f+=g>>>13,g&=8191,_=f,_+=C*L,_+=w*I,_+=T*F,_+=E*P,_+=D*N,f=_>>>13,_&=8191,_+=5*H*O,_+=5*V*k,_+=5*B*A,_+=5*z*j,_+=5*R*M,f+=_>>>13,_&=8191,v=f,v+=C*R,v+=w*L,v+=T*I,v+=E*F,v+=D*P,f=v>>>13,v&=8191,v+=O*N,v+=5*H*k,v+=5*V*A,v+=5*B*j,v+=5*z*M,f+=v>>>13,v&=8191,y=f,y+=C*z,y+=w*R,y+=T*L,y+=E*I,y+=D*F,f=y>>>13,y&=8191,y+=O*P,y+=k*N,y+=5*H*A,y+=5*V*j,y+=5*B*M,f+=y>>>13,y&=8191,b=f,b+=C*B,b+=w*z,b+=T*R,b+=E*L,b+=D*I,f=b>>>13,b&=8191,b+=O*F,b+=k*P,b+=A*N,b+=5*H*j,b+=5*V*M,f+=b>>>13,b&=8191,x=f,x+=C*V,x+=w*B,x+=T*z,x+=E*R,x+=D*L,f=x>>>13,x&=8191,x+=O*I,x+=k*F,x+=A*P,x+=j*N,x+=5*H*M,f+=x>>>13,x&=8191,S=f,S+=C*H,S+=w*V,S+=T*B,S+=E*z,S+=D*R,f=S>>>13,S&=8191,S+=O*L,S+=k*I,S+=A*F,S+=j*P,S+=M*N,f+=S>>>13,S&=8191,f=(f<<2)+f|0,f=f+p|0,p=f&8191,f>>>=13,m+=f,C=p,w=m,T=h,E=g,D=_,O=v,k=y,A=b,j=x,M=S,t+=16,n-=16;this.h[0]=C,this.h[1]=w,this.h[2]=T,this.h[3]=E,this.h[4]=D,this.h[5]=O,this.h[6]=k,this.h[7]=A,this.h[8]=j,this.h[9]=M},D.prototype.finish=function(e,t){var n=new Uint16Array(10),r,i,a,o;if(this.leftover){for(o=this.leftover,this.buffer[o++]=1;o<16;o++)this.buffer[o]=0;this.fin=1,this.blocks(this.buffer,0,16)}for(r=this.h[1]>>>13,this.h[1]&=8191,o=2;o<10;o++)this.h[o]+=r,r=this.h[o]>>>13,this.h[o]&=8191;for(this.h[0]+=r*5,r=this.h[0]>>>13,this.h[0]&=8191,this.h[1]+=r,r=this.h[1]>>>13,this.h[1]&=8191,this.h[2]+=r,n[0]=this.h[0]+5,r=n[0]>>>13,n[0]&=8191,o=1;o<10;o++)n[o]=this.h[o]+r,r=n[o]>>>13,n[o]&=8191;for(n[9]-=8192,i=(r^1)-1,o=0;o<10;o++)n[o]&=i;for(i=~i,o=0;o<10;o++)this.h[o]=this.h[o]&i|n[o];for(this.h[0]=(this.h[0]|this.h[1]<<13)&65535,this.h[1]=(this.h[1]>>>3|this.h[2]<<10)&65535,this.h[2]=(this.h[2]>>>6|this.h[3]<<7)&65535,this.h[3]=(this.h[3]>>>9|this.h[4]<<4)&65535,this.h[4]=(this.h[4]>>>12|this.h[5]<<1|this.h[6]<<14)&65535,this.h[5]=(this.h[6]>>>2|this.h[7]<<11)&65535,this.h[6]=(this.h[7]>>>5|this.h[8]<<8)&65535,this.h[7]=(this.h[8]>>>8|this.h[9]<<5)&65535,a=this.h[0]+this.pad[0],this.h[0]=a&65535,o=1;o<8;o++)a=(this.h[o]+this.pad[o]|0)+(a>>>16)|0,this.h[o]=a&65535;e[t+0]=this.h[0]>>>0&255,e[t+1]=this.h[0]>>>8&255,e[t+2]=this.h[1]>>>0&255,e[t+3]=this.h[1]>>>8&255,e[t+4]=this.h[2]>>>0&255,e[t+5]=this.h[2]>>>8&255,e[t+6]=this.h[3]>>>0&255,e[t+7]=this.h[3]>>>8&255,e[t+8]=this.h[4]>>>0&255,e[t+9]=this.h[4]>>>8&255,e[t+10]=this.h[5]>>>0&255,e[t+11]=this.h[5]>>>8&255,e[t+12]=this.h[6]>>>0&255,e[t+13]=this.h[6]>>>8&255,e[t+14]=this.h[7]>>>0&255,e[t+15]=this.h[7]>>>8&255},D.prototype.update=function(e,t,n){var r,i;if(this.leftover){for(i=16-this.leftover,i>n&&(i=n),r=0;r<i;r++)this.buffer[this.leftover+r]=e[t+r];if(n-=i,t+=i,this.leftover+=i,this.leftover<16)return;this.blocks(this.buffer,0,16),this.leftover=0}if(n>=16&&(i=n-n%16,this.blocks(e,t,i),t+=i,n-=i),n){for(r=0;r<n;r++)this.buffer[this.leftover+r]=e[t+r];this.leftover+=n}};function O(e,t,n,r,i,a){var o=new D(a);return o.update(n,r,i),o.finish(e,t),0}function k(e,t,n,r,i,a){var o=new Uint8Array(16);return O(o,0,n,r,i,a),g(e,t,o,0)}function A(e,t,n,r,i){var a;if(n<32)return-1;for(E(e,0,t,0,n,r,i),O(e,16,e,32,n-32,e),a=0;a<16;a++)e[a]=0;return 0}function j(e,t,n,r,i){var a,o=new Uint8Array(32);if(n<32||(T(o,0,32,r,i),k(t,16,t,32,n-32,o)!==0))return-1;for(E(e,0,t,0,n,r,i),a=0;a<32;a++)e[a]=0;return 0}function M(e,t){var n;for(n=0;n<16;n++)e[n]=t[n]|0}function N(e){var t,n,r=1;for(t=0;t<16;t++)n=e[t]+r+65535,r=Math.floor(n/65536),e[t]=n-r*65536;e[0]+=r-1+37*(r-1)}function P(e,t,n){for(var r,i=~(n-1),a=0;a<16;a++)r=i&(e[a]^t[a]),e[a]^=r,t[a]^=r}function F(e,t){var r,i,a,o=n(),s=n();for(r=0;r<16;r++)s[r]=t[r];for(N(s),N(s),N(s),i=0;i<2;i++){for(o[0]=s[0]-65517,r=1;r<15;r++)o[r]=s[r]-65535-(o[r-1]>>16&1),o[r-1]&=65535;o[15]=s[15]-32767-(o[14]>>16&1),a=o[15]>>16&1,o[14]&=65535,P(s,o,1-a)}for(r=0;r<16;r++)e[2*r]=s[r]&255,e[2*r+1]=s[r]>>8}function I(e,t){var n=new Uint8Array(32),r=new Uint8Array(32);return F(n,e),F(r,t),_(n,0,r,0)}function L(e){var t=new Uint8Array(32);return F(t,e),t[0]&1}function R(e,t){var n;for(n=0;n<16;n++)e[n]=t[2*n]+(t[2*n+1]<<8);e[15]&=32767}function z(e,t,n){for(var r=0;r<16;r++)e[r]=t[r]+n[r]}function B(e,t,n){for(var r=0;r<16;r++)e[r]=t[r]-n[r]}function V(e,t,n){var r,i,a=0,o=0,s=0,c=0,l=0,u=0,d=0,f=0,p=0,m=0,h=0,g=0,_=0,v=0,y=0,b=0,x=0,S=0,C=0,w=0,T=0,E=0,D=0,O=0,k=0,A=0,j=0,M=0,N=0,P=0,F=0,I=n[0],L=n[1],R=n[2],z=n[3],B=n[4],V=n[5],H=n[6],U=n[7],W=n[8],G=n[9],K=n[10],q=n[11],J=n[12],ee=n[13],te=n[14],ne=n[15];r=t[0],a+=r*I,o+=r*L,s+=r*R,c+=r*z,l+=r*B,u+=r*V,d+=r*H,f+=r*U,p+=r*W,m+=r*G,h+=r*K,g+=r*q,_+=r*J,v+=r*ee,y+=r*te,b+=r*ne,r=t[1],o+=r*I,s+=r*L,c+=r*R,l+=r*z,u+=r*B,d+=r*V,f+=r*H,p+=r*U,m+=r*W,h+=r*G,g+=r*K,_+=r*q,v+=r*J,y+=r*ee,b+=r*te,x+=r*ne,r=t[2],s+=r*I,c+=r*L,l+=r*R,u+=r*z,d+=r*B,f+=r*V,p+=r*H,m+=r*U,h+=r*W,g+=r*G,_+=r*K,v+=r*q,y+=r*J,b+=r*ee,x+=r*te,S+=r*ne,r=t[3],c+=r*I,l+=r*L,u+=r*R,d+=r*z,f+=r*B,p+=r*V,m+=r*H,h+=r*U,g+=r*W,_+=r*G,v+=r*K,y+=r*q,b+=r*J,x+=r*ee,S+=r*te,C+=r*ne,r=t[4],l+=r*I,u+=r*L,d+=r*R,f+=r*z,p+=r*B,m+=r*V,h+=r*H,g+=r*U,_+=r*W,v+=r*G,y+=r*K,b+=r*q,x+=r*J,S+=r*ee,C+=r*te,w+=r*ne,r=t[5],u+=r*I,d+=r*L,f+=r*R,p+=r*z,m+=r*B,h+=r*V,g+=r*H,_+=r*U,v+=r*W,y+=r*G,b+=r*K,x+=r*q,S+=r*J,C+=r*ee,w+=r*te,T+=r*ne,r=t[6],d+=r*I,f+=r*L,p+=r*R,m+=r*z,h+=r*B,g+=r*V,_+=r*H,v+=r*U,y+=r*W,b+=r*G,x+=r*K,S+=r*q,C+=r*J,w+=r*ee,T+=r*te,E+=r*ne,r=t[7],f+=r*I,p+=r*L,m+=r*R,h+=r*z,g+=r*B,_+=r*V,v+=r*H,y+=r*U,b+=r*W,x+=r*G,S+=r*K,C+=r*q,w+=r*J,T+=r*ee,E+=r*te,D+=r*ne,r=t[8],p+=r*I,m+=r*L,h+=r*R,g+=r*z,_+=r*B,v+=r*V,y+=r*H,b+=r*U,x+=r*W,S+=r*G,C+=r*K,w+=r*q,T+=r*J,E+=r*ee,D+=r*te,O+=r*ne,r=t[9],m+=r*I,h+=r*L,g+=r*R,_+=r*z,v+=r*B,y+=r*V,b+=r*H,x+=r*U,S+=r*W,C+=r*G,w+=r*K,T+=r*q,E+=r*J,D+=r*ee,O+=r*te,k+=r*ne,r=t[10],h+=r*I,g+=r*L,_+=r*R,v+=r*z,y+=r*B,b+=r*V,x+=r*H,S+=r*U,C+=r*W,w+=r*G,T+=r*K,E+=r*q,D+=r*J,O+=r*ee,k+=r*te,A+=r*ne,r=t[11],g+=r*I,_+=r*L,v+=r*R,y+=r*z,b+=r*B,x+=r*V,S+=r*H,C+=r*U,w+=r*W,T+=r*G,E+=r*K,D+=r*q,O+=r*J,k+=r*ee,A+=r*te,j+=r*ne,r=t[12],_+=r*I,v+=r*L,y+=r*R,b+=r*z,x+=r*B,S+=r*V,C+=r*H,w+=r*U,T+=r*W,E+=r*G,D+=r*K,O+=r*q,k+=r*J,A+=r*ee,j+=r*te,M+=r*ne,r=t[13],v+=r*I,y+=r*L,b+=r*R,x+=r*z,S+=r*B,C+=r*V,w+=r*H,T+=r*U,E+=r*W,D+=r*G,O+=r*K,k+=r*q,A+=r*J,j+=r*ee,M+=r*te,N+=r*ne,r=t[14],y+=r*I,b+=r*L,x+=r*R,S+=r*z,C+=r*B,w+=r*V,T+=r*H,E+=r*U,D+=r*W,O+=r*G,k+=r*K,A+=r*q,j+=r*J,M+=r*ee,N+=r*te,P+=r*ne,r=t[15],b+=r*I,x+=r*L,S+=r*R,C+=r*z,w+=r*B,T+=r*V,E+=r*H,D+=r*U,O+=r*W,k+=r*G,A+=r*K,j+=r*q,M+=r*J,N+=r*ee,P+=r*te,F+=r*ne,a+=38*x,o+=38*S,s+=38*C,c+=38*w,l+=38*T,u+=38*E,d+=38*D,f+=38*O,p+=38*k,m+=38*A,h+=38*j,g+=38*M,_+=38*N,v+=38*P,y+=38*F,i=1,r=a+i+65535,i=Math.floor(r/65536),a=r-i*65536,r=o+i+65535,i=Math.floor(r/65536),o=r-i*65536,r=s+i+65535,i=Math.floor(r/65536),s=r-i*65536,r=c+i+65535,i=Math.floor(r/65536),c=r-i*65536,r=l+i+65535,i=Math.floor(r/65536),l=r-i*65536,r=u+i+65535,i=Math.floor(r/65536),u=r-i*65536,r=d+i+65535,i=Math.floor(r/65536),d=r-i*65536,r=f+i+65535,i=Math.floor(r/65536),f=r-i*65536,r=p+i+65535,i=Math.floor(r/65536),p=r-i*65536,r=m+i+65535,i=Math.floor(r/65536),m=r-i*65536,r=h+i+65535,i=Math.floor(r/65536),h=r-i*65536,r=g+i+65535,i=Math.floor(r/65536),g=r-i*65536,r=_+i+65535,i=Math.floor(r/65536),_=r-i*65536,r=v+i+65535,i=Math.floor(r/65536),v=r-i*65536,r=y+i+65535,i=Math.floor(r/65536),y=r-i*65536,r=b+i+65535,i=Math.floor(r/65536),b=r-i*65536,a+=i-1+37*(i-1),i=1,r=a+i+65535,i=Math.floor(r/65536),a=r-i*65536,r=o+i+65535,i=Math.floor(r/65536),o=r-i*65536,r=s+i+65535,i=Math.floor(r/65536),s=r-i*65536,r=c+i+65535,i=Math.floor(r/65536),c=r-i*65536,r=l+i+65535,i=Math.floor(r/65536),l=r-i*65536,r=u+i+65535,i=Math.floor(r/65536),u=r-i*65536,r=d+i+65535,i=Math.floor(r/65536),d=r-i*65536,r=f+i+65535,i=Math.floor(r/65536),f=r-i*65536,r=p+i+65535,i=Math.floor(r/65536),p=r-i*65536,r=m+i+65535,i=Math.floor(r/65536),m=r-i*65536,r=h+i+65535,i=Math.floor(r/65536),h=r-i*65536,r=g+i+65535,i=Math.floor(r/65536),g=r-i*65536,r=_+i+65535,i=Math.floor(r/65536),_=r-i*65536,r=v+i+65535,i=Math.floor(r/65536),v=r-i*65536,r=y+i+65535,i=Math.floor(r/65536),y=r-i*65536,r=b+i+65535,i=Math.floor(r/65536),b=r-i*65536,a+=i-1+37*(i-1),e[0]=a,e[1]=o,e[2]=s,e[3]=c,e[4]=l,e[5]=u,e[6]=d,e[7]=f,e[8]=p,e[9]=m,e[10]=h,e[11]=g,e[12]=_,e[13]=v,e[14]=y,e[15]=b}function H(e,t){V(e,t,t)}function U(e,t){var r=n(),i;for(i=0;i<16;i++)r[i]=t[i];for(i=253;i>=0;i--)H(r,r),i!==2&&i!==4&&V(r,r,t);for(i=0;i<16;i++)e[i]=r[i]}function W(e,t){var r=n(),i;for(i=0;i<16;i++)r[i]=t[i];for(i=250;i>=0;i--)H(r,r),i!==1&&V(r,r,t);for(i=0;i<16;i++)e[i]=r[i]}function G(e,t,r){var i=new Uint8Array(32),a=new Float64Array(80),o,s,l=n(),u=n(),d=n(),f=n(),p=n(),m=n();for(s=0;s<31;s++)i[s]=t[s];for(i[31]=t[31]&127|64,i[0]&=248,R(a,r),s=0;s<16;s++)u[s]=a[s],f[s]=l[s]=d[s]=0;for(l[0]=f[0]=1,s=254;s>=0;--s)o=i[s>>>3]>>>(s&7)&1,P(l,u,o),P(d,f,o),z(p,l,d),B(l,l,d),z(d,u,f),B(u,u,f),H(f,p),H(m,l),V(l,d,l),V(d,u,p),z(p,l,d),B(l,l,d),H(u,l),B(d,f,m),V(l,d,c),z(l,l,f),V(d,d,l),V(l,f,m),V(f,u,a),H(u,p),P(l,u,o),P(d,f,o);for(s=0;s<16;s++)a[s+16]=l[s],a[s+32]=d[s],a[s+48]=u[s],a[s+64]=f[s];var h=a.subarray(32),g=a.subarray(16);return U(h,h),V(g,g,h),F(e,g),0}function K(e,t){return G(e,t,a)}function q(e,t){return r(t,32),K(e,t)}function J(e,t,n){var r=new Uint8Array(32);return G(r,n,t),x(e,i,r,S)}var ee=A,te=j;function ne(e,t,n,r,i,a){var o=new Uint8Array(32);return J(o,i,a),ee(e,t,n,r,o)}function re(e,t,n,r,i,a){var o=new Uint8Array(32);return J(o,i,a),te(e,t,n,r,o)}var ie=[1116352408,3609767458,1899447441,602891725,3049323471,3964484399,3921009573,2173295548,961987163,4081628472,1508970993,3053834265,2453635748,2937671579,2870763221,3664609560,3624381080,2734883394,310598401,1164996542,607225278,1323610764,1426881987,3590304994,1925078388,4068182383,2162078206,991336113,2614888103,633803317,3248222580,3479774868,3835390401,2666613458,4022224774,944711139,264347078,2341262773,604807628,2007800933,770255983,1495990901,1249150122,1856431235,1555081692,3175218132,1996064986,2198950837,2554220882,3999719339,2821834349,766784016,2952996808,2566594879,3210313671,3203337956,3336571891,1034457026,3584528711,2466948901,113926993,3758326383,338241895,168717936,666307205,1188179964,773529912,1546045734,1294757372,1522805485,1396182291,2643833823,1695183700,2343527390,1986661051,1014477480,2177026350,1206759142,2456956037,344077627,2730485921,1290863460,2820302411,3158454273,3259730800,3505952657,3345764771,106217008,3516065817,3606008344,3600352804,1432725776,4094571909,1467031594,275423344,851169720,430227734,3100823752,506948616,1363258195,659060556,3750685593,883997877,3785050280,958139571,3318307427,1322822218,3812723403,1537002063,2003034995,1747873779,3602036899,1955562222,1575990012,2024104815,1125592928,2227730452,2716904306,2361852424,442776044,2428436474,593698344,2756734187,3733110249,3204031479,2999351573,3329325298,3815920427,3391569614,3928383900,3515267271,566280711,3940187606,3454069534,4118630271,4000239992,116418474,1914138554,174292421,2731055270,289380356,3203993006,460393269,320620315,685471733,587496836,852142971,1086792851,1017036298,365543100,1126000580,2618297676,1288033470,3409855158,1501505948,4234509866,1607167915,987167468,1816402316,1246189591];function ae(e,t,n,r){for(var i=new Int32Array(16),a=new Int32Array(16),o,s,c,l,u,d,f,p,m,h,g,_,v,y,b,x,S,C,w,T,E,D,O,k,A,j,M=e[0],N=e[1],P=e[2],F=e[3],I=e[4],L=e[5],R=e[6],z=e[7],B=t[0],V=t[1],H=t[2],U=t[3],W=t[4],G=t[5],K=t[6],q=t[7],J=0;r>=128;){for(w=0;w<16;w++)T=8*w+J,i[w]=n[T+0]<<24|n[T+1]<<16|n[T+2]<<8|n[T+3],a[w]=n[T+4]<<24|n[T+5]<<16|n[T+6]<<8|n[T+7];for(w=0;w<80;w++)if(o=M,s=N,c=P,l=F,u=I,d=L,f=R,p=z,m=B,h=V,g=H,_=U,v=W,y=G,b=K,x=q,E=z,D=q,O=D&65535,k=D>>>16,A=E&65535,j=E>>>16,E=(I>>>14|W<<18)^(I>>>18|W<<14)^(W>>>9|I<<23),D=(W>>>14|I<<18)^(W>>>18|I<<14)^(I>>>9|W<<23),O+=D&65535,k+=D>>>16,A+=E&65535,j+=E>>>16,E=I&L^~I&R,D=W&G^~W&K,O+=D&65535,k+=D>>>16,A+=E&65535,j+=E>>>16,E=ie[w*2],D=ie[w*2+1],O+=D&65535,k+=D>>>16,A+=E&65535,j+=E>>>16,E=i[w%16],D=a[w%16],O+=D&65535,k+=D>>>16,A+=E&65535,j+=E>>>16,k+=O>>>16,A+=k>>>16,j+=A>>>16,S=A&65535|j<<16,C=O&65535|k<<16,E=S,D=C,O=D&65535,k=D>>>16,A=E&65535,j=E>>>16,E=(M>>>28|B<<4)^(B>>>2|M<<30)^(B>>>7|M<<25),D=(B>>>28|M<<4)^(M>>>2|B<<30)^(M>>>7|B<<25),O+=D&65535,k+=D>>>16,A+=E&65535,j+=E>>>16,E=M&N^M&P^N&P,D=B&V^B&H^V&H,O+=D&65535,k+=D>>>16,A+=E&65535,j+=E>>>16,k+=O>>>16,A+=k>>>16,j+=A>>>16,p=A&65535|j<<16,x=O&65535|k<<16,E=l,D=_,O=D&65535,k=D>>>16,A=E&65535,j=E>>>16,E=S,D=C,O+=D&65535,k+=D>>>16,A+=E&65535,j+=E>>>16,k+=O>>>16,A+=k>>>16,j+=A>>>16,l=A&65535|j<<16,_=O&65535|k<<16,N=o,P=s,F=c,I=l,L=u,R=d,z=f,M=p,V=m,H=h,U=g,W=_,G=v,K=y,q=b,B=x,w%16==15)for(T=0;T<16;T++)E=i[T],D=a[T],O=D&65535,k=D>>>16,A=E&65535,j=E>>>16,E=i[(T+9)%16],D=a[(T+9)%16],O+=D&65535,k+=D>>>16,A+=E&65535,j+=E>>>16,S=i[(T+1)%16],C=a[(T+1)%16],E=(S>>>1|C<<31)^(S>>>8|C<<24)^S>>>7,D=(C>>>1|S<<31)^(C>>>8|S<<24)^(C>>>7|S<<25),O+=D&65535,k+=D>>>16,A+=E&65535,j+=E>>>16,S=i[(T+14)%16],C=a[(T+14)%16],E=(S>>>19|C<<13)^(C>>>29|S<<3)^S>>>6,D=(C>>>19|S<<13)^(S>>>29|C<<3)^(C>>>6|S<<26),O+=D&65535,k+=D>>>16,A+=E&65535,j+=E>>>16,k+=O>>>16,A+=k>>>16,j+=A>>>16,i[T]=A&65535|j<<16,a[T]=O&65535|k<<16;E=M,D=B,O=D&65535,k=D>>>16,A=E&65535,j=E>>>16,E=e[0],D=t[0],O+=D&65535,k+=D>>>16,A+=E&65535,j+=E>>>16,k+=O>>>16,A+=k>>>16,j+=A>>>16,e[0]=M=A&65535|j<<16,t[0]=B=O&65535|k<<16,E=N,D=V,O=D&65535,k=D>>>16,A=E&65535,j=E>>>16,E=e[1],D=t[1],O+=D&65535,k+=D>>>16,A+=E&65535,j+=E>>>16,k+=O>>>16,A+=k>>>16,j+=A>>>16,e[1]=N=A&65535|j<<16,t[1]=V=O&65535|k<<16,E=P,D=H,O=D&65535,k=D>>>16,A=E&65535,j=E>>>16,E=e[2],D=t[2],O+=D&65535,k+=D>>>16,A+=E&65535,j+=E>>>16,k+=O>>>16,A+=k>>>16,j+=A>>>16,e[2]=P=A&65535|j<<16,t[2]=H=O&65535|k<<16,E=F,D=U,O=D&65535,k=D>>>16,A=E&65535,j=E>>>16,E=e[3],D=t[3],O+=D&65535,k+=D>>>16,A+=E&65535,j+=E>>>16,k+=O>>>16,A+=k>>>16,j+=A>>>16,e[3]=F=A&65535|j<<16,t[3]=U=O&65535|k<<16,E=I,D=W,O=D&65535,k=D>>>16,A=E&65535,j=E>>>16,E=e[4],D=t[4],O+=D&65535,k+=D>>>16,A+=E&65535,j+=E>>>16,k+=O>>>16,A+=k>>>16,j+=A>>>16,e[4]=I=A&65535|j<<16,t[4]=W=O&65535|k<<16,E=L,D=G,O=D&65535,k=D>>>16,A=E&65535,j=E>>>16,E=e[5],D=t[5],O+=D&65535,k+=D>>>16,A+=E&65535,j+=E>>>16,k+=O>>>16,A+=k>>>16,j+=A>>>16,e[5]=L=A&65535|j<<16,t[5]=G=O&65535|k<<16,E=R,D=K,O=D&65535,k=D>>>16,A=E&65535,j=E>>>16,E=e[6],D=t[6],O+=D&65535,k+=D>>>16,A+=E&65535,j+=E>>>16,k+=O>>>16,A+=k>>>16,j+=A>>>16,e[6]=R=A&65535|j<<16,t[6]=K=O&65535|k<<16,E=z,D=q,O=D&65535,k=D>>>16,A=E&65535,j=E>>>16,E=e[7],D=t[7],O+=D&65535,k+=D>>>16,A+=E&65535,j+=E>>>16,k+=O>>>16,A+=k>>>16,j+=A>>>16,e[7]=z=A&65535|j<<16,t[7]=q=O&65535|k<<16,J+=128,r-=128}return r}function oe(e,t,n){var r=new Int32Array(8),i=new Int32Array(8),a=new Uint8Array(256),o,s=n;for(r[0]=1779033703,r[1]=3144134277,r[2]=1013904242,r[3]=2773480762,r[4]=1359893119,r[5]=2600822924,r[6]=528734635,r[7]=1541459225,i[0]=4089235720,i[1]=2227873595,i[2]=4271175723,i[3]=1595750129,i[4]=2917565137,i[5]=725511199,i[6]=4215389547,i[7]=327033209,ae(r,i,t,n),n%=128,o=0;o<n;o++)a[o]=t[s-n+o];for(a[n]=128,n=256-128*(n<112),a[n-9]=0,m(a,n-8,s/536870912|0,s<<3),ae(r,i,a,n),o=0;o<8;o++)m(e,8*o,r[o],i[o]);return 0}function se(e,t){var r=n(),i=n(),a=n(),o=n(),s=n(),c=n(),l=n(),d=n(),f=n();B(r,e[1],e[0]),B(f,t[1],t[0]),V(r,r,f),z(i,e[0],e[1]),z(f,t[0],t[1]),V(i,i,f),V(a,e[3],t[3]),V(a,a,u),V(o,e[2],t[2]),z(o,o,o),B(s,i,r),B(c,o,a),z(l,o,a),z(d,i,r),V(e[0],s,c),V(e[1],d,l),V(e[2],l,c),V(e[3],s,d)}function ce(e,t,n){var r;for(r=0;r<4;r++)P(e[r],t[r],n)}function le(e,t){var r=n(),i=n(),a=n();U(a,t[2]),V(r,t[0],a),V(i,t[1],a),F(e,i),e[31]^=L(r)<<7}function ue(e,t,n){var r,i;for(M(e[0],o),M(e[1],s),M(e[2],s),M(e[3],o),i=255;i>=0;--i)r=n[i/8|0]>>(i&7)&1,ce(e,t,r),se(t,e),se(e,e),ce(e,t,r)}function de(e,t){var r=[n(),n(),n(),n()];M(r[0],d),M(r[1],f),M(r[2],s),V(r[3],d,f),ue(e,r,t)}function fe(e,t,i){var a=new Uint8Array(64),o=[n(),n(),n(),n()],s;for(i||r(t,32),oe(a,t,32),a[0]&=248,a[31]&=127,a[31]|=64,de(o,a),le(e,o),s=0;s<32;s++)t[s+32]=e[s];return 0}var pe=new Float64Array([237,211,245,92,26,99,18,88,214,156,247,162,222,249,222,20,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,16]);function me(e,t){var n,r,i,a;for(r=63;r>=32;--r){for(n=0,i=r-32,a=r-12;i<a;++i)t[i]+=n-16*t[r]*pe[i-(r-32)],n=Math.floor((t[i]+128)/256),t[i]-=n*256;t[i]+=n,t[r]=0}for(n=0,i=0;i<32;i++)t[i]+=n-(t[31]>>4)*pe[i],n=t[i]>>8,t[i]&=255;for(i=0;i<32;i++)t[i]-=n*pe[i];for(r=0;r<32;r++)t[r+1]+=t[r]>>8,e[r]=t[r]&255}function he(e){var t=new Float64Array(64),n;for(n=0;n<64;n++)t[n]=e[n];for(n=0;n<64;n++)e[n]=0;me(e,t)}function ge(e,t,r,i){var a=new Uint8Array(64),o=new Uint8Array(64),s=new Uint8Array(64),c,l,u=new Float64Array(64),d=[n(),n(),n(),n()];oe(a,i,32),a[0]&=248,a[31]&=127,a[31]|=64;var f=r+64;for(c=0;c<r;c++)e[64+c]=t[c];for(c=0;c<32;c++)e[32+c]=a[32+c];for(oe(s,e.subarray(32),r+32),he(s),de(d,s),le(e,d),c=32;c<64;c++)e[c]=i[c];for(oe(o,e,r+64),he(o),c=0;c<64;c++)u[c]=0;for(c=0;c<32;c++)u[c]=s[c];for(c=0;c<32;c++)for(l=0;l<32;l++)u[c+l]+=o[c]*a[l];return me(e.subarray(32),u),f}function _e(e,t){var r=n(),i=n(),a=n(),c=n(),u=n(),d=n(),f=n();return M(e[2],s),R(e[1],t),H(a,e[1]),V(c,a,l),B(a,a,e[2]),z(c,e[2],c),H(u,c),H(d,u),V(f,d,u),V(r,f,a),V(r,r,c),W(r,r),V(r,r,a),V(r,r,c),V(r,r,c),V(e[0],r,c),H(i,e[0]),V(i,i,c),I(i,a)&&V(e[0],e[0],p),H(i,e[0]),V(i,i,c),I(i,a)?-1:(L(e[0])===t[31]>>7&&B(e[0],o,e[0]),V(e[3],e[0],e[1]),0)}function ve(e,t,r,i){var a,o=new Uint8Array(32),s=new Uint8Array(64),c=[n(),n(),n(),n()],l=[n(),n(),n(),n()];if(r<64||_e(l,i))return-1;for(a=0;a<r;a++)e[a]=t[a];for(a=0;a<32;a++)e[a+32]=i[a];if(oe(s,e,r),he(s),ue(c,l,s),de(l,t.subarray(32)),se(c,l),le(o,c),r-=64,_(t,0,o,0)){for(a=0;a<r;a++)e[a]=0;return-1}for(a=0;a<r;a++)e[a]=t[a+64];return r}var ye=32,be=24,xe=32,Se=16,Ce=32,we=32,Te=32,Ee=32,De=32,Oe=be,ke=xe,Ae=Se,je=64,Me=32,Ne=64,Pe=32,Fe=64;e.lowlevel={crypto_core_hsalsa20:x,crypto_stream_xor:E,crypto_stream:T,crypto_stream_salsa20_xor:C,crypto_stream_salsa20:w,crypto_onetimeauth:O,crypto_onetimeauth_verify:k,crypto_verify_16:g,crypto_verify_32:_,crypto_secretbox:A,crypto_secretbox_open:j,crypto_scalarmult:G,crypto_scalarmult_base:K,crypto_box_beforenm:J,crypto_box_afternm:ee,crypto_box:ne,crypto_box_open:re,crypto_box_keypair:q,crypto_hash:oe,crypto_sign:ge,crypto_sign_keypair:fe,crypto_sign_open:ve,crypto_secretbox_KEYBYTES:ye,crypto_secretbox_NONCEBYTES:be,crypto_secretbox_ZEROBYTES:xe,crypto_secretbox_BOXZEROBYTES:Se,crypto_scalarmult_BYTES:Ce,crypto_scalarmult_SCALARBYTES:we,crypto_box_PUBLICKEYBYTES:Te,crypto_box_SECRETKEYBYTES:Ee,crypto_box_BEFORENMBYTES:De,crypto_box_NONCEBYTES:Oe,crypto_box_ZEROBYTES:ke,crypto_box_BOXZEROBYTES:Ae,crypto_sign_BYTES:je,crypto_sign_PUBLICKEYBYTES:Me,crypto_sign_SECRETKEYBYTES:Ne,crypto_sign_SEEDBYTES:Pe,crypto_hash_BYTES:Fe,gf:n,D:l,L:pe,pack25519:F,unpack25519:R,M:V,A:z,S:H,Z:B,pow2523:W,add:se,set25519:M,modL:me,scalarmult:ue,scalarbase:de};function Ie(e,t){if(e.length!==ye)throw Error(`bad key size`);if(t.length!==be)throw Error(`bad nonce size`)}function Le(e,t){if(e.length!==Te)throw Error(`bad public key size`);if(t.length!==Ee)throw Error(`bad secret key size`)}function Re(){for(var e=0;e<arguments.length;e++)if(!(arguments[e]instanceof Uint8Array))throw TypeError(`unexpected type, use Uint8Array`)}function ze(e){for(var t=0;t<e.length;t++)e[t]=0}e.randomBytes=function(e){var t=new Uint8Array(e);return r(t,e),t},e.secretbox=function(e,t,n){Re(e,t,n),Ie(n,t);for(var r=new Uint8Array(xe+e.length),i=new Uint8Array(r.length),a=0;a<e.length;a++)r[a+xe]=e[a];return A(i,r,r.length,t,n),i.subarray(Se)},e.secretbox.open=function(e,t,n){Re(e,t,n),Ie(n,t);for(var r=new Uint8Array(Se+e.length),i=new Uint8Array(r.length),a=0;a<e.length;a++)r[a+Se]=e[a];return r.length<32||j(i,r,r.length,t,n)!==0?null:i.subarray(xe)},e.secretbox.keyLength=ye,e.secretbox.nonceLength=be,e.secretbox.overheadLength=Se,e.scalarMult=function(e,t){if(Re(e,t),e.length!==we)throw Error(`bad n size`);if(t.length!==Ce)throw Error(`bad p size`);var n=new Uint8Array(Ce);return G(n,e,t),n},e.scalarMult.base=function(e){if(Re(e),e.length!==we)throw Error(`bad n size`);var t=new Uint8Array(Ce);return K(t,e),t},e.scalarMult.scalarLength=we,e.scalarMult.groupElementLength=Ce,e.box=function(t,n,r,i){var a=e.box.before(r,i);return e.secretbox(t,n,a)},e.box.before=function(e,t){Re(e,t),Le(e,t);var n=new Uint8Array(De);return J(n,e,t),n},e.box.after=e.secretbox,e.box.open=function(t,n,r,i){var a=e.box.before(r,i);return e.secretbox.open(t,n,a)},e.box.open.after=e.secretbox.open,e.box.keyPair=function(){var e=new Uint8Array(Te),t=new Uint8Array(Ee);return q(e,t),{publicKey:e,secretKey:t}},e.box.keyPair.fromSecretKey=function(e){if(Re(e),e.length!==Ee)throw Error(`bad secret key size`);var t=new Uint8Array(Te);return K(t,e),{publicKey:t,secretKey:new Uint8Array(e)}},e.box.publicKeyLength=Te,e.box.secretKeyLength=Ee,e.box.sharedKeyLength=De,e.box.nonceLength=Oe,e.box.overheadLength=e.secretbox.overheadLength,e.sign=function(e,t){if(Re(e,t),t.length!==Ne)throw Error(`bad secret key size`);var n=new Uint8Array(je+e.length);return ge(n,e,e.length,t),n},e.sign.open=function(e,t){if(Re(e,t),t.length!==Me)throw Error(`bad public key size`);var n=new Uint8Array(e.length),r=ve(n,e,e.length,t);if(r<0)return null;for(var i=new Uint8Array(r),a=0;a<i.length;a++)i[a]=n[a];return i},e.sign.detached=function(t,n){for(var r=e.sign(t,n),i=new Uint8Array(je),a=0;a<i.length;a++)i[a]=r[a];return i},e.sign.detached.verify=function(e,t,n){if(Re(e,t,n),t.length!==je)throw Error(`bad signature size`);if(n.length!==Me)throw Error(`bad public key size`);var r=new Uint8Array(je+e.length),i=new Uint8Array(je+e.length),a;for(a=0;a<je;a++)r[a]=t[a];for(a=0;a<e.length;a++)r[a+je]=e[a];return ve(i,r,r.length,n)>=0},e.sign.keyPair=function(){var e=new Uint8Array(Me),t=new Uint8Array(Ne);return fe(e,t),{publicKey:e,secretKey:t}},e.sign.keyPair.fromSecretKey=function(e){if(Re(e),e.length!==Ne)throw Error(`bad secret key size`);for(var t=new Uint8Array(Me),n=0;n<t.length;n++)t[n]=e[32+n];return{publicKey:t,secretKey:new Uint8Array(e)}},e.sign.keyPair.fromSeed=function(e){if(Re(e),e.length!==Pe)throw Error(`bad seed size`);for(var t=new Uint8Array(Me),n=new Uint8Array(Ne),r=0;r<32;r++)n[r]=e[r];return fe(t,n,!0),{publicKey:t,secretKey:n}},e.sign.publicKeyLength=Me,e.sign.secretKeyLength=Ne,e.sign.seedLength=Pe,e.sign.signatureLength=je,e.hash=function(e){Re(e);var t=new Uint8Array(Fe);return oe(t,e,e.length),t},e.hash.hashLength=Fe,e.verify=function(e,t){return Re(e,t),e.length===0||t.length===0||e.length!==t.length?!1:h(e,0,t,0,e.length)===0},e.setPRNG=function(e){r=e},(function(){var n=typeof self<`u`?self.crypto||self.msCrypto:null;if(n&&n.getRandomValues){var r=65536;e.setPRNG(function(e,t){var i,a=new Uint8Array(t);for(i=0;i<t;i+=r)n.getRandomValues(a.subarray(i,i+Math.min(t-i,r)));for(i=0;i<t;i++)e[i]=a[i];ze(a)})}else t!==void 0&&(n=Nt(),n&&n.randomBytes&&e.setPRNG(function(e,t){var r,i=n.randomBytes(t);for(r=0;r<t;r++)e[r]=i[r];ze(i)}))})()})(n!==void 0&&n.exports?n.exports:self.nacl=self.nacl||{})}))(),1),Ft=class extends Error{constructor(e){super(e),this.name=`PairCryptoError`}},It=1,Lt=12,Rt=32,zt=new TextEncoder,Bt=new TextDecoder;function Vt(e){return e.buffer.slice(e.byteOffset,e.byteOffset+e.byteLength)}function Ht(){return Pt.default.randomBytes(Rt)}function Ut(e,t){let n=Pt.default.box.keyPair(),r=Pt.default.randomBytes(Pt.default.box.nonceLength),i=Pt.default.box(e,r,t,n.secretKey);return{ephPublicKey:n.publicKey,nonce:r,boxed:i}}async function Wt(e){if(e.length!==Rt)throw new Ft(`contentKey must be ${Rt} bytes`);return crypto.subtle.importKey(`raw`,Vt(e),`AES-GCM`,!1,[`encrypt`,`decrypt`])}async function Gt(e,t,n=crypto.getRandomValues(new Uint8Array(Lt))){let r=await Wt(e);if(n.length!==Lt)throw new Ft(`nonce must be 12 bytes`);let i=zt.encode(JSON.stringify(t)),a=new Uint8Array(await crypto.subtle.encrypt({name:`AES-GCM`,iv:Vt(n)},r,Vt(i))),o=new Uint8Array(13+a.length);return o[0]=It,o.set(n,1),o.set(a,13),o}async function Kt(e,t){if(t.length<29)throw new Ft(`frame too short`);if(t[0]!==It)throw new Ft(`unsupported frame version ${t[0]}`);let n=t.subarray(1,13),r=t.subarray(13),i=await Wt(e),a;try{a=await crypto.subtle.decrypt({name:`AES-GCM`,iv:Vt(n)},i,Vt(r))}catch{throw new Ft(`decrypt failed: wrong key or tampered frame`)}try{return JSON.parse(Bt.decode(new Uint8Array(a)))}catch{throw new Ft(`decrypt ok but payload is not valid JSON`)}}function qt(){return typeof RTCPeerConnection>`u`?null:e=>Jt(e)}function Jt(e){let t=new RTCPeerConnection({iceServers:e,iceTransportPolicy:`all`}),n=null,r=!1,i=!1,a=!1,o=[],s=[],c=[],l=[],u=[],d=()=>{if(!(r||i)){i=!0;for(let e of u)e()}},f=e=>{n=e,e.binaryType=`arraybuffer`,e.onopen=()=>{if(!r)for(let e of c)e()},e.onmessage=e=>{if(r)return;let t=e.data,n=typeof t==`string`?new TextEncoder().encode(t):new Uint8Array(t);for(let e of l)e(n)},e.onclose=d,e.onerror=d};t.onicecandidate=e=>{if(!(r||!e.candidate?.candidate))for(let t of s)t({candidate:e.candidate.candidate,sdpMid:e.candidate.sdpMid})},t.onconnectionstatechange=()=>{let e=t.connectionState;(e===`disconnected`||e===`failed`||e===`closed`)&&d()},t.ondatachannel=e=>{r||f(e.channel)};let p=async()=>{a=!0;for(let e of o.splice(0))try{await t.addIceCandidate(e)}catch{}};return{async createOffer(){f(t.createDataChannel(`pair`,{ordered:!0}));let e=await t.createOffer();return await t.setLocalDescription(e),e.sdp??``},async acceptOffer(e){await t.setRemoteDescription({type:`offer`,sdp:e});let n=await t.createAnswer();return await t.setLocalDescription(n),await p(),n.sdp??``},async acceptAnswer(e){await t.setRemoteDescription({type:`answer`,sdp:e}),await p()},async addIceCandidate(e){if(!a){o.push(e);return}await t.addIceCandidate(e)},onIceCandidate(e){return s.push(e),()=>void s.splice(s.indexOf(e),1)},onOpen(e){return c.push(e),()=>void c.splice(c.indexOf(e),1)},onMessage(e){return l.push(e),()=>void l.splice(l.indexOf(e),1)},onClose(e){return u.push(e),()=>void u.splice(u.indexOf(e),1)},send(e){if(r||n?.readyState!==`open`||n.bufferedAmount>1048576)return!1;try{return n.send(e.slice().buffer),!0}catch{return!1}},buffered:()=>n&&!r?n.bufferedAmount:0,close(){if(!r){r=!0;try{n?.close()}catch{}try{t.close()}catch{}}}}}var Yt=16384,Xt=0,Zt=1;function Qt(e){let t=[],n=0;do{let r=Math.min(e.byteLength,n+Yt),i=new Uint8Array(1+r-n);i[0]=r>=e.byteLength?Zt:Xt,i.set(e.subarray(n,r),1),t.push(i),n=r}while(n<e.byteLength);return t}function $t(){let e=[],t=0,n=!1,r=()=>{e=[],t=0};return{push(i){let a=i[0];if(a!==Xt&&a!==Zt)return r(),n=!1,null;if(n)return a===Zt&&(n=!1),null;let o=i.subarray(1);if(t+=o.byteLength,t>1048576)return r(),n=a===Xt,null;if(e.push(o),a===Xt)return null;let s=new Uint8Array(t),c=0;for(let t of e)s.set(t,c),c+=t.byteLength;return r(),s}}}var en=15e3;function tn(e){return{role:e,phase:`idle`,gen:0,attempt:0,capable:!1,peerOnline:!1,preferRelay:!1}}var nn=e=>({state:e,actions:[]});function rn(e){if(e.phase===`idle`||e.phase===`cooldown`)return[];let t=[{type:`destroy-peer`}];return e.phase===`connected`&&t.push({type:`switch`,transport:`relay`},{type:`resync`}),t}function an(e){let t=e.gen+1;return{state:{...e,phase:`negotiating`,gen:t},actions:[{type:`create-offer`,gen:t},{type:`start-timeout`,gen:t}]}}function on(e,t){if(e.preferRelay)return{state:{...e,phase:`idle`},actions:t};if(e.capable&&e.peerOnline){let n=an(e);return{state:n.state,actions:[...t,...n.actions]}}return{state:{...e,phase:`idle`},actions:t}}function sn(e,t){let n=t=>t===e.gen;switch(t.type){case`peer-capable`:{if(!t.capable)return{state:{...e,capable:!1,preferRelay:!1,phase:`idle`},actions:rn(e)};let n={...e,capable:!0};return e.phase===`idle`?on(n,[]):nn(n)}case`peer-online`:{let n={...e,peerOnline:t.online};return t.online&&e.phase===`idle`?on(n,[]):nn(n)}case`answer`:return e.phase===`negotiating`&&n(t.gen)?{state:e,actions:[{type:`apply-answer`,gen:t.gen}]}:nn(e);case`ice`:return(e.phase===`negotiating`||e.phase===`connected`)&&n(t.gen)?{state:e,actions:[{type:`apply-ice`,gen:t.gen}]}:nn(e);case`dc-open`:return e.phase===`negotiating`&&n(t.gen)?{state:{...e,phase:`connected`,attempt:0},actions:[{type:`switch`,transport:`direct`},{type:`resync`}]}:nn(e);case`negotiate-timeout`:{if(e.phase!==`negotiating`||!n(t.gen))return nn(e);let r=e.attempt+1;return{state:{...e,phase:`cooldown`,attempt:r},actions:[{type:`send-close`,gen:t.gen},{type:`destroy-peer`},{type:`schedule-retry`,attempt:r}]}}case`dc-close`:{if(!n(t.gen))return nn(e);let r=e.attempt+1;return e.phase===`connected`?{state:{...e,phase:`cooldown`,attempt:r},actions:[...rn(e),{type:`schedule-retry`,attempt:r}]}:e.phase===`negotiating`?{state:{...e,phase:`cooldown`,attempt:r},actions:[{type:`send-close`,gen:t.gen},{type:`destroy-peer`},{type:`schedule-retry`,attempt:r}]}:nn(e)}case`cooldown-elapsed`:return e.phase===`cooldown`?on(e,[]):nn(e);case`network-change`:{let t=e.phase===`negotiating`||e.phase===`connected`?[{type:`send-close`,gen:e.gen},...rn(e)]:[];return on({...e,attempt:0,preferRelay:!1},t)}case`peer-gone`:{let t=rn(e).filter(e=>e.type!==`resync`);return{state:{...e,phase:`idle`,attempt:0,capable:!1,peerOnline:!1,preferRelay:!1},actions:t}}case`prefer-relay`:return e.phase===`idle`||e.phase===`cooldown`?{state:{...e,preferRelay:!0,phase:`idle`},actions:[]}:{state:{...e,phase:`idle`,preferRelay:!0,attempt:0},actions:[{type:`send-close`,gen:e.gen},...rn(e)]};default:return nn(e)}}function cn(e,t){let n=t=>t===e.gen,r=()=>({state:{...e,phase:`idle`},actions:rn(e)});switch(t.type){case`peer-online`:return nn({...e,peerOnline:t.online});case`offer`:{let n=t.gen===1&&e.gen===1&&e.phase===`negotiating`;return!(t.gen===1&&e.gen>=1&&!n)&&t.gen<=e.gen?nn(e):{state:{...e,phase:`negotiating`,gen:t.gen},actions:[...rn(e),{type:`accept-offer`,gen:t.gen},{type:`start-timeout`,gen:t.gen}]}}case`ice`:return(e.phase===`negotiating`||e.phase===`connected`)&&n(t.gen)?{state:e,actions:[{type:`apply-ice`,gen:t.gen}]}:nn(e);case`dc-open`:return e.phase===`negotiating`&&n(t.gen)?{state:{...e,phase:`connected`},actions:[{type:`switch`,transport:`direct`},{type:`resync`}]}:nn(e);case`dc-close`:case`negotiate-timeout`:case`remote-close`:return n(t.gen)&&e.phase!==`idle`?r():nn(e);case`network-change`:return r();case`peer-gone`:return{state:{...e,phase:`idle`,peerOnline:!1},actions:rn(e)};default:return nn(e)}}function ln(e,t){return e.role===`guest`?sn(e,t):cn(e,t)}function un(e,t=Math.random){let n=Math.min(3e5,1e3*2**Math.max(0,e));return Math.round(n*(.7+t()*.6))}function dn(e){return e.startsWith(`a=`)?e.slice(2):e}function fn(e){let t=/\styp\s+(\S+)/.exec(dn(e))?.[1];return t===`host`||t===`srflx`}function pn(e){let t=dn(e).split(/\s+/),n=t.indexOf(`typ`);if(n<5||!t[n+1])return null;let r=t.indexOf(`raddr`),i=t.indexOf(`rport`);return{typ:t[n+1],address:t[4],port:t[5],base:r>0&&i>0?`${t[r+1]}:${t[i+1]}`:null}}function mn(e){let t=new Map;for(let n of e){let e=pn(n);if(e?.typ!==`srflx`||!e.base)continue;let r=t.get(e.base)??new Set;r.add(`${e.address}:${e.port}`),t.set(e.base,r)}if(t.size===0)return`none`;for(let e of t.values())if(e.size>1)return`symmetric`;return`cone`}function hn(e){let t=new Map,n=!1;for(let r of e){let e=pn(r);e&&(t.set(e.typ,(t.get(e.typ)??0)+1),e.address.includes(`:`)&&(n=!0))}if(t.size===0)return`none`;let r=[...t].map(([e,t])=>`${e}×${t}`);return n&&r.push(`v6`),r.push(`nat=${mn(e)}`),r.join(` `)}var gn=40,_n=1.25,vn=1e3;function yn(e,t){return!Number.isFinite(e)||!Number.isFinite(t)||e<0||t<0?!1:e>=t+gn&&e>=t*_n}var bn=2,xn=3,Sn=25e3,Cn=1e4,wn=2e3,Tn=class{deps;state;peer=null;peerGen=0;dcOpen=!1;iceServers;reassembler=$t();negotiateTimer=null;retryTimer=null;heartbeatTimer=null;heartbeatDeadline=null;pingSentAt=null;closed=!1;qualityGen=null;qualityTimer=null;lastDirectRtt=null;lastRelayRtt=null;constructor(e){this.deps=e,this.state=tn(e.role),this.iceServers=e.iceServers??[]}hostInfo(e){e.iceServers&&(this.iceServers=e.iceServers);let t=this.deps.factory!==null&&(e.capabilities??[]).includes(`direct-v1`);this.dispatch({type:`peer-capable`,capable:t})}peerOnline(e){this.dispatch({type:`peer-online`,online:e})}handleSignal(e){switch(e.type){case`direct-offer`:this.pendingOffer=e.sdp,this.dispatch({type:`offer`,gen:e.gen});break;case`direct-answer`:this.pendingAnswer=e.sdp,this.dispatch({type:`answer`,gen:e.gen});break;case`direct-ice`:e.gen===this.state.gen&&this.remoteCandidates.push(e.candidate),this.pendingIce={candidate:e.candidate,sdpMid:e.sdpMid},this.dispatch({type:`ice`,gen:e.gen});break;case`direct-close`:this.dispatch({type:`remote-close`,gen:e.gen})}}networkChange(){this.dispatch({type:`network-change`})}probe(e=wn){let t=this.peer,n=this.peerGen;return this.transport()!==`direct`||!t?!1:(this.pingSentAt=Date.now(),t.send(new Uint8Array([bn])),this.heartbeatDeadline&&clearTimeout(this.heartbeatDeadline),this.heartbeatDeadline=setTimeout(()=>{this.heartbeatDeadline=null,this.peerGen===n&&this.dispatch({type:`dc-close`,gen:n})},e),!0)}noteRelayRtt(e){!Number.isFinite(e)||e<0||(this.lastRelayRtt=e,this.maybeFinishQuality())}peerGone(){this.dispatch({type:`peer-gone`})}close(){this.closed||(this.dispatch({type:`peer-gone`}),this.closed=!0,this.clearRetry(),this.destroyPeer())}transport(){return this.state.phase===`connected`&&this.dcOpen?`direct`:`relay`}send(e){if(this.transport()!==`direct`||!this.peer||(this.peer.buffered?.()??0)+e.byteLength>1048576)return!1;let t=Qt(e);for(let e=0;e<t.length;e++)if(!this.peer.send(t[e]))return e>0&&this.failGen(this.peerGen),!1;return!0}pendingOffer=``;pendingAnswer=``;pendingIce=null;localCandidates=[];remoteCandidates=[];dispatch(e){if(this.closed)return;let t=this.state,{state:n,actions:r}=ln(this.state,e);this.state=n,this.diagnose(t,e);for(let e of r)this.run(e)}diagnose(e,t){if(!this.deps.onDiagnostic||e.phase!==`negotiating`)return;let n=this.state.phase===`connected`?`open`:t.type===`negotiate-timeout`||t.type===`dc-close`?`failed`:null;n&&this.deps.onDiagnostic(`direct ${n} gen=${e.gen} local[${hn(this.localCandidates)}] remote[${hn(this.remoteCandidates)}]`)}run(e){switch(e.type){case`create-offer`:this.spawnPeer(e.gen,t=>t.createOffer().then(t=>{this.peerGen===e.gen&&!this.closed&&this.deps.sendSignal({type:`direct-offer`,gen:e.gen,sdp:t})}));break;case`accept-offer`:{let t=this.pendingOffer;this.spawnPeer(e.gen,n=>n.acceptOffer(t).then(t=>{this.peerGen===e.gen&&!this.closed&&this.deps.sendSignal({type:`direct-answer`,gen:e.gen,sdp:t})}));break}case`apply-answer`:this.peer?.acceptAnswer(this.pendingAnswer).catch(()=>this.failGen(e.gen));break;case`apply-ice`:this.pendingIce&&this.peer?.addIceCandidate(this.pendingIce).catch(()=>{});break;case`start-timeout`:if(this.clearNegotiateTimer(),!this.peer)break;this.negotiateTimer=setTimeout(()=>{this.negotiateTimer=null,this.dispatch({type:`negotiate-timeout`,gen:e.gen})},en);break;case`destroy-peer`:this.destroyPeer();break;case`send-close`:this.deps.sendSignal({type:`direct-close`,gen:e.gen});break;case`switch`:this.deps.onTransportChange(e.transport);break;case`resync`:this.deps.onResync();break;case`schedule-retry`:this.clearRetry(),this.retryTimer=setTimeout(()=>{this.retryTimer=null,this.dispatch({type:`cooldown-elapsed`})},un(e.attempt))}}spawnPeer(e,t){this.destroyPeer();let n=this.deps.factory?.(this.iceServers)??null;if(!n){this.deps.role===`guest`?this.dispatch({type:`peer-capable`,capable:!1}):this.dispatch({type:`dc-close`,gen:e});return}this.peer=n,this.peerGen=e,this.reassembler=$t(),this.localCandidates=[],this.remoteCandidates=[],n.onIceCandidate(t=>{this.peerGen===e&&(this.localCandidates.push(t.candidate),fn(t.candidate)&&this.deps.sendSignal({type:`direct-ice`,gen:e,candidate:dn(t.candidate),sdpMid:t.sdpMid}))}),n.onOpen(()=>{if(this.peerGen===e){if(this.dcOpen=!0,this.clearNegotiateTimer(),this.startHeartbeat(n,e),this.deps.role===`guest`&&this.deps.onNeedRelayProbe){this.beginQuality(e);return}this.dispatch({type:`dc-open`,gen:e})}}),n.onMessage(t=>{if(this.peerGen!==e)return;if(this.alive(),t.byteLength===1&&t[0]===bn){n.send(new Uint8Array([xn]));return}if(t.byteLength===1&&t[0]===xn){if(this.pingSentAt!==null){let e=Date.now()-this.pingSentAt;this.deps.onRtt?.(e),this.lastDirectRtt=e,this.pingSentAt=null,this.maybeFinishQuality()}return}let r=this.reassembler.push(t);r&&this.deps.onFrame(r)}),n.onClose(()=>{this.peerGen===e&&this.dispatch({type:`dc-close`,gen:e})}),t(n).catch(()=>this.failGen(e))}failGen(e){(this.peerGen===e||this.state.gen===e)&&this.dispatch({type:`dc-close`,gen:e})}destroyPeer(){this.clearNegotiateTimer(),this.clearQuality(),this.stopHeartbeat(),this.dcOpen=!1;let e=this.peer;this.peer=null,this.peerGen=-1;try{e?.close()}catch{}}startHeartbeat(e,t){this.stopHeartbeat();let n=()=>{this.peerGen===t&&(this.pingSentAt=Date.now(),e.send(new Uint8Array([bn])),this.heartbeatDeadline??=setTimeout(()=>{this.heartbeatDeadline=null,this.peerGen===t&&this.dispatch({type:`dc-close`,gen:t})},Cn))};n(),this.heartbeatTimer=setInterval(n,Sn)}alive(){this.heartbeatDeadline&&clearTimeout(this.heartbeatDeadline),this.heartbeatDeadline=null}stopHeartbeat(){this.heartbeatTimer&&clearInterval(this.heartbeatTimer),this.heartbeatTimer=null,this.pingSentAt=null,this.alive()}clearNegotiateTimer(){this.negotiateTimer&&clearTimeout(this.negotiateTimer),this.negotiateTimer=null}clearRetry(){this.retryTimer&&clearTimeout(this.retryTimer),this.retryTimer=null}beginQuality(e){this.clearQuality(),this.qualityGen=e,this.lastDirectRtt=null,this.lastRelayRtt=null,this.deps.onNeedRelayProbe?.(),this.qualityTimer=setTimeout(()=>this.finishQuality(e),vn)}maybeFinishQuality(){this.qualityGen!==null&&this.qualityGen===this.peerGen&&this.lastDirectRtt!==null&&this.lastRelayRtt!==null&&this.finishQuality(this.qualityGen)}finishQuality(e){if(this.qualityGen===e&&(this.clearQuality(),!(this.peerGen!==e||!this.dcOpen))){if(this.lastDirectRtt!==null&&this.lastRelayRtt!==null&&yn(this.lastDirectRtt,this.lastRelayRtt)){this.deps.onDiagnostic?.(`direct slower than relay ${Math.round(this.lastDirectRtt)}ms>${Math.round(this.lastRelayRtt)}ms, stay relay`),this.dispatch({type:`prefer-relay`});return}this.dispatch({type:`dc-open`,gen:e})}}clearQuality(){this.qualityTimer&&clearTimeout(this.qualityTimer),this.qualityTimer=null,this.qualityGen=null}};function En(e){let t=``;for(let n=0;n<e.length;n++)t+=String.fromCharCode(e[n]);return btoa(t).replace(/\+/g,`-`).replace(/\//g,`_`).replace(/=+$/,``)}function Dn(e){let t=e.replace(/-/g,`+`).replace(/_/g,`/`),n=t.length%4==0?``:`=`.repeat(4-t.length%4),r=atob(t+n),i=new Uint8Array(r.length);for(let e=0;e<r.length;e++)i[e]=r.charCodeAt(e);return i}function On(e){let t=e.trim(),n=/^enso:\/\/pair\?(.*)$/.exec(t);if(n)return kn(new URLSearchParams(n[1]));if(/^https?:\/\//i.test(t)){let e=new URL(t);return kn(new URLSearchParams(e.hash.replace(/^#/,``)||e.search),e.origin)}throw Error(`not an enso pair uri`)}function kn(e,t){let n=e.get(`relay`)??t,r=e.get(`pk`);if(!n||!r)throw Error(`pair uri missing relay or pk`);return{relay:n,publicKey:Dn(r)}}function An(e){return e.trim().replace(/\/+$/,``).replace(/^http/,`ws`)}function jn(e){return e.trim().replace(/\/+$/,``)}function Mn(e){if(e<=0)return 0;let t=Math.min(3e4,1e3*2**(e-1));return Math.round(t*(.7+Math.random()*.6))}function Nn(e){return[En(e.ephPublicKey),En(e.nonce),En(e.boxed)].join(`.`)}async function Pn(e,t){let n;for(let r=0;r<2;r++)try{let n=await fetch(e,{method:`POST`,headers:{"content-type":`application/json`},body:JSON.stringify(t),signal:AbortSignal.timeout(1e4)}),r=await n.json().catch(()=>({}));if(!n.ok)throw Error(r.error??`relay ${n.status}`);return r}catch(e){if(n=e,!(e instanceof TypeError||e?.name===`TimeoutError`))throw e}throw n}async function Fn(e,t,n){let r=jn(e),i=Ht(),a=Ut(i,t),o=await Pn(`${r}/v1/pair/claim`,{publicKey:En(t),boxedKey:Nn(a),deviceName:n});return{pairId:o.pairId,deviceToken:o.deviceToken,contentKey:i}}async function In(e,t,n){let r=`${jn(e)}/v1/pair/${encodeURIComponent(t)}?token=${encodeURIComponent(n)}`;await fetch(r,{method:`DELETE`})}var Ln=15e3,Rn=8e3;function zn(e,t,n){let r=null,i=null,a=0,o=!1,s=()=>{r&&clearTimeout(r),r=null,a=0},c=(n,s)=>{if(!(o||e.readyState!==1)){i=Date.now();try{e.send(`ping`)}catch{}r&&clearTimeout(r),r=setTimeout(()=>{if(r=null,!o){if(a+=1,a<s){c(n,s);return}t()}},n)}},l=(e=Rn)=>{c(e,1)},u=()=>{r||c(Rn,2)},d=e=>{s(),e.data===`pong`&&i!==null&&(n?.(Date.now()-i),i=null)};e.addEventListener(`message`,d);let f=()=>u();e.addEventListener(`open`,f),e.readyState===1&&u();let p=setInterval(u,Ln);return{probe:l,stop(){o=!0,clearInterval(p),s(),i=null,e.removeEventListener(`message`,d),e.removeEventListener(`open`,f)}}}var Bn=24e4,Vn=1024;function Hn(e){let t=atob(e),n=new Uint8Array(t.length);for(let e=0;e<t.length;e++)n[e]=t.charCodeAt(e);return n}var Un=Hn;function Wn(e,t,n=Bn){let r=JSON.stringify(e);if(r.length<=n)return[e];let i=Math.ceil(r.length/n);if(i>Vn)throw Error(`remote frame too large: ${r.length} chars`);let a=t();return Array.from({length:i},(e,t)=>({type:`part`,pid:a,index:t,total:i,data:r.slice(t*n,(t+1)*n)}))}function Gn(e){if(typeof e!=`object`||!e)return!1;let t=e;return t.type===`part`&&typeof t.pid==`string`&&t.pid.length>0&&t.pid.length<=64&&Number.isInteger(t.index)&&Number.isInteger(t.total)&&t.total>0&&t.total<=Vn&&t.index>=0&&t.index<t.total&&typeof t.data==`string`&&t.data.length<=24e4}var Kn=new Set([`rpc-ready`,`rpc-result`,`rpc-event`,`asset`,`gzip`,`part`]);function qn(e){return Kn.has(e.type)}async function Jn(e,t){let n=new Blob([e]).stream().pipeThrough(t);return new Uint8Array(await new Response(n).arrayBuffer())}async function Yn(e){try{let t=await Jn(Hn(e.data),new DecompressionStream(`gzip`));return JSON.parse(new TextDecoder().decode(t))}catch{return null}}function Xn(e={}){let t=e.ttlMs??12e4,n=e.maxPending??16,r=e.now??Date.now,i=new Map,a=()=>{let e=r();for(let[n,r]of i)e-r.at>t&&i.delete(n)};return{push(e){a();let t=i.get(e.pid);if(t&&t.total!==e.total)return i.delete(e.pid),null;if(!t){if(i.size>=n){let e=i.keys().next().value;e!==void 0&&i.delete(e)}t={total:e.total,parts:Array(e.total),got:0,at:r()},i.set(e.pid,t)}if(t.parts[e.index]===void 0&&(t.parts[e.index]=e.data,t.got++),t.at=r(),t.got<t.total)return null;i.delete(e.pid);try{return JSON.parse(t.parts.join(``))}catch{return null}},clear(){i.clear()}}}function Zn(e={}){let t=e.maxHeld??4096,n=new Map,r=0,i=!1;return{push(e,a){if(e===void 0)return[a];if(e<=r||n.has(e))return[];n.set(e,a),n.size>t&&(i=!0);let o=[];for(let e=n.get(r+1);e!==void 0;e=n.get(r+1))n.delete(r+1),r++,o.push(e);return o},get applied(){return r},get gap(){return n.size>0},get overflowed(){return i}}}var Qn=8,$n=12,er=4096,tr=BigInt(er),nr=(1n<<tr)-1n;function rr(e){return typeof e==`object`&&!!e&&e.type===`replay-hello`}function ir(e=Gt,t=Kt){let n=dr(Qn),r=0,i=dr(Qn),a=null,o=!1,s=!1,c=null,l=0,u=!1,d=0n;function f(){i=dr(Qn),a=null,o=!1,s=!1,c=null,l=0,u=!1,d=0n}function p(){let e={p:En(n),c:En(i)};return a&&(e.e=En(a)),e}function m(e){if(e<=0||e>4294967295)return!1;if(l===0)return l=e,d=1n,!0;if(e>l){let t=BigInt(e-l);return d=t>=tr?1n:(d<<t|1n)&nr,l=e,!0}let t=l-e;if(t>=er)return!1;let n=1n<<BigInt(t);return d&n?!1:(d|=n,!0)}return{peerReset:f,async seal(t,i){let a=ar(i,p());if(!o)return e(t,a);if(r===4294967295)throw new Ft(`replay counter exhausted`);r+=1;let s=new Uint8Array($n);return s.set(n,0),s[8]=r>>>24,s[9]=r>>>16&255,s[10]=r>>>8&255,s[11]=r&255,e(t,a,s)},async open(e,n){let r=await t(e,n),f=sr(r);f&&(!a||!ur(a,f.c))&&(a=f.c,o=!0,u=!0);let p=n.subarray(1,13);if(f?.e&&ur(f.e,i)&&ur(p.subarray(0,Qn),f.p))return(!s||!c||!ur(c,f.p))&&(s=!0,c=f.p,l=0,d=0n),m(lr(p))?or(r):void 0;if(!s||c&&ur(p.subarray(0,Qn),c)&&m(lr(p)))return or(r)},takeHello(){return u?(u=!1,!0):!1}}}function ar(e,t){return typeof e!=`object`||!e||Array.isArray(e)?e:{...e,replay:t}}function or(e){if(typeof e!=`object`||!e||!(`replay`in e))return e;let{replay:t,...n}=e;return n}function sr(e){if(typeof e!=`object`||!e||!(`replay`in e))return null;let t=e.replay;if(typeof t!=`object`||!t)return null;let n=t,r=cr(n.p),i=cr(n.c);if(!r||!i)return null;if(n.e===void 0)return{p:r,c:i};let a=cr(n.e);return a?{p:r,c:i,e:a}:null}function cr(e){if(typeof e!=`string`)return null;try{let t=Dn(e);return t.length===Qn?t:null}catch{return null}}function lr(e){return(e[8]<<24|e[9]<<16|e[10]<<8|e[11])>>>0}function ur(e,t){if(e.length!==t.length)return!1;let n=0;for(let r=0;r<e.length;r++)n|=e[r]^t[r];return n===0}function dr(e){let t=new Uint8Array(e);return crypto.getRandomValues(t),t}function fr(e,t,n=null){return!t||n!==null&&n!==1||e===`network-change`||e===`online`}var pr=2e3;function mr(e,t=pr){return e>=t}var hr=8e3;function gr(e,t,n=hr){return e===0&&t>=n}var _r=512,vr=e=>typeof e==`object`&&!!e&&!Array.isArray(e),yr=e=>typeof e==`string`&&e.length>0&&e.length<=_r,br=e=>typeof e==`number`&&Number.isSafeInteger(e)&&e>=0,xr=(e,t)=>Object.keys(e).length===t.length&&Object.keys(e).every(e=>t.includes(e));function Sr(e){return vr(e)&&xr(e,[`epoch`,`seq`])&&yr(e.epoch)&&br(e.seq)}function Cr(e,t){if(!vr(e)||e.type!==`snapshot`||!Array.isArray(e.sessions)||e.sessions.length!==1)return!1;let n=e.sessions[0];return!(!vr(n)||n.sessionId!==t||!Array.isArray(n.messages)||!br(n.baseIndex)||n.identity!==void 0&&(!vr(n.identity)||n.identity.sessionId!==t))}function wr(e){return!vr(e)||e.type!==`session-sync`||!yr(e.sessionId)||!yr(e.requestId)||!Sr(e.cursor)?null:e.mode===`snapshot`?xr(e,[`type`,`sessionId`,`requestId`,`cursor`,`mode`,`snapshot`])&&Cr(e.snapshot,e.sessionId)?e:null:e.mode!==`replay`||!xr(e,[`type`,`sessionId`,`requestId`,`cursor`,`mode`,`fromSeq`,`events`])||!br(e.fromSeq)||!Array.isArray(e.events)||e.fromSeq>e.cursor.seq||e.events.length!==e.cursor.seq-e.fromSeq?null:e.events.every(t=>vr(t)&&yr(t.type)&&t.sessionId===e.sessionId)?e:null}var Tr={state:`synced`,knownIds:new Set};function Er(e,t,n){return{...e,state:t&&!n?.fresh?`syncing`:`synced`}}function Dr(e,t,n){return!t||!n.includes(t)?e:{...e,state:`synced`}}function Or(e,t,n){let r=t!==null&&e.knownIds.has(t)&&!n.includes(t);return{tracking:{state:r?`synced`:e.state,knownIds:new Set(n)},ghost:r}}var kr=1,Ar=`enso-phone-session-cache`,jr=`pairs`,Mr=2,Nr=8e3,Pr={ttlMs:6048e5,maxSessions:5,maxMessages:200,maxDeviceBytes:4194304,maxRecords:8,maxTotalBytes:16777216},Y=e=>typeof e==`object`&&!!e&&!Array.isArray(e),X=e=>typeof e==`string`,Fr=e=>typeof e==`boolean`,Z=e=>typeof e==`number`&&Number.isFinite(e)&&Math.abs(e)<=2**53-1,Q=e=>Z(e)&&Number.isSafeInteger(e)&&e>=0,$=(e,t,n)=>e[t]===void 0||n(e[t]);function Ir(e,t){if(!Array.isArray(e))return null;let n=[];for(let r of e){let e=t(r);if(e===null)return null;n.push(e)}return n}function Lr(e,t){if(!Array.isArray(e))return null;let n=[];for(let r of e){let e=t(r);e&&n.push(e)}return n}function Rr(e){let t=new Set,n=[];for(let r of e)t.has(r.id)||(t.add(r.id),n.push(r));return n}function zr(e){return new Set(e).size===e.length}function Br(e){if(!Y(e)||!X(e.id)||!X(e.title)||!X(e.projectId)||!X(e.status)||!$(e,`projectName`,X)||!$(e,`cwd`,X)||!$(e,`unread`,Fr)||!$(e,`pendingAskCount`,Q)||!$(e,`pendingApprovalCount`,Q)||!$(e,`parentId`,X)||!$(e,`updatedAt`,Q)||!$(e,`pinned`,Fr)||!$(e,`archived`,Fr)||!$(e,`muted`,Fr)||!$(e,`providerId`,X)||!$(e,`modelId`,X)||!$(e,`reasoningEnabled`,Fr))return null;let t=e.queued===void 0?void 0:Lr(e.queued,e=>!Y(e)||!X(e.id)||!X(e.text)||!$(e,`hasImages`,Fr)?null:{id:e.id,text:e.text,...typeof e.hasImages==`boolean`?{hasImages:e.hasImages}:{}}),n;if(e.goal!==void 0){if(!Y(e.goal)||!X(e.goal.text)||!Q(e.goal.autoTurns)||!$(e.goal,`note`,X))return null;let t=e.goal.status;if(t!==`active`&&t!==`paused`&&t!==`completed`&&t!==`blocked`&&t!==`waiting`)return null;n={text:e.goal.text,status:t,autoTurns:e.goal.autoTurns,...typeof e.goal.note==`string`?{note:e.goal.note}:{}}}let r=e.slashCommands===void 0?void 0:Lr(e.slashCommands,e=>Y(e)&&X(e.name)&&X(e.description)?{name:e.name,description:e.description}:null),i={id:e.id,title:e.title,projectName:X(e.projectName)?e.projectName:``,projectId:e.projectId,status:e.status};typeof e.cwd==`string`&&(i.cwd=e.cwd),typeof e.unread==`boolean`&&(i.unread=e.unread),typeof e.pendingAskCount==`number`&&(i.pendingAskCount=e.pendingAskCount),typeof e.pendingApprovalCount==`number`&&(i.pendingApprovalCount=e.pendingApprovalCount),typeof e.parentId==`string`&&(i.parentId=e.parentId),typeof e.updatedAt==`number`&&(i.updatedAt=e.updatedAt),typeof e.queuePosition==`number`&&Number.isFinite(e.queuePosition)&&(i.queuePosition=e.queuePosition),typeof e.queueFailed==`string`&&e.queueFailed&&(i.queueFailed=e.queueFailed),(e.parked===`reminder`||e.parked===`upstream`)&&(i.parked=e.parked),typeof e.pinned==`boolean`&&(i.pinned=e.pinned),typeof e.archived==`boolean`&&(i.archived=e.archived),e.muted===!0&&(i.muted=!0),typeof e.providerId==`string`&&(i.providerId=e.providerId),typeof e.modelId==`string`&&(i.modelId=e.modelId),typeof e.reasoningEnabled==`boolean`&&(i.reasoningEnabled=e.reasoningEnabled),(e.thinkingLevel===`minimal`||e.thinkingLevel===`low`||e.thinkingLevel===`medium`||e.thinkingLevel===`high`||e.thinkingLevel===`xhigh`||e.thinkingLevel===`max`)&&(i.thinkingLevel=e.thinkingLevel),t&&(i.queued=t),n&&(i.goal=n),r&&(i.slashCommands=r);let a=Vr(e.context);a&&(i.context=a);let o=Mt(e.usageTotals);return o&&(i.usageTotals=o),i}function Vr(e){if(!(!Y(e)||!Q(e.used)||!$(e,`window`,Q)))return typeof e.window==`number`?{used:e.used,window:e.window}:{used:e.used}}function Hr(e){return!Y(e)||!X(e.id)||!X(e.name)||!$(e,`path`,X)||!$(e,`alias`,X)||!$(e,`sshConnectionName`,X)||!$(e,`sshHost`,X)||!$(e,`groupId`,X)||e.kind!==void 0&&e.kind!==`local`&&e.kind!==`ssh`||e.archived!==void 0&&e.archived!==!0?null:{id:e.id,name:e.name,path:X(e.path)?e.path:``,...typeof e.alias==`string`?{alias:e.alias}:{},...e.kind===`local`||e.kind===`ssh`?{kind:e.kind}:{},...typeof e.sshConnectionName==`string`?{sshConnectionName:e.sshConnectionName}:{},...typeof e.sshHost==`string`?{sshHost:e.sshHost}:{},...e.archived===!0?{archived:!0}:{},...typeof e.groupId==`string`?{groupId:e.groupId}:{}}}function Ur(e){return!Y(e)||!X(e.id)||!X(e.name)||!Z(e.order)||!$(e,`emoji`,X)||!$(e,`color`,X)?null:{id:e.id,name:e.name,order:e.order,...typeof e.emoji==`string`?{emoji:e.emoji}:{},...typeof e.color==`string`?{color:e.color}:{}}}function Wr(e){if(!Y(e)||!X(e.id)||!X(e.name))return null;let t=Lr(e.models,e=>!Y(e)||!X(e.id)||!$(e,`label`,X)?null:{id:e.id,...typeof e.label==`string`?{label:e.label}:{}});return t?{id:e.id,name:e.name,models:Rr(t)}:null}var Gr={ok:!1};function Kr(e,t={nodes:0,seen:new WeakSet},n=0){if(t.nodes+=1,t.nodes>2e5||n>32)return Gr;if(e===null||X(e)||Fr(e)||Z(e))return{ok:!0,value:e};if(Array.isArray(e)){if(t.seen.has(e))return Gr;t.seen.add(e);let r=[];for(let i of e){let e=Kr(i,t,n+1);if(!e.ok)return Gr;r.push(e.value)}return t.seen.delete(e),{ok:!0,value:r}}if(!Y(e))return Gr;let r=Object.getPrototypeOf(e);if(r!==Object.prototype&&r!==null||t.seen.has(e))return Gr;t.seen.add(e);let i={};for(let[r,a]of Object.entries(e)){if(a===void 0)continue;let e=Kr(a,t,n+1);if(!e.ok)return Gr;Object.defineProperty(i,r,{value:e.value,enumerable:!0,configurable:!0,writable:!0})}return t.seen.delete(e),{ok:!0,value:i}}function qr(e){if(!Y(e))return null;switch(e.type){case`text`:return X(e.text)?{type:`text`,text:e.text}:null;case`thinking`:return X(e.text)?{type:`thinking`,text:e.text}:null;case`toolCall`:{if(!X(e.id)||!X(e.name))return null;if(e.arguments===void 0)return{type:`toolCall`,id:e.id,name:e.name};let t=Kr(e.arguments);return t.ok?{type:`toolCall`,id:e.id,name:e.name,arguments:t.value}:null}case`image`:return X(e.data)&&X(e.mimeType)?{type:`image`,data:e.data,mimeType:e.mimeType}:null;case`unknown`:return{type:`unknown`};default:return null}}function Jr(e){return!Y(e)||!Z(e.input)||!Z(e.output)||!Z(e.cacheRead)||!Z(e.cacheWrite)?null:{input:e.input,output:e.output,cacheRead:e.cacheRead,cacheWrite:e.cacheWrite}}function Yr(e){return!Y(e)||!Z(e.stepStartMs)||!$(e,`firstTokenMs`,Z)||!$(e,`thinkingEndMs`,Z)||!$(e,`completedMs`,Z)?null:{stepStartMs:e.stepStartMs,...typeof e.firstTokenMs==`number`?{firstTokenMs:e.firstTokenMs}:{},...typeof e.thinkingEndMs==`number`?{thinkingEndMs:e.thinkingEndMs}:{},...typeof e.completedMs==`number`?{completedMs:e.completedMs}:{}}}function Xr(e){if(!Y(e)||!X(e.role))return null;let t=Ir(e.content,qr);if(!t||!$(e,`toolName`,X)||!$(e,`toolCallId`,X)||!$(e,`isError`,Fr)||!$(e,`stopReason`,X)||!$(e,`errorMessage`,X)||!$(e,`timestamp`,Z)||!$(e,`ttft`,Z)||!$(e,`duration`,Z)||!$(e,`toolDurationMs`,Z)||!$(e,`tokensBefore`,Z)||!$(e,`verified`,Fr)||!$(e,`memory`,Fr)||!$(e,`restartResumed`,Fr))return null;let n=e.usage===void 0?void 0:Jr(e.usage),r=e.timing===void 0?void 0:Yr(e.timing);if(e.usage!==void 0&&!n||e.timing!==void 0&&!r)return null;let i=e.todos===void 0?void 0:Ir(e.todos,e=>!Y(e)||!X(e.content)||e.status!==`pending`&&e.status!==`in_progress`&&e.status!==`completed`?null:{content:e.content,status:e.status});if(e.todos!==void 0&&!i)return null;let a;if(e.subagentMeta!==void 0){if(!Y(e.subagentMeta)||!$(e.subagentMeta,`modelId`,X)||!$(e.subagentMeta,`outputTokens`,Z)||!$(e.subagentMeta,`steps`,Z))return null;a={...typeof e.subagentMeta.modelId==`string`?{modelId:e.subagentMeta.modelId}:{},...typeof e.subagentMeta.outputTokens==`number`?{outputTokens:e.subagentMeta.outputTokens}:{},...typeof e.subagentMeta.steps==`number`?{steps:e.subagentMeta.steps}:{}}}let o;if(e.editDiff!==void 0){if(!Y(e.editDiff)||!X(e.editDiff.oldText)||!X(e.editDiff.newText))return null;o={oldText:e.editDiff.oldText,newText:e.editDiff.newText}}let s=e.fileChanges===void 0?void 0:Ir(e.fileChanges,e=>!Y(e)||!X(e.path)||!X(e.oldText)||!X(e.newText)||e.type!==`add`&&e.type!==`update`&&e.type!==`delete`||e.truncated!==void 0&&e.truncated!==!0?null:{path:e.path,oldText:e.oldText,newText:e.newText,type:e.type,...e.truncated===!0?{truncated:!0}:{}});if(e.fileChanges!==void 0&&!s)return null;let c;if(e.applyPatchOutcome!==void 0){let t=e.applyPatchOutcome;if(!Y(t)||t.status!==`success`&&t.status!==`partial`&&t.status!==`failed`||!$(t,`error`,X)||!$(t,`input`,X)||t.errorTruncated!==void 0&&t.errorTruncated!==!0||t.inputTruncated!==void 0&&t.inputTruncated!==!0)return null;let n=Ir(t.applied,e=>X(e)?e:null),r=Ir(t.failed,e=>X(e)?e:null),i=Ir(t.unattempted,e=>X(e)?e:null),a=Ir(t.uncertain,e=>X(e)?e:null);if(!n||!r||!i||!a)return null;c={status:t.status,applied:n,failed:r,unattempted:i,uncertain:a,...typeof t.error==`string`?{error:t.error}:{},...t.errorTruncated===!0?{errorTruncated:!0}:{},...typeof t.input==`string`?{input:t.input}:{},...t.inputTruncated===!0?{inputTruncated:!0}:{}}}let l={role:e.role,content:t};return typeof e.toolName==`string`&&(l.toolName=e.toolName),typeof e.toolCallId==`string`&&(l.toolCallId=e.toolCallId),typeof e.isError==`boolean`&&(l.isError=e.isError),typeof e.stopReason==`string`&&(l.stopReason=e.stopReason),typeof e.errorMessage==`string`&&(l.errorMessage=e.errorMessage),typeof e.timestamp==`number`&&(l.timestamp=e.timestamp),n&&(l.usage=n),typeof e.ttft==`number`&&(l.ttft=e.ttft),typeof e.duration==`number`&&(l.duration=e.duration),r&&(l.timing=r),i&&(l.todos=i),typeof e.toolDurationMs==`number`&&(l.toolDurationMs=e.toolDurationMs),a&&(l.subagentMeta=a),o&&(l.editDiff=o),s&&(l.fileChanges=s),c&&(l.applyPatchOutcome=c),typeof e.tokensBefore==`number`&&(l.tokensBefore=e.tokensBefore),typeof e.verified==`boolean`&&(l.verified=e.verified),typeof e.memory==`boolean`&&(l.memory=e.memory),e.restartResumed===!0&&(l.restartResumed=!0),l}function Zr(e){return Ir(e,e=>!Y(e)||!X(e.requestId)||!X(e.tool)||!X(e.summary)||!$(e,`toolCallId`,X)||e.phase!==void 0&&e.phase!==`reviewing`||e.kind!==`command`&&e.kind!==`file-edit`&&e.kind!==`file-write`&&e.kind!==`mcp`?null:{requestId:e.requestId,tool:e.tool,kind:e.kind,summary:e.summary,...typeof e.toolCallId==`string`?{toolCallId:e.toolCallId}:{},...e.phase===`reviewing`?{phase:`reviewing`}:{},...typeof e.expiresAt==`number`?{expiresAt:e.expiresAt}:{}})}function Qr(e){return Ir(e,e=>{if(!Y(e)||!X(e.requestId)||!X(e.question))return null;let t=e.options===void 0?void 0:Ir(e.options,e=>X(e)?e:null);return e.options!==void 0&&!t?null:{requestId:e.requestId,question:e.question,...t?{options:t}:{},...typeof e.expiresAt==`number`?{expiresAt:e.expiresAt}:{}}})}function $r(e){return Ir(e,e=>!Y(e)||!X(e.taskId)||!X(e.command)||!X(e.tail)||!Z(e.startedAt)||!$(e,`exitCode`,Z)||e.status!==`running`&&e.status!==`done`&&e.status!==`failed`?null:{taskId:e.taskId,command:e.command,status:e.status,tail:e.tail,startedAt:e.startedAt,...typeof e.exitCode==`number`?{exitCode:e.exitCode}:{}})}function ei(e){return Ir(e,e=>{if(!Y(e)||!X(e.id)||!X(e.description)||!Z(e.steps)||!X(e.currentActivity)||!Z(e.startedAt)||!$(e,`detailsPruned`,Fr)||!$(e,`resultText`,X)||!$(e,`modelId`,X)||!$(e,`agentType`,X)||!$(e,`outputTokens`,Z)||e.status!==`running`&&e.status!==`done`&&e.status!==`failed`)return null;let t=e.activityLog===void 0?void 0:Ir(e.activityLog,e=>X(e)?e:null),n=e.activities===void 0?void 0:Ir(e.activities,e=>!Y(e)||!X(e.id)?null:e.type===`assistant`&&X(e.text)&&Fr(e.streaming)?{id:e.id,type:`assistant`,text:e.text,streaming:e.streaming}:e.type===`tool`&&X(e.toolName)&&X(e.argumentsText)&&$(e,`outputText`,X)&&(e.status===`running`||e.status===`done`||e.status===`failed`||e.status===`aborted`)?{id:e.id,type:`tool`,toolName:e.toolName,argumentsText:e.argumentsText,status:e.status,...typeof e.outputText==`string`?{outputText:e.outputText}:{}}:null);return e.activityLog!==void 0&&!t||e.activities!==void 0&&!n?null:{id:e.id,description:e.description,status:e.status,steps:e.steps,currentActivity:e.currentActivity,startedAt:e.startedAt,...t?{activityLog:t}:{},...n?{activities:n}:{},...typeof e.detailsPruned==`boolean`?{detailsPruned:e.detailsPruned}:{},...typeof e.resultText==`string`?{resultText:e.resultText}:{},...typeof e.modelId==`string`?{modelId:e.modelId}:{},...typeof e.agentType==`string`?{agentType:e.agentType}:{},...typeof e.outputTokens==`number`?{outputTokens:e.outputTokens}:{}}})}function ti(e,t){if(!Y(e)||!X(e.status))return null;let n=Zr(e.approvals),r=Qr(e.asks),i=$r(e.tasks),a=ei(e.subagents);if(!n||!r||!i||!a)return null;let o;if(e.retry!==void 0){if(!Y(e.retry)||!Q(e.retry.attempt)||!Q(e.retry.maxAttempts)||!Q(e.retry.delayMs)||!X(e.retry.error)||!Z(e.retry.at))return null;o={attempt:e.retry.attempt,maxAttempts:e.retry.maxAttempts,delayMs:e.retry.delayMs,error:e.retry.error,at:e.retry.at}}return e.compaction!==void 0&&e.compaction!==`queued`&&e.compaction!==`running`||!$(e,`compactionNoticeAt`,Q)?null:{messages:t,status:e.status,approvals:n,asks:r,tasks:i,subagents:a,...o?{retry:o}:{},...e.compaction===`queued`||e.compaction===`running`?{compaction:e.compaction}:{},...typeof e.compactionNoticeAt==`number`?{compactionNoticeAt:e.compactionNoticeAt}:{}}}function ni(e){return Y(e)&&X(e.epoch)&&e.epoch.length>0&&Q(e.seq)?{epoch:e.epoch,seq:e.seq}:null}function ri(e,t){if(!Y(e)||!X(e.id)||!Y(e.view)||!(e.view.messages instanceof Map))return null;let n=[...e.view.messages.entries()];if(n.some(([e])=>!Q(e)))return null;n.sort((e,t)=>e[0]-t[0]);let r=Math.max(0,n.length-1);for(;r>0&&n[r-1][0]===n[r][0]-1;)--r;let i=n.slice(Math.max(r,n.length-t));if(n.length>0&&i.length===0)return null;let a=[];for(let[e,t]of i){let n=Xr(t);n&&a.push([e,n])}let o=ti(e.view,new Map(a));if(!o)return null;let s=e.cursor===void 0?void 0:ni(e.cursor);return e.cursor!==void 0&&!s?null:{id:e.id,view:{...o,messages:a},...s?{cursor:s}:{}}}function ii(e,t){if(!Y(e)||!X(e.id)||!Y(e.view))return null;let n=e.view.messages;if(!Array.isArray(n)||n.length>t.maxMessages)return null;let r=new Map,i;for(let e of n){if(!Array.isArray(e)||e.length!==2||!Q(e[0])||i!==void 0&&e[0]<=i)return null;let t=Xr(e[1]);if(!t||r.has(e[0]))return null;r.set(e[0],t),i=e[0]}let a=ti(e.view,r);if(!a)return null;let o=e.cursor===void 0?void 0:ni(e.cursor);return e.cursor!==void 0&&!o?null:{id:e.id,view:a,...o?{cursor:o}:{}}}function ai(e){if(!Y(e))return null;let t=Lr(e.catalog,Br)??[],n=Lr(e.pinnedOrder,e=>X(e)?e:null)??[],r=Lr(e.projects,Hr)??[],i=Lr(e.projectGroups,Ur)??[],a=Lr(e.providers,Wr)??[],o=[...new Set(n)];return{catalog:Rr(t),pinnedOrder:o,projects:Rr(r),projectGroups:Rr(i),providers:Rr(a)}}function oi(e){try{let t=JSON.stringify(e);return t===void 0?null:new TextEncoder().encode(t).byteLength}catch{return null}}function si(e,t){if(!Y(e)||!Array.isArray(e.sessions))return console.warn(`[pair] cache encode skipped`),null;let n=ai(e)??{catalog:[],pinnedOrder:[],projects:[],projectGroups:[],providers:[]},r=[],i=t.maxSessions===0?[]:e.sessions.slice(-t.maxSessions);for(let e of i){let n=ri(e,t.maxMessages);n&&r.push(n)}if(!zr(r.map(e=>e.id)))return null;let a={...n,sessions:r},o=oi(a);if(o===null)return null;for(;o>t.maxDeviceBytes&&a.sessions.length>1;)if(a.sessions.shift(),o=oi(a),o===null)return null;if(o<=t.maxDeviceBytes)return a;let s=a.sessions[0];if(s?.view.messages.length){let e=s.view.messages,n=1,r=e.length-1,i=-1;for(;n<=r;){let o=Math.floor((n+r)/2);s.view.messages=e.slice(o);let c=oi(a);c!==null&&c<=t.maxDeviceBytes?(i=o,r=o-1):n=o+1}if(i>=0)return s.view.messages=e.slice(i),a}return a.sessions=[],o=oi(a),o!==null&&o<=t.maxDeviceBytes?a:null}function ci(e,t){let n=ai(e);if(!n||!Y(e)||!Array.isArray(e.sessions)||e.sessions.length>t.maxSessions)return null;let r=Ir(e.sessions,e=>ii(e,t));return!r||!zr(r.map(e=>e.id))?null:{...n,sessions:r}}function li(e,t,n,r){if(!Y(e)||!Q(r)||e.schema!==kr||e.pairId!==t||!Q(e.updatedAt)||!Q(e.accessedAt)||!Q(e.bytes)||r-e.updatedAt>n.ttlMs)return null;let i=oi(e.data),a=oi(e);if(i===null||i!==e.bytes||i>n.maxDeviceBytes||a===null||a>n.maxDeviceBytes)return null;let o=ci(e.data,n);if(!o)return null;let s=ui(t,e.updatedAt,n.maxDeviceBytes),c=si(o,{...n,maxDeviceBytes:s}),l=c?oi(c):null;return!c||l===null?null:{data:o,record:{pairId:t,schema:kr,updatedAt:e.updatedAt,accessedAt:e.accessedAt,bytes:l,data:c}}}function ui(e,t,n){let r=oi({pairId:e,schema:kr,updatedAt:t,accessedAt:t,bytes:n,data:null});return r===null?0:Math.max(0,n-(r-4))}function di(e,t,n){let r=[],i=[];for(let t of e){let e=t.value,n=oi(e);if(!Y(e)||e.schema!==kr||e.pairId!==t.key||!Q(e.accessedAt)||n===null){r.push(t.key);continue}i.push({key:t.key,accessedAt:e.accessedAt,bytes:n})}i.sort((e,t)=>t.accessedAt-e.accessedAt||Number(t.key===n)-Number(e.key===n)||e.key.localeCompare(t.key));let a=0,o=0;for(let e of i)o>=t.maxRecords||a+e.bytes>t.maxTotalBytes?r.push(e.key):(o+=1,a+=e.bytes);return[...new Set(r)]}var fi=class{factory;timeoutMs;opening=null;constructor(e,t){this.factory=e,this.timeoutMs=t}database(){if(!this.opening){let e=this.open();this.opening=e,e.catch(()=>{this.opening===e&&(this.opening=null)})}return this.opening}open(){return new Promise((e,t)=>{let n;try{n=this.factory.open(Ar,Mr)}catch(e){t(e);return}let r=!1,i=(n,i)=>{if(r){n?.close();return}r=!0,clearTimeout(a),n?e(n):t(i??Error(`IndexedDB unavailable`))},a=setTimeout(()=>i(null,Error(`IndexedDB open timeout`)),this.timeoutMs);n.onupgradeneeded=()=>{try{n.result.objectStoreNames.contains(jr)||n.result.createObjectStore(jr)}catch(e){try{n.transaction?.abort()}catch{}i(null,e)}},n.onsuccess=()=>{n.result.onversionchange=()=>n.result.close(),i(n.result)},n.onerror=()=>i(null,n.error),n.onblocked=()=>{}})}async read(e){let t=await this.database();return new Promise((n,r)=>{let i;try{i=t.transaction(jr,`readonly`)}catch(e){r(e);return}let a,o=!1,s=(e,t)=>{o||(o=!0,clearTimeout(c),t?r(t):n(e))},c=setTimeout(()=>{try{i.abort()}catch{}s(null,Error(`IndexedDB transaction timeout`))},this.timeoutMs),l=i.objectStore(jr).get(e);l.onsuccess=()=>{a=l.result},i.oncomplete=()=>s(a),i.onabort=()=>s(null,i.error??Error(`IndexedDB aborted`)),i.onerror=()=>{}})}async write(e,t,n){let r=await this.database();return new Promise((i,a)=>{let o;try{o=r.transaction(jr,`readwrite`)}catch(e){a(e);return}let s=!1,c=e=>{s||(s=!0,clearTimeout(l),e?a(e):i())},l=setTimeout(()=>{try{o.abort()}catch{}c(Error(`IndexedDB transaction timeout`))},this.timeoutMs),u=o.objectStore(jr),d=u.getAll(),f=u.getAllKeys(),p=!1,m=!1,h=()=>{if(!(!p||!m))try{let r=[];for(let t=0;t<f.result.length;t+=1){let n=f.result[t];typeof n==`string`&&n!==e&&r.push({key:n,value:d.result[t]})}r.push({key:e,value:t}),u.put(t,e);for(let e of n(r))u.delete(e)}catch(e){try{o.abort()}catch{}c(e)}};d.onsuccess=()=>{p=!0,h()},f.onsuccess=()=>{m=!0,h()},o.oncomplete=()=>c(),o.onabort=()=>c(o.error??Error(`IndexedDB aborted`)),o.onerror=()=>{}})}async remove(e){let t=await this.database();return new Promise((n,r)=>{let i;try{i=t.transaction(jr,`readwrite`),i.objectStore(jr).delete(e)}catch(e){r(e);return}let a=!1,o=e=>{a||(a=!0,clearTimeout(s),e?r(e):n())},s=setTimeout(()=>{try{i.abort()}catch{}o(Error(`IndexedDB transaction timeout`))},this.timeoutMs);i.oncomplete=()=>o(),i.onabort=()=>o(i.error??Error(`IndexedDB aborted`)),i.onerror=()=>{}})}};function pi(e){let t={...Pr};if(!e)return t;for(let n of Object.keys(t)){let r=e[n];typeof r==`number`&&Number.isSafeInteger(r)&&r>=0&&(t[n]=r)}return t}function mi(e={}){let t=pi(e.limits),n=typeof e.openTimeoutMs==`number`&&e.openTimeoutMs>0?e.openTimeoutMs:Nr,r=`indexedDB`in e?e.indexedDB:`indexedDB`in globalThis?globalThis.indexedDB:void 0,i=e.backend??(r?new fi(r,n):null),a=e.now??Date.now,o=new Map,s=(e,t,n)=>{if(!e||e.length>512)return Promise.resolve(t);let r=(o.get(e)??Promise.resolve()).then(n).catch(()=>t),i=r.then(()=>void 0,()=>void 0);return o.set(e,i),i.then(()=>{o.get(e)===i&&o.delete(e)}),r};return{load(e){return s(e,null,async()=>{if(!i)return null;let n=a(),r=await i.read(e);if(r===void 0)return null;let o=li(r,e,t,n);if(!o){try{await i.remove(e)}catch{}return null}if(o.record.accessedAt!==n&&Q(n)){let r=si(o.data,{...t,maxDeviceBytes:ui(e,n,t.maxDeviceBytes)}),a=r?oi(r):null;if(r&&a!==null){let s={...o.record,accessedAt:n,bytes:a,data:r};try{await i.write(e,s,n=>di(n,t,e))}catch{}}}return o.data})},save(e,n){return s(e,void 0,async()=>{if(!i)return;let r=a(),o=Q(r)?si(n,{...t,maxDeviceBytes:ui(e,r,t.maxDeviceBytes)}):null;if(!o||!Q(r))return;let s=oi(o);if(s===null)return;let c={pairId:e,schema:kr,updatedAt:r,accessedAt:r,bytes:s,data:o};try{await i.write(e,c,n=>di(n,t,e))}catch(e){console.warn(`[pair] cache write failed`,e)}})},clear(e){return s(e,void 0,async()=>{i&&await i.remove(e)})}}}var hi=mi();function gi(e){let t=document.querySelector(`meta[name="theme-color"]`);if(t?.content===e&&!t.media)return;for(let e of document.querySelectorAll(`meta[name="theme-color"]`))e.remove();let n=document.createElement(`meta`);n.name=`theme-color`,n.content=e,document.head.prepend(n)}function _i(e){if(e.startsWith(`rgb`)||e.startsWith(`#`))return e;try{let t=document.createElement(`canvas`);t.width=1,t.height=1;let n=t.getContext(`2d`,{willReadFrequently:!0});if(!n)return e;n.fillStyle=e,n.fillRect(0,0,1,1);let[r,i,a]=n.getImageData(0,0,1,1).data;return`rgb(${r}, ${i}, ${a})`}catch{return e}}function vi(e,t){return e===`auto`?{theme:t,syncTerminalTheme:t===`sync-terminal`}:{theme:e,syncTerminalTheme:!1}}var yi=`enso-phone-theme`,bi=`system`,xi=wi(),Si=window.matchMedia(`(prefers-color-scheme: dark)`),Ci=new Set;function wi(){let e=localStorage.getItem(yi);return e===`light`||e===`dark`?e:`auto`}function Ti(){requestAnimationFrame(()=>{let e=getComputedStyle(document.body).backgroundColor;e&&gi(_i(e))})}function Ei(){if(xi!==`auto`)yt(),document.documentElement.classList.toggle(`dark`,xi===`dark`);else if(bi===`sync-terminal`)vt(void 0,!0);else{yt();let e=bi===`system`?Si.matches:bi===`dark`;document.documentElement.classList.toggle(`dark`,e)}for(let e of Ci)e();Ti();let e=vi(xi,bi);ne(e.theme,e.syncTerminalTheme)}function Di(e){bi=e,Ei()}function Oi(){return xi}function ki(e){xi=e,e===`auto`?localStorage.removeItem(yi):localStorage.setItem(yi,e),Ei()}function Ai(e){return Ci.add(e),()=>Ci.delete(e)}function ji(){Ei(),Si.addEventListener(`change`,Ei)}var Mi=1e6,Ni=3e3,Pi=class{device;events;cache;desk;ws=null;heartbeat=null;contentKey;replay=ir(Gt,Kt);relayOnlyUntil=0;attempt=0;timer=null;closed=!1;revoked=!1;replaced=!1;subscribedId=null;sessions=new Map;historyPending=new Set;sync=Tr;direct;cursors=new Map;baselines=new Set;pendingSync=null;freshSessionId=null;syncTimer=null;receiveQueue=Promise.resolve();sendQueue=Promise.resolve();cacheReady=!1;cacheLoading=!1;cacheTimer=null;cacheDirty=!1;roomPrimed=!1;roomStatusSeen=!1;hiddenAt=null;pendingDirectRestart=!1;probeNonce=0;probeSentAt=null;metadata={catalog:[],pinnedOrder:[],projects:[],projectGroups:[],providers:[]};constructor(e,t,n=qt(),r=hi,i=!1){this.device=e,this.events=t,this.cache=r,this.desk=i,this.contentKey=Dn(e.contentKey),this.direct=new Tn({role:`guest`,factory:n,sendSignal:e=>this.sendViaRelay(e),onFrame:e=>this.enqueueFrame(e),onTransportChange:e=>{e===`relay`&&this.ws?.readyState!==1&&!this.revoked&&!this.closed&&this.events.onState(`offline`),this.events.onTransport?.(e)},onResync:()=>{this.roomPrimed=!1,this.primeRoom()},onDiagnostic:e=>console.info(`[pair] ${e}`),onRtt:e=>this.events.onRtt?.(e),onNeedRelayProbe:()=>this.sendRelayProbe()})}transport(){return this.direct.transport()}connect(){if(this.closed||this.revoked||this.replaced||this.cacheLoading||this.ws&&this.ws.readyState<2)return;if(!this.cacheReady){this.cacheLoading=!0,this.cache.load(this.device.pairId).then(e=>{if(!e||this.closed||this.revoked)return;let{sessions:t,...n}=e;this.metadata=n,this.sync={...this.sync,knownIds:new Set(n.catalog.map(e=>e.id))},this.events.onCatalog(n.catalog,n.pinnedOrder),this.events.onProjects(n.projects,n.projectGroups),this.events.onProviders(n.providers);for(let{id:e,view:n,cursor:r}of t)this.sessions.set(e,n),this.baselines.add(e),r&&this.cursors.set(e,r),this.events.onSession(e,{...n,messages:new Map(n.messages)})}).catch(()=>{}).finally(()=>{this.cacheReady=!0,this.cacheLoading=!1,this.connect()});return}this.direct.transport()!==`direct`&&this.events.onState(`connecting`);let e=`${An(this.device.relayUrl)}/v1/pair/${encodeURIComponent(this.device.pairId)}?role=guest&token=${encodeURIComponent(this.device.token)}`,t;try{t=new WebSocket(e)}catch{this.scheduleReconnect();return}t.binaryType=`arraybuffer`,this.ws=t,this.roomPrimed=!1,this.roomStatusSeen=!1;let n=!1,r,i=(e,i=``)=>{if(!n&&(n=!0,r&&clearTimeout(r),this.ws===t)){if(this.heartbeat?.stop(),this.heartbeat=null,this.ws=null,this.roomPrimed=!1,e===4001||i===`replaced`){this.suspendReplaced();return}if(e===1008||this.revoked){this.revoke();return}this.closed||(this.direct.transport()!==`direct`&&this.events.onState(`offline`),this.scheduleReconnect())}};this.heartbeat=zn(t,()=>{try{t.close()}catch{}i(null)},e=>{this.direct.transport()===`relay`&&this.events.onRtt?.(e)}),r=setTimeout(()=>{if(gr(t.readyState,8e3)){try{t.close()}catch{}i(null)}},hr),t.onopen=()=>{this.closed||this.revoked||this.ws!==t||(clearTimeout(r),this.attempt=0,this.primeRoom())},t.onmessage=e=>{if(!(this.closed||this.revoked||this.ws!==t)){if(typeof e.data==`string`){try{let t=JSON.parse(e.data);t.type===`host-online`?(this.roomStatusSeen&&(this.roomPrimed=!1),this.roomStatusSeen=!0,this.replay.peerReset(),this.relayOnlyUntil=Date.now()+Ni,this.events.onState(`online`),this.direct.peerOnline(!0),this.flushDirectRestart(),this.primeRoom()):t.type===`host-offline`?(this.roomStatusSeen=!0,this.events.onState(`host-offline`),this.direct.peerOnline(!1),this.roomPrimed=!1):t.type===`revoked`&&this.revoke()}catch{}return}this.enqueueFrame(new Uint8Array(e.data),t)}},t.onclose=e=>i(e.code,e.reason),t.onerror=()=>{try{t.close()}catch{}}}nudge(e=`visibility`){if(this.closed||this.revoked)return;if(this.ws?.readyState===0){(e===`online`||e===`network-change`)&&(this.pendingDirectRestart=!0);return}let t=this.hiddenAt===null?0:Date.now()-this.hiddenAt;this.hiddenAt=null;let n=(e===`visibility`||e===`resume`)&&mr(t),r=n||fr(e,this.ws!==null,this.ws?.readyState??null);if((e===`online`||e===`network-change`||n&&!this.direct.probe())&&(r?this.pendingDirectRestart=!0:this.direct.networkChange()),r){this.replaceRelay();return}this.heartbeat?.probe(e===`visibility`||e===`resume`?500:void 0)}flushDirectRestart(){this.pendingDirectRestart&&(this.pendingDirectRestart=!1,this.direct.networkChange())}conceal(){this.hiddenAt??=Date.now()}close(){this.flushCache(),this.closed=!0,this.pendingDirectRestart=!1,this.stopSyncRetry(),this.timer&&clearTimeout(this.timer),this.direct.close(),this.heartbeat?.stop(),this.heartbeat=null;try{this.ws?.close()}catch{}}scheduleReconnect(){this.closed||this.revoked||(this.timer&&clearTimeout(this.timer),this.timer=setTimeout(()=>this.connect(),Mn(this.attempt++)))}replaceRelay(){this.timer&&clearTimeout(this.timer),this.timer=null,this.attempt=0;let e=this.ws;if(e){this.heartbeat?.stop(),this.heartbeat=null,this.ws=null,this.roomPrimed=!1;try{e.close()}catch{}}this.connect()}enqueueFrame(e,t){this.receiveQueue=this.receiveQueue.then(async()=>{this.closed||this.revoked||t&&t!==this.ws||await this.handleFrame(e,t)}).catch(()=>{})}async handleFrame(e,t){let n;try{let t=await this.replay.open(this.contentKey,e);if(t===void 0)return;n=t}catch{return}if(!(this.closed||this.revoked||t&&t!==this.ws)&&(this.replay.takeHello()&&this.send({type:`replay-hello`}),!rr(n))){if(qn(n)){this.events.onRemoteFrame?.(n);return}switch(n.type){case`catalog`:{let{tracking:e,ghost:t}=Or(this.sync,this.subscribedId,n.entries.map(e=>e.id)),r=t?this.subscribedId:null,i=new Set(n.entries.map(e=>e.id));for(let e of this.sync.knownIds)i.has(e)||(this.sessions.delete(e),this.baselines.delete(e),this.cursors.delete(e));this.setSync(e),r&&this.subscribe(null),r&&this.events.onGhostSession?.(r),this.metadata.catalog=n.entries,this.metadata.pinnedOrder=n.pinnedOrder??[],this.events.onCatalog(n.entries,n.pinnedOrder),this.scheduleCache();break}case`projects`:this.metadata.projects=n.projects,this.metadata.projectGroups=n.groups??[],this.events.onProjects(n.projects,n.groups),this.scheduleCache();break;case`providers`:this.metadata.providers=n.providers,this.events.onProviders(n.providers),this.scheduleCache();break;case`appearance`:q(n.terminal,n.terminalFontFamily),Di(n.theme),J(n.compactReadOnlyTools!==!1),ee(n.expandLiveEdits!==!1),te(V(n));break;case`agent-event`:this.acceptAgentEvent(n.event,n.cursor);break;case`session-sync`:{let e=wr(n);e?this.applySessionSync(e):console.warn(`[pair] dropped invalid session-sync`);break}case`push-config`:this.events.onPushConfig?.(n.vapidPublicKey);break;case`host-info`:this.direct.hostInfo(n),this.events.onReadOnly?.(n.readOnly===!0),this.events.onRemoteDesktop?.(n.remoteDesktop===!0);break;case`direct-answer`:case`direct-ice`:this.direct.handleSignal(n);break;case`probe-ack`:n.nonce===this.probeNonce&&this.probeSentAt!==null&&(this.direct.noteRelayRtt(Date.now()-this.probeSentAt),this.probeSentAt=null);break;case`history`:{if(!this.historyPending.has(n.sessionId))break;this.historyPending.delete(n.sessionId),this.events.onHistoryPending?.(n.sessionId,!1);let e=this.sessions.get(n.sessionId);if(!e)break;let t=f(e,n);if(t===e)break;this.sessions.set(n.sessionId,t),this.events.onSession(n.sessionId,{...t,messages:new Map(t.messages)}),this.scheduleCache();break}case`bot-catalog`:Array.isArray(n.bots)&&this.events.onBotCatalog?.(n.enabled===!0,n.bots,n.newSession===!0,n.threads===!0);break;case`bot-chats`:Array.isArray(n.chats)&&this.events.onBotChats?.(n.chats,Array.isArray(n.threads)?n.threads:[]);break;case`group-timeline`:typeof n.chatId==`string`&&Array.isArray(n.entries)&&this.events.onGroupTimeline?.(n);break;case`bot-event`:typeof n.event==`object`&&n.event!==null&&this.events.onBotEvent?.(n.event);break;case`bot-chat-state`:typeof n.chatId==`string`&&this.events.onBotChatState?.(n);break;case`bot-send-result`:typeof n.deliveryId==`string`&&this.events.onBotSendResult?.(n);break;case`bot-new-session-result`:typeof n.chatId==`string`&&typeof n.requestId==`string`&&typeof n.ok==`boolean`&&this.events.onBotNewSessionResult?.(n);break;case`bot-thread-result`:typeof n.chatId==`string`&&typeof n.requestId==`string`&&typeof n.ok==`boolean`&&this.events.onBotThreadResult?.(n);break;case`bot-retry-result`:typeof n.chatId==`string`&&typeof n.entryId==`string`&&this.events.onBotRetryResult?.(n);break;case`bot-inbox`:Array.isArray(n.items)&&this.events.onBotInbox?.(n.items);break;case`bot-activity`:Array.isArray(n.items)&&typeof n.now==`number`&&this.events.onBotActivity?.(n.items,Date.now()-n.now);break;case`bot-artifacts`:typeof n.target==`object`&&n.target!==null&&this.events.onBotArtifacts?.(n);break;case`bot-artifact-image`:typeof n.requestId==`string`&&this.events.onBotArtifactImage?.(n);break;case`command-rejected`:typeof n.command==`string`&&this.events.onCommandRejected?.(n.command,n.error)}}}applySessionSync(e){if(this.pendingSync?.requestId!==e.requestId||this.pendingSync.sessionId!==e.sessionId)return;let t=e.sessionId;this.stopSyncRetry();let n=this.sessions.get(t);if(e.mode===`snapshot`)n=d(this.cursors.get(t)?.epoch===e.cursor.epoch?this.sessions:new Map,e.snapshot)[0]?.view,n&&=this.keepCachedMessages(t,n);else{let r=this.cursors.get(t);if(!n||r?.epoch!==e.cursor.epoch||r.seq!==e.fromSeq){this.cursors.delete(t),this.subscribe(t);return}for(let r of e.events){let e=r;if(this.truncatesBeforeCache(n,e)){this.cursors.delete(t),this.subscribe(t);return}n=u(n,e).view}}if(!n)return;this.sessions.set(t,n),this.baselines.add(t),this.cursors.set(t,e.cursor);let r=this.pendingSync.observed;this.pendingSync=null,r&&(r===`mixed`||r.epoch!==e.cursor.epoch||r.seq>e.cursor.seq)?this.subscribe(t):this.setSync({...this.sync,state:`synced`}),this.events.onSession(t,{...n,messages:new Map(n.messages)}),this.scheduleCache()}acceptAgentEvent(e,t){let n=typeof e.sessionId==`string`?e.sessionId:void 0;if(t!==void 0){if(!n||!Sr(t))return;if(this.pendingSync?.sessionId===n){let e=this.pendingSync.observed;this.pendingSync.observed=e?e===`mixed`||e.epoch!==t.epoch?`mixed`:{epoch:t.epoch,seq:Math.max(e.seq,t.seq)}:t;return}let r=this.cursors.get(n);if(r?.epoch===t.epoch&&t.seq<=r.seq)return;if(!r||t.epoch!==r.epoch||t.seq!==r.seq+1){n===this.subscribedId?(this.freshSessionId===n&&(this.freshSessionId=null),this.subscribe(n)):this.cursors.delete(n);return}let i=this.sessions.get(n);if(i&&this.truncatesBeforeCache(i,e)){this.cursors.delete(n),n===this.subscribedId&&this.subscribe(n);return}this.applyAgentEvent(e),this.cursors.set(n,t)}else n&&this.cursors.delete(n),this.applyAgentEvent(e);this.scheduleCache()}truncatesBeforeCache(e,t){return t.type===`messages-truncated`&&typeof t.length==`number`&&t.length>0&&(e.messages.size===0||Math.min(...e.messages.keys())>=t.length)}keepCachedMessages(e,t){if(t.messages.size>0)return t;let n=this.sessions.get(e);return!n||n.messages.size===0?t:{...t,messages:new Map(n.messages)}}applyAgentEvent(e){let t=e.sessionId,n=e.type;if(n===`worker-exited`){this.cursors.clear(),this.sessions=p(this.sessions);for(let[e,t]of this.sessions)this.events.onSession(e,{...t,messages:new Map(t.messages)});return}if(n===`snapshot`){let t=(e.sessions??[]).map(e=>e.sessionId??e.identity?.sessionId).filter(e=>typeof e==`string`);this.setSync(Dr(this.sync,this.subscribedId,t));for(let{id:t,view:n}of d(this.sessions,e)){let e=this.keepCachedMessages(t,n);this.cursors.delete(t),this.baselines.add(t),t===this.pendingSync?.sessionId&&(this.pendingSync=null,this.stopSyncRetry()),this.sessions.set(t,e),this.events.onSession(t,{...e,messages:new Map(e.messages)})}return}if(!t)return;let{view:r}=u(this.sessions.get(t)??c(),e);this.sessions.set(t,r),this.events.onSession(t,{...r,messages:new Map(r.messages)})}getSession(e){return this.sessions.get(e)}canSend(){return!this.closed&&!this.revoked&&(this.direct.transport()===`direct`||this.ws?.readyState===1)}send(e,t){if(this.canSend()){if((t?.bulk||Date.now()<this.relayOnlyUntil)&&this.ws?.readyState===1){this.sendViaRelay(e);return}this.sendQueue=this.sendQueue.then(async()=>{if(this.closed||this.revoked)return;let t=await this.replay.seal(this.contentKey,e);this.closed||this.revoked||this.overRelayLimit(t,e)||this.direct.send(t)||this.sendFrameViaRelay(t)}).catch(()=>{})}}overRelayLimit(e,t){return e.byteLength<=Mi?!1:(console.warn(`[pair] ${t.type} frame ${e.byteLength}B over relay limit, dropped`),this.events.onCommandRejected?.(t.type,`frame over relay limit`),!0)}sendFrameViaRelay(e){this.ws?.readyState===1&&this.ws.send(e.slice().buffer)}sendRelayProbe(){this.probeNonce=this.probeNonce+1>>>0,this.probeSentAt=Date.now(),this.sendViaRelay({type:`probe`,nonce:this.probeNonce})}sendViaRelay(e){this.sendQueue=this.sendQueue.then(async()=>{if(this.closed||this.revoked)return;let t=await this.replay.seal(this.contentKey,e);this.closed||this.revoked||this.overRelayLimit(t,e)||this.sendFrameViaRelay(t)}).catch(()=>{})}setSync(e){let t=e.state!==this.sync.state;this.sync=e,t&&this.events.onSync?.(e.state)}primeRoom(){this.closed||this.revoked||this.roomPrimed||this.ws?.readyState===1&&(this.roomPrimed=!0,this.send(this.desk?{type:`snapshot`,desk:!0}:{type:`snapshot`}),this.subscribedId&&this.subscribe(this.subscribedId))}subscribe(e,t){if(this.closed||this.revoked||(this.stopSyncRetry(),this.subscribedId=e,t?.fresh?this.freshSessionId=e:(e!==this.freshSessionId||e&&this.baselines.has(e))&&(this.freshSessionId=null),!this.cacheReady))return;let n=e!==null&&e===this.freshSessionId;if(this.pendingSync=e&&!n?{sessionId:e,requestId:crypto.randomUUID()}:null,this.historyPending.size>0){let e=[...this.historyPending];this.historyPending.clear();for(let t of e)this.events.onHistoryPending?.(t,!1)}if(this.setSync(Er(this.sync,e,{fresh:n})),!e){this.send({type:`subscribe`,sessionId:null});return}let r=this.sessions.get(e),i=this.baselines.has(e)&&r?r.messages.size?Math.max(...r.messages.keys()):-1:void 0;r&&(this.sessions.delete(e),this.sessions.set(e,r));let a={type:`subscribe`,sessionId:e,...this.pendingSync?{sync:{requestId:this.pendingSync.requestId,cursor:this.cursors.get(e)}}:typeof i==`number`?{sinceIndex:i}:{}};this.send(a),this.pendingSync&&this.armSyncRetry(a,this.pendingSync.requestId)}armSyncRetry(e,t){this.syncTimer=setTimeout(()=>{this.closed||this.revoked||this.pendingSync?.requestId!==t||(this.send(e),this.armSyncRetry(e,t))},1e4)}stopSyncRetry(){this.syncTimer&&clearTimeout(this.syncTimer),this.syncTimer=null}scheduleCache(){this.closed||this.revoked||(this.cacheDirty=!0,!this.cacheTimer&&(this.cacheTimer=setTimeout(()=>this.flushCache(),500)))}flushCache(){if(this.cacheTimer&&clearTimeout(this.cacheTimer),this.cacheTimer=null,!this.cacheReady||!this.cacheDirty||this.closed||this.revoked)return;this.cacheDirty=!1;let e=[...this.sessions].filter(([e])=>this.baselines.has(e)).map(([e,t])=>({id:e,view:t,cursor:this.cursors.get(e)}));this.cache.save(this.device.pairId,{...this.metadata,sessions:e}).catch(()=>{})}suspendReplaced(){this.replaced=!0,this.pendingDirectRestart=!1,this.stopSyncRetry(),this.timer&&clearTimeout(this.timer),this.timer=null,this.direct.close(),this.heartbeat?.stop(),this.heartbeat=null,this.flushCache(),this.events.onState(`replaced`)}revoke(){this.revoked=!0,this.pendingDirectRestart=!1,this.stopSyncRetry(),this.timer&&clearTimeout(this.timer),this.cacheTimer&&clearTimeout(this.cacheTimer),this.cacheTimer=null,this.direct.close(),this.heartbeat?.stop(),this.sessions.clear(),this.cursors.clear(),this.baselines.clear(),this.cache.clear(this.device.pairId).catch(()=>{}),this.events.onState(`unauthorized`)}hasOlder(e){let t=this.sessions.get(e);return!t||t.messages.size===0?!1:Math.min(...t.messages.keys())>0}requestHistory(e){if(this.pendingSync||this.subscribedId!==e||this.historyPending.has(e)||!this.hasOlder(e))return;let t=this.sessions.get(e);t&&(this.historyPending.add(e),this.events.onHistoryPending?.(e,!0),this.send({type:`history`,sessionId:e,beforeIndex:Math.min(...t.messages.keys())}))}};function Fi(e){if(e==null||!Number.isFinite(e)||e<0)return null;let t=Math.round(e);return t<1?`<1ms`:`${t}ms`}var Ii={connecting:`连接中…`,online:`已连接`,"host-offline":`桌面端离线`,unauthorized:`配对已失效`,replaced:`已在其他页面打开`,offline:`重连中…`};function Li(e,t){let n=e===`direct`?`直连`:`中继`,r=Fi(t);return r?`已连接 · ${n} · ${r}`:`已连接 · ${n}`}function Ri(e,t){if(e)try{let t=JSON.parse(e);return Array.isArray(t)?t:[]}catch{return[]}if(t)try{let e=JSON.parse(t);return e?.pairId?[{...e,label:zi([])}]:[]}catch{return[]}return[]}function zi(e){let t=new Set(e.map(e=>e.label));for(let e=1;;e++){let n=`电脑 ${e}`;if(!t.has(n))return n}}function Bi(e,t){return e.find(e=>e.pairId===t.pairId)?e.map(e=>e.pairId===t.pairId?{...t,label:e.label}:e):[...e,{...t,label:zi(e)}]}function Vi(e,t){return e.filter(e=>e.pairId!==t)}function Hi(e,t,n){let r=n.trim();return r?e.map(e=>e.pairId===t?{...e,label:r}:e):[...e]}function Ui(e,t){return e.find(e=>e.pairId===t)??e[0]??null}var Wi=`enso-phone-launch`,Gi=`/__open-session`,Ki=200,qi=/^[\w.:-]+$/;function Ji(e){if(typeof e!=`string`)return null;let t=e.trim();return!t||t.length>Ki||!qi.test(t)?null:t}function Yi(e){if(typeof e!=`string`||!e)return null;let t=e.startsWith(`?`)?e.slice(1):e;return Ji(new URLSearchParams(t).get(`session`))}async function Xi(e=typeof caches>`u`?void 0:caches){if(!e)return null;try{let t=await e.open(Wi),n=await t.match(Gi);return await t.delete(Gi),n?Ji(await n.text()):null}catch{return null}}var Zi=`enso-phone-mark`,Qi=`/__paired`,$i=()=>typeof caches>`u`?void 0:caches;async function ea(e=typeof navigator>`u`?void 0:navigator.storage){if(!e?.persist)return null;try{return await e.persisted?.()?!0:await e.persist()}catch{return null}}async function ta(e,t=$i()){if(t)try{if(!e){await t.delete(Zi);return}await(await t.open(Zi)).put(Qi,new Response(`1`))}catch{}}async function na(e=$i()){if(!e)return!1;try{return!!await(await e.open(Zi)).match(Qi)}catch{return!1}}function ra(e){return e.paired?null:e.marked?`这台手机上保存的配对信息不见了,可能被系统清理了存储。请在桌面端「设置 → 手机」重新生成配对码,再扫码配对。`:e.standalone?`如果之前配对过:iOS 可能清理了本地数据,需要重新扫码配对。`:null}var ia=`enso-phone-pairing`,aa=`enso-phone-devices`,oa=`enso-phone-active-device`,sa=`enso-phone-cursors`,ca=`enso-phone-last-session`,la=e=>`enso-phone-cursors:${e}`,ua=e=>`enso-phone-last-session:${e}`,da=e=>`enso-phone-last-bot-chat:${e}`;function fa(){let e=localStorage.getItem(ia),t=Ri(localStorage.getItem(aa),e);if(e&&t.length>0){pa(t),localStorage.removeItem(ia);let e=t[0].pairId,n=localStorage.getItem(sa);n&&(localStorage.setItem(la(e),n),localStorage.removeItem(sa));let r=localStorage.getItem(ca);r&&(localStorage.setItem(ua(e),r),localStorage.removeItem(ca)),localStorage.getItem(oa)||ha(e)}return t}function pa(e){localStorage.setItem(aa,JSON.stringify(e)),ta(e.length>0),e.length>0&&ea()}function ma(){return localStorage.getItem(oa)}function ha(e){e?localStorage.setItem(oa,e):localStorage.removeItem(oa)}function ga(e){hi.clear(e),S.remove?.(e).catch(()=>{}),localStorage.removeItem(la(e)),localStorage.removeItem(ua(e)),localStorage.removeItem(da(e))}function _a(e){return localStorage.getItem(ua(e))}function va(e,t){t?localStorage.setItem(ua(e),t):localStorage.removeItem(ua(e))}function ya(e,t=null){return{activeId:t??(e?_a(e):null),botChatId:!t&&e?Ji(localStorage.getItem(da(e))):null}}function ba(e,t){va(e,t.activeId),t.botChatId?localStorage.setItem(da(e),t.botChatId):localStorage.removeItem(da(e))}var xa={saveDevices:pa,saveActiveDeviceId:ha,clearDeviceData:ga,revoke:e=>In(e.relayUrl,e.pairId,e.token)};function Sa(e,t,n,r=xa){let i=e.find(e=>e.pairId===t),a=i?r.revoke(i).catch(()=>{}):Promise.resolve();r.clearDeviceData(t);let o=Vi(e,t);if(r.saveDevices(o),t!==n)return{devices:o,revoked:a};let s=Ui(o,null);return r.saveActiveDeviceId(s?.pairId??null),{devices:o,fallback:s,revoked:a}}function Ca(e,t,n,r=pa){let i=Hi(e,t,n);return r(i),i}var wa=`enso-phone-push`;function Ta(e){return e.matchMedia(`(display-mode: standalone)`).matches||e.navigator.standalone===!0}function Ea(){if(Ta(window))return!0;try{return window.top!=null&&window.top!==window&&Ta(window.top)}catch{return!1}}function Da(){return`serviceWorker`in navigator&&`PushManager`in window&&`Notification`in window}function Oa(){return Da()?`ok`:/iphone|ipad|ipod/i.test(navigator.userAgent)&&!Ea()?`needs-install`:`unsupported`}async function ka(){if(!(`serviceWorker`in navigator))return null;try{return await navigator.serviceWorker.register(`/sw.js`)}catch{return null}}function Aa(e){let t=e+`=`.repeat((4-e.length%4)%4),n=atob(t.replace(/-/g,`+`).replace(/_/g,`/`));return Uint8Array.from(n,e=>e.charCodeAt(0))}function ja(e){return e===`AbortError`?`service-unreachable`:e===`NotAllowedError`?`permission-denied`:`subscribe-failed`}async function Ma(e){if(!Da())return{ok:!1,reason:`unsupported`};if(await Notification.requestPermission()!==`granted`)return{ok:!1,reason:`permission-denied`};let t=await navigator.serviceWorker.ready;try{let n=(await t.pushManager.subscribe({userVisibleOnly:!0,applicationServerKey:Aa(e)})).toJSON();return!n.endpoint||!n.keys?.p256dh||!n.keys?.auth?{ok:!1,reason:`subscribe-failed`}:{ok:!0,subscription:{endpoint:n.endpoint,keys:{p256dh:n.keys.p256dh,auth:n.keys.auth}}}}catch(e){return{ok:!1,reason:ja(e instanceof Error?e.name:``)}}}async function Na(){if(`serviceWorker`in navigator)try{await(await(await navigator.serviceWorker.ready).pushManager.getSubscription())?.unsubscribe()}catch{}}function Pa(e){return{send:e,storage:localStorage,subscribe:Ma,unsubscribe:Na}}function Fa(e){e.storage.setItem(wa,`off`),e.send({type:`push-unsubscribe`}),e.unsubscribe()}function Ia(e,t){t.send({type:`push-subscribe`,subscription:e}),t.storage.setItem(wa,`on`)}async function La(e,t){let n=await t.subscribe(e);return n.ok&&Ia(n.subscription,t),n}var Ra={unsupported:`当前浏览器不支持推送。`,"permission-denied":`通知权限被拒绝,请在浏览器站点设置中允许后重试。`,"service-unreachable":`无法连接 Google 推送服务(FCM),请检查网络或代理后重试。`,"subscribe-failed":`订阅失败,请稍后重试。`};function za(e){let t=[];return e.busy&&t.push({text:`正在开启…`,error:!1}),e.error&&!e.busy&&t.push({text:Ra[e.error],error:!0}),e.availability===`ok`&&e.connected&&!e.configReady&&t.push({text:`需先升级桌面端 EnsoCode 才能开启推送。`,error:!1}),e.availability===`needs-install`&&t.push({text:`iOS 需先用分享菜单「添加到主屏幕」,从主屏幕打开后才能开启。`,error:!1}),e.availability===`unsupported`&&t.push({text:`当前浏览器不支持推送。`,error:!1}),t}var Ba=`enso-phone-ui-mode`,Va=`/?mode=phone`,Ha=`/?pair=desk`;function Ua(){let e=new URLSearchParams(window.location.search);if(e.get(`pair`)!==`desk`)return!1;e.delete(`pair`);let t=e.toString();return history.replaceState(null,``,`${window.location.pathname}${t?`?${t}`:``}`),!0}function Wa(){return localStorage.getItem(`enso-phone-ui-mode`)===`desk`?`desk`:`phone`}function Ga(e){localStorage.setItem(Ba,e)}function Ka(e){return`/desk?device=${encodeURIComponent(e)}`}function qa(e,t,n,r){if(t!==`desk`)return null;let i=new URLSearchParams(e);if(i.get(`mode`)===`phone`||i.get(`pair`)===`desk`)return null;let a=Ui(n,r);if(!a||a.scope===`read`)return null;let o=Ji(i.get(`session`)),s=new URLSearchParams({device:a.pairId});return o&&s.set(`session`,o),`/desk?${s}`}var Ja=`kb-open`;function Ya(e){return!e.editing||!(e.height>0)||Math.abs(e.scale-1)>.01||e.layoutHeight-e.height<120?null:{top:Math.max(0,Math.round(e.offsetTop)),height:Math.round(e.height)}}var Xa=/^(text|search|url|tel|email|password|number|date|datetime-local|month|time|week)$/i;function Za(e){let t=e.activeElement;for(let e=0;t&&t.tagName===`IFRAME`&&e<4;e++)try{t=t.contentDocument?.activeElement??null}catch{return!1}if(!t)return!1;if(t.tagName===`TEXTAREA`)return!t.readOnly;if(t.tagName===`INPUT`){let e=t;return Xa.test(e.type||`text`)&&!e.readOnly}return t.isContentEditable===!0}function Qa(e){try{return e.matchMedia(`(hover: none) and (pointer: coarse)`).matches}catch{return!1}}function $a(e){let t=e.visualViewport;if(!t||!Qa(e))return null;let n=e.document,r=n.documentElement,i=0,a=!1,o=()=>{i=0;let o=Ya({layoutHeight:e.innerHeight,height:t.height,offsetTop:t.offsetTop,scale:t.scale,editing:Za(n)});if(o){r.style.setProperty(`--kb-top`,`${o.top}px`),r.style.setProperty(`--kb-height`,`${o.height}px`),r.classList.add(Ja),a=!0;return}if(a){a=!1,r.classList.remove(Ja);for(let e of[`--kb-top`,`--kb-height`])r.style.removeProperty(e);(e.scrollY!==0||e.scrollX!==0)&&e.scrollTo(0,0)}},s=()=>{i||=e.requestAnimationFrame(o)};t.addEventListener(`resize`,s),t.addEventListener(`scroll`,s);let c=new WeakSet,l=t=>{if(c.has(t))return;c.add(t);let n=()=>{s(),e.setTimeout(s,300)};t.addEventListener(`focusin`,n,!0),t.addEventListener(`focusout`,n,!0)};return l(n),{watchDocument:l,sync:s}}var eo=`enso-shell`,to=5e3,no=18e5,ro=`enso-shell-reloaded`;function io(e){return!e.stale||e.alreadyReloaded?`none`:e.canReloadNow?`now`:`resume`}function ao(e){let t=e.querySelector(`meta[name="${eo}"]`)?.getAttribute(`content`);return t&&/^[0-9a-f]{8,64}$/.test(t)?t:null}function oo(e,t){return new Promise(n=>{let r=new MessageChannel,i=setTimeout(()=>{r.port1.close(),n(null)},to);r.port1.onmessage=e=>{clearTimeout(i),r.port1.close(),n(e.data??null)},e.postMessage({type:`shell-check`,version:t},[r.port2])})}function so(e){let t=ao(e.doc);if(!t)return;let n=e.now??Date.now,r=!1,i=n(),a=()=>{try{e.storage.setItem(ro,t)}catch{}e.reload()},o=async()=>{let n=e.container.controller;if(!n||r)return;let i=await oo(n,t),o=!1;try{o=e.storage.getItem(ro)===t}catch{}let s=io({stale:i?.stale===!0,alreadyReloaded:o,canReloadNow:e.canReloadNow()});s===`now`?a():s===`resume`&&(r=!0)};e.container.addEventListener(`message`,e=>{e.data?.type===`shell-ready`&&o()}),e.container.addEventListener(`controllerchange`,()=>void o()),e.doc.addEventListener(`visibilitychange`,()=>{if(e.doc.visibilityState===`visible`){if(r){a();return}n()-i<no||(i=n(),e.container.getRegistration().then(e=>e?.update()).catch(()=>{}))}}),o()}export{Gn as $,na as A,pe as At,Li as B,C as Bt,Sa as C,xe as Ct,ha as D,ye as Dt,ya as E,ke as Et,Ji as F,j as Ft,Ai as G,i as Gt,Oi as H,S as Ht,Xi as I,A as It,Zn as J,gi as K,Ui as L,N as Lt,ra as M,ce as Mt,ta as N,ae as Nt,pa as O,ve as Ot,Yi as P,B as Pt,qn as Q,Bi as R,T as Rt,Ca as S,Ee as St,fa as T,Te as Tt,ji as U,c as Ut,Pi as V,v as Vt,ki as W,s as Wt,Un as X,Xn as Y,Yn as Z,Ea as _,Ve as _t,Ka as a,Dt as at,Ma as b,ze as bt,Ga as c,ut as ct,Pa as d,tt as dt,Wn as et,za as f,$e as ft,Da as g,Le as gt,wa as h,Je as ht,Va as i,Ot as it,ea as j,ue as jt,ba as k,me as kt,Ua as l,dt as lt,La as m,qe as mt,$a as n,jn as nt,qa as o,Tt as ot,Fa as p,Ke as pt,_i as q,Ha as r,On as rt,Wa as s,bt as st,so as t,Fn as tt,Ia as u,gt as ut,Oa as v,He as vt,ma as w,Oe as wt,xa as x,Re as xt,ka as y,We as yt,Ii as z,D as zt};