cssesc-source 0.1.0 → 1.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 (908) hide show
  1. checksums.yaml +5 -13
  2. data/vendor/LICENSE-MIT.txt +1 -1
  3. data/vendor/README.md +44 -50
  4. data/vendor/bin/cssesc +103 -109
  5. data/vendor/cssesc.js +114 -161
  6. data/vendor/man/cssesc.1 +2 -2
  7. data/vendor/package-lock.json +1664 -0
  8. data/vendor/package.json +47 -54
  9. metadata +9 -908
  10. data/vendor/node_modules/grunt-shell/node_modules/stripcolorcodes/MIT-LICENSE.txt +0 -21
  11. data/vendor/node_modules/grunt-shell/node_modules/stripcolorcodes/README.md +0 -43
  12. data/vendor/node_modules/grunt-shell/node_modules/stripcolorcodes/bin/stripcolorcodes.js +0 -18
  13. data/vendor/node_modules/grunt-shell/node_modules/stripcolorcodes/index.js +0 -3
  14. data/vendor/node_modules/grunt-shell/node_modules/stripcolorcodes/package.json +0 -42
  15. data/vendor/node_modules/grunt-shell/node_modules/stripcolorcodes/test/fixture/with-colors +0 -2
  16. data/vendor/node_modules/grunt-shell/node_modules/stripcolorcodes/test/fixture/without-colors +0 -2
  17. data/vendor/node_modules/grunt-shell/node_modules/stripcolorcodes/test/stripcolorcodes-test.js +0 -20
  18. data/vendor/node_modules/grunt-shell/package.json +0 -53
  19. data/vendor/node_modules/grunt-shell/readme.md +0 -221
  20. data/vendor/node_modules/grunt-shell/tasks/shell.js +0 -54
  21. data/vendor/node_modules/grunt-template/LICENSE-MIT.txt +0 -20
  22. data/vendor/node_modules/grunt-template/README.md +0 -123
  23. data/vendor/node_modules/grunt-template/package.json +0 -50
  24. data/vendor/node_modules/grunt-template/tasks/template.js +0 -44
  25. data/vendor/node_modules/grunt/CONTRIBUTING.md +0 -1
  26. data/vendor/node_modules/grunt/LICENSE-MIT +0 -22
  27. data/vendor/node_modules/grunt/README.md +0 -16
  28. data/vendor/node_modules/grunt/internal-tasks/bump.js +0 -151
  29. data/vendor/node_modules/grunt/internal-tasks/subgrunt.js +0 -34
  30. data/vendor/node_modules/grunt/lib/grunt.js +0 -156
  31. data/vendor/node_modules/grunt/lib/grunt/cli.js +0 -128
  32. data/vendor/node_modules/grunt/lib/grunt/config.js +0 -118
  33. data/vendor/node_modules/grunt/lib/grunt/event.js +0 -16
  34. data/vendor/node_modules/grunt/lib/grunt/fail.js +0 -84
  35. data/vendor/node_modules/grunt/lib/grunt/file.js +0 -440
  36. data/vendor/node_modules/grunt/lib/grunt/help.js +0 -129
  37. data/vendor/node_modules/grunt/lib/grunt/log.js +0 -352
  38. data/vendor/node_modules/grunt/lib/grunt/option.js +0 -42
  39. data/vendor/node_modules/grunt/lib/grunt/task.js +0 -451
  40. data/vendor/node_modules/grunt/lib/grunt/template.js +0 -95
  41. data/vendor/node_modules/grunt/lib/grunt/util.js +0 -188
  42. data/vendor/node_modules/grunt/lib/util/task.js +0 -323
  43. data/vendor/node_modules/grunt/node_modules/async/LICENSE +0 -19
  44. data/vendor/node_modules/grunt/node_modules/async/Makefile +0 -25
  45. data/vendor/node_modules/grunt/node_modules/async/README.md +0 -1021
  46. data/vendor/node_modules/grunt/node_modules/async/index.js +0 -3
  47. data/vendor/node_modules/grunt/node_modules/async/lib/async.js +0 -692
  48. data/vendor/node_modules/grunt/node_modules/async/package.json +0 -32
  49. data/vendor/node_modules/grunt/node_modules/coffee-script/CNAME +0 -1
  50. data/vendor/node_modules/grunt/node_modules/coffee-script/LICENSE +0 -22
  51. data/vendor/node_modules/grunt/node_modules/coffee-script/README +0 -51
  52. data/vendor/node_modules/grunt/node_modules/coffee-script/Rakefile +0 -78
  53. data/vendor/node_modules/grunt/node_modules/coffee-script/bin/cake +0 -7
  54. data/vendor/node_modules/grunt/node_modules/coffee-script/bin/coffee +0 -7
  55. data/vendor/node_modules/grunt/node_modules/coffee-script/extras/jsl.conf +0 -44
  56. data/vendor/node_modules/grunt/node_modules/coffee-script/lib/coffee-script/browser.js +0 -92
  57. data/vendor/node_modules/grunt/node_modules/coffee-script/lib/coffee-script/cake.js +0 -111
  58. data/vendor/node_modules/grunt/node_modules/coffee-script/lib/coffee-script/coffee-script.js +0 -167
  59. data/vendor/node_modules/grunt/node_modules/coffee-script/lib/coffee-script/command.js +0 -500
  60. data/vendor/node_modules/grunt/node_modules/coffee-script/lib/coffee-script/grammar.js +0 -606
  61. data/vendor/node_modules/grunt/node_modules/coffee-script/lib/coffee-script/helpers.js +0 -77
  62. data/vendor/node_modules/grunt/node_modules/coffee-script/lib/coffee-script/index.js +0 -11
  63. data/vendor/node_modules/grunt/node_modules/coffee-script/lib/coffee-script/lexer.js +0 -788
  64. data/vendor/node_modules/grunt/node_modules/coffee-script/lib/coffee-script/nodes.js +0 -2986
  65. data/vendor/node_modules/grunt/node_modules/coffee-script/lib/coffee-script/optparse.js +0 -138
  66. data/vendor/node_modules/grunt/node_modules/coffee-script/lib/coffee-script/parser.js +0 -683
  67. data/vendor/node_modules/grunt/node_modules/coffee-script/lib/coffee-script/repl.js +0 -261
  68. data/vendor/node_modules/grunt/node_modules/coffee-script/lib/coffee-script/rewriter.js +0 -349
  69. data/vendor/node_modules/grunt/node_modules/coffee-script/lib/coffee-script/scope.js +0 -146
  70. data/vendor/node_modules/grunt/node_modules/coffee-script/package.json +0 -47
  71. data/vendor/node_modules/grunt/node_modules/colors/MIT-LICENSE.txt +0 -22
  72. data/vendor/node_modules/grunt/node_modules/colors/ReadMe.md +0 -77
  73. data/vendor/node_modules/grunt/node_modules/colors/colors.js +0 -342
  74. data/vendor/node_modules/grunt/node_modules/colors/example.html +0 -76
  75. data/vendor/node_modules/grunt/node_modules/colors/example.js +0 -77
  76. data/vendor/node_modules/grunt/node_modules/colors/package.json +0 -29
  77. data/vendor/node_modules/grunt/node_modules/colors/test.js +0 -70
  78. data/vendor/node_modules/grunt/node_modules/colors/themes/winston-dark.js +0 -12
  79. data/vendor/node_modules/grunt/node_modules/colors/themes/winston-light.js +0 -12
  80. data/vendor/node_modules/grunt/node_modules/dateformat/Readme.md +0 -67
  81. data/vendor/node_modules/grunt/node_modules/dateformat/lib/dateformat.js +0 -165
  82. data/vendor/node_modules/grunt/node_modules/dateformat/package.json +0 -20
  83. data/vendor/node_modules/grunt/node_modules/dateformat/test/test_weekofyear.js +0 -4
  84. data/vendor/node_modules/grunt/node_modules/dateformat/test/test_weekofyear.sh +0 -27
  85. data/vendor/node_modules/grunt/node_modules/eventemitter2/README.md +0 -212
  86. data/vendor/node_modules/grunt/node_modules/eventemitter2/index.js +0 -1
  87. data/vendor/node_modules/grunt/node_modules/eventemitter2/lib/eventemitter2.js +0 -561
  88. data/vendor/node_modules/grunt/node_modules/eventemitter2/package.json +0 -62
  89. data/vendor/node_modules/grunt/node_modules/exit/Gruntfile.js +0 -48
  90. data/vendor/node_modules/grunt/node_modules/exit/LICENSE-MIT +0 -22
  91. data/vendor/node_modules/grunt/node_modules/exit/README.md +0 -75
  92. data/vendor/node_modules/grunt/node_modules/exit/lib/exit.js +0 -41
  93. data/vendor/node_modules/grunt/node_modules/exit/package.json +0 -51
  94. data/vendor/node_modules/grunt/node_modules/exit/test/exit_test.js +0 -121
  95. data/vendor/node_modules/grunt/node_modules/exit/test/fixtures/10-stderr.txt +0 -10
  96. data/vendor/node_modules/grunt/node_modules/exit/test/fixtures/10-stdout-stderr.txt +0 -20
  97. data/vendor/node_modules/grunt/node_modules/exit/test/fixtures/10-stdout.txt +0 -10
  98. data/vendor/node_modules/grunt/node_modules/exit/test/fixtures/100-stderr.txt +0 -100
  99. data/vendor/node_modules/grunt/node_modules/exit/test/fixtures/100-stdout-stderr.txt +0 -200
  100. data/vendor/node_modules/grunt/node_modules/exit/test/fixtures/100-stdout.txt +0 -100
  101. data/vendor/node_modules/grunt/node_modules/exit/test/fixtures/1000-stderr.txt +0 -1000
  102. data/vendor/node_modules/grunt/node_modules/exit/test/fixtures/1000-stdout-stderr.txt +0 -2000
  103. data/vendor/node_modules/grunt/node_modules/exit/test/fixtures/1000-stdout.txt +0 -1000
  104. data/vendor/node_modules/grunt/node_modules/exit/test/fixtures/create-files.sh +0 -8
  105. data/vendor/node_modules/grunt/node_modules/exit/test/fixtures/log-broken.js +0 -23
  106. data/vendor/node_modules/grunt/node_modules/exit/test/fixtures/log.js +0 -25
  107. data/vendor/node_modules/grunt/node_modules/findup-sync/Gruntfile.js +0 -25
  108. data/vendor/node_modules/grunt/node_modules/findup-sync/LICENSE-MIT +0 -22
  109. data/vendor/node_modules/grunt/node_modules/findup-sync/README.md +0 -44
  110. data/vendor/node_modules/grunt/node_modules/findup-sync/lib/findup-sync.js +0 -46
  111. data/vendor/node_modules/grunt/node_modules/findup-sync/node_modules/lodash/README.md +0 -164
  112. data/vendor/node_modules/grunt/node_modules/findup-sync/node_modules/lodash/dist/lodash.compat.js +0 -5152
  113. data/vendor/node_modules/grunt/node_modules/findup-sync/node_modules/lodash/dist/lodash.compat.min.js +0 -42
  114. data/vendor/node_modules/grunt/node_modules/findup-sync/node_modules/lodash/dist/lodash.js +0 -4983
  115. data/vendor/node_modules/grunt/node_modules/findup-sync/node_modules/lodash/dist/lodash.min.js +0 -40
  116. data/vendor/node_modules/grunt/node_modules/findup-sync/node_modules/lodash/dist/lodash.underscore.js +0 -4307
  117. data/vendor/node_modules/grunt/node_modules/findup-sync/node_modules/lodash/dist/lodash.underscore.min.js +0 -34
  118. data/vendor/node_modules/grunt/node_modules/findup-sync/node_modules/lodash/package.json +0 -62
  119. data/vendor/node_modules/grunt/node_modules/findup-sync/package.json +0 -48
  120. data/vendor/node_modules/grunt/node_modules/findup-sync/test/findup-sync_test.js +0 -48
  121. data/vendor/node_modules/grunt/node_modules/findup-sync/test/fixtures/a.txt +0 -0
  122. data/vendor/node_modules/grunt/node_modules/findup-sync/test/fixtures/a/b/bar.txt +0 -0
  123. data/vendor/node_modules/grunt/node_modules/findup-sync/test/fixtures/a/foo.txt +0 -0
  124. data/vendor/node_modules/grunt/node_modules/findup-sync/test/fixtures/aaa.txt +0 -0
  125. data/vendor/node_modules/grunt/node_modules/getobject/Gruntfile.js +0 -48
  126. data/vendor/node_modules/grunt/node_modules/getobject/LICENSE-MIT +0 -22
  127. data/vendor/node_modules/grunt/node_modules/getobject/README.md +0 -20
  128. data/vendor/node_modules/grunt/node_modules/getobject/lib/getobject.js +0 -60
  129. data/vendor/node_modules/grunt/node_modules/getobject/package.json +0 -48
  130. data/vendor/node_modules/grunt/node_modules/getobject/test/namespace_test.js +0 -51
  131. data/vendor/node_modules/grunt/node_modules/glob/LICENSE +0 -27
  132. data/vendor/node_modules/grunt/node_modules/glob/README.md +0 -233
  133. data/vendor/node_modules/grunt/node_modules/glob/examples/g.js +0 -9
  134. data/vendor/node_modules/grunt/node_modules/glob/examples/usr-local.js +0 -9
  135. data/vendor/node_modules/grunt/node_modules/glob/glob.js +0 -643
  136. data/vendor/node_modules/grunt/node_modules/glob/node_modules/graceful-fs/LICENSE +0 -27
  137. data/vendor/node_modules/grunt/node_modules/glob/node_modules/graceful-fs/README.md +0 -33
  138. data/vendor/node_modules/grunt/node_modules/glob/node_modules/graceful-fs/graceful-fs.js +0 -442
  139. data/vendor/node_modules/grunt/node_modules/glob/node_modules/graceful-fs/package.json +0 -49
  140. data/vendor/node_modules/grunt/node_modules/glob/node_modules/graceful-fs/test/open.js +0 -46
  141. data/vendor/node_modules/grunt/node_modules/glob/node_modules/graceful-fs/test/ulimit.js +0 -158
  142. data/vendor/node_modules/grunt/node_modules/glob/node_modules/inherits/README.md +0 -51
  143. data/vendor/node_modules/grunt/node_modules/glob/node_modules/inherits/inherits.js +0 -29
  144. data/vendor/node_modules/grunt/node_modules/glob/node_modules/inherits/package.json +0 -30
  145. data/vendor/node_modules/grunt/node_modules/glob/package.json +0 -40
  146. data/vendor/node_modules/grunt/node_modules/glob/test/00-setup.js +0 -176
  147. data/vendor/node_modules/grunt/node_modules/glob/test/bash-comparison.js +0 -63
  148. data/vendor/node_modules/grunt/node_modules/glob/test/bash-results.json +0 -348
  149. data/vendor/node_modules/grunt/node_modules/glob/test/cwd-test.js +0 -55
  150. data/vendor/node_modules/grunt/node_modules/glob/test/mark.js +0 -74
  151. data/vendor/node_modules/grunt/node_modules/glob/test/nocase-nomagic.js +0 -113
  152. data/vendor/node_modules/grunt/node_modules/glob/test/pause-resume.js +0 -73
  153. data/vendor/node_modules/grunt/node_modules/glob/test/root-nomount.js +0 -39
  154. data/vendor/node_modules/grunt/node_modules/glob/test/root.js +0 -46
  155. data/vendor/node_modules/grunt/node_modules/glob/test/zz-cleanup.js +0 -11
  156. data/vendor/node_modules/grunt/node_modules/hooker/LICENSE-MIT +0 -22
  157. data/vendor/node_modules/grunt/node_modules/hooker/README.md +0 -186
  158. data/vendor/node_modules/grunt/node_modules/hooker/child.js +0 -101
  159. data/vendor/node_modules/grunt/node_modules/hooker/dist/ba-hooker.js +0 -169
  160. data/vendor/node_modules/grunt/node_modules/hooker/dist/ba-hooker.min.js +0 -4
  161. data/vendor/node_modules/grunt/node_modules/hooker/grunt.js +0 -47
  162. data/vendor/node_modules/grunt/node_modules/hooker/lib/hooker.js +0 -174
  163. data/vendor/node_modules/grunt/node_modules/hooker/package.json +0 -45
  164. data/vendor/node_modules/grunt/node_modules/hooker/parent.js +0 -17
  165. data/vendor/node_modules/grunt/node_modules/hooker/test/hooker_test.js +0 -435
  166. data/vendor/node_modules/grunt/node_modules/iconv-lite/LICENSE +0 -21
  167. data/vendor/node_modules/grunt/node_modules/iconv-lite/README.md +0 -72
  168. data/vendor/node_modules/grunt/node_modules/iconv-lite/README.md~ +0 -54
  169. data/vendor/node_modules/grunt/node_modules/iconv-lite/encodings/big5.js +0 -9
  170. data/vendor/node_modules/grunt/node_modules/iconv-lite/encodings/gbk.js +0 -9
  171. data/vendor/node_modules/grunt/node_modules/iconv-lite/encodings/singlebyte.js +0 -340
  172. data/vendor/node_modules/grunt/node_modules/iconv-lite/encodings/table/big5.js +0 -1
  173. data/vendor/node_modules/grunt/node_modules/iconv-lite/encodings/table/gbk.js +0 -1
  174. data/vendor/node_modules/grunt/node_modules/iconv-lite/generation/generate-big5-table.js +0 -25
  175. data/vendor/node_modules/grunt/node_modules/iconv-lite/generation/generate-singlebyte.js +0 -142
  176. data/vendor/node_modules/grunt/node_modules/iconv-lite/index.js +0 -231
  177. data/vendor/node_modules/grunt/node_modules/iconv-lite/package.json +0 -80
  178. data/vendor/node_modules/grunt/node_modules/iconv-lite/test/big5-test.js +0 -36
  179. data/vendor/node_modules/grunt/node_modules/iconv-lite/test/big5File.txt +0 -13
  180. data/vendor/node_modules/grunt/node_modules/iconv-lite/test/cyrillic-test.js +0 -86
  181. data/vendor/node_modules/grunt/node_modules/iconv-lite/test/gbk-test.js +0 -38
  182. data/vendor/node_modules/grunt/node_modules/iconv-lite/test/gbkFile.txt +0 -14
  183. data/vendor/node_modules/grunt/node_modules/iconv-lite/test/greek-test.js +0 -79
  184. data/vendor/node_modules/grunt/node_modules/iconv-lite/test/main-test.js +0 -55
  185. data/vendor/node_modules/grunt/node_modules/iconv-lite/test/performance.js +0 -67
  186. data/vendor/node_modules/grunt/node_modules/iconv-lite/test/turkish-test.js +0 -90
  187. data/vendor/node_modules/grunt/node_modules/js-yaml/HISTORY.md +0 -155
  188. data/vendor/node_modules/grunt/node_modules/js-yaml/LICENSE +0 -21
  189. data/vendor/node_modules/grunt/node_modules/js-yaml/README.md +0 -249
  190. data/vendor/node_modules/grunt/node_modules/js-yaml/bin/js-yaml.js +0 -125
  191. data/vendor/node_modules/grunt/node_modules/js-yaml/examples/custom_types.js +0 -104
  192. data/vendor/node_modules/grunt/node_modules/js-yaml/examples/custom_types.yaml +0 -18
  193. data/vendor/node_modules/grunt/node_modules/js-yaml/examples/dumper.js +0 -31
  194. data/vendor/node_modules/grunt/node_modules/js-yaml/examples/dumper.json +0 -22
  195. data/vendor/node_modules/grunt/node_modules/js-yaml/examples/sample_document.js +0 -15
  196. data/vendor/node_modules/grunt/node_modules/js-yaml/examples/sample_document.yaml +0 -197
  197. data/vendor/node_modules/grunt/node_modules/js-yaml/index.js +0 -1
  198. data/vendor/node_modules/grunt/node_modules/js-yaml/lib/js-yaml.js +0 -33
  199. data/vendor/node_modules/grunt/node_modules/js-yaml/lib/js-yaml/common.js +0 -60
  200. data/vendor/node_modules/grunt/node_modules/js-yaml/lib/js-yaml/dumper.js +0 -437
  201. data/vendor/node_modules/grunt/node_modules/js-yaml/lib/js-yaml/exception.js +0 -25
  202. data/vendor/node_modules/grunt/node_modules/js-yaml/lib/js-yaml/loader.js +0 -1549
  203. data/vendor/node_modules/grunt/node_modules/js-yaml/lib/js-yaml/mark.js +0 -78
  204. data/vendor/node_modules/grunt/node_modules/js-yaml/lib/js-yaml/require.js +0 -23
  205. data/vendor/node_modules/grunt/node_modules/js-yaml/lib/js-yaml/schema.js +0 -103
  206. data/vendor/node_modules/grunt/node_modules/js-yaml/lib/js-yaml/schema/default.js +0 -16
  207. data/vendor/node_modules/grunt/node_modules/js-yaml/lib/js-yaml/schema/minimal.js +0 -13
  208. data/vendor/node_modules/grunt/node_modules/js-yaml/lib/js-yaml/schema/safe.js +0 -25
  209. data/vendor/node_modules/grunt/node_modules/js-yaml/lib/js-yaml/type.js +0 -82
  210. data/vendor/node_modules/grunt/node_modules/js-yaml/lib/js-yaml/type/binary.js +0 -118
  211. data/vendor/node_modules/grunt/node_modules/js-yaml/lib/js-yaml/type/bool.js +0 -74
  212. data/vendor/node_modules/grunt/node_modules/js-yaml/lib/js-yaml/type/float.js +0 -102
  213. data/vendor/node_modules/grunt/node_modules/js-yaml/lib/js-yaml/type/int.js +0 -85
  214. data/vendor/node_modules/grunt/node_modules/js-yaml/lib/js-yaml/type/js/function.js +0 -56
  215. data/vendor/node_modules/grunt/node_modules/js-yaml/lib/js-yaml/type/js/regexp.js +0 -56
  216. data/vendor/node_modules/grunt/node_modules/js-yaml/lib/js-yaml/type/js/undefined.js +0 -28
  217. data/vendor/node_modules/grunt/node_modules/js-yaml/lib/js-yaml/type/map.js +0 -11
  218. data/vendor/node_modules/grunt/node_modules/js-yaml/lib/js-yaml/type/merge.js +0 -18
  219. data/vendor/node_modules/grunt/node_modules/js-yaml/lib/js-yaml/type/null.js +0 -36
  220. data/vendor/node_modules/grunt/node_modules/js-yaml/lib/js-yaml/type/omap.js +0 -53
  221. data/vendor/node_modules/grunt/node_modules/js-yaml/lib/js-yaml/type/pairs.js +0 -41
  222. data/vendor/node_modules/grunt/node_modules/js-yaml/lib/js-yaml/type/seq.js +0 -11
  223. data/vendor/node_modules/grunt/node_modules/js-yaml/lib/js-yaml/type/set.js +0 -31
  224. data/vendor/node_modules/grunt/node_modules/js-yaml/lib/js-yaml/type/str.js +0 -11
  225. data/vendor/node_modules/grunt/node_modules/js-yaml/lib/js-yaml/type/timestamp.js +0 -91
  226. data/vendor/node_modules/grunt/node_modules/js-yaml/node_modules/argparse/HISTORY.md +0 -109
  227. data/vendor/node_modules/grunt/node_modules/js-yaml/node_modules/argparse/LICENSE +0 -21
  228. data/vendor/node_modules/grunt/node_modules/js-yaml/node_modules/argparse/README.md +0 -239
  229. data/vendor/node_modules/grunt/node_modules/js-yaml/node_modules/argparse/examples/arguments.js +0 -36
  230. data/vendor/node_modules/grunt/node_modules/js-yaml/node_modules/argparse/examples/choice.js +0 -22
  231. data/vendor/node_modules/grunt/node_modules/js-yaml/node_modules/argparse/examples/constants.js +0 -59
  232. data/vendor/node_modules/grunt/node_modules/js-yaml/node_modules/argparse/examples/help.js +0 -13
  233. data/vendor/node_modules/grunt/node_modules/js-yaml/node_modules/argparse/examples/nargs.js +0 -33
  234. data/vendor/node_modules/grunt/node_modules/js-yaml/node_modules/argparse/examples/parents.js +0 -28
  235. data/vendor/node_modules/grunt/node_modules/js-yaml/node_modules/argparse/examples/prefix_chars.js +0 -23
  236. data/vendor/node_modules/grunt/node_modules/js-yaml/node_modules/argparse/examples/sub_commands.js +0 -49
  237. data/vendor/node_modules/grunt/node_modules/js-yaml/node_modules/argparse/examples/sum.js +0 -35
  238. data/vendor/node_modules/grunt/node_modules/js-yaml/node_modules/argparse/examples/testformatters.js +0 -270
  239. data/vendor/node_modules/grunt/node_modules/js-yaml/node_modules/argparse/index.js +0 -1
  240. data/vendor/node_modules/grunt/node_modules/js-yaml/node_modules/argparse/lib/action.js +0 -146
  241. data/vendor/node_modules/grunt/node_modules/js-yaml/node_modules/argparse/lib/action/append.js +0 -55
  242. data/vendor/node_modules/grunt/node_modules/js-yaml/node_modules/argparse/lib/action/append/constant.js +0 -47
  243. data/vendor/node_modules/grunt/node_modules/js-yaml/node_modules/argparse/lib/action/count.js +0 -40
  244. data/vendor/node_modules/grunt/node_modules/js-yaml/node_modules/argparse/lib/action/help.js +0 -48
  245. data/vendor/node_modules/grunt/node_modules/js-yaml/node_modules/argparse/lib/action/store.js +0 -50
  246. data/vendor/node_modules/grunt/node_modules/js-yaml/node_modules/argparse/lib/action/store/constant.js +0 -43
  247. data/vendor/node_modules/grunt/node_modules/js-yaml/node_modules/argparse/lib/action/store/false.js +0 -27
  248. data/vendor/node_modules/grunt/node_modules/js-yaml/node_modules/argparse/lib/action/store/true.js +0 -26
  249. data/vendor/node_modules/grunt/node_modules/js-yaml/node_modules/argparse/lib/action/subparsers.js +0 -148
  250. data/vendor/node_modules/grunt/node_modules/js-yaml/node_modules/argparse/lib/action/version.js +0 -50
  251. data/vendor/node_modules/grunt/node_modules/js-yaml/node_modules/argparse/lib/action_container.js +0 -481
  252. data/vendor/node_modules/grunt/node_modules/js-yaml/node_modules/argparse/lib/argparse.js +0 -14
  253. data/vendor/node_modules/grunt/node_modules/js-yaml/node_modules/argparse/lib/argument/error.js +0 -50
  254. data/vendor/node_modules/grunt/node_modules/js-yaml/node_modules/argparse/lib/argument/exclusive.js +0 -54
  255. data/vendor/node_modules/grunt/node_modules/js-yaml/node_modules/argparse/lib/argument/group.js +0 -75
  256. data/vendor/node_modules/grunt/node_modules/js-yaml/node_modules/argparse/lib/argument_parser.js +0 -1165
  257. data/vendor/node_modules/grunt/node_modules/js-yaml/node_modules/argparse/lib/const.js +0 -18
  258. data/vendor/node_modules/grunt/node_modules/js-yaml/node_modules/argparse/lib/help/added_formatters.js +0 -88
  259. data/vendor/node_modules/grunt/node_modules/js-yaml/node_modules/argparse/lib/help/formatter.js +0 -803
  260. data/vendor/node_modules/grunt/node_modules/js-yaml/node_modules/argparse/lib/namespace.js +0 -77
  261. data/vendor/node_modules/grunt/node_modules/js-yaml/node_modules/argparse/node_modules/underscore.string/Gemfile +0 -4
  262. data/vendor/node_modules/grunt/node_modules/js-yaml/node_modules/argparse/node_modules/underscore.string/Gemfile.lock +0 -17
  263. data/vendor/node_modules/grunt/node_modules/js-yaml/node_modules/argparse/node_modules/underscore.string/README.markdown +0 -814
  264. data/vendor/node_modules/grunt/node_modules/js-yaml/node_modules/argparse/node_modules/underscore.string/Rakefile +0 -23
  265. data/vendor/node_modules/grunt/node_modules/js-yaml/node_modules/argparse/node_modules/underscore.string/component.json +0 -11
  266. data/vendor/node_modules/grunt/node_modules/js-yaml/node_modules/argparse/node_modules/underscore.string/dist/underscore.string.min.js +0 -1
  267. data/vendor/node_modules/grunt/node_modules/js-yaml/node_modules/argparse/node_modules/underscore.string/lib/underscore.string.js +0 -673
  268. data/vendor/node_modules/grunt/node_modules/js-yaml/node_modules/argparse/node_modules/underscore.string/libpeerconnection.log +0 -0
  269. data/vendor/node_modules/grunt/node_modules/js-yaml/node_modules/argparse/node_modules/underscore.string/package.json +0 -73
  270. data/vendor/node_modules/grunt/node_modules/js-yaml/node_modules/argparse/node_modules/underscore.string/test/run-qunit.js +0 -45
  271. data/vendor/node_modules/grunt/node_modules/js-yaml/node_modules/argparse/node_modules/underscore.string/test/speed.js +0 -148
  272. data/vendor/node_modules/grunt/node_modules/js-yaml/node_modules/argparse/node_modules/underscore.string/test/strings.js +0 -685
  273. data/vendor/node_modules/grunt/node_modules/js-yaml/node_modules/argparse/node_modules/underscore.string/test/strings_standalone.js +0 -12
  274. data/vendor/node_modules/grunt/node_modules/js-yaml/node_modules/argparse/node_modules/underscore.string/test/test.html +0 -31
  275. data/vendor/node_modules/grunt/node_modules/js-yaml/node_modules/argparse/node_modules/underscore.string/test/test_standalone.html +0 -18
  276. data/vendor/node_modules/grunt/node_modules/js-yaml/node_modules/argparse/node_modules/underscore.string/test/test_underscore/arrays.js +0 -200
  277. data/vendor/node_modules/grunt/node_modules/js-yaml/node_modules/argparse/node_modules/underscore.string/test/test_underscore/chaining.js +0 -59
  278. data/vendor/node_modules/grunt/node_modules/js-yaml/node_modules/argparse/node_modules/underscore.string/test/test_underscore/collections.js +0 -426
  279. data/vendor/node_modules/grunt/node_modules/js-yaml/node_modules/argparse/node_modules/underscore.string/test/test_underscore/functions.js +0 -259
  280. data/vendor/node_modules/grunt/node_modules/js-yaml/node_modules/argparse/node_modules/underscore.string/test/test_underscore/index.html +0 -45
  281. data/vendor/node_modules/grunt/node_modules/js-yaml/node_modules/argparse/node_modules/underscore.string/test/test_underscore/objects.js +0 -548
  282. data/vendor/node_modules/grunt/node_modules/js-yaml/node_modules/argparse/node_modules/underscore.string/test/test_underscore/speed.js +0 -75
  283. data/vendor/node_modules/grunt/node_modules/js-yaml/node_modules/argparse/node_modules/underscore.string/test/test_underscore/utility.js +0 -249
  284. data/vendor/node_modules/grunt/node_modules/js-yaml/node_modules/argparse/node_modules/underscore.string/test/test_underscore/vendor/jquery.js +0 -9404
  285. data/vendor/node_modules/grunt/node_modules/js-yaml/node_modules/argparse/node_modules/underscore.string/test/test_underscore/vendor/jslitmus.js +0 -670
  286. data/vendor/node_modules/grunt/node_modules/js-yaml/node_modules/argparse/node_modules/underscore.string/test/test_underscore/vendor/qunit.css +0 -235
  287. data/vendor/node_modules/grunt/node_modules/js-yaml/node_modules/argparse/node_modules/underscore.string/test/test_underscore/vendor/qunit.js +0 -1977
  288. data/vendor/node_modules/grunt/node_modules/js-yaml/node_modules/argparse/node_modules/underscore.string/test/underscore.js +0 -1201
  289. data/vendor/node_modules/grunt/node_modules/js-yaml/node_modules/argparse/node_modules/underscore/CNAME +0 -1
  290. data/vendor/node_modules/grunt/node_modules/js-yaml/node_modules/argparse/node_modules/underscore/CONTRIBUTING.md +0 -9
  291. data/vendor/node_modules/grunt/node_modules/js-yaml/node_modules/argparse/node_modules/underscore/LICENSE +0 -22
  292. data/vendor/node_modules/grunt/node_modules/js-yaml/node_modules/argparse/node_modules/underscore/README.md +0 -19
  293. data/vendor/node_modules/grunt/node_modules/js-yaml/node_modules/argparse/node_modules/underscore/favicon.ico +0 -0
  294. data/vendor/node_modules/grunt/node_modules/js-yaml/node_modules/argparse/node_modules/underscore/index.html +0 -2467
  295. data/vendor/node_modules/grunt/node_modules/js-yaml/node_modules/argparse/node_modules/underscore/index.js +0 -1
  296. data/vendor/node_modules/grunt/node_modules/js-yaml/node_modules/argparse/node_modules/underscore/package.json +0 -35
  297. data/vendor/node_modules/grunt/node_modules/js-yaml/node_modules/argparse/node_modules/underscore/underscore-min.js +0 -1
  298. data/vendor/node_modules/grunt/node_modules/js-yaml/node_modules/argparse/node_modules/underscore/underscore.js +0 -1226
  299. data/vendor/node_modules/grunt/node_modules/js-yaml/node_modules/argparse/package.json +0 -50
  300. data/vendor/node_modules/grunt/node_modules/js-yaml/node_modules/esprima/README.md +0 -73
  301. data/vendor/node_modules/grunt/node_modules/js-yaml/node_modules/esprima/bin/esparse.js +0 -117
  302. data/vendor/node_modules/grunt/node_modules/js-yaml/node_modules/esprima/bin/esvalidate.js +0 -177
  303. data/vendor/node_modules/grunt/node_modules/js-yaml/node_modules/esprima/esprima.js +0 -3908
  304. data/vendor/node_modules/grunt/node_modules/js-yaml/node_modules/esprima/package.json +0 -59
  305. data/vendor/node_modules/grunt/node_modules/js-yaml/node_modules/esprima/test/compat.js +0 -239
  306. data/vendor/node_modules/grunt/node_modules/js-yaml/node_modules/esprima/test/reflect.js +0 -422
  307. data/vendor/node_modules/grunt/node_modules/js-yaml/node_modules/esprima/test/run.js +0 -66
  308. data/vendor/node_modules/grunt/node_modules/js-yaml/node_modules/esprima/test/runner.js +0 -387
  309. data/vendor/node_modules/grunt/node_modules/js-yaml/node_modules/esprima/test/test.js +0 -20238
  310. data/vendor/node_modules/grunt/node_modules/js-yaml/package.json +0 -60
  311. data/vendor/node_modules/grunt/node_modules/lodash/README.md +0 -140
  312. data/vendor/node_modules/grunt/node_modules/lodash/lodash.js +0 -4258
  313. data/vendor/node_modules/grunt/node_modules/lodash/lodash.min.js +0 -35
  314. data/vendor/node_modules/grunt/node_modules/lodash/lodash.underscore.js +0 -3688
  315. data/vendor/node_modules/grunt/node_modules/lodash/lodash.underscore.min.js +0 -28
  316. data/vendor/node_modules/grunt/node_modules/lodash/package.json +0 -62
  317. data/vendor/node_modules/grunt/node_modules/minimatch/LICENSE +0 -23
  318. data/vendor/node_modules/grunt/node_modules/minimatch/README.md +0 -218
  319. data/vendor/node_modules/grunt/node_modules/minimatch/minimatch.js +0 -1055
  320. data/vendor/node_modules/grunt/node_modules/minimatch/node_modules/lru-cache/CONTRIBUTORS +0 -14
  321. data/vendor/node_modules/grunt/node_modules/minimatch/node_modules/lru-cache/LICENSE +0 -23
  322. data/vendor/node_modules/grunt/node_modules/minimatch/node_modules/lru-cache/README.md +0 -97
  323. data/vendor/node_modules/grunt/node_modules/minimatch/node_modules/lru-cache/lib/lru-cache.js +0 -252
  324. data/vendor/node_modules/grunt/node_modules/minimatch/node_modules/lru-cache/package.json +0 -33
  325. data/vendor/node_modules/grunt/node_modules/minimatch/node_modules/lru-cache/test/basic.js +0 -369
  326. data/vendor/node_modules/grunt/node_modules/minimatch/node_modules/lru-cache/test/foreach.js +0 -52
  327. data/vendor/node_modules/grunt/node_modules/minimatch/node_modules/lru-cache/test/memory-leak.js +0 -50
  328. data/vendor/node_modules/grunt/node_modules/minimatch/node_modules/sigmund/LICENSE +0 -27
  329. data/vendor/node_modules/grunt/node_modules/minimatch/node_modules/sigmund/README.md +0 -53
  330. data/vendor/node_modules/grunt/node_modules/minimatch/node_modules/sigmund/bench.js +0 -283
  331. data/vendor/node_modules/grunt/node_modules/minimatch/node_modules/sigmund/package.json +0 -42
  332. data/vendor/node_modules/grunt/node_modules/minimatch/node_modules/sigmund/sigmund.js +0 -39
  333. data/vendor/node_modules/grunt/node_modules/minimatch/node_modules/sigmund/test/basic.js +0 -24
  334. data/vendor/node_modules/grunt/node_modules/minimatch/package.json +0 -40
  335. data/vendor/node_modules/grunt/node_modules/minimatch/test/basic.js +0 -399
  336. data/vendor/node_modules/grunt/node_modules/minimatch/test/brace-expand.js +0 -33
  337. data/vendor/node_modules/grunt/node_modules/minimatch/test/caching.js +0 -14
  338. data/vendor/node_modules/grunt/node_modules/minimatch/test/defaults.js +0 -274
  339. data/vendor/node_modules/grunt/node_modules/minimatch/test/extglob-ending-with-state-char.js +0 -8
  340. data/vendor/node_modules/grunt/node_modules/nopt/LICENSE +0 -23
  341. data/vendor/node_modules/grunt/node_modules/nopt/README.md +0 -208
  342. data/vendor/node_modules/grunt/node_modules/nopt/bin/nopt.js +0 -44
  343. data/vendor/node_modules/grunt/node_modules/nopt/examples/my-program.js +0 -30
  344. data/vendor/node_modules/grunt/node_modules/nopt/lib/nopt.js +0 -552
  345. data/vendor/node_modules/grunt/node_modules/nopt/node_modules/abbrev/LICENSE +0 -23
  346. data/vendor/node_modules/grunt/node_modules/nopt/node_modules/abbrev/README.md +0 -23
  347. data/vendor/node_modules/grunt/node_modules/nopt/node_modules/abbrev/lib/abbrev.js +0 -111
  348. data/vendor/node_modules/grunt/node_modules/nopt/node_modules/abbrev/package.json +0 -29
  349. data/vendor/node_modules/grunt/node_modules/nopt/package.json +0 -36
  350. data/vendor/node_modules/grunt/node_modules/rimraf/AUTHORS +0 -6
  351. data/vendor/node_modules/grunt/node_modules/rimraf/LICENSE +0 -23
  352. data/vendor/node_modules/grunt/node_modules/rimraf/README.md +0 -21
  353. data/vendor/node_modules/grunt/node_modules/rimraf/node_modules/graceful-fs/LICENSE +0 -23
  354. data/vendor/node_modules/grunt/node_modules/rimraf/node_modules/graceful-fs/README.md +0 -5
  355. data/vendor/node_modules/grunt/node_modules/rimraf/node_modules/graceful-fs/graceful-fs.js +0 -312
  356. data/vendor/node_modules/grunt/node_modules/rimraf/node_modules/graceful-fs/package.json +0 -40
  357. data/vendor/node_modules/grunt/node_modules/rimraf/node_modules/graceful-fs/test/open.js +0 -41
  358. data/vendor/node_modules/grunt/node_modules/rimraf/package.json +0 -59
  359. data/vendor/node_modules/grunt/node_modules/rimraf/rimraf.js +0 -161
  360. data/vendor/node_modules/grunt/node_modules/rimraf/test/run.sh +0 -10
  361. data/vendor/node_modules/grunt/node_modules/rimraf/test/setup.sh +0 -47
  362. data/vendor/node_modules/grunt/node_modules/rimraf/test/test-async.js +0 -5
  363. data/vendor/node_modules/grunt/node_modules/rimraf/test/test-fiber.js +0 -0
  364. data/vendor/node_modules/grunt/node_modules/rimraf/test/test-sync.js +0 -3
  365. data/vendor/node_modules/grunt/node_modules/underscore.string/Gemfile +0 -5
  366. data/vendor/node_modules/grunt/node_modules/underscore.string/Gemfile.lock +0 -34
  367. data/vendor/node_modules/grunt/node_modules/underscore.string/README.markdown +0 -668
  368. data/vendor/node_modules/grunt/node_modules/underscore.string/Rakefile +0 -28
  369. data/vendor/node_modules/grunt/node_modules/underscore.string/dist/underscore.string.min.js +0 -1
  370. data/vendor/node_modules/grunt/node_modules/underscore.string/lib/underscore.string.js +0 -525
  371. data/vendor/node_modules/grunt/node_modules/underscore.string/package.json +0 -72
  372. data/vendor/node_modules/grunt/node_modules/underscore.string/test/run-qunit.js +0 -44
  373. data/vendor/node_modules/grunt/node_modules/underscore.string/test/speed.js +0 -138
  374. data/vendor/node_modules/grunt/node_modules/underscore.string/test/strings.js +0 -438
  375. data/vendor/node_modules/grunt/node_modules/underscore.string/test/strings_standalone.js +0 -12
  376. data/vendor/node_modules/grunt/node_modules/underscore.string/test/test.html +0 -31
  377. data/vendor/node_modules/grunt/node_modules/underscore.string/test/test_standalone.html +0 -18
  378. data/vendor/node_modules/grunt/node_modules/underscore.string/test/test_underscore/arrays.js +0 -166
  379. data/vendor/node_modules/grunt/node_modules/underscore.string/test/test_underscore/chaining.js +0 -59
  380. data/vendor/node_modules/grunt/node_modules/underscore.string/test/test_underscore/collections.js +0 -270
  381. data/vendor/node_modules/grunt/node_modules/underscore.string/test/test_underscore/functions.js +0 -198
  382. data/vendor/node_modules/grunt/node_modules/underscore.string/test/test_underscore/objects.js +0 -535
  383. data/vendor/node_modules/grunt/node_modules/underscore.string/test/test_underscore/speed.js +0 -70
  384. data/vendor/node_modules/grunt/node_modules/underscore.string/test/test_underscore/temp.js +0 -27
  385. data/vendor/node_modules/grunt/node_modules/underscore.string/test/test_underscore/temp_tests.html +0 -19
  386. data/vendor/node_modules/grunt/node_modules/underscore.string/test/test_underscore/test.html +0 -43
  387. data/vendor/node_modules/grunt/node_modules/underscore.string/test/test_underscore/utility.js +0 -155
  388. data/vendor/node_modules/grunt/node_modules/underscore.string/test/test_underscore/vendor/jquery.js +0 -19
  389. data/vendor/node_modules/grunt/node_modules/underscore.string/test/test_underscore/vendor/jslitmus.js +0 -670
  390. data/vendor/node_modules/grunt/node_modules/underscore.string/test/test_underscore/vendor/qunit.css +0 -196
  391. data/vendor/node_modules/grunt/node_modules/underscore.string/test/test_underscore/vendor/qunit.js +0 -2360
  392. data/vendor/node_modules/grunt/node_modules/underscore.string/test/underscore.js +0 -999
  393. data/vendor/node_modules/grunt/node_modules/which/LICENSE +0 -23
  394. data/vendor/node_modules/grunt/node_modules/which/README.md +0 -5
  395. data/vendor/node_modules/grunt/node_modules/which/bin/which +0 -14
  396. data/vendor/node_modules/grunt/node_modules/which/package.json +0 -31
  397. data/vendor/node_modules/grunt/node_modules/which/which.js +0 -104
  398. data/vendor/node_modules/grunt/package.json +0 -82
  399. data/vendor/node_modules/istanbul/CHANGELOG.md +0 -57
  400. data/vendor/node_modules/istanbul/LICENSE +0 -24
  401. data/vendor/node_modules/istanbul/README.md +0 -205
  402. data/vendor/node_modules/istanbul/index.js +0 -115
  403. data/vendor/node_modules/istanbul/lib/cli.js +0 -74
  404. data/vendor/node_modules/istanbul/lib/collector.js +0 -121
  405. data/vendor/node_modules/istanbul/lib/command/check-coverage.js +0 -115
  406. data/vendor/node_modules/istanbul/lib/command/common/run-with-cover.js +0 -199
  407. data/vendor/node_modules/istanbul/lib/command/cover.js +0 -33
  408. data/vendor/node_modules/istanbul/lib/command/help.js +0 -58
  409. data/vendor/node_modules/istanbul/lib/command/index.js +0 -33
  410. data/vendor/node_modules/istanbul/lib/command/instrument.js +0 -244
  411. data/vendor/node_modules/istanbul/lib/command/report.js +0 -97
  412. data/vendor/node_modules/istanbul/lib/command/test.js +0 -31
  413. data/vendor/node_modules/istanbul/lib/hook.js +0 -187
  414. data/vendor/node_modules/istanbul/lib/instrumenter.js +0 -759
  415. data/vendor/node_modules/istanbul/lib/object-utils.js +0 -341
  416. data/vendor/node_modules/istanbul/lib/register-plugins.js +0 -15
  417. data/vendor/node_modules/istanbul/lib/report/cobertura.js +0 -207
  418. data/vendor/node_modules/istanbul/lib/report/html.js +0 -517
  419. data/vendor/node_modules/istanbul/lib/report/index.js +0 -60
  420. data/vendor/node_modules/istanbul/lib/report/json.js +0 -55
  421. data/vendor/node_modules/istanbul/lib/report/lcov.js +0 -49
  422. data/vendor/node_modules/istanbul/lib/report/lcovonly.js +0 -93
  423. data/vendor/node_modules/istanbul/lib/report/none.js +0 -20
  424. data/vendor/node_modules/istanbul/lib/report/teamcity.js +0 -82
  425. data/vendor/node_modules/istanbul/lib/report/templates/foot.txt +0 -102
  426. data/vendor/node_modules/istanbul/lib/report/templates/head.txt +0 -200
  427. data/vendor/node_modules/istanbul/lib/report/text-summary.js +0 -72
  428. data/vendor/node_modules/istanbul/lib/report/text.js +0 -210
  429. data/vendor/node_modules/istanbul/lib/store/fslookup.js +0 -60
  430. data/vendor/node_modules/istanbul/lib/store/index.js +0 -122
  431. data/vendor/node_modules/istanbul/lib/store/memory.js +0 -55
  432. data/vendor/node_modules/istanbul/lib/store/tmp.js +0 -80
  433. data/vendor/node_modules/istanbul/lib/util/factory.js +0 -88
  434. data/vendor/node_modules/istanbul/lib/util/file-matcher.js +0 -60
  435. data/vendor/node_modules/istanbul/lib/util/file-writer.js +0 -131
  436. data/vendor/node_modules/istanbul/lib/util/flow-control.js +0 -26
  437. data/vendor/node_modules/istanbul/lib/util/help-formatter.js +0 -24
  438. data/vendor/node_modules/istanbul/lib/util/input-error.js +0 -12
  439. data/vendor/node_modules/istanbul/lib/util/insertion-text.js +0 -109
  440. data/vendor/node_modules/istanbul/lib/util/meta.js +0 -13
  441. data/vendor/node_modules/istanbul/lib/util/tree-summarizer.js +0 -213
  442. data/vendor/node_modules/istanbul/lib/util/writer.js +0 -56
  443. data/vendor/node_modules/istanbul/lib/util/yui-load-hook.js +0 -49
  444. data/vendor/node_modules/istanbul/lib/vendor/prettify.css +0 -1
  445. data/vendor/node_modules/istanbul/lib/vendor/prettify.js +0 -1
  446. data/vendor/node_modules/istanbul/node_modules/abbrev/LICENSE +0 -23
  447. data/vendor/node_modules/istanbul/node_modules/abbrev/README.md +0 -23
  448. data/vendor/node_modules/istanbul/node_modules/abbrev/lib/abbrev.js +0 -111
  449. data/vendor/node_modules/istanbul/node_modules/abbrev/package.json +0 -29
  450. data/vendor/node_modules/istanbul/node_modules/async/LICENSE +0 -19
  451. data/vendor/node_modules/istanbul/node_modules/async/README.md +0 -1414
  452. data/vendor/node_modules/istanbul/node_modules/async/component.json +0 -11
  453. data/vendor/node_modules/istanbul/node_modules/async/lib/async.js +0 -955
  454. data/vendor/node_modules/istanbul/node_modules/async/package.json +0 -43
  455. data/vendor/node_modules/istanbul/node_modules/escodegen/LICENSE.BSD +0 -19
  456. data/vendor/node_modules/istanbul/node_modules/escodegen/LICENSE.source-map +0 -27
  457. data/vendor/node_modules/istanbul/node_modules/escodegen/README.md +0 -99
  458. data/vendor/node_modules/istanbul/node_modules/escodegen/bin/escodegen.js +0 -45
  459. data/vendor/node_modules/istanbul/node_modules/escodegen/bin/esgenerate.js +0 -45
  460. data/vendor/node_modules/istanbul/node_modules/escodegen/component.json +0 -48
  461. data/vendor/node_modules/istanbul/node_modules/escodegen/escodegen.browser.js +0 -3072
  462. data/vendor/node_modules/istanbul/node_modules/escodegen/escodegen.js +0 -2275
  463. data/vendor/node_modules/istanbul/node_modules/escodegen/node_modules/estraverse/LICENSE.BSD +0 -19
  464. data/vendor/node_modules/istanbul/node_modules/escodegen/node_modules/estraverse/README.md +0 -29
  465. data/vendor/node_modules/istanbul/node_modules/escodegen/node_modules/estraverse/estraverse.js +0 -315
  466. data/vendor/node_modules/istanbul/node_modules/escodegen/node_modules/estraverse/package.json +0 -41
  467. data/vendor/node_modules/istanbul/node_modules/escodegen/node_modules/source-map/CHANGELOG.md +0 -112
  468. data/vendor/node_modules/istanbul/node_modules/escodegen/node_modules/source-map/LICENSE +0 -28
  469. data/vendor/node_modules/istanbul/node_modules/escodegen/node_modules/source-map/Makefile.dryice.js +0 -166
  470. data/vendor/node_modules/istanbul/node_modules/escodegen/node_modules/source-map/README.md +0 -434
  471. data/vendor/node_modules/istanbul/node_modules/escodegen/node_modules/source-map/build/assert-shim.js +0 -56
  472. data/vendor/node_modules/istanbul/node_modules/escodegen/node_modules/source-map/build/mini-require.js +0 -152
  473. data/vendor/node_modules/istanbul/node_modules/escodegen/node_modules/source-map/build/prefix-source-map.jsm +0 -20
  474. data/vendor/node_modules/istanbul/node_modules/escodegen/node_modules/source-map/build/prefix-utils.jsm +0 -18
  475. data/vendor/node_modules/istanbul/node_modules/escodegen/node_modules/source-map/build/suffix-browser.js +0 -8
  476. data/vendor/node_modules/istanbul/node_modules/escodegen/node_modules/source-map/build/suffix-source-map.jsm +0 -6
  477. data/vendor/node_modules/istanbul/node_modules/escodegen/node_modules/source-map/build/suffix-utils.jsm +0 -21
  478. data/vendor/node_modules/istanbul/node_modules/escodegen/node_modules/source-map/build/test-prefix.js +0 -8
  479. data/vendor/node_modules/istanbul/node_modules/escodegen/node_modules/source-map/build/test-suffix.js +0 -3
  480. data/vendor/node_modules/istanbul/node_modules/escodegen/node_modules/source-map/lib/source-map.js +0 -8
  481. data/vendor/node_modules/istanbul/node_modules/escodegen/node_modules/source-map/lib/source-map/array-set.js +0 -97
  482. data/vendor/node_modules/istanbul/node_modules/escodegen/node_modules/source-map/lib/source-map/base64-vlq.js +0 -144
  483. data/vendor/node_modules/istanbul/node_modules/escodegen/node_modules/source-map/lib/source-map/base64.js +0 -42
  484. data/vendor/node_modules/istanbul/node_modules/escodegen/node_modules/source-map/lib/source-map/binary-search.js +0 -81
  485. data/vendor/node_modules/istanbul/node_modules/escodegen/node_modules/source-map/lib/source-map/source-map-consumer.js +0 -477
  486. data/vendor/node_modules/istanbul/node_modules/escodegen/node_modules/source-map/lib/source-map/source-map-generator.js +0 -380
  487. data/vendor/node_modules/istanbul/node_modules/escodegen/node_modules/source-map/lib/source-map/source-node.js +0 -371
  488. data/vendor/node_modules/istanbul/node_modules/escodegen/node_modules/source-map/lib/source-map/util.js +0 -205
  489. data/vendor/node_modules/istanbul/node_modules/escodegen/node_modules/source-map/node_modules/amdefine/LICENSE +0 -58
  490. data/vendor/node_modules/istanbul/node_modules/escodegen/node_modules/source-map/node_modules/amdefine/README.md +0 -171
  491. data/vendor/node_modules/istanbul/node_modules/escodegen/node_modules/source-map/node_modules/amdefine/amdefine.js +0 -299
  492. data/vendor/node_modules/istanbul/node_modules/escodegen/node_modules/source-map/node_modules/amdefine/intercept.js +0 -36
  493. data/vendor/node_modules/istanbul/node_modules/escodegen/node_modules/source-map/node_modules/amdefine/package.json +0 -36
  494. data/vendor/node_modules/istanbul/node_modules/escodegen/node_modules/source-map/package.json +0 -110
  495. data/vendor/node_modules/istanbul/node_modules/escodegen/node_modules/source-map/test/run-tests.js +0 -71
  496. data/vendor/node_modules/istanbul/node_modules/escodegen/node_modules/source-map/test/source-map/test-api.js +0 -26
  497. data/vendor/node_modules/istanbul/node_modules/escodegen/node_modules/source-map/test/source-map/test-array-set.js +0 -104
  498. data/vendor/node_modules/istanbul/node_modules/escodegen/node_modules/source-map/test/source-map/test-base64-vlq.js +0 -24
  499. data/vendor/node_modules/istanbul/node_modules/escodegen/node_modules/source-map/test/source-map/test-base64.js +0 -35
  500. data/vendor/node_modules/istanbul/node_modules/escodegen/node_modules/source-map/test/source-map/test-binary-search.js +0 -54
  501. data/vendor/node_modules/istanbul/node_modules/escodegen/node_modules/source-map/test/source-map/test-dog-fooding.js +0 -72
  502. data/vendor/node_modules/istanbul/node_modules/escodegen/node_modules/source-map/test/source-map/test-source-map-consumer.js +0 -451
  503. data/vendor/node_modules/istanbul/node_modules/escodegen/node_modules/source-map/test/source-map/test-source-map-generator.js +0 -417
  504. data/vendor/node_modules/istanbul/node_modules/escodegen/node_modules/source-map/test/source-map/test-source-node.js +0 -365
  505. data/vendor/node_modules/istanbul/node_modules/escodegen/node_modules/source-map/test/source-map/util.js +0 -161
  506. data/vendor/node_modules/istanbul/node_modules/escodegen/package.json +0 -58
  507. data/vendor/node_modules/istanbul/node_modules/esprima/README.md +0 -73
  508. data/vendor/node_modules/istanbul/node_modules/esprima/bin/esparse.js +0 -117
  509. data/vendor/node_modules/istanbul/node_modules/esprima/bin/esvalidate.js +0 -177
  510. data/vendor/node_modules/istanbul/node_modules/esprima/esprima.js +0 -3908
  511. data/vendor/node_modules/istanbul/node_modules/esprima/package.json +0 -59
  512. data/vendor/node_modules/istanbul/node_modules/esprima/test/compat.js +0 -239
  513. data/vendor/node_modules/istanbul/node_modules/esprima/test/reflect.js +0 -422
  514. data/vendor/node_modules/istanbul/node_modules/esprima/test/run.js +0 -66
  515. data/vendor/node_modules/istanbul/node_modules/esprima/test/runner.js +0 -387
  516. data/vendor/node_modules/istanbul/node_modules/esprima/test/test.js +0 -20238
  517. data/vendor/node_modules/istanbul/node_modules/fileset/LICENSE-MIT +0 -22
  518. data/vendor/node_modules/istanbul/node_modules/fileset/README.md +0 -87
  519. data/vendor/node_modules/istanbul/node_modules/fileset/lib/fileset.js +0 -64
  520. data/vendor/node_modules/istanbul/node_modules/fileset/node_modules/glob/LICENSE +0 -27
  521. data/vendor/node_modules/istanbul/node_modules/fileset/node_modules/glob/README.md +0 -250
  522. data/vendor/node_modules/istanbul/node_modules/fileset/node_modules/glob/examples/g.js +0 -9
  523. data/vendor/node_modules/istanbul/node_modules/fileset/node_modules/glob/examples/usr-local.js +0 -9
  524. data/vendor/node_modules/istanbul/node_modules/fileset/node_modules/glob/glob.js +0 -680
  525. data/vendor/node_modules/istanbul/node_modules/fileset/node_modules/glob/node_modules/inherits/LICENSE +0 -16
  526. data/vendor/node_modules/istanbul/node_modules/fileset/node_modules/glob/node_modules/inherits/README.md +0 -42
  527. data/vendor/node_modules/istanbul/node_modules/fileset/node_modules/glob/node_modules/inherits/inherits.js +0 -1
  528. data/vendor/node_modules/istanbul/node_modules/fileset/node_modules/glob/node_modules/inherits/inherits_browser.js +0 -23
  529. data/vendor/node_modules/istanbul/node_modules/fileset/node_modules/glob/node_modules/inherits/package.json +0 -33
  530. data/vendor/node_modules/istanbul/node_modules/fileset/node_modules/glob/node_modules/inherits/test.js +0 -25
  531. data/vendor/node_modules/istanbul/node_modules/fileset/node_modules/glob/package.json +0 -39
  532. data/vendor/node_modules/istanbul/node_modules/fileset/node_modules/glob/test/00-setup.js +0 -176
  533. data/vendor/node_modules/istanbul/node_modules/fileset/node_modules/glob/test/bash-comparison.js +0 -63
  534. data/vendor/node_modules/istanbul/node_modules/fileset/node_modules/glob/test/bash-results.json +0 -350
  535. data/vendor/node_modules/istanbul/node_modules/fileset/node_modules/glob/test/cwd-test.js +0 -55
  536. data/vendor/node_modules/istanbul/node_modules/fileset/node_modules/glob/test/globstar-match.js +0 -19
  537. data/vendor/node_modules/istanbul/node_modules/fileset/node_modules/glob/test/mark.js +0 -74
  538. data/vendor/node_modules/istanbul/node_modules/fileset/node_modules/glob/test/new-glob-optional-options.js +0 -10
  539. data/vendor/node_modules/istanbul/node_modules/fileset/node_modules/glob/test/nocase-nomagic.js +0 -113
  540. data/vendor/node_modules/istanbul/node_modules/fileset/node_modules/glob/test/pause-resume.js +0 -73
  541. data/vendor/node_modules/istanbul/node_modules/fileset/node_modules/glob/test/root-nomount.js +0 -39
  542. data/vendor/node_modules/istanbul/node_modules/fileset/node_modules/glob/test/root.js +0 -46
  543. data/vendor/node_modules/istanbul/node_modules/fileset/node_modules/glob/test/stat.js +0 -32
  544. data/vendor/node_modules/istanbul/node_modules/fileset/node_modules/glob/test/zz-cleanup.js +0 -11
  545. data/vendor/node_modules/istanbul/node_modules/fileset/node_modules/minimatch/LICENSE +0 -23
  546. data/vendor/node_modules/istanbul/node_modules/fileset/node_modules/minimatch/README.md +0 -218
  547. data/vendor/node_modules/istanbul/node_modules/fileset/node_modules/minimatch/minimatch.js +0 -1055
  548. data/vendor/node_modules/istanbul/node_modules/fileset/node_modules/minimatch/node_modules/lru-cache/CONTRIBUTORS +0 -14
  549. data/vendor/node_modules/istanbul/node_modules/fileset/node_modules/minimatch/node_modules/lru-cache/LICENSE +0 -23
  550. data/vendor/node_modules/istanbul/node_modules/fileset/node_modules/minimatch/node_modules/lru-cache/README.md +0 -97
  551. data/vendor/node_modules/istanbul/node_modules/fileset/node_modules/minimatch/node_modules/lru-cache/lib/lru-cache.js +0 -252
  552. data/vendor/node_modules/istanbul/node_modules/fileset/node_modules/minimatch/node_modules/lru-cache/package.json +0 -33
  553. data/vendor/node_modules/istanbul/node_modules/fileset/node_modules/minimatch/node_modules/lru-cache/test/basic.js +0 -369
  554. data/vendor/node_modules/istanbul/node_modules/fileset/node_modules/minimatch/node_modules/lru-cache/test/foreach.js +0 -52
  555. data/vendor/node_modules/istanbul/node_modules/fileset/node_modules/minimatch/node_modules/lru-cache/test/memory-leak.js +0 -50
  556. data/vendor/node_modules/istanbul/node_modules/fileset/node_modules/minimatch/node_modules/sigmund/LICENSE +0 -27
  557. data/vendor/node_modules/istanbul/node_modules/fileset/node_modules/minimatch/node_modules/sigmund/README.md +0 -53
  558. data/vendor/node_modules/istanbul/node_modules/fileset/node_modules/minimatch/node_modules/sigmund/bench.js +0 -283
  559. data/vendor/node_modules/istanbul/node_modules/fileset/node_modules/minimatch/node_modules/sigmund/package.json +0 -42
  560. data/vendor/node_modules/istanbul/node_modules/fileset/node_modules/minimatch/node_modules/sigmund/sigmund.js +0 -39
  561. data/vendor/node_modules/istanbul/node_modules/fileset/node_modules/minimatch/node_modules/sigmund/test/basic.js +0 -24
  562. data/vendor/node_modules/istanbul/node_modules/fileset/node_modules/minimatch/package.json +0 -40
  563. data/vendor/node_modules/istanbul/node_modules/fileset/node_modules/minimatch/test/basic.js +0 -399
  564. data/vendor/node_modules/istanbul/node_modules/fileset/node_modules/minimatch/test/brace-expand.js +0 -33
  565. data/vendor/node_modules/istanbul/node_modules/fileset/node_modules/minimatch/test/caching.js +0 -14
  566. data/vendor/node_modules/istanbul/node_modules/fileset/node_modules/minimatch/test/defaults.js +0 -274
  567. data/vendor/node_modules/istanbul/node_modules/fileset/node_modules/minimatch/test/extglob-ending-with-state-char.js +0 -8
  568. data/vendor/node_modules/istanbul/node_modules/fileset/package.json +0 -34
  569. data/vendor/node_modules/istanbul/node_modules/fileset/tests/fixtures/an (odd) filename.js +0 -1
  570. data/vendor/node_modules/istanbul/node_modules/fileset/tests/helper.js +0 -61
  571. data/vendor/node_modules/istanbul/node_modules/fileset/tests/test.js +0 -133
  572. data/vendor/node_modules/istanbul/node_modules/handlebars/LICENSE +0 -19
  573. data/vendor/node_modules/istanbul/node_modules/handlebars/README.markdown +0 -391
  574. data/vendor/node_modules/istanbul/node_modules/handlebars/bin/handlebars +0 -213
  575. data/vendor/node_modules/istanbul/node_modules/handlebars/bower.json +0 -9
  576. data/vendor/node_modules/istanbul/node_modules/handlebars/dist/handlebars.js +0 -2278
  577. data/vendor/node_modules/istanbul/node_modules/handlebars/dist/handlebars.min.js +0 -2
  578. data/vendor/node_modules/istanbul/node_modules/handlebars/dist/handlebars.runtime.js +0 -362
  579. data/vendor/node_modules/istanbul/node_modules/handlebars/dist/handlebars.runtime.min.js +0 -1
  580. data/vendor/node_modules/istanbul/node_modules/handlebars/global-test.js +0 -18
  581. data/vendor/node_modules/istanbul/node_modules/handlebars/global.js +0 -4
  582. data/vendor/node_modules/istanbul/node_modules/handlebars/handlebars-source.gemspec +0 -21
  583. data/vendor/node_modules/istanbul/node_modules/handlebars/handlebars.js.nuspec +0 -17
  584. data/vendor/node_modules/istanbul/node_modules/handlebars/lib/handlebars.js +0 -43
  585. data/vendor/node_modules/istanbul/node_modules/handlebars/lib/handlebars/base.js +0 -166
  586. data/vendor/node_modules/istanbul/node_modules/handlebars/lib/handlebars/browser-prefix.js +0 -3
  587. data/vendor/node_modules/istanbul/node_modules/handlebars/lib/handlebars/browser-suffix.js +0 -1
  588. data/vendor/node_modules/istanbul/node_modules/handlebars/lib/handlebars/compiler/ast.js +0 -138
  589. data/vendor/node_modules/istanbul/node_modules/handlebars/lib/handlebars/compiler/base.js +0 -21
  590. data/vendor/node_modules/istanbul/node_modules/handlebars/lib/handlebars/compiler/compiler.js +0 -1305
  591. data/vendor/node_modules/istanbul/node_modules/handlebars/lib/handlebars/compiler/index.js +0 -16
  592. data/vendor/node_modules/istanbul/node_modules/handlebars/lib/handlebars/compiler/parser.js +0 -483
  593. data/vendor/node_modules/istanbul/node_modules/handlebars/lib/handlebars/compiler/printer.js +0 -138
  594. data/vendor/node_modules/istanbul/node_modules/handlebars/lib/handlebars/compiler/visitor.js +0 -18
  595. data/vendor/node_modules/istanbul/node_modules/handlebars/lib/handlebars/runtime.js +0 -106
  596. data/vendor/node_modules/istanbul/node_modules/handlebars/lib/handlebars/source.rb +0 -11
  597. data/vendor/node_modules/istanbul/node_modules/handlebars/lib/handlebars/utils.js +0 -83
  598. data/vendor/node_modules/istanbul/node_modules/handlebars/min.sh +0 -11
  599. data/vendor/node_modules/istanbul/node_modules/handlebars/node_modules/optimist/LICENSE +0 -21
  600. data/vendor/node_modules/istanbul/node_modules/handlebars/node_modules/optimist/example/bool.js +0 -10
  601. data/vendor/node_modules/istanbul/node_modules/handlebars/node_modules/optimist/example/boolean_double.js +0 -7
  602. data/vendor/node_modules/istanbul/node_modules/handlebars/node_modules/optimist/example/boolean_single.js +0 -7
  603. data/vendor/node_modules/istanbul/node_modules/handlebars/node_modules/optimist/example/default_hash.js +0 -8
  604. data/vendor/node_modules/istanbul/node_modules/handlebars/node_modules/optimist/example/default_singles.js +0 -7
  605. data/vendor/node_modules/istanbul/node_modules/handlebars/node_modules/optimist/example/divide.js +0 -8
  606. data/vendor/node_modules/istanbul/node_modules/handlebars/node_modules/optimist/example/line_count.js +0 -20
  607. data/vendor/node_modules/istanbul/node_modules/handlebars/node_modules/optimist/example/line_count_options.js +0 -29
  608. data/vendor/node_modules/istanbul/node_modules/handlebars/node_modules/optimist/example/line_count_wrap.js +0 -29
  609. data/vendor/node_modules/istanbul/node_modules/handlebars/node_modules/optimist/example/nonopt.js +0 -4
  610. data/vendor/node_modules/istanbul/node_modules/handlebars/node_modules/optimist/example/reflect.js +0 -2
  611. data/vendor/node_modules/istanbul/node_modules/handlebars/node_modules/optimist/example/short.js +0 -3
  612. data/vendor/node_modules/istanbul/node_modules/handlebars/node_modules/optimist/example/string.js +0 -11
  613. data/vendor/node_modules/istanbul/node_modules/handlebars/node_modules/optimist/example/usage-options.js +0 -19
  614. data/vendor/node_modules/istanbul/node_modules/handlebars/node_modules/optimist/example/xup.js +0 -10
  615. data/vendor/node_modules/istanbul/node_modules/handlebars/node_modules/optimist/index.js +0 -478
  616. data/vendor/node_modules/istanbul/node_modules/handlebars/node_modules/optimist/package.json +0 -46
  617. data/vendor/node_modules/istanbul/node_modules/handlebars/node_modules/optimist/readme.markdown +0 -487
  618. data/vendor/node_modules/istanbul/node_modules/handlebars/node_modules/optimist/test/_.js +0 -71
  619. data/vendor/node_modules/istanbul/node_modules/handlebars/node_modules/optimist/test/_/argv.js +0 -2
  620. data/vendor/node_modules/istanbul/node_modules/handlebars/node_modules/optimist/test/_/bin.js +0 -3
  621. data/vendor/node_modules/istanbul/node_modules/handlebars/node_modules/optimist/test/parse.js +0 -446
  622. data/vendor/node_modules/istanbul/node_modules/handlebars/node_modules/optimist/test/usage.js +0 -292
  623. data/vendor/node_modules/istanbul/node_modules/handlebars/node_modules/uglify-js/LICENSE +0 -29
  624. data/vendor/node_modules/istanbul/node_modules/handlebars/node_modules/uglify-js/README.md +0 -588
  625. data/vendor/node_modules/istanbul/node_modules/handlebars/node_modules/uglify-js/bin/uglifyjs +0 -402
  626. data/vendor/node_modules/istanbul/node_modules/handlebars/node_modules/uglify-js/lib/ast.js +0 -985
  627. data/vendor/node_modules/istanbul/node_modules/handlebars/node_modules/uglify-js/lib/compress.js +0 -2028
  628. data/vendor/node_modules/istanbul/node_modules/handlebars/node_modules/uglify-js/lib/mozilla-ast.js +0 -267
  629. data/vendor/node_modules/istanbul/node_modules/handlebars/node_modules/uglify-js/lib/output.js +0 -1229
  630. data/vendor/node_modules/istanbul/node_modules/handlebars/node_modules/uglify-js/lib/parse.js +0 -1410
  631. data/vendor/node_modules/istanbul/node_modules/handlebars/node_modules/uglify-js/lib/scope.js +0 -581
  632. data/vendor/node_modules/istanbul/node_modules/handlebars/node_modules/uglify-js/lib/sourcemap.js +0 -81
  633. data/vendor/node_modules/istanbul/node_modules/handlebars/node_modules/uglify-js/lib/transform.js +0 -217
  634. data/vendor/node_modules/istanbul/node_modules/handlebars/node_modules/uglify-js/lib/utils.js +0 -295
  635. data/vendor/node_modules/istanbul/node_modules/handlebars/node_modules/uglify-js/node_modules/source-map/CHANGELOG.md +0 -112
  636. data/vendor/node_modules/istanbul/node_modules/handlebars/node_modules/uglify-js/node_modules/source-map/LICENSE +0 -28
  637. data/vendor/node_modules/istanbul/node_modules/handlebars/node_modules/uglify-js/node_modules/source-map/Makefile.dryice.js +0 -166
  638. data/vendor/node_modules/istanbul/node_modules/handlebars/node_modules/uglify-js/node_modules/source-map/README.md +0 -434
  639. data/vendor/node_modules/istanbul/node_modules/handlebars/node_modules/uglify-js/node_modules/source-map/build/assert-shim.js +0 -56
  640. data/vendor/node_modules/istanbul/node_modules/handlebars/node_modules/uglify-js/node_modules/source-map/build/mini-require.js +0 -152
  641. data/vendor/node_modules/istanbul/node_modules/handlebars/node_modules/uglify-js/node_modules/source-map/build/prefix-source-map.jsm +0 -20
  642. data/vendor/node_modules/istanbul/node_modules/handlebars/node_modules/uglify-js/node_modules/source-map/build/prefix-utils.jsm +0 -18
  643. data/vendor/node_modules/istanbul/node_modules/handlebars/node_modules/uglify-js/node_modules/source-map/build/suffix-browser.js +0 -8
  644. data/vendor/node_modules/istanbul/node_modules/handlebars/node_modules/uglify-js/node_modules/source-map/build/suffix-source-map.jsm +0 -6
  645. data/vendor/node_modules/istanbul/node_modules/handlebars/node_modules/uglify-js/node_modules/source-map/build/suffix-utils.jsm +0 -21
  646. data/vendor/node_modules/istanbul/node_modules/handlebars/node_modules/uglify-js/node_modules/source-map/build/test-prefix.js +0 -8
  647. data/vendor/node_modules/istanbul/node_modules/handlebars/node_modules/uglify-js/node_modules/source-map/build/test-suffix.js +0 -3
  648. data/vendor/node_modules/istanbul/node_modules/handlebars/node_modules/uglify-js/node_modules/source-map/lib/source-map.js +0 -8
  649. data/vendor/node_modules/istanbul/node_modules/handlebars/node_modules/uglify-js/node_modules/source-map/lib/source-map/array-set.js +0 -97
  650. data/vendor/node_modules/istanbul/node_modules/handlebars/node_modules/uglify-js/node_modules/source-map/lib/source-map/base64-vlq.js +0 -144
  651. data/vendor/node_modules/istanbul/node_modules/handlebars/node_modules/uglify-js/node_modules/source-map/lib/source-map/base64.js +0 -42
  652. data/vendor/node_modules/istanbul/node_modules/handlebars/node_modules/uglify-js/node_modules/source-map/lib/source-map/binary-search.js +0 -81
  653. data/vendor/node_modules/istanbul/node_modules/handlebars/node_modules/uglify-js/node_modules/source-map/lib/source-map/source-map-consumer.js +0 -477
  654. data/vendor/node_modules/istanbul/node_modules/handlebars/node_modules/uglify-js/node_modules/source-map/lib/source-map/source-map-generator.js +0 -380
  655. data/vendor/node_modules/istanbul/node_modules/handlebars/node_modules/uglify-js/node_modules/source-map/lib/source-map/source-node.js +0 -371
  656. data/vendor/node_modules/istanbul/node_modules/handlebars/node_modules/uglify-js/node_modules/source-map/lib/source-map/util.js +0 -205
  657. data/vendor/node_modules/istanbul/node_modules/handlebars/node_modules/uglify-js/node_modules/source-map/node_modules/amdefine/LICENSE +0 -58
  658. data/vendor/node_modules/istanbul/node_modules/handlebars/node_modules/uglify-js/node_modules/source-map/node_modules/amdefine/README.md +0 -171
  659. data/vendor/node_modules/istanbul/node_modules/handlebars/node_modules/uglify-js/node_modules/source-map/node_modules/amdefine/amdefine.js +0 -299
  660. data/vendor/node_modules/istanbul/node_modules/handlebars/node_modules/uglify-js/node_modules/source-map/node_modules/amdefine/intercept.js +0 -36
  661. data/vendor/node_modules/istanbul/node_modules/handlebars/node_modules/uglify-js/node_modules/source-map/node_modules/amdefine/package.json +0 -37
  662. data/vendor/node_modules/istanbul/node_modules/handlebars/node_modules/uglify-js/node_modules/source-map/package.json +0 -110
  663. data/vendor/node_modules/istanbul/node_modules/handlebars/node_modules/uglify-js/node_modules/source-map/test/run-tests.js +0 -71
  664. data/vendor/node_modules/istanbul/node_modules/handlebars/node_modules/uglify-js/node_modules/source-map/test/source-map/test-api.js +0 -26
  665. data/vendor/node_modules/istanbul/node_modules/handlebars/node_modules/uglify-js/node_modules/source-map/test/source-map/test-array-set.js +0 -104
  666. data/vendor/node_modules/istanbul/node_modules/handlebars/node_modules/uglify-js/node_modules/source-map/test/source-map/test-base64-vlq.js +0 -24
  667. data/vendor/node_modules/istanbul/node_modules/handlebars/node_modules/uglify-js/node_modules/source-map/test/source-map/test-base64.js +0 -35
  668. data/vendor/node_modules/istanbul/node_modules/handlebars/node_modules/uglify-js/node_modules/source-map/test/source-map/test-binary-search.js +0 -54
  669. data/vendor/node_modules/istanbul/node_modules/handlebars/node_modules/uglify-js/node_modules/source-map/test/source-map/test-dog-fooding.js +0 -72
  670. data/vendor/node_modules/istanbul/node_modules/handlebars/node_modules/uglify-js/node_modules/source-map/test/source-map/test-source-map-consumer.js +0 -451
  671. data/vendor/node_modules/istanbul/node_modules/handlebars/node_modules/uglify-js/node_modules/source-map/test/source-map/test-source-map-generator.js +0 -417
  672. data/vendor/node_modules/istanbul/node_modules/handlebars/node_modules/uglify-js/node_modules/source-map/test/source-map/test-source-node.js +0 -365
  673. data/vendor/node_modules/istanbul/node_modules/handlebars/node_modules/uglify-js/node_modules/source-map/test/source-map/util.js +0 -161
  674. data/vendor/node_modules/istanbul/node_modules/handlebars/node_modules/uglify-js/package.json +0 -39
  675. data/vendor/node_modules/istanbul/node_modules/handlebars/node_modules/uglify-js/test/compress/arrays.js +0 -12
  676. data/vendor/node_modules/istanbul/node_modules/handlebars/node_modules/uglify-js/test/compress/blocks.js +0 -49
  677. data/vendor/node_modules/istanbul/node_modules/handlebars/node_modules/uglify-js/test/compress/conditionals.js +0 -143
  678. data/vendor/node_modules/istanbul/node_modules/handlebars/node_modules/uglify-js/test/compress/dead-code.js +0 -89
  679. data/vendor/node_modules/istanbul/node_modules/handlebars/node_modules/uglify-js/test/compress/debugger.js +0 -24
  680. data/vendor/node_modules/istanbul/node_modules/handlebars/node_modules/uglify-js/test/compress/drop-unused.js +0 -97
  681. data/vendor/node_modules/istanbul/node_modules/handlebars/node_modules/uglify-js/test/compress/issue-105.js +0 -25
  682. data/vendor/node_modules/istanbul/node_modules/handlebars/node_modules/uglify-js/test/compress/issue-12.js +0 -11
  683. data/vendor/node_modules/istanbul/node_modules/handlebars/node_modules/uglify-js/test/compress/issue-143.js +0 -48
  684. data/vendor/node_modules/istanbul/node_modules/handlebars/node_modules/uglify-js/test/compress/issue-22.js +0 -17
  685. data/vendor/node_modules/istanbul/node_modules/handlebars/node_modules/uglify-js/test/compress/issue-44.js +0 -31
  686. data/vendor/node_modules/istanbul/node_modules/handlebars/node_modules/uglify-js/test/compress/issue-59.js +0 -30
  687. data/vendor/node_modules/istanbul/node_modules/handlebars/node_modules/uglify-js/test/compress/labels.js +0 -163
  688. data/vendor/node_modules/istanbul/node_modules/handlebars/node_modules/uglify-js/test/compress/loops.js +0 -123
  689. data/vendor/node_modules/istanbul/node_modules/handlebars/node_modules/uglify-js/test/compress/properties.js +0 -54
  690. data/vendor/node_modules/istanbul/node_modules/handlebars/node_modules/uglify-js/test/compress/sequences.js +0 -161
  691. data/vendor/node_modules/istanbul/node_modules/handlebars/node_modules/uglify-js/test/compress/switch.js +0 -260
  692. data/vendor/node_modules/istanbul/node_modules/handlebars/node_modules/uglify-js/test/compress/typeof.js +0 -25
  693. data/vendor/node_modules/istanbul/node_modules/handlebars/node_modules/uglify-js/test/run-tests.js +0 -170
  694. data/vendor/node_modules/istanbul/node_modules/handlebars/node_modules/uglify-js/tools/node.js +0 -165
  695. data/vendor/node_modules/istanbul/node_modules/handlebars/package.json +0 -42
  696. data/vendor/node_modules/istanbul/node_modules/handlebars/release-notes.md +0 -93
  697. data/vendor/node_modules/istanbul/node_modules/handlebars/test.js +0 -20
  698. data/vendor/node_modules/istanbul/node_modules/mkdirp/LICENSE +0 -21
  699. data/vendor/node_modules/istanbul/node_modules/mkdirp/examples/pow.js +0 -6
  700. data/vendor/node_modules/istanbul/node_modules/mkdirp/index.js +0 -82
  701. data/vendor/node_modules/istanbul/node_modules/mkdirp/package.json +0 -34
  702. data/vendor/node_modules/istanbul/node_modules/mkdirp/readme.markdown +0 -63
  703. data/vendor/node_modules/istanbul/node_modules/mkdirp/test/chmod.js +0 -38
  704. data/vendor/node_modules/istanbul/node_modules/mkdirp/test/clobber.js +0 -37
  705. data/vendor/node_modules/istanbul/node_modules/mkdirp/test/mkdirp.js +0 -28
  706. data/vendor/node_modules/istanbul/node_modules/mkdirp/test/perm.js +0 -32
  707. data/vendor/node_modules/istanbul/node_modules/mkdirp/test/perm_sync.js +0 -39
  708. data/vendor/node_modules/istanbul/node_modules/mkdirp/test/race.js +0 -41
  709. data/vendor/node_modules/istanbul/node_modules/mkdirp/test/rel.js +0 -32
  710. data/vendor/node_modules/istanbul/node_modules/mkdirp/test/return.js +0 -25
  711. data/vendor/node_modules/istanbul/node_modules/mkdirp/test/return_sync.js +0 -24
  712. data/vendor/node_modules/istanbul/node_modules/mkdirp/test/root.js +0 -18
  713. data/vendor/node_modules/istanbul/node_modules/mkdirp/test/sync.js +0 -32
  714. data/vendor/node_modules/istanbul/node_modules/mkdirp/test/umask.js +0 -28
  715. data/vendor/node_modules/istanbul/node_modules/mkdirp/test/umask_sync.js +0 -32
  716. data/vendor/node_modules/istanbul/node_modules/nopt/LICENSE +0 -23
  717. data/vendor/node_modules/istanbul/node_modules/nopt/README.md +0 -210
  718. data/vendor/node_modules/istanbul/node_modules/nopt/bin/nopt.js +0 -51
  719. data/vendor/node_modules/istanbul/node_modules/nopt/examples/my-program.js +0 -30
  720. data/vendor/node_modules/istanbul/node_modules/nopt/lib/nopt.js +0 -612
  721. data/vendor/node_modules/istanbul/node_modules/nopt/package.json +0 -36
  722. data/vendor/node_modules/istanbul/node_modules/resolve/LICENSE +0 -18
  723. data/vendor/node_modules/istanbul/node_modules/resolve/example/async.js +0 -5
  724. data/vendor/node_modules/istanbul/node_modules/resolve/example/sync.js +0 -3
  725. data/vendor/node_modules/istanbul/node_modules/resolve/index.js +0 -5
  726. data/vendor/node_modules/istanbul/node_modules/resolve/lib/async.js +0 -125
  727. data/vendor/node_modules/istanbul/node_modules/resolve/lib/caller.js +0 -8
  728. data/vendor/node_modules/istanbul/node_modules/resolve/lib/core.js +0 -4
  729. data/vendor/node_modules/istanbul/node_modules/resolve/lib/core.json +0 -38
  730. data/vendor/node_modules/istanbul/node_modules/resolve/lib/node-modules-paths.js +0 -25
  731. data/vendor/node_modules/istanbul/node_modules/resolve/lib/sync.js +0 -80
  732. data/vendor/node_modules/istanbul/node_modules/resolve/package.json +0 -36
  733. data/vendor/node_modules/istanbul/node_modules/resolve/readme.markdown +0 -144
  734. data/vendor/node_modules/istanbul/node_modules/resolve/test/core.js +0 -12
  735. data/vendor/node_modules/istanbul/node_modules/resolve/test/filter.js +0 -18
  736. data/vendor/node_modules/istanbul/node_modules/resolve/test/filter_sync.js +0 -15
  737. data/vendor/node_modules/istanbul/node_modules/resolve/test/mock.js +0 -142
  738. data/vendor/node_modules/istanbul/node_modules/resolve/test/mock_sync.js +0 -68
  739. data/vendor/node_modules/istanbul/node_modules/resolve/test/resolver.js +0 -270
  740. data/vendor/node_modules/istanbul/node_modules/resolve/test/resolver/bar/node_modules/foo/index.js +0 -1
  741. data/vendor/node_modules/istanbul/node_modules/resolve/test/resolver/baz/doom.js +0 -0
  742. data/vendor/node_modules/istanbul/node_modules/resolve/test/resolver/baz/package.json +0 -3
  743. data/vendor/node_modules/istanbul/node_modules/resolve/test/resolver/baz/quux.js +0 -1
  744. data/vendor/node_modules/istanbul/node_modules/resolve/test/resolver/biz/node_modules/garply/lib/index.js +0 -1
  745. data/vendor/node_modules/istanbul/node_modules/resolve/test/resolver/biz/node_modules/garply/package.json +0 -3
  746. data/vendor/node_modules/istanbul/node_modules/resolve/test/resolver/biz/node_modules/grux/index.js +0 -1
  747. data/vendor/node_modules/istanbul/node_modules/resolve/test/resolver/biz/node_modules/tiv/index.js +0 -1
  748. data/vendor/node_modules/istanbul/node_modules/resolve/test/resolver/cup.coffee +0 -1
  749. data/vendor/node_modules/istanbul/node_modules/resolve/test/resolver/foo.js +0 -1
  750. data/vendor/node_modules/istanbul/node_modules/resolve/test/resolver/incorrect_main/index.js +0 -2
  751. data/vendor/node_modules/istanbul/node_modules/resolve/test/resolver/incorrect_main/package.json +0 -3
  752. data/vendor/node_modules/istanbul/node_modules/resolve/test/resolver/mug.coffee +0 -0
  753. data/vendor/node_modules/istanbul/node_modules/resolve/test/resolver/mug.js +0 -0
  754. data/vendor/node_modules/istanbul/node_modules/resolve/test/resolver/other_path/lib/other-lib.js +0 -0
  755. data/vendor/node_modules/istanbul/node_modules/resolve/test/resolver/other_path/root.js +0 -0
  756. data/vendor/node_modules/istanbul/node_modules/resolve/test/resolver/quux/foo/index.js +0 -1
  757. data/vendor/node_modules/istanbul/node_modules/resolve/test/resolver/without_basedir/main.js +0 -6
  758. data/vendor/node_modules/istanbul/node_modules/resolve/test/resolver/without_basedir/node_modules/mymodule.js +0 -1
  759. data/vendor/node_modules/istanbul/node_modules/resolve/test/resolver_sync.js +0 -170
  760. data/vendor/node_modules/istanbul/node_modules/which/LICENSE +0 -23
  761. data/vendor/node_modules/istanbul/node_modules/which/README.md +0 -5
  762. data/vendor/node_modules/istanbul/node_modules/which/bin/which +0 -14
  763. data/vendor/node_modules/istanbul/node_modules/which/package.json +0 -32
  764. data/vendor/node_modules/istanbul/node_modules/which/which.js +0 -104
  765. data/vendor/node_modules/istanbul/node_modules/wordwrap/README.markdown +0 -70
  766. data/vendor/node_modules/istanbul/node_modules/wordwrap/example/center.js +0 -10
  767. data/vendor/node_modules/istanbul/node_modules/wordwrap/example/meat.js +0 -3
  768. data/vendor/node_modules/istanbul/node_modules/wordwrap/index.js +0 -76
  769. data/vendor/node_modules/istanbul/node_modules/wordwrap/package.json +0 -45
  770. data/vendor/node_modules/istanbul/node_modules/wordwrap/test/break.js +0 -30
  771. data/vendor/node_modules/istanbul/node_modules/wordwrap/test/idleness.txt +0 -63
  772. data/vendor/node_modules/istanbul/node_modules/wordwrap/test/wrap.js +0 -31
  773. data/vendor/node_modules/istanbul/package.json +0 -117
  774. data/vendor/node_modules/istanbul/test/browser/support/index.html +0 -153
  775. data/vendor/node_modules/istanbul/test/browser/support/phantom-test.client.js +0 -49
  776. data/vendor/node_modules/istanbul/test/browser/support/server.js +0 -154
  777. data/vendor/node_modules/istanbul/test/browser/test-browser-instrumentation.js +0 -94
  778. data/vendor/node_modules/istanbul/test/cli-helper.js +0 -219
  779. data/vendor/node_modules/istanbul/test/cli/package.json +0 -8
  780. data/vendor/node_modules/istanbul/test/cli/sample-project/amd/ipsum.js +0 -11
  781. data/vendor/node_modules/istanbul/test/cli/sample-project/amd/lorem.js +0 -7
  782. data/vendor/node_modules/istanbul/test/cli/sample-project/lib/bar.js +0 -13
  783. data/vendor/node_modules/istanbul/test/cli/sample-project/lib/foo.js +0 -12
  784. data/vendor/node_modules/istanbul/test/cli/sample-project/lib/util/bad.js +0 -1
  785. data/vendor/node_modules/istanbul/test/cli/sample-project/lib/util/generate-names.js +0 -5
  786. data/vendor/node_modules/istanbul/test/cli/sample-project/node_modules/dependency/index.js +0 -9
  787. data/vendor/node_modules/istanbul/test/cli/sample-project/node_modules/post-require/hook.js +0 -11
  788. data/vendor/node_modules/istanbul/test/cli/sample-project/node_modules/post-require/package.json +0 -5
  789. data/vendor/node_modules/istanbul/test/cli/sample-project/test/amd-run.js +0 -16
  790. data/vendor/node_modules/istanbul/test/cli/sample-project/test/global-leak.js +0 -30
  791. data/vendor/node_modules/istanbul/test/cli/sample-project/test/run.js +0 -25
  792. data/vendor/node_modules/istanbul/test/cli/sample-project/vendor/dummy_vendor_lib.js +0 -9
  793. data/vendor/node_modules/istanbul/test/cli/test-base-cli.js +0 -39
  794. data/vendor/node_modules/istanbul/test/cli/test-check-coverage-command.js +0 -97
  795. data/vendor/node_modules/istanbul/test/cli/test-cobertura-report.js +0 -54
  796. data/vendor/node_modules/istanbul/test/cli/test-cover-command.js +0 -170
  797. data/vendor/node_modules/istanbul/test/cli/test-html-report.js +0 -125
  798. data/vendor/node_modules/istanbul/test/cli/test-instrument-command.js +0 -167
  799. data/vendor/node_modules/istanbul/test/cli/test-json-report.js +0 -60
  800. data/vendor/node_modules/istanbul/test/cli/test-lcov-report.js +0 -58
  801. data/vendor/node_modules/istanbul/test/cli/test-lcovonly-report.js +0 -61
  802. data/vendor/node_modules/istanbul/test/cli/test-lots-of-files.js +0 -87
  803. data/vendor/node_modules/istanbul/test/cli/test-none-report.js +0 -17
  804. data/vendor/node_modules/istanbul/test/cli/test-report-command.js +0 -65
  805. data/vendor/node_modules/istanbul/test/cli/test-teamcity-report.js +0 -54
  806. data/vendor/node_modules/istanbul/test/cli/test-test-command.js +0 -43
  807. data/vendor/node_modules/istanbul/test/common.js +0 -19
  808. data/vendor/node_modules/istanbul/test/helper.js +0 -122
  809. data/vendor/node_modules/istanbul/test/instrumentation/test-do.js +0 -53
  810. data/vendor/node_modules/istanbul/test/instrumentation/test-expressions.js +0 -70
  811. data/vendor/node_modules/istanbul/test/instrumentation/test-for.js +0 -206
  812. data/vendor/node_modules/istanbul/test/instrumentation/test-forin.js +0 -50
  813. data/vendor/node_modules/istanbul/test/instrumentation/test-functions.js +0 -102
  814. data/vendor/node_modules/istanbul/test/instrumentation/test-if.js +0 -393
  815. data/vendor/node_modules/istanbul/test/instrumentation/test-misc.js +0 -35
  816. data/vendor/node_modules/istanbul/test/instrumentation/test-statement.js +0 -182
  817. data/vendor/node_modules/istanbul/test/instrumentation/test-strict.js +0 -121
  818. data/vendor/node_modules/istanbul/test/instrumentation/test-switch.js +0 -155
  819. data/vendor/node_modules/istanbul/test/instrumentation/test-while.js +0 -104
  820. data/vendor/node_modules/istanbul/test/loader.js +0 -38
  821. data/vendor/node_modules/istanbul/test/other/data-complete-copy/baz.js +0 -3
  822. data/vendor/node_modules/istanbul/test/other/data-complete-copy/fixture.xml +0 -1
  823. data/vendor/node_modules/istanbul/test/other/data-complete-copy/foo.js +0 -4
  824. data/vendor/node_modules/istanbul/test/other/data-complete-copy/myfile1 +0 -0
  825. data/vendor/node_modules/istanbul/test/other/data-complete-copy/myfile2 +0 -1
  826. data/vendor/node_modules/istanbul/test/other/data-complete-copy/subdir/x.css +0 -3
  827. data/vendor/node_modules/istanbul/test/other/data/baz.js +0 -3
  828. data/vendor/node_modules/istanbul/test/other/data/foo.js +0 -4
  829. data/vendor/node_modules/istanbul/test/other/data/matcher/general/general.js +0 -2
  830. data/vendor/node_modules/istanbul/test/other/data/matcher/general/node_modules/mod-file.js +0 -2
  831. data/vendor/node_modules/istanbul/test/other/data/matcher/lib/lib-top.js +0 -2
  832. data/vendor/node_modules/istanbul/test/other/data/matcher/node_modules/dep/mod-file.js +0 -2
  833. data/vendor/node_modules/istanbul/test/other/data/matcher/node_modules/mod-file.js +0 -2
  834. data/vendor/node_modules/istanbul/test/other/data/matcher/top.js +0 -2
  835. data/vendor/node_modules/istanbul/test/other/test-collector.js +0 -85
  836. data/vendor/node_modules/istanbul/test/other/test-command-xface.js +0 -35
  837. data/vendor/node_modules/istanbul/test/other/test-file-writer.js +0 -71
  838. data/vendor/node_modules/istanbul/test/other/test-help-formatter.js +0 -31
  839. data/vendor/node_modules/istanbul/test/other/test-hook.js +0 -87
  840. data/vendor/node_modules/istanbul/test/other/test-index-xface.js +0 -17
  841. data/vendor/node_modules/istanbul/test/other/test-input-error.js +0 -10
  842. data/vendor/node_modules/istanbul/test/other/test-insertion-text.js +0 -102
  843. data/vendor/node_modules/istanbul/test/other/test-matcher.js +0 -93
  844. data/vendor/node_modules/istanbul/test/other/test-object-utils.js +0 -201
  845. data/vendor/node_modules/istanbul/test/other/test-store.js +0 -129
  846. data/vendor/node_modules/istanbul/test/other/test-summarizer.js +0 -172
  847. data/vendor/node_modules/istanbul/test/run-again.js +0 -19
  848. data/vendor/node_modules/istanbul/test/run.js +0 -108
  849. data/vendor/node_modules/istanbul/yui-coverage-comparison.md +0 -85
  850. data/vendor/node_modules/qunit-clib/LICENSE.txt +0 -20
  851. data/vendor/node_modules/qunit-clib/README.md +0 -2
  852. data/vendor/node_modules/qunit-clib/package.json +0 -36
  853. data/vendor/node_modules/qunit-clib/qunit-clib.js +0 -570
  854. data/vendor/node_modules/qunitjs/AUTHORS.txt +0 -55
  855. data/vendor/node_modules/qunitjs/History.md +0 -496
  856. data/vendor/node_modules/qunitjs/README.md +0 -62
  857. data/vendor/node_modules/qunitjs/addons/canvas/README.md +0 -17
  858. data/vendor/node_modules/qunitjs/addons/canvas/canvas-test.js +0 -76
  859. data/vendor/node_modules/qunitjs/addons/canvas/canvas.html +0 -15
  860. data/vendor/node_modules/qunitjs/addons/canvas/qunit-canvas.js +0 -6
  861. data/vendor/node_modules/qunitjs/addons/close-enough/README.md +0 -18
  862. data/vendor/node_modules/qunitjs/addons/close-enough/close-enough-test.js +0 -35
  863. data/vendor/node_modules/qunitjs/addons/close-enough/close-enough.html +0 -14
  864. data/vendor/node_modules/qunitjs/addons/close-enough/qunit-close-enough.js +0 -32
  865. data/vendor/node_modules/qunitjs/addons/composite/README.md +0 -26
  866. data/vendor/node_modules/qunitjs/addons/composite/composite-demo-test.html +0 -24
  867. data/vendor/node_modules/qunitjs/addons/composite/index.html +0 -34
  868. data/vendor/node_modules/qunitjs/addons/composite/qunit-composite.css +0 -13
  869. data/vendor/node_modules/qunitjs/addons/composite/qunit-composite.js +0 -112
  870. data/vendor/node_modules/qunitjs/addons/junitlogger/README.md +0 -18
  871. data/vendor/node_modules/qunitjs/addons/junitlogger/index.html +0 -44
  872. data/vendor/node_modules/qunitjs/addons/junitlogger/junitlogger.js +0 -306
  873. data/vendor/node_modules/qunitjs/addons/phantomjs/README.md +0 -16
  874. data/vendor/node_modules/qunitjs/addons/phantomjs/runner.js +0 -127
  875. data/vendor/node_modules/qunitjs/addons/step/README.md +0 -20
  876. data/vendor/node_modules/qunitjs/addons/step/qunit-step.js +0 -26
  877. data/vendor/node_modules/qunitjs/addons/step/step-test.js +0 -15
  878. data/vendor/node_modules/qunitjs/addons/step/step.html +0 -14
  879. data/vendor/node_modules/qunitjs/addons/themes/README.md +0 -6
  880. data/vendor/node_modules/qunitjs/addons/themes/gabe.css +0 -371
  881. data/vendor/node_modules/qunitjs/addons/themes/gabe.html +0 -15
  882. data/vendor/node_modules/qunitjs/addons/themes/ninja.css +0 -196
  883. data/vendor/node_modules/qunitjs/addons/themes/ninja.html +0 -15
  884. data/vendor/node_modules/qunitjs/addons/themes/nv.css +0 -217
  885. data/vendor/node_modules/qunitjs/addons/themes/nv.html +0 -15
  886. data/vendor/node_modules/qunitjs/grunt.js +0 -101
  887. data/vendor/node_modules/qunitjs/package.json +0 -49
  888. data/vendor/node_modules/qunitjs/qunit/qunit.css +0 -244
  889. data/vendor/node_modules/qunitjs/qunit/qunit.js +0 -2152
  890. data/vendor/node_modules/qunitjs/test/async.html +0 -26
  891. data/vendor/node_modules/qunitjs/test/async.js +0 -6
  892. data/vendor/node_modules/qunitjs/test/deepEqual.js +0 -1438
  893. data/vendor/node_modules/qunitjs/test/headless.html +0 -28
  894. data/vendor/node_modules/qunitjs/test/index.html +0 -16
  895. data/vendor/node_modules/qunitjs/test/logs.html +0 -14
  896. data/vendor/node_modules/qunitjs/test/logs.js +0 -184
  897. data/vendor/node_modules/qunitjs/test/narwhal-test.js +0 -22
  898. data/vendor/node_modules/qunitjs/test/node-test.js +0 -22
  899. data/vendor/node_modules/qunitjs/test/swarminject.js +0 -10
  900. data/vendor/node_modules/qunitjs/test/test.js +0 -804
  901. data/vendor/node_modules/regenerate/LICENSE-MIT.txt +0 -20
  902. data/vendor/node_modules/regenerate/README.md +0 -467
  903. data/vendor/node_modules/regenerate/package.json +0 -50
  904. data/vendor/node_modules/regenerate/regenerate.js +0 -617
  905. data/vendor/node_modules/requirejs/README.md +0 -9
  906. data/vendor/node_modules/requirejs/bin/r.js +0 -26059
  907. data/vendor/node_modules/requirejs/package.json +0 -39
  908. data/vendor/node_modules/requirejs/require.js +0 -2054
@@ -1,9 +0,0 @@
1
- {
2
- "name": "handlebars.js",
3
- "version": "1.0.0",
4
- "main": "dist/handlebars.js",
5
- "ignore": [
6
- "node_modules",
7
- "components"
8
- ]
9
- }
@@ -1,2278 +0,0 @@
1
- /*
2
-
3
- Copyright (C) 2011 by Yehuda Katz
4
-
5
- Permission is hereby granted, free of charge, to any person obtaining a copy
6
- of this software and associated documentation files (the "Software"), to deal
7
- in the Software without restriction, including without limitation the rights
8
- to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
9
- copies of the Software, and to permit persons to whom the Software is
10
- furnished to do so, subject to the following conditions:
11
-
12
- The above copyright notice and this permission notice shall be included in
13
- all copies or substantial portions of the Software.
14
-
15
- THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
16
- IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
17
- FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
18
- AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
19
- LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
20
- OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
21
- THE SOFTWARE.
22
-
23
- */
24
-
25
- // lib/handlebars/browser-prefix.js
26
- var Handlebars = {};
27
-
28
- (function(Handlebars, undefined) {
29
- ;
30
- // lib/handlebars/base.js
31
-
32
- Handlebars.VERSION = "1.0.0";
33
- Handlebars.COMPILER_REVISION = 4;
34
-
35
- Handlebars.REVISION_CHANGES = {
36
- 1: '<= 1.0.rc.2', // 1.0.rc.2 is actually rev2 but doesn't report it
37
- 2: '== 1.0.0-rc.3',
38
- 3: '== 1.0.0-rc.4',
39
- 4: '>= 1.0.0'
40
- };
41
-
42
- Handlebars.helpers = {};
43
- Handlebars.partials = {};
44
-
45
- var toString = Object.prototype.toString,
46
- functionType = '[object Function]',
47
- objectType = '[object Object]';
48
-
49
- Handlebars.registerHelper = function(name, fn, inverse) {
50
- if (toString.call(name) === objectType) {
51
- if (inverse || fn) { throw new Handlebars.Exception('Arg not supported with multiple helpers'); }
52
- Handlebars.Utils.extend(this.helpers, name);
53
- } else {
54
- if (inverse) { fn.not = inverse; }
55
- this.helpers[name] = fn;
56
- }
57
- };
58
-
59
- Handlebars.registerPartial = function(name, str) {
60
- if (toString.call(name) === objectType) {
61
- Handlebars.Utils.extend(this.partials, name);
62
- } else {
63
- this.partials[name] = str;
64
- }
65
- };
66
-
67
- Handlebars.registerHelper('helperMissing', function(arg) {
68
- if(arguments.length === 2) {
69
- return undefined;
70
- } else {
71
- throw new Error("Missing helper: '" + arg + "'");
72
- }
73
- });
74
-
75
- Handlebars.registerHelper('blockHelperMissing', function(context, options) {
76
- var inverse = options.inverse || function() {}, fn = options.fn;
77
-
78
- var type = toString.call(context);
79
-
80
- if(type === functionType) { context = context.call(this); }
81
-
82
- if(context === true) {
83
- return fn(this);
84
- } else if(context === false || context == null) {
85
- return inverse(this);
86
- } else if(type === "[object Array]") {
87
- if(context.length > 0) {
88
- return Handlebars.helpers.each(context, options);
89
- } else {
90
- return inverse(this);
91
- }
92
- } else {
93
- return fn(context);
94
- }
95
- });
96
-
97
- Handlebars.K = function() {};
98
-
99
- Handlebars.createFrame = Object.create || function(object) {
100
- Handlebars.K.prototype = object;
101
- var obj = new Handlebars.K();
102
- Handlebars.K.prototype = null;
103
- return obj;
104
- };
105
-
106
- Handlebars.logger = {
107
- DEBUG: 0, INFO: 1, WARN: 2, ERROR: 3, level: 3,
108
-
109
- methodMap: {0: 'debug', 1: 'info', 2: 'warn', 3: 'error'},
110
-
111
- // can be overridden in the host environment
112
- log: function(level, obj) {
113
- if (Handlebars.logger.level <= level) {
114
- var method = Handlebars.logger.methodMap[level];
115
- if (typeof console !== 'undefined' && console[method]) {
116
- console[method].call(console, obj);
117
- }
118
- }
119
- }
120
- };
121
-
122
- Handlebars.log = function(level, obj) { Handlebars.logger.log(level, obj); };
123
-
124
- Handlebars.registerHelper('each', function(context, options) {
125
- var fn = options.fn, inverse = options.inverse;
126
- var i = 0, ret = "", data;
127
-
128
- var type = toString.call(context);
129
- if(type === functionType) { context = context.call(this); }
130
-
131
- if (options.data) {
132
- data = Handlebars.createFrame(options.data);
133
- }
134
-
135
- if(context && typeof context === 'object') {
136
- if(context instanceof Array){
137
- for(var j = context.length; i<j; i++) {
138
- if (data) { data.index = i; }
139
- ret = ret + fn(context[i], { data: data });
140
- }
141
- } else {
142
- for(var key in context) {
143
- if(context.hasOwnProperty(key)) {
144
- if(data) { data.key = key; }
145
- ret = ret + fn(context[key], {data: data});
146
- i++;
147
- }
148
- }
149
- }
150
- }
151
-
152
- if(i === 0){
153
- ret = inverse(this);
154
- }
155
-
156
- return ret;
157
- });
158
-
159
- Handlebars.registerHelper('if', function(conditional, options) {
160
- var type = toString.call(conditional);
161
- if(type === functionType) { conditional = conditional.call(this); }
162
-
163
- if(!conditional || Handlebars.Utils.isEmpty(conditional)) {
164
- return options.inverse(this);
165
- } else {
166
- return options.fn(this);
167
- }
168
- });
169
-
170
- Handlebars.registerHelper('unless', function(conditional, options) {
171
- return Handlebars.helpers['if'].call(this, conditional, {fn: options.inverse, inverse: options.fn});
172
- });
173
-
174
- Handlebars.registerHelper('with', function(context, options) {
175
- var type = toString.call(context);
176
- if(type === functionType) { context = context.call(this); }
177
-
178
- if (!Handlebars.Utils.isEmpty(context)) return options.fn(context);
179
- });
180
-
181
- Handlebars.registerHelper('log', function(context, options) {
182
- var level = options.data && options.data.level != null ? parseInt(options.data.level, 10) : 1;
183
- Handlebars.log(level, context);
184
- });
185
- ;
186
- // lib/handlebars/compiler/parser.js
187
- /* Jison generated parser */
188
- var handlebars = (function(){
189
- var parser = {trace: function trace() { },
190
- yy: {},
191
- symbols_: {"error":2,"root":3,"program":4,"EOF":5,"simpleInverse":6,"statements":7,"statement":8,"openInverse":9,"closeBlock":10,"openBlock":11,"mustache":12,"partial":13,"CONTENT":14,"COMMENT":15,"OPEN_BLOCK":16,"inMustache":17,"CLOSE":18,"OPEN_INVERSE":19,"OPEN_ENDBLOCK":20,"path":21,"OPEN":22,"OPEN_UNESCAPED":23,"CLOSE_UNESCAPED":24,"OPEN_PARTIAL":25,"partialName":26,"params":27,"hash":28,"dataName":29,"param":30,"STRING":31,"INTEGER":32,"BOOLEAN":33,"hashSegments":34,"hashSegment":35,"ID":36,"EQUALS":37,"DATA":38,"pathSegments":39,"SEP":40,"$accept":0,"$end":1},
192
- terminals_: {2:"error",5:"EOF",14:"CONTENT",15:"COMMENT",16:"OPEN_BLOCK",18:"CLOSE",19:"OPEN_INVERSE",20:"OPEN_ENDBLOCK",22:"OPEN",23:"OPEN_UNESCAPED",24:"CLOSE_UNESCAPED",25:"OPEN_PARTIAL",31:"STRING",32:"INTEGER",33:"BOOLEAN",36:"ID",37:"EQUALS",38:"DATA",40:"SEP"},
193
- productions_: [0,[3,2],[4,2],[4,3],[4,2],[4,1],[4,1],[4,0],[7,1],[7,2],[8,3],[8,3],[8,1],[8,1],[8,1],[8,1],[11,3],[9,3],[10,3],[12,3],[12,3],[13,3],[13,4],[6,2],[17,3],[17,2],[17,2],[17,1],[17,1],[27,2],[27,1],[30,1],[30,1],[30,1],[30,1],[30,1],[28,1],[34,2],[34,1],[35,3],[35,3],[35,3],[35,3],[35,3],[26,1],[26,1],[26,1],[29,2],[21,1],[39,3],[39,1]],
194
- performAction: function anonymous(yytext,yyleng,yylineno,yy,yystate,$$,_$) {
195
-
196
- var $0 = $$.length - 1;
197
- switch (yystate) {
198
- case 1: return $$[$0-1];
199
- break;
200
- case 2: this.$ = new yy.ProgramNode([], $$[$0]);
201
- break;
202
- case 3: this.$ = new yy.ProgramNode($$[$0-2], $$[$0]);
203
- break;
204
- case 4: this.$ = new yy.ProgramNode($$[$0-1], []);
205
- break;
206
- case 5: this.$ = new yy.ProgramNode($$[$0]);
207
- break;
208
- case 6: this.$ = new yy.ProgramNode([], []);
209
- break;
210
- case 7: this.$ = new yy.ProgramNode([]);
211
- break;
212
- case 8: this.$ = [$$[$0]];
213
- break;
214
- case 9: $$[$0-1].push($$[$0]); this.$ = $$[$0-1];
215
- break;
216
- case 10: this.$ = new yy.BlockNode($$[$0-2], $$[$0-1].inverse, $$[$0-1], $$[$0]);
217
- break;
218
- case 11: this.$ = new yy.BlockNode($$[$0-2], $$[$0-1], $$[$0-1].inverse, $$[$0]);
219
- break;
220
- case 12: this.$ = $$[$0];
221
- break;
222
- case 13: this.$ = $$[$0];
223
- break;
224
- case 14: this.$ = new yy.ContentNode($$[$0]);
225
- break;
226
- case 15: this.$ = new yy.CommentNode($$[$0]);
227
- break;
228
- case 16: this.$ = new yy.MustacheNode($$[$0-1][0], $$[$0-1][1]);
229
- break;
230
- case 17: this.$ = new yy.MustacheNode($$[$0-1][0], $$[$0-1][1]);
231
- break;
232
- case 18: this.$ = $$[$0-1];
233
- break;
234
- case 19:
235
- // Parsing out the '&' escape token at this level saves ~500 bytes after min due to the removal of one parser node.
236
- this.$ = new yy.MustacheNode($$[$0-1][0], $$[$0-1][1], $$[$0-2][2] === '&');
237
-
238
- break;
239
- case 20: this.$ = new yy.MustacheNode($$[$0-1][0], $$[$0-1][1], true);
240
- break;
241
- case 21: this.$ = new yy.PartialNode($$[$0-1]);
242
- break;
243
- case 22: this.$ = new yy.PartialNode($$[$0-2], $$[$0-1]);
244
- break;
245
- case 23:
246
- break;
247
- case 24: this.$ = [[$$[$0-2]].concat($$[$0-1]), $$[$0]];
248
- break;
249
- case 25: this.$ = [[$$[$0-1]].concat($$[$0]), null];
250
- break;
251
- case 26: this.$ = [[$$[$0-1]], $$[$0]];
252
- break;
253
- case 27: this.$ = [[$$[$0]], null];
254
- break;
255
- case 28: this.$ = [[$$[$0]], null];
256
- break;
257
- case 29: $$[$0-1].push($$[$0]); this.$ = $$[$0-1];
258
- break;
259
- case 30: this.$ = [$$[$0]];
260
- break;
261
- case 31: this.$ = $$[$0];
262
- break;
263
- case 32: this.$ = new yy.StringNode($$[$0]);
264
- break;
265
- case 33: this.$ = new yy.IntegerNode($$[$0]);
266
- break;
267
- case 34: this.$ = new yy.BooleanNode($$[$0]);
268
- break;
269
- case 35: this.$ = $$[$0];
270
- break;
271
- case 36: this.$ = new yy.HashNode($$[$0]);
272
- break;
273
- case 37: $$[$0-1].push($$[$0]); this.$ = $$[$0-1];
274
- break;
275
- case 38: this.$ = [$$[$0]];
276
- break;
277
- case 39: this.$ = [$$[$0-2], $$[$0]];
278
- break;
279
- case 40: this.$ = [$$[$0-2], new yy.StringNode($$[$0])];
280
- break;
281
- case 41: this.$ = [$$[$0-2], new yy.IntegerNode($$[$0])];
282
- break;
283
- case 42: this.$ = [$$[$0-2], new yy.BooleanNode($$[$0])];
284
- break;
285
- case 43: this.$ = [$$[$0-2], $$[$0]];
286
- break;
287
- case 44: this.$ = new yy.PartialNameNode($$[$0]);
288
- break;
289
- case 45: this.$ = new yy.PartialNameNode(new yy.StringNode($$[$0]));
290
- break;
291
- case 46: this.$ = new yy.PartialNameNode(new yy.IntegerNode($$[$0]));
292
- break;
293
- case 47: this.$ = new yy.DataNode($$[$0]);
294
- break;
295
- case 48: this.$ = new yy.IdNode($$[$0]);
296
- break;
297
- case 49: $$[$0-2].push({part: $$[$0], separator: $$[$0-1]}); this.$ = $$[$0-2];
298
- break;
299
- case 50: this.$ = [{part: $$[$0]}];
300
- break;
301
- }
302
- },
303
- table: [{3:1,4:2,5:[2,7],6:3,7:4,8:6,9:7,11:8,12:9,13:10,14:[1,11],15:[1,12],16:[1,13],19:[1,5],22:[1,14],23:[1,15],25:[1,16]},{1:[3]},{5:[1,17]},{5:[2,6],7:18,8:6,9:7,11:8,12:9,13:10,14:[1,11],15:[1,12],16:[1,13],19:[1,19],20:[2,6],22:[1,14],23:[1,15],25:[1,16]},{5:[2,5],6:20,8:21,9:7,11:8,12:9,13:10,14:[1,11],15:[1,12],16:[1,13],19:[1,5],20:[2,5],22:[1,14],23:[1,15],25:[1,16]},{17:23,18:[1,22],21:24,29:25,36:[1,28],38:[1,27],39:26},{5:[2,8],14:[2,8],15:[2,8],16:[2,8],19:[2,8],20:[2,8],22:[2,8],23:[2,8],25:[2,8]},{4:29,6:3,7:4,8:6,9:7,11:8,12:9,13:10,14:[1,11],15:[1,12],16:[1,13],19:[1,5],20:[2,7],22:[1,14],23:[1,15],25:[1,16]},{4:30,6:3,7:4,8:6,9:7,11:8,12:9,13:10,14:[1,11],15:[1,12],16:[1,13],19:[1,5],20:[2,7],22:[1,14],23:[1,15],25:[1,16]},{5:[2,12],14:[2,12],15:[2,12],16:[2,12],19:[2,12],20:[2,12],22:[2,12],23:[2,12],25:[2,12]},{5:[2,13],14:[2,13],15:[2,13],16:[2,13],19:[2,13],20:[2,13],22:[2,13],23:[2,13],25:[2,13]},{5:[2,14],14:[2,14],15:[2,14],16:[2,14],19:[2,14],20:[2,14],22:[2,14],23:[2,14],25:[2,14]},{5:[2,15],14:[2,15],15:[2,15],16:[2,15],19:[2,15],20:[2,15],22:[2,15],23:[2,15],25:[2,15]},{17:31,21:24,29:25,36:[1,28],38:[1,27],39:26},{17:32,21:24,29:25,36:[1,28],38:[1,27],39:26},{17:33,21:24,29:25,36:[1,28],38:[1,27],39:26},{21:35,26:34,31:[1,36],32:[1,37],36:[1,28],39:26},{1:[2,1]},{5:[2,2],8:21,9:7,11:8,12:9,13:10,14:[1,11],15:[1,12],16:[1,13],19:[1,19],20:[2,2],22:[1,14],23:[1,15],25:[1,16]},{17:23,21:24,29:25,36:[1,28],38:[1,27],39:26},{5:[2,4],7:38,8:6,9:7,11:8,12:9,13:10,14:[1,11],15:[1,12],16:[1,13],19:[1,19],20:[2,4],22:[1,14],23:[1,15],25:[1,16]},{5:[2,9],14:[2,9],15:[2,9],16:[2,9],19:[2,9],20:[2,9],22:[2,9],23:[2,9],25:[2,9]},{5:[2,23],14:[2,23],15:[2,23],16:[2,23],19:[2,23],20:[2,23],22:[2,23],23:[2,23],25:[2,23]},{18:[1,39]},{18:[2,27],21:44,24:[2,27],27:40,28:41,29:48,30:42,31:[1,45],32:[1,46],33:[1,47],34:43,35:49,36:[1,50],38:[1,27],39:26},{18:[2,28],24:[2,28]},{18:[2,48],24:[2,48],31:[2,48],32:[2,48],33:[2,48],36:[2,48],38:[2,48],40:[1,51]},{21:52,36:[1,28],39:26},{18:[2,50],24:[2,50],31:[2,50],32:[2,50],33:[2,50],36:[2,50],38:[2,50],40:[2,50]},{10:53,20:[1,54]},{10:55,20:[1,54]},{18:[1,56]},{18:[1,57]},{24:[1,58]},{18:[1,59],21:60,36:[1,28],39:26},{18:[2,44],36:[2,44]},{18:[2,45],36:[2,45]},{18:[2,46],36:[2,46]},{5:[2,3],8:21,9:7,11:8,12:9,13:10,14:[1,11],15:[1,12],16:[1,13],19:[1,19],20:[2,3],22:[1,14],23:[1,15],25:[1,16]},{14:[2,17],15:[2,17],16:[2,17],19:[2,17],20:[2,17],22:[2,17],23:[2,17],25:[2,17]},{18:[2,25],21:44,24:[2,25],28:61,29:48,30:62,31:[1,45],32:[1,46],33:[1,47],34:43,35:49,36:[1,50],38:[1,27],39:26},{18:[2,26],24:[2,26]},{18:[2,30],24:[2,30],31:[2,30],32:[2,30],33:[2,30],36:[2,30],38:[2,30]},{18:[2,36],24:[2,36],35:63,36:[1,64]},{18:[2,31],24:[2,31],31:[2,31],32:[2,31],33:[2,31],36:[2,31],38:[2,31]},{18:[2,32],24:[2,32],31:[2,32],32:[2,32],33:[2,32],36:[2,32],38:[2,32]},{18:[2,33],24:[2,33],31:[2,33],32:[2,33],33:[2,33],36:[2,33],38:[2,33]},{18:[2,34],24:[2,34],31:[2,34],32:[2,34],33:[2,34],36:[2,34],38:[2,34]},{18:[2,35],24:[2,35],31:[2,35],32:[2,35],33:[2,35],36:[2,35],38:[2,35]},{18:[2,38],24:[2,38],36:[2,38]},{18:[2,50],24:[2,50],31:[2,50],32:[2,50],33:[2,50],36:[2,50],37:[1,65],38:[2,50],40:[2,50]},{36:[1,66]},{18:[2,47],24:[2,47],31:[2,47],32:[2,47],33:[2,47],36:[2,47],38:[2,47]},{5:[2,10],14:[2,10],15:[2,10],16:[2,10],19:[2,10],20:[2,10],22:[2,10],23:[2,10],25:[2,10]},{21:67,36:[1,28],39:26},{5:[2,11],14:[2,11],15:[2,11],16:[2,11],19:[2,11],20:[2,11],22:[2,11],23:[2,11],25:[2,11]},{14:[2,16],15:[2,16],16:[2,16],19:[2,16],20:[2,16],22:[2,16],23:[2,16],25:[2,16]},{5:[2,19],14:[2,19],15:[2,19],16:[2,19],19:[2,19],20:[2,19],22:[2,19],23:[2,19],25:[2,19]},{5:[2,20],14:[2,20],15:[2,20],16:[2,20],19:[2,20],20:[2,20],22:[2,20],23:[2,20],25:[2,20]},{5:[2,21],14:[2,21],15:[2,21],16:[2,21],19:[2,21],20:[2,21],22:[2,21],23:[2,21],25:[2,21]},{18:[1,68]},{18:[2,24],24:[2,24]},{18:[2,29],24:[2,29],31:[2,29],32:[2,29],33:[2,29],36:[2,29],38:[2,29]},{18:[2,37],24:[2,37],36:[2,37]},{37:[1,65]},{21:69,29:73,31:[1,70],32:[1,71],33:[1,72],36:[1,28],38:[1,27],39:26},{18:[2,49],24:[2,49],31:[2,49],32:[2,49],33:[2,49],36:[2,49],38:[2,49],40:[2,49]},{18:[1,74]},{5:[2,22],14:[2,22],15:[2,22],16:[2,22],19:[2,22],20:[2,22],22:[2,22],23:[2,22],25:[2,22]},{18:[2,39],24:[2,39],36:[2,39]},{18:[2,40],24:[2,40],36:[2,40]},{18:[2,41],24:[2,41],36:[2,41]},{18:[2,42],24:[2,42],36:[2,42]},{18:[2,43],24:[2,43],36:[2,43]},{5:[2,18],14:[2,18],15:[2,18],16:[2,18],19:[2,18],20:[2,18],22:[2,18],23:[2,18],25:[2,18]}],
304
- defaultActions: {17:[2,1]},
305
- parseError: function parseError(str, hash) {
306
- throw new Error(str);
307
- },
308
- parse: function parse(input) {
309
- var self = this, stack = [0], vstack = [null], lstack = [], table = this.table, yytext = "", yylineno = 0, yyleng = 0, recovering = 0, TERROR = 2, EOF = 1;
310
- this.lexer.setInput(input);
311
- this.lexer.yy = this.yy;
312
- this.yy.lexer = this.lexer;
313
- this.yy.parser = this;
314
- if (typeof this.lexer.yylloc == "undefined")
315
- this.lexer.yylloc = {};
316
- var yyloc = this.lexer.yylloc;
317
- lstack.push(yyloc);
318
- var ranges = this.lexer.options && this.lexer.options.ranges;
319
- if (typeof this.yy.parseError === "function")
320
- this.parseError = this.yy.parseError;
321
- function popStack(n) {
322
- stack.length = stack.length - 2 * n;
323
- vstack.length = vstack.length - n;
324
- lstack.length = lstack.length - n;
325
- }
326
- function lex() {
327
- var token;
328
- token = self.lexer.lex() || 1;
329
- if (typeof token !== "number") {
330
- token = self.symbols_[token] || token;
331
- }
332
- return token;
333
- }
334
- var symbol, preErrorSymbol, state, action, a, r, yyval = {}, p, len, newState, expected;
335
- while (true) {
336
- state = stack[stack.length - 1];
337
- if (this.defaultActions[state]) {
338
- action = this.defaultActions[state];
339
- } else {
340
- if (symbol === null || typeof symbol == "undefined") {
341
- symbol = lex();
342
- }
343
- action = table[state] && table[state][symbol];
344
- }
345
- if (typeof action === "undefined" || !action.length || !action[0]) {
346
- var errStr = "";
347
- if (!recovering) {
348
- expected = [];
349
- for (p in table[state])
350
- if (this.terminals_[p] && p > 2) {
351
- expected.push("'" + this.terminals_[p] + "'");
352
- }
353
- if (this.lexer.showPosition) {
354
- errStr = "Parse error on line " + (yylineno + 1) + ":\n" + this.lexer.showPosition() + "\nExpecting " + expected.join(", ") + ", got '" + (this.terminals_[symbol] || symbol) + "'";
355
- } else {
356
- errStr = "Parse error on line " + (yylineno + 1) + ": Unexpected " + (symbol == 1?"end of input":"'" + (this.terminals_[symbol] || symbol) + "'");
357
- }
358
- this.parseError(errStr, {text: this.lexer.match, token: this.terminals_[symbol] || symbol, line: this.lexer.yylineno, loc: yyloc, expected: expected});
359
- }
360
- }
361
- if (action[0] instanceof Array && action.length > 1) {
362
- throw new Error("Parse Error: multiple actions possible at state: " + state + ", token: " + symbol);
363
- }
364
- switch (action[0]) {
365
- case 1:
366
- stack.push(symbol);
367
- vstack.push(this.lexer.yytext);
368
- lstack.push(this.lexer.yylloc);
369
- stack.push(action[1]);
370
- symbol = null;
371
- if (!preErrorSymbol) {
372
- yyleng = this.lexer.yyleng;
373
- yytext = this.lexer.yytext;
374
- yylineno = this.lexer.yylineno;
375
- yyloc = this.lexer.yylloc;
376
- if (recovering > 0)
377
- recovering--;
378
- } else {
379
- symbol = preErrorSymbol;
380
- preErrorSymbol = null;
381
- }
382
- break;
383
- case 2:
384
- len = this.productions_[action[1]][1];
385
- yyval.$ = vstack[vstack.length - len];
386
- yyval._$ = {first_line: lstack[lstack.length - (len || 1)].first_line, last_line: lstack[lstack.length - 1].last_line, first_column: lstack[lstack.length - (len || 1)].first_column, last_column: lstack[lstack.length - 1].last_column};
387
- if (ranges) {
388
- yyval._$.range = [lstack[lstack.length - (len || 1)].range[0], lstack[lstack.length - 1].range[1]];
389
- }
390
- r = this.performAction.call(yyval, yytext, yyleng, yylineno, this.yy, action[1], vstack, lstack);
391
- if (typeof r !== "undefined") {
392
- return r;
393
- }
394
- if (len) {
395
- stack = stack.slice(0, -1 * len * 2);
396
- vstack = vstack.slice(0, -1 * len);
397
- lstack = lstack.slice(0, -1 * len);
398
- }
399
- stack.push(this.productions_[action[1]][0]);
400
- vstack.push(yyval.$);
401
- lstack.push(yyval._$);
402
- newState = table[stack[stack.length - 2]][stack[stack.length - 1]];
403
- stack.push(newState);
404
- break;
405
- case 3:
406
- return true;
407
- }
408
- }
409
- return true;
410
- }
411
- };
412
- /* Jison generated lexer */
413
- var lexer = (function(){
414
- var lexer = ({EOF:1,
415
- parseError:function parseError(str, hash) {
416
- if (this.yy.parser) {
417
- this.yy.parser.parseError(str, hash);
418
- } else {
419
- throw new Error(str);
420
- }
421
- },
422
- setInput:function (input) {
423
- this._input = input;
424
- this._more = this._less = this.done = false;
425
- this.yylineno = this.yyleng = 0;
426
- this.yytext = this.matched = this.match = '';
427
- this.conditionStack = ['INITIAL'];
428
- this.yylloc = {first_line:1,first_column:0,last_line:1,last_column:0};
429
- if (this.options.ranges) this.yylloc.range = [0,0];
430
- this.offset = 0;
431
- return this;
432
- },
433
- input:function () {
434
- var ch = this._input[0];
435
- this.yytext += ch;
436
- this.yyleng++;
437
- this.offset++;
438
- this.match += ch;
439
- this.matched += ch;
440
- var lines = ch.match(/(?:\r\n?|\n).*/g);
441
- if (lines) {
442
- this.yylineno++;
443
- this.yylloc.last_line++;
444
- } else {
445
- this.yylloc.last_column++;
446
- }
447
- if (this.options.ranges) this.yylloc.range[1]++;
448
-
449
- this._input = this._input.slice(1);
450
- return ch;
451
- },
452
- unput:function (ch) {
453
- var len = ch.length;
454
- var lines = ch.split(/(?:\r\n?|\n)/g);
455
-
456
- this._input = ch + this._input;
457
- this.yytext = this.yytext.substr(0, this.yytext.length-len-1);
458
- //this.yyleng -= len;
459
- this.offset -= len;
460
- var oldLines = this.match.split(/(?:\r\n?|\n)/g);
461
- this.match = this.match.substr(0, this.match.length-1);
462
- this.matched = this.matched.substr(0, this.matched.length-1);
463
-
464
- if (lines.length-1) this.yylineno -= lines.length-1;
465
- var r = this.yylloc.range;
466
-
467
- this.yylloc = {first_line: this.yylloc.first_line,
468
- last_line: this.yylineno+1,
469
- first_column: this.yylloc.first_column,
470
- last_column: lines ?
471
- (lines.length === oldLines.length ? this.yylloc.first_column : 0) + oldLines[oldLines.length - lines.length].length - lines[0].length:
472
- this.yylloc.first_column - len
473
- };
474
-
475
- if (this.options.ranges) {
476
- this.yylloc.range = [r[0], r[0] + this.yyleng - len];
477
- }
478
- return this;
479
- },
480
- more:function () {
481
- this._more = true;
482
- return this;
483
- },
484
- less:function (n) {
485
- this.unput(this.match.slice(n));
486
- },
487
- pastInput:function () {
488
- var past = this.matched.substr(0, this.matched.length - this.match.length);
489
- return (past.length > 20 ? '...':'') + past.substr(-20).replace(/\n/g, "");
490
- },
491
- upcomingInput:function () {
492
- var next = this.match;
493
- if (next.length < 20) {
494
- next += this._input.substr(0, 20-next.length);
495
- }
496
- return (next.substr(0,20)+(next.length > 20 ? '...':'')).replace(/\n/g, "");
497
- },
498
- showPosition:function () {
499
- var pre = this.pastInput();
500
- var c = new Array(pre.length + 1).join("-");
501
- return pre + this.upcomingInput() + "\n" + c+"^";
502
- },
503
- next:function () {
504
- if (this.done) {
505
- return this.EOF;
506
- }
507
- if (!this._input) this.done = true;
508
-
509
- var token,
510
- match,
511
- tempMatch,
512
- index,
513
- col,
514
- lines;
515
- if (!this._more) {
516
- this.yytext = '';
517
- this.match = '';
518
- }
519
- var rules = this._currentRules();
520
- for (var i=0;i < rules.length; i++) {
521
- tempMatch = this._input.match(this.rules[rules[i]]);
522
- if (tempMatch && (!match || tempMatch[0].length > match[0].length)) {
523
- match = tempMatch;
524
- index = i;
525
- if (!this.options.flex) break;
526
- }
527
- }
528
- if (match) {
529
- lines = match[0].match(/(?:\r\n?|\n).*/g);
530
- if (lines) this.yylineno += lines.length;
531
- this.yylloc = {first_line: this.yylloc.last_line,
532
- last_line: this.yylineno+1,
533
- first_column: this.yylloc.last_column,
534
- last_column: lines ? lines[lines.length-1].length-lines[lines.length-1].match(/\r?\n?/)[0].length : this.yylloc.last_column + match[0].length};
535
- this.yytext += match[0];
536
- this.match += match[0];
537
- this.matches = match;
538
- this.yyleng = this.yytext.length;
539
- if (this.options.ranges) {
540
- this.yylloc.range = [this.offset, this.offset += this.yyleng];
541
- }
542
- this._more = false;
543
- this._input = this._input.slice(match[0].length);
544
- this.matched += match[0];
545
- token = this.performAction.call(this, this.yy, this, rules[index],this.conditionStack[this.conditionStack.length-1]);
546
- if (this.done && this._input) this.done = false;
547
- if (token) return token;
548
- else return;
549
- }
550
- if (this._input === "") {
551
- return this.EOF;
552
- } else {
553
- return this.parseError('Lexical error on line '+(this.yylineno+1)+'. Unrecognized text.\n'+this.showPosition(),
554
- {text: "", token: null, line: this.yylineno});
555
- }
556
- },
557
- lex:function lex() {
558
- var r = this.next();
559
- if (typeof r !== 'undefined') {
560
- return r;
561
- } else {
562
- return this.lex();
563
- }
564
- },
565
- begin:function begin(condition) {
566
- this.conditionStack.push(condition);
567
- },
568
- popState:function popState() {
569
- return this.conditionStack.pop();
570
- },
571
- _currentRules:function _currentRules() {
572
- return this.conditions[this.conditionStack[this.conditionStack.length-1]].rules;
573
- },
574
- topState:function () {
575
- return this.conditionStack[this.conditionStack.length-2];
576
- },
577
- pushState:function begin(condition) {
578
- this.begin(condition);
579
- }});
580
- lexer.options = {};
581
- lexer.performAction = function anonymous(yy,yy_,$avoiding_name_collisions,YY_START) {
582
-
583
- var YYSTATE=YY_START
584
- switch($avoiding_name_collisions) {
585
- case 0: yy_.yytext = "\\"; return 14;
586
- break;
587
- case 1:
588
- if(yy_.yytext.slice(-1) !== "\\") this.begin("mu");
589
- if(yy_.yytext.slice(-1) === "\\") yy_.yytext = yy_.yytext.substr(0,yy_.yyleng-1), this.begin("emu");
590
- if(yy_.yytext) return 14;
591
-
592
- break;
593
- case 2: return 14;
594
- break;
595
- case 3:
596
- if(yy_.yytext.slice(-1) !== "\\") this.popState();
597
- if(yy_.yytext.slice(-1) === "\\") yy_.yytext = yy_.yytext.substr(0,yy_.yyleng-1);
598
- return 14;
599
-
600
- break;
601
- case 4: yy_.yytext = yy_.yytext.substr(0, yy_.yyleng-4); this.popState(); return 15;
602
- break;
603
- case 5: return 25;
604
- break;
605
- case 6: return 16;
606
- break;
607
- case 7: return 20;
608
- break;
609
- case 8: return 19;
610
- break;
611
- case 9: return 19;
612
- break;
613
- case 10: return 23;
614
- break;
615
- case 11: return 22;
616
- break;
617
- case 12: this.popState(); this.begin('com');
618
- break;
619
- case 13: yy_.yytext = yy_.yytext.substr(3,yy_.yyleng-5); this.popState(); return 15;
620
- break;
621
- case 14: return 22;
622
- break;
623
- case 15: return 37;
624
- break;
625
- case 16: return 36;
626
- break;
627
- case 17: return 36;
628
- break;
629
- case 18: return 40;
630
- break;
631
- case 19: /*ignore whitespace*/
632
- break;
633
- case 20: this.popState(); return 24;
634
- break;
635
- case 21: this.popState(); return 18;
636
- break;
637
- case 22: yy_.yytext = yy_.yytext.substr(1,yy_.yyleng-2).replace(/\\"/g,'"'); return 31;
638
- break;
639
- case 23: yy_.yytext = yy_.yytext.substr(1,yy_.yyleng-2).replace(/\\'/g,"'"); return 31;
640
- break;
641
- case 24: return 38;
642
- break;
643
- case 25: return 33;
644
- break;
645
- case 26: return 33;
646
- break;
647
- case 27: return 32;
648
- break;
649
- case 28: return 36;
650
- break;
651
- case 29: yy_.yytext = yy_.yytext.substr(1, yy_.yyleng-2); return 36;
652
- break;
653
- case 30: return 'INVALID';
654
- break;
655
- case 31: return 5;
656
- break;
657
- }
658
- };
659
- lexer.rules = [/^(?:\\\\(?=(\{\{)))/,/^(?:[^\x00]*?(?=(\{\{)))/,/^(?:[^\x00]+)/,/^(?:[^\x00]{2,}?(?=(\{\{|$)))/,/^(?:[\s\S]*?--\}\})/,/^(?:\{\{>)/,/^(?:\{\{#)/,/^(?:\{\{\/)/,/^(?:\{\{\^)/,/^(?:\{\{\s*else\b)/,/^(?:\{\{\{)/,/^(?:\{\{&)/,/^(?:\{\{!--)/,/^(?:\{\{![\s\S]*?\}\})/,/^(?:\{\{)/,/^(?:=)/,/^(?:\.(?=[}\/ ]))/,/^(?:\.\.)/,/^(?:[\/.])/,/^(?:\s+)/,/^(?:\}\}\})/,/^(?:\}\})/,/^(?:"(\\["]|[^"])*")/,/^(?:'(\\[']|[^'])*')/,/^(?:@)/,/^(?:true(?=[}\s]))/,/^(?:false(?=[}\s]))/,/^(?:-?[0-9]+(?=[}\s]))/,/^(?:[^\s!"#%-,\.\/;->@\[-\^`\{-~]+(?=[=}\s\/.]))/,/^(?:\[[^\]]*\])/,/^(?:.)/,/^(?:$)/];
660
- lexer.conditions = {"mu":{"rules":[5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20,21,22,23,24,25,26,27,28,29,30,31],"inclusive":false},"emu":{"rules":[3],"inclusive":false},"com":{"rules":[4],"inclusive":false},"INITIAL":{"rules":[0,1,2,31],"inclusive":true}};
661
- return lexer;})()
662
- parser.lexer = lexer;
663
- function Parser () { this.yy = {}; }Parser.prototype = parser;parser.Parser = Parser;
664
- return new Parser;
665
- })();;
666
- // lib/handlebars/compiler/base.js
667
-
668
- Handlebars.Parser = handlebars;
669
-
670
- Handlebars.parse = function(input) {
671
-
672
- // Just return if an already-compile AST was passed in.
673
- if(input.constructor === Handlebars.AST.ProgramNode) { return input; }
674
-
675
- Handlebars.Parser.yy = Handlebars.AST;
676
- return Handlebars.Parser.parse(input);
677
- };
678
- ;
679
- // lib/handlebars/compiler/ast.js
680
- Handlebars.AST = {};
681
-
682
- Handlebars.AST.ProgramNode = function(statements, inverse) {
683
- this.type = "program";
684
- this.statements = statements;
685
- if(inverse) { this.inverse = new Handlebars.AST.ProgramNode(inverse); }
686
- };
687
-
688
- Handlebars.AST.MustacheNode = function(rawParams, hash, unescaped) {
689
- this.type = "mustache";
690
- this.escaped = !unescaped;
691
- this.hash = hash;
692
-
693
- var id = this.id = rawParams[0];
694
- var params = this.params = rawParams.slice(1);
695
-
696
- // a mustache is an eligible helper if:
697
- // * its id is simple (a single part, not `this` or `..`)
698
- var eligibleHelper = this.eligibleHelper = id.isSimple;
699
-
700
- // a mustache is definitely a helper if:
701
- // * it is an eligible helper, and
702
- // * it has at least one parameter or hash segment
703
- this.isHelper = eligibleHelper && (params.length || hash);
704
-
705
- // if a mustache is an eligible helper but not a definite
706
- // helper, it is ambiguous, and will be resolved in a later
707
- // pass or at runtime.
708
- };
709
-
710
- Handlebars.AST.PartialNode = function(partialName, context) {
711
- this.type = "partial";
712
- this.partialName = partialName;
713
- this.context = context;
714
- };
715
-
716
- Handlebars.AST.BlockNode = function(mustache, program, inverse, close) {
717
- var verifyMatch = function(open, close) {
718
- if(open.original !== close.original) {
719
- throw new Handlebars.Exception(open.original + " doesn't match " + close.original);
720
- }
721
- };
722
-
723
- verifyMatch(mustache.id, close);
724
- this.type = "block";
725
- this.mustache = mustache;
726
- this.program = program;
727
- this.inverse = inverse;
728
-
729
- if (this.inverse && !this.program) {
730
- this.isInverse = true;
731
- }
732
- };
733
-
734
- Handlebars.AST.ContentNode = function(string) {
735
- this.type = "content";
736
- this.string = string;
737
- };
738
-
739
- Handlebars.AST.HashNode = function(pairs) {
740
- this.type = "hash";
741
- this.pairs = pairs;
742
- };
743
-
744
- Handlebars.AST.IdNode = function(parts) {
745
- this.type = "ID";
746
-
747
- var original = "",
748
- dig = [],
749
- depth = 0;
750
-
751
- for(var i=0,l=parts.length; i<l; i++) {
752
- var part = parts[i].part;
753
- original += (parts[i].separator || '') + part;
754
-
755
- if (part === ".." || part === "." || part === "this") {
756
- if (dig.length > 0) { throw new Handlebars.Exception("Invalid path: " + original); }
757
- else if (part === "..") { depth++; }
758
- else { this.isScoped = true; }
759
- }
760
- else { dig.push(part); }
761
- }
762
-
763
- this.original = original;
764
- this.parts = dig;
765
- this.string = dig.join('.');
766
- this.depth = depth;
767
-
768
- // an ID is simple if it only has one part, and that part is not
769
- // `..` or `this`.
770
- this.isSimple = parts.length === 1 && !this.isScoped && depth === 0;
771
-
772
- this.stringModeValue = this.string;
773
- };
774
-
775
- Handlebars.AST.PartialNameNode = function(name) {
776
- this.type = "PARTIAL_NAME";
777
- this.name = name.original;
778
- };
779
-
780
- Handlebars.AST.DataNode = function(id) {
781
- this.type = "DATA";
782
- this.id = id;
783
- };
784
-
785
- Handlebars.AST.StringNode = function(string) {
786
- this.type = "STRING";
787
- this.original =
788
- this.string =
789
- this.stringModeValue = string;
790
- };
791
-
792
- Handlebars.AST.IntegerNode = function(integer) {
793
- this.type = "INTEGER";
794
- this.original =
795
- this.integer = integer;
796
- this.stringModeValue = Number(integer);
797
- };
798
-
799
- Handlebars.AST.BooleanNode = function(bool) {
800
- this.type = "BOOLEAN";
801
- this.bool = bool;
802
- this.stringModeValue = bool === "true";
803
- };
804
-
805
- Handlebars.AST.CommentNode = function(comment) {
806
- this.type = "comment";
807
- this.comment = comment;
808
- };
809
- ;
810
- // lib/handlebars/utils.js
811
-
812
- var errorProps = ['description', 'fileName', 'lineNumber', 'message', 'name', 'number', 'stack'];
813
-
814
- Handlebars.Exception = function(message) {
815
- var tmp = Error.prototype.constructor.apply(this, arguments);
816
-
817
- // Unfortunately errors are not enumerable in Chrome (at least), so `for prop in tmp` doesn't work.
818
- for (var idx = 0; idx < errorProps.length; idx++) {
819
- this[errorProps[idx]] = tmp[errorProps[idx]];
820
- }
821
- };
822
- Handlebars.Exception.prototype = new Error();
823
-
824
- // Build out our basic SafeString type
825
- Handlebars.SafeString = function(string) {
826
- this.string = string;
827
- };
828
- Handlebars.SafeString.prototype.toString = function() {
829
- return this.string.toString();
830
- };
831
-
832
- var escape = {
833
- "&": "&amp;",
834
- "<": "&lt;",
835
- ">": "&gt;",
836
- '"': "&quot;",
837
- "'": "&#x27;",
838
- "`": "&#x60;"
839
- };
840
-
841
- var badChars = /[&<>"'`]/g;
842
- var possible = /[&<>"'`]/;
843
-
844
- var escapeChar = function(chr) {
845
- return escape[chr] || "&amp;";
846
- };
847
-
848
- Handlebars.Utils = {
849
- extend: function(obj, value) {
850
- for(var key in value) {
851
- if(value.hasOwnProperty(key)) {
852
- obj[key] = value[key];
853
- }
854
- }
855
- },
856
-
857
- escapeExpression: function(string) {
858
- // don't escape SafeStrings, since they're already safe
859
- if (string instanceof Handlebars.SafeString) {
860
- return string.toString();
861
- } else if (string == null || string === false) {
862
- return "";
863
- }
864
-
865
- // Force a string conversion as this will be done by the append regardless and
866
- // the regex test will do this transparently behind the scenes, causing issues if
867
- // an object's to string has escaped characters in it.
868
- string = string.toString();
869
-
870
- if(!possible.test(string)) { return string; }
871
- return string.replace(badChars, escapeChar);
872
- },
873
-
874
- isEmpty: function(value) {
875
- if (!value && value !== 0) {
876
- return true;
877
- } else if(toString.call(value) === "[object Array]" && value.length === 0) {
878
- return true;
879
- } else {
880
- return false;
881
- }
882
- }
883
- };
884
- ;
885
- // lib/handlebars/compiler/compiler.js
886
-
887
- /*jshint eqnull:true*/
888
- var Compiler = Handlebars.Compiler = function() {};
889
- var JavaScriptCompiler = Handlebars.JavaScriptCompiler = function() {};
890
-
891
- // the foundHelper register will disambiguate helper lookup from finding a
892
- // function in a context. This is necessary for mustache compatibility, which
893
- // requires that context functions in blocks are evaluated by blockHelperMissing,
894
- // and then proceed as if the resulting value was provided to blockHelperMissing.
895
-
896
- Compiler.prototype = {
897
- compiler: Compiler,
898
-
899
- disassemble: function() {
900
- var opcodes = this.opcodes, opcode, out = [], params, param;
901
-
902
- for (var i=0, l=opcodes.length; i<l; i++) {
903
- opcode = opcodes[i];
904
-
905
- if (opcode.opcode === 'DECLARE') {
906
- out.push("DECLARE " + opcode.name + "=" + opcode.value);
907
- } else {
908
- params = [];
909
- for (var j=0; j<opcode.args.length; j++) {
910
- param = opcode.args[j];
911
- if (typeof param === "string") {
912
- param = "\"" + param.replace("\n", "\\n") + "\"";
913
- }
914
- params.push(param);
915
- }
916
- out.push(opcode.opcode + " " + params.join(" "));
917
- }
918
- }
919
-
920
- return out.join("\n");
921
- },
922
- equals: function(other) {
923
- var len = this.opcodes.length;
924
- if (other.opcodes.length !== len) {
925
- return false;
926
- }
927
-
928
- for (var i = 0; i < len; i++) {
929
- var opcode = this.opcodes[i],
930
- otherOpcode = other.opcodes[i];
931
- if (opcode.opcode !== otherOpcode.opcode || opcode.args.length !== otherOpcode.args.length) {
932
- return false;
933
- }
934
- for (var j = 0; j < opcode.args.length; j++) {
935
- if (opcode.args[j] !== otherOpcode.args[j]) {
936
- return false;
937
- }
938
- }
939
- }
940
-
941
- len = this.children.length;
942
- if (other.children.length !== len) {
943
- return false;
944
- }
945
- for (i = 0; i < len; i++) {
946
- if (!this.children[i].equals(other.children[i])) {
947
- return false;
948
- }
949
- }
950
-
951
- return true;
952
- },
953
-
954
- guid: 0,
955
-
956
- compile: function(program, options) {
957
- this.children = [];
958
- this.depths = {list: []};
959
- this.options = options;
960
-
961
- // These changes will propagate to the other compiler components
962
- var knownHelpers = this.options.knownHelpers;
963
- this.options.knownHelpers = {
964
- 'helperMissing': true,
965
- 'blockHelperMissing': true,
966
- 'each': true,
967
- 'if': true,
968
- 'unless': true,
969
- 'with': true,
970
- 'log': true
971
- };
972
- if (knownHelpers) {
973
- for (var name in knownHelpers) {
974
- this.options.knownHelpers[name] = knownHelpers[name];
975
- }
976
- }
977
-
978
- return this.program(program);
979
- },
980
-
981
- accept: function(node) {
982
- return this[node.type](node);
983
- },
984
-
985
- program: function(program) {
986
- var statements = program.statements, statement;
987
- this.opcodes = [];
988
-
989
- for(var i=0, l=statements.length; i<l; i++) {
990
- statement = statements[i];
991
- this[statement.type](statement);
992
- }
993
- this.isSimple = l === 1;
994
-
995
- this.depths.list = this.depths.list.sort(function(a, b) {
996
- return a - b;
997
- });
998
-
999
- return this;
1000
- },
1001
-
1002
- compileProgram: function(program) {
1003
- var result = new this.compiler().compile(program, this.options);
1004
- var guid = this.guid++, depth;
1005
-
1006
- this.usePartial = this.usePartial || result.usePartial;
1007
-
1008
- this.children[guid] = result;
1009
-
1010
- for(var i=0, l=result.depths.list.length; i<l; i++) {
1011
- depth = result.depths.list[i];
1012
-
1013
- if(depth < 2) { continue; }
1014
- else { this.addDepth(depth - 1); }
1015
- }
1016
-
1017
- return guid;
1018
- },
1019
-
1020
- block: function(block) {
1021
- var mustache = block.mustache,
1022
- program = block.program,
1023
- inverse = block.inverse;
1024
-
1025
- if (program) {
1026
- program = this.compileProgram(program);
1027
- }
1028
-
1029
- if (inverse) {
1030
- inverse = this.compileProgram(inverse);
1031
- }
1032
-
1033
- var type = this.classifyMustache(mustache);
1034
-
1035
- if (type === "helper") {
1036
- this.helperMustache(mustache, program, inverse);
1037
- } else if (type === "simple") {
1038
- this.simpleMustache(mustache);
1039
-
1040
- // now that the simple mustache is resolved, we need to
1041
- // evaluate it by executing `blockHelperMissing`
1042
- this.opcode('pushProgram', program);
1043
- this.opcode('pushProgram', inverse);
1044
- this.opcode('emptyHash');
1045
- this.opcode('blockValue');
1046
- } else {
1047
- this.ambiguousMustache(mustache, program, inverse);
1048
-
1049
- // now that the simple mustache is resolved, we need to
1050
- // evaluate it by executing `blockHelperMissing`
1051
- this.opcode('pushProgram', program);
1052
- this.opcode('pushProgram', inverse);
1053
- this.opcode('emptyHash');
1054
- this.opcode('ambiguousBlockValue');
1055
- }
1056
-
1057
- this.opcode('append');
1058
- },
1059
-
1060
- hash: function(hash) {
1061
- var pairs = hash.pairs, pair, val;
1062
-
1063
- this.opcode('pushHash');
1064
-
1065
- for(var i=0, l=pairs.length; i<l; i++) {
1066
- pair = pairs[i];
1067
- val = pair[1];
1068
-
1069
- if (this.options.stringParams) {
1070
- if(val.depth) {
1071
- this.addDepth(val.depth);
1072
- }
1073
- this.opcode('getContext', val.depth || 0);
1074
- this.opcode('pushStringParam', val.stringModeValue, val.type);
1075
- } else {
1076
- this.accept(val);
1077
- }
1078
-
1079
- this.opcode('assignToHash', pair[0]);
1080
- }
1081
- this.opcode('popHash');
1082
- },
1083
-
1084
- partial: function(partial) {
1085
- var partialName = partial.partialName;
1086
- this.usePartial = true;
1087
-
1088
- if(partial.context) {
1089
- this.ID(partial.context);
1090
- } else {
1091
- this.opcode('push', 'depth0');
1092
- }
1093
-
1094
- this.opcode('invokePartial', partialName.name);
1095
- this.opcode('append');
1096
- },
1097
-
1098
- content: function(content) {
1099
- this.opcode('appendContent', content.string);
1100
- },
1101
-
1102
- mustache: function(mustache) {
1103
- var options = this.options;
1104
- var type = this.classifyMustache(mustache);
1105
-
1106
- if (type === "simple") {
1107
- this.simpleMustache(mustache);
1108
- } else if (type === "helper") {
1109
- this.helperMustache(mustache);
1110
- } else {
1111
- this.ambiguousMustache(mustache);
1112
- }
1113
-
1114
- if(mustache.escaped && !options.noEscape) {
1115
- this.opcode('appendEscaped');
1116
- } else {
1117
- this.opcode('append');
1118
- }
1119
- },
1120
-
1121
- ambiguousMustache: function(mustache, program, inverse) {
1122
- var id = mustache.id,
1123
- name = id.parts[0],
1124
- isBlock = program != null || inverse != null;
1125
-
1126
- this.opcode('getContext', id.depth);
1127
-
1128
- this.opcode('pushProgram', program);
1129
- this.opcode('pushProgram', inverse);
1130
-
1131
- this.opcode('invokeAmbiguous', name, isBlock);
1132
- },
1133
-
1134
- simpleMustache: function(mustache) {
1135
- var id = mustache.id;
1136
-
1137
- if (id.type === 'DATA') {
1138
- this.DATA(id);
1139
- } else if (id.parts.length) {
1140
- this.ID(id);
1141
- } else {
1142
- // Simplified ID for `this`
1143
- this.addDepth(id.depth);
1144
- this.opcode('getContext', id.depth);
1145
- this.opcode('pushContext');
1146
- }
1147
-
1148
- this.opcode('resolvePossibleLambda');
1149
- },
1150
-
1151
- helperMustache: function(mustache, program, inverse) {
1152
- var params = this.setupFullMustacheParams(mustache, program, inverse),
1153
- name = mustache.id.parts[0];
1154
-
1155
- if (this.options.knownHelpers[name]) {
1156
- this.opcode('invokeKnownHelper', params.length, name);
1157
- } else if (this.options.knownHelpersOnly) {
1158
- throw new Error("You specified knownHelpersOnly, but used the unknown helper " + name);
1159
- } else {
1160
- this.opcode('invokeHelper', params.length, name);
1161
- }
1162
- },
1163
-
1164
- ID: function(id) {
1165
- this.addDepth(id.depth);
1166
- this.opcode('getContext', id.depth);
1167
-
1168
- var name = id.parts[0];
1169
- if (!name) {
1170
- this.opcode('pushContext');
1171
- } else {
1172
- this.opcode('lookupOnContext', id.parts[0]);
1173
- }
1174
-
1175
- for(var i=1, l=id.parts.length; i<l; i++) {
1176
- this.opcode('lookup', id.parts[i]);
1177
- }
1178
- },
1179
-
1180
- DATA: function(data) {
1181
- this.options.data = true;
1182
- if (data.id.isScoped || data.id.depth) {
1183
- throw new Handlebars.Exception('Scoped data references are not supported: ' + data.original);
1184
- }
1185
-
1186
- this.opcode('lookupData');
1187
- var parts = data.id.parts;
1188
- for(var i=0, l=parts.length; i<l; i++) {
1189
- this.opcode('lookup', parts[i]);
1190
- }
1191
- },
1192
-
1193
- STRING: function(string) {
1194
- this.opcode('pushString', string.string);
1195
- },
1196
-
1197
- INTEGER: function(integer) {
1198
- this.opcode('pushLiteral', integer.integer);
1199
- },
1200
-
1201
- BOOLEAN: function(bool) {
1202
- this.opcode('pushLiteral', bool.bool);
1203
- },
1204
-
1205
- comment: function() {},
1206
-
1207
- // HELPERS
1208
- opcode: function(name) {
1209
- this.opcodes.push({ opcode: name, args: [].slice.call(arguments, 1) });
1210
- },
1211
-
1212
- declare: function(name, value) {
1213
- this.opcodes.push({ opcode: 'DECLARE', name: name, value: value });
1214
- },
1215
-
1216
- addDepth: function(depth) {
1217
- if(isNaN(depth)) { throw new Error("EWOT"); }
1218
- if(depth === 0) { return; }
1219
-
1220
- if(!this.depths[depth]) {
1221
- this.depths[depth] = true;
1222
- this.depths.list.push(depth);
1223
- }
1224
- },
1225
-
1226
- classifyMustache: function(mustache) {
1227
- var isHelper = mustache.isHelper;
1228
- var isEligible = mustache.eligibleHelper;
1229
- var options = this.options;
1230
-
1231
- // if ambiguous, we can possibly resolve the ambiguity now
1232
- if (isEligible && !isHelper) {
1233
- var name = mustache.id.parts[0];
1234
-
1235
- if (options.knownHelpers[name]) {
1236
- isHelper = true;
1237
- } else if (options.knownHelpersOnly) {
1238
- isEligible = false;
1239
- }
1240
- }
1241
-
1242
- if (isHelper) { return "helper"; }
1243
- else if (isEligible) { return "ambiguous"; }
1244
- else { return "simple"; }
1245
- },
1246
-
1247
- pushParams: function(params) {
1248
- var i = params.length, param;
1249
-
1250
- while(i--) {
1251
- param = params[i];
1252
-
1253
- if(this.options.stringParams) {
1254
- if(param.depth) {
1255
- this.addDepth(param.depth);
1256
- }
1257
-
1258
- this.opcode('getContext', param.depth || 0);
1259
- this.opcode('pushStringParam', param.stringModeValue, param.type);
1260
- } else {
1261
- this[param.type](param);
1262
- }
1263
- }
1264
- },
1265
-
1266
- setupMustacheParams: function(mustache) {
1267
- var params = mustache.params;
1268
- this.pushParams(params);
1269
-
1270
- if(mustache.hash) {
1271
- this.hash(mustache.hash);
1272
- } else {
1273
- this.opcode('emptyHash');
1274
- }
1275
-
1276
- return params;
1277
- },
1278
-
1279
- // this will replace setupMustacheParams when we're done
1280
- setupFullMustacheParams: function(mustache, program, inverse) {
1281
- var params = mustache.params;
1282
- this.pushParams(params);
1283
-
1284
- this.opcode('pushProgram', program);
1285
- this.opcode('pushProgram', inverse);
1286
-
1287
- if(mustache.hash) {
1288
- this.hash(mustache.hash);
1289
- } else {
1290
- this.opcode('emptyHash');
1291
- }
1292
-
1293
- return params;
1294
- }
1295
- };
1296
-
1297
- var Literal = function(value) {
1298
- this.value = value;
1299
- };
1300
-
1301
- JavaScriptCompiler.prototype = {
1302
- // PUBLIC API: You can override these methods in a subclass to provide
1303
- // alternative compiled forms for name lookup and buffering semantics
1304
- nameLookup: function(parent, name /* , type*/) {
1305
- if (/^[0-9]+$/.test(name)) {
1306
- return parent + "[" + name + "]";
1307
- } else if (JavaScriptCompiler.isValidJavaScriptVariableName(name)) {
1308
- return parent + "." + name;
1309
- }
1310
- else {
1311
- return parent + "['" + name + "']";
1312
- }
1313
- },
1314
-
1315
- appendToBuffer: function(string) {
1316
- if (this.environment.isSimple) {
1317
- return "return " + string + ";";
1318
- } else {
1319
- return {
1320
- appendToBuffer: true,
1321
- content: string,
1322
- toString: function() { return "buffer += " + string + ";"; }
1323
- };
1324
- }
1325
- },
1326
-
1327
- initializeBuffer: function() {
1328
- return this.quotedString("");
1329
- },
1330
-
1331
- namespace: "Handlebars",
1332
- // END PUBLIC API
1333
-
1334
- compile: function(environment, options, context, asObject) {
1335
- this.environment = environment;
1336
- this.options = options || {};
1337
-
1338
- Handlebars.log(Handlebars.logger.DEBUG, this.environment.disassemble() + "\n\n");
1339
-
1340
- this.name = this.environment.name;
1341
- this.isChild = !!context;
1342
- this.context = context || {
1343
- programs: [],
1344
- environments: [],
1345
- aliases: { }
1346
- };
1347
-
1348
- this.preamble();
1349
-
1350
- this.stackSlot = 0;
1351
- this.stackVars = [];
1352
- this.registers = { list: [] };
1353
- this.compileStack = [];
1354
- this.inlineStack = [];
1355
-
1356
- this.compileChildren(environment, options);
1357
-
1358
- var opcodes = environment.opcodes, opcode;
1359
-
1360
- this.i = 0;
1361
-
1362
- for(l=opcodes.length; this.i<l; this.i++) {
1363
- opcode = opcodes[this.i];
1364
-
1365
- if(opcode.opcode === 'DECLARE') {
1366
- this[opcode.name] = opcode.value;
1367
- } else {
1368
- this[opcode.opcode].apply(this, opcode.args);
1369
- }
1370
- }
1371
-
1372
- return this.createFunctionContext(asObject);
1373
- },
1374
-
1375
- nextOpcode: function() {
1376
- var opcodes = this.environment.opcodes;
1377
- return opcodes[this.i + 1];
1378
- },
1379
-
1380
- eat: function() {
1381
- this.i = this.i + 1;
1382
- },
1383
-
1384
- preamble: function() {
1385
- var out = [];
1386
-
1387
- if (!this.isChild) {
1388
- var namespace = this.namespace;
1389
-
1390
- var copies = "helpers = this.merge(helpers, " + namespace + ".helpers);";
1391
- if (this.environment.usePartial) { copies = copies + " partials = this.merge(partials, " + namespace + ".partials);"; }
1392
- if (this.options.data) { copies = copies + " data = data || {};"; }
1393
- out.push(copies);
1394
- } else {
1395
- out.push('');
1396
- }
1397
-
1398
- if (!this.environment.isSimple) {
1399
- out.push(", buffer = " + this.initializeBuffer());
1400
- } else {
1401
- out.push("");
1402
- }
1403
-
1404
- // track the last context pushed into place to allow skipping the
1405
- // getContext opcode when it would be a noop
1406
- this.lastContext = 0;
1407
- this.source = out;
1408
- },
1409
-
1410
- createFunctionContext: function(asObject) {
1411
- var locals = this.stackVars.concat(this.registers.list);
1412
-
1413
- if(locals.length > 0) {
1414
- this.source[1] = this.source[1] + ", " + locals.join(", ");
1415
- }
1416
-
1417
- // Generate minimizer alias mappings
1418
- if (!this.isChild) {
1419
- for (var alias in this.context.aliases) {
1420
- if (this.context.aliases.hasOwnProperty(alias)) {
1421
- this.source[1] = this.source[1] + ', ' + alias + '=' + this.context.aliases[alias];
1422
- }
1423
- }
1424
- }
1425
-
1426
- if (this.source[1]) {
1427
- this.source[1] = "var " + this.source[1].substring(2) + ";";
1428
- }
1429
-
1430
- // Merge children
1431
- if (!this.isChild) {
1432
- this.source[1] += '\n' + this.context.programs.join('\n') + '\n';
1433
- }
1434
-
1435
- if (!this.environment.isSimple) {
1436
- this.source.push("return buffer;");
1437
- }
1438
-
1439
- var params = this.isChild ? ["depth0", "data"] : ["Handlebars", "depth0", "helpers", "partials", "data"];
1440
-
1441
- for(var i=0, l=this.environment.depths.list.length; i<l; i++) {
1442
- params.push("depth" + this.environment.depths.list[i]);
1443
- }
1444
-
1445
- // Perform a second pass over the output to merge content when possible
1446
- var source = this.mergeSource();
1447
-
1448
- if (!this.isChild) {
1449
- var revision = Handlebars.COMPILER_REVISION,
1450
- versions = Handlebars.REVISION_CHANGES[revision];
1451
- source = "this.compilerInfo = ["+revision+",'"+versions+"'];\n"+source;
1452
- }
1453
-
1454
- if (asObject) {
1455
- params.push(source);
1456
-
1457
- return Function.apply(this, params);
1458
- } else {
1459
- var functionSource = 'function ' + (this.name || '') + '(' + params.join(',') + ') {\n ' + source + '}';
1460
- Handlebars.log(Handlebars.logger.DEBUG, functionSource + "\n\n");
1461
- return functionSource;
1462
- }
1463
- },
1464
- mergeSource: function() {
1465
- // WARN: We are not handling the case where buffer is still populated as the source should
1466
- // not have buffer append operations as their final action.
1467
- var source = '',
1468
- buffer;
1469
- for (var i = 0, len = this.source.length; i < len; i++) {
1470
- var line = this.source[i];
1471
- if (line.appendToBuffer) {
1472
- if (buffer) {
1473
- buffer = buffer + '\n + ' + line.content;
1474
- } else {
1475
- buffer = line.content;
1476
- }
1477
- } else {
1478
- if (buffer) {
1479
- source += 'buffer += ' + buffer + ';\n ';
1480
- buffer = undefined;
1481
- }
1482
- source += line + '\n ';
1483
- }
1484
- }
1485
- return source;
1486
- },
1487
-
1488
- // [blockValue]
1489
- //
1490
- // On stack, before: hash, inverse, program, value
1491
- // On stack, after: return value of blockHelperMissing
1492
- //
1493
- // The purpose of this opcode is to take a block of the form
1494
- // `{{#foo}}...{{/foo}}`, resolve the value of `foo`, and
1495
- // replace it on the stack with the result of properly
1496
- // invoking blockHelperMissing.
1497
- blockValue: function() {
1498
- this.context.aliases.blockHelperMissing = 'helpers.blockHelperMissing';
1499
-
1500
- var params = ["depth0"];
1501
- this.setupParams(0, params);
1502
-
1503
- this.replaceStack(function(current) {
1504
- params.splice(1, 0, current);
1505
- return "blockHelperMissing.call(" + params.join(", ") + ")";
1506
- });
1507
- },
1508
-
1509
- // [ambiguousBlockValue]
1510
- //
1511
- // On stack, before: hash, inverse, program, value
1512
- // Compiler value, before: lastHelper=value of last found helper, if any
1513
- // On stack, after, if no lastHelper: same as [blockValue]
1514
- // On stack, after, if lastHelper: value
1515
- ambiguousBlockValue: function() {
1516
- this.context.aliases.blockHelperMissing = 'helpers.blockHelperMissing';
1517
-
1518
- var params = ["depth0"];
1519
- this.setupParams(0, params);
1520
-
1521
- var current = this.topStack();
1522
- params.splice(1, 0, current);
1523
-
1524
- // Use the options value generated from the invocation
1525
- params[params.length-1] = 'options';
1526
-
1527
- this.source.push("if (!" + this.lastHelper + ") { " + current + " = blockHelperMissing.call(" + params.join(", ") + "); }");
1528
- },
1529
-
1530
- // [appendContent]
1531
- //
1532
- // On stack, before: ...
1533
- // On stack, after: ...
1534
- //
1535
- // Appends the string value of `content` to the current buffer
1536
- appendContent: function(content) {
1537
- this.source.push(this.appendToBuffer(this.quotedString(content)));
1538
- },
1539
-
1540
- // [append]
1541
- //
1542
- // On stack, before: value, ...
1543
- // On stack, after: ...
1544
- //
1545
- // Coerces `value` to a String and appends it to the current buffer.
1546
- //
1547
- // If `value` is truthy, or 0, it is coerced into a string and appended
1548
- // Otherwise, the empty string is appended
1549
- append: function() {
1550
- // Force anything that is inlined onto the stack so we don't have duplication
1551
- // when we examine local
1552
- this.flushInline();
1553
- var local = this.popStack();
1554
- this.source.push("if(" + local + " || " + local + " === 0) { " + this.appendToBuffer(local) + " }");
1555
- if (this.environment.isSimple) {
1556
- this.source.push("else { " + this.appendToBuffer("''") + " }");
1557
- }
1558
- },
1559
-
1560
- // [appendEscaped]
1561
- //
1562
- // On stack, before: value, ...
1563
- // On stack, after: ...
1564
- //
1565
- // Escape `value` and append it to the buffer
1566
- appendEscaped: function() {
1567
- this.context.aliases.escapeExpression = 'this.escapeExpression';
1568
-
1569
- this.source.push(this.appendToBuffer("escapeExpression(" + this.popStack() + ")"));
1570
- },
1571
-
1572
- // [getContext]
1573
- //
1574
- // On stack, before: ...
1575
- // On stack, after: ...
1576
- // Compiler value, after: lastContext=depth
1577
- //
1578
- // Set the value of the `lastContext` compiler value to the depth
1579
- getContext: function(depth) {
1580
- if(this.lastContext !== depth) {
1581
- this.lastContext = depth;
1582
- }
1583
- },
1584
-
1585
- // [lookupOnContext]
1586
- //
1587
- // On stack, before: ...
1588
- // On stack, after: currentContext[name], ...
1589
- //
1590
- // Looks up the value of `name` on the current context and pushes
1591
- // it onto the stack.
1592
- lookupOnContext: function(name) {
1593
- this.push(this.nameLookup('depth' + this.lastContext, name, 'context'));
1594
- },
1595
-
1596
- // [pushContext]
1597
- //
1598
- // On stack, before: ...
1599
- // On stack, after: currentContext, ...
1600
- //
1601
- // Pushes the value of the current context onto the stack.
1602
- pushContext: function() {
1603
- this.pushStackLiteral('depth' + this.lastContext);
1604
- },
1605
-
1606
- // [resolvePossibleLambda]
1607
- //
1608
- // On stack, before: value, ...
1609
- // On stack, after: resolved value, ...
1610
- //
1611
- // If the `value` is a lambda, replace it on the stack by
1612
- // the return value of the lambda
1613
- resolvePossibleLambda: function() {
1614
- this.context.aliases.functionType = '"function"';
1615
-
1616
- this.replaceStack(function(current) {
1617
- return "typeof " + current + " === functionType ? " + current + ".apply(depth0) : " + current;
1618
- });
1619
- },
1620
-
1621
- // [lookup]
1622
- //
1623
- // On stack, before: value, ...
1624
- // On stack, after: value[name], ...
1625
- //
1626
- // Replace the value on the stack with the result of looking
1627
- // up `name` on `value`
1628
- lookup: function(name) {
1629
- this.replaceStack(function(current) {
1630
- return current + " == null || " + current + " === false ? " + current + " : " + this.nameLookup(current, name, 'context');
1631
- });
1632
- },
1633
-
1634
- // [lookupData]
1635
- //
1636
- // On stack, before: ...
1637
- // On stack, after: data[id], ...
1638
- //
1639
- // Push the result of looking up `id` on the current data
1640
- lookupData: function(id) {
1641
- this.push('data');
1642
- },
1643
-
1644
- // [pushStringParam]
1645
- //
1646
- // On stack, before: ...
1647
- // On stack, after: string, currentContext, ...
1648
- //
1649
- // This opcode is designed for use in string mode, which
1650
- // provides the string value of a parameter along with its
1651
- // depth rather than resolving it immediately.
1652
- pushStringParam: function(string, type) {
1653
- this.pushStackLiteral('depth' + this.lastContext);
1654
-
1655
- this.pushString(type);
1656
-
1657
- if (typeof string === 'string') {
1658
- this.pushString(string);
1659
- } else {
1660
- this.pushStackLiteral(string);
1661
- }
1662
- },
1663
-
1664
- emptyHash: function() {
1665
- this.pushStackLiteral('{}');
1666
-
1667
- if (this.options.stringParams) {
1668
- this.register('hashTypes', '{}');
1669
- this.register('hashContexts', '{}');
1670
- }
1671
- },
1672
- pushHash: function() {
1673
- this.hash = {values: [], types: [], contexts: []};
1674
- },
1675
- popHash: function() {
1676
- var hash = this.hash;
1677
- this.hash = undefined;
1678
-
1679
- if (this.options.stringParams) {
1680
- this.register('hashContexts', '{' + hash.contexts.join(',') + '}');
1681
- this.register('hashTypes', '{' + hash.types.join(',') + '}');
1682
- }
1683
- this.push('{\n ' + hash.values.join(',\n ') + '\n }');
1684
- },
1685
-
1686
- // [pushString]
1687
- //
1688
- // On stack, before: ...
1689
- // On stack, after: quotedString(string), ...
1690
- //
1691
- // Push a quoted version of `string` onto the stack
1692
- pushString: function(string) {
1693
- this.pushStackLiteral(this.quotedString(string));
1694
- },
1695
-
1696
- // [push]
1697
- //
1698
- // On stack, before: ...
1699
- // On stack, after: expr, ...
1700
- //
1701
- // Push an expression onto the stack
1702
- push: function(expr) {
1703
- this.inlineStack.push(expr);
1704
- return expr;
1705
- },
1706
-
1707
- // [pushLiteral]
1708
- //
1709
- // On stack, before: ...
1710
- // On stack, after: value, ...
1711
- //
1712
- // Pushes a value onto the stack. This operation prevents
1713
- // the compiler from creating a temporary variable to hold
1714
- // it.
1715
- pushLiteral: function(value) {
1716
- this.pushStackLiteral(value);
1717
- },
1718
-
1719
- // [pushProgram]
1720
- //
1721
- // On stack, before: ...
1722
- // On stack, after: program(guid), ...
1723
- //
1724
- // Push a program expression onto the stack. This takes
1725
- // a compile-time guid and converts it into a runtime-accessible
1726
- // expression.
1727
- pushProgram: function(guid) {
1728
- if (guid != null) {
1729
- this.pushStackLiteral(this.programExpression(guid));
1730
- } else {
1731
- this.pushStackLiteral(null);
1732
- }
1733
- },
1734
-
1735
- // [invokeHelper]
1736
- //
1737
- // On stack, before: hash, inverse, program, params..., ...
1738
- // On stack, after: result of helper invocation
1739
- //
1740
- // Pops off the helper's parameters, invokes the helper,
1741
- // and pushes the helper's return value onto the stack.
1742
- //
1743
- // If the helper is not found, `helperMissing` is called.
1744
- invokeHelper: function(paramSize, name) {
1745
- this.context.aliases.helperMissing = 'helpers.helperMissing';
1746
-
1747
- var helper = this.lastHelper = this.setupHelper(paramSize, name, true);
1748
- var nonHelper = this.nameLookup('depth' + this.lastContext, name, 'context');
1749
-
1750
- this.push(helper.name + ' || ' + nonHelper);
1751
- this.replaceStack(function(name) {
1752
- return name + ' ? ' + name + '.call(' +
1753
- helper.callParams + ") " + ": helperMissing.call(" +
1754
- helper.helperMissingParams + ")";
1755
- });
1756
- },
1757
-
1758
- // [invokeKnownHelper]
1759
- //
1760
- // On stack, before: hash, inverse, program, params..., ...
1761
- // On stack, after: result of helper invocation
1762
- //
1763
- // This operation is used when the helper is known to exist,
1764
- // so a `helperMissing` fallback is not required.
1765
- invokeKnownHelper: function(paramSize, name) {
1766
- var helper = this.setupHelper(paramSize, name);
1767
- this.push(helper.name + ".call(" + helper.callParams + ")");
1768
- },
1769
-
1770
- // [invokeAmbiguous]
1771
- //
1772
- // On stack, before: hash, inverse, program, params..., ...
1773
- // On stack, after: result of disambiguation
1774
- //
1775
- // This operation is used when an expression like `{{foo}}`
1776
- // is provided, but we don't know at compile-time whether it
1777
- // is a helper or a path.
1778
- //
1779
- // This operation emits more code than the other options,
1780
- // and can be avoided by passing the `knownHelpers` and
1781
- // `knownHelpersOnly` flags at compile-time.
1782
- invokeAmbiguous: function(name, helperCall) {
1783
- this.context.aliases.functionType = '"function"';
1784
-
1785
- this.pushStackLiteral('{}'); // Hash value
1786
- var helper = this.setupHelper(0, name, helperCall);
1787
-
1788
- var helperName = this.lastHelper = this.nameLookup('helpers', name, 'helper');
1789
-
1790
- var nonHelper = this.nameLookup('depth' + this.lastContext, name, 'context');
1791
- var nextStack = this.nextStack();
1792
-
1793
- this.source.push('if (' + nextStack + ' = ' + helperName + ') { ' + nextStack + ' = ' + nextStack + '.call(' + helper.callParams + '); }');
1794
- this.source.push('else { ' + nextStack + ' = ' + nonHelper + '; ' + nextStack + ' = typeof ' + nextStack + ' === functionType ? ' + nextStack + '.apply(depth0) : ' + nextStack + '; }');
1795
- },
1796
-
1797
- // [invokePartial]
1798
- //
1799
- // On stack, before: context, ...
1800
- // On stack after: result of partial invocation
1801
- //
1802
- // This operation pops off a context, invokes a partial with that context,
1803
- // and pushes the result of the invocation back.
1804
- invokePartial: function(name) {
1805
- var params = [this.nameLookup('partials', name, 'partial'), "'" + name + "'", this.popStack(), "helpers", "partials"];
1806
-
1807
- if (this.options.data) {
1808
- params.push("data");
1809
- }
1810
-
1811
- this.context.aliases.self = "this";
1812
- this.push("self.invokePartial(" + params.join(", ") + ")");
1813
- },
1814
-
1815
- // [assignToHash]
1816
- //
1817
- // On stack, before: value, hash, ...
1818
- // On stack, after: hash, ...
1819
- //
1820
- // Pops a value and hash off the stack, assigns `hash[key] = value`
1821
- // and pushes the hash back onto the stack.
1822
- assignToHash: function(key) {
1823
- var value = this.popStack(),
1824
- context,
1825
- type;
1826
-
1827
- if (this.options.stringParams) {
1828
- type = this.popStack();
1829
- context = this.popStack();
1830
- }
1831
-
1832
- var hash = this.hash;
1833
- if (context) {
1834
- hash.contexts.push("'" + key + "': " + context);
1835
- }
1836
- if (type) {
1837
- hash.types.push("'" + key + "': " + type);
1838
- }
1839
- hash.values.push("'" + key + "': (" + value + ")");
1840
- },
1841
-
1842
- // HELPERS
1843
-
1844
- compiler: JavaScriptCompiler,
1845
-
1846
- compileChildren: function(environment, options) {
1847
- var children = environment.children, child, compiler;
1848
-
1849
- for(var i=0, l=children.length; i<l; i++) {
1850
- child = children[i];
1851
- compiler = new this.compiler();
1852
-
1853
- var index = this.matchExistingProgram(child);
1854
-
1855
- if (index == null) {
1856
- this.context.programs.push(''); // Placeholder to prevent name conflicts for nested children
1857
- index = this.context.programs.length;
1858
- child.index = index;
1859
- child.name = 'program' + index;
1860
- this.context.programs[index] = compiler.compile(child, options, this.context);
1861
- this.context.environments[index] = child;
1862
- } else {
1863
- child.index = index;
1864
- child.name = 'program' + index;
1865
- }
1866
- }
1867
- },
1868
- matchExistingProgram: function(child) {
1869
- for (var i = 0, len = this.context.environments.length; i < len; i++) {
1870
- var environment = this.context.environments[i];
1871
- if (environment && environment.equals(child)) {
1872
- return i;
1873
- }
1874
- }
1875
- },
1876
-
1877
- programExpression: function(guid) {
1878
- this.context.aliases.self = "this";
1879
-
1880
- if(guid == null) {
1881
- return "self.noop";
1882
- }
1883
-
1884
- var child = this.environment.children[guid],
1885
- depths = child.depths.list, depth;
1886
-
1887
- var programParams = [child.index, child.name, "data"];
1888
-
1889
- for(var i=0, l = depths.length; i<l; i++) {
1890
- depth = depths[i];
1891
-
1892
- if(depth === 1) { programParams.push("depth0"); }
1893
- else { programParams.push("depth" + (depth - 1)); }
1894
- }
1895
-
1896
- return (depths.length === 0 ? "self.program(" : "self.programWithDepth(") + programParams.join(", ") + ")";
1897
- },
1898
-
1899
- register: function(name, val) {
1900
- this.useRegister(name);
1901
- this.source.push(name + " = " + val + ";");
1902
- },
1903
-
1904
- useRegister: function(name) {
1905
- if(!this.registers[name]) {
1906
- this.registers[name] = true;
1907
- this.registers.list.push(name);
1908
- }
1909
- },
1910
-
1911
- pushStackLiteral: function(item) {
1912
- return this.push(new Literal(item));
1913
- },
1914
-
1915
- pushStack: function(item) {
1916
- this.flushInline();
1917
-
1918
- var stack = this.incrStack();
1919
- if (item) {
1920
- this.source.push(stack + " = " + item + ";");
1921
- }
1922
- this.compileStack.push(stack);
1923
- return stack;
1924
- },
1925
-
1926
- replaceStack: function(callback) {
1927
- var prefix = '',
1928
- inline = this.isInline(),
1929
- stack;
1930
-
1931
- // If we are currently inline then we want to merge the inline statement into the
1932
- // replacement statement via ','
1933
- if (inline) {
1934
- var top = this.popStack(true);
1935
-
1936
- if (top instanceof Literal) {
1937
- // Literals do not need to be inlined
1938
- stack = top.value;
1939
- } else {
1940
- // Get or create the current stack name for use by the inline
1941
- var name = this.stackSlot ? this.topStackName() : this.incrStack();
1942
-
1943
- prefix = '(' + this.push(name) + ' = ' + top + '),';
1944
- stack = this.topStack();
1945
- }
1946
- } else {
1947
- stack = this.topStack();
1948
- }
1949
-
1950
- var item = callback.call(this, stack);
1951
-
1952
- if (inline) {
1953
- if (this.inlineStack.length || this.compileStack.length) {
1954
- this.popStack();
1955
- }
1956
- this.push('(' + prefix + item + ')');
1957
- } else {
1958
- // Prevent modification of the context depth variable. Through replaceStack
1959
- if (!/^stack/.test(stack)) {
1960
- stack = this.nextStack();
1961
- }
1962
-
1963
- this.source.push(stack + " = (" + prefix + item + ");");
1964
- }
1965
- return stack;
1966
- },
1967
-
1968
- nextStack: function() {
1969
- return this.pushStack();
1970
- },
1971
-
1972
- incrStack: function() {
1973
- this.stackSlot++;
1974
- if(this.stackSlot > this.stackVars.length) { this.stackVars.push("stack" + this.stackSlot); }
1975
- return this.topStackName();
1976
- },
1977
- topStackName: function() {
1978
- return "stack" + this.stackSlot;
1979
- },
1980
- flushInline: function() {
1981
- var inlineStack = this.inlineStack;
1982
- if (inlineStack.length) {
1983
- this.inlineStack = [];
1984
- for (var i = 0, len = inlineStack.length; i < len; i++) {
1985
- var entry = inlineStack[i];
1986
- if (entry instanceof Literal) {
1987
- this.compileStack.push(entry);
1988
- } else {
1989
- this.pushStack(entry);
1990
- }
1991
- }
1992
- }
1993
- },
1994
- isInline: function() {
1995
- return this.inlineStack.length;
1996
- },
1997
-
1998
- popStack: function(wrapped) {
1999
- var inline = this.isInline(),
2000
- item = (inline ? this.inlineStack : this.compileStack).pop();
2001
-
2002
- if (!wrapped && (item instanceof Literal)) {
2003
- return item.value;
2004
- } else {
2005
- if (!inline) {
2006
- this.stackSlot--;
2007
- }
2008
- return item;
2009
- }
2010
- },
2011
-
2012
- topStack: function(wrapped) {
2013
- var stack = (this.isInline() ? this.inlineStack : this.compileStack),
2014
- item = stack[stack.length - 1];
2015
-
2016
- if (!wrapped && (item instanceof Literal)) {
2017
- return item.value;
2018
- } else {
2019
- return item;
2020
- }
2021
- },
2022
-
2023
- quotedString: function(str) {
2024
- return '"' + str
2025
- .replace(/\\/g, '\\\\')
2026
- .replace(/"/g, '\\"')
2027
- .replace(/\n/g, '\\n')
2028
- .replace(/\r/g, '\\r')
2029
- .replace(/\u2028/g, '\\u2028') // Per Ecma-262 7.3 + 7.8.4
2030
- .replace(/\u2029/g, '\\u2029') + '"';
2031
- },
2032
-
2033
- setupHelper: function(paramSize, name, missingParams) {
2034
- var params = [];
2035
- this.setupParams(paramSize, params, missingParams);
2036
- var foundHelper = this.nameLookup('helpers', name, 'helper');
2037
-
2038
- return {
2039
- params: params,
2040
- name: foundHelper,
2041
- callParams: ["depth0"].concat(params).join(", "),
2042
- helperMissingParams: missingParams && ["depth0", this.quotedString(name)].concat(params).join(", ")
2043
- };
2044
- },
2045
-
2046
- // the params and contexts arguments are passed in arrays
2047
- // to fill in
2048
- setupParams: function(paramSize, params, useRegister) {
2049
- var options = [], contexts = [], types = [], param, inverse, program;
2050
-
2051
- options.push("hash:" + this.popStack());
2052
-
2053
- inverse = this.popStack();
2054
- program = this.popStack();
2055
-
2056
- // Avoid setting fn and inverse if neither are set. This allows
2057
- // helpers to do a check for `if (options.fn)`
2058
- if (program || inverse) {
2059
- if (!program) {
2060
- this.context.aliases.self = "this";
2061
- program = "self.noop";
2062
- }
2063
-
2064
- if (!inverse) {
2065
- this.context.aliases.self = "this";
2066
- inverse = "self.noop";
2067
- }
2068
-
2069
- options.push("inverse:" + inverse);
2070
- options.push("fn:" + program);
2071
- }
2072
-
2073
- for(var i=0; i<paramSize; i++) {
2074
- param = this.popStack();
2075
- params.push(param);
2076
-
2077
- if(this.options.stringParams) {
2078
- types.push(this.popStack());
2079
- contexts.push(this.popStack());
2080
- }
2081
- }
2082
-
2083
- if (this.options.stringParams) {
2084
- options.push("contexts:[" + contexts.join(",") + "]");
2085
- options.push("types:[" + types.join(",") + "]");
2086
- options.push("hashContexts:hashContexts");
2087
- options.push("hashTypes:hashTypes");
2088
- }
2089
-
2090
- if(this.options.data) {
2091
- options.push("data:data");
2092
- }
2093
-
2094
- options = "{" + options.join(",") + "}";
2095
- if (useRegister) {
2096
- this.register('options', options);
2097
- params.push('options');
2098
- } else {
2099
- params.push(options);
2100
- }
2101
- return params.join(", ");
2102
- }
2103
- };
2104
-
2105
- var reservedWords = (
2106
- "break else new var" +
2107
- " case finally return void" +
2108
- " catch for switch while" +
2109
- " continue function this with" +
2110
- " default if throw" +
2111
- " delete in try" +
2112
- " do instanceof typeof" +
2113
- " abstract enum int short" +
2114
- " boolean export interface static" +
2115
- " byte extends long super" +
2116
- " char final native synchronized" +
2117
- " class float package throws" +
2118
- " const goto private transient" +
2119
- " debugger implements protected volatile" +
2120
- " double import public let yield"
2121
- ).split(" ");
2122
-
2123
- var compilerWords = JavaScriptCompiler.RESERVED_WORDS = {};
2124
-
2125
- for(var i=0, l=reservedWords.length; i<l; i++) {
2126
- compilerWords[reservedWords[i]] = true;
2127
- }
2128
-
2129
- JavaScriptCompiler.isValidJavaScriptVariableName = function(name) {
2130
- if(!JavaScriptCompiler.RESERVED_WORDS[name] && /^[a-zA-Z_$][0-9a-zA-Z_$]+$/.test(name)) {
2131
- return true;
2132
- }
2133
- return false;
2134
- };
2135
-
2136
- Handlebars.precompile = function(input, options) {
2137
- if (input == null || (typeof input !== 'string' && input.constructor !== Handlebars.AST.ProgramNode)) {
2138
- throw new Handlebars.Exception("You must pass a string or Handlebars AST to Handlebars.precompile. You passed " + input);
2139
- }
2140
-
2141
- options = options || {};
2142
- if (!('data' in options)) {
2143
- options.data = true;
2144
- }
2145
- var ast = Handlebars.parse(input);
2146
- var environment = new Compiler().compile(ast, options);
2147
- return new JavaScriptCompiler().compile(environment, options);
2148
- };
2149
-
2150
- Handlebars.compile = function(input, options) {
2151
- if (input == null || (typeof input !== 'string' && input.constructor !== Handlebars.AST.ProgramNode)) {
2152
- throw new Handlebars.Exception("You must pass a string or Handlebars AST to Handlebars.compile. You passed " + input);
2153
- }
2154
-
2155
- options = options || {};
2156
- if (!('data' in options)) {
2157
- options.data = true;
2158
- }
2159
- var compiled;
2160
- function compile() {
2161
- var ast = Handlebars.parse(input);
2162
- var environment = new Compiler().compile(ast, options);
2163
- var templateSpec = new JavaScriptCompiler().compile(environment, options, undefined, true);
2164
- return Handlebars.template(templateSpec);
2165
- }
2166
-
2167
- // Template is only compiled on first use and cached after that point.
2168
- return function(context, options) {
2169
- if (!compiled) {
2170
- compiled = compile();
2171
- }
2172
- return compiled.call(this, context, options);
2173
- };
2174
- };
2175
-
2176
- ;
2177
- // lib/handlebars/runtime.js
2178
-
2179
- Handlebars.VM = {
2180
- template: function(templateSpec) {
2181
- // Just add water
2182
- var container = {
2183
- escapeExpression: Handlebars.Utils.escapeExpression,
2184
- invokePartial: Handlebars.VM.invokePartial,
2185
- programs: [],
2186
- program: function(i, fn, data) {
2187
- var programWrapper = this.programs[i];
2188
- if(data) {
2189
- programWrapper = Handlebars.VM.program(i, fn, data);
2190
- } else if (!programWrapper) {
2191
- programWrapper = this.programs[i] = Handlebars.VM.program(i, fn);
2192
- }
2193
- return programWrapper;
2194
- },
2195
- merge: function(param, common) {
2196
- var ret = param || common;
2197
-
2198
- if (param && common) {
2199
- ret = {};
2200
- Handlebars.Utils.extend(ret, common);
2201
- Handlebars.Utils.extend(ret, param);
2202
- }
2203
- return ret;
2204
- },
2205
- programWithDepth: Handlebars.VM.programWithDepth,
2206
- noop: Handlebars.VM.noop,
2207
- compilerInfo: null
2208
- };
2209
-
2210
- return function(context, options) {
2211
- options = options || {};
2212
- var result = templateSpec.call(container, Handlebars, context, options.helpers, options.partials, options.data);
2213
-
2214
- var compilerInfo = container.compilerInfo || [],
2215
- compilerRevision = compilerInfo[0] || 1,
2216
- currentRevision = Handlebars.COMPILER_REVISION;
2217
-
2218
- if (compilerRevision !== currentRevision) {
2219
- if (compilerRevision < currentRevision) {
2220
- var runtimeVersions = Handlebars.REVISION_CHANGES[currentRevision],
2221
- compilerVersions = Handlebars.REVISION_CHANGES[compilerRevision];
2222
- throw "Template was precompiled with an older version of Handlebars than the current runtime. "+
2223
- "Please update your precompiler to a newer version ("+runtimeVersions+") or downgrade your runtime to an older version ("+compilerVersions+").";
2224
- } else {
2225
- // Use the embedded version info since the runtime doesn't know about this revision yet
2226
- throw "Template was precompiled with a newer version of Handlebars than the current runtime. "+
2227
- "Please update your runtime to a newer version ("+compilerInfo[1]+").";
2228
- }
2229
- }
2230
-
2231
- return result;
2232
- };
2233
- },
2234
-
2235
- programWithDepth: function(i, fn, data /*, $depth */) {
2236
- var args = Array.prototype.slice.call(arguments, 3);
2237
-
2238
- var program = function(context, options) {
2239
- options = options || {};
2240
-
2241
- return fn.apply(this, [context, options.data || data].concat(args));
2242
- };
2243
- program.program = i;
2244
- program.depth = args.length;
2245
- return program;
2246
- },
2247
- program: function(i, fn, data) {
2248
- var program = function(context, options) {
2249
- options = options || {};
2250
-
2251
- return fn(context, options.data || data);
2252
- };
2253
- program.program = i;
2254
- program.depth = 0;
2255
- return program;
2256
- },
2257
- noop: function() { return ""; },
2258
- invokePartial: function(partial, name, context, helpers, partials, data) {
2259
- var options = { helpers: helpers, partials: partials, data: data };
2260
-
2261
- if(partial === undefined) {
2262
- throw new Handlebars.Exception("The partial " + name + " could not be found");
2263
- } else if(partial instanceof Function) {
2264
- return partial(context, options);
2265
- } else if (!Handlebars.compile) {
2266
- throw new Handlebars.Exception("The partial " + name + " could not be compiled when running in runtime-only mode");
2267
- } else {
2268
- partials[name] = Handlebars.compile(partial, {data: data !== undefined});
2269
- return partials[name](context, options);
2270
- }
2271
- }
2272
- };
2273
-
2274
- Handlebars.template = Handlebars.VM.template;
2275
- ;
2276
- // lib/handlebars/browser-suffix.js
2277
- })(Handlebars);
2278
- ;