coreui-rails 0.2.6 → 1.0.1

Sign up to get free protection for your applications and to get access to all the features.
Files changed (680) hide show
  1. checksums.yaml +4 -4
  2. data/.gitignore +4 -1
  3. data/.rbenv-gemsets +1 -0
  4. data/.rubocop.yml +5 -0
  5. data/Gemfile +0 -1
  6. data/Gemfile.lock +71 -2
  7. data/README.md +45 -8
  8. data/Rakefile +3 -2
  9. data/coreui-rails.gemspec +6 -1
  10. data/lib/coreui_rails.rb +2 -4
  11. data/lib/coreui_rails/engine.rb +13 -0
  12. data/lib/coreui_rails/version.rb +1 -1
  13. data/main.js +0 -0
  14. data/manifest.yml +12 -0
  15. data/package.json +20 -0
  16. data/vendor/assets/flags/1x1/ad.svg +152 -0
  17. data/vendor/assets/flags/1x1/ae.svg +6 -0
  18. data/vendor/assets/flags/1x1/af.svg +83 -0
  19. data/vendor/assets/flags/1x1/ag.svg +14 -0
  20. data/vendor/assets/flags/1x1/ai.svg +767 -0
  21. data/vendor/assets/flags/1x1/al.svg +5 -0
  22. data/vendor/assets/flags/1x1/am.svg +5 -0
  23. data/vendor/assets/flags/1x1/ao.svg +13 -0
  24. data/vendor/assets/flags/1x1/aq.svg +13 -0
  25. data/vendor/assets/flags/1x1/ar.svg +31 -0
  26. data/vendor/assets/flags/1x1/as.svg +33 -0
  27. data/vendor/assets/flags/1x1/at.svg +6 -0
  28. data/vendor/assets/flags/1x1/au.svg +9 -0
  29. data/vendor/assets/flags/1x1/aw.svg +186 -0
  30. data/vendor/assets/flags/1x1/ax.svg +18 -0
  31. data/vendor/assets/flags/1x1/az.svg +8 -0
  32. data/vendor/assets/flags/1x1/ba.svg +12 -0
  33. data/vendor/assets/flags/1x1/bb.svg +6 -0
  34. data/vendor/assets/flags/1x1/bd.svg +4 -0
  35. data/vendor/assets/flags/1x1/be.svg +7 -0
  36. data/vendor/assets/flags/1x1/bf.svg +7 -0
  37. data/vendor/assets/flags/1x1/bg.svg +7 -0
  38. data/vendor/assets/flags/1x1/bh.svg +11 -0
  39. data/vendor/assets/flags/1x1/bi.svg +15 -0
  40. data/vendor/assets/flags/1x1/bj.svg +14 -0
  41. data/vendor/assets/flags/1x1/bl.svg +7 -0
  42. data/vendor/assets/flags/1x1/bm.svg +98 -0
  43. data/vendor/assets/flags/1x1/bn.svg +36 -0
  44. data/vendor/assets/flags/1x1/bo.svg +685 -0
  45. data/vendor/assets/flags/1x1/bq.svg +5 -0
  46. data/vendor/assets/flags/1x1/br.svg +45 -0
  47. data/vendor/assets/flags/1x1/bs.svg +13 -0
  48. data/vendor/assets/flags/1x1/bt.svg +89 -0
  49. data/vendor/assets/flags/1x1/bv.svg +13 -0
  50. data/vendor/assets/flags/1x1/bw.svg +7 -0
  51. data/vendor/assets/flags/1x1/by.svg +59 -0
  52. data/vendor/assets/flags/1x1/bz.svg +146 -0
  53. data/vendor/assets/flags/1x1/ca.svg +4 -0
  54. data/vendor/assets/flags/1x1/cc.svg +19 -0
  55. data/vendor/assets/flags/1x1/cd.svg +12 -0
  56. data/vendor/assets/flags/1x1/cf.svg +15 -0
  57. data/vendor/assets/flags/1x1/cg.svg +12 -0
  58. data/vendor/assets/flags/1x1/ch.svg +9 -0
  59. data/vendor/assets/flags/1x1/ci.svg +7 -0
  60. data/vendor/assets/flags/1x1/ck.svg +9 -0
  61. data/vendor/assets/flags/1x1/cl.svg +13 -0
  62. data/vendor/assets/flags/1x1/cm.svg +15 -0
  63. data/vendor/assets/flags/1x1/cn.svg +11 -0
  64. data/vendor/assets/flags/1x1/co.svg +7 -0
  65. data/vendor/assets/flags/1x1/cr.svg +7 -0
  66. data/vendor/assets/flags/1x1/cu.svg +13 -0
  67. data/vendor/assets/flags/1x1/cv.svg +13 -0
  68. data/vendor/assets/flags/1x1/cw.svg +14 -0
  69. data/vendor/assets/flags/1x1/cx.svg +15 -0
  70. data/vendor/assets/flags/1x1/cy.svg +6 -0
  71. data/vendor/assets/flags/1x1/cz.svg +12 -0
  72. data/vendor/assets/flags/1x1/de.svg +5 -0
  73. data/vendor/assets/flags/1x1/dj.svg +13 -0
  74. data/vendor/assets/flags/1x1/dk.svg +5 -0
  75. data/vendor/assets/flags/1x1/dm.svg +152 -0
  76. data/vendor/assets/flags/1x1/do.svg +6745 -0
  77. data/vendor/assets/flags/1x1/dz.svg +5 -0
  78. data/vendor/assets/flags/1x1/ec.svg +141 -0
  79. data/vendor/assets/flags/1x1/ee.svg +7 -0
  80. data/vendor/assets/flags/1x1/eg.svg +38 -0
  81. data/vendor/assets/flags/1x1/eh.svg +15 -0
  82. data/vendor/assets/flags/1x1/er.svg +13 -0
  83. data/vendor/assets/flags/1x1/es-ct.svg +4 -0
  84. data/vendor/assets/flags/1x1/es.svg +581 -0
  85. data/vendor/assets/flags/1x1/et.svg +14 -0
  86. data/vendor/assets/flags/1x1/eu.svg +28 -0
  87. data/vendor/assets/flags/1x1/fi.svg +5 -0
  88. data/vendor/assets/flags/1x1/fj.svg +124 -0
  89. data/vendor/assets/flags/1x1/fk.svg +90 -0
  90. data/vendor/assets/flags/1x1/fm.svg +11 -0
  91. data/vendor/assets/flags/1x1/fo.svg +12 -0
  92. data/vendor/assets/flags/1x1/fr.svg +7 -0
  93. data/vendor/assets/flags/1x1/ga.svg +7 -0
  94. data/vendor/assets/flags/1x1/gb-eng.svg +5 -0
  95. data/vendor/assets/flags/1x1/gb-nir.svg +137 -0
  96. data/vendor/assets/flags/1x1/gb-sct.svg +4 -0
  97. data/vendor/assets/flags/1x1/gb-wls.svg +9 -0
  98. data/vendor/assets/flags/1x1/gb.svg +15 -0
  99. data/vendor/assets/flags/1x1/gd.svg +27 -0
  100. data/vendor/assets/flags/1x1/ge.svg +6 -0
  101. data/vendor/assets/flags/1x1/gf.svg +5 -0
  102. data/vendor/assets/flags/1x1/gg.svg +9 -0
  103. data/vendor/assets/flags/1x1/gh.svg +6 -0
  104. data/vendor/assets/flags/1x1/gi.svg +33 -0
  105. data/vendor/assets/flags/1x1/gl.svg +4 -0
  106. data/vendor/assets/flags/1x1/gm.svg +9 -0
  107. data/vendor/assets/flags/1x1/gn.svg +7 -0
  108. data/vendor/assets/flags/1x1/gp.svg +7 -0
  109. data/vendor/assets/flags/1x1/gq.svg +23 -0
  110. data/vendor/assets/flags/1x1/gr.svg +24 -0
  111. data/vendor/assets/flags/1x1/gs.svg +210 -0
  112. data/vendor/assets/flags/1x1/gt.svg +204 -0
  113. data/vendor/assets/flags/1x1/gu.svg +39 -0
  114. data/vendor/assets/flags/1x1/gw.svg +15 -0
  115. data/vendor/assets/flags/1x1/gy.svg +9 -0
  116. data/vendor/assets/flags/1x1/hk.svg +32 -0
  117. data/vendor/assets/flags/1x1/hm.svg +9 -0
  118. data/vendor/assets/flags/1x1/hn.svg +18 -0
  119. data/vendor/assets/flags/1x1/hr.svg +59 -0
  120. data/vendor/assets/flags/1x1/ht.svg +122 -0
  121. data/vendor/assets/flags/1x1/hu.svg +7 -0
  122. data/vendor/assets/flags/1x1/id.svg +6 -0
  123. data/vendor/assets/flags/1x1/ie.svg +7 -0
  124. data/vendor/assets/flags/1x1/il.svg +14 -0
  125. data/vendor/assets/flags/1x1/im.svg +36 -0
  126. data/vendor/assets/flags/1x1/in.svg +25 -0
  127. data/vendor/assets/flags/1x1/io.svg +150 -0
  128. data/vendor/assets/flags/1x1/iq.svg +10 -0
  129. data/vendor/assets/flags/1x1/ir.svg +219 -0
  130. data/vendor/assets/flags/1x1/is.svg +12 -0
  131. data/vendor/assets/flags/1x1/it.svg +7 -0
  132. data/vendor/assets/flags/1x1/je.svg +32 -0
  133. data/vendor/assets/flags/1x1/jm.svg +8 -0
  134. data/vendor/assets/flags/1x1/jo.svg +16 -0
  135. data/vendor/assets/flags/1x1/jp.svg +11 -0
  136. data/vendor/assets/flags/1x1/ke.svg +23 -0
  137. data/vendor/assets/flags/1x1/kg.svg +15 -0
  138. data/vendor/assets/flags/1x1/kh.svg +69 -0
  139. data/vendor/assets/flags/1x1/ki.svg +36 -0
  140. data/vendor/assets/flags/1x1/km.svg +16 -0
  141. data/vendor/assets/flags/1x1/kn.svg +14 -0
  142. data/vendor/assets/flags/1x1/kp.svg +15 -0
  143. data/vendor/assets/flags/1x1/kr.svg +24 -0
  144. data/vendor/assets/flags/1x1/kw.svg +13 -0
  145. data/vendor/assets/flags/1x1/ky.svg +70 -0
  146. data/vendor/assets/flags/1x1/kz.svg +23 -0
  147. data/vendor/assets/flags/1x1/la.svg +12 -0
  148. data/vendor/assets/flags/1x1/lb.svg +15 -0
  149. data/vendor/assets/flags/1x1/lc.svg +8 -0
  150. data/vendor/assets/flags/1x1/li.svg +43 -0
  151. data/vendor/assets/flags/1x1/lk.svg +22 -0
  152. data/vendor/assets/flags/1x1/lr.svg +14 -0
  153. data/vendor/assets/flags/1x1/ls.svg +8 -0
  154. data/vendor/assets/flags/1x1/lt.svg +7 -0
  155. data/vendor/assets/flags/1x1/lu.svg +5 -0
  156. data/vendor/assets/flags/1x1/lv.svg +6 -0
  157. data/vendor/assets/flags/1x1/ly.svg +13 -0
  158. data/vendor/assets/flags/1x1/ma.svg +4 -0
  159. data/vendor/assets/flags/1x1/mc.svg +6 -0
  160. data/vendor/assets/flags/1x1/md.svg +73 -0
  161. data/vendor/assets/flags/1x1/me.svg +118 -0
  162. data/vendor/assets/flags/1x1/mf.svg +7 -0
  163. data/vendor/assets/flags/1x1/mg.svg +7 -0
  164. data/vendor/assets/flags/1x1/mh.svg +8 -0
  165. data/vendor/assets/flags/1x1/mk.svg +5 -0
  166. data/vendor/assets/flags/1x1/ml.svg +7 -0
  167. data/vendor/assets/flags/1x1/mm.svg +16 -0
  168. data/vendor/assets/flags/1x1/mn.svg +13 -0
  169. data/vendor/assets/flags/1x1/mo.svg +9 -0
  170. data/vendor/assets/flags/1x1/mp.svg +86 -0
  171. data/vendor/assets/flags/1x1/mq.svg +7 -0
  172. data/vendor/assets/flags/1x1/mr.svg +6 -0
  173. data/vendor/assets/flags/1x1/ms.svg +39 -0
  174. data/vendor/assets/flags/1x1/mt.svg +50 -0
  175. data/vendor/assets/flags/1x1/mu.svg +8 -0
  176. data/vendor/assets/flags/1x1/mv.svg +6 -0
  177. data/vendor/assets/flags/1x1/mw.svg +15 -0
  178. data/vendor/assets/flags/1x1/mx.svg +385 -0
  179. data/vendor/assets/flags/1x1/my.svg +15 -0
  180. data/vendor/assets/flags/1x1/mz.svg +21 -0
  181. data/vendor/assets/flags/1x1/na.svg +16 -0
  182. data/vendor/assets/flags/1x1/nc.svg +7 -0
  183. data/vendor/assets/flags/1x1/ne.svg +6 -0
  184. data/vendor/assets/flags/1x1/nf.svg +11 -0
  185. data/vendor/assets/flags/1x1/ng.svg +6 -0
  186. data/vendor/assets/flags/1x1/ni.svg +131 -0
  187. data/vendor/assets/flags/1x1/nl.svg +7 -0
  188. data/vendor/assets/flags/1x1/no.svg +7 -0
  189. data/vendor/assets/flags/1x1/np.svg +19 -0
  190. data/vendor/assets/flags/1x1/nr.svg +12 -0
  191. data/vendor/assets/flags/1x1/nu.svg +26 -0
  192. data/vendor/assets/flags/1x1/nz.svg +41 -0
  193. data/vendor/assets/flags/1x1/om.svg +116 -0
  194. data/vendor/assets/flags/1x1/pa.svg +13 -0
  195. data/vendor/assets/flags/1x1/pe.svg +279 -0
  196. data/vendor/assets/flags/1x1/pf.svg +18 -0
  197. data/vendor/assets/flags/1x1/pg.svg +16 -0
  198. data/vendor/assets/flags/1x1/ph.svg +28 -0
  199. data/vendor/assets/flags/1x1/pk.svg +15 -0
  200. data/vendor/assets/flags/1x1/pl.svg +6 -0
  201. data/vendor/assets/flags/1x1/pm.svg +7 -0
  202. data/vendor/assets/flags/1x1/pn.svg +69 -0
  203. data/vendor/assets/flags/1x1/pr.svg +13 -0
  204. data/vendor/assets/flags/1x1/ps.svg +15 -0
  205. data/vendor/assets/flags/1x1/pt.svg +57 -0
  206. data/vendor/assets/flags/1x1/pw.svg +11 -0
  207. data/vendor/assets/flags/1x1/py.svg +157 -0
  208. data/vendor/assets/flags/1x1/qa.svg +4 -0
  209. data/vendor/assets/flags/1x1/re.svg +7 -0
  210. data/vendor/assets/flags/1x1/ro.svg +7 -0
  211. data/vendor/assets/flags/1x1/rs.svg +296 -0
  212. data/vendor/assets/flags/1x1/ru.svg +7 -0
  213. data/vendor/assets/flags/1x1/rw.svg +13 -0
  214. data/vendor/assets/flags/1x1/sa.svg +26 -0
  215. data/vendor/assets/flags/1x1/sb.svg +13 -0
  216. data/vendor/assets/flags/1x1/sc.svg +14 -0
  217. data/vendor/assets/flags/1x1/sd.svg +13 -0
  218. data/vendor/assets/flags/1x1/se.svg +16 -0
  219. data/vendor/assets/flags/1x1/sg.svg +13 -0
  220. data/vendor/assets/flags/1x1/sh.svg +81 -0
  221. data/vendor/assets/flags/1x1/si.svg +18 -0
  222. data/vendor/assets/flags/1x1/sj.svg +7 -0
  223. data/vendor/assets/flags/1x1/sk.svg +9 -0
  224. data/vendor/assets/flags/1x1/sl.svg +12 -0
  225. data/vendor/assets/flags/1x1/sm.svg +92 -0
  226. data/vendor/assets/flags/1x1/sn.svg +8 -0
  227. data/vendor/assets/flags/1x1/so.svg +11 -0
  228. data/vendor/assets/flags/1x1/sr.svg +6 -0
  229. data/vendor/assets/flags/1x1/ss.svg +8 -0
  230. data/vendor/assets/flags/1x1/st.svg +16 -0
  231. data/vendor/assets/flags/1x1/sv.svg +618 -0
  232. data/vendor/assets/flags/1x1/sx.svg +56 -0
  233. data/vendor/assets/flags/1x1/sy.svg +6 -0
  234. data/vendor/assets/flags/1x1/sz.svg +45 -0
  235. data/vendor/assets/flags/1x1/tc.svg +74 -0
  236. data/vendor/assets/flags/1x1/td.svg +7 -0
  237. data/vendor/assets/flags/1x1/tf.svg +15 -0
  238. data/vendor/assets/flags/1x1/tg.svg +14 -0
  239. data/vendor/assets/flags/1x1/th.svg +7 -0
  240. data/vendor/assets/flags/1x1/tj.svg +26 -0
  241. data/vendor/assets/flags/1x1/tk.svg +5 -0
  242. data/vendor/assets/flags/1x1/tl.svg +13 -0
  243. data/vendor/assets/flags/1x1/tm.svg +213 -0
  244. data/vendor/assets/flags/1x1/tn.svg +13 -0
  245. data/vendor/assets/flags/1x1/to.svg +10 -0
  246. data/vendor/assets/flags/1x1/tr.svg +8 -0
  247. data/vendor/assets/flags/1x1/tt.svg +7 -0
  248. data/vendor/assets/flags/1x1/tv.svg +27 -0
  249. data/vendor/assets/flags/1x1/tw.svg +14 -0
  250. data/vendor/assets/flags/1x1/tz.svg +15 -0
  251. data/vendor/assets/flags/1x1/ua.svg +6 -0
  252. data/vendor/assets/flags/1x1/ug.svg +30 -0
  253. data/vendor/assets/flags/1x1/um.svg +23 -0
  254. data/vendor/assets/flags/1x1/un.svg +16 -0
  255. data/vendor/assets/flags/1x1/us.svg +12 -0
  256. data/vendor/assets/flags/1x1/uy.svg +28 -0
  257. data/vendor/assets/flags/1x1/uz.svg +30 -0
  258. data/vendor/assets/flags/1x1/va.svg +483 -0
  259. data/vendor/assets/flags/1x1/vc.svg +8 -0
  260. data/vendor/assets/flags/1x1/ve.svg +26 -0
  261. data/vendor/assets/flags/1x1/vg.svg +134 -0
  262. data/vendor/assets/flags/1x1/vi.svg +30 -0
  263. data/vendor/assets/flags/1x1/vn.svg +11 -0
  264. data/vendor/assets/flags/1x1/vu.svg +18 -0
  265. data/vendor/assets/flags/1x1/wf.svg +7 -0
  266. data/vendor/assets/flags/1x1/ws.svg +7 -0
  267. data/vendor/assets/flags/1x1/ye.svg +7 -0
  268. data/vendor/assets/flags/1x1/yt.svg +7 -0
  269. data/vendor/assets/flags/1x1/za.svg +17 -0
  270. data/vendor/assets/flags/1x1/zm.svg +27 -0
  271. data/vendor/assets/flags/1x1/zw.svg +21 -0
  272. data/vendor/assets/flags/4x3/ad.svg +151 -0
  273. data/vendor/assets/flags/4x3/ae.svg +6 -0
  274. data/vendor/assets/flags/4x3/af.svg +83 -0
  275. data/vendor/assets/flags/4x3/ag.svg +15 -0
  276. data/vendor/assets/flags/4x3/ai.svg +767 -0
  277. data/vendor/assets/flags/4x3/al.svg +5 -0
  278. data/vendor/assets/flags/4x3/am.svg +5 -0
  279. data/vendor/assets/flags/4x3/ao.svg +13 -0
  280. data/vendor/assets/flags/4x3/aq.svg +6 -0
  281. data/vendor/assets/flags/4x3/ar.svg +32 -0
  282. data/vendor/assets/flags/4x3/as.svg +33 -0
  283. data/vendor/assets/flags/4x3/at.svg +6 -0
  284. data/vendor/assets/flags/4x3/au.svg +9 -0
  285. data/vendor/assets/flags/4x3/aw.svg +186 -0
  286. data/vendor/assets/flags/4x3/ax.svg +18 -0
  287. data/vendor/assets/flags/4x3/az.svg +8 -0
  288. data/vendor/assets/flags/4x3/ba.svg +12 -0
  289. data/vendor/assets/flags/4x3/bb.svg +6 -0
  290. data/vendor/assets/flags/4x3/bd.svg +4 -0
  291. data/vendor/assets/flags/4x3/be.svg +7 -0
  292. data/vendor/assets/flags/4x3/bf.svg +7 -0
  293. data/vendor/assets/flags/4x3/bg.svg +7 -0
  294. data/vendor/assets/flags/4x3/bh.svg +11 -0
  295. data/vendor/assets/flags/4x3/bi.svg +15 -0
  296. data/vendor/assets/flags/4x3/bj.svg +14 -0
  297. data/vendor/assets/flags/4x3/bl.svg +7 -0
  298. data/vendor/assets/flags/4x3/bm.svg +99 -0
  299. data/vendor/assets/flags/4x3/bn.svg +36 -0
  300. data/vendor/assets/flags/4x3/bo.svg +686 -0
  301. data/vendor/assets/flags/4x3/bq.svg +5 -0
  302. data/vendor/assets/flags/4x3/br.svg +45 -0
  303. data/vendor/assets/flags/4x3/bs.svg +13 -0
  304. data/vendor/assets/flags/4x3/bt.svg +89 -0
  305. data/vendor/assets/flags/4x3/bv.svg +13 -0
  306. data/vendor/assets/flags/4x3/bw.svg +7 -0
  307. data/vendor/assets/flags/4x3/by.svg +61 -0
  308. data/vendor/assets/flags/4x3/bz.svg +146 -0
  309. data/vendor/assets/flags/4x3/ca.svg +4 -0
  310. data/vendor/assets/flags/4x3/cc.svg +19 -0
  311. data/vendor/assets/flags/4x3/cd.svg +5 -0
  312. data/vendor/assets/flags/4x3/cf.svg +15 -0
  313. data/vendor/assets/flags/4x3/cg.svg +12 -0
  314. data/vendor/assets/flags/4x3/ch.svg +9 -0
  315. data/vendor/assets/flags/4x3/ci.svg +7 -0
  316. data/vendor/assets/flags/4x3/ck.svg +9 -0
  317. data/vendor/assets/flags/4x3/cl.svg +13 -0
  318. data/vendor/assets/flags/4x3/cm.svg +15 -0
  319. data/vendor/assets/flags/4x3/cn.svg +11 -0
  320. data/vendor/assets/flags/4x3/co.svg +7 -0
  321. data/vendor/assets/flags/4x3/cr.svg +7 -0
  322. data/vendor/assets/flags/4x3/cu.svg +13 -0
  323. data/vendor/assets/flags/4x3/cv.svg +13 -0
  324. data/vendor/assets/flags/4x3/cw.svg +14 -0
  325. data/vendor/assets/flags/4x3/cx.svg +15 -0
  326. data/vendor/assets/flags/4x3/cy.svg +6 -0
  327. data/vendor/assets/flags/4x3/cz.svg +12 -0
  328. data/vendor/assets/flags/4x3/de.svg +5 -0
  329. data/vendor/assets/flags/4x3/dj.svg +13 -0
  330. data/vendor/assets/flags/4x3/dk.svg +5 -0
  331. data/vendor/assets/flags/4x3/dm.svg +152 -0
  332. data/vendor/assets/flags/4x3/do.svg +6745 -0
  333. data/vendor/assets/flags/4x3/dz.svg +5 -0
  334. data/vendor/assets/flags/4x3/ec.svg +141 -0
  335. data/vendor/assets/flags/4x3/ee.svg +7 -0
  336. data/vendor/assets/flags/4x3/eg.svg +38 -0
  337. data/vendor/assets/flags/4x3/eh.svg +15 -0
  338. data/vendor/assets/flags/4x3/er.svg +8 -0
  339. data/vendor/assets/flags/4x3/es-ct.svg +4 -0
  340. data/vendor/assets/flags/4x3/es.svg +581 -0
  341. data/vendor/assets/flags/4x3/et.svg +14 -0
  342. data/vendor/assets/flags/4x3/eu.svg +28 -0
  343. data/vendor/assets/flags/4x3/fi.svg +5 -0
  344. data/vendor/assets/flags/4x3/fj.svg +124 -0
  345. data/vendor/assets/flags/4x3/fk.svg +90 -0
  346. data/vendor/assets/flags/4x3/fm.svg +11 -0
  347. data/vendor/assets/flags/4x3/fo.svg +12 -0
  348. data/vendor/assets/flags/4x3/fr.svg +7 -0
  349. data/vendor/assets/flags/4x3/ga.svg +7 -0
  350. data/vendor/assets/flags/4x3/gb-eng.svg +5 -0
  351. data/vendor/assets/flags/4x3/gb-nir.svg +137 -0
  352. data/vendor/assets/flags/4x3/gb-sct.svg +4 -0
  353. data/vendor/assets/flags/4x3/gb-wls.svg +9 -0
  354. data/vendor/assets/flags/4x3/gb.svg +15 -0
  355. data/vendor/assets/flags/4x3/gd.svg +27 -0
  356. data/vendor/assets/flags/4x3/ge.svg +6 -0
  357. data/vendor/assets/flags/4x3/gf.svg +5 -0
  358. data/vendor/assets/flags/4x3/gg.svg +9 -0
  359. data/vendor/assets/flags/4x3/gh.svg +6 -0
  360. data/vendor/assets/flags/4x3/gi.svg +33 -0
  361. data/vendor/assets/flags/4x3/gl.svg +4 -0
  362. data/vendor/assets/flags/4x3/gm.svg +14 -0
  363. data/vendor/assets/flags/4x3/gn.svg +7 -0
  364. data/vendor/assets/flags/4x3/gp.svg +7 -0
  365. data/vendor/assets/flags/4x3/gq.svg +23 -0
  366. data/vendor/assets/flags/4x3/gr.svg +22 -0
  367. data/vendor/assets/flags/4x3/gs.svg +205 -0
  368. data/vendor/assets/flags/4x3/gt.svg +204 -0
  369. data/vendor/assets/flags/4x3/gu.svg +39 -0
  370. data/vendor/assets/flags/4x3/gw.svg +13 -0
  371. data/vendor/assets/flags/4x3/gy.svg +9 -0
  372. data/vendor/assets/flags/4x3/hk.svg +32 -0
  373. data/vendor/assets/flags/4x3/hm.svg +9 -0
  374. data/vendor/assets/flags/4x3/hn.svg +18 -0
  375. data/vendor/assets/flags/4x3/hr.svg +59 -0
  376. data/vendor/assets/flags/4x3/ht.svg +122 -0
  377. data/vendor/assets/flags/4x3/hu.svg +7 -0
  378. data/vendor/assets/flags/4x3/id.svg +6 -0
  379. data/vendor/assets/flags/4x3/ie.svg +7 -0
  380. data/vendor/assets/flags/4x3/il.svg +14 -0
  381. data/vendor/assets/flags/4x3/im.svg +36 -0
  382. data/vendor/assets/flags/4x3/in.svg +25 -0
  383. data/vendor/assets/flags/4x3/io.svg +148 -0
  384. data/vendor/assets/flags/4x3/iq.svg +10 -0
  385. data/vendor/assets/flags/4x3/ir.svg +219 -0
  386. data/vendor/assets/flags/4x3/is.svg +12 -0
  387. data/vendor/assets/flags/4x3/it.svg +7 -0
  388. data/vendor/assets/flags/4x3/je.svg +32 -0
  389. data/vendor/assets/flags/4x3/jm.svg +8 -0
  390. data/vendor/assets/flags/4x3/jo.svg +16 -0
  391. data/vendor/assets/flags/4x3/jp.svg +11 -0
  392. data/vendor/assets/flags/4x3/ke.svg +23 -0
  393. data/vendor/assets/flags/4x3/kg.svg +15 -0
  394. data/vendor/assets/flags/4x3/kh.svg +69 -0
  395. data/vendor/assets/flags/4x3/ki.svg +36 -0
  396. data/vendor/assets/flags/4x3/km.svg +16 -0
  397. data/vendor/assets/flags/4x3/kn.svg +14 -0
  398. data/vendor/assets/flags/4x3/kp.svg +15 -0
  399. data/vendor/assets/flags/4x3/kr.svg +24 -0
  400. data/vendor/assets/flags/4x3/kw.svg +13 -0
  401. data/vendor/assets/flags/4x3/ky.svg +63 -0
  402. data/vendor/assets/flags/4x3/kz.svg +23 -0
  403. data/vendor/assets/flags/4x3/la.svg +12 -0
  404. data/vendor/assets/flags/4x3/lb.svg +15 -0
  405. data/vendor/assets/flags/4x3/lc.svg +8 -0
  406. data/vendor/assets/flags/4x3/li.svg +43 -0
  407. data/vendor/assets/flags/4x3/lk.svg +22 -0
  408. data/vendor/assets/flags/4x3/lr.svg +14 -0
  409. data/vendor/assets/flags/4x3/ls.svg +8 -0
  410. data/vendor/assets/flags/4x3/lt.svg +7 -0
  411. data/vendor/assets/flags/4x3/lu.svg +5 -0
  412. data/vendor/assets/flags/4x3/lv.svg +6 -0
  413. data/vendor/assets/flags/4x3/ly.svg +13 -0
  414. data/vendor/assets/flags/4x3/ma.svg +4 -0
  415. data/vendor/assets/flags/4x3/mc.svg +6 -0
  416. data/vendor/assets/flags/4x3/md.svg +72 -0
  417. data/vendor/assets/flags/4x3/me.svg +118 -0
  418. data/vendor/assets/flags/4x3/mf.svg +7 -0
  419. data/vendor/assets/flags/4x3/mg.svg +7 -0
  420. data/vendor/assets/flags/4x3/mh.svg +7 -0
  421. data/vendor/assets/flags/4x3/mk.svg +5 -0
  422. data/vendor/assets/flags/4x3/ml.svg +7 -0
  423. data/vendor/assets/flags/4x3/mm.svg +16 -0
  424. data/vendor/assets/flags/4x3/mn.svg +13 -0
  425. data/vendor/assets/flags/4x3/mo.svg +9 -0
  426. data/vendor/assets/flags/4x3/mp.svg +86 -0
  427. data/vendor/assets/flags/4x3/mq.svg +7 -0
  428. data/vendor/assets/flags/4x3/mr.svg +6 -0
  429. data/vendor/assets/flags/4x3/ms.svg +39 -0
  430. data/vendor/assets/flags/4x3/mt.svg +49 -0
  431. data/vendor/assets/flags/4x3/mu.svg +8 -0
  432. data/vendor/assets/flags/4x3/mv.svg +6 -0
  433. data/vendor/assets/flags/4x3/mw.svg +10 -0
  434. data/vendor/assets/flags/4x3/mx.svg +385 -0
  435. data/vendor/assets/flags/4x3/my.svg +15 -0
  436. data/vendor/assets/flags/4x3/mz.svg +21 -0
  437. data/vendor/assets/flags/4x3/na.svg +16 -0
  438. data/vendor/assets/flags/4x3/nc.svg +7 -0
  439. data/vendor/assets/flags/4x3/ne.svg +6 -0
  440. data/vendor/assets/flags/4x3/nf.svg +9 -0
  441. data/vendor/assets/flags/4x3/ng.svg +6 -0
  442. data/vendor/assets/flags/4x3/ni.svg +131 -0
  443. data/vendor/assets/flags/4x3/nl.svg +7 -0
  444. data/vendor/assets/flags/4x3/no.svg +7 -0
  445. data/vendor/assets/flags/4x3/np.svg +14 -0
  446. data/vendor/assets/flags/4x3/nr.svg +12 -0
  447. data/vendor/assets/flags/4x3/nu.svg +26 -0
  448. data/vendor/assets/flags/4x3/nz.svg +41 -0
  449. data/vendor/assets/flags/4x3/om.svg +116 -0
  450. data/vendor/assets/flags/4x3/pa.svg +14 -0
  451. data/vendor/assets/flags/4x3/pe.svg +279 -0
  452. data/vendor/assets/flags/4x3/pf.svg +19 -0
  453. data/vendor/assets/flags/4x3/pg.svg +9 -0
  454. data/vendor/assets/flags/4x3/ph.svg +28 -0
  455. data/vendor/assets/flags/4x3/pk.svg +15 -0
  456. data/vendor/assets/flags/4x3/pl.svg +6 -0
  457. data/vendor/assets/flags/4x3/pm.svg +7 -0
  458. data/vendor/assets/flags/4x3/pn.svg +62 -0
  459. data/vendor/assets/flags/4x3/pr.svg +13 -0
  460. data/vendor/assets/flags/4x3/ps.svg +15 -0
  461. data/vendor/assets/flags/4x3/pt.svg +57 -0
  462. data/vendor/assets/flags/4x3/pw.svg +11 -0
  463. data/vendor/assets/flags/4x3/py.svg +157 -0
  464. data/vendor/assets/flags/4x3/qa.svg +4 -0
  465. data/vendor/assets/flags/4x3/re.svg +7 -0
  466. data/vendor/assets/flags/4x3/ro.svg +7 -0
  467. data/vendor/assets/flags/4x3/rs.svg +292 -0
  468. data/vendor/assets/flags/4x3/ru.svg +7 -0
  469. data/vendor/assets/flags/4x3/rw.svg +13 -0
  470. data/vendor/assets/flags/4x3/sa.svg +26 -0
  471. data/vendor/assets/flags/4x3/sb.svg +13 -0
  472. data/vendor/assets/flags/4x3/sc.svg +14 -0
  473. data/vendor/assets/flags/4x3/sd.svg +13 -0
  474. data/vendor/assets/flags/4x3/se.svg +16 -0
  475. data/vendor/assets/flags/4x3/sg.svg +13 -0
  476. data/vendor/assets/flags/4x3/sh.svg +74 -0
  477. data/vendor/assets/flags/4x3/si.svg +18 -0
  478. data/vendor/assets/flags/4x3/sj.svg +7 -0
  479. data/vendor/assets/flags/4x3/sk.svg +9 -0
  480. data/vendor/assets/flags/4x3/sl.svg +7 -0
  481. data/vendor/assets/flags/4x3/sm.svg +91 -0
  482. data/vendor/assets/flags/4x3/sn.svg +8 -0
  483. data/vendor/assets/flags/4x3/so.svg +11 -0
  484. data/vendor/assets/flags/4x3/sr.svg +6 -0
  485. data/vendor/assets/flags/4x3/ss.svg +8 -0
  486. data/vendor/assets/flags/4x3/st.svg +16 -0
  487. data/vendor/assets/flags/4x3/sv.svg +618 -0
  488. data/vendor/assets/flags/4x3/sx.svg +56 -0
  489. data/vendor/assets/flags/4x3/sy.svg +6 -0
  490. data/vendor/assets/flags/4x3/sz.svg +45 -0
  491. data/vendor/assets/flags/4x3/tc.svg +67 -0
  492. data/vendor/assets/flags/4x3/td.svg +7 -0
  493. data/vendor/assets/flags/4x3/tf.svg +15 -0
  494. data/vendor/assets/flags/4x3/tg.svg +14 -0
  495. data/vendor/assets/flags/4x3/th.svg +7 -0
  496. data/vendor/assets/flags/4x3/tj.svg +22 -0
  497. data/vendor/assets/flags/4x3/tk.svg +5 -0
  498. data/vendor/assets/flags/4x3/tl.svg +13 -0
  499. data/vendor/assets/flags/4x3/tm.svg +213 -0
  500. data/vendor/assets/flags/4x3/tn.svg +13 -0
  501. data/vendor/assets/flags/4x3/to.svg +10 -0
  502. data/vendor/assets/flags/4x3/tr.svg +8 -0
  503. data/vendor/assets/flags/4x3/tt.svg +5 -0
  504. data/vendor/assets/flags/4x3/tv.svg +27 -0
  505. data/vendor/assets/flags/4x3/tw.svg +14 -0
  506. data/vendor/assets/flags/4x3/tz.svg +13 -0
  507. data/vendor/assets/flags/4x3/ua.svg +6 -0
  508. data/vendor/assets/flags/4x3/ug.svg +30 -0
  509. data/vendor/assets/flags/4x3/um.svg +23 -0
  510. data/vendor/assets/flags/4x3/un.svg +16 -0
  511. data/vendor/assets/flags/4x3/us.svg +12 -0
  512. data/vendor/assets/flags/4x3/uy.svg +28 -0
  513. data/vendor/assets/flags/4x3/uz.svg +30 -0
  514. data/vendor/assets/flags/4x3/va.svg +483 -0
  515. data/vendor/assets/flags/4x3/vc.svg +8 -0
  516. data/vendor/assets/flags/4x3/ve.svg +26 -0
  517. data/vendor/assets/flags/4x3/vg.svg +133 -0
  518. data/vendor/assets/flags/4x3/vi.svg +31 -0
  519. data/vendor/assets/flags/4x3/vn.svg +11 -0
  520. data/vendor/assets/flags/4x3/vu.svg +18 -0
  521. data/vendor/assets/flags/4x3/wf.svg +7 -0
  522. data/vendor/assets/flags/4x3/ws.svg +7 -0
  523. data/vendor/assets/flags/4x3/ye.svg +7 -0
  524. data/vendor/assets/flags/4x3/yt.svg +7 -0
  525. data/vendor/assets/flags/4x3/za.svg +17 -0
  526. data/vendor/assets/flags/4x3/zm.svg +27 -0
  527. data/vendor/assets/flags/4x3/zw.svg +21 -0
  528. data/vendor/assets/fonts/Simple-Line-Icons.eot +0 -0
  529. data/vendor/assets/fonts/Simple-Line-Icons.svg +200 -0
  530. data/vendor/assets/fonts/Simple-Line-Icons.ttf +0 -0
  531. data/vendor/assets/fonts/Simple-Line-Icons.woff +0 -0
  532. data/vendor/assets/fonts/Simple-Line-Icons.woff2 +0 -0
  533. data/vendor/assets/images/favicon.png +0 -0
  534. data/vendor/assets/images/logo-symbol.png +0 -0
  535. data/vendor/assets/images/logo.png +0 -0
  536. data/vendor/assets/javascripts/Chart.js +14145 -0
  537. data/vendor/assets/javascripts/coreui-free.js +155 -0
  538. data/vendor/assets/javascripts/moment.js +4535 -0
  539. data/vendor/assets/javascripts/pace.js +935 -0
  540. data/{app → vendor}/assets/stylesheets/_bootstrap-variables.scss +24 -13
  541. data/vendor/assets/stylesheets/_coreui-free.scss +6 -0
  542. data/{app → vendor}/assets/stylesheets/coreui/_animate.scss +0 -0
  543. data/{app → vendor}/assets/stylesheets/coreui/_aside.scss +1 -1
  544. data/{app → vendor}/assets/stylesheets/coreui/_avatars.scss +1 -1
  545. data/{app → vendor}/assets/stylesheets/coreui/_badge.scss +0 -0
  546. data/{app → vendor}/assets/stylesheets/coreui/_breadcrumb-menu.scss +1 -2
  547. data/{app → vendor}/assets/stylesheets/coreui/_breadcrumb.scss +0 -0
  548. data/vendor/assets/stylesheets/coreui/_buttons.scss +566 -0
  549. data/{app → vendor}/assets/stylesheets/coreui/_callout.scss +0 -0
  550. data/vendor/assets/stylesheets/coreui/_card.scss +193 -0
  551. data/vendor/assets/stylesheets/coreui/_charts.scss +9 -0
  552. data/{app → vendor}/assets/stylesheets/coreui/_dropdown-menu-right.scss +0 -0
  553. data/{app → vendor}/assets/stylesheets/coreui/_dropdown.scss +0 -0
  554. data/{app → vendor}/assets/stylesheets/coreui/_footer.scss +0 -0
  555. data/{app → vendor}/assets/stylesheets/coreui/_grid.scss +3 -3
  556. data/{app → vendor}/assets/stylesheets/coreui/_input-group.scss +0 -0
  557. data/{app → vendor}/assets/stylesheets/coreui/_layout.scss +12 -24
  558. data/{app → vendor}/assets/stylesheets/coreui/_loading.scss +1 -1
  559. data/{app → vendor}/assets/stylesheets/coreui/_mixins.scss +13 -13
  560. data/vendor/assets/stylesheets/coreui/_mobile.scss +0 -0
  561. data/{app → vendor}/assets/stylesheets/coreui/_modal.scss +0 -0
  562. data/{app → vendor}/assets/stylesheets/coreui/_nav.scss +0 -0
  563. data/{app → vendor}/assets/stylesheets/coreui/_navbar.scss +9 -17
  564. data/{app → vendor}/assets/stylesheets/coreui/_others.scss +1 -1
  565. data/{app → vendor}/assets/stylesheets/coreui/_progress.scss +1 -1
  566. data/{app → vendor}/assets/stylesheets/coreui/_rtl.scss +0 -0
  567. data/{app → vendor}/assets/stylesheets/coreui/_sidebar.scss +0 -0
  568. data/{app → vendor}/assets/stylesheets/coreui/_switches.scss +15 -15
  569. data/{app → vendor}/assets/stylesheets/coreui/_tables.scss +0 -0
  570. data/{app → vendor}/assets/stylesheets/coreui/_temp.scss +0 -2
  571. data/{app/assets/stylesheets/coreui/utilities → vendor/assets/stylesheets/coreui}/_typography.scss +0 -10
  572. data/{app → vendor}/assets/stylesheets/coreui/_utilities.scss +0 -1
  573. data/{app → vendor}/assets/stylesheets/coreui/_variables.scss +33 -57
  574. data/{app/assets/stylesheets/coreui/_deprecated.scss → vendor/assets/stylesheets/coreui/_widgets.scss} +146 -68
  575. data/{app/assets/stylesheets/coreui/coreui.scss → vendor/assets/stylesheets/coreui/core.scss} +3 -3
  576. data/vendor/assets/stylesheets/coreui/utilities/_background.scss +8 -0
  577. data/{app → vendor}/assets/stylesheets/coreui/utilities/_borders.scss +0 -0
  578. data/{app → vendor}/assets/stylesheets/coreui/utilities/_display.scss +0 -0
  579. data/vendor/assets/stylesheets/flag-icon/_flag-icon-base.scss +28 -0
  580. data/vendor/assets/stylesheets/flag-icon/_flag-icon-list.scss +249 -0
  581. data/vendor/assets/stylesheets/flag-icon/_flag-icon-more.scss +7 -0
  582. data/vendor/assets/stylesheets/flag-icon/_variables.scss +3 -0
  583. data/vendor/assets/stylesheets/flag-icon/flag-icon.scss +4 -0
  584. data/vendor/assets/stylesheets/simple-line-icons/simple-line-icons.scss +979 -0
  585. data/yarn.lock +67 -0
  586. metadata +667 -132
  587. data/app/assets/stylesheets/_coreui-variables.scss +0 -1
  588. data/app/assets/stylesheets/_custom.scss +0 -1
  589. data/app/assets/stylesheets/bootstrap/_alert.scss +0 -51
  590. data/app/assets/stylesheets/bootstrap/_badge.scss +0 -47
  591. data/app/assets/stylesheets/bootstrap/_breadcrumb.scss +0 -38
  592. data/app/assets/stylesheets/bootstrap/_button-group.scss +0 -166
  593. data/app/assets/stylesheets/bootstrap/_buttons.scss +0 -143
  594. data/app/assets/stylesheets/bootstrap/_card.scss +0 -270
  595. data/app/assets/stylesheets/bootstrap/_carousel.scss +0 -191
  596. data/app/assets/stylesheets/bootstrap/_close.scss +0 -34
  597. data/app/assets/stylesheets/bootstrap/_code.scss +0 -56
  598. data/app/assets/stylesheets/bootstrap/_custom-forms.scss +0 -297
  599. data/app/assets/stylesheets/bootstrap/_dropdown.scss +0 -131
  600. data/app/assets/stylesheets/bootstrap/_forms.scss +0 -333
  601. data/app/assets/stylesheets/bootstrap/_functions.scss +0 -86
  602. data/app/assets/stylesheets/bootstrap/_grid.scss +0 -52
  603. data/app/assets/stylesheets/bootstrap/_images.scss +0 -42
  604. data/app/assets/stylesheets/bootstrap/_input-group.scss +0 -159
  605. data/app/assets/stylesheets/bootstrap/_jumbotron.scss +0 -16
  606. data/app/assets/stylesheets/bootstrap/_list-group.scss +0 -115
  607. data/app/assets/stylesheets/bootstrap/_media.scss +0 -8
  608. data/app/assets/stylesheets/bootstrap/_mixins.scss +0 -42
  609. data/app/assets/stylesheets/bootstrap/_modal.scss +0 -168
  610. data/app/assets/stylesheets/bootstrap/_nav.scss +0 -118
  611. data/app/assets/stylesheets/bootstrap/_navbar.scss +0 -311
  612. data/app/assets/stylesheets/bootstrap/_pagination.scss +0 -77
  613. data/app/assets/stylesheets/bootstrap/_popover.scss +0 -183
  614. data/app/assets/stylesheets/bootstrap/_print.scss +0 -124
  615. data/app/assets/stylesheets/bootstrap/_progress.scss +0 -33
  616. data/app/assets/stylesheets/bootstrap/_reboot.scss +0 -482
  617. data/app/assets/stylesheets/bootstrap/_root.scss +0 -19
  618. data/app/assets/stylesheets/bootstrap/_tables.scss +0 -180
  619. data/app/assets/stylesheets/bootstrap/_tooltip.scss +0 -115
  620. data/app/assets/stylesheets/bootstrap/_transitions.scss +0 -36
  621. data/app/assets/stylesheets/bootstrap/_type.scss +0 -125
  622. data/app/assets/stylesheets/bootstrap/_utilities.scss +0 -14
  623. data/app/assets/stylesheets/bootstrap/_variables.scss +0 -894
  624. data/app/assets/stylesheets/bootstrap/bootstrap-grid.scss +0 -32
  625. data/app/assets/stylesheets/bootstrap/bootstrap-reboot.scss +0 -12
  626. data/app/assets/stylesheets/bootstrap/bootstrap.scss +0 -42
  627. data/app/assets/stylesheets/bootstrap/mixins/_alert.scss +0 -13
  628. data/app/assets/stylesheets/bootstrap/mixins/_background-variant.scss +0 -21
  629. data/app/assets/stylesheets/bootstrap/mixins/_badge.scss +0 -12
  630. data/app/assets/stylesheets/bootstrap/mixins/_border-radius.scss +0 -35
  631. data/app/assets/stylesheets/bootstrap/mixins/_box-shadow.scss +0 -5
  632. data/app/assets/stylesheets/bootstrap/mixins/_breakpoints.scss +0 -123
  633. data/app/assets/stylesheets/bootstrap/mixins/_buttons.scss +0 -109
  634. data/app/assets/stylesheets/bootstrap/mixins/_caret.scss +0 -65
  635. data/app/assets/stylesheets/bootstrap/mixins/_clearfix.scss +0 -7
  636. data/app/assets/stylesheets/bootstrap/mixins/_float.scss +0 -11
  637. data/app/assets/stylesheets/bootstrap/mixins/_forms.scss +0 -137
  638. data/app/assets/stylesheets/bootstrap/mixins/_gradients.scss +0 -45
  639. data/app/assets/stylesheets/bootstrap/mixins/_grid-framework.scss +0 -67
  640. data/app/assets/stylesheets/bootstrap/mixins/_grid.scss +0 -52
  641. data/app/assets/stylesheets/bootstrap/mixins/_hover.scss +0 -39
  642. data/app/assets/stylesheets/bootstrap/mixins/_image.scss +0 -36
  643. data/app/assets/stylesheets/bootstrap/mixins/_list-group.scss +0 -21
  644. data/app/assets/stylesheets/bootstrap/mixins/_lists.scss +0 -7
  645. data/app/assets/stylesheets/bootstrap/mixins/_nav-divider.scss +0 -10
  646. data/app/assets/stylesheets/bootstrap/mixins/_navbar-align.scss +0 -10
  647. data/app/assets/stylesheets/bootstrap/mixins/_pagination.scss +0 -22
  648. data/app/assets/stylesheets/bootstrap/mixins/_reset-text.scss +0 -17
  649. data/app/assets/stylesheets/bootstrap/mixins/_resize.scss +0 -6
  650. data/app/assets/stylesheets/bootstrap/mixins/_screen-reader.scss +0 -35
  651. data/app/assets/stylesheets/bootstrap/mixins/_size.scss +0 -6
  652. data/app/assets/stylesheets/bootstrap/mixins/_table-row.scss +0 -30
  653. data/app/assets/stylesheets/bootstrap/mixins/_text-emphasis.scss +0 -14
  654. data/app/assets/stylesheets/bootstrap/mixins/_text-hide.scss +0 -9
  655. data/app/assets/stylesheets/bootstrap/mixins/_text-truncate.scss +0 -8
  656. data/app/assets/stylesheets/bootstrap/mixins/_transition.scss +0 -9
  657. data/app/assets/stylesheets/bootstrap/mixins/_visibility.scss +0 -7
  658. data/app/assets/stylesheets/bootstrap/utilities/_align.scss +0 -8
  659. data/app/assets/stylesheets/bootstrap/utilities/_background.scss +0 -19
  660. data/app/assets/stylesheets/bootstrap/utilities/_borders.scss +0 -59
  661. data/app/assets/stylesheets/bootstrap/utilities/_clearfix.scss +0 -3
  662. data/app/assets/stylesheets/bootstrap/utilities/_display.scss +0 -38
  663. data/app/assets/stylesheets/bootstrap/utilities/_embed.scss +0 -52
  664. data/app/assets/stylesheets/bootstrap/utilities/_flex.scss +0 -46
  665. data/app/assets/stylesheets/bootstrap/utilities/_float.scss +0 -9
  666. data/app/assets/stylesheets/bootstrap/utilities/_position.scss +0 -36
  667. data/app/assets/stylesheets/bootstrap/utilities/_screenreaders.scss +0 -11
  668. data/app/assets/stylesheets/bootstrap/utilities/_sizing.scss +0 -12
  669. data/app/assets/stylesheets/bootstrap/utilities/_spacing.scss +0 -51
  670. data/app/assets/stylesheets/bootstrap/utilities/_text.scss +0 -52
  671. data/app/assets/stylesheets/bootstrap/utilities/_visibility.scss +0 -11
  672. data/app/assets/stylesheets/coreui-free.scss +0 -18
  673. data/app/assets/stylesheets/coreui/_brand-card.scss +0 -51
  674. data/app/assets/stylesheets/coreui/_brands-buttons.scss +0 -47
  675. data/app/assets/stylesheets/coreui/_buttons.scss +0 -18
  676. data/app/assets/stylesheets/coreui/_card.scss +0 -107
  677. data/app/assets/stylesheets/coreui/_charts.scss +0 -7
  678. data/app/assets/stylesheets/coreui/_progress-group.scss +0 -40
  679. data/app/assets/stylesheets/coreui/_widgets.scss +0 -79
  680. data/app/assets/stylesheets/coreui/utilities/_background.scss +0 -20
@@ -0,0 +1,935 @@
1
+ (function() {
2
+ var AjaxMonitor, Bar, DocumentMonitor, ElementMonitor, ElementTracker, EventLagMonitor, Evented, Events, NoTargetError, Pace, RequestIntercept, SOURCE_KEYS, Scaler, SocketRequestTracker, XHRRequestTracker, animation, avgAmplitude, bar, cancelAnimation, cancelAnimationFrame, defaultOptions, extend, extendNative, getFromDOM, getIntercept, handlePushState, ignoreStack, init, now, options, requestAnimationFrame, result, runAnimation, scalers, shouldIgnoreURL, shouldTrack, source, sources, uniScaler, _WebSocket, _XDomainRequest, _XMLHttpRequest, _i, _intercept, _len, _pushState, _ref, _ref1, _replaceState,
3
+ __slice = [].slice,
4
+ __hasProp = {}.hasOwnProperty,
5
+ __extends = function(child, parent) { for (var key in parent) { if (__hasProp.call(parent, key)) child[key] = parent[key]; } function ctor() { this.constructor = child; } ctor.prototype = parent.prototype; child.prototype = new ctor(); child.__super__ = parent.prototype; return child; },
6
+ __indexOf = [].indexOf || function(item) { for (var i = 0, l = this.length; i < l; i++) { if (i in this && this[i] === item) return i; } return -1; };
7
+
8
+ defaultOptions = {
9
+ catchupTime: 100,
10
+ initialRate: .03,
11
+ minTime: 250,
12
+ ghostTime: 100,
13
+ maxProgressPerFrame: 20,
14
+ easeFactor: 1.25,
15
+ startOnPageLoad: true,
16
+ restartOnPushState: true,
17
+ restartOnRequestAfter: 500,
18
+ target: 'body',
19
+ elements: {
20
+ checkInterval: 100,
21
+ selectors: ['body']
22
+ },
23
+ eventLag: {
24
+ minSamples: 10,
25
+ sampleCount: 3,
26
+ lagThreshold: 3
27
+ },
28
+ ajax: {
29
+ trackMethods: ['GET'],
30
+ trackWebSockets: true,
31
+ ignoreURLs: []
32
+ }
33
+ };
34
+
35
+ now = function() {
36
+ var _ref;
37
+ return (_ref = typeof performance !== "undefined" && performance !== null ? typeof performance.now === "function" ? performance.now() : void 0 : void 0) != null ? _ref : +(new Date);
38
+ };
39
+
40
+ requestAnimationFrame = window.requestAnimationFrame || window.mozRequestAnimationFrame || window.webkitRequestAnimationFrame || window.msRequestAnimationFrame;
41
+
42
+ cancelAnimationFrame = window.cancelAnimationFrame || window.mozCancelAnimationFrame;
43
+
44
+ if (requestAnimationFrame == null) {
45
+ requestAnimationFrame = function(fn) {
46
+ return setTimeout(fn, 50);
47
+ };
48
+ cancelAnimationFrame = function(id) {
49
+ return clearTimeout(id);
50
+ };
51
+ }
52
+
53
+ runAnimation = function(fn) {
54
+ var last, tick;
55
+ last = now();
56
+ tick = function() {
57
+ var diff;
58
+ diff = now() - last;
59
+ if (diff >= 33) {
60
+ last = now();
61
+ return fn(diff, function() {
62
+ return requestAnimationFrame(tick);
63
+ });
64
+ } else {
65
+ return setTimeout(tick, 33 - diff);
66
+ }
67
+ };
68
+ return tick();
69
+ };
70
+
71
+ result = function() {
72
+ var args, key, obj;
73
+ obj = arguments[0], key = arguments[1], args = 3 <= arguments.length ? __slice.call(arguments, 2) : [];
74
+ if (typeof obj[key] === 'function') {
75
+ return obj[key].apply(obj, args);
76
+ } else {
77
+ return obj[key];
78
+ }
79
+ };
80
+
81
+ extend = function() {
82
+ var key, out, source, sources, val, _i, _len;
83
+ out = arguments[0], sources = 2 <= arguments.length ? __slice.call(arguments, 1) : [];
84
+ for (_i = 0, _len = sources.length; _i < _len; _i++) {
85
+ source = sources[_i];
86
+ if (source) {
87
+ for (key in source) {
88
+ if (!__hasProp.call(source, key)) continue;
89
+ val = source[key];
90
+ if ((out[key] != null) && typeof out[key] === 'object' && (val != null) && typeof val === 'object') {
91
+ extend(out[key], val);
92
+ } else {
93
+ out[key] = val;
94
+ }
95
+ }
96
+ }
97
+ }
98
+ return out;
99
+ };
100
+
101
+ avgAmplitude = function(arr) {
102
+ var count, sum, v, _i, _len;
103
+ sum = count = 0;
104
+ for (_i = 0, _len = arr.length; _i < _len; _i++) {
105
+ v = arr[_i];
106
+ sum += Math.abs(v);
107
+ count++;
108
+ }
109
+ return sum / count;
110
+ };
111
+
112
+ getFromDOM = function(key, json) {
113
+ var data, e, el;
114
+ if (key == null) {
115
+ key = 'options';
116
+ }
117
+ if (json == null) {
118
+ json = true;
119
+ }
120
+ el = document.querySelector("[data-pace-" + key + "]");
121
+ if (!el) {
122
+ return;
123
+ }
124
+ data = el.getAttribute("data-pace-" + key);
125
+ if (!json) {
126
+ return data;
127
+ }
128
+ try {
129
+ return JSON.parse(data);
130
+ } catch (_error) {
131
+ e = _error;
132
+ return typeof console !== "undefined" && console !== null ? console.error("Error parsing inline pace options", e) : void 0;
133
+ }
134
+ };
135
+
136
+ Evented = (function() {
137
+ function Evented() {}
138
+
139
+ Evented.prototype.on = function(event, handler, ctx, once) {
140
+ var _base;
141
+ if (once == null) {
142
+ once = false;
143
+ }
144
+ if (this.bindings == null) {
145
+ this.bindings = {};
146
+ }
147
+ if ((_base = this.bindings)[event] == null) {
148
+ _base[event] = [];
149
+ }
150
+ return this.bindings[event].push({
151
+ handler: handler,
152
+ ctx: ctx,
153
+ once: once
154
+ });
155
+ };
156
+
157
+ Evented.prototype.once = function(event, handler, ctx) {
158
+ return this.on(event, handler, ctx, true);
159
+ };
160
+
161
+ Evented.prototype.off = function(event, handler) {
162
+ var i, _ref, _results;
163
+ if (((_ref = this.bindings) != null ? _ref[event] : void 0) == null) {
164
+ return;
165
+ }
166
+ if (handler == null) {
167
+ return delete this.bindings[event];
168
+ } else {
169
+ i = 0;
170
+ _results = [];
171
+ while (i < this.bindings[event].length) {
172
+ if (this.bindings[event][i].handler === handler) {
173
+ _results.push(this.bindings[event].splice(i, 1));
174
+ } else {
175
+ _results.push(i++);
176
+ }
177
+ }
178
+ return _results;
179
+ }
180
+ };
181
+
182
+ Evented.prototype.trigger = function() {
183
+ var args, ctx, event, handler, i, once, _ref, _ref1, _results;
184
+ event = arguments[0], args = 2 <= arguments.length ? __slice.call(arguments, 1) : [];
185
+ if ((_ref = this.bindings) != null ? _ref[event] : void 0) {
186
+ i = 0;
187
+ _results = [];
188
+ while (i < this.bindings[event].length) {
189
+ _ref1 = this.bindings[event][i], handler = _ref1.handler, ctx = _ref1.ctx, once = _ref1.once;
190
+ handler.apply(ctx != null ? ctx : this, args);
191
+ if (once) {
192
+ _results.push(this.bindings[event].splice(i, 1));
193
+ } else {
194
+ _results.push(i++);
195
+ }
196
+ }
197
+ return _results;
198
+ }
199
+ };
200
+
201
+ return Evented;
202
+
203
+ })();
204
+
205
+ Pace = window.Pace || {};
206
+
207
+ window.Pace = Pace;
208
+
209
+ extend(Pace, Evented.prototype);
210
+
211
+ options = Pace.options = extend({}, defaultOptions, window.paceOptions, getFromDOM());
212
+
213
+ _ref = ['ajax', 'document', 'eventLag', 'elements'];
214
+ for (_i = 0, _len = _ref.length; _i < _len; _i++) {
215
+ source = _ref[_i];
216
+ if (options[source] === true) {
217
+ options[source] = defaultOptions[source];
218
+ }
219
+ }
220
+
221
+ NoTargetError = (function(_super) {
222
+ __extends(NoTargetError, _super);
223
+
224
+ function NoTargetError() {
225
+ _ref1 = NoTargetError.__super__.constructor.apply(this, arguments);
226
+ return _ref1;
227
+ }
228
+
229
+ return NoTargetError;
230
+
231
+ })(Error);
232
+
233
+ Bar = (function() {
234
+ function Bar() {
235
+ this.progress = 0;
236
+ }
237
+
238
+ Bar.prototype.getElement = function() {
239
+ var targetElement;
240
+ if (this.el == null) {
241
+ targetElement = document.querySelector(options.target);
242
+ if (!targetElement) {
243
+ throw new NoTargetError;
244
+ }
245
+ this.el = document.createElement('div');
246
+ this.el.className = "pace pace-active";
247
+ document.body.className = document.body.className.replace(/pace-done/g, '');
248
+ document.body.className += ' pace-running';
249
+ this.el.innerHTML = '<div class="pace-progress">\n <div class="pace-progress-inner"></div>\n</div>\n<div class="pace-activity"></div>';
250
+ if (targetElement.firstChild != null) {
251
+ targetElement.insertBefore(this.el, targetElement.firstChild);
252
+ } else {
253
+ targetElement.appendChild(this.el);
254
+ }
255
+ }
256
+ return this.el;
257
+ };
258
+
259
+ Bar.prototype.finish = function() {
260
+ var el;
261
+ el = this.getElement();
262
+ el.className = el.className.replace('pace-active', '');
263
+ el.className += ' pace-inactive';
264
+ document.body.className = document.body.className.replace('pace-running', '');
265
+ return document.body.className += ' pace-done';
266
+ };
267
+
268
+ Bar.prototype.update = function(prog) {
269
+ this.progress = prog;
270
+ return this.render();
271
+ };
272
+
273
+ Bar.prototype.destroy = function() {
274
+ try {
275
+ this.getElement().parentNode.removeChild(this.getElement());
276
+ } catch (_error) {
277
+ NoTargetError = _error;
278
+ }
279
+ return this.el = void 0;
280
+ };
281
+
282
+ Bar.prototype.render = function() {
283
+ var el, key, progressStr, transform, _j, _len1, _ref2;
284
+ if (document.querySelector(options.target) == null) {
285
+ return false;
286
+ }
287
+ el = this.getElement();
288
+ transform = "translate3d(" + this.progress + "%, 0, 0)";
289
+ _ref2 = ['webkitTransform', 'msTransform', 'transform'];
290
+ for (_j = 0, _len1 = _ref2.length; _j < _len1; _j++) {
291
+ key = _ref2[_j];
292
+ el.children[0].style[key] = transform;
293
+ }
294
+ if (!this.lastRenderedProgress || this.lastRenderedProgress | 0 !== this.progress | 0) {
295
+ el.children[0].setAttribute('data-progress-text', "" + (this.progress | 0) + "%");
296
+ if (this.progress >= 100) {
297
+ progressStr = '99';
298
+ } else {
299
+ progressStr = this.progress < 10 ? "0" : "";
300
+ progressStr += this.progress | 0;
301
+ }
302
+ el.children[0].setAttribute('data-progress', "" + progressStr);
303
+ }
304
+ return this.lastRenderedProgress = this.progress;
305
+ };
306
+
307
+ Bar.prototype.done = function() {
308
+ return this.progress >= 100;
309
+ };
310
+
311
+ return Bar;
312
+
313
+ })();
314
+
315
+ Events = (function() {
316
+ function Events() {
317
+ this.bindings = {};
318
+ }
319
+
320
+ Events.prototype.trigger = function(name, val) {
321
+ var binding, _j, _len1, _ref2, _results;
322
+ if (this.bindings[name] != null) {
323
+ _ref2 = this.bindings[name];
324
+ _results = [];
325
+ for (_j = 0, _len1 = _ref2.length; _j < _len1; _j++) {
326
+ binding = _ref2[_j];
327
+ _results.push(binding.call(this, val));
328
+ }
329
+ return _results;
330
+ }
331
+ };
332
+
333
+ Events.prototype.on = function(name, fn) {
334
+ var _base;
335
+ if ((_base = this.bindings)[name] == null) {
336
+ _base[name] = [];
337
+ }
338
+ return this.bindings[name].push(fn);
339
+ };
340
+
341
+ return Events;
342
+
343
+ })();
344
+
345
+ _XMLHttpRequest = window.XMLHttpRequest;
346
+
347
+ _XDomainRequest = window.XDomainRequest;
348
+
349
+ _WebSocket = window.WebSocket;
350
+
351
+ extendNative = function(to, from) {
352
+ var e, key, _results;
353
+ _results = [];
354
+ for (key in from.prototype) {
355
+ try {
356
+ if ((to[key] == null) && typeof from[key] !== 'function') {
357
+ if (typeof Object.defineProperty === 'function') {
358
+ _results.push(Object.defineProperty(to, key, {
359
+ get: function() {
360
+ return from.prototype[key];
361
+ },
362
+ configurable: true,
363
+ enumerable: true
364
+ }));
365
+ } else {
366
+ _results.push(to[key] = from.prototype[key]);
367
+ }
368
+ } else {
369
+ _results.push(void 0);
370
+ }
371
+ } catch (_error) {
372
+ e = _error;
373
+ }
374
+ }
375
+ return _results;
376
+ };
377
+
378
+ ignoreStack = [];
379
+
380
+ Pace.ignore = function() {
381
+ var args, fn, ret;
382
+ fn = arguments[0], args = 2 <= arguments.length ? __slice.call(arguments, 1) : [];
383
+ ignoreStack.unshift('ignore');
384
+ ret = fn.apply(null, args);
385
+ ignoreStack.shift();
386
+ return ret;
387
+ };
388
+
389
+ Pace.track = function() {
390
+ var args, fn, ret;
391
+ fn = arguments[0], args = 2 <= arguments.length ? __slice.call(arguments, 1) : [];
392
+ ignoreStack.unshift('track');
393
+ ret = fn.apply(null, args);
394
+ ignoreStack.shift();
395
+ return ret;
396
+ };
397
+
398
+ shouldTrack = function(method) {
399
+ var _ref2;
400
+ if (method == null) {
401
+ method = 'GET';
402
+ }
403
+ if (ignoreStack[0] === 'track') {
404
+ return 'force';
405
+ }
406
+ if (!ignoreStack.length && options.ajax) {
407
+ if (method === 'socket' && options.ajax.trackWebSockets) {
408
+ return true;
409
+ } else if (_ref2 = method.toUpperCase(), __indexOf.call(options.ajax.trackMethods, _ref2) >= 0) {
410
+ return true;
411
+ }
412
+ }
413
+ return false;
414
+ };
415
+
416
+ RequestIntercept = (function(_super) {
417
+ __extends(RequestIntercept, _super);
418
+
419
+ function RequestIntercept() {
420
+ var monitorXHR,
421
+ _this = this;
422
+ RequestIntercept.__super__.constructor.apply(this, arguments);
423
+ monitorXHR = function(req) {
424
+ var _open;
425
+ _open = req.open;
426
+ return req.open = function(type, url, async) {
427
+ if (shouldTrack(type)) {
428
+ _this.trigger('request', {
429
+ type: type,
430
+ url: url,
431
+ request: req
432
+ });
433
+ }
434
+ return _open.apply(req, arguments);
435
+ };
436
+ };
437
+ window.XMLHttpRequest = function(flags) {
438
+ var req;
439
+ req = new _XMLHttpRequest(flags);
440
+ monitorXHR(req);
441
+ return req;
442
+ };
443
+ try {
444
+ extendNative(window.XMLHttpRequest, _XMLHttpRequest);
445
+ } catch (_error) {}
446
+ if (_XDomainRequest != null) {
447
+ window.XDomainRequest = function() {
448
+ var req;
449
+ req = new _XDomainRequest;
450
+ monitorXHR(req);
451
+ return req;
452
+ };
453
+ try {
454
+ extendNative(window.XDomainRequest, _XDomainRequest);
455
+ } catch (_error) {}
456
+ }
457
+ if ((_WebSocket != null) && options.ajax.trackWebSockets) {
458
+ window.WebSocket = function(url, protocols) {
459
+ var req;
460
+ if (protocols != null) {
461
+ req = new _WebSocket(url, protocols);
462
+ } else {
463
+ req = new _WebSocket(url);
464
+ }
465
+ if (shouldTrack('socket')) {
466
+ _this.trigger('request', {
467
+ type: 'socket',
468
+ url: url,
469
+ protocols: protocols,
470
+ request: req
471
+ });
472
+ }
473
+ return req;
474
+ };
475
+ try {
476
+ extendNative(window.WebSocket, _WebSocket);
477
+ } catch (_error) {}
478
+ }
479
+ }
480
+
481
+ return RequestIntercept;
482
+
483
+ })(Events);
484
+
485
+ _intercept = null;
486
+
487
+ getIntercept = function() {
488
+ if (_intercept == null) {
489
+ _intercept = new RequestIntercept;
490
+ }
491
+ return _intercept;
492
+ };
493
+
494
+ shouldIgnoreURL = function(url) {
495
+ var pattern, _j, _len1, _ref2;
496
+ _ref2 = options.ajax.ignoreURLs;
497
+ for (_j = 0, _len1 = _ref2.length; _j < _len1; _j++) {
498
+ pattern = _ref2[_j];
499
+ if (typeof pattern === 'string') {
500
+ if (url.indexOf(pattern) !== -1) {
501
+ return true;
502
+ }
503
+ } else {
504
+ if (pattern.test(url)) {
505
+ return true;
506
+ }
507
+ }
508
+ }
509
+ return false;
510
+ };
511
+
512
+ getIntercept().on('request', function(_arg) {
513
+ var after, args, request, type, url;
514
+ type = _arg.type, request = _arg.request, url = _arg.url;
515
+ if (shouldIgnoreURL(url)) {
516
+ return;
517
+ }
518
+ if (!Pace.running && (options.restartOnRequestAfter !== false || shouldTrack(type) === 'force')) {
519
+ args = arguments;
520
+ after = options.restartOnRequestAfter || 0;
521
+ if (typeof after === 'boolean') {
522
+ after = 0;
523
+ }
524
+ return setTimeout(function() {
525
+ var stillActive, _j, _len1, _ref2, _ref3, _results;
526
+ if (type === 'socket') {
527
+ stillActive = request.readyState < 2;
528
+ } else {
529
+ stillActive = (0 < (_ref2 = request.readyState) && _ref2 < 4);
530
+ }
531
+ if (stillActive) {
532
+ Pace.restart();
533
+ _ref3 = Pace.sources;
534
+ _results = [];
535
+ for (_j = 0, _len1 = _ref3.length; _j < _len1; _j++) {
536
+ source = _ref3[_j];
537
+ if (source instanceof AjaxMonitor) {
538
+ source.watch.apply(source, args);
539
+ break;
540
+ } else {
541
+ _results.push(void 0);
542
+ }
543
+ }
544
+ return _results;
545
+ }
546
+ }, after);
547
+ }
548
+ });
549
+
550
+ AjaxMonitor = (function() {
551
+ function AjaxMonitor() {
552
+ var _this = this;
553
+ this.elements = [];
554
+ getIntercept().on('request', function() {
555
+ return _this.watch.apply(_this, arguments);
556
+ });
557
+ }
558
+
559
+ AjaxMonitor.prototype.watch = function(_arg) {
560
+ var request, tracker, type, url;
561
+ type = _arg.type, request = _arg.request, url = _arg.url;
562
+ if (shouldIgnoreURL(url)) {
563
+ return;
564
+ }
565
+ if (type === 'socket') {
566
+ tracker = new SocketRequestTracker(request);
567
+ } else {
568
+ tracker = new XHRRequestTracker(request);
569
+ }
570
+ return this.elements.push(tracker);
571
+ };
572
+
573
+ return AjaxMonitor;
574
+
575
+ })();
576
+
577
+ XHRRequestTracker = (function() {
578
+ function XHRRequestTracker(request) {
579
+ var event, size, _j, _len1, _onreadystatechange, _ref2,
580
+ _this = this;
581
+ this.progress = 0;
582
+ if (window.ProgressEvent != null) {
583
+ size = null;
584
+ request.addEventListener('progress', function(evt) {
585
+ if (evt.lengthComputable) {
586
+ return _this.progress = 100 * evt.loaded / evt.total;
587
+ } else {
588
+ return _this.progress = _this.progress + (100 - _this.progress) / 2;
589
+ }
590
+ }, false);
591
+ _ref2 = ['load', 'abort', 'timeout', 'error'];
592
+ for (_j = 0, _len1 = _ref2.length; _j < _len1; _j++) {
593
+ event = _ref2[_j];
594
+ request.addEventListener(event, function() {
595
+ return _this.progress = 100;
596
+ }, false);
597
+ }
598
+ } else {
599
+ _onreadystatechange = request.onreadystatechange;
600
+ request.onreadystatechange = function() {
601
+ var _ref3;
602
+ if ((_ref3 = request.readyState) === 0 || _ref3 === 4) {
603
+ _this.progress = 100;
604
+ } else if (request.readyState === 3) {
605
+ _this.progress = 50;
606
+ }
607
+ return typeof _onreadystatechange === "function" ? _onreadystatechange.apply(null, arguments) : void 0;
608
+ };
609
+ }
610
+ }
611
+
612
+ return XHRRequestTracker;
613
+
614
+ })();
615
+
616
+ SocketRequestTracker = (function() {
617
+ function SocketRequestTracker(request) {
618
+ var event, _j, _len1, _ref2,
619
+ _this = this;
620
+ this.progress = 0;
621
+ _ref2 = ['error', 'open'];
622
+ for (_j = 0, _len1 = _ref2.length; _j < _len1; _j++) {
623
+ event = _ref2[_j];
624
+ request.addEventListener(event, function() {
625
+ return _this.progress = 100;
626
+ }, false);
627
+ }
628
+ }
629
+
630
+ return SocketRequestTracker;
631
+
632
+ })();
633
+
634
+ ElementMonitor = (function() {
635
+ function ElementMonitor(options) {
636
+ var selector, _j, _len1, _ref2;
637
+ if (options == null) {
638
+ options = {};
639
+ }
640
+ this.elements = [];
641
+ if (options.selectors == null) {
642
+ options.selectors = [];
643
+ }
644
+ _ref2 = options.selectors;
645
+ for (_j = 0, _len1 = _ref2.length; _j < _len1; _j++) {
646
+ selector = _ref2[_j];
647
+ this.elements.push(new ElementTracker(selector));
648
+ }
649
+ }
650
+
651
+ return ElementMonitor;
652
+
653
+ })();
654
+
655
+ ElementTracker = (function() {
656
+ function ElementTracker(selector) {
657
+ this.selector = selector;
658
+ this.progress = 0;
659
+ this.check();
660
+ }
661
+
662
+ ElementTracker.prototype.check = function() {
663
+ var _this = this;
664
+ if (document.querySelector(this.selector)) {
665
+ return this.done();
666
+ } else {
667
+ return setTimeout((function() {
668
+ return _this.check();
669
+ }), options.elements.checkInterval);
670
+ }
671
+ };
672
+
673
+ ElementTracker.prototype.done = function() {
674
+ return this.progress = 100;
675
+ };
676
+
677
+ return ElementTracker;
678
+
679
+ })();
680
+
681
+ DocumentMonitor = (function() {
682
+ DocumentMonitor.prototype.states = {
683
+ loading: 0,
684
+ interactive: 50,
685
+ complete: 100
686
+ };
687
+
688
+ function DocumentMonitor() {
689
+ var _onreadystatechange, _ref2,
690
+ _this = this;
691
+ this.progress = (_ref2 = this.states[document.readyState]) != null ? _ref2 : 100;
692
+ _onreadystatechange = document.onreadystatechange;
693
+ document.onreadystatechange = function() {
694
+ if (_this.states[document.readyState] != null) {
695
+ _this.progress = _this.states[document.readyState];
696
+ }
697
+ return typeof _onreadystatechange === "function" ? _onreadystatechange.apply(null, arguments) : void 0;
698
+ };
699
+ }
700
+
701
+ return DocumentMonitor;
702
+
703
+ })();
704
+
705
+ EventLagMonitor = (function() {
706
+ function EventLagMonitor() {
707
+ var avg, interval, last, points, samples,
708
+ _this = this;
709
+ this.progress = 0;
710
+ avg = 0;
711
+ samples = [];
712
+ points = 0;
713
+ last = now();
714
+ interval = setInterval(function() {
715
+ var diff;
716
+ diff = now() - last - 50;
717
+ last = now();
718
+ samples.push(diff);
719
+ if (samples.length > options.eventLag.sampleCount) {
720
+ samples.shift();
721
+ }
722
+ avg = avgAmplitude(samples);
723
+ if (++points >= options.eventLag.minSamples && avg < options.eventLag.lagThreshold) {
724
+ _this.progress = 100;
725
+ return clearInterval(interval);
726
+ } else {
727
+ return _this.progress = 100 * (3 / (avg + 3));
728
+ }
729
+ }, 50);
730
+ }
731
+
732
+ return EventLagMonitor;
733
+
734
+ })();
735
+
736
+ Scaler = (function() {
737
+ function Scaler(source) {
738
+ this.source = source;
739
+ this.last = this.sinceLastUpdate = 0;
740
+ this.rate = options.initialRate;
741
+ this.catchup = 0;
742
+ this.progress = this.lastProgress = 0;
743
+ if (this.source != null) {
744
+ this.progress = result(this.source, 'progress');
745
+ }
746
+ }
747
+
748
+ Scaler.prototype.tick = function(frameTime, val) {
749
+ var scaling;
750
+ if (val == null) {
751
+ val = result(this.source, 'progress');
752
+ }
753
+ if (val >= 100) {
754
+ this.done = true;
755
+ }
756
+ if (val === this.last) {
757
+ this.sinceLastUpdate += frameTime;
758
+ } else {
759
+ if (this.sinceLastUpdate) {
760
+ this.rate = (val - this.last) / this.sinceLastUpdate;
761
+ }
762
+ this.catchup = (val - this.progress) / options.catchupTime;
763
+ this.sinceLastUpdate = 0;
764
+ this.last = val;
765
+ }
766
+ if (val > this.progress) {
767
+ this.progress += this.catchup * frameTime;
768
+ }
769
+ scaling = 1 - Math.pow(this.progress / 100, options.easeFactor);
770
+ this.progress += scaling * this.rate * frameTime;
771
+ this.progress = Math.min(this.lastProgress + options.maxProgressPerFrame, this.progress);
772
+ this.progress = Math.max(0, this.progress);
773
+ this.progress = Math.min(100, this.progress);
774
+ this.lastProgress = this.progress;
775
+ return this.progress;
776
+ };
777
+
778
+ return Scaler;
779
+
780
+ })();
781
+
782
+ sources = null;
783
+
784
+ scalers = null;
785
+
786
+ bar = null;
787
+
788
+ uniScaler = null;
789
+
790
+ animation = null;
791
+
792
+ cancelAnimation = null;
793
+
794
+ Pace.running = false;
795
+
796
+ handlePushState = function() {
797
+ if (options.restartOnPushState) {
798
+ return Pace.restart();
799
+ }
800
+ };
801
+
802
+ if (window.history.pushState != null) {
803
+ _pushState = window.history.pushState;
804
+ window.history.pushState = function() {
805
+ handlePushState();
806
+ return _pushState.apply(window.history, arguments);
807
+ };
808
+ }
809
+
810
+ if (window.history.replaceState != null) {
811
+ _replaceState = window.history.replaceState;
812
+ window.history.replaceState = function() {
813
+ handlePushState();
814
+ return _replaceState.apply(window.history, arguments);
815
+ };
816
+ }
817
+
818
+ SOURCE_KEYS = {
819
+ ajax: AjaxMonitor,
820
+ elements: ElementMonitor,
821
+ document: DocumentMonitor,
822
+ eventLag: EventLagMonitor
823
+ };
824
+
825
+ (init = function() {
826
+ var type, _j, _k, _len1, _len2, _ref2, _ref3, _ref4;
827
+ Pace.sources = sources = [];
828
+ _ref2 = ['ajax', 'elements', 'document', 'eventLag'];
829
+ for (_j = 0, _len1 = _ref2.length; _j < _len1; _j++) {
830
+ type = _ref2[_j];
831
+ if (options[type] !== false) {
832
+ sources.push(new SOURCE_KEYS[type](options[type]));
833
+ }
834
+ }
835
+ _ref4 = (_ref3 = options.extraSources) != null ? _ref3 : [];
836
+ for (_k = 0, _len2 = _ref4.length; _k < _len2; _k++) {
837
+ source = _ref4[_k];
838
+ sources.push(new source(options));
839
+ }
840
+ Pace.bar = bar = new Bar;
841
+ scalers = [];
842
+ return uniScaler = new Scaler;
843
+ })();
844
+
845
+ Pace.stop = function() {
846
+ Pace.trigger('stop');
847
+ Pace.running = false;
848
+ bar.destroy();
849
+ cancelAnimation = true;
850
+ if (animation != null) {
851
+ if (typeof cancelAnimationFrame === "function") {
852
+ cancelAnimationFrame(animation);
853
+ }
854
+ animation = null;
855
+ }
856
+ return init();
857
+ };
858
+
859
+ Pace.restart = function() {
860
+ Pace.trigger('restart');
861
+ Pace.stop();
862
+ return Pace.start();
863
+ };
864
+
865
+ Pace.go = function() {
866
+ var start;
867
+ Pace.running = true;
868
+ bar.render();
869
+ start = now();
870
+ cancelAnimation = false;
871
+ return animation = runAnimation(function(frameTime, enqueueNextFrame) {
872
+ var avg, count, done, element, elements, i, j, remaining, scaler, scalerList, sum, _j, _k, _len1, _len2, _ref2;
873
+ remaining = 100 - bar.progress;
874
+ count = sum = 0;
875
+ done = true;
876
+ for (i = _j = 0, _len1 = sources.length; _j < _len1; i = ++_j) {
877
+ source = sources[i];
878
+ scalerList = scalers[i] != null ? scalers[i] : scalers[i] = [];
879
+ elements = (_ref2 = source.elements) != null ? _ref2 : [source];
880
+ for (j = _k = 0, _len2 = elements.length; _k < _len2; j = ++_k) {
881
+ element = elements[j];
882
+ scaler = scalerList[j] != null ? scalerList[j] : scalerList[j] = new Scaler(element);
883
+ done &= scaler.done;
884
+ if (scaler.done) {
885
+ continue;
886
+ }
887
+ count++;
888
+ sum += scaler.tick(frameTime);
889
+ }
890
+ }
891
+ avg = sum / count;
892
+ bar.update(uniScaler.tick(frameTime, avg));
893
+ if (bar.done() || done || cancelAnimation) {
894
+ bar.update(100);
895
+ Pace.trigger('done');
896
+ return setTimeout(function() {
897
+ bar.finish();
898
+ Pace.running = false;
899
+ return Pace.trigger('hide');
900
+ }, Math.max(options.ghostTime, Math.max(options.minTime - (now() - start), 0)));
901
+ } else {
902
+ return enqueueNextFrame();
903
+ }
904
+ });
905
+ };
906
+
907
+ Pace.start = function(_options) {
908
+ extend(options, _options);
909
+ Pace.running = true;
910
+ try {
911
+ bar.render();
912
+ } catch (_error) {
913
+ NoTargetError = _error;
914
+ }
915
+ if (!document.querySelector('.pace')) {
916
+ return setTimeout(Pace.start, 50);
917
+ } else {
918
+ Pace.trigger('start');
919
+ return Pace.go();
920
+ }
921
+ };
922
+
923
+ if (typeof define === 'function' && define.amd) {
924
+ define(['pace'], function() {
925
+ return Pace;
926
+ });
927
+ } else if (typeof exports === 'object') {
928
+ module.exports = Pace;
929
+ } else {
930
+ if (options.startOnPageLoad) {
931
+ Pace.start();
932
+ }
933
+ }
934
+
935
+ }).call(this);