@hienlh/ppm 0.20.7 → 0.20.9

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 (532) hide show
  1. package/CHANGELOG.md +14 -0
  2. package/assets/skills/ppm/SKILL.md +1 -1
  3. package/assets/skills/ppm/references/cli-reference.md +4 -4
  4. package/assets/skills/ppm/references/http-api.md +1 -1
  5. package/dist/web/assets/accounts-settings-section-ByM99C7p.js +1 -0
  6. package/dist/web/assets/{ai-resource-editor-C6s6A57b.js → ai-resource-editor-BsB9wa0z.js} +1 -1
  7. package/dist/web/assets/{ai-settings-section-BQTsEJzp.js → ai-settings-section-BT-QVUBa.js} +1 -1
  8. package/dist/web/assets/ai-settings-section-BUPOINaw.js +1 -0
  9. package/dist/web/assets/{angular-html-K0aKyuHe.js → angular-html-CTx8qAkv.js} +1 -1
  10. package/dist/web/assets/{angular-ts-CLY0DVNM.js → angular-ts-BhBGUAnu.js} +1 -1
  11. package/dist/web/assets/api-client-C6VTn7cG.js +1 -0
  12. package/dist/web/assets/{api-client-CEYCBt_0.js → api-client-DKvkxuDr.js} +1 -1
  13. package/dist/web/assets/{api-settings-ClKLkiR9.js → api-settings-CqiVKFUX.js} +1 -1
  14. package/dist/web/assets/{api-themes-B_Za9tdP.js → api-themes-DtLXqXpC.js} +1 -1
  15. package/dist/web/assets/{apl-Cl1oeOZc.js → apl-Dec3pSzF.js} +1 -1
  16. package/dist/web/assets/{appearance-settings-section-B7CwHA7Y.js → appearance-settings-section-DJEoECoJ.js} +1 -1
  17. package/dist/web/assets/architecture-PBZL5I3N-D55g5j-p.js +1 -0
  18. package/dist/web/assets/arrow-left-DpXaakMC.js +1 -0
  19. package/dist/web/assets/arrow-right-BqNSIscF.js +1 -0
  20. package/dist/web/assets/{astro-S8gLldib.js → astro-Cb_3-S86.js} +1 -1
  21. package/dist/web/assets/{audio-preview-C2PCzvr5.js → audio-preview-CF4tTFv_.js} +1 -1
  22. package/dist/web/assets/{blade-DZ96Anzi.js → blade-1QMj5JxI.js} +1 -1
  23. package/dist/web/assets/{bot-D6sx11y0.js → bot-D3-n2i31.js} +1 -1
  24. package/dist/web/assets/{brain-KDa9jFRq.js → brain-CuAQMSBE.js} +1 -1
  25. package/dist/web/assets/{bsl-BrlZLefQ.js → bsl-D0bT3Wjp.js} +1 -1
  26. package/dist/web/assets/{button-DX32ffge.js → button-DhnNoqpV.js} +1 -1
  27. package/dist/web/assets/{cairo-B0UdH8CG.js → cairo-DTuGb2w7.js} +1 -1
  28. package/dist/web/assets/{calendar-clock-C1asT-gk.js → calendar-clock-CDP7AVjA.js} +1 -1
  29. package/dist/web/assets/{chat-tab-BJokwok-.js → chat-tab-fD2vWwj2.js} +8 -8
  30. package/dist/web/assets/check-BQKbhtoA.js +1 -0
  31. package/dist/web/assets/{chevron-down-Dp0rpHb8.js → chevron-down-B9puixxZ.js} +1 -1
  32. package/dist/web/assets/chevron-right-DK_HbYZC.js +1 -0
  33. package/dist/web/assets/{chevron-up-8PbsNiJp.js → chevron-up-BPAINgoK.js} +1 -1
  34. package/dist/web/assets/circle-BpGTLAas.js +1 -0
  35. package/dist/web/assets/circle-question-mark-DUaySkoB.js +1 -0
  36. package/dist/web/assets/clock-Dqq0H9yH.js +1 -0
  37. package/dist/web/assets/{cobol-DCeQgIC6.js → cobol-DSx_Nb7T.js} +1 -1
  38. package/dist/web/assets/code-CX6640Tv.js +1 -0
  39. package/dist/web/assets/code-editor-CyFLXCsD.js +7 -0
  40. package/dist/web/assets/codex-daily-guard-Cg19EWxk.js +1 -0
  41. package/dist/web/assets/{coffee-D3V0ISG7.js → coffee-DBcQ7DKB.js} +1 -1
  42. package/dist/web/assets/{conflict-editor-hGsVMmtG.js → conflict-editor-DSjo2FRy.js} +1 -1
  43. package/dist/web/assets/{context-menu-CJL8L98s.js → context-menu-DchAkdnL.js} +1 -1
  44. package/dist/web/assets/{copy-BewHj66E.js → copy-Bt_1tjoJ.js} +1 -1
  45. package/dist/web/assets/{cpp-UPgqRL5h.js → cpp-Bj1azGr-.js} +1 -1
  46. package/dist/web/assets/{createLucideIcon-D8pyde1A.js → createLucideIcon-D6fVXe3s.js} +1 -1
  47. package/dist/web/assets/{crystal-B7BOJUR4.js → crystal-CCgkDI0i.js} +1 -1
  48. package/dist/web/assets/{csv-preview-DiSiq6UJ.js → csv-preview-BIE3Wpww.js} +1 -1
  49. package/dist/web/assets/data-grid-overlay-editor-C2NAQ-88.js +1 -0
  50. package/dist/web/assets/data-grid-types-tNj9zuRV.js +1 -0
  51. package/dist/web/assets/{database-Y3ESDK4-.js → database-9_p74TtY.js} +1 -1
  52. package/dist/web/assets/database-viewer-CMvIORcM.js +1 -0
  53. package/dist/web/assets/{diff-viewer-Usuuf35X.js → diff-viewer-BQQ6fUr6.js} +1 -1
  54. package/dist/web/assets/dist-BDpuZ376.js +11 -0
  55. package/dist/web/assets/{dist-BuUB-Gou.js → dist-BiqPfYiP.js} +1 -1
  56. package/dist/web/assets/{docx-preview-Dg8lD3f3.js → docx-preview-DcCh59Oe.js} +1 -1
  57. package/dist/web/assets/{download-DG3_9xXy.js → download-CEPFebri.js} +1 -1
  58. package/dist/web/assets/{edge-Dw-s4XKj.js → edge-ClBfeO7z.js} +1 -1
  59. package/dist/web/assets/{edit-diff-preview-F7YlT9fY.js → edit-diff-preview-CRjufuw_.js} +1 -1
  60. package/dist/web/assets/{elixir-Dntyzyed.js → elixir-ir__-3kt.js} +1 -1
  61. package/dist/web/assets/{elm-C83eppJ0.js → elm-CUv-xMuU.js} +1 -1
  62. package/dist/web/assets/{erb-Bjv2Lozz.js → erb-DcRwHyUq.js} +1 -1
  63. package/dist/web/assets/{erlang-5PAcE8_t.js → erlang-DW-GAdmv.js} +1 -1
  64. package/dist/web/assets/esm-DBm5LSCw.js +2 -0
  65. package/dist/web/assets/{explorer-body-BL9hg1yr.js → explorer-body-DRo2JHP9.js} +2 -2
  66. package/dist/web/assets/explorer-window-content-7mnRpSqn.js +1 -0
  67. package/dist/web/assets/{extension-manager-section-CE0aB9ed.js → extension-manager-section-CEfr7-Kv.js} +1 -1
  68. package/dist/web/assets/{extension-webview-CGhuot2v.js → extension-webview-D7HqqdTv.js} +1 -1
  69. package/dist/web/assets/{eye-gWwaF4Lg.js → eye-BQaWPI4P.js} +1 -1
  70. package/dist/web/assets/{eye-off-GjXVuAOn.js → eye-off-BlB3QV90.js} +1 -1
  71. package/dist/web/assets/{file-exclamation-point-JzhTU2TX.js → file-exclamation-point-BDmSZbxs.js} +1 -1
  72. package/dist/web/assets/{files-settings-section-D_sgDKwF.js → files-settings-section-h6a-WpSO.js} +1 -1
  73. package/dist/web/assets/{flask-conical-tp8gyZGh.js → flask-conical-Cj-J6cxs.js} +1 -1
  74. package/dist/web/assets/{folder-symlink-fQRoG_rV.js → folder-symlink-BSYalAHC.js} +1 -1
  75. package/dist/web/assets/{fortran-fixed-form-Di9Yw_ao.js → fortran-fixed-form-DrQbMSkt.js} +1 -1
  76. package/dist/web/assets/{fsharp-IRAdAkHt.js → fsharp-DvDj84Ys.js} +1 -1
  77. package/dist/web/assets/{gdresource-DVdwnvP-.js → gdresource-CPgY7R2s.js} +1 -1
  78. package/dist/web/assets/{general-settings-section-D7DMjoNj.js → general-settings-section-Bt3KNcyM.js} +1 -1
  79. package/dist/web/assets/{git-commit-CD6jLHvg.js → git-commit-NJ9iGbTd.js} +1 -1
  80. package/dist/web/assets/{git-log-panel-prL5-n-F.js → git-log-panel-H-Bg9p7m.js} +1 -1
  81. package/dist/web/assets/{git-rebase-DvxNkg7t.js → git-rebase-DBSy9OKE.js} +1 -1
  82. package/dist/web/assets/gitGraph-HDMCJU4V-At-P8hlA.js +1 -0
  83. package/dist/web/assets/glide-data-grid-D3Xc_WGh.js +141 -0
  84. package/dist/web/assets/{glimmer-js-aM9jbY2M.js → glimmer-js-EGWSSdwJ.js} +1 -1
  85. package/dist/web/assets/{glimmer-ts-Bd4jKeuF.js → glimmer-ts-BpfXRYRV.js} +1 -1
  86. package/dist/web/assets/{glsl-CUUtWNTx.js → glsl-BtWQ4j8X.js} +1 -1
  87. package/dist/web/assets/{graphql-DkY6xCcc.js → graphql-DHR5AO2c.js} +1 -1
  88. package/dist/web/assets/{group-chat-tab-C4oY3IKi.js → group-chat-tab-BkLt7J_s.js} +1 -1
  89. package/dist/web/assets/{hack-DnaR9DJk.js → hack-A3iOItmC.js} +1 -1
  90. package/dist/web/assets/{haml-BDubxAIK.js → haml-DXA8NXfZ.js} +1 -1
  91. package/dist/web/assets/{hand-x0ejq3fS.js → hand-BkDyLfcc.js} +1 -1
  92. package/dist/web/assets/{handlebars-OxsbI1gt.js → handlebars-BdIFK4pP.js} +1 -1
  93. package/dist/web/assets/{html-Cjiwd8dp.js → html-BTA4eRkb.js} +1 -1
  94. package/dist/web/assets/{html-derivative-CfzXt9Cs.js → html-derivative-Cd_vDV4L.js} +1 -1
  95. package/dist/web/assets/{http-DRF6Wp6Y.js → http-CMY5fp9k.js} +1 -1
  96. package/dist/web/assets/{hurl-6SunVID_.js → hurl-DJZLRi6K.js} +1 -1
  97. package/dist/web/assets/{hxml-CR72N708.js → hxml-C2EdtM37.js} +1 -1
  98. package/dist/web/assets/{image-preview-C7dCEQCx.js → image-preview-D_6-FhZP.js} +1 -1
  99. package/dist/web/assets/{index-A3ripVe5.js → index-BV_sFdHY.js} +8 -8
  100. package/dist/web/assets/index-Di9nVG3y.css +2 -0
  101. package/dist/web/assets/info-3K5VOQVL-btSsuixb.js +1 -0
  102. package/dist/web/assets/{jinja-CYjAWnk3.js → jinja-DWU92jHm.js} +1 -1
  103. package/dist/web/assets/{jira-watcher-section-DvKEiqtb.js → jira-watcher-section-BhQzWJ3r.js} +1 -1
  104. package/dist/web/assets/{jison-UERnq4ds.js → jison-Bt3f5-S6.js} +1 -1
  105. package/dist/web/assets/{julia-WAZzVFSs.js → julia-BS-e0jQg.js} +1 -1
  106. package/dist/web/assets/{just-B1YYfl1D.js → just-OU89Ot3I.js} +1 -1
  107. package/dist/web/assets/{key-round-CQpDrDxg.js → key-round-Cv4z7_KG.js} +1 -1
  108. package/dist/web/assets/keybindings-store-alreySno.js +1 -0
  109. package/dist/web/assets/{keyboard-DiOYrs6C.js → keyboard-HG0BUtuN.js} +1 -1
  110. package/dist/web/assets/{keyboard-shortcuts-section-CPsFUned.js → keyboard-shortcuts-section-B_D0FamP.js} +1 -1
  111. package/dist/web/assets/{latex-B6zwM9GI.js → latex-Bt5mTs31.js} +1 -1
  112. package/dist/web/assets/{lib-Bss7BrXJ.js → lib-DUBAP_Gd.js} +1 -1
  113. package/dist/web/assets/{liquid-n4OK-yxz.js → liquid-C03IGCJ6.js} +1 -1
  114. package/dist/web/assets/loader-circle-H81ywCuQ.js +1 -0
  115. package/dist/web/assets/{lua-DJYn-zFg.js → lua-Dl4zPu0P.js} +1 -1
  116. package/dist/web/assets/markdown-renderer-CG_nGh7k.js +3 -0
  117. package/dist/web/assets/markdown-renderer-CgbqvSuc.js +1 -0
  118. package/dist/web/assets/{marko-C27Qtq0P.js → marko-BEnkIoHY.js} +1 -1
  119. package/dist/web/assets/{mdc-CypKG7qW.js → mdc-DGglct19.js} +1 -1
  120. package/dist/web/assets/{media-url-TGgkntUW.js → media-url-LiPp2UsV.js} +1 -1
  121. package/dist/web/assets/{mobile-bottom-sheet-CmySDB6I.js → mobile-bottom-sheet-BizNfPAu.js} +1 -1
  122. package/dist/web/assets/mobile-explorer-sheet-DAZTzi1k.js +1 -0
  123. package/dist/web/assets/{monitor-C835ucWH.js → monitor-CKcYUoAV.js} +1 -1
  124. package/dist/web/assets/{nextflow-DuRHA0PY.js → nextflow-DKFYidyC.js} +1 -1
  125. package/dist/web/assets/{nginx-vxFTb1fh.js → nginx-Bhq0tzlh.js} +1 -1
  126. package/dist/web/assets/{nim-ChQDNOKe.js → nim-CSuBzart.js} +1 -1
  127. package/dist/web/assets/notification-store-HCg5Shw9.js +1 -0
  128. package/dist/web/assets/{notifications-settings-section-CaQVTa3a.js → notifications-settings-section-BAs_p_ai.js} +1 -1
  129. package/dist/web/assets/{number-overlay-editor-HmOZ3ETg.js → number-overlay-editor-CYHlP43e.js} +1 -1
  130. package/dist/web/assets/{overview-panel-CaU5AtCB.js → overview-panel-xn2BYvn6.js} +1 -1
  131. package/dist/web/assets/packet-RMMSAZCW-B20_sIFd.js +1 -0
  132. package/dist/web/assets/{panel-store-BmdcSBNb.js → panel-store-XhAruR6D.js} +1 -1
  133. package/dist/web/assets/{pdf-preview-QeXX_VpL.js → pdf-preview-BJjqU3AX.js} +1 -1
  134. package/dist/web/assets/{perl-BKH-mNmF.js → perl-uDVR7Ceh.js} +1 -1
  135. package/dist/web/assets/{php-W3oWF62o.js → php-Bby8J3zk.js} +1 -1
  136. package/dist/web/assets/pie-UPGHQEXC-nzfJdXCC.js +1 -0
  137. package/dist/web/assets/portal-container-context-Bqn516X4.js +1 -0
  138. package/dist/web/assets/postgres-viewer-CJbHLcGE.js +3 -0
  139. package/dist/web/assets/power-D_wlLkC0.js +1 -0
  140. package/dist/web/assets/{ppmbot-settings-section-B_00Zb-K.js → ppmbot-settings-section-5U0a58oj.js} +1 -1
  141. package/dist/web/assets/{process-table-DweR4FR3.js → process-table-CqGL0Bcj.js} +1 -1
  142. package/dist/web/assets/{project-store-wWZ6bjwq.js → project-store-Dy3A3LJT.js} +1 -1
  143. package/dist/web/assets/{proxy-settings-section-sGhA3t_m.js → proxy-settings-section-B1LDpGSc.js} +1 -1
  144. package/dist/web/assets/{pug-DscH2YvH.js → pug-EapfojTW.js} +1 -1
  145. package/dist/web/assets/{qml-CbBrfy74.js → qml-DiR6J5_C.js} +1 -1
  146. package/dist/web/assets/{query-audit-section-BtqND9WE.js → query-audit-section-DfCvY94_.js} +1 -1
  147. package/dist/web/assets/radar-KQ55EAFF-CS4sHKD5.js +1 -0
  148. package/dist/web/assets/{razor-_oKX4NEv.js → razor-B2QvlGNY.js} +1 -1
  149. package/dist/web/assets/{react-D1Yg256j.js → react-Bcm1Oab0.js} +1 -1
  150. package/dist/web/assets/remote-desktop-mobile-sheet-_LH4uCcA.js +2 -0
  151. package/dist/web/assets/{remote-desktop-mobile-view-xlO-gk_f.js → remote-desktop-mobile-view-C5TUPDh_.js} +1 -1
  152. package/dist/web/assets/{remote-desktop-readiness-gate-BmyUd1vt.js → remote-desktop-readiness-gate-DuT4A893.js} +1 -1
  153. package/dist/web/assets/{remote-desktop-window-content-BaPixhFs.js → remote-desktop-window-content-B4V-1aJn.js} +1 -1
  154. package/dist/web/assets/{rst-C3yqfWYA.js → rst-D2eJ0kH4.js} +1 -1
  155. package/dist/web/assets/{ruby-BaanPyyv.js → ruby-DzpnBpz-.js} +1 -1
  156. package/dist/web/assets/{run-in-terminal-Sb6TFU4f.js → run-in-terminal-DisO5HC-.js} +1 -1
  157. package/dist/web/assets/{sas-DQg1FY8E.js → sas-WDAKsX0U.js} +1 -1
  158. package/dist/web/assets/{save-CipGrG1k.js → save-BehCuMf4.js} +1 -1
  159. package/dist/web/assets/{schedules-settings-section-Ctu9STMV.js → schedules-settings-section-C2SjwWFB.js} +1 -1
  160. package/dist/web/assets/{scss-N-LxVilh.js → scss-Ci6PdscL.js} +1 -1
  161. package/dist/web/assets/{send-Bb0jtcR6.js → send-CtXcGcsk.js} +1 -1
  162. package/dist/web/assets/{send-to-chat-BDws0-k0.js → send-to-chat-DDFdKWNf.js} +1 -1
  163. package/dist/web/assets/{separator-GeVzERIl.js → separator-CyisF27O.js} +1 -1
  164. package/dist/web/assets/settings-body-CdFauCAU.js +2 -0
  165. package/dist/web/assets/{settings-store-Bsu_5zIU.js → settings-store-BkNrLdjk.js} +2 -2
  166. package/dist/web/assets/settings-tab-DGUlmMbc.js +1 -0
  167. package/dist/web/assets/settings-window-content-CIH5sihe.js +1 -0
  168. package/dist/web/assets/{shaderlab-BShqbudx.js → shaderlab-Cv3mWofL.js} +1 -1
  169. package/dist/web/assets/{shellsession-B8_nNEok.js → shellsession-D1KVtQa1.js} +1 -1
  170. package/dist/web/assets/{shield-check-BsG3LV8i.js → shield-check-z9PX8HVZ.js} +1 -1
  171. package/dist/web/assets/{shield-off-7jKWpJBD.js → shield-off-Du0U5dVI.js} +1 -1
  172. package/dist/web/assets/{soy-CW5oqa-M.js → soy-BGLBwFZT.js} +1 -1
  173. package/dist/web/assets/{sparkles-Dh-_J2Rd.js → sparkles-CO9zx1f-.js} +1 -1
  174. package/dist/web/assets/{sparql-BJFHPosZ.js → sparql-TvnQmFDh.js} +1 -1
  175. package/dist/web/assets/{sql-query-editor-DPtExW0C.js → sql-query-editor-DaQqRBNA.js} +1 -1
  176. package/dist/web/assets/sqlite-viewer-Bpz7QnBk.js +1 -0
  177. package/dist/web/assets/{stata-twP3WAnN.js → stata-Gi-BKyEv.js} +1 -1
  178. package/dist/web/assets/{streaming-store-9XVmAMfV.js → streaming-store-DAbnOfLu.js} +1 -1
  179. package/dist/web/assets/{surrealql-CqwoQxwG.js → surrealql-BVXs6tkz.js} +1 -1
  180. package/dist/web/assets/{svelte-CoTGkG7y.js → svelte-BlnFpLWV.js} +1 -1
  181. package/dist/web/assets/{system-monitor-body-Bfx7yImc.js → system-monitor-body-BBJOWFCa.js} +2 -2
  182. package/dist/web/assets/system-monitor-tab-D7RIwhmg.js +1 -0
  183. package/dist/web/assets/system-monitor-window-content-CH0UmMP9.js +1 -0
  184. package/dist/web/assets/{tab-host-window-content-By35Ri11.js → tab-host-window-content-C_yU5MH_.js} +1 -1
  185. package/dist/web/assets/{tab-store-1xYJb0gM.js → tab-store-B7BksLr-.js} +1 -1
  186. package/dist/web/assets/{table-CRJsmfeg.js → table-BK4h8E7u.js} +1 -1
  187. package/dist/web/assets/team-member-sheet-CopMME1E.js +2 -0
  188. package/dist/web/assets/{team-member-window-content-2_P22CXN.js → team-member-window-content-CUDQ6oX7.js} +1 -1
  189. package/dist/web/assets/{templ-BSuNrgD0.js → templ-YJYH5r1A.js} +1 -1
  190. package/dist/web/assets/{terminal-tab-DqAZMwhA.js → terminal-tab-BjI95uG5.js} +1 -1
  191. package/dist/web/assets/{tex-DTdKTZSa.js → tex-IVZLDIeh.js} +1 -1
  192. package/dist/web/assets/{text-wrap-oiekm5SB.js → text-wrap-DLtVgSnU.js} +1 -1
  193. package/dist/web/assets/{tool-cards-CiCZqw1w.js → tool-cards-I71v1w5Z.js} +6 -6
  194. package/dist/web/assets/treemap-KZPCXAKY-BBrhTPZk.js +1 -0
  195. package/dist/web/assets/{ts-tags-jpjff8fb.js → ts-tags-DBd321I-.js} +1 -1
  196. package/dist/web/assets/{twig-Utgjq3Am.js → twig-DQENQjEn.js} +1 -1
  197. package/dist/web/assets/{use-blob-url-BMtoAEL4.js → use-blob-url-CGChX4vi.js} +1 -1
  198. package/dist/web/assets/{use-coarse-long-press-BmI_GVW5.js → use-coarse-long-press-XrJ4Upuv.js} +1 -1
  199. package/dist/web/assets/{use-inline-blame-C1G-_NjC.js → use-inline-blame-CRUwd6FF.js} +1 -1
  200. package/dist/web/assets/{use-is-mobile-D1weanbj.js → use-is-mobile-Dypg-2ZO.js} +1 -1
  201. package/dist/web/assets/use-monaco-theme-qzMbRfCW.js +1 -0
  202. package/dist/web/assets/use-open-team-member-kmNnlzDD.js +1 -0
  203. package/dist/web/assets/{use-remote-desktop-display-choice-DVDOUQg2.js → use-remote-desktop-display-choice-0zDkCmsK.js} +1 -1
  204. package/dist/web/assets/{use-visual-viewport-Bfl3Bxxb.js → use-visual-viewport-Bj3QHRkF.js} +1 -1
  205. package/dist/web/assets/{use-websocket-BkBvJbEt.js → use-websocket-D8OGBwH8.js} +1 -1
  206. package/dist/web/assets/{vendor-markdown-Ls5AcU91.js → vendor-markdown-CuWCHIVb.js} +1 -1
  207. package/dist/web/assets/{vendor-mermaid-CXxglerV.js → vendor-mermaid-BoRFiriK.js} +193 -193
  208. package/dist/web/assets/{vendor-ui-CaeeFO0B.js → vendor-ui-BBdkypKW.js} +1 -1
  209. package/dist/web/assets/{video-preview-DzzFr0gI.js → video-preview-Mlgl7hGr.js} +1 -1
  210. package/dist/web/assets/{vue-CUms54DI.js → vue-Do2JXEwi.js} +1 -1
  211. package/dist/web/assets/{vue-html-D7fbWTZW.js → vue-html-Bse0CwSC.js} +1 -1
  212. package/dist/web/assets/{vue-vine-BontZ1iR.js → vue-vine-C8JSXu5Z.js} +1 -1
  213. package/dist/web/assets/{window-pip-registry-CrCYYTTf.js → window-pip-registry-C2dcY0pE.js} +1 -1
  214. package/dist/web/assets/{window-store-D0HbQ1pM.js → window-store-2z4t5YAt.js} +1 -1
  215. package/dist/web/assets/ws-auth-DI1E6Fe7.js +1 -0
  216. package/dist/web/assets/x-DlnNFF2t.js +1 -0
  217. package/dist/web/assets/{xml-CVHJ-Tda.js → xml-OX6YmzGK.js} +1 -1
  218. package/dist/web/assets/{xsl-BUDXwDuV.js → xsl-RQUQgcgy.js} +1 -1
  219. package/dist/web/index.html +43 -43
  220. package/dist/web/sw.js +1 -1
  221. package/package.json +1 -1
  222. package/packages/vscode-compat/node_modules/.bin/tsc.bunx +0 -0
  223. package/packages/vscode-compat/node_modules/.bin/tsc.exe +0 -0
  224. package/packages/vscode-compat/node_modules/.bin/tsserver.bunx +0 -0
  225. package/packages/vscode-compat/node_modules/.bin/tsserver.exe +0 -0
  226. package/src/providers/codex-app-server/codex-event-mapper.ts +28 -1
  227. package/src/providers/codex-app-server/codex-provider.ts +38 -5
  228. package/src/providers/codex-app-server/codex-usage-parser.ts +3 -1
  229. package/src/server/routes/codex-accounts.ts +9 -5
  230. package/src/services/codex-account-login.ts +33 -5
  231. package/src/services/codex-account-portability.ts +3 -2
  232. package/src/services/codex-account.service.ts +48 -7
  233. package/src/services/codex-login-callback.ts +18 -0
  234. package/src/services/db.service.ts +14 -0
  235. package/src/services/edge-forwarder.ts +191 -191
  236. package/src/services/windows-process-tree.ts +351 -351
  237. package/src/shared/codex-daily-guard.ts +27 -0
  238. package/src/shared/codex-plan-label.ts +17 -0
  239. package/src/web/components/chat/codex-usage-panel.tsx +22 -2
  240. package/src/web/components/settings/accounts/account-card.tsx +43 -2
  241. package/src/web/components/settings/accounts/codex-accounts-section.tsx +43 -2
  242. package/src/web/components/settings/accounts/use-codex-accounts.ts +14 -2
  243. package/src/web/components/shared/markdown-context.ts +6 -0
  244. package/src/web/components/shared/markdown-renderer.tsx +7 -3
  245. package/dist/web/assets/accounts-settings-section-Df1KoGg7.js +0 -1
  246. package/dist/web/assets/ai-settings-section-CMIkIxZU.js +0 -1
  247. package/dist/web/assets/api-client-QfreGirP.js +0 -1
  248. package/dist/web/assets/architecture-PBZL5I3N-CkWx_Sv3.js +0 -1
  249. package/dist/web/assets/arrow-left-CyFcsyzD.js +0 -1
  250. package/dist/web/assets/check-DN75Ucvz.js +0 -1
  251. package/dist/web/assets/chevron-right-De-Wz5Lz.js +0 -1
  252. package/dist/web/assets/circle-BCy0AUCo.js +0 -1
  253. package/dist/web/assets/circle-question-mark-CzR7YRc-.js +0 -1
  254. package/dist/web/assets/click-outside-container-XmmmdSm7.js +0 -1
  255. package/dist/web/assets/clock-C1CQUQPZ.js +0 -1
  256. package/dist/web/assets/code-DJgYrFzm.js +0 -1
  257. package/dist/web/assets/code-editor-BVyFjaoM.js +0 -7
  258. package/dist/web/assets/data-grid-overlay-editor-QyH_oklj.js +0 -1
  259. package/dist/web/assets/database-viewer-BWQMTwjf.js +0 -1
  260. package/dist/web/assets/dist-CQbltjRp.js +0 -11
  261. package/dist/web/assets/esm-Brdy2Atb.js +0 -2
  262. package/dist/web/assets/explorer-window-content-C3BSd4Qf.js +0 -1
  263. package/dist/web/assets/gitGraph-HDMCJU4V-BUlbZgyf.js +0 -1
  264. package/dist/web/assets/glide-data-grid-lbUFJwCD.js +0 -141
  265. package/dist/web/assets/index-B9Wbjl0o.css +0 -2
  266. package/dist/web/assets/info-3K5VOQVL-DXzjBxZf.js +0 -1
  267. package/dist/web/assets/keybindings-store-BOJPwIOB.js +0 -1
  268. package/dist/web/assets/loader-circle-DPMrnLQ2.js +0 -1
  269. package/dist/web/assets/markdown-renderer-C1KVXiXr.js +0 -3
  270. package/dist/web/assets/markdown-renderer-HPQE8ilD.js +0 -1
  271. package/dist/web/assets/mobile-explorer-sheet-DkvtLBgs.js +0 -1
  272. package/dist/web/assets/notification-store-B1pBUO0W.js +0 -1
  273. package/dist/web/assets/packet-RMMSAZCW-DrX3I-bv.js +0 -1
  274. package/dist/web/assets/pie-UPGHQEXC-czhViDrP.js +0 -1
  275. package/dist/web/assets/portal-container-context-DKymYOY-.js +0 -1
  276. package/dist/web/assets/postgres-viewer-DO50GwMs.js +0 -3
  277. package/dist/web/assets/power-CriQkeK5.js +0 -1
  278. package/dist/web/assets/radar-KQ55EAFF-BAHP0n2V.js +0 -1
  279. package/dist/web/assets/remote-desktop-mobile-sheet-DMn2uDXn.js +0 -2
  280. package/dist/web/assets/settings-body-B0ZdO6qx.js +0 -2
  281. package/dist/web/assets/settings-tab-BQvukPz5.js +0 -1
  282. package/dist/web/assets/settings-window-content-DUmULFsq.js +0 -1
  283. package/dist/web/assets/sqlite-viewer-DkzvIzyG.js +0 -1
  284. package/dist/web/assets/system-monitor-tab-Bn7sDAiO.js +0 -1
  285. package/dist/web/assets/system-monitor-window-content-DVwdAvly.js +0 -1
  286. package/dist/web/assets/team-member-sheet-B8vZnJrJ.js +0 -2
  287. package/dist/web/assets/treemap-KZPCXAKY-DL_-JS7u.js +0 -1
  288. package/dist/web/assets/use-accounts-data-DMQAUXSO.js +0 -1
  289. package/dist/web/assets/use-monaco-theme-Ck1i7NEe.js +0 -1
  290. package/dist/web/assets/use-open-team-member-C9EUqPvl.js +0 -1
  291. package/dist/web/assets/ws-auth-D111jj32.js +0 -1
  292. package/dist/web/assets/x-CxoBA0po.js +0 -1
  293. /package/dist/web/assets/{abap-BGbkXtK3.js → abap-BIHt2d9F.js} +0 -0
  294. /package/dist/web/assets/{actionscript-3-CTWUcAG5.js → actionscript-3-rbCNRHFj.js} +0 -0
  295. /package/dist/web/assets/{ada-2xQ2Am_-.js → ada-CN94LQTJ.js} +0 -0
  296. /package/dist/web/assets/{andromeeda-DfXLrHKa.js → andromeeda-BsmcoXuQ.js} +0 -0
  297. /package/dist/web/assets/{apache-CBLZGsyo.js → apache-pRQmqcVZ.js} +0 -0
  298. /package/dist/web/assets/{apex-UYnVUoc7.js → apex-CNEumC1X.js} +0 -0
  299. /package/dist/web/assets/{applescript-9me9Xoqf.js → applescript-DjEVsS-3.js} +0 -0
  300. /package/dist/web/assets/{apply-theme-BVXAUYoN.js → apply-theme-Abd1TNqE.js} +0 -0
  301. /package/dist/web/assets/{ara-CHhiJzie.js → ara-DbhZRlTL.js} +0 -0
  302. /package/dist/web/assets/{asciidoc-CKk0H4sD.js → asciidoc-BsfbAXIK.js} +0 -0
  303. /package/dist/web/assets/{asm-CVc_SeQB.js → asm-Vw5NMXjI.js} +0 -0
  304. /package/dist/web/assets/{aurora-x-BRYBKvUk.js → aurora-x-CoahU6sR.js} +0 -0
  305. /package/dist/web/assets/{awk-BsBtss7k.js → awk-ChKjCxHz.js} +0 -0
  306. /package/dist/web/assets/{ayu-dark-x3ChmRrr.js → ayu-dark-By9RKxTf.js} +0 -0
  307. /package/dist/web/assets/{ayu-light-DUbhGec6.js → ayu-light-CEsgeLON.js} +0 -0
  308. /package/dist/web/assets/{ayu-mirage-Bc9Dyu4v.js → ayu-mirage-CYrtwSLW.js} +0 -0
  309. /package/dist/web/assets/{ballerina-B0CV6yyC.js → ballerina-CCSVz22W.js} +0 -0
  310. /package/dist/web/assets/{bat-BmukVhcd.js → bat-DU4--CMj.js} +0 -0
  311. /package/dist/web/assets/{beancount-DfRKW4qX.js → beancount-DF_tlRlF.js} +0 -0
  312. /package/dist/web/assets/{berry-BXO-GbOz.js → berry-CZTnatvO.js} +0 -0
  313. /package/dist/web/assets/{bibtex-BIMgGN81.js → bibtex-BSpXy8jk.js} +0 -0
  314. /package/dist/web/assets/{bicep-CIaj_N_V.js → bicep-yv1Ydq5Z.js} +0 -0
  315. /package/dist/web/assets/{bird2-Ca5CJ-1r.js → bird2-Db7Z7SMN.js} +0 -0
  316. /package/dist/web/assets/{c-BgN-FzVO.js → c-C3ivhwA4.js} +0 -0
  317. /package/dist/web/assets/{c3-B366g85t.js → c3-N4mKyst9.js} +0 -0
  318. /package/dist/web/assets/{cadence-BDCY3xvX.js → cadence-BYK8tFFk.js} +0 -0
  319. /package/dist/web/assets/{can-open-in-ppm-DyFXJvuW.js → can-open-in-ppm-DU5MH6XF.js} +0 -0
  320. /package/dist/web/assets/{catppuccin-frappe-C2dWlEOM.js → catppuccin-frappe-BK9Tv2XG.js} +0 -0
  321. /package/dist/web/assets/{catppuccin-latte-B6AgUzC2.js → catppuccin-latte-De4mVCp3.js} +0 -0
  322. /package/dist/web/assets/{catppuccin-macchiato-D2r_sUYa.js → catppuccin-macchiato-Bxt_D7cs.js} +0 -0
  323. /package/dist/web/assets/{catppuccin-mocha-CCJOmGcr.js → catppuccin-mocha-Dz2o8gN7.js} +0 -0
  324. /package/dist/web/assets/{clarity-7c_yM38y.js → clarity-BJdh0Pw-.js} +0 -0
  325. /package/dist/web/assets/{clojure-Cx30u1gg.js → clojure-DG-FYGzn.js} +0 -0
  326. /package/dist/web/assets/{cmake-D8nfcw9r.js → cmake-D1imEXan.js} +0 -0
  327. /package/dist/web/assets/{codeowners-z9VeFgy0.js → codeowners-YpylTFB5.js} +0 -0
  328. /package/dist/web/assets/{codeql-DXYEc0p7.js → codeql-ajDEPgqi.js} +0 -0
  329. /package/dist/web/assets/{common-lisp-QB2DYRB7.js → common-lisp-C2sCrd-m.js} +0 -0
  330. /package/dist/web/assets/{coq-DC4-vZSI.js → coq-BqybyDc9.js} +0 -0
  331. /package/dist/web/assets/{csharp-iBJcXIuz.js → csharp-nKCEiujy.js} +0 -0
  332. /package/dist/web/assets/{css-DzLteUnC.js → css-CJSp2CsD.js} +0 -0
  333. /package/dist/web/assets/{csv-plVZ5iV_.js → csv-Nh9vQwQm.js} +0 -0
  334. /package/dist/web/assets/{csv-parser-0OmrzV4G.js → csv-parser-iow1WWML.js} +0 -0
  335. /package/dist/web/assets/{cue-MFyM4FwJ.js → cue-Ch79RPsU.js} +0 -0
  336. /package/dist/web/assets/{cypher-BmV76dTw.js → cypher-CgiOQ6hs.js} +0 -0
  337. /package/dist/web/assets/{d-CukQ97B6.js → d-CmBcySpH.js} +0 -0
  338. /package/dist/web/assets/{dark-plus-BDhlhnd-.js → dark-plus-COLEX2ui.js} +0 -0
  339. /package/dist/web/assets/{dart-BEDiNp89.js → dart-BTAArMcJ.js} +0 -0
  340. /package/dist/web/assets/{dax-CKMJPpmb.js → dax-BbZzRY9i.js} +0 -0
  341. /package/dist/web/assets/{desktop-CjjGerHK.js → desktop-OmQvU3-J.js} +0 -0
  342. /package/dist/web/assets/{diff-CuRWQEJk.js → diff-BEPnb9Fb.js} +0 -0
  343. /package/dist/web/assets/{docker-BzeqNwXY.js → docker-Cg17HgTD.js} +0 -0
  344. /package/dist/web/assets/{dotenv-maAByz4s.js → dotenv-DEMIaY7V.js} +0 -0
  345. /package/dist/web/assets/{dracula-BK-58eQL.js → dracula-BkCFq8SO.js} +0 -0
  346. /package/dist/web/assets/{dracula-soft-BiBFiJ4B.js → dracula-soft-Cjp6-ltF.js} +0 -0
  347. /package/dist/web/assets/{dream-maker-SLz866k9.js → dream-maker-Ce7Y_UKj.js} +0 -0
  348. /package/dist/web/assets/{emacs-lisp-DVVSBvYb.js → emacs-lisp-BjpyfTbN.js} +0 -0
  349. /package/dist/web/assets/{everforest-dark-B3wCaZGh.js → everforest-dark-9r4okw1s.js} +0 -0
  350. /package/dist/web/assets/{everforest-light-BOv6DEcT.js → everforest-light-GCQTZ3Ju.js} +0 -0
  351. /package/dist/web/assets/{fennel-mxeAVgSR.js → fennel-ITjY5Z6u.js} +0 -0
  352. /package/dist/web/assets/{fish-CNPEh-7O.js → fish-DP2uEzyg.js} +0 -0
  353. /package/dist/web/assets/{fluent-DzjF371g.js → fluent-irzaP1f6.js} +0 -0
  354. /package/dist/web/assets/{format-bytes-BxBoqnS1.js → format-bytes-B9Dbme9a.js} +0 -0
  355. /package/dist/web/assets/{fortran-free-form-BwcDAA-k.js → fortran-free-form-BAPoainr.js} +0 -0
  356. /package/dist/web/assets/{gdscript-Dw53oyoq.js → gdscript-DJ098V1z.js} +0 -0
  357. /package/dist/web/assets/{gdshader-Ch4uX8TL.js → gdshader-DS2Jfy-K.js} +0 -0
  358. /package/dist/web/assets/{genie-BmyA3sav.js → genie-CqfOaFFx.js} +0 -0
  359. /package/dist/web/assets/{gherkin-TJfGbfw6.js → gherkin-CoZ2ucDH.js} +0 -0
  360. /package/dist/web/assets/{github-dark-DfjGEBZm.js → github-dark-BNLgnSO9.js} +0 -0
  361. /package/dist/web/assets/{github-dark-default-C05CO5WG.js → github-dark-default-CYlSggwi.js} +0 -0
  362. /package/dist/web/assets/{github-dark-dimmed-tc58hIbY.js → github-dark-dimmed-DumUysDk.js} +0 -0
  363. /package/dist/web/assets/{github-dark-high-contrast-Cbjouhax.js → github-dark-high-contrast-TKrcDJ2I.js} +0 -0
  364. /package/dist/web/assets/{github-light-DyPx5kxT.js → github-light-DVENFHLJ.js} +0 -0
  365. /package/dist/web/assets/{github-light-default-CwQhvvq0.js → github-light-default-DtN8AGcE.js} +0 -0
  366. /package/dist/web/assets/{github-light-high-contrast-BSEfGuGA.js → github-light-high-contrast-NSyF37x4.js} +0 -0
  367. /package/dist/web/assets/{gleam-CO9BliEd.js → gleam-hp4NMSb5.js} +0 -0
  368. /package/dist/web/assets/{gn-3w7c2jXR.js → gn-Dptw2PEu.js} +0 -0
  369. /package/dist/web/assets/{gnuplot-B9V8Da0h.js → gnuplot-9juRzjwv.js} +0 -0
  370. /package/dist/web/assets/{go-DZFS3BH_.js → go-D-QLCda0.js} +0 -0
  371. /package/dist/web/assets/{groovy-BoXoCYbJ.js → groovy-DHKNy6Eh.js} +0 -0
  372. /package/dist/web/assets/{gruvbox-dark-hard-PlwQadvn.js → gruvbox-dark-hard-BFD6aQdB.js} +0 -0
  373. /package/dist/web/assets/{gruvbox-dark-medium-BCuSx7jF.js → gruvbox-dark-medium-D5llYBNp.js} +0 -0
  374. /package/dist/web/assets/{gruvbox-dark-soft-BxNVGg5m.js → gruvbox-dark-soft-DOztQmNR.js} +0 -0
  375. /package/dist/web/assets/{gruvbox-light-hard-Caj_mHvE.js → gruvbox-light-hard-BFGD-8Pd.js} +0 -0
  376. /package/dist/web/assets/{gruvbox-light-medium-BbWauaVM.js → gruvbox-light-medium-DzoyXgT7.js} +0 -0
  377. /package/dist/web/assets/{gruvbox-light-soft-sTtAiBhF.js → gruvbox-light-soft-B1Ix2zLN.js} +0 -0
  378. /package/dist/web/assets/{haskell-DdAcCutT.js → haskell-BnrJ0k7G.js} +0 -0
  379. /package/dist/web/assets/{haxe-CAaBQSbQ.js → haxe-DwShHT_-.js} +0 -0
  380. /package/dist/web/assets/{hcl-D1Y6h8Ni.js → hcl-VOjEibVB.js} +0 -0
  381. /package/dist/web/assets/{hjson-C7gAy4J-.js → hjson-BHEn7pNn.js} +0 -0
  382. /package/dist/web/assets/{hlsl-BLCpvTDs.js → hlsl-CrvxlGii.js} +0 -0
  383. /package/dist/web/assets/{horizon-A4TcfP_V.js → horizon-D3T-P0u6.js} +0 -0
  384. /package/dist/web/assets/{horizon-bright-D4gSyLkJ.js → horizon-bright-vifGsEdk.js} +0 -0
  385. /package/dist/web/assets/{houston-B57jZ5OJ.js → houston-IrOgT7r4.js} +0 -0
  386. /package/dist/web/assets/{hy-C-_Ikdzx.js → hy-5eSgTJ8G.js} +0 -0
  387. /package/dist/web/assets/{image-gallery-DZFo6X0Q.js → image-gallery-COea0nSk.js} +0 -0
  388. /package/dist/web/assets/{imba-BwypdGq0.js → imba-Dp0I4DVl.js} +0 -0
  389. /package/dist/web/assets/{ini-DFC2fVTV.js → ini-CHDKad9O.js} +0 -0
  390. /package/dist/web/assets/{java-K2R-OeI_.js → java-YLv7IDJ1.js} +0 -0
  391. /package/dist/web/assets/{javascript-Dwc_x-Qy.js → javascript-jr4kIdgl.js} +0 -0
  392. /package/dist/web/assets/{json-BWJ0jCOR.js → json-EJWSOZfp.js} +0 -0
  393. /package/dist/web/assets/{json5-CyjYMs2j.js → json5-D6f_uNwJ.js} +0 -0
  394. /package/dist/web/assets/{jsonc-DpY-971T.js → jsonc-DrHCdmos.js} +0 -0
  395. /package/dist/web/assets/{jsonl-MOid1Cv5.js → jsonl-Cwc3cXEL.js} +0 -0
  396. /package/dist/web/assets/{jsonnet-C8r7u8hK.js → jsonnet-BwZfaIFT.js} +0 -0
  397. /package/dist/web/assets/{jssm-aiVzgRKq.js → jssm-BpEmg_MT.js} +0 -0
  398. /package/dist/web/assets/{jsx-BouDi2uL.js → jsx-DBGPwcr4.js} +0 -0
  399. /package/dist/web/assets/{kanagawa-dragon-BDBacW42.js → kanagawa-dragon-DRfVaGIX.js} +0 -0
  400. /package/dist/web/assets/{kanagawa-lotus-Bjc_h4S5.js → kanagawa-lotus-CjOlny0Q.js} +0 -0
  401. /package/dist/web/assets/{kanagawa-wave-h12w2GK-.js → kanagawa-wave-DvdM88a4.js} +0 -0
  402. /package/dist/web/assets/{kdl-By4Gal6E.js → kdl-DSo3PvM0.js} +0 -0
  403. /package/dist/web/assets/{kotlin-BaieUpjq.js → kotlin-BV8TwCGu.js} +0 -0
  404. /package/dist/web/assets/{kusto-bFewy_Sb.js → kusto-DCo1Fdmm.js} +0 -0
  405. /package/dist/web/assets/{laserwave-DpFhqINu.js → laserwave-DPX9FvD9.js} +0 -0
  406. /package/dist/web/assets/{lean-DDn2i30H.js → lean-Cya8dqZu.js} +0 -0
  407. /package/dist/web/assets/{less-DtaLKtJv.js → less-CJUPgkIs.js} +0 -0
  408. /package/dist/web/assets/{libesm-DJd6dkYL.js → libesm-CcPYXCKp.js} +0 -0
  409. /package/dist/web/assets/{light-plus-BiMMZ8in.js → light-plus-BXXrlFJH.js} +0 -0
  410. /package/dist/web/assets/{llvm-BI0xMYjk.js → llvm-CUbQanZr.js} +0 -0
  411. /package/dist/web/assets/{log-BDnXCvPh.js → log-B3fFlSMd.js} +0 -0
  412. /package/dist/web/assets/{logo-DeOTbfcP.js → logo-ucAyw6zf.js} +0 -0
  413. /package/dist/web/assets/{luau-C8pWPPhP.js → luau-C4l6TSTB.js} +0 -0
  414. /package/dist/web/assets/{make-Du6n4Vqb.js → make-CDtGIVc7.js} +0 -0
  415. /package/dist/web/assets/{markdown-CQOwzr1d.js → markdown-CH1zKu2p.js} +0 -0
  416. /package/dist/web/assets/{material-theme-V1uvvG3T.js → material-theme-CEuGVTmh.js} +0 -0
  417. /package/dist/web/assets/{material-theme-darker-YOeOea0A.js → material-theme-darker-CUZ3MoIr.js} +0 -0
  418. /package/dist/web/assets/{material-theme-lighter-gsPcqGZh.js → material-theme-lighter-DxAqJSid.js} +0 -0
  419. /package/dist/web/assets/{material-theme-ocean-DXpcGhUO.js → material-theme-ocean-BSvvHJp6.js} +0 -0
  420. /package/dist/web/assets/{material-theme-palenight-CuXKc4Kv.js → material-theme-palenight-QVOl50_m.js} +0 -0
  421. /package/dist/web/assets/{matlab-DKfAoKWM.js → matlab-CZLQLwUp.js} +0 -0
  422. /package/dist/web/assets/{mdx-B3lHrBfA.js → mdx-DO4NJsOo.js} +0 -0
  423. /package/dist/web/assets/{mermaid-aFxjKRiq.js → mermaid-CIwzg1uO.js} +0 -0
  424. /package/dist/web/assets/{min-dark-z_K9sY1g.js → min-dark-BdIgslXy.js} +0 -0
  425. /package/dist/web/assets/{min-light-CKEPOwP-.js → min-light-DyU-T1r2.js} +0 -0
  426. /package/dist/web/assets/{mipsasm-Czl4687V.js → mipsasm-DRad-Klm.js} +0 -0
  427. /package/dist/web/assets/{mojo-XEmb6dMz.js → mojo-DXp5LDOc.js} +0 -0
  428. /package/dist/web/assets/{monokai-CeewfP-T.js → monokai-BiKX3qby.js} +0 -0
  429. /package/dist/web/assets/{moonbit-BFs6rC9o.js → moonbit-BOUoLF5r.js} +0 -0
  430. /package/dist/web/assets/{move-Dru-OXAq.js → move-Dlk64FWK.js} +0 -0
  431. /package/dist/web/assets/{narrat-C6i2yGbz.js → narrat-B-qd2Lh0.js} +0 -0
  432. /package/dist/web/assets/{nextflow-groovy-CNbSHaJ-.js → nextflow-groovy-iAMYas0F.js} +0 -0
  433. /package/dist/web/assets/{night-owl-XXoqvAPs.js → night-owl-3YNqjftR.js} +0 -0
  434. /package/dist/web/assets/{night-owl-light-Dm8251t1.js → night-owl-light-GIncHb5w.js} +0 -0
  435. /package/dist/web/assets/{nix-DUvtyLsY.js → nix-xjlEb3uw.js} +0 -0
  436. /package/dist/web/assets/{nord-DapQODEA.js → nord-C8tvWx7P.js} +0 -0
  437. /package/dist/web/assets/{nushell-WDWgg9A2.js → nushell-BqBb4pU6.js} +0 -0
  438. /package/dist/web/assets/{objective-c-Dg6Li1Kw.js → objective-c-Bk6s0Cn5.js} +0 -0
  439. /package/dist/web/assets/{objective-cpp-DLTQ4Pyg.js → objective-cpp-DGTVWQ3V.js} +0 -0
  440. /package/dist/web/assets/{ocaml-gH2M-t6b.js → ocaml-D6wPQ4kw.js} +0 -0
  441. /package/dist/web/assets/{odin-BBj0SPaN.js → odin-C9mw2xRN.js} +0 -0
  442. /package/dist/web/assets/{one-dark-pro-C8irccD3.js → one-dark-pro-SMBlneFb.js} +0 -0
  443. /package/dist/web/assets/{one-light-THMntV-R.js → one-light-C9JMU1Cx.js} +0 -0
  444. /package/dist/web/assets/{openscad-BEjRF8ZV.js → openscad-C0I9CtuA.js} +0 -0
  445. /package/dist/web/assets/{pascal-C7Kr1uH_.js → pascal-D0z4DJnY.js} +0 -0
  446. /package/dist/web/assets/{pkl-CBAaOrr-.js → pkl-CITYNGVz.js} +0 -0
  447. /package/dist/web/assets/{plastic-B1qtUEVU.js → plastic-Bf0T6rmg.js} +0 -0
  448. /package/dist/web/assets/{plsql-KzVm4VQQ.js → plsql-Chr907pu.js} +0 -0
  449. /package/dist/web/assets/{po-BDthh1AB.js → po-07U75CYV.js} +0 -0
  450. /package/dist/web/assets/{poimandres-DIsV0oVO.js → poimandres-B0T4qwXY.js} +0 -0
  451. /package/dist/web/assets/{polar-HfZSDZob.js → polar-BvNJMMV5.js} +0 -0
  452. /package/dist/web/assets/{postcss-D2mpQWcD.js → postcss-BSdf-zzo.js} +0 -0
  453. /package/dist/web/assets/{powerquery-BmWOahNZ.js → powerquery-B2Ad_HK8.js} +0 -0
  454. /package/dist/web/assets/{powershell-DuBkKB6U.js → powershell-DO5WY2v2.js} +0 -0
  455. /package/dist/web/assets/{prisma-DMOCr8t3.js → prisma-BfaRPYzs.js} +0 -0
  456. /package/dist/web/assets/{prolog-OntlFpI5.js → prolog-Cz0Nue9e.js} +0 -0
  457. /package/dist/web/assets/{proto-kD5tYlX3.js → proto-FVleUZJO.js} +0 -0
  458. /package/dist/web/assets/{puppet-CO4XS5MF.js → puppet-BEX5o7hE.js} +0 -0
  459. /package/dist/web/assets/{purescript-D_e2LzQx.js → purescript-BZX6Kw4j.js} +0 -0
  460. /package/dist/web/assets/{python-BcK-Cw6k.js → python-CO89UIxE.js} +0 -0
  461. /package/dist/web/assets/{qmldir-B-9b87fC.js → qmldir-DH526DWB.js} +0 -0
  462. /package/dist/web/assets/{qss-hWjUDAxi.js → qss-wp8im4Iz.js} +0 -0
  463. /package/dist/web/assets/{r-D0sNqudq.js → r-F9n--bvq.js} +0 -0
  464. /package/dist/web/assets/{racket-9cjYYXcq.js → racket-BQvbOE5D.js} +0 -0
  465. /package/dist/web/assets/{raku-ntPupo_R.js → raku-B0iWSynj.js} +0 -0
  466. /package/dist/web/assets/{red-D814sEjX.js → red-Cm00r9eI.js} +0 -0
  467. /package/dist/web/assets/{reg-bPzNEQh4.js → reg-CBuhna22.js} +0 -0
  468. /package/dist/web/assets/{regexp-B_zg64Ge.js → regexp-C9j1_6oU.js} +0 -0
  469. /package/dist/web/assets/{rel-CoB0Qjm-.js → rel-BYzlBhbq.js} +0 -0
  470. /package/dist/web/assets/{resolve-theme-CMp5xxCW.js → resolve-theme-Dm8ehbOv.js} +0 -0
  471. /package/dist/web/assets/{riscv-DcVTEi_B.js → riscv-CQQP0Ro9.js} +0 -0
  472. /package/dist/web/assets/{ron-CcAQMYzM.js → ron-j1ON9YzM.js} +0 -0
  473. /package/dist/web/assets/{rose-pine-jtG38kvA.js → rose-pine-Cbri3jon.js} +0 -0
  474. /package/dist/web/assets/{rose-pine-dawn-DkSLvjDV.js → rose-pine-dawn-BMuvKrGo.js} +0 -0
  475. /package/dist/web/assets/{rose-pine-moon-DJx8AxMs.js → rose-pine-moon-4biZzaYD.js} +0 -0
  476. /package/dist/web/assets/{rosmsg-BnfYFiWk.js → rosmsg-CXx22rtz.js} +0 -0
  477. /package/dist/web/assets/{rust-DxgQnpfl.js → rust-D28cFIhL.js} +0 -0
  478. /package/dist/web/assets/{sass-DTgjjspH.js → sass-DtNw4V28.js} +0 -0
  479. /package/dist/web/assets/{scala-xEozebyS.js → scala-hv69_YQC.js} +0 -0
  480. /package/dist/web/assets/{scheme-sfgxdr_D.js → scheme-Dtp9B_ng.js} +0 -0
  481. /package/dist/web/assets/{sdbl-BpdzD-Uv.js → sdbl-DEwEngAE.js} +0 -0
  482. /package/dist/web/assets/{shellscript-B2o7zCrN.js → shellscript-CCOF9tox.js} +0 -0
  483. /package/dist/web/assets/{slack-dark-DxfgNfgJ.js → slack-dark-DT0E0ABt.js} +0 -0
  484. /package/dist/web/assets/{slack-ochin-BMSGMkt8.js → slack-ochin-DHHiQnxo.js} +0 -0
  485. /package/dist/web/assets/{smalltalk-DCb8haRt.js → smalltalk-BF_I35xJ.js} +0 -0
  486. /package/dist/web/assets/{snazzy-light-Y06j56Vj.js → snazzy-light-Cv7tIZo9.js} +0 -0
  487. /package/dist/web/assets/{solarized-dark-z1W-RVhp.js → solarized-dark-wZ5YPCys.js} +0 -0
  488. /package/dist/web/assets/{solarized-light-BRAGTpW5.js → solarized-light-DGDOr1AS.js} +0 -0
  489. /package/dist/web/assets/{solidity-CDTZVMHy.js → solidity-BJknuPqJ.js} +0 -0
  490. /package/dist/web/assets/{splunk-CFjv6-V_.js → splunk-B1ClO_KU.js} +0 -0
  491. /package/dist/web/assets/{sql-Ce-1ETwT.js → sql-CXZ66NtF.js} +0 -0
  492. /package/dist/web/assets/{ssh-config-Bcs3SD-x.js → ssh-config-kgM67Sf6.js} +0 -0
  493. /package/dist/web/assets/{stylus-Co5Var6O.js → stylus-RcVaInR-.js} +0 -0
  494. /package/dist/web/assets/{swift-Irt_r7Fy.js → swift-Cm0fh2lX.js} +0 -0
  495. /package/dist/web/assets/{synthwave-84-BOgCDIL-.js → synthwave-84-CwLiazxr.js} +0 -0
  496. /package/dist/web/assets/{system-verilog-DSwfS0ci.js → system-verilog-CzYaDVLH.js} +0 -0
  497. /package/dist/web/assets/{systemd-C-HqVFLV.js → systemd-DbSagfLw.js} +0 -0
  498. /package/dist/web/assets/{talonscript-B7lshRGY.js → talonscript-BCFnWejL.js} +0 -0
  499. /package/dist/web/assets/{tasl-BZXSTCA-.js → tasl-BUdqtEe1.js} +0 -0
  500. /package/dist/web/assets/{tcl-B_vaMM01.js → tcl-CR_lTV9N.js} +0 -0
  501. /package/dist/web/assets/{terraform-B7kDBVtX.js → terraform-Bqsha-xe.js} +0 -0
  502. /package/dist/web/assets/{tokyo-night-CW1uC1bG.js → tokyo-night-Cnuo6JB6.js} +0 -0
  503. /package/dist/web/assets/{toml-Af6Dxufp.js → toml-CLFdhT22.js} +0 -0
  504. /package/dist/web/assets/{tsv-BSFZ-g3s.js → tsv-Dw3tLrZN.js} +0 -0
  505. /package/dist/web/assets/{tsx-CN8kIwG_.js → tsx-B8k1sFqw.js} +0 -0
  506. /package/dist/web/assets/{turtle-BSUyR8DV.js → turtle-BMKMfTrj.js} +0 -0
  507. /package/dist/web/assets/{typescript-2AZeIhCA.js → typescript-D38LfGSl.js} +0 -0
  508. /package/dist/web/assets/{typespec-DRZ0XiHC.js → typespec-EbgGJHV_.js} +0 -0
  509. /package/dist/web/assets/{typst-p1gfDr4O.js → typst-CQXV2SzX.js} +0 -0
  510. /package/dist/web/assets/{utils-IrnQujwR.js → utils-CwNUra6_.js} +0 -0
  511. /package/dist/web/assets/{v-B705HYgD.js → v-Ci1jObJJ.js} +0 -0
  512. /package/dist/web/assets/{vala-CyU0S4KW.js → vala-C_NdfqrY.js} +0 -0
  513. /package/dist/web/assets/{vb-DCWUzR_1.js → vb-K_r_h_s8.js} +0 -0
  514. /package/dist/web/assets/{vendor-xterm-MrmaYoD2.js → vendor-xterm-BtjgHRUe.js} +0 -0
  515. /package/dist/web/assets/{verilog-CrRE3TC7.js → verilog-DQPYLsZI.js} +0 -0
  516. /package/dist/web/assets/{vesper-BH5N5eRr.js → vesper-BrmzEV8s.js} +0 -0
  517. /package/dist/web/assets/{vhdl-CT1Mz-fu.js → vhdl-CjxQGaH2.js} +0 -0
  518. /package/dist/web/assets/{viml-B0LtAesb.js → viml-CTKJNQH1.js} +0 -0
  519. /package/dist/web/assets/{vitesse-black-DqQvxGCJ.js → vitesse-black-i-H_3p1i.js} +0 -0
  520. /package/dist/web/assets/{vitesse-dark-C6MRSe2N.js → vitesse-dark-DZC_Yy3_.js} +0 -0
  521. /package/dist/web/assets/{vitesse-light-B-8DQ5R9.js → vitesse-light-rf4kpmk8.js} +0 -0
  522. /package/dist/web/assets/{vyper-D7YgYuMk.js → vyper-BLnOw4Nf.js} +0 -0
  523. /package/dist/web/assets/{wasm-BgEp8ivq.js → wasm-CWeHvGNG.js} +0 -0
  524. /package/dist/web/assets/{wasm-Dj9JHuDf.js → wasm-DbLMmiW0.js} +0 -0
  525. /package/dist/web/assets/{wenyan-CLcU30u4.js → wenyan-CLwdRuzd.js} +0 -0
  526. /package/dist/web/assets/{wgsl-DEtNo0DR.js → wgsl-CBTDMVJR.js} +0 -0
  527. /package/dist/web/assets/{wikitext-CXiDN9zY.js → wikitext-CQHrF84e.js} +0 -0
  528. /package/dist/web/assets/{wit-0hROlx_P.js → wit-8xdbdipU.js} +0 -0
  529. /package/dist/web/assets/{wolfram-nhKFI8Qz.js → wolfram-tFwx32a_.js} +0 -0
  530. /package/dist/web/assets/{yaml-CNoUgoPD.js → yaml-BP8N91fU.js} +0 -0
  531. /package/dist/web/assets/{zenscript-BgGAyJ15.js → zenscript-B10Pj7JT.js} +0 -0
  532. /package/dist/web/assets/{zig-Be_I-6Rs.js → zig-BZKcTtrK.js} +0 -0
@@ -1,9 +1,9 @@
1
- const __vite__mapDeps=(i,m=__vite__mapDeps,d=(m.f||(m.f=["assets/markdown-renderer-HPQE8ilD.js","assets/vendor-mermaid-CXxglerV.js","assets/rolldown-runtime-FhOqtrmT.js","assets/window-store-D0HbQ1pM.js","assets/react-D1Yg256j.js","assets/vendor-markdown-Ls5AcU91.js","assets/markdown-renderer-C1KVXiXr.js","assets/index-A3ripVe5.js","assets/window-pip-registry-CrCYYTTf.js","assets/panel-store-BmdcSBNb.js","assets/utils-IrnQujwR.js","assets/use-coarse-long-press-BmI_GVW5.js","assets/createLucideIcon-D8pyde1A.js","assets/button-DX32ffge.js","assets/vendor-ui-CaeeFO0B.js","assets/context-menu-CJL8L98s.js","assets/portal-container-context-DKymYOY-.js","assets/chevron-right-De-Wz5Lz.js","assets/circle-BCy0AUCo.js","assets/mobile-bottom-sheet-CmySDB6I.js","assets/use-visual-viewport-Bfl3Bxxb.js","assets/use-is-mobile-D1weanbj.js","assets/api-client-CEYCBt_0.js","assets/project-store-wWZ6bjwq.js","assets/ws-auth-D111jj32.js","assets/settings-store-Bsu_5zIU.js","assets/streaming-store-9XVmAMfV.js","assets/tab-store-1xYJb0gM.js","assets/apply-theme-BVXAUYoN.js","assets/resolve-theme-CMp5xxCW.js","assets/arrow-left-CyFcsyzD.js","assets/bot-D6sx11y0.js","assets/check-DN75Ucvz.js","assets/chevron-down-Dp0rpHb8.js","assets/chevron-up-8PbsNiJp.js","assets/clock-C1CQUQPZ.js","assets/sparkles-Dh-_J2Rd.js","assets/copy-BewHj66E.js","assets/database-Y3ESDK4-.js","assets/download-DG3_9xXy.js","assets/eye-off-GjXVuAOn.js","assets/eye-gWwaF4Lg.js","assets/loader-circle-DPMrnLQ2.js","assets/monitor-C835ucWH.js","assets/x-CxoBA0po.js","assets/index-B9Wbjl0o.css","assets/image-gallery-DZFo6X0Q.js","assets/run-in-terminal-Sb6TFU4f.js","assets/edit-diff-preview-F7YlT9fY.js","assets/libesm-DJd6dkYL.js"])))=>i.map(i=>d[i]);
2
- import{o as e}from"./rolldown-runtime-FhOqtrmT.js";import{S as t,x as n}from"./vendor-markdown-Ls5AcU91.js";import{t as r}from"./createLucideIcon-D8pyde1A.js";import{n as i,t as a}from"./circle-question-mark-CzR7YRc-.js";import{t as o}from"./bot-D6sx11y0.js";import{t as s}from"./chevron-down-Dp0rpHb8.js";import{t as c}from"./chevron-right-De-Wz5Lz.js";import{t as l}from"./clock-C1CQUQPZ.js";import{t as u}from"./code-DJgYrFzm.js";import{n as d,t as f}from"./sparkles-Dh-_J2Rd.js";import{t as p}from"./loader-circle-DPMrnLQ2.js";import{t as m}from"./send-Bb0jtcR6.js";import{q as h}from"./vendor-mermaid-CXxglerV.js";import{t as g}from"./utils-IrnQujwR.js";import{t as _}from"./tab-store-1xYJb0gM.js";import{Ar as v,Dr as y,It as b,Mr as x,Nn as S,Rn as C,_r as w,nn as T,qn as E,r as D}from"./index-A3ripVe5.js";import{t as O}from"./use-blob-url-BMtoAEL4.js";import{r as k,t as A}from"./image-gallery-DZFo6X0Q.js";var j=r(`circle-x`,[[`circle`,{cx:`12`,cy:`12`,r:`10`,key:`1mglay`}],[`path`,{d:`m15 9-6 6`,key:`1uzhvr`}],[`path`,{d:`m9 9 6 6`,key:`z0biqf`}]]),M=r(`clipboard-list`,[[`rect`,{width:`8`,height:`4`,x:`8`,y:`2`,rx:`1`,ry:`1`,key:`tgr4d6`}],[`path`,{d:`M16 4h2a2 2 0 0 1 2 2v14a2 2 0 0 1-2 2H6a2 2 0 0 1-2-2V6a2 2 0 0 1 2-2h2`,key:`116196`}],[`path`,{d:`M12 11h4`,key:`1jrz19`}],[`path`,{d:`M12 16h4`,key:`n85exb`}],[`path`,{d:`M8 11h.01`,key:`1dfujw`}],[`path`,{d:`M8 16h.01`,key:`18s6g9`}]]),N=r(`file-pen`,[[`path`,{d:`M12.659 22H18a2 2 0 0 0 2-2V8a2.4 2.4 0 0 0-.706-1.706l-3.588-3.588A2.4 2.4 0 0 0 14 2H6a2 2 0 0 0-2 2v9.34`,key:`o6klzx`}],[`path`,{d:`M14 2v5a1 1 0 0 0 1 1h5`,key:`wfsgrz`}],[`path`,{d:`M10.378 12.622a1 1 0 0 1 3 3.003L8.36 20.637a2 2 0 0 1-.854.506l-2.867.837a.5.5 0 0 1-.62-.62l.836-2.869a2 2 0 0 1 .506-.853z`,key:`zhnas1`}]]),P=r(`file-plus-corner`,[[`path`,{d:`M11.35 22H6a2 2 0 0 1-2-2V4a2 2 0 0 1 2-2h8a2.4 2.4 0 0 1 1.706.706l3.588 3.588A2.4 2.4 0 0 1 20 8v5.35`,key:`17jvcc`}],[`path`,{d:`M14 2v5a1 1 0 0 0 1 1h5`,key:`wfsgrz`}],[`path`,{d:`M14 19h6`,key:`bvotb8`}],[`path`,{d:`M17 16v6`,key:`18yu1i`}]]),F=r(`file-search`,[[`path`,{d:`M6 22a2 2 0 0 1-2-2V4a2 2 0 0 1 2-2h8a2.4 2.4 0 0 1 1.704.706l3.588 3.588A2.4 2.4 0 0 1 20 8v12a2 2 0 0 1-2 2z`,key:`1oefj6`}],[`path`,{d:`M14 2v5a1 1 0 0 0 1 1h5`,key:`wfsgrz`}],[`circle`,{cx:`11.5`,cy:`14.5`,r:`2.5`,key:`1bq0ko`}],[`path`,{d:`M13.3 16.3 15 18`,key:`2quom7`}]]),I=r(`image-plus`,[[`path`,{d:`M16 5h6`,key:`1vod17`}],[`path`,{d:`M19 2v6`,key:`4bpg5p`}],[`path`,{d:`M21 11.5V19a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2V5a2 2 0 0 1 2-2h7.5`,key:`1ue2ih`}],[`path`,{d:`m21 15-3.086-3.086a2 2 0 0 0-2.828 0L6 21`,key:`1xmnt7`}],[`circle`,{cx:`9`,cy:`9`,r:`2`,key:`af1f0g`}]]),L=r(`list-checks`,[[`path`,{d:`M13 5h8`,key:`a7qcls`}],[`path`,{d:`M13 12h8`,key:`h98zly`}],[`path`,{d:`M13 19h8`,key:`c3s6r1`}],[`path`,{d:`m3 17 2 2 4-4`,key:`1jhpwq`}],[`path`,{d:`m3 7 2 2 4-4`,key:`1obspn`}]]),R=r(`list-todo`,[[`path`,{d:`M13 5h8`,key:`a7qcls`}],[`path`,{d:`M13 12h8`,key:`h98zly`}],[`path`,{d:`M13 19h8`,key:`c3s6r1`}],[`path`,{d:`m3 17 2 2 4-4`,key:`1jhpwq`}],[`rect`,{x:`3`,y:`4`,width:`6`,height:`6`,rx:`1`,key:`cif1o7`}]]),z=e(t(),1),B=n(),ee=(0,z.lazy)(()=>h(()=>import(`./markdown-renderer-HPQE8ilD.js`).then(e=>({default:e.MarkdownRenderer})),__vite__mapDeps([0,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20,21,22,23,24,25,26,27,28,29,30,31,32,33,34,35,36,37,38,39,40,41,42,43,44,45,46,47])));function V({content:e,maxHeight:t=`max-h-48`}){return(0,B.jsx)(z.Suspense,{fallback:(0,B.jsx)(`div`,{className:`animate-pulse h-4 bg-muted rounded`}),children:(0,B.jsx)(ee,{content:e,className:`text-text-secondary overflow-auto ${t}`})})}var te={task_assignment:{label:`task`,className:`bg-primary/20 text-primary`},idle_notification:{label:`idle`,className:`bg-warning/20 text-warning`},completion:{label:`done`,className:`bg-success/20 text-success`},shutdown_request:{label:`shutdown`,className:`bg-error/20 text-error`},shutdown_approved:{label:`shutdown ✓`,className:`bg-text-3/20 text-text-3`},shutdown_response:{label:`shutdown reply`,className:`bg-text-3/20 text-text-3`},plan_approval_request:{label:`plan review`,className:`bg-primary/20 text-primary`},plan_approval_response:{label:`plan reply`,className:`bg-primary/20 text-primary`}},ne=new Set([`to`,`message`,`summary`,`notify_when_idle`,`recipient`,`content`,`type`]),H=e=>typeof e==`string`?e:e==null?``:String(e);function U(e){if(!e||typeof e!=`object`||Array.isArray(e))return null;let t=e;return typeof t.type!=`string`||!t.type?null:{type:t.type,request_id:typeof t.request_id==`string`?t.request_id:void 0,approve:typeof t.approve==`boolean`?t.approve:void 0,reason:typeof t.reason==`string`?t.reason:void 0,feedback:typeof t.feedback==`string`?t.feedback:void 0}}function re(e){let t=e.trim();if(!t.startsWith(`{`))return null;try{return U(JSON.parse(t))}catch{return null}}function W(e){let t=H(e.to)||H(e.recipient),n=e.message??e.content,r=U(n)??re(H(n)),i=r?``:H(n),a=H(e.type),o=r?.type||(a&&a!==`message`?a:`message`),s=H(e.summary).trim(),c=Object.entries(e).filter(([e])=>!ne.has(e)).map(([e,t])=>({key:e,value:typeof t==`string`?t:JSON.stringify(t)??``}));return{to:t,summary:s||void 0,text:i,firstLine:i.split(`
3
- `).map(e=>e.trim()).find(e=>e.length>0)??``,protocol:r??void 0,kind:o,notifyWhenIdle:e.notify_when_idle===!0,extras:c}}function G(e){if(!e)return null;let t;try{t=JSON.parse(e)}catch{return null}if(Array.isArray(t)){let e=H(t.find(e=>e&&typeof e==`object`&&e.type===`text`)?.text);if(!e)return null;try{t=JSON.parse(e)}catch{return null}}if(!t||typeof t!=`object`||Array.isArray(t))return null;let n=t;if(typeof n.success!=`boolean`)return null;let r=n.pin&&typeof n.pin==`object`?n.pin:null;return{ok:n.success,detail:H(n.message)||H(n.error)||void 0,peer:r&&H(r.name)||void 0,ref:r&&H(r.ref)||void 0}}function ie({kind:e}){if(e===`message`)return null;let t=te[e];return(0,B.jsx)(`span`,{className:`inline-block rounded px-1.5 py-0.5 text-[10px] ${t?.className??`bg-panel-2 text-text-3`}`,children:t?.label??e})}function ae({name:e,input:t}){let n=W(t),r=n.summary||n.firstLine||(n.protocol?n.kind:``),a=r.length>72?`${r.slice(0,72)}…`:r;return(0,B.jsxs)(B.Fragment,{children:[e,` `,(0,B.jsxs)(`span`,{className:`text-text-subtle`,children:[(0,B.jsx)(i,{className:`size-3 inline`}),` `,n.to||`unknown`,a?` · ${a}`:``]}),n.notifyWhenIdle&&(0,B.jsx)(l,{className:`size-3 inline ml-1 text-text-3`})]})}function oe({input:e}){let t=W(e);return(0,B.jsxs)(`div`,{className:`space-y-1.5`,children:[(0,B.jsxs)(`div`,{className:`flex flex-wrap items-center gap-1.5`,children:[(0,B.jsx)(`span`,{className:`text-text-subtle`,children:`To`}),(0,B.jsx)(`span`,{className:`font-medium text-text-primary`,children:t.to||`unknown`}),(0,B.jsx)(ie,{kind:t.kind}),t.notifyWhenIdle&&(0,B.jsxs)(`span`,{className:`inline-flex items-center gap-1 rounded px-1.5 py-0.5 text-[10px] bg-panel-2 text-text-3`,children:[(0,B.jsx)(l,{className:`size-3`}),` notify when idle`]})]}),!!t.text&&(0,B.jsx)(V,{content:t.text,maxHeight:`max-h-40`}),t.protocol&&(0,B.jsxs)(`div`,{className:`space-y-0.5 text-text-secondary`,children:[t.protocol.approve!=null&&(0,B.jsxs)(`p`,{children:[t.protocol.approve?`Approved`:`Rejected`,t.protocol.request_id?(0,B.jsxs)(`span`,{className:`text-text-subtle font-mono`,children:[` · `,t.protocol.request_id]}):null]}),!!t.protocol.reason&&(0,B.jsx)(`p`,{className:`text-text-subtle`,children:t.protocol.reason}),!!t.protocol.feedback&&(0,B.jsx)(`p`,{className:`text-text-subtle`,children:t.protocol.feedback})]}),t.extras.length>0&&(0,B.jsx)(`div`,{className:`space-y-0.5`,children:t.extras.map(e=>(0,B.jsxs)(`p`,{className:`text-text-subtle`,children:[(0,B.jsx)(`span`,{className:`font-mono`,children:e.key}),`: `,e.value]},e.key))})]})}function se({output:e}){let[t,n]=(0,z.useState)(!1),r=G(e);return r?(0,B.jsxs)(`div`,{className:`border-t border-border pt-1.5 space-y-1`,children:[(0,B.jsxs)(`div`,{className:`flex items-center gap-1.5 flex-wrap`,children:[r.ok?(0,B.jsx)(v,{className:`size-3 text-success shrink-0`}):(0,B.jsx)(j,{className:`size-3 text-error shrink-0`}),(0,B.jsx)(`span`,{className:r.ok?`text-success`:`text-error`,children:r.ok?`Delivered`:`Not delivered`}),!!r.detail&&(0,B.jsxs)(`span`,{className:`text-text-subtle`,children:[`· `,r.detail]}),!!r.ref&&(0,B.jsxs)(`span`,{className:`text-text-3 font-mono text-[10px]`,children:[`[`,r.ref,`]`]})]}),(0,B.jsxs)(`button`,{type:`button`,onClick:()=>n(!t),className:`flex items-center gap-1 text-[10px] text-text-subtle hover:text-text-secondary transition-colors`,children:[(0,B.jsx)(u,{className:`size-3`}),t?`Hide`:`Show`,` raw`]}),t&&(0,B.jsx)(`pre`,{className:`overflow-x-auto text-text-subtle font-mono max-h-40 whitespace-pre-wrap break-all text-[10px]`,children:e})]}):null}var ce=new Set([`.png`,`.jpg`,`.jpeg`,`.gif`,`.webp`,`.bmp`,`.avif`,`.ico`]);function le(e){let t=e.lastIndexOf(`.`);return t===-1?!1:ce.has(e.slice(t).toLowerCase())}var ue=/^\[image(?: · [\d.]+(?:B|KB|MB))?\]$/;function de(e){if(!e.startsWith(`[`))return!1;let t;try{t=JSON.parse(e)}catch{return!1}return Array.isArray(t)?t.some(e=>{let t=e;return t?.type===`text`&&typeof t.text==`string`&&ue.test(t.text)}):!1}var fe=`Async agent launched successfully`;function pe(e){return!!e&&e.includes(fe)}var me=`text-[var(--img-meta-label)] @max-[470px]:hidden`,he=[`60%`,`45%`,`80%`];function ge({aspect:e,actions:t}){return(0,B.jsxs)(`div`,{className:`grid grid-cols-[132px_1fr] items-start gap-[14px] overflow-hidden rounded-lg border border-border bg-panel p-[14px] @max-[470px]:grid-cols-[64px_1fr] @max-[470px]:gap-[11px] @max-[470px]:p-[11px]`,children:[(0,B.jsx)(`div`,{className:`img-skeleton rounded-lg`,style:{aspectRatio:e}}),(0,B.jsxs)(`div`,{className:`flex min-w-0 flex-col gap-[9px]`,children:[(0,B.jsx)(`div`,{className:`img-skeleton h-[13px] w-2/5 rounded @max-[470px]:hidden`}),(0,B.jsx)(`dl`,{className:`grid grid-cols-[auto_1fr] gap-x-[14px] gap-y-[4px] font-mono text-[11.5px] @max-[470px]:grid-cols-[1fr]`,children:[`dimensions`,`size`,`path`].map((e,t)=>(0,B.jsxs)(z.Fragment,{children:[(0,B.jsx)(`dt`,{className:me,children:e}),(0,B.jsx)(`dd`,{className:`flex items-center`,children:(0,B.jsx)(`span`,{className:`img-skeleton h-[11px] rounded`,style:{width:he[t]}})})]},e))}),t]})]})}function _e({code:e,onRetry:t}){return(0,B.jsxs)(`div`,{className:`flex items-center gap-2 rounded-lg border border-border bg-panel px-2.5 py-2 font-mono text-[12px] text-text-2`,children:[(0,B.jsx)(x,{className:`size-3 shrink-0`}),(0,B.jsxs)(`span`,{className:`truncate`,children:[`preview unavailable`,e?` · ${e}`:``]}),(0,B.jsx)(`button`,{type:`button`,onClick:t,className:`ml-auto shrink-0 text-accent`,children:`retry`})]})}var ve=.62;function ye(e,t){let n=e.w/e.h;if(n>2.4)return{variant:`band`,aspect:n,fit:`contain`};let r=Math.max(ve,n),i=t/r;return e.w<t&&e.h<i?{variant:`split`,aspect:r,fit:`native`}:{variant:`split`,aspect:r,fit:n<.62?`contain`:`cover`}}function be(e){return e>=1024*1024?`${(e/(1024*1024)).toFixed(1)} MB`:e>=1024?`${Math.round(e/1024)} KB`:`${e} B`}function xe(e,t){let n=`${e.w} × ${e.h} px`;return t===`native`?`${n} · shown 1:1`:n}var K=new Map;function Se(e){return K.get(e)}function Ce(e,t){K.set(e,t)}var we=4/5,q=`text-[var(--img-meta-label)] @max-[470px]:hidden`,J=`truncate text-text @max-[470px]:text-text-2`,Y=`h-[30px] @max-[470px]:h-[36px] shrink-0 rounded-[7px] px-[9px] font-mono text-[11.5px] text-text-2 bg-[var(--img-ghost)] border border-[var(--img-ghost-border)] backdrop-blur-[6px] transition-colors can-hover:hover:bg-[var(--img-ghost-hover)] can-hover:hover:border-[var(--img-ghost-hover-border)] can-hover:hover:text-text`;function Te({filePath:e,projectName:t}){let[n,r]=(0,z.useState)(0),{blobUrl:i,blob:a,error:o,errorCode:s}=O(e,t,void 0,n),[c,l]=(0,z.useState)(()=>Se(e)),[u,d]=(0,z.useState)(!1),[f,p]=(0,z.useState)(!1),m=D(e=>e.open),{openTab:h}=_(b(e=>({openTab:e.openTab}))),v=g(e);(0,z.useEffect)(()=>{if(!f)return;let e=setTimeout(()=>p(!1),1200);return()=>clearTimeout(e)},[f]);let y=t=>{let n={w:t.naturalWidth,h:t.naturalHeight};if(!n.w||!n.h)return d(!0);Ce(e,n),l(n)},x=()=>{d(!1),r(e=>e+1)};if(o||u)return(0,B.jsx)(`div`,{className:`border-t border-border pt-1.5`,children:(0,B.jsx)(_e,{code:u?void 0:s??void 0,onRetry:x})});let S=c?ye(c,132):null,C=S?.aspect??we,w=(0,B.jsxs)(`div`,{className:`flex flex-wrap gap-[6px]`,children:[(0,B.jsxs)(`button`,{type:`button`,onClick:E,className:Y,children:[(0,B.jsx)(`span`,{className:`@max-[470px]:hidden`,children:`open in editor`}),(0,B.jsx)(`span`,{className:`hidden @max-[470px]:inline`,children:`open`})]}),(0,B.jsx)(`button`,{type:`button`,onClick:j,className:Y,children:f?`copied`:`copy path`}),(0,B.jsx)(`button`,{type:`button`,onClick:M,className:Y,children:`full size`})]});function E(){t&&h({type:`editor`,title:v,metadata:{filePath:e,projectName:t},projectId:t,closable:!0})}function j(){T(e).then(()=>p(!0))}function M(e){i&&m(i,v,k(e.currentTarget))}if(!i||!S||!c)return(0,B.jsxs)(`div`,{className:`@container border-t border-border pt-1.5`,children:[i&&(0,B.jsx)(`img`,{src:i,alt:``,className:`hidden`,onLoad:e=>y(e.currentTarget),onError:()=>d(!0)}),(0,B.jsx)(ge,{aspect:C,actions:w})]});let N=(0,B.jsxs)(B.Fragment,{children:[(0,B.jsx)(`dt`,{className:q,children:`dimensions`}),(0,B.jsx)(`dd`,{className:J,children:xe(c,S.fit)}),a&&(0,B.jsxs)(B.Fragment,{children:[(0,B.jsx)(`dt`,{className:q,children:`size`}),(0,B.jsxs)(`dd`,{className:J,children:[be(a.size),a.type?` · ${a.type}`:``]})]}),(0,B.jsx)(`dt`,{className:q,children:`path`}),(0,B.jsx)(`dd`,{dir:`rtl`,className:`${J} text-left`,children:e})]}),P=(0,B.jsx)(`img`,{src:i,alt:v,[A]:``,onLoad:e=>y(e.currentTarget),onError:()=>d(!0),className:S.fit===`cover`?`size-full object-cover`:S.fit===`contain`?`size-full object-contain`:`max-h-full max-w-full`});return(0,B.jsx)(`div`,{className:`@container border-t border-border pt-1.5`,children:(0,B.jsxs)(`div`,{className:`relative overflow-hidden rounded-lg border border-border p-[14px] @max-[470px]:p-[11px]`,children:[(0,B.jsx)(`img`,{"aria-hidden":`true`,alt:``,src:i,className:`absolute inset-0 size-full object-cover`,style:{filter:`var(--img-backdrop)`,transform:`scale(1.3)`}}),(0,B.jsx)(`div`,{className:`absolute inset-0`,style:{background:`var(--img-veil)`}}),S.variant===`band`?(0,B.jsxs)(`div`,{className:`relative grid gap-[11px]`,children:[(0,B.jsx)(`button`,{type:`button`,onClick:M,title:`Open ${v}`,className:`img-checkerboard w-full cursor-zoom-in overflow-hidden rounded-lg border border-[var(--img-plate-border)]`,style:{aspectRatio:S.aspect},children:P}),(0,B.jsx)(`dl`,{className:`grid grid-cols-[auto_auto_1fr] gap-x-[18px] font-mono text-[11.5px] [&_dt]:hidden`,children:N}),w]}):(0,B.jsxs)(`div`,{className:`relative grid grid-cols-[132px_1fr] items-start gap-[14px] @max-[470px]:grid-cols-[64px_1fr] @max-[470px]:gap-[11px]`,children:[(0,B.jsx)(`button`,{type:`button`,onClick:M,title:`Open ${v}`,className:`cursor-zoom-in overflow-hidden rounded-lg border border-[var(--img-plate-border)] bg-[var(--img-plate)] shadow-[var(--img-plate-shadow)] ${S.fit===`cover`?``:`img-checkerboard flex items-center justify-center`}`,style:{aspectRatio:S.aspect},children:P}),(0,B.jsxs)(`div`,{className:`flex min-w-0 flex-col gap-[9px]`,children:[(0,B.jsx)(`p`,{className:`truncate text-[13px] font-semibold text-text @max-[470px]:hidden`,children:v}),(0,B.jsx)(`dl`,{className:`grid grid-cols-[auto_1fr] gap-x-[14px] gap-y-[4px] font-mono text-[11.5px] @max-[470px]:grid-cols-[1fr]`,children:N}),w]})]})]})})}function X(e,t){if(e!==`Agent`&&e!==`Task`)return null;let n=t.name;return typeof n==`string`&&n.trim()?n.trim():null}function Ee(e,t,n=!1){if(t&&(e===`Bash`||e===`PowerShell`))return{Icon:C,cls:`bg-error/15 text-error`};if(n)return{Icon:S,cls:`bg-accent-2/15 text-accent-2`};switch(e){case`Read`:case`Glob`:case`LS`:return{Icon:F,cls:`bg-accent-wash text-primary`};case`Grep`:case`Search`:case`WebSearch`:case`ToolSearch`:return{Icon:E,cls:`bg-accent-wash text-primary`};case`WebFetch`:case`Fetch`:return{Icon:w,cls:`bg-info/15 text-info`};case`Edit`:case`MultiEdit`:case`NotebookEdit`:return{Icon:N,cls:`bg-accent-2/15 text-accent-2`};case`Write`:return{Icon:P,cls:`bg-success/15 text-success`};case`Bash`:case`PowerShell`:return{Icon:C,cls:`bg-panel-2 text-text-2`};case`TodoWrite`:return{Icon:L,cls:`bg-warning/15 text-warning`};case`Task`:case`Agent`:return{Icon:o,cls:`bg-accent-wash text-primary`};case`SendMessage`:return{Icon:m,cls:`bg-info/15 text-info`};case`AskUserQuestion`:return{Icon:a,cls:`bg-accent-wash text-primary`};case`ExitPlanMode`:return{Icon:M,cls:`bg-accent-wash text-primary`};case`Skill`:return{Icon:f,cls:`bg-accent-2/15 text-accent-2`};case`ImageGen`:return{Icon:I,cls:`bg-accent-2/15 text-accent-2`};default:return{Icon:u,cls:`bg-panel-2 text-text-2`}}}function De(e){let t=e.type===`approval_request`;return{toolName:e.type===`tool_use`?e.tool:t?e.tool??`Tool`:`Tool`,input:e.type===`tool_use`?e.input:t?e.input??{}:{}}}var Oe=new Set([`Read`,`ImageGen`]);function Z(e){if(e.type!==`tool_use`||!Oe.has(e.tool))return null;let t=e.input?.file_path;return typeof t!=`string`||!/^(\/|[A-Za-z]:[/\\])/.test(t)?null:le(t)?t:null}function Q({tool:e,result:t,completed:n,projectName:r,bashPartialOutput:i}){let[a,o]=(0,z.useState)(()=>{let n=(e.type,e.tool),r=t?.type===`tool_result`&&!!t.isError;return(n===`Edit`||n===`MultiEdit`)&&!r?!0:!!Z(e)});if(e.type===`error`)return(0,B.jsxs)(`div`,{className:`flex items-center gap-2 rounded bg-error/10 border border-error/20 px-2 py-1.5 text-xs text-error`,children:[(0,B.jsx)(x,{className:`size-3`}),(0,B.jsx)(`span`,{children:e.message})]});let{toolName:l,input:u}=De(e),d=t?.type===`tool_result`,f=d&&!!t.isError,m=d&&typeof t.exitCode==`number`?t.exitCode:void 0,h=l===`AskUserQuestion`&&!!u?.answers,g=e.type===`approval_request`&&e.approved!=null,_=(l===`Agent`||l===`Task`)&&e.type===`tool_use`,y=_?e.children:void 0,b=y&&y.length>0,S=_&&e.type===`tool_use`?e.bgStatus:void 0,C=_&&(S!=null||d&&!f&&pe(String(t.output??``)))&&S==null,w=S===`failed`||S===`stopped`,T=C?!1:d||h||g||n,E=[`Edit`,`MultiEdit`,`Write`,`NotebookEdit`].includes(l),D=Z(e),O=d&&de(String(t.output??``)),k=!!D,A=e.type===`tool_use`?e.toolUseId:void 0,M=(l===`Bash`||l===`PowerShell`)&&!d&&A?i?.current?.get(A):void 0,N=!!M;(0,z.useEffect)(()=>{N&&!a&&o(!0)},[N]);let P=(0,z.useRef)(!1);(0,z.useEffect)(()=>{f&&(l===`Edit`||l===`MultiEdit`)&&!P.current&&(P.current=!0,o(!1))},[f,l]);let{Icon:F,cls:I}=Ee(l,f,!!X(l,u)),L=l===`AskUserQuestion`||l===`ExitPlanMode`||_;return(0,B.jsxs)(`div`,{"data-tool-ref":A,className:`rounded-[11px] border overflow-hidden text-xs bg-panel ${L?`border-accent-wash-border`:`border-border`}`,children:[(0,B.jsxs)(`button`,{onClick:()=>o(!a),className:`flex items-center gap-2.5 px-2.5 py-2 w-full text-left hover:bg-panel-2/40 transition-colors min-w-0`,children:[(0,B.jsx)(`span`,{className:`inline-flex items-center justify-center size-6 rounded-[7px] shrink-0 ${I}`,children:(0,B.jsx)(F,{className:`size-3.5`})}),(0,B.jsx)(`span`,{className:`truncate text-text font-medium`,children:(0,B.jsx)(ke,{name:l,input:u})}),(0,B.jsxs)(`span`,{className:`ml-auto flex items-center gap-2 shrink-0`,children:[N&&(0,B.jsxs)(`span`,{className:`text-[10px] text-warning`,children:[M.lineCount,` line`,M.lineCount===1?``:`s`,` streaming…`]}),b&&!N&&(0,B.jsxs)(`span`,{className:`text-[10px] text-text-3 font-mono`,children:[y.length,` steps`]}),C&&(0,B.jsx)(`span`,{className:`text-[10px] text-primary`,children:`running…`}),m!=null&&(0,B.jsxs)(`span`,{className:`text-[10px] font-mono ${m===0?`text-text-3`:`text-error`}`,children:[`exit `,m]}),f||w?(0,B.jsx)(j,{className:`size-3.5 text-error`}):T?(0,B.jsx)(v,{className:`size-3.5 text-success`}):(0,B.jsx)(p,{className:`size-3.5 text-primary animate-spin`}),a?(0,B.jsx)(s,{className:`size-3 text-text-3`}):(0,B.jsx)(c,{className:`size-3 text-text-3`})]})]}),a&&(0,B.jsxs)(`div`,{className:`px-2 pb-2 space-y-1.5 select-text`,children:[(e.type===`tool_use`||e.type===`approval_request`)&&(0,B.jsx)(Ae,{name:l,input:u,projectName:r,toolUseId:A}),M&&(0,B.jsx)(Ie,{content:M.content,lineCount:M.lineCount}),b&&(0,B.jsx)(Fe,{events:y,projectName:r}),D&&(0,B.jsx)(Te,{filePath:D,projectName:r??``}),d&&!(E&&!f)&&!(O&&!f)&&!(k&&!f)&&(0,B.jsx)(Ne,{toolName:l,output:t.output})]})]})}function ke({name:e,input:t}){let n=e=>String(e??``);switch(e){case`Read`:case`Write`:case`Edit`:case`MultiEdit`:case`NotebookEdit`:return(0,B.jsxs)(B.Fragment,{children:[e,` `,(0,B.jsx)(`span`,{className:`text-text-subtle`,children:g(n(t.file_path))})]});case`Bash`:case`PowerShell`:{let r=t.description?n(t.description):n(t.command);return(0,B.jsxs)(B.Fragment,{children:[e,` `,(0,B.jsx)(`span`,{className:`text-text-subtle${t.description?``:` font-mono`}`,children:$(r,60)})]})}case`Glob`:return(0,B.jsxs)(B.Fragment,{children:[e,` `,(0,B.jsx)(`span`,{className:`font-mono text-text-subtle`,children:n(t.pattern)})]});case`Grep`:return(0,B.jsxs)(B.Fragment,{children:[e,` `,(0,B.jsx)(`span`,{className:`font-mono text-text-subtle`,children:$(n(t.pattern),40)})]});case`WebSearch`:return(0,B.jsxs)(B.Fragment,{children:[(0,B.jsx)(E,{className:`size-3 inline`}),` `,e,` `,(0,B.jsx)(`span`,{className:`text-text-subtle`,children:$(n(t.query),50)})]});case`WebFetch`:return(0,B.jsxs)(B.Fragment,{children:[(0,B.jsx)(w,{className:`size-3 inline`}),` `,e,` `,(0,B.jsx)(`span`,{className:`text-text-subtle`,children:$(n(t.url),50)})]});case`ToolSearch`:return(0,B.jsxs)(B.Fragment,{children:[(0,B.jsx)(E,{className:`size-3 inline`}),` `,e,` `,(0,B.jsx)(`span`,{className:`text-text-subtle`,children:$(n(t.query),50)})]});case`ImageGen`:{let e=(n(t.prompt).split(`
4
- `).find(e=>e.trim())??``)||g(n(t.file_path));return(0,B.jsxs)(B.Fragment,{children:[(0,B.jsx)(I,{className:`size-3 inline`}),` Image`,(0,B.jsxs)(`span`,{className:`text-text-subtle`,children:[` `,$(e,50)]})]})}case`Agent`:case`Task`:{let r=X(e,t),i=$(n(t.description||t.prompt),r?44:60);return(0,B.jsxs)(B.Fragment,{children:[!r&&(0,B.jsx)(o,{className:`size-3 inline`}),` `,e,` `,r&&(0,B.jsx)(`span`,{className:`text-text-primary font-medium`,children:r}),(0,B.jsx)(`span`,{className:`text-text-subtle`,children:r?` · ${i}`:i})]})}case`SendMessage`:return(0,B.jsx)(ae,{name:e,input:t});case`TodoWrite`:{let n=Array.isArray(t.todos)?t.todos:[],r=n.filter(e=>e.status===`completed`).length;return(0,B.jsxs)(B.Fragment,{children:[(0,B.jsx)(R,{className:`size-3 inline`}),` `,e,` `,(0,B.jsxs)(`span`,{className:`text-text-subtle`,children:[r,`/`,n.length,` done`]})]})}case`AskUserQuestion`:{let n=Array.isArray(t.questions)?t.questions:[],r=!!t.answers;return(0,B.jsxs)(B.Fragment,{children:[e,` `,(0,B.jsxs)(`span`,{className:`text-text-subtle`,children:[n.length,` question`,n.length===1?``:`s`,r?` ✓`:``]})]})}case`ScheduleWakeup`:return(0,B.jsxs)(B.Fragment,{children:[(0,B.jsx)(l,{className:`size-3 inline`}),` `,e,` `,(0,B.jsxs)(`span`,{className:`text-text-subtle`,children:[`in `,Be(Number(t.delaySeconds)),t.reason?` — ${$(n(t.reason),50)}`:``]})]});case`TaskCreate`:return(0,B.jsxs)(B.Fragment,{children:[(0,B.jsx)(R,{className:`size-3 inline`}),` `,e,` `,(0,B.jsx)(`span`,{className:`text-text-subtle`,children:$(n(t.subject),60)})]});case`TaskUpdate`:return(0,B.jsxs)(B.Fragment,{children:[(0,B.jsx)(R,{className:`size-3 inline`}),` `,e,` `,(0,B.jsxs)(`span`,{className:`text-text-subtle`,children:[`#`,n(t.taskId),` → `,n(t.status)]})]});case`TaskStop`:return(0,B.jsxs)(B.Fragment,{children:[(0,B.jsx)(R,{className:`size-3 inline`}),` `,e,` `,(0,B.jsxs)(`span`,{className:`text-text-subtle`,children:[`#`,n(t.taskId),` stopped`]})]});default:return(0,B.jsx)(B.Fragment,{children:e})}}function Ae({name:e,input:t,projectName:n,toolUseId:r}){let i=e=>String(e??``),{openTab:a}=_(b(e=>({openTab:e.openTab}))),o=e=>{n&&a({type:`editor`,title:g(e),metadata:{filePath:e,projectName:n},projectId:n,closable:!0})},s=(e,t,r)=>{a({type:`git-diff`,title:`Diff ${g(e)}`,metadata:{filePath:e,projectName:n,original:t,modified:r},projectId:n??null,closable:!0})};switch(e){case`Bash`:case`PowerShell`:return(0,B.jsxs)(`div`,{className:`space-y-1`,children:[!!t.description&&(0,B.jsx)(`p`,{className:`text-text-subtle italic`,children:i(t.description)}),(0,B.jsx)(`pre`,{className:`font-mono text-text-secondary overflow-x-auto whitespace-pre-wrap break-all`,children:i(t.command)})]});case`Read`:case`Write`:case`Edit`:case`MultiEdit`:case`NotebookEdit`:{let n=i(t.notebook_path||t.file_path),a=e===`Edit`&&(!!t.old_string||!!t.new_string),c=e=>r?`${r}-${e}`:void 0;return(0,B.jsxs)(`div`,{className:`space-y-1`,children:[(0,B.jsxs)(`div`,{className:`flex items-start gap-3`,children:[(0,B.jsxs)(`button`,{type:`button`,className:`font-mono text-text-secondary break-all hover:text-primary hover:underline text-left flex items-center gap-1 min-w-0`,onClick:()=>o(n),title:`Open file in editor`,children:[(0,B.jsx)(y,{className:`size-3 shrink-0`}),n]}),a&&(0,B.jsxs)(`button`,{type:`button`,className:`text-text-subtle hover:text-primary hover:underline flex items-center gap-1 shrink-0 whitespace-nowrap`,onClick:()=>s(n,i(t.old_string),i(t.new_string)),title:`View diff in new tab`,children:[(0,B.jsx)(d,{className:`size-3 shrink-0`}),`View Diff`]})]}),a&&(0,B.jsx)(`div`,{"data-edit-ref":c(0),children:(0,B.jsx)(ze,{oldStr:i(t.old_string),newStr:i(t.new_string),filePath:n})}),e===`MultiEdit`&&Array.isArray(t.edits)&&(0,B.jsx)(`div`,{className:`space-y-1.5`,children:t.edits.map((e,t)=>(0,B.jsxs)(`div`,{"data-edit-ref":c(t),className:`space-y-0.5`,children:[(0,B.jsxs)(`p`,{className:`text-text-subtle text-[10px]`,children:[`Edit `,t+1]}),(0,B.jsx)(ze,{oldStr:i(e.old_string),newStr:i(e.new_string),filePath:n})]},t))}),e===`Write`&&!!t.content&&(0,B.jsx)(`pre`,{"data-edit-ref":c(0),className:`font-mono text-text-subtle overflow-x-auto max-h-32 whitespace-pre-wrap`,children:$(i(t.content),300)})]})}case`Glob`:return(0,B.jsxs)(`p`,{className:`font-mono text-text-secondary`,children:[i(t.pattern),t.path?` in ${i(t.path)}`:``]});case`Grep`:return(0,B.jsxs)(`div`,{className:`space-y-0.5`,children:[(0,B.jsxs)(`p`,{className:`font-mono text-text-secondary`,children:[`/`,i(t.pattern),`/`]}),!!t.path&&(0,B.jsxs)(`p`,{className:`text-text-subtle`,children:[`in `,i(t.path)]})]});case`TodoWrite`:return(0,B.jsx)(Me,{todos:t.todos??[]});case`Agent`:case`Task`:{let n=X(e,t);return(0,B.jsxs)(`div`,{className:`space-y-1`,children:[!!n&&(0,B.jsxs)(`p`,{className:`flex flex-wrap items-center gap-1.5`,children:[(0,B.jsx)(`span`,{className:`text-text-subtle`,children:`Name`}),(0,B.jsx)(`span`,{className:`font-medium text-text-primary`,children:n}),(0,B.jsx)(`span`,{className:`inline-block rounded px-1.5 py-0.5 text-[10px] bg-accent-2/15 text-accent-2`,children:`teammate`}),t.isolation===`worktree`&&(0,B.jsx)(`span`,{className:`inline-block rounded px-1.5 py-0.5 text-[10px] bg-panel-2 text-text-3`,children:`worktree`})]}),!!t.description&&(0,B.jsx)(`p`,{className:`text-text-secondary font-medium`,children:i(t.description)}),!!t.subagent_type&&(0,B.jsxs)(`p`,{className:`text-text-subtle`,children:[`Type: `,i(t.subagent_type)]}),!!t.prompt&&(0,B.jsx)(V,{content:i(t.prompt),maxHeight:`max-h-48`})]})}case`SendMessage`:return(0,B.jsx)(oe,{input:t});case`ToolSearch`:return(0,B.jsxs)(`div`,{className:`space-y-0.5`,children:[(0,B.jsx)(`p`,{className:`font-mono text-text-secondary`,children:i(t.query)}),!!t.max_results&&(0,B.jsxs)(`p`,{className:`text-text-subtle`,children:[`Max results: `,i(t.max_results)]})]});case`WebFetch`:return(0,B.jsxs)(`div`,{className:`space-y-0.5`,children:[(0,B.jsxs)(`a`,{href:i(t.url),target:`_blank`,rel:`noopener noreferrer`,className:`font-mono text-primary hover:underline break-all flex items-center gap-1`,children:[(0,B.jsx)(w,{className:`size-3 shrink-0`}),i(t.url)]}),!!t.prompt&&(0,B.jsx)(`p`,{className:`text-text-subtle`,children:$(i(t.prompt),100)})]});case`AskUserQuestion`:{let e=t.questions??[],n=t.answers??{};return(0,B.jsx)(`div`,{className:`space-y-2`,children:e.map((e,t)=>(0,B.jsxs)(`div`,{className:`space-y-0.5`,children:[(0,B.jsxs)(`p`,{className:`text-text-primary font-medium`,children:[e.header?`${e.header}: `:``,e.question]}),(0,B.jsx)(`div`,{className:`flex flex-wrap gap-1`,children:e.options.map((t,r)=>(0,B.jsx)(`span`,{className:`inline-block rounded px-1.5 py-0.5 text-xs border ${(n[e.question]??``).split(`, `).includes(t.label)?`border-primary bg-primary/20 text-text-primary`:`border-border text-text-subtle`}`,children:t.label},r))}),n[e.question]&&(0,B.jsxs)(`p`,{className:`text-foreground text-xs`,children:[`Answer: `,n[e.question]]})]},t))})}case`ScheduleWakeup`:{let e=Number(t.delaySeconds)||0;return(0,B.jsxs)(`div`,{className:`space-y-1`,children:[(0,B.jsxs)(`p`,{className:`text-text-secondary`,children:[(0,B.jsx)(l,{className:`size-3 inline mr-1`}),`Wake in `,(0,B.jsx)(`span`,{className:`font-medium text-text-primary`,children:Be(e)}),(0,B.jsxs)(`span`,{className:`text-text-subtle`,children:[` (`,e,`s)`]})]}),!!t.reason&&(0,B.jsx)(`p`,{className:`text-text-secondary italic`,children:i(t.reason)}),!!t.prompt&&(0,B.jsxs)(`div`,{children:[(0,B.jsx)(`p`,{className:`text-text-subtle text-[10px] mb-0.5`,children:`Prompt on wake`}),(0,B.jsx)(V,{content:i(t.prompt),maxHeight:`max-h-48`})]})]})}case`TaskCreate`:return(0,B.jsxs)(`div`,{className:`space-y-1`,children:[(0,B.jsx)(`p`,{className:`text-text-primary font-medium`,children:i(t.subject)}),!!t.description&&(0,B.jsx)(`p`,{className:`text-text-subtle`,children:i(t.description)}),!!t.activeForm&&(0,B.jsx)(`p`,{className:`text-text-subtle italic`,children:i(t.activeForm)})]});case`TaskUpdate`:return(0,B.jsxs)(`div`,{className:`flex items-center gap-1.5`,children:[(0,B.jsxs)(`span`,{className:`font-mono text-text-secondary`,children:[`#`,i(t.taskId)]}),(0,B.jsx)(je,{status:i(t.status)})]});case`TaskStop`:return(0,B.jsxs)(`div`,{className:`flex items-center gap-1.5`,children:[(0,B.jsxs)(`span`,{className:`font-mono text-text-secondary`,children:[`#`,i(t.taskId)]}),(0,B.jsx)(je,{status:`stopped`})]});case`ImageGen`:return(0,B.jsxs)(`div`,{className:`space-y-1`,children:[!!t.prompt&&(0,B.jsx)(`p`,{className:`text-text-secondary whitespace-pre-wrap`,children:i(t.prompt)}),t.transparentBackground===!0&&(0,B.jsx)(`p`,{className:`text-text-subtle`,children:`Transparent background`})]});default:return(0,B.jsx)(`pre`,{className:`overflow-x-auto text-text-secondary font-mono whitespace-pre-wrap break-all`,children:JSON.stringify(t,null,2)})}}function je({status:e}){return(0,B.jsx)(`span`,{className:`inline-block rounded px-1.5 py-0.5 text-[10px] border ${e===`completed`?`text-success border-success/30 bg-success/10`:e===`in_progress`?`text-warning border-warning/30 bg-warning/10`:`text-text-subtle border-border bg-surface`}`,children:e})}function Me({todos:e}){return(0,B.jsx)(`div`,{className:`space-y-0.5`,children:e.map((e,t)=>(0,B.jsxs)(`div`,{className:`flex items-start gap-1.5`,children:[(0,B.jsx)(`span`,{className:`shrink-0 mt-0.5 ${e.status===`completed`?`text-success`:e.status===`in_progress`?`text-warning`:`text-text-subtle`}`,children:e.status===`completed`?`✓`:e.status===`in_progress`?`▶`:`○`}),(0,B.jsx)(`span`,{className:e.status===`completed`?`line-through text-text-subtle`:`text-text-secondary`,children:e.content})]},t))})}function Ne({toolName:e,output:t}){let[n,r]=(0,z.useState)(!1),i=(0,z.useMemo)(()=>{if(e!==`Agent`&&e!==`Task`)return null;try{let e=JSON.parse(t);if(Array.isArray(e)){let t=e.filter(e=>e.type===`text`&&e.text).map(e=>e.text).join(`
1
+ const __vite__mapDeps=(i,m=__vite__mapDeps,d=(m.f||(m.f=["assets/markdown-renderer-CgbqvSuc.js","assets/vendor-mermaid-BoRFiriK.js","assets/rolldown-runtime-FhOqtrmT.js","assets/vendor-ui-BBdkypKW.js","assets/vendor-markdown-CuWCHIVb.js","assets/markdown-renderer-CG_nGh7k.js","assets/index-BV_sFdHY.js","assets/button-DhnNoqpV.js","assets/utils-CwNUra6_.js","assets/createLucideIcon-D6fVXe3s.js","assets/arrow-left-DpXaakMC.js","assets/bot-D3-n2i31.js","assets/check-BQKbhtoA.js","assets/chevron-down-B9puixxZ.js","assets/chevron-right-DK_HbYZC.js","assets/chevron-up-BPAINgoK.js","assets/circle-BpGTLAas.js","assets/clock-Dqq0H9yH.js","assets/sparkles-CO9zx1f-.js","assets/copy-Bt_1tjoJ.js","assets/database-9_p74TtY.js","assets/download-CEPFebri.js","assets/use-coarse-long-press-XrJ4Upuv.js","assets/eye-off-BlB3QV90.js","assets/eye-BQaWPI4P.js","assets/loader-circle-H81ywCuQ.js","assets/monitor-CKcYUoAV.js","assets/x-DlnNFF2t.js","assets/api-client-DKvkxuDr.js","assets/react-Bcm1Oab0.js","assets/window-store-2z4t5YAt.js","assets/window-pip-registry-C2dcY0pE.js","assets/panel-store-XhAruR6D.js","assets/context-menu-DchAkdnL.js","assets/portal-container-context-Bqn516X4.js","assets/mobile-bottom-sheet-BizNfPAu.js","assets/use-visual-viewport-Bj3QHRkF.js","assets/use-is-mobile-Dypg-2ZO.js","assets/project-store-Dy3A3LJT.js","assets/ws-auth-DI1E6Fe7.js","assets/settings-store-BkNrLdjk.js","assets/streaming-store-DAbnOfLu.js","assets/tab-store-B7BksLr-.js","assets/apply-theme-Abd1TNqE.js","assets/resolve-theme-Dm8ehbOv.js","assets/index-Di9nVG3y.css","assets/image-gallery-COea0nSk.js","assets/run-in-terminal-DisO5HC-.js","assets/edit-diff-preview-CRjufuw_.js","assets/libesm-CcPYXCKp.js"])))=>i.map(i=>d[i]);
2
+ import{o as e}from"./rolldown-runtime-FhOqtrmT.js";import{C as t,S as n}from"./vendor-markdown-CuWCHIVb.js";import{t as r}from"./createLucideIcon-D6fVXe3s.js";import{t as i}from"./arrow-right-BqNSIscF.js";import{t as a}from"./bot-D3-n2i31.js";import{t as o}from"./chevron-down-B9puixxZ.js";import{t as s}from"./chevron-right-DK_HbYZC.js";import{t as c}from"./circle-question-mark-DUaySkoB.js";import{t as l}from"./clock-Dqq0H9yH.js";import{t as u}from"./code-CX6640Tv.js";import{n as d,t as f}from"./sparkles-CO9zx1f-.js";import{t as p}from"./loader-circle-H81ywCuQ.js";import{t as m}from"./send-CtXcGcsk.js";import{q as h}from"./vendor-mermaid-BoRFiriK.js";import{t as g}from"./utils-CwNUra6_.js";import{t as _}from"./tab-store-B7BksLr-.js";import{Ar as v,Dr as y,It as b,Mr as x,Nn as S,Rn as C,_r as w,nn as T,qn as E,r as D}from"./index-BV_sFdHY.js";import{t as O}from"./use-blob-url-CGChX4vi.js";import{r as k,t as A}from"./image-gallery-COea0nSk.js";var j=r(`circle-x`,[[`circle`,{cx:`12`,cy:`12`,r:`10`,key:`1mglay`}],[`path`,{d:`m15 9-6 6`,key:`1uzhvr`}],[`path`,{d:`m9 9 6 6`,key:`z0biqf`}]]),M=r(`clipboard-list`,[[`rect`,{width:`8`,height:`4`,x:`8`,y:`2`,rx:`1`,ry:`1`,key:`tgr4d6`}],[`path`,{d:`M16 4h2a2 2 0 0 1 2 2v14a2 2 0 0 1-2 2H6a2 2 0 0 1-2-2V6a2 2 0 0 1 2-2h2`,key:`116196`}],[`path`,{d:`M12 11h4`,key:`1jrz19`}],[`path`,{d:`M12 16h4`,key:`n85exb`}],[`path`,{d:`M8 11h.01`,key:`1dfujw`}],[`path`,{d:`M8 16h.01`,key:`18s6g9`}]]),N=r(`file-pen`,[[`path`,{d:`M12.659 22H18a2 2 0 0 0 2-2V8a2.4 2.4 0 0 0-.706-1.706l-3.588-3.588A2.4 2.4 0 0 0 14 2H6a2 2 0 0 0-2 2v9.34`,key:`o6klzx`}],[`path`,{d:`M14 2v5a1 1 0 0 0 1 1h5`,key:`wfsgrz`}],[`path`,{d:`M10.378 12.622a1 1 0 0 1 3 3.003L8.36 20.637a2 2 0 0 1-.854.506l-2.867.837a.5.5 0 0 1-.62-.62l.836-2.869a2 2 0 0 1 .506-.853z`,key:`zhnas1`}]]),P=r(`file-plus-corner`,[[`path`,{d:`M11.35 22H6a2 2 0 0 1-2-2V4a2 2 0 0 1 2-2h8a2.4 2.4 0 0 1 1.706.706l3.588 3.588A2.4 2.4 0 0 1 20 8v5.35`,key:`17jvcc`}],[`path`,{d:`M14 2v5a1 1 0 0 0 1 1h5`,key:`wfsgrz`}],[`path`,{d:`M14 19h6`,key:`bvotb8`}],[`path`,{d:`M17 16v6`,key:`18yu1i`}]]),F=r(`file-search`,[[`path`,{d:`M6 22a2 2 0 0 1-2-2V4a2 2 0 0 1 2-2h8a2.4 2.4 0 0 1 1.704.706l3.588 3.588A2.4 2.4 0 0 1 20 8v12a2 2 0 0 1-2 2z`,key:`1oefj6`}],[`path`,{d:`M14 2v5a1 1 0 0 0 1 1h5`,key:`wfsgrz`}],[`circle`,{cx:`11.5`,cy:`14.5`,r:`2.5`,key:`1bq0ko`}],[`path`,{d:`M13.3 16.3 15 18`,key:`2quom7`}]]),I=r(`image-plus`,[[`path`,{d:`M16 5h6`,key:`1vod17`}],[`path`,{d:`M19 2v6`,key:`4bpg5p`}],[`path`,{d:`M21 11.5V19a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2V5a2 2 0 0 1 2-2h7.5`,key:`1ue2ih`}],[`path`,{d:`m21 15-3.086-3.086a2 2 0 0 0-2.828 0L6 21`,key:`1xmnt7`}],[`circle`,{cx:`9`,cy:`9`,r:`2`,key:`af1f0g`}]]),L=r(`list-checks`,[[`path`,{d:`M13 5h8`,key:`a7qcls`}],[`path`,{d:`M13 12h8`,key:`h98zly`}],[`path`,{d:`M13 19h8`,key:`c3s6r1`}],[`path`,{d:`m3 17 2 2 4-4`,key:`1jhpwq`}],[`path`,{d:`m3 7 2 2 4-4`,key:`1obspn`}]]),R=r(`list-todo`,[[`path`,{d:`M13 5h8`,key:`a7qcls`}],[`path`,{d:`M13 12h8`,key:`h98zly`}],[`path`,{d:`M13 19h8`,key:`c3s6r1`}],[`path`,{d:`m3 17 2 2 4-4`,key:`1jhpwq`}],[`rect`,{x:`3`,y:`4`,width:`6`,height:`6`,rx:`1`,key:`cif1o7`}]]),z=e(t(),1),B=n(),ee=(0,z.lazy)(()=>h(()=>import(`./markdown-renderer-CgbqvSuc.js`).then(e=>({default:e.MarkdownRenderer})),__vite__mapDeps([0,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20,21,22,23,24,25,26,27,28,29,30,31,32,33,34,35,36,37,38,39,40,41,42,43,44,45,46,47])));function V({content:e,maxHeight:t=`max-h-48`}){return(0,B.jsx)(z.Suspense,{fallback:(0,B.jsx)(`div`,{className:`animate-pulse h-4 bg-muted rounded`}),children:(0,B.jsx)(ee,{content:e,className:`text-text-secondary overflow-auto ${t}`})})}var te={task_assignment:{label:`task`,className:`bg-primary/20 text-primary`},idle_notification:{label:`idle`,className:`bg-warning/20 text-warning`},completion:{label:`done`,className:`bg-success/20 text-success`},shutdown_request:{label:`shutdown`,className:`bg-error/20 text-error`},shutdown_approved:{label:`shutdown ✓`,className:`bg-text-3/20 text-text-3`},shutdown_response:{label:`shutdown reply`,className:`bg-text-3/20 text-text-3`},plan_approval_request:{label:`plan review`,className:`bg-primary/20 text-primary`},plan_approval_response:{label:`plan reply`,className:`bg-primary/20 text-primary`}},ne=new Set([`to`,`message`,`summary`,`notify_when_idle`,`recipient`,`content`,`type`]),H=e=>typeof e==`string`?e:e==null?``:String(e);function U(e){if(!e||typeof e!=`object`||Array.isArray(e))return null;let t=e;return typeof t.type!=`string`||!t.type?null:{type:t.type,request_id:typeof t.request_id==`string`?t.request_id:void 0,approve:typeof t.approve==`boolean`?t.approve:void 0,reason:typeof t.reason==`string`?t.reason:void 0,feedback:typeof t.feedback==`string`?t.feedback:void 0}}function re(e){let t=e.trim();if(!t.startsWith(`{`))return null;try{return U(JSON.parse(t))}catch{return null}}function W(e){let t=H(e.to)||H(e.recipient),n=e.message??e.content,r=U(n)??re(H(n)),i=r?``:H(n),a=H(e.type),o=r?.type||(a&&a!==`message`?a:`message`),s=H(e.summary).trim(),c=Object.entries(e).filter(([e])=>!ne.has(e)).map(([e,t])=>({key:e,value:typeof t==`string`?t:JSON.stringify(t)??``}));return{to:t,summary:s||void 0,text:i,firstLine:i.split(`
3
+ `).map(e=>e.trim()).find(e=>e.length>0)??``,protocol:r??void 0,kind:o,notifyWhenIdle:e.notify_when_idle===!0,extras:c}}function G(e){if(!e)return null;let t;try{t=JSON.parse(e)}catch{return null}if(Array.isArray(t)){let e=H(t.find(e=>e&&typeof e==`object`&&e.type===`text`)?.text);if(!e)return null;try{t=JSON.parse(e)}catch{return null}}if(!t||typeof t!=`object`||Array.isArray(t))return null;let n=t;if(typeof n.success!=`boolean`)return null;let r=n.pin&&typeof n.pin==`object`?n.pin:null;return{ok:n.success,detail:H(n.message)||H(n.error)||void 0,peer:r&&H(r.name)||void 0,ref:r&&H(r.ref)||void 0}}function ie({kind:e}){if(e===`message`)return null;let t=te[e];return(0,B.jsx)(`span`,{className:`inline-block rounded px-1.5 py-0.5 text-[10px] ${t?.className??`bg-panel-2 text-text-3`}`,children:t?.label??e})}function ae({name:e,input:t}){let n=W(t),r=n.summary||n.firstLine||(n.protocol?n.kind:``),a=r.length>72?`${r.slice(0,72)}…`:r;return(0,B.jsxs)(B.Fragment,{children:[e,` `,(0,B.jsxs)(`span`,{className:`text-text-subtle`,children:[(0,B.jsx)(i,{className:`size-3 inline`}),` `,n.to||`unknown`,a?` · ${a}`:``]}),n.notifyWhenIdle&&(0,B.jsx)(l,{className:`size-3 inline ml-1 text-text-3`})]})}function oe({input:e}){let t=W(e);return(0,B.jsxs)(`div`,{className:`space-y-1.5`,children:[(0,B.jsxs)(`div`,{className:`flex flex-wrap items-center gap-1.5`,children:[(0,B.jsx)(`span`,{className:`text-text-subtle`,children:`To`}),(0,B.jsx)(`span`,{className:`font-medium text-text-primary`,children:t.to||`unknown`}),(0,B.jsx)(ie,{kind:t.kind}),t.notifyWhenIdle&&(0,B.jsxs)(`span`,{className:`inline-flex items-center gap-1 rounded px-1.5 py-0.5 text-[10px] bg-panel-2 text-text-3`,children:[(0,B.jsx)(l,{className:`size-3`}),` notify when idle`]})]}),!!t.text&&(0,B.jsx)(V,{content:t.text,maxHeight:`max-h-40`}),t.protocol&&(0,B.jsxs)(`div`,{className:`space-y-0.5 text-text-secondary`,children:[t.protocol.approve!=null&&(0,B.jsxs)(`p`,{children:[t.protocol.approve?`Approved`:`Rejected`,t.protocol.request_id?(0,B.jsxs)(`span`,{className:`text-text-subtle font-mono`,children:[` · `,t.protocol.request_id]}):null]}),!!t.protocol.reason&&(0,B.jsx)(`p`,{className:`text-text-subtle`,children:t.protocol.reason}),!!t.protocol.feedback&&(0,B.jsx)(`p`,{className:`text-text-subtle`,children:t.protocol.feedback})]}),t.extras.length>0&&(0,B.jsx)(`div`,{className:`space-y-0.5`,children:t.extras.map(e=>(0,B.jsxs)(`p`,{className:`text-text-subtle`,children:[(0,B.jsx)(`span`,{className:`font-mono`,children:e.key}),`: `,e.value]},e.key))})]})}function se({output:e}){let[t,n]=(0,z.useState)(!1),r=G(e);return r?(0,B.jsxs)(`div`,{className:`border-t border-border pt-1.5 space-y-1`,children:[(0,B.jsxs)(`div`,{className:`flex items-center gap-1.5 flex-wrap`,children:[r.ok?(0,B.jsx)(v,{className:`size-3 text-success shrink-0`}):(0,B.jsx)(j,{className:`size-3 text-error shrink-0`}),(0,B.jsx)(`span`,{className:r.ok?`text-success`:`text-error`,children:r.ok?`Delivered`:`Not delivered`}),!!r.detail&&(0,B.jsxs)(`span`,{className:`text-text-subtle`,children:[`· `,r.detail]}),!!r.ref&&(0,B.jsxs)(`span`,{className:`text-text-3 font-mono text-[10px]`,children:[`[`,r.ref,`]`]})]}),(0,B.jsxs)(`button`,{type:`button`,onClick:()=>n(!t),className:`flex items-center gap-1 text-[10px] text-text-subtle hover:text-text-secondary transition-colors`,children:[(0,B.jsx)(u,{className:`size-3`}),t?`Hide`:`Show`,` raw`]}),t&&(0,B.jsx)(`pre`,{className:`overflow-x-auto text-text-subtle font-mono max-h-40 whitespace-pre-wrap break-all text-[10px]`,children:e})]}):null}var ce=new Set([`.png`,`.jpg`,`.jpeg`,`.gif`,`.webp`,`.bmp`,`.avif`,`.ico`]);function le(e){let t=e.lastIndexOf(`.`);return t===-1?!1:ce.has(e.slice(t).toLowerCase())}var ue=/^\[image(?: · [\d.]+(?:B|KB|MB))?\]$/;function de(e){if(!e.startsWith(`[`))return!1;let t;try{t=JSON.parse(e)}catch{return!1}return Array.isArray(t)?t.some(e=>{let t=e;return t?.type===`text`&&typeof t.text==`string`&&ue.test(t.text)}):!1}var fe=`Async agent launched successfully`;function pe(e){return!!e&&e.includes(fe)}var me=`text-[var(--img-meta-label)] @max-[470px]:hidden`,he=[`60%`,`45%`,`80%`];function ge({aspect:e,actions:t}){return(0,B.jsxs)(`div`,{className:`grid grid-cols-[132px_1fr] items-start gap-[14px] overflow-hidden rounded-lg border border-border bg-panel p-[14px] @max-[470px]:grid-cols-[64px_1fr] @max-[470px]:gap-[11px] @max-[470px]:p-[11px]`,children:[(0,B.jsx)(`div`,{className:`img-skeleton rounded-lg`,style:{aspectRatio:e}}),(0,B.jsxs)(`div`,{className:`flex min-w-0 flex-col gap-[9px]`,children:[(0,B.jsx)(`div`,{className:`img-skeleton h-[13px] w-2/5 rounded @max-[470px]:hidden`}),(0,B.jsx)(`dl`,{className:`grid grid-cols-[auto_1fr] gap-x-[14px] gap-y-[4px] font-mono text-[11.5px] @max-[470px]:grid-cols-[1fr]`,children:[`dimensions`,`size`,`path`].map((e,t)=>(0,B.jsxs)(z.Fragment,{children:[(0,B.jsx)(`dt`,{className:me,children:e}),(0,B.jsx)(`dd`,{className:`flex items-center`,children:(0,B.jsx)(`span`,{className:`img-skeleton h-[11px] rounded`,style:{width:he[t]}})})]},e))}),t]})]})}function _e({code:e,onRetry:t}){return(0,B.jsxs)(`div`,{className:`flex items-center gap-2 rounded-lg border border-border bg-panel px-2.5 py-2 font-mono text-[12px] text-text-2`,children:[(0,B.jsx)(x,{className:`size-3 shrink-0`}),(0,B.jsxs)(`span`,{className:`truncate`,children:[`preview unavailable`,e?` · ${e}`:``]}),(0,B.jsx)(`button`,{type:`button`,onClick:t,className:`ml-auto shrink-0 text-accent`,children:`retry`})]})}var ve=.62;function ye(e,t){let n=e.w/e.h;if(n>2.4)return{variant:`band`,aspect:n,fit:`contain`};let r=Math.max(ve,n),i=t/r;return e.w<t&&e.h<i?{variant:`split`,aspect:r,fit:`native`}:{variant:`split`,aspect:r,fit:n<.62?`contain`:`cover`}}function be(e){return e>=1024*1024?`${(e/(1024*1024)).toFixed(1)} MB`:e>=1024?`${Math.round(e/1024)} KB`:`${e} B`}function xe(e,t){let n=`${e.w} × ${e.h} px`;return t===`native`?`${n} · shown 1:1`:n}var K=new Map;function Se(e){return K.get(e)}function Ce(e,t){K.set(e,t)}var we=4/5,q=`text-[var(--img-meta-label)] @max-[470px]:hidden`,J=`truncate text-text @max-[470px]:text-text-2`,Y=`h-[30px] @max-[470px]:h-[36px] shrink-0 rounded-[7px] px-[9px] font-mono text-[11.5px] text-text-2 bg-[var(--img-ghost)] border border-[var(--img-ghost-border)] backdrop-blur-[6px] transition-colors can-hover:hover:bg-[var(--img-ghost-hover)] can-hover:hover:border-[var(--img-ghost-hover-border)] can-hover:hover:text-text`;function Te({filePath:e,projectName:t}){let[n,r]=(0,z.useState)(0),{blobUrl:i,blob:a,error:o,errorCode:s}=O(e,t,void 0,n),[c,l]=(0,z.useState)(()=>Se(e)),[u,d]=(0,z.useState)(!1),[f,p]=(0,z.useState)(!1),m=D(e=>e.open),{openTab:h}=_(b(e=>({openTab:e.openTab}))),v=g(e);(0,z.useEffect)(()=>{if(!f)return;let e=setTimeout(()=>p(!1),1200);return()=>clearTimeout(e)},[f]);let y=t=>{let n={w:t.naturalWidth,h:t.naturalHeight};if(!n.w||!n.h)return d(!0);Ce(e,n),l(n)},x=()=>{d(!1),r(e=>e+1)};if(o||u)return(0,B.jsx)(`div`,{className:`border-t border-border pt-1.5`,children:(0,B.jsx)(_e,{code:u?void 0:s??void 0,onRetry:x})});let S=c?ye(c,132):null,C=S?.aspect??we,w=(0,B.jsxs)(`div`,{className:`flex flex-wrap gap-[6px]`,children:[(0,B.jsxs)(`button`,{type:`button`,onClick:E,className:Y,children:[(0,B.jsx)(`span`,{className:`@max-[470px]:hidden`,children:`open in editor`}),(0,B.jsx)(`span`,{className:`hidden @max-[470px]:inline`,children:`open`})]}),(0,B.jsx)(`button`,{type:`button`,onClick:j,className:Y,children:f?`copied`:`copy path`}),(0,B.jsx)(`button`,{type:`button`,onClick:M,className:Y,children:`full size`})]});function E(){t&&h({type:`editor`,title:v,metadata:{filePath:e,projectName:t},projectId:t,closable:!0})}function j(){T(e).then(()=>p(!0))}function M(e){i&&m(i,v,k(e.currentTarget))}if(!i||!S||!c)return(0,B.jsxs)(`div`,{className:`@container border-t border-border pt-1.5`,children:[i&&(0,B.jsx)(`img`,{src:i,alt:``,className:`hidden`,onLoad:e=>y(e.currentTarget),onError:()=>d(!0)}),(0,B.jsx)(ge,{aspect:C,actions:w})]});let N=(0,B.jsxs)(B.Fragment,{children:[(0,B.jsx)(`dt`,{className:q,children:`dimensions`}),(0,B.jsx)(`dd`,{className:J,children:xe(c,S.fit)}),a&&(0,B.jsxs)(B.Fragment,{children:[(0,B.jsx)(`dt`,{className:q,children:`size`}),(0,B.jsxs)(`dd`,{className:J,children:[be(a.size),a.type?` · ${a.type}`:``]})]}),(0,B.jsx)(`dt`,{className:q,children:`path`}),(0,B.jsx)(`dd`,{dir:`rtl`,className:`${J} text-left`,children:e})]}),P=(0,B.jsx)(`img`,{src:i,alt:v,[A]:``,onLoad:e=>y(e.currentTarget),onError:()=>d(!0),className:S.fit===`cover`?`size-full object-cover`:S.fit===`contain`?`size-full object-contain`:`max-h-full max-w-full`});return(0,B.jsx)(`div`,{className:`@container border-t border-border pt-1.5`,children:(0,B.jsxs)(`div`,{className:`relative overflow-hidden rounded-lg border border-border p-[14px] @max-[470px]:p-[11px]`,children:[(0,B.jsx)(`img`,{"aria-hidden":`true`,alt:``,src:i,className:`absolute inset-0 size-full object-cover`,style:{filter:`var(--img-backdrop)`,transform:`scale(1.3)`}}),(0,B.jsx)(`div`,{className:`absolute inset-0`,style:{background:`var(--img-veil)`}}),S.variant===`band`?(0,B.jsxs)(`div`,{className:`relative grid gap-[11px]`,children:[(0,B.jsx)(`button`,{type:`button`,onClick:M,title:`Open ${v}`,className:`img-checkerboard w-full cursor-zoom-in overflow-hidden rounded-lg border border-[var(--img-plate-border)]`,style:{aspectRatio:S.aspect},children:P}),(0,B.jsx)(`dl`,{className:`grid grid-cols-[auto_auto_1fr] gap-x-[18px] font-mono text-[11.5px] [&_dt]:hidden`,children:N}),w]}):(0,B.jsxs)(`div`,{className:`relative grid grid-cols-[132px_1fr] items-start gap-[14px] @max-[470px]:grid-cols-[64px_1fr] @max-[470px]:gap-[11px]`,children:[(0,B.jsx)(`button`,{type:`button`,onClick:M,title:`Open ${v}`,className:`cursor-zoom-in overflow-hidden rounded-lg border border-[var(--img-plate-border)] bg-[var(--img-plate)] shadow-[var(--img-plate-shadow)] ${S.fit===`cover`?``:`img-checkerboard flex items-center justify-center`}`,style:{aspectRatio:S.aspect},children:P}),(0,B.jsxs)(`div`,{className:`flex min-w-0 flex-col gap-[9px]`,children:[(0,B.jsx)(`p`,{className:`truncate text-[13px] font-semibold text-text @max-[470px]:hidden`,children:v}),(0,B.jsx)(`dl`,{className:`grid grid-cols-[auto_1fr] gap-x-[14px] gap-y-[4px] font-mono text-[11.5px] @max-[470px]:grid-cols-[1fr]`,children:N}),w]})]})]})})}function X(e,t){if(e!==`Agent`&&e!==`Task`)return null;let n=t.name;return typeof n==`string`&&n.trim()?n.trim():null}function Ee(e,t,n=!1){if(t&&(e===`Bash`||e===`PowerShell`))return{Icon:C,cls:`bg-error/15 text-error`};if(n)return{Icon:S,cls:`bg-accent-2/15 text-accent-2`};switch(e){case`Read`:case`Glob`:case`LS`:return{Icon:F,cls:`bg-accent-wash text-primary`};case`Grep`:case`Search`:case`WebSearch`:case`ToolSearch`:return{Icon:E,cls:`bg-accent-wash text-primary`};case`WebFetch`:case`Fetch`:return{Icon:w,cls:`bg-info/15 text-info`};case`Edit`:case`MultiEdit`:case`NotebookEdit`:return{Icon:N,cls:`bg-accent-2/15 text-accent-2`};case`Write`:return{Icon:P,cls:`bg-success/15 text-success`};case`Bash`:case`PowerShell`:return{Icon:C,cls:`bg-panel-2 text-text-2`};case`TodoWrite`:return{Icon:L,cls:`bg-warning/15 text-warning`};case`Task`:case`Agent`:return{Icon:a,cls:`bg-accent-wash text-primary`};case`SendMessage`:return{Icon:m,cls:`bg-info/15 text-info`};case`AskUserQuestion`:return{Icon:c,cls:`bg-accent-wash text-primary`};case`ExitPlanMode`:return{Icon:M,cls:`bg-accent-wash text-primary`};case`Skill`:return{Icon:f,cls:`bg-accent-2/15 text-accent-2`};case`ImageGen`:return{Icon:I,cls:`bg-accent-2/15 text-accent-2`};default:return{Icon:u,cls:`bg-panel-2 text-text-2`}}}function De(e){let t=e.type===`approval_request`;return{toolName:e.type===`tool_use`?e.tool:t?e.tool??`Tool`:`Tool`,input:e.type===`tool_use`?e.input:t?e.input??{}:{}}}var Oe=new Set([`Read`,`ImageGen`]);function Z(e){if(e.type!==`tool_use`||!Oe.has(e.tool))return null;let t=e.input?.file_path;return typeof t!=`string`||!/^(\/|[A-Za-z]:[/\\])/.test(t)?null:le(t)?t:null}function Q({tool:e,result:t,completed:n,projectName:r,bashPartialOutput:i}){let[a,c]=(0,z.useState)(()=>{let n=(e.type,e.tool),r=t?.type===`tool_result`&&!!t.isError;return(n===`Edit`||n===`MultiEdit`)&&!r?!0:!!Z(e)});if(e.type===`error`)return(0,B.jsxs)(`div`,{className:`flex items-center gap-2 rounded bg-error/10 border border-error/20 px-2 py-1.5 text-xs text-error`,children:[(0,B.jsx)(x,{className:`size-3`}),(0,B.jsx)(`span`,{children:e.message})]});let{toolName:l,input:u}=De(e),d=t?.type===`tool_result`,f=d&&!!t.isError,m=d&&typeof t.exitCode==`number`?t.exitCode:void 0,h=l===`AskUserQuestion`&&!!u?.answers,g=e.type===`approval_request`&&e.approved!=null,_=(l===`Agent`||l===`Task`)&&e.type===`tool_use`,y=_?e.children:void 0,b=y&&y.length>0,S=_&&e.type===`tool_use`?e.bgStatus:void 0,C=_&&(S!=null||d&&!f&&pe(String(t.output??``)))&&S==null,w=S===`failed`||S===`stopped`,T=C?!1:d||h||g||n,E=[`Edit`,`MultiEdit`,`Write`,`NotebookEdit`].includes(l),D=Z(e),O=d&&de(String(t.output??``)),k=!!D,A=e.type===`tool_use`?e.toolUseId:void 0,M=(l===`Bash`||l===`PowerShell`)&&!d&&A?i?.current?.get(A):void 0,N=!!M;(0,z.useEffect)(()=>{N&&!a&&c(!0)},[N]);let P=(0,z.useRef)(!1);(0,z.useEffect)(()=>{f&&(l===`Edit`||l===`MultiEdit`)&&!P.current&&(P.current=!0,c(!1))},[f,l]);let{Icon:F,cls:I}=Ee(l,f,!!X(l,u)),L=l===`AskUserQuestion`||l===`ExitPlanMode`||_;return(0,B.jsxs)(`div`,{"data-tool-ref":A,className:`rounded-[11px] border overflow-hidden text-xs bg-panel ${L?`border-accent-wash-border`:`border-border`}`,children:[(0,B.jsxs)(`button`,{onClick:()=>c(!a),className:`flex items-center gap-2.5 px-2.5 py-2 w-full text-left hover:bg-panel-2/40 transition-colors min-w-0`,children:[(0,B.jsx)(`span`,{className:`inline-flex items-center justify-center size-6 rounded-[7px] shrink-0 ${I}`,children:(0,B.jsx)(F,{className:`size-3.5`})}),(0,B.jsx)(`span`,{className:`truncate text-text font-medium`,children:(0,B.jsx)(ke,{name:l,input:u})}),(0,B.jsxs)(`span`,{className:`ml-auto flex items-center gap-2 shrink-0`,children:[N&&(0,B.jsxs)(`span`,{className:`text-[10px] text-warning`,children:[M.lineCount,` line`,M.lineCount===1?``:`s`,` streaming…`]}),b&&!N&&(0,B.jsxs)(`span`,{className:`text-[10px] text-text-3 font-mono`,children:[y.length,` steps`]}),C&&(0,B.jsx)(`span`,{className:`text-[10px] text-primary`,children:`running…`}),m!=null&&(0,B.jsxs)(`span`,{className:`text-[10px] font-mono ${m===0?`text-text-3`:`text-error`}`,children:[`exit `,m]}),f||w?(0,B.jsx)(j,{className:`size-3.5 text-error`}):T?(0,B.jsx)(v,{className:`size-3.5 text-success`}):(0,B.jsx)(p,{className:`size-3.5 text-primary animate-spin`}),a?(0,B.jsx)(o,{className:`size-3 text-text-3`}):(0,B.jsx)(s,{className:`size-3 text-text-3`})]})]}),a&&(0,B.jsxs)(`div`,{className:`px-2 pb-2 space-y-1.5 select-text`,children:[(e.type===`tool_use`||e.type===`approval_request`)&&(0,B.jsx)(Ae,{name:l,input:u,projectName:r,toolUseId:A}),M&&(0,B.jsx)(Ie,{content:M.content,lineCount:M.lineCount}),b&&(0,B.jsx)(Fe,{events:y,projectName:r}),D&&(0,B.jsx)(Te,{filePath:D,projectName:r??``}),d&&!(E&&!f)&&!(O&&!f)&&!(k&&!f)&&(0,B.jsx)(Ne,{toolName:l,output:t.output})]})]})}function ke({name:e,input:t}){let n=e=>String(e??``);switch(e){case`Read`:case`Write`:case`Edit`:case`MultiEdit`:case`NotebookEdit`:return(0,B.jsxs)(B.Fragment,{children:[e,` `,(0,B.jsx)(`span`,{className:`text-text-subtle`,children:g(n(t.file_path))})]});case`Bash`:case`PowerShell`:{let r=t.description?n(t.description):n(t.command);return(0,B.jsxs)(B.Fragment,{children:[e,` `,(0,B.jsx)(`span`,{className:`text-text-subtle${t.description?``:` font-mono`}`,children:$(r,60)})]})}case`Glob`:return(0,B.jsxs)(B.Fragment,{children:[e,` `,(0,B.jsx)(`span`,{className:`font-mono text-text-subtle`,children:n(t.pattern)})]});case`Grep`:return(0,B.jsxs)(B.Fragment,{children:[e,` `,(0,B.jsx)(`span`,{className:`font-mono text-text-subtle`,children:$(n(t.pattern),40)})]});case`WebSearch`:return(0,B.jsxs)(B.Fragment,{children:[(0,B.jsx)(E,{className:`size-3 inline`}),` `,e,` `,(0,B.jsx)(`span`,{className:`text-text-subtle`,children:$(n(t.query),50)})]});case`WebFetch`:return(0,B.jsxs)(B.Fragment,{children:[(0,B.jsx)(w,{className:`size-3 inline`}),` `,e,` `,(0,B.jsx)(`span`,{className:`text-text-subtle`,children:$(n(t.url),50)})]});case`ToolSearch`:return(0,B.jsxs)(B.Fragment,{children:[(0,B.jsx)(E,{className:`size-3 inline`}),` `,e,` `,(0,B.jsx)(`span`,{className:`text-text-subtle`,children:$(n(t.query),50)})]});case`ImageGen`:{let e=(n(t.prompt).split(`
4
+ `).find(e=>e.trim())??``)||g(n(t.file_path));return(0,B.jsxs)(B.Fragment,{children:[(0,B.jsx)(I,{className:`size-3 inline`}),` Image`,(0,B.jsxs)(`span`,{className:`text-text-subtle`,children:[` `,$(e,50)]})]})}case`Agent`:case`Task`:{let r=X(e,t),i=$(n(t.description||t.prompt),r?44:60);return(0,B.jsxs)(B.Fragment,{children:[!r&&(0,B.jsx)(a,{className:`size-3 inline`}),` `,e,` `,r&&(0,B.jsx)(`span`,{className:`text-text-primary font-medium`,children:r}),(0,B.jsx)(`span`,{className:`text-text-subtle`,children:r?` · ${i}`:i})]})}case`SendMessage`:return(0,B.jsx)(ae,{name:e,input:t});case`TodoWrite`:{let n=Array.isArray(t.todos)?t.todos:[],r=n.filter(e=>e.status===`completed`).length;return(0,B.jsxs)(B.Fragment,{children:[(0,B.jsx)(R,{className:`size-3 inline`}),` `,e,` `,(0,B.jsxs)(`span`,{className:`text-text-subtle`,children:[r,`/`,n.length,` done`]})]})}case`AskUserQuestion`:{let n=Array.isArray(t.questions)?t.questions:[],r=!!t.answers;return(0,B.jsxs)(B.Fragment,{children:[e,` `,(0,B.jsxs)(`span`,{className:`text-text-subtle`,children:[n.length,` question`,n.length===1?``:`s`,r?` ✓`:``]})]})}case`ScheduleWakeup`:return(0,B.jsxs)(B.Fragment,{children:[(0,B.jsx)(l,{className:`size-3 inline`}),` `,e,` `,(0,B.jsxs)(`span`,{className:`text-text-subtle`,children:[`in `,Be(Number(t.delaySeconds)),t.reason?` — ${$(n(t.reason),50)}`:``]})]});case`TaskCreate`:return(0,B.jsxs)(B.Fragment,{children:[(0,B.jsx)(R,{className:`size-3 inline`}),` `,e,` `,(0,B.jsx)(`span`,{className:`text-text-subtle`,children:$(n(t.subject),60)})]});case`TaskUpdate`:return(0,B.jsxs)(B.Fragment,{children:[(0,B.jsx)(R,{className:`size-3 inline`}),` `,e,` `,(0,B.jsxs)(`span`,{className:`text-text-subtle`,children:[`#`,n(t.taskId),` → `,n(t.status)]})]});case`TaskStop`:return(0,B.jsxs)(B.Fragment,{children:[(0,B.jsx)(R,{className:`size-3 inline`}),` `,e,` `,(0,B.jsxs)(`span`,{className:`text-text-subtle`,children:[`#`,n(t.taskId),` stopped`]})]});default:return(0,B.jsx)(B.Fragment,{children:e})}}function Ae({name:e,input:t,projectName:n,toolUseId:r}){let i=e=>String(e??``),{openTab:a}=_(b(e=>({openTab:e.openTab}))),o=e=>{n&&a({type:`editor`,title:g(e),metadata:{filePath:e,projectName:n},projectId:n,closable:!0})},s=(e,t,r)=>{a({type:`git-diff`,title:`Diff ${g(e)}`,metadata:{filePath:e,projectName:n,original:t,modified:r},projectId:n??null,closable:!0})};switch(e){case`Bash`:case`PowerShell`:return(0,B.jsxs)(`div`,{className:`space-y-1`,children:[!!t.description&&(0,B.jsx)(`p`,{className:`text-text-subtle italic`,children:i(t.description)}),(0,B.jsx)(`pre`,{className:`font-mono text-text-secondary overflow-x-auto whitespace-pre-wrap break-all`,children:i(t.command)})]});case`Read`:case`Write`:case`Edit`:case`MultiEdit`:case`NotebookEdit`:{let n=i(t.notebook_path||t.file_path),a=e===`Edit`&&(!!t.old_string||!!t.new_string),c=e=>r?`${r}-${e}`:void 0;return(0,B.jsxs)(`div`,{className:`space-y-1`,children:[(0,B.jsxs)(`div`,{className:`flex items-start gap-3`,children:[(0,B.jsxs)(`button`,{type:`button`,className:`font-mono text-text-secondary break-all hover:text-primary hover:underline text-left flex items-center gap-1 min-w-0`,onClick:()=>o(n),title:`Open file in editor`,children:[(0,B.jsx)(y,{className:`size-3 shrink-0`}),n]}),a&&(0,B.jsxs)(`button`,{type:`button`,className:`text-text-subtle hover:text-primary hover:underline flex items-center gap-1 shrink-0 whitespace-nowrap`,onClick:()=>s(n,i(t.old_string),i(t.new_string)),title:`View diff in new tab`,children:[(0,B.jsx)(d,{className:`size-3 shrink-0`}),`View Diff`]})]}),a&&(0,B.jsx)(`div`,{"data-edit-ref":c(0),children:(0,B.jsx)(ze,{oldStr:i(t.old_string),newStr:i(t.new_string),filePath:n})}),e===`MultiEdit`&&Array.isArray(t.edits)&&(0,B.jsx)(`div`,{className:`space-y-1.5`,children:t.edits.map((e,t)=>(0,B.jsxs)(`div`,{"data-edit-ref":c(t),className:`space-y-0.5`,children:[(0,B.jsxs)(`p`,{className:`text-text-subtle text-[10px]`,children:[`Edit `,t+1]}),(0,B.jsx)(ze,{oldStr:i(e.old_string),newStr:i(e.new_string),filePath:n})]},t))}),e===`Write`&&!!t.content&&(0,B.jsx)(`pre`,{"data-edit-ref":c(0),className:`font-mono text-text-subtle overflow-x-auto max-h-32 whitespace-pre-wrap`,children:$(i(t.content),300)})]})}case`Glob`:return(0,B.jsxs)(`p`,{className:`font-mono text-text-secondary`,children:[i(t.pattern),t.path?` in ${i(t.path)}`:``]});case`Grep`:return(0,B.jsxs)(`div`,{className:`space-y-0.5`,children:[(0,B.jsxs)(`p`,{className:`font-mono text-text-secondary`,children:[`/`,i(t.pattern),`/`]}),!!t.path&&(0,B.jsxs)(`p`,{className:`text-text-subtle`,children:[`in `,i(t.path)]})]});case`TodoWrite`:return(0,B.jsx)(Me,{todos:t.todos??[]});case`Agent`:case`Task`:{let n=X(e,t);return(0,B.jsxs)(`div`,{className:`space-y-1`,children:[!!n&&(0,B.jsxs)(`p`,{className:`flex flex-wrap items-center gap-1.5`,children:[(0,B.jsx)(`span`,{className:`text-text-subtle`,children:`Name`}),(0,B.jsx)(`span`,{className:`font-medium text-text-primary`,children:n}),(0,B.jsx)(`span`,{className:`inline-block rounded px-1.5 py-0.5 text-[10px] bg-accent-2/15 text-accent-2`,children:`teammate`}),t.isolation===`worktree`&&(0,B.jsx)(`span`,{className:`inline-block rounded px-1.5 py-0.5 text-[10px] bg-panel-2 text-text-3`,children:`worktree`})]}),!!t.description&&(0,B.jsx)(`p`,{className:`text-text-secondary font-medium`,children:i(t.description)}),!!t.subagent_type&&(0,B.jsxs)(`p`,{className:`text-text-subtle`,children:[`Type: `,i(t.subagent_type)]}),!!t.prompt&&(0,B.jsx)(V,{content:i(t.prompt),maxHeight:`max-h-48`})]})}case`SendMessage`:return(0,B.jsx)(oe,{input:t});case`ToolSearch`:return(0,B.jsxs)(`div`,{className:`space-y-0.5`,children:[(0,B.jsx)(`p`,{className:`font-mono text-text-secondary`,children:i(t.query)}),!!t.max_results&&(0,B.jsxs)(`p`,{className:`text-text-subtle`,children:[`Max results: `,i(t.max_results)]})]});case`WebFetch`:return(0,B.jsxs)(`div`,{className:`space-y-0.5`,children:[(0,B.jsxs)(`a`,{href:i(t.url),target:`_blank`,rel:`noopener noreferrer`,className:`font-mono text-primary hover:underline break-all flex items-center gap-1`,children:[(0,B.jsx)(w,{className:`size-3 shrink-0`}),i(t.url)]}),!!t.prompt&&(0,B.jsx)(`p`,{className:`text-text-subtle`,children:$(i(t.prompt),100)})]});case`AskUserQuestion`:{let e=t.questions??[],n=t.answers??{};return(0,B.jsx)(`div`,{className:`space-y-2`,children:e.map((e,t)=>(0,B.jsxs)(`div`,{className:`space-y-0.5`,children:[(0,B.jsxs)(`p`,{className:`text-text-primary font-medium`,children:[e.header?`${e.header}: `:``,e.question]}),(0,B.jsx)(`div`,{className:`flex flex-wrap gap-1`,children:e.options.map((t,r)=>(0,B.jsx)(`span`,{className:`inline-block rounded px-1.5 py-0.5 text-xs border ${(n[e.question]??``).split(`, `).includes(t.label)?`border-primary bg-primary/20 text-text-primary`:`border-border text-text-subtle`}`,children:t.label},r))}),n[e.question]&&(0,B.jsxs)(`p`,{className:`text-foreground text-xs`,children:[`Answer: `,n[e.question]]})]},t))})}case`ScheduleWakeup`:{let e=Number(t.delaySeconds)||0;return(0,B.jsxs)(`div`,{className:`space-y-1`,children:[(0,B.jsxs)(`p`,{className:`text-text-secondary`,children:[(0,B.jsx)(l,{className:`size-3 inline mr-1`}),`Wake in `,(0,B.jsx)(`span`,{className:`font-medium text-text-primary`,children:Be(e)}),(0,B.jsxs)(`span`,{className:`text-text-subtle`,children:[` (`,e,`s)`]})]}),!!t.reason&&(0,B.jsx)(`p`,{className:`text-text-secondary italic`,children:i(t.reason)}),!!t.prompt&&(0,B.jsxs)(`div`,{children:[(0,B.jsx)(`p`,{className:`text-text-subtle text-[10px] mb-0.5`,children:`Prompt on wake`}),(0,B.jsx)(V,{content:i(t.prompt),maxHeight:`max-h-48`})]})]})}case`TaskCreate`:return(0,B.jsxs)(`div`,{className:`space-y-1`,children:[(0,B.jsx)(`p`,{className:`text-text-primary font-medium`,children:i(t.subject)}),!!t.description&&(0,B.jsx)(`p`,{className:`text-text-subtle`,children:i(t.description)}),!!t.activeForm&&(0,B.jsx)(`p`,{className:`text-text-subtle italic`,children:i(t.activeForm)})]});case`TaskUpdate`:return(0,B.jsxs)(`div`,{className:`flex items-center gap-1.5`,children:[(0,B.jsxs)(`span`,{className:`font-mono text-text-secondary`,children:[`#`,i(t.taskId)]}),(0,B.jsx)(je,{status:i(t.status)})]});case`TaskStop`:return(0,B.jsxs)(`div`,{className:`flex items-center gap-1.5`,children:[(0,B.jsxs)(`span`,{className:`font-mono text-text-secondary`,children:[`#`,i(t.taskId)]}),(0,B.jsx)(je,{status:`stopped`})]});case`ImageGen`:return(0,B.jsxs)(`div`,{className:`space-y-1`,children:[!!t.prompt&&(0,B.jsx)(`p`,{className:`text-text-secondary whitespace-pre-wrap`,children:i(t.prompt)}),t.transparentBackground===!0&&(0,B.jsx)(`p`,{className:`text-text-subtle`,children:`Transparent background`})]});default:return(0,B.jsx)(`pre`,{className:`overflow-x-auto text-text-secondary font-mono whitespace-pre-wrap break-all`,children:JSON.stringify(t,null,2)})}}function je({status:e}){return(0,B.jsx)(`span`,{className:`inline-block rounded px-1.5 py-0.5 text-[10px] border ${e===`completed`?`text-success border-success/30 bg-success/10`:e===`in_progress`?`text-warning border-warning/30 bg-warning/10`:`text-text-subtle border-border bg-surface`}`,children:e})}function Me({todos:e}){return(0,B.jsx)(`div`,{className:`space-y-0.5`,children:e.map((e,t)=>(0,B.jsxs)(`div`,{className:`flex items-start gap-1.5`,children:[(0,B.jsx)(`span`,{className:`shrink-0 mt-0.5 ${e.status===`completed`?`text-success`:e.status===`in_progress`?`text-warning`:`text-text-subtle`}`,children:e.status===`completed`?`✓`:e.status===`in_progress`?`▶`:`○`}),(0,B.jsx)(`span`,{className:e.status===`completed`?`line-through text-text-subtle`:`text-text-secondary`,children:e.content})]},t))})}function Ne({toolName:e,output:t}){let[n,r]=(0,z.useState)(!1),i=(0,z.useMemo)(()=>{if(e!==`Agent`&&e!==`Task`)return null;try{let e=JSON.parse(t);if(Array.isArray(e)){let t=e.filter(e=>e.type===`text`&&e.text).map(e=>e.text).join(`
5
5
 
6
6
  `);if(t)return t}if(typeof e==`string`)return e}catch{if(t&&!t.startsWith(`[{`))return t}return null},[e,t]);return e===`SendMessage`&&G(t)?(0,B.jsx)(se,{output:t}):i?(0,B.jsxs)(`div`,{className:`border-t border-border pt-1.5 space-y-1`,children:[(0,B.jsx)(V,{content:i,maxHeight:`max-h-60`}),(0,B.jsxs)(`button`,{type:`button`,onClick:()=>r(!n),className:`flex items-center gap-1 text-[10px] text-text-subtle hover:text-text-secondary transition-colors`,children:[(0,B.jsx)(u,{className:`size-3`}),n?`Hide`:`Show`,` raw`]}),n&&(0,B.jsx)(`pre`,{className:`overflow-x-auto text-text-subtle font-mono max-h-40 whitespace-pre-wrap break-all text-[10px]`,children:t})]}):(0,B.jsx)(Pe,{output:t})}function Pe({output:e}){let t=e.split(`
7
- `).length,n=t>3||e.length>200,[r,i]=(0,z.useState)(n);return(0,B.jsxs)(`div`,{className:`border-t border-border pt-1.5`,children:[n&&(0,B.jsxs)(`button`,{type:`button`,onClick:()=>i(!r),className:`flex items-center gap-1 text-[10px] text-text-subtle hover:text-text-secondary transition-colors mb-1`,children:[r?(0,B.jsx)(c,{className:`size-3`}):(0,B.jsx)(s,{className:`size-3`}),`Output (`,t,` lines)`]}),(0,B.jsx)(`pre`,{className:`overflow-x-auto text-text-subtle font-mono whitespace-pre-wrap break-all ${r?`max-h-16 overflow-hidden`:`max-h-60`}`,children:e})]})}function Fe({events:e,projectName:t,className:n}){let r=[],i=``;for(let t of e)if(t.type===`text`)i+=t.content;else if(t.type===`tool_use`)i&&=(r.push({kind:`text`,content:i}),``),r.push({kind:`tool`,tool:t});else if(t.type===`tool_result`){let e=t.toolUseId,n=e?r.find(t=>t.kind===`tool`&&t.tool.type===`tool_use`&&t.tool.toolUseId===e&&!t.result):r.findLast(e=>e.kind===`tool`&&!e.result);n&&(n.result=t)}i&&r.push({kind:`text`,content:i});let a=(0,z.useRef)(null),o=(0,z.useRef)(!1);return(0,z.useEffect)(()=>{a.current&&!o.current&&(a.current.scrollTop=a.current.scrollHeight)},[r.length]),(0,B.jsx)(`div`,{ref:a,onScroll:e=>{let t=e.currentTarget;o.current=t.scrollTop+t.clientHeight<t.scrollHeight-20},className:n??`border-l-2 border-accent/20 pl-2 space-y-1 mt-1 max-h-64 md:max-h-96 overflow-y-auto`,children:r.map((e,n)=>e.kind===`text`?(0,B.jsx)(`div`,{className:`text-text-secondary text-[11px]`,children:(0,B.jsx)(V,{content:e.content,maxHeight:`max-h-24`})},`st-${n}`):(0,B.jsx)(Q,{tool:e.tool,result:e.result,completed:!!e.result,projectName:t},`sc-${n}`))})}function Ie({content:e,lineCount:t}){let n=(0,z.useRef)(null),r=(0,z.useRef)(!1);return(0,z.useEffect)(()=>{n.current&&!r.current&&(n.current.scrollTop=n.current.scrollHeight)},[e]),(0,B.jsxs)(`div`,{className:`border-t border-border pt-1.5`,children:[(0,B.jsxs)(`div`,{className:`flex items-center gap-1 text-[10px] text-warning mb-1`,children:[(0,B.jsx)(p,{className:`size-3 animate-spin`}),(0,B.jsxs)(`span`,{children:[`Output (`,t,` line`,t===1?``:`s`,`, streaming...)`]})]}),(0,B.jsx)(`pre`,{ref:n,onScroll:e=>{let t=e.currentTarget;r.current=t.scrollTop+t.clientHeight<t.scrollHeight-20},className:`overflow-x-auto overflow-y-auto max-h-60 text-text-subtle font-mono whitespace-pre-wrap break-all text-[11px]`,children:e.split(`
7
+ `).length,n=t>3||e.length>200,[r,i]=(0,z.useState)(n);return(0,B.jsxs)(`div`,{className:`border-t border-border pt-1.5`,children:[n&&(0,B.jsxs)(`button`,{type:`button`,onClick:()=>i(!r),className:`flex items-center gap-1 text-[10px] text-text-subtle hover:text-text-secondary transition-colors mb-1`,children:[r?(0,B.jsx)(s,{className:`size-3`}):(0,B.jsx)(o,{className:`size-3`}),`Output (`,t,` lines)`]}),(0,B.jsx)(`pre`,{className:`overflow-x-auto text-text-subtle font-mono whitespace-pre-wrap break-all ${r?`max-h-16 overflow-hidden`:`max-h-60`}`,children:e})]})}function Fe({events:e,projectName:t,className:n}){let r=[],i=``;for(let t of e)if(t.type===`text`)i+=t.content;else if(t.type===`tool_use`)i&&=(r.push({kind:`text`,content:i}),``),r.push({kind:`tool`,tool:t});else if(t.type===`tool_result`){let e=t.toolUseId,n=e?r.find(t=>t.kind===`tool`&&t.tool.type===`tool_use`&&t.tool.toolUseId===e&&!t.result):r.findLast(e=>e.kind===`tool`&&!e.result);n&&(n.result=t)}i&&r.push({kind:`text`,content:i});let a=(0,z.useRef)(null),o=(0,z.useRef)(!1);return(0,z.useEffect)(()=>{a.current&&!o.current&&(a.current.scrollTop=a.current.scrollHeight)},[r.length]),(0,B.jsx)(`div`,{ref:a,onScroll:e=>{let t=e.currentTarget;o.current=t.scrollTop+t.clientHeight<t.scrollHeight-20},className:n??`border-l-2 border-accent/20 pl-2 space-y-1 mt-1 max-h-64 md:max-h-96 overflow-y-auto`,children:r.map((e,n)=>e.kind===`text`?(0,B.jsx)(`div`,{className:`text-text-secondary text-[11px]`,children:(0,B.jsx)(V,{content:e.content,maxHeight:`max-h-24`})},`st-${n}`):(0,B.jsx)(Q,{tool:e.tool,result:e.result,completed:!!e.result,projectName:t},`sc-${n}`))})}function Ie({content:e,lineCount:t}){let n=(0,z.useRef)(null),r=(0,z.useRef)(!1);return(0,z.useEffect)(()=>{n.current&&!r.current&&(n.current.scrollTop=n.current.scrollHeight)},[e]),(0,B.jsxs)(`div`,{className:`border-t border-border pt-1.5`,children:[(0,B.jsxs)(`div`,{className:`flex items-center gap-1 text-[10px] text-warning mb-1`,children:[(0,B.jsx)(p,{className:`size-3 animate-spin`}),(0,B.jsxs)(`span`,{children:[`Output (`,t,` line`,t===1?``:`s`,`, streaming...)`]})]}),(0,B.jsx)(`pre`,{ref:n,onScroll:e=>{let t=e.currentTarget;r.current=t.scrollTop+t.clientHeight<t.scrollHeight-20},className:`overflow-x-auto overflow-y-auto max-h-60 text-text-subtle font-mono whitespace-pre-wrap break-all text-[11px]`,children:e.split(`
8
8
  `).slice(-200).join(`
9
- `)})]})}var Le=h(()=>import(`./edit-diff-preview-F7YlT9fY.js`),__vite__mapDeps([48,2,5,49])),Re=(0,z.lazy)(()=>Le);function ze(e){return(0,B.jsx)(z.Suspense,{fallback:(0,B.jsx)(`div`,{className:`animate-pulse h-8 bg-muted rounded`}),children:(0,B.jsx)(Re,{...e})})}function $(e,t=50){return e?e.length>t?e.slice(0,t)+`…`:e:``}function Be(e){if(!Number.isFinite(e)||e<=0)return`0s`;let t=Math.floor(e/3600),n=Math.floor(e%3600/60),r=Math.round(e%60),i=[];return t&&i.push(`${t}h`),n&&i.push(`${n}m`),(r||i.length===0)&&i.push(`${r}s`),i.join(` `)}export{M as a,R as i,Q as n,j as o,te as r,Fe as t};
9
+ `)})]})}var Le=h(()=>import(`./edit-diff-preview-CRjufuw_.js`),__vite__mapDeps([48,2,4,49])),Re=(0,z.lazy)(()=>Le);function ze(e){return(0,B.jsx)(z.Suspense,{fallback:(0,B.jsx)(`div`,{className:`animate-pulse h-8 bg-muted rounded`}),children:(0,B.jsx)(Re,{...e})})}function $(e,t=50){return e?e.length>t?e.slice(0,t)+`…`:e:``}function Be(e){if(!Number.isFinite(e)||e<=0)return`0s`;let t=Math.floor(e/3600),n=Math.floor(e%3600/60),r=Math.round(e%60),i=[];return t&&i.push(`${t}h`),n&&i.push(`${n}m`),(r||i.length===0)&&i.push(`${r}s`),i.join(` `)}export{M as a,R as i,Q as n,j as o,te as r,Fe as t};
@@ -0,0 +1 @@
1
+ import{P as e}from"./vendor-mermaid-BoRFiriK.js";export{e as createTreemapServices};
@@ -1 +1 @@
1
- import{t as e}from"./javascript-Dwc_x-Qy.js";import{t}from"./css-DzLteUnC.js";import{t as n}from"./html-Cjiwd8dp.js";import{t as r}from"./xml-CVHJ-Tda.js";import{t as i}from"./typescript-2AZeIhCA.js";import{t as a}from"./sql-Ce-1ETwT.js";import{t as o}from"./glsl-CUUtWNTx.js";var s=Object.freeze(JSON.parse('{"fileTypes":["js","jsx","ts","tsx","html","vue","svelte","php","res"],"injectTo":["source.ts","source.js"],"injectionSelector":"L:source.js -comment -string, L:source.js -comment -string, L:source.jsx -comment -string, L:source.js.jsx -comment -string, L:source.ts -comment -string, L:source.tsx -comment -string, L:source.rescript -comment -string, L:source.vue -comment -string, L:source.svelte -comment -string, L:source.php -comment -string, L:source.rescript -comment -string","injections":{"L:source":{"patterns":[{"match":"<","name":"invalid.illegal.bad-angle-bracket.html"}]}},"name":"es-tag-css","patterns":[{"begin":"(?i)(\\\\s?/\\\\*\\\\s?((?:|inline-)css)\\\\s?\\\\*/\\\\s?)(`)","beginCaptures":{"1":{"name":"comment.block"}},"end":"(`)","patterns":[{"include":"source.ts#template-substitution-element"},{"include":"source.css"},{"include":"inline.es6-htmlx#template"}]},{"begin":"(?i)(\\\\s*((?:|inline-)css))(`)","beginCaptures":{"1":{"name":"comment.block"}},"end":"(`)","patterns":[{"include":"source.ts#template-substitution-element"},{"include":"source.css"},{"include":"inline.es6-htmlx#template"},{"include":"string.quoted.other.template.js"}]},{"begin":"(?i)(?<=[(,:=\\\\s]|\\\\$\\\\()\\\\s*(((/\\\\*)|(//))\\\\s?((?:|inline-)css) {0,1000}\\\\*?/?) {0,1000}$","beginCaptures":{"1":{"name":"comment.line"}},"end":"(`).*","patterns":[{"begin":"\\\\G()","end":"(`)"},{"include":"source.ts#template-substitution-element"},{"include":"source.css"}]},{"begin":"(\\\\$\\\\{)","beginCaptures":{"1":{"name":"entity.name.tag"}},"end":"(})","endCaptures":{"1":{"name":"entity.name.tag"}},"patterns":[{"include":"source.ts#template-substitution-element"},{"include":"source.js"}]}],"scopeName":"inline.es6-css","embeddedLangs":["typescript","css","javascript"]}')),c=[...i,...t,...e,s],l=Object.freeze(JSON.parse('{"fileTypes":["js","jsx","ts","tsx","html","vue","svelte","php","res"],"injectTo":["source.ts","source.js"],"injectionSelector":"L:source.js -comment -string, L:source.js -comment -string, L:source.jsx -comment -string, L:source.js.jsx -comment -string, L:source.ts -comment -string, L:source.tsx -comment -string, L:source.rescript -comment -string","injections":{"L:source":{"patterns":[{"match":"<","name":"invalid.illegal.bad-angle-bracket.html"}]}},"name":"es-tag-glsl","patterns":[{"begin":"(?i)(\\\\s?/\\\\*\\\\s?((?:|inline-)glsl)\\\\s?\\\\*/\\\\s?)(`)","beginCaptures":{"1":{"name":"comment.block"}},"end":"(`)","patterns":[{"include":"source.ts#template-substitution-element"},{"include":"source.glsl"},{"include":"inline.es6-htmlx#template"}]},{"begin":"(?i)(\\\\s*((?:|inline-)glsl))(`)","beginCaptures":{"1":{"name":"comment.block"}},"end":"(`)","patterns":[{"include":"source.ts#template-substitution-element"},{"include":"source.glsl"},{"include":"inline.es6-htmlx#template"},{"include":"string.quoted.other.template.js"}]},{"begin":"(?i)(?<=[(,:=\\\\s]|\\\\$\\\\()\\\\s*(((/\\\\*)|(//))\\\\s?((?:|inline-)glsl) {0,1000}\\\\*?/?) {0,1000}$","beginCaptures":{"1":{"name":"comment.line"}},"end":"(`).*","patterns":[{"begin":"\\\\G()","end":"(`)"},{"include":"source.ts#template-substitution-element"},{"include":"source.glsl"}]},{"begin":"(\\\\$\\\\{)","beginCaptures":{"1":{"name":"entity.name.tag"}},"end":"(})","endCaptures":{"1":{"name":"entity.name.tag"}},"patterns":[{"include":"source.ts#template-substitution-element"},{"include":"source.js"}]}],"scopeName":"inline.es6-glsl","embeddedLangs":["typescript","glsl","javascript"]}')),u=[...i,...o,...e,l],d=Object.freeze(JSON.parse('{"fileTypes":["js","jsx","ts","tsx","html","vue","svelte","php","res"],"injectTo":["source.ts","source.js"],"injectionSelector":"L:source.js -comment -string, L:source.js -comment -string, L:source.jsx -comment -string, L:source.js.jsx -comment -string, L:source.ts -comment -string, L:source.tsx -comment -string, L:source.rescript -comment -string","injections":{"L:source":{"patterns":[{"match":"<","name":"invalid.illegal.bad-angle-bracket.html"}]}},"name":"es-tag-html","patterns":[{"begin":"(?i)(\\\\s?/\\\\*\\\\s?(html|template|inline-html|inline-template)\\\\s?\\\\*/\\\\s?)(`)","beginCaptures":{"1":{"name":"comment.block"}},"end":"(`)","patterns":[{"include":"source.ts#template-substitution-element"},{"include":"text.html.basic"},{"include":"inline.es6-htmlx#template"}]},{"begin":"(?i)(\\\\s*(html|template|inline-html|inline-template))(`)","beginCaptures":{"1":{"name":"comment.block"}},"end":"(`)","patterns":[{"include":"source.ts#template-substitution-element"},{"include":"text.html.basic"},{"include":"inline.es6-htmlx#template"},{"include":"string.quoted.other.template.js"}]},{"begin":"(?i)(?<=[(,:=\\\\s]|\\\\$\\\\()\\\\s*(((/\\\\*)|(//))\\\\s?(html|template|inline-html|inline-template) {0,1000}\\\\*?/?) {0,1000}$","beginCaptures":{"1":{"name":"comment.line"}},"end":"(`).*","patterns":[{"begin":"\\\\G()","end":"(`)"},{"include":"source.ts#template-substitution-element"},{"include":"text.html.basic"}]},{"begin":"(\\\\$\\\\{)","beginCaptures":{"1":{"name":"entity.name.tag"}},"end":"(})","endCaptures":{"1":{"name":"entity.name.tag"}},"patterns":[{"include":"source.ts#template-substitution-element"},{"include":"source.js"}]},{"begin":"(\\\\$\\\\(`)","beginCaptures":{"1":{"name":"entity.name.tag"}},"end":"(`\\\\))","endCaptures":{"1":{"name":"entity.name.tag"}},"patterns":[{"include":"source.ts#template-substitution-element"},{"include":"source.js"}]}],"scopeName":"inline.es6-html","embeddedLangs":["typescript","html","javascript"]}')),f=[...i,...n,...e,d],p=Object.freeze(JSON.parse('{"injectTo":["source.ts","source.js"],"injectionSelector":"L:source -comment -string","name":"es-tag-sql","patterns":[{"__COMMENT__":"Literals tagged with an sql function (including optional accessors and types), e.g. sql<User>(\'user-by-id\')`SELECT ...`","begin":"(?:([$_[:alpha:]][$_[:alnum:]]*)(?:\\\\s*(\\\\??\\\\.)\\\\s*(#?[$_[:alpha:]][$_[:alnum:]]*))*\\\\s*(\\\\??\\\\.))?\\\\s*(#?(?i)sql|sqlFragment(?-i))\\\\s*(?=(?:(\\\\?\\\\.\\\\s*)|(!))?((<\\\\s*(((keyof|infer|awaited|typeof|readonly)\\\\s+)|(([$_[:alpha:]][$_[:alnum:]]*|(\\\\{([^{}]|(\\\\{([^{}]|\\\\{[^{}]*})*}))*})|(\\\\(([^()]|(\\\\(([^()]|\\\\([^()]*\\\\))*\\\\)))*\\\\))|(\\\\[([^]\\\\[]|(\\\\[([^]\\\\[]|\\\\[[^]\\\\[]*])*]))*])|(\'([^\'\\\\\\\\]|\\\\\\\\.)*\')|(\\"([^\\"\\\\\\\\]|\\\\\\\\.)*\\")|(`([^\\\\\\\\`]|\\\\\\\\.)*`))(?=\\\\s*([,.<>\\\\[]|=>|&(?!&)|\\\\|(?!\\\\|)))))([^(<>]|(\\\\(([^()]|(\\\\(([^()]|\\\\([^()]*\\\\))*\\\\)))*\\\\))|(?<==)>|<\\\\s*(((keyof|infer|awaited|typeof|readonly)\\\\s+)|(([$_[:alpha:]][$_[:alnum:]]*|(\\\\{([^{}]|(\\\\{([^{}]|\\\\{[^{}]*})*}))*})|(\\\\(([^()]|(\\\\(([^()]|\\\\([^()]*\\\\))*\\\\)))*\\\\))|(\\\\[([^]\\\\[]|(\\\\[([^]\\\\[]|\\\\[[^]\\\\[]*])*]))*])|(\'([^\'\\\\\\\\]|\\\\\\\\.)*\')|(\\"([^\\"\\\\\\\\]|\\\\\\\\.)*\\")|(`([^\\\\\\\\`]|\\\\\\\\.)*`))(?=\\\\s*([,.<>\\\\[]|=>|&(?!&)|\\\\|(?!\\\\|)))))(([^(<>]|(\\\\(([^()]|(\\\\(([^()]|\\\\([^()]*\\\\))*\\\\)))*\\\\))|(?<==)>|<\\\\s*(((keyof|infer|awaited|typeof|readonly)\\\\s+)|(([$_[:alpha:]][$_[:alnum:]]*|(\\\\{([^{}]|(\\\\{([^{}]|\\\\{[^{}]*})*}))*})|(\\\\(([^()]|(\\\\(([^()]|\\\\([^()]*\\\\))*\\\\)))*\\\\))|(\\\\[([^]\\\\[]|(\\\\[([^]\\\\[]|\\\\[[^]\\\\[]*])*]))*])|(\'([^\'\\\\\\\\]|\\\\\\\\.)*\')|(\\"([^\\"\\\\\\\\]|\\\\\\\\.)*\\")|(`([^\\\\\\\\`]|\\\\\\\\.)*`))(?=\\\\s*([,.<>\\\\[]|=>|&(?!&)|\\\\|(?!\\\\|)))))([^(<>]|(\\\\(([^()]|(\\\\(([^()]|\\\\([^()]*\\\\))*\\\\)))*\\\\))|(?<==)>)*(?<!=)>))*(?<!=)>)*(?<!=)>\\\\s*)?\\\\())","beginCaptures":{"1":{"name":"meta.function-call.ts variable.other.object.ts"},"2":{"name":"meta.function-call.ts punctuation.accessor.optional.ts"},"3":{"name":"meta.function-call.ts variable.other.object.ts"},"4":{"name":"meta.function-call.ts punctuation.accessor.optional.ts"},"5":{"name":"meta.function-call.ts entity.name.function.ts"}},"end":"(?<=(`|\\\\)\\\\s*[^`\\\\s]))","patterns":[{"include":"source.ts#comment"},{"include":"source.ts#function-call-optionals"},{"include":"source.ts#type-arguments"},{"include":"source.ts#paren-expression"},{"include":"#embedded-sql"}]},{"__COMMENT__":"Literals tagged with an sql comment, e.g. /*sql*/`SELECT ...`","begin":"(/\\\\*\\\\s*(?i)sql(?-i)\\\\s*\\\\*/)\\\\s*(?=`)","beginCaptures":{"1":{"name":"comment.block.ts"}},"end":"(?<=`)","patterns":[{"include":"#embedded-sql"}]},{"__COMMENT__":"Literals tagged with sql (including optional accessors and types), e.g. my.object?.sql<User>`SELECT ...`. This is based on the 1st #template-call pattern in TypeScript.tmLanguage.json","begin":"(?=(([$_[:alpha:]][$_[:alnum:]]*\\\\s*\\\\??\\\\.\\\\s*)*|(\\\\??\\\\.\\\\s*)?)(#?(?i)sql|sqlFragment(?-i))(<\\\\s*(((keyof|infer|awaited|typeof|readonly)\\\\s+)|(([$_[:alpha:]][$_[:alnum:]]*|(\\\\{([^{}]|(\\\\{([^{}]|\\\\{[^{}]*})*}))*})|(\\\\(([^()]|(\\\\(([^()]|\\\\([^()]*\\\\))*\\\\)))*\\\\))|(\\\\[([^]\\\\[]|(\\\\[([^]\\\\[]|\\\\[[^]\\\\[]*])*]))*])|(\'([^\'\\\\\\\\]|\\\\\\\\.)*\')|(\\"([^\\"\\\\\\\\]|\\\\\\\\.)*\\")|(`([^\\\\\\\\`]|\\\\\\\\.)*`))(?=\\\\s*([,.<>\\\\[]|=>|&(?!&)|\\\\|(?!\\\\|)))))([^(<>]|(\\\\(([^()]|(\\\\(([^()]|\\\\([^()]*\\\\))*\\\\)))*\\\\))|(?<==)>|<\\\\s*(((keyof|infer|awaited|typeof|readonly)\\\\s+)|(([$_[:alpha:]][$_[:alnum:]]*|(\\\\{([^{}]|(\\\\{([^{}]|\\\\{[^{}]*})*}))*})|(\\\\(([^()]|(\\\\(([^()]|\\\\([^()]*\\\\))*\\\\)))*\\\\))|(\\\\[([^]\\\\[]|(\\\\[([^]\\\\[]|\\\\[[^]\\\\[]*])*]))*])|(\'([^\'\\\\\\\\]|\\\\\\\\.)*\')|(\\"([^\\"\\\\\\\\]|\\\\\\\\.)*\\")|(`([^\\\\\\\\`]|\\\\\\\\.)*`))(?=\\\\s*([,.<>\\\\[]|=>|&(?!&)|\\\\|(?!\\\\|)))))(([^(<>]|(\\\\(([^()]|(\\\\(([^()]|\\\\([^()]*\\\\))*\\\\)))*\\\\))|(?<==)>|<\\\\s*(((keyof|infer|awaited|typeof|readonly)\\\\s+)|(([$_[:alpha:]][$_[:alnum:]]*|(\\\\{([^{}]|(\\\\{([^{}]|\\\\{[^{}]*})*}))*})|(\\\\(([^()]|(\\\\(([^()]|\\\\([^()]*\\\\))*\\\\)))*\\\\))|(\\\\[([^]\\\\[]|(\\\\[([^]\\\\[]|\\\\[[^]\\\\[]*])*]))*])|(\'([^\'\\\\\\\\]|\\\\\\\\.)*\')|(\\"([^\\"\\\\\\\\]|\\\\\\\\.)*\\")|(`([^\\\\\\\\`]|\\\\\\\\.)*`))(?=\\\\s*([,.<>\\\\[]|=>|&(?!&)|\\\\|(?!\\\\|)))))([^(<>]|(\\\\(([^()]|(\\\\(([^()]|\\\\([^()]*\\\\))*\\\\)))*\\\\))|(?<==)>)*(?<!=)>))*(?<!=)>)*(?<!=)>\\\\s*)?`)","end":"(?<=`)","name":"string.template.ts","patterns":[{"begin":"(?=(([$_[:alpha:]][$_[:alnum:]]*\\\\s*\\\\??\\\\.\\\\s*)*|(\\\\??\\\\.\\\\s*)?)(#?(?i)sql|sqlFragment(?-i)))","end":"(?=(<\\\\s*(((keyof|infer|awaited|typeof|readonly)\\\\s+)|(([$_[:alpha:]][$_[:alnum:]]*|(\\\\{([^{}]|(\\\\{([^{}]|\\\\{[^{}]*})*}))*})|(\\\\(([^()]|(\\\\(([^()]|\\\\([^()]*\\\\))*\\\\)))*\\\\))|(\\\\[([^]\\\\[]|(\\\\[([^]\\\\[]|\\\\[[^]\\\\[]*])*]))*])|(\'([^\'\\\\\\\\]|\\\\\\\\.)*\')|(\\"([^\\"\\\\\\\\]|\\\\\\\\.)*\\")|(`([^\\\\\\\\`]|\\\\\\\\.)*`))(?=\\\\s*([,.<>\\\\[]|=>|&(?!&)|\\\\|(?!\\\\|)))))([^(<>]|(\\\\(([^()]|(\\\\(([^()]|\\\\([^()]*\\\\))*\\\\)))*\\\\))|(?<==)>|<\\\\s*(((keyof|infer|awaited|typeof|readonly)\\\\s+)|(([$_[:alpha:]][$_[:alnum:]]*|(\\\\{([^{}]|(\\\\{([^{}]|\\\\{[^{}]*})*}))*})|(\\\\(([^()]|(\\\\(([^()]|\\\\([^()]*\\\\))*\\\\)))*\\\\))|(\\\\[([^]\\\\[]|(\\\\[([^]\\\\[]|\\\\[[^]\\\\[]*])*]))*])|(\'([^\'\\\\\\\\]|\\\\\\\\.)*\')|(\\"([^\\"\\\\\\\\]|\\\\\\\\.)*\\")|(`([^\\\\\\\\`]|\\\\\\\\.)*`))(?=\\\\s*([,.<>\\\\[]|=>|&(?!&)|\\\\|(?!\\\\|)))))(([^(<>]|(\\\\(([^()]|(\\\\(([^()]|\\\\([^()]*\\\\))*\\\\)))*\\\\))|(?<==)>|<\\\\s*(((keyof|infer|awaited|typeof|readonly)\\\\s+)|(([$_[:alpha:]][$_[:alnum:]]*|(\\\\{([^{}]|(\\\\{([^{}]|\\\\{[^{}]*})*}))*})|(\\\\(([^()]|(\\\\(([^()]|\\\\([^()]*\\\\))*\\\\)))*\\\\))|(\\\\[([^]\\\\[]|(\\\\[([^]\\\\[]|\\\\[[^]\\\\[]*])*]))*])|(\'([^\'\\\\\\\\]|\\\\\\\\.)*\')|(\\"([^\\"\\\\\\\\]|\\\\\\\\.)*\\")|(`([^\\\\\\\\`]|\\\\\\\\.)*`))(?=\\\\s*([,.<>\\\\[]|=>|&(?!&)|\\\\|(?!\\\\|)))))([^(<>]|(\\\\(([^()]|(\\\\(([^()]|\\\\([^()]*\\\\))*\\\\)))*\\\\))|(?<==)>)*(?<!=)>))*(?<!=)>)*(?<!=)>\\\\s*)?`)","patterns":[{"include":"source.ts#support-function-call-identifiers"},{"match":"(#?(?i)sql|sqlFragment(?-i))","name":"entity.name.function.tagged-template.ts"}]},{"include":"source.ts#type-arguments"},{"include":"#embedded-sql"}]},{"__COMMENT__":"Literals tagged with sql (including optional types), e.g. sql<User>`SELECT ...`. This is based on the 2nd #template-call pattern in TypeScript.tmLanguage.json","begin":"\\\\b((?i)sql|sqlFragment(?-i))\\\\s*(?=(<\\\\s*(((keyof|infer|awaited|typeof|readonly)\\\\s+)|(([$_[:alpha:]][$_[:alnum:]]*|(\\\\{([^{}]|(\\\\{([^{}]|\\\\{[^{}]*})*}))*})|(\\\\(([^()]|(\\\\(([^()]|\\\\([^()]*\\\\))*\\\\)))*\\\\))|(\\\\[([^]\\\\[]|(\\\\[([^]\\\\[]|\\\\[[^]\\\\[]*])*]))*])|(\'([^\'\\\\\\\\]|\\\\\\\\.)*\')|(\\"([^\\"\\\\\\\\]|\\\\\\\\.)*\\")|(`([^\\\\\\\\`]|\\\\\\\\.)*`))(?=\\\\s*([,.<>\\\\[]|=>|&(?!&)|\\\\|(?!\\\\|)))))([^(<>]|(\\\\(([^()]|(\\\\(([^()]|\\\\([^()]*\\\\))*\\\\)))*\\\\))|(?<==)>|<\\\\s*(((keyof|infer|awaited|typeof|readonly)\\\\s+)|(([$_[:alpha:]][$_[:alnum:]]*|(\\\\{([^{}]|(\\\\{([^{}]|\\\\{[^{}]*})*}))*})|(\\\\(([^()]|(\\\\(([^()]|\\\\([^()]*\\\\))*\\\\)))*\\\\))|(\\\\[([^]\\\\[]|(\\\\[([^]\\\\[]|\\\\[[^]\\\\[]*])*]))*])|(\'([^\'\\\\\\\\]|\\\\\\\\.)*\')|(\\"([^\\"\\\\\\\\]|\\\\\\\\.)*\\")|(`([^\\\\\\\\`]|\\\\\\\\.)*`))(?=\\\\s*([,.<>\\\\[]|=>|&(?!&)|\\\\|(?!\\\\|)))))(([^(<>]|(\\\\(([^()]|(\\\\(([^()]|\\\\([^()]*\\\\))*\\\\)))*\\\\))|(?<==)>|<\\\\s*(((keyof|infer|awaited|typeof|readonly)\\\\s+)|(([$_[:alpha:]][$_[:alnum:]]*|(\\\\{([^{}]|(\\\\{([^{}]|\\\\{[^{}]*})*}))*})|(\\\\(([^()]|(\\\\(([^()]|\\\\([^()]*\\\\))*\\\\)))*\\\\))|(\\\\[([^]\\\\[]|(\\\\[([^]\\\\[]|\\\\[[^]\\\\[]*])*]))*])|(\'([^\'\\\\\\\\]|\\\\\\\\.)*\')|(\\"([^\\"\\\\\\\\]|\\\\\\\\.)*\\")|(`([^\\\\\\\\`]|\\\\\\\\.)*`))(?=\\\\s*([,.<>\\\\[]|=>|&(?!&)|\\\\|(?!\\\\|)))))([^(<>]|(\\\\(([^()]|(\\\\(([^()]|\\\\([^()]*\\\\))*\\\\)))*\\\\))|(?<==)>)*(?<!=)>))*(?<!=)>)*(?<!=)>\\\\s*)`)","beginCaptures":{"1":{"name":"entity.name.function.tagged-template.ts"}},"end":"(?<=`)","name":"string.template.ts","patterns":[{"include":"source.ts#type-arguments"},{"include":"#embedded-sql"}]},{"__COMMENT__":"Literals tagged with sql, e.g. sql`SELECT ...`. This is based on the 2nd #template pattern in TypeScript.tmLanguage.json","begin":"\\\\b((?i)sql|sqlFragment(?-i))\\\\s*(?=`)","beginCaptures":{"1":{"name":"entity.name.function.tagged-template.ts"}},"end":"(?<=`)","name":"string.template.ts","patterns":[{"include":"#embedded-sql"}]}],"repository":{"embedded-sql":{"begin":"`","beginCaptures":{"0":{"name":"punctuation.definition.string.template.begin.js"}},"contentName":"meta.embedded.block.sql","end":"`","endCaptures":{"0":{"name":"punctuation.definition.string.template.end.js"}},"name":"string.template.ts","patterns":[{"include":"source.ts#template-substitution-element"},{"include":"source.ts#string-character-escape"},{"include":"source.sql"},{"include":"source.plpgsql.postgres"},{"match":"."}]}},"scopeName":"inline.tagged-template-sql","embeddedLangs":["typescript","sql"]}')),m=[...i,...a,p],h=Object.freeze(JSON.parse('{"fileTypes":["js","jsx","ts","tsx","html","vue","svelte","php","res"],"injectTo":["source.ts","source.js"],"injectionSelector":"L:source.js -comment -string, L:source.js -comment -string, L:source.jsx -comment -string, L:source.js.jsx -comment -string, L:source.ts -comment -string, L:source.tsx -comment -string, L:source.rescript -comment -string","injections":{"L:source":{"patterns":[{"match":"<","name":"invalid.illegal.bad-angle-bracket.html"}]}},"name":"es-tag-xml","patterns":[{"begin":"(?i)(\\\\s?/\\\\*\\\\s?(xml|svg|inline-svg|inline-xml)\\\\s?\\\\*/\\\\s?)(`)","beginCaptures":{"1":{"name":"comment.block"}},"end":"(`)","patterns":[{"include":"text.xml"}]},{"begin":"(?i)(\\\\s*((?:|inline-)xml))(`)","beginCaptures":{"1":{"name":"comment.block"}},"end":"(`)","patterns":[{"include":"text.xml"}]},{"begin":"(?i)(?<=[(,:=\\\\s]|\\\\$\\\\()\\\\s*(((/\\\\*)|(//))\\\\s?(xml|svg|inline-svg|inline-xml) {0,1000}\\\\*?/?) {0,1000}$","beginCaptures":{"1":{"name":"comment.line"}},"end":"(`).*","patterns":[{"begin":"\\\\G()","end":"(`)"},{"include":"text.xml"}]}],"scopeName":"inline.es6-xml","embeddedLangs":["xml"]}')),g=[...r,h],_=Object.freeze(JSON.parse(`{"displayName":"TypeScript with Tags","name":"ts-tags","patterns":[{"include":"source.ts"}],"scopeName":"source.ts.tags","embeddedLangs":["typescript","es-tag-css","es-tag-glsl","es-tag-html","es-tag-sql","es-tag-xml"],"aliases":["lit"]}`)),v=[...i,...c,...u,...f,...m,...g,_];export{v as default};
1
+ import{t as e}from"./javascript-jr4kIdgl.js";import{t}from"./css-CJSp2CsD.js";import{t as n}from"./html-BTA4eRkb.js";import{t as r}from"./xml-OX6YmzGK.js";import{t as i}from"./typescript-D38LfGSl.js";import{t as a}from"./sql-CXZ66NtF.js";import{t as o}from"./glsl-BtWQ4j8X.js";var s=Object.freeze(JSON.parse('{"fileTypes":["js","jsx","ts","tsx","html","vue","svelte","php","res"],"injectTo":["source.ts","source.js"],"injectionSelector":"L:source.js -comment -string, L:source.js -comment -string, L:source.jsx -comment -string, L:source.js.jsx -comment -string, L:source.ts -comment -string, L:source.tsx -comment -string, L:source.rescript -comment -string, L:source.vue -comment -string, L:source.svelte -comment -string, L:source.php -comment -string, L:source.rescript -comment -string","injections":{"L:source":{"patterns":[{"match":"<","name":"invalid.illegal.bad-angle-bracket.html"}]}},"name":"es-tag-css","patterns":[{"begin":"(?i)(\\\\s?/\\\\*\\\\s?((?:|inline-)css)\\\\s?\\\\*/\\\\s?)(`)","beginCaptures":{"1":{"name":"comment.block"}},"end":"(`)","patterns":[{"include":"source.ts#template-substitution-element"},{"include":"source.css"},{"include":"inline.es6-htmlx#template"}]},{"begin":"(?i)(\\\\s*((?:|inline-)css))(`)","beginCaptures":{"1":{"name":"comment.block"}},"end":"(`)","patterns":[{"include":"source.ts#template-substitution-element"},{"include":"source.css"},{"include":"inline.es6-htmlx#template"},{"include":"string.quoted.other.template.js"}]},{"begin":"(?i)(?<=[(,:=\\\\s]|\\\\$\\\\()\\\\s*(((/\\\\*)|(//))\\\\s?((?:|inline-)css) {0,1000}\\\\*?/?) {0,1000}$","beginCaptures":{"1":{"name":"comment.line"}},"end":"(`).*","patterns":[{"begin":"\\\\G()","end":"(`)"},{"include":"source.ts#template-substitution-element"},{"include":"source.css"}]},{"begin":"(\\\\$\\\\{)","beginCaptures":{"1":{"name":"entity.name.tag"}},"end":"(})","endCaptures":{"1":{"name":"entity.name.tag"}},"patterns":[{"include":"source.ts#template-substitution-element"},{"include":"source.js"}]}],"scopeName":"inline.es6-css","embeddedLangs":["typescript","css","javascript"]}')),c=[...i,...t,...e,s],l=Object.freeze(JSON.parse('{"fileTypes":["js","jsx","ts","tsx","html","vue","svelte","php","res"],"injectTo":["source.ts","source.js"],"injectionSelector":"L:source.js -comment -string, L:source.js -comment -string, L:source.jsx -comment -string, L:source.js.jsx -comment -string, L:source.ts -comment -string, L:source.tsx -comment -string, L:source.rescript -comment -string","injections":{"L:source":{"patterns":[{"match":"<","name":"invalid.illegal.bad-angle-bracket.html"}]}},"name":"es-tag-glsl","patterns":[{"begin":"(?i)(\\\\s?/\\\\*\\\\s?((?:|inline-)glsl)\\\\s?\\\\*/\\\\s?)(`)","beginCaptures":{"1":{"name":"comment.block"}},"end":"(`)","patterns":[{"include":"source.ts#template-substitution-element"},{"include":"source.glsl"},{"include":"inline.es6-htmlx#template"}]},{"begin":"(?i)(\\\\s*((?:|inline-)glsl))(`)","beginCaptures":{"1":{"name":"comment.block"}},"end":"(`)","patterns":[{"include":"source.ts#template-substitution-element"},{"include":"source.glsl"},{"include":"inline.es6-htmlx#template"},{"include":"string.quoted.other.template.js"}]},{"begin":"(?i)(?<=[(,:=\\\\s]|\\\\$\\\\()\\\\s*(((/\\\\*)|(//))\\\\s?((?:|inline-)glsl) {0,1000}\\\\*?/?) {0,1000}$","beginCaptures":{"1":{"name":"comment.line"}},"end":"(`).*","patterns":[{"begin":"\\\\G()","end":"(`)"},{"include":"source.ts#template-substitution-element"},{"include":"source.glsl"}]},{"begin":"(\\\\$\\\\{)","beginCaptures":{"1":{"name":"entity.name.tag"}},"end":"(})","endCaptures":{"1":{"name":"entity.name.tag"}},"patterns":[{"include":"source.ts#template-substitution-element"},{"include":"source.js"}]}],"scopeName":"inline.es6-glsl","embeddedLangs":["typescript","glsl","javascript"]}')),u=[...i,...o,...e,l],d=Object.freeze(JSON.parse('{"fileTypes":["js","jsx","ts","tsx","html","vue","svelte","php","res"],"injectTo":["source.ts","source.js"],"injectionSelector":"L:source.js -comment -string, L:source.js -comment -string, L:source.jsx -comment -string, L:source.js.jsx -comment -string, L:source.ts -comment -string, L:source.tsx -comment -string, L:source.rescript -comment -string","injections":{"L:source":{"patterns":[{"match":"<","name":"invalid.illegal.bad-angle-bracket.html"}]}},"name":"es-tag-html","patterns":[{"begin":"(?i)(\\\\s?/\\\\*\\\\s?(html|template|inline-html|inline-template)\\\\s?\\\\*/\\\\s?)(`)","beginCaptures":{"1":{"name":"comment.block"}},"end":"(`)","patterns":[{"include":"source.ts#template-substitution-element"},{"include":"text.html.basic"},{"include":"inline.es6-htmlx#template"}]},{"begin":"(?i)(\\\\s*(html|template|inline-html|inline-template))(`)","beginCaptures":{"1":{"name":"comment.block"}},"end":"(`)","patterns":[{"include":"source.ts#template-substitution-element"},{"include":"text.html.basic"},{"include":"inline.es6-htmlx#template"},{"include":"string.quoted.other.template.js"}]},{"begin":"(?i)(?<=[(,:=\\\\s]|\\\\$\\\\()\\\\s*(((/\\\\*)|(//))\\\\s?(html|template|inline-html|inline-template) {0,1000}\\\\*?/?) {0,1000}$","beginCaptures":{"1":{"name":"comment.line"}},"end":"(`).*","patterns":[{"begin":"\\\\G()","end":"(`)"},{"include":"source.ts#template-substitution-element"},{"include":"text.html.basic"}]},{"begin":"(\\\\$\\\\{)","beginCaptures":{"1":{"name":"entity.name.tag"}},"end":"(})","endCaptures":{"1":{"name":"entity.name.tag"}},"patterns":[{"include":"source.ts#template-substitution-element"},{"include":"source.js"}]},{"begin":"(\\\\$\\\\(`)","beginCaptures":{"1":{"name":"entity.name.tag"}},"end":"(`\\\\))","endCaptures":{"1":{"name":"entity.name.tag"}},"patterns":[{"include":"source.ts#template-substitution-element"},{"include":"source.js"}]}],"scopeName":"inline.es6-html","embeddedLangs":["typescript","html","javascript"]}')),f=[...i,...n,...e,d],p=Object.freeze(JSON.parse('{"injectTo":["source.ts","source.js"],"injectionSelector":"L:source -comment -string","name":"es-tag-sql","patterns":[{"__COMMENT__":"Literals tagged with an sql function (including optional accessors and types), e.g. sql<User>(\'user-by-id\')`SELECT ...`","begin":"(?:([$_[:alpha:]][$_[:alnum:]]*)(?:\\\\s*(\\\\??\\\\.)\\\\s*(#?[$_[:alpha:]][$_[:alnum:]]*))*\\\\s*(\\\\??\\\\.))?\\\\s*(#?(?i)sql|sqlFragment(?-i))\\\\s*(?=(?:(\\\\?\\\\.\\\\s*)|(!))?((<\\\\s*(((keyof|infer|awaited|typeof|readonly)\\\\s+)|(([$_[:alpha:]][$_[:alnum:]]*|(\\\\{([^{}]|(\\\\{([^{}]|\\\\{[^{}]*})*}))*})|(\\\\(([^()]|(\\\\(([^()]|\\\\([^()]*\\\\))*\\\\)))*\\\\))|(\\\\[([^]\\\\[]|(\\\\[([^]\\\\[]|\\\\[[^]\\\\[]*])*]))*])|(\'([^\'\\\\\\\\]|\\\\\\\\.)*\')|(\\"([^\\"\\\\\\\\]|\\\\\\\\.)*\\")|(`([^\\\\\\\\`]|\\\\\\\\.)*`))(?=\\\\s*([,.<>\\\\[]|=>|&(?!&)|\\\\|(?!\\\\|)))))([^(<>]|(\\\\(([^()]|(\\\\(([^()]|\\\\([^()]*\\\\))*\\\\)))*\\\\))|(?<==)>|<\\\\s*(((keyof|infer|awaited|typeof|readonly)\\\\s+)|(([$_[:alpha:]][$_[:alnum:]]*|(\\\\{([^{}]|(\\\\{([^{}]|\\\\{[^{}]*})*}))*})|(\\\\(([^()]|(\\\\(([^()]|\\\\([^()]*\\\\))*\\\\)))*\\\\))|(\\\\[([^]\\\\[]|(\\\\[([^]\\\\[]|\\\\[[^]\\\\[]*])*]))*])|(\'([^\'\\\\\\\\]|\\\\\\\\.)*\')|(\\"([^\\"\\\\\\\\]|\\\\\\\\.)*\\")|(`([^\\\\\\\\`]|\\\\\\\\.)*`))(?=\\\\s*([,.<>\\\\[]|=>|&(?!&)|\\\\|(?!\\\\|)))))(([^(<>]|(\\\\(([^()]|(\\\\(([^()]|\\\\([^()]*\\\\))*\\\\)))*\\\\))|(?<==)>|<\\\\s*(((keyof|infer|awaited|typeof|readonly)\\\\s+)|(([$_[:alpha:]][$_[:alnum:]]*|(\\\\{([^{}]|(\\\\{([^{}]|\\\\{[^{}]*})*}))*})|(\\\\(([^()]|(\\\\(([^()]|\\\\([^()]*\\\\))*\\\\)))*\\\\))|(\\\\[([^]\\\\[]|(\\\\[([^]\\\\[]|\\\\[[^]\\\\[]*])*]))*])|(\'([^\'\\\\\\\\]|\\\\\\\\.)*\')|(\\"([^\\"\\\\\\\\]|\\\\\\\\.)*\\")|(`([^\\\\\\\\`]|\\\\\\\\.)*`))(?=\\\\s*([,.<>\\\\[]|=>|&(?!&)|\\\\|(?!\\\\|)))))([^(<>]|(\\\\(([^()]|(\\\\(([^()]|\\\\([^()]*\\\\))*\\\\)))*\\\\))|(?<==)>)*(?<!=)>))*(?<!=)>)*(?<!=)>\\\\s*)?\\\\())","beginCaptures":{"1":{"name":"meta.function-call.ts variable.other.object.ts"},"2":{"name":"meta.function-call.ts punctuation.accessor.optional.ts"},"3":{"name":"meta.function-call.ts variable.other.object.ts"},"4":{"name":"meta.function-call.ts punctuation.accessor.optional.ts"},"5":{"name":"meta.function-call.ts entity.name.function.ts"}},"end":"(?<=(`|\\\\)\\\\s*[^`\\\\s]))","patterns":[{"include":"source.ts#comment"},{"include":"source.ts#function-call-optionals"},{"include":"source.ts#type-arguments"},{"include":"source.ts#paren-expression"},{"include":"#embedded-sql"}]},{"__COMMENT__":"Literals tagged with an sql comment, e.g. /*sql*/`SELECT ...`","begin":"(/\\\\*\\\\s*(?i)sql(?-i)\\\\s*\\\\*/)\\\\s*(?=`)","beginCaptures":{"1":{"name":"comment.block.ts"}},"end":"(?<=`)","patterns":[{"include":"#embedded-sql"}]},{"__COMMENT__":"Literals tagged with sql (including optional accessors and types), e.g. my.object?.sql<User>`SELECT ...`. This is based on the 1st #template-call pattern in TypeScript.tmLanguage.json","begin":"(?=(([$_[:alpha:]][$_[:alnum:]]*\\\\s*\\\\??\\\\.\\\\s*)*|(\\\\??\\\\.\\\\s*)?)(#?(?i)sql|sqlFragment(?-i))(<\\\\s*(((keyof|infer|awaited|typeof|readonly)\\\\s+)|(([$_[:alpha:]][$_[:alnum:]]*|(\\\\{([^{}]|(\\\\{([^{}]|\\\\{[^{}]*})*}))*})|(\\\\(([^()]|(\\\\(([^()]|\\\\([^()]*\\\\))*\\\\)))*\\\\))|(\\\\[([^]\\\\[]|(\\\\[([^]\\\\[]|\\\\[[^]\\\\[]*])*]))*])|(\'([^\'\\\\\\\\]|\\\\\\\\.)*\')|(\\"([^\\"\\\\\\\\]|\\\\\\\\.)*\\")|(`([^\\\\\\\\`]|\\\\\\\\.)*`))(?=\\\\s*([,.<>\\\\[]|=>|&(?!&)|\\\\|(?!\\\\|)))))([^(<>]|(\\\\(([^()]|(\\\\(([^()]|\\\\([^()]*\\\\))*\\\\)))*\\\\))|(?<==)>|<\\\\s*(((keyof|infer|awaited|typeof|readonly)\\\\s+)|(([$_[:alpha:]][$_[:alnum:]]*|(\\\\{([^{}]|(\\\\{([^{}]|\\\\{[^{}]*})*}))*})|(\\\\(([^()]|(\\\\(([^()]|\\\\([^()]*\\\\))*\\\\)))*\\\\))|(\\\\[([^]\\\\[]|(\\\\[([^]\\\\[]|\\\\[[^]\\\\[]*])*]))*])|(\'([^\'\\\\\\\\]|\\\\\\\\.)*\')|(\\"([^\\"\\\\\\\\]|\\\\\\\\.)*\\")|(`([^\\\\\\\\`]|\\\\\\\\.)*`))(?=\\\\s*([,.<>\\\\[]|=>|&(?!&)|\\\\|(?!\\\\|)))))(([^(<>]|(\\\\(([^()]|(\\\\(([^()]|\\\\([^()]*\\\\))*\\\\)))*\\\\))|(?<==)>|<\\\\s*(((keyof|infer|awaited|typeof|readonly)\\\\s+)|(([$_[:alpha:]][$_[:alnum:]]*|(\\\\{([^{}]|(\\\\{([^{}]|\\\\{[^{}]*})*}))*})|(\\\\(([^()]|(\\\\(([^()]|\\\\([^()]*\\\\))*\\\\)))*\\\\))|(\\\\[([^]\\\\[]|(\\\\[([^]\\\\[]|\\\\[[^]\\\\[]*])*]))*])|(\'([^\'\\\\\\\\]|\\\\\\\\.)*\')|(\\"([^\\"\\\\\\\\]|\\\\\\\\.)*\\")|(`([^\\\\\\\\`]|\\\\\\\\.)*`))(?=\\\\s*([,.<>\\\\[]|=>|&(?!&)|\\\\|(?!\\\\|)))))([^(<>]|(\\\\(([^()]|(\\\\(([^()]|\\\\([^()]*\\\\))*\\\\)))*\\\\))|(?<==)>)*(?<!=)>))*(?<!=)>)*(?<!=)>\\\\s*)?`)","end":"(?<=`)","name":"string.template.ts","patterns":[{"begin":"(?=(([$_[:alpha:]][$_[:alnum:]]*\\\\s*\\\\??\\\\.\\\\s*)*|(\\\\??\\\\.\\\\s*)?)(#?(?i)sql|sqlFragment(?-i)))","end":"(?=(<\\\\s*(((keyof|infer|awaited|typeof|readonly)\\\\s+)|(([$_[:alpha:]][$_[:alnum:]]*|(\\\\{([^{}]|(\\\\{([^{}]|\\\\{[^{}]*})*}))*})|(\\\\(([^()]|(\\\\(([^()]|\\\\([^()]*\\\\))*\\\\)))*\\\\))|(\\\\[([^]\\\\[]|(\\\\[([^]\\\\[]|\\\\[[^]\\\\[]*])*]))*])|(\'([^\'\\\\\\\\]|\\\\\\\\.)*\')|(\\"([^\\"\\\\\\\\]|\\\\\\\\.)*\\")|(`([^\\\\\\\\`]|\\\\\\\\.)*`))(?=\\\\s*([,.<>\\\\[]|=>|&(?!&)|\\\\|(?!\\\\|)))))([^(<>]|(\\\\(([^()]|(\\\\(([^()]|\\\\([^()]*\\\\))*\\\\)))*\\\\))|(?<==)>|<\\\\s*(((keyof|infer|awaited|typeof|readonly)\\\\s+)|(([$_[:alpha:]][$_[:alnum:]]*|(\\\\{([^{}]|(\\\\{([^{}]|\\\\{[^{}]*})*}))*})|(\\\\(([^()]|(\\\\(([^()]|\\\\([^()]*\\\\))*\\\\)))*\\\\))|(\\\\[([^]\\\\[]|(\\\\[([^]\\\\[]|\\\\[[^]\\\\[]*])*]))*])|(\'([^\'\\\\\\\\]|\\\\\\\\.)*\')|(\\"([^\\"\\\\\\\\]|\\\\\\\\.)*\\")|(`([^\\\\\\\\`]|\\\\\\\\.)*`))(?=\\\\s*([,.<>\\\\[]|=>|&(?!&)|\\\\|(?!\\\\|)))))(([^(<>]|(\\\\(([^()]|(\\\\(([^()]|\\\\([^()]*\\\\))*\\\\)))*\\\\))|(?<==)>|<\\\\s*(((keyof|infer|awaited|typeof|readonly)\\\\s+)|(([$_[:alpha:]][$_[:alnum:]]*|(\\\\{([^{}]|(\\\\{([^{}]|\\\\{[^{}]*})*}))*})|(\\\\(([^()]|(\\\\(([^()]|\\\\([^()]*\\\\))*\\\\)))*\\\\))|(\\\\[([^]\\\\[]|(\\\\[([^]\\\\[]|\\\\[[^]\\\\[]*])*]))*])|(\'([^\'\\\\\\\\]|\\\\\\\\.)*\')|(\\"([^\\"\\\\\\\\]|\\\\\\\\.)*\\")|(`([^\\\\\\\\`]|\\\\\\\\.)*`))(?=\\\\s*([,.<>\\\\[]|=>|&(?!&)|\\\\|(?!\\\\|)))))([^(<>]|(\\\\(([^()]|(\\\\(([^()]|\\\\([^()]*\\\\))*\\\\)))*\\\\))|(?<==)>)*(?<!=)>))*(?<!=)>)*(?<!=)>\\\\s*)?`)","patterns":[{"include":"source.ts#support-function-call-identifiers"},{"match":"(#?(?i)sql|sqlFragment(?-i))","name":"entity.name.function.tagged-template.ts"}]},{"include":"source.ts#type-arguments"},{"include":"#embedded-sql"}]},{"__COMMENT__":"Literals tagged with sql (including optional types), e.g. sql<User>`SELECT ...`. This is based on the 2nd #template-call pattern in TypeScript.tmLanguage.json","begin":"\\\\b((?i)sql|sqlFragment(?-i))\\\\s*(?=(<\\\\s*(((keyof|infer|awaited|typeof|readonly)\\\\s+)|(([$_[:alpha:]][$_[:alnum:]]*|(\\\\{([^{}]|(\\\\{([^{}]|\\\\{[^{}]*})*}))*})|(\\\\(([^()]|(\\\\(([^()]|\\\\([^()]*\\\\))*\\\\)))*\\\\))|(\\\\[([^]\\\\[]|(\\\\[([^]\\\\[]|\\\\[[^]\\\\[]*])*]))*])|(\'([^\'\\\\\\\\]|\\\\\\\\.)*\')|(\\"([^\\"\\\\\\\\]|\\\\\\\\.)*\\")|(`([^\\\\\\\\`]|\\\\\\\\.)*`))(?=\\\\s*([,.<>\\\\[]|=>|&(?!&)|\\\\|(?!\\\\|)))))([^(<>]|(\\\\(([^()]|(\\\\(([^()]|\\\\([^()]*\\\\))*\\\\)))*\\\\))|(?<==)>|<\\\\s*(((keyof|infer|awaited|typeof|readonly)\\\\s+)|(([$_[:alpha:]][$_[:alnum:]]*|(\\\\{([^{}]|(\\\\{([^{}]|\\\\{[^{}]*})*}))*})|(\\\\(([^()]|(\\\\(([^()]|\\\\([^()]*\\\\))*\\\\)))*\\\\))|(\\\\[([^]\\\\[]|(\\\\[([^]\\\\[]|\\\\[[^]\\\\[]*])*]))*])|(\'([^\'\\\\\\\\]|\\\\\\\\.)*\')|(\\"([^\\"\\\\\\\\]|\\\\\\\\.)*\\")|(`([^\\\\\\\\`]|\\\\\\\\.)*`))(?=\\\\s*([,.<>\\\\[]|=>|&(?!&)|\\\\|(?!\\\\|)))))(([^(<>]|(\\\\(([^()]|(\\\\(([^()]|\\\\([^()]*\\\\))*\\\\)))*\\\\))|(?<==)>|<\\\\s*(((keyof|infer|awaited|typeof|readonly)\\\\s+)|(([$_[:alpha:]][$_[:alnum:]]*|(\\\\{([^{}]|(\\\\{([^{}]|\\\\{[^{}]*})*}))*})|(\\\\(([^()]|(\\\\(([^()]|\\\\([^()]*\\\\))*\\\\)))*\\\\))|(\\\\[([^]\\\\[]|(\\\\[([^]\\\\[]|\\\\[[^]\\\\[]*])*]))*])|(\'([^\'\\\\\\\\]|\\\\\\\\.)*\')|(\\"([^\\"\\\\\\\\]|\\\\\\\\.)*\\")|(`([^\\\\\\\\`]|\\\\\\\\.)*`))(?=\\\\s*([,.<>\\\\[]|=>|&(?!&)|\\\\|(?!\\\\|)))))([^(<>]|(\\\\(([^()]|(\\\\(([^()]|\\\\([^()]*\\\\))*\\\\)))*\\\\))|(?<==)>)*(?<!=)>))*(?<!=)>)*(?<!=)>\\\\s*)`)","beginCaptures":{"1":{"name":"entity.name.function.tagged-template.ts"}},"end":"(?<=`)","name":"string.template.ts","patterns":[{"include":"source.ts#type-arguments"},{"include":"#embedded-sql"}]},{"__COMMENT__":"Literals tagged with sql, e.g. sql`SELECT ...`. This is based on the 2nd #template pattern in TypeScript.tmLanguage.json","begin":"\\\\b((?i)sql|sqlFragment(?-i))\\\\s*(?=`)","beginCaptures":{"1":{"name":"entity.name.function.tagged-template.ts"}},"end":"(?<=`)","name":"string.template.ts","patterns":[{"include":"#embedded-sql"}]}],"repository":{"embedded-sql":{"begin":"`","beginCaptures":{"0":{"name":"punctuation.definition.string.template.begin.js"}},"contentName":"meta.embedded.block.sql","end":"`","endCaptures":{"0":{"name":"punctuation.definition.string.template.end.js"}},"name":"string.template.ts","patterns":[{"include":"source.ts#template-substitution-element"},{"include":"source.ts#string-character-escape"},{"include":"source.sql"},{"include":"source.plpgsql.postgres"},{"match":"."}]}},"scopeName":"inline.tagged-template-sql","embeddedLangs":["typescript","sql"]}')),m=[...i,...a,p],h=Object.freeze(JSON.parse('{"fileTypes":["js","jsx","ts","tsx","html","vue","svelte","php","res"],"injectTo":["source.ts","source.js"],"injectionSelector":"L:source.js -comment -string, L:source.js -comment -string, L:source.jsx -comment -string, L:source.js.jsx -comment -string, L:source.ts -comment -string, L:source.tsx -comment -string, L:source.rescript -comment -string","injections":{"L:source":{"patterns":[{"match":"<","name":"invalid.illegal.bad-angle-bracket.html"}]}},"name":"es-tag-xml","patterns":[{"begin":"(?i)(\\\\s?/\\\\*\\\\s?(xml|svg|inline-svg|inline-xml)\\\\s?\\\\*/\\\\s?)(`)","beginCaptures":{"1":{"name":"comment.block"}},"end":"(`)","patterns":[{"include":"text.xml"}]},{"begin":"(?i)(\\\\s*((?:|inline-)xml))(`)","beginCaptures":{"1":{"name":"comment.block"}},"end":"(`)","patterns":[{"include":"text.xml"}]},{"begin":"(?i)(?<=[(,:=\\\\s]|\\\\$\\\\()\\\\s*(((/\\\\*)|(//))\\\\s?(xml|svg|inline-svg|inline-xml) {0,1000}\\\\*?/?) {0,1000}$","beginCaptures":{"1":{"name":"comment.line"}},"end":"(`).*","patterns":[{"begin":"\\\\G()","end":"(`)"},{"include":"text.xml"}]}],"scopeName":"inline.es6-xml","embeddedLangs":["xml"]}')),g=[...r,h],_=Object.freeze(JSON.parse(`{"displayName":"TypeScript with Tags","name":"ts-tags","patterns":[{"include":"source.ts"}],"scopeName":"source.ts.tags","embeddedLangs":["typescript","es-tag-css","es-tag-glsl","es-tag-html","es-tag-sql","es-tag-xml"],"aliases":["lit"]}`)),v=[...i,...c,...u,...f,...m,...g,_];export{v as default};
@@ -1 +1 @@
1
- import{t as e}from"./javascript-Dwc_x-Qy.js";import{t}from"./css-DzLteUnC.js";import{t as n}from"./scss-N-LxVilh.js";import r from"./python-BcK-Cw6k.js";import i from"./ruby-BaanPyyv.js";import a from"./php-W3oWF62o.js";var o=Object.freeze(JSON.parse(`{"displayName":"Twig","fileTypes":["twig","html.twig"],"firstLineMatch":"<!(?i:DOCTYPE)|<(?i:html)|<\\\\?(?i:php)|\\\\{\\\\{|\\\\{%|\\\\{#","foldingStartMarker":"(<(?i:body|div|dl|fieldset|form|head|li|ol|script|select|style|table|tbody|tfoot|thead|tr|ul)\\\\b.*?>|<!--(?!.*--\\\\s*>)|^<!-- #tminclude (?>.*?-->)$|\\\\{%\\\\s+(autoescape|block|embed|filter|for|if|macro|raw|sandbox|set|spaceless|trans|verbatim))","foldingStopMarker":"(</(?i:body|div|dl|fieldset|form|head|li|ol|script|select|style|table|tbody|tfoot|thead|tr|ul)>|^(?!.*?<!--).*?--\\\\s*>|^<!-- end tminclude -->$|\\\\{%\\\\s+end(autoescape|block|embed|filter|for|if|macro|raw|sandbox|set|spaceless|trans|verbatim))","name":"twig","patterns":[{"begin":"(<)([0-:A-Za-z]++)(?=[^>]*></\\\\2>)","beginCaptures":{"1":{"name":"punctuation.definition.tag.html"},"2":{"name":"entity.name.tag.html"}},"end":"(>(<)/)(\\\\2)(>)","endCaptures":{"1":{"name":"punctuation.definition.tag.html"},"2":{"name":"meta.scope.between-tag-pair.html"},"3":{"name":"entity.name.tag.html"},"4":{"name":"punctuation.definition.tag.html"}},"name":"meta.tag.any.html","patterns":[{"include":"#tag-stuff"}]},{"begin":"(<\\\\?)(xml)","captures":{"1":{"name":"punctuation.definition.tag.html"},"2":{"name":"entity.name.tag.xml.html"}},"end":"(\\\\?>)","name":"meta.tag.preprocessor.xml.html","patterns":[{"include":"#tag-generic-attribute"},{"include":"#string-double-quoted"},{"include":"#string-single-quoted"}]},{"begin":"<!--","captures":{"0":{"name":"punctuation.definition.comment.html"}},"end":"--\\\\s*>","name":"comment.block.html","patterns":[{"match":"--","name":"invalid.illegal.bad-comments-or-CDATA.html"},{"include":"#embedded-code"}]},{"begin":"<!","captures":{"0":{"name":"punctuation.definition.tag.html"}},"end":">","name":"meta.tag.sgml.html","patterns":[{"begin":"(?i:DOCTYPE)","captures":{"1":{"name":"entity.name.tag.doctype.html"}},"end":"(?=>)","name":"meta.tag.sgml.doctype.html","patterns":[{"match":"\\"[^\\">]*\\"","name":"string.quoted.double.doctype.identifiers-and-DTDs.html"}]},{"begin":"\\\\[CDATA\\\\[","end":"]](?=>)","name":"constant.other.inline-data.html"},{"match":"(\\\\s*)(?!--|>)\\\\S(\\\\s*)","name":"invalid.illegal.bad-comments-or-CDATA.html"}]},{"include":"#embedded-code"},{"begin":"(?:^\\\\s+)?(<)((?i:style))\\\\b(?![^>]*/>)","captures":{"1":{"name":"punctuation.definition.tag.html"},"2":{"name":"entity.name.tag.style.html"},"3":{"name":"punctuation.definition.tag.html"}},"end":"(</)((?i:style))(>)(?:\\\\s*\\\\n)?","name":"source.css.embedded.html","patterns":[{"include":"#tag-stuff"},{"begin":"(>)","beginCaptures":{"1":{"name":"punctuation.definition.tag.html"}},"end":"(?=</(?i:style))","patterns":[{"include":"#embedded-code"},{"include":"source.css"}]}]},{"begin":"(?:^\\\\s+)?(<)((?i:script))\\\\b(?![^>]*/>)","beginCaptures":{"1":{"name":"punctuation.definition.tag.html"},"2":{"name":"entity.name.tag.script.html"}},"end":"(?<=</(script|SCRIPT))(>)(?:\\\\s*\\\\n)?","endCaptures":{"2":{"name":"punctuation.definition.tag.html"}},"name":"source.js.embedded.html","patterns":[{"include":"#tag-stuff"},{"begin":"(?<!</(?:script|SCRIPT))(>)","captures":{"1":{"name":"punctuation.definition.tag.html"},"2":{"name":"entity.name.tag.script.html"}},"end":"(</)((?i:script))","patterns":[{"captures":{"1":{"name":"punctuation.definition.comment.js"}},"match":"(//).*?((?=<\/script)|$\\\\n?)","name":"comment.line.double-slash.js"},{"begin":"/\\\\*","captures":{"0":{"name":"punctuation.definition.comment.js"}},"end":"\\\\*/|(?=<\/script)","name":"comment.block.js"},{"include":"#php"},{"include":"#twig-print-tag"},{"include":"#twig-statement-tag"},{"include":"#twig-comment-tag"},{"include":"source.js"}]}]},{"begin":"(?i)(?<=\\\\{%\\\\s(?:|include)js\\\\s%})","end":"(?i)(?=\\\\{%\\\\send(?:|include)js\\\\s%})","name":"source.js.embedded.twig","patterns":[{"include":"source.js"}]},{"begin":"(?i)(?<=\\\\{%\\\\s(?:|include|includehires)css\\\\s%})","end":"(?i)(?=\\\\{%\\\\send(?:|include|includehires)css\\\\s%})","name":"source.css.embedded.twig","patterns":[{"include":"source.css"}]},{"begin":"(?i)(?<=\\\\{%\\\\s(?:|include|includehires)scss\\\\s%})","end":"(?i)(?=\\\\{%\\\\send(?:|include|includehires)scss\\\\s%})","name":"source.css.scss.embedded.twig","patterns":[{"include":"source.css.scss"}]},{"begin":"(</?)((?i:body|head|html))\\\\b","captures":{"1":{"name":"punctuation.definition.tag.html"},"2":{"name":"entity.name.tag.structure.any.html"}},"end":"(>)","name":"meta.tag.structure.any.html","patterns":[{"include":"#tag-stuff"}]},{"begin":"(</?)((?i:address|blockquote|dd|div|dl|dt|fieldset|form|frame|frameset|h1|h2|h3|h4|h5|h6|iframe|noframes|object|ol|p|ul|applet|center|dir|hr|menu|pre))\\\\b","beginCaptures":{"1":{"name":"punctuation.definition.tag.begin.html"},"2":{"name":"entity.name.tag.block.any.html"}},"end":"(>)","endCaptures":{"1":{"name":"punctuation.definition.tag.end.html"}},"name":"meta.tag.block.any.html","patterns":[{"include":"#tag-stuff"}]},{"begin":"(</?)((?i:a|abbr|acronym|area|b|base|basefont|bdo|big|br|button|caption|cite|code|col|colgroup|del|dfn|em|font|head|html|i|img|input|ins|isindex|kbd|label|legend|li|link|map|meta|noscript|optgroup|option|param|[qs]|samp|script|select|small|span|strike|strong|style|sub|sup|table|tbody|td|textarea|tfoot|th|thead|title|tr|tt|u|var))\\\\b","beginCaptures":{"1":{"name":"punctuation.definition.tag.begin.html"},"2":{"name":"entity.name.tag.inline.any.html"}},"end":"((?: ?/)?>)","endCaptures":{"1":{"name":"punctuation.definition.tag.end.html"}},"name":"meta.tag.inline.any.html","patterns":[{"include":"#tag-stuff"}]},{"begin":"(</?)([0-:A-Za-z]+)","beginCaptures":{"1":{"name":"punctuation.definition.tag.begin.html"},"2":{"name":"entity.name.tag.other.html"}},"end":"(>)","endCaptures":{"1":{"name":"punctuation.definition.tag.end.html"}},"name":"meta.tag.other.html","patterns":[{"include":"#tag-stuff"}]},{"include":"#entities"},{"match":"<>","name":"invalid.illegal.incomplete.html"},{"match":"<","name":"invalid.illegal.bad-angle-bracket.html"},{"include":"#twig-print-tag"},{"include":"#twig-statement-tag"},{"include":"#twig-comment-tag"}],"repository":{"embedded-code":{"patterns":[{"include":"#ruby"},{"include":"#php"},{"include":"#twig-print-tag"},{"include":"#twig-statement-tag"},{"include":"#twig-comment-tag"},{"include":"#python"}]},"entities":{"patterns":[{"captures":{"1":{"name":"punctuation.definition.entity.html"},"3":{"name":"punctuation.definition.entity.html"}},"match":"(&)([0-9A-Za-z]+|#[0-9]+|#x\\\\h+)(;)","name":"constant.character.entity.html"},{"match":"&","name":"invalid.illegal.bad-ampersand.html"}]},"php":{"begin":"(?=(^\\\\s*)?<\\\\?)","end":"(?!(^\\\\s*)?<\\\\?)","patterns":[{"include":"source.php"}]},"python":{"begin":"^\\\\s*<\\\\?python(?!.*\\\\?>)","end":"\\\\?>(?:\\\\s*$\\\\n)?","name":"source.python.embedded.html","patterns":[{"include":"source.python"}]},"ruby":{"patterns":[{"begin":"<%+#","captures":{"0":{"name":"punctuation.definition.comment.erb"}},"end":"%>","name":"comment.block.erb"},{"begin":"<%+(?!>)=?","captures":{"0":{"name":"punctuation.section.embedded.ruby"}},"end":"-?%>","name":"source.ruby.embedded.html","patterns":[{"captures":{"1":{"name":"punctuation.definition.comment.ruby"}},"match":"(#).*?(?=-?%>)","name":"comment.line.number-sign.ruby"},{"include":"source.ruby"}]},{"begin":"<\\\\?r(?!>)=?","captures":{"0":{"name":"punctuation.section.embedded.ruby.nitro"}},"end":"-?\\\\?>","name":"source.ruby.nitro.embedded.html","patterns":[{"captures":{"1":{"name":"punctuation.definition.comment.ruby.nitro"}},"match":"(#).*?(?=-?\\\\?>)","name":"comment.line.number-sign.ruby.nitro"},{"include":"source.ruby"}]}]},"string-double-quoted":{"begin":"\\"","beginCaptures":{"0":{"name":"punctuation.definition.string.begin.html"}},"end":"\\"","endCaptures":{"0":{"name":"punctuation.definition.string.end.html"}},"name":"string.quoted.double.html","patterns":[{"include":"#embedded-code"},{"include":"#entities"}]},"string-single-quoted":{"begin":"'","beginCaptures":{"0":{"name":"punctuation.definition.string.begin.html"}},"end":"'","endCaptures":{"0":{"name":"punctuation.definition.string.end.html"}},"name":"string.quoted.single.html","patterns":[{"include":"#embedded-code"},{"include":"#entities"}]},"tag-generic-attribute":{"match":"\\\\b([-:A-Za-z]+)","name":"entity.other.attribute-name.html"},"tag-id-attribute":{"begin":"\\\\b(id)\\\\b\\\\s*(=)","captures":{"1":{"name":"entity.other.attribute-name.id.html"},"2":{"name":"punctuation.separator.key-value.html"}},"end":"(?<=[\\"'])","name":"meta.attribute-with-value.id.html","patterns":[{"begin":"\\"","beginCaptures":{"0":{"name":"punctuation.definition.string.begin.html"}},"contentName":"meta.toc-list.id.html","end":"\\"","endCaptures":{"0":{"name":"punctuation.definition.string.end.html"}},"name":"string.quoted.double.html","patterns":[{"include":"#embedded-code"},{"include":"#entities"}]},{"begin":"'","beginCaptures":{"0":{"name":"punctuation.definition.string.begin.html"}},"contentName":"meta.toc-list.id.html","end":"'","endCaptures":{"0":{"name":"punctuation.definition.string.end.html"}},"name":"string.quoted.single.html","patterns":[{"include":"#embedded-code"},{"include":"#entities"}]}]},"tag-stuff":{"patterns":[{"include":"#tag-id-attribute"},{"include":"#tag-generic-attribute"},{"include":"#string-double-quoted"},{"include":"#string-single-quoted"},{"include":"#embedded-code"}]},"twig-arrays":{"begin":"(?<=[(,:\\\\[{\\\\s])\\\\[","beginCaptures":{"0":{"name":"punctuation.section.array.begin.twig"}},"end":"]","endCaptures":{"0":{"name":"punctuation.section.array.end.twig"}},"name":"meta.array.twig","patterns":[{"include":"#twig-arrays"},{"include":"#twig-hashes"},{"include":"#twig-constants"},{"include":"#twig-operators"},{"include":"#twig-strings"},{"include":"#twig-functions-warg"},{"include":"#twig-functions"},{"include":"#twig-macros"},{"include":"#twig-objects"},{"include":"#twig-properties"},{"include":"#twig-filters-warg"},{"include":"#twig-filters"},{"include":"#twig-filters-warg-ud"},{"include":"#twig-filters-ud"},{"match":",","name":"punctuation.separator.object.twig"}]},"twig-comment-tag":{"begin":"\\\\{#-?","beginCaptures":{"0":{"name":"punctuation.definition.comment.begin.twig"}},"end":"-?#}","endCaptures":{"0":{"name":"punctuation.definition.comment.end.twig"}},"name":"comment.block.twig"},"twig-constants":{"patterns":[{"match":"(?i)(?<=[(,:\\\\[{\\\\s])(?:true|false|null|none)(?=[]),}\\\\s])","name":"constant.language.twig"},{"match":"(?<=[(,:\\\\[{\\\\s]|\\\\.\\\\.|\\\\*\\\\*)[0-9]+(?:\\\\.[0-9]+)?(?=[]),}\\\\s]|\\\\.\\\\.|\\\\*\\\\*)","name":"constant.numeric.twig"}]},"twig-filters":{"captures":{"1":{"name":"support.function.twig"}},"match":"(?<=[]\\"')0-9A-Z_a-z\\\\x7F-ÿ]\\\\||\\\\{%\\\\sfilter\\\\s)(abs|capitalize|e(?:scape)?|first|join|(?:json|url)_encode|keys|last|length|lower|nl2br|number_format|raw|reverse|round|sort|striptags|title|trim|upper)(?=[]),:|}\\\\s]|\\\\.\\\\.|\\\\*\\\\*)"},"twig-filters-ud":{"captures":{"1":{"name":"meta.function-call.other.twig"}},"match":"(?<=[]\\"')0-9A-Z_a-z\\\\x7F-ÿ]\\\\||\\\\{%\\\\sfilter\\\\s)([A-Z_a-z\\\\x7F-ÿ][0-9A-Z_a-z\\\\x7F-ÿ]*)"},"twig-filters-warg":{"begin":"(?<=[]\\"')0-9A-Z_a-z\\\\x7F-ÿ]\\\\||\\\\{%\\\\sfilter\\\\s)(batch|convert_encoding|date|date_modify|default|e(?:scape)?|format|join|merge|number_format|replace|round|slice|split|trim)(\\\\()","beginCaptures":{"1":{"name":"support.function.twig"},"2":{"name":"punctuation.definition.parameters.begin.twig"}},"contentName":"meta.function.arguments.twig","end":"\\\\)","endCaptures":{"0":{"name":"punctuation.definition.parameters.end.twig"}},"patterns":[{"include":"#twig-constants"},{"include":"#twig-operators"},{"include":"#twig-functions-warg"},{"include":"#twig-functions"},{"include":"#twig-macros"},{"include":"#twig-objects"},{"include":"#twig-properties"},{"include":"#twig-filters-warg"},{"include":"#twig-filters"},{"include":"#twig-filters-warg-ud"},{"include":"#twig-filters-ud"},{"include":"#twig-strings"},{"include":"#twig-arrays"},{"include":"#twig-hashes"}]},"twig-filters-warg-ud":{"begin":"(?<=[]\\"')0-9A-Z_a-z\\\\x7F-ÿ]\\\\||\\\\{%\\\\sfilter\\\\s)([A-Z_a-z\\\\x7F-ÿ][0-9A-Z_a-z\\\\x7F-ÿ]*)(\\\\()","beginCaptures":{"1":{"name":"meta.function-call.other.twig"},"2":{"name":"punctuation.definition.parameters.begin.twig"}},"contentName":"meta.function.arguments.twig","end":"\\\\)","endCaptures":{"0":{"name":"punctuation.definition.parameters.end.twig"}},"patterns":[{"include":"#twig-constants"},{"include":"#twig-functions-warg"},{"include":"#twig-functions"},{"include":"#twig-macros"},{"include":"#twig-objects"},{"include":"#twig-properties"},{"include":"#twig-filters-warg"},{"include":"#twig-filters"},{"include":"#twig-filters-warg-ud"},{"include":"#twig-filters-ud"},{"include":"#twig-strings"},{"include":"#twig-arrays"},{"include":"#twig-hashes"}]},"twig-functions":{"captures":{"1":{"name":"support.function.twig"}},"match":"(?<=is\\\\s)(defined|empty|even|iterable|odd)"},"twig-functions-warg":{"begin":"(?<=[(,:\\\\[{\\\\s])(attribute|block|constant|cycle|date|divisible by|dump|include|max|min|parent|random|range|same as|source|template_from_string)(\\\\()","beginCaptures":{"1":{"name":"support.function.twig"},"2":{"name":"punctuation.definition.parameters.begin.twig"}},"contentName":"meta.function.arguments.twig","end":"\\\\)","endCaptures":{"0":{"name":"punctuation.definition.parameters.end.twig"}},"patterns":[{"include":"#twig-constants"},{"include":"#twig-functions-warg"},{"include":"#twig-functions"},{"include":"#twig-macros"},{"include":"#twig-objects"},{"include":"#twig-properties"},{"include":"#twig-filters-warg"},{"include":"#twig-filters"},{"include":"#twig-filters-warg-ud"},{"include":"#twig-filters-ud"},{"include":"#twig-strings"},{"include":"#twig-arrays"}]},"twig-hashes":{"begin":"(?<=[(,:\\\\[{\\\\s])\\\\{","beginCaptures":{"0":{"name":"punctuation.section.hash.begin.twig"}},"end":"}","endCaptures":{"0":{"name":"punctuation.section.hash.end.twig"}},"name":"meta.hash.twig","patterns":[{"include":"#twig-hashes"},{"include":"#twig-arrays"},{"include":"#twig-constants"},{"include":"#twig-operators"},{"include":"#twig-strings"},{"include":"#twig-functions-warg"},{"include":"#twig-functions"},{"include":"#twig-macros"},{"include":"#twig-objects"},{"include":"#twig-properties"},{"include":"#twig-filters-warg"},{"include":"#twig-filters"},{"include":"#twig-filters-warg-ud"},{"include":"#twig-filters-ud"},{"match":":","name":"punctuation.separator.key-value.twig"},{"match":",","name":"punctuation.separator.object.twig"}]},"twig-keywords":{"match":"(?<=\\\\s)((?:end)?(?:autoescape|block|embed|filter|for|if|macro|raw|sandbox|set|spaceless|trans|verbatim)|as|do|else|elseif|extends|flush|from|ignore missing|import|include|only|use|with)(?=\\\\s)","name":"keyword.control.twig"},"twig-macros":{"begin":"(?<=[(,:\\\\[{\\\\s])([A-Z_a-z\\\\x7F-ÿ][0-9A-Z_a-z\\\\x7F-ÿ]*)(?:(\\\\.)([A-Z_a-z\\\\x7F-ÿ][0-9A-Z_a-z\\\\x7F-ÿ]*))?(\\\\()","beginCaptures":{"1":{"name":"meta.function-call.twig"},"2":{"name":"punctuation.separator.property.twig"},"3":{"name":"variable.other.property.twig"},"4":{"name":"punctuation.definition.parameters.begin.twig"}},"contentName":"meta.function.arguments.twig","end":"\\\\)","endCaptures":{"0":{"name":"punctuation.definition.parameters.end.twig"}},"patterns":[{"include":"#twig-constants"},{"include":"#twig-operators"},{"include":"#twig-functions-warg"},{"include":"#twig-functions"},{"include":"#twig-macros"},{"include":"#twig-objects"},{"include":"#twig-properties"},{"include":"#twig-filters-warg"},{"include":"#twig-filters"},{"include":"#twig-filters-warg-ud"},{"include":"#twig-filters-ud"},{"include":"#twig-strings"},{"include":"#twig-arrays"},{"include":"#twig-hashes"}]},"twig-objects":{"captures":{"1":{"name":"variable.other.twig"}},"match":"(?<=[(,:\\\\[{\\\\s])([A-Z_a-z\\\\x7F-ÿ][0-9A-Z_a-z\\\\x7F-ÿ]*)(?=[](),.:\\\\[|}\\\\s])"},"twig-operators":{"patterns":[{"captures":{"1":{"name":"keyword.operator.arithmetic.twig"}},"match":"(?<=\\\\s)([-+]|//?|%|\\\\*\\\\*?)(?=\\\\s)"},{"captures":{"1":{"name":"keyword.operator.assignment.twig"}},"match":"(?<=\\\\s)([=~])(?=\\\\s)"},{"captures":{"1":{"name":"keyword.operator.bitwise.twig"}},"match":"(?<=\\\\s)(b-(?:and|or|xor))(?=\\\\s)"},{"captures":{"1":{"name":"keyword.operator.comparison.twig"}},"match":"(?<=\\\\s)([!=]=|<=?|>=?|(?:not )?in|is(?: not)?|(?:ends|starts) with|matches)(?=\\\\s)"},{"captures":{"1":{"name":"keyword.operator.logical.twig"}},"match":"(?<=\\\\s)([:?]|\\\\?:|\\\\?\\\\?|and|not|or)(?=\\\\s)"},{"captures":{"0":{"name":"keyword.operator.other.twig"}},"match":"(?<=[]\\"')0-9A-Z_a-z\\\\x7F-ÿ])\\\\.\\\\.(?=[\\"'0-9A-Z_a-z\\\\x7F-ÿ])"},{"captures":{"0":{"name":"keyword.operator.other.twig"}},"match":"(?<=[]\\"')0-9A-Z_a-z}\\\\x7F-ÿ])\\\\|(?=[A-Z_a-z\\\\x7F-ÿ])"}]},"twig-print-tag":{"begin":"\\\\{\\\\{-?","beginCaptures":{"0":{"name":"punctuation.section.tag.twig"}},"end":"-?}}","endCaptures":{"0":{"name":"punctuation.section.tag.twig"}},"name":"meta.tag.template.value.twig","patterns":[{"include":"#twig-constants"},{"include":"#twig-operators"},{"include":"#twig-functions-warg"},{"include":"#twig-functions"},{"include":"#twig-macros"},{"include":"#twig-objects"},{"include":"#twig-properties"},{"include":"#twig-filters-warg"},{"include":"#twig-filters"},{"include":"#twig-filters-warg-ud"},{"include":"#twig-filters-ud"},{"include":"#twig-strings"},{"include":"#twig-arrays"},{"include":"#twig-hashes"}]},"twig-properties":{"patterns":[{"captures":{"1":{"name":"punctuation.separator.property.twig"},"2":{"name":"variable.other.property.twig"}},"match":"(?<=[0-9A-Z_a-z\\\\x7F-ÿ])(\\\\.)([A-Z_a-z\\\\x7F-ÿ][0-9A-Z_a-z\\\\x7F-ÿ]*)(?=[]),.:\\\\[|}\\\\s])"},{"begin":"(?<=[0-9A-Z_a-z\\\\x7F-ÿ])(\\\\.)([A-Z_a-z\\\\x7F-ÿ][0-9A-Z_a-z\\\\x7F-ÿ]*)(\\\\()","beginCaptures":{"1":{"name":"punctuation.separator.property.twig"},"2":{"name":"variable.other.property.twig"},"3":{"name":"punctuation.definition.parameters.begin.twig"}},"contentName":"meta.function.arguments.twig","end":"\\\\)","endCaptures":{"0":{"name":"punctuation.definition.parameters.end.twig"}},"patterns":[{"include":"#twig-constants"},{"include":"#twig-functions-warg"},{"include":"#twig-functions"},{"include":"#twig-macros"},{"include":"#twig-objects"},{"include":"#twig-properties"},{"include":"#twig-filters-warg"},{"include":"#twig-filters"},{"include":"#twig-filters-warg-ud"},{"include":"#twig-filters-ud"},{"include":"#twig-strings"},{"include":"#twig-arrays"}]},{"captures":{"1":{"name":"punctuation.section.array.begin.twig"},"2":{"name":"variable.other.property.twig"},"3":{"name":"punctuation.section.array.end.twig"},"4":{"name":"punctuation.section.array.begin.twig"},"5":{"name":"variable.other.property.twig"},"6":{"name":"punctuation.section.array.end.twig"},"7":{"name":"punctuation.section.array.begin.twig"},"8":{"name":"variable.other.property.twig"},"9":{"name":"punctuation.section.array.end.twig"}},"match":"(?<=[]0-9A-Z_a-z\\\\x7F-ÿ])(?:(\\\\[)('[A-Z_a-z\\\\x7F-ÿ][0-9A-Z_a-z\\\\x7F-ÿ]*')(])|(\\\\[)(\\"[A-Z_a-z\\\\x7F-ÿ][0-9A-Z_a-z\\\\x7F-ÿ]*\\")(])|(\\\\[)([A-Z_a-z\\\\x7F-ÿ][0-9A-Z_a-z\\\\x7F-ÿ]*)(]))"}]},"twig-statement-tag":{"begin":"\\\\{%-?","beginCaptures":{"0":{"name":"punctuation.section.tag.twig"}},"end":"-?%}","endCaptures":{"0":{"name":"punctuation.section.tag.twig"}},"name":"meta.tag.template.block.twig","patterns":[{"include":"#twig-constants"},{"include":"#twig-keywords"},{"include":"#twig-operators"},{"include":"#twig-functions-warg"},{"include":"#twig-functions"},{"include":"#twig-macros"},{"include":"#twig-filters-warg"},{"include":"#twig-filters"},{"include":"#twig-filters-warg-ud"},{"include":"#twig-filters-ud"},{"include":"#twig-objects"},{"include":"#twig-properties"},{"include":"#twig-strings"},{"include":"#twig-arrays"},{"include":"#twig-hashes"}]},"twig-strings":{"patterns":[{"begin":"(?:(?<!\\\\\\\\)|(?<=\\\\\\\\\\\\\\\\))'","beginCaptures":{"0":{"name":"punctuation.definition.string.begin.twig"}},"end":"(?:(?<!\\\\\\\\)|(?<=\\\\\\\\\\\\\\\\))'","endCaptures":{"0":{"name":"punctuation.definition.string.end.twig"}},"name":"string.quoted.single.twig"},{"begin":"(?:(?<!\\\\\\\\)|(?<=\\\\\\\\\\\\\\\\))\\"","beginCaptures":{"0":{"name":"punctuation.definition.string.begin.twig"}},"end":"(?:(?<!\\\\\\\\)|(?<=\\\\\\\\\\\\\\\\))\\"","endCaptures":{"0":{"name":"punctuation.definition.string.end.twig"}},"name":"string.quoted.double.twig"}]}},"scopeName":"text.html.twig","embeddedLangs":["css","javascript","scss","php","python","ruby"]}`)),s=[...t,...e,...n,...a,...r,...i,o];export{s as default};
1
+ import{t as e}from"./javascript-jr4kIdgl.js";import{t}from"./css-CJSp2CsD.js";import{t as n}from"./scss-Ci6PdscL.js";import r from"./python-CO89UIxE.js";import i from"./ruby-DzpnBpz-.js";import a from"./php-Bby8J3zk.js";var o=Object.freeze(JSON.parse(`{"displayName":"Twig","fileTypes":["twig","html.twig"],"firstLineMatch":"<!(?i:DOCTYPE)|<(?i:html)|<\\\\?(?i:php)|\\\\{\\\\{|\\\\{%|\\\\{#","foldingStartMarker":"(<(?i:body|div|dl|fieldset|form|head|li|ol|script|select|style|table|tbody|tfoot|thead|tr|ul)\\\\b.*?>|<!--(?!.*--\\\\s*>)|^<!-- #tminclude (?>.*?-->)$|\\\\{%\\\\s+(autoescape|block|embed|filter|for|if|macro|raw|sandbox|set|spaceless|trans|verbatim))","foldingStopMarker":"(</(?i:body|div|dl|fieldset|form|head|li|ol|script|select|style|table|tbody|tfoot|thead|tr|ul)>|^(?!.*?<!--).*?--\\\\s*>|^<!-- end tminclude -->$|\\\\{%\\\\s+end(autoescape|block|embed|filter|for|if|macro|raw|sandbox|set|spaceless|trans|verbatim))","name":"twig","patterns":[{"begin":"(<)([0-:A-Za-z]++)(?=[^>]*></\\\\2>)","beginCaptures":{"1":{"name":"punctuation.definition.tag.html"},"2":{"name":"entity.name.tag.html"}},"end":"(>(<)/)(\\\\2)(>)","endCaptures":{"1":{"name":"punctuation.definition.tag.html"},"2":{"name":"meta.scope.between-tag-pair.html"},"3":{"name":"entity.name.tag.html"},"4":{"name":"punctuation.definition.tag.html"}},"name":"meta.tag.any.html","patterns":[{"include":"#tag-stuff"}]},{"begin":"(<\\\\?)(xml)","captures":{"1":{"name":"punctuation.definition.tag.html"},"2":{"name":"entity.name.tag.xml.html"}},"end":"(\\\\?>)","name":"meta.tag.preprocessor.xml.html","patterns":[{"include":"#tag-generic-attribute"},{"include":"#string-double-quoted"},{"include":"#string-single-quoted"}]},{"begin":"<!--","captures":{"0":{"name":"punctuation.definition.comment.html"}},"end":"--\\\\s*>","name":"comment.block.html","patterns":[{"match":"--","name":"invalid.illegal.bad-comments-or-CDATA.html"},{"include":"#embedded-code"}]},{"begin":"<!","captures":{"0":{"name":"punctuation.definition.tag.html"}},"end":">","name":"meta.tag.sgml.html","patterns":[{"begin":"(?i:DOCTYPE)","captures":{"1":{"name":"entity.name.tag.doctype.html"}},"end":"(?=>)","name":"meta.tag.sgml.doctype.html","patterns":[{"match":"\\"[^\\">]*\\"","name":"string.quoted.double.doctype.identifiers-and-DTDs.html"}]},{"begin":"\\\\[CDATA\\\\[","end":"]](?=>)","name":"constant.other.inline-data.html"},{"match":"(\\\\s*)(?!--|>)\\\\S(\\\\s*)","name":"invalid.illegal.bad-comments-or-CDATA.html"}]},{"include":"#embedded-code"},{"begin":"(?:^\\\\s+)?(<)((?i:style))\\\\b(?![^>]*/>)","captures":{"1":{"name":"punctuation.definition.tag.html"},"2":{"name":"entity.name.tag.style.html"},"3":{"name":"punctuation.definition.tag.html"}},"end":"(</)((?i:style))(>)(?:\\\\s*\\\\n)?","name":"source.css.embedded.html","patterns":[{"include":"#tag-stuff"},{"begin":"(>)","beginCaptures":{"1":{"name":"punctuation.definition.tag.html"}},"end":"(?=</(?i:style))","patterns":[{"include":"#embedded-code"},{"include":"source.css"}]}]},{"begin":"(?:^\\\\s+)?(<)((?i:script))\\\\b(?![^>]*/>)","beginCaptures":{"1":{"name":"punctuation.definition.tag.html"},"2":{"name":"entity.name.tag.script.html"}},"end":"(?<=</(script|SCRIPT))(>)(?:\\\\s*\\\\n)?","endCaptures":{"2":{"name":"punctuation.definition.tag.html"}},"name":"source.js.embedded.html","patterns":[{"include":"#tag-stuff"},{"begin":"(?<!</(?:script|SCRIPT))(>)","captures":{"1":{"name":"punctuation.definition.tag.html"},"2":{"name":"entity.name.tag.script.html"}},"end":"(</)((?i:script))","patterns":[{"captures":{"1":{"name":"punctuation.definition.comment.js"}},"match":"(//).*?((?=<\/script)|$\\\\n?)","name":"comment.line.double-slash.js"},{"begin":"/\\\\*","captures":{"0":{"name":"punctuation.definition.comment.js"}},"end":"\\\\*/|(?=<\/script)","name":"comment.block.js"},{"include":"#php"},{"include":"#twig-print-tag"},{"include":"#twig-statement-tag"},{"include":"#twig-comment-tag"},{"include":"source.js"}]}]},{"begin":"(?i)(?<=\\\\{%\\\\s(?:|include)js\\\\s%})","end":"(?i)(?=\\\\{%\\\\send(?:|include)js\\\\s%})","name":"source.js.embedded.twig","patterns":[{"include":"source.js"}]},{"begin":"(?i)(?<=\\\\{%\\\\s(?:|include|includehires)css\\\\s%})","end":"(?i)(?=\\\\{%\\\\send(?:|include|includehires)css\\\\s%})","name":"source.css.embedded.twig","patterns":[{"include":"source.css"}]},{"begin":"(?i)(?<=\\\\{%\\\\s(?:|include|includehires)scss\\\\s%})","end":"(?i)(?=\\\\{%\\\\send(?:|include|includehires)scss\\\\s%})","name":"source.css.scss.embedded.twig","patterns":[{"include":"source.css.scss"}]},{"begin":"(</?)((?i:body|head|html))\\\\b","captures":{"1":{"name":"punctuation.definition.tag.html"},"2":{"name":"entity.name.tag.structure.any.html"}},"end":"(>)","name":"meta.tag.structure.any.html","patterns":[{"include":"#tag-stuff"}]},{"begin":"(</?)((?i:address|blockquote|dd|div|dl|dt|fieldset|form|frame|frameset|h1|h2|h3|h4|h5|h6|iframe|noframes|object|ol|p|ul|applet|center|dir|hr|menu|pre))\\\\b","beginCaptures":{"1":{"name":"punctuation.definition.tag.begin.html"},"2":{"name":"entity.name.tag.block.any.html"}},"end":"(>)","endCaptures":{"1":{"name":"punctuation.definition.tag.end.html"}},"name":"meta.tag.block.any.html","patterns":[{"include":"#tag-stuff"}]},{"begin":"(</?)((?i:a|abbr|acronym|area|b|base|basefont|bdo|big|br|button|caption|cite|code|col|colgroup|del|dfn|em|font|head|html|i|img|input|ins|isindex|kbd|label|legend|li|link|map|meta|noscript|optgroup|option|param|[qs]|samp|script|select|small|span|strike|strong|style|sub|sup|table|tbody|td|textarea|tfoot|th|thead|title|tr|tt|u|var))\\\\b","beginCaptures":{"1":{"name":"punctuation.definition.tag.begin.html"},"2":{"name":"entity.name.tag.inline.any.html"}},"end":"((?: ?/)?>)","endCaptures":{"1":{"name":"punctuation.definition.tag.end.html"}},"name":"meta.tag.inline.any.html","patterns":[{"include":"#tag-stuff"}]},{"begin":"(</?)([0-:A-Za-z]+)","beginCaptures":{"1":{"name":"punctuation.definition.tag.begin.html"},"2":{"name":"entity.name.tag.other.html"}},"end":"(>)","endCaptures":{"1":{"name":"punctuation.definition.tag.end.html"}},"name":"meta.tag.other.html","patterns":[{"include":"#tag-stuff"}]},{"include":"#entities"},{"match":"<>","name":"invalid.illegal.incomplete.html"},{"match":"<","name":"invalid.illegal.bad-angle-bracket.html"},{"include":"#twig-print-tag"},{"include":"#twig-statement-tag"},{"include":"#twig-comment-tag"}],"repository":{"embedded-code":{"patterns":[{"include":"#ruby"},{"include":"#php"},{"include":"#twig-print-tag"},{"include":"#twig-statement-tag"},{"include":"#twig-comment-tag"},{"include":"#python"}]},"entities":{"patterns":[{"captures":{"1":{"name":"punctuation.definition.entity.html"},"3":{"name":"punctuation.definition.entity.html"}},"match":"(&)([0-9A-Za-z]+|#[0-9]+|#x\\\\h+)(;)","name":"constant.character.entity.html"},{"match":"&","name":"invalid.illegal.bad-ampersand.html"}]},"php":{"begin":"(?=(^\\\\s*)?<\\\\?)","end":"(?!(^\\\\s*)?<\\\\?)","patterns":[{"include":"source.php"}]},"python":{"begin":"^\\\\s*<\\\\?python(?!.*\\\\?>)","end":"\\\\?>(?:\\\\s*$\\\\n)?","name":"source.python.embedded.html","patterns":[{"include":"source.python"}]},"ruby":{"patterns":[{"begin":"<%+#","captures":{"0":{"name":"punctuation.definition.comment.erb"}},"end":"%>","name":"comment.block.erb"},{"begin":"<%+(?!>)=?","captures":{"0":{"name":"punctuation.section.embedded.ruby"}},"end":"-?%>","name":"source.ruby.embedded.html","patterns":[{"captures":{"1":{"name":"punctuation.definition.comment.ruby"}},"match":"(#).*?(?=-?%>)","name":"comment.line.number-sign.ruby"},{"include":"source.ruby"}]},{"begin":"<\\\\?r(?!>)=?","captures":{"0":{"name":"punctuation.section.embedded.ruby.nitro"}},"end":"-?\\\\?>","name":"source.ruby.nitro.embedded.html","patterns":[{"captures":{"1":{"name":"punctuation.definition.comment.ruby.nitro"}},"match":"(#).*?(?=-?\\\\?>)","name":"comment.line.number-sign.ruby.nitro"},{"include":"source.ruby"}]}]},"string-double-quoted":{"begin":"\\"","beginCaptures":{"0":{"name":"punctuation.definition.string.begin.html"}},"end":"\\"","endCaptures":{"0":{"name":"punctuation.definition.string.end.html"}},"name":"string.quoted.double.html","patterns":[{"include":"#embedded-code"},{"include":"#entities"}]},"string-single-quoted":{"begin":"'","beginCaptures":{"0":{"name":"punctuation.definition.string.begin.html"}},"end":"'","endCaptures":{"0":{"name":"punctuation.definition.string.end.html"}},"name":"string.quoted.single.html","patterns":[{"include":"#embedded-code"},{"include":"#entities"}]},"tag-generic-attribute":{"match":"\\\\b([-:A-Za-z]+)","name":"entity.other.attribute-name.html"},"tag-id-attribute":{"begin":"\\\\b(id)\\\\b\\\\s*(=)","captures":{"1":{"name":"entity.other.attribute-name.id.html"},"2":{"name":"punctuation.separator.key-value.html"}},"end":"(?<=[\\"'])","name":"meta.attribute-with-value.id.html","patterns":[{"begin":"\\"","beginCaptures":{"0":{"name":"punctuation.definition.string.begin.html"}},"contentName":"meta.toc-list.id.html","end":"\\"","endCaptures":{"0":{"name":"punctuation.definition.string.end.html"}},"name":"string.quoted.double.html","patterns":[{"include":"#embedded-code"},{"include":"#entities"}]},{"begin":"'","beginCaptures":{"0":{"name":"punctuation.definition.string.begin.html"}},"contentName":"meta.toc-list.id.html","end":"'","endCaptures":{"0":{"name":"punctuation.definition.string.end.html"}},"name":"string.quoted.single.html","patterns":[{"include":"#embedded-code"},{"include":"#entities"}]}]},"tag-stuff":{"patterns":[{"include":"#tag-id-attribute"},{"include":"#tag-generic-attribute"},{"include":"#string-double-quoted"},{"include":"#string-single-quoted"},{"include":"#embedded-code"}]},"twig-arrays":{"begin":"(?<=[(,:\\\\[{\\\\s])\\\\[","beginCaptures":{"0":{"name":"punctuation.section.array.begin.twig"}},"end":"]","endCaptures":{"0":{"name":"punctuation.section.array.end.twig"}},"name":"meta.array.twig","patterns":[{"include":"#twig-arrays"},{"include":"#twig-hashes"},{"include":"#twig-constants"},{"include":"#twig-operators"},{"include":"#twig-strings"},{"include":"#twig-functions-warg"},{"include":"#twig-functions"},{"include":"#twig-macros"},{"include":"#twig-objects"},{"include":"#twig-properties"},{"include":"#twig-filters-warg"},{"include":"#twig-filters"},{"include":"#twig-filters-warg-ud"},{"include":"#twig-filters-ud"},{"match":",","name":"punctuation.separator.object.twig"}]},"twig-comment-tag":{"begin":"\\\\{#-?","beginCaptures":{"0":{"name":"punctuation.definition.comment.begin.twig"}},"end":"-?#}","endCaptures":{"0":{"name":"punctuation.definition.comment.end.twig"}},"name":"comment.block.twig"},"twig-constants":{"patterns":[{"match":"(?i)(?<=[(,:\\\\[{\\\\s])(?:true|false|null|none)(?=[]),}\\\\s])","name":"constant.language.twig"},{"match":"(?<=[(,:\\\\[{\\\\s]|\\\\.\\\\.|\\\\*\\\\*)[0-9]+(?:\\\\.[0-9]+)?(?=[]),}\\\\s]|\\\\.\\\\.|\\\\*\\\\*)","name":"constant.numeric.twig"}]},"twig-filters":{"captures":{"1":{"name":"support.function.twig"}},"match":"(?<=[]\\"')0-9A-Z_a-z\\\\x7F-ÿ]\\\\||\\\\{%\\\\sfilter\\\\s)(abs|capitalize|e(?:scape)?|first|join|(?:json|url)_encode|keys|last|length|lower|nl2br|number_format|raw|reverse|round|sort|striptags|title|trim|upper)(?=[]),:|}\\\\s]|\\\\.\\\\.|\\\\*\\\\*)"},"twig-filters-ud":{"captures":{"1":{"name":"meta.function-call.other.twig"}},"match":"(?<=[]\\"')0-9A-Z_a-z\\\\x7F-ÿ]\\\\||\\\\{%\\\\sfilter\\\\s)([A-Z_a-z\\\\x7F-ÿ][0-9A-Z_a-z\\\\x7F-ÿ]*)"},"twig-filters-warg":{"begin":"(?<=[]\\"')0-9A-Z_a-z\\\\x7F-ÿ]\\\\||\\\\{%\\\\sfilter\\\\s)(batch|convert_encoding|date|date_modify|default|e(?:scape)?|format|join|merge|number_format|replace|round|slice|split|trim)(\\\\()","beginCaptures":{"1":{"name":"support.function.twig"},"2":{"name":"punctuation.definition.parameters.begin.twig"}},"contentName":"meta.function.arguments.twig","end":"\\\\)","endCaptures":{"0":{"name":"punctuation.definition.parameters.end.twig"}},"patterns":[{"include":"#twig-constants"},{"include":"#twig-operators"},{"include":"#twig-functions-warg"},{"include":"#twig-functions"},{"include":"#twig-macros"},{"include":"#twig-objects"},{"include":"#twig-properties"},{"include":"#twig-filters-warg"},{"include":"#twig-filters"},{"include":"#twig-filters-warg-ud"},{"include":"#twig-filters-ud"},{"include":"#twig-strings"},{"include":"#twig-arrays"},{"include":"#twig-hashes"}]},"twig-filters-warg-ud":{"begin":"(?<=[]\\"')0-9A-Z_a-z\\\\x7F-ÿ]\\\\||\\\\{%\\\\sfilter\\\\s)([A-Z_a-z\\\\x7F-ÿ][0-9A-Z_a-z\\\\x7F-ÿ]*)(\\\\()","beginCaptures":{"1":{"name":"meta.function-call.other.twig"},"2":{"name":"punctuation.definition.parameters.begin.twig"}},"contentName":"meta.function.arguments.twig","end":"\\\\)","endCaptures":{"0":{"name":"punctuation.definition.parameters.end.twig"}},"patterns":[{"include":"#twig-constants"},{"include":"#twig-functions-warg"},{"include":"#twig-functions"},{"include":"#twig-macros"},{"include":"#twig-objects"},{"include":"#twig-properties"},{"include":"#twig-filters-warg"},{"include":"#twig-filters"},{"include":"#twig-filters-warg-ud"},{"include":"#twig-filters-ud"},{"include":"#twig-strings"},{"include":"#twig-arrays"},{"include":"#twig-hashes"}]},"twig-functions":{"captures":{"1":{"name":"support.function.twig"}},"match":"(?<=is\\\\s)(defined|empty|even|iterable|odd)"},"twig-functions-warg":{"begin":"(?<=[(,:\\\\[{\\\\s])(attribute|block|constant|cycle|date|divisible by|dump|include|max|min|parent|random|range|same as|source|template_from_string)(\\\\()","beginCaptures":{"1":{"name":"support.function.twig"},"2":{"name":"punctuation.definition.parameters.begin.twig"}},"contentName":"meta.function.arguments.twig","end":"\\\\)","endCaptures":{"0":{"name":"punctuation.definition.parameters.end.twig"}},"patterns":[{"include":"#twig-constants"},{"include":"#twig-functions-warg"},{"include":"#twig-functions"},{"include":"#twig-macros"},{"include":"#twig-objects"},{"include":"#twig-properties"},{"include":"#twig-filters-warg"},{"include":"#twig-filters"},{"include":"#twig-filters-warg-ud"},{"include":"#twig-filters-ud"},{"include":"#twig-strings"},{"include":"#twig-arrays"}]},"twig-hashes":{"begin":"(?<=[(,:\\\\[{\\\\s])\\\\{","beginCaptures":{"0":{"name":"punctuation.section.hash.begin.twig"}},"end":"}","endCaptures":{"0":{"name":"punctuation.section.hash.end.twig"}},"name":"meta.hash.twig","patterns":[{"include":"#twig-hashes"},{"include":"#twig-arrays"},{"include":"#twig-constants"},{"include":"#twig-operators"},{"include":"#twig-strings"},{"include":"#twig-functions-warg"},{"include":"#twig-functions"},{"include":"#twig-macros"},{"include":"#twig-objects"},{"include":"#twig-properties"},{"include":"#twig-filters-warg"},{"include":"#twig-filters"},{"include":"#twig-filters-warg-ud"},{"include":"#twig-filters-ud"},{"match":":","name":"punctuation.separator.key-value.twig"},{"match":",","name":"punctuation.separator.object.twig"}]},"twig-keywords":{"match":"(?<=\\\\s)((?:end)?(?:autoescape|block|embed|filter|for|if|macro|raw|sandbox|set|spaceless|trans|verbatim)|as|do|else|elseif|extends|flush|from|ignore missing|import|include|only|use|with)(?=\\\\s)","name":"keyword.control.twig"},"twig-macros":{"begin":"(?<=[(,:\\\\[{\\\\s])([A-Z_a-z\\\\x7F-ÿ][0-9A-Z_a-z\\\\x7F-ÿ]*)(?:(\\\\.)([A-Z_a-z\\\\x7F-ÿ][0-9A-Z_a-z\\\\x7F-ÿ]*))?(\\\\()","beginCaptures":{"1":{"name":"meta.function-call.twig"},"2":{"name":"punctuation.separator.property.twig"},"3":{"name":"variable.other.property.twig"},"4":{"name":"punctuation.definition.parameters.begin.twig"}},"contentName":"meta.function.arguments.twig","end":"\\\\)","endCaptures":{"0":{"name":"punctuation.definition.parameters.end.twig"}},"patterns":[{"include":"#twig-constants"},{"include":"#twig-operators"},{"include":"#twig-functions-warg"},{"include":"#twig-functions"},{"include":"#twig-macros"},{"include":"#twig-objects"},{"include":"#twig-properties"},{"include":"#twig-filters-warg"},{"include":"#twig-filters"},{"include":"#twig-filters-warg-ud"},{"include":"#twig-filters-ud"},{"include":"#twig-strings"},{"include":"#twig-arrays"},{"include":"#twig-hashes"}]},"twig-objects":{"captures":{"1":{"name":"variable.other.twig"}},"match":"(?<=[(,:\\\\[{\\\\s])([A-Z_a-z\\\\x7F-ÿ][0-9A-Z_a-z\\\\x7F-ÿ]*)(?=[](),.:\\\\[|}\\\\s])"},"twig-operators":{"patterns":[{"captures":{"1":{"name":"keyword.operator.arithmetic.twig"}},"match":"(?<=\\\\s)([-+]|//?|%|\\\\*\\\\*?)(?=\\\\s)"},{"captures":{"1":{"name":"keyword.operator.assignment.twig"}},"match":"(?<=\\\\s)([=~])(?=\\\\s)"},{"captures":{"1":{"name":"keyword.operator.bitwise.twig"}},"match":"(?<=\\\\s)(b-(?:and|or|xor))(?=\\\\s)"},{"captures":{"1":{"name":"keyword.operator.comparison.twig"}},"match":"(?<=\\\\s)([!=]=|<=?|>=?|(?:not )?in|is(?: not)?|(?:ends|starts) with|matches)(?=\\\\s)"},{"captures":{"1":{"name":"keyword.operator.logical.twig"}},"match":"(?<=\\\\s)([:?]|\\\\?:|\\\\?\\\\?|and|not|or)(?=\\\\s)"},{"captures":{"0":{"name":"keyword.operator.other.twig"}},"match":"(?<=[]\\"')0-9A-Z_a-z\\\\x7F-ÿ])\\\\.\\\\.(?=[\\"'0-9A-Z_a-z\\\\x7F-ÿ])"},{"captures":{"0":{"name":"keyword.operator.other.twig"}},"match":"(?<=[]\\"')0-9A-Z_a-z}\\\\x7F-ÿ])\\\\|(?=[A-Z_a-z\\\\x7F-ÿ])"}]},"twig-print-tag":{"begin":"\\\\{\\\\{-?","beginCaptures":{"0":{"name":"punctuation.section.tag.twig"}},"end":"-?}}","endCaptures":{"0":{"name":"punctuation.section.tag.twig"}},"name":"meta.tag.template.value.twig","patterns":[{"include":"#twig-constants"},{"include":"#twig-operators"},{"include":"#twig-functions-warg"},{"include":"#twig-functions"},{"include":"#twig-macros"},{"include":"#twig-objects"},{"include":"#twig-properties"},{"include":"#twig-filters-warg"},{"include":"#twig-filters"},{"include":"#twig-filters-warg-ud"},{"include":"#twig-filters-ud"},{"include":"#twig-strings"},{"include":"#twig-arrays"},{"include":"#twig-hashes"}]},"twig-properties":{"patterns":[{"captures":{"1":{"name":"punctuation.separator.property.twig"},"2":{"name":"variable.other.property.twig"}},"match":"(?<=[0-9A-Z_a-z\\\\x7F-ÿ])(\\\\.)([A-Z_a-z\\\\x7F-ÿ][0-9A-Z_a-z\\\\x7F-ÿ]*)(?=[]),.:\\\\[|}\\\\s])"},{"begin":"(?<=[0-9A-Z_a-z\\\\x7F-ÿ])(\\\\.)([A-Z_a-z\\\\x7F-ÿ][0-9A-Z_a-z\\\\x7F-ÿ]*)(\\\\()","beginCaptures":{"1":{"name":"punctuation.separator.property.twig"},"2":{"name":"variable.other.property.twig"},"3":{"name":"punctuation.definition.parameters.begin.twig"}},"contentName":"meta.function.arguments.twig","end":"\\\\)","endCaptures":{"0":{"name":"punctuation.definition.parameters.end.twig"}},"patterns":[{"include":"#twig-constants"},{"include":"#twig-functions-warg"},{"include":"#twig-functions"},{"include":"#twig-macros"},{"include":"#twig-objects"},{"include":"#twig-properties"},{"include":"#twig-filters-warg"},{"include":"#twig-filters"},{"include":"#twig-filters-warg-ud"},{"include":"#twig-filters-ud"},{"include":"#twig-strings"},{"include":"#twig-arrays"}]},{"captures":{"1":{"name":"punctuation.section.array.begin.twig"},"2":{"name":"variable.other.property.twig"},"3":{"name":"punctuation.section.array.end.twig"},"4":{"name":"punctuation.section.array.begin.twig"},"5":{"name":"variable.other.property.twig"},"6":{"name":"punctuation.section.array.end.twig"},"7":{"name":"punctuation.section.array.begin.twig"},"8":{"name":"variable.other.property.twig"},"9":{"name":"punctuation.section.array.end.twig"}},"match":"(?<=[]0-9A-Z_a-z\\\\x7F-ÿ])(?:(\\\\[)('[A-Z_a-z\\\\x7F-ÿ][0-9A-Z_a-z\\\\x7F-ÿ]*')(])|(\\\\[)(\\"[A-Z_a-z\\\\x7F-ÿ][0-9A-Z_a-z\\\\x7F-ÿ]*\\")(])|(\\\\[)([A-Z_a-z\\\\x7F-ÿ][0-9A-Z_a-z\\\\x7F-ÿ]*)(]))"}]},"twig-statement-tag":{"begin":"\\\\{%-?","beginCaptures":{"0":{"name":"punctuation.section.tag.twig"}},"end":"-?%}","endCaptures":{"0":{"name":"punctuation.section.tag.twig"}},"name":"meta.tag.template.block.twig","patterns":[{"include":"#twig-constants"},{"include":"#twig-keywords"},{"include":"#twig-operators"},{"include":"#twig-functions-warg"},{"include":"#twig-functions"},{"include":"#twig-macros"},{"include":"#twig-filters-warg"},{"include":"#twig-filters"},{"include":"#twig-filters-warg-ud"},{"include":"#twig-filters-ud"},{"include":"#twig-objects"},{"include":"#twig-properties"},{"include":"#twig-strings"},{"include":"#twig-arrays"},{"include":"#twig-hashes"}]},"twig-strings":{"patterns":[{"begin":"(?:(?<!\\\\\\\\)|(?<=\\\\\\\\\\\\\\\\))'","beginCaptures":{"0":{"name":"punctuation.definition.string.begin.twig"}},"end":"(?:(?<!\\\\\\\\)|(?<=\\\\\\\\\\\\\\\\))'","endCaptures":{"0":{"name":"punctuation.definition.string.end.twig"}},"name":"string.quoted.single.twig"},{"begin":"(?:(?<!\\\\\\\\)|(?<=\\\\\\\\\\\\\\\\))\\"","beginCaptures":{"0":{"name":"punctuation.definition.string.begin.twig"}},"end":"(?:(?<!\\\\\\\\)|(?<=\\\\\\\\\\\\\\\\))\\"","endCaptures":{"0":{"name":"punctuation.definition.string.end.twig"}},"name":"string.quoted.double.twig"}]}},"scopeName":"text.html.twig","embeddedLangs":["css","javascript","scss","php","python","ruby"]}`)),s=[...t,...e,...n,...a,...r,...i,o];export{s as default};
@@ -1 +1 @@
1
- import{o as e}from"./rolldown-runtime-FhOqtrmT.js";import{S as t}from"./vendor-markdown-Ls5AcU91.js";import{i as n,r}from"./api-client-CEYCBt_0.js";var i=e(t(),1);function a(e,t,a,o=0){let[s,c]=(0,i.useState)(null),[l,u]=(0,i.useState)(null),[d,f]=(0,i.useState)(!1),[p,m]=(0,i.useState)(null),h=(0,i.useRef)(null);return(0,i.useEffect)(()=>{let i=!1;f(!1),m(null);let o=/^(\/|[A-Za-z]:[/\\])/.test(e)?`/api/fs/raw?path=${encodeURIComponent(e)}`:`${n(t)}/files/raw?path=${encodeURIComponent(e)}`,s=r();return fetch(o,{headers:s?{Authorization:`Bearer ${s}`}:{}}).then(e=>{if(!e.ok)throw Error(String(e.status));return e.blob()}).then(e=>{if(i)return;let t=a?new Blob([e],{type:a}):e,n=URL.createObjectURL(t);h.current&&URL.revokeObjectURL(h.current),h.current=n,c(n),u(t)}).catch(e=>{i||(f(!0),m(/^\d+$/.test(e.message)?e.message:`network`))}),()=>{i=!0}},[e,t,a,o]),(0,i.useEffect)(()=>()=>{h.current&&URL.revokeObjectURL(h.current)},[]),{blobUrl:s,blob:l,error:d,errorCode:p}}export{a as t};
1
+ import{o as e}from"./rolldown-runtime-FhOqtrmT.js";import{C as t}from"./vendor-markdown-CuWCHIVb.js";import{i as n,r}from"./api-client-DKvkxuDr.js";var i=e(t(),1);function a(e,t,a,o=0){let[s,c]=(0,i.useState)(null),[l,u]=(0,i.useState)(null),[d,f]=(0,i.useState)(!1),[p,m]=(0,i.useState)(null),h=(0,i.useRef)(null);return(0,i.useEffect)(()=>{let i=!1;f(!1),m(null);let o=/^(\/|[A-Za-z]:[/\\])/.test(e)?`/api/fs/raw?path=${encodeURIComponent(e)}`:`${n(t)}/files/raw?path=${encodeURIComponent(e)}`,s=r();return fetch(o,{headers:s?{Authorization:`Bearer ${s}`}:{}}).then(e=>{if(!e.ok)throw Error(String(e.status));return e.blob()}).then(e=>{if(i)return;let t=a?new Blob([e],{type:a}):e,n=URL.createObjectURL(t);h.current&&URL.revokeObjectURL(h.current),h.current=n,c(n),u(t)}).catch(e=>{i||(f(!0),m(/^\d+$/.test(e.message)?e.message:`network`))}),()=>{i=!0}},[e,t,a,o]),(0,i.useEffect)(()=>()=>{h.current&&URL.revokeObjectURL(h.current)},[]),{blobUrl:s,blob:l,error:d,errorCode:p}}export{a as t};
@@ -1 +1 @@
1
- import{o as e}from"./rolldown-runtime-FhOqtrmT.js";import{S as t}from"./vendor-markdown-Ls5AcU91.js";import{t as n}from"./createLucideIcon-D8pyde1A.js";var r=n(`ellipsis`,[[`circle`,{cx:`12`,cy:`12`,r:`1`,key:`41hilf`}],[`circle`,{cx:`19`,cy:`12`,r:`1`,key:`1wjl8i`}],[`circle`,{cx:`5`,cy:`12`,r:`1`,key:`1pcz8c`}]]),i=e(t(),1),a=400,o=10;function s(){let[e,t]=(0,i.useState)(()=>typeof window<`u`&&window.matchMedia?.(`(pointer: coarse)`).matches===!0);return(0,i.useEffect)(()=>{let e=window.matchMedia?.(`(pointer: coarse)`);if(!e)return;let n=()=>t(e.matches);return e.addEventListener(`change`,n),()=>e.removeEventListener(`change`,n)},[]),e}function c(e){let t=s(),n=(0,i.useRef)(null),r=(0,i.useRef)(null),c=(0,i.useRef)(!1),l=(0,i.useCallback)(()=>{n.current&&clearTimeout(n.current),n.current=null},[]);(0,i.useEffect)(()=>l,[l]);let u=(0,i.useCallback)(t=>{let i=t.touches[0];if(!i)return;let o=t.currentTarget;r.current={x:i.clientX,y:i.clientY},c.current=!1,l(),n.current=setTimeout(()=>{c.current=!0,e?.(),o.dispatchEvent(new MouseEvent(`contextmenu`,{bubbles:!0,cancelable:!0,clientX:i.clientX,clientY:i.clientY}))},a)},[l,e]),d=(0,i.useCallback)(e=>{let t=e.touches[0];!t||!r.current||(Math.abs(t.clientX-r.current.x)>o||Math.abs(t.clientY-r.current.y)>o)&&l()},[l]);return t?{onTouchStart:u,onTouchMove:d,onTouchEnd:l}:{}}export{s as n,r,c as t};
1
+ import{o as e}from"./rolldown-runtime-FhOqtrmT.js";import{C as t}from"./vendor-markdown-CuWCHIVb.js";import{t as n}from"./createLucideIcon-D6fVXe3s.js";var r=n(`ellipsis`,[[`circle`,{cx:`12`,cy:`12`,r:`1`,key:`41hilf`}],[`circle`,{cx:`19`,cy:`12`,r:`1`,key:`1wjl8i`}],[`circle`,{cx:`5`,cy:`12`,r:`1`,key:`1pcz8c`}]]),i=e(t(),1),a=400,o=10;function s(){let[e,t]=(0,i.useState)(()=>typeof window<`u`&&window.matchMedia?.(`(pointer: coarse)`).matches===!0);return(0,i.useEffect)(()=>{let e=window.matchMedia?.(`(pointer: coarse)`);if(!e)return;let n=()=>t(e.matches);return e.addEventListener(`change`,n),()=>e.removeEventListener(`change`,n)},[]),e}function c(e){let t=s(),n=(0,i.useRef)(null),r=(0,i.useRef)(null),c=(0,i.useRef)(!1),l=(0,i.useCallback)(()=>{n.current&&clearTimeout(n.current),n.current=null},[]);(0,i.useEffect)(()=>l,[l]);let u=(0,i.useCallback)(t=>{let i=t.touches[0];if(!i)return;let o=t.currentTarget;r.current={x:i.clientX,y:i.clientY},c.current=!1,l(),n.current=setTimeout(()=>{c.current=!0,e?.(),o.dispatchEvent(new MouseEvent(`contextmenu`,{bubbles:!0,cancelable:!0,clientX:i.clientX,clientY:i.clientY}))},a)},[l,e]),d=(0,i.useCallback)(e=>{let t=e.touches[0];!t||!r.current||(Math.abs(t.clientX-r.current.x)>o||Math.abs(t.clientY-r.current.y)>o)&&l()},[l]);return t?{onTouchStart:u,onTouchMove:d,onTouchEnd:l}:{}}export{s as n,r,c as t};
@@ -1,4 +1,4 @@
1
- import{o as e}from"./rolldown-runtime-FhOqtrmT.js";import{S as t}from"./vendor-markdown-Ls5AcU91.js";import{t as n}from"./createLucideIcon-D8pyde1A.js";import{i as r,n as i}from"./api-client-CEYCBt_0.js";var a=n(`user-round`,[[`circle`,{cx:`12`,cy:`8`,r:`5`,key:`1hypcn`}],[`path`,{d:`M20 21a8 8 0 0 0-16 0`,key:`rfgkzh`}]]);`0`.repeat(40);function o(e){return/^0+$/.test(e)}function s(e,t=Date.now()){if(!e)return``;if(o(e.hash))return`You, uncommitted changes`;let n=e.author||`Unknown`,r=e.authorTime>0?c(e.authorTime*1e3,t):``,i=r?`${n}, ${r}`:n;return e.summary?`${i} • ${e.summary}`:i}function c(e,t=Date.now()){let n=Math.max(0,Math.round((t-e)/1e3));if(n<60)return`just now`;for(let[e,t,r]of[[3600,60,`minute`],[86400,3600,`hour`],[2592e3,86400,`day`],[31536e3,2592e3,`month`],[1/0,31536e3,`year`]])if(n<e){let e=Math.floor(n/t);return`${e} ${r}${e===1?``:`s`} ago`}return`just now`}var l=e(t(),1),u=`inline-blame-styles`,d=`
1
+ import{o as e}from"./rolldown-runtime-FhOqtrmT.js";import{C as t}from"./vendor-markdown-CuWCHIVb.js";import{t as n}from"./createLucideIcon-D6fVXe3s.js";import{i as r,n as i}from"./api-client-DKvkxuDr.js";var a=n(`user-round`,[[`circle`,{cx:`12`,cy:`8`,r:`5`,key:`1hypcn`}],[`path`,{d:`M20 21a8 8 0 0 0-16 0`,key:`rfgkzh`}]]);`0`.repeat(40);function o(e){return/^0+$/.test(e)}function s(e,t=Date.now()){if(!e)return``;if(o(e.hash))return`You, uncommitted changes`;let n=e.author||`Unknown`,r=e.authorTime>0?c(e.authorTime*1e3,t):``,i=r?`${n}, ${r}`:n;return e.summary?`${i} • ${e.summary}`:i}function c(e,t=Date.now()){let n=Math.max(0,Math.round((t-e)/1e3));if(n<60)return`just now`;for(let[e,t,r]of[[3600,60,`minute`],[86400,3600,`hour`],[2592e3,86400,`day`],[31536e3,2592e3,`month`],[1/0,31536e3,`year`]])if(n<e){let e=Math.floor(n/t);return`${e} ${r}${e===1?``:`s`} ago`}return`just now`}var l=e(t(),1),u=`inline-blame-styles`,d=`
2
2
  .inline-blame-annotation {
3
3
  color: var(--color-muted-foreground);
4
4
  opacity: 0.6;
@@ -1 +1 @@
1
- import{o as e}from"./rolldown-runtime-FhOqtrmT.js";import{S as t}from"./vendor-markdown-Ls5AcU91.js";var n=e(t(),1);function r(e){return window.addEventListener(`resize`,e),()=>window.removeEventListener(`resize`,e)}function i(){return typeof window<`u`&&window.innerWidth<768}function a(){return!1}function o(){return(0,n.useSyncExternalStore)(r,i,a)}function s(){return typeof window<`u`&&window.innerWidth<768}export{o as n,s as t};
1
+ import{o as e}from"./rolldown-runtime-FhOqtrmT.js";import{C as t}from"./vendor-markdown-CuWCHIVb.js";var n=e(t(),1);function r(e){return window.addEventListener(`resize`,e),()=>window.removeEventListener(`resize`,e)}function i(){return typeof window<`u`&&window.innerWidth<768}function a(){return!1}function o(){return(0,n.useSyncExternalStore)(r,i,a)}function s(){return typeof window<`u`&&window.innerWidth<768}export{o as n,s as t};
@@ -0,0 +1 @@
1
+ import{o as e}from"./rolldown-runtime-FhOqtrmT.js";import{C as t}from"./vendor-markdown-CuWCHIVb.js";import{t as n}from"./settings-store-BkNrLdjk.js";import{r,t as i}from"./apply-theme-Abd1TNqE.js";import{t as a}from"./resolve-theme-Dm8ehbOv.js";import{o}from"./index-BV_sFdHY.js";var s=e(t(),1);function c(){let e=n(e=>e.themeStyle),t=n(e=>e.themeMode),c=n(e=>e.customThemeId),l=n(e=>e.customThemes),u=()=>o(r()??a(e,t,l,c)),[d,f]=(0,s.useState)(u);return(0,s.useEffect)(()=>{f(u());let e=()=>f(u());return window.addEventListener(i,e),()=>window.removeEventListener(i,e)},[e,t,c,l]),d}export{c as t};
@@ -0,0 +1 @@
1
+ import{o as e}from"./rolldown-runtime-FhOqtrmT.js";import{C as t}from"./vendor-markdown-CuWCHIVb.js";import{t as n}from"./react-Bcm1Oab0.js";import{t as r}from"./window-store-2z4t5YAt.js";import{n as i}from"./use-is-mobile-Dypg-2ZO.js";var a=e(t(),1),o=n(e=>({payload:null,open:t=>e({payload:t}),close:()=>e({payload:null})}));function s(){let e=i(),t=r(e=>e.open),n=o(e=>e.open);return(0,a.useCallback)(r=>{e?n(r):t(`team-member`,r)},[e,n,t])}export{o as n,s as t};
@@ -1 +1 @@
1
- import{o as e}from"./rolldown-runtime-FhOqtrmT.js";import{S as t,x as n}from"./vendor-markdown-Ls5AcU91.js";import{t as r}from"./createLucideIcon-D8pyde1A.js";import{n as i}from"./api-client-CEYCBt_0.js";import{t as a}from"./settings-store-Bsu_5zIU.js";import{t as o}from"./ws-auth-D111jj32.js";import{y as s}from"./index-A3ripVe5.js";var c=r(`gauge`,[[`path`,{d:`m12 14 4-4`,key:`9kzdfg`}],[`path`,{d:`M3.34 19a10 10 0 1 1 17.32 0`,key:`19p75a`}]]),l=r(`monitor-x`,[[`path`,{d:`m14.5 12.5-5-5`,key:`1jahn5`}],[`path`,{d:`m9.5 12.5 5-5`,key:`1k2t7b`}],[`rect`,{width:`20`,height:`14`,x:`2`,y:`3`,rx:`2`,key:`48i651`}],[`path`,{d:`M12 17v4`,key:`1riwvh`}],[`path`,{d:`M8 21h8`,key:`1ev6f3`}]]);function u(e,t,n=`8081`){let r=o(`/ws/remote-desktop`),i=e.protocol===`https:`?`wss:`:`ws:`;return t&&e.protocol!==`https:`?`ws://${e.hostname}:${n}${r}`:`${i}//${e.host}${r}`}var d=30;function f(e,t=d){return Math.round(e*1e6/t)}var p=e(t(),1);function m(e,t){return t||e}function h(e){let[t,n]=(0,p.useState)(`idle`),[r,i]=(0,p.useState)(null),a=(0,p.useRef)(null),o=(0,p.useRef)(null),s=(0,p.useRef)(!1),c=(0,p.useRef)(0),l=(0,p.useRef)(0),u=(0,p.useRef)(null),d=(0,p.useRef)(!1),h=(0,p.useCallback)(e=>{n(`error`),i(e)},[]),g=(0,p.useCallback)(async t=>{if(u.current=t,typeof VideoDecoder>`u`){n(`unsupported`),i(`This browser has no WebCodecs VideoDecoder — try Chrome, Edge, or Safari 16.4+.`);return}let r={codec:t,optimizeForLatency:!0};try{if(!(await VideoDecoder.isConfigSupported(r)).supported){n(`unsupported`),i(`This browser's decoder does not support ${t}.`);return}}catch(e){h(e.message);return}a.current?.close(),s.current=!1,l.current=0;let f=new VideoDecoder({output:t=>{c.current+=1;let n=e.current;n&&((n.width!==t.displayWidth||n.height!==t.displayHeight)&&(n.width=t.displayWidth,n.height=t.displayHeight),o.current||=n.getContext(`2d`),o.current?.drawImage(t,0,0,n.width,n.height)),t.close()},error:e=>_(e.message)});try{f.configure(r)}catch(e){h(e.message);return}a.current=f,d.current=!0,n(`ready`),i(null)},[e,h]),_=(0,p.useCallback)(e=>{if(!d.current)return;let t=u.current;if(!t){h(e);return}try{a.current?.close()}catch{}a.current=null,g(t)},[g,h]);return{status:t,errorMessage:r,configure:g,decodeAccessUnit:(0,p.useCallback)((e,t)=>{let n=a.current;if(!(!n||n.state!==`configured`)&&m(s.current,t)){t&&(s.current=!0);try{n.decode(new EncodedVideoChunk({type:t?`key`:`delta`,timestamp:f(l.current++),data:e}))}catch(e){_(e.message)}}},[_]),reset:(0,p.useCallback)(()=>{d.current=!1;try{a.current?.close()}catch{}a.current=null,s.current=!1,c.current=0,l.current=0,n(`idle`),i(null)},[]),getFrameCount:(0,p.useCallback)(()=>c.current,[])}}var g=5e3;function _(e,{displayId:t}={}){let n=(0,p.useRef)(null),r=(0,p.useRef)(0),[a,o]=(0,p.useState)(`connecting`),[s,c]=(0,p.useState)(null),[l,d]=(0,p.useState)(0),f=h(e),m=(0,p.useCallback)(e=>{let t=n.current;t?.readyState===WebSocket.OPEN&&t.send(JSON.stringify(e))},[]);(0,p.useEffect)(()=>{let e=!1,a=null;o(`connecting`),c(null),r.current=0,f.reset(),(async()=>{let s;try{s=(await i.post(`/api/remote-desktop/session`)).nonce}catch(t){e||(o(`error`),c(t.message));return}if(e)return;let l=u(window.location,!1,void 0),d=new WebSocket(l);d.binaryType=`arraybuffer`,n.current=d,d.onopen=()=>{d.send(JSON.stringify({type:`auth`,nonce:s,...t?{displayId:t}:{}})),a=setInterval(()=>m({type:`ping`}),g)},d.onmessage=t=>{if(typeof t.data==`string`){let n;try{n=JSON.parse(t.data)}catch{return}n.type===`config`&&typeof n.codec==`string`?f.configure(n.codec).then(()=>{e||o(`streaming`)}):n.type===`error`&&(o(`error`),c(typeof n.message==`string`?n.message:`Server error`));return}let n=new Uint8Array(t.data);n.length<1||(r.current+=n.length,f.decodeAccessUnit(n.subarray(1),n[0]===1))},d.onerror=()=>{e||(o(`error`),c(`WebSocket error`))},d.onclose=()=>{e||o(e=>e===`error`?e:`closed`)}})();let s=()=>{if(document.hidden||e)return;let t=n.current;t&&t.readyState===WebSocket.OPEN?t.send(JSON.stringify({type:`ping`})):d(e=>e+1)};return document.addEventListener(`visibilitychange`,s),()=>{e=!0,document.removeEventListener(`visibilitychange`,s),a&&clearInterval(a);try{n.current?.close()}catch{}n.current=null;try{f.reset()}catch{}}},[l,t]);let _=(0,p.useCallback)(()=>d(e=>e+1),[]),v=(0,p.useCallback)(()=>r.current,[]);return{connState:a,errorMessage:s,decoderStatus:f.status,decoderErrorMessage:f.errorMessage,sendMessage:m,reconnect:_,getTotalBytes:v,getFrameCount:f.getFrameCount}}function v(e){return Math.min(Math.max(e,0),1)}function y(e,t,n){let r=n.width>0?(e-n.left)/n.width:0,i=n.height>0?(t-n.top)/n.height:0;return{xFrac:v(r),yFrac:v(i)}}function b(e,t,n,r){let i=r.scale||1,a=n.left+n.width/2,o=n.top+n.height/2;return y(a+(e-a-r.panX)/i,o+(t-o-r.panY)/i,n)}function x(e,t,n){if(t<=0||n<=0||e.width<=0||e.height<=0)return e;let r=e.width/e.height,i=t/n;if(i>r){let t=e.width/i;return{left:e.left,top:e.top+(e.height-t)/2,width:e.width,height:t}}let a=e.height*i;return{left:e.left+(e.width-a)/2,top:e.top,width:a,height:e.height}}var S={fps:0,kbps:0};function C(e,t){let n=t.atMs-e.atMs;if(n<=0)return S;let r=n/1e3,i=Math.max(0,t.frameCount-e.frameCount),a=Math.max(0,t.totalBytes-e.totalBytes);return{fps:i/r,kbps:a/1024/r}}var w=n(),T=500;function E({canvasRef:e,getFrameCount:t,getTotalBytes:n,positionClassName:r=`left-1 top-1`}){let i=a(e=>e.remoteDesktopStatsVisible),[o,s]=(0,p.useState)({fps:0,kbps:0,width:0,height:0}),c=(0,p.useRef)({frameCount:0,totalBytes:0,atMs:0});return(0,p.useEffect)(()=>{if(!i)return;c.current={frameCount:t(),totalBytes:n(),atMs:performance.now()};let r=setInterval(()=>{let r={frameCount:t(),totalBytes:n(),atMs:performance.now()},{fps:i,kbps:a}=C(c.current,r);c.current=r;let o=e.current;s({fps:i,kbps:a,width:o?.width??0,height:o?.height??0})},T);return()=>clearInterval(r)},[i,e,t,n]),i?(0,w.jsxs)(`div`,{className:`pointer-events-none absolute z-40 rounded bg-black/60 px-1.5 py-0.5 font-mono text-[10px] text-white/80 ${r}`,"data-testid":`remote-desktop-stats-overlay`,children:[Math.round(o.fps),` fps · `,Math.round(o.kbps),` KB/s · `,o.width,`×`,o.height]}):null}function D(){let{caps:e}=s(!1),t=e?.displays??[],[n,r]=(0,p.useState)(void 0),i=t.find(e=>e.id===n)??t.find(e=>e.primary)??t[0];return{displays:t,displayId:n,current:i,select:r,next:(0,p.useCallback)(()=>{t.length<2||r(t[(t.findIndex(e=>e.id===i?.id)+1)%t.length]?.id)},[t,i])}}export{x as a,c,b as i,E as n,_ as o,y as r,l as s,D as t};
1
+ import{o as e}from"./rolldown-runtime-FhOqtrmT.js";import{C as t,S as n}from"./vendor-markdown-CuWCHIVb.js";import{t as r}from"./createLucideIcon-D6fVXe3s.js";import{n as i}from"./api-client-DKvkxuDr.js";import{t as a}from"./settings-store-BkNrLdjk.js";import{t as o}from"./ws-auth-DI1E6Fe7.js";import{y as s}from"./index-BV_sFdHY.js";var c=r(`gauge`,[[`path`,{d:`m12 14 4-4`,key:`9kzdfg`}],[`path`,{d:`M3.34 19a10 10 0 1 1 17.32 0`,key:`19p75a`}]]),l=r(`monitor-x`,[[`path`,{d:`m14.5 12.5-5-5`,key:`1jahn5`}],[`path`,{d:`m9.5 12.5 5-5`,key:`1k2t7b`}],[`rect`,{width:`20`,height:`14`,x:`2`,y:`3`,rx:`2`,key:`48i651`}],[`path`,{d:`M12 17v4`,key:`1riwvh`}],[`path`,{d:`M8 21h8`,key:`1ev6f3`}]]);function u(e,t,n=`8081`){let r=o(`/ws/remote-desktop`),i=e.protocol===`https:`?`wss:`:`ws:`;return t&&e.protocol!==`https:`?`ws://${e.hostname}:${n}${r}`:`${i}//${e.host}${r}`}var d=30;function f(e,t=d){return Math.round(e*1e6/t)}var p=e(t(),1);function m(e,t){return t||e}function h(e){let[t,n]=(0,p.useState)(`idle`),[r,i]=(0,p.useState)(null),a=(0,p.useRef)(null),o=(0,p.useRef)(null),s=(0,p.useRef)(!1),c=(0,p.useRef)(0),l=(0,p.useRef)(0),u=(0,p.useRef)(null),d=(0,p.useRef)(!1),h=(0,p.useCallback)(e=>{n(`error`),i(e)},[]),g=(0,p.useCallback)(async t=>{if(u.current=t,typeof VideoDecoder>`u`){n(`unsupported`),i(`This browser has no WebCodecs VideoDecoder — try Chrome, Edge, or Safari 16.4+.`);return}let r={codec:t,optimizeForLatency:!0};try{if(!(await VideoDecoder.isConfigSupported(r)).supported){n(`unsupported`),i(`This browser's decoder does not support ${t}.`);return}}catch(e){h(e.message);return}a.current?.close(),s.current=!1,l.current=0;let f=new VideoDecoder({output:t=>{c.current+=1;let n=e.current;n&&((n.width!==t.displayWidth||n.height!==t.displayHeight)&&(n.width=t.displayWidth,n.height=t.displayHeight),o.current||=n.getContext(`2d`),o.current?.drawImage(t,0,0,n.width,n.height)),t.close()},error:e=>_(e.message)});try{f.configure(r)}catch(e){h(e.message);return}a.current=f,d.current=!0,n(`ready`),i(null)},[e,h]),_=(0,p.useCallback)(e=>{if(!d.current)return;let t=u.current;if(!t){h(e);return}try{a.current?.close()}catch{}a.current=null,g(t)},[g,h]);return{status:t,errorMessage:r,configure:g,decodeAccessUnit:(0,p.useCallback)((e,t)=>{let n=a.current;if(!(!n||n.state!==`configured`)&&m(s.current,t)){t&&(s.current=!0);try{n.decode(new EncodedVideoChunk({type:t?`key`:`delta`,timestamp:f(l.current++),data:e}))}catch(e){_(e.message)}}},[_]),reset:(0,p.useCallback)(()=>{d.current=!1;try{a.current?.close()}catch{}a.current=null,s.current=!1,c.current=0,l.current=0,n(`idle`),i(null)},[]),getFrameCount:(0,p.useCallback)(()=>c.current,[])}}var g=5e3;function _(e,{displayId:t}={}){let n=(0,p.useRef)(null),r=(0,p.useRef)(0),[a,o]=(0,p.useState)(`connecting`),[s,c]=(0,p.useState)(null),[l,d]=(0,p.useState)(0),f=h(e),m=(0,p.useCallback)(e=>{let t=n.current;t?.readyState===WebSocket.OPEN&&t.send(JSON.stringify(e))},[]);(0,p.useEffect)(()=>{let e=!1,a=null;o(`connecting`),c(null),r.current=0,f.reset(),(async()=>{let s;try{s=(await i.post(`/api/remote-desktop/session`)).nonce}catch(t){e||(o(`error`),c(t.message));return}if(e)return;let l=u(window.location,!1,void 0),d=new WebSocket(l);d.binaryType=`arraybuffer`,n.current=d,d.onopen=()=>{d.send(JSON.stringify({type:`auth`,nonce:s,...t?{displayId:t}:{}})),a=setInterval(()=>m({type:`ping`}),g)},d.onmessage=t=>{if(typeof t.data==`string`){let n;try{n=JSON.parse(t.data)}catch{return}n.type===`config`&&typeof n.codec==`string`?f.configure(n.codec).then(()=>{e||o(`streaming`)}):n.type===`error`&&(o(`error`),c(typeof n.message==`string`?n.message:`Server error`));return}let n=new Uint8Array(t.data);n.length<1||(r.current+=n.length,f.decodeAccessUnit(n.subarray(1),n[0]===1))},d.onerror=()=>{e||(o(`error`),c(`WebSocket error`))},d.onclose=()=>{e||o(e=>e===`error`?e:`closed`)}})();let s=()=>{if(document.hidden||e)return;let t=n.current;t&&t.readyState===WebSocket.OPEN?t.send(JSON.stringify({type:`ping`})):d(e=>e+1)};return document.addEventListener(`visibilitychange`,s),()=>{e=!0,document.removeEventListener(`visibilitychange`,s),a&&clearInterval(a);try{n.current?.close()}catch{}n.current=null;try{f.reset()}catch{}}},[l,t]);let _=(0,p.useCallback)(()=>d(e=>e+1),[]),v=(0,p.useCallback)(()=>r.current,[]);return{connState:a,errorMessage:s,decoderStatus:f.status,decoderErrorMessage:f.errorMessage,sendMessage:m,reconnect:_,getTotalBytes:v,getFrameCount:f.getFrameCount}}function v(e){return Math.min(Math.max(e,0),1)}function y(e,t,n){let r=n.width>0?(e-n.left)/n.width:0,i=n.height>0?(t-n.top)/n.height:0;return{xFrac:v(r),yFrac:v(i)}}function b(e,t,n,r){let i=r.scale||1,a=n.left+n.width/2,o=n.top+n.height/2;return y(a+(e-a-r.panX)/i,o+(t-o-r.panY)/i,n)}function x(e,t,n){if(t<=0||n<=0||e.width<=0||e.height<=0)return e;let r=e.width/e.height,i=t/n;if(i>r){let t=e.width/i;return{left:e.left,top:e.top+(e.height-t)/2,width:e.width,height:t}}let a=e.height*i;return{left:e.left+(e.width-a)/2,top:e.top,width:a,height:e.height}}var S={fps:0,kbps:0};function C(e,t){let n=t.atMs-e.atMs;if(n<=0)return S;let r=n/1e3,i=Math.max(0,t.frameCount-e.frameCount),a=Math.max(0,t.totalBytes-e.totalBytes);return{fps:i/r,kbps:a/1024/r}}var w=n(),T=500;function E({canvasRef:e,getFrameCount:t,getTotalBytes:n,positionClassName:r=`left-1 top-1`}){let i=a(e=>e.remoteDesktopStatsVisible),[o,s]=(0,p.useState)({fps:0,kbps:0,width:0,height:0}),c=(0,p.useRef)({frameCount:0,totalBytes:0,atMs:0});return(0,p.useEffect)(()=>{if(!i)return;c.current={frameCount:t(),totalBytes:n(),atMs:performance.now()};let r=setInterval(()=>{let r={frameCount:t(),totalBytes:n(),atMs:performance.now()},{fps:i,kbps:a}=C(c.current,r);c.current=r;let o=e.current;s({fps:i,kbps:a,width:o?.width??0,height:o?.height??0})},T);return()=>clearInterval(r)},[i,e,t,n]),i?(0,w.jsxs)(`div`,{className:`pointer-events-none absolute z-40 rounded bg-black/60 px-1.5 py-0.5 font-mono text-[10px] text-white/80 ${r}`,"data-testid":`remote-desktop-stats-overlay`,children:[Math.round(o.fps),` fps · `,Math.round(o.kbps),` KB/s · `,o.width,`×`,o.height]}):null}function D(){let{caps:e}=s(!1),t=e?.displays??[],[n,r]=(0,p.useState)(void 0),i=t.find(e=>e.id===n)??t.find(e=>e.primary)??t[0];return{displays:t,displayId:n,current:i,select:r,next:(0,p.useCallback)(()=>{t.length<2||r(t[(t.findIndex(e=>e.id===i?.id)+1)%t.length]?.id)},[t,i])}}export{x as a,c,b as i,E as n,_ as o,y as r,l as s,D as t};
@@ -1 +1 @@
1
- import{o as e}from"./rolldown-runtime-FhOqtrmT.js";import{S as t}from"./vendor-markdown-Ls5AcU91.js";var n=e(t(),1),r=120;function i(e){let t=Math.max(0,window.innerHeight-e.height-e.offsetTop);return{height:e.height,keyboardInset:t,keyboardOpen:t>=r}}function a(e){let[t,r]=(0,n.useState)(null);return(0,n.useEffect)(()=>{let t=window.visualViewport;if(!e||!t){r(null);return}let n=null,a=()=>{n=null,r(e=>{let n=i(t);return e&&e.height===n.height&&e.keyboardInset===n.keyboardInset?e:n})},o=()=>{n===null&&(n=requestAnimationFrame(a))};return a(),t.addEventListener(`resize`,o),t.addEventListener(`scroll`,o),()=>{n!==null&&cancelAnimationFrame(n),t.removeEventListener(`resize`,o),t.removeEventListener(`scroll`,o)}},[e]),t}export{a as t};
1
+ import{o as e}from"./rolldown-runtime-FhOqtrmT.js";import{C as t}from"./vendor-markdown-CuWCHIVb.js";var n=e(t(),1),r=120;function i(e){let t=Math.max(0,window.innerHeight-e.height-e.offsetTop);return{height:e.height,keyboardInset:t,keyboardOpen:t>=r}}function a(e){let[t,r]=(0,n.useState)(null);return(0,n.useEffect)(()=>{let t=window.visualViewport;if(!e||!t){r(null);return}let n=null,a=()=>{n=null,r(e=>{let n=i(t);return e&&e.height===n.height&&e.keyboardInset===n.keyboardInset?e:n})},o=()=>{n===null&&(n=requestAnimationFrame(a))};return a(),t.addEventListener(`resize`,o),t.addEventListener(`scroll`,o),()=>{n!==null&&cancelAnimationFrame(n),t.removeEventListener(`resize`,o),t.removeEventListener(`scroll`,o)}},[e]),t}export{a as t};
@@ -1 +1 @@
1
- import{o as e}from"./rolldown-runtime-FhOqtrmT.js";import{S as t}from"./vendor-markdown-Ls5AcU91.js";import{i as n}from"./index-A3ripVe5.js";var r=e(t(),1);function i({url:e,onMessage:t,autoConnect:i=!0,idleTimeoutMs:a,onConnectionChange:o}){let s=(0,r.useRef)(null),c=(0,r.useRef)(t),l=(0,r.useRef)(o);return c.current=t,l.current=o,(0,r.useEffect)(()=>{let t=!0,r=new n(e,{idleTimeoutMs:a,onConnectionChange:e=>{t&&l.current?.(e)}});return s.current=r,r.onMessage(e=>c.current?.(e)),i&&r.connect(),()=>{t=!1,r.disconnect(),s.current=null}},[e,i,a]),{send:(0,r.useCallback)(e=>{s.current?.send(e)},[]),connect:(0,r.useCallback)(()=>{s.current?.connect()},[]),disconnect:(0,r.useCallback)(()=>{s.current?.disconnect()},[])}}export{i as t};
1
+ import{o as e}from"./rolldown-runtime-FhOqtrmT.js";import{C as t}from"./vendor-markdown-CuWCHIVb.js";import{i as n}from"./index-BV_sFdHY.js";var r=e(t(),1);function i({url:e,onMessage:t,autoConnect:i=!0,idleTimeoutMs:a,onConnectionChange:o}){let s=(0,r.useRef)(null),c=(0,r.useRef)(t),l=(0,r.useRef)(o);return c.current=t,l.current=o,(0,r.useEffect)(()=>{let t=!0,r=new n(e,{idleTimeoutMs:a,onConnectionChange:e=>{t&&l.current?.(e)}});return s.current=r,r.onMessage(e=>c.current?.(e)),i&&r.connect(),()=>{t=!1,r.disconnect(),s.current=null}},[e,i,a]),{send:(0,r.useCallback)(e=>{s.current?.send(e)},[]),connect:(0,r.useCallback)(()=>{s.current?.connect()},[]),disconnect:(0,r.useCallback)(()=>{s.current?.disconnect()},[])}}export{i as t};