@marimo-team/islands 0.24.3-dev2 → 0.24.3-dev22

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 (284) hide show
  1. package/dist/{ConnectedDataExplorerComponent-qIKbwYin.js → ConnectedDataExplorerComponent-BLO7UDpo.js} +18 -18
  2. package/dist/{ErrorBoundary-CR-ZQN_c.js → ErrorBoundary-B7uSdDUm.js} +6 -6
  3. package/dist/{ImageComparisonComponent-2a9TMMm2.js → ImageComparisonComponent-RspMflu6.js} +3 -3
  4. package/dist/{Plot-C-9MQeGP.js → Plot-CTyjbQDT.js} +21032 -20666
  5. package/dist/_baseMerge-Bnytch8P.js +165 -0
  6. package/dist/{abnfDiagram-N423BO3Z-CQKwzX8t.js → abnfDiagram-VCTEODGH-DCb2K_RB.js} +17 -18
  7. package/dist/{any-language-editor-CpTnK43-.js → any-language-editor-C0dftc2Z.js} +8 -8
  8. package/dist/arc-7ra3iNdN.js +81 -0
  9. package/dist/architecture-7GRP2DOG-BWLylgiA.js +3 -0
  10. package/dist/{architectureDiagram-T3A2C74G-CncrDpfa.js → architectureDiagram-5GKGNRK7-Bb_n642s.js} +25 -25
  11. package/dist/assets/__vite-browser-external-BajL8aoc.js +1 -0
  12. package/dist/assets/worker-BemUy60C.js +109 -0
  13. package/dist/blockDiagram-I7D4REHJ-BbXEXJRu.js +1922 -0
  14. package/dist/{button-CKBkqR9J.js → button-DdXAm8iz.js} +5 -5
  15. package/dist/{c4Diagram-5PPSVZJV-DarUk3Yq.js → c4Diagram-7LVT6UL2-DcLsbQmR.js} +696 -668
  16. package/dist/{capabilities-CMBBJTcc.js → capabilities-B3ce_GNu.js} +1 -1
  17. package/dist/{channel-CyiYUzJv.js → channel-B5XnTarr.js} +1 -1
  18. package/dist/chat-ui-Cn1TFk66.js +5835 -0
  19. package/dist/{check-CHig47QV.js → check-mcQyZmFG.js} +1 -1
  20. package/dist/{chunk-2Q5K7J3B-BMuJl2jB.js → chunk-2Q5K7J3B-BMkUkeuy.js} +2 -2
  21. package/dist/chunk-4HAMMTFA-D2qv8E0X.js +4188 -0
  22. package/dist/{chunk-5VM5RSS4-Bcq0ftdy.js → chunk-5VM5RSS4-DKsmPCL6.js} +2 -2
  23. package/dist/{chunk-NSK5VX7P-CDTMcJB0.js → chunk-75Z2AOVW-5_HsvXwr.js} +23 -23
  24. package/dist/{chunk-I66GZJ75-BqyTCAPf.js → chunk-DU6HZSFF-BUgAHvnM.js} +21 -4
  25. package/dist/{chunk-2GRJ4B5K-DgO8Qudq.js → chunk-F27PBJKO-DHmYWZXr.js} +4 -4
  26. package/dist/{chunk-KEIR6QF5-C4KX3XYh.js → chunk-FOHPRMQF-BpYR8RqP.js} +4 -4
  27. package/dist/{chunk-WRU74C26-BpWsbiDK.js → chunk-GMAD6QVW-Czynz8aA.js} +486 -258
  28. package/dist/chunk-GVQU2GXP-yQEdulRS.js +37 -0
  29. package/dist/{chunk-5RXB4S5H-tLNUVDdO.js → chunk-IMKFNOWR-Du9BN2Ul.js} +11 -11
  30. package/dist/{chunk-JWPE2WC7-BJwjGUnF.js → chunk-JWPE2WC7-DJvv1t8U.js} +2 -2
  31. package/dist/chunk-L3NEJ4N5-DwRWnDDK.js +245 -0
  32. package/dist/{chunk-7Z6QIM7H-Dc18hFxH.js → chunk-OSK3NFVY-BBKU_Ign.js} +222 -144
  33. package/dist/{chunk-W5SLKNZC-DLnvpEtV.js → chunk-P2QGCYS3-C0iGU29N.js} +20 -20
  34. package/dist/{chunk-KBJHAD2P-BuqWqkcW.js → chunk-POPQ4Y6H-BCbS3Ozc.js} +4 -4
  35. package/dist/{chunk-4I5QYGJK-DpytHuZQ.js → chunk-PWAF6VOD-CTFCL0jI.js} +4 -4
  36. package/dist/{chunk-JQJVKLGR-CgqCwe8E.js → chunk-SHT3W25Y-tUelricH.js} +109 -63
  37. package/dist/{chunk-6Q2QTUOP-DmTcEBMn.js → chunk-SVP7TREG-DK3egkfQ.js} +5 -5
  38. package/dist/{chunk-GF5L2VYU-B0wgCQgS.js → chunk-TICWLB2K-DRANTdnp.js} +13 -13
  39. package/dist/{chunk-XXDRQBXY-D73H4IN0.js → chunk-XXDRQBXY-Dnl5VBqG.js} +3 -3
  40. package/dist/{chunk-Y2CYZVJY-DoegUj_e.js → chunk-Y2CYZVJY-DKKS1VyV.js} +1 -1
  41. package/dist/{chunk-5FQGJX7Z-B85XCPv6.js → chunk-YOKDWASO-DrWbKnxA.js} +6925 -5460
  42. package/dist/classDiagram-ZZMXUADV-7wCSVH7o.js +30 -0
  43. package/dist/classDiagram-v2-VYDZK3BY-QwnvcnhB.js +30 -0
  44. package/dist/{common-C4UahYwr.js → common-DIyUaEO6.js} +7398 -6912
  45. package/dist/{compiler-runtime-CAH9RLw2.js → compiler-runtime-Cj8ZWiNS.js} +2 -2
  46. package/dist/{copy-CD7S58CY.js → copy-C0N4m1lm.js} +4 -4
  47. package/dist/{cose-bilkent-JH36ORCC-FUWHkXFX.js → cose-bilkent-JH36ORCC-_LyRKVqm.js} +2 -2
  48. package/dist/cubic-OaEBhQPK.js +1404 -0
  49. package/dist/cynefin-OW5HDTMX-obq-i80l.js +3 -0
  50. package/dist/{cynefinDiagram-MW4NZA55-BXSFK93J.js → cynefinDiagram-5FMLGOSQ-CB7O4IZB.js} +10 -10
  51. package/dist/{dagre-CGyalH38.js → dagre-DfYd3btw.js} +678 -537
  52. package/dist/dagre-GXQ25YYZ-C-a95ISW.js +425 -0
  53. package/dist/{data-grid-overlay-editor-DZM4BAaI.js → data-grid-overlay-editor-C5eUZVTo.js} +8 -9
  54. package/dist/{data-grid-types-BnZwWG8z.js → data-grid-types-BucVmDDp.js} +1 -1
  55. package/dist/{defaultLocale-DKaU_opG.js → defaultLocale-JI_lnoCe.js} +1 -1
  56. package/dist/{diagram-7IWD3JNH-BjfzDNvj.js → diagram-S7CK7UJ4-BsKLYQaH.js} +40 -39
  57. package/dist/{diagram-UB23O5K3-DDg-7wLA.js → diagram-UQ7AKVKN-ppYdvuTN.js} +10 -10
  58. package/dist/{diagram-B4RE2ZJO-CKccR9eE.js → diagram-VSXAHHWV-BKpmG23x.js} +10 -10
  59. package/dist/{diagram-Q27KOJAE-Zhz01ss7.js → diagram-VX7I27RA-CAMK2l0E.js} +21 -21
  60. package/dist/{diagram-LBJQPF4R-CJ-bOruh.js → diagram-Z3DM3KII-CxQ7MggT.js} +10 -10
  61. package/dist/{dist-dAqZAPcF.js → dist-1HDa70oE.js} +3 -3
  62. package/dist/{dist-3_o3T78I.js → dist-6ChWbo8z.js} +13 -13
  63. package/dist/{dist-Re9sOPOx.js → dist-9x1ZRe-e.js} +2 -2
  64. package/dist/{dist-DEeLqRlU.js → dist-B1vYLK28.js} +1 -1
  65. package/dist/{dist-C5Bn52W4.js → dist-B8D7McG3.js} +3 -3
  66. package/dist/{dist-_XvgytiS.js → dist-BHCHt1NI.js} +1 -1
  67. package/dist/{dist-CRjAdnqF.js → dist-BRxfaJgs.js} +3 -3
  68. package/dist/{dist-Byj2bV8o.js → dist-BVGtK7Ht.js} +1 -1
  69. package/dist/{dist-BIN5LKyE.js → dist-BaHjhkpZ.js} +2 -2
  70. package/dist/{dist-DVFbIwc5.js → dist-BtKIs9N-.js} +1 -1
  71. package/dist/{dist-BrQGcfQ9.js → dist-C2KzV-vf.js} +2 -2
  72. package/dist/{dist-DJFiGP2k.js → dist-C2wDlYdD.js} +2 -2
  73. package/dist/{dist-BVRM2y1P.js → dist-C8xMLVYi.js} +2 -2
  74. package/dist/dist-CMh_W4y4.js +538 -0
  75. package/dist/{dist-BzN60Z2s.js → dist-CPGxfVGX.js} +1 -1
  76. package/dist/{dist-C7v-9nUK.js → dist-Cm3iAFMD.js} +3 -3
  77. package/dist/{dist-CGAxEiaM.js → dist-Cs2FijYk.js} +2 -2
  78. package/dist/{dist-hXd65f0_.js → dist-D1PpnuZB.js} +1 -1
  79. package/dist/{dist-VdvbxG72.js → dist-DHOTQar0.js} +1 -1
  80. package/dist/{dist-DcgzXCfy.js → dist-DPcEtqmG.js} +2 -2
  81. package/dist/{dist-D4Z_qdP4.js → dist-Df0wKI0F.js} +1 -1
  82. package/dist/{dist-qhLI-SHd.js → dist-DszxuxS1.js} +2 -2
  83. package/dist/{dist-BEmkrGoQ.js → dist-Kxgjxakw.js} +1 -1
  84. package/dist/{dist-BbSMhhD2.js → dist-KzZ7WELx.js} +2 -2
  85. package/dist/{dist-jWUab2d1.js → dist-lA1Cttkb.js} +1 -1
  86. package/dist/{dropdown-menu-DhCfcscX.js → dropdown-menu-C73aTomr.js} +184 -184
  87. package/dist/{ebnfDiagram-BXEA7PRR-Dm75pCAS.js → ebnfDiagram-PWID7BFC-DzybELvk.js} +17 -18
  88. package/dist/{erDiagram-JOGREHBK-rVDG3VSQ.js → erDiagram-RLTQ6QDP-BVxV97ld.js} +1037 -798
  89. package/dist/{error-banner-WDhUzJyg.js → error-banner-hCaH06e3.js} +207 -207
  90. package/dist/{esm-CR1nhb1c.js → esm-BElI3qKH.js} +22 -22
  91. package/dist/{esm-C1d0g6Bv.js → esm-G4Fhsgng.js} +51 -37
  92. package/dist/{esm-CesmlDrs.js → esm-blALgIVy.js} +332 -319
  93. package/dist/eventmodeling-NTZA5JFV-D7nP7Uyu.js +3 -0
  94. package/dist/{extends-BPB6_lTK.js → extends-Do6pRuJa.js} +8 -8
  95. package/dist/flowDiagram-HODETNUW-BKvXsWYX.js +16 -0
  96. package/dist/{formats-CJMVUfb3.js → formats-vDAoRpYs.js} +8 -8
  97. package/dist/{ganttDiagram-PKOTCBZU-9D-LXF6P.js → ganttDiagram-EL5Y4UJY-DbzEBLbl.js} +15 -15
  98. package/dist/gitGraph-4MIJSDKK-Dy9uQXGh.js +3 -0
  99. package/dist/{gitGraphDiagram-DS77QQ5N-BfpsXTLf.js → gitGraphDiagram-WWUBYQGX-BMf0iKi1.js} +10 -10
  100. package/dist/{glide-data-editor-sPZ8fUFn.js → glide-data-editor-Bcy8iaZa.js} +2785 -2562
  101. package/dist/{glide-utils-NShAPPtn.js → glide-utils-BMnFm0vZ.js} +4 -4
  102. package/dist/highlighted-body-KPVGNVTW-Ad3MKZ18.js +38 -0
  103. package/dist/{html-to-image-BTYnN4ev.js → html-to-image-CSU-_5BI.js} +5716 -5451
  104. package/dist/info-A6RAGUB7-DKoayiHY.js +3 -0
  105. package/dist/{infoDiagram-6WML65LV-DqCTXHVy.js → infoDiagram-27XIBGKW-B_ucqo-U.js} +7 -7
  106. package/dist/{ishikawaDiagram-WSZJBQD7-BCUYmZ1v.js → ishikawaDiagram-5VMMS53U-BZFx9b-o.js} +8 -8
  107. package/dist/{journeyDiagram-NVQOT4AX-BXB6M4zN.js → journeyDiagram-3NMN7TZE-D2LcKDUO.js} +8 -8
  108. package/dist/{jsx-runtime-CpoKNRgu.js → jsx-runtime-DgDPJV9S.js} +1 -1
  109. package/dist/{kanban-definition-27J2QSJJ-CGRhrDUX.js → kanban-definition-UXKFOSKX-BpIfcu3G.js} +29 -29
  110. package/dist/katex-DFBiSucW.js +21840 -0
  111. package/dist/{label-lwzzBHUW.js → label-e37ixur5.js} +6 -6
  112. package/dist/{linear-D5r_1YqD.js → linear-Cnaq3Tfb.js} +4 -4
  113. package/dist/{loader-VZ__bv4g.js → loader-D2W4oM-3.js} +15 -15
  114. package/dist/main.js +7018 -12382
  115. package/dist/mermaid-B1Jb9HfY.js +3084 -0
  116. package/dist/mermaid-HWGCJPDP-DYCzSILp.js +2 -0
  117. package/dist/mermaid-parser.core-DxuSfYwJ.js +638 -0
  118. package/dist/{mhchem-BjwrxcV-.js → mhchem-DWCF06w9.js} +1 -1
  119. package/dist/{micromark-factory-space-DruVGzeG.js → micromark-factory-space-DGxAzmw8.js} +2 -2
  120. package/dist/{mindmap-definition-FAOFIHXS-C9gRhzZq.js → mindmap-definition-YA3MSWOX-CmpAfv8K.js} +17 -17
  121. package/dist/{node-sql-parser-DesT1xNw.js → node-sql-parser-BiZOJ-FS.js} +0 -3
  122. package/dist/{number-overlay-editor-De2CabLL.js → number-overlay-editor-CFofZaOi.js} +5 -5
  123. package/dist/packet-AYTQ26CC-Yw7ajchJ.js +3 -0
  124. package/dist/{pegDiagram-VL7TDLO6-Df9IUjMD.js → pegDiagram-XKGWAZYB-DO-0Q8SE.js} +19 -20
  125. package/dist/{pick-SnHlmIBN.js → pick-B7vX8zxG.js} +1 -1
  126. package/dist/pie-WAS4IAKB-BKdKOAkL.js +3 -0
  127. package/dist/{pieDiagram-7S7Q4E2Y-BmRzQ8ZP.js → pieDiagram-E7YTZNPT-B1MbuA_g.js} +29 -31
  128. package/dist/{process-output-CsALk6tp.js → process-output-B6HE2ojm.js} +4 -4
  129. package/dist/purify.es-DgKyQviY.js +805 -0
  130. package/dist/{quadrantDiagram-CIZ2JOQS-wFBvWcxS.js → quadrantDiagram-AXDQQJYC-DftINo6g.js} +5 -5
  131. package/dist/radar-RG4KPBEZ-ScR_D_Ts.js +3 -0
  132. package/dist/railroad-74A4TZTK-DQvPSdo5.js +3 -0
  133. package/dist/railroad-abnf-HS5TGJTU-CsJQG2O8.js +3 -0
  134. package/dist/railroad-ebnf-LZEXJU2U-BgEobkSn.js +3 -0
  135. package/dist/railroad-peg-WCYAUIDC-DjLAjofI.js +3 -0
  136. package/dist/{railroadDiagram-AXF67PYL-DxbIatiN.js → railroadDiagram-O6MQD6OU-DPVOQUXC.js} +17 -18
  137. package/dist/{react-dom-C94wmq5w.js → react-dom-BUgJ-ab_.js} +3 -3
  138. package/dist/{react-DMWcHin-.js → react-ofJbxM4x.js} +2 -2
  139. package/dist/{react-vega-DSD5aT7_.js → react-vega-5AcMW8gG.js} +10012 -9369
  140. package/dist/{requirementDiagram-LRYGKXZP-X_x-Y713.js → requirementDiagram-BXWQKSXE-CC7wZ-tM.js} +20 -19
  141. package/dist/{reveal-component-ChYEzi00.js → reveal-component-GEGc56E6.js} +1171 -1105
  142. package/dist/{sankeyDiagram-W5VNT64P-BYJALbbm.js → sankeyDiagram-P5KCCOFB-CDKR5TJH.js} +4 -4
  143. package/dist/schemas-BDZr-nP0.js +5727 -0
  144. package/dist/{select-3qHpFKF9.js → select-UMOSCa3W.js} +246 -246
  145. package/dist/{sequenceDiagram-SI44F4Z6-BiPBe3Sv.js → sequenceDiagram-WJ2MYXX4-DomSyoJI.js} +11 -11
  146. package/dist/{sizeCapture-X5ZJPWSS-BKLDeh5H.js → sizeCapture-INFHLROL-Dx5SpkQF.js} +2 -2
  147. package/dist/{spec-CutWdqo3.js → spec-g740fOWu.js} +4 -4
  148. package/dist/{src-C31ngt98.js → src-CA_m4ONl.js} +298 -303
  149. package/dist/{stateDiagram-OKZ733FA-B7QyNBxH.js → stateDiagram-D77RDMKH-SQLLjdtF.js} +19 -20
  150. package/dist/stateDiagram-v2-MP3YSRHH-Dup4KkIr.js +30 -0
  151. package/dist/style.css +2 -2
  152. package/dist/{swimlanes-SLNWSIFB-B4f8VP3b.js → swimlanes-42K2YHIH-ZXbhyGv6.js} +1501 -1591
  153. package/dist/swimlanesDiagram-VR7AAH4N-CluwxV0g.js +30 -0
  154. package/dist/{swiper-component-C90YjhaV.js → swiper-component-IOUowglM.js} +39 -26
  155. package/dist/{time-aWGfjN8x.js → time-BieKwdYS.js} +42 -42
  156. package/dist/{timeline-definition-Z64GVDOM-Dacq_5lr.js → timeline-definition-24CTP7MA-B8i6B9RR.js} +7 -7
  157. package/dist/{toDate-D-Rx3ux5.js → toDate-C3JOXlJT.js} +10 -9
  158. package/dist/{tooltip-Dt77sBeT.js → tooltip-CdE8k0pS.js} +42 -42
  159. package/dist/treeView-Q6P3EWNA-DuRV97YF.js +3 -0
  160. package/dist/treemap-WGGIJYW6-AsLq-uwC.js +3 -0
  161. package/dist/{use-vega-container-remeasure-DUW4tRxq.js → use-vega-container-remeasure-4DwJbPWu.js} +2 -2
  162. package/dist/{useAsyncData-CH6-CgJF.js → useAsyncData-C0f7qnnN.js} +3 -3
  163. package/dist/{useDateFormatter-Cp9Jdxls.js → useDateFormatter-BKpQHt-W.js} +8 -8
  164. package/dist/{useDeepCompareMemoize-JC87C_jO.js → useDeepCompareMemoize-QCa0HbWB.js} +2 -2
  165. package/dist/{useIframeCapabilities-De3C-9b4.js → useIframeCapabilities-CVtNkI3Y.js} +2 -2
  166. package/dist/{useLifecycle-B4RGlyf0.js → useLifecycle-BGRBkTFT.js} +6 -6
  167. package/dist/useTheme-iQ0VoptU.js +904 -0
  168. package/dist/{vega-component-D-IXRnlx.js → vega-component-DRI4BDLQ.js} +15 -15
  169. package/dist/{vega-embed-container-TJ5z5dZw.js → vega-embed-container-CbnTccZi.js} +6 -6
  170. package/dist/vega-loader.browser-D95WfUcj.js +1139 -0
  171. package/dist/{vennDiagram-T6HMQDX7-D-Rcq3Iu.js → vennDiagram-4TSXK5OY-CS7lHhxI.js} +9 -9
  172. package/dist/wardley-WFR3VGLG-Na-tFhQJ.js +3 -0
  173. package/dist/{wardleyDiagram-T6FBY63Y-Z-Og7_Wd.js → wardleyDiagram-VM6X3IG4-BSm-L8JI.js} +10 -10
  174. package/dist/{xychartDiagram-ELKLHX3M-BDJ2dITA.js → xychartDiagram-S5SC5T6Z-8fKCJGrJ.js} +248 -139
  175. package/package.json +52 -52
  176. package/src/__mocks__/requests.ts +7 -2
  177. package/src/__tests__/__snapshots__/CellStatus.test.tsx.snap +12 -12
  178. package/src/components/data-table/column-explorer-panel/column-explorer.tsx +2 -6
  179. package/src/components/data-table/column-visibility-dropdown.tsx +9 -3
  180. package/src/components/datasources/components.tsx +4 -2
  181. package/src/components/editor/chrome/components/feedback-button.tsx +10 -9
  182. package/src/components/editor/chrome/panels/__tests__/packages-panel.test.tsx +143 -0
  183. package/src/components/editor/chrome/panels/packages-panel.tsx +145 -51
  184. package/src/components/editor/code/__tests__/readonly-diff.test.tsx +65 -0
  185. package/src/components/editor/code/readonly-diff.tsx +1 -1
  186. package/src/components/editor/file-tree/__tests__/tree-actions.test.tsx +54 -0
  187. package/src/components/editor/file-tree/tree-actions.tsx +11 -14
  188. package/src/components/editor/output/Outputs.css +1 -0
  189. package/src/components/editor/package-alert.tsx +25 -1
  190. package/src/components/home/components.tsx +17 -0
  191. package/src/components/pages/gallery-page.tsx +2 -4
  192. package/src/components/pages/home-page.tsx +2 -4
  193. package/src/components/terminal/terminal.tsx +4 -4
  194. package/src/components/tracing/tracing-spec.ts +1 -1
  195. package/src/components/ui/table.tsx +1 -1
  196. package/src/core/cells/pending-delete-service.ts +12 -16
  197. package/src/core/codemirror/language/__tests__/sql.test.ts +70 -2
  198. package/src/core/codemirror/language/languages/sql/sql.ts +16 -1
  199. package/src/core/codemirror/rtc/extension.ts +5 -2
  200. package/src/core/datasets/__tests__/data-source.test.ts +2 -0
  201. package/src/core/datasets/data-source-connections.ts +15 -10
  202. package/src/core/islands/__tests__/parse.test.ts +140 -7
  203. package/src/core/islands/parse.ts +20 -0
  204. package/src/core/packages/__tests__/useInstallPackage.test.tsx +47 -1
  205. package/src/core/packages/toast-components.tsx +26 -0
  206. package/src/core/packages/useInstallPackage.ts +7 -2
  207. package/src/core/runtime/__tests__/runtime.test.ts +11 -0
  208. package/src/core/runtime/runtime.ts +7 -2
  209. package/src/core/wasm/bridge.ts +1 -0
  210. package/src/core/websocket/transports/transport.ts +1 -1
  211. package/src/core/websocket/transports/ws.ts +1 -1
  212. package/src/css/app/Cell.css +2 -0
  213. package/src/plugins/core/RenderHTML.tsx +22 -2
  214. package/src/plugins/core/__test__/RenderHTML.test.ts +187 -0
  215. package/src/plugins/layout/AccordionPlugin.tsx +7 -2
  216. package/src/plugins/layout/__test__/AccordionPlugin.test.tsx +66 -0
  217. package/dist/_baseMerge-Dv8bBloN.js +0 -73
  218. package/dist/_initCloneObject---vediN2.js +0 -95
  219. package/dist/arc-DOVLrCPd.js +0 -82
  220. package/dist/architecture-TIHT7OUA-MiJpPpQW.js +0 -3
  221. package/dist/array-CApNbSU9.js +0 -6
  222. package/dist/assets/__vite-browser-external-BdKGjRZ4.js +0 -1
  223. package/dist/assets/worker-DlIBfp9S.js +0 -98
  224. package/dist/blockDiagram-VBNYF7ZC-Bc--I65C.js +0 -3158
  225. package/dist/chat-ui-DttQ-5Ut.js +0 -8455
  226. package/dist/chunk-3NCLNEKW-BIp_lB_4.js +0 -14
  227. package/dist/chunk-5FCAYU7R-C_HO9A1J.js +0 -23
  228. package/dist/chunk-5HE753X5-Bixm_MV-.js +0 -38
  229. package/dist/chunk-5JV3BV7I-CH5J3iZY.js +0 -54
  230. package/dist/chunk-5TONJI2A-DG6gDiSS.js +0 -62
  231. package/dist/chunk-7BUUIJ7U-5afmIPeo.js +0 -82
  232. package/dist/chunk-BIQX33UG-7TMBUf89.js +0 -23
  233. package/dist/chunk-CQNSW5MT-Cnqqsxt-.js +0 -38
  234. package/dist/chunk-CYSBUYHQ-BAbymFHR.js +0 -23
  235. package/dist/chunk-EMLP6XTP-Bsz-QL77.js +0 -23
  236. package/dist/chunk-J7OUQ5F2-CM_meqZH.js +0 -57
  237. package/dist/chunk-JG7HCLWE-DUnCDgPk.js +0 -62
  238. package/dist/chunk-MOZMSUNE-BG6IHvzT.js +0 -35
  239. package/dist/chunk-OSBZ3O6U-CYwj_bvR.js +0 -23
  240. package/dist/chunk-QBLGF6JB-B4vJ4j8J.js +0 -23
  241. package/dist/chunk-QR6OTTB3-D4wH2ldi.js +0 -3738
  242. package/dist/chunk-R7FJI6CG-Blf8FcmZ.js +0 -64
  243. package/dist/chunk-RYQCIY6F-BWbIlBIH.js +0 -241
  244. package/dist/chunk-U6XO7XAA-COw445DS.js +0 -63
  245. package/dist/chunk-UBXNYLIW-BHigVU4H.js +0 -32
  246. package/dist/chunk-YOTPTUD7-Dn044Q_d.js +0 -30
  247. package/dist/chunk-ZIRB5QZD-BR4TMfOa.js +0 -1153
  248. package/dist/classDiagram-JCYQIIEL-DmXSLxe_.js +0 -30
  249. package/dist/classDiagram-v2-OCEON4UE-CooqVexA.js +0 -30
  250. package/dist/click-outside-container-D_URcm3D.js +0 -167
  251. package/dist/code-block-37QAKDTI-CQrzBOr-.js +0 -107
  252. package/dist/cynefin-VYW2F7L2-CeHAxOEX.js +0 -3
  253. package/dist/dagre-VZM6K2ZE-CJggWPTJ.js +0 -328
  254. package/dist/dist-ABQjhuek.js +0 -64
  255. package/dist/dist-CO5R6VMi.js +0 -538
  256. package/dist/eventmodeling-45OFAUF4-B_lWZ-Pd.js +0 -3
  257. package/dist/flowDiagram-UKHOOZJN-g1AmrZzM.js +0 -17
  258. package/dist/gitGraph-TEB2WS4Q-Dj-eXUph.js +0 -3
  259. package/dist/info-DKCQHKI2-Bhb-pe2e.js +0 -3
  260. package/dist/line-CuKjIQa1.js +0 -34
  261. package/dist/map-BJpOfPlL.js +0 -149
  262. package/dist/math-BXtKgYah.js +0 -10
  263. package/dist/mermaid-4DMBBIKO-Ddp9TgNp.js +0 -2
  264. package/dist/mermaid-BsHdQeQf.js +0 -1173
  265. package/dist/mermaid-parser.core-Din9FvSi.js +0 -99
  266. package/dist/packet-7NZHBO7P-fbkIIyKE.js +0 -3
  267. package/dist/path-BNHuHZP8.js +0 -87
  268. package/dist/pie-RZYD4A2V-CLRIsxY1.js +0 -3
  269. package/dist/purify.es-CB-YO1Hn.js +0 -774
  270. package/dist/radar-I7S5WNFK-BGzCbgXu.js +0 -3
  271. package/dist/railroad-3IZDKUUU-CvQIIcuU.js +0 -3
  272. package/dist/railroad-abnf-AHOZXSZD-CMwtlNtu.js +0 -3
  273. package/dist/railroad-ebnf-EBAXGLYW-n1QUOAsh.js +0 -3
  274. package/dist/railroad-peg-LSFZ7HO6-PjnrpmCs.js +0 -3
  275. package/dist/schemas-DzK6U94N.js +0 -6057
  276. package/dist/stateDiagram-v2-UEYNNEHI-BTRUs8Il.js +0 -30
  277. package/dist/step-CKczO72Q.js +0 -670
  278. package/dist/swimlanesDiagram-ULZ7WXOC-NBmgBl9G.js +0 -31
  279. package/dist/timer-DpDyj9G0.js +0 -596
  280. package/dist/treeView-QDETBFTQ-DU8LwHuf.js +0 -3
  281. package/dist/treemap-6X3UGDF4-DUk4-k_O.js +0 -3
  282. package/dist/useTheme-CVJ0UOf2.js +0 -841
  283. package/dist/vega-loader.browser-DEggZzni.js +0 -1083
  284. package/dist/wardley-OPB4EBWU-Db-AaGas.js +0 -3
@@ -1,24 +1,24 @@
1
1
  import { a as e } from "./rolldown-runtime-Cb76FRpK.js";
2
- import { t } from "./react-DMWcHin-.js";
3
- import { t as n } from "./jsx-runtime-CpoKNRgu.js";
4
- import { l as r, o as i, r as a, s as o, t as s, u as c } from "./extends-BPB6_lTK.js";
5
- import { $ as l, At as u, C as d, Ct as f, Dt as p, F as m, Ft as h, Gt as g, H as _, Ht as v, Kt as y, Lt as b, Nt as x, Rt as S, Ut as C, Vt as ee, Z as w, _t as T, a as E, at as D, bt as O, dt as k, ft as A, g as j, ht as M, it as te, j as N, jt as ne, k as re, kt as P, mt as F, ot as ie, p as ae, st as oe, tt as se, ut as ce, vt as le, wt as ue, x as de, xt as fe, yt as pe } from "./dist-BEmkrGoQ.js";
6
- import { a as me, c as he, i as ge, r as _e } from "./dist-DEeLqRlU.js";
2
+ import { t } from "./react-ofJbxM4x.js";
3
+ import { t as n } from "./jsx-runtime-DgDPJV9S.js";
4
+ import { l as r, o as i, r as a, s as o, t as s, u as c } from "./extends-Do6pRuJa.js";
5
+ import { $ as l, At as u, C as d, Ct as f, Dt as p, F as m, Ft as h, Gt as g, H as _, Ht as v, Kt as ee, Lt as y, Nt as b, Rt as te, Ut as x, Vt as ne, Z as S, _t as C, a as re, at as w, bt as ie, dt as T, ft as E, g as D, ht as O, it as k, j as A, jt as j, k as ae, kt as M, mt as N, ot as P, p as oe, st as se, tt as F, ut as I, vt as ce, wt as L, x as R, xt as z, yt as B } from "./dist-Kxgjxakw.js";
6
+ import { a as le, c as ue, i as de, r as V } from "./dist-B1vYLK28.js";
7
7
  //#region ../node_modules/.pnpm/@codemirror+search@6.7.1/node_modules/@codemirror/search/dist/index.js
8
- var I = /* @__PURE__ */ e(t()), ve = typeof String.prototype.normalize == "function" ? (e) => e.normalize("NFKD") : (e) => e, L = class {
8
+ var H = /* @__PURE__ */ e(t()), fe = typeof String.prototype.normalize == "function" ? (e) => e.normalize("NFKD") : (e) => e, U = class {
9
9
  constructor(e, t, n = 0, r = e.length, i, a) {
10
10
  this.test = a, this.value = {
11
11
  from: 0,
12
12
  to: 0,
13
13
  precise: !1
14
- }, this.done = !1, this.matches = [], this.buffer = "", this.bufferPos = 0, this.iter = e.iterRange(n, r), this.bufferStart = n, this.normalize = i ? (e) => i(ve(e)) : ve, this.query = this.normalize(t);
14
+ }, this.done = !1, this.matches = [], this.buffer = "", this.bufferPos = 0, this.iter = e.iterRange(n, r), this.bufferStart = n, this.normalize = i ? (e) => i(fe(e)) : fe, this.query = this.normalize(t);
15
15
  }
16
16
  peek() {
17
17
  if (this.bufferPos == this.buffer.length) {
18
18
  if (this.bufferStart += this.buffer.length, this.iter.next(), this.iter.done) return -1;
19
19
  this.bufferPos = 0, this.buffer = this.iter.value;
20
20
  }
21
- return ee(this.buffer, this.bufferPos);
21
+ return ne(this.buffer, this.bufferPos);
22
22
  }
23
23
  next() {
24
24
  for (; this.matches.length;) this.matches.pop();
@@ -28,7 +28,7 @@ var I = /* @__PURE__ */ e(t()), ve = typeof String.prototype.normalize == "funct
28
28
  for (;;) {
29
29
  let e = this.peek();
30
30
  if (e < 0) return this.done = !0, this;
31
- let t = y(e), n = this.bufferStart + this.bufferPos;
31
+ let t = ee(e), n = this.bufferStart + this.bufferPos;
32
32
  this.bufferPos += v(e);
33
33
  let r = this.normalize(t);
34
34
  if (r.length) for (let e = 0, i = n, a = !0;; e++) {
@@ -60,20 +60,20 @@ var I = /* @__PURE__ */ e(t()), ve = typeof String.prototype.normalize == "funct
60
60
  })), a && this.test && !this.test(a.from, a.to, this.buffer, this.bufferStart) && (a = null), a;
61
61
  }
62
62
  };
63
- typeof Symbol < "u" && (L.prototype[Symbol.iterator] = function() {
63
+ typeof Symbol < "u" && (U.prototype[Symbol.iterator] = function() {
64
64
  return this;
65
65
  });
66
- var ye = {
66
+ var pe = {
67
67
  from: -1,
68
68
  to: -1,
69
69
  match: /*@__PURE__*/ /.*/.exec(""),
70
70
  precise: !0
71
- }, R = "gm" + (/x/.unicode == null ? "" : "u"), be = class {
71
+ }, me = "gm" + (/x/.unicode == null ? "" : "u"), he = class {
72
72
  constructor(e, t, n, r = 0, i = e.length) {
73
- if (this.text = e, this.to = i, this.curLine = "", this.done = !1, this.value = ye, /\\[sWDnr]|\n|\r|\[\^/.test(t)) return new Ce(e, t, n, r, i);
74
- this.re = new RegExp(t, R + (n?.ignoreCase ? "i" : "")), this.test = n?.test, this.iter = e.iter();
73
+ if (this.text = e, this.to = i, this.curLine = "", this.done = !1, this.value = pe, /\\[sWDnr]|\n|\r|\[\^/.test(t)) return new ve(e, t, n, r, i);
74
+ this.re = new RegExp(t, me + (n?.ignoreCase ? "i" : "")), this.test = n?.test, this.iter = e.iter();
75
75
  let a = e.lineAt(r);
76
- this.curLineStart = a.from, this.matchPos = z(e, r), this.getLine(this.curLineStart);
76
+ this.curLineStart = a.from, this.matchPos = W(e, r), this.getLine(this.curLineStart);
77
77
  }
78
78
  getLine(e) {
79
79
  this.iter.next(e), this.iter.lineBreak ? this.curLine = "" : (this.curLine = this.iter.value, this.curLineStart + this.curLine.length > this.to && (this.curLine = this.curLine.slice(0, this.to - this.curLineStart)), this.iter.next());
@@ -87,7 +87,7 @@ var ye = {
87
87
  let t = this.matchPos <= this.to && this.re.exec(this.curLine);
88
88
  if (t) {
89
89
  let n = this.curLineStart + t.index, r = n + t[0].length;
90
- if (this.matchPos = z(this.text, r + +(n == r)), n == this.curLineStart + this.curLine.length && this.nextLine(), (n < r || n > this.value.to) && (!this.test || this.test(n, r, t))) return this.value = {
90
+ if (this.matchPos = W(this.text, r + +(n == r)), n == this.curLineStart + this.curLine.length && this.nextLine(), (n < r || n > this.value.to) && (!this.test || this.test(n, r, t))) return this.value = {
91
91
  from: n,
92
92
  to: r,
93
93
  precise: !0,
@@ -98,7 +98,7 @@ var ye = {
98
98
  else return this.done = !0, this;
99
99
  }
100
100
  }
101
- }, xe = /*@__PURE__*/ new WeakMap(), Se = class e {
101
+ }, ge = /*@__PURE__*/ new WeakMap(), _e = class e {
102
102
  constructor(e, t) {
103
103
  this.from = e, this.text = t;
104
104
  }
@@ -106,18 +106,18 @@ var ye = {
106
106
  return this.from + this.text.length;
107
107
  }
108
108
  static get(t, n, r) {
109
- let i = xe.get(t);
109
+ let i = ge.get(t);
110
110
  if (!i || i.from >= r || i.to <= n) {
111
111
  let i = new e(n, t.sliceString(n, r));
112
- return xe.set(t, i), i;
112
+ return ge.set(t, i), i;
113
113
  }
114
114
  if (i.from == n && i.to == r) return i;
115
115
  let { text: a, from: o } = i;
116
- return o > n && (a = t.sliceString(n, o) + a, o = n), i.to < r && (a += t.sliceString(i.to, r)), xe.set(t, new e(o, a)), new e(n, a.slice(n - o, r - o));
116
+ return o > n && (a = t.sliceString(n, o) + a, o = n), i.to < r && (a += t.sliceString(i.to, r)), ge.set(t, new e(o, a)), new e(n, a.slice(n - o, r - o));
117
117
  }
118
- }, Ce = class {
118
+ }, ve = class {
119
119
  constructor(e, t, n, r, i) {
120
- this.text = e, this.to = i, this.done = !1, this.value = ye, this.matchPos = z(e, r), this.re = new RegExp(t, R + (n?.ignoreCase ? "i" : "")), this.test = n?.test, this.flat = Se.get(e, r, this.chunkEnd(r + 5e3));
120
+ this.text = e, this.to = i, this.done = !1, this.value = pe, this.matchPos = W(e, r), this.re = new RegExp(t, me + (n?.ignoreCase ? "i" : "")), this.test = n?.test, this.flat = _e.get(e, r, this.chunkEnd(r + 5e3));
121
121
  }
122
122
  chunkEnd(e) {
123
123
  return e >= this.to ? this.to : this.text.lineAt(e).to;
@@ -132,31 +132,31 @@ var ye = {
132
132
  to: n,
133
133
  precise: !0,
134
134
  match: t
135
- }, this.matchPos = z(this.text, n + +(e == n)), this;
135
+ }, this.matchPos = W(this.text, n + +(e == n)), this;
136
136
  }
137
137
  if (this.flat.to == this.to) return this.done = !0, this;
138
- this.flat = Se.get(this.text, this.flat.from, this.chunkEnd(this.flat.from + this.flat.text.length * 2));
138
+ this.flat = _e.get(this.text, this.flat.from, this.chunkEnd(this.flat.from + this.flat.text.length * 2));
139
139
  }
140
140
  }
141
141
  };
142
- typeof Symbol < "u" && (be.prototype[Symbol.iterator] = Ce.prototype[Symbol.iterator] = function() {
142
+ typeof Symbol < "u" && (he.prototype[Symbol.iterator] = ve.prototype[Symbol.iterator] = function() {
143
143
  return this;
144
144
  });
145
- function we(e) {
145
+ function ye(e) {
146
146
  try {
147
- return new RegExp(e, R), !0;
147
+ return new RegExp(e, me), !0;
148
148
  } catch {
149
149
  return !1;
150
150
  }
151
151
  }
152
- function z(e, t) {
152
+ function W(e, t) {
153
153
  if (t >= e.length) return t;
154
154
  let n = e.lineAt(t), r;
155
155
  for (; t < n.to && (r = n.text.charCodeAt(t - n.from)) >= 56320 && r < 57344;) t++;
156
156
  return t;
157
157
  }
158
- var Te = (e) => {
159
- let { state: t } = e, n = String(t.doc.lineAt(e.state.selection.main.head).number), { close: r, result: i } = O(e, {
158
+ var be = (e) => {
159
+ let { state: t } = e, n = String(t.doc.lineAt(e.state.selection.main.head).number), { close: r, result: i } = ie(e, {
160
160
  label: t.phrase("Go to line"),
161
161
  input: {
162
162
  type: "text",
@@ -177,36 +177,36 @@ var Te = (e) => {
177
177
  let e = f / 100;
178
178
  o && (e = e * (o == "-" ? -1 : 1) + a.number / t.doc.lines), f = Math.round(t.doc.lines * e);
179
179
  } else s && o && (f = f * (o == "-" ? -1 : 1) + a.number);
180
- let p = t.doc.line(Math.max(1, Math.min(t.doc.lines, f))), m = P.cursor(p.from + Math.max(0, Math.min(d, p.length)));
180
+ let p = t.doc.line(Math.max(1, Math.min(t.doc.lines, f))), m = M.cursor(p.from + Math.max(0, Math.min(d, p.length)));
181
181
  e.dispatch({
182
182
  effects: [r, l.scrollIntoView(m.from, { y: "center" })],
183
183
  selection: m
184
184
  });
185
185
  }), !0;
186
- }, Ee = {
186
+ }, xe = {
187
187
  highlightWordAroundCursor: !1,
188
188
  minSelectionLength: 1,
189
189
  maxMatches: 100,
190
190
  wholeWords: !1
191
- }, De = /*@__PURE__*/ ne.define({ combine(e) {
192
- return C(e, Ee, {
191
+ }, Se = /*@__PURE__*/ j.define({ combine(e) {
192
+ return x(e, xe, {
193
193
  highlightWordAroundCursor: (e, t) => e || t,
194
194
  minSelectionLength: Math.min,
195
195
  maxMatches: Math.min
196
196
  });
197
197
  } });
198
- function Oe(e) {
199
- let t = [Pe, Ne];
200
- return e && t.push(De.of(e)), t;
198
+ function Ce(e) {
199
+ let t = [ke, Oe];
200
+ return e && t.push(Se.of(e)), t;
201
201
  }
202
- var ke = /*@__PURE__*/ w.mark({ class: "cm-selectionMatch" }), Ae = /*@__PURE__*/ w.mark({ class: "cm-selectionMatch cm-selectionMatch-main" });
203
- function je(e, t, n, r) {
202
+ var we = /*@__PURE__*/ S.mark({ class: "cm-selectionMatch" }), Te = /*@__PURE__*/ S.mark({ class: "cm-selectionMatch cm-selectionMatch-main" });
203
+ function Ee(e, t, n, r) {
204
204
  return (n == 0 || e(t.sliceDoc(n - 1, n)) != p.Word) && (r == t.doc.length || e(t.sliceDoc(r, r + 1)) != p.Word);
205
205
  }
206
- function Me(e, t, n, r) {
206
+ function De(e, t, n, r) {
207
207
  return e(t.sliceDoc(n, n + 1)) == p.Word && e(t.sliceDoc(r - 1, r)) == p.Word;
208
208
  }
209
- var Ne = /*@__PURE__*/ se.fromClass(class {
209
+ var Oe = /*@__PURE__*/ F.fromClass(class {
210
210
  constructor(e) {
211
211
  this.decorations = this.getDeco(e);
212
212
  }
@@ -214,43 +214,43 @@ var Ne = /*@__PURE__*/ se.fromClass(class {
214
214
  (e.selectionSet || e.docChanged || e.viewportChanged) && (this.decorations = this.getDeco(e.view));
215
215
  }
216
216
  getDeco(e) {
217
- let t = e.state.facet(De), { state: n } = e, r = n.selection;
218
- if (r.ranges.length > 1) return w.none;
217
+ let t = e.state.facet(Se), { state: n } = e, r = n.selection;
218
+ if (r.ranges.length > 1) return S.none;
219
219
  let i = r.main, a, o = null;
220
220
  if (i.empty) {
221
- if (!t.highlightWordAroundCursor) return w.none;
221
+ if (!t.highlightWordAroundCursor) return S.none;
222
222
  let e = n.wordAt(i.head);
223
- if (!e) return w.none;
223
+ if (!e) return S.none;
224
224
  o = n.charCategorizer(i.head), a = n.sliceDoc(e.from, e.to);
225
225
  } else {
226
226
  let e = i.to - i.from;
227
- if (e < t.minSelectionLength || e > 200) return w.none;
227
+ if (e < t.minSelectionLength || e > 200) return S.none;
228
228
  if (t.wholeWords) {
229
- if (a = n.sliceDoc(i.from, i.to), o = n.charCategorizer(i.head), !(je(o, n, i.from, i.to) && Me(o, n, i.from, i.to))) return w.none;
230
- } else if (a = n.sliceDoc(i.from, i.to), !a) return w.none;
229
+ if (a = n.sliceDoc(i.from, i.to), o = n.charCategorizer(i.head), !(Ee(o, n, i.from, i.to) && De(o, n, i.from, i.to))) return S.none;
230
+ } else if (a = n.sliceDoc(i.from, i.to), !a) return S.none;
231
231
  }
232
232
  let s = [];
233
233
  for (let r of e.visibleRanges) {
234
- let e = new L(n.doc, a, r.from, r.to);
234
+ let e = new U(n.doc, a, r.from, r.to);
235
235
  for (; !e.next().done;) {
236
236
  let { from: r, to: a } = e.value;
237
- if ((!o || je(o, n, r, a)) && (i.empty && r <= i.from && a >= i.to ? s.push(Ae.range(r, a)) : (r >= i.to || a <= i.from) && s.push(ke.range(r, a)), s.length > t.maxMatches)) return w.none;
237
+ if ((!o || Ee(o, n, r, a)) && (i.empty && r <= i.from && a >= i.to ? s.push(Te.range(r, a)) : (r >= i.to || a <= i.from) && s.push(we.range(r, a)), s.length > t.maxMatches)) return S.none;
238
238
  }
239
239
  }
240
- return w.set(s);
240
+ return S.set(s);
241
241
  }
242
- }, { decorations: (e) => e.decorations }), Pe = /*@__PURE__*/ l.baseTheme({
242
+ }, { decorations: (e) => e.decorations }), ke = /*@__PURE__*/ l.baseTheme({
243
243
  ".cm-selectionMatch": { backgroundColor: "#99ff7780" },
244
244
  ".cm-searchMatch .cm-selectionMatch": { backgroundColor: "transparent" }
245
- }), Fe = ({ state: e, dispatch: t }) => {
246
- let { selection: n } = e, r = P.create(n.ranges.map((t) => e.wordAt(t.head) || P.cursor(t.head)), n.mainIndex);
245
+ }), Ae = ({ state: e, dispatch: t }) => {
246
+ let { selection: n } = e, r = M.create(n.ranges.map((t) => e.wordAt(t.head) || M.cursor(t.head)), n.mainIndex);
247
247
  return !r.eq(n) && (t(e.update({ selection: r })), !0);
248
248
  };
249
- function Ie(e, t) {
249
+ function je(e, t) {
250
250
  let { main: n, ranges: r } = e.selection, i = e.wordAt(n.head), a = i && i.from == n.from && i.to == n.to;
251
- for (let n = !1, i = new L(e.doc, t, r[r.length - 1].to);;) if (i.next(), i.done) {
251
+ for (let n = !1, i = new U(e.doc, t, r[r.length - 1].to);;) if (i.next(), i.done) {
252
252
  if (n) return null;
253
- i = new L(e.doc, t, 0, Math.max(0, r[r.length - 1].from - 1)), n = !0;
253
+ i = new U(e.doc, t, 0, Math.max(0, r[r.length - 1].from - 1)), n = !0;
254
254
  } else {
255
255
  if (n && r.some((e) => e.from == i.value.from)) continue;
256
256
  if (a) {
@@ -260,32 +260,32 @@ function Ie(e, t) {
260
260
  return i.value;
261
261
  }
262
262
  }
263
- var Le = ({ state: e, dispatch: t }) => {
263
+ var Me = ({ state: e, dispatch: t }) => {
264
264
  let { ranges: n } = e.selection;
265
- if (n.some((e) => e.from === e.to)) return Fe({
265
+ if (n.some((e) => e.from === e.to)) return Ae({
266
266
  state: e,
267
267
  dispatch: t
268
268
  });
269
269
  let r = e.sliceDoc(n[0].from, n[0].to);
270
270
  if (e.selection.ranges.some((t) => e.sliceDoc(t.from, t.to) != r)) return !1;
271
- let i = Ie(e, r);
271
+ let i = je(e, r);
272
272
  return i ? (t(e.update({
273
- selection: e.selection.addRange(P.range(i.from, i.to), !1),
273
+ selection: e.selection.addRange(M.range(i.from, i.to), !1),
274
274
  effects: l.scrollIntoView(i.to)
275
275
  })), !0) : !1;
276
- }, B = /*@__PURE__*/ ne.define({ combine(e) {
277
- return C(e, {
276
+ }, G = /*@__PURE__*/ j.define({ combine(e) {
277
+ return x(e, {
278
278
  top: !1,
279
279
  caseSensitive: !1,
280
280
  literal: !1,
281
281
  regexp: !1,
282
282
  wholeWord: !1,
283
- createPanel: (e) => new ct(e),
283
+ createPanel: (e) => new at(e),
284
284
  scrollToMatch: (e) => l.scrollIntoView(e)
285
285
  });
286
- } }), Re = class {
286
+ } }), Ne = class {
287
287
  constructor(e) {
288
- this.search = e.search, this.caseSensitive = !!e.caseSensitive, this.literal = !!e.literal, this.regexp = !!e.regexp, this.replace = e.replace || "", this.valid = !!this.search && (!this.regexp || we(this.search)), this.unquoted = this.unquote(this.search), this.wholeWord = !!e.wholeWord, this.test = e.test;
288
+ this.search = e.search, this.caseSensitive = !!e.caseSensitive, this.literal = !!e.literal, this.regexp = !!e.regexp, this.replace = e.replace || "", this.valid = !!this.search && (!this.regexp || ye(this.search)), this.unquoted = this.unquote(this.search), this.wholeWord = !!e.wholeWord, this.test = e.test;
289
289
  }
290
290
  unquote(e) {
291
291
  return this.literal ? e : e.replace(/\\([nrt\\])/g, (e, t) => t == "n" ? "\n" : t == "r" ? "\r" : t == "t" ? " " : "\\");
@@ -294,42 +294,42 @@ var Le = ({ state: e, dispatch: t }) => {
294
294
  return this.search == e.search && this.replace == e.replace && this.caseSensitive == e.caseSensitive && this.regexp == e.regexp && this.wholeWord == e.wholeWord && this.test == e.test;
295
295
  }
296
296
  create() {
297
- return this.regexp ? new Ge(this) : new He(this);
297
+ return this.regexp ? new Ve(this) : new Le(this);
298
298
  }
299
299
  getCursor(e, t = 0, n) {
300
300
  let r = e.doc ? e : u.create({ doc: e });
301
- return n ??= r.doc.length, this.regexp ? H(this, r, t, n) : V(this, r, t, n);
301
+ return n ??= r.doc.length, this.regexp ? q(this, r, t, n) : K(this, r, t, n);
302
302
  }
303
- }, ze = class {
303
+ }, Pe = class {
304
304
  constructor(e) {
305
305
  this.spec = e;
306
306
  }
307
307
  };
308
- function Be(e, t, n) {
308
+ function Fe(e, t, n) {
309
309
  return (r, i, a, o) => n && !n(r, i, a, o) ? !1 : e(r >= o && i <= o + a.length ? a.slice(r - o, i - o) : t.doc.sliceString(r, i), t, r, i);
310
310
  }
311
- function V(e, t, n, r) {
311
+ function K(e, t, n, r) {
312
312
  let i;
313
- return e.wholeWord && (i = Ve(t.doc, t.charCategorizer(t.selection.main.head))), e.test && (i = Be(e.test, t, i)), new L(t.doc, e.unquoted, n, r, e.caseSensitive ? void 0 : (e) => e.toLowerCase(), i);
313
+ return e.wholeWord && (i = Ie(t.doc, t.charCategorizer(t.selection.main.head))), e.test && (i = Fe(e.test, t, i)), new U(t.doc, e.unquoted, n, r, e.caseSensitive ? void 0 : (e) => e.toLowerCase(), i);
314
314
  }
315
- function Ve(e, t) {
316
- return (n, r, i, a) => ((a > n || a + i.length < r) && (a = Math.max(0, n - 2), i = e.sliceString(a, Math.min(e.length, r + 2))), (t(U(i, n - a)) != p.Word || t(W(i, n - a)) != p.Word) && (t(W(i, r - a)) != p.Word || t(U(i, r - a)) != p.Word));
315
+ function Ie(e, t) {
316
+ return (n, r, i, a) => ((a > n || a + i.length < r) && (a = Math.max(0, n - 2), i = e.sliceString(a, Math.min(e.length, r + 2))), (t(J(i, n - a)) != p.Word || t(ze(i, n - a)) != p.Word) && (t(ze(i, r - a)) != p.Word || t(J(i, r - a)) != p.Word));
317
317
  }
318
- var He = class extends ze {
318
+ var Le = class extends Pe {
319
319
  constructor(e) {
320
320
  super(e);
321
321
  }
322
322
  nextMatch(e, t, n) {
323
- let r = V(this.spec, e, n, e.doc.length).nextOverlapping();
323
+ let r = K(this.spec, e, n, e.doc.length).nextOverlapping();
324
324
  if (r.done) {
325
325
  let n = Math.min(e.doc.length, t + this.spec.unquoted.length);
326
- r = V(this.spec, e, 0, n).nextOverlapping();
326
+ r = K(this.spec, e, 0, n).nextOverlapping();
327
327
  }
328
328
  return r.done || r.value.from == t && r.value.to == n ? null : r.value;
329
329
  }
330
330
  prevMatchInRange(e, t, n) {
331
331
  for (let r = n;;) {
332
- let n = Math.max(t, r - 1e4 - this.spec.unquoted.length), i = V(this.spec, e, n, r), a = null;
332
+ let n = Math.max(t, r - 1e4 - this.spec.unquoted.length), i = K(this.spec, e, n, r), a = null;
333
333
  for (; !i.nextOverlapping().done;) a = i.value;
334
334
  if (a) return a;
335
335
  if (n == t) return null;
@@ -344,7 +344,7 @@ var He = class extends ze {
344
344
  return this.spec.unquote(this.spec.replace);
345
345
  }
346
346
  matchAll(e, t) {
347
- let n = V(this.spec, e, 0, e.doc.length), r = [];
347
+ let n = K(this.spec, e, 0, e.doc.length), r = [];
348
348
  for (; !n.next().done;) {
349
349
  if (r.length >= t) return null;
350
350
  r.push(n.value);
@@ -352,37 +352,37 @@ var He = class extends ze {
352
352
  return r;
353
353
  }
354
354
  highlight(e, t, n, r) {
355
- let i = V(this.spec, e, Math.max(0, t - this.spec.unquoted.length), Math.min(n + this.spec.unquoted.length, e.doc.length));
355
+ let i = K(this.spec, e, Math.max(0, t - this.spec.unquoted.length), Math.min(n + this.spec.unquoted.length, e.doc.length));
356
356
  for (; !i.next().done;) r(i.value.from, i.value.to);
357
357
  }
358
358
  };
359
- function Ue(e, t, n) {
359
+ function Re(e, t, n) {
360
360
  return (r, i, a) => (!n || n(r, i, a)) && e(a[0], t, r, i);
361
361
  }
362
- function H(e, t, n, r) {
362
+ function q(e, t, n, r) {
363
363
  let i;
364
- return e.wholeWord && (i = We(t.charCategorizer(t.selection.main.head))), e.test && (i = Ue(e.test, t, i)), new be(t.doc, e.search, {
364
+ return e.wholeWord && (i = Be(t.charCategorizer(t.selection.main.head))), e.test && (i = Re(e.test, t, i)), new he(t.doc, e.search, {
365
365
  ignoreCase: !e.caseSensitive,
366
366
  test: i
367
367
  }, n, r);
368
368
  }
369
- function U(e, t) {
369
+ function J(e, t) {
370
370
  return e.slice(g(e, t, !1), t);
371
371
  }
372
- function W(e, t) {
372
+ function ze(e, t) {
373
373
  return e.slice(t, g(e, t));
374
374
  }
375
- function We(e) {
376
- return (t, n, r) => !r[0].length || (e(U(r.input, r.index)) != p.Word || e(W(r.input, r.index)) != p.Word) && (e(W(r.input, r.index + r[0].length)) != p.Word || e(U(r.input, r.index + r[0].length)) != p.Word);
375
+ function Be(e) {
376
+ return (t, n, r) => !r[0].length || (e(J(r.input, r.index)) != p.Word || e(ze(r.input, r.index)) != p.Word) && (e(ze(r.input, r.index + r[0].length)) != p.Word || e(J(r.input, r.index + r[0].length)) != p.Word);
377
377
  }
378
- var Ge = class extends ze {
378
+ var Ve = class extends Pe {
379
379
  nextMatch(e, t, n) {
380
- let r = H(this.spec, e, n, e.doc.length).next();
381
- return r.done && (r = H(this.spec, e, 0, t).next()), r.done ? null : r.value;
380
+ let r = q(this.spec, e, n, e.doc.length).next();
381
+ return r.done && (r = q(this.spec, e, 0, t).next()), r.done ? null : r.value;
382
382
  }
383
383
  prevMatchInRange(e, t, n) {
384
384
  for (let r = 1;; r++) {
385
- let i = Math.max(t, n - r * 1e4), a = H(this.spec, e, i, n), o = null;
385
+ let i = Math.max(t, n - r * 1e4), a = q(this.spec, e, i, n), o = null;
386
386
  for (; !a.next().done;) o = a.value;
387
387
  if (o && (i == t || o.from > i + 10)) return o;
388
388
  if (i == t) return null;
@@ -403,7 +403,7 @@ var Ge = class extends ze {
403
403
  });
404
404
  }
405
405
  matchAll(e, t) {
406
- let n = H(this.spec, e, 0, e.doc.length), r = [];
406
+ let n = q(this.spec, e, 0, e.doc.length), r = [];
407
407
  for (; !n.next().done;) {
408
408
  if (r.length >= t) return null;
409
409
  r.push(n.value);
@@ -411,87 +411,87 @@ var Ge = class extends ze {
411
411
  return r;
412
412
  }
413
413
  highlight(e, t, n, r) {
414
- let i = H(this.spec, e, Math.max(0, t - 250), Math.min(n + 250, e.doc.length));
414
+ let i = q(this.spec, e, Math.max(0, t - 250), Math.min(n + 250, e.doc.length));
415
415
  for (; !i.next().done;) r(i.value.from, i.value.to);
416
416
  }
417
- }, G = /*@__PURE__*/ b.define(), Ke = /*@__PURE__*/ b.define(), K = /*@__PURE__*/ S.define({
417
+ }, Y = /*@__PURE__*/ y.define(), He = /*@__PURE__*/ y.define(), X = /*@__PURE__*/ te.define({
418
418
  create(e) {
419
- return new qe(nt(e).create(), null);
419
+ return new Ue($e(e).create(), null);
420
420
  },
421
421
  update(e, t) {
422
- for (let n of t.effects) n.is(G) ? e = new qe(n.value.create(), e.panel) : n.is(Ke) && (e = new qe(e.query, n.value ? tt : null));
422
+ for (let n of t.effects) n.is(Y) ? e = new Ue(n.value.create(), e.panel) : n.is(He) && (e = new Ue(e.query, n.value ? Qe : null));
423
423
  return e;
424
424
  },
425
- provide: (e) => fe.from(e, (e) => e.panel)
426
- }), qe = class {
425
+ provide: (e) => z.from(e, (e) => e.panel)
426
+ }), Ue = class {
427
427
  constructor(e, t) {
428
428
  this.query = e, this.panel = t;
429
429
  }
430
- }, Je = /*@__PURE__*/ w.mark({ class: "cm-searchMatch" }), Ye = /*@__PURE__*/ w.mark({ class: "cm-searchMatch cm-searchMatch-selected" }), Xe = /*@__PURE__*/ se.fromClass(class {
430
+ }, We = /*@__PURE__*/ S.mark({ class: "cm-searchMatch" }), Ge = /*@__PURE__*/ S.mark({ class: "cm-searchMatch cm-searchMatch-selected" }), Ke = /*@__PURE__*/ F.fromClass(class {
431
431
  constructor(e) {
432
- this.view = e, this.decorations = this.highlight(e.state.field(K));
432
+ this.view = e, this.decorations = this.highlight(e.state.field(X));
433
433
  }
434
434
  update(e) {
435
- let t = e.state.field(K);
436
- (t != e.startState.field(K) || e.docChanged || e.selectionSet || e.viewportChanged) && (this.decorations = this.highlight(t));
435
+ let t = e.state.field(X);
436
+ (t != e.startState.field(X) || e.docChanged || e.selectionSet || e.viewportChanged) && (this.decorations = this.highlight(t));
437
437
  }
438
438
  highlight({ query: e, panel: t }) {
439
- if (!t || !e.spec.valid) return w.none;
439
+ if (!t || !e.spec.valid) return S.none;
440
440
  let { view: n } = this, r = new h();
441
441
  for (let t = 0, i = n.visibleRanges, a = i.length; t < a; t++) {
442
442
  let { from: o, to: s } = i[t];
443
443
  for (; t < a - 1 && s > i[t + 1].from - 500;) s = i[++t].to;
444
444
  e.highlight(n.state, o, s, (e, t) => {
445
445
  let i = n.state.selection.ranges.some((n) => n.from == e && n.to == t);
446
- r.add(e, t, i ? Ye : Je);
446
+ r.add(e, t, i ? Ge : We);
447
447
  });
448
448
  }
449
449
  return r.finish();
450
450
  }
451
451
  }, { decorations: (e) => e.decorations });
452
- function q(e) {
452
+ function Z(e) {
453
453
  return (t) => {
454
- let n = t.state.field(K, !1);
455
- return n && n.query.spec.valid ? e(t, n) : at(t);
454
+ let n = t.state.field(X, !1);
455
+ return n && n.query.spec.valid ? e(t, n) : nt(t);
456
456
  };
457
457
  }
458
- var J = /*@__PURE__*/ q((e, { query: t }) => {
458
+ var Q = /*@__PURE__*/ Z((e, { query: t }) => {
459
459
  let { to: n } = e.state.selection.main, r = t.nextMatch(e.state, n, n);
460
460
  if (!r) return !1;
461
- let i = P.single(r.from, r.to), a = e.state.facet(B);
461
+ let i = M.single(r.from, r.to), a = e.state.facet(G);
462
462
  return e.dispatch({
463
463
  selection: i,
464
- effects: [lt(e, r), a.scrollToMatch(i.main, e)],
464
+ effects: [ct(e, r), a.scrollToMatch(i.main, e)],
465
465
  userEvent: "select.search"
466
- }), it(e), !0;
467
- }), Y = /*@__PURE__*/ q((e, { query: t }) => {
466
+ }), tt(e), !0;
467
+ }), qe = /*@__PURE__*/ Z((e, { query: t }) => {
468
468
  let { state: n } = e, { from: r } = n.selection.main, i = t.prevMatch(n, r, r);
469
469
  if (!i) return !1;
470
- let a = P.single(i.from, i.to), o = e.state.facet(B);
470
+ let a = M.single(i.from, i.to), o = e.state.facet(G);
471
471
  return e.dispatch({
472
472
  selection: a,
473
- effects: [lt(e, i), o.scrollToMatch(a.main, e)],
473
+ effects: [ct(e, i), o.scrollToMatch(a.main, e)],
474
474
  userEvent: "select.search"
475
- }), it(e), !0;
476
- }), Ze = /*@__PURE__*/ q((e, { query: t }) => {
475
+ }), tt(e), !0;
476
+ }), Je = /*@__PURE__*/ Z((e, { query: t }) => {
477
477
  let n = t.matchAll(e.state, 1e3);
478
478
  return !n || !n.length ? !1 : (e.dispatch({
479
- selection: P.create(n.map((e) => P.range(e.from, e.to))),
479
+ selection: M.create(n.map((e) => M.range(e.from, e.to))),
480
480
  userEvent: "select.search.matches"
481
481
  }), !0);
482
- }), Qe = ({ state: e, dispatch: t }) => {
482
+ }), Ye = ({ state: e, dispatch: t }) => {
483
483
  let n = e.selection;
484
484
  if (n.ranges.length > 1 || n.main.empty) return !1;
485
485
  let { from: r, to: i } = n.main, a = [], o = 0;
486
- for (let t = new L(e.doc, e.sliceDoc(r, i)); !t.next().done;) {
486
+ for (let t = new U(e.doc, e.sliceDoc(r, i)); !t.next().done;) {
487
487
  if (a.length > 1e3) return !1;
488
- t.value.from == r && (o = a.length), a.push(P.range(t.value.from, t.value.to));
488
+ t.value.from == r && (o = a.length), a.push(M.range(t.value.from, t.value.to));
489
489
  }
490
490
  return t(e.update({
491
- selection: P.create(a, o),
491
+ selection: M.create(a, o),
492
492
  userEvent: "select.search.matches"
493
493
  })), !0;
494
- }, $e = /*@__PURE__*/ q((e, { query: t }) => {
494
+ }, Xe = /*@__PURE__*/ Z((e, { query: t }) => {
495
495
  let { state: n } = e, { from: r, to: i } = n.selection.main;
496
496
  if (n.readOnly) return !1;
497
497
  let a = t.nextMatch(n, r, r);
@@ -503,13 +503,13 @@ var J = /*@__PURE__*/ q((e, { query: t }) => {
503
503
  insert: u
504
504
  }), o = t.nextMatch(n, o.from, o.to), d.push(l.announce.of(n.phrase("replaced match on line $", n.doc.lineAt(r).number) + "."))) : o = t.nextMatch(n, o.from, o.to);
505
505
  let f = e.state.changes(s);
506
- return o && (c = P.single(o.from, o.to).map(f), d.push(lt(e, o)), d.push(n.facet(B).scrollToMatch(c.main, e))), e.dispatch({
506
+ return o && (c = M.single(o.from, o.to).map(f), d.push(ct(e, o)), d.push(n.facet(G).scrollToMatch(c.main, e))), e.dispatch({
507
507
  changes: f,
508
508
  selection: c,
509
509
  effects: d,
510
510
  userEvent: "input.replace"
511
511
  }), !0;
512
- }), et = /*@__PURE__*/ q((e, { query: t }) => {
512
+ }), Ze = /*@__PURE__*/ Z((e, { query: t }) => {
513
513
  if (e.state.readOnly) return !1;
514
514
  let n = [];
515
515
  for (let r of t.matchAll(e.state, 1e9)) {
@@ -528,14 +528,14 @@ var J = /*@__PURE__*/ q((e, { query: t }) => {
528
528
  userEvent: "input.replace.all"
529
529
  }), !0;
530
530
  });
531
- function tt(e) {
532
- return e.state.facet(B).createPanel(e);
531
+ function Qe(e) {
532
+ return e.state.facet(G).createPanel(e);
533
533
  }
534
- function nt(e, t) {
534
+ function $e(e, t) {
535
535
  let n = e.selection.main, r = n.empty || n.to > n.from + 100 ? "" : e.sliceDoc(n.from, n.to);
536
536
  if (t && !r) return t;
537
- let i = e.facet(B);
538
- return new Re({
537
+ let i = e.facet(G);
538
+ return new Ne({
539
539
  search: t?.literal ?? i.literal ? r : r.replace(/\n/g, "\\n"),
540
540
  caseSensitive: t?.caseSensitive ?? i.caseSensitive,
541
541
  literal: t?.literal ?? i.literal,
@@ -543,75 +543,75 @@ function nt(e, t) {
543
543
  wholeWord: t?.wholeWord ?? i.wholeWord
544
544
  });
545
545
  }
546
- function rt(e) {
547
- let t = oe(e, tt);
546
+ function et(e) {
547
+ let t = se(e, Qe);
548
548
  return t && t.dom.querySelector("[main-field]");
549
549
  }
550
- function it(e) {
551
- let t = rt(e);
550
+ function tt(e) {
551
+ let t = et(e);
552
552
  t && t == e.root.activeElement && t.select();
553
553
  }
554
- var at = (e) => {
555
- let t = e.state.field(K, !1);
554
+ var nt = (e) => {
555
+ let t = e.state.field(X, !1);
556
556
  if (t && t.panel) {
557
- let n = rt(e);
557
+ let n = et(e);
558
558
  if (n && n != e.root.activeElement) {
559
- let r = nt(e.state, t.query.spec);
560
- r.valid && e.dispatch({ effects: G.of(r) }), n.focus(), n.select();
559
+ let r = $e(e.state, t.query.spec);
560
+ r.valid && e.dispatch({ effects: Y.of(r) }), n.focus(), n.select();
561
561
  }
562
- } else e.dispatch({ effects: [Ke.of(!0), t ? G.of(nt(e.state, t.query.spec)) : b.appendConfig.of(dt)] });
562
+ } else e.dispatch({ effects: [He.of(!0), t ? Y.of($e(e.state, t.query.spec)) : y.appendConfig.of(ut)] });
563
563
  return !0;
564
- }, ot = (e) => {
565
- let t = e.state.field(K, !1);
564
+ }, rt = (e) => {
565
+ let t = e.state.field(X, !1);
566
566
  if (!t || !t.panel) return !1;
567
- let n = oe(e, tt);
568
- return n && n.dom.contains(e.root.activeElement) && e.focus(), e.dispatch({ effects: Ke.of(!1) }), !0;
569
- }, st = [
567
+ let n = se(e, Qe);
568
+ return n && n.dom.contains(e.root.activeElement) && e.focus(), e.dispatch({ effects: He.of(!1) }), !0;
569
+ }, it = [
570
570
  {
571
571
  key: "Mod-f",
572
- run: at,
572
+ run: nt,
573
573
  scope: "editor search-panel"
574
574
  },
575
575
  {
576
576
  key: "F3",
577
- run: J,
578
- shift: Y,
577
+ run: Q,
578
+ shift: qe,
579
579
  scope: "editor search-panel",
580
580
  preventDefault: !0
581
581
  },
582
582
  {
583
583
  key: "Mod-g",
584
- run: J,
585
- shift: Y,
584
+ run: Q,
585
+ shift: qe,
586
586
  scope: "editor search-panel",
587
587
  preventDefault: !0
588
588
  },
589
589
  {
590
590
  key: "Escape",
591
- run: ot,
591
+ run: rt,
592
592
  scope: "editor search-panel"
593
593
  },
594
594
  {
595
595
  key: "Mod-Shift-l",
596
- run: Qe
596
+ run: Ye
597
597
  },
598
598
  {
599
599
  key: "Mod-Alt-g",
600
- run: Te
600
+ run: be
601
601
  },
602
602
  {
603
603
  key: "Mod-d",
604
- run: Le,
604
+ run: Me,
605
605
  preventDefault: !0
606
606
  }
607
- ], ct = class {
607
+ ], at = class {
608
608
  constructor(e) {
609
609
  this.view = e;
610
- let t = this.query = e.state.field(K).query.spec;
610
+ let t = this.query = e.state.field(X).query.spec;
611
611
  this.commit = this.commit.bind(this), this.searchField = f("input", {
612
612
  value: t.search,
613
- placeholder: X(e, "Find"),
614
- "aria-label": X(e, "Find"),
613
+ placeholder: $(e, "Find"),
614
+ "aria-label": $(e, "Find"),
615
615
  class: "cm-textfield",
616
616
  name: "search",
617
617
  form: "",
@@ -620,8 +620,8 @@ var at = (e) => {
620
620
  onkeyup: this.commit
621
621
  }), this.replaceField = f("input", {
622
622
  value: t.replace,
623
- placeholder: X(e, "Replace"),
624
- "aria-label": X(e, "Replace"),
623
+ placeholder: $(e, "Replace"),
624
+ "aria-label": $(e, "Replace"),
625
625
  class: "cm-textfield",
626
626
  name: "replace",
627
627
  form: "",
@@ -659,41 +659,41 @@ var at = (e) => {
659
659
  class: "cm-search"
660
660
  }, [
661
661
  this.searchField,
662
- n("next", () => J(e), [X(e, "next")]),
663
- n("prev", () => Y(e), [X(e, "previous")]),
664
- n("select", () => Ze(e), [X(e, "all")]),
665
- f("label", null, [this.caseField, X(e, "match case")]),
666
- f("label", null, [this.reField, X(e, "regexp")]),
667
- f("label", null, [this.wordField, X(e, "by word")]),
662
+ n("next", () => Q(e), [$(e, "next")]),
663
+ n("prev", () => qe(e), [$(e, "previous")]),
664
+ n("select", () => Je(e), [$(e, "all")]),
665
+ f("label", null, [this.caseField, $(e, "match case")]),
666
+ f("label", null, [this.reField, $(e, "regexp")]),
667
+ f("label", null, [this.wordField, $(e, "by word")]),
668
668
  ...e.state.readOnly ? [] : [
669
669
  f("br"),
670
670
  this.replaceField,
671
- n("replace", () => $e(e), [X(e, "replace")]),
672
- n("replaceAll", () => et(e), [X(e, "replace all")])
671
+ n("replace", () => Xe(e), [$(e, "replace")]),
672
+ n("replaceAll", () => Ze(e), [$(e, "replace all")])
673
673
  ],
674
674
  f("button", {
675
675
  name: "close",
676
- onclick: () => ot(e),
677
- "aria-label": X(e, "close"),
676
+ onclick: () => rt(e),
677
+ "aria-label": $(e, "close"),
678
678
  type: "button"
679
679
  }, ["×"])
680
680
  ]);
681
681
  }
682
682
  commit() {
683
- let e = new Re({
683
+ let e = new Ne({
684
684
  search: this.searchField.value,
685
685
  caseSensitive: this.caseField.checked,
686
686
  regexp: this.reField.checked,
687
687
  wholeWord: this.wordField.checked,
688
688
  replace: this.replaceField.value
689
689
  });
690
- e.eq(this.query) || (this.query = e, this.view.dispatch({ effects: G.of(e) }));
690
+ e.eq(this.query) || (this.query = e, this.view.dispatch({ effects: Y.of(e) }));
691
691
  }
692
692
  keydown(e) {
693
- pe(this.view, e, "search-panel") ? e.preventDefault() : e.keyCode == 13 && e.target == this.searchField ? (e.preventDefault(), (e.shiftKey ? Y : J)(this.view)) : e.keyCode == 13 && e.target == this.replaceField && (e.preventDefault(), $e(this.view));
693
+ B(this.view, e, "search-panel") ? e.preventDefault() : e.keyCode == 13 && e.target == this.searchField ? (e.preventDefault(), (e.shiftKey ? qe : Q)(this.view)) : e.keyCode == 13 && e.target == this.replaceField && (e.preventDefault(), Xe(this.view));
694
694
  }
695
695
  update(e) {
696
- for (let t of e.transactions) for (let e of t.effects) e.is(G) && !e.value.eq(this.query) && this.setQuery(e.value);
696
+ for (let t of e.transactions) for (let e of t.effects) e.is(Y) && !e.value.eq(this.query) && this.setQuery(e.value);
697
697
  }
698
698
  setQuery(e) {
699
699
  this.query = e, this.searchField.value = e.search, this.replaceField.value = e.replace, this.caseField.checked = e.caseSensitive, this.reField.checked = e.regexp, this.wordField.checked = e.wholeWord;
@@ -705,30 +705,30 @@ var at = (e) => {
705
705
  return 80;
706
706
  }
707
707
  get top() {
708
- return this.view.state.facet(B).top;
708
+ return this.view.state.facet(G).top;
709
709
  }
710
710
  };
711
- function X(e, t) {
711
+ function $(e, t) {
712
712
  return e.state.phrase(t);
713
713
  }
714
- var Z = 30, Q = /[\s\.,:;?!]/;
715
- function lt(e, { from: t, to: n }) {
716
- let r = e.state.doc.lineAt(t), i = e.state.doc.lineAt(n).to, a = Math.max(r.from, t - Z), o = Math.min(i, n + Z), s = e.state.sliceDoc(a, o);
714
+ var ot = 30, st = /[\s\.,:;?!]/;
715
+ function ct(e, { from: t, to: n }) {
716
+ let r = e.state.doc.lineAt(t), i = e.state.doc.lineAt(n).to, a = Math.max(r.from, t - ot), o = Math.min(i, n + ot), s = e.state.sliceDoc(a, o);
717
717
  if (a != r.from) {
718
- for (let e = 0; e < Z; e++) if (!Q.test(s[e + 1]) && Q.test(s[e])) {
718
+ for (let e = 0; e < ot; e++) if (!st.test(s[e + 1]) && st.test(s[e])) {
719
719
  s = s.slice(e);
720
720
  break;
721
721
  }
722
722
  }
723
723
  if (o != i) {
724
- for (let e = s.length - 1; e > s.length - Z; e--) if (!Q.test(s[e - 1]) && Q.test(s[e])) {
724
+ for (let e = s.length - 1; e > s.length - ot; e--) if (!st.test(s[e - 1]) && st.test(s[e])) {
725
725
  s = s.slice(0, e);
726
726
  break;
727
727
  }
728
728
  }
729
729
  return l.announce.of(`${e.state.phrase("current match")}. ${s} ${e.state.phrase("on line")} ${r.number}.`);
730
730
  }
731
- var ut = /*@__PURE__*/ l.baseTheme({
731
+ var lt = /*@__PURE__*/ l.baseTheme({
732
732
  ".cm-panel.cm-search": {
733
733
  padding: "2px 6px 4px",
734
734
  position: "relative",
@@ -753,14 +753,14 @@ var ut = /*@__PURE__*/ l.baseTheme({
753
753
  "&dark .cm-searchMatch": { backgroundColor: "#00ffff8a" },
754
754
  "&light .cm-searchMatch-selected": { backgroundColor: "#ff6a0054" },
755
755
  "&dark .cm-searchMatch-selected": { backgroundColor: "#ff00ff8a" }
756
- }), dt = [
757
- K,
758
- /*@__PURE__*/ x.low(Xe),
759
- ut
756
+ }), ut = [
757
+ X,
758
+ /*@__PURE__*/ b.low(Ke),
759
+ lt
760
760
  ];
761
761
  //#endregion
762
762
  //#region ../node_modules/.pnpm/@babel+runtime@7.27.6/node_modules/@babel/runtime/helpers/esm/objectWithoutPropertiesLoose.js
763
- function ft(e, t) {
763
+ function dt(e, t) {
764
764
  if (e == null) return {};
765
765
  var n = {};
766
766
  for (var r in e) if ({}.hasOwnProperty.call(e, r)) {
@@ -770,22 +770,22 @@ function ft(e, t) {
770
770
  return n;
771
771
  }
772
772
  //#endregion
773
- //#region ../node_modules/.pnpm/@uiw+codemirror-extensions-basic-setup@4.25.4_@codemirror+autocomplete@6.20.3_@codemirr_36e10ef2e0d6aa91f7796e7944bfec64/node_modules/@uiw/codemirror-extensions-basic-setup/esm/index.js
774
- var pt = function(e) {
773
+ //#region ../node_modules/.pnpm/@uiw+codemirror-extensions-basic-setup@4.25.11_@codemirror+autocomplete@6.20.3_@codemir_3d8ccf8815e3a97c6d75b59d2740160b/node_modules/@uiw/codemirror-extensions-basic-setup/esm/index.js
774
+ var ft = function(e) {
775
775
  e === void 0 && (e = {});
776
- var { crosshairCursor: t = !1 } = e, n = [];
777
- e.closeBracketsKeymap !== !1 && (n = n.concat(me)), e.defaultKeymap !== !1 && (n = n.concat(i)), e.searchKeymap !== !1 && (n = n.concat(st)), e.historyKeymap !== !1 && (n = n.concat(r)), e.foldKeymap !== !1 && (n = n.concat(d)), e.completionKeymap !== !1 && (n = n.concat(he)), e.lintKeymap !== !1 && (n = n.concat(a));
778
- var s = [];
779
- return e.lineNumbers !== !1 && s.push(M()), e.highlightActiveLineGutter !== !1 && s.push(k()), e.highlightSpecialChars !== !1 && s.push(A()), e.history !== !1 && s.push(o()), e.foldGutter !== !1 && s.push(de()), e.drawSelection !== !1 && s.push(D()), e.dropCursor !== !1 && s.push(ie()), e.allowMultipleSelections !== !1 && s.push(u.allowMultipleSelections.of(!0)), e.indentOnInput !== !1 && s.push(re()), e.syntaxHighlighting !== !1 && s.push(m(j, { fallback: !0 })), e.bracketMatching !== !1 && s.push(ae()), e.closeBrackets !== !1 && s.push(ge()), e.autocompletion !== !1 && s.push(_e()), e.rectangularSelection !== !1 && s.push(le()), t !== !1 && s.push(te()), e.highlightActiveLine !== !1 && s.push(ce()), e.highlightSelectionMatches !== !1 && s.push(Oe()), e.tabSize && typeof e.tabSize == "number" && s.push(N.of(" ".repeat(e.tabSize))), s.concat([F.of(n.flat())]).filter(Boolean);
780
- }, mt = function(e) {
776
+ var t = e.crosshairCursor, n = t !== void 0 && t, s = [];
777
+ e.closeBracketsKeymap !== !1 && (s = s.concat(le)), e.defaultKeymap !== !1 && (s = s.concat(i)), e.searchKeymap !== !1 && (s = s.concat(it)), e.historyKeymap !== !1 && (s = s.concat(r)), e.foldKeymap !== !1 && (s = s.concat(d)), e.completionKeymap !== !1 && (s = s.concat(ue)), e.lintKeymap !== !1 && (s = s.concat(a));
778
+ var c = [];
779
+ return e.lineNumbers !== !1 && c.push(O()), e.highlightActiveLineGutter !== !1 && c.push(T()), e.highlightSpecialChars !== !1 && c.push(E()), e.history !== !1 && c.push(o()), e.foldGutter !== !1 && c.push(R()), e.drawSelection !== !1 && c.push(w()), e.dropCursor !== !1 && c.push(P()), e.allowMultipleSelections !== !1 && c.push(u.allowMultipleSelections.of(!0)), e.indentOnInput !== !1 && c.push(ae()), e.syntaxHighlighting !== !1 && c.push(m(D, { fallback: !0 })), e.bracketMatching !== !1 && c.push(oe()), e.closeBrackets !== !1 && c.push(de()), e.autocompletion !== !1 && c.push(V()), e.rectangularSelection !== !1 && c.push(ce()), n !== !1 && c.push(k()), e.highlightActiveLine !== !1 && c.push(I()), e.highlightSelectionMatches !== !1 && c.push(Ce()), e.tabSize && typeof e.tabSize == "number" && c.push(A.of(" ".repeat(e.tabSize))), c.concat([N.of(s.flat())]).filter(Boolean);
780
+ }, pt = function(e) {
781
781
  e === void 0 && (e = {});
782
782
  var t = [];
783
783
  e.defaultKeymap !== !1 && (t = t.concat(i)), e.historyKeymap !== !1 && (t = t.concat(r));
784
784
  var n = [];
785
- return e.highlightSpecialChars !== !1 && n.push(A()), e.history !== !1 && n.push(o()), e.drawSelection !== !1 && n.push(D()), e.syntaxHighlighting !== !1 && n.push(m(j, { fallback: !0 })), n.concat([F.of(t.flat())]).filter(Boolean);
786
- }, ht = "#e5c07b", gt = "#e06c75", _t = "#56b6c2", vt = "#ffffff", $ = "#abb2bf", yt = "#7d8799", bt = "#61afef", xt = "#98c379", St = "#d19a66", Ct = "#c678dd", wt = "#21252b", Tt = "#2c313a", Et = "#282c34", Dt = "#353a42", Ot = "#3E4451", kt = "#528bff", At = /*@__PURE__*/ l.theme({
785
+ return e.highlightSpecialChars !== !1 && n.push(E()), e.history !== !1 && n.push(o()), e.drawSelection !== !1 && n.push(w()), e.syntaxHighlighting !== !1 && n.push(m(D, { fallback: !0 })), n.concat([N.of(t.flat())]).filter(Boolean);
786
+ }, mt = "#e5c07b", ht = "#e06c75", gt = "#56b6c2", _t = "#ffffff", vt = "#abb2bf", yt = "#7d8799", bt = "#61afef", xt = "#98c379", St = "#d19a66", Ct = "#c678dd", wt = "#21252b", Tt = "#2c313a", Et = "#282c34", Dt = "#353a42", Ot = "#3E4451", kt = "#528bff", At = /*@__PURE__*/ l.theme({
787
787
  "&": {
788
- color: $,
788
+ color: vt,
789
789
  backgroundColor: Et
790
790
  },
791
791
  ".cm-content": { caretColor: kt },
@@ -793,7 +793,7 @@ var pt = function(e) {
793
793
  "&.cm-focused > .cm-scroller > .cm-selectionLayer .cm-selectionBackground, .cm-selectionBackground, .cm-content ::selection": { backgroundColor: Ot },
794
794
  ".cm-panels": {
795
795
  backgroundColor: wt,
796
- color: $
796
+ color: vt
797
797
  },
798
798
  ".cm-panels.cm-panels-top": { borderBottom: "2px solid black" },
799
799
  ".cm-panels.cm-panels-bottom": { borderTop: "2px solid black" },
@@ -830,9 +830,9 @@ var pt = function(e) {
830
830
  },
831
831
  ".cm-tooltip-autocomplete": { "& > ul > li[aria-selected]": {
832
832
  backgroundColor: Tt,
833
- color: $
833
+ color: vt
834
834
  } }
835
- }, { dark: !0 }), jt = /*@__PURE__*/ E.define([
835
+ }, { dark: !0 }), jt = /*@__PURE__*/ re.define([
836
836
  {
837
837
  tag: _.keyword,
838
838
  color: Ct
@@ -845,7 +845,7 @@ var pt = function(e) {
845
845
  _.propertyName,
846
846
  _.macroName
847
847
  ],
848
- color: gt
848
+ color: ht
849
849
  },
850
850
  {
851
851
  tag: [/*@__PURE__*/ _.function(_.variableName), _.labelName],
@@ -861,7 +861,7 @@ var pt = function(e) {
861
861
  },
862
862
  {
863
863
  tag: [/*@__PURE__*/ _.definition(_.name), _.separator],
864
- color: $
864
+ color: vt
865
865
  },
866
866
  {
867
867
  tag: [
@@ -874,7 +874,7 @@ var pt = function(e) {
874
874
  _.self,
875
875
  _.namespace
876
876
  ],
877
- color: ht
877
+ color: mt
878
878
  },
879
879
  {
880
880
  tag: [
@@ -886,7 +886,7 @@ var pt = function(e) {
886
886
  _.link,
887
887
  /*@__PURE__*/ _.special(_.string)
888
888
  ],
889
- color: _t
889
+ color: gt
890
890
  },
891
891
  {
892
892
  tag: [_.meta, _.comment],
@@ -912,7 +912,7 @@ var pt = function(e) {
912
912
  {
913
913
  tag: _.heading,
914
914
  fontWeight: "bold",
915
- color: gt
915
+ color: ht
916
916
  },
917
917
  {
918
918
  tag: [
@@ -932,22 +932,22 @@ var pt = function(e) {
932
932
  },
933
933
  {
934
934
  tag: _.invalid,
935
- color: vt
935
+ color: _t
936
936
  }
937
937
  ]), Mt = [At, /*@__PURE__*/ m(jt)], Nt = l.theme({ "&": { backgroundColor: "#fff" } }, { dark: !1 }), Pt = function(e) {
938
938
  e === void 0 && (e = {});
939
- var { indentWithTab: t = !0, editable: n = !0, readOnly: r = !1, theme: i = "light", placeholder: a = "", basicSetup: o = !0 } = e, s = [];
940
- switch (t && s.unshift(F.of([c])), o && (typeof o == "boolean" ? s.unshift(pt()) : s.unshift(pt(o))), a && s.unshift(T(a)), i) {
939
+ var t = e, n = t.indentWithTab, r = n === void 0 || n, i = t.editable, a = i === void 0 || i, o = t.readOnly, s = o !== void 0 && o, d = t.theme, f = d === void 0 ? "light" : d, p = t.placeholder, m = p === void 0 ? "" : p, h = t.basicSetup, g = h === void 0 || h, _ = [];
940
+ switch (r && _.unshift(N.of([c])), g && (typeof g == "boolean" ? _.unshift(ft()) : _.unshift(ft(g))), m && _.unshift(C(m)), f) {
941
941
  case "light":
942
- s.push(Nt);
942
+ _.push(Nt);
943
943
  break;
944
944
  case "dark":
945
- s.push(Mt);
945
+ _.push(Mt);
946
946
  break;
947
947
  case "none": break;
948
- default: s.push(i);
948
+ default: _.push(f);
949
949
  }
950
- return n === !1 && s.push(l.editable.of(!1)), r && s.push(u.readOnly.of(!0)), [...s];
950
+ return a === !1 && _.push(l.editable.of(!1)), s && _.push(u.readOnly.of(!0)), [..._];
951
951
  }, Ft = (e) => ({
952
952
  line: e.state.doc.lineAt(e.state.selection.main.from),
953
953
  lineCount: e.state.doc.lines,
@@ -1007,110 +1007,123 @@ var pt = function(e) {
1007
1007
  stop() {
1008
1008
  this.interval !== null && (clearInterval(this.interval), this.interval = null);
1009
1009
  }
1010
- }, Rt = null, zt = () => typeof window > "u" ? new Lt() : (Rt ||= new Lt(), Rt), Bt = ue.define(), Vt = 200, Ht = [];
1011
- function Ut(e) {
1012
- var { value: t, selection: n, onChange: r, onStatistics: i, onCreateEditor: a, onUpdate: o, extensions: s = Ht, autoFocus: c, theme: d = "light", height: f = null, minHeight: p = null, maxHeight: m = null, width: h = null, minWidth: g = null, maxWidth: _ = null, placeholder: v = "", editable: y = !0, readOnly: x = !1, indentWithTab: S = !0, basicSetup: C = !0, root: ee, initialState: w } = e, [T, E] = (0, I.useState)(), [D, O] = (0, I.useState)(), [k, A] = (0, I.useState)(), j = (0, I.useState)(() => ({ current: null }))[0], M = (0, I.useState)(() => ({ current: null }))[0], te = l.theme({
1013
- "&": {
1014
- height: f,
1015
- minHeight: p,
1016
- maxHeight: m,
1017
- width: h,
1018
- minWidth: g,
1019
- maxWidth: _
1020
- },
1021
- "& .cm-scroller": { height: "100% !important" }
1022
- }), N = [
1023
- l.updateListener.of((e) => {
1024
- e.docChanged && typeof r == "function" && !e.transactions.some((e) => e.annotation(Bt)) && (j.current ? j.current.reset() : (j.current = new It(() => {
1025
- if (M.current) {
1026
- var e = M.current;
1027
- M.current = null, e();
1028
- }
1029
- j.current = null;
1030
- }, Vt), zt().add(j.current)), r(e.state.doc.toString(), e)), i && i(Ft(e));
1031
- }),
1032
- te,
1033
- ...Pt({
1034
- theme: d,
1035
- editable: y,
1036
- readOnly: x,
1037
- placeholder: v,
1038
- indentWithTab: S,
1039
- basicSetup: C
1040
- })
1010
+ }, Rt = null, zt = () => typeof window > "u" ? new Lt() : (Rt ||= new Lt(), Rt), Bt = l.theme({ "& .cm-scroller": { height: "100% !important" } }), Vt = null, Ht = null;
1011
+ function Ut(e, t, n, r, i, a) {
1012
+ if (!e && !t && !n && !r && !i && !a) return null;
1013
+ var o = JSON.stringify({
1014
+ height: e,
1015
+ minHeight: t,
1016
+ maxHeight: n,
1017
+ width: r,
1018
+ minWidth: i,
1019
+ maxWidth: a
1020
+ });
1021
+ return o === Vt ? Ht : (Vt = o, Ht = l.theme({ "&": {
1022
+ height: e,
1023
+ minHeight: t,
1024
+ maxHeight: n,
1025
+ width: r,
1026
+ minWidth: i,
1027
+ maxWidth: a
1028
+ } }), Ht);
1029
+ }
1030
+ //#endregion
1031
+ //#region ../node_modules/.pnpm/@uiw+react-codemirror@4.25.11_@babel+runtime@7.27.6_@codemirror+autocomplete@6.20.3_@co_623c1289eb80a5520a7e784eefdad0eb/node_modules/@uiw/react-codemirror/esm/useCodeMirror.js
1032
+ var Wt = L.define(), Gt = 200, Kt = [];
1033
+ function qt(e) {
1034
+ var t = e.value, n = e.selection, r = e.onChange, i = e.onStatistics, a = e.onCreateEditor, o = e.onUpdate, s = e.extensions, c = s === void 0 ? Kt : s, d = e.autoFocus, f = e.theme, p = f === void 0 ? "light" : f, m = e.height, h = m === void 0 ? null : m, g = e.minHeight, _ = g === void 0 ? null : g, v = e.maxHeight, ee = v === void 0 ? null : v, b = e.width, te = b === void 0 ? null : b, x = e.minWidth, ne = x === void 0 ? null : x, S = e.maxWidth, C = S === void 0 ? null : S, re = e.placeholder, w = re === void 0 ? "" : re, ie = e.editable, T = ie === void 0 || ie, E = e.readOnly, D = E !== void 0 && E, O = e.indentWithTab, k = O === void 0 || O, A = e.basicSetup, j = A === void 0 || A, ae = e.root, M = e.initialState, N = (0, H.useState)(), P = N[0], oe = N[1], se = (0, H.useState)(), F = se[0], I = se[1], ce = (0, H.useState)(), L = ce[0], R = ce[1], z = (0, H.useState)(() => ({ current: null }))[0], B = (0, H.useState)(() => ({ current: null }))[0], le = Ut(h, _, ee, te, ne, C), ue = l.updateListener.of((e) => {
1035
+ e.docChanged && typeof r == "function" && !e.transactions.some((e) => e.annotation(Wt)) && (z.current ? z.current.reset() : (z.current = new It(() => {
1036
+ if (B.current) {
1037
+ var e = B.current;
1038
+ B.current = null, e();
1039
+ }
1040
+ z.current = null;
1041
+ }, Gt), zt().add(z.current)), r(e.state.doc.toString(), e)), i && i(Ft(e));
1042
+ }), de = Pt({
1043
+ theme: p,
1044
+ editable: T,
1045
+ readOnly: D,
1046
+ placeholder: w,
1047
+ indentWithTab: k,
1048
+ basicSetup: j
1049
+ }), V = [
1050
+ ue,
1051
+ ...le ? [le] : [],
1052
+ Bt,
1053
+ ...de
1041
1054
  ];
1042
- return o && typeof o == "function" && N.push(l.updateListener.of(o)), N = N.concat(s), (0, I.useLayoutEffect)(() => {
1043
- if (T && !k) {
1055
+ return o && typeof o == "function" && V.push(l.updateListener.of(o)), V = V.concat(c), (0, H.useLayoutEffect)(() => {
1056
+ if (P && !L) {
1044
1057
  var e = {
1045
1058
  doc: t,
1046
1059
  selection: n,
1047
- extensions: N
1048
- }, r = w ? u.fromJSON(w.json, e, w.fields) : u.create(e);
1049
- if (A(r), !D) {
1060
+ extensions: V
1061
+ }, r = M ? u.fromJSON(M.json, e, M.fields) : u.create(e);
1062
+ if (R(r), !F) {
1050
1063
  var i = new l({
1051
1064
  state: r,
1052
- parent: T,
1053
- root: ee
1065
+ parent: P,
1066
+ root: ae
1054
1067
  });
1055
- O(i), a && a(i, r);
1068
+ I(i), a && a(i, r);
1056
1069
  }
1057
1070
  }
1058
1071
  return () => {
1059
- D && (A(void 0), O(void 0));
1072
+ F && (R(void 0), I(void 0));
1060
1073
  };
1061
- }, [T, k]), (0, I.useEffect)(() => {
1062
- e.container && E(e.container);
1063
- }, [e.container]), (0, I.useEffect)(() => () => {
1064
- D && (D.destroy(), O(void 0)), j.current &&= (j.current.cancel(), null);
1065
- }, [D]), (0, I.useEffect)(() => {
1066
- c && D && D.focus();
1067
- }, [c, D]), (0, I.useEffect)(() => {
1068
- D && D.dispatch({ effects: b.reconfigure.of(N) });
1074
+ }, [P, L]), (0, H.useEffect)(() => {
1075
+ e.container && oe(e.container);
1076
+ }, [e.container]), (0, H.useEffect)(() => () => {
1077
+ F && (F.destroy(), I(void 0)), z.current &&= (z.current.cancel(), null);
1078
+ }, [F]), (0, H.useEffect)(() => {
1079
+ d && F && F.focus();
1080
+ }, [d, F]), (0, H.useEffect)(() => {
1081
+ F && F.dispatch({ effects: y.reconfigure.of(V) });
1069
1082
  }, [
1070
- d,
1071
- s,
1072
- f,
1073
1083
  p,
1074
- m,
1084
+ c,
1075
1085
  h,
1076
- g,
1077
1086
  _,
1078
- v,
1079
- y,
1080
- x,
1081
- S,
1087
+ ee,
1088
+ te,
1089
+ ne,
1082
1090
  C,
1091
+ w,
1092
+ T,
1093
+ D,
1094
+ k,
1095
+ j,
1083
1096
  r,
1084
1097
  o
1085
- ]), (0, I.useEffect)(() => {
1098
+ ]), (0, H.useEffect)(() => {
1086
1099
  if (t !== void 0) {
1087
- var e = D ? D.state.doc.toString() : "";
1088
- if (D && t !== e) {
1089
- var n = j.current && !j.current.isDone, r = () => {
1090
- D && t !== D.state.doc.toString() && D.dispatch({
1100
+ var e = F ? F.state.doc.toString() : "";
1101
+ if (F && t !== e) {
1102
+ var n = z.current && !z.current.isDone, r = () => {
1103
+ F && t !== F.state.doc.toString() && F.dispatch({
1091
1104
  changes: {
1092
1105
  from: 0,
1093
- to: D.state.doc.toString().length,
1106
+ to: F.state.doc.toString().length,
1094
1107
  insert: t || ""
1095
1108
  },
1096
- annotations: [Bt.of(!0)]
1109
+ annotations: [Wt.of(!0)]
1097
1110
  });
1098
1111
  };
1099
- n ? M.current = r : r();
1112
+ n ? B.current = r : r();
1100
1113
  }
1101
1114
  }
1102
- }, [t, D]), {
1103
- state: k,
1104
- setState: A,
1105
- view: D,
1106
- setView: O,
1107
- container: T,
1108
- setContainer: E
1115
+ }, [t, F]), {
1116
+ state: L,
1117
+ setState: R,
1118
+ view: F,
1119
+ setView: I,
1120
+ container: P,
1121
+ setContainer: oe
1109
1122
  };
1110
1123
  }
1111
1124
  //#endregion
1112
- //#region ../node_modules/.pnpm/@uiw+react-codemirror@4.25.4_@babel+runtime@7.27.6_@codemirror+autocomplete@6.20.3_@cod_55bd355a10f5c2c1111b71e47e4a4490/node_modules/@uiw/react-codemirror/esm/index.js
1113
- var Wt = n(), Gt = [
1125
+ //#region ../node_modules/.pnpm/@uiw+react-codemirror@4.25.11_@babel+runtime@7.27.6_@codemirror+autocomplete@6.20.3_@co_623c1289eb80a5520a7e784eefdad0eb/node_modules/@uiw/react-codemirror/esm/index.js
1126
+ var Jt = n(), Yt = [
1114
1127
  "className",
1115
1128
  "value",
1116
1129
  "selection",
@@ -1134,51 +1147,51 @@ var Wt = n(), Gt = [
1134
1147
  "readOnly",
1135
1148
  "root",
1136
1149
  "initialState"
1137
- ], Kt = /*#__PURE__*/ (0, I.forwardRef)((e, t) => {
1138
- var { className: n, value: r = "", selection: i, extensions: a = [], onChange: o, onStatistics: c, onCreateEditor: l, onUpdate: u, autoFocus: d, theme: f = "light", height: p, minHeight: m, maxHeight: h, width: g, minWidth: _, maxWidth: v, basicSetup: y, placeholder: b, indentWithTab: x, editable: S, readOnly: C, root: ee, initialState: w } = e, T = ft(e, Gt), E = (0, I.useRef)(null), { state: D, view: O, container: k, setContainer: A } = Ut({
1139
- root: ee,
1140
- value: r,
1141
- autoFocus: d,
1142
- theme: f,
1143
- height: p,
1144
- minHeight: m,
1145
- maxHeight: h,
1146
- width: g,
1147
- minWidth: _,
1148
- maxWidth: v,
1149
- basicSetup: y,
1150
- placeholder: b,
1151
- indentWithTab: x,
1150
+ ], Xt = /*#__PURE__*/ (0, H.forwardRef)((e, t) => {
1151
+ var n = e.className, r = e.value, i = r === void 0 ? "" : r, a = e.selection, o = e.extensions, c = o === void 0 ? [] : o, l = e.onChange, u = e.onStatistics, d = e.onCreateEditor, f = e.onUpdate, p = e.autoFocus, m = e.theme, h = m === void 0 ? "light" : m, g = e.height, _ = e.minHeight, v = e.maxHeight, ee = e.width, y = e.minWidth, b = e.maxWidth, te = e.basicSetup, x = e.placeholder, ne = e.indentWithTab, S = e.editable, C = e.readOnly, re = e.root, w = e.initialState, ie = dt(e, Yt), T = (0, H.useRef)(null), E = qt({
1152
+ root: re,
1153
+ value: i,
1154
+ autoFocus: p,
1155
+ theme: h,
1156
+ height: g,
1157
+ minHeight: _,
1158
+ maxHeight: v,
1159
+ width: ee,
1160
+ minWidth: y,
1161
+ maxWidth: b,
1162
+ basicSetup: te,
1163
+ placeholder: x,
1164
+ indentWithTab: ne,
1152
1165
  editable: S,
1153
1166
  readOnly: C,
1154
- selection: i,
1155
- onChange: o,
1156
- onStatistics: c,
1157
- onCreateEditor: l,
1158
- onUpdate: u,
1159
- extensions: a,
1167
+ selection: a,
1168
+ onChange: l,
1169
+ onStatistics: u,
1170
+ onCreateEditor: d,
1171
+ onUpdate: f,
1172
+ extensions: c,
1160
1173
  initialState: w
1161
- });
1162
- (0, I.useImperativeHandle)(t, () => ({
1163
- editor: E.current,
1174
+ }), D = E.state, O = E.view, k = E.container, A = E.setContainer;
1175
+ (0, H.useImperativeHandle)(t, () => ({
1176
+ editor: T.current,
1164
1177
  state: D,
1165
1178
  view: O
1166
1179
  }), [
1167
- E,
1180
+ T,
1168
1181
  k,
1169
1182
  D,
1170
1183
  O
1171
1184
  ]);
1172
- var j = (0, I.useCallback)((e) => {
1173
- E.current = e, A(e);
1185
+ var j = (0, H.useCallback)((e) => {
1186
+ T.current = e, A(e);
1174
1187
  }, [A]);
1175
- if (typeof r != "string") throw Error("value must be typeof string but got " + typeof r);
1176
- var M = typeof f == "string" ? "cm-theme-" + f : "cm-theme";
1177
- return /*#__PURE__*/ (0, Wt.jsx)("div", s({
1188
+ if (typeof i != "string") throw Error("value must be typeof string but got " + typeof i);
1189
+ var ae = typeof h == "string" ? "cm-theme-" + h : "cm-theme";
1190
+ return /*#__PURE__*/ (0, Jt.jsx)("div", s({
1178
1191
  ref: j,
1179
- className: "" + M + (n ? " " + n : "")
1180
- }, T));
1192
+ className: "" + ae + (n ? " " + n : "")
1193
+ }, ie));
1181
1194
  });
1182
- Kt.displayName = "CodeMirror";
1195
+ Xt.displayName = "CodeMirror";
1183
1196
  //#endregion
1184
- export { mt as n, Kt as t };
1197
+ export { pt as n, Xt as t };