rails_modular_admin 0.3.1 → 0.4.0

Sign up to get free protection for your applications and to get access to all the features.
Files changed (1416) hide show
  1. checksums.yaml +4 -4
  2. data/app/assets/javascripts/list.txt +23 -0
  3. data/app/assets/javascripts/rails_modular_admin/vendor.js +60351 -60351
  4. data/app/assets/javascripts/rails_modular_admin.js +1 -0
  5. data/app/assets/node_modules/animate.css/LICENSE +21 -0
  6. data/app/assets/node_modules/animate.css/README.md +233 -0
  7. data/app/assets/node_modules/animate.css/animate-config.json +120 -0
  8. data/app/assets/node_modules/animate.css/animate.css +3494 -0
  9. data/app/assets/node_modules/animate.css/animate.min.css +11 -0
  10. data/app/assets/node_modules/animate.css/bower.json +5 -0
  11. data/app/assets/node_modules/animate.css/gulpfile.js +107 -0
  12. data/app/assets/node_modules/animate.css/package.json +54 -0
  13. data/app/assets/node_modules/animate.css/source/_base.css +8 -0
  14. data/app/assets/node_modules/animate.css/source/attention_seekers/bounce.css +30 -0
  15. data/app/assets/node_modules/animate.css/source/attention_seekers/flash.css +16 -0
  16. data/app/assets/node_modules/animate.css/source/attention_seekers/headShake.css +30 -0
  17. data/app/assets/node_modules/animate.css/source/attention_seekers/jello.css +40 -0
  18. data/app/assets/node_modules/animate.css/source/attention_seekers/pulse.css +19 -0
  19. data/app/assets/node_modules/animate.css/source/attention_seekers/rubberBand.css +33 -0
  20. data/app/assets/node_modules/animate.css/source/attention_seekers/shake.css +25 -0
  21. data/app/assets/node_modules/animate.css/source/attention_seekers/swing.css +26 -0
  22. data/app/assets/node_modules/animate.css/source/attention_seekers/tada.css +31 -0
  23. data/app/assets/node_modules/animate.css/source/attention_seekers/wobble.css +35 -0
  24. data/app/assets/node_modules/animate.css/source/bouncing_entrances/bounceIn.css +42 -0
  25. data/app/assets/node_modules/animate.css/source/bouncing_entrances/bounceInDown.css +35 -0
  26. data/app/assets/node_modules/animate.css/source/bouncing_entrances/bounceInLeft.css +35 -0
  27. data/app/assets/node_modules/animate.css/source/bouncing_entrances/bounceInRight.css +35 -0
  28. data/app/assets/node_modules/animate.css/source/bouncing_entrances/bounceInUp.css +35 -0
  29. data/app/assets/node_modules/animate.css/source/bouncing_exits/bounceOut.css +21 -0
  30. data/app/assets/node_modules/animate.css/source/bouncing_exits/bounceOutDown.css +20 -0
  31. data/app/assets/node_modules/animate.css/source/bouncing_exits/bounceOutLeft.css +15 -0
  32. data/app/assets/node_modules/animate.css/source/bouncing_exits/bounceOutRight.css +15 -0
  33. data/app/assets/node_modules/animate.css/source/bouncing_exits/bounceOutUp.css +20 -0
  34. data/app/assets/node_modules/animate.css/source/fading_entrances/fadeIn.css +13 -0
  35. data/app/assets/node_modules/animate.css/source/fading_entrances/fadeInDown.css +15 -0
  36. data/app/assets/node_modules/animate.css/source/fading_entrances/fadeInDownBig.css +15 -0
  37. data/app/assets/node_modules/animate.css/source/fading_entrances/fadeInLeft.css +15 -0
  38. data/app/assets/node_modules/animate.css/source/fading_entrances/fadeInLeftBig.css +15 -0
  39. data/app/assets/node_modules/animate.css/source/fading_entrances/fadeInRight.css +15 -0
  40. data/app/assets/node_modules/animate.css/source/fading_entrances/fadeInRightBig.css +15 -0
  41. data/app/assets/node_modules/animate.css/source/fading_entrances/fadeInUp.css +15 -0
  42. data/app/assets/node_modules/animate.css/source/fading_entrances/fadeInUpBig.css +15 -0
  43. data/app/assets/node_modules/animate.css/source/fading_exits/fadeOut.css +13 -0
  44. data/app/assets/node_modules/animate.css/source/fading_exits/fadeOutDown.css +14 -0
  45. data/app/assets/node_modules/animate.css/source/fading_exits/fadeOutDownBig.css +14 -0
  46. data/app/assets/node_modules/animate.css/source/fading_exits/fadeOutLeft.css +14 -0
  47. data/app/assets/node_modules/animate.css/source/fading_exits/fadeOutLeftBig.css +14 -0
  48. data/app/assets/node_modules/animate.css/source/fading_exits/fadeOutRight.css +14 -0
  49. data/app/assets/node_modules/animate.css/source/fading_exits/fadeOutRightBig.css +14 -0
  50. data/app/assets/node_modules/animate.css/source/fading_exits/fadeOutUp.css +14 -0
  51. data/app/assets/node_modules/animate.css/source/fading_exits/fadeOutUpBig.css +14 -0
  52. data/app/assets/node_modules/animate.css/source/flippers/flip.css +31 -0
  53. data/app/assets/node_modules/animate.css/source/flippers/flipInX.css +30 -0
  54. data/app/assets/node_modules/animate.css/source/flippers/flipInY.css +30 -0
  55. data/app/assets/node_modules/animate.css/source/flippers/flipOutX.css +21 -0
  56. data/app/assets/node_modules/animate.css/source/flippers/flipOutY.css +21 -0
  57. data/app/assets/node_modules/animate.css/source/lightspeed/lightSpeedIn.css +26 -0
  58. data/app/assets/node_modules/animate.css/source/lightspeed/lightSpeedOut.css +15 -0
  59. data/app/assets/node_modules/animate.css/source/rotating_entrances/rotateIn.css +17 -0
  60. data/app/assets/node_modules/animate.css/source/rotating_entrances/rotateInDownLeft.css +17 -0
  61. data/app/assets/node_modules/animate.css/source/rotating_entrances/rotateInDownRight.css +17 -0
  62. data/app/assets/node_modules/animate.css/source/rotating_entrances/rotateInUpLeft.css +17 -0
  63. data/app/assets/node_modules/animate.css/source/rotating_entrances/rotateInUpRight.css +17 -0
  64. data/app/assets/node_modules/animate.css/source/rotating_exits/rotateOut.css +16 -0
  65. data/app/assets/node_modules/animate.css/source/rotating_exits/rotateOutDownLeft.css +16 -0
  66. data/app/assets/node_modules/animate.css/source/rotating_exits/rotateOutDownRight.css +16 -0
  67. data/app/assets/node_modules/animate.css/source/rotating_exits/rotateOutUpLeft.css +16 -0
  68. data/app/assets/node_modules/animate.css/source/rotating_exits/rotateOutUpRight.css +16 -0
  69. data/app/assets/node_modules/animate.css/source/sliding_entrances/slideInDown.css +14 -0
  70. data/app/assets/node_modules/animate.css/source/sliding_entrances/slideInLeft.css +14 -0
  71. data/app/assets/node_modules/animate.css/source/sliding_entrances/slideInRight.css +14 -0
  72. data/app/assets/node_modules/animate.css/source/sliding_entrances/slideInUp.css +14 -0
  73. data/app/assets/node_modules/animate.css/source/sliding_exits/slideOutDown.css +14 -0
  74. data/app/assets/node_modules/animate.css/source/sliding_exits/slideOutLeft.css +14 -0
  75. data/app/assets/node_modules/animate.css/source/sliding_exits/slideOutRight.css +14 -0
  76. data/app/assets/node_modules/animate.css/source/sliding_exits/slideOutUp.css +14 -0
  77. data/app/assets/node_modules/animate.css/source/specials/hinge.css +31 -0
  78. data/app/assets/node_modules/animate.css/source/specials/jackInTheBox.css +24 -0
  79. data/app/assets/node_modules/animate.css/source/specials/rollIn.css +17 -0
  80. data/app/assets/node_modules/animate.css/source/specials/rollOut.css +16 -0
  81. data/app/assets/node_modules/animate.css/source/zooming_entrances/zoomIn.css +14 -0
  82. data/app/assets/node_modules/animate.css/source/zooming_entrances/zoomInDown.css +17 -0
  83. data/app/assets/node_modules/animate.css/source/zooming_entrances/zoomInLeft.css +17 -0
  84. data/app/assets/node_modules/animate.css/source/zooming_entrances/zoomInRight.css +17 -0
  85. data/app/assets/node_modules/animate.css/source/zooming_entrances/zoomInUp.css +17 -0
  86. data/app/assets/node_modules/animate.css/source/zooming_exits/zoomOut.css +18 -0
  87. data/app/assets/node_modules/animate.css/source/zooming_exits/zoomOutDown.css +18 -0
  88. data/app/assets/node_modules/animate.css/source/zooming_exits/zoomOutLeft.css +16 -0
  89. data/app/assets/node_modules/animate.css/source/zooming_exits/zoomOutRight.css +16 -0
  90. data/app/assets/node_modules/animate.css/source/zooming_exits/zoomOutUp.css +18 -0
  91. data/app/assets/node_modules/bootstrap/LICENSE +22 -0
  92. data/app/assets/node_modules/bootstrap/README.md +171 -0
  93. data/app/assets/node_modules/bootstrap/dist/css/bootstrap-grid.css +1912 -0
  94. data/app/assets/node_modules/bootstrap/dist/css/bootstrap-grid.css.map +1 -0
  95. data/app/assets/node_modules/bootstrap/dist/css/bootstrap-grid.min.css +7 -0
  96. data/app/assets/node_modules/bootstrap/dist/css/bootstrap-grid.min.css.map +1 -0
  97. data/app/assets/node_modules/bootstrap/dist/css/bootstrap-reboot.css +330 -0
  98. data/app/assets/node_modules/bootstrap/dist/css/bootstrap-reboot.css.map +1 -0
  99. data/app/assets/node_modules/bootstrap/dist/css/bootstrap-reboot.min.css +8 -0
  100. data/app/assets/node_modules/bootstrap/dist/css/bootstrap-reboot.min.css.map +1 -0
  101. data/app/assets/node_modules/bootstrap/dist/css/bootstrap.css +8981 -0
  102. data/app/assets/node_modules/bootstrap/dist/css/bootstrap.css.map +1 -0
  103. data/app/assets/node_modules/bootstrap/dist/css/bootstrap.min.css +7 -0
  104. data/app/assets/node_modules/bootstrap/dist/css/bootstrap.min.css.map +1 -0
  105. data/app/assets/node_modules/bootstrap/dist/js/bootstrap.bundle.js +6444 -0
  106. data/app/assets/node_modules/bootstrap/dist/js/bootstrap.bundle.js.map +1 -0
  107. data/app/assets/node_modules/bootstrap/dist/js/bootstrap.bundle.min.js +7 -0
  108. data/app/assets/node_modules/bootstrap/dist/js/bootstrap.bundle.min.js.map +1 -0
  109. data/app/assets/node_modules/bootstrap/dist/js/bootstrap.js +3927 -0
  110. data/app/assets/node_modules/bootstrap/dist/js/bootstrap.js.map +1 -0
  111. data/app/assets/node_modules/bootstrap/dist/js/bootstrap.min.js +7 -0
  112. data/app/assets/node_modules/bootstrap/dist/js/bootstrap.min.js.map +1 -0
  113. data/app/assets/node_modules/bootstrap/js/dist/alert.js +178 -0
  114. data/app/assets/node_modules/bootstrap/js/dist/alert.js.map +1 -0
  115. data/app/assets/node_modules/bootstrap/js/dist/button.js +167 -0
  116. data/app/assets/node_modules/bootstrap/js/dist/button.js.map +1 -0
  117. data/app/assets/node_modules/bootstrap/js/dist/carousel.js +508 -0
  118. data/app/assets/node_modules/bootstrap/js/dist/carousel.js.map +1 -0
  119. data/app/assets/node_modules/bootstrap/js/dist/collapse.js +367 -0
  120. data/app/assets/node_modules/bootstrap/js/dist/collapse.js.map +1 -0
  121. data/app/assets/node_modules/bootstrap/js/dist/dropdown.js +489 -0
  122. data/app/assets/node_modules/bootstrap/js/dist/dropdown.js.map +1 -0
  123. data/app/assets/node_modules/bootstrap/js/dist/index.js +23 -0
  124. data/app/assets/node_modules/bootstrap/js/dist/index.js.map +1 -0
  125. data/app/assets/node_modules/bootstrap/js/dist/modal.js +585 -0
  126. data/app/assets/node_modules/bootstrap/js/dist/modal.js.map +1 -0
  127. data/app/assets/node_modules/bootstrap/js/dist/popover.js +206 -0
  128. data/app/assets/node_modules/bootstrap/js/dist/popover.js.map +1 -0
  129. data/app/assets/node_modules/bootstrap/js/dist/scrollspy.js +319 -0
  130. data/app/assets/node_modules/bootstrap/js/dist/scrollspy.js.map +1 -0
  131. data/app/assets/node_modules/bootstrap/js/dist/tab.js +251 -0
  132. data/app/assets/node_modules/bootstrap/js/dist/tab.js.map +1 -0
  133. data/app/assets/node_modules/bootstrap/js/dist/tooltip.js +674 -0
  134. data/app/assets/node_modules/bootstrap/js/dist/tooltip.js.map +1 -0
  135. data/app/assets/node_modules/bootstrap/js/dist/util.js +132 -0
  136. data/app/assets/node_modules/bootstrap/js/dist/util.js.map +1 -0
  137. data/app/assets/node_modules/bootstrap/js/src/alert.js +183 -0
  138. data/app/assets/node_modules/bootstrap/js/src/button.js +175 -0
  139. data/app/assets/node_modules/bootstrap/js/src/carousel.js +517 -0
  140. data/app/assets/node_modules/bootstrap/js/src/collapse.js +394 -0
  141. data/app/assets/node_modules/bootstrap/js/src/dropdown.js +487 -0
  142. data/app/assets/node_modules/bootstrap/js/src/index.js +50 -0
  143. data/app/assets/node_modules/bootstrap/js/src/modal.js +579 -0
  144. data/app/assets/node_modules/bootstrap/js/src/popover.js +188 -0
  145. data/app/assets/node_modules/bootstrap/js/src/scrollspy.js +329 -0
  146. data/app/assets/node_modules/bootstrap/js/src/tab.js +263 -0
  147. data/app/assets/node_modules/bootstrap/js/src/tooltip.js +723 -0
  148. data/app/assets/node_modules/bootstrap/js/src/util.js +153 -0
  149. data/app/assets/node_modules/bootstrap/package.json +218 -0
  150. data/app/assets/node_modules/bootstrap/scss/_alert.scss +51 -0
  151. data/app/assets/node_modules/bootstrap/scss/_badge.scss +47 -0
  152. data/app/assets/node_modules/bootstrap/scss/_breadcrumb.scss +41 -0
  153. data/app/assets/node_modules/bootstrap/scss/_button-group.scss +172 -0
  154. data/app/assets/node_modules/bootstrap/scss/_buttons.scss +144 -0
  155. data/app/assets/node_modules/bootstrap/scss/_card.scss +301 -0
  156. data/app/assets/node_modules/bootstrap/scss/_carousel.scss +236 -0
  157. data/app/assets/node_modules/bootstrap/scss/_close.scss +34 -0
  158. data/app/assets/node_modules/bootstrap/scss/_code.scss +48 -0
  159. data/app/assets/node_modules/bootstrap/scss/_custom-forms.scss +421 -0
  160. data/app/assets/node_modules/bootstrap/scss/_dropdown.scss +166 -0
  161. data/app/assets/node_modules/bootstrap/scss/_forms.scss +335 -0
  162. data/app/assets/node_modules/bootstrap/scss/_functions.scss +86 -0
  163. data/app/assets/node_modules/bootstrap/scss/_grid.scss +52 -0
  164. data/app/assets/node_modules/bootstrap/scss/_images.scss +42 -0
  165. data/app/assets/node_modules/bootstrap/scss/_input-group.scss +158 -0
  166. data/app/assets/node_modules/bootstrap/scss/_jumbotron.scss +16 -0
  167. data/app/assets/node_modules/bootstrap/scss/_list-group.scss +115 -0
  168. data/app/assets/node_modules/bootstrap/scss/_media.scss +8 -0
  169. data/app/assets/node_modules/bootstrap/scss/_mixins.scss +41 -0
  170. data/app/assets/node_modules/bootstrap/scss/_modal.scss +168 -0
  171. data/app/assets/node_modules/bootstrap/scss/_nav.scss +118 -0
  172. data/app/assets/node_modules/bootstrap/scss/_navbar.scss +299 -0
  173. data/app/assets/node_modules/bootstrap/scss/_pagination.scss +78 -0
  174. data/app/assets/node_modules/bootstrap/scss/_popover.scss +183 -0
  175. data/app/assets/node_modules/bootstrap/scss/_print.scss +141 -0
  176. data/app/assets/node_modules/bootstrap/scss/_progress.scss +34 -0
  177. data/app/assets/node_modules/bootstrap/scss/_reboot.scss +480 -0
  178. data/app/assets/node_modules/bootstrap/scss/_root.scss +19 -0
  179. data/app/assets/node_modules/bootstrap/scss/_tables.scss +188 -0
  180. data/app/assets/node_modules/bootstrap/scss/_tooltip.scss +115 -0
  181. data/app/assets/node_modules/bootstrap/scss/_transitions.scss +22 -0
  182. data/app/assets/node_modules/bootstrap/scss/_type.scss +125 -0
  183. data/app/assets/node_modules/bootstrap/scss/_utilities.scss +15 -0
  184. data/app/assets/node_modules/bootstrap/scss/_variables.scss +929 -0
  185. data/app/assets/node_modules/bootstrap/scss/bootstrap-grid.scss +32 -0
  186. data/app/assets/node_modules/bootstrap/scss/bootstrap-reboot.scss +12 -0
  187. data/app/assets/node_modules/bootstrap/scss/bootstrap.scss +42 -0
  188. data/app/assets/node_modules/bootstrap/scss/mixins/_alert.scss +13 -0
  189. data/app/assets/node_modules/bootstrap/scss/mixins/_background-variant.scss +21 -0
  190. data/app/assets/node_modules/bootstrap/scss/mixins/_badge.scss +12 -0
  191. data/app/assets/node_modules/bootstrap/scss/mixins/_border-radius.scss +35 -0
  192. data/app/assets/node_modules/bootstrap/scss/mixins/_box-shadow.scss +5 -0
  193. data/app/assets/node_modules/bootstrap/scss/mixins/_breakpoints.scss +123 -0
  194. data/app/assets/node_modules/bootstrap/scss/mixins/_buttons.scss +109 -0
  195. data/app/assets/node_modules/bootstrap/scss/mixins/_caret.scss +66 -0
  196. data/app/assets/node_modules/bootstrap/scss/mixins/_clearfix.scss +7 -0
  197. data/app/assets/node_modules/bootstrap/scss/mixins/_float.scss +11 -0
  198. data/app/assets/node_modules/bootstrap/scss/mixins/_forms.scss +147 -0
  199. data/app/assets/node_modules/bootstrap/scss/mixins/_gradients.scss +45 -0
  200. data/app/assets/node_modules/bootstrap/scss/mixins/_grid-framework.scss +67 -0
  201. data/app/assets/node_modules/bootstrap/scss/mixins/_grid.scss +52 -0
  202. data/app/assets/node_modules/bootstrap/scss/mixins/_hover.scss +37 -0
  203. data/app/assets/node_modules/bootstrap/scss/mixins/_image.scss +36 -0
  204. data/app/assets/node_modules/bootstrap/scss/mixins/_list-group.scss +21 -0
  205. data/app/assets/node_modules/bootstrap/scss/mixins/_lists.scss +7 -0
  206. data/app/assets/node_modules/bootstrap/scss/mixins/_nav-divider.scss +10 -0
  207. data/app/assets/node_modules/bootstrap/scss/mixins/_pagination.scss +22 -0
  208. data/app/assets/node_modules/bootstrap/scss/mixins/_reset-text.scss +17 -0
  209. data/app/assets/node_modules/bootstrap/scss/mixins/_resize.scss +6 -0
  210. data/app/assets/node_modules/bootstrap/scss/mixins/_screen-reader.scss +33 -0
  211. data/app/assets/node_modules/bootstrap/scss/mixins/_size.scss +6 -0
  212. data/app/assets/node_modules/bootstrap/scss/mixins/_table-row.scss +30 -0
  213. data/app/assets/node_modules/bootstrap/scss/mixins/_text-emphasis.scss +14 -0
  214. data/app/assets/node_modules/bootstrap/scss/mixins/_text-hide.scss +13 -0
  215. data/app/assets/node_modules/bootstrap/scss/mixins/_text-truncate.scss +8 -0
  216. data/app/assets/node_modules/bootstrap/scss/mixins/_transition.scss +13 -0
  217. data/app/assets/node_modules/bootstrap/scss/mixins/_visibility.scss +7 -0
  218. data/app/assets/node_modules/bootstrap/scss/utilities/_align.scss +8 -0
  219. data/app/assets/node_modules/bootstrap/scss/utilities/_background.scss +19 -0
  220. data/app/assets/node_modules/bootstrap/scss/utilities/_borders.scss +59 -0
  221. data/app/assets/node_modules/bootstrap/scss/utilities/_clearfix.scss +3 -0
  222. data/app/assets/node_modules/bootstrap/scss/utilities/_display.scss +38 -0
  223. data/app/assets/node_modules/bootstrap/scss/utilities/_embed.scss +52 -0
  224. data/app/assets/node_modules/bootstrap/scss/utilities/_flex.scss +51 -0
  225. data/app/assets/node_modules/bootstrap/scss/utilities/_float.scss +9 -0
  226. data/app/assets/node_modules/bootstrap/scss/utilities/_position.scss +37 -0
  227. data/app/assets/node_modules/bootstrap/scss/utilities/_screenreaders.scss +11 -0
  228. data/app/assets/node_modules/bootstrap/scss/utilities/_shadows.scss +6 -0
  229. data/app/assets/node_modules/bootstrap/scss/utilities/_sizing.scss +12 -0
  230. data/app/assets/node_modules/bootstrap/scss/utilities/_spacing.scss +51 -0
  231. data/app/assets/node_modules/bootstrap/scss/utilities/_text.scss +58 -0
  232. data/app/assets/node_modules/bootstrap/scss/utilities/_visibility.scss +11 -0
  233. data/app/assets/node_modules/clone/LICENSE +18 -0
  234. data/app/assets/node_modules/clone/README.md +178 -0
  235. data/app/assets/node_modules/clone/clone.iml +10 -0
  236. data/app/assets/node_modules/clone/clone.js +251 -0
  237. data/app/assets/node_modules/clone/package.json +56 -0
  238. data/app/assets/node_modules/deep-equal/LICENSE +18 -0
  239. data/app/assets/node_modules/deep-equal/example/cmp.js +11 -0
  240. data/app/assets/node_modules/deep-equal/index.js +94 -0
  241. data/app/assets/node_modules/deep-equal/lib/is_arguments.js +20 -0
  242. data/app/assets/node_modules/deep-equal/lib/keys.js +9 -0
  243. data/app/assets/node_modules/deep-equal/package.json +58 -0
  244. data/app/assets/node_modules/deep-equal/readme.markdown +61 -0
  245. data/app/assets/node_modules/deep-equal/test/cmp.js +95 -0
  246. data/app/assets/node_modules/dropzone/CONTRIBUTING.md +6 -0
  247. data/app/assets/node_modules/dropzone/LICENSE +12 -0
  248. data/app/assets/node_modules/dropzone/README.md +36 -0
  249. data/app/assets/node_modules/dropzone/bower.json +16 -0
  250. data/app/assets/node_modules/dropzone/component.json +10 -0
  251. data/app/assets/node_modules/dropzone/composer.json +18 -0
  252. data/app/assets/node_modules/dropzone/dist/basic.css +39 -0
  253. data/app/assets/node_modules/dropzone/dist/dropzone-amd-module.js +3541 -0
  254. data/app/assets/node_modules/dropzone/dist/dropzone.css +388 -0
  255. data/app/assets/node_modules/dropzone/dist/dropzone.js +3526 -0
  256. data/app/assets/node_modules/dropzone/dist/min/basic.min.css +1 -0
  257. data/app/assets/node_modules/dropzone/dist/min/dropzone-amd-module.min.js +2 -0
  258. data/app/assets/node_modules/dropzone/dist/min/dropzone.min.css +1 -0
  259. data/app/assets/node_modules/dropzone/dist/min/dropzone.min.js +2 -0
  260. data/app/assets/node_modules/dropzone/dist/readme.md +10 -0
  261. data/app/assets/node_modules/dropzone/index.js +1 -0
  262. data/app/assets/node_modules/dropzone/package.json +40 -0
  263. data/app/assets/node_modules/eve-raphael/LICENSE +202 -0
  264. data/app/assets/node_modules/eve-raphael/README.md +5 -0
  265. data/app/assets/node_modules/eve-raphael/bower.json +17 -0
  266. data/app/assets/node_modules/eve-raphael/component.json +13 -0
  267. data/app/assets/node_modules/eve-raphael/e.html +66 -0
  268. data/app/assets/node_modules/eve-raphael/eve.js +426 -0
  269. data/app/assets/node_modules/eve-raphael/package.json +15 -0
  270. data/app/assets/node_modules/eventemitter3/LICENSE +21 -0
  271. data/app/assets/node_modules/eventemitter3/README.md +105 -0
  272. data/app/assets/node_modules/eventemitter3/index.d.ts +50 -0
  273. data/app/assets/node_modules/eventemitter3/index.js +311 -0
  274. data/app/assets/node_modules/eventemitter3/package.json +51 -0
  275. data/app/assets/node_modules/eventemitter3/umd/eventemitter3.min.js +1 -0
  276. data/app/assets/node_modules/extend/CHANGELOG.md +77 -0
  277. data/app/assets/node_modules/extend/LICENSE +23 -0
  278. data/app/assets/node_modules/extend/README.md +81 -0
  279. data/app/assets/node_modules/extend/component.json +32 -0
  280. data/app/assets/node_modules/extend/index.js +86 -0
  281. data/app/assets/node_modules/extend/package.json +43 -0
  282. data/app/assets/node_modules/fast-diff/README.md +24 -0
  283. data/app/assets/node_modules/fast-diff/diff.js +738 -0
  284. data/app/assets/node_modules/fast-diff/package.json +24 -0
  285. data/app/assets/node_modules/fast-diff/test.js +91 -0
  286. data/app/assets/node_modules/jquery/AUTHORS.txt +313 -0
  287. data/app/assets/node_modules/jquery/LICENSE.txt +36 -0
  288. data/app/assets/node_modules/jquery/README.md +67 -0
  289. data/app/assets/node_modules/jquery/bower.json +14 -0
  290. data/app/assets/node_modules/jquery/dist/core.js +399 -0
  291. data/app/assets/node_modules/jquery/dist/jquery.js +10364 -0
  292. data/app/assets/node_modules/jquery/dist/jquery.min.js +2 -0
  293. data/app/assets/node_modules/jquery/dist/jquery.min.map +1 -0
  294. data/app/assets/node_modules/jquery/dist/jquery.slim.js +8269 -0
  295. data/app/assets/node_modules/jquery/dist/jquery.slim.min.js +2 -0
  296. data/app/assets/node_modules/jquery/dist/jquery.slim.min.map +1 -0
  297. data/app/assets/node_modules/jquery/external/sizzle/LICENSE.txt +36 -0
  298. data/app/assets/node_modules/jquery/external/sizzle/dist/sizzle.js +2272 -0
  299. data/app/assets/node_modules/jquery/external/sizzle/dist/sizzle.min.js +3 -0
  300. data/app/assets/node_modules/jquery/external/sizzle/dist/sizzle.min.map +1 -0
  301. data/app/assets/node_modules/jquery/package.json +108 -0
  302. data/app/assets/node_modules/jquery/src/ajax/jsonp.js +103 -0
  303. data/app/assets/node_modules/jquery/src/ajax/load.js +77 -0
  304. data/app/assets/node_modules/jquery/src/ajax/parseXML.js +30 -0
  305. data/app/assets/node_modules/jquery/src/ajax/script.js +77 -0
  306. data/app/assets/node_modules/jquery/src/ajax/var/location.js +5 -0
  307. data/app/assets/node_modules/jquery/src/ajax/var/nonce.js +5 -0
  308. data/app/assets/node_modules/jquery/src/ajax/var/rquery.js +5 -0
  309. data/app/assets/node_modules/jquery/src/ajax/xhr.js +170 -0
  310. data/app/assets/node_modules/jquery/src/ajax.js +856 -0
  311. data/app/assets/node_modules/jquery/src/attributes/attr.js +141 -0
  312. data/app/assets/node_modules/jquery/src/attributes/classes.js +186 -0
  313. data/app/assets/node_modules/jquery/src/attributes/prop.js +143 -0
  314. data/app/assets/node_modules/jquery/src/attributes/support.js +33 -0
  315. data/app/assets/node_modules/jquery/src/attributes/val.js +191 -0
  316. data/app/assets/node_modules/jquery/src/attributes.js +13 -0
  317. data/app/assets/node_modules/jquery/src/callbacks.js +236 -0
  318. data/app/assets/node_modules/jquery/src/core/DOMEval.js +30 -0
  319. data/app/assets/node_modules/jquery/src/core/access.js +72 -0
  320. data/app/assets/node_modules/jquery/src/core/camelCase.js +23 -0
  321. data/app/assets/node_modules/jquery/src/core/init.js +129 -0
  322. data/app/assets/node_modules/jquery/src/core/nodeName.js +13 -0
  323. data/app/assets/node_modules/jquery/src/core/parseHTML.js +65 -0
  324. data/app/assets/node_modules/jquery/src/core/ready-no-deferred.js +97 -0
  325. data/app/assets/node_modules/jquery/src/core/ready.js +86 -0
  326. data/app/assets/node_modules/jquery/src/core/readyException.js +13 -0
  327. data/app/assets/node_modules/jquery/src/core/stripAndCollapse.js +14 -0
  328. data/app/assets/node_modules/jquery/src/core/support.js +20 -0
  329. data/app/assets/node_modules/jquery/src/core/toType.js +20 -0
  330. data/app/assets/node_modules/jquery/src/core/var/rsingleTag.js +6 -0
  331. data/app/assets/node_modules/jquery/src/core.js +399 -0
  332. data/app/assets/node_modules/jquery/src/css/addGetHookIf.js +26 -0
  333. data/app/assets/node_modules/jquery/src/css/adjustCSS.js +73 -0
  334. data/app/assets/node_modules/jquery/src/css/curCSS.js +65 -0
  335. data/app/assets/node_modules/jquery/src/css/hiddenVisibleSelectors.js +15 -0
  336. data/app/assets/node_modules/jquery/src/css/showHide.js +105 -0
  337. data/app/assets/node_modules/jquery/src/css/support.js +102 -0
  338. data/app/assets/node_modules/jquery/src/css/var/cssExpand.js +5 -0
  339. data/app/assets/node_modules/jquery/src/css/var/getStyles.js +17 -0
  340. data/app/assets/node_modules/jquery/src/css/var/isHiddenWithinTree.js +34 -0
  341. data/app/assets/node_modules/jquery/src/css/var/rboxStyle.js +7 -0
  342. data/app/assets/node_modules/jquery/src/css/var/rnumnonpx.js +7 -0
  343. data/app/assets/node_modules/jquery/src/css/var/swap.js +26 -0
  344. data/app/assets/node_modules/jquery/src/css.js +481 -0
  345. data/app/assets/node_modules/jquery/src/data/Data.js +162 -0
  346. data/app/assets/node_modules/jquery/src/data/var/acceptData.js +19 -0
  347. data/app/assets/node_modules/jquery/src/data/var/dataPriv.js +7 -0
  348. data/app/assets/node_modules/jquery/src/data/var/dataUser.js +7 -0
  349. data/app/assets/node_modules/jquery/src/data.js +180 -0
  350. data/app/assets/node_modules/jquery/src/deferred/exceptionHook.js +21 -0
  351. data/app/assets/node_modules/jquery/src/deferred.js +399 -0
  352. data/app/assets/node_modules/jquery/src/deprecated.js +98 -0
  353. data/app/assets/node_modules/jquery/src/dimensions.js +57 -0
  354. data/app/assets/node_modules/jquery/src/effects/Tween.js +123 -0
  355. data/app/assets/node_modules/jquery/src/effects/animatedSelector.js +15 -0
  356. data/app/assets/node_modules/jquery/src/effects.js +702 -0
  357. data/app/assets/node_modules/jquery/src/event/ajax.js +22 -0
  358. data/app/assets/node_modules/jquery/src/event/alias.js +29 -0
  359. data/app/assets/node_modules/jquery/src/event/focusin.js +55 -0
  360. data/app/assets/node_modules/jquery/src/event/support.js +11 -0
  361. data/app/assets/node_modules/jquery/src/event/trigger.js +199 -0
  362. data/app/assets/node_modules/jquery/src/event.js +748 -0
  363. data/app/assets/node_modules/jquery/src/exports/amd.js +26 -0
  364. data/app/assets/node_modules/jquery/src/exports/global.js +34 -0
  365. data/app/assets/node_modules/jquery/src/jquery.js +40 -0
  366. data/app/assets/node_modules/jquery/src/manipulation/_evalUrl.js +23 -0
  367. data/app/assets/node_modules/jquery/src/manipulation/buildFragment.js +105 -0
  368. data/app/assets/node_modules/jquery/src/manipulation/getAll.js +32 -0
  369. data/app/assets/node_modules/jquery/src/manipulation/setGlobalEval.js +22 -0
  370. data/app/assets/node_modules/jquery/src/manipulation/support.js +35 -0
  371. data/app/assets/node_modules/jquery/src/manipulation/var/rcheckableType.js +5 -0
  372. data/app/assets/node_modules/jquery/src/manipulation/var/rscriptType.js +5 -0
  373. data/app/assets/node_modules/jquery/src/manipulation/var/rtagName.js +5 -0
  374. data/app/assets/node_modules/jquery/src/manipulation/wrapMap.js +29 -0
  375. data/app/assets/node_modules/jquery/src/manipulation.js +486 -0
  376. data/app/assets/node_modules/jquery/src/offset.js +233 -0
  377. data/app/assets/node_modules/jquery/src/queue/delay.js +24 -0
  378. data/app/assets/node_modules/jquery/src/queue.js +145 -0
  379. data/app/assets/node_modules/jquery/src/selector-native.js +237 -0
  380. data/app/assets/node_modules/jquery/src/selector-sizzle.js +19 -0
  381. data/app/assets/node_modules/jquery/src/selector.js +3 -0
  382. data/app/assets/node_modules/jquery/src/serialize.js +132 -0
  383. data/app/assets/node_modules/jquery/src/traversing/findFilter.js +97 -0
  384. data/app/assets/node_modules/jquery/src/traversing/var/dir.js +22 -0
  385. data/app/assets/node_modules/jquery/src/traversing/var/rneedsContext.js +8 -0
  386. data/app/assets/node_modules/jquery/src/traversing/var/siblings.js +17 -0
  387. data/app/assets/node_modules/jquery/src/traversing.js +191 -0
  388. data/app/assets/node_modules/jquery/src/var/ObjectFunctionString.js +7 -0
  389. data/app/assets/node_modules/jquery/src/var/arr.js +5 -0
  390. data/app/assets/node_modules/jquery/src/var/class2type.js +6 -0
  391. data/app/assets/node_modules/jquery/src/var/concat.js +7 -0
  392. data/app/assets/node_modules/jquery/src/var/document.js +5 -0
  393. data/app/assets/node_modules/jquery/src/var/documentElement.js +7 -0
  394. data/app/assets/node_modules/jquery/src/var/fnToString.js +7 -0
  395. data/app/assets/node_modules/jquery/src/var/getProto.js +5 -0
  396. data/app/assets/node_modules/jquery/src/var/hasOwn.js +7 -0
  397. data/app/assets/node_modules/jquery/src/var/indexOf.js +7 -0
  398. data/app/assets/node_modules/jquery/src/var/isFunction.js +13 -0
  399. data/app/assets/node_modules/jquery/src/var/isWindow.js +8 -0
  400. data/app/assets/node_modules/jquery/src/var/pnum.js +5 -0
  401. data/app/assets/node_modules/jquery/src/var/push.js +7 -0
  402. data/app/assets/node_modules/jquery/src/var/rcssNum.js +9 -0
  403. data/app/assets/node_modules/jquery/src/var/rnothtmlwhite.js +8 -0
  404. data/app/assets/node_modules/jquery/src/var/slice.js +7 -0
  405. data/app/assets/node_modules/jquery/src/var/support.js +6 -0
  406. data/app/assets/node_modules/jquery/src/var/toString.js +7 -0
  407. data/app/assets/node_modules/jquery/src/wrap.js +78 -0
  408. data/app/assets/node_modules/jquery-flot/API.md +1498 -0
  409. data/app/assets/node_modules/jquery-flot/CONTRIBUTING.md +98 -0
  410. data/app/assets/node_modules/jquery-flot/FAQ.md +75 -0
  411. data/app/assets/node_modules/jquery-flot/LICENSE.txt +22 -0
  412. data/app/assets/node_modules/jquery-flot/Makefile +12 -0
  413. data/app/assets/node_modules/jquery-flot/NEWS.md +1026 -0
  414. data/app/assets/node_modules/jquery-flot/PLUGINS.md +143 -0
  415. data/app/assets/node_modules/jquery-flot/README.md +110 -0
  416. data/app/assets/node_modules/jquery-flot/component.json +8 -0
  417. data/app/assets/node_modules/jquery-flot/examples/ajax/data-eu-gdp-growth-1.json +4 -0
  418. data/app/assets/node_modules/jquery-flot/examples/ajax/data-eu-gdp-growth-2.json +4 -0
  419. data/app/assets/node_modules/jquery-flot/examples/ajax/data-eu-gdp-growth-3.json +4 -0
  420. data/app/assets/node_modules/jquery-flot/examples/ajax/data-eu-gdp-growth-4.json +4 -0
  421. data/app/assets/node_modules/jquery-flot/examples/ajax/data-eu-gdp-growth-5.json +4 -0
  422. data/app/assets/node_modules/jquery-flot/examples/ajax/data-eu-gdp-growth.json +4 -0
  423. data/app/assets/node_modules/jquery-flot/examples/ajax/data-japan-gdp-growth.json +4 -0
  424. data/app/assets/node_modules/jquery-flot/examples/ajax/data-usa-gdp-growth.json +4 -0
  425. data/app/assets/node_modules/jquery-flot/examples/ajax/index.html +173 -0
  426. data/app/assets/node_modules/jquery-flot/examples/annotating/index.html +87 -0
  427. data/app/assets/node_modules/jquery-flot/examples/axes-interacting/index.html +97 -0
  428. data/app/assets/node_modules/jquery-flot/examples/axes-multiple/index.html +77 -0
  429. data/app/assets/node_modules/jquery-flot/examples/axes-time/index.html +137 -0
  430. data/app/assets/node_modules/jquery-flot/examples/axes-time-zones/date.js +893 -0
  431. data/app/assets/node_modules/jquery-flot/examples/axes-time-zones/index.html +114 -0
  432. data/app/assets/node_modules/jquery-flot/examples/axes-time-zones/tz/africa +1181 -0
  433. data/app/assets/node_modules/jquery-flot/examples/axes-time-zones/tz/antarctica +413 -0
  434. data/app/assets/node_modules/jquery-flot/examples/axes-time-zones/tz/asia +2717 -0
  435. data/app/assets/node_modules/jquery-flot/examples/axes-time-zones/tz/australasia +1719 -0
  436. data/app/assets/node_modules/jquery-flot/examples/axes-time-zones/tz/backward +117 -0
  437. data/app/assets/node_modules/jquery-flot/examples/axes-time-zones/tz/etcetera +81 -0
  438. data/app/assets/node_modules/jquery-flot/examples/axes-time-zones/tz/europe +2856 -0
  439. data/app/assets/node_modules/jquery-flot/examples/axes-time-zones/tz/factory +10 -0
  440. data/app/assets/node_modules/jquery-flot/examples/axes-time-zones/tz/iso3166.tab +276 -0
  441. data/app/assets/node_modules/jquery-flot/examples/axes-time-zones/tz/leapseconds +100 -0
  442. data/app/assets/node_modules/jquery-flot/examples/axes-time-zones/tz/northamerica +3235 -0
  443. data/app/assets/node_modules/jquery-flot/examples/axes-time-zones/tz/pacificnew +28 -0
  444. data/app/assets/node_modules/jquery-flot/examples/axes-time-zones/tz/solar87 +390 -0
  445. data/app/assets/node_modules/jquery-flot/examples/axes-time-zones/tz/solar88 +390 -0
  446. data/app/assets/node_modules/jquery-flot/examples/axes-time-zones/tz/solar89 +395 -0
  447. data/app/assets/node_modules/jquery-flot/examples/axes-time-zones/tz/southamerica +1711 -0
  448. data/app/assets/node_modules/jquery-flot/examples/axes-time-zones/tz/systemv +38 -0
  449. data/app/assets/node_modules/jquery-flot/examples/axes-time-zones/tz/yearistype.sh +38 -0
  450. data/app/assets/node_modules/jquery-flot/examples/axes-time-zones/tz/zone.tab +441 -0
  451. data/app/assets/node_modules/jquery-flot/examples/background.png +0 -0
  452. data/app/assets/node_modules/jquery-flot/examples/basic-options/index.html +91 -0
  453. data/app/assets/node_modules/jquery-flot/examples/basic-usage/index.html +57 -0
  454. data/app/assets/node_modules/jquery-flot/examples/canvas/index.html +75 -0
  455. data/app/assets/node_modules/jquery-flot/examples/categories/index.html +64 -0
  456. data/app/assets/node_modules/jquery-flot/examples/examples.css +97 -0
  457. data/app/assets/node_modules/jquery-flot/examples/image/hs-2004-27-a-large-web.jpg +0 -0
  458. data/app/assets/node_modules/jquery-flot/examples/image/index.html +69 -0
  459. data/app/assets/node_modules/jquery-flot/examples/index.html +80 -0
  460. data/app/assets/node_modules/jquery-flot/examples/interacting/index.html +118 -0
  461. data/app/assets/node_modules/jquery-flot/examples/navigate/arrow-down.gif +0 -0
  462. data/app/assets/node_modules/jquery-flot/examples/navigate/arrow-left.gif +0 -0
  463. data/app/assets/node_modules/jquery-flot/examples/navigate/arrow-right.gif +0 -0
  464. data/app/assets/node_modules/jquery-flot/examples/navigate/arrow-up.gif +0 -0
  465. data/app/assets/node_modules/jquery-flot/examples/navigate/index.html +153 -0
  466. data/app/assets/node_modules/jquery-flot/examples/percentiles/index.html +79 -0
  467. data/app/assets/node_modules/jquery-flot/examples/realtime/index.html +122 -0
  468. data/app/assets/node_modules/jquery-flot/examples/resize/index.html +76 -0
  469. data/app/assets/node_modules/jquery-flot/examples/selection/index.html +152 -0
  470. data/app/assets/node_modules/jquery-flot/examples/series-errorbars/index.html +150 -0
  471. data/app/assets/node_modules/jquery-flot/examples/series-pie/index.html +818 -0
  472. data/app/assets/node_modules/jquery-flot/examples/series-toggle/index.html +121 -0
  473. data/app/assets/node_modules/jquery-flot/examples/series-types/index.html +90 -0
  474. data/app/assets/node_modules/jquery-flot/examples/shared/jquery-ui/jquery-ui.min.css +6 -0
  475. data/app/assets/node_modules/jquery-flot/examples/stacking/index.html +107 -0
  476. data/app/assets/node_modules/jquery-flot/examples/symbols/index.html +76 -0
  477. data/app/assets/node_modules/jquery-flot/examples/threshold/index.html +76 -0
  478. data/app/assets/node_modules/jquery-flot/examples/tracking/index.html +135 -0
  479. data/app/assets/node_modules/jquery-flot/examples/visitors/index.html +147 -0
  480. data/app/assets/node_modules/jquery-flot/examples/zooming/index.html +144 -0
  481. data/app/assets/node_modules/jquery-flot/excanvas.js +1428 -0
  482. data/app/assets/node_modules/jquery-flot/excanvas.min.js +1 -0
  483. data/app/assets/node_modules/jquery-flot/flot.jquery.json +27 -0
  484. data/app/assets/node_modules/jquery-flot/jquery.colorhelpers.js +180 -0
  485. data/app/assets/node_modules/jquery-flot/jquery.flot.canvas.js +345 -0
  486. data/app/assets/node_modules/jquery-flot/jquery.flot.categories.js +190 -0
  487. data/app/assets/node_modules/jquery-flot/jquery.flot.crosshair.js +176 -0
  488. data/app/assets/node_modules/jquery-flot/jquery.flot.errorbars.js +353 -0
  489. data/app/assets/node_modules/jquery-flot/jquery.flot.fillbetween.js +226 -0
  490. data/app/assets/node_modules/jquery-flot/jquery.flot.image.js +241 -0
  491. data/app/assets/node_modules/jquery-flot/jquery.flot.js +3168 -0
  492. data/app/assets/node_modules/jquery-flot/jquery.flot.navigate.js +346 -0
  493. data/app/assets/node_modules/jquery-flot/jquery.flot.pie.js +820 -0
  494. data/app/assets/node_modules/jquery-flot/jquery.flot.resize.js +59 -0
  495. data/app/assets/node_modules/jquery-flot/jquery.flot.selection.js +360 -0
  496. data/app/assets/node_modules/jquery-flot/jquery.flot.stack.js +188 -0
  497. data/app/assets/node_modules/jquery-flot/jquery.flot.symbol.js +71 -0
  498. data/app/assets/node_modules/jquery-flot/jquery.flot.threshold.js +142 -0
  499. data/app/assets/node_modules/jquery-flot/jquery.flot.time.js +432 -0
  500. data/app/assets/node_modules/jquery-flot/jquery.js +9472 -0
  501. data/app/assets/node_modules/jquery-flot/package.json +11 -0
  502. data/app/assets/node_modules/jquery-sparkline/Changelog.txt +324 -0
  503. data/app/assets/node_modules/jquery-sparkline/README.md +19 -0
  504. data/app/assets/node_modules/jquery-sparkline/build.js +13 -0
  505. data/app/assets/node_modules/jquery-sparkline/jquery.sparkline.js +3068 -0
  506. data/app/assets/node_modules/jquery-sparkline/jquery.sparkline.min.js +2 -0
  507. data/app/assets/node_modules/jquery-sparkline/package.json +32 -0
  508. data/app/assets/node_modules/jquery-sparkline/src/base.js +415 -0
  509. data/app/assets/node_modules/jquery-sparkline/src/chart-bar.js +256 -0
  510. data/app/assets/node_modules/jquery-sparkline/src/chart-box.js +186 -0
  511. data/app/assets/node_modules/jquery-sparkline/src/chart-bullet.js +131 -0
  512. data/app/assets/node_modules/jquery-sparkline/src/chart-discrete.js +66 -0
  513. data/app/assets/node_modules/jquery-sparkline/src/chart-line.js +350 -0
  514. data/app/assets/node_modules/jquery-sparkline/src/chart-pie.js +117 -0
  515. data/app/assets/node_modules/jquery-sparkline/src/chart-tristate.js +98 -0
  516. data/app/assets/node_modules/jquery-sparkline/src/defaults.js +156 -0
  517. data/app/assets/node_modules/jquery-sparkline/src/footer.js +1 -0
  518. data/app/assets/node_modules/jquery-sparkline/src/header.js +222 -0
  519. data/app/assets/node_modules/jquery-sparkline/src/interact.js +247 -0
  520. data/app/assets/node_modules/jquery-sparkline/src/rangemap.js +39 -0
  521. data/app/assets/node_modules/jquery-sparkline/src/simpledraw.js +55 -0
  522. data/app/assets/node_modules/jquery-sparkline/src/utils.js +224 -0
  523. data/app/assets/node_modules/jquery-sparkline/src/vcanvas-base.js +147 -0
  524. data/app/assets/node_modules/jquery-sparkline/src/vcanvas-canvas.js +193 -0
  525. data/app/assets/node_modules/jquery-sparkline/src/vcanvas-vml.js +165 -0
  526. data/app/assets/node_modules/jquery-touchswipe/LICENSE +24 -0
  527. data/app/assets/node_modules/jquery-touchswipe/README.md +81 -0
  528. data/app/assets/node_modules/jquery-touchswipe/bower.json +8 -0
  529. data/app/assets/node_modules/jquery-touchswipe/demos/Any_finger_swipe.html +49 -0
  530. data/app/assets/node_modules/jquery-touchswipe/demos/Basic_swipe.html +48 -0
  531. data/app/assets/node_modules/jquery-touchswipe/demos/Enable_and_destroy.html +95 -0
  532. data/app/assets/node_modules/jquery-touchswipe/demos/Excluded_children.html +82 -0
  533. data/app/assets/node_modules/jquery-touchswipe/demos/Finger_swipe.html +61 -0
  534. data/app/assets/node_modules/jquery-touchswipe/demos/Handlers_and_events.html +128 -0
  535. data/app/assets/node_modules/jquery-touchswipe/demos/Hold.html +61 -0
  536. data/app/assets/node_modules/jquery-touchswipe/demos/Image_gallery_example.html +148 -0
  537. data/app/assets/node_modules/jquery-touchswipe/demos/Options.html +90 -0
  538. data/app/assets/node_modules/jquery-touchswipe/demos/Page_scrolling.html +109 -0
  539. data/app/assets/node_modules/jquery-touchswipe/demos/Page_zoom.html +50 -0
  540. data/app/assets/node_modules/jquery-touchswipe/demos/Pinch.html +57 -0
  541. data/app/assets/node_modules/jquery-touchswipe/demos/Pinch_and_Swipe.html +81 -0
  542. data/app/assets/node_modules/jquery-touchswipe/demos/Pinch_status.html +51 -0
  543. data/app/assets/node_modules/jquery-touchswipe/demos/Single_swipe.html +51 -0
  544. data/app/assets/node_modules/jquery-touchswipe/demos/Stop_propegation.html +57 -0
  545. data/app/assets/node_modules/jquery-touchswipe/demos/Swipe_status.html +82 -0
  546. data/app/assets/node_modules/jquery-touchswipe/demos/Tap_vs_swipe.html +114 -0
  547. data/app/assets/node_modules/jquery-touchswipe/demos/Thresholds.html +109 -0
  548. data/app/assets/node_modules/jquery-touchswipe/demos/Trigger_handlers.html +158 -0
  549. data/app/assets/node_modules/jquery-touchswipe/demos/css/main.css +110 -0
  550. data/app/assets/node_modules/jquery-touchswipe/demos/index.html +74 -0
  551. data/app/assets/node_modules/jquery-touchswipe/demos/js/jquery.ui.ipad.js +223 -0
  552. data/app/assets/node_modules/jquery-touchswipe/demos/js/main.js +240 -0
  553. data/app/assets/node_modules/jquery-touchswipe/demos/tutorials.json +22 -0
  554. data/app/assets/node_modules/jquery-touchswipe/docs/$.fn.html +188 -0
  555. data/app/assets/node_modules/jquery-touchswipe/docs/$.fn.swipe.defaults.html +1174 -0
  556. data/app/assets/node_modules/jquery-touchswipe/docs/$.fn.swipe.directions.html +311 -0
  557. data/app/assets/node_modules/jquery-touchswipe/docs/$.fn.swipe.fingers.html +319 -0
  558. data/app/assets/node_modules/jquery-touchswipe/docs/$.fn.swipe.html +4205 -0
  559. data/app/assets/node_modules/jquery-touchswipe/docs/$.fn.swipe.pageScroll.html +272 -0
  560. data/app/assets/node_modules/jquery-touchswipe/docs/$.fn.swipe.phases.html +265 -0
  561. data/app/assets/node_modules/jquery-touchswipe/docs/$.html +186 -0
  562. data/app/assets/node_modules/jquery-touchswipe/docs/css/main.css +110 -0
  563. data/app/assets/node_modules/jquery-touchswipe/docs/index.html +101 -0
  564. data/app/assets/node_modules/jquery-touchswipe/docs/jquery.touchSwipe.js.html +2168 -0
  565. data/app/assets/node_modules/jquery-touchswipe/docs/js/jquery.ui.ipad.js +223 -0
  566. data/app/assets/node_modules/jquery-touchswipe/docs/js/main.js +85 -0
  567. data/app/assets/node_modules/jquery-touchswipe/docs/scripts/linenumber.js +25 -0
  568. data/app/assets/node_modules/jquery-touchswipe/docs/scripts/prettify/Apache-License-2.0.txt +202 -0
  569. data/app/assets/node_modules/jquery-touchswipe/docs/scripts/prettify/lang-css.js +2 -0
  570. data/app/assets/node_modules/jquery-touchswipe/docs/scripts/prettify/prettify.js +28 -0
  571. data/app/assets/node_modules/jquery-touchswipe/docs/styles/jsdoc.css +625 -0
  572. data/app/assets/node_modules/jquery-touchswipe/docs/styles/prettify.css +79 -0
  573. data/app/assets/node_modules/jquery-touchswipe/docs/tutorial-Any_finger_swipe.html +108 -0
  574. data/app/assets/node_modules/jquery-touchswipe/docs/tutorial-Basic_swipe.html +107 -0
  575. data/app/assets/node_modules/jquery-touchswipe/docs/tutorial-Enable_and_destroy.html +154 -0
  576. data/app/assets/node_modules/jquery-touchswipe/docs/tutorial-Excluded_children.html +141 -0
  577. data/app/assets/node_modules/jquery-touchswipe/docs/tutorial-Finger_swipe.html +120 -0
  578. data/app/assets/node_modules/jquery-touchswipe/docs/tutorial-Handlers_and_events.html +187 -0
  579. data/app/assets/node_modules/jquery-touchswipe/docs/tutorial-Hold.html +120 -0
  580. data/app/assets/node_modules/jquery-touchswipe/docs/tutorial-Image_gallery_example.html +207 -0
  581. data/app/assets/node_modules/jquery-touchswipe/docs/tutorial-Options.html +149 -0
  582. data/app/assets/node_modules/jquery-touchswipe/docs/tutorial-Page_scrolling.html +168 -0
  583. data/app/assets/node_modules/jquery-touchswipe/docs/tutorial-Page_zoom.html +109 -0
  584. data/app/assets/node_modules/jquery-touchswipe/docs/tutorial-Pinch.html +116 -0
  585. data/app/assets/node_modules/jquery-touchswipe/docs/tutorial-Pinch_and_Swipe.html +140 -0
  586. data/app/assets/node_modules/jquery-touchswipe/docs/tutorial-Pinch_status.html +110 -0
  587. data/app/assets/node_modules/jquery-touchswipe/docs/tutorial-Single_swipe.html +110 -0
  588. data/app/assets/node_modules/jquery-touchswipe/docs/tutorial-Stop_propegation.html +116 -0
  589. data/app/assets/node_modules/jquery-touchswipe/docs/tutorial-Swipe_status.html +141 -0
  590. data/app/assets/node_modules/jquery-touchswipe/docs/tutorial-Tap_vs_swipe.html +173 -0
  591. data/app/assets/node_modules/jquery-touchswipe/docs/tutorial-Thresholds.html +168 -0
  592. data/app/assets/node_modules/jquery-touchswipe/docs/tutorial-Trigger_handlers.html +217 -0
  593. data/app/assets/node_modules/jquery-touchswipe/docs/tutorial-index_.html +133 -0
  594. data/app/assets/node_modules/jquery-touchswipe/jquery.touchSwipe.js +2109 -0
  595. data/app/assets/node_modules/jquery-touchswipe/jquery.touchSwipe.min.js +14 -0
  596. data/app/assets/node_modules/jquery-touchswipe/package.json +47 -0
  597. data/app/assets/node_modules/jquery-validation/LICENSE.md +22 -0
  598. data/app/assets/node_modules/jquery-validation/README.md +76 -0
  599. data/app/assets/node_modules/jquery-validation/changelog.md +639 -0
  600. data/app/assets/node_modules/jquery-validation/dist/additional-methods.js +1158 -0
  601. data/app/assets/node_modules/jquery-validation/dist/jquery.validate.js +1601 -0
  602. data/app/assets/node_modules/jquery-validation/dist/jquery.validate.min.js +4 -0
  603. data/app/assets/node_modules/jquery-validation/dist/localization/messages_ar.js +35 -0
  604. data/app/assets/node_modules/jquery-validation/dist/localization/messages_az.js +35 -0
  605. data/app/assets/node_modules/jquery-validation/dist/localization/messages_bg.js +35 -0
  606. data/app/assets/node_modules/jquery-validation/dist/localization/messages_bn_BD.js +35 -0
  607. data/app/assets/node_modules/jquery-validation/dist/localization/messages_ca.js +35 -0
  608. data/app/assets/node_modules/jquery-validation/dist/localization/messages_cs.js +35 -0
  609. data/app/assets/node_modules/jquery-validation/dist/localization/messages_da.js +32 -0
  610. data/app/assets/node_modules/jquery-validation/dist/localization/messages_de.js +32 -0
  611. data/app/assets/node_modules/jquery-validation/dist/localization/messages_el.js +35 -0
  612. data/app/assets/node_modules/jquery-validation/dist/localization/messages_es.js +38 -0
  613. data/app/assets/node_modules/jquery-validation/dist/localization/messages_es_AR.js +39 -0
  614. data/app/assets/node_modules/jquery-validation/dist/localization/messages_es_PE.js +39 -0
  615. data/app/assets/node_modules/jquery-validation/dist/localization/messages_et.js +33 -0
  616. data/app/assets/node_modules/jquery-validation/dist/localization/messages_eu.js +35 -0
  617. data/app/assets/node_modules/jquery-validation/dist/localization/messages_fa.js +38 -0
  618. data/app/assets/node_modules/jquery-validation/dist/localization/messages_fi.js +33 -0
  619. data/app/assets/node_modules/jquery-validation/dist/localization/messages_fr.js +63 -0
  620. data/app/assets/node_modules/jquery-validation/dist/localization/messages_ge.js +35 -0
  621. data/app/assets/node_modules/jquery-validation/dist/localization/messages_gl.js +40 -0
  622. data/app/assets/node_modules/jquery-validation/dist/localization/messages_he.js +35 -0
  623. data/app/assets/node_modules/jquery-validation/dist/localization/messages_hr.js +35 -0
  624. data/app/assets/node_modules/jquery-validation/dist/localization/messages_hu.js +35 -0
  625. data/app/assets/node_modules/jquery-validation/dist/localization/messages_hy_AM.js +35 -0
  626. data/app/assets/node_modules/jquery-validation/dist/localization/messages_id.js +34 -0
  627. data/app/assets/node_modules/jquery-validation/dist/localization/messages_is.js +33 -0
  628. data/app/assets/node_modules/jquery-validation/dist/localization/messages_it.js +39 -0
  629. data/app/assets/node_modules/jquery-validation/dist/localization/messages_ja.js +36 -0
  630. data/app/assets/node_modules/jquery-validation/dist/localization/messages_ka.js +35 -0
  631. data/app/assets/node_modules/jquery-validation/dist/localization/messages_kk.js +35 -0
  632. data/app/assets/node_modules/jquery-validation/dist/localization/messages_ko.js +35 -0
  633. data/app/assets/node_modules/jquery-validation/dist/localization/messages_lt.js +35 -0
  634. data/app/assets/node_modules/jquery-validation/dist/localization/messages_lv.js +35 -0
  635. data/app/assets/node_modules/jquery-validation/dist/localization/messages_mk.js +35 -0
  636. data/app/assets/node_modules/jquery-validation/dist/localization/messages_my.js +35 -0
  637. data/app/assets/node_modules/jquery-validation/dist/localization/messages_nl.js +46 -0
  638. data/app/assets/node_modules/jquery-validation/dist/localization/messages_no.js +36 -0
  639. data/app/assets/node_modules/jquery-validation/dist/localization/messages_pl.js +37 -0
  640. data/app/assets/node_modules/jquery-validation/dist/localization/messages_pt_BR.js +88 -0
  641. data/app/assets/node_modules/jquery-validation/dist/localization/messages_pt_PT.js +39 -0
  642. data/app/assets/node_modules/jquery-validation/dist/localization/messages_ro.js +35 -0
  643. data/app/assets/node_modules/jquery-validation/dist/localization/messages_ru.js +35 -0
  644. data/app/assets/node_modules/jquery-validation/dist/localization/messages_sd.js +35 -0
  645. data/app/assets/node_modules/jquery-validation/dist/localization/messages_si.js +35 -0
  646. data/app/assets/node_modules/jquery-validation/dist/localization/messages_sk.js +32 -0
  647. data/app/assets/node_modules/jquery-validation/dist/localization/messages_sl.js +35 -0
  648. data/app/assets/node_modules/jquery-validation/dist/localization/messages_sr.js +35 -0
  649. data/app/assets/node_modules/jquery-validation/dist/localization/messages_sr_lat.js +35 -0
  650. data/app/assets/node_modules/jquery-validation/dist/localization/messages_sv.js +33 -0
  651. data/app/assets/node_modules/jquery-validation/dist/localization/messages_th.js +35 -0
  652. data/app/assets/node_modules/jquery-validation/dist/localization/messages_tj.js +35 -0
  653. data/app/assets/node_modules/jquery-validation/dist/localization/messages_tr.js +36 -0
  654. data/app/assets/node_modules/jquery-validation/dist/localization/messages_uk.js +35 -0
  655. data/app/assets/node_modules/jquery-validation/dist/localization/messages_ur.js +35 -0
  656. data/app/assets/node_modules/jquery-validation/dist/localization/messages_vi.js +35 -0
  657. data/app/assets/node_modules/jquery-validation/dist/localization/messages_zh.js +35 -0
  658. data/app/assets/node_modules/jquery-validation/dist/localization/messages_zh_TW.js +36 -0
  659. data/app/assets/node_modules/jquery-validation/dist/localization/methods_de.js +24 -0
  660. data/app/assets/node_modules/jquery-validation/dist/localization/methods_es_CL.js +24 -0
  661. data/app/assets/node_modules/jquery-validation/dist/localization/methods_fi.js +24 -0
  662. data/app/assets/node_modules/jquery-validation/dist/localization/methods_nl.js +24 -0
  663. data/app/assets/node_modules/jquery-validation/dist/localization/methods_pt.js +21 -0
  664. data/app/assets/node_modules/jquery-validation/package.json +61 -0
  665. data/app/assets/node_modules/jquery.browser/Gruntfile.js +62 -0
  666. data/app/assets/node_modules/jquery.browser/MIT-LICENSE.txt +21 -0
  667. data/app/assets/node_modules/jquery.browser/README.md +117 -0
  668. data/app/assets/node_modules/jquery.browser/bower.json +13 -0
  669. data/app/assets/node_modules/jquery.browser/browser.jquery.json +37 -0
  670. data/app/assets/node_modules/jquery.browser/dist/jquery.browser.js +193 -0
  671. data/app/assets/node_modules/jquery.browser/dist/jquery.browser.min.js +14 -0
  672. data/app/assets/node_modules/jquery.browser/package.json +30 -0
  673. data/app/assets/node_modules/jquery.browser/test/casperserver.js +257 -0
  674. data/app/assets/node_modules/jquery.browser/test/index.html +13 -0
  675. data/app/assets/node_modules/jquery.browser/test/src/jquery-1.10.2.min.js +6 -0
  676. data/app/assets/node_modules/jquery.browser/test/src/require/test.js +21 -0
  677. data/app/assets/node_modules/jquery.browser/test/test.js +962 -0
  678. data/app/assets/node_modules/jquery.flot.tooltip/CONTRIBUTING.md +9 -0
  679. data/app/assets/node_modules/jquery.flot.tooltip/Gruntfile.js +72 -0
  680. data/app/assets/node_modules/jquery.flot.tooltip/README.md +267 -0
  681. data/app/assets/node_modules/jquery.flot.tooltip/bower.json +13 -0
  682. data/app/assets/node_modules/jquery.flot.tooltip/examples/basic.html +45 -0
  683. data/app/assets/node_modules/jquery.flot.tooltip/examples/curved-lines.html +59 -0
  684. data/app/assets/node_modules/jquery.flot.tooltip/examples/custom-label-text.html +114 -0
  685. data/app/assets/node_modules/jquery.flot.tooltip/examples/custom_ticks.html +78 -0
  686. data/app/assets/node_modules/jquery.flot.tooltip/examples/dollar_in_tickformatter.html +68 -0
  687. data/app/assets/node_modules/jquery.flot.tooltip/examples/index.html +36 -0
  688. data/app/assets/node_modules/jquery.flot.tooltip/examples/js/curvedLines.js +483 -0
  689. data/app/assets/node_modules/jquery.flot.tooltip/examples/js/excanvas.min.js +1 -0
  690. data/app/assets/node_modules/jquery.flot.tooltip/examples/js/jquery.flot.js +3168 -0
  691. data/app/assets/node_modules/jquery.flot.tooltip/examples/js/jquery.flot.pie.js +820 -0
  692. data/app/assets/node_modules/jquery.flot.tooltip/examples/js/jquery.flot.stack.js +184 -0
  693. data/app/assets/node_modules/jquery.flot.tooltip/examples/js/jquery.flot.threshold.js +142 -0
  694. data/app/assets/node_modules/jquery.flot.tooltip/examples/js/jquery.flot.time.js +432 -0
  695. data/app/assets/node_modules/jquery.flot.tooltip/examples/many_series.html +78 -0
  696. data/app/assets/node_modules/jquery.flot.tooltip/examples/multiple-axes.html +78 -0
  697. data/app/assets/node_modules/jquery.flot.tooltip/examples/pie.html +87 -0
  698. data/app/assets/node_modules/jquery.flot.tooltip/examples/real_data.html +133 -0
  699. data/app/assets/node_modules/jquery.flot.tooltip/examples/stacking.html +97 -0
  700. data/app/assets/node_modules/jquery.flot.tooltip/examples/threshold.html +97 -0
  701. data/app/assets/node_modules/jquery.flot.tooltip/examples/time_bars.html +77 -0
  702. data/app/assets/node_modules/jquery.flot.tooltip/examples/two_chars.html +63 -0
  703. data/app/assets/node_modules/jquery.flot.tooltip/js/jquery.flot.tooltip.js +606 -0
  704. data/app/assets/node_modules/jquery.flot.tooltip/js/jquery.flot.tooltip.min.js +12 -0
  705. data/app/assets/node_modules/jquery.flot.tooltip/js/jquery.flot.tooltip.source.js +595 -0
  706. data/app/assets/node_modules/jquery.flot.tooltip/package.json +37 -0
  707. data/app/assets/node_modules/jqvmap/CHANGELOG.md +118 -0
  708. data/app/assets/node_modules/jqvmap/CONTRIBUTING.md +118 -0
  709. data/app/assets/node_modules/jqvmap/LICENSE +43 -0
  710. data/app/assets/node_modules/jqvmap/README.md +495 -0
  711. data/app/assets/node_modules/jqvmap/REGIONS.md +405 -0
  712. data/app/assets/node_modules/jqvmap/bower.json +32 -0
  713. data/app/assets/node_modules/jqvmap/create/README.md +207 -0
  714. data/app/assets/node_modules/jqvmap/create/config/continent.json +64 -0
  715. data/app/assets/node_modules/jqvmap/create/config/new-york.json +16 -0
  716. data/app/assets/node_modules/jqvmap/create/config/syria.json +16 -0
  717. data/app/assets/node_modules/jqvmap/create/jqvmap.py +573 -0
  718. data/app/assets/node_modules/jqvmap/dist/jquery.vmap.js +1281 -0
  719. data/app/assets/node_modules/jqvmap/dist/jquery.vmap.min.js +10 -0
  720. data/app/assets/node_modules/jqvmap/dist/jqvmap.css +50 -0
  721. data/app/assets/node_modules/jqvmap/dist/jqvmap.min.css +1 -0
  722. data/app/assets/node_modules/jqvmap/dist/maps/continents/jquery.vmap.africa.js +2 -0
  723. data/app/assets/node_modules/jqvmap/dist/maps/continents/jquery.vmap.asia.js +2 -0
  724. data/app/assets/node_modules/jqvmap/dist/maps/continents/jquery.vmap.australia.js +2 -0
  725. data/app/assets/node_modules/jqvmap/dist/maps/continents/jquery.vmap.europe.js +2 -0
  726. data/app/assets/node_modules/jqvmap/dist/maps/continents/jquery.vmap.north-america.js +2 -0
  727. data/app/assets/node_modules/jqvmap/dist/maps/continents/jquery.vmap.south-america.js +2 -0
  728. data/app/assets/node_modules/jqvmap/dist/maps/jquery.vmap.algeria.js +2 -0
  729. data/app/assets/node_modules/jqvmap/dist/maps/jquery.vmap.argentina.js +1 -0
  730. data/app/assets/node_modules/jqvmap/dist/maps/jquery.vmap.brazil.js +2 -0
  731. data/app/assets/node_modules/jqvmap/dist/maps/jquery.vmap.canada.js +2 -0
  732. data/app/assets/node_modules/jqvmap/dist/maps/jquery.vmap.europe.js +2 -0
  733. data/app/assets/node_modules/jqvmap/dist/maps/jquery.vmap.france.js +1 -0
  734. data/app/assets/node_modules/jqvmap/dist/maps/jquery.vmap.germany.js +2 -0
  735. data/app/assets/node_modules/jqvmap/dist/maps/jquery.vmap.greece.js +1 -0
  736. data/app/assets/node_modules/jqvmap/dist/maps/jquery.vmap.iran.js +6 -0
  737. data/app/assets/node_modules/jqvmap/dist/maps/jquery.vmap.iraq.js +1 -0
  738. data/app/assets/node_modules/jqvmap/dist/maps/jquery.vmap.russia.js +2 -0
  739. data/app/assets/node_modules/jqvmap/dist/maps/jquery.vmap.tunisia.js +2 -0
  740. data/app/assets/node_modules/jqvmap/dist/maps/jquery.vmap.turkey.js +11 -0
  741. data/app/assets/node_modules/jqvmap/dist/maps/jquery.vmap.usa.js +2 -0
  742. data/app/assets/node_modules/jqvmap/dist/maps/jquery.vmap.world.js +2 -0
  743. data/app/assets/node_modules/jqvmap/examples/algeria.html +27 -0
  744. data/app/assets/node_modules/jqvmap/examples/argentina.html +33 -0
  745. data/app/assets/node_modules/jqvmap/examples/brazil.html +33 -0
  746. data/app/assets/node_modules/jqvmap/examples/continents.html +172 -0
  747. data/app/assets/node_modules/jqvmap/examples/europe.html +27 -0
  748. data/app/assets/node_modules/jqvmap/examples/france.html +27 -0
  749. data/app/assets/node_modules/jqvmap/examples/germany.html +33 -0
  750. data/app/assets/node_modules/jqvmap/examples/greece.html +33 -0
  751. data/app/assets/node_modules/jqvmap/examples/images/background.png +0 -0
  752. data/app/assets/node_modules/jqvmap/examples/images/flag.png +0 -0
  753. data/app/assets/node_modules/jqvmap/examples/images/globe.png +0 -0
  754. data/app/assets/node_modules/jqvmap/examples/images/marker/black.png +0 -0
  755. data/app/assets/node_modules/jqvmap/examples/images/marker/blue.png +0 -0
  756. data/app/assets/node_modules/jqvmap/examples/images/marker/green.png +0 -0
  757. data/app/assets/node_modules/jqvmap/examples/images/marker/grey.png +0 -0
  758. data/app/assets/node_modules/jqvmap/examples/images/marker/orange.png +0 -0
  759. data/app/assets/node_modules/jqvmap/examples/images/marker/purple.png +0 -0
  760. data/app/assets/node_modules/jqvmap/examples/images/marker/red.png +0 -0
  761. data/app/assets/node_modules/jqvmap/examples/images/marker/white.png +0 -0
  762. data/app/assets/node_modules/jqvmap/examples/images/marker/yellow.png +0 -0
  763. data/app/assets/node_modules/jqvmap/examples/images/thumb.jpg +0 -0
  764. data/app/assets/node_modules/jqvmap/examples/images/tip.png +0 -0
  765. data/app/assets/node_modules/jqvmap/examples/inactive_regions.html +62 -0
  766. data/app/assets/node_modules/jqvmap/examples/iran.html +44 -0
  767. data/app/assets/node_modules/jqvmap/examples/iraq.html +44 -0
  768. data/app/assets/node_modules/jqvmap/examples/js/jquery.vmap.sampledata.js +1 -0
  769. data/app/assets/node_modules/jqvmap/examples/labels.html +146 -0
  770. data/app/assets/node_modules/jqvmap/examples/mobile.html +59 -0
  771. data/app/assets/node_modules/jqvmap/examples/multi.html +29 -0
  772. data/app/assets/node_modules/jqvmap/examples/pins.html +236 -0
  773. data/app/assets/node_modules/jqvmap/examples/pins_custom.html +127 -0
  774. data/app/assets/node_modules/jqvmap/examples/responsive.html +45 -0
  775. data/app/assets/node_modules/jqvmap/examples/russia.html +33 -0
  776. data/app/assets/node_modules/jqvmap/examples/touch_detect.html +46 -0
  777. data/app/assets/node_modules/jqvmap/examples/tunisia.html +33 -0
  778. data/app/assets/node_modules/jqvmap/examples/turkey.html +26 -0
  779. data/app/assets/node_modules/jqvmap/examples/usa.html +37 -0
  780. data/app/assets/node_modules/jqvmap/examples/world.html +35 -0
  781. data/app/assets/node_modules/jqvmap/grunt/bump.js +22 -0
  782. data/app/assets/node_modules/jqvmap/grunt/changelog.js +14 -0
  783. data/app/assets/node_modules/jqvmap/grunt/clean.js +5 -0
  784. data/app/assets/node_modules/jqvmap/grunt/concat.js +23 -0
  785. data/app/assets/node_modules/jqvmap/grunt/index.js +2 -0
  786. data/app/assets/node_modules/jqvmap/grunt/qunit.js +3 -0
  787. data/app/assets/node_modules/jqvmap/grunt/shell.js +6 -0
  788. data/app/assets/node_modules/jqvmap/grunt/uglify.js +19 -0
  789. data/app/assets/node_modules/jqvmap/gruntfile.js +21 -0
  790. data/app/assets/node_modules/jqvmap/node_modules/jquery/AUTHORS.txt +217 -0
  791. data/app/assets/node_modules/jqvmap/node_modules/jquery/CONTRIBUTING.md +214 -0
  792. data/app/assets/node_modules/jqvmap/node_modules/jquery/MIT-LICENSE.txt +21 -0
  793. data/app/assets/node_modules/jqvmap/node_modules/jquery/README.md +368 -0
  794. data/app/assets/node_modules/jqvmap/node_modules/jquery/bower.json +28 -0
  795. data/app/assets/node_modules/jqvmap/node_modules/jquery/dist/jquery.js +10351 -0
  796. data/app/assets/node_modules/jqvmap/node_modules/jquery/dist/jquery.min.js +6 -0
  797. data/app/assets/node_modules/jqvmap/node_modules/jquery/dist/jquery.min.map +1 -0
  798. data/app/assets/node_modules/jqvmap/node_modules/jquery/package.json +54 -0
  799. data/app/assets/node_modules/jqvmap/node_modules/jquery/src/ajax/jsonp.js +89 -0
  800. data/app/assets/node_modules/jqvmap/node_modules/jquery/src/ajax/load.js +75 -0
  801. data/app/assets/node_modules/jqvmap/node_modules/jquery/src/ajax/parseJSON.js +51 -0
  802. data/app/assets/node_modules/jqvmap/node_modules/jquery/src/ajax/parseXML.js +31 -0
  803. data/app/assets/node_modules/jqvmap/node_modules/jquery/src/ajax/script.js +93 -0
  804. data/app/assets/node_modules/jqvmap/node_modules/jquery/src/ajax/var/nonce.js +5 -0
  805. data/app/assets/node_modules/jqvmap/node_modules/jquery/src/ajax/var/rquery.js +3 -0
  806. data/app/assets/node_modules/jqvmap/node_modules/jquery/src/ajax/xhr.js +197 -0
  807. data/app/assets/node_modules/jqvmap/node_modules/jquery/src/ajax.js +801 -0
  808. data/app/assets/node_modules/jqvmap/node_modules/jquery/src/attributes/attr.js +271 -0
  809. data/app/assets/node_modules/jqvmap/node_modules/jquery/src/attributes/classes.js +157 -0
  810. data/app/assets/node_modules/jqvmap/node_modules/jquery/src/attributes/prop.js +134 -0
  811. data/app/assets/node_modules/jqvmap/node_modules/jquery/src/attributes/support.js +62 -0
  812. data/app/assets/node_modules/jqvmap/node_modules/jquery/src/attributes/val.js +178 -0
  813. data/app/assets/node_modules/jqvmap/node_modules/jquery/src/attributes.js +11 -0
  814. data/app/assets/node_modules/jqvmap/node_modules/jquery/src/callbacks.js +205 -0
  815. data/app/assets/node_modules/jqvmap/node_modules/jquery/src/core/access.js +60 -0
  816. data/app/assets/node_modules/jqvmap/node_modules/jquery/src/core/init.js +132 -0
  817. data/app/assets/node_modules/jqvmap/node_modules/jquery/src/core/parseHTML.js +39 -0
  818. data/app/assets/node_modules/jqvmap/node_modules/jquery/src/core/ready.js +152 -0
  819. data/app/assets/node_modules/jqvmap/node_modules/jquery/src/core/var/rsingleTag.js +4 -0
  820. data/app/assets/node_modules/jqvmap/node_modules/jquery/src/core.js +540 -0
  821. data/app/assets/node_modules/jqvmap/node_modules/jquery/src/css/addGetHookIf.js +32 -0
  822. data/app/assets/node_modules/jqvmap/node_modules/jquery/src/css/curCSS.js +124 -0
  823. data/app/assets/node_modules/jqvmap/node_modules/jquery/src/css/defaultDisplay.js +69 -0
  824. data/app/assets/node_modules/jqvmap/node_modules/jquery/src/css/hiddenVisibleSelectors.js +20 -0
  825. data/app/assets/node_modules/jqvmap/node_modules/jquery/src/css/support.js +151 -0
  826. data/app/assets/node_modules/jqvmap/node_modules/jquery/src/css/swap.js +28 -0
  827. data/app/assets/node_modules/jqvmap/node_modules/jquery/src/css/var/cssExpand.js +3 -0
  828. data/app/assets/node_modules/jqvmap/node_modules/jquery/src/css/var/isHidden.js +13 -0
  829. data/app/assets/node_modules/jqvmap/node_modules/jquery/src/css/var/rmargin.js +3 -0
  830. data/app/assets/node_modules/jqvmap/node_modules/jquery/src/css/var/rnumnonpx.js +5 -0
  831. data/app/assets/node_modules/jqvmap/node_modules/jquery/src/css.js +504 -0
  832. data/app/assets/node_modules/jqvmap/node_modules/jquery/src/data/accepts.js +21 -0
  833. data/app/assets/node_modules/jqvmap/node_modules/jquery/src/data/support.js +25 -0
  834. data/app/assets/node_modules/jqvmap/node_modules/jquery/src/data.js +335 -0
  835. data/app/assets/node_modules/jqvmap/node_modules/jquery/src/deferred.js +150 -0
  836. data/app/assets/node_modules/jqvmap/node_modules/jquery/src/deprecated.js +13 -0
  837. data/app/assets/node_modules/jqvmap/node_modules/jquery/src/dimensions.js +50 -0
  838. data/app/assets/node_modules/jqvmap/node_modules/jquery/src/effects/Tween.js +114 -0
  839. data/app/assets/node_modules/jqvmap/node_modules/jquery/src/effects/animatedSelector.js +13 -0
  840. data/app/assets/node_modules/jqvmap/node_modules/jquery/src/effects/support.js +55 -0
  841. data/app/assets/node_modules/jqvmap/node_modules/jquery/src/effects.js +656 -0
  842. data/app/assets/node_modules/jqvmap/node_modules/jquery/src/event/ajax.js +13 -0
  843. data/app/assets/node_modules/jqvmap/node_modules/jquery/src/event/alias.js +39 -0
  844. data/app/assets/node_modules/jqvmap/node_modules/jquery/src/event/support.js +26 -0
  845. data/app/assets/node_modules/jqvmap/node_modules/jquery/src/event.js +1037 -0
  846. data/app/assets/node_modules/jqvmap/node_modules/jquery/src/exports/amd.js +24 -0
  847. data/app/assets/node_modules/jqvmap/node_modules/jquery/src/exports/global.js +32 -0
  848. data/app/assets/node_modules/jqvmap/node_modules/jquery/src/intro.js +44 -0
  849. data/app/assets/node_modules/jqvmap/node_modules/jquery/src/jquery.js +38 -0
  850. data/app/assets/node_modules/jqvmap/node_modules/jquery/src/manipulation/_evalUrl.js +18 -0
  851. data/app/assets/node_modules/jqvmap/node_modules/jquery/src/manipulation/support.js +76 -0
  852. data/app/assets/node_modules/jqvmap/node_modules/jquery/src/manipulation/var/rcheckableType.js +3 -0
  853. data/app/assets/node_modules/jqvmap/node_modules/jquery/src/manipulation.js +744 -0
  854. data/app/assets/node_modules/jqvmap/node_modules/jquery/src/offset.js +211 -0
  855. data/app/assets/node_modules/jqvmap/node_modules/jquery/src/outro.js +1 -0
  856. data/app/assets/node_modules/jqvmap/node_modules/jquery/src/queue/delay.js +22 -0
  857. data/app/assets/node_modules/jqvmap/node_modules/jquery/src/queue.js +142 -0
  858. data/app/assets/node_modules/jqvmap/node_modules/jquery/src/selector-sizzle.js +14 -0
  859. data/app/assets/node_modules/jqvmap/node_modules/jquery/src/selector.js +1 -0
  860. data/app/assets/node_modules/jqvmap/node_modules/jquery/src/serialize.js +110 -0
  861. data/app/assets/node_modules/jqvmap/node_modules/jquery/src/sizzle/dist/sizzle.js +2067 -0
  862. data/app/assets/node_modules/jqvmap/node_modules/jquery/src/sizzle/dist/sizzle.min.js +3 -0
  863. data/app/assets/node_modules/jqvmap/node_modules/jquery/src/sizzle/dist/sizzle.min.map +1 -0
  864. data/app/assets/node_modules/jqvmap/node_modules/jquery/src/sizzle/test/data/empty.js +0 -0
  865. data/app/assets/node_modules/jqvmap/node_modules/jquery/src/sizzle/test/data/mixed_sort.html +22 -0
  866. data/app/assets/node_modules/jqvmap/node_modules/jquery/src/sizzle/test/data/testinit.js +136 -0
  867. data/app/assets/node_modules/jqvmap/node_modules/jquery/src/sizzle/test/index.html +242 -0
  868. data/app/assets/node_modules/jqvmap/node_modules/jquery/src/sizzle/test/jquery.js +9597 -0
  869. data/app/assets/node_modules/jqvmap/node_modules/jquery/src/sizzle/test/unit/extending.js +95 -0
  870. data/app/assets/node_modules/jqvmap/node_modules/jquery/src/sizzle/test/unit/selector.js +1149 -0
  871. data/app/assets/node_modules/jqvmap/node_modules/jquery/src/sizzle/test/unit/utilities.js +169 -0
  872. data/app/assets/node_modules/jqvmap/node_modules/jquery/src/support.js +58 -0
  873. data/app/assets/node_modules/jqvmap/node_modules/jquery/src/traversing/findFilter.js +100 -0
  874. data/app/assets/node_modules/jqvmap/node_modules/jquery/src/traversing/var/rneedsContext.js +6 -0
  875. data/app/assets/node_modules/jqvmap/node_modules/jquery/src/traversing.js +200 -0
  876. data/app/assets/node_modules/jqvmap/node_modules/jquery/src/var/class2type.js +4 -0
  877. data/app/assets/node_modules/jqvmap/node_modules/jquery/src/var/concat.js +5 -0
  878. data/app/assets/node_modules/jqvmap/node_modules/jquery/src/var/deletedIds.js +3 -0
  879. data/app/assets/node_modules/jqvmap/node_modules/jquery/src/var/hasOwn.js +5 -0
  880. data/app/assets/node_modules/jqvmap/node_modules/jquery/src/var/indexOf.js +5 -0
  881. data/app/assets/node_modules/jqvmap/node_modules/jquery/src/var/pnum.js +3 -0
  882. data/app/assets/node_modules/jqvmap/node_modules/jquery/src/var/push.js +5 -0
  883. data/app/assets/node_modules/jqvmap/node_modules/jquery/src/var/rnotwhite.js +3 -0
  884. data/app/assets/node_modules/jqvmap/node_modules/jquery/src/var/slice.js +5 -0
  885. data/app/assets/node_modules/jqvmap/node_modules/jquery/src/var/strundefined.js +3 -0
  886. data/app/assets/node_modules/jqvmap/node_modules/jquery/src/var/support.js +4 -0
  887. data/app/assets/node_modules/jqvmap/node_modules/jquery/src/var/toString.js +5 -0
  888. data/app/assets/node_modules/jqvmap/node_modules/jquery/src/wrap.js +76 -0
  889. data/app/assets/node_modules/jqvmap/package.json +45 -0
  890. data/app/assets/node_modules/jqvmap/src/Base.js +80 -0
  891. data/app/assets/node_modules/jqvmap/src/ColorScale/arrayToRgb.js +9 -0
  892. data/app/assets/node_modules/jqvmap/src/ColorScale/getColor.js +41 -0
  893. data/app/assets/node_modules/jqvmap/src/ColorScale/rgbToArray.js +4 -0
  894. data/app/assets/node_modules/jqvmap/src/ColorScale/setColors.js +6 -0
  895. data/app/assets/node_modules/jqvmap/src/ColorScale/setMax.js +8 -0
  896. data/app/assets/node_modules/jqvmap/src/ColorScale/setMin.js +9 -0
  897. data/app/assets/node_modules/jqvmap/src/ColorScale/setNormalizeFunction.js +13 -0
  898. data/app/assets/node_modules/jqvmap/src/ColorScale/vectorAdd.js +7 -0
  899. data/app/assets/node_modules/jqvmap/src/ColorScale/vectorLength.js +7 -0
  900. data/app/assets/node_modules/jqvmap/src/ColorScale/vectorMult.js +7 -0
  901. data/app/assets/node_modules/jqvmap/src/ColorScale/vectorSubtract.js +7 -0
  902. data/app/assets/node_modules/jqvmap/src/ColorScale/vectorToNum.js +7 -0
  903. data/app/assets/node_modules/jqvmap/src/ColorScale.js +18 -0
  904. data/app/assets/node_modules/jqvmap/src/JQVMap/applyTransform.js +31 -0
  905. data/app/assets/node_modules/jqvmap/src/JQVMap/bindZoomButtons.js +9 -0
  906. data/app/assets/node_modules/jqvmap/src/JQVMap/deselect.js +18 -0
  907. data/app/assets/node_modules/jqvmap/src/JQVMap/getCountryId.js +3 -0
  908. data/app/assets/node_modules/jqvmap/src/JQVMap/getPin.js +4 -0
  909. data/app/assets/node_modules/jqvmap/src/JQVMap/getPinId.js +3 -0
  910. data/app/assets/node_modules/jqvmap/src/JQVMap/getPins.js +11 -0
  911. data/app/assets/node_modules/jqvmap/src/JQVMap/highlight.js +12 -0
  912. data/app/assets/node_modules/jqvmap/src/JQVMap/isSelected.js +3 -0
  913. data/app/assets/node_modules/jqvmap/src/JQVMap/makeDraggable.js +159 -0
  914. data/app/assets/node_modules/jqvmap/src/JQVMap/placePins.js +46 -0
  915. data/app/assets/node_modules/jqvmap/src/JQVMap/positionPins.js +19 -0
  916. data/app/assets/node_modules/jqvmap/src/JQVMap/removePin.js +4 -0
  917. data/app/assets/node_modules/jqvmap/src/JQVMap/removePins.js +3 -0
  918. data/app/assets/node_modules/jqvmap/src/JQVMap/reset.js +9 -0
  919. data/app/assets/node_modules/jqvmap/src/JQVMap/resize.js +13 -0
  920. data/app/assets/node_modules/jqvmap/src/JQVMap/select.js +18 -0
  921. data/app/assets/node_modules/jqvmap/src/JQVMap/selectIndex.js +9 -0
  922. data/app/assets/node_modules/jqvmap/src/JQVMap/setBackgroundColor.js +3 -0
  923. data/app/assets/node_modules/jqvmap/src/JQVMap/setColors.js +15 -0
  924. data/app/assets/node_modules/jqvmap/src/JQVMap/setNormalizeFunction.js +7 -0
  925. data/app/assets/node_modules/jqvmap/src/JQVMap/setScale.js +4 -0
  926. data/app/assets/node_modules/jqvmap/src/JQVMap/setScaleColors.js +7 -0
  927. data/app/assets/node_modules/jqvmap/src/JQVMap/setValues.js +36 -0
  928. data/app/assets/node_modules/jqvmap/src/JQVMap/unhighlight.js +8 -0
  929. data/app/assets/node_modules/jqvmap/src/JQVMap/zoomIn.js +17 -0
  930. data/app/assets/node_modules/jqvmap/src/JQVMap/zoomOut.js +17 -0
  931. data/app/assets/node_modules/jqvmap/src/JQVMap.js +243 -0
  932. data/app/assets/node_modules/jqvmap/src/VectorCanvas/applyTransformParams.js +8 -0
  933. data/app/assets/node_modules/jqvmap/src/VectorCanvas/createGroup.js +19 -0
  934. data/app/assets/node_modules/jqvmap/src/VectorCanvas/createPath.js +75 -0
  935. data/app/assets/node_modules/jqvmap/src/VectorCanvas/pathSvgToVml.js +103 -0
  936. data/app/assets/node_modules/jqvmap/src/VectorCanvas/setSize.js +24 -0
  937. data/app/assets/node_modules/jqvmap/src/VectorCanvas.js +42 -0
  938. data/app/assets/node_modules/jqvmap/tests/index.html +32 -0
  939. data/app/assets/node_modules/jqvmap/tests/qunit/qunit.css +291 -0
  940. data/app/assets/node_modules/jqvmap/tests/qunit/qunit.js +3828 -0
  941. data/app/assets/node_modules/jqvmap/tests/tests.js +422 -0
  942. data/app/assets/node_modules/metismenu/LICENSE +20 -0
  943. data/app/assets/node_modules/metismenu/README.md +361 -0
  944. data/app/assets/node_modules/metismenu/changelog.md +22 -0
  945. data/app/assets/node_modules/metismenu/dist/cjs/index.js +327 -0
  946. data/app/assets/node_modules/metismenu/dist/metisMenu.css +132 -0
  947. data/app/assets/node_modules/metismenu/dist/metisMenu.css.map +1 -0
  948. data/app/assets/node_modules/metismenu/dist/metisMenu.js +332 -0
  949. data/app/assets/node_modules/metismenu/dist/metisMenu.js.map +1 -0
  950. data/app/assets/node_modules/metismenu/dist/metisMenu.min.css +9 -0
  951. data/app/assets/node_modules/metismenu/dist/metisMenu.min.css.map +1 -0
  952. data/app/assets/node_modules/metismenu/dist/metisMenu.min.js +10 -0
  953. data/app/assets/node_modules/metismenu/dist/metisMenu.min.js.map +1 -0
  954. data/app/assets/node_modules/metismenu/dist/modules/index.js +323 -0
  955. data/app/assets/node_modules/metismenu/package.json +122 -0
  956. data/app/assets/node_modules/metismenu/src/index.js +260 -0
  957. data/app/assets/node_modules/metismenu/src/metisMenu.css +116 -0
  958. data/app/assets/node_modules/metismenu/src/util.js +61 -0
  959. data/app/assets/node_modules/metismenu/types/metismenu.d.ts +25 -0
  960. data/app/assets/node_modules/morris.js/Gruntfile.js +90 -0
  961. data/app/assets/node_modules/morris.js/README.md +234 -0
  962. data/app/assets/node_modules/morris.js/bower.json +20 -0
  963. data/app/assets/node_modules/morris.js/bower.travis.json +20 -0
  964. data/app/assets/node_modules/morris.js/examples/_template.html +18 -0
  965. data/app/assets/node_modules/morris.js/examples/area-as-line.html +31 -0
  966. data/app/assets/node_modules/morris.js/examples/area.html +34 -0
  967. data/app/assets/node_modules/morris.js/examples/bar-colors.html +44 -0
  968. data/app/assets/node_modules/morris.js/examples/bar-no-axes.html +31 -0
  969. data/app/assets/node_modules/morris.js/examples/bar.html +32 -0
  970. data/app/assets/node_modules/morris.js/examples/days.html +37 -0
  971. data/app/assets/node_modules/morris.js/examples/decimal-custom-hover.html +37 -0
  972. data/app/assets/node_modules/morris.js/examples/diagonal-xlabels-bar.html +38 -0
  973. data/app/assets/node_modules/morris.js/examples/diagonal-xlabels.html +38 -0
  974. data/app/assets/node_modules/morris.js/examples/donut-colors.html +38 -0
  975. data/app/assets/node_modules/morris.js/examples/donut-formatter.html +27 -0
  976. data/app/assets/node_modules/morris.js/examples/donut.html +29 -0
  977. data/app/assets/node_modules/morris.js/examples/dst.html +30 -0
  978. data/app/assets/node_modules/morris.js/examples/events.html +57 -0
  979. data/app/assets/node_modules/morris.js/examples/goals.html +33 -0
  980. data/app/assets/node_modules/morris.js/examples/lib/example.css +13 -0
  981. data/app/assets/node_modules/morris.js/examples/lib/example.js +4 -0
  982. data/app/assets/node_modules/morris.js/examples/months-no-smooth.html +38 -0
  983. data/app/assets/node_modules/morris.js/examples/negative.html +36 -0
  984. data/app/assets/node_modules/morris.js/examples/no-grid.html +38 -0
  985. data/app/assets/node_modules/morris.js/examples/non-continuous.html +42 -0
  986. data/app/assets/node_modules/morris.js/examples/non-date.html +37 -0
  987. data/app/assets/node_modules/morris.js/examples/quarters.html +54 -0
  988. data/app/assets/node_modules/morris.js/examples/resize.html +42 -0
  989. data/app/assets/node_modules/morris.js/examples/stacked_bars.html +31 -0
  990. data/app/assets/node_modules/morris.js/examples/timestamps.html +38 -0
  991. data/app/assets/node_modules/morris.js/examples/updating.html +49 -0
  992. data/app/assets/node_modules/morris.js/examples/weeks.html +53 -0
  993. data/app/assets/node_modules/morris.js/examples/years.html +37 -0
  994. data/app/assets/node_modules/morris.js/less/morris.core.less +27 -0
  995. data/app/assets/node_modules/morris.js/lib/morris.area.coffee +66 -0
  996. data/app/assets/node_modules/morris.js/lib/morris.bar.coffee +208 -0
  997. data/app/assets/node_modules/morris.js/lib/morris.coffee +43 -0
  998. data/app/assets/node_modules/morris.js/lib/morris.donut.coffee +213 -0
  999. data/app/assets/node_modules/morris.js/lib/morris.grid.coffee +499 -0
  1000. data/app/assets/node_modules/morris.js/lib/morris.hover.coffee +44 -0
  1001. data/app/assets/node_modules/morris.js/lib/morris.line.coffee +405 -0
  1002. data/app/assets/node_modules/morris.js/morris.css +2 -0
  1003. data/app/assets/node_modules/morris.js/morris.js +1892 -0
  1004. data/app/assets/node_modules/morris.js/morris.min.js +7 -0
  1005. data/app/assets/node_modules/morris.js/package.json +36 -0
  1006. data/app/assets/node_modules/morris.js/spec/lib/area/area_spec.coffee +60 -0
  1007. data/app/assets/node_modules/morris.js/spec/lib/bar/bar_spec.coffee +127 -0
  1008. data/app/assets/node_modules/morris.js/spec/lib/bar/colours.coffee +36 -0
  1009. data/app/assets/node_modules/morris.js/spec/lib/commas_spec.coffee +38 -0
  1010. data/app/assets/node_modules/morris.js/spec/lib/donut/donut_spec.coffee +76 -0
  1011. data/app/assets/node_modules/morris.js/spec/lib/grid/auto_grid_lines_spec.coffee +25 -0
  1012. data/app/assets/node_modules/morris.js/spec/lib/grid/set_data_spec.coffee +208 -0
  1013. data/app/assets/node_modules/morris.js/spec/lib/grid/y_label_format_spec.coffee +15 -0
  1014. data/app/assets/node_modules/morris.js/spec/lib/hover_spec.coffee +64 -0
  1015. data/app/assets/node_modules/morris.js/spec/lib/label_series_spec.coffee +186 -0
  1016. data/app/assets/node_modules/morris.js/spec/lib/line/line_spec.coffee +211 -0
  1017. data/app/assets/node_modules/morris.js/spec/lib/pad_spec.coffee +17 -0
  1018. data/app/assets/node_modules/morris.js/spec/lib/parse_time_spec.coffee +35 -0
  1019. data/app/assets/node_modules/morris.js/spec/specs.html +34 -0
  1020. data/app/assets/node_modules/morris.js/spec/support/placeholder.coffee +6 -0
  1021. data/app/assets/node_modules/morris.js/spec/viz/examples.js +56 -0
  1022. data/app/assets/node_modules/morris.js/spec/viz/exemplary/area0.png +0 -0
  1023. data/app/assets/node_modules/morris.js/spec/viz/exemplary/bar0.png +0 -0
  1024. data/app/assets/node_modules/morris.js/spec/viz/exemplary/line0.png +0 -0
  1025. data/app/assets/node_modules/morris.js/spec/viz/exemplary/stacked_bar0.png +0 -0
  1026. data/app/assets/node_modules/morris.js/spec/viz/run.sh +32 -0
  1027. data/app/assets/node_modules/morris.js/spec/viz/test.html +34 -0
  1028. data/app/assets/node_modules/morris.js/spec/viz/visual_specs.js +66 -0
  1029. data/app/assets/node_modules/nprogress/History.md +110 -0
  1030. data/app/assets/node_modules/nprogress/License.md +19 -0
  1031. data/app/assets/node_modules/nprogress/Notes.md +25 -0
  1032. data/app/assets/node_modules/nprogress/Readme.md +197 -0
  1033. data/app/assets/node_modules/nprogress/bower.json +27 -0
  1034. data/app/assets/node_modules/nprogress/component.json +19 -0
  1035. data/app/assets/node_modules/nprogress/nprogress.css +74 -0
  1036. data/app/assets/node_modules/nprogress/nprogress.js +476 -0
  1037. data/app/assets/node_modules/nprogress/package.json +47 -0
  1038. data/app/assets/node_modules/nprogress/test/component.html +26 -0
  1039. data/app/assets/node_modules/nprogress/test/test.js +175 -0
  1040. data/app/assets/node_modules/parchment/LICENSE +29 -0
  1041. data/app/assets/node_modules/parchment/README.md +274 -0
  1042. data/app/assets/node_modules/parchment/dist/parchment.js +1749 -0
  1043. data/app/assets/node_modules/parchment/dist/parchment.js.map +1 -0
  1044. data/app/assets/node_modules/parchment/dist/src/attributor/attributor.d.ts +17 -0
  1045. data/app/assets/node_modules/parchment/dist/src/attributor/class.d.ts +8 -0
  1046. data/app/assets/node_modules/parchment/dist/src/attributor/store.d.ts +15 -0
  1047. data/app/assets/node_modules/parchment/dist/src/attributor/style.d.ts +8 -0
  1048. data/app/assets/node_modules/parchment/dist/src/blot/abstract/blot.d.ts +63 -0
  1049. data/app/assets/node_modules/parchment/dist/src/blot/abstract/container.d.ts +40 -0
  1050. data/app/assets/node_modules/parchment/dist/src/blot/abstract/format.d.ts +18 -0
  1051. data/app/assets/node_modules/parchment/dist/src/blot/abstract/leaf.d.ts +11 -0
  1052. data/app/assets/node_modules/parchment/dist/src/blot/abstract/parent.d.ts +41 -0
  1053. data/app/assets/node_modules/parchment/dist/src/blot/abstract/shadow.d.ts +38 -0
  1054. data/app/assets/node_modules/parchment/dist/src/blot/block.d.ts +15 -0
  1055. data/app/assets/node_modules/parchment/dist/src/blot/embed.d.ts +11 -0
  1056. data/app/assets/node_modules/parchment/dist/src/blot/inline.d.ts +14 -0
  1057. data/app/assets/node_modules/parchment/dist/src/blot/scroll.d.ts +24 -0
  1058. data/app/assets/node_modules/parchment/dist/src/blot/text.d.ts +26 -0
  1059. data/app/assets/node_modules/parchment/dist/src/collection/linked-list.d.ts +19 -0
  1060. data/app/assets/node_modules/parchment/dist/src/collection/linked-node.d.ts +6 -0
  1061. data/app/assets/node_modules/parchment/dist/src/parchment.d.ts +35 -0
  1062. data/app/assets/node_modules/parchment/dist/src/registry.d.ts +31 -0
  1063. data/app/assets/node_modules/parchment/package.json +44 -0
  1064. data/app/assets/node_modules/parchment/src/attributor/attributor.ts +61 -0
  1065. data/app/assets/node_modules/parchment/src/attributor/class.ts +44 -0
  1066. data/app/assets/node_modules/parchment/src/attributor/store.ts +73 -0
  1067. data/app/assets/node_modules/parchment/src/attributor/style.ts +44 -0
  1068. data/app/assets/node_modules/parchment/src/blot/abstract/blot.ts +58 -0
  1069. data/app/assets/node_modules/parchment/src/blot/abstract/container.ts +268 -0
  1070. data/app/assets/node_modules/parchment/src/blot/abstract/format.ts +71 -0
  1071. data/app/assets/node_modules/parchment/src/blot/abstract/leaf.ts +33 -0
  1072. data/app/assets/node_modules/parchment/src/blot/abstract/shadow.ts +174 -0
  1073. data/app/assets/node_modules/parchment/src/blot/block.ts +53 -0
  1074. data/app/assets/node_modules/parchment/src/blot/embed.ts +29 -0
  1075. data/app/assets/node_modules/parchment/src/blot/inline.ts +64 -0
  1076. data/app/assets/node_modules/parchment/src/blot/scroll.ts +166 -0
  1077. data/app/assets/node_modules/parchment/src/blot/text.ts +93 -0
  1078. data/app/assets/node_modules/parchment/src/collection/linked-list.ts +143 -0
  1079. data/app/assets/node_modules/parchment/src/collection/linked-node.ts +8 -0
  1080. data/app/assets/node_modules/parchment/src/parchment.ts +46 -0
  1081. data/app/assets/node_modules/parchment/src/registry.ts +133 -0
  1082. data/app/assets/node_modules/parchment/tsconfig.json +9 -0
  1083. data/app/assets/node_modules/popper.js/README.md +219 -0
  1084. data/app/assets/node_modules/popper.js/dist/esm/popper-utils.js +1093 -0
  1085. data/app/assets/node_modules/popper.js/dist/esm/popper-utils.js.map +1 -0
  1086. data/app/assets/node_modules/popper.js/dist/esm/popper-utils.min.js +5 -0
  1087. data/app/assets/node_modules/popper.js/dist/esm/popper-utils.min.js.map +1 -0
  1088. data/app/assets/node_modules/popper.js/dist/esm/popper.js +2520 -0
  1089. data/app/assets/node_modules/popper.js/dist/esm/popper.js.map +1 -0
  1090. data/app/assets/node_modules/popper.js/dist/esm/popper.min.js +5 -0
  1091. data/app/assets/node_modules/popper.js/dist/esm/popper.min.js.map +1 -0
  1092. data/app/assets/node_modules/popper.js/dist/popper-utils.js +1042 -0
  1093. data/app/assets/node_modules/popper.js/dist/popper-utils.js.map +1 -0
  1094. data/app/assets/node_modules/popper.js/dist/popper-utils.min.js +5 -0
  1095. data/app/assets/node_modules/popper.js/dist/popper-utils.min.js.map +1 -0
  1096. data/app/assets/node_modules/popper.js/dist/popper.js +2372 -0
  1097. data/app/assets/node_modules/popper.js/dist/popper.js.map +1 -0
  1098. data/app/assets/node_modules/popper.js/dist/popper.min.js +5 -0
  1099. data/app/assets/node_modules/popper.js/dist/popper.min.js.map +1 -0
  1100. data/app/assets/node_modules/popper.js/dist/umd/popper-utils.js +1131 -0
  1101. data/app/assets/node_modules/popper.js/dist/umd/popper-utils.js.map +1 -0
  1102. data/app/assets/node_modules/popper.js/dist/umd/popper-utils.min.js +5 -0
  1103. data/app/assets/node_modules/popper.js/dist/umd/popper-utils.min.js.map +1 -0
  1104. data/app/assets/node_modules/popper.js/dist/umd/popper.js +2528 -0
  1105. data/app/assets/node_modules/popper.js/dist/umd/popper.js.map +1 -0
  1106. data/app/assets/node_modules/popper.js/dist/umd/popper.min.js +5 -0
  1107. data/app/assets/node_modules/popper.js/dist/umd/popper.min.js.map +1 -0
  1108. data/app/assets/node_modules/popper.js/index.d.ts +159 -0
  1109. data/app/assets/node_modules/popper.js/package.json +54 -0
  1110. data/app/assets/node_modules/quill/CHANGELOG.md +734 -0
  1111. data/app/assets/node_modules/quill/LICENSE +30 -0
  1112. data/app/assets/node_modules/quill/README.md +109 -0
  1113. data/app/assets/node_modules/quill/assets/base.styl +304 -0
  1114. data/app/assets/node_modules/quill/assets/bubble/toolbar.styl +14 -0
  1115. data/app/assets/node_modules/quill/assets/bubble/tooltip.styl +49 -0
  1116. data/app/assets/node_modules/quill/assets/bubble.styl +45 -0
  1117. data/app/assets/node_modules/quill/assets/core.styl +183 -0
  1118. data/app/assets/node_modules/quill/assets/favicon.png +0 -0
  1119. data/app/assets/node_modules/quill/assets/icons/align-center.svg +5 -0
  1120. data/app/assets/node_modules/quill/assets/icons/align-justify.svg +5 -0
  1121. data/app/assets/node_modules/quill/assets/icons/align-left.svg +5 -0
  1122. data/app/assets/node_modules/quill/assets/icons/align-right.svg +5 -0
  1123. data/app/assets/node_modules/quill/assets/icons/attachment.svg +3 -0
  1124. data/app/assets/node_modules/quill/assets/icons/audio.svg +5 -0
  1125. data/app/assets/node_modules/quill/assets/icons/authorship.svg +5 -0
  1126. data/app/assets/node_modules/quill/assets/icons/background.svg +52 -0
  1127. data/app/assets/node_modules/quill/assets/icons/blockquote.svg +6 -0
  1128. data/app/assets/node_modules/quill/assets/icons/bold.svg +4 -0
  1129. data/app/assets/node_modules/quill/assets/icons/clean.svg +7 -0
  1130. data/app/assets/node_modules/quill/assets/icons/code.svg +5 -0
  1131. data/app/assets/node_modules/quill/assets/icons/color.svg +5 -0
  1132. data/app/assets/node_modules/quill/assets/icons/comment.svg +3 -0
  1133. data/app/assets/node_modules/quill/assets/icons/direction-ltr.svg +7 -0
  1134. data/app/assets/node_modules/quill/assets/icons/direction-rtl.svg +7 -0
  1135. data/app/assets/node_modules/quill/assets/icons/dropdown.svg +4 -0
  1136. data/app/assets/node_modules/quill/assets/icons/embed.svg +3 -0
  1137. data/app/assets/node_modules/quill/assets/icons/emoji.svg +6 -0
  1138. data/app/assets/node_modules/quill/assets/icons/float-center.svg +5 -0
  1139. data/app/assets/node_modules/quill/assets/icons/float-full.svg +5 -0
  1140. data/app/assets/node_modules/quill/assets/icons/float-left.svg +7 -0
  1141. data/app/assets/node_modules/quill/assets/icons/float-right.svg +7 -0
  1142. data/app/assets/node_modules/quill/assets/icons/font.svg +5 -0
  1143. data/app/assets/node_modules/quill/assets/icons/formula.svg +5 -0
  1144. data/app/assets/node_modules/quill/assets/icons/hashtag.svg +6 -0
  1145. data/app/assets/node_modules/quill/assets/icons/header-2.svg +3 -0
  1146. data/app/assets/node_modules/quill/assets/icons/header-3.svg +3 -0
  1147. data/app/assets/node_modules/quill/assets/icons/header-4.svg +3 -0
  1148. data/app/assets/node_modules/quill/assets/icons/header-5.svg +3 -0
  1149. data/app/assets/node_modules/quill/assets/icons/header-6.svg +3 -0
  1150. data/app/assets/node_modules/quill/assets/icons/header.svg +3 -0
  1151. data/app/assets/node_modules/quill/assets/icons/horizontal-rule.svg +4 -0
  1152. data/app/assets/node_modules/quill/assets/icons/image.svg +5 -0
  1153. data/app/assets/node_modules/quill/assets/icons/indent.svg +6 -0
  1154. data/app/assets/node_modules/quill/assets/icons/italic.svg +5 -0
  1155. data/app/assets/node_modules/quill/assets/icons/link.svg +5 -0
  1156. data/app/assets/node_modules/quill/assets/icons/list-bullet.svg +8 -0
  1157. data/app/assets/node_modules/quill/assets/icons/list-check.svg +8 -0
  1158. data/app/assets/node_modules/quill/assets/icons/list-ordered.svg +9 -0
  1159. data/app/assets/node_modules/quill/assets/icons/map.svg +5 -0
  1160. data/app/assets/node_modules/quill/assets/icons/mention.svg +4 -0
  1161. data/app/assets/node_modules/quill/assets/icons/more.svg +3 -0
  1162. data/app/assets/node_modules/quill/assets/icons/outdent.svg +6 -0
  1163. data/app/assets/node_modules/quill/assets/icons/redo.svg +4 -0
  1164. data/app/assets/node_modules/quill/assets/icons/size-decrease.svg +5 -0
  1165. data/app/assets/node_modules/quill/assets/icons/size-increase.svg +6 -0
  1166. data/app/assets/node_modules/quill/assets/icons/size.svg +6 -0
  1167. data/app/assets/node_modules/quill/assets/icons/spacing.svg +9 -0
  1168. data/app/assets/node_modules/quill/assets/icons/speech.svg +6 -0
  1169. data/app/assets/node_modules/quill/assets/icons/strike.svg +5 -0
  1170. data/app/assets/node_modules/quill/assets/icons/subscript.svg +4 -0
  1171. data/app/assets/node_modules/quill/assets/icons/superscript.svg +4 -0
  1172. data/app/assets/node_modules/quill/assets/icons/table-border-all.svg +5 -0
  1173. data/app/assets/node_modules/quill/assets/icons/table-border-bottom.svg +28 -0
  1174. data/app/assets/node_modules/quill/assets/icons/table-border-left.svg +28 -0
  1175. data/app/assets/node_modules/quill/assets/icons/table-border-none.svg +25 -0
  1176. data/app/assets/node_modules/quill/assets/icons/table-border-outside.svg +35 -0
  1177. data/app/assets/node_modules/quill/assets/icons/table-border-right.svg +28 -0
  1178. data/app/assets/node_modules/quill/assets/icons/table-border-top.svg +28 -0
  1179. data/app/assets/node_modules/quill/assets/icons/table-delete-cells.svg +13 -0
  1180. data/app/assets/node_modules/quill/assets/icons/table-delete-columns.svg +8 -0
  1181. data/app/assets/node_modules/quill/assets/icons/table-delete-rows.svg +9 -0
  1182. data/app/assets/node_modules/quill/assets/icons/table-insert-cells.svg +13 -0
  1183. data/app/assets/node_modules/quill/assets/icons/table-insert-columns.svg +8 -0
  1184. data/app/assets/node_modules/quill/assets/icons/table-insert-rows.svg +9 -0
  1185. data/app/assets/node_modules/quill/assets/icons/table-merge-cells.svg +4 -0
  1186. data/app/assets/node_modules/quill/assets/icons/table-unmerge-cells.svg +7 -0
  1187. data/app/assets/node_modules/quill/assets/icons/table.svg +11 -0
  1188. data/app/assets/node_modules/quill/assets/icons/underline.svg +4 -0
  1189. data/app/assets/node_modules/quill/assets/icons/undo.svg +4 -0
  1190. data/app/assets/node_modules/quill/assets/icons/video.svg +14 -0
  1191. data/app/assets/node_modules/quill/assets/snow/toolbar.styl +26 -0
  1192. data/app/assets/node_modules/quill/assets/snow/tooltip.styl +53 -0
  1193. data/app/assets/node_modules/quill/assets/snow.styl +18 -0
  1194. data/app/assets/node_modules/quill/blots/block.js +174 -0
  1195. data/app/assets/node_modules/quill/blots/break.js +29 -0
  1196. data/app/assets/node_modules/quill/blots/container.js +9 -0
  1197. data/app/assets/node_modules/quill/blots/cursor.js +116 -0
  1198. data/app/assets/node_modules/quill/blots/embed.js +79 -0
  1199. data/app/assets/node_modules/quill/blots/inline.js +50 -0
  1200. data/app/assets/node_modules/quill/blots/scroll.js +173 -0
  1201. data/app/assets/node_modules/quill/blots/text.js +5 -0
  1202. data/app/assets/node_modules/quill/core/editor.js +267 -0
  1203. data/app/assets/node_modules/quill/core/emitter.js +63 -0
  1204. data/app/assets/node_modules/quill/core/logger.js +22 -0
  1205. data/app/assets/node_modules/quill/core/module.js +10 -0
  1206. data/app/assets/node_modules/quill/core/polyfill.js +63 -0
  1207. data/app/assets/node_modules/quill/core/quill.js +506 -0
  1208. data/app/assets/node_modules/quill/core/selection.js +355 -0
  1209. data/app/assets/node_modules/quill/core/theme.js +30 -0
  1210. data/app/assets/node_modules/quill/core.js +36 -0
  1211. data/app/assets/node_modules/quill/dist/quill.bubble.css +952 -0
  1212. data/app/assets/node_modules/quill/dist/quill.core.css +397 -0
  1213. data/app/assets/node_modules/quill/dist/quill.core.js +8522 -0
  1214. data/app/assets/node_modules/quill/dist/quill.js +11489 -0
  1215. data/app/assets/node_modules/quill/dist/quill.min.js +8 -0
  1216. data/app/assets/node_modules/quill/dist/quill.min.js.map +1 -0
  1217. data/app/assets/node_modules/quill/dist/quill.snow.css +945 -0
  1218. data/app/assets/node_modules/quill/formats/align.js +12 -0
  1219. data/app/assets/node_modules/quill/formats/background.js +11 -0
  1220. data/app/assets/node_modules/quill/formats/blockquote.js +9 -0
  1221. data/app/assets/node_modules/quill/formats/bold.js +22 -0
  1222. data/app/assets/node_modules/quill/formats/code.js +118 -0
  1223. data/app/assets/node_modules/quill/formats/color.js +21 -0
  1224. data/app/assets/node_modules/quill/formats/direction.js +12 -0
  1225. data/app/assets/node_modules/quill/formats/font.js +18 -0
  1226. data/app/assets/node_modules/quill/formats/header.js +13 -0
  1227. data/app/assets/node_modules/quill/formats/image.js +57 -0
  1228. data/app/assets/node_modules/quill/formats/indent.js +31 -0
  1229. data/app/assets/node_modules/quill/formats/italic.js +7 -0
  1230. data/app/assets/node_modules/quill/formats/link.js +41 -0
  1231. data/app/assets/node_modules/quill/formats/list.js +130 -0
  1232. data/app/assets/node_modules/quill/formats/script.js +23 -0
  1233. data/app/assets/node_modules/quill/formats/size.js +12 -0
  1234. data/app/assets/node_modules/quill/formats/strike.js +7 -0
  1235. data/app/assets/node_modules/quill/formats/underline.js +7 -0
  1236. data/app/assets/node_modules/quill/formats/video.js +53 -0
  1237. data/app/assets/node_modules/quill/modules/clipboard.js +358 -0
  1238. data/app/assets/node_modules/quill/modules/formula.js +42 -0
  1239. data/app/assets/node_modules/quill/modules/history.js +120 -0
  1240. data/app/assets/node_modules/quill/modules/keyboard.js +494 -0
  1241. data/app/assets/node_modules/quill/modules/syntax.js +81 -0
  1242. data/app/assets/node_modules/quill/modules/toolbar.js +261 -0
  1243. data/app/assets/node_modules/quill/package.json +99 -0
  1244. data/app/assets/node_modules/quill/quill.js +104 -0
  1245. data/app/assets/node_modules/quill/themes/base.js +264 -0
  1246. data/app/assets/node_modules/quill/themes/bubble.js +111 -0
  1247. data/app/assets/node_modules/quill/themes/snow.js +120 -0
  1248. data/app/assets/node_modules/quill/ui/color-picker.js +35 -0
  1249. data/app/assets/node_modules/quill/ui/icon-picker.js +23 -0
  1250. data/app/assets/node_modules/quill/ui/icons.js +49 -0
  1251. data/app/assets/node_modules/quill/ui/picker.js +186 -0
  1252. data/app/assets/node_modules/quill/ui/tooltip.js +53 -0
  1253. data/app/assets/node_modules/quill-delta/CHANGELOG.md +48 -0
  1254. data/app/assets/node_modules/quill-delta/LICENSE +21 -0
  1255. data/app/assets/node_modules/quill-delta/README.md +639 -0
  1256. data/app/assets/node_modules/quill-delta/lib/delta.js +325 -0
  1257. data/app/assets/node_modules/quill-delta/lib/op.js +139 -0
  1258. data/app/assets/node_modules/quill-delta/package.json +40 -0
  1259. data/app/assets/node_modules/raphael/CONTRIBUTING.md +22 -0
  1260. data/app/assets/node_modules/raphael/Gruntfile.js +72 -0
  1261. data/app/assets/node_modules/raphael/README.md +75 -0
  1262. data/app/assets/node_modules/raphael/bower.json +31 -0
  1263. data/app/assets/node_modules/raphael/dev/banner.txt +8 -0
  1264. data/app/assets/node_modules/raphael/dev/raphael.amd.js +5 -0
  1265. data/app/assets/node_modules/raphael/dev/raphael.core.js +5405 -0
  1266. data/app/assets/node_modules/raphael/dev/raphael.svg.js +1424 -0
  1267. data/app/assets/node_modules/raphael/dev/raphael.vml.js +999 -0
  1268. data/app/assets/node_modules/raphael/dev/raphaelTest.html +39 -0
  1269. data/app/assets/node_modules/raphael/dev/test/index.html +31 -0
  1270. data/app/assets/node_modules/raphael/dev/test/svg/dom.js +317 -0
  1271. data/app/assets/node_modules/raphael/dev/test/vml/dom.js +5 -0
  1272. data/app/assets/node_modules/raphael/history.md +155 -0
  1273. data/app/assets/node_modules/raphael/license.txt +21 -0
  1274. data/app/assets/node_modules/raphael/package.json +47 -0
  1275. data/app/assets/node_modules/raphael/raphael.js +8353 -0
  1276. data/app/assets/node_modules/raphael/raphael.min.js +3 -0
  1277. data/app/assets/node_modules/raphael/raphael.no-deps.js +7927 -0
  1278. data/app/assets/node_modules/raphael/raphael.no-deps.min.js +3 -0
  1279. data/app/assets/node_modules/raphael/webpack.config.js +64 -0
  1280. data/app/assets/node_modules/raphael/yarn.lock +2012 -0
  1281. data/app/assets/node_modules/responsive-toolkit/CHANGELOG.md +70 -0
  1282. data/app/assets/node_modules/responsive-toolkit/LICENSE +21 -0
  1283. data/app/assets/node_modules/responsive-toolkit/README.md +155 -0
  1284. data/app/assets/node_modules/responsive-toolkit/bower.json +22 -0
  1285. data/app/assets/node_modules/responsive-toolkit/demos/bootstrap/index.html +53 -0
  1286. data/app/assets/node_modules/responsive-toolkit/demos/bootstrap/main.js +42 -0
  1287. data/app/assets/node_modules/responsive-toolkit/demos/bootstrap/style.css +109 -0
  1288. data/app/assets/node_modules/responsive-toolkit/demos/custom/index.html +23 -0
  1289. data/app/assets/node_modules/responsive-toolkit/demos/custom/main.js +36 -0
  1290. data/app/assets/node_modules/responsive-toolkit/demos/custom/style.css +19 -0
  1291. data/app/assets/node_modules/responsive-toolkit/demos/foundation/index.html +25 -0
  1292. data/app/assets/node_modules/responsive-toolkit/demos/foundation/main.js +28 -0
  1293. data/app/assets/node_modules/responsive-toolkit/demos/foundation/style.css +3 -0
  1294. data/app/assets/node_modules/responsive-toolkit/dist/bootstrap-toolkit-1.5.0.js +49 -0
  1295. data/app/assets/node_modules/responsive-toolkit/dist/bootstrap-toolkit-1.5.0.min.js +8 -0
  1296. data/app/assets/node_modules/responsive-toolkit/dist/bootstrap-toolkit.js +238 -0
  1297. data/app/assets/node_modules/responsive-toolkit/dist/bootstrap-toolkit.min.js +8 -0
  1298. data/app/assets/node_modules/responsive-toolkit/gulpfile.js +38 -0
  1299. data/app/assets/node_modules/responsive-toolkit/package.json +28 -0
  1300. data/app/assets/node_modules/responsive-toolkit/src/bootstrap-toolkit.js +238 -0
  1301. data/app/assets/node_modules/sortablejs/README.md +636 -0
  1302. data/app/assets/node_modules/sortablejs/Sortable.js +1540 -0
  1303. data/app/assets/node_modules/sortablejs/Sortable.min.js +2 -0
  1304. data/app/assets/node_modules/sortablejs/package.json +48 -0
  1305. data/app/assets/node_modules/tether/CHANGELOG.md +13 -0
  1306. data/app/assets/node_modules/tether/CONTRIBUTING.md +59 -0
  1307. data/app/assets/node_modules/tether/LICENSE +8 -0
  1308. data/app/assets/node_modules/tether/README.md +116 -0
  1309. data/app/assets/node_modules/tether/bower.json +26 -0
  1310. data/app/assets/node_modules/tether/component.json +22 -0
  1311. data/app/assets/node_modules/tether/dist/css/tether-theme-arrows-dark.css +150 -0
  1312. data/app/assets/node_modules/tether/dist/css/tether-theme-arrows-dark.min.css +1 -0
  1313. data/app/assets/node_modules/tether/dist/css/tether-theme-arrows.css +153 -0
  1314. data/app/assets/node_modules/tether/dist/css/tether-theme-arrows.min.css +1 -0
  1315. data/app/assets/node_modules/tether/dist/css/tether-theme-basic.css +21 -0
  1316. data/app/assets/node_modules/tether/dist/css/tether-theme-basic.min.css +1 -0
  1317. data/app/assets/node_modules/tether/dist/css/tether.css +8 -0
  1318. data/app/assets/node_modules/tether/dist/css/tether.min.css +1 -0
  1319. data/app/assets/node_modules/tether/dist/js/tether.js +1813 -0
  1320. data/app/assets/node_modules/tether/dist/js/tether.min.js +1 -0
  1321. data/app/assets/node_modules/tether/docs/1-Overview/1-why_you_should_use_tether.md +43 -0
  1322. data/app/assets/node_modules/tether/docs/1-Overview/2-repositioning.md +46 -0
  1323. data/app/assets/node_modules/tether/docs/1-Overview/3-why_we_dont_support_IE_8.md +47 -0
  1324. data/app/assets/node_modules/tether/docs/2-Examples/1-list_of_examples.md +27 -0
  1325. data/app/assets/node_modules/tether/docs/2-Examples/2-projects_using_tether.md +45 -0
  1326. data/app/assets/node_modules/tether/docs/3-Advanced/1-embedding_tether.md +9 -0
  1327. data/app/assets/node_modules/tether/docs/3-Advanced/2-extending_tether.md +54 -0
  1328. data/app/assets/node_modules/tether/docs/coffee/intro.coffee +113 -0
  1329. data/app/assets/node_modules/tether/docs/css/intro.css +218 -0
  1330. data/app/assets/node_modules/tether/docs/intro.md +591 -0
  1331. data/app/assets/node_modules/tether/docs/js/intro.js +117 -0
  1332. data/app/assets/node_modules/tether/docs/js/markAttachment.js +51 -0
  1333. data/app/assets/node_modules/tether/docs/sass/intro.sass +233 -0
  1334. data/app/assets/node_modules/tether/docs/welcome/browser-demo.html +76 -0
  1335. data/app/assets/node_modules/tether/docs/welcome/coffee/welcome.coffee +212 -0
  1336. data/app/assets/node_modules/tether/docs/welcome/css/browser-demo.css +86 -0
  1337. data/app/assets/node_modules/tether/docs/welcome/css/prism.css +2 -0
  1338. data/app/assets/node_modules/tether/docs/welcome/css/welcome.css +247 -0
  1339. data/app/assets/node_modules/tether/docs/welcome/index.html +226 -0
  1340. data/app/assets/node_modules/tether/docs/welcome/js/drop.js +239 -0
  1341. data/app/assets/node_modules/tether/docs/welcome/js/jquery.js +9597 -0
  1342. data/app/assets/node_modules/tether/docs/welcome/js/log.js +134 -0
  1343. data/app/assets/node_modules/tether/docs/welcome/js/tether-v0.1.3.js +2 -0
  1344. data/app/assets/node_modules/tether/docs/welcome/js/welcome.js +193 -0
  1345. data/app/assets/node_modules/tether/docs/welcome/sass/_inline-block.sass +6 -0
  1346. data/app/assets/node_modules/tether/docs/welcome/sass/browser-demo.sass +93 -0
  1347. data/app/assets/node_modules/tether/docs/welcome/sass/welcome.sass +285 -0
  1348. data/app/assets/node_modules/tether/examples/chosen/chosen-sprite.png +0 -0
  1349. data/app/assets/node_modules/tether/examples/chosen/chosen-sprite@2x.png +0 -0
  1350. data/app/assets/node_modules/tether/examples/chosen/chosen.css +430 -0
  1351. data/app/assets/node_modules/tether/examples/chosen/chosen.js +1166 -0
  1352. data/app/assets/node_modules/tether/examples/chosen/index.html +110 -0
  1353. data/app/assets/node_modules/tether/examples/common/css/style.css +48 -0
  1354. data/app/assets/node_modules/tether/examples/content-visible/index.html +64 -0
  1355. data/app/assets/node_modules/tether/examples/dolls/dolls.css +18 -0
  1356. data/app/assets/node_modules/tether/examples/dolls/dolls.js +83 -0
  1357. data/app/assets/node_modules/tether/examples/dolls/index.html +7 -0
  1358. data/app/assets/node_modules/tether/examples/element-scroll/index.html +499 -0
  1359. data/app/assets/node_modules/tether/examples/enable-disable/index.html +37 -0
  1360. data/app/assets/node_modules/tether/examples/facebook/facebook.css +86 -0
  1361. data/app/assets/node_modules/tether/examples/facebook/index.html +209 -0
  1362. data/app/assets/node_modules/tether/examples/out-of-bounds/index.html +38 -0
  1363. data/app/assets/node_modules/tether/examples/pin/index.html +30 -0
  1364. data/app/assets/node_modules/tether/examples/resources/css/base.css +10 -0
  1365. data/app/assets/node_modules/tether/examples/resources/js/jquery.js +9597 -0
  1366. data/app/assets/node_modules/tether/examples/resources/js/log.js +134 -0
  1367. data/app/assets/node_modules/tether/examples/scroll/index.html +922 -0
  1368. data/app/assets/node_modules/tether/examples/simple/index.html +30 -0
  1369. data/app/assets/node_modules/tether/examples/testbed/index.html +36 -0
  1370. data/app/assets/node_modules/tether/examples/tooltip/index.html +86 -0
  1371. data/app/assets/node_modules/tether/examples/viewport/colors.css +145 -0
  1372. data/app/assets/node_modules/tether/examples/viewport/index.html +70 -0
  1373. data/app/assets/node_modules/tether/gulpfile.js +97 -0
  1374. data/app/assets/node_modules/tether/package.json +40 -0
  1375. data/app/assets/node_modules/tether/src/css/helpers/_tether-theme-arrows.sass +192 -0
  1376. data/app/assets/node_modules/tether/src/css/helpers/_tether-theme-basic.sass +14 -0
  1377. data/app/assets/node_modules/tether/src/css/helpers/_tether.sass +12 -0
  1378. data/app/assets/node_modules/tether/src/css/mixins/_inline-block.sass +6 -0
  1379. data/app/assets/node_modules/tether/src/css/mixins/_pie-clearfix.sass +7 -0
  1380. data/app/assets/node_modules/tether/src/css/tether-theme-arrows-dark.sass +12 -0
  1381. data/app/assets/node_modules/tether/src/css/tether-theme-arrows.sass +12 -0
  1382. data/app/assets/node_modules/tether/src/css/tether-theme-basic.sass +10 -0
  1383. data/app/assets/node_modules/tether/src/css/tether.sass +5 -0
  1384. data/app/assets/node_modules/tether/src/js/abutment.js +61 -0
  1385. data/app/assets/node_modules/tether/src/js/constraint.js +366 -0
  1386. data/app/assets/node_modules/tether/src/js/markAttachment.js +46 -0
  1387. data/app/assets/node_modules/tether/src/js/shift.js +32 -0
  1388. data/app/assets/node_modules/tether/src/js/tether.js +811 -0
  1389. data/app/assets/node_modules/tether/src/js/utils.js +370 -0
  1390. data/app/assets/node_modules/tinycolor2/Gruntfile.js +59 -0
  1391. data/app/assets/node_modules/tinycolor2/LICENSE +20 -0
  1392. data/app/assets/node_modules/tinycolor2/README.md +469 -0
  1393. data/app/assets/node_modules/tinycolor2/bower.json +9 -0
  1394. data/app/assets/node_modules/tinycolor2/demo/demo.css +23 -0
  1395. data/app/assets/node_modules/tinycolor2/demo/jquery-1.9.1.js +9597 -0
  1396. data/app/assets/node_modules/tinycolor2/dist/tinycolor-min.js +4 -0
  1397. data/app/assets/node_modules/tinycolor2/docs/docco.css +192 -0
  1398. data/app/assets/node_modules/tinycolor2/docs/tinycolor.html +1023 -0
  1399. data/app/assets/node_modules/tinycolor2/index.html +207 -0
  1400. data/app/assets/node_modules/tinycolor2/package.json +31 -0
  1401. data/app/assets/node_modules/tinycolor2/test/index.html +19 -0
  1402. data/app/assets/node_modules/tinycolor2/test/qunit.css +244 -0
  1403. data/app/assets/node_modules/tinycolor2/test/qunit.js +2152 -0
  1404. data/app/assets/node_modules/tinycolor2/test/test.js +791 -0
  1405. data/app/assets/node_modules/tinycolor2/tinycolor.js +1195 -0
  1406. data/app/assets/stylesheets/rails_modular_admin/application.scss +2 -3
  1407. data/app/assets/stylesheets/rails_modular_admin.scss +0 -1
  1408. data/config/initializers/assets.rb +4 -29
  1409. data/lib/rails_modular_admin/engine.rb +30 -2
  1410. data/lib/rails_modular_admin/version.rb +1 -1
  1411. metadata +1419 -8
  1412. data/app/controllers/rails_modular_admin/application_controller.rb +0 -5
  1413. data/app/helpers/rails_modular_admin/application_helper.rb +0 -4
  1414. data/app/jobs/rails_modular_admin/application_job.rb +0 -4
  1415. data/app/mailers/rails_modular_admin/application_mailer.rb +0 -6
  1416. data/app/models/rails_modular_admin/application_record.rb +0 -5
@@ -0,0 +1,3828 @@
1
+ /*!
2
+ * QUnit 1.18.0
3
+ * http://qunitjs.com/
4
+ *
5
+ * Copyright jQuery Foundation and other contributors
6
+ * Released under the MIT license
7
+ * http://jquery.org/license
8
+ *
9
+ * Date: 2015-04-03T10:23Z
10
+ */
11
+
12
+ (function( window ) {
13
+
14
+ var QUnit,
15
+ config,
16
+ onErrorFnPrev,
17
+ loggingCallbacks = {},
18
+ fileName = ( sourceFromStacktrace( 0 ) || "" ).replace( /(:\d+)+\)?/, "" ).replace( /.+\//, "" ),
19
+ toString = Object.prototype.toString,
20
+ hasOwn = Object.prototype.hasOwnProperty,
21
+ // Keep a local reference to Date (GH-283)
22
+ Date = window.Date,
23
+ now = Date.now || function() {
24
+ return new Date().getTime();
25
+ },
26
+ globalStartCalled = false,
27
+ runStarted = false,
28
+ setTimeout = window.setTimeout,
29
+ clearTimeout = window.clearTimeout,
30
+ defined = {
31
+ document: window.document !== undefined,
32
+ setTimeout: window.setTimeout !== undefined,
33
+ sessionStorage: (function() {
34
+ var x = "qunit-test-string";
35
+ try {
36
+ sessionStorage.setItem( x, x );
37
+ sessionStorage.removeItem( x );
38
+ return true;
39
+ } catch ( e ) {
40
+ return false;
41
+ }
42
+ }())
43
+ },
44
+ /**
45
+ * Provides a normalized error string, correcting an issue
46
+ * with IE 7 (and prior) where Error.prototype.toString is
47
+ * not properly implemented
48
+ *
49
+ * Based on http://es5.github.com/#x15.11.4.4
50
+ *
51
+ * @param {String|Error} error
52
+ * @return {String} error message
53
+ */
54
+ errorString = function( error ) {
55
+ var name, message,
56
+ errorString = error.toString();
57
+ if ( errorString.substring( 0, 7 ) === "[object" ) {
58
+ name = error.name ? error.name.toString() : "Error";
59
+ message = error.message ? error.message.toString() : "";
60
+ if ( name && message ) {
61
+ return name + ": " + message;
62
+ } else if ( name ) {
63
+ return name;
64
+ } else if ( message ) {
65
+ return message;
66
+ } else {
67
+ return "Error";
68
+ }
69
+ } else {
70
+ return errorString;
71
+ }
72
+ },
73
+ /**
74
+ * Makes a clone of an object using only Array or Object as base,
75
+ * and copies over the own enumerable properties.
76
+ *
77
+ * @param {Object} obj
78
+ * @return {Object} New object with only the own properties (recursively).
79
+ */
80
+ objectValues = function( obj ) {
81
+ var key, val,
82
+ vals = QUnit.is( "array", obj ) ? [] : {};
83
+ for ( key in obj ) {
84
+ if ( hasOwn.call( obj, key ) ) {
85
+ val = obj[ key ];
86
+ vals[ key ] = val === Object( val ) ? objectValues( val ) : val;
87
+ }
88
+ }
89
+ return vals;
90
+ };
91
+
92
+ QUnit = {};
93
+
94
+ /**
95
+ * Config object: Maintain internal state
96
+ * Later exposed as QUnit.config
97
+ * `config` initialized at top of scope
98
+ */
99
+ config = {
100
+ // The queue of tests to run
101
+ queue: [],
102
+
103
+ // block until document ready
104
+ blocking: true,
105
+
106
+ // by default, run previously failed tests first
107
+ // very useful in combination with "Hide passed tests" checked
108
+ reorder: true,
109
+
110
+ // by default, modify document.title when suite is done
111
+ altertitle: true,
112
+
113
+ // by default, scroll to top of the page when suite is done
114
+ scrolltop: true,
115
+
116
+ // when enabled, all tests must call expect()
117
+ requireExpects: false,
118
+
119
+ // depth up-to which object will be dumped
120
+ maxDepth: 5,
121
+
122
+ // add checkboxes that are persisted in the query-string
123
+ // when enabled, the id is set to `true` as a `QUnit.config` property
124
+ urlConfig: [
125
+ {
126
+ id: "hidepassed",
127
+ label: "Hide passed tests",
128
+ tooltip: "Only show tests and assertions that fail. Stored as query-strings."
129
+ },
130
+ {
131
+ id: "noglobals",
132
+ label: "Check for Globals",
133
+ tooltip: "Enabling this will test if any test introduces new properties on the " +
134
+ "`window` object. Stored as query-strings."
135
+ },
136
+ {
137
+ id: "notrycatch",
138
+ label: "No try-catch",
139
+ tooltip: "Enabling this will run tests outside of a try-catch block. Makes debugging " +
140
+ "exceptions in IE reasonable. Stored as query-strings."
141
+ }
142
+ ],
143
+
144
+ // Set of all modules.
145
+ modules: [],
146
+
147
+ // The first unnamed module
148
+ currentModule: {
149
+ name: "",
150
+ tests: []
151
+ },
152
+
153
+ callbacks: {}
154
+ };
155
+
156
+ // Push a loose unnamed module to the modules collection
157
+ config.modules.push( config.currentModule );
158
+
159
+ // Initialize more QUnit.config and QUnit.urlParams
160
+ (function() {
161
+ var i, current,
162
+ location = window.location || { search: "", protocol: "file:" },
163
+ params = location.search.slice( 1 ).split( "&" ),
164
+ length = params.length,
165
+ urlParams = {};
166
+
167
+ if ( params[ 0 ] ) {
168
+ for ( i = 0; i < length; i++ ) {
169
+ current = params[ i ].split( "=" );
170
+ current[ 0 ] = decodeURIComponent( current[ 0 ] );
171
+
172
+ // allow just a key to turn on a flag, e.g., test.html?noglobals
173
+ current[ 1 ] = current[ 1 ] ? decodeURIComponent( current[ 1 ] ) : true;
174
+ if ( urlParams[ current[ 0 ] ] ) {
175
+ urlParams[ current[ 0 ] ] = [].concat( urlParams[ current[ 0 ] ], current[ 1 ] );
176
+ } else {
177
+ urlParams[ current[ 0 ] ] = current[ 1 ];
178
+ }
179
+ }
180
+ }
181
+
182
+ if ( urlParams.filter === true ) {
183
+ delete urlParams.filter;
184
+ }
185
+
186
+ QUnit.urlParams = urlParams;
187
+
188
+ // String search anywhere in moduleName+testName
189
+ config.filter = urlParams.filter;
190
+
191
+ if ( urlParams.maxDepth ) {
192
+ config.maxDepth = parseInt( urlParams.maxDepth, 10 ) === -1 ?
193
+ Number.POSITIVE_INFINITY :
194
+ urlParams.maxDepth;
195
+ }
196
+
197
+ config.testId = [];
198
+ if ( urlParams.testId ) {
199
+
200
+ // Ensure that urlParams.testId is an array
201
+ urlParams.testId = decodeURIComponent( urlParams.testId ).split( "," );
202
+ for ( i = 0; i < urlParams.testId.length; i++ ) {
203
+ config.testId.push( urlParams.testId[ i ] );
204
+ }
205
+ }
206
+
207
+ // Figure out if we're running the tests from a server or not
208
+ QUnit.isLocal = location.protocol === "file:";
209
+
210
+ // Expose the current QUnit version
211
+ QUnit.version = "1.18.0";
212
+ }());
213
+
214
+ // Root QUnit object.
215
+ // `QUnit` initialized at top of scope
216
+ extend( QUnit, {
217
+
218
+ // call on start of module test to prepend name to all tests
219
+ module: function( name, testEnvironment ) {
220
+ var currentModule = {
221
+ name: name,
222
+ testEnvironment: testEnvironment,
223
+ tests: []
224
+ };
225
+
226
+ // DEPRECATED: handles setup/teardown functions,
227
+ // beforeEach and afterEach should be used instead
228
+ if ( testEnvironment && testEnvironment.setup ) {
229
+ testEnvironment.beforeEach = testEnvironment.setup;
230
+ delete testEnvironment.setup;
231
+ }
232
+ if ( testEnvironment && testEnvironment.teardown ) {
233
+ testEnvironment.afterEach = testEnvironment.teardown;
234
+ delete testEnvironment.teardown;
235
+ }
236
+
237
+ config.modules.push( currentModule );
238
+ config.currentModule = currentModule;
239
+ },
240
+
241
+ // DEPRECATED: QUnit.asyncTest() will be removed in QUnit 2.0.
242
+ asyncTest: function( testName, expected, callback ) {
243
+ if ( arguments.length === 2 ) {
244
+ callback = expected;
245
+ expected = null;
246
+ }
247
+
248
+ QUnit.test( testName, expected, callback, true );
249
+ },
250
+
251
+ test: function( testName, expected, callback, async ) {
252
+ var test;
253
+
254
+ if ( arguments.length === 2 ) {
255
+ callback = expected;
256
+ expected = null;
257
+ }
258
+
259
+ test = new Test({
260
+ testName: testName,
261
+ expected: expected,
262
+ async: async,
263
+ callback: callback
264
+ });
265
+
266
+ test.queue();
267
+ },
268
+
269
+ skip: function( testName ) {
270
+ var test = new Test({
271
+ testName: testName,
272
+ skip: true
273
+ });
274
+
275
+ test.queue();
276
+ },
277
+
278
+ // DEPRECATED: The functionality of QUnit.start() will be altered in QUnit 2.0.
279
+ // In QUnit 2.0, invoking it will ONLY affect the `QUnit.config.autostart` blocking behavior.
280
+ start: function( count ) {
281
+ var globalStartAlreadyCalled = globalStartCalled;
282
+
283
+ if ( !config.current ) {
284
+ globalStartCalled = true;
285
+
286
+ if ( runStarted ) {
287
+ throw new Error( "Called start() outside of a test context while already started" );
288
+ } else if ( globalStartAlreadyCalled || count > 1 ) {
289
+ throw new Error( "Called start() outside of a test context too many times" );
290
+ } else if ( config.autostart ) {
291
+ throw new Error( "Called start() outside of a test context when " +
292
+ "QUnit.config.autostart was true" );
293
+ } else if ( !config.pageLoaded ) {
294
+
295
+ // The page isn't completely loaded yet, so bail out and let `QUnit.load` handle it
296
+ config.autostart = true;
297
+ return;
298
+ }
299
+ } else {
300
+
301
+ // If a test is running, adjust its semaphore
302
+ config.current.semaphore -= count || 1;
303
+
304
+ // Don't start until equal number of stop-calls
305
+ if ( config.current.semaphore > 0 ) {
306
+ return;
307
+ }
308
+
309
+ // throw an Error if start is called more often than stop
310
+ if ( config.current.semaphore < 0 ) {
311
+ config.current.semaphore = 0;
312
+
313
+ QUnit.pushFailure(
314
+ "Called start() while already started (test's semaphore was 0 already)",
315
+ sourceFromStacktrace( 2 )
316
+ );
317
+ return;
318
+ }
319
+ }
320
+
321
+ resumeProcessing();
322
+ },
323
+
324
+ // DEPRECATED: QUnit.stop() will be removed in QUnit 2.0.
325
+ stop: function( count ) {
326
+
327
+ // If there isn't a test running, don't allow QUnit.stop() to be called
328
+ if ( !config.current ) {
329
+ throw new Error( "Called stop() outside of a test context" );
330
+ }
331
+
332
+ // If a test is running, adjust its semaphore
333
+ config.current.semaphore += count || 1;
334
+
335
+ pauseProcessing();
336
+ },
337
+
338
+ config: config,
339
+
340
+ // Safe object type checking
341
+ is: function( type, obj ) {
342
+ return QUnit.objectType( obj ) === type;
343
+ },
344
+
345
+ objectType: function( obj ) {
346
+ if ( typeof obj === "undefined" ) {
347
+ return "undefined";
348
+ }
349
+
350
+ // Consider: typeof null === object
351
+ if ( obj === null ) {
352
+ return "null";
353
+ }
354
+
355
+ var match = toString.call( obj ).match( /^\[object\s(.*)\]$/ ),
356
+ type = match && match[ 1 ] || "";
357
+
358
+ switch ( type ) {
359
+ case "Number":
360
+ if ( isNaN( obj ) ) {
361
+ return "nan";
362
+ }
363
+ return "number";
364
+ case "String":
365
+ case "Boolean":
366
+ case "Array":
367
+ case "Date":
368
+ case "RegExp":
369
+ case "Function":
370
+ return type.toLowerCase();
371
+ }
372
+ if ( typeof obj === "object" ) {
373
+ return "object";
374
+ }
375
+ return undefined;
376
+ },
377
+
378
+ extend: extend,
379
+
380
+ load: function() {
381
+ config.pageLoaded = true;
382
+
383
+ // Initialize the configuration options
384
+ extend( config, {
385
+ stats: { all: 0, bad: 0 },
386
+ moduleStats: { all: 0, bad: 0 },
387
+ started: 0,
388
+ updateRate: 1000,
389
+ autostart: true,
390
+ filter: ""
391
+ }, true );
392
+
393
+ config.blocking = false;
394
+
395
+ if ( config.autostart ) {
396
+ resumeProcessing();
397
+ }
398
+ }
399
+ });
400
+
401
+ // Register logging callbacks
402
+ (function() {
403
+ var i, l, key,
404
+ callbacks = [ "begin", "done", "log", "testStart", "testDone",
405
+ "moduleStart", "moduleDone" ];
406
+
407
+ function registerLoggingCallback( key ) {
408
+ var loggingCallback = function( callback ) {
409
+ if ( QUnit.objectType( callback ) !== "function" ) {
410
+ throw new Error(
411
+ "QUnit logging methods require a callback function as their first parameters."
412
+ );
413
+ }
414
+
415
+ config.callbacks[ key ].push( callback );
416
+ };
417
+
418
+ // DEPRECATED: This will be removed on QUnit 2.0.0+
419
+ // Stores the registered functions allowing restoring
420
+ // at verifyLoggingCallbacks() if modified
421
+ loggingCallbacks[ key ] = loggingCallback;
422
+
423
+ return loggingCallback;
424
+ }
425
+
426
+ for ( i = 0, l = callbacks.length; i < l; i++ ) {
427
+ key = callbacks[ i ];
428
+
429
+ // Initialize key collection of logging callback
430
+ if ( QUnit.objectType( config.callbacks[ key ] ) === "undefined" ) {
431
+ config.callbacks[ key ] = [];
432
+ }
433
+
434
+ QUnit[ key ] = registerLoggingCallback( key );
435
+ }
436
+ })();
437
+
438
+ // `onErrorFnPrev` initialized at top of scope
439
+ // Preserve other handlers
440
+ onErrorFnPrev = window.onerror;
441
+
442
+ // Cover uncaught exceptions
443
+ // Returning true will suppress the default browser handler,
444
+ // returning false will let it run.
445
+ window.onerror = function( error, filePath, linerNr ) {
446
+ var ret = false;
447
+ if ( onErrorFnPrev ) {
448
+ ret = onErrorFnPrev( error, filePath, linerNr );
449
+ }
450
+
451
+ // Treat return value as window.onerror itself does,
452
+ // Only do our handling if not suppressed.
453
+ if ( ret !== true ) {
454
+ if ( QUnit.config.current ) {
455
+ if ( QUnit.config.current.ignoreGlobalErrors ) {
456
+ return true;
457
+ }
458
+ QUnit.pushFailure( error, filePath + ":" + linerNr );
459
+ } else {
460
+ QUnit.test( "global failure", extend(function() {
461
+ QUnit.pushFailure( error, filePath + ":" + linerNr );
462
+ }, { validTest: true } ) );
463
+ }
464
+ return false;
465
+ }
466
+
467
+ return ret;
468
+ };
469
+
470
+ function done() {
471
+ var runtime, passed;
472
+
473
+ config.autorun = true;
474
+
475
+ // Log the last module results
476
+ if ( config.previousModule ) {
477
+ runLoggingCallbacks( "moduleDone", {
478
+ name: config.previousModule.name,
479
+ tests: config.previousModule.tests,
480
+ failed: config.moduleStats.bad,
481
+ passed: config.moduleStats.all - config.moduleStats.bad,
482
+ total: config.moduleStats.all,
483
+ runtime: now() - config.moduleStats.started
484
+ });
485
+ }
486
+ delete config.previousModule;
487
+
488
+ runtime = now() - config.started;
489
+ passed = config.stats.all - config.stats.bad;
490
+
491
+ runLoggingCallbacks( "done", {
492
+ failed: config.stats.bad,
493
+ passed: passed,
494
+ total: config.stats.all,
495
+ runtime: runtime
496
+ });
497
+ }
498
+
499
+ // Doesn't support IE6 to IE9, it will return undefined on these browsers
500
+ // See also https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/Error/Stack
501
+ function extractStacktrace( e, offset ) {
502
+ offset = offset === undefined ? 4 : offset;
503
+
504
+ var stack, include, i;
505
+
506
+ if ( e.stack ) {
507
+ stack = e.stack.split( "\n" );
508
+ if ( /^error$/i.test( stack[ 0 ] ) ) {
509
+ stack.shift();
510
+ }
511
+ if ( fileName ) {
512
+ include = [];
513
+ for ( i = offset; i < stack.length; i++ ) {
514
+ if ( stack[ i ].indexOf( fileName ) !== -1 ) {
515
+ break;
516
+ }
517
+ include.push( stack[ i ] );
518
+ }
519
+ if ( include.length ) {
520
+ return include.join( "\n" );
521
+ }
522
+ }
523
+ return stack[ offset ];
524
+
525
+ // Support: Safari <=6 only
526
+ } else if ( e.sourceURL ) {
527
+
528
+ // exclude useless self-reference for generated Error objects
529
+ if ( /qunit.js$/.test( e.sourceURL ) ) {
530
+ return;
531
+ }
532
+
533
+ // for actual exceptions, this is useful
534
+ return e.sourceURL + ":" + e.line;
535
+ }
536
+ }
537
+
538
+ function sourceFromStacktrace( offset ) {
539
+ var error = new Error();
540
+
541
+ // Support: Safari <=7 only, IE <=10 - 11 only
542
+ // Not all browsers generate the `stack` property for `new Error()`, see also #636
543
+ if ( !error.stack ) {
544
+ try {
545
+ throw error;
546
+ } catch ( err ) {
547
+ error = err;
548
+ }
549
+ }
550
+
551
+ return extractStacktrace( error, offset );
552
+ }
553
+
554
+ function synchronize( callback, last ) {
555
+ if ( QUnit.objectType( callback ) === "array" ) {
556
+ while ( callback.length ) {
557
+ synchronize( callback.shift() );
558
+ }
559
+ return;
560
+ }
561
+ config.queue.push( callback );
562
+
563
+ if ( config.autorun && !config.blocking ) {
564
+ process( last );
565
+ }
566
+ }
567
+
568
+ function process( last ) {
569
+ function next() {
570
+ process( last );
571
+ }
572
+ var start = now();
573
+ config.depth = ( config.depth || 0 ) + 1;
574
+
575
+ while ( config.queue.length && !config.blocking ) {
576
+ if ( !defined.setTimeout || config.updateRate <= 0 ||
577
+ ( ( now() - start ) < config.updateRate ) ) {
578
+ if ( config.current ) {
579
+
580
+ // Reset async tracking for each phase of the Test lifecycle
581
+ config.current.usedAsync = false;
582
+ }
583
+ config.queue.shift()();
584
+ } else {
585
+ setTimeout( next, 13 );
586
+ break;
587
+ }
588
+ }
589
+ config.depth--;
590
+ if ( last && !config.blocking && !config.queue.length && config.depth === 0 ) {
591
+ done();
592
+ }
593
+ }
594
+
595
+ function begin() {
596
+ var i, l,
597
+ modulesLog = [];
598
+
599
+ // If the test run hasn't officially begun yet
600
+ if ( !config.started ) {
601
+
602
+ // Record the time of the test run's beginning
603
+ config.started = now();
604
+
605
+ verifyLoggingCallbacks();
606
+
607
+ // Delete the loose unnamed module if unused.
608
+ if ( config.modules[ 0 ].name === "" && config.modules[ 0 ].tests.length === 0 ) {
609
+ config.modules.shift();
610
+ }
611
+
612
+ // Avoid unnecessary information by not logging modules' test environments
613
+ for ( i = 0, l = config.modules.length; i < l; i++ ) {
614
+ modulesLog.push({
615
+ name: config.modules[ i ].name,
616
+ tests: config.modules[ i ].tests
617
+ });
618
+ }
619
+
620
+ // The test run is officially beginning now
621
+ runLoggingCallbacks( "begin", {
622
+ totalTests: Test.count,
623
+ modules: modulesLog
624
+ });
625
+ }
626
+
627
+ config.blocking = false;
628
+ process( true );
629
+ }
630
+
631
+ function resumeProcessing() {
632
+ runStarted = true;
633
+
634
+ // A slight delay to allow this iteration of the event loop to finish (more assertions, etc.)
635
+ if ( defined.setTimeout ) {
636
+ setTimeout(function() {
637
+ if ( config.current && config.current.semaphore > 0 ) {
638
+ return;
639
+ }
640
+ if ( config.timeout ) {
641
+ clearTimeout( config.timeout );
642
+ }
643
+
644
+ begin();
645
+ }, 13 );
646
+ } else {
647
+ begin();
648
+ }
649
+ }
650
+
651
+ function pauseProcessing() {
652
+ config.blocking = true;
653
+
654
+ if ( config.testTimeout && defined.setTimeout ) {
655
+ clearTimeout( config.timeout );
656
+ config.timeout = setTimeout(function() {
657
+ if ( config.current ) {
658
+ config.current.semaphore = 0;
659
+ QUnit.pushFailure( "Test timed out", sourceFromStacktrace( 2 ) );
660
+ } else {
661
+ throw new Error( "Test timed out" );
662
+ }
663
+ resumeProcessing();
664
+ }, config.testTimeout );
665
+ }
666
+ }
667
+
668
+ function saveGlobal() {
669
+ config.pollution = [];
670
+
671
+ if ( config.noglobals ) {
672
+ for ( var key in window ) {
673
+ if ( hasOwn.call( window, key ) ) {
674
+ // in Opera sometimes DOM element ids show up here, ignore them
675
+ if ( /^qunit-test-output/.test( key ) ) {
676
+ continue;
677
+ }
678
+ config.pollution.push( key );
679
+ }
680
+ }
681
+ }
682
+ }
683
+
684
+ function checkPollution() {
685
+ var newGlobals,
686
+ deletedGlobals,
687
+ old = config.pollution;
688
+
689
+ saveGlobal();
690
+
691
+ newGlobals = diff( config.pollution, old );
692
+ if ( newGlobals.length > 0 ) {
693
+ QUnit.pushFailure( "Introduced global variable(s): " + newGlobals.join( ", " ) );
694
+ }
695
+
696
+ deletedGlobals = diff( old, config.pollution );
697
+ if ( deletedGlobals.length > 0 ) {
698
+ QUnit.pushFailure( "Deleted global variable(s): " + deletedGlobals.join( ", " ) );
699
+ }
700
+ }
701
+
702
+ // returns a new Array with the elements that are in a but not in b
703
+ function diff( a, b ) {
704
+ var i, j,
705
+ result = a.slice();
706
+
707
+ for ( i = 0; i < result.length; i++ ) {
708
+ for ( j = 0; j < b.length; j++ ) {
709
+ if ( result[ i ] === b[ j ] ) {
710
+ result.splice( i, 1 );
711
+ i--;
712
+ break;
713
+ }
714
+ }
715
+ }
716
+ return result;
717
+ }
718
+
719
+ function extend( a, b, undefOnly ) {
720
+ for ( var prop in b ) {
721
+ if ( hasOwn.call( b, prop ) ) {
722
+
723
+ // Avoid "Member not found" error in IE8 caused by messing with window.constructor
724
+ if ( !( prop === "constructor" && a === window ) ) {
725
+ if ( b[ prop ] === undefined ) {
726
+ delete a[ prop ];
727
+ } else if ( !( undefOnly && typeof a[ prop ] !== "undefined" ) ) {
728
+ a[ prop ] = b[ prop ];
729
+ }
730
+ }
731
+ }
732
+ }
733
+
734
+ return a;
735
+ }
736
+
737
+ function runLoggingCallbacks( key, args ) {
738
+ var i, l, callbacks;
739
+
740
+ callbacks = config.callbacks[ key ];
741
+ for ( i = 0, l = callbacks.length; i < l; i++ ) {
742
+ callbacks[ i ]( args );
743
+ }
744
+ }
745
+
746
+ // DEPRECATED: This will be removed on 2.0.0+
747
+ // This function verifies if the loggingCallbacks were modified by the user
748
+ // If so, it will restore it, assign the given callback and print a console warning
749
+ function verifyLoggingCallbacks() {
750
+ var loggingCallback, userCallback;
751
+
752
+ for ( loggingCallback in loggingCallbacks ) {
753
+ if ( QUnit[ loggingCallback ] !== loggingCallbacks[ loggingCallback ] ) {
754
+
755
+ userCallback = QUnit[ loggingCallback ];
756
+
757
+ // Restore the callback function
758
+ QUnit[ loggingCallback ] = loggingCallbacks[ loggingCallback ];
759
+
760
+ // Assign the deprecated given callback
761
+ QUnit[ loggingCallback ]( userCallback );
762
+
763
+ if ( window.console && window.console.warn ) {
764
+ window.console.warn(
765
+ "QUnit." + loggingCallback + " was replaced with a new value.\n" +
766
+ "Please, check out the documentation on how to apply logging callbacks.\n" +
767
+ "Reference: http://api.qunitjs.com/category/callbacks/"
768
+ );
769
+ }
770
+ }
771
+ }
772
+ }
773
+
774
+ // from jquery.js
775
+ function inArray( elem, array ) {
776
+ if ( array.indexOf ) {
777
+ return array.indexOf( elem );
778
+ }
779
+
780
+ for ( var i = 0, length = array.length; i < length; i++ ) {
781
+ if ( array[ i ] === elem ) {
782
+ return i;
783
+ }
784
+ }
785
+
786
+ return -1;
787
+ }
788
+
789
+ function Test( settings ) {
790
+ var i, l;
791
+
792
+ ++Test.count;
793
+
794
+ extend( this, settings );
795
+ this.assertions = [];
796
+ this.semaphore = 0;
797
+ this.usedAsync = false;
798
+ this.module = config.currentModule;
799
+ this.stack = sourceFromStacktrace( 3 );
800
+
801
+ // Register unique strings
802
+ for ( i = 0, l = this.module.tests; i < l.length; i++ ) {
803
+ if ( this.module.tests[ i ].name === this.testName ) {
804
+ this.testName += " ";
805
+ }
806
+ }
807
+
808
+ this.testId = generateHash( this.module.name, this.testName );
809
+
810
+ this.module.tests.push({
811
+ name: this.testName,
812
+ testId: this.testId
813
+ });
814
+
815
+ if ( settings.skip ) {
816
+
817
+ // Skipped tests will fully ignore any sent callback
818
+ this.callback = function() {};
819
+ this.async = false;
820
+ this.expected = 0;
821
+ } else {
822
+ this.assert = new Assert( this );
823
+ }
824
+ }
825
+
826
+ Test.count = 0;
827
+
828
+ Test.prototype = {
829
+ before: function() {
830
+ if (
831
+
832
+ // Emit moduleStart when we're switching from one module to another
833
+ this.module !== config.previousModule ||
834
+
835
+ // They could be equal (both undefined) but if the previousModule property doesn't
836
+ // yet exist it means this is the first test in a suite that isn't wrapped in a
837
+ // module, in which case we'll just emit a moduleStart event for 'undefined'.
838
+ // Without this, reporters can get testStart before moduleStart which is a problem.
839
+ !hasOwn.call( config, "previousModule" )
840
+ ) {
841
+ if ( hasOwn.call( config, "previousModule" ) ) {
842
+ runLoggingCallbacks( "moduleDone", {
843
+ name: config.previousModule.name,
844
+ tests: config.previousModule.tests,
845
+ failed: config.moduleStats.bad,
846
+ passed: config.moduleStats.all - config.moduleStats.bad,
847
+ total: config.moduleStats.all,
848
+ runtime: now() - config.moduleStats.started
849
+ });
850
+ }
851
+ config.previousModule = this.module;
852
+ config.moduleStats = { all: 0, bad: 0, started: now() };
853
+ runLoggingCallbacks( "moduleStart", {
854
+ name: this.module.name,
855
+ tests: this.module.tests
856
+ });
857
+ }
858
+
859
+ config.current = this;
860
+
861
+ this.testEnvironment = extend( {}, this.module.testEnvironment );
862
+ delete this.testEnvironment.beforeEach;
863
+ delete this.testEnvironment.afterEach;
864
+
865
+ this.started = now();
866
+ runLoggingCallbacks( "testStart", {
867
+ name: this.testName,
868
+ module: this.module.name,
869
+ testId: this.testId
870
+ });
871
+
872
+ if ( !config.pollution ) {
873
+ saveGlobal();
874
+ }
875
+ },
876
+
877
+ run: function() {
878
+ var promise;
879
+
880
+ config.current = this;
881
+
882
+ if ( this.async ) {
883
+ QUnit.stop();
884
+ }
885
+
886
+ this.callbackStarted = now();
887
+
888
+ if ( config.notrycatch ) {
889
+ promise = this.callback.call( this.testEnvironment, this.assert );
890
+ this.resolvePromise( promise );
891
+ return;
892
+ }
893
+
894
+ try {
895
+ promise = this.callback.call( this.testEnvironment, this.assert );
896
+ this.resolvePromise( promise );
897
+ } catch ( e ) {
898
+ this.pushFailure( "Died on test #" + ( this.assertions.length + 1 ) + " " +
899
+ this.stack + ": " + ( e.message || e ), extractStacktrace( e, 0 ) );
900
+
901
+ // else next test will carry the responsibility
902
+ saveGlobal();
903
+
904
+ // Restart the tests if they're blocking
905
+ if ( config.blocking ) {
906
+ QUnit.start();
907
+ }
908
+ }
909
+ },
910
+
911
+ after: function() {
912
+ checkPollution();
913
+ },
914
+
915
+ queueHook: function( hook, hookName ) {
916
+ var promise,
917
+ test = this;
918
+ return function runHook() {
919
+ config.current = test;
920
+ if ( config.notrycatch ) {
921
+ promise = hook.call( test.testEnvironment, test.assert );
922
+ test.resolvePromise( promise, hookName );
923
+ return;
924
+ }
925
+ try {
926
+ promise = hook.call( test.testEnvironment, test.assert );
927
+ test.resolvePromise( promise, hookName );
928
+ } catch ( error ) {
929
+ test.pushFailure( hookName + " failed on " + test.testName + ": " +
930
+ ( error.message || error ), extractStacktrace( error, 0 ) );
931
+ }
932
+ };
933
+ },
934
+
935
+ // Currently only used for module level hooks, can be used to add global level ones
936
+ hooks: function( handler ) {
937
+ var hooks = [];
938
+
939
+ // Hooks are ignored on skipped tests
940
+ if ( this.skip ) {
941
+ return hooks;
942
+ }
943
+
944
+ if ( this.module.testEnvironment &&
945
+ QUnit.objectType( this.module.testEnvironment[ handler ] ) === "function" ) {
946
+ hooks.push( this.queueHook( this.module.testEnvironment[ handler ], handler ) );
947
+ }
948
+
949
+ return hooks;
950
+ },
951
+
952
+ finish: function() {
953
+ config.current = this;
954
+ if ( config.requireExpects && this.expected === null ) {
955
+ this.pushFailure( "Expected number of assertions to be defined, but expect() was " +
956
+ "not called.", this.stack );
957
+ } else if ( this.expected !== null && this.expected !== this.assertions.length ) {
958
+ this.pushFailure( "Expected " + this.expected + " assertions, but " +
959
+ this.assertions.length + " were run", this.stack );
960
+ } else if ( this.expected === null && !this.assertions.length ) {
961
+ this.pushFailure( "Expected at least one assertion, but none were run - call " +
962
+ "expect(0) to accept zero assertions.", this.stack );
963
+ }
964
+
965
+ var i,
966
+ bad = 0;
967
+
968
+ this.runtime = now() - this.started;
969
+ config.stats.all += this.assertions.length;
970
+ config.moduleStats.all += this.assertions.length;
971
+
972
+ for ( i = 0; i < this.assertions.length; i++ ) {
973
+ if ( !this.assertions[ i ].result ) {
974
+ bad++;
975
+ config.stats.bad++;
976
+ config.moduleStats.bad++;
977
+ }
978
+ }
979
+
980
+ runLoggingCallbacks( "testDone", {
981
+ name: this.testName,
982
+ module: this.module.name,
983
+ skipped: !!this.skip,
984
+ failed: bad,
985
+ passed: this.assertions.length - bad,
986
+ total: this.assertions.length,
987
+ runtime: this.runtime,
988
+
989
+ // HTML Reporter use
990
+ assertions: this.assertions,
991
+ testId: this.testId,
992
+
993
+ // DEPRECATED: this property will be removed in 2.0.0, use runtime instead
994
+ duration: this.runtime
995
+ });
996
+
997
+ // QUnit.reset() is deprecated and will be replaced for a new
998
+ // fixture reset function on QUnit 2.0/2.1.
999
+ // It's still called here for backwards compatibility handling
1000
+ QUnit.reset();
1001
+
1002
+ config.current = undefined;
1003
+ },
1004
+
1005
+ queue: function() {
1006
+ var bad,
1007
+ test = this;
1008
+
1009
+ if ( !this.valid() ) {
1010
+ return;
1011
+ }
1012
+
1013
+ function run() {
1014
+
1015
+ // each of these can by async
1016
+ synchronize([
1017
+ function() {
1018
+ test.before();
1019
+ },
1020
+
1021
+ test.hooks( "beforeEach" ),
1022
+
1023
+ function() {
1024
+ test.run();
1025
+ },
1026
+
1027
+ test.hooks( "afterEach" ).reverse(),
1028
+
1029
+ function() {
1030
+ test.after();
1031
+ },
1032
+ function() {
1033
+ test.finish();
1034
+ }
1035
+ ]);
1036
+ }
1037
+
1038
+ // `bad` initialized at top of scope
1039
+ // defer when previous test run passed, if storage is available
1040
+ bad = QUnit.config.reorder && defined.sessionStorage &&
1041
+ +sessionStorage.getItem( "qunit-test-" + this.module.name + "-" + this.testName );
1042
+
1043
+ if ( bad ) {
1044
+ run();
1045
+ } else {
1046
+ synchronize( run, true );
1047
+ }
1048
+ },
1049
+
1050
+ push: function( result, actual, expected, message ) {
1051
+ var source,
1052
+ details = {
1053
+ module: this.module.name,
1054
+ name: this.testName,
1055
+ result: result,
1056
+ message: message,
1057
+ actual: actual,
1058
+ expected: expected,
1059
+ testId: this.testId,
1060
+ runtime: now() - this.started
1061
+ };
1062
+
1063
+ if ( !result ) {
1064
+ source = sourceFromStacktrace();
1065
+
1066
+ if ( source ) {
1067
+ details.source = source;
1068
+ }
1069
+ }
1070
+
1071
+ runLoggingCallbacks( "log", details );
1072
+
1073
+ this.assertions.push({
1074
+ result: !!result,
1075
+ message: message
1076
+ });
1077
+ },
1078
+
1079
+ pushFailure: function( message, source, actual ) {
1080
+ if ( !this instanceof Test ) {
1081
+ throw new Error( "pushFailure() assertion outside test context, was " +
1082
+ sourceFromStacktrace( 2 ) );
1083
+ }
1084
+
1085
+ var details = {
1086
+ module: this.module.name,
1087
+ name: this.testName,
1088
+ result: false,
1089
+ message: message || "error",
1090
+ actual: actual || null,
1091
+ testId: this.testId,
1092
+ runtime: now() - this.started
1093
+ };
1094
+
1095
+ if ( source ) {
1096
+ details.source = source;
1097
+ }
1098
+
1099
+ runLoggingCallbacks( "log", details );
1100
+
1101
+ this.assertions.push({
1102
+ result: false,
1103
+ message: message
1104
+ });
1105
+ },
1106
+
1107
+ resolvePromise: function( promise, phase ) {
1108
+ var then, message,
1109
+ test = this;
1110
+ if ( promise != null ) {
1111
+ then = promise.then;
1112
+ if ( QUnit.objectType( then ) === "function" ) {
1113
+ QUnit.stop();
1114
+ then.call(
1115
+ promise,
1116
+ QUnit.start,
1117
+ function( error ) {
1118
+ message = "Promise rejected " +
1119
+ ( !phase ? "during" : phase.replace( /Each$/, "" ) ) +
1120
+ " " + test.testName + ": " + ( error.message || error );
1121
+ test.pushFailure( message, extractStacktrace( error, 0 ) );
1122
+
1123
+ // else next test will carry the responsibility
1124
+ saveGlobal();
1125
+
1126
+ // Unblock
1127
+ QUnit.start();
1128
+ }
1129
+ );
1130
+ }
1131
+ }
1132
+ },
1133
+
1134
+ valid: function() {
1135
+ var include,
1136
+ filter = config.filter && config.filter.toLowerCase(),
1137
+ module = QUnit.urlParams.module && QUnit.urlParams.module.toLowerCase(),
1138
+ fullName = ( this.module.name + ": " + this.testName ).toLowerCase();
1139
+
1140
+ // Internally-generated tests are always valid
1141
+ if ( this.callback && this.callback.validTest ) {
1142
+ return true;
1143
+ }
1144
+
1145
+ if ( config.testId.length > 0 && inArray( this.testId, config.testId ) < 0 ) {
1146
+ return false;
1147
+ }
1148
+
1149
+ if ( module && ( !this.module.name || this.module.name.toLowerCase() !== module ) ) {
1150
+ return false;
1151
+ }
1152
+
1153
+ if ( !filter ) {
1154
+ return true;
1155
+ }
1156
+
1157
+ include = filter.charAt( 0 ) !== "!";
1158
+ if ( !include ) {
1159
+ filter = filter.slice( 1 );
1160
+ }
1161
+
1162
+ // If the filter matches, we need to honour include
1163
+ if ( fullName.indexOf( filter ) !== -1 ) {
1164
+ return include;
1165
+ }
1166
+
1167
+ // Otherwise, do the opposite
1168
+ return !include;
1169
+ }
1170
+
1171
+ };
1172
+
1173
+ // Resets the test setup. Useful for tests that modify the DOM.
1174
+ /*
1175
+ DEPRECATED: Use multiple tests instead of resetting inside a test.
1176
+ Use testStart or testDone for custom cleanup.
1177
+ This method will throw an error in 2.0, and will be removed in 2.1
1178
+ */
1179
+ QUnit.reset = function() {
1180
+
1181
+ // Return on non-browser environments
1182
+ // This is necessary to not break on node tests
1183
+ if ( typeof window === "undefined" ) {
1184
+ return;
1185
+ }
1186
+
1187
+ var fixture = defined.document && document.getElementById &&
1188
+ document.getElementById( "qunit-fixture" );
1189
+
1190
+ if ( fixture ) {
1191
+ fixture.innerHTML = config.fixture;
1192
+ }
1193
+ };
1194
+
1195
+ QUnit.pushFailure = function() {
1196
+ if ( !QUnit.config.current ) {
1197
+ throw new Error( "pushFailure() assertion outside test context, in " +
1198
+ sourceFromStacktrace( 2 ) );
1199
+ }
1200
+
1201
+ // Gets current test obj
1202
+ var currentTest = QUnit.config.current;
1203
+
1204
+ return currentTest.pushFailure.apply( currentTest, arguments );
1205
+ };
1206
+
1207
+ // Based on Java's String.hashCode, a simple but not
1208
+ // rigorously collision resistant hashing function
1209
+ function generateHash( module, testName ) {
1210
+ var hex,
1211
+ i = 0,
1212
+ hash = 0,
1213
+ str = module + "\x1C" + testName,
1214
+ len = str.length;
1215
+
1216
+ for ( ; i < len; i++ ) {
1217
+ hash = ( ( hash << 5 ) - hash ) + str.charCodeAt( i );
1218
+ hash |= 0;
1219
+ }
1220
+
1221
+ // Convert the possibly negative integer hash code into an 8 character hex string, which isn't
1222
+ // strictly necessary but increases user understanding that the id is a SHA-like hash
1223
+ hex = ( 0x100000000 + hash ).toString( 16 );
1224
+ if ( hex.length < 8 ) {
1225
+ hex = "0000000" + hex;
1226
+ }
1227
+
1228
+ return hex.slice( -8 );
1229
+ }
1230
+
1231
+ function Assert( testContext ) {
1232
+ this.test = testContext;
1233
+ }
1234
+
1235
+ // Assert helpers
1236
+ QUnit.assert = Assert.prototype = {
1237
+
1238
+ // Specify the number of expected assertions to guarantee that failed test
1239
+ // (no assertions are run at all) don't slip through.
1240
+ expect: function( asserts ) {
1241
+ if ( arguments.length === 1 ) {
1242
+ this.test.expected = asserts;
1243
+ } else {
1244
+ return this.test.expected;
1245
+ }
1246
+ },
1247
+
1248
+ // Increment this Test's semaphore counter, then return a single-use function that
1249
+ // decrements that counter a maximum of once.
1250
+ async: function() {
1251
+ var test = this.test,
1252
+ popped = false;
1253
+
1254
+ test.semaphore += 1;
1255
+ test.usedAsync = true;
1256
+ pauseProcessing();
1257
+
1258
+ return function done() {
1259
+ if ( !popped ) {
1260
+ test.semaphore -= 1;
1261
+ popped = true;
1262
+ resumeProcessing();
1263
+ } else {
1264
+ test.pushFailure( "Called the callback returned from `assert.async` more than once",
1265
+ sourceFromStacktrace( 2 ) );
1266
+ }
1267
+ };
1268
+ },
1269
+
1270
+ // Exports test.push() to the user API
1271
+ push: function( /* result, actual, expected, message */ ) {
1272
+ var assert = this,
1273
+ currentTest = ( assert instanceof Assert && assert.test ) || QUnit.config.current;
1274
+
1275
+ // Backwards compatibility fix.
1276
+ // Allows the direct use of global exported assertions and QUnit.assert.*
1277
+ // Although, it's use is not recommended as it can leak assertions
1278
+ // to other tests from async tests, because we only get a reference to the current test,
1279
+ // not exactly the test where assertion were intended to be called.
1280
+ if ( !currentTest ) {
1281
+ throw new Error( "assertion outside test context, in " + sourceFromStacktrace( 2 ) );
1282
+ }
1283
+
1284
+ if ( currentTest.usedAsync === true && currentTest.semaphore === 0 ) {
1285
+ currentTest.pushFailure( "Assertion after the final `assert.async` was resolved",
1286
+ sourceFromStacktrace( 2 ) );
1287
+
1288
+ // Allow this assertion to continue running anyway...
1289
+ }
1290
+
1291
+ if ( !( assert instanceof Assert ) ) {
1292
+ assert = currentTest.assert;
1293
+ }
1294
+ return assert.test.push.apply( assert.test, arguments );
1295
+ },
1296
+
1297
+ ok: function( result, message ) {
1298
+ message = message || ( result ? "okay" : "failed, expected argument to be truthy, was: " +
1299
+ QUnit.dump.parse( result ) );
1300
+ this.push( !!result, result, true, message );
1301
+ },
1302
+
1303
+ notOk: function( result, message ) {
1304
+ message = message || ( !result ? "okay" : "failed, expected argument to be falsy, was: " +
1305
+ QUnit.dump.parse( result ) );
1306
+ this.push( !result, result, false, message );
1307
+ },
1308
+
1309
+ equal: function( actual, expected, message ) {
1310
+ /*jshint eqeqeq:false */
1311
+ this.push( expected == actual, actual, expected, message );
1312
+ },
1313
+
1314
+ notEqual: function( actual, expected, message ) {
1315
+ /*jshint eqeqeq:false */
1316
+ this.push( expected != actual, actual, expected, message );
1317
+ },
1318
+
1319
+ propEqual: function( actual, expected, message ) {
1320
+ actual = objectValues( actual );
1321
+ expected = objectValues( expected );
1322
+ this.push( QUnit.equiv( actual, expected ), actual, expected, message );
1323
+ },
1324
+
1325
+ notPropEqual: function( actual, expected, message ) {
1326
+ actual = objectValues( actual );
1327
+ expected = objectValues( expected );
1328
+ this.push( !QUnit.equiv( actual, expected ), actual, expected, message );
1329
+ },
1330
+
1331
+ deepEqual: function( actual, expected, message ) {
1332
+ this.push( QUnit.equiv( actual, expected ), actual, expected, message );
1333
+ },
1334
+
1335
+ notDeepEqual: function( actual, expected, message ) {
1336
+ this.push( !QUnit.equiv( actual, expected ), actual, expected, message );
1337
+ },
1338
+
1339
+ strictEqual: function( actual, expected, message ) {
1340
+ this.push( expected === actual, actual, expected, message );
1341
+ },
1342
+
1343
+ notStrictEqual: function( actual, expected, message ) {
1344
+ this.push( expected !== actual, actual, expected, message );
1345
+ },
1346
+
1347
+ "throws": function( block, expected, message ) {
1348
+ var actual, expectedType,
1349
+ expectedOutput = expected,
1350
+ ok = false,
1351
+ currentTest = ( this instanceof Assert && this.test ) || QUnit.config.current;
1352
+
1353
+ // 'expected' is optional unless doing string comparison
1354
+ if ( message == null && typeof expected === "string" ) {
1355
+ message = expected;
1356
+ expected = null;
1357
+ }
1358
+
1359
+ currentTest.ignoreGlobalErrors = true;
1360
+ try {
1361
+ block.call( currentTest.testEnvironment );
1362
+ } catch (e) {
1363
+ actual = e;
1364
+ }
1365
+ currentTest.ignoreGlobalErrors = false;
1366
+
1367
+ if ( actual ) {
1368
+ expectedType = QUnit.objectType( expected );
1369
+
1370
+ // we don't want to validate thrown error
1371
+ if ( !expected ) {
1372
+ ok = true;
1373
+ expectedOutput = null;
1374
+
1375
+ // expected is a regexp
1376
+ } else if ( expectedType === "regexp" ) {
1377
+ ok = expected.test( errorString( actual ) );
1378
+
1379
+ // expected is a string
1380
+ } else if ( expectedType === "string" ) {
1381
+ ok = expected === errorString( actual );
1382
+
1383
+ // expected is a constructor, maybe an Error constructor
1384
+ } else if ( expectedType === "function" && actual instanceof expected ) {
1385
+ ok = true;
1386
+
1387
+ // expected is an Error object
1388
+ } else if ( expectedType === "object" ) {
1389
+ ok = actual instanceof expected.constructor &&
1390
+ actual.name === expected.name &&
1391
+ actual.message === expected.message;
1392
+
1393
+ // expected is a validation function which returns true if validation passed
1394
+ } else if ( expectedType === "function" && expected.call( {}, actual ) === true ) {
1395
+ expectedOutput = null;
1396
+ ok = true;
1397
+ }
1398
+ }
1399
+
1400
+ currentTest.assert.push( ok, actual, expectedOutput, message );
1401
+ }
1402
+ };
1403
+
1404
+ // Provide an alternative to assert.throws(), for enviroments that consider throws a reserved word
1405
+ // Known to us are: Closure Compiler, Narwhal
1406
+ (function() {
1407
+ /*jshint sub:true */
1408
+ Assert.prototype.raises = Assert.prototype[ "throws" ];
1409
+ }());
1410
+
1411
+ // Test for equality any JavaScript type.
1412
+ // Author: Philippe Rathé <prathe@gmail.com>
1413
+ QUnit.equiv = (function() {
1414
+
1415
+ // Call the o related callback with the given arguments.
1416
+ function bindCallbacks( o, callbacks, args ) {
1417
+ var prop = QUnit.objectType( o );
1418
+ if ( prop ) {
1419
+ if ( QUnit.objectType( callbacks[ prop ] ) === "function" ) {
1420
+ return callbacks[ prop ].apply( callbacks, args );
1421
+ } else {
1422
+ return callbacks[ prop ]; // or undefined
1423
+ }
1424
+ }
1425
+ }
1426
+
1427
+ // the real equiv function
1428
+ var innerEquiv,
1429
+
1430
+ // stack to decide between skip/abort functions
1431
+ callers = [],
1432
+
1433
+ // stack to avoiding loops from circular referencing
1434
+ parents = [],
1435
+ parentsB = [],
1436
+
1437
+ getProto = Object.getPrototypeOf || function( obj ) {
1438
+ /* jshint camelcase: false, proto: true */
1439
+ return obj.__proto__;
1440
+ },
1441
+ callbacks = (function() {
1442
+
1443
+ // for string, boolean, number and null
1444
+ function useStrictEquality( b, a ) {
1445
+
1446
+ /*jshint eqeqeq:false */
1447
+ if ( b instanceof a.constructor || a instanceof b.constructor ) {
1448
+
1449
+ // to catch short annotation VS 'new' annotation of a
1450
+ // declaration
1451
+ // e.g. var i = 1;
1452
+ // var j = new Number(1);
1453
+ return a == b;
1454
+ } else {
1455
+ return a === b;
1456
+ }
1457
+ }
1458
+
1459
+ return {
1460
+ "string": useStrictEquality,
1461
+ "boolean": useStrictEquality,
1462
+ "number": useStrictEquality,
1463
+ "null": useStrictEquality,
1464
+ "undefined": useStrictEquality,
1465
+
1466
+ "nan": function( b ) {
1467
+ return isNaN( b );
1468
+ },
1469
+
1470
+ "date": function( b, a ) {
1471
+ return QUnit.objectType( b ) === "date" && a.valueOf() === b.valueOf();
1472
+ },
1473
+
1474
+ "regexp": function( b, a ) {
1475
+ return QUnit.objectType( b ) === "regexp" &&
1476
+
1477
+ // the regex itself
1478
+ a.source === b.source &&
1479
+
1480
+ // and its modifiers
1481
+ a.global === b.global &&
1482
+
1483
+ // (gmi) ...
1484
+ a.ignoreCase === b.ignoreCase &&
1485
+ a.multiline === b.multiline &&
1486
+ a.sticky === b.sticky;
1487
+ },
1488
+
1489
+ // - skip when the property is a method of an instance (OOP)
1490
+ // - abort otherwise,
1491
+ // initial === would have catch identical references anyway
1492
+ "function": function() {
1493
+ var caller = callers[ callers.length - 1 ];
1494
+ return caller !== Object && typeof caller !== "undefined";
1495
+ },
1496
+
1497
+ "array": function( b, a ) {
1498
+ var i, j, len, loop, aCircular, bCircular;
1499
+
1500
+ // b could be an object literal here
1501
+ if ( QUnit.objectType( b ) !== "array" ) {
1502
+ return false;
1503
+ }
1504
+
1505
+ len = a.length;
1506
+ if ( len !== b.length ) {
1507
+ // safe and faster
1508
+ return false;
1509
+ }
1510
+
1511
+ // track reference to avoid circular references
1512
+ parents.push( a );
1513
+ parentsB.push( b );
1514
+ for ( i = 0; i < len; i++ ) {
1515
+ loop = false;
1516
+ for ( j = 0; j < parents.length; j++ ) {
1517
+ aCircular = parents[ j ] === a[ i ];
1518
+ bCircular = parentsB[ j ] === b[ i ];
1519
+ if ( aCircular || bCircular ) {
1520
+ if ( a[ i ] === b[ i ] || aCircular && bCircular ) {
1521
+ loop = true;
1522
+ } else {
1523
+ parents.pop();
1524
+ parentsB.pop();
1525
+ return false;
1526
+ }
1527
+ }
1528
+ }
1529
+ if ( !loop && !innerEquiv( a[ i ], b[ i ] ) ) {
1530
+ parents.pop();
1531
+ parentsB.pop();
1532
+ return false;
1533
+ }
1534
+ }
1535
+ parents.pop();
1536
+ parentsB.pop();
1537
+ return true;
1538
+ },
1539
+
1540
+ "object": function( b, a ) {
1541
+
1542
+ /*jshint forin:false */
1543
+ var i, j, loop, aCircular, bCircular,
1544
+ // Default to true
1545
+ eq = true,
1546
+ aProperties = [],
1547
+ bProperties = [];
1548
+
1549
+ // comparing constructors is more strict than using
1550
+ // instanceof
1551
+ if ( a.constructor !== b.constructor ) {
1552
+
1553
+ // Allow objects with no prototype to be equivalent to
1554
+ // objects with Object as their constructor.
1555
+ if ( !( ( getProto( a ) === null && getProto( b ) === Object.prototype ) ||
1556
+ ( getProto( b ) === null && getProto( a ) === Object.prototype ) ) ) {
1557
+ return false;
1558
+ }
1559
+ }
1560
+
1561
+ // stack constructor before traversing properties
1562
+ callers.push( a.constructor );
1563
+
1564
+ // track reference to avoid circular references
1565
+ parents.push( a );
1566
+ parentsB.push( b );
1567
+
1568
+ // be strict: don't ensure hasOwnProperty and go deep
1569
+ for ( i in a ) {
1570
+ loop = false;
1571
+ for ( j = 0; j < parents.length; j++ ) {
1572
+ aCircular = parents[ j ] === a[ i ];
1573
+ bCircular = parentsB[ j ] === b[ i ];
1574
+ if ( aCircular || bCircular ) {
1575
+ if ( a[ i ] === b[ i ] || aCircular && bCircular ) {
1576
+ loop = true;
1577
+ } else {
1578
+ eq = false;
1579
+ break;
1580
+ }
1581
+ }
1582
+ }
1583
+ aProperties.push( i );
1584
+ if ( !loop && !innerEquiv( a[ i ], b[ i ] ) ) {
1585
+ eq = false;
1586
+ break;
1587
+ }
1588
+ }
1589
+
1590
+ parents.pop();
1591
+ parentsB.pop();
1592
+ callers.pop(); // unstack, we are done
1593
+
1594
+ for ( i in b ) {
1595
+ bProperties.push( i ); // collect b's properties
1596
+ }
1597
+
1598
+ // Ensures identical properties name
1599
+ return eq && innerEquiv( aProperties.sort(), bProperties.sort() );
1600
+ }
1601
+ };
1602
+ }());
1603
+
1604
+ innerEquiv = function() { // can take multiple arguments
1605
+ var args = [].slice.apply( arguments );
1606
+ if ( args.length < 2 ) {
1607
+ return true; // end transition
1608
+ }
1609
+
1610
+ return ( (function( a, b ) {
1611
+ if ( a === b ) {
1612
+ return true; // catch the most you can
1613
+ } else if ( a === null || b === null || typeof a === "undefined" ||
1614
+ typeof b === "undefined" ||
1615
+ QUnit.objectType( a ) !== QUnit.objectType( b ) ) {
1616
+
1617
+ // don't lose time with error prone cases
1618
+ return false;
1619
+ } else {
1620
+ return bindCallbacks( a, callbacks, [ b, a ] );
1621
+ }
1622
+
1623
+ // apply transition with (1..n) arguments
1624
+ }( args[ 0 ], args[ 1 ] ) ) &&
1625
+ innerEquiv.apply( this, args.splice( 1, args.length - 1 ) ) );
1626
+ };
1627
+
1628
+ return innerEquiv;
1629
+ }());
1630
+
1631
+ // Based on jsDump by Ariel Flesler
1632
+ // http://flesler.blogspot.com/2008/05/jsdump-pretty-dump-of-any-javascript.html
1633
+ QUnit.dump = (function() {
1634
+ function quote( str ) {
1635
+ return "\"" + str.toString().replace( /"/g, "\\\"" ) + "\"";
1636
+ }
1637
+ function literal( o ) {
1638
+ return o + "";
1639
+ }
1640
+ function join( pre, arr, post ) {
1641
+ var s = dump.separator(),
1642
+ base = dump.indent(),
1643
+ inner = dump.indent( 1 );
1644
+ if ( arr.join ) {
1645
+ arr = arr.join( "," + s + inner );
1646
+ }
1647
+ if ( !arr ) {
1648
+ return pre + post;
1649
+ }
1650
+ return [ pre, inner + arr, base + post ].join( s );
1651
+ }
1652
+ function array( arr, stack ) {
1653
+ var i = arr.length,
1654
+ ret = new Array( i );
1655
+
1656
+ if ( dump.maxDepth && dump.depth > dump.maxDepth ) {
1657
+ return "[object Array]";
1658
+ }
1659
+
1660
+ this.up();
1661
+ while ( i-- ) {
1662
+ ret[ i ] = this.parse( arr[ i ], undefined, stack );
1663
+ }
1664
+ this.down();
1665
+ return join( "[", ret, "]" );
1666
+ }
1667
+
1668
+ var reName = /^function (\w+)/,
1669
+ dump = {
1670
+
1671
+ // objType is used mostly internally, you can fix a (custom) type in advance
1672
+ parse: function( obj, objType, stack ) {
1673
+ stack = stack || [];
1674
+ var res, parser, parserType,
1675
+ inStack = inArray( obj, stack );
1676
+
1677
+ if ( inStack !== -1 ) {
1678
+ return "recursion(" + ( inStack - stack.length ) + ")";
1679
+ }
1680
+
1681
+ objType = objType || this.typeOf( obj );
1682
+ parser = this.parsers[ objType ];
1683
+ parserType = typeof parser;
1684
+
1685
+ if ( parserType === "function" ) {
1686
+ stack.push( obj );
1687
+ res = parser.call( this, obj, stack );
1688
+ stack.pop();
1689
+ return res;
1690
+ }
1691
+ return ( parserType === "string" ) ? parser : this.parsers.error;
1692
+ },
1693
+ typeOf: function( obj ) {
1694
+ var type;
1695
+ if ( obj === null ) {
1696
+ type = "null";
1697
+ } else if ( typeof obj === "undefined" ) {
1698
+ type = "undefined";
1699
+ } else if ( QUnit.is( "regexp", obj ) ) {
1700
+ type = "regexp";
1701
+ } else if ( QUnit.is( "date", obj ) ) {
1702
+ type = "date";
1703
+ } else if ( QUnit.is( "function", obj ) ) {
1704
+ type = "function";
1705
+ } else if ( obj.setInterval !== undefined &&
1706
+ obj.document !== undefined &&
1707
+ obj.nodeType === undefined ) {
1708
+ type = "window";
1709
+ } else if ( obj.nodeType === 9 ) {
1710
+ type = "document";
1711
+ } else if ( obj.nodeType ) {
1712
+ type = "node";
1713
+ } else if (
1714
+
1715
+ // native arrays
1716
+ toString.call( obj ) === "[object Array]" ||
1717
+
1718
+ // NodeList objects
1719
+ ( typeof obj.length === "number" && obj.item !== undefined &&
1720
+ ( obj.length ? obj.item( 0 ) === obj[ 0 ] : ( obj.item( 0 ) === null &&
1721
+ obj[ 0 ] === undefined ) ) )
1722
+ ) {
1723
+ type = "array";
1724
+ } else if ( obj.constructor === Error.prototype.constructor ) {
1725
+ type = "error";
1726
+ } else {
1727
+ type = typeof obj;
1728
+ }
1729
+ return type;
1730
+ },
1731
+ separator: function() {
1732
+ return this.multiline ? this.HTML ? "<br />" : "\n" : this.HTML ? "&#160;" : " ";
1733
+ },
1734
+ // extra can be a number, shortcut for increasing-calling-decreasing
1735
+ indent: function( extra ) {
1736
+ if ( !this.multiline ) {
1737
+ return "";
1738
+ }
1739
+ var chr = this.indentChar;
1740
+ if ( this.HTML ) {
1741
+ chr = chr.replace( /\t/g, " " ).replace( / /g, "&#160;" );
1742
+ }
1743
+ return new Array( this.depth + ( extra || 0 ) ).join( chr );
1744
+ },
1745
+ up: function( a ) {
1746
+ this.depth += a || 1;
1747
+ },
1748
+ down: function( a ) {
1749
+ this.depth -= a || 1;
1750
+ },
1751
+ setParser: function( name, parser ) {
1752
+ this.parsers[ name ] = parser;
1753
+ },
1754
+ // The next 3 are exposed so you can use them
1755
+ quote: quote,
1756
+ literal: literal,
1757
+ join: join,
1758
+ //
1759
+ depth: 1,
1760
+ maxDepth: QUnit.config.maxDepth,
1761
+
1762
+ // This is the list of parsers, to modify them, use dump.setParser
1763
+ parsers: {
1764
+ window: "[Window]",
1765
+ document: "[Document]",
1766
+ error: function( error ) {
1767
+ return "Error(\"" + error.message + "\")";
1768
+ },
1769
+ unknown: "[Unknown]",
1770
+ "null": "null",
1771
+ "undefined": "undefined",
1772
+ "function": function( fn ) {
1773
+ var ret = "function",
1774
+
1775
+ // functions never have name in IE
1776
+ name = "name" in fn ? fn.name : ( reName.exec( fn ) || [] )[ 1 ];
1777
+
1778
+ if ( name ) {
1779
+ ret += " " + name;
1780
+ }
1781
+ ret += "( ";
1782
+
1783
+ ret = [ ret, dump.parse( fn, "functionArgs" ), "){" ].join( "" );
1784
+ return join( ret, dump.parse( fn, "functionCode" ), "}" );
1785
+ },
1786
+ array: array,
1787
+ nodelist: array,
1788
+ "arguments": array,
1789
+ object: function( map, stack ) {
1790
+ var keys, key, val, i, nonEnumerableProperties,
1791
+ ret = [];
1792
+
1793
+ if ( dump.maxDepth && dump.depth > dump.maxDepth ) {
1794
+ return "[object Object]";
1795
+ }
1796
+
1797
+ dump.up();
1798
+ keys = [];
1799
+ for ( key in map ) {
1800
+ keys.push( key );
1801
+ }
1802
+
1803
+ // Some properties are not always enumerable on Error objects.
1804
+ nonEnumerableProperties = [ "message", "name" ];
1805
+ for ( i in nonEnumerableProperties ) {
1806
+ key = nonEnumerableProperties[ i ];
1807
+ if ( key in map && inArray( key, keys ) < 0 ) {
1808
+ keys.push( key );
1809
+ }
1810
+ }
1811
+ keys.sort();
1812
+ for ( i = 0; i < keys.length; i++ ) {
1813
+ key = keys[ i ];
1814
+ val = map[ key ];
1815
+ ret.push( dump.parse( key, "key" ) + ": " +
1816
+ dump.parse( val, undefined, stack ) );
1817
+ }
1818
+ dump.down();
1819
+ return join( "{", ret, "}" );
1820
+ },
1821
+ node: function( node ) {
1822
+ var len, i, val,
1823
+ open = dump.HTML ? "&lt;" : "<",
1824
+ close = dump.HTML ? "&gt;" : ">",
1825
+ tag = node.nodeName.toLowerCase(),
1826
+ ret = open + tag,
1827
+ attrs = node.attributes;
1828
+
1829
+ if ( attrs ) {
1830
+ for ( i = 0, len = attrs.length; i < len; i++ ) {
1831
+ val = attrs[ i ].nodeValue;
1832
+
1833
+ // IE6 includes all attributes in .attributes, even ones not explicitly
1834
+ // set. Those have values like undefined, null, 0, false, "" or
1835
+ // "inherit".
1836
+ if ( val && val !== "inherit" ) {
1837
+ ret += " " + attrs[ i ].nodeName + "=" +
1838
+ dump.parse( val, "attribute" );
1839
+ }
1840
+ }
1841
+ }
1842
+ ret += close;
1843
+
1844
+ // Show content of TextNode or CDATASection
1845
+ if ( node.nodeType === 3 || node.nodeType === 4 ) {
1846
+ ret += node.nodeValue;
1847
+ }
1848
+
1849
+ return ret + open + "/" + tag + close;
1850
+ },
1851
+
1852
+ // function calls it internally, it's the arguments part of the function
1853
+ functionArgs: function( fn ) {
1854
+ var args,
1855
+ l = fn.length;
1856
+
1857
+ if ( !l ) {
1858
+ return "";
1859
+ }
1860
+
1861
+ args = new Array( l );
1862
+ while ( l-- ) {
1863
+
1864
+ // 97 is 'a'
1865
+ args[ l ] = String.fromCharCode( 97 + l );
1866
+ }
1867
+ return " " + args.join( ", " ) + " ";
1868
+ },
1869
+ // object calls it internally, the key part of an item in a map
1870
+ key: quote,
1871
+ // function calls it internally, it's the content of the function
1872
+ functionCode: "[code]",
1873
+ // node calls it internally, it's an html attribute value
1874
+ attribute: quote,
1875
+ string: quote,
1876
+ date: quote,
1877
+ regexp: literal,
1878
+ number: literal,
1879
+ "boolean": literal
1880
+ },
1881
+ // if true, entities are escaped ( <, >, \t, space and \n )
1882
+ HTML: false,
1883
+ // indentation unit
1884
+ indentChar: " ",
1885
+ // if true, items in a collection, are separated by a \n, else just a space.
1886
+ multiline: true
1887
+ };
1888
+
1889
+ return dump;
1890
+ }());
1891
+
1892
+ // back compat
1893
+ QUnit.jsDump = QUnit.dump;
1894
+
1895
+ // For browser, export only select globals
1896
+ if ( typeof window !== "undefined" ) {
1897
+
1898
+ // Deprecated
1899
+ // Extend assert methods to QUnit and Global scope through Backwards compatibility
1900
+ (function() {
1901
+ var i,
1902
+ assertions = Assert.prototype;
1903
+
1904
+ function applyCurrent( current ) {
1905
+ return function() {
1906
+ var assert = new Assert( QUnit.config.current );
1907
+ current.apply( assert, arguments );
1908
+ };
1909
+ }
1910
+
1911
+ for ( i in assertions ) {
1912
+ QUnit[ i ] = applyCurrent( assertions[ i ] );
1913
+ }
1914
+ })();
1915
+
1916
+ (function() {
1917
+ var i, l,
1918
+ keys = [
1919
+ "test",
1920
+ "module",
1921
+ "expect",
1922
+ "asyncTest",
1923
+ "start",
1924
+ "stop",
1925
+ "ok",
1926
+ "notOk",
1927
+ "equal",
1928
+ "notEqual",
1929
+ "propEqual",
1930
+ "notPropEqual",
1931
+ "deepEqual",
1932
+ "notDeepEqual",
1933
+ "strictEqual",
1934
+ "notStrictEqual",
1935
+ "throws"
1936
+ ];
1937
+
1938
+ for ( i = 0, l = keys.length; i < l; i++ ) {
1939
+ window[ keys[ i ] ] = QUnit[ keys[ i ] ];
1940
+ }
1941
+ })();
1942
+
1943
+ window.QUnit = QUnit;
1944
+ }
1945
+
1946
+ // For nodejs
1947
+ if ( typeof module !== "undefined" && module && module.exports ) {
1948
+ module.exports = QUnit;
1949
+
1950
+ // For consistency with CommonJS environments' exports
1951
+ module.exports.QUnit = QUnit;
1952
+ }
1953
+
1954
+ // For CommonJS with exports, but without module.exports, like Rhino
1955
+ if ( typeof exports !== "undefined" && exports ) {
1956
+ exports.QUnit = QUnit;
1957
+ }
1958
+
1959
+ if ( typeof define === "function" && define.amd ) {
1960
+ define( function() {
1961
+ return QUnit;
1962
+ } );
1963
+ QUnit.config.autostart = false;
1964
+ }
1965
+
1966
+ // Get a reference to the global object, like window in browsers
1967
+ }( (function() {
1968
+ return this;
1969
+ })() ));
1970
+
1971
+ /*istanbul ignore next */
1972
+ // jscs:disable maximumLineLength
1973
+ /*
1974
+ * This file is a modified version of google-diff-match-patch's JavaScript implementation
1975
+ * (https://code.google.com/p/google-diff-match-patch/source/browse/trunk/javascript/diff_match_patch_uncompressed.js),
1976
+ * modifications are licensed as more fully set forth in LICENSE.txt.
1977
+ *
1978
+ * The original source of google-diff-match-patch is attributable and licensed as follows:
1979
+ *
1980
+ * Copyright 2006 Google Inc.
1981
+ * http://code.google.com/p/google-diff-match-patch/
1982
+ *
1983
+ * Licensed under the Apache License, Version 2.0 (the "License");
1984
+ * you may not use this file except in compliance with the License.
1985
+ * You may obtain a copy of the License at
1986
+ *
1987
+ * http://www.apache.org/licenses/LICENSE-2.0
1988
+ *
1989
+ * Unless required by applicable law or agreed to in writing, software
1990
+ * distributed under the License is distributed on an "AS IS" BASIS,
1991
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
1992
+ * See the License for the specific language governing permissions and
1993
+ * limitations under the License.
1994
+ *
1995
+ * More Info:
1996
+ * https://code.google.com/p/google-diff-match-patch/
1997
+ *
1998
+ * Usage: QUnit.diff(expected, actual)
1999
+ *
2000
+ * QUnit.diff( "the quick brown fox jumped over", "the quick fox jumps over" ) === "the quick <del>brown </del> fox jump<ins>s</ins><del>ed</del over"
2001
+ */
2002
+ QUnit.diff = (function() {
2003
+
2004
+ function DiffMatchPatch() {
2005
+
2006
+ // Defaults.
2007
+ // Redefine these in your program to override the defaults.
2008
+
2009
+ // Number of seconds to map a diff before giving up (0 for infinity).
2010
+ this.DiffTimeout = 1.0;
2011
+ // Cost of an empty edit operation in terms of edit characters.
2012
+ this.DiffEditCost = 4;
2013
+ }
2014
+
2015
+ // DIFF FUNCTIONS
2016
+
2017
+ /**
2018
+ * The data structure representing a diff is an array of tuples:
2019
+ * [[DIFF_DELETE, 'Hello'], [DIFF_INSERT, 'Goodbye'], [DIFF_EQUAL, ' world.']]
2020
+ * which means: delete 'Hello', add 'Goodbye' and keep ' world.'
2021
+ */
2022
+ var DIFF_DELETE = -1,
2023
+ DIFF_INSERT = 1,
2024
+ DIFF_EQUAL = 0;
2025
+
2026
+ /**
2027
+ * Find the differences between two texts. Simplifies the problem by stripping
2028
+ * any common prefix or suffix off the texts before diffing.
2029
+ * @param {string} text1 Old string to be diffed.
2030
+ * @param {string} text2 New string to be diffed.
2031
+ * @param {boolean=} optChecklines Optional speedup flag. If present and false,
2032
+ * then don't run a line-level diff first to identify the changed areas.
2033
+ * Defaults to true, which does a faster, slightly less optimal diff.
2034
+ * @param {number} optDeadline Optional time when the diff should be complete
2035
+ * by. Used internally for recursive calls. Users should set DiffTimeout
2036
+ * instead.
2037
+ * @return {!Array.<!DiffMatchPatch.Diff>} Array of diff tuples.
2038
+ */
2039
+ DiffMatchPatch.prototype.DiffMain = function( text1, text2, optChecklines, optDeadline ) {
2040
+ var deadline, checklines, commonlength,
2041
+ commonprefix, commonsuffix, diffs;
2042
+ // Set a deadline by which time the diff must be complete.
2043
+ if ( typeof optDeadline === "undefined" ) {
2044
+ if ( this.DiffTimeout <= 0 ) {
2045
+ optDeadline = Number.MAX_VALUE;
2046
+ } else {
2047
+ optDeadline = ( new Date() ).getTime() + this.DiffTimeout * 1000;
2048
+ }
2049
+ }
2050
+ deadline = optDeadline;
2051
+
2052
+ // Check for null inputs.
2053
+ if ( text1 === null || text2 === null ) {
2054
+ throw new Error( "Null input. (DiffMain)" );
2055
+ }
2056
+
2057
+ // Check for equality (speedup).
2058
+ if ( text1 === text2 ) {
2059
+ if ( text1 ) {
2060
+ return [
2061
+ [ DIFF_EQUAL, text1 ]
2062
+ ];
2063
+ }
2064
+ return [];
2065
+ }
2066
+
2067
+ if ( typeof optChecklines === "undefined" ) {
2068
+ optChecklines = true;
2069
+ }
2070
+
2071
+ checklines = optChecklines;
2072
+
2073
+ // Trim off common prefix (speedup).
2074
+ commonlength = this.diffCommonPrefix( text1, text2 );
2075
+ commonprefix = text1.substring( 0, commonlength );
2076
+ text1 = text1.substring( commonlength );
2077
+ text2 = text2.substring( commonlength );
2078
+
2079
+ // Trim off common suffix (speedup).
2080
+ /////////
2081
+ commonlength = this.diffCommonSuffix( text1, text2 );
2082
+ commonsuffix = text1.substring( text1.length - commonlength );
2083
+ text1 = text1.substring( 0, text1.length - commonlength );
2084
+ text2 = text2.substring( 0, text2.length - commonlength );
2085
+
2086
+ // Compute the diff on the middle block.
2087
+ diffs = this.diffCompute( text1, text2, checklines, deadline );
2088
+
2089
+ // Restore the prefix and suffix.
2090
+ if ( commonprefix ) {
2091
+ diffs.unshift( [ DIFF_EQUAL, commonprefix ] );
2092
+ }
2093
+ if ( commonsuffix ) {
2094
+ diffs.push( [ DIFF_EQUAL, commonsuffix ] );
2095
+ }
2096
+ this.diffCleanupMerge( diffs );
2097
+ return diffs;
2098
+ };
2099
+
2100
+ /**
2101
+ * Reduce the number of edits by eliminating operationally trivial equalities.
2102
+ * @param {!Array.<!DiffMatchPatch.Diff>} diffs Array of diff tuples.
2103
+ */
2104
+ DiffMatchPatch.prototype.diffCleanupEfficiency = function( diffs ) {
2105
+ var changes, equalities, equalitiesLength, lastequality,
2106
+ pointer, preIns, preDel, postIns, postDel;
2107
+ changes = false;
2108
+ equalities = []; // Stack of indices where equalities are found.
2109
+ equalitiesLength = 0; // Keeping our own length var is faster in JS.
2110
+ /** @type {?string} */
2111
+ lastequality = null;
2112
+ // Always equal to diffs[equalities[equalitiesLength - 1]][1]
2113
+ pointer = 0; // Index of current position.
2114
+ // Is there an insertion operation before the last equality.
2115
+ preIns = false;
2116
+ // Is there a deletion operation before the last equality.
2117
+ preDel = false;
2118
+ // Is there an insertion operation after the last equality.
2119
+ postIns = false;
2120
+ // Is there a deletion operation after the last equality.
2121
+ postDel = false;
2122
+ while ( pointer < diffs.length ) {
2123
+ if ( diffs[ pointer ][ 0 ] === DIFF_EQUAL ) { // Equality found.
2124
+ if ( diffs[ pointer ][ 1 ].length < this.DiffEditCost && ( postIns || postDel ) ) {
2125
+ // Candidate found.
2126
+ equalities[ equalitiesLength++ ] = pointer;
2127
+ preIns = postIns;
2128
+ preDel = postDel;
2129
+ lastequality = diffs[ pointer ][ 1 ];
2130
+ } else {
2131
+ // Not a candidate, and can never become one.
2132
+ equalitiesLength = 0;
2133
+ lastequality = null;
2134
+ }
2135
+ postIns = postDel = false;
2136
+ } else { // An insertion or deletion.
2137
+ if ( diffs[ pointer ][ 0 ] === DIFF_DELETE ) {
2138
+ postDel = true;
2139
+ } else {
2140
+ postIns = true;
2141
+ }
2142
+ /*
2143
+ * Five types to be split:
2144
+ * <ins>A</ins><del>B</del>XY<ins>C</ins><del>D</del>
2145
+ * <ins>A</ins>X<ins>C</ins><del>D</del>
2146
+ * <ins>A</ins><del>B</del>X<ins>C</ins>
2147
+ * <ins>A</del>X<ins>C</ins><del>D</del>
2148
+ * <ins>A</ins><del>B</del>X<del>C</del>
2149
+ */
2150
+ if ( lastequality && ( ( preIns && preDel && postIns && postDel ) ||
2151
+ ( ( lastequality.length < this.DiffEditCost / 2 ) &&
2152
+ ( preIns + preDel + postIns + postDel ) === 3 ) ) ) {
2153
+ // Duplicate record.
2154
+ diffs.splice( equalities[equalitiesLength - 1], 0, [ DIFF_DELETE, lastequality ] );
2155
+ // Change second copy to insert.
2156
+ diffs[ equalities[ equalitiesLength - 1 ] + 1 ][ 0 ] = DIFF_INSERT;
2157
+ equalitiesLength--; // Throw away the equality we just deleted;
2158
+ lastequality = null;
2159
+ if (preIns && preDel) {
2160
+ // No changes made which could affect previous entry, keep going.
2161
+ postIns = postDel = true;
2162
+ equalitiesLength = 0;
2163
+ } else {
2164
+ equalitiesLength--; // Throw away the previous equality.
2165
+ pointer = equalitiesLength > 0 ? equalities[ equalitiesLength - 1 ] : -1;
2166
+ postIns = postDel = false;
2167
+ }
2168
+ changes = true;
2169
+ }
2170
+ }
2171
+ pointer++;
2172
+ }
2173
+
2174
+ if ( changes ) {
2175
+ this.diffCleanupMerge( diffs );
2176
+ }
2177
+ };
2178
+
2179
+ /**
2180
+ * Convert a diff array into a pretty HTML report.
2181
+ * @param {!Array.<!DiffMatchPatch.Diff>} diffs Array of diff tuples.
2182
+ * @param {integer} string to be beautified.
2183
+ * @return {string} HTML representation.
2184
+ */
2185
+ DiffMatchPatch.prototype.diffPrettyHtml = function( diffs ) {
2186
+ var op, data, x, html = [];
2187
+ for ( x = 0; x < diffs.length; x++ ) {
2188
+ op = diffs[x][0]; // Operation (insert, delete, equal)
2189
+ data = diffs[x][1]; // Text of change.
2190
+ switch ( op ) {
2191
+ case DIFF_INSERT:
2192
+ html[x] = "<ins>" + data + "</ins>";
2193
+ break;
2194
+ case DIFF_DELETE:
2195
+ html[x] = "<del>" + data + "</del>";
2196
+ break;
2197
+ case DIFF_EQUAL:
2198
+ html[x] = "<span>" + data + "</span>";
2199
+ break;
2200
+ }
2201
+ }
2202
+ return html.join("");
2203
+ };
2204
+
2205
+ /**
2206
+ * Determine the common prefix of two strings.
2207
+ * @param {string} text1 First string.
2208
+ * @param {string} text2 Second string.
2209
+ * @return {number} The number of characters common to the start of each
2210
+ * string.
2211
+ */
2212
+ DiffMatchPatch.prototype.diffCommonPrefix = function( text1, text2 ) {
2213
+ var pointermid, pointermax, pointermin, pointerstart;
2214
+ // Quick check for common null cases.
2215
+ if ( !text1 || !text2 || text1.charAt(0) !== text2.charAt(0) ) {
2216
+ return 0;
2217
+ }
2218
+ // Binary search.
2219
+ // Performance analysis: http://neil.fraser.name/news/2007/10/09/
2220
+ pointermin = 0;
2221
+ pointermax = Math.min( text1.length, text2.length );
2222
+ pointermid = pointermax;
2223
+ pointerstart = 0;
2224
+ while ( pointermin < pointermid ) {
2225
+ if ( text1.substring( pointerstart, pointermid ) === text2.substring( pointerstart, pointermid ) ) {
2226
+ pointermin = pointermid;
2227
+ pointerstart = pointermin;
2228
+ } else {
2229
+ pointermax = pointermid;
2230
+ }
2231
+ pointermid = Math.floor( ( pointermax - pointermin ) / 2 + pointermin );
2232
+ }
2233
+ return pointermid;
2234
+ };
2235
+
2236
+ /**
2237
+ * Determine the common suffix of two strings.
2238
+ * @param {string} text1 First string.
2239
+ * @param {string} text2 Second string.
2240
+ * @return {number} The number of characters common to the end of each string.
2241
+ */
2242
+ DiffMatchPatch.prototype.diffCommonSuffix = function( text1, text2 ) {
2243
+ var pointermid, pointermax, pointermin, pointerend;
2244
+ // Quick check for common null cases.
2245
+ if (!text1 || !text2 || text1.charAt(text1.length - 1) !== text2.charAt(text2.length - 1)) {
2246
+ return 0;
2247
+ }
2248
+ // Binary search.
2249
+ // Performance analysis: http://neil.fraser.name/news/2007/10/09/
2250
+ pointermin = 0;
2251
+ pointermax = Math.min(text1.length, text2.length);
2252
+ pointermid = pointermax;
2253
+ pointerend = 0;
2254
+ while ( pointermin < pointermid ) {
2255
+ if (text1.substring( text1.length - pointermid, text1.length - pointerend ) ===
2256
+ text2.substring( text2.length - pointermid, text2.length - pointerend ) ) {
2257
+ pointermin = pointermid;
2258
+ pointerend = pointermin;
2259
+ } else {
2260
+ pointermax = pointermid;
2261
+ }
2262
+ pointermid = Math.floor( ( pointermax - pointermin ) / 2 + pointermin );
2263
+ }
2264
+ return pointermid;
2265
+ };
2266
+
2267
+ /**
2268
+ * Find the differences between two texts. Assumes that the texts do not
2269
+ * have any common prefix or suffix.
2270
+ * @param {string} text1 Old string to be diffed.
2271
+ * @param {string} text2 New string to be diffed.
2272
+ * @param {boolean} checklines Speedup flag. If false, then don't run a
2273
+ * line-level diff first to identify the changed areas.
2274
+ * If true, then run a faster, slightly less optimal diff.
2275
+ * @param {number} deadline Time when the diff should be complete by.
2276
+ * @return {!Array.<!DiffMatchPatch.Diff>} Array of diff tuples.
2277
+ * @private
2278
+ */
2279
+ DiffMatchPatch.prototype.diffCompute = function( text1, text2, checklines, deadline ) {
2280
+ var diffs, longtext, shorttext, i, hm,
2281
+ text1A, text2A, text1B, text2B,
2282
+ midCommon, diffsA, diffsB;
2283
+
2284
+ if ( !text1 ) {
2285
+ // Just add some text (speedup).
2286
+ return [
2287
+ [ DIFF_INSERT, text2 ]
2288
+ ];
2289
+ }
2290
+
2291
+ if (!text2) {
2292
+ // Just delete some text (speedup).
2293
+ return [
2294
+ [ DIFF_DELETE, text1 ]
2295
+ ];
2296
+ }
2297
+
2298
+ longtext = text1.length > text2.length ? text1 : text2;
2299
+ shorttext = text1.length > text2.length ? text2 : text1;
2300
+ i = longtext.indexOf( shorttext );
2301
+ if ( i !== -1 ) {
2302
+ // Shorter text is inside the longer text (speedup).
2303
+ diffs = [
2304
+ [ DIFF_INSERT, longtext.substring( 0, i ) ],
2305
+ [ DIFF_EQUAL, shorttext ],
2306
+ [ DIFF_INSERT, longtext.substring( i + shorttext.length ) ]
2307
+ ];
2308
+ // Swap insertions for deletions if diff is reversed.
2309
+ if ( text1.length > text2.length ) {
2310
+ diffs[0][0] = diffs[2][0] = DIFF_DELETE;
2311
+ }
2312
+ return diffs;
2313
+ }
2314
+
2315
+ if ( shorttext.length === 1 ) {
2316
+ // Single character string.
2317
+ // After the previous speedup, the character can't be an equality.
2318
+ return [
2319
+ [ DIFF_DELETE, text1 ],
2320
+ [ DIFF_INSERT, text2 ]
2321
+ ];
2322
+ }
2323
+
2324
+ // Check to see if the problem can be split in two.
2325
+ hm = this.diffHalfMatch(text1, text2);
2326
+ if (hm) {
2327
+ // A half-match was found, sort out the return data.
2328
+ text1A = hm[0];
2329
+ text1B = hm[1];
2330
+ text2A = hm[2];
2331
+ text2B = hm[3];
2332
+ midCommon = hm[4];
2333
+ // Send both pairs off for separate processing.
2334
+ diffsA = this.DiffMain(text1A, text2A, checklines, deadline);
2335
+ diffsB = this.DiffMain(text1B, text2B, checklines, deadline);
2336
+ // Merge the results.
2337
+ return diffsA.concat([
2338
+ [ DIFF_EQUAL, midCommon ]
2339
+ ], diffsB);
2340
+ }
2341
+
2342
+ if (checklines && text1.length > 100 && text2.length > 100) {
2343
+ return this.diffLineMode(text1, text2, deadline);
2344
+ }
2345
+
2346
+ return this.diffBisect(text1, text2, deadline);
2347
+ };
2348
+
2349
+ /**
2350
+ * Do the two texts share a substring which is at least half the length of the
2351
+ * longer text?
2352
+ * This speedup can produce non-minimal diffs.
2353
+ * @param {string} text1 First string.
2354
+ * @param {string} text2 Second string.
2355
+ * @return {Array.<string>} Five element Array, containing the prefix of
2356
+ * text1, the suffix of text1, the prefix of text2, the suffix of
2357
+ * text2 and the common middle. Or null if there was no match.
2358
+ * @private
2359
+ */
2360
+ DiffMatchPatch.prototype.diffHalfMatch = function(text1, text2) {
2361
+ var longtext, shorttext, dmp,
2362
+ text1A, text2B, text2A, text1B, midCommon,
2363
+ hm1, hm2, hm;
2364
+ if (this.DiffTimeout <= 0) {
2365
+ // Don't risk returning a non-optimal diff if we have unlimited time.
2366
+ return null;
2367
+ }
2368
+ longtext = text1.length > text2.length ? text1 : text2;
2369
+ shorttext = text1.length > text2.length ? text2 : text1;
2370
+ if (longtext.length < 4 || shorttext.length * 2 < longtext.length) {
2371
+ return null; // Pointless.
2372
+ }
2373
+ dmp = this; // 'this' becomes 'window' in a closure.
2374
+
2375
+ /**
2376
+ * Does a substring of shorttext exist within longtext such that the substring
2377
+ * is at least half the length of longtext?
2378
+ * Closure, but does not reference any external variables.
2379
+ * @param {string} longtext Longer string.
2380
+ * @param {string} shorttext Shorter string.
2381
+ * @param {number} i Start index of quarter length substring within longtext.
2382
+ * @return {Array.<string>} Five element Array, containing the prefix of
2383
+ * longtext, the suffix of longtext, the prefix of shorttext, the suffix
2384
+ * of shorttext and the common middle. Or null if there was no match.
2385
+ * @private
2386
+ */
2387
+ function diffHalfMatchI(longtext, shorttext, i) {
2388
+ var seed, j, bestCommon, prefixLength, suffixLength,
2389
+ bestLongtextA, bestLongtextB, bestShorttextA, bestShorttextB;
2390
+ // Start with a 1/4 length substring at position i as a seed.
2391
+ seed = longtext.substring(i, i + Math.floor(longtext.length / 4));
2392
+ j = -1;
2393
+ bestCommon = "";
2394
+ while ((j = shorttext.indexOf(seed, j + 1)) !== -1) {
2395
+ prefixLength = dmp.diffCommonPrefix(longtext.substring(i),
2396
+ shorttext.substring(j));
2397
+ suffixLength = dmp.diffCommonSuffix(longtext.substring(0, i),
2398
+ shorttext.substring(0, j));
2399
+ if (bestCommon.length < suffixLength + prefixLength) {
2400
+ bestCommon = shorttext.substring(j - suffixLength, j) +
2401
+ shorttext.substring(j, j + prefixLength);
2402
+ bestLongtextA = longtext.substring(0, i - suffixLength);
2403
+ bestLongtextB = longtext.substring(i + prefixLength);
2404
+ bestShorttextA = shorttext.substring(0, j - suffixLength);
2405
+ bestShorttextB = shorttext.substring(j + prefixLength);
2406
+ }
2407
+ }
2408
+ if (bestCommon.length * 2 >= longtext.length) {
2409
+ return [ bestLongtextA, bestLongtextB,
2410
+ bestShorttextA, bestShorttextB, bestCommon
2411
+ ];
2412
+ } else {
2413
+ return null;
2414
+ }
2415
+ }
2416
+
2417
+ // First check if the second quarter is the seed for a half-match.
2418
+ hm1 = diffHalfMatchI(longtext, shorttext,
2419
+ Math.ceil(longtext.length / 4));
2420
+ // Check again based on the third quarter.
2421
+ hm2 = diffHalfMatchI(longtext, shorttext,
2422
+ Math.ceil(longtext.length / 2));
2423
+ if (!hm1 && !hm2) {
2424
+ return null;
2425
+ } else if (!hm2) {
2426
+ hm = hm1;
2427
+ } else if (!hm1) {
2428
+ hm = hm2;
2429
+ } else {
2430
+ // Both matched. Select the longest.
2431
+ hm = hm1[4].length > hm2[4].length ? hm1 : hm2;
2432
+ }
2433
+
2434
+ // A half-match was found, sort out the return data.
2435
+ text1A, text1B, text2A, text2B;
2436
+ if (text1.length > text2.length) {
2437
+ text1A = hm[0];
2438
+ text1B = hm[1];
2439
+ text2A = hm[2];
2440
+ text2B = hm[3];
2441
+ } else {
2442
+ text2A = hm[0];
2443
+ text2B = hm[1];
2444
+ text1A = hm[2];
2445
+ text1B = hm[3];
2446
+ }
2447
+ midCommon = hm[4];
2448
+ return [ text1A, text1B, text2A, text2B, midCommon ];
2449
+ };
2450
+
2451
+ /**
2452
+ * Do a quick line-level diff on both strings, then rediff the parts for
2453
+ * greater accuracy.
2454
+ * This speedup can produce non-minimal diffs.
2455
+ * @param {string} text1 Old string to be diffed.
2456
+ * @param {string} text2 New string to be diffed.
2457
+ * @param {number} deadline Time when the diff should be complete by.
2458
+ * @return {!Array.<!DiffMatchPatch.Diff>} Array of diff tuples.
2459
+ * @private
2460
+ */
2461
+ DiffMatchPatch.prototype.diffLineMode = function(text1, text2, deadline) {
2462
+ var a, diffs, linearray, pointer, countInsert,
2463
+ countDelete, textInsert, textDelete, j;
2464
+ // Scan the text on a line-by-line basis first.
2465
+ a = this.diffLinesToChars(text1, text2);
2466
+ text1 = a.chars1;
2467
+ text2 = a.chars2;
2468
+ linearray = a.lineArray;
2469
+
2470
+ diffs = this.DiffMain(text1, text2, false, deadline);
2471
+
2472
+ // Convert the diff back to original text.
2473
+ this.diffCharsToLines(diffs, linearray);
2474
+ // Eliminate freak matches (e.g. blank lines)
2475
+ this.diffCleanupSemantic(diffs);
2476
+
2477
+ // Rediff any replacement blocks, this time character-by-character.
2478
+ // Add a dummy entry at the end.
2479
+ diffs.push( [ DIFF_EQUAL, "" ] );
2480
+ pointer = 0;
2481
+ countDelete = 0;
2482
+ countInsert = 0;
2483
+ textDelete = "";
2484
+ textInsert = "";
2485
+ while (pointer < diffs.length) {
2486
+ switch ( diffs[pointer][0] ) {
2487
+ case DIFF_INSERT:
2488
+ countInsert++;
2489
+ textInsert += diffs[pointer][1];
2490
+ break;
2491
+ case DIFF_DELETE:
2492
+ countDelete++;
2493
+ textDelete += diffs[pointer][1];
2494
+ break;
2495
+ case DIFF_EQUAL:
2496
+ // Upon reaching an equality, check for prior redundancies.
2497
+ if (countDelete >= 1 && countInsert >= 1) {
2498
+ // Delete the offending records and add the merged ones.
2499
+ diffs.splice(pointer - countDelete - countInsert,
2500
+ countDelete + countInsert);
2501
+ pointer = pointer - countDelete - countInsert;
2502
+ a = this.DiffMain(textDelete, textInsert, false, deadline);
2503
+ for (j = a.length - 1; j >= 0; j--) {
2504
+ diffs.splice( pointer, 0, a[j] );
2505
+ }
2506
+ pointer = pointer + a.length;
2507
+ }
2508
+ countInsert = 0;
2509
+ countDelete = 0;
2510
+ textDelete = "";
2511
+ textInsert = "";
2512
+ break;
2513
+ }
2514
+ pointer++;
2515
+ }
2516
+ diffs.pop(); // Remove the dummy entry at the end.
2517
+
2518
+ return diffs;
2519
+ };
2520
+
2521
+ /**
2522
+ * Find the 'middle snake' of a diff, split the problem in two
2523
+ * and return the recursively constructed diff.
2524
+ * See Myers 1986 paper: An O(ND) Difference Algorithm and Its Variations.
2525
+ * @param {string} text1 Old string to be diffed.
2526
+ * @param {string} text2 New string to be diffed.
2527
+ * @param {number} deadline Time at which to bail if not yet complete.
2528
+ * @return {!Array.<!DiffMatchPatch.Diff>} Array of diff tuples.
2529
+ * @private
2530
+ */
2531
+ DiffMatchPatch.prototype.diffBisect = function(text1, text2, deadline) {
2532
+ var text1Length, text2Length, maxD, vOffset, vLength,
2533
+ v1, v2, x, delta, front, k1start, k1end, k2start,
2534
+ k2end, k2Offset, k1Offset, x1, x2, y1, y2, d, k1, k2;
2535
+ // Cache the text lengths to prevent multiple calls.
2536
+ text1Length = text1.length;
2537
+ text2Length = text2.length;
2538
+ maxD = Math.ceil((text1Length + text2Length) / 2);
2539
+ vOffset = maxD;
2540
+ vLength = 2 * maxD;
2541
+ v1 = new Array(vLength);
2542
+ v2 = new Array(vLength);
2543
+ // Setting all elements to -1 is faster in Chrome & Firefox than mixing
2544
+ // integers and undefined.
2545
+ for (x = 0; x < vLength; x++) {
2546
+ v1[x] = -1;
2547
+ v2[x] = -1;
2548
+ }
2549
+ v1[vOffset + 1] = 0;
2550
+ v2[vOffset + 1] = 0;
2551
+ delta = text1Length - text2Length;
2552
+ // If the total number of characters is odd, then the front path will collide
2553
+ // with the reverse path.
2554
+ front = (delta % 2 !== 0);
2555
+ // Offsets for start and end of k loop.
2556
+ // Prevents mapping of space beyond the grid.
2557
+ k1start = 0;
2558
+ k1end = 0;
2559
+ k2start = 0;
2560
+ k2end = 0;
2561
+ for (d = 0; d < maxD; d++) {
2562
+ // Bail out if deadline is reached.
2563
+ if ((new Date()).getTime() > deadline) {
2564
+ break;
2565
+ }
2566
+
2567
+ // Walk the front path one step.
2568
+ for (k1 = -d + k1start; k1 <= d - k1end; k1 += 2) {
2569
+ k1Offset = vOffset + k1;
2570
+ if ( k1 === -d || ( k1 !== d && v1[ k1Offset - 1 ] < v1[ k1Offset + 1 ] ) ) {
2571
+ x1 = v1[k1Offset + 1];
2572
+ } else {
2573
+ x1 = v1[k1Offset - 1] + 1;
2574
+ }
2575
+ y1 = x1 - k1;
2576
+ while (x1 < text1Length && y1 < text2Length &&
2577
+ text1.charAt(x1) === text2.charAt(y1)) {
2578
+ x1++;
2579
+ y1++;
2580
+ }
2581
+ v1[k1Offset] = x1;
2582
+ if (x1 > text1Length) {
2583
+ // Ran off the right of the graph.
2584
+ k1end += 2;
2585
+ } else if (y1 > text2Length) {
2586
+ // Ran off the bottom of the graph.
2587
+ k1start += 2;
2588
+ } else if (front) {
2589
+ k2Offset = vOffset + delta - k1;
2590
+ if (k2Offset >= 0 && k2Offset < vLength && v2[k2Offset] !== -1) {
2591
+ // Mirror x2 onto top-left coordinate system.
2592
+ x2 = text1Length - v2[k2Offset];
2593
+ if (x1 >= x2) {
2594
+ // Overlap detected.
2595
+ return this.diffBisectSplit(text1, text2, x1, y1, deadline);
2596
+ }
2597
+ }
2598
+ }
2599
+ }
2600
+
2601
+ // Walk the reverse path one step.
2602
+ for (k2 = -d + k2start; k2 <= d - k2end; k2 += 2) {
2603
+ k2Offset = vOffset + k2;
2604
+ if ( k2 === -d || (k2 !== d && v2[ k2Offset - 1 ] < v2[ k2Offset + 1 ] ) ) {
2605
+ x2 = v2[k2Offset + 1];
2606
+ } else {
2607
+ x2 = v2[k2Offset - 1] + 1;
2608
+ }
2609
+ y2 = x2 - k2;
2610
+ while (x2 < text1Length && y2 < text2Length &&
2611
+ text1.charAt(text1Length - x2 - 1) ===
2612
+ text2.charAt(text2Length - y2 - 1)) {
2613
+ x2++;
2614
+ y2++;
2615
+ }
2616
+ v2[k2Offset] = x2;
2617
+ if (x2 > text1Length) {
2618
+ // Ran off the left of the graph.
2619
+ k2end += 2;
2620
+ } else if (y2 > text2Length) {
2621
+ // Ran off the top of the graph.
2622
+ k2start += 2;
2623
+ } else if (!front) {
2624
+ k1Offset = vOffset + delta - k2;
2625
+ if (k1Offset >= 0 && k1Offset < vLength && v1[k1Offset] !== -1) {
2626
+ x1 = v1[k1Offset];
2627
+ y1 = vOffset + x1 - k1Offset;
2628
+ // Mirror x2 onto top-left coordinate system.
2629
+ x2 = text1Length - x2;
2630
+ if (x1 >= x2) {
2631
+ // Overlap detected.
2632
+ return this.diffBisectSplit(text1, text2, x1, y1, deadline);
2633
+ }
2634
+ }
2635
+ }
2636
+ }
2637
+ }
2638
+ // Diff took too long and hit the deadline or
2639
+ // number of diffs equals number of characters, no commonality at all.
2640
+ return [
2641
+ [ DIFF_DELETE, text1 ],
2642
+ [ DIFF_INSERT, text2 ]
2643
+ ];
2644
+ };
2645
+
2646
+ /**
2647
+ * Given the location of the 'middle snake', split the diff in two parts
2648
+ * and recurse.
2649
+ * @param {string} text1 Old string to be diffed.
2650
+ * @param {string} text2 New string to be diffed.
2651
+ * @param {number} x Index of split point in text1.
2652
+ * @param {number} y Index of split point in text2.
2653
+ * @param {number} deadline Time at which to bail if not yet complete.
2654
+ * @return {!Array.<!DiffMatchPatch.Diff>} Array of diff tuples.
2655
+ * @private
2656
+ */
2657
+ DiffMatchPatch.prototype.diffBisectSplit = function( text1, text2, x, y, deadline ) {
2658
+ var text1a, text1b, text2a, text2b, diffs, diffsb;
2659
+ text1a = text1.substring(0, x);
2660
+ text2a = text2.substring(0, y);
2661
+ text1b = text1.substring(x);
2662
+ text2b = text2.substring(y);
2663
+
2664
+ // Compute both diffs serially.
2665
+ diffs = this.DiffMain(text1a, text2a, false, deadline);
2666
+ diffsb = this.DiffMain(text1b, text2b, false, deadline);
2667
+
2668
+ return diffs.concat(diffsb);
2669
+ };
2670
+
2671
+ /**
2672
+ * Reduce the number of edits by eliminating semantically trivial equalities.
2673
+ * @param {!Array.<!DiffMatchPatch.Diff>} diffs Array of diff tuples.
2674
+ */
2675
+ DiffMatchPatch.prototype.diffCleanupSemantic = function(diffs) {
2676
+ var changes, equalities, equalitiesLength, lastequality,
2677
+ pointer, lengthInsertions2, lengthDeletions2, lengthInsertions1,
2678
+ lengthDeletions1, deletion, insertion, overlapLength1, overlapLength2;
2679
+ changes = false;
2680
+ equalities = []; // Stack of indices where equalities are found.
2681
+ equalitiesLength = 0; // Keeping our own length var is faster in JS.
2682
+ /** @type {?string} */
2683
+ lastequality = null;
2684
+ // Always equal to diffs[equalities[equalitiesLength - 1]][1]
2685
+ pointer = 0; // Index of current position.
2686
+ // Number of characters that changed prior to the equality.
2687
+ lengthInsertions1 = 0;
2688
+ lengthDeletions1 = 0;
2689
+ // Number of characters that changed after the equality.
2690
+ lengthInsertions2 = 0;
2691
+ lengthDeletions2 = 0;
2692
+ while (pointer < diffs.length) {
2693
+ if (diffs[pointer][0] === DIFF_EQUAL) { // Equality found.
2694
+ equalities[equalitiesLength++] = pointer;
2695
+ lengthInsertions1 = lengthInsertions2;
2696
+ lengthDeletions1 = lengthDeletions2;
2697
+ lengthInsertions2 = 0;
2698
+ lengthDeletions2 = 0;
2699
+ lastequality = diffs[pointer][1];
2700
+ } else { // An insertion or deletion.
2701
+ if (diffs[pointer][0] === DIFF_INSERT) {
2702
+ lengthInsertions2 += diffs[pointer][1].length;
2703
+ } else {
2704
+ lengthDeletions2 += diffs[pointer][1].length;
2705
+ }
2706
+ // Eliminate an equality that is smaller or equal to the edits on both
2707
+ // sides of it.
2708
+ if (lastequality && (lastequality.length <=
2709
+ Math.max(lengthInsertions1, lengthDeletions1)) &&
2710
+ (lastequality.length <= Math.max(lengthInsertions2,
2711
+ lengthDeletions2))) {
2712
+ // Duplicate record.
2713
+ diffs.splice( equalities[ equalitiesLength - 1 ], 0, [ DIFF_DELETE, lastequality ] );
2714
+ // Change second copy to insert.
2715
+ diffs[equalities[equalitiesLength - 1] + 1][0] = DIFF_INSERT;
2716
+ // Throw away the equality we just deleted.
2717
+ equalitiesLength--;
2718
+ // Throw away the previous equality (it needs to be reevaluated).
2719
+ equalitiesLength--;
2720
+ pointer = equalitiesLength > 0 ? equalities[equalitiesLength - 1] : -1;
2721
+ lengthInsertions1 = 0; // Reset the counters.
2722
+ lengthDeletions1 = 0;
2723
+ lengthInsertions2 = 0;
2724
+ lengthDeletions2 = 0;
2725
+ lastequality = null;
2726
+ changes = true;
2727
+ }
2728
+ }
2729
+ pointer++;
2730
+ }
2731
+
2732
+ // Normalize the diff.
2733
+ if (changes) {
2734
+ this.diffCleanupMerge(diffs);
2735
+ }
2736
+
2737
+ // Find any overlaps between deletions and insertions.
2738
+ // e.g: <del>abcxxx</del><ins>xxxdef</ins>
2739
+ // -> <del>abc</del>xxx<ins>def</ins>
2740
+ // e.g: <del>xxxabc</del><ins>defxxx</ins>
2741
+ // -> <ins>def</ins>xxx<del>abc</del>
2742
+ // Only extract an overlap if it is as big as the edit ahead or behind it.
2743
+ pointer = 1;
2744
+ while (pointer < diffs.length) {
2745
+ if (diffs[pointer - 1][0] === DIFF_DELETE &&
2746
+ diffs[pointer][0] === DIFF_INSERT) {
2747
+ deletion = diffs[pointer - 1][1];
2748
+ insertion = diffs[pointer][1];
2749
+ overlapLength1 = this.diffCommonOverlap(deletion, insertion);
2750
+ overlapLength2 = this.diffCommonOverlap(insertion, deletion);
2751
+ if (overlapLength1 >= overlapLength2) {
2752
+ if (overlapLength1 >= deletion.length / 2 ||
2753
+ overlapLength1 >= insertion.length / 2) {
2754
+ // Overlap found. Insert an equality and trim the surrounding edits.
2755
+ diffs.splice( pointer, 0, [ DIFF_EQUAL, insertion.substring( 0, overlapLength1 ) ] );
2756
+ diffs[pointer - 1][1] =
2757
+ deletion.substring(0, deletion.length - overlapLength1);
2758
+ diffs[pointer + 1][1] = insertion.substring(overlapLength1);
2759
+ pointer++;
2760
+ }
2761
+ } else {
2762
+ if (overlapLength2 >= deletion.length / 2 ||
2763
+ overlapLength2 >= insertion.length / 2) {
2764
+ // Reverse overlap found.
2765
+ // Insert an equality and swap and trim the surrounding edits.
2766
+ diffs.splice( pointer, 0, [ DIFF_EQUAL, deletion.substring( 0, overlapLength2 ) ] );
2767
+ diffs[pointer - 1][0] = DIFF_INSERT;
2768
+ diffs[pointer - 1][1] =
2769
+ insertion.substring(0, insertion.length - overlapLength2);
2770
+ diffs[pointer + 1][0] = DIFF_DELETE;
2771
+ diffs[pointer + 1][1] =
2772
+ deletion.substring(overlapLength2);
2773
+ pointer++;
2774
+ }
2775
+ }
2776
+ pointer++;
2777
+ }
2778
+ pointer++;
2779
+ }
2780
+ };
2781
+
2782
+ /**
2783
+ * Determine if the suffix of one string is the prefix of another.
2784
+ * @param {string} text1 First string.
2785
+ * @param {string} text2 Second string.
2786
+ * @return {number} The number of characters common to the end of the first
2787
+ * string and the start of the second string.
2788
+ * @private
2789
+ */
2790
+ DiffMatchPatch.prototype.diffCommonOverlap = function(text1, text2) {
2791
+ var text1Length, text2Length, textLength,
2792
+ best, length, pattern, found;
2793
+ // Cache the text lengths to prevent multiple calls.
2794
+ text1Length = text1.length;
2795
+ text2Length = text2.length;
2796
+ // Eliminate the null case.
2797
+ if (text1Length === 0 || text2Length === 0) {
2798
+ return 0;
2799
+ }
2800
+ // Truncate the longer string.
2801
+ if (text1Length > text2Length) {
2802
+ text1 = text1.substring(text1Length - text2Length);
2803
+ } else if (text1Length < text2Length) {
2804
+ text2 = text2.substring(0, text1Length);
2805
+ }
2806
+ textLength = Math.min(text1Length, text2Length);
2807
+ // Quick check for the worst case.
2808
+ if (text1 === text2) {
2809
+ return textLength;
2810
+ }
2811
+
2812
+ // Start by looking for a single character match
2813
+ // and increase length until no match is found.
2814
+ // Performance analysis: http://neil.fraser.name/news/2010/11/04/
2815
+ best = 0;
2816
+ length = 1;
2817
+ while (true) {
2818
+ pattern = text1.substring(textLength - length);
2819
+ found = text2.indexOf(pattern);
2820
+ if (found === -1) {
2821
+ return best;
2822
+ }
2823
+ length += found;
2824
+ if (found === 0 || text1.substring(textLength - length) ===
2825
+ text2.substring(0, length)) {
2826
+ best = length;
2827
+ length++;
2828
+ }
2829
+ }
2830
+ };
2831
+
2832
+ /**
2833
+ * Split two texts into an array of strings. Reduce the texts to a string of
2834
+ * hashes where each Unicode character represents one line.
2835
+ * @param {string} text1 First string.
2836
+ * @param {string} text2 Second string.
2837
+ * @return {{chars1: string, chars2: string, lineArray: !Array.<string>}}
2838
+ * An object containing the encoded text1, the encoded text2 and
2839
+ * the array of unique strings.
2840
+ * The zeroth element of the array of unique strings is intentionally blank.
2841
+ * @private
2842
+ */
2843
+ DiffMatchPatch.prototype.diffLinesToChars = function(text1, text2) {
2844
+ var lineArray, lineHash, chars1, chars2;
2845
+ lineArray = []; // e.g. lineArray[4] === 'Hello\n'
2846
+ lineHash = {}; // e.g. lineHash['Hello\n'] === 4
2847
+
2848
+ // '\x00' is a valid character, but various debuggers don't like it.
2849
+ // So we'll insert a junk entry to avoid generating a null character.
2850
+ lineArray[0] = "";
2851
+
2852
+ /**
2853
+ * Split a text into an array of strings. Reduce the texts to a string of
2854
+ * hashes where each Unicode character represents one line.
2855
+ * Modifies linearray and linehash through being a closure.
2856
+ * @param {string} text String to encode.
2857
+ * @return {string} Encoded string.
2858
+ * @private
2859
+ */
2860
+ function diffLinesToCharsMunge(text) {
2861
+ var chars, lineStart, lineEnd, lineArrayLength, line;
2862
+ chars = "";
2863
+ // Walk the text, pulling out a substring for each line.
2864
+ // text.split('\n') would would temporarily double our memory footprint.
2865
+ // Modifying text would create many large strings to garbage collect.
2866
+ lineStart = 0;
2867
+ lineEnd = -1;
2868
+ // Keeping our own length variable is faster than looking it up.
2869
+ lineArrayLength = lineArray.length;
2870
+ while (lineEnd < text.length - 1) {
2871
+ lineEnd = text.indexOf("\n", lineStart);
2872
+ if (lineEnd === -1) {
2873
+ lineEnd = text.length - 1;
2874
+ }
2875
+ line = text.substring(lineStart, lineEnd + 1);
2876
+ lineStart = lineEnd + 1;
2877
+
2878
+ if (lineHash.hasOwnProperty ? lineHash.hasOwnProperty(line) :
2879
+ (lineHash[line] !== undefined)) {
2880
+ chars += String.fromCharCode( lineHash[ line ] );
2881
+ } else {
2882
+ chars += String.fromCharCode(lineArrayLength);
2883
+ lineHash[line] = lineArrayLength;
2884
+ lineArray[lineArrayLength++] = line;
2885
+ }
2886
+ }
2887
+ return chars;
2888
+ }
2889
+
2890
+ chars1 = diffLinesToCharsMunge(text1);
2891
+ chars2 = diffLinesToCharsMunge(text2);
2892
+ return {
2893
+ chars1: chars1,
2894
+ chars2: chars2,
2895
+ lineArray: lineArray
2896
+ };
2897
+ };
2898
+
2899
+ /**
2900
+ * Rehydrate the text in a diff from a string of line hashes to real lines of
2901
+ * text.
2902
+ * @param {!Array.<!DiffMatchPatch.Diff>} diffs Array of diff tuples.
2903
+ * @param {!Array.<string>} lineArray Array of unique strings.
2904
+ * @private
2905
+ */
2906
+ DiffMatchPatch.prototype.diffCharsToLines = function( diffs, lineArray ) {
2907
+ var x, chars, text, y;
2908
+ for ( x = 0; x < diffs.length; x++ ) {
2909
+ chars = diffs[x][1];
2910
+ text = [];
2911
+ for ( y = 0; y < chars.length; y++ ) {
2912
+ text[y] = lineArray[chars.charCodeAt(y)];
2913
+ }
2914
+ diffs[x][1] = text.join("");
2915
+ }
2916
+ };
2917
+
2918
+ /**
2919
+ * Reorder and merge like edit sections. Merge equalities.
2920
+ * Any edit section can move as long as it doesn't cross an equality.
2921
+ * @param {!Array.<!DiffMatchPatch.Diff>} diffs Array of diff tuples.
2922
+ */
2923
+ DiffMatchPatch.prototype.diffCleanupMerge = function(diffs) {
2924
+ var pointer, countDelete, countInsert, textInsert, textDelete,
2925
+ commonlength, changes;
2926
+ diffs.push( [ DIFF_EQUAL, "" ] ); // Add a dummy entry at the end.
2927
+ pointer = 0;
2928
+ countDelete = 0;
2929
+ countInsert = 0;
2930
+ textDelete = "";
2931
+ textInsert = "";
2932
+ commonlength;
2933
+ while (pointer < diffs.length) {
2934
+ switch ( diffs[ pointer ][ 0 ] ) {
2935
+ case DIFF_INSERT:
2936
+ countInsert++;
2937
+ textInsert += diffs[pointer][1];
2938
+ pointer++;
2939
+ break;
2940
+ case DIFF_DELETE:
2941
+ countDelete++;
2942
+ textDelete += diffs[pointer][1];
2943
+ pointer++;
2944
+ break;
2945
+ case DIFF_EQUAL:
2946
+ // Upon reaching an equality, check for prior redundancies.
2947
+ if (countDelete + countInsert > 1) {
2948
+ if (countDelete !== 0 && countInsert !== 0) {
2949
+ // Factor out any common prefixies.
2950
+ commonlength = this.diffCommonPrefix(textInsert, textDelete);
2951
+ if (commonlength !== 0) {
2952
+ if ((pointer - countDelete - countInsert) > 0 &&
2953
+ diffs[pointer - countDelete - countInsert - 1][0] ===
2954
+ DIFF_EQUAL) {
2955
+ diffs[pointer - countDelete - countInsert - 1][1] +=
2956
+ textInsert.substring(0, commonlength);
2957
+ } else {
2958
+ diffs.splice( 0, 0, [ DIFF_EQUAL,
2959
+ textInsert.substring( 0, commonlength )
2960
+ ] );
2961
+ pointer++;
2962
+ }
2963
+ textInsert = textInsert.substring(commonlength);
2964
+ textDelete = textDelete.substring(commonlength);
2965
+ }
2966
+ // Factor out any common suffixies.
2967
+ commonlength = this.diffCommonSuffix(textInsert, textDelete);
2968
+ if (commonlength !== 0) {
2969
+ diffs[pointer][1] = textInsert.substring(textInsert.length -
2970
+ commonlength) + diffs[pointer][1];
2971
+ textInsert = textInsert.substring(0, textInsert.length -
2972
+ commonlength);
2973
+ textDelete = textDelete.substring(0, textDelete.length -
2974
+ commonlength);
2975
+ }
2976
+ }
2977
+ // Delete the offending records and add the merged ones.
2978
+ if (countDelete === 0) {
2979
+ diffs.splice( pointer - countInsert,
2980
+ countDelete + countInsert, [ DIFF_INSERT, textInsert ] );
2981
+ } else if (countInsert === 0) {
2982
+ diffs.splice( pointer - countDelete,
2983
+ countDelete + countInsert, [ DIFF_DELETE, textDelete ] );
2984
+ } else {
2985
+ diffs.splice( pointer - countDelete - countInsert,
2986
+ countDelete + countInsert, [ DIFF_DELETE, textDelete ], [ DIFF_INSERT, textInsert ] );
2987
+ }
2988
+ pointer = pointer - countDelete - countInsert +
2989
+ (countDelete ? 1 : 0) + (countInsert ? 1 : 0) + 1;
2990
+ } else if (pointer !== 0 && diffs[pointer - 1][0] === DIFF_EQUAL) {
2991
+ // Merge this equality with the previous one.
2992
+ diffs[pointer - 1][1] += diffs[pointer][1];
2993
+ diffs.splice(pointer, 1);
2994
+ } else {
2995
+ pointer++;
2996
+ }
2997
+ countInsert = 0;
2998
+ countDelete = 0;
2999
+ textDelete = "";
3000
+ textInsert = "";
3001
+ break;
3002
+ }
3003
+ }
3004
+ if (diffs[diffs.length - 1][1] === "") {
3005
+ diffs.pop(); // Remove the dummy entry at the end.
3006
+ }
3007
+
3008
+ // Second pass: look for single edits surrounded on both sides by equalities
3009
+ // which can be shifted sideways to eliminate an equality.
3010
+ // e.g: A<ins>BA</ins>C -> <ins>AB</ins>AC
3011
+ changes = false;
3012
+ pointer = 1;
3013
+ // Intentionally ignore the first and last element (don't need checking).
3014
+ while (pointer < diffs.length - 1) {
3015
+ if (diffs[pointer - 1][0] === DIFF_EQUAL &&
3016
+ diffs[pointer + 1][0] === DIFF_EQUAL) {
3017
+ // This is a single edit surrounded by equalities.
3018
+ if ( diffs[ pointer ][ 1 ].substring( diffs[ pointer ][ 1 ].length -
3019
+ diffs[ pointer - 1 ][ 1 ].length ) === diffs[ pointer - 1 ][ 1 ] ) {
3020
+ // Shift the edit over the previous equality.
3021
+ diffs[pointer][1] = diffs[pointer - 1][1] +
3022
+ diffs[pointer][1].substring(0, diffs[pointer][1].length -
3023
+ diffs[pointer - 1][1].length);
3024
+ diffs[pointer + 1][1] = diffs[pointer - 1][1] + diffs[pointer + 1][1];
3025
+ diffs.splice(pointer - 1, 1);
3026
+ changes = true;
3027
+ } else if ( diffs[ pointer ][ 1 ].substring( 0, diffs[ pointer + 1 ][ 1 ].length ) ===
3028
+ diffs[ pointer + 1 ][ 1 ] ) {
3029
+ // Shift the edit over the next equality.
3030
+ diffs[pointer - 1][1] += diffs[pointer + 1][1];
3031
+ diffs[pointer][1] =
3032
+ diffs[pointer][1].substring(diffs[pointer + 1][1].length) +
3033
+ diffs[pointer + 1][1];
3034
+ diffs.splice(pointer + 1, 1);
3035
+ changes = true;
3036
+ }
3037
+ }
3038
+ pointer++;
3039
+ }
3040
+ // If shifts were made, the diff needs reordering and another shift sweep.
3041
+ if (changes) {
3042
+ this.diffCleanupMerge(diffs);
3043
+ }
3044
+ };
3045
+
3046
+ return function(o, n) {
3047
+ var diff, output, text;
3048
+ diff = new DiffMatchPatch();
3049
+ output = diff.DiffMain(o, n);
3050
+ //console.log(output);
3051
+ diff.diffCleanupEfficiency(output);
3052
+ text = diff.diffPrettyHtml(output);
3053
+
3054
+ return text;
3055
+ };
3056
+ }());
3057
+ // jscs:enable
3058
+
3059
+ (function() {
3060
+
3061
+ // Deprecated QUnit.init - Ref #530
3062
+ // Re-initialize the configuration options
3063
+ QUnit.init = function() {
3064
+ var tests, banner, result, qunit,
3065
+ config = QUnit.config;
3066
+
3067
+ config.stats = { all: 0, bad: 0 };
3068
+ config.moduleStats = { all: 0, bad: 0 };
3069
+ config.started = 0;
3070
+ config.updateRate = 1000;
3071
+ config.blocking = false;
3072
+ config.autostart = true;
3073
+ config.autorun = false;
3074
+ config.filter = "";
3075
+ config.queue = [];
3076
+
3077
+ // Return on non-browser environments
3078
+ // This is necessary to not break on node tests
3079
+ if ( typeof window === "undefined" ) {
3080
+ return;
3081
+ }
3082
+
3083
+ qunit = id( "qunit" );
3084
+ if ( qunit ) {
3085
+ qunit.innerHTML =
3086
+ "<h1 id='qunit-header'>" + escapeText( document.title ) + "</h1>" +
3087
+ "<h2 id='qunit-banner'></h2>" +
3088
+ "<div id='qunit-testrunner-toolbar'></div>" +
3089
+ "<h2 id='qunit-userAgent'></h2>" +
3090
+ "<ol id='qunit-tests'></ol>";
3091
+ }
3092
+
3093
+ tests = id( "qunit-tests" );
3094
+ banner = id( "qunit-banner" );
3095
+ result = id( "qunit-testresult" );
3096
+
3097
+ if ( tests ) {
3098
+ tests.innerHTML = "";
3099
+ }
3100
+
3101
+ if ( banner ) {
3102
+ banner.className = "";
3103
+ }
3104
+
3105
+ if ( result ) {
3106
+ result.parentNode.removeChild( result );
3107
+ }
3108
+
3109
+ if ( tests ) {
3110
+ result = document.createElement( "p" );
3111
+ result.id = "qunit-testresult";
3112
+ result.className = "result";
3113
+ tests.parentNode.insertBefore( result, tests );
3114
+ result.innerHTML = "Running...<br />&#160;";
3115
+ }
3116
+ };
3117
+
3118
+ // Don't load the HTML Reporter on non-Browser environments
3119
+ if ( typeof window === "undefined" ) {
3120
+ return;
3121
+ }
3122
+
3123
+ var config = QUnit.config,
3124
+ hasOwn = Object.prototype.hasOwnProperty,
3125
+ defined = {
3126
+ document: window.document !== undefined,
3127
+ sessionStorage: (function() {
3128
+ var x = "qunit-test-string";
3129
+ try {
3130
+ sessionStorage.setItem( x, x );
3131
+ sessionStorage.removeItem( x );
3132
+ return true;
3133
+ } catch ( e ) {
3134
+ return false;
3135
+ }
3136
+ }())
3137
+ },
3138
+ modulesList = [];
3139
+
3140
+ /**
3141
+ * Escape text for attribute or text content.
3142
+ */
3143
+ function escapeText( s ) {
3144
+ if ( !s ) {
3145
+ return "";
3146
+ }
3147
+ s = s + "";
3148
+
3149
+ // Both single quotes and double quotes (for attributes)
3150
+ return s.replace( /['"<>&]/g, function( s ) {
3151
+ switch ( s ) {
3152
+ case "'":
3153
+ return "&#039;";
3154
+ case "\"":
3155
+ return "&quot;";
3156
+ case "<":
3157
+ return "&lt;";
3158
+ case ">":
3159
+ return "&gt;";
3160
+ case "&":
3161
+ return "&amp;";
3162
+ }
3163
+ });
3164
+ }
3165
+
3166
+ /**
3167
+ * @param {HTMLElement} elem
3168
+ * @param {string} type
3169
+ * @param {Function} fn
3170
+ */
3171
+ function addEvent( elem, type, fn ) {
3172
+ if ( elem.addEventListener ) {
3173
+
3174
+ // Standards-based browsers
3175
+ elem.addEventListener( type, fn, false );
3176
+ } else if ( elem.attachEvent ) {
3177
+
3178
+ // support: IE <9
3179
+ elem.attachEvent( "on" + type, function() {
3180
+ var event = window.event;
3181
+ if ( !event.target ) {
3182
+ event.target = event.srcElement || document;
3183
+ }
3184
+
3185
+ fn.call( elem, event );
3186
+ });
3187
+ }
3188
+ }
3189
+
3190
+ /**
3191
+ * @param {Array|NodeList} elems
3192
+ * @param {string} type
3193
+ * @param {Function} fn
3194
+ */
3195
+ function addEvents( elems, type, fn ) {
3196
+ var i = elems.length;
3197
+ while ( i-- ) {
3198
+ addEvent( elems[ i ], type, fn );
3199
+ }
3200
+ }
3201
+
3202
+ function hasClass( elem, name ) {
3203
+ return ( " " + elem.className + " " ).indexOf( " " + name + " " ) >= 0;
3204
+ }
3205
+
3206
+ function addClass( elem, name ) {
3207
+ if ( !hasClass( elem, name ) ) {
3208
+ elem.className += ( elem.className ? " " : "" ) + name;
3209
+ }
3210
+ }
3211
+
3212
+ function toggleClass( elem, name ) {
3213
+ if ( hasClass( elem, name ) ) {
3214
+ removeClass( elem, name );
3215
+ } else {
3216
+ addClass( elem, name );
3217
+ }
3218
+ }
3219
+
3220
+ function removeClass( elem, name ) {
3221
+ var set = " " + elem.className + " ";
3222
+
3223
+ // Class name may appear multiple times
3224
+ while ( set.indexOf( " " + name + " " ) >= 0 ) {
3225
+ set = set.replace( " " + name + " ", " " );
3226
+ }
3227
+
3228
+ // trim for prettiness
3229
+ elem.className = typeof set.trim === "function" ? set.trim() : set.replace( /^\s+|\s+$/g, "" );
3230
+ }
3231
+
3232
+ function id( name ) {
3233
+ return defined.document && document.getElementById && document.getElementById( name );
3234
+ }
3235
+
3236
+ function getUrlConfigHtml() {
3237
+ var i, j, val,
3238
+ escaped, escapedTooltip,
3239
+ selection = false,
3240
+ len = config.urlConfig.length,
3241
+ urlConfigHtml = "";
3242
+
3243
+ for ( i = 0; i < len; i++ ) {
3244
+ val = config.urlConfig[ i ];
3245
+ if ( typeof val === "string" ) {
3246
+ val = {
3247
+ id: val,
3248
+ label: val
3249
+ };
3250
+ }
3251
+
3252
+ escaped = escapeText( val.id );
3253
+ escapedTooltip = escapeText( val.tooltip );
3254
+
3255
+ if ( config[ val.id ] === undefined ) {
3256
+ config[ val.id ] = QUnit.urlParams[ val.id ];
3257
+ }
3258
+
3259
+ if ( !val.value || typeof val.value === "string" ) {
3260
+ urlConfigHtml += "<input id='qunit-urlconfig-" + escaped +
3261
+ "' name='" + escaped + "' type='checkbox'" +
3262
+ ( val.value ? " value='" + escapeText( val.value ) + "'" : "" ) +
3263
+ ( config[ val.id ] ? " checked='checked'" : "" ) +
3264
+ " title='" + escapedTooltip + "' /><label for='qunit-urlconfig-" + escaped +
3265
+ "' title='" + escapedTooltip + "'>" + val.label + "</label>";
3266
+ } else {
3267
+ urlConfigHtml += "<label for='qunit-urlconfig-" + escaped +
3268
+ "' title='" + escapedTooltip + "'>" + val.label +
3269
+ ": </label><select id='qunit-urlconfig-" + escaped +
3270
+ "' name='" + escaped + "' title='" + escapedTooltip + "'><option></option>";
3271
+
3272
+ if ( QUnit.is( "array", val.value ) ) {
3273
+ for ( j = 0; j < val.value.length; j++ ) {
3274
+ escaped = escapeText( val.value[ j ] );
3275
+ urlConfigHtml += "<option value='" + escaped + "'" +
3276
+ ( config[ val.id ] === val.value[ j ] ?
3277
+ ( selection = true ) && " selected='selected'" : "" ) +
3278
+ ">" + escaped + "</option>";
3279
+ }
3280
+ } else {
3281
+ for ( j in val.value ) {
3282
+ if ( hasOwn.call( val.value, j ) ) {
3283
+ urlConfigHtml += "<option value='" + escapeText( j ) + "'" +
3284
+ ( config[ val.id ] === j ?
3285
+ ( selection = true ) && " selected='selected'" : "" ) +
3286
+ ">" + escapeText( val.value[ j ] ) + "</option>";
3287
+ }
3288
+ }
3289
+ }
3290
+ if ( config[ val.id ] && !selection ) {
3291
+ escaped = escapeText( config[ val.id ] );
3292
+ urlConfigHtml += "<option value='" + escaped +
3293
+ "' selected='selected' disabled='disabled'>" + escaped + "</option>";
3294
+ }
3295
+ urlConfigHtml += "</select>";
3296
+ }
3297
+ }
3298
+
3299
+ return urlConfigHtml;
3300
+ }
3301
+
3302
+ // Handle "click" events on toolbar checkboxes and "change" for select menus.
3303
+ // Updates the URL with the new state of `config.urlConfig` values.
3304
+ function toolbarChanged() {
3305
+ var updatedUrl, value,
3306
+ field = this,
3307
+ params = {};
3308
+
3309
+ // Detect if field is a select menu or a checkbox
3310
+ if ( "selectedIndex" in field ) {
3311
+ value = field.options[ field.selectedIndex ].value || undefined;
3312
+ } else {
3313
+ value = field.checked ? ( field.defaultValue || true ) : undefined;
3314
+ }
3315
+
3316
+ params[ field.name ] = value;
3317
+ updatedUrl = setUrl( params );
3318
+
3319
+ if ( "hidepassed" === field.name && "replaceState" in window.history ) {
3320
+ config[ field.name ] = value || false;
3321
+ if ( value ) {
3322
+ addClass( id( "qunit-tests" ), "hidepass" );
3323
+ } else {
3324
+ removeClass( id( "qunit-tests" ), "hidepass" );
3325
+ }
3326
+
3327
+ // It is not necessary to refresh the whole page
3328
+ window.history.replaceState( null, "", updatedUrl );
3329
+ } else {
3330
+ window.location = updatedUrl;
3331
+ }
3332
+ }
3333
+
3334
+ function setUrl( params ) {
3335
+ var key,
3336
+ querystring = "?";
3337
+
3338
+ params = QUnit.extend( QUnit.extend( {}, QUnit.urlParams ), params );
3339
+
3340
+ for ( key in params ) {
3341
+ if ( hasOwn.call( params, key ) ) {
3342
+ if ( params[ key ] === undefined ) {
3343
+ continue;
3344
+ }
3345
+ querystring += encodeURIComponent( key );
3346
+ if ( params[ key ] !== true ) {
3347
+ querystring += "=" + encodeURIComponent( params[ key ] );
3348
+ }
3349
+ querystring += "&";
3350
+ }
3351
+ }
3352
+ return location.protocol + "//" + location.host +
3353
+ location.pathname + querystring.slice( 0, -1 );
3354
+ }
3355
+
3356
+ function applyUrlParams() {
3357
+ var selectedModule,
3358
+ modulesList = id( "qunit-modulefilter" ),
3359
+ filter = id( "qunit-filter-input" ).value;
3360
+
3361
+ selectedModule = modulesList ?
3362
+ decodeURIComponent( modulesList.options[ modulesList.selectedIndex ].value ) :
3363
+ undefined;
3364
+
3365
+ window.location = setUrl({
3366
+ module: ( selectedModule === "" ) ? undefined : selectedModule,
3367
+ filter: ( filter === "" ) ? undefined : filter,
3368
+
3369
+ // Remove testId filter
3370
+ testId: undefined
3371
+ });
3372
+ }
3373
+
3374
+ function toolbarUrlConfigContainer() {
3375
+ var urlConfigContainer = document.createElement( "span" );
3376
+
3377
+ urlConfigContainer.innerHTML = getUrlConfigHtml();
3378
+ addClass( urlConfigContainer, "qunit-url-config" );
3379
+
3380
+ // For oldIE support:
3381
+ // * Add handlers to the individual elements instead of the container
3382
+ // * Use "click" instead of "change" for checkboxes
3383
+ addEvents( urlConfigContainer.getElementsByTagName( "input" ), "click", toolbarChanged );
3384
+ addEvents( urlConfigContainer.getElementsByTagName( "select" ), "change", toolbarChanged );
3385
+
3386
+ return urlConfigContainer;
3387
+ }
3388
+
3389
+ function toolbarLooseFilter() {
3390
+ var filter = document.createElement( "form" ),
3391
+ label = document.createElement( "label" ),
3392
+ input = document.createElement( "input" ),
3393
+ button = document.createElement( "button" );
3394
+
3395
+ addClass( filter, "qunit-filter" );
3396
+
3397
+ label.innerHTML = "Filter: ";
3398
+
3399
+ input.type = "text";
3400
+ input.value = config.filter || "";
3401
+ input.name = "filter";
3402
+ input.id = "qunit-filter-input";
3403
+
3404
+ button.innerHTML = "Go";
3405
+
3406
+ label.appendChild( input );
3407
+
3408
+ filter.appendChild( label );
3409
+ filter.appendChild( button );
3410
+ addEvent( filter, "submit", function( ev ) {
3411
+ applyUrlParams();
3412
+
3413
+ if ( ev && ev.preventDefault ) {
3414
+ ev.preventDefault();
3415
+ }
3416
+
3417
+ return false;
3418
+ });
3419
+
3420
+ return filter;
3421
+ }
3422
+
3423
+ function toolbarModuleFilterHtml() {
3424
+ var i,
3425
+ moduleFilterHtml = "";
3426
+
3427
+ if ( !modulesList.length ) {
3428
+ return false;
3429
+ }
3430
+
3431
+ modulesList.sort(function( a, b ) {
3432
+ return a.localeCompare( b );
3433
+ });
3434
+
3435
+ moduleFilterHtml += "<label for='qunit-modulefilter'>Module: </label>" +
3436
+ "<select id='qunit-modulefilter' name='modulefilter'><option value='' " +
3437
+ ( QUnit.urlParams.module === undefined ? "selected='selected'" : "" ) +
3438
+ ">< All Modules ></option>";
3439
+
3440
+ for ( i = 0; i < modulesList.length; i++ ) {
3441
+ moduleFilterHtml += "<option value='" +
3442
+ escapeText( encodeURIComponent( modulesList[ i ] ) ) + "' " +
3443
+ ( QUnit.urlParams.module === modulesList[ i ] ? "selected='selected'" : "" ) +
3444
+ ">" + escapeText( modulesList[ i ] ) + "</option>";
3445
+ }
3446
+ moduleFilterHtml += "</select>";
3447
+
3448
+ return moduleFilterHtml;
3449
+ }
3450
+
3451
+ function toolbarModuleFilter() {
3452
+ var toolbar = id( "qunit-testrunner-toolbar" ),
3453
+ moduleFilter = document.createElement( "span" ),
3454
+ moduleFilterHtml = toolbarModuleFilterHtml();
3455
+
3456
+ if ( !toolbar || !moduleFilterHtml ) {
3457
+ return false;
3458
+ }
3459
+
3460
+ moduleFilter.setAttribute( "id", "qunit-modulefilter-container" );
3461
+ moduleFilter.innerHTML = moduleFilterHtml;
3462
+
3463
+ addEvent( moduleFilter.lastChild, "change", applyUrlParams );
3464
+
3465
+ toolbar.appendChild( moduleFilter );
3466
+ }
3467
+
3468
+ function appendToolbar() {
3469
+ var toolbar = id( "qunit-testrunner-toolbar" );
3470
+
3471
+ if ( toolbar ) {
3472
+ toolbar.appendChild( toolbarUrlConfigContainer() );
3473
+ toolbar.appendChild( toolbarLooseFilter() );
3474
+ }
3475
+ }
3476
+
3477
+ function appendHeader() {
3478
+ var header = id( "qunit-header" );
3479
+
3480
+ if ( header ) {
3481
+ header.innerHTML = "<a href='" +
3482
+ setUrl({ filter: undefined, module: undefined, testId: undefined }) +
3483
+ "'>" + header.innerHTML + "</a> ";
3484
+ }
3485
+ }
3486
+
3487
+ function appendBanner() {
3488
+ var banner = id( "qunit-banner" );
3489
+
3490
+ if ( banner ) {
3491
+ banner.className = "";
3492
+ }
3493
+ }
3494
+
3495
+ function appendTestResults() {
3496
+ var tests = id( "qunit-tests" ),
3497
+ result = id( "qunit-testresult" );
3498
+
3499
+ if ( result ) {
3500
+ result.parentNode.removeChild( result );
3501
+ }
3502
+
3503
+ if ( tests ) {
3504
+ tests.innerHTML = "";
3505
+ result = document.createElement( "p" );
3506
+ result.id = "qunit-testresult";
3507
+ result.className = "result";
3508
+ tests.parentNode.insertBefore( result, tests );
3509
+ result.innerHTML = "Running...<br />&#160;";
3510
+ }
3511
+ }
3512
+
3513
+ function storeFixture() {
3514
+ var fixture = id( "qunit-fixture" );
3515
+ if ( fixture ) {
3516
+ config.fixture = fixture.innerHTML;
3517
+ }
3518
+ }
3519
+
3520
+ function appendUserAgent() {
3521
+ var userAgent = id( "qunit-userAgent" );
3522
+
3523
+ if ( userAgent ) {
3524
+ userAgent.innerHTML = "";
3525
+ userAgent.appendChild(
3526
+ document.createTextNode(
3527
+ "QUnit " + QUnit.version + "; " + navigator.userAgent
3528
+ )
3529
+ );
3530
+ }
3531
+ }
3532
+
3533
+ function appendTestsList( modules ) {
3534
+ var i, l, x, z, test, moduleObj;
3535
+
3536
+ for ( i = 0, l = modules.length; i < l; i++ ) {
3537
+ moduleObj = modules[ i ];
3538
+
3539
+ if ( moduleObj.name ) {
3540
+ modulesList.push( moduleObj.name );
3541
+ }
3542
+
3543
+ for ( x = 0, z = moduleObj.tests.length; x < z; x++ ) {
3544
+ test = moduleObj.tests[ x ];
3545
+
3546
+ appendTest( test.name, test.testId, moduleObj.name );
3547
+ }
3548
+ }
3549
+ }
3550
+
3551
+ function appendTest( name, testId, moduleName ) {
3552
+ var title, rerunTrigger, testBlock, assertList,
3553
+ tests = id( "qunit-tests" );
3554
+
3555
+ if ( !tests ) {
3556
+ return;
3557
+ }
3558
+
3559
+ title = document.createElement( "strong" );
3560
+ title.innerHTML = getNameHtml( name, moduleName );
3561
+
3562
+ rerunTrigger = document.createElement( "a" );
3563
+ rerunTrigger.innerHTML = "Rerun";
3564
+ rerunTrigger.href = setUrl({ testId: testId });
3565
+
3566
+ testBlock = document.createElement( "li" );
3567
+ testBlock.appendChild( title );
3568
+ testBlock.appendChild( rerunTrigger );
3569
+ testBlock.id = "qunit-test-output-" + testId;
3570
+
3571
+ assertList = document.createElement( "ol" );
3572
+ assertList.className = "qunit-assert-list";
3573
+
3574
+ testBlock.appendChild( assertList );
3575
+
3576
+ tests.appendChild( testBlock );
3577
+ }
3578
+
3579
+ // HTML Reporter initialization and load
3580
+ QUnit.begin(function( details ) {
3581
+ var qunit = id( "qunit" );
3582
+
3583
+ // Fixture is the only one necessary to run without the #qunit element
3584
+ storeFixture();
3585
+
3586
+ if ( qunit ) {
3587
+ qunit.innerHTML =
3588
+ "<h1 id='qunit-header'>" + escapeText( document.title ) + "</h1>" +
3589
+ "<h2 id='qunit-banner'></h2>" +
3590
+ "<div id='qunit-testrunner-toolbar'></div>" +
3591
+ "<h2 id='qunit-userAgent'></h2>" +
3592
+ "<ol id='qunit-tests'></ol>";
3593
+ }
3594
+
3595
+ appendHeader();
3596
+ appendBanner();
3597
+ appendTestResults();
3598
+ appendUserAgent();
3599
+ appendToolbar();
3600
+ appendTestsList( details.modules );
3601
+ toolbarModuleFilter();
3602
+
3603
+ if ( qunit && config.hidepassed ) {
3604
+ addClass( qunit.lastChild, "hidepass" );
3605
+ }
3606
+ });
3607
+
3608
+ QUnit.done(function( details ) {
3609
+ var i, key,
3610
+ banner = id( "qunit-banner" ),
3611
+ tests = id( "qunit-tests" ),
3612
+ html = [
3613
+ "Tests completed in ",
3614
+ details.runtime,
3615
+ " milliseconds.<br />",
3616
+ "<span class='passed'>",
3617
+ details.passed,
3618
+ "</span> assertions of <span class='total'>",
3619
+ details.total,
3620
+ "</span> passed, <span class='failed'>",
3621
+ details.failed,
3622
+ "</span> failed."
3623
+ ].join( "" );
3624
+
3625
+ if ( banner ) {
3626
+ banner.className = details.failed ? "qunit-fail" : "qunit-pass";
3627
+ }
3628
+
3629
+ if ( tests ) {
3630
+ id( "qunit-testresult" ).innerHTML = html;
3631
+ }
3632
+
3633
+ if ( config.altertitle && defined.document && document.title ) {
3634
+
3635
+ // show ✖ for good, ✔ for bad suite result in title
3636
+ // use escape sequences in case file gets loaded with non-utf-8-charset
3637
+ document.title = [
3638
+ ( details.failed ? "\u2716" : "\u2714" ),
3639
+ document.title.replace( /^[\u2714\u2716] /i, "" )
3640
+ ].join( " " );
3641
+ }
3642
+
3643
+ // clear own sessionStorage items if all tests passed
3644
+ if ( config.reorder && defined.sessionStorage && details.failed === 0 ) {
3645
+ for ( i = 0; i < sessionStorage.length; i++ ) {
3646
+ key = sessionStorage.key( i++ );
3647
+ if ( key.indexOf( "qunit-test-" ) === 0 ) {
3648
+ sessionStorage.removeItem( key );
3649
+ }
3650
+ }
3651
+ }
3652
+
3653
+ // scroll back to top to show results
3654
+ if ( config.scrolltop && window.scrollTo ) {
3655
+ window.scrollTo( 0, 0 );
3656
+ }
3657
+ });
3658
+
3659
+ function getNameHtml( name, module ) {
3660
+ var nameHtml = "";
3661
+
3662
+ if ( module ) {
3663
+ nameHtml = "<span class='module-name'>" + escapeText( module ) + "</span>: ";
3664
+ }
3665
+
3666
+ nameHtml += "<span class='test-name'>" + escapeText( name ) + "</span>";
3667
+
3668
+ return nameHtml;
3669
+ }
3670
+
3671
+ QUnit.testStart(function( details ) {
3672
+ var running, testBlock, bad;
3673
+
3674
+ testBlock = id( "qunit-test-output-" + details.testId );
3675
+ if ( testBlock ) {
3676
+ testBlock.className = "running";
3677
+ } else {
3678
+
3679
+ // Report later registered tests
3680
+ appendTest( details.name, details.testId, details.module );
3681
+ }
3682
+
3683
+ running = id( "qunit-testresult" );
3684
+ if ( running ) {
3685
+ bad = QUnit.config.reorder && defined.sessionStorage &&
3686
+ +sessionStorage.getItem( "qunit-test-" + details.module + "-" + details.name );
3687
+
3688
+ running.innerHTML = ( bad ?
3689
+ "Rerunning previously failed test: <br />" :
3690
+ "Running: <br />" ) +
3691
+ getNameHtml( details.name, details.module );
3692
+ }
3693
+
3694
+ });
3695
+
3696
+ QUnit.log(function( details ) {
3697
+ var assertList, assertLi,
3698
+ message, expected, actual,
3699
+ testItem = id( "qunit-test-output-" + details.testId );
3700
+
3701
+ if ( !testItem ) {
3702
+ return;
3703
+ }
3704
+
3705
+ message = escapeText( details.message ) || ( details.result ? "okay" : "failed" );
3706
+ message = "<span class='test-message'>" + message + "</span>";
3707
+ message += "<span class='runtime'>@ " + details.runtime + " ms</span>";
3708
+
3709
+ // pushFailure doesn't provide details.expected
3710
+ // when it calls, it's implicit to also not show expected and diff stuff
3711
+ // Also, we need to check details.expected existence, as it can exist and be undefined
3712
+ if ( !details.result && hasOwn.call( details, "expected" ) ) {
3713
+ expected = escapeText( QUnit.dump.parse( details.expected ) );
3714
+ actual = escapeText( QUnit.dump.parse( details.actual ) );
3715
+ message += "<table><tr class='test-expected'><th>Expected: </th><td><pre>" +
3716
+ expected +
3717
+ "</pre></td></tr>";
3718
+
3719
+ if ( actual !== expected ) {
3720
+ message += "<tr class='test-actual'><th>Result: </th><td><pre>" +
3721
+ actual + "</pre></td></tr>" +
3722
+ "<tr class='test-diff'><th>Diff: </th><td><pre>" +
3723
+ QUnit.diff( expected, actual ) + "</pre></td></tr>";
3724
+ } else {
3725
+ if ( expected.indexOf( "[object Array]" ) !== -1 ||
3726
+ expected.indexOf( "[object Object]" ) !== -1 ) {
3727
+ message += "<tr class='test-message'><th>Message: </th><td>" +
3728
+ "Diff suppressed as the depth of object is more than current max depth (" +
3729
+ QUnit.config.maxDepth + ").<p>Hint: Use <code>QUnit.dump.maxDepth</code> to " +
3730
+ " run with a higher max depth or <a href='" + setUrl({ maxDepth: -1 }) + "'>" +
3731
+ "Rerun</a> without max depth.</p></td></tr>";
3732
+ }
3733
+ }
3734
+
3735
+ if ( details.source ) {
3736
+ message += "<tr class='test-source'><th>Source: </th><td><pre>" +
3737
+ escapeText( details.source ) + "</pre></td></tr>";
3738
+ }
3739
+
3740
+ message += "</table>";
3741
+
3742
+ // this occours when pushFailure is set and we have an extracted stack trace
3743
+ } else if ( !details.result && details.source ) {
3744
+ message += "<table>" +
3745
+ "<tr class='test-source'><th>Source: </th><td><pre>" +
3746
+ escapeText( details.source ) + "</pre></td></tr>" +
3747
+ "</table>";
3748
+ }
3749
+
3750
+ assertList = testItem.getElementsByTagName( "ol" )[ 0 ];
3751
+
3752
+ assertLi = document.createElement( "li" );
3753
+ assertLi.className = details.result ? "pass" : "fail";
3754
+ assertLi.innerHTML = message;
3755
+ assertList.appendChild( assertLi );
3756
+ });
3757
+
3758
+ QUnit.testDone(function( details ) {
3759
+ var testTitle, time, testItem, assertList,
3760
+ good, bad, testCounts, skipped,
3761
+ tests = id( "qunit-tests" );
3762
+
3763
+ if ( !tests ) {
3764
+ return;
3765
+ }
3766
+
3767
+ testItem = id( "qunit-test-output-" + details.testId );
3768
+
3769
+ assertList = testItem.getElementsByTagName( "ol" )[ 0 ];
3770
+
3771
+ good = details.passed;
3772
+ bad = details.failed;
3773
+
3774
+ // store result when possible
3775
+ if ( config.reorder && defined.sessionStorage ) {
3776
+ if ( bad ) {
3777
+ sessionStorage.setItem( "qunit-test-" + details.module + "-" + details.name, bad );
3778
+ } else {
3779
+ sessionStorage.removeItem( "qunit-test-" + details.module + "-" + details.name );
3780
+ }
3781
+ }
3782
+
3783
+ if ( bad === 0 ) {
3784
+ addClass( assertList, "qunit-collapsed" );
3785
+ }
3786
+
3787
+ // testItem.firstChild is the test name
3788
+ testTitle = testItem.firstChild;
3789
+
3790
+ testCounts = bad ?
3791
+ "<b class='failed'>" + bad + "</b>, " + "<b class='passed'>" + good + "</b>, " :
3792
+ "";
3793
+
3794
+ testTitle.innerHTML += " <b class='counts'>(" + testCounts +
3795
+ details.assertions.length + ")</b>";
3796
+
3797
+ if ( details.skipped ) {
3798
+ testItem.className = "skipped";
3799
+ skipped = document.createElement( "em" );
3800
+ skipped.className = "qunit-skipped-label";
3801
+ skipped.innerHTML = "skipped";
3802
+ testItem.insertBefore( skipped, testTitle );
3803
+ } else {
3804
+ addEvent( testTitle, "click", function() {
3805
+ toggleClass( assertList, "qunit-collapsed" );
3806
+ });
3807
+
3808
+ testItem.className = bad ? "fail" : "pass";
3809
+
3810
+ time = document.createElement( "span" );
3811
+ time.className = "runtime";
3812
+ time.innerHTML = details.runtime + " ms";
3813
+ testItem.insertBefore( time, assertList );
3814
+ }
3815
+ });
3816
+
3817
+ if ( defined.document ) {
3818
+ if ( document.readyState === "complete" ) {
3819
+ QUnit.load();
3820
+ } else {
3821
+ addEvent( window, "load", QUnit.load );
3822
+ }
3823
+ } else {
3824
+ config.pageLoaded = true;
3825
+ config.autorun = true;
3826
+ }
3827
+
3828
+ })();