select_all-rails 0.3.1 → 0.3.2

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 (1874) hide show
  1. checksums.yaml +4 -4
  2. data/.travis.yml +17 -0
  3. data/README.md +1 -1
  4. data/lib/select_all/rails/version.rb +1 -1
  5. data/package.json +4 -4
  6. data/select_all-rails.gemspec +1 -1
  7. data/vendor/assets/javascripts/select_all.js +1 -1
  8. metadata +3 -1869
  9. data/node_modules/.bin/acorn +0 -71
  10. data/node_modules/.bin/escodegen +0 -77
  11. data/node_modules/.bin/esgenerate +0 -64
  12. data/node_modules/.bin/esparse +0 -126
  13. data/node_modules/.bin/esvalidate +0 -199
  14. data/node_modules/.bin/har-validator +0 -56
  15. data/node_modules/.bin/sshpk-conv +0 -201
  16. data/node_modules/.bin/sshpk-sign +0 -191
  17. data/node_modules/.bin/sshpk-verify +0 -166
  18. data/node_modules/.bin/uuid +0 -26
  19. data/node_modules/abab/CHANGELOG.md +0 -11
  20. data/node_modules/abab/README.md +0 -52
  21. data/node_modules/abab/index.js +0 -9
  22. data/node_modules/abab/lib/atob.js +0 -109
  23. data/node_modules/abab/lib/btoa.js +0 -65
  24. data/node_modules/abab/package.json +0 -106
  25. data/node_modules/acorn-globals/LICENSE +0 -19
  26. data/node_modules/acorn-globals/README.md +0 -76
  27. data/node_modules/acorn-globals/index.js +0 -180
  28. data/node_modules/acorn-globals/package.json +0 -100
  29. data/node_modules/acorn/.editorconfig +0 -7
  30. data/node_modules/acorn/.gitattributes +0 -1
  31. data/node_modules/acorn/.npmignore +0 -3
  32. data/node_modules/acorn/.tern-project +0 -6
  33. data/node_modules/acorn/.travis.yml +0 -6
  34. data/node_modules/acorn/AUTHORS +0 -43
  35. data/node_modules/acorn/LICENSE +0 -19
  36. data/node_modules/acorn/README.md +0 -396
  37. data/node_modules/acorn/bin/acorn +0 -71
  38. data/node_modules/acorn/bin/build-acorn.js +0 -82
  39. data/node_modules/acorn/bin/generate-identifier-regex.js +0 -47
  40. data/node_modules/acorn/bin/update_authors.sh +0 -6
  41. data/node_modules/acorn/dist/.keep +0 -0
  42. data/node_modules/acorn/dist/acorn.js +0 -3340
  43. data/node_modules/acorn/dist/acorn_loose.js +0 -1300
  44. data/node_modules/acorn/dist/walk.js +0 -377
  45. data/node_modules/acorn/package.json +0 -222
  46. data/node_modules/acorn/src/bin/acorn.js +0 -59
  47. data/node_modules/acorn/src/expression.js +0 -707
  48. data/node_modules/acorn/src/identifier.js +0 -90
  49. data/node_modules/acorn/src/index.js +0 -67
  50. data/node_modules/acorn/src/location.js +0 -24
  51. data/node_modules/acorn/src/locutil.js +0 -42
  52. data/node_modules/acorn/src/loose/acorn_loose.js +0 -0
  53. data/node_modules/acorn/src/loose/expression.js +0 -501
  54. data/node_modules/acorn/src/loose/index.js +0 -50
  55. data/node_modules/acorn/src/loose/parseutil.js +0 -1
  56. data/node_modules/acorn/src/loose/state.js +0 -160
  57. data/node_modules/acorn/src/loose/statement.js +0 -420
  58. data/node_modules/acorn/src/loose/tokenize.js +0 -108
  59. data/node_modules/acorn/src/lval.js +0 -215
  60. data/node_modules/acorn/src/node.js +0 -50
  61. data/node_modules/acorn/src/options.js +0 -121
  62. data/node_modules/acorn/src/parseutil.js +0 -102
  63. data/node_modules/acorn/src/state.js +0 -104
  64. data/node_modules/acorn/src/statement.js +0 -626
  65. data/node_modules/acorn/src/tokencontext.js +0 -109
  66. data/node_modules/acorn/src/tokenize.js +0 -682
  67. data/node_modules/acorn/src/tokentype.js +0 -147
  68. data/node_modules/acorn/src/util.js +0 -9
  69. data/node_modules/acorn/src/walk/index.js +0 -340
  70. data/node_modules/acorn/src/whitespace.js +0 -12
  71. data/node_modules/amdefine/LICENSE +0 -58
  72. data/node_modules/amdefine/README.md +0 -171
  73. data/node_modules/amdefine/amdefine.js +0 -301
  74. data/node_modules/amdefine/intercept.js +0 -36
  75. data/node_modules/amdefine/package.json +0 -86
  76. data/node_modules/ansi-regex/index.js +0 -4
  77. data/node_modules/ansi-regex/license +0 -21
  78. data/node_modules/ansi-regex/package.json +0 -121
  79. data/node_modules/ansi-regex/readme.md +0 -31
  80. data/node_modules/ansi-styles/index.js +0 -65
  81. data/node_modules/ansi-styles/license +0 -21
  82. data/node_modules/ansi-styles/package.json +0 -114
  83. data/node_modules/ansi-styles/readme.md +0 -86
  84. data/node_modules/array-equal/.npmignore +0 -1
  85. data/node_modules/array-equal/LICENSE +0 -22
  86. data/node_modules/array-equal/README.md +0 -11
  87. data/node_modules/array-equal/component.json +0 -10
  88. data/node_modules/array-equal/index.js +0 -9
  89. data/node_modules/array-equal/package.json +0 -75
  90. data/node_modules/asn1/.npmignore +0 -2
  91. data/node_modules/asn1/.travis.yml +0 -4
  92. data/node_modules/asn1/LICENSE +0 -19
  93. data/node_modules/asn1/README.md +0 -50
  94. data/node_modules/asn1/lib/ber/errors.js +0 -13
  95. data/node_modules/asn1/lib/ber/index.js +0 -27
  96. data/node_modules/asn1/lib/ber/reader.js +0 -261
  97. data/node_modules/asn1/lib/ber/types.js +0 -36
  98. data/node_modules/asn1/lib/ber/writer.js +0 -316
  99. data/node_modules/asn1/lib/index.js +0 -20
  100. data/node_modules/asn1/package.json +0 -98
  101. data/node_modules/asn1/tst/ber/reader.test.js +0 -208
  102. data/node_modules/asn1/tst/ber/writer.test.js +0 -370
  103. data/node_modules/assert-plus/AUTHORS +0 -6
  104. data/node_modules/assert-plus/CHANGES.md +0 -8
  105. data/node_modules/assert-plus/README.md +0 -155
  106. data/node_modules/assert-plus/assert.js +0 -206
  107. data/node_modules/assert-plus/package.json +0 -115
  108. data/node_modules/assertion-error/.npmignore +0 -11
  109. data/node_modules/assertion-error/History.md +0 -19
  110. data/node_modules/assertion-error/README.md +0 -41
  111. data/node_modules/assertion-error/index.js +0 -116
  112. data/node_modules/assertion-error/package.json +0 -95
  113. data/node_modules/asynckit/LICENSE +0 -21
  114. data/node_modules/asynckit/README.md +0 -233
  115. data/node_modules/asynckit/bench.js +0 -76
  116. data/node_modules/asynckit/index.js +0 -6
  117. data/node_modules/asynckit/lib/abort.js +0 -29
  118. data/node_modules/asynckit/lib/async.js +0 -34
  119. data/node_modules/asynckit/lib/defer.js +0 -26
  120. data/node_modules/asynckit/lib/iterate.js +0 -75
  121. data/node_modules/asynckit/lib/readable_asynckit.js +0 -91
  122. data/node_modules/asynckit/lib/readable_parallel.js +0 -25
  123. data/node_modules/asynckit/lib/readable_serial.js +0 -25
  124. data/node_modules/asynckit/lib/readable_serial_ordered.js +0 -29
  125. data/node_modules/asynckit/lib/state.js +0 -37
  126. data/node_modules/asynckit/lib/streamify.js +0 -141
  127. data/node_modules/asynckit/lib/terminator.js +0 -29
  128. data/node_modules/asynckit/package.json +0 -126
  129. data/node_modules/asynckit/parallel.js +0 -43
  130. data/node_modules/asynckit/serial.js +0 -17
  131. data/node_modules/asynckit/serialOrdered.js +0 -75
  132. data/node_modules/asynckit/stream.js +0 -21
  133. data/node_modules/aws-sign2/LICENSE +0 -55
  134. data/node_modules/aws-sign2/README.md +0 -4
  135. data/node_modules/aws-sign2/index.js +0 -212
  136. data/node_modules/aws-sign2/package.json +0 -81
  137. data/node_modules/aws4/.npmignore +0 -4
  138. data/node_modules/aws4/.tern-port +0 -1
  139. data/node_modules/aws4/.travis.yml +0 -5
  140. data/node_modules/aws4/LICENSE +0 -19
  141. data/node_modules/aws4/README.md +0 -523
  142. data/node_modules/aws4/aws4.js +0 -323
  143. data/node_modules/aws4/lru.js +0 -96
  144. data/node_modules/aws4/package.json +0 -140
  145. data/node_modules/bcrypt-pbkdf/README.md +0 -39
  146. data/node_modules/bcrypt-pbkdf/index.js +0 -559
  147. data/node_modules/bcrypt-pbkdf/package.json +0 -72
  148. data/node_modules/boom/.npmignore +0 -18
  149. data/node_modules/boom/.travis.yml +0 -8
  150. data/node_modules/boom/CONTRIBUTING.md +0 -1
  151. data/node_modules/boom/LICENSE +0 -28
  152. data/node_modules/boom/README.md +0 -652
  153. data/node_modules/boom/images/boom.png +0 -0
  154. data/node_modules/boom/lib/index.js +0 -318
  155. data/node_modules/boom/package.json +0 -98
  156. data/node_modules/boom/test/index.js +0 -654
  157. data/node_modules/caseless/LICENSE +0 -28
  158. data/node_modules/caseless/README.md +0 -45
  159. data/node_modules/caseless/index.js +0 -66
  160. data/node_modules/caseless/package.json +0 -96
  161. data/node_modules/caseless/test.js +0 -40
  162. data/node_modules/chai/.npmignore +0 -14
  163. data/node_modules/chai/CODE_OF_CONDUCT.md +0 -58
  164. data/node_modules/chai/CONTRIBUTING.md +0 -214
  165. data/node_modules/chai/History.md +0 -1059
  166. data/node_modules/chai/README.md +0 -83
  167. data/node_modules/chai/ReleaseNotes.md +0 -737
  168. data/node_modules/chai/bower.json +0 -26
  169. data/node_modules/chai/chai.js +0 -6142
  170. data/node_modules/chai/index.js +0 -1
  171. data/node_modules/chai/karma.conf.js +0 -28
  172. data/node_modules/chai/karma.sauce.js +0 -41
  173. data/node_modules/chai/lib/chai.js +0 -93
  174. data/node_modules/chai/lib/chai/assertion.js +0 -131
  175. data/node_modules/chai/lib/chai/config.js +0 -55
  176. data/node_modules/chai/lib/chai/core/assertions.js +0 -1860
  177. data/node_modules/chai/lib/chai/interface/assert.js +0 -1645
  178. data/node_modules/chai/lib/chai/interface/expect.js +0 -34
  179. data/node_modules/chai/lib/chai/interface/should.js +0 -201
  180. data/node_modules/chai/lib/chai/utils/addChainableMethod.js +0 -112
  181. data/node_modules/chai/lib/chai/utils/addMethod.js +0 -44
  182. data/node_modules/chai/lib/chai/utils/addProperty.js +0 -48
  183. data/node_modules/chai/lib/chai/utils/expectTypes.js +0 -42
  184. data/node_modules/chai/lib/chai/utils/flag.js +0 -33
  185. data/node_modules/chai/lib/chai/utils/getActual.js +0 -20
  186. data/node_modules/chai/lib/chai/utils/getEnumerableProperties.js +0 -26
  187. data/node_modules/chai/lib/chai/utils/getMessage.js +0 -51
  188. data/node_modules/chai/lib/chai/utils/getName.js +0 -22
  189. data/node_modules/chai/lib/chai/utils/getPathInfo.js +0 -111
  190. data/node_modules/chai/lib/chai/utils/getPathValue.js +0 -43
  191. data/node_modules/chai/lib/chai/utils/getProperties.js +0 -36
  192. data/node_modules/chai/lib/chai/utils/hasProperty.js +0 -64
  193. data/node_modules/chai/lib/chai/utils/index.js +0 -130
  194. data/node_modules/chai/lib/chai/utils/inspect.js +0 -335
  195. data/node_modules/chai/lib/chai/utils/objDisplay.js +0 -50
  196. data/node_modules/chai/lib/chai/utils/overwriteChainableMethod.js +0 -54
  197. data/node_modules/chai/lib/chai/utils/overwriteMethod.js +0 -52
  198. data/node_modules/chai/lib/chai/utils/overwriteProperty.js +0 -55
  199. data/node_modules/chai/lib/chai/utils/test.js +0 -28
  200. data/node_modules/chai/lib/chai/utils/transferFlags.js +0 -45
  201. data/node_modules/chai/package.json +0 -128
  202. data/node_modules/chai/sauce.browsers.js +0 -128
  203. data/node_modules/chalk/index.js +0 -116
  204. data/node_modules/chalk/license +0 -21
  205. data/node_modules/chalk/package.json +0 -140
  206. data/node_modules/chalk/readme.md +0 -213
  207. data/node_modules/combined-stream/License +0 -19
  208. data/node_modules/combined-stream/Readme.md +0 -138
  209. data/node_modules/combined-stream/lib/combined_stream.js +0 -188
  210. data/node_modules/combined-stream/package.json +0 -101
  211. data/node_modules/commander/History.md +0 -261
  212. data/node_modules/commander/LICENSE +0 -22
  213. data/node_modules/commander/Readme.md +0 -351
  214. data/node_modules/commander/index.js +0 -1110
  215. data/node_modules/commander/package.json +0 -104
  216. data/node_modules/content-type-parser/LICENSE.txt +0 -19
  217. data/node_modules/content-type-parser/README.md +0 -60
  218. data/node_modules/content-type-parser/lib/content-type-parser.js +0 -103
  219. data/node_modules/content-type-parser/package.json +0 -96
  220. data/node_modules/cryptiles/.npmignore +0 -18
  221. data/node_modules/cryptiles/.travis.yml +0 -8
  222. data/node_modules/cryptiles/LICENSE +0 -28
  223. data/node_modules/cryptiles/README.md +0 -16
  224. data/node_modules/cryptiles/lib/index.js +0 -68
  225. data/node_modules/cryptiles/package.json +0 -94
  226. data/node_modules/cryptiles/test/index.js +0 -102
  227. data/node_modules/cssom/LICENSE.txt +0 -20
  228. data/node_modules/cssom/README.mdown +0 -69
  229. data/node_modules/cssom/lib/CSSDocumentRule.js +0 -39
  230. data/node_modules/cssom/lib/CSSFontFaceRule.js +0 -36
  231. data/node_modules/cssom/lib/CSSImportRule.js +0 -132
  232. data/node_modules/cssom/lib/CSSKeyframeRule.js +0 -37
  233. data/node_modules/cssom/lib/CSSKeyframesRule.js +0 -39
  234. data/node_modules/cssom/lib/CSSMediaRule.js +0 -41
  235. data/node_modules/cssom/lib/CSSRule.js +0 -43
  236. data/node_modules/cssom/lib/CSSStyleDeclaration.js +0 -148
  237. data/node_modules/cssom/lib/CSSStyleRule.js +0 -190
  238. data/node_modules/cssom/lib/CSSStyleSheet.js +0 -88
  239. data/node_modules/cssom/lib/CSSValue.js +0 -43
  240. data/node_modules/cssom/lib/CSSValueExpression.js +0 -344
  241. data/node_modules/cssom/lib/MatcherList.js +0 -62
  242. data/node_modules/cssom/lib/MediaList.js +0 -61
  243. data/node_modules/cssom/lib/StyleSheet.js +0 -17
  244. data/node_modules/cssom/lib/clone.js +0 -76
  245. data/node_modules/cssom/lib/index.js +0 -19
  246. data/node_modules/cssom/lib/parse.js +0 -381
  247. data/node_modules/cssom/package.json +0 -96
  248. data/node_modules/cssstyle/.npmignore +0 -1
  249. data/node_modules/cssstyle/MIT-LICENSE.txt +0 -20
  250. data/node_modules/cssstyle/README.md +0 -27
  251. data/node_modules/cssstyle/lib/CSSStyleDeclaration.js +0 -233
  252. data/node_modules/cssstyle/lib/parsers.js +0 -670
  253. data/node_modules/cssstyle/lib/properties.js +0 -5858
  254. data/node_modules/cssstyle/lib/properties/alignmentBaseline.js +0 -12
  255. data/node_modules/cssstyle/lib/properties/azimuth.js +0 -65
  256. data/node_modules/cssstyle/lib/properties/background.js +0 -24
  257. data/node_modules/cssstyle/lib/properties/backgroundAttachment.js +0 -22
  258. data/node_modules/cssstyle/lib/properties/backgroundClip.js +0 -12
  259. data/node_modules/cssstyle/lib/properties/backgroundColor.js +0 -33
  260. data/node_modules/cssstyle/lib/properties/backgroundImage.js +0 -29
  261. data/node_modules/cssstyle/lib/properties/backgroundOrigin.js +0 -12
  262. data/node_modules/cssstyle/lib/properties/backgroundPosition.js +0 -56
  263. data/node_modules/cssstyle/lib/properties/backgroundPositionX.js +0 -12
  264. data/node_modules/cssstyle/lib/properties/backgroundPositionY.js +0 -12
  265. data/node_modules/cssstyle/lib/properties/backgroundRepeat.js +0 -25
  266. data/node_modules/cssstyle/lib/properties/backgroundRepeatX.js +0 -12
  267. data/node_modules/cssstyle/lib/properties/backgroundRepeatY.js +0 -12
  268. data/node_modules/cssstyle/lib/properties/backgroundSize.js +0 -12
  269. data/node_modules/cssstyle/lib/properties/baselineShift.js +0 -12
  270. data/node_modules/cssstyle/lib/properties/border.js +0 -49
  271. data/node_modules/cssstyle/lib/properties/borderBottom.js +0 -23
  272. data/node_modules/cssstyle/lib/properties/borderBottomColor.js +0 -16
  273. data/node_modules/cssstyle/lib/properties/borderBottomLeftRadius.js +0 -12
  274. data/node_modules/cssstyle/lib/properties/borderBottomRightRadius.js +0 -12
  275. data/node_modules/cssstyle/lib/properties/borderBottomStyle.js +0 -21
  276. data/node_modules/cssstyle/lib/properties/borderBottomWidth.js +0 -16
  277. data/node_modules/cssstyle/lib/properties/borderCollapse.js +0 -25
  278. data/node_modules/cssstyle/lib/properties/borderColor.js +0 -28
  279. data/node_modules/cssstyle/lib/properties/borderImage.js +0 -12
  280. data/node_modules/cssstyle/lib/properties/borderImageOutset.js +0 -12
  281. data/node_modules/cssstyle/lib/properties/borderImageRepeat.js +0 -12
  282. data/node_modules/cssstyle/lib/properties/borderImageSlice.js +0 -12
  283. data/node_modules/cssstyle/lib/properties/borderImageSource.js +0 -12
  284. data/node_modules/cssstyle/lib/properties/borderImageWidth.js +0 -12
  285. data/node_modules/cssstyle/lib/properties/borderLeft.js +0 -23
  286. data/node_modules/cssstyle/lib/properties/borderLeftColor.js +0 -16
  287. data/node_modules/cssstyle/lib/properties/borderLeftStyle.js +0 -21
  288. data/node_modules/cssstyle/lib/properties/borderLeftWidth.js +0 -16
  289. data/node_modules/cssstyle/lib/properties/borderRadius.js +0 -12
  290. data/node_modules/cssstyle/lib/properties/borderRight.js +0 -23
  291. data/node_modules/cssstyle/lib/properties/borderRightColor.js +0 -16
  292. data/node_modules/cssstyle/lib/properties/borderRightStyle.js +0 -21
  293. data/node_modules/cssstyle/lib/properties/borderRightWidth.js +0 -16
  294. data/node_modules/cssstyle/lib/properties/borderSpacing.js +0 -42
  295. data/node_modules/cssstyle/lib/properties/borderStyle.js +0 -27
  296. data/node_modules/cssstyle/lib/properties/borderTop.js +0 -22
  297. data/node_modules/cssstyle/lib/properties/borderTopColor.js +0 -16
  298. data/node_modules/cssstyle/lib/properties/borderTopLeftRadius.js +0 -12
  299. data/node_modules/cssstyle/lib/properties/borderTopRightRadius.js +0 -12
  300. data/node_modules/cssstyle/lib/properties/borderTopStyle.js +0 -21
  301. data/node_modules/cssstyle/lib/properties/borderTopWidth.js +0 -17
  302. data/node_modules/cssstyle/lib/properties/borderWidth.js +0 -47
  303. data/node_modules/cssstyle/lib/properties/bottom.js +0 -14
  304. data/node_modules/cssstyle/lib/properties/boxShadow.js +0 -12
  305. data/node_modules/cssstyle/lib/properties/boxSizing.js +0 -12
  306. data/node_modules/cssstyle/lib/properties/captionSide.js +0 -12
  307. data/node_modules/cssstyle/lib/properties/clear.js +0 -16
  308. data/node_modules/cssstyle/lib/properties/clip.js +0 -49
  309. data/node_modules/cssstyle/lib/properties/color.js +0 -14
  310. data/node_modules/cssstyle/lib/properties/colorInterpolation.js +0 -12
  311. data/node_modules/cssstyle/lib/properties/colorInterpolationFilters.js +0 -12
  312. data/node_modules/cssstyle/lib/properties/colorProfile.js +0 -12
  313. data/node_modules/cssstyle/lib/properties/colorRendering.js +0 -12
  314. data/node_modules/cssstyle/lib/properties/content.js +0 -12
  315. data/node_modules/cssstyle/lib/properties/counterIncrement.js +0 -12
  316. data/node_modules/cssstyle/lib/properties/counterReset.js +0 -12
  317. data/node_modules/cssstyle/lib/properties/cssFloat.js +0 -12
  318. data/node_modules/cssstyle/lib/properties/cue.js +0 -12
  319. data/node_modules/cssstyle/lib/properties/cueAfter.js +0 -12
  320. data/node_modules/cssstyle/lib/properties/cueBefore.js +0 -12
  321. data/node_modules/cssstyle/lib/properties/cursor.js +0 -12
  322. data/node_modules/cssstyle/lib/properties/direction.js +0 -12
  323. data/node_modules/cssstyle/lib/properties/display.js +0 -12
  324. data/node_modules/cssstyle/lib/properties/dominantBaseline.js +0 -12
  325. data/node_modules/cssstyle/lib/properties/elevation.js +0 -12
  326. data/node_modules/cssstyle/lib/properties/emptyCells.js +0 -12
  327. data/node_modules/cssstyle/lib/properties/enableBackground.js +0 -12
  328. data/node_modules/cssstyle/lib/properties/fill.js +0 -12
  329. data/node_modules/cssstyle/lib/properties/fillOpacity.js +0 -12
  330. data/node_modules/cssstyle/lib/properties/fillRule.js +0 -12
  331. data/node_modules/cssstyle/lib/properties/filter.js +0 -12
  332. data/node_modules/cssstyle/lib/properties/floodColor.js +0 -14
  333. data/node_modules/cssstyle/lib/properties/floodOpacity.js +0 -12
  334. data/node_modules/cssstyle/lib/properties/font.js +0 -40
  335. data/node_modules/cssstyle/lib/properties/fontFamily.js +0 -33
  336. data/node_modules/cssstyle/lib/properties/fontSize.js +0 -25
  337. data/node_modules/cssstyle/lib/properties/fontSizeAdjust.js +0 -12
  338. data/node_modules/cssstyle/lib/properties/fontStretch.js +0 -12
  339. data/node_modules/cssstyle/lib/properties/fontStyle.js +0 -18
  340. data/node_modules/cssstyle/lib/properties/fontVariant.js +0 -18
  341. data/node_modules/cssstyle/lib/properties/fontWeight.js +0 -18
  342. data/node_modules/cssstyle/lib/properties/glyphOrientationHorizontal.js +0 -12
  343. data/node_modules/cssstyle/lib/properties/glyphOrientationVertical.js +0 -12
  344. data/node_modules/cssstyle/lib/properties/height.js +0 -24
  345. data/node_modules/cssstyle/lib/properties/imageRendering.js +0 -12
  346. data/node_modules/cssstyle/lib/properties/kerning.js +0 -12
  347. data/node_modules/cssstyle/lib/properties/left.js +0 -14
  348. data/node_modules/cssstyle/lib/properties/letterSpacing.js +0 -12
  349. data/node_modules/cssstyle/lib/properties/lightingColor.js +0 -14
  350. data/node_modules/cssstyle/lib/properties/lineHeight.js +0 -21
  351. data/node_modules/cssstyle/lib/properties/listStyle.js +0 -12
  352. data/node_modules/cssstyle/lib/properties/listStyleImage.js +0 -12
  353. data/node_modules/cssstyle/lib/properties/listStylePosition.js +0 -12
  354. data/node_modules/cssstyle/lib/properties/listStyleType.js +0 -12
  355. data/node_modules/cssstyle/lib/properties/margin.js +0 -59
  356. data/node_modules/cssstyle/lib/properties/marginBottom.js +0 -13
  357. data/node_modules/cssstyle/lib/properties/marginLeft.js +0 -13
  358. data/node_modules/cssstyle/lib/properties/marginRight.js +0 -13
  359. data/node_modules/cssstyle/lib/properties/marginTop.js +0 -13
  360. data/node_modules/cssstyle/lib/properties/marker.js +0 -12
  361. data/node_modules/cssstyle/lib/properties/markerEnd.js +0 -12
  362. data/node_modules/cssstyle/lib/properties/markerMid.js +0 -12
  363. data/node_modules/cssstyle/lib/properties/markerOffset.js +0 -12
  364. data/node_modules/cssstyle/lib/properties/markerStart.js +0 -12
  365. data/node_modules/cssstyle/lib/properties/marks.js +0 -12
  366. data/node_modules/cssstyle/lib/properties/mask.js +0 -12
  367. data/node_modules/cssstyle/lib/properties/maxHeight.js +0 -12
  368. data/node_modules/cssstyle/lib/properties/maxWidth.js +0 -12
  369. data/node_modules/cssstyle/lib/properties/minHeight.js +0 -12
  370. data/node_modules/cssstyle/lib/properties/minWidth.js +0 -12
  371. data/node_modules/cssstyle/lib/properties/opacity.js +0 -14
  372. data/node_modules/cssstyle/lib/properties/orphans.js +0 -12
  373. data/node_modules/cssstyle/lib/properties/outline.js +0 -12
  374. data/node_modules/cssstyle/lib/properties/outlineColor.js +0 -14
  375. data/node_modules/cssstyle/lib/properties/outlineOffset.js +0 -12
  376. data/node_modules/cssstyle/lib/properties/outlineStyle.js +0 -12
  377. data/node_modules/cssstyle/lib/properties/outlineWidth.js +0 -12
  378. data/node_modules/cssstyle/lib/properties/overflow.js +0 -12
  379. data/node_modules/cssstyle/lib/properties/overflowX.js +0 -12
  380. data/node_modules/cssstyle/lib/properties/overflowY.js +0 -12
  381. data/node_modules/cssstyle/lib/properties/padding.js +0 -52
  382. data/node_modules/cssstyle/lib/properties/paddingBottom.js +0 -13
  383. data/node_modules/cssstyle/lib/properties/paddingLeft.js +0 -13
  384. data/node_modules/cssstyle/lib/properties/paddingRight.js +0 -13
  385. data/node_modules/cssstyle/lib/properties/paddingTop.js +0 -13
  386. data/node_modules/cssstyle/lib/properties/page.js +0 -12
  387. data/node_modules/cssstyle/lib/properties/pageBreakAfter.js +0 -12
  388. data/node_modules/cssstyle/lib/properties/pageBreakBefore.js +0 -12
  389. data/node_modules/cssstyle/lib/properties/pageBreakInside.js +0 -12
  390. data/node_modules/cssstyle/lib/properties/pause.js +0 -12
  391. data/node_modules/cssstyle/lib/properties/pauseAfter.js +0 -12
  392. data/node_modules/cssstyle/lib/properties/pauseBefore.js +0 -12
  393. data/node_modules/cssstyle/lib/properties/pitch.js +0 -12
  394. data/node_modules/cssstyle/lib/properties/pitchRange.js +0 -12
  395. data/node_modules/cssstyle/lib/properties/playDuring.js +0 -12
  396. data/node_modules/cssstyle/lib/properties/pointerEvents.js +0 -12
  397. data/node_modules/cssstyle/lib/properties/position.js +0 -12
  398. data/node_modules/cssstyle/lib/properties/quotes.js +0 -12
  399. data/node_modules/cssstyle/lib/properties/resize.js +0 -12
  400. data/node_modules/cssstyle/lib/properties/richness.js +0 -12
  401. data/node_modules/cssstyle/lib/properties/right.js +0 -14
  402. data/node_modules/cssstyle/lib/properties/shapeRendering.js +0 -12
  403. data/node_modules/cssstyle/lib/properties/size.js +0 -12
  404. data/node_modules/cssstyle/lib/properties/speak.js +0 -12
  405. data/node_modules/cssstyle/lib/properties/speakHeader.js +0 -12
  406. data/node_modules/cssstyle/lib/properties/speakNumeral.js +0 -12
  407. data/node_modules/cssstyle/lib/properties/speakPunctuation.js +0 -12
  408. data/node_modules/cssstyle/lib/properties/speechRate.js +0 -12
  409. data/node_modules/cssstyle/lib/properties/src.js +0 -12
  410. data/node_modules/cssstyle/lib/properties/stopColor.js +0 -14
  411. data/node_modules/cssstyle/lib/properties/stopOpacity.js +0 -12
  412. data/node_modules/cssstyle/lib/properties/stress.js +0 -12
  413. data/node_modules/cssstyle/lib/properties/stroke.js +0 -12
  414. data/node_modules/cssstyle/lib/properties/strokeDasharray.js +0 -12
  415. data/node_modules/cssstyle/lib/properties/strokeDashoffset.js +0 -12
  416. data/node_modules/cssstyle/lib/properties/strokeLinecap.js +0 -12
  417. data/node_modules/cssstyle/lib/properties/strokeLinejoin.js +0 -12
  418. data/node_modules/cssstyle/lib/properties/strokeMiterlimit.js +0 -12
  419. data/node_modules/cssstyle/lib/properties/strokeOpacity.js +0 -12
  420. data/node_modules/cssstyle/lib/properties/strokeWidth.js +0 -12
  421. data/node_modules/cssstyle/lib/properties/tableLayout.js +0 -12
  422. data/node_modules/cssstyle/lib/properties/textAlign.js +0 -12
  423. data/node_modules/cssstyle/lib/properties/textAnchor.js +0 -12
  424. data/node_modules/cssstyle/lib/properties/textDecoration.js +0 -12
  425. data/node_modules/cssstyle/lib/properties/textIndent.js +0 -12
  426. data/node_modules/cssstyle/lib/properties/textLineThrough.js +0 -12
  427. data/node_modules/cssstyle/lib/properties/textLineThroughColor.js +0 -14
  428. data/node_modules/cssstyle/lib/properties/textLineThroughMode.js +0 -12
  429. data/node_modules/cssstyle/lib/properties/textLineThroughStyle.js +0 -12
  430. data/node_modules/cssstyle/lib/properties/textLineThroughWidth.js +0 -12
  431. data/node_modules/cssstyle/lib/properties/textOverflow.js +0 -12
  432. data/node_modules/cssstyle/lib/properties/textOverline.js +0 -12
  433. data/node_modules/cssstyle/lib/properties/textOverlineColor.js +0 -14
  434. data/node_modules/cssstyle/lib/properties/textOverlineMode.js +0 -12
  435. data/node_modules/cssstyle/lib/properties/textOverlineStyle.js +0 -12
  436. data/node_modules/cssstyle/lib/properties/textOverlineWidth.js +0 -12
  437. data/node_modules/cssstyle/lib/properties/textRendering.js +0 -12
  438. data/node_modules/cssstyle/lib/properties/textShadow.js +0 -12
  439. data/node_modules/cssstyle/lib/properties/textTransform.js +0 -12
  440. data/node_modules/cssstyle/lib/properties/textUnderline.js +0 -12
  441. data/node_modules/cssstyle/lib/properties/textUnderlineColor.js +0 -14
  442. data/node_modules/cssstyle/lib/properties/textUnderlineMode.js +0 -12
  443. data/node_modules/cssstyle/lib/properties/textUnderlineStyle.js +0 -12
  444. data/node_modules/cssstyle/lib/properties/textUnderlineWidth.js +0 -12
  445. data/node_modules/cssstyle/lib/properties/top.js +0 -14
  446. data/node_modules/cssstyle/lib/properties/unicodeBidi.js +0 -12
  447. data/node_modules/cssstyle/lib/properties/unicodeRange.js +0 -12
  448. data/node_modules/cssstyle/lib/properties/vectorEffect.js +0 -12
  449. data/node_modules/cssstyle/lib/properties/verticalAlign.js +0 -12
  450. data/node_modules/cssstyle/lib/properties/visibility.js +0 -12
  451. data/node_modules/cssstyle/lib/properties/voiceFamily.js +0 -12
  452. data/node_modules/cssstyle/lib/properties/volume.js +0 -12
  453. data/node_modules/cssstyle/lib/properties/webkitAnimation.js +0 -12
  454. data/node_modules/cssstyle/lib/properties/webkitAnimationDelay.js +0 -12
  455. data/node_modules/cssstyle/lib/properties/webkitAnimationDirection.js +0 -12
  456. data/node_modules/cssstyle/lib/properties/webkitAnimationDuration.js +0 -12
  457. data/node_modules/cssstyle/lib/properties/webkitAnimationFillMode.js +0 -12
  458. data/node_modules/cssstyle/lib/properties/webkitAnimationIterationCount.js +0 -12
  459. data/node_modules/cssstyle/lib/properties/webkitAnimationName.js +0 -12
  460. data/node_modules/cssstyle/lib/properties/webkitAnimationPlayState.js +0 -12
  461. data/node_modules/cssstyle/lib/properties/webkitAnimationTimingFunction.js +0 -12
  462. data/node_modules/cssstyle/lib/properties/webkitAppearance.js +0 -12
  463. data/node_modules/cssstyle/lib/properties/webkitAspectRatio.js +0 -12
  464. data/node_modules/cssstyle/lib/properties/webkitBackfaceVisibility.js +0 -12
  465. data/node_modules/cssstyle/lib/properties/webkitBackgroundClip.js +0 -12
  466. data/node_modules/cssstyle/lib/properties/webkitBackgroundComposite.js +0 -12
  467. data/node_modules/cssstyle/lib/properties/webkitBackgroundOrigin.js +0 -12
  468. data/node_modules/cssstyle/lib/properties/webkitBackgroundSize.js +0 -12
  469. data/node_modules/cssstyle/lib/properties/webkitBorderAfter.js +0 -12
  470. data/node_modules/cssstyle/lib/properties/webkitBorderAfterColor.js +0 -14
  471. data/node_modules/cssstyle/lib/properties/webkitBorderAfterStyle.js +0 -12
  472. data/node_modules/cssstyle/lib/properties/webkitBorderAfterWidth.js +0 -12
  473. data/node_modules/cssstyle/lib/properties/webkitBorderBefore.js +0 -12
  474. data/node_modules/cssstyle/lib/properties/webkitBorderBeforeColor.js +0 -14
  475. data/node_modules/cssstyle/lib/properties/webkitBorderBeforeStyle.js +0 -12
  476. data/node_modules/cssstyle/lib/properties/webkitBorderBeforeWidth.js +0 -12
  477. data/node_modules/cssstyle/lib/properties/webkitBorderEnd.js +0 -12
  478. data/node_modules/cssstyle/lib/properties/webkitBorderEndColor.js +0 -14
  479. data/node_modules/cssstyle/lib/properties/webkitBorderEndStyle.js +0 -12
  480. data/node_modules/cssstyle/lib/properties/webkitBorderEndWidth.js +0 -12
  481. data/node_modules/cssstyle/lib/properties/webkitBorderFit.js +0 -12
  482. data/node_modules/cssstyle/lib/properties/webkitBorderHorizontalSpacing.js +0 -12
  483. data/node_modules/cssstyle/lib/properties/webkitBorderImage.js +0 -12
  484. data/node_modules/cssstyle/lib/properties/webkitBorderRadius.js +0 -12
  485. data/node_modules/cssstyle/lib/properties/webkitBorderStart.js +0 -12
  486. data/node_modules/cssstyle/lib/properties/webkitBorderStartColor.js +0 -14
  487. data/node_modules/cssstyle/lib/properties/webkitBorderStartStyle.js +0 -12
  488. data/node_modules/cssstyle/lib/properties/webkitBorderStartWidth.js +0 -12
  489. data/node_modules/cssstyle/lib/properties/webkitBorderVerticalSpacing.js +0 -12
  490. data/node_modules/cssstyle/lib/properties/webkitBoxAlign.js +0 -12
  491. data/node_modules/cssstyle/lib/properties/webkitBoxDirection.js +0 -12
  492. data/node_modules/cssstyle/lib/properties/webkitBoxFlex.js +0 -12
  493. data/node_modules/cssstyle/lib/properties/webkitBoxFlexGroup.js +0 -12
  494. data/node_modules/cssstyle/lib/properties/webkitBoxLines.js +0 -12
  495. data/node_modules/cssstyle/lib/properties/webkitBoxOrdinalGroup.js +0 -12
  496. data/node_modules/cssstyle/lib/properties/webkitBoxOrient.js +0 -12
  497. data/node_modules/cssstyle/lib/properties/webkitBoxPack.js +0 -12
  498. data/node_modules/cssstyle/lib/properties/webkitBoxReflect.js +0 -12
  499. data/node_modules/cssstyle/lib/properties/webkitBoxShadow.js +0 -12
  500. data/node_modules/cssstyle/lib/properties/webkitColorCorrection.js +0 -12
  501. data/node_modules/cssstyle/lib/properties/webkitColumnAxis.js +0 -12
  502. data/node_modules/cssstyle/lib/properties/webkitColumnBreakAfter.js +0 -12
  503. data/node_modules/cssstyle/lib/properties/webkitColumnBreakBefore.js +0 -12
  504. data/node_modules/cssstyle/lib/properties/webkitColumnBreakInside.js +0 -12
  505. data/node_modules/cssstyle/lib/properties/webkitColumnCount.js +0 -12
  506. data/node_modules/cssstyle/lib/properties/webkitColumnGap.js +0 -12
  507. data/node_modules/cssstyle/lib/properties/webkitColumnRule.js +0 -12
  508. data/node_modules/cssstyle/lib/properties/webkitColumnRuleColor.js +0 -14
  509. data/node_modules/cssstyle/lib/properties/webkitColumnRuleStyle.js +0 -12
  510. data/node_modules/cssstyle/lib/properties/webkitColumnRuleWidth.js +0 -12
  511. data/node_modules/cssstyle/lib/properties/webkitColumnSpan.js +0 -12
  512. data/node_modules/cssstyle/lib/properties/webkitColumnWidth.js +0 -12
  513. data/node_modules/cssstyle/lib/properties/webkitColumns.js +0 -12
  514. data/node_modules/cssstyle/lib/properties/webkitFilter.js +0 -12
  515. data/node_modules/cssstyle/lib/properties/webkitFlexAlign.js +0 -12
  516. data/node_modules/cssstyle/lib/properties/webkitFlexDirection.js +0 -12
  517. data/node_modules/cssstyle/lib/properties/webkitFlexFlow.js +0 -12
  518. data/node_modules/cssstyle/lib/properties/webkitFlexItemAlign.js +0 -12
  519. data/node_modules/cssstyle/lib/properties/webkitFlexLinePack.js +0 -12
  520. data/node_modules/cssstyle/lib/properties/webkitFlexOrder.js +0 -12
  521. data/node_modules/cssstyle/lib/properties/webkitFlexPack.js +0 -12
  522. data/node_modules/cssstyle/lib/properties/webkitFlexWrap.js +0 -12
  523. data/node_modules/cssstyle/lib/properties/webkitFlowFrom.js +0 -12
  524. data/node_modules/cssstyle/lib/properties/webkitFlowInto.js +0 -12
  525. data/node_modules/cssstyle/lib/properties/webkitFontFeatureSettings.js +0 -12
  526. data/node_modules/cssstyle/lib/properties/webkitFontKerning.js +0 -12
  527. data/node_modules/cssstyle/lib/properties/webkitFontSizeDelta.js +0 -12
  528. data/node_modules/cssstyle/lib/properties/webkitFontSmoothing.js +0 -12
  529. data/node_modules/cssstyle/lib/properties/webkitFontVariantLigatures.js +0 -12
  530. data/node_modules/cssstyle/lib/properties/webkitHighlight.js +0 -12
  531. data/node_modules/cssstyle/lib/properties/webkitHyphenateCharacter.js +0 -12
  532. data/node_modules/cssstyle/lib/properties/webkitHyphenateLimitAfter.js +0 -12
  533. data/node_modules/cssstyle/lib/properties/webkitHyphenateLimitBefore.js +0 -12
  534. data/node_modules/cssstyle/lib/properties/webkitHyphenateLimitLines.js +0 -12
  535. data/node_modules/cssstyle/lib/properties/webkitHyphens.js +0 -12
  536. data/node_modules/cssstyle/lib/properties/webkitLineAlign.js +0 -12
  537. data/node_modules/cssstyle/lib/properties/webkitLineBoxContain.js +0 -12
  538. data/node_modules/cssstyle/lib/properties/webkitLineBreak.js +0 -12
  539. data/node_modules/cssstyle/lib/properties/webkitLineClamp.js +0 -12
  540. data/node_modules/cssstyle/lib/properties/webkitLineGrid.js +0 -12
  541. data/node_modules/cssstyle/lib/properties/webkitLineSnap.js +0 -12
  542. data/node_modules/cssstyle/lib/properties/webkitLocale.js +0 -12
  543. data/node_modules/cssstyle/lib/properties/webkitLogicalHeight.js +0 -12
  544. data/node_modules/cssstyle/lib/properties/webkitLogicalWidth.js +0 -12
  545. data/node_modules/cssstyle/lib/properties/webkitMarginAfter.js +0 -12
  546. data/node_modules/cssstyle/lib/properties/webkitMarginAfterCollapse.js +0 -12
  547. data/node_modules/cssstyle/lib/properties/webkitMarginBefore.js +0 -12
  548. data/node_modules/cssstyle/lib/properties/webkitMarginBeforeCollapse.js +0 -12
  549. data/node_modules/cssstyle/lib/properties/webkitMarginBottomCollapse.js +0 -12
  550. data/node_modules/cssstyle/lib/properties/webkitMarginCollapse.js +0 -12
  551. data/node_modules/cssstyle/lib/properties/webkitMarginEnd.js +0 -12
  552. data/node_modules/cssstyle/lib/properties/webkitMarginStart.js +0 -12
  553. data/node_modules/cssstyle/lib/properties/webkitMarginTopCollapse.js +0 -12
  554. data/node_modules/cssstyle/lib/properties/webkitMarquee.js +0 -12
  555. data/node_modules/cssstyle/lib/properties/webkitMarqueeDirection.js +0 -12
  556. data/node_modules/cssstyle/lib/properties/webkitMarqueeIncrement.js +0 -12
  557. data/node_modules/cssstyle/lib/properties/webkitMarqueeRepetition.js +0 -12
  558. data/node_modules/cssstyle/lib/properties/webkitMarqueeSpeed.js +0 -12
  559. data/node_modules/cssstyle/lib/properties/webkitMarqueeStyle.js +0 -12
  560. data/node_modules/cssstyle/lib/properties/webkitMask.js +0 -12
  561. data/node_modules/cssstyle/lib/properties/webkitMaskAttachment.js +0 -12
  562. data/node_modules/cssstyle/lib/properties/webkitMaskBoxImage.js +0 -12
  563. data/node_modules/cssstyle/lib/properties/webkitMaskBoxImageOutset.js +0 -12
  564. data/node_modules/cssstyle/lib/properties/webkitMaskBoxImageRepeat.js +0 -12
  565. data/node_modules/cssstyle/lib/properties/webkitMaskBoxImageSlice.js +0 -12
  566. data/node_modules/cssstyle/lib/properties/webkitMaskBoxImageSource.js +0 -12
  567. data/node_modules/cssstyle/lib/properties/webkitMaskBoxImageWidth.js +0 -12
  568. data/node_modules/cssstyle/lib/properties/webkitMaskClip.js +0 -12
  569. data/node_modules/cssstyle/lib/properties/webkitMaskComposite.js +0 -12
  570. data/node_modules/cssstyle/lib/properties/webkitMaskImage.js +0 -12
  571. data/node_modules/cssstyle/lib/properties/webkitMaskOrigin.js +0 -12
  572. data/node_modules/cssstyle/lib/properties/webkitMaskPosition.js +0 -12
  573. data/node_modules/cssstyle/lib/properties/webkitMaskPositionX.js +0 -12
  574. data/node_modules/cssstyle/lib/properties/webkitMaskPositionY.js +0 -12
  575. data/node_modules/cssstyle/lib/properties/webkitMaskRepeat.js +0 -12
  576. data/node_modules/cssstyle/lib/properties/webkitMaskRepeatX.js +0 -12
  577. data/node_modules/cssstyle/lib/properties/webkitMaskRepeatY.js +0 -12
  578. data/node_modules/cssstyle/lib/properties/webkitMaskSize.js +0 -12
  579. data/node_modules/cssstyle/lib/properties/webkitMatchNearestMailBlockquoteColor.js +0 -14
  580. data/node_modules/cssstyle/lib/properties/webkitMaxLogicalHeight.js +0 -12
  581. data/node_modules/cssstyle/lib/properties/webkitMaxLogicalWidth.js +0 -12
  582. data/node_modules/cssstyle/lib/properties/webkitMinLogicalHeight.js +0 -12
  583. data/node_modules/cssstyle/lib/properties/webkitMinLogicalWidth.js +0 -12
  584. data/node_modules/cssstyle/lib/properties/webkitNbspMode.js +0 -12
  585. data/node_modules/cssstyle/lib/properties/webkitOverflowScrolling.js +0 -12
  586. data/node_modules/cssstyle/lib/properties/webkitPaddingAfter.js +0 -12
  587. data/node_modules/cssstyle/lib/properties/webkitPaddingBefore.js +0 -12
  588. data/node_modules/cssstyle/lib/properties/webkitPaddingEnd.js +0 -12
  589. data/node_modules/cssstyle/lib/properties/webkitPaddingStart.js +0 -12
  590. data/node_modules/cssstyle/lib/properties/webkitPerspective.js +0 -12
  591. data/node_modules/cssstyle/lib/properties/webkitPerspectiveOrigin.js +0 -12
  592. data/node_modules/cssstyle/lib/properties/webkitPerspectiveOriginX.js +0 -12
  593. data/node_modules/cssstyle/lib/properties/webkitPerspectiveOriginY.js +0 -12
  594. data/node_modules/cssstyle/lib/properties/webkitPrintColorAdjust.js +0 -12
  595. data/node_modules/cssstyle/lib/properties/webkitRegionBreakAfter.js +0 -12
  596. data/node_modules/cssstyle/lib/properties/webkitRegionBreakBefore.js +0 -12
  597. data/node_modules/cssstyle/lib/properties/webkitRegionBreakInside.js +0 -12
  598. data/node_modules/cssstyle/lib/properties/webkitRegionOverflow.js +0 -12
  599. data/node_modules/cssstyle/lib/properties/webkitRtlOrdering.js +0 -12
  600. data/node_modules/cssstyle/lib/properties/webkitSvgShadow.js +0 -12
  601. data/node_modules/cssstyle/lib/properties/webkitTapHighlightColor.js +0 -14
  602. data/node_modules/cssstyle/lib/properties/webkitTextCombine.js +0 -12
  603. data/node_modules/cssstyle/lib/properties/webkitTextDecorationsInEffect.js +0 -12
  604. data/node_modules/cssstyle/lib/properties/webkitTextEmphasis.js +0 -12
  605. data/node_modules/cssstyle/lib/properties/webkitTextEmphasisColor.js +0 -14
  606. data/node_modules/cssstyle/lib/properties/webkitTextEmphasisPosition.js +0 -12
  607. data/node_modules/cssstyle/lib/properties/webkitTextEmphasisStyle.js +0 -12
  608. data/node_modules/cssstyle/lib/properties/webkitTextFillColor.js +0 -14
  609. data/node_modules/cssstyle/lib/properties/webkitTextOrientation.js +0 -12
  610. data/node_modules/cssstyle/lib/properties/webkitTextSecurity.js +0 -12
  611. data/node_modules/cssstyle/lib/properties/webkitTextSizeAdjust.js +0 -12
  612. data/node_modules/cssstyle/lib/properties/webkitTextStroke.js +0 -12
  613. data/node_modules/cssstyle/lib/properties/webkitTextStrokeColor.js +0 -14
  614. data/node_modules/cssstyle/lib/properties/webkitTextStrokeWidth.js +0 -12
  615. data/node_modules/cssstyle/lib/properties/webkitTransform.js +0 -12
  616. data/node_modules/cssstyle/lib/properties/webkitTransformOrigin.js +0 -12
  617. data/node_modules/cssstyle/lib/properties/webkitTransformOriginX.js +0 -12
  618. data/node_modules/cssstyle/lib/properties/webkitTransformOriginY.js +0 -12
  619. data/node_modules/cssstyle/lib/properties/webkitTransformOriginZ.js +0 -12
  620. data/node_modules/cssstyle/lib/properties/webkitTransformStyle.js +0 -12
  621. data/node_modules/cssstyle/lib/properties/webkitTransition.js +0 -12
  622. data/node_modules/cssstyle/lib/properties/webkitTransitionDelay.js +0 -12
  623. data/node_modules/cssstyle/lib/properties/webkitTransitionDuration.js +0 -12
  624. data/node_modules/cssstyle/lib/properties/webkitTransitionProperty.js +0 -12
  625. data/node_modules/cssstyle/lib/properties/webkitTransitionTimingFunction.js +0 -12
  626. data/node_modules/cssstyle/lib/properties/webkitUserDrag.js +0 -12
  627. data/node_modules/cssstyle/lib/properties/webkitUserModify.js +0 -12
  628. data/node_modules/cssstyle/lib/properties/webkitUserSelect.js +0 -12
  629. data/node_modules/cssstyle/lib/properties/webkitWrap.js +0 -12
  630. data/node_modules/cssstyle/lib/properties/webkitWrapFlow.js +0 -12
  631. data/node_modules/cssstyle/lib/properties/webkitWrapMargin.js +0 -12
  632. data/node_modules/cssstyle/lib/properties/webkitWrapPadding.js +0 -12
  633. data/node_modules/cssstyle/lib/properties/webkitWrapShapeInside.js +0 -12
  634. data/node_modules/cssstyle/lib/properties/webkitWrapShapeOutside.js +0 -12
  635. data/node_modules/cssstyle/lib/properties/webkitWrapThrough.js +0 -12
  636. data/node_modules/cssstyle/lib/properties/webkitWritingMode.js +0 -12
  637. data/node_modules/cssstyle/lib/properties/whiteSpace.js +0 -12
  638. data/node_modules/cssstyle/lib/properties/widows.js +0 -12
  639. data/node_modules/cssstyle/lib/properties/width.js +0 -24
  640. data/node_modules/cssstyle/lib/properties/wordBreak.js +0 -12
  641. data/node_modules/cssstyle/lib/properties/wordSpacing.js +0 -12
  642. data/node_modules/cssstyle/lib/properties/wordWrap.js +0 -12
  643. data/node_modules/cssstyle/lib/properties/writingMode.js +0 -12
  644. data/node_modules/cssstyle/lib/properties/zIndex.js +0 -12
  645. data/node_modules/cssstyle/lib/properties/zoom.js +0 -12
  646. data/node_modules/cssstyle/package.json +0 -109
  647. data/node_modules/cssstyle/scripts/generate_properties.js +0 -302
  648. data/node_modules/cssstyle/scripts/run_tests.sh +0 -4
  649. data/node_modules/cssstyle/tests/tests.js +0 -405
  650. data/node_modules/dashdash/CHANGES.md +0 -364
  651. data/node_modules/dashdash/LICENSE.txt +0 -24
  652. data/node_modules/dashdash/README.md +0 -574
  653. data/node_modules/dashdash/etc/dashdash.bash_completion.in +0 -389
  654. data/node_modules/dashdash/lib/dashdash.js +0 -1055
  655. data/node_modules/dashdash/node_modules/assert-plus/AUTHORS +0 -6
  656. data/node_modules/dashdash/node_modules/assert-plus/CHANGES.md +0 -14
  657. data/node_modules/dashdash/node_modules/assert-plus/README.md +0 -162
  658. data/node_modules/dashdash/node_modules/assert-plus/assert.js +0 -211
  659. data/node_modules/dashdash/node_modules/assert-plus/package.json +0 -115
  660. data/node_modules/dashdash/package.json +0 -125
  661. data/node_modules/deep-eql/.npmignore +0 -11
  662. data/node_modules/deep-eql/History.md +0 -28
  663. data/node_modules/deep-eql/README.md +0 -52
  664. data/node_modules/deep-eql/index.js +0 -1
  665. data/node_modules/deep-eql/karma.conf.js +0 -20
  666. data/node_modules/deep-eql/lib/eql.js +0 -257
  667. data/node_modules/deep-eql/node_modules/type-detect/.npmignore +0 -11
  668. data/node_modules/deep-eql/node_modules/type-detect/History.md +0 -18
  669. data/node_modules/deep-eql/node_modules/type-detect/README.md +0 -193
  670. data/node_modules/deep-eql/node_modules/type-detect/index.js +0 -1
  671. data/node_modules/deep-eql/node_modules/type-detect/lib/type.js +0 -142
  672. data/node_modules/deep-eql/node_modules/type-detect/package.json +0 -91
  673. data/node_modules/deep-eql/package.json +0 -98
  674. data/node_modules/deep-is/.npmignore +0 -1
  675. data/node_modules/deep-is/.travis.yml +0 -6
  676. data/node_modules/deep-is/LICENSE +0 -22
  677. data/node_modules/deep-is/README.markdown +0 -70
  678. data/node_modules/deep-is/example/cmp.js +0 -11
  679. data/node_modules/deep-is/index.js +0 -102
  680. data/node_modules/deep-is/package.json +0 -120
  681. data/node_modules/deep-is/test/NaN.js +0 -16
  682. data/node_modules/deep-is/test/cmp.js +0 -23
  683. data/node_modules/deep-is/test/neg-vs-pos-0.js +0 -15
  684. data/node_modules/delayed-stream/.npmignore +0 -1
  685. data/node_modules/delayed-stream/License +0 -19
  686. data/node_modules/delayed-stream/Makefile +0 -7
  687. data/node_modules/delayed-stream/Readme.md +0 -141
  688. data/node_modules/delayed-stream/lib/delayed_stream.js +0 -107
  689. data/node_modules/delayed-stream/package.json +0 -97
  690. data/node_modules/ecc-jsbn/.npmignore +0 -15
  691. data/node_modules/ecc-jsbn/LICENSE +0 -21
  692. data/node_modules/ecc-jsbn/README.md +0 -8
  693. data/node_modules/ecc-jsbn/index.js +0 -57
  694. data/node_modules/ecc-jsbn/lib/LICENSE-jsbn +0 -40
  695. data/node_modules/ecc-jsbn/lib/ec.js +0 -561
  696. data/node_modules/ecc-jsbn/lib/sec.js +0 -170
  697. data/node_modules/ecc-jsbn/package.json +0 -90
  698. data/node_modules/ecc-jsbn/test.js +0 -14
  699. data/node_modules/escape-string-regexp/index.js +0 -11
  700. data/node_modules/escape-string-regexp/license +0 -21
  701. data/node_modules/escape-string-regexp/package.json +0 -109
  702. data/node_modules/escape-string-regexp/readme.md +0 -27
  703. data/node_modules/escodegen/LICENSE.BSD +0 -19
  704. data/node_modules/escodegen/LICENSE.source-map +0 -27
  705. data/node_modules/escodegen/README.md +0 -116
  706. data/node_modules/escodegen/bin/escodegen.js +0 -77
  707. data/node_modules/escodegen/bin/esgenerate.js +0 -64
  708. data/node_modules/escodegen/escodegen.js +0 -2607
  709. data/node_modules/escodegen/package.json +0 -122
  710. data/node_modules/esprima/ChangeLog +0 -174
  711. data/node_modules/esprima/LICENSE.BSD +0 -21
  712. data/node_modules/esprima/README.md +0 -27
  713. data/node_modules/esprima/bin/esparse.js +0 -126
  714. data/node_modules/esprima/bin/esvalidate.js +0 -199
  715. data/node_modules/esprima/esprima.js +0 -5740
  716. data/node_modules/esprima/package.json +0 -153
  717. data/node_modules/estraverse/.editorconfig +0 -10
  718. data/node_modules/estraverse/.jshintrc +0 -16
  719. data/node_modules/estraverse/LICENSE.BSD +0 -19
  720. data/node_modules/estraverse/README.md +0 -124
  721. data/node_modules/estraverse/estraverse.js +0 -845
  722. data/node_modules/estraverse/gulpfile.js +0 -70
  723. data/node_modules/estraverse/package.json +0 -95
  724. data/node_modules/esutils/LICENSE.BSD +0 -19
  725. data/node_modules/esutils/README.md +0 -169
  726. data/node_modules/esutils/lib/ast.js +0 -144
  727. data/node_modules/esutils/lib/code.js +0 -135
  728. data/node_modules/esutils/lib/keyword.js +0 -165
  729. data/node_modules/esutils/lib/utils.js +0 -33
  730. data/node_modules/esutils/package.json +0 -105
  731. data/node_modules/extend/.eslintrc +0 -192
  732. data/node_modules/extend/.jscs.json +0 -104
  733. data/node_modules/extend/.npmignore +0 -1
  734. data/node_modules/extend/.travis.yml +0 -44
  735. data/node_modules/extend/CHANGELOG.md +0 -69
  736. data/node_modules/extend/LICENSE +0 -23
  737. data/node_modules/extend/README.md +0 -62
  738. data/node_modules/extend/component.json +0 -32
  739. data/node_modules/extend/index.js +0 -86
  740. data/node_modules/extend/package.json +0 -106
  741. data/node_modules/extsprintf/.gitmodules +0 -6
  742. data/node_modules/extsprintf/LICENSE +0 -19
  743. data/node_modules/extsprintf/Makefile +0 -23
  744. data/node_modules/extsprintf/Makefile.deps +0 -39
  745. data/node_modules/extsprintf/Makefile.targ +0 -285
  746. data/node_modules/extsprintf/README.md +0 -39
  747. data/node_modules/extsprintf/examples/simple.js +0 -2
  748. data/node_modules/extsprintf/jsl.node.conf +0 -137
  749. data/node_modules/extsprintf/lib/extsprintf.js +0 -166
  750. data/node_modules/extsprintf/package.json +0 -74
  751. data/node_modules/fast-levenshtein/LICENSE.md +0 -25
  752. data/node_modules/fast-levenshtein/README.md +0 -104
  753. data/node_modules/fast-levenshtein/levenshtein.js +0 -102
  754. data/node_modules/fast-levenshtein/package.json +0 -108
  755. data/node_modules/forever-agent/LICENSE +0 -55
  756. data/node_modules/forever-agent/README.md +0 -4
  757. data/node_modules/forever-agent/index.js +0 -138
  758. data/node_modules/forever-agent/package.json +0 -88
  759. data/node_modules/form-data/License +0 -19
  760. data/node_modules/form-data/README.md +0 -217
  761. data/node_modules/form-data/lib/browser.js +0 -2
  762. data/node_modules/form-data/lib/form_data.js +0 -440
  763. data/node_modules/form-data/lib/populate.js +0 -10
  764. data/node_modules/form-data/package.json +0 -145
  765. data/node_modules/generate-function/.npmignore +0 -1
  766. data/node_modules/generate-function/.travis.yml +0 -3
  767. data/node_modules/generate-function/README.md +0 -72
  768. data/node_modules/generate-function/example.js +0 -27
  769. data/node_modules/generate-function/index.js +0 -61
  770. data/node_modules/generate-function/package.json +0 -87
  771. data/node_modules/generate-function/test.js +0 -33
  772. data/node_modules/generate-object-property/.npmignore +0 -1
  773. data/node_modules/generate-object-property/.travis.yml +0 -3
  774. data/node_modules/generate-object-property/LICENSE +0 -21
  775. data/node_modules/generate-object-property/README.md +0 -19
  776. data/node_modules/generate-object-property/index.js +0 -12
  777. data/node_modules/generate-object-property/package.json +0 -84
  778. data/node_modules/generate-object-property/test.js +0 -12
  779. data/node_modules/getpass/.npmignore +0 -8
  780. data/node_modules/getpass/.travis.yml +0 -9
  781. data/node_modules/getpass/LICENSE +0 -18
  782. data/node_modules/getpass/README.md +0 -32
  783. data/node_modules/getpass/lib/index.js +0 -123
  784. data/node_modules/getpass/node_modules/assert-plus/AUTHORS +0 -6
  785. data/node_modules/getpass/node_modules/assert-plus/CHANGES.md +0 -14
  786. data/node_modules/getpass/node_modules/assert-plus/README.md +0 -162
  787. data/node_modules/getpass/node_modules/assert-plus/assert.js +0 -211
  788. data/node_modules/getpass/node_modules/assert-plus/package.json +0 -115
  789. data/node_modules/getpass/package.json +0 -90
  790. data/node_modules/graceful-readlink/.npmignore +0 -3
  791. data/node_modules/graceful-readlink/.travis.yml +0 -5
  792. data/node_modules/graceful-readlink/LICENSE +0 -22
  793. data/node_modules/graceful-readlink/README.md +0 -17
  794. data/node_modules/graceful-readlink/index.js +0 -12
  795. data/node_modules/graceful-readlink/package.json +0 -83
  796. data/node_modules/har-validator/LICENSE +0 -13
  797. data/node_modules/har-validator/README.md +0 -309
  798. data/node_modules/har-validator/bin/har-validator +0 -56
  799. data/node_modules/har-validator/lib/async.js +0 -14
  800. data/node_modules/har-validator/lib/error.js +0 -10
  801. data/node_modules/har-validator/lib/index.js +0 -22
  802. data/node_modules/har-validator/lib/runner.js +0 -29
  803. data/node_modules/har-validator/lib/schemas/cache.json +0 -13
  804. data/node_modules/har-validator/lib/schemas/cacheEntry.json +0 -31
  805. data/node_modules/har-validator/lib/schemas/content.json +0 -27
  806. data/node_modules/har-validator/lib/schemas/cookie.json +0 -34
  807. data/node_modules/har-validator/lib/schemas/creator.json +0 -18
  808. data/node_modules/har-validator/lib/schemas/entry.json +0 -51
  809. data/node_modules/har-validator/lib/schemas/har.json +0 -11
  810. data/node_modules/har-validator/lib/schemas/index.js +0 -49
  811. data/node_modules/har-validator/lib/schemas/log.json +0 -34
  812. data/node_modules/har-validator/lib/schemas/page.json +0 -30
  813. data/node_modules/har-validator/lib/schemas/pageTimings.json +0 -16
  814. data/node_modules/har-validator/lib/schemas/postData.json +0 -41
  815. data/node_modules/har-validator/lib/schemas/record.json +0 -18
  816. data/node_modules/har-validator/lib/schemas/request.json +0 -55
  817. data/node_modules/har-validator/lib/schemas/response.json +0 -52
  818. data/node_modules/har-validator/lib/schemas/timings.json +0 -40
  819. data/node_modules/har-validator/package.json +0 -120
  820. data/node_modules/has-ansi/index.js +0 -4
  821. data/node_modules/has-ansi/license +0 -21
  822. data/node_modules/has-ansi/package.json +0 -118
  823. data/node_modules/has-ansi/readme.md +0 -36
  824. data/node_modules/hawk/.npmignore +0 -20
  825. data/node_modules/hawk/.travis.yml +0 -5
  826. data/node_modules/hawk/LICENSE +0 -28
  827. data/node_modules/hawk/README.md +0 -634
  828. data/node_modules/hawk/bower.json +0 -24
  829. data/node_modules/hawk/component.json +0 -19
  830. data/node_modules/hawk/dist/client.js +0 -343
  831. data/node_modules/hawk/example/usage.js +0 -78
  832. data/node_modules/hawk/images/hawk.png +0 -0
  833. data/node_modules/hawk/images/logo.png +0 -0
  834. data/node_modules/hawk/lib/browser.js +0 -637
  835. data/node_modules/hawk/lib/client.js +0 -369
  836. data/node_modules/hawk/lib/crypto.js +0 -126
  837. data/node_modules/hawk/lib/index.js +0 -15
  838. data/node_modules/hawk/lib/server.js +0 -548
  839. data/node_modules/hawk/lib/utils.js +0 -184
  840. data/node_modules/hawk/package.json +0 -101
  841. data/node_modules/hawk/test/browser.js +0 -1492
  842. data/node_modules/hawk/test/client.js +0 -440
  843. data/node_modules/hawk/test/crypto.js +0 -70
  844. data/node_modules/hawk/test/index.js +0 -378
  845. data/node_modules/hawk/test/readme.js +0 -95
  846. data/node_modules/hawk/test/server.js +0 -1329
  847. data/node_modules/hawk/test/uri.js +0 -838
  848. data/node_modules/hawk/test/utils.js +0 -149
  849. data/node_modules/hoek/.npmignore +0 -18
  850. data/node_modules/hoek/.travis.yml +0 -7
  851. data/node_modules/hoek/CONTRIBUTING.md +0 -1
  852. data/node_modules/hoek/LICENSE +0 -31
  853. data/node_modules/hoek/README.md +0 -584
  854. data/node_modules/hoek/images/hoek.png +0 -0
  855. data/node_modules/hoek/lib/escape.js +0 -132
  856. data/node_modules/hoek/lib/index.js +0 -993
  857. data/node_modules/hoek/package.json +0 -96
  858. data/node_modules/hoek/test/escaper.js +0 -88
  859. data/node_modules/hoek/test/index.js +0 -2513
  860. data/node_modules/hoek/test/modules/ignore.txt +0 -0
  861. data/node_modules/hoek/test/modules/test1.js +0 -1
  862. data/node_modules/hoek/test/modules/test2.js +0 -1
  863. data/node_modules/hoek/test/modules/test3.js +0 -1
  864. data/node_modules/html-encoding-sniffer/LICENSE.txt +0 -19
  865. data/node_modules/html-encoding-sniffer/README.md +0 -38
  866. data/node_modules/html-encoding-sniffer/lib/html-encoding-sniffer.js +0 -302
  867. data/node_modules/html-encoding-sniffer/package.json +0 -98
  868. data/node_modules/http-signature/.dir-locals.el +0 -6
  869. data/node_modules/http-signature/.npmignore +0 -7
  870. data/node_modules/http-signature/CHANGES.md +0 -46
  871. data/node_modules/http-signature/LICENSE +0 -18
  872. data/node_modules/http-signature/README.md +0 -79
  873. data/node_modules/http-signature/http_signing.md +0 -363
  874. data/node_modules/http-signature/lib/index.js +0 -29
  875. data/node_modules/http-signature/lib/parser.js +0 -318
  876. data/node_modules/http-signature/lib/signer.js +0 -399
  877. data/node_modules/http-signature/lib/utils.js +0 -112
  878. data/node_modules/http-signature/lib/verify.js +0 -88
  879. data/node_modules/http-signature/package.json +0 -116
  880. data/node_modules/iconv-lite/.npmignore +0 -6
  881. data/node_modules/iconv-lite/.travis.yml +0 -22
  882. data/node_modules/iconv-lite/Changelog.md +0 -108
  883. data/node_modules/iconv-lite/LICENSE +0 -21
  884. data/node_modules/iconv-lite/README.md +0 -159
  885. data/node_modules/iconv-lite/encodings/dbcs-codec.js +0 -554
  886. data/node_modules/iconv-lite/encodings/dbcs-data.js +0 -176
  887. data/node_modules/iconv-lite/encodings/index.js +0 -22
  888. data/node_modules/iconv-lite/encodings/internal.js +0 -187
  889. data/node_modules/iconv-lite/encodings/sbcs-codec.js +0 -72
  890. data/node_modules/iconv-lite/encodings/sbcs-data-generated.js +0 -451
  891. data/node_modules/iconv-lite/encodings/sbcs-data.js +0 -169
  892. data/node_modules/iconv-lite/encodings/tables/big5-added.json +0 -122
  893. data/node_modules/iconv-lite/encodings/tables/cp936.json +0 -264
  894. data/node_modules/iconv-lite/encodings/tables/cp949.json +0 -273
  895. data/node_modules/iconv-lite/encodings/tables/cp950.json +0 -177
  896. data/node_modules/iconv-lite/encodings/tables/eucjp.json +0 -182
  897. data/node_modules/iconv-lite/encodings/tables/gb18030-ranges.json +0 -1
  898. data/node_modules/iconv-lite/encodings/tables/gbk-added.json +0 -55
  899. data/node_modules/iconv-lite/encodings/tables/shiftjis.json +0 -125
  900. data/node_modules/iconv-lite/encodings/utf16.js +0 -176
  901. data/node_modules/iconv-lite/encodings/utf7.js +0 -289
  902. data/node_modules/iconv-lite/lib/bom-handling.js +0 -52
  903. data/node_modules/iconv-lite/lib/extend-node.js +0 -214
  904. data/node_modules/iconv-lite/lib/index.d.ts +0 -31
  905. data/node_modules/iconv-lite/lib/index.js +0 -141
  906. data/node_modules/iconv-lite/lib/streams.js +0 -120
  907. data/node_modules/iconv-lite/package.json +0 -158
  908. data/node_modules/is-my-json-valid/.npmignore +0 -2
  909. data/node_modules/is-my-json-valid/.travis.yml +0 -3
  910. data/node_modules/is-my-json-valid/LICENSE +0 -21
  911. data/node_modules/is-my-json-valid/README.md +0 -173
  912. data/node_modules/is-my-json-valid/example.js +0 -18
  913. data/node_modules/is-my-json-valid/formats.js +0 -14
  914. data/node_modules/is-my-json-valid/index.js +0 -594
  915. data/node_modules/is-my-json-valid/package.json +0 -116
  916. data/node_modules/is-my-json-valid/require.js +0 -12
  917. data/node_modules/is-my-json-valid/test/fixtures/cosmic.js +0 -84
  918. data/node_modules/is-my-json-valid/test/json-schema-draft4/additionalItems.json +0 -82
  919. data/node_modules/is-my-json-valid/test/json-schema-draft4/additionalProperties.json +0 -88
  920. data/node_modules/is-my-json-valid/test/json-schema-draft4/allOf.json +0 -112
  921. data/node_modules/is-my-json-valid/test/json-schema-draft4/anyOf.json +0 -68
  922. data/node_modules/is-my-json-valid/test/json-schema-draft4/bignum.json +0 -107
  923. data/node_modules/is-my-json-valid/test/json-schema-draft4/default.json +0 -49
  924. data/node_modules/is-my-json-valid/test/json-schema-draft4/definitions.json +0 -32
  925. data/node_modules/is-my-json-valid/test/json-schema-draft4/dependencies.json +0 -113
  926. data/node_modules/is-my-json-valid/test/json-schema-draft4/enum.json +0 -72
  927. data/node_modules/is-my-json-valid/test/json-schema-draft4/format.json +0 -143
  928. data/node_modules/is-my-json-valid/test/json-schema-draft4/items.json +0 -46
  929. data/node_modules/is-my-json-valid/test/json-schema-draft4/maxItems.json +0 -28
  930. data/node_modules/is-my-json-valid/test/json-schema-draft4/maxLength.json +0 -28
  931. data/node_modules/is-my-json-valid/test/json-schema-draft4/maxProperties.json +0 -28
  932. data/node_modules/is-my-json-valid/test/json-schema-draft4/maximum.json +0 -42
  933. data/node_modules/is-my-json-valid/test/json-schema-draft4/minItems.json +0 -28
  934. data/node_modules/is-my-json-valid/test/json-schema-draft4/minLength.json +0 -28
  935. data/node_modules/is-my-json-valid/test/json-schema-draft4/minProperties.json +0 -28
  936. data/node_modules/is-my-json-valid/test/json-schema-draft4/minimum.json +0 -42
  937. data/node_modules/is-my-json-valid/test/json-schema-draft4/multipleOf.json +0 -96
  938. data/node_modules/is-my-json-valid/test/json-schema-draft4/not.json +0 -96
  939. data/node_modules/is-my-json-valid/test/json-schema-draft4/nullAndFormat.json +0 -18
  940. data/node_modules/is-my-json-valid/test/json-schema-draft4/nullAndObject.json +0 -18
  941. data/node_modules/is-my-json-valid/test/json-schema-draft4/oneOf.json +0 -68
  942. data/node_modules/is-my-json-valid/test/json-schema-draft4/pattern.json +0 -23
  943. data/node_modules/is-my-json-valid/test/json-schema-draft4/patternProperties.json +0 -110
  944. data/node_modules/is-my-json-valid/test/json-schema-draft4/properties.json +0 -92
  945. data/node_modules/is-my-json-valid/test/json-schema-draft4/ref.json +0 -128
  946. data/node_modules/is-my-json-valid/test/json-schema-draft4/refRemote.json +0 -74
  947. data/node_modules/is-my-json-valid/test/json-schema-draft4/required.json +0 -39
  948. data/node_modules/is-my-json-valid/test/json-schema-draft4/type.json +0 -330
  949. data/node_modules/is-my-json-valid/test/json-schema-draft4/uniqueItems.json +0 -79
  950. data/node_modules/is-my-json-valid/test/json-schema.js +0 -23
  951. data/node_modules/is-my-json-valid/test/misc.js +0 -471
  952. data/node_modules/is-property/.npmignore +0 -17
  953. data/node_modules/is-property/LICENSE +0 -22
  954. data/node_modules/is-property/README.md +0 -28
  955. data/node_modules/is-property/is-property.js +0 -5
  956. data/node_modules/is-property/package.json +0 -92
  957. data/node_modules/is-typedarray/LICENSE.md +0 -18
  958. data/node_modules/is-typedarray/README.md +0 -16
  959. data/node_modules/is-typedarray/index.js +0 -41
  960. data/node_modules/is-typedarray/package.json +0 -90
  961. data/node_modules/is-typedarray/test.js +0 -34
  962. data/node_modules/isstream/.jshintrc +0 -59
  963. data/node_modules/isstream/.npmignore +0 -1
  964. data/node_modules/isstream/.travis.yml +0 -12
  965. data/node_modules/isstream/LICENSE.md +0 -11
  966. data/node_modules/isstream/README.md +0 -66
  967. data/node_modules/isstream/isstream.js +0 -27
  968. data/node_modules/isstream/package.json +0 -93
  969. data/node_modules/isstream/test.js +0 -168
  970. data/node_modules/jodid25519/.npmignore +0 -11
  971. data/node_modules/jodid25519/.travis.yml +0 -7
  972. data/node_modules/jodid25519/AUTHORS.md +0 -3
  973. data/node_modules/jodid25519/LICENSE +0 -23
  974. data/node_modules/jodid25519/README.md +0 -51
  975. data/node_modules/jodid25519/almond.0 +0 -42
  976. data/node_modules/jodid25519/almond.1 +0 -13
  977. data/node_modules/jodid25519/index.js +0 -35
  978. data/node_modules/jodid25519/jsdoc.json +0 -19
  979. data/node_modules/jodid25519/lib/core.js +0 -481
  980. data/node_modules/jodid25519/lib/curve255.js +0 -221
  981. data/node_modules/jodid25519/lib/dh.js +0 -111
  982. data/node_modules/jodid25519/lib/eddsa.js +0 -573
  983. data/node_modules/jodid25519/lib/utils.js +0 -198
  984. data/node_modules/jodid25519/package.json +0 -104
  985. data/node_modules/jquery/AUTHORS.txt +0 -295
  986. data/node_modules/jquery/LICENSE.txt +0 -36
  987. data/node_modules/jquery/README.md +0 -65
  988. data/node_modules/jquery/bower.json +0 -14
  989. data/node_modules/jquery/dist/core.js +0 -482
  990. data/node_modules/jquery/dist/jquery.js +0 -10220
  991. data/node_modules/jquery/dist/jquery.min.js +0 -4
  992. data/node_modules/jquery/dist/jquery.min.map +0 -1
  993. data/node_modules/jquery/dist/jquery.slim.js +0 -8107
  994. data/node_modules/jquery/dist/jquery.slim.min.js +0 -4
  995. data/node_modules/jquery/dist/jquery.slim.min.map +0 -1
  996. data/node_modules/jquery/external/sizzle/LICENSE.txt +0 -36
  997. data/node_modules/jquery/external/sizzle/dist/sizzle.js +0 -2272
  998. data/node_modules/jquery/external/sizzle/dist/sizzle.min.js +0 -3
  999. data/node_modules/jquery/external/sizzle/dist/sizzle.min.map +0 -1
  1000. data/node_modules/jquery/package.json +0 -169
  1001. data/node_modules/jquery/src/.eslintrc.json +0 -18
  1002. data/node_modules/jquery/src/ajax.js +0 -855
  1003. data/node_modules/jquery/src/ajax/jsonp.js +0 -102
  1004. data/node_modules/jquery/src/ajax/load.js +0 -76
  1005. data/node_modules/jquery/src/ajax/parseXML.js +0 -30
  1006. data/node_modules/jquery/src/ajax/script.js +0 -77
  1007. data/node_modules/jquery/src/ajax/var/location.js +0 -5
  1008. data/node_modules/jquery/src/ajax/var/nonce.js +0 -7
  1009. data/node_modules/jquery/src/ajax/var/rquery.js +0 -5
  1010. data/node_modules/jquery/src/ajax/xhr.js +0 -169
  1011. data/node_modules/jquery/src/attributes.js +0 -13
  1012. data/node_modules/jquery/src/attributes/attr.js +0 -140
  1013. data/node_modules/jquery/src/attributes/classes.js +0 -174
  1014. data/node_modules/jquery/src/attributes/prop.js +0 -143
  1015. data/node_modules/jquery/src/attributes/support.js +0 -33
  1016. data/node_modules/jquery/src/attributes/val.js +0 -188
  1017. data/node_modules/jquery/src/callbacks.js +0 -234
  1018. data/node_modules/jquery/src/core.js +0 -482
  1019. data/node_modules/jquery/src/core/DOMEval.js +0 -16
  1020. data/node_modules/jquery/src/core/access.js +0 -70
  1021. data/node_modules/jquery/src/core/init.js +0 -127
  1022. data/node_modules/jquery/src/core/parseHTML.js +0 -65
  1023. data/node_modules/jquery/src/core/ready-no-deferred.js +0 -105
  1024. data/node_modules/jquery/src/core/ready.js +0 -95
  1025. data/node_modules/jquery/src/core/readyException.js +0 -13
  1026. data/node_modules/jquery/src/core/stripAndCollapse.js +0 -14
  1027. data/node_modules/jquery/src/core/support.js +0 -20
  1028. data/node_modules/jquery/src/core/var/rsingleTag.js +0 -6
  1029. data/node_modules/jquery/src/css.js +0 -426
  1030. data/node_modules/jquery/src/css/addGetHookIf.js +0 -26
  1031. data/node_modules/jquery/src/css/adjustCSS.js +0 -71
  1032. data/node_modules/jquery/src/css/curCSS.js +0 -59
  1033. data/node_modules/jquery/src/css/hiddenVisibleSelectors.js +0 -15
  1034. data/node_modules/jquery/src/css/showHide.js +0 -105
  1035. data/node_modules/jquery/src/css/support.js +0 -89
  1036. data/node_modules/jquery/src/css/var/cssExpand.js +0 -5
  1037. data/node_modules/jquery/src/css/var/getStyles.js +0 -17
  1038. data/node_modules/jquery/src/css/var/isHiddenWithinTree.js +0 -34
  1039. data/node_modules/jquery/src/css/var/rmargin.js +0 -5
  1040. data/node_modules/jquery/src/css/var/rnumnonpx.js +0 -7
  1041. data/node_modules/jquery/src/css/var/swap.js +0 -26
  1042. data/node_modules/jquery/src/data.js +0 -179
  1043. data/node_modules/jquery/src/data/Data.js +0 -161
  1044. data/node_modules/jquery/src/data/var/acceptData.js +0 -19
  1045. data/node_modules/jquery/src/data/var/dataPriv.js +0 -7
  1046. data/node_modules/jquery/src/data/var/dataUser.js +0 -7
  1047. data/node_modules/jquery/src/deferred.js +0 -389
  1048. data/node_modules/jquery/src/deferred/exceptionHook.js +0 -21
  1049. data/node_modules/jquery/src/deprecated.js +0 -30
  1050. data/node_modules/jquery/src/dimensions.js +0 -56
  1051. data/node_modules/jquery/src/effects.js +0 -693
  1052. data/node_modules/jquery/src/effects/Tween.js +0 -123
  1053. data/node_modules/jquery/src/effects/animatedSelector.js +0 -15
  1054. data/node_modules/jquery/src/event.js +0 -745
  1055. data/node_modules/jquery/src/event/ajax.js +0 -22
  1056. data/node_modules/jquery/src/event/alias.js +0 -29
  1057. data/node_modules/jquery/src/event/focusin.js +0 -55
  1058. data/node_modules/jquery/src/event/support.js +0 -11
  1059. data/node_modules/jquery/src/event/trigger.js +0 -185
  1060. data/node_modules/jquery/src/exports/amd.js +0 -26
  1061. data/node_modules/jquery/src/exports/global.js +0 -34
  1062. data/node_modules/jquery/src/jquery.js +0 -41
  1063. data/node_modules/jquery/src/manipulation.js +0 -486
  1064. data/node_modules/jquery/src/manipulation/_evalUrl.js +0 -23
  1065. data/node_modules/jquery/src/manipulation/buildFragment.js +0 -104
  1066. data/node_modules/jquery/src/manipulation/getAll.js +0 -31
  1067. data/node_modules/jquery/src/manipulation/setGlobalEval.js +0 -22
  1068. data/node_modules/jquery/src/manipulation/support.js +0 -35
  1069. data/node_modules/jquery/src/manipulation/var/rcheckableType.js +0 -5
  1070. data/node_modules/jquery/src/manipulation/var/rscriptType.js +0 -5
  1071. data/node_modules/jquery/src/manipulation/var/rtagName.js +0 -5
  1072. data/node_modules/jquery/src/manipulation/wrapMap.js +0 -29
  1073. data/node_modules/jquery/src/offset.js +0 -232
  1074. data/node_modules/jquery/src/queue.js +0 -145
  1075. data/node_modules/jquery/src/queue/delay.js +0 -24
  1076. data/node_modules/jquery/src/selector-native.js +0 -237
  1077. data/node_modules/jquery/src/selector-sizzle.js +0 -19
  1078. data/node_modules/jquery/src/selector.js +0 -3
  1079. data/node_modules/jquery/src/serialize.js +0 -130
  1080. data/node_modules/jquery/src/traversing.js +0 -178
  1081. data/node_modules/jquery/src/traversing/findFilter.js +0 -106
  1082. data/node_modules/jquery/src/traversing/var/dir.js +0 -22
  1083. data/node_modules/jquery/src/traversing/var/rneedsContext.js +0 -8
  1084. data/node_modules/jquery/src/traversing/var/siblings.js +0 -17
  1085. data/node_modules/jquery/src/var/ObjectFunctionString.js +0 -7
  1086. data/node_modules/jquery/src/var/arr.js +0 -5
  1087. data/node_modules/jquery/src/var/class2type.js +0 -6
  1088. data/node_modules/jquery/src/var/concat.js +0 -7
  1089. data/node_modules/jquery/src/var/document.js +0 -5
  1090. data/node_modules/jquery/src/var/documentElement.js +0 -7
  1091. data/node_modules/jquery/src/var/fnToString.js +0 -7
  1092. data/node_modules/jquery/src/var/getProto.js +0 -5
  1093. data/node_modules/jquery/src/var/hasOwn.js +0 -7
  1094. data/node_modules/jquery/src/var/indexOf.js +0 -7
  1095. data/node_modules/jquery/src/var/pnum.js +0 -5
  1096. data/node_modules/jquery/src/var/push.js +0 -7
  1097. data/node_modules/jquery/src/var/rcssNum.js +0 -9
  1098. data/node_modules/jquery/src/var/rnothtmlwhite.js +0 -8
  1099. data/node_modules/jquery/src/var/slice.js +0 -7
  1100. data/node_modules/jquery/src/var/support.js +0 -6
  1101. data/node_modules/jquery/src/var/toString.js +0 -7
  1102. data/node_modules/jquery/src/wrap.js +0 -77
  1103. data/node_modules/jsbn/.npmignore +0 -2
  1104. data/node_modules/jsbn/LICENSE +0 -40
  1105. data/node_modules/jsbn/README.md +0 -175
  1106. data/node_modules/jsbn/example.html +0 -12
  1107. data/node_modules/jsbn/example.js +0 -3
  1108. data/node_modules/jsbn/index.js +0 -1358
  1109. data/node_modules/jsbn/package.json +0 -87
  1110. data/node_modules/jsdom-global/.npmignore +0 -1
  1111. data/node_modules/jsdom-global/.travis.yml +0 -6
  1112. data/node_modules/jsdom-global/HISTORY.md +0 -85
  1113. data/node_modules/jsdom-global/README.md +0 -137
  1114. data/node_modules/jsdom-global/browser.js +0 -10
  1115. data/node_modules/jsdom-global/index.js +0 -46
  1116. data/node_modules/jsdom-global/keys.js +0 -187
  1117. data/node_modules/jsdom-global/package.json +0 -95
  1118. data/node_modules/jsdom-global/register.js +0 -1
  1119. data/node_modules/jsdom-global/test.js +0 -22
  1120. data/node_modules/jsdom/Changelog.md +0 -1254
  1121. data/node_modules/jsdom/LICENSE.txt +0 -22
  1122. data/node_modules/jsdom/README.md +0 -592
  1123. data/node_modules/jsdom/lib/jsdom.js +0 -456
  1124. data/node_modules/jsdom/lib/jsdom/browser/Window.js +0 -502
  1125. data/node_modules/jsdom/lib/jsdom/browser/default-stylesheet.js +0 -1129
  1126. data/node_modules/jsdom/lib/jsdom/browser/documentAdapter.js +0 -73
  1127. data/node_modules/jsdom/lib/jsdom/browser/documentfeatures.js +0 -47
  1128. data/node_modules/jsdom/lib/jsdom/browser/domtohtml.js +0 -19
  1129. data/node_modules/jsdom/lib/jsdom/browser/htmltodom.js +0 -323
  1130. data/node_modules/jsdom/lib/jsdom/browser/not-implemented.js +0 -13
  1131. data/node_modules/jsdom/lib/jsdom/browser/resource-loader.js +0 -275
  1132. data/node_modules/jsdom/lib/jsdom/level2/style.js +0 -69
  1133. data/node_modules/jsdom/lib/jsdom/level3/xpath.js +0 -1874
  1134. data/node_modules/jsdom/lib/jsdom/living/attributes.js +0 -468
  1135. data/node_modules/jsdom/lib/jsdom/living/attributes/Attr-impl.js +0 -87
  1136. data/node_modules/jsdom/lib/jsdom/living/blob-symbols.js +0 -6
  1137. data/node_modules/jsdom/lib/jsdom/living/blob.js +0 -73
  1138. data/node_modules/jsdom/lib/jsdom/living/dom-token-list.js +0 -222
  1139. data/node_modules/jsdom/lib/jsdom/living/domparsing/DOMParser-impl.js +0 -61
  1140. data/node_modules/jsdom/lib/jsdom/living/events/CustomEvent-impl.js +0 -18
  1141. data/node_modules/jsdom/lib/jsdom/living/events/ErrorEvent-impl.js +0 -11
  1142. data/node_modules/jsdom/lib/jsdom/living/events/Event-impl.js +0 -77
  1143. data/node_modules/jsdom/lib/jsdom/living/events/EventTarget-impl.js +0 -303
  1144. data/node_modules/jsdom/lib/jsdom/living/events/FocusEvent-impl.js +0 -4
  1145. data/node_modules/jsdom/lib/jsdom/living/events/HashChangeEvent-impl.js +0 -11
  1146. data/node_modules/jsdom/lib/jsdom/living/events/KeyboardEvent-impl.js +0 -21
  1147. data/node_modules/jsdom/lib/jsdom/living/events/MessageEvent-impl.js +0 -22
  1148. data/node_modules/jsdom/lib/jsdom/living/events/MouseEvent-impl.js +0 -28
  1149. data/node_modules/jsdom/lib/jsdom/living/events/PopStateEvent-impl.js +0 -4
  1150. data/node_modules/jsdom/lib/jsdom/living/events/ProgressEvent-impl.js +0 -11
  1151. data/node_modules/jsdom/lib/jsdom/living/events/TouchEvent-impl.js +0 -11
  1152. data/node_modules/jsdom/lib/jsdom/living/events/UIEvent-impl.js +0 -19
  1153. data/node_modules/jsdom/lib/jsdom/living/file-reader.js +0 -133
  1154. data/node_modules/jsdom/lib/jsdom/living/file-symbols.js +0 -4
  1155. data/node_modules/jsdom/lib/jsdom/living/file.js +0 -22
  1156. data/node_modules/jsdom/lib/jsdom/living/filelist-symbols.js +0 -3
  1157. data/node_modules/jsdom/lib/jsdom/living/filelist.js +0 -21
  1158. data/node_modules/jsdom/lib/jsdom/living/form-data-symbols.js +0 -3
  1159. data/node_modules/jsdom/lib/jsdom/living/generated/.gitkeep +0 -0
  1160. data/node_modules/jsdom/lib/jsdom/living/generated/AddEventListenerOptions.js +0 -34
  1161. data/node_modules/jsdom/lib/jsdom/living/generated/Attr.js +0 -169
  1162. data/node_modules/jsdom/lib/jsdom/living/generated/CharacterData.js +0 -189
  1163. data/node_modules/jsdom/lib/jsdom/living/generated/ChildNode.js +0 -92
  1164. data/node_modules/jsdom/lib/jsdom/living/generated/Comment.js +0 -92
  1165. data/node_modules/jsdom/lib/jsdom/living/generated/CustomEvent.js +0 -122
  1166. data/node_modules/jsdom/lib/jsdom/living/generated/CustomEventInit.js +0 -34
  1167. data/node_modules/jsdom/lib/jsdom/living/generated/DOMImplementation.js +0 -143
  1168. data/node_modules/jsdom/lib/jsdom/living/generated/DOMParser.js +0 -97
  1169. data/node_modules/jsdom/lib/jsdom/living/generated/Document.js +0 -712
  1170. data/node_modules/jsdom/lib/jsdom/living/generated/DocumentFragment.js +0 -91
  1171. data/node_modules/jsdom/lib/jsdom/living/generated/DocumentType.js +0 -110
  1172. data/node_modules/jsdom/lib/jsdom/living/generated/Element.js +0 -552
  1173. data/node_modules/jsdom/lib/jsdom/living/generated/ElementCSSInlineStyle.js +0 -88
  1174. data/node_modules/jsdom/lib/jsdom/living/generated/ElementContentEditable.js +0 -77
  1175. data/node_modules/jsdom/lib/jsdom/living/generated/ErrorEvent.js +0 -137
  1176. data/node_modules/jsdom/lib/jsdom/living/generated/ErrorEventInit.js +0 -56
  1177. data/node_modules/jsdom/lib/jsdom/living/generated/Event.js +0 -251
  1178. data/node_modules/jsdom/lib/jsdom/living/generated/EventInit.js +0 -40
  1179. data/node_modules/jsdom/lib/jsdom/living/generated/EventListenerOptions.js +0 -32
  1180. data/node_modules/jsdom/lib/jsdom/living/generated/EventModifierInit.js +0 -146
  1181. data/node_modules/jsdom/lib/jsdom/living/generated/EventTarget.js +0 -130
  1182. data/node_modules/jsdom/lib/jsdom/living/generated/FocusEvent.js +0 -104
  1183. data/node_modules/jsdom/lib/jsdom/living/generated/FocusEventInit.js +0 -34
  1184. data/node_modules/jsdom/lib/jsdom/living/generated/FormData.js +0 -179
  1185. data/node_modules/jsdom/lib/jsdom/living/generated/GlobalEventHandlers.js +0 -770
  1186. data/node_modules/jsdom/lib/jsdom/living/generated/HTMLAnchorElement.js +0 -228
  1187. data/node_modules/jsdom/lib/jsdom/living/generated/HTMLAppletElement.js +0 -225
  1188. data/node_modules/jsdom/lib/jsdom/living/generated/HTMLAreaElement.js +0 -167
  1189. data/node_modules/jsdom/lib/jsdom/living/generated/HTMLAudioElement.js +0 -82
  1190. data/node_modules/jsdom/lib/jsdom/living/generated/HTMLBRElement.js +0 -95
  1191. data/node_modules/jsdom/lib/jsdom/living/generated/HTMLBaseElement.js +0 -107
  1192. data/node_modules/jsdom/lib/jsdom/living/generated/HTMLBodyElement.js +0 -164
  1193. data/node_modules/jsdom/lib/jsdom/living/generated/HTMLButtonElement.js +0 -189
  1194. data/node_modules/jsdom/lib/jsdom/living/generated/HTMLCanvasElement.js +0 -181
  1195. data/node_modules/jsdom/lib/jsdom/living/generated/HTMLDListElement.js +0 -98
  1196. data/node_modules/jsdom/lib/jsdom/living/generated/HTMLDataElement.js +0 -95
  1197. data/node_modules/jsdom/lib/jsdom/living/generated/HTMLDataListElement.js +0 -82
  1198. data/node_modules/jsdom/lib/jsdom/living/generated/HTMLDialogElement.js +0 -98
  1199. data/node_modules/jsdom/lib/jsdom/living/generated/HTMLDirectoryElement.js +0 -98
  1200. data/node_modules/jsdom/lib/jsdom/living/generated/HTMLDivElement.js +0 -95
  1201. data/node_modules/jsdom/lib/jsdom/living/generated/HTMLElement.js +0 -205
  1202. data/node_modules/jsdom/lib/jsdom/living/generated/HTMLEmbedElement.js +0 -159
  1203. data/node_modules/jsdom/lib/jsdom/living/generated/HTMLFieldSetElement.js +0 -119
  1204. data/node_modules/jsdom/lib/jsdom/living/generated/HTMLFontElement.js +0 -121
  1205. data/node_modules/jsdom/lib/jsdom/living/generated/HTMLFormElement.js +0 -211
  1206. data/node_modules/jsdom/lib/jsdom/living/generated/HTMLFrameElement.js +0 -203
  1207. data/node_modules/jsdom/lib/jsdom/living/generated/HTMLFrameSetElement.js +0 -112
  1208. data/node_modules/jsdom/lib/jsdom/living/generated/HTMLHRElement.js +0 -150
  1209. data/node_modules/jsdom/lib/jsdom/living/generated/HTMLHeadElement.js +0 -82
  1210. data/node_modules/jsdom/lib/jsdom/living/generated/HTMLHeadingElement.js +0 -95
  1211. data/node_modules/jsdom/lib/jsdom/living/generated/HTMLHtmlElement.js +0 -95
  1212. data/node_modules/jsdom/lib/jsdom/living/generated/HTMLHyperlinkElementUtils.js +0 -205
  1213. data/node_modules/jsdom/lib/jsdom/living/generated/HTMLIFrameElement.js +0 -278
  1214. data/node_modules/jsdom/lib/jsdom/living/generated/HTMLImageElement.js +0 -326
  1215. data/node_modules/jsdom/lib/jsdom/living/generated/HTMLInputElement.js +0 -583
  1216. data/node_modules/jsdom/lib/jsdom/living/generated/HTMLLIElement.js +0 -108
  1217. data/node_modules/jsdom/lib/jsdom/living/generated/HTMLLabelElement.js +0 -103
  1218. data/node_modules/jsdom/lib/jsdom/living/generated/HTMLLegendElement.js +0 -103
  1219. data/node_modules/jsdom/lib/jsdom/living/generated/HTMLLinkElement.js +0 -206
  1220. data/node_modules/jsdom/lib/jsdom/living/generated/HTMLMapElement.js +0 -103
  1221. data/node_modules/jsdom/lib/jsdom/living/generated/HTMLMediaElement.js +0 -505
  1222. data/node_modules/jsdom/lib/jsdom/living/generated/HTMLMenuElement.js +0 -124
  1223. data/node_modules/jsdom/lib/jsdom/living/generated/HTMLMetaElement.js +0 -134
  1224. data/node_modules/jsdom/lib/jsdom/living/generated/HTMLMeterElement.js +0 -82
  1225. data/node_modules/jsdom/lib/jsdom/living/generated/HTMLModElement.js +0 -108
  1226. data/node_modules/jsdom/lib/jsdom/living/generated/HTMLOListElement.js +0 -140
  1227. data/node_modules/jsdom/lib/jsdom/living/generated/HTMLObjectElement.js +0 -309
  1228. data/node_modules/jsdom/lib/jsdom/living/generated/HTMLOptGroupElement.js +0 -111
  1229. data/node_modules/jsdom/lib/jsdom/living/generated/HTMLOptionElement.js +0 -178
  1230. data/node_modules/jsdom/lib/jsdom/living/generated/HTMLOutputElement.js +0 -95
  1231. data/node_modules/jsdom/lib/jsdom/living/generated/HTMLParagraphElement.js +0 -95
  1232. data/node_modules/jsdom/lib/jsdom/living/generated/HTMLParamElement.js +0 -134
  1233. data/node_modules/jsdom/lib/jsdom/living/generated/HTMLPreElement.js +0 -95
  1234. data/node_modules/jsdom/lib/jsdom/living/generated/HTMLProgressElement.js +0 -82
  1235. data/node_modules/jsdom/lib/jsdom/living/generated/HTMLQuoteElement.js +0 -95
  1236. data/node_modules/jsdom/lib/jsdom/living/generated/HTMLScriptElement.js +0 -204
  1237. data/node_modules/jsdom/lib/jsdom/living/generated/HTMLSelectElement.js +0 -260
  1238. data/node_modules/jsdom/lib/jsdom/living/generated/HTMLSourceElement.js +0 -146
  1239. data/node_modules/jsdom/lib/jsdom/living/generated/HTMLSpanElement.js +0 -82
  1240. data/node_modules/jsdom/lib/jsdom/living/generated/HTMLStyleElement.js +0 -125
  1241. data/node_modules/jsdom/lib/jsdom/living/generated/HTMLTableCaptionElement.js +0 -95
  1242. data/node_modules/jsdom/lib/jsdom/living/generated/HTMLTableCellElement.js +0 -245
  1243. data/node_modules/jsdom/lib/jsdom/living/generated/HTMLTableColElement.js +0 -161
  1244. data/node_modules/jsdom/lib/jsdom/living/generated/HTMLTableDataCellElement.js +0 -95
  1245. data/node_modules/jsdom/lib/jsdom/living/generated/HTMLTableElement.js +0 -357
  1246. data/node_modules/jsdom/lib/jsdom/living/generated/HTMLTableHeaderCellElement.js +0 -121
  1247. data/node_modules/jsdom/lib/jsdom/living/generated/HTMLTableRowElement.js +0 -202
  1248. data/node_modules/jsdom/lib/jsdom/living/generated/HTMLTableSectionElement.js +0 -173
  1249. data/node_modules/jsdom/lib/jsdom/living/generated/HTMLTemplateElement.js +0 -90
  1250. data/node_modules/jsdom/lib/jsdom/living/generated/HTMLTextAreaElement.js +0 -415
  1251. data/node_modules/jsdom/lib/jsdom/living/generated/HTMLTimeElement.js +0 -95
  1252. data/node_modules/jsdom/lib/jsdom/living/generated/HTMLTitleElement.js +0 -94
  1253. data/node_modules/jsdom/lib/jsdom/living/generated/HTMLTrackElement.js +0 -193
  1254. data/node_modules/jsdom/lib/jsdom/living/generated/HTMLUListElement.js +0 -111
  1255. data/node_modules/jsdom/lib/jsdom/living/generated/HTMLUnknownElement.js +0 -82
  1256. data/node_modules/jsdom/lib/jsdom/living/generated/HTMLVideoElement.js +0 -138
  1257. data/node_modules/jsdom/lib/jsdom/living/generated/HashChangeEvent.js +0 -113
  1258. data/node_modules/jsdom/lib/jsdom/living/generated/HashChangeEventInit.js +0 -38
  1259. data/node_modules/jsdom/lib/jsdom/living/generated/History.js +0 -179
  1260. data/node_modules/jsdom/lib/jsdom/living/generated/KeyboardEvent.js +0 -269
  1261. data/node_modules/jsdom/lib/jsdom/living/generated/KeyboardEventInit.js +0 -90
  1262. data/node_modules/jsdom/lib/jsdom/living/generated/LinkStyle.js +0 -85
  1263. data/node_modules/jsdom/lib/jsdom/living/generated/Location.js +0 -227
  1264. data/node_modules/jsdom/lib/jsdom/living/generated/MessageEvent.js +0 -164
  1265. data/node_modules/jsdom/lib/jsdom/living/generated/MessageEventInit.js +0 -56
  1266. data/node_modules/jsdom/lib/jsdom/living/generated/MouseEvent.js +0 -234
  1267. data/node_modules/jsdom/lib/jsdom/living/generated/MouseEventInit.js +0 -82
  1268. data/node_modules/jsdom/lib/jsdom/living/generated/Navigator.js +0 -96
  1269. data/node_modules/jsdom/lib/jsdom/living/generated/NavigatorConcurrentHardware.js +0 -85
  1270. data/node_modules/jsdom/lib/jsdom/living/generated/NavigatorCookies.js +0 -85
  1271. data/node_modules/jsdom/lib/jsdom/living/generated/NavigatorID.js +0 -149
  1272. data/node_modules/jsdom/lib/jsdom/living/generated/NavigatorLanguage.js +0 -93
  1273. data/node_modules/jsdom/lib/jsdom/living/generated/NavigatorOnLine.js +0 -85
  1274. data/node_modules/jsdom/lib/jsdom/living/generated/NavigatorPlugins.js +0 -88
  1275. data/node_modules/jsdom/lib/jsdom/living/generated/Node.js +0 -512
  1276. data/node_modules/jsdom/lib/jsdom/living/generated/NonDocumentTypeChildNode.js +0 -93
  1277. data/node_modules/jsdom/lib/jsdom/living/generated/NonElementParentNode.js +0 -92
  1278. data/node_modules/jsdom/lib/jsdom/living/generated/ParentNode.js +0 -139
  1279. data/node_modules/jsdom/lib/jsdom/living/generated/PopStateEvent.js +0 -105
  1280. data/node_modules/jsdom/lib/jsdom/living/generated/PopStateEventInit.js +0 -32
  1281. data/node_modules/jsdom/lib/jsdom/living/generated/ProcessingInstruction.js +0 -90
  1282. data/node_modules/jsdom/lib/jsdom/living/generated/ProgressEvent.js +0 -122
  1283. data/node_modules/jsdom/lib/jsdom/living/generated/ProgressEventInit.js +0 -50
  1284. data/node_modules/jsdom/lib/jsdom/living/generated/ScrollIntoViewOptions.js +0 -42
  1285. data/node_modules/jsdom/lib/jsdom/living/generated/ScrollOptions.js +0 -32
  1286. data/node_modules/jsdom/lib/jsdom/living/generated/Text.js +0 -107
  1287. data/node_modules/jsdom/lib/jsdom/living/generated/TouchEvent.js +0 -138
  1288. data/node_modules/jsdom/lib/jsdom/living/generated/TreeWalker.js +0 -189
  1289. data/node_modules/jsdom/lib/jsdom/living/generated/UIEvent.js +0 -134
  1290. data/node_modules/jsdom/lib/jsdom/living/generated/UIEventInit.js +0 -42
  1291. data/node_modules/jsdom/lib/jsdom/living/generated/Window.js +0 -1
  1292. data/node_modules/jsdom/lib/jsdom/living/generated/WindowEventHandlers.js +0 -242
  1293. data/node_modules/jsdom/lib/jsdom/living/generated/XMLDocument.js +0 -82
  1294. data/node_modules/jsdom/lib/jsdom/living/generated/utils.js +0 -40
  1295. data/node_modules/jsdom/lib/jsdom/living/helpers/document-base-url.js +0 -53
  1296. data/node_modules/jsdom/lib/jsdom/living/helpers/focusing.js +0 -74
  1297. data/node_modules/jsdom/lib/jsdom/living/helpers/form-controls.js +0 -43
  1298. data/node_modules/jsdom/lib/jsdom/living/helpers/internal-constants.js +0 -13
  1299. data/node_modules/jsdom/lib/jsdom/living/helpers/ordered-set-parser.js +0 -5
  1300. data/node_modules/jsdom/lib/jsdom/living/helpers/proxied-window-event-handlers.js +0 -11
  1301. data/node_modules/jsdom/lib/jsdom/living/helpers/runtime-script-errors.js +0 -68
  1302. data/node_modules/jsdom/lib/jsdom/living/helpers/selectors.js +0 -30
  1303. data/node_modules/jsdom/lib/jsdom/living/helpers/stylesheets.js +0 -78
  1304. data/node_modules/jsdom/lib/jsdom/living/helpers/traversal.js +0 -51
  1305. data/node_modules/jsdom/lib/jsdom/living/helpers/validate-names.js +0 -62
  1306. data/node_modules/jsdom/lib/jsdom/living/html-collection.js +0 -109
  1307. data/node_modules/jsdom/lib/jsdom/living/index.js +0 -57
  1308. data/node_modules/jsdom/lib/jsdom/living/named-properties-window.js +0 -139
  1309. data/node_modules/jsdom/lib/jsdom/living/navigator/Navigator-impl.js +0 -24
  1310. data/node_modules/jsdom/lib/jsdom/living/navigator/NavigatorConcurrentHardware-impl.js +0 -8
  1311. data/node_modules/jsdom/lib/jsdom/living/navigator/NavigatorCookies-impl.js +0 -7
  1312. data/node_modules/jsdom/lib/jsdom/living/navigator/NavigatorID-impl.js +0 -37
  1313. data/node_modules/jsdom/lib/jsdom/living/navigator/NavigatorLanguage-impl.js +0 -9
  1314. data/node_modules/jsdom/lib/jsdom/living/navigator/NavigatorOnLine-impl.js +0 -7
  1315. data/node_modules/jsdom/lib/jsdom/living/navigator/NavigatorPlugins-impl.js +0 -7
  1316. data/node_modules/jsdom/lib/jsdom/living/node-document-position.js +0 -10
  1317. data/node_modules/jsdom/lib/jsdom/living/node-filter.js +0 -47
  1318. data/node_modules/jsdom/lib/jsdom/living/node-iterator.js +0 -232
  1319. data/node_modules/jsdom/lib/jsdom/living/node-list.js +0 -85
  1320. data/node_modules/jsdom/lib/jsdom/living/node-type.js +0 -16
  1321. data/node_modules/jsdom/lib/jsdom/living/node.js +0 -189
  1322. data/node_modules/jsdom/lib/jsdom/living/nodes/CharacterData-impl.js +0 -78
  1323. data/node_modules/jsdom/lib/jsdom/living/nodes/ChildNode-impl.js +0 -15
  1324. data/node_modules/jsdom/lib/jsdom/living/nodes/Comment-impl.js +0 -17
  1325. data/node_modules/jsdom/lib/jsdom/living/nodes/DOMImplementation-impl.js +0 -176
  1326. data/node_modules/jsdom/lib/jsdom/living/nodes/Document-impl.js +0 -777
  1327. data/node_modules/jsdom/lib/jsdom/living/nodes/DocumentFragment-impl.js +0 -21
  1328. data/node_modules/jsdom/lib/jsdom/living/nodes/DocumentType-impl.js +0 -26
  1329. data/node_modules/jsdom/lib/jsdom/living/nodes/Element-impl.js +0 -491
  1330. data/node_modules/jsdom/lib/jsdom/living/nodes/ElementCSSInlineStyle-impl.js +0 -7
  1331. data/node_modules/jsdom/lib/jsdom/living/nodes/ElementContentEditable-impl.js +0 -7
  1332. data/node_modules/jsdom/lib/jsdom/living/nodes/GlobalEventHandlers-impl.js +0 -7
  1333. data/node_modules/jsdom/lib/jsdom/living/nodes/HTMLAnchorElement-impl.js +0 -25
  1334. data/node_modules/jsdom/lib/jsdom/living/nodes/HTMLAppletElement-impl.js +0 -26
  1335. data/node_modules/jsdom/lib/jsdom/living/nodes/HTMLAreaElement-impl.js +0 -18
  1336. data/node_modules/jsdom/lib/jsdom/living/nodes/HTMLAudioElement-impl.js +0 -9
  1337. data/node_modules/jsdom/lib/jsdom/living/nodes/HTMLBRElement-impl.js +0 -9
  1338. data/node_modules/jsdom/lib/jsdom/living/nodes/HTMLBaseElement-impl.js +0 -27
  1339. data/node_modules/jsdom/lib/jsdom/living/nodes/HTMLBodyElement-impl.js +0 -30
  1340. data/node_modules/jsdom/lib/jsdom/living/nodes/HTMLButtonElement-impl.js +0 -58
  1341. data/node_modules/jsdom/lib/jsdom/living/nodes/HTMLCanvasElement-impl.js +0 -134
  1342. data/node_modules/jsdom/lib/jsdom/living/nodes/HTMLDListElement-impl.js +0 -9
  1343. data/node_modules/jsdom/lib/jsdom/living/nodes/HTMLDataElement-impl.js +0 -9
  1344. data/node_modules/jsdom/lib/jsdom/living/nodes/HTMLDataListElement-impl.js +0 -9
  1345. data/node_modules/jsdom/lib/jsdom/living/nodes/HTMLDialogElement-impl.js +0 -9
  1346. data/node_modules/jsdom/lib/jsdom/living/nodes/HTMLDirectoryElement-impl.js +0 -9
  1347. data/node_modules/jsdom/lib/jsdom/living/nodes/HTMLDivElement-impl.js +0 -9
  1348. data/node_modules/jsdom/lib/jsdom/living/nodes/HTMLElement-impl.js +0 -144
  1349. data/node_modules/jsdom/lib/jsdom/living/nodes/HTMLEmbedElement-impl.js +0 -18
  1350. data/node_modules/jsdom/lib/jsdom/living/nodes/HTMLFieldSetElement-impl.js +0 -14
  1351. data/node_modules/jsdom/lib/jsdom/living/nodes/HTMLFontElement-impl.js +0 -9
  1352. data/node_modules/jsdom/lib/jsdom/living/nodes/HTMLFormElement-impl.js +0 -125
  1353. data/node_modules/jsdom/lib/jsdom/living/nodes/HTMLFrameElement-impl.js +0 -181
  1354. data/node_modules/jsdom/lib/jsdom/living/nodes/HTMLFrameSetElement-impl.js +0 -9
  1355. data/node_modules/jsdom/lib/jsdom/living/nodes/HTMLHRElement-impl.js +0 -9
  1356. data/node_modules/jsdom/lib/jsdom/living/nodes/HTMLHeadElement-impl.js +0 -9
  1357. data/node_modules/jsdom/lib/jsdom/living/nodes/HTMLHeadingElement-impl.js +0 -9
  1358. data/node_modules/jsdom/lib/jsdom/living/nodes/HTMLHtmlElement-impl.js +0 -9
  1359. data/node_modules/jsdom/lib/jsdom/living/nodes/HTMLHyperlinkElementUtils-impl.js +0 -275
  1360. data/node_modules/jsdom/lib/jsdom/living/nodes/HTMLIFrameElement-impl.js +0 -9
  1361. data/node_modules/jsdom/lib/jsdom/living/nodes/HTMLImageElement-impl.js +0 -93
  1362. data/node_modules/jsdom/lib/jsdom/living/nodes/HTMLInputElement-impl.js +0 -396
  1363. data/node_modules/jsdom/lib/jsdom/living/nodes/HTMLLIElement-impl.js +0 -9
  1364. data/node_modules/jsdom/lib/jsdom/living/nodes/HTMLLabelElement-impl.js +0 -72
  1365. data/node_modules/jsdom/lib/jsdom/living/nodes/HTMLLegendElement-impl.js +0 -14
  1366. data/node_modules/jsdom/lib/jsdom/living/nodes/HTMLLinkElement-impl.js +0 -76
  1367. data/node_modules/jsdom/lib/jsdom/living/nodes/HTMLMapElement-impl.js +0 -13
  1368. data/node_modules/jsdom/lib/jsdom/living/nodes/HTMLMediaElement-impl.js +0 -140
  1369. data/node_modules/jsdom/lib/jsdom/living/nodes/HTMLMenuElement-impl.js +0 -9
  1370. data/node_modules/jsdom/lib/jsdom/living/nodes/HTMLMetaElement-impl.js +0 -9
  1371. data/node_modules/jsdom/lib/jsdom/living/nodes/HTMLMeterElement-impl.js +0 -9
  1372. data/node_modules/jsdom/lib/jsdom/living/nodes/HTMLModElement-impl.js +0 -9
  1373. data/node_modules/jsdom/lib/jsdom/living/nodes/HTMLOListElement-impl.js +0 -9
  1374. data/node_modules/jsdom/lib/jsdom/living/nodes/HTMLObjectElement-impl.js +0 -35
  1375. data/node_modules/jsdom/lib/jsdom/living/nodes/HTMLOptGroupElement-impl.js +0 -9
  1376. data/node_modules/jsdom/lib/jsdom/living/nodes/HTMLOptionElement-impl.js +0 -122
  1377. data/node_modules/jsdom/lib/jsdom/living/nodes/HTMLOutputElement-impl.js +0 -9
  1378. data/node_modules/jsdom/lib/jsdom/living/nodes/HTMLParagraphElement-impl.js +0 -9
  1379. data/node_modules/jsdom/lib/jsdom/living/nodes/HTMLParamElement-impl.js +0 -9
  1380. data/node_modules/jsdom/lib/jsdom/living/nodes/HTMLPreElement-impl.js +0 -9
  1381. data/node_modules/jsdom/lib/jsdom/living/nodes/HTMLProgressElement-impl.js +0 -9
  1382. data/node_modules/jsdom/lib/jsdom/living/nodes/HTMLQuoteElement-impl.js +0 -9
  1383. data/node_modules/jsdom/lib/jsdom/living/nodes/HTMLScriptElement-impl.js +0 -139
  1384. data/node_modules/jsdom/lib/jsdom/living/nodes/HTMLSelectElement-impl.js +0 -174
  1385. data/node_modules/jsdom/lib/jsdom/living/nodes/HTMLSourceElement-impl.js +0 -18
  1386. data/node_modules/jsdom/lib/jsdom/living/nodes/HTMLSpanElement-impl.js +0 -9
  1387. data/node_modules/jsdom/lib/jsdom/living/nodes/HTMLStyleElement-impl.js +0 -33
  1388. data/node_modules/jsdom/lib/jsdom/living/nodes/HTMLTableCaptionElement-impl.js +0 -9
  1389. data/node_modules/jsdom/lib/jsdom/living/nodes/HTMLTableCellElement-impl.js +0 -56
  1390. data/node_modules/jsdom/lib/jsdom/living/nodes/HTMLTableColElement-impl.js +0 -9
  1391. data/node_modules/jsdom/lib/jsdom/living/nodes/HTMLTableDataCellElement-impl.js +0 -9
  1392. data/node_modules/jsdom/lib/jsdom/living/nodes/HTMLTableElement-impl.js +0 -148
  1393. data/node_modules/jsdom/lib/jsdom/living/nodes/HTMLTableHeaderCellElement-impl.js +0 -9
  1394. data/node_modules/jsdom/lib/jsdom/living/nodes/HTMLTableRowElement-impl.js +0 -70
  1395. data/node_modules/jsdom/lib/jsdom/living/nodes/HTMLTableSectionElement-impl.js +0 -54
  1396. data/node_modules/jsdom/lib/jsdom/living/nodes/HTMLTemplateElement-impl.js +0 -33
  1397. data/node_modules/jsdom/lib/jsdom/living/nodes/HTMLTextAreaElement-impl.js +0 -184
  1398. data/node_modules/jsdom/lib/jsdom/living/nodes/HTMLTimeElement-impl.js +0 -9
  1399. data/node_modules/jsdom/lib/jsdom/living/nodes/HTMLTitleElement-impl.js +0 -18
  1400. data/node_modules/jsdom/lib/jsdom/living/nodes/HTMLTrackElement-impl.js +0 -21
  1401. data/node_modules/jsdom/lib/jsdom/living/nodes/HTMLUListElement-impl.js +0 -9
  1402. data/node_modules/jsdom/lib/jsdom/living/nodes/HTMLUnknownElement-impl.js +0 -9
  1403. data/node_modules/jsdom/lib/jsdom/living/nodes/HTMLVideoElement-impl.js +0 -26
  1404. data/node_modules/jsdom/lib/jsdom/living/nodes/LinkStyle-impl.js +0 -16
  1405. data/node_modules/jsdom/lib/jsdom/living/nodes/Node-impl.js +0 -475
  1406. data/node_modules/jsdom/lib/jsdom/living/nodes/NonDocumentTypeChildNode-impl.js +0 -28
  1407. data/node_modules/jsdom/lib/jsdom/living/nodes/NonElementParentNode-impl.js +0 -9
  1408. data/node_modules/jsdom/lib/jsdom/living/nodes/ParentNode-impl.js +0 -91
  1409. data/node_modules/jsdom/lib/jsdom/living/nodes/ProcessingInstruction-impl.js +0 -22
  1410. data/node_modules/jsdom/lib/jsdom/living/nodes/Text-impl.js +0 -48
  1411. data/node_modules/jsdom/lib/jsdom/living/nodes/WindowEventHandlers-impl.js +0 -9
  1412. data/node_modules/jsdom/lib/jsdom/living/nodes/XMLDocument-impl.js +0 -4
  1413. data/node_modules/jsdom/lib/jsdom/living/post-message.js +0 -36
  1414. data/node_modules/jsdom/lib/jsdom/living/register-elements.js +0 -306
  1415. data/node_modules/jsdom/lib/jsdom/living/traversal/TreeWalker-impl.js +0 -257
  1416. data/node_modules/jsdom/lib/jsdom/living/window/History-impl.js +0 -145
  1417. data/node_modules/jsdom/lib/jsdom/living/window/History.idl +0 -12
  1418. data/node_modules/jsdom/lib/jsdom/living/window/Location-impl.js +0 -235
  1419. data/node_modules/jsdom/lib/jsdom/living/window/navigation.js +0 -103
  1420. data/node_modules/jsdom/lib/jsdom/living/xhr-sync-worker.js +0 -50
  1421. data/node_modules/jsdom/lib/jsdom/living/xhr-utils.js +0 -327
  1422. data/node_modules/jsdom/lib/jsdom/living/xhr/FormData-impl.js +0 -182
  1423. data/node_modules/jsdom/lib/jsdom/living/xmlhttprequest-event-target.js +0 -23
  1424. data/node_modules/jsdom/lib/jsdom/living/xmlhttprequest-symbols.js +0 -4
  1425. data/node_modules/jsdom/lib/jsdom/living/xmlhttprequest-upload.js +0 -17
  1426. data/node_modules/jsdom/lib/jsdom/living/xmlhttprequest.js +0 -1016
  1427. data/node_modules/jsdom/lib/jsdom/named-properties-tracker.js +0 -156
  1428. data/node_modules/jsdom/lib/jsdom/utils.js +0 -242
  1429. data/node_modules/jsdom/lib/jsdom/virtual-console.js +0 -34
  1430. data/node_modules/jsdom/lib/jsdom/vm-shim.js +0 -106
  1431. data/node_modules/jsdom/lib/jsdom/web-idl/DOMException.js +0 -41
  1432. data/node_modules/jsdom/lib/jsdom/web-idl/dom-exception-table.json +0 -134
  1433. data/node_modules/jsdom/node_modules/request/CHANGELOG.md +0 -662
  1434. data/node_modules/jsdom/node_modules/request/LICENSE +0 -55
  1435. data/node_modules/jsdom/node_modules/request/README.md +0 -1098
  1436. data/node_modules/jsdom/node_modules/request/index.js +0 -156
  1437. data/node_modules/jsdom/node_modules/request/lib/auth.js +0 -168
  1438. data/node_modules/jsdom/node_modules/request/lib/cookies.js +0 -39
  1439. data/node_modules/jsdom/node_modules/request/lib/getProxyFromURI.js +0 -79
  1440. data/node_modules/jsdom/node_modules/request/lib/har.js +0 -215
  1441. data/node_modules/jsdom/node_modules/request/lib/helpers.js +0 -65
  1442. data/node_modules/jsdom/node_modules/request/lib/multipart.js +0 -112
  1443. data/node_modules/jsdom/node_modules/request/lib/oauth.js +0 -147
  1444. data/node_modules/jsdom/node_modules/request/lib/querystring.js +0 -51
  1445. data/node_modules/jsdom/node_modules/request/lib/redirect.js +0 -157
  1446. data/node_modules/jsdom/node_modules/request/lib/tunnel.js +0 -176
  1447. data/node_modules/jsdom/node_modules/request/package.json +0 -163
  1448. data/node_modules/jsdom/node_modules/request/request.js +0 -1475
  1449. data/node_modules/jsdom/package.json +0 -184
  1450. data/node_modules/json-schema/README.md +0 -5
  1451. data/node_modules/json-schema/draft-00/hyper-schema +0 -68
  1452. data/node_modules/json-schema/draft-00/json-ref +0 -26
  1453. data/node_modules/json-schema/draft-00/links +0 -33
  1454. data/node_modules/json-schema/draft-00/schema +0 -155
  1455. data/node_modules/json-schema/draft-01/hyper-schema +0 -68
  1456. data/node_modules/json-schema/draft-01/json-ref +0 -26
  1457. data/node_modules/json-schema/draft-01/links +0 -33
  1458. data/node_modules/json-schema/draft-01/schema +0 -155
  1459. data/node_modules/json-schema/draft-02/hyper-schema +0 -68
  1460. data/node_modules/json-schema/draft-02/json-ref +0 -26
  1461. data/node_modules/json-schema/draft-02/links +0 -35
  1462. data/node_modules/json-schema/draft-02/schema +0 -166
  1463. data/node_modules/json-schema/draft-03/examples/address +0 -20
  1464. data/node_modules/json-schema/draft-03/examples/calendar +0 -53
  1465. data/node_modules/json-schema/draft-03/examples/card +0 -105
  1466. data/node_modules/json-schema/draft-03/examples/geo +0 -8
  1467. data/node_modules/json-schema/draft-03/examples/interfaces +0 -23
  1468. data/node_modules/json-schema/draft-03/hyper-schema +0 -60
  1469. data/node_modules/json-schema/draft-03/json-ref +0 -26
  1470. data/node_modules/json-schema/draft-03/links +0 -35
  1471. data/node_modules/json-schema/draft-03/schema +0 -174
  1472. data/node_modules/json-schema/draft-04/hyper-schema +0 -60
  1473. data/node_modules/json-schema/draft-04/links +0 -41
  1474. data/node_modules/json-schema/draft-04/schema +0 -189
  1475. data/node_modules/json-schema/draft-zyp-json-schema-03.xml +0 -1120
  1476. data/node_modules/json-schema/draft-zyp-json-schema-04.xml +0 -1072
  1477. data/node_modules/json-schema/lib/links.js +0 -66
  1478. data/node_modules/json-schema/lib/validate.js +0 -273
  1479. data/node_modules/json-schema/package.json +0 -100
  1480. data/node_modules/json-schema/test/tests.js +0 -95
  1481. data/node_modules/json-stringify-safe/.npmignore +0 -1
  1482. data/node_modules/json-stringify-safe/CHANGELOG.md +0 -14
  1483. data/node_modules/json-stringify-safe/LICENSE +0 -15
  1484. data/node_modules/json-stringify-safe/Makefile +0 -35
  1485. data/node_modules/json-stringify-safe/README.md +0 -52
  1486. data/node_modules/json-stringify-safe/package.json +0 -102
  1487. data/node_modules/json-stringify-safe/stringify.js +0 -27
  1488. data/node_modules/json-stringify-safe/test/mocha.opts +0 -2
  1489. data/node_modules/json-stringify-safe/test/stringify_test.js +0 -246
  1490. data/node_modules/jsonpointer/.travis.yml +0 -7
  1491. data/node_modules/jsonpointer/LICENSE.md +0 -21
  1492. data/node_modules/jsonpointer/README.md +0 -39
  1493. data/node_modules/jsonpointer/benchmark.js +0 -56
  1494. data/node_modules/jsonpointer/jsonpointer.js +0 -93
  1495. data/node_modules/jsonpointer/package.json +0 -109
  1496. data/node_modules/jsonpointer/test.js +0 -131
  1497. data/node_modules/jsprim/CHANGES.md +0 -39
  1498. data/node_modules/jsprim/LICENSE +0 -19
  1499. data/node_modules/jsprim/README.md +0 -237
  1500. data/node_modules/jsprim/lib/jsprim.js +0 -488
  1501. data/node_modules/jsprim/package.json +0 -85
  1502. data/node_modules/levn/LICENSE +0 -22
  1503. data/node_modules/levn/README.md +0 -196
  1504. data/node_modules/levn/lib/cast.js +0 -298
  1505. data/node_modules/levn/lib/coerce.js +0 -285
  1506. data/node_modules/levn/lib/index.js +0 -22
  1507. data/node_modules/levn/lib/parse-string.js +0 -113
  1508. data/node_modules/levn/lib/parse.js +0 -102
  1509. data/node_modules/levn/package.json +0 -108
  1510. data/node_modules/mime-db/HISTORY.md +0 -375
  1511. data/node_modules/mime-db/LICENSE +0 -22
  1512. data/node_modules/mime-db/README.md +0 -82
  1513. data/node_modules/mime-db/db.json +0 -6712
  1514. data/node_modules/mime-db/index.js +0 -11
  1515. data/node_modules/mime-db/package.json +0 -137
  1516. data/node_modules/mime-types/HISTORY.md +0 -210
  1517. data/node_modules/mime-types/LICENSE +0 -23
  1518. data/node_modules/mime-types/README.md +0 -103
  1519. data/node_modules/mime-types/index.js +0 -188
  1520. data/node_modules/mime-types/package.json +0 -127
  1521. data/node_modules/nwmatcher/LICENSE +0 -22
  1522. data/node_modules/nwmatcher/README.md +0 -107
  1523. data/node_modules/nwmatcher/package.json +0 -99
  1524. data/node_modules/nwmatcher/src/modules/nwmatcher-cache.js +0 -187
  1525. data/node_modules/nwmatcher/src/modules/nwmatcher-jquery.js +0 -126
  1526. data/node_modules/nwmatcher/src/modules/nwmatcher-pseudos.js +0 -273
  1527. data/node_modules/nwmatcher/src/modules/nwmatcher-shortcuts.js +0 -35
  1528. data/node_modules/nwmatcher/src/modules/nwmatcher-traversal.js +0 -90
  1529. data/node_modules/nwmatcher/src/modules/nwmatcher-webforms.js +0 -104
  1530. data/node_modules/nwmatcher/src/nwmatcher-base.js +0 -785
  1531. data/node_modules/nwmatcher/src/nwmatcher-noqsa.js +0 -962
  1532. data/node_modules/nwmatcher/src/nwmatcher.js +0 -1780
  1533. data/node_modules/oauth-sign/LICENSE +0 -55
  1534. data/node_modules/oauth-sign/README.md +0 -4
  1535. data/node_modules/oauth-sign/index.js +0 -136
  1536. data/node_modules/oauth-sign/package.json +0 -98
  1537. data/node_modules/optionator/CHANGELOG.md +0 -52
  1538. data/node_modules/optionator/LICENSE +0 -22
  1539. data/node_modules/optionator/README.md +0 -236
  1540. data/node_modules/optionator/lib/help.js +0 -247
  1541. data/node_modules/optionator/lib/index.js +0 -465
  1542. data/node_modules/optionator/lib/util.js +0 -54
  1543. data/node_modules/optionator/package.json +0 -109
  1544. data/node_modules/parse5/CHANGELOG.md +0 -69
  1545. data/node_modules/parse5/LICENSE +0 -19
  1546. data/node_modules/parse5/README.md +0 -247
  1547. data/node_modules/parse5/docs/build/index.md +0 -963
  1548. data/node_modules/parse5/index.js +0 -12
  1549. data/node_modules/parse5/lib/common/doctype.js +0 -134
  1550. data/node_modules/parse5/lib/common/foreign_content.js +0 -257
  1551. data/node_modules/parse5/lib/common/html.js +0 -268
  1552. data/node_modules/parse5/lib/common/unicode.js +0 -48
  1553. data/node_modules/parse5/lib/common/utils.js +0 -13
  1554. data/node_modules/parse5/lib/jsdom/jsdom_parser.js +0 -39
  1555. data/node_modules/parse5/lib/jsdom/parsing_unit.js +0 -53
  1556. data/node_modules/parse5/lib/serialization/serializer.js +0 -178
  1557. data/node_modules/parse5/lib/simple_api/simple_api_parser.js +0 -107
  1558. data/node_modules/parse5/lib/simple_api/tokenizer_proxy.js +0 -122
  1559. data/node_modules/parse5/lib/tokenization/location_info_mixin.js +0 -80
  1560. data/node_modules/parse5/lib/tokenization/named_entity_trie.js +0 -6
  1561. data/node_modules/parse5/lib/tokenization/preprocessor.js +0 -115
  1562. data/node_modules/parse5/lib/tokenization/tokenizer.js +0 -2317
  1563. data/node_modules/parse5/lib/tree_adapters/default.js +0 -200
  1564. data/node_modules/parse5/lib/tree_adapters/htmlparser2.js +0 -317
  1565. data/node_modules/parse5/lib/tree_construction/formatting_element_list.js +0 -167
  1566. data/node_modules/parse5/lib/tree_construction/location_info_mixin.js +0 -197
  1567. data/node_modules/parse5/lib/tree_construction/open_element_stack.js +0 -379
  1568. data/node_modules/parse5/lib/tree_construction/parser.js +0 -2827
  1569. data/node_modules/parse5/package.json +0 -125
  1570. data/node_modules/pinkie-promise/index.js +0 -3
  1571. data/node_modules/pinkie-promise/license +0 -21
  1572. data/node_modules/pinkie-promise/package.json +0 -102
  1573. data/node_modules/pinkie-promise/readme.md +0 -28
  1574. data/node_modules/pinkie/index.js +0 -292
  1575. data/node_modules/pinkie/license +0 -21
  1576. data/node_modules/pinkie/package.json +0 -100
  1577. data/node_modules/pinkie/readme.md +0 -83
  1578. data/node_modules/prelude-ls/CHANGELOG.md +0 -99
  1579. data/node_modules/prelude-ls/LICENSE +0 -22
  1580. data/node_modules/prelude-ls/README.md +0 -15
  1581. data/node_modules/prelude-ls/lib/Func.js +0 -65
  1582. data/node_modules/prelude-ls/lib/List.js +0 -686
  1583. data/node_modules/prelude-ls/lib/Num.js +0 -130
  1584. data/node_modules/prelude-ls/lib/Obj.js +0 -154
  1585. data/node_modules/prelude-ls/lib/Str.js +0 -92
  1586. data/node_modules/prelude-ls/lib/index.js +0 -178
  1587. data/node_modules/prelude-ls/package.json +0 -116
  1588. data/node_modules/punycode/LICENSE-MIT.txt +0 -20
  1589. data/node_modules/punycode/README.md +0 -176
  1590. data/node_modules/punycode/package.json +0 -127
  1591. data/node_modules/punycode/punycode.js +0 -533
  1592. data/node_modules/qs/.eslintignore +0 -1
  1593. data/node_modules/qs/.eslintrc +0 -19
  1594. data/node_modules/qs/CHANGELOG.md +0 -144
  1595. data/node_modules/qs/CONTRIBUTING.md +0 -1
  1596. data/node_modules/qs/LICENSE +0 -28
  1597. data/node_modules/qs/README.md +0 -398
  1598. data/node_modules/qs/dist/qs.js +0 -574
  1599. data/node_modules/qs/lib/formats.js +0 -18
  1600. data/node_modules/qs/lib/index.js +0 -11
  1601. data/node_modules/qs/lib/parse.js +0 -166
  1602. data/node_modules/qs/lib/stringify.js +0 -187
  1603. data/node_modules/qs/lib/utils.js +0 -180
  1604. data/node_modules/qs/package.json +0 -121
  1605. data/node_modules/qs/test/.eslintrc +0 -9
  1606. data/node_modules/qs/test/index.js +0 -7
  1607. data/node_modules/qs/test/parse.js +0 -459
  1608. data/node_modules/qs/test/stringify.js +0 -538
  1609. data/node_modules/qs/test/utils.js +0 -22
  1610. data/node_modules/sax/LICENSE +0 -41
  1611. data/node_modules/sax/LICENSE-W3C.html +0 -188
  1612. data/node_modules/sax/README.md +0 -225
  1613. data/node_modules/sax/lib/sax.js +0 -1576
  1614. data/node_modules/sax/package.json +0 -133
  1615. data/node_modules/sntp/.npmignore +0 -18
  1616. data/node_modules/sntp/.travis.yml +0 -5
  1617. data/node_modules/sntp/LICENSE +0 -28
  1618. data/node_modules/sntp/Makefile +0 -9
  1619. data/node_modules/sntp/README.md +0 -68
  1620. data/node_modules/sntp/examples/offset.js +0 -16
  1621. data/node_modules/sntp/examples/time.js +0 -25
  1622. data/node_modules/sntp/index.js +0 -1
  1623. data/node_modules/sntp/lib/index.js +0 -412
  1624. data/node_modules/sntp/package.json +0 -98
  1625. data/node_modules/sntp/test/index.js +0 -435
  1626. data/node_modules/source-map/.npmignore +0 -2
  1627. data/node_modules/source-map/.travis.yml +0 -4
  1628. data/node_modules/source-map/CHANGELOG.md +0 -201
  1629. data/node_modules/source-map/LICENSE +0 -28
  1630. data/node_modules/source-map/Makefile.dryice.js +0 -166
  1631. data/node_modules/source-map/README.md +0 -479
  1632. data/node_modules/source-map/build/assert-shim.js +0 -56
  1633. data/node_modules/source-map/build/mini-require.js +0 -152
  1634. data/node_modules/source-map/build/prefix-source-map.jsm +0 -20
  1635. data/node_modules/source-map/build/prefix-utils.jsm +0 -18
  1636. data/node_modules/source-map/build/suffix-browser.js +0 -8
  1637. data/node_modules/source-map/build/suffix-source-map.jsm +0 -6
  1638. data/node_modules/source-map/build/suffix-utils.jsm +0 -21
  1639. data/node_modules/source-map/build/test-prefix.js +0 -8
  1640. data/node_modules/source-map/build/test-suffix.js +0 -3
  1641. data/node_modules/source-map/lib/source-map.js +0 -8
  1642. data/node_modules/source-map/lib/source-map/array-set.js +0 -97
  1643. data/node_modules/source-map/lib/source-map/base64-vlq.js +0 -142
  1644. data/node_modules/source-map/lib/source-map/base64.js +0 -42
  1645. data/node_modules/source-map/lib/source-map/basic-source-map-consumer.js +0 -420
  1646. data/node_modules/source-map/lib/source-map/binary-search.js +0 -80
  1647. data/node_modules/source-map/lib/source-map/indexed-source-map-consumer.js +0 -303
  1648. data/node_modules/source-map/lib/source-map/mapping-list.js +0 -86
  1649. data/node_modules/source-map/lib/source-map/source-map-consumer.js +0 -222
  1650. data/node_modules/source-map/lib/source-map/source-map-generator.js +0 -400
  1651. data/node_modules/source-map/lib/source-map/source-node.js +0 -414
  1652. data/node_modules/source-map/lib/source-map/util.js +0 -319
  1653. data/node_modules/source-map/package.json +0 -223
  1654. data/node_modules/source-map/test/run-tests.js +0 -62
  1655. data/node_modules/source-map/test/source-map/test-api.js +0 -26
  1656. data/node_modules/source-map/test/source-map/test-array-set.js +0 -104
  1657. data/node_modules/source-map/test/source-map/test-base64-vlq.js +0 -23
  1658. data/node_modules/source-map/test/source-map/test-base64.js +0 -35
  1659. data/node_modules/source-map/test/source-map/test-binary-search.js +0 -54
  1660. data/node_modules/source-map/test/source-map/test-dog-fooding.js +0 -84
  1661. data/node_modules/source-map/test/source-map/test-source-map-consumer.js +0 -874
  1662. data/node_modules/source-map/test/source-map/test-source-map-generator.js +0 -679
  1663. data/node_modules/source-map/test/source-map/test-source-node.js +0 -612
  1664. data/node_modules/source-map/test/source-map/test-util.js +0 -216
  1665. data/node_modules/source-map/test/source-map/util.js +0 -299
  1666. data/node_modules/sshpk/.npmignore +0 -9
  1667. data/node_modules/sshpk/.travis.yml +0 -11
  1668. data/node_modules/sshpk/LICENSE +0 -18
  1669. data/node_modules/sshpk/README.md +0 -666
  1670. data/node_modules/sshpk/bin/sshpk-conv +0 -201
  1671. data/node_modules/sshpk/bin/sshpk-sign +0 -191
  1672. data/node_modules/sshpk/bin/sshpk-verify +0 -166
  1673. data/node_modules/sshpk/lib/algs.js +0 -168
  1674. data/node_modules/sshpk/lib/certificate.js +0 -291
  1675. data/node_modules/sshpk/lib/dhe.js +0 -311
  1676. data/node_modules/sshpk/lib/ed-compat.js +0 -96
  1677. data/node_modules/sshpk/lib/errors.js +0 -84
  1678. data/node_modules/sshpk/lib/fingerprint.js +0 -161
  1679. data/node_modules/sshpk/lib/formats/auto.js +0 -73
  1680. data/node_modules/sshpk/lib/formats/openssh-cert.js +0 -289
  1681. data/node_modules/sshpk/lib/formats/pem.js +0 -186
  1682. data/node_modules/sshpk/lib/formats/pkcs1.js +0 -320
  1683. data/node_modules/sshpk/lib/formats/pkcs8.js +0 -505
  1684. data/node_modules/sshpk/lib/formats/rfc4253.js +0 -146
  1685. data/node_modules/sshpk/lib/formats/ssh-private.js +0 -261
  1686. data/node_modules/sshpk/lib/formats/ssh.js +0 -114
  1687. data/node_modules/sshpk/lib/formats/x509-pem.js +0 -77
  1688. data/node_modules/sshpk/lib/formats/x509.js +0 -484
  1689. data/node_modules/sshpk/lib/identity.js +0 -255
  1690. data/node_modules/sshpk/lib/index.js +0 -38
  1691. data/node_modules/sshpk/lib/key.js +0 -270
  1692. data/node_modules/sshpk/lib/private-key.js +0 -231
  1693. data/node_modules/sshpk/lib/signature.js +0 -245
  1694. data/node_modules/sshpk/lib/ssh-buffer.js +0 -148
  1695. data/node_modules/sshpk/lib/utils.js +0 -288
  1696. data/node_modules/sshpk/man/man1/sshpk-conv.1 +0 -135
  1697. data/node_modules/sshpk/man/man1/sshpk-sign.1 +0 -81
  1698. data/node_modules/sshpk/man/man1/sshpk-verify.1 +0 -68
  1699. data/node_modules/sshpk/node_modules/assert-plus/AUTHORS +0 -6
  1700. data/node_modules/sshpk/node_modules/assert-plus/CHANGES.md +0 -14
  1701. data/node_modules/sshpk/node_modules/assert-plus/README.md +0 -162
  1702. data/node_modules/sshpk/node_modules/assert-plus/assert.js +0 -211
  1703. data/node_modules/sshpk/node_modules/assert-plus/package.json +0 -115
  1704. data/node_modules/sshpk/package.json +0 -135
  1705. data/node_modules/stringstream/.npmignore +0 -15
  1706. data/node_modules/stringstream/.travis.yml +0 -4
  1707. data/node_modules/stringstream/LICENSE.txt +0 -22
  1708. data/node_modules/stringstream/README.md +0 -38
  1709. data/node_modules/stringstream/example.js +0 -27
  1710. data/node_modules/stringstream/package.json +0 -85
  1711. data/node_modules/stringstream/stringstream.js +0 -102
  1712. data/node_modules/strip-ansi/index.js +0 -6
  1713. data/node_modules/strip-ansi/license +0 -21
  1714. data/node_modules/strip-ansi/package.json +0 -123
  1715. data/node_modules/strip-ansi/readme.md +0 -33
  1716. data/node_modules/supports-color/index.js +0 -50
  1717. data/node_modules/supports-color/license +0 -21
  1718. data/node_modules/supports-color/package.json +0 -113
  1719. data/node_modules/supports-color/readme.md +0 -36
  1720. data/node_modules/symbol-tree/.jscsrc +0 -55
  1721. data/node_modules/symbol-tree/.npmignore +0 -6
  1722. data/node_modules/symbol-tree/LICENSE +0 -21
  1723. data/node_modules/symbol-tree/README.md +0 -68
  1724. data/node_modules/symbol-tree/api.md +0 -441
  1725. data/node_modules/symbol-tree/lib/SymbolTree.js +0 -834
  1726. data/node_modules/symbol-tree/lib/SymbolTreeNode.js +0 -54
  1727. data/node_modules/symbol-tree/lib/TreeIterator.js +0 -69
  1728. data/node_modules/symbol-tree/lib/TreePosition.js +0 -10
  1729. data/node_modules/symbol-tree/package.json +0 -121
  1730. data/node_modules/symbol-tree/test/SymbolTree.js +0 -1189
  1731. data/node_modules/tough-cookie/LICENSE +0 -27
  1732. data/node_modules/tough-cookie/README.md +0 -506
  1733. data/node_modules/tough-cookie/lib/cookie.js +0 -1336
  1734. data/node_modules/tough-cookie/lib/memstore.js +0 -170
  1735. data/node_modules/tough-cookie/lib/pathMatch.js +0 -61
  1736. data/node_modules/tough-cookie/lib/permuteDomain.js +0 -56
  1737. data/node_modules/tough-cookie/lib/pubsuffix.js +0 -98
  1738. data/node_modules/tough-cookie/lib/store.js +0 -71
  1739. data/node_modules/tough-cookie/package.json +0 -136
  1740. data/node_modules/tr46/.npmignore +0 -4
  1741. data/node_modules/tr46/index.js +0 -193
  1742. data/node_modules/tr46/lib/.gitkeep +0 -0
  1743. data/node_modules/tr46/lib/mappingTable.json +0 -1
  1744. data/node_modules/tr46/package.json +0 -91
  1745. data/node_modules/tunnel-agent/LICENSE +0 -55
  1746. data/node_modules/tunnel-agent/README.md +0 -4
  1747. data/node_modules/tunnel-agent/index.js +0 -243
  1748. data/node_modules/tunnel-agent/package.json +0 -100
  1749. data/node_modules/tweetnacl/.npmignore +0 -4
  1750. data/node_modules/tweetnacl/CHANGELOG.md +0 -209
  1751. data/node_modules/tweetnacl/COPYING.txt +0 -9
  1752. data/node_modules/tweetnacl/ISSUE_TEMPLATE.md +0 -3
  1753. data/node_modules/tweetnacl/README.md +0 -477
  1754. data/node_modules/tweetnacl/nacl-fast.js +0 -2388
  1755. data/node_modules/tweetnacl/nacl-fast.min.js +0 -2
  1756. data/node_modules/tweetnacl/nacl.d.ts +0 -98
  1757. data/node_modules/tweetnacl/nacl.js +0 -1175
  1758. data/node_modules/tweetnacl/nacl.min.js +0 -1
  1759. data/node_modules/tweetnacl/package.json +0 -121
  1760. data/node_modules/type-check/LICENSE +0 -22
  1761. data/node_modules/type-check/README.md +0 -210
  1762. data/node_modules/type-check/lib/check.js +0 -126
  1763. data/node_modules/type-check/lib/index.js +0 -16
  1764. data/node_modules/type-check/lib/parse-type.js +0 -196
  1765. data/node_modules/type-check/package.json +0 -102
  1766. data/node_modules/type-detect/.npmignore +0 -11
  1767. data/node_modules/type-detect/History.md +0 -52
  1768. data/node_modules/type-detect/README.md +0 -226
  1769. data/node_modules/type-detect/ReleaseNotes.md +0 -46
  1770. data/node_modules/type-detect/index.js +0 -1
  1771. data/node_modules/type-detect/lib/type.js +0 -134
  1772. data/node_modules/type-detect/package.json +0 -93
  1773. data/node_modules/uuid/.npmignore +0 -8
  1774. data/node_modules/uuid/.travis.yml +0 -5
  1775. data/node_modules/uuid/AUTHORS +0 -5
  1776. data/node_modules/uuid/HISTORY.md +0 -28
  1777. data/node_modules/uuid/LICENSE.md +0 -21
  1778. data/node_modules/uuid/README.md +0 -132
  1779. data/node_modules/uuid/bin/uuid +0 -26
  1780. data/node_modules/uuid/index.js +0 -8
  1781. data/node_modules/uuid/lib/bytesToUuid.js +0 -23
  1782. data/node_modules/uuid/lib/rng-browser.js +0 -33
  1783. data/node_modules/uuid/lib/rng.js +0 -10
  1784. data/node_modules/uuid/package.json +0 -122
  1785. data/node_modules/uuid/test/mocha.opts +0 -3
  1786. data/node_modules/uuid/test/test.js +0 -96
  1787. data/node_modules/uuid/v1.js +0 -103
  1788. data/node_modules/uuid/v4.js +0 -29
  1789. data/node_modules/verror/.gitmodules +0 -0
  1790. data/node_modules/verror/.npmignore +0 -1
  1791. data/node_modules/verror/LICENSE +0 -19
  1792. data/node_modules/verror/Makefile +0 -35
  1793. data/node_modules/verror/Makefile.targ +0 -285
  1794. data/node_modules/verror/README.md +0 -120
  1795. data/node_modules/verror/examples/levels-verror.js +0 -36
  1796. data/node_modules/verror/examples/levels-werror.js +0 -34
  1797. data/node_modules/verror/examples/varargs.js +0 -6
  1798. data/node_modules/verror/examples/verror.js +0 -13
  1799. data/node_modules/verror/examples/werror.js +0 -14
  1800. data/node_modules/verror/jsl.node.conf +0 -139
  1801. data/node_modules/verror/lib/verror.js +0 -157
  1802. data/node_modules/verror/package.json +0 -78
  1803. data/node_modules/verror/tests/tst.inherit.js +0 -100
  1804. data/node_modules/verror/tests/tst.verror.js +0 -156
  1805. data/node_modules/verror/tests/tst.werror.js +0 -179
  1806. data/node_modules/webidl-conversions/LICENSE.md +0 -12
  1807. data/node_modules/webidl-conversions/README.md +0 -53
  1808. data/node_modules/webidl-conversions/lib/index.js +0 -189
  1809. data/node_modules/webidl-conversions/package.json +0 -96
  1810. data/node_modules/whatwg-encoding/LICENSE.txt +0 -19
  1811. data/node_modules/whatwg-encoding/lib/labels-to-names.json +0 -207
  1812. data/node_modules/whatwg-encoding/lib/supported-names.json +0 -37
  1813. data/node_modules/whatwg-encoding/lib/whatwg-encoding.js +0 -47
  1814. data/node_modules/whatwg-encoding/node_modules/iconv-lite/.npmignore +0 -6
  1815. data/node_modules/whatwg-encoding/node_modules/iconv-lite/.travis.yml +0 -20
  1816. data/node_modules/whatwg-encoding/node_modules/iconv-lite/Changelog.md +0 -93
  1817. data/node_modules/whatwg-encoding/node_modules/iconv-lite/LICENSE +0 -21
  1818. data/node_modules/whatwg-encoding/node_modules/iconv-lite/README.md +0 -157
  1819. data/node_modules/whatwg-encoding/node_modules/iconv-lite/encodings/dbcs-codec.js +0 -554
  1820. data/node_modules/whatwg-encoding/node_modules/iconv-lite/encodings/dbcs-data.js +0 -170
  1821. data/node_modules/whatwg-encoding/node_modules/iconv-lite/encodings/index.js +0 -22
  1822. data/node_modules/whatwg-encoding/node_modules/iconv-lite/encodings/internal.js +0 -187
  1823. data/node_modules/whatwg-encoding/node_modules/iconv-lite/encodings/sbcs-codec.js +0 -72
  1824. data/node_modules/whatwg-encoding/node_modules/iconv-lite/encodings/sbcs-data-generated.js +0 -451
  1825. data/node_modules/whatwg-encoding/node_modules/iconv-lite/encodings/sbcs-data.js +0 -169
  1826. data/node_modules/whatwg-encoding/node_modules/iconv-lite/encodings/tables/big5-added.json +0 -122
  1827. data/node_modules/whatwg-encoding/node_modules/iconv-lite/encodings/tables/cp936.json +0 -264
  1828. data/node_modules/whatwg-encoding/node_modules/iconv-lite/encodings/tables/cp949.json +0 -273
  1829. data/node_modules/whatwg-encoding/node_modules/iconv-lite/encodings/tables/cp950.json +0 -177
  1830. data/node_modules/whatwg-encoding/node_modules/iconv-lite/encodings/tables/eucjp.json +0 -182
  1831. data/node_modules/whatwg-encoding/node_modules/iconv-lite/encodings/tables/gb18030-ranges.json +0 -1
  1832. data/node_modules/whatwg-encoding/node_modules/iconv-lite/encodings/tables/gbk-added.json +0 -55
  1833. data/node_modules/whatwg-encoding/node_modules/iconv-lite/encodings/tables/shiftjis.json +0 -125
  1834. data/node_modules/whatwg-encoding/node_modules/iconv-lite/encodings/utf16.js +0 -174
  1835. data/node_modules/whatwg-encoding/node_modules/iconv-lite/encodings/utf7.js +0 -289
  1836. data/node_modules/whatwg-encoding/node_modules/iconv-lite/lib/bom-handling.js +0 -52
  1837. data/node_modules/whatwg-encoding/node_modules/iconv-lite/lib/extend-node.js +0 -214
  1838. data/node_modules/whatwg-encoding/node_modules/iconv-lite/lib/index.js +0 -141
  1839. data/node_modules/whatwg-encoding/node_modules/iconv-lite/lib/streams.js +0 -120
  1840. data/node_modules/whatwg-encoding/node_modules/iconv-lite/package.json +0 -153
  1841. data/node_modules/whatwg-encoding/package.json +0 -101
  1842. data/node_modules/whatwg-url/.eslintignore +0 -3
  1843. data/node_modules/whatwg-url/LICENSE.txt +0 -21
  1844. data/node_modules/whatwg-url/README.md +0 -66
  1845. data/node_modules/whatwg-url/lib/URL-impl.js +0 -216
  1846. data/node_modules/whatwg-url/lib/URL.js +0 -209
  1847. data/node_modules/whatwg-url/lib/public-api.js +0 -11
  1848. data/node_modules/whatwg-url/lib/url-state-machine.js +0 -1173
  1849. data/node_modules/whatwg-url/lib/utils.js +0 -20
  1850. data/node_modules/whatwg-url/package.json +0 -103
  1851. data/node_modules/wordwrap/LICENSE +0 -18
  1852. data/node_modules/wordwrap/README.markdown +0 -70
  1853. data/node_modules/wordwrap/example/center.js +0 -10
  1854. data/node_modules/wordwrap/example/meat.js +0 -3
  1855. data/node_modules/wordwrap/index.js +0 -76
  1856. data/node_modules/wordwrap/package.json +0 -94
  1857. data/node_modules/wordwrap/test/break.js +0 -32
  1858. data/node_modules/wordwrap/test/idleness.txt +0 -63
  1859. data/node_modules/wordwrap/test/wrap.js +0 -33
  1860. data/node_modules/xml-name-validator/LICENSE.txt +0 -19
  1861. data/node_modules/xml-name-validator/README.md +0 -36
  1862. data/node_modules/xml-name-validator/lib/generated-parser.js +0 -504
  1863. data/node_modules/xml-name-validator/lib/grammar.pegjs +0 -35
  1864. data/node_modules/xml-name-validator/lib/xml-name-validator.js +0 -17
  1865. data/node_modules/xml-name-validator/package.json +0 -97
  1866. data/node_modules/xtend/.jshintrc +0 -30
  1867. data/node_modules/xtend/.npmignore +0 -1
  1868. data/node_modules/xtend/LICENCE +0 -19
  1869. data/node_modules/xtend/Makefile +0 -4
  1870. data/node_modules/xtend/README.md +0 -32
  1871. data/node_modules/xtend/immutable.js +0 -19
  1872. data/node_modules/xtend/mutable.js +0 -17
  1873. data/node_modules/xtend/package.json +0 -117
  1874. data/node_modules/xtend/test.js +0 -83
@@ -1,13 +0,0 @@
1
- "use strict";
2
-
3
- module.exports = function (nameForErrorMessage, window) {
4
- if (!window) {
5
- // Do nothing for window-less documents.
6
- return;
7
- }
8
-
9
- const error = new Error(`Not implemented: ${nameForErrorMessage}`);
10
- error.type = "not implemented";
11
-
12
- window._virtualConsole.emit("jsdomError", error);
13
- };
@@ -1,275 +0,0 @@
1
- "use strict";
2
-
3
- const parseContentType = require("content-type-parser");
4
- const sniffHTMLEncoding = require("html-encoding-sniffer");
5
- const whatwgEncoding = require("whatwg-encoding");
6
- const parseDataUrl = require("../utils").parseDataUrl;
7
- const fs = require("fs");
8
- const request = require("request");
9
- const documentBaseURLSerialized = require("../living/helpers/document-base-url").documentBaseURLSerialized;
10
- const NODE_TYPE = require("../living/node-type");
11
-
12
- /* eslint-disable no-restricted-modules */
13
- // TODO: stop using the built-in URL in favor of the spec-compliant whatwg-url package
14
- // This legacy usage is in the process of being purged.
15
- const URL = require("url");
16
- /* eslint-enable no-restricted-modules */
17
-
18
- const IS_BROWSER = Object.prototype.toString.call(process) !== "[object process]";
19
-
20
- function createResourceLoadHandler(element, resourceUrl, document, loadCallback) {
21
- if (loadCallback === undefined) {
22
- loadCallback = () => {
23
- // do nothing
24
- };
25
- }
26
- return (err, data, response) => {
27
- const ev = document.createEvent("HTMLEvents");
28
-
29
- if (!err) {
30
- try {
31
- loadCallback.call(element, data, resourceUrl, response);
32
- ev.initEvent("load", false, false);
33
- } catch (e) {
34
- err = e;
35
- }
36
- }
37
-
38
- if (err) {
39
- if (!err.isAbortError) {
40
- ev.initEvent("error", false, false);
41
- ev.error = err;
42
- element.dispatchEvent(ev);
43
-
44
- const error = new Error(`Could not load ${element.localName}: "${resourceUrl}"`);
45
- error.detail = err;
46
- error.type = "resource loading";
47
-
48
- document._defaultView._virtualConsole.emit("jsdomError", error);
49
- }
50
- } else {
51
- element.dispatchEvent(ev);
52
- }
53
- };
54
- }
55
-
56
- exports.readFile = function (filePath, options, callback) {
57
- const readableStream = fs.createReadStream(filePath);
58
-
59
- let data = new Buffer(0);
60
-
61
- readableStream.on("error", callback);
62
-
63
- readableStream.on("data", chunk => {
64
- data = Buffer.concat([data, chunk]);
65
- });
66
-
67
- const defaultEncoding = options.defaultEncoding;
68
- const detectMetaCharset = options.detectMetaCharset;
69
-
70
- readableStream.on("end", () => {
71
- // Not passing default encoding means binary
72
- if (defaultEncoding) {
73
- const encoding = detectMetaCharset ? sniffHTMLEncoding(data, { defaultEncoding }) :
74
- whatwgEncoding.getBOMEncoding(data) || defaultEncoding;
75
- const decoded = whatwgEncoding.decode(data, encoding);
76
- callback(null, decoded, { headers: { "content-type": "text/plain;charset=" + encoding } });
77
- } else {
78
- callback(null, data);
79
- }
80
- });
81
-
82
- return {
83
- abort() {
84
- readableStream.destroy();
85
- const error = new Error("request canceled by user");
86
- error.isAbortError = true;
87
- callback(error);
88
- }
89
- };
90
- };
91
-
92
- function readDataUrl(dataUrl, options, callback) {
93
- const defaultEncoding = options.defaultEncoding;
94
- try {
95
- const data = parseDataUrl(dataUrl);
96
- // If default encoding does not exist, pass on binary data.
97
- if (defaultEncoding) {
98
- const contentType = parseContentType(data.type) || parseContentType("text/plain");
99
- const sniffOptions = {
100
- transportLayerEncodingLabel: contentType.get("charset"),
101
- defaultEncoding
102
- };
103
-
104
- const encoding = options.detectMetaCharset ? sniffHTMLEncoding(data.buffer, sniffOptions) :
105
- whatwgEncoding.getBOMEncoding(data.buffer) ||
106
- whatwgEncoding.labelToName(contentType.get("charset")) || defaultEncoding;
107
- const decoded = whatwgEncoding.decode(data.buffer, encoding);
108
-
109
- contentType.set("charset", encoding);
110
- data.type = contentType.toString();
111
-
112
- callback(null, decoded, { headers: { "content-type": data.type } });
113
- } else {
114
- callback(null, data.buffer, { headers: { "content-type": data.type } });
115
- }
116
- } catch (err) {
117
- callback(err, null);
118
- }
119
- return null;
120
- }
121
-
122
- // NOTE: request wraps tough-cookie cookie jar
123
- // (see: https://github.com/request/request/blob/master/lib/cookies.js).
124
- // Therefore, to pass our cookie jar to the request, we need to create
125
- // request's wrapper and monkey patch it with our jar.
126
- function wrapCookieJarForRequest(cookieJar) {
127
- const jarWrapper = request.jar();
128
- jarWrapper._jar = cookieJar;
129
- return jarWrapper;
130
- }
131
-
132
- function fetch(urlObj, options, callback) {
133
- if (urlObj.protocol === "data:") {
134
- return readDataUrl(urlObj.href, options, callback);
135
- } else if (urlObj.hostname) {
136
- return exports.download(urlObj, options, callback);
137
- }
138
- const filePath = urlObj.pathname
139
- .replace(/^file:\/\//, "")
140
- .replace(/^\/([a-z]):\//i, "$1:/")
141
- .replace(/%20/g, " ");
142
- return exports.readFile(filePath, options, callback);
143
- }
144
-
145
- exports.enqueue = function (element, resourceUrl, callback) {
146
- const document = element.nodeType === NODE_TYPE.DOCUMENT_NODE ? element : element._ownerDocument;
147
-
148
- if (document._queue) {
149
- const loadHandler = createResourceLoadHandler(element, resourceUrl || document.URL, document, callback);
150
- return document._queue.push(loadHandler);
151
- }
152
-
153
- return () => {
154
- // do nothing in queue-less documents
155
- };
156
- };
157
-
158
- exports.download = function (url, options, callback) {
159
- const requestOptions = {
160
- pool: options.pool,
161
- agent: options.agent,
162
- agentOptions: options.agentOptions,
163
- agentClass: options.agentClass,
164
- strictSSL: options.strictSSL,
165
- gzip: true,
166
- jar: wrapCookieJarForRequest(options.cookieJar),
167
- encoding: null,
168
- headers: {
169
- "User-Agent": options.userAgent,
170
- "Accept-Language": "en",
171
- Accept: options.accept || "*/*"
172
- }
173
- };
174
- if (options.referrer && !IS_BROWSER) {
175
- requestOptions.headers.referer = options.referrer;
176
- }
177
- if (options.proxy) {
178
- requestOptions.proxy = options.proxy;
179
- }
180
- Object.assign(requestOptions.headers, options.headers);
181
-
182
- const defaultEncoding = options.defaultEncoding;
183
- const detectMetaCharset = options.detectMetaCharset;
184
-
185
- const req = request(url, requestOptions, (error, response, bufferData) => {
186
- if (!error) {
187
- // If default encoding does not exist, pass on binary data.
188
- if (defaultEncoding) {
189
- const contentType = parseContentType(response.headers["content-type"]) || parseContentType("text/plain");
190
- const sniffOptions = {
191
- transportLayerEncodingLabel: contentType.get("charset"),
192
- defaultEncoding
193
- };
194
-
195
- const encoding = detectMetaCharset ? sniffHTMLEncoding(bufferData, sniffOptions) :
196
- whatwgEncoding.getBOMEncoding(bufferData) ||
197
- whatwgEncoding.labelToName(contentType.get("charset")) || defaultEncoding;
198
- const decoded = whatwgEncoding.decode(bufferData, encoding);
199
-
200
- contentType.set("charset", encoding);
201
- response.headers["content-type"] = contentType.toString();
202
-
203
- callback(null, decoded, response);
204
- } else {
205
- callback(null, bufferData, response);
206
- }
207
- } else {
208
- callback(error, null, response);
209
- }
210
- });
211
- return {
212
- abort() {
213
- req.abort();
214
- const error = new Error("request canceled by user");
215
- error.isAbortError = true;
216
- callback(error);
217
- }
218
- };
219
- };
220
-
221
- exports.load = function (element, urlString, options, callback) {
222
- const document = element._ownerDocument;
223
- const documentImpl = document.implementation;
224
-
225
- if (!documentImpl._hasFeature("FetchExternalResources", element.tagName.toLowerCase())) {
226
- return;
227
- }
228
-
229
- if (documentImpl._hasFeature("SkipExternalResources", urlString)) {
230
- return;
231
- }
232
-
233
- const urlObj = URL.parse(urlString);
234
- const enqueued = exports.enqueue(element, urlString, callback);
235
- const customLoader = document._customResourceLoader;
236
- const requestManager = document._requestManager;
237
- const cookieJar = document._cookieJar;
238
-
239
- options.accept = element._accept;
240
- options.cookieJar = cookieJar;
241
- options.referrer = document.URL;
242
- options.pool = document._pool;
243
- options.agentOptions = document._agentOptions;
244
- options.strictSSL = document._strictSSL;
245
- options.proxy = document._proxy;
246
- options.userAgent = document._defaultView.navigator.userAgent;
247
-
248
- let req = null;
249
- function wrappedEnqueued() {
250
- if (req && requestManager) {
251
- requestManager.remove(req);
252
- }
253
- // do not trigger if the window is closed
254
- if (element._ownerDocument && element._ownerDocument.defaultView.document) {
255
- enqueued.apply(this, arguments);
256
- }
257
- }
258
- if (typeof customLoader === "function") {
259
- req = customLoader({
260
- element,
261
- url: urlObj,
262
- cookie: cookieJar.getCookieStringSync(urlObj, { http: true }),
263
- baseUrl: documentBaseURLSerialized(document),
264
- defaultFetch(fetchCallback) {
265
- return fetch(urlObj, options, fetchCallback);
266
- }
267
- },
268
- wrappedEnqueued);
269
- } else {
270
- req = fetch(urlObj, options, wrappedEnqueued);
271
- }
272
- if (req && requestManager) {
273
- requestManager.add(req);
274
- }
275
- };
@@ -1,69 +0,0 @@
1
- "use strict";
2
- const cssom = require("cssom");
3
- const cssstyle = require("cssstyle");
4
-
5
- module.exports = core => {
6
-
7
- // What works now:
8
- // - Accessing the rules defined in individual stylesheets
9
- // - Modifications to style content attribute are reflected in style property
10
- // - Modifications to style property are reflected in style content attribute
11
- // TODO
12
- // - Modifications to style element's textContent are reflected in sheet property.
13
- // - Modifications to style element's sheet property are reflected in textContent.
14
- // - Modifications to link.href property are reflected in sheet property.
15
- // - Less-used features of link: disabled
16
- // - Less-used features of style: disabled, scoped, title
17
- // - CSSOM-View
18
- // - getComputedStyle(): requires default stylesheet, cascading, inheritance,
19
- // filtering by @media (screen? print?), layout for widths/heights
20
- // - Load events are not in the specs, but apparently some browsers
21
- // implement something. Should onload only fire after all @imports have been
22
- // loaded, or only the primary sheet?
23
-
24
- core.StyleSheet = cssom.StyleSheet;
25
- core.MediaList = cssom.MediaList;
26
- core.CSSStyleSheet = cssom.CSSStyleSheet;
27
- core.CSSRule = cssom.CSSRule;
28
- core.CSSStyleRule = cssom.CSSStyleRule;
29
- core.CSSMediaRule = cssom.CSSMediaRule;
30
- core.CSSImportRule = cssom.CSSImportRule;
31
- core.CSSStyleDeclaration = cssstyle.CSSStyleDeclaration;
32
-
33
- // Relavant specs
34
- // http://www.w3.org/TR/DOM-Level-2-Style (2000)
35
- // http://www.w3.org/TR/cssom-view/ (2008)
36
- // http://dev.w3.org/csswg/cssom/ (2010) Meant to replace DOM Level 2 Style
37
- // http://www.whatwg.org/specs/web-apps/current-work/multipage/ HTML5, of course
38
- // http://dev.w3.org/csswg/css-style-attr/ not sure what's new here
39
-
40
- // Objects that aren't in cssom library but should be:
41
- // CSSRuleList (cssom just uses array)
42
- // CSSFontFaceRule
43
- // CSSPageRule
44
-
45
- // These rules don't really make sense to implement, so CSSOM draft makes them
46
- // obsolete.
47
- // CSSCharsetRule
48
- // CSSUnknownRule
49
-
50
- // These objects are considered obsolete by CSSOM draft, although modern
51
- // browsers implement them.
52
- // CSSValue
53
- // CSSPrimitiveValue
54
- // CSSValueList
55
- // RGBColor
56
- // Rect
57
- // Counter
58
-
59
- // http://dev.w3.org/csswg/cssom/#stylesheetlist
60
- function StyleSheetList() {}
61
-
62
- StyleSheetList.prototype.__proto__ = Array.prototype;
63
-
64
- StyleSheetList.prototype.item = function item(i) {
65
- return Object.prototype.hasOwnProperty.call(this, i) ? this[i] : null;
66
- };
67
-
68
- core.StyleSheetList = StyleSheetList;
69
- };
@@ -1,1874 +0,0 @@
1
- /** Here is yet another implementation of XPath 1.0 in Javascript.
2
- *
3
- * My goal was to make it relatively compact, but as I fixed all the axis bugs
4
- * the axes became more and more complicated. :-(.
5
- *
6
- * I have not implemented namespaces or case-sensitive axes for XML yet.
7
- *
8
- * How to test it in Chrome: You can make a Chrome extension that replaces
9
- * the WebKit XPath parser with this one. But it takes a bit of effort to
10
- * get around isolated world and same-origin restrictions:
11
- * manifest.json:
12
- {
13
- "name": "XPathTest",
14
- "version": "0.1",
15
- "content_scripts": [{
16
- "matches": ["http://localhost/*"], // or wildcard host
17
- "js": ["xpath.js", "injection.js"],
18
- "all_frames": true, "run_at": "document_start"
19
- }]
20
- }
21
- * injection.js:
22
- // goal: give my xpath object to the website's JS context.
23
- var script = document.createElement('script');
24
- script.textContent =
25
- "document.addEventListener('xpathextend', function(e) {\n" +
26
- " console.log('extending document with xpath...');\n" +
27
- " e.detail(window);" +
28
- "});";
29
- document.documentElement.appendChild(script);
30
- document.documentElement.removeChild(script);
31
- var evt = document.createEvent('CustomEvent');
32
- evt.initCustomEvent('xpathextend', true, true, this.xpath.extend);
33
- document.dispatchEvent(evt);
34
- */
35
- module.exports = core => {
36
- var xpath = {};
37
-
38
- // Helper function to deal with the migration of Attr to no longer have a nodeName property despite this codebase
39
- // assuming it does.
40
- function getNodeName(nodeOrAttr) {
41
- return nodeOrAttr.constructor.name === 'Attr' ? nodeOrAttr.name : nodeOrAttr.nodeName;
42
- }
43
-
44
- /***************************************************************************
45
- * Tokenization *
46
- ***************************************************************************/
47
- /**
48
- * The XPath lexer is basically a single regular expression, along with
49
- * some helper functions to pop different types.
50
- */
51
- var Stream = xpath.Stream = function Stream(str) {
52
- this.original = this.str = str;
53
- this.peeked = null;
54
- // TODO: not really needed, but supposedly tokenizer also disambiguates
55
- // a * b vs. node test *
56
- this.prev = null; // for debugging
57
- this.prevprev = null;
58
- }
59
- Stream.prototype = {
60
- peek: function() {
61
- if (this.peeked) return this.peeked;
62
- var m = this.re.exec(this.str);
63
- if (!m) return null;
64
- this.str = this.str.substr(m[0].length);
65
- return this.peeked = m[1];
66
- },
67
- /** Peek 2 tokens ahead. */
68
- peek2: function() {
69
- this.peek(); // make sure this.peeked is set
70
- var m = this.re.exec(this.str);
71
- if (!m) return null;
72
- return m[1];
73
- },
74
- pop: function() {
75
- var r = this.peek();
76
- this.peeked = null;
77
- this.prevprev = this.prev;
78
- this.prev = r;
79
- return r;
80
- },
81
- trypop: function(tokens) {
82
- var tok = this.peek();
83
- if (tok === tokens) return this.pop();
84
- if (Array.isArray(tokens)) {
85
- for (var i = 0; i < tokens.length; ++i) {
86
- var t = tokens[i];
87
- if (t == tok) return this.pop();;
88
- }
89
- }
90
- },
91
- trypopfuncname: function() {
92
- var tok = this.peek();
93
- if (!this.isQnameRe.test(tok))
94
- return null;
95
- switch (tok) {
96
- case 'comment': case 'text': case 'processing-instruction': case 'node':
97
- return null;
98
- }
99
- if ('(' != this.peek2()) return null;
100
- return this.pop();
101
- },
102
- trypopaxisname: function() {
103
- var tok = this.peek();
104
- switch (tok) {
105
- case 'ancestor': case 'ancestor-or-self': case 'attribute':
106
- case 'child': case 'descendant': case 'descendant-or-self':
107
- case 'following': case 'following-sibling': case 'namespace':
108
- case 'parent': case 'preceding': case 'preceding-sibling': case 'self':
109
- if ('::' == this.peek2()) return this.pop();
110
- }
111
- return null;
112
- },
113
- trypopnametest: function() {
114
- var tok = this.peek();
115
- if ('*' === tok || this.startsWithNcNameRe.test(tok)) return this.pop();
116
- return null;
117
- },
118
- trypopliteral: function() {
119
- var tok = this.peek();
120
- if (null == tok) return null;
121
- var first = tok.charAt(0);
122
- var last = tok.charAt(tok.length - 1);
123
- if ('"' === first && '"' === last ||
124
- "'" === first && "'" === last) {
125
- this.pop();
126
- return tok.substr(1, tok.length - 2);
127
- }
128
- },
129
- trypopnumber: function() {
130
- var tok = this.peek();
131
- if (this.isNumberRe.test(tok)) return parseFloat(this.pop());
132
- else return null;
133
- },
134
- trypopvarref: function() {
135
- var tok = this.peek();
136
- if (null == tok) return null;
137
- if ('$' === tok.charAt(0)) return this.pop().substr(1);
138
- else return null;
139
- },
140
- position: function() {
141
- return this.original.length - this.str.length;
142
- }
143
- };
144
- (function() {
145
- // http://www.w3.org/TR/REC-xml-names/#NT-NCName
146
- var nameStartCharsExceptColon =
147
- 'A-Z_a-z\xc0-\xd6\xd8-\xf6\xF8-\u02FF\u0370-\u037D\u037F-\u1FFF' +
148
- '\u200C-\u200D\u2070-\u218F\u2C00-\u2FEF\u3001-\uD7FF\uF900-\uFDCF' +
149
- '\uFDF0-\uFFFD'; // JS doesn't support [#x10000-#xEFFFF]
150
- var nameCharExceptColon = nameStartCharsExceptColon +
151
- '\\-\\.0-9\xb7\u0300-\u036F\u203F-\u2040';
152
- var ncNameChars = '[' + nameStartCharsExceptColon +
153
- '][' + nameCharExceptColon + ']*'
154
- // http://www.w3.org/TR/REC-xml-names/#NT-QName
155
- var qNameChars = ncNameChars + '(?::' + ncNameChars + ')?';
156
- var otherChars = '\\.\\.|[\\(\\)\\[\\].@,]|::'; // .. must come before [.]
157
- var operatorChars =
158
- 'and|or|mod|div|' +
159
- '//|!=|<=|>=|[*/|+\\-=<>]'; // //, !=, <=, >= before individual ones.
160
- var literal = '"[^"]*"|' + "'[^']*'";
161
- var numberChars = '[0-9]+(?:\\.[0-9]*)?|\\.[0-9]+';
162
- var variableReference = '\\$' + qNameChars;
163
- var nameTestChars = '\\*|' + ncNameChars + ':\\*|' + qNameChars;
164
- var optionalSpace = '[ \t\r\n]*'; // stricter than regexp \s.
165
- var nodeType = 'comment|text|processing-instruction|node';
166
- var re = new RegExp(
167
- // numberChars before otherChars so that leading-decimal doesn't become .
168
- '^' + optionalSpace + '(' + numberChars + '|' + otherChars + '|' +
169
- nameTestChars + '|' + operatorChars + '|' + literal + '|' +
170
- variableReference + ')'
171
- // operatorName | nodeType | functionName | axisName are lumped into
172
- // qName for now; we'll check them on pop.
173
- );
174
- Stream.prototype.re = re;
175
- Stream.prototype.startsWithNcNameRe = new RegExp('^' + ncNameChars);
176
- Stream.prototype.isQnameRe = new RegExp('^' + qNameChars + '$');
177
- Stream.prototype.isNumberRe = new RegExp('^' + numberChars + '$');
178
- })();
179
-
180
- /***************************************************************************
181
- * Parsing *
182
- ***************************************************************************/
183
- var parse = xpath.parse = function parse(stream, a) {
184
- var r = orExpr(stream,a);
185
- var x, unparsed = [];
186
- while (x = stream.pop()) {
187
- unparsed.push(x);
188
- }
189
- if (unparsed.length)
190
- throw new XPathException(XPathException.INVALID_EXPRESSION_ERR,
191
- 'Position ' + stream.position() +
192
- ': Unparsed tokens: ' + unparsed.join(' '));
193
- return r;
194
- }
195
-
196
- /**
197
- * binaryL ::= subExpr
198
- * | binaryL op subExpr
199
- * so a op b op c becomes ((a op b) op c)
200
- */
201
- function binaryL(subExpr, stream, a, ops) {
202
- var lhs = subExpr(stream, a);
203
- if (lhs == null) return null;
204
- var op;
205
- while (op = stream.trypop(ops)) {
206
- var rhs = subExpr(stream, a);
207
- if (rhs == null)
208
- throw new XPathException(XPathException.INVALID_EXPRESSION_ERR,
209
- 'Position ' + stream.position() +
210
- ': Expected something after ' + op);
211
- lhs = a.node(op, lhs, rhs);
212
- }
213
- return lhs;
214
- }
215
- /**
216
- * Too bad this is never used. If they made a ** operator (raise to power),
217
- ( we would use it.
218
- * binaryR ::= subExpr
219
- * | subExpr op binaryR
220
- * so a op b op c becomes (a op (b op c))
221
- */
222
- function binaryR(subExpr, stream, a, ops) {
223
- var lhs = subExpr(stream, a);
224
- if (lhs == null) return null;
225
- var op = stream.trypop(ops);
226
- if (op) {
227
- var rhs = binaryR(stream, a);
228
- if (rhs == null)
229
- throw new XPathException(XPathException.INVALID_EXPRESSION_ERR,
230
- 'Position ' + stream.position() +
231
- ': Expected something after ' + op);
232
- return a.node(op, lhs, rhs);
233
- } else {
234
- return lhs;// TODO
235
- }
236
- }
237
- /** [1] LocationPath::= RelativeLocationPath | AbsoluteLocationPath
238
- * e.g. a, a/b, //a/b
239
- */
240
- function locationPath(stream, a) {
241
- return absoluteLocationPath(stream, a) ||
242
- relativeLocationPath(null, stream, a);
243
- }
244
- /** [2] AbsoluteLocationPath::= '/' RelativeLocationPath? | AbbreviatedAbsoluteLocationPath
245
- * [10] AbbreviatedAbsoluteLocationPath::= '//' RelativeLocationPath
246
- */
247
- function absoluteLocationPath(stream, a) {
248
- var op = stream.peek();
249
- if ('/' === op || '//' === op) {
250
- var lhs = a.node('Root');
251
- return relativeLocationPath(lhs, stream, a, true);
252
- } else {
253
- return null;
254
- }
255
- }
256
- /** [3] RelativeLocationPath::= Step | RelativeLocationPath '/' Step |
257
- * | AbbreviatedRelativeLocationPath
258
- * [11] AbbreviatedRelativeLocationPath::= RelativeLocationPath '//' Step
259
- * e.g. p/a, etc.
260
- */
261
- function relativeLocationPath(lhs, stream, a, isOnlyRootOk) {
262
- if (null == lhs) {
263
- lhs = step(stream, a);
264
- if (null == lhs) return lhs;
265
- }
266
- var op;
267
- while (op = stream.trypop(['/', '//'])) {
268
- if ('//' === op) {
269
- lhs = a.node('/', lhs,
270
- a.node('Axis', 'descendant-or-self', 'node', undefined));
271
- }
272
- var rhs = step(stream, a);
273
- if (null == rhs && '/' === op && isOnlyRootOk) return lhs;
274
- else isOnlyRootOk = false;
275
- if (null == rhs)
276
- throw new XPathException(XPathException.INVALID_EXPRESSION_ERR,
277
- 'Position ' + stream.position() +
278
- ': Expected step after ' + op);
279
- lhs = a.node('/', lhs, rhs);
280
- }
281
- return lhs;
282
- }
283
- /** [4] Step::= AxisSpecifier NodeTest Predicate* | AbbreviatedStep
284
- * [12] AbbreviatedStep::= '.' | '..'
285
- * e.g. @href, self::p, p, a[@href], ., ..
286
- */
287
- function step(stream, a) {
288
- var abbrStep = stream.trypop(['.', '..']);
289
- if ('.' === abbrStep) // A location step of . is short for self::node().
290
- return a.node('Axis', 'self', 'node');
291
- if ('..' === abbrStep) // A location step of .. is short for parent::node()
292
- return a.node('Axis', 'parent', 'node');
293
-
294
- var axis = axisSpecifier(stream, a);
295
- var nodeType = nodeTypeTest(stream, a);
296
- var nodeName;
297
- if (null == nodeType) nodeName = nodeNameTest(stream, a);
298
- if (null == axis && null == nodeType && null == nodeName) return null;
299
- if (null == nodeType && null == nodeName)
300
- throw new XPathException(
301
- XPathException.INVALID_EXPRESSION_ERR,
302
- 'Position ' + stream.position() +
303
- ': Expected nodeTest after axisSpecifier ' + axis);
304
- if (null == axis) axis = 'child';
305
- if (null == nodeType) {
306
- // When there's only a node name, then the node type is forced to be the
307
- // principal node type of the axis.
308
- // see http://www.w3.org/TR/xpath/#dt-principal-node-type
309
- if ('attribute' === axis) nodeType = 'attribute';
310
- else if ('namespace' === axis) nodeType = 'namespace';
311
- else nodeType = 'element';
312
- }
313
- var lhs = a.node('Axis', axis, nodeType, nodeName);
314
- var pred;
315
- while (null != (pred = predicate(lhs, stream, a))) {
316
- lhs = pred;
317
- }
318
- return lhs;
319
- }
320
- /** [5] AxisSpecifier::= AxisName '::' | AbbreviatedAxisSpecifier
321
- * [6] AxisName::= 'ancestor' | 'ancestor-or-self' | 'attribute' | 'child'
322
- * | 'descendant' | 'descendant-or-self' | 'following'
323
- * | 'following-sibling' | 'namespace' | 'parent' |
324
- * | 'preceding' | 'preceding-sibling' | 'self'
325
- * [13] AbbreviatedAxisSpecifier::= '@'?
326
- */
327
- function axisSpecifier(stream, a) {
328
- var attr = stream.trypop('@');
329
- if (null != attr) return 'attribute';
330
- var axisName = stream.trypopaxisname();
331
- if (null != axisName) {
332
- var coloncolon = stream.trypop('::');
333
- if (null == coloncolon)
334
- throw new XPathException(XPathException.INVALID_EXPRESSION_ERR,
335
- 'Position ' + stream.position() +
336
- ': Should not happen. Should be ::.');
337
- return axisName;
338
- }
339
- }
340
- /** [7] NodeTest::= NameTest | NodeType '(' ')' | 'processing-instruction' '(' Literal ')'
341
- * [38] NodeType::= 'comment' | 'text' | 'processing-instruction' | 'node'
342
- * I've split nodeTypeTest from nodeNameTest for convenience.
343
- */
344
- function nodeTypeTest(stream, a) {
345
- if ('(' !== stream.peek2()) {
346
- return null;
347
- }
348
- var type = stream.trypop(['comment', 'text', 'processing-instruction', 'node']);
349
- if (null != type) {
350
- if (null == stream.trypop('('))
351
- throw new XPathException(XPathException.INVALID_EXPRESSION_ERR,
352
- 'Position ' + stream.position() +
353
- ': Should not happen.');
354
- var param = undefined;
355
- if (type == 'processing-instruction') {
356
- param = stream.trypopliteral();
357
- }
358
- if (null == stream.trypop(')'))
359
- throw new XPathException(XPathException.INVALID_EXPRESSION_ERR,
360
- 'Position ' + stream.position() +
361
- ': Expected close parens.');
362
- return type
363
- }
364
- }
365
- function nodeNameTest(stream, a) {
366
- var name = stream.trypopnametest();
367
- if (name != null) return name;
368
- else return null;
369
- }
370
- /** [8] Predicate::= '[' PredicateExpr ']'
371
- * [9] PredicateExpr::= Expr
372
- */
373
- function predicate(lhs, stream, a) {
374
- if (null == stream.trypop('[')) return null;
375
- var expr = orExpr(stream, a);
376
- if (null == expr)
377
- throw new XPathException(XPathException.INVALID_EXPRESSION_ERR,
378
- 'Position ' + stream.position() +
379
- ': Expected expression after [');
380
- if (null == stream.trypop(']'))
381
- throw new XPathException(XPathException.INVALID_EXPRESSION_ERR,
382
- 'Position ' + stream.position() +
383
- ': Expected ] after expression.');
384
- return a.node('Predicate', lhs, expr);
385
- }
386
- /** [14] Expr::= OrExpr
387
- */
388
- /** [15] PrimaryExpr::= VariableReference | '(' Expr ')' | Literal | Number | FunctionCall
389
- * e.g. $x, (3+4), "hi", 32, f(x)
390
- */
391
- function primaryExpr(stream, a) {
392
- var x = stream.trypopliteral();
393
- if (null == x)
394
- x = stream.trypopnumber();
395
- if (null != x) {
396
- return x;
397
- }
398
- var varRef = stream.trypopvarref();
399
- if (null != varRef) return a.node('VariableReference', varRef);
400
- var funCall = functionCall(stream, a);
401
- if (null != funCall) {
402
- return funCall;
403
- }
404
- if (stream.trypop('(')) {
405
- var e = orExpr(stream, a);
406
- if (null == e)
407
- throw new XPathException(XPathException.INVALID_EXPRESSION_ERR,
408
- 'Position ' + stream.position() +
409
- ': Expected expression after (.');
410
- if (null == stream.trypop(')'))
411
- throw new XPathException(XPathException.INVALID_EXPRESSION_ERR,
412
- 'Position ' + stream.position() +
413
- ': Expected ) after expression.');
414
- return e;
415
- }
416
- return null;
417
- }
418
- /** [16] FunctionCall::= FunctionName '(' ( Argument ( ',' Argument )* )? ')'
419
- * [17] Argument::= Expr
420
- */
421
- function functionCall(stream, a) {
422
- var name = stream.trypopfuncname(stream, a);
423
- if (null == name) return null;
424
- if (null == stream.trypop('('))
425
- throw new XPathException(XPathException.INVALID_EXPRESSION_ERR,
426
- 'Position ' + stream.position() +
427
- ': Expected ( ) after function name.');
428
- var params = [];
429
- var first = true;
430
- while (null == stream.trypop(')')) {
431
- if (!first && null == stream.trypop(','))
432
- throw new XPathException(XPathException.INVALID_EXPRESSION_ERR,
433
- 'Position ' + stream.position() +
434
- ': Expected , between arguments of the function.');
435
- first = false;
436
- var param = orExpr(stream, a);
437
- if (param == null)
438
- throw new XPathException(XPathException.INVALID_EXPRESSION_ERR,
439
- 'Position ' + stream.position() +
440
- ': Expected expression as argument of function.');
441
- params.push(param);
442
- }
443
- return a.node('FunctionCall', name, params);
444
- }
445
-
446
- /** [18] UnionExpr::= PathExpr | UnionExpr '|' PathExpr
447
- */
448
- function unionExpr(stream, a) { return binaryL(pathExpr, stream, a, '|'); }
449
- /** [19] PathExpr ::= LocationPath
450
- * | FilterExpr
451
- * | FilterExpr '/' RelativeLocationPath
452
- * | FilterExpr '//' RelativeLocationPath
453
- * Unlike most other nodes, this one always generates a node because
454
- * at this point all reverse nodesets must turn into a forward nodeset
455
- */
456
- function pathExpr(stream, a) {
457
- // We have to do FilterExpr before LocationPath because otherwise
458
- // LocationPath will eat up the name from a function call.
459
- var filter = filterExpr(stream, a);
460
- if (null == filter) {
461
- var loc = locationPath(stream, a);
462
- if (null == loc) {
463
- throw new Error
464
- throw new XPathException(XPathException.INVALID_EXPRESSION_ERR,
465
- 'Position ' + stream.position() +
466
- ': The expression shouldn\'t be empty...');
467
- }
468
- return a.node('PathExpr', loc);
469
- }
470
- var rel = relativeLocationPath(filter, stream, a, false);
471
- if (filter === rel) return rel;
472
- else return a.node('PathExpr', rel);
473
- }
474
- /** [20] FilterExpr::= PrimaryExpr | FilterExpr Predicate
475
- * aka. FilterExpr ::= PrimaryExpr Predicate*
476
- */
477
- function filterExpr(stream, a) {
478
- var primary = primaryExpr(stream, a);
479
- if (primary == null) return null;
480
- var pred, lhs = primary;
481
- while (null != (pred = predicate(lhs, stream, a))) {
482
- lhs = pred;
483
- }
484
- return lhs;
485
- }
486
-
487
- /** [21] OrExpr::= AndExpr | OrExpr 'or' AndExpr
488
- */
489
- function orExpr(stream, a) {
490
- var orig = (stream.peeked || '') + stream.str
491
- var r = binaryL(andExpr, stream, a, 'or');
492
- var now = (stream.peeked || '') + stream.str;
493
- return r;
494
- }
495
- /** [22] AndExpr::= EqualityExpr | AndExpr 'and' EqualityExpr
496
- */
497
- function andExpr(stream, a) { return binaryL(equalityExpr, stream, a, 'and'); }
498
- /** [23] EqualityExpr::= RelationalExpr | EqualityExpr '=' RelationalExpr
499
- * | EqualityExpr '!=' RelationalExpr
500
- */
501
- function equalityExpr(stream, a) { return binaryL(relationalExpr, stream, a, ['=','!=']); }
502
- /** [24] RelationalExpr::= AdditiveExpr | RelationalExpr '<' AdditiveExpr
503
- * | RelationalExpr '>' AdditiveExpr
504
- * | RelationalExpr '<=' AdditiveExpr
505
- * | RelationalExpr '>=' AdditiveExpr
506
- */
507
- function relationalExpr(stream, a) { return binaryL(additiveExpr, stream, a, ['<','>','<=','>=']); }
508
- /** [25] AdditiveExpr::= MultiplicativeExpr
509
- * | AdditiveExpr '+' MultiplicativeExpr
510
- * | AdditiveExpr '-' MultiplicativeExpr
511
- */
512
- function additiveExpr(stream, a) { return binaryL(multiplicativeExpr, stream, a, ['+','-']); }
513
- /** [26] MultiplicativeExpr::= UnaryExpr
514
- * | MultiplicativeExpr MultiplyOperator UnaryExpr
515
- * | MultiplicativeExpr 'div' UnaryExpr
516
- * | MultiplicativeExpr 'mod' UnaryExpr
517
- */
518
- function multiplicativeExpr(stream, a) { return binaryL(unaryExpr, stream, a, ['*','div','mod']); }
519
- /** [27] UnaryExpr::= UnionExpr | '-' UnaryExpr
520
- */
521
- function unaryExpr(stream, a) {
522
- if (stream.trypop('-')) {
523
- var e = unaryExpr(stream, a);
524
- if (null == e)
525
- throw new XPathException(XPathException.INVALID_EXPRESSION_ERR,
526
- 'Position ' + stream.position() +
527
- ': Expected unary expression after -');
528
- return a.node('UnaryMinus', e);
529
- }
530
- else return unionExpr(stream, a);
531
- }
532
- var astFactory = {
533
- node: function() {return Array.prototype.slice.call(arguments);}
534
- };
535
-
536
-
537
- /***************************************************************************
538
- * Optimizations (TODO) *
539
- ***************************************************************************/
540
- /**
541
- * Some things I've been considering:
542
- * 1) a//b becomes a/descendant::b if there's no predicate that uses
543
- * position() or last()
544
- * 2) axis[pred]: when pred doesn't use position, evaluate it just once per
545
- * node in the node-set rather than once per (node, position, last).
546
- * For more optimizations, look up Gecko's optimizer:
547
- * http://mxr.mozilla.org/mozilla-central/source/content/xslt/src/xpath/txXPathOptimizer.cpp
548
- */
549
- // TODO
550
- function optimize(ast) {
551
- }
552
-
553
- /***************************************************************************
554
- * Evaluation: axes *
555
- ***************************************************************************/
556
-
557
- /**
558
- * Data types: For string, number, boolean, we just use Javascript types.
559
- * Node-sets have the form
560
- * {nodes: [node, ...]}
561
- * or {nodes: [node, ...], pos: [[1], [2], ...], lasts: [[1], [2], ...]}
562
- *
563
- * Most of the time, only the node is used and the position information is
564
- * discarded. But if you use a predicate, we need to try every value of
565
- * position and last in case the predicate calls position() or last().
566
- */
567
-
568
- /**
569
- * The NodeMultiSet is a helper class to help generate
570
- * {nodes:[], pos:[], lasts:[]} structures. It is useful for the
571
- * descendant, descendant-or-self, following-sibling, and
572
- * preceding-sibling axes for which we can use a stack to organize things.
573
- */
574
- function NodeMultiSet(isReverseAxis) {
575
- this.nodes = [];
576
- this.pos = [];
577
- this.lasts = [];
578
- this.nextPos = [];
579
- this.seriesIndexes = []; // index within nodes that each series begins.
580
- this.isReverseAxis = isReverseAxis;
581
- this._pushToNodes = isReverseAxis ? Array.prototype.unshift : Array.prototype.push;
582
- }
583
- NodeMultiSet.prototype = {
584
- pushSeries: function pushSeries() {
585
- this.nextPos.push(1);
586
- this.seriesIndexes.push(this.nodes.length);
587
- },
588
- popSeries: function popSeries() {
589
- console.assert(0 < this.nextPos.length, this.nextPos);
590
- var last = this.nextPos.pop() - 1,
591
- indexInPos = this.nextPos.length,
592
- seriesBeginIndex = this.seriesIndexes.pop(),
593
- seriesEndIndex = this.nodes.length;
594
- for (var i = seriesBeginIndex; i < seriesEndIndex; ++i) {
595
- console.assert(indexInPos < this.lasts[i].length);
596
- console.assert(undefined === this.lasts[i][indexInPos]);
597
- this.lasts[i][indexInPos] = last;
598
- }
599
- },
600
- finalize: function() {
601
- if (null == this.nextPos) return this;
602
- console.assert(0 === this.nextPos.length);
603
- var lastsJSON = JSON.stringify(this.lasts);
604
- for (var i = 0; i < this.lasts.length; ++i) {
605
- for (var j = 0; j < this.lasts[i].length; ++j) {
606
- console.assert(null != this.lasts[i][j], i + ',' + j + ':' + lastsJSON);
607
- }
608
- }
609
- this.pushSeries = this.popSeries = this.addNode = function() {
610
- throw new Error('Already finalized.');
611
- };
612
- return this;
613
- },
614
- addNode: function addNode(node) {
615
- console.assert(node);
616
- this._pushToNodes.call(this.nodes, node)
617
- this._pushToNodes.call(this.pos, this.nextPos.slice());
618
- this._pushToNodes.call(this.lasts, new Array(this.nextPos.length));
619
- for (var i = 0; i < this.nextPos.length; ++i) this.nextPos[i]++;
620
- },
621
- simplify: function() {
622
- this.finalize();
623
- return {nodes:this.nodes, pos:this.pos, lasts:this.lasts};
624
- }
625
- };
626
- function eachContext(nodeMultiSet) {
627
- var r = [];
628
- for (var i = 0; i < nodeMultiSet.nodes.length; i++) {
629
- var node = nodeMultiSet.nodes[i];
630
- if (!nodeMultiSet.pos) {
631
- r.push({nodes:[node], pos: [[i + 1]], lasts: [[nodeMultiSet.nodes.length]]});
632
- } else {
633
- for (var j = 0; j < nodeMultiSet.pos[i].length; ++j) {
634
- r.push({nodes:[node], pos: [[nodeMultiSet.pos[i][j]]], lasts: [[nodeMultiSet.lasts[i][j]]]});
635
- }
636
- }
637
- }
638
- return r;
639
- }
640
- /** Matcher used in the axes.
641
- */
642
- function NodeMatcher(nodeTypeNum, nodeName, shouldLowerCase) {
643
- this.nodeTypeNum = nodeTypeNum;
644
- this.nodeName = nodeName;
645
- this.shouldLowerCase = shouldLowerCase;
646
- this.nodeNameTest =
647
- null == nodeName ? this._alwaysTrue :
648
- shouldLowerCase ? this._nodeNameLowerCaseEquals :
649
- this._nodeNameEquals;
650
- }
651
- NodeMatcher.prototype = {
652
- matches: function matches(node) {
653
- if (0 === this.nodeTypeNum || this._nodeTypeMatches(node)) {
654
- return this.nodeNameTest(getNodeName(node));
655
- }
656
-
657
- return false;
658
- },
659
- _nodeTypeMatches(nodeOrAttr) {
660
- if (nodeOrAttr.constructor.name === 'Attr' && this.nodeTypeNum === 2) {
661
- return true;
662
- }
663
- return nodeOrAttr.nodeType === this.nodeTypeNum;
664
- },
665
- _alwaysTrue: function(name) {return true;},
666
- _nodeNameEquals: function _nodeNameEquals(name) {
667
- return this.nodeName === name;
668
- },
669
- _nodeNameLowerCaseEquals: function _nodeNameLowerCaseEquals(name) {
670
- return this.nodeName === name.toLowerCase();
671
- }
672
- };
673
-
674
- function followingSiblingHelper(nodeList /*destructive!*/, nodeTypeNum, nodeName, shouldLowerCase, shift, peek, followingNode, andSelf, isReverseAxis) {
675
- var matcher = new NodeMatcher(nodeTypeNum, nodeName, shouldLowerCase);
676
- var nodeMultiSet = new NodeMultiSet(isReverseAxis);
677
- while (0 < nodeList.length) { // can be if for following, preceding
678
- var node = shift.call(nodeList);
679
- console.assert(node != null);
680
- node = followingNode(node);
681
- nodeMultiSet.pushSeries();
682
- var numPushed = 1;
683
- while (null != node) {
684
- if (! andSelf && matcher.matches(node))
685
- nodeMultiSet.addNode(node);
686
- if (node === peek.call(nodeList)) {
687
- shift.call(nodeList);
688
- nodeMultiSet.pushSeries();
689
- numPushed++;
690
- }
691
- if (andSelf && matcher.matches(node))
692
- nodeMultiSet.addNode(node);
693
- node = followingNode(node);
694
- }
695
- while (0 < numPushed--)
696
- nodeMultiSet.popSeries();
697
- }
698
- return nodeMultiSet;
699
- }
700
-
701
- /** Returns the next non-descendant node in document order.
702
- * This is the first node in following::node(), if node is the context.
703
- */
704
- function followingNonDescendantNode(node) {
705
- if (node.ownerElement) {
706
- if (node.ownerElement.firstChild)
707
- return node.ownerElement.firstChild;
708
- node = node.ownerElement;
709
- }
710
- do {
711
- if (node.nextSibling) return node.nextSibling;
712
- } while (node = node.parentNode);
713
- return null;
714
- }
715
-
716
- /** Returns the next node in a document-order depth-first search.
717
- * See the definition of document order[1]:
718
- * 1) element
719
- * 2) namespace nodes
720
- * 3) attributes
721
- * 4) children
722
- * [1]: http://www.w3.org/TR/xpath/#dt-document-order
723
- */
724
- function followingNode(node) {
725
- if (node.ownerElement) // attributes: following node of element.
726
- node = node.ownerElement;
727
- if (null != node.firstChild)
728
- return node.firstChild;
729
- do {
730
- if (null != node.nextSibling) {
731
- return node.nextSibling;
732
- }
733
- node = node.parentNode;
734
- } while (node);
735
- return null;
736
- }
737
- /** Returns the previous node in document order (excluding attributes
738
- * and namespace nodes).
739
- */
740
- function precedingNode(node) {
741
- if (node.ownerElement)
742
- return node.ownerElement;
743
- if (null != node.previousSibling) {
744
- node = node.previousSibling;
745
- while (null != node.lastChild) {
746
- node = node.lastChild;
747
- }
748
- return node;
749
- }
750
- if (null != node.parentNode) {
751
- return node.parentNode;
752
- }
753
- return null;
754
- }
755
- /** This axis is inefficient if there are many nodes in the nodeList.
756
- * But I think it's a pretty useless axis so it's ok. */
757
- function followingHelper(nodeList /*destructive!*/, nodeTypeNum, nodeName, shouldLowerCase) {
758
- var matcher = new NodeMatcher(nodeTypeNum, nodeName, shouldLowerCase);
759
- var nodeMultiSet = new NodeMultiSet(false);
760
- var cursor = nodeList[0];
761
- var unorderedFollowingStarts = [];
762
- for (var i = 0; i < nodeList.length; i++) {
763
- var node = nodeList[i];
764
- var start = followingNonDescendantNode(node);
765
- if (start)
766
- unorderedFollowingStarts.push(start);
767
- }
768
- if (0 === unorderedFollowingStarts.length)
769
- return {nodes:[]};
770
- var pos = [], nextPos = [];
771
- var started = 0;
772
- while (cursor = followingNode(cursor)) {
773
- for (var i = unorderedFollowingStarts.length - 1; i >= 0; i--){
774
- if (cursor === unorderedFollowingStarts[i]) {
775
- nodeMultiSet.pushSeries();
776
- unorderedFollowingStarts.splice(i,i+1);
777
- started++;
778
- }
779
- }
780
- if (started && matcher.matches(cursor)) {
781
- nodeMultiSet.addNode(cursor);
782
- }
783
- }
784
- console.assert(0 === unorderedFollowingStarts.length);
785
- for (var i = 0; i < started; i++)
786
- nodeMultiSet.popSeries();
787
- return nodeMultiSet.finalize();
788
- }
789
- function precedingHelper(nodeList /*destructive!*/, nodeTypeNum, nodeName, shouldLowerCase) {
790
- var matcher = new NodeMatcher(nodeTypeNum, nodeName, shouldLowerCase);
791
- var cursor = nodeList.pop();
792
- if (null == cursor) return {nodes:{}};
793
- var r = {nodes:[], pos:[], lasts:[]};
794
- var nextParents = [cursor.parentNode || cursor.ownerElement], nextPos = [1];
795
- while (cursor = precedingNode(cursor)) {
796
- if (cursor === nodeList[nodeList.length - 1]) {
797
- nextParents.push(nodeList.pop());
798
- nextPos.push(1);
799
- }
800
- var matches = matcher.matches(cursor);
801
- var pos, someoneUsed = false;
802
- if (matches)
803
- pos = nextPos.slice();
804
-
805
- for (var i = 0; i < nextParents.length; ++i) {
806
- if (cursor === nextParents[i]) {
807
- nextParents[i] = cursor.parentNode || cursor.ownerElement;
808
- if (matches) {
809
- pos[i] = null;
810
- }
811
- } else {
812
- if (matches) {
813
- pos[i] = nextPos[i]++;
814
- someoneUsed = true;
815
- }
816
- }
817
- }
818
- if (someoneUsed) {
819
- r.nodes.unshift(cursor);
820
- r.pos.unshift(pos);
821
- }
822
- }
823
- for (var i = 0; i < r.pos.length; ++i) {
824
- var lasts = [];
825
- r.lasts.push(lasts);
826
- for (var j = r.pos[i].length - 1; j >= 0; j--) {
827
- if (null == r.pos[i][j]) {
828
- r.pos[i].splice(j, j+1);
829
- } else {
830
- lasts.unshift(nextPos[j] - 1);
831
- }
832
- }
833
- }
834
- return r;
835
- }
836
-
837
- /** node-set, axis -> node-set */
838
- function descendantDfs(nodeMultiSet, node, remaining, matcher, andSelf, attrIndices, attrNodes) {
839
- while (0 < remaining.length && null != remaining[0].ownerElement) {
840
- var attr = remaining.shift();
841
- if (andSelf && matcher.matches(attr)) {
842
- attrNodes.push(attr);
843
- attrIndices.push(nodeMultiSet.nodes.length);
844
- }
845
- }
846
- if (null != node && !andSelf) {
847
- if (matcher.matches(node))
848
- nodeMultiSet.addNode(node);
849
- }
850
- var pushed = false;
851
- if (null == node) {
852
- if (0 === remaining.length) return;
853
- node = remaining.shift();
854
- nodeMultiSet.pushSeries();
855
- pushed = true;
856
- } else if (0 < remaining.length && node === remaining[0]) {
857
- nodeMultiSet.pushSeries();
858
- pushed = true;
859
- remaining.shift();
860
- }
861
- if (andSelf) {
862
- if (matcher.matches(node))
863
- nodeMultiSet.addNode(node);
864
- }
865
- // TODO: use optimization. Also try element.getElementsByTagName
866
- // var nodeList = 1 === nodeTypeNum && null != node.children ? node.children : node.childNodes;
867
- var nodeList = node.childNodes;
868
- for (var j = 0; j < nodeList.length; ++j) {
869
- var child = nodeList[j];
870
- descendantDfs(nodeMultiSet, child, remaining, matcher, andSelf, attrIndices, attrNodes);
871
- }
872
- if (pushed) {
873
- nodeMultiSet.popSeries();
874
- }
875
- }
876
- function descenantHelper(nodeList /*destructive!*/, nodeTypeNum, nodeName, shouldLowerCase, andSelf) {
877
- var matcher = new NodeMatcher(nodeTypeNum, nodeName, shouldLowerCase);
878
- var nodeMultiSet = new NodeMultiSet(false);
879
- var attrIndices = [], attrNodes = [];
880
- while (0 < nodeList.length) {
881
- // var node = nodeList.shift();
882
- descendantDfs(nodeMultiSet, null, nodeList, matcher, andSelf, attrIndices, attrNodes);
883
- }
884
- nodeMultiSet.finalize();
885
- for (var i = attrNodes.length-1; i >= 0; --i) {
886
- nodeMultiSet.nodes.splice(attrIndices[i], attrIndices[i], attrNodes[i]);
887
- nodeMultiSet.pos.splice(attrIndices[i], attrIndices[i], [1]);
888
- nodeMultiSet.lasts.splice(attrIndices[i], attrIndices[i], [1]);
889
- }
890
- return nodeMultiSet;
891
- }
892
- /**
893
- */
894
- function ancestorHelper(nodeList /*destructive!*/, nodeTypeNum, nodeName, shouldLowerCase, andSelf) {
895
- var matcher = new NodeMatcher(nodeTypeNum, nodeName, shouldLowerCase);
896
- var ancestors = []; // array of non-empty arrays of matching ancestors
897
- for (var i = 0; i < nodeList.length; ++i) {
898
- var node = nodeList[i];
899
- var isFirst = true;
900
- var a = [];
901
- while (null != node) {
902
- if (!isFirst || andSelf) {
903
- if (matcher.matches(node))
904
- a.push(node);
905
- }
906
- isFirst = false;
907
- node = node.parentNode || node.ownerElement;
908
- }
909
- if (0 < a.length)
910
- ancestors.push(a);
911
- }
912
- var lasts = [];
913
- for (var i = 0; i < ancestors.length; ++i) lasts.push(ancestors[i].length);
914
- var nodeMultiSet = new NodeMultiSet(true);
915
- var newCtx = {nodes:[], pos:[], lasts:[]};
916
- while (0 < ancestors.length) {
917
- var pos = [ancestors[0].length];
918
- var last = [lasts[0]];
919
- var node = ancestors[0].pop();
920
- for (var i = ancestors.length - 1; i > 0; --i) {
921
- if (node === ancestors[i][ancestors[i].length - 1]) {
922
- pos.push(ancestors[i].length);
923
- last.push(lasts[i]);
924
- ancestors[i].pop();
925
- if (0 === ancestors[i].length) {
926
- ancestors.splice(i, i+1);
927
- lasts.splice(i, i+1);
928
- }
929
- }
930
- }
931
- if (0 === ancestors[0].length) {
932
- ancestors.shift();
933
- lasts.shift();
934
- }
935
- newCtx.nodes.push(node);
936
- newCtx.pos.push(pos);
937
- newCtx.lasts.push(last);
938
- }
939
- return newCtx;
940
- }
941
- /** Helper function for sortDocumentOrder. Returns a list of indices, from the
942
- * node to the root, of positions within parent.
943
- * For convenience, the node is the first element of the array.
944
- */
945
- function addressVector(node) {
946
- var r = [node];
947
- if (null != node.ownerElement) {
948
- node = node.ownerElement;
949
- r.push(-1);
950
- }
951
- while (null != node) {
952
- var i = 0;
953
- while (null != node.previousSibling) {
954
- node = node.previousSibling;
955
- i++;
956
- }
957
- r.push(i);
958
- node = node.parentNode
959
- }
960
- return r;
961
- }
962
- function addressComparator(a, b) {
963
- var minlen = Math.min(a.length - 1, b.length - 1), // not including [0]=node
964
- alen = a.length,
965
- blen = b.length;
966
- if (a[0] === b[0]) return 0;
967
- var c;
968
- for (var i = 0; i < minlen; ++i) {
969
- c = a[alen - i - 1] - b[blen - i - 1];
970
- if (0 !== c)
971
- break;
972
- }
973
- if (null == c || 0 === c) {
974
- // All equal until one of the nodes. The longer one is the descendant.
975
- c = alen - blen;
976
- }
977
- if (0 === c)
978
- c = getNodeName(a) - getNodeName(b);
979
- if (0 === c)
980
- c = 1;
981
- return c;
982
- }
983
- var sortUniqDocumentOrder = xpath.sortUniqDocumentOrder = function(nodes) {
984
- var a = [];
985
- for (var i = 0; i < nodes.length; i++) {
986
- var node = nodes[i];
987
- var v = addressVector(node);
988
- a.push(v);
989
- }
990
- a.sort(addressComparator);
991
- var b = [];
992
- for (var i = 0; i < a.length; i++) {
993
- if (0 < i && a[i][0] === a[i - 1][0])
994
- continue;
995
- b.push(a[i][0]);
996
- }
997
- return b;
998
- }
999
- /** Sort node multiset. Does not do any de-duping. */
1000
- function sortNodeMultiSet(nodeMultiSet) {
1001
- var a = [];
1002
- for (var i = 0; i < nodeMultiSet.nodes.length; i++) {
1003
- var v = addressVector(nodeMultiSet.nodes[i]);
1004
- a.push({v:v, n:nodeMultiSet.nodes[i],
1005
- p:nodeMultiSet.pos[i], l:nodeMultiSet.lasts[i]});
1006
- }
1007
- a.sort(compare);
1008
- var r = {nodes:[], pos:[], lasts:[]};
1009
- for (var i = 0; i < a.length; ++i) {
1010
- r.nodes.push(a[i].n);
1011
- r.pos.push(a[i].p);
1012
- r.lasts.push(a[i].l);
1013
- }
1014
- function compare(x, y) {
1015
- return addressComparator(x.v, y.v);
1016
- }
1017
- return r;
1018
- }
1019
- /** Returns an array containing all the ancestors down to a node.
1020
- * The array starts with document.
1021
- */
1022
- function nodeAndAncestors(node) {
1023
- var ancestors = [node];
1024
- var p = node;
1025
- while (p = p.parentNode || p.ownerElement) {
1026
- ancestors.unshift(p);
1027
- }
1028
- return ancestors;
1029
- }
1030
- function compareSiblings(a, b) {
1031
- if (a === b) return 0;
1032
- var c = a;
1033
- while (c = c.previousSibling) {
1034
- if (c === b)
1035
- return 1; // b < a
1036
- }
1037
- c = b;
1038
- while (c = c.previousSibling) {
1039
- if (c === a)
1040
- return -1; // a < b
1041
- }
1042
- throw new Error('a and b are not siblings: ' + xpath.stringifyObject(a) + ' vs ' + xpath.stringifyObject(b));
1043
- }
1044
- /** The merge in merge-sort.*/
1045
- function mergeNodeLists(x, y) {
1046
- var a, b, aanc, banc, r = [];
1047
- if ('object' !== typeof x)
1048
- throw new XPathException(XPathException.INVALID_EXPRESSION_ERR,
1049
- 'Invalid LHS for | operator ' +
1050
- '(expected node-set): ' + x);
1051
- if ('object' !== typeof y)
1052
- throw new XPathException(XPathException.INVALID_EXPRESSION_ERR,
1053
- 'Invalid LHS for | operator ' +
1054
- '(expected node-set): ' + y);
1055
- while (true) {
1056
- if (null == a) {
1057
- a = x.shift();
1058
- if (null != a)
1059
- aanc = addressVector(a);
1060
- }
1061
- if (null == b) {
1062
- b = y.shift();
1063
- if (null != b)
1064
- banc = addressVector(b);
1065
- }
1066
- if (null == a || null == b) break;
1067
- var c = addressComparator(aanc, banc);
1068
- if (c < 0) {
1069
- r.push(a);
1070
- a = null;
1071
- aanc = null;
1072
- } else if (c > 0) {
1073
- r.push(b);
1074
- b = null;
1075
- banc = null;
1076
- } else if (getNodeName(a) < getNodeName(b)) { // attributes
1077
- r.push(a);
1078
- a = null;
1079
- aanc = null;
1080
- } else if (getNodeName(a) > getNodeName(b)) { // attributes
1081
- r.push(b);
1082
- b = null;
1083
- banc = null;
1084
- } else if (a !== b) {
1085
- // choose b arbitrarily
1086
- r.push(b);
1087
- b = null;
1088
- banc = null;
1089
- } else {
1090
- console.assert(a === b, c);
1091
- // just skip b without pushing it.
1092
- b = null;
1093
- banc = null;
1094
- }
1095
- }
1096
- while (a) {
1097
- r.push(a);
1098
- a = x.shift();
1099
- }
1100
- while (b) {
1101
- r.push(b);
1102
- b = y.shift();
1103
- }
1104
- return r;
1105
- }
1106
- function comparisonHelper(test, x, y, isNumericComparison) {
1107
- var coersion;
1108
- if (isNumericComparison)
1109
- coersion = fn.number;
1110
- else coersion =
1111
- 'boolean' === typeof x || 'boolean' === typeof y ? fn['boolean'] :
1112
- 'number' === typeof x || 'number' === typeof y ? fn.number :
1113
- fn.string;
1114
- if ('object' === typeof x && 'object' === typeof y) {
1115
- var aMap = {};
1116
- for (var i = 0; i < x.nodes.length; ++i) {
1117
- var xi = coersion({nodes:[x.nodes[i]]});
1118
- for (var j = 0; j < y.nodes.length; ++j) {
1119
- var yj = coersion({nodes:[y.nodes[j]]});
1120
- if (test(xi, yj)) return true;
1121
- }
1122
- }
1123
- return false;
1124
- } else if ('object' === typeof x && x.nodes && x.nodes.length) {
1125
- for (var i = 0; i < x.nodes.length; ++i) {
1126
- var xi = coersion({nodes:[x.nodes[i]]}), yc = coersion(y);
1127
- if (test(xi, yc))
1128
- return true;
1129
- }
1130
- return false;
1131
- } else if ('object' === typeof y && x.nodes && x.nodes.length) {
1132
- for (var i = 0; i < x.nodes.length; ++i) {
1133
- var yi = coersion({nodes:[y.nodes[i]]}), xc = coersion(x);
1134
- if (test(xc, yi))
1135
- return true;
1136
- }
1137
- return false;
1138
- } else {
1139
- var xc = coersion(x), yc = coersion(y);
1140
- return test(xc, yc);
1141
- }
1142
- }
1143
- var axes = xpath.axes = {
1144
- 'ancestor':
1145
- function ancestor(nodeList /*destructive!*/, nodeTypeNum, nodeName, shouldLowerCase) {
1146
- return ancestorHelper(
1147
- nodeList /*destructive!*/, nodeTypeNum, nodeName, shouldLowerCase, false);
1148
- },
1149
- 'ancestor-or-self':
1150
- function ancestorOrSelf(nodeList /*destructive!*/, nodeTypeNum, nodeName, shouldLowerCase) {
1151
- return ancestorHelper(
1152
- nodeList /*destructive!*/, nodeTypeNum, nodeName, shouldLowerCase, true);
1153
- },
1154
- 'attribute':
1155
- function attribute(nodeList /*destructive!*/, nodeTypeNum, nodeName, shouldLowerCase) {
1156
- // TODO: figure out whether positions should be undefined here.
1157
- var matcher = new NodeMatcher(nodeTypeNum, nodeName, shouldLowerCase);
1158
- var nodeMultiSet = new NodeMultiSet(false);
1159
- if (null != nodeName) {
1160
- // TODO: with namespace
1161
- for (var i = 0; i < nodeList.length; ++i) {
1162
- var node = nodeList[i];
1163
- if (null == node.getAttributeNode)
1164
- continue; // only Element has .getAttributeNode
1165
- var attr = node.getAttributeNode(nodeName);
1166
- if (null != attr && matcher.matches(attr)) {
1167
- nodeMultiSet.pushSeries();
1168
- nodeMultiSet.addNode(attr);
1169
- nodeMultiSet.popSeries();
1170
- }
1171
- }
1172
- } else {
1173
- for (var i = 0; i < nodeList.length; ++i) {
1174
- var node = nodeList[i];
1175
- if (null != node.attributes) {
1176
- nodeMultiSet.pushSeries();
1177
- for (var j = 0; j < node.attributes.length; j++) { // all nodes have .attributes
1178
- var attr = node.attributes[j];
1179
- if (matcher.matches(attr)) // TODO: I think this check is unnecessary
1180
- nodeMultiSet.addNode(attr);
1181
- }
1182
- nodeMultiSet.popSeries();
1183
- }
1184
- }
1185
- }
1186
- return nodeMultiSet.finalize();
1187
- },
1188
- 'child':
1189
- function child(nodeList /*destructive!*/, nodeTypeNum, nodeName, shouldLowerCase) {
1190
- var matcher = new NodeMatcher(nodeTypeNum, nodeName, shouldLowerCase);
1191
- var nodeMultiSet = new NodeMultiSet(false);
1192
- for (var i = 0; i < nodeList.length; ++i) {
1193
- var n = nodeList[i];
1194
- if (n.ownerElement) // skip attribute nodes' text child.
1195
- continue;
1196
- if (n.childNodes) {
1197
- nodeMultiSet.pushSeries();
1198
- var childList = 1 === nodeTypeNum && null != n.children ?
1199
- n.children : n.childNodes;
1200
- for (var j = 0; j < childList.length; ++j) {
1201
- var child = childList[j];
1202
- if (matcher.matches(child)) {
1203
- nodeMultiSet.addNode(child);
1204
- }
1205
- // don't have to do de-duping because children have parent,
1206
- // which are current context.
1207
- }
1208
- nodeMultiSet.popSeries();
1209
- }
1210
- }
1211
- nodeMultiSet.finalize();
1212
- return sortNodeMultiSet(nodeMultiSet);
1213
- },
1214
- 'descendant':
1215
- function descenant(nodeList /*destructive!*/, nodeTypeNum, nodeName, shouldLowerCase) {
1216
- return descenantHelper(
1217
- nodeList /*destructive!*/, nodeTypeNum, nodeName, shouldLowerCase, false);
1218
- },
1219
- 'descendant-or-self':
1220
- function descenantOrSelf(nodeList /*destructive!*/, nodeTypeNum, nodeName, shouldLowerCase) {
1221
- return descenantHelper(
1222
- nodeList /*destructive!*/, nodeTypeNum, nodeName, shouldLowerCase, true);
1223
- },
1224
- 'following':
1225
- function following(nodeList /*destructive!*/, nodeTypeNum, nodeName, shouldLowerCase) {
1226
- return followingHelper(nodeList /*destructive!*/, nodeTypeNum, nodeName, shouldLowerCase);
1227
- },
1228
- 'following-sibling':
1229
- function followingSibling(nodeList /*destructive!*/, nodeTypeNum, nodeName, shouldLowerCase) {
1230
- return followingSiblingHelper(
1231
- nodeList /*destructive!*/, nodeTypeNum, nodeName, shouldLowerCase,
1232
- Array.prototype.shift, function() {return this[0];},
1233
- function(node) {return node.nextSibling;});
1234
- },
1235
- 'namespace':
1236
- function namespace(nodeList /*destructive!*/, nodeTypeNum, nodeName, shouldLowerCase) {
1237
- // TODO
1238
- },
1239
- 'parent':
1240
- function parent(nodeList /*destructive!*/, nodeTypeNum, nodeName, shouldLowerCase) {
1241
- var matcher = new NodeMatcher(nodeTypeNum, nodeName, shouldLowerCase);
1242
- var nodes = [], pos = [];
1243
- for (var i = 0; i < nodeList.length; ++i) {
1244
- var parent = nodeList[i].parentNode || nodeList[i].ownerElement;
1245
- if (null == parent)
1246
- continue;
1247
- if (!matcher.matches(parent))
1248
- continue;
1249
- if (nodes.length > 0 && parent === nodes[nodes.length-1])
1250
- continue;
1251
- nodes.push(parent);
1252
- pos.push([1]);
1253
- }
1254
- return {nodes:nodes, pos:pos, lasts:pos};
1255
- },
1256
- 'preceding':
1257
- function preceding(nodeList /*destructive!*/, nodeTypeNum, nodeName, shouldLowerCase) {
1258
- return precedingHelper(
1259
- nodeList /*destructive!*/, nodeTypeNum, nodeName, shouldLowerCase);
1260
- },
1261
- 'preceding-sibling':
1262
- function precedingSibling(nodeList /*destructive!*/, nodeTypeNum, nodeName, shouldLowerCase) {
1263
- return followingSiblingHelper(
1264
- nodeList /*destructive!*/, nodeTypeNum, nodeName, shouldLowerCase,
1265
- Array.prototype.pop, function() {return this[this.length-1];},
1266
- function(node) {return node.previousSibling},
1267
- false, true);
1268
- },
1269
- 'self':
1270
- function self(nodeList /*destructive!*/, nodeTypeNum, nodeName, shouldLowerCase) {
1271
- var nodes = [], pos = [];
1272
- var matcher = new NodeMatcher(nodeTypeNum, nodeName, shouldLowerCase);
1273
- for (var i = 0; i < nodeList.length; ++i) {
1274
- if (matcher.matches(nodeList[i])) {
1275
- nodes.push(nodeList[i]);
1276
- pos.push([1]);
1277
- }
1278
- }
1279
- return {nodes: nodes, pos: pos, lasts: pos}
1280
- }
1281
- };
1282
-
1283
- /***************************************************************************
1284
- * Evaluation: functions *
1285
- ***************************************************************************/
1286
- var fn = {
1287
- 'number': function number(optObject) {
1288
- if ('number' === typeof optObject)
1289
- return optObject;
1290
- if ('string' === typeof optObject)
1291
- return parseFloat(optObject); // note: parseFloat(' ') -> NaN, unlike +' ' -> 0.
1292
- if ('boolean' === typeof optObject)
1293
- return +optObject;
1294
- return fn.number(fn.string.call(this, optObject)); // for node-sets
1295
- },
1296
- 'string': function string(optObject) {
1297
- if (null == optObject)
1298
- return fn.string(this);
1299
- if ('string' === typeof optObject || 'boolean' === typeof optObject ||
1300
- 'number' === typeof optObject)
1301
- return '' + optObject;
1302
- if (0 == optObject.nodes.length) return '';
1303
- if (null != optObject.nodes[0].textContent)
1304
- return optObject.nodes[0].textContent;
1305
- return optObject.nodes[0].nodeValue;
1306
- },
1307
- 'boolean': function booleanVal(x) {
1308
- return 'object' === typeof x ? x.nodes.length > 0 : !!x;
1309
- },
1310
- 'last': function last() {
1311
- console.assert(Array.isArray(this.pos));
1312
- console.assert(Array.isArray(this.lasts));
1313
- console.assert(1 === this.pos.length);
1314
- console.assert(1 === this.lasts.length);
1315
- console.assert(1 === this.lasts[0].length);
1316
- return this.lasts[0][0];
1317
- },
1318
- 'position': function position() {
1319
- console.assert(Array.isArray(this.pos));
1320
- console.assert(Array.isArray(this.lasts));
1321
- console.assert(1 === this.pos.length);
1322
- console.assert(1 === this.lasts.length);
1323
- console.assert(1 === this.pos[0].length);
1324
- return this.pos[0][0];
1325
- },
1326
- 'count': function count(nodeSet) {
1327
- if ('object' !== typeof nodeSet)
1328
- throw new XPathException(XPathException.INVALID_EXPRESSION_ERR,
1329
- 'Position ' + stream.position() +
1330
- ': Function count(node-set) ' +
1331
- 'got wrong argument type: ' + nodeSet);
1332
- return nodeSet.nodes.length;
1333
- },
1334
- 'id': function id(object) {
1335
- var r = {nodes: []};
1336
- var doc = this.nodes[0].ownerDocument || this.nodes[0];
1337
- console.assert(doc);
1338
- var ids;
1339
- if ('object' === typeof object) {
1340
- // for node-sets, map id over each node value.
1341
- ids = [];
1342
- for (var i = 0; i < object.nodes.length; ++i) {
1343
- var idNode = object.nodes[i];
1344
- var idsString = fn.string({nodes:[idNode]});
1345
- var a = idsString.split(/[ \t\r\n]+/g);
1346
- Array.prototype.push.apply(ids, a);
1347
- }
1348
- } else {
1349
- var idsString = fn.string(object);
1350
- var a = idsString.split(/[ \t\r\n]+/g);
1351
- ids = a;
1352
- }
1353
- for (var i = 0; i < ids.length; ++i) {
1354
- var id = ids[i];
1355
- if (0 === id.length)
1356
- continue;
1357
- var node = doc.getElementById(id);
1358
- if (null != node)
1359
- r.nodes.push(node);
1360
- }
1361
- r.nodes = sortUniqDocumentOrder(r.nodes);
1362
- return r;
1363
- },
1364
- 'local-name': function(nodeSet) {
1365
- if (null == nodeSet)
1366
- return fn.name(this);
1367
- if (null == nodeSet.nodes) {
1368
- throw new XPathException(XPathException.INVALID_EXPRESSION_ERR,
1369
- 'argument to name() must be a node-set. got ' + nodeSet);
1370
- }
1371
- // TODO: namespaced version
1372
- return nodeSet.nodes[0].localName;
1373
- },
1374
- 'namespace-uri': function(nodeSet) {
1375
- // TODO
1376
- throw new Error('not implemented yet');
1377
- },
1378
- 'name': function(nodeSet) {
1379
- if (null == nodeSet)
1380
- return fn.name(this);
1381
- if (null == nodeSet.nodes) {
1382
- throw new XPathException(XPathException.INVALID_EXPRESSION_ERR,
1383
- 'argument to name() must be a node-set. got ' + nodeSet);
1384
- }
1385
- return nodeSet.nodes[0].name;
1386
- },
1387
- 'concat': function concat(x) {
1388
- var l = [];
1389
- for (var i = 0; i < arguments.length; ++i) {
1390
- l.push(fn.string(arguments[i]));
1391
- }
1392
- return l.join('');
1393
- },
1394
- 'starts-with': function startsWith(a, b) {
1395
- var as = fn.string(a), bs = fn.string(b);
1396
- return as.substr(0, bs.length) === bs;
1397
- },
1398
- 'contains': function contains(a, b) {
1399
- var as = fn.string(a), bs = fn.string(b);
1400
- var i = as.indexOf(bs);
1401
- if (-1 === i) return false;
1402
- return true;
1403
- },
1404
- 'substring-before': function substringBefore(a, b) {
1405
- var as = fn.string(a), bs = fn.string(b);
1406
- var i = as.indexOf(bs);
1407
- if (-1 === i) return '';
1408
- return as.substr(0, i);
1409
- },
1410
- 'substring-after': function substringBefore(a, b) {
1411
- var as = fn.string(a), bs = fn.string(b);
1412
- var i = as.indexOf(bs);
1413
- if (-1 === i) return '';
1414
- return as.substr(i + bs.length);
1415
- },
1416
- 'substring': function substring(string, start, optEnd) {
1417
- if (null == string || null == start) {
1418
- throw new XPathException(XPathException.INVALID_EXPRESSION_ERR,
1419
- 'Must be at least 2 arguments to string()');
1420
- }
1421
- var sString = fn.string(string),
1422
- iStart = fn.round(start),
1423
- iEnd = optEnd == null ? null : fn.round(optEnd);
1424
- // Note that xpath string positions user 1-based index
1425
- if (iEnd == null)
1426
- return sString.substr(iStart - 1);
1427
- else
1428
- return sString.substr(iStart - 1, iEnd);
1429
- },
1430
- 'string-length': function stringLength(optString) {
1431
- return fn.string.call(this, optString).length;
1432
- },
1433
- 'normalize-space': function normalizeSpace(optString) {
1434
- var s = fn.string.call(this, optString);
1435
- return s.replace(/[ \t\r\n]+/g, ' ').replace(/^ | $/g, '');
1436
- },
1437
- 'translate': function translate(string, from, to) {
1438
- var sString = fn.string.call(this, string),
1439
- sFrom = fn.string(from),
1440
- sTo = fn.string(to);
1441
- var eachCharRe = [];
1442
- var map = {};
1443
- for (var i = 0; i < sFrom.length; ++i) {
1444
- var c = sFrom.charAt(i);
1445
- map[c] = sTo.charAt(i); // returns '' if beyond length of sTo.
1446
- // copied from goog.string.regExpEscape in the Closure library.
1447
- eachCharRe.push(
1448
- c.replace(/([-()\[\]{}+?*.$\^|,:#<!\\])/g, '\\$1').
1449
- replace(/\x08/g, '\\x08'));
1450
- }
1451
- var re = new RegExp(eachCharRe.join('|'), 'g');
1452
- return sString.replace(re, function(c) {return map[c];});
1453
- },
1454
- /// Boolean functions
1455
- 'not': function not(x) {
1456
- var bx = fn['boolean'](x);
1457
- return !bx;
1458
- },
1459
- 'true': function trueVal() { return true; },
1460
- 'false': function falseVal() { return false; },
1461
- // TODO
1462
- 'lang': function lang(string) { throw new Error('Not implemented');},
1463
- 'sum': function sum(optNodeSet) {
1464
- if (null == optNodeSet) return fn.sum(this);
1465
- // for node-sets, map id over each node value.
1466
- var sum = 0;
1467
- for (var i = 0; i < optNodeSet.nodes.length; ++i) {
1468
- var node = optNodeSet.nodes[i];
1469
- var x = fn.number({nodes:[node]});
1470
- sum += x;
1471
- }
1472
- return sum;
1473
- },
1474
- 'floor': function floor(number) {
1475
- return Math.floor(fn.number(number));
1476
- },
1477
- 'ceiling': function ceiling(number) {
1478
- return Math.ceil(fn.number(number));
1479
- },
1480
- 'round': function round(number) {
1481
- return Math.round(fn.number(number));
1482
- }
1483
- };
1484
- /***************************************************************************
1485
- * Evaluation: operators *
1486
- ***************************************************************************/
1487
- var more = {
1488
- UnaryMinus: function(x) { return -fn.number(x); },
1489
- '+': function(x, y) { return fn.number(x) + fn.number(y); },
1490
- '-': function(x, y) { return fn.number(x) - fn.number(y); },
1491
- '*': function(x, y) { return fn.number(x) * fn.number(y); },
1492
- 'div': function(x, y) { return fn.number(x) / fn.number(y); },
1493
- 'mod': function(x, y) { return fn.number(x) % fn.number(y); },
1494
- '<': function(x, y) {
1495
- return comparisonHelper(function(x, y) { return fn.number(x) < fn.number(y);}, x, y, true);
1496
- },
1497
- '<=': function(x, y) {
1498
- return comparisonHelper(function(x, y) { return fn.number(x) <= fn.number(y);}, x, y, true);
1499
- },
1500
- '>': function(x, y) {
1501
- return comparisonHelper(function(x, y) { return fn.number(x) > fn.number(y);}, x, y, true);
1502
- },
1503
- '>=': function(x, y) {
1504
- return comparisonHelper(function(x, y) { return fn.number(x) >= fn.number(y);}, x, y, true);
1505
- },
1506
- 'and': function(x, y) { return fn['boolean'](x) && fn['boolean'](y); },
1507
- 'or': function(x, y) { return fn['boolean'](x) || fn['boolean'](y); },
1508
- '|': function(x, y) { return {nodes: mergeNodeLists(x.nodes, y.nodes)}; },
1509
- '=': function(x, y) {
1510
- // optimization for two node-sets case: avoid n^2 comparisons.
1511
- if ('object' === typeof x && 'object' === typeof y) {
1512
- var aMap = {};
1513
- for (var i = 0; i < x.nodes.length; ++i) {
1514
- var s = fn.string({nodes:[x.nodes[i]]});
1515
- aMap[s] = true;
1516
- }
1517
- for (var i = 0; i < y.nodes.length; ++i) {
1518
- var s = fn.string({nodes:[y.nodes[i]]});
1519
- if (aMap[s]) return true;
1520
- }
1521
- return false;
1522
- } else {
1523
- return comparisonHelper(function(x, y) {return x === y;}, x, y);
1524
- }
1525
- },
1526
- '!=': function(x, y) {
1527
- // optimization for two node-sets case: avoid n^2 comparisons.
1528
- if ('object' === typeof x && 'object' === typeof y) {
1529
- if (0 === x.nodes.length || 0 === y.nodes.length) return false;
1530
- var aMap = {};
1531
- for (var i = 0; i < x.nodes.length; ++i) {
1532
- var s = fn.string({nodes:[x.nodes[i]]});
1533
- aMap[s] = true;
1534
- }
1535
- for (var i = 0; i < y.nodes.length; ++i) {
1536
- var s = fn.string({nodes:[y.nodes[i]]});
1537
- if (!aMap[s]) return true;
1538
- }
1539
- return false;
1540
- } else {
1541
- return comparisonHelper(function(x, y) {return x !== y;}, x, y);
1542
- }
1543
- }
1544
- };
1545
- var nodeTypes = xpath.nodeTypes = {
1546
- 'node': 0,
1547
- 'attribute': 2,
1548
- 'comment': 8, // this.doc.COMMENT_NODE,
1549
- 'text': 3, // this.doc.TEXT_NODE,
1550
- 'processing-instruction': 7, // this.doc.PROCESSING_INSTRUCTION_NODE,
1551
- 'element': 1 //this.doc.ELEMENT_NODE
1552
- };
1553
- /** For debugging and unit tests: returnjs a stringified version of the
1554
- * argument. */
1555
- var stringifyObject = xpath.stringifyObject = function stringifyObject(ctx) {
1556
- var seenKey = 'seen' + Math.floor(Math.random()*1000000000);
1557
- return JSON.stringify(helper(ctx));
1558
-
1559
- function helper(ctx) {
1560
- if (Array.isArray(ctx)) {
1561
- return ctx.map(function(x) {return helper(x);});
1562
- }
1563
- if ('object' !== typeof ctx) return ctx;
1564
- if (null == ctx) return ctx;
1565
- // if (ctx.toString) return ctx.toString();
1566
- if (null != ctx.outerHTML) return ctx.outerHTML;
1567
- if (null != ctx.nodeValue) return ctx.nodeName + '=' + ctx.nodeValue;
1568
- if (ctx[seenKey]) return '[circular]';
1569
- ctx[seenKey] = true;
1570
- var nicer = {};
1571
- for (var key in ctx) {
1572
- if (seenKey === key)
1573
- continue;
1574
- try {
1575
- nicer[key] = helper(ctx[key]);
1576
- } catch (e) {
1577
- nicer[key] = '[exception: ' + e.message + ']';
1578
- }
1579
- }
1580
- delete ctx[seenKey];
1581
- return nicer;
1582
- }
1583
- }
1584
- var Evaluator = xpath.Evaluator = function Evaluator(doc) {
1585
- this.doc = doc;
1586
- }
1587
- Evaluator.prototype = {
1588
- val: function val(ast, ctx) {
1589
- console.assert(ctx.nodes);
1590
-
1591
- if ('number' === typeof ast || 'string' === typeof ast) return ast;
1592
- if (more[ast[0]]) {
1593
- var evaluatedParams = [];
1594
- for (var i = 1; i < ast.length; ++i) {
1595
- evaluatedParams.push(this.val(ast[i], ctx));
1596
- }
1597
- var r = more[ast[0]].apply(ctx, evaluatedParams);
1598
- return r;
1599
- }
1600
- switch (ast[0]) {
1601
- case 'Root': return {nodes: [this.doc]};
1602
- case 'FunctionCall':
1603
- var functionName = ast[1], functionParams = ast[2];
1604
- if (null == fn[functionName])
1605
- throw new XPathException(XPathException.INVALID_EXPRESSION_ERR,
1606
- 'Unknown function: ' + functionName);
1607
- var evaluatedParams = [];
1608
- for (var i = 0; i < functionParams.length; ++i) {
1609
- evaluatedParams.push(this.val(functionParams[i], ctx));
1610
- }
1611
- var r = fn[functionName].apply(ctx, evaluatedParams);
1612
- return r;
1613
- case 'Predicate':
1614
- var lhs = this.val(ast[1], ctx);
1615
- var ret = {nodes: []};
1616
- var contexts = eachContext(lhs);
1617
- for (var i = 0; i < contexts.length; ++i) {
1618
- var singleNodeSet = contexts[i];
1619
- var rhs = this.val(ast[2], singleNodeSet);
1620
- var success;
1621
- if ('number' === typeof rhs) {
1622
- success = rhs === singleNodeSet.pos[0][0];
1623
- } else {
1624
- success = fn['boolean'](rhs);
1625
- }
1626
- if (success) {
1627
- var node = singleNodeSet.nodes[0];
1628
- ret.nodes.push(node);
1629
- // skip over all the rest of the same node.
1630
- while (i+1 < contexts.length && node === contexts[i+1].nodes[0]) {
1631
- i++;
1632
- }
1633
- }
1634
- }
1635
- return ret;
1636
- case 'PathExpr':
1637
- // turn the path into an expressoin; i.e., remove the position
1638
- // information of the last axis.
1639
- var x = this.val(ast[1], ctx);
1640
- // Make the nodeset a forward-direction-only one.
1641
- if (x.finalize) { // it is a NodeMultiSet
1642
- return {nodes: x.nodes};
1643
- } else {
1644
- return x;
1645
- }
1646
- case '/':
1647
- // TODO: don't generate '/' nodes, just Axis nodes.
1648
- var lhs = this.val(ast[1], ctx);
1649
- console.assert(null != lhs);
1650
- var r = this.val(ast[2], lhs);
1651
- console.assert(null != r);
1652
- return r;
1653
- case 'Axis':
1654
- // All the axis tests from Step. We only get AxisSpecifier NodeTest,
1655
- // not the predicate (which is applied later)
1656
- var axis = ast[1],
1657
- nodeType = ast[2],
1658
- nodeTypeNum = nodeTypes[nodeType],
1659
- shouldLowerCase = true, // TODO: give option
1660
- nodeName = ast[3] && shouldLowerCase ? ast[3].toLowerCase() : ast[3];
1661
- nodeName = nodeName === '*' ? null : nodeName;
1662
- if ('object' !== typeof ctx) return {nodes:[], pos:[]};
1663
- var nodeList = ctx.nodes.slice(); // TODO: is copy needed?
1664
- var r = axes[axis](nodeList /*destructive!*/, nodeTypeNum, nodeName, shouldLowerCase);
1665
- return r;
1666
- }
1667
- }
1668
- };
1669
- var evaluate = xpath.evaluate = function evaluate(expr, doc, context) {
1670
- //var astFactory = new AstEvaluatorFactory(doc, context);
1671
- var stream = new Stream(expr);
1672
- var ast = parse(stream, astFactory);
1673
- var val = new Evaluator(doc).val(ast, {nodes: [context]});
1674
- return val;
1675
- }
1676
-
1677
- /***************************************************************************
1678
- * DOM interface *
1679
- ***************************************************************************/
1680
- var XPathException = xpath.XPathException = function XPathException(code, message) {
1681
- var e = new Error(message);
1682
- e.name = 'XPathException';
1683
- e.code = code;
1684
- return e;
1685
- }
1686
- XPathException.INVALID_EXPRESSION_ERR = 51;
1687
- XPathException.TYPE_ERR = 52;
1688
-
1689
-
1690
- var XPathEvaluator = xpath.XPathEvaluator = function XPathEvaluator() {}
1691
- XPathEvaluator.prototype = {
1692
- createExpression: function(expression, resolver) {
1693
- return new XPathExpression(expression, resolver);
1694
- },
1695
- createNSResolver: function(nodeResolver) {
1696
- // TODO
1697
- },
1698
- evaluate: function evaluate(expression, contextNode, resolver, type, result) {
1699
- var expr = new XPathExpression(expression, resolver);
1700
- return expr.evaluate(contextNode, type, result);
1701
- }
1702
- };
1703
-
1704
-
1705
- var XPathExpression = xpath.XPathExpression = function XPathExpression(expression, resolver, optDoc) {
1706
- var stream = new Stream(expression);
1707
- this._ast = parse(stream, astFactory);
1708
- this._doc = optDoc;
1709
- }
1710
- XPathExpression.prototype = {
1711
- evaluate: function evaluate(contextNode, type, result) {
1712
- if (null == contextNode.nodeType)
1713
- throw new Error('bad argument (expected context node): ' + contextNode);
1714
- var doc = contextNode.ownerDocument || contextNode;
1715
- if (null != this._doc && this._doc !== doc) {
1716
- throw new core.DOMException(
1717
- core.DOMException.WRONG_DOCUMENT_ERR,
1718
- 'The document must be the same as the context node\'s document.');
1719
- }
1720
- var evaluator = new Evaluator(doc);
1721
- var value = evaluator.val(this._ast, {nodes: [contextNode]});
1722
- if (XPathResult.NUMBER_TYPE === type)
1723
- value = fn.number(value);
1724
- else if (XPathResult.STRING_TYPE === type)
1725
- value = fn.string(value);
1726
- else if (XPathResult.BOOLEAN_TYPE === type)
1727
- value = fn['boolean'](value);
1728
- else if (XPathResult.ANY_TYPE !== type &&
1729
- XPathResult.UNORDERED_NODE_ITERATOR_TYPE !== type &&
1730
- XPathResult.ORDERED_NODE_ITERATOR_TYPE !== type &&
1731
- XPathResult.UNORDERED_NODE_SNAPSHOT_TYPE !== type &&
1732
- XPathResult.ORDERED_NODE_SNAPSHOT_TYPE !== type &&
1733
- XPathResult.ANY_UNORDERED_NODE_TYPE !== type &&
1734
- XPathResult.FIRST_ORDERED_NODE_TYPE !== type)
1735
- throw new core.DOMException(
1736
- core.DOMException.NOT_SUPPORTED_ERR,
1737
- 'You must provide an XPath result type (0=any).');
1738
- else if (XPathResult.ANY_TYPE !== type &&
1739
- 'object' !== typeof value)
1740
- throw new XPathException(
1741
- XPathException.TYPE_ERR,
1742
- 'Value should be a node-set: ' + value);
1743
- return new XPathResult(doc, value, type);
1744
- }
1745
- }
1746
-
1747
- var XPathResult = xpath.XPathResult = function XPathResult(doc, value, resultType) {
1748
- this._value = value;
1749
- this._resultType = resultType;
1750
- this._i = 0;
1751
-
1752
- // TODO: we removed mutation events but didn't take care of this. No tests fail, so that's nice, but eventually we
1753
- // should fix this, preferably by entirely replacing our XPath implementation.
1754
- // this._invalidated = false;
1755
- // if (this.resultType === XPathResult.UNORDERED_NODE_ITERATOR_TYPE ||
1756
- // this.resultType === XPathResult.ORDERED_NODE_ITERATOR_TYPE) {
1757
- // doc.addEventListener('DOMSubtreeModified', invalidate, true);
1758
- // var self = this;
1759
- // function invalidate() {
1760
- // self._invalidated = true;
1761
- // doc.removeEventListener('DOMSubtreeModified', invalidate, true);
1762
- // }
1763
- // }
1764
- }
1765
- XPathResult.ANY_TYPE = 0;
1766
- XPathResult.NUMBER_TYPE = 1;
1767
- XPathResult.STRING_TYPE = 2;
1768
- XPathResult.BOOLEAN_TYPE = 3;
1769
- XPathResult.UNORDERED_NODE_ITERATOR_TYPE = 4;
1770
- XPathResult.ORDERED_NODE_ITERATOR_TYPE = 5;
1771
- XPathResult.UNORDERED_NODE_SNAPSHOT_TYPE = 6;
1772
- XPathResult.ORDERED_NODE_SNAPSHOT_TYPE = 7;
1773
- XPathResult.ANY_UNORDERED_NODE_TYPE = 8;
1774
- XPathResult.FIRST_ORDERED_NODE_TYPE = 9;
1775
- var proto = {
1776
- // XPathResultType
1777
- get resultType() {
1778
- if (this._resultType) return this._resultType;
1779
- switch (typeof this._value) {
1780
- case 'number': return XPathResult.NUMBER_TYPE;
1781
- case 'string': return XPathResult.STRING_TYPE;
1782
- case 'boolean': return XPathResult.BOOLEAN_TYPE;
1783
- default: return XPathResult.UNORDERED_NODE_ITERATOR_TYPE;
1784
- }
1785
- },
1786
- get numberValue() {
1787
- if (XPathResult.NUMBER_TYPE !== this.resultType)
1788
- throw new XPathException(XPathException.TYPE_ERR,
1789
- 'You should have asked for a NUMBER_TYPE.');
1790
- return this._value;
1791
- },
1792
- get stringValue() {
1793
- if (XPathResult.STRING_TYPE !== this.resultType)
1794
- throw new XPathException(XPathException.TYPE_ERR,
1795
- 'You should have asked for a STRING_TYPE.');
1796
- return this._value;
1797
- },
1798
- get booleanValue() {
1799
- if (XPathResult.BOOLEAN_TYPE !== this.resultType)
1800
- throw new XPathException(XPathException.TYPE_ERR,
1801
- 'You should have asked for a BOOLEAN_TYPE.');
1802
- return this._value;
1803
- },
1804
- get singleNodeValue() {
1805
- if (XPathResult.ANY_UNORDERED_NODE_TYPE !== this.resultType &&
1806
- XPathResult.FIRST_ORDERED_NODE_TYPE !== this.resultType)
1807
- throw new XPathException(
1808
- XPathException.TYPE_ERR,
1809
- 'You should have asked for a FIRST_ORDERED_NODE_TYPE.');
1810
- return this._value.nodes[0] || null;
1811
- },
1812
- get invalidIteratorState() {
1813
- if (XPathResult.UNORDERED_NODE_ITERATOR_TYPE !== this.resultType &&
1814
- XPathResult.ORDERED_NODE_ITERATOR_TYPE !== this.resultType)
1815
- return false;
1816
- return !!this._invalidated;
1817
- },
1818
- get snapshotLength() {
1819
- if (XPathResult.UNORDERED_NODE_SNAPSHOT_TYPE !== this.resultType &&
1820
- XPathResult.ORDERED_NODE_SNAPSHOT_TYPE !== this.resultType)
1821
- throw new XPathException(
1822
- XPathException.TYPE_ERR,
1823
- 'You should have asked for a ORDERED_NODE_SNAPSHOT_TYPE.');
1824
- return this._value.nodes.length;
1825
- },
1826
- iterateNext: function iterateNext() {
1827
- if (XPathResult.UNORDERED_NODE_ITERATOR_TYPE !== this.resultType &&
1828
- XPathResult.ORDERED_NODE_ITERATOR_TYPE !== this.resultType)
1829
- throw new XPathException(
1830
- XPathException.TYPE_ERR,
1831
- 'You should have asked for a ORDERED_NODE_ITERATOR_TYPE.');
1832
- if (this.invalidIteratorState)
1833
- throw new core.DOMException(
1834
- core.DOMException.INVALID_STATE_ERR,
1835
- 'The document has been mutated since the result was returned');
1836
- return this._value.nodes[this._i++] || null;
1837
- },
1838
- snapshotItem: function snapshotItem(index) {
1839
- if (XPathResult.UNORDERED_NODE_SNAPSHOT_TYPE !== this.resultType &&
1840
- XPathResult.ORDERED_NODE_SNAPSHOT_TYPE !== this.resultType)
1841
- throw new XPathException(
1842
- XPathException.TYPE_ERR,
1843
- 'You should have asked for a ORDERED_NODE_SNAPSHOT_TYPE.');
1844
- return this._value.nodes[index] || null;
1845
- }
1846
- };
1847
- // so you can access ANY_TYPE etc. from the instances:
1848
- XPathResult.prototype = Object.create(XPathResult,
1849
- Object.keys(proto).reduce(function (descriptors, name) {
1850
- descriptors[name] = Object.getOwnPropertyDescriptor(proto, name);
1851
- return descriptors;
1852
- }, {
1853
- constructor: {
1854
- value: XPathResult,
1855
- writable: true,
1856
- configurable: true
1857
- }
1858
- }));
1859
-
1860
- core.XPathException = XPathException;
1861
- core.XPathExpression = XPathExpression;
1862
- core.XPathResult = XPathResult;
1863
- core.XPathEvaluator = XPathEvaluator;
1864
-
1865
- core.Document.prototype.createExpression =
1866
- XPathEvaluator.prototype.createExpression;
1867
-
1868
- core.Document.prototype.createNSResolver =
1869
- XPathEvaluator.prototype.createNSResolver;
1870
-
1871
- core.Document.prototype.evaluate = XPathEvaluator.prototype.evaluate;
1872
-
1873
- return xpath; // for tests
1874
- };