@band-app/server 0.27.4 → 0.28.0

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 (196) hide show
  1. package/dist/client/assets/DockviewBrowserContainer-Cb5tND2-.js +5 -0
  2. package/dist/client/assets/DockviewTerminalContainer-DtC5tEpc.js +2 -0
  3. package/dist/client/assets/TerminalPanel-Dvediq7Q.js +1 -0
  4. package/dist/client/assets/{_basePickBy-Btg0Ntaw.js → _basePickBy-DqPTgiYW.js} +1 -1
  5. package/dist/client/assets/{_baseUniq-B2GV_Hf5.js → _baseUniq-eOMdENLf.js} +1 -1
  6. package/dist/client/assets/addon-fit-tyBwD3Sv.js +1 -0
  7. package/dist/client/assets/addon-search-DBOYg5r3.js +1 -0
  8. package/dist/client/assets/addon-web-links-loeDqaBY.js +1 -0
  9. package/dist/client/assets/addon-webgl-q3t2iERs.js +58 -0
  10. package/dist/client/assets/arc-E8N50wns.js +1 -0
  11. package/dist/client/assets/architectureDiagram-VXUJARFQ-CH9xQ4Zk.js +36 -0
  12. package/dist/client/assets/{blockDiagram-VD42YOAC-Dw3lYCHr.js → blockDiagram-VD42YOAC-DfOb0HUa.js} +4 -4
  13. package/dist/client/assets/{c4Diagram-YG6GDRKO-BpOln9Du.js → c4Diagram-YG6GDRKO-Bs2smElc.js} +3 -3
  14. package/dist/client/assets/channel-C10diLPc.js +1 -0
  15. package/dist/client/assets/chunk-4BX2VUAB-D5Leiw3K.js +1 -0
  16. package/dist/client/assets/chunk-55IACEB6-BffELVEe.js +1 -0
  17. package/dist/client/assets/{chunk-B4BG7PRW-B9hju1NK.js → chunk-B4BG7PRW-DAmo4-53.js} +4 -4
  18. package/dist/client/assets/{chunk-DI55MBZ5-b-n8melB.js → chunk-DI55MBZ5-Cmqa18mC.js} +3 -3
  19. package/dist/client/assets/{chunk-FMBD7UC4-DRoidbq6.js → chunk-FMBD7UC4-DkdelTF_.js} +1 -1
  20. package/dist/client/assets/chunk-QN33PNHL-B0MEtBwd.js +1 -0
  21. package/dist/client/assets/chunk-QZHKN3VN-DjnKSP2T.js +1 -0
  22. package/dist/client/assets/chunk-TZMSLE5B-MpeQnWpy.js +1 -0
  23. package/dist/client/assets/classDiagram-2ON5EDUG-Bv-ZmFze.js +1 -0
  24. package/dist/client/assets/classDiagram-v2-WZHVMYZB-Bv-ZmFze.js +1 -0
  25. package/dist/client/assets/clone-CnJtPTq2.js +1 -0
  26. package/dist/client/assets/cose-bilkent-S5V4N54A-pmD-JuJG.js +1 -0
  27. package/dist/client/assets/dagre-6UL2VRFP-3ThpdYzV.js +4 -0
  28. package/dist/client/assets/diagram-PSM6KHXK-DGAUrhJO.js +24 -0
  29. package/dist/client/assets/diagram-QEK2KX5R-CIlRM_FB.js +43 -0
  30. package/dist/client/assets/diagram-S2PKOQOG-CC6fDaBM.js +24 -0
  31. package/dist/client/assets/{erDiagram-Q2GNP2WA-CiuzmZz1.js → erDiagram-Q2GNP2WA-CvBFS94I.js} +2 -2
  32. package/dist/client/assets/{flowDiagram-NV44I4VS-DxQF1W83.js → flowDiagram-NV44I4VS-CYeCcso5.js} +5 -5
  33. package/dist/client/assets/{ganttDiagram-JELNMOA3-Dm7cmKmR.js → ganttDiagram-JELNMOA3-DJ5kU1c0.js} +4 -4
  34. package/dist/client/assets/gitGraphDiagram-V2S2FVAM-DAQ0jk-B.js +65 -0
  35. package/dist/client/assets/{graph-BZejjFqH.js → graph-BnATkwQq.js} +1 -1
  36. package/dist/client/assets/highlighted-body-B3W2YXNL-COns-xxb.js +1 -0
  37. package/dist/client/assets/{index-nEn84Vm9.js → index-0DJQdyWA.js} +1 -1
  38. package/dist/client/assets/{index-ClzJPf5l.js → index-9SJQZibH.js} +1 -1
  39. package/dist/client/assets/{index-D81JOsEG.js → index-Bgo7w7OZ.js} +2 -2
  40. package/dist/client/assets/{index--heKsN3p.js → index-Bzp5nisf.js} +1 -1
  41. package/dist/client/assets/{index-BdkKokX-.js → index-CGUMpGrc.js} +1 -1
  42. package/dist/client/assets/{index-B5nh8WuS.js → index-CLga7XYR.js} +1 -1
  43. package/dist/client/assets/{index-C0rwDVHE.js → index-CVF6F-lI.js} +1 -1
  44. package/dist/client/assets/{index-BMD6Ky9t.js → index-CZviQNQc.js} +1 -1
  45. package/dist/client/assets/{index-C8muVRUT.js → index-CaU7fX0l.js} +4 -4
  46. package/dist/client/assets/{index-Cx5pEj3C.js → index-Cr3Q8m6x.js} +1 -1
  47. package/dist/client/assets/{index-DtBaFGbX.js → index-CuhDrGcu.js} +1 -1
  48. package/dist/client/assets/{index-B1Jx2xEC.js → index-D0SneitA.js} +1 -1
  49. package/dist/client/assets/{index-Dvcpjz8a.js → index-D1DlocvQ.js} +1 -1
  50. package/dist/client/assets/{index-CW9_jjFD.js → index-DS4Cq8BR.js} +1 -1
  51. package/dist/client/assets/{index-mdzCLH0f.js → index-DTOxIri0.js} +1 -1
  52. package/dist/client/assets/{index-DtzcN-m6.js → index-G5rNv22E.js} +1 -1
  53. package/dist/client/assets/{index-CcVuC4h-.js → index-QZEUQnMo.js} +1 -1
  54. package/dist/client/assets/{index-DOHlCVr_.js → index-wtNf4fSu.js} +1 -1
  55. package/dist/client/assets/infoDiagram-HS3SLOUP-BZpLk1S6.js +2 -0
  56. package/dist/client/assets/{journeyDiagram-XKPGCS4Q-rDeWvkhC.js → journeyDiagram-XKPGCS4Q-B2dN7Ihx.js} +3 -3
  57. package/dist/client/assets/{kanban-definition-3W4ZIXB7-PJt3UAGc.js → kanban-definition-3W4ZIXB7-CvAH-1eK.js} +5 -5
  58. package/dist/client/assets/{layout-CIKiAqkG.js → layout-DsmnOA8K.js} +1 -1
  59. package/dist/client/assets/{main-A2y9S0uq.js → main-B5xivRU0.js} +238 -238
  60. package/dist/client/assets/{mindmap-definition-VGOIOE7T-2b0Z8-ga.js → mindmap-definition-VGOIOE7T-DrUOg0ee.js} +2 -2
  61. package/dist/client/assets/pieDiagram-ADFJNKIX-CIffU8Mf.js +30 -0
  62. package/dist/client/assets/{quadrantDiagram-AYHSOK5B-BIdvm6ll.js → quadrantDiagram-AYHSOK5B-nqfaxOli.js} +1 -1
  63. package/dist/client/assets/{requirementDiagram-UZGBJVZJ-LMbwF5vH.js → requirementDiagram-UZGBJVZJ-C-VpgYm3.js} +4 -4
  64. package/dist/client/assets/sankeyDiagram-TZEHDZUN-CyZt6DYw.js +10 -0
  65. package/dist/client/assets/{sequenceDiagram-WL72ISMW-CZrgD4vh.js → sequenceDiagram-WL72ISMW-9ociS4Pd.js} +1 -1
  66. package/dist/client/assets/{square-terminal-C3AaLg8H.js → square-terminal-CC59OwZb.js} +1 -1
  67. package/dist/client/assets/stateDiagram-FKZM4ZOC-CSSR_If4.js +1 -0
  68. package/dist/client/assets/stateDiagram-v2-4FDKWEC3-CJXOhQoa.js +1 -0
  69. package/dist/client/assets/{timeline-definition-IT6M3QCI-BuWGAmTr.js → timeline-definition-IT6M3QCI-BW0qFg7u.js} +4 -4
  70. package/dist/client/assets/{treemap-GDKQZRPO-DIoPULXN.js → treemap-GDKQZRPO-QXaG9pez.js} +1 -1
  71. package/dist/client/assets/workspace._workspaceId-BXQv6AEi.js +2 -0
  72. package/dist/client/assets/{workspace._workspaceId-Cy3X-zjS.js → workspace._workspaceId-E9OgN9_r.js} +1 -1
  73. package/dist/client/assets/xterm-CPJFL3h0.js +10 -0
  74. package/dist/client/assets/{xychartDiagram-PRI3JC2R-CqYHwZJ-.js → xychartDiagram-PRI3JC2R-Le0haBOn.js} +4 -4
  75. package/dist/openapi.json +93 -0
  76. package/dist/server/assets/{DockviewBrowserContainer-DBXFi4ZT.js → DockviewBrowserContainer-CsuCLGPB.js} +43 -9
  77. package/dist/server/assets/{DockviewTerminalContainer-B87sNBox.js → DockviewTerminalContainer-CwIvdmWg.js} +80 -24
  78. package/dist/server/assets/{TerminalPanel-slIH-vAP.js → TerminalPanel-BjFzYnwv.js} +1 -1
  79. package/dist/server/assets/{_basePickBy-EwjLQZsD.js → _basePickBy-Dt032XZR.js} +2 -2
  80. package/dist/server/assets/{_baseUniq-CPr0DmQd.js → _baseUniq-Dx805qgm.js} +1 -1
  81. package/dist/server/assets/{_tanstack-start-manifest_v-CkglZUQZ.js → _tanstack-start-manifest_v-COQlJMnu.js} +1 -1
  82. package/dist/server/assets/addon-fit-CEa6tvg4.js +27 -0
  83. package/dist/server/assets/addon-search-WCacnXal.js +497 -0
  84. package/dist/server/assets/addon-web-links-Dxbauyv9.js +100 -0
  85. package/dist/server/assets/{addon-webgl-BeO2q2vc.js → addon-webgl-hypMW_go.js} +735 -699
  86. package/dist/server/assets/{arc-6cH5wbXI.js → arc-CtEQz2uN.js} +1 -1
  87. package/dist/server/assets/{architecture-7HQA4BMR-rX92rzjM.js → architecture-7HQA4BMR-Em_GxwB3.js} +6 -6
  88. package/dist/server/assets/{architectureDiagram-VXUJARFQ-Se4TzoDa.js → architectureDiagram-VXUJARFQ-DWQK_mjx.js} +6 -6
  89. package/dist/server/assets/{blockDiagram-VD42YOAC-j83tbVbT.js → blockDiagram-VD42YOAC-qNKSSOiA.js} +6 -6
  90. package/dist/server/assets/{c4Diagram-YG6GDRKO-C3jkSdD9.js → c4Diagram-YG6GDRKO-icsTEY_q.js} +2 -2
  91. package/dist/server/assets/{channel-xCK3ppSA.js → channel-CocZU9PS.js} +1 -1
  92. package/dist/server/assets/{chunk-4BX2VUAB-mBJYpROK.js → chunk-4BX2VUAB-u5sgcVwr.js} +1 -1
  93. package/dist/server/assets/{chunk-55IACEB6-Bn8_i7Vv.js → chunk-55IACEB6-BNdWb1PT.js} +1 -1
  94. package/dist/server/assets/{chunk-B4BG7PRW-P87TRpGP.js → chunk-B4BG7PRW-CZXmp53w.js} +4 -4
  95. package/dist/server/assets/{chunk-DI55MBZ5-Cw8SgOR-.js → chunk-DI55MBZ5-CMkUZy-j.js} +3 -3
  96. package/dist/server/assets/{chunk-FMBD7UC4-Cqn0lkSY.js → chunk-FMBD7UC4-CX48tx4f.js} +1 -1
  97. package/dist/server/assets/{chunk-QN33PNHL-CRrt2Hpg.js → chunk-QN33PNHL-CFUvYjPQ.js} +1 -1
  98. package/dist/server/assets/{chunk-QZHKN3VN-DMPoLH90.js → chunk-QZHKN3VN-gxKoQKS6.js} +1 -1
  99. package/dist/server/assets/{chunk-TZMSLE5B-DD6pS_TC.js → chunk-TZMSLE5B-BpSwHKhJ.js} +1 -1
  100. package/dist/server/assets/{classDiagram-2ON5EDUG-B70hdwjK.js → classDiagram-2ON5EDUG-l6b9Vcgx.js} +5 -5
  101. package/dist/server/assets/{classDiagram-v2-WZHVMYZB-B70hdwjK.js → classDiagram-v2-WZHVMYZB-l6b9Vcgx.js} +5 -5
  102. package/dist/server/assets/{clone-zMg_vz1l.js → clone-ad8kNo9I.js} +1 -1
  103. package/dist/server/assets/{cose-bilkent-S5V4N54A-C78B1ORz.js → cose-bilkent-S5V4N54A-BLGSoiwZ.js} +1 -1
  104. package/dist/server/assets/{dagre-6UL2VRFP-gU04QoSw.js → dagre-6UL2VRFP-KhR_sqmC.js} +6 -6
  105. package/dist/server/assets/{diagram-PSM6KHXK-o17lkoPU.js → diagram-PSM6KHXK-BbLKP0jy.js} +7 -7
  106. package/dist/server/assets/{diagram-QEK2KX5R-1sOyiIeW.js → diagram-QEK2KX5R-D7l4SdBN.js} +6 -6
  107. package/dist/server/assets/{diagram-S2PKOQOG-DMjsbO_u.js → diagram-S2PKOQOG-DwDdbVOq.js} +6 -6
  108. package/dist/server/assets/{erDiagram-Q2GNP2WA-C0uoxJfP.js → erDiagram-Q2GNP2WA-DkXzXPzQ.js} +4 -4
  109. package/dist/server/assets/{flowDiagram-NV44I4VS-FcBuhx49.js → flowDiagram-NV44I4VS-D9vm5Eu1.js} +5 -5
  110. package/dist/server/assets/{ganttDiagram-JELNMOA3-BJLM__sZ.js → ganttDiagram-JELNMOA3-D_pyvt8v.js} +1 -1
  111. package/dist/server/assets/{gitGraph-G5XIXVHT-QetYC_l4.js → gitGraph-G5XIXVHT-BUeux-e2.js} +6 -6
  112. package/dist/server/assets/{gitGraphDiagram-V2S2FVAM-DgGB0zLV.js → gitGraphDiagram-V2S2FVAM-BeazZ91W.js} +7 -7
  113. package/dist/server/assets/{graph-D-WCyHpT.js → graph-CNGnnvQ_.js} +2 -2
  114. package/dist/server/assets/{highlighted-body-B3W2YXNL-Ds7zEs0y.js → highlighted-body-B3W2YXNL-Cc0SDXhd.js} +1 -1
  115. package/dist/server/assets/{index-CZCksM4t.js → index-0fJ_ht8W.js} +5 -5
  116. package/dist/server/assets/{index-CR9tIh-1.js → index-B5ct-RrF.js} +3 -3
  117. package/dist/server/assets/{index-Cwemo6S-.js → index-BEy93LTg.js} +2 -2
  118. package/dist/server/assets/{index-B7HlWFDb.js → index-BMO-2AGB.js} +2 -2
  119. package/dist/server/assets/{index-BM8TQu5I.js → index-BV_chIS-.js} +2 -2
  120. package/dist/server/assets/{index-BdrLgWO5.js → index-BgBwz0y4.js} +5 -5
  121. package/dist/server/assets/{index-DZmRRECf.js → index-BoKSafJT.js} +2 -2
  122. package/dist/server/assets/{index-BxYuwM7Q.js → index-CkzI8Z2i.js} +4 -4
  123. package/dist/server/assets/{index-Buq7_809.js → index-D0hk8yWG.js} +2 -2
  124. package/dist/server/assets/{index-CDFvULyA.js → index-D1ues4u1.js} +2 -2
  125. package/dist/server/assets/{index-DbLhvHra.js → index-D4zK5A96.js} +2 -2
  126. package/dist/server/assets/{index-DDznQd6m.js → index-D8vXPgYO.js} +1 -1
  127. package/dist/server/assets/{index-7uNi8Nrl.js → index-DGBvKhbT.js} +2 -2
  128. package/dist/server/assets/{index-Kg2aIzUf.js → index-D_5qEFDP.js} +2 -2
  129. package/dist/server/assets/{index-DDfQmURW.js → index-Dyyual9d.js} +1 -1
  130. package/dist/server/assets/{index-Cp92kaYL.js → index-iV3_VO0S.js} +2 -2
  131. package/dist/server/assets/{index-De_YRKmd.js → index-k3jLtfXd.js} +2 -2
  132. package/dist/server/assets/{index-DLkj4gSq.js → index-p3KDRiXO.js} +3 -3
  133. package/dist/server/assets/{info-VBDWY6EO-Bcrf3kF4.js → info-VBDWY6EO-DCHnh1Lh.js} +6 -6
  134. package/dist/server/assets/{infoDiagram-HS3SLOUP-CF3lD8Hj.js → infoDiagram-HS3SLOUP-3Bf96R5j.js} +5 -5
  135. package/dist/server/assets/{journeyDiagram-XKPGCS4Q-BzSKw8p3.js → journeyDiagram-XKPGCS4Q-C3jpsK2W.js} +4 -4
  136. package/dist/server/assets/{kanban-definition-3W4ZIXB7-B6umSvfu.js → kanban-definition-3W4ZIXB7-SuhPOhJT.js} +2 -2
  137. package/dist/server/assets/{layout-fAuDTPgv.js → layout-DiEprgI3.js} +4 -4
  138. package/dist/server/assets/{mermaid-3ZIDBTTL-BoR5kuvd.js → mermaid-3ZIDBTTL-BaIs0Q9V.js} +1 -1
  139. package/dist/server/assets/{mermaid-parser.core-Cut93mp_.js → mermaid-parser.core-BsHNgayW.js} +11 -11
  140. package/dist/server/assets/{mindmap-definition-VGOIOE7T-DD9Mnxbe.js → mindmap-definition-VGOIOE7T-ClSZ0Bi7.js} +3 -3
  141. package/dist/server/assets/{packet-DYOGHKS2-DF7A6Gs6.js → packet-DYOGHKS2-BbcJFbJg.js} +6 -6
  142. package/dist/server/assets/{pie-VRWISCQL-CxMPdvHD.js → pie-VRWISCQL-BwpS1WtZ.js} +6 -6
  143. package/dist/server/assets/{pieDiagram-ADFJNKIX-Cj9IhzpK.js → pieDiagram-ADFJNKIX-Bdy6QbT2.js} +7 -7
  144. package/dist/server/assets/{quadrantDiagram-AYHSOK5B-Ca_Km6NW.js → quadrantDiagram-AYHSOK5B-Bm3BURCs.js} +1 -1
  145. package/dist/server/assets/{radar-ZZBFDIW7-D2hQM1RJ.js → radar-ZZBFDIW7-DpsN-_Uw.js} +6 -6
  146. package/dist/server/assets/{requirementDiagram-UZGBJVZJ-B10NUcDP.js → requirementDiagram-UZGBJVZJ-C7da6xUV.js} +3 -3
  147. package/dist/server/assets/{router-C9NidQ-X.js → router-BB0zbB3W.js} +602 -369
  148. package/dist/server/assets/{sankeyDiagram-TZEHDZUN-SqO2OCDE.js → sankeyDiagram-TZEHDZUN-euY8OssP.js} +1 -1
  149. package/dist/server/assets/{sequenceDiagram-WL72ISMW-66w3Fu7P.js → sequenceDiagram-WL72ISMW-DSSV8Brd.js} +3 -3
  150. package/dist/server/assets/{square-terminal-BERa2HOH.js → square-terminal-CrO-90-i.js} +1 -1
  151. package/dist/server/assets/{stateDiagram-FKZM4ZOC-BF13jpOR.js → stateDiagram-FKZM4ZOC-Bl-9xbtT.js} +8 -8
  152. package/dist/server/assets/{stateDiagram-v2-4FDKWEC3-CLzluOcO.js → stateDiagram-v2-4FDKWEC3-CRIfvOmK.js} +4 -4
  153. package/dist/server/assets/{timeline-definition-IT6M3QCI-DqUaZhgR.js → timeline-definition-IT6M3QCI-f-Qf6njy.js} +2 -2
  154. package/dist/server/assets/{treemap-GDKQZRPO-BW22XUV_.js → treemap-GDKQZRPO-xMnqR8Mm.js} +6 -6
  155. package/dist/server/assets/{workspace._workspaceId-cPTD7fRv.js → workspace._workspaceId-5E7ua_uc.js} +10 -172
  156. package/dist/server/assets/{workspace._workspaceId-B89sPs9R.js → workspace._workspaceId-CUau0op7.js} +1 -1
  157. package/dist/server/assets/{xterm-CkV9CBvP.js → xterm-DnMRSOdQ.js} +1408 -1146
  158. package/dist/server/assets/{xychartDiagram-PRI3JC2R-B_WTbxnm.js → xychartDiagram-PRI3JC2R-Dgosu8mP.js} +1 -1
  159. package/dist/server/server.js +2 -2
  160. package/dist/start-server.mjs +2998 -3175
  161. package/package.json +11 -11
  162. package/dist/client/assets/DockviewBrowserContainer-mvuAwY4h.js +0 -5
  163. package/dist/client/assets/DockviewTerminalContainer-CUUAUFvN.js +0 -2
  164. package/dist/client/assets/TerminalPanel-BBDvMgy7.js +0 -1
  165. package/dist/client/assets/addon-fit-DX4qG4td.js +0 -1
  166. package/dist/client/assets/addon-search-DCE88ROn.js +0 -7
  167. package/dist/client/assets/addon-web-links-DIbG5aQx.js +0 -1
  168. package/dist/client/assets/addon-webgl-CeRvQWkA.js +0 -58
  169. package/dist/client/assets/arc-PpfYc_H-.js +0 -1
  170. package/dist/client/assets/architectureDiagram-VXUJARFQ-DE33L-Hl.js +0 -36
  171. package/dist/client/assets/channel-CiWCy-7I.js +0 -1
  172. package/dist/client/assets/chunk-4BX2VUAB-163fO-VG.js +0 -1
  173. package/dist/client/assets/chunk-55IACEB6-BefnGxDM.js +0 -1
  174. package/dist/client/assets/chunk-QN33PNHL-DIrEoxY0.js +0 -1
  175. package/dist/client/assets/chunk-QZHKN3VN-BGU8y1df.js +0 -1
  176. package/dist/client/assets/chunk-TZMSLE5B-CvsjgTKG.js +0 -1
  177. package/dist/client/assets/classDiagram-2ON5EDUG-F3Chl8ZA.js +0 -1
  178. package/dist/client/assets/classDiagram-v2-WZHVMYZB-F3Chl8ZA.js +0 -1
  179. package/dist/client/assets/clone-B5sqYMX3.js +0 -1
  180. package/dist/client/assets/cose-bilkent-S5V4N54A-Cqqh9De5.js +0 -1
  181. package/dist/client/assets/dagre-6UL2VRFP-pFCuEbbh.js +0 -4
  182. package/dist/client/assets/diagram-PSM6KHXK-TCbWRn_3.js +0 -24
  183. package/dist/client/assets/diagram-QEK2KX5R-B51OGawo.js +0 -43
  184. package/dist/client/assets/diagram-S2PKOQOG-B8uiRD1J.js +0 -24
  185. package/dist/client/assets/gitGraphDiagram-V2S2FVAM-DdO2qY5D.js +0 -65
  186. package/dist/client/assets/highlighted-body-B3W2YXNL-CHKg8AwH.js +0 -1
  187. package/dist/client/assets/infoDiagram-HS3SLOUP-bpQppOpd.js +0 -2
  188. package/dist/client/assets/pieDiagram-ADFJNKIX-C-J7BPrS.js +0 -30
  189. package/dist/client/assets/sankeyDiagram-TZEHDZUN-C63US9CW.js +0 -10
  190. package/dist/client/assets/stateDiagram-FKZM4ZOC-DWWAKoPM.js +0 -1
  191. package/dist/client/assets/stateDiagram-v2-4FDKWEC3-BFmVJPwi.js +0 -1
  192. package/dist/client/assets/workspace._workspaceId-DVzqfFiH.js +0 -2
  193. package/dist/client/assets/xterm-iwIWEtGc.js +0 -10
  194. package/dist/server/assets/addon-fit-D89xfLfG.js +0 -23
  195. package/dist/server/assets/addon-search-BS53_-cp.js +0 -1247
  196. package/dist/server/assets/addon-web-links-CzLDtFWc.js +0 -100
@@ -1,1247 +0,0 @@
1
- var Re = class {
2
- constructor() {
3
- this.listeners = [], this.unexpectedErrorHandler = function(e) {
4
- setTimeout(() => {
5
- throw e.stack ? ae.isErrorNoTelemetry(e) ? new ae(e.message + `
6
-
7
- ` + e.stack) : new Error(e.message + `
8
-
9
- ` + e.stack) : e;
10
- }, 0);
11
- };
12
- }
13
- addListener(e) {
14
- return this.listeners.push(e), () => {
15
- this._removeListener(e);
16
- };
17
- }
18
- emit(e) {
19
- this.listeners.forEach((t) => {
20
- t(e);
21
- });
22
- }
23
- _removeListener(e) {
24
- this.listeners.splice(this.listeners.indexOf(e), 1);
25
- }
26
- setUnexpectedErrorHandler(e) {
27
- this.unexpectedErrorHandler = e;
28
- }
29
- getUnexpectedErrorHandler() {
30
- return this.unexpectedErrorHandler;
31
- }
32
- onUnexpectedError(e) {
33
- this.unexpectedErrorHandler(e), this.emit(e);
34
- }
35
- onUnexpectedExternalError(e) {
36
- this.unexpectedErrorHandler(e);
37
- }
38
- }, pt = new Re();
39
- function le(r4) {
40
- ft(r4) || pt.onUnexpectedError(r4);
41
- }
42
- var Ce = "Canceled";
43
- function ft(r4) {
44
- return r4 instanceof ee ? true : r4 instanceof Error && r4.name === Ce && r4.message === Ce;
45
- }
46
- var ee = class extends Error {
47
- constructor() {
48
- super(Ce), this.name = this.message;
49
- }
50
- };
51
- var ae = class r extends Error {
52
- constructor(e) {
53
- super(e), this.name = "CodeExpectedError";
54
- }
55
- static fromError(e) {
56
- if (e instanceof r) return e;
57
- let t = new r();
58
- return t.message = e.message, t.stack = e.stack, t;
59
- }
60
- static isErrorNoTelemetry(e) {
61
- return e.name === "CodeExpectedError";
62
- }
63
- };
64
- var Qe;
65
- ((h) => {
66
- function r4(u) {
67
- return u < 0;
68
- }
69
- h.isLessThan = r4;
70
- function e(u) {
71
- return u <= 0;
72
- }
73
- h.isLessThanOrEqual = e;
74
- function t(u) {
75
- return u > 0;
76
- }
77
- h.isGreaterThan = t;
78
- function n(u) {
79
- return u === 0;
80
- }
81
- h.isNeitherLessOrGreaterThan = n, h.greaterThan = 1, h.lessThan = -1, h.neitherLessOrGreaterThan = 0;
82
- })(Qe ||= {});
83
- function Pe(r4, e) {
84
- let t = this, n = false, i;
85
- return function() {
86
- if (n) return i;
87
- if (n = true, e) ;
88
- else i = r4.apply(t, arguments);
89
- return i;
90
- };
91
- }
92
- var Le;
93
- ((z) => {
94
- function r4(m) {
95
- return m && typeof m == "object" && typeof m[Symbol.iterator] == "function";
96
- }
97
- z.is = r4;
98
- let e = Object.freeze([]);
99
- function t() {
100
- return e;
101
- }
102
- z.empty = t;
103
- function* n(m) {
104
- yield m;
105
- }
106
- z.single = n;
107
- function i(m) {
108
- return r4(m) ? m : n(m);
109
- }
110
- z.wrap = i;
111
- function s(m) {
112
- return m || e;
113
- }
114
- z.from = s;
115
- function* a(m) {
116
- for (let _ = m.length - 1; _ >= 0; _--) yield m[_];
117
- }
118
- z.reverse = a;
119
- function h(m) {
120
- return !m || m[Symbol.iterator]().next().done === true;
121
- }
122
- z.isEmpty = h;
123
- function u(m) {
124
- return m[Symbol.iterator]().next().value;
125
- }
126
- z.first = u;
127
- function p(m, _) {
128
- let y = 0;
129
- for (let L of m) if (_(L, y++)) return true;
130
- return false;
131
- }
132
- z.some = p;
133
- function T(m, _) {
134
- for (let y of m) if (_(y)) return y;
135
- }
136
- z.find = T;
137
- function* v(m, _) {
138
- for (let y of m) _(y) && (yield y);
139
- }
140
- z.filter = v;
141
- function* I(m, _) {
142
- let y = 0;
143
- for (let L of m) yield _(L, y++);
144
- }
145
- z.map = I;
146
- function* E(m, _) {
147
- let y = 0;
148
- for (let L of m) yield* _(L, y++);
149
- }
150
- z.flatMap = E;
151
- function* S(...m) {
152
- for (let _ of m) yield* _;
153
- }
154
- z.concat = S;
155
- function D(m, _, y) {
156
- let L = y;
157
- for (let X of m) L = _(L, X);
158
- return L;
159
- }
160
- z.reduce = D;
161
- function* x(m, _, y = m.length) {
162
- for (_ < 0 && (_ += m.length), y < 0 ? y += m.length : y > m.length && (y = m.length); _ < y; _++) yield m[_];
163
- }
164
- z.slice = x;
165
- function J(m, _ = Number.POSITIVE_INFINITY) {
166
- let y = [];
167
- if (_ === 0) return [y, m];
168
- let L = m[Symbol.iterator]();
169
- for (let X = 0; X < _; X++) {
170
- let Se = L.next();
171
- if (Se.done) return [y, z.empty()];
172
- y.push(Se.value);
173
- }
174
- return [y, { [Symbol.iterator]() {
175
- return L;
176
- } }];
177
- }
178
- z.consume = J;
179
- async function q(m) {
180
- let _ = [];
181
- for await (let y of m) _.push(y);
182
- return Promise.resolve(_);
183
- }
184
- z.asyncToArray = q;
185
- })(Le ||= {});
186
- function pe(r4) {
187
- return r4;
188
- }
189
- function te(r4, e) {
190
- }
191
- function Q(r4) {
192
- if (Le.is(r4)) {
193
- let e = [];
194
- for (let t of r4) if (t) try {
195
- t.dispose();
196
- } catch (n) {
197
- e.push(n);
198
- }
199
- if (e.length === 1) throw e[0];
200
- if (e.length > 1) throw new AggregateError(e, "Encountered errors while disposing of store");
201
- return Array.isArray(r4) ? [] : r4;
202
- } else if (r4) return r4.dispose(), r4;
203
- }
204
- function me(...r4) {
205
- let e = A(() => Q(r4));
206
- return e;
207
- }
208
- function A(r4) {
209
- let e = pe({ dispose: Pe(() => {
210
- r4();
211
- }) });
212
- return e;
213
- }
214
- var he = class he2 {
215
- constructor() {
216
- this._toDispose = /* @__PURE__ */ new Set();
217
- this._isDisposed = false;
218
- }
219
- dispose() {
220
- this._isDisposed || (this._isDisposed = true, this.clear());
221
- }
222
- get isDisposed() {
223
- return this._isDisposed;
224
- }
225
- clear() {
226
- if (this._toDispose.size !== 0) try {
227
- Q(this._toDispose);
228
- } finally {
229
- this._toDispose.clear();
230
- }
231
- }
232
- add(e) {
233
- if (!e) return e;
234
- if (e === this) throw new Error("Cannot register a disposable on itself!");
235
- return this._isDisposed ? he2.DISABLE_DISPOSED_WARNING || console.warn(new Error("Trying to add a disposable to a DisposableStore that has already been disposed of. The added object will be leaked!").stack) : this._toDispose.add(e), e;
236
- }
237
- delete(e) {
238
- if (e) {
239
- if (e === this) throw new Error("Cannot dispose a disposable on itself!");
240
- this._toDispose.delete(e), e.dispose();
241
- }
242
- }
243
- deleteAndLeak(e) {
244
- e && this._toDispose.has(e) && (this._toDispose.delete(e), te());
245
- }
246
- };
247
- he.DISABLE_DISPOSED_WARNING = false;
248
- var H = he, k = class {
249
- constructor() {
250
- this._store = new H();
251
- te(this._store);
252
- }
253
- dispose() {
254
- this._store.dispose();
255
- }
256
- _register(e) {
257
- if (e === this) throw new Error("Cannot register a disposable on itself!");
258
- return this._store.add(e);
259
- }
260
- };
261
- k.None = Object.freeze({ dispose() {
262
- } });
263
- var F = class {
264
- constructor() {
265
- this._isDisposed = false;
266
- }
267
- get value() {
268
- return this._isDisposed ? void 0 : this._value;
269
- }
270
- set value(e) {
271
- this._isDisposed || e === this._value || (this._value?.dispose(), this._value = e);
272
- }
273
- clear() {
274
- this.value = void 0;
275
- }
276
- dispose() {
277
- this._isDisposed = true, this._value?.dispose(), this._value = void 0;
278
- }
279
- clearAndLeak() {
280
- let e = this._value;
281
- return this._value = void 0, e;
282
- }
283
- };
284
- var _t = globalThis.performance && typeof globalThis.performance.now == "function", Te = class r2 {
285
- static create(e) {
286
- return new r2(e);
287
- }
288
- constructor(e) {
289
- this._now = _t && e === false ? Date.now : globalThis.performance.now.bind(globalThis.performance), this._startTime = this._now(), this._stopTime = -1;
290
- }
291
- stop() {
292
- this._stopTime = this._now();
293
- }
294
- reset() {
295
- this._startTime = this._now(), this._stopTime = -1;
296
- }
297
- elapsed() {
298
- return this._stopTime !== -1 ? this._stopTime - this._startTime : this._now() - this._startTime;
299
- }
300
- };
301
- var ie;
302
- ((re) => {
303
- re.None = () => k.None;
304
- function t(d, o) {
305
- return I(d, () => {
306
- }, 0, void 0, true, void 0, o);
307
- }
308
- re.defer = t;
309
- function n(d) {
310
- return (o, c = null, l) => {
311
- let f = false, b;
312
- return b = d((g) => {
313
- if (!f) return b ? b.dispose() : f = true, o.call(c, g);
314
- }, null, l), f && b.dispose(), b;
315
- };
316
- }
317
- re.once = n;
318
- function i(d, o, c) {
319
- return T((l, f = null, b) => d((g) => l.call(f, o(g)), null, b), c);
320
- }
321
- re.map = i;
322
- function s(d, o, c) {
323
- return T((l, f = null, b) => d((g) => {
324
- o(g), l.call(f, g);
325
- }, null, b), c);
326
- }
327
- re.forEach = s;
328
- function a(d, o, c) {
329
- return T((l, f = null, b) => d((g) => o(g) && l.call(f, g), null, b), c);
330
- }
331
- re.filter = a;
332
- function h(d) {
333
- return d;
334
- }
335
- re.signal = h;
336
- function u(...d) {
337
- return (o, c = null, l) => {
338
- let f = me(...d.map((b) => b((g) => o.call(c, g))));
339
- return v(f, l);
340
- };
341
- }
342
- re.any = u;
343
- function p(d, o, c, l) {
344
- let f = c;
345
- return i(d, (b) => (f = o(f, b), f), l);
346
- }
347
- re.reduce = p;
348
- function T(d, o) {
349
- let c, l = { onWillAddFirstListener() {
350
- c = d(f.fire, f);
351
- }, onDidRemoveLastListener() {
352
- c?.dispose();
353
- } };
354
- let f = new C(l);
355
- return o?.add(f), f.event;
356
- }
357
- function v(d, o) {
358
- return o instanceof Array ? o.push(d) : o && o.add(d), d;
359
- }
360
- function I(d, o, c = 100, l = false, f = false, b, g) {
361
- let w, R, U, se = 0, Z, Ve = { leakWarningThreshold: b, onWillAddFirstListener() {
362
- w = d((dt) => {
363
- se++, R = o(R, dt), l && !U && (oe.fire(R), R = void 0), Z = () => {
364
- let ht = R;
365
- R = void 0, U = void 0, (!l || se > 1) && oe.fire(ht), se = 0;
366
- }, typeof c == "number" ? (clearTimeout(U), U = setTimeout(Z, c)) : U === void 0 && (U = 0, queueMicrotask(Z));
367
- });
368
- }, onWillRemoveListener() {
369
- f && se > 0 && Z?.();
370
- }, onDidRemoveLastListener() {
371
- Z = void 0, w.dispose();
372
- } };
373
- let oe = new C(Ve);
374
- return g?.add(oe), oe.event;
375
- }
376
- re.debounce = I;
377
- function E(d, o = 0, c) {
378
- return re.debounce(d, (l, f) => l ? (l.push(f), l) : [f], o, void 0, true, void 0, c);
379
- }
380
- re.accumulate = E;
381
- function S(d, o = (l, f) => l === f, c) {
382
- let l = true, f;
383
- return a(d, (b) => {
384
- let g = l || !o(b, f);
385
- return l = false, f = b, g;
386
- }, c);
387
- }
388
- re.latch = S;
389
- function D(d, o, c) {
390
- return [re.filter(d, o, c), re.filter(d, (l) => !o(l), c)];
391
- }
392
- re.split = D;
393
- function x(d, o = false, c = [], l) {
394
- let f = c.slice(), b = d((R) => {
395
- f ? f.push(R) : w.fire(R);
396
- });
397
- l && l.add(b);
398
- let g = () => {
399
- f?.forEach((R) => w.fire(R)), f = null;
400
- }, w = new C({ onWillAddFirstListener() {
401
- b || (b = d((R) => w.fire(R)), l && l.add(b));
402
- }, onDidAddFirstListener() {
403
- f && (o ? setTimeout(g) : g());
404
- }, onDidRemoveLastListener() {
405
- b && b.dispose(), b = null;
406
- } });
407
- return l && l.add(w), w.event;
408
- }
409
- re.buffer = x;
410
- function J(d, o) {
411
- return (l, f, b) => {
412
- let g = o(new z());
413
- return d(function(w) {
414
- let R = g.evaluate(w);
415
- R !== q && l.call(f, R);
416
- }, void 0, b);
417
- };
418
- }
419
- re.chain = J;
420
- let q = /* @__PURE__ */ Symbol("HaltChainable");
421
- class z {
422
- constructor() {
423
- this.steps = [];
424
- }
425
- map(o) {
426
- return this.steps.push(o), this;
427
- }
428
- forEach(o) {
429
- return this.steps.push((c) => (o(c), c)), this;
430
- }
431
- filter(o) {
432
- return this.steps.push((c) => o(c) ? c : q), this;
433
- }
434
- reduce(o, c) {
435
- let l = c;
436
- return this.steps.push((f) => (l = o(l, f), l)), this;
437
- }
438
- latch(o = (c, l) => c === l) {
439
- let c = true, l;
440
- return this.steps.push((f) => {
441
- let b = c || !o(f, l);
442
- return c = false, l = f, b ? f : q;
443
- }), this;
444
- }
445
- evaluate(o) {
446
- for (let c of this.steps) if (o = c(o), o === q) break;
447
- return o;
448
- }
449
- }
450
- function m(d, o, c = (l) => l) {
451
- let l = (...w) => g.fire(c(...w)), f = () => d.on(o, l), b = () => d.removeListener(o, l), g = new C({ onWillAddFirstListener: f, onDidRemoveLastListener: b });
452
- return g.event;
453
- }
454
- re.fromNodeEventEmitter = m;
455
- function _(d, o, c = (l) => l) {
456
- let l = (...w) => g.fire(c(...w)), f = () => d.addEventListener(o, l), b = () => d.removeEventListener(o, l), g = new C({ onWillAddFirstListener: f, onDidRemoveLastListener: b });
457
- return g.event;
458
- }
459
- re.fromDOMEventEmitter = _;
460
- function y(d) {
461
- return new Promise((o) => n(d)(o));
462
- }
463
- re.toPromise = y;
464
- function L(d) {
465
- let o = new C();
466
- return d.then((c) => {
467
- o.fire(c);
468
- }, () => {
469
- o.fire(void 0);
470
- }).finally(() => {
471
- o.dispose();
472
- }), o.event;
473
- }
474
- re.fromPromise = L;
475
- function X(d, o) {
476
- return d((c) => o.fire(c));
477
- }
478
- re.forward = X;
479
- function Se(d, o, c) {
480
- return o(c), d((l) => o(l));
481
- }
482
- re.runAndSubscribe = Se;
483
- class ct {
484
- constructor(o, c) {
485
- this._observable = o;
486
- this._counter = 0;
487
- this._hasChanged = false;
488
- let l = { onWillAddFirstListener: () => {
489
- o.addObserver(this);
490
- }, onDidRemoveLastListener: () => {
491
- o.removeObserver(this);
492
- } };
493
- this.emitter = new C(l), c && c.add(this.emitter);
494
- }
495
- beginUpdate(o) {
496
- this._counter++;
497
- }
498
- handlePossibleChange(o) {
499
- }
500
- handleChange(o, c) {
501
- this._hasChanged = true;
502
- }
503
- endUpdate(o) {
504
- this._counter--, this._counter === 0 && (this._observable.reportChanges(), this._hasChanged && (this._hasChanged = false, this.emitter.fire(this._observable.get())));
505
- }
506
- }
507
- function zt(d, o) {
508
- return new ct(d, o).emitter.event;
509
- }
510
- re.fromObservable = zt;
511
- function Ut(d) {
512
- return (o, c, l) => {
513
- let f = 0, b = false, g = { beginUpdate() {
514
- f++;
515
- }, endUpdate() {
516
- f--, f === 0 && (d.reportChanges(), b && (b = false, o.call(c)));
517
- }, handlePossibleChange() {
518
- }, handleChange() {
519
- b = true;
520
- } };
521
- d.addObserver(g), d.reportChanges();
522
- let w = { dispose() {
523
- d.removeObserver(g);
524
- } };
525
- return l instanceof H ? l.add(w) : Array.isArray(l) && l.push(w), w;
526
- };
527
- }
528
- re.fromObservableLight = Ut;
529
- })(ie ||= {});
530
- var B = class B2 {
531
- constructor(e) {
532
- this.listenerCount = 0;
533
- this.invocationCount = 0;
534
- this.elapsedOverall = 0;
535
- this.durations = [];
536
- this.name = `${e}_${B2._idPool++}`, B2.all.add(this);
537
- }
538
- start(e) {
539
- this._stopWatch = new Te(), this.listenerCount = e;
540
- }
541
- stop() {
542
- if (this._stopWatch) {
543
- let e = this._stopWatch.elapsed();
544
- this.durations.push(e), this.elapsedOverall += e, this.invocationCount += 1, this._stopWatch = void 0;
545
- }
546
- }
547
- };
548
- B.all = /* @__PURE__ */ new Set(), B._idPool = 0;
549
- var Oe = B, nt = -1;
550
- var be = class be2 {
551
- constructor(e, t, n = (be2._idPool++).toString(16).padStart(3, "0")) {
552
- this._errorHandler = e;
553
- this.threshold = t;
554
- this.name = n;
555
- this._warnCountdown = 0;
556
- }
557
- dispose() {
558
- this._stacks?.clear();
559
- }
560
- check(e, t) {
561
- let n = this.threshold;
562
- if (n <= 0 || t < n) return;
563
- this._stacks || (this._stacks = /* @__PURE__ */ new Map());
564
- let i = this._stacks.get(e.value) || 0;
565
- if (this._stacks.set(e.value, i + 1), this._warnCountdown -= 1, this._warnCountdown <= 0) {
566
- this._warnCountdown = n * 0.5;
567
- let [s, a] = this.getMostFrequentStack(), h = `[${this.name}] potential listener LEAK detected, having ${t} listeners already. MOST frequent listener (${a}):`;
568
- console.warn(h), console.warn(s);
569
- let u = new Me(h, s);
570
- this._errorHandler(u);
571
- }
572
- return () => {
573
- let s = this._stacks.get(e.value) || 0;
574
- this._stacks.set(e.value, s - 1);
575
- };
576
- }
577
- getMostFrequentStack() {
578
- if (!this._stacks) return;
579
- let e, t = 0;
580
- for (let [n, i] of this._stacks) (!e || t < i) && (e = [n, i], t = i);
581
- return e;
582
- }
583
- };
584
- be._idPool = 1;
585
- var Ae = be, ne = class r3 {
586
- constructor(e) {
587
- this.value = e;
588
- }
589
- static create() {
590
- let e = new Error();
591
- return new r3(e.stack ?? "");
592
- }
593
- print() {
594
- console.warn(this.value.split(`
595
- `).slice(2).join(`
596
- `));
597
- }
598
- }, Me = class extends Error {
599
- constructor(e, t) {
600
- super(e), this.name = "ListenerLeakError", this.stack = t;
601
- }
602
- }, Fe = class extends Error {
603
- constructor(e, t) {
604
- super(e), this.name = "ListenerRefusalError", this.stack = t;
605
- }
606
- }, xt = 0, G = class {
607
- constructor(e) {
608
- this.value = e;
609
- this.id = xt++;
610
- }
611
- }, It = 2, ve;
612
- var C = class {
613
- constructor(e) {
614
- this._size = 0;
615
- this._options = e, this._leakageMon = this._options?.leakWarningThreshold ? new Ae(e?.onListenerError ?? le, this._options?.leakWarningThreshold ?? nt) : void 0, this._perfMon = this._options?._profName ? new Oe(this._options._profName) : void 0, this._deliveryQueue = this._options?.deliveryQueue;
616
- }
617
- dispose() {
618
- if (!this._disposed) {
619
- if (this._disposed = true, this._deliveryQueue?.current === this && this._deliveryQueue.reset(), this._listeners) {
620
- this._listeners = void 0, this._size = 0;
621
- }
622
- this._options?.onDidRemoveLastListener?.(), this._leakageMon?.dispose();
623
- }
624
- }
625
- get event() {
626
- return this._event ??= (e, t, n) => {
627
- if (this._leakageMon && this._size > this._leakageMon.threshold ** 2) {
628
- let u = `[${this._leakageMon.name}] REFUSES to accept new listeners because it exceeded its threshold by far (${this._size} vs ${this._leakageMon.threshold})`;
629
- console.warn(u);
630
- let p = this._leakageMon.getMostFrequentStack() ?? ["UNKNOWN stack", -1], T = new Fe(`${u}. HINT: Stack shows most frequent listener (${p[1]}-times)`, p[0]);
631
- return (this._options?.onListenerError || le)(T), k.None;
632
- }
633
- if (this._disposed) return k.None;
634
- t && (e = e.bind(t));
635
- let i = new G(e), s;
636
- this._leakageMon && this._size >= Math.ceil(this._leakageMon.threshold * 0.2) && (i.stack = ne.create(), s = this._leakageMon.check(i.stack, this._size + 1)), this._listeners ? this._listeners instanceof G ? (this._deliveryQueue ??= new Ne(), this._listeners = [this._listeners, i]) : this._listeners.push(i) : (this._options?.onWillAddFirstListener?.(this), this._listeners = i, this._options?.onDidAddFirstListener?.(this)), this._size++;
637
- let h = A(() => {
638
- s?.(), this._removeListener(i);
639
- });
640
- if (n instanceof H ? n.add(h) : Array.isArray(n) && n.push(h), ve) ;
641
- return h;
642
- }, this._event;
643
- }
644
- _removeListener(e) {
645
- if (this._options?.onWillRemoveListener?.(this), !this._listeners) return;
646
- if (this._size === 1) {
647
- this._listeners = void 0, this._options?.onDidRemoveLastListener?.(this), this._size = 0;
648
- return;
649
- }
650
- let t = this._listeners, n = t.indexOf(e);
651
- if (n === -1) throw console.log("disposed?", this._disposed), console.log("size?", this._size), console.log("arr?", JSON.stringify(this._listeners)), new Error("Attempted to dispose unknown listener");
652
- this._size--, t[n] = void 0;
653
- let i = this._deliveryQueue.current === this;
654
- if (this._size * It <= t.length) {
655
- let s = 0;
656
- for (let a = 0; a < t.length; a++) t[a] ? t[s++] = t[a] : i && (this._deliveryQueue.end--, s < this._deliveryQueue.i && this._deliveryQueue.i--);
657
- t.length = s;
658
- }
659
- }
660
- _deliver(e, t) {
661
- if (!e) return;
662
- let n = this._options?.onListenerError || le;
663
- if (!n) {
664
- e.value(t);
665
- return;
666
- }
667
- try {
668
- e.value(t);
669
- } catch (i) {
670
- n(i);
671
- }
672
- }
673
- _deliverQueue(e) {
674
- let t = e.current._listeners;
675
- for (; e.i < e.end; ) this._deliver(t[e.i++], e.value);
676
- e.reset();
677
- }
678
- fire(e) {
679
- if (this._deliveryQueue?.current && (this._deliverQueue(this._deliveryQueue), this._perfMon?.stop()), this._perfMon?.start(this._size), this._listeners) if (this._listeners instanceof G) this._deliver(this._listeners, e);
680
- else {
681
- let t = this._deliveryQueue;
682
- t.enqueue(this, e, this._listeners.length), this._deliverQueue(t);
683
- }
684
- this._perfMon?.stop();
685
- }
686
- hasListeners() {
687
- return this._size > 0;
688
- }
689
- };
690
- var Ne = class {
691
- constructor() {
692
- this.i = -1;
693
- this.end = 0;
694
- }
695
- enqueue(e, t, n) {
696
- this.i = 0, this.end = n, this.current = e, this.value = t;
697
- }
698
- reset() {
699
- this.i = this.end, this.current = void 0, this.value = void 0;
700
- }
701
- };
702
- var it = Object.freeze(function(r4, e) {
703
- let t = setTimeout(r4.bind(e), 0);
704
- return { dispose() {
705
- clearTimeout(t);
706
- } };
707
- }), Et;
708
- ((n) => {
709
- function r4(i) {
710
- return i === n.None || i === n.Cancelled || i instanceof We ? true : !i || typeof i != "object" ? false : typeof i.isCancellationRequested == "boolean" && typeof i.onCancellationRequested == "function";
711
- }
712
- n.isCancellationToken = r4, n.None = Object.freeze({ isCancellationRequested: false, onCancellationRequested: ie.None }), n.Cancelled = Object.freeze({ isCancellationRequested: true, onCancellationRequested: it });
713
- })(Et ||= {});
714
- var We = class {
715
- constructor() {
716
- this._isCancelled = false;
717
- this._emitter = null;
718
- }
719
- cancel() {
720
- this._isCancelled || (this._isCancelled = true, this._emitter && (this._emitter.fire(void 0), this.dispose()));
721
- }
722
- get isCancellationRequested() {
723
- return this._isCancelled;
724
- }
725
- get onCancellationRequested() {
726
- return this._isCancelled ? it : (this._emitter || (this._emitter = new C()), this._emitter.event);
727
- }
728
- dispose() {
729
- this._emitter && (this._emitter.dispose(), this._emitter = null);
730
- }
731
- };
732
- var Y = "en", ge = false, _e, ye = Y, rt = Y, Lt, N, W = globalThis, O;
733
- typeof W.vscode < "u" && typeof W.vscode.process < "u" ? O = W.vscode.process : typeof process < "u" && typeof process?.versions?.node == "string" && (O = process);
734
- var ot = typeof O?.versions?.electron == "string", Ot = ot && O?.type === "renderer";
735
- if (typeof O == "object") {
736
- O.platform === "win32", O.platform === "darwin", ge = O.platform === "linux", ge && !!O.env.SNAP && !!O.env.SNAP_REVISION, !!O.env.CI || !!O.env.BUILD_ARTIFACTSTAGINGDIRECTORY, _e = Y, ye = Y;
737
- let r4 = O.env.VSCODE_NLS_CONFIG;
738
- if (r4) try {
739
- let e = JSON.parse(r4);
740
- _e = e.userLocale, rt = e.osLocale, ye = e.resolvedLanguage || Y, Lt = e.languagePack?.translationsConfigFile;
741
- } catch {
742
- }
743
- } else typeof navigator == "object" && !Ot ? (N = navigator.userAgent, N.indexOf("Windows") >= 0, N.indexOf("Macintosh") >= 0, (N.indexOf("Macintosh") >= 0 || N.indexOf("iPad") >= 0 || N.indexOf("iPhone") >= 0) && !!navigator.maxTouchPoints && navigator.maxTouchPoints > 0, ge = N.indexOf("Linux") >= 0, N?.indexOf("Mobi") >= 0, ye = globalThis._VSCODE_NLS_LANGUAGE || Y, _e = navigator.language.toLowerCase(), rt = _e) : console.error("Unable to resolve platform.");
744
- var M = N, j = ye, Mt;
745
- ((n) => {
746
- function r4() {
747
- return j;
748
- }
749
- n.value = r4;
750
- function e() {
751
- return j.length === 2 ? j === "en" : j.length >= 3 ? j[0] === "e" && j[1] === "n" && j[2] === "-" : false;
752
- }
753
- n.isDefaultVariant = e;
754
- function t() {
755
- return j === "en";
756
- }
757
- n.isDefault = t;
758
- })(Mt ||= {});
759
- var Ft = typeof W.postMessage == "function" && !W.importScripts;
760
- (() => {
761
- if (Ft) {
762
- let r4 = [];
763
- W.addEventListener("message", (t) => {
764
- if (t.data && t.data.vscodeScheduleAsyncWork) for (let n = 0, i = r4.length; n < i; n++) {
765
- let s = r4[n];
766
- if (s.id === t.data.vscodeScheduleAsyncWork) {
767
- r4.splice(n, 1), s.callback();
768
- return;
769
- }
770
- }
771
- });
772
- let e = 0;
773
- return (t) => {
774
- let n = ++e;
775
- r4.push({ id: n, callback: t }), W.postMessage({ vscodeScheduleAsyncWork: n }, "*");
776
- };
777
- }
778
- return (r4) => setTimeout(r4);
779
- })();
780
- var Nt = !!(M && M.indexOf("Chrome") >= 0);
781
- !!(M && M.indexOf("Firefox") >= 0);
782
- !!(!Nt && M && M.indexOf("Safari") >= 0);
783
- !!(M && M.indexOf("Edg/") >= 0);
784
- !!(M && M.indexOf("Android") >= 0);
785
- function xe(r4, e = 0, t) {
786
- let n = setTimeout(() => {
787
- r4();
788
- }, e), i = A(() => {
789
- clearTimeout(n);
790
- });
791
- return i;
792
- }
793
- var qt;
794
- ((t) => {
795
- async function r4(n) {
796
- let i, s = await Promise.all(n.map((a) => a.then((h) => h, (h) => {
797
- i || (i = h);
798
- })));
799
- if (typeof i < "u") throw i;
800
- return s;
801
- }
802
- t.settled = r4;
803
- function e(n) {
804
- return new Promise(async (i, s) => {
805
- try {
806
- await n(i, s);
807
- } catch (a) {
808
- s(a);
809
- }
810
- });
811
- }
812
- t.withAsyncBody = e;
813
- })(qt ||= {});
814
- var P = class P2 {
815
- static fromArray(e) {
816
- return new P2((t) => {
817
- t.emitMany(e);
818
- });
819
- }
820
- static fromPromise(e) {
821
- return new P2(async (t) => {
822
- t.emitMany(await e);
823
- });
824
- }
825
- static fromPromises(e) {
826
- return new P2(async (t) => {
827
- await Promise.all(e.map(async (n) => t.emitOne(await n)));
828
- });
829
- }
830
- static merge(e) {
831
- return new P2(async (t) => {
832
- await Promise.all(e.map(async (n) => {
833
- for await (let i of n) t.emitOne(i);
834
- }));
835
- });
836
- }
837
- constructor(e, t) {
838
- this._state = 0, this._results = [], this._error = null, this._onReturn = t, this._onStateChanged = new C(), queueMicrotask(async () => {
839
- let n = { emitOne: (i) => this.emitOne(i), emitMany: (i) => this.emitMany(i), reject: (i) => this.reject(i) };
840
- try {
841
- await Promise.resolve(e(n)), this.resolve();
842
- } catch (i) {
843
- this.reject(i);
844
- } finally {
845
- n.emitOne = void 0, n.emitMany = void 0, n.reject = void 0;
846
- }
847
- });
848
- }
849
- [Symbol.asyncIterator]() {
850
- let e = 0;
851
- return { next: async () => {
852
- do {
853
- if (this._state === 2) throw this._error;
854
- if (e < this._results.length) return { done: false, value: this._results[e++] };
855
- if (this._state === 1) return { done: true, value: void 0 };
856
- await ie.toPromise(this._onStateChanged.event);
857
- } while (true);
858
- }, return: async () => (this._onReturn?.(), { done: true, value: void 0 }) };
859
- }
860
- static map(e, t) {
861
- return new P2(async (n) => {
862
- for await (let i of e) n.emitOne(t(i));
863
- });
864
- }
865
- map(e) {
866
- return P2.map(this, e);
867
- }
868
- static filter(e, t) {
869
- return new P2(async (n) => {
870
- for await (let i of e) t(i) && n.emitOne(i);
871
- });
872
- }
873
- filter(e) {
874
- return P2.filter(this, e);
875
- }
876
- static coalesce(e) {
877
- return P2.filter(e, (t) => !!t);
878
- }
879
- coalesce() {
880
- return P2.coalesce(this);
881
- }
882
- static async toPromise(e) {
883
- let t = [];
884
- for await (let n of e) t.push(n);
885
- return t;
886
- }
887
- toPromise() {
888
- return P2.toPromise(this);
889
- }
890
- emitOne(e) {
891
- this._state === 0 && (this._results.push(e), this._onStateChanged.fire());
892
- }
893
- emitMany(e) {
894
- this._state === 0 && (this._results = this._results.concat(e), this._onStateChanged.fire());
895
- }
896
- resolve() {
897
- this._state === 0 && (this._state = 1, this._onStateChanged.fire());
898
- }
899
- reject(e) {
900
- this._state === 0 && (this._state = 2, this._error = e, this._onStateChanged.fire());
901
- }
902
- };
903
- P.EMPTY = P.fromArray([]);
904
- var Ie = class extends k {
905
- constructor(t) {
906
- super();
907
- this._terminal = t;
908
- this._linesCacheTimeout = this._register(new F());
909
- this._linesCacheDisposables = this._register(new F());
910
- this._register(A(() => this._destroyLinesCache()));
911
- }
912
- initLinesCache() {
913
- this._linesCache || (this._linesCache = new Array(this._terminal.buffer.active.length), this._linesCacheDisposables.value = me(this._terminal.onLineFeed(() => this._destroyLinesCache()), this._terminal.onCursorMove(() => this._destroyLinesCache()), this._terminal.onResize(() => this._destroyLinesCache()))), this._linesCacheTimeout.value = xe(() => this._destroyLinesCache(), 15e3);
914
- }
915
- _destroyLinesCache() {
916
- this._linesCache = void 0, this._linesCacheDisposables.clear(), this._linesCacheTimeout.clear();
917
- }
918
- getLineFromCache(t) {
919
- return this._linesCache?.[t];
920
- }
921
- setLineInCache(t, n) {
922
- this._linesCache && (this._linesCache[t] = n);
923
- }
924
- translateBufferLineToStringWithWrap(t, n) {
925
- let i = [], s = [0], a = this._terminal.buffer.active.getLine(t);
926
- for (; a; ) {
927
- let h = this._terminal.buffer.active.getLine(t + 1), u = h ? h.isWrapped : false, p = a.translateToString(!u && n);
928
- if (u && h) {
929
- let T = a.getCell(a.length - 1);
930
- T && T.getCode() === 0 && T.getWidth() === 1 && h.getCell(0)?.getWidth() === 2 && (p = p.slice(0, -1));
931
- }
932
- if (i.push(p), u) s.push(s[s.length - 1] + p.length);
933
- else break;
934
- t++, a = h;
935
- }
936
- return [i.join(""), s];
937
- }
938
- };
939
- var De = class {
940
- get cachedSearchTerm() {
941
- return this._cachedSearchTerm;
942
- }
943
- set cachedSearchTerm(e) {
944
- this._cachedSearchTerm = e;
945
- }
946
- get lastSearchOptions() {
947
- return this._lastSearchOptions;
948
- }
949
- set lastSearchOptions(e) {
950
- this._lastSearchOptions = e;
951
- }
952
- isValidSearchTerm(e) {
953
- return !!(e && e.length > 0);
954
- }
955
- didOptionsChange(e) {
956
- return this._lastSearchOptions ? e ? this._lastSearchOptions.caseSensitive !== e.caseSensitive || this._lastSearchOptions.regex !== e.regex || this._lastSearchOptions.wholeWord !== e.wholeWord : false : true;
957
- }
958
- shouldUpdateHighlighting(e, t) {
959
- return t?.decorations ? this._cachedSearchTerm === void 0 || e !== this._cachedSearchTerm || this.didOptionsChange(t) : false;
960
- }
961
- clearCachedTerm() {
962
- this._cachedSearchTerm = void 0;
963
- }
964
- reset() {
965
- this._cachedSearchTerm = void 0, this._lastSearchOptions = void 0;
966
- }
967
- };
968
- var Ee = class {
969
- constructor(e, t) {
970
- this._terminal = e;
971
- this._lineCache = t;
972
- }
973
- find(e, t, n, i) {
974
- if (!e || e.length === 0) {
975
- this._terminal.clearSelection();
976
- return;
977
- }
978
- if (n > this._terminal.cols) throw new Error(`Invalid col: ${n} to search in terminal of ${this._terminal.cols} cols`);
979
- this._lineCache.initLinesCache();
980
- let s = { startRow: t, startCol: n }, a = this._findInLine(e, s, i);
981
- if (!a) for (let h = t + 1; h < this._terminal.buffer.active.baseY + this._terminal.rows && (s.startRow = h, s.startCol = 0, a = this._findInLine(e, s, i), !a); h++) ;
982
- return a;
983
- }
984
- findNextWithSelection(e, t, n) {
985
- if (!e || e.length === 0) {
986
- this._terminal.clearSelection();
987
- return;
988
- }
989
- let i = this._terminal.getSelectionPosition();
990
- this._terminal.clearSelection();
991
- let s = 0, a = 0;
992
- i && (n === e ? (s = i.end.x, a = i.end.y) : (s = i.start.x, a = i.start.y)), this._lineCache.initLinesCache();
993
- let h = { startRow: a, startCol: s }, u = this._findInLine(e, h, t);
994
- if (!u) for (let p = a + 1; p < this._terminal.buffer.active.baseY + this._terminal.rows && (h.startRow = p, h.startCol = 0, u = this._findInLine(e, h, t), !u); p++) ;
995
- if (!u && a !== 0) for (let p = 0; p < a && (h.startRow = p, h.startCol = 0, u = this._findInLine(e, h, t), !u); p++) ;
996
- return !u && i && (h.startRow = i.start.y, h.startCol = 0, u = this._findInLine(e, h, t)), u;
997
- }
998
- findPreviousWithSelection(e, t, n) {
999
- if (!e || e.length === 0) {
1000
- this._terminal.clearSelection();
1001
- return;
1002
- }
1003
- let i = this._terminal.getSelectionPosition();
1004
- this._terminal.clearSelection();
1005
- let s = this._terminal.buffer.active.baseY + this._terminal.rows - 1, a = this._terminal.cols, h = true;
1006
- this._lineCache.initLinesCache();
1007
- let u = { startRow: s, startCol: a }, p;
1008
- if (i && (u.startRow = s = i.start.y, u.startCol = a = i.start.x, n !== e && (p = this._findInLine(e, u, t, false), p || (u.startRow = s = i.end.y, u.startCol = a = i.end.x))), p || (p = this._findInLine(e, u, t, h)), !p) {
1009
- u.startCol = Math.max(u.startCol, this._terminal.cols);
1010
- for (let T = s - 1; T >= 0 && (u.startRow = T, p = this._findInLine(e, u, t, h), !p); T--) ;
1011
- }
1012
- if (!p && s !== this._terminal.buffer.active.baseY + this._terminal.rows - 1) for (let T = this._terminal.buffer.active.baseY + this._terminal.rows - 1; T >= s && (u.startRow = T, p = this._findInLine(e, u, t, h), !p); T--) ;
1013
- return p;
1014
- }
1015
- _isWholeWord(e, t, n) {
1016
- return (e === 0 || " ~!@#$%^&*()+`-=[]{}|\\;:\"',./<>?".includes(t[e - 1])) && (e + n.length === t.length || " ~!@#$%^&*()+`-=[]{}|\\;:\"',./<>?".includes(t[e + n.length]));
1017
- }
1018
- _findInLine(e, t, n = {}, i = false) {
1019
- let s = t.startRow, a = t.startCol;
1020
- if (this._terminal.buffer.active.getLine(s)?.isWrapped) {
1021
- if (i) {
1022
- t.startCol += this._terminal.cols;
1023
- return;
1024
- }
1025
- return t.startRow--, t.startCol += this._terminal.cols, this._findInLine(e, t, n);
1026
- }
1027
- let u = this._lineCache.getLineFromCache(s);
1028
- u || (u = this._lineCache.translateBufferLineToStringWithWrap(s, true), this._lineCache.setLineInCache(s, u));
1029
- let [p, T] = u, v = this._bufferColsToStringOffset(s, a), I = e, E = p;
1030
- n.regex || (I = n.caseSensitive ? e : e.toLowerCase(), E = n.caseSensitive ? p : p.toLowerCase());
1031
- let S = -1;
1032
- if (n.regex) {
1033
- let D = RegExp(I, n.caseSensitive ? "g" : "gi"), x;
1034
- if (i) for (; x = D.exec(E.slice(0, v)); ) S = D.lastIndex - x[0].length, e = x[0], D.lastIndex -= e.length - 1;
1035
- else x = D.exec(E.slice(v)), x && x[0].length > 0 && (S = v + (D.lastIndex - x[0].length), e = x[0]);
1036
- } else i ? v - I.length >= 0 && (S = E.lastIndexOf(I, v - I.length)) : S = E.indexOf(I, v);
1037
- if (S >= 0) {
1038
- if (n.wholeWord && !this._isWholeWord(S, E, e)) return;
1039
- let D = 0;
1040
- for (; D < T.length - 1 && S >= T[D + 1]; ) D++;
1041
- let x = D;
1042
- for (; x < T.length - 1 && S + e.length >= T[x + 1]; ) x++;
1043
- let J = S - T[D], q = S + e.length - T[x], z = this._stringLengthToBufferSize(s + D, J), _ = this._stringLengthToBufferSize(s + x, q) - z + this._terminal.cols * (x - D);
1044
- return { term: e, col: z, row: s + D, size: _ };
1045
- }
1046
- }
1047
- _stringLengthToBufferSize(e, t) {
1048
- let n = this._terminal.buffer.active.getLine(e);
1049
- if (!n) return 0;
1050
- for (let i = 0; i < t; i++) {
1051
- let s = n.getCell(i);
1052
- if (!s) break;
1053
- let a = s.getChars();
1054
- a.length > 1 && (t -= a.length - 1);
1055
- let h = n.getCell(i + 1);
1056
- h && h.getWidth() === 0 && t++;
1057
- }
1058
- return t;
1059
- }
1060
- _bufferColsToStringOffset(e, t) {
1061
- let n = e, i = 0, s = this._terminal.buffer.active.getLine(n);
1062
- for (; t > 0 && s; ) {
1063
- for (let a = 0; a < t && a < this._terminal.cols; a++) {
1064
- let h = s.getCell(a);
1065
- if (!h) break;
1066
- h.getWidth() && (i += h.getCode() === 0 ? 1 : h.getChars().length);
1067
- }
1068
- if (n++, s = this._terminal.buffer.active.getLine(n), s && !s.isWrapped) break;
1069
- t -= this._terminal.cols;
1070
- }
1071
- return i;
1072
- }
1073
- };
1074
- var we = class extends k {
1075
- constructor(t) {
1076
- super();
1077
- this._terminal = t;
1078
- this._highlightDecorations = [];
1079
- this._highlightedLines = /* @__PURE__ */ new Set();
1080
- this._register(A(() => this.clearHighlightDecorations()));
1081
- }
1082
- createHighlightDecorations(t, n) {
1083
- this.clearHighlightDecorations();
1084
- for (let i of t) {
1085
- let s = this._createResultDecorations(i, n, false);
1086
- if (s) for (let a of s) this._storeDecoration(a, i);
1087
- }
1088
- }
1089
- createActiveDecoration(t, n) {
1090
- let i = this._createResultDecorations(t, n, true);
1091
- if (i) return { decorations: i, match: t, dispose() {
1092
- Q(i);
1093
- } };
1094
- }
1095
- clearHighlightDecorations() {
1096
- Q(this._highlightDecorations), this._highlightDecorations = [], this._highlightedLines.clear();
1097
- }
1098
- _storeDecoration(t, n) {
1099
- this._highlightedLines.add(t.marker.line), this._highlightDecorations.push({ decoration: t, match: n, dispose() {
1100
- t.dispose();
1101
- } });
1102
- }
1103
- _applyStyles(t, n, i) {
1104
- t.classList.contains("xterm-find-result-decoration") || (t.classList.add("xterm-find-result-decoration"), n && (t.style.outline = `1px solid ${n}`)), i && t.classList.add("xterm-find-active-result-decoration");
1105
- }
1106
- _createResultDecorations(t, n, i) {
1107
- let s = [], a = t.col, h = t.size, u = -this._terminal.buffer.active.baseY - this._terminal.buffer.active.cursorY + t.row;
1108
- for (; h > 0; ) {
1109
- let T = Math.min(this._terminal.cols - a, h);
1110
- s.push([u, a, T]), a = 0, h -= T, u++;
1111
- }
1112
- let p = [];
1113
- for (let T of s) {
1114
- let v = this._terminal.registerMarker(T[0]), I = this._terminal.registerDecoration({ marker: v, x: T[1], width: T[2], backgroundColor: i ? n.activeMatchBackground : n.matchBackground, overviewRulerOptions: this._highlightedLines.has(v.line) ? void 0 : { color: i ? n.activeMatchColorOverviewRuler : n.matchOverviewRuler, position: "center" } });
1115
- if (I) {
1116
- let E = [];
1117
- E.push(v), E.push(I.onRender((S) => this._applyStyles(S, i ? n.activeMatchBorder : n.matchBorder, false))), E.push(I.onDispose(() => Q(E))), p.push(I);
1118
- }
1119
- }
1120
- return p.length === 0 ? void 0 : p;
1121
- }
1122
- };
1123
- var ke = class extends k {
1124
- constructor() {
1125
- super(...arguments);
1126
- this._searchResults = [];
1127
- this._onDidChangeResults = this._register(new C());
1128
- }
1129
- get onDidChangeResults() {
1130
- return this._onDidChangeResults.event;
1131
- }
1132
- get searchResults() {
1133
- return this._searchResults;
1134
- }
1135
- get selectedDecoration() {
1136
- return this._selectedDecoration;
1137
- }
1138
- set selectedDecoration(t) {
1139
- this._selectedDecoration = t;
1140
- }
1141
- updateResults(t, n) {
1142
- this._searchResults = t.slice(0, n);
1143
- }
1144
- clearResults() {
1145
- this._searchResults = [];
1146
- }
1147
- clearSelectedDecoration() {
1148
- this._selectedDecoration && (this._selectedDecoration.dispose(), this._selectedDecoration = void 0);
1149
- }
1150
- findResultIndex(t) {
1151
- for (let n = 0; n < this._searchResults.length; n++) {
1152
- let i = this._searchResults[n];
1153
- if (i.row === t.row && i.col === t.col && i.size === t.size) return n;
1154
- }
1155
- return -1;
1156
- }
1157
- fireResultsChanged(t) {
1158
- if (!t) return;
1159
- let n = -1;
1160
- this._selectedDecoration && (n = this.findResultIndex(this._selectedDecoration.match)), this._onDidChangeResults.fire({ resultIndex: n, resultCount: this._searchResults.length });
1161
- }
1162
- reset() {
1163
- this.clearSelectedDecoration(), this.clearResults();
1164
- }
1165
- };
1166
- var ut = class extends k {
1167
- constructor(t) {
1168
- super();
1169
- this._highlightTimeout = this._register(new F());
1170
- this._lineCache = this._register(new F());
1171
- this._state = new De();
1172
- this._resultTracker = this._register(new ke());
1173
- this._highlightLimit = t?.highlightLimit ?? 1e3;
1174
- }
1175
- get onDidChangeResults() {
1176
- return this._resultTracker.onDidChangeResults;
1177
- }
1178
- activate(t) {
1179
- this._terminal = t, this._lineCache.value = new Ie(t), this._engine = new Ee(t, this._lineCache.value), this._decorationManager = new we(t), this._register(this._terminal.onWriteParsed(() => this._updateMatches())), this._register(this._terminal.onResize(() => this._updateMatches())), this._register(A(() => this.clearDecorations()));
1180
- }
1181
- _updateMatches() {
1182
- this._highlightTimeout.clear(), this._state.cachedSearchTerm && this._state.lastSearchOptions?.decorations && (this._highlightTimeout.value = xe(() => {
1183
- let t = this._state.cachedSearchTerm;
1184
- this._state.clearCachedTerm(), this.findPrevious(t, { ...this._state.lastSearchOptions, incremental: true }, { noScroll: true });
1185
- }, 200));
1186
- }
1187
- clearDecorations(t) {
1188
- this._resultTracker.clearSelectedDecoration(), this._decorationManager?.clearHighlightDecorations(), this._resultTracker.clearResults(), t || this._state.clearCachedTerm();
1189
- }
1190
- clearActiveDecoration() {
1191
- this._resultTracker.clearSelectedDecoration();
1192
- }
1193
- findNext(t, n, i) {
1194
- if (!this._terminal || !this._engine) throw new Error("Cannot use addon until it has been loaded");
1195
- this._state.lastSearchOptions = n, this._state.shouldUpdateHighlighting(t, n) && this._highlightAllMatches(t, n);
1196
- let s = this._findNextAndSelect(t, n, i);
1197
- return this._fireResults(n), this._state.cachedSearchTerm = t, s;
1198
- }
1199
- _highlightAllMatches(t, n) {
1200
- if (!this._terminal || !this._engine || !this._decorationManager) throw new Error("Cannot use addon until it has been loaded");
1201
- if (!this._state.isValidSearchTerm(t)) {
1202
- this.clearDecorations();
1203
- return;
1204
- }
1205
- this.clearDecorations(true);
1206
- let i = [], s, a = this._engine.find(t, 0, 0, n);
1207
- for (; a && (s?.row !== a.row || s?.col !== a.col) && !(i.length >= this._highlightLimit); ) s = a, i.push(s), a = this._engine.find(t, s.col + s.term.length >= this._terminal.cols ? s.row + 1 : s.row, s.col + s.term.length >= this._terminal.cols ? 0 : s.col + 1, n);
1208
- this._resultTracker.updateResults(i, this._highlightLimit), n.decorations && this._decorationManager.createHighlightDecorations(i, n.decorations);
1209
- }
1210
- _findNextAndSelect(t, n, i) {
1211
- if (!this._terminal || !this._engine) return false;
1212
- if (!this._state.isValidSearchTerm(t)) return this._terminal.clearSelection(), this.clearDecorations(), false;
1213
- let s = this._engine.findNextWithSelection(t, n, this._state.cachedSearchTerm);
1214
- return this._selectResult(s, n?.decorations, i?.noScroll);
1215
- }
1216
- findPrevious(t, n, i) {
1217
- if (!this._terminal || !this._engine) throw new Error("Cannot use addon until it has been loaded");
1218
- this._state.lastSearchOptions = n, this._state.shouldUpdateHighlighting(t, n) && this._highlightAllMatches(t, n);
1219
- let s = this._findPreviousAndSelect(t, n, i);
1220
- return this._fireResults(n), this._state.cachedSearchTerm = t, s;
1221
- }
1222
- _fireResults(t) {
1223
- this._resultTracker.fireResultsChanged(!!t?.decorations);
1224
- }
1225
- _findPreviousAndSelect(t, n, i) {
1226
- if (!this._terminal || !this._engine) return false;
1227
- if (!this._state.isValidSearchTerm(t)) return this._terminal.clearSelection(), this.clearDecorations(), false;
1228
- let s = this._engine.findPreviousWithSelection(t, n, this._state.cachedSearchTerm);
1229
- return this._selectResult(s, n?.decorations, i?.noScroll);
1230
- }
1231
- _selectResult(t, n, i) {
1232
- if (!this._terminal || !this._decorationManager) return false;
1233
- if (this._resultTracker.clearSelectedDecoration(), !t) return this._terminal.clearSelection(), false;
1234
- if (this._terminal.select(t.col, t.row, t.size), n) {
1235
- let s = this._decorationManager.createActiveDecoration(t, n);
1236
- s && (this._resultTracker.selectedDecoration = s);
1237
- }
1238
- if (!i && (t.row >= this._terminal.buffer.active.viewportY + this._terminal.rows || t.row < this._terminal.buffer.active.viewportY)) {
1239
- let s = t.row - this._terminal.buffer.active.viewportY;
1240
- s -= Math.floor(this._terminal.rows / 2), this._terminal.scrollLines(s);
1241
- }
1242
- return true;
1243
- }
1244
- };
1245
- export {
1246
- ut as SearchAddon
1247
- };