iobroker.vis-jsontemplate 4.0.1

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 (514) hide show
  1. package/LICENSE +21 -0
  2. package/README.md +536 -0
  3. package/admin/vis-jsontemplate.png +0 -0
  4. package/admin/words.js +6 -0
  5. package/io-package.json +115 -0
  6. package/package.json +72 -0
  7. package/widgets/eslint.config.mjs +27 -0
  8. package/widgets/package.json +14 -0
  9. package/widgets/vis-jsontemplate/css/agate.css +108 -0
  10. package/widgets/vis-jsontemplate/css/doc.css +163 -0
  11. package/widgets/vis-jsontemplate/css/style.css +4 -0
  12. package/widgets/vis-jsontemplate/dist/jsontemplate-dist.js +1344 -0
  13. package/widgets/vis-jsontemplate/dist/jsontemplate-dist.js.map +7 -0
  14. package/widgets/vis-jsontemplate/i18n/words.json +54 -0
  15. package/widgets/vis-jsontemplate/img/jsontemplate.png +0 -0
  16. package/widgets/vis-jsontemplate/js/bundle.js +2 -0
  17. package/widgets/vis-jsontemplate/js/ejs.js +1532 -0
  18. package/widgets/vis-jsontemplate/js/jsontemplate.js +346 -0
  19. package/widgets/vis-jsontemplate/js/mode-ejs.js +3025 -0
  20. package/widgets/vis-jsontemplate.html +19 -0
  21. package/widgets/vis2vis-jsontemplate/assets/JSONTemplateWidget-CgoV9KML.js +1563 -0
  22. package/widgets/vis2vis-jsontemplate/assets/_commonjsHelpers-DsqdWQfm.js +1 -0
  23. package/widgets/vis2vis-jsontemplate/assets/abap-DfmzwOny.js +1 -0
  24. package/widgets/vis2vis-jsontemplate/assets/abc-CwfNa2Co.js +32 -0
  25. package/widgets/vis2vis-jsontemplate/assets/actionscript-i2dYZlPV.js +158 -0
  26. package/widgets/vis2vis-jsontemplate/assets/ada-D8cv3bAk.js +1 -0
  27. package/widgets/vis2vis-jsontemplate/assets/alda-BnZCAn_Y.js +1 -0
  28. package/widgets/vis2vis-jsontemplate/assets/apache_conf-B2jcq9vM.js +1 -0
  29. package/widgets/vis2vis-jsontemplate/assets/apex-BnDrFY2n.js +1 -0
  30. package/widgets/vis2vis-jsontemplate/assets/applescript-Dtx6iIWt.js +1 -0
  31. package/widgets/vis2vis-jsontemplate/assets/aql-CR8jDz4P.js +1 -0
  32. package/widgets/vis2vis-jsontemplate/assets/asciidoc-CTtTEKKR.js +1 -0
  33. package/widgets/vis2vis-jsontemplate/assets/asl-CGDnhWkr.js +1 -0
  34. package/widgets/vis2vis-jsontemplate/assets/assembly_arm32-DmUGZg4l.js +1 -0
  35. package/widgets/vis2vis-jsontemplate/assets/assembly_x86-CgGhNn_8.js +1 -0
  36. package/widgets/vis2vis-jsontemplate/assets/astro-C6vYAtVy.js +1 -0
  37. package/widgets/vis2vis-jsontemplate/assets/autohotkey-DL7PtRJU.js +1 -0
  38. package/widgets/vis2vis-jsontemplate/assets/basic-DpGwy_JF.js +1 -0
  39. package/widgets/vis2vis-jsontemplate/assets/batchfile-CMUqBaJo.js +1 -0
  40. package/widgets/vis2vis-jsontemplate/assets/bibtex-CBKG4IBI.js +1 -0
  41. package/widgets/vis2vis-jsontemplate/assets/c9search-BzbdQPPO.js +1 -0
  42. package/widgets/vis2vis-jsontemplate/assets/c_cpp-D4DfiamA.js +132 -0
  43. package/widgets/vis2vis-jsontemplate/assets/cirru-UmvTEMH2.js +1 -0
  44. package/widgets/vis2vis-jsontemplate/assets/clojure-BvfuACp1.js +91 -0
  45. package/widgets/vis2vis-jsontemplate/assets/clue-q0X5feRk.js +1 -0
  46. package/widgets/vis2vis-jsontemplate/assets/cobol-CJDamiOp.js +1 -0
  47. package/widgets/vis2vis-jsontemplate/assets/coffee-DKyPKpfN.js +96 -0
  48. package/widgets/vis2vis-jsontemplate/assets/coldfusion-jQBfC77-.js +1 -0
  49. package/widgets/vis2vis-jsontemplate/assets/createSvgIcon-BzWa0w5J.js +7 -0
  50. package/widgets/vis2vis-jsontemplate/assets/crystal-Xmewh1AX.js +1 -0
  51. package/widgets/vis2vis-jsontemplate/assets/csharp-BX2hMNfl.js +1 -0
  52. package/widgets/vis2vis-jsontemplate/assets/csound_document-BYTAf4zh.js +11 -0
  53. package/widgets/vis2vis-jsontemplate/assets/csound_orchestra-Bkyfk74i.js +48 -0
  54. package/widgets/vis2vis-jsontemplate/assets/csound_score-DhKjTAqK.js +1 -0
  55. package/widgets/vis2vis-jsontemplate/assets/csp-BVgLU7jE.js +1 -0
  56. package/widgets/vis2vis-jsontemplate/assets/css-DZLpieJP.js +968 -0
  57. package/widgets/vis2vis-jsontemplate/assets/csv-D_5OW9bB.js +1 -0
  58. package/widgets/vis2vis-jsontemplate/assets/curly-D0Tb-q1n.js +1 -0
  59. package/widgets/vis2vis-jsontemplate/assets/cuttlefish-BB4QY2Rz.js +1 -0
  60. package/widgets/vis2vis-jsontemplate/assets/d-ZKWDuB0_.js +1 -0
  61. package/widgets/vis2vis-jsontemplate/assets/dart-BNJffOyh.js +84 -0
  62. package/widgets/vis2vis-jsontemplate/assets/defaultTheme-WWPLMFZt.js +16 -0
  63. package/widgets/vis2vis-jsontemplate/assets/diff-BEYejKtJ.js +1 -0
  64. package/widgets/vis2vis-jsontemplate/assets/django-DKKc_ed5.js +109 -0
  65. package/widgets/vis2vis-jsontemplate/assets/dockerfile-DZXH_6WL.js +1 -0
  66. package/widgets/vis2vis-jsontemplate/assets/dot-CSB_DfTc.js +1 -0
  67. package/widgets/vis2vis-jsontemplate/assets/drools-nRr1FiNd.js +20 -0
  68. package/widgets/vis2vis-jsontemplate/assets/edifact-BVKa_fHy.js +241 -0
  69. package/widgets/vis2vis-jsontemplate/assets/eiffel-uT8kjWRN.js +1 -0
  70. package/widgets/vis2vis-jsontemplate/assets/elixir-DtwfFhQ8.js +1 -0
  71. package/widgets/vis2vis-jsontemplate/assets/elm-D4pytUf9.js +1 -0
  72. package/widgets/vis2vis-jsontemplate/assets/erlang-DLPi5bw-.js +161 -0
  73. package/widgets/vis2vis-jsontemplate/assets/ext-beautify-B7kCn5eA.js +3 -0
  74. package/widgets/vis2vis-jsontemplate/assets/ext-code_lens-Cd0L1scq.js +23 -0
  75. package/widgets/vis2vis-jsontemplate/assets/ext-command_bar-CACcXZrU.js +115 -0
  76. package/widgets/vis2vis-jsontemplate/assets/ext-diff-Dv4WtRZc.js +151 -0
  77. package/widgets/vis2vis-jsontemplate/assets/ext-elastic_tabstops_lite-VRqnv66z.js +1 -0
  78. package/widgets/vis2vis-jsontemplate/assets/ext-emmet-CZ96P7gQ.js +14 -0
  79. package/widgets/vis2vis-jsontemplate/assets/ext-error_marker-BkxAtjZn.js +1 -0
  80. package/widgets/vis2vis-jsontemplate/assets/ext-hardwrap-DOx3BiAc.js +2 -0
  81. package/widgets/vis2vis-jsontemplate/assets/ext-inline_autocomplete-9gt-h0ru.js +235 -0
  82. package/widgets/vis2vis-jsontemplate/assets/ext-keybinding_menu-gzsgTxEE.js +64 -0
  83. package/widgets/vis2vis-jsontemplate/assets/ext-linking-wSRE0KER.js +1 -0
  84. package/widgets/vis2vis-jsontemplate/assets/ext-modelist-CKVsSg9k.js +1 -0
  85. package/widgets/vis2vis-jsontemplate/assets/ext-options-BXmc73M0.js +64 -0
  86. package/widgets/vis2vis-jsontemplate/assets/ext-prompt-Cj8XYZzP.js +178 -0
  87. package/widgets/vis2vis-jsontemplate/assets/ext-rtl-Bwce-jN9.js +1 -0
  88. package/widgets/vis2vis-jsontemplate/assets/ext-searchbox-BRgKKnhq.js +164 -0
  89. package/widgets/vis2vis-jsontemplate/assets/ext-settings_menu-B3vu25Es.js +64 -0
  90. package/widgets/vis2vis-jsontemplate/assets/ext-simple_tokenizer-MkPEmA4u.js +1 -0
  91. package/widgets/vis2vis-jsontemplate/assets/ext-spellcheck-DAWtK7lF.js +1 -0
  92. package/widgets/vis2vis-jsontemplate/assets/ext-static_highlight-BwPaHOba.js +41 -0
  93. package/widgets/vis2vis-jsontemplate/assets/ext-statusbar-Dkmz7M2l.js +1 -0
  94. package/widgets/vis2vis-jsontemplate/assets/ext-textarea-MRaqZ_vl.js +1 -0
  95. package/widgets/vis2vis-jsontemplate/assets/ext-themelist-DSJRISt7.js +1 -0
  96. package/widgets/vis2vis-jsontemplate/assets/ext-whitespace-CIw_x4la.js +1 -0
  97. package/widgets/vis2vis-jsontemplate/assets/flix-BnYChX6M.js +1 -0
  98. package/widgets/vis2vis-jsontemplate/assets/forth-C7qLFM9f.js +1 -0
  99. package/widgets/vis2vis-jsontemplate/assets/fortran-D7LyTru1.js +1 -0
  100. package/widgets/vis2vis-jsontemplate/assets/fsharp-BLTDJuay.js +1 -0
  101. package/widgets/vis2vis-jsontemplate/assets/fsl-CdTU_n9i.js +10 -0
  102. package/widgets/vis2vis-jsontemplate/assets/ftl-C9sNDcIo.js +1 -0
  103. package/widgets/vis2vis-jsontemplate/assets/gcode--LKSXs7E.js +1 -0
  104. package/widgets/vis2vis-jsontemplate/assets/gherkin-DF5zs6Z9.js +1 -0
  105. package/widgets/vis2vis-jsontemplate/assets/gitignore-DUetkVs4.js +1 -0
  106. package/widgets/vis2vis-jsontemplate/assets/glsl-COGwuk5H.js +1 -0
  107. package/widgets/vis2vis-jsontemplate/assets/gobstones-Br2Q_Ugk.js +1705 -0
  108. package/widgets/vis2vis-jsontemplate/assets/golang-CNkGUfhJ.js +1 -0
  109. package/widgets/vis2vis-jsontemplate/assets/graphqlschema-7tZ2HYRX.js +33 -0
  110. package/widgets/vis2vis-jsontemplate/assets/groovy-DLai4UlA.js +1 -0
  111. package/widgets/vis2vis-jsontemplate/assets/haml-Ddk-m970.js +21 -0
  112. package/widgets/vis2vis-jsontemplate/assets/handlebars-ChbQGB3d.js +1 -0
  113. package/widgets/vis2vis-jsontemplate/assets/haskell-DwAb6s6I.js +83 -0
  114. package/widgets/vis2vis-jsontemplate/assets/haskell_cabal-BETkhooQ.js +1 -0
  115. package/widgets/vis2vis-jsontemplate/assets/haxe-BAeGzG-s.js +1 -0
  116. package/widgets/vis2vis-jsontemplate/assets/hjson-Cn5g-vro.js +1 -0
  117. package/widgets/vis2vis-jsontemplate/assets/hostInit-BDi6DR-Y.js +2 -0
  118. package/widgets/vis2vis-jsontemplate/assets/html-Y77dZPwR.js +854 -0
  119. package/widgets/vis2vis-jsontemplate/assets/html_elixir-BZT1fAVA.js +1 -0
  120. package/widgets/vis2vis-jsontemplate/assets/html_ruby-ZJfpYv6X.js +1 -0
  121. package/widgets/vis2vis-jsontemplate/assets/index-1uf8j2YM.js +228 -0
  122. package/widgets/vis2vis-jsontemplate/assets/index-BiSoXv7x.js +9 -0
  123. package/widgets/vis2vis-jsontemplate/assets/index-DYmfCyJR.js +1 -0
  124. package/widgets/vis2vis-jsontemplate/assets/index-Dp6AGEHk.js +1 -0
  125. package/widgets/vis2vis-jsontemplate/assets/index-DxU1QEIH.js +24 -0
  126. package/widgets/vis2vis-jsontemplate/assets/index-s1k6Tdvt.js +934 -0
  127. package/widgets/vis2vis-jsontemplate/assets/ini-DOrp8VAL.js +1 -0
  128. package/widgets/vis2vis-jsontemplate/assets/io-B6WPW4S3.js +7 -0
  129. package/widgets/vis2vis-jsontemplate/assets/ion-BxjKPSGO.js +1 -0
  130. package/widgets/vis2vis-jsontemplate/assets/jack-DrJMuola.js +1 -0
  131. package/widgets/vis2vis-jsontemplate/assets/jade-CbhHZW3W.js +1 -0
  132. package/widgets/vis2vis-jsontemplate/assets/java-L1LAgMtF.js +241 -0
  133. package/widgets/vis2vis-jsontemplate/assets/javascript-DBBdZ2gE.js +196 -0
  134. package/widgets/vis2vis-jsontemplate/assets/jexl-Dnikqs0-.js +1 -0
  135. package/widgets/vis2vis-jsontemplate/assets/json-cePerCHg.js +1 -0
  136. package/widgets/vis2vis-jsontemplate/assets/json5-CEf7P4mW.js +1 -0
  137. package/widgets/vis2vis-jsontemplate/assets/jsoniq-CBTitV1b.js +62 -0
  138. package/widgets/vis2vis-jsontemplate/assets/jsp-GnrKeHhA.js +100 -0
  139. package/widgets/vis2vis-jsontemplate/assets/jssm-CNl_ppkL.js +1 -0
  140. package/widgets/vis2vis-jsontemplate/assets/jsx-Dcd392cc.js +1 -0
  141. package/widgets/vis2vis-jsontemplate/assets/jsx-runtime-BAfZVaXB.js +9 -0
  142. package/widgets/vis2vis-jsontemplate/assets/julia-C9h3gepL.js +1 -0
  143. package/widgets/vis2vis-jsontemplate/assets/keybinding-emacs-BaUjXW98.js +51 -0
  144. package/widgets/vis2vis-jsontemplate/assets/keybinding-sublime-YH75Ct6d.js +1 -0
  145. package/widgets/vis2vis-jsontemplate/assets/keybinding-vim-CaVW7c9r.js +65 -0
  146. package/widgets/vis2vis-jsontemplate/assets/keybinding-vscode-BDZTuICh.js +1 -0
  147. package/widgets/vis2vis-jsontemplate/assets/kotlin-fH8Pursa.js +1 -0
  148. package/widgets/vis2vis-jsontemplate/assets/latex-Br5EtP_p.js +1 -0
  149. package/widgets/vis2vis-jsontemplate/assets/latte-DHpZVVJ2.js +1 -0
  150. package/widgets/vis2vis-jsontemplate/assets/less-B35SVqSd.js +1 -0
  151. package/widgets/vis2vis-jsontemplate/assets/liquid-qyWKOevD.js +882 -0
  152. package/widgets/vis2vis-jsontemplate/assets/lisp-Bn4vKlba.js +1 -0
  153. package/widgets/vis2vis-jsontemplate/assets/livescript-DhxGkJ79.js +1 -0
  154. package/widgets/vis2vis-jsontemplate/assets/logiql-BFSlSEOg.js +1 -0
  155. package/widgets/vis2vis-jsontemplate/assets/logtalk-x5SPdOmO.js +1 -0
  156. package/widgets/vis2vis-jsontemplate/assets/lsl-CkX2tYha.js +1233 -0
  157. package/widgets/vis2vis-jsontemplate/assets/lua-B6tQSosf.js +22 -0
  158. package/widgets/vis2vis-jsontemplate/assets/luapage-BQOhc2op.js +1 -0
  159. package/widgets/vis2vis-jsontemplate/assets/lucene-B_Ui40TE.js +1 -0
  160. package/widgets/vis2vis-jsontemplate/assets/makefile-DCaIcxsE.js +5 -0
  161. package/widgets/vis2vis-jsontemplate/assets/markdown-Ds-l5XVV.js +89 -0
  162. package/widgets/vis2vis-jsontemplate/assets/mask-DzUgFl4f.js +1 -0
  163. package/widgets/vis2vis-jsontemplate/assets/matlab-DMmM5wsi.js +1 -0
  164. package/widgets/vis2vis-jsontemplate/assets/maze-Dtm3r2jA.js +10 -0
  165. package/widgets/vis2vis-jsontemplate/assets/mediawiki-DJkwyw9T.js +1 -0
  166. package/widgets/vis2vis-jsontemplate/assets/mel-T4CX3Ax0.js +1 -0
  167. package/widgets/vis2vis-jsontemplate/assets/mips-D0HfPNMe.js +1 -0
  168. package/widgets/vis2vis-jsontemplate/assets/mixal-CHOHPvAw.js +1 -0
  169. package/widgets/vis2vis-jsontemplate/assets/mode-abap-Cx2uGxmu.js +1 -0
  170. package/widgets/vis2vis-jsontemplate/assets/mode-abc-DNxxXgCn.js +1 -0
  171. package/widgets/vis2vis-jsontemplate/assets/mode-actionscript-Lqs4aUly.js +1 -0
  172. package/widgets/vis2vis-jsontemplate/assets/mode-ada-DMVjprza.js +1 -0
  173. package/widgets/vis2vis-jsontemplate/assets/mode-alda-C227mkWP.js +1 -0
  174. package/widgets/vis2vis-jsontemplate/assets/mode-apache_conf-DUgycb9k.js +1 -0
  175. package/widgets/vis2vis-jsontemplate/assets/mode-apex-WVQriCPM.js +1 -0
  176. package/widgets/vis2vis-jsontemplate/assets/mode-applescript-BIn6R63y.js +1 -0
  177. package/widgets/vis2vis-jsontemplate/assets/mode-aql-DO0Ecwp8.js +1 -0
  178. package/widgets/vis2vis-jsontemplate/assets/mode-asciidoc-CrgKnY1x.js +1 -0
  179. package/widgets/vis2vis-jsontemplate/assets/mode-asl-BYJnt3jo.js +1 -0
  180. package/widgets/vis2vis-jsontemplate/assets/mode-assembly_arm32-CetKLDV4.js +1 -0
  181. package/widgets/vis2vis-jsontemplate/assets/mode-assembly_x86-CubIXjg2.js +1 -0
  182. package/widgets/vis2vis-jsontemplate/assets/mode-astro-Dr-YkJd2.js +5 -0
  183. package/widgets/vis2vis-jsontemplate/assets/mode-autohotkey-CGdAUSVJ.js +1 -0
  184. package/widgets/vis2vis-jsontemplate/assets/mode-basic-YPMOcp_T.js +1 -0
  185. package/widgets/vis2vis-jsontemplate/assets/mode-batchfile-B-Zv3TtT.js +1 -0
  186. package/widgets/vis2vis-jsontemplate/assets/mode-bibtex-TG2Wchr5.js +1 -0
  187. package/widgets/vis2vis-jsontemplate/assets/mode-c9search-B7V8RiOe.js +1 -0
  188. package/widgets/vis2vis-jsontemplate/assets/mode-c_cpp-ZsOtduiQ.js +1 -0
  189. package/widgets/vis2vis-jsontemplate/assets/mode-cirru-CEOsriet.js +1 -0
  190. package/widgets/vis2vis-jsontemplate/assets/mode-clojure-BXwnpilm.js +1 -0
  191. package/widgets/vis2vis-jsontemplate/assets/mode-clue-BZbZE0ou.js +1 -0
  192. package/widgets/vis2vis-jsontemplate/assets/mode-cobol-Dfq9SVVZ.js +1 -0
  193. package/widgets/vis2vis-jsontemplate/assets/mode-coffee-xrjY_rju.js +1 -0
  194. package/widgets/vis2vis-jsontemplate/assets/mode-coldfusion-OZwNZrIZ.js +5 -0
  195. package/widgets/vis2vis-jsontemplate/assets/mode-crystal-BIG_YDiU.js +1 -0
  196. package/widgets/vis2vis-jsontemplate/assets/mode-csharp-DBF-FKTE.js +1 -0
  197. package/widgets/vis2vis-jsontemplate/assets/mode-csound_document-DLDvhrWv.js +1 -0
  198. package/widgets/vis2vis-jsontemplate/assets/mode-csound_orchestra-Yrq2iOqw.js +1 -0
  199. package/widgets/vis2vis-jsontemplate/assets/mode-csound_score-B80xm_9p.js +1 -0
  200. package/widgets/vis2vis-jsontemplate/assets/mode-csp-D74FoMl0.js +1 -0
  201. package/widgets/vis2vis-jsontemplate/assets/mode-css-C3msDUrB.js +1 -0
  202. package/widgets/vis2vis-jsontemplate/assets/mode-csv-CdmtvoKD.js +1 -0
  203. package/widgets/vis2vis-jsontemplate/assets/mode-curly-CCqoptjF.js +5 -0
  204. package/widgets/vis2vis-jsontemplate/assets/mode-cuttlefish-B1PQW5qP.js +1 -0
  205. package/widgets/vis2vis-jsontemplate/assets/mode-d-tHqFRuWz.js +1 -0
  206. package/widgets/vis2vis-jsontemplate/assets/mode-dart-BUry-_Uq.js +1 -0
  207. package/widgets/vis2vis-jsontemplate/assets/mode-diff-CXDWrh6N.js +1 -0
  208. package/widgets/vis2vis-jsontemplate/assets/mode-django-l3su_Wch.js +5 -0
  209. package/widgets/vis2vis-jsontemplate/assets/mode-dockerfile-D00fpghG.js +3 -0
  210. package/widgets/vis2vis-jsontemplate/assets/mode-dot-CRgOy-4H.js +1 -0
  211. package/widgets/vis2vis-jsontemplate/assets/mode-drools-CdNIEfYS.js +1 -0
  212. package/widgets/vis2vis-jsontemplate/assets/mode-edifact-BJt5WRnI.js +1 -0
  213. package/widgets/vis2vis-jsontemplate/assets/mode-eiffel-CjOQ59Mh.js +1 -0
  214. package/widgets/vis2vis-jsontemplate/assets/mode-elixir-BBYnnLNP.js +17 -0
  215. package/widgets/vis2vis-jsontemplate/assets/mode-elm-C4hPf63s.js +1 -0
  216. package/widgets/vis2vis-jsontemplate/assets/mode-erlang-DTO4AJg8.js +1 -0
  217. package/widgets/vis2vis-jsontemplate/assets/mode-flix-WJhDWOJK.js +1 -0
  218. package/widgets/vis2vis-jsontemplate/assets/mode-forth-D5yqLhHX.js +1 -0
  219. package/widgets/vis2vis-jsontemplate/assets/mode-fortran-FuOeWb1y.js +3 -0
  220. package/widgets/vis2vis-jsontemplate/assets/mode-fsharp-DWB4FB5I.js +1 -0
  221. package/widgets/vis2vis-jsontemplate/assets/mode-fsl-BbD49gQN.js +1 -0
  222. package/widgets/vis2vis-jsontemplate/assets/mode-ftl-DCBaSrCS.js +1 -0
  223. package/widgets/vis2vis-jsontemplate/assets/mode-gcode-DyycwyUB.js +1 -0
  224. package/widgets/vis2vis-jsontemplate/assets/mode-gherkin-ClzVT6c8.js +1 -0
  225. package/widgets/vis2vis-jsontemplate/assets/mode-gitignore-Cm81mNe0.js +1 -0
  226. package/widgets/vis2vis-jsontemplate/assets/mode-glsl-BmnhJ7jD.js +1 -0
  227. package/widgets/vis2vis-jsontemplate/assets/mode-gobstones-DsTc490f.js +5 -0
  228. package/widgets/vis2vis-jsontemplate/assets/mode-golang-W5yNK8NQ.js +1 -0
  229. package/widgets/vis2vis-jsontemplate/assets/mode-graphqlschema-C1W1BXTc.js +1 -0
  230. package/widgets/vis2vis-jsontemplate/assets/mode-groovy-Dtz-6Z7P.js +5 -0
  231. package/widgets/vis2vis-jsontemplate/assets/mode-haml-DzRoVgZi.js +1 -0
  232. package/widgets/vis2vis-jsontemplate/assets/mode-handlebars-CmnS29SD.js +5 -0
  233. package/widgets/vis2vis-jsontemplate/assets/mode-haskell-BoBVITB9.js +1 -0
  234. package/widgets/vis2vis-jsontemplate/assets/mode-haskell_cabal-CKxlr3jF.js +1 -0
  235. package/widgets/vis2vis-jsontemplate/assets/mode-haxe-E5rGLUJe.js +1 -0
  236. package/widgets/vis2vis-jsontemplate/assets/mode-hjson-BeLPW_Cs.js +20 -0
  237. package/widgets/vis2vis-jsontemplate/assets/mode-html-Dk56Z7Z_.js +5 -0
  238. package/widgets/vis2vis-jsontemplate/assets/mode-html_elixir-COi9C8Yo.js +21 -0
  239. package/widgets/vis2vis-jsontemplate/assets/mode-html_ruby-C2Pmjq37.js +5 -0
  240. package/widgets/vis2vis-jsontemplate/assets/mode-ini-BtBiRyI-.js +1 -0
  241. package/widgets/vis2vis-jsontemplate/assets/mode-io-BbkCkGZV.js +1 -0
  242. package/widgets/vis2vis-jsontemplate/assets/mode-ion-CcLU5PF_.js +1 -0
  243. package/widgets/vis2vis-jsontemplate/assets/mode-jack-CE-rcZti.js +1 -0
  244. package/widgets/vis2vis-jsontemplate/assets/mode-jade-BwjId9Hq.js +1 -0
  245. package/widgets/vis2vis-jsontemplate/assets/mode-java-CVwdagwT.js +5 -0
  246. package/widgets/vis2vis-jsontemplate/assets/mode-javascript-Uyq4Qy-A.js +5 -0
  247. package/widgets/vis2vis-jsontemplate/assets/mode-jexl-D6x9rXM4.js +1 -0
  248. package/widgets/vis2vis-jsontemplate/assets/mode-json-DfI0el-U.js +1 -0
  249. package/widgets/vis2vis-jsontemplate/assets/mode-json5-DfkyvMXq.js +1 -0
  250. package/widgets/vis2vis-jsontemplate/assets/mode-jsoniq-DOLnf8m6.js +9 -0
  251. package/widgets/vis2vis-jsontemplate/assets/mode-jsp-B5pQE_to.js +1 -0
  252. package/widgets/vis2vis-jsontemplate/assets/mode-jssm-BIUeda1N.js +1 -0
  253. package/widgets/vis2vis-jsontemplate/assets/mode-jsx-CpHuKZot.js +5 -0
  254. package/widgets/vis2vis-jsontemplate/assets/mode-julia-CVO3urMQ.js +1 -0
  255. package/widgets/vis2vis-jsontemplate/assets/mode-kotlin-GZHgeC2A.js +1 -0
  256. package/widgets/vis2vis-jsontemplate/assets/mode-latex-DVUjduXc.js +1 -0
  257. package/widgets/vis2vis-jsontemplate/assets/mode-latte-DC_69hWX.js +5 -0
  258. package/widgets/vis2vis-jsontemplate/assets/mode-less-CSc_gwBA.js +1 -0
  259. package/widgets/vis2vis-jsontemplate/assets/mode-liquid-QYoisl9P.js +5 -0
  260. package/widgets/vis2vis-jsontemplate/assets/mode-lisp-DIPlJoHD.js +1 -0
  261. package/widgets/vis2vis-jsontemplate/assets/mode-livescript-BiuZjE9L.js +1 -0
  262. package/widgets/vis2vis-jsontemplate/assets/mode-logiql-r7GQoTD0.js +3 -0
  263. package/widgets/vis2vis-jsontemplate/assets/mode-logtalk-BV-XKcB-.js +1 -0
  264. package/widgets/vis2vis-jsontemplate/assets/mode-lsl-ByqelXin.js +1 -0
  265. package/widgets/vis2vis-jsontemplate/assets/mode-lua-D4smnGmf.js +4 -0
  266. package/widgets/vis2vis-jsontemplate/assets/mode-luapage-DEfuUOVr.js +8 -0
  267. package/widgets/vis2vis-jsontemplate/assets/mode-lucene-B_rvFXb1.js +1 -0
  268. package/widgets/vis2vis-jsontemplate/assets/mode-makefile-CkPrIwmp.js +1 -0
  269. package/widgets/vis2vis-jsontemplate/assets/mode-markdown-BTLnpScr.js +7 -0
  270. package/widgets/vis2vis-jsontemplate/assets/mode-mask-qkR1KcB4.js +1 -0
  271. package/widgets/vis2vis-jsontemplate/assets/mode-matlab-CHyUpJ53.js +2 -0
  272. package/widgets/vis2vis-jsontemplate/assets/mode-maze-eSasdKn2.js +1 -0
  273. package/widgets/vis2vis-jsontemplate/assets/mode-mediawiki-T6AAK_tx.js +1 -0
  274. package/widgets/vis2vis-jsontemplate/assets/mode-mel-CP7h_hli.js +1 -0
  275. package/widgets/vis2vis-jsontemplate/assets/mode-mips-CeblmH_t.js +1 -0
  276. package/widgets/vis2vis-jsontemplate/assets/mode-mixal-7NVNCscn.js +1 -0
  277. package/widgets/vis2vis-jsontemplate/assets/mode-mushcode-B5DAQUWZ.js +3 -0
  278. package/widgets/vis2vis-jsontemplate/assets/mode-mysql-deurkNTd.js +1 -0
  279. package/widgets/vis2vis-jsontemplate/assets/mode-nasal-CQ9lZVT-.js +1 -0
  280. package/widgets/vis2vis-jsontemplate/assets/mode-nginx-BksCWuoQ.js +1 -0
  281. package/widgets/vis2vis-jsontemplate/assets/mode-nim-De0rRhWG.js +1 -0
  282. package/widgets/vis2vis-jsontemplate/assets/mode-nix-Dl4ZMj6A.js +1 -0
  283. package/widgets/vis2vis-jsontemplate/assets/mode-nsis-CbIaTlyP.js +3 -0
  284. package/widgets/vis2vis-jsontemplate/assets/mode-nunjucks-BkQiW6bx.js +5 -0
  285. package/widgets/vis2vis-jsontemplate/assets/mode-objectivec-V4CgVWvp.js +1 -0
  286. package/widgets/vis2vis-jsontemplate/assets/mode-ocaml-B0OJypGp.js +1 -0
  287. package/widgets/vis2vis-jsontemplate/assets/mode-odin-BuYsmItT.js +1 -0
  288. package/widgets/vis2vis-jsontemplate/assets/mode-partiql-COxrAtTa.js +1 -0
  289. package/widgets/vis2vis-jsontemplate/assets/mode-pascal-BXBvzrNQ.js +1 -0
  290. package/widgets/vis2vis-jsontemplate/assets/mode-perl-CONjBhej.js +1 -0
  291. package/widgets/vis2vis-jsontemplate/assets/mode-pgsql-XzNsFflv.js +1 -0
  292. package/widgets/vis2vis-jsontemplate/assets/mode-php-DQuLmOUU.js +5 -0
  293. package/widgets/vis2vis-jsontemplate/assets/mode-php_laravel_blade-Bblwdsl-.js +5 -0
  294. package/widgets/vis2vis-jsontemplate/assets/mode-pig-C_t1Waqf.js +1 -0
  295. package/widgets/vis2vis-jsontemplate/assets/mode-plain_text-CFhhAAmr.js +1 -0
  296. package/widgets/vis2vis-jsontemplate/assets/mode-plsql-DgP7Cdl4.js +1 -0
  297. package/widgets/vis2vis-jsontemplate/assets/mode-powershell-BGCPchLY.js +1 -0
  298. package/widgets/vis2vis-jsontemplate/assets/mode-praat-6bojCYuv.js +1 -0
  299. package/widgets/vis2vis-jsontemplate/assets/mode-prisma-CzIylCeU.js +1 -0
  300. package/widgets/vis2vis-jsontemplate/assets/mode-prolog-C7MZwLMP.js +1 -0
  301. package/widgets/vis2vis-jsontemplate/assets/mode-properties-Bnn9HTVN.js +1 -0
  302. package/widgets/vis2vis-jsontemplate/assets/mode-protobuf-Dup4k2m0.js +1 -0
  303. package/widgets/vis2vis-jsontemplate/assets/mode-prql-YLxZHTUj.js +1 -0
  304. package/widgets/vis2vis-jsontemplate/assets/mode-puppet-qLcrfeOR.js +1 -0
  305. package/widgets/vis2vis-jsontemplate/assets/mode-python-BZz04ov9.js +3 -0
  306. package/widgets/vis2vis-jsontemplate/assets/mode-qml-DqZ3lPSS.js +1 -0
  307. package/widgets/vis2vis-jsontemplate/assets/mode-r-e10wKfR-.js +1 -0
  308. package/widgets/vis2vis-jsontemplate/assets/mode-raku-Dsga_hxk.js +1 -0
  309. package/widgets/vis2vis-jsontemplate/assets/mode-razor-HQ3WO4ht.js +5 -0
  310. package/widgets/vis2vis-jsontemplate/assets/mode-rdoc-DX5Wf-Fm.js +1 -0
  311. package/widgets/vis2vis-jsontemplate/assets/mode-red-BT--KnCa.js +1 -0
  312. package/widgets/vis2vis-jsontemplate/assets/mode-redshift-3AJ9eyaU.js +1 -0
  313. package/widgets/vis2vis-jsontemplate/assets/mode-rhtml-DTeq1gof.js +8 -0
  314. package/widgets/vis2vis-jsontemplate/assets/mode-robot-Cx7Ll-f_.js +1 -0
  315. package/widgets/vis2vis-jsontemplate/assets/mode-rst-66KrgJvy.js +1 -0
  316. package/widgets/vis2vis-jsontemplate/assets/mode-ruby-Bjton-Z6.js +1 -0
  317. package/widgets/vis2vis-jsontemplate/assets/mode-rust-C_dVH8Xm.js +1 -0
  318. package/widgets/vis2vis-jsontemplate/assets/mode-sac-CT3iemsq.js +1 -0
  319. package/widgets/vis2vis-jsontemplate/assets/mode-sass-BkHxYZza.js +1 -0
  320. package/widgets/vis2vis-jsontemplate/assets/mode-scad-DeOrShi9.js +1 -0
  321. package/widgets/vis2vis-jsontemplate/assets/mode-scala-BVbB_f1z.js +5 -0
  322. package/widgets/vis2vis-jsontemplate/assets/mode-scheme-B5C4oJuT.js +1 -0
  323. package/widgets/vis2vis-jsontemplate/assets/mode-scrypt-PF2qJgu2.js +1 -0
  324. package/widgets/vis2vis-jsontemplate/assets/mode-scss-DXZoSuRb.js +1 -0
  325. package/widgets/vis2vis-jsontemplate/assets/mode-sh-D24LzE3p.js +3 -0
  326. package/widgets/vis2vis-jsontemplate/assets/mode-sjs-BmDEcJsO.js +5 -0
  327. package/widgets/vis2vis-jsontemplate/assets/mode-slim-Cl_LtZ3D.js +7 -0
  328. package/widgets/vis2vis-jsontemplate/assets/mode-smarty-B7H45xSz.js +5 -0
  329. package/widgets/vis2vis-jsontemplate/assets/mode-smithy-20d5kx_y.js +1 -0
  330. package/widgets/vis2vis-jsontemplate/assets/mode-snippets-D8Hbyw7T.js +1 -0
  331. package/widgets/vis2vis-jsontemplate/assets/mode-soy_template-D0sFgNSx.js +5 -0
  332. package/widgets/vis2vis-jsontemplate/assets/mode-space-DSHFQGmQ.js +1 -0
  333. package/widgets/vis2vis-jsontemplate/assets/mode-sparql-DHyU529t.js +1 -0
  334. package/widgets/vis2vis-jsontemplate/assets/mode-sql-CVfIZpNN.js +1 -0
  335. package/widgets/vis2vis-jsontemplate/assets/mode-sqlserver-BJxt32YN.js +1 -0
  336. package/widgets/vis2vis-jsontemplate/assets/mode-stylus-0wnzE15x.js +1 -0
  337. package/widgets/vis2vis-jsontemplate/assets/mode-svg-Dw3_4UiU.js +5 -0
  338. package/widgets/vis2vis-jsontemplate/assets/mode-swift-CkQ9K8Zi.js +1 -0
  339. package/widgets/vis2vis-jsontemplate/assets/mode-tcl-CZjLIvue.js +1 -0
  340. package/widgets/vis2vis-jsontemplate/assets/mode-terraform-CoemOqbf.js +1 -0
  341. package/widgets/vis2vis-jsontemplate/assets/mode-tex-DderkMrs.js +1 -0
  342. package/widgets/vis2vis-jsontemplate/assets/mode-text-Cq8AEtu7.js +1 -0
  343. package/widgets/vis2vis-jsontemplate/assets/mode-textile-cQ4nh_8l.js +1 -0
  344. package/widgets/vis2vis-jsontemplate/assets/mode-toml-C7N8acrX.js +1 -0
  345. package/widgets/vis2vis-jsontemplate/assets/mode-tsv-BW4F9Csx.js +1 -0
  346. package/widgets/vis2vis-jsontemplate/assets/mode-tsx-DYTFAwD0.js +5 -0
  347. package/widgets/vis2vis-jsontemplate/assets/mode-turtle-D1Gj0Td4.js +1 -0
  348. package/widgets/vis2vis-jsontemplate/assets/mode-twig-BmRjVW7I.js +5 -0
  349. package/widgets/vis2vis-jsontemplate/assets/mode-typescript-B4UIWQGF.js +5 -0
  350. package/widgets/vis2vis-jsontemplate/assets/mode-vala-CQgsR3Iz.js +14 -0
  351. package/widgets/vis2vis-jsontemplate/assets/mode-vbscript-BkEqgnMM.js +4 -0
  352. package/widgets/vis2vis-jsontemplate/assets/mode-velocity-Bq3AJheK.js +5 -0
  353. package/widgets/vis2vis-jsontemplate/assets/mode-verilog-Cs9gK34N.js +1 -0
  354. package/widgets/vis2vis-jsontemplate/assets/mode-vhdl-B7El2bJx.js +1 -0
  355. package/widgets/vis2vis-jsontemplate/assets/mode-visualforce-hTvPHkdm.js +5 -0
  356. package/widgets/vis2vis-jsontemplate/assets/mode-vue-Bl9prrPT.js +5 -0
  357. package/widgets/vis2vis-jsontemplate/assets/mode-wollok-D--hCjHs.js +5 -0
  358. package/widgets/vis2vis-jsontemplate/assets/mode-xml-Ctgb3fQi.js +5 -0
  359. package/widgets/vis2vis-jsontemplate/assets/mode-xquery-CARgpScm.js +9 -0
  360. package/widgets/vis2vis-jsontemplate/assets/mode-yaml-anyfmPQH.js +1 -0
  361. package/widgets/vis2vis-jsontemplate/assets/mode-zeek-C0daUwuH.js +1 -0
  362. package/widgets/vis2vis-jsontemplate/assets/mode-zig-CTS8ECFM.js +1 -0
  363. package/widgets/vis2vis-jsontemplate/assets/mushcode-BmgSkBy5.js +1 -0
  364. package/widgets/vis2vis-jsontemplate/assets/mysql-3WOKxHIv.js +1 -0
  365. package/widgets/vis2vis-jsontemplate/assets/nasal-BgEGeagV.js +1 -0
  366. package/widgets/vis2vis-jsontemplate/assets/nginx-CRl0FtfM.js +1 -0
  367. package/widgets/vis2vis-jsontemplate/assets/nim-CuG1Iqzn.js +1 -0
  368. package/widgets/vis2vis-jsontemplate/assets/nix-1eqDJaJA.js +1 -0
  369. package/widgets/vis2vis-jsontemplate/assets/nsis-e4bU-iiA.js +1 -0
  370. package/widgets/vis2vis-jsontemplate/assets/nunjucks-BMaA-k2J.js +1 -0
  371. package/widgets/vis2vis-jsontemplate/assets/objectivec-CL_sencn.js +1 -0
  372. package/widgets/vis2vis-jsontemplate/assets/ocaml-BoV7EcQd.js +1 -0
  373. package/widgets/vis2vis-jsontemplate/assets/odin-BOFCi3x8.js +1 -0
  374. package/widgets/vis2vis-jsontemplate/assets/partiql-DoK4_fue.js +1 -0
  375. package/widgets/vis2vis-jsontemplate/assets/pascal-CocCapcg.js +1 -0
  376. package/widgets/vis2vis-jsontemplate/assets/perl-ixlOVPTq.js +348 -0
  377. package/widgets/vis2vis-jsontemplate/assets/pgsql-BravoAfx.js +1 -0
  378. package/widgets/vis2vis-jsontemplate/assets/php-Be-UnEia.js +384 -0
  379. package/widgets/vis2vis-jsontemplate/assets/php_laravel_blade-B93ny3oF.js +1 -0
  380. package/widgets/vis2vis-jsontemplate/assets/pig-D2exIm4c.js +1 -0
  381. package/widgets/vis2vis-jsontemplate/assets/plain_text-B8XuaXJO.js +1 -0
  382. package/widgets/vis2vis-jsontemplate/assets/plsql-D7a_3sch.js +1 -0
  383. package/widgets/vis2vis-jsontemplate/assets/powershell-1s7ZzFVb.js +1 -0
  384. package/widgets/vis2vis-jsontemplate/assets/praat-DUyb5Bk6.js +1 -0
  385. package/widgets/vis2vis-jsontemplate/assets/preload-helper-4fGslNWJ.js +1 -0
  386. package/widgets/vis2vis-jsontemplate/assets/prisma-mdDN7d2R.js +1 -0
  387. package/widgets/vis2vis-jsontemplate/assets/prolog-DqDHt9zx.js +1 -0
  388. package/widgets/vis2vis-jsontemplate/assets/properties-DZWGPhQI.js +1 -0
  389. package/widgets/vis2vis-jsontemplate/assets/protobuf-CXiyd_Mb.js +1 -0
  390. package/widgets/vis2vis-jsontemplate/assets/prql-IGFRnbNC.js +1 -0
  391. package/widgets/vis2vis-jsontemplate/assets/puppet-BtdJ4V45.js +1 -0
  392. package/widgets/vis2vis-jsontemplate/assets/python-U8q4K0Vt.js +159 -0
  393. package/widgets/vis2vis-jsontemplate/assets/qml-BWbXwHD7.js +1 -0
  394. package/widgets/vis2vis-jsontemplate/assets/r-CcxRgptb.js +122 -0
  395. package/widgets/vis2vis-jsontemplate/assets/raku-DVMDIfIU.js +1 -0
  396. package/widgets/vis2vis-jsontemplate/assets/razor-BbN5JHhl.js +1 -0
  397. package/widgets/vis2vis-jsontemplate/assets/rdoc-DciWg7B6.js +1 -0
  398. package/widgets/vis2vis-jsontemplate/assets/red-Ck9uqHNN.js +1 -0
  399. package/widgets/vis2vis-jsontemplate/assets/redshift-CAPRCA78.js +1 -0
  400. package/widgets/vis2vis-jsontemplate/assets/rhtml-CJbSFlVV.js +1 -0
  401. package/widgets/vis2vis-jsontemplate/assets/robot-BMbcQLsf.js +70 -0
  402. package/widgets/vis2vis-jsontemplate/assets/rst-Dcwn5Muz.js +23 -0
  403. package/widgets/vis2vis-jsontemplate/assets/ruby-CdOCDKFD.js +929 -0
  404. package/widgets/vis2vis-jsontemplate/assets/rust-CfkJXaem.js +1 -0
  405. package/widgets/vis2vis-jsontemplate/assets/sac-Cb2eIKD_.js +1 -0
  406. package/widgets/vis2vis-jsontemplate/assets/sass-iV1YOFQN.js +1 -0
  407. package/widgets/vis2vis-jsontemplate/assets/scad-CPs5wJAG.js +1 -0
  408. package/widgets/vis2vis-jsontemplate/assets/scala-DA1JuV2S.js +1 -0
  409. package/widgets/vis2vis-jsontemplate/assets/scheme-BFQyaXim.js +1 -0
  410. package/widgets/vis2vis-jsontemplate/assets/scrypt-CTtbT4Qh.js +1 -0
  411. package/widgets/vis2vis-jsontemplate/assets/scss-DWqyVAcU.js +1 -0
  412. package/widgets/vis2vis-jsontemplate/assets/sh-BHHjLho8.js +84 -0
  413. package/widgets/vis2vis-jsontemplate/assets/sjs-0z-JZE7a.js +1 -0
  414. package/widgets/vis2vis-jsontemplate/assets/slim-D60OEg6E.js +1 -0
  415. package/widgets/vis2vis-jsontemplate/assets/smarty-DsAF1IC8.js +1 -0
  416. package/widgets/vis2vis-jsontemplate/assets/smithy-WcmAd33S.js +1 -0
  417. package/widgets/vis2vis-jsontemplate/assets/snippets-CO92SWiA.js +10 -0
  418. package/widgets/vis2vis-jsontemplate/assets/soy_template-ChNi14w3.js +1 -0
  419. package/widgets/vis2vis-jsontemplate/assets/space-Czl6zHqh.js +1 -0
  420. package/widgets/vis2vis-jsontemplate/assets/sparql-Dt8_8yD1.js +1 -0
  421. package/widgets/vis2vis-jsontemplate/assets/sql-DXeZ8-B5.js +1 -0
  422. package/widgets/vis2vis-jsontemplate/assets/sqlserver-BgjEIbVF.js +70 -0
  423. package/widgets/vis2vis-jsontemplate/assets/stylus-DGub6yQ6.js +1 -0
  424. package/widgets/vis2vis-jsontemplate/assets/svg-BhLwQfQt.js +1 -0
  425. package/widgets/vis2vis-jsontemplate/assets/swift-C6jmn2lM.js +1 -0
  426. package/widgets/vis2vis-jsontemplate/assets/tcl-1m9QfSGo.js +93 -0
  427. package/widgets/vis2vis-jsontemplate/assets/terraform-C_A1grPI.js +1 -0
  428. package/widgets/vis2vis-jsontemplate/assets/tex-CnhL2AXi.js +191 -0
  429. package/widgets/vis2vis-jsontemplate/assets/text-BFTmH0YI.js +1 -0
  430. package/widgets/vis2vis-jsontemplate/assets/textile-DlCA5JQb.js +31 -0
  431. package/widgets/vis2vis-jsontemplate/assets/theme-ambiance-QsY8qCgd.js +221 -0
  432. package/widgets/vis2vis-jsontemplate/assets/theme-chaos-8iMnZQxF.js +160 -0
  433. package/widgets/vis2vis-jsontemplate/assets/theme-cloud9_day-DQoca-VF.js +161 -0
  434. package/widgets/vis2vis-jsontemplate/assets/theme-cloud9_night-DssalqUo.js +147 -0
  435. package/widgets/vis2vis-jsontemplate/assets/theme-cloud9_night_low_color-CmQdrSgm.js +135 -0
  436. package/widgets/vis2vis-jsontemplate/assets/theme-cloud_editor-D5Nbnfj-.js +220 -0
  437. package/widgets/vis2vis-jsontemplate/assets/theme-cloud_editor_dark-fj58gio2.js +223 -0
  438. package/widgets/vis2vis-jsontemplate/assets/theme-clouds-DrqFoPBZ.js +116 -0
  439. package/widgets/vis2vis-jsontemplate/assets/theme-cobalt-_ffUuzsT.js +138 -0
  440. package/widgets/vis2vis-jsontemplate/assets/theme-crimson_editor-CTFG4SkN.js +148 -0
  441. package/widgets/vis2vis-jsontemplate/assets/theme-dawn-NpopD5_s.js +131 -0
  442. package/widgets/vis2vis-jsontemplate/assets/theme-dracula-AuJ122rA.js +166 -0
  443. package/widgets/vis2vis-jsontemplate/assets/theme-dreamweaver-Ce_xMjNm.js +181 -0
  444. package/widgets/vis2vis-jsontemplate/assets/theme-eclipse-DDmYr769.js +118 -0
  445. package/widgets/vis2vis-jsontemplate/assets/theme-github-ChbFyXoG.js +129 -0
  446. package/widgets/vis2vis-jsontemplate/assets/theme-github_dark-DmOOvJg3.js +134 -0
  447. package/widgets/vis2vis-jsontemplate/assets/theme-github_light_default-jezXjzZJ.js +165 -0
  448. package/widgets/vis2vis-jsontemplate/assets/theme-gob-D4kuHx9p.js +134 -0
  449. package/widgets/vis2vis-jsontemplate/assets/theme-gruvbox-C-iK1SXn.js +100 -0
  450. package/widgets/vis2vis-jsontemplate/assets/theme-gruvbox_dark_hard-BcmKgsyJ.js +164 -0
  451. package/widgets/vis2vis-jsontemplate/assets/theme-gruvbox_light_hard-DOcAP-lF.js +168 -0
  452. package/widgets/vis2vis-jsontemplate/assets/theme-idle_fingers-Bwqiu7LM.js +117 -0
  453. package/widgets/vis2vis-jsontemplate/assets/theme-iplastic-DbYdo16h.js +145 -0
  454. package/widgets/vis2vis-jsontemplate/assets/theme-katzenmilch-BOYOV2ro.js +152 -0
  455. package/widgets/vis2vis-jsontemplate/assets/theme-kr_theme-BlP9076h.js +128 -0
  456. package/widgets/vis2vis-jsontemplate/assets/theme-kuroir-BlOX3HeP.js +79 -0
  457. package/widgets/vis2vis-jsontemplate/assets/theme-merbivore-Bvz6URwN.js +114 -0
  458. package/widgets/vis2vis-jsontemplate/assets/theme-merbivore_soft-D1HtoKW7.js +115 -0
  459. package/widgets/vis2vis-jsontemplate/assets/theme-mono_industrial-Dg8N7vqY.js +130 -0
  460. package/widgets/vis2vis-jsontemplate/assets/theme-nord_dark-zxguBIHl.js +112 -0
  461. package/widgets/vis2vis-jsontemplate/assets/theme-one_dark-CJuVaTY9.js +165 -0
  462. package/widgets/vis2vis-jsontemplate/assets/theme-pastel_on_dark-BWcTv7Gy.js +133 -0
  463. package/widgets/vis2vis-jsontemplate/assets/theme-solarized_dark-Bs2LPFFX.js +105 -0
  464. package/widgets/vis2vis-jsontemplate/assets/theme-solarized_light-CHLCOOLs.js +110 -0
  465. package/widgets/vis2vis-jsontemplate/assets/theme-sqlserver-Bu0pTZZV.js +172 -0
  466. package/widgets/vis2vis-jsontemplate/assets/theme-terminal-BNpfswc0.js +136 -0
  467. package/widgets/vis2vis-jsontemplate/assets/theme-textmate-C4jlQA6W.js +1 -0
  468. package/widgets/vis2vis-jsontemplate/assets/theme-tomorrow-CLBnQF3e.js +129 -0
  469. package/widgets/vis2vis-jsontemplate/assets/theme-tomorrow_night-CwCiF1XX.js +129 -0
  470. package/widgets/vis2vis-jsontemplate/assets/theme-tomorrow_night_blue-CE7iCYb0.js +126 -0
  471. package/widgets/vis2vis-jsontemplate/assets/theme-tomorrow_night_bright-Bf9pHl9K.js +145 -0
  472. package/widgets/vis2vis-jsontemplate/assets/theme-tomorrow_night_eighties-BW98rqfA.js +129 -0
  473. package/widgets/vis2vis-jsontemplate/assets/theme-twilight-CYW0LbgP.js +131 -0
  474. package/widgets/vis2vis-jsontemplate/assets/theme-vibrant_ink-D2R0WlUq.js +114 -0
  475. package/widgets/vis2vis-jsontemplate/assets/theme-xcode-DmV08Rqt.js +107 -0
  476. package/widgets/vis2vis-jsontemplate/assets/toml-BppM0J9G.js +1 -0
  477. package/widgets/vis2vis-jsontemplate/assets/translations-RCQ_bOWv.js +1 -0
  478. package/widgets/vis2vis-jsontemplate/assets/tsv-QCUAN7tM.js +1 -0
  479. package/widgets/vis2vis-jsontemplate/assets/tsx-DlBDpjXp.js +1 -0
  480. package/widgets/vis2vis-jsontemplate/assets/turtle-Bhvju8e_.js +1 -0
  481. package/widgets/vis2vis-jsontemplate/assets/twig-Dz6fJaYS.js +1 -0
  482. package/widgets/vis2vis-jsontemplate/assets/typescript-Dlq5jwkb.js +1 -0
  483. package/widgets/vis2vis-jsontemplate/assets/useTheme-CUUL_k-V.js +1 -0
  484. package/widgets/vis2vis-jsontemplate/assets/vala-CCClIoiP.js +72 -0
  485. package/widgets/vis2vis-jsontemplate/assets/vbscript-BmjSniHm.js +1 -0
  486. package/widgets/vis2vis-jsontemplate/assets/velocity-Eetpg6IF.js +29 -0
  487. package/widgets/vis2vis-jsontemplate/assets/verilog-JLsQfqCE.js +1 -0
  488. package/widgets/vis2vis-jsontemplate/assets/vhdl-BDSCxoSn.js +1 -0
  489. package/widgets/vis2vis-jsontemplate/assets/virtualExposes-6ZILnKxp.js +2 -0
  490. package/widgets/vis2vis-jsontemplate/assets/vis2visjsonTemplateWidgets__loadShare___mf_0_mui_mf_1_icons_mf_2_material__loadShare__-DQFbdvr3.js +1 -0
  491. package/widgets/vis2vis-jsontemplate/assets/vis2visjsonTemplateWidgets__loadShare__react__loadShare__-DIw4pDHA.js +1 -0
  492. package/widgets/vis2vis-jsontemplate/assets/vis2visjsonTemplateWidgets__mf_v__runtimeInit__mf_v__-Bg5OEhrp.js +5 -0
  493. package/widgets/vis2vis-jsontemplate/assets/visualforce-Bfu1Ak61.js +1 -0
  494. package/widgets/vis2vis-jsontemplate/assets/vue-BGFTp4kK.js +1 -0
  495. package/widgets/vis2vis-jsontemplate/assets/wollok-BRp-wwGk.js +85 -0
  496. package/widgets/vis2vis-jsontemplate/assets/worker-base-BPnv-em4.js +7 -0
  497. package/widgets/vis2vis-jsontemplate/assets/worker-coffee-BGt0WG_T.js +121 -0
  498. package/widgets/vis2vis-jsontemplate/assets/worker-css-DUK_OUGr.js +24 -0
  499. package/widgets/vis2vis-jsontemplate/assets/worker-html-DnXGSuo3.js +28 -0
  500. package/widgets/vis2vis-jsontemplate/assets/worker-javascript-DKHkjovd.js +26 -0
  501. package/widgets/vis2vis-jsontemplate/assets/worker-json-BD5o_G43.js +9 -0
  502. package/widgets/vis2vis-jsontemplate/assets/worker-lua-RZJAMBtk.js +10 -0
  503. package/widgets/vis2vis-jsontemplate/assets/worker-php-D7_ufyP-.js +9 -0
  504. package/widgets/vis2vis-jsontemplate/assets/worker-xml-BwUcqzAQ.js +8 -0
  505. package/widgets/vis2vis-jsontemplate/assets/worker-xquery-Bdainhib.js +53 -0
  506. package/widgets/vis2vis-jsontemplate/assets/worker-yaml-BtpWJJU1.js +36 -0
  507. package/widgets/vis2vis-jsontemplate/assets/xml-BH-GvKPg.js +1 -0
  508. package/widgets/vis2vis-jsontemplate/assets/xquery-BfjQchp6.js +62 -0
  509. package/widgets/vis2vis-jsontemplate/assets/yaml-B4Fo_RhL.js +1 -0
  510. package/widgets/vis2vis-jsontemplate/assets/zeek-CcoNTi-1.js +1 -0
  511. package/widgets/vis2vis-jsontemplate/assets/zig-syO4L9BM.js +1 -0
  512. package/widgets/vis2vis-jsontemplate/customWidgets.js +2 -0
  513. package/widgets/vis2vis-jsontemplate/img/jsontemplate.png +0 -0
  514. package/widgets/vis2vis-jsontemplate/img/vis-widget-demo.png +0 -0
@@ -0,0 +1,1532 @@
1
+ (function(f){if(typeof exports==="object"&&typeof module!=="undefined"){module.exports=f()}else if(typeof define==="function"&&define.amd){define([],f)}else{var g;if(typeof window!=="undefined"){g=window}else if(typeof global!=="undefined"){g=global}else if(typeof self!=="undefined"){g=self}else{g=this}g.ejs = f()}})(function(){var define,module,exports;return (function(){function e(t,n,r){function s(o,u){if(!n[o]){if(!t[o]){var a=typeof require=="function"&&require;if(!u&&a)return a(o,!0);if(i)return i(o,!0);var f=new Error("Cannot find module '"+o+"'");throw f.code="MODULE_NOT_FOUND",f}var l=n[o]={exports:{}};t[o][0].call(l.exports,function(e){var n=t[o][1][e];return s(n?n:e)},l,l.exports,e,t,n,r)}return n[o].exports}var i=typeof require=="function"&&require;for(var o=0;o<r.length;o++)s(r[o]);return s}return e})()({1:[function(require,module,exports){
2
+ /*
3
+ * EJS Embedded JavaScript templates
4
+ * Copyright 2112 Matthew Eernisse (mde@fleegix.org)
5
+ *
6
+ * Licensed under the Apache License, Version 2.0 (the "License");
7
+ * you may not use this file except in compliance with the License.
8
+ * You may obtain a copy of the License at
9
+ *
10
+ * http://www.apache.org/licenses/LICENSE-2.0
11
+ *
12
+ * Unless required by applicable law or agreed to in writing, software
13
+ * distributed under the License is distributed on an "AS IS" BASIS,
14
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
15
+ * See the License for the specific language governing permissions and
16
+ * limitations under the License.
17
+ *
18
+ */
19
+
20
+ 'use strict';
21
+
22
+ /**
23
+ * @file Embedded JavaScript templating engine. {@link http://ejs.co}
24
+ * @author Matthew Eernisse <mde@fleegix.org>
25
+ * @author Tiancheng "Timothy" Gu <timothygu99@gmail.com>
26
+ * @project EJS
27
+ * @license {@link http://www.apache.org/licenses/LICENSE-2.0 Apache License, Version 2.0}
28
+ */
29
+
30
+ /**
31
+ * EJS internal functions.
32
+ *
33
+ * Technically this "module" lies in the same file as {@link module:ejs}, for
34
+ * the sake of organization all the private functions re grouped into this
35
+ * module.
36
+ *
37
+ * @module ejs-internal
38
+ * @private
39
+ */
40
+
41
+ /**
42
+ * Embedded JavaScript templating engine.
43
+ *
44
+ * @module ejs
45
+ * @public
46
+ */
47
+
48
+ var fs = require('fs');
49
+ var path = require('path');
50
+ var utils = require('./utils');
51
+
52
+ var scopeOptionWarned = false;
53
+ var _VERSION_STRING = require('../package.json').version;
54
+ var _DEFAULT_OPEN_DELIMITER = '<';
55
+ var _DEFAULT_CLOSE_DELIMITER = '>';
56
+ var _DEFAULT_DELIMITER = '%';
57
+ var _DEFAULT_LOCALS_NAME = 'locals';
58
+ var _NAME = 'ejs';
59
+ var _REGEX_STRING = '(<%%|%%>|<%=|<%-|<%_|<%#|<%|%>|-%>|_%>)';
60
+ var _OPTS_PASSABLE_WITH_DATA = ['delimiter', 'scope', 'context', 'debug', 'compileDebug',
61
+ 'client', '_with', 'rmWhitespace', 'strict', 'filename', 'async'];
62
+ // We don't allow 'cache' option to be passed in the data obj for
63
+ // the normal `render` call, but this is where Express 2 & 3 put it
64
+ // so we make an exception for `renderFile`
65
+ var _OPTS_PASSABLE_WITH_DATA_EXPRESS = _OPTS_PASSABLE_WITH_DATA.concat('cache');
66
+ var _BOM = /^\uFEFF/;
67
+
68
+ /**
69
+ * EJS template function cache. This can be a LRU object from lru-cache NPM
70
+ * module. By default, it is {@link module:utils.cache}, a simple in-process
71
+ * cache that grows continuously.
72
+ *
73
+ * @type {Cache}
74
+ */
75
+
76
+ exports.cache = utils.cache;
77
+
78
+ /**
79
+ * Custom file loader. Useful for template preprocessing or restricting access
80
+ * to a certain part of the filesystem.
81
+ *
82
+ * @type {fileLoader}
83
+ */
84
+
85
+ exports.fileLoader = fs.readFileSync;
86
+
87
+ /**
88
+ * Name of the object containing the locals.
89
+ *
90
+ * This variable is overridden by {@link Options}`.localsName` if it is not
91
+ * `undefined`.
92
+ *
93
+ * @type {String}
94
+ * @public
95
+ */
96
+
97
+ exports.localsName = _DEFAULT_LOCALS_NAME;
98
+
99
+ /**
100
+ * Promise implementation -- defaults to the native implementation if available
101
+ * This is mostly just for testability
102
+ *
103
+ * @type {Function}
104
+ * @public
105
+ */
106
+
107
+ exports.promiseImpl = (new Function('return this;'))().Promise;
108
+
109
+ /**
110
+ * Get the path to the included file from the parent file path and the
111
+ * specified path.
112
+ *
113
+ * @param {String} name specified path
114
+ * @param {String} filename parent file path
115
+ * @param {Boolean} isDir parent file path whether is directory
116
+ * @return {String}
117
+ */
118
+ exports.resolveInclude = function(name, filename, isDir) {
119
+ var dirname = path.dirname;
120
+ var extname = path.extname;
121
+ var resolve = path.resolve;
122
+ var includePath = resolve(isDir ? filename : dirname(filename), name);
123
+ var ext = extname(name);
124
+ if (!ext) {
125
+ includePath += '.ejs';
126
+ }
127
+ return includePath;
128
+ };
129
+
130
+ /**
131
+ * Get the path to the included file by Options
132
+ *
133
+ * @param {String} path specified path
134
+ * @param {Options} options compilation options
135
+ * @return {String}
136
+ */
137
+ function getIncludePath(path, options) {
138
+ var includePath;
139
+ var filePath;
140
+ var views = options.views;
141
+ var match = /^[A-Za-z]+:\\|^\//.exec(path);
142
+
143
+ // Abs path
144
+ if (match && match.length) {
145
+ includePath = exports.resolveInclude(path.replace(/^\/*/,''), options.root || '/', true);
146
+ }
147
+ // Relative paths
148
+ else {
149
+ // Look relative to a passed filename first
150
+ if (options.filename) {
151
+ filePath = exports.resolveInclude(path, options.filename);
152
+ if (fs.existsSync(filePath)) {
153
+ includePath = filePath;
154
+ }
155
+ }
156
+ // Then look in any views directories
157
+ if (!includePath) {
158
+ if (Array.isArray(views) && views.some(function (v) {
159
+ filePath = exports.resolveInclude(path, v, true);
160
+ return fs.existsSync(filePath);
161
+ })) {
162
+ includePath = filePath;
163
+ }
164
+ }
165
+ if (!includePath) {
166
+ throw new Error('Could not find the include file "' +
167
+ options.escapeFunction(path) + '"');
168
+ }
169
+ }
170
+ return includePath;
171
+ }
172
+
173
+ /**
174
+ * Get the template from a string or a file, either compiled on-the-fly or
175
+ * read from cache (if enabled), and cache the template if needed.
176
+ *
177
+ * If `template` is not set, the file specified in `options.filename` will be
178
+ * read.
179
+ *
180
+ * If `options.cache` is true, this function reads the file from
181
+ * `options.filename` so it must be set prior to calling this function.
182
+ *
183
+ * @memberof module:ejs-internal
184
+ * @param {Options} options compilation options
185
+ * @param {String} [template] template source
186
+ * @return {(TemplateFunction|ClientFunction)}
187
+ * Depending on the value of `options.client`, either type might be returned.
188
+ * @static
189
+ */
190
+
191
+ function handleCache(options, template) {
192
+ var func;
193
+ var filename = options.filename;
194
+ var hasTemplate = arguments.length > 1;
195
+
196
+ if (options.cache) {
197
+ if (!filename) {
198
+ throw new Error('cache option requires a filename');
199
+ }
200
+ func = exports.cache.get(filename);
201
+ if (func) {
202
+ return func;
203
+ }
204
+ if (!hasTemplate) {
205
+ template = fileLoader(filename).toString().replace(_BOM, '');
206
+ }
207
+ }
208
+ else if (!hasTemplate) {
209
+ // istanbul ignore if: should not happen at all
210
+ if (!filename) {
211
+ throw new Error('Internal EJS error: no file name or template '
212
+ + 'provided');
213
+ }
214
+ template = fileLoader(filename).toString().replace(_BOM, '');
215
+ }
216
+ func = exports.compile(template, options);
217
+ if (options.cache) {
218
+ exports.cache.set(filename, func);
219
+ }
220
+ return func;
221
+ }
222
+
223
+ /**
224
+ * Try calling handleCache with the given options and data and call the
225
+ * callback with the result. If an error occurs, call the callback with
226
+ * the error. Used by renderFile().
227
+ *
228
+ * @memberof module:ejs-internal
229
+ * @param {Options} options compilation options
230
+ * @param {Object} data template data
231
+ * @param {RenderFileCallback} cb callback
232
+ * @static
233
+ */
234
+
235
+ function tryHandleCache(options, data, cb) {
236
+ var result;
237
+ if (!cb) {
238
+ if (typeof exports.promiseImpl == 'function') {
239
+ return new exports.promiseImpl(function (resolve, reject) {
240
+ try {
241
+ result = handleCache(options)(data);
242
+ resolve(result);
243
+ }
244
+ catch (err) {
245
+ reject(err);
246
+ }
247
+ });
248
+ }
249
+ else {
250
+ throw new Error('Please provide a callback function');
251
+ }
252
+ }
253
+ else {
254
+ try {
255
+ result = handleCache(options)(data);
256
+ }
257
+ catch (err) {
258
+ return cb(err);
259
+ }
260
+
261
+ cb(null, result);
262
+ }
263
+ }
264
+
265
+ /**
266
+ * fileLoader is independent
267
+ *
268
+ * @param {String} filePath ejs file path.
269
+ * @return {String} The contents of the specified file.
270
+ * @static
271
+ */
272
+
273
+ function fileLoader(filePath){
274
+ return exports.fileLoader(filePath);
275
+ }
276
+
277
+ /**
278
+ * Get the template function.
279
+ *
280
+ * If `options.cache` is `true`, then the template is cached.
281
+ *
282
+ * @memberof module:ejs-internal
283
+ * @param {String} path path for the specified file
284
+ * @param {Options} options compilation options
285
+ * @return {(TemplateFunction|ClientFunction)}
286
+ * Depending on the value of `options.client`, either type might be returned
287
+ * @static
288
+ */
289
+
290
+ function includeFile(path, options) {
291
+ var opts = utils.shallowCopy({}, options);
292
+ opts.filename = getIncludePath(path, opts);
293
+ return handleCache(opts);
294
+ }
295
+
296
+ /**
297
+ * Re-throw the given `err` in context to the `str` of ejs, `filename`, and
298
+ * `lineno`.
299
+ *
300
+ * @implements RethrowCallback
301
+ * @memberof module:ejs-internal
302
+ * @param {Error} err Error object
303
+ * @param {String} str EJS source
304
+ * @param {String} filename file name of the EJS file
305
+ * @param {String} lineno line number of the error
306
+ * @static
307
+ */
308
+
309
+ function rethrow(err, str, flnm, lineno, esc){
310
+ var lines = str.split('\n');
311
+ var start = Math.max(lineno - 3, 0);
312
+ var end = Math.min(lines.length, lineno + 3);
313
+ var filename = esc(flnm); // eslint-disable-line
314
+ // Error context
315
+ var context = lines.slice(start, end).map(function (line, i){
316
+ var curr = i + start + 1;
317
+ return (curr == lineno ? ' >> ' : ' ')
318
+ + curr
319
+ + '| '
320
+ + line;
321
+ }).join('\n');
322
+
323
+ // Alter exception message
324
+ err.path = filename;
325
+ err.message = (filename || 'ejs') + ':'
326
+ + lineno + '\n'
327
+ + context + '\n\n'
328
+ + err.message;
329
+
330
+ throw err;
331
+ }
332
+
333
+ function stripSemi(str){
334
+ return str.replace(/;(\s*$)/, '$1');
335
+ }
336
+
337
+ /**
338
+ * Compile the given `str` of ejs into a template function.
339
+ *
340
+ * @param {String} template EJS template
341
+ *
342
+ * @param {Options} opts compilation options
343
+ *
344
+ * @return {(TemplateFunction|ClientFunction)}
345
+ * Depending on the value of `opts.client`, either type might be returned.
346
+ * Note that the return type of the function also depends on the value of `opts.async`.
347
+ * @public
348
+ */
349
+
350
+ exports.compile = function compile(template, opts) {
351
+ var templ;
352
+
353
+ // v1 compat
354
+ // 'scope' is 'context'
355
+ // FIXME: Remove this in a future version
356
+ if (opts && opts.scope) {
357
+ if (!scopeOptionWarned){
358
+ console.warn('`scope` option is deprecated and will be removed in EJS 3');
359
+ scopeOptionWarned = true;
360
+ }
361
+ if (!opts.context) {
362
+ opts.context = opts.scope;
363
+ }
364
+ delete opts.scope;
365
+ }
366
+ templ = new Template(template, opts);
367
+ return templ.compile();
368
+ };
369
+
370
+ /**
371
+ * Render the given `template` of ejs.
372
+ *
373
+ * If you would like to include options but not data, you need to explicitly
374
+ * call this function with `data` being an empty object or `null`.
375
+ *
376
+ * @param {String} template EJS template
377
+ * @param {Object} [data={}] template data
378
+ * @param {Options} [opts={}] compilation and rendering options
379
+ * @return {(String|Promise<String>)}
380
+ * Return value type depends on `opts.async`.
381
+ * @public
382
+ */
383
+
384
+ exports.render = function (template, d, o) {
385
+ var data = d || {};
386
+ var opts = o || {};
387
+
388
+ // No options object -- if there are optiony names
389
+ // in the data, copy them to options
390
+ if (arguments.length == 2) {
391
+ utils.shallowCopyFromList(opts, data, _OPTS_PASSABLE_WITH_DATA);
392
+ }
393
+
394
+ return handleCache(opts, template)(data);
395
+ };
396
+
397
+ /**
398
+ * Render an EJS file at the given `path` and callback `cb(err, str)`.
399
+ *
400
+ * If you would like to include options but not data, you need to explicitly
401
+ * call this function with `data` being an empty object or `null`.
402
+ *
403
+ * @param {String} path path to the EJS file
404
+ * @param {Object} [data={}] template data
405
+ * @param {Options} [opts={}] compilation and rendering options
406
+ * @param {RenderFileCallback} cb callback
407
+ * @public
408
+ */
409
+
410
+ exports.renderFile = function () {
411
+ var args = Array.prototype.slice.call(arguments);
412
+ var filename = args.shift();
413
+ var cb;
414
+ var opts = {filename: filename};
415
+ var data;
416
+ var viewOpts;
417
+
418
+ // Do we have a callback?
419
+ if (typeof arguments[arguments.length - 1] == 'function') {
420
+ cb = args.pop();
421
+ }
422
+ // Do we have data/opts?
423
+ if (args.length) {
424
+ // Should always have data obj
425
+ data = args.shift();
426
+ // Normal passed opts (data obj + opts obj)
427
+ if (args.length) {
428
+ // Use shallowCopy so we don't pollute passed in opts obj with new vals
429
+ utils.shallowCopy(opts, args.pop());
430
+ }
431
+ // Special casing for Express (settings + opts-in-data)
432
+ else {
433
+ // Express 3 and 4
434
+ if (data.settings) {
435
+ // Pull a few things from known locations
436
+ if (data.settings.views) {
437
+ opts.views = data.settings.views;
438
+ }
439
+ if (data.settings['view cache']) {
440
+ opts.cache = true;
441
+ }
442
+ // Undocumented after Express 2, but still usable, esp. for
443
+ // items that are unsafe to be passed along with data, like `root`
444
+ viewOpts = data.settings['view options'];
445
+ if (viewOpts) {
446
+ utils.shallowCopy(opts, viewOpts);
447
+ }
448
+ }
449
+ // Express 2 and lower, values set in app.locals, or people who just
450
+ // want to pass options in their data. NOTE: These values will override
451
+ // anything previously set in settings or settings['view options']
452
+ utils.shallowCopyFromList(opts, data, _OPTS_PASSABLE_WITH_DATA_EXPRESS);
453
+ }
454
+ opts.filename = filename;
455
+ }
456
+ else {
457
+ data = {};
458
+ }
459
+
460
+ return tryHandleCache(opts, data, cb);
461
+ };
462
+
463
+ /**
464
+ * Clear intermediate JavaScript cache. Calls {@link Cache#reset}.
465
+ * @public
466
+ */
467
+
468
+ /**
469
+ * EJS template class
470
+ * @public
471
+ */
472
+ exports.Template = Template;
473
+
474
+ exports.clearCache = function () {
475
+ exports.cache.reset();
476
+ };
477
+
478
+ function Template(text, opts) {
479
+ opts = opts || {};
480
+ var options = {};
481
+ this.templateText = text;
482
+ this.mode = null;
483
+ this.truncate = false;
484
+ this.currentLine = 1;
485
+ this.source = '';
486
+ this.dependencies = [];
487
+ options.client = opts.client || false;
488
+ options.escapeFunction = opts.escape || opts.escapeFunction || utils.escapeXML;
489
+ options.compileDebug = opts.compileDebug !== false;
490
+ options.debug = !!opts.debug;
491
+ options.filename = opts.filename;
492
+ options.openDelimiter = opts.openDelimiter || exports.openDelimiter || _DEFAULT_OPEN_DELIMITER;
493
+ options.closeDelimiter = opts.closeDelimiter || exports.closeDelimiter || _DEFAULT_CLOSE_DELIMITER;
494
+ options.delimiter = opts.delimiter || exports.delimiter || _DEFAULT_DELIMITER;
495
+ options.strict = opts.strict || false;
496
+ options.context = opts.context;
497
+ options.cache = opts.cache || false;
498
+ options.rmWhitespace = opts.rmWhitespace;
499
+ options.root = opts.root;
500
+ options.outputFunctionName = opts.outputFunctionName;
501
+ options.localsName = opts.localsName || exports.localsName || _DEFAULT_LOCALS_NAME;
502
+ options.views = opts.views;
503
+ options.async = opts.async;
504
+ options.destructuredLocals = opts.destructuredLocals;
505
+ options.legacyInclude = typeof opts.legacyInclude != 'undefined' ? !!opts.legacyInclude : true;
506
+
507
+ if (options.strict) {
508
+ options._with = false;
509
+ }
510
+ else {
511
+ options._with = typeof opts._with != 'undefined' ? opts._with : true;
512
+ }
513
+
514
+ this.opts = options;
515
+
516
+ this.regex = this.createRegex();
517
+ }
518
+
519
+ Template.modes = {
520
+ EVAL: 'eval',
521
+ ESCAPED: 'escaped',
522
+ RAW: 'raw',
523
+ COMMENT: 'comment',
524
+ LITERAL: 'literal'
525
+ };
526
+
527
+ Template.prototype = {
528
+ createRegex: function () {
529
+ var str = _REGEX_STRING;
530
+ var delim = utils.escapeRegExpChars(this.opts.delimiter);
531
+ var open = utils.escapeRegExpChars(this.opts.openDelimiter);
532
+ var close = utils.escapeRegExpChars(this.opts.closeDelimiter);
533
+ str = str.replace(/%/g, delim)
534
+ .replace(/</g, open)
535
+ .replace(/>/g, close);
536
+ return new RegExp(str);
537
+ },
538
+
539
+ compile: function () {
540
+ var src;
541
+ var fn;
542
+ var opts = this.opts;
543
+ var prepended = '';
544
+ var appended = '';
545
+ var escapeFn = opts.escapeFunction;
546
+ var ctor;
547
+
548
+ if (!this.source) {
549
+ this.generateSource();
550
+ prepended +=
551
+ ' var __output = "";\n' +
552
+ ' function __append(s) { if (s !== undefined && s !== null) __output += s }\n';
553
+ if (opts.outputFunctionName) {
554
+ prepended += ' var ' + opts.outputFunctionName + ' = __append;' + '\n';
555
+ }
556
+ if (opts.destructuredLocals && opts.destructuredLocals.length) {
557
+ var destructuring = ' var __locals = (' + opts.localsName + ' || {}),\n';
558
+ for (var i = 0; i < opts.destructuredLocals.length; i++) {
559
+ var name = opts.destructuredLocals[i];
560
+ if (i > 0) {
561
+ destructuring += ',\n ';
562
+ }
563
+ destructuring += name + ' = __locals.' + name;
564
+ }
565
+ prepended += destructuring + ';\n';
566
+ }
567
+ if (opts._with !== false) {
568
+ prepended += ' with (' + opts.localsName + ' || {}) {' + '\n';
569
+ appended += ' }' + '\n';
570
+ }
571
+ appended += ' return __output;' + '\n';
572
+ this.source = prepended + this.source + appended;
573
+ }
574
+
575
+ if (opts.compileDebug) {
576
+ src = 'var __line = 1' + '\n'
577
+ + ' , __lines = ' + JSON.stringify(this.templateText) + '\n'
578
+ + ' , __filename = ' + (opts.filename ?
579
+ JSON.stringify(opts.filename) : 'undefined') + ';' + '\n'
580
+ + 'try {' + '\n'
581
+ + this.source
582
+ + '} catch (e) {' + '\n'
583
+ + ' rethrow(e, __lines, __filename, __line, escapeFn);' + '\n'
584
+ + '}' + '\n';
585
+ }
586
+ else {
587
+ src = this.source;
588
+ }
589
+
590
+ if (opts.client) {
591
+ src = 'escapeFn = escapeFn || ' + escapeFn.toString() + ';' + '\n' + src;
592
+ if (opts.compileDebug) {
593
+ src = 'rethrow = rethrow || ' + rethrow.toString() + ';' + '\n' + src;
594
+ }
595
+ }
596
+
597
+ if (opts.strict) {
598
+ src = '"use strict";\n' + src;
599
+ }
600
+ if (opts.debug) {
601
+ console.log(src);
602
+ }
603
+ if (opts.compileDebug && opts.filename) {
604
+ src = src + '\n'
605
+ + '//# sourceURL=' + opts.filename + '\n';
606
+ }
607
+
608
+ try {
609
+ if (opts.async) {
610
+ // Have to use generated function for this, since in envs without support,
611
+ // it breaks in parsing
612
+ try {
613
+ ctor = (new Function('return (async function(){}).constructor;'))();
614
+ }
615
+ catch(e) {
616
+ if (e instanceof SyntaxError) {
617
+ throw new Error('This environment does not support async/await');
618
+ }
619
+ else {
620
+ throw e;
621
+ }
622
+ }
623
+ }
624
+ else {
625
+ ctor = Function;
626
+ }
627
+ fn = new ctor(opts.localsName + ', escapeFn, include, rethrow', src);
628
+ }
629
+ catch(e) {
630
+ // istanbul ignore else
631
+ if (e instanceof SyntaxError) {
632
+ if (opts.filename) {
633
+ e.message += ' in ' + opts.filename;
634
+ }
635
+ e.message += ' while compiling ejs\n\n';
636
+ e.message += 'If the above error is not helpful, you may want to try EJS-Lint:\n';
637
+ e.message += 'https://github.com/RyanZim/EJS-Lint';
638
+ if (!opts.async) {
639
+ e.message += '\n';
640
+ e.message += 'Or, if you meant to create an async function, pass `async: true` as an option.';
641
+ }
642
+ }
643
+ throw e;
644
+ }
645
+
646
+ // Return a callable function which will execute the function
647
+ // created by the source-code, with the passed data as locals
648
+ // Adds a local `include` function which allows full recursive include
649
+ var returnedFn = opts.client ? fn : function anonymous(data) {
650
+ var include = function (path, includeData) {
651
+ var d = utils.shallowCopy({}, data);
652
+ if (includeData) {
653
+ d = utils.shallowCopy(d, includeData);
654
+ }
655
+ return includeFile(path, opts)(d);
656
+ };
657
+ return fn.apply(opts.context, [data || {}, escapeFn, include, rethrow]);
658
+ };
659
+ returnedFn.dependencies = this.dependencies;
660
+ if (opts.filename && typeof Object.defineProperty === 'function') {
661
+ var filename = opts.filename;
662
+ var basename = path.basename(filename, path.extname(filename));
663
+ try {
664
+ Object.defineProperty(returnedFn, 'name', {
665
+ value: basename,
666
+ writable: false,
667
+ enumerable: false,
668
+ configurable: true
669
+ });
670
+ } catch (e) {/* ignore */}
671
+ }
672
+ return returnedFn;
673
+ },
674
+
675
+ generateSource: function () {
676
+ var opts = this.opts;
677
+
678
+ if (opts.rmWhitespace) {
679
+ // Have to use two separate replace here as `^` and `$` operators don't
680
+ // work well with `\r` and empty lines don't work well with the `m` flag.
681
+ this.templateText =
682
+ this.templateText.replace(/[\r\n]+/g, '\n').replace(/^\s+|\s+$/gm, '');
683
+ }
684
+
685
+ // Slurp spaces and tabs before <%_ and after _%>
686
+ this.templateText =
687
+ this.templateText.replace(/[ \t]*<%_/gm, '<%_').replace(/_%>[ \t]*/gm, '_%>');
688
+
689
+ var self = this;
690
+ var matches = this.parseTemplateText();
691
+ var d = this.opts.delimiter;
692
+ var o = this.opts.openDelimiter;
693
+ var c = this.opts.closeDelimiter;
694
+
695
+ if (matches && matches.length) {
696
+ matches.forEach(function (line, index) {
697
+ var closing;
698
+ // If this is an opening tag, check for closing tags
699
+ // FIXME: May end up with some false positives here
700
+ // Better to store modes as k/v with openDelimiter + delimiter as key
701
+ // Then this can simply check against the map
702
+ if ( line.indexOf(o + d) === 0 // If it is a tag
703
+ && line.indexOf(o + d + d) !== 0) { // and is not escaped
704
+ closing = matches[index + 2];
705
+ if (!(closing == d + c || closing == '-' + d + c || closing == '_' + d + c)) {
706
+ throw new Error('Could not find matching close tag for "' + line + '".');
707
+ }
708
+ }
709
+ self.scanLine(line);
710
+ });
711
+ }
712
+
713
+ },
714
+
715
+ parseTemplateText: function () {
716
+ var str = this.templateText;
717
+ var pat = this.regex;
718
+ var result = pat.exec(str);
719
+ var arr = [];
720
+ var firstPos;
721
+
722
+ while (result) {
723
+ firstPos = result.index;
724
+
725
+ if (firstPos !== 0) {
726
+ arr.push(str.substring(0, firstPos));
727
+ str = str.slice(firstPos);
728
+ }
729
+
730
+ arr.push(result[0]);
731
+ str = str.slice(result[0].length);
732
+ result = pat.exec(str);
733
+ }
734
+
735
+ if (str) {
736
+ arr.push(str);
737
+ }
738
+
739
+ return arr;
740
+ },
741
+
742
+ _addOutput: function (line) {
743
+ if (this.truncate) {
744
+ // Only replace single leading linebreak in the line after
745
+ // -%> tag -- this is the single, trailing linebreak
746
+ // after the tag that the truncation mode replaces
747
+ // Handle Win / Unix / old Mac linebreaks -- do the \r\n
748
+ // combo first in the regex-or
749
+ line = line.replace(/^(?:\r\n|\r|\n)/, '');
750
+ this.truncate = false;
751
+ }
752
+ if (!line) {
753
+ return line;
754
+ }
755
+
756
+ // Preserve literal slashes
757
+ line = line.replace(/\\/g, '\\\\');
758
+
759
+ // Convert linebreaks
760
+ line = line.replace(/\n/g, '\\n');
761
+ line = line.replace(/\r/g, '\\r');
762
+
763
+ // Escape double-quotes
764
+ // - this will be the delimiter during execution
765
+ line = line.replace(/"/g, '\\"');
766
+ this.source += ' ; __append("' + line + '")' + '\n';
767
+ },
768
+
769
+ scanLine: function (line) {
770
+ var self = this;
771
+ var d = this.opts.delimiter;
772
+ var o = this.opts.openDelimiter;
773
+ var c = this.opts.closeDelimiter;
774
+ var newLineCount = 0;
775
+
776
+ newLineCount = (line.split('\n').length - 1);
777
+
778
+ switch (line) {
779
+ case o + d:
780
+ case o + d + '_':
781
+ this.mode = Template.modes.EVAL;
782
+ break;
783
+ case o + d + '=':
784
+ this.mode = Template.modes.ESCAPED;
785
+ break;
786
+ case o + d + '-':
787
+ this.mode = Template.modes.RAW;
788
+ break;
789
+ case o + d + '#':
790
+ this.mode = Template.modes.COMMENT;
791
+ break;
792
+ case o + d + d:
793
+ this.mode = Template.modes.LITERAL;
794
+ this.source += ' ; __append("' + line.replace(o + d + d, o + d) + '")' + '\n';
795
+ break;
796
+ case d + d + c:
797
+ this.mode = Template.modes.LITERAL;
798
+ this.source += ' ; __append("' + line.replace(d + d + c, d + c) + '")' + '\n';
799
+ break;
800
+ case d + c:
801
+ case '-' + d + c:
802
+ case '_' + d + c:
803
+ if (this.mode == Template.modes.LITERAL) {
804
+ this._addOutput(line);
805
+ }
806
+
807
+ this.mode = null;
808
+ this.truncate = line.indexOf('-') === 0 || line.indexOf('_') === 0;
809
+ break;
810
+ default:
811
+ // In script mode, depends on type of tag
812
+ if (this.mode) {
813
+ // If '//' is found without a line break, add a line break.
814
+ switch (this.mode) {
815
+ case Template.modes.EVAL:
816
+ case Template.modes.ESCAPED:
817
+ case Template.modes.RAW:
818
+ if (line.lastIndexOf('//') > line.lastIndexOf('\n')) {
819
+ line += '\n';
820
+ }
821
+ }
822
+ switch (this.mode) {
823
+ // Just executing code
824
+ case Template.modes.EVAL:
825
+ this.source += ' ; ' + line + '\n';
826
+ break;
827
+ // Exec, esc, and output
828
+ case Template.modes.ESCAPED:
829
+ this.source += ' ; __append(escapeFn(' + stripSemi(line) + '))' + '\n';
830
+ break;
831
+ // Exec and output
832
+ case Template.modes.RAW:
833
+ this.source += ' ; __append(' + stripSemi(line) + ')' + '\n';
834
+ break;
835
+ case Template.modes.COMMENT:
836
+ // Do nothing
837
+ break;
838
+ // Literal <%% mode, append as raw output
839
+ case Template.modes.LITERAL:
840
+ this._addOutput(line);
841
+ break;
842
+ }
843
+ }
844
+ // In string mode, just add the output
845
+ else {
846
+ this._addOutput(line);
847
+ }
848
+ }
849
+
850
+ if (self.opts.compileDebug && newLineCount) {
851
+ this.currentLine += newLineCount;
852
+ this.source += ' ; __line = ' + this.currentLine + '\n';
853
+ }
854
+ }
855
+ };
856
+
857
+ /**
858
+ * Escape characters reserved in XML.
859
+ *
860
+ * This is simply an export of {@link module:utils.escapeXML}.
861
+ *
862
+ * If `markup` is `undefined` or `null`, the empty string is returned.
863
+ *
864
+ * @param {String} markup Input string
865
+ * @return {String} Escaped string
866
+ * @public
867
+ * @func
868
+ * */
869
+ exports.escapeXML = utils.escapeXML;
870
+
871
+ /**
872
+ * Express.js support.
873
+ *
874
+ * This is an alias for {@link module:ejs.renderFile}, in order to support
875
+ * Express.js out-of-the-box.
876
+ *
877
+ * @func
878
+ */
879
+
880
+ exports.__express = exports.renderFile;
881
+
882
+ /**
883
+ * Version of EJS.
884
+ *
885
+ * @readonly
886
+ * @type {String}
887
+ * @public
888
+ */
889
+
890
+ exports.VERSION = _VERSION_STRING;
891
+
892
+ /**
893
+ * Name for detection of EJS.
894
+ *
895
+ * @readonly
896
+ * @type {String}
897
+ * @public
898
+ */
899
+
900
+ exports.name = _NAME;
901
+
902
+ /* istanbul ignore if */
903
+ if (typeof window != 'undefined') {
904
+ window.ejs = exports;
905
+ }
906
+
907
+ },{"../package.json":6,"./utils":2,"fs":3,"path":4}],2:[function(require,module,exports){
908
+ /*
909
+ * EJS Embedded JavaScript templates
910
+ * Copyright 2112 Matthew Eernisse (mde@fleegix.org)
911
+ *
912
+ * Licensed under the Apache License, Version 2.0 (the "License");
913
+ * you may not use this file except in compliance with the License.
914
+ * You may obtain a copy of the License at
915
+ *
916
+ * http://www.apache.org/licenses/LICENSE-2.0
917
+ *
918
+ * Unless required by applicable law or agreed to in writing, software
919
+ * distributed under the License is distributed on an "AS IS" BASIS,
920
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
921
+ * See the License for the specific language governing permissions and
922
+ * limitations under the License.
923
+ *
924
+ */
925
+
926
+ /**
927
+ * Private utility functions
928
+ * @module utils
929
+ * @private
930
+ */
931
+
932
+ 'use strict';
933
+
934
+ var regExpChars = /[|\\{}()[\]^$+*?.]/g;
935
+
936
+ /**
937
+ * Escape characters reserved in regular expressions.
938
+ *
939
+ * If `string` is `undefined` or `null`, the empty string is returned.
940
+ *
941
+ * @param {String} string Input string
942
+ * @return {String} Escaped string
943
+ * @static
944
+ * @private
945
+ */
946
+ exports.escapeRegExpChars = function (string) {
947
+ // istanbul ignore if
948
+ if (!string) {
949
+ return '';
950
+ }
951
+ return String(string).replace(regExpChars, '\\$&');
952
+ };
953
+
954
+ var _ENCODE_HTML_RULES = {
955
+ '&': '&amp;',
956
+ '<': '&lt;',
957
+ '>': '&gt;',
958
+ '"': '&#34;',
959
+ "'": '&#39;'
960
+ };
961
+ var _MATCH_HTML = /[&<>'"]/g;
962
+
963
+ function encode_char(c) {
964
+ return _ENCODE_HTML_RULES[c] || c;
965
+ }
966
+
967
+ /**
968
+ * Stringified version of constants used by {@link module:utils.escapeXML}.
969
+ *
970
+ * It is used in the process of generating {@link ClientFunction}s.
971
+ *
972
+ * @readonly
973
+ * @type {String}
974
+ */
975
+
976
+ var escapeFuncStr =
977
+ 'var _ENCODE_HTML_RULES = {\n'
978
+ + ' "&": "&amp;"\n'
979
+ + ' , "<": "&lt;"\n'
980
+ + ' , ">": "&gt;"\n'
981
+ + ' , \'"\': "&#34;"\n'
982
+ + ' , "\'": "&#39;"\n'
983
+ + ' }\n'
984
+ + ' , _MATCH_HTML = /[&<>\'"]/g;\n'
985
+ + 'function encode_char(c) {\n'
986
+ + ' return _ENCODE_HTML_RULES[c] || c;\n'
987
+ + '};\n';
988
+
989
+ /**
990
+ * Escape characters reserved in XML.
991
+ *
992
+ * If `markup` is `undefined` or `null`, the empty string is returned.
993
+ *
994
+ * @implements {EscapeCallback}
995
+ * @param {String} markup Input string
996
+ * @return {String} Escaped string
997
+ * @static
998
+ * @private
999
+ */
1000
+
1001
+ exports.escapeXML = function (markup) {
1002
+ return markup == undefined
1003
+ ? ''
1004
+ : String(markup)
1005
+ .replace(_MATCH_HTML, encode_char);
1006
+ };
1007
+ exports.escapeXML.toString = function () {
1008
+ return Function.prototype.toString.call(this) + ';\n' + escapeFuncStr;
1009
+ };
1010
+
1011
+ /**
1012
+ * Naive copy of properties from one object to another.
1013
+ * Does not recurse into non-scalar properties
1014
+ * Does not check to see if the property has a value before copying
1015
+ *
1016
+ * @param {Object} to Destination object
1017
+ * @param {Object} from Source object
1018
+ * @return {Object} Destination object
1019
+ * @static
1020
+ * @private
1021
+ */
1022
+ exports.shallowCopy = function (to, from) {
1023
+ from = from || {};
1024
+ for (var p in from) {
1025
+ to[p] = from[p];
1026
+ }
1027
+ return to;
1028
+ };
1029
+
1030
+ /**
1031
+ * Naive copy of a list of key names, from one object to another.
1032
+ * Only copies property if it is actually defined
1033
+ * Does not recurse into non-scalar properties
1034
+ *
1035
+ * @param {Object} to Destination object
1036
+ * @param {Object} from Source object
1037
+ * @param {Array} list List of properties to copy
1038
+ * @return {Object} Destination object
1039
+ * @static
1040
+ * @private
1041
+ */
1042
+ exports.shallowCopyFromList = function (to, from, list) {
1043
+ for (var i = 0; i < list.length; i++) {
1044
+ var p = list[i];
1045
+ if (typeof from[p] != 'undefined') {
1046
+ to[p] = from[p];
1047
+ }
1048
+ }
1049
+ return to;
1050
+ };
1051
+
1052
+ /**
1053
+ * Simple in-process cache implementation. Does not implement limits of any
1054
+ * sort.
1055
+ *
1056
+ * @implements Cache
1057
+ * @static
1058
+ * @private
1059
+ */
1060
+ exports.cache = {
1061
+ _data: {},
1062
+ set: function (key, val) {
1063
+ this._data[key] = val;
1064
+ },
1065
+ get: function (key) {
1066
+ return this._data[key];
1067
+ },
1068
+ remove: function (key) {
1069
+ delete this._data[key];
1070
+ },
1071
+ reset: function () {
1072
+ this._data = {};
1073
+ }
1074
+ };
1075
+
1076
+ },{}],3:[function(require,module,exports){
1077
+
1078
+ },{}],4:[function(require,module,exports){
1079
+ (function (process){
1080
+ // Copyright Joyent, Inc. and other Node contributors.
1081
+ //
1082
+ // Permission is hereby granted, free of charge, to any person obtaining a
1083
+ // copy of this software and associated documentation files (the
1084
+ // "Software"), to deal in the Software without restriction, including
1085
+ // without limitation the rights to use, copy, modify, merge, publish,
1086
+ // distribute, sublicense, and/or sell copies of the Software, and to permit
1087
+ // persons to whom the Software is furnished to do so, subject to the
1088
+ // following conditions:
1089
+ //
1090
+ // The above copyright notice and this permission notice shall be included
1091
+ // in all copies or substantial portions of the Software.
1092
+ //
1093
+ // THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS
1094
+ // OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
1095
+ // MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN
1096
+ // NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM,
1097
+ // DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR
1098
+ // OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE
1099
+ // USE OR OTHER DEALINGS IN THE SOFTWARE.
1100
+
1101
+ // resolves . and .. elements in a path array with directory names there
1102
+ // must be no slashes, empty elements, or device names (c:\) in the array
1103
+ // (so also no leading and trailing slashes - it does not distinguish
1104
+ // relative and absolute paths)
1105
+ function normalizeArray(parts, allowAboveRoot) {
1106
+ // if the path tries to go above the root, `up` ends up > 0
1107
+ var up = 0;
1108
+ for (var i = parts.length - 1; i >= 0; i--) {
1109
+ var last = parts[i];
1110
+ if (last === '.') {
1111
+ parts.splice(i, 1);
1112
+ } else if (last === '..') {
1113
+ parts.splice(i, 1);
1114
+ up++;
1115
+ } else if (up) {
1116
+ parts.splice(i, 1);
1117
+ up--;
1118
+ }
1119
+ }
1120
+
1121
+ // if the path is allowed to go above the root, restore leading ..s
1122
+ if (allowAboveRoot) {
1123
+ for (; up--; up) {
1124
+ parts.unshift('..');
1125
+ }
1126
+ }
1127
+
1128
+ return parts;
1129
+ }
1130
+
1131
+ // Split a filename into [root, dir, basename, ext], unix version
1132
+ // 'root' is just a slash, or nothing.
1133
+ var splitPathRe =
1134
+ /^(\/?|)([\s\S]*?)((?:\.{1,2}|[^\/]+?|)(\.[^.\/]*|))(?:[\/]*)$/;
1135
+ var splitPath = function(filename) {
1136
+ return splitPathRe.exec(filename).slice(1);
1137
+ };
1138
+
1139
+ // path.resolve([from ...], to)
1140
+ // posix version
1141
+ exports.resolve = function() {
1142
+ var resolvedPath = '',
1143
+ resolvedAbsolute = false;
1144
+
1145
+ for (var i = arguments.length - 1; i >= -1 && !resolvedAbsolute; i--) {
1146
+ var path = (i >= 0) ? arguments[i] : process.cwd();
1147
+
1148
+ // Skip empty and invalid entries
1149
+ if (typeof path !== 'string') {
1150
+ throw new TypeError('Arguments to path.resolve must be strings');
1151
+ } else if (!path) {
1152
+ continue;
1153
+ }
1154
+
1155
+ resolvedPath = path + '/' + resolvedPath;
1156
+ resolvedAbsolute = path.charAt(0) === '/';
1157
+ }
1158
+
1159
+ // At this point the path should be resolved to a full absolute path, but
1160
+ // handle relative paths to be safe (might happen when process.cwd() fails)
1161
+
1162
+ // Normalize the path
1163
+ resolvedPath = normalizeArray(filter(resolvedPath.split('/'), function(p) {
1164
+ return !!p;
1165
+ }), !resolvedAbsolute).join('/');
1166
+
1167
+ return ((resolvedAbsolute ? '/' : '') + resolvedPath) || '.';
1168
+ };
1169
+
1170
+ // path.normalize(path)
1171
+ // posix version
1172
+ exports.normalize = function(path) {
1173
+ var isAbsolute = exports.isAbsolute(path),
1174
+ trailingSlash = substr(path, -1) === '/';
1175
+
1176
+ // Normalize the path
1177
+ path = normalizeArray(filter(path.split('/'), function(p) {
1178
+ return !!p;
1179
+ }), !isAbsolute).join('/');
1180
+
1181
+ if (!path && !isAbsolute) {
1182
+ path = '.';
1183
+ }
1184
+ if (path && trailingSlash) {
1185
+ path += '/';
1186
+ }
1187
+
1188
+ return (isAbsolute ? '/' : '') + path;
1189
+ };
1190
+
1191
+ // posix version
1192
+ exports.isAbsolute = function(path) {
1193
+ return path.charAt(0) === '/';
1194
+ };
1195
+
1196
+ // posix version
1197
+ exports.join = function() {
1198
+ var paths = Array.prototype.slice.call(arguments, 0);
1199
+ return exports.normalize(filter(paths, function(p, index) {
1200
+ if (typeof p !== 'string') {
1201
+ throw new TypeError('Arguments to path.join must be strings');
1202
+ }
1203
+ return p;
1204
+ }).join('/'));
1205
+ };
1206
+
1207
+
1208
+ // path.relative(from, to)
1209
+ // posix version
1210
+ exports.relative = function(from, to) {
1211
+ from = exports.resolve(from).substr(1);
1212
+ to = exports.resolve(to).substr(1);
1213
+
1214
+ function trim(arr) {
1215
+ var start = 0;
1216
+ for (; start < arr.length; start++) {
1217
+ if (arr[start] !== '') break;
1218
+ }
1219
+
1220
+ var end = arr.length - 1;
1221
+ for (; end >= 0; end--) {
1222
+ if (arr[end] !== '') break;
1223
+ }
1224
+
1225
+ if (start > end) return [];
1226
+ return arr.slice(start, end - start + 1);
1227
+ }
1228
+
1229
+ var fromParts = trim(from.split('/'));
1230
+ var toParts = trim(to.split('/'));
1231
+
1232
+ var length = Math.min(fromParts.length, toParts.length);
1233
+ var samePartsLength = length;
1234
+ for (var i = 0; i < length; i++) {
1235
+ if (fromParts[i] !== toParts[i]) {
1236
+ samePartsLength = i;
1237
+ break;
1238
+ }
1239
+ }
1240
+
1241
+ var outputParts = [];
1242
+ for (var i = samePartsLength; i < fromParts.length; i++) {
1243
+ outputParts.push('..');
1244
+ }
1245
+
1246
+ outputParts = outputParts.concat(toParts.slice(samePartsLength));
1247
+
1248
+ return outputParts.join('/');
1249
+ };
1250
+
1251
+ exports.sep = '/';
1252
+ exports.delimiter = ':';
1253
+
1254
+ exports.dirname = function(path) {
1255
+ var result = splitPath(path),
1256
+ root = result[0],
1257
+ dir = result[1];
1258
+
1259
+ if (!root && !dir) {
1260
+ // No dirname whatsoever
1261
+ return '.';
1262
+ }
1263
+
1264
+ if (dir) {
1265
+ // It has a dirname, strip trailing slash
1266
+ dir = dir.substr(0, dir.length - 1);
1267
+ }
1268
+
1269
+ return root + dir;
1270
+ };
1271
+
1272
+
1273
+ exports.basename = function(path, ext) {
1274
+ var f = splitPath(path)[2];
1275
+ // TODO: make this comparison case-insensitive on windows?
1276
+ if (ext && f.substr(-1 * ext.length) === ext) {
1277
+ f = f.substr(0, f.length - ext.length);
1278
+ }
1279
+ return f;
1280
+ };
1281
+
1282
+
1283
+ exports.extname = function(path) {
1284
+ return splitPath(path)[3];
1285
+ };
1286
+
1287
+ function filter (xs, f) {
1288
+ if (xs.filter) return xs.filter(f);
1289
+ var res = [];
1290
+ for (var i = 0; i < xs.length; i++) {
1291
+ if (f(xs[i], i, xs)) res.push(xs[i]);
1292
+ }
1293
+ return res;
1294
+ }
1295
+
1296
+ // String.prototype.substr - negative index don't work in IE8
1297
+ var substr = 'ab'.substr(-1) === 'b'
1298
+ ? function (str, start, len) { return str.substr(start, len) }
1299
+ : function (str, start, len) {
1300
+ if (start < 0) start = str.length + start;
1301
+ return str.substr(start, len);
1302
+ }
1303
+ ;
1304
+
1305
+ }).call(this,require('_process'))
1306
+ },{"_process":5}],5:[function(require,module,exports){
1307
+ // shim for using process in browser
1308
+ var process = module.exports = {};
1309
+
1310
+ // cached from whatever global is present so that test runners that stub it
1311
+ // don't break things. But we need to wrap it in a try catch in case it is
1312
+ // wrapped in strict mode code which doesn't define any globals. It's inside a
1313
+ // function because try/catches deoptimize in certain engines.
1314
+
1315
+ var cachedSetTimeout;
1316
+ var cachedClearTimeout;
1317
+
1318
+ function defaultSetTimout() {
1319
+ throw new Error('setTimeout has not been defined');
1320
+ }
1321
+ function defaultClearTimeout () {
1322
+ throw new Error('clearTimeout has not been defined');
1323
+ }
1324
+ (function () {
1325
+ try {
1326
+ if (typeof setTimeout === 'function') {
1327
+ cachedSetTimeout = setTimeout;
1328
+ } else {
1329
+ cachedSetTimeout = defaultSetTimout;
1330
+ }
1331
+ } catch (e) {
1332
+ cachedSetTimeout = defaultSetTimout;
1333
+ }
1334
+ try {
1335
+ if (typeof clearTimeout === 'function') {
1336
+ cachedClearTimeout = clearTimeout;
1337
+ } else {
1338
+ cachedClearTimeout = defaultClearTimeout;
1339
+ }
1340
+ } catch (e) {
1341
+ cachedClearTimeout = defaultClearTimeout;
1342
+ }
1343
+ } ())
1344
+ function runTimeout(fun) {
1345
+ if (cachedSetTimeout === setTimeout) {
1346
+ //normal enviroments in sane situations
1347
+ return setTimeout(fun, 0);
1348
+ }
1349
+ // if setTimeout wasn't available but was latter defined
1350
+ if ((cachedSetTimeout === defaultSetTimout || !cachedSetTimeout) && setTimeout) {
1351
+ cachedSetTimeout = setTimeout;
1352
+ return setTimeout(fun, 0);
1353
+ }
1354
+ try {
1355
+ // when when somebody has screwed with setTimeout but no I.E. maddness
1356
+ return cachedSetTimeout(fun, 0);
1357
+ } catch(e){
1358
+ try {
1359
+ // When we are in I.E. but the script has been evaled so I.E. doesn't trust the global object when called normally
1360
+ return cachedSetTimeout.call(null, fun, 0);
1361
+ } catch(e){
1362
+ // same as above but when it's a version of I.E. that must have the global object for 'this', hopfully our context correct otherwise it will throw a global error
1363
+ return cachedSetTimeout.call(this, fun, 0);
1364
+ }
1365
+ }
1366
+
1367
+
1368
+ }
1369
+ function runClearTimeout(marker) {
1370
+ if (cachedClearTimeout === clearTimeout) {
1371
+ //normal enviroments in sane situations
1372
+ return clearTimeout(marker);
1373
+ }
1374
+ // if clearTimeout wasn't available but was latter defined
1375
+ if ((cachedClearTimeout === defaultClearTimeout || !cachedClearTimeout) && clearTimeout) {
1376
+ cachedClearTimeout = clearTimeout;
1377
+ return clearTimeout(marker);
1378
+ }
1379
+ try {
1380
+ // when when somebody has screwed with setTimeout but no I.E. maddness
1381
+ return cachedClearTimeout(marker);
1382
+ } catch (e){
1383
+ try {
1384
+ // When we are in I.E. but the script has been evaled so I.E. doesn't trust the global object when called normally
1385
+ return cachedClearTimeout.call(null, marker);
1386
+ } catch (e){
1387
+ // same as above but when it's a version of I.E. that must have the global object for 'this', hopfully our context correct otherwise it will throw a global error.
1388
+ // Some versions of I.E. have different rules for clearTimeout vs setTimeout
1389
+ return cachedClearTimeout.call(this, marker);
1390
+ }
1391
+ }
1392
+
1393
+
1394
+
1395
+ }
1396
+ var queue = [];
1397
+ var draining = false;
1398
+ var currentQueue;
1399
+ var queueIndex = -1;
1400
+
1401
+ function cleanUpNextTick() {
1402
+ if (!draining || !currentQueue) {
1403
+ return;
1404
+ }
1405
+ draining = false;
1406
+ if (currentQueue.length) {
1407
+ queue = currentQueue.concat(queue);
1408
+ } else {
1409
+ queueIndex = -1;
1410
+ }
1411
+ if (queue.length) {
1412
+ drainQueue();
1413
+ }
1414
+ }
1415
+
1416
+ function drainQueue() {
1417
+ if (draining) {
1418
+ return;
1419
+ }
1420
+ var timeout = runTimeout(cleanUpNextTick);
1421
+ draining = true;
1422
+
1423
+ var len = queue.length;
1424
+ while(len) {
1425
+ currentQueue = queue;
1426
+ queue = [];
1427
+ while (++queueIndex < len) {
1428
+ if (currentQueue) {
1429
+ currentQueue[queueIndex].run();
1430
+ }
1431
+ }
1432
+ queueIndex = -1;
1433
+ len = queue.length;
1434
+ }
1435
+ currentQueue = null;
1436
+ draining = false;
1437
+ runClearTimeout(timeout);
1438
+ }
1439
+
1440
+ process.nextTick = function (fun) {
1441
+ var args = new Array(arguments.length - 1);
1442
+ if (arguments.length > 1) {
1443
+ for (var i = 1; i < arguments.length; i++) {
1444
+ args[i - 1] = arguments[i];
1445
+ }
1446
+ }
1447
+ queue.push(new Item(fun, args));
1448
+ if (queue.length === 1 && !draining) {
1449
+ runTimeout(drainQueue);
1450
+ }
1451
+ };
1452
+
1453
+ // v8 likes predictible objects
1454
+ function Item(fun, array) {
1455
+ this.fun = fun;
1456
+ this.array = array;
1457
+ }
1458
+ Item.prototype.run = function () {
1459
+ this.fun.apply(null, this.array);
1460
+ };
1461
+ process.title = 'browser';
1462
+ process.browser = true;
1463
+ process.env = {};
1464
+ process.argv = [];
1465
+ process.version = ''; // empty string to avoid regexp issues
1466
+ process.versions = {};
1467
+
1468
+ function noop() {}
1469
+
1470
+ process.on = noop;
1471
+ process.addListener = noop;
1472
+ process.once = noop;
1473
+ process.off = noop;
1474
+ process.removeListener = noop;
1475
+ process.removeAllListeners = noop;
1476
+ process.emit = noop;
1477
+ process.prependListener = noop;
1478
+ process.prependOnceListener = noop;
1479
+
1480
+ process.listeners = function (name) { return [] }
1481
+
1482
+ process.binding = function (name) {
1483
+ throw new Error('process.binding is not supported');
1484
+ };
1485
+
1486
+ process.cwd = function () { return '/' };
1487
+ process.chdir = function (dir) {
1488
+ throw new Error('process.chdir is not supported');
1489
+ };
1490
+ process.umask = function() { return 0; };
1491
+
1492
+ },{}],6:[function(require,module,exports){
1493
+ module.exports={
1494
+ "name": "ejs",
1495
+ "description": "Embedded JavaScript templates",
1496
+ "keywords": [
1497
+ "template",
1498
+ "engine",
1499
+ "ejs"
1500
+ ],
1501
+ "version": "3.0.1",
1502
+ "author": "Matthew Eernisse <mde@fleegix.org> (http://fleegix.org)",
1503
+ "license": "Apache-2.0",
1504
+ "main": "./lib/ejs.js",
1505
+ "repository": {
1506
+ "type": "git",
1507
+ "url": "git://github.com/mde/ejs.git"
1508
+ },
1509
+ "bugs": "https://github.com/mde/ejs/issues",
1510
+ "homepage": "https://github.com/mde/ejs",
1511
+ "dependencies": {},
1512
+ "devDependencies": {
1513
+ "browserify": "^13.1.1",
1514
+ "eslint": "^4.14.0",
1515
+ "git-directory-deploy": "^1.5.1",
1516
+ "jake": "^10.3.1",
1517
+ "jsdoc": "^3.4.0",
1518
+ "lru-cache": "^4.0.1",
1519
+ "mocha": "^5.0.5",
1520
+ "uglify-js": "^3.3.16"
1521
+ },
1522
+ "engines": {
1523
+ "node": ">=0.10.0"
1524
+ },
1525
+ "scripts": {
1526
+ "test": "mocha",
1527
+ "postinstall": "node ./postinstall.js"
1528
+ }
1529
+ }
1530
+
1531
+ },{}]},{},[1])(1)
1532
+ });