c0ckp1t 1.0.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (676) hide show
  1. package/LICENSE +201 -0
  2. package/README.md +5 -0
  3. package/c0ckp1t-demo/Constants.mjs +125 -0
  4. package/c0ckp1t-demo/components/sidebar.vue +82 -0
  5. package/c0ckp1t-demo/main.vue +39 -0
  6. package/c0ckp1t-demo/pages/devices.vue +63 -0
  7. package/c0ckp1t-demo/pages/homepage.vue +63 -0
  8. package/c0ckp1t-demo/pages/report.vue +63 -0
  9. package/c0ckp1t-demo/store.mjs +133 -0
  10. package/components/ExecButton.vue +62 -0
  11. package/components/FsTree.vue +550 -0
  12. package/components/Markdown.mjs +274 -0
  13. package/components/MarkdownUtils.mjs +180 -0
  14. package/components/Tree.mjs +175 -0
  15. package/components/code-mirror.vue +445 -0
  16. package/components/vue3-ace-editor.vue +331 -0
  17. package/components/xbutton.vue +45 -0
  18. package/components/xcard-h.vue +175 -0
  19. package/components/xcard.vue +76 -0
  20. package/components/xcheck.vue +35 -0
  21. package/components/xcheckbox.vue +52 -0
  22. package/components/xcode.vue +139 -0
  23. package/components/xcollapse.vue +52 -0
  24. package/components/xcolor.vue +84 -0
  25. package/components/xdropdown.vue +104 -0
  26. package/components/xdropdown2.vue +140 -0
  27. package/components/xhidden.vue +30 -0
  28. package/components/xinput.vue +101 -0
  29. package/components/xinput2.vue +101 -0
  30. package/components/xjson.vue +95 -0
  31. package/components/xkv.vue +41 -0
  32. package/components/xlabel.vue +56 -0
  33. package/components/xlist.vue +83 -0
  34. package/components/xmap.vue +106 -0
  35. package/components/xmarkdown.vue +269 -0
  36. package/components/xnav.vue +98 -0
  37. package/components/xsection.vue +164 -0
  38. package/components/xsound.vue +251 -0
  39. package/components/xtable-open.vue +179 -0
  40. package/components/xtabs.vue +72 -0
  41. package/components/xterminal.vue +456 -0
  42. package/components/xtextarea.vue +83 -0
  43. package/components/xtoggle.vue +68 -0
  44. package/components/xtoggle3.vue +67 -0
  45. package/components/xtree.vue +140 -0
  46. package/components/xupload.vue +129 -0
  47. package/core/Content.mjs +92 -0
  48. package/core/DocUtils.mjs +189 -0
  49. package/core/GlobalStore.mjs +329 -0
  50. package/core/Island.mjs +429 -0
  51. package/core/IslandDefault.mjs +229 -0
  52. package/core/JsUtils.mjs +483 -0
  53. package/core/Logging.mjs +59 -0
  54. package/core/Page404.vue +152 -0
  55. package/core/PageFallback.vue +168 -0
  56. package/core/PageMain.vue +181 -0
  57. package/core/Theme.mjs +1759 -0
  58. package/core/VueUtils.mjs +200 -0
  59. package/core/WsUtils.mjs +274 -0
  60. package/core/img/Flag_of_the_United_States.svg +25 -0
  61. package/core/img/logo_v1.svg +98 -0
  62. package/core/img/logo_v2.svg +98 -0
  63. package/core/img/state-uniqueId-8k.wav +0 -0
  64. package/core/main-offcanvas.vue +99 -0
  65. package/core/nodes/_api.vue +82 -0
  66. package/core/nodes/node-container.vue +103 -0
  67. package/core/nodes/node.vue +246 -0
  68. package/core/nodes/place-holder.vue +47 -0
  69. package/core/nodes/root.vue +52 -0
  70. package/core/notify/NotifyUtils.mjs +150 -0
  71. package/core/notify/toast.vue +150 -0
  72. package/core/pages/About.vue +57 -0
  73. package/core/pages/Cache.vue +155 -0
  74. package/core/pages/Connection.vue +192 -0
  75. package/core/pages/Connections.vue +102 -0
  76. package/core/pages/Documentation.vue +263 -0
  77. package/core/pages/Notifies.vue +156 -0
  78. package/core/pages/Traffic.vue +152 -0
  79. package/core/pages/connections/connection-header-details.vue +80 -0
  80. package/core/pages/connections/page-connection-default.vue +92 -0
  81. package/core/pages/connections/page-connection.vue +176 -0
  82. package/core/pages/connections/ws-connection.vue +146 -0
  83. package/core/pages/frontend/Bootstrap.vue +1140 -0
  84. package/core/pages/frontend/Components.vue +56 -0
  85. package/core/pages/frontend/ComponentsAdv.vue +203 -0
  86. package/core/pages/frontend/ComponentsBasic.vue +336 -0
  87. package/core/pages/frontend/Theme.vue +473 -0
  88. package/core/pages/frontend/component-view.vue +65 -0
  89. package/core/pages/traffic/WsLogUtils.mjs +91 -0
  90. package/core/pages/traffic/log-ws-exec.vue +124 -0
  91. package/core/pages/traffic/log-ws-exec2.vue +129 -0
  92. package/core/sfc/code-item.vue +169 -0
  93. package/core/sfc/connection-header.vue +62 -0
  94. package/core/sfc/info-api.vue +158 -0
  95. package/core/sfc/md-toc.vue +346 -0
  96. package/core/sfc/scroll-to-top.vue +69 -0
  97. package/core/sfc/task.vue +98 -0
  98. package/core/sfc/text-to-md.vue +25 -0
  99. package/core/sfc/toc-list.vue +175 -0
  100. package/core/ws-client/AuthNState.mjs +84 -0
  101. package/core/ws-client/Connection.mjs +580 -0
  102. package/core/ws-client/Session.mjs +72 -0
  103. package/core/ws-client/WsClient.mjs +230 -0
  104. package/core/ws-client/WsLogUtils.mjs +91 -0
  105. package/core/ws-client/ws-connection.vue +144 -0
  106. package/css/Changa-Medium.ttf +0 -0
  107. package/css/Makefile +10 -0
  108. package/css/README.md +25 -0
  109. package/css/bootstrap-c0ckp1t.css +11861 -0
  110. package/css/bootstrap.min.css +6 -0
  111. package/css/fontawesome/brands.min.css +6 -0
  112. package/css/fontawesome/fontawesome.min.css +8 -0
  113. package/css/fontawesome/regular.min.css +6 -0
  114. package/css/fontawesome/solid.min.css +6 -0
  115. package/css/webfonts/fa-brands-400.woff2 +0 -0
  116. package/css/webfonts/fa-regular-400.woff2 +0 -0
  117. package/css/webfonts/fa-solid-900.woff2 +0 -0
  118. package/docs/Introduction.md +3 -0
  119. package/favicon-192x192.png +0 -0
  120. package/favicon-32x32.png +0 -0
  121. package/favicon-64x64.png +0 -0
  122. package/favicon.ico +0 -0
  123. package/index-cdn.html +66 -0
  124. package/js_ext/Makefile +26 -0
  125. package/js_ext/ace-editor/ace.js +22037 -0
  126. package/js_ext/ace-editor/ext-beautify.js +343 -0
  127. package/js_ext/ace-editor/ext-code_lens.js +204 -0
  128. package/js_ext/ace-editor/ext-command_bar.js +469 -0
  129. package/js_ext/ace-editor/ext-diff.js +4265 -0
  130. package/js_ext/ace-editor/ext-elastic_tabstops_lite.js +238 -0
  131. package/js_ext/ace-editor/ext-emmet.js +1303 -0
  132. package/js_ext/ace-editor/ext-error_marker.js +9 -0
  133. package/js_ext/ace-editor/ext-hardwrap.js +127 -0
  134. package/js_ext/ace-editor/ext-inline_autocomplete.js +3547 -0
  135. package/js_ext/ace-editor/ext-keybinding_menu.js +185 -0
  136. package/js_ext/ace-editor/ext-language_tools.js +2724 -0
  137. package/js_ext/ace-editor/ext-linking.js +66 -0
  138. package/js_ext/ace-editor/ext-modelist.js +276 -0
  139. package/js_ext/ace-editor/ext-options.js +859 -0
  140. package/js_ext/ace-editor/ext-prompt.js +3161 -0
  141. package/js_ext/ace-editor/ext-rtl.js +146 -0
  142. package/js_ext/ace-editor/ext-searchbox.js +385 -0
  143. package/js_ext/ace-editor/ext-settings_menu.js +859 -0
  144. package/js_ext/ace-editor/ext-simple_tokenizer.js +137 -0
  145. package/js_ext/ace-editor/ext-spellcheck.js +79 -0
  146. package/js_ext/ace-editor/ext-split.js +203 -0
  147. package/js_ext/ace-editor/ext-static_highlight.js +194 -0
  148. package/js_ext/ace-editor/ext-statusbar.js +63 -0
  149. package/js_ext/ace-editor/ext-textarea.js +400 -0
  150. package/js_ext/ace-editor/ext-themelist.js +80 -0
  151. package/js_ext/ace-editor/ext-whitespace.js +201 -0
  152. package/js_ext/ace-editor/keybinding-emacs.js +1067 -0
  153. package/js_ext/ace-editor/keybinding-sublime.js +409 -0
  154. package/js_ext/ace-editor/keybinding-vim.js +7101 -0
  155. package/js_ext/ace-editor/keybinding-vscode.js +255 -0
  156. package/js_ext/ace-editor/mode-abap.js +200 -0
  157. package/js_ext/ace-editor/mode-abc.js +243 -0
  158. package/js_ext/ace-editor/mode-actionscript.js +234 -0
  159. package/js_ext/ace-editor/mode-ada.js +108 -0
  160. package/js_ext/ace-editor/mode-alda.js +279 -0
  161. package/js_ext/ace-editor/mode-apache_conf.js +318 -0
  162. package/js_ext/ace-editor/mode-apex.js +402 -0
  163. package/js_ext/ace-editor/mode-applescript.js +232 -0
  164. package/js_ext/ace-editor/mode-aql.js +92 -0
  165. package/js_ext/ace-editor/mode-asciidoc.js +311 -0
  166. package/js_ext/ace-editor/mode-asl.js +357 -0
  167. package/js_ext/ace-editor/mode-assembly_arm32.js +185 -0
  168. package/js_ext/ace-editor/mode-assembly_x86.js +170 -0
  169. package/js_ext/ace-editor/mode-astro.js +2474 -0
  170. package/js_ext/ace-editor/mode-autohotkey.js +208 -0
  171. package/js_ext/ace-editor/mode-basic.js +201 -0
  172. package/js_ext/ace-editor/mode-batchfile.js +199 -0
  173. package/js_ext/ace-editor/mode-bibtex.js +318 -0
  174. package/js_ext/ace-editor/mode-c9search.js +250 -0
  175. package/js_ext/ace-editor/mode-c_cpp.js +417 -0
  176. package/js_ext/ace-editor/mode-cirru.js +192 -0
  177. package/js_ext/ace-editor/mode-clojure.js +322 -0
  178. package/js_ext/ace-editor/mode-clue.js +361 -0
  179. package/js_ext/ace-editor/mode-cobol.js +82 -0
  180. package/js_ext/ace-editor/mode-coffee.js +335 -0
  181. package/js_ext/ace-editor/mode-coldfusion.js +2409 -0
  182. package/js_ext/ace-editor/mode-crystal.js +586 -0
  183. package/js_ext/ace-editor/mode-csharp.js +413 -0
  184. package/js_ext/ace-editor/mode-csound_document.js +4072 -0
  185. package/js_ext/ace-editor/mode-csound_orchestra.js +2923 -0
  186. package/js_ext/ace-editor/mode-csound_score.js +409 -0
  187. package/js_ext/ace-editor/mode-csp.js +59 -0
  188. package/js_ext/ace-editor/mode-css.js +632 -0
  189. package/js_ext/ace-editor/mode-csv.js +97 -0
  190. package/js_ext/ace-editor/mode-curly.js +2381 -0
  191. package/js_ext/ace-editor/mode-cuttlefish.js +56 -0
  192. package/js_ext/ace-editor/mode-d.js +450 -0
  193. package/js_ext/ace-editor/mode-dart.js +618 -0
  194. package/js_ext/ace-editor/mode-diff.js +129 -0
  195. package/js_ext/ace-editor/mode-django.js +2422 -0
  196. package/js_ext/ace-editor/mode-dockerfile.js +427 -0
  197. package/js_ext/ace-editor/mode-dot.js +348 -0
  198. package/js_ext/ace-editor/mode-drools.js +607 -0
  199. package/js_ext/ace-editor/mode-edifact.js +130 -0
  200. package/js_ext/ace-editor/mode-eiffel.js +120 -0
  201. package/js_ext/ace-editor/mode-ejs.js +3277 -0
  202. package/js_ext/ace-editor/mode-elixir.js +443 -0
  203. package/js_ext/ace-editor/mode-elm.js +274 -0
  204. package/js_ext/ace-editor/mode-erlang.js +836 -0
  205. package/js_ext/ace-editor/mode-flix.js +164 -0
  206. package/js_ext/ace-editor/mode-forth.js +253 -0
  207. package/js_ext/ace-editor/mode-fortran.js +361 -0
  208. package/js_ext/ace-editor/mode-fsharp.js +277 -0
  209. package/js_ext/ace-editor/mode-fsl.js +226 -0
  210. package/js_ext/ace-editor/mode-ftl.js +1255 -0
  211. package/js_ext/ace-editor/mode-gcode.js +74 -0
  212. package/js_ext/ace-editor/mode-gherkin.js +154 -0
  213. package/js_ext/ace-editor/mode-gitignore.js +49 -0
  214. package/js_ext/ace-editor/mode-glsl.js +475 -0
  215. package/js_ext/ace-editor/mode-gobstones.js +1459 -0
  216. package/js_ext/ace-editor/mode-golang.js +341 -0
  217. package/js_ext/ace-editor/mode-graphqlschema.js +174 -0
  218. package/js_ext/ace-editor/mode-groovy.js +1401 -0
  219. package/js_ext/ace-editor/mode-haml.js +1906 -0
  220. package/js_ext/ace-editor/mode-handlebars.js +2438 -0
  221. package/js_ext/ace-editor/mode-haskell.js +324 -0
  222. package/js_ext/ace-editor/mode-haskell_cabal.js +135 -0
  223. package/js_ext/ace-editor/mode-haxe.js +313 -0
  224. package/js_ext/ace-editor/mode-hjson.js +318 -0
  225. package/js_ext/ace-editor/mode-html.js +2339 -0
  226. package/js_ext/ace-editor/mode-html_elixir.js +2845 -0
  227. package/js_ext/ace-editor/mode-html_ruby.js +3294 -0
  228. package/js_ext/ace-editor/mode-ini.js +138 -0
  229. package/js_ext/ace-editor/mode-io.js +210 -0
  230. package/js_ext/ace-editor/mode-ion.js +477 -0
  231. package/js_ext/ace-editor/mode-jack.js +293 -0
  232. package/js_ext/ace-editor/mode-jade.js +2017 -0
  233. package/js_ext/ace-editor/mode-java.js +1565 -0
  234. package/js_ext/ace-editor/mode-javascript.js +1191 -0
  235. package/js_ext/ace-editor/mode-jexl.js +270 -0
  236. package/js_ext/ace-editor/mode-json.js +275 -0
  237. package/js_ext/ace-editor/mode-json5.js +308 -0
  238. package/js_ext/ace-editor/mode-jsoniq.js +2577 -0
  239. package/js_ext/ace-editor/mode-jsp.js +1618 -0
  240. package/js_ext/ace-editor/mode-jssm.js +293 -0
  241. package/js_ext/ace-editor/mode-jsx.js +1209 -0
  242. package/js_ext/ace-editor/mode-julia.js +254 -0
  243. package/js_ext/ace-editor/mode-kotlin.js +445 -0
  244. package/js_ext/ace-editor/mode-latex.js +252 -0
  245. package/js_ext/ace-editor/mode-latte.js +2522 -0
  246. package/js_ext/ace-editor/mode-less.js +742 -0
  247. package/js_ext/ace-editor/mode-liquid.js +2741 -0
  248. package/js_ext/ace-editor/mode-lisp.js +104 -0
  249. package/js_ext/ace-editor/mode-livescript.js +272 -0
  250. package/js_ext/ace-editor/mode-logiql.js +272 -0
  251. package/js_ext/ace-editor/mode-logtalk.js +309 -0
  252. package/js_ext/ace-editor/mode-lsl.js +287 -0
  253. package/js_ext/ace-editor/mode-lua.js +393 -0
  254. package/js_ext/ace-editor/mode-luapage.js +2785 -0
  255. package/js_ext/ace-editor/mode-lucene.js +145 -0
  256. package/js_ext/ace-editor/mode-makefile.js +374 -0
  257. package/js_ext/ace-editor/mode-markdown.js +2935 -0
  258. package/js_ext/ace-editor/mode-mask.js +1757 -0
  259. package/js_ext/ace-editor/mode-matlab.js +239 -0
  260. package/js_ext/ace-editor/mode-maze.js +256 -0
  261. package/js_ext/ace-editor/mode-mediawiki.js +580 -0
  262. package/js_ext/ace-editor/mode-mel.js +213 -0
  263. package/js_ext/ace-editor/mode-mips.js +231 -0
  264. package/js_ext/ace-editor/mode-mixal.js +110 -0
  265. package/js_ext/ace-editor/mode-mushcode.js +642 -0
  266. package/js_ext/ace-editor/mode-mysql.js +150 -0
  267. package/js_ext/ace-editor/mode-nasal.js +513 -0
  268. package/js_ext/ace-editor/mode-nginx.js +262 -0
  269. package/js_ext/ace-editor/mode-nim.js +325 -0
  270. package/js_ext/ace-editor/mode-nix.js +555 -0
  271. package/js_ext/ace-editor/mode-nsis.js +279 -0
  272. package/js_ext/ace-editor/mode-nunjucks.js +2677 -0
  273. package/js_ext/ace-editor/mode-objectivec.js +626 -0
  274. package/js_ext/ace-editor/mode-ocaml.js +378 -0
  275. package/js_ext/ace-editor/mode-odin.js +449 -0
  276. package/js_ext/ace-editor/mode-partiql.js +750 -0
  277. package/js_ext/ace-editor/mode-pascal.js +204 -0
  278. package/js_ext/ace-editor/mode-perl.js +318 -0
  279. package/js_ext/ace-editor/mode-pgsql.js +1860 -0
  280. package/js_ext/ace-editor/mode-php.js +14072 -0
  281. package/js_ext/ace-editor/mode-php_laravel_blade.js +14260 -0
  282. package/js_ext/ace-editor/mode-pig.js +278 -0
  283. package/js_ext/ace-editor/mode-plain_text.js +27 -0
  284. package/js_ext/ace-editor/mode-plsql.js +268 -0
  285. package/js_ext/ace-editor/mode-powershell.js +567 -0
  286. package/js_ext/ace-editor/mode-praat.js +412 -0
  287. package/js_ext/ace-editor/mode-prisma.js +457 -0
  288. package/js_ext/ace-editor/mode-prolog.js +305 -0
  289. package/js_ext/ace-editor/mode-properties.js +69 -0
  290. package/js_ext/ace-editor/mode-protobuf.js +498 -0
  291. package/js_ext/ace-editor/mode-prql.js +323 -0
  292. package/js_ext/ace-editor/mode-puppet.js +316 -0
  293. package/js_ext/ace-editor/mode-python.js +476 -0
  294. package/js_ext/ace-editor/mode-qml.js +346 -0
  295. package/js_ext/ace-editor/mode-r.js +387 -0
  296. package/js_ext/ace-editor/mode-raku.js +516 -0
  297. package/js_ext/ace-editor/mode-razor.js +2697 -0
  298. package/js_ext/ace-editor/mode-rdoc.js +286 -0
  299. package/js_ext/ace-editor/mode-red.js +388 -0
  300. package/js_ext/ace-editor/mode-redshift.js +321 -0
  301. package/js_ext/ace-editor/mode-rhtml.js +2750 -0
  302. package/js_ext/ace-editor/mode-robot.js +168 -0
  303. package/js_ext/ace-editor/mode-rst.js +245 -0
  304. package/js_ext/ace-editor/mode-ruby.js +921 -0
  305. package/js_ext/ace-editor/mode-rust.js +393 -0
  306. package/js_ext/ace-editor/mode-sac.js +349 -0
  307. package/js_ext/ace-editor/mode-sass.js +480 -0
  308. package/js_ext/ace-editor/mode-scad.js +350 -0
  309. package/js_ext/ace-editor/mode-scala.js +1395 -0
  310. package/js_ext/ace-editor/mode-scheme.js +210 -0
  311. package/js_ext/ace-editor/mode-scrypt.js +317 -0
  312. package/js_ext/ace-editor/mode-scss.js +768 -0
  313. package/js_ext/ace-editor/mode-sh.js +387 -0
  314. package/js_ext/ace-editor/mode-sjs.js +1393 -0
  315. package/js_ext/ace-editor/mode-slim.js +4770 -0
  316. package/js_ext/ace-editor/mode-smarty.js +2436 -0
  317. package/js_ext/ace-editor/mode-smithy.js +456 -0
  318. package/js_ext/ace-editor/mode-snippets.js +183 -0
  319. package/js_ext/ace-editor/mode-soy_template.js +2611 -0
  320. package/js_ext/ace-editor/mode-space.js +151 -0
  321. package/js_ext/ace-editor/mode-sparql.js +288 -0
  322. package/js_ext/ace-editor/mode-sql.js +221 -0
  323. package/js_ext/ace-editor/mode-sqlserver.js +391 -0
  324. package/js_ext/ace-editor/mode-stylus.js +443 -0
  325. package/js_ext/ace-editor/mode-svg.js +1487 -0
  326. package/js_ext/ace-editor/mode-swift.js +342 -0
  327. package/js_ext/ace-editor/mode-tcl.js +338 -0
  328. package/js_ext/ace-editor/mode-terraform.js +346 -0
  329. package/js_ext/ace-editor/mode-tex.js +212 -0
  330. package/js_ext/ace-editor/mode-text.js +9 -0
  331. package/js_ext/ace-editor/mode-textile.js +125 -0
  332. package/js_ext/ace-editor/mode-toml.js +129 -0
  333. package/js_ext/ace-editor/mode-tsv.js +124 -0
  334. package/js_ext/ace-editor/mode-tsx.js +1276 -0
  335. package/js_ext/ace-editor/mode-turtle.js +264 -0
  336. package/js_ext/ace-editor/mode-twig.js +2502 -0
  337. package/js_ext/ace-editor/mode-typescript.js +1254 -0
  338. package/js_ext/ace-editor/mode-vala.js +554 -0
  339. package/js_ext/ace-editor/mode-vbscript.js +731 -0
  340. package/js_ext/ace-editor/mode-velocity.js +2580 -0
  341. package/js_ext/ace-editor/mode-verilog.js +98 -0
  342. package/js_ext/ace-editor/mode-vhdl.js +94 -0
  343. package/js_ext/ace-editor/mode-visualforce.js +2454 -0
  344. package/js_ext/ace-editor/mode-vue.js +3834 -0
  345. package/js_ext/ace-editor/mode-wollok.js +1329 -0
  346. package/js_ext/ace-editor/mode-xml.js +477 -0
  347. package/js_ext/ace-editor/mode-xquery.js +2589 -0
  348. package/js_ext/ace-editor/mode-yaml.js +395 -0
  349. package/js_ext/ace-editor/mode-zeek.js +502 -0
  350. package/js_ext/ace-editor/mode-zig.js +585 -0
  351. package/js_ext/ace-editor/snippets/abap.js +9 -0
  352. package/js_ext/ace-editor/snippets/abc.js +16 -0
  353. package/js_ext/ace-editor/snippets/actionscript.js +16 -0
  354. package/js_ext/ace-editor/snippets/ada.js +9 -0
  355. package/js_ext/ace-editor/snippets/alda.js +9 -0
  356. package/js_ext/ace-editor/snippets/apache_conf.js +9 -0
  357. package/js_ext/ace-editor/snippets/apex.js +9 -0
  358. package/js_ext/ace-editor/snippets/applescript.js +9 -0
  359. package/js_ext/ace-editor/snippets/aql.js +9 -0
  360. package/js_ext/ace-editor/snippets/asciidoc.js +9 -0
  361. package/js_ext/ace-editor/snippets/asl.js +9 -0
  362. package/js_ext/ace-editor/snippets/assembly_arm32.js +9 -0
  363. package/js_ext/ace-editor/snippets/assembly_x86.js +9 -0
  364. package/js_ext/ace-editor/snippets/astro.js +9 -0
  365. package/js_ext/ace-editor/snippets/autohotkey.js +9 -0
  366. package/js_ext/ace-editor/snippets/basic.js +9 -0
  367. package/js_ext/ace-editor/snippets/batchfile.js +9 -0
  368. package/js_ext/ace-editor/snippets/bibtex.js +9 -0
  369. package/js_ext/ace-editor/snippets/c9search.js +9 -0
  370. package/js_ext/ace-editor/snippets/c_cpp.js +16 -0
  371. package/js_ext/ace-editor/snippets/cirru.js +9 -0
  372. package/js_ext/ace-editor/snippets/clojure.js +16 -0
  373. package/js_ext/ace-editor/snippets/clue.js +9 -0
  374. package/js_ext/ace-editor/snippets/cobol.js +9 -0
  375. package/js_ext/ace-editor/snippets/coffee.js +16 -0
  376. package/js_ext/ace-editor/snippets/coldfusion.js +9 -0
  377. package/js_ext/ace-editor/snippets/crystal.js +9 -0
  378. package/js_ext/ace-editor/snippets/csharp.js +9 -0
  379. package/js_ext/ace-editor/snippets/csound_document.js +16 -0
  380. package/js_ext/ace-editor/snippets/csound_orchestra.js +16 -0
  381. package/js_ext/ace-editor/snippets/csound_score.js +9 -0
  382. package/js_ext/ace-editor/snippets/csp.js +9 -0
  383. package/js_ext/ace-editor/snippets/css.js +16 -0
  384. package/js_ext/ace-editor/snippets/csv.js +9 -0
  385. package/js_ext/ace-editor/snippets/curly.js +9 -0
  386. package/js_ext/ace-editor/snippets/cuttlefish.js +9 -0
  387. package/js_ext/ace-editor/snippets/d.js +9 -0
  388. package/js_ext/ace-editor/snippets/dart.js +16 -0
  389. package/js_ext/ace-editor/snippets/diff.js +16 -0
  390. package/js_ext/ace-editor/snippets/django.js +16 -0
  391. package/js_ext/ace-editor/snippets/dockerfile.js +9 -0
  392. package/js_ext/ace-editor/snippets/dot.js +9 -0
  393. package/js_ext/ace-editor/snippets/drools.js +16 -0
  394. package/js_ext/ace-editor/snippets/edifact.js +16 -0
  395. package/js_ext/ace-editor/snippets/eiffel.js +9 -0
  396. package/js_ext/ace-editor/snippets/ejs.js +9 -0
  397. package/js_ext/ace-editor/snippets/elixir.js +9 -0
  398. package/js_ext/ace-editor/snippets/elm.js +9 -0
  399. package/js_ext/ace-editor/snippets/erlang.js +16 -0
  400. package/js_ext/ace-editor/snippets/flix.js +9 -0
  401. package/js_ext/ace-editor/snippets/forth.js +9 -0
  402. package/js_ext/ace-editor/snippets/fortran.js +9 -0
  403. package/js_ext/ace-editor/snippets/fsharp.js +9 -0
  404. package/js_ext/ace-editor/snippets/fsl.js +16 -0
  405. package/js_ext/ace-editor/snippets/ftl.js +9 -0
  406. package/js_ext/ace-editor/snippets/gcode.js +9 -0
  407. package/js_ext/ace-editor/snippets/gherkin.js +9 -0
  408. package/js_ext/ace-editor/snippets/gitignore.js +9 -0
  409. package/js_ext/ace-editor/snippets/glsl.js +9 -0
  410. package/js_ext/ace-editor/snippets/gobstones.js +16 -0
  411. package/js_ext/ace-editor/snippets/golang.js +9 -0
  412. package/js_ext/ace-editor/snippets/graphqlschema.js +16 -0
  413. package/js_ext/ace-editor/snippets/groovy.js +9 -0
  414. package/js_ext/ace-editor/snippets/haml.js +16 -0
  415. package/js_ext/ace-editor/snippets/handlebars.js +9 -0
  416. package/js_ext/ace-editor/snippets/haskell.js +16 -0
  417. package/js_ext/ace-editor/snippets/haskell_cabal.js +9 -0
  418. package/js_ext/ace-editor/snippets/haxe.js +9 -0
  419. package/js_ext/ace-editor/snippets/hjson.js +9 -0
  420. package/js_ext/ace-editor/snippets/html.js +16 -0
  421. package/js_ext/ace-editor/snippets/html_elixir.js +9 -0
  422. package/js_ext/ace-editor/snippets/html_ruby.js +9 -0
  423. package/js_ext/ace-editor/snippets/ini.js +9 -0
  424. package/js_ext/ace-editor/snippets/io.js +74 -0
  425. package/js_ext/ace-editor/snippets/ion.js +9 -0
  426. package/js_ext/ace-editor/snippets/jack.js +9 -0
  427. package/js_ext/ace-editor/snippets/jade.js +9 -0
  428. package/js_ext/ace-editor/snippets/java.js +16 -0
  429. package/js_ext/ace-editor/snippets/javascript.js +16 -0
  430. package/js_ext/ace-editor/snippets/jexl.js +9 -0
  431. package/js_ext/ace-editor/snippets/json.js +9 -0
  432. package/js_ext/ace-editor/snippets/json5.js +9 -0
  433. package/js_ext/ace-editor/snippets/jsoniq.js +78 -0
  434. package/js_ext/ace-editor/snippets/jsp.js +16 -0
  435. package/js_ext/ace-editor/snippets/jssm.js +9 -0
  436. package/js_ext/ace-editor/snippets/jsx.js +9 -0
  437. package/js_ext/ace-editor/snippets/julia.js +9 -0
  438. package/js_ext/ace-editor/snippets/kotlin.js +9 -0
  439. package/js_ext/ace-editor/snippets/latex.js +9 -0
  440. package/js_ext/ace-editor/snippets/latte.js +9 -0
  441. package/js_ext/ace-editor/snippets/less.js +9 -0
  442. package/js_ext/ace-editor/snippets/liquid.js +16 -0
  443. package/js_ext/ace-editor/snippets/lisp.js +9 -0
  444. package/js_ext/ace-editor/snippets/livescript.js +9 -0
  445. package/js_ext/ace-editor/snippets/logiql.js +9 -0
  446. package/js_ext/ace-editor/snippets/logtalk.js +9 -0
  447. package/js_ext/ace-editor/snippets/lsl.js +16 -0
  448. package/js_ext/ace-editor/snippets/lua.js +16 -0
  449. package/js_ext/ace-editor/snippets/luapage.js +9 -0
  450. package/js_ext/ace-editor/snippets/lucene.js +9 -0
  451. package/js_ext/ace-editor/snippets/makefile.js +16 -0
  452. package/js_ext/ace-editor/snippets/markdown.js +16 -0
  453. package/js_ext/ace-editor/snippets/mask.js +9 -0
  454. package/js_ext/ace-editor/snippets/matlab.js +9 -0
  455. package/js_ext/ace-editor/snippets/maze.js +16 -0
  456. package/js_ext/ace-editor/snippets/mediawiki.js +9 -0
  457. package/js_ext/ace-editor/snippets/mel.js +9 -0
  458. package/js_ext/ace-editor/snippets/mips.js +9 -0
  459. package/js_ext/ace-editor/snippets/mixal.js +9 -0
  460. package/js_ext/ace-editor/snippets/mushcode.js +9 -0
  461. package/js_ext/ace-editor/snippets/mysql.js +9 -0
  462. package/js_ext/ace-editor/snippets/nasal.js +9 -0
  463. package/js_ext/ace-editor/snippets/nginx.js +9 -0
  464. package/js_ext/ace-editor/snippets/nim.js +9 -0
  465. package/js_ext/ace-editor/snippets/nix.js +9 -0
  466. package/js_ext/ace-editor/snippets/nsis.js +9 -0
  467. package/js_ext/ace-editor/snippets/nunjucks.js +9 -0
  468. package/js_ext/ace-editor/snippets/objectivec.js +9 -0
  469. package/js_ext/ace-editor/snippets/ocaml.js +9 -0
  470. package/js_ext/ace-editor/snippets/odin.js +9 -0
  471. package/js_ext/ace-editor/snippets/partiql.js +9 -0
  472. package/js_ext/ace-editor/snippets/pascal.js +9 -0
  473. package/js_ext/ace-editor/snippets/perl.js +16 -0
  474. package/js_ext/ace-editor/snippets/pgsql.js +9 -0
  475. package/js_ext/ace-editor/snippets/php.js +16 -0
  476. package/js_ext/ace-editor/snippets/php_laravel_blade.js +9 -0
  477. package/js_ext/ace-editor/snippets/pig.js +9 -0
  478. package/js_ext/ace-editor/snippets/plain_text.js +9 -0
  479. package/js_ext/ace-editor/snippets/plsql.js +9 -0
  480. package/js_ext/ace-editor/snippets/powershell.js +9 -0
  481. package/js_ext/ace-editor/snippets/praat.js +9 -0
  482. package/js_ext/ace-editor/snippets/prisma.js +9 -0
  483. package/js_ext/ace-editor/snippets/prolog.js +9 -0
  484. package/js_ext/ace-editor/snippets/properties.js +9 -0
  485. package/js_ext/ace-editor/snippets/protobuf.js +9 -0
  486. package/js_ext/ace-editor/snippets/prql.js +9 -0
  487. package/js_ext/ace-editor/snippets/puppet.js +9 -0
  488. package/js_ext/ace-editor/snippets/python.js +16 -0
  489. package/js_ext/ace-editor/snippets/qml.js +9 -0
  490. package/js_ext/ace-editor/snippets/r.js +16 -0
  491. package/js_ext/ace-editor/snippets/raku.js +9 -0
  492. package/js_ext/ace-editor/snippets/razor.js +16 -0
  493. package/js_ext/ace-editor/snippets/rdoc.js +9 -0
  494. package/js_ext/ace-editor/snippets/red.js +9 -0
  495. package/js_ext/ace-editor/snippets/redshift.js +9 -0
  496. package/js_ext/ace-editor/snippets/rhtml.js +9 -0
  497. package/js_ext/ace-editor/snippets/robot.js +16 -0
  498. package/js_ext/ace-editor/snippets/rst.js +16 -0
  499. package/js_ext/ace-editor/snippets/ruby.js +16 -0
  500. package/js_ext/ace-editor/snippets/rust.js +9 -0
  501. package/js_ext/ace-editor/snippets/sac.js +9 -0
  502. package/js_ext/ace-editor/snippets/sass.js +9 -0
  503. package/js_ext/ace-editor/snippets/scad.js +9 -0
  504. package/js_ext/ace-editor/snippets/scala.js +9 -0
  505. package/js_ext/ace-editor/snippets/scheme.js +9 -0
  506. package/js_ext/ace-editor/snippets/scrypt.js +9 -0
  507. package/js_ext/ace-editor/snippets/scss.js +9 -0
  508. package/js_ext/ace-editor/snippets/sh.js +16 -0
  509. package/js_ext/ace-editor/snippets/sjs.js +9 -0
  510. package/js_ext/ace-editor/snippets/slim.js +9 -0
  511. package/js_ext/ace-editor/snippets/smarty.js +9 -0
  512. package/js_ext/ace-editor/snippets/smithy.js +9 -0
  513. package/js_ext/ace-editor/snippets/snippets.js +16 -0
  514. package/js_ext/ace-editor/snippets/soy_template.js +9 -0
  515. package/js_ext/ace-editor/snippets/space.js +9 -0
  516. package/js_ext/ace-editor/snippets/sparql.js +9 -0
  517. package/js_ext/ace-editor/snippets/sql.js +16 -0
  518. package/js_ext/ace-editor/snippets/sqlserver.js +16 -0
  519. package/js_ext/ace-editor/snippets/stylus.js +9 -0
  520. package/js_ext/ace-editor/snippets/svg.js +9 -0
  521. package/js_ext/ace-editor/snippets/swift.js +9 -0
  522. package/js_ext/ace-editor/snippets/tcl.js +16 -0
  523. package/js_ext/ace-editor/snippets/terraform.js +9 -0
  524. package/js_ext/ace-editor/snippets/tex.js +16 -0
  525. package/js_ext/ace-editor/snippets/text.js +9 -0
  526. package/js_ext/ace-editor/snippets/textile.js +16 -0
  527. package/js_ext/ace-editor/snippets/toml.js +9 -0
  528. package/js_ext/ace-editor/snippets/tsv.js +9 -0
  529. package/js_ext/ace-editor/snippets/tsx.js +9 -0
  530. package/js_ext/ace-editor/snippets/turtle.js +9 -0
  531. package/js_ext/ace-editor/snippets/twig.js +9 -0
  532. package/js_ext/ace-editor/snippets/typescript.js +9 -0
  533. package/js_ext/ace-editor/snippets/vala.js +199 -0
  534. package/js_ext/ace-editor/snippets/vbscript.js +9 -0
  535. package/js_ext/ace-editor/snippets/velocity.js +17 -0
  536. package/js_ext/ace-editor/snippets/verilog.js +9 -0
  537. package/js_ext/ace-editor/snippets/vhdl.js +9 -0
  538. package/js_ext/ace-editor/snippets/visualforce.js +9 -0
  539. package/js_ext/ace-editor/snippets/vue.js +9 -0
  540. package/js_ext/ace-editor/snippets/wollok.js +16 -0
  541. package/js_ext/ace-editor/snippets/xml.js +9 -0
  542. package/js_ext/ace-editor/snippets/xquery.js +78 -0
  543. package/js_ext/ace-editor/snippets/yaml.js +9 -0
  544. package/js_ext/ace-editor/snippets/zeek.js +9 -0
  545. package/js_ext/ace-editor/snippets/zig.js +9 -0
  546. package/js_ext/ace-editor/theme-ambiance.js +18 -0
  547. package/js_ext/ace-editor/theme-chaos.js +18 -0
  548. package/js_ext/ace-editor/theme-chrome.js +18 -0
  549. package/js_ext/ace-editor/theme-cloud9_day.js +19 -0
  550. package/js_ext/ace-editor/theme-cloud9_night.js +18 -0
  551. package/js_ext/ace-editor/theme-cloud9_night_low_color.js +18 -0
  552. package/js_ext/ace-editor/theme-cloud_editor.js +19 -0
  553. package/js_ext/ace-editor/theme-cloud_editor_dark.js +19 -0
  554. package/js_ext/ace-editor/theme-clouds.js +18 -0
  555. package/js_ext/ace-editor/theme-clouds_midnight.js +18 -0
  556. package/js_ext/ace-editor/theme-cobalt.js +18 -0
  557. package/js_ext/ace-editor/theme-crimson_editor.js +18 -0
  558. package/js_ext/ace-editor/theme-dawn.js +18 -0
  559. package/js_ext/ace-editor/theme-dracula.js +19 -0
  560. package/js_ext/ace-editor/theme-dreamweaver.js +18 -0
  561. package/js_ext/ace-editor/theme-eclipse.js +19 -0
  562. package/js_ext/ace-editor/theme-github.js +18 -0
  563. package/js_ext/ace-editor/theme-github_dark.js +18 -0
  564. package/js_ext/ace-editor/theme-github_light_default.js +18 -0
  565. package/js_ext/ace-editor/theme-gob.js +18 -0
  566. package/js_ext/ace-editor/theme-gruvbox.js +18 -0
  567. package/js_ext/ace-editor/theme-gruvbox_dark_hard.js +18 -0
  568. package/js_ext/ace-editor/theme-gruvbox_light_hard.js +18 -0
  569. package/js_ext/ace-editor/theme-idle_fingers.js +18 -0
  570. package/js_ext/ace-editor/theme-iplastic.js +18 -0
  571. package/js_ext/ace-editor/theme-katzenmilch.js +18 -0
  572. package/js_ext/ace-editor/theme-kr_theme.js +18 -0
  573. package/js_ext/ace-editor/theme-kuroir.js +18 -0
  574. package/js_ext/ace-editor/theme-merbivore.js +18 -0
  575. package/js_ext/ace-editor/theme-merbivore_soft.js +18 -0
  576. package/js_ext/ace-editor/theme-mono_industrial.js +18 -0
  577. package/js_ext/ace-editor/theme-monokai.js +18 -0
  578. package/js_ext/ace-editor/theme-nord_dark.js +19 -0
  579. package/js_ext/ace-editor/theme-one_dark.js +18 -0
  580. package/js_ext/ace-editor/theme-pastel_on_dark.js +18 -0
  581. package/js_ext/ace-editor/theme-solarized_dark.js +18 -0
  582. package/js_ext/ace-editor/theme-solarized_light.js +18 -0
  583. package/js_ext/ace-editor/theme-sqlserver.js +18 -0
  584. package/js_ext/ace-editor/theme-terminal.js +18 -0
  585. package/js_ext/ace-editor/theme-textmate.js +16 -0
  586. package/js_ext/ace-editor/theme-tomorrow.js +18 -0
  587. package/js_ext/ace-editor/theme-tomorrow_night.js +18 -0
  588. package/js_ext/ace-editor/theme-tomorrow_night_blue.js +18 -0
  589. package/js_ext/ace-editor/theme-tomorrow_night_bright.js +18 -0
  590. package/js_ext/ace-editor/theme-tomorrow_night_eighties.js +18 -0
  591. package/js_ext/ace-editor/theme-twilight.js +18 -0
  592. package/js_ext/ace-editor/theme-vibrant_ink.js +18 -0
  593. package/js_ext/ace-editor/theme-xcode.js +18 -0
  594. package/js_ext/ace-editor/worker-base.js +1332 -0
  595. package/js_ext/ace-editor/worker-coffee.js +1381 -0
  596. package/js_ext/ace-editor/worker-css.js +8913 -0
  597. package/js_ext/ace-editor/worker-html.js +10843 -0
  598. package/js_ext/ace-editor/worker-javascript.js +15353 -0
  599. package/js_ext/ace-editor/worker-json.js +1626 -0
  600. package/js_ext/ace-editor/worker-lua.js +3519 -0
  601. package/js_ext/ace-editor/worker-php.js +3788 -0
  602. package/js_ext/ace-editor/worker-xml.js +3122 -0
  603. package/js_ext/ace-editor/worker-xquery.js +57579 -0
  604. package/js_ext/ace-editor/worker-yaml.js +5819 -0
  605. package/js_ext/bootstrap.bundle.min.js +7 -0
  606. package/js_ext/highlight/default.min.css +9 -0
  607. package/js_ext/highlight/go.min.js +14 -0
  608. package/js_ext/highlight/highlight.min.js +1207 -0
  609. package/js_ext/highlight/stackoverflow-dark.min.css +13 -0
  610. package/js_ext/idb-keyval-6.2.2.mjs +7 -0
  611. package/js_ext/json-viewer.bundle.js +52 -0
  612. package/js_ext/loglevel-plugin-prefix.min.js +1 -0
  613. package/js_ext/loglevel.min.js +2 -0
  614. package/js_ext/markdown/auto-render.min.js +1 -0
  615. package/js_ext/markdown/auto-render.mjs +245 -0
  616. package/js_ext/markdown/fonts/KaTeX_AMS-Regular.woff +0 -0
  617. package/js_ext/markdown/fonts/KaTeX_AMS-Regular.woff2 +0 -0
  618. package/js_ext/markdown/fonts/KaTeX_Caligraphic-Regular.ttf +0 -0
  619. package/js_ext/markdown/fonts/KaTeX_Caligraphic-Regular.woff +0 -0
  620. package/js_ext/markdown/fonts/KaTeX_Caligraphic-Regular.woff2 +0 -0
  621. package/js_ext/markdown/fonts/KaTeX_Fraktur-Bold.woff +0 -0
  622. package/js_ext/markdown/fonts/KaTeX_Fraktur-Bold.woff2 +0 -0
  623. package/js_ext/markdown/fonts/KaTeX_Fraktur-Regular.ttf +0 -0
  624. package/js_ext/markdown/fonts/KaTeX_Fraktur-Regular.woff +0 -0
  625. package/js_ext/markdown/fonts/KaTeX_Fraktur-Regular.woff2 +0 -0
  626. package/js_ext/markdown/fonts/KaTeX_Main-Bold.woff +0 -0
  627. package/js_ext/markdown/fonts/KaTeX_Main-Bold.woff2 +0 -0
  628. package/js_ext/markdown/fonts/KaTeX_Main-Italic.woff +0 -0
  629. package/js_ext/markdown/fonts/KaTeX_Main-Italic.woff2 +0 -0
  630. package/js_ext/markdown/fonts/KaTeX_Main-Regular.woff +0 -0
  631. package/js_ext/markdown/fonts/KaTeX_Main-Regular.woff2 +0 -0
  632. package/js_ext/markdown/fonts/KaTeX_Math-BoldItalic.woff +0 -0
  633. package/js_ext/markdown/fonts/KaTeX_Math-BoldItalic.woff2 +0 -0
  634. package/js_ext/markdown/fonts/KaTeX_Math-Italic.woff +0 -0
  635. package/js_ext/markdown/fonts/KaTeX_Math-Italic.woff2 +0 -0
  636. package/js_ext/markdown/fonts/KaTeX_SansSerif-Bold.woff +0 -0
  637. package/js_ext/markdown/fonts/KaTeX_SansSerif-Bold.woff2 +0 -0
  638. package/js_ext/markdown/fonts/KaTeX_SansSerif-Italic.woff +0 -0
  639. package/js_ext/markdown/fonts/KaTeX_SansSerif-Italic.woff2 +0 -0
  640. package/js_ext/markdown/fonts/KaTeX_SansSerif-Regular.woff +0 -0
  641. package/js_ext/markdown/fonts/KaTeX_SansSerif-Regular.woff2 +0 -0
  642. package/js_ext/markdown/fonts/KaTeX_Script-Regular.ttf +0 -0
  643. package/js_ext/markdown/fonts/KaTeX_Script-Regular.woff +0 -0
  644. package/js_ext/markdown/fonts/KaTeX_Script-Regular.woff2 +0 -0
  645. package/js_ext/markdown/fonts/KaTeX_Size1-Regular.ttf +0 -0
  646. package/js_ext/markdown/fonts/KaTeX_Size1-Regular.woff +0 -0
  647. package/js_ext/markdown/fonts/KaTeX_Size1-Regular.woff2 +0 -0
  648. package/js_ext/markdown/fonts/KaTeX_Size2-Regular.woff +0 -0
  649. package/js_ext/markdown/fonts/KaTeX_Size2-Regular.woff2 +0 -0
  650. package/js_ext/markdown/fonts/KaTeX_Size3-Regular.woff +0 -0
  651. package/js_ext/markdown/fonts/KaTeX_Size3-Regular.woff2 +0 -0
  652. package/js_ext/markdown/fonts/KaTeX_Size4-Regular.ttf +0 -0
  653. package/js_ext/markdown/fonts/KaTeX_Size4-Regular.woff +0 -0
  654. package/js_ext/markdown/fonts/KaTeX_Size4-Regular.woff2 +0 -0
  655. package/js_ext/markdown/fonts/KaTeX_Typewriter-Regular.woff +0 -0
  656. package/js_ext/markdown/fonts/KaTeX_Typewriter-Regular.woff2 +0 -0
  657. package/js_ext/markdown/katex.min.css +1 -0
  658. package/js_ext/markdown/katex.min.js +1 -0
  659. package/js_ext/markdown/katex.mjs +18416 -0
  660. package/js_ext/markdown/markdown-it.min.js +3 -0
  661. package/js_ext/markdown/markdownItAnchor.umd.js +2 -0
  662. package/js_ext/mitt.mjs +2 -0
  663. package/js_ext/moment.min.js +1 -0
  664. package/js_ext/msgpack.mjs +1612 -0
  665. package/js_ext/rxjs.umd.min.js +195 -0
  666. package/js_ext/rxjs.umd.min.js.map +1 -0
  667. package/js_ext/vue-router.esm-browser.prod.js +6 -0
  668. package/js_ext/vue.esm-browser.min.js +18 -0
  669. package/js_ext/vue.esm-browser.prod.min.js +3 -0
  670. package/js_ext/vue3-sfc-loader.esm.js +1840 -0
  671. package/js_ext/vue3-sfc-loader.esm.js.map +4 -0
  672. package/js_ext/vue3-sfc-loader.js +1839 -0
  673. package/js_ext/wavesurfer.esm.mjs +1 -0
  674. package/js_ext/xstate.web.mjs +15 -0
  675. package/package.json +50 -0
  676. package/style.css +31 -0
@@ -0,0 +1,1067 @@
1
+ ace.define("ace/occur",["require","exports","module","ace/lib/oop","ace/search","ace/edit_session","ace/search_highlight","ace/lib/dom"], function(require, exports, module){"use strict";
2
+ var __extends = (this && this.__extends) || (function () {
3
+ var extendStatics = function (d, b) {
4
+ extendStatics = Object.setPrototypeOf ||
5
+ ({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||
6
+ function (d, b) { for (var p in b) if (Object.prototype.hasOwnProperty.call(b, p)) d[p] = b[p]; };
7
+ return extendStatics(d, b);
8
+ };
9
+ return function (d, b) {
10
+ if (typeof b !== "function" && b !== null)
11
+ throw new TypeError("Class extends value " + String(b) + " is not a constructor or null");
12
+ extendStatics(d, b);
13
+ function __() { this.constructor = d; }
14
+ d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
15
+ };
16
+ })();
17
+ var oop = require("./lib/oop");
18
+ var Search = require("./search").Search;
19
+ var EditSession = require("./edit_session").EditSession;
20
+ var SearchHighlight = require("./search_highlight").SearchHighlight;
21
+ var Occur = /** @class */ (function (_super) {
22
+ __extends(Occur, _super);
23
+ function Occur() {
24
+ return _super !== null && _super.apply(this, arguments) || this;
25
+ }
26
+ Occur.prototype.enter = function (editor, options) {
27
+ if (!options.needle)
28
+ return false;
29
+ var pos = editor.getCursorPosition();
30
+ this.displayOccurContent(editor, options);
31
+ var translatedPos = this.originalToOccurPosition(editor.session, pos);
32
+ editor.moveCursorToPosition(translatedPos);
33
+ return true;
34
+ };
35
+ Occur.prototype.exit = function (editor, options) {
36
+ var pos = options.translatePosition && editor.getCursorPosition();
37
+ var translatedPos = pos && this.occurToOriginalPosition(editor.session, pos);
38
+ this.displayOriginalContent(editor);
39
+ if (translatedPos)
40
+ editor.moveCursorToPosition(translatedPos);
41
+ return true;
42
+ };
43
+ Occur.prototype.highlight = function (sess, regexp) {
44
+ var hl = sess.$occurHighlight = sess.$occurHighlight || sess.addDynamicMarker(new SearchHighlight(null, "ace_occur-highlight", "text"));
45
+ hl.setRegexp(regexp);
46
+ sess._emit("changeBackMarker"); // force highlight layer redraw
47
+ };
48
+ Occur.prototype.displayOccurContent = function (editor, options) {
49
+ this.$originalSession = editor.session;
50
+ var found = this.matchingLines(editor.session, options);
51
+ var lines = found.map(function (foundLine) { return foundLine.content; });
52
+ var occurSession = new EditSession(lines.join('\n'));
53
+ occurSession.$occur = this;
54
+ occurSession.$occurMatchingLines = found;
55
+ editor.setSession(occurSession);
56
+ this.$useEmacsStyleLineStart = this.$originalSession.$useEmacsStyleLineStart;
57
+ occurSession.$useEmacsStyleLineStart = this.$useEmacsStyleLineStart;
58
+ this.highlight(occurSession, options.re);
59
+ occurSession._emit('changeBackMarker');
60
+ };
61
+ Occur.prototype.displayOriginalContent = function (editor) {
62
+ editor.setSession(this.$originalSession);
63
+ this.$originalSession.$useEmacsStyleLineStart = this.$useEmacsStyleLineStart;
64
+ };
65
+ Occur.prototype.originalToOccurPosition = function (session, pos) {
66
+ var lines = session.$occurMatchingLines;
67
+ var nullPos = { row: 0, column: 0 };
68
+ if (!lines)
69
+ return nullPos;
70
+ for (var i = 0; i < lines.length; i++) {
71
+ if (lines[i].row === pos.row)
72
+ return { row: i, column: pos.column };
73
+ }
74
+ return nullPos;
75
+ };
76
+ Occur.prototype.occurToOriginalPosition = function (session, pos) {
77
+ var lines = session.$occurMatchingLines;
78
+ if (!lines || !lines[pos.row])
79
+ return pos;
80
+ return { row: lines[pos.row].row, column: pos.column };
81
+ };
82
+ Occur.prototype.matchingLines = function (session, options) {
83
+ options = oop.mixin({}, options);
84
+ if (!session || !options.needle)
85
+ return [];
86
+ var search = new Search();
87
+ search.set(options);
88
+ return search.findAll(session).reduce(function (lines, range) {
89
+ var row = range.start.row;
90
+ var last = lines[lines.length - 1];
91
+ return last && last.row === row ?
92
+ lines :
93
+ lines.concat({ row: row, content: session.getLine(row) });
94
+ }, []);
95
+ };
96
+ return Occur;
97
+ }(Search));
98
+ var dom = require('./lib/dom');
99
+ dom.importCssString(".ace_occur-highlight {\n\
100
+ border-radius: 4px;\n\
101
+ background-color: rgba(87, 255, 8, 0.25);\n\
102
+ position: absolute;\n\
103
+ z-index: 4;\n\
104
+ box-sizing: border-box;\n\
105
+ box-shadow: 0 0 4px rgb(91, 255, 50);\n\
106
+ }\n\
107
+ .ace_dark .ace_occur-highlight {\n\
108
+ background-color: rgb(80, 140, 85);\n\
109
+ box-shadow: 0 0 4px rgb(60, 120, 70);\n\
110
+ }\n", "incremental-occur-highlighting", false);
111
+ exports.Occur = Occur;
112
+
113
+ });
114
+
115
+ ace.define("ace/commands/occur_commands",["require","exports","module","ace/config","ace/occur","ace/keyboard/hash_handler","ace/lib/oop"], function(require, exports, module){var config = require("../config"), Occur = require("../occur").Occur;
116
+ var occurStartCommand = {
117
+ name: "occur",
118
+ exec: function (editor, options) {
119
+ var alreadyInOccur = !!editor.session.$occur;
120
+ var occurSessionActive = new Occur().enter(editor, options);
121
+ if (occurSessionActive && !alreadyInOccur)
122
+ OccurKeyboardHandler.installIn(editor);
123
+ },
124
+ readOnly: true
125
+ };
126
+ var occurCommands = [{
127
+ name: "occurexit",
128
+ bindKey: 'esc|Ctrl-G',
129
+ exec: function (editor) {
130
+ var occur = editor.session.$occur;
131
+ if (!occur)
132
+ return;
133
+ occur.exit(editor, {});
134
+ if (!editor.session.$occur)
135
+ OccurKeyboardHandler.uninstallFrom(editor);
136
+ },
137
+ readOnly: true
138
+ }, {
139
+ name: "occuraccept",
140
+ bindKey: 'enter',
141
+ exec: function (editor) {
142
+ var occur = editor.session.$occur;
143
+ if (!occur)
144
+ return;
145
+ occur.exit(editor, { translatePosition: true });
146
+ if (!editor.session.$occur)
147
+ OccurKeyboardHandler.uninstallFrom(editor);
148
+ },
149
+ readOnly: true
150
+ }];
151
+ var HashHandler = require("../keyboard/hash_handler").HashHandler;
152
+ var oop = require("../lib/oop");
153
+ function OccurKeyboardHandler() { }
154
+ oop.inherits(OccurKeyboardHandler, HashHandler);
155
+ (function () {
156
+ this.isOccurHandler = true;
157
+ this.attach = function (editor) {
158
+ HashHandler.call(this, occurCommands, editor.commands.platform);
159
+ this.$editor = editor;
160
+ };
161
+ var handleKeyboard$super = this.handleKeyboard;
162
+ this.handleKeyboard = function (data, hashId, key, keyCode) {
163
+ var cmd = handleKeyboard$super.call(this, data, hashId, key, keyCode);
164
+ return (cmd && cmd.command) ? cmd : undefined;
165
+ };
166
+ }).call(OccurKeyboardHandler.prototype);
167
+ OccurKeyboardHandler.installIn = function (editor) {
168
+ var handler = new this();
169
+ editor.keyBinding.addKeyboardHandler(handler);
170
+ editor.commands.addCommands(occurCommands);
171
+ };
172
+ OccurKeyboardHandler.uninstallFrom = function (editor) {
173
+ editor.commands.removeCommands(occurCommands);
174
+ var handler = editor.getKeyboardHandler();
175
+ if (handler.isOccurHandler)
176
+ editor.keyBinding.removeKeyboardHandler(handler);
177
+ };
178
+ exports.occurStartCommand = occurStartCommand;
179
+
180
+ });
181
+
182
+ ace.define("ace/commands/incremental_search_commands",["require","exports","module","ace/config","ace/lib/oop","ace/keyboard/hash_handler","ace/commands/occur_commands"], function(require, exports, module){var config = require("../config");
183
+ var oop = require("../lib/oop");
184
+ var HashHandler = require("../keyboard/hash_handler").HashHandler;
185
+ var occurStartCommand = require("./occur_commands").occurStartCommand;
186
+ exports.iSearchStartCommands = [{
187
+ name: "iSearch",
188
+ bindKey: { win: "Ctrl-F", mac: "Command-F" },
189
+ exec: function (editor, options) {
190
+ config.loadModule(["core", "ace/incremental_search"], function (e) {
191
+ var iSearch = e.iSearch = e.iSearch || new e.IncrementalSearch();
192
+ iSearch.activate(editor, options.backwards);
193
+ if (options.jumpToFirstMatch)
194
+ iSearch.next(options);
195
+ });
196
+ },
197
+ readOnly: true
198
+ }, {
199
+ name: "iSearchBackwards",
200
+ exec: function (editor, jumpToNext) { editor.execCommand('iSearch', { backwards: true }); },
201
+ readOnly: true
202
+ }, {
203
+ name: "iSearchAndGo",
204
+ bindKey: { win: "Ctrl-K", mac: "Command-G" },
205
+ exec: function (editor, jumpToNext) { editor.execCommand('iSearch', { jumpToFirstMatch: true, useCurrentOrPrevSearch: true }); },
206
+ readOnly: true
207
+ }, {
208
+ name: "iSearchBackwardsAndGo",
209
+ bindKey: { win: "Ctrl-Shift-K", mac: "Command-Shift-G" },
210
+ exec: function (editor) { editor.execCommand('iSearch', { jumpToFirstMatch: true, backwards: true, useCurrentOrPrevSearch: true }); },
211
+ readOnly: true
212
+ }];
213
+ exports.iSearchCommands = [{
214
+ name: "restartSearch",
215
+ bindKey: { win: "Ctrl-F", mac: "Command-F" },
216
+ exec: function (iSearch) {
217
+ iSearch.cancelSearch(true);
218
+ }
219
+ }, {
220
+ name: "searchForward",
221
+ bindKey: { win: "Ctrl-S|Ctrl-K", mac: "Ctrl-S|Command-G" },
222
+ exec: function (iSearch, options) {
223
+ options.useCurrentOrPrevSearch = true;
224
+ iSearch.next(options);
225
+ }
226
+ }, {
227
+ name: "searchBackward",
228
+ bindKey: { win: "Ctrl-R|Ctrl-Shift-K", mac: "Ctrl-R|Command-Shift-G" },
229
+ exec: function (iSearch, options) {
230
+ options.useCurrentOrPrevSearch = true;
231
+ options.backwards = true;
232
+ iSearch.next(options);
233
+ }
234
+ }, {
235
+ name: "extendSearchTerm",
236
+ exec: function (iSearch, string) {
237
+ iSearch.addString(string);
238
+ }
239
+ }, {
240
+ name: "extendSearchTermSpace",
241
+ bindKey: "space",
242
+ exec: function (iSearch) { iSearch.addString(' '); }
243
+ }, {
244
+ name: "shrinkSearchTerm",
245
+ bindKey: "backspace",
246
+ exec: function (iSearch) {
247
+ iSearch.removeChar();
248
+ }
249
+ }, {
250
+ name: 'confirmSearch',
251
+ bindKey: 'return',
252
+ exec: function (iSearch) { iSearch.deactivate(); }
253
+ }, {
254
+ name: 'cancelSearch',
255
+ bindKey: 'esc|Ctrl-G',
256
+ exec: function (iSearch) { iSearch.deactivate(true); }
257
+ }, {
258
+ name: 'occurisearch',
259
+ bindKey: 'Ctrl-O',
260
+ exec: function (iSearch) {
261
+ var options = oop.mixin({}, iSearch.$options);
262
+ iSearch.deactivate();
263
+ occurStartCommand.exec(iSearch.$editor, options);
264
+ }
265
+ }, {
266
+ name: "yankNextWord",
267
+ bindKey: "Ctrl-w",
268
+ exec: function (iSearch) {
269
+ var ed = iSearch.$editor, range = ed.selection.getRangeOfMovements(function (sel) { sel.moveCursorWordRight(); }), string = ed.session.getTextRange(range);
270
+ iSearch.addString(string);
271
+ }
272
+ }, {
273
+ name: "yankNextChar",
274
+ bindKey: "Ctrl-Alt-y",
275
+ exec: function (iSearch) {
276
+ var ed = iSearch.$editor, range = ed.selection.getRangeOfMovements(function (sel) { sel.moveCursorRight(); }), string = ed.session.getTextRange(range);
277
+ iSearch.addString(string);
278
+ }
279
+ }, {
280
+ name: 'recenterTopBottom',
281
+ bindKey: 'Ctrl-l',
282
+ exec: function (iSearch) { iSearch.$editor.execCommand('recenterTopBottom'); }
283
+ }, {
284
+ name: 'selectAllMatches',
285
+ bindKey: 'Ctrl-space',
286
+ exec: function (iSearch) {
287
+ var ed = iSearch.$editor, hl = ed.session.$isearchHighlight, ranges = hl && hl.cache ? hl.cache
288
+ .reduce(function (ranges, ea) {
289
+ return ranges.concat(ea ? ea : []);
290
+ }, []) : [];
291
+ iSearch.deactivate(false);
292
+ ranges.forEach(ed.selection.addRange.bind(ed.selection));
293
+ }
294
+ }, {
295
+ name: 'searchAsRegExp',
296
+ bindKey: 'Alt-r',
297
+ exec: function (iSearch) {
298
+ iSearch.convertNeedleToRegExp();
299
+ }
300
+ }].map(function (cmd) {
301
+ cmd.readOnly = true;
302
+ cmd.isIncrementalSearchCommand = true;
303
+ cmd.scrollIntoView = "animate-cursor";
304
+ return cmd;
305
+ });
306
+ function IncrementalSearchKeyboardHandler(iSearch) {
307
+ this.$iSearch = iSearch;
308
+ }
309
+ oop.inherits(IncrementalSearchKeyboardHandler, HashHandler);
310
+ (function () {
311
+ this.attach = function (editor) {
312
+ var iSearch = this.$iSearch;
313
+ HashHandler.call(this, exports.iSearchCommands, editor.commands.platform);
314
+ this.$commandExecHandler = editor.commands.on('exec', function (e) {
315
+ if (!e.command.isIncrementalSearchCommand)
316
+ return iSearch.deactivate();
317
+ e.stopPropagation();
318
+ e.preventDefault();
319
+ var scrollTop = editor.session.getScrollTop();
320
+ var result = e.command.exec(iSearch, e.args || {});
321
+ editor.renderer.scrollCursorIntoView(null, 0.5);
322
+ editor.renderer.animateScrolling(scrollTop);
323
+ return result;
324
+ });
325
+ };
326
+ this.detach = function (editor) {
327
+ if (!this.$commandExecHandler)
328
+ return;
329
+ editor.commands.off('exec', this.$commandExecHandler);
330
+ delete this.$commandExecHandler;
331
+ };
332
+ var handleKeyboard$super = this.handleKeyboard;
333
+ this.handleKeyboard = function (data, hashId, key, keyCode) {
334
+ if (((hashId === 1 /*ctrl*/ || hashId === 8 /*command*/) && key === 'v')
335
+ || (hashId === 1 /*ctrl*/ && key === 'y'))
336
+ return null;
337
+ var cmd = handleKeyboard$super.call(this, data, hashId, key, keyCode);
338
+ if (cmd && cmd.command) {
339
+ return cmd;
340
+ }
341
+ if (hashId == -1) {
342
+ var extendCmd = this.commands.extendSearchTerm;
343
+ if (extendCmd) {
344
+ return { command: extendCmd, args: key };
345
+ }
346
+ }
347
+ return false;
348
+ };
349
+ }).call(IncrementalSearchKeyboardHandler.prototype);
350
+ exports.IncrementalSearchKeyboardHandler = IncrementalSearchKeyboardHandler;
351
+
352
+ });
353
+
354
+ ace.define("ace/incremental_search",["require","exports","module","ace/range","ace/search","ace/search_highlight","ace/commands/incremental_search_commands","ace/lib/dom","ace/commands/command_manager","ace/editor","ace/config"], function(require, exports, module){"use strict";
355
+ var __extends = (this && this.__extends) || (function () {
356
+ var extendStatics = function (d, b) {
357
+ extendStatics = Object.setPrototypeOf ||
358
+ ({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||
359
+ function (d, b) { for (var p in b) if (Object.prototype.hasOwnProperty.call(b, p)) d[p] = b[p]; };
360
+ return extendStatics(d, b);
361
+ };
362
+ return function (d, b) {
363
+ if (typeof b !== "function" && b !== null)
364
+ throw new TypeError("Class extends value " + String(b) + " is not a constructor or null");
365
+ extendStatics(d, b);
366
+ function __() { this.constructor = d; }
367
+ d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
368
+ };
369
+ })();
370
+ var Range = require("./range").Range;
371
+ var Search = require("./search").Search;
372
+ var SearchHighlight = require("./search_highlight").SearchHighlight;
373
+ var iSearchCommandModule = require("./commands/incremental_search_commands");
374
+ var ISearchKbd = iSearchCommandModule.IncrementalSearchKeyboardHandler;
375
+ function isRegExp(obj) {
376
+ return obj instanceof RegExp;
377
+ }
378
+ function regExpToObject(re) {
379
+ var string = String(re), start = string.indexOf('/'), flagStart = string.lastIndexOf('/');
380
+ return {
381
+ expression: string.slice(start + 1, flagStart),
382
+ flags: string.slice(flagStart + 1)
383
+ };
384
+ }
385
+ function stringToRegExp(string, flags) {
386
+ try {
387
+ return new RegExp(string, flags);
388
+ }
389
+ catch (e) {
390
+ return string;
391
+ }
392
+ }
393
+ function objectToRegExp(obj) {
394
+ return stringToRegExp(obj.expression, obj.flags);
395
+ }
396
+ var IncrementalSearch = /** @class */ (function (_super) {
397
+ __extends(IncrementalSearch, _super);
398
+ function IncrementalSearch() {
399
+ var _this = _super.call(this) || this;
400
+ _this.$options = { wrap: false, skipCurrent: false };
401
+ _this.$keyboardHandler = new ISearchKbd(_this);
402
+ return _this;
403
+ }
404
+ IncrementalSearch.prototype.activate = function (editor, backwards) {
405
+ this.$editor = editor;
406
+ this.$startPos = this.$currentPos = editor.getCursorPosition();
407
+ this.$options.needle = '';
408
+ this.$options.backwards = backwards;
409
+ editor.keyBinding.addKeyboardHandler(this.$keyboardHandler);
410
+ this.$originalEditorOnPaste = editor.onPaste;
411
+ editor.onPaste = this.onPaste.bind(this);
412
+ this.$mousedownHandler = editor.on('mousedown', this.onMouseDown.bind(this));
413
+ this.selectionFix(editor);
414
+ this.statusMessage(true);
415
+ };
416
+ IncrementalSearch.prototype.deactivate = function (reset) {
417
+ this.cancelSearch(reset);
418
+ var editor = this.$editor;
419
+ editor.keyBinding.removeKeyboardHandler(this.$keyboardHandler);
420
+ if (this.$mousedownHandler) {
421
+ editor.off('mousedown', this.$mousedownHandler);
422
+ delete this.$mousedownHandler;
423
+ }
424
+ editor.onPaste = this.$originalEditorOnPaste;
425
+ this.message('');
426
+ };
427
+ IncrementalSearch.prototype.selectionFix = function (editor) {
428
+ if (editor.selection.isEmpty() && !editor.session.$emacsMark) {
429
+ editor.clearSelection();
430
+ }
431
+ };
432
+ IncrementalSearch.prototype.highlight = function (regexp) {
433
+ var sess = this.$editor.session, hl = sess.$isearchHighlight = sess.$isearchHighlight || sess.addDynamicMarker(new SearchHighlight(null, "ace_isearch-result", "text"));
434
+ hl.setRegexp(regexp);
435
+ sess._emit("changeBackMarker"); // force highlight layer redraw
436
+ };
437
+ IncrementalSearch.prototype.cancelSearch = function (reset) {
438
+ var e = this.$editor;
439
+ this.$prevNeedle = this.$options.needle;
440
+ this.$options.needle = '';
441
+ if (reset) {
442
+ e.moveCursorToPosition(this.$startPos);
443
+ this.$currentPos = this.$startPos;
444
+ }
445
+ else {
446
+ e.pushEmacsMark && e.pushEmacsMark(this.$startPos, false);
447
+ }
448
+ this.highlight(null);
449
+ return Range.fromPoints(this.$currentPos, this.$currentPos);
450
+ };
451
+ IncrementalSearch.prototype.highlightAndFindWithNeedle = function (moveToNext, needleUpdateFunc) {
452
+ if (!this.$editor)
453
+ return null;
454
+ var options = this.$options;
455
+ if (needleUpdateFunc) {
456
+ options.needle = needleUpdateFunc.call(this, options.needle || '') || '';
457
+ }
458
+ if (options.needle.length === 0) {
459
+ this.statusMessage(true);
460
+ return this.cancelSearch(true);
461
+ }
462
+ options.start = this.$currentPos;
463
+ var session = this.$editor.session, found = this.find(session), shouldSelect = this.$editor.emacsMark ?
464
+ !!this.$editor.emacsMark() : !this.$editor.selection.isEmpty();
465
+ if (found) {
466
+ if (options.backwards)
467
+ found = Range.fromPoints(found.end, found.start);
468
+ this.$editor.selection.setRange(Range.fromPoints(shouldSelect ? this.$startPos : found.end, found.end));
469
+ if (moveToNext)
470
+ this.$currentPos = found.end;
471
+ this.highlight(options.re);
472
+ }
473
+ this.statusMessage(found);
474
+ return found;
475
+ };
476
+ IncrementalSearch.prototype.addString = function (s) {
477
+ return this.highlightAndFindWithNeedle(false, function (needle) {
478
+ if (!isRegExp(needle))
479
+ return needle + s;
480
+ var reObj = regExpToObject(needle);
481
+ reObj.expression += s;
482
+ return objectToRegExp(reObj);
483
+ });
484
+ };
485
+ IncrementalSearch.prototype.removeChar = function (c) {
486
+ return this.highlightAndFindWithNeedle(false, function (needle) {
487
+ if (!isRegExp(needle))
488
+ return needle.substring(0, needle.length - 1);
489
+ var reObj = regExpToObject(needle);
490
+ reObj.expression = reObj.expression.substring(0, reObj.expression.length - 1);
491
+ return objectToRegExp(reObj);
492
+ });
493
+ };
494
+ IncrementalSearch.prototype.next = function (options) {
495
+ options = options || {};
496
+ this.$options.backwards = !!options.backwards;
497
+ this.$currentPos = this.$editor.getCursorPosition();
498
+ return this.highlightAndFindWithNeedle(true, function (needle) {
499
+ return options.useCurrentOrPrevSearch && needle.length === 0 ?
500
+ this.$prevNeedle || '' : needle;
501
+ });
502
+ };
503
+ IncrementalSearch.prototype.onMouseDown = function (evt) {
504
+ this.deactivate();
505
+ return true;
506
+ };
507
+ IncrementalSearch.prototype.onPaste = function (text) {
508
+ this.addString(text);
509
+ };
510
+ IncrementalSearch.prototype.convertNeedleToRegExp = function () {
511
+ return this.highlightAndFindWithNeedle(false, function (needle) {
512
+ return isRegExp(needle) ? needle : stringToRegExp(needle, 'ig');
513
+ });
514
+ };
515
+ IncrementalSearch.prototype.convertNeedleToString = function () {
516
+ return this.highlightAndFindWithNeedle(false, function (needle) {
517
+ return isRegExp(needle) ? regExpToObject(needle).expression : needle;
518
+ });
519
+ };
520
+ IncrementalSearch.prototype.statusMessage = function (found) {
521
+ var options = this.$options, msg = '';
522
+ msg += options.backwards ? 'reverse-' : '';
523
+ msg += 'isearch: ' + options.needle;
524
+ msg += found ? '' : ' (not found)';
525
+ this.message(msg);
526
+ };
527
+ IncrementalSearch.prototype.message = function (msg) {
528
+ if (this.$editor.showCommandLine) {
529
+ this.$editor.showCommandLine(msg);
530
+ this.$editor.focus();
531
+ }
532
+ };
533
+ return IncrementalSearch;
534
+ }(Search));
535
+ exports.IncrementalSearch = IncrementalSearch;
536
+ var dom = require('./lib/dom');
537
+ dom.importCssString("\n.ace_marker-layer .ace_isearch-result {\n position: absolute;\n z-index: 6;\n box-sizing: border-box;\n}\ndiv.ace_isearch-result {\n border-radius: 4px;\n background-color: rgba(255, 200, 0, 0.5);\n box-shadow: 0 0 4px rgb(255, 200, 0);\n}\n.ace_dark div.ace_isearch-result {\n background-color: rgb(100, 110, 160);\n box-shadow: 0 0 4px rgb(80, 90, 140);\n}", "incremental-search-highlighting", false);
538
+ var commands = require("./commands/command_manager");
539
+ (function () {
540
+ this.setupIncrementalSearch = function (editor, val) {
541
+ if (this.usesIncrementalSearch == val)
542
+ return;
543
+ this.usesIncrementalSearch = val;
544
+ var iSearchCommands = iSearchCommandModule.iSearchStartCommands;
545
+ var method = val ? 'addCommands' : 'removeCommands';
546
+ this[method](iSearchCommands);
547
+ };
548
+ }).call(commands.CommandManager.prototype);
549
+ var Editor = require("./editor").Editor;
550
+ require("./config").defineOptions(Editor.prototype, "editor", {
551
+ useIncrementalSearch: {
552
+ set: function (val) {
553
+ this.keyBinding.$handlers.forEach(function (handler) {
554
+ if (handler.setupIncrementalSearch) {
555
+ handler.setupIncrementalSearch(this, val);
556
+ }
557
+ });
558
+ this._emit('incrementalSearchSettingChanged', { isEnabled: val });
559
+ }
560
+ }
561
+ });
562
+
563
+ });
564
+
565
+ ace.define("ace/keyboard/emacs",["require","exports","module","ace/lib/dom","ace/incremental_search","ace/commands/incremental_search_commands","ace/keyboard/hash_handler","ace/lib/keys"], function(require, exports, module){"use strict";
566
+ var dom = require("../lib/dom");
567
+ require("../incremental_search");
568
+ var iSearchCommandModule = require("../commands/incremental_search_commands");
569
+ var HashHandler = require("./hash_handler").HashHandler;
570
+ exports.handler = new HashHandler();
571
+ exports.handler.isEmacs = true;
572
+ exports.handler.$id = "ace/keyboard/emacs";
573
+ dom.importCssString("\n.emacs-mode .ace_cursor{\n border: 1px rgba(50,250,50,0.8) solid!important;\n box-sizing: border-box!important;\n background-color: rgba(0,250,0,0.9);\n opacity: 0.5;\n}\n.emacs-mode .ace_hidden-cursors .ace_cursor{\n opacity: 1;\n background-color: transparent;\n}\n.emacs-mode .ace_overwrite-cursors .ace_cursor {\n opacity: 1;\n background-color: transparent;\n border-width: 0 0 2px 2px !important;\n}\n.emacs-mode .ace_text-layer {\n z-index: 4\n}\n.emacs-mode .ace_cursor-layer {\n z-index: 2\n}", 'emacsMode', false);
574
+ var $formerLongWords;
575
+ var $formerLineStart;
576
+ exports.handler.attach = function (editor) {
577
+ $formerLongWords = editor.session.$selectLongWords;
578
+ editor.session.$selectLongWords = true;
579
+ $formerLineStart = editor.session.$useEmacsStyleLineStart;
580
+ editor.session.$useEmacsStyleLineStart = true;
581
+ editor.session.$emacsMark = null; // the active mark
582
+ editor.session.$emacsMarkRing = editor.session.$emacsMarkRing || [];
583
+ editor.emacsMark = function () {
584
+ return this.session.$emacsMark;
585
+ };
586
+ editor.setEmacsMark = function (p) {
587
+ this.session.$emacsMark = p;
588
+ };
589
+ editor.pushEmacsMark = function (p, activate) {
590
+ var prevMark = this.session.$emacsMark;
591
+ if (prevMark)
592
+ pushUnique(this.session.$emacsMarkRing, prevMark);
593
+ if (!p || activate)
594
+ this.setEmacsMark(p);
595
+ else
596
+ pushUnique(this.session.$emacsMarkRing, p);
597
+ };
598
+ editor.popEmacsMark = function () {
599
+ var mark = this.emacsMark();
600
+ if (mark) {
601
+ this.setEmacsMark(null);
602
+ return mark;
603
+ }
604
+ return this.session.$emacsMarkRing.pop();
605
+ };
606
+ editor.getLastEmacsMark = function (p) {
607
+ return this.session.$emacsMark || this.session.$emacsMarkRing.slice(-1)[0];
608
+ };
609
+ editor.emacsMarkForSelection = function (replacement) {
610
+ var sel = this.selection, multiRangeLength = this.multiSelect ?
611
+ this.multiSelect.getAllRanges().length : 1, selIndex = sel.index || 0, markRing = this.session.$emacsMarkRing, markIndex = markRing.length - (multiRangeLength - selIndex), lastMark = markRing[markIndex] || sel.anchor;
612
+ if (replacement) {
613
+ markRing.splice(markIndex, 1, "row" in replacement && "column" in replacement ?
614
+ replacement : undefined);
615
+ }
616
+ return lastMark;
617
+ };
618
+ editor.on("click", $resetMarkMode);
619
+ editor.on("changeSession", $kbSessionChange);
620
+ editor.renderer.$blockCursor = true;
621
+ editor.setStyle("emacs-mode");
622
+ editor.commands.addCommands(commands);
623
+ exports.handler.platform = editor.commands.platform;
624
+ editor.$emacsModeHandler = this;
625
+ editor.on('copy', this.onCopy);
626
+ editor.on('paste', this.onPaste);
627
+ };
628
+ function pushUnique(ring, mark) {
629
+ var last = ring[ring.length - 1];
630
+ if (last && last.row === mark.row && last.column === mark.column) {
631
+ return;
632
+ }
633
+ ring.push(mark);
634
+ }
635
+ exports.handler.detach = function (editor) {
636
+ editor.renderer.$blockCursor = false;
637
+ editor.session.$selectLongWords = $formerLongWords;
638
+ editor.session.$useEmacsStyleLineStart = $formerLineStart;
639
+ editor.off("click", $resetMarkMode);
640
+ editor.off("changeSession", $kbSessionChange);
641
+ editor.unsetStyle("emacs-mode");
642
+ editor.commands.removeCommands(commands);
643
+ editor.off('copy', this.onCopy);
644
+ editor.off('paste', this.onPaste);
645
+ editor.$emacsModeHandler = null;
646
+ };
647
+ var $kbSessionChange = function (e) {
648
+ if (e.oldSession) {
649
+ e.oldSession.$selectLongWords = $formerLongWords;
650
+ e.oldSession.$useEmacsStyleLineStart = $formerLineStart;
651
+ }
652
+ $formerLongWords = e.session.$selectLongWords;
653
+ e.session.$selectLongWords = true;
654
+ $formerLineStart = e.session.$useEmacsStyleLineStart;
655
+ e.session.$useEmacsStyleLineStart = true;
656
+ if (!e.session.hasOwnProperty('$emacsMark'))
657
+ e.session.$emacsMark = null;
658
+ if (!e.session.hasOwnProperty('$emacsMarkRing'))
659
+ e.session.$emacsMarkRing = [];
660
+ };
661
+ var $resetMarkMode = function (e) {
662
+ e.editor.session.$emacsMark = null;
663
+ };
664
+ var keys = require("../lib/keys").KEY_MODS;
665
+ var eMods = { C: "ctrl", S: "shift", M: "alt", CMD: "command" };
666
+ var combinations = ["C-S-M-CMD",
667
+ "S-M-CMD", "C-M-CMD", "C-S-CMD", "C-S-M",
668
+ "M-CMD", "S-CMD", "S-M", "C-CMD", "C-M", "C-S",
669
+ "CMD", "M", "S", "C"];
670
+ combinations.forEach(function (c) {
671
+ var hashId = 0;
672
+ c.split("-").forEach(function (c) {
673
+ hashId = hashId | keys[eMods[c]];
674
+ });
675
+ eMods[hashId] = c.toLowerCase() + "-";
676
+ });
677
+ exports.handler.onCopy = function (e, editor) {
678
+ if (editor.$handlesEmacsOnCopy)
679
+ return;
680
+ editor.$handlesEmacsOnCopy = true;
681
+ exports.handler.commands.killRingSave.exec(editor);
682
+ editor.$handlesEmacsOnCopy = false;
683
+ };
684
+ exports.handler.onPaste = function (e, editor) {
685
+ editor.pushEmacsMark(editor.getCursorPosition());
686
+ };
687
+ exports.handler.bindKey = function (key, command) {
688
+ if (typeof key == "object")
689
+ key = key[this.platform];
690
+ if (!key)
691
+ return;
692
+ var ckb = this.commandKeyBinding;
693
+ key.split("|").forEach(function (keyPart) {
694
+ keyPart = keyPart.toLowerCase();
695
+ ckb[keyPart] = command;
696
+ var keyParts = keyPart.split(" ").slice(0, -1);
697
+ keyParts.reduce(function (keyMapKeys, keyPart, i) {
698
+ var prefix = keyMapKeys[i - 1] ? keyMapKeys[i - 1] + ' ' : '';
699
+ return keyMapKeys.concat([prefix + keyPart]);
700
+ }, []).forEach(function (keyPart) {
701
+ if (!ckb[keyPart])
702
+ ckb[keyPart] = "null";
703
+ });
704
+ }, this);
705
+ };
706
+ exports.handler.getStatusText = function (editor, data) {
707
+ var str = "";
708
+ if (data.count)
709
+ str += data.count;
710
+ if (data.keyChain)
711
+ str += " " + data.keyChain;
712
+ return str;
713
+ };
714
+ exports.handler.handleKeyboard = function (data, hashId, key, keyCode) {
715
+ if (keyCode === -1)
716
+ return undefined;
717
+ var editor = data.editor;
718
+ editor._signal("changeStatus");
719
+ if (hashId == -1) {
720
+ editor.pushEmacsMark();
721
+ if (data.count) {
722
+ var str = new Array(data.count + 1).join(key);
723
+ data.count = null;
724
+ return { command: "insertstring", args: str };
725
+ }
726
+ }
727
+ var modifier = eMods[hashId];
728
+ if (modifier == "c-" || data.count) {
729
+ var count = parseInt(key[key.length - 1]);
730
+ if (typeof count === 'number' && !isNaN(count)) {
731
+ data.count = Math.max(data.count, 0) || 0;
732
+ data.count = 10 * data.count + count;
733
+ return { command: "null" };
734
+ }
735
+ }
736
+ if (modifier)
737
+ key = modifier + key;
738
+ if (data.keyChain)
739
+ key = data.keyChain += " " + key;
740
+ var command = this.commandKeyBinding[key];
741
+ data.keyChain = command == "null" ? key : "";
742
+ if (!command)
743
+ return undefined;
744
+ if (command === "null")
745
+ return { command: "null" };
746
+ if (command === "universalArgument") {
747
+ data.count = -4;
748
+ return { command: "null" };
749
+ }
750
+ var args;
751
+ if (typeof command !== "string") {
752
+ args = command.args;
753
+ if (command.command)
754
+ command = command.command;
755
+ if (command === "goorselect") {
756
+ command = editor.emacsMark() ? args[1] : args[0];
757
+ args = null;
758
+ }
759
+ }
760
+ if (typeof command === "string") {
761
+ if (command === "insertstring" ||
762
+ command === "splitline" ||
763
+ command === "togglecomment") {
764
+ editor.pushEmacsMark();
765
+ }
766
+ command = this.commands[command] || editor.commands.commands[command];
767
+ if (!command)
768
+ return undefined;
769
+ }
770
+ if (!command.readOnly && !command.isYank)
771
+ data.lastCommand = null;
772
+ if (!command.readOnly && editor.emacsMark())
773
+ editor.setEmacsMark(null);
774
+ if (data.count) {
775
+ var count = data.count;
776
+ data.count = 0;
777
+ if (!command || !command.handlesCount) {
778
+ return {
779
+ args: args,
780
+ command: {
781
+ exec: function (editor, args) {
782
+ for (var i = 0; i < count; i++)
783
+ command.exec(editor, args);
784
+ },
785
+ multiSelectAction: command.multiSelectAction
786
+ }
787
+ };
788
+ }
789
+ else {
790
+ if (!args)
791
+ args = {};
792
+ if (typeof args === 'object')
793
+ args.count = count;
794
+ }
795
+ }
796
+ return { command: command, args: args };
797
+ };
798
+ exports.emacsKeys = {
799
+ "Up|C-p": { command: "goorselect", args: ["golineup", "selectup"] },
800
+ "Down|C-n": { command: "goorselect", args: ["golinedown", "selectdown"] },
801
+ "Left|C-b": { command: "goorselect", args: ["gotoleft", "selectleft"] },
802
+ "Right|C-f": { command: "goorselect", args: ["gotoright", "selectright"] },
803
+ "C-Left|M-b": { command: "goorselect", args: ["gotowordleft", "selectwordleft"] },
804
+ "C-Right|M-f": { command: "goorselect", args: ["gotowordright", "selectwordright"] },
805
+ "Home|C-a": { command: "goorselect", args: ["gotolinestart", "selecttolinestart"] },
806
+ "End|C-e": { command: "goorselect", args: ["gotolineend", "selecttolineend"] },
807
+ "C-Home|S-M-,": { command: "goorselect", args: ["gotostart", "selecttostart"] },
808
+ "C-End|S-M-.": { command: "goorselect", args: ["gotoend", "selecttoend"] },
809
+ "S-Up|S-C-p": "selectup",
810
+ "S-Down|S-C-n": "selectdown",
811
+ "S-Left|S-C-b": "selectleft",
812
+ "S-Right|S-C-f": "selectright",
813
+ "S-C-Left|S-M-b": "selectwordleft",
814
+ "S-C-Right|S-M-f": "selectwordright",
815
+ "S-Home|S-C-a": "selecttolinestart",
816
+ "S-End|S-C-e": "selecttolineend",
817
+ "S-C-Home": "selecttostart",
818
+ "S-C-End": "selecttoend",
819
+ "C-l": "recenterTopBottom",
820
+ "M-s": "centerselection",
821
+ "M-g": "gotoline",
822
+ "C-x C-p": "selectall",
823
+ "C-Down": { command: "goorselect", args: ["gotopagedown", "selectpagedown"] },
824
+ "C-Up": { command: "goorselect", args: ["gotopageup", "selectpageup"] },
825
+ "PageDown|C-v": { command: "goorselect", args: ["gotopagedown", "selectpagedown"] },
826
+ "PageUp|M-v": { command: "goorselect", args: ["gotopageup", "selectpageup"] },
827
+ "S-C-Down": "selectpagedown",
828
+ "S-C-Up": "selectpageup",
829
+ "C-s": "iSearch",
830
+ "C-r": "iSearchBackwards",
831
+ "M-C-s": "findnext",
832
+ "M-C-r": "findprevious",
833
+ "S-M-5": "replace",
834
+ "Backspace": "backspace",
835
+ "Delete|C-d": "del",
836
+ "Return|C-m": { command: "insertstring", args: "\n" }, // "newline"
837
+ "C-o": "splitline",
838
+ "M-d|C-Delete": { command: "killWord", args: "right" },
839
+ "C-Backspace|M-Backspace|M-Delete": { command: "killWord", args: "left" },
840
+ "C-k": "killLine",
841
+ "C-y|S-Delete": "yank",
842
+ "M-y": "yankRotate",
843
+ "C-g": "keyboardQuit",
844
+ "C-w|C-S-W": "killRegion",
845
+ "M-w": "killRingSave",
846
+ "C-Space": "setMark",
847
+ "C-x C-x": "exchangePointAndMark",
848
+ "C-t": "transposeletters",
849
+ "M-u": "touppercase", // Doesn't work
850
+ "M-l": "tolowercase",
851
+ "M-/": "autocomplete", // Doesn't work
852
+ "C-u": "universalArgument",
853
+ "M-;": "togglecomment",
854
+ "C-/|C-x u|S-C--|C-z": "undo",
855
+ "S-C-/|S-C-x u|C--|S-C-z": "redo", // infinite undo?
856
+ "C-x r": "selectRectangularRegion",
857
+ "M-x": { command: "focusCommandLine", args: "M-x " }
858
+ };
859
+ exports.handler.bindKeys(exports.emacsKeys);
860
+ exports.handler.addCommands({
861
+ recenterTopBottom: function (editor) {
862
+ var renderer = editor.renderer;
863
+ var pos = renderer.$cursorLayer.getPixelPosition();
864
+ var h = renderer.$size.scrollerHeight - renderer.lineHeight;
865
+ var scrollTop = renderer.scrollTop;
866
+ if (Math.abs(pos.top - scrollTop) < 2) {
867
+ scrollTop = pos.top - h;
868
+ }
869
+ else if (Math.abs(pos.top - scrollTop - h * 0.5) < 2) {
870
+ scrollTop = pos.top;
871
+ }
872
+ else {
873
+ scrollTop = pos.top - h * 0.5;
874
+ }
875
+ editor.session.setScrollTop(scrollTop);
876
+ },
877
+ selectRectangularRegion: function (editor) {
878
+ editor.multiSelect.toggleBlockSelection();
879
+ },
880
+ setMark: {
881
+ exec: function (editor, args) {
882
+ if (args && args.count) {
883
+ if (editor.inMultiSelectMode)
884
+ editor.forEachSelection(moveToMark);
885
+ else
886
+ moveToMark();
887
+ moveToMark();
888
+ return;
889
+ }
890
+ var mark = editor.emacsMark(), ranges = editor.selection.getAllRanges(), rangePositions = ranges.map(function (r) { return { row: r.start.row, column: r.start.column }; }), transientMarkModeActive = true, hasNoSelection = ranges.every(function (range) { return range.isEmpty(); });
891
+ if (transientMarkModeActive && (mark || !hasNoSelection)) {
892
+ if (editor.inMultiSelectMode)
893
+ editor.forEachSelection({ exec: editor.clearSelection.bind(editor) });
894
+ else
895
+ editor.clearSelection();
896
+ if (mark)
897
+ editor.pushEmacsMark(null);
898
+ return;
899
+ }
900
+ if (!mark) {
901
+ rangePositions.forEach(function (pos) { editor.pushEmacsMark(pos); });
902
+ editor.setEmacsMark(rangePositions[rangePositions.length - 1]);
903
+ return;
904
+ }
905
+ function moveToMark() {
906
+ var mark = editor.popEmacsMark();
907
+ mark && editor.moveCursorToPosition(mark);
908
+ }
909
+ },
910
+ readOnly: true,
911
+ handlesCount: true
912
+ },
913
+ exchangePointAndMark: {
914
+ exec: function exchangePointAndMark$exec(editor, args) {
915
+ var sel = editor.selection;
916
+ if (!args.count && !sel.isEmpty()) { // just invert selection
917
+ sel.setSelectionRange(sel.getRange(), !sel.isBackwards());
918
+ return;
919
+ }
920
+ if (args.count) { // replace mark and point
921
+ var pos = { row: sel.lead.row, column: sel.lead.column };
922
+ sel.clearSelection();
923
+ sel.moveCursorToPosition(editor.emacsMarkForSelection(pos));
924
+ }
925
+ else { // create selection to last mark
926
+ sel.selectToPosition(editor.emacsMarkForSelection());
927
+ }
928
+ },
929
+ readOnly: true,
930
+ handlesCount: true,
931
+ multiSelectAction: "forEach"
932
+ },
933
+ killWord: {
934
+ exec: function (editor, dir) {
935
+ editor.clearSelection();
936
+ if (dir == "left")
937
+ editor.selection.selectWordLeft();
938
+ else
939
+ editor.selection.selectWordRight();
940
+ var range = editor.getSelectionRange();
941
+ var text = editor.session.getTextRange(range);
942
+ exports.killRing.add(text);
943
+ editor.session.remove(range);
944
+ editor.clearSelection();
945
+ },
946
+ multiSelectAction: "forEach"
947
+ },
948
+ killLine: function (editor) {
949
+ editor.pushEmacsMark(null);
950
+ editor.clearSelection();
951
+ var range = editor.getSelectionRange();
952
+ var line = editor.session.getLine(range.start.row);
953
+ range.end.column = line.length;
954
+ line = line.substr(range.start.column);
955
+ var foldLine = editor.session.getFoldLine(range.start.row);
956
+ if (foldLine && range.end.row != foldLine.end.row) {
957
+ range.end.row = foldLine.end.row;
958
+ line = "x";
959
+ }
960
+ if (/^\s*$/.test(line)) {
961
+ range.end.row++;
962
+ line = editor.session.getLine(range.end.row);
963
+ range.end.column = /^\s*$/.test(line) ? line.length : 0;
964
+ }
965
+ var text = editor.session.getTextRange(range);
966
+ if (editor.prevOp.command == this)
967
+ exports.killRing.append(text);
968
+ else
969
+ exports.killRing.add(text);
970
+ editor.session.remove(range);
971
+ editor.clearSelection();
972
+ },
973
+ yank: function (editor) {
974
+ editor.onPaste(exports.killRing.get() || '');
975
+ editor.keyBinding.$data.lastCommand = "yank";
976
+ },
977
+ yankRotate: function (editor) {
978
+ if (editor.keyBinding.$data.lastCommand != "yank")
979
+ return;
980
+ editor.undo();
981
+ editor.session.$emacsMarkRing.pop(); // also undo recording mark
982
+ editor.onPaste(exports.killRing.rotate());
983
+ editor.keyBinding.$data.lastCommand = "yank";
984
+ },
985
+ killRegion: {
986
+ exec: function (editor) {
987
+ exports.killRing.add(editor.getCopyText());
988
+ editor.commands.byName.cut.exec(editor);
989
+ editor.setEmacsMark(null);
990
+ },
991
+ readOnly: true,
992
+ multiSelectAction: "forEach"
993
+ },
994
+ killRingSave: {
995
+ exec: function (editor) {
996
+ editor.$handlesEmacsOnCopy = true;
997
+ var marks = editor.session.$emacsMarkRing.slice(), deselectedMarks = [];
998
+ exports.killRing.add(editor.getCopyText());
999
+ setTimeout(function () {
1000
+ function deselect() {
1001
+ var sel = editor.selection, range = sel.getRange(), pos = sel.isBackwards() ? range.end : range.start;
1002
+ deselectedMarks.push({ row: pos.row, column: pos.column });
1003
+ sel.clearSelection();
1004
+ }
1005
+ editor.$handlesEmacsOnCopy = false;
1006
+ if (editor.inMultiSelectMode)
1007
+ editor.forEachSelection({ exec: deselect });
1008
+ else
1009
+ deselect();
1010
+ editor.setEmacsMark(null);
1011
+ editor.session.$emacsMarkRing = marks.concat(deselectedMarks.reverse());
1012
+ }, 0);
1013
+ },
1014
+ readOnly: true
1015
+ },
1016
+ keyboardQuit: function (editor) {
1017
+ editor.selection.clearSelection();
1018
+ editor.setEmacsMark(null);
1019
+ editor.keyBinding.$data.count = null;
1020
+ },
1021
+ focusCommandLine: function (editor, arg) {
1022
+ if (editor.showCommandLine)
1023
+ editor.showCommandLine(arg);
1024
+ }
1025
+ });
1026
+ exports.handler.addCommands(iSearchCommandModule.iSearchStartCommands);
1027
+ var commands = exports.handler.commands;
1028
+ commands.yank.isYank = true;
1029
+ commands.yankRotate.isYank = true;
1030
+ exports.killRing = {
1031
+ $data: [],
1032
+ add: function (str) {
1033
+ str && this.$data.push(str);
1034
+ if (this.$data.length > 30)
1035
+ this.$data.shift();
1036
+ },
1037
+ append: function (str) {
1038
+ var idx = this.$data.length - 1;
1039
+ var text = this.$data[idx] || "";
1040
+ if (str)
1041
+ text += str;
1042
+ if (text)
1043
+ this.$data[idx] = text;
1044
+ },
1045
+ get: function (n) {
1046
+ n = n || 1;
1047
+ return this.$data.slice(this.$data.length - n, this.$data.length).reverse().join('\n');
1048
+ },
1049
+ pop: function () {
1050
+ if (this.$data.length > 1)
1051
+ this.$data.pop();
1052
+ return this.get();
1053
+ },
1054
+ rotate: function () {
1055
+ this.$data.unshift(this.$data.pop());
1056
+ return this.get();
1057
+ }
1058
+ };
1059
+
1060
+ }); (function() {
1061
+ ace.require(["ace/keyboard/emacs"], function(m) {
1062
+ if (typeof module == "object" && typeof exports == "object" && module) {
1063
+ module.exports = m;
1064
+ }
1065
+ });
1066
+ })();
1067
+