kuppayam 0.1.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +7 -0
- data/MIT-LICENSE +20 -0
- data/README.md +28 -0
- data/Rakefile +37 -0
- data/app/assets/config/kuppayam_manifest.js +0 -0
- data/app/assets/images/kuppayam/defaults/default-large.png +0 -0
- data/app/assets/images/kuppayam/defaults/default-small.png +0 -0
- data/app/assets/images/kuppayam/defaults/user-large.png +0 -0
- data/app/assets/images/kuppayam/defaults/user-small.png +0 -0
- data/app/assets/images/kuppayam/favicon.png +0 -0
- data/app/assets/images/kuppayam/logo.png +0 -0
- data/app/assets/javascripts/jquery_with_ujs.js +15 -0
- data/app/assets/javascripts/kuppayam.js +21 -0
- data/app/assets/javascripts/kuppayam/utilities.js +68 -0
- data/app/assets/stylesheets/kuppayam.css +23 -0
- data/app/assets/stylesheets/kuppayam/custom.css +8 -0
- data/app/assets/stylesheets/kuppayam/handycss.css +996 -0
- data/app/controllers/kuppayam/base_controller.rb +43 -0
- data/app/helpers/breadcrumbs_helper.rb +27 -0
- data/app/helpers/filter_helper.rb +370 -0
- data/app/helpers/flash_helper.rb +54 -0
- data/app/helpers/image_helper.rb +209 -0
- data/app/helpers/kuppayam_helper.rb +72 -0
- data/app/helpers/meta_tags_helper.rb +50 -0
- data/app/helpers/navigation_helper.rb +17 -0
- data/app/helpers/params_parser_helper.rb +48 -0
- data/app/helpers/render_helper.rb +28 -0
- data/app/helpers/resource_helper.rb +133 -0
- data/app/views/kaminari/_first_page.html.erb +11 -0
- data/app/views/kaminari/_gap.html.erb +8 -0
- data/app/views/kaminari/_last_page.html.erb +11 -0
- data/app/views/kaminari/_next_page.html.erb +11 -0
- data/app/views/kaminari/_page.html.erb +12 -0
- data/app/views/kaminari/_paginator.html.erb +25 -0
- data/app/views/kaminari/_prev_page.html.erb +11 -0
- data/app/views/layouts/kuppayam/_footer.html.erb +25 -0
- data/app/views/layouts/kuppayam/_head.html.erb +29 -0
- data/app/views/layouts/kuppayam/_header.html.erb +43 -0
- data/app/views/layouts/kuppayam/_heading.html.erb +9 -0
- data/app/views/layouts/kuppayam/_navbar.html.erb +321 -0
- data/app/views/layouts/kuppayam/_overlays.html.erb +40 -0
- data/app/views/layouts/kuppayam/_settings_pane.html.erb +107 -0
- data/app/views/layouts/kuppayam/_sidebar.html.erb +612 -0
- data/app/views/layouts/kuppayam/_sidebar_old.html.erb +54 -0
- data/app/views/layouts/kuppayam/admin.html.erb +59 -0
- data/app/views/layouts/kuppayam/blank.html.erb +37 -0
- data/config/initializers/config_center.rb +60 -0
- data/config/initializers/kuppayam_validators.rb +76 -0
- data/config/routes.rb +2 -0
- data/lib/kuppayam.rb +8 -0
- data/lib/kuppayam/action_view/form_helper.rb +254 -0
- data/lib/kuppayam/action_view/modal_helper.rb +7 -0
- data/lib/kuppayam/action_view/theme_helper.rb +226 -0
- data/lib/kuppayam/engine.rb +34 -0
- data/lib/kuppayam/version.rb +3 -0
- data/lib/tasks/kuppayam_tasks.rake +4 -0
- data/vendor/assets/fonts/elusive/css/animation.css +85 -0
- data/vendor/assets/fonts/elusive/css/elusive-codes.css +272 -0
- data/vendor/assets/fonts/elusive/css/elusive-embedded.css +325 -0
- data/vendor/assets/fonts/elusive/css/elusive-ie7-codes.css +272 -0
- data/vendor/assets/fonts/elusive/css/elusive-ie7.css +283 -0
- data/vendor/assets/fonts/elusive/css/elusive.css +323 -0
- data/vendor/assets/fonts/elusive/font/elusive.eot +0 -0
- data/vendor/assets/fonts/elusive/font/elusive.svg +282 -0
- data/vendor/assets/fonts/elusive/font/elusive.ttf +0 -0
- data/vendor/assets/fonts/elusive/font/elusive.woff +0 -0
- data/vendor/assets/fonts/elusive/index.html +0 -0
- data/vendor/assets/fonts/fontawesome/css/font-awesome.css +1681 -0
- data/vendor/assets/fonts/fontawesome/css/font-awesome.min.css +4 -0
- data/vendor/assets/fonts/fontawesome/fonts/FontAwesome.otf +0 -0
- data/vendor/assets/fonts/fontawesome/fonts/fontawesome-webfont.eot +0 -0
- data/vendor/assets/fonts/fontawesome/fonts/fontawesome-webfont.svg +520 -0
- data/vendor/assets/fonts/fontawesome/fonts/fontawesome-webfont.ttf +0 -0
- data/vendor/assets/fonts/fontawesome/fonts/fontawesome-webfont.woff +0 -0
- data/vendor/assets/fonts/fontawesome/index.html +0 -0
- data/vendor/assets/fonts/glyphicons/glyphicons-halflings-regular.eot +0 -0
- data/vendor/assets/fonts/glyphicons/glyphicons-halflings-regular.svg +229 -0
- data/vendor/assets/fonts/glyphicons/glyphicons-halflings-regular.ttf +0 -0
- data/vendor/assets/fonts/glyphicons/glyphicons-halflings-regular.woff +0 -0
- data/vendor/assets/fonts/glyphicons/index.html +0 -0
- data/vendor/assets/fonts/linecons/css/animation.css +85 -0
- data/vendor/assets/fonts/linecons/css/linecons-codes.css +49 -0
- data/vendor/assets/fonts/linecons/css/linecons-embedded.css +102 -0
- data/vendor/assets/fonts/linecons/css/linecons-ie7-codes.css +49 -0
- data/vendor/assets/fonts/linecons/css/linecons-ie7.css +60 -0
- data/vendor/assets/fonts/linecons/css/linecons.css +100 -0
- data/vendor/assets/fonts/linecons/font/linecons.eot +0 -0
- data/vendor/assets/fonts/linecons/font/linecons.svg +59 -0
- data/vendor/assets/fonts/linecons/font/linecons.ttf +0 -0
- data/vendor/assets/fonts/linecons/font/linecons.woff +0 -0
- data/vendor/assets/fonts/linecons/index.html +0 -0
- data/vendor/assets/fonts/meteocons/css/animation.css +85 -0
- data/vendor/assets/fonts/meteocons/css/meteocons-codes.css +48 -0
- data/vendor/assets/fonts/meteocons/css/meteocons-embedded.css +101 -0
- data/vendor/assets/fonts/meteocons/css/meteocons-ie7-codes.css +48 -0
- data/vendor/assets/fonts/meteocons/css/meteocons-ie7.css +59 -0
- data/vendor/assets/fonts/meteocons/css/meteocons.css +99 -0
- data/vendor/assets/fonts/meteocons/font/meteocons.eot +0 -0
- data/vendor/assets/fonts/meteocons/font/meteocons.svg +58 -0
- data/vendor/assets/fonts/meteocons/font/meteocons.ttf +0 -0
- data/vendor/assets/fonts/meteocons/font/meteocons.woff +0 -0
- data/vendor/assets/fonts/meteocons/index.html +0 -0
- data/vendor/assets/images/flags/flag-al.png +0 -0
- data/vendor/assets/images/flags/flag-br.png +0 -0
- data/vendor/assets/images/flags/flag-de.png +0 -0
- data/vendor/assets/images/flags/flag-es.png +0 -0
- data/vendor/assets/images/flags/flag-fr.png +0 -0
- data/vendor/assets/images/flags/flag-uk.png +0 -0
- data/vendor/assets/images/flags/index.html +0 -0
- data/vendor/assets/javascripts/TweenLite.min.js +12 -0
- data/vendor/assets/javascripts/TweenMax.min.js +17 -0
- data/vendor/assets/javascripts/bootstrap.min.js +7 -0
- data/vendor/assets/javascripts/ckeditor/CHANGES.md +643 -0
- data/vendor/assets/javascripts/ckeditor/LICENSE.md +1264 -0
- data/vendor/assets/javascripts/ckeditor/README.md +39 -0
- data/vendor/assets/javascripts/ckeditor/adapters/jquery.js +10 -0
- data/vendor/assets/javascripts/ckeditor/build-config.js +152 -0
- data/vendor/assets/javascripts/ckeditor/ckeditor.js +936 -0
- data/vendor/assets/javascripts/ckeditor/config.js +42 -0
- data/vendor/assets/javascripts/ckeditor/contents.css +134 -0
- data/vendor/assets/javascripts/ckeditor/index.html +0 -0
- data/vendor/assets/javascripts/ckeditor/lang/af.js +5 -0
- data/vendor/assets/javascripts/ckeditor/lang/ar.js +5 -0
- data/vendor/assets/javascripts/ckeditor/lang/bg.js +5 -0
- data/vendor/assets/javascripts/ckeditor/lang/bn.js +5 -0
- data/vendor/assets/javascripts/ckeditor/lang/bs.js +5 -0
- data/vendor/assets/javascripts/ckeditor/lang/ca.js +5 -0
- data/vendor/assets/javascripts/ckeditor/lang/cs.js +5 -0
- data/vendor/assets/javascripts/ckeditor/lang/cy.js +5 -0
- data/vendor/assets/javascripts/ckeditor/lang/da.js +5 -0
- data/vendor/assets/javascripts/ckeditor/lang/de.js +5 -0
- data/vendor/assets/javascripts/ckeditor/lang/el.js +5 -0
- data/vendor/assets/javascripts/ckeditor/lang/en-au.js +5 -0
- data/vendor/assets/javascripts/ckeditor/lang/en-ca.js +5 -0
- data/vendor/assets/javascripts/ckeditor/lang/en-gb.js +5 -0
- data/vendor/assets/javascripts/ckeditor/lang/en.js +5 -0
- data/vendor/assets/javascripts/ckeditor/lang/eo.js +5 -0
- data/vendor/assets/javascripts/ckeditor/lang/es.js +5 -0
- data/vendor/assets/javascripts/ckeditor/lang/et.js +5 -0
- data/vendor/assets/javascripts/ckeditor/lang/eu.js +5 -0
- data/vendor/assets/javascripts/ckeditor/lang/fa.js +5 -0
- data/vendor/assets/javascripts/ckeditor/lang/fi.js +5 -0
- data/vendor/assets/javascripts/ckeditor/lang/fo.js +5 -0
- data/vendor/assets/javascripts/ckeditor/lang/fr-ca.js +5 -0
- data/vendor/assets/javascripts/ckeditor/lang/fr.js +5 -0
- data/vendor/assets/javascripts/ckeditor/lang/gl.js +5 -0
- data/vendor/assets/javascripts/ckeditor/lang/gu.js +5 -0
- data/vendor/assets/javascripts/ckeditor/lang/he.js +5 -0
- data/vendor/assets/javascripts/ckeditor/lang/hi.js +5 -0
- data/vendor/assets/javascripts/ckeditor/lang/hr.js +5 -0
- data/vendor/assets/javascripts/ckeditor/lang/hu.js +5 -0
- data/vendor/assets/javascripts/ckeditor/lang/id.js +5 -0
- data/vendor/assets/javascripts/ckeditor/lang/is.js +5 -0
- data/vendor/assets/javascripts/ckeditor/lang/it.js +5 -0
- data/vendor/assets/javascripts/ckeditor/lang/ja.js +5 -0
- data/vendor/assets/javascripts/ckeditor/lang/ka.js +5 -0
- data/vendor/assets/javascripts/ckeditor/lang/km.js +5 -0
- data/vendor/assets/javascripts/ckeditor/lang/ko.js +5 -0
- data/vendor/assets/javascripts/ckeditor/lang/ku.js +5 -0
- data/vendor/assets/javascripts/ckeditor/lang/lt.js +5 -0
- data/vendor/assets/javascripts/ckeditor/lang/lv.js +5 -0
- data/vendor/assets/javascripts/ckeditor/lang/mk.js +5 -0
- data/vendor/assets/javascripts/ckeditor/lang/mn.js +5 -0
- data/vendor/assets/javascripts/ckeditor/lang/ms.js +5 -0
- data/vendor/assets/javascripts/ckeditor/lang/nb.js +5 -0
- data/vendor/assets/javascripts/ckeditor/lang/nl.js +5 -0
- data/vendor/assets/javascripts/ckeditor/lang/no.js +5 -0
- data/vendor/assets/javascripts/ckeditor/lang/pl.js +5 -0
- data/vendor/assets/javascripts/ckeditor/lang/pt-br.js +5 -0
- data/vendor/assets/javascripts/ckeditor/lang/pt.js +5 -0
- data/vendor/assets/javascripts/ckeditor/lang/ro.js +5 -0
- data/vendor/assets/javascripts/ckeditor/lang/ru.js +5 -0
- data/vendor/assets/javascripts/ckeditor/lang/si.js +5 -0
- data/vendor/assets/javascripts/ckeditor/lang/sk.js +5 -0
- data/vendor/assets/javascripts/ckeditor/lang/sl.js +5 -0
- data/vendor/assets/javascripts/ckeditor/lang/sq.js +5 -0
- data/vendor/assets/javascripts/ckeditor/lang/sr-latn.js +5 -0
- data/vendor/assets/javascripts/ckeditor/lang/sr.js +5 -0
- data/vendor/assets/javascripts/ckeditor/lang/sv.js +5 -0
- data/vendor/assets/javascripts/ckeditor/lang/th.js +5 -0
- data/vendor/assets/javascripts/ckeditor/lang/tr.js +5 -0
- data/vendor/assets/javascripts/ckeditor/lang/tt.js +5 -0
- data/vendor/assets/javascripts/ckeditor/lang/ug.js +5 -0
- data/vendor/assets/javascripts/ckeditor/lang/uk.js +5 -0
- data/vendor/assets/javascripts/ckeditor/lang/vi.js +5 -0
- data/vendor/assets/javascripts/ckeditor/lang/zh-cn.js +5 -0
- data/vendor/assets/javascripts/ckeditor/lang/zh.js +5 -0
- data/vendor/assets/javascripts/ckeditor/plugins/a11yhelp/dialogs/a11yhelp.js +10 -0
- data/vendor/assets/javascripts/ckeditor/plugins/a11yhelp/dialogs/lang/_translationstatus.txt +25 -0
- data/vendor/assets/javascripts/ckeditor/plugins/a11yhelp/dialogs/lang/ar.js +11 -0
- data/vendor/assets/javascripts/ckeditor/plugins/a11yhelp/dialogs/lang/bg.js +11 -0
- data/vendor/assets/javascripts/ckeditor/plugins/a11yhelp/dialogs/lang/ca.js +13 -0
- data/vendor/assets/javascripts/ckeditor/plugins/a11yhelp/dialogs/lang/cs.js +13 -0
- data/vendor/assets/javascripts/ckeditor/plugins/a11yhelp/dialogs/lang/cy.js +11 -0
- data/vendor/assets/javascripts/ckeditor/plugins/a11yhelp/dialogs/lang/da.js +11 -0
- data/vendor/assets/javascripts/ckeditor/plugins/a11yhelp/dialogs/lang/de.js +12 -0
- data/vendor/assets/javascripts/ckeditor/plugins/a11yhelp/dialogs/lang/el.js +13 -0
- data/vendor/assets/javascripts/ckeditor/plugins/a11yhelp/dialogs/lang/en-gb.js +11 -0
- data/vendor/assets/javascripts/ckeditor/plugins/a11yhelp/dialogs/lang/en.js +11 -0
- data/vendor/assets/javascripts/ckeditor/plugins/a11yhelp/dialogs/lang/eo.js +13 -0
- data/vendor/assets/javascripts/ckeditor/plugins/a11yhelp/dialogs/lang/es.js +12 -0
- data/vendor/assets/javascripts/ckeditor/plugins/a11yhelp/dialogs/lang/et.js +11 -0
- data/vendor/assets/javascripts/ckeditor/plugins/a11yhelp/dialogs/lang/fa.js +11 -0
- data/vendor/assets/javascripts/ckeditor/plugins/a11yhelp/dialogs/lang/fi.js +12 -0
- data/vendor/assets/javascripts/ckeditor/plugins/a11yhelp/dialogs/lang/fr-ca.js +12 -0
- data/vendor/assets/javascripts/ckeditor/plugins/a11yhelp/dialogs/lang/fr.js +13 -0
- data/vendor/assets/javascripts/ckeditor/plugins/a11yhelp/dialogs/lang/gl.js +12 -0
- data/vendor/assets/javascripts/ckeditor/plugins/a11yhelp/dialogs/lang/gu.js +11 -0
- data/vendor/assets/javascripts/ckeditor/plugins/a11yhelp/dialogs/lang/he.js +11 -0
- data/vendor/assets/javascripts/ckeditor/plugins/a11yhelp/dialogs/lang/hi.js +11 -0
- data/vendor/assets/javascripts/ckeditor/plugins/a11yhelp/dialogs/lang/hr.js +11 -0
- data/vendor/assets/javascripts/ckeditor/plugins/a11yhelp/dialogs/lang/hu.js +13 -0
- data/vendor/assets/javascripts/ckeditor/plugins/a11yhelp/dialogs/lang/id.js +11 -0
- data/vendor/assets/javascripts/ckeditor/plugins/a11yhelp/dialogs/lang/it.js +13 -0
- data/vendor/assets/javascripts/ckeditor/plugins/a11yhelp/dialogs/lang/ja.js +9 -0
- data/vendor/assets/javascripts/ckeditor/plugins/a11yhelp/dialogs/lang/km.js +11 -0
- data/vendor/assets/javascripts/ckeditor/plugins/a11yhelp/dialogs/lang/ko.js +10 -0
- data/vendor/assets/javascripts/ckeditor/plugins/a11yhelp/dialogs/lang/ku.js +12 -0
- data/vendor/assets/javascripts/ckeditor/plugins/a11yhelp/dialogs/lang/lt.js +11 -0
- data/vendor/assets/javascripts/ckeditor/plugins/a11yhelp/dialogs/lang/lv.js +13 -0
- data/vendor/assets/javascripts/ckeditor/plugins/a11yhelp/dialogs/lang/mk.js +11 -0
- data/vendor/assets/javascripts/ckeditor/plugins/a11yhelp/dialogs/lang/mn.js +11 -0
- data/vendor/assets/javascripts/ckeditor/plugins/a11yhelp/dialogs/lang/nb.js +12 -0
- data/vendor/assets/javascripts/ckeditor/plugins/a11yhelp/dialogs/lang/nl.js +12 -0
- data/vendor/assets/javascripts/ckeditor/plugins/a11yhelp/dialogs/lang/no.js +11 -0
- data/vendor/assets/javascripts/ckeditor/plugins/a11yhelp/dialogs/lang/pl.js +13 -0
- data/vendor/assets/javascripts/ckeditor/plugins/a11yhelp/dialogs/lang/pt-br.js +12 -0
- data/vendor/assets/javascripts/ckeditor/plugins/a11yhelp/dialogs/lang/pt.js +12 -0
- data/vendor/assets/javascripts/ckeditor/plugins/a11yhelp/dialogs/lang/ro.js +12 -0
- data/vendor/assets/javascripts/ckeditor/plugins/a11yhelp/dialogs/lang/ru.js +11 -0
- data/vendor/assets/javascripts/ckeditor/plugins/a11yhelp/dialogs/lang/si.js +10 -0
- data/vendor/assets/javascripts/ckeditor/plugins/a11yhelp/dialogs/lang/sk.js +12 -0
- data/vendor/assets/javascripts/ckeditor/plugins/a11yhelp/dialogs/lang/sl.js +12 -0
- data/vendor/assets/javascripts/ckeditor/plugins/a11yhelp/dialogs/lang/sq.js +11 -0
- data/vendor/assets/javascripts/ckeditor/plugins/a11yhelp/dialogs/lang/sr-latn.js +11 -0
- data/vendor/assets/javascripts/ckeditor/plugins/a11yhelp/dialogs/lang/sr.js +11 -0
- data/vendor/assets/javascripts/ckeditor/plugins/a11yhelp/dialogs/lang/sv.js +12 -0
- data/vendor/assets/javascripts/ckeditor/plugins/a11yhelp/dialogs/lang/th.js +11 -0
- data/vendor/assets/javascripts/ckeditor/plugins/a11yhelp/dialogs/lang/tr.js +12 -0
- data/vendor/assets/javascripts/ckeditor/plugins/a11yhelp/dialogs/lang/tt.js +11 -0
- data/vendor/assets/javascripts/ckeditor/plugins/a11yhelp/dialogs/lang/ug.js +11 -0
- data/vendor/assets/javascripts/ckeditor/plugins/a11yhelp/dialogs/lang/uk.js +12 -0
- data/vendor/assets/javascripts/ckeditor/plugins/a11yhelp/dialogs/lang/vi.js +11 -0
- data/vendor/assets/javascripts/ckeditor/plugins/a11yhelp/dialogs/lang/zh-cn.js +9 -0
- data/vendor/assets/javascripts/ckeditor/plugins/a11yhelp/dialogs/lang/zh.js +9 -0
- data/vendor/assets/javascripts/ckeditor/plugins/about/dialogs/about.js +7 -0
- data/vendor/assets/javascripts/ckeditor/plugins/about/dialogs/hidpi/logo_ckeditor.png +0 -0
- data/vendor/assets/javascripts/ckeditor/plugins/about/dialogs/logo_ckeditor.png +0 -0
- data/vendor/assets/javascripts/ckeditor/plugins/clipboard/dialogs/paste.js +11 -0
- data/vendor/assets/javascripts/ckeditor/plugins/dialog/dialogDefinition.js +4 -0
- data/vendor/assets/javascripts/ckeditor/plugins/icons.png +0 -0
- data/vendor/assets/javascripts/ckeditor/plugins/icons_hidpi.png +0 -0
- data/vendor/assets/javascripts/ckeditor/plugins/image/dialogs/image.js +43 -0
- data/vendor/assets/javascripts/ckeditor/plugins/image/images/noimage.png +0 -0
- data/vendor/assets/javascripts/ckeditor/plugins/link/dialogs/anchor.js +7 -0
- data/vendor/assets/javascripts/ckeditor/plugins/link/dialogs/link.js +26 -0
- data/vendor/assets/javascripts/ckeditor/plugins/link/images/anchor.png +0 -0
- data/vendor/assets/javascripts/ckeditor/plugins/link/images/hidpi/anchor.png +0 -0
- data/vendor/assets/javascripts/ckeditor/plugins/magicline/images/hidpi/icon-rtl.png +0 -0
- data/vendor/assets/javascripts/ckeditor/plugins/magicline/images/hidpi/icon.png +0 -0
- data/vendor/assets/javascripts/ckeditor/plugins/magicline/images/icon-rtl.png +0 -0
- data/vendor/assets/javascripts/ckeditor/plugins/magicline/images/icon.png +0 -0
- data/vendor/assets/javascripts/ckeditor/plugins/pastefromword/filter/default.js +31 -0
- data/vendor/assets/javascripts/ckeditor/plugins/scayt/LICENSE.md +28 -0
- data/vendor/assets/javascripts/ckeditor/plugins/scayt/README.md +25 -0
- data/vendor/assets/javascripts/ckeditor/plugins/scayt/dialogs/options.js +17 -0
- data/vendor/assets/javascripts/ckeditor/plugins/scayt/dialogs/toolbar.css +71 -0
- data/vendor/assets/javascripts/ckeditor/plugins/specialchar/dialogs/lang/_translationstatus.txt +20 -0
- data/vendor/assets/javascripts/ckeditor/plugins/specialchar/dialogs/lang/ar.js +13 -0
- data/vendor/assets/javascripts/ckeditor/plugins/specialchar/dialogs/lang/bg.js +13 -0
- data/vendor/assets/javascripts/ckeditor/plugins/specialchar/dialogs/lang/ca.js +14 -0
- data/vendor/assets/javascripts/ckeditor/plugins/specialchar/dialogs/lang/cs.js +13 -0
- data/vendor/assets/javascripts/ckeditor/plugins/specialchar/dialogs/lang/cy.js +14 -0
- data/vendor/assets/javascripts/ckeditor/plugins/specialchar/dialogs/lang/de.js +13 -0
- data/vendor/assets/javascripts/ckeditor/plugins/specialchar/dialogs/lang/el.js +13 -0
- data/vendor/assets/javascripts/ckeditor/plugins/specialchar/dialogs/lang/en-gb.js +13 -0
- data/vendor/assets/javascripts/ckeditor/plugins/specialchar/dialogs/lang/en.js +13 -0
- data/vendor/assets/javascripts/ckeditor/plugins/specialchar/dialogs/lang/eo.js +12 -0
- data/vendor/assets/javascripts/ckeditor/plugins/specialchar/dialogs/lang/es.js +13 -0
- data/vendor/assets/javascripts/ckeditor/plugins/specialchar/dialogs/lang/et.js +13 -0
- data/vendor/assets/javascripts/ckeditor/plugins/specialchar/dialogs/lang/fa.js +12 -0
- data/vendor/assets/javascripts/ckeditor/plugins/specialchar/dialogs/lang/fi.js +13 -0
- data/vendor/assets/javascripts/ckeditor/plugins/specialchar/dialogs/lang/fr-ca.js +10 -0
- data/vendor/assets/javascripts/ckeditor/plugins/specialchar/dialogs/lang/fr.js +11 -0
- data/vendor/assets/javascripts/ckeditor/plugins/specialchar/dialogs/lang/gl.js +13 -0
- data/vendor/assets/javascripts/ckeditor/plugins/specialchar/dialogs/lang/he.js +12 -0
- data/vendor/assets/javascripts/ckeditor/plugins/specialchar/dialogs/lang/hr.js +13 -0
- data/vendor/assets/javascripts/ckeditor/plugins/specialchar/dialogs/lang/hu.js +12 -0
- data/vendor/assets/javascripts/ckeditor/plugins/specialchar/dialogs/lang/id.js +13 -0
- data/vendor/assets/javascripts/ckeditor/plugins/specialchar/dialogs/lang/it.js +14 -0
- data/vendor/assets/javascripts/ckeditor/plugins/specialchar/dialogs/lang/ja.js +9 -0
- data/vendor/assets/javascripts/ckeditor/plugins/specialchar/dialogs/lang/km.js +13 -0
- data/vendor/assets/javascripts/ckeditor/plugins/specialchar/dialogs/lang/ku.js +13 -0
- data/vendor/assets/javascripts/ckeditor/plugins/specialchar/dialogs/lang/lv.js +13 -0
- data/vendor/assets/javascripts/ckeditor/plugins/specialchar/dialogs/lang/nb.js +11 -0
- data/vendor/assets/javascripts/ckeditor/plugins/specialchar/dialogs/lang/nl.js +13 -0
- data/vendor/assets/javascripts/ckeditor/plugins/specialchar/dialogs/lang/no.js +11 -0
- data/vendor/assets/javascripts/ckeditor/plugins/specialchar/dialogs/lang/pl.js +12 -0
- data/vendor/assets/javascripts/ckeditor/plugins/specialchar/dialogs/lang/pt-br.js +11 -0
- data/vendor/assets/javascripts/ckeditor/plugins/specialchar/dialogs/lang/pt.js +13 -0
- data/vendor/assets/javascripts/ckeditor/plugins/specialchar/dialogs/lang/ru.js +13 -0
- data/vendor/assets/javascripts/ckeditor/plugins/specialchar/dialogs/lang/si.js +13 -0
- data/vendor/assets/javascripts/ckeditor/plugins/specialchar/dialogs/lang/sk.js +13 -0
- data/vendor/assets/javascripts/ckeditor/plugins/specialchar/dialogs/lang/sl.js +12 -0
- data/vendor/assets/javascripts/ckeditor/plugins/specialchar/dialogs/lang/sq.js +13 -0
- data/vendor/assets/javascripts/ckeditor/plugins/specialchar/dialogs/lang/sv.js +11 -0
- data/vendor/assets/javascripts/ckeditor/plugins/specialchar/dialogs/lang/th.js +13 -0
- data/vendor/assets/javascripts/ckeditor/plugins/specialchar/dialogs/lang/tr.js +12 -0
- data/vendor/assets/javascripts/ckeditor/plugins/specialchar/dialogs/lang/tt.js +13 -0
- data/vendor/assets/javascripts/ckeditor/plugins/specialchar/dialogs/lang/ug.js +13 -0
- data/vendor/assets/javascripts/ckeditor/plugins/specialchar/dialogs/lang/uk.js +12 -0
- data/vendor/assets/javascripts/ckeditor/plugins/specialchar/dialogs/lang/vi.js +14 -0
- data/vendor/assets/javascripts/ckeditor/plugins/specialchar/dialogs/lang/zh-cn.js +9 -0
- data/vendor/assets/javascripts/ckeditor/plugins/specialchar/dialogs/lang/zh.js +12 -0
- data/vendor/assets/javascripts/ckeditor/plugins/specialchar/dialogs/specialchar.js +14 -0
- data/vendor/assets/javascripts/ckeditor/plugins/table/dialogs/table.js +21 -0
- data/vendor/assets/javascripts/ckeditor/plugins/tabletools/dialogs/tableCell.js +17 -0
- data/vendor/assets/javascripts/ckeditor/plugins/wsc/LICENSE.md +28 -0
- data/vendor/assets/javascripts/ckeditor/plugins/wsc/README.md +25 -0
- data/vendor/assets/javascripts/ckeditor/plugins/wsc/dialogs/ciframe.html +66 -0
- data/vendor/assets/javascripts/ckeditor/plugins/wsc/dialogs/tmpFrameset.html +52 -0
- data/vendor/assets/javascripts/ckeditor/plugins/wsc/dialogs/wsc.css +82 -0
- data/vendor/assets/javascripts/ckeditor/plugins/wsc/dialogs/wsc.js +74 -0
- data/vendor/assets/javascripts/ckeditor/plugins/wsc/dialogs/wsc_ie.js +11 -0
- data/vendor/assets/javascripts/ckeditor/samples/ajax.html +82 -0
- data/vendor/assets/javascripts/ckeditor/samples/api.html +207 -0
- data/vendor/assets/javascripts/ckeditor/samples/appendto.html +56 -0
- data/vendor/assets/javascripts/ckeditor/samples/assets/inlineall/logo.png +0 -0
- data/vendor/assets/javascripts/ckeditor/samples/assets/outputxhtml/outputxhtml.css +204 -0
- data/vendor/assets/javascripts/ckeditor/samples/assets/posteddata.php +59 -0
- data/vendor/assets/javascripts/ckeditor/samples/assets/sample.jpg +0 -0
- data/vendor/assets/javascripts/ckeditor/samples/assets/uilanguages/languages.js +7 -0
- data/vendor/assets/javascripts/ckeditor/samples/datafiltering.html +401 -0
- data/vendor/assets/javascripts/ckeditor/samples/divreplace.html +141 -0
- data/vendor/assets/javascripts/ckeditor/samples/index.html +128 -0
- data/vendor/assets/javascripts/ckeditor/samples/inlineall.html +311 -0
- data/vendor/assets/javascripts/ckeditor/samples/inlinebycode.html +121 -0
- data/vendor/assets/javascripts/ckeditor/samples/inlinetextarea.html +110 -0
- data/vendor/assets/javascripts/ckeditor/samples/jquery.html +100 -0
- data/vendor/assets/javascripts/ckeditor/samples/plugins/dialog/assets/my_dialog.js +48 -0
- data/vendor/assets/javascripts/ckeditor/samples/plugins/dialog/dialog.html +187 -0
- data/vendor/assets/javascripts/ckeditor/samples/plugins/enterkey/enterkey.html +103 -0
- data/vendor/assets/javascripts/ckeditor/samples/plugins/htmlwriter/assets/outputforflash/outputforflash.fla +0 -0
- data/vendor/assets/javascripts/ckeditor/samples/plugins/htmlwriter/assets/outputforflash/outputforflash.swf +0 -0
- data/vendor/assets/javascripts/ckeditor/samples/plugins/htmlwriter/assets/outputforflash/swfobject.js +18 -0
- data/vendor/assets/javascripts/ckeditor/samples/plugins/htmlwriter/outputforflash.html +280 -0
- data/vendor/assets/javascripts/ckeditor/samples/plugins/htmlwriter/outputhtml.html +221 -0
- data/vendor/assets/javascripts/ckeditor/samples/plugins/magicline/magicline.html +206 -0
- data/vendor/assets/javascripts/ckeditor/samples/plugins/toolbar/toolbar.html +232 -0
- data/vendor/assets/javascripts/ckeditor/samples/plugins/wysiwygarea/fullpage.html +77 -0
- data/vendor/assets/javascripts/ckeditor/samples/readonly.html +73 -0
- data/vendor/assets/javascripts/ckeditor/samples/replacebyclass.html +57 -0
- data/vendor/assets/javascripts/ckeditor/samples/replacebycode.html +56 -0
- data/vendor/assets/javascripts/ckeditor/samples/sample.css +365 -0
- data/vendor/assets/javascripts/ckeditor/samples/sample.js +50 -0
- data/vendor/assets/javascripts/ckeditor/samples/sample_posteddata.php +16 -0
- data/vendor/assets/javascripts/ckeditor/samples/tabindex.html +75 -0
- data/vendor/assets/javascripts/ckeditor/samples/uicolor.html +69 -0
- data/vendor/assets/javascripts/ckeditor/samples/uilanguages.html +119 -0
- data/vendor/assets/javascripts/ckeditor/samples/xhtmlstyle.html +231 -0
- data/vendor/assets/javascripts/ckeditor/skins/bootstrapck/dev/icons16.svg +683 -0
- data/vendor/assets/javascripts/ckeditor/skins/bootstrapck/dev/icons32.svg +694 -0
- data/vendor/assets/javascripts/ckeditor/skins/bootstrapck/dev/locations.json +140 -0
- data/vendor/assets/javascripts/ckeditor/skins/bootstrapck/dialog.css +1 -0
- data/vendor/assets/javascripts/ckeditor/skins/bootstrapck/dialog_ie.css +1 -0
- data/vendor/assets/javascripts/ckeditor/skins/bootstrapck/dialog_ie7.css +1 -0
- data/vendor/assets/javascripts/ckeditor/skins/bootstrapck/dialog_ie8.css +1 -0
- data/vendor/assets/javascripts/ckeditor/skins/bootstrapck/dialog_iequirks.css +1 -0
- data/vendor/assets/javascripts/ckeditor/skins/bootstrapck/dialog_opera.css +1 -0
- data/vendor/assets/javascripts/ckeditor/skins/bootstrapck/editor.css +1 -0
- data/vendor/assets/javascripts/ckeditor/skins/bootstrapck/editor_gecko.css +1 -0
- data/vendor/assets/javascripts/ckeditor/skins/bootstrapck/editor_ie.css +1 -0
- data/vendor/assets/javascripts/ckeditor/skins/bootstrapck/editor_ie7.css +1 -0
- data/vendor/assets/javascripts/ckeditor/skins/bootstrapck/editor_ie8.css +1 -0
- data/vendor/assets/javascripts/ckeditor/skins/bootstrapck/editor_iequirks.css +1 -0
- data/vendor/assets/javascripts/ckeditor/skins/bootstrapck/icons.png +0 -0
- data/vendor/assets/javascripts/ckeditor/skins/bootstrapck/icons_hidpi.png +0 -0
- data/vendor/assets/javascripts/ckeditor/skins/bootstrapck/images/arrow.png +0 -0
- data/vendor/assets/javascripts/ckeditor/skins/bootstrapck/images/close.png +0 -0
- data/vendor/assets/javascripts/ckeditor/skins/bootstrapck/images/hidpi/close.png +0 -0
- data/vendor/assets/javascripts/ckeditor/skins/bootstrapck/images/hidpi/lock-open.png +0 -0
- data/vendor/assets/javascripts/ckeditor/skins/bootstrapck/images/hidpi/lock.png +0 -0
- data/vendor/assets/javascripts/ckeditor/skins/bootstrapck/images/hidpi/refresh.png +0 -0
- data/vendor/assets/javascripts/ckeditor/skins/bootstrapck/images/lock-open.png +0 -0
- data/vendor/assets/javascripts/ckeditor/skins/bootstrapck/images/lock.png +0 -0
- data/vendor/assets/javascripts/ckeditor/skins/bootstrapck/images/refresh.png +0 -0
- data/vendor/assets/javascripts/ckeditor/skins/bootstrapck/readme.md +35 -0
- data/vendor/assets/javascripts/ckeditor/skins/bootstrapck/sample/bootstrapck-sample.html +127 -0
- data/vendor/assets/javascripts/ckeditor/skins/bootstrapck/sample/css/bootstrapck-sample.css +1 -0
- data/vendor/assets/javascripts/ckeditor/skins/bootstrapck/sample/js/analytics.js +4 -0
- data/vendor/assets/javascripts/ckeditor/skins/bootstrapck/sample/js/jquery-1.11.0.min.js +189 -0
- data/vendor/assets/javascripts/ckeditor/skins/bootstrapck/scss/browser-specific/gecko/editor_gecko.scss +25 -0
- data/vendor/assets/javascripts/ckeditor/skins/bootstrapck/scss/browser-specific/ie/dialog_ie.scss +62 -0
- data/vendor/assets/javascripts/ckeditor/skins/bootstrapck/scss/browser-specific/ie/editor_ie.scss +71 -0
- data/vendor/assets/javascripts/ckeditor/skins/bootstrapck/scss/browser-specific/ie7/dialog_ie7.scss +68 -0
- data/vendor/assets/javascripts/ckeditor/skins/bootstrapck/scss/browser-specific/ie7/editor_ie7.scss +213 -0
- data/vendor/assets/javascripts/ckeditor/skins/bootstrapck/scss/browser-specific/ie8/dialog_ie8.scss +24 -0
- data/vendor/assets/javascripts/ckeditor/skins/bootstrapck/scss/browser-specific/ie8/editor_ie8.scss +27 -0
- data/vendor/assets/javascripts/ckeditor/skins/bootstrapck/scss/browser-specific/iequirks/dialog_iequirks.scss +21 -0
- data/vendor/assets/javascripts/ckeditor/skins/bootstrapck/scss/browser-specific/iequirks/editor_iequirks.scss +79 -0
- data/vendor/assets/javascripts/ckeditor/skins/bootstrapck/scss/browser-specific/opera/dialog_opera.scss +31 -0
- data/vendor/assets/javascripts/ckeditor/skins/bootstrapck/scss/components/_colorpanel.scss +119 -0
- data/vendor/assets/javascripts/ckeditor/skins/bootstrapck/scss/components/_elementspath.scss +66 -0
- data/vendor/assets/javascripts/ckeditor/skins/bootstrapck/scss/components/_mainui.scss +189 -0
- data/vendor/assets/javascripts/ckeditor/skins/bootstrapck/scss/components/_menu.scss +182 -0
- data/vendor/assets/javascripts/ckeditor/skins/bootstrapck/scss/components/_panel.scss +199 -0
- data/vendor/assets/javascripts/ckeditor/skins/bootstrapck/scss/components/_presets.scss +32 -0
- data/vendor/assets/javascripts/ckeditor/skins/bootstrapck/scss/components/_reset.scss +107 -0
- data/vendor/assets/javascripts/ckeditor/skins/bootstrapck/scss/components/_richcombo.scss +174 -0
- data/vendor/assets/javascripts/ckeditor/skins/bootstrapck/scss/components/_toolbar.scss +317 -0
- data/vendor/assets/javascripts/ckeditor/skins/bootstrapck/scss/components/editor.scss +66 -0
- data/vendor/assets/javascripts/ckeditor/skins/bootstrapck/scss/config/_colors.scss +61 -0
- data/vendor/assets/javascripts/ckeditor/skins/bootstrapck/scss/config/_config.scss +9 -0
- data/vendor/assets/javascripts/ckeditor/skins/bootstrapck/scss/config/_defaults.scss +37 -0
- data/vendor/assets/javascripts/ckeditor/skins/bootstrapck/scss/dialog/dialog.scss +822 -0
- data/vendor/assets/javascripts/ckeditor/skins/bootstrapck/skin.js +10 -0
- data/vendor/assets/javascripts/ckeditor/skins/moono/dialog.css +5 -0
- data/vendor/assets/javascripts/ckeditor/skins/moono/dialog_ie.css +5 -0
- data/vendor/assets/javascripts/ckeditor/skins/moono/dialog_ie7.css +5 -0
- data/vendor/assets/javascripts/ckeditor/skins/moono/dialog_ie8.css +5 -0
- data/vendor/assets/javascripts/ckeditor/skins/moono/dialog_iequirks.css +5 -0
- data/vendor/assets/javascripts/ckeditor/skins/moono/editor.css +5 -0
- data/vendor/assets/javascripts/ckeditor/skins/moono/editor_gecko.css +5 -0
- data/vendor/assets/javascripts/ckeditor/skins/moono/editor_ie.css +5 -0
- data/vendor/assets/javascripts/ckeditor/skins/moono/editor_ie7.css +5 -0
- data/vendor/assets/javascripts/ckeditor/skins/moono/editor_ie8.css +5 -0
- data/vendor/assets/javascripts/ckeditor/skins/moono/editor_iequirks.css +5 -0
- data/vendor/assets/javascripts/ckeditor/skins/moono/icons.png +0 -0
- data/vendor/assets/javascripts/ckeditor/skins/moono/icons_hidpi.png +0 -0
- data/vendor/assets/javascripts/ckeditor/skins/moono/images/arrow.png +0 -0
- data/vendor/assets/javascripts/ckeditor/skins/moono/images/close.png +0 -0
- data/vendor/assets/javascripts/ckeditor/skins/moono/images/hidpi/close.png +0 -0
- data/vendor/assets/javascripts/ckeditor/skins/moono/images/hidpi/lock-open.png +0 -0
- data/vendor/assets/javascripts/ckeditor/skins/moono/images/hidpi/lock.png +0 -0
- data/vendor/assets/javascripts/ckeditor/skins/moono/images/hidpi/refresh.png +0 -0
- data/vendor/assets/javascripts/ckeditor/skins/moono/images/lock-open.png +0 -0
- data/vendor/assets/javascripts/ckeditor/skins/moono/images/lock.png +0 -0
- data/vendor/assets/javascripts/ckeditor/skins/moono/images/refresh.png +0 -0
- data/vendor/assets/javascripts/ckeditor/skins/moono/readme.md +51 -0
- data/vendor/assets/javascripts/ckeditor/styles.js +111 -0
- data/vendor/assets/javascripts/colorpicker/bootstrap-colorpicker.min.js +1 -0
- data/vendor/assets/javascripts/colorpicker/images/alpha-horizontal.png +0 -0
- data/vendor/assets/javascripts/colorpicker/images/alpha.png +0 -0
- data/vendor/assets/javascripts/colorpicker/images/hue-horizontal.png +0 -0
- data/vendor/assets/javascripts/colorpicker/images/hue.png +0 -0
- data/vendor/assets/javascripts/colorpicker/images/saturation.png +0 -0
- data/vendor/assets/javascripts/colorpicker/index.html +0 -0
- data/vendor/assets/javascripts/cropper/cropper.css +266 -0
- data/vendor/assets/javascripts/cropper/cropper.js +1063 -0
- data/vendor/assets/javascripts/cropper/cropper.min.css +9 -0
- data/vendor/assets/javascripts/cropper/cropper.min.js +9 -0
- data/vendor/assets/javascripts/cropper/index.html +0 -0
- data/vendor/assets/javascripts/datatables/css/jquery.dataTables.css +476 -0
- data/vendor/assets/javascripts/datatables/css/jquery.dataTables.min.css +1 -0
- data/vendor/assets/javascripts/datatables/css/jquery.dataTables_themeroller.css +330 -0
- data/vendor/assets/javascripts/datatables/dataTables.bootstrap.css +281 -0
- data/vendor/assets/javascripts/datatables/dataTables.bootstrap.js +186 -0
- data/vendor/assets/javascripts/datatables/datatables-angular.js +2651 -0
- data/vendor/assets/javascripts/datatables/images/Sorting icons.psd +0 -0
- data/vendor/assets/javascripts/datatables/images/back_disabled.png +0 -0
- data/vendor/assets/javascripts/datatables/images/back_enabled.png +0 -0
- data/vendor/assets/javascripts/datatables/images/back_enabled_hover.png +0 -0
- data/vendor/assets/javascripts/datatables/images/favicon.ico +0 -0
- data/vendor/assets/javascripts/datatables/images/forward_disabled.png +0 -0
- data/vendor/assets/javascripts/datatables/images/forward_enabled.png +0 -0
- data/vendor/assets/javascripts/datatables/images/forward_enabled_hover.png +0 -0
- data/vendor/assets/javascripts/datatables/images/sort_asc.png +0 -0
- data/vendor/assets/javascripts/datatables/images/sort_asc_disabled.png +0 -0
- data/vendor/assets/javascripts/datatables/images/sort_both.png +0 -0
- data/vendor/assets/javascripts/datatables/images/sort_desc.png +0 -0
- data/vendor/assets/javascripts/datatables/images/sort_desc_disabled.png +0 -0
- data/vendor/assets/javascripts/datatables/index.html +0 -0
- data/vendor/assets/javascripts/datatables/js/jquery.dataTables.js +14624 -0
- data/vendor/assets/javascripts/datatables/js/jquery.dataTables.min.js +155 -0
- data/vendor/assets/javascripts/datatables/js/jquery.js +4 -0
- data/vendor/assets/javascripts/datatables/tabletools/copy_csv_xls.swf +0 -0
- data/vendor/assets/javascripts/datatables/tabletools/copy_csv_xls_pdf.swf +0 -0
- data/vendor/assets/javascripts/datatables/tabletools/dataTables.tableTools.css +361 -0
- data/vendor/assets/javascripts/datatables/tabletools/dataTables.tableTools.min.js +69 -0
- data/vendor/assets/javascripts/datatables/yadcf/jquery.dataTables.yadcf.css +116 -0
- data/vendor/assets/javascripts/datatables/yadcf/jquery.dataTables.yadcf.js +2235 -0
- data/vendor/assets/javascripts/datepicker/bootstrap-datepicker.js +1395 -0
- data/vendor/assets/javascripts/datepicker/index.html +0 -0
- data/vendor/assets/javascripts/daterangepicker/daterangepicker-bs2.css +256 -0
- data/vendor/assets/javascripts/daterangepicker/daterangepicker-bs3.css +288 -0
- data/vendor/assets/javascripts/daterangepicker/daterangepicker.js +1118 -0
- data/vendor/assets/javascripts/daterangepicker/index.html +0 -0
- data/vendor/assets/javascripts/devexpress-web-14.1/js/dx.chartjs.js +12 -0
- data/vendor/assets/javascripts/devexpress-web-14.1/js/globalize.min.js +12 -0
- data/vendor/assets/javascripts/devexpress-web-14.1/js/knockout-3.1.0.js +12 -0
- data/vendor/assets/javascripts/dropzone/css/basic.css +155 -0
- data/vendor/assets/javascripts/dropzone/css/dropzone.css +397 -0
- data/vendor/assets/javascripts/dropzone/css/stylus/basic.styl +165 -0
- data/vendor/assets/javascripts/dropzone/css/stylus/dropzone.styl +180 -0
- data/vendor/assets/javascripts/dropzone/dropzone-amd-module.min.js +1 -0
- data/vendor/assets/javascripts/dropzone/dropzone.min.js +1 -0
- data/vendor/assets/javascripts/dropzone/images/spritemap.png +0 -0
- data/vendor/assets/javascripts/dropzone/images/spritemap@2x.png +0 -0
- data/vendor/assets/javascripts/dropzone/index.html +0 -0
- data/vendor/assets/javascripts/formwizard/index.html +0 -0
- data/vendor/assets/javascripts/formwizard/jquery.bootstrap.wizard.js +331 -0
- data/vendor/assets/javascripts/formwizard/jquery.bootstrap.wizard.min.js +22 -0
- data/vendor/assets/javascripts/fullcalendar/fullcalendar.css +933 -0
- data/vendor/assets/javascripts/fullcalendar/fullcalendar.js +8391 -0
- data/vendor/assets/javascripts/fullcalendar/fullcalendar.min.css +5 -0
- data/vendor/assets/javascripts/fullcalendar/fullcalendar.min.js +8 -0
- data/vendor/assets/javascripts/fullcalendar/fullcalendar.print.css +201 -0
- data/vendor/assets/javascripts/fullcalendar/index.html +0 -0
- data/vendor/assets/javascripts/fullcalendar/moment.min.js +6 -0
- data/vendor/assets/javascripts/handlebars.min.js +28 -0
- data/vendor/assets/javascripts/icheck/icheck.min.js +11 -0
- data/vendor/assets/javascripts/icheck/index.html +0 -0
- data/vendor/assets/javascripts/icheck/skins/all.css +61 -0
- data/vendor/assets/javascripts/icheck/skins/flat/_all.css +530 -0
- data/vendor/assets/javascripts/icheck/skins/flat/aero.css +53 -0
- data/vendor/assets/javascripts/icheck/skins/flat/aero.png +0 -0
- data/vendor/assets/javascripts/icheck/skins/flat/aero@2x.png +0 -0
- data/vendor/assets/javascripts/icheck/skins/flat/blue.css +53 -0
- data/vendor/assets/javascripts/icheck/skins/flat/blue.png +0 -0
- data/vendor/assets/javascripts/icheck/skins/flat/blue@2x.png +0 -0
- data/vendor/assets/javascripts/icheck/skins/flat/flat.css +53 -0
- data/vendor/assets/javascripts/icheck/skins/flat/flat.png +0 -0
- data/vendor/assets/javascripts/icheck/skins/flat/flat@2x.png +0 -0
- data/vendor/assets/javascripts/icheck/skins/flat/green.css +53 -0
- data/vendor/assets/javascripts/icheck/skins/flat/green.png +0 -0
- data/vendor/assets/javascripts/icheck/skins/flat/green@2x.png +0 -0
- data/vendor/assets/javascripts/icheck/skins/flat/grey.css +53 -0
- data/vendor/assets/javascripts/icheck/skins/flat/grey.png +0 -0
- data/vendor/assets/javascripts/icheck/skins/flat/grey@2x.png +0 -0
- data/vendor/assets/javascripts/icheck/skins/flat/orange.css +53 -0
- data/vendor/assets/javascripts/icheck/skins/flat/orange.png +0 -0
- data/vendor/assets/javascripts/icheck/skins/flat/orange@2x.png +0 -0
- data/vendor/assets/javascripts/icheck/skins/flat/pink.css +53 -0
- data/vendor/assets/javascripts/icheck/skins/flat/pink.png +0 -0
- data/vendor/assets/javascripts/icheck/skins/flat/pink@2x.png +0 -0
- data/vendor/assets/javascripts/icheck/skins/flat/purple.css +53 -0
- data/vendor/assets/javascripts/icheck/skins/flat/purple.png +0 -0
- data/vendor/assets/javascripts/icheck/skins/flat/purple@2x.png +0 -0
- data/vendor/assets/javascripts/icheck/skins/flat/red.css +53 -0
- data/vendor/assets/javascripts/icheck/skins/flat/red.png +0 -0
- data/vendor/assets/javascripts/icheck/skins/flat/red@2x.png +0 -0
- data/vendor/assets/javascripts/icheck/skins/flat/yellow.css +53 -0
- data/vendor/assets/javascripts/icheck/skins/flat/yellow.png +0 -0
- data/vendor/assets/javascripts/icheck/skins/flat/yellow@2x.png +0 -0
- data/vendor/assets/javascripts/icheck/skins/futurico/futurico.css +53 -0
- data/vendor/assets/javascripts/icheck/skins/futurico/futurico.png +0 -0
- data/vendor/assets/javascripts/icheck/skins/futurico/futurico@2x.png +0 -0
- data/vendor/assets/javascripts/icheck/skins/line/_all.css +710 -0
- data/vendor/assets/javascripts/icheck/skins/line/aero.css +71 -0
- data/vendor/assets/javascripts/icheck/skins/line/blue.css +71 -0
- data/vendor/assets/javascripts/icheck/skins/line/green.css +71 -0
- data/vendor/assets/javascripts/icheck/skins/line/grey.css +71 -0
- data/vendor/assets/javascripts/icheck/skins/line/line.css +71 -0
- data/vendor/assets/javascripts/icheck/skins/line/line.png +0 -0
- data/vendor/assets/javascripts/icheck/skins/line/line@2x.png +0 -0
- data/vendor/assets/javascripts/icheck/skins/line/orange.css +71 -0
- data/vendor/assets/javascripts/icheck/skins/line/pink.css +71 -0
- data/vendor/assets/javascripts/icheck/skins/line/purple.css +71 -0
- data/vendor/assets/javascripts/icheck/skins/line/red.css +71 -0
- data/vendor/assets/javascripts/icheck/skins/line/yellow.css +71 -0
- data/vendor/assets/javascripts/icheck/skins/minimal/_all.css +590 -0
- data/vendor/assets/javascripts/icheck/skins/minimal/aero.css +59 -0
- data/vendor/assets/javascripts/icheck/skins/minimal/aero.png +0 -0
- data/vendor/assets/javascripts/icheck/skins/minimal/aero@2x.png +0 -0
- data/vendor/assets/javascripts/icheck/skins/minimal/blue.css +59 -0
- data/vendor/assets/javascripts/icheck/skins/minimal/blue.png +0 -0
- data/vendor/assets/javascripts/icheck/skins/minimal/blue@2x.png +0 -0
- data/vendor/assets/javascripts/icheck/skins/minimal/green.css +59 -0
- data/vendor/assets/javascripts/icheck/skins/minimal/green.png +0 -0
- data/vendor/assets/javascripts/icheck/skins/minimal/green@2x.png +0 -0
- data/vendor/assets/javascripts/icheck/skins/minimal/grey.css +59 -0
- data/vendor/assets/javascripts/icheck/skins/minimal/grey.png +0 -0
- data/vendor/assets/javascripts/icheck/skins/minimal/grey@2x.png +0 -0
- data/vendor/assets/javascripts/icheck/skins/minimal/minimal.css +59 -0
- data/vendor/assets/javascripts/icheck/skins/minimal/minimal.png +0 -0
- data/vendor/assets/javascripts/icheck/skins/minimal/minimal@2x.png +0 -0
- data/vendor/assets/javascripts/icheck/skins/minimal/orange.css +59 -0
- data/vendor/assets/javascripts/icheck/skins/minimal/orange.png +0 -0
- data/vendor/assets/javascripts/icheck/skins/minimal/orange@2x.png +0 -0
- data/vendor/assets/javascripts/icheck/skins/minimal/pink.css +59 -0
- data/vendor/assets/javascripts/icheck/skins/minimal/pink.png +0 -0
- data/vendor/assets/javascripts/icheck/skins/minimal/pink@2x.png +0 -0
- data/vendor/assets/javascripts/icheck/skins/minimal/purple.css +59 -0
- data/vendor/assets/javascripts/icheck/skins/minimal/purple.png +0 -0
- data/vendor/assets/javascripts/icheck/skins/minimal/purple@2x.png +0 -0
- data/vendor/assets/javascripts/icheck/skins/minimal/red.css +59 -0
- data/vendor/assets/javascripts/icheck/skins/minimal/red.png +0 -0
- data/vendor/assets/javascripts/icheck/skins/minimal/red@2x.png +0 -0
- data/vendor/assets/javascripts/icheck/skins/minimal/yellow.css +59 -0
- data/vendor/assets/javascripts/icheck/skins/minimal/yellow.png +0 -0
- data/vendor/assets/javascripts/icheck/skins/minimal/yellow@2x.png +0 -0
- data/vendor/assets/javascripts/icheck/skins/polaris/polaris.css +59 -0
- data/vendor/assets/javascripts/icheck/skins/polaris/polaris.png +0 -0
- data/vendor/assets/javascripts/icheck/skins/polaris/polaris@2x.png +0 -0
- data/vendor/assets/javascripts/icheck/skins/square/_all.css +590 -0
- data/vendor/assets/javascripts/icheck/skins/square/aero.css +59 -0
- data/vendor/assets/javascripts/icheck/skins/square/aero.png +0 -0
- data/vendor/assets/javascripts/icheck/skins/square/aero@2x.png +0 -0
- data/vendor/assets/javascripts/icheck/skins/square/blue.css +59 -0
- data/vendor/assets/javascripts/icheck/skins/square/blue.png +0 -0
- data/vendor/assets/javascripts/icheck/skins/square/blue@2x.png +0 -0
- data/vendor/assets/javascripts/icheck/skins/square/green.css +59 -0
- data/vendor/assets/javascripts/icheck/skins/square/green.png +0 -0
- data/vendor/assets/javascripts/icheck/skins/square/green@2x.png +0 -0
- data/vendor/assets/javascripts/icheck/skins/square/grey.css +59 -0
- data/vendor/assets/javascripts/icheck/skins/square/grey.png +0 -0
- data/vendor/assets/javascripts/icheck/skins/square/grey@2x.png +0 -0
- data/vendor/assets/javascripts/icheck/skins/square/orange.css +59 -0
- data/vendor/assets/javascripts/icheck/skins/square/orange.png +0 -0
- data/vendor/assets/javascripts/icheck/skins/square/orange@2x.png +0 -0
- data/vendor/assets/javascripts/icheck/skins/square/pink.css +59 -0
- data/vendor/assets/javascripts/icheck/skins/square/pink.png +0 -0
- data/vendor/assets/javascripts/icheck/skins/square/pink@2x.png +0 -0
- data/vendor/assets/javascripts/icheck/skins/square/purple.css +59 -0
- data/vendor/assets/javascripts/icheck/skins/square/purple.png +0 -0
- data/vendor/assets/javascripts/icheck/skins/square/purple@2x.png +0 -0
- data/vendor/assets/javascripts/icheck/skins/square/red.css +59 -0
- data/vendor/assets/javascripts/icheck/skins/square/red.png +0 -0
- data/vendor/assets/javascripts/icheck/skins/square/red@2x.png +0 -0
- data/vendor/assets/javascripts/icheck/skins/square/square.css +59 -0
- data/vendor/assets/javascripts/icheck/skins/square/square.png +0 -0
- data/vendor/assets/javascripts/icheck/skins/square/square@2x.png +0 -0
- data/vendor/assets/javascripts/icheck/skins/square/yellow.css +59 -0
- data/vendor/assets/javascripts/icheck/skins/square/yellow.png +0 -0
- data/vendor/assets/javascripts/icheck/skins/square/yellow@2x.png +0 -0
- data/vendor/assets/javascripts/inputmask/index.html +0 -0
- data/vendor/assets/javascripts/inputmask/inputmask/jquery.inputmask.date.extensions.js +8 -0
- data/vendor/assets/javascripts/inputmask/inputmask/jquery.inputmask.extensions.js +8 -0
- data/vendor/assets/javascripts/inputmask/inputmask/jquery.inputmask.js +9 -0
- data/vendor/assets/javascripts/inputmask/inputmask/jquery.inputmask.numeric.extensions.js +8 -0
- data/vendor/assets/javascripts/inputmask/inputmask/jquery.inputmask.phone.extensions.js +8 -0
- data/vendor/assets/javascripts/inputmask/inputmask/jquery.inputmask.regex.extensions.js +8 -0
- data/vendor/assets/javascripts/inputmask/jquery.inputmask.bundle.js +9 -0
- data/vendor/assets/javascripts/joinable.js +45 -0
- data/vendor/assets/javascripts/jquery-1.11.1.min.js +4 -0
- data/vendor/assets/javascripts/jquery-ui/external/jquery/jquery.js +9789 -0
- data/vendor/assets/javascripts/jquery-ui/index.html +317 -0
- data/vendor/assets/javascripts/jquery-ui/jquery-ui.css +239 -0
- data/vendor/assets/javascripts/jquery-ui/jquery-ui.js +6343 -0
- data/vendor/assets/javascripts/jquery-ui/jquery-ui.min.css +6 -0
- data/vendor/assets/javascripts/jquery-ui/jquery-ui.min.js +9 -0
- data/vendor/assets/javascripts/jquery-ui/jquery-ui.structure.css +245 -0
- data/vendor/assets/javascripts/jquery-ui/jquery-ui.structure.min.css +5 -0
- data/vendor/assets/javascripts/jquery-validate/additional-methods.js +928 -0
- data/vendor/assets/javascripts/jquery-validate/additional-methods.min.js +4 -0
- data/vendor/assets/javascripts/jquery-validate/index.html +0 -0
- data/vendor/assets/javascripts/jquery-validate/jquery.validate.js +1357 -0
- data/vendor/assets/javascripts/jquery-validate/jquery.validate.min.js +4 -0
- data/vendor/assets/javascripts/jquery-validate/localization/messages_ar.js +33 -0
- data/vendor/assets/javascripts/jquery-validate/localization/messages_ar.min.js +4 -0
- data/vendor/assets/javascripts/jquery-validate/localization/messages_bg.js +33 -0
- data/vendor/assets/javascripts/jquery-validate/localization/messages_bg.min.js +4 -0
- data/vendor/assets/javascripts/jquery-validate/localization/messages_ca.js +33 -0
- data/vendor/assets/javascripts/jquery-validate/localization/messages_ca.min.js +4 -0
- data/vendor/assets/javascripts/jquery-validate/localization/messages_cs.js +33 -0
- data/vendor/assets/javascripts/jquery-validate/localization/messages_cs.min.js +4 -0
- data/vendor/assets/javascripts/jquery-validate/localization/messages_da.js +30 -0
- data/vendor/assets/javascripts/jquery-validate/localization/messages_da.min.js +4 -0
- data/vendor/assets/javascripts/jquery-validate/localization/messages_de.js +30 -0
- data/vendor/assets/javascripts/jquery-validate/localization/messages_de.min.js +4 -0
- data/vendor/assets/javascripts/jquery-validate/localization/messages_el.js +33 -0
- data/vendor/assets/javascripts/jquery-validate/localization/messages_el.min.js +4 -0
- data/vendor/assets/javascripts/jquery-validate/localization/messages_es.js +36 -0
- data/vendor/assets/javascripts/jquery-validate/localization/messages_es.min.js +4 -0
- data/vendor/assets/javascripts/jquery-validate/localization/messages_es_AR.js +37 -0
- data/vendor/assets/javascripts/jquery-validate/localization/messages_es_AR.min.js +4 -0
- data/vendor/assets/javascripts/jquery-validate/localization/messages_et.js +31 -0
- data/vendor/assets/javascripts/jquery-validate/localization/messages_et.min.js +4 -0
- data/vendor/assets/javascripts/jquery-validate/localization/messages_eu.js +33 -0
- data/vendor/assets/javascripts/jquery-validate/localization/messages_eu.min.js +4 -0
- data/vendor/assets/javascripts/jquery-validate/localization/messages_fa.js +36 -0
- data/vendor/assets/javascripts/jquery-validate/localization/messages_fa.min.js +4 -0
- data/vendor/assets/javascripts/jquery-validate/localization/messages_fi.js +31 -0
- data/vendor/assets/javascripts/jquery-validate/localization/messages_fi.min.js +4 -0
- data/vendor/assets/javascripts/jquery-validate/localization/messages_fr.js +59 -0
- data/vendor/assets/javascripts/jquery-validate/localization/messages_fr.min.js +4 -0
- data/vendor/assets/javascripts/jquery-validate/localization/messages_gl.js +38 -0
- data/vendor/assets/javascripts/jquery-validate/localization/messages_gl.min.js +4 -0
- data/vendor/assets/javascripts/jquery-validate/localization/messages_he.js +33 -0
- data/vendor/assets/javascripts/jquery-validate/localization/messages_he.min.js +4 -0
- data/vendor/assets/javascripts/jquery-validate/localization/messages_hr.js +33 -0
- data/vendor/assets/javascripts/jquery-validate/localization/messages_hr.min.js +4 -0
- data/vendor/assets/javascripts/jquery-validate/localization/messages_hu.js +32 -0
- data/vendor/assets/javascripts/jquery-validate/localization/messages_hu.min.js +4 -0
- data/vendor/assets/javascripts/jquery-validate/localization/messages_id.js +32 -0
- data/vendor/assets/javascripts/jquery-validate/localization/messages_id.min.js +4 -0
- data/vendor/assets/javascripts/jquery-validate/localization/messages_is.js +31 -0
- data/vendor/assets/javascripts/jquery-validate/localization/messages_is.min.js +4 -0
- data/vendor/assets/javascripts/jquery-validate/localization/messages_it.js +36 -0
- data/vendor/assets/javascripts/jquery-validate/localization/messages_it.min.js +4 -0
- data/vendor/assets/javascripts/jquery-validate/localization/messages_ja.js +33 -0
- data/vendor/assets/javascripts/jquery-validate/localization/messages_ja.min.js +4 -0
- data/vendor/assets/javascripts/jquery-validate/localization/messages_ka.js +33 -0
- data/vendor/assets/javascripts/jquery-validate/localization/messages_ka.min.js +4 -0
- data/vendor/assets/javascripts/jquery-validate/localization/messages_kk.js +33 -0
- data/vendor/assets/javascripts/jquery-validate/localization/messages_kk.min.js +4 -0
- data/vendor/assets/javascripts/jquery-validate/localization/messages_ko.js +33 -0
- data/vendor/assets/javascripts/jquery-validate/localization/messages_ko.min.js +4 -0
- data/vendor/assets/javascripts/jquery-validate/localization/messages_lt.js +33 -0
- data/vendor/assets/javascripts/jquery-validate/localization/messages_lt.min.js +4 -0
- data/vendor/assets/javascripts/jquery-validate/localization/messages_lv.js +33 -0
- data/vendor/assets/javascripts/jquery-validate/localization/messages_lv.min.js +4 -0
- data/vendor/assets/javascripts/jquery-validate/localization/messages_my.js +33 -0
- data/vendor/assets/javascripts/jquery-validate/localization/messages_my.min.js +4 -0
- data/vendor/assets/javascripts/jquery-validate/localization/messages_nl.js +43 -0
- data/vendor/assets/javascripts/jquery-validate/localization/messages_nl.min.js +4 -0
- data/vendor/assets/javascripts/jquery-validate/localization/messages_no.js +33 -0
- data/vendor/assets/javascripts/jquery-validate/localization/messages_no.min.js +4 -0
- data/vendor/assets/javascripts/jquery-validate/localization/messages_pl.js +33 -0
- data/vendor/assets/javascripts/jquery-validate/localization/messages_pl.min.js +4 -0
- data/vendor/assets/javascripts/jquery-validate/localization/messages_pt_BR.js +37 -0
- data/vendor/assets/javascripts/jquery-validate/localization/messages_pt_BR.min.js +4 -0
- data/vendor/assets/javascripts/jquery-validate/localization/messages_pt_PT.js +37 -0
- data/vendor/assets/javascripts/jquery-validate/localization/messages_pt_PT.min.js +4 -0
- data/vendor/assets/javascripts/jquery-validate/localization/messages_ro.js +33 -0
- data/vendor/assets/javascripts/jquery-validate/localization/messages_ro.min.js +4 -0
- data/vendor/assets/javascripts/jquery-validate/localization/messages_ru.js +33 -0
- data/vendor/assets/javascripts/jquery-validate/localization/messages_ru.min.js +4 -0
- data/vendor/assets/javascripts/jquery-validate/localization/messages_si.js +33 -0
- data/vendor/assets/javascripts/jquery-validate/localization/messages_si.min.js +4 -0
- data/vendor/assets/javascripts/jquery-validate/localization/messages_sk.js +30 -0
- data/vendor/assets/javascripts/jquery-validate/localization/messages_sk.min.js +4 -0
- data/vendor/assets/javascripts/jquery-validate/localization/messages_sl.js +33 -0
- data/vendor/assets/javascripts/jquery-validate/localization/messages_sl.min.js +4 -0
- data/vendor/assets/javascripts/jquery-validate/localization/messages_sr.js +33 -0
- data/vendor/assets/javascripts/jquery-validate/localization/messages_sr.min.js +4 -0
- data/vendor/assets/javascripts/jquery-validate/localization/messages_sr_lat.js +33 -0
- data/vendor/assets/javascripts/jquery-validate/localization/messages_sr_lat.min.js +4 -0
- data/vendor/assets/javascripts/jquery-validate/localization/messages_sv.js +31 -0
- data/vendor/assets/javascripts/jquery-validate/localization/messages_sv.min.js +4 -0
- data/vendor/assets/javascripts/jquery-validate/localization/messages_th.js +33 -0
- data/vendor/assets/javascripts/jquery-validate/localization/messages_th.min.js +4 -0
- data/vendor/assets/javascripts/jquery-validate/localization/messages_tj.js +33 -0
- data/vendor/assets/javascripts/jquery-validate/localization/messages_tj.min.js +4 -0
- data/vendor/assets/javascripts/jquery-validate/localization/messages_tr.js +33 -0
- data/vendor/assets/javascripts/jquery-validate/localization/messages_tr.min.js +4 -0
- data/vendor/assets/javascripts/jquery-validate/localization/messages_uk.js +33 -0
- data/vendor/assets/javascripts/jquery-validate/localization/messages_uk.min.js +4 -0
- data/vendor/assets/javascripts/jquery-validate/localization/messages_vi.js +33 -0
- data/vendor/assets/javascripts/jquery-validate/localization/messages_vi.min.js +4 -0
- data/vendor/assets/javascripts/jquery-validate/localization/messages_zh.js +33 -0
- data/vendor/assets/javascripts/jquery-validate/localization/messages_zh.min.js +4 -0
- data/vendor/assets/javascripts/jquery-validate/localization/messages_zh_TW.js +34 -0
- data/vendor/assets/javascripts/jquery-validate/localization/messages_zh_TW.min.js +4 -0
- data/vendor/assets/javascripts/jquery-validate/localization/methods_de.js +22 -0
- data/vendor/assets/javascripts/jquery-validate/localization/methods_de.min.js +4 -0
- data/vendor/assets/javascripts/jquery-validate/localization/methods_es_CL.js +22 -0
- data/vendor/assets/javascripts/jquery-validate/localization/methods_es_CL.min.js +4 -0
- data/vendor/assets/javascripts/jquery-validate/localization/methods_fi.js +22 -0
- data/vendor/assets/javascripts/jquery-validate/localization/methods_fi.min.js +4 -0
- data/vendor/assets/javascripts/jquery-validate/localization/methods_nl.js +19 -0
- data/vendor/assets/javascripts/jquery-validate/localization/methods_nl.min.js +4 -0
- data/vendor/assets/javascripts/jquery-validate/localization/methods_pt.js +19 -0
- data/vendor/assets/javascripts/jquery-validate/localization/methods_pt.min.js +4 -0
- data/vendor/assets/javascripts/jquery.mousewheel.js +201 -0
- data/vendor/assets/javascripts/jvectormap/index.html +0 -0
- data/vendor/assets/javascripts/jvectormap/jquery-jvectormap-1.1.1.css +37 -0
- data/vendor/assets/javascripts/jvectormap/jquery-jvectormap-1.1.1.min.js +7 -0
- data/vendor/assets/javascripts/jvectormap/jquery-jvectormap-1.2.2.css +37 -0
- data/vendor/assets/javascripts/jvectormap/jquery-jvectormap-1.2.2.min.js +8 -0
- data/vendor/assets/javascripts/jvectormap/regions/index.html +0 -0
- data/vendor/assets/javascripts/jvectormap/regions/jquery-jvectormap-it-mill-en.js +1 -0
- data/vendor/assets/javascripts/jvectormap/regions/jquery-jvectormap-world-mill-en.js +1 -0
- data/vendor/assets/javascripts/knob/index.html +0 -0
- data/vendor/assets/javascripts/knob/jquery.knob.min.js +1 -0
- data/vendor/assets/javascripts/min/bootstrap.min-min.js +2 -0
- data/vendor/assets/javascripts/min/resizeable-min.js +1 -0
- data/vendor/assets/javascripts/min/xenon-notes-min.js +1 -0
- data/vendor/assets/javascripts/min/xenon-toggles-min.js +1 -0
- data/vendor/assets/javascripts/moment.min.js +6 -0
- data/vendor/assets/javascripts/multiselect/css/index.html +0 -0
- data/vendor/assets/javascripts/multiselect/css/multi-select.css +93 -0
- data/vendor/assets/javascripts/multiselect/img/index.html +0 -0
- data/vendor/assets/javascripts/multiselect/img/switch.png +0 -0
- data/vendor/assets/javascripts/multiselect/index.html +0 -0
- data/vendor/assets/javascripts/multiselect/js/index.html +0 -0
- data/vendor/assets/javascripts/multiselect/js/jquery.multi-select.js +532 -0
- data/vendor/assets/javascripts/resizeable.js +122 -0
- data/vendor/assets/javascripts/rwd-table/css/rwd-table.css +306 -0
- data/vendor/assets/javascripts/rwd-table/css/rwd-table.min.css +7 -0
- data/vendor/assets/javascripts/rwd-table/index.html +0 -0
- data/vendor/assets/javascripts/rwd-table/js/rwd-table.js +674 -0
- data/vendor/assets/javascripts/rwd-table/js/rwd-table.min.js +7 -0
- data/vendor/assets/javascripts/select2/LICENSE +18 -0
- data/vendor/assets/javascripts/select2/index.html +0 -0
- data/vendor/assets/javascripts/select2/select2-bootstrap.css +87 -0
- data/vendor/assets/javascripts/select2/select2-spinner.gif +0 -0
- data/vendor/assets/javascripts/select2/select2.css +704 -0
- data/vendor/assets/javascripts/select2/select2.jquery.json +36 -0
- data/vendor/assets/javascripts/select2/select2.js +3508 -0
- data/vendor/assets/javascripts/select2/select2.min.js +23 -0
- data/vendor/assets/javascripts/select2/select2.png +0 -0
- data/vendor/assets/javascripts/select2/select2_locale_ar.js +19 -0
- data/vendor/assets/javascripts/select2/select2_locale_az.js +20 -0
- data/vendor/assets/javascripts/select2/select2_locale_bg.js +20 -0
- data/vendor/assets/javascripts/select2/select2_locale_ca.js +19 -0
- data/vendor/assets/javascripts/select2/select2_locale_cs.js +51 -0
- data/vendor/assets/javascripts/select2/select2_locale_da.js +19 -0
- data/vendor/assets/javascripts/select2/select2_locale_de.js +18 -0
- data/vendor/assets/javascripts/select2/select2_locale_el.js +19 -0
- data/vendor/assets/javascripts/select2/select2_locale_en.js.template +20 -0
- data/vendor/assets/javascripts/select2/select2_locale_es.js +17 -0
- data/vendor/assets/javascripts/select2/select2_locale_et.js +19 -0
- data/vendor/assets/javascripts/select2/select2_locale_eu.js +45 -0
- data/vendor/assets/javascripts/select2/select2_locale_fa.js +21 -0
- data/vendor/assets/javascripts/select2/select2_locale_fi.js +30 -0
- data/vendor/assets/javascripts/select2/select2_locale_fr.js +18 -0
- data/vendor/assets/javascripts/select2/select2_locale_gl.js +45 -0
- data/vendor/assets/javascripts/select2/select2_locale_he.js +19 -0
- data/vendor/assets/javascripts/select2/select2_locale_hr.js +24 -0
- data/vendor/assets/javascripts/select2/select2_locale_hu.js +17 -0
- data/vendor/assets/javascripts/select2/select2_locale_id.js +19 -0
- data/vendor/assets/javascripts/select2/select2_locale_is.js +17 -0
- data/vendor/assets/javascripts/select2/select2_locale_it.js +17 -0
- data/vendor/assets/javascripts/select2/select2_locale_ja.js +17 -0
- data/vendor/assets/javascripts/select2/select2_locale_ka.js +19 -0
- data/vendor/assets/javascripts/select2/select2_locale_ko.js +19 -0
- data/vendor/assets/javascripts/select2/select2_locale_lt.js +26 -0
- data/vendor/assets/javascripts/select2/select2_locale_lv.js +19 -0
- data/vendor/assets/javascripts/select2/select2_locale_mk.js +19 -0
- data/vendor/assets/javascripts/select2/select2_locale_ms.js +19 -0
- data/vendor/assets/javascripts/select2/select2_locale_nl.js +17 -0
- data/vendor/assets/javascripts/select2/select2_locale_no.js +20 -0
- data/vendor/assets/javascripts/select2/select2_locale_pl.js +25 -0
- data/vendor/assets/javascripts/select2/select2_locale_pt-BR.js +17 -0
- data/vendor/assets/javascripts/select2/select2_locale_pt-PT.js +17 -0
- data/vendor/assets/javascripts/select2/select2_locale_ro.js +17 -0
- data/vendor/assets/javascripts/select2/select2_locale_rs.js +19 -0
- data/vendor/assets/javascripts/select2/select2_locale_ru.js +23 -0
- data/vendor/assets/javascripts/select2/select2_locale_sk.js +50 -0
- data/vendor/assets/javascripts/select2/select2_locale_sv.js +19 -0
- data/vendor/assets/javascripts/select2/select2_locale_th.js +19 -0
- data/vendor/assets/javascripts/select2/select2_locale_tr.js +19 -0
- data/vendor/assets/javascripts/select2/select2_locale_ug-CN.js +16 -0
- data/vendor/assets/javascripts/select2/select2_locale_uk.js +25 -0
- data/vendor/assets/javascripts/select2/select2_locale_vi.js +20 -0
- data/vendor/assets/javascripts/select2/select2_locale_zh-CN.js +16 -0
- data/vendor/assets/javascripts/select2/select2_locale_zh-TW.js +16 -0
- data/vendor/assets/javascripts/select2/select2x2.png +0 -0
- data/vendor/assets/javascripts/selectboxit/index.html +0 -0
- data/vendor/assets/javascripts/selectboxit/jquery.selectBoxIt.css +278 -0
- data/vendor/assets/javascripts/selectboxit/jquery.selectBoxIt.js +3259 -0
- data/vendor/assets/javascripts/selectboxit/jquery.selectBoxIt.min.js +4 -0
- data/vendor/assets/javascripts/tagsinput/bootstrap-tagsinput.css +46 -0
- data/vendor/assets/javascripts/tagsinput/bootstrap-tagsinput.js +617 -0
- data/vendor/assets/javascripts/tagsinput/bootstrap-tagsinput.less +50 -0
- data/vendor/assets/javascripts/tagsinput/bootstrap-tagsinput.min.js +7 -0
- data/vendor/assets/javascripts/tagsinput/bootstrap-tagsinput.min.js.map +1 -0
- data/vendor/assets/javascripts/tagsinput/index.html +0 -0
- data/vendor/assets/javascripts/tagsinput/min/bootstrap-tagsinput.min-min.js +8 -0
- data/vendor/assets/javascripts/timepicker/bootstrap-timepicker.min.js +5 -0
- data/vendor/assets/javascripts/timepicker/index.html +0 -0
- data/vendor/assets/javascripts/toastr/index.html +0 -0
- data/vendor/assets/javascripts/toastr/toastr-icon.png +0 -0
- data/vendor/assets/javascripts/toastr/toastr.css +180 -0
- data/vendor/assets/javascripts/toastr/toastr.js +350 -0
- data/vendor/assets/javascripts/toastr/toastr.less +232 -0
- data/vendor/assets/javascripts/toastr/toastr.min.css +1 -0
- data/vendor/assets/javascripts/toastr/toastr.min.js +1 -0
- data/vendor/assets/javascripts/toastr/toastr.min.js.map +8 -0
- data/vendor/assets/javascripts/toastr/toastr.scss +183 -0
- data/vendor/assets/javascripts/tocify/index.html +0 -0
- data/vendor/assets/javascripts/tocify/jquery.tocify.css +62 -0
- data/vendor/assets/javascripts/tocify/jquery.tocify.min.js +4 -0
- data/vendor/assets/javascripts/typeahead.bundle.js +1782 -0
- data/vendor/assets/javascripts/uikit/css/addons/uikit.addons.css +1253 -0
- data/vendor/assets/javascripts/uikit/css/addons/uikit.addons.min.css +3 -0
- data/vendor/assets/javascripts/uikit/css/addons/uikit.almost-flat.addons.css +1334 -0
- data/vendor/assets/javascripts/uikit/css/addons/uikit.almost-flat.addons.min.css +3 -0
- data/vendor/assets/javascripts/uikit/css/addons/uikit.gradient.addons.css +1355 -0
- data/vendor/assets/javascripts/uikit/css/addons/uikit.gradient.addons.min.css +3 -0
- data/vendor/assets/javascripts/uikit/css/index.html +0 -0
- data/vendor/assets/javascripts/uikit/css/uikit.almost-flat.css +7273 -0
- data/vendor/assets/javascripts/uikit/css/uikit.almost-flat.min.css +3 -0
- data/vendor/assets/javascripts/uikit/css/uikit.css +1 -0
- data/vendor/assets/javascripts/uikit/css/uikit.gradient.css +7341 -0
- data/vendor/assets/javascripts/uikit/css/uikit.gradient.min.css +3 -0
- data/vendor/assets/javascripts/uikit/css/uikit.min.css +3 -0
- data/vendor/assets/javascripts/uikit/fonts/FontAwesome.otf +0 -0
- data/vendor/assets/javascripts/uikit/fonts/fontawesome-webfont.eot +0 -0
- data/vendor/assets/javascripts/uikit/fonts/fontawesome-webfont.ttf +0 -0
- data/vendor/assets/javascripts/uikit/fonts/fontawesome-webfont.woff +0 -0
- data/vendor/assets/javascripts/uikit/fonts/index.html +0 -0
- data/vendor/assets/javascripts/uikit/index.html +0 -0
- data/vendor/assets/javascripts/uikit/js/addons/autocomplete.js +305 -0
- data/vendor/assets/javascripts/uikit/js/addons/autocomplete.min.js +3 -0
- data/vendor/assets/javascripts/uikit/js/addons/cover.js +90 -0
- data/vendor/assets/javascripts/uikit/js/addons/cover.min.js +3 -0
- data/vendor/assets/javascripts/uikit/js/addons/datepicker.js +379 -0
- data/vendor/assets/javascripts/uikit/js/addons/datepicker.min.js +3 -0
- data/vendor/assets/javascripts/uikit/js/addons/form-password.js +62 -0
- data/vendor/assets/javascripts/uikit/js/addons/form-password.min.js +3 -0
- data/vendor/assets/javascripts/uikit/js/addons/form-select.js +62 -0
- data/vendor/assets/javascripts/uikit/js/addons/form-select.min.js +3 -0
- data/vendor/assets/javascripts/uikit/js/addons/htmleditor.js +615 -0
- data/vendor/assets/javascripts/uikit/js/addons/htmleditor.min.js +3 -0
- data/vendor/assets/javascripts/uikit/js/addons/nestable.js +575 -0
- data/vendor/assets/javascripts/uikit/js/addons/nestable.min.js +3 -0
- data/vendor/assets/javascripts/uikit/js/addons/notify.js +180 -0
- data/vendor/assets/javascripts/uikit/js/addons/notify.min.js +3 -0
- data/vendor/assets/javascripts/uikit/js/addons/pagination.js +146 -0
- data/vendor/assets/javascripts/uikit/js/addons/pagination.min.js +3 -0
- data/vendor/assets/javascripts/uikit/js/addons/search.js +90 -0
- data/vendor/assets/javascripts/uikit/js/addons/search.min.js +3 -0
- data/vendor/assets/javascripts/uikit/js/addons/sortable.js +520 -0
- data/vendor/assets/javascripts/uikit/js/addons/sortable.min.js +3 -0
- data/vendor/assets/javascripts/uikit/js/addons/sticky.js +240 -0
- data/vendor/assets/javascripts/uikit/js/addons/sticky.min.js +3 -0
- data/vendor/assets/javascripts/uikit/js/addons/timepicker.js +165 -0
- data/vendor/assets/javascripts/uikit/js/addons/timepicker.min.js +3 -0
- data/vendor/assets/javascripts/uikit/js/addons/upload.js +256 -0
- data/vendor/assets/javascripts/uikit/js/addons/upload.min.js +3 -0
- data/vendor/assets/javascripts/uikit/js/index.html +0 -0
- data/vendor/assets/javascripts/uikit/js/uikit.js +2592 -0
- data/vendor/assets/javascripts/uikit/js/uikit.min.js +4 -0
- data/vendor/assets/javascripts/uikit/less/addons/autocomplete.less +102 -0
- data/vendor/assets/javascripts/uikit/less/addons/cover.less +70 -0
- data/vendor/assets/javascripts/uikit/less/addons/datepicker.less +193 -0
- data/vendor/assets/javascripts/uikit/less/addons/dotnav.less +141 -0
- data/vendor/assets/javascripts/uikit/less/addons/flex.less +62 -0
- data/vendor/assets/javascripts/uikit/less/addons/form-advanced.less +123 -0
- data/vendor/assets/javascripts/uikit/less/addons/form-file.less +63 -0
- data/vendor/assets/javascripts/uikit/less/addons/form-password.less +74 -0
- data/vendor/assets/javascripts/uikit/less/addons/form-select.less +66 -0
- data/vendor/assets/javascripts/uikit/less/addons/htmleditor.less +274 -0
- data/vendor/assets/javascripts/uikit/less/addons/nestable.less +204 -0
- data/vendor/assets/javascripts/uikit/less/addons/notify.less +191 -0
- data/vendor/assets/javascripts/uikit/less/addons/placeholder.less +66 -0
- data/vendor/assets/javascripts/uikit/less/addons/search.less +310 -0
- data/vendor/assets/javascripts/uikit/less/addons/slidenav.less +164 -0
- data/vendor/assets/javascripts/uikit/less/addons/sortable.less +110 -0
- data/vendor/assets/javascripts/uikit/less/addons/sticky.less +52 -0
- data/vendor/assets/javascripts/uikit/less/addons/upload.less +34 -0
- data/vendor/assets/javascripts/uikit/less/alert.less +141 -0
- data/vendor/assets/javascripts/uikit/less/animation.less +580 -0
- data/vendor/assets/javascripts/uikit/less/article.less +139 -0
- data/vendor/assets/javascripts/uikit/less/badge.less +111 -0
- data/vendor/assets/javascripts/uikit/less/base.less +521 -0
- data/vendor/assets/javascripts/uikit/less/breadcrumb.less +86 -0
- data/vendor/assets/javascripts/uikit/less/button.less +407 -0
- data/vendor/assets/javascripts/uikit/less/close.less +133 -0
- data/vendor/assets/javascripts/uikit/less/comment.less +172 -0
- data/vendor/assets/javascripts/uikit/less/description-list.less +70 -0
- data/vendor/assets/javascripts/uikit/less/dropdown.less +272 -0
- data/vendor/assets/javascripts/uikit/less/form.less +623 -0
- data/vendor/assets/javascripts/uikit/less/grid.less +593 -0
- data/vendor/assets/javascripts/uikit/less/icon.less +695 -0
- data/vendor/assets/javascripts/uikit/less/index.html +0 -0
- data/vendor/assets/javascripts/uikit/less/list.less +102 -0
- data/vendor/assets/javascripts/uikit/less/modal.less +226 -0
- data/vendor/assets/javascripts/uikit/less/nav.less +468 -0
- data/vendor/assets/javascripts/uikit/less/navbar.less +327 -0
- data/vendor/assets/javascripts/uikit/less/offcanvas.less +162 -0
- data/vendor/assets/javascripts/uikit/less/overlay.less +241 -0
- data/vendor/assets/javascripts/uikit/less/pagination.less +198 -0
- data/vendor/assets/javascripts/uikit/less/panel.less +244 -0
- data/vendor/assets/javascripts/uikit/less/print.less +52 -0
- data/vendor/assets/javascripts/uikit/less/progress.less +174 -0
- data/vendor/assets/javascripts/uikit/less/subnav.less +183 -0
- data/vendor/assets/javascripts/uikit/less/switcher.less +33 -0
- data/vendor/assets/javascripts/uikit/less/tab.less +368 -0
- data/vendor/assets/javascripts/uikit/less/table.less +120 -0
- data/vendor/assets/javascripts/uikit/less/text.less +124 -0
- data/vendor/assets/javascripts/uikit/less/thumbnail.less +123 -0
- data/vendor/assets/javascripts/uikit/less/tooltip.less +179 -0
- data/vendor/assets/javascripts/uikit/less/uikit-addons.less +26 -0
- data/vendor/assets/javascripts/uikit/less/uikit.css +4426 -0
- data/vendor/assets/javascripts/uikit/less/uikit.less +53 -0
- data/vendor/assets/javascripts/uikit/less/utility.less +526 -0
- data/vendor/assets/javascripts/uikit/less/variables.less +27 -0
- data/vendor/assets/javascripts/uikit/uikit.css +1 -0
- data/vendor/assets/javascripts/uikit/vendor/codemirror/codemirror.css +340 -0
- data/vendor/assets/javascripts/uikit/vendor/codemirror/codemirror.js +65 -0
- data/vendor/assets/javascripts/uikit/vendor/codemirror/show-hint.css +38 -0
- data/vendor/assets/javascripts/uikit/vendor/customizer.js +290 -0
- data/vendor/assets/javascripts/uikit/vendor/highlight/highlight.css +127 -0
- data/vendor/assets/javascripts/uikit/vendor/highlight/highlight.js +1 -0
- data/vendor/assets/javascripts/uikit/vendor/highlight/test.html +45 -0
- data/vendor/assets/javascripts/uikit/vendor/holder.js +648 -0
- data/vendor/assets/javascripts/uikit/vendor/index.html +0 -0
- data/vendor/assets/javascripts/uikit/vendor/jquery.js +4 -0
- data/vendor/assets/javascripts/uikit/vendor/jquery.less.js +274 -0
- data/vendor/assets/javascripts/uikit/vendor/jquery.mustache.js +16 -0
- data/vendor/assets/javascripts/uikit/vendor/jquery.rtl.js +271 -0
- data/vendor/assets/javascripts/uikit/vendor/less.js +16 -0
- data/vendor/assets/javascripts/uikit/vendor/marked.js +1272 -0
- data/vendor/assets/javascripts/uikit/vendor/spectrum/spectrum.css +480 -0
- data/vendor/assets/javascripts/uikit/vendor/spectrum/spectrum.js +1889 -0
- data/vendor/assets/javascripts/uikit/vendor/spectrum/test.html +343 -0
- data/vendor/assets/javascripts/wysihtml5/index.html +0 -0
- data/vendor/assets/javascripts/wysihtml5/lib/css/bootstrap-responsive.css +686 -0
- data/vendor/assets/javascripts/wysihtml5/lib/css/bootstrap-responsive.min.css +12 -0
- data/vendor/assets/javascripts/wysihtml5/lib/css/bootstrap.css +3990 -0
- data/vendor/assets/javascripts/wysihtml5/lib/css/bootstrap.min.css +689 -0
- data/vendor/assets/javascripts/wysihtml5/lib/css/index.html +0 -0
- data/vendor/assets/javascripts/wysihtml5/lib/css/prettify.css +30 -0
- data/vendor/assets/javascripts/wysihtml5/lib/css/wysiwyg-color.css +67 -0
- data/vendor/assets/javascripts/wysihtml5/lib/img/glyphicons-halflings-white.png +0 -0
- data/vendor/assets/javascripts/wysihtml5/lib/img/glyphicons-halflings.png +0 -0
- data/vendor/assets/javascripts/wysihtml5/lib/img/index.html +0 -0
- data/vendor/assets/javascripts/wysihtml5/lib/index.html +0 -0
- data/vendor/assets/javascripts/wysihtml5/lib/js/bootstrap-button.js +100 -0
- data/vendor/assets/javascripts/wysihtml5/lib/js/bootstrap.js +2025 -0
- data/vendor/assets/javascripts/wysihtml5/lib/js/bootstrap.min.js +6 -0
- data/vendor/assets/javascripts/wysihtml5/lib/js/index.html +0 -0
- data/vendor/assets/javascripts/wysihtml5/lib/js/jquery-1.7.2.min.js +4 -0
- data/vendor/assets/javascripts/wysihtml5/lib/js/prettify.js +28 -0
- data/vendor/assets/javascripts/wysihtml5/lib/js/wysihtml5-0.3.0.js +9523 -0
- data/vendor/assets/javascripts/wysihtml5/lib/js/wysihtml5-0.3.0.min.js +261 -0
- data/vendor/assets/javascripts/wysihtml5/src/bootstrap-wysihtml5.css +102 -0
- data/vendor/assets/javascripts/wysihtml5/src/bootstrap-wysihtml5.js +519 -0
- data/vendor/assets/javascripts/wysihtml5/src/index.html +0 -0
- data/vendor/assets/javascripts/wysihtml5/src/locales/bootstrap-wysihtml5.ar-AR.js +49 -0
- data/vendor/assets/javascripts/wysihtml5/src/locales/bootstrap-wysihtml5.bg-BG.js +49 -0
- data/vendor/assets/javascripts/wysihtml5/src/locales/bootstrap-wysihtml5.ca-CT.js +47 -0
- data/vendor/assets/javascripts/wysihtml5/src/locales/bootstrap-wysihtml5.cs-CZ.js +48 -0
- data/vendor/assets/javascripts/wysihtml5/src/locales/bootstrap-wysihtml5.da-DK.js +48 -0
- data/vendor/assets/javascripts/wysihtml5/src/locales/bootstrap-wysihtml5.de-DE.js +49 -0
- data/vendor/assets/javascripts/wysihtml5/src/locales/bootstrap-wysihtml5.el-GR.js +48 -0
- data/vendor/assets/javascripts/wysihtml5/src/locales/bootstrap-wysihtml5.es-AR.js +49 -0
- data/vendor/assets/javascripts/wysihtml5/src/locales/bootstrap-wysihtml5.es-ES.js +48 -0
- data/vendor/assets/javascripts/wysihtml5/src/locales/bootstrap-wysihtml5.fr-FR.js +49 -0
- data/vendor/assets/javascripts/wysihtml5/src/locales/bootstrap-wysihtml5.hr-HR.js +48 -0
- data/vendor/assets/javascripts/wysihtml5/src/locales/bootstrap-wysihtml5.it-IT.js +47 -0
- data/vendor/assets/javascripts/wysihtml5/src/locales/bootstrap-wysihtml5.ja-JP.js +49 -0
- data/vendor/assets/javascripts/wysihtml5/src/locales/bootstrap-wysihtml5.ko-KR.js +49 -0
- data/vendor/assets/javascripts/wysihtml5/src/locales/bootstrap-wysihtml5.lt-LT.js +48 -0
- data/vendor/assets/javascripts/wysihtml5/src/locales/bootstrap-wysihtml5.mo-MD.js +48 -0
- data/vendor/assets/javascripts/wysihtml5/src/locales/bootstrap-wysihtml5.nb-NB.js +49 -0
- data/vendor/assets/javascripts/wysihtml5/src/locales/bootstrap-wysihtml5.nl-NL.js +48 -0
- data/vendor/assets/javascripts/wysihtml5/src/locales/bootstrap-wysihtml5.pl-PL.js +48 -0
- data/vendor/assets/javascripts/wysihtml5/src/locales/bootstrap-wysihtml5.pt-BR.js +52 -0
- data/vendor/assets/javascripts/wysihtml5/src/locales/bootstrap-wysihtml5.ru-RU.js +49 -0
- data/vendor/assets/javascripts/wysihtml5/src/locales/bootstrap-wysihtml5.sk-SK.js +48 -0
- data/vendor/assets/javascripts/wysihtml5/src/locales/bootstrap-wysihtml5.sv-SE.js +48 -0
- data/vendor/assets/javascripts/wysihtml5/src/locales/bootstrap-wysihtml5.tr-TR.js +48 -0
- data/vendor/assets/javascripts/wysihtml5/src/locales/bootstrap-wysihtml5.ua-UA.js +49 -0
- data/vendor/assets/javascripts/wysihtml5/src/locales/bootstrap-wysihtml5.zh-CN.js +48 -0
- data/vendor/assets/javascripts/wysihtml5/src/locales/bootstrap-wysihtml5.zh-TW.js +48 -0
- data/vendor/assets/javascripts/wysihtml5/src/locales/index.html +0 -0
- data/vendor/assets/javascripts/wysihtml5/wysihtml5-angular.js +10042 -0
- data/vendor/assets/javascripts/xenon-api.js +91 -0
- data/vendor/assets/javascripts/xenon-custom.js +1950 -0
- data/vendor/assets/javascripts/xenon-notes.js +189 -0
- data/vendor/assets/javascripts/xenon-toggles.js +321 -0
- data/vendor/assets/javascripts/xenon-widgets.js +171 -0
- data/vendor/assets/stylesheets/bootstrap.css +1 -0
- data/vendor/assets/stylesheets/handycss.css +996 -0
- data/vendor/assets/stylesheets/other/wysihtml5-color.css +67 -0
- data/vendor/assets/stylesheets/xenon-components.css +1 -0
- data/vendor/assets/stylesheets/xenon-core.css +1 -0
- data/vendor/assets/stylesheets/xenon-forms.css +18 -0
- data/vendor/assets/stylesheets/xenon-skins.css +1 -0
- data/vendor/assets/stylesheets/xenon.css +18 -0
- metadata +1341 -0
@@ -0,0 +1,16 @@
|
|
1
|
+
/*!
|
2
|
+
* Less - Leaner CSS v1.7.5
|
3
|
+
* http://lesscss.org
|
4
|
+
*
|
5
|
+
* Copyright (c) 2009-2014, Alexis Sellier <self@cloudhead.net>
|
6
|
+
* Licensed under the Apache v2 License.
|
7
|
+
*
|
8
|
+
*/
|
9
|
+
|
10
|
+
/** * @license Apache v2
|
11
|
+
*/
|
12
|
+
|
13
|
+
!function(a,b){function c(b){return a.less[b.split("/")[1]]}function d(a,b){"undefined"!=typeof console&&w.logLevel>=b&&console.log("less: "+a)}function e(a){return a.replace(/^[a-z-]+:\/+?[^\/]+/,"").replace(/^\//,"").replace(/\.[a-zA-Z]+$/,"").replace(/[^\.\w-]+/g,"-").replace(/\./g,":")}function f(a,c){var e="{line} {content}",f=a.filename||c,g=[],h=(a.type||"Syntax")+"Error: "+(a.message||"There is an error in your .less file")+" in "+f+" ",i=function(a,c,d){a.extract[c]!==b&&g.push(e.replace(/\{line\}/,(parseInt(a.line,10)||0)+(c-1)).replace(/\{class\}/,d).replace(/\{content\}/,a.extract[c]))};a.extract?(i(a,0,""),i(a,1,"line"),i(a,2,""),h+="on line "+a.line+", column "+(a.column+1)+":\n"+g.join("\n")):a.stack&&(h+=a.stack),d(h,z.errors)}function g(a,b,c){var f=b.href||"",g="less:"+(b.title||e(f)),h=document.getElementById(g),i=!1,j=document.createElement("style");j.setAttribute("type","text/css"),b.media&&j.setAttribute("media",b.media),j.id=g,j.styleSheet||(j.appendChild(document.createTextNode(a)),i=null!==h&&h.childNodes.length>0&&j.childNodes.length>0&&h.firstChild.nodeValue===j.firstChild.nodeValue);var k=document.getElementsByTagName("head")[0];if(null===h||i===!1){var l=b&&b.nextSibling||null;l?l.parentNode.insertBefore(j,l):k.appendChild(j)}if(h&&i===!1&&h.parentNode.removeChild(h),j.styleSheet)try{j.styleSheet.cssText=a}catch(m){throw new Error("Couldn't reassign styleSheet.cssText.")}if(c&&D){d("saving "+f+" to cache.",z.info);try{D.setItem(f,a),D.setItem(f+":timestamp",c)}catch(m){d("failed to save",z.errors)}}}function h(a){return w.postProcessor&&"function"==typeof w.postProcessor&&(a=w.postProcessor.call(a,a)||a),a}function i(a,c){var d,f,h="less-error-message:"+e(c||""),i='<li><label>{line}</label><pre class="{class}">{content}</pre></li>',j=document.createElement("div"),k=[],l=a.filename||c,m=l.match(/([^\/]+(\?.*)?)$/)[1];j.id=h,j.className="less-error-message",f="<h3>"+(a.type||"Syntax")+"Error: "+(a.message||"There is an error in your .less file")+'</h3><p>in <a href="'+l+'">'+m+"</a> ";var n=function(a,c,d){a.extract[c]!==b&&k.push(i.replace(/\{line\}/,(parseInt(a.line,10)||0)+(c-1)).replace(/\{class\}/,d).replace(/\{content\}/,a.extract[c]))};a.extract?(n(a,0,""),n(a,1,"line"),n(a,2,""),f+="on line "+a.line+", column "+(a.column+1)+":</p><ul>"+k.join("")+"</ul>"):a.stack&&(f+="<br/>"+a.stack.split("\n").slice(1).join("<br/>")),j.innerHTML=f,g([".less-error-message ul, .less-error-message li {","list-style-type: none;","margin-right: 15px;","padding: 4px 0;","margin: 0;","}",".less-error-message label {","font-size: 12px;","margin-right: 15px;","padding: 4px 0;","color: #cc7777;","}",".less-error-message pre {","color: #dd6666;","padding: 4px 0;","margin: 0;","display: inline-block;","}",".less-error-message pre.line {","color: #ff0000;","}",".less-error-message h3 {","font-size: 20px;","font-weight: bold;","padding: 15px 0 5px 0;","margin: 0;","}",".less-error-message a {","color: #10a","}",".less-error-message .error {","color: red;","font-weight: bold;","padding-bottom: 2px;","border-bottom: 1px dashed red;","}"].join("\n"),{title:"error-message"}),j.style.cssText=["font-family: Arial, sans-serif","border: 1px solid #e00","background-color: #eee","border-radius: 5px","-webkit-border-radius: 5px","-moz-border-radius: 5px","color: #e00","padding: 15px","margin-bottom: 15px"].join(";"),"development"==w.env&&(d=setInterval(function(){document.body&&(document.getElementById(h)?document.body.replaceChild(j,document.getElementById(h)):document.body.insertBefore(j,document.body.firstChild),clearInterval(d))},10))}function j(a,b){w.errorReporting&&"html"!==w.errorReporting?"console"===w.errorReporting?f(a,b):"function"==typeof w.errorReporting&&w.errorReporting("add",a,b):i(a,b)}function k(a){var b=document.getElementById("less-error-message:"+e(a));b&&b.parentNode.removeChild(b)}function l(){}function m(a){w.errorReporting&&"html"!==w.errorReporting?"console"===w.errorReporting?l(a):"function"==typeof w.errorReporting&&w.errorReporting("remove",a):k(a)}function n(a){for(var b,c=document.getElementsByTagName("style"),d=0;d<c.length;d++)if(b=c[d],b.type.match(C)){var e=new w.tree.parseEnv(w),f=b.innerHTML||"";e.filename=document.location.href.replace(/#.*$/,""),(a||w.globalVars)&&(e.useFileCache=!0);var g=function(a){return function(b,c){if(b)return j(b,"inline");var d=c.toCSS(w);a.type="text/css",a.styleSheet?a.styleSheet.cssText=d:a.innerHTML=d}}(b);new w.Parser(e).parse(f,g,{globalVars:w.globalVars,modifyVars:a})}}function o(a,b){var c,d,e=/^((?:[a-z-]+:)?\/+?(?:[^\/\?#]*\/)|([\/\\]))?((?:[^\/\\\?#]*[\/\\])*)([^\/\\\?#]*)([#\?].*)?$/i,f=a.match(e),g={},h=[];if(!f)throw new Error("Could not parse sheet href - '"+a+"'");if(!f[1]||f[2]){if(d=b.match(e),!d)throw new Error("Could not parse page url - '"+b+"'");f[1]=f[1]||d[1]||"",f[2]||(f[3]=d[3]+f[3])}if(f[3]){for(h=f[3].replace(/\\/g,"/").split("/"),c=0;c<h.length;c++)"."===h[c]&&(h.splice(c,1),c-=1);for(c=0;c<h.length;c++)".."===h[c]&&c>0&&(h.splice(c-1,2),c-=2)}return g.hostPart=f[1],g.directories=h,g.path=f[1]+h.join("/"),g.fileUrl=g.path+(f[4]||""),g.url=g.fileUrl+(f[5]||""),g}function p(a,b){var c,d,e,f,g=o(a),h=o(b),i="";if(g.hostPart!==h.hostPart)return"";for(d=Math.max(h.directories.length,g.directories.length),c=0;d>c&&h.directories[c]===g.directories[c];c++);for(f=h.directories.slice(c),e=g.directories.slice(c),c=0;c<f.length-1;c++)i+="../";for(c=0;c<e.length-1;c++)i+=e[c]+"/";return i}function q(){if(a.XMLHttpRequest&&!("file:"===a.location.protocol&&"ActiveXObject"in a))return new XMLHttpRequest;try{return new ActiveXObject("Microsoft.XMLHTTP")}catch(b){return d("browser doesn't support AJAX.",z.errors),null}}function r(a,b,c,e){function f(b,c,d){b.status>=200&&b.status<300?c(b.responseText,b.getResponseHeader("Last-Modified")):"function"==typeof d&&d(b.status,a)}var g=q(),h=y?w.fileAsync:w.async;"function"==typeof g.overrideMimeType&&g.overrideMimeType("text/css"),d("XHR: Getting '"+a+"'",z.debug),g.open("GET",a,h),g.setRequestHeader("Accept",b||"text/x-less, text/css; q=0.9, */*; q=0.5"),g.send(null),y&&!w.fileAsync?0===g.status||g.status>=200&&g.status<300?c(g.responseText):e(g.status,a):h?g.onreadystatechange=function(){4==g.readyState&&f(g,c,e)}:f(g,c,e)}function s(b,c,d,e){c&&c.currentDirectory&&!/^([A-Za-z-]+:)?\//.test(b)&&(b=c.currentDirectory+b);var f=o(b,a.location.href),g=f.url,h={currentDirectory:f.path,filename:g};if(c?(h.entryPath=c.entryPath,h.rootpath=c.rootpath,h.rootFilename=c.rootFilename,h.relativeUrls=c.relativeUrls):(h.entryPath=f.path,h.rootpath=w.rootpath||f.path,h.rootFilename=g,h.relativeUrls=e.relativeUrls),h.relativeUrls&&(h.rootpath=e.rootpath?o(e.rootpath+p(f.path,h.entryPath)).path:f.path),e.useFileCache&&E[g])try{var i=E[g];d(null,i,g,h,{lastModified:new Date})}catch(j){d(j,null,g)}else r(g,e.mime,function(a,b){E[g]=a;try{d(null,a,g,h,{lastModified:b})}catch(c){d(c,null,g)}},function(a,b){d({type:"File",message:"'"+b+"' wasn't found ("+a+")"},null,g)})}function t(a,b,c,d,e){var f=new w.tree.parseEnv(w);f.mime=a.type,(e||w.globalVars)&&(f.useFileCache=!0),s(a.href,null,function(h,i,j,k,l){if(l){l.remaining=d;var n=D&&D.getItem(j),o=D&&D.getItem(j+":timestamp");if(!c&&o&&l.lastModified&&new Date(l.lastModified).valueOf()===new Date(o).valueOf())return g(n,a),l.local=!0,void b(null,null,i,a,l,j)}m(j),i?(f.currentFileInfo=k,new w.Parser(f).parse(i,function(c,d){if(c)return b(c,null,null,a);try{b(c,d,i,a,l,j)}catch(c){b(c,null,null,a)}},{modifyVars:e,globalVars:w.globalVars})):b(h,null,null,a,l,j)},f,e)}function u(a,b,c){for(var d=0;d<w.sheets.length;d++)t(w.sheets[d],a,b,w.sheets.length-(d+1),c)}function v(){"development"===w.env?(w.optimization=0,w.watchTimer=setInterval(function(){w.watchMode&&u(function(a,b,c,d,e){if(a)j(a,d.href);else if(b){var f=b.toCSS(w);f=h(f),g(f,d,e.lastModified)}})},w.poll)):w.optimization=3}("undefined"==typeof a.less||"undefined"!=typeof a.less.nodeType)&&(a.less={}),w=a.less,x=a.less.tree={},w.mode="browser";var w,x;w===b&&(w=exports,x=c("./tree"),w.mode="node"),w.Parser=function(a){function d(){D=y,G.push({current:C,i:y,j:z})}function e(){var a=G.pop();C=a.current,D=y=a.i,z=a.j}function f(){G.pop()}function g(){y>D&&(C=C.slice(y-D),D=y)}function h(a,b){var c=a.charCodeAt(0|b);return 32>=c&&(32===c||10===c||9===c)}function i(a){var b,c,d=typeof a;return"string"===d?v.charAt(y)!==a?null:(l(1),a):(g(),(b=a.exec(C))?(c=b[0].length,l(c),"string"==typeof b?b:1===b.length?b[0]:b):null)}function j(a){y>D&&(C=C.slice(y-D),D=y);var b=a.exec(C);return b?(l(b[0].length),"string"==typeof b?b:1===b.length?b[0]:b):null}function k(a){return v.charAt(y)!==a?null:(l(1),a)}function l(a){for(var b,c=y,d=z,e=y-D,f=y+C.length-e,g=y+=a,h=v;f>y&&(b=h.charCodeAt(y),!(b>32))&&(32===b||10===b||9===b||13===b);y++);return C=C.slice(a+y-g+e),D=y,!C.length&&z<B.length-1?(C=B[++z],l(0),!0):c!==y||d!==z}function m(a,b){var c="[object Function]"===Object.prototype.toString.call(a)?a.call(F):i(a);return c?c:void o(b||("string"==typeof a?"expected '"+a+"' got '"+v.charAt(y)+"'":"unexpected token"))}function n(a,b){return v.charAt(y)===a?(l(1),a):void o(b||"expected '"+a+"' got '"+v.charAt(y)+"'")}function o(a,b){var c=new Error(a);throw c.index=y,c.type=b||"Syntax",c}function p(a){return"string"==typeof a?v.charAt(y)===a:a.test(C)}function q(a){return v.charAt(y)===a}function r(a,b){return a.filename&&b.currentFileInfo.filename&&a.filename!==b.currentFileInfo.filename?E.imports.contents[a.filename]:v}function s(a,b){for(var c=a+1,d=null,e=-1;--c>=0&&"\n"!==b.charAt(c);)e++;return"number"==typeof a&&(d=(b.slice(0,a).match(/\n/g)||"").length),{line:d,column:e}}function t(a,b,d){var e=d.currentFileInfo.filename;return"browser"!==w.mode&&"rhino"!==w.mode&&(e=c("path").resolve(e)),{lineNumber:s(a,b).line+1,fileName:e}}function u(a,b){var c=r(a,b),d=s(a.index,c),e=d.line,f=d.column,g=a.call&&s(a.call,c).line,h=c.split("\n");this.type=a.type||"Syntax",this.message=a.message,this.filename=a.filename||b.currentFileInfo.filename,this.index=a.index,this.line="number"==typeof e?e+1:null,this.callLine=g+1,this.callExtract=h[g],this.stack=a.stack,this.column=f,this.extract=[h[e-1],h[e],h[e+1]]}var v,y,z,A,B,C,D,E,F,G=[],H=a&&a.filename;a instanceof x.parseEnv||(a=new x.parseEnv(a));var I=this.imports={paths:a.paths||[],queue:[],files:a.files,contents:a.contents,contentsIgnoredChars:a.contentsIgnoredChars,mime:a.mime,error:null,push:function(b,c,d,e){var f=this;this.queue.push(b);var g=function(a,c,d){f.queue.splice(f.queue.indexOf(b),1);var g=d===H;f.files[d]=c,a&&!f.error&&(f.error=a),e(a,c,g,d)};w.Parser.importer?w.Parser.importer(b,c,g,a):w.Parser.fileLoader(b,c,function(b,e,f,h){if(b)return void g(b);var i=new x.parseEnv(a);i.currentFileInfo=h,i.processImports=!1,i.contents[f]=e,(c.reference||d.reference)&&(h.reference=!0),d.inline?g(null,e,f):new w.Parser(i).parse(e,function(a,b){g(a,b,f)})},a)}},J=j;return u.prototype=new Error,u.prototype.constructor=u,this.env=a=a||{},this.optimization="optimization"in this.env?this.env.optimization:1,E={imports:I,parse:function(d,e,f){var g,h,i,j,k,l=null,m="";if(y=z=D=A=0,j=f&&f.globalVars?w.Parser.serializeVars(f.globalVars)+"\n":"",k=f&&f.modifyVars?"\n"+w.Parser.serializeVars(f.modifyVars):"",(j||f&&f.banner)&&(m=(f&&f.banner?f.banner:"")+j,E.imports.contentsIgnoredChars[a.currentFileInfo.filename]=m.length),d=d.replace(/\r\n/g,"\n"),v=d=m+d.replace(/^\uFEFF/,"")+k,E.imports.contents[a.currentFileInfo.filename]=d,B=function(b){function c(b,c){l=new u({index:c||i,type:"Parse",message:b,filename:a.currentFileInfo.filename},a)}function d(a){var c=i-s;512>c&&!a||!c||(r.push(b.slice(s,i+1)),s=i+1)}var e,f,g,h,i,j,k,m,n,o=b.length,p=0,q=0,r=[],s=0;for(i=0;o>i;i++)if(k=b.charCodeAt(i),!(k>=97&&122>=k||34>k))switch(k){case 40:q++,f=i;continue;case 41:if(--q<0)return c("missing opening `(`");continue;case 59:q||d();continue;case 123:p++,e=i;continue;case 125:if(--p<0)return c("missing opening `{`");p||q||d();continue;case 92:if(o-1>i){i++;continue}return c("unescaped `\\`");case 34:case 39:case 96:for(n=0,j=i,i+=1;o>i;i++)if(m=b.charCodeAt(i),!(m>96)){if(m==k){n=1;break}if(92==m){if(i==o-1)return c("unescaped `\\`");i++}}if(n)continue;return c("unmatched `"+String.fromCharCode(k)+"`",j);case 47:if(q||i==o-1)continue;if(m=b.charCodeAt(i+1),47==m)for(i+=2;o>i&&(m=b.charCodeAt(i),!(13>=m)||10!=m&&13!=m);i++);else if(42==m){for(g=j=i,i+=2;o-1>i&&(m=b.charCodeAt(i),125==m&&(h=i),42!=m||47!=b.charCodeAt(i+1));i++);if(i==o-1)return c("missing closing `*/`",j);i++}continue;case 42:if(o-1>i&&47==b.charCodeAt(i+1))return c("unmatched `/*`");continue}return 0!==p?g>e&&h>g?c("missing closing `}` or `*/`",e):c("missing closing `}`",e):0!==q?c("missing closing `)`",f):(d(!0),r)}(d),l)return e(new u(l,a));C=B[0];try{g=new x.Ruleset(null,this.parsers.primary()),g.root=!0,g.firstRoot=!0}catch(n){return e(new u(n,a))}if(g.toCSS=function(d){return function(e,f){e=e||{};var g,h,i=new x.evalEnv(e);"object"!=typeof f||Array.isArray(f)||(f=Object.keys(f).map(function(a){var b=f[a];return b instanceof x.Value||(b instanceof x.Expression||(b=new x.Expression([b])),b=new x.Value([b])),new x.Rule("@"+a,b,!1,null,0)}),i.frames=[new x.Ruleset(null,f)]);try{var j,k=[],l=[new x.joinSelectorVisitor,new x.processExtendsVisitor,new x.toCSSVisitor({compress:Boolean(e.compress)})],m=this;if(e.plugins)for(j=0;j<e.plugins.length;j++)e.plugins[j].isPreEvalVisitor?k.push(e.plugins[j]):e.plugins[j].isPreVisitor?l.splice(0,0,e.plugins[j]):l.push(e.plugins[j]);for(j=0;j<k.length;j++)k[j].run(m);for(g=d.call(m,i),j=0;j<l.length;j++)l[j].run(g);e.sourceMap&&(g=new x.sourceMapOutput({contentsIgnoredCharsMap:E.imports.contentsIgnoredChars,writeSourceMap:e.writeSourceMap,rootNode:g,contentsMap:E.imports.contents,sourceMapFilename:e.sourceMapFilename,sourceMapURL:e.sourceMapURL,outputFilename:e.sourceMapOutputFilename,sourceMapBasepath:e.sourceMapBasepath,sourceMapRootpath:e.sourceMapRootpath,outputSourceFiles:e.outputSourceFiles,sourceMapGenerator:e.sourceMapGenerator})),h=g.toCSS({compress:Boolean(e.compress),dumpLineNumbers:a.dumpLineNumbers,strictUnits:Boolean(e.strictUnits),numPrecision:8})}catch(n){throw new u(n,a)}if(e.cleancss&&"node"===w.mode){var o=c("clean-css"),p=e.cleancssOptions||{};return p.keepSpecialComments===b&&(p.keepSpecialComments="*"),p.processImport=!1,p.noRebase=!0,p.noAdvanced===b&&(p.noAdvanced=!0),new o(p).minify(h)}return e.compress?h.replace(/(^(\s)+)|((\s)+$)/g,""):h}}(g.eval),y<v.length-1){y=A;var o=s(y,v);i=v.split("\n"),h=o.line+1,l={type:"Parse",message:"Unrecognised input",index:y,filename:a.currentFileInfo.filename,line:h,column:o.column,extract:[i[h-2],i[h-1],i[h]]}}var p=function(b){return b=l||b||E.imports.error,b?(b instanceof u||(b=new u(b,a)),e(b)):e(null,g)};return a.processImports===!1?p():void new x.importVisitor(this.imports,p).run(g)},parsers:F={primary:function(){for(var a,b=this.mixin,c=J,d=[];C;){if(a=this.extendRule()||b.definition()||this.rule()||this.ruleset()||b.call()||this.comment()||this.rulesetCall()||this.directive())d.push(a);else if(!c(/^[\s\n]+/)&&!c(/^;+/))break;if(q("}"))break}return d},comment:function(){var b;if("/"===v.charAt(y))return"/"===v.charAt(y+1)?new x.Comment(j(/^\/\/.*/),!0,y,a.currentFileInfo):(b=j(/^\/\*(?:[^*]|\*+[^\/*])*\*+\/\n?/),b?new x.Comment(b,!1,y,a.currentFileInfo):void 0)},comments:function(){for(var a,b=[];;){if(a=this.comment(),!a)break;b.push(a)}return b},entities:{quoted:function(){var b,c,d=y,e=y;return"~"===v.charAt(d)&&(d++,c=!0),'"'===v.charAt(d)||"'"===v.charAt(d)?(c&&k("~"),b=j(/^"((?:[^"\\\r\n]|\\.)*)"|'((?:[^'\\\r\n]|\\.)*)'/),b?new x.Quoted(b[0],b[1]||b[2],c,e,a.currentFileInfo):void 0):void 0},keyword:function(){var a;if(a=j(/^%|^[_A-Za-z-][_A-Za-z0-9-]*/)){var b=x.Color.fromKeyword(a);return b?b:new x.Keyword(a)}},call:function(){var b,c,d,e,f=y;if(b=/^([\w-]+|%|progid:[\w\.]+)\(/.exec(C)){if(b=b[1],c=b.toLowerCase(),"url"===c)return null;if(y+=b.length,"alpha"===c&&(e=F.alpha(),"undefined"!=typeof e))return e;if(k("("),d=this.arguments(),k(")"))return b?new x.Call(b,d,f,a.currentFileInfo):void 0}},arguments:function(){for(var a,b=[];;){if(a=this.assignment()||F.expression(),!a)break;if(b.push(a),!k(","))break}return b},literal:function(){return this.dimension()||this.color()||this.quoted()||this.unicodeDescriptor()},assignment:function(){var a,b;return a=j(/^\w+(?=\s?=)/i),a&&k("=")?(b=F.entity(),b?new x.Assignment(a,b):void 0):void 0},url:function(){var b;if("u"===v.charAt(y)&&j(/^url\(/))return b=this.quoted()||this.variable()||j(/^(?:(?:\\[\(\)'"])|[^\(\)'"])+/)||"",n(")"),new x.URL(null!=b.value||b instanceof x.Variable?b:new x.Anonymous(b),a.currentFileInfo)},variable:function(){var b,c=y;return"@"===v.charAt(y)&&(b=j(/^@@?[\w-]+/))?new x.Variable(b,c,a.currentFileInfo):void 0},variableCurly:function(){var b,c=y;return"@"===v.charAt(y)&&(b=j(/^@\{([\w-]+)\}/))?new x.Variable("@"+b[1],c,a.currentFileInfo):void 0},color:function(){var a;if("#"===v.charAt(y)&&(a=j(/^#([A-Fa-f0-9]{6}|[A-Fa-f0-9]{3})/))){var b=a.input.match(/^#([\w]+).*/);return b=b[1],b.match(/^[A-Fa-f0-9]+$/)||o("Invalid HEX color code"),new x.Color(a[1])}},dimension:function(){var a,b=v.charCodeAt(y);if(!(b>57||43>b||47===b||44==b))return a=j(/^([+-]?\d*\.?\d+)(%|[a-z]+)?/),a?new x.Dimension(a[1],a[2]):void 0},unicodeDescriptor:function(){var a;return a=j(/^U\+[0-9a-fA-F?]+(\-[0-9a-fA-F?]+)?/),a?new x.UnicodeDescriptor(a[0]):void 0},javascript:function(){var c,d,e=y;return"~"===v.charAt(e)&&(e++,d=!0),"`"===v.charAt(e)?(a.javascriptEnabled===b||a.javascriptEnabled||o("You are using JavaScript, which has been disabled."),d&&k("~"),c=j(/^`([^`]*)`/),c?new x.JavaScript(c[1],y,d):void 0):void 0}},variable:function(){var a;return"@"===v.charAt(y)&&(a=j(/^(@[\w-]+)\s*:/))?a[1]:void 0},rulesetCall:function(){var a;return"@"===v.charAt(y)&&(a=j(/^(@[\w-]+)\s*\(\s*\)\s*;/))?new x.RulesetCall(a[1]):void 0},extend:function(a){var b,c,d,e,f,g=y;if(j(a?/^&:extend\(/:/^:extend\(/)){do{for(d=null,b=null;!(d=j(/^(all)(?=\s*(\)|,))/))&&(c=this.element());)b?b.push(c):b=[c];d=d&&d[1],b||o("Missing target selector for :extend()."),f=new x.Extend(new x.Selector(b),d,g),e?e.push(f):e=[f]}while(k(","));return m(/^\)/),a&&m(/^;/),e}},extendRule:function(){return this.extend(!0)},mixin:{call:function(){var b,c,g,h,i,l,m=v.charAt(y),o=!1,p=y;if("."===m||"#"===m){for(d();;){if(b=y,h=j(/^[#.](?:[\w-]|\\(?:[A-Fa-f0-9]{1,6} ?|[^A-Fa-f0-9]))+/),!h)break;g=new x.Element(i,h,b,a.currentFileInfo),c?c.push(g):c=[g],i=k(">")}return c&&(k("(")&&(l=this.args(!0).args,n(")")),F.important()&&(o=!0),F.end())?(f(),new x.mixin.Call(c,l,p,a.currentFileInfo,o)):void e()}},args:function(a){var b,c,g,h,i,l,m=E.parsers,n=m.entities,p={args:null,variadic:!1},q=[],r=[],s=[];for(d();;){if(a)l=m.detachedRuleset()||m.expression();else{if(m.comments(),"."===v.charAt(y)&&j(/^\.{3}/)){p.variadic=!0,k(";")&&!b&&(b=!0),(b?r:s).push({variadic:!0});break}l=n.variable()||n.literal()||n.keyword()}if(!l)break;h=null,l.throwAwayComments&&l.throwAwayComments(),i=l;var t=null;if(a?l.value&&1==l.value.length&&(t=l.value[0]):t=l,t&&t instanceof x.Variable)if(k(":")){if(q.length>0&&(b&&o("Cannot mix ; and , as delimiter types"),c=!0),i=a&&m.detachedRuleset()||m.expression(),!i){if(!a)return e(),p.args=[],p;o("could not understand value for named argument")}h=g=t.name}else{if(!a&&j(/^\.{3}/)){p.variadic=!0,k(";")&&!b&&(b=!0),(b?r:s).push({name:l.name,variadic:!0});break}a||(g=h=t.name,i=null)}i&&q.push(i),s.push({name:h,value:i}),k(",")||(k(";")||b)&&(c&&o("Cannot mix ; and , as delimiter types"),b=!0,q.length>1&&(i=new x.Value(q)),r.push({name:g,value:i}),g=null,q=[],c=!1)}return f(),p.args=b?r:s,p},definition:function(){var a,b,c,g,h=[],i=!1;if(!("."!==v.charAt(y)&&"#"!==v.charAt(y)||p(/^[^{]*\}/)))if(d(),b=j(/^([#.](?:[\w-]|\\(?:[A-Fa-f0-9]{1,6} ?|[^A-Fa-f0-9]))+)\s*\(/)){a=b[1];var l=this.args(!1);if(h=l.args,i=l.variadic,!k(")"))return A=y,void e();if(F.comments(),j(/^when/)&&(g=m(F.conditions,"expected condition")),c=F.block())return f(),new x.mixin.Definition(a,h,c,g,i);e()}else f()}},entity:function(){var a=this.entities;return a.literal()||a.variable()||a.url()||a.call()||a.keyword()||a.javascript()||this.comment()},end:function(){return k(";")||q("}")},alpha:function(){var a;if(j(/^\(opacity=/i))return a=j(/^\d+/)||this.entities.variable(),a?(n(")"),new x.Alpha(a)):void 0},element:function(){var b,c,g,h=y;return c=this.combinator(),b=j(/^(?:\d+\.\d+|\d+)%/)||j(/^(?:[.#]?|:*)(?:[\w-]|[^\x00-\x9f]|\\(?:[A-Fa-f0-9]{1,6} ?|[^A-Fa-f0-9]))+/)||k("*")||k("&")||this.attribute()||j(/^\([^()@]+\)/)||j(/^[\.#](?=@)/)||this.entities.variableCurly(),b||(d(),k("(")?(g=this.selector())&&k(")")?(b=new x.Paren(g),f()):e():f()),b?new x.Element(c,b,h,a.currentFileInfo):void 0},combinator:function(){var a=v.charAt(y);if("/"===a){d();var b=j(/^\/[a-z]+\//i);if(b)return f(),new x.Combinator(b);e()}if(">"===a||"+"===a||"~"===a||"|"===a||"^"===a){for(y++,"^"===a&&"^"===v.charAt(y)&&(a="^^",y++);h(v,y);)y++;return new x.Combinator(a)}return new x.Combinator(h(v,y-1)?" ":null)},lessSelector:function(){return this.selector(!0)},selector:function(b){for(var c,d,e,f,g,h,i,j=y,k=J;(b&&(g=this.extend())||b&&(h=k(/^when/))||(f=this.element()))&&(h?i=m(this.conditions,"expected condition"):i?o("CSS guard can only be used at the end of selector"):g?d?d.push(g):d=[g]:(d&&o("Extend can only be used at the end of selector"),e=v.charAt(y),c?c.push(f):c=[f],f=null),"{"!==e&&"}"!==e&&";"!==e&&","!==e&&")"!==e););return c?new x.Selector(c,d,i,j,a.currentFileInfo):void(d&&o("Extend must be used to extend a selector, it cannot be used on its own"))},attribute:function(){if(k("[")){var a,b,c,d=this.entities;return(a=d.variableCurly())||(a=m(/^(?:[_A-Za-z0-9-\*]*\|)?(?:[_A-Za-z0-9-]|\\.)+/)),c=j(/^[|~*$^]?=/),c&&(b=d.quoted()||j(/^[0-9]+%/)||j(/^[\w-]+/)||d.variableCurly()),n("]"),new x.Attribute(a,c,b)}},block:function(){var a;return k("{")&&(a=this.primary())&&k("}")?a:void 0},blockRuleset:function(){var a=this.block();return a&&(a=new x.Ruleset(null,a)),a},detachedRuleset:function(){var a=this.blockRuleset();return a?new x.DetachedRuleset(a):void 0},ruleset:function(){var b,c,g,h;for(d(),a.dumpLineNumbers&&(h=t(y,v,a));;){if(c=this.lessSelector(),!c)break;if(b?b.push(c):b=[c],this.comments(),c.condition&&b.length>1&&o("Guards are only currently allowed on a single selector."),!k(","))break;c.condition&&o("Guards are only currently allowed on a single selector."),this.comments()}if(b&&(g=this.block())){f();var i=new x.Ruleset(b,g,a.strictImports);return a.dumpLineNumbers&&(i.debugInfo=h),i}A=y,e()},rule:function(b){var c,g,h,i,j,k=y,l=v.charAt(k);if("."!==l&&"#"!==l&&"&"!==l)if(d(),c=this.variable()||this.ruleProperty()){if(j="string"==typeof c,j&&(g=this.detachedRuleset()),this.comments(),g||(g=b||!a.compress&&!j?this.anonymousValue()||this.value():this.value()||this.anonymousValue(),h=this.important(),i=!j&&c.pop().value),g&&this.end())return f(),new x.Rule(c,g,h,i,k,a.currentFileInfo);if(A=y,e(),g&&!b)return this.rule(!0)}else f()},anonymousValue:function(){var a;return a=/^([^@+\/'"*`(;{}-]*);/.exec(C),a?(y+=a[0].length-1,new x.Anonymous(a[1])):void 0},"import":function(){var b,c,d=y,e=j(/^@import?\s+/);if(e){var f=(e?this.importOptions():null)||{};if(b=this.entities.quoted()||this.entities.url())return c=this.mediaFeatures(),i(";")||(y=d,o("missing semi-colon or unrecognised media features on import")),c=c&&new x.Value(c),new x.Import(b,c,f,d,a.currentFileInfo);y=d,o("malformed import statement")}},importOptions:function(){var a,b,c,d={};if(!k("("))return null;do if(a=this.importOption()){switch(b=a,c=!0,b){case"css":b="less",c=!1;break;case"once":b="multiple",c=!1}if(d[b]=c,!k(","))break}while(a);return n(")"),d},importOption:function(){var a=j(/^(less|css|multiple|once|inline|reference)/);return a?a[1]:void 0},mediaFeature:function(){var b,c,d=this.entities,e=[];do if(b=d.keyword()||d.variable())e.push(b);else if(k("(")){if(c=this.property(),b=this.value(),!k(")"))return null;if(c&&b)e.push(new x.Paren(new x.Rule(c,b,null,null,y,a.currentFileInfo,!0)));else{if(!b)return null;e.push(new x.Paren(b))}}while(b);return e.length>0?new x.Expression(e):void 0},mediaFeatures:function(){var a,b=this.entities,c=[];do if(a=this.mediaFeature()){if(c.push(a),!k(","))break}else if(a=b.variable(),a&&(c.push(a),!k(",")))break;while(a);return c.length>0?c:null},media:function(){var b,c,d,e;return a.dumpLineNumbers&&(e=t(y,v,a)),j(/^@media/)&&(b=this.mediaFeatures(),c=this.block())?(d=new x.Media(c,b,y,a.currentFileInfo),a.dumpLineNumbers&&(d.debugInfo=e),d):void 0},directive:function(){var b,c,g,h,i,l,m,n=y,p=!0;if("@"===v.charAt(y)){if(c=this["import"]()||this.media())return c;if(d(),b=j(/^@[a-z-]+/)){switch(h=b,"-"==b.charAt(1)&&b.indexOf("-",2)>0&&(h="@"+b.slice(b.indexOf("-",2)+1)),h){case"@charset":i=!0,p=!1;break;case"@namespace":l=!0,p=!1;break;case"@keyframes":i=!0;break;case"@host":case"@page":case"@document":case"@supports":m=!0}return this.comments(),i?(c=this.entity(),c||o("expected "+b+" identifier")):l?(c=this.expression(),c||o("expected "+b+" expression")):m&&(c=(j(/^[^{;]+/)||"").trim(),c&&(c=new x.Anonymous(c))),this.comments(),p&&(g=this.blockRuleset()),g||!p&&c&&k(";")?(f(),new x.Directive(b,c,g,n,a.currentFileInfo,a.dumpLineNumbers?t(n,v,a):null)):void e()}}},value:function(){var a,b=[];do if(a=this.expression(),a&&(b.push(a),!k(",")))break;while(a);return b.length>0?new x.Value(b):void 0},important:function(){return"!"===v.charAt(y)?j(/^! *important/):void 0},sub:function(){var a,b;return k("(")&&(a=this.addition())?(b=new x.Expression([a]),n(")"),b.parens=!0,b):void 0},multiplication:function(){var a,b,c,g,i;if(a=this.operand()){for(i=h(v,y-1);;){if(p(/^\/[*\/]/))break;if(d(),c=k("/")||k("*"),!c){f();break}if(b=this.operand(),!b){e();break}f(),a.parensInOp=!0,b.parensInOp=!0,g=new x.Operation(c,[g||a,b],i),i=h(v,y-1)}return g||a}},addition:function(){var a,b,c,d,e;if(a=this.multiplication()){for(e=h(v,y-1);;){if(c=j(/^[-+]\s+/)||!e&&(k("+")||k("-")),!c)break;if(b=this.multiplication(),!b)break;a.parensInOp=!0,b.parensInOp=!0,d=new x.Operation(c,[d||a,b],e),e=h(v,y-1)}return d||a}},conditions:function(){var a,b,c,d=y;if(a=this.condition()){for(;;){if(!p(/^,\s*(not\s*)?\(/)||!k(","))break;if(b=this.condition(),!b)break;c=new x.Condition("or",c||a,b,d)}return c||a}},condition:function(){var a,b,c,d,e=this.entities,f=y,g=!1;return j(/^not/)&&(g=!0),n("("),a=this.addition()||e.keyword()||e.quoted(),a?(d=j(/^(?:>=|<=|=<|[<=>])/),d?(b=this.addition()||e.keyword()||e.quoted(),b?c=new x.Condition(d,a,b,f,g):o("expected expression")):c=new x.Condition("=",a,new x.Keyword("true"),f,g),n(")"),j(/^and/)?new x.Condition("and",c,this.condition()):c):void 0},operand:function(){var a,b=this.entities,c=v.charAt(y+1);"-"!==v.charAt(y)||"@"!==c&&"("!==c||(a=k("-"));var d=this.sub()||b.dimension()||b.color()||b.variable()||b.call();return a&&(d.parensInOp=!0,d=new x.Negative(d)),d},expression:function(){var a,b,c=[];do a=this.addition()||this.entity(),a&&(c.push(a),p(/^\/[\/*]/)||(b=k("/"),b&&c.push(new x.Anonymous(b))));while(a);return c.length>0?new x.Expression(c):void 0},property:function(){var a=j(/^(\*?-?[_a-zA-Z0-9-]+)\s*:/);return a?a[1]:void 0},ruleProperty:function(){function b(a){var b=a.exec(f);return b?(h.push(y+i),i+=b[0].length,f=f.slice(b[1].length),g.push(b[1])):void 0}function c(){var a=/^\s*\/\*(?:[^*]|\*+[^\/*])*\*+\//.exec(f);return a?(i+=a[0].length,f=f.slice(a[0].length),!0):!1}var d,e,f=C,g=[],h=[],i=0;for(b(/^(\*?)/);b(/^((?:[\w-]+)|(?:@\{[\w-]+\}))/););for(;c(););if(g.length>1&&b(/^\s*((?:\+_|\+)?)\s*:/)){for(l(i),""===g[0]&&(g.shift(),h.shift()),e=0;e<g.length;e++)d=g[e],g[e]="@"!==d.charAt(0)?new x.Keyword(d):new x.Variable("@"+d.slice(2,-1),h[e],a.currentFileInfo);return g}}}}},w.Parser.serializeVars=function(a){var b="";for(var c in a)if(Object.hasOwnProperty.call(a,c)){var d=a[c];b+=("@"===c[0]?"":"@")+c+": "+d+(";"===(""+d).slice(-1)?"":";")}return b},function(d){function e(a,b,c){if(!(c instanceof d.Dimension))throw{type:"Argument",message:"argument must be a number"};return null==b?b=c.unit:c=c.unify(),new d.Dimension(a(parseFloat(c.value)),b)}function f(a,b,c){var e,f,g,h,i=b.alpha,j=c.alpha,k=[];g=j+i*(1-j);for(var l=0;3>l;l++)e=b.rgb[l]/255,f=c.rgb[l]/255,h=a(e,f),g&&(h=(j*f+i*(e-j*(e+f-h)))/g),k[l]=255*h;return new d.Color(k,g)}function g(){var a,b=d.functions;for(a in l)l.hasOwnProperty(a)&&(b[a]=e.bind(null,Math[a],l[a]));for(a in m)m.hasOwnProperty(a)&&(b[a]=f.bind(null,m[a]));a=d.defaultFunc,b["default"]=a.eval.bind(a)}function h(a){return d.functions.hsla(a.h,a.s,a.l,a.a)}function i(a,b){return a instanceof d.Dimension&&a.unit.is("%")?parseFloat(a.value*b/100):j(a)}function j(a){if(a instanceof d.Dimension)return parseFloat(a.unit.is("%")?a.value/100:a.value);if("number"==typeof a)return a;throw{error:"RuntimeError",message:"color functions take numbers as parameters"}}function k(a){return Math.min(1,Math.max(0,a))}d.functions={rgb:function(a,b,c){return this.rgba(a,b,c,1)},rgba:function(a,b,c,e){var f=[a,b,c].map(function(a){return i(a,255)});return e=j(e),new d.Color(f,e)},hsl:function(a,b,c){return this.hsla(a,b,c,1)},hsla:function(a,b,c,d){function e(a){return a=0>a?a+1:a>1?a-1:a,1>6*a?g+(f-g)*a*6:1>2*a?f:2>3*a?g+(f-g)*(2/3-a)*6:g}a=j(a)%360/360,b=k(j(b)),c=k(j(c)),d=k(j(d));var f=.5>=c?c*(b+1):c+b-c*b,g=2*c-f;return this.rgba(255*e(a+1/3),255*e(a),255*e(a-1/3),d)},hsv:function(a,b,c){return this.hsva(a,b,c,1)},hsva:function(a,b,c,d){a=j(a)%360/360*360,b=j(b),c=j(c),d=j(d);var e,f;e=Math.floor(a/60%6),f=a/60-e;var g=[c,c*(1-b),c*(1-f*b),c*(1-(1-f)*b)],h=[[0,3,1],[2,0,1],[1,0,3],[1,2,0],[3,1,0],[0,1,2]];return this.rgba(255*g[h[e][0]],255*g[h[e][1]],255*g[h[e][2]],d)},hue:function(a){return new d.Dimension(a.toHSL().h)},saturation:function(a){return new d.Dimension(100*a.toHSL().s,"%")},lightness:function(a){return new d.Dimension(100*a.toHSL().l,"%")},hsvhue:function(a){return new d.Dimension(a.toHSV().h)},hsvsaturation:function(a){return new d.Dimension(100*a.toHSV().s,"%")},hsvvalue:function(a){return new d.Dimension(100*a.toHSV().v,"%")},red:function(a){return new d.Dimension(a.rgb[0])},green:function(a){return new d.Dimension(a.rgb[1])},blue:function(a){return new d.Dimension(a.rgb[2])},alpha:function(a){return new d.Dimension(a.toHSL().a)},luma:function(a){return new d.Dimension(a.luma()*a.alpha*100,"%")},luminance:function(a){var b=.2126*a.rgb[0]/255+.7152*a.rgb[1]/255+.0722*a.rgb[2]/255;return new d.Dimension(b*a.alpha*100,"%")},saturate:function(a,b){if(!a.rgb)return null;var c=a.toHSL();return c.s+=b.value/100,c.s=k(c.s),h(c)},desaturate:function(a,b){var c=a.toHSL();return c.s-=b.value/100,c.s=k(c.s),h(c)},lighten:function(a,b){var c=a.toHSL();return c.l+=b.value/100,c.l=k(c.l),h(c)},darken:function(a,b){var c=a.toHSL();return c.l-=b.value/100,c.l=k(c.l),h(c)},fadein:function(a,b){var c=a.toHSL();return c.a+=b.value/100,c.a=k(c.a),h(c)},fadeout:function(a,b){var c=a.toHSL();return c.a-=b.value/100,c.a=k(c.a),h(c)},fade:function(a,b){var c=a.toHSL();return c.a=b.value/100,c.a=k(c.a),h(c)},spin:function(a,b){var c=a.toHSL(),d=(c.h+b.value)%360;return c.h=0>d?360+d:d,h(c)},mix:function(a,b,c){c||(c=new d.Dimension(50));var e=c.value/100,f=2*e-1,g=a.toHSL().a-b.toHSL().a,h=((f*g==-1?f:(f+g)/(1+f*g))+1)/2,i=1-h,j=[a.rgb[0]*h+b.rgb[0]*i,a.rgb[1]*h+b.rgb[1]*i,a.rgb[2]*h+b.rgb[2]*i],k=a.alpha*e+b.alpha*(1-e);return new d.Color(j,k)},greyscale:function(a){return this.desaturate(a,new d.Dimension(100))},contrast:function(a,b,c,d){if(!a.rgb)return null;if("undefined"==typeof c&&(c=this.rgba(255,255,255,1)),"undefined"==typeof b&&(b=this.rgba(0,0,0,1)),b.luma()>c.luma()){var e=c;c=b,b=e}return d="undefined"==typeof d?.43:j(d),a.luma()<d?c:b},e:function(a){return new d.Anonymous(a instanceof d.JavaScript?a.evaluated:a.value)},escape:function(a){return new d.Anonymous(encodeURI(a.value).replace(/=/g,"%3D").replace(/:/g,"%3A").replace(/#/g,"%23").replace(/;/g,"%3B").replace(/\(/g,"%28").replace(/\)/g,"%29"))
|
14
|
+
},replace:function(a,b,c,e){var f=a.value;return f=f.replace(new RegExp(b.value,e?e.value:""),c.value),new d.Quoted(a.quote||"",f,a.escaped)},"%":function(a){for(var b=Array.prototype.slice.call(arguments,1),c=a.value,e=0;e<b.length;e++)c=c.replace(/%[sda]/i,function(a){var c=a.match(/s/i)?b[e].value:b[e].toCSS();return a.match(/[A-Z]$/)?encodeURIComponent(c):c});return c=c.replace(/%%/g,"%"),new d.Quoted(a.quote||"",c,a.escaped)},unit:function(a,b){if(!(a instanceof d.Dimension))throw{type:"Argument",message:"the first argument to unit must be a number"+(a instanceof d.Operation?". Have you forgotten parenthesis?":"")};return b=b?b instanceof d.Keyword?b.value:b.toCSS():"",new d.Dimension(a.value,b)},convert:function(a,b){return a.convertTo(b.value)},round:function(a,b){var c="undefined"==typeof b?0:b.value;return e(function(a){return a.toFixed(c)},null,a)},pi:function(){return new d.Dimension(Math.PI)},mod:function(a,b){return new d.Dimension(a.value%b.value,a.unit)},pow:function(a,b){if("number"==typeof a&&"number"==typeof b)a=new d.Dimension(a),b=new d.Dimension(b);else if(!(a instanceof d.Dimension&&b instanceof d.Dimension))throw{type:"Argument",message:"arguments must be numbers"};return new d.Dimension(Math.pow(a.value,b.value),a.unit)},_minmax:function(a,c){switch(c=Array.prototype.slice.call(c),c.length){case 0:throw{type:"Argument",message:"one or more arguments required"}}var e,f,g,h,i,j,k,l,m=[],n={};for(e=0;e<c.length;e++)if(g=c[e],g instanceof d.Dimension)if(h=""===g.unit.toString()&&l!==b?new d.Dimension(g.value,l).unify():g.unify(),j=""===h.unit.toString()&&k!==b?k:h.unit.toString(),k=""!==j&&k===b||""!==j&&""===m[0].unify().unit.toString()?j:k,l=""!==j&&l===b?g.unit.toString():l,f=n[""]!==b&&""!==j&&j===k?n[""]:n[j],f!==b)i=""===m[f].unit.toString()&&l!==b?new d.Dimension(m[f].value,l).unify():m[f].unify(),(a&&h.value<i.value||!a&&h.value>i.value)&&(m[f]=g);else{if(k!==b&&j!==k)throw{type:"Argument",message:"incompatible types"};n[j]=m.length,m.push(g)}else Array.isArray(c[e].value)&&Array.prototype.push.apply(c,Array.prototype.slice.call(c[e].value));return 1==m.length?m[0]:(c=m.map(function(a){return a.toCSS(this.env)}).join(this.env.compress?",":", "),new d.Anonymous((a?"min":"max")+"("+c+")"))},min:function(){return this._minmax(!0,arguments)},max:function(){return this._minmax(!1,arguments)},"get-unit":function(a){return new d.Anonymous(a.unit)},argb:function(a){return new d.Anonymous(a.toARGB())},percentage:function(a){return new d.Dimension(100*a.value,"%")},color:function(a){if(a instanceof d.Quoted){var b,c=a.value;if(b=d.Color.fromKeyword(c))return b;if(/^#([A-Fa-f0-9]{6}|[A-Fa-f0-9]{3})/.test(c))return new d.Color(c.slice(1));throw{type:"Argument",message:"argument must be a color keyword or 3/6 digit hex e.g. #FFF"}}throw{type:"Argument",message:"argument must be a string"}},iscolor:function(a){return this._isa(a,d.Color)},isnumber:function(a){return this._isa(a,d.Dimension)},isstring:function(a){return this._isa(a,d.Quoted)},iskeyword:function(a){return this._isa(a,d.Keyword)},isurl:function(a){return this._isa(a,d.URL)},ispixel:function(a){return this.isunit(a,"px")},ispercentage:function(a){return this.isunit(a,"%")},isem:function(a){return this.isunit(a,"em")},isunit:function(a,b){return a instanceof d.Dimension&&a.unit.is(b.value||b)?d.True:d.False},_isa:function(a,b){return a instanceof b?d.True:d.False},tint:function(a,b){return this.mix(this.rgb(255,255,255),a,b)},shade:function(a,b){return this.mix(this.rgb(0,0,0),a,b)},extract:function(a,b){return b=b.value-1,Array.isArray(a.value)?a.value[b]:Array(a)[b]},length:function(a){var b=Array.isArray(a.value)?a.value.length:1;return new d.Dimension(b)},"data-uri":function(b,e){if("undefined"!=typeof a)return new d.URL(e||b,this.currentFileInfo).eval(this.env);var f=b.value,g=e&&e.value,h=c("./fs"),i=c("path"),j=!1;arguments.length<2&&(g=f);var k=g.indexOf("#"),l="";if(-1!==k&&(l=g.slice(k),g=g.slice(0,k)),this.env.isPathRelative(g)&&(g=this.currentFileInfo.relativeUrls?i.join(this.currentFileInfo.currentDirectory,g):i.join(this.currentFileInfo.entryPath,g)),arguments.length<2){var m;try{m=c("mime")}catch(n){m=d._mime}f=m.lookup(g);var o=m.charsets.lookup(f);j=["US-ASCII","UTF-8"].indexOf(o)<0,j&&(f+=";base64")}else j=/;base64$/.test(f);var p=h.readFileSync(g),q=32,r=parseInt(p.length/1024,10);if(r>=q&&this.env.ieCompat!==!1)return this.env.silent||console.warn("Skipped data-uri embedding of %s because its size (%dKB) exceeds IE8-safe %dKB!",g,r,q),new d.URL(e||b,this.currentFileInfo).eval(this.env);p=j?p.toString("base64"):encodeURIComponent(p);var s='"data:'+f+","+p+l+'"';return new d.URL(new d.Anonymous(s))},"svg-gradient":function(a){function e(){throw{type:"Argument",message:"svg-gradient expects direction, start_color [start_position], [color position,]..., end_color [end_position]"}}arguments.length<3&&e();var f,g,h,i,j,k,l,m=Array.prototype.slice.call(arguments,1),n="linear",o='x="0" y="0" width="1" height="1"',p=!0,q={compress:!1},r=a.toCSS(q);switch(r){case"to bottom":f='x1="0%" y1="0%" x2="0%" y2="100%"';break;case"to right":f='x1="0%" y1="0%" x2="100%" y2="0%"';break;case"to bottom right":f='x1="0%" y1="0%" x2="100%" y2="100%"';break;case"to top right":f='x1="0%" y1="100%" x2="100%" y2="0%"';break;case"ellipse":case"ellipse at center":n="radial",f='cx="50%" cy="50%" r="75%"',o='x="-50" y="-50" width="101" height="101"';break;default:throw{type:"Argument",message:"svg-gradient direction must be 'to bottom', 'to right', 'to bottom right', 'to top right' or 'ellipse at center'"}}for(g='<?xml version="1.0" ?><svg xmlns="http://www.w3.org/2000/svg" version="1.1" width="100%" height="100%" viewBox="0 0 1 1" preserveAspectRatio="none"><'+n+'Gradient id="gradient" gradientUnits="userSpaceOnUse" '+f+">",h=0;h<m.length;h+=1)m[h].value?(i=m[h].value[0],j=m[h].value[1]):(i=m[h],j=b),i instanceof d.Color&&((0===h||h+1===m.length)&&j===b||j instanceof d.Dimension)||e(),k=j?j.toCSS(q):0===h?"0%":"100%",l=i.alpha,g+='<stop offset="'+k+'" stop-color="'+i.toRGB()+'"'+(1>l?' stop-opacity="'+l+'"':"")+"/>";if(g+="</"+n+"Gradient><rect "+o+' fill="url(#gradient)" /></svg>',p)try{g=c("./encoder").encodeBase64(g)}catch(s){p=!1}return g="'data:image/svg+xml"+(p?";base64":"")+","+g+"'",new d.URL(new d.Anonymous(g))}},d._mime={_types:{".htm":"text/html",".html":"text/html",".gif":"image/gif",".jpg":"image/jpeg",".jpeg":"image/jpeg",".png":"image/png"},lookup:function(a){var e=c("path").extname(a),f=d._mime._types[e];if(f===b)throw new Error('Optional dependency "mime" is required for '+e);return f},charsets:{lookup:function(a){return a&&/^text\//.test(a)?"UTF-8":""}}};var l={ceil:null,floor:null,sqrt:null,abs:null,tan:"",sin:"",cos:"",atan:"rad",asin:"rad",acos:"rad"},m={multiply:function(a,b){return a*b},screen:function(a,b){return a+b-a*b},overlay:function(a,b){return a*=2,1>=a?m.multiply(a,b):m.screen(a-1,b)},softlight:function(a,b){var c=1,d=a;return b>.5&&(d=1,c=a>.25?Math.sqrt(a):((16*a-12)*a+4)*a),a-(1-2*b)*d*(c-a)},hardlight:function(a,b){return m.overlay(b,a)},difference:function(a,b){return Math.abs(a-b)},exclusion:function(a,b){return a+b-2*a*b},average:function(a,b){return(a+b)/2},negation:function(a,b){return 1-Math.abs(a+b-1)}};d.defaultFunc={eval:function(){var a=this.value_,b=this.error_;if(b)throw b;return null!=a?a?d.True:d.False:void 0},value:function(a){this.value_=a},error:function(a){this.error_=a},reset:function(){this.value_=this.error_=null}},g(),d.fround=function(a,b){var c=a&&a.numPrecision;return null==c?b:Number((b+2e-16).toFixed(c))},d.functionCall=function(a,b){this.env=a,this.currentFileInfo=b},d.functionCall.prototype=d.functions}(c("./tree")),function(a){a.colors={aliceblue:"#f0f8ff",antiquewhite:"#faebd7",aqua:"#00ffff",aquamarine:"#7fffd4",azure:"#f0ffff",beige:"#f5f5dc",bisque:"#ffe4c4",black:"#000000",blanchedalmond:"#ffebcd",blue:"#0000ff",blueviolet:"#8a2be2",brown:"#a52a2a",burlywood:"#deb887",cadetblue:"#5f9ea0",chartreuse:"#7fff00",chocolate:"#d2691e",coral:"#ff7f50",cornflowerblue:"#6495ed",cornsilk:"#fff8dc",crimson:"#dc143c",cyan:"#00ffff",darkblue:"#00008b",darkcyan:"#008b8b",darkgoldenrod:"#b8860b",darkgray:"#a9a9a9",darkgrey:"#a9a9a9",darkgreen:"#006400",darkkhaki:"#bdb76b",darkmagenta:"#8b008b",darkolivegreen:"#556b2f",darkorange:"#ff8c00",darkorchid:"#9932cc",darkred:"#8b0000",darksalmon:"#e9967a",darkseagreen:"#8fbc8f",darkslateblue:"#483d8b",darkslategray:"#2f4f4f",darkslategrey:"#2f4f4f",darkturquoise:"#00ced1",darkviolet:"#9400d3",deeppink:"#ff1493",deepskyblue:"#00bfff",dimgray:"#696969",dimgrey:"#696969",dodgerblue:"#1e90ff",firebrick:"#b22222",floralwhite:"#fffaf0",forestgreen:"#228b22",fuchsia:"#ff00ff",gainsboro:"#dcdcdc",ghostwhite:"#f8f8ff",gold:"#ffd700",goldenrod:"#daa520",gray:"#808080",grey:"#808080",green:"#008000",greenyellow:"#adff2f",honeydew:"#f0fff0",hotpink:"#ff69b4",indianred:"#cd5c5c",indigo:"#4b0082",ivory:"#fffff0",khaki:"#f0e68c",lavender:"#e6e6fa",lavenderblush:"#fff0f5",lawngreen:"#7cfc00",lemonchiffon:"#fffacd",lightblue:"#add8e6",lightcoral:"#f08080",lightcyan:"#e0ffff",lightgoldenrodyellow:"#fafad2",lightgray:"#d3d3d3",lightgrey:"#d3d3d3",lightgreen:"#90ee90",lightpink:"#ffb6c1",lightsalmon:"#ffa07a",lightseagreen:"#20b2aa",lightskyblue:"#87cefa",lightslategray:"#778899",lightslategrey:"#778899",lightsteelblue:"#b0c4de",lightyellow:"#ffffe0",lime:"#00ff00",limegreen:"#32cd32",linen:"#faf0e6",magenta:"#ff00ff",maroon:"#800000",mediumaquamarine:"#66cdaa",mediumblue:"#0000cd",mediumorchid:"#ba55d3",mediumpurple:"#9370d8",mediumseagreen:"#3cb371",mediumslateblue:"#7b68ee",mediumspringgreen:"#00fa9a",mediumturquoise:"#48d1cc",mediumvioletred:"#c71585",midnightblue:"#191970",mintcream:"#f5fffa",mistyrose:"#ffe4e1",moccasin:"#ffe4b5",navajowhite:"#ffdead",navy:"#000080",oldlace:"#fdf5e6",olive:"#808000",olivedrab:"#6b8e23",orange:"#ffa500",orangered:"#ff4500",orchid:"#da70d6",palegoldenrod:"#eee8aa",palegreen:"#98fb98",paleturquoise:"#afeeee",palevioletred:"#d87093",papayawhip:"#ffefd5",peachpuff:"#ffdab9",peru:"#cd853f",pink:"#ffc0cb",plum:"#dda0dd",powderblue:"#b0e0e6",purple:"#800080",red:"#ff0000",rosybrown:"#bc8f8f",royalblue:"#4169e1",saddlebrown:"#8b4513",salmon:"#fa8072",sandybrown:"#f4a460",seagreen:"#2e8b57",seashell:"#fff5ee",sienna:"#a0522d",silver:"#c0c0c0",skyblue:"#87ceeb",slateblue:"#6a5acd",slategray:"#708090",slategrey:"#708090",snow:"#fffafa",springgreen:"#00ff7f",steelblue:"#4682b4",tan:"#d2b48c",teal:"#008080",thistle:"#d8bfd8",tomato:"#ff6347",turquoise:"#40e0d0",violet:"#ee82ee",wheat:"#f5deb3",white:"#ffffff",whitesmoke:"#f5f5f5",yellow:"#ffff00",yellowgreen:"#9acd32"}}(c("./tree")),function(a){a.debugInfo=function(b,c,d){var e="";if(b.dumpLineNumbers&&!b.compress)switch(b.dumpLineNumbers){case"comments":e=a.debugInfo.asComment(c);break;case"mediaquery":e=a.debugInfo.asMediaQuery(c);break;case"all":e=a.debugInfo.asComment(c)+(d||"")+a.debugInfo.asMediaQuery(c)}return e},a.debugInfo.asComment=function(a){return"/* line "+a.debugInfo.lineNumber+", "+a.debugInfo.fileName+" */\n"},a.debugInfo.asMediaQuery=function(a){return"@media -sass-debug-info{filename{font-family:"+("file://"+a.debugInfo.fileName).replace(/([.:\/\\])/g,function(a){return"\\"==a&&(a="/"),"\\"+a})+"}line{font-family:\\00003"+a.debugInfo.lineNumber+"}}\n"},a.find=function(a,b){for(var c,d=0;d<a.length;d++)if(c=b.call(a,a[d]))return c;return null},a.jsify=function(a){return Array.isArray(a.value)&&a.value.length>1?"["+a.value.map(function(a){return a.toCSS()}).join(", ")+"]":a.toCSS()},a.toCSS=function(a){var b=[];return this.genCSS(a,{add:function(a){b.push(a)},isEmpty:function(){return 0===b.length}}),b.join("")},a.outputRuleset=function(a,b,c){var d,e=c.length;if(a.tabLevel=(0|a.tabLevel)+1,a.compress){for(b.add("{"),d=0;e>d;d++)c[d].genCSS(a,b);return b.add("}"),void a.tabLevel--}var f="\n"+Array(a.tabLevel).join(" "),g=f+" ";if(e){for(b.add(" {"+g),c[0].genCSS(a,b),d=1;e>d;d++)b.add(g),c[d].genCSS(a,b);b.add(f+"}")}else b.add(" {"+f+"}");a.tabLevel--}}(c("./tree")),function(a){a.Alpha=function(a){this.value=a},a.Alpha.prototype={type:"Alpha",accept:function(a){this.value=a.visit(this.value)},eval:function(b){return this.value.eval?new a.Alpha(this.value.eval(b)):this},genCSS:function(a,b){b.add("alpha(opacity="),this.value.genCSS?this.value.genCSS(a,b):b.add(this.value),b.add(")")},toCSS:a.toCSS}}(c("../tree")),function(a){a.Anonymous=function(a,b,c,d,e){this.value=a,this.index=b,this.mapLines=d,this.currentFileInfo=c,this.rulesetLike="undefined"==typeof e?!1:e},a.Anonymous.prototype={type:"Anonymous",eval:function(){return new a.Anonymous(this.value,this.index,this.currentFileInfo,this.mapLines,this.rulesetLike)},compare:function(a){if(!a.toCSS)return-1;var b=this.toCSS(),c=a.toCSS();return b===c?0:c>b?-1:1},isRulesetLike:function(){return this.rulesetLike},genCSS:function(a,b){b.add(this.value,this.currentFileInfo,this.index,this.mapLines)},toCSS:a.toCSS}}(c("../tree")),function(a){a.Assignment=function(a,b){this.key=a,this.value=b},a.Assignment.prototype={type:"Assignment",accept:function(a){this.value=a.visit(this.value)},eval:function(b){return this.value.eval?new a.Assignment(this.key,this.value.eval(b)):this},genCSS:function(a,b){b.add(this.key+"="),this.value.genCSS?this.value.genCSS(a,b):b.add(this.value)},toCSS:a.toCSS}}(c("../tree")),function(a){a.Call=function(a,b,c,d){this.name=a,this.args=b,this.index=c,this.currentFileInfo=d},a.Call.prototype={type:"Call",accept:function(a){this.args&&(this.args=a.visitArray(this.args))},eval:function(b){var c,d,e=this.args.map(function(a){return a.eval(b)}),f=this.name.toLowerCase();if(f in a.functions)try{if(d=new a.functionCall(b,this.currentFileInfo),c=d[f].apply(d,e),null!=c)return c}catch(g){throw{type:g.type||"Runtime",message:"error evaluating function `"+this.name+"`"+(g.message?": "+g.message:""),index:this.index,filename:this.currentFileInfo.filename}}return new a.Call(this.name,e,this.index,this.currentFileInfo)},genCSS:function(a,b){b.add(this.name+"(",this.currentFileInfo,this.index);for(var c=0;c<this.args.length;c++)this.args[c].genCSS(a,b),c+1<this.args.length&&b.add(", ");b.add(")")},toCSS:a.toCSS}}(c("../tree")),function(a){function b(a){return"#"+a.map(function(a){return a=c(Math.round(a),255),(16>a?"0":"")+a.toString(16)}).join("")}function c(a,b){return Math.min(Math.max(a,0),b)}a.Color=function(a,b){this.rgb=Array.isArray(a)?a:6==a.length?a.match(/.{2}/g).map(function(a){return parseInt(a,16)}):a.split("").map(function(a){return parseInt(a+a,16)}),this.alpha="number"==typeof b?b:1};var d="transparent";a.Color.prototype={type:"Color",eval:function(){return this},luma:function(){var a=this.rgb[0]/255,b=this.rgb[1]/255,c=this.rgb[2]/255;return a=.03928>=a?a/12.92:Math.pow((a+.055)/1.055,2.4),b=.03928>=b?b/12.92:Math.pow((b+.055)/1.055,2.4),c=.03928>=c?c/12.92:Math.pow((c+.055)/1.055,2.4),.2126*a+.7152*b+.0722*c},genCSS:function(a,b){b.add(this.toCSS(a))},toCSS:function(b,e){var f=b&&b.compress&&!e,g=a.fround(b,this.alpha);if(1>g)return 0===g&&this.isTransparentKeyword?d:"rgba("+this.rgb.map(function(a){return c(Math.round(a),255)}).concat(c(g,1)).join(","+(f?"":" "))+")";var h=this.toRGB();if(f){var i=h.split("");i[1]===i[2]&&i[3]===i[4]&&i[5]===i[6]&&(h="#"+i[1]+i[3]+i[5])}return h},operate:function(b,c,d){for(var e=[],f=this.alpha*(1-d.alpha)+d.alpha,g=0;3>g;g++)e[g]=a.operate(b,c,this.rgb[g],d.rgb[g]);return new a.Color(e,f)},toRGB:function(){return b(this.rgb)},toHSL:function(){var a,b,c=this.rgb[0]/255,d=this.rgb[1]/255,e=this.rgb[2]/255,f=this.alpha,g=Math.max(c,d,e),h=Math.min(c,d,e),i=(g+h)/2,j=g-h;if(g===h)a=b=0;else{switch(b=i>.5?j/(2-g-h):j/(g+h),g){case c:a=(d-e)/j+(e>d?6:0);break;case d:a=(e-c)/j+2;break;case e:a=(c-d)/j+4}a/=6}return{h:360*a,s:b,l:i,a:f}},toHSV:function(){var a,b,c=this.rgb[0]/255,d=this.rgb[1]/255,e=this.rgb[2]/255,f=this.alpha,g=Math.max(c,d,e),h=Math.min(c,d,e),i=g,j=g-h;if(b=0===g?0:j/g,g===h)a=0;else{switch(g){case c:a=(d-e)/j+(e>d?6:0);break;case d:a=(e-c)/j+2;break;case e:a=(c-d)/j+4}a/=6}return{h:360*a,s:b,v:i,a:f}},toARGB:function(){return b([255*this.alpha].concat(this.rgb))},compare:function(a){return a.rgb&&a.rgb[0]===this.rgb[0]&&a.rgb[1]===this.rgb[1]&&a.rgb[2]===this.rgb[2]&&a.alpha===this.alpha?0:-1}},a.Color.fromKeyword=function(b){if(b=b.toLowerCase(),a.colors.hasOwnProperty(b))return new a.Color(a.colors[b].slice(1));if(b===d){var c=new a.Color([0,0,0],0);return c.isTransparentKeyword=!0,c}}}(c("../tree")),function(a){a.Comment=function(a,b,c,d){this.value=a,this.silent=!!b,this.currentFileInfo=d},a.Comment.prototype={type:"Comment",genCSS:function(b,c){this.debugInfo&&c.add(a.debugInfo(b,this),this.currentFileInfo,this.index),c.add(this.value.trim())},toCSS:a.toCSS,isSilent:function(a){var b=this.currentFileInfo&&this.currentFileInfo.reference&&!this.isReferenced,c=a.compress&&!this.value.match(/^\/\*!/);return this.silent||b||c},eval:function(){return this},markReferenced:function(){this.isReferenced=!0}}}(c("../tree")),function(a){a.Condition=function(a,b,c,d,e){this.op=a.trim(),this.lvalue=b,this.rvalue=c,this.index=d,this.negate=e},a.Condition.prototype={type:"Condition",accept:function(a){this.lvalue=a.visit(this.lvalue),this.rvalue=a.visit(this.rvalue)},eval:function(a){var b,c=this.lvalue.eval(a),d=this.rvalue.eval(a),e=this.index;return b=function(a){switch(a){case"and":return c&&d;case"or":return c||d;default:if(c.compare)b=c.compare(d);else{if(!d.compare)throw{type:"Type",message:"Unable to perform comparison",index:e};b=d.compare(c)}switch(b){case-1:return"<"===a||"=<"===a||"<="===a;case 0:return"="===a||">="===a||"=<"===a||"<="===a;case 1:return">"===a||">="===a}}}(this.op),this.negate?!b:b}}}(c("../tree")),function(a){a.DetachedRuleset=function(a,b){this.ruleset=a,this.frames=b},a.DetachedRuleset.prototype={type:"DetachedRuleset",accept:function(a){this.ruleset=a.visit(this.ruleset)},eval:function(b){var c=this.frames||b.frames.slice(0);return new a.DetachedRuleset(this.ruleset,c)},callEval:function(b){return this.ruleset.eval(this.frames?new a.evalEnv(b,this.frames.concat(b.frames)):b)}}}(c("../tree")),function(a){a.Dimension=function(c,d){this.value=parseFloat(c),this.unit=d&&d instanceof a.Unit?d:new a.Unit(d?[d]:b)},a.Dimension.prototype={type:"Dimension",accept:function(a){this.unit=a.visit(this.unit)},eval:function(){return this},toColor:function(){return new a.Color([this.value,this.value,this.value])},genCSS:function(b,c){if(b&&b.strictUnits&&!this.unit.isSingular())throw new Error("Multiple units in dimension. Correct the units or use the unit function. Bad unit: "+this.unit.toString());var d=a.fround(b,this.value),e=String(d);if(0!==d&&1e-6>d&&d>-1e-6&&(e=d.toFixed(20).replace(/0+$/,"")),b&&b.compress){if(0===d&&this.unit.isLength())return void c.add(e);d>0&&1>d&&(e=e.substr(1))}c.add(e),this.unit.genCSS(b,c)},toCSS:a.toCSS,operate:function(b,c,d){var e=a.operate(b,c,this.value,d.value),f=this.unit.clone();if("+"===c||"-"===c)if(0===f.numerator.length&&0===f.denominator.length)f.numerator=d.unit.numerator.slice(0),f.denominator=d.unit.denominator.slice(0);else if(0===d.unit.numerator.length&&0===f.denominator.length);else{if(d=d.convertTo(this.unit.usedUnits()),b.strictUnits&&d.unit.toString()!==f.toString())throw new Error("Incompatible units. Change the units or use the unit function. Bad units: '"+f.toString()+"' and '"+d.unit.toString()+"'.");e=a.operate(b,c,this.value,d.value)}else"*"===c?(f.numerator=f.numerator.concat(d.unit.numerator).sort(),f.denominator=f.denominator.concat(d.unit.denominator).sort(),f.cancel()):"/"===c&&(f.numerator=f.numerator.concat(d.unit.denominator).sort(),f.denominator=f.denominator.concat(d.unit.numerator).sort(),f.cancel());return new a.Dimension(e,f)},compare:function(b){if(b instanceof a.Dimension){var c,d,e,f;if(this.unit.isEmpty()||b.unit.isEmpty())c=this,d=b;else if(c=this.unify(),d=b.unify(),0!==c.unit.compare(d.unit))return-1;return e=c.value,f=d.value,f>e?-1:e>f?1:0}return-1},unify:function(){return this.convertTo({length:"px",duration:"s",angle:"rad"})},convertTo:function(b){var c,d,e,f,g,h=this.value,i=this.unit.clone(),j={};if("string"==typeof b){for(c in a.UnitConversions)a.UnitConversions[c].hasOwnProperty(b)&&(j={},j[c]=b);b=j}g=function(a,b){return e.hasOwnProperty(a)?(b?h/=e[a]/e[f]:h*=e[a]/e[f],f):a};for(d in b)b.hasOwnProperty(d)&&(f=b[d],e=a.UnitConversions[d],i.map(g));return i.cancel(),new a.Dimension(h,i)}},a.UnitConversions={length:{m:1,cm:.01,mm:.001,"in":.0254,px:.0254/96,pt:.0254/72,pc:.0254/72*12},duration:{s:1,ms:.001},angle:{rad:1/(2*Math.PI),deg:1/360,grad:.0025,turn:1}},a.Unit=function(a,b,c){this.numerator=a?a.slice(0).sort():[],this.denominator=b?b.slice(0).sort():[],this.backupUnit=c},a.Unit.prototype={type:"Unit",clone:function(){return new a.Unit(this.numerator.slice(0),this.denominator.slice(0),this.backupUnit)},genCSS:function(a,b){this.numerator.length>=1?b.add(this.numerator[0]):this.denominator.length>=1?b.add(this.denominator[0]):a&&a.strictUnits||!this.backupUnit||b.add(this.backupUnit)},toCSS:a.toCSS,toString:function(){var a,b=this.numerator.join("*");for(a=0;a<this.denominator.length;a++)b+="/"+this.denominator[a];return b},compare:function(a){return this.is(a.toString())?0:-1},is:function(a){return this.toString()===a},isLength:function(){return Boolean(this.toCSS().match(/px|em|%|in|cm|mm|pc|pt|ex/))},isEmpty:function(){return 0===this.numerator.length&&0===this.denominator.length},isSingular:function(){return this.numerator.length<=1&&0===this.denominator.length},map:function(a){var b;for(b=0;b<this.numerator.length;b++)this.numerator[b]=a(this.numerator[b],!1);for(b=0;b<this.denominator.length;b++)this.denominator[b]=a(this.denominator[b],!0)},usedUnits:function(){var b,c,d={};c=function(a){return b.hasOwnProperty(a)&&!d[e]&&(d[e]=a),a};for(var e in a.UnitConversions)a.UnitConversions.hasOwnProperty(e)&&(b=a.UnitConversions[e],this.map(c));return d},cancel:function(){var a,b,c,d={};for(b=0;b<this.numerator.length;b++)a=this.numerator[b],c||(c=a),d[a]=(d[a]||0)+1;for(b=0;b<this.denominator.length;b++)a=this.denominator[b],c||(c=a),d[a]=(d[a]||0)-1;this.numerator=[],this.denominator=[];for(a in d)if(d.hasOwnProperty(a)){var e=d[a];if(e>0)for(b=0;e>b;b++)this.numerator.push(a);else if(0>e)for(b=0;-e>b;b++)this.denominator.push(a)}0===this.numerator.length&&0===this.denominator.length&&c&&(this.backupUnit=c),this.numerator.sort(),this.denominator.sort()}}}(c("../tree")),function(a){a.Directive=function(a,b,c,d,e,f){this.name=a,this.value=b,c&&(this.rules=c,this.rules.allowImports=!0),this.index=d,this.currentFileInfo=e,this.debugInfo=f},a.Directive.prototype={type:"Directive",accept:function(a){var b=this.value,c=this.rules;c&&(c=a.visit(c)),b&&(b=a.visit(b))},isRulesetLike:function(){return!this.isCharset()},isCharset:function(){return"@charset"===this.name},genCSS:function(b,c){var d=this.value,e=this.rules;c.add(this.name,this.currentFileInfo,this.index),d&&(c.add(" "),d.genCSS(b,c)),e?a.outputRuleset(b,c,[e]):c.add(";")},toCSS:a.toCSS,eval:function(b){var c=this.value,d=this.rules;return c&&(c=c.eval(b)),d&&(d=d.eval(b),d.root=!0),new a.Directive(this.name,c,d,this.index,this.currentFileInfo,this.debugInfo)},variable:function(b){return this.rules?a.Ruleset.prototype.variable.call(this.rules,b):void 0},find:function(){return this.rules?a.Ruleset.prototype.find.apply(this.rules,arguments):void 0},rulesets:function(){return this.rules?a.Ruleset.prototype.rulesets.apply(this.rules):void 0},markReferenced:function(){var a,b;if(this.isReferenced=!0,this.rules)for(b=this.rules.rules,a=0;a<b.length;a++)b[a].markReferenced&&b[a].markReferenced()}}}(c("../tree")),function(a){a.Element=function(b,c,d,e){this.combinator=b instanceof a.Combinator?b:new a.Combinator(b),this.value="string"==typeof c?c.trim():c?c:"",this.index=d,this.currentFileInfo=e},a.Element.prototype={type:"Element",accept:function(a){var b=this.value;this.combinator=a.visit(this.combinator),"object"==typeof b&&(this.value=a.visit(b))},eval:function(b){return new a.Element(this.combinator,this.value.eval?this.value.eval(b):this.value,this.index,this.currentFileInfo)},genCSS:function(a,b){b.add(this.toCSS(a),this.currentFileInfo,this.index)},toCSS:function(a){var b=this.value.toCSS?this.value.toCSS(a):this.value;return""===b&&"&"===this.combinator.value.charAt(0)?"":this.combinator.toCSS(a||{})+b}},a.Attribute=function(a,b,c){this.key=a,this.op=b,this.value=c},a.Attribute.prototype={type:"Attribute",eval:function(b){return new a.Attribute(this.key.eval?this.key.eval(b):this.key,this.op,this.value&&this.value.eval?this.value.eval(b):this.value)},genCSS:function(a,b){b.add(this.toCSS(a))},toCSS:function(a){var b=this.key.toCSS?this.key.toCSS(a):this.key;return this.op&&(b+=this.op,b+=this.value.toCSS?this.value.toCSS(a):this.value),"["+b+"]"}},a.Combinator=function(a){this.value=" "===a?" ":a?a.trim():""},a.Combinator.prototype={type:"Combinator",_noSpaceCombinators:{"":!0," ":!0,"|":!0},genCSS:function(a,b){var c=a.compress||this._noSpaceCombinators[this.value]?"":" ";b.add(c+this.value+c)},toCSS:a.toCSS}}(c("../tree")),function(a){a.Expression=function(a){this.value=a},a.Expression.prototype={type:"Expression",accept:function(a){this.value&&(this.value=a.visitArray(this.value))},eval:function(b){var c,d=this.parens&&!this.parensInOp,e=!1;return d&&b.inParenthesis(),this.value.length>1?c=new a.Expression(this.value.map(function(a){return a.eval(b)})):1===this.value.length?(this.value[0].parens&&!this.value[0].parensInOp&&(e=!0),c=this.value[0].eval(b)):c=this,d&&b.outOfParenthesis(),this.parens&&this.parensInOp&&!b.isMathOn()&&!e&&(c=new a.Paren(c)),c},genCSS:function(a,b){for(var c=0;c<this.value.length;c++)this.value[c].genCSS(a,b),c+1<this.value.length&&b.add(" ")},toCSS:a.toCSS,throwAwayComments:function(){this.value=this.value.filter(function(b){return!(b instanceof a.Comment)})}}}(c("../tree")),function(a){a.Extend=function(b,c,d){switch(this.selector=b,this.option=c,this.index=d,this.object_id=a.Extend.next_id++,this.parent_ids=[this.object_id],c){case"all":this.allowBefore=!0,this.allowAfter=!0;break;default:this.allowBefore=!1,this.allowAfter=!1}},a.Extend.next_id=0,a.Extend.prototype={type:"Extend",accept:function(a){this.selector=a.visit(this.selector)},eval:function(b){return new a.Extend(this.selector.eval(b),this.option,this.index)},clone:function(){return new a.Extend(this.selector,this.option,this.index)},findSelfSelectors:function(a){var b,c,d=[];for(b=0;b<a.length;b++)c=a[b].elements,b>0&&c.length&&""===c[0].combinator.value&&(c[0].combinator.value=" "),d=d.concat(a[b].elements);this.selfSelectors=[{elements:d}]}}}(c("../tree")),function(a){a.Import=function(a,c,d,e,f){if(this.options=d,this.index=e,this.path=a,this.features=c,this.currentFileInfo=f,this.options.less!==b||this.options.inline)this.css=!this.options.less||this.options.inline;else{var g=this.getPath();g&&/css([\?;].*)?$/.test(g)&&(this.css=!0)}},a.Import.prototype={type:"Import",accept:function(a){this.features&&(this.features=a.visit(this.features)),this.path=a.visit(this.path),!this.options.inline&&this.root&&(this.root=a.visit(this.root))},genCSS:function(a,b){this.css&&(b.add("@import ",this.currentFileInfo,this.index),this.path.genCSS(a,b),this.features&&(b.add(" "),this.features.genCSS(a,b)),b.add(";"))},toCSS:a.toCSS,getPath:function(){if(this.path instanceof a.Quoted){var c=this.path.value;return this.css!==b||/(\.[a-z]*$)|([\?;].*)$/.test(c)?c:c+".less"}return this.path instanceof a.URL?this.path.value.value:null},evalForImport:function(b){return new a.Import(this.path.eval(b),this.features,this.options,this.index,this.currentFileInfo)},evalPath:function(b){var c=this.path.eval(b),d=this.currentFileInfo&&this.currentFileInfo.rootpath;if(!(c instanceof a.URL)){if(d){var e=c.value;e&&b.isPathRelative(e)&&(c.value=d+e)}c.value=b.normalizePath(c.value)}return c},eval:function(b){var c,d=this.features&&this.features.eval(b);if(this.skip&&("function"==typeof this.skip&&(this.skip=this.skip()),this.skip))return[];if(this.options.inline){var e=new a.Anonymous(this.root,0,{filename:this.importedFilename},!0,!0);return this.features?new a.Media([e],this.features.value):[e]}if(this.css){var f=new a.Import(this.evalPath(b),d,this.options,this.index);if(!f.css&&this.error)throw this.error;return f}return c=new a.Ruleset(null,this.root.rules.slice(0)),c.evalImports(b),this.features?new a.Media(c.rules,this.features.value):c.rules}}}(c("../tree")),function(a){a.JavaScript=function(a,b,c){this.escaped=c,this.expression=a,this.index=b},a.JavaScript.prototype={type:"JavaScript",eval:function(b){var c,d=this,e={},f=this.expression.replace(/@\{([\w-]+)\}/g,function(c,e){return a.jsify(new a.Variable("@"+e,d.index).eval(b))});try{f=new Function("return ("+f+")")}catch(g){throw{message:"JavaScript evaluation error: "+g.message+" from `"+f+"`",index:this.index}}var h=b.frames[0].variables();for(var i in h)h.hasOwnProperty(i)&&(e[i.slice(1)]={value:h[i].value,toJS:function(){return this.value.eval(b).toCSS()}});try{c=f.call(e)}catch(g){throw{message:"JavaScript evaluation error: '"+g.name+": "+g.message.replace(/["]/g,"'")+"'",index:this.index}}return"number"==typeof c?new a.Dimension(c):"string"==typeof c?new a.Quoted('"'+c+'"',c,this.escaped,this.index):new a.Anonymous(Array.isArray(c)?c.join(", "):c)}}}(c("../tree")),function(a){a.Keyword=function(a){this.value=a},a.Keyword.prototype={type:"Keyword",eval:function(){return this},genCSS:function(a,b){if("%"===this.value)throw{type:"Syntax",message:"Invalid % without number"};b.add(this.value)},toCSS:a.toCSS,compare:function(b){return b instanceof a.Keyword?b.value===this.value?0:1:-1}},a.True=new a.Keyword("true"),a.False=new a.Keyword("false")}(c("../tree")),function(a){a.Media=function(b,c,d,e){this.index=d,this.currentFileInfo=e;var f=this.emptySelectors();this.features=new a.Value(c),this.rules=[new a.Ruleset(f,b)],this.rules[0].allowImports=!0},a.Media.prototype={type:"Media",accept:function(a){this.features&&(this.features=a.visit(this.features)),this.rules&&(this.rules=a.visitArray(this.rules))},genCSS:function(b,c){c.add("@media ",this.currentFileInfo,this.index),this.features.genCSS(b,c),a.outputRuleset(b,c,this.rules)},toCSS:a.toCSS,eval:function(b){b.mediaBlocks||(b.mediaBlocks=[],b.mediaPath=[]);var c=new a.Media(null,[],this.index,this.currentFileInfo);this.debugInfo&&(this.rules[0].debugInfo=this.debugInfo,c.debugInfo=this.debugInfo);var d=!1;b.strictMath||(d=!0,b.strictMath=!0);try{c.features=this.features.eval(b)}finally{d&&(b.strictMath=!1)}return b.mediaPath.push(c),b.mediaBlocks.push(c),b.frames.unshift(this.rules[0]),c.rules=[this.rules[0].eval(b)],b.frames.shift(),b.mediaPath.pop(),0===b.mediaPath.length?c.evalTop(b):c.evalNested(b)},variable:function(b){return a.Ruleset.prototype.variable.call(this.rules[0],b)},find:function(){return a.Ruleset.prototype.find.apply(this.rules[0],arguments)},rulesets:function(){return a.Ruleset.prototype.rulesets.apply(this.rules[0])},emptySelectors:function(){var b=new a.Element("","&",this.index,this.currentFileInfo),c=[new a.Selector([b],null,null,this.index,this.currentFileInfo)];return c[0].mediaEmpty=!0,c},markReferenced:function(){var a,b=this.rules[0].rules;for(this.rules[0].markReferenced(),this.isReferenced=!0,a=0;a<b.length;a++)b[a].markReferenced&&b[a].markReferenced()},evalTop:function(b){var c=this;if(b.mediaBlocks.length>1){var d=this.emptySelectors();c=new a.Ruleset(d,b.mediaBlocks),c.multiMedia=!0}return delete b.mediaBlocks,delete b.mediaPath,c},evalNested:function(b){var c,d,e=b.mediaPath.concat([this]);for(c=0;c<e.length;c++)d=e[c].features instanceof a.Value?e[c].features.value:e[c].features,e[c]=Array.isArray(d)?d:[d];return this.features=new a.Value(this.permute(e).map(function(b){for(b=b.map(function(b){return b.toCSS?b:new a.Anonymous(b)}),c=b.length-1;c>0;c--)b.splice(c,0,new a.Anonymous("and"));return new a.Expression(b)})),new a.Ruleset([],[])},permute:function(a){if(0===a.length)return[];
|
15
|
+
if(1===a.length)return a[0];for(var b=[],c=this.permute(a.slice(1)),d=0;d<c.length;d++)for(var e=0;e<a[0].length;e++)b.push([a[0][e]].concat(c[d]));return b},bubbleSelectors:function(b){b&&(this.rules=[new a.Ruleset(b.slice(0),[this.rules[0]])])}}}(c("../tree")),function(a){a.mixin={},a.mixin.Call=function(b,c,d,e,f){this.selector=new a.Selector(b),this.arguments=c&&c.length?c:null,this.index=d,this.currentFileInfo=e,this.important=f},a.mixin.Call.prototype={type:"MixinCall",accept:function(a){this.selector&&(this.selector=a.visit(this.selector)),this.arguments&&(this.arguments=a.visitArray(this.arguments))},eval:function(b){var c,d,e,f,g,h,i,j,k,l,m,n,o,p=[],q=!1,r=[],s=[],t=a.defaultFunc,u=0,v=1,w=2;for(e=this.arguments&&this.arguments.map(function(a){return{name:a.name,value:a.value.eval(b)}}),f=0;f<b.frames.length;f++)if((c=b.frames[f].find(this.selector)).length>0){for(j=!0,g=0;g<c.length;g++){for(d=c[g],i=!1,h=0;h<b.frames.length;h++)if(!(d instanceof a.mixin.Definition)&&d===(b.frames[h].originalRuleset||b.frames[h])){i=!0;break}if(!i&&d.matchArgs(e,b)){if(l={mixin:d,group:u},d.matchCondition){for(h=0;2>h;h++)t.value(h),s[h]=d.matchCondition(e,b);(s[0]||s[1])&&(s[0]!=s[1]&&(l.group=s[1]?v:w),r.push(l))}else r.push(l);q=!0}}for(t.reset(),n=[0,0,0],g=0;g<r.length;g++)n[r[g].group]++;if(n[u]>0)m=w;else if(m=v,n[v]+n[w]>1)throw{type:"Runtime",message:"Ambiguous use of `default()` found when matching for `"+this.format(e)+"`",index:this.index,filename:this.currentFileInfo.filename};for(g=0;g<r.length;g++)if(l=r[g].group,l===u||l===m)try{d=r[g].mixin,d instanceof a.mixin.Definition||(o=d.originalRuleset||d,d=new a.mixin.Definition("",[],d.rules,null,!1),d.originalRuleset=o),Array.prototype.push.apply(p,d.evalCall(b,e,this.important).rules)}catch(x){throw{message:x.message,index:this.index,filename:this.currentFileInfo.filename,stack:x.stack}}if(q){if(!this.currentFileInfo||!this.currentFileInfo.reference)for(f=0;f<p.length;f++)k=p[f],k.markReferenced&&k.markReferenced();return p}}throw j?{type:"Runtime",message:"No matching definition was found for `"+this.format(e)+"`",index:this.index,filename:this.currentFileInfo.filename}:{type:"Name",message:this.selector.toCSS().trim()+" is undefined",index:this.index,filename:this.currentFileInfo.filename}},format:function(a){return this.selector.toCSS().trim()+"("+(a?a.map(function(a){var b="";return a.name&&(b+=a.name+":"),b+=a.value.toCSS?a.value.toCSS():"???"}).join(", "):"")+")"}},a.mixin.Definition=function(b,c,d,e,f,g){this.name=b,this.selectors=[new a.Selector([new a.Element(null,b,this.index,this.currentFileInfo)])],this.params=c,this.condition=e,this.variadic=f,this.arity=c.length,this.rules=d,this._lookups={},this.required=c.reduce(function(a,b){return!b.name||b.name&&!b.value?a+1:a},0),this.parent=a.Ruleset.prototype,this.frames=g},a.mixin.Definition.prototype={type:"MixinDefinition",accept:function(a){this.params&&this.params.length&&(this.params=a.visitArray(this.params)),this.rules=a.visitArray(this.rules),this.condition&&(this.condition=a.visit(this.condition))},variable:function(a){return this.parent.variable.call(this,a)},variables:function(){return this.parent.variables.call(this)},find:function(){return this.parent.find.apply(this,arguments)},rulesets:function(){return this.parent.rulesets.apply(this)},evalParams:function(b,c,d,e){var f,g,h,i,j,k,l,m,n=new a.Ruleset(null,null),o=this.params.slice(0),p=0;if(c=new a.evalEnv(c,[n].concat(c.frames)),d)for(d=d.slice(0),p=d.length,h=0;p>h;h++)if(g=d[h],k=g&&g.name){for(l=!1,i=0;i<o.length;i++)if(!e[i]&&k===o[i].name){e[i]=g.value.eval(b),n.prependRule(new a.Rule(k,g.value.eval(b))),l=!0;break}if(l){d.splice(h,1),h--;continue}throw{type:"Runtime",message:"Named argument for "+this.name+" "+d[h].name+" not found"}}for(m=0,h=0;h<o.length;h++)if(!e[h]){if(g=d&&d[m],k=o[h].name)if(o[h].variadic){for(f=[],i=m;p>i;i++)f.push(d[i].value.eval(b));n.prependRule(new a.Rule(k,new a.Expression(f).eval(b)))}else{if(j=g&&g.value)j=j.eval(b);else{if(!o[h].value)throw{type:"Runtime",message:"wrong number of arguments for "+this.name+" ("+p+" for "+this.arity+")"};j=o[h].value.eval(c),n.resetCache()}n.prependRule(new a.Rule(k,j)),e[h]=j}if(o[h].variadic&&d)for(i=m;p>i;i++)e[i]=d[i].value.eval(b);m++}return n},eval:function(b){return new a.mixin.Definition(this.name,this.params,this.rules,this.condition,this.variadic,this.frames||b.frames.slice(0))},evalCall:function(b,c,d){var e,f,g=[],h=this.frames?this.frames.concat(b.frames):b.frames,i=this.evalParams(b,new a.evalEnv(b,h),c,g);return i.prependRule(new a.Rule("@arguments",new a.Expression(g).eval(b))),e=this.rules.slice(0),f=new a.Ruleset(null,e),f.originalRuleset=this,f=f.eval(new a.evalEnv(b,[this,i].concat(h))),d&&(f=this.parent.makeImportant.apply(f)),f},matchCondition:function(b,c){return this.condition&&!this.condition.eval(new a.evalEnv(c,[this.evalParams(c,new a.evalEnv(c,this.frames?this.frames.concat(c.frames):c.frames),b,[])].concat(this.frames).concat(c.frames)))?!1:!0},matchArgs:function(a,b){var c,d=a&&a.length||0;if(this.variadic){if(d<this.required-1)return!1}else{if(d<this.required)return!1;if(d>this.params.length)return!1}c=Math.min(d,this.arity);for(var e=0;c>e;e++)if(!this.params[e].name&&!this.params[e].variadic&&a[e].value.eval(b).toCSS()!=this.params[e].value.eval(b).toCSS())return!1;return!0}}}(c("../tree")),function(a){a.Negative=function(a){this.value=a},a.Negative.prototype={type:"Negative",accept:function(a){this.value=a.visit(this.value)},genCSS:function(a,b){b.add("-"),this.value.genCSS(a,b)},toCSS:a.toCSS,eval:function(b){return b.isMathOn()?new a.Operation("*",[new a.Dimension(-1),this.value]).eval(b):new a.Negative(this.value.eval(b))}}}(c("../tree")),function(a){a.Operation=function(a,b,c){this.op=a.trim(),this.operands=b,this.isSpaced=c},a.Operation.prototype={type:"Operation",accept:function(a){this.operands=a.visit(this.operands)},eval:function(b){var c=this.operands[0].eval(b),d=this.operands[1].eval(b);if(b.isMathOn()){if(c instanceof a.Dimension&&d instanceof a.Color&&(c=c.toColor()),d instanceof a.Dimension&&c instanceof a.Color&&(d=d.toColor()),!c.operate)throw{type:"Operation",message:"Operation on an invalid type"};return c.operate(b,this.op,d)}return new a.Operation(this.op,[c,d],this.isSpaced)},genCSS:function(a,b){this.operands[0].genCSS(a,b),this.isSpaced&&b.add(" "),b.add(this.op),this.isSpaced&&b.add(" "),this.operands[1].genCSS(a,b)},toCSS:a.toCSS},a.operate=function(a,b,c,d){switch(b){case"+":return c+d;case"-":return c-d;case"*":return c*d;case"/":return c/d}}}(c("../tree")),function(a){a.Paren=function(a){this.value=a},a.Paren.prototype={type:"Paren",accept:function(a){this.value=a.visit(this.value)},genCSS:function(a,b){b.add("("),this.value.genCSS(a,b),b.add(")")},toCSS:a.toCSS,eval:function(b){return new a.Paren(this.value.eval(b))}}}(c("../tree")),function(a){a.Quoted=function(a,b,c,d,e){this.escaped=c,this.value=b||"",this.quote=a.charAt(0),this.index=d,this.currentFileInfo=e},a.Quoted.prototype={type:"Quoted",genCSS:function(a,b){this.escaped||b.add(this.quote,this.currentFileInfo,this.index),b.add(this.value),this.escaped||b.add(this.quote)},toCSS:a.toCSS,eval:function(b){var c=this,d=this.value.replace(/`([^`]+)`/g,function(d,e){return new a.JavaScript(e,c.index,!0).eval(b).value}).replace(/@\{([\w-]+)\}/g,function(d,e){var f=new a.Variable("@"+e,c.index,c.currentFileInfo).eval(b,!0);return f instanceof a.Quoted?f.value:f.toCSS()});return new a.Quoted(this.quote+d+this.quote,d,this.escaped,this.index,this.currentFileInfo)},compare:function(a){if(!a.toCSS)return-1;var b,c;return"Quoted"!==a.type||this.escaped||a.escaped?(b=this.toCSS(),c=a.toCSS()):(b=a.value,c=this.value),b===c?0:c>b?-1:1}}}(c("../tree")),function(a){function c(a,b){var c,d="",e=b.length,f={add:function(a){d+=a}};for(c=0;e>c;c++)b[c].eval(a).genCSS(a,f);return d}a.Rule=function(c,d,e,f,g,h,i,j){this.name=c,this.value=d instanceof a.Value||d instanceof a.Ruleset?d:new a.Value([d]),this.important=e?" "+e.trim():"",this.merge=f,this.index=g,this.currentFileInfo=h,this.inline=i||!1,this.variable=j!==b?j:c.charAt&&"@"===c.charAt(0)},a.Rule.prototype={type:"Rule",accept:function(a){this.value=a.visit(this.value)},genCSS:function(a,b){b.add(this.name+(a.compress?":":": "),this.currentFileInfo,this.index);try{this.value.genCSS(a,b)}catch(c){throw c.index=this.index,c.filename=this.currentFileInfo.filename,c}b.add(this.important+(this.inline||a.lastRule&&a.compress?"":";"),this.currentFileInfo,this.index)},toCSS:a.toCSS,eval:function(b){var d,e=!1,f=this.name,g=this.variable;"string"!=typeof f&&(f=1===f.length&&f[0]instanceof a.Keyword?f[0].value:c(b,f),g=!1),"font"!==f||b.strictMath||(e=!0,b.strictMath=!0);try{if(d=this.value.eval(b),!this.variable&&"DetachedRuleset"===d.type)throw{message:"Rulesets cannot be evaluated on a property.",index:this.index,filename:this.currentFileInfo.filename};return new a.Rule(f,d,this.important,this.merge,this.index,this.currentFileInfo,this.inline,g)}catch(h){throw"number"!=typeof h.index&&(h.index=this.index,h.filename=this.currentFileInfo.filename),h}finally{e&&(b.strictMath=!1)}},makeImportant:function(){return new a.Rule(this.name,this.value,"!important",this.merge,this.index,this.currentFileInfo,this.inline)}}}(c("../tree")),function(a){a.RulesetCall=function(a){this.variable=a},a.RulesetCall.prototype={type:"RulesetCall",accept:function(){},eval:function(b){var c=new a.Variable(this.variable).eval(b);return c.callEval(b)}}}(c("../tree")),function(a){a.Ruleset=function(a,b,c){this.selectors=a,this.rules=b,this._lookups={},this.strictImports=c},a.Ruleset.prototype={type:"Ruleset",accept:function(a){this.paths?a.visitArray(this.paths,!0):this.selectors&&(this.selectors=a.visitArray(this.selectors)),this.rules&&this.rules.length&&(this.rules=a.visitArray(this.rules))},eval:function(b){var c,d,e,f,g=this.selectors,h=a.defaultFunc,i=!1;if(g&&(d=g.length)){for(c=[],h.error({type:"Syntax",message:"it is currently only allowed in parametric mixin guards,"}),f=0;d>f;f++)e=g[f].eval(b),c.push(e),e.evaldCondition&&(i=!0);h.reset()}else i=!0;var j,k,l=this.rules?this.rules.slice(0):null,m=new a.Ruleset(c,l,this.strictImports);m.originalRuleset=this,m.root=this.root,m.firstRoot=this.firstRoot,m.allowImports=this.allowImports,this.debugInfo&&(m.debugInfo=this.debugInfo),i||(l.length=0);var n=b.frames;n.unshift(m);var o=b.selectors;o||(b.selectors=o=[]),o.unshift(this.selectors),(m.root||m.allowImports||!m.strictImports)&&m.evalImports(b);var p=m.rules,q=p?p.length:0;for(f=0;q>f;f++)(p[f]instanceof a.mixin.Definition||p[f]instanceof a.DetachedRuleset)&&(p[f]=p[f].eval(b));var r=b.mediaBlocks&&b.mediaBlocks.length||0;for(f=0;q>f;f++)p[f]instanceof a.mixin.Call?(l=p[f].eval(b).filter(function(b){return b instanceof a.Rule&&b.variable?!m.variable(b.name):!0}),p.splice.apply(p,[f,1].concat(l)),q+=l.length-1,f+=l.length-1,m.resetCache()):p[f]instanceof a.RulesetCall&&(l=p[f].eval(b).rules.filter(function(b){return b instanceof a.Rule&&b.variable?!1:!0}),p.splice.apply(p,[f,1].concat(l)),q+=l.length-1,f+=l.length-1,m.resetCache());for(f=0;f<p.length;f++)j=p[f],j instanceof a.mixin.Definition||j instanceof a.DetachedRuleset||(p[f]=j=j.eval?j.eval(b):j);for(f=0;f<p.length;f++)if(j=p[f],j instanceof a.Ruleset&&j.selectors&&1===j.selectors.length&&j.selectors[0].isJustParentSelector()){p.splice(f--,1);for(var s=0;s<j.rules.length;s++)k=j.rules[s],k instanceof a.Rule&&k.variable||p.splice(++f,0,k)}if(n.shift(),o.shift(),b.mediaBlocks)for(f=r;f<b.mediaBlocks.length;f++)b.mediaBlocks[f].bubbleSelectors(c);return m},evalImports:function(b){var c,d,e=this.rules;if(e)for(c=0;c<e.length;c++)e[c]instanceof a.Import&&(d=e[c].eval(b),d&&d.length?(e.splice.apply(e,[c,1].concat(d)),c+=d.length-1):e.splice(c,1,d),this.resetCache())},makeImportant:function(){return new a.Ruleset(this.selectors,this.rules.map(function(a){return a.makeImportant?a.makeImportant():a}),this.strictImports)},matchArgs:function(a){return!a||0===a.length},matchCondition:function(b,c){var d=this.selectors[this.selectors.length-1];return d.evaldCondition?d.condition&&!d.condition.eval(new a.evalEnv(c,c.frames))?!1:!0:!1},resetCache:function(){this._rulesets=null,this._variables=null,this._lookups={}},variables:function(){return this._variables||(this._variables=this.rules?this.rules.reduce(function(b,c){return c instanceof a.Rule&&c.variable===!0&&(b[c.name]=c),b},{}):{}),this._variables},variable:function(a){return this.variables()[a]},rulesets:function(){if(!this.rules)return null;var b,c,d=a.Ruleset,e=a.mixin.Definition,f=[],g=this.rules,h=g.length;for(b=0;h>b;b++)c=g[b],(c instanceof d||c instanceof e)&&f.push(c);return f},prependRule:function(a){var b=this.rules;b?b.unshift(a):this.rules=[a]},find:function(b,c){c=c||this;var d,e=[],f=b.toCSS();return f in this._lookups?this._lookups[f]:(this.rulesets().forEach(function(f){if(f!==c)for(var g=0;g<f.selectors.length;g++)if(d=b.match(f.selectors[g])){b.elements.length>d?Array.prototype.push.apply(e,f.find(new a.Selector(b.elements.slice(d)),c)):e.push(f);break}}),this._lookups[f]=e,e)},genCSS:function(b,c){function d(b,c){return b.rules?!0:b instanceof a.Media||c&&b instanceof a.Comment?!0:b instanceof a.Directive||b instanceof a.Anonymous?b.isRulesetLike():!1}var e,f,g,h,i,j,k=[],l=[],m=[];b.tabLevel=b.tabLevel||0,this.root||b.tabLevel++;var n,o=b.compress?"":Array(b.tabLevel+1).join(" "),p=b.compress?"":Array(b.tabLevel).join(" ");for(e=0;e<this.rules.length;e++)i=this.rules[e],d(i,this.root)?m.push(i):i.isCharset&&i.isCharset()?k.push(i):l.push(i);if(l=k.concat(l),!this.root){h=a.debugInfo(b,this,p),h&&(c.add(h),c.add(p));var q,r=this.paths,s=r.length;for(n=b.compress?",":",\n"+p,e=0;s>e;e++)if(j=r[e],q=j.length)for(e>0&&c.add(n),b.firstSelector=!0,j[0].genCSS(b,c),b.firstSelector=!1,f=1;q>f;f++)j[f].genCSS(b,c);c.add((b.compress?"{":" {\n")+o)}for(e=0;e<l.length;e++)i=l[e],e+1!==l.length||this.root&&0!==m.length&&!this.firstRoot||(b.lastRule=!0),i.genCSS?i.genCSS(b,c):i.value&&c.add(i.value.toString()),b.lastRule?b.lastRule=!1:c.add(b.compress?"":"\n"+o);if(this.root||(c.add(b.compress?"}":"\n"+p+"}"),b.tabLevel--),n=(b.compress?"":"\n")+(this.root?o:p),g=m.length)for(l.length&&n&&c.add(n),m[0].genCSS(b,c),e=1;g>e;e++)n&&c.add(n),m[e].genCSS(b,c);c.isEmpty()||b.compress||!this.firstRoot||c.add("\n")},toCSS:a.toCSS,markReferenced:function(){if(this.selectors)for(var a=0;a<this.selectors.length;a++)this.selectors[a].markReferenced()},joinSelectors:function(a,b,c){for(var d=0;d<c.length;d++)this.joinSelector(a,b,c[d])},joinSelector:function(b,c,d){var e,f,g,h,i,j,k,l,m,n,o,p,q,r,s;for(e=0;e<d.elements.length;e++)j=d.elements[e],"&"===j.value&&(h=!0);if(h){for(r=[],i=[[]],e=0;e<d.elements.length;e++)if(j=d.elements[e],"&"!==j.value)r.push(j);else{for(s=[],r.length>0&&this.mergeElementsOnToSelectors(r,i),f=0;f<i.length;f++)if(k=i[f],0===c.length)k.length>0&&(k[0].elements=k[0].elements.slice(0),k[0].elements.push(new a.Element(j.combinator,"",j.index,j.currentFileInfo))),s.push(k);else for(g=0;g<c.length;g++)l=c[g],m=[],n=[],p=!0,k.length>0?(m=k.slice(0),q=m.pop(),o=d.createDerived(q.elements.slice(0)),p=!1):o=d.createDerived([]),l.length>1&&(n=n.concat(l.slice(1))),l.length>0&&(p=!1,o.elements.push(new a.Element(j.combinator,l[0].elements[0].value,j.index,j.currentFileInfo)),o.elements=o.elements.concat(l[0].elements.slice(1))),p||m.push(o),m=m.concat(n),s.push(m);i=s,r=[]}for(r.length>0&&this.mergeElementsOnToSelectors(r,i),e=0;e<i.length;e++)i[e].length>0&&b.push(i[e])}else if(c.length>0)for(e=0;e<c.length;e++)b.push(c[e].concat(d));else b.push([d])},mergeElementsOnToSelectors:function(b,c){var d,e;if(0===c.length)return void c.push([new a.Selector(b)]);for(d=0;d<c.length;d++)e=c[d],e.length>0?e[e.length-1]=e[e.length-1].createDerived(e[e.length-1].elements.concat(b)):e.push(new a.Selector(b))}}}(c("../tree")),function(a){a.Selector=function(a,b,c,d,e,f){this.elements=a,this.extendList=b,this.condition=c,this.currentFileInfo=e||{},this.isReferenced=f,c||(this.evaldCondition=!0)},a.Selector.prototype={type:"Selector",accept:function(a){this.elements&&(this.elements=a.visitArray(this.elements)),this.extendList&&(this.extendList=a.visitArray(this.extendList)),this.condition&&(this.condition=a.visit(this.condition))},createDerived:function(b,c,d){d=null!=d?d:this.evaldCondition;var e=new a.Selector(b,c||this.extendList,null,this.index,this.currentFileInfo,this.isReferenced);return e.evaldCondition=d,e.mediaEmpty=this.mediaEmpty,e},match:function(a){var b,c,d=this.elements,e=d.length;if(a.CacheElements(),b=a._elements.length,0===b||b>e)return 0;for(c=0;b>c;c++)if(d[c].value!==a._elements[c])return 0;return b},CacheElements:function(){var a,b,c,d="";if(!this._elements){for(a=this.elements.length,c=0;a>c;c++)if(b=this.elements[c],d+=b.combinator.value,b.value.value){if("string"!=typeof b.value.value){d="";break}d+=b.value.value}else d+=b.value;this._elements=d.match(/[,&#\*\.\w-]([\w-]|(\\.))*/g),this._elements?"&"===this._elements[0]&&this._elements.shift():this._elements=[]}},isJustParentSelector:function(){return!this.mediaEmpty&&1===this.elements.length&&"&"===this.elements[0].value&&(" "===this.elements[0].combinator.value||""===this.elements[0].combinator.value)},eval:function(a){var b=this.condition&&this.condition.eval(a),c=this.elements,d=this.extendList;return c=c&&c.map(function(b){return b.eval(a)}),d=d&&d.map(function(b){return b.eval(a)}),this.createDerived(c,d,b)},genCSS:function(a,b){var c,d;if(a&&a.firstSelector||""!==this.elements[0].combinator.value||b.add(" ",this.currentFileInfo,this.index),!this._css)for(c=0;c<this.elements.length;c++)d=this.elements[c],d.genCSS(a,b)},toCSS:a.toCSS,markReferenced:function(){this.isReferenced=!0},getIsReferenced:function(){return!this.currentFileInfo.reference||this.isReferenced},getIsOutput:function(){return this.evaldCondition}}}(c("../tree")),function(a){a.UnicodeDescriptor=function(a){this.value=a},a.UnicodeDescriptor.prototype={type:"UnicodeDescriptor",genCSS:function(a,b){b.add(this.value)},toCSS:a.toCSS,eval:function(){return this}}}(c("../tree")),function(a){a.URL=function(a,b,c){this.value=a,this.currentFileInfo=b,this.isEvald=c},a.URL.prototype={type:"Url",accept:function(a){this.value=a.visit(this.value)},genCSS:function(a,b){b.add("url("),this.value.genCSS(a,b),b.add(")")},toCSS:a.toCSS,eval:function(b){var c,d=this.value.eval(b);if(!this.isEvald&&(c=this.currentFileInfo&&this.currentFileInfo.rootpath,c&&"string"==typeof d.value&&b.isPathRelative(d.value)&&(d.quote||(c=c.replace(/[\(\)'"\s]/g,function(a){return"\\"+a})),d.value=c+d.value),d.value=b.normalizePath(d.value),b.urlArgs&&!d.value.match(/^\s*data:/))){var e=-1===d.value.indexOf("?")?"?":"&",f=e+b.urlArgs;-1!==d.value.indexOf("#")?d.value=d.value.replace("#",f+"#"):d.value+=f}return new a.URL(d,this.currentFileInfo,!0)}}}(c("../tree")),function(a){a.Value=function(a){this.value=a},a.Value.prototype={type:"Value",accept:function(a){this.value&&(this.value=a.visitArray(this.value))},eval:function(b){return 1===this.value.length?this.value[0].eval(b):new a.Value(this.value.map(function(a){return a.eval(b)}))},genCSS:function(a,b){var c;for(c=0;c<this.value.length;c++)this.value[c].genCSS(a,b),c+1<this.value.length&&b.add(a&&a.compress?",":", ")},toCSS:a.toCSS}}(c("../tree")),function(a){a.Variable=function(a,b,c){this.name=a,this.index=b,this.currentFileInfo=c||{}},a.Variable.prototype={type:"Variable",eval:function(b){var c,d=this.name;if(0===d.indexOf("@@")&&(d="@"+new a.Variable(d.slice(1)).eval(b).value),this.evaluating)throw{type:"Name",message:"Recursive variable definition for "+d,filename:this.currentFileInfo.file,index:this.index};if(this.evaluating=!0,c=a.find(b.frames,function(a){var c=a.variable(d);return c?c.value.eval(b):void 0}))return this.evaluating=!1,c;throw{type:"Name",message:"variable "+d+" is undefined",filename:this.currentFileInfo.filename,index:this.index}}}}(c("../tree")),function(a){var b=["paths","optimization","files","contents","contentsIgnoredChars","relativeUrls","rootpath","strictImports","insecure","dumpLineNumbers","compress","processImports","syncImport","javascriptEnabled","mime","useFileCache","currentFileInfo"];a.parseEnv=function(a){if(d(a,this,b),this.contents||(this.contents={}),this.contentsIgnoredChars||(this.contentsIgnoredChars={}),this.files||(this.files={}),"string"==typeof this.paths&&(this.paths=[this.paths]),!this.currentFileInfo){var c=a&&a.filename||"input",e=c.replace(/[^\/\\]*$/,"");a&&(a.filename=null),this.currentFileInfo={filename:c,relativeUrls:this.relativeUrls,rootpath:a&&a.rootpath||"",currentDirectory:e,entryPath:e,rootFilename:c}}};var c=["silent","verbose","compress","yuicompress","ieCompat","strictMath","strictUnits","cleancss","sourceMap","importMultiple","urlArgs"];a.evalEnv=function(a,b){d(a,this,c),this.frames=b||[]},a.evalEnv.prototype.inParenthesis=function(){this.parensStack||(this.parensStack=[]),this.parensStack.push(!0)},a.evalEnv.prototype.outOfParenthesis=function(){this.parensStack.pop()},a.evalEnv.prototype.isMathOn=function(){return this.strictMath?this.parensStack&&this.parensStack.length:!0},a.evalEnv.prototype.isPathRelative=function(a){return!/^(?:[a-z-]+:|\/)/.test(a)},a.evalEnv.prototype.normalizePath=function(a){var b,c=a.split("/").reverse();for(a=[];0!==c.length;)switch(b=c.pop()){case".":break;case"..":0===a.length||".."===a[a.length-1]?a.push(b):a.pop();break;default:a.push(b)}return a.join("/")};var d=function(a,b,c){if(a)for(var d=0;d<c.length;d++)a.hasOwnProperty(c[d])&&(b[c[d]]=a[c[d]])}}(c("./tree")),function(a){function b(a){return a}function c(a,b){var d,e;for(d in a)if(a.hasOwnProperty(d))switch(e=a[d],typeof e){case"function":e.prototype&&e.prototype.type&&(e.prototype.typeIndex=b++);break;case"object":b=c(e,b)}return b}var d={visitDeeper:!0},e=!1;a.visitor=function(b){this._implementation=b,this._visitFnCache=[],e||(c(a,1),e=!0)},a.visitor.prototype={visit:function(a){if(!a)return a;var c=a.typeIndex;if(!c)return a;var e,f=this._visitFnCache,g=this._implementation,h=c<<1,i=1|h,j=f[h],k=f[i],l=d;if(l.visitDeeper=!0,j||(e="visit"+a.type,j=g[e]||b,k=g[e+"Out"]||b,f[h]=j,f[i]=k),j!==b){var m=j.call(g,a,l);g.isReplacing&&(a=m)}return l.visitDeeper&&a&&a.accept&&a.accept(this),k!=b&&k.call(g,a),a},visitArray:function(a,b){if(!a)return a;var c,d=a.length;if(b||!this._implementation.isReplacing){for(c=0;d>c;c++)this.visit(a[c]);return a}var e=[];for(c=0;d>c;c++){var f=this.visit(a[c]);f.splice?f.length&&this.flatten(f,e):e.push(f)}return e},flatten:function(a,b){b||(b=[]);var c,d,e,f,g,h;for(d=0,c=a.length;c>d;d++)if(e=a[d],e.splice)for(g=0,f=e.length;f>g;g++)h=e[g],h.splice?h.length&&this.flatten(h,b):b.push(h);else b.push(e);return b}}}(c("./tree")),function(a){a.importVisitor=function(b,c,d,e,f){if(this._visitor=new a.visitor(this),this._importer=b,this._finish=c,this.env=d||new a.evalEnv,this.importCount=0,this.onceFileDetectionMap=e||{},this.recursionDetector={},f)for(var g in f)f.hasOwnProperty(g)&&(this.recursionDetector[g]=!0)},a.importVisitor.prototype={isReplacing:!0,run:function(a){var b;try{this._visitor.visit(a)}catch(c){b=c}this.isFinished=!0,0===this.importCount&&this._finish(b)},visitImport:function(b,c){var d,e=this,f=b.options.inline;if(!b.css||f){try{d=b.evalForImport(this.env)}catch(g){g.filename||(g.index=b.index,g.filename=b.currentFileInfo.filename),b.css=!0,b.error=g}if(d&&(!d.css||f)){b=d,this.importCount++;var h=new a.evalEnv(this.env,this.env.frames.slice(0));b.options.multiple&&(h.importMultiple=!0),this._importer.push(b.getPath(),b.currentFileInfo,b.options,function(c,d,g,i){c&&!c.filename&&(c.index=b.index,c.filename=b.currentFileInfo.filename);var j=g||i in e.recursionDetector;h.importMultiple||(b.skip=j?!0:function(){return i in e.onceFileDetectionMap?!0:(e.onceFileDetectionMap[i]=!0,!1)});var k=function(a){e.importCount--,0===e.importCount&&e.isFinished&&e._finish(a)};return!d||(b.root=d,b.importedFilename=i,f||!h.importMultiple&&j)?void k():(e.recursionDetector[i]=!0,void new a.importVisitor(e._importer,k,h,e.onceFileDetectionMap,e.recursionDetector).run(d))})}}return c.visitDeeper=!1,b},visitRule:function(a,b){return b.visitDeeper=!1,a},visitDirective:function(a){return this.env.frames.unshift(a),a},visitDirectiveOut:function(){this.env.frames.shift()},visitMixinDefinition:function(a){return this.env.frames.unshift(a),a},visitMixinDefinitionOut:function(){this.env.frames.shift()},visitRuleset:function(a){return this.env.frames.unshift(a),a},visitRulesetOut:function(){this.env.frames.shift()},visitMedia:function(a){return this.env.frames.unshift(a.rules[0]),a},visitMediaOut:function(){this.env.frames.shift()}}}(c("./tree")),function(a){a.joinSelectorVisitor=function(){this.contexts=[[]],this._visitor=new a.visitor(this)},a.joinSelectorVisitor.prototype={run:function(a){return this._visitor.visit(a)},visitRule:function(a,b){b.visitDeeper=!1},visitMixinDefinition:function(a,b){b.visitDeeper=!1},visitRuleset:function(a){var b,c=this.contexts[this.contexts.length-1],d=[];this.contexts.push(d),a.root||(b=a.selectors,b&&(b=b.filter(function(a){return a.getIsOutput()}),a.selectors=b.length?b:b=null,b&&a.joinSelectors(d,c,b)),b||(a.rules=null),a.paths=d)},visitRulesetOut:function(){this.contexts.length=this.contexts.length-1},visitMedia:function(a){var b=this.contexts[this.contexts.length-1];a.rules[0].root=0===b.length||b[0].multiMedia}}}(c("./tree")),function(a){a.toCSSVisitor=function(b){this._visitor=new a.visitor(this),this._env=b},a.toCSSVisitor.prototype={isReplacing:!0,run:function(a){return this._visitor.visit(a)},visitRule:function(a){return a.variable?[]:a},visitMixinDefinition:function(a){return a.frames=[],[]},visitExtend:function(){return[]},visitComment:function(a){return a.isSilent(this._env)?[]:a},visitMedia:function(a,b){return a.accept(this._visitor),b.visitDeeper=!1,a.rules.length?a:[]},visitDirective:function(b){if(b.currentFileInfo.reference&&!b.isReferenced)return[];if("@charset"===b.name){if(this.charset){if(b.debugInfo){var c=new a.Comment("/* "+b.toCSS(this._env).replace(/\n/g,"")+" */\n");return c.debugInfo=b.debugInfo,this._visitor.visit(c)}return[]}this.charset=!0}return b.rules&&b.rules.rules&&this._mergeRules(b.rules.rules),b},checkPropertiesInRoot:function(b){for(var c,d=0;d<b.length;d++)if(c=b[d],c instanceof a.Rule&&!c.variable)throw{message:"properties must be inside selector blocks, they cannot be in the root.",index:c.index,filename:c.currentFileInfo?c.currentFileInfo.filename:null}},visitRuleset:function(b,c){var d,e=[];if(b.firstRoot&&this.checkPropertiesInRoot(b.rules),b.root)b.accept(this._visitor),c.visitDeeper=!1,(b.firstRoot||b.rules&&b.rules.length>0)&&e.splice(0,0,b);else{b.paths&&(b.paths=b.paths.filter(function(b){var c;for(" "===b[0].elements[0].combinator.value&&(b[0].elements[0].combinator=new a.Combinator("")),c=0;c<b.length;c++)if(b[c].getIsReferenced()&&b[c].getIsOutput())return!0;return!1}));for(var f=b.rules,g=f?f.length:0,h=0;g>h;)d=f[h],d&&d.rules?(e.push(this._visitor.visit(d)),f.splice(h,1),g--):h++;g>0?b.accept(this._visitor):b.rules=null,c.visitDeeper=!1,f=b.rules,f&&(this._mergeRules(f),f=b.rules),f&&(this._removeDuplicateRules(f),f=b.rules),f&&f.length>0&&b.paths.length>0&&e.splice(0,0,b)}return 1===e.length?e[0]:e},_removeDuplicateRules:function(b){if(b){var c,d,e,f={};for(e=b.length-1;e>=0;e--)if(d=b[e],d instanceof a.Rule)if(f[d.name]){c=f[d.name],c instanceof a.Rule&&(c=f[d.name]=[f[d.name].toCSS(this._env)]);var g=d.toCSS(this._env);-1!==c.indexOf(g)?b.splice(e,1):c.push(g)}else f[d.name]=d}},_mergeRules:function(b){if(b){for(var c,d,e,f={},g=0;g<b.length;g++)d=b[g],d instanceof a.Rule&&d.merge&&(e=[d.name,d.important?"!":""].join(","),f[e]?b.splice(g--,1):f[e]=[],f[e].push(d));Object.keys(f).map(function(b){function e(b){return new a.Expression(b.map(function(a){return a.value}))}function g(b){return new a.Value(b.map(function(a){return a}))}if(c=f[b],c.length>1){d=c[0];var h=[],i=[];c.map(function(a){"+"===a.merge&&(i.length>0&&h.push(e(i)),i=[]),i.push(a)}),h.push(e(i)),d.value=g(h)}})}}}}(c("./tree")),function(a){a.extendFinderVisitor=function(){this._visitor=new a.visitor(this),this.contexts=[],this.allExtendsStack=[[]]},a.extendFinderVisitor.prototype={run:function(a){return a=this._visitor.visit(a),a.allExtends=this.allExtendsStack[0],a},visitRule:function(a,b){b.visitDeeper=!1},visitMixinDefinition:function(a,b){b.visitDeeper=!1},visitRuleset:function(b){if(!b.root){var c,d,e,f,g=[],h=b.rules,i=h?h.length:0;for(c=0;i>c;c++)b.rules[c]instanceof a.Extend&&(g.push(h[c]),b.extendOnEveryPath=!0);var j=b.paths;for(c=0;c<j.length;c++){var k=j[c],l=k[k.length-1],m=l.extendList;for(f=m?m.slice(0).concat(g):g,f&&(f=f.map(function(a){return a.clone()})),d=0;d<f.length;d++)this.foundExtends=!0,e=f[d],e.findSelfSelectors(k),e.ruleset=b,0===d&&(e.firstExtendOnThisSelectorPath=!0),this.allExtendsStack[this.allExtendsStack.length-1].push(e)}this.contexts.push(b.selectors)}},visitRulesetOut:function(a){a.root||(this.contexts.length=this.contexts.length-1)},visitMedia:function(a){a.allExtends=[],this.allExtendsStack.push(a.allExtends)},visitMediaOut:function(){this.allExtendsStack.length=this.allExtendsStack.length-1},visitDirective:function(a){a.allExtends=[],this.allExtendsStack.push(a.allExtends)},visitDirectiveOut:function(){this.allExtendsStack.length=this.allExtendsStack.length-1}},a.processExtendsVisitor=function(){this._visitor=new a.visitor(this)},a.processExtendsVisitor.prototype={run:function(b){var c=new a.extendFinderVisitor;return c.run(b),c.foundExtends?(b.allExtends=b.allExtends.concat(this.doExtendChaining(b.allExtends,b.allExtends)),this.allExtendsStack=[b.allExtends],this._visitor.visit(b)):b},doExtendChaining:function(b,c,d){var e,f,g,h,i,j,k,l,m=[],n=this;for(d=d||0,e=0;e<b.length;e++)for(f=0;f<c.length;f++)j=b[e],k=c[f],j.parent_ids.indexOf(k.object_id)>=0||(i=[k.selfSelectors[0]],g=n.findMatch(j,i),g.length&&j.selfSelectors.forEach(function(b){h=n.extendSelector(g,i,b),l=new a.Extend(k.selector,k.option,0),l.selfSelectors=h,h[h.length-1].extendList=[l],m.push(l),l.ruleset=k.ruleset,l.parent_ids=l.parent_ids.concat(k.parent_ids,j.parent_ids),k.firstExtendOnThisSelectorPath&&(l.firstExtendOnThisSelectorPath=!0,k.ruleset.paths.push(h))}));if(m.length){if(this.extendChainCount++,d>100){var o="{unable to calculate}",p="{unable to calculate}";try{o=m[0].selfSelectors[0].toCSS(),p=m[0].selector.toCSS()}catch(q){}throw{message:"extend circular reference detected. One of the circular extends is currently:"+o+":extend("+p+")"}}return m.concat(n.doExtendChaining(m,c,d+1))}return m},visitRule:function(a,b){b.visitDeeper=!1},visitMixinDefinition:function(a,b){b.visitDeeper=!1},visitSelector:function(a,b){b.visitDeeper=!1},visitRuleset:function(a){if(!a.root){var b,c,d,e,f=this.allExtendsStack[this.allExtendsStack.length-1],g=[],h=this;for(d=0;d<f.length;d++)for(c=0;c<a.paths.length;c++)if(e=a.paths[c],!a.extendOnEveryPath){var i=e[e.length-1].extendList;i&&i.length||(b=this.findMatch(f[d],e),b.length&&f[d].selfSelectors.forEach(function(a){g.push(h.extendSelector(b,e,a))}))}a.paths=a.paths.concat(g)}},findMatch:function(a,b){var c,d,e,f,g,h,i,j=this,k=a.selector.elements,l=[],m=[];for(c=0;c<b.length;c++)for(d=b[c],e=0;e<d.elements.length;e++)for(f=d.elements[e],(a.allowBefore||0===c&&0===e)&&l.push({pathIndex:c,index:e,matched:0,initialCombinator:f.combinator}),h=0;h<l.length;h++)i=l[h],g=f.combinator.value,""===g&&0===e&&(g=" "),!j.isElementValuesEqual(k[i.matched].value,f.value)||i.matched>0&&k[i.matched].combinator.value!==g?i=null:i.matched++,i&&(i.finished=i.matched===k.length,i.finished&&!a.allowAfter&&(e+1<d.elements.length||c+1<b.length)&&(i=null)),i?i.finished&&(i.length=k.length,i.endPathIndex=c,i.endPathElementIndex=e+1,l.length=0,m.push(i)):(l.splice(h,1),h--);return m},isElementValuesEqual:function(b,c){if("string"==typeof b||"string"==typeof c)return b===c;if(b instanceof a.Attribute)return b.op!==c.op||b.key!==c.key?!1:b.value&&c.value?(b=b.value.value||b.value,c=c.value.value||c.value,b===c):b.value||c.value?!1:!0;
|
16
|
+
if(b=b.value,c=c.value,b instanceof a.Selector){if(!(c instanceof a.Selector)||b.elements.length!==c.elements.length)return!1;for(var d=0;d<b.elements.length;d++){if(b.elements[d].combinator.value!==c.elements[d].combinator.value&&(0!==d||(b.elements[d].combinator.value||" ")!==(c.elements[d].combinator.value||" ")))return!1;if(!this.isElementValuesEqual(b.elements[d].value,c.elements[d].value))return!1}return!0}return!1},extendSelector:function(b,c,d){var e,f,g,h,i,j=0,k=0,l=[];for(e=0;e<b.length;e++)h=b[e],f=c[h.pathIndex],g=new a.Element(h.initialCombinator,d.elements[0].value,d.elements[0].index,d.elements[0].currentFileInfo),h.pathIndex>j&&k>0&&(l[l.length-1].elements=l[l.length-1].elements.concat(c[j].elements.slice(k)),k=0,j++),i=f.elements.slice(k,h.index).concat([g]).concat(d.elements.slice(1)),j===h.pathIndex&&e>0?l[l.length-1].elements=l[l.length-1].elements.concat(i):(l=l.concat(c.slice(j,h.pathIndex)),l.push(new a.Selector(i))),j=h.endPathIndex,k=h.endPathElementIndex,k>=c[j].elements.length&&(k=0,j++);return j<c.length&&k>0&&(l[l.length-1].elements=l[l.length-1].elements.concat(c[j].elements.slice(k)),j++),l=l.concat(c.slice(j,c.length))},visitRulesetOut:function(){},visitMedia:function(a){var b=a.allExtends.concat(this.allExtendsStack[this.allExtendsStack.length-1]);b=b.concat(this.doExtendChaining(b,a.allExtends)),this.allExtendsStack.push(b)},visitMediaOut:function(){this.allExtendsStack.length=this.allExtendsStack.length-1},visitDirective:function(a){var b=a.allExtends.concat(this.allExtendsStack[this.allExtendsStack.length-1]);b=b.concat(this.doExtendChaining(b,a.allExtends)),this.allExtendsStack.push(b)},visitDirectiveOut:function(){this.allExtendsStack.length=this.allExtendsStack.length-1}}}(c("./tree")),function(a){a.sourceMapOutput=function(a){this._css=[],this._rootNode=a.rootNode,this._writeSourceMap=a.writeSourceMap,this._contentsMap=a.contentsMap,this._contentsIgnoredCharsMap=a.contentsIgnoredCharsMap,this._sourceMapFilename=a.sourceMapFilename,this._outputFilename=a.outputFilename,this._sourceMapURL=a.sourceMapURL,a.sourceMapBasepath&&(this._sourceMapBasepath=a.sourceMapBasepath.replace(/\\/g,"/")),this._sourceMapRootpath=a.sourceMapRootpath,this._outputSourceFiles=a.outputSourceFiles,this._sourceMapGeneratorConstructor=a.sourceMapGenerator||c("source-map").SourceMapGenerator,this._sourceMapRootpath&&"/"!==this._sourceMapRootpath.charAt(this._sourceMapRootpath.length-1)&&(this._sourceMapRootpath+="/"),this._lineNumber=0,this._column=0},a.sourceMapOutput.prototype.normalizeFilename=function(a){return a=a.replace(/\\/g,"/"),this._sourceMapBasepath&&0===a.indexOf(this._sourceMapBasepath)&&(a=a.substring(this._sourceMapBasepath.length),("\\"===a.charAt(0)||"/"===a.charAt(0))&&(a=a.substring(1))),(this._sourceMapRootpath||"")+a},a.sourceMapOutput.prototype.add=function(a,b,c,d){if(a){var e,f,g,h,i;if(b){var j=this._contentsMap[b.filename];this._contentsIgnoredCharsMap[b.filename]&&(c-=this._contentsIgnoredCharsMap[b.filename],0>c&&(c=0),j=j.slice(this._contentsIgnoredCharsMap[b.filename])),j=j.substring(0,c),f=j.split("\n"),h=f[f.length-1]}if(e=a.split("\n"),g=e[e.length-1],b)if(d)for(i=0;i<e.length;i++)this._sourceMapGenerator.addMapping({generated:{line:this._lineNumber+i+1,column:0===i?this._column:0},original:{line:f.length+i,column:0===i?h.length:0},source:this.normalizeFilename(b.filename)});else this._sourceMapGenerator.addMapping({generated:{line:this._lineNumber+1,column:this._column},original:{line:f.length,column:h.length},source:this.normalizeFilename(b.filename)});1===e.length?this._column+=g.length:(this._lineNumber+=e.length-1,this._column=g.length),this._css.push(a)}},a.sourceMapOutput.prototype.isEmpty=function(){return 0===this._css.length},a.sourceMapOutput.prototype.toCSS=function(a){if(this._sourceMapGenerator=new this._sourceMapGeneratorConstructor({file:this._outputFilename,sourceRoot:null}),this._outputSourceFiles)for(var b in this._contentsMap)if(this._contentsMap.hasOwnProperty(b)){var d=this._contentsMap[b];this._contentsIgnoredCharsMap[b]&&(d=d.slice(this._contentsIgnoredCharsMap[b])),this._sourceMapGenerator.setSourceContent(this.normalizeFilename(b),d)}if(this._rootNode.genCSS(a,this),this._css.length>0){var e,f=JSON.stringify(this._sourceMapGenerator.toJSON());this._sourceMapURL?e=this._sourceMapURL:this._sourceMapFilename&&(e=this.normalizeFilename(this._sourceMapFilename)),this._writeSourceMap?this._writeSourceMap(f):e="data:application/json;base64,"+c("./encoder.js").encodeBase64(f),e&&this._css.push("/*# sourceMappingURL="+e+" */")}return this._css.join("")}}(c("./tree"));var y=/^(file|chrome(-extension)?|resource|qrc|app):/.test(location.protocol);w.env=w.env||("127.0.0.1"==location.hostname||"0.0.0.0"==location.hostname||"localhost"==location.hostname||location.port&&location.port.length>0||y?"development":"production");var z={debug:3,info:2,errors:1,none:0};if(w.logLevel="undefined"!=typeof w.logLevel?w.logLevel:"development"===w.env?z.debug:z.errors,w.async=w.async||!1,w.fileAsync=w.fileAsync||!1,w.poll=w.poll||(y?1e3:1500),w.functions)for(var A in w.functions)w.functions.hasOwnProperty(A)&&(w.tree.functions[A]=w.functions[A]);var B=/!dumpLineNumbers:(comments|mediaquery|all)/.exec(location.hash);B&&(w.dumpLineNumbers=B[1]);var C=/^text\/(x-)?less$/,D=null,E={};if(w.watch=function(){return w.watchMode||(w.env="development",v()),this.watchMode=!0,!0},w.unwatch=function(){return clearInterval(w.watchTimer),this.watchMode=!1,!1},/!watch/.test(location.hash)&&w.watch(),"development"!=w.env)try{D="undefined"==typeof a.localStorage?null:a.localStorage}catch(F){}var G=document.getElementsByTagName("link");w.sheets=[];for(var H=0;H<G.length;H++)("stylesheet/less"===G[H].rel||G[H].rel.match(/stylesheet/)&&G[H].type.match(C))&&w.sheets.push(G[H]);w.modifyVars=function(a){w.refresh(!1,a)},w.refresh=function(a,b){var c,e;c=e=new Date,u(function(a,b,f,i,k){if(a)return j(a,i.href);if(k.local)d("loading "+i.href+" from cache.",z.info);else{d("parsed "+i.href+" successfully.",z.debug);var l=b.toCSS(w);l=h(l),g(l,i,k.lastModified)}d("css for "+i.href+" generated in "+(new Date-e)+"ms",z.info),0===k.remaining&&d("less has finished. css generated in "+(new Date-c)+"ms",z.info),e=new Date},a,b),n(b)},w.refreshStyles=n,w.Parser.fileLoader=s,w.refresh("development"===w.env),"function"==typeof define&&define.amd&&define(function(){return w})}(window);
|
@@ -0,0 +1,1272 @@
|
|
1
|
+
/**
|
2
|
+
* marked - a markdown parser
|
3
|
+
* Copyright (c) 2011-2014, Christopher Jeffrey. (MIT Licensed)
|
4
|
+
* https://github.com/chjj/marked
|
5
|
+
*/
|
6
|
+
|
7
|
+
;(function() {
|
8
|
+
|
9
|
+
/**
|
10
|
+
* Block-Level Grammar
|
11
|
+
*/
|
12
|
+
|
13
|
+
var block = {
|
14
|
+
newline: /^\n+/,
|
15
|
+
code: /^( {4}[^\n]+\n*)+/,
|
16
|
+
fences: noop,
|
17
|
+
hr: /^( *[-*_]){3,} *(?:\n+|$)/,
|
18
|
+
heading: /^ *(#{1,6}) *([^\n]+?) *#* *(?:\n+|$)/,
|
19
|
+
nptable: noop,
|
20
|
+
lheading: /^([^\n]+)\n *(=|-){2,} *(?:\n+|$)/,
|
21
|
+
blockquote: /^( *>[^\n]+(\n(?!def)[^\n]+)*\n*)+/,
|
22
|
+
list: /^( *)(bull) [\s\S]+?(?:hr|def|\n{2,}(?! )(?!\1bull )\n*|\s*$)/,
|
23
|
+
html: /^ *(?:comment *(?:\n|\s*$)|closed *(?:\n{2,}|\s*$)|closing *(?:\n{2,}|\s*$))/,
|
24
|
+
def: /^ *\[([^\]]+)\]: *<?([^\s>]+)>?(?: +["(]([^\n]+)[")])? *(?:\n+|$)/,
|
25
|
+
table: noop,
|
26
|
+
paragraph: /^((?:[^\n]+\n?(?!hr|heading|lheading|blockquote|tag|def))+)\n*/,
|
27
|
+
text: /^[^\n]+/
|
28
|
+
};
|
29
|
+
|
30
|
+
block.bullet = /(?:[*+-]|\d+\.)/;
|
31
|
+
block.item = /^( *)(bull) [^\n]*(?:\n(?!\1bull )[^\n]*)*/;
|
32
|
+
block.item = replace(block.item, 'gm')
|
33
|
+
(/bull/g, block.bullet)
|
34
|
+
();
|
35
|
+
|
36
|
+
block.list = replace(block.list)
|
37
|
+
(/bull/g, block.bullet)
|
38
|
+
('hr', '\\n+(?=\\1?(?:[-*_] *){3,}(?:\\n+|$))')
|
39
|
+
('def', '\\n+(?=' + block.def.source + ')')
|
40
|
+
();
|
41
|
+
|
42
|
+
block.blockquote = replace(block.blockquote)
|
43
|
+
('def', block.def)
|
44
|
+
();
|
45
|
+
|
46
|
+
block._tag = '(?!(?:'
|
47
|
+
+ 'a|em|strong|small|s|cite|q|dfn|abbr|data|time|code'
|
48
|
+
+ '|var|samp|kbd|sub|sup|i|b|u|mark|ruby|rt|rp|bdi|bdo'
|
49
|
+
+ '|span|br|wbr|ins|del|img)\\b)\\w+(?!:/|[^\\w\\s@]*@)\\b';
|
50
|
+
|
51
|
+
block.html = replace(block.html)
|
52
|
+
('comment', /<!--[\s\S]*?-->/)
|
53
|
+
('closed', /<(tag)[\s\S]+?<\/\1>/)
|
54
|
+
('closing', /<tag(?:"[^"]*"|'[^']*'|[^'">])*?>/)
|
55
|
+
(/tag/g, block._tag)
|
56
|
+
();
|
57
|
+
|
58
|
+
block.paragraph = replace(block.paragraph)
|
59
|
+
('hr', block.hr)
|
60
|
+
('heading', block.heading)
|
61
|
+
('lheading', block.lheading)
|
62
|
+
('blockquote', block.blockquote)
|
63
|
+
('tag', '<' + block._tag)
|
64
|
+
('def', block.def)
|
65
|
+
();
|
66
|
+
|
67
|
+
/**
|
68
|
+
* Normal Block Grammar
|
69
|
+
*/
|
70
|
+
|
71
|
+
block.normal = merge({}, block);
|
72
|
+
|
73
|
+
/**
|
74
|
+
* GFM Block Grammar
|
75
|
+
*/
|
76
|
+
|
77
|
+
block.gfm = merge({}, block.normal, {
|
78
|
+
fences: /^ *(`{3,}|~{3,}) *(\S+)? *\n([\s\S]+?)\s*\1 *(?:\n+|$)/,
|
79
|
+
paragraph: /^/
|
80
|
+
});
|
81
|
+
|
82
|
+
block.gfm.paragraph = replace(block.paragraph)
|
83
|
+
('(?!', '(?!'
|
84
|
+
+ block.gfm.fences.source.replace('\\1', '\\2') + '|'
|
85
|
+
+ block.list.source.replace('\\1', '\\3') + '|')
|
86
|
+
();
|
87
|
+
|
88
|
+
/**
|
89
|
+
* GFM + Tables Block Grammar
|
90
|
+
*/
|
91
|
+
|
92
|
+
block.tables = merge({}, block.gfm, {
|
93
|
+
nptable: /^ *(\S.*\|.*)\n *([-:]+ *\|[-| :]*)\n((?:.*\|.*(?:\n|$))*)\n*/,
|
94
|
+
table: /^ *\|(.+)\n *\|( *[-:]+[-| :]*)\n((?: *\|.*(?:\n|$))*)\n*/
|
95
|
+
});
|
96
|
+
|
97
|
+
/**
|
98
|
+
* Block Lexer
|
99
|
+
*/
|
100
|
+
|
101
|
+
function Lexer(options) {
|
102
|
+
this.tokens = [];
|
103
|
+
this.tokens.links = {};
|
104
|
+
this.options = options || marked.defaults;
|
105
|
+
this.rules = block.normal;
|
106
|
+
|
107
|
+
if (this.options.gfm) {
|
108
|
+
if (this.options.tables) {
|
109
|
+
this.rules = block.tables;
|
110
|
+
} else {
|
111
|
+
this.rules = block.gfm;
|
112
|
+
}
|
113
|
+
}
|
114
|
+
}
|
115
|
+
|
116
|
+
/**
|
117
|
+
* Expose Block Rules
|
118
|
+
*/
|
119
|
+
|
120
|
+
Lexer.rules = block;
|
121
|
+
|
122
|
+
/**
|
123
|
+
* Static Lex Method
|
124
|
+
*/
|
125
|
+
|
126
|
+
Lexer.lex = function(src, options) {
|
127
|
+
var lexer = new Lexer(options);
|
128
|
+
return lexer.lex(src);
|
129
|
+
};
|
130
|
+
|
131
|
+
/**
|
132
|
+
* Preprocessing
|
133
|
+
*/
|
134
|
+
|
135
|
+
Lexer.prototype.lex = function(src) {
|
136
|
+
src = src
|
137
|
+
.replace(/\r\n|\r/g, '\n')
|
138
|
+
.replace(/\t/g, ' ')
|
139
|
+
.replace(/\u00a0/g, ' ')
|
140
|
+
.replace(/\u2424/g, '\n');
|
141
|
+
|
142
|
+
return this.token(src, true);
|
143
|
+
};
|
144
|
+
|
145
|
+
/**
|
146
|
+
* Lexing
|
147
|
+
*/
|
148
|
+
|
149
|
+
Lexer.prototype.token = function(src, top, bq) {
|
150
|
+
var src = src.replace(/^ +$/gm, '')
|
151
|
+
, next
|
152
|
+
, loose
|
153
|
+
, cap
|
154
|
+
, bull
|
155
|
+
, b
|
156
|
+
, item
|
157
|
+
, space
|
158
|
+
, i
|
159
|
+
, l;
|
160
|
+
|
161
|
+
while (src) {
|
162
|
+
// newline
|
163
|
+
if (cap = this.rules.newline.exec(src)) {
|
164
|
+
src = src.substring(cap[0].length);
|
165
|
+
if (cap[0].length > 1) {
|
166
|
+
this.tokens.push({
|
167
|
+
type: 'space'
|
168
|
+
});
|
169
|
+
}
|
170
|
+
}
|
171
|
+
|
172
|
+
// code
|
173
|
+
if (cap = this.rules.code.exec(src)) {
|
174
|
+
src = src.substring(cap[0].length);
|
175
|
+
cap = cap[0].replace(/^ {4}/gm, '');
|
176
|
+
this.tokens.push({
|
177
|
+
type: 'code',
|
178
|
+
text: !this.options.pedantic
|
179
|
+
? cap.replace(/\n+$/, '')
|
180
|
+
: cap
|
181
|
+
});
|
182
|
+
continue;
|
183
|
+
}
|
184
|
+
|
185
|
+
// fences (gfm)
|
186
|
+
if (cap = this.rules.fences.exec(src)) {
|
187
|
+
src = src.substring(cap[0].length);
|
188
|
+
this.tokens.push({
|
189
|
+
type: 'code',
|
190
|
+
lang: cap[2],
|
191
|
+
text: cap[3]
|
192
|
+
});
|
193
|
+
continue;
|
194
|
+
}
|
195
|
+
|
196
|
+
// heading
|
197
|
+
if (cap = this.rules.heading.exec(src)) {
|
198
|
+
src = src.substring(cap[0].length);
|
199
|
+
this.tokens.push({
|
200
|
+
type: 'heading',
|
201
|
+
depth: cap[1].length,
|
202
|
+
text: cap[2]
|
203
|
+
});
|
204
|
+
continue;
|
205
|
+
}
|
206
|
+
|
207
|
+
// table no leading pipe (gfm)
|
208
|
+
if (top && (cap = this.rules.nptable.exec(src))) {
|
209
|
+
src = src.substring(cap[0].length);
|
210
|
+
|
211
|
+
item = {
|
212
|
+
type: 'table',
|
213
|
+
header: cap[1].replace(/^ *| *\| *$/g, '').split(/ *\| */),
|
214
|
+
align: cap[2].replace(/^ *|\| *$/g, '').split(/ *\| */),
|
215
|
+
cells: cap[3].replace(/\n$/, '').split('\n')
|
216
|
+
};
|
217
|
+
|
218
|
+
for (i = 0; i < item.align.length; i++) {
|
219
|
+
if (/^ *-+: *$/.test(item.align[i])) {
|
220
|
+
item.align[i] = 'right';
|
221
|
+
} else if (/^ *:-+: *$/.test(item.align[i])) {
|
222
|
+
item.align[i] = 'center';
|
223
|
+
} else if (/^ *:-+ *$/.test(item.align[i])) {
|
224
|
+
item.align[i] = 'left';
|
225
|
+
} else {
|
226
|
+
item.align[i] = null;
|
227
|
+
}
|
228
|
+
}
|
229
|
+
|
230
|
+
for (i = 0; i < item.cells.length; i++) {
|
231
|
+
item.cells[i] = item.cells[i].split(/ *\| */);
|
232
|
+
}
|
233
|
+
|
234
|
+
this.tokens.push(item);
|
235
|
+
|
236
|
+
continue;
|
237
|
+
}
|
238
|
+
|
239
|
+
// lheading
|
240
|
+
if (cap = this.rules.lheading.exec(src)) {
|
241
|
+
src = src.substring(cap[0].length);
|
242
|
+
this.tokens.push({
|
243
|
+
type: 'heading',
|
244
|
+
depth: cap[2] === '=' ? 1 : 2,
|
245
|
+
text: cap[1]
|
246
|
+
});
|
247
|
+
continue;
|
248
|
+
}
|
249
|
+
|
250
|
+
// hr
|
251
|
+
if (cap = this.rules.hr.exec(src)) {
|
252
|
+
src = src.substring(cap[0].length);
|
253
|
+
this.tokens.push({
|
254
|
+
type: 'hr'
|
255
|
+
});
|
256
|
+
continue;
|
257
|
+
}
|
258
|
+
|
259
|
+
// blockquote
|
260
|
+
if (cap = this.rules.blockquote.exec(src)) {
|
261
|
+
src = src.substring(cap[0].length);
|
262
|
+
|
263
|
+
this.tokens.push({
|
264
|
+
type: 'blockquote_start'
|
265
|
+
});
|
266
|
+
|
267
|
+
cap = cap[0].replace(/^ *> ?/gm, '');
|
268
|
+
|
269
|
+
// Pass `top` to keep the current
|
270
|
+
// "toplevel" state. This is exactly
|
271
|
+
// how markdown.pl works.
|
272
|
+
this.token(cap, top, true);
|
273
|
+
|
274
|
+
this.tokens.push({
|
275
|
+
type: 'blockquote_end'
|
276
|
+
});
|
277
|
+
|
278
|
+
continue;
|
279
|
+
}
|
280
|
+
|
281
|
+
// list
|
282
|
+
if (cap = this.rules.list.exec(src)) {
|
283
|
+
src = src.substring(cap[0].length);
|
284
|
+
bull = cap[2];
|
285
|
+
|
286
|
+
this.tokens.push({
|
287
|
+
type: 'list_start',
|
288
|
+
ordered: bull.length > 1
|
289
|
+
});
|
290
|
+
|
291
|
+
// Get each top-level item.
|
292
|
+
cap = cap[0].match(this.rules.item);
|
293
|
+
|
294
|
+
next = false;
|
295
|
+
l = cap.length;
|
296
|
+
i = 0;
|
297
|
+
|
298
|
+
for (; i < l; i++) {
|
299
|
+
item = cap[i];
|
300
|
+
|
301
|
+
// Remove the list item's bullet
|
302
|
+
// so it is seen as the next token.
|
303
|
+
space = item.length;
|
304
|
+
item = item.replace(/^ *([*+-]|\d+\.) +/, '');
|
305
|
+
|
306
|
+
// Outdent whatever the
|
307
|
+
// list item contains. Hacky.
|
308
|
+
if (~item.indexOf('\n ')) {
|
309
|
+
space -= item.length;
|
310
|
+
item = !this.options.pedantic
|
311
|
+
? item.replace(new RegExp('^ {1,' + space + '}', 'gm'), '')
|
312
|
+
: item.replace(/^ {1,4}/gm, '');
|
313
|
+
}
|
314
|
+
|
315
|
+
// Determine whether the next list item belongs here.
|
316
|
+
// Backpedal if it does not belong in this list.
|
317
|
+
if (this.options.smartLists && i !== l - 1) {
|
318
|
+
b = block.bullet.exec(cap[i + 1])[0];
|
319
|
+
if (bull !== b && !(bull.length > 1 && b.length > 1)) {
|
320
|
+
src = cap.slice(i + 1).join('\n') + src;
|
321
|
+
i = l - 1;
|
322
|
+
}
|
323
|
+
}
|
324
|
+
|
325
|
+
// Determine whether item is loose or not.
|
326
|
+
// Use: /(^|\n)(?! )[^\n]+\n\n(?!\s*$)/
|
327
|
+
// for discount behavior.
|
328
|
+
loose = next || /\n\n(?!\s*$)/.test(item);
|
329
|
+
if (i !== l - 1) {
|
330
|
+
next = item.charAt(item.length - 1) === '\n';
|
331
|
+
if (!loose) loose = next;
|
332
|
+
}
|
333
|
+
|
334
|
+
this.tokens.push({
|
335
|
+
type: loose
|
336
|
+
? 'loose_item_start'
|
337
|
+
: 'list_item_start'
|
338
|
+
});
|
339
|
+
|
340
|
+
// Recurse.
|
341
|
+
this.token(item, false, bq);
|
342
|
+
|
343
|
+
this.tokens.push({
|
344
|
+
type: 'list_item_end'
|
345
|
+
});
|
346
|
+
}
|
347
|
+
|
348
|
+
this.tokens.push({
|
349
|
+
type: 'list_end'
|
350
|
+
});
|
351
|
+
|
352
|
+
continue;
|
353
|
+
}
|
354
|
+
|
355
|
+
// html
|
356
|
+
if (cap = this.rules.html.exec(src)) {
|
357
|
+
src = src.substring(cap[0].length);
|
358
|
+
this.tokens.push({
|
359
|
+
type: this.options.sanitize
|
360
|
+
? 'paragraph'
|
361
|
+
: 'html',
|
362
|
+
pre: cap[1] === 'pre' || cap[1] === 'script' || cap[1] === 'style',
|
363
|
+
text: cap[0]
|
364
|
+
});
|
365
|
+
continue;
|
366
|
+
}
|
367
|
+
|
368
|
+
// def
|
369
|
+
if ((!bq && top) && (cap = this.rules.def.exec(src))) {
|
370
|
+
src = src.substring(cap[0].length);
|
371
|
+
this.tokens.links[cap[1].toLowerCase()] = {
|
372
|
+
href: cap[2],
|
373
|
+
title: cap[3]
|
374
|
+
};
|
375
|
+
continue;
|
376
|
+
}
|
377
|
+
|
378
|
+
// table (gfm)
|
379
|
+
if (top && (cap = this.rules.table.exec(src))) {
|
380
|
+
src = src.substring(cap[0].length);
|
381
|
+
|
382
|
+
item = {
|
383
|
+
type: 'table',
|
384
|
+
header: cap[1].replace(/^ *| *\| *$/g, '').split(/ *\| */),
|
385
|
+
align: cap[2].replace(/^ *|\| *$/g, '').split(/ *\| */),
|
386
|
+
cells: cap[3].replace(/(?: *\| *)?\n$/, '').split('\n')
|
387
|
+
};
|
388
|
+
|
389
|
+
for (i = 0; i < item.align.length; i++) {
|
390
|
+
if (/^ *-+: *$/.test(item.align[i])) {
|
391
|
+
item.align[i] = 'right';
|
392
|
+
} else if (/^ *:-+: *$/.test(item.align[i])) {
|
393
|
+
item.align[i] = 'center';
|
394
|
+
} else if (/^ *:-+ *$/.test(item.align[i])) {
|
395
|
+
item.align[i] = 'left';
|
396
|
+
} else {
|
397
|
+
item.align[i] = null;
|
398
|
+
}
|
399
|
+
}
|
400
|
+
|
401
|
+
for (i = 0; i < item.cells.length; i++) {
|
402
|
+
item.cells[i] = item.cells[i]
|
403
|
+
.replace(/^ *\| *| *\| *$/g, '')
|
404
|
+
.split(/ *\| */);
|
405
|
+
}
|
406
|
+
|
407
|
+
this.tokens.push(item);
|
408
|
+
|
409
|
+
continue;
|
410
|
+
}
|
411
|
+
|
412
|
+
// top-level paragraph
|
413
|
+
if (top && (cap = this.rules.paragraph.exec(src))) {
|
414
|
+
src = src.substring(cap[0].length);
|
415
|
+
this.tokens.push({
|
416
|
+
type: 'paragraph',
|
417
|
+
text: cap[1].charAt(cap[1].length - 1) === '\n'
|
418
|
+
? cap[1].slice(0, -1)
|
419
|
+
: cap[1]
|
420
|
+
});
|
421
|
+
continue;
|
422
|
+
}
|
423
|
+
|
424
|
+
// text
|
425
|
+
if (cap = this.rules.text.exec(src)) {
|
426
|
+
// Top-level should never reach here.
|
427
|
+
src = src.substring(cap[0].length);
|
428
|
+
this.tokens.push({
|
429
|
+
type: 'text',
|
430
|
+
text: cap[0]
|
431
|
+
});
|
432
|
+
continue;
|
433
|
+
}
|
434
|
+
|
435
|
+
if (src) {
|
436
|
+
throw new
|
437
|
+
Error('Infinite loop on byte: ' + src.charCodeAt(0));
|
438
|
+
}
|
439
|
+
}
|
440
|
+
|
441
|
+
return this.tokens;
|
442
|
+
};
|
443
|
+
|
444
|
+
/**
|
445
|
+
* Inline-Level Grammar
|
446
|
+
*/
|
447
|
+
|
448
|
+
var inline = {
|
449
|
+
escape: /^\\([\\`*{}\[\]()#+\-.!_>])/,
|
450
|
+
autolink: /^<([^ >]+(@|:\/)[^ >]+)>/,
|
451
|
+
url: noop,
|
452
|
+
tag: /^<!--[\s\S]*?-->|^<\/?\w+(?:"[^"]*"|'[^']*'|[^'">])*?>/,
|
453
|
+
link: /^!?\[(inside)\]\(href\)/,
|
454
|
+
reflink: /^!?\[(inside)\]\s*\[([^\]]*)\]/,
|
455
|
+
nolink: /^!?\[((?:\[[^\]]*\]|[^\[\]])*)\]/,
|
456
|
+
strong: /^__([\s\S]+?)__(?!_)|^\*\*([\s\S]+?)\*\*(?!\*)/,
|
457
|
+
em: /^\b_((?:__|[\s\S])+?)_\b|^\*((?:\*\*|[\s\S])+?)\*(?!\*)/,
|
458
|
+
code: /^(`+)\s*([\s\S]*?[^`])\s*\1(?!`)/,
|
459
|
+
br: /^ {2,}\n(?!\s*$)/,
|
460
|
+
del: noop,
|
461
|
+
text: /^[\s\S]+?(?=[\\<!\[_*`]| {2,}\n|$)/
|
462
|
+
};
|
463
|
+
|
464
|
+
inline._inside = /(?:\[[^\]]*\]|[^\[\]]|\](?=[^\[]*\]))*/;
|
465
|
+
inline._href = /\s*<?([\s\S]*?)>?(?:\s+['"]([\s\S]*?)['"])?\s*/;
|
466
|
+
|
467
|
+
inline.link = replace(inline.link)
|
468
|
+
('inside', inline._inside)
|
469
|
+
('href', inline._href)
|
470
|
+
();
|
471
|
+
|
472
|
+
inline.reflink = replace(inline.reflink)
|
473
|
+
('inside', inline._inside)
|
474
|
+
();
|
475
|
+
|
476
|
+
/**
|
477
|
+
* Normal Inline Grammar
|
478
|
+
*/
|
479
|
+
|
480
|
+
inline.normal = merge({}, inline);
|
481
|
+
|
482
|
+
/**
|
483
|
+
* Pedantic Inline Grammar
|
484
|
+
*/
|
485
|
+
|
486
|
+
inline.pedantic = merge({}, inline.normal, {
|
487
|
+
strong: /^__(?=\S)([\s\S]*?\S)__(?!_)|^\*\*(?=\S)([\s\S]*?\S)\*\*(?!\*)/,
|
488
|
+
em: /^_(?=\S)([\s\S]*?\S)_(?!_)|^\*(?=\S)([\s\S]*?\S)\*(?!\*)/
|
489
|
+
});
|
490
|
+
|
491
|
+
/**
|
492
|
+
* GFM Inline Grammar
|
493
|
+
*/
|
494
|
+
|
495
|
+
inline.gfm = merge({}, inline.normal, {
|
496
|
+
escape: replace(inline.escape)('])', '~|])')(),
|
497
|
+
url: /^(https?:\/\/[^\s<]+[^<.,:;"')\]\s])/,
|
498
|
+
del: /^~~(?=\S)([\s\S]*?\S)~~/,
|
499
|
+
text: replace(inline.text)
|
500
|
+
(']|', '~]|')
|
501
|
+
('|', '|https?://|')
|
502
|
+
()
|
503
|
+
});
|
504
|
+
|
505
|
+
/**
|
506
|
+
* GFM + Line Breaks Inline Grammar
|
507
|
+
*/
|
508
|
+
|
509
|
+
inline.breaks = merge({}, inline.gfm, {
|
510
|
+
br: replace(inline.br)('{2,}', '*')(),
|
511
|
+
text: replace(inline.gfm.text)('{2,}', '*')()
|
512
|
+
});
|
513
|
+
|
514
|
+
/**
|
515
|
+
* Inline Lexer & Compiler
|
516
|
+
*/
|
517
|
+
|
518
|
+
function InlineLexer(links, options) {
|
519
|
+
this.options = options || marked.defaults;
|
520
|
+
this.links = links;
|
521
|
+
this.rules = inline.normal;
|
522
|
+
this.renderer = this.options.renderer || new Renderer;
|
523
|
+
this.renderer.options = this.options;
|
524
|
+
|
525
|
+
if (!this.links) {
|
526
|
+
throw new
|
527
|
+
Error('Tokens array requires a `links` property.');
|
528
|
+
}
|
529
|
+
|
530
|
+
if (this.options.gfm) {
|
531
|
+
if (this.options.breaks) {
|
532
|
+
this.rules = inline.breaks;
|
533
|
+
} else {
|
534
|
+
this.rules = inline.gfm;
|
535
|
+
}
|
536
|
+
} else if (this.options.pedantic) {
|
537
|
+
this.rules = inline.pedantic;
|
538
|
+
}
|
539
|
+
}
|
540
|
+
|
541
|
+
/**
|
542
|
+
* Expose Inline Rules
|
543
|
+
*/
|
544
|
+
|
545
|
+
InlineLexer.rules = inline;
|
546
|
+
|
547
|
+
/**
|
548
|
+
* Static Lexing/Compiling Method
|
549
|
+
*/
|
550
|
+
|
551
|
+
InlineLexer.output = function(src, links, options) {
|
552
|
+
var inline = new InlineLexer(links, options);
|
553
|
+
return inline.output(src);
|
554
|
+
};
|
555
|
+
|
556
|
+
/**
|
557
|
+
* Lexing/Compiling
|
558
|
+
*/
|
559
|
+
|
560
|
+
InlineLexer.prototype.output = function(src) {
|
561
|
+
var out = ''
|
562
|
+
, link
|
563
|
+
, text
|
564
|
+
, href
|
565
|
+
, cap;
|
566
|
+
|
567
|
+
while (src) {
|
568
|
+
// escape
|
569
|
+
if (cap = this.rules.escape.exec(src)) {
|
570
|
+
src = src.substring(cap[0].length);
|
571
|
+
out += cap[1];
|
572
|
+
continue;
|
573
|
+
}
|
574
|
+
|
575
|
+
// autolink
|
576
|
+
if (cap = this.rules.autolink.exec(src)) {
|
577
|
+
src = src.substring(cap[0].length);
|
578
|
+
if (cap[2] === '@') {
|
579
|
+
text = cap[1].charAt(6) === ':'
|
580
|
+
? this.mangle(cap[1].substring(7))
|
581
|
+
: this.mangle(cap[1]);
|
582
|
+
href = this.mangle('mailto:') + text;
|
583
|
+
} else {
|
584
|
+
text = escape(cap[1]);
|
585
|
+
href = text;
|
586
|
+
}
|
587
|
+
out += this.renderer.link(href, null, text);
|
588
|
+
continue;
|
589
|
+
}
|
590
|
+
|
591
|
+
// url (gfm)
|
592
|
+
if (!this.inLink && (cap = this.rules.url.exec(src))) {
|
593
|
+
src = src.substring(cap[0].length);
|
594
|
+
text = escape(cap[1]);
|
595
|
+
href = text;
|
596
|
+
out += this.renderer.link(href, null, text);
|
597
|
+
continue;
|
598
|
+
}
|
599
|
+
|
600
|
+
// tag
|
601
|
+
if (cap = this.rules.tag.exec(src)) {
|
602
|
+
if (!this.inLink && /^<a /i.test(cap[0])) {
|
603
|
+
this.inLink = true;
|
604
|
+
} else if (this.inLink && /^<\/a>/i.test(cap[0])) {
|
605
|
+
this.inLink = false;
|
606
|
+
}
|
607
|
+
src = src.substring(cap[0].length);
|
608
|
+
out += this.options.sanitize
|
609
|
+
? escape(cap[0])
|
610
|
+
: cap[0];
|
611
|
+
continue;
|
612
|
+
}
|
613
|
+
|
614
|
+
// link
|
615
|
+
if (cap = this.rules.link.exec(src)) {
|
616
|
+
src = src.substring(cap[0].length);
|
617
|
+
this.inLink = true;
|
618
|
+
out += this.outputLink(cap, {
|
619
|
+
href: cap[2],
|
620
|
+
title: cap[3]
|
621
|
+
});
|
622
|
+
this.inLink = false;
|
623
|
+
continue;
|
624
|
+
}
|
625
|
+
|
626
|
+
// reflink, nolink
|
627
|
+
if ((cap = this.rules.reflink.exec(src))
|
628
|
+
|| (cap = this.rules.nolink.exec(src))) {
|
629
|
+
src = src.substring(cap[0].length);
|
630
|
+
link = (cap[2] || cap[1]).replace(/\s+/g, ' ');
|
631
|
+
link = this.links[link.toLowerCase()];
|
632
|
+
if (!link || !link.href) {
|
633
|
+
out += cap[0].charAt(0);
|
634
|
+
src = cap[0].substring(1) + src;
|
635
|
+
continue;
|
636
|
+
}
|
637
|
+
this.inLink = true;
|
638
|
+
out += this.outputLink(cap, link);
|
639
|
+
this.inLink = false;
|
640
|
+
continue;
|
641
|
+
}
|
642
|
+
|
643
|
+
// strong
|
644
|
+
if (cap = this.rules.strong.exec(src)) {
|
645
|
+
src = src.substring(cap[0].length);
|
646
|
+
out += this.renderer.strong(this.output(cap[2] || cap[1]));
|
647
|
+
continue;
|
648
|
+
}
|
649
|
+
|
650
|
+
// em
|
651
|
+
if (cap = this.rules.em.exec(src)) {
|
652
|
+
src = src.substring(cap[0].length);
|
653
|
+
out += this.renderer.em(this.output(cap[2] || cap[1]));
|
654
|
+
continue;
|
655
|
+
}
|
656
|
+
|
657
|
+
// code
|
658
|
+
if (cap = this.rules.code.exec(src)) {
|
659
|
+
src = src.substring(cap[0].length);
|
660
|
+
out += this.renderer.codespan(escape(cap[2], true));
|
661
|
+
continue;
|
662
|
+
}
|
663
|
+
|
664
|
+
// br
|
665
|
+
if (cap = this.rules.br.exec(src)) {
|
666
|
+
src = src.substring(cap[0].length);
|
667
|
+
out += this.renderer.br();
|
668
|
+
continue;
|
669
|
+
}
|
670
|
+
|
671
|
+
// del (gfm)
|
672
|
+
if (cap = this.rules.del.exec(src)) {
|
673
|
+
src = src.substring(cap[0].length);
|
674
|
+
out += this.renderer.del(this.output(cap[1]));
|
675
|
+
continue;
|
676
|
+
}
|
677
|
+
|
678
|
+
// text
|
679
|
+
if (cap = this.rules.text.exec(src)) {
|
680
|
+
src = src.substring(cap[0].length);
|
681
|
+
out += escape(this.smartypants(cap[0]));
|
682
|
+
continue;
|
683
|
+
}
|
684
|
+
|
685
|
+
if (src) {
|
686
|
+
throw new
|
687
|
+
Error('Infinite loop on byte: ' + src.charCodeAt(0));
|
688
|
+
}
|
689
|
+
}
|
690
|
+
|
691
|
+
return out;
|
692
|
+
};
|
693
|
+
|
694
|
+
/**
|
695
|
+
* Compile Link
|
696
|
+
*/
|
697
|
+
|
698
|
+
InlineLexer.prototype.outputLink = function(cap, link) {
|
699
|
+
var href = escape(link.href)
|
700
|
+
, title = link.title ? escape(link.title) : null;
|
701
|
+
|
702
|
+
return cap[0].charAt(0) !== '!'
|
703
|
+
? this.renderer.link(href, title, this.output(cap[1]))
|
704
|
+
: this.renderer.image(href, title, escape(cap[1]));
|
705
|
+
};
|
706
|
+
|
707
|
+
/**
|
708
|
+
* Smartypants Transformations
|
709
|
+
*/
|
710
|
+
|
711
|
+
InlineLexer.prototype.smartypants = function(text) {
|
712
|
+
if (!this.options.smartypants) return text;
|
713
|
+
return text
|
714
|
+
// em-dashes
|
715
|
+
.replace(/--/g, '\u2014')
|
716
|
+
// opening singles
|
717
|
+
.replace(/(^|[-\u2014/(\[{"\s])'/g, '$1\u2018')
|
718
|
+
// closing singles & apostrophes
|
719
|
+
.replace(/'/g, '\u2019')
|
720
|
+
// opening doubles
|
721
|
+
.replace(/(^|[-\u2014/(\[{\u2018\s])"/g, '$1\u201c')
|
722
|
+
// closing doubles
|
723
|
+
.replace(/"/g, '\u201d')
|
724
|
+
// ellipses
|
725
|
+
.replace(/\.{3}/g, '\u2026');
|
726
|
+
};
|
727
|
+
|
728
|
+
/**
|
729
|
+
* Mangle Links
|
730
|
+
*/
|
731
|
+
|
732
|
+
InlineLexer.prototype.mangle = function(text) {
|
733
|
+
var out = ''
|
734
|
+
, l = text.length
|
735
|
+
, i = 0
|
736
|
+
, ch;
|
737
|
+
|
738
|
+
for (; i < l; i++) {
|
739
|
+
ch = text.charCodeAt(i);
|
740
|
+
if (Math.random() > 0.5) {
|
741
|
+
ch = 'x' + ch.toString(16);
|
742
|
+
}
|
743
|
+
out += '&#' + ch + ';';
|
744
|
+
}
|
745
|
+
|
746
|
+
return out;
|
747
|
+
};
|
748
|
+
|
749
|
+
/**
|
750
|
+
* Renderer
|
751
|
+
*/
|
752
|
+
|
753
|
+
function Renderer(options) {
|
754
|
+
this.options = options || {};
|
755
|
+
}
|
756
|
+
|
757
|
+
Renderer.prototype.code = function(code, lang, escaped) {
|
758
|
+
if (this.options.highlight) {
|
759
|
+
var out = this.options.highlight(code, lang);
|
760
|
+
if (out != null && out !== code) {
|
761
|
+
escaped = true;
|
762
|
+
code = out;
|
763
|
+
}
|
764
|
+
}
|
765
|
+
|
766
|
+
if (!lang) {
|
767
|
+
return '<pre><code>'
|
768
|
+
+ (escaped ? code : escape(code, true))
|
769
|
+
+ '\n</code></pre>';
|
770
|
+
}
|
771
|
+
|
772
|
+
return '<pre><code class="'
|
773
|
+
+ this.options.langPrefix
|
774
|
+
+ escape(lang, true)
|
775
|
+
+ '">'
|
776
|
+
+ (escaped ? code : escape(code, true))
|
777
|
+
+ '\n</code></pre>\n';
|
778
|
+
};
|
779
|
+
|
780
|
+
Renderer.prototype.blockquote = function(quote) {
|
781
|
+
return '<blockquote>\n' + quote + '</blockquote>\n';
|
782
|
+
};
|
783
|
+
|
784
|
+
Renderer.prototype.html = function(html) {
|
785
|
+
return html;
|
786
|
+
};
|
787
|
+
|
788
|
+
Renderer.prototype.heading = function(text, level, raw) {
|
789
|
+
return '<h'
|
790
|
+
+ level
|
791
|
+
+ ' id="'
|
792
|
+
+ this.options.headerPrefix
|
793
|
+
+ raw.toLowerCase().replace(/[^\w]+/g, '-')
|
794
|
+
+ '">'
|
795
|
+
+ text
|
796
|
+
+ '</h'
|
797
|
+
+ level
|
798
|
+
+ '>\n';
|
799
|
+
};
|
800
|
+
|
801
|
+
Renderer.prototype.hr = function() {
|
802
|
+
return this.options.xhtml ? '<hr/>\n' : '<hr>\n';
|
803
|
+
};
|
804
|
+
|
805
|
+
Renderer.prototype.list = function(body, ordered) {
|
806
|
+
var type = ordered ? 'ol' : 'ul';
|
807
|
+
return '<' + type + '>\n' + body + '</' + type + '>\n';
|
808
|
+
};
|
809
|
+
|
810
|
+
Renderer.prototype.listitem = function(text) {
|
811
|
+
return '<li>' + text + '</li>\n';
|
812
|
+
};
|
813
|
+
|
814
|
+
Renderer.prototype.paragraph = function(text) {
|
815
|
+
return '<p>' + text + '</p>\n';
|
816
|
+
};
|
817
|
+
|
818
|
+
Renderer.prototype.table = function(header, body) {
|
819
|
+
return '<table>\n'
|
820
|
+
+ '<thead>\n'
|
821
|
+
+ header
|
822
|
+
+ '</thead>\n'
|
823
|
+
+ '<tbody>\n'
|
824
|
+
+ body
|
825
|
+
+ '</tbody>\n'
|
826
|
+
+ '</table>\n';
|
827
|
+
};
|
828
|
+
|
829
|
+
Renderer.prototype.tablerow = function(content) {
|
830
|
+
return '<tr>\n' + content + '</tr>\n';
|
831
|
+
};
|
832
|
+
|
833
|
+
Renderer.prototype.tablecell = function(content, flags) {
|
834
|
+
var type = flags.header ? 'th' : 'td';
|
835
|
+
var tag = flags.align
|
836
|
+
? '<' + type + ' style="text-align:' + flags.align + '">'
|
837
|
+
: '<' + type + '>';
|
838
|
+
return tag + content + '</' + type + '>\n';
|
839
|
+
};
|
840
|
+
|
841
|
+
// span level renderer
|
842
|
+
Renderer.prototype.strong = function(text) {
|
843
|
+
return '<strong>' + text + '</strong>';
|
844
|
+
};
|
845
|
+
|
846
|
+
Renderer.prototype.em = function(text) {
|
847
|
+
return '<em>' + text + '</em>';
|
848
|
+
};
|
849
|
+
|
850
|
+
Renderer.prototype.codespan = function(text) {
|
851
|
+
return '<code>' + text + '</code>';
|
852
|
+
};
|
853
|
+
|
854
|
+
Renderer.prototype.br = function() {
|
855
|
+
return this.options.xhtml ? '<br/>' : '<br>';
|
856
|
+
};
|
857
|
+
|
858
|
+
Renderer.prototype.del = function(text) {
|
859
|
+
return '<del>' + text + '</del>';
|
860
|
+
};
|
861
|
+
|
862
|
+
Renderer.prototype.link = function(href, title, text) {
|
863
|
+
if (this.options.sanitize) {
|
864
|
+
try {
|
865
|
+
var prot = decodeURIComponent(unescape(href))
|
866
|
+
.replace(/[^\w:]/g, '')
|
867
|
+
.toLowerCase();
|
868
|
+
} catch (e) {
|
869
|
+
return '';
|
870
|
+
}
|
871
|
+
if (prot.indexOf('javascript:') === 0) {
|
872
|
+
return '';
|
873
|
+
}
|
874
|
+
}
|
875
|
+
var out = '<a href="' + href + '"';
|
876
|
+
if (title) {
|
877
|
+
out += ' title="' + title + '"';
|
878
|
+
}
|
879
|
+
out += '>' + text + '</a>';
|
880
|
+
return out;
|
881
|
+
};
|
882
|
+
|
883
|
+
Renderer.prototype.image = function(href, title, text) {
|
884
|
+
var out = '<img src="' + href + '" alt="' + text + '"';
|
885
|
+
if (title) {
|
886
|
+
out += ' title="' + title + '"';
|
887
|
+
}
|
888
|
+
out += this.options.xhtml ? '/>' : '>';
|
889
|
+
return out;
|
890
|
+
};
|
891
|
+
|
892
|
+
/**
|
893
|
+
* Parsing & Compiling
|
894
|
+
*/
|
895
|
+
|
896
|
+
function Parser(options) {
|
897
|
+
this.tokens = [];
|
898
|
+
this.token = null;
|
899
|
+
this.options = options || marked.defaults;
|
900
|
+
this.options.renderer = this.options.renderer || new Renderer;
|
901
|
+
this.renderer = this.options.renderer;
|
902
|
+
this.renderer.options = this.options;
|
903
|
+
}
|
904
|
+
|
905
|
+
/**
|
906
|
+
* Static Parse Method
|
907
|
+
*/
|
908
|
+
|
909
|
+
Parser.parse = function(src, options, renderer) {
|
910
|
+
var parser = new Parser(options, renderer);
|
911
|
+
return parser.parse(src);
|
912
|
+
};
|
913
|
+
|
914
|
+
/**
|
915
|
+
* Parse Loop
|
916
|
+
*/
|
917
|
+
|
918
|
+
Parser.prototype.parse = function(src) {
|
919
|
+
this.inline = new InlineLexer(src.links, this.options, this.renderer);
|
920
|
+
this.tokens = src.reverse();
|
921
|
+
|
922
|
+
var out = '';
|
923
|
+
while (this.next()) {
|
924
|
+
out += this.tok();
|
925
|
+
}
|
926
|
+
|
927
|
+
return out;
|
928
|
+
};
|
929
|
+
|
930
|
+
/**
|
931
|
+
* Next Token
|
932
|
+
*/
|
933
|
+
|
934
|
+
Parser.prototype.next = function() {
|
935
|
+
return this.token = this.tokens.pop();
|
936
|
+
};
|
937
|
+
|
938
|
+
/**
|
939
|
+
* Preview Next Token
|
940
|
+
*/
|
941
|
+
|
942
|
+
Parser.prototype.peek = function() {
|
943
|
+
return this.tokens[this.tokens.length - 1] || 0;
|
944
|
+
};
|
945
|
+
|
946
|
+
/**
|
947
|
+
* Parse Text Tokens
|
948
|
+
*/
|
949
|
+
|
950
|
+
Parser.prototype.parseText = function() {
|
951
|
+
var body = this.token.text;
|
952
|
+
|
953
|
+
while (this.peek().type === 'text') {
|
954
|
+
body += '\n' + this.next().text;
|
955
|
+
}
|
956
|
+
|
957
|
+
return this.inline.output(body);
|
958
|
+
};
|
959
|
+
|
960
|
+
/**
|
961
|
+
* Parse Current Token
|
962
|
+
*/
|
963
|
+
|
964
|
+
Parser.prototype.tok = function() {
|
965
|
+
switch (this.token.type) {
|
966
|
+
case 'space': {
|
967
|
+
return '';
|
968
|
+
}
|
969
|
+
case 'hr': {
|
970
|
+
return this.renderer.hr();
|
971
|
+
}
|
972
|
+
case 'heading': {
|
973
|
+
return this.renderer.heading(
|
974
|
+
this.inline.output(this.token.text),
|
975
|
+
this.token.depth,
|
976
|
+
this.token.text);
|
977
|
+
}
|
978
|
+
case 'code': {
|
979
|
+
return this.renderer.code(this.token.text,
|
980
|
+
this.token.lang,
|
981
|
+
this.token.escaped);
|
982
|
+
}
|
983
|
+
case 'table': {
|
984
|
+
var header = ''
|
985
|
+
, body = ''
|
986
|
+
, i
|
987
|
+
, row
|
988
|
+
, cell
|
989
|
+
, flags
|
990
|
+
, j;
|
991
|
+
|
992
|
+
// header
|
993
|
+
cell = '';
|
994
|
+
for (i = 0; i < this.token.header.length; i++) {
|
995
|
+
flags = { header: true, align: this.token.align[i] };
|
996
|
+
cell += this.renderer.tablecell(
|
997
|
+
this.inline.output(this.token.header[i]),
|
998
|
+
{ header: true, align: this.token.align[i] }
|
999
|
+
);
|
1000
|
+
}
|
1001
|
+
header += this.renderer.tablerow(cell);
|
1002
|
+
|
1003
|
+
for (i = 0; i < this.token.cells.length; i++) {
|
1004
|
+
row = this.token.cells[i];
|
1005
|
+
|
1006
|
+
cell = '';
|
1007
|
+
for (j = 0; j < row.length; j++) {
|
1008
|
+
cell += this.renderer.tablecell(
|
1009
|
+
this.inline.output(row[j]),
|
1010
|
+
{ header: false, align: this.token.align[j] }
|
1011
|
+
);
|
1012
|
+
}
|
1013
|
+
|
1014
|
+
body += this.renderer.tablerow(cell);
|
1015
|
+
}
|
1016
|
+
return this.renderer.table(header, body);
|
1017
|
+
}
|
1018
|
+
case 'blockquote_start': {
|
1019
|
+
var body = '';
|
1020
|
+
|
1021
|
+
while (this.next().type !== 'blockquote_end') {
|
1022
|
+
body += this.tok();
|
1023
|
+
}
|
1024
|
+
|
1025
|
+
return this.renderer.blockquote(body);
|
1026
|
+
}
|
1027
|
+
case 'list_start': {
|
1028
|
+
var body = ''
|
1029
|
+
, ordered = this.token.ordered;
|
1030
|
+
|
1031
|
+
while (this.next().type !== 'list_end') {
|
1032
|
+
body += this.tok();
|
1033
|
+
}
|
1034
|
+
|
1035
|
+
return this.renderer.list(body, ordered);
|
1036
|
+
}
|
1037
|
+
case 'list_item_start': {
|
1038
|
+
var body = '';
|
1039
|
+
|
1040
|
+
while (this.next().type !== 'list_item_end') {
|
1041
|
+
body += this.token.type === 'text'
|
1042
|
+
? this.parseText()
|
1043
|
+
: this.tok();
|
1044
|
+
}
|
1045
|
+
|
1046
|
+
return this.renderer.listitem(body);
|
1047
|
+
}
|
1048
|
+
case 'loose_item_start': {
|
1049
|
+
var body = '';
|
1050
|
+
|
1051
|
+
while (this.next().type !== 'list_item_end') {
|
1052
|
+
body += this.tok();
|
1053
|
+
}
|
1054
|
+
|
1055
|
+
return this.renderer.listitem(body);
|
1056
|
+
}
|
1057
|
+
case 'html': {
|
1058
|
+
var html = !this.token.pre && !this.options.pedantic
|
1059
|
+
? this.inline.output(this.token.text)
|
1060
|
+
: this.token.text;
|
1061
|
+
return this.renderer.html(html);
|
1062
|
+
}
|
1063
|
+
case 'paragraph': {
|
1064
|
+
return this.renderer.paragraph(this.inline.output(this.token.text));
|
1065
|
+
}
|
1066
|
+
case 'text': {
|
1067
|
+
return this.renderer.paragraph(this.parseText());
|
1068
|
+
}
|
1069
|
+
}
|
1070
|
+
};
|
1071
|
+
|
1072
|
+
/**
|
1073
|
+
* Helpers
|
1074
|
+
*/
|
1075
|
+
|
1076
|
+
function escape(html, encode) {
|
1077
|
+
return html
|
1078
|
+
.replace(!encode ? /&(?!#?\w+;)/g : /&/g, '&')
|
1079
|
+
.replace(/</g, '<')
|
1080
|
+
.replace(/>/g, '>')
|
1081
|
+
.replace(/"/g, '"')
|
1082
|
+
.replace(/'/g, ''');
|
1083
|
+
}
|
1084
|
+
|
1085
|
+
function unescape(html) {
|
1086
|
+
return html.replace(/&([#\w]+);/g, function(_, n) {
|
1087
|
+
n = n.toLowerCase();
|
1088
|
+
if (n === 'colon') return ':';
|
1089
|
+
if (n.charAt(0) === '#') {
|
1090
|
+
return n.charAt(1) === 'x'
|
1091
|
+
? String.fromCharCode(parseInt(n.substring(2), 16))
|
1092
|
+
: String.fromCharCode(+n.substring(1));
|
1093
|
+
}
|
1094
|
+
return '';
|
1095
|
+
});
|
1096
|
+
}
|
1097
|
+
|
1098
|
+
function replace(regex, opt) {
|
1099
|
+
regex = regex.source;
|
1100
|
+
opt = opt || '';
|
1101
|
+
return function self(name, val) {
|
1102
|
+
if (!name) return new RegExp(regex, opt);
|
1103
|
+
val = val.source || val;
|
1104
|
+
val = val.replace(/(^|[^\[])\^/g, '$1');
|
1105
|
+
regex = regex.replace(name, val);
|
1106
|
+
return self;
|
1107
|
+
};
|
1108
|
+
}
|
1109
|
+
|
1110
|
+
function noop() {}
|
1111
|
+
noop.exec = noop;
|
1112
|
+
|
1113
|
+
function merge(obj) {
|
1114
|
+
var i = 1
|
1115
|
+
, target
|
1116
|
+
, key;
|
1117
|
+
|
1118
|
+
for (; i < arguments.length; i++) {
|
1119
|
+
target = arguments[i];
|
1120
|
+
for (key in target) {
|
1121
|
+
if (Object.prototype.hasOwnProperty.call(target, key)) {
|
1122
|
+
obj[key] = target[key];
|
1123
|
+
}
|
1124
|
+
}
|
1125
|
+
}
|
1126
|
+
|
1127
|
+
return obj;
|
1128
|
+
}
|
1129
|
+
|
1130
|
+
|
1131
|
+
/**
|
1132
|
+
* Marked
|
1133
|
+
*/
|
1134
|
+
|
1135
|
+
function marked(src, opt, callback) {
|
1136
|
+
if (callback || typeof opt === 'function') {
|
1137
|
+
if (!callback) {
|
1138
|
+
callback = opt;
|
1139
|
+
opt = null;
|
1140
|
+
}
|
1141
|
+
|
1142
|
+
opt = merge({}, marked.defaults, opt || {});
|
1143
|
+
|
1144
|
+
var highlight = opt.highlight
|
1145
|
+
, tokens
|
1146
|
+
, pending
|
1147
|
+
, i = 0;
|
1148
|
+
|
1149
|
+
try {
|
1150
|
+
tokens = Lexer.lex(src, opt)
|
1151
|
+
} catch (e) {
|
1152
|
+
return callback(e);
|
1153
|
+
}
|
1154
|
+
|
1155
|
+
pending = tokens.length;
|
1156
|
+
|
1157
|
+
var done = function(err) {
|
1158
|
+
if (err) {
|
1159
|
+
opt.highlight = highlight;
|
1160
|
+
return callback(err);
|
1161
|
+
}
|
1162
|
+
|
1163
|
+
var out;
|
1164
|
+
|
1165
|
+
try {
|
1166
|
+
out = Parser.parse(tokens, opt);
|
1167
|
+
} catch (e) {
|
1168
|
+
err = e;
|
1169
|
+
}
|
1170
|
+
|
1171
|
+
opt.highlight = highlight;
|
1172
|
+
|
1173
|
+
return err
|
1174
|
+
? callback(err)
|
1175
|
+
: callback(null, out);
|
1176
|
+
};
|
1177
|
+
|
1178
|
+
if (!highlight || highlight.length < 3) {
|
1179
|
+
return done();
|
1180
|
+
}
|
1181
|
+
|
1182
|
+
delete opt.highlight;
|
1183
|
+
|
1184
|
+
if (!pending) return done();
|
1185
|
+
|
1186
|
+
for (; i < tokens.length; i++) {
|
1187
|
+
(function(token) {
|
1188
|
+
if (token.type !== 'code') {
|
1189
|
+
return --pending || done();
|
1190
|
+
}
|
1191
|
+
return highlight(token.text, token.lang, function(err, code) {
|
1192
|
+
if (err) return done(err);
|
1193
|
+
if (code == null || code === token.text) {
|
1194
|
+
return --pending || done();
|
1195
|
+
}
|
1196
|
+
token.text = code;
|
1197
|
+
token.escaped = true;
|
1198
|
+
--pending || done();
|
1199
|
+
});
|
1200
|
+
})(tokens[i]);
|
1201
|
+
}
|
1202
|
+
|
1203
|
+
return;
|
1204
|
+
}
|
1205
|
+
try {
|
1206
|
+
if (opt) opt = merge({}, marked.defaults, opt);
|
1207
|
+
return Parser.parse(Lexer.lex(src, opt), opt);
|
1208
|
+
} catch (e) {
|
1209
|
+
e.message += '\nPlease report this to https://github.com/chjj/marked.';
|
1210
|
+
if ((opt || marked.defaults).silent) {
|
1211
|
+
return '<p>An error occured:</p><pre>'
|
1212
|
+
+ escape(e.message + '', true)
|
1213
|
+
+ '</pre>';
|
1214
|
+
}
|
1215
|
+
throw e;
|
1216
|
+
}
|
1217
|
+
}
|
1218
|
+
|
1219
|
+
/**
|
1220
|
+
* Options
|
1221
|
+
*/
|
1222
|
+
|
1223
|
+
marked.options =
|
1224
|
+
marked.setOptions = function(opt) {
|
1225
|
+
merge(marked.defaults, opt);
|
1226
|
+
return marked;
|
1227
|
+
};
|
1228
|
+
|
1229
|
+
marked.defaults = {
|
1230
|
+
gfm: true,
|
1231
|
+
tables: true,
|
1232
|
+
breaks: false,
|
1233
|
+
pedantic: false,
|
1234
|
+
sanitize: false,
|
1235
|
+
smartLists: false,
|
1236
|
+
silent: false,
|
1237
|
+
highlight: null,
|
1238
|
+
langPrefix: 'lang-',
|
1239
|
+
smartypants: false,
|
1240
|
+
headerPrefix: '',
|
1241
|
+
renderer: new Renderer,
|
1242
|
+
xhtml: false
|
1243
|
+
};
|
1244
|
+
|
1245
|
+
/**
|
1246
|
+
* Expose
|
1247
|
+
*/
|
1248
|
+
|
1249
|
+
marked.Parser = Parser;
|
1250
|
+
marked.parser = Parser.parse;
|
1251
|
+
|
1252
|
+
marked.Renderer = Renderer;
|
1253
|
+
|
1254
|
+
marked.Lexer = Lexer;
|
1255
|
+
marked.lexer = Lexer.lex;
|
1256
|
+
|
1257
|
+
marked.InlineLexer = InlineLexer;
|
1258
|
+
marked.inlineLexer = InlineLexer.output;
|
1259
|
+
|
1260
|
+
marked.parse = marked;
|
1261
|
+
|
1262
|
+
if (typeof module !== 'undefined' && typeof exports === 'object') {
|
1263
|
+
module.exports = marked;
|
1264
|
+
} else if (typeof define === 'function' && define.amd) {
|
1265
|
+
define(function() { return marked; });
|
1266
|
+
} else {
|
1267
|
+
this.marked = marked;
|
1268
|
+
}
|
1269
|
+
|
1270
|
+
}).call(function() {
|
1271
|
+
return this || (typeof window !== 'undefined' ? window : global);
|
1272
|
+
}());
|