@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,2678 @@
1
+ ace.define("ace/mode/folding/mixed",["require","exports","module","ace/lib/oop","ace/mode/folding/fold_mode"], function(require, exports, module){"use strict";
2
+ var oop = require("../../lib/oop");
3
+ var BaseFoldMode = require("./fold_mode").FoldMode;
4
+ var FoldMode = exports.FoldMode = function (defaultMode, subModes) {
5
+ this.defaultMode = defaultMode;
6
+ this.subModes = subModes;
7
+ };
8
+ oop.inherits(FoldMode, BaseFoldMode);
9
+ (function () {
10
+ this.$getMode = function (state) {
11
+ if (typeof state != "string")
12
+ state = state[0];
13
+ for (var key in this.subModes) {
14
+ if (state.indexOf(key) === 0)
15
+ return this.subModes[key];
16
+ }
17
+ return null;
18
+ };
19
+ this.$tryMode = function (state, session, foldStyle, row) {
20
+ var mode = this.$getMode(state);
21
+ return (mode ? mode.getFoldWidget(session, foldStyle, row) : "");
22
+ };
23
+ this.getFoldWidget = function (session, foldStyle, row) {
24
+ return (this.$tryMode(session.getState(row - 1), session, foldStyle, row) ||
25
+ this.$tryMode(session.getState(row), session, foldStyle, row) ||
26
+ this.defaultMode.getFoldWidget(session, foldStyle, row));
27
+ };
28
+ this.getFoldWidgetRange = function (session, foldStyle, row) {
29
+ var mode = this.$getMode(session.getState(row - 1));
30
+ if (!mode || !mode.getFoldWidget(session, foldStyle, row))
31
+ mode = this.$getMode(session.getState(row));
32
+ if (!mode || !mode.getFoldWidget(session, foldStyle, row))
33
+ mode = this.defaultMode;
34
+ return mode.getFoldWidgetRange(session, foldStyle, row);
35
+ };
36
+ }).call(FoldMode.prototype);
37
+
38
+ });
39
+
40
+ 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";
41
+ var oop = require("../../lib/oop");
42
+ var Range = require("../../range").Range;
43
+ var BaseFoldMode = require("./fold_mode").FoldMode;
44
+ var FoldMode = exports.FoldMode = function (voidElements, optionalEndTags) {
45
+ BaseFoldMode.call(this);
46
+ this.voidElements = voidElements || {};
47
+ this.optionalEndTags = oop.mixin({}, this.voidElements);
48
+ if (optionalEndTags)
49
+ oop.mixin(this.optionalEndTags, optionalEndTags);
50
+ };
51
+ oop.inherits(FoldMode, BaseFoldMode);
52
+ var Tag = function () {
53
+ this.tagName = "";
54
+ this.closing = false;
55
+ this.selfClosing = false;
56
+ this.start = { row: 0, column: 0 };
57
+ this.end = { row: 0, column: 0 };
58
+ };
59
+ function is(token, type) {
60
+ return token && token.type && token.type.lastIndexOf(type + ".xml") > -1;
61
+ }
62
+ (function () {
63
+ this.getFoldWidget = function (session, foldStyle, row) {
64
+ var tag = this._getFirstTagInLine(session, row);
65
+ if (!tag)
66
+ return this.getCommentFoldWidget(session, row);
67
+ if (tag.closing || (!tag.tagName && tag.selfClosing))
68
+ return foldStyle === "markbeginend" ? "end" : "";
69
+ if (!tag.tagName || tag.selfClosing || this.voidElements.hasOwnProperty(tag.tagName.toLowerCase()))
70
+ return "";
71
+ if (this._findEndTagInLine(session, row, tag.tagName, tag.end.column))
72
+ return "";
73
+ return "start";
74
+ };
75
+ this.getCommentFoldWidget = function (session, row) {
76
+ if (/comment/.test(session.getState(row)) && /<!-/.test(session.getLine(row)))
77
+ return "start";
78
+ return "";
79
+ };
80
+ this._getFirstTagInLine = function (session, row) {
81
+ var tokens = session.getTokens(row);
82
+ var tag = new Tag();
83
+ for (var i = 0; i < tokens.length; i++) {
84
+ var token = tokens[i];
85
+ if (is(token, "tag-open")) {
86
+ tag.end.column = tag.start.column + token.value.length;
87
+ tag.closing = is(token, "end-tag-open");
88
+ token = tokens[++i];
89
+ if (!token)
90
+ return null;
91
+ tag.tagName = token.value;
92
+ if (token.value === "") { //skip empty tag name token for fragment
93
+ token = tokens[++i];
94
+ if (!token)
95
+ return null;
96
+ tag.tagName = token.value;
97
+ }
98
+ tag.end.column += token.value.length;
99
+ for (i++; i < tokens.length; i++) {
100
+ token = tokens[i];
101
+ tag.end.column += token.value.length;
102
+ if (is(token, "tag-close")) {
103
+ tag.selfClosing = token.value == '/>';
104
+ break;
105
+ }
106
+ }
107
+ return tag;
108
+ }
109
+ else if (is(token, "tag-close")) {
110
+ tag.selfClosing = token.value == '/>';
111
+ return tag;
112
+ }
113
+ tag.start.column += token.value.length;
114
+ }
115
+ return null;
116
+ };
117
+ this._findEndTagInLine = function (session, row, tagName, startColumn) {
118
+ var tokens = session.getTokens(row);
119
+ var column = 0;
120
+ for (var i = 0; i < tokens.length; i++) {
121
+ var token = tokens[i];
122
+ column += token.value.length;
123
+ if (column < startColumn - 1)
124
+ continue;
125
+ if (is(token, "end-tag-open")) {
126
+ token = tokens[i + 1];
127
+ if (is(token, "tag-name") && token.value === "") {
128
+ token = tokens[i + 2];
129
+ }
130
+ if (token && token.value == tagName)
131
+ return true;
132
+ }
133
+ }
134
+ return false;
135
+ };
136
+ this.getFoldWidgetRange = function (session, foldStyle, row) {
137
+ var firstTag = this._getFirstTagInLine(session, row);
138
+ if (!firstTag) {
139
+ return this.getCommentFoldWidget(session, row) && session.getCommentFoldRange(row, session.getLine(row).length);
140
+ }
141
+ var tags = session.getMatchingTags({ row: row, column: 0 });
142
+ if (tags) {
143
+ return new Range(tags.openTag.end.row, tags.openTag.end.column, tags.closeTag.start.row, tags.closeTag.start.column);
144
+ }
145
+ };
146
+ }).call(FoldMode.prototype);
147
+
148
+ });
149
+
150
+ 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";
151
+ var oop = require("../../lib/oop");
152
+ var Range = require("../../range").Range;
153
+ var BaseFoldMode = require("./fold_mode").FoldMode;
154
+ var FoldMode = exports.FoldMode = function (commentRegex) {
155
+ if (commentRegex) {
156
+ this.foldingStartMarker = new RegExp(this.foldingStartMarker.source.replace(/\|[^|]*?$/, "|" + commentRegex.start));
157
+ this.foldingStopMarker = new RegExp(this.foldingStopMarker.source.replace(/\|[^|]*?$/, "|" + commentRegex.end));
158
+ }
159
+ };
160
+ oop.inherits(FoldMode, BaseFoldMode);
161
+ (function () {
162
+ this.foldingStartMarker = /([\{\[\(])[^\}\]\)]*$|^\s*(\/\*)/;
163
+ this.foldingStopMarker = /^[^\[\{\(]*([\}\]\)])|^[\s\*]*(\*\/)/;
164
+ this.singleLineBlockCommentRe = /^\s*(\/\*).*\*\/\s*$/;
165
+ this.tripleStarBlockCommentRe = /^\s*(\/\*\*\*).*\*\/\s*$/;
166
+ this.startRegionRe = /^\s*(\/\*|\/\/)#?region\b/;
167
+ this._getFoldWidgetBase = this.getFoldWidget;
168
+ this.getFoldWidget = function (session, foldStyle, row) {
169
+ var line = session.getLine(row);
170
+ if (this.singleLineBlockCommentRe.test(line)) {
171
+ if (!this.startRegionRe.test(line) && !this.tripleStarBlockCommentRe.test(line))
172
+ return "";
173
+ }
174
+ var fw = this._getFoldWidgetBase(session, foldStyle, row);
175
+ if (!fw && this.startRegionRe.test(line))
176
+ return "start"; // lineCommentRegionStart
177
+ return fw;
178
+ };
179
+ this.getFoldWidgetRange = function (session, foldStyle, row, forceMultiline) {
180
+ var line = session.getLine(row);
181
+ if (this.startRegionRe.test(line))
182
+ return this.getCommentRegionBlock(session, line, row);
183
+ var match = line.match(this.foldingStartMarker);
184
+ if (match) {
185
+ var i = match.index;
186
+ if (match[1])
187
+ return this.openingBracketBlock(session, match[1], row, i);
188
+ var range = session.getCommentFoldRange(row, i + match[0].length, 1);
189
+ if (range && !range.isMultiLine()) {
190
+ if (forceMultiline) {
191
+ range = this.getSectionRange(session, row);
192
+ }
193
+ else if (foldStyle != "all")
194
+ range = null;
195
+ }
196
+ return range;
197
+ }
198
+ if (foldStyle === "markbegin")
199
+ return;
200
+ var match = line.match(this.foldingStopMarker);
201
+ if (match) {
202
+ var i = match.index + match[0].length;
203
+ if (match[1])
204
+ return this.closingBracketBlock(session, match[1], row, i);
205
+ return session.getCommentFoldRange(row, i, -1);
206
+ }
207
+ };
208
+ this.getSectionRange = function (session, row) {
209
+ var line = session.getLine(row);
210
+ var startIndent = line.search(/\S/);
211
+ var startRow = row;
212
+ var startColumn = line.length;
213
+ row = row + 1;
214
+ var endRow = row;
215
+ var maxRow = session.getLength();
216
+ while (++row < maxRow) {
217
+ line = session.getLine(row);
218
+ var indent = line.search(/\S/);
219
+ if (indent === -1)
220
+ continue;
221
+ if (startIndent > indent)
222
+ break;
223
+ var subRange = this.getFoldWidgetRange(session, "all", row);
224
+ if (subRange) {
225
+ if (subRange.start.row <= startRow) {
226
+ break;
227
+ }
228
+ else if (subRange.isMultiLine()) {
229
+ row = subRange.end.row;
230
+ }
231
+ else if (startIndent == indent) {
232
+ break;
233
+ }
234
+ }
235
+ endRow = row;
236
+ }
237
+ return new Range(startRow, startColumn, endRow, session.getLine(endRow).length);
238
+ };
239
+ this.getCommentRegionBlock = function (session, line, row) {
240
+ var startColumn = line.search(/\s*$/);
241
+ var maxRow = session.getLength();
242
+ var startRow = row;
243
+ var re = /^\s*(?:\/\*|\/\/|--)#?(end)?region\b/;
244
+ var depth = 1;
245
+ while (++row < maxRow) {
246
+ line = session.getLine(row);
247
+ var m = re.exec(line);
248
+ if (!m)
249
+ continue;
250
+ if (m[1])
251
+ depth--;
252
+ else
253
+ depth++;
254
+ if (!depth)
255
+ break;
256
+ }
257
+ var endRow = row;
258
+ if (endRow > startRow) {
259
+ return new Range(startRow, startColumn, endRow, line.length);
260
+ }
261
+ };
262
+ }).call(FoldMode.prototype);
263
+
264
+ });
265
+
266
+ 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";
267
+ var oop = require("../../lib/oop");
268
+ var MixedFoldMode = require("./mixed").FoldMode;
269
+ var XmlFoldMode = require("./xml").FoldMode;
270
+ var CStyleFoldMode = require("./cstyle").FoldMode;
271
+ var FoldMode = exports.FoldMode = function (voidElements, optionalTags) {
272
+ MixedFoldMode.call(this, new XmlFoldMode(voidElements, optionalTags), {
273
+ "js-": new CStyleFoldMode(),
274
+ "css-": new CStyleFoldMode()
275
+ });
276
+ };
277
+ oop.inherits(FoldMode, MixedFoldMode);
278
+
279
+ });
280
+
281
+ ace.define("ace/mode/folding/nunjucks",["require","exports","module","ace/lib/oop","ace/mode/folding/mixed","ace/mode/folding/html","ace/range","ace/token_iterator"], function(require, exports, module){"use strict";
282
+ var oop = require("../../lib/oop");
283
+ var MixedFoldMode = require("./mixed").FoldMode;
284
+ var HtmlFoldMode = require("./html").FoldMode;
285
+ var Range = require("../../range").Range;
286
+ var TokenIterator = require("../../token_iterator").TokenIterator;
287
+ var FoldMode = exports.FoldMode = function (voidElements, optionalTags) {
288
+ HtmlFoldMode.call(this, voidElements, optionalTags);
289
+ };
290
+ oop.inherits(FoldMode, HtmlFoldMode);
291
+ (function () {
292
+ this.getFoldWidgetRangeBase = this.getFoldWidgetRange;
293
+ this.getFoldWidgetBase = this.getFoldWidget;
294
+ this.indentKeywords = {
295
+ "block": 1,
296
+ "if": 1,
297
+ "for": 1,
298
+ "asyncEach": 1,
299
+ "asyncAll": 1,
300
+ "macro": 1,
301
+ "filter": 1,
302
+ "call": 1,
303
+ "else": 0,
304
+ "elif": 0,
305
+ "set": 1,
306
+ "endblock": -1,
307
+ "endif": -1,
308
+ "endfor": -1,
309
+ "endeach": -1,
310
+ "endall": -1,
311
+ "endmacro": -1,
312
+ "endfilter": -1,
313
+ "endcall": -1,
314
+ "endset": -1
315
+ };
316
+ this.foldingStartMarkerNunjucks = /(?:\{%-?\s*)(?:(block|if|else|elif|for|asyncEach|asyncAll|macro|filter|call)\b.*)|(?:\bset(?:[^=]*))(?=%})/i;
317
+ this.foldingStopMarkerNunjucks = /(?:\{%-?\s*)(endblock|endif|endfor|endeach|endall|endmacro|endfilter|endcall|endset)\b.*(?=%})/i;
318
+ this.getFoldWidgetRange = function (session, foldStyle, row) {
319
+ var line = session.doc.getLine(row);
320
+ var offset = calculateOffset(this.foldingStartMarkerNunjucks, line);
321
+ if (offset) {
322
+ return this.nunjucksBlock(session, row, offset);
323
+ }
324
+ offset = calculateOffset(this.foldingStopMarkerNunjucks, line);
325
+ if (offset) {
326
+ return this.nunjucksBlock(session, row, offset);
327
+ }
328
+ return this.getFoldWidgetRangeBase(session, foldStyle, row);
329
+ };
330
+ function calculateOffset(regExp, line) {
331
+ var match = regExp.exec(line);
332
+ if (match) {
333
+ var keyword = match[0].includes("set") ? "set" : match[1].toLowerCase();
334
+ if (keyword) {
335
+ var offsetInMatch = match[0].toLowerCase().indexOf(keyword);
336
+ return match.index + offsetInMatch + 1;
337
+ }
338
+ }
339
+ }
340
+ this.getFoldWidget = function (session, foldStyle, row) {
341
+ var line = session.getLine(row);
342
+ var isStart = this.foldingStartMarkerNunjucks.test(line);
343
+ var isEnd = this.foldingStopMarkerNunjucks.test(line);
344
+ if (isStart && !isEnd) {
345
+ var offset = calculateOffset(this.foldingStartMarkerNunjucks, line);
346
+ if (offset) {
347
+ var type = session.getTokenAt(row, offset).type;
348
+ if (type === "keyword.control") {
349
+ return "start";
350
+ }
351
+ }
352
+ }
353
+ if (isEnd && !isStart && foldStyle === "markbeginend") {
354
+ var offset = calculateOffset(this.foldingStopMarkerNunjucks, line);
355
+ if (offset) {
356
+ var type = session.getTokenAt(row, offset).type;
357
+ if (type === "keyword.control") {
358
+ return "end";
359
+ }
360
+ }
361
+ }
362
+ return this.getFoldWidgetBase(session, foldStyle, row);
363
+ };
364
+ function getTokenPosition(stream, findStart) {
365
+ var token;
366
+ var currentIndex = stream.$tokenIndex;
367
+ var type = findStart ? "punctuation.begin" : "punctuation.end";
368
+ stream.step = findStart ? stream.stepBackward : stream.stepForward;
369
+ while (token = stream.step()) {
370
+ if (token.type !== type)
371
+ continue;
372
+ break;
373
+ }
374
+ if (!token)
375
+ return;
376
+ var pos = stream.getCurrentTokenPosition();
377
+ if (!findStart) {
378
+ pos.column = pos.column + token.value.length;
379
+ }
380
+ stream.$tokenIndex = currentIndex;
381
+ return pos;
382
+ }
383
+ this.nunjucksBlock = function (session, row, column) {
384
+ var stream = new TokenIterator(session, row, column);
385
+ var token = stream.getCurrentToken();
386
+ if (!token || token.type != "keyword.control")
387
+ return;
388
+ var val = token.value;
389
+ var stack = [val];
390
+ var dir = this.indentKeywords[val];
391
+ if (val === "else" || val === "elif") {
392
+ dir = 1;
393
+ }
394
+ if (!dir)
395
+ return;
396
+ var start = getTokenPosition(stream, dir === -1);
397
+ if (!token)
398
+ return;
399
+ stream.step = dir === -1 ? stream.stepBackward : stream.stepForward;
400
+ while (token = stream.step()) {
401
+ if (token.type !== "keyword.control")
402
+ continue;
403
+ var level = dir * this.indentKeywords[token.value];
404
+ if (token.value === "set") {
405
+ var tokenPos = stream.getCurrentTokenPosition();
406
+ var line = session.getLine(tokenPos.row).substring(tokenPos.column);
407
+ if (!/^[^=]*%}/.test(line)) {
408
+ continue;
409
+ }
410
+ }
411
+ if (level > 0) {
412
+ stack.unshift(token.value);
413
+ }
414
+ else if (level <= 0) {
415
+ stack.shift();
416
+ if (!stack.length)
417
+ break;
418
+ if (level === 0)
419
+ stack.unshift(token.value);
420
+ }
421
+ }
422
+ if (!token)
423
+ return null;
424
+ var end = getTokenPosition(stream, dir === 1);
425
+ return dir === 1 ? Range.fromPoints(start, end) : Range.fromPoints(end, start);
426
+ };
427
+ }).call(FoldMode.prototype);
428
+
429
+ });
430
+
431
+ 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";
432
+ var oop = require("../lib/oop");
433
+ var TextHighlightRules = require("./text_highlight_rules").TextHighlightRules;
434
+ var JsDocCommentHighlightRules = function () {
435
+ this.$rules = {
436
+ "start": [
437
+ {
438
+ token: ["comment.doc.tag", "comment.doc.text", "lparen.doc"],
439
+ regex: "(@(?:param|member|typedef|property|namespace|var|const|callback))(\\s*)({)",
440
+ push: [
441
+ {
442
+ token: "lparen.doc",
443
+ regex: "{",
444
+ push: [
445
+ {
446
+ include: "doc-syntax"
447
+ }, {
448
+ token: "rparen.doc",
449
+ regex: "}|(?=$)",
450
+ next: "pop"
451
+ }
452
+ ]
453
+ }, {
454
+ token: ["rparen.doc", "text.doc", "variable.parameter.doc", "lparen.doc", "variable.parameter.doc", "rparen.doc"],
455
+ regex: /(})(\s*)(?:([\w=:\/\.]+)|(?:(\[)([\w=:\/\.\-\'\" ]+)(\])))/,
456
+ next: "pop"
457
+ }, {
458
+ token: "rparen.doc",
459
+ regex: "}|(?=$)",
460
+ next: "pop"
461
+ }, {
462
+ include: "doc-syntax"
463
+ }, {
464
+ defaultToken: "text.doc"
465
+ }
466
+ ]
467
+ }, {
468
+ token: ["comment.doc.tag", "text.doc", "lparen.doc"],
469
+ regex: "(@(?:returns?|yields|type|this|suppress|public|protected|private|package|modifies|"
470
+ + "implements|external|exception|throws|enum|define|extends))(\\s*)({)",
471
+ push: [
472
+ {
473
+ token: "lparen.doc",
474
+ regex: "{",
475
+ push: [
476
+ {
477
+ include: "doc-syntax"
478
+ }, {
479
+ token: "rparen.doc",
480
+ regex: "}|(?=$)",
481
+ next: "pop"
482
+ }
483
+ ]
484
+ }, {
485
+ token: "rparen.doc",
486
+ regex: "}|(?=$)",
487
+ next: "pop"
488
+ }, {
489
+ include: "doc-syntax"
490
+ }, {
491
+ defaultToken: "text.doc"
492
+ }
493
+ ]
494
+ }, {
495
+ token: ["comment.doc.tag", "text.doc", "variable.parameter.doc"],
496
+ regex: "(@(?:alias|memberof|instance|module|name|lends|namespace|external|this|template|"
497
+ + "requires|param|implements|function|extends|typedef|mixes|constructor|var|"
498
+ + "memberof\\!|event|listens|exports|class|constructs|interface|emits|fires|"
499
+ + "throws|const|callback|borrows|augments))(\\s+)(\\w[\\w#\.:\/~\"\\-]*)?"
500
+ }, {
501
+ token: ["comment.doc.tag", "text.doc", "variable.parameter.doc"],
502
+ regex: "(@method)(\\s+)(\\w[\\w\.\\(\\)]*)"
503
+ }, {
504
+ token: "comment.doc.tag",
505
+ regex: "@access\\s+(?:private|public|protected)"
506
+ }, {
507
+ token: "comment.doc.tag",
508
+ regex: "@kind\\s+(?:class|constant|event|external|file|function|member|mixin|module|namespace|typedef)"
509
+ }, {
510
+ token: "comment.doc.tag",
511
+ regex: "@\\w+(?=\\s|$)"
512
+ },
513
+ JsDocCommentHighlightRules.getTagRule(),
514
+ {
515
+ defaultToken: "comment.doc.body",
516
+ caseInsensitive: true
517
+ }
518
+ ],
519
+ "doc-syntax": [{
520
+ token: "operator.doc",
521
+ regex: /[|:]/
522
+ }, {
523
+ token: "paren.doc",
524
+ regex: /[\[\]]/
525
+ }]
526
+ };
527
+ this.normalizeRules();
528
+ };
529
+ oop.inherits(JsDocCommentHighlightRules, TextHighlightRules);
530
+ JsDocCommentHighlightRules.getTagRule = function (start) {
531
+ return {
532
+ token: "comment.doc.tag.storage.type",
533
+ regex: "\\b(?:TODO|FIXME|XXX|HACK)\\b"
534
+ };
535
+ };
536
+ JsDocCommentHighlightRules.getStartRule = function (start) {
537
+ return {
538
+ token: "comment.doc", // doc comment
539
+ regex: /\/\*\*(?!\/)/,
540
+ next: start
541
+ };
542
+ };
543
+ JsDocCommentHighlightRules.getEndRule = function (start) {
544
+ return {
545
+ token: "comment.doc", // closing comment
546
+ regex: "\\*\\/",
547
+ next: start
548
+ };
549
+ };
550
+ exports.JsDocCommentHighlightRules = JsDocCommentHighlightRules;
551
+
552
+ });
553
+
554
+ 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";
555
+ var oop = require("../lib/oop");
556
+ var DocCommentHighlightRules = require("./jsdoc_comment_highlight_rules").JsDocCommentHighlightRules;
557
+ var TextHighlightRules = require("./text_highlight_rules").TextHighlightRules;
558
+ var identifierRe = "[a-zA-Z\\$_\u00a1-\uffff][a-zA-Z\\d\\$_\u00a1-\uffff]*";
559
+ var JavaScriptHighlightRules = function (options) {
560
+ var keywords = {
561
+ "variable.language": "Array|Boolean|Date|Function|Iterator|Number|Object|RegExp|String|Proxy|Symbol|" + // Constructors
562
+ "Namespace|QName|XML|XMLList|" + // E4X
563
+ "ArrayBuffer|Float32Array|Float64Array|Int16Array|Int32Array|Int8Array|" +
564
+ "Uint16Array|Uint32Array|Uint8Array|Uint8ClampedArray|" +
565
+ "Error|EvalError|InternalError|RangeError|ReferenceError|StopIteration|" + // Errors
566
+ "SyntaxError|TypeError|URIError|" +
567
+ "decodeURI|decodeURIComponent|encodeURI|encodeURIComponent|eval|isFinite|" + // Non-constructor functions
568
+ "isNaN|parseFloat|parseInt|" +
569
+ "JSON|Math|" + // Other
570
+ "this|arguments|prototype|window|document", // Pseudo
571
+ "keyword": "const|yield|import|get|set|async|await|" +
572
+ "break|case|catch|continue|default|delete|do|else|finally|for|" +
573
+ "if|in|of|instanceof|new|return|switch|throw|try|typeof|let|var|while|with|debugger|" +
574
+ "__parent__|__count__|escape|unescape|with|__proto__|" +
575
+ "class|enum|extends|super|export|implements|private|public|interface|package|protected|static|constructor",
576
+ "storage.type": "const|let|var|function",
577
+ "constant.language": "null|Infinity|NaN|undefined",
578
+ "support.function": "alert",
579
+ "constant.language.boolean": "true|false"
580
+ };
581
+ var keywordMapper = this.createKeywordMapper(keywords, "identifier");
582
+ var kwBeforeRe = "case|do|else|finally|in|instanceof|return|throw|try|typeof|yield|void";
583
+ var escapedRe = "\\\\(?:x[0-9a-fA-F]{2}|" + // hex
584
+ "u[0-9a-fA-F]{4}|" + // unicode
585
+ "u{[0-9a-fA-F]{1,6}}|" + // es6 unicode
586
+ "[0-2][0-7]{0,2}|" + // oct
587
+ "3[0-7][0-7]?|" + // oct
588
+ "[4-7][0-7]?|" + //oct
589
+ ".)";
590
+ var anonymousFunctionRe = "(function)(\\s*)(\\*?)";
591
+ var functionCallStartRule = {
592
+ token: ["identifier", "text", "paren.lparen"],
593
+ regex: "(\\b(?!" + Object.values(keywords).join("|") + "\\b)" + identifierRe + ")(\\s*)(\\()"
594
+ };
595
+ this.$rules = {
596
+ "no_regex": [
597
+ DocCommentHighlightRules.getStartRule("doc-start"),
598
+ comments("no_regex"),
599
+ functionCallStartRule,
600
+ {
601
+ token: "string",
602
+ regex: "'(?=.)",
603
+ next: "qstring"
604
+ }, {
605
+ token: "string",
606
+ regex: '"(?=.)',
607
+ next: "qqstring"
608
+ }, {
609
+ include: "numeric_constants"
610
+ }, {
611
+ token: [
612
+ "entity.name.function", "text", "keyword.operator", "text", "storage.type",
613
+ "text", "storage.type", "text", "paren.lparen"
614
+ ],
615
+ regex: "(" + identifierRe + ")(\\s*)(=)(\\s*)" + anonymousFunctionRe + "(\\s*)(\\()",
616
+ next: "function_arguments"
617
+ }, {
618
+ token: [
619
+ "storage.type", "text", "storage.type", "text", "text", "entity.name.function", "text", "paren.lparen"
620
+ ],
621
+ regex: "(function)(?:(?:(\\s*)(\\*)(\\s*))|(\\s+))(" + identifierRe + ")(\\s*)(\\()",
622
+ next: "function_arguments"
623
+ }, {
624
+ token: [
625
+ "entity.name.function", "text", "punctuation.operator",
626
+ "text", "storage.type", "text", "storage.type", "text", "paren.lparen"
627
+ ],
628
+ regex: "(" + identifierRe + ")(\\s*)(:)(\\s*)" + anonymousFunctionRe + "(\\s*)(\\()",
629
+ next: "function_arguments"
630
+ }, {
631
+ token: [
632
+ "text", "text", "storage.type", "text", "storage.type", "text", "paren.lparen"
633
+ ],
634
+ regex: "(:)(\\s*)" + anonymousFunctionRe + "(\\s*)(\\()",
635
+ next: "function_arguments"
636
+ }, {
637
+ token: "keyword",
638
+ regex: "from(?=\\s*('|\"))"
639
+ }, {
640
+ token: "keyword",
641
+ regex: "(?:" + kwBeforeRe + ")\\b",
642
+ next: "start"
643
+ }, {
644
+ token: "support.constant",
645
+ regex: /that\b/
646
+ }, {
647
+ token: ["storage.type", "punctuation.operator", "support.function.firebug"],
648
+ regex: /(console)(\.)(warn|info|log|error|debug|time|trace|timeEnd|assert)\b/
649
+ }, {
650
+ token: keywordMapper,
651
+ regex: identifierRe
652
+ }, {
653
+ token: "punctuation.operator",
654
+ regex: /[.](?![.])/,
655
+ next: "property"
656
+ }, {
657
+ token: "storage.type",
658
+ regex: /=>/,
659
+ next: "start"
660
+ }, {
661
+ token: "keyword.operator",
662
+ regex: /--|\+\+|\.{3}|===|==|=|!=|!==|<+=?|>+=?|!|&&|\|\||\?:|[!$%&*+\-~\/^]=?/,
663
+ next: "start"
664
+ }, {
665
+ token: "punctuation.operator",
666
+ regex: /[?:,;.]/,
667
+ next: "start"
668
+ }, {
669
+ token: "paren.lparen",
670
+ regex: /[\[({]/,
671
+ next: "start"
672
+ }, {
673
+ token: "paren.rparen",
674
+ regex: /[\])}]/
675
+ }, {
676
+ token: "comment",
677
+ regex: /^#!.*$/
678
+ }
679
+ ],
680
+ property: [{
681
+ token: "text",
682
+ regex: "\\s+"
683
+ }, {
684
+ token: "keyword.operator",
685
+ regex: /=/
686
+ }, {
687
+ token: [
688
+ "storage.type", "text", "storage.type", "text", "paren.lparen"
689
+ ],
690
+ regex: anonymousFunctionRe + "(\\s*)(\\()",
691
+ next: "function_arguments"
692
+ }, {
693
+ token: [
694
+ "storage.type", "text", "storage.type", "text", "text", "entity.name.function", "text", "paren.lparen"
695
+ ],
696
+ regex: "(function)(?:(?:(\\s*)(\\*)(\\s*))|(\\s+))(\\w+)(\\s*)(\\()",
697
+ next: "function_arguments"
698
+ }, {
699
+ token: "punctuation.operator",
700
+ regex: /[.](?![.])/
701
+ }, {
702
+ token: "support.function",
703
+ regex: "prototype"
704
+ }, {
705
+ token: "support.function",
706
+ 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(?=\()/
707
+ }, {
708
+ token: "support.function.dom",
709
+ 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(?=\()/
710
+ }, {
711
+ token: "support.constant",
712
+ 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/
713
+ }, {
714
+ token: "identifier",
715
+ regex: identifierRe
716
+ }, {
717
+ regex: "",
718
+ token: "empty",
719
+ next: "no_regex"
720
+ }
721
+ ],
722
+ "start": [
723
+ DocCommentHighlightRules.getStartRule("doc-start"),
724
+ comments("start"),
725
+ {
726
+ token: "string.regexp",
727
+ regex: "\\/",
728
+ next: "regex"
729
+ }, {
730
+ token: "text",
731
+ regex: "\\s+|^$",
732
+ next: "start"
733
+ }, {
734
+ token: "empty",
735
+ regex: "",
736
+ next: "no_regex"
737
+ }
738
+ ],
739
+ "regex": [
740
+ {
741
+ token: "regexp.keyword.operator",
742
+ regex: "\\\\(?:u[\\da-fA-F]{4}|x[\\da-fA-F]{2}|.)"
743
+ }, {
744
+ token: "string.regexp",
745
+ regex: "/[sxngimy]*",
746
+ next: "no_regex"
747
+ }, {
748
+ token: "invalid",
749
+ regex: /\{\d+\b,?\d*\}[+*]|[+*$^?][+*]|[$^][?]|\?{3,}/
750
+ }, {
751
+ token: "constant.language.escape",
752
+ regex: /\(\?[:=!]|\)|\{\d+\b,?\d*\}|[+*]\?|[()$^+*?.]/
753
+ }, {
754
+ token: "constant.language.delimiter",
755
+ regex: /\|/
756
+ }, {
757
+ token: "constant.language.escape",
758
+ regex: /\[\^?/,
759
+ next: "regex_character_class"
760
+ }, {
761
+ token: "empty",
762
+ regex: "$",
763
+ next: "no_regex"
764
+ }, {
765
+ defaultToken: "string.regexp"
766
+ }
767
+ ],
768
+ "regex_character_class": [
769
+ {
770
+ token: "regexp.charclass.keyword.operator",
771
+ regex: "\\\\(?:u[\\da-fA-F]{4}|x[\\da-fA-F]{2}|.)"
772
+ }, {
773
+ token: "constant.language.escape",
774
+ regex: "]",
775
+ next: "regex"
776
+ }, {
777
+ token: "constant.language.escape",
778
+ regex: "-"
779
+ }, {
780
+ token: "empty",
781
+ regex: "$",
782
+ next: "no_regex"
783
+ }, {
784
+ defaultToken: "string.regexp.charachterclass"
785
+ }
786
+ ],
787
+ "default_parameter": [
788
+ {
789
+ token: "string",
790
+ regex: "'(?=.)",
791
+ push: [
792
+ {
793
+ token: "string",
794
+ regex: "'|$",
795
+ next: "pop"
796
+ }, {
797
+ include: "qstring"
798
+ }
799
+ ]
800
+ }, {
801
+ token: "string",
802
+ regex: '"(?=.)',
803
+ push: [
804
+ {
805
+ token: "string",
806
+ regex: '"|$',
807
+ next: "pop"
808
+ }, {
809
+ include: "qqstring"
810
+ }
811
+ ]
812
+ }, {
813
+ token: "constant.language",
814
+ regex: "null|Infinity|NaN|undefined"
815
+ }, {
816
+ include: "numeric_constants"
817
+ }, {
818
+ token: "punctuation.operator",
819
+ regex: ",",
820
+ next: "function_arguments"
821
+ }, {
822
+ token: "text",
823
+ regex: "\\s+"
824
+ }, {
825
+ token: "punctuation.operator",
826
+ regex: "$"
827
+ }, {
828
+ token: "empty",
829
+ regex: "",
830
+ next: "no_regex"
831
+ }
832
+ ],
833
+ "function_arguments": [
834
+ comments("function_arguments"),
835
+ {
836
+ token: "variable.parameter",
837
+ regex: identifierRe
838
+ }, {
839
+ token: "punctuation.operator",
840
+ regex: ","
841
+ }, {
842
+ token: "text",
843
+ regex: "\\s+"
844
+ }, {
845
+ token: "punctuation.operator",
846
+ regex: "$"
847
+ }, {
848
+ token: "empty",
849
+ regex: "",
850
+ next: "no_regex"
851
+ }
852
+ ],
853
+ "qqstring": [
854
+ {
855
+ token: "constant.language.escape",
856
+ regex: escapedRe
857
+ }, {
858
+ token: "string",
859
+ regex: "\\\\$",
860
+ consumeLineEnd: true
861
+ }, {
862
+ token: "string",
863
+ regex: '"|$',
864
+ next: "no_regex"
865
+ }, {
866
+ defaultToken: "string"
867
+ }
868
+ ],
869
+ "qstring": [
870
+ {
871
+ token: "constant.language.escape",
872
+ regex: escapedRe
873
+ }, {
874
+ token: "string",
875
+ regex: "\\\\$",
876
+ consumeLineEnd: true
877
+ }, {
878
+ token: "string",
879
+ regex: "'|$",
880
+ next: "no_regex"
881
+ }, {
882
+ defaultToken: "string"
883
+ }
884
+ ],
885
+ "numeric_constants": [
886
+ {
887
+ token: "constant.numeric", // hexadecimal, octal and binary
888
+ regex: /0(?:[xX][0-9a-fA-F_]+|[oO][0-7_]+|[bB][01_]+)\b/
889
+ }, {
890
+ token: "constant.numeric", // decimal integers and floats
891
+ regex: /(?:\d[\d_]*(?:\.[\d_]*)?|\.\d[\d_]*)(?:[eE][+-]?\d+\b)?/
892
+ },
893
+ ]
894
+ };
895
+ if (!options || !options.noES6) {
896
+ this.$rules.no_regex.unshift({
897
+ regex: "[{}]", onMatch: function (val, state, stack) {
898
+ this.next = val == "{" ? this.nextState : "";
899
+ if (val == "{" && stack.length) {
900
+ stack.unshift("start", state);
901
+ }
902
+ else if (val == "}" && stack.length) {
903
+ stack.shift();
904
+ this.next = stack.shift();
905
+ if (this.next.indexOf("string") != -1 || this.next.indexOf("jsx") != -1)
906
+ return "paren.quasi.end";
907
+ }
908
+ return val == "{" ? "paren.lparen" : "paren.rparen";
909
+ },
910
+ nextState: "start"
911
+ }, {
912
+ token: "string.quasi.start",
913
+ regex: /`/,
914
+ push: [{
915
+ token: "constant.language.escape",
916
+ regex: escapedRe
917
+ }, {
918
+ token: "paren.quasi.start",
919
+ regex: /\${/,
920
+ push: "start"
921
+ }, {
922
+ token: "string.quasi.end",
923
+ regex: /`/,
924
+ next: "pop"
925
+ }, {
926
+ defaultToken: "string.quasi"
927
+ }]
928
+ }, {
929
+ token: ["variable.parameter", "text"],
930
+ regex: "(" + identifierRe + ")(\\s*)(?=\\=>)"
931
+ }, {
932
+ token: "paren.lparen",
933
+ regex: "(\\()(?=[^\\(]+\\s*=>)",
934
+ next: "function_arguments"
935
+ }, {
936
+ token: "variable.language",
937
+ regex: "(?:(?:(?:Weak)?(?:Set|Map))|Promise)\\b"
938
+ });
939
+ this.$rules["function_arguments"].unshift({
940
+ token: "keyword.operator",
941
+ regex: "=",
942
+ next: "default_parameter"
943
+ }, {
944
+ token: "keyword.operator",
945
+ regex: "\\.{3}"
946
+ });
947
+ this.$rules["property"].unshift({
948
+ token: "support.function",
949
+ regex: "(findIndex|repeat|startsWith|endsWith|includes|isSafeInteger|trunc|cbrt|log2|log10|sign|then|catch|"
950
+ + "finally|resolve|reject|race|any|all|allSettled|keys|entries|isInteger)\\b(?=\\()"
951
+ }, {
952
+ token: "constant.language",
953
+ regex: "(?:MAX_SAFE_INTEGER|MIN_SAFE_INTEGER|EPSILON)\\b"
954
+ });
955
+ if (!options || options.jsx != false)
956
+ JSX.call(this);
957
+ }
958
+ this.embedRules(DocCommentHighlightRules, "doc-", [DocCommentHighlightRules.getEndRule("no_regex")]);
959
+ this.normalizeRules();
960
+ };
961
+ oop.inherits(JavaScriptHighlightRules, TextHighlightRules);
962
+ function JSX() {
963
+ var tagRegex = identifierRe.replace("\\d", "\\d\\-");
964
+ var jsxTag = {
965
+ onMatch: function (val, state, stack) {
966
+ var offset = val.charAt(1) == "/" ? 2 : 1;
967
+ if (offset == 1) {
968
+ if (state != this.nextState)
969
+ stack.unshift(this.next, this.nextState, 0);
970
+ else
971
+ stack.unshift(this.next);
972
+ stack[2]++;
973
+ }
974
+ else if (offset == 2) {
975
+ if (state == this.nextState) {
976
+ stack[1]--;
977
+ if (!stack[1] || stack[1] < 0) {
978
+ stack.shift();
979
+ stack.shift();
980
+ }
981
+ }
982
+ }
983
+ return [{
984
+ type: "meta.tag.punctuation." + (offset == 1 ? "" : "end-") + "tag-open.xml",
985
+ value: val.slice(0, offset)
986
+ }, {
987
+ type: "meta.tag.tag-name.xml",
988
+ value: val.substr(offset)
989
+ }];
990
+ },
991
+ regex: "</?(?:" + tagRegex + "|(?=>))",
992
+ next: "jsxAttributes",
993
+ nextState: "jsx"
994
+ };
995
+ this.$rules.start.unshift(jsxTag);
996
+ var jsxJsRule = {
997
+ regex: "{",
998
+ token: "paren.quasi.start",
999
+ push: "start"
1000
+ };
1001
+ this.$rules.jsx = [
1002
+ jsxJsRule,
1003
+ jsxTag,
1004
+ { include: "reference" }, { defaultToken: "string.xml" }
1005
+ ];
1006
+ this.$rules.jsxAttributes = [{
1007
+ token: "meta.tag.punctuation.tag-close.xml",
1008
+ regex: "/?>",
1009
+ onMatch: function (value, currentState, stack) {
1010
+ if (currentState == stack[0])
1011
+ stack.shift();
1012
+ if (value.length == 2) {
1013
+ if (stack[0] == this.nextState)
1014
+ stack[1]--;
1015
+ if (!stack[1] || stack[1] < 0) {
1016
+ stack.splice(0, 2);
1017
+ }
1018
+ }
1019
+ this.next = stack[0] || "start";
1020
+ return [{ type: this.token, value: value }];
1021
+ },
1022
+ nextState: "jsx"
1023
+ },
1024
+ jsxJsRule,
1025
+ comments("jsxAttributes"),
1026
+ {
1027
+ token: "entity.other.attribute-name.xml",
1028
+ regex: tagRegex
1029
+ }, {
1030
+ token: "keyword.operator.attribute-equals.xml",
1031
+ regex: "="
1032
+ }, {
1033
+ token: "text.tag-whitespace.xml",
1034
+ regex: "\\s+"
1035
+ }, {
1036
+ token: "string.attribute-value.xml",
1037
+ regex: "'",
1038
+ stateName: "jsx_attr_q",
1039
+ push: [
1040
+ { token: "string.attribute-value.xml", regex: "'", next: "pop" },
1041
+ { include: "reference" },
1042
+ { defaultToken: "string.attribute-value.xml" }
1043
+ ]
1044
+ }, {
1045
+ token: "string.attribute-value.xml",
1046
+ regex: '"',
1047
+ stateName: "jsx_attr_qq",
1048
+ push: [
1049
+ { token: "string.attribute-value.xml", regex: '"', next: "pop" },
1050
+ { include: "reference" },
1051
+ { defaultToken: "string.attribute-value.xml" }
1052
+ ]
1053
+ },
1054
+ jsxTag
1055
+ ];
1056
+ this.$rules.reference = [{
1057
+ token: "constant.language.escape.reference.xml",
1058
+ regex: "(?:&#[0-9]+;)|(?:&#x[0-9a-fA-F]+;)|(?:&[a-zA-Z0-9_:\\.-]+;)"
1059
+ }];
1060
+ }
1061
+ function comments(next) {
1062
+ return [
1063
+ {
1064
+ token: "comment", // multi line comment
1065
+ regex: /\/\*/,
1066
+ next: [
1067
+ DocCommentHighlightRules.getTagRule(),
1068
+ { token: "comment", regex: "\\*\\/", next: next || "pop" },
1069
+ { defaultToken: "comment", caseInsensitive: true }
1070
+ ]
1071
+ }, {
1072
+ token: "comment",
1073
+ regex: "\\/\\/",
1074
+ next: [
1075
+ DocCommentHighlightRules.getTagRule(),
1076
+ { token: "comment", regex: "$|^", next: next || "pop" },
1077
+ { defaultToken: "comment", caseInsensitive: true }
1078
+ ]
1079
+ }
1080
+ ];
1081
+ }
1082
+ exports.JavaScriptHighlightRules = JavaScriptHighlightRules;
1083
+
1084
+ });
1085
+
1086
+ ace.define("ace/mode/matching_brace_outdent",["require","exports","module","ace/range"], function(require, exports, module){"use strict";
1087
+ var Range = require("../range").Range;
1088
+ var MatchingBraceOutdent = function () { };
1089
+ (function () {
1090
+ this.checkOutdent = function (line, input) {
1091
+ if (!/^\s+$/.test(line))
1092
+ return false;
1093
+ return /^\s*\}/.test(input);
1094
+ };
1095
+ this.autoOutdent = function (doc, row) {
1096
+ var line = doc.getLine(row);
1097
+ var match = line.match(/^(\s*\})/);
1098
+ if (!match)
1099
+ return 0;
1100
+ var column = match[1].length;
1101
+ var openBracePos = doc.findMatchingBracket({ row: row, column: column });
1102
+ if (!openBracePos || openBracePos.row == row)
1103
+ return 0;
1104
+ var indent = this.$getIndent(doc.getLine(openBracePos.row));
1105
+ doc.replace(new Range(row, 0, row, column - 1), indent);
1106
+ };
1107
+ this.$getIndent = function (line) {
1108
+ return line.match(/^\s*/)[0];
1109
+ };
1110
+ }).call(MatchingBraceOutdent.prototype);
1111
+ exports.MatchingBraceOutdent = MatchingBraceOutdent;
1112
+
1113
+ });
1114
+
1115
+ ace.define("ace/mode/behaviour/xml",["require","exports","module","ace/lib/oop","ace/mode/behaviour","ace/token_iterator"], function(require, exports, module){"use strict";
1116
+ var oop = require("../../lib/oop");
1117
+ var Behaviour = require("../behaviour").Behaviour;
1118
+ var TokenIterator = require("../../token_iterator").TokenIterator;
1119
+ function is(token, type) {
1120
+ return token && token.type.lastIndexOf(type + ".xml") > -1;
1121
+ }
1122
+ var XmlBehaviour = function () {
1123
+ this.add("string_dquotes", "insertion", function (state, action, editor, session, text) {
1124
+ if (text == '"' || text == "'") {
1125
+ var quote = text;
1126
+ var selected = session.doc.getTextRange(editor.getSelectionRange());
1127
+ if (selected !== "" && selected !== "'" && selected != '"' && editor.getWrapBehavioursEnabled()) {
1128
+ return {
1129
+ text: quote + selected + quote,
1130
+ selection: false
1131
+ };
1132
+ }
1133
+ var cursor = editor.getCursorPosition();
1134
+ var line = session.doc.getLine(cursor.row);
1135
+ var rightChar = line.substring(cursor.column, cursor.column + 1);
1136
+ var iterator = new TokenIterator(session, cursor.row, cursor.column);
1137
+ var token = iterator.getCurrentToken();
1138
+ if (rightChar == quote && (is(token, "attribute-value") || is(token, "string"))) {
1139
+ return {
1140
+ text: "",
1141
+ selection: [1, 1]
1142
+ };
1143
+ }
1144
+ if (!token)
1145
+ token = iterator.stepBackward();
1146
+ if (!token)
1147
+ return;
1148
+ while (is(token, "tag-whitespace") || is(token, "whitespace")) {
1149
+ token = iterator.stepBackward();
1150
+ }
1151
+ var rightSpace = !rightChar || rightChar.match(/\s/);
1152
+ if (is(token, "attribute-equals") && (rightSpace || rightChar == '>') || (is(token, "decl-attribute-equals") && (rightSpace || rightChar == '?'))) {
1153
+ return {
1154
+ text: quote + quote,
1155
+ selection: [1, 1]
1156
+ };
1157
+ }
1158
+ }
1159
+ });
1160
+ this.add("string_dquotes", "deletion", function (state, action, editor, session, range) {
1161
+ var selected = session.doc.getTextRange(range);
1162
+ if (!range.isMultiLine() && (selected == '"' || selected == "'")) {
1163
+ var line = session.doc.getLine(range.start.row);
1164
+ var rightChar = line.substring(range.start.column + 1, range.start.column + 2);
1165
+ if (rightChar == selected) {
1166
+ range.end.column++;
1167
+ return range;
1168
+ }
1169
+ }
1170
+ });
1171
+ this.add("autoclosing", "insertion", function (state, action, editor, session, text) {
1172
+ if (text == '>') {
1173
+ var position = editor.getSelectionRange().start;
1174
+ var iterator = new TokenIterator(session, position.row, position.column);
1175
+ var token = iterator.getCurrentToken() || iterator.stepBackward();
1176
+ if (!token || !(is(token, "tag-name") || is(token, "tag-whitespace") || is(token, "attribute-name") || is(token, "attribute-equals") || is(token, "attribute-value")))
1177
+ return;
1178
+ if (is(token, "reference.attribute-value"))
1179
+ return;
1180
+ if (is(token, "attribute-value")) {
1181
+ var tokenEndColumn = iterator.getCurrentTokenColumn() + token.value.length;
1182
+ if (position.column < tokenEndColumn)
1183
+ return;
1184
+ if (position.column == tokenEndColumn) {
1185
+ var nextToken = iterator.stepForward();
1186
+ if (nextToken && is(nextToken, "attribute-value"))
1187
+ return;
1188
+ iterator.stepBackward();
1189
+ }
1190
+ }
1191
+ if (/^\s*>/.test(session.getLine(position.row).slice(position.column)))
1192
+ return;
1193
+ while (!is(token, "tag-name")) {
1194
+ token = iterator.stepBackward();
1195
+ if (token.value == "<") {
1196
+ token = iterator.stepForward();
1197
+ break;
1198
+ }
1199
+ }
1200
+ var tokenRow = iterator.getCurrentTokenRow();
1201
+ var tokenColumn = iterator.getCurrentTokenColumn();
1202
+ if (is(iterator.stepBackward(), "end-tag-open"))
1203
+ return;
1204
+ var element = token.value;
1205
+ if (tokenRow == position.row)
1206
+ element = element.substring(0, position.column - tokenColumn);
1207
+ if (this.voidElements && this.voidElements.hasOwnProperty(element.toLowerCase()))
1208
+ return;
1209
+ return {
1210
+ text: ">" + "</" + element + ">",
1211
+ selection: [1, 1]
1212
+ };
1213
+ }
1214
+ });
1215
+ this.add("autoindent", "insertion", function (state, action, editor, session, text) {
1216
+ if (text == "\n") {
1217
+ var cursor = editor.getCursorPosition();
1218
+ var line = session.getLine(cursor.row);
1219
+ var iterator = new TokenIterator(session, cursor.row, cursor.column);
1220
+ var token = iterator.getCurrentToken();
1221
+ if (is(token, "") && token.type.indexOf("tag-close") !== -1) {
1222
+ if (token.value == "/>")
1223
+ return;
1224
+ while (token && token.type.indexOf("tag-name") === -1) {
1225
+ token = iterator.stepBackward();
1226
+ }
1227
+ if (!token) {
1228
+ return;
1229
+ }
1230
+ var tag = token.value;
1231
+ var row = iterator.getCurrentTokenRow();
1232
+ token = iterator.stepBackward();
1233
+ if (!token || token.type.indexOf("end-tag") !== -1) {
1234
+ return;
1235
+ }
1236
+ if (this.voidElements && !this.voidElements[tag] || !this.voidElements) {
1237
+ var nextToken = session.getTokenAt(cursor.row, cursor.column + 1);
1238
+ var line = session.getLine(row);
1239
+ var nextIndent = this.$getIndent(line);
1240
+ var indent = nextIndent + session.getTabString();
1241
+ if (nextToken && nextToken.value === "</") {
1242
+ return {
1243
+ text: "\n" + indent + "\n" + nextIndent,
1244
+ selection: [1, indent.length, 1, indent.length]
1245
+ };
1246
+ }
1247
+ else {
1248
+ return {
1249
+ text: "\n" + indent
1250
+ };
1251
+ }
1252
+ }
1253
+ }
1254
+ }
1255
+ });
1256
+ };
1257
+ oop.inherits(XmlBehaviour, Behaviour);
1258
+ exports.XmlBehaviour = XmlBehaviour;
1259
+
1260
+ });
1261
+
1262
+ 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";
1263
+ var oop = require("../../lib/oop");
1264
+ var TokenIterator = require("../../token_iterator").TokenIterator;
1265
+ var CstyleBehaviour = require("../behaviour/cstyle").CstyleBehaviour;
1266
+ var XmlBehaviour = require("../behaviour/xml").XmlBehaviour;
1267
+ var JavaScriptBehaviour = function () {
1268
+ var xmlBehaviours = new XmlBehaviour({ closeCurlyBraces: true }).getBehaviours();
1269
+ this.addBehaviours(xmlBehaviours);
1270
+ this.inherit(CstyleBehaviour);
1271
+ this.add("autoclosing-fragment", "insertion", function (state, action, editor, session, text) {
1272
+ if (text == '>') {
1273
+ var position = editor.getSelectionRange().start;
1274
+ var iterator = new TokenIterator(session, position.row, position.column);
1275
+ var token = iterator.getCurrentToken() || iterator.stepBackward();
1276
+ if (!token)
1277
+ return;
1278
+ if (token.value == '<') {
1279
+ return {
1280
+ text: "></>",
1281
+ selection: [1, 1]
1282
+ };
1283
+ }
1284
+ }
1285
+ });
1286
+ };
1287
+ oop.inherits(JavaScriptBehaviour, CstyleBehaviour);
1288
+ exports.JavaScriptBehaviour = JavaScriptBehaviour;
1289
+
1290
+ });
1291
+
1292
+ 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";
1293
+ var oop = require("../../lib/oop");
1294
+ var XmlFoldMode = require("./xml").FoldMode;
1295
+ var CFoldMode = require("./cstyle").FoldMode;
1296
+ var FoldMode = exports.FoldMode = function (commentRegex) {
1297
+ if (commentRegex) {
1298
+ this.foldingStartMarker = new RegExp(this.foldingStartMarker.source.replace(/\|[^|]*?$/, "|" + commentRegex.start));
1299
+ this.foldingStopMarker = new RegExp(this.foldingStopMarker.source.replace(/\|[^|]*?$/, "|" + commentRegex.end));
1300
+ }
1301
+ this.xmlFoldMode = new XmlFoldMode();
1302
+ };
1303
+ oop.inherits(FoldMode, CFoldMode);
1304
+ (function () {
1305
+ this.getFoldWidgetRangeBase = this.getFoldWidgetRange;
1306
+ this.getFoldWidgetBase = this.getFoldWidget;
1307
+ this.getFoldWidget = function (session, foldStyle, row) {
1308
+ var fw = this.getFoldWidgetBase(session, foldStyle, row);
1309
+ if (!fw) {
1310
+ return this.xmlFoldMode.getFoldWidget(session, foldStyle, row);
1311
+ }
1312
+ return fw;
1313
+ };
1314
+ this.getFoldWidgetRange = function (session, foldStyle, row, forceMultiline) {
1315
+ var range = this.getFoldWidgetRangeBase(session, foldStyle, row, forceMultiline);
1316
+ if (range)
1317
+ return range;
1318
+ return this.xmlFoldMode.getFoldWidgetRange(session, foldStyle, row);
1319
+ };
1320
+ }).call(FoldMode.prototype);
1321
+
1322
+ });
1323
+
1324
+ 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";
1325
+ var oop = require("../lib/oop");
1326
+ var TextMode = require("./text").Mode;
1327
+ var JavaScriptHighlightRules = require("./javascript_highlight_rules").JavaScriptHighlightRules;
1328
+ var MatchingBraceOutdent = require("./matching_brace_outdent").MatchingBraceOutdent;
1329
+ var WorkerClient = require("../worker/worker_client").WorkerClient;
1330
+ var JavaScriptBehaviour = require("./behaviour/javascript").JavaScriptBehaviour;
1331
+ var JavaScriptFoldMode = require("./folding/javascript").FoldMode;
1332
+ var Mode = function () {
1333
+ this.HighlightRules = JavaScriptHighlightRules;
1334
+ this.$outdent = new MatchingBraceOutdent();
1335
+ this.$behaviour = new JavaScriptBehaviour();
1336
+ this.foldingRules = new JavaScriptFoldMode();
1337
+ };
1338
+ oop.inherits(Mode, TextMode);
1339
+ (function () {
1340
+ this.lineCommentStart = "//";
1341
+ this.blockComment = { start: "/*", end: "*/" };
1342
+ this.$quotes = { '"': '"', "'": "'", "`": "`" };
1343
+ this.$pairQuotesAfter = {
1344
+ "`": /\w/
1345
+ };
1346
+ this.getNextLineIndent = function (state, line, tab) {
1347
+ var indent = this.$getIndent(line);
1348
+ var tokenizedLine = this.getTokenizer().getLineTokens(line, state);
1349
+ var tokens = tokenizedLine.tokens;
1350
+ var endState = tokenizedLine.state;
1351
+ if (tokens.length && tokens[tokens.length - 1].type == "comment") {
1352
+ return indent;
1353
+ }
1354
+ if (state == "start" || state == "no_regex") {
1355
+ var match = line.match(/^.*(?:\bcase\b.*:|[\{\(\[])\s*$/);
1356
+ if (match) {
1357
+ indent += tab;
1358
+ }
1359
+ }
1360
+ else if (state == "doc-start") {
1361
+ if (endState == "start" || endState == "no_regex") {
1362
+ return "";
1363
+ }
1364
+ }
1365
+ return indent;
1366
+ };
1367
+ this.checkOutdent = function (state, line, input) {
1368
+ return this.$outdent.checkOutdent(line, input);
1369
+ };
1370
+ this.autoOutdent = function (state, doc, row) {
1371
+ this.$outdent.autoOutdent(doc, row);
1372
+ };
1373
+ this.createWorker = function (session) {
1374
+ var worker = new WorkerClient(["ace"], "ace/mode/javascript_worker", "JavaScriptWorker");
1375
+ worker.attachToDocument(session.getDocument());
1376
+ worker.on("annotate", function (results) {
1377
+ session.setAnnotations(results.data);
1378
+ });
1379
+ worker.on("terminate", function () {
1380
+ session.clearAnnotations();
1381
+ });
1382
+ return worker;
1383
+ };
1384
+ this.$id = "ace/mode/javascript";
1385
+ this.snippetFileId = "ace/snippets/javascript";
1386
+ }).call(Mode.prototype);
1387
+ exports.Mode = Mode;
1388
+
1389
+ });
1390
+
1391
+ 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";
1392
+ var oop = require("../lib/oop");
1393
+ var lang = require("../lib/lang");
1394
+ var TextHighlightRules = require("./text_highlight_rules").TextHighlightRules;
1395
+ 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";
1396
+ var supportFunction = exports.supportFunction = "rgb|rgba|url|attr|counter|counters";
1397
+ 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";
1398
+ 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";
1399
+ 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";
1400
+ var numRe = exports.numRe = "\\-?(?:(?:[0-9]+(?:\\.[0-9]+)?)|(?:\\.[0-9]+))";
1401
+ var pseudoElements = exports.pseudoElements = "(\\:+)\\b(after|before|first-letter|first-line|moz-selection|selection)\\b";
1402
+ 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";
1403
+ var CssHighlightRules = function () {
1404
+ var keywordMapper = this.createKeywordMapper({
1405
+ "support.function": supportFunction,
1406
+ "support.constant": supportConstant,
1407
+ "support.type": supportType,
1408
+ "support.constant.color": supportConstantColor,
1409
+ "support.constant.fonts": supportConstantFonts
1410
+ }, "text", true);
1411
+ this.$rules = {
1412
+ "start": [{
1413
+ include: ["strings", "url", "comments"]
1414
+ }, {
1415
+ token: "paren.lparen",
1416
+ regex: "\\{",
1417
+ next: "ruleset"
1418
+ }, {
1419
+ token: "paren.rparen",
1420
+ regex: "\\}"
1421
+ }, {
1422
+ token: "string",
1423
+ regex: "@(?!viewport)",
1424
+ next: "media"
1425
+ }, {
1426
+ token: "keyword",
1427
+ regex: "#[a-z0-9-_]+"
1428
+ }, {
1429
+ token: "keyword",
1430
+ regex: "%"
1431
+ }, {
1432
+ token: "variable",
1433
+ regex: "\\.[a-z0-9-_]+"
1434
+ }, {
1435
+ token: "string",
1436
+ regex: ":[a-z0-9-_]+"
1437
+ }, {
1438
+ token: "constant.numeric",
1439
+ regex: numRe
1440
+ }, {
1441
+ token: "constant",
1442
+ regex: "[a-z0-9-_]+"
1443
+ }, {
1444
+ caseInsensitive: true
1445
+ }],
1446
+ "media": [{
1447
+ include: ["strings", "url", "comments"]
1448
+ }, {
1449
+ token: "paren.lparen",
1450
+ regex: "\\{",
1451
+ next: "start"
1452
+ }, {
1453
+ token: "paren.rparen",
1454
+ regex: "\\}",
1455
+ next: "start"
1456
+ }, {
1457
+ token: "string",
1458
+ regex: ";",
1459
+ next: "start"
1460
+ }, {
1461
+ token: "keyword",
1462
+ regex: "(?:media|supports|document|charset|import|namespace|media|supports|document"
1463
+ + "|page|font|keyframes|viewport|counter-style|font-feature-values"
1464
+ + "|swash|ornaments|annotation|stylistic|styleset|character-variant)"
1465
+ }],
1466
+ "comments": [{
1467
+ token: "comment", // multi line comment
1468
+ regex: "\\/\\*",
1469
+ push: [{
1470
+ token: "comment",
1471
+ regex: "\\*\\/",
1472
+ next: "pop"
1473
+ }, {
1474
+ defaultToken: "comment"
1475
+ }]
1476
+ }],
1477
+ "ruleset": [{
1478
+ regex: "-(webkit|ms|moz|o)-",
1479
+ token: "text"
1480
+ }, {
1481
+ token: "punctuation.operator",
1482
+ regex: "[:;]"
1483
+ }, {
1484
+ token: "paren.rparen",
1485
+ regex: "\\}",
1486
+ next: "start"
1487
+ }, {
1488
+ include: ["strings", "url", "comments"]
1489
+ }, {
1490
+ token: ["constant.numeric", "keyword"],
1491
+ 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|%)"
1492
+ }, {
1493
+ token: "constant.numeric",
1494
+ regex: numRe
1495
+ }, {
1496
+ token: "constant.numeric", // hex6 color
1497
+ regex: "#[a-f0-9]{6}"
1498
+ }, {
1499
+ token: "constant.numeric", // hex3 color
1500
+ regex: "#[a-f0-9]{3}"
1501
+ }, {
1502
+ token: ["punctuation", "entity.other.attribute-name.pseudo-element.css"],
1503
+ regex: pseudoElements
1504
+ }, {
1505
+ token: ["punctuation", "entity.other.attribute-name.pseudo-class.css"],
1506
+ regex: pseudoClasses
1507
+ }, {
1508
+ include: "url"
1509
+ }, {
1510
+ token: keywordMapper,
1511
+ regex: "\\-?[a-zA-Z_][a-zA-Z0-9_\\-]*"
1512
+ }, {
1513
+ token: "paren.lparen",
1514
+ regex: "\\{"
1515
+ }, {
1516
+ caseInsensitive: true
1517
+ }],
1518
+ url: [{
1519
+ token: "support.function",
1520
+ regex: "(?:url(:?-prefix)?|domain|regexp)\\(",
1521
+ push: [{
1522
+ token: "support.function",
1523
+ regex: "\\)",
1524
+ next: "pop"
1525
+ }, {
1526
+ defaultToken: "string"
1527
+ }]
1528
+ }],
1529
+ strings: [{
1530
+ token: "string.start",
1531
+ regex: "'",
1532
+ push: [{
1533
+ token: "string.end",
1534
+ regex: "'|$",
1535
+ next: "pop"
1536
+ }, {
1537
+ include: "escapes"
1538
+ }, {
1539
+ token: "constant.language.escape",
1540
+ regex: /\\$/,
1541
+ consumeLineEnd: true
1542
+ }, {
1543
+ defaultToken: "string"
1544
+ }]
1545
+ }, {
1546
+ token: "string.start",
1547
+ regex: '"',
1548
+ push: [{
1549
+ token: "string.end",
1550
+ regex: '"|$',
1551
+ next: "pop"
1552
+ }, {
1553
+ include: "escapes"
1554
+ }, {
1555
+ token: "constant.language.escape",
1556
+ regex: /\\$/,
1557
+ consumeLineEnd: true
1558
+ }, {
1559
+ defaultToken: "string"
1560
+ }]
1561
+ }],
1562
+ escapes: [{
1563
+ token: "constant.language.escape",
1564
+ regex: /\\([a-fA-F\d]{1,6}|[^a-fA-F\d])/
1565
+ }]
1566
+ };
1567
+ this.normalizeRules();
1568
+ };
1569
+ oop.inherits(CssHighlightRules, TextHighlightRules);
1570
+ exports.CssHighlightRules = CssHighlightRules;
1571
+
1572
+ });
1573
+
1574
+ ace.define("ace/mode/css_completions",["require","exports","module"], function(require, exports, module){"use strict";
1575
+ var propertyMap = {
1576
+ "background": { "#$0": 1 },
1577
+ "background-color": { "#$0": 1, "transparent": 1, "fixed": 1 },
1578
+ "background-image": { "url('/$0')": 1 },
1579
+ "background-repeat": { "repeat": 1, "repeat-x": 1, "repeat-y": 1, "no-repeat": 1, "inherit": 1 },
1580
+ "background-position": { "bottom": 2, "center": 2, "left": 2, "right": 2, "top": 2, "inherit": 2 },
1581
+ "background-attachment": { "scroll": 1, "fixed": 1 },
1582
+ "background-size": { "cover": 1, "contain": 1 },
1583
+ "background-clip": { "border-box": 1, "padding-box": 1, "content-box": 1 },
1584
+ "background-origin": { "border-box": 1, "padding-box": 1, "content-box": 1 },
1585
+ "border": { "solid $0": 1, "dashed $0": 1, "dotted $0": 1, "#$0": 1 },
1586
+ "border-color": { "#$0": 1 },
1587
+ "border-style": { "solid": 2, "dashed": 2, "dotted": 2, "double": 2, "groove": 2, "hidden": 2, "inherit": 2, "inset": 2, "none": 2, "outset": 2, "ridged": 2 },
1588
+ "border-collapse": { "collapse": 1, "separate": 1 },
1589
+ "bottom": { "px": 1, "em": 1, "%": 1 },
1590
+ "clear": { "left": 1, "right": 1, "both": 1, "none": 1 },
1591
+ "color": { "#$0": 1, "rgb(#$00,0,0)": 1 },
1592
+ "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 },
1593
+ "display": { "none": 1, "block": 1, "inline": 1, "inline-block": 1, "table-cell": 1 },
1594
+ "empty-cells": { "show": 1, "hide": 1 },
1595
+ "float": { "left": 1, "right": 1, "none": 1 },
1596
+ "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 },
1597
+ "font-size": { "px": 1, "em": 1, "%": 1 },
1598
+ "font-weight": { "bold": 1, "normal": 1 },
1599
+ "font-style": { "italic": 1, "normal": 1 },
1600
+ "font-variant": { "normal": 1, "small-caps": 1 },
1601
+ "height": { "px": 1, "em": 1, "%": 1 },
1602
+ "left": { "px": 1, "em": 1, "%": 1 },
1603
+ "letter-spacing": { "normal": 1 },
1604
+ "line-height": { "normal": 1 },
1605
+ "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 },
1606
+ "margin": { "px": 1, "em": 1, "%": 1 },
1607
+ "margin-right": { "px": 1, "em": 1, "%": 1 },
1608
+ "margin-left": { "px": 1, "em": 1, "%": 1 },
1609
+ "margin-top": { "px": 1, "em": 1, "%": 1 },
1610
+ "margin-bottom": { "px": 1, "em": 1, "%": 1 },
1611
+ "max-height": { "px": 1, "em": 1, "%": 1 },
1612
+ "max-width": { "px": 1, "em": 1, "%": 1 },
1613
+ "min-height": { "px": 1, "em": 1, "%": 1 },
1614
+ "min-width": { "px": 1, "em": 1, "%": 1 },
1615
+ "overflow": { "hidden": 1, "visible": 1, "auto": 1, "scroll": 1 },
1616
+ "overflow-x": { "hidden": 1, "visible": 1, "auto": 1, "scroll": 1 },
1617
+ "overflow-y": { "hidden": 1, "visible": 1, "auto": 1, "scroll": 1 },
1618
+ "padding": { "px": 1, "em": 1, "%": 1 },
1619
+ "padding-top": { "px": 1, "em": 1, "%": 1 },
1620
+ "padding-right": { "px": 1, "em": 1, "%": 1 },
1621
+ "padding-bottom": { "px": 1, "em": 1, "%": 1 },
1622
+ "padding-left": { "px": 1, "em": 1, "%": 1 },
1623
+ "page-break-after": { "auto": 1, "always": 1, "avoid": 1, "left": 1, "right": 1 },
1624
+ "page-break-before": { "auto": 1, "always": 1, "avoid": 1, "left": 1, "right": 1 },
1625
+ "position": { "absolute": 1, "relative": 1, "fixed": 1, "static": 1 },
1626
+ "right": { "px": 1, "em": 1, "%": 1 },
1627
+ "table-layout": { "fixed": 1, "auto": 1 },
1628
+ "text-decoration": { "none": 1, "underline": 1, "line-through": 1, "blink": 1 },
1629
+ "text-align": { "left": 1, "right": 1, "center": 1, "justify": 1 },
1630
+ "text-transform": { "capitalize": 1, "uppercase": 1, "lowercase": 1, "none": 1 },
1631
+ "top": { "px": 1, "em": 1, "%": 1 },
1632
+ "vertical-align": { "top": 1, "bottom": 1 },
1633
+ "visibility": { "hidden": 1, "visible": 1 },
1634
+ "white-space": { "nowrap": 1, "normal": 1, "pre": 1, "pre-line": 1, "pre-wrap": 1 },
1635
+ "width": { "px": 1, "em": 1, "%": 1 },
1636
+ "word-spacing": { "normal": 1 },
1637
+ "filter": { "alpha(opacity=$0100)": 1 },
1638
+ "text-shadow": { "$02px 2px 2px #777": 1 },
1639
+ "text-overflow": { "ellipsis-word": 1, "clip": 1, "ellipsis": 1 },
1640
+ "-moz-border-radius": 1,
1641
+ "-moz-border-radius-topright": 1,
1642
+ "-moz-border-radius-bottomright": 1,
1643
+ "-moz-border-radius-topleft": 1,
1644
+ "-moz-border-radius-bottomleft": 1,
1645
+ "-webkit-border-radius": 1,
1646
+ "-webkit-border-top-right-radius": 1,
1647
+ "-webkit-border-top-left-radius": 1,
1648
+ "-webkit-border-bottom-right-radius": 1,
1649
+ "-webkit-border-bottom-left-radius": 1,
1650
+ "-moz-box-shadow": 1,
1651
+ "-webkit-box-shadow": 1,
1652
+ "transform": { "rotate($00deg)": 1, "skew($00deg)": 1 },
1653
+ "-moz-transform": { "rotate($00deg)": 1, "skew($00deg)": 1 },
1654
+ "-webkit-transform": { "rotate($00deg)": 1, "skew($00deg)": 1 }
1655
+ };
1656
+ var CssCompletions = function () {
1657
+ };
1658
+ (function () {
1659
+ this.completionsDefined = false;
1660
+ this.defineCompletions = function () {
1661
+ if (document) {
1662
+ var style = document.createElement('c').style;
1663
+ for (var i in style) {
1664
+ if (typeof style[i] !== 'string')
1665
+ continue;
1666
+ var name = i.replace(/[A-Z]/g, function (x) {
1667
+ return '-' + x.toLowerCase();
1668
+ });
1669
+ if (!propertyMap.hasOwnProperty(name))
1670
+ propertyMap[name] = 1;
1671
+ }
1672
+ }
1673
+ this.completionsDefined = true;
1674
+ };
1675
+ this.getCompletions = function (state, session, pos, prefix) {
1676
+ if (!this.completionsDefined) {
1677
+ this.defineCompletions();
1678
+ }
1679
+ if (state === 'ruleset' || session.$mode.$id == "ace/mode/scss") {
1680
+ var line = session.getLine(pos.row).substr(0, pos.column);
1681
+ var inParens = /\([^)]*$/.test(line);
1682
+ if (inParens) {
1683
+ line = line.substr(line.lastIndexOf('(') + 1);
1684
+ }
1685
+ if (/:[^;]+$/.test(line)) {
1686
+ /([\w\-]+):[^:]*$/.test(line);
1687
+ return this.getPropertyValueCompletions(state, session, pos, prefix);
1688
+ }
1689
+ else {
1690
+ return this.getPropertyCompletions(state, session, pos, prefix, inParens);
1691
+ }
1692
+ }
1693
+ return [];
1694
+ };
1695
+ this.getPropertyCompletions = function (state, session, pos, prefix, skipSemicolon) {
1696
+ skipSemicolon = skipSemicolon || false;
1697
+ var properties = Object.keys(propertyMap);
1698
+ return properties.map(function (property) {
1699
+ return {
1700
+ caption: property,
1701
+ snippet: property + ': $0' + (skipSemicolon ? '' : ';'),
1702
+ meta: "property",
1703
+ score: 1000000
1704
+ };
1705
+ });
1706
+ };
1707
+ this.getPropertyValueCompletions = function (state, session, pos, prefix) {
1708
+ var line = session.getLine(pos.row).substr(0, pos.column);
1709
+ var property = (/([\w\-]+):[^:]*$/.exec(line) || {})[1];
1710
+ if (!property)
1711
+ return [];
1712
+ var values = [];
1713
+ if (property in propertyMap && typeof propertyMap[property] === "object") {
1714
+ values = Object.keys(propertyMap[property]);
1715
+ }
1716
+ return values.map(function (value) {
1717
+ return {
1718
+ caption: value,
1719
+ snippet: value,
1720
+ meta: "property value",
1721
+ score: 1000000
1722
+ };
1723
+ });
1724
+ };
1725
+ }).call(CssCompletions.prototype);
1726
+ exports.CssCompletions = CssCompletions;
1727
+
1728
+ });
1729
+
1730
+ 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";
1731
+ var oop = require("../../lib/oop");
1732
+ var Behaviour = require("../behaviour").Behaviour;
1733
+ var CstyleBehaviour = require("./cstyle").CstyleBehaviour;
1734
+ var TokenIterator = require("../../token_iterator").TokenIterator;
1735
+ var CssBehaviour = function () {
1736
+ this.inherit(CstyleBehaviour);
1737
+ this.add("colon", "insertion", function (state, action, editor, session, text) {
1738
+ if (text === ':' && editor.selection.isEmpty()) {
1739
+ var cursor = editor.getCursorPosition();
1740
+ var iterator = new TokenIterator(session, cursor.row, cursor.column);
1741
+ var token = iterator.getCurrentToken();
1742
+ if (token && token.value.match(/\s+/)) {
1743
+ token = iterator.stepBackward();
1744
+ }
1745
+ if (token && token.type === 'support.type') {
1746
+ var line = session.doc.getLine(cursor.row);
1747
+ var rightChar = line.substring(cursor.column, cursor.column + 1);
1748
+ if (rightChar === ':') {
1749
+ return {
1750
+ text: '',
1751
+ selection: [1, 1]
1752
+ };
1753
+ }
1754
+ if (/^(\s+[^;]|\s*$)/.test(line.substring(cursor.column))) {
1755
+ return {
1756
+ text: ':;',
1757
+ selection: [1, 1]
1758
+ };
1759
+ }
1760
+ }
1761
+ }
1762
+ });
1763
+ this.add("colon", "deletion", function (state, action, editor, session, range) {
1764
+ var selected = session.doc.getTextRange(range);
1765
+ if (!range.isMultiLine() && selected === ':') {
1766
+ var cursor = editor.getCursorPosition();
1767
+ var iterator = new TokenIterator(session, cursor.row, cursor.column);
1768
+ var token = iterator.getCurrentToken();
1769
+ if (token && token.value.match(/\s+/)) {
1770
+ token = iterator.stepBackward();
1771
+ }
1772
+ if (token && token.type === 'support.type') {
1773
+ var line = session.doc.getLine(range.start.row);
1774
+ var rightChar = line.substring(range.end.column, range.end.column + 1);
1775
+ if (rightChar === ';') {
1776
+ range.end.column++;
1777
+ return range;
1778
+ }
1779
+ }
1780
+ }
1781
+ });
1782
+ this.add("semicolon", "insertion", function (state, action, editor, session, text) {
1783
+ if (text === ';' && editor.selection.isEmpty()) {
1784
+ var cursor = editor.getCursorPosition();
1785
+ var line = session.doc.getLine(cursor.row);
1786
+ var rightChar = line.substring(cursor.column, cursor.column + 1);
1787
+ if (rightChar === ';') {
1788
+ return {
1789
+ text: '',
1790
+ selection: [1, 1]
1791
+ };
1792
+ }
1793
+ }
1794
+ });
1795
+ this.add("!important", "insertion", function (state, action, editor, session, text) {
1796
+ if (text === '!' && editor.selection.isEmpty()) {
1797
+ var cursor = editor.getCursorPosition();
1798
+ var line = session.doc.getLine(cursor.row);
1799
+ if (/^\s*(;|}|$)/.test(line.substring(cursor.column))) {
1800
+ return {
1801
+ text: '!important',
1802
+ selection: [10, 10]
1803
+ };
1804
+ }
1805
+ }
1806
+ });
1807
+ };
1808
+ oop.inherits(CssBehaviour, CstyleBehaviour);
1809
+ exports.CssBehaviour = CssBehaviour;
1810
+
1811
+ });
1812
+
1813
+ 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";
1814
+ var oop = require("../lib/oop");
1815
+ var TextMode = require("./text").Mode;
1816
+ var CssHighlightRules = require("./css_highlight_rules").CssHighlightRules;
1817
+ var MatchingBraceOutdent = require("./matching_brace_outdent").MatchingBraceOutdent;
1818
+ var WorkerClient = require("../worker/worker_client").WorkerClient;
1819
+ var CssCompletions = require("./css_completions").CssCompletions;
1820
+ var CssBehaviour = require("./behaviour/css").CssBehaviour;
1821
+ var CStyleFoldMode = require("./folding/cstyle").FoldMode;
1822
+ var Mode = function () {
1823
+ this.HighlightRules = CssHighlightRules;
1824
+ this.$outdent = new MatchingBraceOutdent();
1825
+ this.$behaviour = new CssBehaviour();
1826
+ this.$completer = new CssCompletions();
1827
+ this.foldingRules = new CStyleFoldMode();
1828
+ };
1829
+ oop.inherits(Mode, TextMode);
1830
+ (function () {
1831
+ this.foldingRules = "cStyle";
1832
+ this.blockComment = { start: "/*", end: "*/" };
1833
+ this.getNextLineIndent = function (state, line, tab) {
1834
+ var indent = this.$getIndent(line);
1835
+ var tokens = this.getTokenizer().getLineTokens(line, state).tokens;
1836
+ if (tokens.length && tokens[tokens.length - 1].type == "comment") {
1837
+ return indent;
1838
+ }
1839
+ var match = line.match(/^.*\{\s*$/);
1840
+ if (match) {
1841
+ indent += tab;
1842
+ }
1843
+ return indent;
1844
+ };
1845
+ this.checkOutdent = function (state, line, input) {
1846
+ return this.$outdent.checkOutdent(line, input);
1847
+ };
1848
+ this.autoOutdent = function (state, doc, row) {
1849
+ this.$outdent.autoOutdent(doc, row);
1850
+ };
1851
+ this.getCompletions = function (state, session, pos, prefix) {
1852
+ return this.$completer.getCompletions(state, session, pos, prefix);
1853
+ };
1854
+ this.createWorker = function (session) {
1855
+ var worker = new WorkerClient(["ace"], "ace/mode/css_worker", "Worker");
1856
+ worker.attachToDocument(session.getDocument());
1857
+ worker.on("annotate", function (e) {
1858
+ session.setAnnotations(e.data);
1859
+ });
1860
+ worker.on("terminate", function () {
1861
+ session.clearAnnotations();
1862
+ });
1863
+ return worker;
1864
+ };
1865
+ this.$id = "ace/mode/css";
1866
+ this.snippetFileId = "ace/snippets/css";
1867
+ }).call(Mode.prototype);
1868
+ exports.Mode = Mode;
1869
+
1870
+ });
1871
+
1872
+ ace.define("ace/mode/xml_highlight_rules",["require","exports","module","ace/lib/oop","ace/mode/text_highlight_rules"], function(require, exports, module){"use strict";
1873
+ var oop = require("../lib/oop");
1874
+ var TextHighlightRules = require("./text_highlight_rules").TextHighlightRules;
1875
+ var XmlHighlightRules = function (normalize) {
1876
+ var tagRegex = "[_:a-zA-Z\xc0-\uffff][-_:.a-zA-Z0-9\xc0-\uffff]*";
1877
+ this.$rules = {
1878
+ start: [
1879
+ { token: "string.cdata.xml", regex: "<\\!\\[CDATA\\[", next: "cdata" },
1880
+ {
1881
+ token: ["punctuation.instruction.xml", "keyword.instruction.xml"],
1882
+ regex: "(<\\?)(" + tagRegex + ")", next: "processing_instruction"
1883
+ },
1884
+ { token: "comment.start.xml", regex: "<\\!--", next: "comment" },
1885
+ {
1886
+ token: ["xml-pe.doctype.xml", "xml-pe.doctype.xml"],
1887
+ regex: "(<\\!)(DOCTYPE)(?=[\\s])", next: "doctype", caseInsensitive: true
1888
+ },
1889
+ { include: "tag" },
1890
+ { token: "text.end-tag-open.xml", regex: "</" },
1891
+ { token: "text.tag-open.xml", regex: "<" },
1892
+ { include: "reference" },
1893
+ { defaultToken: "text.xml" }
1894
+ ],
1895
+ processing_instruction: [{
1896
+ token: "entity.other.attribute-name.decl-attribute-name.xml",
1897
+ regex: tagRegex
1898
+ }, {
1899
+ token: "keyword.operator.decl-attribute-equals.xml",
1900
+ regex: "="
1901
+ }, {
1902
+ include: "whitespace"
1903
+ }, {
1904
+ include: "string"
1905
+ }, {
1906
+ token: "punctuation.xml-decl.xml",
1907
+ regex: "\\?>",
1908
+ next: "start"
1909
+ }],
1910
+ doctype: [
1911
+ { include: "whitespace" },
1912
+ { include: "string" },
1913
+ { token: "xml-pe.doctype.xml", regex: ">", next: "start" },
1914
+ { token: "xml-pe.xml", regex: "[-_a-zA-Z0-9:]+" },
1915
+ { token: "punctuation.int-subset", regex: "\\[", push: "int_subset" }
1916
+ ],
1917
+ int_subset: [{
1918
+ token: "text.xml",
1919
+ regex: "\\s+"
1920
+ }, {
1921
+ token: "punctuation.int-subset.xml",
1922
+ regex: "]",
1923
+ next: "pop"
1924
+ }, {
1925
+ token: ["punctuation.markup-decl.xml", "keyword.markup-decl.xml"],
1926
+ regex: "(<\\!)(" + tagRegex + ")",
1927
+ push: [{
1928
+ token: "text",
1929
+ regex: "\\s+"
1930
+ },
1931
+ {
1932
+ token: "punctuation.markup-decl.xml",
1933
+ regex: ">",
1934
+ next: "pop"
1935
+ },
1936
+ { include: "string" }]
1937
+ }],
1938
+ cdata: [
1939
+ { token: "string.cdata.xml", regex: "\\]\\]>", next: "start" },
1940
+ { token: "text.xml", regex: "\\s+" },
1941
+ { token: "text.xml", regex: "(?:[^\\]]|\\](?!\\]>))+" }
1942
+ ],
1943
+ comment: [
1944
+ { token: "comment.end.xml", regex: "-->", next: "start" },
1945
+ { defaultToken: "comment.xml" }
1946
+ ],
1947
+ reference: [{
1948
+ token: "constant.language.escape.reference.xml",
1949
+ regex: "(?:&#[0-9]+;)|(?:&#x[0-9a-fA-F]+;)|(?:&[a-zA-Z0-9_:\\.-]+;)"
1950
+ }],
1951
+ attr_reference: [{
1952
+ token: "constant.language.escape.reference.attribute-value.xml",
1953
+ regex: "(?:&#[0-9]+;)|(?:&#x[0-9a-fA-F]+;)|(?:&[a-zA-Z0-9_:\\.-]+;)"
1954
+ }],
1955
+ tag: [{
1956
+ token: ["meta.tag.punctuation.tag-open.xml", "meta.tag.punctuation.end-tag-open.xml", "meta.tag.tag-name.xml"],
1957
+ regex: "(?:(<)|(</))((?:" + tagRegex + ":)?" + tagRegex + ")",
1958
+ next: [
1959
+ { include: "attributes" },
1960
+ { token: "meta.tag.punctuation.tag-close.xml", regex: "/?>", next: "start" }
1961
+ ]
1962
+ }],
1963
+ tag_whitespace: [
1964
+ { token: "text.tag-whitespace.xml", regex: "\\s+" }
1965
+ ],
1966
+ whitespace: [
1967
+ { token: "text.whitespace.xml", regex: "\\s+" }
1968
+ ],
1969
+ string: [{
1970
+ token: "string.xml",
1971
+ regex: "'",
1972
+ push: [
1973
+ { token: "string.xml", regex: "'", next: "pop" },
1974
+ { defaultToken: "string.xml" }
1975
+ ]
1976
+ }, {
1977
+ token: "string.xml",
1978
+ regex: '"',
1979
+ push: [
1980
+ { token: "string.xml", regex: '"', next: "pop" },
1981
+ { defaultToken: "string.xml" }
1982
+ ]
1983
+ }],
1984
+ attributes: [{
1985
+ token: "entity.other.attribute-name.xml",
1986
+ regex: tagRegex
1987
+ }, {
1988
+ token: "keyword.operator.attribute-equals.xml",
1989
+ regex: "="
1990
+ }, {
1991
+ include: "tag_whitespace"
1992
+ }, {
1993
+ include: "attribute_value"
1994
+ }],
1995
+ attribute_value: [{
1996
+ token: "string.attribute-value.xml",
1997
+ regex: "'",
1998
+ push: [
1999
+ { token: "string.attribute-value.xml", regex: "'", next: "pop" },
2000
+ { include: "attr_reference" },
2001
+ { defaultToken: "string.attribute-value.xml" }
2002
+ ]
2003
+ }, {
2004
+ token: "string.attribute-value.xml",
2005
+ regex: '"',
2006
+ push: [
2007
+ { token: "string.attribute-value.xml", regex: '"', next: "pop" },
2008
+ { include: "attr_reference" },
2009
+ { defaultToken: "string.attribute-value.xml" }
2010
+ ]
2011
+ }]
2012
+ };
2013
+ if (this.constructor === XmlHighlightRules)
2014
+ this.normalizeRules();
2015
+ };
2016
+ (function () {
2017
+ this.embedTagRules = function (HighlightRules, prefix, tag) {
2018
+ this.$rules.tag.unshift({
2019
+ token: ["meta.tag.punctuation.tag-open.xml", "meta.tag." + tag + ".tag-name.xml"],
2020
+ regex: "(<)(" + tag + "(?=\\s|>|$))",
2021
+ next: [
2022
+ { include: "attributes" },
2023
+ { token: "meta.tag.punctuation.tag-close.xml", regex: "/?>", next: prefix + "start" }
2024
+ ]
2025
+ });
2026
+ this.$rules[tag + "-end"] = [
2027
+ { include: "attributes" },
2028
+ { token: "meta.tag.punctuation.tag-close.xml", regex: "/?>", next: "start",
2029
+ onMatch: function (value, currentState, stack) {
2030
+ stack.splice(0);
2031
+ return this.token;
2032
+ } }
2033
+ ];
2034
+ this.embedRules(HighlightRules, prefix, [{
2035
+ token: ["meta.tag.punctuation.end-tag-open.xml", "meta.tag." + tag + ".tag-name.xml"],
2036
+ regex: "(</)(" + tag + "(?=\\s|>|$))",
2037
+ next: tag + "-end"
2038
+ }, {
2039
+ token: "string.cdata.xml",
2040
+ regex: "<\\!\\[CDATA\\["
2041
+ }, {
2042
+ token: "string.cdata.xml",
2043
+ regex: "\\]\\]>"
2044
+ }]);
2045
+ };
2046
+ }).call(TextHighlightRules.prototype);
2047
+ oop.inherits(XmlHighlightRules, TextHighlightRules);
2048
+ exports.XmlHighlightRules = XmlHighlightRules;
2049
+
2050
+ });
2051
+
2052
+ 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";
2053
+ var oop = require("../lib/oop");
2054
+ var lang = require("../lib/lang");
2055
+ var CssHighlightRules = require("./css_highlight_rules").CssHighlightRules;
2056
+ var JavaScriptHighlightRules = require("./javascript_highlight_rules").JavaScriptHighlightRules;
2057
+ var XmlHighlightRules = require("./xml_highlight_rules").XmlHighlightRules;
2058
+ var tagMap = lang.createMap({
2059
+ a: 'anchor',
2060
+ button: 'form',
2061
+ form: 'form',
2062
+ img: 'image',
2063
+ input: 'form',
2064
+ label: 'form',
2065
+ option: 'form',
2066
+ script: 'script',
2067
+ select: 'form',
2068
+ textarea: 'form',
2069
+ style: 'style',
2070
+ table: 'table',
2071
+ tbody: 'table',
2072
+ td: 'table',
2073
+ tfoot: 'table',
2074
+ th: 'table',
2075
+ tr: 'table'
2076
+ });
2077
+ var HtmlHighlightRules = function () {
2078
+ XmlHighlightRules.call(this);
2079
+ this.addRules({
2080
+ attributes: [{
2081
+ include: "tag_whitespace"
2082
+ }, {
2083
+ token: "entity.other.attribute-name.xml",
2084
+ regex: "[-_a-zA-Z0-9:.]+"
2085
+ }, {
2086
+ token: "keyword.operator.attribute-equals.xml",
2087
+ regex: "=",
2088
+ push: [{
2089
+ include: "tag_whitespace"
2090
+ }, {
2091
+ token: "string.unquoted.attribute-value.html",
2092
+ regex: "[^<>='\"`\\s]+",
2093
+ next: "pop"
2094
+ }, {
2095
+ token: "empty",
2096
+ regex: "",
2097
+ next: "pop"
2098
+ }]
2099
+ }, {
2100
+ include: "attribute_value"
2101
+ }],
2102
+ tag: [{
2103
+ token: function (start, tag) {
2104
+ var group = tagMap[tag];
2105
+ return ["meta.tag.punctuation." + (start == "<" ? "" : "end-") + "tag-open.xml",
2106
+ "meta.tag" + (group ? "." + group : "") + ".tag-name.xml"];
2107
+ },
2108
+ regex: "(</?)([-_a-zA-Z0-9:.]+)",
2109
+ next: "tag_stuff"
2110
+ }],
2111
+ tag_stuff: [
2112
+ { include: "attributes" },
2113
+ { token: "meta.tag.punctuation.tag-close.xml", regex: "/?>", next: "start" }
2114
+ ]
2115
+ });
2116
+ this.embedTagRules(CssHighlightRules, "css-", "style");
2117
+ this.embedTagRules(new JavaScriptHighlightRules({ jsx: false }).getRules(), "js-", "script");
2118
+ if (this.constructor === HtmlHighlightRules)
2119
+ this.normalizeRules();
2120
+ };
2121
+ oop.inherits(HtmlHighlightRules, XmlHighlightRules);
2122
+ exports.HtmlHighlightRules = HtmlHighlightRules;
2123
+
2124
+ });
2125
+
2126
+ ace.define("ace/mode/html_completions",["require","exports","module","ace/token_iterator"], function(require, exports, module){"use strict";
2127
+ var TokenIterator = require("../token_iterator").TokenIterator;
2128
+ var commonAttributes = [
2129
+ "accesskey",
2130
+ "class",
2131
+ "contenteditable",
2132
+ "contextmenu",
2133
+ "dir",
2134
+ "draggable",
2135
+ "dropzone",
2136
+ "hidden",
2137
+ "id",
2138
+ "inert",
2139
+ "itemid",
2140
+ "itemprop",
2141
+ "itemref",
2142
+ "itemscope",
2143
+ "itemtype",
2144
+ "lang",
2145
+ "spellcheck",
2146
+ "style",
2147
+ "tabindex",
2148
+ "title",
2149
+ "translate"
2150
+ ];
2151
+ var eventAttributes = [
2152
+ "onabort",
2153
+ "onblur",
2154
+ "oncancel",
2155
+ "oncanplay",
2156
+ "oncanplaythrough",
2157
+ "onchange",
2158
+ "onclick",
2159
+ "onclose",
2160
+ "oncontextmenu",
2161
+ "oncuechange",
2162
+ "ondblclick",
2163
+ "ondrag",
2164
+ "ondragend",
2165
+ "ondragenter",
2166
+ "ondragleave",
2167
+ "ondragover",
2168
+ "ondragstart",
2169
+ "ondrop",
2170
+ "ondurationchange",
2171
+ "onemptied",
2172
+ "onended",
2173
+ "onerror",
2174
+ "onfocus",
2175
+ "oninput",
2176
+ "oninvalid",
2177
+ "onkeydown",
2178
+ "onkeypress",
2179
+ "onkeyup",
2180
+ "onload",
2181
+ "onloadeddata",
2182
+ "onloadedmetadata",
2183
+ "onloadstart",
2184
+ "onmousedown",
2185
+ "onmousemove",
2186
+ "onmouseout",
2187
+ "onmouseover",
2188
+ "onmouseup",
2189
+ "onmousewheel",
2190
+ "onpause",
2191
+ "onplay",
2192
+ "onplaying",
2193
+ "onprogress",
2194
+ "onratechange",
2195
+ "onreset",
2196
+ "onscroll",
2197
+ "onseeked",
2198
+ "onseeking",
2199
+ "onselect",
2200
+ "onshow",
2201
+ "onstalled",
2202
+ "onsubmit",
2203
+ "onsuspend",
2204
+ "ontimeupdate",
2205
+ "onvolumechange",
2206
+ "onwaiting"
2207
+ ];
2208
+ var globalAttributes = commonAttributes.concat(eventAttributes);
2209
+ var attributeMap = {
2210
+ "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 },
2211
+ "abbr": {},
2212
+ "address": {},
2213
+ "area": { "shape": 1, "coords": 1, "href": 1, "hreflang": 1, "alt": 1, "target": 1, "media": 1, "rel": 1, "ping": 1, "type": 1 },
2214
+ "article": { "pubdate": 1 },
2215
+ "aside": {},
2216
+ "audio": { "src": 1, "autobuffer": 1, "autoplay": { "autoplay": 1 }, "loop": { "loop": 1 }, "controls": { "controls": 1 }, "muted": { "muted": 1 }, "preload": { "auto": 1, "metadata": 1, "none": 1 } },
2217
+ "b": {},
2218
+ "base": { "href": 1, "target": 1 },
2219
+ "bdi": {},
2220
+ "bdo": {},
2221
+ "blockquote": { "cite": 1 },
2222
+ "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 },
2223
+ "br": {},
2224
+ "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 } },
2225
+ "canvas": { "width": 1, "height": 1 },
2226
+ "caption": {},
2227
+ "cite": {},
2228
+ "code": {},
2229
+ "col": { "span": 1 },
2230
+ "colgroup": { "span": 1 },
2231
+ "command": { "type": 1, "label": 1, "icon": 1, "disabled": 1, "checked": 1, "radiogroup": 1, "command": 1 },
2232
+ "data": {},
2233
+ "datalist": {},
2234
+ "dd": {},
2235
+ "del": { "cite": 1, "datetime": 1 },
2236
+ "details": { "open": 1 },
2237
+ "dfn": {},
2238
+ "dialog": { "open": 1 },
2239
+ "div": {},
2240
+ "dl": {},
2241
+ "dt": {},
2242
+ "em": {},
2243
+ "embed": { "src": 1, "height": 1, "width": 1, "type": 1 },
2244
+ "fieldset": { "disabled": 1, "form": 1, "name": 1 },
2245
+ "figcaption": {},
2246
+ "figure": {},
2247
+ "footer": {},
2248
+ "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 } },
2249
+ "h1": {},
2250
+ "h2": {},
2251
+ "h3": {},
2252
+ "h4": {},
2253
+ "h5": {},
2254
+ "h6": {},
2255
+ "head": {},
2256
+ "header": {},
2257
+ "hr": {},
2258
+ "html": { "manifest": 1 },
2259
+ "i": {},
2260
+ "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 } },
2261
+ "img": { "alt": 1, "src": 1, "height": 1, "width": 1, "usemap": 1, "ismap": 1 },
2262
+ "input": {
2263
+ "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 },
2264
+ "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
2265
+ },
2266
+ "ins": { "cite": 1, "datetime": 1 },
2267
+ "kbd": {},
2268
+ "keygen": { "autofocus": 1, "challenge": { "challenge": 1 }, "disabled": { "disabled": 1 }, "form": 1, "keytype": { "rsa": 1, "dsa": 1, "ec": 1 }, "name": 1 },
2269
+ "label": { "form": 1, "for": 1 },
2270
+ "legend": {},
2271
+ "li": { "value": 1 },
2272
+ "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 },
2273
+ "main": {},
2274
+ "map": { "name": 1 },
2275
+ "mark": {},
2276
+ "math": {},
2277
+ "menu": { "type": 1, "label": 1 },
2278
+ "meta": { "http-equiv": { "content-type": 1 }, "name": { "description": 1, "keywords": 1 }, "content": { "text/html; charset=UTF-8": 1 }, "charset": 1 },
2279
+ "meter": { "value": 1, "min": 1, "max": 1, "low": 1, "high": 1, "optimum": 1 },
2280
+ "nav": {},
2281
+ "noscript": { "href": 1 },
2282
+ "object": { "param": 1, "data": 1, "type": 1, "height": 1, "width": 1, "usemap": 1, "name": 1, "form": 1, "classid": 1 },
2283
+ "ol": { "start": 1, "reversed": 1 },
2284
+ "optgroup": { "disabled": 1, "label": 1 },
2285
+ "option": { "disabled": 1, "selected": 1, "label": 1, "value": 1 },
2286
+ "output": { "for": 1, "form": 1, "name": 1 },
2287
+ "p": {},
2288
+ "param": { "name": 1, "value": 1 },
2289
+ "pre": {},
2290
+ "progress": { "value": 1, "max": 1 },
2291
+ "q": { "cite": 1 },
2292
+ "rp": {},
2293
+ "rt": {},
2294
+ "ruby": {},
2295
+ "s": {},
2296
+ "samp": {},
2297
+ "script": { "charset": 1, "type": { "text/javascript": 1 }, "src": 1, "defer": 1, "async": 1 },
2298
+ "select": { "autofocus": 1, "disabled": 1, "form": 1, "multiple": { "multiple": 1 }, "name": 1, "size": 1, "readonly": { "readonly": 1 } },
2299
+ "small": {},
2300
+ "source": { "src": 1, "type": 1, "media": 1 },
2301
+ "span": {},
2302
+ "strong": {},
2303
+ "style": { "type": 1, "media": { "all": 1, "screen": 1, "print": 1 }, "scoped": 1 },
2304
+ "sub": {},
2305
+ "sup": {},
2306
+ "svg": {},
2307
+ "table": { "summary": 1 },
2308
+ "tbody": {},
2309
+ "td": { "headers": 1, "rowspan": 1, "colspan": 1 },
2310
+ "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 } },
2311
+ "tfoot": {},
2312
+ "th": { "headers": 1, "rowspan": 1, "colspan": 1, "scope": 1 },
2313
+ "thead": {},
2314
+ "time": { "datetime": 1 },
2315
+ "title": {},
2316
+ "tr": {},
2317
+ "track": { "kind": 1, "src": 1, "srclang": 1, "label": 1, "default": 1 },
2318
+ "section": {},
2319
+ "summary": {},
2320
+ "u": {},
2321
+ "ul": {},
2322
+ "var": {},
2323
+ "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 } },
2324
+ "wbr": {}
2325
+ };
2326
+ var elements = Object.keys(attributeMap);
2327
+ function is(token, type) {
2328
+ return token.type.lastIndexOf(type + ".xml") > -1;
2329
+ }
2330
+ function findTagName(session, pos) {
2331
+ var iterator = new TokenIterator(session, pos.row, pos.column);
2332
+ var token = iterator.getCurrentToken();
2333
+ while (token && !is(token, "tag-name")) {
2334
+ token = iterator.stepBackward();
2335
+ }
2336
+ if (token)
2337
+ return token.value;
2338
+ }
2339
+ function findAttributeName(session, pos) {
2340
+ var iterator = new TokenIterator(session, pos.row, pos.column);
2341
+ var token = iterator.getCurrentToken();
2342
+ while (token && !is(token, "attribute-name")) {
2343
+ token = iterator.stepBackward();
2344
+ }
2345
+ if (token)
2346
+ return token.value;
2347
+ }
2348
+ var HtmlCompletions = function () {
2349
+ };
2350
+ (function () {
2351
+ this.getCompletions = function (state, session, pos, prefix) {
2352
+ var token = session.getTokenAt(pos.row, pos.column);
2353
+ if (!token)
2354
+ return [];
2355
+ if (is(token, "tag-name") || is(token, "tag-open") || is(token, "end-tag-open"))
2356
+ return this.getTagCompletions(state, session, pos, prefix);
2357
+ if (is(token, "tag-whitespace") || is(token, "attribute-name"))
2358
+ return this.getAttributeCompletions(state, session, pos, prefix);
2359
+ if (is(token, "attribute-value"))
2360
+ return this.getAttributeValueCompletions(state, session, pos, prefix);
2361
+ var line = session.getLine(pos.row).substr(0, pos.column);
2362
+ if (/&[a-z]*$/i.test(line))
2363
+ return this.getHTMLEntityCompletions(state, session, pos, prefix);
2364
+ return [];
2365
+ };
2366
+ this.getTagCompletions = function (state, session, pos, prefix) {
2367
+ return elements.map(function (element) {
2368
+ return {
2369
+ value: element,
2370
+ meta: "tag",
2371
+ score: 1000000
2372
+ };
2373
+ });
2374
+ };
2375
+ this.getAttributeCompletions = function (state, session, pos, prefix) {
2376
+ var tagName = findTagName(session, pos);
2377
+ if (!tagName)
2378
+ return [];
2379
+ var attributes = globalAttributes;
2380
+ if (tagName in attributeMap) {
2381
+ attributes = attributes.concat(Object.keys(attributeMap[tagName]));
2382
+ }
2383
+ return attributes.map(function (attribute) {
2384
+ return {
2385
+ caption: attribute,
2386
+ snippet: attribute + '="$0"',
2387
+ meta: "attribute",
2388
+ score: 1000000
2389
+ };
2390
+ });
2391
+ };
2392
+ this.getAttributeValueCompletions = function (state, session, pos, prefix) {
2393
+ var tagName = findTagName(session, pos);
2394
+ var attributeName = findAttributeName(session, pos);
2395
+ if (!tagName)
2396
+ return [];
2397
+ var values = [];
2398
+ if (tagName in attributeMap && attributeName in attributeMap[tagName] && typeof attributeMap[tagName][attributeName] === "object") {
2399
+ values = Object.keys(attributeMap[tagName][attributeName]);
2400
+ }
2401
+ return values.map(function (value) {
2402
+ return {
2403
+ caption: value,
2404
+ snippet: value,
2405
+ meta: "attribute value",
2406
+ score: 1000000
2407
+ };
2408
+ });
2409
+ };
2410
+ this.getHTMLEntityCompletions = function (state, session, pos, prefix) {
2411
+ 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;'];
2412
+ return values.map(function (value) {
2413
+ return {
2414
+ caption: value,
2415
+ snippet: value,
2416
+ meta: "html entity",
2417
+ score: 1000000
2418
+ };
2419
+ });
2420
+ };
2421
+ }).call(HtmlCompletions.prototype);
2422
+ exports.HtmlCompletions = HtmlCompletions;
2423
+
2424
+ });
2425
+
2426
+ 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";
2427
+ var oop = require("../lib/oop");
2428
+ var lang = require("../lib/lang");
2429
+ var TextMode = require("./text").Mode;
2430
+ var JavaScriptMode = require("./javascript").Mode;
2431
+ var CssMode = require("./css").Mode;
2432
+ var HtmlHighlightRules = require("./html_highlight_rules").HtmlHighlightRules;
2433
+ var XmlBehaviour = require("./behaviour/xml").XmlBehaviour;
2434
+ var HtmlFoldMode = require("./folding/html").FoldMode;
2435
+ var HtmlCompletions = require("./html_completions").HtmlCompletions;
2436
+ var WorkerClient = require("../worker/worker_client").WorkerClient;
2437
+ var voidElements = ["area", "base", "br", "col", "embed", "hr", "img", "input", "keygen", "link", "meta", "menuitem", "param", "source", "track", "wbr"];
2438
+ var optionalEndTags = ["li", "dt", "dd", "p", "rt", "rp", "optgroup", "option", "colgroup", "td", "th"];
2439
+ var Mode = function (options) {
2440
+ this.fragmentContext = options && options.fragmentContext;
2441
+ this.HighlightRules = HtmlHighlightRules;
2442
+ this.$behaviour = new XmlBehaviour();
2443
+ this.$completer = new HtmlCompletions();
2444
+ this.createModeDelegates({
2445
+ "js-": JavaScriptMode,
2446
+ "css-": CssMode
2447
+ });
2448
+ this.foldingRules = new HtmlFoldMode(this.voidElements, lang.arrayToMap(optionalEndTags));
2449
+ };
2450
+ oop.inherits(Mode, TextMode);
2451
+ (function () {
2452
+ this.blockComment = { start: "<!--", end: "-->" };
2453
+ this.voidElements = lang.arrayToMap(voidElements);
2454
+ this.getNextLineIndent = function (state, line, tab) {
2455
+ return this.$getIndent(line);
2456
+ };
2457
+ this.checkOutdent = function (state, line, input) {
2458
+ return false;
2459
+ };
2460
+ this.getCompletions = function (state, session, pos, prefix) {
2461
+ return this.$completer.getCompletions(state, session, pos, prefix);
2462
+ };
2463
+ this.createWorker = function (session) {
2464
+ if (this.constructor != Mode)
2465
+ return;
2466
+ var worker = new WorkerClient(["ace"], "ace/mode/html_worker", "Worker");
2467
+ worker.attachToDocument(session.getDocument());
2468
+ if (this.fragmentContext)
2469
+ worker.call("setOptions", [{ context: this.fragmentContext }]);
2470
+ worker.on("error", function (e) {
2471
+ session.setAnnotations(e.data);
2472
+ });
2473
+ worker.on("terminate", function () {
2474
+ session.clearAnnotations();
2475
+ });
2476
+ return worker;
2477
+ };
2478
+ this.$id = "ace/mode/html";
2479
+ this.snippetFileId = "ace/snippets/html";
2480
+ }).call(Mode.prototype);
2481
+ exports.Mode = Mode;
2482
+
2483
+ });
2484
+
2485
+ ace.define("ace/mode/nunjucks_highlight_rules",["require","exports","module","ace/lib/oop","ace/mode/text_highlight_rules","ace/mode/html_highlight_rules"], function(require, exports, module){"use strict";
2486
+ var oop = require("../lib/oop");
2487
+ var TextHighlightRules = require("./text_highlight_rules").TextHighlightRules;
2488
+ var HtmlHighlightRules = require("./html_highlight_rules").HtmlHighlightRules;
2489
+ var NunjucksHighlightRules = function () {
2490
+ HtmlHighlightRules.call(this);
2491
+ this.$rules["start"].unshift({
2492
+ token: "punctuation.begin",
2493
+ regex: /{{-?/,
2494
+ push: [{
2495
+ token: "punctuation.end",
2496
+ regex: /-?}}/,
2497
+ next: "pop"
2498
+ },
2499
+ { include: "expression" }
2500
+ ]
2501
+ }, {
2502
+ token: "punctuation.begin",
2503
+ regex: /{%-?/,
2504
+ push: [{
2505
+ token: "punctuation.end",
2506
+ regex: /-?%}/,
2507
+ next: "pop"
2508
+ }, {
2509
+ token: "constant.language.escape",
2510
+ regex: /\b(r\/.*\/[gimy]?)\b/
2511
+ },
2512
+ { include: "statement" }
2513
+ ]
2514
+ }, {
2515
+ token: "comment.begin",
2516
+ regex: /{#/,
2517
+ push: [{
2518
+ token: "comment.end",
2519
+ regex: /#}/,
2520
+ next: "pop"
2521
+ },
2522
+ { defaultToken: "comment" }
2523
+ ]
2524
+ });
2525
+ this.addRules({
2526
+ attribute_value: [{
2527
+ token: "string.attribute-value.xml",
2528
+ regex: "'",
2529
+ push: [
2530
+ { token: "string.attribute-value.xml", regex: "'", next: "pop" },
2531
+ {
2532
+ token: "punctuation.begin",
2533
+ regex: /{{-?/,
2534
+ push: [{
2535
+ token: "punctuation.end",
2536
+ regex: /-?}}/,
2537
+ next: "pop"
2538
+ },
2539
+ { include: "expression" }
2540
+ ]
2541
+ },
2542
+ { include: "attr_reference" },
2543
+ { defaultToken: "string.attribute-value.xml" }
2544
+ ]
2545
+ }, {
2546
+ token: "string.attribute-value.xml",
2547
+ regex: '"',
2548
+ push: [
2549
+ { token: "string.attribute-value.xml", regex: '"', next: "pop" },
2550
+ {
2551
+ token: "punctuation.begin",
2552
+ regex: /{{-?/,
2553
+ push: [{
2554
+ token: "punctuation.end",
2555
+ regex: /-?}}/,
2556
+ next: "pop"
2557
+ },
2558
+ { include: "expression" }
2559
+ ]
2560
+ },
2561
+ { include: "attr_reference" },
2562
+ { defaultToken: "string.attribute-value.xml" }
2563
+ ]
2564
+ }],
2565
+ "statement": [{
2566
+ token: "keyword.control",
2567
+ regex: /\b(block|endblock|extends|endif|elif|for|endfor|asyncEach|endeach|include|asyncAll|endall|macro|endmacro|set|endset|ignore missing|as|from|raw|verbatim|filter|endfilter)\b/
2568
+ },
2569
+ { include: "expression" }
2570
+ ],
2571
+ "expression": [{
2572
+ token: "constant.language",
2573
+ regex: /\b(true|false|none)\b/
2574
+ }, {
2575
+ token: "string",
2576
+ regex: /"/,
2577
+ push: [{
2578
+ token: "string",
2579
+ regex: /"/,
2580
+ next: "pop"
2581
+ },
2582
+ { include: "escapeStrings" },
2583
+ { defaultToken: "string" }
2584
+ ]
2585
+ }, {
2586
+ token: "string",
2587
+ regex: /'/,
2588
+ push: [{
2589
+ token: "string",
2590
+ regex: /'/,
2591
+ next: "pop"
2592
+ },
2593
+ { include: "escapeStrings" },
2594
+ { defaultToken: "string" }
2595
+ ]
2596
+ }, {
2597
+ token: "constant.numeric", // hexadecimal, octal and binary
2598
+ regex: /0(?:[xX][0-9a-fA-F]+|[oO][0-7]+|[bB][01]+)\b/
2599
+ }, {
2600
+ token: "constant.numeric", // decimal integers and floats
2601
+ regex: /(?:\d\d*(?:\.\d*)?|\.\d+)(?:[eE][+-]?\d+\b)?/
2602
+ }, {
2603
+ token: "keyword.operator",
2604
+ regex: /\+|-|\/\/|\/|%|\*\*|\*|===|==|!==|!=|>=|>|<=|</
2605
+ }, {
2606
+ token: "keyword.control",
2607
+ regex: /\b(and|else|if|in|import|not|or)\b/
2608
+ }, {
2609
+ token: "support.function",
2610
+ regex: /[a-zA-Z_]+(?=\()/
2611
+ }, {
2612
+ token: "paren.lpar",
2613
+ regex: /[(\[{]/
2614
+ }, {
2615
+ token: "paren.rpar",
2616
+ regex: /[)\]}]/
2617
+ }, {
2618
+ token: "punctuation",
2619
+ regex: /[,]/
2620
+ }, {
2621
+ token: ["punctuation", "support.function"],
2622
+ regex: /(\.)([a-zA-Z_][a-zA-Z0-9_]*)(?=\()/
2623
+ }, {
2624
+ token: ["punctuation", "variable.parameter"],
2625
+ regex: /(\.)([a-zA-Z_][a-zA-Z0-9_]*)/
2626
+ }, {
2627
+ token: ["punctuation", "text", "support.other"],
2628
+ regex: /(\|)(\s)*([a-zA-Z_][a-zA-Z0-9_]*)/
2629
+ }, {
2630
+ token: "variable",
2631
+ regex: /[a-zA-Z_][a-zA-Z0-9_]*/
2632
+ }
2633
+ ],
2634
+ "escapeStrings": [{
2635
+ token: "constant.language.escape",
2636
+ regex: /(\\\\n)|(\\\\)|(\\")|(\\')|(\\a)|(\\b)|(\\f)|(\\n)|(\\r)|(\\t)|(\\v)/
2637
+ }, {
2638
+ token: "constant.language.escape",
2639
+ regex: /\\(?:x[0-9A-F]{2}|(?:U[0-9A-Fa-f]{8})|(?:u[0-9A-Fa-f]{4})|(?:N{[a-zA-Z ]+}))/
2640
+ }]
2641
+ });
2642
+ this.normalizeRules();
2643
+ };
2644
+ oop.inherits(NunjucksHighlightRules, TextHighlightRules);
2645
+ exports.NunjucksHighlightRules = NunjucksHighlightRules;
2646
+
2647
+ });
2648
+
2649
+ ace.define("ace/mode/nunjucks",["require","exports","module","ace/lib/oop","ace/mode/folding/nunjucks","ace/lib/lang","ace/mode/html","ace/mode/nunjucks_highlight_rules"], function(require, exports, module){"use strict";
2650
+ var oop = require("../lib/oop");
2651
+ var NunjucksFoldMode = require("./folding/nunjucks").FoldMode;
2652
+ var lang = require("../lib/lang");
2653
+ var HtmlMode = require("./html").Mode;
2654
+ var NunjucksHighlightRules = require("./nunjucks_highlight_rules").NunjucksHighlightRules;
2655
+ var voidElements = [
2656
+ "area", "base", "br", "col", "embed", "hr", "img", "input", "keygen", "link", "meta", "menuitem", "param", "source",
2657
+ "track", "wbr"
2658
+ ];
2659
+ var optionalEndTags = ["li", "dt", "dd", "p", "rt", "rp", "optgroup", "option", "colgroup", "td", "th"];
2660
+ var Mode = function () {
2661
+ this.HighlightRules = NunjucksHighlightRules;
2662
+ this.foldingRules = new NunjucksFoldMode(this.voidElements, lang.arrayToMap(optionalEndTags));
2663
+ };
2664
+ oop.inherits(Mode, HtmlMode);
2665
+ (function () {
2666
+ this.$id = "ace/mode/nunjucks";
2667
+ this.voidElements = lang.arrayToMap(voidElements);
2668
+ }).call(Mode.prototype);
2669
+ exports.Mode = Mode;
2670
+
2671
+ }); (function() {
2672
+ ace.require(["ace/mode/nunjucks"], function(m) {
2673
+ if (typeof module == "object" && typeof exports == "object" && module) {
2674
+ module.exports = m;
2675
+ }
2676
+ });
2677
+ })();
2678
+