appmap 0.61.0 → 0.63.0

Sign up to get free protection for your applications and to get access to all the features.
Files changed (3114) hide show
  1. checksums.yaml +4 -4
  2. data/.travis.yml +6 -16
  3. data/ARCHITECTURE.md +68 -0
  4. data/CHANGELOG.md +38 -0
  5. data/Rakefile +7 -7
  6. data/exe/appmap-index +7 -0
  7. data/lib/appmap/agent.rb +0 -11
  8. data/lib/appmap/command/index.rb +25 -0
  9. data/lib/appmap/command/inspect.rb +0 -1
  10. data/lib/appmap/config.rb +8 -1
  11. data/lib/appmap/depends/api.rb +84 -0
  12. data/lib/appmap/depends/configuration.rb +59 -0
  13. data/lib/appmap/depends/node_cli.rb +44 -0
  14. data/lib/appmap/depends/rake_tasks.rb +58 -0
  15. data/lib/appmap/depends/test_file_inspector.rb +89 -0
  16. data/lib/appmap/depends/test_runner.rb +106 -0
  17. data/lib/appmap/depends/util.rb +34 -0
  18. data/lib/appmap/depends.rb +2 -0
  19. data/lib/appmap/node_cli.rb +1 -1
  20. data/lib/appmap/service/test_command_provider.rb +4 -6
  21. data/lib/appmap/version.rb +1 -1
  22. data/lib/appmap.rb +2 -0
  23. data/node_modules/@appland/appmap/CHANGELOG.md +136 -0
  24. data/node_modules/@appland/appmap/package.json +50 -0
  25. data/node_modules/@appland/appmap/src/agentInstaller/buildToolInstallerBase.js +28 -0
  26. data/node_modules/@appland/appmap/src/agentInstaller/commandStruct.js +17 -0
  27. data/node_modules/@appland/appmap/src/agentInstaller/installAgentStep.js +30 -0
  28. data/node_modules/@appland/appmap/src/agentInstaller/javaAgentInstaller.js +321 -0
  29. data/node_modules/@appland/appmap/src/agentInstaller/pythonAgentInstaller.js +174 -0
  30. data/node_modules/@appland/appmap/src/agentInstaller/rubyAgentInstaller.js +129 -0
  31. data/node_modules/@appland/appmap/src/agentInstaller/types.d.ts +76 -0
  32. data/node_modules/@appland/appmap/src/appMapCatalog.js +39 -0
  33. data/node_modules/@appland/appmap/src/appland/getAppMap.js +55 -0
  34. data/node_modules/@appland/appmap/src/appland/listAppMaps.js +58 -0
  35. data/node_modules/@appland/appmap/src/appland/settings.js +62 -0
  36. data/node_modules/@appland/appmap/src/appland/types.d.ts +16 -0
  37. data/node_modules/@appland/appmap/src/cli.js +729 -0
  38. data/node_modules/@appland/appmap/src/database.js +197 -0
  39. data/node_modules/@appland/appmap/src/depends.js +157 -0
  40. data/node_modules/@appland/appmap/src/errors/abortError.js +5 -0
  41. data/node_modules/@appland/appmap/src/errors/validationError.js +5 -0
  42. data/node_modules/@appland/appmap/src/fingerprint/algorithms.js +71 -0
  43. data/node_modules/@appland/appmap/src/fingerprint/canonicalize/base.js +58 -0
  44. data/node_modules/@appland/appmap/src/fingerprint/canonicalize/classDependencies.js +36 -0
  45. data/node_modules/@appland/appmap/src/fingerprint/canonicalize/classes.js +14 -0
  46. data/node_modules/@appland/appmap/src/fingerprint/canonicalize/eventTree.js +19 -0
  47. data/node_modules/@appland/appmap/src/fingerprint/canonicalize/httpClientRequests.js +18 -0
  48. data/node_modules/@appland/appmap/src/fingerprint/canonicalize/httpServerRequests.js +18 -0
  49. data/node_modules/@appland/appmap/src/fingerprint/canonicalize/info.js +55 -0
  50. data/node_modules/@appland/appmap/src/fingerprint/canonicalize/labels.js +10 -0
  51. data/node_modules/@appland/appmap/src/fingerprint/canonicalize/packageDependencies.js +36 -0
  52. data/node_modules/@appland/appmap/src/fingerprint/canonicalize/packages.js +14 -0
  53. data/node_modules/@appland/appmap/src/fingerprint/canonicalize/sqlNormalized.js +19 -0
  54. data/node_modules/@appland/appmap/src/fingerprint/canonicalize/sqlTables.js +24 -0
  55. data/node_modules/@appland/appmap/src/fingerprint/canonicalize/trace.js +57 -0
  56. data/node_modules/@appland/appmap/src/fingerprint/canonicalize/unique.js +8 -0
  57. data/node_modules/@appland/appmap/src/fingerprint/canonicalize/update.js +85 -0
  58. data/node_modules/@appland/appmap/src/fingerprint/canonicalize.js +70 -0
  59. data/node_modules/@appland/appmap/src/fingerprint/fingerprintDirectoryCommand.js +30 -0
  60. data/node_modules/@appland/appmap/src/fingerprint/fingerprintQueue.js +30 -0
  61. data/node_modules/@appland/appmap/src/fingerprint/fingerprintWatchCommand.js +64 -0
  62. data/node_modules/@appland/appmap/src/fingerprint/fingerprinter.js +186 -0
  63. data/node_modules/@appland/appmap/src/fingerprint/index.js +24 -0
  64. data/node_modules/@appland/appmap/src/functionStats.js +168 -0
  65. data/node_modules/@appland/appmap/src/inspect/fields.js +66 -0
  66. data/node_modules/@appland/appmap/src/inspect/filter.js +105 -0
  67. data/node_modules/@appland/appmap/src/inspect/home.js +64 -0
  68. data/node_modules/@appland/appmap/src/inspect/print.js +231 -0
  69. data/node_modules/@appland/appmap/src/inspect/reset.js +10 -0
  70. data/node_modules/@appland/appmap/src/inspect/types.d.ts +11 -0
  71. data/node_modules/@appland/appmap/src/inspect/undoFilter.js +10 -0
  72. data/node_modules/@appland/appmap/src/inspect.js +7 -0
  73. data/node_modules/@appland/appmap/src/inventoryCommand.js +59 -0
  74. data/node_modules/@appland/appmap/src/search/codeObjectMatcher.js +75 -0
  75. data/node_modules/@appland/appmap/src/search/constants.js +5 -0
  76. data/node_modules/@appland/appmap/src/search/findCodeObjects.js +293 -0
  77. data/node_modules/@appland/appmap/src/search/findEvents.js +184 -0
  78. data/node_modules/@appland/appmap/src/search/matchFilter.js +65 -0
  79. data/node_modules/@appland/appmap/src/search/matchSpec.js +198 -0
  80. data/node_modules/@appland/appmap/src/search/trigram.js +107 -0
  81. data/node_modules/@appland/appmap/src/search/types.d.ts +107 -0
  82. data/node_modules/@appland/appmap/src/search/utils.js +4 -0
  83. data/node_modules/@appland/appmap/src/swagger/README.md +75 -0
  84. data/node_modules/@appland/appmap/src/swagger/command.js +42 -0
  85. data/node_modules/@appland/appmap/src/swagger/method.js +173 -0
  86. data/node_modules/@appland/appmap/src/swagger/model.js +54 -0
  87. data/node_modules/@appland/appmap/src/swagger/path.js +38 -0
  88. data/node_modules/@appland/appmap/src/swagger/response.js +34 -0
  89. data/node_modules/@appland/appmap/src/swagger/schema.js +38 -0
  90. data/node_modules/@appland/appmap/src/swagger/securitySchemes.js +60 -0
  91. data/node_modules/@appland/appmap/src/swagger/settings.js +9 -0
  92. data/node_modules/@appland/appmap/src/swagger/util.js +79 -0
  93. data/node_modules/@appland/appmap/src/utils.js +165 -0
  94. data/node_modules/@appland/appmap/tests/unit/agentInstall/python.js +0 -0
  95. data/node_modules/@appland/appmap/tests/unit/agentInstall/python.spec.js +109 -0
  96. data/node_modules/@appland/appmap/tests/unit/depends.spec.js +63 -0
  97. data/node_modules/@appland/appmap/tests/unit/fingerprint/canonicalize.spec.js +42 -0
  98. data/node_modules/@appland/appmap/tests/unit/fingerprint/sql.spec.js +40 -0
  99. data/node_modules/@appland/appmap/tests/unit/fixtures/python/pip/requirements.txt +2 -0
  100. data/node_modules/@appland/appmap/tests/unit/fixtures/python/poetry/poetry.lock +2 -0
  101. data/node_modules/@appland/appmap/tests/unit/fixtures/ruby/app/controllers/organizations_controller.rb +1 -0
  102. data/node_modules/@appland/appmap/tests/unit/fixtures/ruby/app/models/configuration.rb +1 -0
  103. data/node_modules/@appland/appmap/tests/unit/fixtures/ruby/app/models/show.rb +1 -0
  104. data/node_modules/@appland/appmap/tests/unit/fixtures/ruby/app/models/user.rb +1 -0
  105. data/node_modules/@appland/appmap/tests/unit/fixtures/ruby/canonicalize/revoke_api_key.info.json +170 -0
  106. data/node_modules/@appland/appmap/tests/unit/fixtures/ruby/canonicalize/revoke_api_key.trace.json +213 -0
  107. data/node_modules/@appland/appmap/tests/unit/fixtures/ruby/canonicalize/revoke_api_key.update.json +54 -0
  108. data/node_modules/@appland/appmap/tests/unit/fixtures/ruby/revoke_api_key.appmap.json +884 -0
  109. data/node_modules/@appland/appmap/tests/unit/fixtures/ruby/user_page_scenario.appmap.json +1750 -0
  110. data/node_modules/@appland/appmap/tests/unit/inspect.spec.js +105 -0
  111. data/node_modules/@appland/models/CHANGELOG.md +90 -0
  112. data/node_modules/@appland/models/README.md +8 -0
  113. data/node_modules/@appland/models/dist/index.cjs +4250 -0
  114. data/node_modules/@appland/models/dist/index.js +4193 -0
  115. data/node_modules/@appland/models/package.json +50 -0
  116. data/node_modules/@tootallnate/once/dist/index.d.ts +14 -0
  117. data/node_modules/@tootallnate/once/dist/index.js +39 -0
  118. data/node_modules/@tootallnate/once/dist/index.js.map +1 -0
  119. data/node_modules/@tootallnate/once/package.json +45 -0
  120. data/node_modules/abab/CHANGELOG.md +45 -0
  121. data/node_modules/abab/LICENSE.md +13 -0
  122. data/node_modules/abab/README.md +51 -0
  123. data/node_modules/abab/index.d.ts +2 -0
  124. data/node_modules/abab/index.js +9 -0
  125. data/node_modules/abab/lib/atob.js +97 -0
  126. data/node_modules/abab/lib/btoa.js +58 -0
  127. data/node_modules/abab/package.json +42 -0
  128. data/node_modules/acorn/CHANGELOG.md +744 -0
  129. data/node_modules/acorn/LICENSE +21 -0
  130. data/node_modules/acorn/README.md +280 -0
  131. data/node_modules/acorn/bin/acorn +4 -0
  132. data/node_modules/acorn/dist/acorn.d.ts +211 -0
  133. data/node_modules/acorn/dist/acorn.js +5525 -0
  134. data/node_modules/acorn/dist/acorn.mjs +5494 -0
  135. data/node_modules/acorn/dist/acorn.mjs.d.ts +2 -0
  136. data/node_modules/acorn/dist/bin.js +65 -0
  137. data/node_modules/acorn/package.json +46 -0
  138. data/node_modules/acorn-globals/LICENSE +19 -0
  139. data/node_modules/acorn-globals/README.md +81 -0
  140. data/node_modules/acorn-globals/index.js +179 -0
  141. data/node_modules/acorn-globals/node_modules/acorn/CHANGELOG.md +620 -0
  142. data/node_modules/acorn-globals/node_modules/acorn/LICENSE +21 -0
  143. data/node_modules/acorn-globals/node_modules/acorn/README.md +269 -0
  144. data/node_modules/acorn-globals/node_modules/acorn/bin/acorn +4 -0
  145. data/node_modules/acorn-globals/node_modules/acorn/dist/acorn.d.ts +209 -0
  146. data/node_modules/acorn-globals/node_modules/acorn/dist/acorn.js +5186 -0
  147. data/node_modules/acorn-globals/node_modules/acorn/dist/acorn.js.map +1 -0
  148. data/node_modules/acorn-globals/node_modules/acorn/dist/acorn.mjs +5155 -0
  149. data/node_modules/acorn-globals/node_modules/acorn/dist/acorn.mjs.d.ts +2 -0
  150. data/node_modules/acorn-globals/node_modules/acorn/dist/acorn.mjs.map +1 -0
  151. data/node_modules/acorn-globals/node_modules/acorn/dist/bin.js +64 -0
  152. data/node_modules/acorn-globals/node_modules/acorn/package.json +35 -0
  153. data/node_modules/acorn-globals/package.json +35 -0
  154. data/node_modules/acorn-walk/CHANGELOG.md +131 -0
  155. data/node_modules/acorn-walk/LICENSE +19 -0
  156. data/node_modules/acorn-walk/README.md +126 -0
  157. data/node_modules/acorn-walk/dist/walk.d.ts +112 -0
  158. data/node_modules/acorn-walk/dist/walk.js +463 -0
  159. data/node_modules/acorn-walk/dist/walk.js.map +1 -0
  160. data/node_modules/acorn-walk/dist/walk.mjs +443 -0
  161. data/node_modules/acorn-walk/dist/walk.mjs.map +1 -0
  162. data/node_modules/acorn-walk/package.json +34 -0
  163. data/node_modules/agent-base/README.md +145 -0
  164. data/node_modules/agent-base/dist/src/index.d.ts +78 -0
  165. data/node_modules/agent-base/dist/src/index.js +203 -0
  166. data/node_modules/agent-base/dist/src/index.js.map +1 -0
  167. data/node_modules/agent-base/dist/src/promisify.d.ts +4 -0
  168. data/node_modules/agent-base/dist/src/promisify.js +18 -0
  169. data/node_modules/agent-base/dist/src/promisify.js.map +1 -0
  170. data/node_modules/agent-base/package.json +64 -0
  171. data/node_modules/agent-base/src/index.ts +345 -0
  172. data/node_modules/agent-base/src/promisify.ts +33 -0
  173. data/node_modules/ansi-regex/index.d.ts +37 -0
  174. data/node_modules/ansi-regex/index.js +10 -0
  175. data/node_modules/ansi-regex/license +9 -0
  176. data/node_modules/ansi-regex/package.json +55 -0
  177. data/node_modules/ansi-regex/readme.md +78 -0
  178. data/node_modules/ansi-styles/index.d.ts +345 -0
  179. data/node_modules/ansi-styles/index.js +163 -0
  180. data/node_modules/ansi-styles/license +9 -0
  181. data/node_modules/ansi-styles/package.json +56 -0
  182. data/node_modules/ansi-styles/readme.md +152 -0
  183. data/node_modules/anymatch/LICENSE +15 -0
  184. data/node_modules/anymatch/README.md +87 -0
  185. data/node_modules/anymatch/index.d.ts +19 -0
  186. data/node_modules/anymatch/index.js +104 -0
  187. data/node_modules/anymatch/package.json +48 -0
  188. data/node_modules/argparse/CHANGELOG.md +185 -0
  189. data/node_modules/argparse/LICENSE +21 -0
  190. data/node_modules/argparse/README.md +257 -0
  191. data/node_modules/argparse/index.js +3 -0
  192. data/node_modules/argparse/lib/action/append/constant.js +47 -0
  193. data/node_modules/argparse/lib/action/append.js +53 -0
  194. data/node_modules/argparse/lib/action/count.js +40 -0
  195. data/node_modules/argparse/lib/action/help.js +47 -0
  196. data/node_modules/argparse/lib/action/store/constant.js +43 -0
  197. data/node_modules/argparse/lib/action/store/false.js +27 -0
  198. data/node_modules/argparse/lib/action/store/true.js +26 -0
  199. data/node_modules/argparse/lib/action/store.js +50 -0
  200. data/node_modules/argparse/lib/action/subparsers.js +149 -0
  201. data/node_modules/argparse/lib/action/version.js +47 -0
  202. data/node_modules/argparse/lib/action.js +146 -0
  203. data/node_modules/argparse/lib/action_container.js +482 -0
  204. data/node_modules/argparse/lib/argparse.js +14 -0
  205. data/node_modules/argparse/lib/argument/error.js +50 -0
  206. data/node_modules/argparse/lib/argument/exclusive.js +54 -0
  207. data/node_modules/argparse/lib/argument/group.js +75 -0
  208. data/node_modules/argparse/lib/argument_parser.js +1161 -0
  209. data/node_modules/argparse/lib/const.js +21 -0
  210. data/node_modules/argparse/lib/help/added_formatters.js +87 -0
  211. data/node_modules/argparse/lib/help/formatter.js +795 -0
  212. data/node_modules/argparse/lib/namespace.js +76 -0
  213. data/node_modules/argparse/lib/utils.js +57 -0
  214. data/node_modules/argparse/package.json +34 -0
  215. data/node_modules/async/CHANGELOG.md +331 -0
  216. data/node_modules/async/LICENSE +19 -0
  217. data/node_modules/async/README.md +60 -0
  218. data/node_modules/async/all.js +54 -0
  219. data/node_modules/async/allLimit.js +46 -0
  220. data/node_modules/async/allSeries.js +45 -0
  221. data/node_modules/async/any.js +56 -0
  222. data/node_modules/async/anyLimit.js +47 -0
  223. data/node_modules/async/anySeries.js +46 -0
  224. data/node_modules/async/apply.js +55 -0
  225. data/node_modules/async/applyEach.js +57 -0
  226. data/node_modules/async/applyEachSeries.js +37 -0
  227. data/node_modules/async/asyncify.js +118 -0
  228. data/node_modules/async/auto.js +267 -0
  229. data/node_modules/async/autoInject.js +156 -0
  230. data/node_modules/async/bower.json +17 -0
  231. data/node_modules/async/cargo.js +63 -0
  232. data/node_modules/async/cargoQueue.js +71 -0
  233. data/node_modules/async/compose.js +55 -0
  234. data/node_modules/async/concat.js +47 -0
  235. data/node_modules/async/concatLimit.js +60 -0
  236. data/node_modules/async/concatSeries.js +41 -0
  237. data/node_modules/async/constant.js +55 -0
  238. data/node_modules/async/detect.js +61 -0
  239. data/node_modules/async/detectLimit.js +48 -0
  240. data/node_modules/async/detectSeries.js +47 -0
  241. data/node_modules/async/dir.js +43 -0
  242. data/node_modules/async/dist/async.js +4846 -0
  243. data/node_modules/async/dist/async.min.js +1 -0
  244. data/node_modules/async/dist/async.mjs +4734 -0
  245. data/node_modules/async/doDuring.js +68 -0
  246. data/node_modules/async/doUntil.js +46 -0
  247. data/node_modules/async/doWhilst.js +68 -0
  248. data/node_modules/async/during.js +78 -0
  249. data/node_modules/async/each.js +88 -0
  250. data/node_modules/async/eachLimit.js +50 -0
  251. data/node_modules/async/eachOf.js +116 -0
  252. data/node_modules/async/eachOfLimit.js +47 -0
  253. data/node_modules/async/eachOfSeries.js +39 -0
  254. data/node_modules/async/eachSeries.js +44 -0
  255. data/node_modules/async/ensureAsync.js +67 -0
  256. data/node_modules/async/every.js +54 -0
  257. data/node_modules/async/everyLimit.js +46 -0
  258. data/node_modules/async/everySeries.js +45 -0
  259. data/node_modules/async/filter.js +53 -0
  260. data/node_modules/async/filterLimit.js +45 -0
  261. data/node_modules/async/filterSeries.js +43 -0
  262. data/node_modules/async/find.js +61 -0
  263. data/node_modules/async/findLimit.js +48 -0
  264. data/node_modules/async/findSeries.js +47 -0
  265. data/node_modules/async/flatMap.js +47 -0
  266. data/node_modules/async/flatMapLimit.js +60 -0
  267. data/node_modules/async/flatMapSeries.js +41 -0
  268. data/node_modules/async/foldl.js +77 -0
  269. data/node_modules/async/foldr.js +41 -0
  270. data/node_modules/async/forEach.js +88 -0
  271. data/node_modules/async/forEachLimit.js +50 -0
  272. data/node_modules/async/forEachOf.js +116 -0
  273. data/node_modules/async/forEachOfLimit.js +47 -0
  274. data/node_modules/async/forEachOfSeries.js +39 -0
  275. data/node_modules/async/forEachSeries.js +44 -0
  276. data/node_modules/async/forever.js +68 -0
  277. data/node_modules/async/groupBy.js +54 -0
  278. data/node_modules/async/groupByLimit.js +71 -0
  279. data/node_modules/async/groupBySeries.js +36 -0
  280. data/node_modules/async/index.js +588 -0
  281. data/node_modules/async/inject.js +77 -0
  282. data/node_modules/async/internal/DoublyLinkedList.js +92 -0
  283. data/node_modules/async/internal/Heap.js +120 -0
  284. data/node_modules/async/internal/applyEach.js +29 -0
  285. data/node_modules/async/internal/asyncEachOfLimit.js +75 -0
  286. data/node_modules/async/internal/awaitify.js +27 -0
  287. data/node_modules/async/internal/breakLoop.js +10 -0
  288. data/node_modules/async/internal/consoleFunc.js +27 -0
  289. data/node_modules/async/internal/createTester.js +40 -0
  290. data/node_modules/async/internal/eachOfLimit.js +90 -0
  291. data/node_modules/async/internal/filter.js +55 -0
  292. data/node_modules/async/internal/getIterator.js +11 -0
  293. data/node_modules/async/internal/initialParams.js +14 -0
  294. data/node_modules/async/internal/isArrayLike.js +10 -0
  295. data/node_modules/async/internal/iterator.js +54 -0
  296. data/node_modules/async/internal/map.js +30 -0
  297. data/node_modules/async/internal/once.js +17 -0
  298. data/node_modules/async/internal/onlyOnce.js +15 -0
  299. data/node_modules/async/internal/parallel.js +34 -0
  300. data/node_modules/async/internal/promiseCallback.js +23 -0
  301. data/node_modules/async/internal/queue.js +291 -0
  302. data/node_modules/async/internal/range.js +14 -0
  303. data/node_modules/async/internal/reject.js +26 -0
  304. data/node_modules/async/internal/setImmediate.js +30 -0
  305. data/node_modules/async/internal/withoutIndex.js +10 -0
  306. data/node_modules/async/internal/wrapAsync.js +34 -0
  307. data/node_modules/async/log.js +41 -0
  308. data/node_modules/async/map.js +62 -0
  309. data/node_modules/async/mapLimit.js +45 -0
  310. data/node_modules/async/mapSeries.js +44 -0
  311. data/node_modules/async/mapValues.js +62 -0
  312. data/node_modules/async/mapValuesLimit.js +61 -0
  313. data/node_modules/async/mapValuesSeries.js +37 -0
  314. data/node_modules/async/memoize.js +91 -0
  315. data/node_modules/async/nextTick.js +52 -0
  316. data/node_modules/async/package.json +82 -0
  317. data/node_modules/async/parallel.js +91 -0
  318. data/node_modules/async/parallelLimit.js +41 -0
  319. data/node_modules/async/priorityQueue.js +84 -0
  320. data/node_modules/async/queue.js +167 -0
  321. data/node_modules/async/race.js +67 -0
  322. data/node_modules/async/reduce.js +77 -0
  323. data/node_modules/async/reduceRight.js +41 -0
  324. data/node_modules/async/reflect.js +78 -0
  325. data/node_modules/async/reflectAll.js +93 -0
  326. data/node_modules/async/reject.js +53 -0
  327. data/node_modules/async/rejectLimit.js +45 -0
  328. data/node_modules/async/rejectSeries.js +43 -0
  329. data/node_modules/async/retry.js +159 -0
  330. data/node_modules/async/retryable.js +77 -0
  331. data/node_modules/async/select.js +53 -0
  332. data/node_modules/async/selectLimit.js +45 -0
  333. data/node_modules/async/selectSeries.js +43 -0
  334. data/node_modules/async/seq.js +79 -0
  335. data/node_modules/async/series.js +86 -0
  336. data/node_modules/async/setImmediate.js +45 -0
  337. data/node_modules/async/some.js +56 -0
  338. data/node_modules/async/someLimit.js +47 -0
  339. data/node_modules/async/someSeries.js +46 -0
  340. data/node_modules/async/sortBy.js +88 -0
  341. data/node_modules/async/timeout.js +89 -0
  342. data/node_modules/async/times.js +50 -0
  343. data/node_modules/async/timesLimit.js +43 -0
  344. data/node_modules/async/timesSeries.js +32 -0
  345. data/node_modules/async/transform.js +81 -0
  346. data/node_modules/async/tryEach.js +78 -0
  347. data/node_modules/async/unmemoize.js +25 -0
  348. data/node_modules/async/until.js +61 -0
  349. data/node_modules/async/waterfall.js +105 -0
  350. data/node_modules/async/whilst.js +78 -0
  351. data/node_modules/async/wrapSync.js +118 -0
  352. data/node_modules/asynckit/LICENSE +21 -0
  353. data/node_modules/asynckit/README.md +233 -0
  354. data/node_modules/asynckit/bench.js +76 -0
  355. data/node_modules/asynckit/index.js +6 -0
  356. data/node_modules/asynckit/lib/abort.js +29 -0
  357. data/node_modules/asynckit/lib/async.js +34 -0
  358. data/node_modules/asynckit/lib/defer.js +26 -0
  359. data/node_modules/asynckit/lib/iterate.js +75 -0
  360. data/node_modules/asynckit/lib/readable_asynckit.js +91 -0
  361. data/node_modules/asynckit/lib/readable_parallel.js +25 -0
  362. data/node_modules/asynckit/lib/readable_serial.js +25 -0
  363. data/node_modules/asynckit/lib/readable_serial_ordered.js +29 -0
  364. data/node_modules/asynckit/lib/state.js +37 -0
  365. data/node_modules/asynckit/lib/streamify.js +141 -0
  366. data/node_modules/asynckit/lib/terminator.js +29 -0
  367. data/node_modules/asynckit/package.json +63 -0
  368. data/node_modules/asynckit/parallel.js +43 -0
  369. data/node_modules/asynckit/serial.js +17 -0
  370. data/node_modules/asynckit/serialOrdered.js +75 -0
  371. data/node_modules/asynckit/stream.js +21 -0
  372. data/node_modules/at-least-node/LICENSE +6 -0
  373. data/node_modules/at-least-node/README.md +25 -0
  374. data/node_modules/at-least-node/index.js +5 -0
  375. data/node_modules/at-least-node/package.json +32 -0
  376. data/node_modules/balanced-match/LICENSE.md +21 -0
  377. data/node_modules/balanced-match/README.md +97 -0
  378. data/node_modules/balanced-match/index.js +62 -0
  379. data/node_modules/balanced-match/package.json +48 -0
  380. data/node_modules/binary-extensions/binary-extensions.json +260 -0
  381. data/node_modules/binary-extensions/binary-extensions.json.d.ts +3 -0
  382. data/node_modules/binary-extensions/index.d.ts +14 -0
  383. data/node_modules/binary-extensions/index.js +1 -0
  384. data/node_modules/binary-extensions/license +9 -0
  385. data/node_modules/binary-extensions/package.json +38 -0
  386. data/node_modules/binary-extensions/readme.md +41 -0
  387. data/node_modules/brace-expansion/LICENSE +21 -0
  388. data/node_modules/brace-expansion/README.md +129 -0
  389. data/node_modules/brace-expansion/index.js +201 -0
  390. data/node_modules/brace-expansion/package.json +47 -0
  391. data/node_modules/braces/CHANGELOG.md +184 -0
  392. data/node_modules/braces/LICENSE +21 -0
  393. data/node_modules/braces/README.md +593 -0
  394. data/node_modules/braces/index.js +170 -0
  395. data/node_modules/braces/lib/compile.js +57 -0
  396. data/node_modules/braces/lib/constants.js +57 -0
  397. data/node_modules/braces/lib/expand.js +113 -0
  398. data/node_modules/braces/lib/parse.js +333 -0
  399. data/node_modules/braces/lib/stringify.js +32 -0
  400. data/node_modules/braces/lib/utils.js +112 -0
  401. data/node_modules/braces/package.json +77 -0
  402. data/node_modules/browser-process-hrtime/LICENSE +9 -0
  403. data/node_modules/browser-process-hrtime/README.md +27 -0
  404. data/node_modules/browser-process-hrtime/index.d.ts +4 -0
  405. data/node_modules/browser-process-hrtime/index.js +28 -0
  406. data/node_modules/browser-process-hrtime/package.json +15 -0
  407. data/node_modules/chokidar/LICENSE +21 -0
  408. data/node_modules/chokidar/README.md +308 -0
  409. data/node_modules/chokidar/index.js +973 -0
  410. data/node_modules/chokidar/lib/constants.js +65 -0
  411. data/node_modules/chokidar/lib/fsevents-handler.js +524 -0
  412. data/node_modules/chokidar/lib/nodefs-handler.js +646 -0
  413. data/node_modules/chokidar/package.json +78 -0
  414. data/node_modules/chokidar/types/index.d.ts +187 -0
  415. data/node_modules/cli-progress/CHANGES.md +169 -0
  416. data/node_modules/cli-progress/LICENSE.md +24 -0
  417. data/node_modules/cli-progress/README.md +446 -0
  418. data/node_modules/cli-progress/cli-progress.js +21 -0
  419. data/node_modules/cli-progress/lib/eta.js +73 -0
  420. data/node_modules/cli-progress/lib/format-bar.js +11 -0
  421. data/node_modules/cli-progress/lib/format-time.js +34 -0
  422. data/node_modules/cli-progress/lib/format-value.js +22 -0
  423. data/node_modules/cli-progress/lib/formatter.js +80 -0
  424. data/node_modules/cli-progress/lib/generic-bar.js +212 -0
  425. data/node_modules/cli-progress/lib/multi-bar.js +201 -0
  426. data/node_modules/cli-progress/lib/options.js +95 -0
  427. data/node_modules/cli-progress/lib/single-bar.js +124 -0
  428. data/node_modules/cli-progress/lib/terminal.js +159 -0
  429. data/node_modules/cli-progress/package.json +46 -0
  430. data/node_modules/cli-progress/presets/index.js +11 -0
  431. data/node_modules/cli-progress/presets/legacy.js +6 -0
  432. data/node_modules/cli-progress/presets/rect.js +5 -0
  433. data/node_modules/cli-progress/presets/shades-classic.js +6 -0
  434. data/node_modules/cli-progress/presets/shades-grey.js +8 -0
  435. data/node_modules/cliui/CHANGELOG.md +121 -0
  436. data/node_modules/cliui/LICENSE.txt +14 -0
  437. data/node_modules/cliui/README.md +141 -0
  438. data/node_modules/cliui/build/index.cjs +302 -0
  439. data/node_modules/cliui/build/lib/index.js +287 -0
  440. data/node_modules/cliui/build/lib/string-utils.js +27 -0
  441. data/node_modules/cliui/index.mjs +13 -0
  442. data/node_modules/cliui/package.json +83 -0
  443. data/node_modules/color-convert/CHANGELOG.md +54 -0
  444. data/node_modules/color-convert/LICENSE +21 -0
  445. data/node_modules/color-convert/README.md +68 -0
  446. data/node_modules/color-convert/conversions.js +839 -0
  447. data/node_modules/color-convert/index.js +81 -0
  448. data/node_modules/color-convert/package.json +48 -0
  449. data/node_modules/color-convert/route.js +97 -0
  450. data/node_modules/color-name/LICENSE +8 -0
  451. data/node_modules/color-name/README.md +11 -0
  452. data/node_modules/color-name/index.js +152 -0
  453. data/node_modules/color-name/package.json +28 -0
  454. data/node_modules/colors/LICENSE +25 -0
  455. data/node_modules/colors/README.md +221 -0
  456. data/node_modules/colors/examples/normal-usage.js +82 -0
  457. data/node_modules/colors/examples/safe-string.js +79 -0
  458. data/node_modules/colors/index.d.ts +136 -0
  459. data/node_modules/colors/lib/colors.js +211 -0
  460. data/node_modules/colors/lib/custom/trap.js +46 -0
  461. data/node_modules/colors/lib/custom/zalgo.js +110 -0
  462. data/node_modules/colors/lib/extendStringPrototype.js +110 -0
  463. data/node_modules/colors/lib/index.js +13 -0
  464. data/node_modules/colors/lib/maps/america.js +10 -0
  465. data/node_modules/colors/lib/maps/rainbow.js +12 -0
  466. data/node_modules/colors/lib/maps/random.js +11 -0
  467. data/node_modules/colors/lib/maps/zebra.js +5 -0
  468. data/node_modules/colors/lib/styles.js +95 -0
  469. data/node_modules/colors/lib/system/has-flag.js +35 -0
  470. data/node_modules/colors/lib/system/supports-colors.js +151 -0
  471. data/node_modules/colors/package.json +45 -0
  472. data/node_modules/colors/safe.d.ts +48 -0
  473. data/node_modules/colors/safe.js +10 -0
  474. data/node_modules/colors/themes/generic-logging.js +12 -0
  475. data/node_modules/combined-stream/License +19 -0
  476. data/node_modules/combined-stream/Readme.md +138 -0
  477. data/node_modules/combined-stream/lib/combined_stream.js +208 -0
  478. data/node_modules/combined-stream/package.json +25 -0
  479. data/node_modules/combined-stream/yarn.lock +17 -0
  480. data/node_modules/concat-map/LICENSE +18 -0
  481. data/node_modules/concat-map/README.markdown +62 -0
  482. data/node_modules/concat-map/example/map.js +6 -0
  483. data/node_modules/concat-map/index.js +13 -0
  484. data/node_modules/concat-map/package.json +43 -0
  485. data/node_modules/concat-map/test/map.js +39 -0
  486. data/node_modules/console-table-printer/CHANGELOG.md +96 -0
  487. data/node_modules/console-table-printer/LICENSE +21 -0
  488. data/node_modules/console-table-printer/README.md +180 -0
  489. data/node_modules/console-table-printer/dist/index.d.ts +4 -0
  490. data/node_modules/console-table-printer/dist/index.js +10 -0
  491. data/node_modules/console-table-printer/dist/src/console-table-printer.d.ts +14 -0
  492. data/node_modules/console-table-printer/dist/src/console-table-printer.js +32 -0
  493. data/node_modules/console-table-printer/dist/src/internalTable/input-converter.d.ts +6 -0
  494. data/node_modules/console-table-printer/dist/src/internalTable/input-converter.js +15 -0
  495. data/node_modules/console-table-printer/dist/src/internalTable/internal-table-printer.d.ts +4 -0
  496. data/node_modules/console-table-printer/dist/src/internalTable/internal-table-printer.js +115 -0
  497. data/node_modules/console-table-printer/dist/src/internalTable/internal-table.d.ts +25 -0
  498. data/node_modules/console-table-printer/dist/src/internalTable/internal-table.js +80 -0
  499. data/node_modules/console-table-printer/dist/src/internalTable/table-pre-processors.d.ts +3 -0
  500. data/node_modules/console-table-printer/dist/src/internalTable/table-pre-processors.js +43 -0
  501. data/node_modules/console-table-printer/dist/src/models/common.d.ts +10 -0
  502. data/node_modules/console-table-printer/dist/src/models/common.js +2 -0
  503. data/node_modules/console-table-printer/dist/src/models/external-table.d.ts +26 -0
  504. data/node_modules/console-table-printer/dist/src/models/external-table.js +2 -0
  505. data/node_modules/console-table-printer/dist/src/models/internal-table.d.ts +21 -0
  506. data/node_modules/console-table-printer/dist/src/models/internal-table.js +2 -0
  507. data/node_modules/console-table-printer/dist/src/utils/colored-console-line.d.ts +8 -0
  508. data/node_modules/console-table-printer/dist/src/utils/colored-console-line.js +29 -0
  509. data/node_modules/console-table-printer/dist/src/utils/console-utils.d.ts +2 -0
  510. data/node_modules/console-table-printer/dist/src/utils/console-utils.js +8 -0
  511. data/node_modules/console-table-printer/dist/src/utils/string-utils.d.ts +4 -0
  512. data/node_modules/console-table-printer/dist/src/utils/string-utils.js +54 -0
  513. data/node_modules/console-table-printer/dist/src/utils/table-constants.d.ts +10 -0
  514. data/node_modules/console-table-printer/dist/src/utils/table-constants.js +49 -0
  515. data/node_modules/console-table-printer/dist/src/utils/table-helpers.d.ts +26 -0
  516. data/node_modules/console-table-printer/dist/src/utils/table-helpers.js +91 -0
  517. data/node_modules/console-table-printer/package.json +51 -0
  518. data/node_modules/cross-env/CHANGELOG.md +5 -0
  519. data/node_modules/cross-env/LICENSE +20 -0
  520. data/node_modules/cross-env/README.md +291 -0
  521. data/node_modules/cross-env/package.json +54 -0
  522. data/node_modules/cross-env/src/bin/cross-env-shell.js +5 -0
  523. data/node_modules/cross-env/src/bin/cross-env.js +5 -0
  524. data/node_modules/cross-env/src/command.js +32 -0
  525. data/node_modules/cross-env/src/index.js +95 -0
  526. data/node_modules/cross-env/src/is-windows.js +2 -0
  527. data/node_modules/cross-env/src/variable.js +69 -0
  528. data/node_modules/cross-spawn/CHANGELOG.md +130 -0
  529. data/node_modules/cross-spawn/LICENSE +21 -0
  530. data/node_modules/cross-spawn/README.md +96 -0
  531. data/node_modules/cross-spawn/index.js +39 -0
  532. data/node_modules/cross-spawn/lib/enoent.js +59 -0
  533. data/node_modules/cross-spawn/lib/parse.js +91 -0
  534. data/node_modules/cross-spawn/lib/util/escape.js +45 -0
  535. data/node_modules/cross-spawn/lib/util/readShebang.js +23 -0
  536. data/node_modules/cross-spawn/lib/util/resolveCommand.js +52 -0
  537. data/node_modules/cross-spawn/package.json +73 -0
  538. data/node_modules/crypto-js/CONTRIBUTING.md +28 -0
  539. data/node_modules/crypto-js/LICENSE +24 -0
  540. data/node_modules/crypto-js/README.md +249 -0
  541. data/node_modules/crypto-js/aes.js +234 -0
  542. data/node_modules/crypto-js/bower.json +35 -0
  543. data/node_modules/crypto-js/cipher-core.js +890 -0
  544. data/node_modules/crypto-js/core.js +797 -0
  545. data/node_modules/crypto-js/crypto-js.js +6059 -0
  546. data/node_modules/crypto-js/docs/QuickStartGuide.wiki +470 -0
  547. data/node_modules/crypto-js/enc-base64.js +136 -0
  548. data/node_modules/crypto-js/enc-hex.js +18 -0
  549. data/node_modules/crypto-js/enc-latin1.js +18 -0
  550. data/node_modules/crypto-js/enc-utf16.js +149 -0
  551. data/node_modules/crypto-js/enc-utf8.js +18 -0
  552. data/node_modules/crypto-js/evpkdf.js +134 -0
  553. data/node_modules/crypto-js/format-hex.js +66 -0
  554. data/node_modules/crypto-js/format-openssl.js +18 -0
  555. data/node_modules/crypto-js/hmac-md5.js +18 -0
  556. data/node_modules/crypto-js/hmac-ripemd160.js +18 -0
  557. data/node_modules/crypto-js/hmac-sha1.js +18 -0
  558. data/node_modules/crypto-js/hmac-sha224.js +18 -0
  559. data/node_modules/crypto-js/hmac-sha256.js +18 -0
  560. data/node_modules/crypto-js/hmac-sha3.js +18 -0
  561. data/node_modules/crypto-js/hmac-sha384.js +18 -0
  562. data/node_modules/crypto-js/hmac-sha512.js +18 -0
  563. data/node_modules/crypto-js/hmac.js +143 -0
  564. data/node_modules/crypto-js/index.js +18 -0
  565. data/node_modules/crypto-js/lib-typedarrays.js +76 -0
  566. data/node_modules/crypto-js/md5.js +268 -0
  567. data/node_modules/crypto-js/mode-cfb.js +80 -0
  568. data/node_modules/crypto-js/mode-ctr-gladman.js +116 -0
  569. data/node_modules/crypto-js/mode-ctr.js +58 -0
  570. data/node_modules/crypto-js/mode-ecb.js +40 -0
  571. data/node_modules/crypto-js/mode-ofb.js +54 -0
  572. data/node_modules/crypto-js/package.json +38 -0
  573. data/node_modules/crypto-js/pad-ansix923.js +49 -0
  574. data/node_modules/crypto-js/pad-iso10126.js +44 -0
  575. data/node_modules/crypto-js/pad-iso97971.js +40 -0
  576. data/node_modules/crypto-js/pad-nopadding.js +30 -0
  577. data/node_modules/crypto-js/pad-pkcs7.js +18 -0
  578. data/node_modules/crypto-js/pad-zeropadding.js +47 -0
  579. data/node_modules/crypto-js/pbkdf2.js +145 -0
  580. data/node_modules/crypto-js/rabbit-legacy.js +190 -0
  581. data/node_modules/crypto-js/rabbit.js +192 -0
  582. data/node_modules/crypto-js/rc4.js +139 -0
  583. data/node_modules/crypto-js/ripemd160.js +267 -0
  584. data/node_modules/crypto-js/sha1.js +150 -0
  585. data/node_modules/crypto-js/sha224.js +80 -0
  586. data/node_modules/crypto-js/sha256.js +199 -0
  587. data/node_modules/crypto-js/sha3.js +326 -0
  588. data/node_modules/crypto-js/sha384.js +83 -0
  589. data/node_modules/crypto-js/sha512.js +326 -0
  590. data/node_modules/crypto-js/tripledes.js +779 -0
  591. data/node_modules/crypto-js/x64-core.js +304 -0
  592. data/node_modules/cssom/LICENSE.txt +20 -0
  593. data/node_modules/cssom/README.mdown +67 -0
  594. data/node_modules/cssom/lib/CSSDocumentRule.js +39 -0
  595. data/node_modules/cssom/lib/CSSFontFaceRule.js +36 -0
  596. data/node_modules/cssom/lib/CSSHostRule.js +37 -0
  597. data/node_modules/cssom/lib/CSSImportRule.js +132 -0
  598. data/node_modules/cssom/lib/CSSKeyframeRule.js +37 -0
  599. data/node_modules/cssom/lib/CSSKeyframesRule.js +39 -0
  600. data/node_modules/cssom/lib/CSSMediaRule.js +41 -0
  601. data/node_modules/cssom/lib/CSSOM.js +3 -0
  602. data/node_modules/cssom/lib/CSSRule.js +43 -0
  603. data/node_modules/cssom/lib/CSSStyleDeclaration.js +148 -0
  604. data/node_modules/cssom/lib/CSSStyleRule.js +190 -0
  605. data/node_modules/cssom/lib/CSSStyleSheet.js +88 -0
  606. data/node_modules/cssom/lib/CSSSupportsRule.js +36 -0
  607. data/node_modules/cssom/lib/CSSValue.js +43 -0
  608. data/node_modules/cssom/lib/CSSValueExpression.js +344 -0
  609. data/node_modules/cssom/lib/MatcherList.js +62 -0
  610. data/node_modules/cssom/lib/MediaList.js +61 -0
  611. data/node_modules/cssom/lib/StyleSheet.js +17 -0
  612. data/node_modules/cssom/lib/clone.js +71 -0
  613. data/node_modules/cssom/lib/index.js +21 -0
  614. data/node_modules/cssom/lib/parse.js +463 -0
  615. data/node_modules/cssom/package.json +18 -0
  616. data/node_modules/cssstyle/LICENSE +20 -0
  617. data/node_modules/cssstyle/README.md +15 -0
  618. data/node_modules/cssstyle/lib/CSSStyleDeclaration.js +260 -0
  619. data/node_modules/cssstyle/lib/CSSStyleDeclaration.test.js +556 -0
  620. data/node_modules/cssstyle/lib/allExtraProperties.js +67 -0
  621. data/node_modules/cssstyle/lib/allProperties.js +462 -0
  622. data/node_modules/cssstyle/lib/allWebkitProperties.js +194 -0
  623. data/node_modules/cssstyle/lib/constants.js +6 -0
  624. data/node_modules/cssstyle/lib/implementedProperties.js +90 -0
  625. data/node_modules/cssstyle/lib/named_colors.json +152 -0
  626. data/node_modules/cssstyle/lib/parsers.js +722 -0
  627. data/node_modules/cssstyle/lib/parsers.test.js +139 -0
  628. data/node_modules/cssstyle/lib/properties/azimuth.js +67 -0
  629. data/node_modules/cssstyle/lib/properties/background.js +19 -0
  630. data/node_modules/cssstyle/lib/properties/backgroundAttachment.js +24 -0
  631. data/node_modules/cssstyle/lib/properties/backgroundColor.js +36 -0
  632. data/node_modules/cssstyle/lib/properties/backgroundImage.js +32 -0
  633. data/node_modules/cssstyle/lib/properties/backgroundPosition.js +58 -0
  634. data/node_modules/cssstyle/lib/properties/backgroundRepeat.js +32 -0
  635. data/node_modules/cssstyle/lib/properties/border.js +33 -0
  636. data/node_modules/cssstyle/lib/properties/borderBottom.js +17 -0
  637. data/node_modules/cssstyle/lib/properties/borderBottomColor.js +16 -0
  638. data/node_modules/cssstyle/lib/properties/borderBottomStyle.js +21 -0
  639. data/node_modules/cssstyle/lib/properties/borderBottomWidth.js +16 -0
  640. data/node_modules/cssstyle/lib/properties/borderCollapse.js +26 -0
  641. data/node_modules/cssstyle/lib/properties/borderColor.js +30 -0
  642. data/node_modules/cssstyle/lib/properties/borderLeft.js +17 -0
  643. data/node_modules/cssstyle/lib/properties/borderLeftColor.js +16 -0
  644. data/node_modules/cssstyle/lib/properties/borderLeftStyle.js +21 -0
  645. data/node_modules/cssstyle/lib/properties/borderLeftWidth.js +16 -0
  646. data/node_modules/cssstyle/lib/properties/borderRight.js +17 -0
  647. data/node_modules/cssstyle/lib/properties/borderRightColor.js +16 -0
  648. data/node_modules/cssstyle/lib/properties/borderRightStyle.js +21 -0
  649. data/node_modules/cssstyle/lib/properties/borderRightWidth.js +16 -0
  650. data/node_modules/cssstyle/lib/properties/borderSpacing.js +41 -0
  651. data/node_modules/cssstyle/lib/properties/borderStyle.js +38 -0
  652. data/node_modules/cssstyle/lib/properties/borderTop.js +17 -0
  653. data/node_modules/cssstyle/lib/properties/borderTopColor.js +16 -0
  654. data/node_modules/cssstyle/lib/properties/borderTopStyle.js +21 -0
  655. data/node_modules/cssstyle/lib/properties/borderTopWidth.js +17 -0
  656. data/node_modules/cssstyle/lib/properties/borderWidth.js +46 -0
  657. data/node_modules/cssstyle/lib/properties/bottom.js +14 -0
  658. data/node_modules/cssstyle/lib/properties/clear.js +16 -0
  659. data/node_modules/cssstyle/lib/properties/clip.js +47 -0
  660. data/node_modules/cssstyle/lib/properties/color.js +14 -0
  661. data/node_modules/cssstyle/lib/properties/cssFloat.js +12 -0
  662. data/node_modules/cssstyle/lib/properties/flex.js +45 -0
  663. data/node_modules/cssstyle/lib/properties/flexBasis.js +28 -0
  664. data/node_modules/cssstyle/lib/properties/flexGrow.js +19 -0
  665. data/node_modules/cssstyle/lib/properties/flexShrink.js +19 -0
  666. data/node_modules/cssstyle/lib/properties/float.js +12 -0
  667. data/node_modules/cssstyle/lib/properties/floodColor.js +14 -0
  668. data/node_modules/cssstyle/lib/properties/font.js +43 -0
  669. data/node_modules/cssstyle/lib/properties/fontFamily.js +33 -0
  670. data/node_modules/cssstyle/lib/properties/fontSize.js +38 -0
  671. data/node_modules/cssstyle/lib/properties/fontStyle.js +18 -0
  672. data/node_modules/cssstyle/lib/properties/fontVariant.js +18 -0
  673. data/node_modules/cssstyle/lib/properties/fontWeight.js +33 -0
  674. data/node_modules/cssstyle/lib/properties/height.js +24 -0
  675. data/node_modules/cssstyle/lib/properties/left.js +14 -0
  676. data/node_modules/cssstyle/lib/properties/lightingColor.js +14 -0
  677. data/node_modules/cssstyle/lib/properties/lineHeight.js +26 -0
  678. data/node_modules/cssstyle/lib/properties/margin.js +68 -0
  679. data/node_modules/cssstyle/lib/properties/marginBottom.js +13 -0
  680. data/node_modules/cssstyle/lib/properties/marginLeft.js +13 -0
  681. data/node_modules/cssstyle/lib/properties/marginRight.js +13 -0
  682. data/node_modules/cssstyle/lib/properties/marginTop.js +13 -0
  683. data/node_modules/cssstyle/lib/properties/opacity.js +14 -0
  684. data/node_modules/cssstyle/lib/properties/outlineColor.js +14 -0
  685. data/node_modules/cssstyle/lib/properties/padding.js +61 -0
  686. data/node_modules/cssstyle/lib/properties/paddingBottom.js +13 -0
  687. data/node_modules/cssstyle/lib/properties/paddingLeft.js +13 -0
  688. data/node_modules/cssstyle/lib/properties/paddingRight.js +13 -0
  689. data/node_modules/cssstyle/lib/properties/paddingTop.js +13 -0
  690. data/node_modules/cssstyle/lib/properties/right.js +14 -0
  691. data/node_modules/cssstyle/lib/properties/stopColor.js +14 -0
  692. data/node_modules/cssstyle/lib/properties/textLineThroughColor.js +14 -0
  693. data/node_modules/cssstyle/lib/properties/textOverlineColor.js +14 -0
  694. data/node_modules/cssstyle/lib/properties/textUnderlineColor.js +14 -0
  695. data/node_modules/cssstyle/lib/properties/top.js +14 -0
  696. data/node_modules/cssstyle/lib/properties/webkitBorderAfterColor.js +14 -0
  697. data/node_modules/cssstyle/lib/properties/webkitBorderBeforeColor.js +14 -0
  698. data/node_modules/cssstyle/lib/properties/webkitBorderEndColor.js +14 -0
  699. data/node_modules/cssstyle/lib/properties/webkitBorderStartColor.js +14 -0
  700. data/node_modules/cssstyle/lib/properties/webkitColumnRuleColor.js +14 -0
  701. data/node_modules/cssstyle/lib/properties/webkitMatchNearestMailBlockquoteColor.js +14 -0
  702. data/node_modules/cssstyle/lib/properties/webkitTapHighlightColor.js +14 -0
  703. data/node_modules/cssstyle/lib/properties/webkitTextEmphasisColor.js +14 -0
  704. data/node_modules/cssstyle/lib/properties/webkitTextFillColor.js +14 -0
  705. data/node_modules/cssstyle/lib/properties/webkitTextStrokeColor.js +14 -0
  706. data/node_modules/cssstyle/lib/properties/width.js +24 -0
  707. data/node_modules/cssstyle/lib/properties.js +1833 -0
  708. data/node_modules/cssstyle/lib/utils/colorSpace.js +21 -0
  709. data/node_modules/cssstyle/lib/utils/getBasicPropertyDescriptor.js +14 -0
  710. data/node_modules/cssstyle/node_modules/cssom/LICENSE.txt +20 -0
  711. data/node_modules/cssstyle/node_modules/cssom/README.mdown +67 -0
  712. data/node_modules/cssstyle/node_modules/cssom/lib/CSSDocumentRule.js +39 -0
  713. data/node_modules/cssstyle/node_modules/cssom/lib/CSSFontFaceRule.js +36 -0
  714. data/node_modules/cssstyle/node_modules/cssom/lib/CSSHostRule.js +37 -0
  715. data/node_modules/cssstyle/node_modules/cssom/lib/CSSImportRule.js +132 -0
  716. data/node_modules/cssstyle/node_modules/cssom/lib/CSSKeyframeRule.js +37 -0
  717. data/node_modules/cssstyle/node_modules/cssom/lib/CSSKeyframesRule.js +39 -0
  718. data/node_modules/cssstyle/node_modules/cssom/lib/CSSMediaRule.js +41 -0
  719. data/node_modules/cssstyle/node_modules/cssom/lib/CSSOM.js +3 -0
  720. data/node_modules/cssstyle/node_modules/cssom/lib/CSSRule.js +43 -0
  721. data/node_modules/cssstyle/node_modules/cssom/lib/CSSStyleDeclaration.js +148 -0
  722. data/node_modules/cssstyle/node_modules/cssom/lib/CSSStyleRule.js +190 -0
  723. data/node_modules/cssstyle/node_modules/cssom/lib/CSSStyleSheet.js +88 -0
  724. data/node_modules/cssstyle/node_modules/cssom/lib/CSSSupportsRule.js +36 -0
  725. data/node_modules/cssstyle/node_modules/cssom/lib/CSSValue.js +43 -0
  726. data/node_modules/cssstyle/node_modules/cssom/lib/CSSValueExpression.js +344 -0
  727. data/node_modules/cssstyle/node_modules/cssom/lib/MatcherList.js +62 -0
  728. data/node_modules/cssstyle/node_modules/cssom/lib/MediaList.js +61 -0
  729. data/node_modules/cssstyle/node_modules/cssom/lib/StyleSheet.js +17 -0
  730. data/node_modules/cssstyle/node_modules/cssom/lib/clone.js +82 -0
  731. data/node_modules/cssstyle/node_modules/cssom/lib/index.js +21 -0
  732. data/node_modules/cssstyle/node_modules/cssom/lib/parse.js +464 -0
  733. data/node_modules/cssstyle/node_modules/cssom/package.json +18 -0
  734. data/node_modules/cssstyle/package.json +72 -0
  735. data/node_modules/data-urls/LICENSE.txt +7 -0
  736. data/node_modules/data-urls/README.md +64 -0
  737. data/node_modules/data-urls/lib/parser.js +74 -0
  738. data/node_modules/data-urls/lib/utils.js +23 -0
  739. data/node_modules/data-urls/package.json +53 -0
  740. data/node_modules/debug/LICENSE +19 -0
  741. data/node_modules/debug/README.md +455 -0
  742. data/node_modules/debug/package.json +59 -0
  743. data/node_modules/debug/src/browser.js +269 -0
  744. data/node_modules/debug/src/common.js +274 -0
  745. data/node_modules/debug/src/index.js +10 -0
  746. data/node_modules/debug/src/node.js +263 -0
  747. data/node_modules/decimal.js/CHANGELOG.md +231 -0
  748. data/node_modules/decimal.js/LICENCE.md +23 -0
  749. data/node_modules/decimal.js/README.md +246 -0
  750. data/node_modules/decimal.js/decimal.d.ts +300 -0
  751. data/node_modules/decimal.js/decimal.js +4934 -0
  752. data/node_modules/decimal.js/decimal.mjs +4898 -0
  753. data/node_modules/decimal.js/package.json +40 -0
  754. data/node_modules/deep-is/LICENSE +22 -0
  755. data/node_modules/deep-is/README.markdown +70 -0
  756. data/node_modules/deep-is/example/cmp.js +11 -0
  757. data/node_modules/deep-is/index.js +102 -0
  758. data/node_modules/deep-is/package.json +61 -0
  759. data/node_modules/deep-is/test/NaN.js +16 -0
  760. data/node_modules/deep-is/test/cmp.js +23 -0
  761. data/node_modules/deep-is/test/neg-vs-pos-0.js +15 -0
  762. data/node_modules/delayed-stream/License +19 -0
  763. data/node_modules/delayed-stream/Makefile +7 -0
  764. data/node_modules/delayed-stream/Readme.md +141 -0
  765. data/node_modules/delayed-stream/lib/delayed_stream.js +107 -0
  766. data/node_modules/delayed-stream/package.json +27 -0
  767. data/node_modules/diff/CONTRIBUTING.md +39 -0
  768. data/node_modules/diff/LICENSE +31 -0
  769. data/node_modules/diff/README.md +208 -0
  770. data/node_modules/diff/dist/diff.js +1582 -0
  771. data/node_modules/diff/lib/convert/dmp.js +32 -0
  772. data/node_modules/diff/lib/convert/xml.js +42 -0
  773. data/node_modules/diff/lib/diff/array.js +45 -0
  774. data/node_modules/diff/lib/diff/base.js +304 -0
  775. data/node_modules/diff/lib/diff/character.js +37 -0
  776. data/node_modules/diff/lib/diff/css.js +41 -0
  777. data/node_modules/diff/lib/diff/json.js +163 -0
  778. data/node_modules/diff/lib/diff/line.js +89 -0
  779. data/node_modules/diff/lib/diff/sentence.js +41 -0
  780. data/node_modules/diff/lib/diff/word.js +108 -0
  781. data/node_modules/diff/lib/index.es6.js +1553 -0
  782. data/node_modules/diff/lib/index.js +216 -0
  783. data/node_modules/diff/lib/index.mjs +1553 -0
  784. data/node_modules/diff/lib/patch/apply.js +238 -0
  785. data/node_modules/diff/lib/patch/create.js +267 -0
  786. data/node_modules/diff/lib/patch/merge.js +613 -0
  787. data/node_modules/diff/lib/patch/parse.js +167 -0
  788. data/node_modules/diff/lib/util/array.js +32 -0
  789. data/node_modules/diff/lib/util/distance-iterator.js +57 -0
  790. data/node_modules/diff/lib/util/params.js +24 -0
  791. data/node_modules/diff/package.json +87 -0
  792. data/node_modules/diff/release-notes.md +303 -0
  793. data/node_modules/diff/runtime.js +3 -0
  794. data/node_modules/domexception/LICENSE.txt +21 -0
  795. data/node_modules/domexception/README.md +31 -0
  796. data/node_modules/domexception/index.js +7 -0
  797. data/node_modules/domexception/lib/DOMException-impl.js +22 -0
  798. data/node_modules/domexception/lib/DOMException.js +205 -0
  799. data/node_modules/domexception/lib/legacy-error-codes.json +27 -0
  800. data/node_modules/domexception/lib/utils.js +115 -0
  801. data/node_modules/domexception/node_modules/webidl-conversions/LICENSE.md +12 -0
  802. data/node_modules/domexception/node_modules/webidl-conversions/README.md +79 -0
  803. data/node_modules/domexception/node_modules/webidl-conversions/lib/index.js +361 -0
  804. data/node_modules/domexception/node_modules/webidl-conversions/package.json +30 -0
  805. data/node_modules/domexception/package.json +42 -0
  806. data/node_modules/domexception/webidl2js-wrapper.js +15 -0
  807. data/node_modules/emoji-regex/LICENSE-MIT.txt +20 -0
  808. data/node_modules/emoji-regex/README.md +73 -0
  809. data/node_modules/emoji-regex/es2015/index.js +6 -0
  810. data/node_modules/emoji-regex/es2015/text.js +6 -0
  811. data/node_modules/emoji-regex/index.d.ts +23 -0
  812. data/node_modules/emoji-regex/index.js +6 -0
  813. data/node_modules/emoji-regex/package.json +50 -0
  814. data/node_modules/emoji-regex/text.js +6 -0
  815. data/node_modules/escalade/dist/index.js +22 -0
  816. data/node_modules/escalade/dist/index.mjs +22 -0
  817. data/node_modules/escalade/index.d.ts +3 -0
  818. data/node_modules/escalade/license +9 -0
  819. data/node_modules/escalade/package.json +61 -0
  820. data/node_modules/escalade/readme.md +211 -0
  821. data/node_modules/escalade/sync/index.d.ts +2 -0
  822. data/node_modules/escalade/sync/index.js +18 -0
  823. data/node_modules/escalade/sync/index.mjs +18 -0
  824. data/node_modules/escodegen/LICENSE.BSD +21 -0
  825. data/node_modules/escodegen/README.md +84 -0
  826. data/node_modules/escodegen/bin/escodegen.js +77 -0
  827. data/node_modules/escodegen/bin/esgenerate.js +64 -0
  828. data/node_modules/escodegen/escodegen.js +2647 -0
  829. data/node_modules/escodegen/package.json +62 -0
  830. data/node_modules/esprima/ChangeLog +235 -0
  831. data/node_modules/esprima/LICENSE.BSD +21 -0
  832. data/node_modules/esprima/README.md +46 -0
  833. data/node_modules/esprima/bin/esparse.js +139 -0
  834. data/node_modules/esprima/bin/esvalidate.js +236 -0
  835. data/node_modules/esprima/dist/esprima.js +6709 -0
  836. data/node_modules/esprima/package.json +112 -0
  837. data/node_modules/estraverse/LICENSE.BSD +19 -0
  838. data/node_modules/estraverse/README.md +153 -0
  839. data/node_modules/estraverse/estraverse.js +801 -0
  840. data/node_modules/estraverse/gulpfile.js +70 -0
  841. data/node_modules/estraverse/package.json +40 -0
  842. data/node_modules/esutils/LICENSE.BSD +19 -0
  843. data/node_modules/esutils/README.md +174 -0
  844. data/node_modules/esutils/lib/ast.js +144 -0
  845. data/node_modules/esutils/lib/code.js +135 -0
  846. data/node_modules/esutils/lib/keyword.js +165 -0
  847. data/node_modules/esutils/lib/utils.js +33 -0
  848. data/node_modules/esutils/package.json +44 -0
  849. data/node_modules/fast-levenshtein/LICENSE.md +25 -0
  850. data/node_modules/fast-levenshtein/README.md +104 -0
  851. data/node_modules/fast-levenshtein/levenshtein.js +136 -0
  852. data/node_modules/fast-levenshtein/package.json +39 -0
  853. data/node_modules/fill-range/LICENSE +21 -0
  854. data/node_modules/fill-range/README.md +237 -0
  855. data/node_modules/fill-range/index.js +249 -0
  856. data/node_modules/fill-range/package.json +69 -0
  857. data/node_modules/form-data/License +19 -0
  858. data/node_modules/form-data/README.md.bak +356 -0
  859. data/node_modules/form-data/Readme.md +356 -0
  860. data/node_modules/form-data/index.d.ts +62 -0
  861. data/node_modules/form-data/lib/browser.js +2 -0
  862. data/node_modules/form-data/lib/form_data.js +498 -0
  863. data/node_modules/form-data/lib/populate.js +10 -0
  864. data/node_modules/form-data/package.json +68 -0
  865. data/node_modules/fs-extra/CHANGELOG.md +902 -0
  866. data/node_modules/fs-extra/LICENSE +15 -0
  867. data/node_modules/fs-extra/README.md +264 -0
  868. data/node_modules/fs-extra/lib/copy/copy.js +232 -0
  869. data/node_modules/fs-extra/lib/copy/index.js +6 -0
  870. data/node_modules/fs-extra/lib/copy-sync/copy-sync.js +166 -0
  871. data/node_modules/fs-extra/lib/copy-sync/index.js +5 -0
  872. data/node_modules/fs-extra/lib/empty/index.js +48 -0
  873. data/node_modules/fs-extra/lib/ensure/file.js +69 -0
  874. data/node_modules/fs-extra/lib/ensure/index.js +23 -0
  875. data/node_modules/fs-extra/lib/ensure/link.js +61 -0
  876. data/node_modules/fs-extra/lib/ensure/symlink-paths.js +99 -0
  877. data/node_modules/fs-extra/lib/ensure/symlink-type.js +31 -0
  878. data/node_modules/fs-extra/lib/ensure/symlink.js +63 -0
  879. data/node_modules/fs-extra/lib/fs/index.js +130 -0
  880. data/node_modules/fs-extra/lib/index.js +27 -0
  881. data/node_modules/fs-extra/lib/json/index.js +16 -0
  882. data/node_modules/fs-extra/lib/json/jsonfile.js +11 -0
  883. data/node_modules/fs-extra/lib/json/output-json-sync.js +12 -0
  884. data/node_modules/fs-extra/lib/json/output-json.js +12 -0
  885. data/node_modules/fs-extra/lib/mkdirs/index.js +14 -0
  886. data/node_modules/fs-extra/lib/mkdirs/make-dir.js +141 -0
  887. data/node_modules/fs-extra/lib/move/index.js +6 -0
  888. data/node_modules/fs-extra/lib/move/move.js +65 -0
  889. data/node_modules/fs-extra/lib/move-sync/index.js +5 -0
  890. data/node_modules/fs-extra/lib/move-sync/move-sync.js +47 -0
  891. data/node_modules/fs-extra/lib/output/index.js +40 -0
  892. data/node_modules/fs-extra/lib/path-exists/index.js +12 -0
  893. data/node_modules/fs-extra/lib/remove/index.js +9 -0
  894. data/node_modules/fs-extra/lib/remove/rimraf.js +302 -0
  895. data/node_modules/fs-extra/lib/util/stat.js +139 -0
  896. data/node_modules/fs-extra/lib/util/utimes.js +26 -0
  897. data/node_modules/fs-extra/package.json +70 -0
  898. data/node_modules/fs.realpath/LICENSE +43 -0
  899. data/node_modules/fs.realpath/README.md +33 -0
  900. data/node_modules/fs.realpath/index.js +66 -0
  901. data/node_modules/fs.realpath/old.js +303 -0
  902. data/node_modules/fs.realpath/package.json +26 -0
  903. data/node_modules/get-caller-file/LICENSE.md +6 -0
  904. data/node_modules/get-caller-file/README.md +41 -0
  905. data/node_modules/get-caller-file/index.d.ts +2 -0
  906. data/node_modules/get-caller-file/index.js +22 -0
  907. data/node_modules/get-caller-file/index.js.map +1 -0
  908. data/node_modules/get-caller-file/package.json +42 -0
  909. data/node_modules/glob/LICENSE +21 -0
  910. data/node_modules/glob/README.md +375 -0
  911. data/node_modules/glob/changelog.md +67 -0
  912. data/node_modules/glob/common.js +234 -0
  913. data/node_modules/glob/glob.js +788 -0
  914. data/node_modules/glob/package.json +51 -0
  915. data/node_modules/glob/sync.js +484 -0
  916. data/node_modules/glob-parent/CHANGELOG.md +110 -0
  917. data/node_modules/glob-parent/LICENSE +15 -0
  918. data/node_modules/glob-parent/README.md +137 -0
  919. data/node_modules/glob-parent/index.js +42 -0
  920. data/node_modules/glob-parent/package.json +48 -0
  921. data/node_modules/graceful-fs/LICENSE +15 -0
  922. data/node_modules/graceful-fs/README.md +133 -0
  923. data/node_modules/graceful-fs/clone.js +23 -0
  924. data/node_modules/graceful-fs/graceful-fs.js +373 -0
  925. data/node_modules/graceful-fs/legacy-streams.js +118 -0
  926. data/node_modules/graceful-fs/package.json +50 -0
  927. data/node_modules/graceful-fs/polyfills.js +346 -0
  928. data/node_modules/html-encoding-sniffer/LICENSE.txt +7 -0
  929. data/node_modules/html-encoding-sniffer/README.md +38 -0
  930. data/node_modules/html-encoding-sniffer/lib/html-encoding-sniffer.js +295 -0
  931. data/node_modules/html-encoding-sniffer/package.json +30 -0
  932. data/node_modules/http-proxy-agent/README.md +74 -0
  933. data/node_modules/http-proxy-agent/dist/agent.d.ts +32 -0
  934. data/node_modules/http-proxy-agent/dist/agent.js +145 -0
  935. data/node_modules/http-proxy-agent/dist/agent.js.map +1 -0
  936. data/node_modules/http-proxy-agent/dist/index.d.ts +21 -0
  937. data/node_modules/http-proxy-agent/dist/index.js +14 -0
  938. data/node_modules/http-proxy-agent/dist/index.js.map +1 -0
  939. data/node_modules/http-proxy-agent/package.json +57 -0
  940. data/node_modules/https-proxy-agent/README.md +137 -0
  941. data/node_modules/https-proxy-agent/dist/agent.d.ts +30 -0
  942. data/node_modules/https-proxy-agent/dist/agent.js +180 -0
  943. data/node_modules/https-proxy-agent/dist/agent.js.map +1 -0
  944. data/node_modules/https-proxy-agent/dist/index.d.ts +23 -0
  945. data/node_modules/https-proxy-agent/dist/index.js +14 -0
  946. data/node_modules/https-proxy-agent/dist/index.js.map +1 -0
  947. data/node_modules/https-proxy-agent/dist/parse-proxy-response.d.ts +7 -0
  948. data/node_modules/https-proxy-agent/dist/parse-proxy-response.js +66 -0
  949. data/node_modules/https-proxy-agent/dist/parse-proxy-response.js.map +1 -0
  950. data/node_modules/https-proxy-agent/package.json +56 -0
  951. data/node_modules/iconv-lite/Changelog.md +162 -0
  952. data/node_modules/iconv-lite/LICENSE +21 -0
  953. data/node_modules/iconv-lite/README.md +156 -0
  954. data/node_modules/iconv-lite/encodings/dbcs-codec.js +555 -0
  955. data/node_modules/iconv-lite/encodings/dbcs-data.js +176 -0
  956. data/node_modules/iconv-lite/encodings/index.js +22 -0
  957. data/node_modules/iconv-lite/encodings/internal.js +188 -0
  958. data/node_modules/iconv-lite/encodings/sbcs-codec.js +72 -0
  959. data/node_modules/iconv-lite/encodings/sbcs-data-generated.js +451 -0
  960. data/node_modules/iconv-lite/encodings/sbcs-data.js +174 -0
  961. data/node_modules/iconv-lite/encodings/tables/big5-added.json +122 -0
  962. data/node_modules/iconv-lite/encodings/tables/cp936.json +264 -0
  963. data/node_modules/iconv-lite/encodings/tables/cp949.json +273 -0
  964. data/node_modules/iconv-lite/encodings/tables/cp950.json +177 -0
  965. data/node_modules/iconv-lite/encodings/tables/eucjp.json +182 -0
  966. data/node_modules/iconv-lite/encodings/tables/gb18030-ranges.json +1 -0
  967. data/node_modules/iconv-lite/encodings/tables/gbk-added.json +55 -0
  968. data/node_modules/iconv-lite/encodings/tables/shiftjis.json +125 -0
  969. data/node_modules/iconv-lite/encodings/utf16.js +177 -0
  970. data/node_modules/iconv-lite/encodings/utf7.js +290 -0
  971. data/node_modules/iconv-lite/lib/bom-handling.js +52 -0
  972. data/node_modules/iconv-lite/lib/extend-node.js +217 -0
  973. data/node_modules/iconv-lite/lib/index.d.ts +24 -0
  974. data/node_modules/iconv-lite/lib/index.js +153 -0
  975. data/node_modules/iconv-lite/lib/streams.js +121 -0
  976. data/node_modules/iconv-lite/package.json +46 -0
  977. data/node_modules/inflight/LICENSE +15 -0
  978. data/node_modules/inflight/README.md +37 -0
  979. data/node_modules/inflight/inflight.js +54 -0
  980. data/node_modules/inflight/package.json +29 -0
  981. data/node_modules/inherits/LICENSE +16 -0
  982. data/node_modules/inherits/README.md +42 -0
  983. data/node_modules/inherits/inherits.js +9 -0
  984. data/node_modules/inherits/inherits_browser.js +27 -0
  985. data/node_modules/inherits/package.json +29 -0
  986. data/node_modules/is-binary-path/index.d.ts +17 -0
  987. data/node_modules/is-binary-path/index.js +7 -0
  988. data/node_modules/is-binary-path/license +9 -0
  989. data/node_modules/is-binary-path/package.json +40 -0
  990. data/node_modules/is-binary-path/readme.md +34 -0
  991. data/node_modules/is-extglob/LICENSE +21 -0
  992. data/node_modules/is-extglob/README.md +107 -0
  993. data/node_modules/is-extglob/index.js +20 -0
  994. data/node_modules/is-extglob/package.json +69 -0
  995. data/node_modules/is-fullwidth-code-point/index.d.ts +17 -0
  996. data/node_modules/is-fullwidth-code-point/index.js +50 -0
  997. data/node_modules/is-fullwidth-code-point/license +9 -0
  998. data/node_modules/is-fullwidth-code-point/package.json +42 -0
  999. data/node_modules/is-fullwidth-code-point/readme.md +39 -0
  1000. data/node_modules/is-glob/LICENSE +21 -0
  1001. data/node_modules/is-glob/README.md +206 -0
  1002. data/node_modules/is-glob/index.js +48 -0
  1003. data/node_modules/is-glob/package.json +81 -0
  1004. data/node_modules/is-number/LICENSE +21 -0
  1005. data/node_modules/is-number/README.md +187 -0
  1006. data/node_modules/is-number/index.js +18 -0
  1007. data/node_modules/is-number/package.json +82 -0
  1008. data/node_modules/is-potential-custom-element-name/LICENSE-MIT.txt +20 -0
  1009. data/node_modules/is-potential-custom-element-name/README.md +40 -0
  1010. data/node_modules/is-potential-custom-element-name/index.js +9 -0
  1011. data/node_modules/is-potential-custom-element-name/package.json +35 -0
  1012. data/node_modules/isexe/LICENSE +15 -0
  1013. data/node_modules/isexe/README.md +51 -0
  1014. data/node_modules/isexe/index.js +57 -0
  1015. data/node_modules/isexe/mode.js +41 -0
  1016. data/node_modules/isexe/package.json +31 -0
  1017. data/node_modules/isexe/test/basic.js +221 -0
  1018. data/node_modules/isexe/windows.js +42 -0
  1019. data/node_modules/js-yaml/CHANGELOG.md +557 -0
  1020. data/node_modules/js-yaml/LICENSE +21 -0
  1021. data/node_modules/js-yaml/README.md +299 -0
  1022. data/node_modules/js-yaml/bin/js-yaml.js +132 -0
  1023. data/node_modules/js-yaml/dist/js-yaml.js +3989 -0
  1024. data/node_modules/js-yaml/dist/js-yaml.min.js +1 -0
  1025. data/node_modules/js-yaml/index.js +7 -0
  1026. data/node_modules/js-yaml/lib/js-yaml/common.js +59 -0
  1027. data/node_modules/js-yaml/lib/js-yaml/dumper.js +850 -0
  1028. data/node_modules/js-yaml/lib/js-yaml/exception.js +43 -0
  1029. data/node_modules/js-yaml/lib/js-yaml/loader.js +1644 -0
  1030. data/node_modules/js-yaml/lib/js-yaml/mark.js +76 -0
  1031. data/node_modules/js-yaml/lib/js-yaml/schema/core.js +18 -0
  1032. data/node_modules/js-yaml/lib/js-yaml/schema/default_full.js +25 -0
  1033. data/node_modules/js-yaml/lib/js-yaml/schema/default_safe.js +28 -0
  1034. data/node_modules/js-yaml/lib/js-yaml/schema/failsafe.js +17 -0
  1035. data/node_modules/js-yaml/lib/js-yaml/schema/json.js +25 -0
  1036. data/node_modules/js-yaml/lib/js-yaml/schema.js +108 -0
  1037. data/node_modules/js-yaml/lib/js-yaml/type/binary.js +138 -0
  1038. data/node_modules/js-yaml/lib/js-yaml/type/bool.js +35 -0
  1039. data/node_modules/js-yaml/lib/js-yaml/type/float.js +116 -0
  1040. data/node_modules/js-yaml/lib/js-yaml/type/int.js +173 -0
  1041. data/node_modules/js-yaml/lib/js-yaml/type/js/function.js +93 -0
  1042. data/node_modules/js-yaml/lib/js-yaml/type/js/regexp.js +60 -0
  1043. data/node_modules/js-yaml/lib/js-yaml/type/js/undefined.js +28 -0
  1044. data/node_modules/js-yaml/lib/js-yaml/type/map.js +8 -0
  1045. data/node_modules/js-yaml/lib/js-yaml/type/merge.js +12 -0
  1046. data/node_modules/js-yaml/lib/js-yaml/type/null.js +34 -0
  1047. data/node_modules/js-yaml/lib/js-yaml/type/omap.js +44 -0
  1048. data/node_modules/js-yaml/lib/js-yaml/type/pairs.js +53 -0
  1049. data/node_modules/js-yaml/lib/js-yaml/type/seq.js +8 -0
  1050. data/node_modules/js-yaml/lib/js-yaml/type/set.js +29 -0
  1051. data/node_modules/js-yaml/lib/js-yaml/type/str.js +8 -0
  1052. data/node_modules/js-yaml/lib/js-yaml/type/timestamp.js +88 -0
  1053. data/node_modules/js-yaml/lib/js-yaml/type.js +61 -0
  1054. data/node_modules/js-yaml/lib/js-yaml.js +39 -0
  1055. data/node_modules/js-yaml/package.json +49 -0
  1056. data/node_modules/jsdom/LICENSE.txt +22 -0
  1057. data/node_modules/jsdom/README.md +522 -0
  1058. data/node_modules/jsdom/lib/api.js +333 -0
  1059. data/node_modules/jsdom/lib/jsdom/browser/Window.js +933 -0
  1060. data/node_modules/jsdom/lib/jsdom/browser/default-stylesheet.js +789 -0
  1061. data/node_modules/jsdom/lib/jsdom/browser/js-globals.json +307 -0
  1062. data/node_modules/jsdom/lib/jsdom/browser/not-implemented.js +13 -0
  1063. data/node_modules/jsdom/lib/jsdom/browser/parser/html.js +223 -0
  1064. data/node_modules/jsdom/lib/jsdom/browser/parser/index.js +37 -0
  1065. data/node_modules/jsdom/lib/jsdom/browser/parser/xml.js +202 -0
  1066. data/node_modules/jsdom/lib/jsdom/browser/resources/async-resource-queue.js +114 -0
  1067. data/node_modules/jsdom/lib/jsdom/browser/resources/no-op-resource-loader.js +8 -0
  1068. data/node_modules/jsdom/lib/jsdom/browser/resources/per-document-resource-loader.js +95 -0
  1069. data/node_modules/jsdom/lib/jsdom/browser/resources/request-manager.js +33 -0
  1070. data/node_modules/jsdom/lib/jsdom/browser/resources/resource-loader.js +142 -0
  1071. data/node_modules/jsdom/lib/jsdom/browser/resources/resource-queue.js +142 -0
  1072. data/node_modules/jsdom/lib/jsdom/level2/style.js +57 -0
  1073. data/node_modules/jsdom/lib/jsdom/level3/xpath.js +1874 -0
  1074. data/node_modules/jsdom/lib/jsdom/living/aborting/AbortController-impl.js +17 -0
  1075. data/node_modules/jsdom/lib/jsdom/living/aborting/AbortSignal-impl.js +55 -0
  1076. data/node_modules/jsdom/lib/jsdom/living/attributes/Attr-impl.js +60 -0
  1077. data/node_modules/jsdom/lib/jsdom/living/attributes/NamedNodeMap-impl.js +78 -0
  1078. data/node_modules/jsdom/lib/jsdom/living/attributes.js +312 -0
  1079. data/node_modules/jsdom/lib/jsdom/living/constraint-validation/DefaultConstraintValidation-impl.js +75 -0
  1080. data/node_modules/jsdom/lib/jsdom/living/constraint-validation/ValidityState-impl.js +66 -0
  1081. data/node_modules/jsdom/lib/jsdom/living/cssom/StyleSheetList-impl.js +38 -0
  1082. data/node_modules/jsdom/lib/jsdom/living/custom-elements/CustomElementRegistry-impl.js +265 -0
  1083. data/node_modules/jsdom/lib/jsdom/living/documents.js +15 -0
  1084. data/node_modules/jsdom/lib/jsdom/living/domparsing/DOMParser-impl.js +58 -0
  1085. data/node_modules/jsdom/lib/jsdom/living/domparsing/InnerHTML-impl.js +29 -0
  1086. data/node_modules/jsdom/lib/jsdom/living/domparsing/XMLSerializer-impl.js +18 -0
  1087. data/node_modules/jsdom/lib/jsdom/living/domparsing/parse5-adapter-serialization.js +63 -0
  1088. data/node_modules/jsdom/lib/jsdom/living/domparsing/serialization.js +45 -0
  1089. data/node_modules/jsdom/lib/jsdom/living/events/CloseEvent-impl.js +10 -0
  1090. data/node_modules/jsdom/lib/jsdom/living/events/CompositionEvent-impl.js +20 -0
  1091. data/node_modules/jsdom/lib/jsdom/living/events/CustomEvent-impl.js +21 -0
  1092. data/node_modules/jsdom/lib/jsdom/living/events/ErrorEvent-impl.js +14 -0
  1093. data/node_modules/jsdom/lib/jsdom/living/events/Event-impl.js +197 -0
  1094. data/node_modules/jsdom/lib/jsdom/living/events/EventModifierMixin-impl.js +18 -0
  1095. data/node_modules/jsdom/lib/jsdom/living/events/EventTarget-impl.js +403 -0
  1096. data/node_modules/jsdom/lib/jsdom/living/events/FocusEvent-impl.js +9 -0
  1097. data/node_modules/jsdom/lib/jsdom/living/events/HashChangeEvent-impl.js +14 -0
  1098. data/node_modules/jsdom/lib/jsdom/living/events/InputEvent-impl.js +11 -0
  1099. data/node_modules/jsdom/lib/jsdom/living/events/KeyboardEvent-impl.js +29 -0
  1100. data/node_modules/jsdom/lib/jsdom/living/events/MessageEvent-impl.js +25 -0
  1101. data/node_modules/jsdom/lib/jsdom/living/events/MouseEvent-impl.js +49 -0
  1102. data/node_modules/jsdom/lib/jsdom/living/events/PageTransitionEvent-impl.js +20 -0
  1103. data/node_modules/jsdom/lib/jsdom/living/events/PopStateEvent-impl.js +9 -0
  1104. data/node_modules/jsdom/lib/jsdom/living/events/ProgressEvent-impl.js +14 -0
  1105. data/node_modules/jsdom/lib/jsdom/living/events/StorageEvent-impl.js +26 -0
  1106. data/node_modules/jsdom/lib/jsdom/living/events/TouchEvent-impl.js +14 -0
  1107. data/node_modules/jsdom/lib/jsdom/living/events/UIEvent-impl.js +59 -0
  1108. data/node_modules/jsdom/lib/jsdom/living/events/WheelEvent-impl.js +12 -0
  1109. data/node_modules/jsdom/lib/jsdom/living/fetch/Headers-impl.js +165 -0
  1110. data/node_modules/jsdom/lib/jsdom/living/fetch/header-list.js +54 -0
  1111. data/node_modules/jsdom/lib/jsdom/living/fetch/header-types.js +103 -0
  1112. data/node_modules/jsdom/lib/jsdom/living/file-api/Blob-impl.js +93 -0
  1113. data/node_modules/jsdom/lib/jsdom/living/file-api/File-impl.js +12 -0
  1114. data/node_modules/jsdom/lib/jsdom/living/file-api/FileList-impl.js +15 -0
  1115. data/node_modules/jsdom/lib/jsdom/living/file-api/FileReader-impl.js +130 -0
  1116. data/node_modules/jsdom/lib/jsdom/living/generated/AbortController.js +130 -0
  1117. data/node_modules/jsdom/lib/jsdom/living/generated/AbortSignal.js +159 -0
  1118. data/node_modules/jsdom/lib/jsdom/living/generated/AbstractRange.js +162 -0
  1119. data/node_modules/jsdom/lib/jsdom/living/generated/AddEventListenerOptions.js +44 -0
  1120. data/node_modules/jsdom/lib/jsdom/living/generated/AssignedNodesOptions.js +28 -0
  1121. data/node_modules/jsdom/lib/jsdom/living/generated/Attr.js +215 -0
  1122. data/node_modules/jsdom/lib/jsdom/living/generated/BarProp.js +118 -0
  1123. data/node_modules/jsdom/lib/jsdom/living/generated/BinaryType.js +12 -0
  1124. data/node_modules/jsdom/lib/jsdom/living/generated/Blob.js +198 -0
  1125. data/node_modules/jsdom/lib/jsdom/living/generated/BlobCallback.js +34 -0
  1126. data/node_modules/jsdom/lib/jsdom/living/generated/BlobPropertyBag.js +42 -0
  1127. data/node_modules/jsdom/lib/jsdom/living/generated/CDATASection.js +114 -0
  1128. data/node_modules/jsdom/lib/jsdom/living/generated/CanPlayTypeResult.js +12 -0
  1129. data/node_modules/jsdom/lib/jsdom/living/generated/CharacterData.js +436 -0
  1130. data/node_modules/jsdom/lib/jsdom/living/generated/CloseEvent.js +164 -0
  1131. data/node_modules/jsdom/lib/jsdom/living/generated/CloseEventInit.js +56 -0
  1132. data/node_modules/jsdom/lib/jsdom/living/generated/Comment.js +122 -0
  1133. data/node_modules/jsdom/lib/jsdom/living/generated/CompositionEvent.js +217 -0
  1134. data/node_modules/jsdom/lib/jsdom/living/generated/CompositionEventInit.js +32 -0
  1135. data/node_modules/jsdom/lib/jsdom/living/generated/CustomElementConstructor.js +38 -0
  1136. data/node_modules/jsdom/lib/jsdom/living/generated/CustomElementRegistry.js +242 -0
  1137. data/node_modules/jsdom/lib/jsdom/living/generated/CustomEvent.js +200 -0
  1138. data/node_modules/jsdom/lib/jsdom/living/generated/CustomEventInit.js +32 -0
  1139. data/node_modules/jsdom/lib/jsdom/living/generated/DOMImplementation.js +232 -0
  1140. data/node_modules/jsdom/lib/jsdom/living/generated/DOMParser.js +140 -0
  1141. data/node_modules/jsdom/lib/jsdom/living/generated/DOMStringMap.js +322 -0
  1142. data/node_modules/jsdom/lib/jsdom/living/generated/DOMTokenList.js +531 -0
  1143. data/node_modules/jsdom/lib/jsdom/living/generated/Document.js +3322 -0
  1144. data/node_modules/jsdom/lib/jsdom/living/generated/DocumentFragment.js +325 -0
  1145. data/node_modules/jsdom/lib/jsdom/living/generated/DocumentReadyState.js +12 -0
  1146. data/node_modules/jsdom/lib/jsdom/living/generated/DocumentType.js +246 -0
  1147. data/node_modules/jsdom/lib/jsdom/living/generated/Element.js +1609 -0
  1148. data/node_modules/jsdom/lib/jsdom/living/generated/ElementCreationOptions.js +26 -0
  1149. data/node_modules/jsdom/lib/jsdom/living/generated/ElementDefinitionOptions.js +26 -0
  1150. data/node_modules/jsdom/lib/jsdom/living/generated/EndingType.js +12 -0
  1151. data/node_modules/jsdom/lib/jsdom/living/generated/ErrorEvent.js +186 -0
  1152. data/node_modules/jsdom/lib/jsdom/living/generated/ErrorEventInit.js +80 -0
  1153. data/node_modules/jsdom/lib/jsdom/living/generated/Event.js +390 -0
  1154. data/node_modules/jsdom/lib/jsdom/living/generated/EventHandlerNonNull.js +40 -0
  1155. data/node_modules/jsdom/lib/jsdom/living/generated/EventInit.js +52 -0
  1156. data/node_modules/jsdom/lib/jsdom/living/generated/EventListener.js +35 -0
  1157. data/node_modules/jsdom/lib/jsdom/living/generated/EventListenerOptions.js +28 -0
  1158. data/node_modules/jsdom/lib/jsdom/living/generated/EventModifierInit.js +188 -0
  1159. data/node_modules/jsdom/lib/jsdom/living/generated/EventTarget.js +252 -0
  1160. data/node_modules/jsdom/lib/jsdom/living/generated/External.js +129 -0
  1161. data/node_modules/jsdom/lib/jsdom/living/generated/File.js +176 -0
  1162. data/node_modules/jsdom/lib/jsdom/living/generated/FileList.js +305 -0
  1163. data/node_modules/jsdom/lib/jsdom/living/generated/FilePropertyBag.js +30 -0
  1164. data/node_modules/jsdom/lib/jsdom/living/generated/FileReader.js +440 -0
  1165. data/node_modules/jsdom/lib/jsdom/living/generated/FocusEvent.js +142 -0
  1166. data/node_modules/jsdom/lib/jsdom/living/generated/FocusEventInit.js +36 -0
  1167. data/node_modules/jsdom/lib/jsdom/living/generated/FormData.js +421 -0
  1168. data/node_modules/jsdom/lib/jsdom/living/generated/Function.js +46 -0
  1169. data/node_modules/jsdom/lib/jsdom/living/generated/GetRootNodeOptions.js +28 -0
  1170. data/node_modules/jsdom/lib/jsdom/living/generated/HTMLAnchorElement.js +915 -0
  1171. data/node_modules/jsdom/lib/jsdom/living/generated/HTMLAreaElement.js +739 -0
  1172. data/node_modules/jsdom/lib/jsdom/living/generated/HTMLAudioElement.js +115 -0
  1173. data/node_modules/jsdom/lib/jsdom/living/generated/HTMLBRElement.js +153 -0
  1174. data/node_modules/jsdom/lib/jsdom/living/generated/HTMLBaseElement.js +188 -0
  1175. data/node_modules/jsdom/lib/jsdom/living/generated/HTMLBodyElement.js +808 -0
  1176. data/node_modules/jsdom/lib/jsdom/living/generated/HTMLButtonElement.js +487 -0
  1177. data/node_modules/jsdom/lib/jsdom/living/generated/HTMLCanvasElement.js +291 -0
  1178. data/node_modules/jsdom/lib/jsdom/living/generated/HTMLCollection.js +358 -0
  1179. data/node_modules/jsdom/lib/jsdom/living/generated/HTMLDListElement.js +156 -0
  1180. data/node_modules/jsdom/lib/jsdom/living/generated/HTMLDataElement.js +153 -0
  1181. data/node_modules/jsdom/lib/jsdom/living/generated/HTMLDataListElement.js +128 -0
  1182. data/node_modules/jsdom/lib/jsdom/living/generated/HTMLDetailsElement.js +156 -0
  1183. data/node_modules/jsdom/lib/jsdom/living/generated/HTMLDialogElement.js +156 -0
  1184. data/node_modules/jsdom/lib/jsdom/living/generated/HTMLDirectoryElement.js +156 -0
  1185. data/node_modules/jsdom/lib/jsdom/living/generated/HTMLDivElement.js +153 -0
  1186. data/node_modules/jsdom/lib/jsdom/living/generated/HTMLElement.js +2269 -0
  1187. data/node_modules/jsdom/lib/jsdom/living/generated/HTMLEmbedElement.js +346 -0
  1188. data/node_modules/jsdom/lib/jsdom/living/generated/HTMLFieldSetElement.js +315 -0
  1189. data/node_modules/jsdom/lib/jsdom/living/generated/HTMLFontElement.js +226 -0
  1190. data/node_modules/jsdom/lib/jsdom/living/generated/HTMLFormElement.js +457 -0
  1191. data/node_modules/jsdom/lib/jsdom/living/generated/HTMLFrameElement.js +459 -0
  1192. data/node_modules/jsdom/lib/jsdom/living/generated/HTMLFrameSetElement.js +683 -0
  1193. data/node_modules/jsdom/lib/jsdom/living/generated/HTMLHRElement.js +300 -0
  1194. data/node_modules/jsdom/lib/jsdom/living/generated/HTMLHeadElement.js +115 -0
  1195. data/node_modules/jsdom/lib/jsdom/living/generated/HTMLHeadingElement.js +153 -0
  1196. data/node_modules/jsdom/lib/jsdom/living/generated/HTMLHtmlElement.js +153 -0
  1197. data/node_modules/jsdom/lib/jsdom/living/generated/HTMLIFrameElement.js +621 -0
  1198. data/node_modules/jsdom/lib/jsdom/living/generated/HTMLImageElement.js +789 -0
  1199. data/node_modules/jsdom/lib/jsdom/living/generated/HTMLInputElement.js +1696 -0
  1200. data/node_modules/jsdom/lib/jsdom/living/generated/HTMLLIElement.js +194 -0
  1201. data/node_modules/jsdom/lib/jsdom/living/generated/HTMLLabelElement.js +175 -0
  1202. data/node_modules/jsdom/lib/jsdom/living/generated/HTMLLegendElement.js +164 -0
  1203. data/node_modules/jsdom/lib/jsdom/living/generated/HTMLLinkElement.js +496 -0
  1204. data/node_modules/jsdom/lib/jsdom/living/generated/HTMLMapElement.js +166 -0
  1205. data/node_modules/jsdom/lib/jsdom/living/generated/HTMLMarqueeElement.js +509 -0
  1206. data/node_modules/jsdom/lib/jsdom/living/generated/HTMLMediaElement.js +802 -0
  1207. data/node_modules/jsdom/lib/jsdom/living/generated/HTMLMenuElement.js +156 -0
  1208. data/node_modules/jsdom/lib/jsdom/living/generated/HTMLMetaElement.js +261 -0
  1209. data/node_modules/jsdom/lib/jsdom/living/generated/HTMLMeterElement.js +338 -0
  1210. data/node_modules/jsdom/lib/jsdom/living/generated/HTMLModElement.js +202 -0
  1211. data/node_modules/jsdom/lib/jsdom/living/generated/HTMLOListElement.js +266 -0
  1212. data/node_modules/jsdom/lib/jsdom/living/generated/HTMLObjectElement.js +839 -0
  1213. data/node_modules/jsdom/lib/jsdom/living/generated/HTMLOptGroupElement.js +192 -0
  1214. data/node_modules/jsdom/lib/jsdom/living/generated/HTMLOptionElement.js +351 -0
  1215. data/node_modules/jsdom/lib/jsdom/living/generated/HTMLOptionsCollection.js +533 -0
  1216. data/node_modules/jsdom/lib/jsdom/living/generated/HTMLOutputElement.js +371 -0
  1217. data/node_modules/jsdom/lib/jsdom/living/generated/HTMLParagraphElement.js +153 -0
  1218. data/node_modules/jsdom/lib/jsdom/living/generated/HTMLParamElement.js +261 -0
  1219. data/node_modules/jsdom/lib/jsdom/living/generated/HTMLPictureElement.js +115 -0
  1220. data/node_modules/jsdom/lib/jsdom/living/generated/HTMLPreElement.js +158 -0
  1221. data/node_modules/jsdom/lib/jsdom/living/generated/HTMLProgressElement.js +209 -0
  1222. data/node_modules/jsdom/lib/jsdom/living/generated/HTMLQuoteElement.js +166 -0
  1223. data/node_modules/jsdom/lib/jsdom/living/generated/HTMLScriptElement.js +424 -0
  1224. data/node_modules/jsdom/lib/jsdom/living/generated/HTMLSelectElement.js +957 -0
  1225. data/node_modules/jsdom/lib/jsdom/living/generated/HTMLSlotElement.js +188 -0
  1226. data/node_modules/jsdom/lib/jsdom/living/generated/HTMLSourceElement.js +310 -0
  1227. data/node_modules/jsdom/lib/jsdom/living/generated/HTMLSpanElement.js +115 -0
  1228. data/node_modules/jsdom/lib/jsdom/living/generated/HTMLStyleElement.js +200 -0
  1229. data/node_modules/jsdom/lib/jsdom/living/generated/HTMLTableCaptionElement.js +153 -0
  1230. data/node_modules/jsdom/lib/jsdom/living/generated/HTMLTableCellElement.js +635 -0
  1231. data/node_modules/jsdom/lib/jsdom/living/generated/HTMLTableColElement.js +339 -0
  1232. data/node_modules/jsdom/lib/jsdom/living/generated/HTMLTableElement.js +725 -0
  1233. data/node_modules/jsdom/lib/jsdom/living/generated/HTMLTableRowElement.js +386 -0
  1234. data/node_modules/jsdom/lib/jsdom/living/generated/HTMLTableSectionElement.js +329 -0
  1235. data/node_modules/jsdom/lib/jsdom/living/generated/HTMLTemplateElement.js +126 -0
  1236. data/node_modules/jsdom/lib/jsdom/living/generated/HTMLTextAreaElement.js +1088 -0
  1237. data/node_modules/jsdom/lib/jsdom/living/generated/HTMLTimeElement.js +153 -0
  1238. data/node_modules/jsdom/lib/jsdom/living/generated/HTMLTitleElement.js +152 -0
  1239. data/node_modules/jsdom/lib/jsdom/living/generated/HTMLTrackElement.js +334 -0
  1240. data/node_modules/jsdom/lib/jsdom/living/generated/HTMLUListElement.js +192 -0
  1241. data/node_modules/jsdom/lib/jsdom/living/generated/HTMLUnknownElement.js +114 -0
  1242. data/node_modules/jsdom/lib/jsdom/living/generated/HTMLVideoElement.js +310 -0
  1243. data/node_modules/jsdom/lib/jsdom/living/generated/HashChangeEvent.js +153 -0
  1244. data/node_modules/jsdom/lib/jsdom/living/generated/HashChangeEventInit.js +44 -0
  1245. data/node_modules/jsdom/lib/jsdom/living/generated/Headers.js +379 -0
  1246. data/node_modules/jsdom/lib/jsdom/living/generated/History.js +256 -0
  1247. data/node_modules/jsdom/lib/jsdom/living/generated/InputEvent.js +164 -0
  1248. data/node_modules/jsdom/lib/jsdom/living/generated/InputEventInit.js +59 -0
  1249. data/node_modules/jsdom/lib/jsdom/living/generated/KeyboardEvent.js +413 -0
  1250. data/node_modules/jsdom/lib/jsdom/living/generated/KeyboardEventInit.js +104 -0
  1251. data/node_modules/jsdom/lib/jsdom/living/generated/Location.js +370 -0
  1252. data/node_modules/jsdom/lib/jsdom/living/generated/MessageEvent.js +301 -0
  1253. data/node_modules/jsdom/lib/jsdom/living/generated/MessageEventInit.js +94 -0
  1254. data/node_modules/jsdom/lib/jsdom/living/generated/MimeType.js +151 -0
  1255. data/node_modules/jsdom/lib/jsdom/living/generated/MimeTypeArray.js +330 -0
  1256. data/node_modules/jsdom/lib/jsdom/living/generated/MouseEvent.js +463 -0
  1257. data/node_modules/jsdom/lib/jsdom/living/generated/MouseEventInit.js +108 -0
  1258. data/node_modules/jsdom/lib/jsdom/living/generated/MutationCallback.js +38 -0
  1259. data/node_modules/jsdom/lib/jsdom/living/generated/MutationObserver.js +171 -0
  1260. data/node_modules/jsdom/lib/jsdom/living/generated/MutationObserverInit.js +103 -0
  1261. data/node_modules/jsdom/lib/jsdom/living/generated/MutationRecord.js +216 -0
  1262. data/node_modules/jsdom/lib/jsdom/living/generated/NamedNodeMap.js +522 -0
  1263. data/node_modules/jsdom/lib/jsdom/living/generated/Navigator.js +297 -0
  1264. data/node_modules/jsdom/lib/jsdom/living/generated/Node.js +736 -0
  1265. data/node_modules/jsdom/lib/jsdom/living/generated/NodeFilter.js +74 -0
  1266. data/node_modules/jsdom/lib/jsdom/living/generated/NodeIterator.js +196 -0
  1267. data/node_modules/jsdom/lib/jsdom/living/generated/NodeList.js +309 -0
  1268. data/node_modules/jsdom/lib/jsdom/living/generated/OnBeforeUnloadEventHandlerNonNull.js +46 -0
  1269. data/node_modules/jsdom/lib/jsdom/living/generated/OnErrorEventHandlerNonNull.js +60 -0
  1270. data/node_modules/jsdom/lib/jsdom/living/generated/PageTransitionEvent.js +146 -0
  1271. data/node_modules/jsdom/lib/jsdom/living/generated/PageTransitionEventInit.js +32 -0
  1272. data/node_modules/jsdom/lib/jsdom/living/generated/Performance.js +145 -0
  1273. data/node_modules/jsdom/lib/jsdom/living/generated/Plugin.js +361 -0
  1274. data/node_modules/jsdom/lib/jsdom/living/generated/PluginArray.js +340 -0
  1275. data/node_modules/jsdom/lib/jsdom/living/generated/PopStateEvent.js +142 -0
  1276. data/node_modules/jsdom/lib/jsdom/living/generated/PopStateEventInit.js +32 -0
  1277. data/node_modules/jsdom/lib/jsdom/living/generated/ProcessingInstruction.js +125 -0
  1278. data/node_modules/jsdom/lib/jsdom/living/generated/ProgressEvent.js +166 -0
  1279. data/node_modules/jsdom/lib/jsdom/living/generated/ProgressEventInit.js +56 -0
  1280. data/node_modules/jsdom/lib/jsdom/living/generated/Range.js +619 -0
  1281. data/node_modules/jsdom/lib/jsdom/living/generated/SVGAnimatedString.js +143 -0
  1282. data/node_modules/jsdom/lib/jsdom/living/generated/SVGBoundingBoxOptions.js +64 -0
  1283. data/node_modules/jsdom/lib/jsdom/living/generated/SVGElement.js +1986 -0
  1284. data/node_modules/jsdom/lib/jsdom/living/generated/SVGGraphicsElement.js +144 -0
  1285. data/node_modules/jsdom/lib/jsdom/living/generated/SVGNumber.js +130 -0
  1286. data/node_modules/jsdom/lib/jsdom/living/generated/SVGSVGElement.js +681 -0
  1287. data/node_modules/jsdom/lib/jsdom/living/generated/SVGStringList.js +504 -0
  1288. data/node_modules/jsdom/lib/jsdom/living/generated/SVGTitleElement.js +114 -0
  1289. data/node_modules/jsdom/lib/jsdom/living/generated/Screen.js +173 -0
  1290. data/node_modules/jsdom/lib/jsdom/living/generated/ScrollBehavior.js +12 -0
  1291. data/node_modules/jsdom/lib/jsdom/living/generated/ScrollIntoViewOptions.js +45 -0
  1292. data/node_modules/jsdom/lib/jsdom/living/generated/ScrollLogicalPosition.js +12 -0
  1293. data/node_modules/jsdom/lib/jsdom/living/generated/ScrollOptions.js +30 -0
  1294. data/node_modules/jsdom/lib/jsdom/living/generated/ScrollRestoration.js +12 -0
  1295. data/node_modules/jsdom/lib/jsdom/living/generated/Selection.js +527 -0
  1296. data/node_modules/jsdom/lib/jsdom/living/generated/SelectionMode.js +12 -0
  1297. data/node_modules/jsdom/lib/jsdom/living/generated/ShadowRoot.js +185 -0
  1298. data/node_modules/jsdom/lib/jsdom/living/generated/ShadowRootInit.js +30 -0
  1299. data/node_modules/jsdom/lib/jsdom/living/generated/ShadowRootMode.js +12 -0
  1300. data/node_modules/jsdom/lib/jsdom/living/generated/StaticRange.js +126 -0
  1301. data/node_modules/jsdom/lib/jsdom/living/generated/StaticRangeInit.js +66 -0
  1302. data/node_modules/jsdom/lib/jsdom/living/generated/Storage.js +389 -0
  1303. data/node_modules/jsdom/lib/jsdom/living/generated/StorageEvent.js +305 -0
  1304. data/node_modules/jsdom/lib/jsdom/living/generated/StorageEventInit.js +93 -0
  1305. data/node_modules/jsdom/lib/jsdom/living/generated/StyleSheetList.js +307 -0
  1306. data/node_modules/jsdom/lib/jsdom/living/generated/SupportedType.js +18 -0
  1307. data/node_modules/jsdom/lib/jsdom/living/generated/Text.js +169 -0
  1308. data/node_modules/jsdom/lib/jsdom/living/generated/TextTrackKind.js +12 -0
  1309. data/node_modules/jsdom/lib/jsdom/living/generated/TouchEvent.js +208 -0
  1310. data/node_modules/jsdom/lib/jsdom/living/generated/TouchEventInit.js +89 -0
  1311. data/node_modules/jsdom/lib/jsdom/living/generated/TreeWalker.js +236 -0
  1312. data/node_modules/jsdom/lib/jsdom/living/generated/UIEvent.js +235 -0
  1313. data/node_modules/jsdom/lib/jsdom/living/generated/UIEventInit.js +59 -0
  1314. data/node_modules/jsdom/lib/jsdom/living/generated/ValidityState.js +228 -0
  1315. data/node_modules/jsdom/lib/jsdom/living/generated/VisibilityState.js +12 -0
  1316. data/node_modules/jsdom/lib/jsdom/living/generated/VoidFunction.js +30 -0
  1317. data/node_modules/jsdom/lib/jsdom/living/generated/WebSocket.js +444 -0
  1318. data/node_modules/jsdom/lib/jsdom/living/generated/WheelEvent.js +183 -0
  1319. data/node_modules/jsdom/lib/jsdom/living/generated/WheelEventInit.js +68 -0
  1320. data/node_modules/jsdom/lib/jsdom/living/generated/XMLDocument.js +114 -0
  1321. data/node_modules/jsdom/lib/jsdom/living/generated/XMLHttpRequest.js +617 -0
  1322. data/node_modules/jsdom/lib/jsdom/living/generated/XMLHttpRequestEventTarget.js +341 -0
  1323. data/node_modules/jsdom/lib/jsdom/living/generated/XMLHttpRequestResponseType.js +12 -0
  1324. data/node_modules/jsdom/lib/jsdom/living/generated/XMLHttpRequestUpload.js +114 -0
  1325. data/node_modules/jsdom/lib/jsdom/living/generated/XMLSerializer.js +133 -0
  1326. data/node_modules/jsdom/lib/jsdom/living/generated/utils.js +141 -0
  1327. data/node_modules/jsdom/lib/jsdom/living/helpers/agent-factory.js +15 -0
  1328. data/node_modules/jsdom/lib/jsdom/living/helpers/binary-data.js +9 -0
  1329. data/node_modules/jsdom/lib/jsdom/living/helpers/create-element.js +320 -0
  1330. data/node_modules/jsdom/lib/jsdom/living/helpers/create-event-accessor.js +188 -0
  1331. data/node_modules/jsdom/lib/jsdom/living/helpers/custom-elements.js +270 -0
  1332. data/node_modules/jsdom/lib/jsdom/living/helpers/dates-and-times.js +270 -0
  1333. data/node_modules/jsdom/lib/jsdom/living/helpers/details.js +15 -0
  1334. data/node_modules/jsdom/lib/jsdom/living/helpers/document-base-url.js +54 -0
  1335. data/node_modules/jsdom/lib/jsdom/living/helpers/events.js +24 -0
  1336. data/node_modules/jsdom/lib/jsdom/living/helpers/focusing.js +104 -0
  1337. data/node_modules/jsdom/lib/jsdom/living/helpers/form-controls.js +306 -0
  1338. data/node_modules/jsdom/lib/jsdom/living/helpers/html-constructor.js +78 -0
  1339. data/node_modules/jsdom/lib/jsdom/living/helpers/http-request.js +254 -0
  1340. data/node_modules/jsdom/lib/jsdom/living/helpers/internal-constants.js +12 -0
  1341. data/node_modules/jsdom/lib/jsdom/living/helpers/iterable-weak-set.js +48 -0
  1342. data/node_modules/jsdom/lib/jsdom/living/helpers/json.js +12 -0
  1343. data/node_modules/jsdom/lib/jsdom/living/helpers/mutation-observers.js +198 -0
  1344. data/node_modules/jsdom/lib/jsdom/living/helpers/namespaces.js +15 -0
  1345. data/node_modules/jsdom/lib/jsdom/living/helpers/node.js +68 -0
  1346. data/node_modules/jsdom/lib/jsdom/living/helpers/number-and-date-inputs.js +195 -0
  1347. data/node_modules/jsdom/lib/jsdom/living/helpers/ordered-set.js +104 -0
  1348. data/node_modules/jsdom/lib/jsdom/living/helpers/runtime-script-errors.js +76 -0
  1349. data/node_modules/jsdom/lib/jsdom/living/helpers/selectors.js +47 -0
  1350. data/node_modules/jsdom/lib/jsdom/living/helpers/shadow-dom.js +285 -0
  1351. data/node_modules/jsdom/lib/jsdom/living/helpers/strings.js +148 -0
  1352. data/node_modules/jsdom/lib/jsdom/living/helpers/style-rules.js +114 -0
  1353. data/node_modules/jsdom/lib/jsdom/living/helpers/stylesheets.js +113 -0
  1354. data/node_modules/jsdom/lib/jsdom/living/helpers/svg/basic-types.js +41 -0
  1355. data/node_modules/jsdom/lib/jsdom/living/helpers/svg/render.js +46 -0
  1356. data/node_modules/jsdom/lib/jsdom/living/helpers/text.js +19 -0
  1357. data/node_modules/jsdom/lib/jsdom/living/helpers/traversal.js +72 -0
  1358. data/node_modules/jsdom/lib/jsdom/living/helpers/validate-names.js +75 -0
  1359. data/node_modules/jsdom/lib/jsdom/living/hr-time/Performance-impl.js +25 -0
  1360. data/node_modules/jsdom/lib/jsdom/living/interfaces.js +217 -0
  1361. data/node_modules/jsdom/lib/jsdom/living/mutation-observer/MutationObserver-impl.js +95 -0
  1362. data/node_modules/jsdom/lib/jsdom/living/mutation-observer/MutationRecord-impl.js +37 -0
  1363. data/node_modules/jsdom/lib/jsdom/living/named-properties-window.js +141 -0
  1364. data/node_modules/jsdom/lib/jsdom/living/navigator/MimeType-impl.js +3 -0
  1365. data/node_modules/jsdom/lib/jsdom/living/navigator/MimeTypeArray-impl.js +21 -0
  1366. data/node_modules/jsdom/lib/jsdom/living/navigator/Navigator-impl.js +29 -0
  1367. data/node_modules/jsdom/lib/jsdom/living/navigator/NavigatorConcurrentHardware-impl.js +8 -0
  1368. data/node_modules/jsdom/lib/jsdom/living/navigator/NavigatorCookies-impl.js +7 -0
  1369. data/node_modules/jsdom/lib/jsdom/living/navigator/NavigatorID-impl.js +37 -0
  1370. data/node_modules/jsdom/lib/jsdom/living/navigator/NavigatorLanguage-impl.js +9 -0
  1371. data/node_modules/jsdom/lib/jsdom/living/navigator/NavigatorOnLine-impl.js +7 -0
  1372. data/node_modules/jsdom/lib/jsdom/living/navigator/NavigatorPlugins-impl.js +8 -0
  1373. data/node_modules/jsdom/lib/jsdom/living/navigator/Plugin-impl.js +3 -0
  1374. data/node_modules/jsdom/lib/jsdom/living/navigator/PluginArray-impl.js +23 -0
  1375. data/node_modules/jsdom/lib/jsdom/living/node-document-position.js +10 -0
  1376. data/node_modules/jsdom/lib/jsdom/living/node-type.js +16 -0
  1377. data/node_modules/jsdom/lib/jsdom/living/node.js +331 -0
  1378. data/node_modules/jsdom/lib/jsdom/living/nodes/CDATASection-impl.js +16 -0
  1379. data/node_modules/jsdom/lib/jsdom/living/nodes/CharacterData-impl.js +118 -0
  1380. data/node_modules/jsdom/lib/jsdom/living/nodes/ChildNode-impl.js +80 -0
  1381. data/node_modules/jsdom/lib/jsdom/living/nodes/Comment-impl.js +20 -0
  1382. data/node_modules/jsdom/lib/jsdom/living/nodes/DOMImplementation-impl.js +120 -0
  1383. data/node_modules/jsdom/lib/jsdom/living/nodes/DOMStringMap-impl.js +64 -0
  1384. data/node_modules/jsdom/lib/jsdom/living/nodes/DOMTokenList-impl.js +171 -0
  1385. data/node_modules/jsdom/lib/jsdom/living/nodes/Document-impl.js +946 -0
  1386. data/node_modules/jsdom/lib/jsdom/living/nodes/DocumentFragment-impl.js +44 -0
  1387. data/node_modules/jsdom/lib/jsdom/living/nodes/DocumentOrShadowRoot-impl.js +28 -0
  1388. data/node_modules/jsdom/lib/jsdom/living/nodes/DocumentType-impl.js +24 -0
  1389. data/node_modules/jsdom/lib/jsdom/living/nodes/Element-impl.js +578 -0
  1390. data/node_modules/jsdom/lib/jsdom/living/nodes/ElementCSSInlineStyle-impl.js +25 -0
  1391. data/node_modules/jsdom/lib/jsdom/living/nodes/ElementContentEditable-impl.js +7 -0
  1392. data/node_modules/jsdom/lib/jsdom/living/nodes/GlobalEventHandlers-impl.js +95 -0
  1393. data/node_modules/jsdom/lib/jsdom/living/nodes/HTMLAnchorElement-impl.js +50 -0
  1394. data/node_modules/jsdom/lib/jsdom/living/nodes/HTMLAreaElement-impl.js +43 -0
  1395. data/node_modules/jsdom/lib/jsdom/living/nodes/HTMLAudioElement-impl.js +9 -0
  1396. data/node_modules/jsdom/lib/jsdom/living/nodes/HTMLBRElement-impl.js +9 -0
  1397. data/node_modules/jsdom/lib/jsdom/living/nodes/HTMLBaseElement-impl.js +27 -0
  1398. data/node_modules/jsdom/lib/jsdom/living/nodes/HTMLBodyElement-impl.js +17 -0
  1399. data/node_modules/jsdom/lib/jsdom/living/nodes/HTMLButtonElement-impl.js +79 -0
  1400. data/node_modules/jsdom/lib/jsdom/living/nodes/HTMLCanvasElement-impl.js +130 -0
  1401. data/node_modules/jsdom/lib/jsdom/living/nodes/HTMLCollection-impl.js +96 -0
  1402. data/node_modules/jsdom/lib/jsdom/living/nodes/HTMLDListElement-impl.js +9 -0
  1403. data/node_modules/jsdom/lib/jsdom/living/nodes/HTMLDataElement-impl.js +9 -0
  1404. data/node_modules/jsdom/lib/jsdom/living/nodes/HTMLDataListElement-impl.js +20 -0
  1405. data/node_modules/jsdom/lib/jsdom/living/nodes/HTMLDetailsElement-impl.js +35 -0
  1406. data/node_modules/jsdom/lib/jsdom/living/nodes/HTMLDialogElement-impl.js +9 -0
  1407. data/node_modules/jsdom/lib/jsdom/living/nodes/HTMLDirectoryElement-impl.js +9 -0
  1408. data/node_modules/jsdom/lib/jsdom/living/nodes/HTMLDivElement-impl.js +9 -0
  1409. data/node_modules/jsdom/lib/jsdom/living/nodes/HTMLElement-impl.js +160 -0
  1410. data/node_modules/jsdom/lib/jsdom/living/nodes/HTMLEmbedElement-impl.js +8 -0
  1411. data/node_modules/jsdom/lib/jsdom/living/nodes/HTMLFieldSetElement-impl.js +43 -0
  1412. data/node_modules/jsdom/lib/jsdom/living/nodes/HTMLFontElement-impl.js +9 -0
  1413. data/node_modules/jsdom/lib/jsdom/living/nodes/HTMLFormElement-impl.js +226 -0
  1414. data/node_modules/jsdom/lib/jsdom/living/nodes/HTMLFrameElement-impl.js +261 -0
  1415. data/node_modules/jsdom/lib/jsdom/living/nodes/HTMLFrameSetElement-impl.js +17 -0
  1416. data/node_modules/jsdom/lib/jsdom/living/nodes/HTMLHRElement-impl.js +9 -0
  1417. data/node_modules/jsdom/lib/jsdom/living/nodes/HTMLHeadElement-impl.js +9 -0
  1418. data/node_modules/jsdom/lib/jsdom/living/nodes/HTMLHeadingElement-impl.js +9 -0
  1419. data/node_modules/jsdom/lib/jsdom/living/nodes/HTMLHtmlElement-impl.js +9 -0
  1420. data/node_modules/jsdom/lib/jsdom/living/nodes/HTMLHyperlinkElementUtils-impl.js +371 -0
  1421. data/node_modules/jsdom/lib/jsdom/living/nodes/HTMLIFrameElement-impl.js +9 -0
  1422. data/node_modules/jsdom/lib/jsdom/living/nodes/HTMLImageElement-impl.js +132 -0
  1423. data/node_modules/jsdom/lib/jsdom/living/nodes/HTMLInputElement-impl.js +1128 -0
  1424. data/node_modules/jsdom/lib/jsdom/living/nodes/HTMLLIElement-impl.js +9 -0
  1425. data/node_modules/jsdom/lib/jsdom/living/nodes/HTMLLabelElement-impl.js +94 -0
  1426. data/node_modules/jsdom/lib/jsdom/living/nodes/HTMLLegendElement-impl.js +18 -0
  1427. data/node_modules/jsdom/lib/jsdom/living/nodes/HTMLLinkElement-impl.js +101 -0
  1428. data/node_modules/jsdom/lib/jsdom/living/nodes/HTMLMapElement-impl.js +13 -0
  1429. data/node_modules/jsdom/lib/jsdom/living/nodes/HTMLMarqueeElement-impl.js +9 -0
  1430. data/node_modules/jsdom/lib/jsdom/living/nodes/HTMLMediaElement-impl.js +138 -0
  1431. data/node_modules/jsdom/lib/jsdom/living/nodes/HTMLMenuElement-impl.js +9 -0
  1432. data/node_modules/jsdom/lib/jsdom/living/nodes/HTMLMetaElement-impl.js +9 -0
  1433. data/node_modules/jsdom/lib/jsdom/living/nodes/HTMLMeterElement-impl.js +180 -0
  1434. data/node_modules/jsdom/lib/jsdom/living/nodes/HTMLModElement-impl.js +9 -0
  1435. data/node_modules/jsdom/lib/jsdom/living/nodes/HTMLOListElement-impl.js +22 -0
  1436. data/node_modules/jsdom/lib/jsdom/living/nodes/HTMLObjectElement-impl.js +26 -0
  1437. data/node_modules/jsdom/lib/jsdom/living/nodes/HTMLOptGroupElement-impl.js +9 -0
  1438. data/node_modules/jsdom/lib/jsdom/living/nodes/HTMLOptionElement-impl.js +146 -0
  1439. data/node_modules/jsdom/lib/jsdom/living/nodes/HTMLOptionsCollection-impl.js +110 -0
  1440. data/node_modules/jsdom/lib/jsdom/living/nodes/HTMLOrSVGElement-impl.js +85 -0
  1441. data/node_modules/jsdom/lib/jsdom/living/nodes/HTMLOutputElement-impl.js +88 -0
  1442. data/node_modules/jsdom/lib/jsdom/living/nodes/HTMLParagraphElement-impl.js +9 -0
  1443. data/node_modules/jsdom/lib/jsdom/living/nodes/HTMLParamElement-impl.js +9 -0
  1444. data/node_modules/jsdom/lib/jsdom/living/nodes/HTMLPictureElement-impl.js +9 -0
  1445. data/node_modules/jsdom/lib/jsdom/living/nodes/HTMLPreElement-impl.js +9 -0
  1446. data/node_modules/jsdom/lib/jsdom/living/nodes/HTMLProgressElement-impl.js +74 -0
  1447. data/node_modules/jsdom/lib/jsdom/living/nodes/HTMLQuoteElement-impl.js +9 -0
  1448. data/node_modules/jsdom/lib/jsdom/living/nodes/HTMLScriptElement-impl.js +265 -0
  1449. data/node_modules/jsdom/lib/jsdom/living/nodes/HTMLSelectElement-impl.js +283 -0
  1450. data/node_modules/jsdom/lib/jsdom/living/nodes/HTMLSlotElement-impl.js +59 -0
  1451. data/node_modules/jsdom/lib/jsdom/living/nodes/HTMLSourceElement-impl.js +8 -0
  1452. data/node_modules/jsdom/lib/jsdom/living/nodes/HTMLSpanElement-impl.js +9 -0
  1453. data/node_modules/jsdom/lib/jsdom/living/nodes/HTMLStyleElement-impl.js +74 -0
  1454. data/node_modules/jsdom/lib/jsdom/living/nodes/HTMLTableCaptionElement-impl.js +9 -0
  1455. data/node_modules/jsdom/lib/jsdom/living/nodes/HTMLTableCellElement-impl.js +73 -0
  1456. data/node_modules/jsdom/lib/jsdom/living/nodes/HTMLTableColElement-impl.js +9 -0
  1457. data/node_modules/jsdom/lib/jsdom/living/nodes/HTMLTableElement-impl.js +236 -0
  1458. data/node_modules/jsdom/lib/jsdom/living/nodes/HTMLTableRowElement-impl.js +88 -0
  1459. data/node_modules/jsdom/lib/jsdom/living/nodes/HTMLTableSectionElement-impl.js +61 -0
  1460. data/node_modules/jsdom/lib/jsdom/living/nodes/HTMLTemplateElement-impl.js +67 -0
  1461. data/node_modules/jsdom/lib/jsdom/living/nodes/HTMLTextAreaElement-impl.js +272 -0
  1462. data/node_modules/jsdom/lib/jsdom/living/nodes/HTMLTimeElement-impl.js +9 -0
  1463. data/node_modules/jsdom/lib/jsdom/living/nodes/HTMLTitleElement-impl.js +18 -0
  1464. data/node_modules/jsdom/lib/jsdom/living/nodes/HTMLTrackElement-impl.js +13 -0
  1465. data/node_modules/jsdom/lib/jsdom/living/nodes/HTMLUListElement-impl.js +9 -0
  1466. data/node_modules/jsdom/lib/jsdom/living/nodes/HTMLUnknownElement-impl.js +9 -0
  1467. data/node_modules/jsdom/lib/jsdom/living/nodes/HTMLVideoElement-impl.js +17 -0
  1468. data/node_modules/jsdom/lib/jsdom/living/nodes/LinkStyle-impl.js +2 -0
  1469. data/node_modules/jsdom/lib/jsdom/living/nodes/Node-impl.js +1165 -0
  1470. data/node_modules/jsdom/lib/jsdom/living/nodes/NodeList-impl.js +43 -0
  1471. data/node_modules/jsdom/lib/jsdom/living/nodes/NonDocumentTypeChildNode-impl.js +28 -0
  1472. data/node_modules/jsdom/lib/jsdom/living/nodes/NonElementParentNode-impl.js +11 -0
  1473. data/node_modules/jsdom/lib/jsdom/living/nodes/ParentNode-impl.js +91 -0
  1474. data/node_modules/jsdom/lib/jsdom/living/nodes/ProcessingInstruction-impl.js +22 -0
  1475. data/node_modules/jsdom/lib/jsdom/living/nodes/SVGElement-impl.js +64 -0
  1476. data/node_modules/jsdom/lib/jsdom/living/nodes/SVGGraphicsElement-impl.js +16 -0
  1477. data/node_modules/jsdom/lib/jsdom/living/nodes/SVGSVGElement-impl.js +42 -0
  1478. data/node_modules/jsdom/lib/jsdom/living/nodes/SVGTests-impl.js +42 -0
  1479. data/node_modules/jsdom/lib/jsdom/living/nodes/SVGTitleElement-impl.js +9 -0
  1480. data/node_modules/jsdom/lib/jsdom/living/nodes/ShadowRoot-impl.js +40 -0
  1481. data/node_modules/jsdom/lib/jsdom/living/nodes/Slotable-impl.js +48 -0
  1482. data/node_modules/jsdom/lib/jsdom/living/nodes/Text-impl.js +96 -0
  1483. data/node_modules/jsdom/lib/jsdom/living/nodes/WindowEventHandlers-impl.js +52 -0
  1484. data/node_modules/jsdom/lib/jsdom/living/nodes/XMLDocument-impl.js +4 -0
  1485. data/node_modules/jsdom/lib/jsdom/living/post-message.js +39 -0
  1486. data/node_modules/jsdom/lib/jsdom/living/range/AbstractRange-impl.js +43 -0
  1487. data/node_modules/jsdom/lib/jsdom/living/range/Range-impl.js +889 -0
  1488. data/node_modules/jsdom/lib/jsdom/living/range/StaticRange-impl.js +39 -0
  1489. data/node_modules/jsdom/lib/jsdom/living/range/boundary-point.js +47 -0
  1490. data/node_modules/jsdom/lib/jsdom/living/selection/Selection-impl.js +342 -0
  1491. data/node_modules/jsdom/lib/jsdom/living/svg/SVGAnimatedString-impl.js +38 -0
  1492. data/node_modules/jsdom/lib/jsdom/living/svg/SVGListBase.js +195 -0
  1493. data/node_modules/jsdom/lib/jsdom/living/svg/SVGNumber-impl.js +48 -0
  1494. data/node_modules/jsdom/lib/jsdom/living/svg/SVGStringList-impl.js +16 -0
  1495. data/node_modules/jsdom/lib/jsdom/living/traversal/NodeIterator-impl.js +127 -0
  1496. data/node_modules/jsdom/lib/jsdom/living/traversal/TreeWalker-impl.js +217 -0
  1497. data/node_modules/jsdom/lib/jsdom/living/traversal/helpers.js +44 -0
  1498. data/node_modules/jsdom/lib/jsdom/living/websockets/WebSocket-impl-browser.js +175 -0
  1499. data/node_modules/jsdom/lib/jsdom/living/websockets/WebSocket-impl.js +328 -0
  1500. data/node_modules/jsdom/lib/jsdom/living/webstorage/Storage-impl.js +102 -0
  1501. data/node_modules/jsdom/lib/jsdom/living/window/BarProp-impl.js +10 -0
  1502. data/node_modules/jsdom/lib/jsdom/living/window/External-impl.js +9 -0
  1503. data/node_modules/jsdom/lib/jsdom/living/window/History-impl.js +134 -0
  1504. data/node_modules/jsdom/lib/jsdom/living/window/Location-impl.js +238 -0
  1505. data/node_modules/jsdom/lib/jsdom/living/window/Screen-impl.js +13 -0
  1506. data/node_modules/jsdom/lib/jsdom/living/window/SessionHistory.js +163 -0
  1507. data/node_modules/jsdom/lib/jsdom/living/window/navigation.js +84 -0
  1508. data/node_modules/jsdom/lib/jsdom/living/xhr/FormData-impl.js +171 -0
  1509. data/node_modules/jsdom/lib/jsdom/living/xhr/XMLHttpRequest-impl.js +1023 -0
  1510. data/node_modules/jsdom/lib/jsdom/living/xhr/XMLHttpRequestEventTarget-impl.js +17 -0
  1511. data/node_modules/jsdom/lib/jsdom/living/xhr/XMLHttpRequestUpload-impl.js +4 -0
  1512. data/node_modules/jsdom/lib/jsdom/living/xhr/xhr-sync-worker.js +60 -0
  1513. data/node_modules/jsdom/lib/jsdom/living/xhr/xhr-utils.js +438 -0
  1514. data/node_modules/jsdom/lib/jsdom/named-properties-tracker.js +158 -0
  1515. data/node_modules/jsdom/lib/jsdom/utils.js +165 -0
  1516. data/node_modules/jsdom/lib/jsdom/virtual-console.js +34 -0
  1517. data/node_modules/jsdom/lib/jsdom/vm-shim.js +106 -0
  1518. data/node_modules/jsdom/package.json +116 -0
  1519. data/node_modules/jsonfile/CHANGELOG.md +171 -0
  1520. data/node_modules/jsonfile/LICENSE +15 -0
  1521. data/node_modules/jsonfile/README.md +230 -0
  1522. data/node_modules/jsonfile/index.js +88 -0
  1523. data/node_modules/jsonfile/package.json +40 -0
  1524. data/node_modules/jsonfile/utils.js +14 -0
  1525. data/node_modules/levn/LICENSE +22 -0
  1526. data/node_modules/levn/README.md +196 -0
  1527. data/node_modules/levn/lib/cast.js +298 -0
  1528. data/node_modules/levn/lib/coerce.js +285 -0
  1529. data/node_modules/levn/lib/index.js +22 -0
  1530. data/node_modules/levn/lib/parse-string.js +113 -0
  1531. data/node_modules/levn/lib/parse.js +102 -0
  1532. data/node_modules/levn/package.json +47 -0
  1533. data/node_modules/lodash/LICENSE +47 -0
  1534. data/node_modules/lodash/README.md +39 -0
  1535. data/node_modules/lodash/_DataView.js +7 -0
  1536. data/node_modules/lodash/_Hash.js +32 -0
  1537. data/node_modules/lodash/_LazyWrapper.js +28 -0
  1538. data/node_modules/lodash/_ListCache.js +32 -0
  1539. data/node_modules/lodash/_LodashWrapper.js +22 -0
  1540. data/node_modules/lodash/_Map.js +7 -0
  1541. data/node_modules/lodash/_MapCache.js +32 -0
  1542. data/node_modules/lodash/_Promise.js +7 -0
  1543. data/node_modules/lodash/_Set.js +7 -0
  1544. data/node_modules/lodash/_SetCache.js +27 -0
  1545. data/node_modules/lodash/_Stack.js +27 -0
  1546. data/node_modules/lodash/_Symbol.js +6 -0
  1547. data/node_modules/lodash/_Uint8Array.js +6 -0
  1548. data/node_modules/lodash/_WeakMap.js +7 -0
  1549. data/node_modules/lodash/_apply.js +21 -0
  1550. data/node_modules/lodash/_arrayAggregator.js +22 -0
  1551. data/node_modules/lodash/_arrayEach.js +22 -0
  1552. data/node_modules/lodash/_arrayEachRight.js +21 -0
  1553. data/node_modules/lodash/_arrayEvery.js +23 -0
  1554. data/node_modules/lodash/_arrayFilter.js +25 -0
  1555. data/node_modules/lodash/_arrayIncludes.js +17 -0
  1556. data/node_modules/lodash/_arrayIncludesWith.js +22 -0
  1557. data/node_modules/lodash/_arrayLikeKeys.js +49 -0
  1558. data/node_modules/lodash/_arrayMap.js +21 -0
  1559. data/node_modules/lodash/_arrayPush.js +20 -0
  1560. data/node_modules/lodash/_arrayReduce.js +26 -0
  1561. data/node_modules/lodash/_arrayReduceRight.js +24 -0
  1562. data/node_modules/lodash/_arraySample.js +15 -0
  1563. data/node_modules/lodash/_arraySampleSize.js +17 -0
  1564. data/node_modules/lodash/_arrayShuffle.js +15 -0
  1565. data/node_modules/lodash/_arraySome.js +23 -0
  1566. data/node_modules/lodash/_asciiSize.js +12 -0
  1567. data/node_modules/lodash/_asciiToArray.js +12 -0
  1568. data/node_modules/lodash/_asciiWords.js +15 -0
  1569. data/node_modules/lodash/_assignMergeValue.js +20 -0
  1570. data/node_modules/lodash/_assignValue.js +28 -0
  1571. data/node_modules/lodash/_assocIndexOf.js +21 -0
  1572. data/node_modules/lodash/_baseAggregator.js +21 -0
  1573. data/node_modules/lodash/_baseAssign.js +17 -0
  1574. data/node_modules/lodash/_baseAssignIn.js +17 -0
  1575. data/node_modules/lodash/_baseAssignValue.js +25 -0
  1576. data/node_modules/lodash/_baseAt.js +23 -0
  1577. data/node_modules/lodash/_baseClamp.js +22 -0
  1578. data/node_modules/lodash/_baseClone.js +166 -0
  1579. data/node_modules/lodash/_baseConforms.js +18 -0
  1580. data/node_modules/lodash/_baseConformsTo.js +27 -0
  1581. data/node_modules/lodash/_baseCreate.js +30 -0
  1582. data/node_modules/lodash/_baseDelay.js +21 -0
  1583. data/node_modules/lodash/_baseDifference.js +67 -0
  1584. data/node_modules/lodash/_baseEach.js +14 -0
  1585. data/node_modules/lodash/_baseEachRight.js +14 -0
  1586. data/node_modules/lodash/_baseEvery.js +21 -0
  1587. data/node_modules/lodash/_baseExtremum.js +32 -0
  1588. data/node_modules/lodash/_baseFill.js +32 -0
  1589. data/node_modules/lodash/_baseFilter.js +21 -0
  1590. data/node_modules/lodash/_baseFindIndex.js +24 -0
  1591. data/node_modules/lodash/_baseFindKey.js +23 -0
  1592. data/node_modules/lodash/_baseFlatten.js +38 -0
  1593. data/node_modules/lodash/_baseFor.js +16 -0
  1594. data/node_modules/lodash/_baseForOwn.js +16 -0
  1595. data/node_modules/lodash/_baseForOwnRight.js +16 -0
  1596. data/node_modules/lodash/_baseForRight.js +15 -0
  1597. data/node_modules/lodash/_baseFunctions.js +19 -0
  1598. data/node_modules/lodash/_baseGet.js +24 -0
  1599. data/node_modules/lodash/_baseGetAllKeys.js +20 -0
  1600. data/node_modules/lodash/_baseGetTag.js +28 -0
  1601. data/node_modules/lodash/_baseGt.js +14 -0
  1602. data/node_modules/lodash/_baseHas.js +19 -0
  1603. data/node_modules/lodash/_baseHasIn.js +13 -0
  1604. data/node_modules/lodash/_baseInRange.js +18 -0
  1605. data/node_modules/lodash/_baseIndexOf.js +20 -0
  1606. data/node_modules/lodash/_baseIndexOfWith.js +23 -0
  1607. data/node_modules/lodash/_baseIntersection.js +74 -0
  1608. data/node_modules/lodash/_baseInverter.js +21 -0
  1609. data/node_modules/lodash/_baseInvoke.js +24 -0
  1610. data/node_modules/lodash/_baseIsArguments.js +18 -0
  1611. data/node_modules/lodash/_baseIsArrayBuffer.js +17 -0
  1612. data/node_modules/lodash/_baseIsDate.js +18 -0
  1613. data/node_modules/lodash/_baseIsEqual.js +28 -0
  1614. data/node_modules/lodash/_baseIsEqualDeep.js +83 -0
  1615. data/node_modules/lodash/_baseIsMap.js +18 -0
  1616. data/node_modules/lodash/_baseIsMatch.js +62 -0
  1617. data/node_modules/lodash/_baseIsNaN.js +12 -0
  1618. data/node_modules/lodash/_baseIsNative.js +47 -0
  1619. data/node_modules/lodash/_baseIsRegExp.js +18 -0
  1620. data/node_modules/lodash/_baseIsSet.js +18 -0
  1621. data/node_modules/lodash/_baseIsTypedArray.js +60 -0
  1622. data/node_modules/lodash/_baseIteratee.js +31 -0
  1623. data/node_modules/lodash/_baseKeys.js +30 -0
  1624. data/node_modules/lodash/_baseKeysIn.js +33 -0
  1625. data/node_modules/lodash/_baseLodash.js +10 -0
  1626. data/node_modules/lodash/_baseLt.js +14 -0
  1627. data/node_modules/lodash/_baseMap.js +22 -0
  1628. data/node_modules/lodash/_baseMatches.js +22 -0
  1629. data/node_modules/lodash/_baseMatchesProperty.js +33 -0
  1630. data/node_modules/lodash/_baseMean.js +20 -0
  1631. data/node_modules/lodash/_baseMerge.js +42 -0
  1632. data/node_modules/lodash/_baseMergeDeep.js +94 -0
  1633. data/node_modules/lodash/_baseNth.js +20 -0
  1634. data/node_modules/lodash/_baseOrderBy.js +49 -0
  1635. data/node_modules/lodash/_basePick.js +19 -0
  1636. data/node_modules/lodash/_basePickBy.js +30 -0
  1637. data/node_modules/lodash/_baseProperty.js +14 -0
  1638. data/node_modules/lodash/_basePropertyDeep.js +16 -0
  1639. data/node_modules/lodash/_basePropertyOf.js +14 -0
  1640. data/node_modules/lodash/_basePullAll.js +51 -0
  1641. data/node_modules/lodash/_basePullAt.js +37 -0
  1642. data/node_modules/lodash/_baseRandom.js +18 -0
  1643. data/node_modules/lodash/_baseRange.js +28 -0
  1644. data/node_modules/lodash/_baseReduce.js +23 -0
  1645. data/node_modules/lodash/_baseRepeat.js +35 -0
  1646. data/node_modules/lodash/_baseRest.js +17 -0
  1647. data/node_modules/lodash/_baseSample.js +15 -0
  1648. data/node_modules/lodash/_baseSampleSize.js +18 -0
  1649. data/node_modules/lodash/_baseSet.js +51 -0
  1650. data/node_modules/lodash/_baseSetData.js +17 -0
  1651. data/node_modules/lodash/_baseSetToString.js +22 -0
  1652. data/node_modules/lodash/_baseShuffle.js +15 -0
  1653. data/node_modules/lodash/_baseSlice.js +31 -0
  1654. data/node_modules/lodash/_baseSome.js +22 -0
  1655. data/node_modules/lodash/_baseSortBy.js +21 -0
  1656. data/node_modules/lodash/_baseSortedIndex.js +42 -0
  1657. data/node_modules/lodash/_baseSortedIndexBy.js +67 -0
  1658. data/node_modules/lodash/_baseSortedUniq.js +30 -0
  1659. data/node_modules/lodash/_baseSum.js +24 -0
  1660. data/node_modules/lodash/_baseTimes.js +20 -0
  1661. data/node_modules/lodash/_baseToNumber.js +24 -0
  1662. data/node_modules/lodash/_baseToPairs.js +18 -0
  1663. data/node_modules/lodash/_baseToString.js +37 -0
  1664. data/node_modules/lodash/_baseTrim.js +19 -0
  1665. data/node_modules/lodash/_baseUnary.js +14 -0
  1666. data/node_modules/lodash/_baseUniq.js +72 -0
  1667. data/node_modules/lodash/_baseUnset.js +20 -0
  1668. data/node_modules/lodash/_baseUpdate.js +18 -0
  1669. data/node_modules/lodash/_baseValues.js +19 -0
  1670. data/node_modules/lodash/_baseWhile.js +26 -0
  1671. data/node_modules/lodash/_baseWrapperValue.js +25 -0
  1672. data/node_modules/lodash/_baseXor.js +36 -0
  1673. data/node_modules/lodash/_baseZipObject.js +23 -0
  1674. data/node_modules/lodash/_cacheHas.js +13 -0
  1675. data/node_modules/lodash/_castArrayLikeObject.js +14 -0
  1676. data/node_modules/lodash/_castFunction.js +14 -0
  1677. data/node_modules/lodash/_castPath.js +21 -0
  1678. data/node_modules/lodash/_castRest.js +14 -0
  1679. data/node_modules/lodash/_castSlice.js +18 -0
  1680. data/node_modules/lodash/_charsEndIndex.js +19 -0
  1681. data/node_modules/lodash/_charsStartIndex.js +20 -0
  1682. data/node_modules/lodash/_cloneArrayBuffer.js +16 -0
  1683. data/node_modules/lodash/_cloneBuffer.js +35 -0
  1684. data/node_modules/lodash/_cloneDataView.js +16 -0
  1685. data/node_modules/lodash/_cloneRegExp.js +17 -0
  1686. data/node_modules/lodash/_cloneSymbol.js +18 -0
  1687. data/node_modules/lodash/_cloneTypedArray.js +16 -0
  1688. data/node_modules/lodash/_compareAscending.js +41 -0
  1689. data/node_modules/lodash/_compareMultiple.js +44 -0
  1690. data/node_modules/lodash/_composeArgs.js +39 -0
  1691. data/node_modules/lodash/_composeArgsRight.js +41 -0
  1692. data/node_modules/lodash/_copyArray.js +20 -0
  1693. data/node_modules/lodash/_copyObject.js +40 -0
  1694. data/node_modules/lodash/_copySymbols.js +16 -0
  1695. data/node_modules/lodash/_copySymbolsIn.js +16 -0
  1696. data/node_modules/lodash/_coreJsData.js +6 -0
  1697. data/node_modules/lodash/_countHolders.js +21 -0
  1698. data/node_modules/lodash/_createAggregator.js +23 -0
  1699. data/node_modules/lodash/_createAssigner.js +37 -0
  1700. data/node_modules/lodash/_createBaseEach.js +32 -0
  1701. data/node_modules/lodash/_createBaseFor.js +25 -0
  1702. data/node_modules/lodash/_createBind.js +28 -0
  1703. data/node_modules/lodash/_createCaseFirst.js +33 -0
  1704. data/node_modules/lodash/_createCompounder.js +24 -0
  1705. data/node_modules/lodash/_createCtor.js +37 -0
  1706. data/node_modules/lodash/_createCurry.js +46 -0
  1707. data/node_modules/lodash/_createFind.js +25 -0
  1708. data/node_modules/lodash/_createFlow.js +78 -0
  1709. data/node_modules/lodash/_createHybrid.js +92 -0
  1710. data/node_modules/lodash/_createInverter.js +17 -0
  1711. data/node_modules/lodash/_createMathOperation.js +38 -0
  1712. data/node_modules/lodash/_createOver.js +27 -0
  1713. data/node_modules/lodash/_createPadding.js +33 -0
  1714. data/node_modules/lodash/_createPartial.js +43 -0
  1715. data/node_modules/lodash/_createRange.js +30 -0
  1716. data/node_modules/lodash/_createRecurry.js +56 -0
  1717. data/node_modules/lodash/_createRelationalOperation.js +20 -0
  1718. data/node_modules/lodash/_createRound.js +35 -0
  1719. data/node_modules/lodash/_createSet.js +19 -0
  1720. data/node_modules/lodash/_createToPairs.js +30 -0
  1721. data/node_modules/lodash/_createWrap.js +106 -0
  1722. data/node_modules/lodash/_customDefaultsAssignIn.js +29 -0
  1723. data/node_modules/lodash/_customDefaultsMerge.js +28 -0
  1724. data/node_modules/lodash/_customOmitClone.js +16 -0
  1725. data/node_modules/lodash/_deburrLetter.js +71 -0
  1726. data/node_modules/lodash/_defineProperty.js +11 -0
  1727. data/node_modules/lodash/_equalArrays.js +84 -0
  1728. data/node_modules/lodash/_equalByTag.js +112 -0
  1729. data/node_modules/lodash/_equalObjects.js +90 -0
  1730. data/node_modules/lodash/_escapeHtmlChar.js +21 -0
  1731. data/node_modules/lodash/_escapeStringChar.js +22 -0
  1732. data/node_modules/lodash/_flatRest.js +16 -0
  1733. data/node_modules/lodash/_freeGlobal.js +4 -0
  1734. data/node_modules/lodash/_getAllKeys.js +16 -0
  1735. data/node_modules/lodash/_getAllKeysIn.js +17 -0
  1736. data/node_modules/lodash/_getData.js +15 -0
  1737. data/node_modules/lodash/_getFuncName.js +31 -0
  1738. data/node_modules/lodash/_getHolder.js +13 -0
  1739. data/node_modules/lodash/_getMapData.js +18 -0
  1740. data/node_modules/lodash/_getMatchData.js +24 -0
  1741. data/node_modules/lodash/_getNative.js +17 -0
  1742. data/node_modules/lodash/_getPrototype.js +6 -0
  1743. data/node_modules/lodash/_getRawTag.js +46 -0
  1744. data/node_modules/lodash/_getSymbols.js +30 -0
  1745. data/node_modules/lodash/_getSymbolsIn.js +25 -0
  1746. data/node_modules/lodash/_getTag.js +58 -0
  1747. data/node_modules/lodash/_getValue.js +13 -0
  1748. data/node_modules/lodash/_getView.js +33 -0
  1749. data/node_modules/lodash/_getWrapDetails.js +17 -0
  1750. data/node_modules/lodash/_hasPath.js +39 -0
  1751. data/node_modules/lodash/_hasUnicode.js +26 -0
  1752. data/node_modules/lodash/_hasUnicodeWord.js +15 -0
  1753. data/node_modules/lodash/_hashClear.js +15 -0
  1754. data/node_modules/lodash/_hashDelete.js +17 -0
  1755. data/node_modules/lodash/_hashGet.js +30 -0
  1756. data/node_modules/lodash/_hashHas.js +23 -0
  1757. data/node_modules/lodash/_hashSet.js +23 -0
  1758. data/node_modules/lodash/_initCloneArray.js +26 -0
  1759. data/node_modules/lodash/_initCloneByTag.js +77 -0
  1760. data/node_modules/lodash/_initCloneObject.js +18 -0
  1761. data/node_modules/lodash/_insertWrapDetails.js +23 -0
  1762. data/node_modules/lodash/_isFlattenable.js +20 -0
  1763. data/node_modules/lodash/_isIndex.js +25 -0
  1764. data/node_modules/lodash/_isIterateeCall.js +30 -0
  1765. data/node_modules/lodash/_isKey.js +29 -0
  1766. data/node_modules/lodash/_isKeyable.js +15 -0
  1767. data/node_modules/lodash/_isLaziable.js +28 -0
  1768. data/node_modules/lodash/_isMaskable.js +14 -0
  1769. data/node_modules/lodash/_isMasked.js +20 -0
  1770. data/node_modules/lodash/_isPrototype.js +18 -0
  1771. data/node_modules/lodash/_isStrictComparable.js +15 -0
  1772. data/node_modules/lodash/_iteratorToArray.js +18 -0
  1773. data/node_modules/lodash/_lazyClone.js +23 -0
  1774. data/node_modules/lodash/_lazyReverse.js +23 -0
  1775. data/node_modules/lodash/_lazyValue.js +69 -0
  1776. data/node_modules/lodash/_listCacheClear.js +13 -0
  1777. data/node_modules/lodash/_listCacheDelete.js +35 -0
  1778. data/node_modules/lodash/_listCacheGet.js +19 -0
  1779. data/node_modules/lodash/_listCacheHas.js +16 -0
  1780. data/node_modules/lodash/_listCacheSet.js +26 -0
  1781. data/node_modules/lodash/_mapCacheClear.js +21 -0
  1782. data/node_modules/lodash/_mapCacheDelete.js +18 -0
  1783. data/node_modules/lodash/_mapCacheGet.js +16 -0
  1784. data/node_modules/lodash/_mapCacheHas.js +16 -0
  1785. data/node_modules/lodash/_mapCacheSet.js +22 -0
  1786. data/node_modules/lodash/_mapToArray.js +18 -0
  1787. data/node_modules/lodash/_matchesStrictComparable.js +20 -0
  1788. data/node_modules/lodash/_memoizeCapped.js +26 -0
  1789. data/node_modules/lodash/_mergeData.js +90 -0
  1790. data/node_modules/lodash/_metaMap.js +6 -0
  1791. data/node_modules/lodash/_nativeCreate.js +6 -0
  1792. data/node_modules/lodash/_nativeKeys.js +6 -0
  1793. data/node_modules/lodash/_nativeKeysIn.js +20 -0
  1794. data/node_modules/lodash/_nodeUtil.js +30 -0
  1795. data/node_modules/lodash/_objectToString.js +22 -0
  1796. data/node_modules/lodash/_overArg.js +15 -0
  1797. data/node_modules/lodash/_overRest.js +36 -0
  1798. data/node_modules/lodash/_parent.js +16 -0
  1799. data/node_modules/lodash/_reEscape.js +4 -0
  1800. data/node_modules/lodash/_reEvaluate.js +4 -0
  1801. data/node_modules/lodash/_reInterpolate.js +4 -0
  1802. data/node_modules/lodash/_realNames.js +4 -0
  1803. data/node_modules/lodash/_reorder.js +29 -0
  1804. data/node_modules/lodash/_replaceHolders.js +29 -0
  1805. data/node_modules/lodash/_root.js +9 -0
  1806. data/node_modules/lodash/_safeGet.js +21 -0
  1807. data/node_modules/lodash/_setCacheAdd.js +19 -0
  1808. data/node_modules/lodash/_setCacheHas.js +14 -0
  1809. data/node_modules/lodash/_setData.js +20 -0
  1810. data/node_modules/lodash/_setToArray.js +18 -0
  1811. data/node_modules/lodash/_setToPairs.js +18 -0
  1812. data/node_modules/lodash/_setToString.js +14 -0
  1813. data/node_modules/lodash/_setWrapToString.js +21 -0
  1814. data/node_modules/lodash/_shortOut.js +37 -0
  1815. data/node_modules/lodash/_shuffleSelf.js +28 -0
  1816. data/node_modules/lodash/_stackClear.js +15 -0
  1817. data/node_modules/lodash/_stackDelete.js +18 -0
  1818. data/node_modules/lodash/_stackGet.js +14 -0
  1819. data/node_modules/lodash/_stackHas.js +14 -0
  1820. data/node_modules/lodash/_stackSet.js +34 -0
  1821. data/node_modules/lodash/_strictIndexOf.js +23 -0
  1822. data/node_modules/lodash/_strictLastIndexOf.js +21 -0
  1823. data/node_modules/lodash/_stringSize.js +18 -0
  1824. data/node_modules/lodash/_stringToArray.js +18 -0
  1825. data/node_modules/lodash/_stringToPath.js +27 -0
  1826. data/node_modules/lodash/_toKey.js +21 -0
  1827. data/node_modules/lodash/_toSource.js +26 -0
  1828. data/node_modules/lodash/_trimmedEndIndex.js +19 -0
  1829. data/node_modules/lodash/_unescapeHtmlChar.js +21 -0
  1830. data/node_modules/lodash/_unicodeSize.js +44 -0
  1831. data/node_modules/lodash/_unicodeToArray.js +40 -0
  1832. data/node_modules/lodash/_unicodeWords.js +69 -0
  1833. data/node_modules/lodash/_updateWrapDetails.js +46 -0
  1834. data/node_modules/lodash/_wrapperClone.js +23 -0
  1835. data/node_modules/lodash/add.js +22 -0
  1836. data/node_modules/lodash/after.js +42 -0
  1837. data/node_modules/lodash/array.js +67 -0
  1838. data/node_modules/lodash/ary.js +29 -0
  1839. data/node_modules/lodash/assign.js +58 -0
  1840. data/node_modules/lodash/assignIn.js +40 -0
  1841. data/node_modules/lodash/assignInWith.js +38 -0
  1842. data/node_modules/lodash/assignWith.js +37 -0
  1843. data/node_modules/lodash/at.js +23 -0
  1844. data/node_modules/lodash/attempt.js +35 -0
  1845. data/node_modules/lodash/before.js +40 -0
  1846. data/node_modules/lodash/bind.js +57 -0
  1847. data/node_modules/lodash/bindAll.js +41 -0
  1848. data/node_modules/lodash/bindKey.js +68 -0
  1849. data/node_modules/lodash/camelCase.js +29 -0
  1850. data/node_modules/lodash/capitalize.js +23 -0
  1851. data/node_modules/lodash/castArray.js +44 -0
  1852. data/node_modules/lodash/ceil.js +26 -0
  1853. data/node_modules/lodash/chain.js +38 -0
  1854. data/node_modules/lodash/chunk.js +50 -0
  1855. data/node_modules/lodash/clamp.js +39 -0
  1856. data/node_modules/lodash/clone.js +36 -0
  1857. data/node_modules/lodash/cloneDeep.js +29 -0
  1858. data/node_modules/lodash/cloneDeepWith.js +40 -0
  1859. data/node_modules/lodash/cloneWith.js +42 -0
  1860. data/node_modules/lodash/collection.js +30 -0
  1861. data/node_modules/lodash/commit.js +33 -0
  1862. data/node_modules/lodash/compact.js +31 -0
  1863. data/node_modules/lodash/concat.js +43 -0
  1864. data/node_modules/lodash/cond.js +60 -0
  1865. data/node_modules/lodash/conforms.js +35 -0
  1866. data/node_modules/lodash/conformsTo.js +32 -0
  1867. data/node_modules/lodash/constant.js +26 -0
  1868. data/node_modules/lodash/core.js +3877 -0
  1869. data/node_modules/lodash/core.min.js +29 -0
  1870. data/node_modules/lodash/countBy.js +40 -0
  1871. data/node_modules/lodash/create.js +43 -0
  1872. data/node_modules/lodash/curry.js +57 -0
  1873. data/node_modules/lodash/curryRight.js +54 -0
  1874. data/node_modules/lodash/date.js +3 -0
  1875. data/node_modules/lodash/debounce.js +191 -0
  1876. data/node_modules/lodash/deburr.js +45 -0
  1877. data/node_modules/lodash/defaultTo.js +25 -0
  1878. data/node_modules/lodash/defaults.js +64 -0
  1879. data/node_modules/lodash/defaultsDeep.js +30 -0
  1880. data/node_modules/lodash/defer.js +26 -0
  1881. data/node_modules/lodash/delay.js +28 -0
  1882. data/node_modules/lodash/difference.js +33 -0
  1883. data/node_modules/lodash/differenceBy.js +44 -0
  1884. data/node_modules/lodash/differenceWith.js +40 -0
  1885. data/node_modules/lodash/divide.js +22 -0
  1886. data/node_modules/lodash/drop.js +38 -0
  1887. data/node_modules/lodash/dropRight.js +39 -0
  1888. data/node_modules/lodash/dropRightWhile.js +45 -0
  1889. data/node_modules/lodash/dropWhile.js +45 -0
  1890. data/node_modules/lodash/each.js +1 -0
  1891. data/node_modules/lodash/eachRight.js +1 -0
  1892. data/node_modules/lodash/endsWith.js +43 -0
  1893. data/node_modules/lodash/entries.js +1 -0
  1894. data/node_modules/lodash/entriesIn.js +1 -0
  1895. data/node_modules/lodash/eq.js +37 -0
  1896. data/node_modules/lodash/escape.js +43 -0
  1897. data/node_modules/lodash/escapeRegExp.js +32 -0
  1898. data/node_modules/lodash/every.js +56 -0
  1899. data/node_modules/lodash/extend.js +1 -0
  1900. data/node_modules/lodash/extendWith.js +1 -0
  1901. data/node_modules/lodash/fill.js +45 -0
  1902. data/node_modules/lodash/filter.js +52 -0
  1903. data/node_modules/lodash/find.js +42 -0
  1904. data/node_modules/lodash/findIndex.js +55 -0
  1905. data/node_modules/lodash/findKey.js +44 -0
  1906. data/node_modules/lodash/findLast.js +25 -0
  1907. data/node_modules/lodash/findLastIndex.js +59 -0
  1908. data/node_modules/lodash/findLastKey.js +44 -0
  1909. data/node_modules/lodash/first.js +1 -0
  1910. data/node_modules/lodash/flake.lock +40 -0
  1911. data/node_modules/lodash/flake.nix +20 -0
  1912. data/node_modules/lodash/flatMap.js +29 -0
  1913. data/node_modules/lodash/flatMapDeep.js +31 -0
  1914. data/node_modules/lodash/flatMapDepth.js +31 -0
  1915. data/node_modules/lodash/flatten.js +22 -0
  1916. data/node_modules/lodash/flattenDeep.js +25 -0
  1917. data/node_modules/lodash/flattenDepth.js +33 -0
  1918. data/node_modules/lodash/flip.js +28 -0
  1919. data/node_modules/lodash/floor.js +26 -0
  1920. data/node_modules/lodash/flow.js +27 -0
  1921. data/node_modules/lodash/flowRight.js +26 -0
  1922. data/node_modules/lodash/forEach.js +41 -0
  1923. data/node_modules/lodash/forEachRight.js +31 -0
  1924. data/node_modules/lodash/forIn.js +39 -0
  1925. data/node_modules/lodash/forInRight.js +37 -0
  1926. data/node_modules/lodash/forOwn.js +36 -0
  1927. data/node_modules/lodash/forOwnRight.js +34 -0
  1928. data/node_modules/lodash/fp/F.js +1 -0
  1929. data/node_modules/lodash/fp/T.js +1 -0
  1930. data/node_modules/lodash/fp/__.js +1 -0
  1931. data/node_modules/lodash/fp/_baseConvert.js +569 -0
  1932. data/node_modules/lodash/fp/_convertBrowser.js +18 -0
  1933. data/node_modules/lodash/fp/_falseOptions.js +7 -0
  1934. data/node_modules/lodash/fp/_mapping.js +358 -0
  1935. data/node_modules/lodash/fp/_util.js +16 -0
  1936. data/node_modules/lodash/fp/add.js +5 -0
  1937. data/node_modules/lodash/fp/after.js +5 -0
  1938. data/node_modules/lodash/fp/all.js +1 -0
  1939. data/node_modules/lodash/fp/allPass.js +1 -0
  1940. data/node_modules/lodash/fp/always.js +1 -0
  1941. data/node_modules/lodash/fp/any.js +1 -0
  1942. data/node_modules/lodash/fp/anyPass.js +1 -0
  1943. data/node_modules/lodash/fp/apply.js +1 -0
  1944. data/node_modules/lodash/fp/array.js +2 -0
  1945. data/node_modules/lodash/fp/ary.js +5 -0
  1946. data/node_modules/lodash/fp/assign.js +5 -0
  1947. data/node_modules/lodash/fp/assignAll.js +5 -0
  1948. data/node_modules/lodash/fp/assignAllWith.js +5 -0
  1949. data/node_modules/lodash/fp/assignIn.js +5 -0
  1950. data/node_modules/lodash/fp/assignInAll.js +5 -0
  1951. data/node_modules/lodash/fp/assignInAllWith.js +5 -0
  1952. data/node_modules/lodash/fp/assignInWith.js +5 -0
  1953. data/node_modules/lodash/fp/assignWith.js +5 -0
  1954. data/node_modules/lodash/fp/assoc.js +1 -0
  1955. data/node_modules/lodash/fp/assocPath.js +1 -0
  1956. data/node_modules/lodash/fp/at.js +5 -0
  1957. data/node_modules/lodash/fp/attempt.js +5 -0
  1958. data/node_modules/lodash/fp/before.js +5 -0
  1959. data/node_modules/lodash/fp/bind.js +5 -0
  1960. data/node_modules/lodash/fp/bindAll.js +5 -0
  1961. data/node_modules/lodash/fp/bindKey.js +5 -0
  1962. data/node_modules/lodash/fp/camelCase.js +5 -0
  1963. data/node_modules/lodash/fp/capitalize.js +5 -0
  1964. data/node_modules/lodash/fp/castArray.js +5 -0
  1965. data/node_modules/lodash/fp/ceil.js +5 -0
  1966. data/node_modules/lodash/fp/chain.js +5 -0
  1967. data/node_modules/lodash/fp/chunk.js +5 -0
  1968. data/node_modules/lodash/fp/clamp.js +5 -0
  1969. data/node_modules/lodash/fp/clone.js +5 -0
  1970. data/node_modules/lodash/fp/cloneDeep.js +5 -0
  1971. data/node_modules/lodash/fp/cloneDeepWith.js +5 -0
  1972. data/node_modules/lodash/fp/cloneWith.js +5 -0
  1973. data/node_modules/lodash/fp/collection.js +2 -0
  1974. data/node_modules/lodash/fp/commit.js +5 -0
  1975. data/node_modules/lodash/fp/compact.js +5 -0
  1976. data/node_modules/lodash/fp/complement.js +1 -0
  1977. data/node_modules/lodash/fp/compose.js +1 -0
  1978. data/node_modules/lodash/fp/concat.js +5 -0
  1979. data/node_modules/lodash/fp/cond.js +5 -0
  1980. data/node_modules/lodash/fp/conforms.js +1 -0
  1981. data/node_modules/lodash/fp/conformsTo.js +5 -0
  1982. data/node_modules/lodash/fp/constant.js +5 -0
  1983. data/node_modules/lodash/fp/contains.js +1 -0
  1984. data/node_modules/lodash/fp/convert.js +18 -0
  1985. data/node_modules/lodash/fp/countBy.js +5 -0
  1986. data/node_modules/lodash/fp/create.js +5 -0
  1987. data/node_modules/lodash/fp/curry.js +5 -0
  1988. data/node_modules/lodash/fp/curryN.js +5 -0
  1989. data/node_modules/lodash/fp/curryRight.js +5 -0
  1990. data/node_modules/lodash/fp/curryRightN.js +5 -0
  1991. data/node_modules/lodash/fp/date.js +2 -0
  1992. data/node_modules/lodash/fp/debounce.js +5 -0
  1993. data/node_modules/lodash/fp/deburr.js +5 -0
  1994. data/node_modules/lodash/fp/defaultTo.js +5 -0
  1995. data/node_modules/lodash/fp/defaults.js +5 -0
  1996. data/node_modules/lodash/fp/defaultsAll.js +5 -0
  1997. data/node_modules/lodash/fp/defaultsDeep.js +5 -0
  1998. data/node_modules/lodash/fp/defaultsDeepAll.js +5 -0
  1999. data/node_modules/lodash/fp/defer.js +5 -0
  2000. data/node_modules/lodash/fp/delay.js +5 -0
  2001. data/node_modules/lodash/fp/difference.js +5 -0
  2002. data/node_modules/lodash/fp/differenceBy.js +5 -0
  2003. data/node_modules/lodash/fp/differenceWith.js +5 -0
  2004. data/node_modules/lodash/fp/dissoc.js +1 -0
  2005. data/node_modules/lodash/fp/dissocPath.js +1 -0
  2006. data/node_modules/lodash/fp/divide.js +5 -0
  2007. data/node_modules/lodash/fp/drop.js +5 -0
  2008. data/node_modules/lodash/fp/dropLast.js +1 -0
  2009. data/node_modules/lodash/fp/dropLastWhile.js +1 -0
  2010. data/node_modules/lodash/fp/dropRight.js +5 -0
  2011. data/node_modules/lodash/fp/dropRightWhile.js +5 -0
  2012. data/node_modules/lodash/fp/dropWhile.js +5 -0
  2013. data/node_modules/lodash/fp/each.js +1 -0
  2014. data/node_modules/lodash/fp/eachRight.js +1 -0
  2015. data/node_modules/lodash/fp/endsWith.js +5 -0
  2016. data/node_modules/lodash/fp/entries.js +1 -0
  2017. data/node_modules/lodash/fp/entriesIn.js +1 -0
  2018. data/node_modules/lodash/fp/eq.js +5 -0
  2019. data/node_modules/lodash/fp/equals.js +1 -0
  2020. data/node_modules/lodash/fp/escape.js +5 -0
  2021. data/node_modules/lodash/fp/escapeRegExp.js +5 -0
  2022. data/node_modules/lodash/fp/every.js +5 -0
  2023. data/node_modules/lodash/fp/extend.js +1 -0
  2024. data/node_modules/lodash/fp/extendAll.js +1 -0
  2025. data/node_modules/lodash/fp/extendAllWith.js +1 -0
  2026. data/node_modules/lodash/fp/extendWith.js +1 -0
  2027. data/node_modules/lodash/fp/fill.js +5 -0
  2028. data/node_modules/lodash/fp/filter.js +5 -0
  2029. data/node_modules/lodash/fp/find.js +5 -0
  2030. data/node_modules/lodash/fp/findFrom.js +5 -0
  2031. data/node_modules/lodash/fp/findIndex.js +5 -0
  2032. data/node_modules/lodash/fp/findIndexFrom.js +5 -0
  2033. data/node_modules/lodash/fp/findKey.js +5 -0
  2034. data/node_modules/lodash/fp/findLast.js +5 -0
  2035. data/node_modules/lodash/fp/findLastFrom.js +5 -0
  2036. data/node_modules/lodash/fp/findLastIndex.js +5 -0
  2037. data/node_modules/lodash/fp/findLastIndexFrom.js +5 -0
  2038. data/node_modules/lodash/fp/findLastKey.js +5 -0
  2039. data/node_modules/lodash/fp/first.js +1 -0
  2040. data/node_modules/lodash/fp/flatMap.js +5 -0
  2041. data/node_modules/lodash/fp/flatMapDeep.js +5 -0
  2042. data/node_modules/lodash/fp/flatMapDepth.js +5 -0
  2043. data/node_modules/lodash/fp/flatten.js +5 -0
  2044. data/node_modules/lodash/fp/flattenDeep.js +5 -0
  2045. data/node_modules/lodash/fp/flattenDepth.js +5 -0
  2046. data/node_modules/lodash/fp/flip.js +5 -0
  2047. data/node_modules/lodash/fp/floor.js +5 -0
  2048. data/node_modules/lodash/fp/flow.js +5 -0
  2049. data/node_modules/lodash/fp/flowRight.js +5 -0
  2050. data/node_modules/lodash/fp/forEach.js +5 -0
  2051. data/node_modules/lodash/fp/forEachRight.js +5 -0
  2052. data/node_modules/lodash/fp/forIn.js +5 -0
  2053. data/node_modules/lodash/fp/forInRight.js +5 -0
  2054. data/node_modules/lodash/fp/forOwn.js +5 -0
  2055. data/node_modules/lodash/fp/forOwnRight.js +5 -0
  2056. data/node_modules/lodash/fp/fromPairs.js +5 -0
  2057. data/node_modules/lodash/fp/function.js +2 -0
  2058. data/node_modules/lodash/fp/functions.js +5 -0
  2059. data/node_modules/lodash/fp/functionsIn.js +5 -0
  2060. data/node_modules/lodash/fp/get.js +5 -0
  2061. data/node_modules/lodash/fp/getOr.js +5 -0
  2062. data/node_modules/lodash/fp/groupBy.js +5 -0
  2063. data/node_modules/lodash/fp/gt.js +5 -0
  2064. data/node_modules/lodash/fp/gte.js +5 -0
  2065. data/node_modules/lodash/fp/has.js +5 -0
  2066. data/node_modules/lodash/fp/hasIn.js +5 -0
  2067. data/node_modules/lodash/fp/head.js +5 -0
  2068. data/node_modules/lodash/fp/identical.js +1 -0
  2069. data/node_modules/lodash/fp/identity.js +5 -0
  2070. data/node_modules/lodash/fp/inRange.js +5 -0
  2071. data/node_modules/lodash/fp/includes.js +5 -0
  2072. data/node_modules/lodash/fp/includesFrom.js +5 -0
  2073. data/node_modules/lodash/fp/indexBy.js +1 -0
  2074. data/node_modules/lodash/fp/indexOf.js +5 -0
  2075. data/node_modules/lodash/fp/indexOfFrom.js +5 -0
  2076. data/node_modules/lodash/fp/init.js +1 -0
  2077. data/node_modules/lodash/fp/initial.js +5 -0
  2078. data/node_modules/lodash/fp/intersection.js +5 -0
  2079. data/node_modules/lodash/fp/intersectionBy.js +5 -0
  2080. data/node_modules/lodash/fp/intersectionWith.js +5 -0
  2081. data/node_modules/lodash/fp/invert.js +5 -0
  2082. data/node_modules/lodash/fp/invertBy.js +5 -0
  2083. data/node_modules/lodash/fp/invertObj.js +1 -0
  2084. data/node_modules/lodash/fp/invoke.js +5 -0
  2085. data/node_modules/lodash/fp/invokeArgs.js +5 -0
  2086. data/node_modules/lodash/fp/invokeArgsMap.js +5 -0
  2087. data/node_modules/lodash/fp/invokeMap.js +5 -0
  2088. data/node_modules/lodash/fp/isArguments.js +5 -0
  2089. data/node_modules/lodash/fp/isArray.js +5 -0
  2090. data/node_modules/lodash/fp/isArrayBuffer.js +5 -0
  2091. data/node_modules/lodash/fp/isArrayLike.js +5 -0
  2092. data/node_modules/lodash/fp/isArrayLikeObject.js +5 -0
  2093. data/node_modules/lodash/fp/isBoolean.js +5 -0
  2094. data/node_modules/lodash/fp/isBuffer.js +5 -0
  2095. data/node_modules/lodash/fp/isDate.js +5 -0
  2096. data/node_modules/lodash/fp/isElement.js +5 -0
  2097. data/node_modules/lodash/fp/isEmpty.js +5 -0
  2098. data/node_modules/lodash/fp/isEqual.js +5 -0
  2099. data/node_modules/lodash/fp/isEqualWith.js +5 -0
  2100. data/node_modules/lodash/fp/isError.js +5 -0
  2101. data/node_modules/lodash/fp/isFinite.js +5 -0
  2102. data/node_modules/lodash/fp/isFunction.js +5 -0
  2103. data/node_modules/lodash/fp/isInteger.js +5 -0
  2104. data/node_modules/lodash/fp/isLength.js +5 -0
  2105. data/node_modules/lodash/fp/isMap.js +5 -0
  2106. data/node_modules/lodash/fp/isMatch.js +5 -0
  2107. data/node_modules/lodash/fp/isMatchWith.js +5 -0
  2108. data/node_modules/lodash/fp/isNaN.js +5 -0
  2109. data/node_modules/lodash/fp/isNative.js +5 -0
  2110. data/node_modules/lodash/fp/isNil.js +5 -0
  2111. data/node_modules/lodash/fp/isNull.js +5 -0
  2112. data/node_modules/lodash/fp/isNumber.js +5 -0
  2113. data/node_modules/lodash/fp/isObject.js +5 -0
  2114. data/node_modules/lodash/fp/isObjectLike.js +5 -0
  2115. data/node_modules/lodash/fp/isPlainObject.js +5 -0
  2116. data/node_modules/lodash/fp/isRegExp.js +5 -0
  2117. data/node_modules/lodash/fp/isSafeInteger.js +5 -0
  2118. data/node_modules/lodash/fp/isSet.js +5 -0
  2119. data/node_modules/lodash/fp/isString.js +5 -0
  2120. data/node_modules/lodash/fp/isSymbol.js +5 -0
  2121. data/node_modules/lodash/fp/isTypedArray.js +5 -0
  2122. data/node_modules/lodash/fp/isUndefined.js +5 -0
  2123. data/node_modules/lodash/fp/isWeakMap.js +5 -0
  2124. data/node_modules/lodash/fp/isWeakSet.js +5 -0
  2125. data/node_modules/lodash/fp/iteratee.js +5 -0
  2126. data/node_modules/lodash/fp/join.js +5 -0
  2127. data/node_modules/lodash/fp/juxt.js +1 -0
  2128. data/node_modules/lodash/fp/kebabCase.js +5 -0
  2129. data/node_modules/lodash/fp/keyBy.js +5 -0
  2130. data/node_modules/lodash/fp/keys.js +5 -0
  2131. data/node_modules/lodash/fp/keysIn.js +5 -0
  2132. data/node_modules/lodash/fp/lang.js +2 -0
  2133. data/node_modules/lodash/fp/last.js +5 -0
  2134. data/node_modules/lodash/fp/lastIndexOf.js +5 -0
  2135. data/node_modules/lodash/fp/lastIndexOfFrom.js +5 -0
  2136. data/node_modules/lodash/fp/lowerCase.js +5 -0
  2137. data/node_modules/lodash/fp/lowerFirst.js +5 -0
  2138. data/node_modules/lodash/fp/lt.js +5 -0
  2139. data/node_modules/lodash/fp/lte.js +5 -0
  2140. data/node_modules/lodash/fp/map.js +5 -0
  2141. data/node_modules/lodash/fp/mapKeys.js +5 -0
  2142. data/node_modules/lodash/fp/mapValues.js +5 -0
  2143. data/node_modules/lodash/fp/matches.js +1 -0
  2144. data/node_modules/lodash/fp/matchesProperty.js +5 -0
  2145. data/node_modules/lodash/fp/math.js +2 -0
  2146. data/node_modules/lodash/fp/max.js +5 -0
  2147. data/node_modules/lodash/fp/maxBy.js +5 -0
  2148. data/node_modules/lodash/fp/mean.js +5 -0
  2149. data/node_modules/lodash/fp/meanBy.js +5 -0
  2150. data/node_modules/lodash/fp/memoize.js +5 -0
  2151. data/node_modules/lodash/fp/merge.js +5 -0
  2152. data/node_modules/lodash/fp/mergeAll.js +5 -0
  2153. data/node_modules/lodash/fp/mergeAllWith.js +5 -0
  2154. data/node_modules/lodash/fp/mergeWith.js +5 -0
  2155. data/node_modules/lodash/fp/method.js +5 -0
  2156. data/node_modules/lodash/fp/methodOf.js +5 -0
  2157. data/node_modules/lodash/fp/min.js +5 -0
  2158. data/node_modules/lodash/fp/minBy.js +5 -0
  2159. data/node_modules/lodash/fp/mixin.js +5 -0
  2160. data/node_modules/lodash/fp/multiply.js +5 -0
  2161. data/node_modules/lodash/fp/nAry.js +1 -0
  2162. data/node_modules/lodash/fp/negate.js +5 -0
  2163. data/node_modules/lodash/fp/next.js +5 -0
  2164. data/node_modules/lodash/fp/noop.js +5 -0
  2165. data/node_modules/lodash/fp/now.js +5 -0
  2166. data/node_modules/lodash/fp/nth.js +5 -0
  2167. data/node_modules/lodash/fp/nthArg.js +5 -0
  2168. data/node_modules/lodash/fp/number.js +2 -0
  2169. data/node_modules/lodash/fp/object.js +2 -0
  2170. data/node_modules/lodash/fp/omit.js +5 -0
  2171. data/node_modules/lodash/fp/omitAll.js +1 -0
  2172. data/node_modules/lodash/fp/omitBy.js +5 -0
  2173. data/node_modules/lodash/fp/once.js +5 -0
  2174. data/node_modules/lodash/fp/orderBy.js +5 -0
  2175. data/node_modules/lodash/fp/over.js +5 -0
  2176. data/node_modules/lodash/fp/overArgs.js +5 -0
  2177. data/node_modules/lodash/fp/overEvery.js +5 -0
  2178. data/node_modules/lodash/fp/overSome.js +5 -0
  2179. data/node_modules/lodash/fp/pad.js +5 -0
  2180. data/node_modules/lodash/fp/padChars.js +5 -0
  2181. data/node_modules/lodash/fp/padCharsEnd.js +5 -0
  2182. data/node_modules/lodash/fp/padCharsStart.js +5 -0
  2183. data/node_modules/lodash/fp/padEnd.js +5 -0
  2184. data/node_modules/lodash/fp/padStart.js +5 -0
  2185. data/node_modules/lodash/fp/parseInt.js +5 -0
  2186. data/node_modules/lodash/fp/partial.js +5 -0
  2187. data/node_modules/lodash/fp/partialRight.js +5 -0
  2188. data/node_modules/lodash/fp/partition.js +5 -0
  2189. data/node_modules/lodash/fp/path.js +1 -0
  2190. data/node_modules/lodash/fp/pathEq.js +1 -0
  2191. data/node_modules/lodash/fp/pathOr.js +1 -0
  2192. data/node_modules/lodash/fp/paths.js +1 -0
  2193. data/node_modules/lodash/fp/pick.js +5 -0
  2194. data/node_modules/lodash/fp/pickAll.js +1 -0
  2195. data/node_modules/lodash/fp/pickBy.js +5 -0
  2196. data/node_modules/lodash/fp/pipe.js +1 -0
  2197. data/node_modules/lodash/fp/placeholder.js +6 -0
  2198. data/node_modules/lodash/fp/plant.js +5 -0
  2199. data/node_modules/lodash/fp/pluck.js +1 -0
  2200. data/node_modules/lodash/fp/prop.js +1 -0
  2201. data/node_modules/lodash/fp/propEq.js +1 -0
  2202. data/node_modules/lodash/fp/propOr.js +1 -0
  2203. data/node_modules/lodash/fp/property.js +1 -0
  2204. data/node_modules/lodash/fp/propertyOf.js +5 -0
  2205. data/node_modules/lodash/fp/props.js +1 -0
  2206. data/node_modules/lodash/fp/pull.js +5 -0
  2207. data/node_modules/lodash/fp/pullAll.js +5 -0
  2208. data/node_modules/lodash/fp/pullAllBy.js +5 -0
  2209. data/node_modules/lodash/fp/pullAllWith.js +5 -0
  2210. data/node_modules/lodash/fp/pullAt.js +5 -0
  2211. data/node_modules/lodash/fp/random.js +5 -0
  2212. data/node_modules/lodash/fp/range.js +5 -0
  2213. data/node_modules/lodash/fp/rangeRight.js +5 -0
  2214. data/node_modules/lodash/fp/rangeStep.js +5 -0
  2215. data/node_modules/lodash/fp/rangeStepRight.js +5 -0
  2216. data/node_modules/lodash/fp/rearg.js +5 -0
  2217. data/node_modules/lodash/fp/reduce.js +5 -0
  2218. data/node_modules/lodash/fp/reduceRight.js +5 -0
  2219. data/node_modules/lodash/fp/reject.js +5 -0
  2220. data/node_modules/lodash/fp/remove.js +5 -0
  2221. data/node_modules/lodash/fp/repeat.js +5 -0
  2222. data/node_modules/lodash/fp/replace.js +5 -0
  2223. data/node_modules/lodash/fp/rest.js +5 -0
  2224. data/node_modules/lodash/fp/restFrom.js +5 -0
  2225. data/node_modules/lodash/fp/result.js +5 -0
  2226. data/node_modules/lodash/fp/reverse.js +5 -0
  2227. data/node_modules/lodash/fp/round.js +5 -0
  2228. data/node_modules/lodash/fp/sample.js +5 -0
  2229. data/node_modules/lodash/fp/sampleSize.js +5 -0
  2230. data/node_modules/lodash/fp/seq.js +2 -0
  2231. data/node_modules/lodash/fp/set.js +5 -0
  2232. data/node_modules/lodash/fp/setWith.js +5 -0
  2233. data/node_modules/lodash/fp/shuffle.js +5 -0
  2234. data/node_modules/lodash/fp/size.js +5 -0
  2235. data/node_modules/lodash/fp/slice.js +5 -0
  2236. data/node_modules/lodash/fp/snakeCase.js +5 -0
  2237. data/node_modules/lodash/fp/some.js +5 -0
  2238. data/node_modules/lodash/fp/sortBy.js +5 -0
  2239. data/node_modules/lodash/fp/sortedIndex.js +5 -0
  2240. data/node_modules/lodash/fp/sortedIndexBy.js +5 -0
  2241. data/node_modules/lodash/fp/sortedIndexOf.js +5 -0
  2242. data/node_modules/lodash/fp/sortedLastIndex.js +5 -0
  2243. data/node_modules/lodash/fp/sortedLastIndexBy.js +5 -0
  2244. data/node_modules/lodash/fp/sortedLastIndexOf.js +5 -0
  2245. data/node_modules/lodash/fp/sortedUniq.js +5 -0
  2246. data/node_modules/lodash/fp/sortedUniqBy.js +5 -0
  2247. data/node_modules/lodash/fp/split.js +5 -0
  2248. data/node_modules/lodash/fp/spread.js +5 -0
  2249. data/node_modules/lodash/fp/spreadFrom.js +5 -0
  2250. data/node_modules/lodash/fp/startCase.js +5 -0
  2251. data/node_modules/lodash/fp/startsWith.js +5 -0
  2252. data/node_modules/lodash/fp/string.js +2 -0
  2253. data/node_modules/lodash/fp/stubArray.js +5 -0
  2254. data/node_modules/lodash/fp/stubFalse.js +5 -0
  2255. data/node_modules/lodash/fp/stubObject.js +5 -0
  2256. data/node_modules/lodash/fp/stubString.js +5 -0
  2257. data/node_modules/lodash/fp/stubTrue.js +5 -0
  2258. data/node_modules/lodash/fp/subtract.js +5 -0
  2259. data/node_modules/lodash/fp/sum.js +5 -0
  2260. data/node_modules/lodash/fp/sumBy.js +5 -0
  2261. data/node_modules/lodash/fp/symmetricDifference.js +1 -0
  2262. data/node_modules/lodash/fp/symmetricDifferenceBy.js +1 -0
  2263. data/node_modules/lodash/fp/symmetricDifferenceWith.js +1 -0
  2264. data/node_modules/lodash/fp/tail.js +5 -0
  2265. data/node_modules/lodash/fp/take.js +5 -0
  2266. data/node_modules/lodash/fp/takeLast.js +1 -0
  2267. data/node_modules/lodash/fp/takeLastWhile.js +1 -0
  2268. data/node_modules/lodash/fp/takeRight.js +5 -0
  2269. data/node_modules/lodash/fp/takeRightWhile.js +5 -0
  2270. data/node_modules/lodash/fp/takeWhile.js +5 -0
  2271. data/node_modules/lodash/fp/tap.js +5 -0
  2272. data/node_modules/lodash/fp/template.js +5 -0
  2273. data/node_modules/lodash/fp/templateSettings.js +5 -0
  2274. data/node_modules/lodash/fp/throttle.js +5 -0
  2275. data/node_modules/lodash/fp/thru.js +5 -0
  2276. data/node_modules/lodash/fp/times.js +5 -0
  2277. data/node_modules/lodash/fp/toArray.js +5 -0
  2278. data/node_modules/lodash/fp/toFinite.js +5 -0
  2279. data/node_modules/lodash/fp/toInteger.js +5 -0
  2280. data/node_modules/lodash/fp/toIterator.js +5 -0
  2281. data/node_modules/lodash/fp/toJSON.js +5 -0
  2282. data/node_modules/lodash/fp/toLength.js +5 -0
  2283. data/node_modules/lodash/fp/toLower.js +5 -0
  2284. data/node_modules/lodash/fp/toNumber.js +5 -0
  2285. data/node_modules/lodash/fp/toPairs.js +5 -0
  2286. data/node_modules/lodash/fp/toPairsIn.js +5 -0
  2287. data/node_modules/lodash/fp/toPath.js +5 -0
  2288. data/node_modules/lodash/fp/toPlainObject.js +5 -0
  2289. data/node_modules/lodash/fp/toSafeInteger.js +5 -0
  2290. data/node_modules/lodash/fp/toString.js +5 -0
  2291. data/node_modules/lodash/fp/toUpper.js +5 -0
  2292. data/node_modules/lodash/fp/transform.js +5 -0
  2293. data/node_modules/lodash/fp/trim.js +5 -0
  2294. data/node_modules/lodash/fp/trimChars.js +5 -0
  2295. data/node_modules/lodash/fp/trimCharsEnd.js +5 -0
  2296. data/node_modules/lodash/fp/trimCharsStart.js +5 -0
  2297. data/node_modules/lodash/fp/trimEnd.js +5 -0
  2298. data/node_modules/lodash/fp/trimStart.js +5 -0
  2299. data/node_modules/lodash/fp/truncate.js +5 -0
  2300. data/node_modules/lodash/fp/unapply.js +1 -0
  2301. data/node_modules/lodash/fp/unary.js +5 -0
  2302. data/node_modules/lodash/fp/unescape.js +5 -0
  2303. data/node_modules/lodash/fp/union.js +5 -0
  2304. data/node_modules/lodash/fp/unionBy.js +5 -0
  2305. data/node_modules/lodash/fp/unionWith.js +5 -0
  2306. data/node_modules/lodash/fp/uniq.js +5 -0
  2307. data/node_modules/lodash/fp/uniqBy.js +5 -0
  2308. data/node_modules/lodash/fp/uniqWith.js +5 -0
  2309. data/node_modules/lodash/fp/uniqueId.js +5 -0
  2310. data/node_modules/lodash/fp/unnest.js +1 -0
  2311. data/node_modules/lodash/fp/unset.js +5 -0
  2312. data/node_modules/lodash/fp/unzip.js +5 -0
  2313. data/node_modules/lodash/fp/unzipWith.js +5 -0
  2314. data/node_modules/lodash/fp/update.js +5 -0
  2315. data/node_modules/lodash/fp/updateWith.js +5 -0
  2316. data/node_modules/lodash/fp/upperCase.js +5 -0
  2317. data/node_modules/lodash/fp/upperFirst.js +5 -0
  2318. data/node_modules/lodash/fp/useWith.js +1 -0
  2319. data/node_modules/lodash/fp/util.js +2 -0
  2320. data/node_modules/lodash/fp/value.js +5 -0
  2321. data/node_modules/lodash/fp/valueOf.js +5 -0
  2322. data/node_modules/lodash/fp/values.js +5 -0
  2323. data/node_modules/lodash/fp/valuesIn.js +5 -0
  2324. data/node_modules/lodash/fp/where.js +1 -0
  2325. data/node_modules/lodash/fp/whereEq.js +1 -0
  2326. data/node_modules/lodash/fp/without.js +5 -0
  2327. data/node_modules/lodash/fp/words.js +5 -0
  2328. data/node_modules/lodash/fp/wrap.js +5 -0
  2329. data/node_modules/lodash/fp/wrapperAt.js +5 -0
  2330. data/node_modules/lodash/fp/wrapperChain.js +5 -0
  2331. data/node_modules/lodash/fp/wrapperLodash.js +5 -0
  2332. data/node_modules/lodash/fp/wrapperReverse.js +5 -0
  2333. data/node_modules/lodash/fp/wrapperValue.js +5 -0
  2334. data/node_modules/lodash/fp/xor.js +5 -0
  2335. data/node_modules/lodash/fp/xorBy.js +5 -0
  2336. data/node_modules/lodash/fp/xorWith.js +5 -0
  2337. data/node_modules/lodash/fp/zip.js +5 -0
  2338. data/node_modules/lodash/fp/zipAll.js +5 -0
  2339. data/node_modules/lodash/fp/zipObj.js +1 -0
  2340. data/node_modules/lodash/fp/zipObject.js +5 -0
  2341. data/node_modules/lodash/fp/zipObjectDeep.js +5 -0
  2342. data/node_modules/lodash/fp/zipWith.js +5 -0
  2343. data/node_modules/lodash/fp.js +2 -0
  2344. data/node_modules/lodash/fromPairs.js +28 -0
  2345. data/node_modules/lodash/function.js +25 -0
  2346. data/node_modules/lodash/functions.js +31 -0
  2347. data/node_modules/lodash/functionsIn.js +31 -0
  2348. data/node_modules/lodash/get.js +33 -0
  2349. data/node_modules/lodash/groupBy.js +41 -0
  2350. data/node_modules/lodash/gt.js +29 -0
  2351. data/node_modules/lodash/gte.js +30 -0
  2352. data/node_modules/lodash/has.js +35 -0
  2353. data/node_modules/lodash/hasIn.js +34 -0
  2354. data/node_modules/lodash/head.js +23 -0
  2355. data/node_modules/lodash/identity.js +21 -0
  2356. data/node_modules/lodash/inRange.js +55 -0
  2357. data/node_modules/lodash/includes.js +53 -0
  2358. data/node_modules/lodash/index.js +1 -0
  2359. data/node_modules/lodash/indexOf.js +42 -0
  2360. data/node_modules/lodash/initial.js +22 -0
  2361. data/node_modules/lodash/intersection.js +30 -0
  2362. data/node_modules/lodash/intersectionBy.js +45 -0
  2363. data/node_modules/lodash/intersectionWith.js +41 -0
  2364. data/node_modules/lodash/invert.js +42 -0
  2365. data/node_modules/lodash/invertBy.js +56 -0
  2366. data/node_modules/lodash/invoke.js +24 -0
  2367. data/node_modules/lodash/invokeMap.js +41 -0
  2368. data/node_modules/lodash/isArguments.js +36 -0
  2369. data/node_modules/lodash/isArray.js +26 -0
  2370. data/node_modules/lodash/isArrayBuffer.js +27 -0
  2371. data/node_modules/lodash/isArrayLike.js +33 -0
  2372. data/node_modules/lodash/isArrayLikeObject.js +33 -0
  2373. data/node_modules/lodash/isBoolean.js +29 -0
  2374. data/node_modules/lodash/isBuffer.js +38 -0
  2375. data/node_modules/lodash/isDate.js +27 -0
  2376. data/node_modules/lodash/isElement.js +25 -0
  2377. data/node_modules/lodash/isEmpty.js +77 -0
  2378. data/node_modules/lodash/isEqual.js +35 -0
  2379. data/node_modules/lodash/isEqualWith.js +41 -0
  2380. data/node_modules/lodash/isError.js +36 -0
  2381. data/node_modules/lodash/isFinite.js +36 -0
  2382. data/node_modules/lodash/isFunction.js +37 -0
  2383. data/node_modules/lodash/isInteger.js +33 -0
  2384. data/node_modules/lodash/isLength.js +35 -0
  2385. data/node_modules/lodash/isMap.js +27 -0
  2386. data/node_modules/lodash/isMatch.js +36 -0
  2387. data/node_modules/lodash/isMatchWith.js +41 -0
  2388. data/node_modules/lodash/isNaN.js +38 -0
  2389. data/node_modules/lodash/isNative.js +40 -0
  2390. data/node_modules/lodash/isNil.js +25 -0
  2391. data/node_modules/lodash/isNull.js +22 -0
  2392. data/node_modules/lodash/isNumber.js +38 -0
  2393. data/node_modules/lodash/isObject.js +31 -0
  2394. data/node_modules/lodash/isObjectLike.js +29 -0
  2395. data/node_modules/lodash/isPlainObject.js +62 -0
  2396. data/node_modules/lodash/isRegExp.js +27 -0
  2397. data/node_modules/lodash/isSafeInteger.js +37 -0
  2398. data/node_modules/lodash/isSet.js +27 -0
  2399. data/node_modules/lodash/isString.js +30 -0
  2400. data/node_modules/lodash/isSymbol.js +29 -0
  2401. data/node_modules/lodash/isTypedArray.js +27 -0
  2402. data/node_modules/lodash/isUndefined.js +22 -0
  2403. data/node_modules/lodash/isWeakMap.js +28 -0
  2404. data/node_modules/lodash/isWeakSet.js +28 -0
  2405. data/node_modules/lodash/iteratee.js +53 -0
  2406. data/node_modules/lodash/join.js +26 -0
  2407. data/node_modules/lodash/kebabCase.js +28 -0
  2408. data/node_modules/lodash/keyBy.js +36 -0
  2409. data/node_modules/lodash/keys.js +37 -0
  2410. data/node_modules/lodash/keysIn.js +32 -0
  2411. data/node_modules/lodash/lang.js +58 -0
  2412. data/node_modules/lodash/last.js +20 -0
  2413. data/node_modules/lodash/lastIndexOf.js +46 -0
  2414. data/node_modules/lodash/lodash.js +17209 -0
  2415. data/node_modules/lodash/lodash.min.js +140 -0
  2416. data/node_modules/lodash/lowerCase.js +27 -0
  2417. data/node_modules/lodash/lowerFirst.js +22 -0
  2418. data/node_modules/lodash/lt.js +29 -0
  2419. data/node_modules/lodash/lte.js +30 -0
  2420. data/node_modules/lodash/map.js +53 -0
  2421. data/node_modules/lodash/mapKeys.js +36 -0
  2422. data/node_modules/lodash/mapValues.js +43 -0
  2423. data/node_modules/lodash/matches.js +46 -0
  2424. data/node_modules/lodash/matchesProperty.js +44 -0
  2425. data/node_modules/lodash/math.js +17 -0
  2426. data/node_modules/lodash/max.js +29 -0
  2427. data/node_modules/lodash/maxBy.js +34 -0
  2428. data/node_modules/lodash/mean.js +22 -0
  2429. data/node_modules/lodash/meanBy.js +31 -0
  2430. data/node_modules/lodash/memoize.js +73 -0
  2431. data/node_modules/lodash/merge.js +39 -0
  2432. data/node_modules/lodash/mergeWith.js +39 -0
  2433. data/node_modules/lodash/method.js +34 -0
  2434. data/node_modules/lodash/methodOf.js +33 -0
  2435. data/node_modules/lodash/min.js +29 -0
  2436. data/node_modules/lodash/minBy.js +34 -0
  2437. data/node_modules/lodash/mixin.js +74 -0
  2438. data/node_modules/lodash/multiply.js +22 -0
  2439. data/node_modules/lodash/negate.js +40 -0
  2440. data/node_modules/lodash/next.js +35 -0
  2441. data/node_modules/lodash/noop.js +17 -0
  2442. data/node_modules/lodash/now.js +23 -0
  2443. data/node_modules/lodash/nth.js +29 -0
  2444. data/node_modules/lodash/nthArg.js +32 -0
  2445. data/node_modules/lodash/number.js +5 -0
  2446. data/node_modules/lodash/object.js +49 -0
  2447. data/node_modules/lodash/omit.js +57 -0
  2448. data/node_modules/lodash/omitBy.js +29 -0
  2449. data/node_modules/lodash/once.js +25 -0
  2450. data/node_modules/lodash/orderBy.js +47 -0
  2451. data/node_modules/lodash/over.js +24 -0
  2452. data/node_modules/lodash/overArgs.js +61 -0
  2453. data/node_modules/lodash/overEvery.js +34 -0
  2454. data/node_modules/lodash/overSome.js +37 -0
  2455. data/node_modules/lodash/package.json +17 -0
  2456. data/node_modules/lodash/pad.js +49 -0
  2457. data/node_modules/lodash/padEnd.js +39 -0
  2458. data/node_modules/lodash/padStart.js +39 -0
  2459. data/node_modules/lodash/parseInt.js +43 -0
  2460. data/node_modules/lodash/partial.js +50 -0
  2461. data/node_modules/lodash/partialRight.js +49 -0
  2462. data/node_modules/lodash/partition.js +43 -0
  2463. data/node_modules/lodash/pick.js +25 -0
  2464. data/node_modules/lodash/pickBy.js +37 -0
  2465. data/node_modules/lodash/plant.js +48 -0
  2466. data/node_modules/lodash/property.js +32 -0
  2467. data/node_modules/lodash/propertyOf.js +30 -0
  2468. data/node_modules/lodash/pull.js +29 -0
  2469. data/node_modules/lodash/pullAll.js +29 -0
  2470. data/node_modules/lodash/pullAllBy.js +33 -0
  2471. data/node_modules/lodash/pullAllWith.js +32 -0
  2472. data/node_modules/lodash/pullAt.js +43 -0
  2473. data/node_modules/lodash/random.js +82 -0
  2474. data/node_modules/lodash/range.js +46 -0
  2475. data/node_modules/lodash/rangeRight.js +41 -0
  2476. data/node_modules/lodash/rearg.js +33 -0
  2477. data/node_modules/lodash/reduce.js +51 -0
  2478. data/node_modules/lodash/reduceRight.js +36 -0
  2479. data/node_modules/lodash/reject.js +46 -0
  2480. data/node_modules/lodash/release.md +48 -0
  2481. data/node_modules/lodash/remove.js +53 -0
  2482. data/node_modules/lodash/repeat.js +37 -0
  2483. data/node_modules/lodash/replace.js +29 -0
  2484. data/node_modules/lodash/rest.js +40 -0
  2485. data/node_modules/lodash/result.js +56 -0
  2486. data/node_modules/lodash/reverse.js +34 -0
  2487. data/node_modules/lodash/round.js +26 -0
  2488. data/node_modules/lodash/sample.js +24 -0
  2489. data/node_modules/lodash/sampleSize.js +37 -0
  2490. data/node_modules/lodash/seq.js +16 -0
  2491. data/node_modules/lodash/set.js +35 -0
  2492. data/node_modules/lodash/setWith.js +32 -0
  2493. data/node_modules/lodash/shuffle.js +25 -0
  2494. data/node_modules/lodash/size.js +46 -0
  2495. data/node_modules/lodash/slice.js +37 -0
  2496. data/node_modules/lodash/snakeCase.js +28 -0
  2497. data/node_modules/lodash/some.js +51 -0
  2498. data/node_modules/lodash/sortBy.js +48 -0
  2499. data/node_modules/lodash/sortedIndex.js +24 -0
  2500. data/node_modules/lodash/sortedIndexBy.js +33 -0
  2501. data/node_modules/lodash/sortedIndexOf.js +31 -0
  2502. data/node_modules/lodash/sortedLastIndex.js +25 -0
  2503. data/node_modules/lodash/sortedLastIndexBy.js +33 -0
  2504. data/node_modules/lodash/sortedLastIndexOf.js +31 -0
  2505. data/node_modules/lodash/sortedUniq.js +24 -0
  2506. data/node_modules/lodash/sortedUniqBy.js +26 -0
  2507. data/node_modules/lodash/split.js +52 -0
  2508. data/node_modules/lodash/spread.js +63 -0
  2509. data/node_modules/lodash/startCase.js +29 -0
  2510. data/node_modules/lodash/startsWith.js +39 -0
  2511. data/node_modules/lodash/string.js +33 -0
  2512. data/node_modules/lodash/stubArray.js +23 -0
  2513. data/node_modules/lodash/stubFalse.js +18 -0
  2514. data/node_modules/lodash/stubObject.js +23 -0
  2515. data/node_modules/lodash/stubString.js +18 -0
  2516. data/node_modules/lodash/stubTrue.js +18 -0
  2517. data/node_modules/lodash/subtract.js +22 -0
  2518. data/node_modules/lodash/sum.js +24 -0
  2519. data/node_modules/lodash/sumBy.js +33 -0
  2520. data/node_modules/lodash/tail.js +22 -0
  2521. data/node_modules/lodash/take.js +37 -0
  2522. data/node_modules/lodash/takeRight.js +39 -0
  2523. data/node_modules/lodash/takeRightWhile.js +45 -0
  2524. data/node_modules/lodash/takeWhile.js +45 -0
  2525. data/node_modules/lodash/tap.js +29 -0
  2526. data/node_modules/lodash/template.js +272 -0
  2527. data/node_modules/lodash/templateSettings.js +67 -0
  2528. data/node_modules/lodash/throttle.js +69 -0
  2529. data/node_modules/lodash/thru.js +28 -0
  2530. data/node_modules/lodash/times.js +51 -0
  2531. data/node_modules/lodash/toArray.js +58 -0
  2532. data/node_modules/lodash/toFinite.js +42 -0
  2533. data/node_modules/lodash/toInteger.js +36 -0
  2534. data/node_modules/lodash/toIterator.js +23 -0
  2535. data/node_modules/lodash/toJSON.js +1 -0
  2536. data/node_modules/lodash/toLength.js +38 -0
  2537. data/node_modules/lodash/toLower.js +28 -0
  2538. data/node_modules/lodash/toNumber.js +64 -0
  2539. data/node_modules/lodash/toPairs.js +30 -0
  2540. data/node_modules/lodash/toPairsIn.js +30 -0
  2541. data/node_modules/lodash/toPath.js +33 -0
  2542. data/node_modules/lodash/toPlainObject.js +32 -0
  2543. data/node_modules/lodash/toSafeInteger.js +37 -0
  2544. data/node_modules/lodash/toString.js +28 -0
  2545. data/node_modules/lodash/toUpper.js +28 -0
  2546. data/node_modules/lodash/transform.js +65 -0
  2547. data/node_modules/lodash/trim.js +47 -0
  2548. data/node_modules/lodash/trimEnd.js +41 -0
  2549. data/node_modules/lodash/trimStart.js +43 -0
  2550. data/node_modules/lodash/truncate.js +111 -0
  2551. data/node_modules/lodash/unary.js +22 -0
  2552. data/node_modules/lodash/unescape.js +34 -0
  2553. data/node_modules/lodash/union.js +26 -0
  2554. data/node_modules/lodash/unionBy.js +39 -0
  2555. data/node_modules/lodash/unionWith.js +34 -0
  2556. data/node_modules/lodash/uniq.js +25 -0
  2557. data/node_modules/lodash/uniqBy.js +31 -0
  2558. data/node_modules/lodash/uniqWith.js +28 -0
  2559. data/node_modules/lodash/uniqueId.js +28 -0
  2560. data/node_modules/lodash/unset.js +34 -0
  2561. data/node_modules/lodash/unzip.js +45 -0
  2562. data/node_modules/lodash/unzipWith.js +39 -0
  2563. data/node_modules/lodash/update.js +35 -0
  2564. data/node_modules/lodash/updateWith.js +33 -0
  2565. data/node_modules/lodash/upperCase.js +27 -0
  2566. data/node_modules/lodash/upperFirst.js +22 -0
  2567. data/node_modules/lodash/util.js +34 -0
  2568. data/node_modules/lodash/value.js +1 -0
  2569. data/node_modules/lodash/valueOf.js +1 -0
  2570. data/node_modules/lodash/values.js +34 -0
  2571. data/node_modules/lodash/valuesIn.js +32 -0
  2572. data/node_modules/lodash/without.js +31 -0
  2573. data/node_modules/lodash/words.js +35 -0
  2574. data/node_modules/lodash/wrap.js +30 -0
  2575. data/node_modules/lodash/wrapperAt.js +48 -0
  2576. data/node_modules/lodash/wrapperChain.js +34 -0
  2577. data/node_modules/lodash/wrapperLodash.js +147 -0
  2578. data/node_modules/lodash/wrapperReverse.js +44 -0
  2579. data/node_modules/lodash/wrapperValue.js +21 -0
  2580. data/node_modules/lodash/xor.js +28 -0
  2581. data/node_modules/lodash/xorBy.js +39 -0
  2582. data/node_modules/lodash/xorWith.js +34 -0
  2583. data/node_modules/lodash/zip.js +22 -0
  2584. data/node_modules/lodash/zipObject.js +24 -0
  2585. data/node_modules/lodash/zipObjectDeep.js +23 -0
  2586. data/node_modules/lodash/zipWith.js +32 -0
  2587. data/node_modules/lru-cache/LICENSE +15 -0
  2588. data/node_modules/lru-cache/README.md +166 -0
  2589. data/node_modules/lru-cache/index.js +334 -0
  2590. data/node_modules/lru-cache/package.json +34 -0
  2591. data/node_modules/mime-db/HISTORY.md +486 -0
  2592. data/node_modules/mime-db/LICENSE +22 -0
  2593. data/node_modules/mime-db/README.md +100 -0
  2594. data/node_modules/mime-db/db.json +8417 -0
  2595. data/node_modules/mime-db/index.js +11 -0
  2596. data/node_modules/mime-db/package.json +59 -0
  2597. data/node_modules/mime-types/HISTORY.md +378 -0
  2598. data/node_modules/mime-types/LICENSE +23 -0
  2599. data/node_modules/mime-types/README.md +113 -0
  2600. data/node_modules/mime-types/index.js +188 -0
  2601. data/node_modules/mime-types/package.json +44 -0
  2602. data/node_modules/minimatch/LICENSE +15 -0
  2603. data/node_modules/minimatch/README.md +209 -0
  2604. data/node_modules/minimatch/minimatch.js +923 -0
  2605. data/node_modules/minimatch/package.json +30 -0
  2606. data/node_modules/ms/index.js +162 -0
  2607. data/node_modules/ms/license.md +21 -0
  2608. data/node_modules/ms/package.json +37 -0
  2609. data/node_modules/ms/readme.md +60 -0
  2610. data/node_modules/normalize-path/LICENSE +21 -0
  2611. data/node_modules/normalize-path/README.md +127 -0
  2612. data/node_modules/normalize-path/index.js +35 -0
  2613. data/node_modules/normalize-path/package.json +77 -0
  2614. data/node_modules/nwsapi/LICENSE +22 -0
  2615. data/node_modules/nwsapi/README.md +132 -0
  2616. data/node_modules/nwsapi/dist/lint.log +0 -0
  2617. data/node_modules/nwsapi/package.json +38 -0
  2618. data/node_modules/nwsapi/src/modules/nwsapi-jquery.js +135 -0
  2619. data/node_modules/nwsapi/src/modules/nwsapi-traversal.js +90 -0
  2620. data/node_modules/nwsapi/src/nwsapi.js +1800 -0
  2621. data/node_modules/once/LICENSE +15 -0
  2622. data/node_modules/once/README.md +79 -0
  2623. data/node_modules/once/once.js +42 -0
  2624. data/node_modules/once/package.json +33 -0
  2625. data/node_modules/optionator/CHANGELOG.md +56 -0
  2626. data/node_modules/optionator/LICENSE +22 -0
  2627. data/node_modules/optionator/README.md +238 -0
  2628. data/node_modules/optionator/lib/help.js +260 -0
  2629. data/node_modules/optionator/lib/index.js +465 -0
  2630. data/node_modules/optionator/lib/util.js +54 -0
  2631. data/node_modules/optionator/package.json +44 -0
  2632. data/node_modules/parse5/LICENSE +19 -0
  2633. data/node_modules/parse5/README.md +38 -0
  2634. data/node_modules/parse5/lib/common/doctype.js +162 -0
  2635. data/node_modules/parse5/lib/common/error-codes.js +65 -0
  2636. data/node_modules/parse5/lib/common/foreign-content.js +265 -0
  2637. data/node_modules/parse5/lib/common/html.js +272 -0
  2638. data/node_modules/parse5/lib/common/unicode.js +109 -0
  2639. data/node_modules/parse5/lib/extensions/error-reporting/mixin-base.js +43 -0
  2640. data/node_modules/parse5/lib/extensions/error-reporting/parser-mixin.js +52 -0
  2641. data/node_modules/parse5/lib/extensions/error-reporting/preprocessor-mixin.js +24 -0
  2642. data/node_modules/parse5/lib/extensions/error-reporting/tokenizer-mixin.js +17 -0
  2643. data/node_modules/parse5/lib/extensions/location-info/open-element-stack-mixin.js +35 -0
  2644. data/node_modules/parse5/lib/extensions/location-info/parser-mixin.js +223 -0
  2645. data/node_modules/parse5/lib/extensions/location-info/tokenizer-mixin.js +146 -0
  2646. data/node_modules/parse5/lib/extensions/position-tracking/preprocessor-mixin.js +64 -0
  2647. data/node_modules/parse5/lib/index.js +29 -0
  2648. data/node_modules/parse5/lib/parser/formatting-element-list.js +181 -0
  2649. data/node_modules/parse5/lib/parser/index.js +2956 -0
  2650. data/node_modules/parse5/lib/parser/open-element-stack.js +482 -0
  2651. data/node_modules/parse5/lib/serializer/index.js +176 -0
  2652. data/node_modules/parse5/lib/tokenizer/index.js +2196 -0
  2653. data/node_modules/parse5/lib/tokenizer/named-entity-data.js +5 -0
  2654. data/node_modules/parse5/lib/tokenizer/preprocessor.js +159 -0
  2655. data/node_modules/parse5/lib/tree-adapters/default.js +221 -0
  2656. data/node_modules/parse5/lib/utils/merge-options.js +13 -0
  2657. data/node_modules/parse5/lib/utils/mixin.js +39 -0
  2658. data/node_modules/parse5/package.json +35 -0
  2659. data/node_modules/path-is-absolute/index.js +20 -0
  2660. data/node_modules/path-is-absolute/license +21 -0
  2661. data/node_modules/path-is-absolute/package.json +43 -0
  2662. data/node_modules/path-is-absolute/readme.md +59 -0
  2663. data/node_modules/path-key/index.d.ts +40 -0
  2664. data/node_modules/path-key/index.js +16 -0
  2665. data/node_modules/path-key/license +9 -0
  2666. data/node_modules/path-key/package.json +39 -0
  2667. data/node_modules/path-key/readme.md +61 -0
  2668. data/node_modules/picomatch/CHANGELOG.md +126 -0
  2669. data/node_modules/picomatch/LICENSE +21 -0
  2670. data/node_modules/picomatch/README.md +707 -0
  2671. data/node_modules/picomatch/index.js +3 -0
  2672. data/node_modules/picomatch/lib/constants.js +179 -0
  2673. data/node_modules/picomatch/lib/parse.js +1084 -0
  2674. data/node_modules/picomatch/lib/picomatch.js +342 -0
  2675. data/node_modules/picomatch/lib/scan.js +391 -0
  2676. data/node_modules/picomatch/lib/utils.js +64 -0
  2677. data/node_modules/picomatch/package.json +81 -0
  2678. data/node_modules/prelude-ls/CHANGELOG.md +99 -0
  2679. data/node_modules/prelude-ls/LICENSE +22 -0
  2680. data/node_modules/prelude-ls/README.md +15 -0
  2681. data/node_modules/prelude-ls/lib/Func.js +65 -0
  2682. data/node_modules/prelude-ls/lib/List.js +686 -0
  2683. data/node_modules/prelude-ls/lib/Num.js +130 -0
  2684. data/node_modules/prelude-ls/lib/Obj.js +154 -0
  2685. data/node_modules/prelude-ls/lib/Str.js +92 -0
  2686. data/node_modules/prelude-ls/lib/index.js +178 -0
  2687. data/node_modules/prelude-ls/package.json +52 -0
  2688. data/node_modules/psl/LICENSE +9 -0
  2689. data/node_modules/psl/README.md +215 -0
  2690. data/node_modules/psl/browserstack-logo.svg +90 -0
  2691. data/node_modules/psl/data/rules.json +8834 -0
  2692. data/node_modules/psl/dist/psl.js +9645 -0
  2693. data/node_modules/psl/dist/psl.min.js +1 -0
  2694. data/node_modules/psl/index.js +269 -0
  2695. data/node_modules/psl/package.json +44 -0
  2696. data/node_modules/punycode/LICENSE-MIT.txt +20 -0
  2697. data/node_modules/punycode/README.md +122 -0
  2698. data/node_modules/punycode/package.json +58 -0
  2699. data/node_modules/punycode/punycode.es6.js +441 -0
  2700. data/node_modules/punycode/punycode.js +440 -0
  2701. data/node_modules/readdirp/LICENSE +21 -0
  2702. data/node_modules/readdirp/README.md +122 -0
  2703. data/node_modules/readdirp/index.d.ts +43 -0
  2704. data/node_modules/readdirp/index.js +287 -0
  2705. data/node_modules/readdirp/package.json +122 -0
  2706. data/node_modules/require-directory/LICENSE +22 -0
  2707. data/node_modules/require-directory/README.markdown +184 -0
  2708. data/node_modules/require-directory/index.js +86 -0
  2709. data/node_modules/require-directory/package.json +40 -0
  2710. data/node_modules/safer-buffer/LICENSE +21 -0
  2711. data/node_modules/safer-buffer/Porting-Buffer.md +268 -0
  2712. data/node_modules/safer-buffer/Readme.md +156 -0
  2713. data/node_modules/safer-buffer/dangerous.js +58 -0
  2714. data/node_modules/safer-buffer/package.json +34 -0
  2715. data/node_modules/safer-buffer/safer.js +77 -0
  2716. data/node_modules/safer-buffer/tests.js +406 -0
  2717. data/node_modules/saxes/README.md +323 -0
  2718. data/node_modules/saxes/package.json +70 -0
  2719. data/node_modules/saxes/saxes.d.ts +635 -0
  2720. data/node_modules/saxes/saxes.js +2064 -0
  2721. data/node_modules/saxes/saxes.js.map +1 -0
  2722. data/node_modules/semver/CHANGELOG.md +111 -0
  2723. data/node_modules/semver/LICENSE +15 -0
  2724. data/node_modules/semver/README.md +566 -0
  2725. data/node_modules/semver/bin/semver.js +173 -0
  2726. data/node_modules/semver/classes/comparator.js +135 -0
  2727. data/node_modules/semver/classes/index.js +5 -0
  2728. data/node_modules/semver/classes/range.js +510 -0
  2729. data/node_modules/semver/classes/semver.js +287 -0
  2730. data/node_modules/semver/functions/clean.js +6 -0
  2731. data/node_modules/semver/functions/cmp.js +48 -0
  2732. data/node_modules/semver/functions/coerce.js +51 -0
  2733. data/node_modules/semver/functions/compare-build.js +7 -0
  2734. data/node_modules/semver/functions/compare-loose.js +3 -0
  2735. data/node_modules/semver/functions/compare.js +5 -0
  2736. data/node_modules/semver/functions/diff.js +23 -0
  2737. data/node_modules/semver/functions/eq.js +3 -0
  2738. data/node_modules/semver/functions/gt.js +3 -0
  2739. data/node_modules/semver/functions/gte.js +3 -0
  2740. data/node_modules/semver/functions/inc.js +15 -0
  2741. data/node_modules/semver/functions/lt.js +3 -0
  2742. data/node_modules/semver/functions/lte.js +3 -0
  2743. data/node_modules/semver/functions/major.js +3 -0
  2744. data/node_modules/semver/functions/minor.js +3 -0
  2745. data/node_modules/semver/functions/neq.js +3 -0
  2746. data/node_modules/semver/functions/parse.js +33 -0
  2747. data/node_modules/semver/functions/patch.js +3 -0
  2748. data/node_modules/semver/functions/prerelease.js +6 -0
  2749. data/node_modules/semver/functions/rcompare.js +3 -0
  2750. data/node_modules/semver/functions/rsort.js +3 -0
  2751. data/node_modules/semver/functions/satisfies.js +10 -0
  2752. data/node_modules/semver/functions/sort.js +3 -0
  2753. data/node_modules/semver/functions/valid.js +6 -0
  2754. data/node_modules/semver/index.js +48 -0
  2755. data/node_modules/semver/internal/constants.js +17 -0
  2756. data/node_modules/semver/internal/debug.js +9 -0
  2757. data/node_modules/semver/internal/identifiers.js +23 -0
  2758. data/node_modules/semver/internal/parse-options.js +11 -0
  2759. data/node_modules/semver/internal/re.js +182 -0
  2760. data/node_modules/semver/package.json +41 -0
  2761. data/node_modules/semver/preload.js +2 -0
  2762. data/node_modules/semver/range.bnf +16 -0
  2763. data/node_modules/semver/ranges/gtr.js +4 -0
  2764. data/node_modules/semver/ranges/intersects.js +7 -0
  2765. data/node_modules/semver/ranges/ltr.js +4 -0
  2766. data/node_modules/semver/ranges/max-satisfying.js +25 -0
  2767. data/node_modules/semver/ranges/min-satisfying.js +24 -0
  2768. data/node_modules/semver/ranges/min-version.js +60 -0
  2769. data/node_modules/semver/ranges/outside.js +80 -0
  2770. data/node_modules/semver/ranges/simplify.js +44 -0
  2771. data/node_modules/semver/ranges/subset.js +222 -0
  2772. data/node_modules/semver/ranges/to-comparators.js +8 -0
  2773. data/node_modules/semver/ranges/valid.js +11 -0
  2774. data/node_modules/shebang-command/index.js +19 -0
  2775. data/node_modules/shebang-command/license +9 -0
  2776. data/node_modules/shebang-command/package.json +34 -0
  2777. data/node_modules/shebang-command/readme.md +34 -0
  2778. data/node_modules/shebang-regex/index.d.ts +22 -0
  2779. data/node_modules/shebang-regex/index.js +2 -0
  2780. data/node_modules/shebang-regex/license +9 -0
  2781. data/node_modules/shebang-regex/package.json +35 -0
  2782. data/node_modules/shebang-regex/readme.md +33 -0
  2783. data/node_modules/simple-wcswidth/CHANGELOG.md +13 -0
  2784. data/node_modules/simple-wcswidth/LICENSE +21 -0
  2785. data/node_modules/simple-wcswidth/README.md +100 -0
  2786. data/node_modules/simple-wcswidth/dist/index.d.ts +3 -0
  2787. data/node_modules/simple-wcswidth/dist/index.js +10 -0
  2788. data/node_modules/simple-wcswidth/dist/src/binary-search.d.ts +3 -0
  2789. data/node_modules/simple-wcswidth/dist/src/binary-search.js +24 -0
  2790. data/node_modules/simple-wcswidth/dist/src/models.d.ts +4 -0
  2791. data/node_modules/simple-wcswidth/dist/src/models.js +2 -0
  2792. data/node_modules/simple-wcswidth/dist/src/non-spacing-chars.d.ts +3 -0
  2793. data/node_modules/simple-wcswidth/dist/src/non-spacing-chars.js +149 -0
  2794. data/node_modules/simple-wcswidth/dist/src/wcswidth.d.ts +2 -0
  2795. data/node_modules/simple-wcswidth/dist/src/wcswidth.js +20 -0
  2796. data/node_modules/simple-wcswidth/dist/src/wcwidth.d.ts +2 -0
  2797. data/node_modules/simple-wcswidth/dist/src/wcwidth.js +67 -0
  2798. data/node_modules/simple-wcswidth/package.json +44 -0
  2799. data/node_modules/source-map/CHANGELOG.md +301 -0
  2800. data/node_modules/source-map/LICENSE +28 -0
  2801. data/node_modules/source-map/README.md +742 -0
  2802. data/node_modules/source-map/dist/source-map.debug.js +3234 -0
  2803. data/node_modules/source-map/dist/source-map.js +3233 -0
  2804. data/node_modules/source-map/dist/source-map.min.js +2 -0
  2805. data/node_modules/source-map/dist/source-map.min.js.map +1 -0
  2806. data/node_modules/source-map/lib/array-set.js +121 -0
  2807. data/node_modules/source-map/lib/base64-vlq.js +140 -0
  2808. data/node_modules/source-map/lib/base64.js +67 -0
  2809. data/node_modules/source-map/lib/binary-search.js +111 -0
  2810. data/node_modules/source-map/lib/mapping-list.js +79 -0
  2811. data/node_modules/source-map/lib/quick-sort.js +114 -0
  2812. data/node_modules/source-map/lib/source-map-consumer.js +1145 -0
  2813. data/node_modules/source-map/lib/source-map-generator.js +425 -0
  2814. data/node_modules/source-map/lib/source-node.js +413 -0
  2815. data/node_modules/source-map/lib/util.js +488 -0
  2816. data/node_modules/source-map/package.json +73 -0
  2817. data/node_modules/source-map/source-map.d.ts +98 -0
  2818. data/node_modules/source-map/source-map.js +8 -0
  2819. data/node_modules/sprintf-js/LICENSE +24 -0
  2820. data/node_modules/sprintf-js/README.md +88 -0
  2821. data/node_modules/sprintf-js/bower.json +14 -0
  2822. data/node_modules/sprintf-js/demo/angular.html +20 -0
  2823. data/node_modules/sprintf-js/dist/angular-sprintf.min.js +4 -0
  2824. data/node_modules/sprintf-js/dist/angular-sprintf.min.js.map +1 -0
  2825. data/node_modules/sprintf-js/dist/angular-sprintf.min.map +1 -0
  2826. data/node_modules/sprintf-js/dist/sprintf.min.js +4 -0
  2827. data/node_modules/sprintf-js/dist/sprintf.min.js.map +1 -0
  2828. data/node_modules/sprintf-js/dist/sprintf.min.map +1 -0
  2829. data/node_modules/sprintf-js/gruntfile.js +36 -0
  2830. data/node_modules/sprintf-js/package.json +22 -0
  2831. data/node_modules/sprintf-js/src/angular-sprintf.js +18 -0
  2832. data/node_modules/sprintf-js/src/sprintf.js +208 -0
  2833. data/node_modules/sprintf-js/test/test.js +82 -0
  2834. data/node_modules/sqlite-parser/CHANGELOG.md +1263 -0
  2835. data/node_modules/sqlite-parser/LICENSE +22 -0
  2836. data/node_modules/sqlite-parser/README.md +187 -0
  2837. data/node_modules/sqlite-parser/bin/sqlite-parser +7 -0
  2838. data/node_modules/sqlite-parser/dist/sqlite-parser.js +19 -0
  2839. data/node_modules/sqlite-parser/lib/index.js +6 -0
  2840. data/node_modules/sqlite-parser/lib/parser.js +6 -0
  2841. data/node_modules/sqlite-parser/lib/streaming-shim.js +6 -0
  2842. data/node_modules/sqlite-parser/lib/streaming.js +6 -0
  2843. data/node_modules/sqlite-parser/lib/tracer.js +6 -0
  2844. data/node_modules/sqlite-parser/package.json +75 -0
  2845. data/node_modules/string-width/index.d.ts +29 -0
  2846. data/node_modules/string-width/index.js +47 -0
  2847. data/node_modules/string-width/license +9 -0
  2848. data/node_modules/string-width/package.json +56 -0
  2849. data/node_modules/string-width/readme.md +50 -0
  2850. data/node_modules/strip-ansi/index.d.ts +17 -0
  2851. data/node_modules/strip-ansi/index.js +4 -0
  2852. data/node_modules/strip-ansi/license +9 -0
  2853. data/node_modules/strip-ansi/package.json +54 -0
  2854. data/node_modules/strip-ansi/readme.md +46 -0
  2855. data/node_modules/symbol-tree/LICENSE +21 -0
  2856. data/node_modules/symbol-tree/README.md +545 -0
  2857. data/node_modules/symbol-tree/lib/SymbolTree.js +838 -0
  2858. data/node_modules/symbol-tree/lib/SymbolTreeNode.js +54 -0
  2859. data/node_modules/symbol-tree/lib/TreeIterator.js +69 -0
  2860. data/node_modules/symbol-tree/lib/TreePosition.js +11 -0
  2861. data/node_modules/symbol-tree/package.json +47 -0
  2862. data/node_modules/to-regex-range/LICENSE +21 -0
  2863. data/node_modules/to-regex-range/README.md +305 -0
  2864. data/node_modules/to-regex-range/index.js +288 -0
  2865. data/node_modules/to-regex-range/package.json +88 -0
  2866. data/node_modules/tough-cookie/LICENSE +12 -0
  2867. data/node_modules/tough-cookie/README.md +582 -0
  2868. data/node_modules/tough-cookie/lib/cookie.js +1671 -0
  2869. data/node_modules/tough-cookie/lib/memstore.js +190 -0
  2870. data/node_modules/tough-cookie/lib/pathMatch.js +61 -0
  2871. data/node_modules/tough-cookie/lib/permuteDomain.js +70 -0
  2872. data/node_modules/tough-cookie/lib/pubsuffix-psl.js +38 -0
  2873. data/node_modules/tough-cookie/lib/store.js +76 -0
  2874. data/node_modules/tough-cookie/lib/version.js +2 -0
  2875. data/node_modules/tough-cookie/node_modules/universalify/LICENSE +20 -0
  2876. data/node_modules/tough-cookie/node_modules/universalify/README.md +76 -0
  2877. data/node_modules/tough-cookie/node_modules/universalify/index.js +25 -0
  2878. data/node_modules/tough-cookie/node_modules/universalify/package.json +34 -0
  2879. data/node_modules/tough-cookie/package.json +109 -0
  2880. data/node_modules/tr46/LICENSE.md +21 -0
  2881. data/node_modules/tr46/README.md +72 -0
  2882. data/node_modules/tr46/index.js +297 -0
  2883. data/node_modules/tr46/lib/mappingTable.json +1 -0
  2884. data/node_modules/tr46/lib/regexes.js +29 -0
  2885. data/node_modules/tr46/lib/statusMapping.js +11 -0
  2886. data/node_modules/tr46/package.json +46 -0
  2887. data/node_modules/type-check/LICENSE +22 -0
  2888. data/node_modules/type-check/README.md +210 -0
  2889. data/node_modules/type-check/lib/check.js +126 -0
  2890. data/node_modules/type-check/lib/index.js +16 -0
  2891. data/node_modules/type-check/lib/parse-type.js +196 -0
  2892. data/node_modules/type-check/package.json +40 -0
  2893. data/node_modules/universalify/LICENSE +20 -0
  2894. data/node_modules/universalify/README.md +76 -0
  2895. data/node_modules/universalify/index.js +24 -0
  2896. data/node_modules/universalify/package.json +34 -0
  2897. data/node_modules/w3c-hr-time/CHANGELOG.md +19 -0
  2898. data/node_modules/w3c-hr-time/LICENSE.md +21 -0
  2899. data/node_modules/w3c-hr-time/README.md +130 -0
  2900. data/node_modules/w3c-hr-time/index.js +11 -0
  2901. data/node_modules/w3c-hr-time/lib/calculate-clock-offset.js +39 -0
  2902. data/node_modules/w3c-hr-time/lib/clock-is-accurate.js +61 -0
  2903. data/node_modules/w3c-hr-time/lib/global-monotonic-clock.js +10 -0
  2904. data/node_modules/w3c-hr-time/lib/performance.js +53 -0
  2905. data/node_modules/w3c-hr-time/lib/utils.js +11 -0
  2906. data/node_modules/w3c-hr-time/package.json +26 -0
  2907. data/node_modules/w3c-xmlserializer/LICENSE.md +25 -0
  2908. data/node_modules/w3c-xmlserializer/README.md +41 -0
  2909. data/node_modules/w3c-xmlserializer/lib/attributes.js +128 -0
  2910. data/node_modules/w3c-xmlserializer/lib/constants.js +44 -0
  2911. data/node_modules/w3c-xmlserializer/lib/serialize.js +371 -0
  2912. data/node_modules/w3c-xmlserializer/package.json +32 -0
  2913. data/node_modules/webidl-conversions/LICENSE.md +12 -0
  2914. data/node_modules/webidl-conversions/README.md +101 -0
  2915. data/node_modules/webidl-conversions/lib/index.js +489 -0
  2916. data/node_modules/webidl-conversions/package.json +30 -0
  2917. data/node_modules/whatwg-encoding/LICENSE.txt +7 -0
  2918. data/node_modules/whatwg-encoding/README.md +50 -0
  2919. data/node_modules/whatwg-encoding/lib/labels-to-names.json +207 -0
  2920. data/node_modules/whatwg-encoding/lib/supported-names.json +37 -0
  2921. data/node_modules/whatwg-encoding/lib/whatwg-encoding.js +47 -0
  2922. data/node_modules/whatwg-encoding/package.json +29 -0
  2923. data/node_modules/whatwg-mimetype/LICENSE.txt +7 -0
  2924. data/node_modules/whatwg-mimetype/README.md +101 -0
  2925. data/node_modules/whatwg-mimetype/lib/mime-type.js +191 -0
  2926. data/node_modules/whatwg-mimetype/lib/parser.js +124 -0
  2927. data/node_modules/whatwg-mimetype/lib/serializer.js +25 -0
  2928. data/node_modules/whatwg-mimetype/lib/utils.js +25 -0
  2929. data/node_modules/whatwg-mimetype/package.json +43 -0
  2930. data/node_modules/whatwg-url/LICENSE.txt +21 -0
  2931. data/node_modules/whatwg-url/README.md +104 -0
  2932. data/node_modules/whatwg-url/dist/Function.js +46 -0
  2933. data/node_modules/whatwg-url/dist/URL-impl.js +217 -0
  2934. data/node_modules/whatwg-url/dist/URL.js +417 -0
  2935. data/node_modules/whatwg-url/dist/URLSearchParams-impl.js +122 -0
  2936. data/node_modules/whatwg-url/dist/URLSearchParams.js +457 -0
  2937. data/node_modules/whatwg-url/dist/VoidFunction.js +30 -0
  2938. data/node_modules/whatwg-url/dist/encoding.js +26 -0
  2939. data/node_modules/whatwg-url/dist/infra.js +26 -0
  2940. data/node_modules/whatwg-url/dist/percent-encoding.js +141 -0
  2941. data/node_modules/whatwg-url/dist/url-state-machine.js +1210 -0
  2942. data/node_modules/whatwg-url/dist/urlencoded.js +102 -0
  2943. data/node_modules/whatwg-url/dist/utils.js +141 -0
  2944. data/node_modules/whatwg-url/index.js +24 -0
  2945. data/node_modules/whatwg-url/package.json +60 -0
  2946. data/node_modules/whatwg-url/webidl2js-wrapper.js +7 -0
  2947. data/node_modules/which/CHANGELOG.md +166 -0
  2948. data/node_modules/which/LICENSE +15 -0
  2949. data/node_modules/which/README.md +54 -0
  2950. data/node_modules/which/bin/node-which +52 -0
  2951. data/node_modules/which/package.json +43 -0
  2952. data/node_modules/which/which.js +125 -0
  2953. data/node_modules/word-wrap/LICENSE +21 -0
  2954. data/node_modules/word-wrap/README.md +182 -0
  2955. data/node_modules/word-wrap/index.d.ts +50 -0
  2956. data/node_modules/word-wrap/index.js +46 -0
  2957. data/node_modules/word-wrap/package.json +77 -0
  2958. data/node_modules/wrap-ansi/index.js +216 -0
  2959. data/node_modules/wrap-ansi/license +9 -0
  2960. data/node_modules/wrap-ansi/package.json +62 -0
  2961. data/node_modules/wrap-ansi/readme.md +91 -0
  2962. data/node_modules/wrappy/LICENSE +15 -0
  2963. data/node_modules/wrappy/README.md +36 -0
  2964. data/node_modules/wrappy/package.json +29 -0
  2965. data/node_modules/wrappy/wrappy.js +33 -0
  2966. data/node_modules/ws/LICENSE +21 -0
  2967. data/node_modules/ws/README.md +496 -0
  2968. data/node_modules/ws/browser.js +8 -0
  2969. data/node_modules/ws/index.js +10 -0
  2970. data/node_modules/ws/lib/buffer-util.js +129 -0
  2971. data/node_modules/ws/lib/constants.js +10 -0
  2972. data/node_modules/ws/lib/event-target.js +184 -0
  2973. data/node_modules/ws/lib/extension.js +223 -0
  2974. data/node_modules/ws/lib/limiter.js +55 -0
  2975. data/node_modules/ws/lib/permessage-deflate.js +518 -0
  2976. data/node_modules/ws/lib/receiver.js +607 -0
  2977. data/node_modules/ws/lib/sender.js +409 -0
  2978. data/node_modules/ws/lib/stream.js +177 -0
  2979. data/node_modules/ws/lib/validation.js +104 -0
  2980. data/node_modules/ws/lib/websocket-server.js +447 -0
  2981. data/node_modules/ws/lib/websocket.js +1078 -0
  2982. data/node_modules/ws/package.json +56 -0
  2983. data/node_modules/xml-name-validator/LICENSE.txt +176 -0
  2984. data/node_modules/xml-name-validator/README.md +36 -0
  2985. data/node_modules/xml-name-validator/lib/generated-parser.js +504 -0
  2986. data/node_modules/xml-name-validator/lib/grammar.pegjs +35 -0
  2987. data/node_modules/xml-name-validator/lib/xml-name-validator.js +17 -0
  2988. data/node_modules/xml-name-validator/package.json +28 -0
  2989. data/node_modules/xmlchars/LICENSE +18 -0
  2990. data/node_modules/xmlchars/README.md +33 -0
  2991. data/node_modules/xmlchars/package.json +51 -0
  2992. data/node_modules/xmlchars/xml/1.0/ed4.d.ts +31 -0
  2993. data/node_modules/xmlchars/xml/1.0/ed4.js +44 -0
  2994. data/node_modules/xmlchars/xml/1.0/ed4.js.map +1 -0
  2995. data/node_modules/xmlchars/xml/1.0/ed5.d.ts +51 -0
  2996. data/node_modules/xmlchars/xml/1.0/ed5.js +105 -0
  2997. data/node_modules/xmlchars/xml/1.0/ed5.js.map +1 -0
  2998. data/node_modules/xmlchars/xml/1.1/ed2.d.ts +73 -0
  2999. data/node_modules/xmlchars/xml/1.1/ed2.js +145 -0
  3000. data/node_modules/xmlchars/xml/1.1/ed2.js.map +1 -0
  3001. data/node_modules/xmlchars/xmlchars.d.ts +170 -0
  3002. data/node_modules/xmlchars/xmlchars.js +191 -0
  3003. data/node_modules/xmlchars/xmlchars.js.map +1 -0
  3004. data/node_modules/xmlchars/xmlns/1.0/ed3.d.ts +28 -0
  3005. data/node_modules/xmlchars/xmlns/1.0/ed3.js +65 -0
  3006. data/node_modules/xmlchars/xmlns/1.0/ed3.js.map +1 -0
  3007. data/node_modules/y18n/CHANGELOG.md +100 -0
  3008. data/node_modules/y18n/LICENSE +13 -0
  3009. data/node_modules/y18n/README.md +127 -0
  3010. data/node_modules/y18n/build/index.cjs +203 -0
  3011. data/node_modules/y18n/build/lib/cjs.js +6 -0
  3012. data/node_modules/y18n/build/lib/index.js +174 -0
  3013. data/node_modules/y18n/build/lib/platform-shims/node.js +19 -0
  3014. data/node_modules/y18n/index.mjs +8 -0
  3015. data/node_modules/y18n/package.json +70 -0
  3016. data/node_modules/yallist/LICENSE +15 -0
  3017. data/node_modules/yallist/README.md +204 -0
  3018. data/node_modules/yallist/iterator.js +8 -0
  3019. data/node_modules/yallist/package.json +29 -0
  3020. data/node_modules/yallist/yallist.js +426 -0
  3021. data/node_modules/yargs/CHANGELOG.md +151 -0
  3022. data/node_modules/yargs/LICENSE +21 -0
  3023. data/node_modules/yargs/README.md +204 -0
  3024. data/node_modules/yargs/browser.mjs +7 -0
  3025. data/node_modules/yargs/build/index.cjs +1 -0
  3026. data/node_modules/yargs/build/lib/argsert.js +62 -0
  3027. data/node_modules/yargs/build/lib/command.js +436 -0
  3028. data/node_modules/yargs/build/lib/completion-templates.js +48 -0
  3029. data/node_modules/yargs/build/lib/completion.js +166 -0
  3030. data/node_modules/yargs/build/lib/middleware.js +85 -0
  3031. data/node_modules/yargs/build/lib/parse-command.js +32 -0
  3032. data/node_modules/yargs/build/lib/typings/common-types.js +9 -0
  3033. data/node_modules/yargs/build/lib/typings/yargs-parser-types.js +1 -0
  3034. data/node_modules/yargs/build/lib/usage.js +567 -0
  3035. data/node_modules/yargs/build/lib/utils/apply-extends.js +59 -0
  3036. data/node_modules/yargs/build/lib/utils/is-promise.js +5 -0
  3037. data/node_modules/yargs/build/lib/utils/levenshtein.js +26 -0
  3038. data/node_modules/yargs/build/lib/utils/maybe-async-result.js +17 -0
  3039. data/node_modules/yargs/build/lib/utils/obj-filter.js +10 -0
  3040. data/node_modules/yargs/build/lib/utils/process-argv.js +17 -0
  3041. data/node_modules/yargs/build/lib/utils/set-blocking.js +12 -0
  3042. data/node_modules/yargs/build/lib/utils/which-module.js +10 -0
  3043. data/node_modules/yargs/build/lib/validation.js +279 -0
  3044. data/node_modules/yargs/build/lib/yargs-factory.js +1452 -0
  3045. data/node_modules/yargs/build/lib/yerror.js +7 -0
  3046. data/node_modules/yargs/helpers/helpers.mjs +10 -0
  3047. data/node_modules/yargs/helpers/index.js +14 -0
  3048. data/node_modules/yargs/helpers/package.json +3 -0
  3049. data/node_modules/yargs/index.cjs +43 -0
  3050. data/node_modules/yargs/index.mjs +8 -0
  3051. data/node_modules/yargs/lib/platform-shims/browser.mjs +94 -0
  3052. data/node_modules/yargs/lib/platform-shims/esm.mjs +67 -0
  3053. data/node_modules/yargs/locales/be.json +46 -0
  3054. data/node_modules/yargs/locales/de.json +46 -0
  3055. data/node_modules/yargs/locales/en.json +51 -0
  3056. data/node_modules/yargs/locales/es.json +46 -0
  3057. data/node_modules/yargs/locales/fi.json +49 -0
  3058. data/node_modules/yargs/locales/fr.json +53 -0
  3059. data/node_modules/yargs/locales/hi.json +49 -0
  3060. data/node_modules/yargs/locales/hu.json +46 -0
  3061. data/node_modules/yargs/locales/id.json +50 -0
  3062. data/node_modules/yargs/locales/it.json +46 -0
  3063. data/node_modules/yargs/locales/ja.json +51 -0
  3064. data/node_modules/yargs/locales/ko.json +49 -0
  3065. data/node_modules/yargs/locales/nb.json +44 -0
  3066. data/node_modules/yargs/locales/nl.json +49 -0
  3067. data/node_modules/yargs/locales/nn.json +44 -0
  3068. data/node_modules/yargs/locales/pirate.json +13 -0
  3069. data/node_modules/yargs/locales/pl.json +49 -0
  3070. data/node_modules/yargs/locales/pt.json +45 -0
  3071. data/node_modules/yargs/locales/pt_BR.json +48 -0
  3072. data/node_modules/yargs/locales/ru.json +46 -0
  3073. data/node_modules/yargs/locales/th.json +46 -0
  3074. data/node_modules/yargs/locales/tr.json +48 -0
  3075. data/node_modules/yargs/locales/uk_UA.json +51 -0
  3076. data/node_modules/yargs/locales/zh_CN.json +48 -0
  3077. data/node_modules/yargs/locales/zh_TW.json +47 -0
  3078. data/node_modules/yargs/package.json +116 -0
  3079. data/node_modules/yargs/yargs +9 -0
  3080. data/node_modules/yargs-parser/CHANGELOG.md +263 -0
  3081. data/node_modules/yargs-parser/LICENSE.txt +14 -0
  3082. data/node_modules/yargs-parser/README.md +518 -0
  3083. data/node_modules/yargs-parser/browser.js +29 -0
  3084. data/node_modules/yargs-parser/build/index.cjs +1042 -0
  3085. data/node_modules/yargs-parser/build/lib/index.js +59 -0
  3086. data/node_modules/yargs-parser/build/lib/string-utils.js +65 -0
  3087. data/node_modules/yargs-parser/build/lib/tokenize-arg-string.js +40 -0
  3088. data/node_modules/yargs-parser/build/lib/yargs-parser-types.js +12 -0
  3089. data/node_modules/yargs-parser/build/lib/yargs-parser.js +1037 -0
  3090. data/node_modules/yargs-parser/package.json +87 -0
  3091. data/package.json +1 -1
  3092. data/release.sh +2 -1
  3093. data/spec/depends/api_spec.rb +184 -0
  3094. data/spec/depends/spec_helper.rb +27 -0
  3095. data/spec/fixtures/depends/.gitignore +2 -0
  3096. data/spec/fixtures/depends/app/controllers/api/api_keys_controller.rb +2 -0
  3097. data/spec/fixtures/depends/app/controllers/organizations_controller.rb +2 -0
  3098. data/spec/fixtures/depends/app/models/api_key.rb +2 -0
  3099. data/spec/fixtures/depends/app/models/configuration.rb +2 -0
  3100. data/spec/fixtures/depends/app/models/show.rb +2 -0
  3101. data/spec/fixtures/depends/app/models/user.rb +2 -0
  3102. data/spec/fixtures/depends/revoke_api_key.appmap.json +901 -0
  3103. data/spec/fixtures/depends/spec/actual_rspec_test.rb +7 -0
  3104. data/spec/fixtures/depends/spec/api_spec.rb +2 -0
  3105. data/spec/fixtures/depends/spec/user_spec.rb +2 -0
  3106. data/spec/fixtures/depends/test/actual_minitest_test.rb +5 -0
  3107. data/spec/fixtures/depends/user_page_scenario.appmap.json +1776 -0
  3108. data/spec/fixtures/rails5_users_app/create_app +3 -3
  3109. data/spec/fixtures/rails6_users_app/create_app +3 -3
  3110. data/spec/fixtures/rails6_users_app/lib/tasks/appmap.rake +11 -1
  3111. data/test/agent_setup_status_test.rb +6 -3
  3112. data/test/test_helper.rb +3 -0
  3113. data/yarn.lock +422 -20
  3114. metadata +3097 -2
@@ -0,0 +1,4193 @@
1
+ import require$$0 from 'crypto';
2
+ import sqliteParser from 'sqlite-parser';
3
+
4
+ var commonjsGlobal = typeof globalThis !== 'undefined' ? globalThis : typeof window !== 'undefined' ? window : typeof global !== 'undefined' ? global : typeof self !== 'undefined' ? self : {};
5
+
6
+ function createCommonjsModule(fn) {
7
+ var module = { exports: {} };
8
+ return fn(module, module.exports), module.exports;
9
+ }
10
+
11
+ function commonjsRequire (path) {
12
+ throw new Error('Could not dynamically require "' + path + '". Please configure the dynamicRequireTargets or/and ignoreDynamicRequires option of @rollup/plugin-commonjs appropriately for this require call to work.');
13
+ }
14
+
15
+ var core = createCommonjsModule(function (module, exports) {
16
+ (function (root, factory) {
17
+ {
18
+ // CommonJS
19
+ module.exports = factory();
20
+ }
21
+ }(commonjsGlobal, function () {
22
+
23
+ /*globals window, global, require*/
24
+
25
+ /**
26
+ * CryptoJS core components.
27
+ */
28
+ var CryptoJS = CryptoJS || (function (Math, undefined$1) {
29
+
30
+ var crypto;
31
+
32
+ // Native crypto from window (Browser)
33
+ if (typeof window !== 'undefined' && window.crypto) {
34
+ crypto = window.crypto;
35
+ }
36
+
37
+ // Native (experimental IE 11) crypto from window (Browser)
38
+ if (!crypto && typeof window !== 'undefined' && window.msCrypto) {
39
+ crypto = window.msCrypto;
40
+ }
41
+
42
+ // Native crypto from global (NodeJS)
43
+ if (!crypto && typeof commonjsGlobal !== 'undefined' && commonjsGlobal.crypto) {
44
+ crypto = commonjsGlobal.crypto;
45
+ }
46
+
47
+ // Native crypto import via require (NodeJS)
48
+ if (!crypto && typeof commonjsRequire === 'function') {
49
+ try {
50
+ crypto = require$$0;
51
+ } catch (err) {}
52
+ }
53
+
54
+ /*
55
+ * Cryptographically secure pseudorandom number generator
56
+ *
57
+ * As Math.random() is cryptographically not safe to use
58
+ */
59
+ var cryptoSecureRandomInt = function () {
60
+ if (crypto) {
61
+ // Use getRandomValues method (Browser)
62
+ if (typeof crypto.getRandomValues === 'function') {
63
+ try {
64
+ return crypto.getRandomValues(new Uint32Array(1))[0];
65
+ } catch (err) {}
66
+ }
67
+
68
+ // Use randomBytes method (NodeJS)
69
+ if (typeof crypto.randomBytes === 'function') {
70
+ try {
71
+ return crypto.randomBytes(4).readInt32LE();
72
+ } catch (err) {}
73
+ }
74
+ }
75
+
76
+ throw new Error('Native crypto module could not be used to get secure random number.');
77
+ };
78
+
79
+ /*
80
+ * Local polyfill of Object.create
81
+
82
+ */
83
+ var create = Object.create || (function () {
84
+ function F() {}
85
+
86
+ return function (obj) {
87
+ var subtype;
88
+
89
+ F.prototype = obj;
90
+
91
+ subtype = new F();
92
+
93
+ F.prototype = null;
94
+
95
+ return subtype;
96
+ };
97
+ }());
98
+
99
+ /**
100
+ * CryptoJS namespace.
101
+ */
102
+ var C = {};
103
+
104
+ /**
105
+ * Library namespace.
106
+ */
107
+ var C_lib = C.lib = {};
108
+
109
+ /**
110
+ * Base object for prototypal inheritance.
111
+ */
112
+ var Base = C_lib.Base = (function () {
113
+
114
+
115
+ return {
116
+ /**
117
+ * Creates a new object that inherits from this object.
118
+ *
119
+ * @param {Object} overrides Properties to copy into the new object.
120
+ *
121
+ * @return {Object} The new object.
122
+ *
123
+ * @static
124
+ *
125
+ * @example
126
+ *
127
+ * var MyType = CryptoJS.lib.Base.extend({
128
+ * field: 'value',
129
+ *
130
+ * method: function () {
131
+ * }
132
+ * });
133
+ */
134
+ extend: function (overrides) {
135
+ // Spawn
136
+ var subtype = create(this);
137
+
138
+ // Augment
139
+ if (overrides) {
140
+ subtype.mixIn(overrides);
141
+ }
142
+
143
+ // Create default initializer
144
+ if (!subtype.hasOwnProperty('init') || this.init === subtype.init) {
145
+ subtype.init = function () {
146
+ subtype.$super.init.apply(this, arguments);
147
+ };
148
+ }
149
+
150
+ // Initializer's prototype is the subtype object
151
+ subtype.init.prototype = subtype;
152
+
153
+ // Reference supertype
154
+ subtype.$super = this;
155
+
156
+ return subtype;
157
+ },
158
+
159
+ /**
160
+ * Extends this object and runs the init method.
161
+ * Arguments to create() will be passed to init().
162
+ *
163
+ * @return {Object} The new object.
164
+ *
165
+ * @static
166
+ *
167
+ * @example
168
+ *
169
+ * var instance = MyType.create();
170
+ */
171
+ create: function () {
172
+ var instance = this.extend();
173
+ instance.init.apply(instance, arguments);
174
+
175
+ return instance;
176
+ },
177
+
178
+ /**
179
+ * Initializes a newly created object.
180
+ * Override this method to add some logic when your objects are created.
181
+ *
182
+ * @example
183
+ *
184
+ * var MyType = CryptoJS.lib.Base.extend({
185
+ * init: function () {
186
+ * // ...
187
+ * }
188
+ * });
189
+ */
190
+ init: function () {
191
+ },
192
+
193
+ /**
194
+ * Copies properties into this object.
195
+ *
196
+ * @param {Object} properties The properties to mix in.
197
+ *
198
+ * @example
199
+ *
200
+ * MyType.mixIn({
201
+ * field: 'value'
202
+ * });
203
+ */
204
+ mixIn: function (properties) {
205
+ for (var propertyName in properties) {
206
+ if (properties.hasOwnProperty(propertyName)) {
207
+ this[propertyName] = properties[propertyName];
208
+ }
209
+ }
210
+
211
+ // IE won't copy toString using the loop above
212
+ if (properties.hasOwnProperty('toString')) {
213
+ this.toString = properties.toString;
214
+ }
215
+ },
216
+
217
+ /**
218
+ * Creates a copy of this object.
219
+ *
220
+ * @return {Object} The clone.
221
+ *
222
+ * @example
223
+ *
224
+ * var clone = instance.clone();
225
+ */
226
+ clone: function () {
227
+ return this.init.prototype.extend(this);
228
+ }
229
+ };
230
+ }());
231
+
232
+ /**
233
+ * An array of 32-bit words.
234
+ *
235
+ * @property {Array} words The array of 32-bit words.
236
+ * @property {number} sigBytes The number of significant bytes in this word array.
237
+ */
238
+ var WordArray = C_lib.WordArray = Base.extend({
239
+ /**
240
+ * Initializes a newly created word array.
241
+ *
242
+ * @param {Array} words (Optional) An array of 32-bit words.
243
+ * @param {number} sigBytes (Optional) The number of significant bytes in the words.
244
+ *
245
+ * @example
246
+ *
247
+ * var wordArray = CryptoJS.lib.WordArray.create();
248
+ * var wordArray = CryptoJS.lib.WordArray.create([0x00010203, 0x04050607]);
249
+ * var wordArray = CryptoJS.lib.WordArray.create([0x00010203, 0x04050607], 6);
250
+ */
251
+ init: function (words, sigBytes) {
252
+ words = this.words = words || [];
253
+
254
+ if (sigBytes != undefined$1) {
255
+ this.sigBytes = sigBytes;
256
+ } else {
257
+ this.sigBytes = words.length * 4;
258
+ }
259
+ },
260
+
261
+ /**
262
+ * Converts this word array to a string.
263
+ *
264
+ * @param {Encoder} encoder (Optional) The encoding strategy to use. Default: CryptoJS.enc.Hex
265
+ *
266
+ * @return {string} The stringified word array.
267
+ *
268
+ * @example
269
+ *
270
+ * var string = wordArray + '';
271
+ * var string = wordArray.toString();
272
+ * var string = wordArray.toString(CryptoJS.enc.Utf8);
273
+ */
274
+ toString: function (encoder) {
275
+ return (encoder || Hex).stringify(this);
276
+ },
277
+
278
+ /**
279
+ * Concatenates a word array to this word array.
280
+ *
281
+ * @param {WordArray} wordArray The word array to append.
282
+ *
283
+ * @return {WordArray} This word array.
284
+ *
285
+ * @example
286
+ *
287
+ * wordArray1.concat(wordArray2);
288
+ */
289
+ concat: function (wordArray) {
290
+ // Shortcuts
291
+ var thisWords = this.words;
292
+ var thatWords = wordArray.words;
293
+ var thisSigBytes = this.sigBytes;
294
+ var thatSigBytes = wordArray.sigBytes;
295
+
296
+ // Clamp excess bits
297
+ this.clamp();
298
+
299
+ // Concat
300
+ if (thisSigBytes % 4) {
301
+ // Copy one byte at a time
302
+ for (var i = 0; i < thatSigBytes; i++) {
303
+ var thatByte = (thatWords[i >>> 2] >>> (24 - (i % 4) * 8)) & 0xff;
304
+ thisWords[(thisSigBytes + i) >>> 2] |= thatByte << (24 - ((thisSigBytes + i) % 4) * 8);
305
+ }
306
+ } else {
307
+ // Copy one word at a time
308
+ for (var i = 0; i < thatSigBytes; i += 4) {
309
+ thisWords[(thisSigBytes + i) >>> 2] = thatWords[i >>> 2];
310
+ }
311
+ }
312
+ this.sigBytes += thatSigBytes;
313
+
314
+ // Chainable
315
+ return this;
316
+ },
317
+
318
+ /**
319
+ * Removes insignificant bits.
320
+ *
321
+ * @example
322
+ *
323
+ * wordArray.clamp();
324
+ */
325
+ clamp: function () {
326
+ // Shortcuts
327
+ var words = this.words;
328
+ var sigBytes = this.sigBytes;
329
+
330
+ // Clamp
331
+ words[sigBytes >>> 2] &= 0xffffffff << (32 - (sigBytes % 4) * 8);
332
+ words.length = Math.ceil(sigBytes / 4);
333
+ },
334
+
335
+ /**
336
+ * Creates a copy of this word array.
337
+ *
338
+ * @return {WordArray} The clone.
339
+ *
340
+ * @example
341
+ *
342
+ * var clone = wordArray.clone();
343
+ */
344
+ clone: function () {
345
+ var clone = Base.clone.call(this);
346
+ clone.words = this.words.slice(0);
347
+
348
+ return clone;
349
+ },
350
+
351
+ /**
352
+ * Creates a word array filled with random bytes.
353
+ *
354
+ * @param {number} nBytes The number of random bytes to generate.
355
+ *
356
+ * @return {WordArray} The random word array.
357
+ *
358
+ * @static
359
+ *
360
+ * @example
361
+ *
362
+ * var wordArray = CryptoJS.lib.WordArray.random(16);
363
+ */
364
+ random: function (nBytes) {
365
+ var words = [];
366
+
367
+ for (var i = 0; i < nBytes; i += 4) {
368
+ words.push(cryptoSecureRandomInt());
369
+ }
370
+
371
+ return new WordArray.init(words, nBytes);
372
+ }
373
+ });
374
+
375
+ /**
376
+ * Encoder namespace.
377
+ */
378
+ var C_enc = C.enc = {};
379
+
380
+ /**
381
+ * Hex encoding strategy.
382
+ */
383
+ var Hex = C_enc.Hex = {
384
+ /**
385
+ * Converts a word array to a hex string.
386
+ *
387
+ * @param {WordArray} wordArray The word array.
388
+ *
389
+ * @return {string} The hex string.
390
+ *
391
+ * @static
392
+ *
393
+ * @example
394
+ *
395
+ * var hexString = CryptoJS.enc.Hex.stringify(wordArray);
396
+ */
397
+ stringify: function (wordArray) {
398
+ // Shortcuts
399
+ var words = wordArray.words;
400
+ var sigBytes = wordArray.sigBytes;
401
+
402
+ // Convert
403
+ var hexChars = [];
404
+ for (var i = 0; i < sigBytes; i++) {
405
+ var bite = (words[i >>> 2] >>> (24 - (i % 4) * 8)) & 0xff;
406
+ hexChars.push((bite >>> 4).toString(16));
407
+ hexChars.push((bite & 0x0f).toString(16));
408
+ }
409
+
410
+ return hexChars.join('');
411
+ },
412
+
413
+ /**
414
+ * Converts a hex string to a word array.
415
+ *
416
+ * @param {string} hexStr The hex string.
417
+ *
418
+ * @return {WordArray} The word array.
419
+ *
420
+ * @static
421
+ *
422
+ * @example
423
+ *
424
+ * var wordArray = CryptoJS.enc.Hex.parse(hexString);
425
+ */
426
+ parse: function (hexStr) {
427
+ // Shortcut
428
+ var hexStrLength = hexStr.length;
429
+
430
+ // Convert
431
+ var words = [];
432
+ for (var i = 0; i < hexStrLength; i += 2) {
433
+ words[i >>> 3] |= parseInt(hexStr.substr(i, 2), 16) << (24 - (i % 8) * 4);
434
+ }
435
+
436
+ return new WordArray.init(words, hexStrLength / 2);
437
+ }
438
+ };
439
+
440
+ /**
441
+ * Latin1 encoding strategy.
442
+ */
443
+ var Latin1 = C_enc.Latin1 = {
444
+ /**
445
+ * Converts a word array to a Latin1 string.
446
+ *
447
+ * @param {WordArray} wordArray The word array.
448
+ *
449
+ * @return {string} The Latin1 string.
450
+ *
451
+ * @static
452
+ *
453
+ * @example
454
+ *
455
+ * var latin1String = CryptoJS.enc.Latin1.stringify(wordArray);
456
+ */
457
+ stringify: function (wordArray) {
458
+ // Shortcuts
459
+ var words = wordArray.words;
460
+ var sigBytes = wordArray.sigBytes;
461
+
462
+ // Convert
463
+ var latin1Chars = [];
464
+ for (var i = 0; i < sigBytes; i++) {
465
+ var bite = (words[i >>> 2] >>> (24 - (i % 4) * 8)) & 0xff;
466
+ latin1Chars.push(String.fromCharCode(bite));
467
+ }
468
+
469
+ return latin1Chars.join('');
470
+ },
471
+
472
+ /**
473
+ * Converts a Latin1 string to a word array.
474
+ *
475
+ * @param {string} latin1Str The Latin1 string.
476
+ *
477
+ * @return {WordArray} The word array.
478
+ *
479
+ * @static
480
+ *
481
+ * @example
482
+ *
483
+ * var wordArray = CryptoJS.enc.Latin1.parse(latin1String);
484
+ */
485
+ parse: function (latin1Str) {
486
+ // Shortcut
487
+ var latin1StrLength = latin1Str.length;
488
+
489
+ // Convert
490
+ var words = [];
491
+ for (var i = 0; i < latin1StrLength; i++) {
492
+ words[i >>> 2] |= (latin1Str.charCodeAt(i) & 0xff) << (24 - (i % 4) * 8);
493
+ }
494
+
495
+ return new WordArray.init(words, latin1StrLength);
496
+ }
497
+ };
498
+
499
+ /**
500
+ * UTF-8 encoding strategy.
501
+ */
502
+ var Utf8 = C_enc.Utf8 = {
503
+ /**
504
+ * Converts a word array to a UTF-8 string.
505
+ *
506
+ * @param {WordArray} wordArray The word array.
507
+ *
508
+ * @return {string} The UTF-8 string.
509
+ *
510
+ * @static
511
+ *
512
+ * @example
513
+ *
514
+ * var utf8String = CryptoJS.enc.Utf8.stringify(wordArray);
515
+ */
516
+ stringify: function (wordArray) {
517
+ try {
518
+ return decodeURIComponent(escape(Latin1.stringify(wordArray)));
519
+ } catch (e) {
520
+ throw new Error('Malformed UTF-8 data');
521
+ }
522
+ },
523
+
524
+ /**
525
+ * Converts a UTF-8 string to a word array.
526
+ *
527
+ * @param {string} utf8Str The UTF-8 string.
528
+ *
529
+ * @return {WordArray} The word array.
530
+ *
531
+ * @static
532
+ *
533
+ * @example
534
+ *
535
+ * var wordArray = CryptoJS.enc.Utf8.parse(utf8String);
536
+ */
537
+ parse: function (utf8Str) {
538
+ return Latin1.parse(unescape(encodeURIComponent(utf8Str)));
539
+ }
540
+ };
541
+
542
+ /**
543
+ * Abstract buffered block algorithm template.
544
+ *
545
+ * The property blockSize must be implemented in a concrete subtype.
546
+ *
547
+ * @property {number} _minBufferSize The number of blocks that should be kept unprocessed in the buffer. Default: 0
548
+ */
549
+ var BufferedBlockAlgorithm = C_lib.BufferedBlockAlgorithm = Base.extend({
550
+ /**
551
+ * Resets this block algorithm's data buffer to its initial state.
552
+ *
553
+ * @example
554
+ *
555
+ * bufferedBlockAlgorithm.reset();
556
+ */
557
+ reset: function () {
558
+ // Initial values
559
+ this._data = new WordArray.init();
560
+ this._nDataBytes = 0;
561
+ },
562
+
563
+ /**
564
+ * Adds new data to this block algorithm's buffer.
565
+ *
566
+ * @param {WordArray|string} data The data to append. Strings are converted to a WordArray using UTF-8.
567
+ *
568
+ * @example
569
+ *
570
+ * bufferedBlockAlgorithm._append('data');
571
+ * bufferedBlockAlgorithm._append(wordArray);
572
+ */
573
+ _append: function (data) {
574
+ // Convert string to WordArray, else assume WordArray already
575
+ if (typeof data == 'string') {
576
+ data = Utf8.parse(data);
577
+ }
578
+
579
+ // Append
580
+ this._data.concat(data);
581
+ this._nDataBytes += data.sigBytes;
582
+ },
583
+
584
+ /**
585
+ * Processes available data blocks.
586
+ *
587
+ * This method invokes _doProcessBlock(offset), which must be implemented by a concrete subtype.
588
+ *
589
+ * @param {boolean} doFlush Whether all blocks and partial blocks should be processed.
590
+ *
591
+ * @return {WordArray} The processed data.
592
+ *
593
+ * @example
594
+ *
595
+ * var processedData = bufferedBlockAlgorithm._process();
596
+ * var processedData = bufferedBlockAlgorithm._process(!!'flush');
597
+ */
598
+ _process: function (doFlush) {
599
+ var processedWords;
600
+
601
+ // Shortcuts
602
+ var data = this._data;
603
+ var dataWords = data.words;
604
+ var dataSigBytes = data.sigBytes;
605
+ var blockSize = this.blockSize;
606
+ var blockSizeBytes = blockSize * 4;
607
+
608
+ // Count blocks ready
609
+ var nBlocksReady = dataSigBytes / blockSizeBytes;
610
+ if (doFlush) {
611
+ // Round up to include partial blocks
612
+ nBlocksReady = Math.ceil(nBlocksReady);
613
+ } else {
614
+ // Round down to include only full blocks,
615
+ // less the number of blocks that must remain in the buffer
616
+ nBlocksReady = Math.max((nBlocksReady | 0) - this._minBufferSize, 0);
617
+ }
618
+
619
+ // Count words ready
620
+ var nWordsReady = nBlocksReady * blockSize;
621
+
622
+ // Count bytes ready
623
+ var nBytesReady = Math.min(nWordsReady * 4, dataSigBytes);
624
+
625
+ // Process blocks
626
+ if (nWordsReady) {
627
+ for (var offset = 0; offset < nWordsReady; offset += blockSize) {
628
+ // Perform concrete-algorithm logic
629
+ this._doProcessBlock(dataWords, offset);
630
+ }
631
+
632
+ // Remove processed words
633
+ processedWords = dataWords.splice(0, nWordsReady);
634
+ data.sigBytes -= nBytesReady;
635
+ }
636
+
637
+ // Return processed words
638
+ return new WordArray.init(processedWords, nBytesReady);
639
+ },
640
+
641
+ /**
642
+ * Creates a copy of this object.
643
+ *
644
+ * @return {Object} The clone.
645
+ *
646
+ * @example
647
+ *
648
+ * var clone = bufferedBlockAlgorithm.clone();
649
+ */
650
+ clone: function () {
651
+ var clone = Base.clone.call(this);
652
+ clone._data = this._data.clone();
653
+
654
+ return clone;
655
+ },
656
+
657
+ _minBufferSize: 0
658
+ });
659
+
660
+ /**
661
+ * Abstract hasher template.
662
+ *
663
+ * @property {number} blockSize The number of 32-bit words this hasher operates on. Default: 16 (512 bits)
664
+ */
665
+ C_lib.Hasher = BufferedBlockAlgorithm.extend({
666
+ /**
667
+ * Configuration options.
668
+ */
669
+ cfg: Base.extend(),
670
+
671
+ /**
672
+ * Initializes a newly created hasher.
673
+ *
674
+ * @param {Object} cfg (Optional) The configuration options to use for this hash computation.
675
+ *
676
+ * @example
677
+ *
678
+ * var hasher = CryptoJS.algo.SHA256.create();
679
+ */
680
+ init: function (cfg) {
681
+ // Apply config defaults
682
+ this.cfg = this.cfg.extend(cfg);
683
+
684
+ // Set initial values
685
+ this.reset();
686
+ },
687
+
688
+ /**
689
+ * Resets this hasher to its initial state.
690
+ *
691
+ * @example
692
+ *
693
+ * hasher.reset();
694
+ */
695
+ reset: function () {
696
+ // Reset data buffer
697
+ BufferedBlockAlgorithm.reset.call(this);
698
+
699
+ // Perform concrete-hasher logic
700
+ this._doReset();
701
+ },
702
+
703
+ /**
704
+ * Updates this hasher with a message.
705
+ *
706
+ * @param {WordArray|string} messageUpdate The message to append.
707
+ *
708
+ * @return {Hasher} This hasher.
709
+ *
710
+ * @example
711
+ *
712
+ * hasher.update('message');
713
+ * hasher.update(wordArray);
714
+ */
715
+ update: function (messageUpdate) {
716
+ // Append
717
+ this._append(messageUpdate);
718
+
719
+ // Update the hash
720
+ this._process();
721
+
722
+ // Chainable
723
+ return this;
724
+ },
725
+
726
+ /**
727
+ * Finalizes the hash computation.
728
+ * Note that the finalize operation is effectively a destructive, read-once operation.
729
+ *
730
+ * @param {WordArray|string} messageUpdate (Optional) A final message update.
731
+ *
732
+ * @return {WordArray} The hash.
733
+ *
734
+ * @example
735
+ *
736
+ * var hash = hasher.finalize();
737
+ * var hash = hasher.finalize('message');
738
+ * var hash = hasher.finalize(wordArray);
739
+ */
740
+ finalize: function (messageUpdate) {
741
+ // Final message update
742
+ if (messageUpdate) {
743
+ this._append(messageUpdate);
744
+ }
745
+
746
+ // Perform concrete-hasher logic
747
+ var hash = this._doFinalize();
748
+
749
+ return hash;
750
+ },
751
+
752
+ blockSize: 512/32,
753
+
754
+ /**
755
+ * Creates a shortcut function to a hasher's object interface.
756
+ *
757
+ * @param {Hasher} hasher The hasher to create a helper for.
758
+ *
759
+ * @return {Function} The shortcut function.
760
+ *
761
+ * @static
762
+ *
763
+ * @example
764
+ *
765
+ * var SHA256 = CryptoJS.lib.Hasher._createHelper(CryptoJS.algo.SHA256);
766
+ */
767
+ _createHelper: function (hasher) {
768
+ return function (message, cfg) {
769
+ return new hasher.init(cfg).finalize(message);
770
+ };
771
+ },
772
+
773
+ /**
774
+ * Creates a shortcut function to the HMAC's object interface.
775
+ *
776
+ * @param {Hasher} hasher The hasher to use in this HMAC helper.
777
+ *
778
+ * @return {Function} The shortcut function.
779
+ *
780
+ * @static
781
+ *
782
+ * @example
783
+ *
784
+ * var HmacSHA256 = CryptoJS.lib.Hasher._createHmacHelper(CryptoJS.algo.SHA256);
785
+ */
786
+ _createHmacHelper: function (hasher) {
787
+ return function (message, key) {
788
+ return new C_algo.HMAC.init(hasher, key).finalize(message);
789
+ };
790
+ }
791
+ });
792
+
793
+ /**
794
+ * Algorithm namespace.
795
+ */
796
+ var C_algo = C.algo = {};
797
+
798
+ return C;
799
+ }(Math));
800
+
801
+
802
+ return CryptoJS;
803
+
804
+ }));
805
+ });
806
+
807
+ var sha256 = createCommonjsModule(function (module, exports) {
808
+ (function (root, factory) {
809
+ {
810
+ // CommonJS
811
+ module.exports = factory(core);
812
+ }
813
+ }(commonjsGlobal, function (CryptoJS) {
814
+
815
+ (function (Math) {
816
+ // Shortcuts
817
+ var C = CryptoJS;
818
+ var C_lib = C.lib;
819
+ var WordArray = C_lib.WordArray;
820
+ var Hasher = C_lib.Hasher;
821
+ var C_algo = C.algo;
822
+
823
+ // Initialization and round constants tables
824
+ var H = [];
825
+ var K = [];
826
+
827
+ // Compute constants
828
+ (function () {
829
+ function isPrime(n) {
830
+ var sqrtN = Math.sqrt(n);
831
+ for (var factor = 2; factor <= sqrtN; factor++) {
832
+ if (!(n % factor)) {
833
+ return false;
834
+ }
835
+ }
836
+
837
+ return true;
838
+ }
839
+
840
+ function getFractionalBits(n) {
841
+ return ((n - (n | 0)) * 0x100000000) | 0;
842
+ }
843
+
844
+ var n = 2;
845
+ var nPrime = 0;
846
+ while (nPrime < 64) {
847
+ if (isPrime(n)) {
848
+ if (nPrime < 8) {
849
+ H[nPrime] = getFractionalBits(Math.pow(n, 1 / 2));
850
+ }
851
+ K[nPrime] = getFractionalBits(Math.pow(n, 1 / 3));
852
+
853
+ nPrime++;
854
+ }
855
+
856
+ n++;
857
+ }
858
+ }());
859
+
860
+ // Reusable object
861
+ var W = [];
862
+
863
+ /**
864
+ * SHA-256 hash algorithm.
865
+ */
866
+ var SHA256 = C_algo.SHA256 = Hasher.extend({
867
+ _doReset: function () {
868
+ this._hash = new WordArray.init(H.slice(0));
869
+ },
870
+
871
+ _doProcessBlock: function (M, offset) {
872
+ // Shortcut
873
+ var H = this._hash.words;
874
+
875
+ // Working variables
876
+ var a = H[0];
877
+ var b = H[1];
878
+ var c = H[2];
879
+ var d = H[3];
880
+ var e = H[4];
881
+ var f = H[5];
882
+ var g = H[6];
883
+ var h = H[7];
884
+
885
+ // Computation
886
+ for (var i = 0; i < 64; i++) {
887
+ if (i < 16) {
888
+ W[i] = M[offset + i] | 0;
889
+ } else {
890
+ var gamma0x = W[i - 15];
891
+ var gamma0 = ((gamma0x << 25) | (gamma0x >>> 7)) ^
892
+ ((gamma0x << 14) | (gamma0x >>> 18)) ^
893
+ (gamma0x >>> 3);
894
+
895
+ var gamma1x = W[i - 2];
896
+ var gamma1 = ((gamma1x << 15) | (gamma1x >>> 17)) ^
897
+ ((gamma1x << 13) | (gamma1x >>> 19)) ^
898
+ (gamma1x >>> 10);
899
+
900
+ W[i] = gamma0 + W[i - 7] + gamma1 + W[i - 16];
901
+ }
902
+
903
+ var ch = (e & f) ^ (~e & g);
904
+ var maj = (a & b) ^ (a & c) ^ (b & c);
905
+
906
+ var sigma0 = ((a << 30) | (a >>> 2)) ^ ((a << 19) | (a >>> 13)) ^ ((a << 10) | (a >>> 22));
907
+ var sigma1 = ((e << 26) | (e >>> 6)) ^ ((e << 21) | (e >>> 11)) ^ ((e << 7) | (e >>> 25));
908
+
909
+ var t1 = h + sigma1 + ch + K[i] + W[i];
910
+ var t2 = sigma0 + maj;
911
+
912
+ h = g;
913
+ g = f;
914
+ f = e;
915
+ e = (d + t1) | 0;
916
+ d = c;
917
+ c = b;
918
+ b = a;
919
+ a = (t1 + t2) | 0;
920
+ }
921
+
922
+ // Intermediate hash value
923
+ H[0] = (H[0] + a) | 0;
924
+ H[1] = (H[1] + b) | 0;
925
+ H[2] = (H[2] + c) | 0;
926
+ H[3] = (H[3] + d) | 0;
927
+ H[4] = (H[4] + e) | 0;
928
+ H[5] = (H[5] + f) | 0;
929
+ H[6] = (H[6] + g) | 0;
930
+ H[7] = (H[7] + h) | 0;
931
+ },
932
+
933
+ _doFinalize: function () {
934
+ // Shortcuts
935
+ var data = this._data;
936
+ var dataWords = data.words;
937
+
938
+ var nBitsTotal = this._nDataBytes * 8;
939
+ var nBitsLeft = data.sigBytes * 8;
940
+
941
+ // Add padding
942
+ dataWords[nBitsLeft >>> 5] |= 0x80 << (24 - nBitsLeft % 32);
943
+ dataWords[(((nBitsLeft + 64) >>> 9) << 4) + 14] = Math.floor(nBitsTotal / 0x100000000);
944
+ dataWords[(((nBitsLeft + 64) >>> 9) << 4) + 15] = nBitsTotal;
945
+ data.sigBytes = dataWords.length * 4;
946
+
947
+ // Hash final blocks
948
+ this._process();
949
+
950
+ // Return final computed hash
951
+ return this._hash;
952
+ },
953
+
954
+ clone: function () {
955
+ var clone = Hasher.clone.call(this);
956
+ clone._hash = this._hash.clone();
957
+
958
+ return clone;
959
+ }
960
+ });
961
+
962
+ /**
963
+ * Shortcut function to the hasher's object interface.
964
+ *
965
+ * @param {WordArray|string} message The message to hash.
966
+ *
967
+ * @return {WordArray} The hash.
968
+ *
969
+ * @static
970
+ *
971
+ * @example
972
+ *
973
+ * var hash = CryptoJS.SHA256('message');
974
+ * var hash = CryptoJS.SHA256(wordArray);
975
+ */
976
+ C.SHA256 = Hasher._createHelper(SHA256);
977
+
978
+ /**
979
+ * Shortcut function to the HMAC's object interface.
980
+ *
981
+ * @param {WordArray|string} message The message to hash.
982
+ * @param {WordArray|string} key The secret key.
983
+ *
984
+ * @return {WordArray} The HMAC.
985
+ *
986
+ * @static
987
+ *
988
+ * @example
989
+ *
990
+ * var hmac = CryptoJS.HmacSHA256(message, key);
991
+ */
992
+ C.HmacSHA256 = Hasher._createHmacHelper(SHA256);
993
+ }(Math));
994
+
995
+
996
+ return CryptoJS.SHA256;
997
+
998
+ }));
999
+ });
1000
+
1001
+ const hasProp = (obj, prop) =>
1002
+ Object.prototype.hasOwnProperty.call(obj, prop);
1003
+
1004
+ function isFalsey(valueObj) {
1005
+ if (!valueObj) {
1006
+ return true;
1007
+ }
1008
+ if (valueObj.class === 'FalseClass') {
1009
+ return true;
1010
+ }
1011
+ if (valueObj.class === 'Array' && valueObj.value === '[]') {
1012
+ return true;
1013
+ }
1014
+ if (valueObj.value === '') {
1015
+ return true;
1016
+ }
1017
+
1018
+ return false;
1019
+ }
1020
+
1021
+ function isCommand(event) {
1022
+ if (event.http_server_request) {
1023
+ return true;
1024
+ }
1025
+ if (event.codeObject.labels.has('command')) {
1026
+ return true;
1027
+ }
1028
+ return false;
1029
+ }
1030
+
1031
+ function capitalizeString(str) {
1032
+ if (typeof str !== 'string') {
1033
+ return '';
1034
+ }
1035
+
1036
+ return str.slice(0, 1).toUpperCase() + str.slice(1).toLowerCase();
1037
+ }
1038
+
1039
+ function getHttpLabel(event) {
1040
+ if (hasProp(event, 'http_server_request') === false) {
1041
+ return null;
1042
+ }
1043
+
1044
+ const requestMethod = event.http_server_request.request_method;
1045
+ const pathInfo = event.http_server_request.path_info;
1046
+ let label;
1047
+
1048
+ try {
1049
+ // the url is fake, we only care about the path info anyway
1050
+ const url = new URL(pathInfo, 'http://hostname');
1051
+ label = `${requestMethod} ${url.pathname}`;
1052
+ } catch (ex) {
1053
+ label = 'HTTP Request';
1054
+ }
1055
+
1056
+ return label;
1057
+ }
1058
+
1059
+ const sqlLabels = new Set([
1060
+ 'insert',
1061
+ 'update',
1062
+ 'select',
1063
+ 'delete',
1064
+ 'alter',
1065
+ 'create',
1066
+ 'drop',
1067
+ 'rename',
1068
+ 'truncate',
1069
+ 'replace',
1070
+ 'savepoint',
1071
+ 'release',
1072
+ 'rollback',
1073
+ 'lock',
1074
+ 'unlock',
1075
+ 'set',
1076
+ 'start',
1077
+ 'call',
1078
+ 'delete',
1079
+ 'do',
1080
+ 'perform',
1081
+ 'handler',
1082
+ 'load',
1083
+ 'purge',
1084
+ 'reset',
1085
+ 'prepare',
1086
+ 'execute',
1087
+ 'deallocate',
1088
+ 'xa',
1089
+ ]);
1090
+
1091
+ function getSqlLabelFromString(sqlString) {
1092
+ const sqlChars = [...sqlString.trimLeft()];
1093
+ if (sqlChars.length > 0 && sqlChars[0] === '(') {
1094
+ // if the query is wrapped in parenthesis, drop the opening parenthesis
1095
+ // it doesn't matter if we leave a hanging closing parenthesis.
1096
+ // e.g. (SELECT 1);
1097
+
1098
+ sqlChars.shift();
1099
+ }
1100
+
1101
+ // drop sub-queries and parenthesized expressions
1102
+ let depth = 0;
1103
+ const topLevelSql = sqlChars
1104
+ .reduce((arr, c) => {
1105
+ if (c === '(') {
1106
+ depth += 1;
1107
+ }
1108
+
1109
+ if (depth === 0) {
1110
+ arr.push(c);
1111
+ }
1112
+
1113
+ if (c === ')') {
1114
+ depth -= 1;
1115
+ }
1116
+
1117
+ return arr;
1118
+ }, [])
1119
+ .join('');
1120
+
1121
+ let queryType = null;
1122
+ if (topLevelSql.search(/\s/) === -1) {
1123
+ // There's only a single token
1124
+ // e.g. BEGIN, COMMIT, CHECKPOINT
1125
+ queryType = topLevelSql;
1126
+ } else {
1127
+ // convert non-word sequences to spaces and split by space
1128
+ // find the first known token
1129
+ queryType = topLevelSql
1130
+ .replace(/[^\w]+/g, ' ')
1131
+ .toLowerCase()
1132
+ .split(' ')
1133
+ .find((t) => sqlLabels.has(t));
1134
+ }
1135
+
1136
+ return ['SQL', capitalizeString(queryType) || null].join(' ');
1137
+ }
1138
+ function getSqlLabel(event) {
1139
+ if (hasProp(event, 'sql_query') === false) {
1140
+ return null;
1141
+ }
1142
+
1143
+ return getSqlLabelFromString(
1144
+ event.sql_query.normalized_sql || event.sql_query.sql || ''
1145
+ );
1146
+ }
1147
+
1148
+ function getLabel(event) {
1149
+ let label = getHttpLabel(event);
1150
+ if (!label) {
1151
+ label = getSqlLabel(event);
1152
+ }
1153
+ return label;
1154
+ }
1155
+
1156
+ function hashify(obj) {
1157
+ const clone = { ...obj };
1158
+ Object.keys(obj).forEach((key) => {
1159
+ const val = obj[key];
1160
+ if (Array.isArray(val)) {
1161
+ clone[key] = new Set(val);
1162
+ } else if (val instanceof Set) {
1163
+ clone[key] = val;
1164
+ } else if (val && typeof val === 'object') {
1165
+ clone[key] = hashify(val);
1166
+ } else {
1167
+ clone[key] = val;
1168
+ }
1169
+ });
1170
+ return clone;
1171
+ }
1172
+
1173
+ const REPOSITORY_RESOLVERS = {
1174
+ github: (d) => {
1175
+ const match = d.url.match(/github.com[:|/]?(.*).git/);
1176
+ if (!match || match.length <= 1) {
1177
+ return null;
1178
+ }
1179
+
1180
+ const hash = typeof d.lineNumber === 'number' ? `#L${d.lineNumber}` : '';
1181
+ return `https://github.com/${match[1]}/blob/${d.commit}/${d.path}${hash}`;
1182
+ },
1183
+ };
1184
+
1185
+ function getRepositoryUrl(
1186
+ url,
1187
+ path,
1188
+ commit = 'master',
1189
+ lineNumber = null
1190
+ ) {
1191
+ if (url && path) {
1192
+ const d = { url, path, lineNumber, commit };
1193
+ const resolvers = Object.values(REPOSITORY_RESOLVERS);
1194
+ for (let i = 0; i < resolvers.length; i += 1) {
1195
+ const repositoryUrl = resolvers[i](d);
1196
+ if (repositoryUrl) {
1197
+ return repositoryUrl;
1198
+ }
1199
+ }
1200
+ }
1201
+
1202
+ return null;
1203
+ }
1204
+
1205
+ const UPPER = 0x1;
1206
+ const LOWER = 0x10;
1207
+ const getCase = (char) => (/[A-Z]/.exec(char) === null ? LOWER : UPPER);
1208
+ const getCasePattern = (str) => {
1209
+ if (str.length <= 2) {
1210
+ return null;
1211
+ }
1212
+
1213
+ return {
1214
+ firstCase: getCase(str[0]),
1215
+ secondCase: getCase(str[1]),
1216
+ };
1217
+ };
1218
+
1219
+ const splitCamelCase = (str) => {
1220
+ const strLen = str.length;
1221
+ if (strLen < 1) {
1222
+ return [];
1223
+ }
1224
+
1225
+ const casePattern = getCasePattern(str);
1226
+ if (!casePattern) {
1227
+ return [str];
1228
+ }
1229
+
1230
+ const { firstCase, secondCase } = casePattern;
1231
+ const ret = [];
1232
+ let matched = false;
1233
+ for (let i = 2; i < strLen; i += 1) {
1234
+ const charCase = getCase(str[i]);
1235
+ if (charCase === UPPER) {
1236
+ if (firstCase === LOWER || secondCase === LOWER) {
1237
+ const token = str.slice(0, i);
1238
+ ret.push(token);
1239
+ ret.push(...splitCamelCase(str.slice(i)));
1240
+ matched = true;
1241
+ break;
1242
+ }
1243
+ } else if (
1244
+ charCase === LOWER &&
1245
+ firstCase === UPPER &&
1246
+ secondCase === UPPER
1247
+ ) {
1248
+ const token = str.slice(0, i - 1);
1249
+ ret.push(token);
1250
+ ret.push(...splitCamelCase(str.slice(i - 1)));
1251
+ matched = true;
1252
+ break;
1253
+ }
1254
+ }
1255
+
1256
+ if (!matched) {
1257
+ ret.push(str);
1258
+ }
1259
+
1260
+ return ret;
1261
+ };
1262
+
1263
+ // Builds the fully qualified function name of a function (static or instance) within a
1264
+ // fully qualified class name.
1265
+ function fullyQualifiedFunctionName(event) {
1266
+ const label = getLabel(event);
1267
+ if (label) {
1268
+ return label;
1269
+ }
1270
+
1271
+ return event.toString();
1272
+ }
1273
+
1274
+ // tokenizeIdentifier returns tokens of an identifier split by non-alphanumeric and camel casing
1275
+ // example:
1276
+ // someMethodName -> [ 'some', 'method', 'name' ]
1277
+ // some_method_name -> [ 'some', 'method', 'name' ]
1278
+ // org.company.MyPackage.MyClass -> [ 'org', 'company', 'My', 'Package', 'My', 'Class']
1279
+ function tokenizeIdentifier(id) {
1280
+ const ret = [];
1281
+
1282
+ // Split first by non-alphanumeric tokens
1283
+ const tokens = (id || '').split(/[$.:#\-_]/);
1284
+
1285
+ // Split remaining tokens by camel case
1286
+ tokens.forEach((token) => {
1287
+ ret.push(...splitCamelCase(token));
1288
+ });
1289
+
1290
+ return ret;
1291
+ }
1292
+
1293
+ function addHiddenProperty(obj, property, opts) {
1294
+ if (!Object.hasOwnProperty.call(obj, '$hidden')) {
1295
+ Object.defineProperty(obj, '$hidden', {
1296
+ enumerable: false,
1297
+ writable: false,
1298
+ value: {},
1299
+ });
1300
+ }
1301
+
1302
+ Object.defineProperty(obj.$hidden, property, {
1303
+ enumerable: false,
1304
+ writable: true,
1305
+ ...opts,
1306
+ });
1307
+ }
1308
+
1309
+ function buildLabels(classMap, events) {
1310
+ const result = {};
1311
+
1312
+ function addLabel(label, obj, type, target) {
1313
+ /* eslint-disable no-param-reassign */
1314
+ if (!obj[label]) {
1315
+ obj[label] = {};
1316
+ }
1317
+
1318
+ if (!obj[label][type]) {
1319
+ obj[label][type] = [];
1320
+ }
1321
+
1322
+ obj[label][type].push(target);
1323
+ /* eslint-enable no-param-reassign */
1324
+ }
1325
+
1326
+ classMap.codeObjects
1327
+ .filter((obj) => obj.labels.size)
1328
+ .forEach((codeObject) => {
1329
+ Array.from(codeObject.labels).forEach((label) => {
1330
+ addLabel(label, result, codeObject.type, codeObject);
1331
+ });
1332
+ });
1333
+
1334
+ events
1335
+ .filter((event) => event.isCall() && event.labels.size)
1336
+ .forEach((event) => {
1337
+ Array.from(event.labels).forEach((label) => {
1338
+ addLabel(label, result, 'event', event);
1339
+ });
1340
+ });
1341
+
1342
+ return result;
1343
+ }
1344
+
1345
+ // sizeof returns a naive byte count for an object when serialized.
1346
+ // I was using an external library for this (object-sizeof), but getting results off by a factor of
1347
+ // ~2. This is awfully wasteful, slow and inaccurate but it works for now. -DB
1348
+ const sizeof = (obj) => JSON.stringify(obj).length;
1349
+
1350
+ const DYNAMIC_FIELDS = new Set([
1351
+ 'id',
1352
+ 'value',
1353
+ 'thread_id',
1354
+ 'elapsed',
1355
+ 'object_id',
1356
+ 'lineno',
1357
+ 'path',
1358
+ ]);
1359
+
1360
+ function getStaticPropValues(obj) {
1361
+ return Object.getOwnPropertyNames(obj)
1362
+ .filter((k) => typeof obj[k] !== 'object' && !DYNAMIC_FIELDS.has(k))
1363
+ .sort()
1364
+ .map((k) => obj[k]);
1365
+ }
1366
+
1367
+ /* eslint-disable no-inner-declarations */
1368
+ function parseNormalizeSQL(sql) {
1369
+ const parseSQL = sql.replace(/\s+returning\s+\*/i, '');
1370
+ let ast;
1371
+ try {
1372
+ ast = sqliteParser(parseSQL);
1373
+ } catch (e) {
1374
+ console.warn(`Unable to parse ${parseSQL} : ${e.message}`);
1375
+ return null;
1376
+ }
1377
+
1378
+ try {
1379
+ const actions = [];
1380
+ const columns = [];
1381
+ const tables = [];
1382
+
1383
+ function parse(statement) {
1384
+ const tokens = ['type', 'variant']
1385
+ .map((propertyName) => statement[propertyName])
1386
+ .filter((value) => value);
1387
+
1388
+ const key = tokens.join('.');
1389
+ // eslint-disable-next-line no-use-before-define
1390
+ let parser = parsers[key];
1391
+ if (!parser) {
1392
+ // eslint-disable-next-line no-use-before-define
1393
+ parser = parseStatement;
1394
+ }
1395
+
1396
+ const parserList = Array.isArray(parser) ? parser : [parser];
1397
+ parserList.forEach((prs) => prs(statement));
1398
+ }
1399
+
1400
+ function parseStatement(statement) {
1401
+ const reservedWords = ['type', 'variant', 'name', 'value'];
1402
+ Object.keys(statement)
1403
+ .filter((property) => !reservedWords.includes(property))
1404
+ .map((propertyName) => statement[propertyName])
1405
+ .forEach((property) => {
1406
+ if (Array.isArray(property)) {
1407
+ property.forEach(parse);
1408
+ } else if (typeof property === 'object') {
1409
+ parse(property);
1410
+ } else if (
1411
+ typeof property === 'string' ||
1412
+ typeof property === 'boolean'
1413
+ ) {
1414
+ // pass
1415
+ } else {
1416
+ console.warn(
1417
+ `Unrecognized subexpression: ${typeof property} ${property}`
1418
+ );
1419
+ }
1420
+ });
1421
+ }
1422
+
1423
+ function parseList(listElements, statement) {
1424
+ listElements.forEach((listElement) => {
1425
+ const subExpression = statement[listElement];
1426
+ if (Array.isArray(subExpression)) {
1427
+ subExpression.forEach(parse);
1428
+ } else if (typeof subExpression === 'object') {
1429
+ parse(subExpression);
1430
+ } else {
1431
+ console.warn(`Unrecognized subexpression: ${subExpression}`);
1432
+ }
1433
+ });
1434
+ }
1435
+ const nop = () => {};
1436
+ function parseIdentifierExpression(statement) {
1437
+ if (statement.format === 'table') {
1438
+ tables.push(statement.name);
1439
+ }
1440
+ parseList(['columns'], statement);
1441
+ }
1442
+ function recordAction(action) {
1443
+ return () => {
1444
+ actions.push(action);
1445
+ };
1446
+ }
1447
+
1448
+ const parsers = {
1449
+ 'literal.text': nop,
1450
+ 'literal.decimal': nop,
1451
+ 'identifier.star': (statement) => columns.push(statement.name),
1452
+ 'identifier.column': (statement) => columns.push(statement.name),
1453
+ 'identifier.table': (statement) => tables.push(statement.name),
1454
+ 'identifier.expression': parseIdentifierExpression,
1455
+ 'statement.select': [recordAction('select'), parseStatement],
1456
+ 'statement.insert': [recordAction('insert'), parseStatement],
1457
+ 'statement.update': [recordAction('update'), parseStatement],
1458
+ 'statement.delete': [recordAction('delete'), parseStatement],
1459
+ 'statement.pragma': nop,
1460
+ };
1461
+
1462
+ parse(ast);
1463
+
1464
+ function unique(list) {
1465
+ return [...new Set(list)];
1466
+ }
1467
+ const uniqueActions = unique(actions).sort();
1468
+
1469
+ return {
1470
+ actions: uniqueActions,
1471
+ tables: unique(tables).sort(),
1472
+ columns: unique(columns).sort(),
1473
+ };
1474
+ } catch (e) {
1475
+ console.warn(`Unable to interpret AST tree for ${parseSQL} : ${e.message}`);
1476
+ return null;
1477
+ }
1478
+ }
1479
+ /* eslint-enable no-inner-declarations */
1480
+
1481
+ function dumbNormalizeSQL(sql) {
1482
+ const sqlLower = sql.toLowerCase().trim();
1483
+ if (sqlLower.indexOf('pragma') === 0) {
1484
+ return {
1485
+ tables: [],
1486
+ columns: [],
1487
+ };
1488
+ }
1489
+
1490
+ const stopWords = ['where', 'limit', 'order by', 'group by', 'values', 'set'];
1491
+ const stopWordLocations = stopWords
1492
+ .map((word) => sqlLower.indexOf(` ${word}`))
1493
+ .filter((index) => index !== -1)
1494
+ .sort();
1495
+ if (stopWordLocations.length > 0) {
1496
+ const subSQL = sql.slice(0, stopWordLocations[0] - 1);
1497
+ return subSQL.replace(
1498
+ /\s([\w_]+)\(\s+'?[w\d]+'?\)\s+\)(?:\s|^)/g,
1499
+ '$1(...)'
1500
+ );
1501
+ }
1502
+
1503
+ console.warn(`Unparseable: ${sql}`);
1504
+ return 'Unparseable';
1505
+ }
1506
+
1507
+ /**
1508
+ * It's essential to normalize SQL to remove trivial differences like WHERE clauses on
1509
+ * generated id values, timestamps, etc.
1510
+ *
1511
+ * @param {string} sql
1512
+ */
1513
+ function normalizeSQL(sql) {
1514
+ return parseNormalizeSQL(sql) || dumbNormalizeSQL(sql);
1515
+ }
1516
+
1517
+ // #region ========= BEGIN UNUSED CODE =========
1518
+ // These are called from Event.compare, but that method may be removed.
1519
+ // Don't merge me!
1520
+
1521
+ function appMapObjectCompare(a, b) {
1522
+ if (a === b) {
1523
+ return true;
1524
+ }
1525
+
1526
+ if (!a || !b) {
1527
+ return false;
1528
+ }
1529
+
1530
+ const props = [
1531
+ ...new Set([
1532
+ ...Object.getOwnPropertyNames(a),
1533
+ ...Object.getOwnPropertyNames(b),
1534
+ ]),
1535
+ ].filter((k) => !DYNAMIC_FIELDS.has(k));
1536
+
1537
+ // return the props that differ
1538
+ return props.filter((k) => a[k] !== b[k]);
1539
+ }
1540
+
1541
+ function sqlCompare(a, b) {
1542
+ let { sqlQuery: sqlQueryA } = a;
1543
+ let { sqlQuery: sqlQueryB } = b;
1544
+
1545
+ if (sqlQueryA === sqlQueryB) {
1546
+ return true;
1547
+ }
1548
+
1549
+ if (!sqlQueryA || !sqlQueryB) {
1550
+ return false;
1551
+ }
1552
+
1553
+ sqlQueryA = normalizeSQL(sqlQueryA);
1554
+ sqlQueryB = normalizeSQL(sqlQueryB);
1555
+
1556
+ if (sqlQueryA.action !== sqlQueryB.action) {
1557
+ return false;
1558
+ }
1559
+
1560
+ const allColumns = [...sqlQueryA.columns, ...sqlQueryB.columns];
1561
+ const allTables = [...sqlQueryA.tables, ...sqlQueryB.tables];
1562
+
1563
+ return (
1564
+ allColumns.find(
1565
+ (c) => !sqlQueryA.columns.includes(c) || !sqlQueryB.columns.includes(c)
1566
+ ) === undefined &&
1567
+ allTables.find(
1568
+ (c) => !sqlQueryA.tables.includes(c) || !sqlQueryB.tables.includes(c)
1569
+ ) === undefined
1570
+ );
1571
+ }
1572
+
1573
+ function arrayCompare(a, b) {
1574
+ if (a === b) {
1575
+ return true;
1576
+ }
1577
+
1578
+ if (!a || !b) {
1579
+ return false;
1580
+ }
1581
+
1582
+ const lengthA = a ? a.length || 0 : 0;
1583
+ const lengthB = b ? b.length || 0 : 0;
1584
+
1585
+ if (lengthA !== lengthB) {
1586
+ return false;
1587
+ }
1588
+
1589
+ for (let i = 0; i < lengthA; i += 1) {
1590
+ if (!appMapObjectCompare(a[i], b[i])) {
1591
+ return false;
1592
+ }
1593
+ }
1594
+
1595
+ return true;
1596
+ }
1597
+
1598
+ function httpCompare(a, b) {
1599
+ const {
1600
+ message: messageA,
1601
+ httpServerRequest: httpServerRequestA,
1602
+ httpServerResponse: httpServerResponseA,
1603
+ } = a;
1604
+
1605
+ const {
1606
+ message: messageB,
1607
+ httpServerRequest: httpServerRequestB,
1608
+ httpServerResponse: httpServerResponseB,
1609
+ } = b;
1610
+
1611
+ return (
1612
+ arrayCompare(messageA, messageB) &&
1613
+ appMapObjectCompare(httpServerRequestA, httpServerRequestB) &&
1614
+ appMapObjectCompare(httpServerResponseA, httpServerResponseB)
1615
+ );
1616
+ }
1617
+
1618
+ function setCompare(a, b) {
1619
+ if (a === b) {
1620
+ return true;
1621
+ }
1622
+
1623
+ if (!a || !b) {
1624
+ return false;
1625
+ }
1626
+
1627
+ const allItems = [...new Set([...a, ...b])];
1628
+ return allItems.find((i) => !a.has(i) || !b.has(i)) === undefined;
1629
+ }
1630
+ // #endregion ========= END UNUSED CODE =========
1631
+
1632
+ function hashHttp(e) {
1633
+ const { httpServerRequest } = e;
1634
+ if (!httpServerRequest) {
1635
+ return null;
1636
+ }
1637
+
1638
+ const { message, httpServerResponse } = e;
1639
+ const content = [];
1640
+ message.forEach((m) =>
1641
+ getStaticPropValues(m).forEach((v) => content.push(v))
1642
+ );
1643
+ getStaticPropValues(httpServerResponse).forEach((v) => content.push(v));
1644
+ getStaticPropValues(httpServerRequest).forEach((v) => content.push(v));
1645
+
1646
+ return sha256(content.join('')).toString();
1647
+ }
1648
+
1649
+ function hashSql(e) {
1650
+ const { sqlQuery } = e;
1651
+ if (!sqlQuery) {
1652
+ return null;
1653
+ }
1654
+
1655
+ const normalizedSql = normalizeSQL(sqlQuery);
1656
+ const content = [normalizedSql.action];
1657
+
1658
+ if (normalizedSql.columns) {
1659
+ normalizedSql.columns.forEach((c) => content.push(c));
1660
+ }
1661
+
1662
+ if (normalizedSql.tables) {
1663
+ normalizedSql.tables.forEach((t) => content.push(t));
1664
+ }
1665
+
1666
+ return sha256(content.join('')).toString();
1667
+ }
1668
+
1669
+ // Returns a unique 'hash' (or really, a key) tied to the event's core identity: SQL, HTTP, or a
1670
+ // specific method on a specific class. This is _really_ naive. The idea is that this better finds
1671
+ // a singular change versus an existing object that has been removed and a new object added in its
1672
+ // place.
1673
+ function identityHashEvent(e) {
1674
+ if (e.httpServerRequest) {
1675
+ return 'http';
1676
+ }
1677
+
1678
+ const { sqlQuery } = e;
1679
+ if (sqlQuery) {
1680
+ const queryOps = normalizeSQL(sqlQuery);
1681
+ const content = ['sql', queryOps.action, ...queryOps.tables]
1682
+ .filter(Boolean)
1683
+ .join('');
1684
+ return sha256(content).toString();
1685
+ }
1686
+
1687
+ return e.toString();
1688
+ }
1689
+
1690
+ function hashEvent(e) {
1691
+ let hash = hashHttp(e);
1692
+ if (hash) {
1693
+ return hash;
1694
+ }
1695
+
1696
+ hash = hashSql(e);
1697
+ if (hash) {
1698
+ return hash;
1699
+ }
1700
+
1701
+ const content = [];
1702
+ getStaticPropValues(e).forEach((v) => content.push(v));
1703
+ e.parameters.forEach((p) =>
1704
+ getStaticPropValues(p).forEach((v) => content.push(v))
1705
+ );
1706
+ [...e.labels].forEach((l) => content.push(l));
1707
+
1708
+ return sha256(content.join('')).toString();
1709
+ }
1710
+
1711
+ function resolveDifferences(arr1, arr2) {
1712
+ let arr1Index = 0;
1713
+ let arr2Index = 0;
1714
+
1715
+ for (;;) {
1716
+ const a = arr1[arr1Index];
1717
+ const b = arr2[arr2Index];
1718
+ if (!a && !b) {
1719
+ return;
1720
+ }
1721
+
1722
+ if (typeof a === 'undefined') {
1723
+ arr1.push(null);
1724
+ arr1Index += 1;
1725
+ arr2Index += 1;
1726
+ continue; // eslint-disable-line no-continue
1727
+ }
1728
+
1729
+ if (typeof b === 'undefined') {
1730
+ arr2.push(null);
1731
+ arr1Index += 1;
1732
+ arr2Index += 1;
1733
+ continue; // eslint-disable-line no-continue
1734
+ }
1735
+
1736
+ const hashA = a.identityHash;
1737
+ const hashB = b.identityHash;
1738
+ if (hashA !== hashB) {
1739
+ let instancesA = 0;
1740
+ for (let i = arr1Index + 1; i < arr1.length; i += 1) {
1741
+ instancesA += arr1[i].identityHash === hashA ? 1 : 0;
1742
+ }
1743
+
1744
+ let instancesB = 0;
1745
+ for (let i = arr2Index + 1; i < arr2.length; i += 1) {
1746
+ instancesB += arr2[i].identityHash === hashA ? 1 : 0;
1747
+ }
1748
+
1749
+ if (instancesA >= instancesB) {
1750
+ arr2.splice(arr2Index, 0, null);
1751
+ } else if (instancesA < instancesB) {
1752
+ arr1.splice(arr1Index, 0, null);
1753
+ } // eslint-disable-line no-continue
1754
+ }
1755
+
1756
+ arr1Index += 1;
1757
+ arr2Index += 1;
1758
+ }
1759
+ }
1760
+
1761
+ function getRootEvents(eventArray) {
1762
+ let events = eventArray.filter((e) => e.isCall() && e.httpServerRequest);
1763
+ if (events.length === 0) {
1764
+ events = eventArray.filter((e) => e.isCall() && !e.parent);
1765
+ }
1766
+ return events;
1767
+ }
1768
+
1769
+ const CodeObjectType = {
1770
+ DATABASE: 'database',
1771
+ QUERY: 'query',
1772
+ HTTP: 'http',
1773
+ EXTERNAL_SERVICE: 'external-service',
1774
+ ROUTE: 'route',
1775
+ PACKAGE: 'package',
1776
+ CLASS: 'class',
1777
+ FUNCTION: 'function',
1778
+ };
1779
+
1780
+ class CodeObject {
1781
+ constructor(data, parent) {
1782
+ this.data = { ...data };
1783
+
1784
+ if (!(this.data.labels instanceof Set)) {
1785
+ this.data.labels = new Set(this.data.labels);
1786
+ }
1787
+
1788
+ this.children = [];
1789
+ if (parent) {
1790
+ parent.children.push(this);
1791
+ }
1792
+
1793
+ addHiddenProperty(this, 'parent', { value: parent });
1794
+ addHiddenProperty(this, 'events', { writable: false, value: [] });
1795
+ }
1796
+
1797
+ get id() {
1798
+ const tokens = this.buildId();
1799
+
1800
+ if (this.parent && this.type === CodeObjectType.FUNCTION) {
1801
+ const separator = this.static ? '.' : '#';
1802
+ tokens[tokens.length - 2] = separator;
1803
+ }
1804
+
1805
+ return tokens.join('');
1806
+ }
1807
+
1808
+ get name() {
1809
+ return this.data.name;
1810
+ }
1811
+
1812
+ get type() {
1813
+ return this.data.type;
1814
+ }
1815
+
1816
+ get static() {
1817
+ return this.data.static;
1818
+ }
1819
+
1820
+ get location() {
1821
+ return this.data.location;
1822
+ }
1823
+
1824
+ get labels() {
1825
+ return this.data.labels;
1826
+ }
1827
+
1828
+ get events() {
1829
+ return this.$hidden.events;
1830
+ }
1831
+
1832
+ get parent() {
1833
+ return this.$hidden.parent;
1834
+ }
1835
+
1836
+ set parent(val) {
1837
+ this.$hidden.parent = val;
1838
+ }
1839
+
1840
+ // Gets the source locations for this code object. For a package, no source locations are returned
1841
+ // (there would be too many to be useful). For a class, the paths to all files which add methods to the class are
1842
+ // returned. For a function, the path and line number is returned.
1843
+ get locations() {
1844
+ switch (this.type) {
1845
+ case CodeObjectType.CLASS:
1846
+ return Array.from(this.classLocations()).sort();
1847
+ case CodeObjectType.FUNCTION:
1848
+ return [this.location];
1849
+ default:
1850
+ return [];
1851
+ }
1852
+ }
1853
+
1854
+ get packageOf() {
1855
+ return [this, ...this.ancestors()]
1856
+ .filter((obj) => obj.type === CodeObjectType.PACKAGE)
1857
+ .map((obj) => obj.name)
1858
+ .reverse()
1859
+ .join('/');
1860
+ }
1861
+
1862
+ get classOf() {
1863
+ return [this, ...this.ancestors()]
1864
+ .filter((obj) => obj.type === CodeObjectType.CLASS)
1865
+ .map((obj) => obj.name)
1866
+ .reverse()
1867
+ .join('::');
1868
+ }
1869
+
1870
+ get classObject() {
1871
+ return [this, ...this.ancestors()].find(
1872
+ (obj) => obj.type === CodeObjectType.CLASS
1873
+ );
1874
+ }
1875
+
1876
+ get packageObject() {
1877
+ return [this, ...this.ancestors()].find(
1878
+ (obj) => obj.type === CodeObjectType.PACKAGE
1879
+ );
1880
+ }
1881
+
1882
+ get functions() {
1883
+ if (this.type === CodeObjectType.CLASS) {
1884
+ // getting the functions of a class should not return functions of nested classes
1885
+ return this.children.filter(
1886
+ (obj) => obj.type === CodeObjectType.FUNCTION
1887
+ );
1888
+ }
1889
+
1890
+ return this.descendants().filter(
1891
+ (obj) => obj.type === CodeObjectType.FUNCTION
1892
+ );
1893
+ }
1894
+
1895
+ get classes() {
1896
+ return [this, ...this.descendants()].filter(
1897
+ (obj) => obj.type === CodeObjectType.CLASS && obj.functions.length
1898
+ );
1899
+ }
1900
+
1901
+ get allEvents() {
1902
+ return [this, ...this.descendants()].map((obj) => obj.events).flat();
1903
+ }
1904
+
1905
+ descendants() {
1906
+ const queue = [...this.children];
1907
+ const children = [];
1908
+
1909
+ while (queue.length) {
1910
+ const child = queue.pop();
1911
+ children.push(child);
1912
+ queue.push(...child.children);
1913
+ }
1914
+
1915
+ return children;
1916
+ }
1917
+
1918
+ ancestors() {
1919
+ let currentObject = this.parent;
1920
+ const parents = [];
1921
+
1922
+ while (currentObject) {
1923
+ parents.push(currentObject);
1924
+ currentObject = currentObject.parent;
1925
+ }
1926
+
1927
+ return parents;
1928
+ }
1929
+
1930
+ // Leafs retrieves the leaf objects for the current type that contain children of another type. It
1931
+ // is useful for retrieving children without worrying about types or deeply nested objects.
1932
+ //
1933
+ // For example, the leafs of the package "com" may be:
1934
+ // - com.myorg.myapp
1935
+ // - com.myorg.myapp.api
1936
+ //
1937
+ // Whereas its children would only contain "myorg", and its descendants would include functions
1938
+ // and classes from any other nested package.
1939
+ leafs() {
1940
+ const { type } = this;
1941
+ const queue = [this];
1942
+ const leafArray = [];
1943
+
1944
+ while (queue.length) {
1945
+ const obj = queue.pop();
1946
+ const childrenOfType = obj.children.filter(
1947
+ (child) => child.type === type
1948
+ );
1949
+
1950
+ // If this object has children of another type, consider it a leaf.
1951
+ // For example, a package containing a class.
1952
+ if (childrenOfType.length) {
1953
+ queue.push(...childrenOfType);
1954
+ }
1955
+
1956
+ // If, however, this object has a variety of child types, it's both a leaf and a parent
1957
+ if (
1958
+ (!obj.children.length && obj.type === type) ||
1959
+ childrenOfType.length !== obj.children.length
1960
+ ) {
1961
+ leafArray.push(obj);
1962
+ }
1963
+ }
1964
+
1965
+ return leafArray;
1966
+ }
1967
+
1968
+ // Returns leafs of all children. Similar to the `classes` accessor, but returns children of any
1969
+ // type.
1970
+ childLeafs() {
1971
+ return this.children.map((child) => child.leafs()).flat();
1972
+ }
1973
+
1974
+ visit(fn, stack = []) {
1975
+ stack.push(this);
1976
+ fn(this, stack);
1977
+ this.children.forEach((child) => child.visit(fn, stack));
1978
+ stack.pop();
1979
+ }
1980
+
1981
+ buildId(tokens = []) {
1982
+ if (this.parent) {
1983
+ this.parent.buildId(tokens);
1984
+
1985
+ let separator;
1986
+ switch (this.parent.type) {
1987
+ case CodeObjectType.PACKAGE:
1988
+ separator = '/';
1989
+ break;
1990
+ case CodeObjectType.CLASS:
1991
+ separator = '::';
1992
+ break;
1993
+ default:
1994
+ separator = '->';
1995
+ }
1996
+ tokens.push(separator);
1997
+ }
1998
+ tokens.push(this.name);
1999
+ return tokens;
2000
+ }
2001
+
2002
+ classLocations(paths = new Set()) {
2003
+ this.children.forEach((child) => child.classLocations(paths));
2004
+
2005
+ if (this.type === CodeObjectType.FUNCTION) {
2006
+ const tokens = this.data.location.split(':', 2);
2007
+ paths.add(tokens[0]);
2008
+ }
2009
+ return paths;
2010
+ }
2011
+
2012
+ toJSON() {
2013
+ const obj = {
2014
+ name: this.data.name,
2015
+ type: this.data.type,
2016
+ };
2017
+
2018
+ if (this.data.type === CodeObjectType.FUNCTION) {
2019
+ obj.static = this.data.static;
2020
+ obj.location = this.data.location;
2021
+ }
2022
+ if (this.data.type === CodeObjectType.QUERY) {
2023
+ obj.database_type = this.data.database_type;
2024
+ }
2025
+
2026
+ if (this.children.length > 0) {
2027
+ obj.children = this.children;
2028
+ }
2029
+
2030
+ return obj;
2031
+ }
2032
+
2033
+ static constructDataChainFromEvent(event) {
2034
+ let elements;
2035
+ if (event.httpServerRequest) {
2036
+ elements = [
2037
+ {
2038
+ type: CodeObjectType.HTTP,
2039
+ name: 'HTTP server requests',
2040
+ },
2041
+ {
2042
+ type: CodeObjectType.ROUTE,
2043
+ name: event.route,
2044
+ },
2045
+ ];
2046
+ } else if (event.httpClientRequest) {
2047
+ let serviceName;
2048
+
2049
+ try {
2050
+ const url = new URL(event.httpClientRequest.url);
2051
+ serviceName = url.host;
2052
+ } catch {
2053
+ serviceName = 'External service';
2054
+ }
2055
+
2056
+ elements = [
2057
+ {
2058
+ type: CodeObjectType.EXTERNAL_SERVICE,
2059
+ name: serviceName,
2060
+ },
2061
+ ];
2062
+ } else if (event.sqlQuery) {
2063
+ elements = [
2064
+ {
2065
+ type: CodeObjectType.DATABASE,
2066
+ name: 'Database',
2067
+ },
2068
+ {
2069
+ type: CodeObjectType.QUERY,
2070
+ name: event.sqlQuery,
2071
+ database_type: event.sql.database_type,
2072
+ },
2073
+ ];
2074
+ } else {
2075
+ elements = [
2076
+ {
2077
+ type: CodeObjectType.CLASS,
2078
+ name: event.definedClass,
2079
+ },
2080
+ {
2081
+ type: CodeObjectType.FUNCTION,
2082
+ name: event.methodId,
2083
+ static: event.isStatic,
2084
+ location: '',
2085
+ },
2086
+ ];
2087
+ }
2088
+
2089
+ // Flag this object as having been created dynamically
2090
+ const queue = [...elements];
2091
+ while (queue.length) {
2092
+ const obj = queue.pop();
2093
+ obj.dynamic = true;
2094
+ if (obj.children) {
2095
+ obj.children.forEach((child) => queue.push(child));
2096
+ }
2097
+ }
2098
+
2099
+ return elements;
2100
+ }
2101
+
2102
+ get inboundConnections() {
2103
+ return this.allEvents
2104
+ .filter((e) => e.parent)
2105
+ .map((e) => e.parent.codeObject);
2106
+ }
2107
+
2108
+ get outboundConnections() {
2109
+ return this.allEvents
2110
+ .map((e) => e.children)
2111
+ .flat()
2112
+ .map((e) => e.codeObject);
2113
+ }
2114
+
2115
+ get sqlQueries() {
2116
+ return this.allEvents
2117
+ .map((e) => e.children)
2118
+ .flat()
2119
+ .filter((e) => e.sql)
2120
+ .map((e) => e.codeObject);
2121
+ }
2122
+
2123
+ get prettyName() {
2124
+ switch (this.type) {
2125
+ case CodeObjectType.FUNCTION:
2126
+ return `${this.classOf}${this.static ? '.' : '#'}${this.name}`;
2127
+ case CodeObjectType.CLASS:
2128
+ return this.classOf;
2129
+ case CodeObjectType.PACKAGE:
2130
+ return this.packageOf;
2131
+ case CodeObjectType.QUERY:
2132
+ return getSqlLabelFromString(this.name);
2133
+ default:
2134
+ return this.name;
2135
+ }
2136
+ }
2137
+
2138
+ get fqid() {
2139
+ return `${this.type}:${this.id}`;
2140
+ }
2141
+ }
2142
+
2143
+ function indexCodeObject(co, codeObjects, codeObjectsById) {
2144
+ codeObjects.push(co);
2145
+ codeObjectsById[co.id] = co;
2146
+ }
2147
+
2148
+ class ClassMap {
2149
+ constructor(classMap) {
2150
+ this.codeObjectsByLocation = {};
2151
+ this.codeObjects = [];
2152
+ this.codeObjectsById = {};
2153
+
2154
+ const buildCodeObject = (data, parent = null) => {
2155
+ const co = new CodeObject(data, parent);
2156
+ indexCodeObject(co, this.codeObjects, this.codeObjectsById);
2157
+
2158
+ (data.children || []).forEach((child) => {
2159
+ buildCodeObject(child, co);
2160
+ });
2161
+
2162
+ if (co.type !== 'package') {
2163
+ co.locations.forEach((location) => {
2164
+ let codeObjects = this.codeObjectsByLocation[location];
2165
+ if (!codeObjects) {
2166
+ codeObjects = [];
2167
+ this.codeObjectsByLocation[location] = codeObjects;
2168
+ }
2169
+ codeObjects.push(co);
2170
+ });
2171
+ }
2172
+
2173
+ return co;
2174
+ };
2175
+
2176
+ this.roots = classMap.map((root) => buildCodeObject(root));
2177
+ }
2178
+
2179
+ visit(fn) {
2180
+ this.roots.forEach((co) => co.visit(fn));
2181
+ }
2182
+
2183
+ search(query) {
2184
+ const queryLower = query.toLowerCase();
2185
+ return this.codeObjects.filter(
2186
+ (co) => co.id.toLowerCase().indexOf(queryLower) !== -1
2187
+ );
2188
+ }
2189
+
2190
+ codeObjectFromId(id) {
2191
+ return this.codeObjectsById[id];
2192
+ }
2193
+
2194
+ codeObjectsAtLocation(location) {
2195
+ return this.codeObjectsByLocation[location] || [];
2196
+ }
2197
+
2198
+ codeObjectFromEvent(event) {
2199
+ let codeObject;
2200
+ // These types of events should not be reporting path and lineno, but sometimes
2201
+ // they do.
2202
+ if (!(event.httpServerRequest || event.httpClientRequest || event.sql)) {
2203
+ const { path, lineno } = event;
2204
+ const location = [path, lineno].filter((e) => e).join(':');
2205
+ if (location !== '') {
2206
+ const codeObjects = this.codeObjectsAtLocation(location);
2207
+ codeObject = codeObjects.find((o) => o.name === event.methodId);
2208
+ if (codeObject) {
2209
+ return codeObject;
2210
+ }
2211
+ }
2212
+ }
2213
+
2214
+ return null;
2215
+ }
2216
+
2217
+ // Returns the first root code object of a given type or null if it doesn't exist
2218
+ root(type) {
2219
+ return this.roots.find((obj) => obj.type === type);
2220
+ }
2221
+
2222
+ // Returns the root HTTP code object if it exists
2223
+ get httpObject() {
2224
+ return this.root(CodeObjectType.HTTP);
2225
+ }
2226
+
2227
+ // Returns the root SQL code object if it exists
2228
+ get sqlObject() {
2229
+ return this.root(CodeObjectType.DATABASE);
2230
+ }
2231
+
2232
+ // Binds an event array to code objects and vice versa. This allows use of
2233
+ // direct accessors: `Event.codeObject` and `CodeObject.events`. Additionally,
2234
+ // it guarantees non-null accessors, meaning it will construct a code object
2235
+ // for an event if it previously did not exist.
2236
+ bindEvents(events) {
2237
+ if (!events || !Array.isArray(events) || !events.length) {
2238
+ return;
2239
+ }
2240
+
2241
+ const validCodeObjects = new Set();
2242
+ events
2243
+ .filter((e) => e.isCall())
2244
+ .forEach((e) => {
2245
+ let codeObject = this.codeObjectFromEvent(e);
2246
+ if (!codeObject) {
2247
+ const findOrCreateCodeObject = (data, codeObjectArray, parent) => {
2248
+ // TODO: This ignores static/non-static function collisions and function overloads, though this method
2249
+ // is never currently called in a context where those edge cases exist.
2250
+ let newCodeObject = codeObjectArray.find(
2251
+ (obj) => obj.type === data.type && obj.name === data.name
2252
+ );
2253
+
2254
+ if (!newCodeObject) {
2255
+ newCodeObject = new CodeObject(data, parent);
2256
+ if (!parent) {
2257
+ this.roots.push(newCodeObject);
2258
+ }
2259
+ indexCodeObject(
2260
+ newCodeObject,
2261
+ this.codeObjects,
2262
+ this.codeObjectsById
2263
+ );
2264
+ }
2265
+
2266
+ return newCodeObject;
2267
+ };
2268
+
2269
+ const dataElements = CodeObject.constructDataChainFromEvent(e);
2270
+ let parent = null;
2271
+ dataElements.forEach((dataElement) => {
2272
+ parent = findOrCreateCodeObject(
2273
+ dataElement,
2274
+ parent ? parent.children : this.roots,
2275
+ parent
2276
+ );
2277
+ });
2278
+ codeObject = parent;
2279
+ }
2280
+
2281
+ e.codeObject = codeObject;
2282
+ codeObject.events.push(e);
2283
+
2284
+ const ancestors = codeObject.ancestors();
2285
+ validCodeObjects.add(codeObject);
2286
+ ancestors.forEach((obj) => validCodeObjects.add(obj));
2287
+ });
2288
+
2289
+ this.codeObjects = this.codeObjects.filter((obj) =>
2290
+ validCodeObjects.has(obj)
2291
+ );
2292
+
2293
+ this.roots = this.roots.filter((obj) => validCodeObjects.has(obj));
2294
+
2295
+ Object.keys(this.codeObjectsByLocation).forEach((obj) => {
2296
+ if (!validCodeObjects.has(obj)) {
2297
+ delete this.codeObjectsByLocation[obj];
2298
+ }
2299
+ });
2300
+
2301
+ Object.entries(this.codeObjectsById).forEach(([id, obj]) => {
2302
+ if (!validCodeObjects.has(obj)) {
2303
+ delete this.codeObjectsById[id];
2304
+ }
2305
+ });
2306
+ }
2307
+
2308
+ toJSON() {
2309
+ // Don't write out code objects that were created during runtime
2310
+ return this.roots.filter((obj) => !obj.dynamic);
2311
+ }
2312
+ }
2313
+
2314
+ // Deprecated. Prefer `Event` instead.
2315
+ class CallNode {
2316
+ constructor(input = {}, output = {}, caller = null, labels = []) {
2317
+ this.input = input;
2318
+ this.output = output;
2319
+ this.children = [];
2320
+ this.labels = labels;
2321
+
2322
+ // Cyclic references shall not be enumerable
2323
+ addHiddenProperty(this, 'caller', { value: caller });
2324
+ }
2325
+
2326
+ get caller() {
2327
+ return this.$hidden.caller;
2328
+ }
2329
+
2330
+ set caller(value) {
2331
+ this.$hidden.$hiddencaller = value;
2332
+ }
2333
+
2334
+ clone() {
2335
+ const input = { ...this.input };
2336
+ const output = { ...this.output };
2337
+ const labels = [...this.labels];
2338
+ const newNode = new CallNode(input, output, null, labels);
2339
+
2340
+ if (this.displayName) {
2341
+ newNode.displayName = this.displayName;
2342
+ }
2343
+
2344
+ this.children.forEach((child) => {
2345
+ const newChild = child.clone();
2346
+ newNode.addChild(newChild);
2347
+ newChild.caller = newNode;
2348
+ });
2349
+
2350
+ return newNode;
2351
+ }
2352
+
2353
+ addChild(node) {
2354
+ this.children.push(node);
2355
+ }
2356
+
2357
+ // Replace a given child with a different set of children.
2358
+ replaceChild(child, children) {
2359
+ const idx = this.children.indexOf(child);
2360
+ if (idx === -1) {
2361
+ throw new Error(`${child} not found in call tree`);
2362
+ }
2363
+
2364
+ this.children.splice(idx, 1, ...children);
2365
+ /* eslint-disable no-param-reassign */
2366
+ children.forEach((c) => {
2367
+ c.caller = this;
2368
+ });
2369
+ child.caller = null;
2370
+ /* eslint-enable no-param-reassign */
2371
+ }
2372
+
2373
+ removeChild(child) {
2374
+ const childIndex = this.children.indexOf(child);
2375
+ if (childIndex < 0) {
2376
+ throw new Error(`${child} found orphaned by ${this} !`);
2377
+ }
2378
+ this.children.splice(childIndex, 1);
2379
+ }
2380
+
2381
+ postOrderForEach(fn, stack = []) {
2382
+ stack.push(this);
2383
+ const children = [...this.children];
2384
+ children.forEach((child) => child.postOrderForEach(fn, stack));
2385
+ fn(this, stack);
2386
+ stack.pop(this);
2387
+ }
2388
+
2389
+ preOrderForEach(fn, stack = []) {
2390
+ stack.push(this);
2391
+ fn(this, stack);
2392
+ const children = [...this.children];
2393
+ children.forEach((child) => child.preOrderForEach(fn, stack));
2394
+ stack.pop(this);
2395
+ }
2396
+
2397
+ forEach(fn) {
2398
+ this.postOrderForEach(fn);
2399
+ }
2400
+
2401
+ // filter returns a tree in which all nodes match a condition. If a node fails the
2402
+ // condition, its children are adopted by it's parent.
2403
+ filter(conditionFn) {
2404
+ const root = this.clone();
2405
+ root.forEach((node, stack) => {
2406
+ if (node.isRoot()) {
2407
+ return;
2408
+ }
2409
+
2410
+ if (!conditionFn(node, stack)) {
2411
+ const parent = node.caller;
2412
+ parent.replaceChild(node, node.children);
2413
+ }
2414
+ });
2415
+
2416
+ return root;
2417
+ }
2418
+
2419
+ // include returns a tree in which all leaf nodes match a condition.
2420
+ // If a node passes the condition, the node and all of its parents are retained
2421
+ // in the tree. If it fails, the node and its children are removed from the tree.
2422
+ // Note that if a node passes the condition, the condition will not be evaluated
2423
+ // for that node's parent nodes, since they are already marked as retained.
2424
+ include(conditionFn) {
2425
+ /* eslint-disable no-param-reassign */
2426
+ const root = this.clone();
2427
+ root.postOrderForEach((node, stack) => {
2428
+ if (node.isRoot()) {
2429
+ return;
2430
+ }
2431
+
2432
+ if (node.marked_include && node.caller) {
2433
+ node.caller.marked_include = true;
2434
+ return;
2435
+ }
2436
+
2437
+ node.marked_include = conditionFn(node, stack);
2438
+ if (node.marked_include) {
2439
+ if (node.caller) {
2440
+ node.caller.marked_include = true;
2441
+ }
2442
+ return;
2443
+ }
2444
+
2445
+ if (node.caller) {
2446
+ node.caller.removeChild(node);
2447
+ }
2448
+ });
2449
+
2450
+ root.postOrderForEach((node) => {
2451
+ delete node.marked_include;
2452
+ });
2453
+
2454
+ return root;
2455
+ /* eslint-enable no-param-reassign */
2456
+ }
2457
+
2458
+ // exclude returns a tree in which all nodes that match a condition are removed, along
2459
+ // with their child nodes.
2460
+ exclude(conditionFn) {
2461
+ const root = this.clone();
2462
+ root.forEach((node, stack) => {
2463
+ if (node.isRoot()) {
2464
+ return;
2465
+ }
2466
+
2467
+ if (conditionFn(node, stack)) {
2468
+ const parent = node.caller;
2469
+ parent.removeChild(node);
2470
+ }
2471
+ });
2472
+
2473
+ return root;
2474
+ }
2475
+
2476
+ // toArray returns this tree as a one dimensional array
2477
+ toArray() {
2478
+ const childEvents = this.children.map((child) => child.toArray()).flat();
2479
+
2480
+ if (this.isRoot()) {
2481
+ return childEvents;
2482
+ }
2483
+
2484
+ return [this, ...childEvents];
2485
+ }
2486
+
2487
+ // find calls find recursively on all children
2488
+ // iterates in pre-order
2489
+ find(fn) {
2490
+ if (fn(this)) {
2491
+ return this;
2492
+ }
2493
+
2494
+ for (let i = 0; i < this.children.length; i += 1) {
2495
+ const match = this.children[i].find(fn);
2496
+ if (match) {
2497
+ return match;
2498
+ }
2499
+ }
2500
+
2501
+ return null;
2502
+ }
2503
+
2504
+ // depth returns the depth of this node
2505
+ depth() {
2506
+ return this.ancestors().length;
2507
+ }
2508
+
2509
+ // ancestors returns an array of this nodes ancestors
2510
+ ancestors() {
2511
+ const nodes = [];
2512
+
2513
+ let parent = this.caller;
2514
+ while (parent) {
2515
+ nodes.push(parent);
2516
+ parent = parent.caller;
2517
+ }
2518
+
2519
+ return nodes;
2520
+ }
2521
+
2522
+ // returns whether or not a node has a particular node in its ancestry
2523
+ hasAncestor(ancestor) {
2524
+ let node = this;
2525
+ while (node) {
2526
+ if (node === ancestor) {
2527
+ return true;
2528
+ }
2529
+ node = node.caller;
2530
+ }
2531
+ return false;
2532
+ }
2533
+
2534
+ descendants() {
2535
+ return [this, ...this.children.map((x) => x.descendants()).flat()];
2536
+ }
2537
+
2538
+ next() {
2539
+ if (this.children.length > 0) {
2540
+ return this.children[0];
2541
+ }
2542
+
2543
+ let child = this;
2544
+ let parent = this.caller;
2545
+ const fnChildIndex = (n) => n === child;
2546
+ while (parent) {
2547
+ const myIndex = parent.children.findIndex(fnChildIndex);
2548
+ if (myIndex < 0) {
2549
+ throw new Error(`${this} found orphaned by ${parent}!`);
2550
+ }
2551
+
2552
+ if (myIndex < parent.children.length - 1) {
2553
+ return parent.children[myIndex + 1];
2554
+ }
2555
+
2556
+ child = parent;
2557
+ parent = parent.caller;
2558
+ }
2559
+
2560
+ return null;
2561
+ }
2562
+
2563
+ previous() {
2564
+ const parent = this.caller;
2565
+ if (!parent) {
2566
+ return null;
2567
+ }
2568
+
2569
+ if (parent.children.length === 1) {
2570
+ return parent;
2571
+ }
2572
+
2573
+ const myIndex = parent.children.findIndex((n) => n === this);
2574
+ if (myIndex < 0) {
2575
+ throw new Error(`${this.input.id} found orphaned by ${parent.input.id}!`);
2576
+ }
2577
+
2578
+ if (myIndex > 0) {
2579
+ // this branch will yield our previous node
2580
+ let candidate = parent.children[myIndex - 1];
2581
+
2582
+ // iterate until we find a leaf node
2583
+ while (candidate.children.length > 0) {
2584
+ candidate = candidate.children[candidate.children.length - 1];
2585
+ }
2586
+
2587
+ return candidate;
2588
+ }
2589
+
2590
+ return parent;
2591
+ }
2592
+
2593
+ // return the node to the left, at given max depth
2594
+ left(depth) {
2595
+ const target = depth || this.depth();
2596
+
2597
+ // find the target or the nearest descendant
2598
+ let current = this;
2599
+ for (;;) {
2600
+ const parent = current.caller;
2601
+ if (!parent) return this;
2602
+
2603
+ const siblings = parent.children;
2604
+ const i = siblings.indexOf(current);
2605
+ if (i !== 0) {
2606
+ current = parent.children[i - 1];
2607
+ break;
2608
+ } else {
2609
+ current = parent;
2610
+ }
2611
+ }
2612
+
2613
+ // find rightmost child closest to the right depth
2614
+ while (current.depth() !== target) {
2615
+ const { children } = current;
2616
+ if (children.length === 0) break;
2617
+ current = children[children.length - 1];
2618
+ }
2619
+
2620
+ return current;
2621
+ }
2622
+
2623
+ // return the node to the right, at given max depth
2624
+ right(depth) {
2625
+ const target = depth || this.depth();
2626
+
2627
+ // find the target or the nearest descendant
2628
+ let current = this;
2629
+ for (;;) {
2630
+ const parent = current.caller;
2631
+ if (!parent) return this;
2632
+
2633
+ const siblings = parent.children;
2634
+ const i = siblings.indexOf(current);
2635
+ if (i !== siblings.length - 1) {
2636
+ current = parent.children[i + 1];
2637
+ break;
2638
+ } else {
2639
+ current = parent;
2640
+ }
2641
+ }
2642
+
2643
+ // find leftmost child closest to the right depth
2644
+ while (current.depth() !== target) {
2645
+ const { children } = current;
2646
+ if (children.length === 0) break;
2647
+ [current] = children;
2648
+ }
2649
+
2650
+ return current;
2651
+ }
2652
+
2653
+ isRoot() {
2654
+ return this.caller === null;
2655
+ }
2656
+
2657
+ count() {
2658
+ let numNodes = 0;
2659
+ this.forEach(() => {
2660
+ numNodes += 1;
2661
+ });
2662
+ return numNodes;
2663
+ }
2664
+
2665
+ get id() {
2666
+ if (this.input && this.input.id) {
2667
+ return this.input.id;
2668
+ }
2669
+ return null;
2670
+ }
2671
+ }
2672
+
2673
+ function getListenerArray(eventSource, eventType) {
2674
+ /* eslint-disable no-param-reassign */
2675
+ let listeners = eventSource.listeners[eventType];
2676
+ if (!listeners) {
2677
+ listeners = [];
2678
+ eventSource.listeners[eventType] = listeners;
2679
+ }
2680
+ return listeners;
2681
+ /* eslint-enable no-param-reassign */
2682
+ }
2683
+
2684
+ class EventSource {
2685
+ constructor() {
2686
+ this.listeners = {};
2687
+ this.anyListeners = [];
2688
+ }
2689
+
2690
+ once(eventType, fn) {
2691
+ const handlers = getListenerArray(this, eventType);
2692
+ handlers.push({ fn, once: true });
2693
+ return this;
2694
+ }
2695
+
2696
+ on(eventType, fn) {
2697
+ const handlers = getListenerArray(this, eventType);
2698
+ handlers.push({ fn });
2699
+ return this;
2700
+ }
2701
+
2702
+ off(eventType, fn) {
2703
+ const handlers = this.listeners[eventType];
2704
+
2705
+ if (handlers) {
2706
+ const updatedHandlers = handlers.filter((h) => h.fn && h.fn !== fn);
2707
+ if (updatedHandlers.length === 0) {
2708
+ delete this.listeners[eventType];
2709
+ } else if (updatedHandlers.length !== handlers.length) {
2710
+ this.listeners[eventType] = updatedHandlers;
2711
+ }
2712
+ }
2713
+
2714
+ return this;
2715
+ }
2716
+
2717
+ emit(eventType, data = undefined) {
2718
+ const handlers = this.listeners[eventType];
2719
+
2720
+ if (handlers) {
2721
+ let includesOnce = false;
2722
+ handlers.forEach((handler) => {
2723
+ if (handler.once) {
2724
+ includesOnce = true;
2725
+ }
2726
+
2727
+ try {
2728
+ handler.fn(data);
2729
+ } catch (e) {
2730
+ console.error(`error occurred while executing event ${eventType}`);
2731
+ console.error(e);
2732
+ }
2733
+ });
2734
+
2735
+ if (includesOnce) {
2736
+ // Only reassign this value if we've encountered a handler that's run once
2737
+ this.listeners[eventType] = this.listeners[eventType].filter(
2738
+ (h) => !h.once
2739
+ );
2740
+ }
2741
+ }
2742
+
2743
+ this.anyListeners.forEach((eventSource) =>
2744
+ eventSource.emit(eventType, data)
2745
+ );
2746
+
2747
+ return this;
2748
+ }
2749
+
2750
+ // Pipe events from EventSource A to EventSource B. If `eventTypes` are
2751
+ // provided, bind only those types. Otherwise, pipe any event.
2752
+ pipe(eventSource, ...eventTypes) {
2753
+ if (eventTypes.length) {
2754
+ eventTypes.forEach((type) =>
2755
+ eventSource.on(type, (data) => this.emit(data))
2756
+ );
2757
+ return this;
2758
+ }
2759
+
2760
+ eventSource.any(this);
2761
+ return this;
2762
+ }
2763
+
2764
+ // Bind `eventSource` to recieve any event sent from `this`.
2765
+ any(eventSource) {
2766
+ this.anyListeners.push(eventSource);
2767
+ return this;
2768
+ }
2769
+ }
2770
+
2771
+ class CallTree extends EventSource {
2772
+ constructor(events, functionLabels = () => []) {
2773
+ super();
2774
+
2775
+ this.dataStore = {
2776
+ rootEvent: this.rootNode,
2777
+ selectedEvent: this.rootNode,
2778
+ };
2779
+
2780
+ this.rootEvent = new CallNode();
2781
+ const stack = [this.rootEvent];
2782
+ events.forEach((e) => {
2783
+ if (e.event !== 'call') {
2784
+ if (stack.length > 1) {
2785
+ stack.pop();
2786
+ }
2787
+ return;
2788
+ }
2789
+
2790
+ const parent = stack[stack.length - 1];
2791
+ const callNode = new CallNode(
2792
+ e,
2793
+ e.returnEvent,
2794
+ parent,
2795
+ functionLabels(e)
2796
+ );
2797
+ parent.addChild(callNode);
2798
+ stack.push(callNode);
2799
+ });
2800
+
2801
+ return this;
2802
+ }
2803
+
2804
+ get rootEvent() {
2805
+ return this.dataStore.rootEvent;
2806
+ }
2807
+
2808
+ set rootEvent(event) {
2809
+ this.dataStore.rootEvent = event;
2810
+ this.emit('rootEvent', event);
2811
+ }
2812
+
2813
+ get selectedEvent() {
2814
+ return this.dataStore.selectedEvent;
2815
+ }
2816
+
2817
+ set selectedEvent(event) {
2818
+ this.dataStore.selectedEvent = event;
2819
+ this.emit('selectedEvent', event);
2820
+ }
2821
+ }
2822
+
2823
+ // merge contiguous changes into a single element (as an array)
2824
+ function groupChanges(eventArray) {
2825
+ const events = new Set(eventArray);
2826
+ const seen = new Set();
2827
+ const result = [];
2828
+
2829
+ eventArray.forEach((e) => {
2830
+ if (seen.has(e)) {
2831
+ return;
2832
+ }
2833
+
2834
+ seen.add(e);
2835
+
2836
+ const group = [e];
2837
+ let currentEvent = e;
2838
+ for (;;) {
2839
+ const { nextSibling } = currentEvent;
2840
+ if (nextSibling && events.has(nextSibling)) {
2841
+ group.push(nextSibling);
2842
+ seen.add(nextSibling);
2843
+ currentEvent = nextSibling;
2844
+ } else {
2845
+ break;
2846
+ }
2847
+ }
2848
+
2849
+ result.push(group);
2850
+ });
2851
+
2852
+ return result;
2853
+ }
2854
+
2855
+ class AppMap {
2856
+ constructor(data) {
2857
+ this.data = {
2858
+ events: [],
2859
+ classMap: [],
2860
+ ...data,
2861
+ };
2862
+
2863
+ this.classMap = new ClassMap(this.data.classMap);
2864
+ this.callTree = new CallTree(this.events);
2865
+ this.classMap.bindEvents(this.events);
2866
+ this.labels = buildLabels(this.classMap, this.events);
2867
+
2868
+ // Establish event linked list references
2869
+ let previousEvent;
2870
+ this.events.forEach((e) => {
2871
+ if (previousEvent) {
2872
+ e.previous = previousEvent;
2873
+ previousEvent.next = e;
2874
+ }
2875
+
2876
+ previousEvent = e;
2877
+ });
2878
+
2879
+ // Keep these fields seperate for serialization
2880
+ delete this.data.classMap;
2881
+ }
2882
+
2883
+ get version() {
2884
+ return this.data.version;
2885
+ }
2886
+
2887
+ get metadata() {
2888
+ return this.data.metadata || {};
2889
+ }
2890
+
2891
+ get name() {
2892
+ return this.metadata.name;
2893
+ }
2894
+
2895
+ get rootEvent() {
2896
+ return this.callTree.rootEvent;
2897
+ }
2898
+
2899
+ get events() {
2900
+ return this.data.events;
2901
+ }
2902
+
2903
+ shallowCopy() {
2904
+ const copy = new AppMap({});
2905
+ copy.data.events = this.data.events;
2906
+ copy.data.metadata = this.data.metadata;
2907
+ copy.classMap = this.classMap;
2908
+ copy.callTree = this.callTree;
2909
+ return copy;
2910
+ }
2911
+
2912
+ // Retrieve an array of root entry point events (currently, just HTTP server requests). If none
2913
+ // are found, return all the root nodes which have no caller.
2914
+ rootEvents() {
2915
+ return getRootEvents(this.events);
2916
+ }
2917
+
2918
+ // Iterate many AppMaps at once as an event tree. This method will follow the deepest branch
2919
+ // available, and yield the nodes at that position. Given that the tree structure may differ
2920
+ // across AppMaps, it's possible that some nodes will be null.
2921
+ static *multiTreeIterator(baseAppMap, workingAppMap) {
2922
+ let baseEvent;
2923
+ let workingEvent;
2924
+ const baseQueue = baseAppMap.rootEvents();
2925
+ const workingQueue = workingAppMap.rootEvents();
2926
+
2927
+ resolveDifferences(baseQueue, workingQueue);
2928
+
2929
+ for (;;) {
2930
+ baseEvent = baseQueue.shift();
2931
+ workingEvent = workingQueue.shift();
2932
+
2933
+ // If both are null, every path has been exhausted. We're done.
2934
+ if (!baseEvent && !workingEvent) {
2935
+ return;
2936
+ }
2937
+
2938
+ // Don't bother continuing to iterate through a branch that doesn't exist in the other tree.
2939
+ if (baseEvent && workingEvent) {
2940
+ const baseChildren = baseEvent ? [...baseEvent.children] : [];
2941
+ const workingChildren = workingEvent ? [...workingEvent.children] : [];
2942
+
2943
+ resolveDifferences(baseChildren, workingChildren);
2944
+ baseChildren.forEach((e) => baseQueue.push(e));
2945
+ workingChildren.forEach((e) => workingQueue.push(e));
2946
+ }
2947
+
2948
+ yield [baseEvent, workingEvent];
2949
+ }
2950
+ }
2951
+
2952
+ static getDiff(baseAppMap, workingAppMap) {
2953
+ const changeSummary = {
2954
+ changed: [],
2955
+ added: [],
2956
+ removed: [],
2957
+ };
2958
+
2959
+ const iter = AppMap.multiTreeIterator(baseAppMap, workingAppMap);
2960
+ let result = iter.next();
2961
+ while (!result.done) {
2962
+ const [nodeBase, nodeWorking] = result.value;
2963
+
2964
+ if (!nodeBase) {
2965
+ changeSummary.added.push(nodeWorking);
2966
+ } else if (!nodeWorking) {
2967
+ changeSummary.removed.push(nodeBase);
2968
+ } else if (nodeBase.hash !== nodeWorking.hash) {
2969
+ changeSummary.changed.push([nodeBase, nodeWorking]);
2970
+ }
2971
+
2972
+ result = iter.next();
2973
+ }
2974
+
2975
+ changeSummary.added = groupChanges(changeSummary.added);
2976
+ changeSummary.removed = groupChanges(changeSummary.removed);
2977
+
2978
+ return changeSummary;
2979
+ }
2980
+
2981
+ toJSON() {
2982
+ return {
2983
+ ...this.data,
2984
+ classMap: this.classMap,
2985
+ };
2986
+ }
2987
+ }
2988
+
2989
+ // This class supercedes `CallTree` and `CallNode`. Events are stored in a flat
2990
+ // array and can also be traversed like a tree via `parent` and `children`.
2991
+ class Event {
2992
+ constructor(obj) {
2993
+ let data = obj;
2994
+
2995
+ if (obj instanceof Event) {
2996
+ data = { ...obj };
2997
+
2998
+ if (obj.$hidden.parameters) {
2999
+ data.parameters = obj.$hidden.parameters.map((p) => ({ ...p }));
3000
+ }
3001
+
3002
+ if (Array.isArray(obj.$hidden.message)) {
3003
+ data.message = obj.$hidden.message.map((m) => ({ ...m }));
3004
+ }
3005
+
3006
+ if (obj.$hidden.labels) {
3007
+ data.labels = [...obj.$hidden.labels];
3008
+ }
3009
+ }
3010
+
3011
+ // Cyclic references shall not be enumerable
3012
+ if (data.event === 'call') {
3013
+ addHiddenProperty(this, 'parent');
3014
+ addHiddenProperty(this, 'children', { writable: false, value: [] });
3015
+ addHiddenProperty(this, 'dataReferences', { writable: false, value: [] });
3016
+ addHiddenProperty(this, 'codeObject');
3017
+ addHiddenProperty(this, 'parameters');
3018
+ addHiddenProperty(this, 'message');
3019
+ }
3020
+
3021
+ addHiddenProperty(this, 'linkedEvent');
3022
+ addHiddenProperty(this, 'labels');
3023
+ addHiddenProperty(this, 'next');
3024
+ addHiddenProperty(this, 'previous');
3025
+ addHiddenProperty(this, 'hash');
3026
+ addHiddenProperty(this, 'identityHash');
3027
+ addHiddenProperty(this, 'depth');
3028
+
3029
+ // Data must be written last, after our properties are configured.
3030
+ Object.assign(this, data);
3031
+ }
3032
+
3033
+ get depth() {
3034
+ if (this.$hidden.depth === undefined) {
3035
+ let result = 0;
3036
+ let { parent } = this;
3037
+ while (parent) {
3038
+ result += 1;
3039
+ parent = parent.parent;
3040
+ }
3041
+ this.$hidden.depth = result;
3042
+ }
3043
+ return this.$hidden.depth;
3044
+ }
3045
+
3046
+ get methodId() {
3047
+ return this.method_id;
3048
+ }
3049
+
3050
+ get isFunction() {
3051
+ return this.definedClass && this.methodId;
3052
+ }
3053
+
3054
+ get isStatic() {
3055
+ return this.static;
3056
+ }
3057
+
3058
+ get sql() {
3059
+ return this.callEvent.sql_query;
3060
+ }
3061
+
3062
+ get returnValue() {
3063
+ return this.returnEvent.return_value;
3064
+ }
3065
+
3066
+ get linkedEvent() {
3067
+ return this.$hidden.linkedEvent;
3068
+ }
3069
+
3070
+ get next() {
3071
+ return this.$hidden.next;
3072
+ }
3073
+
3074
+ get previous() {
3075
+ return this.$hidden.previous;
3076
+ }
3077
+
3078
+ get parent() {
3079
+ return this.$hidden.parent;
3080
+ }
3081
+
3082
+ get children() {
3083
+ return this.$hidden.children || [];
3084
+ }
3085
+
3086
+ get codeObject() {
3087
+ return this.callEvent.$hidden.codeObject;
3088
+ }
3089
+
3090
+ get parameters() {
3091
+ return this.callEvent.$hidden.parameters;
3092
+ }
3093
+
3094
+ get labels() {
3095
+ const eventLabels = this.callEvent.$hidden.labels || [];
3096
+ return new Set([...eventLabels, ...this.callEvent.codeObject.labels]);
3097
+ }
3098
+
3099
+ get message() {
3100
+ return this.callEvent.$hidden.message;
3101
+ }
3102
+
3103
+ get httpServerRequest() {
3104
+ return this.callEvent.http_server_request;
3105
+ }
3106
+
3107
+ get httpServerResponse() {
3108
+ return this.returnEvent.http_server_response;
3109
+ }
3110
+
3111
+ get httpClientRequest() {
3112
+ return this.callEvent.http_client_request;
3113
+ }
3114
+
3115
+ get httpClientResponse() {
3116
+ return this.returnEvent.http_client_response;
3117
+ }
3118
+
3119
+ get definedClass() {
3120
+ return this.defined_class ? this.defined_class.replace(/\./g, '/') : null;
3121
+ }
3122
+
3123
+ get requestPath() {
3124
+ if (this.httpServerRequest) {
3125
+ return (
3126
+ this.httpServerRequest.normalized_path_info ||
3127
+ this.httpServerRequest.path_info
3128
+ );
3129
+ }
3130
+ if (this.httpClientRequest) {
3131
+ return this.httpClientRequest.url;
3132
+ }
3133
+ return null;
3134
+ }
3135
+
3136
+ get requestMethod() {
3137
+ if (this.httpServerRequest) {
3138
+ return this.httpServerRequest.request_method;
3139
+ }
3140
+ if (this.httpClientRequest) {
3141
+ return this.httpClientRequest.request_method;
3142
+ }
3143
+ return null;
3144
+ }
3145
+
3146
+ get route() {
3147
+ const { requestMethod, requestPath } = this;
3148
+ if (!requestMethod || !requestPath) {
3149
+ return null;
3150
+ }
3151
+
3152
+ return `${requestMethod} ${requestPath}`;
3153
+ }
3154
+
3155
+ get sqlQuery() {
3156
+ const { sql } = this;
3157
+ if (!sql) {
3158
+ return null;
3159
+ }
3160
+ return sql.normalized_sql || sql.sql;
3161
+ }
3162
+
3163
+ get fqid() {
3164
+ return `event:${this.id}`;
3165
+ }
3166
+
3167
+ get previousSibling() {
3168
+ const { parent } = this;
3169
+ if (!parent) {
3170
+ return null;
3171
+ }
3172
+
3173
+ const myIndex = parent.children.findIndex((e) => e === this);
3174
+ console.assert(
3175
+ myIndex !== -1,
3176
+ 'attempted to locate index of an orphaned event'
3177
+ );
3178
+
3179
+ if (myIndex === 0) {
3180
+ return null;
3181
+ }
3182
+
3183
+ return parent.children[myIndex - 1];
3184
+ }
3185
+
3186
+ get nextSibling() {
3187
+ const { parent } = this;
3188
+
3189
+ if (!parent) {
3190
+ let event = this.next;
3191
+
3192
+ // Get the next root level event
3193
+ while (event) {
3194
+ if (event.isCall() && !event.parent) {
3195
+ return event;
3196
+ }
3197
+
3198
+ event = event.next;
3199
+ }
3200
+
3201
+ return null;
3202
+ }
3203
+
3204
+ const myIndex = this.parent.children.findIndex((e) => e === this);
3205
+ console.assert(
3206
+ myIndex !== -1,
3207
+ 'attempted to locate index of an orphaned event'
3208
+ );
3209
+
3210
+ if (myIndex === parent.children.length - 1) {
3211
+ return null;
3212
+ }
3213
+
3214
+ return parent.children[myIndex + 1];
3215
+ }
3216
+
3217
+ set codeObject(value) {
3218
+ if (hasProp(this.$hidden, 'codeObject')) {
3219
+ this.$hidden.codeObject = value;
3220
+ }
3221
+ }
3222
+
3223
+ set parameters(value) {
3224
+ if (hasProp(this.$hidden, 'parameters')) {
3225
+ this.$hidden.parameters = value;
3226
+ }
3227
+ }
3228
+
3229
+ set labels(value) {
3230
+ if (hasProp(this.$hidden, 'labels')) {
3231
+ this.$hidden.labels = value;
3232
+ }
3233
+ }
3234
+
3235
+ set message(value) {
3236
+ if (hasProp(this.$hidden, 'message')) {
3237
+ this.$hidden.message = value;
3238
+ }
3239
+ }
3240
+
3241
+ set linkedEvent(value) {
3242
+ this.$hidden.linkedEvent = value;
3243
+ }
3244
+
3245
+ set next(value) {
3246
+ this.$hidden.next = value;
3247
+ }
3248
+
3249
+ set previous(value) {
3250
+ this.$hidden.previous = value;
3251
+ }
3252
+
3253
+ set parent(value) {
3254
+ this.$hidden.parent = value;
3255
+ }
3256
+
3257
+ link(event) {
3258
+ /* eslint-disable no-param-reassign */
3259
+ if (event.linkedEvent || this.linkedEvent) {
3260
+ return;
3261
+ }
3262
+
3263
+ event.linkedEvent = this;
3264
+ this.linkedEvent = event;
3265
+ /* eslint-enable no-param-reassign */
3266
+ }
3267
+
3268
+ isCall() {
3269
+ return this.event === 'call';
3270
+ }
3271
+
3272
+ isReturn() {
3273
+ return this.event === 'return';
3274
+ }
3275
+
3276
+ get callEvent() {
3277
+ return this.isCall() ? this : this.$hidden.linkedEvent;
3278
+ }
3279
+
3280
+ get returnEvent() {
3281
+ return this.isReturn() ? this : this.$hidden.linkedEvent;
3282
+ }
3283
+
3284
+ get hash() {
3285
+ if (!this.$hidden.hash) {
3286
+ this.$hidden.hash = hashEvent(this);
3287
+ }
3288
+ return this.$hidden.hash;
3289
+ }
3290
+
3291
+ get identityHash() {
3292
+ if (!this.$hidden.identityHash) {
3293
+ this.$hidden.identityHash = identityHashEvent(this);
3294
+ }
3295
+ return this.$hidden.identityHash;
3296
+ }
3297
+
3298
+ callStack() {
3299
+ const stack = this.ancestors().reverse();
3300
+ stack.push(this.callEvent);
3301
+ return stack;
3302
+ }
3303
+
3304
+ ancestors() {
3305
+ const ancestorArray = [];
3306
+ let event = this.callEvent.parent;
3307
+
3308
+ while (event) {
3309
+ ancestorArray.push(event);
3310
+ event = event.parent;
3311
+ }
3312
+
3313
+ return ancestorArray;
3314
+ }
3315
+
3316
+ descendants() {
3317
+ const descendantArray = [];
3318
+ const queue = [...this.children];
3319
+
3320
+ while (queue.length) {
3321
+ const event = queue.pop();
3322
+ event.children.forEach((child) => queue.push(child));
3323
+ descendantArray.push(event);
3324
+ }
3325
+
3326
+ return descendantArray;
3327
+ }
3328
+
3329
+ traverse(fn) {
3330
+ let event = this;
3331
+ const boundaryEvent = this.nextSibling;
3332
+ let { onEnter } = fn;
3333
+ let { onExit } = fn;
3334
+
3335
+ if (typeof fn === 'function') {
3336
+ onEnter = fn;
3337
+ onExit = fn;
3338
+ }
3339
+
3340
+ while (event) {
3341
+ if (event.isCall() && onEnter) {
3342
+ onEnter(event);
3343
+ } else if (event.isReturn() && onExit) {
3344
+ onExit(event);
3345
+ }
3346
+
3347
+ event = event.next;
3348
+ if (!event || event === boundaryEvent) {
3349
+ break;
3350
+ }
3351
+ }
3352
+ }
3353
+
3354
+ dataObjects() {
3355
+ return [this.parameters, this.message, this.returnValue]
3356
+ .flat()
3357
+ .filter(Boolean);
3358
+ }
3359
+
3360
+ toString() {
3361
+ const { sqlQuery } = this;
3362
+ if (sqlQuery) {
3363
+ return sqlQuery;
3364
+ }
3365
+
3366
+ const { route } = this;
3367
+ if (route) {
3368
+ return route;
3369
+ }
3370
+
3371
+ const { definedClass, isStatic, methodId } = this;
3372
+ return `${definedClass}${isStatic ? '.' : '#'}${methodId}`;
3373
+ }
3374
+ }
3375
+
3376
+ class EventStack {
3377
+ constructor(id) {
3378
+ this.events = [];
3379
+ this.stack = [];
3380
+ this.id = id;
3381
+ this.eventMap = {};
3382
+ }
3383
+
3384
+ add(event) {
3385
+ // Don't begin a stack with a return, we likely started recording in the
3386
+ // middle of thread execution.
3387
+ if (event.isReturn() && this.events.length === 0) {
3388
+ return;
3389
+ }
3390
+
3391
+ if (event.isCall()) {
3392
+ this.stack.push(event);
3393
+ this.eventMap[event.id] = event;
3394
+ } else {
3395
+ if (typeof event.parent_id === 'undefined') {
3396
+ const lastEvent = this.stack[this.stack.length - 1];
3397
+ if (
3398
+ lastEvent &&
3399
+ lastEvent.defined_class === event.defined_class &&
3400
+ lastEvent.method_id === event.method_id &&
3401
+ lastEvent.path === event.path &&
3402
+ lastEvent.static === event.static
3403
+ ) {
3404
+ event.parent_id = lastEvent.id; // eslint-disable-line no-param-reassign
3405
+ } else {
3406
+ // An event has returned but the last call in the stack was not its
3407
+ // caller. There's not really anything we can do to rectify this, so
3408
+ // the event will be discarded.
3409
+ return;
3410
+ }
3411
+ }
3412
+
3413
+ const call = this.eventMap[event.parent_id];
3414
+ if (call) {
3415
+ call.link(event);
3416
+ this.stack.pop();
3417
+
3418
+ const parent = this.stack[this.stack.length - 1];
3419
+ if (parent) {
3420
+ parent.children.push(call);
3421
+ call.parent = parent;
3422
+ }
3423
+ } else {
3424
+ throw new Error(
3425
+ `return #${event.id} is missing call #${event.parent_id}`
3426
+ );
3427
+ }
3428
+ }
3429
+
3430
+ this.events.push(event);
3431
+ }
3432
+
3433
+ unwound() {
3434
+ return this.events.length > 0 && this.stack.length === 0;
3435
+ }
3436
+ }
3437
+
3438
+ function getStackId(collection) {
3439
+ return (
3440
+ Object.keys(collection.activeStacks).length +
3441
+ collection.finalizedStacks.length
3442
+ );
3443
+ }
3444
+
3445
+ // EventSorter is responsible for untangling an event array. It sorts events by
3446
+ // thread execution order and drops leading return statements.
3447
+ class EventSorter {
3448
+ constructor() {
3449
+ this.activeStacks = {};
3450
+ this.finalizedStacks = [];
3451
+ }
3452
+
3453
+ // Add an event to be sorted. An event must be added through this method to
3454
+ // be collected.
3455
+ add(event) {
3456
+ let stack = this.activeStacks[event.thread_id];
3457
+ if (!stack) {
3458
+ const id = getStackId(this);
3459
+ stack = new EventStack(id);
3460
+ this.activeStacks[event.thread_id] = stack;
3461
+ }
3462
+
3463
+ stack.add(event);
3464
+
3465
+ if (stack.unwound()) {
3466
+ this.finalizedStacks.splice(stack.id, 0, stack.events);
3467
+ delete this.activeStacks[event.thread_id];
3468
+ }
3469
+ }
3470
+
3471
+ // Calculate the serialized size of all events. This is more of an
3472
+ // approximation than an exact number.
3473
+ size() {
3474
+ let size = sizeof(Object.values(this.activeStacks));
3475
+ size += sizeof(this.finalizedStacks);
3476
+ return size;
3477
+ }
3478
+
3479
+ // Returns an array of "chunks". A chunk is an array consisting of many
3480
+ // stacks. A stack is an array consisting of many events.
3481
+ collect() {
3482
+ // Join active and finalized stacks. We want to make sure we iterate over
3483
+ // every event.
3484
+ const stacks = [...this.finalizedStacks];
3485
+ Object.values(this.activeStacks).forEach((s) =>
3486
+ stacks.splice(s.id, 0, s.events)
3487
+ );
3488
+
3489
+ return stacks.reduce((chunks, stack) => {
3490
+ if (stack.length === 0) {
3491
+ return chunks;
3492
+ }
3493
+
3494
+ // We're the first chunk in, meaning we don't need to worry about any
3495
+ // chunks behind us. Just push it.
3496
+ if (chunks.length === 0) {
3497
+ chunks.push([stack]);
3498
+ return chunks;
3499
+ }
3500
+
3501
+ // If the root event is an HTTP request, this a complete chunk. Push it.
3502
+ if (stack[0].http_server_request) {
3503
+ chunks.push([stack]);
3504
+ return chunks;
3505
+ }
3506
+
3507
+ if (stack[0].http_client_request) {
3508
+ chunks.push([stack]);
3509
+ return chunks;
3510
+ }
3511
+
3512
+ // Check to see if the previous chunk began with an HTTP request. If it
3513
+ // does, push a new chunk. Otherwise, append to the last chunk.
3514
+ const prevChunk = chunks[chunks.length - 1];
3515
+ const prevStack = prevChunk[prevChunk.length - 1];
3516
+ if (
3517
+ prevStack[0].http_server_request ||
3518
+ prevStack[0].http_client_request
3519
+ ) {
3520
+ chunks.push([stack]);
3521
+ } else {
3522
+ prevChunk.push(stack);
3523
+ }
3524
+
3525
+ return chunks;
3526
+ }, []);
3527
+ }
3528
+ }
3529
+
3530
+ function eventName(classMap, e) {
3531
+ const { callEvent } = e;
3532
+ const obj = classMap.codeObjectFromEvent(callEvent);
3533
+ if (obj) {
3534
+ return obj.id;
3535
+ }
3536
+
3537
+ return `${callEvent.defined_class}${callEvent.static ? '.' : '#'}${
3538
+ callEvent.method_id
3539
+ }`;
3540
+ }
3541
+
3542
+ // Performs an array of transform functions on an object. The transform function
3543
+ // is expected to return the transformed object.
3544
+ const transform = (transforms, obj, ...args) =>
3545
+ transforms.reduce((x, fn) => fn(x, ...args), obj);
3546
+
3547
+ // AppMapBuilder is responsible for transforming appmap data before returning
3548
+ // an AppMap model.
3549
+ class AppMapBuilder extends EventSource {
3550
+ constructor(data) {
3551
+ super();
3552
+
3553
+ this.sorter = new EventSorter();
3554
+ this.transforms = {
3555
+ event: [],
3556
+ stack: [],
3557
+ chunk: [],
3558
+ };
3559
+
3560
+ if (data) {
3561
+ this.source(data);
3562
+ }
3563
+ }
3564
+
3565
+ // Provide a source of data - i.e. an appmap JSON object
3566
+ source(data) {
3567
+ const dataType = typeof data;
3568
+ if (dataType === 'object') {
3569
+ this.data = { ...data };
3570
+ } else if (dataType === 'string') {
3571
+ this.data = JSON.parse(data);
3572
+ } else {
3573
+ throw new Error(
3574
+ `got invalid type ${dataType}, expected object or string`
3575
+ );
3576
+ }
3577
+
3578
+ (this.data.events || [])
3579
+ .map((e) => new Event(e))
3580
+ .forEach((e) => this.sorter.add(e));
3581
+
3582
+ delete this.data.events;
3583
+
3584
+ return this;
3585
+ }
3586
+
3587
+ // register an optional event transform
3588
+ event(fn) {
3589
+ console.assert(typeof fn === 'function');
3590
+ this.transforms.event.push(fn);
3591
+ return this;
3592
+ }
3593
+
3594
+ // register a optional stack transform
3595
+ stack(fn) {
3596
+ console.assert(typeof fn === 'function');
3597
+ this.transforms.stack.push(fn);
3598
+ return this;
3599
+ }
3600
+
3601
+ // register a optional chunk transform
3602
+ chunk(fn) {
3603
+ console.assert(typeof fn === 'function');
3604
+ this.transforms.chunk.push(fn);
3605
+ return this;
3606
+ }
3607
+
3608
+ // normalize the appmap data before returning an Appmap model
3609
+ normalize() {
3610
+ // Re-index events
3611
+ let eventId = 1;
3612
+ this.event((event) => {
3613
+ /* eslint-disable no-param-reassign */
3614
+ event.id = eventId;
3615
+ eventId += 1;
3616
+
3617
+ if (event.isCall() && event.returnEvent) {
3618
+ event.returnEvent.parent_id = event.id;
3619
+ }
3620
+
3621
+ // Normalize status/status_code properties
3622
+ const { httpServerResponse, httpClientResponse } = event;
3623
+ if (event.isReturn()) {
3624
+ if (httpServerResponse && httpServerResponse.status_code) {
3625
+ httpServerResponse.status = httpServerResponse.status_code;
3626
+ delete httpServerResponse.status_code;
3627
+ }
3628
+ if (httpClientResponse && httpClientResponse.status_code) {
3629
+ httpClientResponse.status = httpClientResponse.status_code;
3630
+ delete httpClientResponse.status_code;
3631
+ }
3632
+ }
3633
+
3634
+ return event;
3635
+ /* eslint-enable no-param-reassign */
3636
+ });
3637
+
3638
+ // Balance the stack by adding dummy returns to calls which never return
3639
+ return this.stack((events) => {
3640
+ events
3641
+ .filter((e) => e.isCall() && !e.returnEvent)
3642
+ .reverse()
3643
+ .map((e) => {
3644
+ const returnEvent = new Event({
3645
+ event: 'return',
3646
+ thread_id: e.thread_id,
3647
+ parent_id: e.id,
3648
+ });
3649
+ returnEvent.link(e);
3650
+ return returnEvent;
3651
+ })
3652
+ .forEach((e) => events.push(e));
3653
+
3654
+ return events;
3655
+ });
3656
+ }
3657
+
3658
+ // Cut down the size of the event array before creating the Appmap model
3659
+ prune(sizeBytes) {
3660
+ console.assert(typeof sizeBytes === 'number');
3661
+
3662
+ let classMap;
3663
+ let pruneRatio = 0;
3664
+ return this.on('preprocess', (d) => {
3665
+ classMap = new ClassMap(d.data.classMap);
3666
+ pruneRatio = Math.min(sizeBytes / d.size, 1);
3667
+ }).chunk((stacks) => {
3668
+ // We're storing size/count state in the global class map. This isn't
3669
+ // great but it works for now. Reset the counts for each chunk.
3670
+ classMap.visit((obj) => {
3671
+ /* eslint-disable no-param-reassign */
3672
+ obj.size = 0;
3673
+ obj.count = 0;
3674
+ /* eslint-enable no-param-reassign */
3675
+ });
3676
+
3677
+ // Iterate each event, regardless of the stack
3678
+ stacks.flat(2).forEach((e) => {
3679
+ if (
3680
+ e.event !== 'call' ||
3681
+ e.sql_query ||
3682
+ e.http_server_request ||
3683
+ e.http_client_request
3684
+ ) {
3685
+ return;
3686
+ }
3687
+
3688
+ const obj = classMap.codeObjectFromEvent(e);
3689
+ if (obj) {
3690
+ const objSize = sizeof(e);
3691
+ obj.size = obj.size + objSize || objSize;
3692
+ obj.count = obj.count + 1 || 1;
3693
+ }
3694
+ });
3695
+
3696
+ // Build an array of code objects sorted by size. The largest object
3697
+ // will always be index 0.
3698
+ let totalBytes = 0;
3699
+ const eventAggregates = classMap.codeObjects
3700
+ .filter((obj) => obj.size)
3701
+ .sort((a, b) => a.size - b.size)
3702
+ .map((obj) => {
3703
+ totalBytes += obj.size;
3704
+ return {
3705
+ id: obj.id,
3706
+ count: obj.count,
3707
+ size: obj.size,
3708
+ totalBytes,
3709
+ };
3710
+ })
3711
+ .reverse();
3712
+
3713
+ // Build a list of unique exclusions, starting with the largest event
3714
+ // type. Iterate until the estimated event array size is under our
3715
+ // threshold.
3716
+ const exclusions = new Set();
3717
+ for (let i = 0; i < eventAggregates.length; i += 1) {
3718
+ const eventInfo = eventAggregates[i];
3719
+ if (eventInfo.totalBytes <= totalBytes * pruneRatio) {
3720
+ break;
3721
+ }
3722
+ exclusions.add(eventInfo.id);
3723
+ }
3724
+
3725
+ return stacks.map((events) =>
3726
+ events.filter((e) => {
3727
+ const { callEvent } = e;
3728
+
3729
+ // If there's no call event, there's no need to retain this event
3730
+ if (!callEvent) {
3731
+ return false;
3732
+ }
3733
+
3734
+ if (
3735
+ callEvent.http_server_request ||
3736
+ callEvent.http_client_request ||
3737
+ callEvent.sql_query
3738
+ ) {
3739
+ return true;
3740
+ }
3741
+
3742
+ const name = eventName(classMap, e);
3743
+ return !exclusions.has(name);
3744
+ })
3745
+ );
3746
+ });
3747
+ }
3748
+
3749
+ removeNoise() {
3750
+ if (!this.data.events) {
3751
+ return this;
3752
+ }
3753
+
3754
+ const hasHttp = Boolean(
3755
+ this.data.events.find((e) => e.httpServerRequest || e.httpClientRequest)
3756
+ );
3757
+ if (!hasHttp) {
3758
+ // the entire file is noise - do nothing
3759
+ return this;
3760
+ }
3761
+
3762
+ return this.chunk((stacks) =>
3763
+ stacks.filter((stack) => {
3764
+ if (!stack.length) {
3765
+ return false;
3766
+ }
3767
+
3768
+ return (
3769
+ Boolean(stack[0].httpServerRequest) ||
3770
+ Boolean(stack[0].httpClientRequest)
3771
+ );
3772
+ })
3773
+ );
3774
+ }
3775
+
3776
+ collectEvents() {
3777
+ return this.sorter
3778
+ .collect()
3779
+ .map((chunk) => {
3780
+ const transformedChunk = transform(this.transforms.chunk, chunk);
3781
+ return transformedChunk.map((stack) => {
3782
+ const transformedStack = transform(this.transforms.stack, stack);
3783
+ return transformedStack.map((event) =>
3784
+ transform(this.transforms.event, event)
3785
+ );
3786
+ });
3787
+ })
3788
+ .flat(2);
3789
+ }
3790
+
3791
+ // Returns an Appmap model after running transforms such as normalize, prune,
3792
+ // etc.
3793
+ build() {
3794
+ const size = this.sorter.size();
3795
+ this.emit('preprocess', { size, data: this.data });
3796
+ return new AppMap({ ...this.data, events: this.collectEvents() });
3797
+ }
3798
+ }
3799
+
3800
+ function buildAppMap(data = null) {
3801
+ return new AppMapBuilder(data);
3802
+ }
3803
+
3804
+ class EventNavigator {
3805
+ constructor(event) {
3806
+ this.event = event;
3807
+ }
3808
+
3809
+ get callEvent() {
3810
+ return this.event.callEvent;
3811
+ }
3812
+
3813
+ get labels() {
3814
+ const { codeObject } = this.event;
3815
+ if (codeObject && codeObject.labels) {
3816
+ return codeObject.labels;
3817
+ }
3818
+ return null;
3819
+ }
3820
+
3821
+ *self() {
3822
+ yield this;
3823
+ }
3824
+
3825
+ *ancestors() {
3826
+ let event = this.callEvent.parent;
3827
+
3828
+ while (event) {
3829
+ yield new EventNavigator(event);
3830
+ event = event.parent;
3831
+ }
3832
+ }
3833
+
3834
+ /**
3835
+ * Generates all events which precede this event in the scenario.
3836
+ */
3837
+ *preceding() {
3838
+ const ancestors = this.ancestors();
3839
+ let ancestor = ancestors.next();
3840
+ while (!ancestor.done) {
3841
+ yield new EventNavigator(ancestor.value);
3842
+ let precedingSibling = this.precedingSiblings.next();
3843
+ while (!precedingSibling.done) {
3844
+ yield new EventNavigator(precedingSibling.value);
3845
+ const descendants = precedingSibling.value.descendants();
3846
+ let descendant = descendants.next();
3847
+ while (!descendant.done) {
3848
+ yield new EventNavigator(descendant.value);
3849
+ descendant = descendants.next();
3850
+ }
3851
+ precedingSibling = this.precedingSiblings.next();
3852
+ }
3853
+ ancestor = ancestors.next();
3854
+ }
3855
+ }
3856
+
3857
+ *precedingSiblings() {
3858
+ const { parent } = this.callEvent;
3859
+ if (!parent) {
3860
+ return;
3861
+ }
3862
+
3863
+ const index = parent.children.indexOf(this.callEvent);
3864
+ for (let i = index - 1; i >= 0; i -= 1) {
3865
+ yield new EventNavigator(parent.children[i]);
3866
+ }
3867
+ }
3868
+
3869
+ *followingSiblings() {
3870
+ const { parent } = this.callEvent;
3871
+ if (!parent) {
3872
+ return;
3873
+ }
3874
+
3875
+ const index = parent.children.indexOf(this.callEvent);
3876
+ for (let i = index + 1; i < parent.children.length; i += 1) {
3877
+ yield new EventNavigator(parent.children[i]);
3878
+ }
3879
+ }
3880
+
3881
+ *descendants(filterFn = () => true) {
3882
+ if (!this.event.children || this.event.children.length === 0) {
3883
+ return;
3884
+ }
3885
+
3886
+ // We want to traverse in order. So we use this type of traversal,
3887
+ // rather than pushing all the events onto a queue. We avoid using
3888
+ // Array.shift which can be expensive.
3889
+ const queue = [this.event.children];
3890
+ let queueIndex = 0;
3891
+ let childIndex = 0;
3892
+
3893
+ while (queueIndex < queue.length) {
3894
+ const event = queue[queueIndex][childIndex];
3895
+ if (filterFn(event)) {
3896
+ yield new EventNavigator(event);
3897
+ }
3898
+ if (childIndex === queue[queueIndex].length - 1) {
3899
+ queueIndex += 1;
3900
+ childIndex = 0;
3901
+ } else {
3902
+ childIndex += 1;
3903
+ }
3904
+ if (event.children.length > 0) {
3905
+ queue.push(event.children);
3906
+ }
3907
+ }
3908
+ }
3909
+
3910
+ hasLabel(label) {
3911
+ return this.hasLabels([label]);
3912
+ }
3913
+
3914
+ hasLabels(...searchLabels) {
3915
+ if (!this.labels) {
3916
+ return false;
3917
+ }
3918
+
3919
+ if (!searchLabels || !searchLabels.length) {
3920
+ return this.labels.size > 0;
3921
+ }
3922
+
3923
+ return (
3924
+ searchLabels.filter((l) => this.labels.has(l)).length ===
3925
+ searchLabels.length
3926
+ );
3927
+ }
3928
+ }
3929
+
3930
+ function mapFunctionLocations(memo, obj) {
3931
+ /* eslint-disable no-param-reassign */
3932
+ if (obj.type === 'function') {
3933
+ memo[obj.location] = obj;
3934
+ }
3935
+
3936
+ if (obj.children) {
3937
+ obj.children.reduce(mapFunctionLocations, memo);
3938
+ }
3939
+
3940
+ return memo;
3941
+ /* eslint-enable no-param-reassign */
3942
+ }
3943
+
3944
+ class EventInfo {
3945
+ constructor(classMap) {
3946
+ this.functionObjects = classMap.reduce(mapFunctionLocations, {});
3947
+ }
3948
+
3949
+ getName(event) {
3950
+ const label = getLabel(event);
3951
+ if (label) {
3952
+ return label;
3953
+ }
3954
+
3955
+ const codeObj = this.getCodeObject(event);
3956
+ if (codeObj) {
3957
+ return codeObj.display_name;
3958
+ }
3959
+
3960
+ // Fallback algorithm
3961
+ const separator = event.static ? '.' : '#';
3962
+ return [event.defined_class, separator, event.method_id].join('');
3963
+ }
3964
+
3965
+ getLabels(event) {
3966
+ const labels = [];
3967
+
3968
+ if (event.labels) {
3969
+ labels.push(...event.labels);
3970
+ }
3971
+
3972
+ const codeObj = this.getCodeObject(event);
3973
+ if (codeObj && codeObj.labels.length) {
3974
+ labels.push(...codeObj.labels);
3975
+ }
3976
+
3977
+ return labels;
3978
+ }
3979
+
3980
+ getCodeObject(event) {
3981
+ return this.functionObjects[`${event.path}:${event.lineno}`];
3982
+ }
3983
+ }
3984
+
3985
+ const PUBLIC = 'public';
3986
+ const MVC_MODEL = 'model';
3987
+ const MVC_VIEW = 'view';
3988
+ const MVC_CONTROLLER = 'controller';
3989
+ const PROVIDER_AUTHENTICATION = 'provider.authentication';
3990
+ const PROVIDER_AUTHORIZATION = 'provider.authorization';
3991
+
3992
+ /**
3993
+ * Indicates that a scan has detected an illegal condition on an event.
3994
+ */
3995
+ class ScanError extends Error {
3996
+ constructor(message, event) {
3997
+ super(message);
3998
+ this.event = event;
3999
+ }
4000
+ }
4001
+
4002
+ /* eslint-disable no-restricted-syntax */
4003
+
4004
+ class Public {
4005
+ constructor(event) {
4006
+ this.event = event;
4007
+ }
4008
+
4009
+ toString() {
4010
+ return `${this.event.toString()} is public`;
4011
+ }
4012
+ }
4013
+
4014
+ class Authenticator {
4015
+ constructor(event) {
4016
+ this.event = event;
4017
+ }
4018
+
4019
+ toString() {
4020
+ return `Authentication is provided by ${this.event.toString()}`;
4021
+ }
4022
+ }
4023
+
4024
+ function isPublic(event) {
4025
+ return event.codeObject && event.codeObject.labels.has(PUBLIC);
4026
+ }
4027
+
4028
+ function providesAuthentication(event) {
4029
+ return (
4030
+ event.codeObject &&
4031
+ event.codeObject.labels.has(PROVIDER_AUTHENTICATION) &&
4032
+ !isFalsey(event.returnValue)
4033
+ );
4034
+ }
4035
+
4036
+ class Target$1 {
4037
+ constructor(event) {
4038
+ this.event = event;
4039
+ }
4040
+
4041
+ toString() {
4042
+ return this.event.toString();
4043
+ }
4044
+
4045
+ /**
4046
+ * Finds the labeled authenticator within the scope.
4047
+ */
4048
+ // eslint-disable-next-line require-yield
4049
+ *evaluate() {
4050
+ const pub = this.event.descendants(isPublic).next();
4051
+ if (pub.value) {
4052
+ yield new Public(pub);
4053
+ return;
4054
+ }
4055
+
4056
+ const authenticator = this.event.descendants(providesAuthentication).next();
4057
+ if (authenticator.value) {
4058
+ yield new Authenticator(authenticator.value.event);
4059
+ return;
4060
+ }
4061
+ yield new ScanError(
4062
+ `No authentication provider found in ${this.event.event.route}`,
4063
+ this.event.event
4064
+ );
4065
+ }
4066
+ }
4067
+
4068
+ class Scope$1 {
4069
+ constructor(event) {
4070
+ this.event = event;
4071
+ }
4072
+
4073
+ toString() {
4074
+ return this.event.toString();
4075
+ }
4076
+
4077
+ *targets() {
4078
+ yield new Target$1(this.event);
4079
+ }
4080
+ }
4081
+
4082
+ function isAcceptedRoute(event) {
4083
+ if (!event.isCall()) {
4084
+ return false;
4085
+ }
4086
+
4087
+ if (!event.httpServerRequest) {
4088
+ return false;
4089
+ }
4090
+
4091
+ if (event.httpServerResponse && event.httpServerResponse.status >= 300) {
4092
+ return false;
4093
+ }
4094
+
4095
+ return true;
4096
+ }
4097
+
4098
+ /**
4099
+ * Ensures non-public routes have authentication.
4100
+ */
4101
+ class AuthenticationMissing {
4102
+ // eslint-disable-next-line class-methods-use-this
4103
+ toString() {
4104
+ return 'Authentication is required';
4105
+ }
4106
+
4107
+ // eslint-disable-next-line class-methods-use-this
4108
+ *scopes(events) {
4109
+ for (let index = 0; index < events.length; index += 1) {
4110
+ const evt = events[index];
4111
+ if (isAcceptedRoute(evt)) {
4112
+ yield new Scope$1(new EventNavigator(evt));
4113
+ }
4114
+ }
4115
+ }
4116
+ }
4117
+
4118
+ /* eslint-disable import/prefer-default-export */
4119
+
4120
+ class Target {
4121
+ // eslint-disable-next-line class-methods-use-this
4122
+ toString() {
4123
+ return 'Target';
4124
+ }
4125
+
4126
+ *evaluate() {
4127
+ for (const event of this.event.descendants((evt) => evt.sql_query)) {
4128
+ yield new ScanError(
4129
+ `Query ${event.toString()} performed from view`,
4130
+ event
4131
+ );
4132
+ }
4133
+ }
4134
+ }
4135
+
4136
+ class Scope {
4137
+ constructor(event) {
4138
+ this.event = event;
4139
+ }
4140
+
4141
+ toString() {
4142
+ return this.event.toString();
4143
+ }
4144
+
4145
+ /**
4146
+ * Finds the labeled mvc.view.
4147
+ */
4148
+ *targets() {
4149
+ for (const event of this.event.descendants((evt) =>
4150
+ evt.hasLabel(MVC_VIEW)
4151
+ )) {
4152
+ yield new Target(event);
4153
+ }
4154
+ }
4155
+ }
4156
+
4157
+ /**
4158
+ * Forbids SQL queries from the view layer.
4159
+ */
4160
+ class QueryFromView {
4161
+ // eslint-disable-next-line class-methods-use-this
4162
+ *scopes(event) {
4163
+ for (const scope of new EventNavigator(event).descendants(
4164
+ (evt) => evt.httpServerRequest
4165
+ )) {
4166
+ yield new Scope(scope);
4167
+ }
4168
+ }
4169
+ }
4170
+
4171
+ /* eslint-disable no-restricted-syntax */
4172
+ function scan(scanner) {
4173
+ return (events) => {
4174
+ const targets = [];
4175
+ const matches = [];
4176
+ const errors = [];
4177
+ for (const scope of scanner.scopes(events)) {
4178
+ for (const target of scope.targets()) {
4179
+ targets.push(target);
4180
+ for (const result of target.evaluate()) {
4181
+ if (result instanceof ScanError) {
4182
+ errors.push(result);
4183
+ } else {
4184
+ matches.push(result);
4185
+ }
4186
+ }
4187
+ }
4188
+ }
4189
+ return { targets, matches, errors };
4190
+ };
4191
+ }
4192
+
4193
+ export { AppMap, AuthenticationMissing, Authenticator, CallTree, ClassMap, CodeObject, CodeObjectType, Event, EventInfo, EventNavigator, EventSource, MVC_CONTROLLER, MVC_MODEL, MVC_VIEW, PROVIDER_AUTHENTICATION, PROVIDER_AUTHORIZATION, PUBLIC, Public, QueryFromView, ScanError, addHiddenProperty, appMapObjectCompare, arrayCompare, buildAppMap, buildLabels, capitalizeString, fullyQualifiedFunctionName, getHttpLabel, getLabel, getRepositoryUrl, getRootEvents, getSqlLabel, getSqlLabelFromString, hasProp, hashEvent, hashHttp, hashSql, hashify, httpCompare, identityHashEvent, isCommand, isFalsey, normalizeSQL, resolveDifferences, scan, setCompare, sizeof, sqlCompare, tokenizeIdentifier };