@omicronenergy/oscd-ui 0.0.19 → 0.1.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 (790) hide show
  1. package/CHANGELOG.md +32 -0
  2. package/MIGRATION-0.1.0.md +201 -0
  3. package/README.md +7 -1
  4. package/THEMING.md +180 -0
  5. package/custom-elements.json +13355 -9639
  6. package/dist/about/{Catalog.stories.d.ts → ComponentCatalog.stories.d.ts} +1 -1
  7. package/dist/about/ComponentCatalog.stories.js +300 -0
  8. package/dist/about/ComponentCatalog.stories.js.map +1 -0
  9. package/dist/ace-editor/OscdAceEditor.d.ts +57 -0
  10. package/dist/ace-editor/OscdAceEditor.js +56 -0
  11. package/dist/ace-editor/OscdAceEditor.js.map +1 -0
  12. package/dist/ace-editor/OscdAceEditor.spec.d.ts +1 -0
  13. package/dist/ace-editor/OscdAceEditor.spec.js +16 -0
  14. package/dist/ace-editor/OscdAceEditor.spec.js.map +1 -0
  15. package/dist/ace-editor/OscdAceEditor.stories.d.ts +30 -0
  16. package/dist/ace-editor/OscdAceEditor.stories.js +31 -0
  17. package/dist/ace-editor/OscdAceEditor.stories.js.map +1 -0
  18. package/dist/ace-editor/ace/ace.js +22045 -0
  19. package/dist/ace-editor/ace/ext-beautify.js +343 -0
  20. package/dist/ace-editor/ace/ext-code_lens.js +204 -0
  21. package/dist/ace-editor/ace/ext-command_bar.js +469 -0
  22. package/dist/ace-editor/ace/ext-diff.js +4270 -0
  23. package/dist/ace-editor/ace/ext-elastic_tabstops_lite.js +238 -0
  24. package/dist/ace-editor/ace/ext-emmet.js +1303 -0
  25. package/dist/ace-editor/ace/ext-error_marker.js +9 -0
  26. package/dist/ace-editor/ace/ext-hardwrap.js +127 -0
  27. package/dist/ace-editor/ace/ext-inline_autocomplete.js +3547 -0
  28. package/dist/ace-editor/ace/ext-keybinding_menu.js +185 -0
  29. package/dist/ace-editor/ace/ext-language_tools.js +2724 -0
  30. package/dist/ace-editor/ace/ext-linking.js +66 -0
  31. package/dist/ace-editor/ace/ext-modelist.js +279 -0
  32. package/dist/ace-editor/ace/ext-options.js +862 -0
  33. package/dist/ace-editor/ace/ext-prompt.js +3164 -0
  34. package/dist/ace-editor/ace/ext-rtl.js +146 -0
  35. package/dist/ace-editor/ace/ext-searchbox.js +385 -0
  36. package/dist/ace-editor/ace/ext-settings_menu.js +862 -0
  37. package/dist/ace-editor/ace/ext-simple_tokenizer.js +137 -0
  38. package/dist/ace-editor/ace/ext-spellcheck.js +79 -0
  39. package/dist/ace-editor/ace/ext-split.js +203 -0
  40. package/dist/ace-editor/ace/ext-static_highlight.js +194 -0
  41. package/dist/ace-editor/ace/ext-statusbar.js +63 -0
  42. package/dist/ace-editor/ace/ext-textarea.js +400 -0
  43. package/dist/ace-editor/ace/ext-themelist.js +80 -0
  44. package/dist/ace-editor/ace/ext-whitespace.js +201 -0
  45. package/dist/ace-editor/ace/ext-whitespaces_in_selection.js +325 -0
  46. package/dist/ace-editor/ace/keybinding-emacs.js +1067 -0
  47. package/dist/ace-editor/ace/keybinding-sublime.js +409 -0
  48. package/dist/ace-editor/ace/keybinding-vim.js +7101 -0
  49. package/dist/ace-editor/ace/keybinding-vscode.js +255 -0
  50. package/dist/ace-editor/ace/mode-abap.js +200 -0
  51. package/dist/ace-editor/ace/mode-abc.js +243 -0
  52. package/dist/ace-editor/ace/mode-actionscript.js +234 -0
  53. package/dist/ace-editor/ace/mode-ada.js +108 -0
  54. package/dist/ace-editor/ace/mode-alda.js +279 -0
  55. package/dist/ace-editor/ace/mode-apache_conf.js +318 -0
  56. package/dist/ace-editor/ace/mode-apex.js +402 -0
  57. package/dist/ace-editor/ace/mode-applescript.js +232 -0
  58. package/dist/ace-editor/ace/mode-aql.js +92 -0
  59. package/dist/ace-editor/ace/mode-asciidoc.js +311 -0
  60. package/dist/ace-editor/ace/mode-asl.js +357 -0
  61. package/dist/ace-editor/ace/mode-assembly_arm32.js +185 -0
  62. package/dist/ace-editor/ace/mode-assembly_x86.js +170 -0
  63. package/dist/ace-editor/ace/mode-astro.js +2475 -0
  64. package/dist/ace-editor/ace/mode-autohotkey.js +208 -0
  65. package/dist/ace-editor/ace/mode-basic.js +201 -0
  66. package/dist/ace-editor/ace/mode-batchfile.js +199 -0
  67. package/dist/ace-editor/ace/mode-bibtex.js +318 -0
  68. package/dist/ace-editor/ace/mode-c9search.js +250 -0
  69. package/dist/ace-editor/ace/mode-c_cpp.js +417 -0
  70. package/dist/ace-editor/ace/mode-cedar.js +289 -0
  71. package/dist/ace-editor/ace/mode-cedarschema.js +275 -0
  72. package/dist/ace-editor/ace/mode-cirru.js +192 -0
  73. package/dist/ace-editor/ace/mode-clojure.js +322 -0
  74. package/dist/ace-editor/ace/mode-clue.js +361 -0
  75. package/dist/ace-editor/ace/mode-cobol.js +82 -0
  76. package/dist/ace-editor/ace/mode-coffee.js +335 -0
  77. package/dist/ace-editor/ace/mode-coldfusion.js +2410 -0
  78. package/dist/ace-editor/ace/mode-crystal.js +586 -0
  79. package/dist/ace-editor/ace/mode-csharp.js +413 -0
  80. package/dist/ace-editor/ace/mode-csound_document.js +4073 -0
  81. package/dist/ace-editor/ace/mode-csound_orchestra.js +2923 -0
  82. package/dist/ace-editor/ace/mode-csound_score.js +409 -0
  83. package/dist/ace-editor/ace/mode-csp.js +59 -0
  84. package/dist/ace-editor/ace/mode-css.js +632 -0
  85. package/dist/ace-editor/ace/mode-csv.js +97 -0
  86. package/dist/ace-editor/ace/mode-curly.js +2382 -0
  87. package/dist/ace-editor/ace/mode-cuttlefish.js +56 -0
  88. package/dist/ace-editor/ace/mode-d.js +450 -0
  89. package/dist/ace-editor/ace/mode-dart.js +618 -0
  90. package/dist/ace-editor/ace/mode-diff.js +129 -0
  91. package/dist/ace-editor/ace/mode-django.js +2423 -0
  92. package/dist/ace-editor/ace/mode-dockerfile.js +427 -0
  93. package/dist/ace-editor/ace/mode-dot.js +348 -0
  94. package/dist/ace-editor/ace/mode-drools.js +607 -0
  95. package/dist/ace-editor/ace/mode-edifact.js +130 -0
  96. package/dist/ace-editor/ace/mode-eiffel.js +120 -0
  97. package/dist/ace-editor/ace/mode-ejs.js +3278 -0
  98. package/dist/ace-editor/ace/mode-elixir.js +443 -0
  99. package/dist/ace-editor/ace/mode-elm.js +274 -0
  100. package/dist/ace-editor/ace/mode-erlang.js +836 -0
  101. package/dist/ace-editor/ace/mode-flix.js +163 -0
  102. package/dist/ace-editor/ace/mode-forth.js +253 -0
  103. package/dist/ace-editor/ace/mode-fortran.js +361 -0
  104. package/dist/ace-editor/ace/mode-fsharp.js +277 -0
  105. package/dist/ace-editor/ace/mode-fsl.js +226 -0
  106. package/dist/ace-editor/ace/mode-ftl.js +1256 -0
  107. package/dist/ace-editor/ace/mode-gcode.js +74 -0
  108. package/dist/ace-editor/ace/mode-gherkin.js +154 -0
  109. package/dist/ace-editor/ace/mode-gitignore.js +49 -0
  110. package/dist/ace-editor/ace/mode-glsl.js +475 -0
  111. package/dist/ace-editor/ace/mode-gobstones.js +1460 -0
  112. package/dist/ace-editor/ace/mode-golang.js +341 -0
  113. package/dist/ace-editor/ace/mode-graphqlschema.js +174 -0
  114. package/dist/ace-editor/ace/mode-groovy.js +1402 -0
  115. package/dist/ace-editor/ace/mode-groq.js +288 -0
  116. package/dist/ace-editor/ace/mode-haml.js +1907 -0
  117. package/dist/ace-editor/ace/mode-handlebars.js +2439 -0
  118. package/dist/ace-editor/ace/mode-haskell.js +324 -0
  119. package/dist/ace-editor/ace/mode-haskell_cabal.js +135 -0
  120. package/dist/ace-editor/ace/mode-haxe.js +313 -0
  121. package/dist/ace-editor/ace/mode-hjson.js +318 -0
  122. package/dist/ace-editor/ace/mode-html.js +2340 -0
  123. package/dist/ace-editor/ace/mode-html_elixir.js +2846 -0
  124. package/dist/ace-editor/ace/mode-html_ruby.js +3295 -0
  125. package/dist/ace-editor/ace/mode-ini.js +138 -0
  126. package/dist/ace-editor/ace/mode-io.js +210 -0
  127. package/dist/ace-editor/ace/mode-ion.js +477 -0
  128. package/dist/ace-editor/ace/mode-jack.js +293 -0
  129. package/dist/ace-editor/ace/mode-jade.js +2018 -0
  130. package/dist/ace-editor/ace/mode-java.js +1566 -0
  131. package/dist/ace-editor/ace/mode-javascript.js +1192 -0
  132. package/dist/ace-editor/ace/mode-jexl.js +270 -0
  133. package/dist/ace-editor/ace/mode-json.js +275 -0
  134. package/dist/ace-editor/ace/mode-json5.js +308 -0
  135. package/dist/ace-editor/ace/mode-jsoniq.js +2577 -0
  136. package/dist/ace-editor/ace/mode-jsp.js +1619 -0
  137. package/dist/ace-editor/ace/mode-jssm.js +293 -0
  138. package/dist/ace-editor/ace/mode-jsx.js +1210 -0
  139. package/dist/ace-editor/ace/mode-julia.js +254 -0
  140. package/dist/ace-editor/ace/mode-kotlin.js +445 -0
  141. package/dist/ace-editor/ace/mode-latex.js +252 -0
  142. package/dist/ace-editor/ace/mode-latte.js +2523 -0
  143. package/dist/ace-editor/ace/mode-less.js +742 -0
  144. package/dist/ace-editor/ace/mode-liquid.js +2742 -0
  145. package/dist/ace-editor/ace/mode-lisp.js +104 -0
  146. package/dist/ace-editor/ace/mode-livescript.js +272 -0
  147. package/dist/ace-editor/ace/mode-logiql.js +272 -0
  148. package/dist/ace-editor/ace/mode-logtalk.js +309 -0
  149. package/dist/ace-editor/ace/mode-lsl.js +287 -0
  150. package/dist/ace-editor/ace/mode-lua.js +393 -0
  151. package/dist/ace-editor/ace/mode-luapage.js +2786 -0
  152. package/dist/ace-editor/ace/mode-lucene.js +145 -0
  153. package/dist/ace-editor/ace/mode-makefile.js +374 -0
  154. package/dist/ace-editor/ace/mode-mariadb.js +149 -0
  155. package/dist/ace-editor/ace/mode-markdown.js +2936 -0
  156. package/dist/ace-editor/ace/mode-mask.js +1758 -0
  157. package/dist/ace-editor/ace/mode-matlab.js +239 -0
  158. package/dist/ace-editor/ace/mode-maze.js +256 -0
  159. package/dist/ace-editor/ace/mode-mediawiki.js +580 -0
  160. package/dist/ace-editor/ace/mode-mel.js +213 -0
  161. package/dist/ace-editor/ace/mode-mips.js +231 -0
  162. package/dist/ace-editor/ace/mode-mixal.js +110 -0
  163. package/dist/ace-editor/ace/mode-mushcode.js +642 -0
  164. package/dist/ace-editor/ace/mode-mysql.js +150 -0
  165. package/dist/ace-editor/ace/mode-nasal.js +513 -0
  166. package/dist/ace-editor/ace/mode-nginx.js +262 -0
  167. package/dist/ace-editor/ace/mode-nim.js +325 -0
  168. package/dist/ace-editor/ace/mode-nix.js +555 -0
  169. package/dist/ace-editor/ace/mode-nsis.js +279 -0
  170. package/dist/ace-editor/ace/mode-nunjucks.js +2678 -0
  171. package/dist/ace-editor/ace/mode-objectivec.js +626 -0
  172. package/dist/ace-editor/ace/mode-ocaml.js +378 -0
  173. package/dist/ace-editor/ace/mode-odin.js +449 -0
  174. package/dist/ace-editor/ace/mode-partiql.js +750 -0
  175. package/dist/ace-editor/ace/mode-pascal.js +204 -0
  176. package/dist/ace-editor/ace/mode-perl.js +318 -0
  177. package/dist/ace-editor/ace/mode-pgsql.js +1861 -0
  178. package/dist/ace-editor/ace/mode-php.js +14079 -0
  179. package/dist/ace-editor/ace/mode-php_laravel_blade.js +14267 -0
  180. package/dist/ace-editor/ace/mode-pig.js +278 -0
  181. package/dist/ace-editor/ace/mode-plain_text.js +27 -0
  182. package/dist/ace-editor/ace/mode-plsql.js +268 -0
  183. package/dist/ace-editor/ace/mode-powershell.js +567 -0
  184. package/dist/ace-editor/ace/mode-praat.js +412 -0
  185. package/dist/ace-editor/ace/mode-prisma.js +457 -0
  186. package/dist/ace-editor/ace/mode-prolog.js +305 -0
  187. package/dist/ace-editor/ace/mode-properties.js +69 -0
  188. package/dist/ace-editor/ace/mode-protobuf.js +498 -0
  189. package/dist/ace-editor/ace/mode-prql.js +323 -0
  190. package/dist/ace-editor/ace/mode-puppet.js +316 -0
  191. package/dist/ace-editor/ace/mode-python.js +476 -0
  192. package/dist/ace-editor/ace/mode-qml.js +346 -0
  193. package/dist/ace-editor/ace/mode-r.js +387 -0
  194. package/dist/ace-editor/ace/mode-raku.js +516 -0
  195. package/dist/ace-editor/ace/mode-razor.js +2698 -0
  196. package/dist/ace-editor/ace/mode-rdoc.js +286 -0
  197. package/dist/ace-editor/ace/mode-red.js +388 -0
  198. package/dist/ace-editor/ace/mode-redshift.js +321 -0
  199. package/dist/ace-editor/ace/mode-rhtml.js +2751 -0
  200. package/dist/ace-editor/ace/mode-robot.js +168 -0
  201. package/dist/ace-editor/ace/mode-rst.js +245 -0
  202. package/dist/ace-editor/ace/mode-ruby.js +921 -0
  203. package/dist/ace-editor/ace/mode-rust.js +393 -0
  204. package/dist/ace-editor/ace/mode-sac.js +349 -0
  205. package/dist/ace-editor/ace/mode-sass.js +480 -0
  206. package/dist/ace-editor/ace/mode-scad.js +350 -0
  207. package/dist/ace-editor/ace/mode-scala.js +1396 -0
  208. package/dist/ace-editor/ace/mode-scheme.js +210 -0
  209. package/dist/ace-editor/ace/mode-scrypt.js +317 -0
  210. package/dist/ace-editor/ace/mode-scss.js +768 -0
  211. package/dist/ace-editor/ace/mode-sh.js +387 -0
  212. package/dist/ace-editor/ace/mode-sjs.js +1394 -0
  213. package/dist/ace-editor/ace/mode-slim.js +4771 -0
  214. package/dist/ace-editor/ace/mode-smarty.js +2437 -0
  215. package/dist/ace-editor/ace/mode-smithy.js +456 -0
  216. package/dist/ace-editor/ace/mode-snippets.js +183 -0
  217. package/dist/ace-editor/ace/mode-soy_template.js +2612 -0
  218. package/dist/ace-editor/ace/mode-space.js +151 -0
  219. package/dist/ace-editor/ace/mode-sparql.js +288 -0
  220. package/dist/ace-editor/ace/mode-sql.js +221 -0
  221. package/dist/ace-editor/ace/mode-sqlserver.js +391 -0
  222. package/dist/ace-editor/ace/mode-stylus.js +443 -0
  223. package/dist/ace-editor/ace/mode-svg.js +1488 -0
  224. package/dist/ace-editor/ace/mode-swift.js +342 -0
  225. package/dist/ace-editor/ace/mode-tcl.js +338 -0
  226. package/dist/ace-editor/ace/mode-terraform.js +346 -0
  227. package/dist/ace-editor/ace/mode-tex.js +212 -0
  228. package/dist/ace-editor/ace/mode-text.js +9 -0
  229. package/dist/ace-editor/ace/mode-textile.js +125 -0
  230. package/dist/ace-editor/ace/mode-toml.js +129 -0
  231. package/dist/ace-editor/ace/mode-tsv.js +124 -0
  232. package/dist/ace-editor/ace/mode-tsx.js +1277 -0
  233. package/dist/ace-editor/ace/mode-turtle.js +264 -0
  234. package/dist/ace-editor/ace/mode-twig.js +2503 -0
  235. package/dist/ace-editor/ace/mode-typescript.js +1255 -0
  236. package/dist/ace-editor/ace/mode-vala.js +554 -0
  237. package/dist/ace-editor/ace/mode-vbscript.js +731 -0
  238. package/dist/ace-editor/ace/mode-velocity.js +2581 -0
  239. package/dist/ace-editor/ace/mode-verilog.js +98 -0
  240. package/dist/ace-editor/ace/mode-vhdl.js +94 -0
  241. package/dist/ace-editor/ace/mode-visualforce.js +2455 -0
  242. package/dist/ace-editor/ace/mode-vue.js +3835 -0
  243. package/dist/ace-editor/ace/mode-wollok.js +1330 -0
  244. package/dist/ace-editor/ace/mode-xml.js +477 -0
  245. package/dist/ace-editor/ace/mode-xquery.js +2589 -0
  246. package/dist/ace-editor/ace/mode-yaml.js +395 -0
  247. package/dist/ace-editor/ace/mode-zeek.js +502 -0
  248. package/dist/ace-editor/ace/mode-zig.js +585 -0
  249. package/dist/ace-editor/ace/snippets/abap.js +9 -0
  250. package/dist/ace-editor/ace/snippets/abc.js +16 -0
  251. package/dist/ace-editor/ace/snippets/actionscript.js +16 -0
  252. package/dist/ace-editor/ace/snippets/ada.js +9 -0
  253. package/dist/ace-editor/ace/snippets/alda.js +9 -0
  254. package/dist/ace-editor/ace/snippets/apache_conf.js +9 -0
  255. package/dist/ace-editor/ace/snippets/apex.js +9 -0
  256. package/dist/ace-editor/ace/snippets/applescript.js +9 -0
  257. package/dist/ace-editor/ace/snippets/aql.js +9 -0
  258. package/dist/ace-editor/ace/snippets/asciidoc.js +9 -0
  259. package/dist/ace-editor/ace/snippets/asl.js +9 -0
  260. package/dist/ace-editor/ace/snippets/assembly_arm32.js +9 -0
  261. package/dist/ace-editor/ace/snippets/assembly_x86.js +9 -0
  262. package/dist/ace-editor/ace/snippets/astro.js +9 -0
  263. package/dist/ace-editor/ace/snippets/autohotkey.js +9 -0
  264. package/dist/ace-editor/ace/snippets/basic.js +9 -0
  265. package/dist/ace-editor/ace/snippets/batchfile.js +9 -0
  266. package/dist/ace-editor/ace/snippets/bibtex.js +9 -0
  267. package/dist/ace-editor/ace/snippets/c9search.js +9 -0
  268. package/dist/ace-editor/ace/snippets/c_cpp.js +16 -0
  269. package/dist/ace-editor/ace/snippets/cedar.js +16 -0
  270. package/dist/ace-editor/ace/snippets/cedarschema.js +16 -0
  271. package/dist/ace-editor/ace/snippets/cirru.js +9 -0
  272. package/dist/ace-editor/ace/snippets/clojure.js +16 -0
  273. package/dist/ace-editor/ace/snippets/clue.js +9 -0
  274. package/dist/ace-editor/ace/snippets/cobol.js +9 -0
  275. package/dist/ace-editor/ace/snippets/coffee.js +16 -0
  276. package/dist/ace-editor/ace/snippets/coldfusion.js +9 -0
  277. package/dist/ace-editor/ace/snippets/crystal.js +9 -0
  278. package/dist/ace-editor/ace/snippets/csharp.js +9 -0
  279. package/dist/ace-editor/ace/snippets/csound_document.js +16 -0
  280. package/dist/ace-editor/ace/snippets/csound_orchestra.js +16 -0
  281. package/dist/ace-editor/ace/snippets/csound_score.js +9 -0
  282. package/dist/ace-editor/ace/snippets/csp.js +9 -0
  283. package/dist/ace-editor/ace/snippets/css.js +16 -0
  284. package/dist/ace-editor/ace/snippets/csv.js +9 -0
  285. package/dist/ace-editor/ace/snippets/curly.js +9 -0
  286. package/dist/ace-editor/ace/snippets/cuttlefish.js +9 -0
  287. package/dist/ace-editor/ace/snippets/d.js +9 -0
  288. package/dist/ace-editor/ace/snippets/dart.js +16 -0
  289. package/dist/ace-editor/ace/snippets/diff.js +16 -0
  290. package/dist/ace-editor/ace/snippets/django.js +16 -0
  291. package/dist/ace-editor/ace/snippets/dockerfile.js +9 -0
  292. package/dist/ace-editor/ace/snippets/dot.js +9 -0
  293. package/dist/ace-editor/ace/snippets/drools.js +16 -0
  294. package/dist/ace-editor/ace/snippets/edifact.js +16 -0
  295. package/dist/ace-editor/ace/snippets/eiffel.js +9 -0
  296. package/dist/ace-editor/ace/snippets/ejs.js +9 -0
  297. package/dist/ace-editor/ace/snippets/elixir.js +9 -0
  298. package/dist/ace-editor/ace/snippets/elm.js +9 -0
  299. package/dist/ace-editor/ace/snippets/erlang.js +16 -0
  300. package/dist/ace-editor/ace/snippets/flix.js +9 -0
  301. package/dist/ace-editor/ace/snippets/forth.js +9 -0
  302. package/dist/ace-editor/ace/snippets/fortran.js +9 -0
  303. package/dist/ace-editor/ace/snippets/fsharp.js +9 -0
  304. package/dist/ace-editor/ace/snippets/fsl.js +16 -0
  305. package/dist/ace-editor/ace/snippets/ftl.js +9 -0
  306. package/dist/ace-editor/ace/snippets/gcode.js +9 -0
  307. package/dist/ace-editor/ace/snippets/gherkin.js +9 -0
  308. package/dist/ace-editor/ace/snippets/gitignore.js +9 -0
  309. package/dist/ace-editor/ace/snippets/glsl.js +9 -0
  310. package/dist/ace-editor/ace/snippets/gobstones.js +16 -0
  311. package/dist/ace-editor/ace/snippets/golang.js +9 -0
  312. package/dist/ace-editor/ace/snippets/graphqlschema.js +16 -0
  313. package/dist/ace-editor/ace/snippets/groovy.js +9 -0
  314. package/dist/ace-editor/ace/snippets/groq.js +9 -0
  315. package/dist/ace-editor/ace/snippets/haml.js +16 -0
  316. package/dist/ace-editor/ace/snippets/handlebars.js +9 -0
  317. package/dist/ace-editor/ace/snippets/haskell.js +16 -0
  318. package/dist/ace-editor/ace/snippets/haskell_cabal.js +9 -0
  319. package/dist/ace-editor/ace/snippets/haxe.js +9 -0
  320. package/dist/ace-editor/ace/snippets/hjson.js +9 -0
  321. package/dist/ace-editor/ace/snippets/html.js +16 -0
  322. package/dist/ace-editor/ace/snippets/html_elixir.js +9 -0
  323. package/dist/ace-editor/ace/snippets/html_ruby.js +9 -0
  324. package/dist/ace-editor/ace/snippets/ini.js +9 -0
  325. package/dist/ace-editor/ace/snippets/io.js +74 -0
  326. package/dist/ace-editor/ace/snippets/ion.js +9 -0
  327. package/dist/ace-editor/ace/snippets/jack.js +9 -0
  328. package/dist/ace-editor/ace/snippets/jade.js +9 -0
  329. package/dist/ace-editor/ace/snippets/java.js +16 -0
  330. package/dist/ace-editor/ace/snippets/javascript.js +16 -0
  331. package/dist/ace-editor/ace/snippets/jexl.js +9 -0
  332. package/dist/ace-editor/ace/snippets/json.js +9 -0
  333. package/dist/ace-editor/ace/snippets/json5.js +9 -0
  334. package/dist/ace-editor/ace/snippets/jsoniq.js +78 -0
  335. package/dist/ace-editor/ace/snippets/jsp.js +16 -0
  336. package/dist/ace-editor/ace/snippets/jssm.js +9 -0
  337. package/dist/ace-editor/ace/snippets/jsx.js +9 -0
  338. package/dist/ace-editor/ace/snippets/julia.js +9 -0
  339. package/dist/ace-editor/ace/snippets/kotlin.js +9 -0
  340. package/dist/ace-editor/ace/snippets/latex.js +9 -0
  341. package/dist/ace-editor/ace/snippets/latte.js +9 -0
  342. package/dist/ace-editor/ace/snippets/less.js +9 -0
  343. package/dist/ace-editor/ace/snippets/liquid.js +16 -0
  344. package/dist/ace-editor/ace/snippets/lisp.js +9 -0
  345. package/dist/ace-editor/ace/snippets/livescript.js +9 -0
  346. package/dist/ace-editor/ace/snippets/logiql.js +9 -0
  347. package/dist/ace-editor/ace/snippets/logtalk.js +9 -0
  348. package/dist/ace-editor/ace/snippets/lsl.js +16 -0
  349. package/dist/ace-editor/ace/snippets/lua.js +16 -0
  350. package/dist/ace-editor/ace/snippets/luapage.js +9 -0
  351. package/dist/ace-editor/ace/snippets/lucene.js +9 -0
  352. package/dist/ace-editor/ace/snippets/makefile.js +16 -0
  353. package/dist/ace-editor/ace/snippets/mariadb.js +9 -0
  354. package/dist/ace-editor/ace/snippets/markdown.js +16 -0
  355. package/dist/ace-editor/ace/snippets/mask.js +9 -0
  356. package/dist/ace-editor/ace/snippets/matlab.js +9 -0
  357. package/dist/ace-editor/ace/snippets/maze.js +16 -0
  358. package/dist/ace-editor/ace/snippets/mediawiki.js +9 -0
  359. package/dist/ace-editor/ace/snippets/mel.js +9 -0
  360. package/dist/ace-editor/ace/snippets/mips.js +9 -0
  361. package/dist/ace-editor/ace/snippets/mixal.js +9 -0
  362. package/dist/ace-editor/ace/snippets/mushcode.js +9 -0
  363. package/dist/ace-editor/ace/snippets/mysql.js +9 -0
  364. package/dist/ace-editor/ace/snippets/nasal.js +9 -0
  365. package/dist/ace-editor/ace/snippets/nginx.js +9 -0
  366. package/dist/ace-editor/ace/snippets/nim.js +9 -0
  367. package/dist/ace-editor/ace/snippets/nix.js +9 -0
  368. package/dist/ace-editor/ace/snippets/nsis.js +9 -0
  369. package/dist/ace-editor/ace/snippets/nunjucks.js +9 -0
  370. package/dist/ace-editor/ace/snippets/objectivec.js +9 -0
  371. package/dist/ace-editor/ace/snippets/ocaml.js +9 -0
  372. package/dist/ace-editor/ace/snippets/odin.js +9 -0
  373. package/dist/ace-editor/ace/snippets/partiql.js +9 -0
  374. package/dist/ace-editor/ace/snippets/pascal.js +9 -0
  375. package/dist/ace-editor/ace/snippets/perl.js +16 -0
  376. package/dist/ace-editor/ace/snippets/pgsql.js +9 -0
  377. package/dist/ace-editor/ace/snippets/php.js +16 -0
  378. package/dist/ace-editor/ace/snippets/php_laravel_blade.js +9 -0
  379. package/dist/ace-editor/ace/snippets/pig.js +9 -0
  380. package/dist/ace-editor/ace/snippets/plain_text.js +9 -0
  381. package/dist/ace-editor/ace/snippets/plsql.js +9 -0
  382. package/dist/ace-editor/ace/snippets/powershell.js +9 -0
  383. package/dist/ace-editor/ace/snippets/praat.js +9 -0
  384. package/dist/ace-editor/ace/snippets/prisma.js +9 -0
  385. package/dist/ace-editor/ace/snippets/prolog.js +9 -0
  386. package/dist/ace-editor/ace/snippets/properties.js +9 -0
  387. package/dist/ace-editor/ace/snippets/protobuf.js +9 -0
  388. package/dist/ace-editor/ace/snippets/prql.js +9 -0
  389. package/dist/ace-editor/ace/snippets/puppet.js +9 -0
  390. package/dist/ace-editor/ace/snippets/python.js +16 -0
  391. package/dist/ace-editor/ace/snippets/qml.js +9 -0
  392. package/dist/ace-editor/ace/snippets/r.js +16 -0
  393. package/dist/ace-editor/ace/snippets/raku.js +9 -0
  394. package/dist/ace-editor/ace/snippets/razor.js +16 -0
  395. package/dist/ace-editor/ace/snippets/rdoc.js +9 -0
  396. package/dist/ace-editor/ace/snippets/red.js +9 -0
  397. package/dist/ace-editor/ace/snippets/redshift.js +9 -0
  398. package/dist/ace-editor/ace/snippets/rhtml.js +9 -0
  399. package/dist/ace-editor/ace/snippets/robot.js +16 -0
  400. package/dist/ace-editor/ace/snippets/rst.js +16 -0
  401. package/dist/ace-editor/ace/snippets/ruby.js +16 -0
  402. package/dist/ace-editor/ace/snippets/rust.js +9 -0
  403. package/dist/ace-editor/ace/snippets/sac.js +9 -0
  404. package/dist/ace-editor/ace/snippets/sass.js +9 -0
  405. package/dist/ace-editor/ace/snippets/scad.js +9 -0
  406. package/dist/ace-editor/ace/snippets/scala.js +9 -0
  407. package/dist/ace-editor/ace/snippets/scheme.js +9 -0
  408. package/dist/ace-editor/ace/snippets/scrypt.js +9 -0
  409. package/dist/ace-editor/ace/snippets/scss.js +9 -0
  410. package/dist/ace-editor/ace/snippets/sh.js +16 -0
  411. package/dist/ace-editor/ace/snippets/sjs.js +9 -0
  412. package/dist/ace-editor/ace/snippets/slim.js +9 -0
  413. package/dist/ace-editor/ace/snippets/smarty.js +9 -0
  414. package/dist/ace-editor/ace/snippets/smithy.js +9 -0
  415. package/dist/ace-editor/ace/snippets/snippets.js +16 -0
  416. package/dist/ace-editor/ace/snippets/soy_template.js +9 -0
  417. package/dist/ace-editor/ace/snippets/space.js +9 -0
  418. package/dist/ace-editor/ace/snippets/sparql.js +9 -0
  419. package/dist/ace-editor/ace/snippets/sql.js +16 -0
  420. package/dist/ace-editor/ace/snippets/sqlserver.js +16 -0
  421. package/dist/ace-editor/ace/snippets/stylus.js +9 -0
  422. package/dist/ace-editor/ace/snippets/svg.js +9 -0
  423. package/dist/ace-editor/ace/snippets/swift.js +9 -0
  424. package/dist/ace-editor/ace/snippets/tcl.js +16 -0
  425. package/dist/ace-editor/ace/snippets/terraform.js +9 -0
  426. package/dist/ace-editor/ace/snippets/tex.js +16 -0
  427. package/dist/ace-editor/ace/snippets/text.js +9 -0
  428. package/dist/ace-editor/ace/snippets/textile.js +16 -0
  429. package/dist/ace-editor/ace/snippets/toml.js +9 -0
  430. package/dist/ace-editor/ace/snippets/tsv.js +9 -0
  431. package/dist/ace-editor/ace/snippets/tsx.js +9 -0
  432. package/dist/ace-editor/ace/snippets/turtle.js +9 -0
  433. package/dist/ace-editor/ace/snippets/twig.js +9 -0
  434. package/dist/ace-editor/ace/snippets/typescript.js +9 -0
  435. package/dist/ace-editor/ace/snippets/vala.js +199 -0
  436. package/dist/ace-editor/ace/snippets/vbscript.js +9 -0
  437. package/dist/ace-editor/ace/snippets/velocity.js +17 -0
  438. package/dist/ace-editor/ace/snippets/verilog.js +9 -0
  439. package/dist/ace-editor/ace/snippets/vhdl.js +9 -0
  440. package/dist/ace-editor/ace/snippets/visualforce.js +9 -0
  441. package/dist/ace-editor/ace/snippets/vue.js +9 -0
  442. package/dist/ace-editor/ace/snippets/wollok.js +16 -0
  443. package/dist/ace-editor/ace/snippets/xml.js +9 -0
  444. package/dist/ace-editor/ace/snippets/xquery.js +78 -0
  445. package/dist/ace-editor/ace/snippets/yaml.js +9 -0
  446. package/dist/ace-editor/ace/snippets/zeek.js +9 -0
  447. package/dist/ace-editor/ace/snippets/zig.js +9 -0
  448. package/dist/ace-editor/ace/theme-ambiance.js +18 -0
  449. package/dist/ace-editor/ace/theme-chaos.js +18 -0
  450. package/dist/ace-editor/ace/theme-chrome.js +18 -0
  451. package/dist/ace-editor/ace/theme-cloud9_day.js +19 -0
  452. package/dist/ace-editor/ace/theme-cloud9_night.js +18 -0
  453. package/dist/ace-editor/ace/theme-cloud9_night_low_color.js +18 -0
  454. package/dist/ace-editor/ace/theme-cloud_editor.js +19 -0
  455. package/dist/ace-editor/ace/theme-cloud_editor_dark.js +19 -0
  456. package/dist/ace-editor/ace/theme-clouds.js +18 -0
  457. package/dist/ace-editor/ace/theme-clouds_midnight.js +18 -0
  458. package/dist/ace-editor/ace/theme-cobalt.js +18 -0
  459. package/dist/ace-editor/ace/theme-crimson_editor.js +18 -0
  460. package/dist/ace-editor/ace/theme-dawn.js +18 -0
  461. package/dist/ace-editor/ace/theme-dracula.js +19 -0
  462. package/dist/ace-editor/ace/theme-dreamweaver.js +18 -0
  463. package/dist/ace-editor/ace/theme-eclipse.js +19 -0
  464. package/dist/ace-editor/ace/theme-github.js +18 -0
  465. package/dist/ace-editor/ace/theme-github_dark.js +18 -0
  466. package/dist/ace-editor/ace/theme-github_light_default.js +18 -0
  467. package/dist/ace-editor/ace/theme-gob.js +18 -0
  468. package/dist/ace-editor/ace/theme-gruvbox.js +18 -0
  469. package/dist/ace-editor/ace/theme-gruvbox_dark_hard.js +18 -0
  470. package/dist/ace-editor/ace/theme-gruvbox_light_hard.js +18 -0
  471. package/dist/ace-editor/ace/theme-idle_fingers.js +18 -0
  472. package/dist/ace-editor/ace/theme-iplastic.js +18 -0
  473. package/dist/ace-editor/ace/theme-katzenmilch.js +18 -0
  474. package/dist/ace-editor/ace/theme-kr_theme.js +18 -0
  475. package/dist/ace-editor/ace/theme-kuroir.js +18 -0
  476. package/dist/ace-editor/ace/theme-merbivore.js +18 -0
  477. package/dist/ace-editor/ace/theme-merbivore_soft.js +18 -0
  478. package/dist/ace-editor/ace/theme-mono_industrial.js +18 -0
  479. package/dist/ace-editor/ace/theme-monokai.js +18 -0
  480. package/dist/ace-editor/ace/theme-nord_dark.js +19 -0
  481. package/dist/ace-editor/ace/theme-one_dark.js +18 -0
  482. package/dist/ace-editor/ace/theme-pastel_on_dark.js +18 -0
  483. package/dist/ace-editor/ace/theme-solarized_dark.js +18 -0
  484. package/dist/ace-editor/ace/theme-solarized_light.js +18 -0
  485. package/dist/ace-editor/ace/theme-sqlserver.js +18 -0
  486. package/dist/ace-editor/ace/theme-terminal.js +18 -0
  487. package/dist/ace-editor/ace/theme-textmate.js +16 -0
  488. package/dist/ace-editor/ace/theme-tomorrow.js +18 -0
  489. package/dist/ace-editor/ace/theme-tomorrow_night.js +18 -0
  490. package/dist/ace-editor/ace/theme-tomorrow_night_blue.js +18 -0
  491. package/dist/ace-editor/ace/theme-tomorrow_night_bright.js +18 -0
  492. package/dist/ace-editor/ace/theme-tomorrow_night_eighties.js +18 -0
  493. package/dist/ace-editor/ace/theme-twilight.js +18 -0
  494. package/dist/ace-editor/ace/theme-vibrant_ink.js +18 -0
  495. package/dist/ace-editor/ace/theme-xcode.js +18 -0
  496. package/dist/ace-editor/ace/worker-base.js +1337 -0
  497. package/dist/ace-editor/ace/worker-coffee.js +1386 -0
  498. package/dist/ace-editor/ace/worker-css.js +8918 -0
  499. package/dist/ace-editor/ace/worker-html.js +10848 -0
  500. package/dist/ace-editor/ace/worker-javascript.js +15358 -0
  501. package/dist/ace-editor/ace/worker-json.js +1631 -0
  502. package/dist/ace-editor/ace/worker-lua.js +3524 -0
  503. package/dist/ace-editor/ace/worker-php.js +3793 -0
  504. package/dist/ace-editor/ace/worker-xml.js +3127 -0
  505. package/dist/ace-editor/ace/worker-xquery.js +57584 -0
  506. package/dist/ace-editor/ace/worker-yaml.js +5824 -0
  507. package/dist/ace-editor/internal/AceEditor.d.ts +22 -0
  508. package/dist/ace-editor/internal/AceEditor.js +113 -0
  509. package/dist/ace-editor/internal/AceEditor.js.map +1 -0
  510. package/dist/ace-editor/internal/ace-editor-base/AceEditorBase.d.ts +55 -0
  511. package/dist/ace-editor/internal/ace-editor-base/AceEditorBase.js +206 -0
  512. package/dist/ace-editor/internal/ace-editor-base/AceEditorBase.js.map +1 -0
  513. package/dist/ace-editor/internal/ace-editor-base/debounce.d.ts +24 -0
  514. package/dist/ace-editor/internal/ace-editor-base/debounce.js +41 -0
  515. package/dist/ace-editor/internal/ace-editor-base/debounce.js.map +1 -0
  516. package/dist/ace-editor/internal/ace-editor-base/property-decorators.d.ts +66 -0
  517. package/dist/ace-editor/internal/ace-editor-base/property-decorators.js +171 -0
  518. package/dist/ace-editor/internal/ace-editor-base/property-decorators.js.map +1 -0
  519. package/dist/ace-editor/internal/ace-theme-oscd.d.ts +1 -0
  520. package/dist/ace-editor/internal/ace-theme-oscd.js +322 -0
  521. package/dist/ace-editor/internal/ace-theme-oscd.js.map +1 -0
  522. package/dist/ace-editor/internal/ace.config.d.ts +54 -0
  523. package/dist/ace-editor/internal/ace.config.js +61 -0
  524. package/dist/ace-editor/internal/ace.config.js.map +1 -0
  525. package/dist/ace-editor/oscd-ace-editor.d.ts +2 -0
  526. package/dist/ace-editor/oscd-ace-editor.js +4 -0
  527. package/dist/ace-editor/oscd-ace-editor.js.map +1 -0
  528. package/dist/action-icon/OscdActionIcon.d.ts +12 -5
  529. package/dist/action-icon/OscdActionIcon.js +54 -49
  530. package/dist/action-icon/OscdActionIcon.js.map +1 -1
  531. package/dist/action-icon/OscdActionIcon.spec.d.ts +1 -0
  532. package/dist/action-icon/OscdActionIcon.spec.js +81 -0
  533. package/dist/action-icon/OscdActionIcon.spec.js.map +1 -0
  534. package/dist/action-list/OscdActionList.js +9 -9
  535. package/dist/action-list/OscdActionList.js.map +1 -1
  536. package/dist/action-pane/OscdActionPane.d.ts +8 -6
  537. package/dist/action-pane/OscdActionPane.js +26 -25
  538. package/dist/action-pane/OscdActionPane.js.map +1 -1
  539. package/dist/action-pane/OscdActionPane.spec.d.ts +1 -0
  540. package/dist/action-pane/OscdActionPane.spec.js +87 -0
  541. package/dist/action-pane/OscdActionPane.spec.js.map +1 -0
  542. package/dist/action-tree/OscdActionTree.d.ts +6 -0
  543. package/dist/action-tree/OscdActionTree.js +51 -30
  544. package/dist/action-tree/OscdActionTree.js.map +1 -1
  545. package/dist/app-bar/OscdAppBar.d.ts +21 -12
  546. package/dist/app-bar/OscdAppBar.js +99 -60
  547. package/dist/app-bar/OscdAppBar.js.map +1 -1
  548. package/dist/app-bar/OscdAppBar.spec.d.ts +1 -0
  549. package/dist/app-bar/OscdAppBar.spec.js +73 -0
  550. package/dist/app-bar/OscdAppBar.spec.js.map +1 -0
  551. package/dist/app-bar/OscdAppBar.stories.d.ts +1 -0
  552. package/dist/app-bar/OscdAppBar.stories.js +11 -0
  553. package/dist/app-bar/OscdAppBar.stories.js.map +1 -1
  554. package/dist/app-bar/oscd-app-bar.d.ts +1 -1
  555. package/dist/app-bar/oscd-app-bar.js +1 -1
  556. package/dist/app-bar/oscd-app-bar.js.map +1 -1
  557. package/dist/button/OscdElevatedButton.d.ts +1 -1
  558. package/dist/button/OscdElevatedButton.js +1 -1
  559. package/dist/button/OscdElevatedButton.js.map +1 -1
  560. package/dist/button/OscdFilledButton.d.ts +1 -1
  561. package/dist/button/OscdFilledButton.js +1 -1
  562. package/dist/button/OscdFilledButton.js.map +1 -1
  563. package/dist/button/OscdFilledTonalButton.d.ts +1 -1
  564. package/dist/button/OscdFilledTonalButton.js +1 -1
  565. package/dist/button/OscdFilledTonalButton.js.map +1 -1
  566. package/dist/button/OscdOutlinedButton.d.ts +1 -1
  567. package/dist/button/OscdOutlinedButton.js +1 -1
  568. package/dist/button/OscdOutlinedButton.js.map +1 -1
  569. package/dist/button/OscdTextButton.d.ts +1 -1
  570. package/dist/button/OscdTextButton.js +1 -1
  571. package/dist/button/OscdTextButton.js.map +1 -1
  572. package/dist/checkbox/OscdCheckbox.d.ts +1 -1
  573. package/dist/checkbox/OscdCheckbox.js +1 -1
  574. package/dist/checkbox/OscdCheckbox.js.map +1 -1
  575. package/dist/chips/OscdAssistChip.d.ts +1 -1
  576. package/dist/chips/OscdAssistChip.js +1 -1
  577. package/dist/chips/OscdAssistChip.js.map +1 -1
  578. package/dist/chips/OscdChipSet.d.ts +1 -1
  579. package/dist/chips/OscdChipSet.js.map +1 -1
  580. package/dist/chips/OscdFilterChip.d.ts +1 -1
  581. package/dist/chips/OscdFilterChip.js +1 -1
  582. package/dist/chips/OscdFilterChip.js.map +1 -1
  583. package/dist/chips/OscdInputChip.d.ts +1 -1
  584. package/dist/chips/OscdInputChip.js +1 -1
  585. package/dist/chips/OscdInputChip.js.map +1 -1
  586. package/dist/chips/OscdSuggestionChip.d.ts +1 -1
  587. package/dist/chips/OscdSuggestionChip.js +1 -1
  588. package/dist/chips/OscdSuggestionChip.js.map +1 -1
  589. package/dist/decorators/localstorage.js.map +1 -1
  590. package/dist/dialog/OscdDialog.d.ts +1 -1
  591. package/dist/dialog/OscdDialog.js +1 -1
  592. package/dist/dialog/OscdDialog.js.map +1 -1
  593. package/dist/dialog/warning/OscdWarnDialog.d.ts +31 -0
  594. package/dist/dialog/warning/OscdWarnDialog.js +74 -0
  595. package/dist/dialog/warning/OscdWarnDialog.js.map +1 -0
  596. package/dist/dialog/warning/OscdWarnDialog.stories.d.ts +5 -0
  597. package/dist/dialog/warning/OscdWarnDialog.stories.js +43 -0
  598. package/dist/dialog/warning/OscdWarnDialog.stories.js.map +1 -0
  599. package/dist/dialog/warning/oscd-warn-dialog.d.ts +2 -0
  600. package/dist/dialog/warning/oscd-warn-dialog.js +4 -0
  601. package/dist/dialog/warning/oscd-warn-dialog.js.map +1 -0
  602. package/dist/divider/OscdDivider.d.ts +1 -1
  603. package/dist/divider/OscdDivider.js.map +1 -1
  604. package/dist/elevation/OscdElevation.d.ts +1 -1
  605. package/dist/elevation/OscdElevation.js.map +1 -1
  606. package/dist/fab/OscdBrandedFab.d.ts +1 -1
  607. package/dist/fab/OscdBrandedFab.js +1 -1
  608. package/dist/fab/OscdBrandedFab.js.map +1 -1
  609. package/dist/fab/OscdFab.d.ts +1 -1
  610. package/dist/fab/OscdFab.js +1 -1
  611. package/dist/fab/OscdFab.js.map +1 -1
  612. package/dist/field/OscdFilledField.d.ts +1 -1
  613. package/dist/field/OscdFilledField.js.map +1 -1
  614. package/dist/field/OscdOutlinedField.d.ts +1 -1
  615. package/dist/field/OscdOutlinedField.js.map +1 -1
  616. package/dist/filter-button/OscdFilterButton.js +0 -4
  617. package/dist/filter-button/OscdFilterButton.js.map +1 -1
  618. package/dist/focus/OscdFocusRing.d.ts +1 -1
  619. package/dist/focus/OscdFocusRing.js.map +1 -1
  620. package/dist/icon/OscdIcon.d.ts +1 -1
  621. package/dist/icon/OscdIcon.js +1 -1
  622. package/dist/icon/OscdIcon.js.map +1 -1
  623. package/dist/icon/internal/icon.d.ts +1 -1
  624. package/dist/icon/internal/icon.js +2 -2
  625. package/dist/icon/internal/icon.js.map +1 -1
  626. package/dist/iconbutton/OscdFilledIconButton.d.ts +1 -1
  627. package/dist/iconbutton/OscdFilledIconButton.js +1 -1
  628. package/dist/iconbutton/OscdFilledIconButton.js.map +1 -1
  629. package/dist/iconbutton/OscdFilledTonalIconButton.d.ts +1 -1
  630. package/dist/iconbutton/OscdFilledTonalIconButton.js +1 -1
  631. package/dist/iconbutton/OscdFilledTonalIconButton.js.map +1 -1
  632. package/dist/iconbutton/OscdIconButton.d.ts +1 -1
  633. package/dist/iconbutton/OscdIconButton.js +1 -1
  634. package/dist/iconbutton/OscdIconButton.js.map +1 -1
  635. package/dist/iconbutton/OscdOutlinedIconButton.d.ts +1 -1
  636. package/dist/iconbutton/OscdOutlinedIconButton.js +1 -1
  637. package/dist/iconbutton/OscdOutlinedIconButton.js.map +1 -1
  638. package/dist/labs/badge/OscdBadge.d.ts +1 -1
  639. package/dist/labs/badge/OscdBadge.js.map +1 -1
  640. package/dist/labs/card/OscdElevatedCard.d.ts +1 -1
  641. package/dist/labs/card/OscdElevatedCard.js +1 -1
  642. package/dist/labs/card/OscdElevatedCard.js.map +1 -1
  643. package/dist/labs/card/OscdFilledCard.d.ts +1 -1
  644. package/dist/labs/card/OscdFilledCard.js +1 -1
  645. package/dist/labs/card/OscdFilledCard.js.map +1 -1
  646. package/dist/labs/card/OscdOutlinedCard.d.ts +1 -1
  647. package/dist/labs/card/OscdOutlinedCard.js +1 -1
  648. package/dist/labs/card/OscdOutlinedCard.js.map +1 -1
  649. package/dist/labs/item/OscdItem.d.ts +1 -1
  650. package/dist/labs/item/OscdItem.js.map +1 -1
  651. package/dist/labs/navigationbar/OscdNavigationBar.d.ts +1 -1
  652. package/dist/labs/navigationbar/OscdNavigationBar.js +1 -1
  653. package/dist/labs/navigationbar/OscdNavigationBar.js.map +1 -1
  654. package/dist/labs/navigationtab/OscdNavigationTab.d.ts +1 -1
  655. package/dist/labs/navigationtab/OscdNavigationTab.js +1 -1
  656. package/dist/labs/navigationtab/OscdNavigationTab.js.map +1 -1
  657. package/dist/labs/segmentedbutton/OscdOutlinedSegmentedButton.d.ts +1 -1
  658. package/dist/labs/segmentedbutton/OscdOutlinedSegmentedButton.js +1 -1
  659. package/dist/labs/segmentedbutton/OscdOutlinedSegmentedButton.js.map +1 -1
  660. package/dist/labs/segmentedbuttonset/OscdOutlinedSegmentedButtonSet.d.ts +1 -1
  661. package/dist/labs/segmentedbuttonset/OscdOutlinedSegmentedButtonSet.js.map +1 -1
  662. package/dist/list/OscdList.d.ts +1 -1
  663. package/dist/list/OscdList.js.map +1 -1
  664. package/dist/list/OscdListItem.d.ts +1 -1
  665. package/dist/list/OscdListItem.js +1 -1
  666. package/dist/list/OscdListItem.js.map +1 -1
  667. package/dist/menu/OscdMenu.d.ts +1 -1
  668. package/dist/menu/OscdMenu.js +1 -1
  669. package/dist/menu/OscdMenu.js.map +1 -1
  670. package/dist/menu/OscdMenuItem.d.ts +1 -1
  671. package/dist/menu/OscdMenuItem.js +1 -1
  672. package/dist/menu/OscdMenuItem.js.map +1 -1
  673. package/dist/menu/OscdSubMenu.d.ts +1 -1
  674. package/dist/menu/OscdSubMenu.js.map +1 -1
  675. package/dist/navigation-drawer/OscdNavigationDrawer.d.ts +1 -1
  676. package/dist/navigation-drawer/OscdNavigationDrawer.js +1 -1
  677. package/dist/navigation-drawer/OscdNavigationDrawer.js.map +1 -1
  678. package/dist/navigation-drawer/OscdNavigationDrawer.stories.js +4 -2
  679. package/dist/navigation-drawer/OscdNavigationDrawer.stories.js.map +1 -1
  680. package/dist/navigation-drawer/OscdNavigationDrawerHeader.d.ts +11 -2
  681. package/dist/navigation-drawer/OscdNavigationDrawerHeader.js +11 -57
  682. package/dist/navigation-drawer/OscdNavigationDrawerHeader.js.map +1 -1
  683. package/dist/navigation-drawer/OscdNavigationDrawerHeader.spec.d.ts +1 -0
  684. package/dist/navigation-drawer/OscdNavigationDrawerHeader.spec.js +51 -0
  685. package/dist/navigation-drawer/OscdNavigationDrawerHeader.spec.js.map +1 -0
  686. package/dist/oscd-md3-mappings.d.ts +2 -0
  687. package/dist/oscd-md3-mappings.js +59 -0
  688. package/dist/oscd-md3-mappings.js.map +1 -0
  689. package/dist/oscd-md3-mappings.spec.d.ts +1 -0
  690. package/dist/oscd-md3-mappings.spec.js +82 -0
  691. package/dist/oscd-md3-mappings.spec.js.map +1 -0
  692. package/dist/progress/OscdCircularProgress.d.ts +1 -1
  693. package/dist/progress/OscdCircularProgress.js.map +1 -1
  694. package/dist/progress/OscdLinearProgress.d.ts +1 -1
  695. package/dist/progress/OscdLinearProgress.js.map +1 -1
  696. package/dist/radio/OscdRadio.d.ts +1 -1
  697. package/dist/radio/OscdRadio.js +1 -1
  698. package/dist/radio/OscdRadio.js.map +1 -1
  699. package/dist/ripple/OscdRipple.d.ts +1 -1
  700. package/dist/ripple/OscdRipple.js.map +1 -1
  701. package/dist/scl-checkbox/OscdSclCheckbox.js +1 -3
  702. package/dist/scl-checkbox/OscdSclCheckbox.js.map +1 -1
  703. package/dist/scl-icon/OscdSclIcon.d.ts +4 -20
  704. package/dist/scl-icon/OscdSclIcon.js +4 -115
  705. package/dist/scl-icon/OscdSclIcon.js.map +1 -1
  706. package/dist/scl-icon/internal/scl-icons.d.ts +18 -0
  707. package/dist/scl-icon/internal/scl-icons.js +92 -0
  708. package/dist/scl-icon/internal/scl-icons.js.map +1 -0
  709. package/dist/scl-icon/internal/scl-icons.spec.d.ts +1 -0
  710. package/dist/scl-icon/internal/scl-icons.spec.js +18 -0
  711. package/dist/scl-icon/internal/scl-icons.spec.js.map +1 -0
  712. package/dist/search-field/OscdOutlinedSearchField.d.ts +2 -1
  713. package/dist/search-field/OscdOutlinedSearchField.js +2 -1
  714. package/dist/search-field/OscdOutlinedSearchField.js.map +1 -1
  715. package/dist/search-field/internal/OutlinedSearchField.js.map +1 -1
  716. package/dist/select/OscdFilledSelect.d.ts +1 -1
  717. package/dist/select/OscdFilledSelect.js +1 -1
  718. package/dist/select/OscdFilledSelect.js.map +1 -1
  719. package/dist/select/OscdOutlinedSelect.d.ts +1 -1
  720. package/dist/select/OscdOutlinedSelect.js +1 -1
  721. package/dist/select/OscdOutlinedSelect.js.map +1 -1
  722. package/dist/select/OscdSelectOption.d.ts +1 -1
  723. package/dist/select/OscdSelectOption.js +1 -1
  724. package/dist/select/OscdSelectOption.js.map +1 -1
  725. package/dist/selection-list/OscdSelectionList.js +1 -1
  726. package/dist/selection-list/OscdSelectionList.js.map +1 -1
  727. package/dist/slider/OscdSlider.d.ts +1 -1
  728. package/dist/slider/OscdSlider.js +1 -1
  729. package/dist/slider/OscdSlider.js.map +1 -1
  730. package/dist/snackbar/OscdSnackbar.d.ts +32 -18
  731. package/dist/snackbar/OscdSnackbar.js +191 -67
  732. package/dist/snackbar/OscdSnackbar.js.map +1 -1
  733. package/dist/snackbar/OscdSnackbar.spec.js +67 -0
  734. package/dist/snackbar/OscdSnackbar.spec.js.map +1 -1
  735. package/dist/snackbar/OscdSnackbar.stories.d.ts +3 -1
  736. package/dist/snackbar/OscdSnackbar.stories.js +69 -0
  737. package/dist/snackbar/OscdSnackbar.stories.js.map +1 -1
  738. package/dist/switch/OscdSwitch.d.ts +1 -1
  739. package/dist/switch/OscdSwitch.js +1 -1
  740. package/dist/switch/OscdSwitch.js.map +1 -1
  741. package/dist/tabs/OscdPrimaryTab.d.ts +1 -1
  742. package/dist/tabs/OscdPrimaryTab.js +1 -1
  743. package/dist/tabs/OscdPrimaryTab.js.map +1 -1
  744. package/dist/tabs/OscdPrimaryTab.stories.js +1 -3
  745. package/dist/tabs/OscdPrimaryTab.stories.js.map +1 -1
  746. package/dist/tabs/OscdSecondaryTab.d.ts +1 -1
  747. package/dist/tabs/OscdSecondaryTab.js +1 -1
  748. package/dist/tabs/OscdSecondaryTab.js.map +1 -1
  749. package/dist/tabs/OscdSecondaryTab.stories.js +1 -3
  750. package/dist/tabs/OscdSecondaryTab.stories.js.map +1 -1
  751. package/dist/tabs/OscdTabs.d.ts +1 -1
  752. package/dist/tabs/OscdTabs.js +1 -1
  753. package/dist/tabs/OscdTabs.js.map +1 -1
  754. package/dist/textfield/OscdFilledTextField.d.ts +1 -1
  755. package/dist/textfield/OscdFilledTextField.js +1 -1
  756. package/dist/textfield/OscdFilledTextField.js.map +1 -1
  757. package/dist/textfield/OscdOutlinedTextField.d.ts +1 -1
  758. package/dist/textfield/OscdOutlinedTextField.js +1 -1
  759. package/dist/textfield/OscdOutlinedTextField.js.map +1 -1
  760. package/dist/tree/OscdTree.d.ts +3 -0
  761. package/dist/tree/OscdTree.js +3 -0
  762. package/dist/tree/OscdTree.js.map +1 -1
  763. package/dist/tree/OscdTree.stories.js.map +1 -1
  764. package/dist/tree/OscdTreeItem.d.ts +2 -0
  765. package/dist/tree/OscdTreeItem.js +2 -0
  766. package/dist/tree/OscdTreeItem.js.map +1 -1
  767. package/dist/tree/OscdTreeItem.stories.d.ts +5 -0
  768. package/dist/tree/OscdTreeItem.stories.js +23 -0
  769. package/dist/tree/OscdTreeItem.stories.js.map +1 -0
  770. package/dist/tree/internal/Tree.js +32 -78
  771. package/dist/tree/internal/Tree.js.map +1 -1
  772. package/dist/tree/internal/TreeItem.js +17 -70
  773. package/dist/tree/internal/TreeItem.js.map +1 -1
  774. package/dist/tree-grid/OscdTreeGrid.js +3 -6
  775. package/dist/tree-grid/OscdTreeGrid.js.map +1 -1
  776. package/dist/tree-grid/oscd-tree-grid.spec.js +15 -0
  777. package/dist/tree-grid/oscd-tree-grid.spec.js.map +1 -1
  778. package/dist/utils/storybook/getStorybookHelpers.js +2 -2
  779. package/dist/utils/storybook/getStorybookHelpers.js.map +1 -1
  780. package/dist/utils/storybook/getStorybookMeta.d.ts +5 -0
  781. package/dist/utils/storybook/getStorybookMeta.js +2 -1
  782. package/dist/utils/storybook/getStorybookMeta.js.map +1 -1
  783. package/dist/utils/storybook/story-overrides/divider-overrides.js +1 -1
  784. package/dist/utils/storybook/story-overrides/divider-overrides.js.map +1 -1
  785. package/package.json +41 -71
  786. package/dist/about/Catalog.stories.js +0 -305
  787. package/dist/about/Catalog.stories.js.map +0 -1
  788. package/dist/utils/storybook/themingDecorator.d.ts +0 -19
  789. package/dist/utils/storybook/themingDecorator.js +0 -100
  790. package/dist/utils/storybook/themingDecorator.js.map +0 -1
@@ -0,0 +1,2936 @@
1
+ ace.define("ace/mode/css_highlight_rules",["require","exports","module","ace/lib/oop","ace/lib/lang","ace/mode/text_highlight_rules"], function(require, exports, module){"use strict";
2
+ var oop = require("../lib/oop");
3
+ var lang = require("../lib/lang");
4
+ var TextHighlightRules = require("./text_highlight_rules").TextHighlightRules;
5
+ var supportType = exports.supportType = "align-content|align-items|align-self|all|animation|animation-delay|animation-direction|animation-duration|animation-fill-mode|animation-iteration-count|animation-name|animation-play-state|animation-timing-function|backface-visibility|background|background-attachment|background-blend-mode|background-clip|background-color|background-image|background-origin|background-position|background-repeat|background-size|border|border-bottom|border-bottom-color|border-bottom-left-radius|border-bottom-right-radius|border-bottom-style|border-bottom-width|border-collapse|border-color|border-image|border-image-outset|border-image-repeat|border-image-slice|border-image-source|border-image-width|border-left|border-left-color|border-left-style|border-left-width|border-radius|border-right|border-right-color|border-right-style|border-right-width|border-spacing|border-style|border-top|border-top-color|border-top-left-radius|border-top-right-radius|border-top-style|border-top-width|border-width|bottom|box-shadow|box-sizing|caption-side|clear|clip|color|column-count|column-fill|column-gap|column-rule|column-rule-color|column-rule-style|column-rule-width|column-span|column-width|columns|content|counter-increment|counter-reset|cursor|direction|display|empty-cells|filter|flex|flex-basis|flex-direction|flex-flow|flex-grow|flex-shrink|flex-wrap|float|font|font-family|font-size|font-size-adjust|font-stretch|font-style|font-variant|font-weight|hanging-punctuation|height|justify-content|left|letter-spacing|line-height|list-style|list-style-image|list-style-position|list-style-type|margin|margin-bottom|margin-left|margin-right|margin-top|max-height|max-width|max-zoom|min-height|min-width|min-zoom|nav-down|nav-index|nav-left|nav-right|nav-up|opacity|order|outline|outline-color|outline-offset|outline-style|outline-width|overflow|overflow-x|overflow-y|padding|padding-bottom|padding-left|padding-right|padding-top|page-break-after|page-break-before|page-break-inside|perspective|perspective-origin|position|quotes|resize|right|tab-size|table-layout|text-align|text-align-last|text-decoration|text-decoration-color|text-decoration-line|text-decoration-style|text-indent|text-justify|text-overflow|text-shadow|text-transform|top|transform|transform-origin|transform-style|transition|transition-delay|transition-duration|transition-property|transition-timing-function|unicode-bidi|user-select|user-zoom|vertical-align|visibility|white-space|width|word-break|word-spacing|word-wrap|z-index";
6
+ var supportFunction = exports.supportFunction = "rgb|rgba|url|attr|counter|counters";
7
+ var supportConstant = exports.supportConstant = "absolute|after-edge|after|all-scroll|all|alphabetic|always|antialiased|armenian|auto|avoid-column|avoid-page|avoid|balance|baseline|before-edge|before|below|bidi-override|block-line-height|block|bold|bolder|border-box|both|bottom|box|break-all|break-word|capitalize|caps-height|caption|center|central|char|circle|cjk-ideographic|clone|close-quote|col-resize|collapse|column|consider-shifts|contain|content-box|cover|crosshair|cubic-bezier|dashed|decimal-leading-zero|decimal|default|disabled|disc|disregard-shifts|distribute-all-lines|distribute-letter|distribute-space|distribute|dotted|double|e-resize|ease-in|ease-in-out|ease-out|ease|ellipsis|end|exclude-ruby|flex-end|flex-start|fill|fixed|georgian|glyphs|grid-height|groove|hand|hanging|hebrew|help|hidden|hiragana-iroha|hiragana|horizontal|icon|ideograph-alpha|ideograph-numeric|ideograph-parenthesis|ideograph-space|ideographic|inactive|include-ruby|inherit|initial|inline-block|inline-box|inline-line-height|inline-table|inline|inset|inside|inter-ideograph|inter-word|invert|italic|justify|katakana-iroha|katakana|keep-all|last|left|lighter|line-edge|line-through|line|linear|list-item|local|loose|lower-alpha|lower-greek|lower-latin|lower-roman|lowercase|lr-tb|ltr|mathematical|max-height|max-size|medium|menu|message-box|middle|move|n-resize|ne-resize|newspaper|no-change|no-close-quote|no-drop|no-open-quote|no-repeat|none|normal|not-allowed|nowrap|nw-resize|oblique|open-quote|outset|outside|overline|padding-box|page|pointer|pre-line|pre-wrap|pre|preserve-3d|progress|relative|repeat-x|repeat-y|repeat|replaced|reset-size|ridge|right|round|row-resize|rtl|s-resize|scroll|se-resize|separate|slice|small-caps|small-caption|solid|space|square|start|static|status-bar|step-end|step-start|steps|stretch|strict|sub|super|sw-resize|table-caption|table-cell|table-column-group|table-column|table-footer-group|table-header-group|table-row-group|table-row|table|tb-rl|text-after-edge|text-before-edge|text-bottom|text-size|text-top|text|thick|thin|transparent|underline|upper-alpha|upper-latin|upper-roman|uppercase|use-script|vertical-ideographic|vertical-text|visible|w-resize|wait|whitespace|z-index|zero|zoom";
8
+ var supportConstantColor = exports.supportConstantColor = "aliceblue|antiquewhite|aqua|aquamarine|azure|beige|bisque|black|blanchedalmond|blue|blueviolet|brown|burlywood|cadetblue|chartreuse|chocolate|coral|cornflowerblue|cornsilk|crimson|cyan|darkblue|darkcyan|darkgoldenrod|darkgray|darkgreen|darkgrey|darkkhaki|darkmagenta|darkolivegreen|darkorange|darkorchid|darkred|darksalmon|darkseagreen|darkslateblue|darkslategray|darkslategrey|darkturquoise|darkviolet|deeppink|deepskyblue|dimgray|dimgrey|dodgerblue|firebrick|floralwhite|forestgreen|fuchsia|gainsboro|ghostwhite|gold|goldenrod|gray|green|greenyellow|grey|honeydew|hotpink|indianred|indigo|ivory|khaki|lavender|lavenderblush|lawngreen|lemonchiffon|lightblue|lightcoral|lightcyan|lightgoldenrodyellow|lightgray|lightgreen|lightgrey|lightpink|lightsalmon|lightseagreen|lightskyblue|lightslategray|lightslategrey|lightsteelblue|lightyellow|lime|limegreen|linen|magenta|maroon|mediumaquamarine|mediumblue|mediumorchid|mediumpurple|mediumseagreen|mediumslateblue|mediumspringgreen|mediumturquoise|mediumvioletred|midnightblue|mintcream|mistyrose|moccasin|navajowhite|navy|oldlace|olive|olivedrab|orange|orangered|orchid|palegoldenrod|palegreen|paleturquoise|palevioletred|papayawhip|peachpuff|peru|pink|plum|powderblue|purple|rebeccapurple|red|rosybrown|royalblue|saddlebrown|salmon|sandybrown|seagreen|seashell|sienna|silver|skyblue|slateblue|slategray|slategrey|snow|springgreen|steelblue|tan|teal|thistle|tomato|turquoise|violet|wheat|white|whitesmoke|yellow|yellowgreen";
9
+ var supportConstantFonts = exports.supportConstantFonts = "arial|century|comic|courier|cursive|fantasy|garamond|georgia|helvetica|impact|lucida|symbol|system|tahoma|times|trebuchet|utopia|verdana|webdings|sans-serif|serif|monospace";
10
+ var numRe = exports.numRe = "\\-?(?:(?:[0-9]+(?:\\.[0-9]+)?)|(?:\\.[0-9]+))";
11
+ var pseudoElements = exports.pseudoElements = "(\\:+)\\b(after|before|first-letter|first-line|moz-selection|selection)\\b";
12
+ var pseudoClasses = exports.pseudoClasses = "(:)\\b(active|checked|disabled|empty|enabled|first-child|first-of-type|focus|hover|indeterminate|invalid|last-child|last-of-type|link|not|nth-child|nth-last-child|nth-last-of-type|nth-of-type|only-child|only-of-type|required|root|target|valid|visited)\\b";
13
+ var CssHighlightRules = function () {
14
+ var keywordMapper = this.createKeywordMapper({
15
+ "support.function": supportFunction,
16
+ "support.constant": supportConstant,
17
+ "support.type": supportType,
18
+ "support.constant.color": supportConstantColor,
19
+ "support.constant.fonts": supportConstantFonts
20
+ }, "text", true);
21
+ this.$rules = {
22
+ "start": [{
23
+ include: ["strings", "url", "comments"]
24
+ }, {
25
+ token: "paren.lparen",
26
+ regex: "\\{",
27
+ next: "ruleset"
28
+ }, {
29
+ token: "paren.rparen",
30
+ regex: "\\}"
31
+ }, {
32
+ token: "string",
33
+ regex: "@(?!viewport)",
34
+ next: "media"
35
+ }, {
36
+ token: "keyword",
37
+ regex: "#[a-z0-9-_]+"
38
+ }, {
39
+ token: "keyword",
40
+ regex: "%"
41
+ }, {
42
+ token: "variable",
43
+ regex: "\\.[a-z0-9-_]+"
44
+ }, {
45
+ token: "string",
46
+ regex: ":[a-z0-9-_]+"
47
+ }, {
48
+ token: "constant.numeric",
49
+ regex: numRe
50
+ }, {
51
+ token: "constant",
52
+ regex: "[a-z0-9-_]+"
53
+ }, {
54
+ caseInsensitive: true
55
+ }],
56
+ "media": [{
57
+ include: ["strings", "url", "comments"]
58
+ }, {
59
+ token: "paren.lparen",
60
+ regex: "\\{",
61
+ next: "start"
62
+ }, {
63
+ token: "paren.rparen",
64
+ regex: "\\}",
65
+ next: "start"
66
+ }, {
67
+ token: "string",
68
+ regex: ";",
69
+ next: "start"
70
+ }, {
71
+ token: "keyword",
72
+ regex: "(?:media|supports|document|charset|import|namespace|media|supports|document"
73
+ + "|page|font|keyframes|viewport|counter-style|font-feature-values"
74
+ + "|swash|ornaments|annotation|stylistic|styleset|character-variant)"
75
+ }],
76
+ "comments": [{
77
+ token: "comment", // multi line comment
78
+ regex: "\\/\\*",
79
+ push: [{
80
+ token: "comment",
81
+ regex: "\\*\\/",
82
+ next: "pop"
83
+ }, {
84
+ defaultToken: "comment"
85
+ }]
86
+ }],
87
+ "ruleset": [{
88
+ regex: "-(webkit|ms|moz|o)-",
89
+ token: "text"
90
+ }, {
91
+ token: "punctuation.operator",
92
+ regex: "[:;]"
93
+ }, {
94
+ token: "paren.rparen",
95
+ regex: "\\}",
96
+ next: "start"
97
+ }, {
98
+ include: ["strings", "url", "comments"]
99
+ }, {
100
+ token: ["constant.numeric", "keyword"],
101
+ regex: "(" + numRe + ")(ch|cm|deg|em|ex|fr|gd|grad|Hz|in|kHz|mm|ms|pc|pt|px|rad|rem|s|turn|vh|vmax|vmin|vm|vw|%)"
102
+ }, {
103
+ token: "constant.numeric",
104
+ regex: numRe
105
+ }, {
106
+ token: "constant.numeric", // hex6 color
107
+ regex: "#[a-f0-9]{6}"
108
+ }, {
109
+ token: "constant.numeric", // hex3 color
110
+ regex: "#[a-f0-9]{3}"
111
+ }, {
112
+ token: ["punctuation", "entity.other.attribute-name.pseudo-element.css"],
113
+ regex: pseudoElements
114
+ }, {
115
+ token: ["punctuation", "entity.other.attribute-name.pseudo-class.css"],
116
+ regex: pseudoClasses
117
+ }, {
118
+ include: "url"
119
+ }, {
120
+ token: keywordMapper,
121
+ regex: "\\-?[a-zA-Z_][a-zA-Z0-9_\\-]*"
122
+ }, {
123
+ token: "paren.lparen",
124
+ regex: "\\{"
125
+ }, {
126
+ caseInsensitive: true
127
+ }],
128
+ url: [{
129
+ token: "support.function",
130
+ regex: "(?:url(:?-prefix)?|domain|regexp)\\(",
131
+ push: [{
132
+ token: "support.function",
133
+ regex: "\\)",
134
+ next: "pop"
135
+ }, {
136
+ defaultToken: "string"
137
+ }]
138
+ }],
139
+ strings: [{
140
+ token: "string.start",
141
+ regex: "'",
142
+ push: [{
143
+ token: "string.end",
144
+ regex: "'|$",
145
+ next: "pop"
146
+ }, {
147
+ include: "escapes"
148
+ }, {
149
+ token: "constant.language.escape",
150
+ regex: /\\$/,
151
+ consumeLineEnd: true
152
+ }, {
153
+ defaultToken: "string"
154
+ }]
155
+ }, {
156
+ token: "string.start",
157
+ regex: '"',
158
+ push: [{
159
+ token: "string.end",
160
+ regex: '"|$',
161
+ next: "pop"
162
+ }, {
163
+ include: "escapes"
164
+ }, {
165
+ token: "constant.language.escape",
166
+ regex: /\\$/,
167
+ consumeLineEnd: true
168
+ }, {
169
+ defaultToken: "string"
170
+ }]
171
+ }],
172
+ escapes: [{
173
+ token: "constant.language.escape",
174
+ regex: /\\([a-fA-F\d]{1,6}|[^a-fA-F\d])/
175
+ }]
176
+ };
177
+ this.normalizeRules();
178
+ };
179
+ oop.inherits(CssHighlightRules, TextHighlightRules);
180
+ exports.CssHighlightRules = CssHighlightRules;
181
+
182
+ });
183
+
184
+ ace.define("ace/mode/jsdoc_comment_highlight_rules",["require","exports","module","ace/lib/oop","ace/mode/text_highlight_rules"], function(require, exports, module){"use strict";
185
+ var oop = require("../lib/oop");
186
+ var TextHighlightRules = require("./text_highlight_rules").TextHighlightRules;
187
+ var JsDocCommentHighlightRules = function () {
188
+ this.$rules = {
189
+ "start": [
190
+ {
191
+ token: ["comment.doc.tag", "comment.doc.text", "lparen.doc"],
192
+ regex: "(@(?:param|member|typedef|property|namespace|var|const|callback))(\\s*)({)",
193
+ push: [
194
+ {
195
+ token: "lparen.doc",
196
+ regex: "{",
197
+ push: [
198
+ {
199
+ include: "doc-syntax"
200
+ }, {
201
+ token: "rparen.doc",
202
+ regex: "}|(?=$)",
203
+ next: "pop"
204
+ }
205
+ ]
206
+ }, {
207
+ token: ["rparen.doc", "text.doc", "variable.parameter.doc", "lparen.doc", "variable.parameter.doc", "rparen.doc"],
208
+ regex: /(})(\s*)(?:([\w=:\/\.]+)|(?:(\[)([\w=:\/\.\-\'\" ]+)(\])))/,
209
+ next: "pop"
210
+ }, {
211
+ token: "rparen.doc",
212
+ regex: "}|(?=$)",
213
+ next: "pop"
214
+ }, {
215
+ include: "doc-syntax"
216
+ }, {
217
+ defaultToken: "text.doc"
218
+ }
219
+ ]
220
+ }, {
221
+ token: ["comment.doc.tag", "text.doc", "lparen.doc"],
222
+ regex: "(@(?:returns?|yields|type|this|suppress|public|protected|private|package|modifies|"
223
+ + "implements|external|exception|throws|enum|define|extends))(\\s*)({)",
224
+ push: [
225
+ {
226
+ token: "lparen.doc",
227
+ regex: "{",
228
+ push: [
229
+ {
230
+ include: "doc-syntax"
231
+ }, {
232
+ token: "rparen.doc",
233
+ regex: "}|(?=$)",
234
+ next: "pop"
235
+ }
236
+ ]
237
+ }, {
238
+ token: "rparen.doc",
239
+ regex: "}|(?=$)",
240
+ next: "pop"
241
+ }, {
242
+ include: "doc-syntax"
243
+ }, {
244
+ defaultToken: "text.doc"
245
+ }
246
+ ]
247
+ }, {
248
+ token: ["comment.doc.tag", "text.doc", "variable.parameter.doc"],
249
+ regex: "(@(?:alias|memberof|instance|module|name|lends|namespace|external|this|template|"
250
+ + "requires|param|implements|function|extends|typedef|mixes|constructor|var|"
251
+ + "memberof\\!|event|listens|exports|class|constructs|interface|emits|fires|"
252
+ + "throws|const|callback|borrows|augments))(\\s+)(\\w[\\w#\.:\/~\"\\-]*)?"
253
+ }, {
254
+ token: ["comment.doc.tag", "text.doc", "variable.parameter.doc"],
255
+ regex: "(@method)(\\s+)(\\w[\\w\.\\(\\)]*)"
256
+ }, {
257
+ token: "comment.doc.tag",
258
+ regex: "@access\\s+(?:private|public|protected)"
259
+ }, {
260
+ token: "comment.doc.tag",
261
+ regex: "@kind\\s+(?:class|constant|event|external|file|function|member|mixin|module|namespace|typedef)"
262
+ }, {
263
+ token: "comment.doc.tag",
264
+ regex: "@\\w+(?=\\s|$)"
265
+ },
266
+ JsDocCommentHighlightRules.getTagRule(),
267
+ {
268
+ defaultToken: "comment.doc.body",
269
+ caseInsensitive: true
270
+ }
271
+ ],
272
+ "doc-syntax": [{
273
+ token: "operator.doc",
274
+ regex: /[|:]/
275
+ }, {
276
+ token: "paren.doc",
277
+ regex: /[\[\]]/
278
+ }]
279
+ };
280
+ this.normalizeRules();
281
+ };
282
+ oop.inherits(JsDocCommentHighlightRules, TextHighlightRules);
283
+ JsDocCommentHighlightRules.getTagRule = function (start) {
284
+ return {
285
+ token: "comment.doc.tag.storage.type",
286
+ regex: "\\b(?:TODO|FIXME|XXX|HACK)\\b"
287
+ };
288
+ };
289
+ JsDocCommentHighlightRules.getStartRule = function (start) {
290
+ return {
291
+ token: "comment.doc", // doc comment
292
+ regex: /\/\*\*(?!\/)/,
293
+ next: start
294
+ };
295
+ };
296
+ JsDocCommentHighlightRules.getEndRule = function (start) {
297
+ return {
298
+ token: "comment.doc", // closing comment
299
+ regex: "\\*\\/",
300
+ next: start
301
+ };
302
+ };
303
+ exports.JsDocCommentHighlightRules = JsDocCommentHighlightRules;
304
+
305
+ });
306
+
307
+ ace.define("ace/mode/javascript_highlight_rules",["require","exports","module","ace/lib/oop","ace/mode/jsdoc_comment_highlight_rules","ace/mode/text_highlight_rules"], function(require, exports, module){"use strict";
308
+ var oop = require("../lib/oop");
309
+ var DocCommentHighlightRules = require("./jsdoc_comment_highlight_rules").JsDocCommentHighlightRules;
310
+ var TextHighlightRules = require("./text_highlight_rules").TextHighlightRules;
311
+ var identifierRe = "[a-zA-Z\\$_\u00a1-\uffff][a-zA-Z\\d\\$_\u00a1-\uffff]*";
312
+ var JavaScriptHighlightRules = function (options) {
313
+ var keywords = {
314
+ "variable.language": "Array|Boolean|Date|Function|Iterator|Number|Object|RegExp|String|Proxy|Symbol|" + // Constructors
315
+ "Namespace|QName|XML|XMLList|" + // E4X
316
+ "ArrayBuffer|Float32Array|Float64Array|Int16Array|Int32Array|Int8Array|" +
317
+ "Uint16Array|Uint32Array|Uint8Array|Uint8ClampedArray|" +
318
+ "Error|EvalError|InternalError|RangeError|ReferenceError|StopIteration|" + // Errors
319
+ "SyntaxError|TypeError|URIError|" +
320
+ "decodeURI|decodeURIComponent|encodeURI|encodeURIComponent|eval|isFinite|" + // Non-constructor functions
321
+ "isNaN|parseFloat|parseInt|" +
322
+ "JSON|Math|" + // Other
323
+ "this|arguments|prototype|window|document", // Pseudo
324
+ "keyword": "const|yield|import|get|set|async|await|" +
325
+ "break|case|catch|continue|default|delete|do|else|finally|for|" +
326
+ "if|in|of|instanceof|new|return|switch|throw|try|typeof|let|var|while|with|debugger|" +
327
+ "__parent__|__count__|escape|unescape|with|__proto__|" +
328
+ "class|enum|extends|super|export|implements|private|public|interface|package|protected|static|constructor",
329
+ "storage.type": "const|let|var|function",
330
+ "constant.language": "null|Infinity|NaN|undefined",
331
+ "support.function": "alert",
332
+ "constant.language.boolean": "true|false"
333
+ };
334
+ var keywordMapper = this.createKeywordMapper(keywords, "identifier");
335
+ var kwBeforeRe = "case|do|else|finally|in|instanceof|return|throw|try|typeof|yield|void";
336
+ var escapedRe = "\\\\(?:x[0-9a-fA-F]{2}|" + // hex
337
+ "u[0-9a-fA-F]{4}|" + // unicode
338
+ "u{[0-9a-fA-F]{1,6}}|" + // es6 unicode
339
+ "[0-2][0-7]{0,2}|" + // oct
340
+ "3[0-7][0-7]?|" + // oct
341
+ "[4-7][0-7]?|" + //oct
342
+ ".)";
343
+ var anonymousFunctionRe = "(function)(\\s*)(\\*?)";
344
+ var functionCallStartRule = {
345
+ token: ["identifier", "text", "paren.lparen"],
346
+ regex: "(\\b(?!" + Object.values(keywords).join("|") + "\\b)" + identifierRe + ")(\\s*)(\\()"
347
+ };
348
+ this.$rules = {
349
+ "no_regex": [
350
+ DocCommentHighlightRules.getStartRule("doc-start"),
351
+ comments("no_regex"),
352
+ functionCallStartRule,
353
+ {
354
+ token: "string",
355
+ regex: "'(?=.)",
356
+ next: "qstring"
357
+ }, {
358
+ token: "string",
359
+ regex: '"(?=.)',
360
+ next: "qqstring"
361
+ }, {
362
+ include: "numeric_constants"
363
+ }, {
364
+ token: [
365
+ "entity.name.function", "text", "keyword.operator", "text", "storage.type",
366
+ "text", "storage.type", "text", "paren.lparen"
367
+ ],
368
+ regex: "(" + identifierRe + ")(\\s*)(=)(\\s*)" + anonymousFunctionRe + "(\\s*)(\\()",
369
+ next: "function_arguments"
370
+ }, {
371
+ token: [
372
+ "storage.type", "text", "storage.type", "text", "text", "entity.name.function", "text", "paren.lparen"
373
+ ],
374
+ regex: "(function)(?:(?:(\\s*)(\\*)(\\s*))|(\\s+))(" + identifierRe + ")(\\s*)(\\()",
375
+ next: "function_arguments"
376
+ }, {
377
+ token: [
378
+ "entity.name.function", "text", "punctuation.operator",
379
+ "text", "storage.type", "text", "storage.type", "text", "paren.lparen"
380
+ ],
381
+ regex: "(" + identifierRe + ")(\\s*)(:)(\\s*)" + anonymousFunctionRe + "(\\s*)(\\()",
382
+ next: "function_arguments"
383
+ }, {
384
+ token: [
385
+ "text", "text", "storage.type", "text", "storage.type", "text", "paren.lparen"
386
+ ],
387
+ regex: "(:)(\\s*)" + anonymousFunctionRe + "(\\s*)(\\()",
388
+ next: "function_arguments"
389
+ }, {
390
+ token: "keyword",
391
+ regex: "from(?=\\s*('|\"))"
392
+ }, {
393
+ token: "keyword",
394
+ regex: "(?:" + kwBeforeRe + ")\\b",
395
+ next: "start"
396
+ }, {
397
+ token: "support.constant",
398
+ regex: /that\b/
399
+ }, {
400
+ token: ["storage.type", "punctuation.operator", "support.function.firebug"],
401
+ regex: /(console)(\.)(warn|info|log|error|debug|time|trace|timeEnd|assert)\b/
402
+ }, {
403
+ token: keywordMapper,
404
+ regex: identifierRe
405
+ }, {
406
+ token: "punctuation.operator",
407
+ regex: /[.](?![.])/,
408
+ next: "property"
409
+ }, {
410
+ token: "storage.type",
411
+ regex: /=>/,
412
+ next: "start"
413
+ }, {
414
+ token: "keyword.operator",
415
+ regex: /--|\+\+|\.{3}|===|==|=|!=|!==|<+=?|>+=?|!|&&|\|\||\?:|[!$%&*+\-~\/^]=?/,
416
+ next: "start"
417
+ }, {
418
+ token: "punctuation.operator",
419
+ regex: /[?:,;.]/,
420
+ next: "start"
421
+ }, {
422
+ token: "paren.lparen",
423
+ regex: /[\[({]/,
424
+ next: "start"
425
+ }, {
426
+ token: "paren.rparen",
427
+ regex: /[\])}]/
428
+ }, {
429
+ token: "comment",
430
+ regex: /^#!.*$/
431
+ }
432
+ ],
433
+ property: [{
434
+ token: "text",
435
+ regex: "\\s+"
436
+ }, {
437
+ token: "keyword.operator",
438
+ regex: /=/
439
+ }, {
440
+ token: [
441
+ "storage.type", "text", "storage.type", "text", "paren.lparen"
442
+ ],
443
+ regex: anonymousFunctionRe + "(\\s*)(\\()",
444
+ next: "function_arguments"
445
+ }, {
446
+ token: [
447
+ "storage.type", "text", "storage.type", "text", "text", "entity.name.function", "text", "paren.lparen"
448
+ ],
449
+ regex: "(function)(?:(?:(\\s*)(\\*)(\\s*))|(\\s+))(\\w+)(\\s*)(\\()",
450
+ next: "function_arguments"
451
+ }, {
452
+ token: "punctuation.operator",
453
+ regex: /[.](?![.])/
454
+ }, {
455
+ token: "support.function",
456
+ regex: "prototype"
457
+ }, {
458
+ token: "support.function",
459
+ regex: /(s(?:h(?:ift|ow(?:Mod(?:elessDialog|alDialog)|Help))|croll(?:X|By(?:Pages|Lines)?|Y|To)?|t(?:op|rike)|i(?:n|zeToContent|debar|gnText)|ort|u(?:p|b(?:str(?:ing)?)?)|pli(?:ce|t)|e(?:nd|t(?:Re(?:sizable|questHeader)|M(?:i(?:nutes|lliseconds)|onth)|Seconds|Ho(?:tKeys|urs)|Year|Cursor|Time(?:out)?|Interval|ZOptions|Date|UTC(?:M(?:i(?:nutes|lliseconds)|onth)|Seconds|Hours|Date|FullYear)|FullYear|Active)|arch)|qrt|lice|avePreferences|mall)|h(?:ome|andleEvent)|navigate|c(?:har(?:CodeAt|At)|o(?:s|n(?:cat|textual|firm)|mpile)|eil|lear(?:Timeout|Interval)?|a(?:ptureEvents|ll)|reate(?:StyleSheet|Popup|EventObject))|t(?:o(?:GMTString|S(?:tring|ource)|U(?:TCString|pperCase)|Lo(?:caleString|werCase))|est|a(?:n|int(?:Enabled)?))|i(?:s(?:NaN|Finite)|ndexOf|talics)|d(?:isableExternalCapture|ump|etachEvent)|u(?:n(?:shift|taint|escape|watch)|pdateCommands)|j(?:oin|avaEnabled)|p(?:o(?:p|w)|ush|lugins.refresh|a(?:ddings|rse(?:Int|Float)?)|r(?:int|ompt|eference))|e(?:scape|nableExternalCapture|val|lementFromPoint|x(?:p|ec(?:Script|Command)?))|valueOf|UTC|queryCommand(?:State|Indeterm|Enabled|Value)|f(?:i(?:nd|lter|le(?:ModifiedDate|Size|CreatedDate|UpdatedDate)|xed)|o(?:nt(?:size|color)|rward|rEach)|loor|romCharCode)|watch|l(?:ink|o(?:ad|g)|astIndexOf)|a(?:sin|nchor|cos|t(?:tachEvent|ob|an(?:2)?)|pply|lert|b(?:s|ort))|r(?:ou(?:nd|teEvents)|e(?:size(?:By|To)|calc|turnValue|place|verse|l(?:oad|ease(?:Capture|Events)))|andom)|g(?:o|et(?:ResponseHeader|M(?:i(?:nutes|lliseconds)|onth)|Se(?:conds|lection)|Hours|Year|Time(?:zoneOffset)?|Da(?:y|te)|UTC(?:M(?:i(?:nutes|lliseconds)|onth)|Seconds|Hours|Da(?:y|te)|FullYear)|FullYear|A(?:ttention|llResponseHeaders)))|m(?:in|ove(?:B(?:y|elow)|To(?:Absolute)?|Above)|ergeAttributes|a(?:tch|rgins|x))|b(?:toa|ig|o(?:ld|rderWidths)|link|ack))\b(?=\()/
460
+ }, {
461
+ token: "support.function.dom",
462
+ regex: /(s(?:ub(?:stringData|mit)|plitText|e(?:t(?:NamedItem|Attribute(?:Node)?)|lect))|has(?:ChildNodes|Feature)|namedItem|c(?:l(?:ick|o(?:se|neNode))|reate(?:C(?:omment|DATASection|aption)|T(?:Head|extNode|Foot)|DocumentFragment|ProcessingInstruction|E(?:ntityReference|lement)|Attribute))|tabIndex|i(?:nsert(?:Row|Before|Cell|Data)|tem)|open|delete(?:Row|C(?:ell|aption)|T(?:Head|Foot)|Data)|focus|write(?:ln)?|a(?:dd|ppend(?:Child|Data))|re(?:set|place(?:Child|Data)|move(?:NamedItem|Child|Attribute(?:Node)?)?)|get(?:NamedItem|Element(?:sBy(?:Name|TagName|ClassName)|ById)|Attribute(?:Node)?)|blur)\b(?=\()/
463
+ }, {
464
+ token: "support.constant",
465
+ regex: /(s(?:ystemLanguage|cr(?:ipts|ollbars|een(?:X|Y|Top|Left))|t(?:yle(?:Sheets)?|atus(?:Text|bar)?)|ibling(?:Below|Above)|ource|uffixes|e(?:curity(?:Policy)?|l(?:ection|f)))|h(?:istory|ost(?:name)?|as(?:h|Focus))|y|X(?:MLDocument|SLDocument)|n(?:ext|ame(?:space(?:s|URI)|Prop))|M(?:IN_VALUE|AX_VALUE)|c(?:haracterSet|o(?:n(?:structor|trollers)|okieEnabled|lorDepth|mp(?:onents|lete))|urrent|puClass|l(?:i(?:p(?:boardData)?|entInformation)|osed|asses)|alle(?:e|r)|rypto)|t(?:o(?:olbar|p)|ext(?:Transform|Indent|Decoration|Align)|ags)|SQRT(?:1_2|2)|i(?:n(?:ner(?:Height|Width)|put)|ds|gnoreCase)|zIndex|o(?:scpu|n(?:readystatechange|Line)|uter(?:Height|Width)|p(?:sProfile|ener)|ffscreenBuffering)|NEGATIVE_INFINITY|d(?:i(?:splay|alog(?:Height|Top|Width|Left|Arguments)|rectories)|e(?:scription|fault(?:Status|Ch(?:ecked|arset)|View)))|u(?:ser(?:Profile|Language|Agent)|n(?:iqueID|defined)|pdateInterval)|_content|p(?:ixelDepth|ort|ersonalbar|kcs11|l(?:ugins|atform)|a(?:thname|dding(?:Right|Bottom|Top|Left)|rent(?:Window|Layer)?|ge(?:X(?:Offset)?|Y(?:Offset)?))|r(?:o(?:to(?:col|type)|duct(?:Sub)?|mpter)|e(?:vious|fix)))|e(?:n(?:coding|abledPlugin)|x(?:ternal|pando)|mbeds)|v(?:isibility|endor(?:Sub)?|Linkcolor)|URLUnencoded|P(?:I|OSITIVE_INFINITY)|f(?:ilename|o(?:nt(?:Size|Family|Weight)|rmName)|rame(?:s|Element)|gColor)|E|whiteSpace|l(?:i(?:stStyleType|n(?:eHeight|kColor))|o(?:ca(?:tion(?:bar)?|lName)|wsrc)|e(?:ngth|ft(?:Context)?)|a(?:st(?:M(?:odified|atch)|Index|Paren)|yer(?:s|X)|nguage))|a(?:pp(?:MinorVersion|Name|Co(?:deName|re)|Version)|vail(?:Height|Top|Width|Left)|ll|r(?:ity|guments)|Linkcolor|bove)|r(?:ight(?:Context)?|e(?:sponse(?:XML|Text)|adyState))|global|x|m(?:imeTypes|ultiline|enubar|argin(?:Right|Bottom|Top|Left))|L(?:N(?:10|2)|OG(?:10E|2E))|b(?:o(?:ttom|rder(?:Width|RightWidth|BottomWidth|Style|Color|TopWidth|LeftWidth))|ufferDepth|elow|ackground(?:Color|Image)))\b/
466
+ }, {
467
+ token: "identifier",
468
+ regex: identifierRe
469
+ }, {
470
+ regex: "",
471
+ token: "empty",
472
+ next: "no_regex"
473
+ }
474
+ ],
475
+ "start": [
476
+ DocCommentHighlightRules.getStartRule("doc-start"),
477
+ comments("start"),
478
+ {
479
+ token: "string.regexp",
480
+ regex: "\\/",
481
+ next: "regex"
482
+ }, {
483
+ token: "text",
484
+ regex: "\\s+|^$",
485
+ next: "start"
486
+ }, {
487
+ token: "empty",
488
+ regex: "",
489
+ next: "no_regex"
490
+ }
491
+ ],
492
+ "regex": [
493
+ {
494
+ token: "regexp.keyword.operator",
495
+ regex: "\\\\(?:u[\\da-fA-F]{4}|x[\\da-fA-F]{2}|.)"
496
+ }, {
497
+ token: "string.regexp",
498
+ regex: "/[sxngimy]*",
499
+ next: "no_regex"
500
+ }, {
501
+ token: "invalid",
502
+ regex: /\{\d+\b,?\d*\}[+*]|[+*$^?][+*]|[$^][?]|\?{3,}/
503
+ }, {
504
+ token: "constant.language.escape",
505
+ regex: /\(\?[:=!]|\)|\{\d+\b,?\d*\}|[+*]\?|[()$^+*?.]/
506
+ }, {
507
+ token: "constant.language.delimiter",
508
+ regex: /\|/
509
+ }, {
510
+ token: "constant.language.escape",
511
+ regex: /\[\^?/,
512
+ next: "regex_character_class"
513
+ }, {
514
+ token: "empty",
515
+ regex: "$",
516
+ next: "no_regex"
517
+ }, {
518
+ defaultToken: "string.regexp"
519
+ }
520
+ ],
521
+ "regex_character_class": [
522
+ {
523
+ token: "regexp.charclass.keyword.operator",
524
+ regex: "\\\\(?:u[\\da-fA-F]{4}|x[\\da-fA-F]{2}|.)"
525
+ }, {
526
+ token: "constant.language.escape",
527
+ regex: "]",
528
+ next: "regex"
529
+ }, {
530
+ token: "constant.language.escape",
531
+ regex: "-"
532
+ }, {
533
+ token: "empty",
534
+ regex: "$",
535
+ next: "no_regex"
536
+ }, {
537
+ defaultToken: "string.regexp.charachterclass"
538
+ }
539
+ ],
540
+ "default_parameter": [
541
+ {
542
+ token: "string",
543
+ regex: "'(?=.)",
544
+ push: [
545
+ {
546
+ token: "string",
547
+ regex: "'|$",
548
+ next: "pop"
549
+ }, {
550
+ include: "qstring"
551
+ }
552
+ ]
553
+ }, {
554
+ token: "string",
555
+ regex: '"(?=.)',
556
+ push: [
557
+ {
558
+ token: "string",
559
+ regex: '"|$',
560
+ next: "pop"
561
+ }, {
562
+ include: "qqstring"
563
+ }
564
+ ]
565
+ }, {
566
+ token: "constant.language",
567
+ regex: "null|Infinity|NaN|undefined"
568
+ }, {
569
+ include: "numeric_constants"
570
+ }, {
571
+ token: "punctuation.operator",
572
+ regex: ",",
573
+ next: "function_arguments"
574
+ }, {
575
+ token: "text",
576
+ regex: "\\s+"
577
+ }, {
578
+ token: "punctuation.operator",
579
+ regex: "$"
580
+ }, {
581
+ token: "empty",
582
+ regex: "",
583
+ next: "no_regex"
584
+ }
585
+ ],
586
+ "function_arguments": [
587
+ comments("function_arguments"),
588
+ {
589
+ token: "variable.parameter",
590
+ regex: identifierRe
591
+ }, {
592
+ token: "punctuation.operator",
593
+ regex: ","
594
+ }, {
595
+ token: "text",
596
+ regex: "\\s+"
597
+ }, {
598
+ token: "punctuation.operator",
599
+ regex: "$"
600
+ }, {
601
+ token: "empty",
602
+ regex: "",
603
+ next: "no_regex"
604
+ }
605
+ ],
606
+ "qqstring": [
607
+ {
608
+ token: "constant.language.escape",
609
+ regex: escapedRe
610
+ }, {
611
+ token: "string",
612
+ regex: "\\\\$",
613
+ consumeLineEnd: true
614
+ }, {
615
+ token: "string",
616
+ regex: '"|$',
617
+ next: "no_regex"
618
+ }, {
619
+ defaultToken: "string"
620
+ }
621
+ ],
622
+ "qstring": [
623
+ {
624
+ token: "constant.language.escape",
625
+ regex: escapedRe
626
+ }, {
627
+ token: "string",
628
+ regex: "\\\\$",
629
+ consumeLineEnd: true
630
+ }, {
631
+ token: "string",
632
+ regex: "'|$",
633
+ next: "no_regex"
634
+ }, {
635
+ defaultToken: "string"
636
+ }
637
+ ],
638
+ "numeric_constants": [
639
+ {
640
+ token: "constant.numeric", // hexadecimal, octal and binary
641
+ regex: /0(?:[xX][0-9a-fA-F_]+|[oO][0-7_]+|[bB][01_]+)\b/
642
+ }, {
643
+ token: "constant.numeric", // decimal integers and floats
644
+ regex: /(?:\d[\d_]*(?:\.[\d_]*)?|\.\d[\d_]*)(?:[eE][+-]?\d+\b)?/
645
+ },
646
+ ]
647
+ };
648
+ if (!options || !options.noES6) {
649
+ this.$rules.no_regex.unshift({
650
+ regex: "[{}]", onMatch: function (val, state, stack) {
651
+ this.next = val == "{" ? this.nextState : "";
652
+ if (val == "{" && stack.length) {
653
+ stack.unshift("start", state);
654
+ }
655
+ else if (val == "}" && stack.length) {
656
+ stack.shift();
657
+ this.next = stack.shift();
658
+ if (this.next.indexOf("string") != -1 || this.next.indexOf("jsx") != -1)
659
+ return "paren.quasi.end";
660
+ }
661
+ return val == "{" ? "paren.lparen" : "paren.rparen";
662
+ },
663
+ nextState: "start"
664
+ }, {
665
+ token: "string.quasi.start",
666
+ regex: /`/,
667
+ push: [{
668
+ token: "constant.language.escape",
669
+ regex: escapedRe
670
+ }, {
671
+ token: "paren.quasi.start",
672
+ regex: /\${/,
673
+ push: "start"
674
+ }, {
675
+ token: "string.quasi.end",
676
+ regex: /`/,
677
+ next: "pop"
678
+ }, {
679
+ defaultToken: "string.quasi"
680
+ }]
681
+ }, {
682
+ token: ["variable.parameter", "text"],
683
+ regex: "(" + identifierRe + ")(\\s*)(?=\\=>)"
684
+ }, {
685
+ token: "paren.lparen",
686
+ regex: "(\\()(?=[^\\(]+\\s*=>)",
687
+ next: "function_arguments"
688
+ }, {
689
+ token: "variable.language",
690
+ regex: "(?:(?:(?:Weak)?(?:Set|Map))|Promise)\\b"
691
+ });
692
+ this.$rules["function_arguments"].unshift({
693
+ token: "keyword.operator",
694
+ regex: "=",
695
+ next: "default_parameter"
696
+ }, {
697
+ token: "keyword.operator",
698
+ regex: "\\.{3}"
699
+ });
700
+ this.$rules["property"].unshift({
701
+ token: "support.function",
702
+ regex: "(findIndex|repeat|startsWith|endsWith|includes|isSafeInteger|trunc|cbrt|log2|log10|sign|then|catch|"
703
+ + "finally|resolve|reject|race|any|all|allSettled|keys|entries|isInteger)\\b(?=\\()"
704
+ }, {
705
+ token: "constant.language",
706
+ regex: "(?:MAX_SAFE_INTEGER|MIN_SAFE_INTEGER|EPSILON)\\b"
707
+ });
708
+ if (!options || options.jsx != false)
709
+ JSX.call(this);
710
+ }
711
+ this.embedRules(DocCommentHighlightRules, "doc-", [DocCommentHighlightRules.getEndRule("no_regex")]);
712
+ this.normalizeRules();
713
+ };
714
+ oop.inherits(JavaScriptHighlightRules, TextHighlightRules);
715
+ function JSX() {
716
+ var tagRegex = identifierRe.replace("\\d", "\\d\\-");
717
+ var jsxTag = {
718
+ onMatch: function (val, state, stack) {
719
+ var offset = val.charAt(1) == "/" ? 2 : 1;
720
+ if (offset == 1) {
721
+ if (state != this.nextState)
722
+ stack.unshift(this.next, this.nextState, 0);
723
+ else
724
+ stack.unshift(this.next);
725
+ stack[2]++;
726
+ }
727
+ else if (offset == 2) {
728
+ if (state == this.nextState) {
729
+ stack[1]--;
730
+ if (!stack[1] || stack[1] < 0) {
731
+ stack.shift();
732
+ stack.shift();
733
+ }
734
+ }
735
+ }
736
+ return [{
737
+ type: "meta.tag.punctuation." + (offset == 1 ? "" : "end-") + "tag-open.xml",
738
+ value: val.slice(0, offset)
739
+ }, {
740
+ type: "meta.tag.tag-name.xml",
741
+ value: val.substr(offset)
742
+ }];
743
+ },
744
+ regex: "</?(?:" + tagRegex + "|(?=>))",
745
+ next: "jsxAttributes",
746
+ nextState: "jsx"
747
+ };
748
+ this.$rules.start.unshift(jsxTag);
749
+ var jsxJsRule = {
750
+ regex: "{",
751
+ token: "paren.quasi.start",
752
+ push: "start"
753
+ };
754
+ this.$rules.jsx = [
755
+ jsxJsRule,
756
+ jsxTag,
757
+ { include: "reference" }, { defaultToken: "string.xml" }
758
+ ];
759
+ this.$rules.jsxAttributes = [{
760
+ token: "meta.tag.punctuation.tag-close.xml",
761
+ regex: "/?>",
762
+ onMatch: function (value, currentState, stack) {
763
+ if (currentState == stack[0])
764
+ stack.shift();
765
+ if (value.length == 2) {
766
+ if (stack[0] == this.nextState)
767
+ stack[1]--;
768
+ if (!stack[1] || stack[1] < 0) {
769
+ stack.splice(0, 2);
770
+ }
771
+ }
772
+ this.next = stack[0] || "start";
773
+ return [{ type: this.token, value: value }];
774
+ },
775
+ nextState: "jsx"
776
+ },
777
+ jsxJsRule,
778
+ comments("jsxAttributes"),
779
+ {
780
+ token: "entity.other.attribute-name.xml",
781
+ regex: tagRegex
782
+ }, {
783
+ token: "keyword.operator.attribute-equals.xml",
784
+ regex: "="
785
+ }, {
786
+ token: "text.tag-whitespace.xml",
787
+ regex: "\\s+"
788
+ }, {
789
+ token: "string.attribute-value.xml",
790
+ regex: "'",
791
+ stateName: "jsx_attr_q",
792
+ push: [
793
+ { token: "string.attribute-value.xml", regex: "'", next: "pop" },
794
+ { include: "reference" },
795
+ { defaultToken: "string.attribute-value.xml" }
796
+ ]
797
+ }, {
798
+ token: "string.attribute-value.xml",
799
+ regex: '"',
800
+ stateName: "jsx_attr_qq",
801
+ push: [
802
+ { token: "string.attribute-value.xml", regex: '"', next: "pop" },
803
+ { include: "reference" },
804
+ { defaultToken: "string.attribute-value.xml" }
805
+ ]
806
+ },
807
+ jsxTag
808
+ ];
809
+ this.$rules.reference = [{
810
+ token: "constant.language.escape.reference.xml",
811
+ regex: "(?:&#[0-9]+;)|(?:&#x[0-9a-fA-F]+;)|(?:&[a-zA-Z0-9_:\\.-]+;)"
812
+ }];
813
+ }
814
+ function comments(next) {
815
+ return [
816
+ {
817
+ token: "comment", // multi line comment
818
+ regex: /\/\*/,
819
+ next: [
820
+ DocCommentHighlightRules.getTagRule(),
821
+ { token: "comment", regex: "\\*\\/", next: next || "pop" },
822
+ { defaultToken: "comment", caseInsensitive: true }
823
+ ]
824
+ }, {
825
+ token: "comment",
826
+ regex: "\\/\\/",
827
+ next: [
828
+ DocCommentHighlightRules.getTagRule(),
829
+ { token: "comment", regex: "$|^", next: next || "pop" },
830
+ { defaultToken: "comment", caseInsensitive: true }
831
+ ]
832
+ }
833
+ ];
834
+ }
835
+ exports.JavaScriptHighlightRules = JavaScriptHighlightRules;
836
+
837
+ });
838
+
839
+ ace.define("ace/mode/xml_highlight_rules",["require","exports","module","ace/lib/oop","ace/mode/text_highlight_rules"], function(require, exports, module){"use strict";
840
+ var oop = require("../lib/oop");
841
+ var TextHighlightRules = require("./text_highlight_rules").TextHighlightRules;
842
+ var XmlHighlightRules = function (normalize) {
843
+ var tagRegex = "[_:a-zA-Z\xc0-\uffff][-_:.a-zA-Z0-9\xc0-\uffff]*";
844
+ this.$rules = {
845
+ start: [
846
+ { token: "string.cdata.xml", regex: "<\\!\\[CDATA\\[", next: "cdata" },
847
+ {
848
+ token: ["punctuation.instruction.xml", "keyword.instruction.xml"],
849
+ regex: "(<\\?)(" + tagRegex + ")", next: "processing_instruction"
850
+ },
851
+ { token: "comment.start.xml", regex: "<\\!--", next: "comment" },
852
+ {
853
+ token: ["xml-pe.doctype.xml", "xml-pe.doctype.xml"],
854
+ regex: "(<\\!)(DOCTYPE)(?=[\\s])", next: "doctype", caseInsensitive: true
855
+ },
856
+ { include: "tag" },
857
+ { token: "text.end-tag-open.xml", regex: "</" },
858
+ { token: "text.tag-open.xml", regex: "<" },
859
+ { include: "reference" },
860
+ { defaultToken: "text.xml" }
861
+ ],
862
+ processing_instruction: [{
863
+ token: "entity.other.attribute-name.decl-attribute-name.xml",
864
+ regex: tagRegex
865
+ }, {
866
+ token: "keyword.operator.decl-attribute-equals.xml",
867
+ regex: "="
868
+ }, {
869
+ include: "whitespace"
870
+ }, {
871
+ include: "string"
872
+ }, {
873
+ token: "punctuation.xml-decl.xml",
874
+ regex: "\\?>",
875
+ next: "start"
876
+ }],
877
+ doctype: [
878
+ { include: "whitespace" },
879
+ { include: "string" },
880
+ { token: "xml-pe.doctype.xml", regex: ">", next: "start" },
881
+ { token: "xml-pe.xml", regex: "[-_a-zA-Z0-9:]+" },
882
+ { token: "punctuation.int-subset", regex: "\\[", push: "int_subset" }
883
+ ],
884
+ int_subset: [{
885
+ token: "text.xml",
886
+ regex: "\\s+"
887
+ }, {
888
+ token: "punctuation.int-subset.xml",
889
+ regex: "]",
890
+ next: "pop"
891
+ }, {
892
+ token: ["punctuation.markup-decl.xml", "keyword.markup-decl.xml"],
893
+ regex: "(<\\!)(" + tagRegex + ")",
894
+ push: [{
895
+ token: "text",
896
+ regex: "\\s+"
897
+ },
898
+ {
899
+ token: "punctuation.markup-decl.xml",
900
+ regex: ">",
901
+ next: "pop"
902
+ },
903
+ { include: "string" }]
904
+ }],
905
+ cdata: [
906
+ { token: "string.cdata.xml", regex: "\\]\\]>", next: "start" },
907
+ { token: "text.xml", regex: "\\s+" },
908
+ { token: "text.xml", regex: "(?:[^\\]]|\\](?!\\]>))+" }
909
+ ],
910
+ comment: [
911
+ { token: "comment.end.xml", regex: "-->", next: "start" },
912
+ { defaultToken: "comment.xml" }
913
+ ],
914
+ reference: [{
915
+ token: "constant.language.escape.reference.xml",
916
+ regex: "(?:&#[0-9]+;)|(?:&#x[0-9a-fA-F]+;)|(?:&[a-zA-Z0-9_:\\.-]+;)"
917
+ }],
918
+ attr_reference: [{
919
+ token: "constant.language.escape.reference.attribute-value.xml",
920
+ regex: "(?:&#[0-9]+;)|(?:&#x[0-9a-fA-F]+;)|(?:&[a-zA-Z0-9_:\\.-]+;)"
921
+ }],
922
+ tag: [{
923
+ token: ["meta.tag.punctuation.tag-open.xml", "meta.tag.punctuation.end-tag-open.xml", "meta.tag.tag-name.xml"],
924
+ regex: "(?:(<)|(</))((?:" + tagRegex + ":)?" + tagRegex + ")",
925
+ next: [
926
+ { include: "attributes" },
927
+ { token: "meta.tag.punctuation.tag-close.xml", regex: "/?>", next: "start" }
928
+ ]
929
+ }],
930
+ tag_whitespace: [
931
+ { token: "text.tag-whitespace.xml", regex: "\\s+" }
932
+ ],
933
+ whitespace: [
934
+ { token: "text.whitespace.xml", regex: "\\s+" }
935
+ ],
936
+ string: [{
937
+ token: "string.xml",
938
+ regex: "'",
939
+ push: [
940
+ { token: "string.xml", regex: "'", next: "pop" },
941
+ { defaultToken: "string.xml" }
942
+ ]
943
+ }, {
944
+ token: "string.xml",
945
+ regex: '"',
946
+ push: [
947
+ { token: "string.xml", regex: '"', next: "pop" },
948
+ { defaultToken: "string.xml" }
949
+ ]
950
+ }],
951
+ attributes: [{
952
+ token: "entity.other.attribute-name.xml",
953
+ regex: tagRegex
954
+ }, {
955
+ token: "keyword.operator.attribute-equals.xml",
956
+ regex: "="
957
+ }, {
958
+ include: "tag_whitespace"
959
+ }, {
960
+ include: "attribute_value"
961
+ }],
962
+ attribute_value: [{
963
+ token: "string.attribute-value.xml",
964
+ regex: "'",
965
+ push: [
966
+ { token: "string.attribute-value.xml", regex: "'", next: "pop" },
967
+ { include: "attr_reference" },
968
+ { defaultToken: "string.attribute-value.xml" }
969
+ ]
970
+ }, {
971
+ token: "string.attribute-value.xml",
972
+ regex: '"',
973
+ push: [
974
+ { token: "string.attribute-value.xml", regex: '"', next: "pop" },
975
+ { include: "attr_reference" },
976
+ { defaultToken: "string.attribute-value.xml" }
977
+ ]
978
+ }]
979
+ };
980
+ if (this.constructor === XmlHighlightRules)
981
+ this.normalizeRules();
982
+ };
983
+ (function () {
984
+ this.embedTagRules = function (HighlightRules, prefix, tag) {
985
+ this.$rules.tag.unshift({
986
+ token: ["meta.tag.punctuation.tag-open.xml", "meta.tag." + tag + ".tag-name.xml"],
987
+ regex: "(<)(" + tag + "(?=\\s|>|$))",
988
+ next: [
989
+ { include: "attributes" },
990
+ { token: "meta.tag.punctuation.tag-close.xml", regex: "/?>", next: prefix + "start" }
991
+ ]
992
+ });
993
+ this.$rules[tag + "-end"] = [
994
+ { include: "attributes" },
995
+ { token: "meta.tag.punctuation.tag-close.xml", regex: "/?>", next: "start",
996
+ onMatch: function (value, currentState, stack) {
997
+ stack.splice(0);
998
+ return this.token;
999
+ } }
1000
+ ];
1001
+ this.embedRules(HighlightRules, prefix, [{
1002
+ token: ["meta.tag.punctuation.end-tag-open.xml", "meta.tag." + tag + ".tag-name.xml"],
1003
+ regex: "(</)(" + tag + "(?=\\s|>|$))",
1004
+ next: tag + "-end"
1005
+ }, {
1006
+ token: "string.cdata.xml",
1007
+ regex: "<\\!\\[CDATA\\["
1008
+ }, {
1009
+ token: "string.cdata.xml",
1010
+ regex: "\\]\\]>"
1011
+ }]);
1012
+ };
1013
+ }).call(TextHighlightRules.prototype);
1014
+ oop.inherits(XmlHighlightRules, TextHighlightRules);
1015
+ exports.XmlHighlightRules = XmlHighlightRules;
1016
+
1017
+ });
1018
+
1019
+ ace.define("ace/mode/html_highlight_rules",["require","exports","module","ace/lib/oop","ace/lib/lang","ace/mode/css_highlight_rules","ace/mode/javascript_highlight_rules","ace/mode/xml_highlight_rules"], function(require, exports, module){"use strict";
1020
+ var oop = require("../lib/oop");
1021
+ var lang = require("../lib/lang");
1022
+ var CssHighlightRules = require("./css_highlight_rules").CssHighlightRules;
1023
+ var JavaScriptHighlightRules = require("./javascript_highlight_rules").JavaScriptHighlightRules;
1024
+ var XmlHighlightRules = require("./xml_highlight_rules").XmlHighlightRules;
1025
+ var tagMap = lang.createMap({
1026
+ a: 'anchor',
1027
+ button: 'form',
1028
+ form: 'form',
1029
+ img: 'image',
1030
+ input: 'form',
1031
+ label: 'form',
1032
+ option: 'form',
1033
+ script: 'script',
1034
+ select: 'form',
1035
+ textarea: 'form',
1036
+ style: 'style',
1037
+ table: 'table',
1038
+ tbody: 'table',
1039
+ td: 'table',
1040
+ tfoot: 'table',
1041
+ th: 'table',
1042
+ tr: 'table'
1043
+ });
1044
+ var HtmlHighlightRules = function () {
1045
+ XmlHighlightRules.call(this);
1046
+ this.addRules({
1047
+ attributes: [{
1048
+ include: "tag_whitespace"
1049
+ }, {
1050
+ token: "entity.other.attribute-name.xml",
1051
+ regex: "[-_a-zA-Z0-9:.]+"
1052
+ }, {
1053
+ token: "keyword.operator.attribute-equals.xml",
1054
+ regex: "=",
1055
+ push: [{
1056
+ include: "tag_whitespace"
1057
+ }, {
1058
+ token: "string.unquoted.attribute-value.html",
1059
+ regex: "[^<>='\"`\\s]+",
1060
+ next: "pop"
1061
+ }, {
1062
+ token: "empty",
1063
+ regex: "",
1064
+ next: "pop"
1065
+ }]
1066
+ }, {
1067
+ include: "attribute_value"
1068
+ }],
1069
+ tag: [{
1070
+ token: function (start, tag) {
1071
+ var group = tagMap[tag];
1072
+ return ["meta.tag.punctuation." + (start == "<" ? "" : "end-") + "tag-open.xml",
1073
+ "meta.tag" + (group ? "." + group : "") + ".tag-name.xml"];
1074
+ },
1075
+ regex: "(</?)([-_a-zA-Z0-9:.]+)",
1076
+ next: "tag_stuff"
1077
+ }],
1078
+ tag_stuff: [
1079
+ { include: "attributes" },
1080
+ { token: "meta.tag.punctuation.tag-close.xml", regex: "/?>", next: "start" }
1081
+ ]
1082
+ });
1083
+ this.embedTagRules(CssHighlightRules, "css-", "style");
1084
+ this.embedTagRules(new JavaScriptHighlightRules({ jsx: false }).getRules(), "js-", "script");
1085
+ if (this.constructor === HtmlHighlightRules)
1086
+ this.normalizeRules();
1087
+ };
1088
+ oop.inherits(HtmlHighlightRules, XmlHighlightRules);
1089
+ exports.HtmlHighlightRules = HtmlHighlightRules;
1090
+
1091
+ });
1092
+
1093
+ ace.define("ace/mode/markdown_highlight_rules",["require","exports","module","ace/config","ace/lib/oop","ace/lib/lang","ace/mode/text_highlight_rules","ace/mode/html_highlight_rules"], function(require, exports, module){"use strict";
1094
+ var modes = require("../config").$modes;
1095
+ var oop = require("../lib/oop");
1096
+ var lang = require("../lib/lang");
1097
+ var TextHighlightRules = require("./text_highlight_rules").TextHighlightRules;
1098
+ var HtmlHighlightRules = require("./html_highlight_rules").HtmlHighlightRules;
1099
+ var escaped = function (ch) {
1100
+ return "(?:[^" + lang.escapeRegExp(ch) + "\\\\]|\\\\.)*";
1101
+ };
1102
+ var MarkdownHighlightRules = function () {
1103
+ HtmlHighlightRules.call(this);
1104
+ var codeBlockStartRule = {
1105
+ token: "support.function",
1106
+ regex: /^\s*(```+[^`]*|~~~+[^~]*)$/,
1107
+ onMatch: function (value, state, stack, line) {
1108
+ var m = value.match(/^(\s*)([`~]+)(.*)/);
1109
+ var language = /[\w-]+|$/.exec(m[3])[0];
1110
+ if (!modes[language])
1111
+ language = "";
1112
+ stack.unshift("githubblock", [], [m[1], m[2], language], state);
1113
+ return this.token;
1114
+ },
1115
+ next: "githubblock"
1116
+ };
1117
+ var codeBlockRules = [{
1118
+ token: "support.function",
1119
+ regex: ".*",
1120
+ onMatch: function (value, state, stack, line) {
1121
+ var embedState = stack[1];
1122
+ var indent = stack[2][0];
1123
+ var endMarker = stack[2][1];
1124
+ var language = stack[2][2];
1125
+ var m = /^(\s*)(`+|~+)\s*$/.exec(value);
1126
+ if (m && m[1].length < indent.length + 3
1127
+ && m[2].length >= endMarker.length && m[2][0] == endMarker[0]) {
1128
+ stack.splice(0, 3);
1129
+ this.next = stack.shift();
1130
+ return this.token;
1131
+ }
1132
+ this.next = "";
1133
+ if (language && modes[language]) {
1134
+ var data = modes[language].getTokenizer().getLineTokens(value, embedState.slice(0));
1135
+ stack[1] = data.state;
1136
+ return data.tokens;
1137
+ }
1138
+ return this.token;
1139
+ }
1140
+ }];
1141
+ this.$rules["start"].unshift({
1142
+ token: "empty_line",
1143
+ regex: '^$',
1144
+ next: "allowBlock"
1145
+ }, {
1146
+ token: "markup.heading.1",
1147
+ regex: "^=+(?=\\s*$)"
1148
+ }, {
1149
+ token: "markup.heading.2",
1150
+ regex: "^\\-+(?=\\s*$)"
1151
+ }, {
1152
+ token: function (value) {
1153
+ return "markup.heading." + value.length;
1154
+ },
1155
+ regex: /^#{1,6}(?=\s|$)/,
1156
+ next: "header"
1157
+ }, codeBlockStartRule, {
1158
+ token: "string.blockquote",
1159
+ regex: "^\\s*>\\s*(?:[*+-]|\\d+\\.)?\\s+",
1160
+ next: "blockquote"
1161
+ }, {
1162
+ token: "constant",
1163
+ regex: "^ {0,3}(?:(?:\\* ?){3,}|(?:\\- ?){3,}|(?:\\_ ?){3,})\\s*$",
1164
+ next: "allowBlock"
1165
+ }, {
1166
+ token: "markup.list",
1167
+ regex: "^\\s{0,3}(?:[*+-]|\\d+\\.)\\s+",
1168
+ next: "listblock-start"
1169
+ }, {
1170
+ include: "basic"
1171
+ });
1172
+ this.addRules({
1173
+ "basic": [{
1174
+ token: "constant.language.escape",
1175
+ regex: /\\[\\`*_{}\[\]()#+\-.!]/
1176
+ }, {
1177
+ token: "support.function",
1178
+ regex: "(`+)(.*?[^`])(\\1)"
1179
+ }, {
1180
+ token: ["text", "constant", "text", "url", "string", "text"],
1181
+ regex: "^([ ]{0,3}\\[)([^\\]]+)(\\]:\\s*)([^ ]+)(\\s*(?:[\"][^\"]+[\"])?(\\s*))$"
1182
+ }, {
1183
+ token: ["text", "string", "text", "constant", "text"],
1184
+ regex: "(\\[)(" + escaped("]") + ")(\\]\\s*\\[)(" + escaped("]") + ")(\\])"
1185
+ }, {
1186
+ token: ["text", "string", "text", "markup.underline", "string", "text"],
1187
+ regex: "(\\!?\\[)(" + // [
1188
+ escaped("]") + // link text or alt text
1189
+ ")(\\]\\()" + // ](
1190
+ '((?:[^\\)\\s\\\\]|\\\\.|\\s(?=[^"]))*)' + // href or image
1191
+ '(\\s*"' + escaped('"') + '"\\s*)?' + // "title"
1192
+ "(\\))" // )
1193
+ }, {
1194
+ token: "string.strong",
1195
+ regex: "([*]{2}|[_]{2}(?=\\S))(.*?\\S[*_]*)(\\1)"
1196
+ }, {
1197
+ token: "string.emphasis",
1198
+ regex: "([*]|[_](?=\\S))(.*?\\S[*_]*)(\\1)"
1199
+ }, {
1200
+ token: ["text", "url", "text"],
1201
+ regex: "(<)(" +
1202
+ "(?:https?|ftp|dict):[^'\">\\s]+" +
1203
+ "|" +
1204
+ "(?:mailto:)?[-.\\w]+\\@[-a-z0-9]+(?:\\.[-a-z0-9]+)*\\.[a-z]+" +
1205
+ ")(>)"
1206
+ }],
1207
+ "allowBlock": [
1208
+ { token: "support.function", regex: "^ {4}.+", next: "allowBlock" },
1209
+ { token: "empty_line", regex: '^$', next: "allowBlock" },
1210
+ { token: "empty", regex: "", next: "start" }
1211
+ ],
1212
+ "header": [{
1213
+ regex: "$",
1214
+ next: "start"
1215
+ }, {
1216
+ include: "basic"
1217
+ }, {
1218
+ defaultToken: "heading"
1219
+ }],
1220
+ "listblock-start": [{
1221
+ token: "support.variable",
1222
+ regex: /(?:\[[ x]\])?/,
1223
+ next: "listblock"
1224
+ }],
1225
+ "listblock": [{
1226
+ token: "empty_line",
1227
+ regex: "^$",
1228
+ next: "start"
1229
+ }, {
1230
+ token: "markup.list",
1231
+ regex: "^\\s{0,3}(?:[*+-]|\\d+\\.)\\s+",
1232
+ next: "listblock-start"
1233
+ }, {
1234
+ include: "basic", noEscape: true
1235
+ },
1236
+ codeBlockStartRule,
1237
+ {
1238
+ defaultToken: "list" //do not use markup.list to allow stling leading `*` differntly
1239
+ }],
1240
+ "blockquote": [{
1241
+ token: "empty_line",
1242
+ regex: "^\\s*$",
1243
+ next: "start"
1244
+ }, {
1245
+ token: "string.blockquote",
1246
+ regex: "^\\s*>\\s*(?:[*+-]|\\d+\\.)?\\s+",
1247
+ next: "blockquote"
1248
+ }, {
1249
+ include: "basic", noEscape: true
1250
+ }, {
1251
+ defaultToken: "string.blockquote"
1252
+ }],
1253
+ "githubblock": codeBlockRules
1254
+ });
1255
+ this.normalizeRules();
1256
+ };
1257
+ oop.inherits(MarkdownHighlightRules, TextHighlightRules);
1258
+ exports.MarkdownHighlightRules = MarkdownHighlightRules;
1259
+
1260
+ });
1261
+
1262
+ ace.define("ace/mode/folding/markdown",["require","exports","module","ace/lib/oop","ace/mode/folding/fold_mode","ace/range"], function(require, exports, module){"use strict";
1263
+ var oop = require("../../lib/oop");
1264
+ var BaseFoldMode = require("./fold_mode").FoldMode;
1265
+ var Range = require("../../range").Range;
1266
+ var FoldMode = exports.FoldMode = function () { };
1267
+ oop.inherits(FoldMode, BaseFoldMode);
1268
+ (function () {
1269
+ this.foldingStartMarker = /^(?:[=-]+\s*$|#{1,6} |`{3})/;
1270
+ this.getFoldWidget = function (session, foldStyle, row) {
1271
+ var line = session.getLine(row);
1272
+ if (!this.foldingStartMarker.test(line))
1273
+ return "";
1274
+ if (line[0] == "`") {
1275
+ if (session.bgTokenizer.getState(row) == "start")
1276
+ return "end";
1277
+ return "start";
1278
+ }
1279
+ return "start";
1280
+ };
1281
+ this.getFoldWidgetRange = function (session, foldStyle, row) {
1282
+ var line = session.getLine(row);
1283
+ var startColumn = line.length;
1284
+ var maxRow = session.getLength();
1285
+ var startRow = row;
1286
+ var endRow = row;
1287
+ if (!line.match(this.foldingStartMarker))
1288
+ return;
1289
+ if (line[0] == "`") {
1290
+ if (session.bgTokenizer.getState(row) !== "start") {
1291
+ while (++row < maxRow) {
1292
+ line = session.getLine(row);
1293
+ if (line[0] == "`" & line.substring(0, 3) == "```")
1294
+ break;
1295
+ }
1296
+ return new Range(startRow, startColumn, row, 0);
1297
+ }
1298
+ else {
1299
+ while (row-- > 0) {
1300
+ line = session.getLine(row);
1301
+ if (line[0] == "`" & line.substring(0, 3) == "```")
1302
+ break;
1303
+ }
1304
+ return new Range(row, line.length, startRow, 0);
1305
+ }
1306
+ }
1307
+ var token;
1308
+ function isHeading(row) {
1309
+ token = session.getTokens(row)[0];
1310
+ return token && token.type.lastIndexOf(heading, 0) === 0;
1311
+ }
1312
+ var heading = "markup.heading";
1313
+ function getLevel() {
1314
+ var ch = token.value[0];
1315
+ if (ch == "=")
1316
+ return 6;
1317
+ if (ch == "-")
1318
+ return 5;
1319
+ return 7 - token.value.search(/[^#]|$/);
1320
+ }
1321
+ if (isHeading(row)) {
1322
+ var startHeadingLevel = getLevel();
1323
+ while (++row < maxRow) {
1324
+ if (!isHeading(row))
1325
+ continue;
1326
+ var level = getLevel();
1327
+ if (level >= startHeadingLevel)
1328
+ break;
1329
+ }
1330
+ endRow = row - (!token || ["=", "-"].indexOf(token.value[0]) == -1 ? 1 : 2);
1331
+ if (endRow > startRow) {
1332
+ while (endRow > startRow && /^\s*$/.test(session.getLine(endRow)))
1333
+ endRow--;
1334
+ }
1335
+ if (endRow > startRow) {
1336
+ var endColumn = session.getLine(endRow).length;
1337
+ return new Range(startRow, startColumn, endRow, endColumn);
1338
+ }
1339
+ }
1340
+ };
1341
+ }).call(FoldMode.prototype);
1342
+
1343
+ });
1344
+
1345
+ ace.define("ace/mode/matching_brace_outdent",["require","exports","module","ace/range"], function(require, exports, module){"use strict";
1346
+ var Range = require("../range").Range;
1347
+ var MatchingBraceOutdent = function () { };
1348
+ (function () {
1349
+ this.checkOutdent = function (line, input) {
1350
+ if (!/^\s+$/.test(line))
1351
+ return false;
1352
+ return /^\s*\}/.test(input);
1353
+ };
1354
+ this.autoOutdent = function (doc, row) {
1355
+ var line = doc.getLine(row);
1356
+ var match = line.match(/^(\s*\})/);
1357
+ if (!match)
1358
+ return 0;
1359
+ var column = match[1].length;
1360
+ var openBracePos = doc.findMatchingBracket({ row: row, column: column });
1361
+ if (!openBracePos || openBracePos.row == row)
1362
+ return 0;
1363
+ var indent = this.$getIndent(doc.getLine(openBracePos.row));
1364
+ doc.replace(new Range(row, 0, row, column - 1), indent);
1365
+ };
1366
+ this.$getIndent = function (line) {
1367
+ return line.match(/^\s*/)[0];
1368
+ };
1369
+ }).call(MatchingBraceOutdent.prototype);
1370
+ exports.MatchingBraceOutdent = MatchingBraceOutdent;
1371
+
1372
+ });
1373
+
1374
+ ace.define("ace/mode/behaviour/xml",["require","exports","module","ace/lib/oop","ace/mode/behaviour","ace/token_iterator"], function(require, exports, module){"use strict";
1375
+ var oop = require("../../lib/oop");
1376
+ var Behaviour = require("../behaviour").Behaviour;
1377
+ var TokenIterator = require("../../token_iterator").TokenIterator;
1378
+ function is(token, type) {
1379
+ return token && token.type.lastIndexOf(type + ".xml") > -1;
1380
+ }
1381
+ var XmlBehaviour = function () {
1382
+ this.add("string_dquotes", "insertion", function (state, action, editor, session, text) {
1383
+ if (text == '"' || text == "'") {
1384
+ var quote = text;
1385
+ var selected = session.doc.getTextRange(editor.getSelectionRange());
1386
+ if (selected !== "" && selected !== "'" && selected != '"' && editor.getWrapBehavioursEnabled()) {
1387
+ return {
1388
+ text: quote + selected + quote,
1389
+ selection: false
1390
+ };
1391
+ }
1392
+ var cursor = editor.getCursorPosition();
1393
+ var line = session.doc.getLine(cursor.row);
1394
+ var rightChar = line.substring(cursor.column, cursor.column + 1);
1395
+ var iterator = new TokenIterator(session, cursor.row, cursor.column);
1396
+ var token = iterator.getCurrentToken();
1397
+ if (rightChar == quote && (is(token, "attribute-value") || is(token, "string"))) {
1398
+ return {
1399
+ text: "",
1400
+ selection: [1, 1]
1401
+ };
1402
+ }
1403
+ if (!token)
1404
+ token = iterator.stepBackward();
1405
+ if (!token)
1406
+ return;
1407
+ while (is(token, "tag-whitespace") || is(token, "whitespace")) {
1408
+ token = iterator.stepBackward();
1409
+ }
1410
+ var rightSpace = !rightChar || rightChar.match(/\s/);
1411
+ if (is(token, "attribute-equals") && (rightSpace || rightChar == '>') || (is(token, "decl-attribute-equals") && (rightSpace || rightChar == '?'))) {
1412
+ return {
1413
+ text: quote + quote,
1414
+ selection: [1, 1]
1415
+ };
1416
+ }
1417
+ }
1418
+ });
1419
+ this.add("string_dquotes", "deletion", function (state, action, editor, session, range) {
1420
+ var selected = session.doc.getTextRange(range);
1421
+ if (!range.isMultiLine() && (selected == '"' || selected == "'")) {
1422
+ var line = session.doc.getLine(range.start.row);
1423
+ var rightChar = line.substring(range.start.column + 1, range.start.column + 2);
1424
+ if (rightChar == selected) {
1425
+ range.end.column++;
1426
+ return range;
1427
+ }
1428
+ }
1429
+ });
1430
+ this.add("autoclosing", "insertion", function (state, action, editor, session, text) {
1431
+ if (text == '>') {
1432
+ var position = editor.getSelectionRange().start;
1433
+ var iterator = new TokenIterator(session, position.row, position.column);
1434
+ var token = iterator.getCurrentToken() || iterator.stepBackward();
1435
+ if (!token || !(is(token, "tag-name") || is(token, "tag-whitespace") || is(token, "attribute-name") || is(token, "attribute-equals") || is(token, "attribute-value")))
1436
+ return;
1437
+ if (is(token, "reference.attribute-value"))
1438
+ return;
1439
+ if (is(token, "attribute-value")) {
1440
+ var tokenEndColumn = iterator.getCurrentTokenColumn() + token.value.length;
1441
+ if (position.column < tokenEndColumn)
1442
+ return;
1443
+ if (position.column == tokenEndColumn) {
1444
+ var nextToken = iterator.stepForward();
1445
+ if (nextToken && is(nextToken, "attribute-value"))
1446
+ return;
1447
+ iterator.stepBackward();
1448
+ }
1449
+ }
1450
+ if (/^\s*>/.test(session.getLine(position.row).slice(position.column)))
1451
+ return;
1452
+ while (!is(token, "tag-name")) {
1453
+ token = iterator.stepBackward();
1454
+ if (token.value == "<") {
1455
+ token = iterator.stepForward();
1456
+ break;
1457
+ }
1458
+ }
1459
+ var tokenRow = iterator.getCurrentTokenRow();
1460
+ var tokenColumn = iterator.getCurrentTokenColumn();
1461
+ if (is(iterator.stepBackward(), "end-tag-open"))
1462
+ return;
1463
+ var element = token.value;
1464
+ if (tokenRow == position.row)
1465
+ element = element.substring(0, position.column - tokenColumn);
1466
+ if (this.voidElements && this.voidElements.hasOwnProperty(element.toLowerCase()))
1467
+ return;
1468
+ return {
1469
+ text: ">" + "</" + element + ">",
1470
+ selection: [1, 1]
1471
+ };
1472
+ }
1473
+ });
1474
+ this.add("autoindent", "insertion", function (state, action, editor, session, text) {
1475
+ if (text == "\n") {
1476
+ var cursor = editor.getCursorPosition();
1477
+ var line = session.getLine(cursor.row);
1478
+ var iterator = new TokenIterator(session, cursor.row, cursor.column);
1479
+ var token = iterator.getCurrentToken();
1480
+ if (is(token, "") && token.type.indexOf("tag-close") !== -1) {
1481
+ if (token.value == "/>")
1482
+ return;
1483
+ while (token && token.type.indexOf("tag-name") === -1) {
1484
+ token = iterator.stepBackward();
1485
+ }
1486
+ if (!token) {
1487
+ return;
1488
+ }
1489
+ var tag = token.value;
1490
+ var row = iterator.getCurrentTokenRow();
1491
+ token = iterator.stepBackward();
1492
+ if (!token || token.type.indexOf("end-tag") !== -1) {
1493
+ return;
1494
+ }
1495
+ if (this.voidElements && !this.voidElements[tag] || !this.voidElements) {
1496
+ var nextToken = session.getTokenAt(cursor.row, cursor.column + 1);
1497
+ var line = session.getLine(row);
1498
+ var nextIndent = this.$getIndent(line);
1499
+ var indent = nextIndent + session.getTabString();
1500
+ if (nextToken && nextToken.value === "</") {
1501
+ return {
1502
+ text: "\n" + indent + "\n" + nextIndent,
1503
+ selection: [1, indent.length, 1, indent.length]
1504
+ };
1505
+ }
1506
+ else {
1507
+ return {
1508
+ text: "\n" + indent
1509
+ };
1510
+ }
1511
+ }
1512
+ }
1513
+ }
1514
+ });
1515
+ };
1516
+ oop.inherits(XmlBehaviour, Behaviour);
1517
+ exports.XmlBehaviour = XmlBehaviour;
1518
+
1519
+ });
1520
+
1521
+ ace.define("ace/mode/behaviour/javascript",["require","exports","module","ace/lib/oop","ace/token_iterator","ace/mode/behaviour/cstyle","ace/mode/behaviour/xml"], function(require, exports, module){"use strict";
1522
+ var oop = require("../../lib/oop");
1523
+ var TokenIterator = require("../../token_iterator").TokenIterator;
1524
+ var CstyleBehaviour = require("../behaviour/cstyle").CstyleBehaviour;
1525
+ var XmlBehaviour = require("../behaviour/xml").XmlBehaviour;
1526
+ var JavaScriptBehaviour = function () {
1527
+ var xmlBehaviours = new XmlBehaviour({ closeCurlyBraces: true }).getBehaviours();
1528
+ this.addBehaviours(xmlBehaviours);
1529
+ this.inherit(CstyleBehaviour);
1530
+ this.add("autoclosing-fragment", "insertion", function (state, action, editor, session, text) {
1531
+ if (text == '>') {
1532
+ var position = editor.getSelectionRange().start;
1533
+ var iterator = new TokenIterator(session, position.row, position.column);
1534
+ var token = iterator.getCurrentToken() || iterator.stepBackward();
1535
+ if (!token)
1536
+ return;
1537
+ if (token.value == '<') {
1538
+ return {
1539
+ text: "></>",
1540
+ selection: [1, 1]
1541
+ };
1542
+ }
1543
+ }
1544
+ });
1545
+ };
1546
+ oop.inherits(JavaScriptBehaviour, CstyleBehaviour);
1547
+ exports.JavaScriptBehaviour = JavaScriptBehaviour;
1548
+
1549
+ });
1550
+
1551
+ ace.define("ace/mode/folding/xml",["require","exports","module","ace/lib/oop","ace/range","ace/mode/folding/fold_mode"], function(require, exports, module){"use strict";
1552
+ var oop = require("../../lib/oop");
1553
+ var Range = require("../../range").Range;
1554
+ var BaseFoldMode = require("./fold_mode").FoldMode;
1555
+ var FoldMode = exports.FoldMode = function (voidElements, optionalEndTags) {
1556
+ BaseFoldMode.call(this);
1557
+ this.voidElements = voidElements || {};
1558
+ this.optionalEndTags = oop.mixin({}, this.voidElements);
1559
+ if (optionalEndTags)
1560
+ oop.mixin(this.optionalEndTags, optionalEndTags);
1561
+ };
1562
+ oop.inherits(FoldMode, BaseFoldMode);
1563
+ var Tag = function () {
1564
+ this.tagName = "";
1565
+ this.closing = false;
1566
+ this.selfClosing = false;
1567
+ this.start = { row: 0, column: 0 };
1568
+ this.end = { row: 0, column: 0 };
1569
+ };
1570
+ function is(token, type) {
1571
+ return token && token.type && token.type.lastIndexOf(type + ".xml") > -1;
1572
+ }
1573
+ (function () {
1574
+ this.getFoldWidget = function (session, foldStyle, row) {
1575
+ var tag = this._getFirstTagInLine(session, row);
1576
+ if (!tag)
1577
+ return this.getCommentFoldWidget(session, row);
1578
+ if (tag.closing || (!tag.tagName && tag.selfClosing))
1579
+ return foldStyle === "markbeginend" ? "end" : "";
1580
+ if (!tag.tagName || tag.selfClosing || this.voidElements.hasOwnProperty(tag.tagName.toLowerCase()))
1581
+ return "";
1582
+ if (this._findEndTagInLine(session, row, tag.tagName, tag.end.column))
1583
+ return "";
1584
+ return "start";
1585
+ };
1586
+ this.getCommentFoldWidget = function (session, row) {
1587
+ if (/comment/.test(session.getState(row)) && /<!-/.test(session.getLine(row)))
1588
+ return "start";
1589
+ return "";
1590
+ };
1591
+ this._getFirstTagInLine = function (session, row) {
1592
+ var tokens = session.getTokens(row);
1593
+ var tag = new Tag();
1594
+ for (var i = 0; i < tokens.length; i++) {
1595
+ var token = tokens[i];
1596
+ if (is(token, "tag-open")) {
1597
+ tag.end.column = tag.start.column + token.value.length;
1598
+ tag.closing = is(token, "end-tag-open");
1599
+ token = tokens[++i];
1600
+ if (!token)
1601
+ return null;
1602
+ tag.tagName = token.value;
1603
+ if (token.value === "") { //skip empty tag name token for fragment
1604
+ token = tokens[++i];
1605
+ if (!token)
1606
+ return null;
1607
+ tag.tagName = token.value;
1608
+ }
1609
+ tag.end.column += token.value.length;
1610
+ for (i++; i < tokens.length; i++) {
1611
+ token = tokens[i];
1612
+ tag.end.column += token.value.length;
1613
+ if (is(token, "tag-close")) {
1614
+ tag.selfClosing = token.value == '/>';
1615
+ break;
1616
+ }
1617
+ }
1618
+ return tag;
1619
+ }
1620
+ else if (is(token, "tag-close")) {
1621
+ tag.selfClosing = token.value == '/>';
1622
+ return tag;
1623
+ }
1624
+ tag.start.column += token.value.length;
1625
+ }
1626
+ return null;
1627
+ };
1628
+ this._findEndTagInLine = function (session, row, tagName, startColumn) {
1629
+ var tokens = session.getTokens(row);
1630
+ var column = 0;
1631
+ for (var i = 0; i < tokens.length; i++) {
1632
+ var token = tokens[i];
1633
+ column += token.value.length;
1634
+ if (column < startColumn - 1)
1635
+ continue;
1636
+ if (is(token, "end-tag-open")) {
1637
+ token = tokens[i + 1];
1638
+ if (is(token, "tag-name") && token.value === "") {
1639
+ token = tokens[i + 2];
1640
+ }
1641
+ if (token && token.value == tagName)
1642
+ return true;
1643
+ }
1644
+ }
1645
+ return false;
1646
+ };
1647
+ this.getFoldWidgetRange = function (session, foldStyle, row) {
1648
+ var firstTag = this._getFirstTagInLine(session, row);
1649
+ if (!firstTag) {
1650
+ return this.getCommentFoldWidget(session, row) && session.getCommentFoldRange(row, session.getLine(row).length);
1651
+ }
1652
+ var tags = session.getMatchingTags({ row: row, column: 0 });
1653
+ if (tags) {
1654
+ return new Range(tags.openTag.end.row, tags.openTag.end.column, tags.closeTag.start.row, tags.closeTag.start.column);
1655
+ }
1656
+ };
1657
+ }).call(FoldMode.prototype);
1658
+
1659
+ });
1660
+
1661
+ ace.define("ace/mode/folding/cstyle",["require","exports","module","ace/lib/oop","ace/range","ace/mode/folding/fold_mode"], function(require, exports, module){"use strict";
1662
+ var oop = require("../../lib/oop");
1663
+ var Range = require("../../range").Range;
1664
+ var BaseFoldMode = require("./fold_mode").FoldMode;
1665
+ var FoldMode = exports.FoldMode = function (commentRegex) {
1666
+ if (commentRegex) {
1667
+ this.foldingStartMarker = new RegExp(this.foldingStartMarker.source.replace(/\|[^|]*?$/, "|" + commentRegex.start));
1668
+ this.foldingStopMarker = new RegExp(this.foldingStopMarker.source.replace(/\|[^|]*?$/, "|" + commentRegex.end));
1669
+ }
1670
+ };
1671
+ oop.inherits(FoldMode, BaseFoldMode);
1672
+ (function () {
1673
+ this.foldingStartMarker = /([\{\[\(])[^\}\]\)]*$|^\s*(\/\*)/;
1674
+ this.foldingStopMarker = /^[^\[\{\(]*([\}\]\)])|^[\s\*]*(\*\/)/;
1675
+ this.singleLineBlockCommentRe = /^\s*(\/\*).*\*\/\s*$/;
1676
+ this.tripleStarBlockCommentRe = /^\s*(\/\*\*\*).*\*\/\s*$/;
1677
+ this.startRegionRe = /^\s*(\/\*|\/\/)#?region\b/;
1678
+ this._getFoldWidgetBase = this.getFoldWidget;
1679
+ this.getFoldWidget = function (session, foldStyle, row) {
1680
+ var line = session.getLine(row);
1681
+ if (this.singleLineBlockCommentRe.test(line)) {
1682
+ if (!this.startRegionRe.test(line) && !this.tripleStarBlockCommentRe.test(line))
1683
+ return "";
1684
+ }
1685
+ var fw = this._getFoldWidgetBase(session, foldStyle, row);
1686
+ if (!fw && this.startRegionRe.test(line))
1687
+ return "start"; // lineCommentRegionStart
1688
+ return fw;
1689
+ };
1690
+ this.getFoldWidgetRange = function (session, foldStyle, row, forceMultiline) {
1691
+ var line = session.getLine(row);
1692
+ if (this.startRegionRe.test(line))
1693
+ return this.getCommentRegionBlock(session, line, row);
1694
+ var match = line.match(this.foldingStartMarker);
1695
+ if (match) {
1696
+ var i = match.index;
1697
+ if (match[1])
1698
+ return this.openingBracketBlock(session, match[1], row, i);
1699
+ var range = session.getCommentFoldRange(row, i + match[0].length, 1);
1700
+ if (range && !range.isMultiLine()) {
1701
+ if (forceMultiline) {
1702
+ range = this.getSectionRange(session, row);
1703
+ }
1704
+ else if (foldStyle != "all")
1705
+ range = null;
1706
+ }
1707
+ return range;
1708
+ }
1709
+ if (foldStyle === "markbegin")
1710
+ return;
1711
+ var match = line.match(this.foldingStopMarker);
1712
+ if (match) {
1713
+ var i = match.index + match[0].length;
1714
+ if (match[1])
1715
+ return this.closingBracketBlock(session, match[1], row, i);
1716
+ return session.getCommentFoldRange(row, i, -1);
1717
+ }
1718
+ };
1719
+ this.getSectionRange = function (session, row) {
1720
+ var line = session.getLine(row);
1721
+ var startIndent = line.search(/\S/);
1722
+ var startRow = row;
1723
+ var startColumn = line.length;
1724
+ row = row + 1;
1725
+ var endRow = row;
1726
+ var maxRow = session.getLength();
1727
+ while (++row < maxRow) {
1728
+ line = session.getLine(row);
1729
+ var indent = line.search(/\S/);
1730
+ if (indent === -1)
1731
+ continue;
1732
+ if (startIndent > indent)
1733
+ break;
1734
+ var subRange = this.getFoldWidgetRange(session, "all", row);
1735
+ if (subRange) {
1736
+ if (subRange.start.row <= startRow) {
1737
+ break;
1738
+ }
1739
+ else if (subRange.isMultiLine()) {
1740
+ row = subRange.end.row;
1741
+ }
1742
+ else if (startIndent == indent) {
1743
+ break;
1744
+ }
1745
+ }
1746
+ endRow = row;
1747
+ }
1748
+ return new Range(startRow, startColumn, endRow, session.getLine(endRow).length);
1749
+ };
1750
+ this.getCommentRegionBlock = function (session, line, row) {
1751
+ var startColumn = line.search(/\s*$/);
1752
+ var maxRow = session.getLength();
1753
+ var startRow = row;
1754
+ var re = /^\s*(?:\/\*|\/\/|--)#?(end)?region\b/;
1755
+ var depth = 1;
1756
+ while (++row < maxRow) {
1757
+ line = session.getLine(row);
1758
+ var m = re.exec(line);
1759
+ if (!m)
1760
+ continue;
1761
+ if (m[1])
1762
+ depth--;
1763
+ else
1764
+ depth++;
1765
+ if (!depth)
1766
+ break;
1767
+ }
1768
+ var endRow = row;
1769
+ if (endRow > startRow) {
1770
+ return new Range(startRow, startColumn, endRow, line.length);
1771
+ }
1772
+ };
1773
+ }).call(FoldMode.prototype);
1774
+
1775
+ });
1776
+
1777
+ ace.define("ace/mode/folding/javascript",["require","exports","module","ace/lib/oop","ace/mode/folding/xml","ace/mode/folding/cstyle"], function(require, exports, module){"use strict";
1778
+ var oop = require("../../lib/oop");
1779
+ var XmlFoldMode = require("./xml").FoldMode;
1780
+ var CFoldMode = require("./cstyle").FoldMode;
1781
+ var FoldMode = exports.FoldMode = function (commentRegex) {
1782
+ if (commentRegex) {
1783
+ this.foldingStartMarker = new RegExp(this.foldingStartMarker.source.replace(/\|[^|]*?$/, "|" + commentRegex.start));
1784
+ this.foldingStopMarker = new RegExp(this.foldingStopMarker.source.replace(/\|[^|]*?$/, "|" + commentRegex.end));
1785
+ }
1786
+ this.xmlFoldMode = new XmlFoldMode();
1787
+ };
1788
+ oop.inherits(FoldMode, CFoldMode);
1789
+ (function () {
1790
+ this.getFoldWidgetRangeBase = this.getFoldWidgetRange;
1791
+ this.getFoldWidgetBase = this.getFoldWidget;
1792
+ this.getFoldWidget = function (session, foldStyle, row) {
1793
+ var fw = this.getFoldWidgetBase(session, foldStyle, row);
1794
+ if (!fw) {
1795
+ return this.xmlFoldMode.getFoldWidget(session, foldStyle, row);
1796
+ }
1797
+ return fw;
1798
+ };
1799
+ this.getFoldWidgetRange = function (session, foldStyle, row, forceMultiline) {
1800
+ var range = this.getFoldWidgetRangeBase(session, foldStyle, row, forceMultiline);
1801
+ if (range)
1802
+ return range;
1803
+ return this.xmlFoldMode.getFoldWidgetRange(session, foldStyle, row);
1804
+ };
1805
+ }).call(FoldMode.prototype);
1806
+
1807
+ });
1808
+
1809
+ ace.define("ace/mode/javascript",["require","exports","module","ace/lib/oop","ace/mode/text","ace/mode/javascript_highlight_rules","ace/mode/matching_brace_outdent","ace/worker/worker_client","ace/mode/behaviour/javascript","ace/mode/folding/javascript"], function(require, exports, module){"use strict";
1810
+ var oop = require("../lib/oop");
1811
+ var TextMode = require("./text").Mode;
1812
+ var JavaScriptHighlightRules = require("./javascript_highlight_rules").JavaScriptHighlightRules;
1813
+ var MatchingBraceOutdent = require("./matching_brace_outdent").MatchingBraceOutdent;
1814
+ var WorkerClient = require("../worker/worker_client").WorkerClient;
1815
+ var JavaScriptBehaviour = require("./behaviour/javascript").JavaScriptBehaviour;
1816
+ var JavaScriptFoldMode = require("./folding/javascript").FoldMode;
1817
+ var Mode = function () {
1818
+ this.HighlightRules = JavaScriptHighlightRules;
1819
+ this.$outdent = new MatchingBraceOutdent();
1820
+ this.$behaviour = new JavaScriptBehaviour();
1821
+ this.foldingRules = new JavaScriptFoldMode();
1822
+ };
1823
+ oop.inherits(Mode, TextMode);
1824
+ (function () {
1825
+ this.lineCommentStart = "//";
1826
+ this.blockComment = { start: "/*", end: "*/" };
1827
+ this.$quotes = { '"': '"', "'": "'", "`": "`" };
1828
+ this.$pairQuotesAfter = {
1829
+ "`": /\w/
1830
+ };
1831
+ this.getNextLineIndent = function (state, line, tab) {
1832
+ var indent = this.$getIndent(line);
1833
+ var tokenizedLine = this.getTokenizer().getLineTokens(line, state);
1834
+ var tokens = tokenizedLine.tokens;
1835
+ var endState = tokenizedLine.state;
1836
+ if (tokens.length && tokens[tokens.length - 1].type == "comment") {
1837
+ return indent;
1838
+ }
1839
+ if (state == "start" || state == "no_regex") {
1840
+ var match = line.match(/^.*(?:\bcase\b.*:|[\{\(\[])\s*$/);
1841
+ if (match) {
1842
+ indent += tab;
1843
+ }
1844
+ }
1845
+ else if (state == "doc-start") {
1846
+ if (endState == "start" || endState == "no_regex") {
1847
+ return "";
1848
+ }
1849
+ }
1850
+ return indent;
1851
+ };
1852
+ this.checkOutdent = function (state, line, input) {
1853
+ return this.$outdent.checkOutdent(line, input);
1854
+ };
1855
+ this.autoOutdent = function (state, doc, row) {
1856
+ this.$outdent.autoOutdent(doc, row);
1857
+ };
1858
+ this.createWorker = function (session) {
1859
+ var worker = new WorkerClient(["ace"], "ace/mode/javascript_worker", "JavaScriptWorker");
1860
+ worker.attachToDocument(session.getDocument());
1861
+ worker.on("annotate", function (results) {
1862
+ session.setAnnotations(results.data);
1863
+ });
1864
+ worker.on("terminate", function () {
1865
+ session.clearAnnotations();
1866
+ });
1867
+ return worker;
1868
+ };
1869
+ this.$id = "ace/mode/javascript";
1870
+ this.snippetFileId = "ace/snippets/javascript";
1871
+ }).call(Mode.prototype);
1872
+ exports.Mode = Mode;
1873
+
1874
+ });
1875
+
1876
+ ace.define("ace/mode/css_completions",["require","exports","module"], function(require, exports, module){"use strict";
1877
+ var propertyMap = {
1878
+ "background": { "#$0": 1 },
1879
+ "background-color": { "#$0": 1, "transparent": 1, "fixed": 1 },
1880
+ "background-image": { "url('/$0')": 1 },
1881
+ "background-repeat": { "repeat": 1, "repeat-x": 1, "repeat-y": 1, "no-repeat": 1, "inherit": 1 },
1882
+ "background-position": { "bottom": 2, "center": 2, "left": 2, "right": 2, "top": 2, "inherit": 2 },
1883
+ "background-attachment": { "scroll": 1, "fixed": 1 },
1884
+ "background-size": { "cover": 1, "contain": 1 },
1885
+ "background-clip": { "border-box": 1, "padding-box": 1, "content-box": 1 },
1886
+ "background-origin": { "border-box": 1, "padding-box": 1, "content-box": 1 },
1887
+ "border": { "solid $0": 1, "dashed $0": 1, "dotted $0": 1, "#$0": 1 },
1888
+ "border-color": { "#$0": 1 },
1889
+ "border-style": { "solid": 2, "dashed": 2, "dotted": 2, "double": 2, "groove": 2, "hidden": 2, "inherit": 2, "inset": 2, "none": 2, "outset": 2, "ridged": 2 },
1890
+ "border-collapse": { "collapse": 1, "separate": 1 },
1891
+ "bottom": { "px": 1, "em": 1, "%": 1 },
1892
+ "clear": { "left": 1, "right": 1, "both": 1, "none": 1 },
1893
+ "color": { "#$0": 1, "rgb(#$00,0,0)": 1 },
1894
+ "cursor": { "default": 1, "pointer": 1, "move": 1, "text": 1, "wait": 1, "help": 1, "progress": 1, "n-resize": 1, "ne-resize": 1, "e-resize": 1, "se-resize": 1, "s-resize": 1, "sw-resize": 1, "w-resize": 1, "nw-resize": 1 },
1895
+ "display": { "none": 1, "block": 1, "inline": 1, "inline-block": 1, "table-cell": 1 },
1896
+ "empty-cells": { "show": 1, "hide": 1 },
1897
+ "float": { "left": 1, "right": 1, "none": 1 },
1898
+ "font-family": { "Arial": 2, "Comic Sans MS": 2, "Consolas": 2, "Courier New": 2, "Courier": 2, "Georgia": 2, "Monospace": 2, "Sans-Serif": 2, "Segoe UI": 2, "Tahoma": 2, "Times New Roman": 2, "Trebuchet MS": 2, "Verdana": 1 },
1899
+ "font-size": { "px": 1, "em": 1, "%": 1 },
1900
+ "font-weight": { "bold": 1, "normal": 1 },
1901
+ "font-style": { "italic": 1, "normal": 1 },
1902
+ "font-variant": { "normal": 1, "small-caps": 1 },
1903
+ "height": { "px": 1, "em": 1, "%": 1 },
1904
+ "left": { "px": 1, "em": 1, "%": 1 },
1905
+ "letter-spacing": { "normal": 1 },
1906
+ "line-height": { "normal": 1 },
1907
+ "list-style-type": { "none": 1, "disc": 1, "circle": 1, "square": 1, "decimal": 1, "decimal-leading-zero": 1, "lower-roman": 1, "upper-roman": 1, "lower-greek": 1, "lower-latin": 1, "upper-latin": 1, "georgian": 1, "lower-alpha": 1, "upper-alpha": 1 },
1908
+ "margin": { "px": 1, "em": 1, "%": 1 },
1909
+ "margin-right": { "px": 1, "em": 1, "%": 1 },
1910
+ "margin-left": { "px": 1, "em": 1, "%": 1 },
1911
+ "margin-top": { "px": 1, "em": 1, "%": 1 },
1912
+ "margin-bottom": { "px": 1, "em": 1, "%": 1 },
1913
+ "max-height": { "px": 1, "em": 1, "%": 1 },
1914
+ "max-width": { "px": 1, "em": 1, "%": 1 },
1915
+ "min-height": { "px": 1, "em": 1, "%": 1 },
1916
+ "min-width": { "px": 1, "em": 1, "%": 1 },
1917
+ "overflow": { "hidden": 1, "visible": 1, "auto": 1, "scroll": 1 },
1918
+ "overflow-x": { "hidden": 1, "visible": 1, "auto": 1, "scroll": 1 },
1919
+ "overflow-y": { "hidden": 1, "visible": 1, "auto": 1, "scroll": 1 },
1920
+ "padding": { "px": 1, "em": 1, "%": 1 },
1921
+ "padding-top": { "px": 1, "em": 1, "%": 1 },
1922
+ "padding-right": { "px": 1, "em": 1, "%": 1 },
1923
+ "padding-bottom": { "px": 1, "em": 1, "%": 1 },
1924
+ "padding-left": { "px": 1, "em": 1, "%": 1 },
1925
+ "page-break-after": { "auto": 1, "always": 1, "avoid": 1, "left": 1, "right": 1 },
1926
+ "page-break-before": { "auto": 1, "always": 1, "avoid": 1, "left": 1, "right": 1 },
1927
+ "position": { "absolute": 1, "relative": 1, "fixed": 1, "static": 1 },
1928
+ "right": { "px": 1, "em": 1, "%": 1 },
1929
+ "table-layout": { "fixed": 1, "auto": 1 },
1930
+ "text-decoration": { "none": 1, "underline": 1, "line-through": 1, "blink": 1 },
1931
+ "text-align": { "left": 1, "right": 1, "center": 1, "justify": 1 },
1932
+ "text-transform": { "capitalize": 1, "uppercase": 1, "lowercase": 1, "none": 1 },
1933
+ "top": { "px": 1, "em": 1, "%": 1 },
1934
+ "vertical-align": { "top": 1, "bottom": 1 },
1935
+ "visibility": { "hidden": 1, "visible": 1 },
1936
+ "white-space": { "nowrap": 1, "normal": 1, "pre": 1, "pre-line": 1, "pre-wrap": 1 },
1937
+ "width": { "px": 1, "em": 1, "%": 1 },
1938
+ "word-spacing": { "normal": 1 },
1939
+ "filter": { "alpha(opacity=$0100)": 1 },
1940
+ "text-shadow": { "$02px 2px 2px #777": 1 },
1941
+ "text-overflow": { "ellipsis-word": 1, "clip": 1, "ellipsis": 1 },
1942
+ "-moz-border-radius": 1,
1943
+ "-moz-border-radius-topright": 1,
1944
+ "-moz-border-radius-bottomright": 1,
1945
+ "-moz-border-radius-topleft": 1,
1946
+ "-moz-border-radius-bottomleft": 1,
1947
+ "-webkit-border-radius": 1,
1948
+ "-webkit-border-top-right-radius": 1,
1949
+ "-webkit-border-top-left-radius": 1,
1950
+ "-webkit-border-bottom-right-radius": 1,
1951
+ "-webkit-border-bottom-left-radius": 1,
1952
+ "-moz-box-shadow": 1,
1953
+ "-webkit-box-shadow": 1,
1954
+ "transform": { "rotate($00deg)": 1, "skew($00deg)": 1 },
1955
+ "-moz-transform": { "rotate($00deg)": 1, "skew($00deg)": 1 },
1956
+ "-webkit-transform": { "rotate($00deg)": 1, "skew($00deg)": 1 }
1957
+ };
1958
+ var CssCompletions = function () {
1959
+ };
1960
+ (function () {
1961
+ this.completionsDefined = false;
1962
+ this.defineCompletions = function () {
1963
+ if (document) {
1964
+ var style = document.createElement('c').style;
1965
+ for (var i in style) {
1966
+ if (typeof style[i] !== 'string')
1967
+ continue;
1968
+ var name = i.replace(/[A-Z]/g, function (x) {
1969
+ return '-' + x.toLowerCase();
1970
+ });
1971
+ if (!propertyMap.hasOwnProperty(name))
1972
+ propertyMap[name] = 1;
1973
+ }
1974
+ }
1975
+ this.completionsDefined = true;
1976
+ };
1977
+ this.getCompletions = function (state, session, pos, prefix) {
1978
+ if (!this.completionsDefined) {
1979
+ this.defineCompletions();
1980
+ }
1981
+ if (state === 'ruleset' || session.$mode.$id == "ace/mode/scss") {
1982
+ var line = session.getLine(pos.row).substr(0, pos.column);
1983
+ var inParens = /\([^)]*$/.test(line);
1984
+ if (inParens) {
1985
+ line = line.substr(line.lastIndexOf('(') + 1);
1986
+ }
1987
+ if (/:[^;]+$/.test(line)) {
1988
+ /([\w\-]+):[^:]*$/.test(line);
1989
+ return this.getPropertyValueCompletions(state, session, pos, prefix);
1990
+ }
1991
+ else {
1992
+ return this.getPropertyCompletions(state, session, pos, prefix, inParens);
1993
+ }
1994
+ }
1995
+ return [];
1996
+ };
1997
+ this.getPropertyCompletions = function (state, session, pos, prefix, skipSemicolon) {
1998
+ skipSemicolon = skipSemicolon || false;
1999
+ var properties = Object.keys(propertyMap);
2000
+ return properties.map(function (property) {
2001
+ return {
2002
+ caption: property,
2003
+ snippet: property + ': $0' + (skipSemicolon ? '' : ';'),
2004
+ meta: "property",
2005
+ score: 1000000
2006
+ };
2007
+ });
2008
+ };
2009
+ this.getPropertyValueCompletions = function (state, session, pos, prefix) {
2010
+ var line = session.getLine(pos.row).substr(0, pos.column);
2011
+ var property = (/([\w\-]+):[^:]*$/.exec(line) || {})[1];
2012
+ if (!property)
2013
+ return [];
2014
+ var values = [];
2015
+ if (property in propertyMap && typeof propertyMap[property] === "object") {
2016
+ values = Object.keys(propertyMap[property]);
2017
+ }
2018
+ return values.map(function (value) {
2019
+ return {
2020
+ caption: value,
2021
+ snippet: value,
2022
+ meta: "property value",
2023
+ score: 1000000
2024
+ };
2025
+ });
2026
+ };
2027
+ }).call(CssCompletions.prototype);
2028
+ exports.CssCompletions = CssCompletions;
2029
+
2030
+ });
2031
+
2032
+ ace.define("ace/mode/behaviour/css",["require","exports","module","ace/lib/oop","ace/mode/behaviour","ace/mode/behaviour/cstyle","ace/token_iterator"], function(require, exports, module){"use strict";
2033
+ var oop = require("../../lib/oop");
2034
+ var Behaviour = require("../behaviour").Behaviour;
2035
+ var CstyleBehaviour = require("./cstyle").CstyleBehaviour;
2036
+ var TokenIterator = require("../../token_iterator").TokenIterator;
2037
+ var CssBehaviour = function () {
2038
+ this.inherit(CstyleBehaviour);
2039
+ this.add("colon", "insertion", function (state, action, editor, session, text) {
2040
+ if (text === ':' && editor.selection.isEmpty()) {
2041
+ var cursor = editor.getCursorPosition();
2042
+ var iterator = new TokenIterator(session, cursor.row, cursor.column);
2043
+ var token = iterator.getCurrentToken();
2044
+ if (token && token.value.match(/\s+/)) {
2045
+ token = iterator.stepBackward();
2046
+ }
2047
+ if (token && token.type === 'support.type') {
2048
+ var line = session.doc.getLine(cursor.row);
2049
+ var rightChar = line.substring(cursor.column, cursor.column + 1);
2050
+ if (rightChar === ':') {
2051
+ return {
2052
+ text: '',
2053
+ selection: [1, 1]
2054
+ };
2055
+ }
2056
+ if (/^(\s+[^;]|\s*$)/.test(line.substring(cursor.column))) {
2057
+ return {
2058
+ text: ':;',
2059
+ selection: [1, 1]
2060
+ };
2061
+ }
2062
+ }
2063
+ }
2064
+ });
2065
+ this.add("colon", "deletion", function (state, action, editor, session, range) {
2066
+ var selected = session.doc.getTextRange(range);
2067
+ if (!range.isMultiLine() && selected === ':') {
2068
+ var cursor = editor.getCursorPosition();
2069
+ var iterator = new TokenIterator(session, cursor.row, cursor.column);
2070
+ var token = iterator.getCurrentToken();
2071
+ if (token && token.value.match(/\s+/)) {
2072
+ token = iterator.stepBackward();
2073
+ }
2074
+ if (token && token.type === 'support.type') {
2075
+ var line = session.doc.getLine(range.start.row);
2076
+ var rightChar = line.substring(range.end.column, range.end.column + 1);
2077
+ if (rightChar === ';') {
2078
+ range.end.column++;
2079
+ return range;
2080
+ }
2081
+ }
2082
+ }
2083
+ });
2084
+ this.add("semicolon", "insertion", function (state, action, editor, session, text) {
2085
+ if (text === ';' && editor.selection.isEmpty()) {
2086
+ var cursor = editor.getCursorPosition();
2087
+ var line = session.doc.getLine(cursor.row);
2088
+ var rightChar = line.substring(cursor.column, cursor.column + 1);
2089
+ if (rightChar === ';') {
2090
+ return {
2091
+ text: '',
2092
+ selection: [1, 1]
2093
+ };
2094
+ }
2095
+ }
2096
+ });
2097
+ this.add("!important", "insertion", function (state, action, editor, session, text) {
2098
+ if (text === '!' && editor.selection.isEmpty()) {
2099
+ var cursor = editor.getCursorPosition();
2100
+ var line = session.doc.getLine(cursor.row);
2101
+ if (/^\s*(;|}|$)/.test(line.substring(cursor.column))) {
2102
+ return {
2103
+ text: '!important',
2104
+ selection: [10, 10]
2105
+ };
2106
+ }
2107
+ }
2108
+ });
2109
+ };
2110
+ oop.inherits(CssBehaviour, CstyleBehaviour);
2111
+ exports.CssBehaviour = CssBehaviour;
2112
+
2113
+ });
2114
+
2115
+ ace.define("ace/mode/css",["require","exports","module","ace/lib/oop","ace/mode/text","ace/mode/css_highlight_rules","ace/mode/matching_brace_outdent","ace/worker/worker_client","ace/mode/css_completions","ace/mode/behaviour/css","ace/mode/folding/cstyle"], function(require, exports, module){"use strict";
2116
+ var oop = require("../lib/oop");
2117
+ var TextMode = require("./text").Mode;
2118
+ var CssHighlightRules = require("./css_highlight_rules").CssHighlightRules;
2119
+ var MatchingBraceOutdent = require("./matching_brace_outdent").MatchingBraceOutdent;
2120
+ var WorkerClient = require("../worker/worker_client").WorkerClient;
2121
+ var CssCompletions = require("./css_completions").CssCompletions;
2122
+ var CssBehaviour = require("./behaviour/css").CssBehaviour;
2123
+ var CStyleFoldMode = require("./folding/cstyle").FoldMode;
2124
+ var Mode = function () {
2125
+ this.HighlightRules = CssHighlightRules;
2126
+ this.$outdent = new MatchingBraceOutdent();
2127
+ this.$behaviour = new CssBehaviour();
2128
+ this.$completer = new CssCompletions();
2129
+ this.foldingRules = new CStyleFoldMode();
2130
+ };
2131
+ oop.inherits(Mode, TextMode);
2132
+ (function () {
2133
+ this.foldingRules = "cStyle";
2134
+ this.blockComment = { start: "/*", end: "*/" };
2135
+ this.getNextLineIndent = function (state, line, tab) {
2136
+ var indent = this.$getIndent(line);
2137
+ var tokens = this.getTokenizer().getLineTokens(line, state).tokens;
2138
+ if (tokens.length && tokens[tokens.length - 1].type == "comment") {
2139
+ return indent;
2140
+ }
2141
+ var match = line.match(/^.*\{\s*$/);
2142
+ if (match) {
2143
+ indent += tab;
2144
+ }
2145
+ return indent;
2146
+ };
2147
+ this.checkOutdent = function (state, line, input) {
2148
+ return this.$outdent.checkOutdent(line, input);
2149
+ };
2150
+ this.autoOutdent = function (state, doc, row) {
2151
+ this.$outdent.autoOutdent(doc, row);
2152
+ };
2153
+ this.getCompletions = function (state, session, pos, prefix) {
2154
+ return this.$completer.getCompletions(state, session, pos, prefix);
2155
+ };
2156
+ this.createWorker = function (session) {
2157
+ var worker = new WorkerClient(["ace"], "ace/mode/css_worker", "Worker");
2158
+ worker.attachToDocument(session.getDocument());
2159
+ worker.on("annotate", function (e) {
2160
+ session.setAnnotations(e.data);
2161
+ });
2162
+ worker.on("terminate", function () {
2163
+ session.clearAnnotations();
2164
+ });
2165
+ return worker;
2166
+ };
2167
+ this.$id = "ace/mode/css";
2168
+ this.snippetFileId = "ace/snippets/css";
2169
+ }).call(Mode.prototype);
2170
+ exports.Mode = Mode;
2171
+
2172
+ });
2173
+
2174
+ ace.define("ace/mode/folding/mixed",["require","exports","module","ace/lib/oop","ace/mode/folding/fold_mode"], function(require, exports, module){"use strict";
2175
+ var oop = require("../../lib/oop");
2176
+ var BaseFoldMode = require("./fold_mode").FoldMode;
2177
+ var FoldMode = exports.FoldMode = function (defaultMode, subModes) {
2178
+ this.defaultMode = defaultMode;
2179
+ this.subModes = subModes;
2180
+ };
2181
+ oop.inherits(FoldMode, BaseFoldMode);
2182
+ (function () {
2183
+ this.$getMode = function (state) {
2184
+ if (typeof state != "string")
2185
+ state = state[0];
2186
+ for (var key in this.subModes) {
2187
+ if (state.indexOf(key) === 0)
2188
+ return this.subModes[key];
2189
+ }
2190
+ return null;
2191
+ };
2192
+ this.$tryMode = function (state, session, foldStyle, row) {
2193
+ var mode = this.$getMode(state);
2194
+ return (mode ? mode.getFoldWidget(session, foldStyle, row) : "");
2195
+ };
2196
+ this.getFoldWidget = function (session, foldStyle, row) {
2197
+ return (this.$tryMode(session.getState(row - 1), session, foldStyle, row) ||
2198
+ this.$tryMode(session.getState(row), session, foldStyle, row) ||
2199
+ this.defaultMode.getFoldWidget(session, foldStyle, row));
2200
+ };
2201
+ this.getFoldWidgetRange = function (session, foldStyle, row) {
2202
+ var mode = this.$getMode(session.getState(row - 1));
2203
+ if (!mode || !mode.getFoldWidget(session, foldStyle, row))
2204
+ mode = this.$getMode(session.getState(row));
2205
+ if (!mode || !mode.getFoldWidget(session, foldStyle, row))
2206
+ mode = this.defaultMode;
2207
+ return mode.getFoldWidgetRange(session, foldStyle, row);
2208
+ };
2209
+ }).call(FoldMode.prototype);
2210
+
2211
+ });
2212
+
2213
+ ace.define("ace/mode/folding/html",["require","exports","module","ace/lib/oop","ace/mode/folding/mixed","ace/mode/folding/xml","ace/mode/folding/cstyle"], function(require, exports, module){"use strict";
2214
+ var oop = require("../../lib/oop");
2215
+ var MixedFoldMode = require("./mixed").FoldMode;
2216
+ var XmlFoldMode = require("./xml").FoldMode;
2217
+ var CStyleFoldMode = require("./cstyle").FoldMode;
2218
+ var FoldMode = exports.FoldMode = function (voidElements, optionalTags) {
2219
+ MixedFoldMode.call(this, new XmlFoldMode(voidElements, optionalTags), {
2220
+ "js-": new CStyleFoldMode(),
2221
+ "css-": new CStyleFoldMode()
2222
+ });
2223
+ };
2224
+ oop.inherits(FoldMode, MixedFoldMode);
2225
+
2226
+ });
2227
+
2228
+ ace.define("ace/mode/html_completions",["require","exports","module","ace/token_iterator"], function(require, exports, module){"use strict";
2229
+ var TokenIterator = require("../token_iterator").TokenIterator;
2230
+ var commonAttributes = [
2231
+ "accesskey",
2232
+ "class",
2233
+ "contenteditable",
2234
+ "contextmenu",
2235
+ "dir",
2236
+ "draggable",
2237
+ "dropzone",
2238
+ "hidden",
2239
+ "id",
2240
+ "inert",
2241
+ "itemid",
2242
+ "itemprop",
2243
+ "itemref",
2244
+ "itemscope",
2245
+ "itemtype",
2246
+ "lang",
2247
+ "spellcheck",
2248
+ "style",
2249
+ "tabindex",
2250
+ "title",
2251
+ "translate"
2252
+ ];
2253
+ var eventAttributes = [
2254
+ "onabort",
2255
+ "onblur",
2256
+ "oncancel",
2257
+ "oncanplay",
2258
+ "oncanplaythrough",
2259
+ "onchange",
2260
+ "onclick",
2261
+ "onclose",
2262
+ "oncontextmenu",
2263
+ "oncuechange",
2264
+ "ondblclick",
2265
+ "ondrag",
2266
+ "ondragend",
2267
+ "ondragenter",
2268
+ "ondragleave",
2269
+ "ondragover",
2270
+ "ondragstart",
2271
+ "ondrop",
2272
+ "ondurationchange",
2273
+ "onemptied",
2274
+ "onended",
2275
+ "onerror",
2276
+ "onfocus",
2277
+ "oninput",
2278
+ "oninvalid",
2279
+ "onkeydown",
2280
+ "onkeypress",
2281
+ "onkeyup",
2282
+ "onload",
2283
+ "onloadeddata",
2284
+ "onloadedmetadata",
2285
+ "onloadstart",
2286
+ "onmousedown",
2287
+ "onmousemove",
2288
+ "onmouseout",
2289
+ "onmouseover",
2290
+ "onmouseup",
2291
+ "onmousewheel",
2292
+ "onpause",
2293
+ "onplay",
2294
+ "onplaying",
2295
+ "onprogress",
2296
+ "onratechange",
2297
+ "onreset",
2298
+ "onscroll",
2299
+ "onseeked",
2300
+ "onseeking",
2301
+ "onselect",
2302
+ "onshow",
2303
+ "onstalled",
2304
+ "onsubmit",
2305
+ "onsuspend",
2306
+ "ontimeupdate",
2307
+ "onvolumechange",
2308
+ "onwaiting"
2309
+ ];
2310
+ var globalAttributes = commonAttributes.concat(eventAttributes);
2311
+ var attributeMap = {
2312
+ "a": { "href": 1, "target": { "_blank": 1, "top": 1 }, "ping": 1, "rel": { "nofollow": 1, "alternate": 1, "author": 1, "bookmark": 1, "help": 1, "license": 1, "next": 1, "noreferrer": 1, "prefetch": 1, "prev": 1, "search": 1, "tag": 1 }, "media": 1, "hreflang": 1, "type": 1 },
2313
+ "abbr": {},
2314
+ "address": {},
2315
+ "area": { "shape": 1, "coords": 1, "href": 1, "hreflang": 1, "alt": 1, "target": 1, "media": 1, "rel": 1, "ping": 1, "type": 1 },
2316
+ "article": { "pubdate": 1 },
2317
+ "aside": {},
2318
+ "audio": { "src": 1, "autobuffer": 1, "autoplay": { "autoplay": 1 }, "loop": { "loop": 1 }, "controls": { "controls": 1 }, "muted": { "muted": 1 }, "preload": { "auto": 1, "metadata": 1, "none": 1 } },
2319
+ "b": {},
2320
+ "base": { "href": 1, "target": 1 },
2321
+ "bdi": {},
2322
+ "bdo": {},
2323
+ "blockquote": { "cite": 1 },
2324
+ "body": { "onafterprint": 1, "onbeforeprint": 1, "onbeforeunload": 1, "onhashchange": 1, "onmessage": 1, "onoffline": 1, "onpopstate": 1, "onredo": 1, "onresize": 1, "onstorage": 1, "onundo": 1, "onunload": 1 },
2325
+ "br": {},
2326
+ "button": { "autofocus": 1, "disabled": { "disabled": 1 }, "form": 1, "formaction": 1, "formenctype": 1, "formmethod": 1, "formnovalidate": 1, "formtarget": 1, "name": 1, "value": 1, "type": { "button": 1, "submit": 1 } },
2327
+ "canvas": { "width": 1, "height": 1 },
2328
+ "caption": {},
2329
+ "cite": {},
2330
+ "code": {},
2331
+ "col": { "span": 1 },
2332
+ "colgroup": { "span": 1 },
2333
+ "command": { "type": 1, "label": 1, "icon": 1, "disabled": 1, "checked": 1, "radiogroup": 1, "command": 1 },
2334
+ "data": {},
2335
+ "datalist": {},
2336
+ "dd": {},
2337
+ "del": { "cite": 1, "datetime": 1 },
2338
+ "details": { "open": 1 },
2339
+ "dfn": {},
2340
+ "dialog": { "open": 1 },
2341
+ "div": {},
2342
+ "dl": {},
2343
+ "dt": {},
2344
+ "em": {},
2345
+ "embed": { "src": 1, "height": 1, "width": 1, "type": 1 },
2346
+ "fieldset": { "disabled": 1, "form": 1, "name": 1 },
2347
+ "figcaption": {},
2348
+ "figure": {},
2349
+ "footer": {},
2350
+ "form": { "accept-charset": 1, "action": 1, "autocomplete": 1, "enctype": { "multipart/form-data": 1, "application/x-www-form-urlencoded": 1 }, "method": { "get": 1, "post": 1 }, "name": 1, "novalidate": 1, "target": { "_blank": 1, "top": 1 } },
2351
+ "h1": {},
2352
+ "h2": {},
2353
+ "h3": {},
2354
+ "h4": {},
2355
+ "h5": {},
2356
+ "h6": {},
2357
+ "head": {},
2358
+ "header": {},
2359
+ "hr": {},
2360
+ "html": { "manifest": 1 },
2361
+ "i": {},
2362
+ "iframe": { "name": 1, "src": 1, "height": 1, "width": 1, "sandbox": { "allow-same-origin": 1, "allow-top-navigation": 1, "allow-forms": 1, "allow-scripts": 1 }, "seamless": { "seamless": 1 } },
2363
+ "img": { "alt": 1, "src": 1, "height": 1, "width": 1, "usemap": 1, "ismap": 1 },
2364
+ "input": {
2365
+ "type": { "text": 1, "password": 1, "hidden": 1, "checkbox": 1, "submit": 1, "radio": 1, "file": 1, "button": 1, "reset": 1, "image": 31, "color": 1, "date": 1, "datetime": 1, "datetime-local": 1, "email": 1, "month": 1, "number": 1, "range": 1, "search": 1, "tel": 1, "time": 1, "url": 1, "week": 1 },
2366
+ "accept": 1, "alt": 1, "autocomplete": { "on": 1, "off": 1 }, "autofocus": { "autofocus": 1 }, "checked": { "checked": 1 }, "disabled": { "disabled": 1 }, "form": 1, "formaction": 1, "formenctype": { "application/x-www-form-urlencoded": 1, "multipart/form-data": 1, "text/plain": 1 }, "formmethod": { "get": 1, "post": 1 }, "formnovalidate": { "formnovalidate": 1 }, "formtarget": { "_blank": 1, "_self": 1, "_parent": 1, "_top": 1 }, "height": 1, "list": 1, "max": 1, "maxlength": 1, "min": 1, "multiple": { "multiple": 1 }, "name": 1, "pattern": 1, "placeholder": 1, "readonly": { "readonly": 1 }, "required": { "required": 1 }, "size": 1, "src": 1, "step": 1, "width": 1, "files": 1, "value": 1
2367
+ },
2368
+ "ins": { "cite": 1, "datetime": 1 },
2369
+ "kbd": {},
2370
+ "keygen": { "autofocus": 1, "challenge": { "challenge": 1 }, "disabled": { "disabled": 1 }, "form": 1, "keytype": { "rsa": 1, "dsa": 1, "ec": 1 }, "name": 1 },
2371
+ "label": { "form": 1, "for": 1 },
2372
+ "legend": {},
2373
+ "li": { "value": 1 },
2374
+ "link": { "href": 1, "hreflang": 1, "rel": { "stylesheet": 1, "icon": 1 }, "media": { "all": 1, "screen": 1, "print": 1 }, "type": { "text/css": 1, "image/png": 1, "image/jpeg": 1, "image/gif": 1 }, "sizes": 1 },
2375
+ "main": {},
2376
+ "map": { "name": 1 },
2377
+ "mark": {},
2378
+ "math": {},
2379
+ "menu": { "type": 1, "label": 1 },
2380
+ "meta": { "http-equiv": { "content-type": 1 }, "name": { "description": 1, "keywords": 1 }, "content": { "text/html; charset=UTF-8": 1 }, "charset": 1 },
2381
+ "meter": { "value": 1, "min": 1, "max": 1, "low": 1, "high": 1, "optimum": 1 },
2382
+ "nav": {},
2383
+ "noscript": { "href": 1 },
2384
+ "object": { "param": 1, "data": 1, "type": 1, "height": 1, "width": 1, "usemap": 1, "name": 1, "form": 1, "classid": 1 },
2385
+ "ol": { "start": 1, "reversed": 1 },
2386
+ "optgroup": { "disabled": 1, "label": 1 },
2387
+ "option": { "disabled": 1, "selected": 1, "label": 1, "value": 1 },
2388
+ "output": { "for": 1, "form": 1, "name": 1 },
2389
+ "p": {},
2390
+ "param": { "name": 1, "value": 1 },
2391
+ "pre": {},
2392
+ "progress": { "value": 1, "max": 1 },
2393
+ "q": { "cite": 1 },
2394
+ "rp": {},
2395
+ "rt": {},
2396
+ "ruby": {},
2397
+ "s": {},
2398
+ "samp": {},
2399
+ "script": { "charset": 1, "type": { "text/javascript": 1 }, "src": 1, "defer": 1, "async": 1 },
2400
+ "select": { "autofocus": 1, "disabled": 1, "form": 1, "multiple": { "multiple": 1 }, "name": 1, "size": 1, "readonly": { "readonly": 1 } },
2401
+ "small": {},
2402
+ "source": { "src": 1, "type": 1, "media": 1 },
2403
+ "span": {},
2404
+ "strong": {},
2405
+ "style": { "type": 1, "media": { "all": 1, "screen": 1, "print": 1 }, "scoped": 1 },
2406
+ "sub": {},
2407
+ "sup": {},
2408
+ "svg": {},
2409
+ "table": { "summary": 1 },
2410
+ "tbody": {},
2411
+ "td": { "headers": 1, "rowspan": 1, "colspan": 1 },
2412
+ "textarea": { "autofocus": { "autofocus": 1 }, "disabled": { "disabled": 1 }, "form": 1, "maxlength": 1, "name": 1, "placeholder": 1, "readonly": { "readonly": 1 }, "required": { "required": 1 }, "rows": 1, "cols": 1, "wrap": { "on": 1, "off": 1, "hard": 1, "soft": 1 } },
2413
+ "tfoot": {},
2414
+ "th": { "headers": 1, "rowspan": 1, "colspan": 1, "scope": 1 },
2415
+ "thead": {},
2416
+ "time": { "datetime": 1 },
2417
+ "title": {},
2418
+ "tr": {},
2419
+ "track": { "kind": 1, "src": 1, "srclang": 1, "label": 1, "default": 1 },
2420
+ "section": {},
2421
+ "summary": {},
2422
+ "u": {},
2423
+ "ul": {},
2424
+ "var": {},
2425
+ "video": { "src": 1, "autobuffer": 1, "autoplay": { "autoplay": 1 }, "loop": { "loop": 1 }, "controls": { "controls": 1 }, "width": 1, "height": 1, "poster": 1, "muted": { "muted": 1 }, "preload": { "auto": 1, "metadata": 1, "none": 1 } },
2426
+ "wbr": {}
2427
+ };
2428
+ var elements = Object.keys(attributeMap);
2429
+ function is(token, type) {
2430
+ return token.type.lastIndexOf(type + ".xml") > -1;
2431
+ }
2432
+ function findTagName(session, pos) {
2433
+ var iterator = new TokenIterator(session, pos.row, pos.column);
2434
+ var token = iterator.getCurrentToken();
2435
+ while (token && !is(token, "tag-name")) {
2436
+ token = iterator.stepBackward();
2437
+ }
2438
+ if (token)
2439
+ return token.value;
2440
+ }
2441
+ function findAttributeName(session, pos) {
2442
+ var iterator = new TokenIterator(session, pos.row, pos.column);
2443
+ var token = iterator.getCurrentToken();
2444
+ while (token && !is(token, "attribute-name")) {
2445
+ token = iterator.stepBackward();
2446
+ }
2447
+ if (token)
2448
+ return token.value;
2449
+ }
2450
+ var HtmlCompletions = function () {
2451
+ };
2452
+ (function () {
2453
+ this.getCompletions = function (state, session, pos, prefix) {
2454
+ var token = session.getTokenAt(pos.row, pos.column);
2455
+ if (!token)
2456
+ return [];
2457
+ if (is(token, "tag-name") || is(token, "tag-open") || is(token, "end-tag-open"))
2458
+ return this.getTagCompletions(state, session, pos, prefix);
2459
+ if (is(token, "tag-whitespace") || is(token, "attribute-name"))
2460
+ return this.getAttributeCompletions(state, session, pos, prefix);
2461
+ if (is(token, "attribute-value"))
2462
+ return this.getAttributeValueCompletions(state, session, pos, prefix);
2463
+ var line = session.getLine(pos.row).substr(0, pos.column);
2464
+ if (/&[a-z]*$/i.test(line))
2465
+ return this.getHTMLEntityCompletions(state, session, pos, prefix);
2466
+ return [];
2467
+ };
2468
+ this.getTagCompletions = function (state, session, pos, prefix) {
2469
+ return elements.map(function (element) {
2470
+ return {
2471
+ value: element,
2472
+ meta: "tag",
2473
+ score: 1000000
2474
+ };
2475
+ });
2476
+ };
2477
+ this.getAttributeCompletions = function (state, session, pos, prefix) {
2478
+ var tagName = findTagName(session, pos);
2479
+ if (!tagName)
2480
+ return [];
2481
+ var attributes = globalAttributes;
2482
+ if (tagName in attributeMap) {
2483
+ attributes = attributes.concat(Object.keys(attributeMap[tagName]));
2484
+ }
2485
+ return attributes.map(function (attribute) {
2486
+ return {
2487
+ caption: attribute,
2488
+ snippet: attribute + '="$0"',
2489
+ meta: "attribute",
2490
+ score: 1000000
2491
+ };
2492
+ });
2493
+ };
2494
+ this.getAttributeValueCompletions = function (state, session, pos, prefix) {
2495
+ var tagName = findTagName(session, pos);
2496
+ var attributeName = findAttributeName(session, pos);
2497
+ if (!tagName)
2498
+ return [];
2499
+ var values = [];
2500
+ if (tagName in attributeMap && attributeName in attributeMap[tagName] && typeof attributeMap[tagName][attributeName] === "object") {
2501
+ values = Object.keys(attributeMap[tagName][attributeName]);
2502
+ }
2503
+ return values.map(function (value) {
2504
+ return {
2505
+ caption: value,
2506
+ snippet: value,
2507
+ meta: "attribute value",
2508
+ score: 1000000
2509
+ };
2510
+ });
2511
+ };
2512
+ this.getHTMLEntityCompletions = function (state, session, pos, prefix) {
2513
+ var values = ['Aacute;', 'aacute;', 'Acirc;', 'acirc;', 'acute;', 'AElig;', 'aelig;', 'Agrave;', 'agrave;', 'alefsym;', 'Alpha;', 'alpha;', 'amp;', 'and;', 'ang;', 'Aring;', 'aring;', 'asymp;', 'Atilde;', 'atilde;', 'Auml;', 'auml;', 'bdquo;', 'Beta;', 'beta;', 'brvbar;', 'bull;', 'cap;', 'Ccedil;', 'ccedil;', 'cedil;', 'cent;', 'Chi;', 'chi;', 'circ;', 'clubs;', 'cong;', 'copy;', 'crarr;', 'cup;', 'curren;', 'Dagger;', 'dagger;', 'dArr;', 'darr;', 'deg;', 'Delta;', 'delta;', 'diams;', 'divide;', 'Eacute;', 'eacute;', 'Ecirc;', 'ecirc;', 'Egrave;', 'egrave;', 'empty;', 'emsp;', 'ensp;', 'Epsilon;', 'epsilon;', 'equiv;', 'Eta;', 'eta;', 'ETH;', 'eth;', 'Euml;', 'euml;', 'euro;', 'exist;', 'fnof;', 'forall;', 'frac12;', 'frac14;', 'frac34;', 'frasl;', 'Gamma;', 'gamma;', 'ge;', 'gt;', 'hArr;', 'harr;', 'hearts;', 'hellip;', 'Iacute;', 'iacute;', 'Icirc;', 'icirc;', 'iexcl;', 'Igrave;', 'igrave;', 'image;', 'infin;', 'int;', 'Iota;', 'iota;', 'iquest;', 'isin;', 'Iuml;', 'iuml;', 'Kappa;', 'kappa;', 'Lambda;', 'lambda;', 'lang;', 'laquo;', 'lArr;', 'larr;', 'lceil;', 'ldquo;', 'le;', 'lfloor;', 'lowast;', 'loz;', 'lrm;', 'lsaquo;', 'lsquo;', 'lt;', 'macr;', 'mdash;', 'micro;', 'middot;', 'minus;', 'Mu;', 'mu;', 'nabla;', 'nbsp;', 'ndash;', 'ne;', 'ni;', 'not;', 'notin;', 'nsub;', 'Ntilde;', 'ntilde;', 'Nu;', 'nu;', 'Oacute;', 'oacute;', 'Ocirc;', 'ocirc;', 'OElig;', 'oelig;', 'Ograve;', 'ograve;', 'oline;', 'Omega;', 'omega;', 'Omicron;', 'omicron;', 'oplus;', 'or;', 'ordf;', 'ordm;', 'Oslash;', 'oslash;', 'Otilde;', 'otilde;', 'otimes;', 'Ouml;', 'ouml;', 'para;', 'part;', 'permil;', 'perp;', 'Phi;', 'phi;', 'Pi;', 'pi;', 'piv;', 'plusmn;', 'pound;', 'Prime;', 'prime;', 'prod;', 'prop;', 'Psi;', 'psi;', 'quot;', 'radic;', 'rang;', 'raquo;', 'rArr;', 'rarr;', 'rceil;', 'rdquo;', 'real;', 'reg;', 'rfloor;', 'Rho;', 'rho;', 'rlm;', 'rsaquo;', 'rsquo;', 'sbquo;', 'Scaron;', 'scaron;', 'sdot;', 'sect;', 'shy;', 'Sigma;', 'sigma;', 'sigmaf;', 'sim;', 'spades;', 'sub;', 'sube;', 'sum;', 'sup;', 'sup1;', 'sup2;', 'sup3;', 'supe;', 'szlig;', 'Tau;', 'tau;', 'there4;', 'Theta;', 'theta;', 'thetasym;', 'thinsp;', 'THORN;', 'thorn;', 'tilde;', 'times;', 'trade;', 'Uacute;', 'uacute;', 'uArr;', 'uarr;', 'Ucirc;', 'ucirc;', 'Ugrave;', 'ugrave;', 'uml;', 'upsih;', 'Upsilon;', 'upsilon;', 'Uuml;', 'uuml;', 'weierp;', 'Xi;', 'xi;', 'Yacute;', 'yacute;', 'yen;', 'Yuml;', 'yuml;', 'Zeta;', 'zeta;', 'zwj;', 'zwnj;'];
2514
+ return values.map(function (value) {
2515
+ return {
2516
+ caption: value,
2517
+ snippet: value,
2518
+ meta: "html entity",
2519
+ score: 1000000
2520
+ };
2521
+ });
2522
+ };
2523
+ }).call(HtmlCompletions.prototype);
2524
+ exports.HtmlCompletions = HtmlCompletions;
2525
+
2526
+ });
2527
+
2528
+ ace.define("ace/mode/html",["require","exports","module","ace/lib/oop","ace/lib/lang","ace/mode/text","ace/mode/javascript","ace/mode/css","ace/mode/html_highlight_rules","ace/mode/behaviour/xml","ace/mode/folding/html","ace/mode/html_completions","ace/worker/worker_client"], function(require, exports, module){"use strict";
2529
+ var oop = require("../lib/oop");
2530
+ var lang = require("../lib/lang");
2531
+ var TextMode = require("./text").Mode;
2532
+ var JavaScriptMode = require("./javascript").Mode;
2533
+ var CssMode = require("./css").Mode;
2534
+ var HtmlHighlightRules = require("./html_highlight_rules").HtmlHighlightRules;
2535
+ var XmlBehaviour = require("./behaviour/xml").XmlBehaviour;
2536
+ var HtmlFoldMode = require("./folding/html").FoldMode;
2537
+ var HtmlCompletions = require("./html_completions").HtmlCompletions;
2538
+ var WorkerClient = require("../worker/worker_client").WorkerClient;
2539
+ var voidElements = ["area", "base", "br", "col", "embed", "hr", "img", "input", "keygen", "link", "meta", "menuitem", "param", "source", "track", "wbr"];
2540
+ var optionalEndTags = ["li", "dt", "dd", "p", "rt", "rp", "optgroup", "option", "colgroup", "td", "th"];
2541
+ var Mode = function (options) {
2542
+ this.fragmentContext = options && options.fragmentContext;
2543
+ this.HighlightRules = HtmlHighlightRules;
2544
+ this.$behaviour = new XmlBehaviour();
2545
+ this.$completer = new HtmlCompletions();
2546
+ this.createModeDelegates({
2547
+ "js-": JavaScriptMode,
2548
+ "css-": CssMode
2549
+ });
2550
+ this.foldingRules = new HtmlFoldMode(this.voidElements, lang.arrayToMap(optionalEndTags));
2551
+ };
2552
+ oop.inherits(Mode, TextMode);
2553
+ (function () {
2554
+ this.blockComment = { start: "<!--", end: "-->" };
2555
+ this.voidElements = lang.arrayToMap(voidElements);
2556
+ this.getNextLineIndent = function (state, line, tab) {
2557
+ return this.$getIndent(line);
2558
+ };
2559
+ this.checkOutdent = function (state, line, input) {
2560
+ return false;
2561
+ };
2562
+ this.getCompletions = function (state, session, pos, prefix) {
2563
+ return this.$completer.getCompletions(state, session, pos, prefix);
2564
+ };
2565
+ this.createWorker = function (session) {
2566
+ if (this.constructor != Mode)
2567
+ return;
2568
+ var worker = new WorkerClient(["ace"], "ace/mode/html_worker", "Worker");
2569
+ worker.attachToDocument(session.getDocument());
2570
+ if (this.fragmentContext)
2571
+ worker.call("setOptions", [{ context: this.fragmentContext }]);
2572
+ worker.on("error", function (e) {
2573
+ session.setAnnotations(e.data);
2574
+ });
2575
+ worker.on("terminate", function () {
2576
+ session.clearAnnotations();
2577
+ });
2578
+ return worker;
2579
+ };
2580
+ this.$id = "ace/mode/html";
2581
+ this.snippetFileId = "ace/snippets/html";
2582
+ }).call(Mode.prototype);
2583
+ exports.Mode = Mode;
2584
+
2585
+ });
2586
+
2587
+ ace.define("ace/mode/sh_highlight_rules",["require","exports","module","ace/lib/oop","ace/mode/text_highlight_rules"], function(require, exports, module){"use strict";
2588
+ var oop = require("../lib/oop");
2589
+ var TextHighlightRules = require("./text_highlight_rules").TextHighlightRules;
2590
+ var reservedKeywords = exports.reservedKeywords = ('!|{|}|case|do|done|elif|else|' +
2591
+ 'esac|fi|for|if|in|then|until|while|' +
2592
+ '&|;|export|local|read|typeset|unset|' +
2593
+ 'elif|select|set|function|declare|readonly');
2594
+ var languageConstructs = exports.languageConstructs = ('[|]|alias|bg|bind|break|builtin|' +
2595
+ 'cd|command|compgen|complete|continue|' +
2596
+ 'dirs|disown|echo|enable|eval|exec|' +
2597
+ 'exit|fc|fg|getopts|hash|help|history|' +
2598
+ 'jobs|kill|let|logout|popd|printf|pushd|' +
2599
+ 'pwd|return|set|shift|shopt|source|' +
2600
+ 'suspend|test|times|trap|type|ulimit|' +
2601
+ 'umask|unalias|wait');
2602
+ var ShHighlightRules = function () {
2603
+ var keywordMapper = this.createKeywordMapper({
2604
+ "keyword": reservedKeywords,
2605
+ "support.function.builtin": languageConstructs,
2606
+ "invalid.deprecated": "debugger"
2607
+ }, "identifier");
2608
+ var integer = "(?:(?:[1-9]\\d*)|(?:0))";
2609
+ var fraction = "(?:\\.\\d+)";
2610
+ var intPart = "(?:\\d+)";
2611
+ var pointFloat = "(?:(?:" + intPart + "?" + fraction + ")|(?:" + intPart + "\\.))";
2612
+ var exponentFloat = "(?:(?:" + pointFloat + "|" + intPart + ")" + ")";
2613
+ var floatNumber = "(?:" + exponentFloat + "|" + pointFloat + ")";
2614
+ var fileDescriptor = "(?:&" + intPart + ")";
2615
+ var variableName = "[a-zA-Z_][a-zA-Z0-9_]*";
2616
+ var variable = "(?:" + variableName + "(?==))";
2617
+ var builtinVariable = "(?:\\$(?:SHLVL|\\$|\\!|\\?))";
2618
+ var func = "(?:" + variableName + "\\s*\\(\\))";
2619
+ this.$rules = {
2620
+ "start": [{
2621
+ token: "constant",
2622
+ regex: /\\./
2623
+ }, {
2624
+ token: ["text", "comment"],
2625
+ regex: /(^|\s)(#.*)$/
2626
+ }, {
2627
+ token: "string.start",
2628
+ regex: '"',
2629
+ push: [{
2630
+ token: "constant.language.escape",
2631
+ regex: /\\(?:[$`"\\]|$)/
2632
+ }, {
2633
+ include: "variables"
2634
+ }, {
2635
+ token: "keyword.operator",
2636
+ regex: /`/ // TODO highlight `
2637
+ }, {
2638
+ token: "string.end",
2639
+ regex: '"',
2640
+ next: "pop"
2641
+ }, {
2642
+ defaultToken: "string"
2643
+ }]
2644
+ }, {
2645
+ token: "string",
2646
+ regex: "\\$'",
2647
+ push: [{
2648
+ token: "constant.language.escape",
2649
+ regex: /\\(?:[abeEfnrtv\\'"]|x[a-fA-F\d]{1,2}|u[a-fA-F\d]{4}([a-fA-F\d]{4})?|c.|\d{1,3})/
2650
+ }, {
2651
+ token: "string",
2652
+ regex: "'",
2653
+ next: "pop"
2654
+ }, {
2655
+ defaultToken: "string"
2656
+ }]
2657
+ }, {
2658
+ regex: "<<<",
2659
+ token: "keyword.operator"
2660
+ }, {
2661
+ stateName: "heredoc",
2662
+ regex: "(<<-?)(\\s*)(['\"`]?)([\\w\\-]+)(['\"`]?)",
2663
+ onMatch: function (value, currentState, stack) {
2664
+ var next = value[2] == '-' ? "indentedHeredoc" : "heredoc";
2665
+ var tokens = value.split(this.splitRegex);
2666
+ stack.push(next, tokens[4]);
2667
+ return [
2668
+ { type: "constant", value: tokens[1] },
2669
+ { type: "text", value: tokens[2] },
2670
+ { type: "string", value: tokens[3] },
2671
+ { type: "support.class", value: tokens[4] },
2672
+ { type: "string", value: tokens[5] }
2673
+ ];
2674
+ },
2675
+ rules: {
2676
+ heredoc: [{
2677
+ onMatch: function (value, currentState, stack) {
2678
+ if (value === stack[1]) {
2679
+ stack.shift();
2680
+ stack.shift();
2681
+ this.next = stack[0] || "start";
2682
+ return "support.class";
2683
+ }
2684
+ this.next = "";
2685
+ return "string";
2686
+ },
2687
+ regex: ".*$",
2688
+ next: "start"
2689
+ }],
2690
+ indentedHeredoc: [{
2691
+ token: "string",
2692
+ regex: "^\t+"
2693
+ }, {
2694
+ onMatch: function (value, currentState, stack) {
2695
+ if (value === stack[1]) {
2696
+ stack.shift();
2697
+ stack.shift();
2698
+ this.next = stack[0] || "start";
2699
+ return "support.class";
2700
+ }
2701
+ this.next = "";
2702
+ return "string";
2703
+ },
2704
+ regex: ".*$",
2705
+ next: "start"
2706
+ }]
2707
+ }
2708
+ }, {
2709
+ regex: "$",
2710
+ token: "empty",
2711
+ next: function (currentState, stack) {
2712
+ if (stack[0] === "heredoc" || stack[0] === "indentedHeredoc")
2713
+ return stack[0];
2714
+ return currentState;
2715
+ }
2716
+ }, {
2717
+ token: ["keyword", "text", "text", "text", "variable"],
2718
+ regex: /(declare|local|readonly)(\s+)(?:(-[fixar]+)(\s+))?([a-zA-Z_][a-zA-Z0-9_]*\b)/
2719
+ }, {
2720
+ token: "variable.language",
2721
+ regex: builtinVariable
2722
+ }, {
2723
+ token: "variable",
2724
+ regex: variable
2725
+ }, {
2726
+ include: "variables"
2727
+ }, {
2728
+ token: "support.function",
2729
+ regex: func
2730
+ }, {
2731
+ token: "support.function",
2732
+ regex: fileDescriptor
2733
+ }, {
2734
+ token: "string", // ' string
2735
+ start: "'", end: "'"
2736
+ }, {
2737
+ token: "constant.numeric", // float
2738
+ regex: floatNumber
2739
+ }, {
2740
+ token: "constant.numeric", // integer
2741
+ regex: integer + "\\b"
2742
+ }, {
2743
+ token: keywordMapper,
2744
+ regex: "[a-zA-Z_][a-zA-Z0-9_]*\\b"
2745
+ }, {
2746
+ token: "keyword.operator",
2747
+ regex: "\\+|\\-|\\*|\\*\\*|\\/|\\/\\/|~|<|>|<=|=>|=|!=|[%&|`]"
2748
+ }, {
2749
+ token: "punctuation.operator",
2750
+ regex: ";"
2751
+ }, {
2752
+ token: "paren.lparen",
2753
+ regex: "[\\[\\(\\{]"
2754
+ }, {
2755
+ token: "paren.rparen",
2756
+ regex: "[\\]]"
2757
+ }, {
2758
+ token: "paren.rparen",
2759
+ regex: "[\\)\\}]",
2760
+ next: "pop"
2761
+ }],
2762
+ variables: [{
2763
+ token: "variable",
2764
+ regex: /(\$)(\w+)/
2765
+ }, {
2766
+ token: ["variable", "paren.lparen"],
2767
+ regex: /(\$)(\()/,
2768
+ push: "start"
2769
+ }, {
2770
+ token: ["variable", "paren.lparen", "keyword.operator", "variable", "keyword.operator"],
2771
+ regex: /(\$)(\{)([#!]?)(\w+|[*@#?\-$!0_])(:[?+\-=]?|##?|%%?|,,?\/|\^\^?)?/,
2772
+ push: "start"
2773
+ }, {
2774
+ token: "variable",
2775
+ regex: /\$[*@#?\-$!0_]/
2776
+ }, {
2777
+ token: ["variable", "paren.lparen"],
2778
+ regex: /(\$)(\{)/,
2779
+ push: "start"
2780
+ }]
2781
+ };
2782
+ this.normalizeRules();
2783
+ };
2784
+ oop.inherits(ShHighlightRules, TextHighlightRules);
2785
+ exports.ShHighlightRules = ShHighlightRules;
2786
+
2787
+ });
2788
+
2789
+ ace.define("ace/mode/sh",["require","exports","module","ace/lib/oop","ace/mode/text","ace/mode/sh_highlight_rules","ace/range","ace/mode/folding/cstyle"], function(require, exports, module){"use strict";
2790
+ var oop = require("../lib/oop");
2791
+ var TextMode = require("./text").Mode;
2792
+ var ShHighlightRules = require("./sh_highlight_rules").ShHighlightRules;
2793
+ var Range = require("../range").Range;
2794
+ var CStyleFoldMode = require("./folding/cstyle").FoldMode;
2795
+ var Mode = function () {
2796
+ this.HighlightRules = ShHighlightRules;
2797
+ this.foldingRules = new CStyleFoldMode();
2798
+ this.$behaviour = this.$defaultBehaviour;
2799
+ };
2800
+ oop.inherits(Mode, TextMode);
2801
+ (function () {
2802
+ this.lineCommentStart = "#";
2803
+ this.getNextLineIndent = function (state, line, tab) {
2804
+ var indent = this.$getIndent(line);
2805
+ var tokenizedLine = this.getTokenizer().getLineTokens(line, state);
2806
+ var tokens = tokenizedLine.tokens;
2807
+ if (tokens.length && tokens[tokens.length - 1].type == "comment") {
2808
+ return indent;
2809
+ }
2810
+ if (state == "start") {
2811
+ var match = line.match(/^.*[\{\(\[:]\s*$/);
2812
+ if (match) {
2813
+ indent += tab;
2814
+ }
2815
+ }
2816
+ return indent;
2817
+ };
2818
+ var outdents = {
2819
+ "pass": 1,
2820
+ "return": 1,
2821
+ "raise": 1,
2822
+ "break": 1,
2823
+ "continue": 1
2824
+ };
2825
+ this.checkOutdent = function (state, line, input) {
2826
+ if (input !== "\r\n" && input !== "\r" && input !== "\n")
2827
+ return false;
2828
+ var tokens = this.getTokenizer().getLineTokens(line.trim(), state).tokens;
2829
+ if (!tokens)
2830
+ return false;
2831
+ do {
2832
+ var last = tokens.pop();
2833
+ } while (last && (last.type == "comment" || (last.type == "text" && last.value.match(/^\s+$/))));
2834
+ if (!last)
2835
+ return false;
2836
+ return (last.type == "keyword" && outdents[last.value]);
2837
+ };
2838
+ this.autoOutdent = function (state, doc, row) {
2839
+ row += 1;
2840
+ var indent = this.$getIndent(doc.getLine(row));
2841
+ var tab = doc.getTabString();
2842
+ if (indent.slice(-tab.length) == tab)
2843
+ doc.remove(new Range(row, indent.length - tab.length, row, indent.length));
2844
+ };
2845
+ this.$id = "ace/mode/sh";
2846
+ this.snippetFileId = "ace/snippets/sh";
2847
+ }).call(Mode.prototype);
2848
+ exports.Mode = Mode;
2849
+
2850
+ });
2851
+
2852
+ ace.define("ace/mode/xml",["require","exports","module","ace/lib/oop","ace/lib/lang","ace/mode/text","ace/mode/xml_highlight_rules","ace/mode/behaviour/xml","ace/mode/folding/xml","ace/worker/worker_client"], function(require, exports, module){"use strict";
2853
+ var oop = require("../lib/oop");
2854
+ var lang = require("../lib/lang");
2855
+ var TextMode = require("./text").Mode;
2856
+ var XmlHighlightRules = require("./xml_highlight_rules").XmlHighlightRules;
2857
+ var XmlBehaviour = require("./behaviour/xml").XmlBehaviour;
2858
+ var XmlFoldMode = require("./folding/xml").FoldMode;
2859
+ var WorkerClient = require("../worker/worker_client").WorkerClient;
2860
+ var Mode = function () {
2861
+ this.HighlightRules = XmlHighlightRules;
2862
+ this.$behaviour = new XmlBehaviour();
2863
+ this.foldingRules = new XmlFoldMode();
2864
+ };
2865
+ oop.inherits(Mode, TextMode);
2866
+ (function () {
2867
+ this.voidElements = lang.arrayToMap([]);
2868
+ this.blockComment = { start: "<!--", end: "-->" };
2869
+ this.createWorker = function (session) {
2870
+ var worker = new WorkerClient(["ace"], "ace/mode/xml_worker", "Worker");
2871
+ worker.attachToDocument(session.getDocument());
2872
+ worker.on("error", function (e) {
2873
+ session.setAnnotations(e.data);
2874
+ });
2875
+ worker.on("terminate", function () {
2876
+ session.clearAnnotations();
2877
+ });
2878
+ return worker;
2879
+ };
2880
+ this.$id = "ace/mode/xml";
2881
+ }).call(Mode.prototype);
2882
+ exports.Mode = Mode;
2883
+
2884
+ });
2885
+
2886
+ ace.define("ace/mode/markdown",["require","exports","module","ace/lib/oop","ace/mode/behaviour/cstyle","ace/mode/text","ace/mode/markdown_highlight_rules","ace/mode/folding/markdown","ace/mode/javascript","ace/mode/html","ace/mode/sh","ace/mode/sh","ace/mode/xml","ace/mode/css"], function(require, exports, module){"use strict";
2887
+ var oop = require("../lib/oop");
2888
+ var CstyleBehaviour = require("./behaviour/cstyle").CstyleBehaviour;
2889
+ var TextMode = require("./text").Mode;
2890
+ var MarkdownHighlightRules = require("./markdown_highlight_rules").MarkdownHighlightRules;
2891
+ var MarkdownFoldMode = require("./folding/markdown").FoldMode;
2892
+ var Mode = function () {
2893
+ this.HighlightRules = MarkdownHighlightRules;
2894
+ this.createModeDelegates({
2895
+ javascript: require("./javascript").Mode,
2896
+ html: require("./html").Mode,
2897
+ bash: require("./sh").Mode,
2898
+ sh: require("./sh").Mode,
2899
+ xml: require("./xml").Mode,
2900
+ css: require("./css").Mode
2901
+ });
2902
+ this.foldingRules = new MarkdownFoldMode();
2903
+ this.$behaviour = new CstyleBehaviour({ braces: true });
2904
+ };
2905
+ oop.inherits(Mode, TextMode);
2906
+ (function () {
2907
+ this.type = "text";
2908
+ this.blockComment = { start: "<!--", end: "-->" };
2909
+ this.$quotes = { '"': '"', "`": "`" };
2910
+ this.getNextLineIndent = function (state, line, tab) {
2911
+ if (state == "listblock") {
2912
+ var match = /^(\s*)(?:([-+*])|(\d+)\.)(\s+)/.exec(line);
2913
+ if (!match)
2914
+ return "";
2915
+ var marker = match[2];
2916
+ if (!marker)
2917
+ marker = parseInt(match[3], 10) + 1 + ".";
2918
+ return match[1] + marker + match[4];
2919
+ }
2920
+ else {
2921
+ return this.$getIndent(line);
2922
+ }
2923
+ };
2924
+ this.$id = "ace/mode/markdown";
2925
+ this.snippetFileId = "ace/snippets/markdown";
2926
+ }).call(Mode.prototype);
2927
+ exports.Mode = Mode;
2928
+
2929
+ }); (function() {
2930
+ ace.require(["ace/mode/markdown"], function(m) {
2931
+ if (typeof module == "object" && typeof exports == "object" && module) {
2932
+ module.exports = m;
2933
+ }
2934
+ });
2935
+ })();
2936
+