WordPress Social Tools, Related Posts, Monetization – Shareaholic - Version 8.13.0

Version Description

We update this plugin regularly so we can make it better for you. Update to the latest version for all of the available features and improvements. Thanks for using Shareaholic!

Download this release

Release Info

Developer shareaholic
Plugin Icon 128x128 WordPress Social Tools, Related Posts, Monetization – Shareaholic
Version 8.13.0
Comparing to
See all releases

Code changes from version 8.12.6 to 8.13.0

Files changed (51) hide show
  1. admin.php +14 -8
  2. assets/css/bootstrap.css +4 -3
  3. assets/css/main.css +55 -8
  4. lib/social-share-counts/LICENSE +1 -1
  5. lib/social-share-counts/curl_multi_share_count.php +21 -4
  6. lib/social-share-counts/seq_share_count.php +20 -3
  7. lib/social-share-counts/share_count.php +27 -11
  8. public.php +9 -2
  9. readme.txt +5 -2
  10. shareaholic.php +3 -3
  11. templates/advanced_settings.php +127 -80
  12. templates/settings.php +7 -7
  13. templates/why_to_sign_up.php +1 -1
  14. trunk/admin.php +749 -0
  15. trunk/assets/css/bootstrap.css +7 -0
  16. trunk/assets/css/index.html +0 -0
  17. trunk/assets/css/main.css +636 -0
  18. trunk/assets/css/modal-gloss.png +0 -0
  19. trunk/assets/css/reveal.css +109 -0
  20. trunk/assets/img/ajax_loader_green_128.gif +0 -0
  21. trunk/assets/img/analytics@2x.png +0 -0
  22. trunk/assets/img/bolt.png +0 -0
  23. trunk/assets/img/check.png +0 -0
  24. trunk/assets/img/glyphicons-halflings-white.png +0 -0
  25. trunk/assets/img/glyphicons-halflings.png +0 -0
  26. trunk/assets/img/happy-people-cover.png +0 -0
  27. trunk/assets/img/index.html +0 -0
  28. trunk/assets/img/related_content@2x.png +0 -0
  29. trunk/assets/img/shareaholic-icon-sprite@2x.png +0 -0
  30. trunk/assets/img/shareaholic-logo.png +0 -0
  31. trunk/assets/img/shareaholic_com_sprite.png +0 -0
  32. trunk/assets/img/sharebuttons@2x.png +0 -0
  33. trunk/assets/index.html +0 -0
  34. trunk/assets/js/bootstrap.js +2276 -0
  35. trunk/assets/js/bootstrap.min.js +6 -0
  36. trunk/assets/js/index.html +0 -0
  37. trunk/assets/js/jquery.reveal.modified.js +217 -0
  38. trunk/assets/js/jquery_custom.js +9227 -0
  39. trunk/assets/js/jquery_ui_custom.js +2353 -0
  40. trunk/assets/js/main.js +214 -0
  41. trunk/assets/js/main.min.js +7 -0
  42. trunk/content_manager.php +17 -0
  43. trunk/cron.php +74 -0
  44. trunk/curl.php +251 -0
  45. trunk/global_functions.php +34 -0
  46. trunk/languages/index.html +0 -0
  47. trunk/languages/readme.txt +29 -0
  48. trunk/languages/shareaholic-af_AF.mo +0 -0
  49. trunk/languages/shareaholic-af_AF.po +575 -0
  50. trunk/languages/shareaholic-de_DE.mo +0 -0
  51. trunk/languages/shareaholic-de_DE.po +239 -0
admin.php CHANGED
@@ -551,7 +551,7 @@ JQUERY;
551
  'image_url' => SHAREAHOLIC_ASSET_DIR . 'img'
552
  ));
553
  }
554
-
555
  if(isset($_POST['reset_settings'])
556
  && $_POST['reset_settings'] == 'Y'
557
  && check_admin_referer($action, 'nonce_field')) {
@@ -564,16 +564,14 @@ JQUERY;
564
  if(isset($_POST['already_submitted']) && $_POST['already_submitted'] == 'Y' &&
565
  check_admin_referer($action, 'nonce_field')) {
566
  echo "<div class='updated settings_updated'><p><strong>". sprintf(__('Settings successfully saved', 'shareaholic')) . "</strong></p></div>";
 
567
  foreach (array('disable_og_tags', 'disable_admin_bar_menu', 'disable_debug_info', 'enable_user_nicename','disable_internal_share_counts_api') as $setting) {
568
- if (isset($settings[$setting]) &&
569
- !isset($_POST['shareaholic'][$setting]) &&
570
- $settings[$setting] == 'on') {
571
  $_POST['shareaholic'][$setting] = 'off';
572
- } elseif (!isset($_POST['shareaholic'][$setting])) {
573
- $_POST['shareaholic'][$setting] = array();
574
  }
575
  }
576
-
577
  if (isset($_POST['shareaholic']['api_key']) && $_POST['shareaholic']['api_key'] != $api_key) {
578
  ShareaholicUtilities::get_new_location_name_ids($_POST['shareaholic']['api_key']);
579
  }
@@ -589,7 +587,15 @@ JQUERY;
589
  if (isset($_POST['shareaholic']['disable_admin_bar_menu'])) {
590
  ShareaholicUtilities::update_options(array('disable_admin_bar_menu' => $_POST['shareaholic']['disable_admin_bar_menu']));
591
  }
592
-
 
 
 
 
 
 
 
 
593
  if (isset($_POST['shareaholic']['disable_debug_info'])) {
594
  ShareaholicUtilities::update_options(array('disable_debug_info' => $_POST['shareaholic']['disable_debug_info']));
595
  }
551
  'image_url' => SHAREAHOLIC_ASSET_DIR . 'img'
552
  ));
553
  }
554
+
555
  if(isset($_POST['reset_settings'])
556
  && $_POST['reset_settings'] == 'Y'
557
  && check_admin_referer($action, 'nonce_field')) {
564
  if(isset($_POST['already_submitted']) && $_POST['already_submitted'] == 'Y' &&
565
  check_admin_referer($action, 'nonce_field')) {
566
  echo "<div class='updated settings_updated'><p><strong>". sprintf(__('Settings successfully saved', 'shareaholic')) . "</strong></p></div>";
567
+
568
  foreach (array('disable_og_tags', 'disable_admin_bar_menu', 'disable_debug_info', 'enable_user_nicename','disable_internal_share_counts_api') as $setting) {
569
+ if (!isset($_POST['shareaholic'][$setting])) {
570
+ // If form value is unchecked, set to off
 
571
  $_POST['shareaholic'][$setting] = 'off';
 
 
572
  }
573
  }
574
+
575
  if (isset($_POST['shareaholic']['api_key']) && $_POST['shareaholic']['api_key'] != $api_key) {
576
  ShareaholicUtilities::get_new_location_name_ids($_POST['shareaholic']['api_key']);
577
  }
587
  if (isset($_POST['shareaholic']['disable_admin_bar_menu'])) {
588
  ShareaholicUtilities::update_options(array('disable_admin_bar_menu' => $_POST['shareaholic']['disable_admin_bar_menu']));
589
  }
590
+
591
+ if (isset($_POST['shareaholic']['facebook_app_id'])) {
592
+ ShareaholicUtilities::update_options(array('facebook_app_id' => sanitize_text_field($_POST['shareaholic']['facebook_app_id'])));
593
+ }
594
+
595
+ if (isset($_POST['shareaholic']['facebook_app_secret'])) {
596
+ ShareaholicUtilities::update_options(array('facebook_app_secret' => sanitize_text_field($_POST['shareaholic']['facebook_app_secret'])));
597
+ }
598
+
599
  if (isset($_POST['shareaholic']['disable_debug_info'])) {
600
  ShareaholicUtilities::update_options(array('disable_debug_info' => $_POST['shareaholic']['disable_debug_info']));
601
  }
assets/css/bootstrap.css CHANGED
@@ -1,6 +1,7 @@
1
  /*!
2
- * Bootstrap v3.3.7 (http://getbootstrap.com)
3
- * Copyright 2011-2016 Twitter, Inc.
 
4
  * Licensed under MIT (https://github.com/twbs/bootstrap/blob/master/LICENSE)
5
- *//*! normalize.css v3.0.3 | MIT License | github.com/necolas/normalize.css */html{font-family:sans-serif;-webkit-text-size-adjust:100%;-ms-text-size-adjust:100%}body{margin:0}article,aside,details,figcaption,figure,footer,header,hgroup,main,menu,nav,section,summary{display:block}audio,canvas,progress,video{display:inline-block;vertical-align:baseline}audio:not([controls]){display:none;height:0}[hidden],template{display:none}a{background-color:transparent}a:active,a:hover{outline:0}abbr[title]{border-bottom:1px dotted}b,strong{font-weight:700}dfn{font-style:italic}h1{margin:.67em 0;font-size:2em}mark{color:#000;background:#ff0}small{font-size:80%}sub,sup{position:relative;font-size:75%;line-height:0;vertical-align:baseline}sup{top:-.5em}sub{bottom:-.25em}img{border:0}svg:not(:root){overflow:hidden}figure{margin:1em 40px}hr{height:0;-webkit-box-sizing:content-box;-moz-box-sizing:content-box;box-sizing:content-box}pre{overflow:auto}code,kbd,pre,samp{font-family:monospace,monospace;font-size:1em}button,input,optgroup,select,textarea{margin:0;font:inherit;color:inherit}button{overflow:visible}button,select{text-transform:none}button,html input[type=button],input[type=reset],input[type=submit]{-webkit-appearance:button;cursor:pointer}button[disabled],html input[disabled]{cursor:default}button::-moz-focus-inner,input::-moz-focus-inner{padding:0;border:0}input{line-height:normal}input[type=checkbox],input[type=radio]{-webkit-box-sizing:border-box;-moz-box-sizing:border-box;box-sizing:border-box;padding:0}input[type=number]::-webkit-inner-spin-button,input[type=number]::-webkit-outer-spin-button{height:auto}input[type=search]{-webkit-box-sizing:content-box;-moz-box-sizing:content-box;box-sizing:content-box;-webkit-appearance:textfield}input[type=search]::-webkit-search-cancel-button,input[type=search]::-webkit-search-decoration{-webkit-appearance:none}fieldset{padding:.35em .625em .75em;margin:0 2px;border:1px solid silver}legend{padding:0;border:0}textarea{overflow:auto}optgroup{font-weight:700}table{border-spacing:0;border-collapse:collapse}td,th{padding:0}/*! Source: https://github.com/h5bp/html5-boilerplate/blob/master/src/css/main.css */@media print{*,:after,:before{color:#000!important;text-shadow:none!important;background:0 0!important;-webkit-box-shadow:none!important;box-shadow:none!important}a,a:visited{text-decoration:underline}a[href]:after{content:" (" attr(href) ")"}abbr[title]:after{content:" (" attr(title) ")"}a[href^="javascript:"]:after,a[href^="#"]:after{content:""}blockquote,pre{border:1px solid #999;page-break-inside:avoid}thead{display:table-header-group}img,tr{page-break-inside:avoid}img{max-width:100%!important}h2,h3,p{orphans:3;widows:3}h2,h3{page-break-after:avoid}.navbar{display:none}.btn>.caret,.dropup>.btn>.caret{border-top-color:#000!important}.label{border:1px solid #000}.table{border-collapse:collapse!important}.table td,.table th{background-color:#fff!important}.table-bordered td,.table-bordered th{border:1px solid #ddd!important}}@font-face{font-family:'Glyphicons Halflings';src:url(../fonts/glyphicons-halflings-regular.eot);src:url(../fonts/glyphicons-halflings-regular.eot?#iefix) format('embedded-opentype'),url(../fonts/glyphicons-halflings-regular.woff2) format('woff2'),url(../fonts/glyphicons-halflings-regular.woff) format('woff'),url(../fonts/glyphicons-halflings-regular.ttf) format('truetype'),url(../fonts/glyphicons-halflings-regular.svg#glyphicons_halflingsregular) format('svg')}.glyphicon{position:relative;top:1px;display:inline-block;font-family:'Glyphicons Halflings';font-style:normal;font-weight:400;line-height:1;-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale}.glyphicon-asterisk:before{content:"\002a"}.glyphicon-plus:before{content:"\002b"}.glyphicon-eur:before,.glyphicon-euro:before{content:"\20ac"}.glyphicon-minus:before{content:"\2212"}.glyphicon-cloud:before{content:"\2601"}.glyphicon-envelope:before{content:"\2709"}.glyphicon-pencil:before{content:"\270f"}.glyphicon-glass:before{content:"\e001"}.glyphicon-music:before{content:"\e002"}.glyphicon-search:before{content:"\e003"}.glyphicon-heart:before{content:"\e005"}.glyphicon-star:before{content:"\e006"}.glyphicon-star-empty:before{content:"\e007"}.glyphicon-user:before{content:"\e008"}.glyphicon-film:before{content:"\e009"}.glyphicon-th-large:before{content:"\e010"}.glyphicon-th:before{content:"\e011"}.glyphicon-th-list:before{content:"\e012"}.glyphicon-ok:before{content:"\e013"}.glyphicon-remove:before{content:"\e014"}.glyphicon-zoom-in:before{content:"\e015"}.glyphicon-zoom-out:before{content:"\e016"}.glyphicon-off:before{content:"\e017"}.glyphicon-signal:before{content:"\e018"}.glyphicon-cog:before{content:"\e019"}.glyphicon-trash:before{content:"\e020"}.glyphicon-home:before{content:"\e021"}.glyphicon-file:before{content:"\e022"}.glyphicon-time:before{content:"\e023"}.glyphicon-road:before{content:"\e024"}.glyphicon-download-alt:before{content:"\e025"}.glyphicon-download:before{content:"\e026"}.glyphicon-upload:before{content:"\e027"}.glyphicon-inbox:before{content:"\e028"}.glyphicon-play-circle:before{content:"\e029"}.glyphicon-repeat:before{content:"\e030"}.glyphicon-refresh:before{content:"\e031"}.glyphicon-list-alt:before{content:"\e032"}.glyphicon-lock:before{content:"\e033"}.glyphicon-flag:before{content:"\e034"}.glyphicon-headphones:before{content:"\e035"}.glyphicon-volume-off:before{content:"\e036"}.glyphicon-volume-down:before{content:"\e037"}.glyphicon-volume-up:before{content:"\e038"}.glyphicon-qrcode:before{content:"\e039"}.glyphicon-barcode:before{content:"\e040"}.glyphicon-tag:before{content:"\e041"}.glyphicon-tags:before{content:"\e042"}.glyphicon-book:before{content:"\e043"}.glyphicon-bookmark:before{content:"\e044"}.glyphicon-print:before{content:"\e045"}.glyphicon-camera:before{content:"\e046"}.glyphicon-font:before{content:"\e047"}.glyphicon-bold:before{content:"\e048"}.glyphicon-italic:before{content:"\e049"}.glyphicon-text-height:before{content:"\e050"}.glyphicon-text-width:before{content:"\e051"}.glyphicon-align-left:before{content:"\e052"}.glyphicon-align-center:before{content:"\e053"}.glyphicon-align-right:before{content:"\e054"}.glyphicon-align-justify:before{content:"\e055"}.glyphicon-list:before{content:"\e056"}.glyphicon-indent-left:before{content:"\e057"}.glyphicon-indent-right:before{content:"\e058"}.glyphicon-facetime-video:before{content:"\e059"}.glyphicon-picture:before{content:"\e060"}.glyphicon-map-marker:before{content:"\e062"}.glyphicon-adjust:before{content:"\e063"}.glyphicon-tint:before{content:"\e064"}.glyphicon-edit:before{content:"\e065"}.glyphicon-share:before{content:"\e066"}.glyphicon-check:before{content:"\e067"}.glyphicon-move:before{content:"\e068"}.glyphicon-step-backward:before{content:"\e069"}.glyphicon-fast-backward:before{content:"\e070"}.glyphicon-backward:before{content:"\e071"}.glyphicon-play:before{content:"\e072"}.glyphicon-pause:before{content:"\e073"}.glyphicon-stop:before{content:"\e074"}.glyphicon-forward:before{content:"\e075"}.glyphicon-fast-forward:before{content:"\e076"}.glyphicon-step-forward:before{content:"\e077"}.glyphicon-eject:before{content:"\e078"}.glyphicon-chevron-left:before{content:"\e079"}.glyphicon-chevron-right:before{content:"\e080"}.glyphicon-plus-sign:before{content:"\e081"}.glyphicon-minus-sign:before{content:"\e082"}.glyphicon-remove-sign:before{content:"\e083"}.glyphicon-ok-sign:before{content:"\e084"}.glyphicon-question-sign:before{content:"\e085"}.glyphicon-info-sign:before{content:"\e086"}.glyphicon-screenshot:before{content:"\e087"}.glyphicon-remove-circle:before{content:"\e088"}.glyphicon-ok-circle:before{content:"\e089"}.glyphicon-ban-circle:before{content:"\e090"}.glyphicon-arrow-left:before{content:"\e091"}.glyphicon-arrow-right:before{content:"\e092"}.glyphicon-arrow-up:before{content:"\e093"}.glyphicon-arrow-down:before{content:"\e094"}.glyphicon-share-alt:before{content:"\e095"}.glyphicon-resize-full:before{content:"\e096"}.glyphicon-resize-small:before{content:"\e097"}.glyphicon-exclamation-sign:before{content:"\e101"}.glyphicon-gift:before{content:"\e102"}.glyphicon-leaf:before{content:"\e103"}.glyphicon-fire:before{content:"\e104"}.glyphicon-eye-open:before{content:"\e105"}.glyphicon-eye-close:before{content:"\e106"}.glyphicon-warning-sign:before{content:"\e107"}.glyphicon-plane:before{content:"\e108"}.glyphicon-calendar:before{content:"\e109"}.glyphicon-random:before{content:"\e110"}.glyphicon-comment:before{content:"\e111"}.glyphicon-magnet:before{content:"\e112"}.glyphicon-chevron-up:before{content:"\e113"}.glyphicon-chevron-down:before{content:"\e114"}.glyphicon-retweet:before{content:"\e115"}.glyphicon-shopping-cart:before{content:"\e116"}.glyphicon-folder-close:before{content:"\e117"}.glyphicon-folder-open:before{content:"\e118"}.glyphicon-resize-vertical:before{content:"\e119"}.glyphicon-resize-horizontal:before{content:"\e120"}.glyphicon-hdd:before{content:"\e121"}.glyphicon-bullhorn:before{content:"\e122"}.glyphicon-bell:before{content:"\e123"}.glyphicon-certificate:before{content:"\e124"}.glyphicon-thumbs-up:before{content:"\e125"}.glyphicon-thumbs-down:before{content:"\e126"}.glyphicon-hand-right:before{content:"\e127"}.glyphicon-hand-left:before{content:"\e128"}.glyphicon-hand-up:before{content:"\e129"}.glyphicon-hand-down:before{content:"\e130"}.glyphicon-circle-arrow-right:before{content:"\e131"}.glyphicon-circle-arrow-left:before{content:"\e132"}.glyphicon-circle-arrow-up:before{content:"\e133"}.glyphicon-circle-arrow-down:before{content:"\e134"}.glyphicon-globe:before{content:"\e135"}.glyphicon-wrench:before{content:"\e136"}.glyphicon-tasks:before{content:"\e137"}.glyphicon-filter:before{content:"\e138"}.glyphicon-briefcase:before{content:"\e139"}.glyphicon-fullscreen:before{content:"\e140"}.glyphicon-dashboard:before{content:"\e141"}.glyphicon-paperclip:before{content:"\e142"}.glyphicon-heart-empty:before{content:"\e143"}.glyphicon-link:before{content:"\e144"}.glyphicon-phone:before{content:"\e145"}.glyphicon-pushpin:before{content:"\e146"}.glyphicon-usd:before{content:"\e148"}.glyphicon-gbp:before{content:"\e149"}.glyphicon-sort:before{content:"\e150"}.glyphicon-sort-by-alphabet:before{content:"\e151"}.glyphicon-sort-by-alphabet-alt:before{content:"\e152"}.glyphicon-sort-by-order:before{content:"\e153"}.glyphicon-sort-by-order-alt:before{content:"\e154"}.glyphicon-sort-by-attributes:before{content:"\e155"}.glyphicon-sort-by-attributes-alt:before{content:"\e156"}.glyphicon-unchecked:before{content:"\e157"}.glyphicon-expand:before{content:"\e158"}.glyphicon-collapse-down:before{content:"\e159"}.glyphicon-collapse-up:before{content:"\e160"}.glyphicon-log-in:before{content:"\e161"}.glyphicon-flash:before{content:"\e162"}.glyphicon-log-out:before{content:"\e163"}.glyphicon-new-window:before{content:"\e164"}.glyphicon-record:before{content:"\e165"}.glyphicon-save:before{content:"\e166"}.glyphicon-open:before{content:"\e167"}.glyphicon-saved:before{content:"\e168"}.glyphicon-import:before{content:"\e169"}.glyphicon-export:before{content:"\e170"}.glyphicon-send:before{content:"\e171"}.glyphicon-floppy-disk:before{content:"\e172"}.glyphicon-floppy-saved:before{content:"\e173"}.glyphicon-floppy-remove:before{content:"\e174"}.glyphicon-floppy-save:before{content:"\e175"}.glyphicon-floppy-open:before{content:"\e176"}.glyphicon-credit-card:before{content:"\e177"}.glyphicon-transfer:before{content:"\e178"}.glyphicon-cutlery:before{content:"\e179"}.glyphicon-header:before{content:"\e180"}.glyphicon-compressed:before{content:"\e181"}.glyphicon-earphone:before{content:"\e182"}.glyphicon-phone-alt:before{content:"\e183"}.glyphicon-tower:before{content:"\e184"}.glyphicon-stats:before{content:"\e185"}.glyphicon-sd-video:before{content:"\e186"}.glyphicon-hd-video:before{content:"\e187"}.glyphicon-subtitles:before{content:"\e188"}.glyphicon-sound-stereo:before{content:"\e189"}.glyphicon-sound-dolby:before{content:"\e190"}.glyphicon-sound-5-1:before{content:"\e191"}.glyphicon-sound-6-1:before{content:"\e192"}.glyphicon-sound-7-1:before{content:"\e193"}.glyphicon-copyright-mark:before{content:"\e194"}.glyphicon-registration-mark:before{content:"\e195"}.glyphicon-cloud-download:before{content:"\e197"}.glyphicon-cloud-upload:before{content:"\e198"}.glyphicon-tree-conifer:before{content:"\e199"}.glyphicon-tree-deciduous:before{content:"\e200"}.glyphicon-cd:before{content:"\e201"}.glyphicon-save-file:before{content:"\e202"}.glyphicon-open-file:before{content:"\e203"}.glyphicon-level-up:before{content:"\e204"}.glyphicon-copy:before{content:"\e205"}.glyphicon-paste:before{content:"\e206"}.glyphicon-alert:before{content:"\e209"}.glyphicon-equalizer:before{content:"\e210"}.glyphicon-king:before{content:"\e211"}.glyphicon-queen:before{content:"\e212"}.glyphicon-pawn:before{content:"\e213"}.glyphicon-bishop:before{content:"\e214"}.glyphicon-knight:before{content:"\e215"}.glyphicon-baby-formula:before{content:"\e216"}.glyphicon-tent:before{content:"\26fa"}.glyphicon-blackboard:before{content:"\e218"}.glyphicon-bed:before{content:"\e219"}.glyphicon-apple:before{content:"\f8ff"}.glyphicon-erase:before{content:"\e221"}.glyphicon-hourglass:before{content:"\231b"}.glyphicon-lamp:before{content:"\e223"}.glyphicon-duplicate:before{content:"\e224"}.glyphicon-piggy-bank:before{content:"\e225"}.glyphicon-scissors:before{content:"\e226"}.glyphicon-bitcoin:before{content:"\e227"}.glyphicon-btc:before{content:"\e227"}.glyphicon-xbt:before{content:"\e227"}.glyphicon-yen:before{content:"\00a5"}.glyphicon-jpy:before{content:"\00a5"}.glyphicon-ruble:before{content:"\20bd"}.glyphicon-rub:before{content:"\20bd"}.glyphicon-scale:before{content:"\e230"}.glyphicon-ice-lolly:before{content:"\e231"}.glyphicon-ice-lolly-tasted:before{content:"\e232"}.glyphicon-education:before{content:"\e233"}.glyphicon-option-horizontal:before{content:"\e234"}.glyphicon-option-vertical:before{content:"\e235"}.glyphicon-menu-hamburger:before{content:"\e236"}.glyphicon-modal-window:before{content:"\e237"}.glyphicon-oil:before{content:"\e238"}.glyphicon-grain:before{content:"\e239"}.glyphicon-sunglasses:before{content:"\e240"}.glyphicon-text-size:before{content:"\e241"}.glyphicon-text-color:before{content:"\e242"}.glyphicon-text-background:before{content:"\e243"}.glyphicon-object-align-top:before{content:"\e244"}.glyphicon-object-align-bottom:before{content:"\e245"}.glyphicon-object-align-horizontal:before{content:"\e246"}.glyphicon-object-align-left:before{content:"\e247"}.glyphicon-object-align-vertical:before{content:"\e248"}.glyphicon-object-align-right:before{content:"\e249"}.glyphicon-triangle-right:before{content:"\e250"}.glyphicon-triangle-left:before{content:"\e251"}.glyphicon-triangle-bottom:before{content:"\e252"}.glyphicon-triangle-top:before{content:"\e253"}.glyphicon-console:before{content:"\e254"}.glyphicon-superscript:before{content:"\e255"}.glyphicon-subscript:before{content:"\e256"}.glyphicon-menu-left:before{content:"\e257"}.glyphicon-menu-right:before{content:"\e258"}.glyphicon-menu-down:before{content:"\e259"}.glyphicon-menu-up:before{content:"\e260"}*{-webkit-box-sizing:border-box;-moz-box-sizing:border-box;box-sizing:border-box}:after,:before{-webkit-box-sizing:border-box;-moz-box-sizing:border-box;box-sizing:border-box}html{font-size:10px;-webkit-tap-highlight-color:rgba(0,0,0,0)}body{font-family:"Helvetica Neue",Helvetica,Arial,sans-serif;font-size:14px;line-height:1.42857143;color:#333;background-color:#fff}button,input,select,textarea{font-family:inherit;font-size:inherit;line-height:inherit}a{color:#337ab7;text-decoration:none}a:focus,a:hover{color:#23527c;text-decoration:underline}a:focus{outline:5px auto -webkit-focus-ring-color;outline-offset:-2px}figure{margin:0}img{vertical-align:middle}.carousel-inner>.item>a>img,.carousel-inner>.item>img,.img-responsive,.thumbnail a>img,.thumbnail>img{display:block;max-width:100%;height:auto}.img-rounded{border-radius:6px}.img-thumbnail{display:inline-block;max-width:100%;height:auto;padding:4px;line-height:1.42857143;background-color:#fff;border:1px solid #ddd;border-radius:4px;-webkit-transition:all .2s ease-in-out;-o-transition:all .2s ease-in-out;transition:all .2s ease-in-out}.img-circle{border-radius:50%}hr{margin-top:20px;margin-bottom:20px;border:0;border-top:1px solid #eee}.sr-only{position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip:rect(0,0,0,0);border:0}.sr-only-focusable:active,.sr-only-focusable:focus{position:static;width:auto;height:auto;margin:0;overflow:visible;clip:auto}[role=button]{cursor:pointer}.h1,.h2,.h3,.h4,.h5,.h6,h1,h2,h3,h4,h5,h6{font-family:inherit;font-weight:500;line-height:1.1;color:inherit}.h1 .small,.h1 small,.h2 .small,.h2 small,.h3 .small,.h3 small,.h4 .small,.h4 small,.h5 .small,.h5 small,.h6 .small,.h6 small,h1 .small,h1 small,h2 .small,h2 small,h3 .small,h3 small,h4 .small,h4 small,h5 .small,h5 small,h6 .small,h6 small{font-weight:400;line-height:1;color:#777}.h1,.h2,.h3,h1,h2,h3{margin-top:20px;margin-bottom:10px}.h1 .small,.h1 small,.h2 .small,.h2 small,.h3 .small,.h3 small,h1 .small,h1 small,h2 .small,h2 small,h3 .small,h3 small{font-size:65%}.h4,.h5,.h6,h4,h5,h6{margin-top:10px;margin-bottom:10px}.h4 .small,.h4 small,.h5 .small,.h5 small,.h6 .small,.h6 small,h4 .small,h4 small,h5 .small,h5 small,h6 .small,h6 small{font-size:75%}.h1,h1{font-size:36px}.h2,h2{font-size:30px}.h3,h3{font-size:24px}.h4,h4{font-size:18px}.h5,h5{font-size:14px}.h6,h6{font-size:12px}p{margin:0 0 10px}.lead{margin-bottom:20px;font-size:16px;font-weight:300;line-height:1.4}@media (min-width:768px){.lead{font-size:21px}}.small,small{font-size:85%}.mark,mark{padding:.2em;background-color:#fcf8e3}.text-left{text-align:left}.text-right{text-align:right}.text-center{text-align:center}.text-justify{text-align:justify}.text-nowrap{white-space:nowrap}.text-lowercase{text-transform:lowercase}.text-uppercase{text-transform:uppercase}.text-capitalize{text-transform:capitalize}.text-muted{color:#777}.text-primary{color:#337ab7}a.text-primary:focus,a.text-primary:hover{color:#286090}.text-success{color:#3c763d}a.text-success:focus,a.text-success:hover{color:#2b542c}.text-info{color:#31708f}a.text-info:focus,a.text-info:hover{color:#245269}.text-warning{color:#8a6d3b}a.text-warning:focus,a.text-warning:hover{color:#66512c}.text-danger{color:#a94442}a.text-danger:focus,a.text-danger:hover{color:#843534}.bg-primary{color:#fff;background-color:#337ab7}a.bg-primary:focus,a.bg-primary:hover{background-color:#286090}.bg-success{background-color:#dff0d8}a.bg-success:focus,a.bg-success:hover{background-color:#c1e2b3}.bg-info{background-color:#d9edf7}a.bg-info:focus,a.bg-info:hover{background-color:#afd9ee}.bg-warning{background-color:#fcf8e3}a.bg-warning:focus,a.bg-warning:hover{background-color:#f7ecb5}.bg-danger{background-color:#f2dede}a.bg-danger:focus,a.bg-danger:hover{background-color:#e4b9b9}.page-header{padding-bottom:9px;margin:40px 0 20px;border-bottom:1px solid #eee}ol,ul{margin-top:0;margin-bottom:10px}ol ol,ol ul,ul ol,ul ul{margin-bottom:0}.list-unstyled{padding-left:0;list-style:none}.list-inline{padding-left:0;margin-left:-5px;list-style:none}.list-inline>li{display:inline-block;padding-right:5px;padding-left:5px}dl{margin-top:0;margin-bottom:20px}dd,dt{line-height:1.42857143}dt{font-weight:700}dd{margin-left:0}@media (min-width:768px){.dl-horizontal dt{float:left;width:160px;overflow:hidden;clear:left;text-align:right;text-overflow:ellipsis;white-space:nowrap}.dl-horizontal dd{margin-left:180px}}abbr[data-original-title],abbr[title]{cursor:help;border-bottom:1px dotted #777}.initialism{font-size:90%;text-transform:uppercase}blockquote{padding:10px 20px;margin:0 0 20px;font-size:17.5px;border-left:5px solid #eee}blockquote ol:last-child,blockquote p:last-child,blockquote ul:last-child{margin-bottom:0}blockquote .small,blockquote footer,blockquote small{display:block;font-size:80%;line-height:1.42857143;color:#777}blockquote .small:before,blockquote footer:before,blockquote small:before{content:'\2014 \00A0'}.blockquote-reverse,blockquote.pull-right{padding-right:15px;padding-left:0;text-align:right;border-right:5px solid #eee;border-left:0}.blockquote-reverse .small:before,.blockquote-reverse footer:before,.blockquote-reverse small:before,blockquote.pull-right .small:before,blockquote.pull-right footer:before,blockquote.pull-right small:before{content:''}.blockquote-reverse .small:after,.blockquote-reverse footer:after,.blockquote-reverse small:after,blockquote.pull-right .small:after,blockquote.pull-right footer:after,blockquote.pull-right small:after{content:'\00A0 \2014'}address{margin-bottom:20px;font-style:normal;line-height:1.42857143}code,kbd,pre,samp{font-family:Menlo,Monaco,Consolas,"Courier New",monospace}code{padding:2px 4px;font-size:90%;color:#c7254e;background-color:#f9f2f4;border-radius:4px}kbd{padding:2px 4px;font-size:90%;color:#fff;background-color:#333;border-radius:3px;-webkit-box-shadow:inset 0 -1px 0 rgba(0,0,0,.25);box-shadow:inset 0 -1px 0 rgba(0,0,0,.25)}kbd kbd{padding:0;font-size:100%;font-weight:700;-webkit-box-shadow:none;box-shadow:none}pre{display:block;padding:9.5px;margin:0 0 10px;font-size:13px;line-height:1.42857143;color:#333;word-break:break-all;word-wrap:break-word;background-color:#f5f5f5;border:1px solid #ccc;border-radius:4px}pre code{padding:0;font-size:inherit;color:inherit;white-space:pre-wrap;background-color:transparent;border-radius:0}.pre-scrollable{max-height:340px;overflow-y:scroll}.container{padding-right:15px;padding-left:15px;margin-right:auto;margin-left:auto}@media (min-width:768px){.container{width:750px}}@media (min-width:992px){.container{width:970px}}@media (min-width:1200px){.container{width:1170px}}.container-fluid{padding-right:15px;padding-left:15px;margin-right:auto;margin-left:auto}.row{margin-right:-15px;margin-left:-15px}.col-lg-1,.col-lg-10,.col-lg-11,.col-lg-12,.col-lg-2,.col-lg-3,.col-lg-4,.col-lg-5,.col-lg-6,.col-lg-7,.col-lg-8,.col-lg-9,.col-md-1,.col-md-10,.col-md-11,.col-md-12,.col-md-2,.col-md-3,.col-md-4,.col-md-5,.col-md-6,.col-md-7,.col-md-8,.col-md-9,.col-sm-1,.col-sm-10,.col-sm-11,.col-sm-12,.col-sm-2,.col-sm-3,.col-sm-4,.col-sm-5,.col-sm-6,.col-sm-7,.col-sm-8,.col-sm-9,.col-xs-1,.col-xs-10,.col-xs-11,.col-xs-12,.col-xs-2,.col-xs-3,.col-xs-4,.col-xs-5,.col-xs-6,.col-xs-7,.col-xs-8,.col-xs-9{position:relative;min-height:1px;padding-right:15px;padding-left:15px}.col-xs-1,.col-xs-10,.col-xs-11,.col-xs-12,.col-xs-2,.col-xs-3,.col-xs-4,.col-xs-5,.col-xs-6,.col-xs-7,.col-xs-8,.col-xs-9{float:left}.col-xs-12{width:100%}.col-xs-11{width:91.66666667%}.col-xs-10{width:83.33333333%}.col-xs-9{width:75%}.col-xs-8{width:66.66666667%}.col-xs-7{width:58.33333333%}.col-xs-6{width:50%}.col-xs-5{width:41.66666667%}.col-xs-4{width:33.33333333%}.col-xs-3{width:25%}.col-xs-2{width:16.66666667%}.col-xs-1{width:8.33333333%}.col-xs-pull-12{right:100%}.col-xs-pull-11{right:91.66666667%}.col-xs-pull-10{right:83.33333333%}.col-xs-pull-9{right:75%}.col-xs-pull-8{right:66.66666667%}.col-xs-pull-7{right:58.33333333%}.col-xs-pull-6{right:50%}.col-xs-pull-5{right:41.66666667%}.col-xs-pull-4{right:33.33333333%}.col-xs-pull-3{right:25%}.col-xs-pull-2{right:16.66666667%}.col-xs-pull-1{right:8.33333333%}.col-xs-pull-0{right:auto}.col-xs-push-12{left:100%}.col-xs-push-11{left:91.66666667%}.col-xs-push-10{left:83.33333333%}.col-xs-push-9{left:75%}.col-xs-push-8{left:66.66666667%}.col-xs-push-7{left:58.33333333%}.col-xs-push-6{left:50%}.col-xs-push-5{left:41.66666667%}.col-xs-push-4{left:33.33333333%}.col-xs-push-3{left:25%}.col-xs-push-2{left:16.66666667%}.col-xs-push-1{left:8.33333333%}.col-xs-push-0{left:auto}.col-xs-offset-12{margin-left:100%}.col-xs-offset-11{margin-left:91.66666667%}.col-xs-offset-10{margin-left:83.33333333%}.col-xs-offset-9{margin-left:75%}.col-xs-offset-8{margin-left:66.66666667%}.col-xs-offset-7{margin-left:58.33333333%}.col-xs-offset-6{margin-left:50%}.col-xs-offset-5{margin-left:41.66666667%}.col-xs-offset-4{margin-left:33.33333333%}.col-xs-offset-3{margin-left:25%}.col-xs-offset-2{margin-left:16.66666667%}.col-xs-offset-1{margin-left:8.33333333%}.col-xs-offset-0{margin-left:0}@media (min-width:768px){.col-sm-1,.col-sm-10,.col-sm-11,.col-sm-12,.col-sm-2,.col-sm-3,.col-sm-4,.col-sm-5,.col-sm-6,.col-sm-7,.col-sm-8,.col-sm-9{float:left}.col-sm-12{width:100%}.col-sm-11{width:91.66666667%}.col-sm-10{width:83.33333333%}.col-sm-9{width:75%}.col-sm-8{width:66.66666667%}.col-sm-7{width:58.33333333%}.col-sm-6{width:50%}.col-sm-5{width:41.66666667%}.col-sm-4{width:33.33333333%}.col-sm-3{width:25%}.col-sm-2{width:16.66666667%}.col-sm-1{width:8.33333333%}.col-sm-pull-12{right:100%}.col-sm-pull-11{right:91.66666667%}.col-sm-pull-10{right:83.33333333%}.col-sm-pull-9{right:75%}.col-sm-pull-8{right:66.66666667%}.col-sm-pull-7{right:58.33333333%}.col-sm-pull-6{right:50%}.col-sm-pull-5{right:41.66666667%}.col-sm-pull-4{right:33.33333333%}.col-sm-pull-3{right:25%}.col-sm-pull-2{right:16.66666667%}.col-sm-pull-1{right:8.33333333%}.col-sm-pull-0{right:auto}.col-sm-push-12{left:100%}.col-sm-push-11{left:91.66666667%}.col-sm-push-10{left:83.33333333%}.col-sm-push-9{left:75%}.col-sm-push-8{left:66.66666667%}.col-sm-push-7{left:58.33333333%}.col-sm-push-6{left:50%}.col-sm-push-5{left:41.66666667%}.col-sm-push-4{left:33.33333333%}.col-sm-push-3{left:25%}.col-sm-push-2{left:16.66666667%}.col-sm-push-1{left:8.33333333%}.col-sm-push-0{left:auto}.col-sm-offset-12{margin-left:100%}.col-sm-offset-11{margin-left:91.66666667%}.col-sm-offset-10{margin-left:83.33333333%}.col-sm-offset-9{margin-left:75%}.col-sm-offset-8{margin-left:66.66666667%}.col-sm-offset-7{margin-left:58.33333333%}.col-sm-offset-6{margin-left:50%}.col-sm-offset-5{margin-left:41.66666667%}.col-sm-offset-4{margin-left:33.33333333%}.col-sm-offset-3{margin-left:25%}.col-sm-offset-2{margin-left:16.66666667%}.col-sm-offset-1{margin-left:8.33333333%}.col-sm-offset-0{margin-left:0}}@media (min-width:992px){.col-md-1,.col-md-10,.col-md-11,.col-md-12,.col-md-2,.col-md-3,.col-md-4,.col-md-5,.col-md-6,.col-md-7,.col-md-8,.col-md-9{float:left}.col-md-12{width:100%}.col-md-11{width:91.66666667%}.col-md-10{width:83.33333333%}.col-md-9{width:75%}.col-md-8{width:66.66666667%}.col-md-7{width:58.33333333%}.col-md-6{width:50%}.col-md-5{width:41.66666667%}.col-md-4{width:33.33333333%}.col-md-3{width:25%}.col-md-2{width:16.66666667%}.col-md-1{width:8.33333333%}.col-md-pull-12{right:100%}.col-md-pull-11{right:91.66666667%}.col-md-pull-10{right:83.33333333%}.col-md-pull-9{right:75%}.col-md-pull-8{right:66.66666667%}.col-md-pull-7{right:58.33333333%}.col-md-pull-6{right:50%}.col-md-pull-5{right:41.66666667%}.col-md-pull-4{right:33.33333333%}.col-md-pull-3{right:25%}.col-md-pull-2{right:16.66666667%}.col-md-pull-1{right:8.33333333%}.col-md-pull-0{right:auto}.col-md-push-12{left:100%}.col-md-push-11{left:91.66666667%}.col-md-push-10{left:83.33333333%}.col-md-push-9{left:75%}.col-md-push-8{left:66.66666667%}.col-md-push-7{left:58.33333333%}.col-md-push-6{left:50%}.col-md-push-5{left:41.66666667%}.col-md-push-4{left:33.33333333%}.col-md-push-3{left:25%}.col-md-push-2{left:16.66666667%}.col-md-push-1{left:8.33333333%}.col-md-push-0{left:auto}.col-md-offset-12{margin-left:100%}.col-md-offset-11{margin-left:91.66666667%}.col-md-offset-10{margin-left:83.33333333%}.col-md-offset-9{margin-left:75%}.col-md-offset-8{margin-left:66.66666667%}.col-md-offset-7{margin-left:58.33333333%}.col-md-offset-6{margin-left:50%}.col-md-offset-5{margin-left:41.66666667%}.col-md-offset-4{margin-left:33.33333333%}.col-md-offset-3{margin-left:25%}.col-md-offset-2{margin-left:16.66666667%}.col-md-offset-1{margin-left:8.33333333%}.col-md-offset-0{margin-left:0}}@media (min-width:1200px){.col-lg-1,.col-lg-10,.col-lg-11,.col-lg-12,.col-lg-2,.col-lg-3,.col-lg-4,.col-lg-5,.col-lg-6,.col-lg-7,.col-lg-8,.col-lg-9{float:left}.col-lg-12{width:100%}.col-lg-11{width:91.66666667%}.col-lg-10{width:83.33333333%}.col-lg-9{width:75%}.col-lg-8{width:66.66666667%}.col-lg-7{width:58.33333333%}.col-lg-6{width:50%}.col-lg-5{width:41.66666667%}.col-lg-4{width:33.33333333%}.col-lg-3{width:25%}.col-lg-2{width:16.66666667%}.col-lg-1{width:8.33333333%}.col-lg-pull-12{right:100%}.col-lg-pull-11{right:91.66666667%}.col-lg-pull-10{right:83.33333333%}.col-lg-pull-9{right:75%}.col-lg-pull-8{right:66.66666667%}.col-lg-pull-7{right:58.33333333%}.col-lg-pull-6{right:50%}.col-lg-pull-5{right:41.66666667%}.col-lg-pull-4{right:33.33333333%}.col-lg-pull-3{right:25%}.col-lg-pull-2{right:16.66666667%}.col-lg-pull-1{right:8.33333333%}.col-lg-pull-0{right:auto}.col-lg-push-12{left:100%}.col-lg-push-11{left:91.66666667%}.col-lg-push-10{left:83.33333333%}.col-lg-push-9{left:75%}.col-lg-push-8{left:66.66666667%}.col-lg-push-7{left:58.33333333%}.col-lg-push-6{left:50%}.col-lg-push-5{left:41.66666667%}.col-lg-push-4{left:33.33333333%}.col-lg-push-3{left:25%}.col-lg-push-2{left:16.66666667%}.col-lg-push-1{left:8.33333333%}.col-lg-push-0{left:auto}.col-lg-offset-12{margin-left:100%}.col-lg-offset-11{margin-left:91.66666667%}.col-lg-offset-10{margin-left:83.33333333%}.col-lg-offset-9{margin-left:75%}.col-lg-offset-8{margin-left:66.66666667%}.col-lg-offset-7{margin-left:58.33333333%}.col-lg-offset-6{margin-left:50%}.col-lg-offset-5{margin-left:41.66666667%}.col-lg-offset-4{margin-left:33.33333333%}.col-lg-offset-3{margin-left:25%}.col-lg-offset-2{margin-left:16.66666667%}.col-lg-offset-1{margin-left:8.33333333%}.col-lg-offset-0{margin-left:0}}table{background-color:transparent}caption{padding-top:8px;padding-bottom:8px;color:#777;text-align:left}th{text-align:left}.table{width:100%;max-width:100%;margin-bottom:20px}.table>tbody>tr>td,.table>tbody>tr>th,.table>tfoot>tr>td,.table>tfoot>tr>th,.table>thead>tr>td,.table>thead>tr>th{padding:8px;line-height:1.42857143;vertical-align:top;border-top:1px solid #ddd}.table>thead>tr>th{vertical-align:bottom;border-bottom:2px solid #ddd}.table>caption+thead>tr:first-child>td,.table>caption+thead>tr:first-child>th,.table>colgroup+thead>tr:first-child>td,.table>colgroup+thead>tr:first-child>th,.table>thead:first-child>tr:first-child>td,.table>thead:first-child>tr:first-child>th{border-top:0}.table>tbody+tbody{border-top:2px solid #ddd}.table .table{background-color:#fff}.table-condensed>tbody>tr>td,.table-condensed>tbody>tr>th,.table-condensed>tfoot>tr>td,.table-condensed>tfoot>tr>th,.table-condensed>thead>tr>td,.table-condensed>thead>tr>th{padding:5px}.table-bordered{border:1px solid #ddd}.table-bordered>tbody>tr>td,.table-bordered>tbody>tr>th,.table-bordered>tfoot>tr>td,.table-bordered>tfoot>tr>th,.table-bordered>thead>tr>td,.table-bordered>thead>tr>th{border:1px solid #ddd}.table-bordered>thead>tr>td,.table-bordered>thead>tr>th{border-bottom-width:2px}.table-striped>tbody>tr:nth-of-type(odd){background-color:#f9f9f9}.table-hover>tbody>tr:hover{background-color:#f5f5f5}table col[class*=col-]{position:static;display:table-column;float:none}table td[class*=col-],table th[class*=col-]{position:static;display:table-cell;float:none}.table>tbody>tr.active>td,.table>tbody>tr.active>th,.table>tbody>tr>td.active,.table>tbody>tr>th.active,.table>tfoot>tr.active>td,.table>tfoot>tr.active>th,.table>tfoot>tr>td.active,.table>tfoot>tr>th.active,.table>thead>tr.active>td,.table>thead>tr.active>th,.table>thead>tr>td.active,.table>thead>tr>th.active{background-color:#f5f5f5}.table-hover>tbody>tr.active:hover>td,.table-hover>tbody>tr.active:hover>th,.table-hover>tbody>tr:hover>.active,.table-hover>tbody>tr>td.active:hover,.table-hover>tbody>tr>th.active:hover{background-color:#e8e8e8}.table>tbody>tr.success>td,.table>tbody>tr.success>th,.table>tbody>tr>td.success,.table>tbody>tr>th.success,.table>tfoot>tr.success>td,.table>tfoot>tr.success>th,.table>tfoot>tr>td.success,.table>tfoot>tr>th.success,.table>thead>tr.success>td,.table>thead>tr.success>th,.table>thead>tr>td.success,.table>thead>tr>th.success{background-color:#dff0d8}.table-hover>tbody>tr.success:hover>td,.table-hover>tbody>tr.success:hover>th,.table-hover>tbody>tr:hover>.success,.table-hover>tbody>tr>td.success:hover,.table-hover>tbody>tr>th.success:hover{background-color:#d0e9c6}.table>tbody>tr.info>td,.table>tbody>tr.info>th,.table>tbody>tr>td.info,.table>tbody>tr>th.info,.table>tfoot>tr.info>td,.table>tfoot>tr.info>th,.table>tfoot>tr>td.info,.table>tfoot>tr>th.info,.table>thead>tr.info>td,.table>thead>tr.info>th,.table>thead>tr>td.info,.table>thead>tr>th.info{background-color:#d9edf7}.table-hover>tbody>tr.info:hover>td,.table-hover>tbody>tr.info:hover>th,.table-hover>tbody>tr:hover>.info,.table-hover>tbody>tr>td.info:hover,.table-hover>tbody>tr>th.info:hover{background-color:#c4e3f3}.table>tbody>tr.warning>td,.table>tbody>tr.warning>th,.table>tbody>tr>td.warning,.table>tbody>tr>th.warning,.table>tfoot>tr.warning>td,.table>tfoot>tr.warning>th,.table>tfoot>tr>td.warning,.table>tfoot>tr>th.warning,.table>thead>tr.warning>td,.table>thead>tr.warning>th,.table>thead>tr>td.warning,.table>thead>tr>th.warning{background-color:#fcf8e3}.table-hover>tbody>tr.warning:hover>td,.table-hover>tbody>tr.warning:hover>th,.table-hover>tbody>tr:hover>.warning,.table-hover>tbody>tr>td.warning:hover,.table-hover>tbody>tr>th.warning:hover{background-color:#faf2cc}.table>tbody>tr.danger>td,.table>tbody>tr.danger>th,.table>tbody>tr>td.danger,.table>tbody>tr>th.danger,.table>tfoot>tr.danger>td,.table>tfoot>tr.danger>th,.table>tfoot>tr>td.danger,.table>tfoot>tr>th.danger,.table>thead>tr.danger>td,.table>thead>tr.danger>th,.table>thead>tr>td.danger,.table>thead>tr>th.danger{background-color:#f2dede}.table-hover>tbody>tr.danger:hover>td,.table-hover>tbody>tr.danger:hover>th,.table-hover>tbody>tr:hover>.danger,.table-hover>tbody>tr>td.danger:hover,.table-hover>tbody>tr>th.danger:hover{background-color:#ebcccc}.table-responsive{min-height:.01%;overflow-x:auto}@media screen and (max-width:767px){.table-responsive{width:100%;margin-bottom:15px;overflow-y:hidden;-ms-overflow-style:-ms-autohiding-scrollbar;border:1px solid #ddd}.table-responsive>.table{margin-bottom:0}.table-responsive>.table>tbody>tr>td,.table-responsive>.table>tbody>tr>th,.table-responsive>.table>tfoot>tr>td,.table-responsive>.table>tfoot>tr>th,.table-responsive>.table>thead>tr>td,.table-responsive>.table>thead>tr>th{white-space:nowrap}.table-responsive>.table-bordered{border:0}.table-responsive>.table-bordered>tbody>tr>td:first-child,.table-responsive>.table-bordered>tbody>tr>th:first-child,.table-responsive>.table-bordered>tfoot>tr>td:first-child,.table-responsive>.table-bordered>tfoot>tr>th:first-child,.table-responsive>.table-bordered>thead>tr>td:first-child,.table-responsive>.table-bordered>thead>tr>th:first-child{border-left:0}.table-responsive>.table-bordered>tbody>tr>td:last-child,.table-responsive>.table-bordered>tbody>tr>th:last-child,.table-responsive>.table-bordered>tfoot>tr>td:last-child,.table-responsive>.table-bordered>tfoot>tr>th:last-child,.table-responsive>.table-bordered>thead>tr>td:last-child,.table-responsive>.table-bordered>thead>tr>th:last-child{border-right:0}.table-responsive>.table-bordered>tbody>tr:last-child>td,.table-responsive>.table-bordered>tbody>tr:last-child>th,.table-responsive>.table-bordered>tfoot>tr:last-child>td,.table-responsive>.table-bordered>tfoot>tr:last-child>th{border-bottom:0}}fieldset{min-width:0;padding:0;margin:0;border:0}legend{display:block;width:100%;padding:0;margin-bottom:20px;font-size:21px;line-height:inherit;color:#333;border:0;border-bottom:1px solid #e5e5e5}label{display:inline-block;max-width:100%;margin-bottom:5px;font-weight:700}input[type=search]{-webkit-box-sizing:border-box;-moz-box-sizing:border-box;box-sizing:border-box}input[type=checkbox],input[type=radio]{margin:4px 0 0;margin-top:1px\9;line-height:normal}input[type=file]{display:block}input[type=range]{display:block;width:100%}select[multiple],select[size]{height:auto}input[type=file]:focus,input[type=checkbox]:focus,input[type=radio]:focus{outline:5px auto -webkit-focus-ring-color;outline-offset:-2px}output{display:block;padding-top:7px;font-size:14px;line-height:1.42857143;color:#555}.form-control{display:block;width:100%;height:34px;padding:6px 12px;font-size:14px;line-height:1.42857143;color:#555;background-color:#fff;background-image:none;border:1px solid #ccc;border-radius:4px;-webkit-box-shadow:inset 0 1px 1px rgba(0,0,0,.075);box-shadow:inset 0 1px 1px rgba(0,0,0,.075);-webkit-transition:border-color ease-in-out .15s,-webkit-box-shadow ease-in-out .15s;-o-transition:border-color ease-in-out .15s,box-shadow ease-in-out .15s;transition:border-color ease-in-out .15s,box-shadow ease-in-out .15s}.form-control:focus{border-color:#66afe9;outline:0;-webkit-box-shadow:inset 0 1px 1px rgba(0,0,0,.075),0 0 8px rgba(102,175,233,.6);box-shadow:inset 0 1px 1px rgba(0,0,0,.075),0 0 8px rgba(102,175,233,.6)}.form-control::-moz-placeholder{color:#999;opacity:1}.form-control:-ms-input-placeholder{color:#999}.form-control::-webkit-input-placeholder{color:#999}.form-control::-ms-expand{background-color:transparent;border:0}.form-control[disabled],.form-control[readonly],fieldset[disabled] .form-control{background-color:#eee;opacity:1}.form-control[disabled],fieldset[disabled] .form-control{cursor:not-allowed}textarea.form-control{height:auto}input[type=search]{-webkit-appearance:none}@media screen and (-webkit-min-device-pixel-ratio:0){input[type=date].form-control,input[type=time].form-control,input[type=datetime-local].form-control,input[type=month].form-control{line-height:34px}.input-group-sm input[type=date],.input-group-sm input[type=time],.input-group-sm input[type=datetime-local],.input-group-sm input[type=month],input[type=date].input-sm,input[type=time].input-sm,input[type=datetime-local].input-sm,input[type=month].input-sm{line-height:30px}.input-group-lg input[type=date],.input-group-lg input[type=time],.input-group-lg input[type=datetime-local],.input-group-lg input[type=month],input[type=date].input-lg,input[type=time].input-lg,input[type=datetime-local].input-lg,input[type=month].input-lg{line-height:46px}}.form-group{margin-bottom:15px}.checkbox,.radio{position:relative;display:block;margin-top:10px;margin-bottom:10px}.checkbox label,.radio label{min-height:20px;padding-left:20px;margin-bottom:0;font-weight:400;cursor:pointer}.checkbox input[type=checkbox],.checkbox-inline input[type=checkbox],.radio input[type=radio],.radio-inline input[type=radio]{position:absolute;margin-top:4px\9;margin-left:-20px}.checkbox+.checkbox,.radio+.radio{margin-top:-5px}.checkbox-inline,.radio-inline{position:relative;display:inline-block;padding-left:20px;margin-bottom:0;font-weight:400;vertical-align:middle;cursor:pointer}.checkbox-inline+.checkbox-inline,.radio-inline+.radio-inline{margin-top:0;margin-left:10px}fieldset[disabled] input[type=checkbox],fieldset[disabled] input[type=radio],input[type=checkbox].disabled,input[type=checkbox][disabled],input[type=radio].disabled,input[type=radio][disabled]{cursor:not-allowed}.checkbox-inline.disabled,.radio-inline.disabled,fieldset[disabled] .checkbox-inline,fieldset[disabled] .radio-inline{cursor:not-allowed}.checkbox.disabled label,.radio.disabled label,fieldset[disabled] .checkbox label,fieldset[disabled] .radio label{cursor:not-allowed}.form-control-static{min-height:34px;padding-top:7px;padding-bottom:7px;margin-bottom:0}.form-control-static.input-lg,.form-control-static.input-sm{padding-right:0;padding-left:0}.input-sm{height:30px;padding:5px 10px;font-size:12px;line-height:1.5;border-radius:3px}select.input-sm{height:30px;line-height:30px}select[multiple].input-sm,textarea.input-sm{height:auto}.form-group-sm .form-control{height:30px;padding:5px 10px;font-size:12px;line-height:1.5;border-radius:3px}.form-group-sm select.form-control{height:30px;line-height:30px}.form-group-sm select[multiple].form-control,.form-group-sm textarea.form-control{height:auto}.form-group-sm .form-control-static{height:30px;min-height:32px;padding:6px 10px;font-size:12px;line-height:1.5}.input-lg{height:46px;padding:10px 16px;font-size:18px;line-height:1.3333333;border-radius:6px}select.input-lg{height:46px;line-height:46px}select[multiple].input-lg,textarea.input-lg{height:auto}.form-group-lg .form-control{height:46px;padding:10px 16px;font-size:18px;line-height:1.3333333;border-radius:6px}.form-group-lg select.form-control{height:46px;line-height:46px}.form-group-lg select[multiple].form-control,.form-group-lg textarea.form-control{height:auto}.form-group-lg .form-control-static{height:46px;min-height:38px;padding:11px 16px;font-size:18px;line-height:1.3333333}.has-feedback{position:relative}.has-feedback .form-control{padding-right:42.5px}.form-control-feedback{position:absolute;top:0;right:0;z-index:2;display:block;width:34px;height:34px;line-height:34px;text-align:center;pointer-events:none}.form-group-lg .form-control+.form-control-feedback,.input-group-lg+.form-control-feedback,.input-lg+.form-control-feedback{width:46px;height:46px;line-height:46px}.form-group-sm .form-control+.form-control-feedback,.input-group-sm+.form-control-feedback,.input-sm+.form-control-feedback{width:30px;height:30px;line-height:30px}.has-success .checkbox,.has-success .checkbox-inline,.has-success .control-label,.has-success .help-block,.has-success .radio,.has-success .radio-inline,.has-success.checkbox label,.has-success.checkbox-inline label,.has-success.radio label,.has-success.radio-inline label{color:#3c763d}.has-success .form-control{border-color:#3c763d;-webkit-box-shadow:inset 0 1px 1px rgba(0,0,0,.075);box-shadow:inset 0 1px 1px rgba(0,0,0,.075)}.has-success .form-control:focus{border-color:#2b542c;-webkit-box-shadow:inset 0 1px 1px rgba(0,0,0,.075),0 0 6px #67b168;box-shadow:inset 0 1px 1px rgba(0,0,0,.075),0 0 6px #67b168}.has-success .input-group-addon{color:#3c763d;background-color:#dff0d8;border-color:#3c763d}.has-success .form-control-feedback{color:#3c763d}.has-warning .checkbox,.has-warning .checkbox-inline,.has-warning .control-label,.has-warning .help-block,.has-warning .radio,.has-warning .radio-inline,.has-warning.checkbox label,.has-warning.checkbox-inline label,.has-warning.radio label,.has-warning.radio-inline label{color:#8a6d3b}.has-warning .form-control{border-color:#8a6d3b;-webkit-box-shadow:inset 0 1px 1px rgba(0,0,0,.075);box-shadow:inset 0 1px 1px rgba(0,0,0,.075)}.has-warning .form-control:focus{border-color:#66512c;-webkit-box-shadow:inset 0 1px 1px rgba(0,0,0,.075),0 0 6px #c0a16b;box-shadow:inset 0 1px 1px rgba(0,0,0,.075),0 0 6px #c0a16b}.has-warning .input-group-addon{color:#8a6d3b;background-color:#fcf8e3;border-color:#8a6d3b}.has-warning .form-control-feedback{color:#8a6d3b}.has-error .checkbox,.has-error .checkbox-inline,.has-error .control-label,.has-error .help-block,.has-error .radio,.has-error .radio-inline,.has-error.checkbox label,.has-error.checkbox-inline label,.has-error.radio label,.has-error.radio-inline label{color:#a94442}.has-error .form-control{border-color:#a94442;-webkit-box-shadow:inset 0 1px 1px rgba(0,0,0,.075);box-shadow:inset 0 1px 1px rgba(0,0,0,.075)}.has-error .form-control:focus{border-color:#843534;-webkit-box-shadow:inset 0 1px 1px rgba(0,0,0,.075),0 0 6px #ce8483;box-shadow:inset 0 1px 1px rgba(0,0,0,.075),0 0 6px #ce8483}.has-error .input-group-addon{color:#a94442;background-color:#f2dede;border-color:#a94442}.has-error .form-control-feedback{color:#a94442}.has-feedback label~.form-control-feedback{top:25px}.has-feedback label.sr-only~.form-control-feedback{top:0}.help-block{display:block;margin-top:5px;margin-bottom:10px;color:#737373}@media (min-width:768px){.form-inline .form-group{display:inline-block;margin-bottom:0;vertical-align:middle}.form-inline .form-control{display:inline-block;width:auto;vertical-align:middle}.form-inline .form-control-static{display:inline-block}.form-inline .input-group{display:inline-table;vertical-align:middle}.form-inline .input-group .form-control,.form-inline .input-group .input-group-addon,.form-inline .input-group .input-group-btn{width:auto}.form-inline .input-group>.form-control{width:100%}.form-inline .control-label{margin-bottom:0;vertical-align:middle}.form-inline .checkbox,.form-inline .radio{display:inline-block;margin-top:0;margin-bottom:0;vertical-align:middle}.form-inline .checkbox label,.form-inline .radio label{padding-left:0}.form-inline .checkbox input[type=checkbox],.form-inline .radio input[type=radio]{position:relative;margin-left:0}.form-inline .has-feedback .form-control-feedback{top:0}}.form-horizontal .checkbox,.form-horizontal .checkbox-inline,.form-horizontal .radio,.form-horizontal .radio-inline{padding-top:7px;margin-top:0;margin-bottom:0}.form-horizontal .checkbox,.form-horizontal .radio{min-height:27px}.form-horizontal .form-group{margin-right:-15px;margin-left:-15px}@media (min-width:768px){.form-horizontal .control-label{padding-top:7px;margin-bottom:0;text-align:right}}.form-horizontal .has-feedback .form-control-feedback{right:15px}@media (min-width:768px){.form-horizontal .form-group-lg .control-label{padding-top:11px;font-size:18px}}@media (min-width:768px){.form-horizontal .form-group-sm .control-label{padding-top:6px;font-size:12px}}.btn{display:inline-block;padding:6px 12px;margin-bottom:0;font-size:14px;font-weight:400;line-height:1.42857143;text-align:center;white-space:nowrap;vertical-align:middle;-ms-touch-action:manipulation;touch-action:manipulation;cursor:pointer;-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none;background-image:none;border:1px solid transparent;border-radius:4px}.btn.active.focus,.btn.active:focus,.btn.focus,.btn:active.focus,.btn:active:focus,.btn:focus{outline:5px auto -webkit-focus-ring-color;outline-offset:-2px}.btn.focus,.btn:focus,.btn:hover{color:#333;text-decoration:none}.btn.active,.btn:active{background-image:none;outline:0;-webkit-box-shadow:inset 0 3px 5px rgba(0,0,0,.125);box-shadow:inset 0 3px 5px rgba(0,0,0,.125)}.btn.disabled,.btn[disabled],fieldset[disabled] .btn{cursor:not-allowed;filter:alpha(opacity=65);-webkit-box-shadow:none;box-shadow:none;opacity:.65}a.btn.disabled,fieldset[disabled] a.btn{pointer-events:none}.btn-default{color:#333;background-color:#fff;border-color:#ccc}.btn-default.focus,.btn-default:focus{color:#333;background-color:#e6e6e6;border-color:#8c8c8c}.btn-default:hover{color:#333;background-color:#e6e6e6;border-color:#adadad}.btn-default.active,.btn-default:active,.open>.dropdown-toggle.btn-default{color:#333;background-color:#e6e6e6;border-color:#adadad}.btn-default.active.focus,.btn-default.active:focus,.btn-default.active:hover,.btn-default:active.focus,.btn-default:active:focus,.btn-default:active:hover,.open>.dropdown-toggle.btn-default.focus,.open>.dropdown-toggle.btn-default:focus,.open>.dropdown-toggle.btn-default:hover{color:#333;background-color:#d4d4d4;border-color:#8c8c8c}.btn-default.active,.btn-default:active,.open>.dropdown-toggle.btn-default{background-image:none}.btn-default.disabled.focus,.btn-default.disabled:focus,.btn-default.disabled:hover,.btn-default[disabled].focus,.btn-default[disabled]:focus,.btn-default[disabled]:hover,fieldset[disabled] .btn-default.focus,fieldset[disabled] .btn-default:focus,fieldset[disabled] .btn-default:hover{background-color:#fff;border-color:#ccc}.btn-default .badge{color:#fff;background-color:#333}.btn-primary{color:#fff;background-color:#337ab7;border-color:#2e6da4}.btn-primary.focus,.btn-primary:focus{color:#fff;background-color:#286090;border-color:#122b40}.btn-primary:hover{color:#fff;background-color:#286090;border-color:#204d74}.btn-primary.active,.btn-primary:active,.open>.dropdown-toggle.btn-primary{color:#fff;background-color:#286090;border-color:#204d74}.btn-primary.active.focus,.btn-primary.active:focus,.btn-primary.active:hover,.btn-primary:active.focus,.btn-primary:active:focus,.btn-primary:active:hover,.open>.dropdown-toggle.btn-primary.focus,.open>.dropdown-toggle.btn-primary:focus,.open>.dropdown-toggle.btn-primary:hover{color:#fff;background-color:#204d74;border-color:#122b40}.btn-primary.active,.btn-primary:active,.open>.dropdown-toggle.btn-primary{background-image:none}.btn-primary.disabled.focus,.btn-primary.disabled:focus,.btn-primary.disabled:hover,.btn-primary[disabled].focus,.btn-primary[disabled]:focus,.btn-primary[disabled]:hover,fieldset[disabled] .btn-primary.focus,fieldset[disabled] .btn-primary:focus,fieldset[disabled] .btn-primary:hover{background-color:#337ab7;border-color:#2e6da4}.btn-primary .badge{color:#337ab7;background-color:#fff}.btn-success{color:#fff;background-color:#5cb85c;border-color:#4cae4c}.btn-success.focus,.btn-success:focus{color:#fff;background-color:#449d44;border-color:#255625}.btn-success:hover{color:#fff;background-color:#449d44;border-color:#398439}.btn-success.active,.btn-success:active,.open>.dropdown-toggle.btn-success{color:#fff;background-color:#449d44;border-color:#398439}.btn-success.active.focus,.btn-success.active:focus,.btn-success.active:hover,.btn-success:active.focus,.btn-success:active:focus,.btn-success:active:hover,.open>.dropdown-toggle.btn-success.focus,.open>.dropdown-toggle.btn-success:focus,.open>.dropdown-toggle.btn-success:hover{color:#fff;background-color:#398439;border-color:#255625}.btn-success.active,.btn-success:active,.open>.dropdown-toggle.btn-success{background-image:none}.btn-success.disabled.focus,.btn-success.disabled:focus,.btn-success.disabled:hover,.btn-success[disabled].focus,.btn-success[disabled]:focus,.btn-success[disabled]:hover,fieldset[disabled] .btn-success.focus,fieldset[disabled] .btn-success:focus,fieldset[disabled] .btn-success:hover{background-color:#5cb85c;border-color:#4cae4c}.btn-success .badge{color:#5cb85c;background-color:#fff}.btn-info{color:#fff;background-color:#5bc0de;border-color:#46b8da}.btn-info.focus,.btn-info:focus{color:#fff;background-color:#31b0d5;border-color:#1b6d85}.btn-info:hover{color:#fff;background-color:#31b0d5;border-color:#269abc}.btn-info.active,.btn-info:active,.open>.dropdown-toggle.btn-info{color:#fff;background-color:#31b0d5;border-color:#269abc}.btn-info.active.focus,.btn-info.active:focus,.btn-info.active:hover,.btn-info:active.focus,.btn-info:active:focus,.btn-info:active:hover,.open>.dropdown-toggle.btn-info.focus,.open>.dropdown-toggle.btn-info:focus,.open>.dropdown-toggle.btn-info:hover{color:#fff;background-color:#269abc;border-color:#1b6d85}.btn-info.active,.btn-info:active,.open>.dropdown-toggle.btn-info{background-image:none}.btn-info.disabled.focus,.btn-info.disabled:focus,.btn-info.disabled:hover,.btn-info[disabled].focus,.btn-info[disabled]:focus,.btn-info[disabled]:hover,fieldset[disabled] .btn-info.focus,fieldset[disabled] .btn-info:focus,fieldset[disabled] .btn-info:hover{background-color:#5bc0de;border-color:#46b8da}.btn-info .badge{color:#5bc0de;background-color:#fff}.btn-warning{color:#fff;background-color:#f0ad4e;border-color:#eea236}.btn-warning.focus,.btn-warning:focus{color:#fff;background-color:#ec971f;border-color:#985f0d}.btn-warning:hover{color:#fff;background-color:#ec971f;border-color:#d58512}.btn-warning.active,.btn-warning:active,.open>.dropdown-toggle.btn-warning{color:#fff;background-color:#ec971f;border-color:#d58512}.btn-warning.active.focus,.btn-warning.active:focus,.btn-warning.active:hover,.btn-warning:active.focus,.btn-warning:active:focus,.btn-warning:active:hover,.open>.dropdown-toggle.btn-warning.focus,.open>.dropdown-toggle.btn-warning:focus,.open>.dropdown-toggle.btn-warning:hover{color:#fff;background-color:#d58512;border-color:#985f0d}.btn-warning.active,.btn-warning:active,.open>.dropdown-toggle.btn-warning{background-image:none}.btn-warning.disabled.focus,.btn-warning.disabled:focus,.btn-warning.disabled:hover,.btn-warning[disabled].focus,.btn-warning[disabled]:focus,.btn-warning[disabled]:hover,fieldset[disabled] .btn-warning.focus,fieldset[disabled] .btn-warning:focus,fieldset[disabled] .btn-warning:hover{background-color:#f0ad4e;border-color:#eea236}.btn-warning .badge{color:#f0ad4e;background-color:#fff}.btn-danger{color:#fff;background-color:#d9534f;border-color:#d43f3a}.btn-danger.focus,.btn-danger:focus{color:#fff;background-color:#c9302c;border-color:#761c19}.btn-danger:hover{color:#fff;background-color:#c9302c;border-color:#ac2925}.btn-danger.active,.btn-danger:active,.open>.dropdown-toggle.btn-danger{color:#fff;background-color:#c9302c;border-color:#ac2925}.btn-danger.active.focus,.btn-danger.active:focus,.btn-danger.active:hover,.btn-danger:active.focus,.btn-danger:active:focus,.btn-danger:active:hover,.open>.dropdown-toggle.btn-danger.focus,.open>.dropdown-toggle.btn-danger:focus,.open>.dropdown-toggle.btn-danger:hover{color:#fff;background-color:#ac2925;border-color:#761c19}.btn-danger.active,.btn-danger:active,.open>.dropdown-toggle.btn-danger{background-image:none}.btn-danger.disabled.focus,.btn-danger.disabled:focus,.btn-danger.disabled:hover,.btn-danger[disabled].focus,.btn-danger[disabled]:focus,.btn-danger[disabled]:hover,fieldset[disabled] .btn-danger.focus,fieldset[disabled] .btn-danger:focus,fieldset[disabled] .btn-danger:hover{background-color:#d9534f;border-color:#d43f3a}.btn-danger .badge{color:#d9534f;background-color:#fff}.btn-link{font-weight:400;color:#337ab7;border-radius:0}.btn-link,.btn-link.active,.btn-link:active,.btn-link[disabled],fieldset[disabled] .btn-link{background-color:transparent;-webkit-box-shadow:none;box-shadow:none}.btn-link,.btn-link:active,.btn-link:focus,.btn-link:hover{border-color:transparent}.btn-link:focus,.btn-link:hover{color:#23527c;text-decoration:underline;background-color:transparent}.btn-link[disabled]:focus,.btn-link[disabled]:hover,fieldset[disabled] .btn-link:focus,fieldset[disabled] .btn-link:hover{color:#777;text-decoration:none}.btn-group-lg>.btn,.btn-lg{padding:10px 16px;font-size:18px;line-height:1.3333333;border-radius:6px}.btn-group-sm>.btn,.btn-sm{padding:5px 10px;font-size:12px;line-height:1.5;border-radius:3px}.btn-group-xs>.btn,.btn-xs{padding:1px 5px;font-size:12px;line-height:1.5;border-radius:3px}.btn-block{display:block;width:100%}.btn-block+.btn-block{margin-top:5px}input[type=button].btn-block,input[type=reset].btn-block,input[type=submit].btn-block{width:100%}.fade{opacity:0;-webkit-transition:opacity .15s linear;-o-transition:opacity .15s linear;transition:opacity .15s linear}.fade.in{opacity:1}.collapse{display:none}.collapse.in{display:block}tr.collapse.in{display:table-row}tbody.collapse.in{display:table-row-group}.collapsing{position:relative;height:0;overflow:hidden;-webkit-transition-timing-function:ease;-o-transition-timing-function:ease;transition-timing-function:ease;-webkit-transition-duration:.35s;-o-transition-duration:.35s;transition-duration:.35s;-webkit-transition-property:height,visibility;-o-transition-property:height,visibility;transition-property:height,visibility}.caret{display:inline-block;width:0;height:0;margin-left:2px;vertical-align:middle;border-top:4px dashed;border-top:4px solid\9;border-right:4px solid transparent;border-left:4px solid transparent}.dropdown,.dropup{position:relative}.dropdown-toggle:focus{outline:0}.dropdown-menu{position:absolute;top:100%;left:0;z-index:1000;display:none;float:left;min-width:160px;padding:5px 0;margin:2px 0 0;font-size:14px;text-align:left;list-style:none;background-color:#fff;-webkit-background-clip:padding-box;background-clip:padding-box;border:1px solid #ccc;border:1px solid rgba(0,0,0,.15);border-radius:4px;-webkit-box-shadow:0 6px 12px rgba(0,0,0,.175);box-shadow:0 6px 12px rgba(0,0,0,.175)}.dropdown-menu.pull-right{right:0;left:auto}.dropdown-menu .divider{height:1px;margin:9px 0;overflow:hidden;background-color:#e5e5e5}.dropdown-menu>li>a{display:block;padding:3px 20px;clear:both;font-weight:400;line-height:1.42857143;color:#333;white-space:nowrap}.dropdown-menu>li>a:focus,.dropdown-menu>li>a:hover{color:#262626;text-decoration:none;background-color:#f5f5f5}.dropdown-menu>.active>a,.dropdown-menu>.active>a:focus,.dropdown-menu>.active>a:hover{color:#fff;text-decoration:none;background-color:#337ab7;outline:0}.dropdown-menu>.disabled>a,.dropdown-menu>.disabled>a:focus,.dropdown-menu>.disabled>a:hover{color:#777}.dropdown-menu>.disabled>a:focus,.dropdown-menu>.disabled>a:hover{text-decoration:none;cursor:not-allowed;background-color:transparent;background-image:none;filter:progid:DXImageTransform.Microsoft.gradient(enabled=false)}.open>.dropdown-menu{display:block}.open>a{outline:0}.dropdown-menu-right{right:0;left:auto}.dropdown-menu-left{right:auto;left:0}.dropdown-header{display:block;padding:3px 20px;font-size:12px;line-height:1.42857143;color:#777;white-space:nowrap}.dropdown-backdrop{position:fixed;top:0;right:0;bottom:0;left:0;z-index:990}.pull-right>.dropdown-menu{right:0;left:auto}.dropup .caret,.navbar-fixed-bottom .dropdown .caret{content:"";border-top:0;border-bottom:4px dashed;border-bottom:4px solid\9}.dropup .dropdown-menu,.navbar-fixed-bottom .dropdown .dropdown-menu{top:auto;bottom:100%;margin-bottom:2px}@media (min-width:768px){.navbar-right .dropdown-menu{right:0;left:auto}.navbar-right .dropdown-menu-left{right:auto;left:0}}.btn-group,.btn-group-vertical{position:relative;display:inline-block;vertical-align:middle}.btn-group-vertical>.btn,.btn-group>.btn{position:relative;float:left}.btn-group-vertical>.btn.active,.btn-group-vertical>.btn:active,.btn-group-vertical>.btn:focus,.btn-group-vertical>.btn:hover,.btn-group>.btn.active,.btn-group>.btn:active,.btn-group>.btn:focus,.btn-group>.btn:hover{z-index:2}.btn-group .btn+.btn,.btn-group .btn+.btn-group,.btn-group .btn-group+.btn,.btn-group .btn-group+.btn-group{margin-left:-1px}.btn-toolbar{margin-left:-5px}.btn-toolbar .btn,.btn-toolbar .btn-group,.btn-toolbar .input-group{float:left}.btn-toolbar>.btn,.btn-toolbar>.btn-group,.btn-toolbar>.input-group{margin-left:5px}.btn-group>.btn:not(:first-child):not(:last-child):not(.dropdown-toggle){border-radius:0}.btn-group>.btn:first-child{margin-left:0}.btn-group>.btn:first-child:not(:last-child):not(.dropdown-toggle){border-top-right-radius:0;border-bottom-right-radius:0}.btn-group>.btn:last-child:not(:first-child),.btn-group>.dropdown-toggle:not(:first-child){border-top-left-radius:0;border-bottom-left-radius:0}.btn-group>.btn-group{float:left}.btn-group>.btn-group:not(:first-child):not(:last-child)>.btn{border-radius:0}.btn-group>.btn-group:first-child:not(:last-child)>.btn:last-child,.btn-group>.btn-group:first-child:not(:last-child)>.dropdown-toggle{border-top-right-radius:0;border-bottom-right-radius:0}.btn-group>.btn-group:last-child:not(:first-child)>.btn:first-child{border-top-left-radius:0;border-bottom-left-radius:0}.btn-group .dropdown-toggle:active,.btn-group.open .dropdown-toggle{outline:0}.btn-group>.btn+.dropdown-toggle{padding-right:8px;padding-left:8px}.btn-group>.btn-lg+.dropdown-toggle{padding-right:12px;padding-left:12px}.btn-group.open .dropdown-toggle{-webkit-box-shadow:inset 0 3px 5px rgba(0,0,0,.125);box-shadow:inset 0 3px 5px rgba(0,0,0,.125)}.btn-group.open .dropdown-toggle.btn-link{-webkit-box-shadow:none;box-shadow:none}.btn .caret{margin-left:0}.btn-lg .caret{border-width:5px 5px 0;border-bottom-width:0}.dropup .btn-lg .caret{border-width:0 5px 5px}.btn-group-vertical>.btn,.btn-group-vertical>.btn-group,.btn-group-vertical>.btn-group>.btn{display:block;float:none;width:100%;max-width:100%}.btn-group-vertical>.btn-group>.btn{float:none}.btn-group-vertical>.btn+.btn,.btn-group-vertical>.btn+.btn-group,.btn-group-vertical>.btn-group+.btn,.btn-group-vertical>.btn-group+.btn-group{margin-top:-1px;margin-left:0}.btn-group-vertical>.btn:not(:first-child):not(:last-child){border-radius:0}.btn-group-vertical>.btn:first-child:not(:last-child){border-top-left-radius:4px;border-top-right-radius:4px;border-bottom-right-radius:0;border-bottom-left-radius:0}.btn-group-vertical>.btn:last-child:not(:first-child){border-top-left-radius:0;border-top-right-radius:0;border-bottom-right-radius:4px;border-bottom-left-radius:4px}.btn-group-vertical>.btn-group:not(:first-child):not(:last-child)>.btn{border-radius:0}.btn-group-vertical>.btn-group:first-child:not(:last-child)>.btn:last-child,.btn-group-vertical>.btn-group:first-child:not(:last-child)>.dropdown-toggle{border-bottom-right-radius:0;border-bottom-left-radius:0}.btn-group-vertical>.btn-group:last-child:not(:first-child)>.btn:first-child{border-top-left-radius:0;border-top-right-radius:0}.btn-group-justified{display:table;width:100%;table-layout:fixed;border-collapse:separate}.btn-group-justified>.btn,.btn-group-justified>.btn-group{display:table-cell;float:none;width:1%}.btn-group-justified>.btn-group .btn{width:100%}.btn-group-justified>.btn-group .dropdown-menu{left:auto}[data-toggle=buttons]>.btn input[type=checkbox],[data-toggle=buttons]>.btn input[type=radio],[data-toggle=buttons]>.btn-group>.btn input[type=checkbox],[data-toggle=buttons]>.btn-group>.btn input[type=radio]{position:absolute;clip:rect(0,0,0,0);pointer-events:none}.input-group{position:relative;display:table;border-collapse:separate}.input-group[class*=col-]{float:none;padding-right:0;padding-left:0}.input-group .form-control{position:relative;z-index:2;float:left;width:100%;margin-bottom:0}.input-group .form-control:focus{z-index:3}.input-group-lg>.form-control,.input-group-lg>.input-group-addon,.input-group-lg>.input-group-btn>.btn{height:46px;padding:10px 16px;font-size:18px;line-height:1.3333333;border-radius:6px}select.input-group-lg>.form-control,select.input-group-lg>.input-group-addon,select.input-group-lg>.input-group-btn>.btn{height:46px;line-height:46px}select[multiple].input-group-lg>.form-control,select[multiple].input-group-lg>.input-group-addon,select[multiple].input-group-lg>.input-group-btn>.btn,textarea.input-group-lg>.form-control,textarea.input-group-lg>.input-group-addon,textarea.input-group-lg>.input-group-btn>.btn{height:auto}.input-group-sm>.form-control,.input-group-sm>.input-group-addon,.input-group-sm>.input-group-btn>.btn{height:30px;padding:5px 10px;font-size:12px;line-height:1.5;border-radius:3px}select.input-group-sm>.form-control,select.input-group-sm>.input-group-addon,select.input-group-sm>.input-group-btn>.btn{height:30px;line-height:30px}select[multiple].input-group-sm>.form-control,select[multiple].input-group-sm>.input-group-addon,select[multiple].input-group-sm>.input-group-btn>.btn,textarea.input-group-sm>.form-control,textarea.input-group-sm>.input-group-addon,textarea.input-group-sm>.input-group-btn>.btn{height:auto}.input-group .form-control,.input-group-addon,.input-group-btn{display:table-cell}.input-group .form-control:not(:first-child):not(:last-child),.input-group-addon:not(:first-child):not(:last-child),.input-group-btn:not(:first-child):not(:last-child){border-radius:0}.input-group-addon,.input-group-btn{width:1%;white-space:nowrap;vertical-align:middle}.input-group-addon{padding:6px 12px;font-size:14px;font-weight:400;line-height:1;color:#555;text-align:center;background-color:#eee;border:1px solid #ccc;border-radius:4px}.input-group-addon.input-sm{padding:5px 10px;font-size:12px;border-radius:3px}.input-group-addon.input-lg{padding:10px 16px;font-size:18px;border-radius:6px}.input-group-addon input[type=checkbox],.input-group-addon input[type=radio]{margin-top:0}.input-group .form-control:first-child,.input-group-addon:first-child,.input-group-btn:first-child>.btn,.input-group-btn:first-child>.btn-group>.btn,.input-group-btn:first-child>.dropdown-toggle,.input-group-btn:last-child>.btn-group:not(:last-child)>.btn,.input-group-btn:last-child>.btn:not(:last-child):not(.dropdown-toggle){border-top-right-radius:0;border-bottom-right-radius:0}.input-group-addon:first-child{border-right:0}.input-group .form-control:last-child,.input-group-addon:last-child,.input-group-btn:first-child>.btn-group:not(:first-child)>.btn,.input-group-btn:first-child>.btn:not(:first-child),.input-group-btn:last-child>.btn,.input-group-btn:last-child>.btn-group>.btn,.input-group-btn:last-child>.dropdown-toggle{border-top-left-radius:0;border-bottom-left-radius:0}.input-group-addon:last-child{border-left:0}.input-group-btn{position:relative;font-size:0;white-space:nowrap}.input-group-btn>.btn{position:relative}.input-group-btn>.btn+.btn{margin-left:-1px}.input-group-btn>.btn:active,.input-group-btn>.btn:focus,.input-group-btn>.btn:hover{z-index:2}.input-group-btn:first-child>.btn,.input-group-btn:first-child>.btn-group{margin-right:-1px}.input-group-btn:last-child>.btn,.input-group-btn:last-child>.btn-group{z-index:2;margin-left:-1px}.nav{padding-left:0;margin-bottom:0;list-style:none}.nav>li{position:relative;display:block}.nav>li>a{position:relative;display:block;padding:10px 15px}.nav>li>a:focus,.nav>li>a:hover{text-decoration:none;background-color:#eee}.nav>li.disabled>a{color:#777}.nav>li.disabled>a:focus,.nav>li.disabled>a:hover{color:#777;text-decoration:none;cursor:not-allowed;background-color:transparent}.nav .open>a,.nav .open>a:focus,.nav .open>a:hover{background-color:#eee;border-color:#337ab7}.nav .nav-divider{height:1px;margin:9px 0;overflow:hidden;background-color:#e5e5e5}.nav>li>a>img{max-width:none}.nav-tabs{border-bottom:1px solid #ddd}.nav-tabs>li{float:left;margin-bottom:-1px}.nav-tabs>li>a{margin-right:2px;line-height:1.42857143;border:1px solid transparent;border-radius:4px 4px 0 0}.nav-tabs>li>a:hover{border-color:#eee #eee #ddd}.nav-tabs>li.active>a,.nav-tabs>li.active>a:focus,.nav-tabs>li.active>a:hover{color:#555;cursor:default;background-color:#fff;border:1px solid #ddd;border-bottom-color:transparent}.nav-tabs.nav-justified{width:100%;border-bottom:0}.nav-tabs.nav-justified>li{float:none}.nav-tabs.nav-justified>li>a{margin-bottom:5px;text-align:center}.nav-tabs.nav-justified>.dropdown .dropdown-menu{top:auto;left:auto}@media (min-width:768px){.nav-tabs.nav-justified>li{display:table-cell;width:1%}.nav-tabs.nav-justified>li>a{margin-bottom:0}}.nav-tabs.nav-justified>li>a{margin-right:0;border-radius:4px}.nav-tabs.nav-justified>.active>a,.nav-tabs.nav-justified>.active>a:focus,.nav-tabs.nav-justified>.active>a:hover{border:1px solid #ddd}@media (min-width:768px){.nav-tabs.nav-justified>li>a{border-bottom:1px solid #ddd;border-radius:4px 4px 0 0}.nav-tabs.nav-justified>.active>a,.nav-tabs.nav-justified>.active>a:focus,.nav-tabs.nav-justified>.active>a:hover{border-bottom-color:#fff}}.nav-pills>li{float:left}.nav-pills>li>a{border-radius:4px}.nav-pills>li+li{margin-left:2px}.nav-pills>li.active>a,.nav-pills>li.active>a:focus,.nav-pills>li.active>a:hover{color:#fff;background-color:#337ab7}.nav-stacked>li{float:none}.nav-stacked>li+li{margin-top:2px;margin-left:0}.nav-justified{width:100%}.nav-justified>li{float:none}.nav-justified>li>a{margin-bottom:5px;text-align:center}.nav-justified>.dropdown .dropdown-menu{top:auto;left:auto}@media (min-width:768px){.nav-justified>li{display:table-cell;width:1%}.nav-justified>li>a{margin-bottom:0}}.nav-tabs-justified{border-bottom:0}.nav-tabs-justified>li>a{margin-right:0;border-radius:4px}.nav-tabs-justified>.active>a,.nav-tabs-justified>.active>a:focus,.nav-tabs-justified>.active>a:hover{border:1px solid #ddd}@media (min-width:768px){.nav-tabs-justified>li>a{border-bottom:1px solid #ddd;border-radius:4px 4px 0 0}.nav-tabs-justified>.active>a,.nav-tabs-justified>.active>a:focus,.nav-tabs-justified>.active>a:hover{border-bottom-color:#fff}}.tab-content>.tab-pane{display:none}.tab-content>.active{display:block}.nav-tabs .dropdown-menu{margin-top:-1px;border-top-left-radius:0;border-top-right-radius:0}.navbar{position:relative;min-height:50px;margin-bottom:20px;border:1px solid transparent}@media (min-width:768px){.navbar{border-radius:4px}}@media (min-width:768px){.navbar-header{float:left}}.navbar-collapse{padding-right:15px;padding-left:15px;overflow-x:visible;-webkit-overflow-scrolling:touch;border-top:1px solid transparent;-webkit-box-shadow:inset 0 1px 0 rgba(255,255,255,.1);box-shadow:inset 0 1px 0 rgba(255,255,255,.1)}.navbar-collapse.in{overflow-y:auto}@media (min-width:768px){.navbar-collapse{width:auto;border-top:0;-webkit-box-shadow:none;box-shadow:none}.navbar-collapse.collapse{display:block!important;height:auto!important;padding-bottom:0;overflow:visible!important}.navbar-collapse.in{overflow-y:visible}.navbar-fixed-bottom .navbar-collapse,.navbar-fixed-top .navbar-collapse,.navbar-static-top .navbar-collapse{padding-right:0;padding-left:0}}.navbar-fixed-bottom .navbar-collapse,.navbar-fixed-top .navbar-collapse{max-height:340px}@media (max-device-width:480px) and (orientation:landscape){.navbar-fixed-bottom .navbar-collapse,.navbar-fixed-top .navbar-collapse{max-height:200px}}.container-fluid>.navbar-collapse,.container-fluid>.navbar-header,.container>.navbar-collapse,.container>.navbar-header{margin-right:-15px;margin-left:-15px}@media (min-width:768px){.container-fluid>.navbar-collapse,.container-fluid>.navbar-header,.container>.navbar-collapse,.container>.navbar-header{margin-right:0;margin-left:0}}.navbar-static-top{z-index:1000;border-width:0 0 1px}@media (min-width:768px){.navbar-static-top{border-radius:0}}.navbar-fixed-bottom,.navbar-fixed-top{position:fixed;right:0;left:0;z-index:1030}@media (min-width:768px){.navbar-fixed-bottom,.navbar-fixed-top{border-radius:0}}.navbar-fixed-top{top:0;border-width:0 0 1px}.navbar-fixed-bottom{bottom:0;margin-bottom:0;border-width:1px 0 0}.navbar-brand{float:left;height:50px;padding:15px 15px;font-size:18px;line-height:20px}.navbar-brand:focus,.navbar-brand:hover{text-decoration:none}.navbar-brand>img{display:block}@media (min-width:768px){.navbar>.container .navbar-brand,.navbar>.container-fluid .navbar-brand{margin-left:-15px}}.navbar-toggle{position:relative;float:right;padding:9px 10px;margin-top:8px;margin-right:15px;margin-bottom:8px;background-color:transparent;background-image:none;border:1px solid transparent;border-radius:4px}.navbar-toggle:focus{outline:0}.navbar-toggle .icon-bar{display:block;width:22px;height:2px;border-radius:1px}.navbar-toggle .icon-bar+.icon-bar{margin-top:4px}@media (min-width:768px){.navbar-toggle{display:none}}.navbar-nav{margin:7.5px -15px}.navbar-nav>li>a{padding-top:10px;padding-bottom:10px;line-height:20px}@media (max-width:767px){.navbar-nav .open .dropdown-menu{position:static;float:none;width:auto;margin-top:0;background-color:transparent;border:0;-webkit-box-shadow:none;box-shadow:none}.navbar-nav .open .dropdown-menu .dropdown-header,.navbar-nav .open .dropdown-menu>li>a{padding:5px 15px 5px 25px}.navbar-nav .open .dropdown-menu>li>a{line-height:20px}.navbar-nav .open .dropdown-menu>li>a:focus,.navbar-nav .open .dropdown-menu>li>a:hover{background-image:none}}@media (min-width:768px){.navbar-nav{float:left;margin:0}.navbar-nav>li{float:left}.navbar-nav>li>a{padding-top:15px;padding-bottom:15px}}.navbar-form{padding:10px 15px;margin-top:8px;margin-right:-15px;margin-bottom:8px;margin-left:-15px;border-top:1px solid transparent;border-bottom:1px solid transparent;-webkit-box-shadow:inset 0 1px 0 rgba(255,255,255,.1),0 1px 0 rgba(255,255,255,.1);box-shadow:inset 0 1px 0 rgba(255,255,255,.1),0 1px 0 rgba(255,255,255,.1)}@media (min-width:768px){.navbar-form .form-group{display:inline-block;margin-bottom:0;vertical-align:middle}.navbar-form .form-control{display:inline-block;width:auto;vertical-align:middle}.navbar-form .form-control-static{display:inline-block}.navbar-form .input-group{display:inline-table;vertical-align:middle}.navbar-form .input-group .form-control,.navbar-form .input-group .input-group-addon,.navbar-form .input-group .input-group-btn{width:auto}.navbar-form .input-group>.form-control{width:100%}.navbar-form .control-label{margin-bottom:0;vertical-align:middle}.navbar-form .checkbox,.navbar-form .radio{display:inline-block;margin-top:0;margin-bottom:0;vertical-align:middle}.navbar-form .checkbox label,.navbar-form .radio label{padding-left:0}.navbar-form .checkbox input[type=checkbox],.navbar-form .radio input[type=radio]{position:relative;margin-left:0}.navbar-form .has-feedback .form-control-feedback{top:0}}@media (max-width:767px){.navbar-form .form-group{margin-bottom:5px}.navbar-form .form-group:last-child{margin-bottom:0}}@media (min-width:768px){.navbar-form{width:auto;padding-top:0;padding-bottom:0;margin-right:0;margin-left:0;border:0;-webkit-box-shadow:none;box-shadow:none}}.navbar-nav>li>.dropdown-menu{margin-top:0;border-top-left-radius:0;border-top-right-radius:0}.navbar-fixed-bottom .navbar-nav>li>.dropdown-menu{margin-bottom:0;border-top-left-radius:4px;border-top-right-radius:4px;border-bottom-right-radius:0;border-bottom-left-radius:0}.navbar-btn{margin-top:8px;margin-bottom:8px}.navbar-btn.btn-sm{margin-top:10px;margin-bottom:10px}.navbar-btn.btn-xs{margin-top:14px;margin-bottom:14px}.navbar-text{margin-top:15px;margin-bottom:15px}@media (min-width:768px){.navbar-text{float:left;margin-right:15px;margin-left:15px}}@media (min-width:768px){.navbar-left{float:left!important}.navbar-right{float:right!important;margin-right:-15px}.navbar-right~.navbar-right{margin-right:0}}.navbar-default{background-color:#f8f8f8;border-color:#e7e7e7}.navbar-default .navbar-brand{color:#777}.navbar-default .navbar-brand:focus,.navbar-default .navbar-brand:hover{color:#5e5e5e;background-color:transparent}.navbar-default .navbar-text{color:#777}.navbar-default .navbar-nav>li>a{color:#777}.navbar-default .navbar-nav>li>a:focus,.navbar-default .navbar-nav>li>a:hover{color:#333;background-color:transparent}.navbar-default .navbar-nav>.active>a,.navbar-default .navbar-nav>.active>a:focus,.navbar-default .navbar-nav>.active>a:hover{color:#555;background-color:#e7e7e7}.navbar-default .navbar-nav>.disabled>a,.navbar-default .navbar-nav>.disabled>a:focus,.navbar-default .navbar-nav>.disabled>a:hover{color:#ccc;background-color:transparent}.navbar-default .navbar-toggle{border-color:#ddd}.navbar-default .navbar-toggle:focus,.navbar-default .navbar-toggle:hover{background-color:#ddd}.navbar-default .navbar-toggle .icon-bar{background-color:#888}.navbar-default .navbar-collapse,.navbar-default .navbar-form{border-color:#e7e7e7}.navbar-default .navbar-nav>.open>a,.navbar-default .navbar-nav>.open>a:focus,.navbar-default .navbar-nav>.open>a:hover{color:#555;background-color:#e7e7e7}@media (max-width:767px){.navbar-default .navbar-nav .open .dropdown-menu>li>a{color:#777}.navbar-default .navbar-nav .open .dropdown-menu>li>a:focus,.navbar-default .navbar-nav .open .dropdown-menu>li>a:hover{color:#333;background-color:transparent}.navbar-default .navbar-nav .open .dropdown-menu>.active>a,.navbar-default .navbar-nav .open .dropdown-menu>.active>a:focus,.navbar-default .navbar-nav .open .dropdown-menu>.active>a:hover{color:#555;background-color:#e7e7e7}.navbar-default .navbar-nav .open .dropdown-menu>.disabled>a,.navbar-default .navbar-nav .open .dropdown-menu>.disabled>a:focus,.navbar-default .navbar-nav .open .dropdown-menu>.disabled>a:hover{color:#ccc;background-color:transparent}}.navbar-default .navbar-link{color:#777}.navbar-default .navbar-link:hover{color:#333}.navbar-default .btn-link{color:#777}.navbar-default .btn-link:focus,.navbar-default .btn-link:hover{color:#333}.navbar-default .btn-link[disabled]:focus,.navbar-default .btn-link[disabled]:hover,fieldset[disabled] .navbar-default .btn-link:focus,fieldset[disabled] .navbar-default .btn-link:hover{color:#ccc}.navbar-inverse{background-color:#222;border-color:#080808}.navbar-inverse .navbar-brand{color:#9d9d9d}.navbar-inverse .navbar-brand:focus,.navbar-inverse .navbar-brand:hover{color:#fff;background-color:transparent}.navbar-inverse .navbar-text{color:#9d9d9d}.navbar-inverse .navbar-nav>li>a{color:#9d9d9d}.navbar-inverse .navbar-nav>li>a:focus,.navbar-inverse .navbar-nav>li>a:hover{color:#fff;background-color:transparent}.navbar-inverse .navbar-nav>.active>a,.navbar-inverse .navbar-nav>.active>a:focus,.navbar-inverse .navbar-nav>.active>a:hover{color:#fff;background-color:#080808}.navbar-inverse .navbar-nav>.disabled>a,.navbar-inverse .navbar-nav>.disabled>a:focus,.navbar-inverse .navbar-nav>.disabled>a:hover{color:#444;background-color:transparent}.navbar-inverse .navbar-toggle{border-color:#333}.navbar-inverse .navbar-toggle:focus,.navbar-inverse .navbar-toggle:hover{background-color:#333}.navbar-inverse .navbar-toggle .icon-bar{background-color:#fff}.navbar-inverse .navbar-collapse,.navbar-inverse .navbar-form{border-color:#101010}.navbar-inverse .navbar-nav>.open>a,.navbar-inverse .navbar-nav>.open>a:focus,.navbar-inverse .navbar-nav>.open>a:hover{color:#fff;background-color:#080808}@media (max-width:767px){.navbar-inverse .navbar-nav .open .dropdown-menu>.dropdown-header{border-color:#080808}.navbar-inverse .navbar-nav .open .dropdown-menu .divider{background-color:#080808}.navbar-inverse .navbar-nav .open .dropdown-menu>li>a{color:#9d9d9d}.navbar-inverse .navbar-nav .open .dropdown-menu>li>a:focus,.navbar-inverse .navbar-nav .open .dropdown-menu>li>a:hover{color:#fff;background-color:transparent}.navbar-inverse .navbar-nav .open .dropdown-menu>.active>a,.navbar-inverse .navbar-nav .open .dropdown-menu>.active>a:focus,.navbar-inverse .navbar-nav .open .dropdown-menu>.active>a:hover{color:#fff;background-color:#080808}.navbar-inverse .navbar-nav .open .dropdown-menu>.disabled>a,.navbar-inverse .navbar-nav .open .dropdown-menu>.disabled>a:focus,.navbar-inverse .navbar-nav .open .dropdown-menu>.disabled>a:hover{color:#444;background-color:transparent}}.navbar-inverse .navbar-link{color:#9d9d9d}.navbar-inverse .navbar-link:hover{color:#fff}.navbar-inverse .btn-link{color:#9d9d9d}.navbar-inverse .btn-link:focus,.navbar-inverse .btn-link:hover{color:#fff}.navbar-inverse .btn-link[disabled]:focus,.navbar-inverse .btn-link[disabled]:hover,fieldset[disabled] .navbar-inverse .btn-link:focus,fieldset[disabled] .navbar-inverse .btn-link:hover{color:#444}.breadcrumb{padding:8px 15px;margin-bottom:20px;list-style:none;background-color:#f5f5f5;border-radius:4px}.breadcrumb>li{display:inline-block}.breadcrumb>li+li:before{padding:0 5px;color:#ccc;content:"/\00a0"}.breadcrumb>.active{color:#777}.pagination{display:inline-block;padding-left:0;margin:20px 0;border-radius:4px}.pagination>li{display:inline}.pagination>li>a,.pagination>li>span{position:relative;float:left;padding:6px 12px;margin-left:-1px;line-height:1.42857143;color:#337ab7;text-decoration:none;background-color:#fff;border:1px solid #ddd}.pagination>li:first-child>a,.pagination>li:first-child>span{margin-left:0;border-top-left-radius:4px;border-bottom-left-radius:4px}.pagination>li:last-child>a,.pagination>li:last-child>span{border-top-right-radius:4px;border-bottom-right-radius:4px}.pagination>li>a:focus,.pagination>li>a:hover,.pagination>li>span:focus,.pagination>li>span:hover{z-index:2;color:#23527c;background-color:#eee;border-color:#ddd}.pagination>.active>a,.pagination>.active>a:focus,.pagination>.active>a:hover,.pagination>.active>span,.pagination>.active>span:focus,.pagination>.active>span:hover{z-index:3;color:#fff;cursor:default;background-color:#337ab7;border-color:#337ab7}.pagination>.disabled>a,.pagination>.disabled>a:focus,.pagination>.disabled>a:hover,.pagination>.disabled>span,.pagination>.disabled>span:focus,.pagination>.disabled>span:hover{color:#777;cursor:not-allowed;background-color:#fff;border-color:#ddd}.pagination-lg>li>a,.pagination-lg>li>span{padding:10px 16px;font-size:18px;line-height:1.3333333}.pagination-lg>li:first-child>a,.pagination-lg>li:first-child>span{border-top-left-radius:6px;border-bottom-left-radius:6px}.pagination-lg>li:last-child>a,.pagination-lg>li:last-child>span{border-top-right-radius:6px;border-bottom-right-radius:6px}.pagination-sm>li>a,.pagination-sm>li>span{padding:5px 10px;font-size:12px;line-height:1.5}.pagination-sm>li:first-child>a,.pagination-sm>li:first-child>span{border-top-left-radius:3px;border-bottom-left-radius:3px}.pagination-sm>li:last-child>a,.pagination-sm>li:last-child>span{border-top-right-radius:3px;border-bottom-right-radius:3px}.pager{padding-left:0;margin:20px 0;text-align:center;list-style:none}.pager li{display:inline}.pager li>a,.pager li>span{display:inline-block;padding:5px 14px;background-color:#fff;border:1px solid #ddd;border-radius:15px}.pager li>a:focus,.pager li>a:hover{text-decoration:none;background-color:#eee}.pager .next>a,.pager .next>span{float:right}.pager .previous>a,.pager .previous>span{float:left}.pager .disabled>a,.pager .disabled>a:focus,.pager .disabled>a:hover,.pager .disabled>span{color:#777;cursor:not-allowed;background-color:#fff}.label{display:inline;padding:.2em .6em .3em;font-size:75%;font-weight:700;line-height:1;color:#fff;text-align:center;white-space:nowrap;vertical-align:baseline;border-radius:.25em}a.label:focus,a.label:hover{color:#fff;text-decoration:none;cursor:pointer}.label:empty{display:none}.btn .label{position:relative;top:-1px}.label-default{background-color:#777}.label-default[href]:focus,.label-default[href]:hover{background-color:#5e5e5e}.label-primary{background-color:#337ab7}.label-primary[href]:focus,.label-primary[href]:hover{background-color:#286090}.label-success{background-color:#5cb85c}.label-success[href]:focus,.label-success[href]:hover{background-color:#449d44}.label-info{background-color:#5bc0de}.label-info[href]:focus,.label-info[href]:hover{background-color:#31b0d5}.label-warning{background-color:#f0ad4e}.label-warning[href]:focus,.label-warning[href]:hover{background-color:#ec971f}.label-danger{background-color:#d9534f}.label-danger[href]:focus,.label-danger[href]:hover{background-color:#c9302c}.badge{display:inline-block;min-width:10px;padding:3px 7px;font-size:12px;font-weight:700;line-height:1;color:#fff;text-align:center;white-space:nowrap;vertical-align:middle;background-color:#777;border-radius:10px}.badge:empty{display:none}.btn .badge{position:relative;top:-1px}.btn-group-xs>.btn .badge,.btn-xs .badge{top:0;padding:1px 5px}a.badge:focus,a.badge:hover{color:#fff;text-decoration:none;cursor:pointer}.list-group-item.active>.badge,.nav-pills>.active>a>.badge{color:#337ab7;background-color:#fff}.list-group-item>.badge{float:right}.list-group-item>.badge+.badge{margin-right:5px}.nav-pills>li>a>.badge{margin-left:3px}.jumbotron{padding-top:30px;padding-bottom:30px;margin-bottom:30px;color:inherit;background-color:#eee}.jumbotron .h1,.jumbotron h1{color:inherit}.jumbotron p{margin-bottom:15px;font-size:21px;font-weight:200}.jumbotron>hr{border-top-color:#d5d5d5}.container .jumbotron,.container-fluid .jumbotron{padding-right:15px;padding-left:15px;border-radius:6px}.jumbotron .container{max-width:100%}@media screen and (min-width:768px){.jumbotron{padding-top:48px;padding-bottom:48px}.container .jumbotron,.container-fluid .jumbotron{padding-right:60px;padding-left:60px}.jumbotron .h1,.jumbotron h1{font-size:63px}}.thumbnail{display:block;padding:4px;margin-bottom:20px;line-height:1.42857143;background-color:#fff;border:1px solid #ddd;border-radius:4px;-webkit-transition:border .2s ease-in-out;-o-transition:border .2s ease-in-out;transition:border .2s ease-in-out}.thumbnail a>img,.thumbnail>img{margin-right:auto;margin-left:auto}a.thumbnail.active,a.thumbnail:focus,a.thumbnail:hover{border-color:#337ab7}.thumbnail .caption{padding:9px;color:#333}.alert{padding:15px;margin-bottom:20px;border:1px solid transparent;border-radius:4px}.alert h4{margin-top:0;color:inherit}.alert .alert-link{font-weight:700}.alert>p,.alert>ul{margin-bottom:0}.alert>p+p{margin-top:5px}.alert-dismissable,.alert-dismissible{padding-right:35px}.alert-dismissable .close,.alert-dismissible .close{position:relative;top:-2px;right:-21px;color:inherit}.alert-success{color:#3c763d;background-color:#dff0d8;border-color:#d6e9c6}.alert-success hr{border-top-color:#c9e2b3}.alert-success .alert-link{color:#2b542c}.alert-info{color:#31708f;background-color:#d9edf7;border-color:#bce8f1}.alert-info hr{border-top-color:#a6e1ec}.alert-info .alert-link{color:#245269}.alert-warning{color:#8a6d3b;background-color:#fcf8e3;border-color:#faebcc}.alert-warning hr{border-top-color:#f7e1b5}.alert-warning .alert-link{color:#66512c}.alert-danger{color:#a94442;background-color:#f2dede;border-color:#ebccd1}.alert-danger hr{border-top-color:#e4b9c0}.alert-danger .alert-link{color:#843534}@-webkit-keyframes progress-bar-stripes{from{background-position:40px 0}to{background-position:0 0}}@-o-keyframes progress-bar-stripes{from{background-position:40px 0}to{background-position:0 0}}@keyframes progress-bar-stripes{from{background-position:40px 0}to{background-position:0 0}}.progress{height:20px;margin-bottom:20px;overflow:hidden;background-color:#f5f5f5;border-radius:4px;-webkit-box-shadow:inset 0 1px 2px rgba(0,0,0,.1);box-shadow:inset 0 1px 2px rgba(0,0,0,.1)}.progress-bar{float:left;width:0;height:100%;font-size:12px;line-height:20px;color:#fff;text-align:center;background-color:#337ab7;-webkit-box-shadow:inset 0 -1px 0 rgba(0,0,0,.15);box-shadow:inset 0 -1px 0 rgba(0,0,0,.15);-webkit-transition:width .6s ease;-o-transition:width .6s ease;transition:width .6s ease}.progress-bar-striped,.progress-striped .progress-bar{background-image:-webkit-linear-gradient(45deg,rgba(255,255,255,.15) 25%,transparent 25%,transparent 50%,rgba(255,255,255,.15) 50%,rgba(255,255,255,.15) 75%,transparent 75%,transparent);background-image:-o-linear-gradient(45deg,rgba(255,255,255,.15) 25%,transparent 25%,transparent 50%,rgba(255,255,255,.15) 50%,rgba(255,255,255,.15) 75%,transparent 75%,transparent);background-image:linear-gradient(45deg,rgba(255,255,255,.15) 25%,transparent 25%,transparent 50%,rgba(255,255,255,.15) 50%,rgba(255,255,255,.15) 75%,transparent 75%,transparent);-webkit-background-size:40px 40px;background-size:40px 40px}.progress-bar.active,.progress.active .progress-bar{-webkit-animation:progress-bar-stripes 2s linear infinite;-o-animation:progress-bar-stripes 2s linear infinite;animation:progress-bar-stripes 2s linear infinite}.progress-bar-success{background-color:#5cb85c}.progress-striped .progress-bar-success{background-image:-webkit-linear-gradient(45deg,rgba(255,255,255,.15) 25%,transparent 25%,transparent 50%,rgba(255,255,255,.15) 50%,rgba(255,255,255,.15) 75%,transparent 75%,transparent);background-image:-o-linear-gradient(45deg,rgba(255,255,255,.15) 25%,transparent 25%,transparent 50%,rgba(255,255,255,.15) 50%,rgba(255,255,255,.15) 75%,transparent 75%,transparent);background-image:linear-gradient(45deg,rgba(255,255,255,.15) 25%,transparent 25%,transparent 50%,rgba(255,255,255,.15) 50%,rgba(255,255,255,.15) 75%,transparent 75%,transparent)}.progress-bar-info{background-color:#5bc0de}.progress-striped .progress-bar-info{background-image:-webkit-linear-gradient(45deg,rgba(255,255,255,.15) 25%,transparent 25%,transparent 50%,rgba(255,255,255,.15) 50%,rgba(255,255,255,.15) 75%,transparent 75%,transparent);background-image:-o-linear-gradient(45deg,rgba(255,255,255,.15) 25%,transparent 25%,transparent 50%,rgba(255,255,255,.15) 50%,rgba(255,255,255,.15) 75%,transparent 75%,transparent);background-image:linear-gradient(45deg,rgba(255,255,255,.15) 25%,transparent 25%,transparent 50%,rgba(255,255,255,.15) 50%,rgba(255,255,255,.15) 75%,transparent 75%,transparent)}.progress-bar-warning{background-color:#f0ad4e}.progress-striped .progress-bar-warning{background-image:-webkit-linear-gradient(45deg,rgba(255,255,255,.15) 25%,transparent 25%,transparent 50%,rgba(255,255,255,.15) 50%,rgba(255,255,255,.15) 75%,transparent 75%,transparent);background-image:-o-linear-gradient(45deg,rgba(255,255,255,.15) 25%,transparent 25%,transparent 50%,rgba(255,255,255,.15) 50%,rgba(255,255,255,.15) 75%,transparent 75%,transparent);background-image:linear-gradient(45deg,rgba(255,255,255,.15) 25%,transparent 25%,transparent 50%,rgba(255,255,255,.15) 50%,rgba(255,255,255,.15) 75%,transparent 75%,transparent)}.progress-bar-danger{background-color:#d9534f}.progress-striped .progress-bar-danger{background-image:-webkit-linear-gradient(45deg,rgba(255,255,255,.15) 25%,transparent 25%,transparent 50%,rgba(255,255,255,.15) 50%,rgba(255,255,255,.15) 75%,transparent 75%,transparent);background-image:-o-linear-gradient(45deg,rgba(255,255,255,.15) 25%,transparent 25%,transparent 50%,rgba(255,255,255,.15) 50%,rgba(255,255,255,.15) 75%,transparent 75%,transparent);background-image:linear-gradient(45deg,rgba(255,255,255,.15) 25%,transparent 25%,transparent 50%,rgba(255,255,255,.15) 50%,rgba(255,255,255,.15) 75%,transparent 75%,transparent)}.media{margin-top:15px}.media:first-child{margin-top:0}.media,.media-body{overflow:hidden;zoom:1}.media-body{width:10000px}.media-object{display:block}.media-object.img-thumbnail{max-width:none}.media-right,.media>.pull-right{padding-left:10px}.media-left,.media>.pull-left{padding-right:10px}.media-body,.media-left,.media-right{display:table-cell;vertical-align:top}.media-middle{vertical-align:middle}.media-bottom{vertical-align:bottom}.media-heading{margin-top:0;margin-bottom:5px}.media-list{padding-left:0;list-style:none}.list-group{padding-left:0;margin-bottom:20px}.list-group-item{position:relative;display:block;padding:10px 15px;margin-bottom:-1px;background-color:#fff;border:1px solid #ddd}.list-group-item:first-child{border-top-left-radius:4px;border-top-right-radius:4px}.list-group-item:last-child{margin-bottom:0;border-bottom-right-radius:4px;border-bottom-left-radius:4px}a.list-group-item,button.list-group-item{color:#555}a.list-group-item .list-group-item-heading,button.list-group-item .list-group-item-heading{color:#333}a.list-group-item:focus,a.list-group-item:hover,button.list-group-item:focus,button.list-group-item:hover{color:#555;text-decoration:none;background-color:#f5f5f5}button.list-group-item{width:100%;text-align:left}.list-group-item.disabled,.list-group-item.disabled:focus,.list-group-item.disabled:hover{color:#777;cursor:not-allowed;background-color:#eee}.list-group-item.disabled .list-group-item-heading,.list-group-item.disabled:focus .list-group-item-heading,.list-group-item.disabled:hover .list-group-item-heading{color:inherit}.list-group-item.disabled .list-group-item-text,.list-group-item.disabled:focus .list-group-item-text,.list-group-item.disabled:hover .list-group-item-text{color:#777}.list-group-item.active,.list-group-item.active:focus,.list-group-item.active:hover{z-index:2;color:#fff;background-color:#337ab7;border-color:#337ab7}.list-group-item.active .list-group-item-heading,.list-group-item.active .list-group-item-heading>.small,.list-group-item.active .list-group-item-heading>small,.list-group-item.active:focus .list-group-item-heading,.list-group-item.active:focus .list-group-item-heading>.small,.list-group-item.active:focus .list-group-item-heading>small,.list-group-item.active:hover .list-group-item-heading,.list-group-item.active:hover .list-group-item-heading>.small,.list-group-item.active:hover .list-group-item-heading>small{color:inherit}.list-group-item.active .list-group-item-text,.list-group-item.active:focus .list-group-item-text,.list-group-item.active:hover .list-group-item-text{color:#c7ddef}.list-group-item-success{color:#3c763d;background-color:#dff0d8}a.list-group-item-success,button.list-group-item-success{color:#3c763d}a.list-group-item-success .list-group-item-heading,button.list-group-item-success .list-group-item-heading{color:inherit}a.list-group-item-success:focus,a.list-group-item-success:hover,button.list-group-item-success:focus,button.list-group-item-success:hover{color:#3c763d;background-color:#d0e9c6}a.list-group-item-success.active,a.list-group-item-success.active:focus,a.list-group-item-success.active:hover,button.list-group-item-success.active,button.list-group-item-success.active:focus,button.list-group-item-success.active:hover{color:#fff;background-color:#3c763d;border-color:#3c763d}.list-group-item-info{color:#31708f;background-color:#d9edf7}a.list-group-item-info,button.list-group-item-info{color:#31708f}a.list-group-item-info .list-group-item-heading,button.list-group-item-info .list-group-item-heading{color:inherit}a.list-group-item-info:focus,a.list-group-item-info:hover,button.list-group-item-info:focus,button.list-group-item-info:hover{color:#31708f;background-color:#c4e3f3}a.list-group-item-info.active,a.list-group-item-info.active:focus,a.list-group-item-info.active:hover,button.list-group-item-info.active,button.list-group-item-info.active:focus,button.list-group-item-info.active:hover{color:#fff;background-color:#31708f;border-color:#31708f}.list-group-item-warning{color:#8a6d3b;background-color:#fcf8e3}a.list-group-item-warning,button.list-group-item-warning{color:#8a6d3b}a.list-group-item-warning .list-group-item-heading,button.list-group-item-warning .list-group-item-heading{color:inherit}a.list-group-item-warning:focus,a.list-group-item-warning:hover,button.list-group-item-warning:focus,button.list-group-item-warning:hover{color:#8a6d3b;background-color:#faf2cc}a.list-group-item-warning.active,a.list-group-item-warning.active:focus,a.list-group-item-warning.active:hover,button.list-group-item-warning.active,button.list-group-item-warning.active:focus,button.list-group-item-warning.active:hover{color:#fff;background-color:#8a6d3b;border-color:#8a6d3b}.list-group-item-danger{color:#a94442;background-color:#f2dede}a.list-group-item-danger,button.list-group-item-danger{color:#a94442}a.list-group-item-danger .list-group-item-heading,button.list-group-item-danger .list-group-item-heading{color:inherit}a.list-group-item-danger:focus,a.list-group-item-danger:hover,button.list-group-item-danger:focus,button.list-group-item-danger:hover{color:#a94442;background-color:#ebcccc}a.list-group-item-danger.active,a.list-group-item-danger.active:focus,a.list-group-item-danger.active:hover,button.list-group-item-danger.active,button.list-group-item-danger.active:focus,button.list-group-item-danger.active:hover{color:#fff;background-color:#a94442;border-color:#a94442}.list-group-item-heading{margin-top:0;margin-bottom:5px}.list-group-item-text{margin-bottom:0;line-height:1.3}.panel{margin-bottom:20px;background-color:#fff;border:1px solid transparent;border-radius:4px;-webkit-box-shadow:0 1px 1px rgba(0,0,0,.05);box-shadow:0 1px 1px rgba(0,0,0,.05)}.panel-body{padding:15px}.panel-heading{padding:10px 15px;border-bottom:1px solid transparent;border-top-left-radius:3px;border-top-right-radius:3px}.panel-heading>.dropdown .dropdown-toggle{color:inherit}.panel-title{margin-top:0;margin-bottom:0;font-size:16px;color:inherit}.panel-title>.small,.panel-title>.small>a,.panel-title>a,.panel-title>small,.panel-title>small>a{color:inherit}.panel-footer{padding:10px 15px;background-color:#f5f5f5;border-top:1px solid #ddd;border-bottom-right-radius:3px;border-bottom-left-radius:3px}.panel>.list-group,.panel>.panel-collapse>.list-group{margin-bottom:0}.panel>.list-group .list-group-item,.panel>.panel-collapse>.list-group .list-group-item{border-width:1px 0;border-radius:0}.panel>.list-group:first-child .list-group-item:first-child,.panel>.panel-collapse>.list-group:first-child .list-group-item:first-child{border-top:0;border-top-left-radius:3px;border-top-right-radius:3px}.panel>.list-group:last-child .list-group-item:last-child,.panel>.panel-collapse>.list-group:last-child .list-group-item:last-child{border-bottom:0;border-bottom-right-radius:3px;border-bottom-left-radius:3px}.panel>.panel-heading+.panel-collapse>.list-group .list-group-item:first-child{border-top-left-radius:0;border-top-right-radius:0}.panel-heading+.list-group .list-group-item:first-child{border-top-width:0}.list-group+.panel-footer{border-top-width:0}.panel>.panel-collapse>.table,.panel>.table,.panel>.table-responsive>.table{margin-bottom:0}.panel>.panel-collapse>.table caption,.panel>.table caption,.panel>.table-responsive>.table caption{padding-right:15px;padding-left:15px}.panel>.table-responsive:first-child>.table:first-child,.panel>.table:first-child{border-top-left-radius:3px;border-top-right-radius:3px}.panel>.table-responsive:first-child>.table:first-child>tbody:first-child>tr:first-child,.panel>.table-responsive:first-child>.table:first-child>thead:first-child>tr:first-child,.panel>.table:first-child>tbody:first-child>tr:first-child,.panel>.table:first-child>thead:first-child>tr:first-child{border-top-left-radius:3px;border-top-right-radius:3px}.panel>.table-responsive:first-child>.table:first-child>tbody:first-child>tr:first-child td:first-child,.panel>.table-responsive:first-child>.table:first-child>tbody:first-child>tr:first-child th:first-child,.panel>.table-responsive:first-child>.table:first-child>thead:first-child>tr:first-child td:first-child,.panel>.table-responsive:first-child>.table:first-child>thead:first-child>tr:first-child th:first-child,.panel>.table:first-child>tbody:first-child>tr:first-child td:first-child,.panel>.table:first-child>tbody:first-child>tr:first-child th:first-child,.panel>.table:first-child>thead:first-child>tr:first-child td:first-child,.panel>.table:first-child>thead:first-child>tr:first-child th:first-child{border-top-left-radius:3px}.panel>.table-responsive:first-child>.table:first-child>tbody:first-child>tr:first-child td:last-child,.panel>.table-responsive:first-child>.table:first-child>tbody:first-child>tr:first-child th:last-child,.panel>.table-responsive:first-child>.table:first-child>thead:first-child>tr:first-child td:last-child,.panel>.table-responsive:first-child>.table:first-child>thead:first-child>tr:first-child th:last-child,.panel>.table:first-child>tbody:first-child>tr:first-child td:last-child,.panel>.table:first-child>tbody:first-child>tr:first-child th:last-child,.panel>.table:first-child>thead:first-child>tr:first-child td:last-child,.panel>.table:first-child>thead:first-child>tr:first-child th:last-child{border-top-right-radius:3px}.panel>.table-responsive:last-child>.table:last-child,.panel>.table:last-child{border-bottom-right-radius:3px;border-bottom-left-radius:3px}.panel>.table-responsive:last-child>.table:last-child>tbody:last-child>tr:last-child,.panel>.table-responsive:last-child>.table:last-child>tfoot:last-child>tr:last-child,.panel>.table:last-child>tbody:last-child>tr:last-child,.panel>.table:last-child>tfoot:last-child>tr:last-child{border-bottom-right-radius:3px;border-bottom-left-radius:3px}.panel>.table-responsive:last-child>.table:last-child>tbody:last-child>tr:last-child td:first-child,.panel>.table-responsive:last-child>.table:last-child>tbody:last-child>tr:last-child th:first-child,.panel>.table-responsive:last-child>.table:last-child>tfoot:last-child>tr:last-child td:first-child,.panel>.table-responsive:last-child>.table:last-child>tfoot:last-child>tr:last-child th:first-child,.panel>.table:last-child>tbody:last-child>tr:last-child td:first-child,.panel>.table:last-child>tbody:last-child>tr:last-child th:first-child,.panel>.table:last-child>tfoot:last-child>tr:last-child td:first-child,.panel>.table:last-child>tfoot:last-child>tr:last-child th:first-child{border-bottom-left-radius:3px}.panel>.table-responsive:last-child>.table:last-child>tbody:last-child>tr:last-child td:last-child,.panel>.table-responsive:last-child>.table:last-child>tbody:last-child>tr:last-child th:last-child,.panel>.table-responsive:last-child>.table:last-child>tfoot:last-child>tr:last-child td:last-child,.panel>.table-responsive:last-child>.table:last-child>tfoot:last-child>tr:last-child th:last-child,.panel>.table:last-child>tbody:last-child>tr:last-child td:last-child,.panel>.table:last-child>tbody:last-child>tr:last-child th:last-child,.panel>.table:last-child>tfoot:last-child>tr:last-child td:last-child,.panel>.table:last-child>tfoot:last-child>tr:last-child th:last-child{border-bottom-right-radius:3px}.panel>.panel-body+.table,.panel>.panel-body+.table-responsive,.panel>.table+.panel-body,.panel>.table-responsive+.panel-body{border-top:1px solid #ddd}.panel>.table>tbody:first-child>tr:first-child td,.panel>.table>tbody:first-child>tr:first-child th{border-top:0}.panel>.table-bordered,.panel>.table-responsive>.table-bordered{border:0}.panel>.table-bordered>tbody>tr>td:first-child,.panel>.table-bordered>tbody>tr>th:first-child,.panel>.table-bordered>tfoot>tr>td:first-child,.panel>.table-bordered>tfoot>tr>th:first-child,.panel>.table-bordered>thead>tr>td:first-child,.panel>.table-bordered>thead>tr>th:first-child,.panel>.table-responsive>.table-bordered>tbody>tr>td:first-child,.panel>.table-responsive>.table-bordered>tbody>tr>th:first-child,.panel>.table-responsive>.table-bordered>tfoot>tr>td:first-child,.panel>.table-responsive>.table-bordered>tfoot>tr>th:first-child,.panel>.table-responsive>.table-bordered>thead>tr>td:first-child,.panel>.table-responsive>.table-bordered>thead>tr>th:first-child{border-left:0}.panel>.table-bordered>tbody>tr>td:last-child,.panel>.table-bordered>tbody>tr>th:last-child,.panel>.table-bordered>tfoot>tr>td:last-child,.panel>.table-bordered>tfoot>tr>th:last-child,.panel>.table-bordered>thead>tr>td:last-child,.panel>.table-bordered>thead>tr>th:last-child,.panel>.table-responsive>.table-bordered>tbody>tr>td:last-child,.panel>.table-responsive>.table-bordered>tbody>tr>th:last-child,.panel>.table-responsive>.table-bordered>tfoot>tr>td:last-child,.panel>.table-responsive>.table-bordered>tfoot>tr>th:last-child,.panel>.table-responsive>.table-bordered>thead>tr>td:last-child,.panel>.table-responsive>.table-bordered>thead>tr>th:last-child{border-right:0}.panel>.table-bordered>tbody>tr:first-child>td,.panel>.table-bordered>tbody>tr:first-child>th,.panel>.table-bordered>thead>tr:first-child>td,.panel>.table-bordered>thead>tr:first-child>th,.panel>.table-responsive>.table-bordered>tbody>tr:first-child>td,.panel>.table-responsive>.table-bordered>tbody>tr:first-child>th,.panel>.table-responsive>.table-bordered>thead>tr:first-child>td,.panel>.table-responsive>.table-bordered>thead>tr:first-child>th{border-bottom:0}.panel>.table-bordered>tbody>tr:last-child>td,.panel>.table-bordered>tbody>tr:last-child>th,.panel>.table-bordered>tfoot>tr:last-child>td,.panel>.table-bordered>tfoot>tr:last-child>th,.panel>.table-responsive>.table-bordered>tbody>tr:last-child>td,.panel>.table-responsive>.table-bordered>tbody>tr:last-child>th,.panel>.table-responsive>.table-bordered>tfoot>tr:last-child>td,.panel>.table-responsive>.table-bordered>tfoot>tr:last-child>th{border-bottom:0}.panel>.table-responsive{margin-bottom:0;border:0}.panel-group{margin-bottom:20px}.panel-group .panel{margin-bottom:0;border-radius:4px}.panel-group .panel+.panel{margin-top:5px}.panel-group .panel-heading{border-bottom:0}.panel-group .panel-heading+.panel-collapse>.list-group,.panel-group .panel-heading+.panel-collapse>.panel-body{border-top:1px solid #ddd}.panel-group .panel-footer{border-top:0}.panel-group .panel-footer+.panel-collapse .panel-body{border-bottom:1px solid #ddd}.panel-default{border-color:#ddd}.panel-default>.panel-heading{color:#333;background-color:#f5f5f5;border-color:#ddd}.panel-default>.panel-heading+.panel-collapse>.panel-body{border-top-color:#ddd}.panel-default>.panel-heading .badge{color:#f5f5f5;background-color:#333}.panel-default>.panel-footer+.panel-collapse>.panel-body{border-bottom-color:#ddd}.panel-primary{border-color:#337ab7}.panel-primary>.panel-heading{color:#fff;background-color:#337ab7;border-color:#337ab7}.panel-primary>.panel-heading+.panel-collapse>.panel-body{border-top-color:#337ab7}.panel-primary>.panel-heading .badge{color:#337ab7;background-color:#fff}.panel-primary>.panel-footer+.panel-collapse>.panel-body{border-bottom-color:#337ab7}.panel-success{border-color:#d6e9c6}.panel-success>.panel-heading{color:#3c763d;background-color:#dff0d8;border-color:#d6e9c6}.panel-success>.panel-heading+.panel-collapse>.panel-body{border-top-color:#d6e9c6}.panel-success>.panel-heading .badge{color:#dff0d8;background-color:#3c763d}.panel-success>.panel-footer+.panel-collapse>.panel-body{border-bottom-color:#d6e9c6}.panel-info{border-color:#bce8f1}.panel-info>.panel-heading{color:#31708f;background-color:#d9edf7;border-color:#bce8f1}.panel-info>.panel-heading+.panel-collapse>.panel-body{border-top-color:#bce8f1}.panel-info>.panel-heading .badge{color:#d9edf7;background-color:#31708f}.panel-info>.panel-footer+.panel-collapse>.panel-body{border-bottom-color:#bce8f1}.panel-warning{border-color:#faebcc}.panel-warning>.panel-heading{color:#8a6d3b;background-color:#fcf8e3;border-color:#faebcc}.panel-warning>.panel-heading+.panel-collapse>.panel-body{border-top-color:#faebcc}.panel-warning>.panel-heading .badge{color:#fcf8e3;background-color:#8a6d3b}.panel-warning>.panel-footer+.panel-collapse>.panel-body{border-bottom-color:#faebcc}.panel-danger{border-color:#ebccd1}.panel-danger>.panel-heading{color:#a94442;background-color:#f2dede;border-color:#ebccd1}.panel-danger>.panel-heading+.panel-collapse>.panel-body{border-top-color:#ebccd1}.panel-danger>.panel-heading .badge{color:#f2dede;background-color:#a94442}.panel-danger>.panel-footer+.panel-collapse>.panel-body{border-bottom-color:#ebccd1}.embed-responsive{position:relative;display:block;height:0;padding:0;overflow:hidden}.embed-responsive .embed-responsive-item,.embed-responsive embed,.embed-responsive iframe,.embed-responsive object,.embed-responsive video{position:absolute;top:0;bottom:0;left:0;width:100%;height:100%;border:0}.embed-responsive-16by9{padding-bottom:56.25%}.embed-responsive-4by3{padding-bottom:75%}.well{min-height:20px;padding:19px;margin-bottom:20px;background-color:#f5f5f5;border:1px solid #e3e3e3;border-radius:4px;-webkit-box-shadow:inset 0 1px 1px rgba(0,0,0,.05);box-shadow:inset 0 1px 1px rgba(0,0,0,.05)}.well blockquote{border-color:#ddd;border-color:rgba(0,0,0,.15)}.well-lg{padding:24px;border-radius:6px}.well-sm{padding:9px;border-radius:3px}.close{float:right;font-size:21px;font-weight:700;line-height:1;color:#000;text-shadow:0 1px 0 #fff;filter:alpha(opacity=20);opacity:.2}.close:focus,.close:hover{color:#000;text-decoration:none;cursor:pointer;filter:alpha(opacity=50);opacity:.5}button.close{-webkit-appearance:none;padding:0;cursor:pointer;background:0 0;border:0}.modal-open{overflow:hidden}.modal{position:fixed;top:0;right:0;bottom:0;left:0;z-index:1050;display:none;overflow:hidden;-webkit-overflow-scrolling:touch;outline:0}.modal.fade .modal-dialog{-webkit-transition:-webkit-transform .3s ease-out;-o-transition:-o-transform .3s ease-out;transition:transform .3s ease-out;-webkit-transform:translate(0,-25%);-ms-transform:translate(0,-25%);-o-transform:translate(0,-25%);transform:translate(0,-25%)}.modal.in .modal-dialog{-webkit-transform:translate(0,0);-ms-transform:translate(0,0);-o-transform:translate(0,0);transform:translate(0,0)}.modal-open .modal{overflow-x:hidden;overflow-y:auto}.modal-dialog{position:relative;width:auto;margin:10px}.modal-content{position:relative;background-color:#fff;-webkit-background-clip:padding-box;background-clip:padding-box;border:1px solid #999;border:1px solid rgba(0,0,0,.2);border-radius:6px;outline:0;-webkit-box-shadow:0 3px 9px rgba(0,0,0,.5);box-shadow:0 3px 9px rgba(0,0,0,.5)}.modal-backdrop{position:fixed;top:0;right:0;bottom:0;left:0;z-index:1040;background-color:#000}.modal-backdrop.fade{filter:alpha(opacity=0);opacity:0}.modal-backdrop.in{filter:alpha(opacity=50);opacity:.5}.modal-header{padding:15px;border-bottom:1px solid #e5e5e5}.modal-header .close{margin-top:-2px}.modal-title{margin:0;line-height:1.42857143}.modal-body{position:relative;padding:15px}.modal-footer{padding:15px;text-align:right;border-top:1px solid #e5e5e5}.modal-footer .btn+.btn{margin-bottom:0;margin-left:5px}.modal-footer .btn-group .btn+.btn{margin-left:-1px}.modal-footer .btn-block+.btn-block{margin-left:0}.modal-scrollbar-measure{position:absolute;top:-9999px;width:50px;height:50px;overflow:scroll}@media (min-width:768px){.modal-dialog{width:600px;margin:30px auto}.modal-content{-webkit-box-shadow:0 5px 15px rgba(0,0,0,.5);box-shadow:0 5px 15px rgba(0,0,0,.5)}.modal-sm{width:300px}}@media (min-width:992px){.modal-lg{width:900px}}.tooltip{position:absolute;z-index:1070;display:block;font-family:"Helvetica Neue",Helvetica,Arial,sans-serif;font-size:12px;font-style:normal;font-weight:400;line-height:1.42857143;text-align:left;text-align:start;text-decoration:none;text-shadow:none;text-transform:none;letter-spacing:normal;word-break:normal;word-spacing:normal;word-wrap:normal;white-space:normal;filter:alpha(opacity=0);opacity:0;line-break:auto}.tooltip.in{filter:alpha(opacity=90);opacity:.9}.tooltip.top{padding:5px 0;margin-top:-3px}.tooltip.right{padding:0 5px;margin-left:3px}.tooltip.bottom{padding:5px 0;margin-top:3px}.tooltip.left{padding:0 5px;margin-left:-3px}.tooltip-inner{max-width:200px;padding:3px 8px;color:#fff;text-align:center;background-color:#000;border-radius:4px}.tooltip-arrow{position:absolute;width:0;height:0;border-color:transparent;border-style:solid}.tooltip.top .tooltip-arrow{bottom:0;left:50%;margin-left:-5px;border-width:5px 5px 0;border-top-color:#000}.tooltip.top-left .tooltip-arrow{right:5px;bottom:0;margin-bottom:-5px;border-width:5px 5px 0;border-top-color:#000}.tooltip.top-right .tooltip-arrow{bottom:0;left:5px;margin-bottom:-5px;border-width:5px 5px 0;border-top-color:#000}.tooltip.right .tooltip-arrow{top:50%;left:0;margin-top:-5px;border-width:5px 5px 5px 0;border-right-color:#000}.tooltip.left .tooltip-arrow{top:50%;right:0;margin-top:-5px;border-width:5px 0 5px 5px;border-left-color:#000}.tooltip.bottom .tooltip-arrow{top:0;left:50%;margin-left:-5px;border-width:0 5px 5px;border-bottom-color:#000}.tooltip.bottom-left .tooltip-arrow{top:0;right:5px;margin-top:-5px;border-width:0 5px 5px;border-bottom-color:#000}.tooltip.bottom-right .tooltip-arrow{top:0;left:5px;margin-top:-5px;border-width:0 5px 5px;border-bottom-color:#000}.popover{position:absolute;top:0;left:0;z-index:1060;display:none;max-width:276px;padding:1px;font-family:"Helvetica Neue",Helvetica,Arial,sans-serif;font-size:14px;font-style:normal;font-weight:400;line-height:1.42857143;text-align:left;text-align:start;text-decoration:none;text-shadow:none;text-transform:none;letter-spacing:normal;word-break:normal;word-spacing:normal;word-wrap:normal;white-space:normal;background-color:#fff;-webkit-background-clip:padding-box;background-clip:padding-box;border:1px solid #ccc;border:1px solid rgba(0,0,0,.2);border-radius:6px;-webkit-box-shadow:0 5px 10px rgba(0,0,0,.2);box-shadow:0 5px 10px rgba(0,0,0,.2);line-break:auto}.popover.top{margin-top:-10px}.popover.right{margin-left:10px}.popover.bottom{margin-top:10px}.popover.left{margin-left:-10px}.popover-title{padding:8px 14px;margin:0;font-size:14px;background-color:#f7f7f7;border-bottom:1px solid #ebebeb;border-radius:5px 5px 0 0}.popover-content{padding:9px 14px}.popover>.arrow,.popover>.arrow:after{position:absolute;display:block;width:0;height:0;border-color:transparent;border-style:solid}.popover>.arrow{border-width:11px}.popover>.arrow:after{content:"";border-width:10px}.popover.top>.arrow{bottom:-11px;left:50%;margin-left:-11px;border-top-color:#999;border-top-color:rgba(0,0,0,.25);border-bottom-width:0}.popover.top>.arrow:after{bottom:1px;margin-left:-10px;content:" ";border-top-color:#fff;border-bottom-width:0}.popover.right>.arrow{top:50%;left:-11px;margin-top:-11px;border-right-color:#999;border-right-color:rgba(0,0,0,.25);border-left-width:0}.popover.right>.arrow:after{bottom:-10px;left:1px;content:" ";border-right-color:#fff;border-left-width:0}.popover.bottom>.arrow{top:-11px;left:50%;margin-left:-11px;border-top-width:0;border-bottom-color:#999;border-bottom-color:rgba(0,0,0,.25)}.popover.bottom>.arrow:after{top:1px;margin-left:-10px;content:" ";border-top-width:0;border-bottom-color:#fff}.popover.left>.arrow{top:50%;right:-11px;margin-top:-11px;border-right-width:0;border-left-color:#999;border-left-color:rgba(0,0,0,.25)}.popover.left>.arrow:after{right:1px;bottom:-10px;content:" ";border-right-width:0;border-left-color:#fff}.carousel{position:relative}.carousel-inner{position:relative;width:100%;overflow:hidden}.carousel-inner>.item{position:relative;display:none;-webkit-transition:.6s ease-in-out left;-o-transition:.6s ease-in-out left;transition:.6s ease-in-out left}.carousel-inner>.item>a>img,.carousel-inner>.item>img{line-height:1}@media all and (transform-3d),(-webkit-transform-3d){.carousel-inner>.item{-webkit-transition:-webkit-transform .6s ease-in-out;-o-transition:-o-transform .6s ease-in-out;transition:transform .6s ease-in-out;-webkit-backface-visibility:hidden;backface-visibility:hidden;-webkit-perspective:1000px;perspective:1000px}.carousel-inner>.item.active.right,.carousel-inner>.item.next{left:0;-webkit-transform:translate3d(100%,0,0);transform:translate3d(100%,0,0)}.carousel-inner>.item.active.left,.carousel-inner>.item.prev{left:0;-webkit-transform:translate3d(-100%,0,0);transform:translate3d(-100%,0,0)}.carousel-inner>.item.active,.carousel-inner>.item.next.left,.carousel-inner>.item.prev.right{left:0;-webkit-transform:translate3d(0,0,0);transform:translate3d(0,0,0)}}.carousel-inner>.active,.carousel-inner>.next,.carousel-inner>.prev{display:block}.carousel-inner>.active{left:0}.carousel-inner>.next,.carousel-inner>.prev{position:absolute;top:0;width:100%}.carousel-inner>.next{left:100%}.carousel-inner>.prev{left:-100%}.carousel-inner>.next.left,.carousel-inner>.prev.right{left:0}.carousel-inner>.active.left{left:-100%}.carousel-inner>.active.right{left:100%}.carousel-control{position:absolute;top:0;bottom:0;left:0;width:15%;font-size:20px;color:#fff;text-align:center;text-shadow:0 1px 2px rgba(0,0,0,.6);background-color:rgba(0,0,0,0);filter:alpha(opacity=50);opacity:.5}.carousel-control.left{background-image:-webkit-linear-gradient(left,rgba(0,0,0,.5) 0,rgba(0,0,0,.0001) 100%);background-image:-o-linear-gradient(left,rgba(0,0,0,.5) 0,rgba(0,0,0,.0001) 100%);background-image:-webkit-gradient(linear,left top,right top,from(rgba(0,0,0,.5)),to(rgba(0,0,0,.0001)));background-image:linear-gradient(to right,rgba(0,0,0,.5) 0,rgba(0,0,0,.0001) 100%);filter:progid:DXImageTransform.Microsoft.gradient(startColorstr='#80000000', endColorstr='#00000000', GradientType=1);background-repeat:repeat-x}.carousel-control.right{right:0;left:auto;background-image:-webkit-linear-gradient(left,rgba(0,0,0,.0001) 0,rgba(0,0,0,.5) 100%);background-image:-o-linear-gradient(left,rgba(0,0,0,.0001) 0,rgba(0,0,0,.5) 100%);background-image:-webkit-gradient(linear,left top,right top,from(rgba(0,0,0,.0001)),to(rgba(0,0,0,.5)));background-image:linear-gradient(to right,rgba(0,0,0,.0001) 0,rgba(0,0,0,.5) 100%);filter:progid:DXImageTransform.Microsoft.gradient(startColorstr='#00000000', endColorstr='#80000000', GradientType=1);background-repeat:repeat-x}.carousel-control:focus,.carousel-control:hover{color:#fff;text-decoration:none;filter:alpha(opacity=90);outline:0;opacity:.9}.carousel-control .glyphicon-chevron-left,.carousel-control .glyphicon-chevron-right,.carousel-control .icon-next,.carousel-control .icon-prev{position:absolute;top:50%;z-index:5;display:inline-block;margin-top:-10px}.carousel-control .glyphicon-chevron-left,.carousel-control .icon-prev{left:50%;margin-left:-10px}.carousel-control .glyphicon-chevron-right,.carousel-control .icon-next{right:50%;margin-right:-10px}.carousel-control .icon-next,.carousel-control .icon-prev{width:20px;height:20px;font-family:serif;line-height:1}.carousel-control .icon-prev:before{content:'\2039'}.carousel-control .icon-next:before{content:'\203a'}.carousel-indicators{position:absolute;bottom:10px;left:50%;z-index:15;width:60%;padding-left:0;margin-left:-30%;text-align:center;list-style:none}.carousel-indicators li{display:inline-block;width:10px;height:10px;margin:1px;text-indent:-999px;cursor:pointer;background-color:#000\9;background-color:rgba(0,0,0,0);border:1px solid #fff;border-radius:10px}.carousel-indicators .active{width:12px;height:12px;margin:0;background-color:#fff}.carousel-caption{position:absolute;right:15%;bottom:20px;left:15%;z-index:10;padding-top:20px;padding-bottom:20px;color:#fff;text-align:center;text-shadow:0 1px 2px rgba(0,0,0,.6)}.carousel-caption .btn{text-shadow:none}@media screen and (min-width:768px){.carousel-control .glyphicon-chevron-left,.carousel-control .glyphicon-chevron-right,.carousel-control .icon-next,.carousel-control .icon-prev{width:30px;height:30px;margin-top:-10px;font-size:30px}.carousel-control .glyphicon-chevron-left,.carousel-control .icon-prev{margin-left:-10px}.carousel-control .glyphicon-chevron-right,.carousel-control .icon-next{margin-right:-10px}.carousel-caption{right:20%;left:20%;padding-bottom:30px}.carousel-indicators{bottom:20px}}.btn-group-vertical>.btn-group:after,.btn-group-vertical>.btn-group:before,.btn-toolbar:after,.btn-toolbar:before,.clearfix:after,.clearfix:before,.container-fluid:after,.container-fluid:before,.container:after,.container:before,.dl-horizontal dd:after,.dl-horizontal dd:before,.form-horizontal .form-group:after,.form-horizontal .form-group:before,.modal-footer:after,.modal-footer:before,.modal-header:after,.modal-header:before,.nav:after,.nav:before,.navbar-collapse:after,.navbar-collapse:before,.navbar-header:after,.navbar-header:before,.navbar:after,.navbar:before,.pager:after,.pager:before,.panel-body:after,.panel-body:before,.row:after,.row:before{display:table;content:" "}.btn-group-vertical>.btn-group:after,.btn-toolbar:after,.clearfix:after,.container-fluid:after,.container:after,.dl-horizontal dd:after,.form-horizontal .form-group:after,.modal-footer:after,.modal-header:after,.nav:after,.navbar-collapse:after,.navbar-header:after,.navbar:after,.pager:after,.panel-body:after,.row:after{clear:both}.center-block{display:block;margin-right:auto;margin-left:auto}.pull-right{float:right!important}.pull-left{float:left!important}.hide{display:none!important}.show{display:block!important}.invisible{visibility:hidden}.text-hide{font:0/0 a;color:transparent;text-shadow:none;background-color:transparent;border:0}.hidden{display:none!important}.affix{position:fixed}@-ms-viewport{width:device-width}.visible-lg,.visible-md,.visible-sm,.visible-xs{display:none!important}.visible-lg-block,.visible-lg-inline,.visible-lg-inline-block,.visible-md-block,.visible-md-inline,.visible-md-inline-block,.visible-sm-block,.visible-sm-inline,.visible-sm-inline-block,.visible-xs-block,.visible-xs-inline,.visible-xs-inline-block{display:none!important}@media (max-width:767px){.visible-xs{display:block!important}table.visible-xs{display:table!important}tr.visible-xs{display:table-row!important}td.visible-xs,th.visible-xs{display:table-cell!important}}@media (max-width:767px){.visible-xs-block{display:block!important}}@media (max-width:767px){.visible-xs-inline{display:inline!important}}@media (max-width:767px){.visible-xs-inline-block{display:inline-block!important}}@media (min-width:768px) and (max-width:991px){.visible-sm{display:block!important}table.visible-sm{display:table!important}tr.visible-sm{display:table-row!important}td.visible-sm,th.visible-sm{display:table-cell!important}}@media (min-width:768px) and (max-width:991px){.visible-sm-block{display:block!important}}@media (min-width:768px) and (max-width:991px){.visible-sm-inline{display:inline!important}}@media (min-width:768px) and (max-width:991px){.visible-sm-inline-block{display:inline-block!important}}@media (min-width:992px) and (max-width:1199px){.visible-md{display:block!important}table.visible-md{display:table!important}tr.visible-md{display:table-row!important}td.visible-md,th.visible-md{display:table-cell!important}}@media (min-width:992px) and (max-width:1199px){.visible-md-block{display:block!important}}@media (min-width:992px) and (max-width:1199px){.visible-md-inline{display:inline!important}}@media (min-width:992px) and (max-width:1199px){.visible-md-inline-block{display:inline-block!important}}@media (min-width:1200px){.visible-lg{display:block!important}table.visible-lg{display:table!important}tr.visible-lg{display:table-row!important}td.visible-lg,th.visible-lg{display:table-cell!important}}@media (min-width:1200px){.visible-lg-block{display:block!important}}@media (min-width:1200px){.visible-lg-inline{display:inline!important}}@media (min-width:1200px){.visible-lg-inline-block{display:inline-block!important}}@media (max-width:767px){.hidden-xs{display:none!important}}@media (min-width:768px) and (max-width:991px){.hidden-sm{display:none!important}}@media (min-width:992px) and (max-width:1199px){.hidden-md{display:none!important}}@media (min-width:1200px){.hidden-lg{display:none!important}}.visible-print{display:none!important}@media print{.visible-print{display:block!important}table.visible-print{display:table!important}tr.visible-print{display:table-row!important}td.visible-print,th.visible-print{display:table-cell!important}}.visible-print-block{display:none!important}@media print{.visible-print-block{display:block!important}}.visible-print-inline{display:none!important}@media print{.visible-print-inline{display:inline!important}}.visible-print-inline-block{display:none!important}@media print{.visible-print-inline-block{display:inline-block!important}}@media print{.hidden-print{display:none!important}}
6
  /*# sourceMappingURL=bootstrap.min.css.map */
1
  /*!
2
+ * Bootstrap v4.3.1 (https://getbootstrap.com/)
3
+ * Copyright 2011-2019 The Bootstrap Authors
4
+ * Copyright 2011-2019 Twitter, Inc.
5
  * Licensed under MIT (https://github.com/twbs/bootstrap/blob/master/LICENSE)
6
+ */:root{--blue:#007bff;--indigo:#6610f2;--purple:#6f42c1;--pink:#e83e8c;--red:#dc3545;--orange:#fd7e14;--yellow:#ffc107;--green:#28a745;--teal:#20c997;--cyan:#17a2b8;--white:#fff;--gray:#6c757d;--gray-dark:#343a40;--primary:#007bff;--secondary:#6c757d;--success:#28a745;--info:#17a2b8;--warning:#ffc107;--danger:#dc3545;--light:#f8f9fa;--dark:#343a40;--breakpoint-xs:0;--breakpoint-sm:576px;--breakpoint-md:768px;--breakpoint-lg:992px;--breakpoint-xl:1200px;--font-family-sans-serif:-apple-system,BlinkMacSystemFont,"Segoe UI",Roboto,"Helvetica Neue",Arial,"Noto Sans",sans-serif,"Apple Color Emoji","Segoe UI Emoji","Segoe UI Symbol","Noto Color Emoji";--font-family-monospace:SFMono-Regular,Menlo,Monaco,Consolas,"Liberation Mono","Courier New",monospace}*,::after,::before{box-sizing:border-box}html{font-family:sans-serif;line-height:1.15;-webkit-text-size-adjust:100%;-webkit-tap-highlight-color:transparent}article,aside,figcaption,figure,footer,header,hgroup,main,nav,section{display:block}body{margin:0;font-family:-apple-system,BlinkMacSystemFont,"Segoe UI",Roboto,"Helvetica Neue",Arial,"Noto Sans",sans-serif,"Apple Color Emoji","Segoe UI Emoji","Segoe UI Symbol","Noto Color Emoji";font-size:1rem;font-weight:400;line-height:1.5;color:#212529;text-align:left;background-color:#fff}[tabindex="-1"]:focus{outline:0!important}hr{box-sizing:content-box;height:0;overflow:visible}h1,h2,h3,h4,h5,h6{margin-top:0;margin-bottom:.5rem}p{margin-top:0;margin-bottom:1rem}abbr[data-original-title],abbr[title]{text-decoration:underline;-webkit-text-decoration:underline dotted;text-decoration:underline dotted;cursor:help;border-bottom:0;-webkit-text-decoration-skip-ink:none;text-decoration-skip-ink:none}address{margin-bottom:1rem;font-style:normal;line-height:inherit}dl,ol,ul{margin-top:0;margin-bottom:1rem}ol ol,ol ul,ul ol,ul ul{margin-bottom:0}dt{font-weight:700}dd{margin-bottom:.5rem;margin-left:0}blockquote{margin:0 0 1rem}b,strong{font-weight:bolder}small{font-size:80%}sub,sup{position:relative;font-size:75%;line-height:0;vertical-align:baseline}sub{bottom:-.25em}sup{top:-.5em}a{color:#007bff;text-decoration:none;background-color:transparent}a:hover{color:#0056b3;text-decoration:underline}a:not([href]):not([tabindex]){color:inherit;text-decoration:none}a:not([href]):not([tabindex]):focus,a:not([href]):not([tabindex]):hover{color:inherit;text-decoration:none}a:not([href]):not([tabindex]):focus{outline:0}code,kbd,pre,samp{font-family:SFMono-Regular,Menlo,Monaco,Consolas,"Liberation Mono","Courier New",monospace;font-size:1em}pre{margin-top:0;margin-bottom:1rem;overflow:auto}figure{margin:0 0 1rem}img{vertical-align:middle;border-style:none}svg{overflow:hidden;vertical-align:middle}table{border-collapse:collapse}caption{padding-top:.75rem;padding-bottom:.75rem;color:#6c757d;text-align:left;caption-side:bottom}th{text-align:inherit}label{display:inline-block;margin-bottom:.5rem}button{border-radius:0}button:focus{outline:1px dotted;outline:5px auto -webkit-focus-ring-color}button,input,optgroup,select,textarea{margin:0;font-family:inherit;font-size:inherit;line-height:inherit}button,input{overflow:visible}button,select{text-transform:none}select{word-wrap:normal}[type=button],[type=reset],[type=submit],button{-webkit-appearance:button}[type=button]:not(:disabled),[type=reset]:not(:disabled),[type=submit]:not(:disabled),button:not(:disabled){cursor:pointer}[type=button]::-moz-focus-inner,[type=reset]::-moz-focus-inner,[type=submit]::-moz-focus-inner,button::-moz-focus-inner{padding:0;border-style:none}input[type=checkbox],input[type=radio]{box-sizing:border-box;padding:0}input[type=date],input[type=datetime-local],input[type=month],input[type=time]{-webkit-appearance:listbox}textarea{overflow:auto;resize:vertical}fieldset{min-width:0;padding:0;margin:0;border:0}legend{display:block;width:100%;max-width:100%;padding:0;margin-bottom:.5rem;font-size:1.5rem;line-height:inherit;color:inherit;white-space:normal}progress{vertical-align:baseline}[type=number]::-webkit-inner-spin-button,[type=number]::-webkit-outer-spin-button{height:auto}[type=search]{outline-offset:-2px;-webkit-appearance:none}[type=search]::-webkit-search-decoration{-webkit-appearance:none}::-webkit-file-upload-button{font:inherit;-webkit-appearance:button}output{display:inline-block}summary{display:list-item;cursor:pointer}template{display:none}[hidden]{display:none!important}.h1,.h2,.h3,.h4,.h5,.h6,h1,h2,h3,h4,h5,h6{margin-bottom:.5rem;font-weight:500;line-height:1.2}.h1,h1{font-size:2.5rem}.h2,h2{font-size:2rem}.h3,h3{font-size:1.75rem}.h4,h4{font-size:1.5rem}.h5,h5{font-size:1.25rem}.h6,h6{font-size:1rem}.lead{font-size:1.25rem;font-weight:300}.display-1{font-size:6rem;font-weight:300;line-height:1.2}.display-2{font-size:5.5rem;font-weight:300;line-height:1.2}.display-3{font-size:4.5rem;font-weight:300;line-height:1.2}.display-4{font-size:3.5rem;font-weight:300;line-height:1.2}hr{margin-top:1rem;margin-bottom:1rem;border:0;border-top:1px solid rgba(0,0,0,.1)}.small,small{font-size:80%;font-weight:400}.mark,mark{padding:.2em;background-color:#fcf8e3}.list-unstyled{padding-left:0;list-style:none}.list-inline{padding-left:0;list-style:none}.list-inline-item{display:inline-block}.list-inline-item:not(:last-child){margin-right:.5rem}.initialism{font-size:90%;text-transform:uppercase}.blockquote{margin-bottom:1rem;font-size:1.25rem}.blockquote-footer{display:block;font-size:80%;color:#6c757d}.blockquote-footer::before{content:"\2014\00A0"}.img-fluid{max-width:100%;height:auto}.img-thumbnail{padding:.25rem;background-color:#fff;border:1px solid #dee2e6;border-radius:.25rem;max-width:100%;height:auto}.figure{display:inline-block}.figure-img{margin-bottom:.5rem;line-height:1}.figure-caption{font-size:90%;color:#6c757d}code{font-size:87.5%;color:#e83e8c;word-break:break-word}a>code{color:inherit}kbd{padding:.2rem .4rem;font-size:87.5%;color:#fff;background-color:#212529;border-radius:.2rem}kbd kbd{padding:0;font-size:100%;font-weight:700}pre{display:block;font-size:87.5%;color:#212529}pre code{font-size:inherit;color:inherit;word-break:normal}.pre-scrollable{max-height:340px;overflow-y:scroll}.container{width:100%;padding-right:15px;padding-left:15px;margin-right:auto;margin-left:auto}@media (min-width:576px){.container{max-width:540px}}@media (min-width:768px){.container{max-width:720px}}@media (min-width:992px){.container{max-width:960px}}@media (min-width:1200px){.container{max-width:1140px}}.container-fluid{width:100%;padding-right:15px;padding-left:15px;margin-right:auto;margin-left:auto}.row{display:-ms-flexbox;display:flex;-ms-flex-wrap:wrap;flex-wrap:wrap;margin-right:-15px;margin-left:-15px}.no-gutters{margin-right:0;margin-left:0}.no-gutters>.col,.no-gutters>[class*=col-]{padding-right:0;padding-left:0}.col,.col-1,.col-10,.col-11,.col-12,.col-2,.col-3,.col-4,.col-5,.col-6,.col-7,.col-8,.col-9,.col-auto,.col-lg,.col-lg-1,.col-lg-10,.col-lg-11,.col-lg-12,.col-lg-2,.col-lg-3,.col-lg-4,.col-lg-5,.col-lg-6,.col-lg-7,.col-lg-8,.col-lg-9,.col-lg-auto,.col-md,.col-md-1,.col-md-10,.col-md-11,.col-md-12,.col-md-2,.col-md-3,.col-md-4,.col-md-5,.col-md-6,.col-md-7,.col-md-8,.col-md-9,.col-md-auto,.col-sm,.col-sm-1,.col-sm-10,.col-sm-11,.col-sm-12,.col-sm-2,.col-sm-3,.col-sm-4,.col-sm-5,.col-sm-6,.col-sm-7,.col-sm-8,.col-sm-9,.col-sm-auto,.col-xl,.col-xl-1,.col-xl-10,.col-xl-11,.col-xl-12,.col-xl-2,.col-xl-3,.col-xl-4,.col-xl-5,.col-xl-6,.col-xl-7,.col-xl-8,.col-xl-9,.col-xl-auto{position:relative;width:100%;padding-right:15px;padding-left:15px}.col{-ms-flex-preferred-size:0;flex-basis:0;-ms-flex-positive:1;flex-grow:1;max-width:100%}.col-auto{-ms-flex:0 0 auto;flex:0 0 auto;width:auto;max-width:100%}.col-1{-ms-flex:0 0 8.333333%;flex:0 0 8.333333%;max-width:8.333333%}.col-2{-ms-flex:0 0 16.666667%;flex:0 0 16.666667%;max-width:16.666667%}.col-3{-ms-flex:0 0 25%;flex:0 0 25%;max-width:25%}.col-4{-ms-flex:0 0 33.333333%;flex:0 0 33.333333%;max-width:33.333333%}.col-5{-ms-flex:0 0 41.666667%;flex:0 0 41.666667%;max-width:41.666667%}.col-6{-ms-flex:0 0 50%;flex:0 0 50%;max-width:50%}.col-7{-ms-flex:0 0 58.333333%;flex:0 0 58.333333%;max-width:58.333333%}.col-8{-ms-flex:0 0 66.666667%;flex:0 0 66.666667%;max-width:66.666667%}.col-9{-ms-flex:0 0 75%;flex:0 0 75%;max-width:75%}.col-10{-ms-flex:0 0 83.333333%;flex:0 0 83.333333%;max-width:83.333333%}.col-11{-ms-flex:0 0 91.666667%;flex:0 0 91.666667%;max-width:91.666667%}.col-12{-ms-flex:0 0 100%;flex:0 0 100%;max-width:100%}.order-first{-ms-flex-order:-1;order:-1}.order-last{-ms-flex-order:13;order:13}.order-0{-ms-flex-order:0;order:0}.order-1{-ms-flex-order:1;order:1}.order-2{-ms-flex-order:2;order:2}.order-3{-ms-flex-order:3;order:3}.order-4{-ms-flex-order:4;order:4}.order-5{-ms-flex-order:5;order:5}.order-6{-ms-flex-order:6;order:6}.order-7{-ms-flex-order:7;order:7}.order-8{-ms-flex-order:8;order:8}.order-9{-ms-flex-order:9;order:9}.order-10{-ms-flex-order:10;order:10}.order-11{-ms-flex-order:11;order:11}.order-12{-ms-flex-order:12;order:12}.offset-1{margin-left:8.333333%}.offset-2{margin-left:16.666667%}.offset-3{margin-left:25%}.offset-4{margin-left:33.333333%}.offset-5{margin-left:41.666667%}.offset-6{margin-left:50%}.offset-7{margin-left:58.333333%}.offset-8{margin-left:66.666667%}.offset-9{margin-left:75%}.offset-10{margin-left:83.333333%}.offset-11{margin-left:91.666667%}@media (min-width:576px){.col-sm{-ms-flex-preferred-size:0;flex-basis:0;-ms-flex-positive:1;flex-grow:1;max-width:100%}.col-sm-auto{-ms-flex:0 0 auto;flex:0 0 auto;width:auto;max-width:100%}.col-sm-1{-ms-flex:0 0 8.333333%;flex:0 0 8.333333%;max-width:8.333333%}.col-sm-2{-ms-flex:0 0 16.666667%;flex:0 0 16.666667%;max-width:16.666667%}.col-sm-3{-ms-flex:0 0 25%;flex:0 0 25%;max-width:25%}.col-sm-4{-ms-flex:0 0 33.333333%;flex:0 0 33.333333%;max-width:33.333333%}.col-sm-5{-ms-flex:0 0 41.666667%;flex:0 0 41.666667%;max-width:41.666667%}.col-sm-6{-ms-flex:0 0 50%;flex:0 0 50%;max-width:50%}.col-sm-7{-ms-flex:0 0 58.333333%;flex:0 0 58.333333%;max-width:58.333333%}.col-sm-8{-ms-flex:0 0 66.666667%;flex:0 0 66.666667%;max-width:66.666667%}.col-sm-9{-ms-flex:0 0 75%;flex:0 0 75%;max-width:75%}.col-sm-10{-ms-flex:0 0 83.333333%;flex:0 0 83.333333%;max-width:83.333333%}.col-sm-11{-ms-flex:0 0 91.666667%;flex:0 0 91.666667%;max-width:91.666667%}.col-sm-12{-ms-flex:0 0 100%;flex:0 0 100%;max-width:100%}.order-sm-first{-ms-flex-order:-1;order:-1}.order-sm-last{-ms-flex-order:13;order:13}.order-sm-0{-ms-flex-order:0;order:0}.order-sm-1{-ms-flex-order:1;order:1}.order-sm-2{-ms-flex-order:2;order:2}.order-sm-3{-ms-flex-order:3;order:3}.order-sm-4{-ms-flex-order:4;order:4}.order-sm-5{-ms-flex-order:5;order:5}.order-sm-6{-ms-flex-order:6;order:6}.order-sm-7{-ms-flex-order:7;order:7}.order-sm-8{-ms-flex-order:8;order:8}.order-sm-9{-ms-flex-order:9;order:9}.order-sm-10{-ms-flex-order:10;order:10}.order-sm-11{-ms-flex-order:11;order:11}.order-sm-12{-ms-flex-order:12;order:12}.offset-sm-0{margin-left:0}.offset-sm-1{margin-left:8.333333%}.offset-sm-2{margin-left:16.666667%}.offset-sm-3{margin-left:25%}.offset-sm-4{margin-left:33.333333%}.offset-sm-5{margin-left:41.666667%}.offset-sm-6{margin-left:50%}.offset-sm-7{margin-left:58.333333%}.offset-sm-8{margin-left:66.666667%}.offset-sm-9{margin-left:75%}.offset-sm-10{margin-left:83.333333%}.offset-sm-11{margin-left:91.666667%}}@media (min-width:768px){.col-md{-ms-flex-preferred-size:0;flex-basis:0;-ms-flex-positive:1;flex-grow:1;max-width:100%}.col-md-auto{-ms-flex:0 0 auto;flex:0 0 auto;width:auto;max-width:100%}.col-md-1{-ms-flex:0 0 8.333333%;flex:0 0 8.333333%;max-width:8.333333%}.col-md-2{-ms-flex:0 0 16.666667%;flex:0 0 16.666667%;max-width:16.666667%}.col-md-3{-ms-flex:0 0 25%;flex:0 0 25%;max-width:25%}.col-md-4{-ms-flex:0 0 33.333333%;flex:0 0 33.333333%;max-width:33.333333%}.col-md-5{-ms-flex:0 0 41.666667%;flex:0 0 41.666667%;max-width:41.666667%}.col-md-6{-ms-flex:0 0 50%;flex:0 0 50%;max-width:50%}.col-md-7{-ms-flex:0 0 58.333333%;flex:0 0 58.333333%;max-width:58.333333%}.col-md-8{-ms-flex:0 0 66.666667%;flex:0 0 66.666667%;max-width:66.666667%}.col-md-9{-ms-flex:0 0 75%;flex:0 0 75%;max-width:75%}.col-md-10{-ms-flex:0 0 83.333333%;flex:0 0 83.333333%;max-width:83.333333%}.col-md-11{-ms-flex:0 0 91.666667%;flex:0 0 91.666667%;max-width:91.666667%}.col-md-12{-ms-flex:0 0 100%;flex:0 0 100%;max-width:100%}.order-md-first{-ms-flex-order:-1;order:-1}.order-md-last{-ms-flex-order:13;order:13}.order-md-0{-ms-flex-order:0;order:0}.order-md-1{-ms-flex-order:1;order:1}.order-md-2{-ms-flex-order:2;order:2}.order-md-3{-ms-flex-order:3;order:3}.order-md-4{-ms-flex-order:4;order:4}.order-md-5{-ms-flex-order:5;order:5}.order-md-6{-ms-flex-order:6;order:6}.order-md-7{-ms-flex-order:7;order:7}.order-md-8{-ms-flex-order:8;order:8}.order-md-9{-ms-flex-order:9;order:9}.order-md-10{-ms-flex-order:10;order:10}.order-md-11{-ms-flex-order:11;order:11}.order-md-12{-ms-flex-order:12;order:12}.offset-md-0{margin-left:0}.offset-md-1{margin-left:8.333333%}.offset-md-2{margin-left:16.666667%}.offset-md-3{margin-left:25%}.offset-md-4{margin-left:33.333333%}.offset-md-5{margin-left:41.666667%}.offset-md-6{margin-left:50%}.offset-md-7{margin-left:58.333333%}.offset-md-8{margin-left:66.666667%}.offset-md-9{margin-left:75%}.offset-md-10{margin-left:83.333333%}.offset-md-11{margin-left:91.666667%}}@media (min-width:992px){.col-lg{-ms-flex-preferred-size:0;flex-basis:0;-ms-flex-positive:1;flex-grow:1;max-width:100%}.col-lg-auto{-ms-flex:0 0 auto;flex:0 0 auto;width:auto;max-width:100%}.col-lg-1{-ms-flex:0 0 8.333333%;flex:0 0 8.333333%;max-width:8.333333%}.col-lg-2{-ms-flex:0 0 16.666667%;flex:0 0 16.666667%;max-width:16.666667%}.col-lg-3{-ms-flex:0 0 25%;flex:0 0 25%;max-width:25%}.col-lg-4{-ms-flex:0 0 33.333333%;flex:0 0 33.333333%;max-width:33.333333%}.col-lg-5{-ms-flex:0 0 41.666667%;flex:0 0 41.666667%;max-width:41.666667%}.col-lg-6{-ms-flex:0 0 50%;flex:0 0 50%;max-width:50%}.col-lg-7{-ms-flex:0 0 58.333333%;flex:0 0 58.333333%;max-width:58.333333%}.col-lg-8{-ms-flex:0 0 66.666667%;flex:0 0 66.666667%;max-width:66.666667%}.col-lg-9{-ms-flex:0 0 75%;flex:0 0 75%;max-width:75%}.col-lg-10{-ms-flex:0 0 83.333333%;flex:0 0 83.333333%;max-width:83.333333%}.col-lg-11{-ms-flex:0 0 91.666667%;flex:0 0 91.666667%;max-width:91.666667%}.col-lg-12{-ms-flex:0 0 100%;flex:0 0 100%;max-width:100%}.order-lg-first{-ms-flex-order:-1;order:-1}.order-lg-last{-ms-flex-order:13;order:13}.order-lg-0{-ms-flex-order:0;order:0}.order-lg-1{-ms-flex-order:1;order:1}.order-lg-2{-ms-flex-order:2;order:2}.order-lg-3{-ms-flex-order:3;order:3}.order-lg-4{-ms-flex-order:4;order:4}.order-lg-5{-ms-flex-order:5;order:5}.order-lg-6{-ms-flex-order:6;order:6}.order-lg-7{-ms-flex-order:7;order:7}.order-lg-8{-ms-flex-order:8;order:8}.order-lg-9{-ms-flex-order:9;order:9}.order-lg-10{-ms-flex-order:10;order:10}.order-lg-11{-ms-flex-order:11;order:11}.order-lg-12{-ms-flex-order:12;order:12}.offset-lg-0{margin-left:0}.offset-lg-1{margin-left:8.333333%}.offset-lg-2{margin-left:16.666667%}.offset-lg-3{margin-left:25%}.offset-lg-4{margin-left:33.333333%}.offset-lg-5{margin-left:41.666667%}.offset-lg-6{margin-left:50%}.offset-lg-7{margin-left:58.333333%}.offset-lg-8{margin-left:66.666667%}.offset-lg-9{margin-left:75%}.offset-lg-10{margin-left:83.333333%}.offset-lg-11{margin-left:91.666667%}}@media (min-width:1200px){.col-xl{-ms-flex-preferred-size:0;flex-basis:0;-ms-flex-positive:1;flex-grow:1;max-width:100%}.col-xl-auto{-ms-flex:0 0 auto;flex:0 0 auto;width:auto;max-width:100%}.col-xl-1{-ms-flex:0 0 8.333333%;flex:0 0 8.333333%;max-width:8.333333%}.col-xl-2{-ms-flex:0 0 16.666667%;flex:0 0 16.666667%;max-width:16.666667%}.col-xl-3{-ms-flex:0 0 25%;flex:0 0 25%;max-width:25%}.col-xl-4{-ms-flex:0 0 33.333333%;flex:0 0 33.333333%;max-width:33.333333%}.col-xl-5{-ms-flex:0 0 41.666667%;flex:0 0 41.666667%;max-width:41.666667%}.col-xl-6{-ms-flex:0 0 50%;flex:0 0 50%;max-width:50%}.col-xl-7{-ms-flex:0 0 58.333333%;flex:0 0 58.333333%;max-width:58.333333%}.col-xl-8{-ms-flex:0 0 66.666667%;flex:0 0 66.666667%;max-width:66.666667%}.col-xl-9{-ms-flex:0 0 75%;flex:0 0 75%;max-width:75%}.col-xl-10{-ms-flex:0 0 83.333333%;flex:0 0 83.333333%;max-width:83.333333%}.col-xl-11{-ms-flex:0 0 91.666667%;flex:0 0 91.666667%;max-width:91.666667%}.col-xl-12{-ms-flex:0 0 100%;flex:0 0 100%;max-width:100%}.order-xl-first{-ms-flex-order:-1;order:-1}.order-xl-last{-ms-flex-order:13;order:13}.order-xl-0{-ms-flex-order:0;order:0}.order-xl-1{-ms-flex-order:1;order:1}.order-xl-2{-ms-flex-order:2;order:2}.order-xl-3{-ms-flex-order:3;order:3}.order-xl-4{-ms-flex-order:4;order:4}.order-xl-5{-ms-flex-order:5;order:5}.order-xl-6{-ms-flex-order:6;order:6}.order-xl-7{-ms-flex-order:7;order:7}.order-xl-8{-ms-flex-order:8;order:8}.order-xl-9{-ms-flex-order:9;order:9}.order-xl-10{-ms-flex-order:10;order:10}.order-xl-11{-ms-flex-order:11;order:11}.order-xl-12{-ms-flex-order:12;order:12}.offset-xl-0{margin-left:0}.offset-xl-1{margin-left:8.333333%}.offset-xl-2{margin-left:16.666667%}.offset-xl-3{margin-left:25%}.offset-xl-4{margin-left:33.333333%}.offset-xl-5{margin-left:41.666667%}.offset-xl-6{margin-left:50%}.offset-xl-7{margin-left:58.333333%}.offset-xl-8{margin-left:66.666667%}.offset-xl-9{margin-left:75%}.offset-xl-10{margin-left:83.333333%}.offset-xl-11{margin-left:91.666667%}}.table{width:100%;margin-bottom:1rem;color:#212529}.table td,.table th{padding:.75rem;vertical-align:top;border-top:1px solid #dee2e6}.table thead th{vertical-align:bottom;border-bottom:2px solid #dee2e6}.table tbody+tbody{border-top:2px solid #dee2e6}.table-sm td,.table-sm th{padding:.3rem}.table-bordered{border:1px solid #dee2e6}.table-bordered td,.table-bordered th{border:1px solid #dee2e6}.table-bordered thead td,.table-bordered thead th{border-bottom-width:2px}.table-borderless tbody+tbody,.table-borderless td,.table-borderless th,.table-borderless thead th{border:0}.table-striped tbody tr:nth-of-type(odd){background-color:rgba(0,0,0,.05)}.table-hover tbody tr:hover{color:#212529;background-color:rgba(0,0,0,.075)}.table-primary,.table-primary>td,.table-primary>th{background-color:#b8daff}.table-primary tbody+tbody,.table-primary td,.table-primary th,.table-primary thead th{border-color:#7abaff}.table-hover .table-primary:hover{background-color:#9fcdff}.table-hover .table-primary:hover>td,.table-hover .table-primary:hover>th{background-color:#9fcdff}.table-secondary,.table-secondary>td,.table-secondary>th{background-color:#d6d8db}.table-secondary tbody+tbody,.table-secondary td,.table-secondary th,.table-secondary thead th{border-color:#b3b7bb}.table-hover .table-secondary:hover{background-color:#c8cbcf}.table-hover .table-secondary:hover>td,.table-hover .table-secondary:hover>th{background-color:#c8cbcf}.table-success,.table-success>td,.table-success>th{background-color:#c3e6cb}.table-success tbody+tbody,.table-success td,.table-success th,.table-success thead th{border-color:#8fd19e}.table-hover .table-success:hover{background-color:#b1dfbb}.table-hover .table-success:hover>td,.table-hover .table-success:hover>th{background-color:#b1dfbb}.table-info,.table-info>td,.table-info>th{background-color:#bee5eb}.table-info tbody+tbody,.table-info td,.table-info th,.table-info thead th{border-color:#86cfda}.table-hover .table-info:hover{background-color:#abdde5}.table-hover .table-info:hover>td,.table-hover .table-info:hover>th{background-color:#abdde5}.table-warning,.table-warning>td,.table-warning>th{background-color:#ffeeba}.table-warning tbody+tbody,.table-warning td,.table-warning th,.table-warning thead th{border-color:#ffdf7e}.table-hover .table-warning:hover{background-color:#ffe8a1}.table-hover .table-warning:hover>td,.table-hover .table-warning:hover>th{background-color:#ffe8a1}.table-danger,.table-danger>td,.table-danger>th{background-color:#f5c6cb}.table-danger tbody+tbody,.table-danger td,.table-danger th,.table-danger thead th{border-color:#ed969e}.table-hover .table-danger:hover{background-color:#f1b0b7}.table-hover .table-danger:hover>td,.table-hover .table-danger:hover>th{background-color:#f1b0b7}.table-light,.table-light>td,.table-light>th{background-color:#fdfdfe}.table-light tbody+tbody,.table-light td,.table-light th,.table-light thead th{border-color:#fbfcfc}.table-hover .table-light:hover{background-color:#ececf6}.table-hover .table-light:hover>td,.table-hover .table-light:hover>th{background-color:#ececf6}.table-dark,.table-dark>td,.table-dark>th{background-color:#c6c8ca}.table-dark tbody+tbody,.table-dark td,.table-dark th,.table-dark thead th{border-color:#95999c}.table-hover .table-dark:hover{background-color:#b9bbbe}.table-hover .table-dark:hover>td,.table-hover .table-dark:hover>th{background-color:#b9bbbe}.table-active,.table-active>td,.table-active>th{background-color:rgba(0,0,0,.075)}.table-hover .table-active:hover{background-color:rgba(0,0,0,.075)}.table-hover .table-active:hover>td,.table-hover .table-active:hover>th{background-color:rgba(0,0,0,.075)}.table .thead-dark th{color:#fff;background-color:#343a40;border-color:#454d55}.table .thead-light th{color:#495057;background-color:#e9ecef;border-color:#dee2e6}.table-dark{color:#fff;background-color:#343a40}.table-dark td,.table-dark th,.table-dark thead th{border-color:#454d55}.table-dark.table-bordered{border:0}.table-dark.table-striped tbody tr:nth-of-type(odd){background-color:rgba(255,255,255,.05)}.table-dark.table-hover tbody tr:hover{color:#fff;background-color:rgba(255,255,255,.075)}@media (max-width:575.98px){.table-responsive-sm{display:block;width:100%;overflow-x:auto;-webkit-overflow-scrolling:touch}.table-responsive-sm>.table-bordered{border:0}}@media (max-width:767.98px){.table-responsive-md{display:block;width:100%;overflow-x:auto;-webkit-overflow-scrolling:touch}.table-responsive-md>.table-bordered{border:0}}@media (max-width:991.98px){.table-responsive-lg{display:block;width:100%;overflow-x:auto;-webkit-overflow-scrolling:touch}.table-responsive-lg>.table-bordered{border:0}}@media (max-width:1199.98px){.table-responsive-xl{display:block;width:100%;overflow-x:auto;-webkit-overflow-scrolling:touch}.table-responsive-xl>.table-bordered{border:0}}.table-responsive{display:block;width:100%;overflow-x:auto;-webkit-overflow-scrolling:touch}.table-responsive>.table-bordered{border:0}.form-control{display:block;width:100%;height:calc(1.5em + .75rem + 2px);padding:.375rem .75rem;font-size:1rem;font-weight:400;line-height:1.5;color:#495057;background-color:#fff;background-clip:padding-box;border:1px solid #ced4da;border-radius:.25rem;transition:border-color .15s ease-in-out,box-shadow .15s ease-in-out}@media (prefers-reduced-motion:reduce){.form-control{transition:none}}.form-control::-ms-expand{background-color:transparent;border:0}.form-control:focus{color:#495057;background-color:#fff;border-color:#80bdff;outline:0;box-shadow:0 0 0 .2rem rgba(0,123,255,.25)}.form-control::-webkit-input-placeholder{color:#6c757d;opacity:1}.form-control::-moz-placeholder{color:#6c757d;opacity:1}.form-control:-ms-input-placeholder{color:#6c757d;opacity:1}.form-control::-ms-input-placeholder{color:#6c757d;opacity:1}.form-control::placeholder{color:#6c757d;opacity:1}.form-control:disabled,.form-control[readonly]{background-color:#e9ecef;opacity:1}select.form-control:focus::-ms-value{color:#495057;background-color:#fff}.form-control-file,.form-control-range{display:block;width:100%}.col-form-label{padding-top:calc(.375rem + 1px);padding-bottom:calc(.375rem + 1px);margin-bottom:0;font-size:inherit;line-height:1.5}.col-form-label-lg{padding-top:calc(.5rem + 1px);padding-bottom:calc(.5rem + 1px);font-size:1.25rem;line-height:1.5}.col-form-label-sm{padding-top:calc(.25rem + 1px);padding-bottom:calc(.25rem + 1px);font-size:.875rem;line-height:1.5}.form-control-plaintext{display:block;width:100%;padding-top:.375rem;padding-bottom:.375rem;margin-bottom:0;line-height:1.5;color:#212529;background-color:transparent;border:solid transparent;border-width:1px 0}.form-control-plaintext.form-control-lg,.form-control-plaintext.form-control-sm{padding-right:0;padding-left:0}.form-control-sm{height:calc(1.5em + .5rem + 2px);padding:.25rem .5rem;font-size:.875rem;line-height:1.5;border-radius:.2rem}.form-control-lg{height:calc(1.5em + 1rem + 2px);padding:.5rem 1rem;font-size:1.25rem;line-height:1.5;border-radius:.3rem}select.form-control[multiple],select.form-control[size]{height:auto}textarea.form-control{height:auto}.form-group{margin-bottom:1rem}.form-text{display:block;margin-top:.25rem}.form-row{display:-ms-flexbox;display:flex;-ms-flex-wrap:wrap;flex-wrap:wrap;margin-right:-5px;margin-left:-5px}.form-row>.col,.form-row>[class*=col-]{padding-right:5px;padding-left:5px}.form-check{position:relative;display:block;padding-left:1.25rem}.form-check-input{position:absolute;margin-top:.3rem;margin-left:-1.25rem}.form-check-input:disabled~.form-check-label{color:#6c757d}.form-check-label{margin-bottom:0}.form-check-inline{display:-ms-inline-flexbox;display:inline-flex;-ms-flex-align:center;align-items:center;padding-left:0;margin-right:.75rem}.form-check-inline .form-check-input{position:static;margin-top:0;margin-right:.3125rem;margin-left:0}.valid-feedback{display:none;width:100%;margin-top:.25rem;font-size:80%;color:#28a745}.valid-tooltip{position:absolute;top:100%;z-index:5;display:none;max-width:100%;padding:.25rem .5rem;margin-top:.1rem;font-size:.875rem;line-height:1.5;color:#fff;background-color:rgba(40,167,69,.9);border-radius:.25rem}.form-control.is-valid,.was-validated .form-control:valid{border-color:#28a745;padding-right:calc(1.5em + .75rem);background-image:url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 8 8'%3e%3cpath fill='%2328a745' d='M2.3 6.73L.6 4.53c-.4-1.04.46-1.4 1.1-.8l1.1 1.4 3.4-3.8c.6-.63 1.6-.27 1.2.7l-4 4.6c-.43.5-.8.4-1.1.1z'/%3e%3c/svg%3e");background-repeat:no-repeat;background-position:center right calc(.375em + .1875rem);background-size:calc(.75em + .375rem) calc(.75em + .375rem)}.form-control.is-valid:focus,.was-validated .form-control:valid:focus{border-color:#28a745;box-shadow:0 0 0 .2rem rgba(40,167,69,.25)}.form-control.is-valid~.valid-feedback,.form-control.is-valid~.valid-tooltip,.was-validated .form-control:valid~.valid-feedback,.was-validated .form-control:valid~.valid-tooltip{display:block}.was-validated textarea.form-control:valid,textarea.form-control.is-valid{padding-right:calc(1.5em + .75rem);background-position:top calc(.375em + .1875rem) right calc(.375em + .1875rem)}.custom-select.is-valid,.was-validated .custom-select:valid{border-color:#28a745;padding-right:calc((1em + .75rem) * 3 / 4 + 1.75rem);background:url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 4 5'%3e%3cpath fill='%23343a40' d='M2 0L0 2h4zm0 5L0 3h4z'/%3e%3c/svg%3e") no-repeat right .75rem center/8px 10px,url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 8 8'%3e%3cpath fill='%2328a745' d='M2.3 6.73L.6 4.53c-.4-1.04.46-1.4 1.1-.8l1.1 1.4 3.4-3.8c.6-.63 1.6-.27 1.2.7l-4 4.6c-.43.5-.8.4-1.1.1z'/%3e%3c/svg%3e") #fff no-repeat center right 1.75rem/calc(.75em + .375rem) calc(.75em + .375rem)}.custom-select.is-valid:focus,.was-validated .custom-select:valid:focus{border-color:#28a745;box-shadow:0 0 0 .2rem rgba(40,167,69,.25)}.custom-select.is-valid~.valid-feedback,.custom-select.is-valid~.valid-tooltip,.was-validated .custom-select:valid~.valid-feedback,.was-validated .custom-select:valid~.valid-tooltip{display:block}.form-control-file.is-valid~.valid-feedback,.form-control-file.is-valid~.valid-tooltip,.was-validated .form-control-file:valid~.valid-feedback,.was-validated .form-control-file:valid~.valid-tooltip{display:block}.form-check-input.is-valid~.form-check-label,.was-validated .form-check-input:valid~.form-check-label{color:#28a745}.form-check-input.is-valid~.valid-feedback,.form-check-input.is-valid~.valid-tooltip,.was-validated .form-check-input:valid~.valid-feedback,.was-validated .form-check-input:valid~.valid-tooltip{display:block}.custom-control-input.is-valid~.custom-control-label,.was-validated .custom-control-input:valid~.custom-control-label{color:#28a745}.custom-control-input.is-valid~.custom-control-label::before,.was-validated .custom-control-input:valid~.custom-control-label::before{border-color:#28a745}.custom-control-input.is-valid~.valid-feedback,.custom-control-input.is-valid~.valid-tooltip,.was-validated .custom-control-input:valid~.valid-feedback,.was-validated .custom-control-input:valid~.valid-tooltip{display:block}.custom-control-input.is-valid:checked~.custom-control-label::before,.was-validated .custom-control-input:valid:checked~.custom-control-label::before{border-color:#34ce57;background-color:#34ce57}.custom-control-input.is-valid:focus~.custom-control-label::before,.was-validated .custom-control-input:valid:focus~.custom-control-label::before{box-shadow:0 0 0 .2rem rgba(40,167,69,.25)}.custom-control-input.is-valid:focus:not(:checked)~.custom-control-label::before,.was-validated .custom-control-input:valid:focus:not(:checked)~.custom-control-label::before{border-color:#28a745}.custom-file-input.is-valid~.custom-file-label,.was-validated .custom-file-input:valid~.custom-file-label{border-color:#28a745}.custom-file-input.is-valid~.valid-feedback,.custom-file-input.is-valid~.valid-tooltip,.was-validated .custom-file-input:valid~.valid-feedback,.was-validated .custom-file-input:valid~.valid-tooltip{display:block}.custom-file-input.is-valid:focus~.custom-file-label,.was-validated .custom-file-input:valid:focus~.custom-file-label{border-color:#28a745;box-shadow:0 0 0 .2rem rgba(40,167,69,.25)}.invalid-feedback{display:none;width:100%;margin-top:.25rem;font-size:80%;color:#dc3545}.invalid-tooltip{position:absolute;top:100%;z-index:5;display:none;max-width:100%;padding:.25rem .5rem;margin-top:.1rem;font-size:.875rem;line-height:1.5;color:#fff;background-color:rgba(220,53,69,.9);border-radius:.25rem}.form-control.is-invalid,.was-validated .form-control:invalid{border-color:#dc3545;padding-right:calc(1.5em + .75rem);background-image:url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' fill='%23dc3545' viewBox='-2 -2 7 7'%3e%3cpath stroke='%23dc3545' d='M0 0l3 3m0-3L0 3'/%3e%3ccircle r='.5'/%3e%3ccircle cx='3' r='.5'/%3e%3ccircle cy='3' r='.5'/%3e%3ccircle cx='3' cy='3' r='.5'/%3e%3c/svg%3E");background-repeat:no-repeat;background-position:center right calc(.375em + .1875rem);background-size:calc(.75em + .375rem) calc(.75em + .375rem)}.form-control.is-invalid:focus,.was-validated .form-control:invalid:focus{border-color:#dc3545;box-shadow:0 0 0 .2rem rgba(220,53,69,.25)}.form-control.is-invalid~.invalid-feedback,.form-control.is-invalid~.invalid-tooltip,.was-validated .form-control:invalid~.invalid-feedback,.was-validated .form-control:invalid~.invalid-tooltip{display:block}.was-validated textarea.form-control:invalid,textarea.form-control.is-invalid{padding-right:calc(1.5em + .75rem);background-position:top calc(.375em + .1875rem) right calc(.375em + .1875rem)}.custom-select.is-invalid,.was-validated .custom-select:invalid{border-color:#dc3545;padding-right:calc((1em + .75rem) * 3 / 4 + 1.75rem);background:url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 4 5'%3e%3cpath fill='%23343a40' d='M2 0L0 2h4zm0 5L0 3h4z'/%3e%3c/svg%3e") no-repeat right .75rem center/8px 10px,url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' fill='%23dc3545' viewBox='-2 -2 7 7'%3e%3cpath stroke='%23dc3545' d='M0 0l3 3m0-3L0 3'/%3e%3ccircle r='.5'/%3e%3ccircle cx='3' r='.5'/%3e%3ccircle cy='3' r='.5'/%3e%3ccircle cx='3' cy='3' r='.5'/%3e%3c/svg%3E") #fff no-repeat center right 1.75rem/calc(.75em + .375rem) calc(.75em + .375rem)}.custom-select.is-invalid:focus,.was-validated .custom-select:invalid:focus{border-color:#dc3545;box-shadow:0 0 0 .2rem rgba(220,53,69,.25)}.custom-select.is-invalid~.invalid-feedback,.custom-select.is-invalid~.invalid-tooltip,.was-validated .custom-select:invalid~.invalid-feedback,.was-validated .custom-select:invalid~.invalid-tooltip{display:block}.form-control-file.is-invalid~.invalid-feedback,.form-control-file.is-invalid~.invalid-tooltip,.was-validated .form-control-file:invalid~.invalid-feedback,.was-validated .form-control-file:invalid~.invalid-tooltip{display:block}.form-check-input.is-invalid~.form-check-label,.was-validated .form-check-input:invalid~.form-check-label{color:#dc3545}.form-check-input.is-invalid~.invalid-feedback,.form-check-input.is-invalid~.invalid-tooltip,.was-validated .form-check-input:invalid~.invalid-feedback,.was-validated .form-check-input:invalid~.invalid-tooltip{display:block}.custom-control-input.is-invalid~.custom-control-label,.was-validated .custom-control-input:invalid~.custom-control-label{color:#dc3545}.custom-control-input.is-invalid~.custom-control-label::before,.was-validated .custom-control-input:invalid~.custom-control-label::before{border-color:#dc3545}.custom-control-input.is-invalid~.invalid-feedback,.custom-control-input.is-invalid~.invalid-tooltip,.was-validated .custom-control-input:invalid~.invalid-feedback,.was-validated .custom-control-input:invalid~.invalid-tooltip{display:block}.custom-control-input.is-invalid:checked~.custom-control-label::before,.was-validated .custom-control-input:invalid:checked~.custom-control-label::before{border-color:#e4606d;background-color:#e4606d}.custom-control-input.is-invalid:focus~.custom-control-label::before,.was-validated .custom-control-input:invalid:focus~.custom-control-label::before{box-shadow:0 0 0 .2rem rgba(220,53,69,.25)}.custom-control-input.is-invalid:focus:not(:checked)~.custom-control-label::before,.was-validated .custom-control-input:invalid:focus:not(:checked)~.custom-control-label::before{border-color:#dc3545}.custom-file-input.is-invalid~.custom-file-label,.was-validated .custom-file-input:invalid~.custom-file-label{border-color:#dc3545}.custom-file-input.is-invalid~.invalid-feedback,.custom-file-input.is-invalid~.invalid-tooltip,.was-validated .custom-file-input:invalid~.invalid-feedback,.was-validated .custom-file-input:invalid~.invalid-tooltip{display:block}.custom-file-input.is-invalid:focus~.custom-file-label,.was-validated .custom-file-input:invalid:focus~.custom-file-label{border-color:#dc3545;box-shadow:0 0 0 .2rem rgba(220,53,69,.25)}.form-inline{display:-ms-flexbox;display:flex;-ms-flex-flow:row wrap;flex-flow:row wrap;-ms-flex-align:center;align-items:center}.form-inline .form-check{width:100%}@media (min-width:576px){.form-inline label{display:-ms-flexbox;display:flex;-ms-flex-align:center;align-items:center;-ms-flex-pack:center;justify-content:center;margin-bottom:0}.form-inline .form-group{display:-ms-flexbox;display:flex;-ms-flex:0 0 auto;flex:0 0 auto;-ms-flex-flow:row wrap;flex-flow:row wrap;-ms-flex-align:center;align-items:center;margin-bottom:0}.form-inline .form-control{display:inline-block;width:auto;vertical-align:middle}.form-inline .form-control-plaintext{display:inline-block}.form-inline .custom-select,.form-inline .input-group{width:auto}.form-inline .form-check{display:-ms-flexbox;display:flex;-ms-flex-align:center;align-items:center;-ms-flex-pack:center;justify-content:center;width:auto;padding-left:0}.form-inline .form-check-input{position:relative;-ms-flex-negative:0;flex-shrink:0;margin-top:0;margin-right:.25rem;margin-left:0}.form-inline .custom-control{-ms-flex-align:center;align-items:center;-ms-flex-pack:center;justify-content:center}.form-inline .custom-control-label{margin-bottom:0}}.btn{display:inline-block;font-weight:400;color:#212529;text-align:center;vertical-align:middle;-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none;background-color:transparent;border:1px solid transparent;padding:.375rem .75rem;font-size:1rem;line-height:1.5;border-radius:.25rem;transition:color .15s ease-in-out,background-color .15s ease-in-out,border-color .15s ease-in-out,box-shadow .15s ease-in-out}@media (prefers-reduced-motion:reduce){.btn{transition:none}}.btn:hover{color:#212529;text-decoration:none}.btn.focus,.btn:focus{outline:0;box-shadow:0 0 0 .2rem rgba(0,123,255,.25)}.btn.disabled,.btn:disabled{opacity:.65}a.btn.disabled,fieldset:disabled a.btn{pointer-events:none}.btn-primary{color:#fff;background-color:#007bff;border-color:#007bff}.btn-primary:hover{color:#fff;background-color:#0069d9;border-color:#0062cc}.btn-primary.focus,.btn-primary:focus{box-shadow:0 0 0 .2rem rgba(38,143,255,.5)}.btn-primary.disabled,.btn-primary:disabled{color:#fff;background-color:#007bff;border-color:#007bff}.btn-primary:not(:disabled):not(.disabled).active,.btn-primary:not(:disabled):not(.disabled):active,.show>.btn-primary.dropdown-toggle{color:#fff;background-color:#0062cc;border-color:#005cbf}.btn-primary:not(:disabled):not(.disabled).active:focus,.btn-primary:not(:disabled):not(.disabled):active:focus,.show>.btn-primary.dropdown-toggle:focus{box-shadow:0 0 0 .2rem rgba(38,143,255,.5)}.btn-secondary{color:#fff;background-color:#6c757d;border-color:#6c757d}.btn-secondary:hover{color:#fff;background-color:#5a6268;border-color:#545b62}.btn-secondary.focus,.btn-secondary:focus{box-shadow:0 0 0 .2rem rgba(130,138,145,.5)}.btn-secondary.disabled,.btn-secondary:disabled{color:#fff;background-color:#6c757d;border-color:#6c757d}.btn-secondary:not(:disabled):not(.disabled).active,.btn-secondary:not(:disabled):not(.disabled):active,.show>.btn-secondary.dropdown-toggle{color:#fff;background-color:#545b62;border-color:#4e555b}.btn-secondary:not(:disabled):not(.disabled).active:focus,.btn-secondary:not(:disabled):not(.disabled):active:focus,.show>.btn-secondary.dropdown-toggle:focus{box-shadow:0 0 0 .2rem rgba(130,138,145,.5)}.btn-success{color:#fff;background-color:#28a745;border-color:#28a745}.btn-success:hover{color:#fff;background-color:#218838;border-color:#1e7e34}.btn-success.focus,.btn-success:focus{box-shadow:0 0 0 .2rem rgba(72,180,97,.5)}.btn-success.disabled,.btn-success:disabled{color:#fff;background-color:#28a745;border-color:#28a745}.btn-success:not(:disabled):not(.disabled).active,.btn-success:not(:disabled):not(.disabled):active,.show>.btn-success.dropdown-toggle{color:#fff;background-color:#1e7e34;border-color:#1c7430}.btn-success:not(:disabled):not(.disabled).active:focus,.btn-success:not(:disabled):not(.disabled):active:focus,.show>.btn-success.dropdown-toggle:focus{box-shadow:0 0 0 .2rem rgba(72,180,97,.5)}.btn-info{color:#fff;background-color:#17a2b8;border-color:#17a2b8}.btn-info:hover{color:#fff;background-color:#138496;border-color:#117a8b}.btn-info.focus,.btn-info:focus{box-shadow:0 0 0 .2rem rgba(58,176,195,.5)}.btn-info.disabled,.btn-info:disabled{color:#fff;background-color:#17a2b8;border-color:#17a2b8}.btn-info:not(:disabled):not(.disabled).active,.btn-info:not(:disabled):not(.disabled):active,.show>.btn-info.dropdown-toggle{color:#fff;background-color:#117a8b;border-color:#10707f}.btn-info:not(:disabled):not(.disabled).active:focus,.btn-info:not(:disabled):not(.disabled):active:focus,.show>.btn-info.dropdown-toggle:focus{box-shadow:0 0 0 .2rem rgba(58,176,195,.5)}.btn-warning{color:#212529;background-color:#ffc107;border-color:#ffc107}.btn-warning:hover{color:#212529;background-color:#e0a800;border-color:#d39e00}.btn-warning.focus,.btn-warning:focus{box-shadow:0 0 0 .2rem rgba(222,170,12,.5)}.btn-warning.disabled,.btn-warning:disabled{color:#212529;background-color:#ffc107;border-color:#ffc107}.btn-warning:not(:disabled):not(.disabled).active,.btn-warning:not(:disabled):not(.disabled):active,.show>.btn-warning.dropdown-toggle{color:#212529;background-color:#d39e00;border-color:#c69500}.btn-warning:not(:disabled):not(.disabled).active:focus,.btn-warning:not(:disabled):not(.disabled):active:focus,.show>.btn-warning.dropdown-toggle:focus{box-shadow:0 0 0 .2rem rgba(222,170,12,.5)}.btn-danger{color:#fff;background-color:#dc3545;border-color:#dc3545}.btn-danger:hover{color:#fff;background-color:#c82333;border-color:#bd2130}.btn-danger.focus,.btn-danger:focus{box-shadow:0 0 0 .2rem rgba(225,83,97,.5)}.btn-danger.disabled,.btn-danger:disabled{color:#fff;background-color:#dc3545;border-color:#dc3545}.btn-danger:not(:disabled):not(.disabled).active,.btn-danger:not(:disabled):not(.disabled):active,.show>.btn-danger.dropdown-toggle{color:#fff;background-color:#bd2130;border-color:#b21f2d}.btn-danger:not(:disabled):not(.disabled).active:focus,.btn-danger:not(:disabled):not(.disabled):active:focus,.show>.btn-danger.dropdown-toggle:focus{box-shadow:0 0 0 .2rem rgba(225,83,97,.5)}.btn-light{color:#212529;background-color:#f8f9fa;border-color:#f8f9fa}.btn-light:hover{color:#212529;background-color:#e2e6ea;border-color:#dae0e5}.btn-light.focus,.btn-light:focus{box-shadow:0 0 0 .2rem rgba(216,217,219,.5)}.btn-light.disabled,.btn-light:disabled{color:#212529;background-color:#f8f9fa;border-color:#f8f9fa}.btn-light:not(:disabled):not(.disabled).active,.btn-light:not(:disabled):not(.disabled):active,.show>.btn-light.dropdown-toggle{color:#212529;background-color:#dae0e5;border-color:#d3d9df}.btn-light:not(:disabled):not(.disabled).active:focus,.btn-light:not(:disabled):not(.disabled):active:focus,.show>.btn-light.dropdown-toggle:focus{box-shadow:0 0 0 .2rem rgba(216,217,219,.5)}.btn-dark{color:#fff;background-color:#343a40;border-color:#343a40}.btn-dark:hover{color:#fff;background-color:#23272b;border-color:#1d2124}.btn-dark.focus,.btn-dark:focus{box-shadow:0 0 0 .2rem rgba(82,88,93,.5)}.btn-dark.disabled,.btn-dark:disabled{color:#fff;background-color:#343a40;border-color:#343a40}.btn-dark:not(:disabled):not(.disabled).active,.btn-dark:not(:disabled):not(.disabled):active,.show>.btn-dark.dropdown-toggle{color:#fff;background-color:#1d2124;border-color:#171a1d}.btn-dark:not(:disabled):not(.disabled).active:focus,.btn-dark:not(:disabled):not(.disabled):active:focus,.show>.btn-dark.dropdown-toggle:focus{box-shadow:0 0 0 .2rem rgba(82,88,93,.5)}.btn-outline-primary{color:#007bff;border-color:#007bff}.btn-outline-primary:hover{color:#fff;background-color:#007bff;border-color:#007bff}.btn-outline-primary.focus,.btn-outline-primary:focus{box-shadow:0 0 0 .2rem rgba(0,123,255,.5)}.btn-outline-primary.disabled,.btn-outline-primary:disabled{color:#007bff;background-color:transparent}.btn-outline-primary:not(:disabled):not(.disabled).active,.btn-outline-primary:not(:disabled):not(.disabled):active,.show>.btn-outline-primary.dropdown-toggle{color:#fff;background-color:#007bff;border-color:#007bff}.btn-outline-primary:not(:disabled):not(.disabled).active:focus,.btn-outline-primary:not(:disabled):not(.disabled):active:focus,.show>.btn-outline-primary.dropdown-toggle:focus{box-shadow:0 0 0 .2rem rgba(0,123,255,.5)}.btn-outline-secondary{color:#6c757d;border-color:#6c757d}.btn-outline-secondary:hover{color:#fff;background-color:#6c757d;border-color:#6c757d}.btn-outline-secondary.focus,.btn-outline-secondary:focus{box-shadow:0 0 0 .2rem rgba(108,117,125,.5)}.btn-outline-secondary.disabled,.btn-outline-secondary:disabled{color:#6c757d;background-color:transparent}.btn-outline-secondary:not(:disabled):not(.disabled).active,.btn-outline-secondary:not(:disabled):not(.disabled):active,.show>.btn-outline-secondary.dropdown-toggle{color:#fff;background-color:#6c757d;border-color:#6c757d}.btn-outline-secondary:not(:disabled):not(.disabled).active:focus,.btn-outline-secondary:not(:disabled):not(.disabled):active:focus,.show>.btn-outline-secondary.dropdown-toggle:focus{box-shadow:0 0 0 .2rem rgba(108,117,125,.5)}.btn-outline-success{color:#28a745;border-color:#28a745}.btn-outline-success:hover{color:#fff;background-color:#28a745;border-color:#28a745}.btn-outline-success.focus,.btn-outline-success:focus{box-shadow:0 0 0 .2rem rgba(40,167,69,.5)}.btn-outline-success.disabled,.btn-outline-success:disabled{color:#28a745;background-color:transparent}.btn-outline-success:not(:disabled):not(.disabled).active,.btn-outline-success:not(:disabled):not(.disabled):active,.show>.btn-outline-success.dropdown-toggle{color:#fff;background-color:#28a745;border-color:#28a745}.btn-outline-success:not(:disabled):not(.disabled).active:focus,.btn-outline-success:not(:disabled):not(.disabled):active:focus,.show>.btn-outline-success.dropdown-toggle:focus{box-shadow:0 0 0 .2rem rgba(40,167,69,.5)}.btn-outline-info{color:#17a2b8;border-color:#17a2b8}.btn-outline-info:hover{color:#fff;background-color:#17a2b8;border-color:#17a2b8}.btn-outline-info.focus,.btn-outline-info:focus{box-shadow:0 0 0 .2rem rgba(23,162,184,.5)}.btn-outline-info.disabled,.btn-outline-info:disabled{color:#17a2b8;background-color:transparent}.btn-outline-info:not(:disabled):not(.disabled).active,.btn-outline-info:not(:disabled):not(.disabled):active,.show>.btn-outline-info.dropdown-toggle{color:#fff;background-color:#17a2b8;border-color:#17a2b8}.btn-outline-info:not(:disabled):not(.disabled).active:focus,.btn-outline-info:not(:disabled):not(.disabled):active:focus,.show>.btn-outline-info.dropdown-toggle:focus{box-shadow:0 0 0 .2rem rgba(23,162,184,.5)}.btn-outline-warning{color:#ffc107;border-color:#ffc107}.btn-outline-warning:hover{color:#212529;background-color:#ffc107;border-color:#ffc107}.btn-outline-warning.focus,.btn-outline-warning:focus{box-shadow:0 0 0 .2rem rgba(255,193,7,.5)}.btn-outline-warning.disabled,.btn-outline-warning:disabled{color:#ffc107;background-color:transparent}.btn-outline-warning:not(:disabled):not(.disabled).active,.btn-outline-warning:not(:disabled):not(.disabled):active,.show>.btn-outline-warning.dropdown-toggle{color:#212529;background-color:#ffc107;border-color:#ffc107}.btn-outline-warning:not(:disabled):not(.disabled).active:focus,.btn-outline-warning:not(:disabled):not(.disabled):active:focus,.show>.btn-outline-warning.dropdown-toggle:focus{box-shadow:0 0 0 .2rem rgba(255,193,7,.5)}.btn-outline-danger{color:#dc3545;border-color:#dc3545}.btn-outline-danger:hover{color:#fff;background-color:#dc3545;border-color:#dc3545}.btn-outline-danger.focus,.btn-outline-danger:focus{box-shadow:0 0 0 .2rem rgba(220,53,69,.5)}.btn-outline-danger.disabled,.btn-outline-danger:disabled{color:#dc3545;background-color:transparent}.btn-outline-danger:not(:disabled):not(.disabled).active,.btn-outline-danger:not(:disabled):not(.disabled):active,.show>.btn-outline-danger.dropdown-toggle{color:#fff;background-color:#dc3545;border-color:#dc3545}.btn-outline-danger:not(:disabled):not(.disabled).active:focus,.btn-outline-danger:not(:disabled):not(.disabled):active:focus,.show>.btn-outline-danger.dropdown-toggle:focus{box-shadow:0 0 0 .2rem rgba(220,53,69,.5)}.btn-outline-light{color:#f8f9fa;border-color:#f8f9fa}.btn-outline-light:hover{color:#212529;background-color:#f8f9fa;border-color:#f8f9fa}.btn-outline-light.focus,.btn-outline-light:focus{box-shadow:0 0 0 .2rem rgba(248,249,250,.5)}.btn-outline-light.disabled,.btn-outline-light:disabled{color:#f8f9fa;background-color:transparent}.btn-outline-light:not(:disabled):not(.disabled).active,.btn-outline-light:not(:disabled):not(.disabled):active,.show>.btn-outline-light.dropdown-toggle{color:#212529;background-color:#f8f9fa;border-color:#f8f9fa}.btn-outline-light:not(:disabled):not(.disabled).active:focus,.btn-outline-light:not(:disabled):not(.disabled):active:focus,.show>.btn-outline-light.dropdown-toggle:focus{box-shadow:0 0 0 .2rem rgba(248,249,250,.5)}.btn-outline-dark{color:#343a40;border-color:#343a40}.btn-outline-dark:hover{color:#fff;background-color:#343a40;border-color:#343a40}.btn-outline-dark.focus,.btn-outline-dark:focus{box-shadow:0 0 0 .2rem rgba(52,58,64,.5)}.btn-outline-dark.disabled,.btn-outline-dark:disabled{color:#343a40;background-color:transparent}.btn-outline-dark:not(:disabled):not(.disabled).active,.btn-outline-dark:not(:disabled):not(.disabled):active,.show>.btn-outline-dark.dropdown-toggle{color:#fff;background-color:#343a40;border-color:#343a40}.btn-outline-dark:not(:disabled):not(.disabled).active:focus,.btn-outline-dark:not(:disabled):not(.disabled):active:focus,.show>.btn-outline-dark.dropdown-toggle:focus{box-shadow:0 0 0 .2rem rgba(52,58,64,.5)}.btn-link{font-weight:400;color:#007bff;text-decoration:none}.btn-link:hover{color:#0056b3;text-decoration:underline}.btn-link.focus,.btn-link:focus{text-decoration:underline;box-shadow:none}.btn-link.disabled,.btn-link:disabled{color:#6c757d;pointer-events:none}.btn-group-lg>.btn,.btn-lg{padding:.5rem 1rem;font-size:1.25rem;line-height:1.5;border-radius:.3rem}.btn-group-sm>.btn,.btn-sm{padding:.25rem .5rem;font-size:.875rem;line-height:1.5;border-radius:.2rem}.btn-block{display:block;width:100%}.btn-block+.btn-block{margin-top:.5rem}input[type=button].btn-block,input[type=reset].btn-block,input[type=submit].btn-block{width:100%}.fade{transition:opacity .15s linear}@media (prefers-reduced-motion:reduce){.fade{transition:none}}.fade:not(.show){opacity:0}.collapse:not(.show){display:none}.collapsing{position:relative;height:0;overflow:hidden;transition:height .35s ease}@media (prefers-reduced-motion:reduce){.collapsing{transition:none}}.dropdown,.dropleft,.dropright,.dropup{position:relative}.dropdown-toggle{white-space:nowrap}.dropdown-toggle::after{display:inline-block;margin-left:.255em;vertical-align:.255em;content:"";border-top:.3em solid;border-right:.3em solid transparent;border-bottom:0;border-left:.3em solid transparent}.dropdown-toggle:empty::after{margin-left:0}.dropdown-menu{position:absolute;top:100%;left:0;z-index:1000;display:none;float:left;min-width:10rem;padding:.5rem 0;margin:.125rem 0 0;font-size:1rem;color:#212529;text-align:left;list-style:none;background-color:#fff;background-clip:padding-box;border:1px solid rgba(0,0,0,.15);border-radius:.25rem}.dropdown-menu-left{right:auto;left:0}.dropdown-menu-right{right:0;left:auto}@media (min-width:576px){.dropdown-menu-sm-left{right:auto;left:0}.dropdown-menu-sm-right{right:0;left:auto}}@media (min-width:768px){.dropdown-menu-md-left{right:auto;left:0}.dropdown-menu-md-right{right:0;left:auto}}@media (min-width:992px){.dropdown-menu-lg-left{right:auto;left:0}.dropdown-menu-lg-right{right:0;left:auto}}@media (min-width:1200px){.dropdown-menu-xl-left{right:auto;left:0}.dropdown-menu-xl-right{right:0;left:auto}}.dropup .dropdown-menu{top:auto;bottom:100%;margin-top:0;margin-bottom:.125rem}.dropup .dropdown-toggle::after{display:inline-block;margin-left:.255em;vertical-align:.255em;content:"";border-top:0;border-right:.3em solid transparent;border-bottom:.3em solid;border-left:.3em solid transparent}.dropup .dropdown-toggle:empty::after{margin-left:0}.dropright .dropdown-menu{top:0;right:auto;left:100%;margin-top:0;margin-left:.125rem}.dropright .dropdown-toggle::after{display:inline-block;margin-left:.255em;vertical-align:.255em;content:"";border-top:.3em solid transparent;border-right:0;border-bottom:.3em solid transparent;border-left:.3em solid}.dropright .dropdown-toggle:empty::after{margin-left:0}.dropright .dropdown-toggle::after{vertical-align:0}.dropleft .dropdown-menu{top:0;right:100%;left:auto;margin-top:0;margin-right:.125rem}.dropleft .dropdown-toggle::after{display:inline-block;margin-left:.255em;vertical-align:.255em;content:""}.dropleft .dropdown-toggle::after{display:none}.dropleft .dropdown-toggle::before{display:inline-block;margin-right:.255em;vertical-align:.255em;content:"";border-top:.3em solid transparent;border-right:.3em solid;border-bottom:.3em solid transparent}.dropleft .dropdown-toggle:empty::after{margin-left:0}.dropleft .dropdown-toggle::before{vertical-align:0}.dropdown-menu[x-placement^=bottom],.dropdown-menu[x-placement^=left],.dropdown-menu[x-placement^=right],.dropdown-menu[x-placement^=top]{right:auto;bottom:auto}.dropdown-divider{height:0;margin:.5rem 0;overflow:hidden;border-top:1px solid #e9ecef}.dropdown-item{display:block;width:100%;padding:.25rem 1.5rem;clear:both;font-weight:400;color:#212529;text-align:inherit;white-space:nowrap;background-color:transparent;border:0}.dropdown-item:focus,.dropdown-item:hover{color:#16181b;text-decoration:none;background-color:#f8f9fa}.dropdown-item.active,.dropdown-item:active{color:#fff;text-decoration:none;background-color:#007bff}.dropdown-item.disabled,.dropdown-item:disabled{color:#6c757d;pointer-events:none;background-color:transparent}.dropdown-menu.show{display:block}.dropdown-header{display:block;padding:.5rem 1.5rem;margin-bottom:0;font-size:.875rem;color:#6c757d;white-space:nowrap}.dropdown-item-text{display:block;padding:.25rem 1.5rem;color:#212529}.btn-group,.btn-group-vertical{position:relative;display:-ms-inline-flexbox;display:inline-flex;vertical-align:middle}.btn-group-vertical>.btn,.btn-group>.btn{position:relative;-ms-flex:1 1 auto;flex:1 1 auto}.btn-group-vertical>.btn:hover,.btn-group>.btn:hover{z-index:1}.btn-group-vertical>.btn.active,.btn-group-vertical>.btn:active,.btn-group-vertical>.btn:focus,.btn-group>.btn.active,.btn-group>.btn:active,.btn-group>.btn:focus{z-index:1}.btn-toolbar{display:-ms-flexbox;display:flex;-ms-flex-wrap:wrap;flex-wrap:wrap;-ms-flex-pack:start;justify-content:flex-start}.btn-toolbar .input-group{width:auto}.btn-group>.btn-group:not(:first-child),.btn-group>.btn:not(:first-child){margin-left:-1px}.btn-group>.btn-group:not(:last-child)>.btn,.btn-group>.btn:not(:last-child):not(.dropdown-toggle){border-top-right-radius:0;border-bottom-right-radius:0}.btn-group>.btn-group:not(:first-child)>.btn,.btn-group>.btn:not(:first-child){border-top-left-radius:0;border-bottom-left-radius:0}.dropdown-toggle-split{padding-right:.5625rem;padding-left:.5625rem}.dropdown-toggle-split::after,.dropright .dropdown-toggle-split::after,.dropup .dropdown-toggle-split::after{margin-left:0}.dropleft .dropdown-toggle-split::before{margin-right:0}.btn-group-sm>.btn+.dropdown-toggle-split,.btn-sm+.dropdown-toggle-split{padding-right:.375rem;padding-left:.375rem}.btn-group-lg>.btn+.dropdown-toggle-split,.btn-lg+.dropdown-toggle-split{padding-right:.75rem;padding-left:.75rem}.btn-group-vertical{-ms-flex-direction:column;flex-direction:column;-ms-flex-align:start;align-items:flex-start;-ms-flex-pack:center;justify-content:center}.btn-group-vertical>.btn,.btn-group-vertical>.btn-group{width:100%}.btn-group-vertical>.btn-group:not(:first-child),.btn-group-vertical>.btn:not(:first-child){margin-top:-1px}.btn-group-vertical>.btn-group:not(:last-child)>.btn,.btn-group-vertical>.btn:not(:last-child):not(.dropdown-toggle){border-bottom-right-radius:0;border-bottom-left-radius:0}.btn-group-vertical>.btn-group:not(:first-child)>.btn,.btn-group-vertical>.btn:not(:first-child){border-top-left-radius:0;border-top-right-radius:0}.btn-group-toggle>.btn,.btn-group-toggle>.btn-group>.btn{margin-bottom:0}.btn-group-toggle>.btn input[type=checkbox],.btn-group-toggle>.btn input[type=radio],.btn-group-toggle>.btn-group>.btn input[type=checkbox],.btn-group-toggle>.btn-group>.btn input[type=radio]{position:absolute;clip:rect(0,0,0,0);pointer-events:none}.input-group{position:relative;display:-ms-flexbox;display:flex;-ms-flex-wrap:wrap;flex-wrap:wrap;-ms-flex-align:stretch;align-items:stretch;width:100%}.input-group>.custom-file,.input-group>.custom-select,.input-group>.form-control,.input-group>.form-control-plaintext{position:relative;-ms-flex:1 1 auto;flex:1 1 auto;width:1%;margin-bottom:0}.input-group>.custom-file+.custom-file,.input-group>.custom-file+.custom-select,.input-group>.custom-file+.form-control,.input-group>.custom-select+.custom-file,.input-group>.custom-select+.custom-select,.input-group>.custom-select+.form-control,.input-group>.form-control+.custom-file,.input-group>.form-control+.custom-select,.input-group>.form-control+.form-control,.input-group>.form-control-plaintext+.custom-file,.input-group>.form-control-plaintext+.custom-select,.input-group>.form-control-plaintext+.form-control{margin-left:-1px}.input-group>.custom-file .custom-file-input:focus~.custom-file-label,.input-group>.custom-select:focus,.input-group>.form-control:focus{z-index:3}.input-group>.custom-file .custom-file-input:focus{z-index:4}.input-group>.custom-select:not(:last-child),.input-group>.form-control:not(:last-child){border-top-right-radius:0;border-bottom-right-radius:0}.input-group>.custom-select:not(:first-child),.input-group>.form-control:not(:first-child){border-top-left-radius:0;border-bottom-left-radius:0}.input-group>.custom-file{display:-ms-flexbox;display:flex;-ms-flex-align:center;align-items:center}.input-group>.custom-file:not(:last-child) .custom-file-label,.input-group>.custom-file:not(:last-child) .custom-file-label::after{border-top-right-radius:0;border-bottom-right-radius:0}.input-group>.custom-file:not(:first-child) .custom-file-label{border-top-left-radius:0;border-bottom-left-radius:0}.input-group-append,.input-group-prepend{display:-ms-flexbox;display:flex}.input-group-append .btn,.input-group-prepend .btn{position:relative;z-index:2}.input-group-append .btn:focus,.input-group-prepend .btn:focus{z-index:3}.input-group-append .btn+.btn,.input-group-append .btn+.input-group-text,.input-group-append .input-group-text+.btn,.input-group-append .input-group-text+.input-group-text,.input-group-prepend .btn+.btn,.input-group-prepend .btn+.input-group-text,.input-group-prepend .input-group-text+.btn,.input-group-prepend .input-group-text+.input-group-text{margin-left:-1px}.input-group-prepend{margin-right:-1px}.input-group-append{margin-left:-1px}.input-group-text{display:-ms-flexbox;display:flex;-ms-flex-align:center;align-items:center;padding:.375rem .75rem;margin-bottom:0;font-size:1rem;font-weight:400;line-height:1.5;color:#495057;text-align:center;white-space:nowrap;background-color:#e9ecef;border:1px solid #ced4da;border-radius:.25rem}.input-group-text input[type=checkbox],.input-group-text input[type=radio]{margin-top:0}.input-group-lg>.custom-select,.input-group-lg>.form-control:not(textarea){height:calc(1.5em + 1rem + 2px)}.input-group-lg>.custom-select,.input-group-lg>.form-control,.input-group-lg>.input-group-append>.btn,.input-group-lg>.input-group-append>.input-group-text,.input-group-lg>.input-group-prepend>.btn,.input-group-lg>.input-group-prepend>.input-group-text{padding:.5rem 1rem;font-size:1.25rem;line-height:1.5;border-radius:.3rem}.input-group-sm>.custom-select,.input-group-sm>.form-control:not(textarea){height:calc(1.5em + .5rem + 2px)}.input-group-sm>.custom-select,.input-group-sm>.form-control,.input-group-sm>.input-group-append>.btn,.input-group-sm>.input-group-append>.input-group-text,.input-group-sm>.input-group-prepend>.btn,.input-group-sm>.input-group-prepend>.input-group-text{padding:.25rem .5rem;font-size:.875rem;line-height:1.5;border-radius:.2rem}.input-group-lg>.custom-select,.input-group-sm>.custom-select{padding-right:1.75rem}.input-group>.input-group-append:last-child>.btn:not(:last-child):not(.dropdown-toggle),.input-group>.input-group-append:last-child>.input-group-text:not(:last-child),.input-group>.input-group-append:not(:last-child)>.btn,.input-group>.input-group-append:not(:last-child)>.input-group-text,.input-group>.input-group-prepend>.btn,.input-group>.input-group-prepend>.input-group-text{border-top-right-radius:0;border-bottom-right-radius:0}.input-group>.input-group-append>.btn,.input-group>.input-group-append>.input-group-text,.input-group>.input-group-prepend:first-child>.btn:not(:first-child),.input-group>.input-group-prepend:first-child>.input-group-text:not(:first-child),.input-group>.input-group-prepend:not(:first-child)>.btn,.input-group>.input-group-prepend:not(:first-child)>.input-group-text{border-top-left-radius:0;border-bottom-left-radius:0}.custom-control{position:relative;display:block;min-height:1.5rem;padding-left:1.5rem}.custom-control-inline{display:-ms-inline-flexbox;display:inline-flex;margin-right:1rem}.custom-control-input{position:absolute;z-index:-1;opacity:0}.custom-control-input:checked~.custom-control-label::before{color:#fff;border-color:#007bff;background-color:#007bff}.custom-control-input:focus~.custom-control-label::before{box-shadow:0 0 0 .2rem rgba(0,123,255,.25)}.custom-control-input:focus:not(:checked)~.custom-control-label::before{border-color:#80bdff}.custom-control-input:not(:disabled):active~.custom-control-label::before{color:#fff;background-color:#b3d7ff;border-color:#b3d7ff}.custom-control-input:disabled~.custom-control-label{color:#6c757d}.custom-control-input:disabled~.custom-control-label::before{background-color:#e9ecef}.custom-control-label{position:relative;margin-bottom:0;vertical-align:top}.custom-control-label::before{position:absolute;top:.25rem;left:-1.5rem;display:block;width:1rem;height:1rem;pointer-events:none;content:"";background-color:#fff;border:#adb5bd solid 1px}.custom-control-label::after{position:absolute;top:.25rem;left:-1.5rem;display:block;width:1rem;height:1rem;content:"";background:no-repeat 50%/50% 50%}.custom-checkbox .custom-control-label::before{border-radius:.25rem}.custom-checkbox .custom-control-input:checked~.custom-control-label::after{background-image:url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 8 8'%3e%3cpath fill='%23fff' d='M6.564.75l-3.59 3.612-1.538-1.55L0 4.26 2.974 7.25 8 2.193z'/%3e%3c/svg%3e")}.custom-checkbox .custom-control-input:indeterminate~.custom-control-label::before{border-color:#007bff;background-color:#007bff}.custom-checkbox .custom-control-input:indeterminate~.custom-control-label::after{background-image:url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 4 4'%3e%3cpath stroke='%23fff' d='M0 2h4'/%3e%3c/svg%3e")}.custom-checkbox .custom-control-input:disabled:checked~.custom-control-label::before{background-color:rgba(0,123,255,.5)}.custom-checkbox .custom-control-input:disabled:indeterminate~.custom-control-label::before{background-color:rgba(0,123,255,.5)}.custom-radio .custom-control-label::before{border-radius:50%}.custom-radio .custom-control-input:checked~.custom-control-label::after{background-image:url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='-4 -4 8 8'%3e%3ccircle r='3' fill='%23fff'/%3e%3c/svg%3e")}.custom-radio .custom-control-input:disabled:checked~.custom-control-label::before{background-color:rgba(0,123,255,.5)}.custom-switch{padding-left:2.25rem}.custom-switch .custom-control-label::before{left:-2.25rem;width:1.75rem;pointer-events:all;border-radius:.5rem}.custom-switch .custom-control-label::after{top:calc(.25rem + 2px);left:calc(-2.25rem + 2px);width:calc(1rem - 4px);height:calc(1rem - 4px);background-color:#adb5bd;border-radius:.5rem;transition:background-color .15s ease-in-out,border-color .15s ease-in-out,box-shadow .15s ease-in-out,-webkit-transform .15s ease-in-out;transition:transform .15s ease-in-out,background-color .15s ease-in-out,border-color .15s ease-in-out,box-shadow .15s ease-in-out;transition:transform .15s ease-in-out,background-color .15s ease-in-out,border-color .15s ease-in-out,box-shadow .15s ease-in-out,-webkit-transform .15s ease-in-out}@media (prefers-reduced-motion:reduce){.custom-switch .custom-control-label::after{transition:none}}.custom-switch .custom-control-input:checked~.custom-control-label::after{background-color:#fff;-webkit-transform:translateX(.75rem);transform:translateX(.75rem)}.custom-switch .custom-control-input:disabled:checked~.custom-control-label::before{background-color:rgba(0,123,255,.5)}.custom-select{display:inline-block;width:100%;height:calc(1.5em + .75rem + 2px);padding:.375rem 1.75rem .375rem .75rem;font-size:1rem;font-weight:400;line-height:1.5;color:#495057;vertical-align:middle;background:url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 4 5'%3e%3cpath fill='%23343a40' d='M2 0L0 2h4zm0 5L0 3h4z'/%3e%3c/svg%3e") no-repeat right .75rem center/8px 10px;background-color:#fff;border:1px solid #ced4da;border-radius:.25rem;-webkit-appearance:none;-moz-appearance:none;appearance:none}.custom-select:focus{border-color:#80bdff;outline:0;box-shadow:0 0 0 .2rem rgba(0,123,255,.25)}.custom-select:focus::-ms-value{color:#495057;background-color:#fff}.custom-select[multiple],.custom-select[size]:not([size="1"]){height:auto;padding-right:.75rem;background-image:none}.custom-select:disabled{color:#6c757d;background-color:#e9ecef}.custom-select::-ms-expand{display:none}.custom-select-sm{height:calc(1.5em + .5rem + 2px);padding-top:.25rem;padding-bottom:.25rem;padding-left:.5rem;font-size:.875rem}.custom-select-lg{height:calc(1.5em + 1rem + 2px);padding-top:.5rem;padding-bottom:.5rem;padding-left:1rem;font-size:1.25rem}.custom-file{position:relative;display:inline-block;width:100%;height:calc(1.5em + .75rem + 2px);margin-bottom:0}.custom-file-input{position:relative;z-index:2;width:100%;height:calc(1.5em + .75rem + 2px);margin:0;opacity:0}.custom-file-input:focus~.custom-file-label{border-color:#80bdff;box-shadow:0 0 0 .2rem rgba(0,123,255,.25)}.custom-file-input:disabled~.custom-file-label{background-color:#e9ecef}.custom-file-input:lang(en)~.custom-file-label::after{content:"Browse"}.custom-file-input~.custom-file-label[data-browse]::after{content:attr(data-browse)}.custom-file-label{position:absolute;top:0;right:0;left:0;z-index:1;height:calc(1.5em + .75rem + 2px);padding:.375rem .75rem;font-weight:400;line-height:1.5;color:#495057;background-color:#fff;border:1px solid #ced4da;border-radius:.25rem}.custom-file-label::after{position:absolute;top:0;right:0;bottom:0;z-index:3;display:block;height:calc(1.5em + .75rem);padding:.375rem .75rem;line-height:1.5;color:#495057;content:"Browse";background-color:#e9ecef;border-left:inherit;border-radius:0 .25rem .25rem 0}.custom-range{width:100%;height:calc(1rem + .4rem);padding:0;background-color:transparent;-webkit-appearance:none;-moz-appearance:none;appearance:none}.custom-range:focus{outline:0}.custom-range:focus::-webkit-slider-thumb{box-shadow:0 0 0 1px #fff,0 0 0 .2rem rgba(0,123,255,.25)}.custom-range:focus::-moz-range-thumb{box-shadow:0 0 0 1px #fff,0 0 0 .2rem rgba(0,123,255,.25)}.custom-range:focus::-ms-thumb{box-shadow:0 0 0 1px #fff,0 0 0 .2rem rgba(0,123,255,.25)}.custom-range::-moz-focus-outer{border:0}.custom-range::-webkit-slider-thumb{width:1rem;height:1rem;margin-top:-.25rem;background-color:#007bff;border:0;border-radius:1rem;transition:background-color .15s ease-in-out,border-color .15s ease-in-out,box-shadow .15s ease-in-out;-webkit-appearance:none;appearance:none}@media (prefers-reduced-motion:reduce){.custom-range::-webkit-slider-thumb{transition:none}}.custom-range::-webkit-slider-thumb:active{background-color:#b3d7ff}.custom-range::-webkit-slider-runnable-track{width:100%;height:.5rem;color:transparent;cursor:pointer;background-color:#dee2e6;border-color:transparent;border-radius:1rem}.custom-range::-moz-range-thumb{width:1rem;height:1rem;background-color:#007bff;border:0;border-radius:1rem;transition:background-color .15s ease-in-out,border-color .15s ease-in-out,box-shadow .15s ease-in-out;-moz-appearance:none;appearance:none}@media (prefers-reduced-motion:reduce){.custom-range::-moz-range-thumb{transition:none}}.custom-range::-moz-range-thumb:active{background-color:#b3d7ff}.custom-range::-moz-range-track{width:100%;height:.5rem;color:transparent;cursor:pointer;background-color:#dee2e6;border-color:transparent;border-radius:1rem}.custom-range::-ms-thumb{width:1rem;height:1rem;margin-top:0;margin-right:.2rem;margin-left:.2rem;background-color:#007bff;border:0;border-radius:1rem;transition:background-color .15s ease-in-out,border-color .15s ease-in-out,box-shadow .15s ease-in-out;appearance:none}@media (prefers-reduced-motion:reduce){.custom-range::-ms-thumb{transition:none}}.custom-range::-ms-thumb:active{background-color:#b3d7ff}.custom-range::-ms-track{width:100%;height:.5rem;color:transparent;cursor:pointer;background-color:transparent;border-color:transparent;border-width:.5rem}.custom-range::-ms-fill-lower{background-color:#dee2e6;border-radius:1rem}.custom-range::-ms-fill-upper{margin-right:15px;background-color:#dee2e6;border-radius:1rem}.custom-range:disabled::-webkit-slider-thumb{background-color:#adb5bd}.custom-range:disabled::-webkit-slider-runnable-track{cursor:default}.custom-range:disabled::-moz-range-thumb{background-color:#adb5bd}.custom-range:disabled::-moz-range-track{cursor:default}.custom-range:disabled::-ms-thumb{background-color:#adb5bd}.custom-control-label::before,.custom-file-label,.custom-select{transition:background-color .15s ease-in-out,border-color .15s ease-in-out,box-shadow .15s ease-in-out}@media (prefers-reduced-motion:reduce){.custom-control-label::before,.custom-file-label,.custom-select{transition:none}}.nav{display:-ms-flexbox;display:flex;-ms-flex-wrap:wrap;flex-wrap:wrap;padding-left:0;margin-bottom:0;list-style:none}.nav-link{display:block;padding:.5rem 1rem}.nav-link:focus,.nav-link:hover{text-decoration:none}.nav-link.disabled{color:#6c757d;pointer-events:none;cursor:default}.nav-tabs{border-bottom:1px solid #dee2e6}.nav-tabs .nav-item{margin-bottom:-1px}.nav-tabs .nav-link{border:1px solid transparent;border-top-left-radius:.25rem;border-top-right-radius:.25rem}.nav-tabs .nav-link:focus,.nav-tabs .nav-link:hover{border-color:#e9ecef #e9ecef #dee2e6}.nav-tabs .nav-link.disabled{color:#6c757d;background-color:transparent;border-color:transparent}.nav-tabs .nav-item.show .nav-link,.nav-tabs .nav-link.active{color:#495057;background-color:#fff;border-color:#dee2e6 #dee2e6 #fff}.nav-tabs .dropdown-menu{margin-top:-1px;border-top-left-radius:0;border-top-right-radius:0}.nav-pills .nav-link{border-radius:.25rem}.nav-pills .nav-link.active,.nav-pills .show>.nav-link{color:#fff;background-color:#007bff}.nav-fill .nav-item{-ms-flex:1 1 auto;flex:1 1 auto;text-align:center}.nav-justified .nav-item{-ms-flex-preferred-size:0;flex-basis:0;-ms-flex-positive:1;flex-grow:1;text-align:center}.tab-content>.tab-pane{display:none}.tab-content>.active{display:block}.navbar{position:relative;display:-ms-flexbox;display:flex;-ms-flex-wrap:wrap;flex-wrap:wrap;-ms-flex-align:center;align-items:center;-ms-flex-pack:justify;justify-content:space-between;padding:.5rem 1rem}.navbar>.container,.navbar>.container-fluid{display:-ms-flexbox;display:flex;-ms-flex-wrap:wrap;flex-wrap:wrap;-ms-flex-align:center;align-items:center;-ms-flex-pack:justify;justify-content:space-between}.navbar-brand{display:inline-block;padding-top:.3125rem;padding-bottom:.3125rem;margin-right:1rem;font-size:1.25rem;line-height:inherit;white-space:nowrap}.navbar-brand:focus,.navbar-brand:hover{text-decoration:none}.navbar-nav{display:-ms-flexbox;display:flex;-ms-flex-direction:column;flex-direction:column;padding-left:0;margin-bottom:0;list-style:none}.navbar-nav .nav-link{padding-right:0;padding-left:0}.navbar-nav .dropdown-menu{position:static;float:none}.navbar-text{display:inline-block;padding-top:.5rem;padding-bottom:.5rem}.navbar-collapse{-ms-flex-preferred-size:100%;flex-basis:100%;-ms-flex-positive:1;flex-grow:1;-ms-flex-align:center;align-items:center}.navbar-toggler{padding:.25rem .75rem;font-size:1.25rem;line-height:1;background-color:transparent;border:1px solid transparent;border-radius:.25rem}.navbar-toggler:focus,.navbar-toggler:hover{text-decoration:none}.navbar-toggler-icon{display:inline-block;width:1.5em;height:1.5em;vertical-align:middle;content:"";background:no-repeat center center;background-size:100% 100%}@media (max-width:575.98px){.navbar-expand-sm>.container,.navbar-expand-sm>.container-fluid{padding-right:0;padding-left:0}}@media (min-width:576px){.navbar-expand-sm{-ms-flex-flow:row nowrap;flex-flow:row nowrap;-ms-flex-pack:start;justify-content:flex-start}.navbar-expand-sm .navbar-nav{-ms-flex-direction:row;flex-direction:row}.navbar-expand-sm .navbar-nav .dropdown-menu{position:absolute}.navbar-expand-sm .navbar-nav .nav-link{padding-right:.5rem;padding-left:.5rem}.navbar-expand-sm>.container,.navbar-expand-sm>.container-fluid{-ms-flex-wrap:nowrap;flex-wrap:nowrap}.navbar-expand-sm .navbar-collapse{display:-ms-flexbox!important;display:flex!important;-ms-flex-preferred-size:auto;flex-basis:auto}.navbar-expand-sm .navbar-toggler{display:none}}@media (max-width:767.98px){.navbar-expand-md>.container,.navbar-expand-md>.container-fluid{padding-right:0;padding-left:0}}@media (min-width:768px){.navbar-expand-md{-ms-flex-flow:row nowrap;flex-flow:row nowrap;-ms-flex-pack:start;justify-content:flex-start}.navbar-expand-md .navbar-nav{-ms-flex-direction:row;flex-direction:row}.navbar-expand-md .navbar-nav .dropdown-menu{position:absolute}.navbar-expand-md .navbar-nav .nav-link{padding-right:.5rem;padding-left:.5rem}.navbar-expand-md>.container,.navbar-expand-md>.container-fluid{-ms-flex-wrap:nowrap;flex-wrap:nowrap}.navbar-expand-md .navbar-collapse{display:-ms-flexbox!important;display:flex!important;-ms-flex-preferred-size:auto;flex-basis:auto}.navbar-expand-md .navbar-toggler{display:none}}@media (max-width:991.98px){.navbar-expand-lg>.container,.navbar-expand-lg>.container-fluid{padding-right:0;padding-left:0}}@media (min-width:992px){.navbar-expand-lg{-ms-flex-flow:row nowrap;flex-flow:row nowrap;-ms-flex-pack:start;justify-content:flex-start}.navbar-expand-lg .navbar-nav{-ms-flex-direction:row;flex-direction:row}.navbar-expand-lg .navbar-nav .dropdown-menu{position:absolute}.navbar-expand-lg .navbar-nav .nav-link{padding-right:.5rem;padding-left:.5rem}.navbar-expand-lg>.container,.navbar-expand-lg>.container-fluid{-ms-flex-wrap:nowrap;flex-wrap:nowrap}.navbar-expand-lg .navbar-collapse{display:-ms-flexbox!important;display:flex!important;-ms-flex-preferred-size:auto;flex-basis:auto}.navbar-expand-lg .navbar-toggler{display:none}}@media (max-width:1199.98px){.navbar-expand-xl>.container,.navbar-expand-xl>.container-fluid{padding-right:0;padding-left:0}}@media (min-width:1200px){.navbar-expand-xl{-ms-flex-flow:row nowrap;flex-flow:row nowrap;-ms-flex-pack:start;justify-content:flex-start}.navbar-expand-xl .navbar-nav{-ms-flex-direction:row;flex-direction:row}.navbar-expand-xl .navbar-nav .dropdown-menu{position:absolute}.navbar-expand-xl .navbar-nav .nav-link{padding-right:.5rem;padding-left:.5rem}.navbar-expand-xl>.container,.navbar-expand-xl>.container-fluid{-ms-flex-wrap:nowrap;flex-wrap:nowrap}.navbar-expand-xl .navbar-collapse{display:-ms-flexbox!important;display:flex!important;-ms-flex-preferred-size:auto;flex-basis:auto}.navbar-expand-xl .navbar-toggler{display:none}}.navbar-expand{-ms-flex-flow:row nowrap;flex-flow:row nowrap;-ms-flex-pack:start;justify-content:flex-start}.navbar-expand>.container,.navbar-expand>.container-fluid{padding-right:0;padding-left:0}.navbar-expand .navbar-nav{-ms-flex-direction:row;flex-direction:row}.navbar-expand .navbar-nav .dropdown-menu{position:absolute}.navbar-expand .navbar-nav .nav-link{padding-right:.5rem;padding-left:.5rem}.navbar-expand>.container,.navbar-expand>.container-fluid{-ms-flex-wrap:nowrap;flex-wrap:nowrap}.navbar-expand .navbar-collapse{display:-ms-flexbox!important;display:flex!important;-ms-flex-preferred-size:auto;flex-basis:auto}.navbar-expand .navbar-toggler{display:none}.navbar-light .navbar-brand{color:rgba(0,0,0,.9)}.navbar-light .navbar-brand:focus,.navbar-light .navbar-brand:hover{color:rgba(0,0,0,.9)}.navbar-light .navbar-nav .nav-link{color:rgba(0,0,0,.5)}.navbar-light .navbar-nav .nav-link:focus,.navbar-light .navbar-nav .nav-link:hover{color:rgba(0,0,0,.7)}.navbar-light .navbar-nav .nav-link.disabled{color:rgba(0,0,0,.3)}.navbar-light .navbar-nav .active>.nav-link,.navbar-light .navbar-nav .nav-link.active,.navbar-light .navbar-nav .nav-link.show,.navbar-light .navbar-nav .show>.nav-link{color:rgba(0,0,0,.9)}.navbar-light .navbar-toggler{color:rgba(0,0,0,.5);border-color:rgba(0,0,0,.1)}.navbar-light .navbar-toggler-icon{background-image:url("data:image/svg+xml,%3csvg viewBox='0 0 30 30' xmlns='http://www.w3.org/2000/svg'%3e%3cpath stroke='rgba(0, 0, 0, 0.5)' stroke-width='2' stroke-linecap='round' stroke-miterlimit='10' d='M4 7h22M4 15h22M4 23h22'/%3e%3c/svg%3e")}.navbar-light .navbar-text{color:rgba(0,0,0,.5)}.navbar-light .navbar-text a{color:rgba(0,0,0,.9)}.navbar-light .navbar-text a:focus,.navbar-light .navbar-text a:hover{color:rgba(0,0,0,.9)}.navbar-dark .navbar-brand{color:#fff}.navbar-dark .navbar-brand:focus,.navbar-dark .navbar-brand:hover{color:#fff}.navbar-dark .navbar-nav .nav-link{color:rgba(255,255,255,.5)}.navbar-dark .navbar-nav .nav-link:focus,.navbar-dark .navbar-nav .nav-link:hover{color:rgba(255,255,255,.75)}.navbar-dark .navbar-nav .nav-link.disabled{color:rgba(255,255,255,.25)}.navbar-dark .navbar-nav .active>.nav-link,.navbar-dark .navbar-nav .nav-link.active,.navbar-dark .navbar-nav .nav-link.show,.navbar-dark .navbar-nav .show>.nav-link{color:#fff}.navbar-dark .navbar-toggler{color:rgba(255,255,255,.5);border-color:rgba(255,255,255,.1)}.navbar-dark .navbar-toggler-icon{background-image:url("data:image/svg+xml,%3csvg viewBox='0 0 30 30' xmlns='http://www.w3.org/2000/svg'%3e%3cpath stroke='rgba(255, 255, 255, 0.5)' stroke-width='2' stroke-linecap='round' stroke-miterlimit='10' d='M4 7h22M4 15h22M4 23h22'/%3e%3c/svg%3e")}.navbar-dark .navbar-text{color:rgba(255,255,255,.5)}.navbar-dark .navbar-text a{color:#fff}.navbar-dark .navbar-text a:focus,.navbar-dark .navbar-text a:hover{color:#fff}.card{position:relative;display:-ms-flexbox;display:flex;-ms-flex-direction:column;flex-direction:column;min-width:0;word-wrap:break-word;background-color:#fff;background-clip:border-box;border:1px solid rgba(0,0,0,.125);border-radius:.25rem}.card>hr{margin-right:0;margin-left:0}.card>.list-group:first-child .list-group-item:first-child{border-top-left-radius:.25rem;border-top-right-radius:.25rem}.card>.list-group:last-child .list-group-item:last-child{border-bottom-right-radius:.25rem;border-bottom-left-radius:.25rem}.card-body{-ms-flex:1 1 auto;flex:1 1 auto;padding:1.25rem}.card-title{margin-bottom:.75rem}.card-subtitle{margin-top:-.375rem;margin-bottom:0}.card-text:last-child{margin-bottom:0}.card-link:hover{text-decoration:none}.card-link+.card-link{margin-left:1.25rem}.card-header{padding:.75rem 1.25rem;margin-bottom:0;background-color:rgba(0,0,0,.03);border-bottom:1px solid rgba(0,0,0,.125)}.card-header:first-child{border-radius:calc(.25rem - 1px) calc(.25rem - 1px) 0 0}.card-header+.list-group .list-group-item:first-child{border-top:0}.card-footer{padding:.75rem 1.25rem;background-color:rgba(0,0,0,.03);border-top:1px solid rgba(0,0,0,.125)}.card-footer:last-child{border-radius:0 0 calc(.25rem - 1px) calc(.25rem - 1px)}.card-header-tabs{margin-right:-.625rem;margin-bottom:-.75rem;margin-left:-.625rem;border-bottom:0}.card-header-pills{margin-right:-.625rem;margin-left:-.625rem}.card-img-overlay{position:absolute;top:0;right:0;bottom:0;left:0;padding:1.25rem}.card-img{width:100%;border-radius:calc(.25rem - 1px)}.card-img-top{width:100%;border-top-left-radius:calc(.25rem - 1px);border-top-right-radius:calc(.25rem - 1px)}.card-img-bottom{width:100%;border-bottom-right-radius:calc(.25rem - 1px);border-bottom-left-radius:calc(.25rem - 1px)}.card-deck{display:-ms-flexbox;display:flex;-ms-flex-direction:column;flex-direction:column}.card-deck .card{margin-bottom:15px}@media (min-width:576px){.card-deck{-ms-flex-flow:row wrap;flex-flow:row wrap;margin-right:-15px;margin-left:-15px}.card-deck .card{display:-ms-flexbox;display:flex;-ms-flex:1 0 0%;flex:1 0 0%;-ms-flex-direction:column;flex-direction:column;margin-right:15px;margin-bottom:0;margin-left:15px}}.card-group{display:-ms-flexbox;display:flex;-ms-flex-direction:column;flex-direction:column}.card-group>.card{margin-bottom:15px}@media (min-width:576px){.card-group{-ms-flex-flow:row wrap;flex-flow:row wrap}.card-group>.card{-ms-flex:1 0 0%;flex:1 0 0%;margin-bottom:0}.card-group>.card+.card{margin-left:0;border-left:0}.card-group>.card:not(:last-child){border-top-right-radius:0;border-bottom-right-radius:0}.card-group>.card:not(:last-child) .card-header,.card-group>.card:not(:last-child) .card-img-top{border-top-right-radius:0}.card-group>.card:not(:last-child) .card-footer,.card-group>.card:not(:last-child) .card-img-bottom{border-bottom-right-radius:0}.card-group>.card:not(:first-child){border-top-left-radius:0;border-bottom-left-radius:0}.card-group>.card:not(:first-child) .card-header,.card-group>.card:not(:first-child) .card-img-top{border-top-left-radius:0}.card-group>.card:not(:first-child) .card-footer,.card-group>.card:not(:first-child) .card-img-bottom{border-bottom-left-radius:0}}.card-columns .card{margin-bottom:.75rem}@media (min-width:576px){.card-columns{-webkit-column-count:3;-moz-column-count:3;column-count:3;-webkit-column-gap:1.25rem;-moz-column-gap:1.25rem;column-gap:1.25rem;orphans:1;widows:1}.card-columns .card{display:inline-block;width:100%}}.accordion>.card{overflow:hidden}.accordion>.card:not(:first-of-type) .card-header:first-child{border-radius:0}.accordion>.card:not(:first-of-type):not(:last-of-type){border-bottom:0;border-radius:0}.accordion>.card:first-of-type{border-bottom:0;border-bottom-right-radius:0;border-bottom-left-radius:0}.accordion>.card:last-of-type{border-top-left-radius:0;border-top-right-radius:0}.accordion>.card .card-header{margin-bottom:-1px}.breadcrumb{display:-ms-flexbox;display:flex;-ms-flex-wrap:wrap;flex-wrap:wrap;padding:.75rem 1rem;margin-bottom:1rem;list-style:none;background-color:#e9ecef;border-radius:.25rem}.breadcrumb-item+.breadcrumb-item{padding-left:.5rem}.breadcrumb-item+.breadcrumb-item::before{display:inline-block;padding-right:.5rem;color:#6c757d;content:"/"}.breadcrumb-item+.breadcrumb-item:hover::before{text-decoration:underline}.breadcrumb-item+.breadcrumb-item:hover::before{text-decoration:none}.breadcrumb-item.active{color:#6c757d}.pagination{display:-ms-flexbox;display:flex;padding-left:0;list-style:none;border-radius:.25rem}.page-link{position:relative;display:block;padding:.5rem .75rem;margin-left:-1px;line-height:1.25;color:#007bff;background-color:#fff;border:1px solid #dee2e6}.page-link:hover{z-index:2;color:#0056b3;text-decoration:none;background-color:#e9ecef;border-color:#dee2e6}.page-link:focus{z-index:2;outline:0;box-shadow:0 0 0 .2rem rgba(0,123,255,.25)}.page-item:first-child .page-link{margin-left:0;border-top-left-radius:.25rem;border-bottom-left-radius:.25rem}.page-item:last-child .page-link{border-top-right-radius:.25rem;border-bottom-right-radius:.25rem}.page-item.active .page-link{z-index:1;color:#fff;background-color:#007bff;border-color:#007bff}.page-item.disabled .page-link{color:#6c757d;pointer-events:none;cursor:auto;background-color:#fff;border-color:#dee2e6}.pagination-lg .page-link{padding:.75rem 1.5rem;font-size:1.25rem;line-height:1.5}.pagination-lg .page-item:first-child .page-link{border-top-left-radius:.3rem;border-bottom-left-radius:.3rem}.pagination-lg .page-item:last-child .page-link{border-top-right-radius:.3rem;border-bottom-right-radius:.3rem}.pagination-sm .page-link{padding:.25rem .5rem;font-size:.875rem;line-height:1.5}.pagination-sm .page-item:first-child .page-link{border-top-left-radius:.2rem;border-bottom-left-radius:.2rem}.pagination-sm .page-item:last-child .page-link{border-top-right-radius:.2rem;border-bottom-right-radius:.2rem}.badge{display:inline-block;padding:.25em .4em;font-size:75%;font-weight:700;line-height:1;text-align:center;white-space:nowrap;vertical-align:baseline;border-radius:.25rem;transition:color .15s ease-in-out,background-color .15s ease-in-out,border-color .15s ease-in-out,box-shadow .15s ease-in-out}@media (prefers-reduced-motion:reduce){.badge{transition:none}}a.badge:focus,a.badge:hover{text-decoration:none}.badge:empty{display:none}.btn .badge{position:relative;top:-1px}.badge-pill{padding-right:.6em;padding-left:.6em;border-radius:10rem}.badge-primary{color:#fff;background-color:#007bff}a.badge-primary:focus,a.badge-primary:hover{color:#fff;background-color:#0062cc}a.badge-primary.focus,a.badge-primary:focus{outline:0;box-shadow:0 0 0 .2rem rgba(0,123,255,.5)}.badge-secondary{color:#fff;background-color:#6c757d}a.badge-secondary:focus,a.badge-secondary:hover{color:#fff;background-color:#545b62}a.badge-secondary.focus,a.badge-secondary:focus{outline:0;box-shadow:0 0 0 .2rem rgba(108,117,125,.5)}.badge-success{color:#fff;background-color:#28a745}a.badge-success:focus,a.badge-success:hover{color:#fff;background-color:#1e7e34}a.badge-success.focus,a.badge-success:focus{outline:0;box-shadow:0 0 0 .2rem rgba(40,167,69,.5)}.badge-info{color:#fff;background-color:#17a2b8}a.badge-info:focus,a.badge-info:hover{color:#fff;background-color:#117a8b}a.badge-info.focus,a.badge-info:focus{outline:0;box-shadow:0 0 0 .2rem rgba(23,162,184,.5)}.badge-warning{color:#212529;background-color:#ffc107}a.badge-warning:focus,a.badge-warning:hover{color:#212529;background-color:#d39e00}a.badge-warning.focus,a.badge-warning:focus{outline:0;box-shadow:0 0 0 .2rem rgba(255,193,7,.5)}.badge-danger{color:#fff;background-color:#dc3545}a.badge-danger:focus,a.badge-danger:hover{color:#fff;background-color:#bd2130}a.badge-danger.focus,a.badge-danger:focus{outline:0;box-shadow:0 0 0 .2rem rgba(220,53,69,.5)}.badge-light{color:#212529;background-color:#f8f9fa}a.badge-light:focus,a.badge-light:hover{color:#212529;background-color:#dae0e5}a.badge-light.focus,a.badge-light:focus{outline:0;box-shadow:0 0 0 .2rem rgba(248,249,250,.5)}.badge-dark{color:#fff;background-color:#343a40}a.badge-dark:focus,a.badge-dark:hover{color:#fff;background-color:#1d2124}a.badge-dark.focus,a.badge-dark:focus{outline:0;box-shadow:0 0 0 .2rem rgba(52,58,64,.5)}.jumbotron{padding:2rem 1rem;margin-bottom:2rem;background-color:#e9ecef;border-radius:.3rem}@media (min-width:576px){.jumbotron{padding:4rem 2rem}}.jumbotron-fluid{padding-right:0;padding-left:0;border-radius:0}.alert{position:relative;padding:.75rem 1.25rem;margin-bottom:1rem;border:1px solid transparent;border-radius:.25rem}.alert-heading{color:inherit}.alert-link{font-weight:700}.alert-dismissible{padding-right:4rem}.alert-dismissible .close{position:absolute;top:0;right:0;padding:.75rem 1.25rem;color:inherit}.alert-primary{color:#004085;background-color:#cce5ff;border-color:#b8daff}.alert-primary hr{border-top-color:#9fcdff}.alert-primary .alert-link{color:#002752}.alert-secondary{color:#383d41;background-color:#e2e3e5;border-color:#d6d8db}.alert-secondary hr{border-top-color:#c8cbcf}.alert-secondary .alert-link{color:#202326}.alert-success{color:#155724;background-color:#d4edda;border-color:#c3e6cb}.alert-success hr{border-top-color:#b1dfbb}.alert-success .alert-link{color:#0b2e13}.alert-info{color:#0c5460;background-color:#d1ecf1;border-color:#bee5eb}.alert-info hr{border-top-color:#abdde5}.alert-info .alert-link{color:#062c33}.alert-warning{color:#856404;background-color:#fff3cd;border-color:#ffeeba}.alert-warning hr{border-top-color:#ffe8a1}.alert-warning .alert-link{color:#533f03}.alert-danger{color:#721c24;background-color:#f8d7da;border-color:#f5c6cb}.alert-danger hr{border-top-color:#f1b0b7}.alert-danger .alert-link{color:#491217}.alert-light{color:#818182;background-color:#fefefe;border-color:#fdfdfe}.alert-light hr{border-top-color:#ececf6}.alert-light .alert-link{color:#686868}.alert-dark{color:#1b1e21;background-color:#d6d8d9;border-color:#c6c8ca}.alert-dark hr{border-top-color:#b9bbbe}.alert-dark .alert-link{color:#040505}@-webkit-keyframes progress-bar-stripes{from{background-position:1rem 0}to{background-position:0 0}}@keyframes progress-bar-stripes{from{background-position:1rem 0}to{background-position:0 0}}.progress{display:-ms-flexbox;display:flex;height:1rem;overflow:hidden;font-size:.75rem;background-color:#e9ecef;border-radius:.25rem}.progress-bar{display:-ms-flexbox;display:flex;-ms-flex-direction:column;flex-direction:column;-ms-flex-pack:center;justify-content:center;color:#fff;text-align:center;white-space:nowrap;background-color:#007bff;transition:width .6s ease}@media (prefers-reduced-motion:reduce){.progress-bar{transition:none}}.progress-bar-striped{background-image:linear-gradient(45deg,rgba(255,255,255,.15) 25%,transparent 25%,transparent 50%,rgba(255,255,255,.15) 50%,rgba(255,255,255,.15) 75%,transparent 75%,transparent);background-size:1rem 1rem}.progress-bar-animated{-webkit-animation:progress-bar-stripes 1s linear infinite;animation:progress-bar-stripes 1s linear infinite}@media (prefers-reduced-motion:reduce){.progress-bar-animated{-webkit-animation:none;animation:none}}.media{display:-ms-flexbox;display:flex;-ms-flex-align:start;align-items:flex-start}.media-body{-ms-flex:1;flex:1}.list-group{display:-ms-flexbox;display:flex;-ms-flex-direction:column;flex-direction:column;padding-left:0;margin-bottom:0}.list-group-item-action{width:100%;color:#495057;text-align:inherit}.list-group-item-action:focus,.list-group-item-action:hover{z-index:1;color:#495057;text-decoration:none;background-color:#f8f9fa}.list-group-item-action:active{color:#212529;background-color:#e9ecef}.list-group-item{position:relative;display:block;padding:.75rem 1.25rem;margin-bottom:-1px;background-color:#fff;border:1px solid rgba(0,0,0,.125)}.list-group-item:first-child{border-top-left-radius:.25rem;border-top-right-radius:.25rem}.list-group-item:last-child{margin-bottom:0;border-bottom-right-radius:.25rem;border-bottom-left-radius:.25rem}.list-group-item.disabled,.list-group-item:disabled{color:#6c757d;pointer-events:none;background-color:#fff}.list-group-item.active{z-index:2;color:#fff;background-color:#007bff;border-color:#007bff}.list-group-horizontal{-ms-flex-direction:row;flex-direction:row}.list-group-horizontal .list-group-item{margin-right:-1px;margin-bottom:0}.list-group-horizontal .list-group-item:first-child{border-top-left-radius:.25rem;border-bottom-left-radius:.25rem;border-top-right-radius:0}.list-group-horizontal .list-group-item:last-child{margin-right:0;border-top-right-radius:.25rem;border-bottom-right-radius:.25rem;border-bottom-left-radius:0}@media (min-width:576px){.list-group-horizontal-sm{-ms-flex-direction:row;flex-direction:row}.list-group-horizontal-sm .list-group-item{margin-right:-1px;margin-bottom:0}.list-group-horizontal-sm .list-group-item:first-child{border-top-left-radius:.25rem;border-bottom-left-radius:.25rem;border-top-right-radius:0}.list-group-horizontal-sm .list-group-item:last-child{margin-right:0;border-top-right-radius:.25rem;border-bottom-right-radius:.25rem;border-bottom-left-radius:0}}@media (min-width:768px){.list-group-horizontal-md{-ms-flex-direction:row;flex-direction:row}.list-group-horizontal-md .list-group-item{margin-right:-1px;margin-bottom:0}.list-group-horizontal-md .list-group-item:first-child{border-top-left-radius:.25rem;border-bottom-left-radius:.25rem;border-top-right-radius:0}.list-group-horizontal-md .list-group-item:last-child{margin-right:0;border-top-right-radius:.25rem;border-bottom-right-radius:.25rem;border-bottom-left-radius:0}}@media (min-width:992px){.list-group-horizontal-lg{-ms-flex-direction:row;flex-direction:row}.list-group-horizontal-lg .list-group-item{margin-right:-1px;margin-bottom:0}.list-group-horizontal-lg .list-group-item:first-child{border-top-left-radius:.25rem;border-bottom-left-radius:.25rem;border-top-right-radius:0}.list-group-horizontal-lg .list-group-item:last-child{margin-right:0;border-top-right-radius:.25rem;border-bottom-right-radius:.25rem;border-bottom-left-radius:0}}@media (min-width:1200px){.list-group-horizontal-xl{-ms-flex-direction:row;flex-direction:row}.list-group-horizontal-xl .list-group-item{margin-right:-1px;margin-bottom:0}.list-group-horizontal-xl .list-group-item:first-child{border-top-left-radius:.25rem;border-bottom-left-radius:.25rem;border-top-right-radius:0}.list-group-horizontal-xl .list-group-item:last-child{margin-right:0;border-top-right-radius:.25rem;border-bottom-right-radius:.25rem;border-bottom-left-radius:0}}.list-group-flush .list-group-item{border-right:0;border-left:0;border-radius:0}.list-group-flush .list-group-item:last-child{margin-bottom:-1px}.list-group-flush:first-child .list-group-item:first-child{border-top:0}.list-group-flush:last-child .list-group-item:last-child{margin-bottom:0;border-bottom:0}.list-group-item-primary{color:#004085;background-color:#b8daff}.list-group-item-primary.list-group-item-action:focus,.list-group-item-primary.list-group-item-action:hover{color:#004085;background-color:#9fcdff}.list-group-item-primary.list-group-item-action.active{color:#fff;background-color:#004085;border-color:#004085}.list-group-item-secondary{color:#383d41;background-color:#d6d8db}.list-group-item-secondary.list-group-item-action:focus,.list-group-item-secondary.list-group-item-action:hover{color:#383d41;background-color:#c8cbcf}.list-group-item-secondary.list-group-item-action.active{color:#fff;background-color:#383d41;border-color:#383d41}.list-group-item-success{color:#155724;background-color:#c3e6cb}.list-group-item-success.list-group-item-action:focus,.list-group-item-success.list-group-item-action:hover{color:#155724;background-color:#b1dfbb}.list-group-item-success.list-group-item-action.active{color:#fff;background-color:#155724;border-color:#155724}.list-group-item-info{color:#0c5460;background-color:#bee5eb}.list-group-item-info.list-group-item-action:focus,.list-group-item-info.list-group-item-action:hover{color:#0c5460;background-color:#abdde5}.list-group-item-info.list-group-item-action.active{color:#fff;background-color:#0c5460;border-color:#0c5460}.list-group-item-warning{color:#856404;background-color:#ffeeba}.list-group-item-warning.list-group-item-action:focus,.list-group-item-warning.list-group-item-action:hover{color:#856404;background-color:#ffe8a1}.list-group-item-warning.list-group-item-action.active{color:#fff;background-color:#856404;border-color:#856404}.list-group-item-danger{color:#721c24;background-color:#f5c6cb}.list-group-item-danger.list-group-item-action:focus,.list-group-item-danger.list-group-item-action:hover{color:#721c24;background-color:#f1b0b7}.list-group-item-danger.list-group-item-action.active{color:#fff;background-color:#721c24;border-color:#721c24}.list-group-item-light{color:#818182;background-color:#fdfdfe}.list-group-item-light.list-group-item-action:focus,.list-group-item-light.list-group-item-action:hover{color:#818182;background-color:#ececf6}.list-group-item-light.list-group-item-action.active{color:#fff;background-color:#818182;border-color:#818182}.list-group-item-dark{color:#1b1e21;background-color:#c6c8ca}.list-group-item-dark.list-group-item-action:focus,.list-group-item-dark.list-group-item-action:hover{color:#1b1e21;background-color:#b9bbbe}.list-group-item-dark.list-group-item-action.active{color:#fff;background-color:#1b1e21;border-color:#1b1e21}.close{float:right;font-size:1.5rem;font-weight:700;line-height:1;color:#000;text-shadow:0 1px 0 #fff;opacity:.5}.close:hover{color:#000;text-decoration:none}.close:not(:disabled):not(.disabled):focus,.close:not(:disabled):not(.disabled):hover{opacity:.75}button.close{padding:0;background-color:transparent;border:0;-webkit-appearance:none;-moz-appearance:none;appearance:none}a.close.disabled{pointer-events:none}.toast{max-width:350px;overflow:hidden;font-size:.875rem;background-color:rgba(255,255,255,.85);background-clip:padding-box;border:1px solid rgba(0,0,0,.1);box-shadow:0 .25rem .75rem rgba(0,0,0,.1);-webkit-backdrop-filter:blur(10px);backdrop-filter:blur(10px);opacity:0;border-radius:.25rem}.toast:not(:last-child){margin-bottom:.75rem}.toast.showing{opacity:1}.toast.show{display:block;opacity:1}.toast.hide{display:none}.toast-header{display:-ms-flexbox;display:flex;-ms-flex-align:center;align-items:center;padding:.25rem .75rem;color:#6c757d;background-color:rgba(255,255,255,.85);background-clip:padding-box;border-bottom:1px solid rgba(0,0,0,.05)}.toast-body{padding:.75rem}.modal-open{overflow:hidden}.modal-open .modal{overflow-x:hidden;overflow-y:auto}.modal{position:fixed;top:0;left:0;z-index:1050;display:none;width:100%;height:100%;overflow:hidden;outline:0}.modal-dialog{position:relative;width:auto;margin:.5rem;pointer-events:none}.modal.fade .modal-dialog{transition:-webkit-transform .3s ease-out;transition:transform .3s ease-out;transition:transform .3s ease-out,-webkit-transform .3s ease-out;-webkit-transform:translate(0,-50px);transform:translate(0,-50px)}@media (prefers-reduced-motion:reduce){.modal.fade .modal-dialog{transition:none}}.modal.show .modal-dialog{-webkit-transform:none;transform:none}.modal-dialog-scrollable{display:-ms-flexbox;display:flex;max-height:calc(100% - 1rem)}.modal-dialog-scrollable .modal-content{max-height:calc(100vh - 1rem);overflow:hidden}.modal-dialog-scrollable .modal-footer,.modal-dialog-scrollable .modal-header{-ms-flex-negative:0;flex-shrink:0}.modal-dialog-scrollable .modal-body{overflow-y:auto}.modal-dialog-centered{display:-ms-flexbox;display:flex;-ms-flex-align:center;align-items:center;min-height:calc(100% - 1rem)}.modal-dialog-centered::before{display:block;height:calc(100vh - 1rem);content:""}.modal-dialog-centered.modal-dialog-scrollable{-ms-flex-direction:column;flex-direction:column;-ms-flex-pack:center;justify-content:center;height:100%}.modal-dialog-centered.modal-dialog-scrollable .modal-content{max-height:none}.modal-dialog-centered.modal-dialog-scrollable::before{content:none}.modal-content{position:relative;display:-ms-flexbox;display:flex;-ms-flex-direction:column;flex-direction:column;width:100%;pointer-events:auto;background-color:#fff;background-clip:padding-box;border:1px solid rgba(0,0,0,.2);border-radius:.3rem;outline:0}.modal-backdrop{position:fixed;top:0;left:0;z-index:1040;width:100vw;height:100vh;background-color:#000}.modal-backdrop.fade{opacity:0}.modal-backdrop.show{opacity:.5}.modal-header{display:-ms-flexbox;display:flex;-ms-flex-align:start;align-items:flex-start;-ms-flex-pack:justify;justify-content:space-between;padding:1rem 1rem;border-bottom:1px solid #dee2e6;border-top-left-radius:.3rem;border-top-right-radius:.3rem}.modal-header .close{padding:1rem 1rem;margin:-1rem -1rem -1rem auto}.modal-title{margin-bottom:0;line-height:1.5}.modal-body{position:relative;-ms-flex:1 1 auto;flex:1 1 auto;padding:1rem}.modal-footer{display:-ms-flexbox;display:flex;-ms-flex-align:center;align-items:center;-ms-flex-pack:end;justify-content:flex-end;padding:1rem;border-top:1px solid #dee2e6;border-bottom-right-radius:.3rem;border-bottom-left-radius:.3rem}.modal-footer>:not(:first-child){margin-left:.25rem}.modal-footer>:not(:last-child){margin-right:.25rem}.modal-scrollbar-measure{position:absolute;top:-9999px;width:50px;height:50px;overflow:scroll}@media (min-width:576px){.modal-dialog{max-width:500px;margin:1.75rem auto}.modal-dialog-scrollable{max-height:calc(100% - 3.5rem)}.modal-dialog-scrollable .modal-content{max-height:calc(100vh - 3.5rem)}.modal-dialog-centered{min-height:calc(100% - 3.5rem)}.modal-dialog-centered::before{height:calc(100vh - 3.5rem)}.modal-sm{max-width:300px}}@media (min-width:992px){.modal-lg,.modal-xl{max-width:800px}}@media (min-width:1200px){.modal-xl{max-width:1140px}}.tooltip{position:absolute;z-index:1070;display:block;margin:0;font-family:-apple-system,BlinkMacSystemFont,"Segoe UI",Roboto,"Helvetica Neue",Arial,"Noto Sans",sans-serif,"Apple Color Emoji","Segoe UI Emoji","Segoe UI Symbol","Noto Color Emoji";font-style:normal;font-weight:400;line-height:1.5;text-align:left;text-align:start;text-decoration:none;text-shadow:none;text-transform:none;letter-spacing:normal;word-break:normal;word-spacing:normal;white-space:normal;line-break:auto;font-size:.875rem;word-wrap:break-word;opacity:0}.tooltip.show{opacity:.9}.tooltip .arrow{position:absolute;display:block;width:.8rem;height:.4rem}.tooltip .arrow::before{position:absolute;content:"";border-color:transparent;border-style:solid}.bs-tooltip-auto[x-placement^=top],.bs-tooltip-top{padding:.4rem 0}.bs-tooltip-auto[x-placement^=top] .arrow,.bs-tooltip-top .arrow{bottom:0}.bs-tooltip-auto[x-placement^=top] .arrow::before,.bs-tooltip-top .arrow::before{top:0;border-width:.4rem .4rem 0;border-top-color:#000}.bs-tooltip-auto[x-placement^=right],.bs-tooltip-right{padding:0 .4rem}.bs-tooltip-auto[x-placement^=right] .arrow,.bs-tooltip-right .arrow{left:0;width:.4rem;height:.8rem}.bs-tooltip-auto[x-placement^=right] .arrow::before,.bs-tooltip-right .arrow::before{right:0;border-width:.4rem .4rem .4rem 0;border-right-color:#000}.bs-tooltip-auto[x-placement^=bottom],.bs-tooltip-bottom{padding:.4rem 0}.bs-tooltip-auto[x-placement^=bottom] .arrow,.bs-tooltip-bottom .arrow{top:0}.bs-tooltip-auto[x-placement^=bottom] .arrow::before,.bs-tooltip-bottom .arrow::before{bottom:0;border-width:0 .4rem .4rem;border-bottom-color:#000}.bs-tooltip-auto[x-placement^=left],.bs-tooltip-left{padding:0 .4rem}.bs-tooltip-auto[x-placement^=left] .arrow,.bs-tooltip-left .arrow{right:0;width:.4rem;height:.8rem}.bs-tooltip-auto[x-placement^=left] .arrow::before,.bs-tooltip-left .arrow::before{left:0;border-width:.4rem 0 .4rem .4rem;border-left-color:#000}.tooltip-inner{max-width:200px;padding:.25rem .5rem;color:#fff;text-align:center;background-color:#000;border-radius:.25rem}.popover{position:absolute;top:0;left:0;z-index:1060;display:block;max-width:276px;font-family:-apple-system,BlinkMacSystemFont,"Segoe UI",Roboto,"Helvetica Neue",Arial,"Noto Sans",sans-serif,"Apple Color Emoji","Segoe UI Emoji","Segoe UI Symbol","Noto Color Emoji";font-style:normal;font-weight:400;line-height:1.5;text-align:left;text-align:start;text-decoration:none;text-shadow:none;text-transform:none;letter-spacing:normal;word-break:normal;word-spacing:normal;white-space:normal;line-break:auto;font-size:.875rem;word-wrap:break-word;background-color:#fff;background-clip:padding-box;border:1px solid rgba(0,0,0,.2);border-radius:.3rem}.popover .arrow{position:absolute;display:block;width:1rem;height:.5rem;margin:0 .3rem}.popover .arrow::after,.popover .arrow::before{position:absolute;display:block;content:"";border-color:transparent;border-style:solid}.bs-popover-auto[x-placement^=top],.bs-popover-top{margin-bottom:.5rem}.bs-popover-auto[x-placement^=top]>.arrow,.bs-popover-top>.arrow{bottom:calc((.5rem + 1px) * -1)}.bs-popover-auto[x-placement^=top]>.arrow::before,.bs-popover-top>.arrow::before{bottom:0;border-width:.5rem .5rem 0;border-top-color:rgba(0,0,0,.25)}.bs-popover-auto[x-placement^=top]>.arrow::after,.bs-popover-top>.arrow::after{bottom:1px;border-width:.5rem .5rem 0;border-top-color:#fff}.bs-popover-auto[x-placement^=right],.bs-popover-right{margin-left:.5rem}.bs-popover-auto[x-placement^=right]>.arrow,.bs-popover-right>.arrow{left:calc((.5rem + 1px) * -1);width:.5rem;height:1rem;margin:.3rem 0}.bs-popover-auto[x-placement^=right]>.arrow::before,.bs-popover-right>.arrow::before{left:0;border-width:.5rem .5rem .5rem 0;border-right-color:rgba(0,0,0,.25)}.bs-popover-auto[x-placement^=right]>.arrow::after,.bs-popover-right>.arrow::after{left:1px;border-width:.5rem .5rem .5rem 0;border-right-color:#fff}.bs-popover-auto[x-placement^=bottom],.bs-popover-bottom{margin-top:.5rem}.bs-popover-auto[x-placement^=bottom]>.arrow,.bs-popover-bottom>.arrow{top:calc((.5rem + 1px) * -1)}.bs-popover-auto[x-placement^=bottom]>.arrow::before,.bs-popover-bottom>.arrow::before{top:0;border-width:0 .5rem .5rem .5rem;border-bottom-color:rgba(0,0,0,.25)}.bs-popover-auto[x-placement^=bottom]>.arrow::after,.bs-popover-bottom>.arrow::after{top:1px;border-width:0 .5rem .5rem .5rem;border-bottom-color:#fff}.bs-popover-auto[x-placement^=bottom] .popover-header::before,.bs-popover-bottom .popover-header::before{position:absolute;top:0;left:50%;display:block;width:1rem;margin-left:-.5rem;content:"";border-bottom:1px solid #f7f7f7}.bs-popover-auto[x-placement^=left],.bs-popover-left{margin-right:.5rem}.bs-popover-auto[x-placement^=left]>.arrow,.bs-popover-left>.arrow{right:calc((.5rem + 1px) * -1);width:.5rem;height:1rem;margin:.3rem 0}.bs-popover-auto[x-placement^=left]>.arrow::before,.bs-popover-left>.arrow::before{right:0;border-width:.5rem 0 .5rem .5rem;border-left-color:rgba(0,0,0,.25)}.bs-popover-auto[x-placement^=left]>.arrow::after,.bs-popover-left>.arrow::after{right:1px;border-width:.5rem 0 .5rem .5rem;border-left-color:#fff}.popover-header{padding:.5rem .75rem;margin-bottom:0;font-size:1rem;background-color:#f7f7f7;border-bottom:1px solid #ebebeb;border-top-left-radius:calc(.3rem - 1px);border-top-right-radius:calc(.3rem - 1px)}.popover-header:empty{display:none}.popover-body{padding:.5rem .75rem;color:#212529}.carousel{position:relative}.carousel.pointer-event{-ms-touch-action:pan-y;touch-action:pan-y}.carousel-inner{position:relative;width:100%;overflow:hidden}.carousel-inner::after{display:block;clear:both;content:""}.carousel-item{position:relative;display:none;float:left;width:100%;margin-right:-100%;-webkit-backface-visibility:hidden;backface-visibility:hidden;transition:-webkit-transform .6s ease-in-out;transition:transform .6s ease-in-out;transition:transform .6s ease-in-out,-webkit-transform .6s ease-in-out}@media (prefers-reduced-motion:reduce){.carousel-item{transition:none}}.carousel-item-next,.carousel-item-prev,.carousel-item.active{display:block}.active.carousel-item-right,.carousel-item-next:not(.carousel-item-left){-webkit-transform:translateX(100%);transform:translateX(100%)}.active.carousel-item-left,.carousel-item-prev:not(.carousel-item-right){-webkit-transform:translateX(-100%);transform:translateX(-100%)}.carousel-fade .carousel-item{opacity:0;transition-property:opacity;-webkit-transform:none;transform:none}.carousel-fade .carousel-item-next.carousel-item-left,.carousel-fade .carousel-item-prev.carousel-item-right,.carousel-fade .carousel-item.active{z-index:1;opacity:1}.carousel-fade .active.carousel-item-left,.carousel-fade .active.carousel-item-right{z-index:0;opacity:0;transition:0s .6s opacity}@media (prefers-reduced-motion:reduce){.carousel-fade .active.carousel-item-left,.carousel-fade .active.carousel-item-right{transition:none}}.carousel-control-next,.carousel-control-prev{position:absolute;top:0;bottom:0;z-index:1;display:-ms-flexbox;display:flex;-ms-flex-align:center;align-items:center;-ms-flex-pack:center;justify-content:center;width:15%;color:#fff;text-align:center;opacity:.5;transition:opacity .15s ease}@media (prefers-reduced-motion:reduce){.carousel-control-next,.carousel-control-prev{transition:none}}.carousel-control-next:focus,.carousel-control-next:hover,.carousel-control-prev:focus,.carousel-control-prev:hover{color:#fff;text-decoration:none;outline:0;opacity:.9}.carousel-control-prev{left:0}.carousel-control-next{right:0}.carousel-control-next-icon,.carousel-control-prev-icon{display:inline-block;width:20px;height:20px;background:no-repeat 50%/100% 100%}.carousel-control-prev-icon{background-image:url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' fill='%23fff' viewBox='0 0 8 8'%3e%3cpath d='M5.25 0l-4 4 4 4 1.5-1.5-2.5-2.5 2.5-2.5-1.5-1.5z'/%3e%3c/svg%3e")}.carousel-control-next-icon{background-image:url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' fill='%23fff' viewBox='0 0 8 8'%3e%3cpath d='M2.75 0l-1.5 1.5 2.5 2.5-2.5 2.5 1.5 1.5 4-4-4-4z'/%3e%3c/svg%3e")}.carousel-indicators{position:absolute;right:0;bottom:0;left:0;z-index:15;display:-ms-flexbox;display:flex;-ms-flex-pack:center;justify-content:center;padding-left:0;margin-right:15%;margin-left:15%;list-style:none}.carousel-indicators li{box-sizing:content-box;-ms-flex:0 1 auto;flex:0 1 auto;width:30px;height:3px;margin-right:3px;margin-left:3px;text-indent:-999px;cursor:pointer;background-color:#fff;background-clip:padding-box;border-top:10px solid transparent;border-bottom:10px solid transparent;opacity:.5;transition:opacity .6s ease}@media (prefers-reduced-motion:reduce){.carousel-indicators li{transition:none}}.carousel-indicators .active{opacity:1}.carousel-caption{position:absolute;right:15%;bottom:20px;left:15%;z-index:10;padding-top:20px;padding-bottom:20px;color:#fff;text-align:center}@-webkit-keyframes spinner-border{to{-webkit-transform:rotate(360deg);transform:rotate(360deg)}}@keyframes spinner-border{to{-webkit-transform:rotate(360deg);transform:rotate(360deg)}}.spinner-border{display:inline-block;width:2rem;height:2rem;vertical-align:text-bottom;border:.25em solid currentColor;border-right-color:transparent;border-radius:50%;-webkit-animation:spinner-border .75s linear infinite;animation:spinner-border .75s linear infinite}.spinner-border-sm{width:1rem;height:1rem;border-width:.2em}@-webkit-keyframes spinner-grow{0%{-webkit-transform:scale(0);transform:scale(0)}50%{opacity:1}}@keyframes spinner-grow{0%{-webkit-transform:scale(0);transform:scale(0)}50%{opacity:1}}.spinner-grow{display:inline-block;width:2rem;height:2rem;vertical-align:text-bottom;background-color:currentColor;border-radius:50%;opacity:0;-webkit-animation:spinner-grow .75s linear infinite;animation:spinner-grow .75s linear infinite}.spinner-grow-sm{width:1rem;height:1rem}.align-baseline{vertical-align:baseline!important}.align-top{vertical-align:top!important}.align-middle{vertical-align:middle!important}.align-bottom{vertical-align:bottom!important}.align-text-bottom{vertical-align:text-bottom!important}.align-text-top{vertical-align:text-top!important}.bg-primary{background-color:#007bff!important}a.bg-primary:focus,a.bg-primary:hover,button.bg-primary:focus,button.bg-primary:hover{background-color:#0062cc!important}.bg-secondary{background-color:#6c757d!important}a.bg-secondary:focus,a.bg-secondary:hover,button.bg-secondary:focus,button.bg-secondary:hover{background-color:#545b62!important}.bg-success{background-color:#28a745!important}a.bg-success:focus,a.bg-success:hover,button.bg-success:focus,button.bg-success:hover{background-color:#1e7e34!important}.bg-info{background-color:#17a2b8!important}a.bg-info:focus,a.bg-info:hover,button.bg-info:focus,button.bg-info:hover{background-color:#117a8b!important}.bg-warning{background-color:#ffc107!important}a.bg-warning:focus,a.bg-warning:hover,button.bg-warning:focus,button.bg-warning:hover{background-color:#d39e00!important}.bg-danger{background-color:#dc3545!important}a.bg-danger:focus,a.bg-danger:hover,button.bg-danger:focus,button.bg-danger:hover{background-color:#bd2130!important}.bg-light{background-color:#f8f9fa!important}a.bg-light:focus,a.bg-light:hover,button.bg-light:focus,button.bg-light:hover{background-color:#dae0e5!important}.bg-dark{background-color:#343a40!important}a.bg-dark:focus,a.bg-dark:hover,button.bg-dark:focus,button.bg-dark:hover{background-color:#1d2124!important}.bg-white{background-color:#fff!important}.bg-transparent{background-color:transparent!important}.border{border:1px solid #dee2e6!important}.border-top{border-top:1px solid #dee2e6!important}.border-right{border-right:1px solid #dee2e6!important}.border-bottom{border-bottom:1px solid #dee2e6!important}.border-left{border-left:1px solid #dee2e6!important}.border-0{border:0!important}.border-top-0{border-top:0!important}.border-right-0{border-right:0!important}.border-bottom-0{border-bottom:0!important}.border-left-0{border-left:0!important}.border-primary{border-color:#007bff!important}.border-secondary{border-color:#6c757d!important}.border-success{border-color:#28a745!important}.border-info{border-color:#17a2b8!important}.border-warning{border-color:#ffc107!important}.border-danger{border-color:#dc3545!important}.border-light{border-color:#f8f9fa!important}.border-dark{border-color:#343a40!important}.border-white{border-color:#fff!important}.rounded-sm{border-radius:.2rem!important}.rounded{border-radius:.25rem!important}.rounded-top{border-top-left-radius:.25rem!important;border-top-right-radius:.25rem!important}.rounded-right{border-top-right-radius:.25rem!important;border-bottom-right-radius:.25rem!important}.rounded-bottom{border-bottom-right-radius:.25rem!important;border-bottom-left-radius:.25rem!important}.rounded-left{border-top-left-radius:.25rem!important;border-bottom-left-radius:.25rem!important}.rounded-lg{border-radius:.3rem!important}.rounded-circle{border-radius:50%!important}.rounded-pill{border-radius:50rem!important}.rounded-0{border-radius:0!important}.clearfix::after{display:block;clear:both;content:""}.d-none{display:none!important}.d-inline{display:inline!important}.d-inline-block{display:inline-block!important}.d-block{display:block!important}.d-table{display:table!important}.d-table-row{display:table-row!important}.d-table-cell{display:table-cell!important}.d-flex{display:-ms-flexbox!important;display:flex!important}.d-inline-flex{display:-ms-inline-flexbox!important;display:inline-flex!important}@media (min-width:576px){.d-sm-none{display:none!important}.d-sm-inline{display:inline!important}.d-sm-inline-block{display:inline-block!important}.d-sm-block{display:block!important}.d-sm-table{display:table!important}.d-sm-table-row{display:table-row!important}.d-sm-table-cell{display:table-cell!important}.d-sm-flex{display:-ms-flexbox!important;display:flex!important}.d-sm-inline-flex{display:-ms-inline-flexbox!important;display:inline-flex!important}}@media (min-width:768px){.d-md-none{display:none!important}.d-md-inline{display:inline!important}.d-md-inline-block{display:inline-block!important}.d-md-block{display:block!important}.d-md-table{display:table!important}.d-md-table-row{display:table-row!important}.d-md-table-cell{display:table-cell!important}.d-md-flex{display:-ms-flexbox!important;display:flex!important}.d-md-inline-flex{display:-ms-inline-flexbox!important;display:inline-flex!important}}@media (min-width:992px){.d-lg-none{display:none!important}.d-lg-inline{display:inline!important}.d-lg-inline-block{display:inline-block!important}.d-lg-block{display:block!important}.d-lg-table{display:table!important}.d-lg-table-row{display:table-row!important}.d-lg-table-cell{display:table-cell!important}.d-lg-flex{display:-ms-flexbox!important;display:flex!important}.d-lg-inline-flex{display:-ms-inline-flexbox!important;display:inline-flex!important}}@media (min-width:1200px){.d-xl-none{display:none!important}.d-xl-inline{display:inline!important}.d-xl-inline-block{display:inline-block!important}.d-xl-block{display:block!important}.d-xl-table{display:table!important}.d-xl-table-row{display:table-row!important}.d-xl-table-cell{display:table-cell!important}.d-xl-flex{display:-ms-flexbox!important;display:flex!important}.d-xl-inline-flex{display:-ms-inline-flexbox!important;display:inline-flex!important}}@media print{.d-print-none{display:none!important}.d-print-inline{display:inline!important}.d-print-inline-block{display:inline-block!important}.d-print-block{display:block!important}.d-print-table{display:table!important}.d-print-table-row{display:table-row!important}.d-print-table-cell{display:table-cell!important}.d-print-flex{display:-ms-flexbox!important;display:flex!important}.d-print-inline-flex{display:-ms-inline-flexbox!important;display:inline-flex!important}}.embed-responsive{position:relative;display:block;width:100%;padding:0;overflow:hidden}.embed-responsive::before{display:block;content:""}.embed-responsive .embed-responsive-item,.embed-responsive embed,.embed-responsive iframe,.embed-responsive object,.embed-responsive video{position:absolute;top:0;bottom:0;left:0;width:100%;height:100%;border:0}.embed-responsive-21by9::before{padding-top:42.857143%}.embed-responsive-16by9::before{padding-top:56.25%}.embed-responsive-4by3::before{padding-top:75%}.embed-responsive-1by1::before{padding-top:100%}.flex-row{-ms-flex-direction:row!important;flex-direction:row!important}.flex-column{-ms-flex-direction:column!important;flex-direction:column!important}.flex-row-reverse{-ms-flex-direction:row-reverse!important;flex-direction:row-reverse!important}.flex-column-reverse{-ms-flex-direction:column-reverse!important;flex-direction:column-reverse!important}.flex-wrap{-ms-flex-wrap:wrap!important;flex-wrap:wrap!important}.flex-nowrap{-ms-flex-wrap:nowrap!important;flex-wrap:nowrap!important}.flex-wrap-reverse{-ms-flex-wrap:wrap-reverse!important;flex-wrap:wrap-reverse!important}.flex-fill{-ms-flex:1 1 auto!important;flex:1 1 auto!important}.flex-grow-0{-ms-flex-positive:0!important;flex-grow:0!important}.flex-grow-1{-ms-flex-positive:1!important;flex-grow:1!important}.flex-shrink-0{-ms-flex-negative:0!important;flex-shrink:0!important}.flex-shrink-1{-ms-flex-negative:1!important;flex-shrink:1!important}.justify-content-start{-ms-flex-pack:start!important;justify-content:flex-start!important}.justify-content-end{-ms-flex-pack:end!important;justify-content:flex-end!important}.justify-content-center{-ms-flex-pack:center!important;justify-content:center!important}.justify-content-between{-ms-flex-pack:justify!important;justify-content:space-between!important}.justify-content-around{-ms-flex-pack:distribute!important;justify-content:space-around!important}.align-items-start{-ms-flex-align:start!important;align-items:flex-start!important}.align-items-end{-ms-flex-align:end!important;align-items:flex-end!important}.align-items-center{-ms-flex-align:center!important;align-items:center!important}.align-items-baseline{-ms-flex-align:baseline!important;align-items:baseline!important}.align-items-stretch{-ms-flex-align:stretch!important;align-items:stretch!important}.align-content-start{-ms-flex-line-pack:start!important;align-content:flex-start!important}.align-content-end{-ms-flex-line-pack:end!important;align-content:flex-end!important}.align-content-center{-ms-flex-line-pack:center!important;align-content:center!important}.align-content-between{-ms-flex-line-pack:justify!important;align-content:space-between!important}.align-content-around{-ms-flex-line-pack:distribute!important;align-content:space-around!important}.align-content-stretch{-ms-flex-line-pack:stretch!important;align-content:stretch!important}.align-self-auto{-ms-flex-item-align:auto!important;align-self:auto!important}.align-self-start{-ms-flex-item-align:start!important;align-self:flex-start!important}.align-self-end{-ms-flex-item-align:end!important;align-self:flex-end!important}.align-self-center{-ms-flex-item-align:center!important;align-self:center!important}.align-self-baseline{-ms-flex-item-align:baseline!important;align-self:baseline!important}.align-self-stretch{-ms-flex-item-align:stretch!important;align-self:stretch!important}@media (min-width:576px){.flex-sm-row{-ms-flex-direction:row!important;flex-direction:row!important}.flex-sm-column{-ms-flex-direction:column!important;flex-direction:column!important}.flex-sm-row-reverse{-ms-flex-direction:row-reverse!important;flex-direction:row-reverse!important}.flex-sm-column-reverse{-ms-flex-direction:column-reverse!important;flex-direction:column-reverse!important}.flex-sm-wrap{-ms-flex-wrap:wrap!important;flex-wrap:wrap!important}.flex-sm-nowrap{-ms-flex-wrap:nowrap!important;flex-wrap:nowrap!important}.flex-sm-wrap-reverse{-ms-flex-wrap:wrap-reverse!important;flex-wrap:wrap-reverse!important}.flex-sm-fill{-ms-flex:1 1 auto!important;flex:1 1 auto!important}.flex-sm-grow-0{-ms-flex-positive:0!important;flex-grow:0!important}.flex-sm-grow-1{-ms-flex-positive:1!important;flex-grow:1!important}.flex-sm-shrink-0{-ms-flex-negative:0!important;flex-shrink:0!important}.flex-sm-shrink-1{-ms-flex-negative:1!important;flex-shrink:1!important}.justify-content-sm-start{-ms-flex-pack:start!important;justify-content:flex-start!important}.justify-content-sm-end{-ms-flex-pack:end!important;justify-content:flex-end!important}.justify-content-sm-center{-ms-flex-pack:center!important;justify-content:center!important}.justify-content-sm-between{-ms-flex-pack:justify!important;justify-content:space-between!important}.justify-content-sm-around{-ms-flex-pack:distribute!important;justify-content:space-around!important}.align-items-sm-start{-ms-flex-align:start!important;align-items:flex-start!important}.align-items-sm-end{-ms-flex-align:end!important;align-items:flex-end!important}.align-items-sm-center{-ms-flex-align:center!important;align-items:center!important}.align-items-sm-baseline{-ms-flex-align:baseline!important;align-items:baseline!important}.align-items-sm-stretch{-ms-flex-align:stretch!important;align-items:stretch!important}.align-content-sm-start{-ms-flex-line-pack:start!important;align-content:flex-start!important}.align-content-sm-end{-ms-flex-line-pack:end!important;align-content:flex-end!important}.align-content-sm-center{-ms-flex-line-pack:center!important;align-content:center!important}.align-content-sm-between{-ms-flex-line-pack:justify!important;align-content:space-between!important}.align-content-sm-around{-ms-flex-line-pack:distribute!important;align-content:space-around!important}.align-content-sm-stretch{-ms-flex-line-pack:stretch!important;align-content:stretch!important}.align-self-sm-auto{-ms-flex-item-align:auto!important;align-self:auto!important}.align-self-sm-start{-ms-flex-item-align:start!important;align-self:flex-start!important}.align-self-sm-end{-ms-flex-item-align:end!important;align-self:flex-end!important}.align-self-sm-center{-ms-flex-item-align:center!important;align-self:center!important}.align-self-sm-baseline{-ms-flex-item-align:baseline!important;align-self:baseline!important}.align-self-sm-stretch{-ms-flex-item-align:stretch!important;align-self:stretch!important}}@media (min-width:768px){.flex-md-row{-ms-flex-direction:row!important;flex-direction:row!important}.flex-md-column{-ms-flex-direction:column!important;flex-direction:column!important}.flex-md-row-reverse{-ms-flex-direction:row-reverse!important;flex-direction:row-reverse!important}.flex-md-column-reverse{-ms-flex-direction:column-reverse!important;flex-direction:column-reverse!important}.flex-md-wrap{-ms-flex-wrap:wrap!important;flex-wrap:wrap!important}.flex-md-nowrap{-ms-flex-wrap:nowrap!important;flex-wrap:nowrap!important}.flex-md-wrap-reverse{-ms-flex-wrap:wrap-reverse!important;flex-wrap:wrap-reverse!important}.flex-md-fill{-ms-flex:1 1 auto!important;flex:1 1 auto!important}.flex-md-grow-0{-ms-flex-positive:0!important;flex-grow:0!important}.flex-md-grow-1{-ms-flex-positive:1!important;flex-grow:1!important}.flex-md-shrink-0{-ms-flex-negative:0!important;flex-shrink:0!important}.flex-md-shrink-1{-ms-flex-negative:1!important;flex-shrink:1!important}.justify-content-md-start{-ms-flex-pack:start!important;justify-content:flex-start!important}.justify-content-md-end{-ms-flex-pack:end!important;justify-content:flex-end!important}.justify-content-md-center{-ms-flex-pack:center!important;justify-content:center!important}.justify-content-md-between{-ms-flex-pack:justify!important;justify-content:space-between!important}.justify-content-md-around{-ms-flex-pack:distribute!important;justify-content:space-around!important}.align-items-md-start{-ms-flex-align:start!important;align-items:flex-start!important}.align-items-md-end{-ms-flex-align:end!important;align-items:flex-end!important}.align-items-md-center{-ms-flex-align:center!important;align-items:center!important}.align-items-md-baseline{-ms-flex-align:baseline!important;align-items:baseline!important}.align-items-md-stretch{-ms-flex-align:stretch!important;align-items:stretch!important}.align-content-md-start{-ms-flex-line-pack:start!important;align-content:flex-start!important}.align-content-md-end{-ms-flex-line-pack:end!important;align-content:flex-end!important}.align-content-md-center{-ms-flex-line-pack:center!important;align-content:center!important}.align-content-md-between{-ms-flex-line-pack:justify!important;align-content:space-between!important}.align-content-md-around{-ms-flex-line-pack:distribute!important;align-content:space-around!important}.align-content-md-stretch{-ms-flex-line-pack:stretch!important;align-content:stretch!important}.align-self-md-auto{-ms-flex-item-align:auto!important;align-self:auto!important}.align-self-md-start{-ms-flex-item-align:start!important;align-self:flex-start!important}.align-self-md-end{-ms-flex-item-align:end!important;align-self:flex-end!important}.align-self-md-center{-ms-flex-item-align:center!important;align-self:center!important}.align-self-md-baseline{-ms-flex-item-align:baseline!important;align-self:baseline!important}.align-self-md-stretch{-ms-flex-item-align:stretch!important;align-self:stretch!important}}@media (min-width:992px){.flex-lg-row{-ms-flex-direction:row!important;flex-direction:row!important}.flex-lg-column{-ms-flex-direction:column!important;flex-direction:column!important}.flex-lg-row-reverse{-ms-flex-direction:row-reverse!important;flex-direction:row-reverse!important}.flex-lg-column-reverse{-ms-flex-direction:column-reverse!important;flex-direction:column-reverse!important}.flex-lg-wrap{-ms-flex-wrap:wrap!important;flex-wrap:wrap!important}.flex-lg-nowrap{-ms-flex-wrap:nowrap!important;flex-wrap:nowrap!important}.flex-lg-wrap-reverse{-ms-flex-wrap:wrap-reverse!important;flex-wrap:wrap-reverse!important}.flex-lg-fill{-ms-flex:1 1 auto!important;flex:1 1 auto!important}.flex-lg-grow-0{-ms-flex-positive:0!important;flex-grow:0!important}.flex-lg-grow-1{-ms-flex-positive:1!important;flex-grow:1!important}.flex-lg-shrink-0{-ms-flex-negative:0!important;flex-shrink:0!important}.flex-lg-shrink-1{-ms-flex-negative:1!important;flex-shrink:1!important}.justify-content-lg-start{-ms-flex-pack:start!important;justify-content:flex-start!important}.justify-content-lg-end{-ms-flex-pack:end!important;justify-content:flex-end!important}.justify-content-lg-center{-ms-flex-pack:center!important;justify-content:center!important}.justify-content-lg-between{-ms-flex-pack:justify!important;justify-content:space-between!important}.justify-content-lg-around{-ms-flex-pack:distribute!important;justify-content:space-around!important}.align-items-lg-start{-ms-flex-align:start!important;align-items:flex-start!important}.align-items-lg-end{-ms-flex-align:end!important;align-items:flex-end!important}.align-items-lg-center{-ms-flex-align:center!important;align-items:center!important}.align-items-lg-baseline{-ms-flex-align:baseline!important;align-items:baseline!important}.align-items-lg-stretch{-ms-flex-align:stretch!important;align-items:stretch!important}.align-content-lg-start{-ms-flex-line-pack:start!important;align-content:flex-start!important}.align-content-lg-end{-ms-flex-line-pack:end!important;align-content:flex-end!important}.align-content-lg-center{-ms-flex-line-pack:center!important;align-content:center!important}.align-content-lg-between{-ms-flex-line-pack:justify!important;align-content:space-between!important}.align-content-lg-around{-ms-flex-line-pack:distribute!important;align-content:space-around!important}.align-content-lg-stretch{-ms-flex-line-pack:stretch!important;align-content:stretch!important}.align-self-lg-auto{-ms-flex-item-align:auto!important;align-self:auto!important}.align-self-lg-start{-ms-flex-item-align:start!important;align-self:flex-start!important}.align-self-lg-end{-ms-flex-item-align:end!important;align-self:flex-end!important}.align-self-lg-center{-ms-flex-item-align:center!important;align-self:center!important}.align-self-lg-baseline{-ms-flex-item-align:baseline!important;align-self:baseline!important}.align-self-lg-stretch{-ms-flex-item-align:stretch!important;align-self:stretch!important}}@media (min-width:1200px){.flex-xl-row{-ms-flex-direction:row!important;flex-direction:row!important}.flex-xl-column{-ms-flex-direction:column!important;flex-direction:column!important}.flex-xl-row-reverse{-ms-flex-direction:row-reverse!important;flex-direction:row-reverse!important}.flex-xl-column-reverse{-ms-flex-direction:column-reverse!important;flex-direction:column-reverse!important}.flex-xl-wrap{-ms-flex-wrap:wrap!important;flex-wrap:wrap!important}.flex-xl-nowrap{-ms-flex-wrap:nowrap!important;flex-wrap:nowrap!important}.flex-xl-wrap-reverse{-ms-flex-wrap:wrap-reverse!important;flex-wrap:wrap-reverse!important}.flex-xl-fill{-ms-flex:1 1 auto!important;flex:1 1 auto!important}.flex-xl-grow-0{-ms-flex-positive:0!important;flex-grow:0!important}.flex-xl-grow-1{-ms-flex-positive:1!important;flex-grow:1!important}.flex-xl-shrink-0{-ms-flex-negative:0!important;flex-shrink:0!important}.flex-xl-shrink-1{-ms-flex-negative:1!important;flex-shrink:1!important}.justify-content-xl-start{-ms-flex-pack:start!important;justify-content:flex-start!important}.justify-content-xl-end{-ms-flex-pack:end!important;justify-content:flex-end!important}.justify-content-xl-center{-ms-flex-pack:center!important;justify-content:center!important}.justify-content-xl-between{-ms-flex-pack:justify!important;justify-content:space-between!important}.justify-content-xl-around{-ms-flex-pack:distribute!important;justify-content:space-around!important}.align-items-xl-start{-ms-flex-align:start!important;align-items:flex-start!important}.align-items-xl-end{-ms-flex-align:end!important;align-items:flex-end!important}.align-items-xl-center{-ms-flex-align:center!important;align-items:center!important}.align-items-xl-baseline{-ms-flex-align:baseline!important;align-items:baseline!important}.align-items-xl-stretch{-ms-flex-align:stretch!important;align-items:stretch!important}.align-content-xl-start{-ms-flex-line-pack:start!important;align-content:flex-start!important}.align-content-xl-end{-ms-flex-line-pack:end!important;align-content:flex-end!important}.align-content-xl-center{-ms-flex-line-pack:center!important;align-content:center!important}.align-content-xl-between{-ms-flex-line-pack:justify!important;align-content:space-between!important}.align-content-xl-around{-ms-flex-line-pack:distribute!important;align-content:space-around!important}.align-content-xl-stretch{-ms-flex-line-pack:stretch!important;align-content:stretch!important}.align-self-xl-auto{-ms-flex-item-align:auto!important;align-self:auto!important}.align-self-xl-start{-ms-flex-item-align:start!important;align-self:flex-start!important}.align-self-xl-end{-ms-flex-item-align:end!important;align-self:flex-end!important}.align-self-xl-center{-ms-flex-item-align:center!important;align-self:center!important}.align-self-xl-baseline{-ms-flex-item-align:baseline!important;align-self:baseline!important}.align-self-xl-stretch{-ms-flex-item-align:stretch!important;align-self:stretch!important}}.float-left{float:left!important}.float-right{float:right!important}.float-none{float:none!important}@media (min-width:576px){.float-sm-left{float:left!important}.float-sm-right{float:right!important}.float-sm-none{float:none!important}}@media (min-width:768px){.float-md-left{float:left!important}.float-md-right{float:right!important}.float-md-none{float:none!important}}@media (min-width:992px){.float-lg-left{float:left!important}.float-lg-right{float:right!important}.float-lg-none{float:none!important}}@media (min-width:1200px){.float-xl-left{float:left!important}.float-xl-right{float:right!important}.float-xl-none{float:none!important}}.overflow-auto{overflow:auto!important}.overflow-hidden{overflow:hidden!important}.position-static{position:static!important}.position-relative{position:relative!important}.position-absolute{position:absolute!important}.position-fixed{position:fixed!important}.position-sticky{position:-webkit-sticky!important;position:sticky!important}.fixed-top{position:fixed;top:0;right:0;left:0;z-index:1030}.fixed-bottom{position:fixed;right:0;bottom:0;left:0;z-index:1030}@supports ((position:-webkit-sticky) or (position:sticky)){.sticky-top{position:-webkit-sticky;position:sticky;top:0;z-index:1020}}.sr-only{position:absolute;width:1px;height:1px;padding:0;overflow:hidden;clip:rect(0,0,0,0);white-space:nowrap;border:0}.sr-only-focusable:active,.sr-only-focusable:focus{position:static;width:auto;height:auto;overflow:visible;clip:auto;white-space:normal}.shadow-sm{box-shadow:0 .125rem .25rem rgba(0,0,0,.075)!important}.shadow{box-shadow:0 .5rem 1rem rgba(0,0,0,.15)!important}.shadow-lg{box-shadow:0 1rem 3rem rgba(0,0,0,.175)!important}.shadow-none{box-shadow:none!important}.w-25{width:25%!important}.w-50{width:50%!important}.w-75{width:75%!important}.w-100{width:100%!important}.w-auto{width:auto!important}.h-25{height:25%!important}.h-50{height:50%!important}.h-75{height:75%!important}.h-100{height:100%!important}.h-auto{height:auto!important}.mw-100{max-width:100%!important}.mh-100{max-height:100%!important}.min-vw-100{min-width:100vw!important}.min-vh-100{min-height:100vh!important}.vw-100{width:100vw!important}.vh-100{height:100vh!important}.stretched-link::after{position:absolute;top:0;right:0;bottom:0;left:0;z-index:1;pointer-events:auto;content:"";background-color:rgba(0,0,0,0)}.m-0{margin:0!important}.mt-0,.my-0{margin-top:0!important}.mr-0,.mx-0{margin-right:0!important}.mb-0,.my-0{margin-bottom:0!important}.ml-0,.mx-0{margin-left:0!important}.m-1{margin:.25rem!important}.mt-1,.my-1{margin-top:.25rem!important}.mr-1,.mx-1{margin-right:.25rem!important}.mb-1,.my-1{margin-bottom:.25rem!important}.ml-1,.mx-1{margin-left:.25rem!important}.m-2{margin:.5rem!important}.mt-2,.my-2{margin-top:.5rem!important}.mr-2,.mx-2{margin-right:.5rem!important}.mb-2,.my-2{margin-bottom:.5rem!important}.ml-2,.mx-2{margin-left:.5rem!important}.m-3{margin:1rem!important}.mt-3,.my-3{margin-top:1rem!important}.mr-3,.mx-3{margin-right:1rem!important}.mb-3,.my-3{margin-bottom:1rem!important}.ml-3,.mx-3{margin-left:1rem!important}.m-4{margin:1.5rem!important}.mt-4,.my-4{margin-top:1.5rem!important}.mr-4,.mx-4{margin-right:1.5rem!important}.mb-4,.my-4{margin-bottom:1.5rem!important}.ml-4,.mx-4{margin-left:1.5rem!important}.m-5{margin:3rem!important}.mt-5,.my-5{margin-top:3rem!important}.mr-5,.mx-5{margin-right:3rem!important}.mb-5,.my-5{margin-bottom:3rem!important}.ml-5,.mx-5{margin-left:3rem!important}.p-0{padding:0!important}.pt-0,.py-0{padding-top:0!important}.pr-0,.px-0{padding-right:0!important}.pb-0,.py-0{padding-bottom:0!important}.pl-0,.px-0{padding-left:0!important}.p-1{padding:.25rem!important}.pt-1,.py-1{padding-top:.25rem!important}.pr-1,.px-1{padding-right:.25rem!important}.pb-1,.py-1{padding-bottom:.25rem!important}.pl-1,.px-1{padding-left:.25rem!important}.p-2{padding:.5rem!important}.pt-2,.py-2{padding-top:.5rem!important}.pr-2,.px-2{padding-right:.5rem!important}.pb-2,.py-2{padding-bottom:.5rem!important}.pl-2,.px-2{padding-left:.5rem!important}.p-3{padding:1rem!important}.pt-3,.py-3{padding-top:1rem!important}.pr-3,.px-3{padding-right:1rem!important}.pb-3,.py-3{padding-bottom:1rem!important}.pl-3,.px-3{padding-left:1rem!important}.p-4{padding:1.5rem!important}.pt-4,.py-4{padding-top:1.5rem!important}.pr-4,.px-4{padding-right:1.5rem!important}.pb-4,.py-4{padding-bottom:1.5rem!important}.pl-4,.px-4{padding-left:1.5rem!important}.p-5{padding:3rem!important}.pt-5,.py-5{padding-top:3rem!important}.pr-5,.px-5{padding-right:3rem!important}.pb-5,.py-5{padding-bottom:3rem!important}.pl-5,.px-5{padding-left:3rem!important}.m-n1{margin:-.25rem!important}.mt-n1,.my-n1{margin-top:-.25rem!important}.mr-n1,.mx-n1{margin-right:-.25rem!important}.mb-n1,.my-n1{margin-bottom:-.25rem!important}.ml-n1,.mx-n1{margin-left:-.25rem!important}.m-n2{margin:-.5rem!important}.mt-n2,.my-n2{margin-top:-.5rem!important}.mr-n2,.mx-n2{margin-right:-.5rem!important}.mb-n2,.my-n2{margin-bottom:-.5rem!important}.ml-n2,.mx-n2{margin-left:-.5rem!important}.m-n3{margin:-1rem!important}.mt-n3,.my-n3{margin-top:-1rem!important}.mr-n3,.mx-n3{margin-right:-1rem!important}.mb-n3,.my-n3{margin-bottom:-1rem!important}.ml-n3,.mx-n3{margin-left:-1rem!important}.m-n4{margin:-1.5rem!important}.mt-n4,.my-n4{margin-top:-1.5rem!important}.mr-n4,.mx-n4{margin-right:-1.5rem!important}.mb-n4,.my-n4{margin-bottom:-1.5rem!important}.ml-n4,.mx-n4{margin-left:-1.5rem!important}.m-n5{margin:-3rem!important}.mt-n5,.my-n5{margin-top:-3rem!important}.mr-n5,.mx-n5{margin-right:-3rem!important}.mb-n5,.my-n5{margin-bottom:-3rem!important}.ml-n5,.mx-n5{margin-left:-3rem!important}.m-auto{margin:auto!important}.mt-auto,.my-auto{margin-top:auto!important}.mr-auto,.mx-auto{margin-right:auto!important}.mb-auto,.my-auto{margin-bottom:auto!important}.ml-auto,.mx-auto{margin-left:auto!important}@media (min-width:576px){.m-sm-0{margin:0!important}.mt-sm-0,.my-sm-0{margin-top:0!important}.mr-sm-0,.mx-sm-0{margin-right:0!important}.mb-sm-0,.my-sm-0{margin-bottom:0!important}.ml-sm-0,.mx-sm-0{margin-left:0!important}.m-sm-1{margin:.25rem!important}.mt-sm-1,.my-sm-1{margin-top:.25rem!important}.mr-sm-1,.mx-sm-1{margin-right:.25rem!important}.mb-sm-1,.my-sm-1{margin-bottom:.25rem!important}.ml-sm-1,.mx-sm-1{margin-left:.25rem!important}.m-sm-2{margin:.5rem!important}.mt-sm-2,.my-sm-2{margin-top:.5rem!important}.mr-sm-2,.mx-sm-2{margin-right:.5rem!important}.mb-sm-2,.my-sm-2{margin-bottom:.5rem!important}.ml-sm-2,.mx-sm-2{margin-left:.5rem!important}.m-sm-3{margin:1rem!important}.mt-sm-3,.my-sm-3{margin-top:1rem!important}.mr-sm-3,.mx-sm-3{margin-right:1rem!important}.mb-sm-3,.my-sm-3{margin-bottom:1rem!important}.ml-sm-3,.mx-sm-3{margin-left:1rem!important}.m-sm-4{margin:1.5rem!important}.mt-sm-4,.my-sm-4{margin-top:1.5rem!important}.mr-sm-4,.mx-sm-4{margin-right:1.5rem!important}.mb-sm-4,.my-sm-4{margin-bottom:1.5rem!important}.ml-sm-4,.mx-sm-4{margin-left:1.5rem!important}.m-sm-5{margin:3rem!important}.mt-sm-5,.my-sm-5{margin-top:3rem!important}.mr-sm-5,.mx-sm-5{margin-right:3rem!important}.mb-sm-5,.my-sm-5{margin-bottom:3rem!important}.ml-sm-5,.mx-sm-5{margin-left:3rem!important}.p-sm-0{padding:0!important}.pt-sm-0,.py-sm-0{padding-top:0!important}.pr-sm-0,.px-sm-0{padding-right:0!important}.pb-sm-0,.py-sm-0{padding-bottom:0!important}.pl-sm-0,.px-sm-0{padding-left:0!important}.p-sm-1{padding:.25rem!important}.pt-sm-1,.py-sm-1{padding-top:.25rem!important}.pr-sm-1,.px-sm-1{padding-right:.25rem!important}.pb-sm-1,.py-sm-1{padding-bottom:.25rem!important}.pl-sm-1,.px-sm-1{padding-left:.25rem!important}.p-sm-2{padding:.5rem!important}.pt-sm-2,.py-sm-2{padding-top:.5rem!important}.pr-sm-2,.px-sm-2{padding-right:.5rem!important}.pb-sm-2,.py-sm-2{padding-bottom:.5rem!important}.pl-sm-2,.px-sm-2{padding-left:.5rem!important}.p-sm-3{padding:1rem!important}.pt-sm-3,.py-sm-3{padding-top:1rem!important}.pr-sm-3,.px-sm-3{padding-right:1rem!important}.pb-sm-3,.py-sm-3{padding-bottom:1rem!important}.pl-sm-3,.px-sm-3{padding-left:1rem!important}.p-sm-4{padding:1.5rem!important}.pt-sm-4,.py-sm-4{padding-top:1.5rem!important}.pr-sm-4,.px-sm-4{padding-right:1.5rem!important}.pb-sm-4,.py-sm-4{padding-bottom:1.5rem!important}.pl-sm-4,.px-sm-4{padding-left:1.5rem!important}.p-sm-5{padding:3rem!important}.pt-sm-5,.py-sm-5{padding-top:3rem!important}.pr-sm-5,.px-sm-5{padding-right:3rem!important}.pb-sm-5,.py-sm-5{padding-bottom:3rem!important}.pl-sm-5,.px-sm-5{padding-left:3rem!important}.m-sm-n1{margin:-.25rem!important}.mt-sm-n1,.my-sm-n1{margin-top:-.25rem!important}.mr-sm-n1,.mx-sm-n1{margin-right:-.25rem!important}.mb-sm-n1,.my-sm-n1{margin-bottom:-.25rem!important}.ml-sm-n1,.mx-sm-n1{margin-left:-.25rem!important}.m-sm-n2{margin:-.5rem!important}.mt-sm-n2,.my-sm-n2{margin-top:-.5rem!important}.mr-sm-n2,.mx-sm-n2{margin-right:-.5rem!important}.mb-sm-n2,.my-sm-n2{margin-bottom:-.5rem!important}.ml-sm-n2,.mx-sm-n2{margin-left:-.5rem!important}.m-sm-n3{margin:-1rem!important}.mt-sm-n3,.my-sm-n3{margin-top:-1rem!important}.mr-sm-n3,.mx-sm-n3{margin-right:-1rem!important}.mb-sm-n3,.my-sm-n3{margin-bottom:-1rem!important}.ml-sm-n3,.mx-sm-n3{margin-left:-1rem!important}.m-sm-n4{margin:-1.5rem!important}.mt-sm-n4,.my-sm-n4{margin-top:-1.5rem!important}.mr-sm-n4,.mx-sm-n4{margin-right:-1.5rem!important}.mb-sm-n4,.my-sm-n4{margin-bottom:-1.5rem!important}.ml-sm-n4,.mx-sm-n4{margin-left:-1.5rem!important}.m-sm-n5{margin:-3rem!important}.mt-sm-n5,.my-sm-n5{margin-top:-3rem!important}.mr-sm-n5,.mx-sm-n5{margin-right:-3rem!important}.mb-sm-n5,.my-sm-n5{margin-bottom:-3rem!important}.ml-sm-n5,.mx-sm-n5{margin-left:-3rem!important}.m-sm-auto{margin:auto!important}.mt-sm-auto,.my-sm-auto{margin-top:auto!important}.mr-sm-auto,.mx-sm-auto{margin-right:auto!important}.mb-sm-auto,.my-sm-auto{margin-bottom:auto!important}.ml-sm-auto,.mx-sm-auto{margin-left:auto!important}}@media (min-width:768px){.m-md-0{margin:0!important}.mt-md-0,.my-md-0{margin-top:0!important}.mr-md-0,.mx-md-0{margin-right:0!important}.mb-md-0,.my-md-0{margin-bottom:0!important}.ml-md-0,.mx-md-0{margin-left:0!important}.m-md-1{margin:.25rem!important}.mt-md-1,.my-md-1{margin-top:.25rem!important}.mr-md-1,.mx-md-1{margin-right:.25rem!important}.mb-md-1,.my-md-1{margin-bottom:.25rem!important}.ml-md-1,.mx-md-1{margin-left:.25rem!important}.m-md-2{margin:.5rem!important}.mt-md-2,.my-md-2{margin-top:.5rem!important}.mr-md-2,.mx-md-2{margin-right:.5rem!important}.mb-md-2,.my-md-2{margin-bottom:.5rem!important}.ml-md-2,.mx-md-2{margin-left:.5rem!important}.m-md-3{margin:1rem!important}.mt-md-3,.my-md-3{margin-top:1rem!important}.mr-md-3,.mx-md-3{margin-right:1rem!important}.mb-md-3,.my-md-3{margin-bottom:1rem!important}.ml-md-3,.mx-md-3{margin-left:1rem!important}.m-md-4{margin:1.5rem!important}.mt-md-4,.my-md-4{margin-top:1.5rem!important}.mr-md-4,.mx-md-4{margin-right:1.5rem!important}.mb-md-4,.my-md-4{margin-bottom:1.5rem!important}.ml-md-4,.mx-md-4{margin-left:1.5rem!important}.m-md-5{margin:3rem!important}.mt-md-5,.my-md-5{margin-top:3rem!important}.mr-md-5,.mx-md-5{margin-right:3rem!important}.mb-md-5,.my-md-5{margin-bottom:3rem!important}.ml-md-5,.mx-md-5{margin-left:3rem!important}.p-md-0{padding:0!important}.pt-md-0,.py-md-0{padding-top:0!important}.pr-md-0,.px-md-0{padding-right:0!important}.pb-md-0,.py-md-0{padding-bottom:0!important}.pl-md-0,.px-md-0{padding-left:0!important}.p-md-1{padding:.25rem!important}.pt-md-1,.py-md-1{padding-top:.25rem!important}.pr-md-1,.px-md-1{padding-right:.25rem!important}.pb-md-1,.py-md-1{padding-bottom:.25rem!important}.pl-md-1,.px-md-1{padding-left:.25rem!important}.p-md-2{padding:.5rem!important}.pt-md-2,.py-md-2{padding-top:.5rem!important}.pr-md-2,.px-md-2{padding-right:.5rem!important}.pb-md-2,.py-md-2{padding-bottom:.5rem!important}.pl-md-2,.px-md-2{padding-left:.5rem!important}.p-md-3{padding:1rem!important}.pt-md-3,.py-md-3{padding-top:1rem!important}.pr-md-3,.px-md-3{padding-right:1rem!important}.pb-md-3,.py-md-3{padding-bottom:1rem!important}.pl-md-3,.px-md-3{padding-left:1rem!important}.p-md-4{padding:1.5rem!important}.pt-md-4,.py-md-4{padding-top:1.5rem!important}.pr-md-4,.px-md-4{padding-right:1.5rem!important}.pb-md-4,.py-md-4{padding-bottom:1.5rem!important}.pl-md-4,.px-md-4{padding-left:1.5rem!important}.p-md-5{padding:3rem!important}.pt-md-5,.py-md-5{padding-top:3rem!important}.pr-md-5,.px-md-5{padding-right:3rem!important}.pb-md-5,.py-md-5{padding-bottom:3rem!important}.pl-md-5,.px-md-5{padding-left:3rem!important}.m-md-n1{margin:-.25rem!important}.mt-md-n1,.my-md-n1{margin-top:-.25rem!important}.mr-md-n1,.mx-md-n1{margin-right:-.25rem!important}.mb-md-n1,.my-md-n1{margin-bottom:-.25rem!important}.ml-md-n1,.mx-md-n1{margin-left:-.25rem!important}.m-md-n2{margin:-.5rem!important}.mt-md-n2,.my-md-n2{margin-top:-.5rem!important}.mr-md-n2,.mx-md-n2{margin-right:-.5rem!important}.mb-md-n2,.my-md-n2{margin-bottom:-.5rem!important}.ml-md-n2,.mx-md-n2{margin-left:-.5rem!important}.m-md-n3{margin:-1rem!important}.mt-md-n3,.my-md-n3{margin-top:-1rem!important}.mr-md-n3,.mx-md-n3{margin-right:-1rem!important}.mb-md-n3,.my-md-n3{margin-bottom:-1rem!important}.ml-md-n3,.mx-md-n3{margin-left:-1rem!important}.m-md-n4{margin:-1.5rem!important}.mt-md-n4,.my-md-n4{margin-top:-1.5rem!important}.mr-md-n4,.mx-md-n4{margin-right:-1.5rem!important}.mb-md-n4,.my-md-n4{margin-bottom:-1.5rem!important}.ml-md-n4,.mx-md-n4{margin-left:-1.5rem!important}.m-md-n5{margin:-3rem!important}.mt-md-n5,.my-md-n5{margin-top:-3rem!important}.mr-md-n5,.mx-md-n5{margin-right:-3rem!important}.mb-md-n5,.my-md-n5{margin-bottom:-3rem!important}.ml-md-n5,.mx-md-n5{margin-left:-3rem!important}.m-md-auto{margin:auto!important}.mt-md-auto,.my-md-auto{margin-top:auto!important}.mr-md-auto,.mx-md-auto{margin-right:auto!important}.mb-md-auto,.my-md-auto{margin-bottom:auto!important}.ml-md-auto,.mx-md-auto{margin-left:auto!important}}@media (min-width:992px){.m-lg-0{margin:0!important}.mt-lg-0,.my-lg-0{margin-top:0!important}.mr-lg-0,.mx-lg-0{margin-right:0!important}.mb-lg-0,.my-lg-0{margin-bottom:0!important}.ml-lg-0,.mx-lg-0{margin-left:0!important}.m-lg-1{margin:.25rem!important}.mt-lg-1,.my-lg-1{margin-top:.25rem!important}.mr-lg-1,.mx-lg-1{margin-right:.25rem!important}.mb-lg-1,.my-lg-1{margin-bottom:.25rem!important}.ml-lg-1,.mx-lg-1{margin-left:.25rem!important}.m-lg-2{margin:.5rem!important}.mt-lg-2,.my-lg-2{margin-top:.5rem!important}.mr-lg-2,.mx-lg-2{margin-right:.5rem!important}.mb-lg-2,.my-lg-2{margin-bottom:.5rem!important}.ml-lg-2,.mx-lg-2{margin-left:.5rem!important}.m-lg-3{margin:1rem!important}.mt-lg-3,.my-lg-3{margin-top:1rem!important}.mr-lg-3,.mx-lg-3{margin-right:1rem!important}.mb-lg-3,.my-lg-3{margin-bottom:1rem!important}.ml-lg-3,.mx-lg-3{margin-left:1rem!important}.m-lg-4{margin:1.5rem!important}.mt-lg-4,.my-lg-4{margin-top:1.5rem!important}.mr-lg-4,.mx-lg-4{margin-right:1.5rem!important}.mb-lg-4,.my-lg-4{margin-bottom:1.5rem!important}.ml-lg-4,.mx-lg-4{margin-left:1.5rem!important}.m-lg-5{margin:3rem!important}.mt-lg-5,.my-lg-5{margin-top:3rem!important}.mr-lg-5,.mx-lg-5{margin-right:3rem!important}.mb-lg-5,.my-lg-5{margin-bottom:3rem!important}.ml-lg-5,.mx-lg-5{margin-left:3rem!important}.p-lg-0{padding:0!important}.pt-lg-0,.py-lg-0{padding-top:0!important}.pr-lg-0,.px-lg-0{padding-right:0!important}.pb-lg-0,.py-lg-0{padding-bottom:0!important}.pl-lg-0,.px-lg-0{padding-left:0!important}.p-lg-1{padding:.25rem!important}.pt-lg-1,.py-lg-1{padding-top:.25rem!important}.pr-lg-1,.px-lg-1{padding-right:.25rem!important}.pb-lg-1,.py-lg-1{padding-bottom:.25rem!important}.pl-lg-1,.px-lg-1{padding-left:.25rem!important}.p-lg-2{padding:.5rem!important}.pt-lg-2,.py-lg-2{padding-top:.5rem!important}.pr-lg-2,.px-lg-2{padding-right:.5rem!important}.pb-lg-2,.py-lg-2{padding-bottom:.5rem!important}.pl-lg-2,.px-lg-2{padding-left:.5rem!important}.p-lg-3{padding:1rem!important}.pt-lg-3,.py-lg-3{padding-top:1rem!important}.pr-lg-3,.px-lg-3{padding-right:1rem!important}.pb-lg-3,.py-lg-3{padding-bottom:1rem!important}.pl-lg-3,.px-lg-3{padding-left:1rem!important}.p-lg-4{padding:1.5rem!important}.pt-lg-4,.py-lg-4{padding-top:1.5rem!important}.pr-lg-4,.px-lg-4{padding-right:1.5rem!important}.pb-lg-4,.py-lg-4{padding-bottom:1.5rem!important}.pl-lg-4,.px-lg-4{padding-left:1.5rem!important}.p-lg-5{padding:3rem!important}.pt-lg-5,.py-lg-5{padding-top:3rem!important}.pr-lg-5,.px-lg-5{padding-right:3rem!important}.pb-lg-5,.py-lg-5{padding-bottom:3rem!important}.pl-lg-5,.px-lg-5{padding-left:3rem!important}.m-lg-n1{margin:-.25rem!important}.mt-lg-n1,.my-lg-n1{margin-top:-.25rem!important}.mr-lg-n1,.mx-lg-n1{margin-right:-.25rem!important}.mb-lg-n1,.my-lg-n1{margin-bottom:-.25rem!important}.ml-lg-n1,.mx-lg-n1{margin-left:-.25rem!important}.m-lg-n2{margin:-.5rem!important}.mt-lg-n2,.my-lg-n2{margin-top:-.5rem!important}.mr-lg-n2,.mx-lg-n2{margin-right:-.5rem!important}.mb-lg-n2,.my-lg-n2{margin-bottom:-.5rem!important}.ml-lg-n2,.mx-lg-n2{margin-left:-.5rem!important}.m-lg-n3{margin:-1rem!important}.mt-lg-n3,.my-lg-n3{margin-top:-1rem!important}.mr-lg-n3,.mx-lg-n3{margin-right:-1rem!important}.mb-lg-n3,.my-lg-n3{margin-bottom:-1rem!important}.ml-lg-n3,.mx-lg-n3{margin-left:-1rem!important}.m-lg-n4{margin:-1.5rem!important}.mt-lg-n4,.my-lg-n4{margin-top:-1.5rem!important}.mr-lg-n4,.mx-lg-n4{margin-right:-1.5rem!important}.mb-lg-n4,.my-lg-n4{margin-bottom:-1.5rem!important}.ml-lg-n4,.mx-lg-n4{margin-left:-1.5rem!important}.m-lg-n5{margin:-3rem!important}.mt-lg-n5,.my-lg-n5{margin-top:-3rem!important}.mr-lg-n5,.mx-lg-n5{margin-right:-3rem!important}.mb-lg-n5,.my-lg-n5{margin-bottom:-3rem!important}.ml-lg-n5,.mx-lg-n5{margin-left:-3rem!important}.m-lg-auto{margin:auto!important}.mt-lg-auto,.my-lg-auto{margin-top:auto!important}.mr-lg-auto,.mx-lg-auto{margin-right:auto!important}.mb-lg-auto,.my-lg-auto{margin-bottom:auto!important}.ml-lg-auto,.mx-lg-auto{margin-left:auto!important}}@media (min-width:1200px){.m-xl-0{margin:0!important}.mt-xl-0,.my-xl-0{margin-top:0!important}.mr-xl-0,.mx-xl-0{margin-right:0!important}.mb-xl-0,.my-xl-0{margin-bottom:0!important}.ml-xl-0,.mx-xl-0{margin-left:0!important}.m-xl-1{margin:.25rem!important}.mt-xl-1,.my-xl-1{margin-top:.25rem!important}.mr-xl-1,.mx-xl-1{margin-right:.25rem!important}.mb-xl-1,.my-xl-1{margin-bottom:.25rem!important}.ml-xl-1,.mx-xl-1{margin-left:.25rem!important}.m-xl-2{margin:.5rem!important}.mt-xl-2,.my-xl-2{margin-top:.5rem!important}.mr-xl-2,.mx-xl-2{margin-right:.5rem!important}.mb-xl-2,.my-xl-2{margin-bottom:.5rem!important}.ml-xl-2,.mx-xl-2{margin-left:.5rem!important}.m-xl-3{margin:1rem!important}.mt-xl-3,.my-xl-3{margin-top:1rem!important}.mr-xl-3,.mx-xl-3{margin-right:1rem!important}.mb-xl-3,.my-xl-3{margin-bottom:1rem!important}.ml-xl-3,.mx-xl-3{margin-left:1rem!important}.m-xl-4{margin:1.5rem!important}.mt-xl-4,.my-xl-4{margin-top:1.5rem!important}.mr-xl-4,.mx-xl-4{margin-right:1.5rem!important}.mb-xl-4,.my-xl-4{margin-bottom:1.5rem!important}.ml-xl-4,.mx-xl-4{margin-left:1.5rem!important}.m-xl-5{margin:3rem!important}.mt-xl-5,.my-xl-5{margin-top:3rem!important}.mr-xl-5,.mx-xl-5{margin-right:3rem!important}.mb-xl-5,.my-xl-5{margin-bottom:3rem!important}.ml-xl-5,.mx-xl-5{margin-left:3rem!important}.p-xl-0{padding:0!important}.pt-xl-0,.py-xl-0{padding-top:0!important}.pr-xl-0,.px-xl-0{padding-right:0!important}.pb-xl-0,.py-xl-0{padding-bottom:0!important}.pl-xl-0,.px-xl-0{padding-left:0!important}.p-xl-1{padding:.25rem!important}.pt-xl-1,.py-xl-1{padding-top:.25rem!important}.pr-xl-1,.px-xl-1{padding-right:.25rem!important}.pb-xl-1,.py-xl-1{padding-bottom:.25rem!important}.pl-xl-1,.px-xl-1{padding-left:.25rem!important}.p-xl-2{padding:.5rem!important}.pt-xl-2,.py-xl-2{padding-top:.5rem!important}.pr-xl-2,.px-xl-2{padding-right:.5rem!important}.pb-xl-2,.py-xl-2{padding-bottom:.5rem!important}.pl-xl-2,.px-xl-2{padding-left:.5rem!important}.p-xl-3{padding:1rem!important}.pt-xl-3,.py-xl-3{padding-top:1rem!important}.pr-xl-3,.px-xl-3{padding-right:1rem!important}.pb-xl-3,.py-xl-3{padding-bottom:1rem!important}.pl-xl-3,.px-xl-3{padding-left:1rem!important}.p-xl-4{padding:1.5rem!important}.pt-xl-4,.py-xl-4{padding-top:1.5rem!important}.pr-xl-4,.px-xl-4{padding-right:1.5rem!important}.pb-xl-4,.py-xl-4{padding-bottom:1.5rem!important}.pl-xl-4,.px-xl-4{padding-left:1.5rem!important}.p-xl-5{padding:3rem!important}.pt-xl-5,.py-xl-5{padding-top:3rem!important}.pr-xl-5,.px-xl-5{padding-right:3rem!important}.pb-xl-5,.py-xl-5{padding-bottom:3rem!important}.pl-xl-5,.px-xl-5{padding-left:3rem!important}.m-xl-n1{margin:-.25rem!important}.mt-xl-n1,.my-xl-n1{margin-top:-.25rem!important}.mr-xl-n1,.mx-xl-n1{margin-right:-.25rem!important}.mb-xl-n1,.my-xl-n1{margin-bottom:-.25rem!important}.ml-xl-n1,.mx-xl-n1{margin-left:-.25rem!important}.m-xl-n2{margin:-.5rem!important}.mt-xl-n2,.my-xl-n2{margin-top:-.5rem!important}.mr-xl-n2,.mx-xl-n2{margin-right:-.5rem!important}.mb-xl-n2,.my-xl-n2{margin-bottom:-.5rem!important}.ml-xl-n2,.mx-xl-n2{margin-left:-.5rem!important}.m-xl-n3{margin:-1rem!important}.mt-xl-n3,.my-xl-n3{margin-top:-1rem!important}.mr-xl-n3,.mx-xl-n3{margin-right:-1rem!important}.mb-xl-n3,.my-xl-n3{margin-bottom:-1rem!important}.ml-xl-n3,.mx-xl-n3{margin-left:-1rem!important}.m-xl-n4{margin:-1.5rem!important}.mt-xl-n4,.my-xl-n4{margin-top:-1.5rem!important}.mr-xl-n4,.mx-xl-n4{margin-right:-1.5rem!important}.mb-xl-n4,.my-xl-n4{margin-bottom:-1.5rem!important}.ml-xl-n4,.mx-xl-n4{margin-left:-1.5rem!important}.m-xl-n5{margin:-3rem!important}.mt-xl-n5,.my-xl-n5{margin-top:-3rem!important}.mr-xl-n5,.mx-xl-n5{margin-right:-3rem!important}.mb-xl-n5,.my-xl-n5{margin-bottom:-3rem!important}.ml-xl-n5,.mx-xl-n5{margin-left:-3rem!important}.m-xl-auto{margin:auto!important}.mt-xl-auto,.my-xl-auto{margin-top:auto!important}.mr-xl-auto,.mx-xl-auto{margin-right:auto!important}.mb-xl-auto,.my-xl-auto{margin-bottom:auto!important}.ml-xl-auto,.mx-xl-auto{margin-left:auto!important}}.text-monospace{font-family:SFMono-Regular,Menlo,Monaco,Consolas,"Liberation Mono","Courier New",monospace!important}.text-justify{text-align:justify!important}.text-wrap{white-space:normal!important}.text-nowrap{white-space:nowrap!important}.text-truncate{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.text-left{text-align:left!important}.text-right{text-align:right!important}.text-center{text-align:center!important}@media (min-width:576px){.text-sm-left{text-align:left!important}.text-sm-right{text-align:right!important}.text-sm-center{text-align:center!important}}@media (min-width:768px){.text-md-left{text-align:left!important}.text-md-right{text-align:right!important}.text-md-center{text-align:center!important}}@media (min-width:992px){.text-lg-left{text-align:left!important}.text-lg-right{text-align:right!important}.text-lg-center{text-align:center!important}}@media (min-width:1200px){.text-xl-left{text-align:left!important}.text-xl-right{text-align:right!important}.text-xl-center{text-align:center!important}}.text-lowercase{text-transform:lowercase!important}.text-uppercase{text-transform:uppercase!important}.text-capitalize{text-transform:capitalize!important}.font-weight-light{font-weight:300!important}.font-weight-lighter{font-weight:lighter!important}.font-weight-normal{font-weight:400!important}.font-weight-bold{font-weight:700!important}.font-weight-bolder{font-weight:bolder!important}.font-italic{font-style:italic!important}.text-white{color:#fff!important}.text-primary{color:#007bff!important}a.text-primary:focus,a.text-primary:hover{color:#0056b3!important}.text-secondary{color:#6c757d!important}a.text-secondary:focus,a.text-secondary:hover{color:#494f54!important}.text-success{color:#28a745!important}a.text-success:focus,a.text-success:hover{color:#19692c!important}.text-info{color:#17a2b8!important}a.text-info:focus,a.text-info:hover{color:#0f6674!important}.text-warning{color:#ffc107!important}a.text-warning:focus,a.text-warning:hover{color:#ba8b00!important}.text-danger{color:#dc3545!important}a.text-danger:focus,a.text-danger:hover{color:#a71d2a!important}.text-light{color:#f8f9fa!important}a.text-light:focus,a.text-light:hover{color:#cbd3da!important}.text-dark{color:#343a40!important}a.text-dark:focus,a.text-dark:hover{color:#121416!important}.text-body{color:#212529!important}.text-muted{color:#6c757d!important}.text-black-50{color:rgba(0,0,0,.5)!important}.text-white-50{color:rgba(255,255,255,.5)!important}.text-hide{font:0/0 a;color:transparent;text-shadow:none;background-color:transparent;border:0}.text-decoration-none{text-decoration:none!important}.text-break{word-break:break-word!important;overflow-wrap:break-word!important}.text-reset{color:inherit!important}.visible{visibility:visible!important}.invisible{visibility:hidden!important}@media print{*,::after,::before{text-shadow:none!important;box-shadow:none!important}a:not(.btn){text-decoration:underline}abbr[title]::after{content:" (" attr(title) ")"}pre{white-space:pre-wrap!important}blockquote,pre{border:1px solid #adb5bd;page-break-inside:avoid}thead{display:table-header-group}img,tr{page-break-inside:avoid}h2,h3,p{orphans:3;widows:3}h2,h3{page-break-after:avoid}@page{size:a3}body{min-width:992px!important}.container{min-width:992px!important}.navbar{display:none}.badge{border:1px solid #000}.table{border-collapse:collapse!important}.table td,.table th{background-color:#fff!important}.table-bordered td,.table-bordered th{border:1px solid #dee2e6!important}.table-dark{color:inherit}.table-dark tbody+tbody,.table-dark td,.table-dark th,.table-dark thead th{border-color:#dee2e6}.table .thead-dark th{color:inherit;border-color:#dee2e6}}
7
  /*# sourceMappingURL=bootstrap.min.css.map */
assets/css/main.css CHANGED
@@ -57,7 +57,8 @@ body {
57
  /* End Header */
58
 
59
  .container-fluid {
60
- padding-left: 0px;
 
61
  }
62
 
63
  .canvas {
@@ -84,6 +85,10 @@ fieldset {
84
  float:left;
85
  }
86
 
 
 
 
 
87
  .app {
88
  width:100%;
89
  margin: 15px 0 15px 0;
@@ -97,8 +102,9 @@ fieldset {
97
  min-width: 200px;
98
  }
99
 
100
- .font-normal {
101
- font-weight: normal;
 
102
  }
103
 
104
  .app h2 {
@@ -109,13 +115,13 @@ fieldset {
109
  }
110
 
111
  .app-content {
112
- padding: 10px 0 0 0
113
  }
114
 
115
  .app label {
116
  font-size: 12px;
117
  display: inline;
118
- line-height: 2em;
119
  }
120
 
121
  legend {
@@ -128,18 +134,44 @@ legend {
128
  font-size: 13px;
129
  }
130
 
 
 
 
 
 
131
  .location_item_cta {
132
- float: right;
133
  margin-left: 25px;
134
  }
135
 
136
  .check {
137
  position: relative;
138
- top:-4px;
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
139
  }
140
 
141
  .label {
142
- margin-right:20px;
143
  }
144
 
145
  #iframe_container, iframe {
@@ -391,6 +423,7 @@ input[type='text'] {
391
  .key-status {
392
  color: #fff;
393
  text-align: center;
 
394
  }
395
 
396
  .key-description {
@@ -406,6 +439,20 @@ input[type='text'] {
406
  color: #45a147;
407
  }
408
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
409
  i.icon.icon-share_buttons {
410
  background-position: 0 0px;
411
  width: 16px;
57
  /* End Header */
58
 
59
  .container-fluid {
60
+ padding: 0px;
61
+ clear: both;
62
  }
63
 
64
  .canvas {
85
  float:left;
86
  }
87
 
88
+ fieldset#facebook-app.failed {
89
+ border: 1px solid #f44336;
90
+ }
91
+
92
  .app {
93
  width:100%;
94
  margin: 15px 0 15px 0;
102
  min-width: 200px;
103
  }
104
 
105
+ .button-wrapper {
106
+ clear: both;
107
+ padding-top: 5px;
108
  }
109
 
110
  .app h2 {
115
  }
116
 
117
  .app-content {
118
+ padding: 15px 0 5px 10px;
119
  }
120
 
121
  .app label {
122
  font-size: 12px;
123
  display: inline;
124
+ line-height: 1.6em;
125
  }
126
 
127
  legend {
134
  font-size: 13px;
135
  }
136
 
137
+ .location {
138
+ clear: both;
139
+ padding-top: 5px;
140
+ }
141
+
142
  .location_item_cta {
 
143
  margin-left: 25px;
144
  }
145
 
146
  .check {
147
  position: relative;
148
+ }
149
+
150
+ .shr-form-item {
151
+ padding-bottom: 4px !important;
152
+ }
153
+
154
+ .shr-form-item > * {
155
+ display: inline-block !important;
156
+ max-width: 90%;
157
+ vertical-align: top;
158
+ }
159
+
160
+ .shr-form-text ~ .shr-form-text {
161
+ margin-top: .5rem;
162
+ }
163
+
164
+ .shr-form-text label {
165
+ margin-bottom: 0;
166
+ }
167
+
168
+ .regular-text{
169
+ margin: 1px;
170
+ padding: 3px 5px;
171
  }
172
 
173
  .label {
174
+ margin-right: 20px;
175
  }
176
 
177
  #iframe_container, iframe {
423
  .key-status {
424
  color: #fff;
425
  text-align: center;
426
+ font-weight: 400;
427
  }
428
 
429
  .key-description {
439
  color: #45a147;
440
  }
441
 
442
+ .blink {
443
+ text-decoration: blink;
444
+ -webkit-animation-name: blinker;
445
+ -webkit-animation-duration: 2s;
446
+ -webkit-animation-iteration-count:infinite;
447
+ -webkit-animation-timing-function:ease-in-out;
448
+ -webkit-animation-direction: alternate;
449
+ }
450
+
451
+ @keyframes blinker {
452
+ from {opacity: 1.0;}
453
+ to {opacity: 0.0;}
454
+ }
455
+
456
  i.icon.icon-share_buttons {
457
  background-position: 0 0px;
458
  width: 16px;
lib/social-share-counts/LICENSE CHANGED
@@ -1,6 +1,6 @@
1
  LICENSE
2
 
3
- Copyright (c) 2014 Shareaholic, Inc.
4
 
5
  Permission is hereby granted, free of charge, to any person obtaining a copy
6
  of this software and associated documentation files (the "Software"), to deal
1
  LICENSE
2
 
3
+ Copyright (c) Shareaholic, Inc.
4
 
5
  Permission is hereby granted, free of charge, to any person obtaining a copy
6
  of this software and associated documentation files (the "Software"), to deal
lib/social-share-counts/curl_multi_share_count.php CHANGED
@@ -35,7 +35,7 @@ class ShareaholicCurlMultiShareCount extends ShareaholicShareCount {
35
  $config = self::get_services_config();
36
  $response = array();
37
  $response['status'] = 200;
38
-
39
  // array of curl handles
40
  $curl_handles = array();
41
 
@@ -96,7 +96,14 @@ class ShareaholicCurlMultiShareCount extends ShareaholicShareCount {
96
  ),
97
  );
98
  $callback = $config[$service]['callback'];
99
- $counts = $this->$callback($result);
 
 
 
 
 
 
 
100
  if(is_numeric($counts)) {
101
  $response['data'][$service] = $counts;
102
  }
@@ -111,8 +118,18 @@ class ShareaholicCurlMultiShareCount extends ShareaholicShareCount {
111
 
112
  private function curl_setopts($curl_handle, $config, $service) {
113
  // set the url to make the curl request
114
- curl_setopt($curl_handle, CURLOPT_URL, str_replace('%s', $this->url, $config[$service]['url']));
115
- $timeout = isset($this->options['timeout']) ? $this->options['timeout'] : 6;
 
 
 
 
 
 
 
 
 
 
116
 
117
  // other necessary settings:
118
  // CURLOPT_HEADER means include header in output, which we do not want
35
  $config = self::get_services_config();
36
  $response = array();
37
  $response['status'] = 200;
38
+
39
  // array of curl handles
40
  $curl_handles = array();
41
 
96
  ),
97
  );
98
  $callback = $config[$service]['callback'];
99
+
100
+ // Facebook auth?
101
+ if ($service == 'facebook' && isset($this->options['facebook_access_token'])){
102
+ $counts = $this->$callback($result, isset($this->options['facebook_access_token']));
103
+ } else {
104
+ $counts = $this->$callback($result);
105
+ }
106
+
107
  if(is_numeric($counts)) {
108
  $response['data'][$service] = $counts;
109
  }
118
 
119
  private function curl_setopts($curl_handle, $config, $service) {
120
  // set the url to make the curl request
121
+ $facebook_access_token = isset($this->options['facebook_access_token']) ? $this->options['facebook_access_token'] : false;
122
+
123
+ if ($service == 'facebook' && $facebook_access_token) {
124
+ $url = $config[$service]['url_auth'];
125
+ $url = str_replace('%s', $this->url, $url);
126
+ $url = str_replace('%auth%', $facebook_access_token, $url);
127
+ curl_setopt($curl_handle, CURLOPT_URL, $url);
128
+ } else {
129
+ curl_setopt($curl_handle, CURLOPT_URL, str_replace('%s', $this->url, $config[$service]['url']));
130
+ }
131
+
132
+ $timeout = isset($this->options['timeout']) ? $this->options['timeout'] : 5;
133
 
134
  // other necessary settings:
135
  // CURLOPT_HEADER means include header in output, which we do not want
lib/social-share-counts/seq_share_count.php CHANGED
@@ -56,13 +56,30 @@ class ShareaholicSeqShareCount extends ShareaholicShareCount {
56
  'headers' => isset($config[$service]['headers']) ? $config[$service]['headers'] : array(),
57
  'body' => isset($config[$service]['body']) ? $config[$service]['body'] : NULL,
58
  );
59
-
60
- $result = ShareaholicHttp::send(str_replace('%s', $this->url, $config[$service]['url']), $options);
 
 
 
 
 
 
 
 
 
 
 
61
  if(!$result) {
62
  $response['status'] = 500;
63
  }
64
  $callback = $config[$service]['callback'];
65
- $counts = $this->$callback($result);
 
 
 
 
 
 
66
  if(is_numeric($counts)) {
67
  $response['data'][$service] = $counts;
68
  }
56
  'headers' => isset($config[$service]['headers']) ? $config[$service]['headers'] : array(),
57
  'body' => isset($config[$service]['body']) ? $config[$service]['body'] : NULL,
58
  );
59
+
60
+ // set the url to make the curl request
61
+ $facebook_access_token = isset($this->options['facebook_access_token']) ? $this->options['facebook_access_token'] : false;
62
+
63
+ if ($service == 'facebook' && $facebook_access_token) {
64
+ $url = $config[$service]['url_auth'];
65
+ $url = str_replace('%s', $this->url, $url);
66
+ $url = str_replace('%auth%', $facebook_access_token, $url);
67
+ $result = ShareaholicHttp::send($url, $options);
68
+ } else {
69
+ $result = ShareaholicHttp::send(str_replace('%s', $this->url, $config[$service]['url']), $options);
70
+ }
71
+
72
  if(!$result) {
73
  $response['status'] = 500;
74
  }
75
  $callback = $config[$service]['callback'];
76
+
77
+ if ($service == 'facebook' && isset($this->options['facebook_access_token'])){
78
+ $counts = $this->$callback($result, isset($this->options['facebook_access_token']));
79
+ } else {
80
+ $counts = $this->$callback($result);
81
+ }
82
+
83
  if(is_numeric($counts)) {
84
  $response['data'][$service] = $counts;
85
  }
lib/social-share-counts/share_count.php CHANGED
@@ -35,6 +35,7 @@ abstract class ShareaholicShareCount {
35
  return array(
36
  'facebook' => array(
37
  'url' => 'https://graph.facebook.com/?fields=og_object{engagement{count}}&id=%s',
 
38
  'method' => 'GET',
39
  'timeout' => 3, // in number of seconds
40
  'callback' => 'facebook_count_callback',
@@ -123,7 +124,7 @@ abstract class ShareaholicShareCount {
123
  /**
124
  * Get the client's ip address
125
  *
126
- * NOTE: this function does not care if the IP is spoofed. This is used
127
  * only by the google plus count API to separate server side calls in order
128
  * to prevent usage limits. Under normal conditions, a request from a user's
129
  * browser to this API should not involve any spoofing.
@@ -156,12 +157,27 @@ abstract class ShareaholicShareCount {
156
  * @param Array $response The response from calling the API
157
  * @return mixed The counts from the API or false if error
158
  */
159
- public function facebook_count_callback($response) {
160
  if($this->has_http_error($response)) {
161
  return false;
162
  }
163
  $body = json_decode($response['body'], true);
164
- return isset($body['og_object']['engagement']['count']) ? intval($body['og_object']['engagement']['count']) : false;
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
165
  }
166
 
167
 
@@ -178,7 +194,7 @@ abstract class ShareaholicShareCount {
178
  }
179
  $response['body'] = substr($response['body'], 2, strlen($response['body']) - 3);
180
  $body = json_decode($response['body'], true);
181
- return isset($body['count']) ? intval($body['count']) : false;
182
  }
183
 
184
 
@@ -194,7 +210,7 @@ abstract class ShareaholicShareCount {
194
  return false;
195
  }
196
  $body = json_decode($response['body'], true);
197
- return isset($body['shares']) ? intval($body['shares']) : false;
198
  }
199
 
200
 
@@ -232,7 +248,7 @@ abstract class ShareaholicShareCount {
232
  // From documentation, need to just grab the 2nd param: http://vk.com/developers.php?oid=-17680044&p=Share
233
  $matches = array();
234
  preg_match('/^VK\.Share\.count\(\d, (\d+)\);$/i', $response['body'], $matches);
235
- return isset($matches[1]) ? intval($matches[1]) : false;
236
  }
237
 
238
 
@@ -248,11 +264,11 @@ abstract class ShareaholicShareCount {
248
  return false;
249
  }
250
 
251
- // Another weird API. Similar to vk, extract the 2nd param from the response:
252
  // 'ODKL.updateCount('odklcnt0','14198');'
253
  $matches = array();
254
  preg_match('/^ODKL\.updateCount\(\'odklcnt0\',\'(\d+)\'\);$/i', $response['body'], $matches);
255
- return isset($matches[1]) ? intval($matches[1]) : false;
256
  }
257
 
258
  /**
@@ -274,7 +290,7 @@ abstract class ShareaholicShareCount {
274
  $response['body'] = substr($response['body'], 0, strlen($response['body']) - 2);
275
 
276
  $body = json_decode($response['body'], true);
277
- return isset($body['count']) ? intval($body['count']) : false;
278
  }
279
 
280
  /**
@@ -289,7 +305,7 @@ abstract class ShareaholicShareCount {
289
  return false;
290
  }
291
  $body = json_decode($response['body'], true);
292
- return isset($body['response']['note_count']) ? intval($body['response']['note_count']) : false;
293
  }
294
 
295
  /**
@@ -304,7 +320,7 @@ abstract class ShareaholicShareCount {
304
  return false;
305
  }
306
  $body = json_decode($response['body'], true);
307
- return isset($body['count']) ? intval($body['count']) : false;
308
  }
309
 
310
  /**
35
  return array(
36
  'facebook' => array(
37
  'url' => 'https://graph.facebook.com/?fields=og_object{engagement{count}}&id=%s',
38
+ 'url_auth' => 'https://graph.facebook.com/?access_token=%auth%&fields=engagement&id=%s',
39
  'method' => 'GET',
40
  'timeout' => 3, // in number of seconds
41
  'callback' => 'facebook_count_callback',
124
  /**
125
  * Get the client's ip address
126
  *
127
+ * NOTE: this function does not care if the IP is spoofed. This was used
128
  * only by the google plus count API to separate server side calls in order
129
  * to prevent usage limits. Under normal conditions, a request from a user's
130
  * browser to this API should not involve any spoofing.
157
  * @param Array $response The response from calling the API
158
  * @return mixed The counts from the API or false if error
159
  */
160
+ public function facebook_count_callback($response, $facebook_access_token = false) {
161
  if($this->has_http_error($response)) {
162
  return false;
163
  }
164
  $body = json_decode($response['body'], true);
165
+ $count = 0;
166
+
167
+ if ($facebook_access_token) {
168
+ if (isset($body['engagement']['share_count'])) {
169
+ $count += $body['engagement']['share_count'];
170
+ }
171
+ if (isset($body['engagement']['reaction_count'])) {
172
+ $count += $body['engagement']['reaction_count'];
173
+ }
174
+ if (isset($body['engagement']['comment_count'])) {
175
+ $count += $body['engagement']['comment_count'];
176
+ }
177
+ return $count;
178
+ } else {
179
+ return isset($body['og_object']['engagement']['count']) ? intval($body['og_object']['engagement']['count']) : 0;
180
+ }
181
  }
182
 
183
 
194
  }
195
  $response['body'] = substr($response['body'], 2, strlen($response['body']) - 3);
196
  $body = json_decode($response['body'], true);
197
+ return isset($body['count']) ? intval($body['count']) : 0;
198
  }
199
 
200
 
210
  return false;
211
  }
212
  $body = json_decode($response['body'], true);
213
+ return isset($body['shares']) ? intval($body['shares']) : 0;
214
  }
215
 
216
 
248
  // From documentation, need to just grab the 2nd param: http://vk.com/developers.php?oid=-17680044&p=Share
249
  $matches = array();
250
  preg_match('/^VK\.Share\.count\(\d, (\d+)\);$/i', $response['body'], $matches);
251
+ return isset($matches[1]) ? intval($matches[1]) : 0;
252
  }
253
 
254
 
264
  return false;
265
  }
266
 
267
+ // Similar to vk, extract the 2nd param from the response:
268
  // 'ODKL.updateCount('odklcnt0','14198');'
269
  $matches = array();
270
  preg_match('/^ODKL\.updateCount\(\'odklcnt0\',\'(\d+)\'\);$/i', $response['body'], $matches);
271
+ return isset($matches[1]) ? intval($matches[1]) : 0;
272
  }
273
 
274
  /**
290
  $response['body'] = substr($response['body'], 0, strlen($response['body']) - 2);
291
 
292
  $body = json_decode($response['body'], true);
293
+ return isset($body['count']) ? intval($body['count']) : 0;
294
  }
295
 
296
  /**
305
  return false;
306
  }
307
  $body = json_decode($response['body'], true);
308
+ return isset($body['response']['note_count']) ? intval($body['response']['note_count']) : 0;
309
  }
310
 
311
  /**
320
  return false;
321
  }
322
  $body = json_decode($response['body'], true);
323
+ return isset($body['count']) ? intval($body['count']) : 0;
324
  }
325
 
326
  /**
public.php CHANGED
@@ -493,6 +493,10 @@ class ShareaholicPublic {
493
  if ($debug_mode && isset($_GET['timeout'])) {
494
  $options['timeout'] = intval($_GET['timeout']);
495
  }
 
 
 
 
496
 
497
  if(is_array($services) && count($services) > 0 && !empty($url)) {
498
  if ($debug_mode && isset($_GET['client'])) {
@@ -523,7 +527,7 @@ class ShareaholicPublic {
523
 
524
  header('Access-Control-Allow-Origin: *');
525
  header('Content-Type: application/json');
526
- header('Cache-Control: max-age=180'); // 3 minutes
527
  echo json_encode($result);
528
  exit;
529
  }
@@ -636,11 +640,14 @@ class ShareaholicPublic {
636
  ),
637
  'advanced_settings' => array (
638
  'server_side_share_count_api' => $server_side_share_count_status,
 
 
639
  'enable_user_nicename' => ShareaholicUtilities::get_option('enable_user_nicename'),
 
640
  'disable_admin_bar_menu' => ShareaholicUtilities::get_option('disable_admin_bar_menu'),
641
  )
642
  );
643
-
644
  header('Content-Type: application/json');
645
  echo json_encode($info);
646
  exit;
493
  if ($debug_mode && isset($_GET['timeout'])) {
494
  $options['timeout'] = intval($_GET['timeout']);
495
  }
496
+
497
+ if (ShareaholicUtilities::facebook_auth_check() == "SUCCESS") {
498
+ $options['facebook_access_token'] = ShareaholicUtilities::fetch_fb_access_token();
499
+ }
500
 
501
  if(is_array($services) && count($services) > 0 && !empty($url)) {
502
  if ($debug_mode && isset($_GET['client'])) {
527
 
528
  header('Access-Control-Allow-Origin: *');
529
  header('Content-Type: application/json');
530
+ header('Cache-Control: max-age=600'); // 10 minutes
531
  echo json_encode($result);
532
  exit;
533
  }
640
  ),
641
  'advanced_settings' => array (
642
  'server_side_share_count_api' => $server_side_share_count_status,
643
+ 'facebook_access_token' => ShareaholicUtilities::fetch_fb_access_token() === false ? 'no' : 'yes',
644
+ 'facebook_auth_check' => ShareaholicUtilities::facebook_auth_check(),
645
  'enable_user_nicename' => ShareaholicUtilities::get_option('enable_user_nicename'),
646
+ 'disable_og_tags' => ShareaholicUtilities::get_option('disable_og_tags'),
647
  'disable_admin_bar_menu' => ShareaholicUtilities::get_option('disable_admin_bar_menu'),
648
  )
649
  );
650
+
651
  header('Content-Type: application/json');
652
  echo json_encode($info);
653
  exit;
readme.txt CHANGED
@@ -4,7 +4,7 @@ Tags: buttons, related posts, google analytics, share buttons, social sharing,
4
  Requires at least: 3.3
5
  Tested up to: 5.2
6
  Requires PHP: 5.2
7
- Stable tag: 8.12.6
8
 
9
 
10
  Boost Audience Engagement with Award Winning Site-Speed Optimized Social Tools: Share Buttons, Related Posts, Monetization & Google Analytics.
@@ -267,6 +267,9 @@ The default Shareaholic thumbnail width is 640px with dynamic height and no crop
267
  Each time you change Shareaholic's thumbnail dimensions like this, you will probably want to have WordPress regenerate appropriate sized thumbnails for all of your images. We highly recommend the [Regenerate Thumbnails](https://wordpress.org/plugins/regenerate-thumbnails/) plugin for this purpose.
268
 
269
  == Changelog ==
 
 
 
270
  = 8.12.6 (2019-05-06) =
271
  * Updated Admin Submenu order
272
  * Updated CDN path
@@ -896,7 +899,7 @@ Each time you change Shareaholic's thumbnail dimensions like this, you will prob
896
  * Show Related Posts data status
897
 
898
  == Upgrade Notice ==
899
- = 8.12.6 =
900
  We update this plugin regularly so we can make it better for you. Update to the latest version for all of the available features and improvements. Thanks for using Shareaholic!
901
 
902
  = 8.12.1 =
4
  Requires at least: 3.3
5
  Tested up to: 5.2
6
  Requires PHP: 5.2
7
+ Stable tag: 8.13.0
8
 
9
 
10
  Boost Audience Engagement with Award Winning Site-Speed Optimized Social Tools: Share Buttons, Related Posts, Monetization & Google Analytics.
267
  Each time you change Shareaholic's thumbnail dimensions like this, you will probably want to have WordPress regenerate appropriate sized thumbnails for all of your images. We highly recommend the [Regenerate Thumbnails](https://wordpress.org/plugins/regenerate-thumbnails/) plugin for this purpose.
268
 
269
  == Changelog ==
270
+ = 8.13.0 (2019-05-24) =
271
+ * Support for authenticated Facebook Graph API calls from the Server Side Share Counts API. Fixes issue with significantly reduced Share Counts from Facebook in some cases. Please turn on the Server Side Share Count API from the Advanced Settings tab. You will need to save your [Facebook App ID and Secret keys](https://support.shareaholic.com/hc/en-us/articles/360028605231).
272
+
273
  = 8.12.6 (2019-05-06) =
274
  * Updated Admin Submenu order
275
  * Updated CDN path
899
  * Show Related Posts data status
900
 
901
  == Upgrade Notice ==
902
+ = 8.13.0 =
903
  We update this plugin regularly so we can make it better for you. Update to the latest version for all of the available features and improvements. Thanks for using Shareaholic!
904
 
905
  = 8.12.1 =
shareaholic.php CHANGED
@@ -3,14 +3,14 @@
3
  * The main file!
4
  *
5
  * @package shareaholic
6
- * @version 8.12.6
7
  */
8
 
9
  /*
10
  Plugin Name: Fast Share Buttons, Analytics, Related Posts and More - Shareaholic
11
  Plugin URI: https://www.shareaholic.com/website-tools/
12
  Description: The award winning all-in-one Social Media and Related Posts solution for WordPress. Get found on social and grow your following. See <a href="admin.php?page=shareaholic-settings">configuration panel</a> for settings.
13
- Version: 8.12.6
14
  Author: Shareaholic
15
  Author URI: https://www.shareaholic.com
16
  Text Domain: shareaholic
@@ -61,7 +61,7 @@ if (!class_exists('Shareaholic')) {
61
  const API_URL = 'https://web.shareaholic.com'; // uses static IPs for firewall whitelisting
62
  const CM_API_URL = 'https://cm-web.shareaholic.com'; // uses static IPs for firewall whitelisting
63
 
64
- const VERSION = '8.12.6';
65
 
66
  /**
67
  * Starts off as false so that ::get_instance() returns
3
  * The main file!
4
  *
5
  * @package shareaholic
6
+ * @version 8.13.0
7
  */
8
 
9
  /*
10
  Plugin Name: Fast Share Buttons, Analytics, Related Posts and More - Shareaholic
11
  Plugin URI: https://www.shareaholic.com/website-tools/
12
  Description: The award winning all-in-one Social Media and Related Posts solution for WordPress. Get found on social and grow your following. See <a href="admin.php?page=shareaholic-settings">configuration panel</a> for settings.
13
+ Version: 8.13.0
14
  Author: Shareaholic
15
  Author URI: https://www.shareaholic.com
16
  Text Domain: shareaholic
61
  const API_URL = 'https://web.shareaholic.com'; // uses static IPs for firewall whitelisting
62
  const CM_API_URL = 'https://cm-web.shareaholic.com'; // uses static IPs for firewall whitelisting
63
 
64
+ const VERSION = '8.13.0';
65
 
66
  /**
67
  * Starts off as false so that ::get_instance() returns
templates/advanced_settings.php CHANGED
@@ -12,97 +12,144 @@ window.ShareaholicConfig = {
12
  </script>
13
 
14
  <div class='wrap'>
15
- <h2><?php _e('Advanced Settings', 'shareaholic'); ?></h2>
16
  <div style="margin-top:10px;"></div>
17
 
18
  <div class="container-fluid">
19
  <div class="row">
20
  <div class="col-md-12">
21
- <?php echo sprintf(__('You rarely should need to edit the settings on this page.', 'shareaholic')); ?> <?php _e('After changing any Shareaholic advanced setting, it is good practice to clear any WordPress caching plugins (if you are using one, like W3 Total Cache or WP Super Cache).', 'shareaholic'); ?>
22
-
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
23
  <form name='advanced_settings' method='post' action='<?php echo $action ?>'>
24
  <?php wp_nonce_field($action, 'nonce_field') ?>
25
  <input type='hidden' name='already_submitted' value='Y'>
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
26
  <div class='clear'>
27
  <div class="app">
28
  <h2><?php _e('Advanced', 'shareaholic'); ?></h2>
29
- <p class="app-content">
30
- <input type='checkbox' id='og_tags' name='shareaholic[disable_og_tags]' class='check'
31
- <?php if (isset($settings['disable_og_tags'])) { ?>
32
- <?php echo ($settings['disable_og_tags'] == 'on' ? 'checked' : '') ?>
33
- <?php } ?>>
34
- <label class="font-normal" for="og_tags"> <?php echo sprintf(__('Disable <code>Open Graph</code> tags', 'shareaholic')); ?> <?php echo sprintf(__('(it is recommended NOT to disable open graph tags)', 'shareaholic')); ?></label>
35
- <br />
36
- <input type='checkbox' id='admin_bar' name='shareaholic[disable_admin_bar_menu]' class='check'
37
- <?php if (isset($settings['disable_admin_bar_menu'])) { ?>
38
- <?php echo ($settings['disable_admin_bar_menu'] == 'on' ? 'checked' : '') ?>
39
- <?php } ?>>
40
- <label class="font-normal" for="admin_bar"> <?php echo sprintf(__('Disable Admin Bar Menu (requires page refresh)', 'shareaholic')); ?></label>
41
- <br/>
42
- <input type='checkbox' id='debugger' name='shareaholic[disable_debug_info]' class='check'
43
- <?php if (isset($settings['disable_debug_info'])) { ?>
44
- <?php echo ($settings['disable_debug_info'] == 'on' ? 'checked' : '') ?>
45
- <?php } ?>>
46
- <label class="font-normal" for="debugger"> <?php echo sprintf(__('Disable Debugger (it is recommended NOT to disable the debugger)', 'shareaholic')); ?></label>
47
- <br/>
48
- <input type='checkbox' id='user_nicename' name='shareaholic[enable_user_nicename]' class='check'
49
- <?php if (isset($settings['enable_user_nicename'])) { ?>
50
- <?php echo ($settings['enable_user_nicename'] == 'on' ? 'checked' : '') ?>
51
- <?php } ?>>
52
- <label class="font-normal" for="user_nicename"> <?php echo sprintf(__('Enable <code>&percnt;author&percnt;</code> permalink tag for Share Count Recovery', 'shareaholic')); ?></label>
53
- <br/>
54
- <input type='checkbox' id='share_counts' name='shareaholic[disable_internal_share_counts_api]' class='check'
55
- <?php if (isset($settings['disable_internal_share_counts_api'])) { ?>
56
- <?php echo ($settings['disable_internal_share_counts_api'] == 'on' ? 'checked' : '') ?>
57
- <?php } ?>>
58
- <label class="font-normal" for="share_counts"> <?php echo sprintf(__('Disable server-side Share Counts API', 'shareaholic')); ?> <?php echo sprintf(__('(This GDPR feature uses server resources. When "enabled" share counts will appear for <a href="https://github.com/shareaholic/shareaholic-api-docs/blob/master/api_share.md" target="_blank">additional social networks</a>.)', 'shareaholic')); ?></label>
59
- <p>
60
  <input type='submit' class="btn btn-primary btn-medium" onclick="this.value='<?php echo sprintf(__('Saving Changes...', 'shareaholic')); ?>';" value='<?php echo sprintf(__('Save Changes', 'shareaholic')); ?>'>
61
- </p>
62
- </p>
63
  </div>
64
  </div>
65
  </form>
66
 
67
- <div class='clear'></div>
68
-
69
- <div class="app">
70
- <h2><?php _e('Server Connectivity', 'shareaholic'); ?></h2>
71
- <p class="app-content">
72
- <?php if (ShareaholicUtilities::connectivity_check() == "SUCCESS") { ?>
73
- <span class="key-status passed"><i class="fa fa-circle" aria-hidden="true" class="green"></i> <?php _e('All Shareaholic servers are reachable', 'shareaholic'); ?></span>
74
- <p class="key-description"><?php _e('Shareaholic should be working correctly.', 'shareaholic'); ?> <?php _e('All Shareaholic servers are accessible.', 'shareaholic'); ?></p>
75
- <?php } else { // can't connect to any server ?>
76
- <span class="key-status failed"><i class="fa fa-circle" aria-hidden="true" class="red"></i> <?php _e('Unable to reach any Shareaholic server', 'shareaholic'); ?></span> <a href="#" onClick="window.location.reload(); this.innerHTML='<?php _e('Checking...', 'shareaholic'); ?>';"><?php _e('Re-check', 'shareaholic'); ?></a>
77
- <p class="key-description"><?php echo sprintf( __('A network problem or firewall is blocking all connections from your web server to Shareaholic.com. <strong>Shareaholic cannot work correctly until this is fixed.</strong> Please contact your web host or firewall administrator and give them <a href="%s" target="_blank">this information about Shareaholic and firewalls</a>. <a href="#" class="%s">Let us know too</a>, so we can follow up!'), 'https://www.shareaholic.com/blog/shareaholic-hosting-faq/', 'drift-open-chat','</a>'); ?></p>
78
- <?php } ?>
79
- </p>
80
- <p>
81
- <?php if (ShareaholicUtilities::get_option('disable_internal_share_counts_api') == NULL || ShareaholicUtilities::get_option('disable_internal_share_counts_api') == "off"){ ?>
82
- <?php if (ShareaholicUtilities::share_counts_api_connectivity_check() == 'SUCCESS') { ?>
83
- <span class="key-status passed"><i class="fa fa-circle" aria-hidden="true" class="green"></i> <?php _e('Server-side Share Counts API is reachable', 'shareaholic'); ?></span>
84
- <p class="key-description"><?php _e('The server-side Share Counts API should be working correctly.', 'shareaholic'); ?> <?php _e('All servers and services needed by the API are accessible.', 'shareaholic'); ?></p>
85
- <?php } else { // can't connect to any server ?>
86
- <span class="key-status failed"><i class="fa fa-circle" aria-hidden="true" class="red"></i> <?php _e('Unable to reach the server-side Share Count API', 'shareaholic'); ?></span> <a href="#" onClick="window.location.reload(); this.innerHTML='<?php _e('Checking...', 'shareaholic'); ?>';"><?php _e('Re-check', 'shareaholic'); ?></a>
87
- <p class="key-description"><?php echo sprintf( __('A network problem or firewall is blocking connections from your web server to various Share Count APIs. <strong>The API cannot work correctly until this is fixed.</strong> If you continue to face this issue, please <a href="#" class="%s">contact us</a> and we will follow up! In the meantime, if you disable the server-side Share Counts API from the Advanced options above, Shareaholic will default to using client-side APIs for share counts successfully -- so nothing to worry about!'), 'drift-open-chat'); ?></p>
88
- <?php } ?>
89
- <?php } ?>
90
- </p>
91
- </div>
92
-
93
- <div class='clear'></div>
94
-
95
- <div class="app">
96
- <h2><?php _e('Your Shareaholic Site ID', 'shareaholic'); ?></h2>
97
- <p class="app-content">
98
- <?php if (ShareaholicUtilities::get_option('api_key')){
99
- echo '<code style="font-size: 16px;">'.ShareaholicUtilities::get_option('api_key').'</code>';
100
- } else {
101
- _e('Not set.', 'shareaholic');
102
- } ?>
103
- </p>
104
- </div>
105
-
106
  <div class='clear'></div>
107
 
108
  <form name='reset_settings' method='post' action='<?php echo $action ?>'>
@@ -110,15 +157,15 @@ window.ShareaholicConfig = {
110
  <input type='hidden' name='reset_settings' value='Y'>
111
  <div class="app">
112
  <h2><?php _e('Reset Plugin', 'shareaholic'); ?></h2>
113
- <p class="app-content">
114
  <?php _e('This will reset all of your settings and start you from scratch. This can not be undone.', 'shareaholic'); ?>
115
- <p>
116
  <input class="btn btn-danger btn-medium" type='submit' onclick="this.value='<?php _e('Resetting Plugin...', 'shareaholic'); ?>';" value='<?php _e('Reset Plugin', 'shareaholic'); ?>'>
117
- </p>
118
- </p>
119
  </div>
120
 
121
- <div class='clear' style="padding-bottom:15px;"></div>
122
 
123
  </form>
124
  </div>
12
  </script>
13
 
14
  <div class='wrap'>
15
+ <h2><?php _e('Plugin Advanced Settings', 'shareaholic'); ?></h2>
16
  <div style="margin-top:10px;"></div>
17
 
18
  <div class="container-fluid">
19
  <div class="row">
20
  <div class="col-md-12">
21
+ <?php _e('After changing any Shareaholic advanced setting, it is good practice to clear any WordPress caching plugins like W3 Total Cache or WP Super Cache.', 'shareaholic'); ?>
22
+
23
+ <div class='clear'></div>
24
+
25
+ <div class="app">
26
+ <h2><?php _e('Shareaholic Site Profile ID', 'shareaholic'); ?></h2>
27
+ <div class="app-content">
28
+ <?php if (ShareaholicUtilities::get_option('api_key')){
29
+ echo '<code style="font-size: 16px;">'.ShareaholicUtilities::get_option('api_key').'</code>';
30
+ } else {
31
+ _e('Not set.', 'shareaholic');
32
+ } ?>
33
+ </div>
34
+ </div>
35
+
36
+ <div class='clear'></div>
37
+
38
+ <div class="app">
39
+ <h2><?php _e('Server Connectivity', 'shareaholic'); ?></h2>
40
+ <div class="app-content">
41
+ <?php if (ShareaholicUtilities::connectivity_check() == "SUCCESS") { ?>
42
+ <span class="key-status passed"><i class="fa fa-circle green" aria-hidden="true"></i> <?php _e('Shareaholic.com servers are reachable', 'shareaholic'); ?></span>
43
+ <p class="key-description"><?php _e('Shareaholic should be working correctly.', 'shareaholic'); ?> <?php _e('All Shareaholic servers are accessible.', 'shareaholic'); ?></p>
44
+ <?php } else { // can't connect to any server ?>
45
+ <span class="key-status failed"><i class="fa fa-circle red blink" aria-hidden="true"></i> <?php _e('Unable to reach any Shareaholic server', 'shareaholic'); ?></span> <a href="#" onClick="window.location.reload(); this.innerHTML='<?php _e('Checking...', 'shareaholic'); ?>';"><?php _e('Re-check', 'shareaholic'); ?></a>
46
+ <p class="key-description"><?php echo sprintf( __('A network problem or firewall is blocking connections from your web server to Shareaholic.com. <strong>Shareaholic cannot work correctly until this is fixed.</strong> Please contact your web host or firewall administrator and give them <a href="%s" target="_blank">this information about Shareaholic and firewalls</a>. <a href="#" class="%s">Let us know too</a>, so we can follow up!'), 'https://www.shareaholic.com/blog/shareaholic-hosting-faq/', 'drift-open-chat','</a>'); ?></p>
47
+ <?php } ?>
48
+
49
+ <?php if (ShareaholicUtilities::get_option('disable_internal_share_counts_api') == NULL || ShareaholicUtilities::get_option('disable_internal_share_counts_api') == "off"){ ?>
50
+ <?php if (ShareaholicUtilities::share_counts_api_connectivity_check() == 'SUCCESS') { ?>
51
+ <span class="key-status passed"><i class="fa fa-circle green" aria-hidden="true"></i> <?php _e('Server-side Share Counts API is reachable', 'shareaholic'); ?></span>
52
+ <p class="key-description"><?php _e('The server-side Share Counts API should be working correctly.', 'shareaholic'); ?> <?php _e('All servers and services needed by the API are accessible.', 'shareaholic'); ?></p>
53
+ <?php } else { // can't connect to any server ?>
54
+ <span class="key-status failed"><i class="fa fa-circle red blink" aria-hidden="true"></i> <?php _e('Unable to reach the server-side Share Count API', 'shareaholic'); ?></span> <a href="#" onClick="window.location.reload(); this.innerHTML='<?php _e('Checking...', 'shareaholic'); ?>';"><?php _e('Re-check', 'shareaholic'); ?></a>
55
+ <p class="key-description"><?php echo sprintf( __('A network problem or firewall is blocking connections from your web server to various Share Count APIs. <strong>The API cannot work correctly until this is fixed.</strong> If you continue to face this issue, please <a href="#" class="%s">contact us</a> and we will follow up! In the meantime, if you disable the server-side Share Counts API from the Social Share Counts options, Shareaholic will default to using client-side APIs for share counts successfully -- so nothing to worry about!'), 'drift-open-chat'); ?></p>
56
+ <?php } ?>
57
+ <?php } ?>
58
+ </div>
59
+ </div>
60
+
61
+ <div class='clear'></div>
62
+
63
  <form name='advanced_settings' method='post' action='<?php echo $action ?>'>
64
  <?php wp_nonce_field($action, 'nonce_field') ?>
65
  <input type='hidden' name='already_submitted' value='Y'>
66
+ <div class='clear'>
67
+ <div class="app">
68
+ <h2><?php _e('Social Share Counts', 'shareaholic'); ?></h2>
69
+ <div class="app-content">
70
+
71
+ <div class="shr-form-item">
72
+ <input type='checkbox' id='user_nicename' name='shareaholic[enable_user_nicename]' class='check'
73
+ <?php if (isset($settings['enable_user_nicename'])) { ?>
74
+ <?php echo ($settings['enable_user_nicename'] == 'on' ? 'checked' : '') ?>
75
+ <?php } ?>>
76
+ <label for="user_nicename"> <?php echo sprintf(__('Enable <code>&percnt;author&percnt;</code> permalink tag for Share Count Recovery', 'shareaholic')); ?></label>
77
+ </div>
78
+
79
+ <div class="shr-form-item">
80
+ <input type='checkbox' id='share_counts' name='shareaholic[disable_internal_share_counts_api]' class='check'
81
+ <?php if (isset($settings['disable_internal_share_counts_api'])) { ?>
82
+ <?php echo ($settings['disable_internal_share_counts_api'] == 'on' ? 'checked' : '') ?>
83
+ <?php } ?>>
84
+ <label for="share_counts"> <?php echo sprintf(__('Disable server-side Share Counts API.', 'shareaholic')); ?> <?php echo sprintf(__('When enabled, Share Counts will be fetched server-side. Once fetched, Share Counts are cached locally to ensure maximum performance. This is a privacy feature and uses server resources.', 'shareaholic')); ?></label>
85
+ </div>
86
+
87
+ <?php if (isset($settings['disable_internal_share_counts_api']) && $settings['disable_internal_share_counts_api'] != 'on') { ?>
88
+ <fieldset id='facebook-app' <?php echo (ShareaholicUtilities::facebook_auth_check() != 'SUCCESS' ? "class='failed'" : '') ?>>
89
+ <legend>
90
+ <?php _e('Facebook', 'shareaholic'); ?>
91
+
92
+ <?php if (ShareaholicUtilities::facebook_auth_check() == 'SUCCESS') { ?>
93
+ <span class="key-status passed"><i class="fa fa-circle green" aria-hidden="true"></i> <?php _e('Live', 'shareaholic'); ?></span>
94
+ <?php } else { ?>
95
+ <span class="key-status failed"><i class="fa fa-circle red blink" aria-hidden="true"></i> <?php _e('Missing or Invalid Credentials', 'shareaholic'); ?></span></a>
96
+ <?php } ?>
97
+
98
+ </legend>
99
+
100
+ <div class="shr-form-item shr-form-text">
101
+ <label for="facebook_app_id"><?php _e('Facebook App ID', 'shareaholic'); ?></label><br>
102
+ <input class="regular-text" id="facebook_app_id" type="text" name='shareaholic[facebook_app_id]' value="<?php if (isset($settings['facebook_app_id'])) {echo $settings['facebook_app_id'];} ?>">
103
+ </div>
104
+ <div class="shr-form-item shr-form-text">
105
+ <label for="facebook_app_secret"><?php _e('Facebook App Secret', 'shareaholic'); ?></label><br>
106
+ <input class="regular-text" id="facebook_app_secret" type="text" name='shareaholic[facebook_app_secret]' value="<?php if (isset($settings['facebook_app_id'])) {echo $settings['facebook_app_secret'];} ?>">
107
+ </div>
108
+
109
+ <?php echo sprintf(__('Required for better Facebook Share Counts. Please %sfollow documentation%s to get your Facebook App ID and Secret.', 'shareaholic'), '<a href="https://support.shareaholic.com/hc/en-us/articles/360028605231" target="_blank">','</a>'); ?>
110
+ </fieldset>
111
+ <?php } ?>
112
+
113
+ <div class="button-wrapper">
114
+ <input type='submit' class="btn btn-primary btn-medium" onclick="this.value='<?php echo sprintf(__('Saving Changes...', 'shareaholic')); ?>';" value='<?php echo sprintf(__('Save Changes', 'shareaholic')); ?>'>
115
+ </div>
116
+ </div>
117
+ </div>
118
+ </div>
119
+
120
  <div class='clear'>
121
  <div class="app">
122
  <h2><?php _e('Advanced', 'shareaholic'); ?></h2>
123
+ <div class="app-content">
124
+ <div class="shr-form-item">
125
+ <input type='checkbox' id='og_tags' name='shareaholic[disable_og_tags]' class='check'
126
+ <?php if (isset($settings['disable_og_tags'])) { ?>
127
+ <?php echo ($settings['disable_og_tags'] == 'on' ? 'checked' : '') ?>
128
+ <?php } ?>>
129
+ <label for="og_tags"> <?php echo sprintf(__('Disable <code>Open Graph</code> tags', 'shareaholic')); ?> <?php echo sprintf(__('(it is recommended NOT to disable open graph tags)', 'shareaholic')); ?></label>
130
+ </div>
131
+ <div class="shr-form-item">
132
+ <input type='checkbox' id='admin_bar' name='shareaholic[disable_admin_bar_menu]' class='check'
133
+ <?php if (isset($settings['disable_admin_bar_menu'])) { ?>
134
+ <?php echo ($settings['disable_admin_bar_menu'] == 'on' ? 'checked' : '') ?>
135
+ <?php } ?>>
136
+ <label for="admin_bar"> <?php echo sprintf(__('Disable Admin Bar Menu (requires page refresh)', 'shareaholic')); ?></label>
137
+ </div>
138
+ <div class="shr-form-item">
139
+ <input type='checkbox' id='debugger' name='shareaholic[disable_debug_info]' class='check'
140
+ <?php if (isset($settings['disable_debug_info'])) { ?>
141
+ <?php echo ($settings['disable_debug_info'] == 'on' ? 'checked' : '') ?>
142
+ <?php } ?>>
143
+ <label for="debugger"> <?php echo sprintf(__('Disable Debugger (it is recommended NOT to disable the debugger)', 'shareaholic')); ?></label>
144
+ </div>
145
+ <div class="button-wrapper">
 
 
 
 
 
 
 
 
146
  <input type='submit' class="btn btn-primary btn-medium" onclick="this.value='<?php echo sprintf(__('Saving Changes...', 'shareaholic')); ?>';" value='<?php echo sprintf(__('Save Changes', 'shareaholic')); ?>'>
147
+ </div>
148
+ </div>
149
  </div>
150
  </div>
151
  </form>
152
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
153
  <div class='clear'></div>
154
 
155
  <form name='reset_settings' method='post' action='<?php echo $action ?>'>
157
  <input type='hidden' name='reset_settings' value='Y'>
158
  <div class="app">
159
  <h2><?php _e('Reset Plugin', 'shareaholic'); ?></h2>
160
+ <div class="app-content">
161
  <?php _e('This will reset all of your settings and start you from scratch. This can not be undone.', 'shareaholic'); ?>
162
+ <div class="button-wrapper">
163
  <input class="btn btn-danger btn-medium" type='submit' onclick="this.value='<?php _e('Resetting Plugin...', 'shareaholic'); ?>';" value='<?php _e('Reset Plugin', 'shareaholic'); ?>'>
164
+ </div>
165
+ </div>
166
  </div>
167
 
168
+ <div class='clear' style="padding-bottom:10px;"></div>
169
 
170
  </form>
171
  </div>
templates/settings.php CHANGED
@@ -12,7 +12,7 @@ window.ShareaholicConfig = {
12
  </script>
13
 
14
  <div class='wrap'>
15
- <h2><?php echo sprintf(__('App Manager', 'shareaholic')); ?></h2>
16
 
17
  <div class='reveal-modal' id='editing_modal'>
18
  <div id='iframe_container' class='bg-loading-img' allowtransparency='true'></div>
@@ -21,7 +21,7 @@ window.ShareaholicConfig = {
21
 
22
  <div class="container-fluid">
23
  <div class="row">
24
- <div class="col-md-8">
25
  <form name="settings" method="post" action="<?php echo $action; ?>">
26
  <?php wp_nonce_field($action, 'nonce_field') ?>
27
  <input type="hidden" name="already_submitted" value="Y">
@@ -35,7 +35,7 @@ window.ShareaholicConfig = {
35
  </div>
36
 
37
  <div class="app">
38
- <p><a href="<?php echo esc_url(admin_url("admin.php?shareaholic_redirect_url=shareaholic.com/signup/")); ?>" target="_blank" class="btn btn-warning btn-block" role="button" style="font-size: 14px;"><?php echo sprintf(__('Shareaholic Dashboard', 'shareaholic')); ?></a>
39
  </p>
40
  <p>
41
  <?php echo sprintf(__('Configure Apps such as Floating Share buttons, Social Share Count Recovery, Follow buttons, Share Buttons for Images, Monetization Dashboard, EU Cookie Consent bar, and more from the dashboard.', 'shareaholic')); ?>
@@ -55,7 +55,7 @@ window.ShareaholicConfig = {
55
  <?php if (isset($settings['location_name_ids']['share_buttons']["{$page_type}_{$position}_content"])) { ?>
56
  <?php $location_id = $settings['location_name_ids']['share_buttons']["{$page_type}_{$position}_content"] ?>
57
  <?php } else { $location_id = ''; } ?>
58
- <div>
59
  <input type="checkbox" id="share_buttons_<?php echo "{$page_type}_{$position}_content" ?>" name="share_buttons[<?php echo "{$page_type}_{$position}_content" ?>]" class="check"
60
  <?php if (isset($share_buttons["{$page_type}_{$position}_content"])) { ?>
61
  <?php echo ($share_buttons["{$page_type}_{$position}_content"] == 'on' ? 'checked' : '') ?>
@@ -64,7 +64,7 @@ window.ShareaholicConfig = {
64
  <button data-app='share_buttons'
65
  data-location_id='<?php echo intval($location_id); ?>'
66
  data-href='share_buttons/locations/{{id}}/edit'
67
- class="location_item_cta btn btn-xs btn-success">
68
  <?php _e('Customize', 'shareaholic'); ?></button>
69
  </div>
70
  <?php } ?>
@@ -103,7 +103,7 @@ window.ShareaholicConfig = {
103
  <?php } else { $location_id = ''; } ?>
104
  <fieldset id='recommendations'>
105
  <legend><?php echo ucfirst($page_type) ?></legend>
106
- <div>
107
  <input type="checkbox" id="recommendations_<?php echo "{$page_type}_below_content" ?>" name="recommendations[<?php echo "{$page_type}_below_content" ?>]" class="check"
108
  <?php if (isset($recommendations["{$page_type}_below_content"])) { ?>
109
  <?php echo ($recommendations["{$page_type}_below_content"] == 'on' ? 'checked' : '') ?>
@@ -112,7 +112,7 @@ window.ShareaholicConfig = {
112
  <button data-app='recommendations'
113
  data-location_id='<?php echo intval($location_id); ?>'
114
  data-href="recommendations/locations/{{id}}/edit"
115
- class="location_item_cta btn btn-xs btn-success">
116
  <?php _e('Customize', 'shareaholic'); ?></button>
117
  </div>
118
  <?php } ?>
12
  </script>
13
 
14
  <div class='wrap'>
15
+ <h2><?php echo sprintf(__('App Manager - Legacy', 'shareaholic')); ?></h2>
16
 
17
  <div class='reveal-modal' id='editing_modal'>
18
  <div id='iframe_container' class='bg-loading-img' allowtransparency='true'></div>
21
 
22
  <div class="container-fluid">
23
  <div class="row">
24
+ <div class="col-sm-8">
25
  <form name="settings" method="post" action="<?php echo $action; ?>">
26
  <?php wp_nonce_field($action, 'nonce_field') ?>
27
  <input type="hidden" name="already_submitted" value="Y">
35
  </div>
36
 
37
  <div class="app">
38
+ <p><a href="<?php echo esc_url(admin_url("admin.php?shareaholic_redirect_url=shareaholic.com/signup/")); ?>" target="_blank" class="btn btn-warning btn-block" role="button" style="font-size: 14px;"><?php echo sprintf(__('Open Shareaholic Cloud Dashboard', 'shareaholic')); ?></a>
39
  </p>
40
  <p>
41
  <?php echo sprintf(__('Configure Apps such as Floating Share buttons, Social Share Count Recovery, Follow buttons, Share Buttons for Images, Monetization Dashboard, EU Cookie Consent bar, and more from the dashboard.', 'shareaholic')); ?>
55
  <?php if (isset($settings['location_name_ids']['share_buttons']["{$page_type}_{$position}_content"])) { ?>
56
  <?php $location_id = $settings['location_name_ids']['share_buttons']["{$page_type}_{$position}_content"] ?>
57
  <?php } else { $location_id = ''; } ?>
58
+ <div class="location">
59
  <input type="checkbox" id="share_buttons_<?php echo "{$page_type}_{$position}_content" ?>" name="share_buttons[<?php echo "{$page_type}_{$position}_content" ?>]" class="check"
60
  <?php if (isset($share_buttons["{$page_type}_{$position}_content"])) { ?>
61
  <?php echo ($share_buttons["{$page_type}_{$position}_content"] == 'on' ? 'checked' : '') ?>
64
  <button data-app='share_buttons'
65
  data-location_id='<?php echo intval($location_id); ?>'
66
  data-href='share_buttons/locations/{{id}}/edit'
67
+ class="location_item_cta btn btn-sm btn-success float-right">
68
  <?php _e('Customize', 'shareaholic'); ?></button>
69
  </div>
70
  <?php } ?>
103
  <?php } else { $location_id = ''; } ?>
104
  <fieldset id='recommendations'>
105
  <legend><?php echo ucfirst($page_type) ?></legend>
106
+ <div class="location">
107
  <input type="checkbox" id="recommendations_<?php echo "{$page_type}_below_content" ?>" name="recommendations[<?php echo "{$page_type}_below_content" ?>]" class="check"
108
  <?php if (isset($recommendations["{$page_type}_below_content"])) { ?>
109
  <?php echo ($recommendations["{$page_type}_below_content"] == 'on' ? 'checked' : '') ?>
112
  <button data-app='recommendations'
113
  data-location_id='<?php echo intval($location_id); ?>'
114
  data-href="recommendations/locations/{{id}}/edit"
115
+ class="location_item_cta btn btn-sm btn-success">
116
  <?php _e('Customize', 'shareaholic'); ?></button>
117
  </div>
118
  <?php } ?>
templates/why_to_sign_up.php CHANGED
@@ -1,4 +1,4 @@
1
- <div class="col-md-4">
2
  <!--<div class="signuppromo">
3
  <p class="promoh1">
4
  <?php echo sprintf(__('Link to Shareaholic.com to unlock:', 'shareaholic')); ?>
1
+ <div class="col-sm-4">
2
  <!--<div class="signuppromo">
3
  <p class="promoh1">
4
  <?php echo sprintf(__('Link to Shareaholic.com to unlock:', 'shareaholic')); ?>
trunk/admin.php ADDED
@@ -0,0 +1,749 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ <?php
2
+ /**
3
+ * This file holds the ShareaholicAdmin class.
4
+ *
5
+ * @package shareaholic
6
+ */
7
+
8
+ /**
9
+ * This class takes care of all of the admin interface.
10
+ *
11
+ * @package shareaholic
12
+ */
13
+ class ShareaholicAdmin {
14
+
15
+ const ACTIVATE_TIMESTAMP_OPTION = 'shareaholic_activate_timestamp';
16
+ const REVIEW_DISMISS_OPTION = 'shareaholic_review_notice';
17
+ const REVIEW_FIRST_PERIOD = 259200; // 3 days in seconds
18
+ const REVIEW_LATER_PERIOD = 5184000; // 60 days in seconds
19
+ const REVIEW_FOREVER_PERIOD = 63113904; // 2 years in seconds
20
+
21
+ /**
22
+ * Loads before all else
23
+ */
24
+ public static function admin_init() {
25
+ ShareaholicUtilities::check_for_other_plugin();
26
+ // workaround: http://codex.wordpress.org/Function_Reference/register_activation_hook
27
+ if (is_admin() && get_option( 'Activated_Plugin_Shareaholic') == 'shareaholic') {
28
+ delete_option('Activated_Plugin_Shareaholic');
29
+ /* do stuff once right after activation */
30
+ if (has_action('wp_ajax_nopriv_shareaholic_share_counts_api') && has_action('wp_ajax_shareaholic_share_counts_api')) {
31
+ ShareaholicUtilities::share_counts_api_connectivity_check();
32
+ }
33
+ }
34
+ self::check_redirect_url();
35
+ self::check_review_dismissal();
36
+ self::check_plugin_review();
37
+ }
38
+
39
+ /**
40
+ * Check review notice status for current user
41
+ *
42
+ */
43
+ public static function check_review_dismissal() {
44
+
45
+ global $current_user;
46
+ $user_id = $current_user->ID;
47
+
48
+ if (!is_admin() ||
49
+ !current_user_can('manage_options') ||
50
+ !isset($_GET['_wpnonce']) ||
51
+ !wp_verify_nonce($_GET['_wpnonce'], 'review-nonce') ||
52
+ !isset($_GET['shr_defer_t']) ||
53
+ !isset($_GET[self::REVIEW_DISMISS_OPTION])) {
54
+ return;
55
+ }
56
+
57
+ $the_meta_array = array (
58
+ 'dismiss_defer_period' => $_GET["shr_defer_t"],
59
+ 'dismiss_timestamp' => time()
60
+ );
61
+
62
+ update_user_meta($user_id, self::REVIEW_DISMISS_OPTION, $the_meta_array);
63
+ }
64
+
65
+ /**
66
+ * Check if we should display the review notice
67
+ *
68
+ */
69
+ public static function check_plugin_review() {
70
+
71
+ global $current_user;
72
+ $user_id = $current_user->ID;
73
+
74
+ $show_review_notice = false;
75
+ $activation_timestamp = get_site_option(self::ACTIVATE_TIMESTAMP_OPTION);
76
+ $review_dismissal_array = get_user_meta($user_id, self::REVIEW_DISMISS_OPTION, true);
77
+ $dismiss_defer_period = isset($review_dismissal_array['dismiss_defer_period']) ? $review_dismissal_array['dismiss_defer_period'] : 0;
78
+ $dismiss_timestamp = isset($review_dismissal_array['dismiss_timestamp']) ? $review_dismissal_array['dismiss_timestamp'] : time();
79
+
80
+ if ($dismiss_timestamp + $dismiss_defer_period <= time()) {
81
+ $show_review_notice = true;
82
+ }
83
+
84
+ if (!$activation_timestamp) {
85
+ $activation_timestamp = time();
86
+ add_site_option(self::ACTIVATE_TIMESTAMP_OPTION, $activation_timestamp);
87
+ }
88
+
89
+ // display review message after a certain period of time after activation
90
+ if ((time() - $activation_timestamp > self::REVIEW_FIRST_PERIOD) && $show_review_notice == true) {
91
+ add_action('admin_notices', array('ShareaholicAdmin', 'display_review_notice'));
92
+ }
93
+ }
94
+
95
+ public static function display_review_notice() {
96
+
97
+ $dismiss_forever = add_query_arg( array(
98
+ self::REVIEW_DISMISS_OPTION => true,
99
+ 'shr_defer_t' => self::REVIEW_FOREVER_PERIOD
100
+ ));
101
+
102
+ $dismiss_forlater = add_query_arg( array(
103
+ self::REVIEW_DISMISS_OPTION => true,
104
+ 'shr_defer_t' => self::REVIEW_LATER_PERIOD
105
+ ));
106
+
107
+ $dismiss_forever_url = wp_nonce_url($dismiss_forever, 'review-nonce');
108
+ $dismiss_forlater_url = wp_nonce_url($dismiss_forlater, 'review-nonce');
109
+
110
+ echo '
111
+ <div class="notice notice-info" style="background-size: contain; background-position: right bottom; background-repeat: no-repeat; background-image: url(' . plugins_url('assets/img/happy-people-cover.png', __FILE__) . ');">
112
+ <p style="background: rgba(255, 255, 255, 0.85); text-shadow: white 0px 0px 10px;">' . __('Hey there! We noticed that you have had some success using ', 'shareaholic') . '<a href="' . admin_url('admin.php?page=shareaholic-settings') . '">Shareaholic</a>' . __(' — awesome! Could you please do us a BIG favor and give us a quick 5-star rating on WordPress? Just to help us spread the word and boost our motivation. We would really appreciate it 🙂 ~ Your friends @ Shareaholic', 'shareaholic') . '
113
+ <br />
114
+ <br />
115
+ <a onclick="location.href=\'' . $dismiss_forever_url . '\';" class="button button-primary" href="' . esc_url('https://wordpress.org/support/plugin/shareaholic/reviews/?rate=5#new-post') . '" target="_blank">' . __('Ok, you deserve it', 'shareaholic') . '</a> &nbsp;
116
+ <a href="' . $dismiss_forlater_url . '">' . __('No, maybe later', 'shareaholic') . '</a> &nbsp;
117
+ <a href="' . $dismiss_forever_url . '">' . __('I already did', 'shareaholic') . '</a>
118
+ </p>
119
+ </div>';
120
+ }
121
+
122
+ /**
123
+ * Redirect to Plans
124
+ *
125
+ */
126
+ public static function go_premium() {
127
+ echo <<<JQUERY
128
+ <script type="text/javascript">
129
+ window.location = "https://www.shareaholic.com/plans";
130
+ </script>
131
+ JQUERY;
132
+ }
133
+
134
+ /**
135
+ * Redirection Utility (used by SDK - Badge)
136
+ *
137
+ */
138
+ public static function check_redirect_url() {
139
+
140
+ $redirect_url = isset($_GET['shareaholic_redirect_url']) ? strtolower($_GET['shareaholic_redirect_url']) : NULL;
141
+
142
+ if ($redirect_url != NULL) {
143
+
144
+ // Support redirect URLs with no scheme; default to httpS
145
+ $parsed = parse_url($redirect_url);
146
+ if (empty($parsed['scheme'])) {
147
+ $redirect_url = 'https://' . ltrim($redirect_url);
148
+ }
149
+
150
+ // exit if redirect is not to shareaholic.com
151
+ $redirect_url_host = parse_url($redirect_url, PHP_URL_HOST);
152
+
153
+ if ($redirect_url_host != "shareaholic.com" && $redirect_url_host != "stageaholic.com" && $redirect_url_host != "spreadaholic.com") {
154
+ wp_redirect(admin_url('admin.php?page=shareaholic-settings'));
155
+ exit;
156
+ }
157
+
158
+ // Get User Email
159
+ $current_user = wp_get_current_user();
160
+ $user_email = urlencode($current_user->user_email);
161
+
162
+ // Pass verification_key only if current wp user has permission to the key
163
+ if (current_user_can('activate_plugins')) {
164
+ $verification_key = ShareaholicUtilities::get_option('verification_key');
165
+ } else {
166
+ $verification_key = "unauthorized";
167
+ }
168
+
169
+ $enriched_redirect_url = add_query_arg( array(
170
+ 'site_id' => ShareaholicUtilities::get_option('api_key'),
171
+ 'verification_key' => $verification_key,
172
+ 'email' => $user_email,
173
+ 'ref' => 'wordpress',
174
+ ), $redirect_url);
175
+
176
+ wp_redirect($enriched_redirect_url);
177
+ exit;
178
+ }
179
+ }
180
+
181
+ /**
182
+ * The function called during the admin_head action.
183
+ *
184
+ */
185
+ public static function admin_header() {
186
+ ShareaholicUtilities::draw_meta_xua();
187
+ ShareaholicAdmin::include_remote_js();
188
+ }
189
+
190
+ /**
191
+ * Load the terms of service notice that shows up
192
+ * at the top of the admin pages.
193
+ */
194
+ public static function show_terms_of_service() {
195
+ ShareaholicUtilities::load_template('terms_of_service_notice');
196
+ }
197
+
198
+ /**
199
+ * Renders footer
200
+ */
201
+ public static function show_footer() {
202
+ ShareaholicUtilities::load_template('footer');
203
+ }
204
+
205
+ /**
206
+ * Renders header
207
+ */
208
+ public static function show_header() {
209
+ $settings = ShareaholicUtilities::get_settings();
210
+ $settings['base_link'] = Shareaholic::URL . '/publisher_tools/' . $settings['api_key'] . '/';
211
+ ShareaholicUtilities::load_template('header', array(
212
+ 'settings' => $settings
213
+ ));
214
+ }
215
+
216
+ /**
217
+ * Renders Chat
218
+ */
219
+ public static function include_chat() {
220
+ ShareaholicUtilities::load_template('script_chat');
221
+ }
222
+
223
+ /**
224
+ * Adds meta boxes for post and page options
225
+ */
226
+ public static function add_meta_boxes() {
227
+ $post_types = get_post_types();
228
+ // $post_types = array( 'post', 'page', 'product' );
229
+ foreach ($post_types as $post_type) {
230
+ add_meta_box(
231
+ 'shareaholic',
232
+ 'Shareaholic',
233
+ array('ShareaholicAdmin', 'meta_box'),
234
+ $post_type,
235
+ 'side',
236
+ 'low'
237
+ );
238
+ }
239
+ }
240
+
241
+ /**
242
+ * This is the wp ajax callback for when a user
243
+ * checks a checkbox for a location that doesn't
244
+ * already have a location_id. After it has been
245
+ * successfully created the id needs to be stored,
246
+ * which is what this method does.
247
+ */
248
+ public static function add_location() {
249
+ $location = $_POST['location'];
250
+ $app_name = $location['app_name'];
251
+
252
+ // if location id is not numeric throw bad request
253
+ // or user lacks permissions
254
+ // or does not have the nonce token
255
+ // otherwise forcibly change it to a number
256
+ if (!wp_verify_nonce( $_REQUEST['nonce'], 'shareaholic_add_location') ||
257
+ !current_user_can('publish_posts') || !is_numeric($location['id'])) {
258
+ header('HTTP/1.1 400 Bad Request', true, 400);
259
+ die();
260
+ } else {
261
+ $location['id'] = intval($location['id']);
262
+ }
263
+
264
+ ShareaholicUtilities::update_options(array(
265
+ 'location_name_ids' => array(
266
+ $app_name => array(
267
+ $location['name'] => $location['id']
268
+ ),
269
+ ),
270
+ $app_name => array(
271
+ $location['name'] => 'on'
272
+ )
273
+ ));
274
+
275
+ echo json_encode(array(
276
+ 'status' => "successfully created a new {$location['app_name']} location",
277
+ 'id' => $location['id']
278
+ ));
279
+
280
+ die();
281
+ }
282
+
283
+ /**
284
+ * Shows the message about failing to create an api key
285
+ */
286
+ public static function failed_to_create_api_key() {
287
+ // ShareaholicUtilities::load_template('failed_to_create_api_key');
288
+ if (isset($_GET['page']) && preg_match('/shareaholic-settings/', $_GET['page'])) {
289
+ ShareaholicUtilities::load_template('failed_to_create_api_key_modal');
290
+ }
291
+ }
292
+
293
+ /**
294
+ * The actual function in charge of drawing the meta boxes.
295
+ */
296
+ public static function meta_box() {
297
+ global $post;
298
+ $settings = ShareaholicUtilities::get_settings();
299
+ ShareaholicUtilities::load_template('meta_boxes', array(
300
+ 'settings' => $settings,
301
+ 'post' => $post
302
+ ));
303
+ }
304
+
305
+ /**
306
+ * This function fires when a post is saved
307
+ *
308
+ * @param int $post_id
309
+ */
310
+ public static function save_post($post_id) {
311
+ // wordpress does something silly where save_post is fired twice,
312
+ // once with the id of a revision and once with the actual id. This
313
+ // filters out revision ids (which we don't want)
314
+ if (!wp_is_post_revision($post_id)) {
315
+ self::disable_post_attributes($post_id);
316
+ }
317
+ }
318
+
319
+ /**
320
+ * For each of the things that a user can disable or exclude per post,
321
+ * we iterate through and turn add the post meta, or make it false
322
+ * if it *used* to be true, but did not come through in $_POST
323
+ * (because unchecked boxes are not submitted).
324
+ *
325
+ * @param int $post_id
326
+ */
327
+ private static function disable_post_attributes($post_id) {
328
+ foreach (array(
329
+ 'disable_share_buttons',
330
+ 'disable_open_graph_tags',
331
+ 'exclude_recommendations',
332
+ 'disable_recommendations'
333
+ ) as $attribute) {
334
+ $key = 'shareaholic_' . $attribute;
335
+ if (isset($_POST['shareaholic'][$attribute]) &&
336
+ $_POST['shareaholic'][$attribute] == 'on') {
337
+ update_post_meta($post_id, $key, true);
338
+ } elseif (get_post_meta($post_id, $key, true)) {
339
+ update_post_meta($post_id, $key, false);
340
+ }
341
+ }
342
+ }
343
+
344
+ /**
345
+ * Enqueue local styles and scripts for the admin panel
346
+ *
347
+ * @since 7.0.2.0
348
+ */
349
+ public static function enqueue_scripts() {
350
+ if (isset($_GET['page']) && preg_match('/shareaholic/', $_GET['page'])) {
351
+ wp_enqueue_style('shareaholic_bootstrap_css', plugins_url('assets/css/bootstrap.css', __FILE__), false, ShareaholicUtilities::get_version());
352
+ wp_enqueue_style('shareaholic_reveal_css', plugins_url('assets/css/reveal.css', __FILE__), false, ShareaholicUtilities::get_version());
353
+ wp_enqueue_style('shareaholic_main_css', plugins_url('assets/css/main.css', __FILE__), false, ShareaholicUtilities::get_version());
354
+ wp_enqueue_script('shareholic_bootstrap_js', plugins_url('assets/js/bootstrap.min.js', __FILE__), false, ShareaholicUtilities::get_version());
355
+ wp_enqueue_script('shareholic_jquery_custom_js', plugins_url('assets/js/jquery_custom.js', __FILE__), false, ShareaholicUtilities::get_version());
356
+ wp_enqueue_script('shareholic_jquery_ui_custom_js', plugins_url('assets/js/jquery_ui_custom.js', __FILE__), array('shareholic_jquery_custom_js'), ShareaholicUtilities::get_version());
357
+ wp_enqueue_script('shareholic_modified_reveal_js', plugins_url('assets/js/jquery.reveal.modified.js', __FILE__), array('shareholic_jquery_custom_js', 'shareholic_jquery_ui_custom_js'), ShareaholicUtilities::get_version());
358
+ wp_enqueue_script('shareholic_main_js', plugins_url('assets/js/main.js', __FILE__), false, ShareaholicUtilities::get_version());
359
+ }
360
+ }
361
+
362
+ /**
363
+ * Include remote styles and scripts for the admin panel.
364
+ * This addresses a conflict with 3rd party plugins that force modify the paths of scripts that are passed through to wp_enqueue_script
365
+ *
366
+ * @since 8.12.1
367
+ */
368
+ public static function include_remote_js() {
369
+ if (isset($_GET['page']) && preg_match('/shareaholic/', $_GET['page'])) {
370
+ echo "\n<script src='" . ShareaholicUtilities::asset_url_admin('assets/pub/utilities.js') . '?' . ShareaholicUtilities::get_version() . "'></script>\n";
371
+ }
372
+ }
373
+
374
+ /**
375
+ * Puts a new menu item under Settings.
376
+ */
377
+ public static function admin_menu() {
378
+
379
+ $icon_svg = ShareaholicUtilities::get_icon_svg();
380
+
381
+ add_menu_page(
382
+ __('Shareaholic Settings', 'shareaholic'),
383
+ __('Shareaholic', 'shareaholic'),
384
+ 'manage_options',
385
+ 'shareaholic-settings',
386
+ array('ShareaholicAdmin', 'admin'),
387
+ $icon_svg
388
+ );
389
+ add_submenu_page(
390
+ 'shareaholic-settings',
391
+ __('App Manager [beta]', 'shareaholic'),
392
+ __('App Manager [beta]', 'shareaholic'),
393
+ 'manage_options',
394
+ 'shareaholic-settings',
395
+ array('ShareaholicAdmin', 'admin')
396
+ );
397
+ add_submenu_page(
398
+ 'shareaholic-settings',
399
+ __('App Manager [legacy]', 'shareaholic'),
400
+ __('App Manager [legacy]', 'shareaholic'),
401
+ 'manage_options',
402
+ 'shareaholic-settings-legacy',
403
+ array('ShareaholicAdmin', 'admin_legacy')
404
+ );
405
+ add_submenu_page(
406
+ 'shareaholic-settings',
407
+ __('Advanced Settings', 'shareaholic'),
408
+ __('Advanced Settings', 'shareaholic'),
409
+ 'manage_options',
410
+ 'shareaholic-advanced',
411
+ array('ShareaholicAdmin', 'advanced_admin')
412
+ );
413
+ add_submenu_page(
414
+ 'shareaholic-settings',
415
+ __('Go Premium', 'shareaholic'),
416
+ __('<span style="color: #FCB214;">Go Premium</span>', 'shareaholic'),
417
+ 'activate_plugins',
418
+ 'shareaholic-premium',
419
+ array('ShareaholicAdmin', 'go_premium')
420
+ );
421
+ }
422
+
423
+ /**
424
+ * Updates the information if passed in and sets save message.
425
+ */
426
+ public static function admin_legacy() {
427
+ $settings = ShareaholicUtilities::get_settings();
428
+ $action = str_replace( '%7E', '~', $_SERVER['REQUEST_URI']);
429
+ if(isset($_POST['already_submitted']) && $_POST['already_submitted'] == 'Y' &&
430
+ check_admin_referer($action, 'nonce_field')) {
431
+ echo "<div class='updated settings_updated'><p><strong>". sprintf(__('Settings successfully saved', 'shareaholic')) . "</strong></p></div>";
432
+
433
+ /*
434
+ * only checked check boxes are submitted, so we have to iterate
435
+ * through the existing app locations and if they exist in the settings
436
+ * but not in $_POST, it must have been unchecked, and it
437
+ * should be set to 'off'
438
+ */
439
+ foreach (array('share_buttons', 'recommendations') as $app) {
440
+ if (isset($settings[$app])) {
441
+ foreach ($settings[$app] as $location => $on) {
442
+ if (!isset($_POST[$app][$location]) && $on == 'on') {
443
+ $_POST[$app][$location] = 'off';
444
+ }
445
+ }
446
+ }
447
+ if (!isset($_POST[$app])) {
448
+ $_POST[$app] = array();
449
+ }
450
+ }
451
+
452
+ foreach (array('share_buttons_display_on_excerpts', 'recommendations_display_on_excerpts') as $setting) {
453
+ if (isset($settings[$setting]) &&
454
+ !isset($_POST['shareaholic'][$setting]) &&
455
+ $settings[$setting] == 'on') {
456
+ $_POST['shareaholic'][$setting] = 'off';
457
+ } elseif (!isset($_POST['shareaholic'][$setting])) {
458
+ $_POST['shareaholic'][$setting] = array();
459
+ }
460
+ }
461
+
462
+ // Save "Locations" related preferences
463
+ ShareaholicUtilities::update_options(array(
464
+ 'share_buttons' => $_POST['share_buttons'],
465
+ 'recommendations' => $_POST['recommendations']
466
+ ));
467
+
468
+ // Save "Excerpts" related preferences
469
+ if (isset($_POST['shareaholic']['share_buttons_display_on_excerpts'])) {
470
+ ShareaholicUtilities::update_options(array('share_buttons_display_on_excerpts' => $_POST['shareaholic']['share_buttons_display_on_excerpts']));
471
+ }
472
+ if (isset($_POST['shareaholic']['recommendations_display_on_excerpts'])) {
473
+ ShareaholicUtilities::update_options(array('recommendations_display_on_excerpts' => $_POST['shareaholic']['recommendations_display_on_excerpts']));
474
+ }
475
+
476
+ ShareaholicUtilities::log_event("UpdatedSettings");
477
+ // clear cache after settings update
478
+ ShareaholicUtilities::clear_cache();
479
+ }
480
+
481
+ /*
482
+ * Just in case they've added new settings on shareaholic.com
483
+ */
484
+ if (ShareaholicUtilities::has_accepted_terms_of_service()) {
485
+ $api_key = ShareaholicUtilities::get_or_create_api_key();
486
+ ShareaholicUtilities::get_new_location_name_ids($api_key);
487
+ }
488
+
489
+ self::draw_admin_form();
490
+ self::draw_verify_api_key();
491
+ }
492
+
493
+ /**
494
+ * The function for the admin beta section
495
+ */
496
+ public static function admin() {
497
+
498
+ if (!ShareaholicUtilities::has_accepted_terms_of_service()) {
499
+ ShareaholicUtilities::load_template('terms_of_service_modal', array(
500
+ 'image_url' => SHAREAHOLIC_ASSET_DIR . 'img'
501
+ ));
502
+ }
503
+
504
+ if (ShareaholicUtilities::has_accepted_terms_of_service()) {
505
+ $api_key = ShareaholicUtilities::get_or_create_api_key();
506
+ $jwt = ShareaholicAdmin::get_publisher_token();
507
+
508
+ if ($jwt) {
509
+ ShareaholicUtilities::load_template('admin_beta', array(
510
+ 'jwt' => $jwt,
511
+ 'api_key' => $api_key
512
+ ));
513
+ } else {
514
+ ShareaholicUtilities::load_template('failed_to_create_api_key_modal');
515
+ ShareaholicUtilities::load_template('script_chat');
516
+ }
517
+ }
518
+ }
519
+
520
+ /**
521
+ * Gets the JWT auth for React UI
522
+ */
523
+ private static function get_publisher_token() {
524
+ $payload = array(
525
+ 'site_id' => ShareaholicUtilities::get_option('api_key'),
526
+ 'verification_key' => ShareaholicUtilities::get_option('verification_key'),
527
+ );
528
+
529
+ $response = ShareaholicCurl::post(Shareaholic::API_URL . "/api/v3/sessions", $payload, 'json');
530
+
531
+ if ($response && preg_match('/20*/', $response['response']['code'])) {
532
+ return $response['body']['publisher_token'];
533
+ }
534
+ return false;
535
+ }
536
+
537
+ /**
538
+ * The function for the advanced admin section
539
+ */
540
+ public static function advanced_admin() {
541
+ $settings = ShareaholicUtilities::get_settings();
542
+
543
+ if (ShareaholicUtilities::has_accepted_terms_of_service()) {
544
+ $api_key = ShareaholicUtilities::get_or_create_api_key();
545
+ }
546
+
547
+ $action = str_replace( '%7E', '~', $_SERVER['REQUEST_URI']);
548
+
549
+ if (!ShareaholicUtilities::has_accepted_terms_of_service()) {
550
+ ShareaholicUtilities::load_template('terms_of_service_modal', array(
551
+ 'image_url' => SHAREAHOLIC_ASSET_DIR . 'img'
552
+ ));
553
+ }
554
+
555
+ if(isset($_POST['reset_settings'])
556
+ && $_POST['reset_settings'] == 'Y'
557
+ && check_admin_referer($action, 'nonce_field')) {
558
+ ShareaholicUtilities::reset_settings();
559
+ echo "<div class='updated settings_updated'><p><strong>"
560
+ . sprintf(__('Settings successfully reset. Refresh this page to complete the reset.', 'shareaholic'))
561
+ . "</strong></p></div>";
562
+ }
563
+
564
+ if(isset($_POST['already_submitted']) && $_POST['already_submitted'] == 'Y' &&
565
+ check_admin_referer($action, 'nonce_field')) {
566
+ echo "<div class='updated settings_updated'><p><strong>". sprintf(__('Settings successfully saved', 'shareaholic')) . "</strong></p></div>";
567
+
568
+ foreach (array('disable_og_tags', 'disable_admin_bar_menu', 'disable_debug_info', 'enable_user_nicename','disable_internal_share_counts_api') as $setting) {
569
+ if (!isset($_POST['shareaholic'][$setting])) {
570
+ // If form value is unchecked, set to off
571
+ $_POST['shareaholic'][$setting] = 'off';
572
+ }
573
+ }
574
+
575
+ if (isset($_POST['shareaholic']['api_key']) && $_POST['shareaholic']['api_key'] != $api_key) {
576
+ ShareaholicUtilities::get_new_location_name_ids($_POST['shareaholic']['api_key']);
577
+ }
578
+
579
+ if (isset($_POST['shareaholic']['api_key'])) {
580
+ ShareaholicUtilities::update_options(array('api_key' => $_POST['shareaholic']['api_key']));
581
+ }
582
+
583
+ if (isset($_POST['shareaholic']['disable_og_tags'])) {
584
+ ShareaholicUtilities::update_options(array('disable_og_tags' => $_POST['shareaholic']['disable_og_tags']));
585
+ }
586
+
587
+ if (isset($_POST['shareaholic']['disable_admin_bar_menu'])) {
588
+ ShareaholicUtilities::update_options(array('disable_admin_bar_menu' => $_POST['shareaholic']['disable_admin_bar_menu']));
589
+ }
590
+
591
+ if (isset($_POST['shareaholic']['facebook_app_id'])) {
592
+ ShareaholicUtilities::update_options(array('facebook_app_id' => sanitize_text_field($_POST['shareaholic']['facebook_app_id'])));
593
+ }
594
+
595
+ if (isset($_POST['shareaholic']['facebook_app_secret'])) {
596
+ ShareaholicUtilities::update_options(array('facebook_app_secret' => sanitize_text_field($_POST['shareaholic']['facebook_app_secret'])));
597
+ }
598
+
599
+ if (isset($_POST['shareaholic']['disable_debug_info'])) {
600
+ ShareaholicUtilities::update_options(array('disable_debug_info' => $_POST['shareaholic']['disable_debug_info']));
601
+ }
602
+
603
+ if (isset($_POST['shareaholic']['enable_user_nicename'])) {
604
+ ShareaholicUtilities::update_options(array('enable_user_nicename' => $_POST['shareaholic']['enable_user_nicename']));
605
+ }
606
+
607
+ if (isset($_POST['shareaholic']['disable_internal_share_counts_api'])) {
608
+ ShareaholicUtilities::update_options(array('disable_internal_share_counts_api' => $_POST['shareaholic']['disable_internal_share_counts_api']));
609
+ }
610
+
611
+ ShareaholicUtilities::log_event("UpdatedSettings");
612
+ // clear cache after settings update
613
+ ShareaholicUtilities::clear_cache();
614
+ }
615
+
616
+ ShareaholicUtilities::load_template('advanced_settings', array(
617
+ 'settings' => ShareaholicUtilities::get_settings(),
618
+ 'action' => $action
619
+ ));
620
+ }
621
+
622
+ /**
623
+ * Outputs the actual html for the form
624
+ */
625
+ private static function draw_admin_form() {
626
+ $action = str_replace( '%7E', '~', $_SERVER['REQUEST_URI']);
627
+ $settings = ShareaholicUtilities::get_settings();
628
+
629
+ if (!ShareaholicUtilities::has_accepted_terms_of_service()) {
630
+ ShareaholicUtilities::load_template('terms_of_service_modal', array(
631
+ 'image_url' => SHAREAHOLIC_ASSET_DIR . 'img'
632
+ ));
633
+ }
634
+
635
+ ShareaholicUtilities::load_template('settings', array(
636
+ 'shareaholic_url' => Shareaholic::URL,
637
+ 'settings' => $settings,
638
+ 'action' => $action,
639
+ 'share_buttons' => (isset($settings['share_buttons'])) ? $settings['share_buttons'] : array(),
640
+ 'recommendations' => (isset($settings['recommendations'])) ? $settings['recommendations'] : array(),
641
+ 'directory' => dirname(plugin_basename(__FILE__)),
642
+ ));
643
+ }
644
+
645
+ /**
646
+ * This function is in charge the logic for
647
+ * showing whatever it is we want to show a user
648
+ * about whether they have verified their api
649
+ * key or not.
650
+ */
651
+ private static function draw_verify_api_key() {
652
+ if (!ShareaholicUtilities::api_key_verified()) {
653
+ $settings = ShareaholicUtilities::get_settings();
654
+ $api_key = $settings['api_key'];
655
+ $verification_key = $settings['verification_key'];
656
+ ShareaholicUtilities::load_template('verify_api_key_js', array(
657
+ 'verification_key' => $verification_key
658
+ ));
659
+ }
660
+ }
661
+
662
+ /**
663
+ * This function is in charge of determining whether to send the "get started" email
664
+ */
665
+ public static function welcome_email() {
666
+ // check whether email has been sent
667
+ if (ShareaholicUtilities::get_option('welcome_email_sent') != "y") {
668
+ // set flag that the email has been sent
669
+ ShareaholicUtilities::update_options(array('welcome_email_sent' => "y"));
670
+ // send email
671
+ ShareaholicAdmin::send_welcome_email();
672
+ }
673
+ }
674
+
675
+
676
+ /**
677
+ * This function is in charge of sending the "get started" email
678
+ */
679
+ public static function send_welcome_email() {
680
+ if (function_exists('wp_mail')) {
681
+ $site_url = get_bloginfo('url');
682
+ $api_key = ShareaholicUtilities::get_option('api_key');
683
+ $payment_url = 'https://www.shareaholic.com/user-settings/payments';
684
+ $shr_wp_dashboard_url = esc_url(admin_url("admin.php?page=shareaholic-settings"));
685
+ $sign_up_link = esc_url(admin_url("admin.php?shareaholic_redirect_url=shareaholic.com/signup/"));
686
+ $to = get_bloginfo('admin_email');
687
+ $subject = 'Thank you for installing Shareaholic Plugin for WordPress!';
688
+ $message = "
689
+ <p>Hi there,</p>
690
+
691
+ <p>Thank you for installing Shareaholic on $site_url! You are one step closer to growing your website. Completing your set-up is easy, just follow these three easy steps and you'll be ready to go:</p>
692
+
693
+ <p><strong>Step 1. Customize to your needs</strong><br /><br />
694
+
695
+ Personalize the various apps (ex. Share Buttons and Related Content) to match your website design using the \"Customize\" buttons in your <a href='$shr_wp_dashboard_url'>Shareaholic App Manager in WordPress</a>, then choose where you want them to appear on your website using the checkboxes!
696
+
697
+ <p><strong>Step 2: Create your free Shareaholic account</strong><br /><br />
698
+
699
+ This will enable you to add more features like Analytics, Floating Share Buttons, Share Buttons for Images, Follow Buttons and more. <strong><a href='$sign_up_link'>Click here to sign-up</a></strong>, or <a href='$sign_up_link'>login to an existing Shareaholic account</a> and we'll automatically sync the plugin settings with your account.</p>
700
+
701
+ <p><strong>Step 3: Control your earnings and setup how you would like to get paid</strong><br /><br />
702
+
703
+ Decide how much you would like to earn from Promoted Content (native ads that appear in the Related Content app) and other monetization apps by editing your settings in the \"Monetization\" section of the plugin. Next, visit the \"Payments\" <a href='$payment_url'>section of your Shareaholic.com account</a> to add your PayPal information, so you can collect the revenue your site earns.</p>
704
+
705
+ <p>Have questions? Simply reply to this email and we will help you out!</p>
706
+
707
+ <p>Let's get started,<br /><br />
708
+
709
+ The Shareaholic Team<br />
710
+ <a href='https://support.shareaholic.com'>support.shareaholic.com</a><br /><br />
711
+ <img width='200' height='36' src='https://www.shareaholic.com/assets/layouts/shareaholic-logo.png' alt='Shareaholic' title='Shareaholic' /><br />
712
+ <p style='font-size:12px;color:#C3C2C2;'>This is an automated, one-time e-mail sent by your WordPress CMS directly to the website admin</p><br />
713
+ <img width='0' height='0' src='https://www.google-analytics.com/collect?v=1&tid=UA-12964573-6&cid=$api_key&t=event&ec=email&ea=open&el=$site_url-$api_key&cs=lifecycle&cm=email&cn=wp_welcome_email' />";
714
+
715
+ $headers = "From: Shareaholic <hello@shareaholic.com>\r\n";
716
+ $headers.= "Reply-To: Shareaholic <hello@shareaholic.com>\r\n";
717
+ $headers.= "X-Mailer: PHP/" . phpversion() . "\r\n";
718
+ $headers.= "MIME-Version: 1.0\r\n";
719
+ $headers.= "Content-type: text/html; charset=utf-8\r\n";
720
+
721
+ // Send email
722
+ // wp_mail($to, $subject, $message, $headers);
723
+ }
724
+ }
725
+
726
+ /**
727
+ * This function adds our custom image type to the Media Library
728
+ */
729
+ public static function show_custom_sizes($sizes) {
730
+ return array_merge($sizes, array(
731
+ 'shareaholic-thumbnail' => __('Shareaholic'),
732
+ ));
733
+ }
734
+
735
+ /**
736
+ * This function adds a notice to Settings->Permalinks
737
+ */
738
+ public static function admin_notices() {
739
+ $current_screen = get_current_screen();
740
+
741
+ if ($current_screen->id === 'options-permalink' || $current_screen->id === 'options-general') {
742
+ $css_class = 'notice notice-warning is-dismissible';
743
+ $message = 'WARNING: Updating your URL or permalink structure will reset the social share counts for your pages. <a href="https://www.shareaholic.com/plans">Upgrade Shareaholic</a> to enable <a href="https://support.shareaholic.com/hc/en-us/articles/115002083586">Share Count Recovery</a>.';
744
+ echo "<div class='$css_class'><p style='font-weight: bold;'>";
745
+ _e($message, 'Shareaholic');
746
+ echo '</p></div>';
747
+ }
748
+ }
749
+ }
trunk/assets/css/bootstrap.css ADDED
@@ -0,0 +1,7 @@
 
 
 
 
 
 
 
1
+ /*!
2
+ * Bootstrap v4.3.1 (https://getbootstrap.com/)
3
+ * Copyright 2011-2019 The Bootstrap Authors
4
+ * Copyright 2011-2019 Twitter, Inc.
5
+ * Licensed under MIT (https://github.com/twbs/bootstrap/blob/master/LICENSE)
6
+ */:root{--blue:#007bff;--indigo:#6610f2;--purple:#6f42c1;--pink:#e83e8c;--red:#dc3545;--orange:#fd7e14;--yellow:#ffc107;--green:#28a745;--teal:#20c997;--cyan:#17a2b8;--white:#fff;--gray:#6c757d;--gray-dark:#343a40;--primary:#007bff;--secondary:#6c757d;--success:#28a745;--info:#17a2b8;--warning:#ffc107;--danger:#dc3545;--light:#f8f9fa;--dark:#343a40;--breakpoint-xs:0;--breakpoint-sm:576px;--breakpoint-md:768px;--breakpoint-lg:992px;--breakpoint-xl:1200px;--font-family-sans-serif:-apple-system,BlinkMacSystemFont,"Segoe UI",Roboto,"Helvetica Neue",Arial,"Noto Sans",sans-serif,"Apple Color Emoji","Segoe UI Emoji","Segoe UI Symbol","Noto Color Emoji";--font-family-monospace:SFMono-Regular,Menlo,Monaco,Consolas,"Liberation Mono","Courier New",monospace}*,::after,::before{box-sizing:border-box}html{font-family:sans-serif;line-height:1.15;-webkit-text-size-adjust:100%;-webkit-tap-highlight-color:transparent}article,aside,figcaption,figure,footer,header,hgroup,main,nav,section{display:block}body{margin:0;font-family:-apple-system,BlinkMacSystemFont,"Segoe UI",Roboto,"Helvetica Neue",Arial,"Noto Sans",sans-serif,"Apple Color Emoji","Segoe UI Emoji","Segoe UI Symbol","Noto Color Emoji";font-size:1rem;font-weight:400;line-height:1.5;color:#212529;text-align:left;background-color:#fff}[tabindex="-1"]:focus{outline:0!important}hr{box-sizing:content-box;height:0;overflow:visible}h1,h2,h3,h4,h5,h6{margin-top:0;margin-bottom:.5rem}p{margin-top:0;margin-bottom:1rem}abbr[data-original-title],abbr[title]{text-decoration:underline;-webkit-text-decoration:underline dotted;text-decoration:underline dotted;cursor:help;border-bottom:0;-webkit-text-decoration-skip-ink:none;text-decoration-skip-ink:none}address{margin-bottom:1rem;font-style:normal;line-height:inherit}dl,ol,ul{margin-top:0;margin-bottom:1rem}ol ol,ol ul,ul ol,ul ul{margin-bottom:0}dt{font-weight:700}dd{margin-bottom:.5rem;margin-left:0}blockquote{margin:0 0 1rem}b,strong{font-weight:bolder}small{font-size:80%}sub,sup{position:relative;font-size:75%;line-height:0;vertical-align:baseline}sub{bottom:-.25em}sup{top:-.5em}a{color:#007bff;text-decoration:none;background-color:transparent}a:hover{color:#0056b3;text-decoration:underline}a:not([href]):not([tabindex]){color:inherit;text-decoration:none}a:not([href]):not([tabindex]):focus,a:not([href]):not([tabindex]):hover{color:inherit;text-decoration:none}a:not([href]):not([tabindex]):focus{outline:0}code,kbd,pre,samp{font-family:SFMono-Regular,Menlo,Monaco,Consolas,"Liberation Mono","Courier New",monospace;font-size:1em}pre{margin-top:0;margin-bottom:1rem;overflow:auto}figure{margin:0 0 1rem}img{vertical-align:middle;border-style:none}svg{overflow:hidden;vertical-align:middle}table{border-collapse:collapse}caption{padding-top:.75rem;padding-bottom:.75rem;color:#6c757d;text-align:left;caption-side:bottom}th{text-align:inherit}label{display:inline-block;margin-bottom:.5rem}button{border-radius:0}button:focus{outline:1px dotted;outline:5px auto -webkit-focus-ring-color}button,input,optgroup,select,textarea{margin:0;font-family:inherit;font-size:inherit;line-height:inherit}button,input{overflow:visible}button,select{text-transform:none}select{word-wrap:normal}[type=button],[type=reset],[type=submit],button{-webkit-appearance:button}[type=button]:not(:disabled),[type=reset]:not(:disabled),[type=submit]:not(:disabled),button:not(:disabled){cursor:pointer}[type=button]::-moz-focus-inner,[type=reset]::-moz-focus-inner,[type=submit]::-moz-focus-inner,button::-moz-focus-inner{padding:0;border-style:none}input[type=checkbox],input[type=radio]{box-sizing:border-box;padding:0}input[type=date],input[type=datetime-local],input[type=month],input[type=time]{-webkit-appearance:listbox}textarea{overflow:auto;resize:vertical}fieldset{min-width:0;padding:0;margin:0;border:0}legend{display:block;width:100%;max-width:100%;padding:0;margin-bottom:.5rem;font-size:1.5rem;line-height:inherit;color:inherit;white-space:normal}progress{vertical-align:baseline}[type=number]::-webkit-inner-spin-button,[type=number]::-webkit-outer-spin-button{height:auto}[type=search]{outline-offset:-2px;-webkit-appearance:none}[type=search]::-webkit-search-decoration{-webkit-appearance:none}::-webkit-file-upload-button{font:inherit;-webkit-appearance:button}output{display:inline-block}summary{display:list-item;cursor:pointer}template{display:none}[hidden]{display:none!important}.h1,.h2,.h3,.h4,.h5,.h6,h1,h2,h3,h4,h5,h6{margin-bottom:.5rem;font-weight:500;line-height:1.2}.h1,h1{font-size:2.5rem}.h2,h2{font-size:2rem}.h3,h3{font-size:1.75rem}.h4,h4{font-size:1.5rem}.h5,h5{font-size:1.25rem}.h6,h6{font-size:1rem}.lead{font-size:1.25rem;font-weight:300}.display-1{font-size:6rem;font-weight:300;line-height:1.2}.display-2{font-size:5.5rem;font-weight:300;line-height:1.2}.display-3{font-size:4.5rem;font-weight:300;line-height:1.2}.display-4{font-size:3.5rem;font-weight:300;line-height:1.2}hr{margin-top:1rem;margin-bottom:1rem;border:0;border-top:1px solid rgba(0,0,0,.1)}.small,small{font-size:80%;font-weight:400}.mark,mark{padding:.2em;background-color:#fcf8e3}.list-unstyled{padding-left:0;list-style:none}.list-inline{padding-left:0;list-style:none}.list-inline-item{display:inline-block}.list-inline-item:not(:last-child){margin-right:.5rem}.initialism{font-size:90%;text-transform:uppercase}.blockquote{margin-bottom:1rem;font-size:1.25rem}.blockquote-footer{display:block;font-size:80%;color:#6c757d}.blockquote-footer::before{content:"\2014\00A0"}.img-fluid{max-width:100%;height:auto}.img-thumbnail{padding:.25rem;background-color:#fff;border:1px solid #dee2e6;border-radius:.25rem;max-width:100%;height:auto}.figure{display:inline-block}.figure-img{margin-bottom:.5rem;line-height:1}.figure-caption{font-size:90%;color:#6c757d}code{font-size:87.5%;color:#e83e8c;word-break:break-word}a>code{color:inherit}kbd{padding:.2rem .4rem;font-size:87.5%;color:#fff;background-color:#212529;border-radius:.2rem}kbd kbd{padding:0;font-size:100%;font-weight:700}pre{display:block;font-size:87.5%;color:#212529}pre code{font-size:inherit;color:inherit;word-break:normal}.pre-scrollable{max-height:340px;overflow-y:scroll}.container{width:100%;padding-right:15px;padding-left:15px;margin-right:auto;margin-left:auto}@media (min-width:576px){.container{max-width:540px}}@media (min-width:768px){.container{max-width:720px}}@media (min-width:992px){.container{max-width:960px}}@media (min-width:1200px){.container{max-width:1140px}}.container-fluid{width:100%;padding-right:15px;padding-left:15px;margin-right:auto;margin-left:auto}.row{display:-ms-flexbox;display:flex;-ms-flex-wrap:wrap;flex-wrap:wrap;margin-right:-15px;margin-left:-15px}.no-gutters{margin-right:0;margin-left:0}.no-gutters>.col,.no-gutters>[class*=col-]{padding-right:0;padding-left:0}.col,.col-1,.col-10,.col-11,.col-12,.col-2,.col-3,.col-4,.col-5,.col-6,.col-7,.col-8,.col-9,.col-auto,.col-lg,.col-lg-1,.col-lg-10,.col-lg-11,.col-lg-12,.col-lg-2,.col-lg-3,.col-lg-4,.col-lg-5,.col-lg-6,.col-lg-7,.col-lg-8,.col-lg-9,.col-lg-auto,.col-md,.col-md-1,.col-md-10,.col-md-11,.col-md-12,.col-md-2,.col-md-3,.col-md-4,.col-md-5,.col-md-6,.col-md-7,.col-md-8,.col-md-9,.col-md-auto,.col-sm,.col-sm-1,.col-sm-10,.col-sm-11,.col-sm-12,.col-sm-2,.col-sm-3,.col-sm-4,.col-sm-5,.col-sm-6,.col-sm-7,.col-sm-8,.col-sm-9,.col-sm-auto,.col-xl,.col-xl-1,.col-xl-10,.col-xl-11,.col-xl-12,.col-xl-2,.col-xl-3,.col-xl-4,.col-xl-5,.col-xl-6,.col-xl-7,.col-xl-8,.col-xl-9,.col-xl-auto{position:relative;width:100%;padding-right:15px;padding-left:15px}.col{-ms-flex-preferred-size:0;flex-basis:0;-ms-flex-positive:1;flex-grow:1;max-width:100%}.col-auto{-ms-flex:0 0 auto;flex:0 0 auto;width:auto;max-width:100%}.col-1{-ms-flex:0 0 8.333333%;flex:0 0 8.333333%;max-width:8.333333%}.col-2{-ms-flex:0 0 16.666667%;flex:0 0 16.666667%;max-width:16.666667%}.col-3{-ms-flex:0 0 25%;flex:0 0 25%;max-width:25%}.col-4{-ms-flex:0 0 33.333333%;flex:0 0 33.333333%;max-width:33.333333%}.col-5{-ms-flex:0 0 41.666667%;flex:0 0 41.666667%;max-width:41.666667%}.col-6{-ms-flex:0 0 50%;flex:0 0 50%;max-width:50%}.col-7{-ms-flex:0 0 58.333333%;flex:0 0 58.333333%;max-width:58.333333%}.col-8{-ms-flex:0 0 66.666667%;flex:0 0 66.666667%;max-width:66.666667%}.col-9{-ms-flex:0 0 75%;flex:0 0 75%;max-width:75%}.col-10{-ms-flex:0 0 83.333333%;flex:0 0 83.333333%;max-width:83.333333%}.col-11{-ms-flex:0 0 91.666667%;flex:0 0 91.666667%;max-width:91.666667%}.col-12{-ms-flex:0 0 100%;flex:0 0 100%;max-width:100%}.order-first{-ms-flex-order:-1;order:-1}.order-last{-ms-flex-order:13;order:13}.order-0{-ms-flex-order:0;order:0}.order-1{-ms-flex-order:1;order:1}.order-2{-ms-flex-order:2;order:2}.order-3{-ms-flex-order:3;order:3}.order-4{-ms-flex-order:4;order:4}.order-5{-ms-flex-order:5;order:5}.order-6{-ms-flex-order:6;order:6}.order-7{-ms-flex-order:7;order:7}.order-8{-ms-flex-order:8;order:8}.order-9{-ms-flex-order:9;order:9}.order-10{-ms-flex-order:10;order:10}.order-11{-ms-flex-order:11;order:11}.order-12{-ms-flex-order:12;order:12}.offset-1{margin-left:8.333333%}.offset-2{margin-left:16.666667%}.offset-3{margin-left:25%}.offset-4{margin-left:33.333333%}.offset-5{margin-left:41.666667%}.offset-6{margin-left:50%}.offset-7{margin-left:58.333333%}.offset-8{margin-left:66.666667%}.offset-9{margin-left:75%}.offset-10{margin-left:83.333333%}.offset-11{margin-left:91.666667%}@media (min-width:576px){.col-sm{-ms-flex-preferred-size:0;flex-basis:0;-ms-flex-positive:1;flex-grow:1;max-width:100%}.col-sm-auto{-ms-flex:0 0 auto;flex:0 0 auto;width:auto;max-width:100%}.col-sm-1{-ms-flex:0 0 8.333333%;flex:0 0 8.333333%;max-width:8.333333%}.col-sm-2{-ms-flex:0 0 16.666667%;flex:0 0 16.666667%;max-width:16.666667%}.col-sm-3{-ms-flex:0 0 25%;flex:0 0 25%;max-width:25%}.col-sm-4{-ms-flex:0 0 33.333333%;flex:0 0 33.333333%;max-width:33.333333%}.col-sm-5{-ms-flex:0 0 41.666667%;flex:0 0 41.666667%;max-width:41.666667%}.col-sm-6{-ms-flex:0 0 50%;flex:0 0 50%;max-width:50%}.col-sm-7{-ms-flex:0 0 58.333333%;flex:0 0 58.333333%;max-width:58.333333%}.col-sm-8{-ms-flex:0 0 66.666667%;flex:0 0 66.666667%;max-width:66.666667%}.col-sm-9{-ms-flex:0 0 75%;flex:0 0 75%;max-width:75%}.col-sm-10{-ms-flex:0 0 83.333333%;flex:0 0 83.333333%;max-width:83.333333%}.col-sm-11{-ms-flex:0 0 91.666667%;flex:0 0 91.666667%;max-width:91.666667%}.col-sm-12{-ms-flex:0 0 100%;flex:0 0 100%;max-width:100%}.order-sm-first{-ms-flex-order:-1;order:-1}.order-sm-last{-ms-flex-order:13;order:13}.order-sm-0{-ms-flex-order:0;order:0}.order-sm-1{-ms-flex-order:1;order:1}.order-sm-2{-ms-flex-order:2;order:2}.order-sm-3{-ms-flex-order:3;order:3}.order-sm-4{-ms-flex-order:4;order:4}.order-sm-5{-ms-flex-order:5;order:5}.order-sm-6{-ms-flex-order:6;order:6}.order-sm-7{-ms-flex-order:7;order:7}.order-sm-8{-ms-flex-order:8;order:8}.order-sm-9{-ms-flex-order:9;order:9}.order-sm-10{-ms-flex-order:10;order:10}.order-sm-11{-ms-flex-order:11;order:11}.order-sm-12{-ms-flex-order:12;order:12}.offset-sm-0{margin-left:0}.offset-sm-1{margin-left:8.333333%}.offset-sm-2{margin-left:16.666667%}.offset-sm-3{margin-left:25%}.offset-sm-4{margin-left:33.333333%}.offset-sm-5{margin-left:41.666667%}.offset-sm-6{margin-left:50%}.offset-sm-7{margin-left:58.333333%}.offset-sm-8{margin-left:66.666667%}.offset-sm-9{margin-left:75%}.offset-sm-10{margin-left:83.333333%}.offset-sm-11{margin-left:91.666667%}}@media (min-width:768px){.col-md{-ms-flex-preferred-size:0;flex-basis:0;-ms-flex-positive:1;flex-grow:1;max-width:100%}.col-md-auto{-ms-flex:0 0 auto;flex:0 0 auto;width:auto;max-width:100%}.col-md-1{-ms-flex:0 0 8.333333%;flex:0 0 8.333333%;max-width:8.333333%}.col-md-2{-ms-flex:0 0 16.666667%;flex:0 0 16.666667%;max-width:16.666667%}.col-md-3{-ms-flex:0 0 25%;flex:0 0 25%;max-width:25%}.col-md-4{-ms-flex:0 0 33.333333%;flex:0 0 33.333333%;max-width:33.333333%}.col-md-5{-ms-flex:0 0 41.666667%;flex:0 0 41.666667%;max-width:41.666667%}.col-md-6{-ms-flex:0 0 50%;flex:0 0 50%;max-width:50%}.col-md-7{-ms-flex:0 0 58.333333%;flex:0 0 58.333333%;max-width:58.333333%}.col-md-8{-ms-flex:0 0 66.666667%;flex:0 0 66.666667%;max-width:66.666667%}.col-md-9{-ms-flex:0 0 75%;flex:0 0 75%;max-width:75%}.col-md-10{-ms-flex:0 0 83.333333%;flex:0 0 83.333333%;max-width:83.333333%}.col-md-11{-ms-flex:0 0 91.666667%;flex:0 0 91.666667%;max-width:91.666667%}.col-md-12{-ms-flex:0 0 100%;flex:0 0 100%;max-width:100%}.order-md-first{-ms-flex-order:-1;order:-1}.order-md-last{-ms-flex-order:13;order:13}.order-md-0{-ms-flex-order:0;order:0}.order-md-1{-ms-flex-order:1;order:1}.order-md-2{-ms-flex-order:2;order:2}.order-md-3{-ms-flex-order:3;order:3}.order-md-4{-ms-flex-order:4;order:4}.order-md-5{-ms-flex-order:5;order:5}.order-md-6{-ms-flex-order:6;order:6}.order-md-7{-ms-flex-order:7;order:7}.order-md-8{-ms-flex-order:8;order:8}.order-md-9{-ms-flex-order:9;order:9}.order-md-10{-ms-flex-order:10;order:10}.order-md-11{-ms-flex-order:11;order:11}.order-md-12{-ms-flex-order:12;order:12}.offset-md-0{margin-left:0}.offset-md-1{margin-left:8.333333%}.offset-md-2{margin-left:16.666667%}.offset-md-3{margin-left:25%}.offset-md-4{margin-left:33.333333%}.offset-md-5{margin-left:41.666667%}.offset-md-6{margin-left:50%}.offset-md-7{margin-left:58.333333%}.offset-md-8{margin-left:66.666667%}.offset-md-9{margin-left:75%}.offset-md-10{margin-left:83.333333%}.offset-md-11{margin-left:91.666667%}}@media (min-width:992px){.col-lg{-ms-flex-preferred-size:0;flex-basis:0;-ms-flex-positive:1;flex-grow:1;max-width:100%}.col-lg-auto{-ms-flex:0 0 auto;flex:0 0 auto;width:auto;max-width:100%}.col-lg-1{-ms-flex:0 0 8.333333%;flex:0 0 8.333333%;max-width:8.333333%}.col-lg-2{-ms-flex:0 0 16.666667%;flex:0 0 16.666667%;max-width:16.666667%}.col-lg-3{-ms-flex:0 0 25%;flex:0 0 25%;max-width:25%}.col-lg-4{-ms-flex:0 0 33.333333%;flex:0 0 33.333333%;max-width:33.333333%}.col-lg-5{-ms-flex:0 0 41.666667%;flex:0 0 41.666667%;max-width:41.666667%}.col-lg-6{-ms-flex:0 0 50%;flex:0 0 50%;max-width:50%}.col-lg-7{-ms-flex:0 0 58.333333%;flex:0 0 58.333333%;max-width:58.333333%}.col-lg-8{-ms-flex:0 0 66.666667%;flex:0 0 66.666667%;max-width:66.666667%}.col-lg-9{-ms-flex:0 0 75%;flex:0 0 75%;max-width:75%}.col-lg-10{-ms-flex:0 0 83.333333%;flex:0 0 83.333333%;max-width:83.333333%}.col-lg-11{-ms-flex:0 0 91.666667%;flex:0 0 91.666667%;max-width:91.666667%}.col-lg-12{-ms-flex:0 0 100%;flex:0 0 100%;max-width:100%}.order-lg-first{-ms-flex-order:-1;order:-1}.order-lg-last{-ms-flex-order:13;order:13}.order-lg-0{-ms-flex-order:0;order:0}.order-lg-1{-ms-flex-order:1;order:1}.order-lg-2{-ms-flex-order:2;order:2}.order-lg-3{-ms-flex-order:3;order:3}.order-lg-4{-ms-flex-order:4;order:4}.order-lg-5{-ms-flex-order:5;order:5}.order-lg-6{-ms-flex-order:6;order:6}.order-lg-7{-ms-flex-order:7;order:7}.order-lg-8{-ms-flex-order:8;order:8}.order-lg-9{-ms-flex-order:9;order:9}.order-lg-10{-ms-flex-order:10;order:10}.order-lg-11{-ms-flex-order:11;order:11}.order-lg-12{-ms-flex-order:12;order:12}.offset-lg-0{margin-left:0}.offset-lg-1{margin-left:8.333333%}.offset-lg-2{margin-left:16.666667%}.offset-lg-3{margin-left:25%}.offset-lg-4{margin-left:33.333333%}.offset-lg-5{margin-left:41.666667%}.offset-lg-6{margin-left:50%}.offset-lg-7{margin-left:58.333333%}.offset-lg-8{margin-left:66.666667%}.offset-lg-9{margin-left:75%}.offset-lg-10{margin-left:83.333333%}.offset-lg-11{margin-left:91.666667%}}@media (min-width:1200px){.col-xl{-ms-flex-preferred-size:0;flex-basis:0;-ms-flex-positive:1;flex-grow:1;max-width:100%}.col-xl-auto{-ms-flex:0 0 auto;flex:0 0 auto;width:auto;max-width:100%}.col-xl-1{-ms-flex:0 0 8.333333%;flex:0 0 8.333333%;max-width:8.333333%}.col-xl-2{-ms-flex:0 0 16.666667%;flex:0 0 16.666667%;max-width:16.666667%}.col-xl-3{-ms-flex:0 0 25%;flex:0 0 25%;max-width:25%}.col-xl-4{-ms-flex:0 0 33.333333%;flex:0 0 33.333333%;max-width:33.333333%}.col-xl-5{-ms-flex:0 0 41.666667%;flex:0 0 41.666667%;max-width:41.666667%}.col-xl-6{-ms-flex:0 0 50%;flex:0 0 50%;max-width:50%}.col-xl-7{-ms-flex:0 0 58.333333%;flex:0 0 58.333333%;max-width:58.333333%}.col-xl-8{-ms-flex:0 0 66.666667%;flex:0 0 66.666667%;max-width:66.666667%}.col-xl-9{-ms-flex:0 0 75%;flex:0 0 75%;max-width:75%}.col-xl-10{-ms-flex:0 0 83.333333%;flex:0 0 83.333333%;max-width:83.333333%}.col-xl-11{-ms-flex:0 0 91.666667%;flex:0 0 91.666667%;max-width:91.666667%}.col-xl-12{-ms-flex:0 0 100%;flex:0 0 100%;max-width:100%}.order-xl-first{-ms-flex-order:-1;order:-1}.order-xl-last{-ms-flex-order:13;order:13}.order-xl-0{-ms-flex-order:0;order:0}.order-xl-1{-ms-flex-order:1;order:1}.order-xl-2{-ms-flex-order:2;order:2}.order-xl-3{-ms-flex-order:3;order:3}.order-xl-4{-ms-flex-order:4;order:4}.order-xl-5{-ms-flex-order:5;order:5}.order-xl-6{-ms-flex-order:6;order:6}.order-xl-7{-ms-flex-order:7;order:7}.order-xl-8{-ms-flex-order:8;order:8}.order-xl-9{-ms-flex-order:9;order:9}.order-xl-10{-ms-flex-order:10;order:10}.order-xl-11{-ms-flex-order:11;order:11}.order-xl-12{-ms-flex-order:12;order:12}.offset-xl-0{margin-left:0}.offset-xl-1{margin-left:8.333333%}.offset-xl-2{margin-left:16.666667%}.offset-xl-3{margin-left:25%}.offset-xl-4{margin-left:33.333333%}.offset-xl-5{margin-left:41.666667%}.offset-xl-6{margin-left:50%}.offset-xl-7{margin-left:58.333333%}.offset-xl-8{margin-left:66.666667%}.offset-xl-9{margin-left:75%}.offset-xl-10{margin-left:83.333333%}.offset-xl-11{margin-left:91.666667%}}.table{width:100%;margin-bottom:1rem;color:#212529}.table td,.table th{padding:.75rem;vertical-align:top;border-top:1px solid #dee2e6}.table thead th{vertical-align:bottom;border-bottom:2px solid #dee2e6}.table tbody+tbody{border-top:2px solid #dee2e6}.table-sm td,.table-sm th{padding:.3rem}.table-bordered{border:1px solid #dee2e6}.table-bordered td,.table-bordered th{border:1px solid #dee2e6}.table-bordered thead td,.table-bordered thead th{border-bottom-width:2px}.table-borderless tbody+tbody,.table-borderless td,.table-borderless th,.table-borderless thead th{border:0}.table-striped tbody tr:nth-of-type(odd){background-color:rgba(0,0,0,.05)}.table-hover tbody tr:hover{color:#212529;background-color:rgba(0,0,0,.075)}.table-primary,.table-primary>td,.table-primary>th{background-color:#b8daff}.table-primary tbody+tbody,.table-primary td,.table-primary th,.table-primary thead th{border-color:#7abaff}.table-hover .table-primary:hover{background-color:#9fcdff}.table-hover .table-primary:hover>td,.table-hover .table-primary:hover>th{background-color:#9fcdff}.table-secondary,.table-secondary>td,.table-secondary>th{background-color:#d6d8db}.table-secondary tbody+tbody,.table-secondary td,.table-secondary th,.table-secondary thead th{border-color:#b3b7bb}.table-hover .table-secondary:hover{background-color:#c8cbcf}.table-hover .table-secondary:hover>td,.table-hover .table-secondary:hover>th{background-color:#c8cbcf}.table-success,.table-success>td,.table-success>th{background-color:#c3e6cb}.table-success tbody+tbody,.table-success td,.table-success th,.table-success thead th{border-color:#8fd19e}.table-hover .table-success:hover{background-color:#b1dfbb}.table-hover .table-success:hover>td,.table-hover .table-success:hover>th{background-color:#b1dfbb}.table-info,.table-info>td,.table-info>th{background-color:#bee5eb}.table-info tbody+tbody,.table-info td,.table-info th,.table-info thead th{border-color:#86cfda}.table-hover .table-info:hover{background-color:#abdde5}.table-hover .table-info:hover>td,.table-hover .table-info:hover>th{background-color:#abdde5}.table-warning,.table-warning>td,.table-warning>th{background-color:#ffeeba}.table-warning tbody+tbody,.table-warning td,.table-warning th,.table-warning thead th{border-color:#ffdf7e}.table-hover .table-warning:hover{background-color:#ffe8a1}.table-hover .table-warning:hover>td,.table-hover .table-warning:hover>th{background-color:#ffe8a1}.table-danger,.table-danger>td,.table-danger>th{background-color:#f5c6cb}.table-danger tbody+tbody,.table-danger td,.table-danger th,.table-danger thead th{border-color:#ed969e}.table-hover .table-danger:hover{background-color:#f1b0b7}.table-hover .table-danger:hover>td,.table-hover .table-danger:hover>th{background-color:#f1b0b7}.table-light,.table-light>td,.table-light>th{background-color:#fdfdfe}.table-light tbody+tbody,.table-light td,.table-light th,.table-light thead th{border-color:#fbfcfc}.table-hover .table-light:hover{background-color:#ececf6}.table-hover .table-light:hover>td,.table-hover .table-light:hover>th{background-color:#ececf6}.table-dark,.table-dark>td,.table-dark>th{background-color:#c6c8ca}.table-dark tbody+tbody,.table-dark td,.table-dark th,.table-dark thead th{border-color:#95999c}.table-hover .table-dark:hover{background-color:#b9bbbe}.table-hover .table-dark:hover>td,.table-hover .table-dark:hover>th{background-color:#b9bbbe}.table-active,.table-active>td,.table-active>th{background-color:rgba(0,0,0,.075)}.table-hover .table-active:hover{background-color:rgba(0,0,0,.075)}.table-hover .table-active:hover>td,.table-hover .table-active:hover>th{background-color:rgba(0,0,0,.075)}.table .thead-dark th{color:#fff;background-color:#343a40;border-color:#454d55}.table .thead-light th{color:#495057;background-color:#e9ecef;border-color:#dee2e6}.table-dark{color:#fff;background-color:#343a40}.table-dark td,.table-dark th,.table-dark thead th{border-color:#454d55}.table-dark.table-bordered{border:0}.table-dark.table-striped tbody tr:nth-of-type(odd){background-color:rgba(255,255,255,.05)}.table-dark.table-hover tbody tr:hover{color:#fff;background-color:rgba(255,255,255,.075)}@media (max-width:575.98px){.table-responsive-sm{display:block;width:100%;overflow-x:auto;-webkit-overflow-scrolling:touch}.table-responsive-sm>.table-bordered{border:0}}@media (max-width:767.98px){.table-responsive-md{display:block;width:100%;overflow-x:auto;-webkit-overflow-scrolling:touch}.table-responsive-md>.table-bordered{border:0}}@media (max-width:991.98px){.table-responsive-lg{display:block;width:100%;overflow-x:auto;-webkit-overflow-scrolling:touch}.table-responsive-lg>.table-bordered{border:0}}@media (max-width:1199.98px){.table-responsive-xl{display:block;width:100%;overflow-x:auto;-webkit-overflow-scrolling:touch}.table-responsive-xl>.table-bordered{border:0}}.table-responsive{display:block;width:100%;overflow-x:auto;-webkit-overflow-scrolling:touch}.table-responsive>.table-bordered{border:0}.form-control{display:block;width:100%;height:calc(1.5em + .75rem + 2px);padding:.375rem .75rem;font-size:1rem;font-weight:400;line-height:1.5;color:#495057;background-color:#fff;background-clip:padding-box;border:1px solid #ced4da;border-radius:.25rem;transition:border-color .15s ease-in-out,box-shadow .15s ease-in-out}@media (prefers-reduced-motion:reduce){.form-control{transition:none}}.form-control::-ms-expand{background-color:transparent;border:0}.form-control:focus{color:#495057;background-color:#fff;border-color:#80bdff;outline:0;box-shadow:0 0 0 .2rem rgba(0,123,255,.25)}.form-control::-webkit-input-placeholder{color:#6c757d;opacity:1}.form-control::-moz-placeholder{color:#6c757d;opacity:1}.form-control:-ms-input-placeholder{color:#6c757d;opacity:1}.form-control::-ms-input-placeholder{color:#6c757d;opacity:1}.form-control::placeholder{color:#6c757d;opacity:1}.form-control:disabled,.form-control[readonly]{background-color:#e9ecef;opacity:1}select.form-control:focus::-ms-value{color:#495057;background-color:#fff}.form-control-file,.form-control-range{display:block;width:100%}.col-form-label{padding-top:calc(.375rem + 1px);padding-bottom:calc(.375rem + 1px);margin-bottom:0;font-size:inherit;line-height:1.5}.col-form-label-lg{padding-top:calc(.5rem + 1px);padding-bottom:calc(.5rem + 1px);font-size:1.25rem;line-height:1.5}.col-form-label-sm{padding-top:calc(.25rem + 1px);padding-bottom:calc(.25rem + 1px);font-size:.875rem;line-height:1.5}.form-control-plaintext{display:block;width:100%;padding-top:.375rem;padding-bottom:.375rem;margin-bottom:0;line-height:1.5;color:#212529;background-color:transparent;border:solid transparent;border-width:1px 0}.form-control-plaintext.form-control-lg,.form-control-plaintext.form-control-sm{padding-right:0;padding-left:0}.form-control-sm{height:calc(1.5em + .5rem + 2px);padding:.25rem .5rem;font-size:.875rem;line-height:1.5;border-radius:.2rem}.form-control-lg{height:calc(1.5em + 1rem + 2px);padding:.5rem 1rem;font-size:1.25rem;line-height:1.5;border-radius:.3rem}select.form-control[multiple],select.form-control[size]{height:auto}textarea.form-control{height:auto}.form-group{margin-bottom:1rem}.form-text{display:block;margin-top:.25rem}.form-row{display:-ms-flexbox;display:flex;-ms-flex-wrap:wrap;flex-wrap:wrap;margin-right:-5px;margin-left:-5px}.form-row>.col,.form-row>[class*=col-]{padding-right:5px;padding-left:5px}.form-check{position:relative;display:block;padding-left:1.25rem}.form-check-input{position:absolute;margin-top:.3rem;margin-left:-1.25rem}.form-check-input:disabled~.form-check-label{color:#6c757d}.form-check-label{margin-bottom:0}.form-check-inline{display:-ms-inline-flexbox;display:inline-flex;-ms-flex-align:center;align-items:center;padding-left:0;margin-right:.75rem}.form-check-inline .form-check-input{position:static;margin-top:0;margin-right:.3125rem;margin-left:0}.valid-feedback{display:none;width:100%;margin-top:.25rem;font-size:80%;color:#28a745}.valid-tooltip{position:absolute;top:100%;z-index:5;display:none;max-width:100%;padding:.25rem .5rem;margin-top:.1rem;font-size:.875rem;line-height:1.5;color:#fff;background-color:rgba(40,167,69,.9);border-radius:.25rem}.form-control.is-valid,.was-validated .form-control:valid{border-color:#28a745;padding-right:calc(1.5em + .75rem);background-image:url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 8 8'%3e%3cpath fill='%2328a745' d='M2.3 6.73L.6 4.53c-.4-1.04.46-1.4 1.1-.8l1.1 1.4 3.4-3.8c.6-.63 1.6-.27 1.2.7l-4 4.6c-.43.5-.8.4-1.1.1z'/%3e%3c/svg%3e");background-repeat:no-repeat;background-position:center right calc(.375em + .1875rem);background-size:calc(.75em + .375rem) calc(.75em + .375rem)}.form-control.is-valid:focus,.was-validated .form-control:valid:focus{border-color:#28a745;box-shadow:0 0 0 .2rem rgba(40,167,69,.25)}.form-control.is-valid~.valid-feedback,.form-control.is-valid~.valid-tooltip,.was-validated .form-control:valid~.valid-feedback,.was-validated .form-control:valid~.valid-tooltip{display:block}.was-validated textarea.form-control:valid,textarea.form-control.is-valid{padding-right:calc(1.5em + .75rem);background-position:top calc(.375em + .1875rem) right calc(.375em + .1875rem)}.custom-select.is-valid,.was-validated .custom-select:valid{border-color:#28a745;padding-right:calc((1em + .75rem) * 3 / 4 + 1.75rem);background:url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 4 5'%3e%3cpath fill='%23343a40' d='M2 0L0 2h4zm0 5L0 3h4z'/%3e%3c/svg%3e") no-repeat right .75rem center/8px 10px,url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 8 8'%3e%3cpath fill='%2328a745' d='M2.3 6.73L.6 4.53c-.4-1.04.46-1.4 1.1-.8l1.1 1.4 3.4-3.8c.6-.63 1.6-.27 1.2.7l-4 4.6c-.43.5-.8.4-1.1.1z'/%3e%3c/svg%3e") #fff no-repeat center right 1.75rem/calc(.75em + .375rem) calc(.75em + .375rem)}.custom-select.is-valid:focus,.was-validated .custom-select:valid:focus{border-color:#28a745;box-shadow:0 0 0 .2rem rgba(40,167,69,.25)}.custom-select.is-valid~.valid-feedback,.custom-select.is-valid~.valid-tooltip,.was-validated .custom-select:valid~.valid-feedback,.was-validated .custom-select:valid~.valid-tooltip{display:block}.form-control-file.is-valid~.valid-feedback,.form-control-file.is-valid~.valid-tooltip,.was-validated .form-control-file:valid~.valid-feedback,.was-validated .form-control-file:valid~.valid-tooltip{display:block}.form-check-input.is-valid~.form-check-label,.was-validated .form-check-input:valid~.form-check-label{color:#28a745}.form-check-input.is-valid~.valid-feedback,.form-check-input.is-valid~.valid-tooltip,.was-validated .form-check-input:valid~.valid-feedback,.was-validated .form-check-input:valid~.valid-tooltip{display:block}.custom-control-input.is-valid~.custom-control-label,.was-validated .custom-control-input:valid~.custom-control-label{color:#28a745}.custom-control-input.is-valid~.custom-control-label::before,.was-validated .custom-control-input:valid~.custom-control-label::before{border-color:#28a745}.custom-control-input.is-valid~.valid-feedback,.custom-control-input.is-valid~.valid-tooltip,.was-validated .custom-control-input:valid~.valid-feedback,.was-validated .custom-control-input:valid~.valid-tooltip{display:block}.custom-control-input.is-valid:checked~.custom-control-label::before,.was-validated .custom-control-input:valid:checked~.custom-control-label::before{border-color:#34ce57;background-color:#34ce57}.custom-control-input.is-valid:focus~.custom-control-label::before,.was-validated .custom-control-input:valid:focus~.custom-control-label::before{box-shadow:0 0 0 .2rem rgba(40,167,69,.25)}.custom-control-input.is-valid:focus:not(:checked)~.custom-control-label::before,.was-validated .custom-control-input:valid:focus:not(:checked)~.custom-control-label::before{border-color:#28a745}.custom-file-input.is-valid~.custom-file-label,.was-validated .custom-file-input:valid~.custom-file-label{border-color:#28a745}.custom-file-input.is-valid~.valid-feedback,.custom-file-input.is-valid~.valid-tooltip,.was-validated .custom-file-input:valid~.valid-feedback,.was-validated .custom-file-input:valid~.valid-tooltip{display:block}.custom-file-input.is-valid:focus~.custom-file-label,.was-validated .custom-file-input:valid:focus~.custom-file-label{border-color:#28a745;box-shadow:0 0 0 .2rem rgba(40,167,69,.25)}.invalid-feedback{display:none;width:100%;margin-top:.25rem;font-size:80%;color:#dc3545}.invalid-tooltip{position:absolute;top:100%;z-index:5;display:none;max-width:100%;padding:.25rem .5rem;margin-top:.1rem;font-size:.875rem;line-height:1.5;color:#fff;background-color:rgba(220,53,69,.9);border-radius:.25rem}.form-control.is-invalid,.was-validated .form-control:invalid{border-color:#dc3545;padding-right:calc(1.5em + .75rem);background-image:url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' fill='%23dc3545' viewBox='-2 -2 7 7'%3e%3cpath stroke='%23dc3545' d='M0 0l3 3m0-3L0 3'/%3e%3ccircle r='.5'/%3e%3ccircle cx='3' r='.5'/%3e%3ccircle cy='3' r='.5'/%3e%3ccircle cx='3' cy='3' r='.5'/%3e%3c/svg%3E");background-repeat:no-repeat;background-position:center right calc(.375em + .1875rem);background-size:calc(.75em + .375rem) calc(.75em + .375rem)}.form-control.is-invalid:focus,.was-validated .form-control:invalid:focus{border-color:#dc3545;box-shadow:0 0 0 .2rem rgba(220,53,69,.25)}.form-control.is-invalid~.invalid-feedback,.form-control.is-invalid~.invalid-tooltip,.was-validated .form-control:invalid~.invalid-feedback,.was-validated .form-control:invalid~.invalid-tooltip{display:block}.was-validated textarea.form-control:invalid,textarea.form-control.is-invalid{padding-right:calc(1.5em + .75rem);background-position:top calc(.375em + .1875rem) right calc(.375em + .1875rem)}.custom-select.is-invalid,.was-validated .custom-select:invalid{border-color:#dc3545;padding-right:calc((1em + .75rem) * 3 / 4 + 1.75rem);background:url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 4 5'%3e%3cpath fill='%23343a40' d='M2 0L0 2h4zm0 5L0 3h4z'/%3e%3c/svg%3e") no-repeat right .75rem center/8px 10px,url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' fill='%23dc3545' viewBox='-2 -2 7 7'%3e%3cpath stroke='%23dc3545' d='M0 0l3 3m0-3L0 3'/%3e%3ccircle r='.5'/%3e%3ccircle cx='3' r='.5'/%3e%3ccircle cy='3' r='.5'/%3e%3ccircle cx='3' cy='3' r='.5'/%3e%3c/svg%3E") #fff no-repeat center right 1.75rem/calc(.75em + .375rem) calc(.75em + .375rem)}.custom-select.is-invalid:focus,.was-validated .custom-select:invalid:focus{border-color:#dc3545;box-shadow:0 0 0 .2rem rgba(220,53,69,.25)}.custom-select.is-invalid~.invalid-feedback,.custom-select.is-invalid~.invalid-tooltip,.was-validated .custom-select:invalid~.invalid-feedback,.was-validated .custom-select:invalid~.invalid-tooltip{display:block}.form-control-file.is-invalid~.invalid-feedback,.form-control-file.is-invalid~.invalid-tooltip,.was-validated .form-control-file:invalid~.invalid-feedback,.was-validated .form-control-file:invalid~.invalid-tooltip{display:block}.form-check-input.is-invalid~.form-check-label,.was-validated .form-check-input:invalid~.form-check-label{color:#dc3545}.form-check-input.is-invalid~.invalid-feedback,.form-check-input.is-invalid~.invalid-tooltip,.was-validated .form-check-input:invalid~.invalid-feedback,.was-validated .form-check-input:invalid~.invalid-tooltip{display:block}.custom-control-input.is-invalid~.custom-control-label,.was-validated .custom-control-input:invalid~.custom-control-label{color:#dc3545}.custom-control-input.is-invalid~.custom-control-label::before,.was-validated .custom-control-input:invalid~.custom-control-label::before{border-color:#dc3545}.custom-control-input.is-invalid~.invalid-feedback,.custom-control-input.is-invalid~.invalid-tooltip,.was-validated .custom-control-input:invalid~.invalid-feedback,.was-validated .custom-control-input:invalid~.invalid-tooltip{display:block}.custom-control-input.is-invalid:checked~.custom-control-label::before,.was-validated .custom-control-input:invalid:checked~.custom-control-label::before{border-color:#e4606d;background-color:#e4606d}.custom-control-input.is-invalid:focus~.custom-control-label::before,.was-validated .custom-control-input:invalid:focus~.custom-control-label::before{box-shadow:0 0 0 .2rem rgba(220,53,69,.25)}.custom-control-input.is-invalid:focus:not(:checked)~.custom-control-label::before,.was-validated .custom-control-input:invalid:focus:not(:checked)~.custom-control-label::before{border-color:#dc3545}.custom-file-input.is-invalid~.custom-file-label,.was-validated .custom-file-input:invalid~.custom-file-label{border-color:#dc3545}.custom-file-input.is-invalid~.invalid-feedback,.custom-file-input.is-invalid~.invalid-tooltip,.was-validated .custom-file-input:invalid~.invalid-feedback,.was-validated .custom-file-input:invalid~.invalid-tooltip{display:block}.custom-file-input.is-invalid:focus~.custom-file-label,.was-validated .custom-file-input:invalid:focus~.custom-file-label{border-color:#dc3545;box-shadow:0 0 0 .2rem rgba(220,53,69,.25)}.form-inline{display:-ms-flexbox;display:flex;-ms-flex-flow:row wrap;flex-flow:row wrap;-ms-flex-align:center;align-items:center}.form-inline .form-check{width:100%}@media (min-width:576px){.form-inline label{display:-ms-flexbox;display:flex;-ms-flex-align:center;align-items:center;-ms-flex-pack:center;justify-content:center;margin-bottom:0}.form-inline .form-group{display:-ms-flexbox;display:flex;-ms-flex:0 0 auto;flex:0 0 auto;-ms-flex-flow:row wrap;flex-flow:row wrap;-ms-flex-align:center;align-items:center;margin-bottom:0}.form-inline .form-control{display:inline-block;width:auto;vertical-align:middle}.form-inline .form-control-plaintext{display:inline-block}.form-inline .custom-select,.form-inline .input-group{width:auto}.form-inline .form-check{display:-ms-flexbox;display:flex;-ms-flex-align:center;align-items:center;-ms-flex-pack:center;justify-content:center;width:auto;padding-left:0}.form-inline .form-check-input{position:relative;-ms-flex-negative:0;flex-shrink:0;margin-top:0;margin-right:.25rem;margin-left:0}.form-inline .custom-control{-ms-flex-align:center;align-items:center;-ms-flex-pack:center;justify-content:center}.form-inline .custom-control-label{margin-bottom:0}}.btn{display:inline-block;font-weight:400;color:#212529;text-align:center;vertical-align:middle;-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none;background-color:transparent;border:1px solid transparent;padding:.375rem .75rem;font-size:1rem;line-height:1.5;border-radius:.25rem;transition:color .15s ease-in-out,background-color .15s ease-in-out,border-color .15s ease-in-out,box-shadow .15s ease-in-out}@media (prefers-reduced-motion:reduce){.btn{transition:none}}.btn:hover{color:#212529;text-decoration:none}.btn.focus,.btn:focus{outline:0;box-shadow:0 0 0 .2rem rgba(0,123,255,.25)}.btn.disabled,.btn:disabled{opacity:.65}a.btn.disabled,fieldset:disabled a.btn{pointer-events:none}.btn-primary{color:#fff;background-color:#007bff;border-color:#007bff}.btn-primary:hover{color:#fff;background-color:#0069d9;border-color:#0062cc}.btn-primary.focus,.btn-primary:focus{box-shadow:0 0 0 .2rem rgba(38,143,255,.5)}.btn-primary.disabled,.btn-primary:disabled{color:#fff;background-color:#007bff;border-color:#007bff}.btn-primary:not(:disabled):not(.disabled).active,.btn-primary:not(:disabled):not(.disabled):active,.show>.btn-primary.dropdown-toggle{color:#fff;background-color:#0062cc;border-color:#005cbf}.btn-primary:not(:disabled):not(.disabled).active:focus,.btn-primary:not(:disabled):not(.disabled):active:focus,.show>.btn-primary.dropdown-toggle:focus{box-shadow:0 0 0 .2rem rgba(38,143,255,.5)}.btn-secondary{color:#fff;background-color:#6c757d;border-color:#6c757d}.btn-secondary:hover{color:#fff;background-color:#5a6268;border-color:#545b62}.btn-secondary.focus,.btn-secondary:focus{box-shadow:0 0 0 .2rem rgba(130,138,145,.5)}.btn-secondary.disabled,.btn-secondary:disabled{color:#fff;background-color:#6c757d;border-color:#6c757d}.btn-secondary:not(:disabled):not(.disabled).active,.btn-secondary:not(:disabled):not(.disabled):active,.show>.btn-secondary.dropdown-toggle{color:#fff;background-color:#545b62;border-color:#4e555b}.btn-secondary:not(:disabled):not(.disabled).active:focus,.btn-secondary:not(:disabled):not(.disabled):active:focus,.show>.btn-secondary.dropdown-toggle:focus{box-shadow:0 0 0 .2rem rgba(130,138,145,.5)}.btn-success{color:#fff;background-color:#28a745;border-color:#28a745}.btn-success:hover{color:#fff;background-color:#218838;border-color:#1e7e34}.btn-success.focus,.btn-success:focus{box-shadow:0 0 0 .2rem rgba(72,180,97,.5)}.btn-success.disabled,.btn-success:disabled{color:#fff;background-color:#28a745;border-color:#28a745}.btn-success:not(:disabled):not(.disabled).active,.btn-success:not(:disabled):not(.disabled):active,.show>.btn-success.dropdown-toggle{color:#fff;background-color:#1e7e34;border-color:#1c7430}.btn-success:not(:disabled):not(.disabled).active:focus,.btn-success:not(:disabled):not(.disabled):active:focus,.show>.btn-success.dropdown-toggle:focus{box-shadow:0 0 0 .2rem rgba(72,180,97,.5)}.btn-info{color:#fff;background-color:#17a2b8;border-color:#17a2b8}.btn-info:hover{color:#fff;background-color:#138496;border-color:#117a8b}.btn-info.focus,.btn-info:focus{box-shadow:0 0 0 .2rem rgba(58,176,195,.5)}.btn-info.disabled,.btn-info:disabled{color:#fff;background-color:#17a2b8;border-color:#17a2b8}.btn-info:not(:disabled):not(.disabled).active,.btn-info:not(:disabled):not(.disabled):active,.show>.btn-info.dropdown-toggle{color:#fff;background-color:#117a8b;border-color:#10707f}.btn-info:not(:disabled):not(.disabled).active:focus,.btn-info:not(:disabled):not(.disabled):active:focus,.show>.btn-info.dropdown-toggle:focus{box-shadow:0 0 0 .2rem rgba(58,176,195,.5)}.btn-warning{color:#212529;background-color:#ffc107;border-color:#ffc107}.btn-warning:hover{color:#212529;background-color:#e0a800;border-color:#d39e00}.btn-warning.focus,.btn-warning:focus{box-shadow:0 0 0 .2rem rgba(222,170,12,.5)}.btn-warning.disabled,.btn-warning:disabled{color:#212529;background-color:#ffc107;border-color:#ffc107}.btn-warning:not(:disabled):not(.disabled).active,.btn-warning:not(:disabled):not(.disabled):active,.show>.btn-warning.dropdown-toggle{color:#212529;background-color:#d39e00;border-color:#c69500}.btn-warning:not(:disabled):not(.disabled).active:focus,.btn-warning:not(:disabled):not(.disabled):active:focus,.show>.btn-warning.dropdown-toggle:focus{box-shadow:0 0 0 .2rem rgba(222,170,12,.5)}.btn-danger{color:#fff;background-color:#dc3545;border-color:#dc3545}.btn-danger:hover{color:#fff;background-color:#c82333;border-color:#bd2130}.btn-danger.focus,.btn-danger:focus{box-shadow:0 0 0 .2rem rgba(225,83,97,.5)}.btn-danger.disabled,.btn-danger:disabled{color:#fff;background-color:#dc3545;border-color:#dc3545}.btn-danger:not(:disabled):not(.disabled).active,.btn-danger:not(:disabled):not(.disabled):active,.show>.btn-danger.dropdown-toggle{color:#fff;background-color:#bd2130;border-color:#b21f2d}.btn-danger:not(:disabled):not(.disabled).active:focus,.btn-danger:not(:disabled):not(.disabled):active:focus,.show>.btn-danger.dropdown-toggle:focus{box-shadow:0 0 0 .2rem rgba(225,83,97,.5)}.btn-light{color:#212529;background-color:#f8f9fa;border-color:#f8f9fa}.btn-light:hover{color:#212529;background-color:#e2e6ea;border-color:#dae0e5}.btn-light.focus,.btn-light:focus{box-shadow:0 0 0 .2rem rgba(216,217,219,.5)}.btn-light.disabled,.btn-light:disabled{color:#212529;background-color:#f8f9fa;border-color:#f8f9fa}.btn-light:not(:disabled):not(.disabled).active,.btn-light:not(:disabled):not(.disabled):active,.show>.btn-light.dropdown-toggle{color:#212529;background-color:#dae0e5;border-color:#d3d9df}.btn-light:not(:disabled):not(.disabled).active:focus,.btn-light:not(:disabled):not(.disabled):active:focus,.show>.btn-light.dropdown-toggle:focus{box-shadow:0 0 0 .2rem rgba(216,217,219,.5)}.btn-dark{color:#fff;background-color:#343a40;border-color:#343a40}.btn-dark:hover{color:#fff;background-color:#23272b;border-color:#1d2124}.btn-dark.focus,.btn-dark:focus{box-shadow:0 0 0 .2rem rgba(82,88,93,.5)}.btn-dark.disabled,.btn-dark:disabled{color:#fff;background-color:#343a40;border-color:#343a40}.btn-dark:not(:disabled):not(.disabled).active,.btn-dark:not(:disabled):not(.disabled):active,.show>.btn-dark.dropdown-toggle{color:#fff;background-color:#1d2124;border-color:#171a1d}.btn-dark:not(:disabled):not(.disabled).active:focus,.btn-dark:not(:disabled):not(.disabled):active:focus,.show>.btn-dark.dropdown-toggle:focus{box-shadow:0 0 0 .2rem rgba(82,88,93,.5)}.btn-outline-primary{color:#007bff;border-color:#007bff}.btn-outline-primary:hover{color:#fff;background-color:#007bff;border-color:#007bff}.btn-outline-primary.focus,.btn-outline-primary:focus{box-shadow:0 0 0 .2rem rgba(0,123,255,.5)}.btn-outline-primary.disabled,.btn-outline-primary:disabled{color:#007bff;background-color:transparent}.btn-outline-primary:not(:disabled):not(.disabled).active,.btn-outline-primary:not(:disabled):not(.disabled):active,.show>.btn-outline-primary.dropdown-toggle{color:#fff;background-color:#007bff;border-color:#007bff}.btn-outline-primary:not(:disabled):not(.disabled).active:focus,.btn-outline-primary:not(:disabled):not(.disabled):active:focus,.show>.btn-outline-primary.dropdown-toggle:focus{box-shadow:0 0 0 .2rem rgba(0,123,255,.5)}.btn-outline-secondary{color:#6c757d;border-color:#6c757d}.btn-outline-secondary:hover{color:#fff;background-color:#6c757d;border-color:#6c757d}.btn-outline-secondary.focus,.btn-outline-secondary:focus{box-shadow:0 0 0 .2rem rgba(108,117,125,.5)}.btn-outline-secondary.disabled,.btn-outline-secondary:disabled{color:#6c757d;background-color:transparent}.btn-outline-secondary:not(:disabled):not(.disabled).active,.btn-outline-secondary:not(:disabled):not(.disabled):active,.show>.btn-outline-secondary.dropdown-toggle{color:#fff;background-color:#6c757d;border-color:#6c757d}.btn-outline-secondary:not(:disabled):not(.disabled).active:focus,.btn-outline-secondary:not(:disabled):not(.disabled):active:focus,.show>.btn-outline-secondary.dropdown-toggle:focus{box-shadow:0 0 0 .2rem rgba(108,117,125,.5)}.btn-outline-success{color:#28a745;border-color:#28a745}.btn-outline-success:hover{color:#fff;background-color:#28a745;border-color:#28a745}.btn-outline-success.focus,.btn-outline-success:focus{box-shadow:0 0 0 .2rem rgba(40,167,69,.5)}.btn-outline-success.disabled,.btn-outline-success:disabled{color:#28a745;background-color:transparent}.btn-outline-success:not(:disabled):not(.disabled).active,.btn-outline-success:not(:disabled):not(.disabled):active,.show>.btn-outline-success.dropdown-toggle{color:#fff;background-color:#28a745;border-color:#28a745}.btn-outline-success:not(:disabled):not(.disabled).active:focus,.btn-outline-success:not(:disabled):not(.disabled):active:focus,.show>.btn-outline-success.dropdown-toggle:focus{box-shadow:0 0 0 .2rem rgba(40,167,69,.5)}.btn-outline-info{color:#17a2b8;border-color:#17a2b8}.btn-outline-info:hover{color:#fff;background-color:#17a2b8;border-color:#17a2b8}.btn-outline-info.focus,.btn-outline-info:focus{box-shadow:0 0 0 .2rem rgba(23,162,184,.5)}.btn-outline-info.disabled,.btn-outline-info:disabled{color:#17a2b8;background-color:transparent}.btn-outline-info:not(:disabled):not(.disabled).active,.btn-outline-info:not(:disabled):not(.disabled):active,.show>.btn-outline-info.dropdown-toggle{color:#fff;background-color:#17a2b8;border-color:#17a2b8}.btn-outline-info:not(:disabled):not(.disabled).active:focus,.btn-outline-info:not(:disabled):not(.disabled):active:focus,.show>.btn-outline-info.dropdown-toggle:focus{box-shadow:0 0 0 .2rem rgba(23,162,184,.5)}.btn-outline-warning{color:#ffc107;border-color:#ffc107}.btn-outline-warning:hover{color:#212529;background-color:#ffc107;border-color:#ffc107}.btn-outline-warning.focus,.btn-outline-warning:focus{box-shadow:0 0 0 .2rem rgba(255,193,7,.5)}.btn-outline-warning.disabled,.btn-outline-warning:disabled{color:#ffc107;background-color:transparent}.btn-outline-warning:not(:disabled):not(.disabled).active,.btn-outline-warning:not(:disabled):not(.disabled):active,.show>.btn-outline-warning.dropdown-toggle{color:#212529;background-color:#ffc107;border-color:#ffc107}.btn-outline-warning:not(:disabled):not(.disabled).active:focus,.btn-outline-warning:not(:disabled):not(.disabled):active:focus,.show>.btn-outline-warning.dropdown-toggle:focus{box-shadow:0 0 0 .2rem rgba(255,193,7,.5)}.btn-outline-danger{color:#dc3545;border-color:#dc3545}.btn-outline-danger:hover{color:#fff;background-color:#dc3545;border-color:#dc3545}.btn-outline-danger.focus,.btn-outline-danger:focus{box-shadow:0 0 0 .2rem rgba(220,53,69,.5)}.btn-outline-danger.disabled,.btn-outline-danger:disabled{color:#dc3545;background-color:transparent}.btn-outline-danger:not(:disabled):not(.disabled).active,.btn-outline-danger:not(:disabled):not(.disabled):active,.show>.btn-outline-danger.dropdown-toggle{color:#fff;background-color:#dc3545;border-color:#dc3545}.btn-outline-danger:not(:disabled):not(.disabled).active:focus,.btn-outline-danger:not(:disabled):not(.disabled):active:focus,.show>.btn-outline-danger.dropdown-toggle:focus{box-shadow:0 0 0 .2rem rgba(220,53,69,.5)}.btn-outline-light{color:#f8f9fa;border-color:#f8f9fa}.btn-outline-light:hover{color:#212529;background-color:#f8f9fa;border-color:#f8f9fa}.btn-outline-light.focus,.btn-outline-light:focus{box-shadow:0 0 0 .2rem rgba(248,249,250,.5)}.btn-outline-light.disabled,.btn-outline-light:disabled{color:#f8f9fa;background-color:transparent}.btn-outline-light:not(:disabled):not(.disabled).active,.btn-outline-light:not(:disabled):not(.disabled):active,.show>.btn-outline-light.dropdown-toggle{color:#212529;background-color:#f8f9fa;border-color:#f8f9fa}.btn-outline-light:not(:disabled):not(.disabled).active:focus,.btn-outline-light:not(:disabled):not(.disabled):active:focus,.show>.btn-outline-light.dropdown-toggle:focus{box-shadow:0 0 0 .2rem rgba(248,249,250,.5)}.btn-outline-dark{color:#343a40;border-color:#343a40}.btn-outline-dark:hover{color:#fff;background-color:#343a40;border-color:#343a40}.btn-outline-dark.focus,.btn-outline-dark:focus{box-shadow:0 0 0 .2rem rgba(52,58,64,.5)}.btn-outline-dark.disabled,.btn-outline-dark:disabled{color:#343a40;background-color:transparent}.btn-outline-dark:not(:disabled):not(.disabled).active,.btn-outline-dark:not(:disabled):not(.disabled):active,.show>.btn-outline-dark.dropdown-toggle{color:#fff;background-color:#343a40;border-color:#343a40}.btn-outline-dark:not(:disabled):not(.disabled).active:focus,.btn-outline-dark:not(:disabled):not(.disabled):active:focus,.show>.btn-outline-dark.dropdown-toggle:focus{box-shadow:0 0 0 .2rem rgba(52,58,64,.5)}.btn-link{font-weight:400;color:#007bff;text-decoration:none}.btn-link:hover{color:#0056b3;text-decoration:underline}.btn-link.focus,.btn-link:focus{text-decoration:underline;box-shadow:none}.btn-link.disabled,.btn-link:disabled{color:#6c757d;pointer-events:none}.btn-group-lg>.btn,.btn-lg{padding:.5rem 1rem;font-size:1.25rem;line-height:1.5;border-radius:.3rem}.btn-group-sm>.btn,.btn-sm{padding:.25rem .5rem;font-size:.875rem;line-height:1.5;border-radius:.2rem}.btn-block{display:block;width:100%}.btn-block+.btn-block{margin-top:.5rem}input[type=button].btn-block,input[type=reset].btn-block,input[type=submit].btn-block{width:100%}.fade{transition:opacity .15s linear}@media (prefers-reduced-motion:reduce){.fade{transition:none}}.fade:not(.show){opacity:0}.collapse:not(.show){display:none}.collapsing{position:relative;height:0;overflow:hidden;transition:height .35s ease}@media (prefers-reduced-motion:reduce){.collapsing{transition:none}}.dropdown,.dropleft,.dropright,.dropup{position:relative}.dropdown-toggle{white-space:nowrap}.dropdown-toggle::after{display:inline-block;margin-left:.255em;vertical-align:.255em;content:"";border-top:.3em solid;border-right:.3em solid transparent;border-bottom:0;border-left:.3em solid transparent}.dropdown-toggle:empty::after{margin-left:0}.dropdown-menu{position:absolute;top:100%;left:0;z-index:1000;display:none;float:left;min-width:10rem;padding:.5rem 0;margin:.125rem 0 0;font-size:1rem;color:#212529;text-align:left;list-style:none;background-color:#fff;background-clip:padding-box;border:1px solid rgba(0,0,0,.15);border-radius:.25rem}.dropdown-menu-left{right:auto;left:0}.dropdown-menu-right{right:0;left:auto}@media (min-width:576px){.dropdown-menu-sm-left{right:auto;left:0}.dropdown-menu-sm-right{right:0;left:auto}}@media (min-width:768px){.dropdown-menu-md-left{right:auto;left:0}.dropdown-menu-md-right{right:0;left:auto}}@media (min-width:992px){.dropdown-menu-lg-left{right:auto;left:0}.dropdown-menu-lg-right{right:0;left:auto}}@media (min-width:1200px){.dropdown-menu-xl-left{right:auto;left:0}.dropdown-menu-xl-right{right:0;left:auto}}.dropup .dropdown-menu{top:auto;bottom:100%;margin-top:0;margin-bottom:.125rem}.dropup .dropdown-toggle::after{display:inline-block;margin-left:.255em;vertical-align:.255em;content:"";border-top:0;border-right:.3em solid transparent;border-bottom:.3em solid;border-left:.3em solid transparent}.dropup .dropdown-toggle:empty::after{margin-left:0}.dropright .dropdown-menu{top:0;right:auto;left:100%;margin-top:0;margin-left:.125rem}.dropright .dropdown-toggle::after{display:inline-block;margin-left:.255em;vertical-align:.255em;content:"";border-top:.3em solid transparent;border-right:0;border-bottom:.3em solid transparent;border-left:.3em solid}.dropright .dropdown-toggle:empty::after{margin-left:0}.dropright .dropdown-toggle::after{vertical-align:0}.dropleft .dropdown-menu{top:0;right:100%;left:auto;margin-top:0;margin-right:.125rem}.dropleft .dropdown-toggle::after{display:inline-block;margin-left:.255em;vertical-align:.255em;content:""}.dropleft .dropdown-toggle::after{display:none}.dropleft .dropdown-toggle::before{display:inline-block;margin-right:.255em;vertical-align:.255em;content:"";border-top:.3em solid transparent;border-right:.3em solid;border-bottom:.3em solid transparent}.dropleft .dropdown-toggle:empty::after{margin-left:0}.dropleft .dropdown-toggle::before{vertical-align:0}.dropdown-menu[x-placement^=bottom],.dropdown-menu[x-placement^=left],.dropdown-menu[x-placement^=right],.dropdown-menu[x-placement^=top]{right:auto;bottom:auto}.dropdown-divider{height:0;margin:.5rem 0;overflow:hidden;border-top:1px solid #e9ecef}.dropdown-item{display:block;width:100%;padding:.25rem 1.5rem;clear:both;font-weight:400;color:#212529;text-align:inherit;white-space:nowrap;background-color:transparent;border:0}.dropdown-item:focus,.dropdown-item:hover{color:#16181b;text-decoration:none;background-color:#f8f9fa}.dropdown-item.active,.dropdown-item:active{color:#fff;text-decoration:none;background-color:#007bff}.dropdown-item.disabled,.dropdown-item:disabled{color:#6c757d;pointer-events:none;background-color:transparent}.dropdown-menu.show{display:block}.dropdown-header{display:block;padding:.5rem 1.5rem;margin-bottom:0;font-size:.875rem;color:#6c757d;white-space:nowrap}.dropdown-item-text{display:block;padding:.25rem 1.5rem;color:#212529}.btn-group,.btn-group-vertical{position:relative;display:-ms-inline-flexbox;display:inline-flex;vertical-align:middle}.btn-group-vertical>.btn,.btn-group>.btn{position:relative;-ms-flex:1 1 auto;flex:1 1 auto}.btn-group-vertical>.btn:hover,.btn-group>.btn:hover{z-index:1}.btn-group-vertical>.btn.active,.btn-group-vertical>.btn:active,.btn-group-vertical>.btn:focus,.btn-group>.btn.active,.btn-group>.btn:active,.btn-group>.btn:focus{z-index:1}.btn-toolbar{display:-ms-flexbox;display:flex;-ms-flex-wrap:wrap;flex-wrap:wrap;-ms-flex-pack:start;justify-content:flex-start}.btn-toolbar .input-group{width:auto}.btn-group>.btn-group:not(:first-child),.btn-group>.btn:not(:first-child){margin-left:-1px}.btn-group>.btn-group:not(:last-child)>.btn,.btn-group>.btn:not(:last-child):not(.dropdown-toggle){border-top-right-radius:0;border-bottom-right-radius:0}.btn-group>.btn-group:not(:first-child)>.btn,.btn-group>.btn:not(:first-child){border-top-left-radius:0;border-bottom-left-radius:0}.dropdown-toggle-split{padding-right:.5625rem;padding-left:.5625rem}.dropdown-toggle-split::after,.dropright .dropdown-toggle-split::after,.dropup .dropdown-toggle-split::after{margin-left:0}.dropleft .dropdown-toggle-split::before{margin-right:0}.btn-group-sm>.btn+.dropdown-toggle-split,.btn-sm+.dropdown-toggle-split{padding-right:.375rem;padding-left:.375rem}.btn-group-lg>.btn+.dropdown-toggle-split,.btn-lg+.dropdown-toggle-split{padding-right:.75rem;padding-left:.75rem}.btn-group-vertical{-ms-flex-direction:column;flex-direction:column;-ms-flex-align:start;align-items:flex-start;-ms-flex-pack:center;justify-content:center}.btn-group-vertical>.btn,.btn-group-vertical>.btn-group{width:100%}.btn-group-vertical>.btn-group:not(:first-child),.btn-group-vertical>.btn:not(:first-child){margin-top:-1px}.btn-group-vertical>.btn-group:not(:last-child)>.btn,.btn-group-vertical>.btn:not(:last-child):not(.dropdown-toggle){border-bottom-right-radius:0;border-bottom-left-radius:0}.btn-group-vertical>.btn-group:not(:first-child)>.btn,.btn-group-vertical>.btn:not(:first-child){border-top-left-radius:0;border-top-right-radius:0}.btn-group-toggle>.btn,.btn-group-toggle>.btn-group>.btn{margin-bottom:0}.btn-group-toggle>.btn input[type=checkbox],.btn-group-toggle>.btn input[type=radio],.btn-group-toggle>.btn-group>.btn input[type=checkbox],.btn-group-toggle>.btn-group>.btn input[type=radio]{position:absolute;clip:rect(0,0,0,0);pointer-events:none}.input-group{position:relative;display:-ms-flexbox;display:flex;-ms-flex-wrap:wrap;flex-wrap:wrap;-ms-flex-align:stretch;align-items:stretch;width:100%}.input-group>.custom-file,.input-group>.custom-select,.input-group>.form-control,.input-group>.form-control-plaintext{position:relative;-ms-flex:1 1 auto;flex:1 1 auto;width:1%;margin-bottom:0}.input-group>.custom-file+.custom-file,.input-group>.custom-file+.custom-select,.input-group>.custom-file+.form-control,.input-group>.custom-select+.custom-file,.input-group>.custom-select+.custom-select,.input-group>.custom-select+.form-control,.input-group>.form-control+.custom-file,.input-group>.form-control+.custom-select,.input-group>.form-control+.form-control,.input-group>.form-control-plaintext+.custom-file,.input-group>.form-control-plaintext+.custom-select,.input-group>.form-control-plaintext+.form-control{margin-left:-1px}.input-group>.custom-file .custom-file-input:focus~.custom-file-label,.input-group>.custom-select:focus,.input-group>.form-control:focus{z-index:3}.input-group>.custom-file .custom-file-input:focus{z-index:4}.input-group>.custom-select:not(:last-child),.input-group>.form-control:not(:last-child){border-top-right-radius:0;border-bottom-right-radius:0}.input-group>.custom-select:not(:first-child),.input-group>.form-control:not(:first-child){border-top-left-radius:0;border-bottom-left-radius:0}.input-group>.custom-file{display:-ms-flexbox;display:flex;-ms-flex-align:center;align-items:center}.input-group>.custom-file:not(:last-child) .custom-file-label,.input-group>.custom-file:not(:last-child) .custom-file-label::after{border-top-right-radius:0;border-bottom-right-radius:0}.input-group>.custom-file:not(:first-child) .custom-file-label{border-top-left-radius:0;border-bottom-left-radius:0}.input-group-append,.input-group-prepend{display:-ms-flexbox;display:flex}.input-group-append .btn,.input-group-prepend .btn{position:relative;z-index:2}.input-group-append .btn:focus,.input-group-prepend .btn:focus{z-index:3}.input-group-append .btn+.btn,.input-group-append .btn+.input-group-text,.input-group-append .input-group-text+.btn,.input-group-append .input-group-text+.input-group-text,.input-group-prepend .btn+.btn,.input-group-prepend .btn+.input-group-text,.input-group-prepend .input-group-text+.btn,.input-group-prepend .input-group-text+.input-group-text{margin-left:-1px}.input-group-prepend{margin-right:-1px}.input-group-append{margin-left:-1px}.input-group-text{display:-ms-flexbox;display:flex;-ms-flex-align:center;align-items:center;padding:.375rem .75rem;margin-bottom:0;font-size:1rem;font-weight:400;line-height:1.5;color:#495057;text-align:center;white-space:nowrap;background-color:#e9ecef;border:1px solid #ced4da;border-radius:.25rem}.input-group-text input[type=checkbox],.input-group-text input[type=radio]{margin-top:0}.input-group-lg>.custom-select,.input-group-lg>.form-control:not(textarea){height:calc(1.5em + 1rem + 2px)}.input-group-lg>.custom-select,.input-group-lg>.form-control,.input-group-lg>.input-group-append>.btn,.input-group-lg>.input-group-append>.input-group-text,.input-group-lg>.input-group-prepend>.btn,.input-group-lg>.input-group-prepend>.input-group-text{padding:.5rem 1rem;font-size:1.25rem;line-height:1.5;border-radius:.3rem}.input-group-sm>.custom-select,.input-group-sm>.form-control:not(textarea){height:calc(1.5em + .5rem + 2px)}.input-group-sm>.custom-select,.input-group-sm>.form-control,.input-group-sm>.input-group-append>.btn,.input-group-sm>.input-group-append>.input-group-text,.input-group-sm>.input-group-prepend>.btn,.input-group-sm>.input-group-prepend>.input-group-text{padding:.25rem .5rem;font-size:.875rem;line-height:1.5;border-radius:.2rem}.input-group-lg>.custom-select,.input-group-sm>.custom-select{padding-right:1.75rem}.input-group>.input-group-append:last-child>.btn:not(:last-child):not(.dropdown-toggle),.input-group>.input-group-append:last-child>.input-group-text:not(:last-child),.input-group>.input-group-append:not(:last-child)>.btn,.input-group>.input-group-append:not(:last-child)>.input-group-text,.input-group>.input-group-prepend>.btn,.input-group>.input-group-prepend>.input-group-text{border-top-right-radius:0;border-bottom-right-radius:0}.input-group>.input-group-append>.btn,.input-group>.input-group-append>.input-group-text,.input-group>.input-group-prepend:first-child>.btn:not(:first-child),.input-group>.input-group-prepend:first-child>.input-group-text:not(:first-child),.input-group>.input-group-prepend:not(:first-child)>.btn,.input-group>.input-group-prepend:not(:first-child)>.input-group-text{border-top-left-radius:0;border-bottom-left-radius:0}.custom-control{position:relative;display:block;min-height:1.5rem;padding-left:1.5rem}.custom-control-inline{display:-ms-inline-flexbox;display:inline-flex;margin-right:1rem}.custom-control-input{position:absolute;z-index:-1;opacity:0}.custom-control-input:checked~.custom-control-label::before{color:#fff;border-color:#007bff;background-color:#007bff}.custom-control-input:focus~.custom-control-label::before{box-shadow:0 0 0 .2rem rgba(0,123,255,.25)}.custom-control-input:focus:not(:checked)~.custom-control-label::before{border-color:#80bdff}.custom-control-input:not(:disabled):active~.custom-control-label::before{color:#fff;background-color:#b3d7ff;border-color:#b3d7ff}.custom-control-input:disabled~.custom-control-label{color:#6c757d}.custom-control-input:disabled~.custom-control-label::before{background-color:#e9ecef}.custom-control-label{position:relative;margin-bottom:0;vertical-align:top}.custom-control-label::before{position:absolute;top:.25rem;left:-1.5rem;display:block;width:1rem;height:1rem;pointer-events:none;content:"";background-color:#fff;border:#adb5bd solid 1px}.custom-control-label::after{position:absolute;top:.25rem;left:-1.5rem;display:block;width:1rem;height:1rem;content:"";background:no-repeat 50%/50% 50%}.custom-checkbox .custom-control-label::before{border-radius:.25rem}.custom-checkbox .custom-control-input:checked~.custom-control-label::after{background-image:url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 8 8'%3e%3cpath fill='%23fff' d='M6.564.75l-3.59 3.612-1.538-1.55L0 4.26 2.974 7.25 8 2.193z'/%3e%3c/svg%3e")}.custom-checkbox .custom-control-input:indeterminate~.custom-control-label::before{border-color:#007bff;background-color:#007bff}.custom-checkbox .custom-control-input:indeterminate~.custom-control-label::after{background-image:url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 4 4'%3e%3cpath stroke='%23fff' d='M0 2h4'/%3e%3c/svg%3e")}.custom-checkbox .custom-control-input:disabled:checked~.custom-control-label::before{background-color:rgba(0,123,255,.5)}.custom-checkbox .custom-control-input:disabled:indeterminate~.custom-control-label::before{background-color:rgba(0,123,255,.5)}.custom-radio .custom-control-label::before{border-radius:50%}.custom-radio .custom-control-input:checked~.custom-control-label::after{background-image:url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='-4 -4 8 8'%3e%3ccircle r='3' fill='%23fff'/%3e%3c/svg%3e")}.custom-radio .custom-control-input:disabled:checked~.custom-control-label::before{background-color:rgba(0,123,255,.5)}.custom-switch{padding-left:2.25rem}.custom-switch .custom-control-label::before{left:-2.25rem;width:1.75rem;pointer-events:all;border-radius:.5rem}.custom-switch .custom-control-label::after{top:calc(.25rem + 2px);left:calc(-2.25rem + 2px);width:calc(1rem - 4px);height:calc(1rem - 4px);background-color:#adb5bd;border-radius:.5rem;transition:background-color .15s ease-in-out,border-color .15s ease-in-out,box-shadow .15s ease-in-out,-webkit-transform .15s ease-in-out;transition:transform .15s ease-in-out,background-color .15s ease-in-out,border-color .15s ease-in-out,box-shadow .15s ease-in-out;transition:transform .15s ease-in-out,background-color .15s ease-in-out,border-color .15s ease-in-out,box-shadow .15s ease-in-out,-webkit-transform .15s ease-in-out}@media (prefers-reduced-motion:reduce){.custom-switch .custom-control-label::after{transition:none}}.custom-switch .custom-control-input:checked~.custom-control-label::after{background-color:#fff;-webkit-transform:translateX(.75rem);transform:translateX(.75rem)}.custom-switch .custom-control-input:disabled:checked~.custom-control-label::before{background-color:rgba(0,123,255,.5)}.custom-select{display:inline-block;width:100%;height:calc(1.5em + .75rem + 2px);padding:.375rem 1.75rem .375rem .75rem;font-size:1rem;font-weight:400;line-height:1.5;color:#495057;vertical-align:middle;background:url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 4 5'%3e%3cpath fill='%23343a40' d='M2 0L0 2h4zm0 5L0 3h4z'/%3e%3c/svg%3e") no-repeat right .75rem center/8px 10px;background-color:#fff;border:1px solid #ced4da;border-radius:.25rem;-webkit-appearance:none;-moz-appearance:none;appearance:none}.custom-select:focus{border-color:#80bdff;outline:0;box-shadow:0 0 0 .2rem rgba(0,123,255,.25)}.custom-select:focus::-ms-value{color:#495057;background-color:#fff}.custom-select[multiple],.custom-select[size]:not([size="1"]){height:auto;padding-right:.75rem;background-image:none}.custom-select:disabled{color:#6c757d;background-color:#e9ecef}.custom-select::-ms-expand{display:none}.custom-select-sm{height:calc(1.5em + .5rem + 2px);padding-top:.25rem;padding-bottom:.25rem;padding-left:.5rem;font-size:.875rem}.custom-select-lg{height:calc(1.5em + 1rem + 2px);padding-top:.5rem;padding-bottom:.5rem;padding-left:1rem;font-size:1.25rem}.custom-file{position:relative;display:inline-block;width:100%;height:calc(1.5em + .75rem + 2px);margin-bottom:0}.custom-file-input{position:relative;z-index:2;width:100%;height:calc(1.5em + .75rem + 2px);margin:0;opacity:0}.custom-file-input:focus~.custom-file-label{border-color:#80bdff;box-shadow:0 0 0 .2rem rgba(0,123,255,.25)}.custom-file-input:disabled~.custom-file-label{background-color:#e9ecef}.custom-file-input:lang(en)~.custom-file-label::after{content:"Browse"}.custom-file-input~.custom-file-label[data-browse]::after{content:attr(data-browse)}.custom-file-label{position:absolute;top:0;right:0;left:0;z-index:1;height:calc(1.5em + .75rem + 2px);padding:.375rem .75rem;font-weight:400;line-height:1.5;color:#495057;background-color:#fff;border:1px solid #ced4da;border-radius:.25rem}.custom-file-label::after{position:absolute;top:0;right:0;bottom:0;z-index:3;display:block;height:calc(1.5em + .75rem);padding:.375rem .75rem;line-height:1.5;color:#495057;content:"Browse";background-color:#e9ecef;border-left:inherit;border-radius:0 .25rem .25rem 0}.custom-range{width:100%;height:calc(1rem + .4rem);padding:0;background-color:transparent;-webkit-appearance:none;-moz-appearance:none;appearance:none}.custom-range:focus{outline:0}.custom-range:focus::-webkit-slider-thumb{box-shadow:0 0 0 1px #fff,0 0 0 .2rem rgba(0,123,255,.25)}.custom-range:focus::-moz-range-thumb{box-shadow:0 0 0 1px #fff,0 0 0 .2rem rgba(0,123,255,.25)}.custom-range:focus::-ms-thumb{box-shadow:0 0 0 1px #fff,0 0 0 .2rem rgba(0,123,255,.25)}.custom-range::-moz-focus-outer{border:0}.custom-range::-webkit-slider-thumb{width:1rem;height:1rem;margin-top:-.25rem;background-color:#007bff;border:0;border-radius:1rem;transition:background-color .15s ease-in-out,border-color .15s ease-in-out,box-shadow .15s ease-in-out;-webkit-appearance:none;appearance:none}@media (prefers-reduced-motion:reduce){.custom-range::-webkit-slider-thumb{transition:none}}.custom-range::-webkit-slider-thumb:active{background-color:#b3d7ff}.custom-range::-webkit-slider-runnable-track{width:100%;height:.5rem;color:transparent;cursor:pointer;background-color:#dee2e6;border-color:transparent;border-radius:1rem}.custom-range::-moz-range-thumb{width:1rem;height:1rem;background-color:#007bff;border:0;border-radius:1rem;transition:background-color .15s ease-in-out,border-color .15s ease-in-out,box-shadow .15s ease-in-out;-moz-appearance:none;appearance:none}@media (prefers-reduced-motion:reduce){.custom-range::-moz-range-thumb{transition:none}}.custom-range::-moz-range-thumb:active{background-color:#b3d7ff}.custom-range::-moz-range-track{width:100%;height:.5rem;color:transparent;cursor:pointer;background-color:#dee2e6;border-color:transparent;border-radius:1rem}.custom-range::-ms-thumb{width:1rem;height:1rem;margin-top:0;margin-right:.2rem;margin-left:.2rem;background-color:#007bff;border:0;border-radius:1rem;transition:background-color .15s ease-in-out,border-color .15s ease-in-out,box-shadow .15s ease-in-out;appearance:none}@media (prefers-reduced-motion:reduce){.custom-range::-ms-thumb{transition:none}}.custom-range::-ms-thumb:active{background-color:#b3d7ff}.custom-range::-ms-track{width:100%;height:.5rem;color:transparent;cursor:pointer;background-color:transparent;border-color:transparent;border-width:.5rem}.custom-range::-ms-fill-lower{background-color:#dee2e6;border-radius:1rem}.custom-range::-ms-fill-upper{margin-right:15px;background-color:#dee2e6;border-radius:1rem}.custom-range:disabled::-webkit-slider-thumb{background-color:#adb5bd}.custom-range:disabled::-webkit-slider-runnable-track{cursor:default}.custom-range:disabled::-moz-range-thumb{background-color:#adb5bd}.custom-range:disabled::-moz-range-track{cursor:default}.custom-range:disabled::-ms-thumb{background-color:#adb5bd}.custom-control-label::before,.custom-file-label,.custom-select{transition:background-color .15s ease-in-out,border-color .15s ease-in-out,box-shadow .15s ease-in-out}@media (prefers-reduced-motion:reduce){.custom-control-label::before,.custom-file-label,.custom-select{transition:none}}.nav{display:-ms-flexbox;display:flex;-ms-flex-wrap:wrap;flex-wrap:wrap;padding-left:0;margin-bottom:0;list-style:none}.nav-link{display:block;padding:.5rem 1rem}.nav-link:focus,.nav-link:hover{text-decoration:none}.nav-link.disabled{color:#6c757d;pointer-events:none;cursor:default}.nav-tabs{border-bottom:1px solid #dee2e6}.nav-tabs .nav-item{margin-bottom:-1px}.nav-tabs .nav-link{border:1px solid transparent;border-top-left-radius:.25rem;border-top-right-radius:.25rem}.nav-tabs .nav-link:focus,.nav-tabs .nav-link:hover{border-color:#e9ecef #e9ecef #dee2e6}.nav-tabs .nav-link.disabled{color:#6c757d;background-color:transparent;border-color:transparent}.nav-tabs .nav-item.show .nav-link,.nav-tabs .nav-link.active{color:#495057;background-color:#fff;border-color:#dee2e6 #dee2e6 #fff}.nav-tabs .dropdown-menu{margin-top:-1px;border-top-left-radius:0;border-top-right-radius:0}.nav-pills .nav-link{border-radius:.25rem}.nav-pills .nav-link.active,.nav-pills .show>.nav-link{color:#fff;background-color:#007bff}.nav-fill .nav-item{-ms-flex:1 1 auto;flex:1 1 auto;text-align:center}.nav-justified .nav-item{-ms-flex-preferred-size:0;flex-basis:0;-ms-flex-positive:1;flex-grow:1;text-align:center}.tab-content>.tab-pane{display:none}.tab-content>.active{display:block}.navbar{position:relative;display:-ms-flexbox;display:flex;-ms-flex-wrap:wrap;flex-wrap:wrap;-ms-flex-align:center;align-items:center;-ms-flex-pack:justify;justify-content:space-between;padding:.5rem 1rem}.navbar>.container,.navbar>.container-fluid{display:-ms-flexbox;display:flex;-ms-flex-wrap:wrap;flex-wrap:wrap;-ms-flex-align:center;align-items:center;-ms-flex-pack:justify;justify-content:space-between}.navbar-brand{display:inline-block;padding-top:.3125rem;padding-bottom:.3125rem;margin-right:1rem;font-size:1.25rem;line-height:inherit;white-space:nowrap}.navbar-brand:focus,.navbar-brand:hover{text-decoration:none}.navbar-nav{display:-ms-flexbox;display:flex;-ms-flex-direction:column;flex-direction:column;padding-left:0;margin-bottom:0;list-style:none}.navbar-nav .nav-link{padding-right:0;padding-left:0}.navbar-nav .dropdown-menu{position:static;float:none}.navbar-text{display:inline-block;padding-top:.5rem;padding-bottom:.5rem}.navbar-collapse{-ms-flex-preferred-size:100%;flex-basis:100%;-ms-flex-positive:1;flex-grow:1;-ms-flex-align:center;align-items:center}.navbar-toggler{padding:.25rem .75rem;font-size:1.25rem;line-height:1;background-color:transparent;border:1px solid transparent;border-radius:.25rem}.navbar-toggler:focus,.navbar-toggler:hover{text-decoration:none}.navbar-toggler-icon{display:inline-block;width:1.5em;height:1.5em;vertical-align:middle;content:"";background:no-repeat center center;background-size:100% 100%}@media (max-width:575.98px){.navbar-expand-sm>.container,.navbar-expand-sm>.container-fluid{padding-right:0;padding-left:0}}@media (min-width:576px){.navbar-expand-sm{-ms-flex-flow:row nowrap;flex-flow:row nowrap;-ms-flex-pack:start;justify-content:flex-start}.navbar-expand-sm .navbar-nav{-ms-flex-direction:row;flex-direction:row}.navbar-expand-sm .navbar-nav .dropdown-menu{position:absolute}.navbar-expand-sm .navbar-nav .nav-link{padding-right:.5rem;padding-left:.5rem}.navbar-expand-sm>.container,.navbar-expand-sm>.container-fluid{-ms-flex-wrap:nowrap;flex-wrap:nowrap}.navbar-expand-sm .navbar-collapse{display:-ms-flexbox!important;display:flex!important;-ms-flex-preferred-size:auto;flex-basis:auto}.navbar-expand-sm .navbar-toggler{display:none}}@media (max-width:767.98px){.navbar-expand-md>.container,.navbar-expand-md>.container-fluid{padding-right:0;padding-left:0}}@media (min-width:768px){.navbar-expand-md{-ms-flex-flow:row nowrap;flex-flow:row nowrap;-ms-flex-pack:start;justify-content:flex-start}.navbar-expand-md .navbar-nav{-ms-flex-direction:row;flex-direction:row}.navbar-expand-md .navbar-nav .dropdown-menu{position:absolute}.navbar-expand-md .navbar-nav .nav-link{padding-right:.5rem;padding-left:.5rem}.navbar-expand-md>.container,.navbar-expand-md>.container-fluid{-ms-flex-wrap:nowrap;flex-wrap:nowrap}.navbar-expand-md .navbar-collapse{display:-ms-flexbox!important;display:flex!important;-ms-flex-preferred-size:auto;flex-basis:auto}.navbar-expand-md .navbar-toggler{display:none}}@media (max-width:991.98px){.navbar-expand-lg>.container,.navbar-expand-lg>.container-fluid{padding-right:0;padding-left:0}}@media (min-width:992px){.navbar-expand-lg{-ms-flex-flow:row nowrap;flex-flow:row nowrap;-ms-flex-pack:start;justify-content:flex-start}.navbar-expand-lg .navbar-nav{-ms-flex-direction:row;flex-direction:row}.navbar-expand-lg .navbar-nav .dropdown-menu{position:absolute}.navbar-expand-lg .navbar-nav .nav-link{padding-right:.5rem;padding-left:.5rem}.navbar-expand-lg>.container,.navbar-expand-lg>.container-fluid{-ms-flex-wrap:nowrap;flex-wrap:nowrap}.navbar-expand-lg .navbar-collapse{display:-ms-flexbox!important;display:flex!important;-ms-flex-preferred-size:auto;flex-basis:auto}.navbar-expand-lg .navbar-toggler{display:none}}@media (max-width:1199.98px){.navbar-expand-xl>.container,.navbar-expand-xl>.container-fluid{padding-right:0;padding-left:0}}@media (min-width:1200px){.navbar-expand-xl{-ms-flex-flow:row nowrap;flex-flow:row nowrap;-ms-flex-pack:start;justify-content:flex-start}.navbar-expand-xl .navbar-nav{-ms-flex-direction:row;flex-direction:row}.navbar-expand-xl .navbar-nav .dropdown-menu{position:absolute}.navbar-expand-xl .navbar-nav .nav-link{padding-right:.5rem;padding-left:.5rem}.navbar-expand-xl>.container,.navbar-expand-xl>.container-fluid{-ms-flex-wrap:nowrap;flex-wrap:nowrap}.navbar-expand-xl .navbar-collapse{display:-ms-flexbox!important;display:flex!important;-ms-flex-preferred-size:auto;flex-basis:auto}.navbar-expand-xl .navbar-toggler{display:none}}.navbar-expand{-ms-flex-flow:row nowrap;flex-flow:row nowrap;-ms-flex-pack:start;justify-content:flex-start}.navbar-expand>.container,.navbar-expand>.container-fluid{padding-right:0;padding-left:0}.navbar-expand .navbar-nav{-ms-flex-direction:row;flex-direction:row}.navbar-expand .navbar-nav .dropdown-menu{position:absolute}.navbar-expand .navbar-nav .nav-link{padding-right:.5rem;padding-left:.5rem}.navbar-expand>.container,.navbar-expand>.container-fluid{-ms-flex-wrap:nowrap;flex-wrap:nowrap}.navbar-expand .navbar-collapse{display:-ms-flexbox!important;display:flex!important;-ms-flex-preferred-size:auto;flex-basis:auto}.navbar-expand .navbar-toggler{display:none}.navbar-light .navbar-brand{color:rgba(0,0,0,.9)}.navbar-light .navbar-brand:focus,.navbar-light .navbar-brand:hover{color:rgba(0,0,0,.9)}.navbar-light .navbar-nav .nav-link{color:rgba(0,0,0,.5)}.navbar-light .navbar-nav .nav-link:focus,.navbar-light .navbar-nav .nav-link:hover{color:rgba(0,0,0,.7)}.navbar-light .navbar-nav .nav-link.disabled{color:rgba(0,0,0,.3)}.navbar-light .navbar-nav .active>.nav-link,.navbar-light .navbar-nav .nav-link.active,.navbar-light .navbar-nav .nav-link.show,.navbar-light .navbar-nav .show>.nav-link{color:rgba(0,0,0,.9)}.navbar-light .navbar-toggler{color:rgba(0,0,0,.5);border-color:rgba(0,0,0,.1)}.navbar-light .navbar-toggler-icon{background-image:url("data:image/svg+xml,%3csvg viewBox='0 0 30 30' xmlns='http://www.w3.org/2000/svg'%3e%3cpath stroke='rgba(0, 0, 0, 0.5)' stroke-width='2' stroke-linecap='round' stroke-miterlimit='10' d='M4 7h22M4 15h22M4 23h22'/%3e%3c/svg%3e")}.navbar-light .navbar-text{color:rgba(0,0,0,.5)}.navbar-light .navbar-text a{color:rgba(0,0,0,.9)}.navbar-light .navbar-text a:focus,.navbar-light .navbar-text a:hover{color:rgba(0,0,0,.9)}.navbar-dark .navbar-brand{color:#fff}.navbar-dark .navbar-brand:focus,.navbar-dark .navbar-brand:hover{color:#fff}.navbar-dark .navbar-nav .nav-link{color:rgba(255,255,255,.5)}.navbar-dark .navbar-nav .nav-link:focus,.navbar-dark .navbar-nav .nav-link:hover{color:rgba(255,255,255,.75)}.navbar-dark .navbar-nav .nav-link.disabled{color:rgba(255,255,255,.25)}.navbar-dark .navbar-nav .active>.nav-link,.navbar-dark .navbar-nav .nav-link.active,.navbar-dark .navbar-nav .nav-link.show,.navbar-dark .navbar-nav .show>.nav-link{color:#fff}.navbar-dark .navbar-toggler{color:rgba(255,255,255,.5);border-color:rgba(255,255,255,.1)}.navbar-dark .navbar-toggler-icon{background-image:url("data:image/svg+xml,%3csvg viewBox='0 0 30 30' xmlns='http://www.w3.org/2000/svg'%3e%3cpath stroke='rgba(255, 255, 255, 0.5)' stroke-width='2' stroke-linecap='round' stroke-miterlimit='10' d='M4 7h22M4 15h22M4 23h22'/%3e%3c/svg%3e")}.navbar-dark .navbar-text{color:rgba(255,255,255,.5)}.navbar-dark .navbar-text a{color:#fff}.navbar-dark .navbar-text a:focus,.navbar-dark .navbar-text a:hover{color:#fff}.card{position:relative;display:-ms-flexbox;display:flex;-ms-flex-direction:column;flex-direction:column;min-width:0;word-wrap:break-word;background-color:#fff;background-clip:border-box;border:1px solid rgba(0,0,0,.125);border-radius:.25rem}.card>hr{margin-right:0;margin-left:0}.card>.list-group:first-child .list-group-item:first-child{border-top-left-radius:.25rem;border-top-right-radius:.25rem}.card>.list-group:last-child .list-group-item:last-child{border-bottom-right-radius:.25rem;border-bottom-left-radius:.25rem}.card-body{-ms-flex:1 1 auto;flex:1 1 auto;padding:1.25rem}.card-title{margin-bottom:.75rem}.card-subtitle{margin-top:-.375rem;margin-bottom:0}.card-text:last-child{margin-bottom:0}.card-link:hover{text-decoration:none}.card-link+.card-link{margin-left:1.25rem}.card-header{padding:.75rem 1.25rem;margin-bottom:0;background-color:rgba(0,0,0,.03);border-bottom:1px solid rgba(0,0,0,.125)}.card-header:first-child{border-radius:calc(.25rem - 1px) calc(.25rem - 1px) 0 0}.card-header+.list-group .list-group-item:first-child{border-top:0}.card-footer{padding:.75rem 1.25rem;background-color:rgba(0,0,0,.03);border-top:1px solid rgba(0,0,0,.125)}.card-footer:last-child{border-radius:0 0 calc(.25rem - 1px) calc(.25rem - 1px)}.card-header-tabs{margin-right:-.625rem;margin-bottom:-.75rem;margin-left:-.625rem;border-bottom:0}.card-header-pills{margin-right:-.625rem;margin-left:-.625rem}.card-img-overlay{position:absolute;top:0;right:0;bottom:0;left:0;padding:1.25rem}.card-img{width:100%;border-radius:calc(.25rem - 1px)}.card-img-top{width:100%;border-top-left-radius:calc(.25rem - 1px);border-top-right-radius:calc(.25rem - 1px)}.card-img-bottom{width:100%;border-bottom-right-radius:calc(.25rem - 1px);border-bottom-left-radius:calc(.25rem - 1px)}.card-deck{display:-ms-flexbox;display:flex;-ms-flex-direction:column;flex-direction:column}.card-deck .card{margin-bottom:15px}@media (min-width:576px){.card-deck{-ms-flex-flow:row wrap;flex-flow:row wrap;margin-right:-15px;margin-left:-15px}.card-deck .card{display:-ms-flexbox;display:flex;-ms-flex:1 0 0%;flex:1 0 0%;-ms-flex-direction:column;flex-direction:column;margin-right:15px;margin-bottom:0;margin-left:15px}}.card-group{display:-ms-flexbox;display:flex;-ms-flex-direction:column;flex-direction:column}.card-group>.card{margin-bottom:15px}@media (min-width:576px){.card-group{-ms-flex-flow:row wrap;flex-flow:row wrap}.card-group>.card{-ms-flex:1 0 0%;flex:1 0 0%;margin-bottom:0}.card-group>.card+.card{margin-left:0;border-left:0}.card-group>.card:not(:last-child){border-top-right-radius:0;border-bottom-right-radius:0}.card-group>.card:not(:last-child) .card-header,.card-group>.card:not(:last-child) .card-img-top{border-top-right-radius:0}.card-group>.card:not(:last-child) .card-footer,.card-group>.card:not(:last-child) .card-img-bottom{border-bottom-right-radius:0}.card-group>.card:not(:first-child){border-top-left-radius:0;border-bottom-left-radius:0}.card-group>.card:not(:first-child) .card-header,.card-group>.card:not(:first-child) .card-img-top{border-top-left-radius:0}.card-group>.card:not(:first-child) .card-footer,.card-group>.card:not(:first-child) .card-img-bottom{border-bottom-left-radius:0}}.card-columns .card{margin-bottom:.75rem}@media (min-width:576px){.card-columns{-webkit-column-count:3;-moz-column-count:3;column-count:3;-webkit-column-gap:1.25rem;-moz-column-gap:1.25rem;column-gap:1.25rem;orphans:1;widows:1}.card-columns .card{display:inline-block;width:100%}}.accordion>.card{overflow:hidden}.accordion>.card:not(:first-of-type) .card-header:first-child{border-radius:0}.accordion>.card:not(:first-of-type):not(:last-of-type){border-bottom:0;border-radius:0}.accordion>.card:first-of-type{border-bottom:0;border-bottom-right-radius:0;border-bottom-left-radius:0}.accordion>.card:last-of-type{border-top-left-radius:0;border-top-right-radius:0}.accordion>.card .card-header{margin-bottom:-1px}.breadcrumb{display:-ms-flexbox;display:flex;-ms-flex-wrap:wrap;flex-wrap:wrap;padding:.75rem 1rem;margin-bottom:1rem;list-style:none;background-color:#e9ecef;border-radius:.25rem}.breadcrumb-item+.breadcrumb-item{padding-left:.5rem}.breadcrumb-item+.breadcrumb-item::before{display:inline-block;padding-right:.5rem;color:#6c757d;content:"/"}.breadcrumb-item+.breadcrumb-item:hover::before{text-decoration:underline}.breadcrumb-item+.breadcrumb-item:hover::before{text-decoration:none}.breadcrumb-item.active{color:#6c757d}.pagination{display:-ms-flexbox;display:flex;padding-left:0;list-style:none;border-radius:.25rem}.page-link{position:relative;display:block;padding:.5rem .75rem;margin-left:-1px;line-height:1.25;color:#007bff;background-color:#fff;border:1px solid #dee2e6}.page-link:hover{z-index:2;color:#0056b3;text-decoration:none;background-color:#e9ecef;border-color:#dee2e6}.page-link:focus{z-index:2;outline:0;box-shadow:0 0 0 .2rem rgba(0,123,255,.25)}.page-item:first-child .page-link{margin-left:0;border-top-left-radius:.25rem;border-bottom-left-radius:.25rem}.page-item:last-child .page-link{border-top-right-radius:.25rem;border-bottom-right-radius:.25rem}.page-item.active .page-link{z-index:1;color:#fff;background-color:#007bff;border-color:#007bff}.page-item.disabled .page-link{color:#6c757d;pointer-events:none;cursor:auto;background-color:#fff;border-color:#dee2e6}.pagination-lg .page-link{padding:.75rem 1.5rem;font-size:1.25rem;line-height:1.5}.pagination-lg .page-item:first-child .page-link{border-top-left-radius:.3rem;border-bottom-left-radius:.3rem}.pagination-lg .page-item:last-child .page-link{border-top-right-radius:.3rem;border-bottom-right-radius:.3rem}.pagination-sm .page-link{padding:.25rem .5rem;font-size:.875rem;line-height:1.5}.pagination-sm .page-item:first-child .page-link{border-top-left-radius:.2rem;border-bottom-left-radius:.2rem}.pagination-sm .page-item:last-child .page-link{border-top-right-radius:.2rem;border-bottom-right-radius:.2rem}.badge{display:inline-block;padding:.25em .4em;font-size:75%;font-weight:700;line-height:1;text-align:center;white-space:nowrap;vertical-align:baseline;border-radius:.25rem;transition:color .15s ease-in-out,background-color .15s ease-in-out,border-color .15s ease-in-out,box-shadow .15s ease-in-out}@media (prefers-reduced-motion:reduce){.badge{transition:none}}a.badge:focus,a.badge:hover{text-decoration:none}.badge:empty{display:none}.btn .badge{position:relative;top:-1px}.badge-pill{padding-right:.6em;padding-left:.6em;border-radius:10rem}.badge-primary{color:#fff;background-color:#007bff}a.badge-primary:focus,a.badge-primary:hover{color:#fff;background-color:#0062cc}a.badge-primary.focus,a.badge-primary:focus{outline:0;box-shadow:0 0 0 .2rem rgba(0,123,255,.5)}.badge-secondary{color:#fff;background-color:#6c757d}a.badge-secondary:focus,a.badge-secondary:hover{color:#fff;background-color:#545b62}a.badge-secondary.focus,a.badge-secondary:focus{outline:0;box-shadow:0 0 0 .2rem rgba(108,117,125,.5)}.badge-success{color:#fff;background-color:#28a745}a.badge-success:focus,a.badge-success:hover{color:#fff;background-color:#1e7e34}a.badge-success.focus,a.badge-success:focus{outline:0;box-shadow:0 0 0 .2rem rgba(40,167,69,.5)}.badge-info{color:#fff;background-color:#17a2b8}a.badge-info:focus,a.badge-info:hover{color:#fff;background-color:#117a8b}a.badge-info.focus,a.badge-info:focus{outline:0;box-shadow:0 0 0 .2rem rgba(23,162,184,.5)}.badge-warning{color:#212529;background-color:#ffc107}a.badge-warning:focus,a.badge-warning:hover{color:#212529;background-color:#d39e00}a.badge-warning.focus,a.badge-warning:focus{outline:0;box-shadow:0 0 0 .2rem rgba(255,193,7,.5)}.badge-danger{color:#fff;background-color:#dc3545}a.badge-danger:focus,a.badge-danger:hover{color:#fff;background-color:#bd2130}a.badge-danger.focus,a.badge-danger:focus{outline:0;box-shadow:0 0 0 .2rem rgba(220,53,69,.5)}.badge-light{color:#212529;background-color:#f8f9fa}a.badge-light:focus,a.badge-light:hover{color:#212529;background-color:#dae0e5}a.badge-light.focus,a.badge-light:focus{outline:0;box-shadow:0 0 0 .2rem rgba(248,249,250,.5)}.badge-dark{color:#fff;background-color:#343a40}a.badge-dark:focus,a.badge-dark:hover{color:#fff;background-color:#1d2124}a.badge-dark.focus,a.badge-dark:focus{outline:0;box-shadow:0 0 0 .2rem rgba(52,58,64,.5)}.jumbotron{padding:2rem 1rem;margin-bottom:2rem;background-color:#e9ecef;border-radius:.3rem}@media (min-width:576px){.jumbotron{padding:4rem 2rem}}.jumbotron-fluid{padding-right:0;padding-left:0;border-radius:0}.alert{position:relative;padding:.75rem 1.25rem;margin-bottom:1rem;border:1px solid transparent;border-radius:.25rem}.alert-heading{color:inherit}.alert-link{font-weight:700}.alert-dismissible{padding-right:4rem}.alert-dismissible .close{position:absolute;top:0;right:0;padding:.75rem 1.25rem;color:inherit}.alert-primary{color:#004085;background-color:#cce5ff;border-color:#b8daff}.alert-primary hr{border-top-color:#9fcdff}.alert-primary .alert-link{color:#002752}.alert-secondary{color:#383d41;background-color:#e2e3e5;border-color:#d6d8db}.alert-secondary hr{border-top-color:#c8cbcf}.alert-secondary .alert-link{color:#202326}.alert-success{color:#155724;background-color:#d4edda;border-color:#c3e6cb}.alert-success hr{border-top-color:#b1dfbb}.alert-success .alert-link{color:#0b2e13}.alert-info{color:#0c5460;background-color:#d1ecf1;border-color:#bee5eb}.alert-info hr{border-top-color:#abdde5}.alert-info .alert-link{color:#062c33}.alert-warning{color:#856404;background-color:#fff3cd;border-color:#ffeeba}.alert-warning hr{border-top-color:#ffe8a1}.alert-warning .alert-link{color:#533f03}.alert-danger{color:#721c24;background-color:#f8d7da;border-color:#f5c6cb}.alert-danger hr{border-top-color:#f1b0b7}.alert-danger .alert-link{color:#491217}.alert-light{color:#818182;background-color:#fefefe;border-color:#fdfdfe}.alert-light hr{border-top-color:#ececf6}.alert-light .alert-link{color:#686868}.alert-dark{color:#1b1e21;background-color:#d6d8d9;border-color:#c6c8ca}.alert-dark hr{border-top-color:#b9bbbe}.alert-dark .alert-link{color:#040505}@-webkit-keyframes progress-bar-stripes{from{background-position:1rem 0}to{background-position:0 0}}@keyframes progress-bar-stripes{from{background-position:1rem 0}to{background-position:0 0}}.progress{display:-ms-flexbox;display:flex;height:1rem;overflow:hidden;font-size:.75rem;background-color:#e9ecef;border-radius:.25rem}.progress-bar{display:-ms-flexbox;display:flex;-ms-flex-direction:column;flex-direction:column;-ms-flex-pack:center;justify-content:center;color:#fff;text-align:center;white-space:nowrap;background-color:#007bff;transition:width .6s ease}@media (prefers-reduced-motion:reduce){.progress-bar{transition:none}}.progress-bar-striped{background-image:linear-gradient(45deg,rgba(255,255,255,.15) 25%,transparent 25%,transparent 50%,rgba(255,255,255,.15) 50%,rgba(255,255,255,.15) 75%,transparent 75%,transparent);background-size:1rem 1rem}.progress-bar-animated{-webkit-animation:progress-bar-stripes 1s linear infinite;animation:progress-bar-stripes 1s linear infinite}@media (prefers-reduced-motion:reduce){.progress-bar-animated{-webkit-animation:none;animation:none}}.media{display:-ms-flexbox;display:flex;-ms-flex-align:start;align-items:flex-start}.media-body{-ms-flex:1;flex:1}.list-group{display:-ms-flexbox;display:flex;-ms-flex-direction:column;flex-direction:column;padding-left:0;margin-bottom:0}.list-group-item-action{width:100%;color:#495057;text-align:inherit}.list-group-item-action:focus,.list-group-item-action:hover{z-index:1;color:#495057;text-decoration:none;background-color:#f8f9fa}.list-group-item-action:active{color:#212529;background-color:#e9ecef}.list-group-item{position:relative;display:block;padding:.75rem 1.25rem;margin-bottom:-1px;background-color:#fff;border:1px solid rgba(0,0,0,.125)}.list-group-item:first-child{border-top-left-radius:.25rem;border-top-right-radius:.25rem}.list-group-item:last-child{margin-bottom:0;border-bottom-right-radius:.25rem;border-bottom-left-radius:.25rem}.list-group-item.disabled,.list-group-item:disabled{color:#6c757d;pointer-events:none;background-color:#fff}.list-group-item.active{z-index:2;color:#fff;background-color:#007bff;border-color:#007bff}.list-group-horizontal{-ms-flex-direction:row;flex-direction:row}.list-group-horizontal .list-group-item{margin-right:-1px;margin-bottom:0}.list-group-horizontal .list-group-item:first-child{border-top-left-radius:.25rem;border-bottom-left-radius:.25rem;border-top-right-radius:0}.list-group-horizontal .list-group-item:last-child{margin-right:0;border-top-right-radius:.25rem;border-bottom-right-radius:.25rem;border-bottom-left-radius:0}@media (min-width:576px){.list-group-horizontal-sm{-ms-flex-direction:row;flex-direction:row}.list-group-horizontal-sm .list-group-item{margin-right:-1px;margin-bottom:0}.list-group-horizontal-sm .list-group-item:first-child{border-top-left-radius:.25rem;border-bottom-left-radius:.25rem;border-top-right-radius:0}.list-group-horizontal-sm .list-group-item:last-child{margin-right:0;border-top-right-radius:.25rem;border-bottom-right-radius:.25rem;border-bottom-left-radius:0}}@media (min-width:768px){.list-group-horizontal-md{-ms-flex-direction:row;flex-direction:row}.list-group-horizontal-md .list-group-item{margin-right:-1px;margin-bottom:0}.list-group-horizontal-md .list-group-item:first-child{border-top-left-radius:.25rem;border-bottom-left-radius:.25rem;border-top-right-radius:0}.list-group-horizontal-md .list-group-item:last-child{margin-right:0;border-top-right-radius:.25rem;border-bottom-right-radius:.25rem;border-bottom-left-radius:0}}@media (min-width:992px){.list-group-horizontal-lg{-ms-flex-direction:row;flex-direction:row}.list-group-horizontal-lg .list-group-item{margin-right:-1px;margin-bottom:0}.list-group-horizontal-lg .list-group-item:first-child{border-top-left-radius:.25rem;border-bottom-left-radius:.25rem;border-top-right-radius:0}.list-group-horizontal-lg .list-group-item:last-child{margin-right:0;border-top-right-radius:.25rem;border-bottom-right-radius:.25rem;border-bottom-left-radius:0}}@media (min-width:1200px){.list-group-horizontal-xl{-ms-flex-direction:row;flex-direction:row}.list-group-horizontal-xl .list-group-item{margin-right:-1px;margin-bottom:0}.list-group-horizontal-xl .list-group-item:first-child{border-top-left-radius:.25rem;border-bottom-left-radius:.25rem;border-top-right-radius:0}.list-group-horizontal-xl .list-group-item:last-child{margin-right:0;border-top-right-radius:.25rem;border-bottom-right-radius:.25rem;border-bottom-left-radius:0}}.list-group-flush .list-group-item{border-right:0;border-left:0;border-radius:0}.list-group-flush .list-group-item:last-child{margin-bottom:-1px}.list-group-flush:first-child .list-group-item:first-child{border-top:0}.list-group-flush:last-child .list-group-item:last-child{margin-bottom:0;border-bottom:0}.list-group-item-primary{color:#004085;background-color:#b8daff}.list-group-item-primary.list-group-item-action:focus,.list-group-item-primary.list-group-item-action:hover{color:#004085;background-color:#9fcdff}.list-group-item-primary.list-group-item-action.active{color:#fff;background-color:#004085;border-color:#004085}.list-group-item-secondary{color:#383d41;background-color:#d6d8db}.list-group-item-secondary.list-group-item-action:focus,.list-group-item-secondary.list-group-item-action:hover{color:#383d41;background-color:#c8cbcf}.list-group-item-secondary.list-group-item-action.active{color:#fff;background-color:#383d41;border-color:#383d41}.list-group-item-success{color:#155724;background-color:#c3e6cb}.list-group-item-success.list-group-item-action:focus,.list-group-item-success.list-group-item-action:hover{color:#155724;background-color:#b1dfbb}.list-group-item-success.list-group-item-action.active{color:#fff;background-color:#155724;border-color:#155724}.list-group-item-info{color:#0c5460;background-color:#bee5eb}.list-group-item-info.list-group-item-action:focus,.list-group-item-info.list-group-item-action:hover{color:#0c5460;background-color:#abdde5}.list-group-item-info.list-group-item-action.active{color:#fff;background-color:#0c5460;border-color:#0c5460}.list-group-item-warning{color:#856404;background-color:#ffeeba}.list-group-item-warning.list-group-item-action:focus,.list-group-item-warning.list-group-item-action:hover{color:#856404;background-color:#ffe8a1}.list-group-item-warning.list-group-item-action.active{color:#fff;background-color:#856404;border-color:#856404}.list-group-item-danger{color:#721c24;background-color:#f5c6cb}.list-group-item-danger.list-group-item-action:focus,.list-group-item-danger.list-group-item-action:hover{color:#721c24;background-color:#f1b0b7}.list-group-item-danger.list-group-item-action.active{color:#fff;background-color:#721c24;border-color:#721c24}.list-group-item-light{color:#818182;background-color:#fdfdfe}.list-group-item-light.list-group-item-action:focus,.list-group-item-light.list-group-item-action:hover{color:#818182;background-color:#ececf6}.list-group-item-light.list-group-item-action.active{color:#fff;background-color:#818182;border-color:#818182}.list-group-item-dark{color:#1b1e21;background-color:#c6c8ca}.list-group-item-dark.list-group-item-action:focus,.list-group-item-dark.list-group-item-action:hover{color:#1b1e21;background-color:#b9bbbe}.list-group-item-dark.list-group-item-action.active{color:#fff;background-color:#1b1e21;border-color:#1b1e21}.close{float:right;font-size:1.5rem;font-weight:700;line-height:1;color:#000;text-shadow:0 1px 0 #fff;opacity:.5}.close:hover{color:#000;text-decoration:none}.close:not(:disabled):not(.disabled):focus,.close:not(:disabled):not(.disabled):hover{opacity:.75}button.close{padding:0;background-color:transparent;border:0;-webkit-appearance:none;-moz-appearance:none;appearance:none}a.close.disabled{pointer-events:none}.toast{max-width:350px;overflow:hidden;font-size:.875rem;background-color:rgba(255,255,255,.85);background-clip:padding-box;border:1px solid rgba(0,0,0,.1);box-shadow:0 .25rem .75rem rgba(0,0,0,.1);-webkit-backdrop-filter:blur(10px);backdrop-filter:blur(10px);opacity:0;border-radius:.25rem}.toast:not(:last-child){margin-bottom:.75rem}.toast.showing{opacity:1}.toast.show{display:block;opacity:1}.toast.hide{display:none}.toast-header{display:-ms-flexbox;display:flex;-ms-flex-align:center;align-items:center;padding:.25rem .75rem;color:#6c757d;background-color:rgba(255,255,255,.85);background-clip:padding-box;border-bottom:1px solid rgba(0,0,0,.05)}.toast-body{padding:.75rem}.modal-open{overflow:hidden}.modal-open .modal{overflow-x:hidden;overflow-y:auto}.modal{position:fixed;top:0;left:0;z-index:1050;display:none;width:100%;height:100%;overflow:hidden;outline:0}.modal-dialog{position:relative;width:auto;margin:.5rem;pointer-events:none}.modal.fade .modal-dialog{transition:-webkit-transform .3s ease-out;transition:transform .3s ease-out;transition:transform .3s ease-out,-webkit-transform .3s ease-out;-webkit-transform:translate(0,-50px);transform:translate(0,-50px)}@media (prefers-reduced-motion:reduce){.modal.fade .modal-dialog{transition:none}}.modal.show .modal-dialog{-webkit-transform:none;transform:none}.modal-dialog-scrollable{display:-ms-flexbox;display:flex;max-height:calc(100% - 1rem)}.modal-dialog-scrollable .modal-content{max-height:calc(100vh - 1rem);overflow:hidden}.modal-dialog-scrollable .modal-footer,.modal-dialog-scrollable .modal-header{-ms-flex-negative:0;flex-shrink:0}.modal-dialog-scrollable .modal-body{overflow-y:auto}.modal-dialog-centered{display:-ms-flexbox;display:flex;-ms-flex-align:center;align-items:center;min-height:calc(100% - 1rem)}.modal-dialog-centered::before{display:block;height:calc(100vh - 1rem);content:""}.modal-dialog-centered.modal-dialog-scrollable{-ms-flex-direction:column;flex-direction:column;-ms-flex-pack:center;justify-content:center;height:100%}.modal-dialog-centered.modal-dialog-scrollable .modal-content{max-height:none}.modal-dialog-centered.modal-dialog-scrollable::before{content:none}.modal-content{position:relative;display:-ms-flexbox;display:flex;-ms-flex-direction:column;flex-direction:column;width:100%;pointer-events:auto;background-color:#fff;background-clip:padding-box;border:1px solid rgba(0,0,0,.2);border-radius:.3rem;outline:0}.modal-backdrop{position:fixed;top:0;left:0;z-index:1040;width:100vw;height:100vh;background-color:#000}.modal-backdrop.fade{opacity:0}.modal-backdrop.show{opacity:.5}.modal-header{display:-ms-flexbox;display:flex;-ms-flex-align:start;align-items:flex-start;-ms-flex-pack:justify;justify-content:space-between;padding:1rem 1rem;border-bottom:1px solid #dee2e6;border-top-left-radius:.3rem;border-top-right-radius:.3rem}.modal-header .close{padding:1rem 1rem;margin:-1rem -1rem -1rem auto}.modal-title{margin-bottom:0;line-height:1.5}.modal-body{position:relative;-ms-flex:1 1 auto;flex:1 1 auto;padding:1rem}.modal-footer{display:-ms-flexbox;display:flex;-ms-flex-align:center;align-items:center;-ms-flex-pack:end;justify-content:flex-end;padding:1rem;border-top:1px solid #dee2e6;border-bottom-right-radius:.3rem;border-bottom-left-radius:.3rem}.modal-footer>:not(:first-child){margin-left:.25rem}.modal-footer>:not(:last-child){margin-right:.25rem}.modal-scrollbar-measure{position:absolute;top:-9999px;width:50px;height:50px;overflow:scroll}@media (min-width:576px){.modal-dialog{max-width:500px;margin:1.75rem auto}.modal-dialog-scrollable{max-height:calc(100% - 3.5rem)}.modal-dialog-scrollable .modal-content{max-height:calc(100vh - 3.5rem)}.modal-dialog-centered{min-height:calc(100% - 3.5rem)}.modal-dialog-centered::before{height:calc(100vh - 3.5rem)}.modal-sm{max-width:300px}}@media (min-width:992px){.modal-lg,.modal-xl{max-width:800px}}@media (min-width:1200px){.modal-xl{max-width:1140px}}.tooltip{position:absolute;z-index:1070;display:block;margin:0;font-family:-apple-system,BlinkMacSystemFont,"Segoe UI",Roboto,"Helvetica Neue",Arial,"Noto Sans",sans-serif,"Apple Color Emoji","Segoe UI Emoji","Segoe UI Symbol","Noto Color Emoji";font-style:normal;font-weight:400;line-height:1.5;text-align:left;text-align:start;text-decoration:none;text-shadow:none;text-transform:none;letter-spacing:normal;word-break:normal;word-spacing:normal;white-space:normal;line-break:auto;font-size:.875rem;word-wrap:break-word;opacity:0}.tooltip.show{opacity:.9}.tooltip .arrow{position:absolute;display:block;width:.8rem;height:.4rem}.tooltip .arrow::before{position:absolute;content:"";border-color:transparent;border-style:solid}.bs-tooltip-auto[x-placement^=top],.bs-tooltip-top{padding:.4rem 0}.bs-tooltip-auto[x-placement^=top] .arrow,.bs-tooltip-top .arrow{bottom:0}.bs-tooltip-auto[x-placement^=top] .arrow::before,.bs-tooltip-top .arrow::before{top:0;border-width:.4rem .4rem 0;border-top-color:#000}.bs-tooltip-auto[x-placement^=right],.bs-tooltip-right{padding:0 .4rem}.bs-tooltip-auto[x-placement^=right] .arrow,.bs-tooltip-right .arrow{left:0;width:.4rem;height:.8rem}.bs-tooltip-auto[x-placement^=right] .arrow::before,.bs-tooltip-right .arrow::before{right:0;border-width:.4rem .4rem .4rem 0;border-right-color:#000}.bs-tooltip-auto[x-placement^=bottom],.bs-tooltip-bottom{padding:.4rem 0}.bs-tooltip-auto[x-placement^=bottom] .arrow,.bs-tooltip-bottom .arrow{top:0}.bs-tooltip-auto[x-placement^=bottom] .arrow::before,.bs-tooltip-bottom .arrow::before{bottom:0;border-width:0 .4rem .4rem;border-bottom-color:#000}.bs-tooltip-auto[x-placement^=left],.bs-tooltip-left{padding:0 .4rem}.bs-tooltip-auto[x-placement^=left] .arrow,.bs-tooltip-left .arrow{right:0;width:.4rem;height:.8rem}.bs-tooltip-auto[x-placement^=left] .arrow::before,.bs-tooltip-left .arrow::before{left:0;border-width:.4rem 0 .4rem .4rem;border-left-color:#000}.tooltip-inner{max-width:200px;padding:.25rem .5rem;color:#fff;text-align:center;background-color:#000;border-radius:.25rem}.popover{position:absolute;top:0;left:0;z-index:1060;display:block;max-width:276px;font-family:-apple-system,BlinkMacSystemFont,"Segoe UI",Roboto,"Helvetica Neue",Arial,"Noto Sans",sans-serif,"Apple Color Emoji","Segoe UI Emoji","Segoe UI Symbol","Noto Color Emoji";font-style:normal;font-weight:400;line-height:1.5;text-align:left;text-align:start;text-decoration:none;text-shadow:none;text-transform:none;letter-spacing:normal;word-break:normal;word-spacing:normal;white-space:normal;line-break:auto;font-size:.875rem;word-wrap:break-word;background-color:#fff;background-clip:padding-box;border:1px solid rgba(0,0,0,.2);border-radius:.3rem}.popover .arrow{position:absolute;display:block;width:1rem;height:.5rem;margin:0 .3rem}.popover .arrow::after,.popover .arrow::before{position:absolute;display:block;content:"";border-color:transparent;border-style:solid}.bs-popover-auto[x-placement^=top],.bs-popover-top{margin-bottom:.5rem}.bs-popover-auto[x-placement^=top]>.arrow,.bs-popover-top>.arrow{bottom:calc((.5rem + 1px) * -1)}.bs-popover-auto[x-placement^=top]>.arrow::before,.bs-popover-top>.arrow::before{bottom:0;border-width:.5rem .5rem 0;border-top-color:rgba(0,0,0,.25)}.bs-popover-auto[x-placement^=top]>.arrow::after,.bs-popover-top>.arrow::after{bottom:1px;border-width:.5rem .5rem 0;border-top-color:#fff}.bs-popover-auto[x-placement^=right],.bs-popover-right{margin-left:.5rem}.bs-popover-auto[x-placement^=right]>.arrow,.bs-popover-right>.arrow{left:calc((.5rem + 1px) * -1);width:.5rem;height:1rem;margin:.3rem 0}.bs-popover-auto[x-placement^=right]>.arrow::before,.bs-popover-right>.arrow::before{left:0;border-width:.5rem .5rem .5rem 0;border-right-color:rgba(0,0,0,.25)}.bs-popover-auto[x-placement^=right]>.arrow::after,.bs-popover-right>.arrow::after{left:1px;border-width:.5rem .5rem .5rem 0;border-right-color:#fff}.bs-popover-auto[x-placement^=bottom],.bs-popover-bottom{margin-top:.5rem}.bs-popover-auto[x-placement^=bottom]>.arrow,.bs-popover-bottom>.arrow{top:calc((.5rem + 1px) * -1)}.bs-popover-auto[x-placement^=bottom]>.arrow::before,.bs-popover-bottom>.arrow::before{top:0;border-width:0 .5rem .5rem .5rem;border-bottom-color:rgba(0,0,0,.25)}.bs-popover-auto[x-placement^=bottom]>.arrow::after,.bs-popover-bottom>.arrow::after{top:1px;border-width:0 .5rem .5rem .5rem;border-bottom-color:#fff}.bs-popover-auto[x-placement^=bottom] .popover-header::before,.bs-popover-bottom .popover-header::before{position:absolute;top:0;left:50%;display:block;width:1rem;margin-left:-.5rem;content:"";border-bottom:1px solid #f7f7f7}.bs-popover-auto[x-placement^=left],.bs-popover-left{margin-right:.5rem}.bs-popover-auto[x-placement^=left]>.arrow,.bs-popover-left>.arrow{right:calc((.5rem + 1px) * -1);width:.5rem;height:1rem;margin:.3rem 0}.bs-popover-auto[x-placement^=left]>.arrow::before,.bs-popover-left>.arrow::before{right:0;border-width:.5rem 0 .5rem .5rem;border-left-color:rgba(0,0,0,.25)}.bs-popover-auto[x-placement^=left]>.arrow::after,.bs-popover-left>.arrow::after{right:1px;border-width:.5rem 0 .5rem .5rem;border-left-color:#fff}.popover-header{padding:.5rem .75rem;margin-bottom:0;font-size:1rem;background-color:#f7f7f7;border-bottom:1px solid #ebebeb;border-top-left-radius:calc(.3rem - 1px);border-top-right-radius:calc(.3rem - 1px)}.popover-header:empty{display:none}.popover-body{padding:.5rem .75rem;color:#212529}.carousel{position:relative}.carousel.pointer-event{-ms-touch-action:pan-y;touch-action:pan-y}.carousel-inner{position:relative;width:100%;overflow:hidden}.carousel-inner::after{display:block;clear:both;content:""}.carousel-item{position:relative;display:none;float:left;width:100%;margin-right:-100%;-webkit-backface-visibility:hidden;backface-visibility:hidden;transition:-webkit-transform .6s ease-in-out;transition:transform .6s ease-in-out;transition:transform .6s ease-in-out,-webkit-transform .6s ease-in-out}@media (prefers-reduced-motion:reduce){.carousel-item{transition:none}}.carousel-item-next,.carousel-item-prev,.carousel-item.active{display:block}.active.carousel-item-right,.carousel-item-next:not(.carousel-item-left){-webkit-transform:translateX(100%);transform:translateX(100%)}.active.carousel-item-left,.carousel-item-prev:not(.carousel-item-right){-webkit-transform:translateX(-100%);transform:translateX(-100%)}.carousel-fade .carousel-item{opacity:0;transition-property:opacity;-webkit-transform:none;transform:none}.carousel-fade .carousel-item-next.carousel-item-left,.carousel-fade .carousel-item-prev.carousel-item-right,.carousel-fade .carousel-item.active{z-index:1;opacity:1}.carousel-fade .active.carousel-item-left,.carousel-fade .active.carousel-item-right{z-index:0;opacity:0;transition:0s .6s opacity}@media (prefers-reduced-motion:reduce){.carousel-fade .active.carousel-item-left,.carousel-fade .active.carousel-item-right{transition:none}}.carousel-control-next,.carousel-control-prev{position:absolute;top:0;bottom:0;z-index:1;display:-ms-flexbox;display:flex;-ms-flex-align:center;align-items:center;-ms-flex-pack:center;justify-content:center;width:15%;color:#fff;text-align:center;opacity:.5;transition:opacity .15s ease}@media (prefers-reduced-motion:reduce){.carousel-control-next,.carousel-control-prev{transition:none}}.carousel-control-next:focus,.carousel-control-next:hover,.carousel-control-prev:focus,.carousel-control-prev:hover{color:#fff;text-decoration:none;outline:0;opacity:.9}.carousel-control-prev{left:0}.carousel-control-next{right:0}.carousel-control-next-icon,.carousel-control-prev-icon{display:inline-block;width:20px;height:20px;background:no-repeat 50%/100% 100%}.carousel-control-prev-icon{background-image:url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' fill='%23fff' viewBox='0 0 8 8'%3e%3cpath d='M5.25 0l-4 4 4 4 1.5-1.5-2.5-2.5 2.5-2.5-1.5-1.5z'/%3e%3c/svg%3e")}.carousel-control-next-icon{background-image:url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' fill='%23fff' viewBox='0 0 8 8'%3e%3cpath d='M2.75 0l-1.5 1.5 2.5 2.5-2.5 2.5 1.5 1.5 4-4-4-4z'/%3e%3c/svg%3e")}.carousel-indicators{position:absolute;right:0;bottom:0;left:0;z-index:15;display:-ms-flexbox;display:flex;-ms-flex-pack:center;justify-content:center;padding-left:0;margin-right:15%;margin-left:15%;list-style:none}.carousel-indicators li{box-sizing:content-box;-ms-flex:0 1 auto;flex:0 1 auto;width:30px;height:3px;margin-right:3px;margin-left:3px;text-indent:-999px;cursor:pointer;background-color:#fff;background-clip:padding-box;border-top:10px solid transparent;border-bottom:10px solid transparent;opacity:.5;transition:opacity .6s ease}@media (prefers-reduced-motion:reduce){.carousel-indicators li{transition:none}}.carousel-indicators .active{opacity:1}.carousel-caption{position:absolute;right:15%;bottom:20px;left:15%;z-index:10;padding-top:20px;padding-bottom:20px;color:#fff;text-align:center}@-webkit-keyframes spinner-border{to{-webkit-transform:rotate(360deg);transform:rotate(360deg)}}@keyframes spinner-border{to{-webkit-transform:rotate(360deg);transform:rotate(360deg)}}.spinner-border{display:inline-block;width:2rem;height:2rem;vertical-align:text-bottom;border:.25em solid currentColor;border-right-color:transparent;border-radius:50%;-webkit-animation:spinner-border .75s linear infinite;animation:spinner-border .75s linear infinite}.spinner-border-sm{width:1rem;height:1rem;border-width:.2em}@-webkit-keyframes spinner-grow{0%{-webkit-transform:scale(0);transform:scale(0)}50%{opacity:1}}@keyframes spinner-grow{0%{-webkit-transform:scale(0);transform:scale(0)}50%{opacity:1}}.spinner-grow{display:inline-block;width:2rem;height:2rem;vertical-align:text-bottom;background-color:currentColor;border-radius:50%;opacity:0;-webkit-animation:spinner-grow .75s linear infinite;animation:spinner-grow .75s linear infinite}.spinner-grow-sm{width:1rem;height:1rem}.align-baseline{vertical-align:baseline!important}.align-top{vertical-align:top!important}.align-middle{vertical-align:middle!important}.align-bottom{vertical-align:bottom!important}.align-text-bottom{vertical-align:text-bottom!important}.align-text-top{vertical-align:text-top!important}.bg-primary{background-color:#007bff!important}a.bg-primary:focus,a.bg-primary:hover,button.bg-primary:focus,button.bg-primary:hover{background-color:#0062cc!important}.bg-secondary{background-color:#6c757d!important}a.bg-secondary:focus,a.bg-secondary:hover,button.bg-secondary:focus,button.bg-secondary:hover{background-color:#545b62!important}.bg-success{background-color:#28a745!important}a.bg-success:focus,a.bg-success:hover,button.bg-success:focus,button.bg-success:hover{background-color:#1e7e34!important}.bg-info{background-color:#17a2b8!important}a.bg-info:focus,a.bg-info:hover,button.bg-info:focus,button.bg-info:hover{background-color:#117a8b!important}.bg-warning{background-color:#ffc107!important}a.bg-warning:focus,a.bg-warning:hover,button.bg-warning:focus,button.bg-warning:hover{background-color:#d39e00!important}.bg-danger{background-color:#dc3545!important}a.bg-danger:focus,a.bg-danger:hover,button.bg-danger:focus,button.bg-danger:hover{background-color:#bd2130!important}.bg-light{background-color:#f8f9fa!important}a.bg-light:focus,a.bg-light:hover,button.bg-light:focus,button.bg-light:hover{background-color:#dae0e5!important}.bg-dark{background-color:#343a40!important}a.bg-dark:focus,a.bg-dark:hover,button.bg-dark:focus,button.bg-dark:hover{background-color:#1d2124!important}.bg-white{background-color:#fff!important}.bg-transparent{background-color:transparent!important}.border{border:1px solid #dee2e6!important}.border-top{border-top:1px solid #dee2e6!important}.border-right{border-right:1px solid #dee2e6!important}.border-bottom{border-bottom:1px solid #dee2e6!important}.border-left{border-left:1px solid #dee2e6!important}.border-0{border:0!important}.border-top-0{border-top:0!important}.border-right-0{border-right:0!important}.border-bottom-0{border-bottom:0!important}.border-left-0{border-left:0!important}.border-primary{border-color:#007bff!important}.border-secondary{border-color:#6c757d!important}.border-success{border-color:#28a745!important}.border-info{border-color:#17a2b8!important}.border-warning{border-color:#ffc107!important}.border-danger{border-color:#dc3545!important}.border-light{border-color:#f8f9fa!important}.border-dark{border-color:#343a40!important}.border-white{border-color:#fff!important}.rounded-sm{border-radius:.2rem!important}.rounded{border-radius:.25rem!important}.rounded-top{border-top-left-radius:.25rem!important;border-top-right-radius:.25rem!important}.rounded-right{border-top-right-radius:.25rem!important;border-bottom-right-radius:.25rem!important}.rounded-bottom{border-bottom-right-radius:.25rem!important;border-bottom-left-radius:.25rem!important}.rounded-left{border-top-left-radius:.25rem!important;border-bottom-left-radius:.25rem!important}.rounded-lg{border-radius:.3rem!important}.rounded-circle{border-radius:50%!important}.rounded-pill{border-radius:50rem!important}.rounded-0{border-radius:0!important}.clearfix::after{display:block;clear:both;content:""}.d-none{display:none!important}.d-inline{display:inline!important}.d-inline-block{display:inline-block!important}.d-block{display:block!important}.d-table{display:table!important}.d-table-row{display:table-row!important}.d-table-cell{display:table-cell!important}.d-flex{display:-ms-flexbox!important;display:flex!important}.d-inline-flex{display:-ms-inline-flexbox!important;display:inline-flex!important}@media (min-width:576px){.d-sm-none{display:none!important}.d-sm-inline{display:inline!important}.d-sm-inline-block{display:inline-block!important}.d-sm-block{display:block!important}.d-sm-table{display:table!important}.d-sm-table-row{display:table-row!important}.d-sm-table-cell{display:table-cell!important}.d-sm-flex{display:-ms-flexbox!important;display:flex!important}.d-sm-inline-flex{display:-ms-inline-flexbox!important;display:inline-flex!important}}@media (min-width:768px){.d-md-none{display:none!important}.d-md-inline{display:inline!important}.d-md-inline-block{display:inline-block!important}.d-md-block{display:block!important}.d-md-table{display:table!important}.d-md-table-row{display:table-row!important}.d-md-table-cell{display:table-cell!important}.d-md-flex{display:-ms-flexbox!important;display:flex!important}.d-md-inline-flex{display:-ms-inline-flexbox!important;display:inline-flex!important}}@media (min-width:992px){.d-lg-none{display:none!important}.d-lg-inline{display:inline!important}.d-lg-inline-block{display:inline-block!important}.d-lg-block{display:block!important}.d-lg-table{display:table!important}.d-lg-table-row{display:table-row!important}.d-lg-table-cell{display:table-cell!important}.d-lg-flex{display:-ms-flexbox!important;display:flex!important}.d-lg-inline-flex{display:-ms-inline-flexbox!important;display:inline-flex!important}}@media (min-width:1200px){.d-xl-none{display:none!important}.d-xl-inline{display:inline!important}.d-xl-inline-block{display:inline-block!important}.d-xl-block{display:block!important}.d-xl-table{display:table!important}.d-xl-table-row{display:table-row!important}.d-xl-table-cell{display:table-cell!important}.d-xl-flex{display:-ms-flexbox!important;display:flex!important}.d-xl-inline-flex{display:-ms-inline-flexbox!important;display:inline-flex!important}}@media print{.d-print-none{display:none!important}.d-print-inline{display:inline!important}.d-print-inline-block{display:inline-block!important}.d-print-block{display:block!important}.d-print-table{display:table!important}.d-print-table-row{display:table-row!important}.d-print-table-cell{display:table-cell!important}.d-print-flex{display:-ms-flexbox!important;display:flex!important}.d-print-inline-flex{display:-ms-inline-flexbox!important;display:inline-flex!important}}.embed-responsive{position:relative;display:block;width:100%;padding:0;overflow:hidden}.embed-responsive::before{display:block;content:""}.embed-responsive .embed-responsive-item,.embed-responsive embed,.embed-responsive iframe,.embed-responsive object,.embed-responsive video{position:absolute;top:0;bottom:0;left:0;width:100%;height:100%;border:0}.embed-responsive-21by9::before{padding-top:42.857143%}.embed-responsive-16by9::before{padding-top:56.25%}.embed-responsive-4by3::before{padding-top:75%}.embed-responsive-1by1::before{padding-top:100%}.flex-row{-ms-flex-direction:row!important;flex-direction:row!important}.flex-column{-ms-flex-direction:column!important;flex-direction:column!important}.flex-row-reverse{-ms-flex-direction:row-reverse!important;flex-direction:row-reverse!important}.flex-column-reverse{-ms-flex-direction:column-reverse!important;flex-direction:column-reverse!important}.flex-wrap{-ms-flex-wrap:wrap!important;flex-wrap:wrap!important}.flex-nowrap{-ms-flex-wrap:nowrap!important;flex-wrap:nowrap!important}.flex-wrap-reverse{-ms-flex-wrap:wrap-reverse!important;flex-wrap:wrap-reverse!important}.flex-fill{-ms-flex:1 1 auto!important;flex:1 1 auto!important}.flex-grow-0{-ms-flex-positive:0!important;flex-grow:0!important}.flex-grow-1{-ms-flex-positive:1!important;flex-grow:1!important}.flex-shrink-0{-ms-flex-negative:0!important;flex-shrink:0!important}.flex-shrink-1{-ms-flex-negative:1!important;flex-shrink:1!important}.justify-content-start{-ms-flex-pack:start!important;justify-content:flex-start!important}.justify-content-end{-ms-flex-pack:end!important;justify-content:flex-end!important}.justify-content-center{-ms-flex-pack:center!important;justify-content:center!important}.justify-content-between{-ms-flex-pack:justify!important;justify-content:space-between!important}.justify-content-around{-ms-flex-pack:distribute!important;justify-content:space-around!important}.align-items-start{-ms-flex-align:start!important;align-items:flex-start!important}.align-items-end{-ms-flex-align:end!important;align-items:flex-end!important}.align-items-center{-ms-flex-align:center!important;align-items:center!important}.align-items-baseline{-ms-flex-align:baseline!important;align-items:baseline!important}.align-items-stretch{-ms-flex-align:stretch!important;align-items:stretch!important}.align-content-start{-ms-flex-line-pack:start!important;align-content:flex-start!important}.align-content-end{-ms-flex-line-pack:end!important;align-content:flex-end!important}.align-content-center{-ms-flex-line-pack:center!important;align-content:center!important}.align-content-between{-ms-flex-line-pack:justify!important;align-content:space-between!important}.align-content-around{-ms-flex-line-pack:distribute!important;align-content:space-around!important}.align-content-stretch{-ms-flex-line-pack:stretch!important;align-content:stretch!important}.align-self-auto{-ms-flex-item-align:auto!important;align-self:auto!important}.align-self-start{-ms-flex-item-align:start!important;align-self:flex-start!important}.align-self-end{-ms-flex-item-align:end!important;align-self:flex-end!important}.align-self-center{-ms-flex-item-align:center!important;align-self:center!important}.align-self-baseline{-ms-flex-item-align:baseline!important;align-self:baseline!important}.align-self-stretch{-ms-flex-item-align:stretch!important;align-self:stretch!important}@media (min-width:576px){.flex-sm-row{-ms-flex-direction:row!important;flex-direction:row!important}.flex-sm-column{-ms-flex-direction:column!important;flex-direction:column!important}.flex-sm-row-reverse{-ms-flex-direction:row-reverse!important;flex-direction:row-reverse!important}.flex-sm-column-reverse{-ms-flex-direction:column-reverse!important;flex-direction:column-reverse!important}.flex-sm-wrap{-ms-flex-wrap:wrap!important;flex-wrap:wrap!important}.flex-sm-nowrap{-ms-flex-wrap:nowrap!important;flex-wrap:nowrap!important}.flex-sm-wrap-reverse{-ms-flex-wrap:wrap-reverse!important;flex-wrap:wrap-reverse!important}.flex-sm-fill{-ms-flex:1 1 auto!important;flex:1 1 auto!important}.flex-sm-grow-0{-ms-flex-positive:0!important;flex-grow:0!important}.flex-sm-grow-1{-ms-flex-positive:1!important;flex-grow:1!important}.flex-sm-shrink-0{-ms-flex-negative:0!important;flex-shrink:0!important}.flex-sm-shrink-1{-ms-flex-negative:1!important;flex-shrink:1!important}.justify-content-sm-start{-ms-flex-pack:start!important;justify-content:flex-start!important}.justify-content-sm-end{-ms-flex-pack:end!important;justify-content:flex-end!important}.justify-content-sm-center{-ms-flex-pack:center!important;justify-content:center!important}.justify-content-sm-between{-ms-flex-pack:justify!important;justify-content:space-between!important}.justify-content-sm-around{-ms-flex-pack:distribute!important;justify-content:space-around!important}.align-items-sm-start{-ms-flex-align:start!important;align-items:flex-start!important}.align-items-sm-end{-ms-flex-align:end!important;align-items:flex-end!important}.align-items-sm-center{-ms-flex-align:center!important;align-items:center!important}.align-items-sm-baseline{-ms-flex-align:baseline!important;align-items:baseline!important}.align-items-sm-stretch{-ms-flex-align:stretch!important;align-items:stretch!important}.align-content-sm-start{-ms-flex-line-pack:start!important;align-content:flex-start!important}.align-content-sm-end{-ms-flex-line-pack:end!important;align-content:flex-end!important}.align-content-sm-center{-ms-flex-line-pack:center!important;align-content:center!important}.align-content-sm-between{-ms-flex-line-pack:justify!important;align-content:space-between!important}.align-content-sm-around{-ms-flex-line-pack:distribute!important;align-content:space-around!important}.align-content-sm-stretch{-ms-flex-line-pack:stretch!important;align-content:stretch!important}.align-self-sm-auto{-ms-flex-item-align:auto!important;align-self:auto!important}.align-self-sm-start{-ms-flex-item-align:start!important;align-self:flex-start!important}.align-self-sm-end{-ms-flex-item-align:end!important;align-self:flex-end!important}.align-self-sm-center{-ms-flex-item-align:center!important;align-self:center!important}.align-self-sm-baseline{-ms-flex-item-align:baseline!important;align-self:baseline!important}.align-self-sm-stretch{-ms-flex-item-align:stretch!important;align-self:stretch!important}}@media (min-width:768px){.flex-md-row{-ms-flex-direction:row!important;flex-direction:row!important}.flex-md-column{-ms-flex-direction:column!important;flex-direction:column!important}.flex-md-row-reverse{-ms-flex-direction:row-reverse!important;flex-direction:row-reverse!important}.flex-md-column-reverse{-ms-flex-direction:column-reverse!important;flex-direction:column-reverse!important}.flex-md-wrap{-ms-flex-wrap:wrap!important;flex-wrap:wrap!important}.flex-md-nowrap{-ms-flex-wrap:nowrap!important;flex-wrap:nowrap!important}.flex-md-wrap-reverse{-ms-flex-wrap:wrap-reverse!important;flex-wrap:wrap-reverse!important}.flex-md-fill{-ms-flex:1 1 auto!important;flex:1 1 auto!important}.flex-md-grow-0{-ms-flex-positive:0!important;flex-grow:0!important}.flex-md-grow-1{-ms-flex-positive:1!important;flex-grow:1!important}.flex-md-shrink-0{-ms-flex-negative:0!important;flex-shrink:0!important}.flex-md-shrink-1{-ms-flex-negative:1!important;flex-shrink:1!important}.justify-content-md-start{-ms-flex-pack:start!important;justify-content:flex-start!important}.justify-content-md-end{-ms-flex-pack:end!important;justify-content:flex-end!important}.justify-content-md-center{-ms-flex-pack:center!important;justify-content:center!important}.justify-content-md-between{-ms-flex-pack:justify!important;justify-content:space-between!important}.justify-content-md-around{-ms-flex-pack:distribute!important;justify-content:space-around!important}.align-items-md-start{-ms-flex-align:start!important;align-items:flex-start!important}.align-items-md-end{-ms-flex-align:end!important;align-items:flex-end!important}.align-items-md-center{-ms-flex-align:center!important;align-items:center!important}.align-items-md-baseline{-ms-flex-align:baseline!important;align-items:baseline!important}.align-items-md-stretch{-ms-flex-align:stretch!important;align-items:stretch!important}.align-content-md-start{-ms-flex-line-pack:start!important;align-content:flex-start!important}.align-content-md-end{-ms-flex-line-pack:end!important;align-content:flex-end!important}.align-content-md-center{-ms-flex-line-pack:center!important;align-content:center!important}.align-content-md-between{-ms-flex-line-pack:justify!important;align-content:space-between!important}.align-content-md-around{-ms-flex-line-pack:distribute!important;align-content:space-around!important}.align-content-md-stretch{-ms-flex-line-pack:stretch!important;align-content:stretch!important}.align-self-md-auto{-ms-flex-item-align:auto!important;align-self:auto!important}.align-self-md-start{-ms-flex-item-align:start!important;align-self:flex-start!important}.align-self-md-end{-ms-flex-item-align:end!important;align-self:flex-end!important}.align-self-md-center{-ms-flex-item-align:center!important;align-self:center!important}.align-self-md-baseline{-ms-flex-item-align:baseline!important;align-self:baseline!important}.align-self-md-stretch{-ms-flex-item-align:stretch!important;align-self:stretch!important}}@media (min-width:992px){.flex-lg-row{-ms-flex-direction:row!important;flex-direction:row!important}.flex-lg-column{-ms-flex-direction:column!important;flex-direction:column!important}.flex-lg-row-reverse{-ms-flex-direction:row-reverse!important;flex-direction:row-reverse!important}.flex-lg-column-reverse{-ms-flex-direction:column-reverse!important;flex-direction:column-reverse!important}.flex-lg-wrap{-ms-flex-wrap:wrap!important;flex-wrap:wrap!important}.flex-lg-nowrap{-ms-flex-wrap:nowrap!important;flex-wrap:nowrap!important}.flex-lg-wrap-reverse{-ms-flex-wrap:wrap-reverse!important;flex-wrap:wrap-reverse!important}.flex-lg-fill{-ms-flex:1 1 auto!important;flex:1 1 auto!important}.flex-lg-grow-0{-ms-flex-positive:0!important;flex-grow:0!important}.flex-lg-grow-1{-ms-flex-positive:1!important;flex-grow:1!important}.flex-lg-shrink-0{-ms-flex-negative:0!important;flex-shrink:0!important}.flex-lg-shrink-1{-ms-flex-negative:1!important;flex-shrink:1!important}.justify-content-lg-start{-ms-flex-pack:start!important;justify-content:flex-start!important}.justify-content-lg-end{-ms-flex-pack:end!important;justify-content:flex-end!important}.justify-content-lg-center{-ms-flex-pack:center!important;justify-content:center!important}.justify-content-lg-between{-ms-flex-pack:justify!important;justify-content:space-between!important}.justify-content-lg-around{-ms-flex-pack:distribute!important;justify-content:space-around!important}.align-items-lg-start{-ms-flex-align:start!important;align-items:flex-start!important}.align-items-lg-end{-ms-flex-align:end!important;align-items:flex-end!important}.align-items-lg-center{-ms-flex-align:center!important;align-items:center!important}.align-items-lg-baseline{-ms-flex-align:baseline!important;align-items:baseline!important}.align-items-lg-stretch{-ms-flex-align:stretch!important;align-items:stretch!important}.align-content-lg-start{-ms-flex-line-pack:start!important;align-content:flex-start!important}.align-content-lg-end{-ms-flex-line-pack:end!important;align-content:flex-end!important}.align-content-lg-center{-ms-flex-line-pack:center!important;align-content:center!important}.align-content-lg-between{-ms-flex-line-pack:justify!important;align-content:space-between!important}.align-content-lg-around{-ms-flex-line-pack:distribute!important;align-content:space-around!important}.align-content-lg-stretch{-ms-flex-line-pack:stretch!important;align-content:stretch!important}.align-self-lg-auto{-ms-flex-item-align:auto!important;align-self:auto!important}.align-self-lg-start{-ms-flex-item-align:start!important;align-self:flex-start!important}.align-self-lg-end{-ms-flex-item-align:end!important;align-self:flex-end!important}.align-self-lg-center{-ms-flex-item-align:center!important;align-self:center!important}.align-self-lg-baseline{-ms-flex-item-align:baseline!important;align-self:baseline!important}.align-self-lg-stretch{-ms-flex-item-align:stretch!important;align-self:stretch!important}}@media (min-width:1200px){.flex-xl-row{-ms-flex-direction:row!important;flex-direction:row!important}.flex-xl-column{-ms-flex-direction:column!important;flex-direction:column!important}.flex-xl-row-reverse{-ms-flex-direction:row-reverse!important;flex-direction:row-reverse!important}.flex-xl-column-reverse{-ms-flex-direction:column-reverse!important;flex-direction:column-reverse!important}.flex-xl-wrap{-ms-flex-wrap:wrap!important;flex-wrap:wrap!important}.flex-xl-nowrap{-ms-flex-wrap:nowrap!important;flex-wrap:nowrap!important}.flex-xl-wrap-reverse{-ms-flex-wrap:wrap-reverse!important;flex-wrap:wrap-reverse!important}.flex-xl-fill{-ms-flex:1 1 auto!important;flex:1 1 auto!important}.flex-xl-grow-0{-ms-flex-positive:0!important;flex-grow:0!important}.flex-xl-grow-1{-ms-flex-positive:1!important;flex-grow:1!important}.flex-xl-shrink-0{-ms-flex-negative:0!important;flex-shrink:0!important}.flex-xl-shrink-1{-ms-flex-negative:1!important;flex-shrink:1!important}.justify-content-xl-start{-ms-flex-pack:start!important;justify-content:flex-start!important}.justify-content-xl-end{-ms-flex-pack:end!important;justify-content:flex-end!important}.justify-content-xl-center{-ms-flex-pack:center!important;justify-content:center!important}.justify-content-xl-between{-ms-flex-pack:justify!important;justify-content:space-between!important}.justify-content-xl-around{-ms-flex-pack:distribute!important;justify-content:space-around!important}.align-items-xl-start{-ms-flex-align:start!important;align-items:flex-start!important}.align-items-xl-end{-ms-flex-align:end!important;align-items:flex-end!important}.align-items-xl-center{-ms-flex-align:center!important;align-items:center!important}.align-items-xl-baseline{-ms-flex-align:baseline!important;align-items:baseline!important}.align-items-xl-stretch{-ms-flex-align:stretch!important;align-items:stretch!important}.align-content-xl-start{-ms-flex-line-pack:start!important;align-content:flex-start!important}.align-content-xl-end{-ms-flex-line-pack:end!important;align-content:flex-end!important}.align-content-xl-center{-ms-flex-line-pack:center!important;align-content:center!important}.align-content-xl-between{-ms-flex-line-pack:justify!important;align-content:space-between!important}.align-content-xl-around{-ms-flex-line-pack:distribute!important;align-content:space-around!important}.align-content-xl-stretch{-ms-flex-line-pack:stretch!important;align-content:stretch!important}.align-self-xl-auto{-ms-flex-item-align:auto!important;align-self:auto!important}.align-self-xl-start{-ms-flex-item-align:start!important;align-self:flex-start!important}.align-self-xl-end{-ms-flex-item-align:end!important;align-self:flex-end!important}.align-self-xl-center{-ms-flex-item-align:center!important;align-self:center!important}.align-self-xl-baseline{-ms-flex-item-align:baseline!important;align-self:baseline!important}.align-self-xl-stretch{-ms-flex-item-align:stretch!important;align-self:stretch!important}}.float-left{float:left!important}.float-right{float:right!important}.float-none{float:none!important}@media (min-width:576px){.float-sm-left{float:left!important}.float-sm-right{float:right!important}.float-sm-none{float:none!important}}@media (min-width:768px){.float-md-left{float:left!important}.float-md-right{float:right!important}.float-md-none{float:none!important}}@media (min-width:992px){.float-lg-left{float:left!important}.float-lg-right{float:right!important}.float-lg-none{float:none!important}}@media (min-width:1200px){.float-xl-left{float:left!important}.float-xl-right{float:right!important}.float-xl-none{float:none!important}}.overflow-auto{overflow:auto!important}.overflow-hidden{overflow:hidden!important}.position-static{position:static!important}.position-relative{position:relative!important}.position-absolute{position:absolute!important}.position-fixed{position:fixed!important}.position-sticky{position:-webkit-sticky!important;position:sticky!important}.fixed-top{position:fixed;top:0;right:0;left:0;z-index:1030}.fixed-bottom{position:fixed;right:0;bottom:0;left:0;z-index:1030}@supports ((position:-webkit-sticky) or (position:sticky)){.sticky-top{position:-webkit-sticky;position:sticky;top:0;z-index:1020}}.sr-only{position:absolute;width:1px;height:1px;padding:0;overflow:hidden;clip:rect(0,0,0,0);white-space:nowrap;border:0}.sr-only-focusable:active,.sr-only-focusable:focus{position:static;width:auto;height:auto;overflow:visible;clip:auto;white-space:normal}.shadow-sm{box-shadow:0 .125rem .25rem rgba(0,0,0,.075)!important}.shadow{box-shadow:0 .5rem 1rem rgba(0,0,0,.15)!important}.shadow-lg{box-shadow:0 1rem 3rem rgba(0,0,0,.175)!important}.shadow-none{box-shadow:none!important}.w-25{width:25%!important}.w-50{width:50%!important}.w-75{width:75%!important}.w-100{width:100%!important}.w-auto{width:auto!important}.h-25{height:25%!important}.h-50{height:50%!important}.h-75{height:75%!important}.h-100{height:100%!important}.h-auto{height:auto!important}.mw-100{max-width:100%!important}.mh-100{max-height:100%!important}.min-vw-100{min-width:100vw!important}.min-vh-100{min-height:100vh!important}.vw-100{width:100vw!important}.vh-100{height:100vh!important}.stretched-link::after{position:absolute;top:0;right:0;bottom:0;left:0;z-index:1;pointer-events:auto;content:"";background-color:rgba(0,0,0,0)}.m-0{margin:0!important}.mt-0,.my-0{margin-top:0!important}.mr-0,.mx-0{margin-right:0!important}.mb-0,.my-0{margin-bottom:0!important}.ml-0,.mx-0{margin-left:0!important}.m-1{margin:.25rem!important}.mt-1,.my-1{margin-top:.25rem!important}.mr-1,.mx-1{margin-right:.25rem!important}.mb-1,.my-1{margin-bottom:.25rem!important}.ml-1,.mx-1{margin-left:.25rem!important}.m-2{margin:.5rem!important}.mt-2,.my-2{margin-top:.5rem!important}.mr-2,.mx-2{margin-right:.5rem!important}.mb-2,.my-2{margin-bottom:.5rem!important}.ml-2,.mx-2{margin-left:.5rem!important}.m-3{margin:1rem!important}.mt-3,.my-3{margin-top:1rem!important}.mr-3,.mx-3{margin-right:1rem!important}.mb-3,.my-3{margin-bottom:1rem!important}.ml-3,.mx-3{margin-left:1rem!important}.m-4{margin:1.5rem!important}.mt-4,.my-4{margin-top:1.5rem!important}.mr-4,.mx-4{margin-right:1.5rem!important}.mb-4,.my-4{margin-bottom:1.5rem!important}.ml-4,.mx-4{margin-left:1.5rem!important}.m-5{margin:3rem!important}.mt-5,.my-5{margin-top:3rem!important}.mr-5,.mx-5{margin-right:3rem!important}.mb-5,.my-5{margin-bottom:3rem!important}.ml-5,.mx-5{margin-left:3rem!important}.p-0{padding:0!important}.pt-0,.py-0{padding-top:0!important}.pr-0,.px-0{padding-right:0!important}.pb-0,.py-0{padding-bottom:0!important}.pl-0,.px-0{padding-left:0!important}.p-1{padding:.25rem!important}.pt-1,.py-1{padding-top:.25rem!important}.pr-1,.px-1{padding-right:.25rem!important}.pb-1,.py-1{padding-bottom:.25rem!important}.pl-1,.px-1{padding-left:.25rem!important}.p-2{padding:.5rem!important}.pt-2,.py-2{padding-top:.5rem!important}.pr-2,.px-2{padding-right:.5rem!important}.pb-2,.py-2{padding-bottom:.5rem!important}.pl-2,.px-2{padding-left:.5rem!important}.p-3{padding:1rem!important}.pt-3,.py-3{padding-top:1rem!important}.pr-3,.px-3{padding-right:1rem!important}.pb-3,.py-3{padding-bottom:1rem!important}.pl-3,.px-3{padding-left:1rem!important}.p-4{padding:1.5rem!important}.pt-4,.py-4{padding-top:1.5rem!important}.pr-4,.px-4{padding-right:1.5rem!important}.pb-4,.py-4{padding-bottom:1.5rem!important}.pl-4,.px-4{padding-left:1.5rem!important}.p-5{padding:3rem!important}.pt-5,.py-5{padding-top:3rem!important}.pr-5,.px-5{padding-right:3rem!important}.pb-5,.py-5{padding-bottom:3rem!important}.pl-5,.px-5{padding-left:3rem!important}.m-n1{margin:-.25rem!important}.mt-n1,.my-n1{margin-top:-.25rem!important}.mr-n1,.mx-n1{margin-right:-.25rem!important}.mb-n1,.my-n1{margin-bottom:-.25rem!important}.ml-n1,.mx-n1{margin-left:-.25rem!important}.m-n2{margin:-.5rem!important}.mt-n2,.my-n2{margin-top:-.5rem!important}.mr-n2,.mx-n2{margin-right:-.5rem!important}.mb-n2,.my-n2{margin-bottom:-.5rem!important}.ml-n2,.mx-n2{margin-left:-.5rem!important}.m-n3{margin:-1rem!important}.mt-n3,.my-n3{margin-top:-1rem!important}.mr-n3,.mx-n3{margin-right:-1rem!important}.mb-n3,.my-n3{margin-bottom:-1rem!important}.ml-n3,.mx-n3{margin-left:-1rem!important}.m-n4{margin:-1.5rem!important}.mt-n4,.my-n4{margin-top:-1.5rem!important}.mr-n4,.mx-n4{margin-right:-1.5rem!important}.mb-n4,.my-n4{margin-bottom:-1.5rem!important}.ml-n4,.mx-n4{margin-left:-1.5rem!important}.m-n5{margin:-3rem!important}.mt-n5,.my-n5{margin-top:-3rem!important}.mr-n5,.mx-n5{margin-right:-3rem!important}.mb-n5,.my-n5{margin-bottom:-3rem!important}.ml-n5,.mx-n5{margin-left:-3rem!important}.m-auto{margin:auto!important}.mt-auto,.my-auto{margin-top:auto!important}.mr-auto,.mx-auto{margin-right:auto!important}.mb-auto,.my-auto{margin-bottom:auto!important}.ml-auto,.mx-auto{margin-left:auto!important}@media (min-width:576px){.m-sm-0{margin:0!important}.mt-sm-0,.my-sm-0{margin-top:0!important}.mr-sm-0,.mx-sm-0{margin-right:0!important}.mb-sm-0,.my-sm-0{margin-bottom:0!important}.ml-sm-0,.mx-sm-0{margin-left:0!important}.m-sm-1{margin:.25rem!important}.mt-sm-1,.my-sm-1{margin-top:.25rem!important}.mr-sm-1,.mx-sm-1{margin-right:.25rem!important}.mb-sm-1,.my-sm-1{margin-bottom:.25rem!important}.ml-sm-1,.mx-sm-1{margin-left:.25rem!important}.m-sm-2{margin:.5rem!important}.mt-sm-2,.my-sm-2{margin-top:.5rem!important}.mr-sm-2,.mx-sm-2{margin-right:.5rem!important}.mb-sm-2,.my-sm-2{margin-bottom:.5rem!important}.ml-sm-2,.mx-sm-2{margin-left:.5rem!important}.m-sm-3{margin:1rem!important}.mt-sm-3,.my-sm-3{margin-top:1rem!important}.mr-sm-3,.mx-sm-3{margin-right:1rem!important}.mb-sm-3,.my-sm-3{margin-bottom:1rem!important}.ml-sm-3,.mx-sm-3{margin-left:1rem!important}.m-sm-4{margin:1.5rem!important}.mt-sm-4,.my-sm-4{margin-top:1.5rem!important}.mr-sm-4,.mx-sm-4{margin-right:1.5rem!important}.mb-sm-4,.my-sm-4{margin-bottom:1.5rem!important}.ml-sm-4,.mx-sm-4{margin-left:1.5rem!important}.m-sm-5{margin:3rem!important}.mt-sm-5,.my-sm-5{margin-top:3rem!important}.mr-sm-5,.mx-sm-5{margin-right:3rem!important}.mb-sm-5,.my-sm-5{margin-bottom:3rem!important}.ml-sm-5,.mx-sm-5{margin-left:3rem!important}.p-sm-0{padding:0!important}.pt-sm-0,.py-sm-0{padding-top:0!important}.pr-sm-0,.px-sm-0{padding-right:0!important}.pb-sm-0,.py-sm-0{padding-bottom:0!important}.pl-sm-0,.px-sm-0{padding-left:0!important}.p-sm-1{padding:.25rem!important}.pt-sm-1,.py-sm-1{padding-top:.25rem!important}.pr-sm-1,.px-sm-1{padding-right:.25rem!important}.pb-sm-1,.py-sm-1{padding-bottom:.25rem!important}.pl-sm-1,.px-sm-1{padding-left:.25rem!important}.p-sm-2{padding:.5rem!important}.pt-sm-2,.py-sm-2{padding-top:.5rem!important}.pr-sm-2,.px-sm-2{padding-right:.5rem!important}.pb-sm-2,.py-sm-2{padding-bottom:.5rem!important}.pl-sm-2,.px-sm-2{padding-left:.5rem!important}.p-sm-3{padding:1rem!important}.pt-sm-3,.py-sm-3{padding-top:1rem!important}.pr-sm-3,.px-sm-3{padding-right:1rem!important}.pb-sm-3,.py-sm-3{padding-bottom:1rem!important}.pl-sm-3,.px-sm-3{padding-left:1rem!important}.p-sm-4{padding:1.5rem!important}.pt-sm-4,.py-sm-4{padding-top:1.5rem!important}.pr-sm-4,.px-sm-4{padding-right:1.5rem!important}.pb-sm-4,.py-sm-4{padding-bottom:1.5rem!important}.pl-sm-4,.px-sm-4{padding-left:1.5rem!important}.p-sm-5{padding:3rem!important}.pt-sm-5,.py-sm-5{padding-top:3rem!important}.pr-sm-5,.px-sm-5{padding-right:3rem!important}.pb-sm-5,.py-sm-5{padding-bottom:3rem!important}.pl-sm-5,.px-sm-5{padding-left:3rem!important}.m-sm-n1{margin:-.25rem!important}.mt-sm-n1,.my-sm-n1{margin-top:-.25rem!important}.mr-sm-n1,.mx-sm-n1{margin-right:-.25rem!important}.mb-sm-n1,.my-sm-n1{margin-bottom:-.25rem!important}.ml-sm-n1,.mx-sm-n1{margin-left:-.25rem!important}.m-sm-n2{margin:-.5rem!important}.mt-sm-n2,.my-sm-n2{margin-top:-.5rem!important}.mr-sm-n2,.mx-sm-n2{margin-right:-.5rem!important}.mb-sm-n2,.my-sm-n2{margin-bottom:-.5rem!important}.ml-sm-n2,.mx-sm-n2{margin-left:-.5rem!important}.m-sm-n3{margin:-1rem!important}.mt-sm-n3,.my-sm-n3{margin-top:-1rem!important}.mr-sm-n3,.mx-sm-n3{margin-right:-1rem!important}.mb-sm-n3,.my-sm-n3{margin-bottom:-1rem!important}.ml-sm-n3,.mx-sm-n3{margin-left:-1rem!important}.m-sm-n4{margin:-1.5rem!important}.mt-sm-n4,.my-sm-n4{margin-top:-1.5rem!important}.mr-sm-n4,.mx-sm-n4{margin-right:-1.5rem!important}.mb-sm-n4,.my-sm-n4{margin-bottom:-1.5rem!important}.ml-sm-n4,.mx-sm-n4{margin-left:-1.5rem!important}.m-sm-n5{margin:-3rem!important}.mt-sm-n5,.my-sm-n5{margin-top:-3rem!important}.mr-sm-n5,.mx-sm-n5{margin-right:-3rem!important}.mb-sm-n5,.my-sm-n5{margin-bottom:-3rem!important}.ml-sm-n5,.mx-sm-n5{margin-left:-3rem!important}.m-sm-auto{margin:auto!important}.mt-sm-auto,.my-sm-auto{margin-top:auto!important}.mr-sm-auto,.mx-sm-auto{margin-right:auto!important}.mb-sm-auto,.my-sm-auto{margin-bottom:auto!important}.ml-sm-auto,.mx-sm-auto{margin-left:auto!important}}@media (min-width:768px){.m-md-0{margin:0!important}.mt-md-0,.my-md-0{margin-top:0!important}.mr-md-0,.mx-md-0{margin-right:0!important}.mb-md-0,.my-md-0{margin-bottom:0!important}.ml-md-0,.mx-md-0{margin-left:0!important}.m-md-1{margin:.25rem!important}.mt-md-1,.my-md-1{margin-top:.25rem!important}.mr-md-1,.mx-md-1{margin-right:.25rem!important}.mb-md-1,.my-md-1{margin-bottom:.25rem!important}.ml-md-1,.mx-md-1{margin-left:.25rem!important}.m-md-2{margin:.5rem!important}.mt-md-2,.my-md-2{margin-top:.5rem!important}.mr-md-2,.mx-md-2{margin-right:.5rem!important}.mb-md-2,.my-md-2{margin-bottom:.5rem!important}.ml-md-2,.mx-md-2{margin-left:.5rem!important}.m-md-3{margin:1rem!important}.mt-md-3,.my-md-3{margin-top:1rem!important}.mr-md-3,.mx-md-3{margin-right:1rem!important}.mb-md-3,.my-md-3{margin-bottom:1rem!important}.ml-md-3,.mx-md-3{margin-left:1rem!important}.m-md-4{margin:1.5rem!important}.mt-md-4,.my-md-4{margin-top:1.5rem!important}.mr-md-4,.mx-md-4{margin-right:1.5rem!important}.mb-md-4,.my-md-4{margin-bottom:1.5rem!important}.ml-md-4,.mx-md-4{margin-left:1.5rem!important}.m-md-5{margin:3rem!important}.mt-md-5,.my-md-5{margin-top:3rem!important}.mr-md-5,.mx-md-5{margin-right:3rem!important}.mb-md-5,.my-md-5{margin-bottom:3rem!important}.ml-md-5,.mx-md-5{margin-left:3rem!important}.p-md-0{padding:0!important}.pt-md-0,.py-md-0{padding-top:0!important}.pr-md-0,.px-md-0{padding-right:0!important}.pb-md-0,.py-md-0{padding-bottom:0!important}.pl-md-0,.px-md-0{padding-left:0!important}.p-md-1{padding:.25rem!important}.pt-md-1,.py-md-1{padding-top:.25rem!important}.pr-md-1,.px-md-1{padding-right:.25rem!important}.pb-md-1,.py-md-1{padding-bottom:.25rem!important}.pl-md-1,.px-md-1{padding-left:.25rem!important}.p-md-2{padding:.5rem!important}.pt-md-2,.py-md-2{padding-top:.5rem!important}.pr-md-2,.px-md-2{padding-right:.5rem!important}.pb-md-2,.py-md-2{padding-bottom:.5rem!important}.pl-md-2,.px-md-2{padding-left:.5rem!important}.p-md-3{padding:1rem!important}.pt-md-3,.py-md-3{padding-top:1rem!important}.pr-md-3,.px-md-3{padding-right:1rem!important}.pb-md-3,.py-md-3{padding-bottom:1rem!important}.pl-md-3,.px-md-3{padding-left:1rem!important}.p-md-4{padding:1.5rem!important}.pt-md-4,.py-md-4{padding-top:1.5rem!important}.pr-md-4,.px-md-4{padding-right:1.5rem!important}.pb-md-4,.py-md-4{padding-bottom:1.5rem!important}.pl-md-4,.px-md-4{padding-left:1.5rem!important}.p-md-5{padding:3rem!important}.pt-md-5,.py-md-5{padding-top:3rem!important}.pr-md-5,.px-md-5{padding-right:3rem!important}.pb-md-5,.py-md-5{padding-bottom:3rem!important}.pl-md-5,.px-md-5{padding-left:3rem!important}.m-md-n1{margin:-.25rem!important}.mt-md-n1,.my-md-n1{margin-top:-.25rem!important}.mr-md-n1,.mx-md-n1{margin-right:-.25rem!important}.mb-md-n1,.my-md-n1{margin-bottom:-.25rem!important}.ml-md-n1,.mx-md-n1{margin-left:-.25rem!important}.m-md-n2{margin:-.5rem!important}.mt-md-n2,.my-md-n2{margin-top:-.5rem!important}.mr-md-n2,.mx-md-n2{margin-right:-.5rem!important}.mb-md-n2,.my-md-n2{margin-bottom:-.5rem!important}.ml-md-n2,.mx-md-n2{margin-left:-.5rem!important}.m-md-n3{margin:-1rem!important}.mt-md-n3,.my-md-n3{margin-top:-1rem!important}.mr-md-n3,.mx-md-n3{margin-right:-1rem!important}.mb-md-n3,.my-md-n3{margin-bottom:-1rem!important}.ml-md-n3,.mx-md-n3{margin-left:-1rem!important}.m-md-n4{margin:-1.5rem!important}.mt-md-n4,.my-md-n4{margin-top:-1.5rem!important}.mr-md-n4,.mx-md-n4{margin-right:-1.5rem!important}.mb-md-n4,.my-md-n4{margin-bottom:-1.5rem!important}.ml-md-n4,.mx-md-n4{margin-left:-1.5rem!important}.m-md-n5{margin:-3rem!important}.mt-md-n5,.my-md-n5{margin-top:-3rem!important}.mr-md-n5,.mx-md-n5{margin-right:-3rem!important}.mb-md-n5,.my-md-n5{margin-bottom:-3rem!important}.ml-md-n5,.mx-md-n5{margin-left:-3rem!important}.m-md-auto{margin:auto!important}.mt-md-auto,.my-md-auto{margin-top:auto!important}.mr-md-auto,.mx-md-auto{margin-right:auto!important}.mb-md-auto,.my-md-auto{margin-bottom:auto!important}.ml-md-auto,.mx-md-auto{margin-left:auto!important}}@media (min-width:992px){.m-lg-0{margin:0!important}.mt-lg-0,.my-lg-0{margin-top:0!important}.mr-lg-0,.mx-lg-0{margin-right:0!important}.mb-lg-0,.my-lg-0{margin-bottom:0!important}.ml-lg-0,.mx-lg-0{margin-left:0!important}.m-lg-1{margin:.25rem!important}.mt-lg-1,.my-lg-1{margin-top:.25rem!important}.mr-lg-1,.mx-lg-1{margin-right:.25rem!important}.mb-lg-1,.my-lg-1{margin-bottom:.25rem!important}.ml-lg-1,.mx-lg-1{margin-left:.25rem!important}.m-lg-2{margin:.5rem!important}.mt-lg-2,.my-lg-2{margin-top:.5rem!important}.mr-lg-2,.mx-lg-2{margin-right:.5rem!important}.mb-lg-2,.my-lg-2{margin-bottom:.5rem!important}.ml-lg-2,.mx-lg-2{margin-left:.5rem!important}.m-lg-3{margin:1rem!important}.mt-lg-3,.my-lg-3{margin-top:1rem!important}.mr-lg-3,.mx-lg-3{margin-right:1rem!important}.mb-lg-3,.my-lg-3{margin-bottom:1rem!important}.ml-lg-3,.mx-lg-3{margin-left:1rem!important}.m-lg-4{margin:1.5rem!important}.mt-lg-4,.my-lg-4{margin-top:1.5rem!important}.mr-lg-4,.mx-lg-4{margin-right:1.5rem!important}.mb-lg-4,.my-lg-4{margin-bottom:1.5rem!important}.ml-lg-4,.mx-lg-4{margin-left:1.5rem!important}.m-lg-5{margin:3rem!important}.mt-lg-5,.my-lg-5{margin-top:3rem!important}.mr-lg-5,.mx-lg-5{margin-right:3rem!important}.mb-lg-5,.my-lg-5{margin-bottom:3rem!important}.ml-lg-5,.mx-lg-5{margin-left:3rem!important}.p-lg-0{padding:0!important}.pt-lg-0,.py-lg-0{padding-top:0!important}.pr-lg-0,.px-lg-0{padding-right:0!important}.pb-lg-0,.py-lg-0{padding-bottom:0!important}.pl-lg-0,.px-lg-0{padding-left:0!important}.p-lg-1{padding:.25rem!important}.pt-lg-1,.py-lg-1{padding-top:.25rem!important}.pr-lg-1,.px-lg-1{padding-right:.25rem!important}.pb-lg-1,.py-lg-1{padding-bottom:.25rem!important}.pl-lg-1,.px-lg-1{padding-left:.25rem!important}.p-lg-2{padding:.5rem!important}.pt-lg-2,.py-lg-2{padding-top:.5rem!important}.pr-lg-2,.px-lg-2{padding-right:.5rem!important}.pb-lg-2,.py-lg-2{padding-bottom:.5rem!important}.pl-lg-2,.px-lg-2{padding-left:.5rem!important}.p-lg-3{padding:1rem!important}.pt-lg-3,.py-lg-3{padding-top:1rem!important}.pr-lg-3,.px-lg-3{padding-right:1rem!important}.pb-lg-3,.py-lg-3{padding-bottom:1rem!important}.pl-lg-3,.px-lg-3{padding-left:1rem!important}.p-lg-4{padding:1.5rem!important}.pt-lg-4,.py-lg-4{padding-top:1.5rem!important}.pr-lg-4,.px-lg-4{padding-right:1.5rem!important}.pb-lg-4,.py-lg-4{padding-bottom:1.5rem!important}.pl-lg-4,.px-lg-4{padding-left:1.5rem!important}.p-lg-5{padding:3rem!important}.pt-lg-5,.py-lg-5{padding-top:3rem!important}.pr-lg-5,.px-lg-5{padding-right:3rem!important}.pb-lg-5,.py-lg-5{padding-bottom:3rem!important}.pl-lg-5,.px-lg-5{padding-left:3rem!important}.m-lg-n1{margin:-.25rem!important}.mt-lg-n1,.my-lg-n1{margin-top:-.25rem!important}.mr-lg-n1,.mx-lg-n1{margin-right:-.25rem!important}.mb-lg-n1,.my-lg-n1{margin-bottom:-.25rem!important}.ml-lg-n1,.mx-lg-n1{margin-left:-.25rem!important}.m-lg-n2{margin:-.5rem!important}.mt-lg-n2,.my-lg-n2{margin-top:-.5rem!important}.mr-lg-n2,.mx-lg-n2{margin-right:-.5rem!important}.mb-lg-n2,.my-lg-n2{margin-bottom:-.5rem!important}.ml-lg-n2,.mx-lg-n2{margin-left:-.5rem!important}.m-lg-n3{margin:-1rem!important}.mt-lg-n3,.my-lg-n3{margin-top:-1rem!important}.mr-lg-n3,.mx-lg-n3{margin-right:-1rem!important}.mb-lg-n3,.my-lg-n3{margin-bottom:-1rem!important}.ml-lg-n3,.mx-lg-n3{margin-left:-1rem!important}.m-lg-n4{margin:-1.5rem!important}.mt-lg-n4,.my-lg-n4{margin-top:-1.5rem!important}.mr-lg-n4,.mx-lg-n4{margin-right:-1.5rem!important}.mb-lg-n4,.my-lg-n4{margin-bottom:-1.5rem!important}.ml-lg-n4,.mx-lg-n4{margin-left:-1.5rem!important}.m-lg-n5{margin:-3rem!important}.mt-lg-n5,.my-lg-n5{margin-top:-3rem!important}.mr-lg-n5,.mx-lg-n5{margin-right:-3rem!important}.mb-lg-n5,.my-lg-n5{margin-bottom:-3rem!important}.ml-lg-n5,.mx-lg-n5{margin-left:-3rem!important}.m-lg-auto{margin:auto!important}.mt-lg-auto,.my-lg-auto{margin-top:auto!important}.mr-lg-auto,.mx-lg-auto{margin-right:auto!important}.mb-lg-auto,.my-lg-auto{margin-bottom:auto!important}.ml-lg-auto,.mx-lg-auto{margin-left:auto!important}}@media (min-width:1200px){.m-xl-0{margin:0!important}.mt-xl-0,.my-xl-0{margin-top:0!important}.mr-xl-0,.mx-xl-0{margin-right:0!important}.mb-xl-0,.my-xl-0{margin-bottom:0!important}.ml-xl-0,.mx-xl-0{margin-left:0!important}.m-xl-1{margin:.25rem!important}.mt-xl-1,.my-xl-1{margin-top:.25rem!important}.mr-xl-1,.mx-xl-1{margin-right:.25rem!important}.mb-xl-1,.my-xl-1{margin-bottom:.25rem!important}.ml-xl-1,.mx-xl-1{margin-left:.25rem!important}.m-xl-2{margin:.5rem!important}.mt-xl-2,.my-xl-2{margin-top:.5rem!important}.mr-xl-2,.mx-xl-2{margin-right:.5rem!important}.mb-xl-2,.my-xl-2{margin-bottom:.5rem!important}.ml-xl-2,.mx-xl-2{margin-left:.5rem!important}.m-xl-3{margin:1rem!important}.mt-xl-3,.my-xl-3{margin-top:1rem!important}.mr-xl-3,.mx-xl-3{margin-right:1rem!important}.mb-xl-3,.my-xl-3{margin-bottom:1rem!important}.ml-xl-3,.mx-xl-3{margin-left:1rem!important}.m-xl-4{margin:1.5rem!important}.mt-xl-4,.my-xl-4{margin-top:1.5rem!important}.mr-xl-4,.mx-xl-4{margin-right:1.5rem!important}.mb-xl-4,.my-xl-4{margin-bottom:1.5rem!important}.ml-xl-4,.mx-xl-4{margin-left:1.5rem!important}.m-xl-5{margin:3rem!important}.mt-xl-5,.my-xl-5{margin-top:3rem!important}.mr-xl-5,.mx-xl-5{margin-right:3rem!important}.mb-xl-5,.my-xl-5{margin-bottom:3rem!important}.ml-xl-5,.mx-xl-5{margin-left:3rem!important}.p-xl-0{padding:0!important}.pt-xl-0,.py-xl-0{padding-top:0!important}.pr-xl-0,.px-xl-0{padding-right:0!important}.pb-xl-0,.py-xl-0{padding-bottom:0!important}.pl-xl-0,.px-xl-0{padding-left:0!important}.p-xl-1{padding:.25rem!important}.pt-xl-1,.py-xl-1{padding-top:.25rem!important}.pr-xl-1,.px-xl-1{padding-right:.25rem!important}.pb-xl-1,.py-xl-1{padding-bottom:.25rem!important}.pl-xl-1,.px-xl-1{padding-left:.25rem!important}.p-xl-2{padding:.5rem!important}.pt-xl-2,.py-xl-2{padding-top:.5rem!important}.pr-xl-2,.px-xl-2{padding-right:.5rem!important}.pb-xl-2,.py-xl-2{padding-bottom:.5rem!important}.pl-xl-2,.px-xl-2{padding-left:.5rem!important}.p-xl-3{padding:1rem!important}.pt-xl-3,.py-xl-3{padding-top:1rem!important}.pr-xl-3,.px-xl-3{padding-right:1rem!important}.pb-xl-3,.py-xl-3{padding-bottom:1rem!important}.pl-xl-3,.px-xl-3{padding-left:1rem!important}.p-xl-4{padding:1.5rem!important}.pt-xl-4,.py-xl-4{padding-top:1.5rem!important}.pr-xl-4,.px-xl-4{padding-right:1.5rem!important}.pb-xl-4,.py-xl-4{padding-bottom:1.5rem!important}.pl-xl-4,.px-xl-4{padding-left:1.5rem!important}.p-xl-5{padding:3rem!important}.pt-xl-5,.py-xl-5{padding-top:3rem!important}.pr-xl-5,.px-xl-5{padding-right:3rem!important}.pb-xl-5,.py-xl-5{padding-bottom:3rem!important}.pl-xl-5,.px-xl-5{padding-left:3rem!important}.m-xl-n1{margin:-.25rem!important}.mt-xl-n1,.my-xl-n1{margin-top:-.25rem!important}.mr-xl-n1,.mx-xl-n1{margin-right:-.25rem!important}.mb-xl-n1,.my-xl-n1{margin-bottom:-.25rem!important}.ml-xl-n1,.mx-xl-n1{margin-left:-.25rem!important}.m-xl-n2{margin:-.5rem!important}.mt-xl-n2,.my-xl-n2{margin-top:-.5rem!important}.mr-xl-n2,.mx-xl-n2{margin-right:-.5rem!important}.mb-xl-n2,.my-xl-n2{margin-bottom:-.5rem!important}.ml-xl-n2,.mx-xl-n2{margin-left:-.5rem!important}.m-xl-n3{margin:-1rem!important}.mt-xl-n3,.my-xl-n3{margin-top:-1rem!important}.mr-xl-n3,.mx-xl-n3{margin-right:-1rem!important}.mb-xl-n3,.my-xl-n3{margin-bottom:-1rem!important}.ml-xl-n3,.mx-xl-n3{margin-left:-1rem!important}.m-xl-n4{margin:-1.5rem!important}.mt-xl-n4,.my-xl-n4{margin-top:-1.5rem!important}.mr-xl-n4,.mx-xl-n4{margin-right:-1.5rem!important}.mb-xl-n4,.my-xl-n4{margin-bottom:-1.5rem!important}.ml-xl-n4,.mx-xl-n4{margin-left:-1.5rem!important}.m-xl-n5{margin:-3rem!important}.mt-xl-n5,.my-xl-n5{margin-top:-3rem!important}.mr-xl-n5,.mx-xl-n5{margin-right:-3rem!important}.mb-xl-n5,.my-xl-n5{margin-bottom:-3rem!important}.ml-xl-n5,.mx-xl-n5{margin-left:-3rem!important}.m-xl-auto{margin:auto!important}.mt-xl-auto,.my-xl-auto{margin-top:auto!important}.mr-xl-auto,.mx-xl-auto{margin-right:auto!important}.mb-xl-auto,.my-xl-auto{margin-bottom:auto!important}.ml-xl-auto,.mx-xl-auto{margin-left:auto!important}}.text-monospace{font-family:SFMono-Regular,Menlo,Monaco,Consolas,"Liberation Mono","Courier New",monospace!important}.text-justify{text-align:justify!important}.text-wrap{white-space:normal!important}.text-nowrap{white-space:nowrap!important}.text-truncate{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.text-left{text-align:left!important}.text-right{text-align:right!important}.text-center{text-align:center!important}@media (min-width:576px){.text-sm-left{text-align:left!important}.text-sm-right{text-align:right!important}.text-sm-center{text-align:center!important}}@media (min-width:768px){.text-md-left{text-align:left!important}.text-md-right{text-align:right!important}.text-md-center{text-align:center!important}}@media (min-width:992px){.text-lg-left{text-align:left!important}.text-lg-right{text-align:right!important}.text-lg-center{text-align:center!important}}@media (min-width:1200px){.text-xl-left{text-align:left!important}.text-xl-right{text-align:right!important}.text-xl-center{text-align:center!important}}.text-lowercase{text-transform:lowercase!important}.text-uppercase{text-transform:uppercase!important}.text-capitalize{text-transform:capitalize!important}.font-weight-light{font-weight:300!important}.font-weight-lighter{font-weight:lighter!important}.font-weight-normal{font-weight:400!important}.font-weight-bold{font-weight:700!important}.font-weight-bolder{font-weight:bolder!important}.font-italic{font-style:italic!important}.text-white{color:#fff!important}.text-primary{color:#007bff!important}a.text-primary:focus,a.text-primary:hover{color:#0056b3!important}.text-secondary{color:#6c757d!important}a.text-secondary:focus,a.text-secondary:hover{color:#494f54!important}.text-success{color:#28a745!important}a.text-success:focus,a.text-success:hover{color:#19692c!important}.text-info{color:#17a2b8!important}a.text-info:focus,a.text-info:hover{color:#0f6674!important}.text-warning{color:#ffc107!important}a.text-warning:focus,a.text-warning:hover{color:#ba8b00!important}.text-danger{color:#dc3545!important}a.text-danger:focus,a.text-danger:hover{color:#a71d2a!important}.text-light{color:#f8f9fa!important}a.text-light:focus,a.text-light:hover{color:#cbd3da!important}.text-dark{color:#343a40!important}a.text-dark:focus,a.text-dark:hover{color:#121416!important}.text-body{color:#212529!important}.text-muted{color:#6c757d!important}.text-black-50{color:rgba(0,0,0,.5)!important}.text-white-50{color:rgba(255,255,255,.5)!important}.text-hide{font:0/0 a;color:transparent;text-shadow:none;background-color:transparent;border:0}.text-decoration-none{text-decoration:none!important}.text-break{word-break:break-word!important;overflow-wrap:break-word!important}.text-reset{color:inherit!important}.visible{visibility:visible!important}.invisible{visibility:hidden!important}@media print{*,::after,::before{text-shadow:none!important;box-shadow:none!important}a:not(.btn){text-decoration:underline}abbr[title]::after{content:" (" attr(title) ")"}pre{white-space:pre-wrap!important}blockquote,pre{border:1px solid #adb5bd;page-break-inside:avoid}thead{display:table-header-group}img,tr{page-break-inside:avoid}h2,h3,p{orphans:3;widows:3}h2,h3{page-break-after:avoid}@page{size:a3}body{min-width:992px!important}.container{min-width:992px!important}.navbar{display:none}.badge{border:1px solid #000}.table{border-collapse:collapse!important}.table td,.table th{background-color:#fff!important}.table-bordered td,.table-bordered th{border:1px solid #dee2e6!important}.table-dark{color:inherit}.table-dark tbody+tbody,.table-dark td,.table-dark th,.table-dark thead th{border-color:#dee2e6}.table .thead-dark th{color:inherit;border-color:#dee2e6}}
7
+ /*# sourceMappingURL=bootstrap.min.css.map */
trunk/assets/css/index.html ADDED
File without changes
trunk/assets/css/main.css ADDED
@@ -0,0 +1,636 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ body {
2
+ background: #f1f1f1 !important;
3
+ font-family: sans-serif;
4
+ font-size: 12px !important;
5
+ color: #666666;
6
+ -webkit-font-smoothing: antialiased;
7
+ font-smoothing: antialiased;
8
+ }
9
+
10
+ .app a, .text-muted a {
11
+ color: #337ab7;
12
+ text-decoration: none;
13
+ }
14
+
15
+ /* Hides WP Nag Screen */
16
+ #update-nag, .update-nag {
17
+ display: none !important;
18
+ }
19
+
20
+ .btn-warning {
21
+ color: #fff !important;
22
+ }
23
+
24
+ /* Header */
25
+ #shr-header {
26
+ position: initial !important;
27
+ z-index: auto !important;
28
+ margin-left: -20px !important;
29
+ width: auto !important;
30
+ }
31
+
32
+ #shr-header .shr-header-content {
33
+ max-width: 100% !important;
34
+ margin: 0 0 0 20px !important;
35
+ }
36
+
37
+ .shr-mobile {
38
+ z-index: 2147483647 !important;
39
+ }
40
+
41
+ #shr-header .shr-nav-2 .shr-user-menu {
42
+ z-index: 2147483647 !important;
43
+ }
44
+
45
+ #shr-header .shr-sites-container {
46
+ z-index: 2147483647 !important;
47
+ }
48
+
49
+ #shr-header .shr-nav-2 .shr-signup-login {
50
+ margin-right: 2em !important;
51
+ }
52
+
53
+ #shr-header .shr-nav-2 .shr-profile {
54
+ margin-right: 15px !important;
55
+ }
56
+
57
+ /* End Header */
58
+
59
+ .container-fluid {
60
+ padding: 0px;
61
+ clear: both;
62
+ }
63
+
64
+ .canvas {
65
+ display: block;
66
+ }
67
+
68
+ h3 {
69
+ clear: both;
70
+ }
71
+
72
+ .clear {
73
+ clear: both !important;
74
+ height: auto !important;
75
+ }
76
+
77
+ #app_settings {
78
+ padding-top: 0px;
79
+ }
80
+
81
+ fieldset {
82
+ border: 1px solid #d8d8d8;
83
+ margin: 5px;
84
+ padding: 10px;
85
+ float:left;
86
+ }
87
+
88
+ fieldset#facebook-app.failed {
89
+ border: 1px solid #f44336;
90
+ }
91
+
92
+ .app {
93
+ width:100%;
94
+ margin: 15px 0 15px 0;
95
+ padding: 10px;
96
+ border: 1px solid #e5e5e5;
97
+ background-color: #fdfdfd;
98
+ box-shadow: 0 1px 1px rgba(0,0,0,.04);
99
+ }
100
+
101
+ .wide-button {
102
+ min-width: 200px;
103
+ }
104
+
105
+ .button-wrapper {
106
+ clear: both;
107
+ padding-top: 5px;
108
+ }
109
+
110
+ .app h2 {
111
+ font-size: 18px;
112
+ padding: 10px 10px 10px 20px;
113
+ margin: -10px -10px 0;
114
+ border-bottom: 1px solid #ccc;
115
+ }
116
+
117
+ .app-content {
118
+ padding: 15px 0 5px 10px;
119
+ }
120
+
121
+ .app label {
122
+ font-size: 12px;
123
+ display: inline;
124
+ line-height: 1.6em;
125
+ }
126
+
127
+ legend {
128
+ border: none;
129
+ width: auto;
130
+ font-weight: bold;
131
+ padding: 0px 10px;
132
+ color: #007bb6;
133
+ margin-bottom: 0;
134
+ font-size: 13px;
135
+ }
136
+
137
+ .location {
138
+ clear: both;
139
+ padding-top: 5px;
140
+ }
141
+
142
+ .location_item_cta {
143
+ margin-left: 25px;
144
+ }
145
+
146
+ .check {
147
+ position: relative;
148
+ }
149
+
150
+ .shr-form-item {
151
+ padding-bottom: 4px !important;
152
+ }
153
+
154
+ .shr-form-item > * {
155
+ display: inline-block !important;
156
+ max-width: 90%;
157
+ vertical-align: top;
158
+ }
159
+
160
+ .shr-form-text ~ .shr-form-text {
161
+ margin-top: .5rem;
162
+ }
163
+
164
+ .shr-form-text label {
165
+ margin-bottom: 0;
166
+ }
167
+
168
+ .regular-text{
169
+ margin: 1px;
170
+ padding: 3px 5px;
171
+ }
172
+
173
+ .label {
174
+ margin-right: 20px;
175
+ }
176
+
177
+ #iframe_container, iframe {
178
+ width: 100%;
179
+ height: 100%;
180
+ }
181
+
182
+ .bg-loading-img {
183
+ background-image:url(../img/ajax_loader_green_128.gif);
184
+ background-repeat:no-repeat;
185
+ background-position: center center;
186
+ }
187
+
188
+ #shortcode_container, #shortcode {
189
+ cursor: inherit;
190
+ width: 100%;
191
+ text-align: center;
192
+ background: white;
193
+ height: 30px;
194
+ }
195
+
196
+ #shortcode_container {
197
+ border-top: 3px solid #ccc;
198
+ }
199
+
200
+ #shortcode {
201
+ font-family: monospace;
202
+ }
203
+
204
+ .reveal-modal {
205
+ width: 720px;
206
+ height: 80%;
207
+ margin-left: -335px;
208
+ position: fixed;
209
+ /* display: none; */
210
+ }
211
+
212
+ .reveal-modal.has-shortcode iframe,
213
+ .reveal-modal.has-shortcode #iframe_container {
214
+ height: 100%;
215
+ }
216
+
217
+ .fieldset-footer {
218
+ clear: both;
219
+ overflow: hidden;
220
+ }
221
+
222
+ .fieldset-footer button {
223
+ float: left;
224
+ }
225
+
226
+ .fieldset-footer .app-status {
227
+ float: left;
228
+ }
229
+
230
+ #editing_modal {
231
+ padding: 0;
232
+ }
233
+
234
+ ul {
235
+ margin: 0px;
236
+ }
237
+
238
+ .green {
239
+ color: #11967a;
240
+ }
241
+
242
+ .red {
243
+ color: #f44336;
244
+ }
245
+
246
+ /**
247
+ * Spacing classes
248
+ * Should be used to modify the default spacing between objects (not between nodes of the same object)
249
+ * Please use judiciously. You want to be using defaults most of the time, these are exceptions!
250
+ * <type><location><size>
251
+ */
252
+ /* ====== Default spacing ====== */
253
+ h1, h2, h3, h4, h5, h6, ol,dl, p,blockquote, .media {margin:10px;}
254
+ h1, h2, h3, h4, h5, h6,img{padding-bottom:0px;}
255
+ pre{margin: 10px;}
256
+ table h1,table h2,table h3, table h4, table h5, table h6, table p, table ul, table ol, table dl{padding:0;}
257
+
258
+ .blocking-modal {
259
+ font-family: 'Open Sans', sans-serif;
260
+ top:150px;
261
+ background: white;
262
+ width: 680px;
263
+ overflow: hidden;
264
+ text-align: center;
265
+ color: #414042;
266
+ font-size: 14px;
267
+ line-height: 1.6em;
268
+ box-shadow: 0px 0px 52px rgba(0,0,0,0.32);
269
+ padding: 0;
270
+ height: 495px;
271
+ }
272
+
273
+ .api-key-modal {
274
+ height: auto;
275
+ }
276
+
277
+ h4 {
278
+ background: #424142;
279
+ color: #e6e6e6;
280
+ font-size: 24px;
281
+ line-height: 1.8em;
282
+ height: auto;
283
+ font-weight: 300;
284
+ margin: 0;
285
+ }
286
+
287
+ .blocking-modal a {
288
+ color: #2ba9e1;
289
+ font-weight: bold;
290
+ text-decoration: none;
291
+ }
292
+
293
+ .blocking-modal a:hover {
294
+ border-bottom: 1px dashed;
295
+ color: #0988be;
296
+ }
297
+
298
+ .blocking-modal h2 {
299
+ font-size: 28px;
300
+ font-weight: normal;
301
+ }
302
+
303
+ .blocking-modal p {
304
+ margin: 10px;
305
+ font-size: 12px;
306
+ line-height: 1.6em;
307
+ padding: 0px 10px 0px 10px;
308
+ }
309
+
310
+ .blocking-modal img {
311
+ width: 100px;
312
+ height: 100px;
313
+ }
314
+
315
+ .blocking-modal .btn_main {
316
+ margin-bottom: 5px;
317
+ position: relative;
318
+ cursor: pointer;
319
+ display: inline-block;
320
+ background: #FF9800;
321
+ color: white;
322
+ text-transform: uppercase;
323
+ text-decoration: none;
324
+ padding: 25px 80px;
325
+ font-size: 20px;
326
+ text-shadow: 0 1px 2px rgba(0, 0, 0, 0.25);
327
+ border-radius: 5px;
328
+ -webkit-box-shadow: inset 0 -3px #14947b;
329
+ box-shadow: inset 0 -3px #14947b;
330
+ }
331
+
332
+ .blocking-modal .btn_main:active {
333
+ top: 1px;
334
+ color: white;
335
+ outline: none;
336
+ -webkit-box-shadow: none;
337
+ box-shadow: none;
338
+ }
339
+
340
+ .blocking-modal .btn_main:hover {
341
+ background: #f79300;
342
+ color: white;
343
+ border: none;
344
+ }
345
+
346
+ .blocking-modal .shr-people {
347
+ background-image: url(../img/happy-people-cover.png);
348
+ background-position: center;
349
+ min-height: 200px;
350
+ background-size: contain;
351
+ background-repeat: no-repeat;
352
+ }
353
+
354
+ .blocking-modal .small {
355
+ font-size: 12px;
356
+ color: #888888;
357
+ }
358
+
359
+ input[type='text'] {
360
+ width: 272px;
361
+ }
362
+
363
+ .settings_updated {
364
+ color: #fff;
365
+ text-shadow: 0px 1px 1px rgba(0,0,0,0.4);
366
+ font-size: 14px;
367
+ background-color: #45a147 !important;
368
+ border-color: #316632 !important;
369
+ }
370
+
371
+ .signuppromo {
372
+ padding: 20px 20px;
373
+ color: #45A147;
374
+ font-size: 14px;
375
+ float: right;
376
+ width: 250px;
377
+ }
378
+
379
+ .signuppromo_note {
380
+ font: 300 12px/20px "open sans","helvetica neue",helvetica,arial,sans-serif;
381
+ color: #555;
382
+ }
383
+
384
+ .promoh1{
385
+ font: 400 16px/22px "open sans","helvetica neue",helvetica,arial,sans-serif;
386
+ margin: 0;
387
+ padding: 0;
388
+ }
389
+
390
+ .signuppromo ul {
391
+ margin: 24px 0px;
392
+ }
393
+
394
+ .signuppromo ul li {
395
+ background: url(../img/bolt.png) 0 2px no-repeat;
396
+ background-size: 18px 18px;
397
+ color: #555;
398
+ float: left;
399
+ font: 400 12px/18px "open sans","helvetica neue",helvetica,arial,sans-serif;
400
+ list-style: none;
401
+ padding: 2px 0 2px 32px;
402
+ text-align: left;
403
+ }
404
+
405
+ .sidebar_links {
406
+ padding: 20px 20px;
407
+ color: #45A147;
408
+ font-size: 14px;
409
+ }
410
+
411
+ .sidebar_links ul {
412
+ margin: 0px 0px 0px 15px;
413
+ list-style-type: square;
414
+ }
415
+
416
+ .sidebar_links ul li {
417
+ color: #555;
418
+ font: 400 12px/18px "open sans","helvetica neue",helvetica,arial,sans-serif;
419
+ margin: 0 0 4px 0;
420
+ text-align: left;
421
+ }
422
+
423
+ .key-status {
424
+ color: #fff;
425
+ text-align: center;
426
+ font-weight: 400;
427
+ }
428
+
429
+ .key-description {
430
+ line-height: 1.6em;
431
+ margin-top:10px;
432
+ }
433
+
434
+ .key-status.failed {
435
+ color: #EB5353;
436
+ }
437
+
438
+ .key-status.passed {
439
+ color: #45a147;
440
+ }
441
+
442
+ .blink {
443
+ text-decoration: blink;
444
+ -webkit-animation-name: blinker;
445
+ -webkit-animation-duration: 2s;
446
+ -webkit-animation-iteration-count:infinite;
447
+ -webkit-animation-timing-function:ease-in-out;
448
+ -webkit-animation-direction: alternate;
449
+ }
450
+
451
+ @keyframes blinker {
452
+ from {opacity: 1.0;}
453
+ to {opacity: 0.0;}
454
+ }
455
+
456
+ i.icon.icon-share_buttons {
457
+ background-position: 0 0px;
458
+ width: 16px;
459
+ height: 16px;
460
+ }
461
+
462
+ i.icon.icon-recommendations {
463
+ background-position: 0 -16px;
464
+ width: 16px;
465
+ height: 16px;
466
+ }
467
+
468
+ i.icon.icon-affiliate {
469
+ background-position: 0 -160px;
470
+ width: 16px;
471
+ height: 16px;
472
+ }
473
+
474
+ i.icon.icon-analytics {
475
+ background-position: 0 -32px;
476
+ width: 16px;
477
+ height: 16px;
478
+ }
479
+
480
+ i.icon.icon-website {
481
+ background-position: 0 -96px;
482
+ width: 16px;
483
+ height: 16px;
484
+ }
485
+
486
+ i.icon {
487
+ vertical-align: middle;
488
+ background-image: url(../img/shareaholic-icon-sprite@2x.png);
489
+ background-position: 0 0;
490
+ background-repeat: no-repeat;
491
+ display: inline-block;
492
+ position: relative;
493
+ background-size: 34px;
494
+ width: 16px;
495
+ height: 16px;
496
+ }
497
+
498
+
499
+
500
+ // Value Section
501
+ // *****************************************************************************
502
+
503
+ .plugin-value-section-container {
504
+ margin: 25px auto;
505
+ width: 650px;
506
+ }
507
+
508
+ .plugin-value-section {
509
+ margin: 25px auto;
510
+ height: 170px;
511
+ width: 650px;
512
+ font: 400 14px/20px "open sans", "helvetica neue", helvetica, arial, sans-serif;
513
+ -webkit-transition: all 0.3s ease-in-out;
514
+ -moz-transition: all 0.3s ease-in-out;
515
+ -o-transition: all 0.3s ease-in-out;
516
+ transition: all 0.3s ease-in-out;
517
+ }
518
+
519
+ .plugin-value-section .plugin-value-line {
520
+ display: block;
521
+ height: 1px;
522
+ width: 75%;
523
+ max-width: 770px;
524
+ margin: 0 auto;
525
+ border-top: 4px dashed rgba(160, 163, 166, 0.35);
526
+ margin: 47px auto -44px;
527
+ }
528
+
529
+ .plugin-value-section .plugin-value {
530
+ padding-top: 0px;
531
+ }
532
+
533
+ .plugin-value-section .plugin-value li {
534
+ position: relative;
535
+ float: left;
536
+ width: 25%;
537
+ margin-right: 0;
538
+ filter: progid:DXImageTransform.Microsoft.Alpha(Opacity=100);
539
+ opacity: 1;
540
+ text-align: center;
541
+ }
542
+
543
+ .plugin-value-section .plugin-value li:last-child {
544
+ border-right: none;
545
+ }
546
+
547
+ .plugin-value-section .plugin-value li p {
548
+ margin: 0;
549
+ padding: 1em 0.5em;
550
+ min-height: 110px;
551
+ color: rgb(136, 136, 136);
552
+ }
553
+
554
+ .plugin-value-section .plugin-value li a {
555
+ position: relative;
556
+ display: block;
557
+ background: transparent;
558
+ margin: 0 auto;
559
+ padding: 0;
560
+ }
561
+
562
+ .plugin-value-section .plugin-value li .icon {
563
+ display: block;
564
+ overflow: hidden;
565
+ height: 80px;
566
+ width: 80px;
567
+ line-height: 80px;
568
+ -webkit-border-radius: 50%;
569
+ -moz-border-radius: 50%;
570
+ -ms-border-radius: 50%;
571
+ -o-border-radius: 50%;
572
+ border-radius: 50%;
573
+ color: white;
574
+ margin: 0 auto 12px;
575
+ font-size: 34px;
576
+ }
577
+
578
+ .plugin-value-section .plugin-value li .icon.fa-bullhorn {
579
+ background: #bbea76;
580
+ }
581
+
582
+ .plugin-value-section .plugin-value li .icon.fa-fire {
583
+ background: #77dd77;
584
+ }
585
+
586
+ .plugin-value-section .plugin-value li .icon.fa-bar-chart-o {
587
+ background: #5ed5a4;
588
+ }
589
+
590
+ .plugin-value-section .plugin-value li .icon.fa-usd {
591
+ background: #49c0c0;
592
+ }
593
+
594
+ .plugin-value-section .plugin-value li.acquire .title {
595
+ color: #AAD56A;
596
+ }
597
+
598
+ .plugin-value-section .plugin-value li.engage .title {
599
+ color: #77dd77;
600
+ }
601
+
602
+ .plugin-value-section .plugin-value li.learn .title {
603
+ color: #5ed5a4;
604
+ }
605
+
606
+ .plugin-value-section .plugin-value li.monetize .title {
607
+ color: #49c0c0;
608
+ }
609
+
610
+ .plugin-value-section .plugin-value li a:hover {
611
+ -webkit-transition: background 0.2s;
612
+ -moz-transition: background 0.2s;
613
+ -o-transition: background 0.2s;
614
+ transition: background 0.2s;
615
+ }
616
+
617
+ .plugin-value-section .plugin-value li .title {
618
+ text-transform: none;
619
+ text-transform: uppercase;
620
+ font-size: 18px;
621
+ margin: 0;
622
+ padding: 0;
623
+ color: #2c3440;
624
+ display: block;
625
+ position: relative;
626
+ width: 100%;
627
+ }
628
+
629
+ .plugin-value-section.in-viewport {
630
+ -webkit-transition: all 0.5s ease-in-out;
631
+ -moz-transition: all 0.5s ease-in-out;
632
+ -o-transition: all 0.5s ease-in-out;
633
+ transition: all 0.5s ease-in-out;
634
+ filter: progid:DXImageTransform.Microsoft.Alpha(Opacity=100);
635
+ opacity: 1;
636
+ }
trunk/assets/css/modal-gloss.png ADDED
Binary file
trunk/assets/css/reveal.css ADDED
@@ -0,0 +1,109 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ /* --------------------------------------------------
2
+ Reveal Modals
3
+ -------------------------------------------------- */
4
+ .reveal-modal-bg {
5
+ position: fixed;
6
+ height: 100%;
7
+ width: 100%;
8
+ background: #000;
9
+ background: rgba(0, 0, 0, 0.8);
10
+ z-index: 100;
11
+ display: none;
12
+ top: 0;
13
+ left: 0; }
14
+
15
+ /* use super high z-index so that no other WP plugins will override */
16
+ .reveal-modal {
17
+ background: #fff url(modal-gloss.png) no-repeat -200px -80px;
18
+ border-radius: 5px;
19
+ box-shadow: 0 0 10px rgba(0, 0, 0, 0.4);
20
+ left: 50%;
21
+ margin-left: -300px;
22
+ position: fixed;
23
+ padding: 30px 20px 30px;
24
+ top: 150px;
25
+ visibility: hidden;
26
+ width: 500px;
27
+ z-index: 1000000; }
28
+ .reveal-modal form {
29
+ margin: 0; }
30
+ .reveal-modal h2 {
31
+ font: 600 18px/1 "open sans", "helvetica neue", helvetica, arial, sans-serif;
32
+ margin: 0 0 18px 0; }
33
+ .reveal-modal p {
34
+ font: 400 14px/1 "open sans", "helvetica neue", helvetica, arial, sans-serif;
35
+ margin: 0 0 14px 0; }
36
+ .reveal-modal p.note {
37
+ color: #888;
38
+ font-size: 12px; }
39
+ .reveal-modal p.signup-tos {
40
+ font: 400 10px/2 "open sans", "helvetica neue", helvetica, arial, sans-serif; }
41
+ .reveal-modal input[type="submit"] {
42
+ margin: 14px 0 0 0; }
43
+ .reveal-modal .config {
44
+ margin: 0 0 14px 0; }
45
+ .reveal-modal .config label {
46
+ display: block;
47
+ font: 600 12px/1 "open sans", "helvetica neue", helvetica, arial, sans-serif;
48
+ margin: 0 0 4px 0; }
49
+ .reveal-modal .config input[type="checkbox"] + label {
50
+ display: inline-block; }
51
+
52
+ .reveal-modal-iframe {
53
+ background: #fff;
54
+ border-radius: 5px;
55
+ padding: 0; }
56
+
57
+ .reveal-modal-iframe iframe {
58
+ border: 0; }
59
+
60
+ .reveal-modal.small {
61
+ width: 200px;
62
+ margin-left: -140px; }
63
+
64
+ .reveal-modal.medium {
65
+ width: 400px;
66
+ margin-left: -240px; }
67
+
68
+ .reveal-modal.large {
69
+ width: 600px;
70
+ margin-left: -340px; }
71
+
72
+ .reveal-modal.xlarge {
73
+ width: 800px;
74
+ margin-left: -440px; }
75
+
76
+ .reveal-modal .close-reveal-modal {
77
+ font-size: 22px;
78
+ line-height: .5;
79
+ position: absolute;
80
+ top: 15px;
81
+ right: 15px;
82
+ color: #aaa;
83
+ text-shadow: 0 -1px 1px rbga(0, 0, 0, 0.6);
84
+ font-weight: bold;
85
+ cursor: pointer; }
86
+
87
+ @media all and (max-width: 520px) {
88
+ .reveal-modal {
89
+ left: 50%;
90
+ margin-left: -160px;
91
+ padding: 30px 10px 0 10px;
92
+ top: 30px;
93
+ width: 300px; } }
94
+ /*
95
+
96
+ NOTES
97
+
98
+ Close button entity is &#215;
99
+
100
+ Example markup
101
+
102
+ <div id="myModal" class="reveal-modal">
103
+ <h2>Awesome. I have it.</h2>
104
+ <p class="lead">Your couch. I it's mine.</p>
105
+ <p>Lorem ipsum dolor sit amet, consectetur adipiscing elit. In ultrices aliquet placerat. Duis pulvinar orci et nisi euismod vitae tempus lorem consectetur. Duis at magna quis turpis mattis venenatis eget id diam. </p>
106
+ <a class="close-reveal-modal">&#215;</a>
107
+ </div>
108
+
109
+ */
trunk/assets/img/ajax_loader_green_128.gif ADDED
Binary file
trunk/assets/img/analytics@2x.png ADDED
Binary file
trunk/assets/img/bolt.png ADDED
Binary file
trunk/assets/img/check.png ADDED
Binary file
trunk/assets/img/glyphicons-halflings-white.png ADDED
Binary file
trunk/assets/img/glyphicons-halflings.png ADDED
Binary file
trunk/assets/img/happy-people-cover.png ADDED
Binary file
trunk/assets/img/index.html ADDED
File without changes
trunk/assets/img/related_content@2x.png ADDED
Binary file
trunk/assets/img/shareaholic-icon-sprite@2x.png ADDED
Binary file
trunk/assets/img/shareaholic-logo.png ADDED
Binary file
trunk/assets/img/shareaholic_com_sprite.png ADDED
Binary file
trunk/assets/img/sharebuttons@2x.png ADDED
Binary file
trunk/assets/index.html ADDED
File without changes
trunk/assets/js/bootstrap.js ADDED
@@ -0,0 +1,2276 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ /* ===================================================
2
+ * bootstrap-transition.js v2.3.1
3
+ * http://twitter.github.com/bootstrap/javascript.html#transitions
4
+ * ===================================================
5
+ * Copyright 2012 Twitter, Inc.
6
+ *
7
+ * Licensed under the Apache License, Version 2.0 (the "License");
8
+ * you may not use this file except in compliance with the License.
9
+ * You may obtain a copy of the License at
10
+ *
11
+ * http://www.apache.org/licenses/LICENSE-2.0
12
+ *
13
+ * Unless required by applicable law or agreed to in writing, software
14
+ * distributed under the License is distributed on an "AS IS" BASIS,
15
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
16
+ * See the License for the specific language governing permissions and
17
+ * limitations under the License.
18
+ * ========================================================== */
19
+
20
+
21
+ !function ($) {
22
+
23
+ "use strict"; // jshint ;_;
24
+
25
+
26
+ /* CSS TRANSITION SUPPORT (http://www.modernizr.com/)
27
+ * ======================================================= */
28
+
29
+ $(function () {
30
+
31
+ $.support.transition = (function () {
32
+
33
+ var transitionEnd = (function () {
34
+
35
+ var el = document.createElement('bootstrap')
36
+ , transEndEventNames = {
37
+ 'WebkitTransition' : 'webkitTransitionEnd'
38
+ , 'MozTransition' : 'transitionend'
39
+ , 'OTransition' : 'oTransitionEnd otransitionend'
40
+ , 'transition' : 'transitionend'
41
+ }
42
+ , name
43
+
44
+ for (name in transEndEventNames){
45
+ if (el.style[name] !== undefined) {
46
+ return transEndEventNames[name]
47
+ }
48
+ }
49
+
50
+ }())
51
+
52
+ return transitionEnd && {
53
+ end: transitionEnd
54
+ }
55
+
56
+ })()
57
+
58
+ })
59
+
60
+ }(window.jQuery);/* ==========================================================
61
+ * bootstrap-alert.js v2.3.1
62
+ * http://twitter.github.com/bootstrap/javascript.html#alerts
63
+ * ==========================================================
64
+ * Copyright 2012 Twitter, Inc.
65
+ *
66
+ * Licensed under the Apache License, Version 2.0 (the "License");
67
+ * you may not use this file except in compliance with the License.
68
+ * You may obtain a copy of the License at
69
+ *
70
+ * http://www.apache.org/licenses/LICENSE-2.0
71
+ *
72
+ * Unless required by applicable law or agreed to in writing, software
73
+ * distributed under the License is distributed on an "AS IS" BASIS,
74
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
75
+ * See the License for the specific language governing permissions and
76
+ * limitations under the License.
77
+ * ========================================================== */
78
+
79
+
80
+ !function ($) {
81
+
82
+ "use strict"; // jshint ;_;
83
+
84
+
85
+ /* ALERT CLASS DEFINITION
86
+ * ====================== */
87
+
88
+ var dismiss = '[data-dismiss="alert"]'
89
+ , Alert = function (el) {
90
+ $(el).on('click', dismiss, this.close)
91
+ }
92
+
93
+ Alert.prototype.close = function (e) {
94
+ var $this = $(this)
95
+ , selector = $this.attr('data-target')
96
+ , $parent
97
+
98
+ if (!selector) {
99
+ selector = $this.attr('href')
100
+ selector = selector && selector.replace(/.*(?=#[^\s]*$)/, '') //strip for ie7
101
+ }
102
+
103
+ $parent = $(selector)
104
+
105
+ e && e.preventDefault()
106
+
107
+ $parent.length || ($parent = $this.hasClass('alert') ? $this : $this.parent())
108
+
109
+ $parent.trigger(e = $.Event('close'))
110
+
111
+ if (e.isDefaultPrevented()) return
112
+
113
+ $parent.removeClass('in')
114
+
115
+ function removeElement() {
116
+ $parent
117
+ .trigger('closed')
118
+ .remove()
119
+ }
120
+
121
+ $.support.transition && $parent.hasClass('fade') ?
122
+ $parent.on($.support.transition.end, removeElement) :
123
+ removeElement()
124
+ }
125
+
126
+
127
+ /* ALERT PLUGIN DEFINITION
128
+ * ======================= */
129
+
130
+ var old = $.fn.alert
131
+
132
+ $.fn.alert = function (option) {
133
+ return this.each(function () {
134
+ var $this = $(this)
135
+ , data = $this.data('alert')
136
+ if (!data) $this.data('alert', (data = new Alert(this)))
137
+ if (typeof option == 'string') data[option].call($this)
138
+ })
139
+ }
140
+
141
+ $.fn.alert.Constructor = Alert
142
+
143
+
144
+ /* ALERT NO CONFLICT
145
+ * ================= */
146
+
147
+ $.fn.alert.noConflict = function () {
148
+ $.fn.alert = old
149
+ return this
150
+ }
151
+
152
+
153
+ /* ALERT DATA-API
154
+ * ============== */
155
+
156
+ $(document).on('click.alert.data-api', dismiss, Alert.prototype.close)
157
+
158
+ }(window.jQuery);/* ============================================================
159
+ * bootstrap-button.js v2.3.1
160
+ * http://twitter.github.com/bootstrap/javascript.html#buttons
161
+ * ============================================================
162
+ * Copyright 2012 Twitter, Inc.
163
+ *
164
+ * Licensed under the Apache License, Version 2.0 (the "License");
165
+ * you may not use this file except in compliance with the License.
166
+ * You may obtain a copy of the License at
167
+ *
168
+ * http://www.apache.org/licenses/LICENSE-2.0
169
+ *
170
+ * Unless required by applicable law or agreed to in writing, software
171
+ * distributed under the License is distributed on an "AS IS" BASIS,
172
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
173
+ * See the License for the specific language governing permissions and
174
+ * limitations under the License.
175
+ * ============================================================ */
176
+
177
+
178
+ !function ($) {
179
+
180
+ "use strict"; // jshint ;_;
181
+
182
+
183
+ /* BUTTON PUBLIC CLASS DEFINITION
184
+ * ============================== */
185
+
186
+ var Button = function (element, options) {
187
+ this.$element = $(element)
188
+ this.options = $.extend({}, $.fn.button.defaults, options)
189
+ }
190
+
191
+ Button.prototype.setState = function (state) {
192
+ var d = 'disabled'
193
+ , $el = this.$element
194
+ , data = $el.data()
195
+ , val = $el.is('input') ? 'val' : 'html'
196
+
197
+ state = state + 'Text'
198
+ data.resetText || $el.data('resetText', $el[val]())
199
+
200
+ $el[val](data[state] || this.options[state])
201
+
202
+ // push to event loop to allow forms to submit
203
+ setTimeout(function () {
204
+ state == 'loadingText' ?
205
+ $el.addClass(d).attr(d, d) :
206
+ $el.removeClass(d).removeAttr(d)
207
+ }, 0)
208
+ }
209
+
210
+ Button.prototype.toggle = function () {
211
+ var $parent = this.$element.closest('[data-toggle="buttons-radio"]')
212
+
213
+ $parent && $parent
214
+ .find('.active')
215
+ .removeClass('active')
216
+
217
+ this.$element.toggleClass('active')
218
+ }
219
+
220
+
221
+ /* BUTTON PLUGIN DEFINITION
222
+ * ======================== */
223
+
224
+ var old = $.fn.button
225
+
226
+ $.fn.button = function (option) {
227
+ return this.each(function () {
228
+ var $this = $(this)
229
+ , data = $this.data('button')
230
+ , options = typeof option == 'object' && option
231
+ if (!data) $this.data('button', (data = new Button(this, options)))
232
+ if (option == 'toggle') data.toggle()
233
+ else if (option) data.setState(option)
234
+ })
235
+ }
236
+
237
+ $.fn.button.defaults = {
238
+ loadingText: 'loading...'
239
+ }
240
+
241
+ $.fn.button.Constructor = Button
242
+
243
+
244
+ /* BUTTON NO CONFLICT
245
+ * ================== */
246
+
247
+ $.fn.button.noConflict = function () {
248
+ $.fn.button = old
249
+ return this
250
+ }
251
+
252
+
253
+ /* BUTTON DATA-API
254
+ * =============== */
255
+
256
+ $(document).on('click.button.data-api', '[data-toggle^=button]', function (e) {
257
+ var $btn = $(e.target)
258
+ if (!$btn.hasClass('btn')) $btn = $btn.closest('.btn')
259
+ $btn.button('toggle')
260
+ })
261
+
262
+ }(window.jQuery);/* ==========================================================
263
+ * bootstrap-carousel.js v2.3.1
264
+ * http://twitter.github.com/bootstrap/javascript.html#carousel
265
+ * ==========================================================
266
+ * Copyright 2012 Twitter, Inc.
267
+ *
268
+ * Licensed under the Apache License, Version 2.0 (the "License");
269
+ * you may not use this file except in compliance with the License.
270
+ * You may obtain a copy of the License at
271
+ *
272
+ * http://www.apache.org/licenses/LICENSE-2.0
273
+ *
274
+ * Unless required by applicable law or agreed to in writing, software
275
+ * distributed under the License is distributed on an "AS IS" BASIS,
276
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
277
+ * See the License for the specific language governing permissions and
278
+ * limitations under the License.
279
+ * ========================================================== */
280
+
281
+
282
+ !function ($) {
283
+
284
+ "use strict"; // jshint ;_;
285
+
286
+
287
+ /* CAROUSEL CLASS DEFINITION
288
+ * ========================= */
289
+
290
+ var Carousel = function (element, options) {
291
+ this.$element = $(element)
292
+ this.$indicators = this.$element.find('.carousel-indicators')
293
+ this.options = options
294
+ this.options.pause == 'hover' && this.$element
295
+ .on('mouseenter', $.proxy(this.pause, this))
296
+ .on('mouseleave', $.proxy(this.cycle, this))
297
+ }
298
+
299
+ Carousel.prototype = {
300
+
301
+ cycle: function (e) {
302
+ if (!e) this.paused = false
303
+ if (this.interval) clearInterval(this.interval);
304
+ this.options.interval
305
+ && !this.paused
306
+ && (this.interval = setInterval($.proxy(this.next, this), this.options.interval))
307
+ return this
308
+ }
309
+
310
+ , getActiveIndex: function () {
311
+ this.$active = this.$element.find('.item.active')
312
+ this.$items = this.$active.parent().children()
313
+ return this.$items.index(this.$active)
314
+ }
315
+
316
+ , to: function (pos) {
317
+ var activeIndex = this.getActiveIndex()
318
+ , that = this
319
+
320
+ if (pos > (this.$items.length - 1) || pos < 0) return
321
+
322
+ if (this.sliding) {
323
+ return this.$element.one('slid', function () {
324
+ that.to(pos)
325
+ })
326
+ }
327
+
328
+ if (activeIndex == pos) {
329
+ return this.pause().cycle()
330
+ }
331
+
332
+ return this.slide(pos > activeIndex ? 'next' : 'prev', $(this.$items[pos]))
333
+ }
334
+
335
+ , pause: function (e) {
336
+ if (!e) this.paused = true
337
+ if (this.$element.find('.next, .prev').length && $.support.transition.end) {
338
+ this.$element.trigger($.support.transition.end)
339
+ this.cycle(true)
340
+ }
341
+ clearInterval(this.interval)
342
+ this.interval = null
343
+ return this
344
+ }
345
+
346
+ , next: function () {
347
+ if (this.sliding) return
348
+ return this.slide('next')
349
+ }
350
+
351
+ , prev: function () {
352
+ if (this.sliding) return
353
+ return this.slide('prev')
354
+ }
355
+
356
+ , slide: function (type, next) {
357
+ var $active = this.$element.find('.item.active')
358
+ , $next = next || $active[type]()
359
+ , isCycling = this.interval
360
+ , direction = type == 'next' ? 'left' : 'right'
361
+ , fallback = type == 'next' ? 'first' : 'last'
362
+ , that = this
363
+ , e
364
+
365
+ this.sliding = true
366
+
367
+ isCycling && this.pause()
368
+
369
+ $next = $next.length ? $next : this.$element.find('.item')[fallback]()
370
+
371
+ e = $.Event('slide', {
372
+ relatedTarget: $next[0]
373
+ , direction: direction
374
+ })
375
+
376
+ if ($next.hasClass('active')) return
377
+
378
+ if (this.$indicators.length) {
379
+ this.$indicators.find('.active').removeClass('active')
380
+ this.$element.one('slid', function () {
381
+ var $nextIndicator = $(that.$indicators.children()[that.getActiveIndex()])
382
+ $nextIndicator && $nextIndicator.addClass('active')
383
+ })
384
+ }
385
+
386
+ if ($.support.transition && this.$element.hasClass('slide')) {
387
+ this.$element.trigger(e)
388
+ if (e.isDefaultPrevented()) return
389
+ $next.addClass(type)
390
+ $next[0].offsetWidth // force reflow
391
+ $active.addClass(direction)
392
+ $next.addClass(direction)
393
+ this.$element.one($.support.transition.end, function () {
394
+ $next.removeClass([type, direction].join(' ')).addClass('active')
395
+ $active.removeClass(['active', direction].join(' '))
396
+ that.sliding = false
397
+ setTimeout(function () { that.$element.trigger('slid') }, 0)
398
+ })
399
+ } else {
400
+ this.$element.trigger(e)
401
+ if (e.isDefaultPrevented()) return
402
+ $active.removeClass('active')
403
+ $next.addClass('active')
404
+ this.sliding = false
405
+ this.$element.trigger('slid')
406
+ }
407
+
408
+ isCycling && this.cycle()
409
+
410
+ return this
411
+ }
412
+
413
+ }
414
+
415
+
416
+ /* CAROUSEL PLUGIN DEFINITION
417
+ * ========================== */
418
+
419
+ var old = $.fn.carousel
420
+
421
+ $.fn.carousel = function (option) {
422
+ return this.each(function () {
423
+ var $this = $(this)
424
+ , data = $this.data('carousel')
425
+ , options = $.extend({}, $.fn.carousel.defaults, typeof option == 'object' && option)
426
+ , action = typeof option == 'string' ? option : options.slide
427
+ if (!data) $this.data('carousel', (data = new Carousel(this, options)))
428
+ if (typeof option == 'number') data.to(option)
429
+ else if (action) data[action]()
430
+ else if (options.interval) data.pause().cycle()
431
+ })
432
+ }
433
+
434
+ $.fn.carousel.defaults = {
435
+ interval: 5000
436
+ , pause: 'hover'
437
+ }
438
+
439
+ $.fn.carousel.Constructor = Carousel
440
+
441
+
442
+ /* CAROUSEL NO CONFLICT
443
+ * ==================== */
444
+
445
+ $.fn.carousel.noConflict = function () {
446
+ $.fn.carousel = old
447
+ return this
448
+ }
449
+
450
+ /* CAROUSEL DATA-API
451
+ * ================= */
452
+
453
+ $(document).on('click.carousel.data-api', '[data-slide], [data-slide-to]', function (e) {
454
+ var $this = $(this), href
455
+ , $target = $($this.attr('data-target') || (href = $this.attr('href')) && href.replace(/.*(?=#[^\s]+$)/, '')) //strip for ie7
456
+ , options = $.extend({}, $target.data(), $this.data())
457
+ , slideIndex
458
+
459
+ $target.carousel(options)
460
+
461
+ if (slideIndex = $this.attr('data-slide-to')) {
462
+ $target.data('carousel').pause().to(slideIndex).cycle()
463
+ }
464
+
465
+ e.preventDefault()
466
+ })
467
+
468
+ }(window.jQuery);/* =============================================================
469
+ * bootstrap-collapse.js v2.3.1
470
+ * http://twitter.github.com/bootstrap/javascript.html#collapse
471
+ * =============================================================
472
+ * Copyright 2012 Twitter, Inc.
473
+ *
474
+ * Licensed under the Apache License, Version 2.0 (the "License");
475
+ * you may not use this file except in compliance with the License.
476
+ * You may obtain a copy of the License at
477
+ *
478
+ * http://www.apache.org/licenses/LICENSE-2.0
479
+ *
480
+ * Unless required by applicable law or agreed to in writing, software
481
+ * distributed under the License is distributed on an "AS IS" BASIS,
482
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
483
+ * See the License for the specific language governing permissions and
484
+ * limitations under the License.
485
+ * ============================================================ */
486
+
487
+
488
+ !function ($) {
489
+
490
+ "use strict"; // jshint ;_;
491
+
492
+
493
+ /* COLLAPSE PUBLIC CLASS DEFINITION
494
+ * ================================ */
495
+
496
+ var Collapse = function (element, options) {
497
+ this.$element = $(element)
498
+ this.options = $.extend({}, $.fn.collapse.defaults, options)
499
+
500
+ if (this.options.parent) {
501
+ this.$parent = $(this.options.parent)
502
+ }
503
+
504
+ this.options.toggle && this.toggle()
505
+ }
506
+
507
+ Collapse.prototype = {
508
+
509
+ constructor: Collapse
510
+
511
+ , dimension: function () {
512
+ var hasWidth = this.$element.hasClass('width')
513
+ return hasWidth ? 'width' : 'height'
514
+ }
515
+
516
+ , show: function () {
517
+ var dimension
518
+ , scroll
519
+ , actives
520
+ , hasData
521
+
522
+ if (this.transitioning || this.$element.hasClass('in')) return
523
+
524
+ dimension = this.dimension()
525
+ scroll = $.camelCase(['scroll', dimension].join('-'))
526
+ actives = this.$parent && this.$parent.find('> .accordion-group > .in')
527
+
528
+ if (actives && actives.length) {
529
+ hasData = actives.data('collapse')
530
+ if (hasData && hasData.transitioning) return
531
+ actives.collapse('hide')
532
+ hasData || actives.data('collapse', null)
533
+ }
534
+
535
+ this.$element[dimension](0)
536
+ this.transition('addClass', $.Event('show'), 'shown')
537
+ $.support.transition && this.$element[dimension](this.$element[0][scroll])
538
+ }
539
+
540
+ , hide: function () {
541
+ var dimension
542
+ if (this.transitioning || !this.$element.hasClass('in')) return
543
+ dimension = this.dimension()
544
+ this.reset(this.$element[dimension]())
545
+ this.transition('removeClass', $.Event('hide'), 'hidden')
546
+ this.$element[dimension](0)
547
+ }
548
+
549
+ , reset: function (size) {
550
+ var dimension = this.dimension()
551
+
552
+ this.$element
553
+ .removeClass('collapse')
554
+ [dimension](size || 'auto')
555
+ [0].offsetWidth
556
+
557
+ this.$element[size !== null ? 'addClass' : 'removeClass']('collapse')
558
+
559
+ return this
560
+ }
561
+
562
+ , transition: function (method, startEvent, completeEvent) {
563
+ var that = this
564
+ , complete = function () {
565
+ if (startEvent.type == 'show') that.reset()
566
+ that.transitioning = 0
567
+ that.$element.trigger(completeEvent)
568
+ }
569
+
570
+ this.$element.trigger(startEvent)
571
+
572
+ if (startEvent.isDefaultPrevented()) return
573
+
574
+ this.transitioning = 1
575
+
576
+ this.$element[method]('in')
577
+
578
+ $.support.transition && this.$element.hasClass('collapse') ?
579
+ this.$element.one($.support.transition.end, complete) :
580
+ complete()
581
+ }
582
+
583
+ , toggle: function () {
584
+ this[this.$element.hasClass('in') ? 'hide' : 'show']()
585
+ }
586
+
587
+ }
588
+
589
+
590
+ /* COLLAPSE PLUGIN DEFINITION
591
+ * ========================== */
592
+
593
+ var old = $.fn.collapse
594
+
595
+ $.fn.collapse = function (option) {
596
+ return this.each(function () {
597
+ var $this = $(this)
598
+ , data = $this.data('collapse')
599
+ , options = $.extend({}, $.fn.collapse.defaults, $this.data(), typeof option == 'object' && option)
600
+ if (!data) $this.data('collapse', (data = new Collapse(this, options)))
601
+ if (typeof option == 'string') data[option]()
602
+ })
603
+ }
604
+
605
+ $.fn.collapse.defaults = {
606
+ toggle: true
607
+ }
608
+
609
+ $.fn.collapse.Constructor = Collapse
610
+
611
+
612
+ /* COLLAPSE NO CONFLICT
613
+ * ==================== */
614
+
615
+ $.fn.collapse.noConflict = function () {
616
+ $.fn.collapse = old
617
+ return this
618
+ }
619
+
620
+
621
+ /* COLLAPSE DATA-API
622
+ * ================= */
623
+
624
+ $(document).on('click.collapse.data-api', '[data-toggle=collapse]', function (e) {
625
+ var $this = $(this), href
626
+ , target = $this.attr('data-target')
627
+ || e.preventDefault()
628
+ || (href = $this.attr('href')) && href.replace(/.*(?=#[^\s]+$)/, '') //strip for ie7
629
+ , option = $(target).data('collapse') ? 'toggle' : $this.data()
630
+ $this[$(target).hasClass('in') ? 'addClass' : 'removeClass']('collapsed')
631
+ $(target).collapse(option)
632
+ })
633
+
634
+ }(window.jQuery);/* ============================================================
635
+ * bootstrap-dropdown.js v2.3.1
636
+ * http://twitter.github.com/bootstrap/javascript.html#dropdowns
637
+ * ============================================================
638
+ * Copyright 2012 Twitter, Inc.
639
+ *
640
+ * Licensed under the Apache License, Version 2.0 (the "License");
641
+ * you may not use this file except in compliance with the License.
642
+ * You may obtain a copy of the License at
643
+ *
644
+ * http://www.apache.org/licenses/LICENSE-2.0
645
+ *
646
+ * Unless required by applicable law or agreed to in writing, software
647
+ * distributed under the License is distributed on an "AS IS" BASIS,
648
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
649
+ * See the License for the specific language governing permissions and
650
+ * limitations under the License.
651
+ * ============================================================ */
652
+
653
+
654
+ !function ($) {
655
+
656
+ "use strict"; // jshint ;_;
657
+
658
+
659
+ /* DROPDOWN CLASS DEFINITION
660
+ * ========================= */
661
+
662
+ var toggle = '[data-toggle=dropdown]'
663
+ , Dropdown = function (element) {
664
+ var $el = $(element).on('click.dropdown.data-api', this.toggle)
665
+ $('html').on('click.dropdown.data-api', function () {
666
+ $el.parent().removeClass('open')
667
+ })
668
+ }
669
+
670
+ Dropdown.prototype = {
671
+
672
+ constructor: Dropdown
673
+
674
+ , toggle: function (e) {
675
+ var $this = $(this)
676
+ , $parent
677
+ , isActive
678
+
679
+ if ($this.is('.disabled, :disabled')) return
680
+
681
+ $parent = getParent($this)
682
+
683
+ isActive = $parent.hasClass('open')
684
+
685
+ clearMenus()
686
+
687
+ if (!isActive) {
688
+ $parent.toggleClass('open')
689
+ }
690
+
691
+ $this.focus()
692
+
693
+ return false
694
+ }
695
+
696
+ , keydown: function (e) {
697
+ var $this
698
+ , $items
699
+ , $active
700
+ , $parent
701
+ , isActive
702
+ , index
703
+
704
+ if (!/(38|40|27)/.test(e.keyCode)) return
705
+
706
+ $this = $(this)
707
+
708
+ e.preventDefault()
709
+ e.stopPropagation()
710
+
711
+ if ($this.is('.disabled, :disabled')) return
712
+
713
+ $parent = getParent($this)
714
+
715
+ isActive = $parent.hasClass('open')
716
+
717
+ if (!isActive || (isActive && e.keyCode == 27)) {
718
+ if (e.which == 27) $parent.find(toggle).focus()
719
+ return $this.click()
720
+ }
721
+
722
+ $items = $('[role=menu] li:not(.divider):visible a', $parent)
723
+
724
+ if (!$items.length) return
725
+
726
+ index = $items.index($items.filter(':focus'))
727
+
728
+ if (e.keyCode == 38 && index > 0) index-- // up
729
+ if (e.keyCode == 40 && index < $items.length - 1) index++ // down
730
+ if (!~index) index = 0
731
+
732
+ $items
733
+ .eq(index)
734
+ .focus()
735
+ }
736
+
737
+ }
738
+
739
+ function clearMenus() {
740
+ $(toggle).each(function () {
741
+ getParent($(this)).removeClass('open')
742
+ })
743
+ }
744
+
745
+ function getParent($this) {
746
+ var selector = $this.attr('data-target')
747
+ , $parent
748
+
749
+ if (!selector) {
750
+ selector = $this.attr('href')
751
+ selector = selector && /#/.test(selector) && selector.replace(/.*(?=#[^\s]*$)/, '') //strip for ie7
752
+ }
753
+
754
+ $parent = selector && $(selector)
755
+
756
+ if (!$parent || !$parent.length) $parent = $this.parent()
757
+
758
+ return $parent
759
+ }
760
+
761
+
762
+ /* DROPDOWN PLUGIN DEFINITION
763
+ * ========================== */
764
+
765
+ var old = $.fn.dropdown
766
+
767
+ $.fn.dropdown = function (option) {
768
+ return this.each(function () {
769
+ var $this = $(this)
770
+ , data = $this.data('dropdown')
771
+ if (!data) $this.data('dropdown', (data = new Dropdown(this)))
772
+ if (typeof option == 'string') data[option].call($this)
773
+ })
774
+ }
775
+
776
+ $.fn.dropdown.Constructor = Dropdown
777
+
778
+
779
+ /* DROPDOWN NO CONFLICT
780
+ * ==================== */
781
+
782
+ $.fn.dropdown.noConflict = function () {
783
+ $.fn.dropdown = old
784
+ return this
785
+ }
786
+
787
+
788
+ /* APPLY TO STANDARD DROPDOWN ELEMENTS
789
+ * =================================== */
790
+
791
+ $(document)
792
+ .on('click.dropdown.data-api', clearMenus)
793
+ .on('click.dropdown.data-api', '.dropdown form', function (e) { e.stopPropagation() })
794
+ .on('click.dropdown-menu', function (e) { e.stopPropagation() })
795
+ .on('click.dropdown.data-api' , toggle, Dropdown.prototype.toggle)
796
+ .on('keydown.dropdown.data-api', toggle + ', [role=menu]' , Dropdown.prototype.keydown)
797
+
798
+ }(window.jQuery);
799
+ /* =========================================================
800
+ * bootstrap-modal.js v2.3.1
801
+ * http://twitter.github.com/bootstrap/javascript.html#modals
802
+ * =========================================================
803
+ * Copyright 2012 Twitter, Inc.
804
+ *
805
+ * Licensed under the Apache License, Version 2.0 (the "License");
806
+ * you may not use this file except in compliance with the License.
807
+ * You may obtain a copy of the License at
808
+ *
809
+ * http://www.apache.org/licenses/LICENSE-2.0
810
+ *
811
+ * Unless required by applicable law or agreed to in writing, software
812
+ * distributed under the License is distributed on an "AS IS" BASIS,
813
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
814
+ * See the License for the specific language governing permissions and
815
+ * limitations under the License.
816
+ * ========================================================= */
817
+
818
+
819
+ !function ($) {
820
+
821
+ "use strict"; // jshint ;_;
822
+
823
+
824
+ /* MODAL CLASS DEFINITION
825
+ * ====================== */
826
+
827
+ var Modal = function (element, options) {
828
+ this.options = options
829
+ this.$element = $(element)
830
+ .delegate('[data-dismiss="modal"]', 'click.dismiss.modal', $.proxy(this.hide, this))
831
+ this.options.remote && this.$element.find('.modal-body').load(this.options.remote)
832
+ }
833
+
834
+ Modal.prototype = {
835
+
836
+ constructor: Modal
837
+
838
+ , toggle: function () {
839
+ return this[!this.isShown ? 'show' : 'hide']()
840
+ }
841
+
842
+ , show: function () {
843
+ var that = this
844
+ , e = $.Event('show')
845
+
846
+ this.$element.trigger(e)
847
+
848
+ if (this.isShown || e.isDefaultPrevented()) return
849
+
850
+ this.isShown = true
851
+
852
+ this.escape()
853
+
854
+ this.backdrop(function () {
855
+ var transition = $.support.transition && that.$element.hasClass('fade')
856
+
857
+ if (!that.$element.parent().length) {
858
+ that.$element.appendTo(document.body) //don't move modals dom position
859
+ }
860
+
861
+ that.$element.show()
862
+
863
+ if (transition) {
864
+ that.$element[0].offsetWidth // force reflow
865
+ }
866
+
867
+ that.$element
868
+ .addClass('in')
869
+ .attr('aria-hidden', false)
870
+
871
+ that.enforceFocus()
872
+
873
+ transition ?
874
+ that.$element.one($.support.transition.end, function () { that.$element.focus().trigger('shown') }) :
875
+ that.$element.focus().trigger('shown')
876
+
877
+ })
878
+ }
879
+
880
+ , hide: function (e) {
881
+ e && e.preventDefault()
882
+
883
+ var that = this
884
+
885
+ e = $.Event('hide')
886
+
887
+ this.$element.trigger(e)
888
+
889
+ if (!this.isShown || e.isDefaultPrevented()) return
890
+
891
+ this.isShown = false
892
+
893
+ this.escape()
894
+
895
+ $(document).off('focusin.modal')
896
+
897
+ this.$element
898
+ .removeClass('in')
899
+ .attr('aria-hidden', true)
900
+
901
+ $.support.transition && this.$element.hasClass('fade') ?
902
+ this.hideWithTransition() :
903
+ this.hideModal()
904
+ }
905
+
906
+ , enforceFocus: function () {
907
+ var that = this
908
+ $(document).on('focusin.modal', function (e) {
909
+ if (that.$element[0] !== e.target && !that.$element.has(e.target).length) {
910
+ that.$element.focus()
911
+ }
912
+ })
913
+ }
914
+
915
+ , escape: function () {
916
+ var that = this
917
+ if (this.isShown && this.options.keyboard) {
918
+ this.$element.on('keyup.dismiss.modal', function ( e ) {
919
+ e.which == 27 && that.hide()
920
+ })
921
+ } else if (!this.isShown) {
922
+ this.$element.off('keyup.dismiss.modal')
923
+ }
924
+ }
925
+
926
+ , hideWithTransition: function () {
927
+ var that = this
928
+ , timeout = setTimeout(function () {
929
+ that.$element.off($.support.transition.end)
930
+ that.hideModal()
931
+ }, 500)
932
+
933
+ this.$element.one($.support.transition.end, function () {
934
+ clearTimeout(timeout)
935
+ that.hideModal()
936
+ })
937
+ }
938
+
939
+ , hideModal: function () {
940
+ var that = this
941
+ this.$element.hide()
942
+ this.backdrop(function () {
943
+ that.removeBackdrop()
944
+ that.$element.trigger('hidden')
945
+ })
946
+ }
947
+
948
+ , removeBackdrop: function () {
949
+ this.$backdrop && this.$backdrop.remove()
950
+ this.$backdrop = null
951
+ }
952
+
953
+ , backdrop: function (callback) {
954
+ var that = this
955
+ , animate = this.$element.hasClass('fade') ? 'fade' : ''
956
+
957
+ if (this.isShown && this.options.backdrop) {
958
+ var doAnimate = $.support.transition && animate
959
+
960
+ this.$backdrop = $('<div class="modal-backdrop ' + animate + '" />')
961
+ .appendTo(document.body)
962
+
963
+ this.$backdrop.click(
964
+ this.options.backdrop == 'static' ?
965
+ $.proxy(this.$element[0].focus, this.$element[0])
966
+ : $.proxy(this.hide, this)
967
+ )
968
+
969
+ if (doAnimate) this.$backdrop[0].offsetWidth // force reflow
970
+
971
+ this.$backdrop.addClass('in')
972
+
973
+ if (!callback) return
974
+
975
+ doAnimate ?
976
+ this.$backdrop.one($.support.transition.end, callback) :
977
+ callback()
978
+
979
+ } else if (!this.isShown && this.$backdrop) {
980
+ this.$backdrop.removeClass('in')
981
+
982
+ $.support.transition && this.$element.hasClass('fade')?
983
+ this.$backdrop.one($.support.transition.end, callback) :
984
+ callback()
985
+
986
+ } else if (callback) {
987
+ callback()
988
+ }
989
+ }
990
+ }
991
+
992
+
993
+ /* MODAL PLUGIN DEFINITION
994
+ * ======================= */
995
+
996
+ var old = $.fn.modal
997
+
998
+ $.fn.modal = function (option) {
999
+ return this.each(function () {
1000
+ var $this = $(this)
1001
+ , data = $this.data('modal')
1002
+ , options = $.extend({}, $.fn.modal.defaults, $this.data(), typeof option == 'object' && option)
1003
+ if (!data) $this.data('modal', (data = new Modal(this, options)))
1004
+ if (typeof option == 'string') data[option]()
1005
+ else if (options.show) data.show()
1006
+ })
1007
+ }
1008
+
1009
+ $.fn.modal.defaults = {
1010
+ backdrop: true
1011
+ , keyboard: true
1012
+ , show: true
1013
+ }
1014
+
1015
+ $.fn.modal.Constructor = Modal
1016
+
1017
+
1018
+ /* MODAL NO CONFLICT
1019
+ * ================= */
1020
+
1021
+ $.fn.modal.noConflict = function () {
1022
+ $.fn.modal = old
1023
+ return this
1024
+ }
1025
+
1026
+
1027
+ /* MODAL DATA-API
1028
+ * ============== */
1029
+
1030
+ $(document).on('click.modal.data-api', '[data-toggle="modal"]', function (e) {
1031
+ var $this = $(this)
1032
+ , href = $this.attr('href')
1033
+ , $target = $($this.attr('data-target') || (href && href.replace(/.*(?=#[^\s]+$)/, ''))) //strip for ie7
1034
+ , option = $target.data('modal') ? 'toggle' : $.extend({ remote:!/#/.test(href) && href }, $target.data(), $this.data())
1035
+
1036
+ e.preventDefault()
1037
+
1038
+ $target
1039
+ .modal(option)
1040
+ .one('hide', function () {
1041
+ $this.focus()
1042
+ })
1043
+ })
1044
+
1045
+ }(window.jQuery);
1046
+ /* ===========================================================
1047
+ * bootstrap-tooltip.js v2.3.1
1048
+ * http://twitter.github.com/bootstrap/javascript.html#tooltips
1049
+ * Inspired by the original jQuery.tipsy by Jason Frame
1050
+ * ===========================================================
1051
+ * Copyright 2012 Twitter, Inc.
1052
+ *
1053
+ * Licensed under the Apache License, Version 2.0 (the "License");
1054
+ * you may not use this file except in compliance with the License.
1055
+ * You may obtain a copy of the License at
1056
+ *
1057
+ * http://www.apache.org/licenses/LICENSE-2.0
1058
+ *
1059
+ * Unless required by applicable law or agreed to in writing, software
1060
+ * distributed under the License is distributed on an "AS IS" BASIS,
1061
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
1062
+ * See the License for the specific language governing permissions and
1063
+ * limitations under the License.
1064
+ * ========================================================== */
1065
+
1066
+
1067
+ !function ($) {
1068
+
1069
+ "use strict"; // jshint ;_;
1070
+
1071
+
1072
+ /* TOOLTIP PUBLIC CLASS DEFINITION
1073
+ * =============================== */
1074
+
1075
+ var Tooltip = function (element, options) {
1076
+ this.init('tooltip', element, options)
1077
+ }
1078
+
1079
+ Tooltip.prototype = {
1080
+
1081
+ constructor: Tooltip
1082
+
1083
+ , init: function (type, element, options) {
1084
+ var eventIn
1085
+ , eventOut
1086
+ , triggers
1087
+ , trigger
1088
+ , i
1089
+
1090
+ this.type = type
1091
+ this.$element = $(element)
1092
+ this.options = this.getOptions(options)
1093
+ this.enabled = true
1094
+
1095
+ triggers = this.options.trigger.split(' ')
1096
+
1097
+ for (i = triggers.length; i--;) {
1098
+ trigger = triggers[i]
1099
+ if (trigger == 'click') {
1100
+ this.$element.on('click.' + this.type, this.options.selector, $.proxy(this.toggle, this))
1101
+ } else if (trigger != 'manual') {
1102
+ eventIn = trigger == 'hover' ? 'mouseenter' : 'focus'
1103
+ eventOut = trigger == 'hover' ? 'mouseleave' : 'blur'
1104
+ this.$element.on(eventIn + '.' + this.type, this.options.selector, $.proxy(this.enter, this))
1105
+ this.$element.on(eventOut + '.' + this.type, this.options.selector, $.proxy(this.leave, this))
1106
+ }
1107
+ }
1108
+
1109
+ this.options.selector ?
1110
+ (this._options = $.extend({}, this.options, { trigger: 'manual', selector: '' })) :
1111
+ this.fixTitle()
1112
+ }
1113
+
1114
+ , getOptions: function (options) {
1115
+ options = $.extend({}, $.fn[this.type].defaults, this.$element.data(), options)
1116
+
1117
+ if (options.delay && typeof options.delay == 'number') {
1118
+ options.delay = {
1119
+ show: options.delay
1120
+ , hide: options.delay
1121
+ }
1122
+ }
1123
+
1124
+ return options
1125
+ }
1126
+
1127
+ , enter: function (e) {
1128
+ var defaults = $.fn[this.type].defaults
1129
+ , options = {}
1130
+ , self
1131
+
1132
+ this._options && $.each(this._options, function (key, value) {
1133
+ if (defaults[key] != value) options[key] = value
1134
+ }, this)
1135
+
1136
+ self = $(e.currentTarget)[this.type](options).data(this.type)
1137
+
1138
+ if (!self.options.delay || !self.options.delay.show) return self.show()
1139
+
1140
+ clearTimeout(this.timeout)
1141
+ self.hoverState = 'in'
1142
+ this.timeout = setTimeout(function() {
1143
+ if (self.hoverState == 'in') self.show()
1144
+ }, self.options.delay.show)
1145
+ }
1146
+
1147
+ , leave: function (e) {
1148
+ var self = $(e.currentTarget)[this.type](this._options).data(this.type)
1149
+
1150
+ if (this.timeout) clearTimeout(this.timeout)
1151
+ if (!self.options.delay || !self.options.delay.hide) return self.hide()
1152
+
1153
+ self.hoverState = 'out'
1154
+ this.timeout = setTimeout(function() {
1155
+ if (self.hoverState == 'out') self.hide()
1156
+ }, self.options.delay.hide)
1157
+ }
1158
+
1159
+ , show: function () {
1160
+ var $tip
1161
+ , pos
1162
+ , actualWidth
1163
+ , actualHeight
1164
+ , placement
1165
+ , tp
1166
+ , e = $.Event('show')
1167
+
1168
+ if (this.hasContent() && this.enabled) {
1169
+ this.$element.trigger(e)
1170
+ if (e.isDefaultPrevented()) return
1171
+ $tip = this.tip()
1172
+ this.setContent()
1173
+
1174
+ if (this.options.animation) {
1175
+ $tip.addClass('fade')
1176
+ }
1177
+
1178
+ placement = typeof this.options.placement == 'function' ?
1179
+ this.options.placement.call(this, $tip[0], this.$element[0]) :
1180
+ this.options.placement
1181
+
1182
+ $tip
1183
+ .detach()
1184
+ .css({ top: 0, left: 0, display: 'block' })
1185
+
1186
+ this.options.container ? $tip.appendTo(this.options.container) : $tip.insertAfter(this.$element)
1187
+
1188
+ pos = this.getPosition()
1189
+
1190
+ actualWidth = $tip[0].offsetWidth
1191
+ actualHeight = $tip[0].offsetHeight
1192
+
1193
+ switch (placement) {
1194
+ case 'bottom':
1195
+ tp = {top: pos.top + pos.height, left: pos.left + pos.width / 2 - actualWidth / 2}
1196
+ break
1197
+ case 'top':
1198
+ tp = {top: pos.top - actualHeight, left: pos.left + pos.width / 2 - actualWidth / 2}
1199
+ break
1200
+ case 'left':
1201
+ tp = {top: pos.top + pos.height / 2 - actualHeight / 2, left: pos.left - actualWidth}
1202
+ break
1203
+ case 'right':
1204
+ tp = {top: pos.top + pos.height / 2 - actualHeight / 2, left: pos.left + pos.width}
1205
+ break
1206
+ }
1207
+
1208
+ this.applyPlacement(tp, placement)
1209
+ this.$element.trigger('shown')
1210
+ }
1211
+ }
1212
+
1213
+ , applyPlacement: function(offset, placement){
1214
+ var $tip = this.tip()
1215
+ , width = $tip[0].offsetWidth
1216
+ , height = $tip[0].offsetHeight
1217
+ , actualWidth
1218
+ , actualHeight
1219
+ , delta
1220
+ , replace
1221
+
1222
+ $tip
1223
+ .offset(offset)
1224
+ .addClass(placement)
1225
+ .addClass('in')
1226
+
1227
+ actualWidth = $tip[0].offsetWidth
1228
+ actualHeight = $tip[0].offsetHeight
1229
+
1230
+ if (placement == 'top' && actualHeight != height) {
1231
+ offset.top = offset.top + height - actualHeight
1232
+ replace = true
1233
+ }
1234
+
1235
+ if (placement == 'bottom' || placement == 'top') {
1236
+ delta = 0
1237
+
1238
+ if (offset.left < 0){
1239
+ delta = offset.left * -2
1240
+ offset.left = 0
1241
+ $tip.offset(offset)
1242
+ actualWidth = $tip[0].offsetWidth
1243
+ actualHeight = $tip[0].offsetHeight
1244
+ }
1245
+
1246
+ this.replaceArrow(delta - width + actualWidth, actualWidth, 'left')
1247
+ } else {
1248
+ this.replaceArrow(actualHeight - height, actualHeight, 'top')
1249
+ }
1250
+
1251
+ if (replace) $tip.offset(offset)
1252
+ }
1253
+
1254
+ , replaceArrow: function(delta, dimension, position){
1255
+ this
1256
+ .arrow()
1257
+ .css(position, delta ? (50 * (1 - delta / dimension) + "%") : '')
1258
+ }
1259
+
1260
+ , setContent: function () {
1261
+ var $tip = this.tip()
1262
+ , title = this.getTitle()
1263
+
1264
+ $tip.find('.tooltip-inner')[this.options.html ? 'html' : 'text'](title)
1265
+ $tip.removeClass('fade in top bottom left right')
1266
+ }
1267
+
1268
+ , hide: function () {
1269
+ var that = this
1270
+ , $tip = this.tip()
1271
+ , e = $.Event('hide')
1272
+
1273
+ this.$element.trigger(e)
1274
+ if (e.isDefaultPrevented()) return
1275
+
1276
+ $tip.removeClass('in')
1277
+
1278
+ function removeWithAnimation() {
1279
+ var timeout = setTimeout(function () {
1280
+ $tip.off($.support.transition.end).detach()
1281
+ }, 500)
1282
+
1283
+ $tip.one($.support.transition.end, function () {
1284
+ clearTimeout(timeout)
1285
+ $tip.detach()
1286
+ })
1287
+ }
1288
+
1289
+ $.support.transition && this.$tip.hasClass('fade') ?
1290
+ removeWithAnimation() :
1291
+ $tip.detach()
1292
+
1293
+ this.$element.trigger('hidden')
1294
+
1295
+ return this
1296
+ }
1297
+
1298
+ , fixTitle: function () {
1299
+ var $e = this.$element
1300
+ if ($e.attr('title') || typeof($e.attr('data-original-title')) != 'string') {
1301
+ $e.attr('data-original-title', $e.attr('title') || '').attr('title', '')
1302
+ }
1303
+ }
1304
+
1305
+ , hasContent: function () {
1306
+ return this.getTitle()
1307
+ }
1308
+
1309
+ , getPosition: function () {
1310
+ var el = this.$element[0]
1311
+ return $.extend({}, (typeof el.getBoundingClientRect == 'function') ? el.getBoundingClientRect() : {
1312
+ width: el.offsetWidth
1313
+ , height: el.offsetHeight
1314
+ }, this.$element.offset())
1315
+ }
1316
+
1317
+ , getTitle: function () {
1318
+ var title
1319
+ , $e = this.$element
1320
+ , o = this.options
1321
+
1322
+ title = $e.attr('data-original-title')
1323
+ || (typeof o.title == 'function' ? o.title.call($e[0]) : o.title)
1324
+
1325
+ return title
1326
+ }
1327
+
1328
+ , tip: function () {
1329
+ return this.$tip = this.$tip || $(this.options.template)
1330
+ }
1331
+
1332
+ , arrow: function(){
1333
+ return this.$arrow = this.$arrow || this.tip().find(".tooltip-arrow")
1334
+ }
1335
+
1336
+ , validate: function () {
1337
+ if (!this.$element[0].parentNode) {
1338
+ this.hide()
1339
+ this.$element = null
1340
+ this.options = null
1341
+ }
1342
+ }
1343
+
1344
+ , enable: function () {
1345
+ this.enabled = true
1346
+ }
1347
+
1348
+ , disable: function () {
1349
+ this.enabled = false
1350
+ }
1351
+
1352
+ , toggleEnabled: function () {
1353
+ this.enabled = !this.enabled
1354
+ }
1355
+
1356
+ , toggle: function (e) {
1357
+ var self = e ? $(e.currentTarget)[this.type](this._options).data(this.type) : this
1358
+ self.tip().hasClass('in') ? self.hide() : self.show()
1359
+ }
1360
+
1361
+ , destroy: function () {
1362
+ this.hide().$element.off('.' + this.type).removeData(this.type)
1363
+ }
1364
+
1365
+ }
1366
+
1367
+
1368
+ /* TOOLTIP PLUGIN DEFINITION
1369
+ * ========================= */
1370
+
1371
+ var old = $.fn.tooltip
1372
+
1373
+ $.fn.tooltip = function ( option ) {
1374
+ return this.each(function () {
1375
+ var $this = $(this)
1376
+ , data = $this.data('tooltip')
1377
+ , options = typeof option == 'object' && option
1378
+ if (!data) $this.data('tooltip', (data = new Tooltip(this, options)))
1379
+ if (typeof option == 'string') data[option]()
1380
+ })
1381
+ }
1382
+
1383
+ $.fn.tooltip.Constructor = Tooltip
1384
+
1385
+ $.fn.tooltip.defaults = {
1386
+ animation: true
1387
+ , placement: 'top'
1388
+ , selector: false
1389
+ , template: '<div class="tooltip"><div class="tooltip-arrow"></div><div class="tooltip-inner"></div></div>'
1390
+ , trigger: 'hover focus'
1391
+ , title: ''
1392
+ , delay: 0
1393
+ , html: false
1394
+ , container: false
1395
+ }
1396
+
1397
+
1398
+ /* TOOLTIP NO CONFLICT
1399
+ * =================== */
1400
+
1401
+ $.fn.tooltip.noConflict = function () {
1402
+ $.fn.tooltip = old
1403
+ return this
1404
+ }
1405
+
1406
+ }(window.jQuery);
1407
+ /* ===========================================================
1408
+ * bootstrap-popover.js v2.3.1
1409
+ * http://twitter.github.com/bootstrap/javascript.html#popovers
1410
+ * ===========================================================
1411
+ * Copyright 2012 Twitter, Inc.
1412
+ *
1413
+ * Licensed under the Apache License, Version 2.0 (the "License");
1414
+ * you may not use this file except in compliance with the License.
1415
+ * You may obtain a copy of the License at
1416
+ *
1417
+ * http://www.apache.org/licenses/LICENSE-2.0
1418
+ *
1419
+ * Unless required by applicable law or agreed to in writing, software
1420
+ * distributed under the License is distributed on an "AS IS" BASIS,
1421
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
1422
+ * See the License for the specific language governing permissions and
1423
+ * limitations under the License.
1424
+ * =========================================================== */
1425
+
1426
+
1427
+ !function ($) {
1428
+
1429
+ "use strict"; // jshint ;_;
1430
+
1431
+
1432
+ /* POPOVER PUBLIC CLASS DEFINITION
1433
+ * =============================== */
1434
+
1435
+ var Popover = function (element, options) {
1436
+ this.init('popover', element, options)
1437
+ }
1438
+
1439
+
1440
+ /* NOTE: POPOVER EXTENDS BOOTSTRAP-TOOLTIP.js
1441
+ ========================================== */
1442
+
1443
+ Popover.prototype = $.extend({}, $.fn.tooltip.Constructor.prototype, {
1444
+
1445
+ constructor: Popover
1446
+
1447
+ , setContent: function () {
1448
+ var $tip = this.tip()
1449
+ , title = this.getTitle()
1450
+ , content = this.getContent()
1451
+
1452
+ $tip.find('.popover-title')[this.options.html ? 'html' : 'text'](title)
1453
+ $tip.find('.popover-content')[this.options.html ? 'html' : 'text'](content)
1454
+
1455
+ $tip.removeClass('fade top bottom left right in')
1456
+ }
1457
+
1458
+ , hasContent: function () {
1459
+ return this.getTitle() || this.getContent()
1460
+ }
1461
+
1462
+ , getContent: function () {
1463
+ var content
1464
+ , $e = this.$element
1465
+ , o = this.options
1466
+
1467
+ content = (typeof o.content == 'function' ? o.content.call($e[0]) : o.content)
1468
+ || $e.attr('data-content')
1469
+
1470
+ return content
1471
+ }
1472
+
1473
+ , tip: function () {
1474
+ if (!this.$tip) {
1475
+ this.$tip = $(this.options.template)
1476
+ }
1477
+ return this.$tip
1478
+ }
1479
+
1480
+ , destroy: function () {
1481
+ this.hide().$element.off('.' + this.type).removeData(this.type)
1482
+ }
1483
+
1484
+ })
1485
+
1486
+
1487
+ /* POPOVER PLUGIN DEFINITION
1488
+ * ======================= */
1489
+
1490
+ var old = $.fn.popover
1491
+
1492
+ $.fn.popover = function (option) {
1493
+ return this.each(function () {
1494
+ var $this = $(this)
1495
+ , data = $this.data('popover')
1496
+ , options = typeof option == 'object' && option
1497
+ if (!data) $this.data('popover', (data = new Popover(this, options)))
1498
+ if (typeof option == 'string') data[option]()
1499
+ })
1500
+ }
1501
+
1502
+ $.fn.popover.Constructor = Popover
1503
+
1504
+ $.fn.popover.defaults = $.extend({} , $.fn.tooltip.defaults, {
1505
+ placement: 'right'
1506
+ , trigger: 'click'
1507
+ , content: ''
1508
+ , template: '<div class="popover"><div class="arrow"></div><h3 class="popover-title"></h3><div class="popover-content"></div></div>'
1509
+ })
1510
+
1511
+
1512
+ /* POPOVER NO CONFLICT
1513
+ * =================== */
1514
+
1515
+ $.fn.popover.noConflict = function () {
1516
+ $.fn.popover = old
1517
+ return this
1518
+ }
1519
+
1520
+ }(window.jQuery);
1521
+ /* =============================================================
1522
+ * bootstrap-scrollspy.js v2.3.1
1523
+ * http://twitter.github.com/bootstrap/javascript.html#scrollspy
1524
+ * =============================================================
1525
+ * Copyright 2012 Twitter, Inc.
1526
+ *
1527
+ * Licensed under the Apache License, Version 2.0 (the "License");
1528
+ * you may not use this file except in compliance with the License.
1529
+ * You may obtain a copy of the License at
1530
+ *
1531
+ * http://www.apache.org/licenses/LICENSE-2.0
1532
+ *
1533
+ * Unless required by applicable law or agreed to in writing, software
1534
+ * distributed under the License is distributed on an "AS IS" BASIS,
1535
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
1536
+ * See the License for the specific language governing permissions and
1537
+ * limitations under the License.
1538
+ * ============================================================== */
1539
+
1540
+
1541
+ !function ($) {
1542
+
1543
+ "use strict"; // jshint ;_;
1544
+
1545
+
1546
+ /* SCROLLSPY CLASS DEFINITION
1547
+ * ========================== */
1548
+
1549
+ function ScrollSpy(element, options) {
1550
+ var process = $.proxy(this.process, this)
1551
+ , $element = $(element).is('body') ? $(window) : $(element)
1552
+ , href
1553
+ this.options = $.extend({}, $.fn.scrollspy.defaults, options)
1554
+ this.$scrollElement = $element.on('scroll.scroll-spy.data-api', process)
1555
+ this.selector = (this.options.target
1556
+ || ((href = $(element).attr('href')) && href.replace(/.*(?=#[^\s]+$)/, '')) //strip for ie7
1557
+ || '') + ' .nav li > a'
1558
+ this.$body = $('body')
1559
+ this.refresh()
1560
+ this.process()
1561
+ }
1562
+
1563
+ ScrollSpy.prototype = {
1564
+
1565
+ constructor: ScrollSpy
1566
+
1567
+ , refresh: function () {
1568
+ var self = this
1569
+ , $targets
1570
+
1571
+ this.offsets = $([])
1572
+ this.targets = $([])
1573
+
1574
+ $targets = this.$body
1575
+ .find(this.selector)
1576
+ .map(function () {
1577
+ var $el = $(this)
1578
+ , href = $el.data('target') || $el.attr('href')
1579
+ , $href = /^#\w/.test(href) && $(href)
1580
+ return ( $href
1581
+ && $href.length
1582
+ && [[ $href.position().top + (!$.isWindow(self.$scrollElement.get(0)) && self.$scrollElement.scrollTop()), href ]] ) || null
1583
+ })
1584
+ .sort(function (a, b) { return a[0] - b[0] })
1585
+ .each(function () {
1586
+ self.offsets.push(this[0])
1587
+ self.targets.push(this[1])
1588
+ })
1589
+ }
1590
+
1591
+ , process: function () {
1592
+ var scrollTop = this.$scrollElement.scrollTop() + this.options.offset
1593
+ , scrollHeight = this.$scrollElement[0].scrollHeight || this.$body[0].scrollHeight
1594
+ , maxScroll = scrollHeight - this.$scrollElement.height()
1595
+ , offsets = this.offsets
1596
+ , targets = this.targets
1597
+ , activeTarget = this.activeTarget
1598
+ , i
1599
+
1600
+ if (scrollTop >= maxScroll) {
1601
+ return activeTarget != (i = targets.last()[0])
1602
+ && this.activate ( i )
1603
+ }
1604
+
1605
+ for (i = offsets.length; i--;) {
1606
+ activeTarget != targets[i]
1607
+ && scrollTop >= offsets[i]
1608
+ && (!offsets[i + 1] || scrollTop <= offsets[i + 1])
1609
+ && this.activate( targets[i] )
1610
+ }
1611
+ }
1612
+
1613
+ , activate: function (target) {
1614
+ var active
1615
+ , selector
1616
+
1617
+ this.activeTarget = target
1618
+
1619
+ $(this.selector)
1620
+ .parent('.active')
1621
+ .removeClass('active')
1622
+
1623
+ selector = this.selector
1624
+ + '[data-target="' + target + '"],'
1625
+ + this.selector + '[href="' + target + '"]'
1626
+
1627
+ active = $(selector)
1628
+ .parent('li')
1629
+ .addClass('active')
1630
+
1631
+ if (active.parent('.dropdown-menu').length) {
1632
+ active = active.closest('li.dropdown').addClass('active')
1633
+ }
1634
+
1635
+ active.trigger('activate')
1636
+ }
1637
+
1638
+ }
1639
+
1640
+
1641
+ /* SCROLLSPY PLUGIN DEFINITION
1642
+ * =========================== */
1643
+
1644
+ var old = $.fn.scrollspy
1645
+
1646
+ $.fn.scrollspy = function (option) {
1647
+ return this.each(function () {
1648
+ var $this = $(this)
1649
+ , data = $this.data('scrollspy')
1650
+ , options = typeof option == 'object' && option
1651
+ if (!data) $this.data('scrollspy', (data = new ScrollSpy(this, options)))
1652
+ if (typeof option == 'string') data[option]()
1653
+ })
1654
+ }
1655
+
1656
+ $.fn.scrollspy.Constructor = ScrollSpy
1657
+
1658
+ $.fn.scrollspy.defaults = {
1659
+ offset: 10
1660
+ }
1661
+
1662
+
1663
+ /* SCROLLSPY NO CONFLICT
1664
+ * ===================== */
1665
+
1666
+ $.fn.scrollspy.noConflict = function () {
1667
+ $.fn.scrollspy = old
1668
+ return this
1669
+ }
1670
+
1671
+
1672
+ /* SCROLLSPY DATA-API
1673
+ * ================== */
1674
+
1675
+ $(window).on('load', function () {
1676
+ $('[data-spy="scroll"]').each(function () {
1677
+ var $spy = $(this)
1678
+ $spy.scrollspy($spy.data())
1679
+ })
1680
+ })
1681
+
1682
+ }(window.jQuery);/* ========================================================
1683
+ * bootstrap-tab.js v2.3.1
1684
+ * http://twitter.github.com/bootstrap/javascript.html#tabs
1685
+ * ========================================================
1686
+ * Copyright 2012 Twitter, Inc.
1687
+ *
1688
+ * Licensed under the Apache License, Version 2.0 (the "License");
1689
+ * you may not use this file except in compliance with the License.
1690
+ * You may obtain a copy of the License at
1691
+ *
1692
+ * http://www.apache.org/licenses/LICENSE-2.0
1693
+ *
1694
+ * Unless required by applicable law or agreed to in writing, software
1695
+ * distributed under the License is distributed on an "AS IS" BASIS,
1696
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
1697
+ * See the License for the specific language governing permissions and
1698
+ * limitations under the License.
1699
+ * ======================================================== */
1700
+
1701
+
1702
+ !function ($) {
1703
+
1704
+ "use strict"; // jshint ;_;
1705
+
1706
+
1707
+ /* TAB CLASS DEFINITION
1708
+ * ==================== */
1709
+
1710
+ var Tab = function (element) {
1711
+ this.element = $(element)
1712
+ }
1713
+
1714
+ Tab.prototype = {
1715
+
1716
+ constructor: Tab
1717
+
1718
+ , show: function () {
1719
+ var $this = this.element
1720
+ , $ul = $this.closest('ul:not(.dropdown-menu)')
1721
+ , selector = $this.attr('data-target')
1722
+ , previous
1723
+ , $target
1724
+ , e
1725
+
1726
+ if (!selector) {
1727
+ selector = $this.attr('href')
1728
+ selector = selector && selector.replace(/.*(?=#[^\s]*$)/, '') //strip for ie7
1729
+ }
1730
+
1731
+ if ( $this.parent('li').hasClass('active') ) return
1732
+
1733
+ previous = $ul.find('.active:last a')[0]
1734
+
1735
+ e = $.Event('show', {
1736
+ relatedTarget: previous
1737
+ })
1738
+
1739
+ $this.trigger(e)
1740
+
1741
+ if (e.isDefaultPrevented()) return
1742
+
1743
+ $target = $(selector)
1744
+
1745
+ this.activate($this.parent('li'), $ul)
1746
+ this.activate($target, $target.parent(), function () {
1747
+ $this.trigger({
1748
+ type: 'shown'
1749
+ , relatedTarget: previous
1750
+ })
1751
+ })
1752
+ }
1753
+
1754
+ , activate: function ( element, container, callback) {
1755
+ var $active = container.find('> .active')
1756
+ , transition = callback
1757
+ && $.support.transition
1758
+ && $active.hasClass('fade')
1759
+
1760
+ function next() {
1761
+ $active
1762
+ .removeClass('active')
1763
+ .find('> .dropdown-menu > .active')
1764
+ .removeClass('active')
1765
+
1766
+ element.addClass('active')
1767
+
1768
+ if (transition) {
1769
+ element[0].offsetWidth // reflow for transition
1770
+ element.addClass('in')
1771
+ } else {
1772
+ element.removeClass('fade')
1773
+ }
1774
+
1775
+ if ( element.parent('.dropdown-menu') ) {
1776
+ element.closest('li.dropdown').addClass('active')
1777
+ }
1778
+
1779
+ callback && callback()
1780
+ }
1781
+
1782
+ transition ?
1783
+ $active.one($.support.transition.end, next) :
1784
+ next()
1785
+
1786
+ $active.removeClass('in')
1787
+ }
1788
+ }
1789
+
1790
+
1791
+ /* TAB PLUGIN DEFINITION
1792
+ * ===================== */
1793
+
1794
+ var old = $.fn.tab
1795
+
1796
+ $.fn.tab = function ( option ) {
1797
+ return this.each(function () {
1798
+ var $this = $(this)
1799
+ , data = $this.data('tab')
1800
+ if (!data) $this.data('tab', (data = new Tab(this)))
1801
+ if (typeof option == 'string') data[option]()
1802
+ })
1803
+ }
1804
+
1805
+ $.fn.tab.Constructor = Tab
1806
+
1807
+
1808
+ /* TAB NO CONFLICT
1809
+ * =============== */
1810
+
1811
+ $.fn.tab.noConflict = function () {
1812
+ $.fn.tab = old
1813
+ return this
1814
+ }
1815
+
1816
+
1817
+ /* TAB DATA-API
1818
+ * ============ */
1819
+
1820
+ $(document).on('click.tab.data-api', '[data-toggle="tab"], [data-toggle="pill"]', function (e) {
1821
+ e.preventDefault()
1822
+ $(this).tab('show')
1823
+ })
1824
+
1825
+ }(window.jQuery);/* =============================================================
1826
+ * bootstrap-typeahead.js v2.3.1
1827
+ * http://twitter.github.com/bootstrap/javascript.html#typeahead
1828
+ * =============================================================
1829
+ * Copyright 2012 Twitter, Inc.
1830
+ *
1831
+ * Licensed under the Apache License, Version 2.0 (the "License");
1832
+ * you may not use this file except in compliance with the License.
1833
+ * You may obtain a copy of the License at
1834
+ *
1835
+ * http://www.apache.org/licenses/LICENSE-2.0
1836
+ *
1837
+ * Unless required by applicable law or agreed to in writing, software
1838
+ * distributed under the License is distributed on an "AS IS" BASIS,
1839
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
1840
+ * See the License for the specific language governing permissions and
1841
+ * limitations under the License.
1842
+ * ============================================================ */
1843
+
1844
+
1845
+ !function($){
1846
+
1847
+ "use strict"; // jshint ;_;
1848
+
1849
+
1850
+ /* TYPEAHEAD PUBLIC CLASS DEFINITION
1851
+ * ================================= */
1852
+
1853
+ var Typeahead = function (element, options) {
1854
+ this.$element = $(element)
1855
+ this.options = $.extend({}, $.fn.typeahead.defaults, options)
1856
+ this.matcher = this.options.matcher || this.matcher
1857
+ this.sorter = this.options.sorter || this.sorter
1858
+ this.highlighter = this.options.highlighter || this.highlighter
1859
+ this.updater = this.options.updater || this.updater
1860
+ this.source = this.options.source
1861
+ this.$menu = $(this.options.menu)
1862
+ this.shown = false
1863
+ this.listen()
1864
+ }
1865
+
1866
+ Typeahead.prototype = {
1867
+
1868
+ constructor: Typeahead
1869
+
1870
+ , select: function () {
1871
+ var val = this.$menu.find('.active').attr('data-value')
1872
+ this.$element
1873
+ .val(this.updater(val))
1874
+ .change()
1875
+ return this.hide()
1876
+ }
1877
+
1878
+ , updater: function (item) {
1879
+ return item
1880
+ }
1881
+
1882
+ , show: function () {
1883
+ var pos = $.extend({}, this.$element.position(), {
1884
+ height: this.$element[0].offsetHeight
1885
+ })
1886
+
1887
+ this.$menu
1888
+ .insertAfter(this.$element)
1889
+ .css({
1890
+ top: pos.top + pos.height
1891
+ , left: pos.left
1892
+ })
1893
+ .show()
1894
+
1895
+ this.shown = true
1896
+ return this
1897
+ }
1898
+
1899
+ , hide: function () {
1900
+ this.$menu.hide()
1901
+ this.shown = false
1902
+ return this
1903
+ }
1904
+
1905
+ , lookup: function (event) {
1906
+ var items
1907
+
1908
+ this.query = this.$element.val()
1909
+
1910
+ if (!this.query || this.query.length < this.options.minLength) {
1911
+ return this.shown ? this.hide() : this
1912
+ }
1913
+
1914
+ items = $.isFunction(this.source) ? this.source(this.query, $.proxy(this.process, this)) : this.source
1915
+
1916
+ return items ? this.process(items) : this
1917
+ }
1918
+
1919
+ , process: function (items) {
1920
+ var that = this
1921
+
1922
+ items = $.grep(items, function (item) {
1923
+ return that.matcher(item)
1924
+ })
1925
+
1926
+ items = this.sorter(items)
1927
+
1928
+ if (!items.length) {
1929
+ return this.shown ? this.hide() : this
1930
+ }
1931
+
1932
+ return this.render(items.slice(0, this.options.items)).show()
1933
+ }
1934
+
1935
+ , matcher: function (item) {
1936
+ return ~item.toLowerCase().indexOf(this.query.toLowerCase())
1937
+ }
1938
+
1939
+ , sorter: function (items) {
1940
+ var beginswith = []
1941
+ , caseSensitive = []
1942
+ , caseInsensitive = []
1943
+ , item
1944
+
1945
+ while (item = items.shift()) {
1946
+ if (!item.toLowerCase().indexOf(this.query.toLowerCase())) beginswith.push(item)
1947
+ else if (~item.indexOf(this.query)) caseSensitive.push(item)
1948
+ else caseInsensitive.push(item)
1949
+ }
1950
+
1951
+ return beginswith.concat(caseSensitive, caseInsensitive)
1952
+ }
1953
+
1954
+ , highlighter: function (item) {
1955
+ var query = this.query.replace(/[\-\[\]{}()*+?.,\\\^$|#\s]/g, '\\$&')
1956
+ return item.replace(new RegExp('(' + query + ')', 'ig'), function ($1, match) {
1957
+ return '<strong>' + match + '</strong>'
1958
+ })
1959
+ }
1960
+
1961
+ , render: function (items) {
1962
+ var that = this
1963
+
1964
+ items = $(items).map(function (i, item) {
1965
+ i = $(that.options.item).attr('data-value', item)
1966
+ i.find('a').html(that.highlighter(item))
1967
+ return i[0]
1968
+ })
1969
+
1970
+ items.first().addClass('active')
1971
+ this.$menu.html(items)
1972
+ return this
1973
+ }
1974
+
1975
+ , next: function (event) {
1976
+ var active = this.$menu.find('.active').removeClass('active')
1977
+ , next = active.next()
1978
+
1979
+ if (!next.length) {
1980
+ next = $(this.$menu.find('li')[0])
1981
+ }
1982
+
1983
+ next.addClass('active')
1984
+ }
1985
+
1986
+ , prev: function (event) {
1987
+ var active = this.$menu.find('.active').removeClass('active')
1988
+ , prev = active.prev()
1989
+
1990
+ if (!prev.length) {
1991
+ prev = this.$menu.find('li').last()
1992
+ }
1993
+
1994
+ prev.addClass('active')
1995
+ }
1996
+
1997
+ , listen: function () {
1998
+ this.$element
1999
+ .on('focus', $.proxy(this.focus, this))
2000
+ .on('blur', $.proxy(this.blur, this))
2001
+ .on('keypress', $.proxy(this.keypress, this))
2002
+ .on('keyup', $.proxy(this.keyup, this))
2003
+
2004
+ if (this.eventSupported('keydown')) {
2005
+ this.$element.on('keydown', $.proxy(this.keydown, this))
2006
+ }
2007
+
2008
+ this.$menu
2009
+ .on('click', $.proxy(this.click, this))
2010
+ .on('mouseenter', 'li', $.proxy(this.mouseenter, this))
2011
+ .on('mouseleave', 'li', $.proxy(this.mouseleave, this))
2012
+ }
2013
+
2014
+ , eventSupported: function(eventName) {
2015
+ var isSupported = eventName in this.$element
2016
+ if (!isSupported) {
2017
+ this.$element.setAttribute(eventName, 'return;')
2018
+ isSupported = typeof this.$element[eventName] === 'function'
2019
+ }
2020
+ return isSupported
2021
+ }
2022
+
2023
+ , move: function (e) {
2024
+ if (!this.shown) return
2025
+
2026
+ switch(e.keyCode) {
2027
+ case 9: // tab
2028
+ case 13: // enter
2029
+ case 27: // escape
2030
+ e.preventDefault()
2031
+ break
2032
+
2033
+ case 38: // up arrow
2034
+ e.preventDefault()
2035
+ this.prev()
2036
+ break
2037
+
2038
+ case 40: // down arrow
2039
+ e.preventDefault()
2040
+ this.next()
2041
+ break
2042
+ }
2043
+
2044
+ e.stopPropagation()
2045
+ }
2046
+
2047
+ , keydown: function (e) {
2048
+ this.suppressKeyPressRepeat = ~$.inArray(e.keyCode, [40,38,9,13,27])
2049
+ this.move(e)
2050
+ }
2051
+
2052
+ , keypress: function (e) {
2053
+ if (this.suppressKeyPressRepeat) return
2054
+ this.move(e)
2055
+ }
2056
+
2057
+ , keyup: function (e) {
2058
+ switch(e.keyCode) {
2059
+ case 40: // down arrow
2060
+ case 38: // up arrow
2061
+ case 16: // shift
2062
+ case 17: // ctrl
2063
+ case 18: // alt
2064
+ break
2065
+
2066
+ case 9: // tab
2067
+ case 13: // enter
2068
+ if (!this.shown) return
2069
+ this.select()
2070
+ break
2071
+
2072
+ case 27: // escape
2073
+ if (!this.shown) return
2074
+ this.hide()
2075
+ break
2076
+
2077
+ default:
2078
+ this.lookup()
2079
+ }
2080
+
2081
+ e.stopPropagation()
2082
+ e.preventDefault()
2083
+ }
2084
+
2085
+ , focus: function (e) {
2086
+ this.focused = true
2087
+ }
2088
+
2089
+ , blur: function (e) {
2090
+ this.focused = false
2091
+ if (!this.mousedover && this.shown) this.hide()
2092
+ }
2093
+
2094
+ , click: function (e) {
2095
+ e.stopPropagation()
2096
+ e.preventDefault()
2097
+ this.select()
2098
+ this.$element.focus()
2099
+ }
2100
+
2101
+ , mouseenter: function (e) {
2102
+ this.mousedover = true
2103
+ this.$menu.find('.active').removeClass('active')
2104
+ $(e.currentTarget).addClass('active')
2105
+ }
2106
+
2107
+ , mouseleave: function (e) {
2108
+ this.mousedover = false
2109
+ if (!this.focused && this.shown) this.hide()
2110
+ }
2111
+
2112
+ }
2113
+
2114
+
2115
+ /* TYPEAHEAD PLUGIN DEFINITION
2116
+ * =========================== */
2117
+
2118
+ var old = $.fn.typeahead
2119
+
2120
+ $.fn.typeahead = function (option) {
2121
+ return this.each(function () {
2122
+ var $this = $(this)
2123
+ , data = $this.data('typeahead')
2124
+ , options = typeof option == 'object' && option
2125
+ if (!data) $this.data('typeahead', (data = new Typeahead(this, options)))
2126
+ if (typeof option == 'string') data[option]()
2127
+ })
2128
+ }
2129
+
2130
+ $.fn.typeahead.defaults = {
2131
+ source: []
2132
+ , items: 8
2133
+ , menu: '<ul class="typeahead dropdown-menu"></ul>'
2134
+ , item: '<li><a href="#"></a></li>'
2135
+ , minLength: 1
2136
+ }
2137
+
2138
+ $.fn.typeahead.Constructor = Typeahead
2139
+
2140
+
2141
+ /* TYPEAHEAD NO CONFLICT
2142
+ * =================== */
2143
+
2144
+ $.fn.typeahead.noConflict = function () {
2145
+ $.fn.typeahead = old
2146
+ return this
2147
+ }
2148
+
2149
+
2150
+ /* TYPEAHEAD DATA-API
2151
+ * ================== */
2152
+
2153
+ $(document).on('focus.typeahead.data-api', '[data-provide="typeahead"]', function (e) {
2154
+ var $this = $(this)
2155
+ if ($this.data('typeahead')) return
2156
+ $this.typeahead($this.data())
2157
+ })
2158
+
2159
+ }(window.jQuery);
2160
+ /* ==========================================================
2161
+ * bootstrap-affix.js v2.3.1
2162
+ * http://twitter.github.com/bootstrap/javascript.html#affix
2163
+ * ==========================================================
2164
+ * Copyright 2012 Twitter, Inc.
2165
+ *
2166
+ * Licensed under the Apache License, Version 2.0 (the "License");
2167
+ * you may not use this file except in compliance with the License.
2168
+ * You may obtain a copy of the License at
2169
+ *
2170
+ * http://www.apache.org/licenses/LICENSE-2.0
2171
+ *
2172
+ * Unless required by applicable law or agreed to in writing, software
2173
+ * distributed under the License is distributed on an "AS IS" BASIS,
2174
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
2175
+ * See the License for the specific language governing permissions and
2176
+ * limitations under the License.
2177
+ * ========================================================== */
2178
+
2179
+
2180
+ !function ($) {
2181
+
2182
+ "use strict"; // jshint ;_;
2183
+
2184
+
2185
+ /* AFFIX CLASS DEFINITION
2186
+ * ====================== */
2187
+
2188
+ var Affix = function (element, options) {
2189
+ this.options = $.extend({}, $.fn.affix.defaults, options)
2190
+ this.$window = $(window)
2191
+ .on('scroll.affix.data-api', $.proxy(this.checkPosition, this))
2192
+ .on('click.affix.data-api', $.proxy(function () { setTimeout($.proxy(this.checkPosition, this), 1) }, this))
2193
+ this.$element = $(element)
2194
+ this.checkPosition()
2195
+ }
2196
+
2197
+ Affix.prototype.checkPosition = function () {
2198
+ if (!this.$element.is(':visible')) return
2199
+
2200
+ var scrollHeight = $(document).height()
2201
+ , scrollTop = this.$window.scrollTop()
2202
+ , position = this.$element.offset()
2203
+ , offset = this.options.offset
2204
+ , offsetBottom = offset.bottom
2205
+ , offsetTop = offset.top
2206
+ , reset = 'affix affix-top affix-bottom'
2207
+ , affix
2208
+
2209
+ if (typeof offset != 'object') offsetBottom = offsetTop = offset
2210
+ if (typeof offsetTop == 'function') offsetTop = offset.top()
2211
+ if (typeof offsetBottom == 'function') offsetBottom = offset.bottom()
2212
+
2213
+ affix = this.unpin != null && (scrollTop + this.unpin <= position.top) ?
2214
+ false : offsetBottom != null && (position.top + this.$element.height() >= scrollHeight - offsetBottom) ?
2215
+ 'bottom' : offsetTop != null && scrollTop <= offsetTop ?
2216
+ 'top' : false
2217
+
2218
+ if (this.affixed === affix) return
2219
+
2220
+ this.affixed = affix
2221
+ this.unpin = affix == 'bottom' ? position.top - scrollTop : null
2222
+
2223
+ this.$element.removeClass(reset).addClass('affix' + (affix ? '-' + affix : ''))
2224
+ }
2225
+
2226
+
2227
+ /* AFFIX PLUGIN DEFINITION
2228
+ * ======================= */
2229
+
2230
+ var old = $.fn.affix
2231
+
2232
+ $.fn.affix = function (option) {
2233
+ return this.each(function () {
2234
+ var $this = $(this)
2235
+ , data = $this.data('affix')
2236
+ , options = typeof option == 'object' && option
2237
+ if (!data) $this.data('affix', (data = new Affix(this, options)))
2238
+ if (typeof option == 'string') data[option]()
2239
+ })
2240
+ }
2241
+
2242
+ $.fn.affix.Constructor = Affix
2243
+
2244
+ $.fn.affix.defaults = {
2245
+ offset: 0
2246
+ }
2247
+
2248
+
2249
+ /* AFFIX NO CONFLICT
2250
+ * ================= */
2251
+
2252
+ $.fn.affix.noConflict = function () {
2253
+ $.fn.affix = old
2254
+ return this
2255
+ }
2256
+
2257
+
2258
+ /* AFFIX DATA-API
2259
+ * ============== */
2260
+
2261
+ $(window).on('load', function () {
2262
+ $('[data-spy="affix"]').each(function () {
2263
+ var $spy = $(this)
2264
+ , data = $spy.data()
2265
+
2266
+ data.offset = data.offset || {}
2267
+
2268
+ data.offsetBottom && (data.offset.bottom = data.offsetBottom)
2269
+ data.offsetTop && (data.offset.top = data.offsetTop)
2270
+
2271
+ $spy.affix(data)
2272
+ })
2273
+ })
2274
+
2275
+
2276
+ }(window.jQuery);
trunk/assets/js/bootstrap.min.js ADDED
@@ -0,0 +1,6 @@
 
 
 
 
 
 
1
+ /*!
2
+ * Bootstrap.js by @fat & @mdo
3
+ * Copyright 2012 Twitter, Inc.
4
+ * http://www.apache.org/licenses/LICENSE-2.0.txt
5
+ */
6
+ !function(e){"use strict";e(function(){e.support.transition=function(){var e=function(){var e=document.createElement("bootstrap"),t={WebkitTransition:"webkitTransitionEnd",MozTransition:"transitionend",OTransition:"oTransitionEnd otransitionend",transition:"transitionend"},n;for(n in t)if(e.style[n]!==undefined)return t[n]}();return e&&{end:e}}()})}(window.jQuery),!function(e){"use strict";var t='[data-dismiss="alert"]',n=function(n){e(n).on("click",t,this.close)};n.prototype.close=function(t){function s(){i.trigger("closed").remove()}var n=e(this),r=n.attr("data-target"),i;r||(r=n.attr("href"),r=r&&r.replace(/.*(?=#[^\s]*$)/,"")),i=e(r),t&&t.preventDefault(),i.length||(i=n.hasClass("alert")?n:n.parent()),i.trigger(t=e.Event("close"));if(t.isDefaultPrevented())return;i.removeClass("in"),e.support.transition&&i.hasClass("fade")?i.on(e.support.transition.end,s):s()};var r=e.fn.alert;e.fn.alert=function(t){return this.each(function(){var r=e(this),i=r.data("alert");i||r.data("alert",i=new n(this)),typeof t=="string"&&i[t].call(r)})},e.fn.alert.Constructor=n,e.fn.alert.noConflict=function(){return e.fn.alert=r,this},e(document).on("click.alert.data-api",t,n.prototype.close)}(window.jQuery),!function(e){"use strict";var t=function(t,n){this.$element=e(t),this.options=e.extend({},e.fn.button.defaults,n)};t.prototype.setState=function(e){var t="disabled",n=this.$element,r=n.data(),i=n.is("input")?"val":"html";e+="Text",r.resetText||n.data("resetText",n[i]()),n[i](r[e]||this.options[e]),setTimeout(function(){e=="loadingText"?n.addClass(t).attr(t,t):n.removeClass(t).removeAttr(t)},0)},t.prototype.toggle=function(){var e=this.$element.closest('[data-toggle="buttons-radio"]');e&&e.find(".active").removeClass("active"),this.$element.toggleClass("active")};var n=e.fn.button;e.fn.button=function(n){return this.each(function(){var r=e(this),i=r.data("button"),s=typeof n=="object"&&n;i||r.data("button",i=new t(this,s)),n=="toggle"?i.toggle():n&&i.setState(n)})},e.fn.button.defaults={loadingText:"loading..."},e.fn.button.Constructor=t,e.fn.button.noConflict=function(){return e.fn.button=n,this},e(document).on("click.button.data-api","[data-toggle^=button]",function(t){var n=e(t.target);n.hasClass("btn")||(n=n.closest(".btn")),n.button("toggle")})}(window.jQuery),!function(e){"use strict";var t=function(t,n){this.$element=e(t),this.$indicators=this.$element.find(".carousel-indicators"),this.options=n,this.options.pause=="hover"&&this.$element.on("mouseenter",e.proxy(this.pause,this)).on("mouseleave",e.proxy(this.cycle,this))};t.prototype={cycle:function(t){return t||(this.paused=!1),this.interval&&clearInterval(this.interval),this.options.interval&&!this.paused&&(this.interval=setInterval(e.proxy(this.next,this),this.options.interval)),this},getActiveIndex:function(){return this.$active=this.$element.find(".item.active"),this.$items=this.$active.parent().children(),this.$items.index(this.$active)},to:function(t){var n=this.getActiveIndex(),r=this;if(t>this.$items.length-1||t<0)return;return this.sliding?this.$element.one("slid",function(){r.to(t)}):n==t?this.pause().cycle():this.slide(t>n?"next":"prev",e(this.$items[t]))},pause:function(t){return t||(this.paused=!0),this.$element.find(".next, .prev").length&&e.support.transition.end&&(this.$element.trigger(e.support.transition.end),this.cycle(!0)),clearInterval(this.interval),this.interval=null,this},next:function(){if(this.sliding)return;return this.slide("next")},prev:function(){if(this.sliding)return;return this.slide("prev")},slide:function(t,n){var r=this.$element.find(".item.active"),i=n||r[t](),s=this.interval,o=t=="next"?"left":"right",u=t=="next"?"first":"last",a=this,f;this.sliding=!0,s&&this.pause(),i=i.length?i:this.$element.find(".item")[u](),f=e.Event("slide",{relatedTarget:i[0],direction:o});if(i.hasClass("active"))return;this.$indicators.length&&(this.$indicators.find(".active").removeClass("active"),this.$element.one("slid",function(){var t=e(a.$indicators.children()[a.getActiveIndex()]);t&&t.addClass("active")}));if(e.support.transition&&this.$element.hasClass("slide")){this.$element.trigger(f);if(f.isDefaultPrevented())return;i.addClass(t),i[0].offsetWidth,r.addClass(o),i.addClass(o),this.$element.one(e.support.transition.end,function(){i.removeClass([t,o].join(" ")).addClass("active"),r.removeClass(["active",o].join(" ")),a.sliding=!1,setTimeout(function(){a.$element.trigger("slid")},0)})}else{this.$element.trigger(f);if(f.isDefaultPrevented())return;r.removeClass("active"),i.addClass("active"),this.sliding=!1,this.$element.trigger("slid")}return s&&this.cycle(),this}};var n=e.fn.carousel;e.fn.carousel=function(n){return this.each(function(){var r=e(this),i=r.data("carousel"),s=e.extend({},e.fn.carousel.defaults,typeof n=="object"&&n),o=typeof n=="string"?n:s.slide;i||r.data("carousel",i=new t(this,s)),typeof n=="number"?i.to(n):o?i[o]():s.interval&&i.pause().cycle()})},e.fn.carousel.defaults={interval:5e3,pause:"hover"},e.fn.carousel.Constructor=t,e.fn.carousel.noConflict=function(){return e.fn.carousel=n,this},e(document).on("click.carousel.data-api","[data-slide], [data-slide-to]",function(t){var n=e(this),r,i=e(n.attr("data-target")||(r=n.attr("href"))&&r.replace(/.*(?=#[^\s]+$)/,"")),s=e.extend({},i.data(),n.data()),o;i.carousel(s),(o=n.attr("data-slide-to"))&&i.data("carousel").pause().to(o).cycle(),t.preventDefault()})}(window.jQuery),!function(e){"use strict";var t=function(t,n){this.$element=e(t),this.options=e.extend({},e.fn.collapse.defaults,n),this.options.parent&&(this.$parent=e(this.options.parent)),this.options.toggle&&this.toggle()};t.prototype={constructor:t,dimension:function(){var e=this.$element.hasClass("width");return e?"width":"height"},show:function(){var t,n,r,i;if(this.transitioning||this.$element.hasClass("in"))return;t=this.dimension(),n=e.camelCase(["scroll",t].join("-")),r=this.$parent&&this.$parent.find("> .accordion-group > .in");if(r&&r.length){i=r.data("collapse");if(i&&i.transitioning)return;r.collapse("hide"),i||r.data("collapse",null)}this.$element[t](0),this.transition("addClass",e.Event("show"),"shown"),e.support.transition&&this.$element[t](this.$element[0][n])},hide:function(){var t;if(this.transitioning||!this.$element.hasClass("in"))return;t=this.dimension(),this.reset(this.$element[t]()),this.transition("removeClass",e.Event("hide"),"hidden"),this.$element[t](0)},reset:function(e){var t=this.dimension();return this.$element.removeClass("collapse")[t](e||"auto")[0].offsetWidth,this.$element[e!==null?"addClass":"removeClass"]("collapse"),this},transition:function(t,n,r){var i=this,s=function(){n.type=="show"&&i.reset(),i.transitioning=0,i.$element.trigger(r)};this.$element.trigger(n);if(n.isDefaultPrevented())return;this.transitioning=1,this.$element[t]("in"),e.support.transition&&this.$element.hasClass("collapse")?this.$element.one(e.support.transition.end,s):s()},toggle:function(){this[this.$element.hasClass("in")?"hide":"show"]()}};var n=e.fn.collapse;e.fn.collapse=function(n){return this.each(function(){var r=e(this),i=r.data("collapse"),s=e.extend({},e.fn.collapse.defaults,r.data(),typeof n=="object"&&n);i||r.data("collapse",i=new t(this,s)),typeof n=="string"&&i[n]()})},e.fn.collapse.defaults={toggle:!0},e.fn.collapse.Constructor=t,e.fn.collapse.noConflict=function(){return e.fn.collapse=n,this},e(document).on("click.collapse.data-api","[data-toggle=collapse]",function(t){var n=e(this),r,i=n.attr("data-target")||t.preventDefault()||(r=n.attr("href"))&&r.replace(/.*(?=#[^\s]+$)/,""),s=e(i).data("collapse")?"toggle":n.data();n[e(i).hasClass("in")?"addClass":"removeClass"]("collapsed"),e(i).collapse(s)})}(window.jQuery),!function(e){"use strict";function r(){e(t).each(function(){i(e(this)).removeClass("open")})}function i(t){var n=t.attr("data-target"),r;n||(n=t.attr("href"),n=n&&/#/.test(n)&&n.replace(/.*(?=#[^\s]*$)/,"")),r=n&&e(n);if(!r||!r.length)r=t.parent();return r}var t="[data-toggle=dropdown]",n=function(t){var n=e(t).on("click.dropdown.data-api",this.toggle);e("html").on("click.dropdown.data-api",function(){n.parent().removeClass("open")})};n.prototype={constructor:n,toggle:function(t){var n=e(this),s,o;if(n.is(".disabled, :disabled"))return;return s=i(n),o=s.hasClass("open"),r(),o||s.toggleClass("open"),n.focus(),!1},keydown:function(n){var r,s,o,u,a,f;if(!/(38|40|27)/.test(n.keyCode))return;r=e(this),n.preventDefault(),n.stopPropagation();if(r.is(".disabled, :disabled"))return;u=i(r),a=u.hasClass("open");if(!a||a&&n.keyCode==27)return n.which==27&&u.find(t).focus(),r.click();s=e("[role=menu] li:not(.divider):visible a",u);if(!s.length)return;f=s.index(s.filter(":focus")),n.keyCode==38&&f>0&&f--,n.keyCode==40&&f<s.length-1&&f++,~f||(f=0),s.eq(f).focus()}};var s=e.fn.dropdown;e.fn.dropdown=function(t){return this.each(function(){var r=e(this),i=r.data("dropdown");i||r.data("dropdown",i=new n(this)),typeof t=="string"&&i[t].call(r)})},e.fn.dropdown.Constructor=n,e.fn.dropdown.noConflict=function(){return e.fn.dropdown=s,this},e(document).on("click.dropdown.data-api",r).on("click.dropdown.data-api",".dropdown form",function(e){e.stopPropagation()}).on("click.dropdown-menu",function(e){e.stopPropagation()}).on("click.dropdown.data-api",t,n.prototype.toggle).on("keydown.dropdown.data-api",t+", [role=menu]",n.prototype.keydown)}(window.jQuery),!function(e){"use strict";var t=function(t,n){this.options=n,this.$element=e(t).delegate('[data-dismiss="modal"]',"click.dismiss.modal",e.proxy(this.hide,this)),this.options.remote&&this.$element.find(".modal-body").load(this.options.remote)};t.prototype={constructor:t,toggle:function(){return this[this.isShown?"hide":"show"]()},show:function(){var t=this,n=e.Event("show");this.$element.trigger(n);if(this.isShown||n.isDefaultPrevented())return;this.isShown=!0,this.escape(),this.backdrop(function(){var n=e.support.transition&&t.$element.hasClass("fade");t.$element.parent().length||t.$element.appendTo(document.body),t.$element.show(),n&&t.$element[0].offsetWidth,t.$element.addClass("in").attr("aria-hidden",!1),t.enforceFocus(),n?t.$element.one(e.support.transition.end,function(){t.$element.focus().trigger("shown")}):t.$element.focus().trigger("shown")})},hide:function(t){t&&t.preventDefault();var n=this;t=e.Event("hide"),this.$element.trigger(t);if(!this.isShown||t.isDefaultPrevented())return;this.isShown=!1,this.escape(),e(document).off("focusin.modal"),this.$element.removeClass("in").attr("aria-hidden",!0),e.support.transition&&this.$element.hasClass("fade")?this.hideWithTransition():this.hideModal()},enforceFocus:function(){var t=this;e(document).on("focusin.modal",function(e){t.$element[0]!==e.target&&!t.$element.has(e.target).length&&t.$element.focus()})},escape:function(){var e=this;this.isShown&&this.options.keyboard?this.$element.on("keyup.dismiss.modal",function(t){t.which==27&&e.hide()}):this.isShown||this.$element.off("keyup.dismiss.modal")},hideWithTransition:function(){var t=this,n=setTimeout(function(){t.$element.off(e.support.transition.end),t.hideModal()},500);this.$element.one(e.support.transition.end,function(){clearTimeout(n),t.hideModal()})},hideModal:function(){var e=this;this.$element.hide(),this.backdrop(function(){e.removeBackdrop(),e.$element.trigger("hidden")})},removeBackdrop:function(){this.$backdrop&&this.$backdrop.remove(),this.$backdrop=null},backdrop:function(t){var n=this,r=this.$element.hasClass("fade")?"fade":"";if(this.isShown&&this.options.backdrop){var i=e.support.transition&&r;this.$backdrop=e('<div class="modal-backdrop '+r+'" />').appendTo(document.body),this.$backdrop.click(this.options.backdrop=="static"?e.proxy(this.$element[0].focus,this.$element[0]):e.proxy(this.hide,this)),i&&this.$backdrop[0].offsetWidth,this.$backdrop.addClass("in");if(!t)return;i?this.$backdrop.one(e.support.transition.end,t):t()}else!this.isShown&&this.$backdrop?(this.$backdrop.removeClass("in"),e.support.transition&&this.$element.hasClass("fade")?this.$backdrop.one(e.support.transition.end,t):t()):t&&t()}};var n=e.fn.modal;e.fn.modal=function(n){return this.each(function(){var r=e(this),i=r.data("modal"),s=e.extend({},e.fn.modal.defaults,r.data(),typeof n=="object"&&n);i||r.data("modal",i=new t(this,s)),typeof n=="string"?i[n]():s.show&&i.show()})},e.fn.modal.defaults={backdrop:!0,keyboard:!0,show:!0},e.fn.modal.Constructor=t,e.fn.modal.noConflict=function(){return e.fn.modal=n,this},e(document).on("click.modal.data-api",'[data-toggle="modal"]',function(t){var n=e(this),r=n.attr("href"),i=e(n.attr("data-target")||r&&r.replace(/.*(?=#[^\s]+$)/,"")),s=i.data("modal")?"toggle":e.extend({remote:!/#/.test(r)&&r},i.data(),n.data());t.preventDefault(),i.modal(s).one("hide",function(){n.focus()})})}(window.jQuery),!function(e){"use strict";var t=function(e,t){this.init("tooltip",e,t)};t.prototype={constructor:t,init:function(t,n,r){var i,s,o,u,a;this.type=t,this.$element=e(n),this.options=this.getOptions(r),this.enabled=!0,o=this.options.trigger.split(" ");for(a=o.length;a--;)u=o[a],u=="click"?this.$element.on("click."+this.type,this.options.selector,e.proxy(this.toggle,this)):u!="manual"&&(i=u=="hover"?"mouseenter":"focus",s=u=="hover"?"mouseleave":"blur",this.$element.on(i+"."+this.type,this.options.selector,e.proxy(this.enter,this)),this.$element.on(s+"."+this.type,this.options.selector,e.proxy(this.leave,this)));this.options.selector?this._options=e.extend({},this.options,{trigger:"manual",selector:""}):this.fixTitle()},getOptions:function(t){return t=e.extend({},e.fn[this.type].defaults,this.$element.data(),t),t.delay&&typeof t.delay=="number"&&(t.delay={show:t.delay,hide:t.delay}),t},enter:function(t){var n=e.fn[this.type].defaults,r={},i;this._options&&e.each(this._options,function(e,t){n[e]!=t&&(r[e]=t)},this),i=e(t.currentTarget)[this.type](r).data(this.type);if(!i.options.delay||!i.options.delay.show)return i.show();clearTimeout(this.timeout),i.hoverState="in",this.timeout=setTimeout(function(){i.hoverState=="in"&&i.show()},i.options.delay.show)},leave:function(t){var n=e(t.currentTarget)[this.type](this._options).data(this.type);this.timeout&&clearTimeout(this.timeout);if(!n.options.delay||!n.options.delay.hide)return n.hide();n.hoverState="out",this.timeout=setTimeout(function(){n.hoverState=="out"&&n.hide()},n.options.delay.hide)},show:function(){var t,n,r,i,s,o,u=e.Event("show");if(this.hasContent()&&this.enabled){this.$element.trigger(u);if(u.isDefaultPrevented())return;t=this.tip(),this.setContent(),this.options.animation&&t.addClass("fade"),s=typeof this.options.placement=="function"?this.options.placement.call(this,t[0],this.$element[0]):this.options.placement,t.detach().css({top:0,left:0,display:"block"}),this.options.container?t.appendTo(this.options.container):t.insertAfter(this.$element),n=this.getPosition(),r=t[0].offsetWidth,i=t[0].offsetHeight;switch(s){case"bottom":o={top:n.top+n.height,left:n.left+n.width/2-r/2};break;case"top":o={top:n.top-i,left:n.left+n.width/2-r/2};break;case"left":o={top:n.top+n.height/2-i/2,left:n.left-r};break;case"right":o={top:n.top+n.height/2-i/2,left:n.left+n.width}}this.applyPlacement(o,s),this.$element.trigger("shown")}},applyPlacement:function(e,t){var n=this.tip(),r=n[0].offsetWidth,i=n[0].offsetHeight,s,o,u,a;n.offset(e).addClass(t).addClass("in"),s=n[0].offsetWidth,o=n[0].offsetHeight,t=="top"&&o!=i&&(e.top=e.top+i-o,a=!0),t=="bottom"||t=="top"?(u=0,e.left<0&&(u=e.left*-2,e.left=0,n.offset(e),s=n[0].offsetWidth,o=n[0].offsetHeight),this.replaceArrow(u-r+s,s,"left")):this.replaceArrow(o-i,o,"top"),a&&n.offset(e)},replaceArrow:function(e,t,n){this.arrow().css(n,e?50*(1-e/t)+"%":"")},setContent:function(){var e=this.tip(),t=this.getTitle();e.find(".tooltip-inner")[this.options.html?"html":"text"](t),e.removeClass("fade in top bottom left right")},hide:function(){function i(){var t=setTimeout(function(){n.off(e.support.transition.end).detach()},500);n.one(e.support.transition.end,function(){clearTimeout(t),n.detach()})}var t=this,n=this.tip(),r=e.Event("hide");this.$element.trigger(r);if(r.isDefaultPrevented())return;return n.removeClass("in"),e.support.transition&&this.$tip.hasClass("fade")?i():n.detach(),this.$element.trigger("hidden"),this},fixTitle:function(){var e=this.$element;(e.attr("title")||typeof e.attr("data-original-title")!="string")&&e.attr("data-original-title",e.attr("title")||"").attr("title","")},hasContent:function(){return this.getTitle()},getPosition:function(){var t=this.$element[0];return e.extend({},typeof t.getBoundingClientRect=="function"?t.getBoundingClientRect():{width:t.offsetWidth,height:t.offsetHeight},this.$element.offset())},getTitle:function(){var e,t=this.$element,n=this.options;return e=t.attr("data-original-title")||(typeof n.title=="function"?n.title.call(t[0]):n.title),e},tip:function(){return this.$tip=this.$tip||e(this.options.template)},arrow:function(){return this.$arrow=this.$arrow||this.tip().find(".tooltip-arrow")},validate:function(){this.$element[0].parentNode||(this.hide(),this.$element=null,this.options=null)},enable:function(){this.enabled=!0},disable:function(){this.enabled=!1},toggleEnabled:function(){this.enabled=!this.enabled},toggle:function(t){var n=t?e(t.currentTarget)[this.type](this._options).data(this.type):this;n.tip().hasClass("in")?n.hide():n.show()},destroy:function(){this.hide().$element.off("."+this.type).removeData(this.type)}};var n=e.fn.tooltip;e.fn.tooltip=function(n){return this.each(function(){var r=e(this),i=r.data("tooltip"),s=typeof n=="object"&&n;i||r.data("tooltip",i=new t(this,s)),typeof n=="string"&&i[n]()})},e.fn.tooltip.Constructor=t,e.fn.tooltip.defaults={animation:!0,placement:"top",selector:!1,template:'<div class="tooltip"><div class="tooltip-arrow"></div><div class="tooltip-inner"></div></div>',trigger:"hover focus",title:"",delay:0,html:!1,container:!1},e.fn.tooltip.noConflict=function(){return e.fn.tooltip=n,this}}(window.jQuery),!function(e){"use strict";var t=function(e,t){this.init("popover",e,t)};t.prototype=e.extend({},e.fn.tooltip.Constructor.prototype,{constructor:t,setContent:function(){var e=this.tip(),t=this.getTitle(),n=this.getContent();e.find(".popover-title")[this.options.html?"html":"text"](t),e.find(".popover-content")[this.options.html?"html":"text"](n),e.removeClass("fade top bottom left right in")},hasContent:function(){return this.getTitle()||this.getContent()},getContent:function(){var e,t=this.$element,n=this.options;return e=(typeof n.content=="function"?n.content.call(t[0]):n.content)||t.attr("data-content"),e},tip:function(){return this.$tip||(this.$tip=e(this.options.template)),this.$tip},destroy:function(){this.hide().$element.off("."+this.type).removeData(this.type)}});var n=e.fn.popover;e.fn.popover=function(n){return this.each(function(){var r=e(this),i=r.data("popover"),s=typeof n=="object"&&n;i||r.data("popover",i=new t(this,s)),typeof n=="string"&&i[n]()})},e.fn.popover.Constructor=t,e.fn.popover.defaults=e.extend({},e.fn.tooltip.defaults,{placement:"right",trigger:"click",content:"",template:'<div class="popover"><div class="arrow"></div><h3 class="popover-title"></h3><div class="popover-content"></div></div>'}),e.fn.popover.noConflict=function(){return e.fn.popover=n,this}}(window.jQuery),!function(e){"use strict";function t(t,n){var r=e.proxy(this.process,this),i=e(t).is("body")?e(window):e(t),s;this.options=e.extend({},e.fn.scrollspy.defaults,n),this.$scrollElement=i.on("scroll.scroll-spy.data-api",r),this.selector=(this.options.target||(s=e(t).attr("href"))&&s.replace(/.*(?=#[^\s]+$)/,"")||"")+" .nav li > a",this.$body=e("body"),this.refresh(),this.process()}t.prototype={constructor:t,refresh:function(){var t=this,n;this.offsets=e([]),this.targets=e([]),n=this.$body.find(this.selector).map(function(){var n=e(this),r=n.data("target")||n.attr("href"),i=/^#\w/.test(r)&&e(r);return i&&i.length&&[[i.position().top+(!e.isWindow(t.$scrollElement.get(0))&&t.$scrollElement.scrollTop()),r]]||null}).sort(function(e,t){return e[0]-t[0]}).each(function(){t.offsets.push(this[0]),t.targets.push(this[1])})},process:function(){var e=this.$scrollElement.scrollTop()+this.options.offset,t=this.$scrollElement[0].scrollHeight||this.$body[0].scrollHeight,n=t-this.$scrollElement.height(),r=this.offsets,i=this.targets,s=this.activeTarget,o;if(e>=n)return s!=(o=i.last()[0])&&this.activate(o);for(o=r.length;o--;)s!=i[o]&&e>=r[o]&&(!r[o+1]||e<=r[o+1])&&this.activate(i[o])},activate:function(t){var n,r;this.activeTarget=t,e(this.selector).parent(".active").removeClass("active"),r=this.selector+'[data-target="'+t+'"],'+this.selector+'[href="'+t+'"]',n=e(r).parent("li").addClass("active"),n.parent(".dropdown-menu").length&&(n=n.closest("li.dropdown").addClass("active")),n.trigger("activate")}};var n=e.fn.scrollspy;e.fn.scrollspy=function(n){return this.each(function(){var r=e(this),i=r.data("scrollspy"),s=typeof n=="object"&&n;i||r.data("scrollspy",i=new t(this,s)),typeof n=="string"&&i[n]()})},e.fn.scrollspy.Constructor=t,e.fn.scrollspy.defaults={offset:10},e.fn.scrollspy.noConflict=function(){return e.fn.scrollspy=n,this},e(window).on("load",function(){e('[data-spy="scroll"]').each(function(){var t=e(this);t.scrollspy(t.data())})})}(window.jQuery),!function(e){"use strict";var t=function(t){this.element=e(t)};t.prototype={constructor:t,show:function(){var t=this.element,n=t.closest("ul:not(.dropdown-menu)"),r=t.attr("data-target"),i,s,o;r||(r=t.attr("href"),r=r&&r.replace(/.*(?=#[^\s]*$)/,""));if(t.parent("li").hasClass("active"))return;i=n.find(".active:last a")[0],o=e.Event("show",{relatedTarget:i}),t.trigger(o);if(o.isDefaultPrevented())return;s=e(r),this.activate(t.parent("li"),n),this.activate(s,s.parent(),function(){t.trigger({type:"shown",relatedTarget:i})})},activate:function(t,n,r){function o(){i.removeClass("active").find("> .dropdown-menu > .active").removeClass("active"),t.addClass("active"),s?(t[0].offsetWidth,t.addClass("in")):t.removeClass("fade"),t.parent(".dropdown-menu")&&t.closest("li.dropdown").addClass("active"),r&&r()}var i=n.find("> .active"),s=r&&e.support.transition&&i.hasClass("fade");s?i.one(e.support.transition.end,o):o(),i.removeClass("in")}};var n=e.fn.tab;e.fn.tab=function(n){return this.each(function(){var r=e(this),i=r.data("tab");i||r.data("tab",i=new t(this)),typeof n=="string"&&i[n]()})},e.fn.tab.Constructor=t,e.fn.tab.noConflict=function(){return e.fn.tab=n,this},e(document).on("click.tab.data-api",'[data-toggle="tab"], [data-toggle="pill"]',function(t){t.preventDefault(),e(this).tab("show")})}(window.jQuery),!function(e){"use strict";var t=function(t,n){this.$element=e(t),this.options=e.extend({},e.fn.typeahead.defaults,n),this.matcher=this.options.matcher||this.matcher,this.sorter=this.options.sorter||this.sorter,this.highlighter=this.options.highlighter||this.highlighter,this.updater=this.options.updater||this.updater,this.source=this.options.source,this.$menu=e(this.options.menu),this.shown=!1,this.listen()};t.prototype={constructor:t,select:function(){var e=this.$menu.find(".active").attr("data-value");return this.$element.val(this.updater(e)).change(),this.hide()},updater:function(e){return e},show:function(){var t=e.extend({},this.$element.position(),{height:this.$element[0].offsetHeight});return this.$menu.insertAfter(this.$element).css({top:t.top+t.height,left:t.left}).show(),this.shown=!0,this},hide:function(){return this.$menu.hide(),this.shown=!1,this},lookup:function(t){var n;return this.query=this.$element.val(),!this.query||this.query.length<this.options.minLength?this.shown?this.hide():this:(n=e.isFunction(this.source)?this.source(this.query,e.proxy(this.process,this)):this.source,n?this.process(n):this)},process:function(t){var n=this;return t=e.grep(t,function(e){return n.matcher(e)}),t=this.sorter(t),t.length?this.render(t.slice(0,this.options.items)).show():this.shown?this.hide():this},matcher:function(e){return~e.toLowerCase().indexOf(this.query.toLowerCase())},sorter:function(e){var t=[],n=[],r=[],i;while(i=e.shift())i.toLowerCase().indexOf(this.query.toLowerCase())?~i.indexOf(this.query)?n.push(i):r.push(i):t.push(i);return t.concat(n,r)},highlighter:function(e){var t=this.query.replace(/[\-\[\]{}()*+?.,\\\^$|#\s]/g,"\\$&");return e.replace(new RegExp("("+t+")","ig"),function(e,t){return"<strong>"+t+"</strong>"})},render:function(t){var n=this;return t=e(t).map(function(t,r){return t=e(n.options.item).attr("data-value",r),t.find("a").html(n.highlighter(r)),t[0]}),t.first().addClass("active"),this.$menu.html(t),this},next:function(t){var n=this.$menu.find(".active").removeClass("active"),r=n.next();r.length||(r=e(this.$menu.find("li")[0])),r.addClass("active")},prev:function(e){var t=this.$menu.find(".active").removeClass("active"),n=t.prev();n.length||(n=this.$menu.find("li").last()),n.addClass("active")},listen:function(){this.$element.on("focus",e.proxy(this.focus,this)).on("blur",e.proxy(this.blur,this)).on("keypress",e.proxy(this.keypress,this)).on("keyup",e.proxy(this.keyup,this)),this.eventSupported("keydown")&&this.$element.on("keydown",e.proxy(this.keydown,this)),this.$menu.on("click",e.proxy(this.click,this)).on("mouseenter","li",e.proxy(this.mouseenter,this)).on("mouseleave","li",e.proxy(this.mouseleave,this))},eventSupported:function(e){var t=e in this.$element;return t||(this.$element.setAttribute(e,"return;"),t=typeof this.$element[e]=="function"),t},move:function(e){if(!this.shown)return;switch(e.keyCode){case 9:case 13:case 27:e.preventDefault();break;case 38:e.preventDefault(),this.prev();break;case 40:e.preventDefault(),this.next()}e.stopPropagation()},keydown:function(t){this.suppressKeyPressRepeat=~e.inArray(t.keyCode,[40,38,9,13,27]),this.move(t)},keypress:function(e){if(this.suppressKeyPressRepeat)return;this.move(e)},keyup:function(e){switch(e.keyCode){case 40:case 38:case 16:case 17:case 18:break;case 9:case 13:if(!this.shown)return;this.select();break;case 27:if(!this.shown)return;this.hide();break;default:this.lookup()}e.stopPropagation(),e.preventDefault()},focus:function(e){this.focused=!0},blur:function(e){this.focused=!1,!this.mousedover&&this.shown&&this.hide()},click:function(e){e.stopPropagation(),e.preventDefault(),this.select(),this.$element.focus()},mouseenter:function(t){this.mousedover=!0,this.$menu.find(".active").removeClass("active"),e(t.currentTarget).addClass("active")},mouseleave:function(e){this.mousedover=!1,!this.focused&&this.shown&&this.hide()}};var n=e.fn.typeahead;e.fn.typeahead=function(n){return this.each(function(){var r=e(this),i=r.data("typeahead"),s=typeof n=="object"&&n;i||r.data("typeahead",i=new t(this,s)),typeof n=="string"&&i[n]()})},e.fn.typeahead.defaults={source:[],items:8,menu:'<ul class="typeahead dropdown-menu"></ul>',item:'<li><a href="#"></a></li>',minLength:1},e.fn.typeahead.Constructor=t,e.fn.typeahead.noConflict=function(){return e.fn.typeahead=n,this},e(document).on("focus.typeahead.data-api",'[data-provide="typeahead"]',function(t){var n=e(this);if(n.data("typeahead"))return;n.typeahead(n.data())})}(window.jQuery),!function(e){"use strict";var t=function(t,n){this.options=e.extend({},e.fn.affix.defaults,n),this.$window=e(window).on("scroll.affix.data-api",e.proxy(this.checkPosition,this)).on("click.affix.data-api",e.proxy(function(){setTimeout(e.proxy(this.checkPosition,this),1)},this)),this.$element=e(t),this.checkPosition()};t.prototype.checkPosition=function(){if(!this.$element.is(":visible"))return;var t=e(document).height(),n=this.$window.scrollTop(),r=this.$element.offset(),i=this.options.offset,s=i.bottom,o=i.top,u="affix affix-top affix-bottom",a;typeof i!="object"&&(s=o=i),typeof o=="function"&&(o=i.top()),typeof s=="function"&&(s=i.bottom()),a=this.unpin!=null&&n+this.unpin<=r.top?!1:s!=null&&r.top+this.$element.height()>=t-s?"bottom":o!=null&&n<=o?"top":!1;if(this.affixed===a)return;this.affixed=a,this.unpin=a=="bottom"?r.top-n:null,this.$element.removeClass(u).addClass("affix"+(a?"-"+a:""))};var n=e.fn.affix;e.fn.affix=function(n){return this.each(function(){var r=e(this),i=r.data("affix"),s=typeof n=="object"&&n;i||r.data("affix",i=new t(this,s)),typeof n=="string"&&i[n]()})},e.fn.affix.Constructor=t,e.fn.affix.defaults={offset:0},e.fn.affix.noConflict=function(){return e.fn.affix=n,this},e(window).on("load",function(){e('[data-spy="affix"]').each(function(){var t=e(this),n=t.data();n.offset=n.offset||{},n.offsetBottom&&(n.offset.bottom=n.offsetBottom),n.offsetTop&&(n.offset.top=n.offsetTop),t.affix(n)})})}(window.jQuery);
trunk/assets/js/index.html ADDED
File without changes
trunk/assets/js/jquery.reveal.modified.js ADDED
@@ -0,0 +1,217 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ /*
2
+ * jQuery Reveal Plugin 1.0
3
+ * Copyright 2010, ZURB
4
+ * Free to use under the MIT license.
5
+ * http://www.opensource.org/licenses/mit-license.php
6
+ *
7
+ * Modified : Dan Horan
8
+ *
9
+ * Added functionality to mention scrollheight in the config
10
+ *
11
+ */
12
+
13
+ (function($) {
14
+
15
+ /*---------------------------
16
+ Defaults for Reveal
17
+ ----------------------------*/
18
+
19
+ /*---------------------------
20
+ Listener for data-reveal-id attributes
21
+ ----------------------------*/
22
+
23
+ $('a[data-reveal-id]').live('click', function(e) {
24
+ e.preventDefault();
25
+ var modalLocation = $(this).attr('data-reveal-id');
26
+ $('#'+modalLocation).reveal($(this).data());
27
+ });
28
+
29
+ /*---------------------------
30
+ Extend and Execute
31
+ ----------------------------*/
32
+
33
+ $.widget("ui.reveal", {
34
+ options: {
35
+ animation: 'fadeAndPop' //fade, fadeAndPop, none
36
+ , animationspeed: 300 //how fast animtions are
37
+ , closeonbackgroundclick: true //if you click background will modal close?
38
+ , closeonesc: true //if you hit the ESC key will modal close?
39
+ , dismissmodalclass: 'close-reveal-modal' //the class of a button or element that will close an open modal
40
+ , backdrop: true //Show the modal by default or not
41
+ , autoshow: true //Show the modal by default or not
42
+ , showevent: 'show' // event to listen on the modal container to trigger show
43
+ , shownevent: 'shown' // event to listen on the modal container after the modal box is shown
44
+ , hideevent: 'hide' // event to listen on the modal container to trigger hide
45
+ , hiddenevent: 'hidden' // event to listen on the modal container after the modal is hidden
46
+ , draggable: false
47
+ , draghandle: null
48
+ , fixed: true
49
+ , topPosition: 150
50
+ //scrollHeight: <integer> This attribute if not passed will be calculated at the runtime and used
51
+ },
52
+ _create : function() {
53
+ var self = this, options = self.options;
54
+ /*---------------------------
55
+ Global Variables
56
+ ----------------------------*/
57
+ var modal = ( self.modal = self.element.addClass('reveal-modal') ),
58
+ topMeasure = ( self._topMeasure = parseInt(modal.css('top')) ),
59
+ topOffset = ( self._topOffset = modal.height() + topMeasure ),
60
+ locked = ( self._locked = false ),
61
+ modalBG = ( self.modalBG = $('.reveal-modal-bg') );
62
+
63
+ if(!modal.attr('id')){
64
+ modal.attr('id', (new Date).getTime() + Math.floor((Math.random()*100)+1))
65
+ }
66
+
67
+ self._isOpen = false;
68
+
69
+ if(options.draggable){
70
+ var drag_opts = { handle : options.draghandle };
71
+ modal.draggable(drag_opts);
72
+ }
73
+
74
+ /*---------------------------
75
+ Create Modal BG
76
+ ----------------------------*/
77
+
78
+ if(modalBG.length == 0) {
79
+ modalBG = ( self.modalBG = $('<div class="reveal-modal-bg" />').insertAfter(modal) );
80
+ }
81
+
82
+ /*---------------------------
83
+ Add Closing Listeners
84
+ ----------------------------*/
85
+
86
+ //Close Modal Listeners
87
+ var closeButton = $('.' + options.dismissmodalclass).off('click.reveal').on('click.reveal', function () {
88
+ self.close();
89
+ });
90
+
91
+ if(options.closeonbackgroundclick) {
92
+ self.modalBG.css({"cursor":"pointer"})
93
+ self.modalBG.off('click.reveal').on('click.reveal', function () {
94
+ self.close();
95
+ });
96
+ }
97
+
98
+ },
99
+
100
+ _init : function(){
101
+ var self = this, options = self.options;
102
+
103
+ //Entrance Animations
104
+ self.modal.on('reveal:open ' + options.showevent, function () {
105
+ if(!self._isOpen){ self.open(); }
106
+ });
107
+
108
+ //Closing Animation
109
+ self.modal.on('reveal:close ' + options.hideevent, function () {
110
+ if(self._isOpen){ self.close(); }
111
+ });
112
+
113
+ //Open Modal Immediately
114
+ options.autoshow && self.modal.trigger('reveal:open');
115
+
116
+
117
+ },
118
+
119
+ open : function(){
120
+ var self = this, options = self.options;
121
+ $('.' + options.dismissmodalclass).off('click.modalEvent');
122
+ if(!self._locked) {
123
+ self.lockModal();
124
+ self.modal.css({left: '50%'}); // reset the left position in the event it was dragged over.
125
+ if(options.animation == "fadeAndPop") {
126
+ var h = typeof options.scrollheight !== "undefined" ? options.scrollheight : $(document).scrollTop();
127
+ self.modal.css({'top': options.fixed ? 0 : h -self._topOffset, 'opacity' : 0, 'visibility' : 'visible'});
128
+ options.backdrop && self.modalBG.fadeIn(options.animationspeed/2);
129
+ self.modal.show().delay(options.animationspeed/2).animate({
130
+ "top": options.fixed ? options.topPosition : h+self._topMeasure + 'px',
131
+ "opacity" : 1
132
+ }, options.animationspeed,self.shown());
133
+ }
134
+ if(options.animation == "fade") {
135
+ self.modal.css({'opacity' : 0, 'visibility' : 'visible', 'top': $(document).scrollTop()+self._topMeasure});
136
+ self.modalBG.fadeIn(options.animationspeed/2);
137
+ self.modal.show().delay(options.animationspeed/2).animate({
138
+ "opacity" : 1
139
+ }, options.animationspeed,self.shown());
140
+ }
141
+ if(options.animation == "none") {
142
+ self.modal.css({'visibility' : 'visible', 'top':$(document).scrollTop()+self._topMeasure});
143
+ self.modalBG.show();
144
+ self.shown()
145
+ }
146
+ }
147
+ if(options.closeonesc){
148
+ $('body').on('keyup.reveal_' + self.modal.attr('id'), function(e) {
149
+ if(e.which===27){ self.close(); } // 27 is the keycode for the Escape key
150
+ });
151
+ }
152
+ self.modal.unbind('reveal:open');
153
+ },
154
+
155
+ close : function(event){
156
+ var self = this, options = self.options;
157
+ if(!self._locked) {
158
+ self.lockModal();
159
+ if(options.animation == "fadeAndPop") {
160
+ var h = typeof options.scrollheight !== "undefined" ? options.scrollheight : $(document).scrollTop();
161
+ options.backdrop && self.modalBG.delay(options.animationspeed).fadeOut(options.animationspeed);
162
+ self.modal.animate({
163
+ "top": options.fixed ? 0 : h - self._topOffset + 'px',
164
+ "opacity" : 0
165
+ }, options.animationspeed/2, function() {
166
+ self.modal.css({'top':self._topMeasure, 'opacity' : 1, 'visibility' : 'hidden'});
167
+ self.hidden(event);
168
+ });
169
+ }
170
+ if(options.animation == "fade") {
171
+ self.modalBG.delay(options.animationspeed).fadeOut(options.animationspeed);
172
+ self.modal.animate({
173
+ "opacity" : 0
174
+ }, options.animationspeed, function() {
175
+ self.modal.css({'opacity' : 1, 'visibility' : 'hidden', 'top' : self._topMeasure});
176
+ self.hidden(event);
177
+ });
178
+ }
179
+ if(options.animation == "none") {
180
+ self.modal.css({'visibility' : 'hidden', 'top' : self._topMeasure});
181
+ self.modalBG.hide();
182
+ self.hidden(event);
183
+ }
184
+ }
185
+ $('body').off('keyup.reveal_' + self.modal.attr('id'));
186
+ self.modal.unbind('reveal:close');
187
+ },
188
+
189
+ shown : function() {
190
+ var self = this, options = self.options;
191
+ self.modal.trigger(options.shownevent);
192
+ self._isOpen = true;
193
+ self.unlockModal();
194
+ },
195
+
196
+ hidden : function(event) {
197
+ var self = this, options = self.options;
198
+ self.modal.trigger(options.hiddenevent);
199
+ self._trigger( "close", event );
200
+ self._isOpen = false;
201
+ self.unlockModal();
202
+ },
203
+
204
+ /*---------------------------
205
+ Animations Locks
206
+ ----------------------------*/
207
+ unlockModal: function() {
208
+ self._locked = false;
209
+ },
210
+
211
+ lockModal : function() {
212
+ self._locked = true;
213
+ }
214
+
215
+ });//Widget definition
216
+
217
+ })(sQuery);
trunk/assets/js/jquery_custom.js ADDED
@@ -0,0 +1,9227 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ /*!
2
+ * jQuery JavaScript Library v1.8.0
3
+ * http://jquery.com/
4
+ *
5
+ * Includes Sizzle.js
6
+ * http://sizzlejs.com/
7
+ *
8
+ * Copyright 2012 jQuery Foundation and other contributors
9
+ * Released under the MIT license
10
+ * http://jquery.org/license
11
+ *
12
+ * Date: Thu Aug 09 2012 16:24:48 GMT-0400 (Eastern Daylight Time)
13
+ */
14
+ (function( window, undefined ) {
15
+ var
16
+ // A central reference to the root jQuery(document)
17
+ rootjQuery,
18
+
19
+ // The deferred used on DOM ready
20
+ readyList,
21
+
22
+ // Use the correct document accordingly with window argument (sandbox)
23
+ document = window.document,
24
+ location = window.location,
25
+ navigator = window.navigator,
26
+
27
+ // Map over jQuery in case of overwrite
28
+ _jQuery = window.sQuery,
29
+
30
+ // Map over the $ in case of overwrite
31
+ _$ = window.$,
32
+
33
+ // Save a reference to some core methods
34
+ core_push = Array.prototype.push,
35
+ core_slice = Array.prototype.slice,
36
+ core_indexOf = Array.prototype.indexOf,
37
+ core_toString = Object.prototype.toString,
38
+ core_hasOwn = Object.prototype.hasOwnProperty,
39
+ core_trim = String.prototype.trim,
40
+
41
+ // Define a local copy of jQuery
42
+ jQuery = function( selector, context ) {
43
+ // The jQuery object is actually just the init constructor 'enhanced'
44
+ return new jQuery.fn.init( selector, context, rootjQuery );
45
+ },
46
+
47
+ // Used for matching numbers
48
+ core_pnum = /[\-+]?(?:\d*\.|)\d+(?:[eE][\-+]?\d+|)/.source,
49
+
50
+ // Used for detecting and trimming whitespace
51
+ core_rnotwhite = /\S/,
52
+ core_rspace = /\s+/,
53
+
54
+ // IE doesn't match non-breaking spaces with \s
55
+ rtrim = core_rnotwhite.test("\xA0") ? (/^[\s\xA0]+|[\s\xA0]+$/g) : /^\s+|\s+$/g,
56
+
57
+ // A simple way to check for HTML strings
58
+ // Prioritize #id over <tag> to avoid XSS via location.hash (#9521)
59
+ rquickExpr = /^(?:[^#<]*(<[\w\W]+>)[^>]*$|#([\w\-]*)$)/,
60
+
61
+ // Match a standalone tag
62
+ rsingleTag = /^<(\w+)\s*\/?>(?:<\/\1>|)$/,
63
+
64
+ // JSON RegExp
65
+ rvalidchars = /^[\],:{}\s]*$/,
66
+ rvalidbraces = /(?:^|:|,)(?:\s*\[)+/g,
67
+ rvalidescape = /\\(?:["\\\/bfnrt]|u[\da-fA-F]{4})/g,
68
+ rvalidtokens = /"[^"\\\r\n]*"|true|false|null|-?(?:\d\d*\.|)\d+(?:[eE][\-+]?\d+|)/g,
69
+
70
+ // Matches dashed string for camelizing
71
+ rmsPrefix = /^-ms-/,
72
+ rdashAlpha = /-([\da-z])/gi,
73
+
74
+ // Used by jQuery.camelCase as callback to replace()
75
+ fcamelCase = function( all, letter ) {
76
+ return ( letter + "" ).toUpperCase();
77
+ },
78
+
79
+ // The ready event handler and self cleanup method
80
+ DOMContentLoaded = function() {
81
+ if ( document.addEventListener ) {
82
+ document.removeEventListener( "DOMContentLoaded", DOMContentLoaded, false );
83
+ jQuery.ready();
84
+ } else if ( document.readyState === "complete" ) {
85
+ // we're here because readyState === "complete" in oldIE
86
+ // which is good enough for us to call the dom ready!
87
+ document.detachEvent( "onreadystatechange", DOMContentLoaded );
88
+ jQuery.ready();
89
+ }
90
+ },
91
+
92
+ // [[Class]] -> type pairs
93
+ class2type = {};
94
+
95
+ jQuery.fn = jQuery.prototype = {
96
+ constructor: jQuery,
97
+ init: function( selector, context, rootjQuery ) {
98
+ var match, elem, ret, doc;
99
+
100
+ // Handle $(""), $(null), $(undefined), $(false)
101
+ if ( !selector ) {
102
+ return this;
103
+ }
104
+
105
+ // Handle $(DOMElement)
106
+ if ( selector.nodeType ) {
107
+ this.context = this[0] = selector;
108
+ this.length = 1;
109
+ return this;
110
+ }
111
+
112
+ // Handle HTML strings
113
+ if ( typeof selector === "string" ) {
114
+ if ( selector.charAt(0) === "<" && selector.charAt( selector.length - 1 ) === ">" && selector.length >= 3 ) {
115
+ // Assume that strings that start and end with <> are HTML and skip the regex check
116
+ match = [ null, selector, null ];
117
+
118
+ } else {
119
+ match = rquickExpr.exec( selector );
120
+ }
121
+
122
+ // Match html or make sure no context is specified for #id
123
+ if ( match && (match[1] || !context) ) {
124
+
125
+ // HANDLE: $(html) -> $(array)
126
+ if ( match[1] ) {
127
+ context = context instanceof jQuery ? context[0] : context;
128
+ doc = ( context && context.nodeType ? context.ownerDocument || context : document );
129
+
130
+ // scripts is true for back-compat
131
+ selector = jQuery.parseHTML( match[1], doc, true );
132
+ if ( rsingleTag.test( match[1] ) && jQuery.isPlainObject( context ) ) {
133
+ this.attr.call( selector, context, true );
134
+ }
135
+
136
+ return jQuery.merge( this, selector );
137
+
138
+ // HANDLE: $(#id)
139
+ } else {
140
+ elem = document.getElementById( match[2] );
141
+
142
+ // Check parentNode to catch when Blackberry 4.6 returns
143
+ // nodes that are no longer in the document #6963
144
+ if ( elem && elem.parentNode ) {
145
+ // Handle the case where IE and Opera return items
146
+ // by name instead of ID
147
+ if ( elem.id !== match[2] ) {
148
+ return rootjQuery.find( selector );
149
+ }
150
+
151
+ // Otherwise, we inject the element directly into the jQuery object
152
+ this.length = 1;
153
+ this[0] = elem;
154
+ }
155
+
156
+ this.context = document;
157
+ this.selector = selector;
158
+ return this;
159
+ }
160
+
161
+ // HANDLE: $(expr, $(...))
162
+ } else if ( !context || context.jquery ) {
163
+ return ( context || rootjQuery ).find( selector );
164
+
165
+ // HANDLE: $(expr, context)
166
+ // (which is just equivalent to: $(context).find(expr)
167
+ } else {
168
+ return this.constructor( context ).find( selector );
169
+ }
170
+
171
+ // HANDLE: $(function)
172
+ // Shortcut for document ready
173
+ } else if ( jQuery.isFunction( selector ) ) {
174
+ return rootjQuery.ready( selector );
175
+ }
176
+
177
+ if ( selector.selector !== undefined ) {
178
+ this.selector = selector.selector;
179
+ this.context = selector.context;
180
+ }
181
+
182
+ return jQuery.makeArray( selector, this );
183
+ },
184
+
185
+ // Start with an empty selector
186
+ selector: "",
187
+
188
+ // The current version of jQuery being used
189
+ jquery: "1.8.0",
190
+
191
+ // The default length of a jQuery object is 0
192
+ length: 0,
193
+
194
+ // The number of elements contained in the matched element set
195
+ size: function() {
196
+ return this.length;
197
+ },
198
+
199
+ toArray: function() {
200
+ return core_slice.call( this );
201
+ },
202
+
203
+ // Get the Nth element in the matched element set OR
204
+ // Get the whole matched element set as a clean array
205
+ get: function( num ) {
206
+ return num == null ?
207
+
208
+ // Return a 'clean' array
209
+ this.toArray() :
210
+
211
+ // Return just the object
212
+ ( num < 0 ? this[ this.length + num ] : this[ num ] );
213
+ },
214
+
215
+ // Take an array of elements and push it onto the stack
216
+ // (returning the new matched element set)
217
+ pushStack: function( elems, name, selector ) {
218
+
219
+ // Build a new jQuery matched element set
220
+ var ret = jQuery.merge( this.constructor(), elems );
221
+
222
+ // Add the old object onto the stack (as a reference)
223
+ ret.prevObject = this;
224
+
225
+ ret.context = this.context;
226
+
227
+ if ( name === "find" ) {
228
+ ret.selector = this.selector + ( this.selector ? " " : "" ) + selector;
229
+ } else if ( name ) {
230
+ ret.selector = this.selector + "." + name + "(" + selector + ")";
231
+ }
232
+
233
+ // Return the newly-formed element set
234
+ return ret;
235
+ },
236
+
237
+ // Execute a callback for every element in the matched set.
238
+ // (You can seed the arguments with an array of args, but this is
239
+ // only used internally.)
240
+ each: function( callback, args ) {
241
+ return jQuery.each( this, callback, args );
242
+ },
243
+
244
+ ready: function( fn ) {
245
+ // Add the callback
246
+ jQuery.ready.promise().done( fn );
247
+
248
+ return this;
249
+ },
250
+
251
+ eq: function( i ) {
252
+ i = +i;
253
+ return i === -1 ?
254
+ this.slice( i ) :
255
+ this.slice( i, i + 1 );
256
+ },
257
+
258
+ first: function() {
259
+ return this.eq( 0 );
260
+ },
261
+
262
+ last: function() {
263
+ return this.eq( -1 );
264
+ },
265
+
266
+ slice: function() {
267
+ return this.pushStack( core_slice.apply( this, arguments ),
268
+ "slice", core_slice.call(arguments).join(",") );
269
+ },
270
+
271
+ map: function( callback ) {
272
+ return this.pushStack( jQuery.map(this, function( elem, i ) {
273
+ return callback.call( elem, i, elem );
274
+ }));
275
+ },
276
+
277
+ end: function() {
278
+ return this.prevObject || this.constructor(null);
279
+ },
280
+
281
+ // For internal use only.
282
+ // Behaves like an Array's method, not like a jQuery method.
283
+ push: core_push,
284
+ sort: [].sort,
285
+ splice: [].splice
286
+ };
287
+
288
+ // Give the init function the jQuery prototype for later instantiation
289
+ jQuery.fn.init.prototype = jQuery.fn;
290
+
291
+ jQuery.extend = jQuery.fn.extend = function() {
292
+ var options, name, src, copy, copyIsArray, clone,
293
+ target = arguments[0] || {},
294
+ i = 1,
295
+ length = arguments.length,
296
+ deep = false;
297
+
298
+ // Handle a deep copy situation
299
+ if ( typeof target === "boolean" ) {
300
+ deep = target;
301
+ target = arguments[1] || {};
302
+ // skip the boolean and the target
303
+ i = 2;
304
+ }
305
+
306
+ // Handle case when target is a string or something (possible in deep copy)
307
+ if ( typeof target !== "object" && !jQuery.isFunction(target) ) {
308
+ target = {};
309
+ }
310
+
311
+ // extend jQuery itself if only one argument is passed
312
+ if ( length === i ) {
313
+ target = this;
314
+ --i;
315
+ }
316
+
317
+ for ( ; i < length; i++ ) {
318
+ // Only deal with non-null/undefined values
319
+ if ( (options = arguments[ i ]) != null ) {
320
+ // Extend the base object
321
+ for ( name in options ) {
322
+ src = target[ name ];
323
+ copy = options[ name ];
324
+
325
+ // Prevent never-ending loop
326
+ if ( target === copy ) {
327
+ continue;
328
+ }
329
+
330
+ // Recurse if we're merging plain objects or arrays
331
+ if ( deep && copy && ( jQuery.isPlainObject(copy) || (copyIsArray = jQuery.isArray(copy)) ) ) {
332
+ if ( copyIsArray ) {
333
+ copyIsArray = false;
334
+ clone = src && jQuery.isArray(src) ? src : [];
335
+
336
+ } else {
337
+ clone = src && jQuery.isPlainObject(src) ? src : {};
338
+ }
339
+
340
+ // Never move original objects, clone them
341
+ target[ name ] = jQuery.extend( deep, clone, copy );
342
+
343
+ // Don't bring in undefined values
344
+ } else if ( copy !== undefined ) {
345
+ target[ name ] = copy;
346
+ }
347
+ }
348
+ }
349
+ }
350
+
351
+ // Return the modified object
352
+ return target;
353
+ };
354
+
355
+ jQuery.extend({
356
+ noConflict: function( deep ) {
357
+ if ( window.$ === jQuery ) {
358
+ window.$ = _$;
359
+ }
360
+
361
+ if ( deep && window.sQuery === jQuery ) {
362
+ window.sQuery = _jQuery;
363
+ }
364
+
365
+ return jQuery;
366
+ },
367
+
368
+ // Is the DOM ready to be used? Set to true once it occurs.
369
+ isReady: false,
370
+
371
+ // A counter to track how many items to wait for before
372
+ // the ready event fires. See #6781
373
+ readyWait: 1,
374
+
375
+ // Hold (or release) the ready event
376
+ holdReady: function( hold ) {
377
+ if ( hold ) {
378
+ jQuery.readyWait++;
379
+ } else {
380
+ jQuery.ready( true );
381
+ }
382
+ },
383
+
384
+ // Handle when the DOM is ready
385
+ ready: function( wait ) {
386
+
387
+ // Abort if there are pending holds or we're already ready
388
+ if ( wait === true ? --jQuery.readyWait : jQuery.isReady ) {
389
+ return;
390
+ }
391
+
392
+ // Make sure body exists, at least, in case IE gets a little overzealous (ticket #5443).
393
+ if ( !document.body ) {
394
+ return setTimeout( jQuery.ready, 1 );
395
+ }
396
+
397
+ // Remember that the DOM is ready
398
+ jQuery.isReady = true;
399
+
400
+ // If a normal DOM Ready event fired, decrement, and wait if need be
401
+ if ( wait !== true && --jQuery.readyWait > 0 ) {
402
+ return;
403
+ }
404
+
405
+ // If there are functions bound, to execute
406
+ readyList.resolveWith( document, [ jQuery ] );
407
+
408
+ // Trigger any bound ready events
409
+ if ( jQuery.fn.trigger ) {
410
+ jQuery( document ).trigger("ready").off("ready");
411
+ }
412
+ },
413
+
414
+ // See test/unit/core.js for details concerning isFunction.
415
+ // Since version 1.3, DOM methods and functions like alert
416
+ // aren't supported. They return false on IE (#2968).
417
+ isFunction: function( obj ) {
418
+ return jQuery.type(obj) === "function";
419
+ },
420
+
421
+ isArray: Array.isArray || function( obj ) {
422
+ return jQuery.type(obj) === "array";
423
+ },
424
+
425
+ isWindow: function( obj ) {
426
+ return obj != null && obj == obj.window;
427
+ },
428
+
429
+ isNumeric: function( obj ) {
430
+ return !isNaN( parseFloat(obj) ) && isFinite( obj );
431
+ },
432
+
433
+ type: function( obj ) {
434
+ return obj == null ?
435
+ String( obj ) :
436
+ class2type[ core_toString.call(obj) ] || "object";
437
+ },
438
+
439
+ isPlainObject: function( obj ) {
440
+ // Must be an Object.
441
+ // Because of IE, we also have to check the presence of the constructor property.
442
+ // Make sure that DOM nodes and window objects don't pass through, as well
443
+ if ( !obj || jQuery.type(obj) !== "object" || obj.nodeType || jQuery.isWindow( obj ) ) {
444
+ return false;
445
+ }
446
+
447
+ try {
448
+ // Not own constructor property must be Object
449
+ if ( obj.constructor &&
450
+ !core_hasOwn.call(obj, "constructor") &&
451
+ !core_hasOwn.call(obj.constructor.prototype, "isPrototypeOf") ) {
452
+ return false;
453
+ }
454
+ } catch ( e ) {
455
+ // IE8,9 Will throw exceptions on certain host objects #9897
456
+ return false;
457
+ }
458
+
459
+ // Own properties are enumerated firstly, so to speed up,
460
+ // if last one is own, then all properties are own.
461
+
462
+ var key;
463
+ for ( key in obj ) {}
464
+
465
+ return key === undefined || core_hasOwn.call( obj, key );
466
+ },
467
+
468
+ isEmptyObject: function( obj ) {
469
+ var name;
470
+ for ( name in obj ) {
471
+ return false;
472
+ }
473
+ return true;
474
+ },
475
+
476
+ error: function( msg ) {
477
+ throw new Error( msg );
478
+ },
479
+
480
+ // data: string of html
481
+ // context (optional): If specified, the fragment will be created in this context, defaults to document
482
+ // scripts (optional): If true, will include scripts passed in the html string
483
+ parseHTML: function( data, context, scripts ) {
484
+ var parsed;
485
+ if ( !data || typeof data !== "string" ) {
486
+ return null;
487
+ }
488
+ if ( typeof context === "boolean" ) {
489
+ scripts = context;
490
+ context = 0;
491
+ }
492
+ context = context || document;
493
+
494
+ // Single tag
495
+ if ( (parsed = rsingleTag.exec( data )) ) {
496
+ return [ context.createElement( parsed[1] ) ];
497
+ }
498
+
499
+ parsed = jQuery.buildFragment( [ data ], context, scripts ? null : [] );
500
+ return jQuery.merge( [],
501
+ (parsed.cacheable ? jQuery.clone( parsed.fragment ) : parsed.fragment).childNodes );
502
+ },
503
+
504
+ parseJSON: function( data ) {
505
+ if ( !data || typeof data !== "string") {
506
+ return null;
507
+ }
508
+
509
+ // Make sure leading/trailing whitespace is removed (IE can't handle it)
510
+ data = jQuery.trim( data );
511
+
512
+ // Attempt to parse using the native JSON parser first
513
+ if ( window.JSON && window.JSON.parse ) {
514
+ return window.JSON.parse( data );
515
+ }
516
+
517
+ // Make sure the incoming data is actual JSON
518
+ // Logic borrowed from http://json.org/json2.js
519
+ if ( rvalidchars.test( data.replace( rvalidescape, "@" )
520
+ .replace( rvalidtokens, "]" )
521
+ .replace( rvalidbraces, "")) ) {
522
+
523
+ return ( new Function( "return " + data ) )();
524
+
525
+ }
526
+ jQuery.error( "Invalid JSON: " + data );
527
+ },
528
+
529
+ // Cross-browser xml parsing
530
+ parseXML: function( data ) {
531
+ var xml, tmp;
532
+ if ( !data || typeof data !== "string" ) {
533
+ return null;
534
+ }
535
+ try {
536
+ if ( window.DOMParser ) { // Standard
537
+ tmp = new DOMParser();
538
+ xml = tmp.parseFromString( data , "text/xml" );
539
+ } else { // IE
540
+ xml = new ActiveXObject( "Microsoft.XMLDOM" );
541
+ xml.async = "false";
542
+ xml.loadXML( data );
543
+ }
544
+ } catch( e ) {
545
+ xml = undefined;
546
+ }
547
+ if ( !xml || !xml.documentElement || xml.getElementsByTagName( "parsererror" ).length ) {
548
+ jQuery.error( "Invalid XML: " + data );
549
+ }
550
+ return xml;
551
+ },
552
+
553
+ noop: function() {},
554
+
555
+ // Evaluates a script in a global context
556
+ // Workarounds based on findings by Jim Driscoll
557
+ // http://weblogs.java.net/blog/driscoll/archive/2009/09/08/eval-javascript-global-context
558
+ globalEval: function( data ) {
559
+ if ( data && core_rnotwhite.test( data ) ) {
560
+ // We use execScript on Internet Explorer
561
+ // We use an anonymous function so that context is window
562
+ // rather than jQuery in Firefox
563
+ ( window.execScript || function( data ) {
564
+ window[ "eval" ].call( window, data );
565
+ } )( data );
566
+ }
567
+ },
568
+
569
+ // Convert dashed to camelCase; used by the css and data modules
570
+ // Microsoft forgot to hump their vendor prefix (#9572)
571
+ camelCase: function( string ) {
572
+ return string.replace( rmsPrefix, "ms-" ).replace( rdashAlpha, fcamelCase );
573
+ },
574
+
575
+ nodeName: function( elem, name ) {
576
+ return elem.nodeName && elem.nodeName.toUpperCase() === name.toUpperCase();
577
+ },
578
+
579
+ // args is for internal usage only
580
+ each: function( obj, callback, args ) {
581
+ var name,
582
+ i = 0,
583
+ length = obj.length,
584
+ isObj = length === undefined || jQuery.isFunction( obj );
585
+
586
+ if ( args ) {
587
+ if ( isObj ) {
588
+ for ( name in obj ) {
589
+ if ( callback.apply( obj[ name ], args ) === false ) {
590
+ break;
591
+ }
592
+ }
593
+ } else {
594
+ for ( ; i < length; ) {
595
+ if ( callback.apply( obj[ i++ ], args ) === false ) {
596
+ break;
597
+ }
598
+ }
599
+ }
600
+
601
+ // A special, fast, case for the most common use of each
602
+ } else {
603
+ if ( isObj ) {
604
+ for ( name in obj ) {
605
+ if ( callback.call( obj[ name ], name, obj[ name ] ) === false ) {
606
+ break;
607
+ }
608
+ }
609
+ } else {
610
+ for ( ; i < length; ) {
611
+ if ( callback.call( obj[ i ], i, obj[ i++ ] ) === false ) {
612
+ break;
613
+ }
614
+ }
615
+ }
616
+ }
617
+
618
+ return obj;
619
+ },
620
+
621
+ // Use native String.trim function wherever possible
622
+ trim: core_trim ?
623
+ function( text ) {
624
+ return text == null ?
625
+ "" :
626
+ core_trim.call( text );
627
+ } :
628
+
629
+ // Otherwise use our own trimming functionality
630
+ function( text ) {
631
+ return text == null ?
632
+ "" :
633
+ text.toString().replace( rtrim, "" );
634
+ },
635
+
636
+ // results is for internal usage only
637
+ makeArray: function( arr, results ) {
638
+ var type,
639
+ ret = results || [];
640
+
641
+ if ( arr != null ) {
642
+ // The window, strings (and functions) also have 'length'
643
+ // Tweaked logic slightly to handle Blackberry 4.7 RegExp issues #6930
644
+ type = jQuery.type( arr );
645
+
646
+ if ( arr.length == null || type === "string" || type === "function" || type === "regexp" || jQuery.isWindow( arr ) ) {
647
+ core_push.call( ret, arr );
648
+ } else {
649
+ jQuery.merge( ret, arr );
650
+ }
651
+ }
652
+
653
+ return ret;
654
+ },
655
+
656
+ inArray: function( elem, arr, i ) {
657
+ var len;
658
+
659
+ if ( arr ) {
660
+ if ( core_indexOf ) {
661
+ return core_indexOf.call( arr, elem, i );
662
+ }
663
+
664
+ len = arr.length;
665
+ i = i ? i < 0 ? Math.max( 0, len + i ) : i : 0;
666
+
667
+ for ( ; i < len; i++ ) {
668
+ // Skip accessing in sparse arrays
669
+ if ( i in arr && arr[ i ] === elem ) {
670
+ return i;
671
+ }
672
+ }
673
+ }
674
+
675
+ return -1;
676
+ },
677
+
678
+ merge: function( first, second ) {
679
+ var l = second.length,
680
+ i = first.length,
681
+ j = 0;
682
+
683
+ if ( typeof l === "number" ) {
684
+ for ( ; j < l; j++ ) {
685
+ first[ i++ ] = second[ j ];
686
+ }
687
+
688
+ } else {
689
+ while ( second[j] !== undefined ) {
690
+ first[ i++ ] = second[ j++ ];
691
+ }
692
+ }
693
+
694
+ first.length = i;
695
+
696
+ return first;
697
+ },
698
+
699
+ grep: function( elems, callback, inv ) {
700
+ var retVal,
701
+ ret = [],
702
+ i = 0,
703
+ length = elems.length;
704
+ inv = !!inv;
705
+
706
+ // Go through the array, only saving the items
707
+ // that pass the validator function
708
+ for ( ; i < length; i++ ) {
709
+ retVal = !!callback( elems[ i ], i );
710
+ if ( inv !== retVal ) {
711
+ ret.push( elems[ i ] );
712
+ }
713
+ }
714
+
715
+ return ret;
716
+ },
717
+
718
+ // arg is for internal usage only
719
+ map: function( elems, callback, arg ) {
720
+ var value, key,
721
+ ret = [],
722
+ i = 0,
723
+ length = elems.length,
724
+ // jquery objects are treated as arrays
725
+ isArray = elems instanceof jQuery || length !== undefined && typeof length === "number" && ( ( length > 0 && elems[ 0 ] && elems[ length -1 ] ) || length === 0 || jQuery.isArray( elems ) ) ;
726
+
727
+ // Go through the array, translating each of the items to their
728
+ if ( isArray ) {
729
+ for ( ; i < length; i++ ) {
730
+ value = callback( elems[ i ], i, arg );
731
+
732
+ if ( value != null ) {
733
+ ret[ ret.length ] = value;
734
+ }
735
+ }
736
+
737
+ // Go through every key on the object,
738
+ } else {
739
+ for ( key in elems ) {
740
+ value = callback( elems[ key ], key, arg );
741
+
742
+ if ( value != null ) {
743
+ ret[ ret.length ] = value;
744
+ }
745
+ }
746
+ }
747
+
748
+ // Flatten any nested arrays
749
+ return ret.concat.apply( [], ret );
750
+ },
751
+
752
+ // A global GUID counter for objects
753
+ guid: 1,
754
+
755
+ // Bind a function to a context, optionally partially applying any
756
+ // arguments.
757
+ proxy: function( fn, context ) {
758
+ var tmp, args, proxy;
759
+
760
+ if ( typeof context === "string" ) {
761
+ tmp = fn[ context ];
762
+ context = fn;
763
+ fn = tmp;
764
+ }
765
+
766
+ // Quick check to determine if target is callable, in the spec
767
+ // this throws a TypeError, but we will just return undefined.
768
+ if ( !jQuery.isFunction( fn ) ) {
769
+ return undefined;
770
+ }
771
+
772
+ // Simulated bind
773
+ args = core_slice.call( arguments, 2 );
774
+ proxy = function() {
775
+ return fn.apply( context, args.concat( core_slice.call( arguments ) ) );
776
+ };
777
+
778
+ // Set the guid of unique handler to the same of original handler, so it can be removed
779
+ proxy.guid = fn.guid = fn.guid || proxy.guid || jQuery.guid++;
780
+
781
+ return proxy;
782
+ },
783
+
784
+ // Multifunctional method to get and set values of a collection
785
+ // The value/s can optionally be executed if it's a function
786
+ access: function( elems, fn, key, value, chainable, emptyGet, pass ) {
787
+ var exec,
788
+ bulk = key == null,
789
+ i = 0,
790
+ length = elems.length;
791
+
792
+ // Sets many values
793
+ if ( key && typeof key === "object" ) {
794
+ for ( i in key ) {
795
+ jQuery.access( elems, fn, i, key[i], 1, emptyGet, value );
796
+ }
797
+ chainable = 1;
798
+
799
+ // Sets one value
800
+ } else if ( value !== undefined ) {
801
+ // Optionally, function values get executed if exec is true
802
+ exec = pass === undefined && jQuery.isFunction( value );
803
+
804
+ if ( bulk ) {
805
+ // Bulk operations only iterate when executing function values
806
+ if ( exec ) {
807
+ exec = fn;
808
+ fn = function( elem, key, value ) {
809
+ return exec.call( jQuery( elem ), value );
810
+ };
811
+
812
+ // Otherwise they run against the entire set
813
+ } else {
814
+ fn.call( elems, value );
815
+ fn = null;
816
+ }
817
+ }
818
+
819
+ if ( fn ) {
820
+ for (; i < length; i++ ) {
821
+ fn( elems[i], key, exec ? value.call( elems[i], i, fn( elems[i], key ) ) : value, pass );
822
+ }
823
+ }
824
+
825
+ chainable = 1;
826
+ }
827
+
828
+ return chainable ?
829
+ elems :
830
+
831
+ // Gets
832
+ bulk ?
833
+ fn.call( elems ) :
834
+ length ? fn( elems[0], key ) : emptyGet;
835
+ },
836
+
837
+ now: function() {
838
+ return ( new Date() ).getTime();
839
+ }
840
+ });
841
+
842
+ jQuery.ready.promise = function( obj ) {
843
+ if ( !readyList ) {
844
+
845
+ readyList = jQuery.Deferred();
846
+
847
+ // Catch cases where $(document).ready() is called after the
848
+ // browser event has already occurred.
849
+ if ( document.readyState === "complete" || ( document.readyState !== "loading" && document.addEventListener ) ) {
850
+ // Handle it asynchronously to allow scripts the opportunity to delay ready
851
+ setTimeout( jQuery.ready, 1 );
852
+
853
+ // Standards-based browsers support DOMContentLoaded
854
+ } else if ( document.addEventListener ) {
855
+ // Use the handy event callback
856
+ document.addEventListener( "DOMContentLoaded", DOMContentLoaded, false );
857
+
858
+ // A fallback to window.onload, that will always work
859
+ window.addEventListener( "load", jQuery.ready, false );
860
+
861
+ // If IE event model is used
862
+ } else {
863
+ // Ensure firing before onload, maybe late but safe also for iframes
864
+ document.attachEvent( "onreadystatechange", DOMContentLoaded );
865
+
866
+ // A fallback to window.onload, that will always work
867
+ window.attachEvent( "onload", jQuery.ready );
868
+
869
+ // If IE and not a frame
870
+ // continually check to see if the document is ready
871
+ var top = false;
872
+
873
+ try {
874
+ top = window.frameElement == null && document.documentElement;
875
+ } catch(e) {}
876
+
877
+ if ( top && top.doScroll ) {
878
+ (function doScrollCheck() {
879
+ if ( !jQuery.isReady ) {
880
+
881
+ try {
882
+ // Use the trick by Diego Perini
883
+ // http://javascript.nwbox.com/IEContentLoaded/
884
+ top.doScroll("left");
885
+ } catch(e) {
886
+ return setTimeout( doScrollCheck, 50 );
887
+ }
888
+
889
+ // and execute any waiting functions
890
+ jQuery.ready();
891
+ }
892
+ })();
893
+ }
894
+ }
895
+ }
896
+ return readyList.promise( obj );
897
+ };
898
+
899
+ // Populate the class2type map
900
+ jQuery.each("Boolean Number String Function Array Date RegExp Object".split(" "), function(i, name) {
901
+ class2type[ "[object " + name + "]" ] = name.toLowerCase();
902
+ });
903
+
904
+ // All jQuery objects should point back to these
905
+ rootjQuery = jQuery(document);
906
+ // String to Object options format cache
907
+ var optionsCache = {};
908
+
909
+ // Convert String-formatted options into Object-formatted ones and store in cache
910
+ function createOptions( options ) {
911
+ var object = optionsCache[ options ] = {};
912
+ jQuery.each( options.split( core_rspace ), function( _, flag ) {
913
+ object[ flag ] = true;
914
+ });
915
+ return object;
916
+ }
917
+
918
+ /*
919
+ * Create a callback list using the following parameters:
920
+ *
921
+ * options: an optional list of space-separated options that will change how
922
+ * the callback list behaves or a more traditional option object
923
+ *
924
+ * By default a callback list will act like an event callback list and can be
925
+ * "fired" multiple times.
926
+ *
927
+ * Possible options:
928
+ *
929
+ * once: will ensure the callback list can only be fired once (like a Deferred)
930
+ *
931
+ * memory: will keep track of previous values and will call any callback added
932
+ * after the list has been fired right away with the latest "memorized"
933
+ * values (like a Deferred)
934
+ *
935
+ * unique: will ensure a callback can only be added once (no duplicate in the list)
936
+ *
937
+ * stopOnFalse: interrupt callings when a callback returns false
938
+ *
939
+ */
940
+ jQuery.Callbacks = function( options ) {
941
+
942
+ // Convert options from String-formatted to Object-formatted if needed
943
+ // (we check in cache first)
944
+ options = typeof options === "string" ?
945
+ ( optionsCache[ options ] || createOptions( options ) ) :
946
+ jQuery.extend( {}, options );
947
+
948
+ var // Last fire value (for non-forgettable lists)
949
+ memory,
950
+ // Flag to know if list was already fired
951
+ fired,
952
+ // Flag to know if list is currently firing
953
+ firing,
954
+ // First callback to fire (used internally by add and fireWith)
955
+ firingStart,
956
+ // End of the loop when firing
957
+ firingLength,
958
+ // Index of currently firing callback (modified by remove if needed)
959
+ firingIndex,
960
+ // Actual callback list
961
+ list = [],
962
+ // Stack of fire calls for repeatable lists
963
+ stack = !options.once && [],
964
+ // Fire callbacks
965
+ fire = function( data ) {
966
+ memory = options.memory && data;
967
+ fired = true;
968
+ firingIndex = firingStart || 0;
969
+ firingStart = 0;
970
+ firingLength = list.length;
971
+ firing = true;
972
+ for ( ; list && firingIndex < firingLength; firingIndex++ ) {
973
+ if ( list[ firingIndex ].apply( data[ 0 ], data[ 1 ] ) === false && options.stopOnFalse ) {
974
+ memory = false; // To prevent further calls using add
975
+ break;
976
+ }
977
+ }
978
+ firing = false;
979
+ if ( list ) {
980
+ if ( stack ) {
981
+ if ( stack.length ) {
982
+ fire( stack.shift() );
983
+ }
984
+ } else if ( memory ) {
985
+ list = [];
986
+ } else {
987
+ self.disable();
988
+ }
989
+ }
990
+ },
991
+ // Actual Callbacks object
992
+ self = {
993
+ // Add a callback or a collection of callbacks to the list
994
+ add: function() {
995
+ if ( list ) {
996
+ // First, we save the current length
997
+ var start = list.length;
998
+ (function add( args ) {
999
+ jQuery.each( args, function( _, arg ) {
1000
+ if ( jQuery.isFunction( arg ) && ( !options.unique || !self.has( arg ) ) ) {
1001
+ list.push( arg );
1002
+ } else if ( arg && arg.length ) {
1003
+ // Inspect recursively
1004
+ add( arg );
1005
+ }
1006
+ });
1007
+ })( arguments );
1008
+ // Do we need to add the callbacks to the
1009
+ // current firing batch?
1010
+ if ( firing ) {
1011
+ firingLength = list.length;
1012
+ // With memory, if we're not firing then
1013
+ // we should call right away
1014
+ } else if ( memory ) {
1015
+ firingStart = start;
1016
+ fire( memory );
1017
+ }
1018
+ }
1019
+ return this;
1020
+ },
1021
+ // Remove a callback from the list
1022
+ remove: function() {
1023
+ if ( list ) {
1024
+ jQuery.each( arguments, function( _, arg ) {
1025
+ var index;
1026
+ while( ( index = jQuery.inArray( arg, list, index ) ) > -1 ) {
1027
+ list.splice( index, 1 );
1028
+ // Handle firing indexes
1029
+ if ( firing ) {
1030
+ if ( index <= firingLength ) {
1031
+ firingLength--;
1032
+ }
1033
+ if ( index <= firingIndex ) {
1034
+ firingIndex--;
1035
+ }
1036
+ }
1037
+ }
1038
+ });
1039
+ }
1040
+ return this;
1041
+ },
1042
+ // Control if a given callback is in the list
1043
+ has: function( fn ) {
1044
+ return jQuery.inArray( fn, list ) > -1;
1045
+ },
1046
+ // Remove all callbacks from the list
1047
+ empty: function() {
1048
+ list = [];
1049
+ return this;
1050
+ },
1051
+ // Have the list do nothing anymore
1052
+ disable: function() {
1053
+ list = stack = memory = undefined;
1054
+ return this;
1055
+ },
1056
+ // Is it disabled?
1057
+ disabled: function() {
1058
+ return !list;
1059
+ },
1060
+ // Lock the list in its current state
1061
+ lock: function() {
1062
+ stack = undefined;
1063
+ if ( !memory ) {
1064
+ self.disable();
1065
+ }
1066
+ return this;
1067
+ },
1068
+ // Is it locked?
1069
+ locked: function() {
1070
+ return !stack;
1071
+ },
1072
+ // Call all callbacks with the given context and arguments
1073
+ fireWith: function( context, args ) {
1074
+ args = args || [];
1075
+ args = [ context, args.slice ? args.slice() : args ];
1076
+ if ( list && ( !fired || stack ) ) {
1077
+ if ( firing ) {
1078
+ stack.push( args );
1079
+ } else {
1080
+ fire( args );
1081
+ }
1082
+ }
1083
+ return this;
1084
+ },
1085
+ // Call all the callbacks with the given arguments
1086
+ fire: function() {
1087
+ self.fireWith( this, arguments );
1088
+ return this;
1089
+ },
1090
+ // To know if the callbacks have already been called at least once
1091
+ fired: function() {
1092
+ return !!fired;
1093
+ }
1094
+ };
1095
+
1096
+ return self;
1097
+ };
1098
+ jQuery.extend({
1099
+
1100
+ Deferred: function( func ) {
1101
+ var tuples = [
1102
+ // action, add listener, listener list, final state
1103
+ [ "resolve", "done", jQuery.Callbacks("once memory"), "resolved" ],
1104
+ [ "reject", "fail", jQuery.Callbacks("once memory"), "rejected" ],
1105
+ [ "notify", "progress", jQuery.Callbacks("memory") ]
1106
+ ],
1107
+ state = "pending",
1108
+ promise = {
1109
+ state: function() {
1110
+ return state;
1111
+ },
1112
+ always: function() {
1113
+ deferred.done( arguments ).fail( arguments );
1114
+ return this;
1115
+ },
1116
+ then: function( /* fnDone, fnFail, fnProgress */ ) {
1117
+ var fns = arguments;
1118
+ return jQuery.Deferred(function( newDefer ) {
1119
+ jQuery.each( tuples, function( i, tuple ) {
1120
+ var action = tuple[ 0 ],
1121
+ fn = fns[ i ];
1122
+ // deferred[ done | fail | progress ] for forwarding actions to newDefer
1123
+ deferred[ tuple[1] ]( jQuery.isFunction( fn ) ?
1124
+ function() {
1125
+ var returned = fn.apply( this, arguments );
1126
+ if ( returned && jQuery.isFunction( returned.promise ) ) {
1127
+ returned.promise()
1128
+ .done( newDefer.resolve )
1129
+ .fail( newDefer.reject )
1130
+ .progress( newDefer.notify );
1131
+ } else {
1132
+ newDefer[ action + "With" ]( this === deferred ? newDefer : this, [ returned ] );
1133
+ }
1134
+ } :
1135
+ newDefer[ action ]
1136
+ );
1137
+ });
1138
+ fns = null;
1139
+ }).promise();
1140
+ },
1141
+ // Get a promise for this deferred
1142
+ // If obj is provided, the promise aspect is added to the object
1143
+ promise: function( obj ) {
1144
+ return typeof obj === "object" ? jQuery.extend( obj, promise ) : promise;
1145
+ }
1146
+ },
1147
+ deferred = {};
1148
+
1149
+ // Keep pipe for back-compat
1150
+ promise.pipe = promise.then;
1151
+
1152
+ // Add list-specific methods
1153
+ jQuery.each( tuples, function( i, tuple ) {
1154
+ var list = tuple[ 2 ],
1155
+ stateString = tuple[ 3 ];
1156
+
1157
+ // promise[ done | fail | progress ] = list.add
1158
+ promise[ tuple[1] ] = list.add;
1159
+
1160
+ // Handle state
1161
+ if ( stateString ) {
1162
+ list.add(function() {
1163
+ // state = [ resolved | rejected ]
1164
+ state = stateString;
1165
+
1166
+ // [ reject_list | resolve_list ].disable; progress_list.lock
1167
+ }, tuples[ i ^ 1 ][ 2 ].disable, tuples[ 2 ][ 2 ].lock );
1168
+ }
1169
+
1170
+ // deferred[ resolve | reject | notify ] = list.fire
1171
+ deferred[ tuple[0] ] = list.fire;
1172
+ deferred[ tuple[0] + "With" ] = list.fireWith;
1173
+ });
1174
+
1175
+ // Make the deferred a promise
1176
+ promise.promise( deferred );
1177
+
1178
+ // Call given func if any
1179
+ if ( func ) {
1180
+ func.call( deferred, deferred );
1181
+ }
1182
+
1183
+ // All done!
1184
+ return deferred;
1185
+ },
1186
+
1187
+ // Deferred helper
1188
+ when: function( subordinate /* , ..., subordinateN */ ) {
1189
+ var i = 0,
1190
+ resolveValues = core_slice.call( arguments ),
1191
+ length = resolveValues.length,
1192
+
1193
+ // the count of uncompleted subordinates
1194
+ remaining = length !== 1 || ( subordinate && jQuery.isFunction( subordinate.promise ) ) ? length : 0,
1195
+
1196
+ // the master Deferred. If resolveValues consist of only a single Deferred, just use that.
1197
+ deferred = remaining === 1 ? subordinate : jQuery.Deferred(),
1198
+
1199
+ // Update function for both resolve and progress values
1200
+ updateFunc = function( i, contexts, values ) {
1201
+ return function( value ) {
1202
+ contexts[ i ] = this;
1203
+ values[ i ] = arguments.length > 1 ? core_slice.call( arguments ) : value;
1204
+ if( values === progressValues ) {
1205
+ deferred.notifyWith( contexts, values );
1206
+ } else if ( !( --remaining ) ) {
1207
+ deferred.resolveWith( contexts, values );
1208
+ }
1209
+ };
1210
+ },
1211
+
1212
+ progressValues, progressContexts, resolveContexts;
1213
+
1214
+ // add listeners to Deferred subordinates; treat others as resolved
1215
+ if ( length > 1 ) {
1216
+ progressValues = new Array( length );
1217
+ progressContexts = new Array( length );
1218
+ resolveContexts = new Array( length );
1219
+ for ( ; i < length; i++ ) {
1220
+ if ( resolveValues[ i ] && jQuery.isFunction( resolveValues[ i ].promise ) ) {
1221
+ resolveValues[ i ].promise()
1222
+ .done( updateFunc( i, resolveContexts, resolveValues ) )
1223
+ .fail( deferred.reject )
1224
+ .progress( updateFunc( i, progressContexts, progressValues ) );
1225
+ } else {
1226
+ --remaining;
1227
+ }
1228
+ }
1229
+ }
1230
+
1231
+ // if we're not waiting on anything, resolve the master
1232
+ if ( !remaining ) {
1233
+ deferred.resolveWith( resolveContexts, resolveValues );
1234
+ }
1235
+
1236
+ return deferred.promise();
1237
+ }
1238
+ });
1239
+ jQuery.support = (function() {
1240
+
1241
+ var support,
1242
+ all,
1243
+ a,
1244
+ select,
1245
+ opt,
1246
+ input,
1247
+ fragment,
1248
+ eventName,
1249
+ i,
1250
+ isSupported,
1251
+ clickFn,
1252
+ div = document.createElement("div");
1253
+
1254
+ // Preliminary tests
1255
+ div.setAttribute( "className", "t" );
1256
+ div.innerHTML = " <link/><table></table><a href='/a'>a</a><input type='checkbox'/>";
1257
+
1258
+ all = div.getElementsByTagName("*");
1259
+ a = div.getElementsByTagName("a")[ 0 ];
1260
+ a.style.cssText = "top:1px;float:left;opacity:.5";
1261
+
1262
+ // Can't get basic test support
1263
+ if ( !all || !all.length || !a ) {
1264
+ return {};
1265
+ }
1266
+
1267
+ // First batch of supports tests
1268
+ select = document.createElement("select");
1269
+ opt = select.appendChild( document.createElement("option") );
1270
+ input = div.getElementsByTagName("input")[ 0 ];
1271
+
1272
+ support = {
1273
+ // IE strips leading whitespace when .innerHTML is used
1274
+ leadingWhitespace: ( div.firstChild.nodeType === 3 ),
1275
+
1276
+ // Make sure that tbody elements aren't automatically inserted
1277
+ // IE will insert them into empty tables
1278
+ tbody: !div.getElementsByTagName("tbody").length,
1279
+
1280
+ // Make sure that link elements get serialized correctly by innerHTML
1281
+ // This requires a wrapper element in IE
1282
+ htmlSerialize: !!div.getElementsByTagName("link").length,
1283
+
1284
+ // Get the style information from getAttribute
1285
+ // (IE uses .cssText instead)
1286
+ style: /top/.test( a.getAttribute("style") ),
1287
+
1288
+ // Make sure that URLs aren't manipulated
1289
+ // (IE normalizes it by default)
1290
+ hrefNormalized: ( a.getAttribute("href") === "/a" ),
1291
+
1292
+ // Make sure that element opacity exists
1293
+ // (IE uses filter instead)
1294
+ // Use a regex to work around a WebKit issue. See #5145
1295
+ opacity: /^0.5/.test( a.style.opacity ),
1296
+
1297
+ // Verify style float existence
1298
+ // (IE uses styleFloat instead of cssFloat)
1299
+ cssFloat: !!a.style.cssFloat,
1300
+
1301
+ // Make sure that if no value is specified for a checkbox
1302
+ // that it defaults to "on".
1303
+ // (WebKit defaults to "" instead)
1304
+ checkOn: ( input.value === "on" ),
1305
+
1306
+ // Make sure that a selected-by-default option has a working selected property.
1307
+ // (WebKit defaults to false instead of true, IE too, if it's in an optgroup)
1308
+ optSelected: opt.selected,
1309
+
1310
+ // Test setAttribute on camelCase class. If it works, we need attrFixes when doing get/setAttribute (ie6/7)
1311
+ getSetAttribute: div.className !== "t",
1312
+
1313
+ // Tests for enctype support on a form(#6743)
1314
+ enctype: !!document.createElement("form").enctype,
1315
+
1316
+ // Makes sure cloning an html5 element does not cause problems
1317
+ // Where outerHTML is undefined, this still works
1318
+ html5Clone: document.createElement("nav").cloneNode( true ).outerHTML !== "<:nav></:nav>",
1319
+
1320
+ // jQuery.support.boxModel DEPRECATED in 1.8 since we don't support Quirks Mode
1321
+ boxModel: ( document.compatMode === "CSS1Compat" ),
1322
+
1323
+ // Will be defined later
1324
+ submitBubbles: true,
1325
+ changeBubbles: true,
1326
+ focusinBubbles: false,
1327
+ deleteExpando: true,
1328
+ noCloneEvent: true,
1329
+ inlineBlockNeedsLayout: false,
1330
+ shrinkWrapBlocks: false,
1331
+ reliableMarginRight: true,
1332
+ boxSizingReliable: true,
1333
+ pixelPosition: false
1334
+ };
1335
+
1336
+ // Make sure checked status is properly cloned
1337
+ input.checked = true;
1338
+ support.noCloneChecked = input.cloneNode( true ).checked;
1339
+
1340
+ // Make sure that the options inside disabled selects aren't marked as disabled
1341
+ // (WebKit marks them as disabled)
1342
+ select.disabled = true;
1343
+ support.optDisabled = !opt.disabled;
1344
+
1345
+ // Test to see if it's possible to delete an expando from an element
1346
+ // Fails in Internet Explorer
1347
+ try {
1348
+ delete div.test;
1349
+ } catch( e ) {
1350
+ support.deleteExpando = false;
1351
+ }
1352
+
1353
+ if ( !div.addEventListener && div.attachEvent && div.fireEvent ) {
1354
+ div.attachEvent( "onclick", clickFn = function() {
1355
+ // Cloning a node shouldn't copy over any
1356
+ // bound event handlers (IE does this)
1357
+ support.noCloneEvent = false;
1358
+ });
1359
+ div.cloneNode( true ).fireEvent("onclick");
1360
+ div.detachEvent( "onclick", clickFn );
1361
+ }
1362
+
1363
+ // Check if a radio maintains its value
1364
+ // after being appended to the DOM
1365
+ input = document.createElement("input");
1366
+ input.value = "t";
1367
+ input.setAttribute( "type", "radio" );
1368
+ support.radioValue = input.value === "t";
1369
+
1370
+ input.setAttribute( "checked", "checked" );
1371
+
1372
+ // #11217 - WebKit loses check when the name is after the checked attribute
1373
+ input.setAttribute( "name", "t" );
1374
+
1375
+ div.appendChild( input );
1376
+ fragment = document.createDocumentFragment();
1377
+ fragment.appendChild( div.lastChild );
1378
+
1379
+ // WebKit doesn't clone checked state correctly in fragments
1380
+ support.checkClone = fragment.cloneNode( true ).cloneNode( true ).lastChild.checked;
1381
+
1382
+ // Check if a disconnected checkbox will retain its checked
1383
+ // value of true after appended to the DOM (IE6/7)
1384
+ support.appendChecked = input.checked;
1385
+
1386
+ fragment.removeChild( input );
1387
+ fragment.appendChild( div );
1388
+
1389
+ // Technique from Juriy Zaytsev
1390
+ // http://perfectionkills.com/detecting-event-support-without-browser-sniffing/
1391
+ // We only care about the case where non-standard event systems
1392
+ // are used, namely in IE. Short-circuiting here helps us to
1393
+ // avoid an eval call (in setAttribute) which can cause CSP
1394
+ // to go haywire. See: https://developer.mozilla.org/en/Security/CSP
1395
+ if ( div.attachEvent ) {
1396
+ for ( i in {
1397
+ submit: true,
1398
+ change: true,
1399
+ focusin: true
1400
+ }) {
1401
+ eventName = "on" + i;
1402
+ isSupported = ( eventName in div );
1403
+ if ( !isSupported ) {
1404
+ div.setAttribute( eventName, "return;" );
1405
+ isSupported = ( typeof div[ eventName ] === "function" );
1406
+ }
1407
+ support[ i + "Bubbles" ] = isSupported;
1408
+ }
1409
+ }
1410
+
1411
+ // Run tests that need a body at doc ready
1412
+ jQuery(function() {
1413
+ var container, div, tds, marginDiv,
1414
+ divReset = "padding:0;margin:0;border:0;display:block;overflow:hidden;",
1415
+ body = document.getElementsByTagName("body")[0];
1416
+
1417
+ if ( !body ) {
1418
+ // Return for frameset docs that don't have a body
1419
+ return;
1420
+ }
1421
+
1422
+ container = document.createElement("div");
1423
+ container.style.cssText = "visibility:hidden;border:0;width:0;height:0;position:static;top:0;margin-top:1px";
1424
+ body.insertBefore( container, body.firstChild );
1425
+
1426
+ // Construct the test element
1427
+ div = document.createElement("div");
1428
+ container.appendChild( div );
1429
+
1430
+ // Check if table cells still have offsetWidth/Height when they are set
1431
+ // to display:none and there are still other visible table cells in a
1432
+ // table row; if so, offsetWidth/Height are not reliable for use when
1433
+ // determining if an element has been hidden directly using
1434
+ // display:none (it is still safe to use offsets if a parent element is
1435
+ // hidden; don safety goggles and see bug #4512 for more information).
1436
+ // (only IE 8 fails this test)
1437
+ div.innerHTML = "<table><tr><td></td><td>t</td></tr></table>";
1438
+ tds = div.getElementsByTagName("td");
1439
+ tds[ 0 ].style.cssText = "padding:0;margin:0;border:0;display:none";
1440
+ isSupported = ( tds[ 0 ].offsetHeight === 0 );
1441
+
1442
+ tds[ 0 ].style.display = "";
1443
+ tds[ 1 ].style.display = "none";
1444
+
1445
+ // Check if empty table cells still have offsetWidth/Height
1446
+ // (IE <= 8 fail this test)
1447
+ support.reliableHiddenOffsets = isSupported && ( tds[ 0 ].offsetHeight === 0 );
1448
+
1449
+ // Check box-sizing and margin behavior
1450
+ div.innerHTML = "";
1451
+ div.style.cssText = "box-sizing:border-box;-moz-box-sizing:border-box;-webkit-box-sizing:border-box;padding:1px;border:1px;display:block;width:4px;margin-top:1%;position:absolute;top:1%;";
1452
+ support.boxSizing = ( div.offsetWidth === 4 );
1453
+ support.doesNotIncludeMarginInBodyOffset = ( body.offsetTop !== 1 );
1454
+
1455
+ // NOTE: To any future maintainer, window.getComputedStyle was used here
1456
+ // instead of getComputedStyle because it gave a better gzip size.
1457
+ // The difference between window.getComputedStyle and getComputedStyle is
1458
+ // 7 bytes
1459
+ if ( window.getComputedStyle ) {
1460
+ support.pixelPosition = ( window.getComputedStyle( div, null ) || {} ).top !== "1%";
1461
+ support.boxSizingReliable = ( window.getComputedStyle( div, null ) || { width: "4px" } ).width === "4px";
1462
+
1463
+ // Check if div with explicit width and no margin-right incorrectly
1464
+ // gets computed margin-right based on width of container. For more
1465
+ // info see bug #3333
1466
+ // Fails in WebKit before Feb 2011 nightlies
1467
+ // WebKit Bug 13343 - getComputedStyle returns wrong value for margin-right
1468
+ marginDiv = document.createElement("div");
1469
+ marginDiv.style.cssText = div.style.cssText = divReset;
1470
+ marginDiv.style.marginRight = marginDiv.style.width = "0";
1471
+ div.style.width = "1px";
1472
+ div.appendChild( marginDiv );
1473
+ support.reliableMarginRight =
1474
+ !parseFloat( ( window.getComputedStyle( marginDiv, null ) || {} ).marginRight );
1475
+ }
1476
+
1477
+ if ( typeof div.style.zoom !== "undefined" ) {
1478
+ // Check if natively block-level elements act like inline-block
1479
+ // elements when setting their display to 'inline' and giving
1480
+ // them layout
1481
+ // (IE < 8 does this)
1482
+ div.innerHTML = "";
1483
+ div.style.cssText = divReset + "width:1px;padding:1px;display:inline;zoom:1";
1484
+ support.inlineBlockNeedsLayout = ( div.offsetWidth === 3 );
1485
+
1486
+ // Check if elements with layout shrink-wrap their children
1487
+ // (IE 6 does this)
1488
+ div.style.display = "block";
1489
+ div.style.overflow = "visible";
1490
+ div.innerHTML = "<div></div>";
1491
+ div.firstChild.style.width = "5px";
1492
+ support.shrinkWrapBlocks = ( div.offsetWidth !== 3 );
1493
+
1494
+ container.style.zoom = 1;
1495
+ }
1496
+
1497
+ // Null elements to avoid leaks in IE
1498
+ body.removeChild( container );
1499
+ container = div = tds = marginDiv = null;
1500
+ });
1501
+
1502
+ // Null elements to avoid leaks in IE
1503
+ fragment.removeChild( div );
1504
+ all = a = select = opt = input = fragment = div = null;
1505
+
1506
+ return support;
1507
+ })();
1508
+ var rbrace = /^(?:\{.*\}|\[.*\])$/,
1509
+ rmultiDash = /([A-Z])/g;
1510
+
1511
+ jQuery.extend({
1512
+ cache: {},
1513
+
1514
+ deletedIds: [],
1515
+
1516
+ // Please use with caution
1517
+ uuid: 0,
1518
+
1519
+ // Unique for each copy of jQuery on the page
1520
+ // Non-digits removed to match rinlinejQuery
1521
+ expando: "sQuery" + ( jQuery.fn.jquery + Math.random() ).replace( /\D/g, "" ),
1522
+
1523
+ // The following elements throw uncatchable exceptions if you
1524
+ // attempt to add expando properties to them.
1525
+ noData: {
1526
+ "embed": true,
1527
+ // Ban all objects except for Flash (which handle expandos)
1528
+ "object": "clsid:D27CDB6E-AE6D-11cf-96B8-444553540000",
1529
+ "applet": true
1530
+ },
1531
+
1532
+ hasData: function( elem ) {
1533
+ elem = elem.nodeType ? jQuery.cache[ elem[jQuery.expando] ] : elem[ jQuery.expando ];
1534
+ return !!elem && !isEmptyDataObject( elem );
1535
+ },
1536
+
1537
+ data: function( elem, name, data, pvt /* Internal Use Only */ ) {
1538
+ if ( !jQuery.acceptData( elem ) ) {
1539
+ return;
1540
+ }
1541
+
1542
+ var thisCache, ret,
1543
+ internalKey = jQuery.expando,
1544
+ getByName = typeof name === "string",
1545
+
1546
+ // We have to handle DOM nodes and JS objects differently because IE6-7
1547
+ // can't GC object references properly across the DOM-JS boundary
1548
+ isNode = elem.nodeType,
1549
+
1550
+ // Only DOM nodes need the global jQuery cache; JS object data is
1551
+ // attached directly to the object so GC can occur automatically
1552
+ cache = isNode ? jQuery.cache : elem,
1553
+
1554
+ // Only defining an ID for JS objects if its cache already exists allows
1555
+ // the code to shortcut on the same path as a DOM node with no cache
1556
+ id = isNode ? elem[ internalKey ] : elem[ internalKey ] && internalKey;
1557
+
1558
+ // Avoid doing any more work than we need to when trying to get data on an
1559
+ // object that has no data at all
1560
+ if ( (!id || !cache[id] || (!pvt && !cache[id].data)) && getByName && data === undefined ) {
1561
+ return;
1562
+ }
1563
+
1564
+ if ( !id ) {
1565
+ // Only DOM nodes need a new unique ID for each element since their data
1566
+ // ends up in the global cache
1567
+ if ( isNode ) {
1568
+ elem[ internalKey ] = id = jQuery.deletedIds.pop() || ++jQuery.uuid;
1569
+ } else {
1570
+ id = internalKey;
1571
+ }
1572
+ }
1573
+
1574
+ if ( !cache[ id ] ) {
1575
+ cache[ id ] = {};
1576
+
1577
+ // Avoids exposing jQuery metadata on plain JS objects when the object
1578
+ // is serialized using JSON.stringify
1579
+ if ( !isNode ) {
1580
+ cache[ id ].toJSON = jQuery.noop;
1581
+ }
1582
+ }
1583
+
1584
+ // An object can be passed to jQuery.data instead of a key/value pair; this gets
1585
+ // shallow copied over onto the existing cache
1586
+ if ( typeof name === "object" || typeof name === "function" ) {
1587
+ if ( pvt ) {
1588
+ cache[ id ] = jQuery.extend( cache[ id ], name );
1589
+ } else {
1590
+ cache[ id ].data = jQuery.extend( cache[ id ].data, name );
1591
+ }
1592
+ }
1593
+
1594
+ thisCache = cache[ id ];
1595
+
1596
+ // jQuery data() is stored in a separate object inside the object's internal data
1597
+ // cache in order to avoid key collisions between internal data and user-defined
1598
+ // data.
1599
+ if ( !pvt ) {
1600
+ if ( !thisCache.data ) {
1601
+ thisCache.data = {};
1602
+ }
1603
+
1604
+ thisCache = thisCache.data;
1605
+ }
1606
+
1607
+ if ( data !== undefined ) {
1608
+ thisCache[ jQuery.camelCase( name ) ] = data;
1609
+ }
1610
+
1611
+ // Check for both converted-to-camel and non-converted data property names
1612
+ // If a data property was specified
1613
+ if ( getByName ) {
1614
+
1615
+ // First Try to find as-is property data
1616
+ ret = thisCache[ name ];
1617
+
1618
+ // Test for null|undefined property data
1619
+ if ( ret == null ) {
1620
+
1621
+ // Try to find the camelCased property
1622
+ ret = thisCache[ jQuery.camelCase( name ) ];
1623
+ }
1624
+ } else {
1625
+ ret = thisCache;
1626
+ }
1627
+
1628
+ return ret;
1629
+ },
1630
+
1631
+ removeData: function( elem, name, pvt /* Internal Use Only */ ) {
1632
+ if ( !jQuery.acceptData( elem ) ) {
1633
+ return;
1634
+ }
1635
+
1636
+ var thisCache, i, l,
1637
+
1638
+ isNode = elem.nodeType,
1639
+
1640
+ // See jQuery.data for more information
1641
+ cache = isNode ? jQuery.cache : elem,
1642
+ id = isNode ? elem[ jQuery.expando ] : jQuery.expando;
1643
+
1644
+ // If there is already no cache entry for this object, there is no
1645
+ // purpose in continuing
1646
+ if ( !cache[ id ] ) {
1647
+ return;
1648
+ }
1649
+
1650
+ if ( name ) {
1651
+
1652
+ thisCache = pvt ? cache[ id ] : cache[ id ].data;
1653
+
1654
+ if ( thisCache ) {
1655
+
1656
+ // Support array or space separated string names for data keys
1657
+ if ( !jQuery.isArray( name ) ) {
1658
+
1659
+ // try the string as a key before any manipulation
1660
+ if ( name in thisCache ) {
1661
+ name = [ name ];
1662
+ } else {
1663
+
1664
+ // split the camel cased version by spaces unless a key with the spaces exists
1665
+ name = jQuery.camelCase( name );
1666
+ if ( name in thisCache ) {
1667
+ name = [ name ];
1668
+ } else {
1669
+ name = name.split(" ");
1670
+ }
1671
+ }
1672
+ }
1673
+
1674
+ for ( i = 0, l = name.length; i < l; i++ ) {
1675
+ delete thisCache[ name[i] ];
1676
+ }
1677
+
1678
+ // If there is no data left in the cache, we want to continue
1679
+ // and let the cache object itself get destroyed
1680
+ if ( !( pvt ? isEmptyDataObject : jQuery.isEmptyObject )( thisCache ) ) {
1681
+ return;
1682
+ }
1683
+ }
1684
+ }
1685
+
1686
+ // See jQuery.data for more information
1687
+ if ( !pvt ) {
1688
+ delete cache[ id ].data;
1689
+
1690
+ // Don't destroy the parent cache unless the internal data object
1691
+ // had been the only thing left in it
1692
+ if ( !isEmptyDataObject( cache[ id ] ) ) {
1693
+ return;
1694
+ }
1695
+ }
1696
+
1697
+ // Destroy the cache
1698
+ if ( isNode ) {
1699
+ jQuery.cleanData( [ elem ], true );
1700
+
1701
+ // Use delete when supported for expandos or `cache` is not a window per isWindow (#10080)
1702
+ } else if ( jQuery.support.deleteExpando || cache != cache.window ) {
1703
+ delete cache[ id ];
1704
+
1705
+ // When all else fails, null
1706
+ } else {
1707
+ cache[ id ] = null;
1708
+ }
1709
+ },
1710
+
1711
+ // For internal use only.
1712
+ _data: function( elem, name, data ) {
1713
+ return jQuery.data( elem, name, data, true );
1714
+ },
1715
+
1716
+ // A method for determining if a DOM node can handle the data expando
1717
+ acceptData: function( elem ) {
1718
+ var noData = elem.nodeName && jQuery.noData[ elem.nodeName.toLowerCase() ];
1719
+
1720
+ // nodes accept data unless otherwise specified; rejection can be conditional
1721
+ return !noData || noData !== true && elem.getAttribute("classid") === noData;
1722
+ }
1723
+ });
1724
+
1725
+ jQuery.fn.extend({
1726
+ data: function( key, value ) {
1727
+ var parts, part, attr, name, l,
1728
+ elem = this[0],
1729
+ i = 0,
1730
+ data = null;
1731
+
1732
+ // Gets all values
1733
+ if ( key === undefined ) {
1734
+ if ( this.length ) {
1735
+ data = jQuery.data( elem );
1736
+
1737
+ if ( elem.nodeType === 1 && !jQuery._data( elem, "parsedAttrs" ) ) {
1738
+ attr = elem.attributes;
1739
+ for ( l = attr.length; i < l; i++ ) {
1740
+ name = attr[i].name;
1741
+
1742
+ if ( name.indexOf( "data-" ) === 0 ) {
1743
+ name = jQuery.camelCase( name.substring(5) );
1744
+
1745
+ dataAttr( elem, name, data[ name ] );
1746
+ }
1747
+ }
1748
+ jQuery._data( elem, "parsedAttrs", true );
1749
+ }
1750
+ }
1751
+
1752
+ return data;
1753
+ }
1754
+
1755
+ // Sets multiple values
1756
+ if ( typeof key === "object" ) {
1757
+ return this.each(function() {
1758
+ jQuery.data( this, key );
1759
+ });
1760
+ }
1761
+
1762
+ parts = key.split( ".", 2 );
1763
+ parts[1] = parts[1] ? "." + parts[1] : "";
1764
+ part = parts[1] + "!";
1765
+
1766
+ return jQuery.access( this, function( value ) {
1767
+
1768
+ if ( value === undefined ) {
1769
+ data = this.triggerHandler( "getData" + part, [ parts[0] ] );
1770
+
1771
+ // Try to fetch any internally stored data first
1772
+ if ( data === undefined && elem ) {
1773
+ data = jQuery.data( elem, key );
1774
+ data = dataAttr( elem, key, data );
1775
+ }
1776
+
1777
+ return data === undefined && parts[1] ?
1778
+ this.data( parts[0] ) :
1779
+ data;
1780
+ }
1781
+
1782
+ parts[1] = value;
1783
+ this.each(function() {
1784
+ var self = jQuery( this );
1785
+
1786
+ self.triggerHandler( "setData" + part, parts );
1787
+ jQuery.data( this, key, value );
1788
+ self.triggerHandler( "changeData" + part, parts );
1789
+ });
1790
+ }, null, value, arguments.length > 1, null, false );
1791
+ },
1792
+
1793
+ removeData: function( key ) {
1794
+ return this.each(function() {
1795
+ jQuery.removeData( this, key );
1796
+ });
1797
+ }
1798
+ });
1799
+
1800
+ function dataAttr( elem, key, data ) {
1801
+ // If nothing was found internally, try to fetch any
1802
+ // data from the HTML5 data-* attribute
1803
+ if ( data === undefined && elem.nodeType === 1 ) {
1804
+
1805
+ var name = "data-" + key.replace( rmultiDash, "-$1" ).toLowerCase();
1806
+
1807
+ data = elem.getAttribute( name );
1808
+
1809
+ if ( typeof data === "string" ) {
1810
+ try {
1811
+ data = data === "true" ? true :
1812
+ data === "false" ? false :
1813
+ data === "null" ? null :
1814
+ // Only convert to a number if it doesn't change the string
1815
+ +data + "" === data ? +data :
1816
+ rbrace.test( data ) ? jQuery.parseJSON( data ) :
1817
+ data;
1818
+ } catch( e ) {}
1819
+
1820
+ // Make sure we set the data so it isn't changed later
1821
+ jQuery.data( elem, key, data );
1822
+
1823
+ } else {
1824
+ data = undefined;
1825
+ }
1826
+ }
1827
+
1828
+ return data;
1829
+ }
1830
+
1831
+ // checks a cache object for emptiness
1832
+ function isEmptyDataObject( obj ) {
1833
+ var name;
1834
+ for ( name in obj ) {
1835
+
1836
+ // if the public data object is empty, the private is still empty
1837
+ if ( name === "data" && jQuery.isEmptyObject( obj[name] ) ) {
1838
+ continue;
1839
+ }
1840
+ if ( name !== "toJSON" ) {
1841
+ return false;
1842
+ }
1843
+ }
1844
+
1845
+ return true;
1846
+ }
1847
+ jQuery.extend({
1848
+ queue: function( elem, type, data ) {
1849
+ var queue;
1850
+
1851
+ if ( elem ) {
1852
+ type = ( type || "fx" ) + "queue";
1853
+ queue = jQuery._data( elem, type );
1854
+
1855
+ // Speed up dequeue by getting out quickly if this is just a lookup
1856
+ if ( data ) {
1857
+ if ( !queue || jQuery.isArray(data) ) {
1858
+ queue = jQuery._data( elem, type, jQuery.makeArray(data) );
1859
+ } else {
1860
+ queue.push( data );
1861
+ }
1862
+ }
1863
+ return queue || [];
1864
+ }
1865
+ },
1866
+
1867
+ dequeue: function( elem, type ) {
1868
+ type = type || "fx";
1869
+
1870
+ var queue = jQuery.queue( elem, type ),
1871
+ fn = queue.shift(),
1872
+ hooks = jQuery._queueHooks( elem, type ),
1873
+ next = function() {
1874
+ jQuery.dequeue( elem, type );
1875
+ };
1876
+
1877
+ // If the fx queue is dequeued, always remove the progress sentinel
1878
+ if ( fn === "inprogress" ) {
1879
+ fn = queue.shift();
1880
+ }
1881
+
1882
+ if ( fn ) {
1883
+
1884
+ // Add a progress sentinel to prevent the fx queue from being
1885
+ // automatically dequeued
1886
+ if ( type === "fx" ) {
1887
+ queue.unshift( "inprogress" );
1888
+ }
1889
+
1890
+ // clear up the last queue stop function
1891
+ delete hooks.stop;
1892
+ fn.call( elem, next, hooks );
1893
+ }
1894
+ if ( !queue.length && hooks ) {
1895
+ hooks.empty.fire();
1896
+ }
1897
+ },
1898
+
1899
+ // not intended for public consumption - generates a queueHooks object, or returns the current one
1900
+ _queueHooks: function( elem, type ) {
1901
+ var key = type + "queueHooks";
1902
+ return jQuery._data( elem, key ) || jQuery._data( elem, key, {
1903
+ empty: jQuery.Callbacks("once memory").add(function() {
1904
+ jQuery.removeData( elem, type + "queue", true );
1905
+ jQuery.removeData( elem, key, true );
1906
+ })
1907
+ });
1908
+ }
1909
+ });
1910
+
1911
+ jQuery.fn.extend({
1912
+ queue: function( type, data ) {
1913
+ var setter = 2;
1914
+
1915
+ if ( typeof type !== "string" ) {
1916
+ data = type;
1917
+ type = "fx";
1918
+ setter--;
1919
+ }
1920
+
1921
+ if ( arguments.length < setter ) {
1922
+ return jQuery.queue( this[0], type );
1923
+ }
1924
+
1925
+ return data === undefined ?
1926
+ this :
1927
+ this.each(function() {
1928
+ var queue = jQuery.queue( this, type, data );
1929
+
1930
+ // ensure a hooks for this queue
1931
+ jQuery._queueHooks( this, type );
1932
+
1933
+ if ( type === "fx" && queue[0] !== "inprogress" ) {
1934
+ jQuery.dequeue( this, type );
1935
+ }
1936
+ });
1937
+ },
1938
+ dequeue: function( type ) {
1939
+ return this.each(function() {
1940
+ jQuery.dequeue( this, type );
1941
+ });
1942
+ },
1943
+ // Based off of the plugin by Clint Helfers, with permission.
1944
+ // http://blindsignals.com/index.php/2009/07/jquery-delay/
1945
+ delay: function( time, type ) {
1946
+ time = jQuery.fx ? jQuery.fx.speeds[ time ] || time : time;
1947
+ type = type || "fx";
1948
+
1949
+ return this.queue( type, function( next, hooks ) {
1950
+ var timeout = setTimeout( next, time );
1951
+ hooks.stop = function() {
1952
+ clearTimeout( timeout );
1953
+ };
1954
+ });
1955
+ },
1956
+ clearQueue: function( type ) {
1957
+ return this.queue( type || "fx", [] );
1958
+ },
1959
+ // Get a promise resolved when queues of a certain type
1960
+ // are emptied (fx is the type by default)
1961
+ promise: function( type, obj ) {
1962
+ var tmp,
1963
+ count = 1,
1964
+ defer = jQuery.Deferred(),
1965
+ elements = this,
1966
+ i = this.length,
1967
+ resolve = function() {
1968
+ if ( !( --count ) ) {
1969
+ defer.resolveWith( elements, [ elements ] );
1970
+ }
1971
+ };
1972
+
1973
+ if ( typeof type !== "string" ) {
1974
+ obj = type;
1975
+ type = undefined;
1976
+ }
1977
+ type = type || "fx";
1978
+
1979
+ while( i-- ) {
1980
+ if ( (tmp = jQuery._data( elements[ i ], type + "queueHooks" )) && tmp.empty ) {
1981
+ count++;
1982
+ tmp.empty.add( resolve );
1983
+ }
1984
+ }
1985
+ resolve();
1986
+ return defer.promise( obj );
1987
+ }
1988
+ });
1989
+ var nodeHook, boolHook, fixSpecified,
1990
+ rclass = /[\t\r\n]/g,
1991
+ rreturn = /\r/g,
1992
+ rtype = /^(?:button|input)$/i,
1993
+ rfocusable = /^(?:button|input|object|select|textarea)$/i,
1994
+ rclickable = /^a(?:rea|)$/i,
1995
+ rboolean = /^(?:autofocus|autoplay|async|checked|controls|defer|disabled|hidden|loop|multiple|open|readonly|required|scoped|selected)$/i,
1996
+ getSetAttribute = jQuery.support.getSetAttribute;
1997
+
1998
+ jQuery.fn.extend({
1999
+ attr: function( name, value ) {
2000
+ return jQuery.access( this, jQuery.attr, name, value, arguments.length > 1 );
2001
+ },
2002
+
2003
+ removeAttr: function( name ) {
2004
+ return this.each(function() {
2005
+ jQuery.removeAttr( this, name );
2006
+ });
2007
+ },
2008
+
2009
+ prop: function( name, value ) {
2010
+ return jQuery.access( this, jQuery.prop, name, value, arguments.length > 1 );
2011
+ },
2012
+
2013
+ removeProp: function( name ) {
2014
+ name = jQuery.propFix[ name ] || name;
2015
+ return this.each(function() {
2016
+ // try/catch handles cases where IE balks (such as removing a property on window)
2017
+ try {
2018
+ this[ name ] = undefined;
2019
+ delete this[ name ];
2020
+ } catch( e ) {}
2021
+ });
2022
+ },
2023
+
2024
+ addClass: function( value ) {
2025
+ var classNames, i, l, elem,
2026
+ setClass, c, cl;
2027
+
2028
+ if ( jQuery.isFunction( value ) ) {
2029
+ return this.each(function( j ) {
2030
+ jQuery( this ).addClass( value.call(this, j, this.className) );
2031
+ });
2032
+ }
2033
+
2034
+ if ( value && typeof value === "string" ) {
2035
+ classNames = value.split( core_rspace );
2036
+
2037
+ for ( i = 0, l = this.length; i < l; i++ ) {
2038
+ elem = this[ i ];
2039
+
2040
+ if ( elem.nodeType === 1 ) {
2041
+ if ( !elem.className && classNames.length === 1 ) {
2042
+ elem.className = value;
2043
+
2044
+ } else {
2045
+ setClass = " " + elem.className + " ";
2046
+
2047
+ for ( c = 0, cl = classNames.length; c < cl; c++ ) {
2048
+ if ( !~setClass.indexOf( " " + classNames[ c ] + " " ) ) {
2049
+ setClass += classNames[ c ] + " ";
2050
+ }
2051
+ }
2052
+ elem.className = jQuery.trim( setClass );
2053
+ }
2054
+ }
2055
+ }
2056
+ }
2057
+
2058
+ return this;
2059
+ },
2060
+
2061
+ removeClass: function( value ) {
2062
+ var removes, className, elem, c, cl, i, l;
2063
+
2064
+ if ( jQuery.isFunction( value ) ) {
2065
+ return this.each(function( j ) {
2066
+ jQuery( this ).removeClass( value.call(this, j, this.className) );
2067
+ });
2068
+ }
2069
+ if ( (value && typeof value === "string") || value === undefined ) {
2070
+ removes = ( value || "" ).split( core_rspace );
2071
+
2072
+ for ( i = 0, l = this.length; i < l; i++ ) {
2073
+ elem = this[ i ];
2074
+ if ( elem.nodeType === 1 && elem.className ) {
2075
+
2076
+ className = (" " + elem.className + " ").replace( rclass, " " );
2077
+
2078
+ // loop over each item in the removal list
2079
+ for ( c = 0, cl = removes.length; c < cl; c++ ) {
2080
+ // Remove until there is nothing to remove,
2081
+ while ( className.indexOf(" " + removes[ c ] + " ") > -1 ) {
2082
+ className = className.replace( " " + removes[ c ] + " " , " " );
2083
+ }
2084
+ }
2085
+ elem.className = value ? jQuery.trim( className ) : "";
2086
+ }
2087
+ }
2088
+ }
2089
+
2090
+ return this;
2091
+ },
2092
+
2093
+ toggleClass: function( value, stateVal ) {
2094
+ var type = typeof value,
2095
+ isBool = typeof stateVal === "boolean";
2096
+
2097
+ if ( jQuery.isFunction( value ) ) {
2098
+ return this.each(function( i ) {
2099
+ jQuery( this ).toggleClass( value.call(this, i, this.className, stateVal), stateVal );
2100
+ });
2101
+ }
2102
+
2103
+ return this.each(function() {
2104
+ if ( type === "string" ) {
2105
+ // toggle individual class names
2106
+ var className,
2107
+ i = 0,
2108
+ self = jQuery( this ),
2109
+ state = stateVal,
2110
+ classNames = value.split( core_rspace );
2111
+
2112
+ while ( (className = classNames[ i++ ]) ) {
2113
+ // check each className given, space separated list
2114
+ state = isBool ? state : !self.hasClass( className );
2115
+ self[ state ? "addClass" : "removeClass" ]( className );
2116
+ }
2117
+
2118
+ } else if ( type === "undefined" || type === "boolean" ) {
2119
+ if ( this.className ) {
2120
+ // store className if set
2121
+ jQuery._data( this, "__className__", this.className );
2122
+ }
2123
+
2124
+ // toggle whole className
2125
+ this.className = this.className || value === false ? "" : jQuery._data( this, "__className__" ) || "";
2126
+ }
2127
+ });
2128
+ },
2129
+
2130
+ hasClass: function( selector ) {
2131
+ var className = " " + selector + " ",
2132
+ i = 0,
2133
+ l = this.length;
2134
+ for ( ; i < l; i++ ) {
2135
+ if ( this[i].nodeType === 1 && (" " + this[i].className + " ").replace(rclass, " ").indexOf( className ) > -1 ) {
2136
+ return true;
2137
+ }
2138
+ }
2139
+
2140
+ return false;
2141
+ },
2142
+
2143
+ val: function( value ) {
2144
+ var hooks, ret, isFunction,
2145
+ elem = this[0];
2146
+
2147
+ if ( !arguments.length ) {
2148
+ if ( elem ) {
2149
+ hooks = jQuery.valHooks[ elem.type ] || jQuery.valHooks[ elem.nodeName.toLowerCase() ];
2150
+
2151
+ if ( hooks && "get" in hooks && (ret = hooks.get( elem, "value" )) !== undefined ) {
2152
+ return ret;
2153
+ }
2154
+
2155
+ ret = elem.value;
2156
+
2157
+ return typeof ret === "string" ?
2158
+ // handle most common string cases
2159
+ ret.replace(rreturn, "") :
2160
+ // handle cases where value is null/undef or number
2161
+ ret == null ? "" : ret;
2162
+ }
2163
+
2164
+ return;
2165
+ }
2166
+
2167
+ isFunction = jQuery.isFunction( value );
2168
+
2169
+ return this.each(function( i ) {
2170
+ var val,
2171
+ self = jQuery(this);
2172
+
2173
+ if ( this.nodeType !== 1 ) {
2174
+ return;
2175
+ }
2176
+
2177
+ if ( isFunction ) {
2178
+ val = value.call( this, i, self.val() );
2179
+ } else {
2180
+ val = value;
2181
+ }
2182
+
2183
+ // Treat null/undefined as ""; convert numbers to string
2184
+ if ( val == null ) {
2185
+ val = "";
2186
+ } else if ( typeof val === "number" ) {
2187
+ val += "";
2188
+ } else if ( jQuery.isArray( val ) ) {
2189
+ val = jQuery.map(val, function ( value ) {
2190
+ return value == null ? "" : value + "";
2191
+ });
2192
+ }
2193
+
2194
+ hooks = jQuery.valHooks[ this.type ] || jQuery.valHooks[ this.nodeName.toLowerCase() ];
2195
+
2196
+ // If set returns undefined, fall back to normal setting
2197
+ if ( !hooks || !("set" in hooks) || hooks.set( this, val, "value" ) === undefined ) {
2198
+ this.value = val;
2199
+ }
2200
+ });
2201
+ }
2202
+ });
2203
+
2204
+ jQuery.extend({
2205
+ valHooks: {
2206
+ option: {
2207
+ get: function( elem ) {
2208
+ // attributes.value is undefined in Blackberry 4.7 but
2209
+ // uses .value. See #6932
2210
+ var val = elem.attributes.value;
2211
+ return !val || val.specified ? elem.value : elem.text;
2212
+ }
2213
+ },
2214
+ select: {
2215
+ get: function( elem ) {
2216
+ var value, i, max, option,
2217
+ index = elem.selectedIndex,
2218
+ values = [],
2219
+ options = elem.options,
2220
+ one = elem.type === "select-one";
2221
+
2222
+ // Nothing was selected
2223
+ if ( index < 0 ) {
2224
+ return null;
2225
+ }
2226
+
2227
+ // Loop through all the selected options
2228
+ i = one ? index : 0;
2229
+ max = one ? index + 1 : options.length;
2230
+ for ( ; i < max; i++ ) {
2231
+ option = options[ i ];
2232
+
2233
+ // Don't return options that are disabled or in a disabled optgroup
2234
+ if ( option.selected && (jQuery.support.optDisabled ? !option.disabled : option.getAttribute("disabled") === null) &&
2235
+ (!option.parentNode.disabled || !jQuery.nodeName( option.parentNode, "optgroup" )) ) {
2236
+
2237
+ // Get the specific value for the option
2238
+ value = jQuery( option ).val();
2239
+
2240
+ // We don't need an array for one selects
2241
+ if ( one ) {
2242
+ return value;
2243
+ }
2244
+
2245
+ // Multi-Selects return an array
2246
+ values.push( value );
2247
+ }
2248
+ }
2249
+
2250
+ // Fixes Bug #2551 -- select.val() broken in IE after form.reset()
2251
+ if ( one && !values.length && options.length ) {
2252
+ return jQuery( options[ index ] ).val();
2253
+ }
2254
+
2255
+ return values;
2256
+ },
2257
+
2258
+ set: function( elem, value ) {
2259
+ var values = jQuery.makeArray( value );
2260
+
2261
+ jQuery(elem).find("option").each(function() {
2262
+ this.selected = jQuery.inArray( jQuery(this).val(), values ) >= 0;
2263
+ });
2264
+
2265
+ if ( !values.length ) {
2266
+ elem.selectedIndex = -1;
2267
+ }
2268
+ return values;
2269
+ }
2270
+ }
2271
+ },
2272
+
2273
+ // Unused in 1.8, left in so attrFn-stabbers won't die; remove in 1.9
2274
+ attrFn: {},
2275
+
2276
+ attr: function( elem, name, value, pass ) {
2277
+ var ret, hooks, notxml,
2278
+ nType = elem.nodeType;
2279
+
2280
+ // don't get/set attributes on text, comment and attribute nodes
2281
+ if ( !elem || nType === 3 || nType === 8 || nType === 2 ) {
2282
+ return;
2283
+ }
2284
+
2285
+ if ( pass && jQuery.isFunction( jQuery.fn[ name ] ) ) {
2286
+ return jQuery( elem )[ name ]( value );
2287
+ }
2288
+
2289
+ // Fallback to prop when attributes are not supported
2290
+ if ( typeof elem.getAttribute === "undefined" ) {
2291
+ return jQuery.prop( elem, name, value );
2292
+ }
2293
+
2294
+ notxml = nType !== 1 || !jQuery.isXMLDoc( elem );
2295
+
2296
+ // All attributes are lowercase
2297
+ // Grab necessary hook if one is defined
2298
+ if ( notxml ) {
2299
+ name = name.toLowerCase();
2300
+ hooks = jQuery.attrHooks[ name ] || ( rboolean.test( name ) ? boolHook : nodeHook );
2301
+ }
2302
+
2303
+ if ( value !== undefined ) {
2304
+
2305
+ if ( value === null ) {
2306
+ jQuery.removeAttr( elem, name );
2307
+ return;
2308
+
2309
+ } else if ( hooks && "set" in hooks && notxml && (ret = hooks.set( elem, value, name )) !== undefined ) {
2310
+ return ret;
2311
+
2312
+ } else {
2313
+ elem.setAttribute( name, "" + value );
2314
+ return value;
2315
+ }
2316
+
2317
+ } else if ( hooks && "get" in hooks && notxml && (ret = hooks.get( elem, name )) !== null ) {
2318
+ return ret;
2319
+
2320
+ } else {
2321
+
2322
+ ret = elem.getAttribute( name );
2323
+
2324
+ // Non-existent attributes return null, we normalize to undefined
2325
+ return ret === null ?
2326
+ undefined :
2327
+ ret;
2328
+ }
2329
+ },
2330
+
2331
+ removeAttr: function( elem, value ) {
2332
+ var propName, attrNames, name, isBool,
2333
+ i = 0;
2334
+
2335
+ if ( value && elem.nodeType === 1 ) {
2336
+
2337
+ attrNames = value.split( core_rspace );
2338
+
2339
+ for ( ; i < attrNames.length; i++ ) {
2340
+ name = attrNames[ i ];
2341
+
2342
+ if ( name ) {
2343
+ propName = jQuery.propFix[ name ] || name;
2344
+ isBool = rboolean.test( name );
2345
+
2346
+ // See #9699 for explanation of this approach (setting first, then removal)
2347
+ // Do not do this for boolean attributes (see #10870)
2348
+ if ( !isBool ) {
2349
+ jQuery.attr( elem, name, "" );
2350
+ }
2351
+ elem.removeAttribute( getSetAttribute ? name : propName );
2352
+
2353
+ // Set corresponding property to false for boolean attributes
2354
+ if ( isBool && propName in elem ) {
2355
+ elem[ propName ] = false;
2356
+ }
2357
+ }
2358
+ }
2359
+ }
2360
+ },
2361
+
2362
+ attrHooks: {
2363
+ type: {
2364
+ set: function( elem, value ) {
2365
+ // We can't allow the type property to be changed (since it causes problems in IE)
2366
+ if ( rtype.test( elem.nodeName ) && elem.parentNode ) {
2367
+ jQuery.error( "type property can't be changed" );
2368
+ } else if ( !jQuery.support.radioValue && value === "radio" && jQuery.nodeName(elem, "input") ) {
2369
+ // Setting the type on a radio button after the value resets the value in IE6-9
2370
+ // Reset value to it's default in case type is set after value
2371
+ // This is for element creation
2372
+ var val = elem.value;
2373
+ elem.setAttribute( "type", value );
2374
+ if ( val ) {
2375
+ elem.value = val;
2376
+ }
2377
+ return value;
2378
+ }
2379
+ }
2380
+ },
2381
+ // Use the value property for back compat
2382
+ // Use the nodeHook for button elements in IE6/7 (#1954)
2383
+ value: {
2384
+ get: function( elem, name ) {
2385
+ if ( nodeHook && jQuery.nodeName( elem, "button" ) ) {
2386
+ return nodeHook.get( elem, name );
2387
+ }
2388
+ return name in elem ?
2389
+ elem.value :
2390
+ null;
2391
+ },
2392
+ set: function( elem, value, name ) {
2393
+ if ( nodeHook && jQuery.nodeName( elem, "button" ) ) {
2394
+ return nodeHook.set( elem, value, name );
2395
+ }
2396
+ // Does not return so that setAttribute is also used
2397
+ elem.value = value;
2398
+ }
2399
+ }
2400
+ },
2401
+
2402
+ propFix: {
2403
+ tabindex: "tabIndex",
2404
+ readonly: "readOnly",
2405
+ "for": "htmlFor",
2406
+ "class": "className",
2407
+ maxlength: "maxLength",
2408
+ cellspacing: "cellSpacing",
2409
+ cellpadding: "cellPadding",
2410
+ rowspan: "rowSpan",
2411
+ colspan: "colSpan",
2412
+ usemap: "useMap",
2413
+ frameborder: "frameBorder",
2414
+ contenteditable: "contentEditable"
2415
+ },
2416
+
2417
+ prop: function( elem, name, value ) {
2418
+ var ret, hooks, notxml,
2419
+ nType = elem.nodeType;
2420
+
2421
+ // don't get/set properties on text, comment and attribute nodes
2422
+ if ( !elem || nType === 3 || nType === 8 || nType === 2 ) {
2423
+ return;
2424
+ }
2425
+
2426
+ notxml = nType !== 1 || !jQuery.isXMLDoc( elem );
2427
+
2428
+ if ( notxml ) {
2429
+ // Fix name and attach hooks
2430
+ name = jQuery.propFix[ name ] || name;
2431
+ hooks = jQuery.propHooks[ name ];
2432
+ }
2433
+
2434
+ if ( value !== undefined ) {
2435
+ if ( hooks && "set" in hooks && (ret = hooks.set( elem, value, name )) !== undefined ) {
2436
+ return ret;
2437
+
2438
+ } else {
2439
+ return ( elem[ name ] = value );
2440
+ }
2441
+
2442
+ } else {
2443
+ if ( hooks && "get" in hooks && (ret = hooks.get( elem, name )) !== null ) {
2444
+ return ret;
2445
+
2446
+ } else {
2447
+ return elem[ name ];
2448
+ }
2449
+ }
2450
+ },
2451
+
2452
+ propHooks: {
2453
+ tabIndex: {
2454
+ get: function( elem ) {
2455
+ // elem.tabIndex doesn't always return the correct value when it hasn't been explicitly set
2456
+ // http://fluidproject.org/blog/2008/01/09/getting-setting-and-removing-tabindex-values-with-javascript/
2457
+ var attributeNode = elem.getAttributeNode("tabindex");
2458
+
2459
+ return attributeNode && attributeNode.specified ?
2460
+ parseInt( attributeNode.value, 10 ) :
2461
+ rfocusable.test( elem.nodeName ) || rclickable.test( elem.nodeName ) && elem.href ?
2462
+ 0 :
2463
+ undefined;
2464
+ }
2465
+ }
2466
+ }
2467
+ });
2468
+
2469
+ // Hook for boolean attributes
2470
+ boolHook = {
2471
+ get: function( elem, name ) {
2472
+ // Align boolean attributes with corresponding properties
2473
+ // Fall back to attribute presence where some booleans are not supported
2474
+ var attrNode,
2475
+ property = jQuery.prop( elem, name );
2476
+ return property === true || typeof property !== "boolean" && ( attrNode = elem.getAttributeNode(name) ) && attrNode.nodeValue !== false ?
2477
+ name.toLowerCase() :
2478
+ undefined;
2479
+ },
2480
+ set: function( elem, value, name ) {
2481
+ var propName;
2482
+ if ( value === false ) {
2483
+ // Remove boolean attributes when set to false
2484
+ jQuery.removeAttr( elem, name );
2485
+ } else {
2486
+ // value is true since we know at this point it's type boolean and not false
2487
+ // Set boolean attributes to the same name and set the DOM property
2488
+ propName = jQuery.propFix[ name ] || name;
2489
+ if ( propName in elem ) {
2490
+ // Only set the IDL specifically if it already exists on the element
2491
+ elem[ propName ] = true;
2492
+ }
2493
+
2494
+ elem.setAttribute( name, name.toLowerCase() );
2495
+ }
2496
+ return name;
2497
+ }
2498
+ };
2499
+
2500
+ // IE6/7 do not support getting/setting some attributes with get/setAttribute
2501
+ if ( !getSetAttribute ) {
2502
+
2503
+ fixSpecified = {
2504
+ name: true,
2505
+ id: true,
2506
+ coords: true
2507
+ };
2508
+
2509
+ // Use this for any attribute in IE6/7
2510
+ // This fixes almost every IE6/7 issue
2511
+ nodeHook = jQuery.valHooks.button = {
2512
+ get: function( elem, name ) {
2513
+ var ret;
2514
+ ret = elem.getAttributeNode( name );
2515
+ return ret && ( fixSpecified[ name ] ? ret.value !== "" : ret.specified ) ?
2516
+ ret.value :
2517
+ undefined;
2518
+ },
2519
+ set: function( elem, value, name ) {
2520
+ // Set the existing or create a new attribute node
2521
+ var ret = elem.getAttributeNode( name );
2522
+ if ( !ret ) {
2523
+ ret = document.createAttribute( name );
2524
+ elem.setAttributeNode( ret );
2525
+ }
2526
+ return ( ret.value = value + "" );
2527
+ }
2528
+ };
2529
+
2530
+ // Set width and height to auto instead of 0 on empty string( Bug #8150 )
2531
+ // This is for removals
2532
+ jQuery.each([ "width", "height" ], function( i, name ) {
2533
+ jQuery.attrHooks[ name ] = jQuery.extend( jQuery.attrHooks[ name ], {
2534
+ set: function( elem, value ) {
2535
+ if ( value === "" ) {
2536
+ elem.setAttribute( name, "auto" );
2537
+ return value;
2538
+ }
2539
+ }
2540
+ });
2541
+ });
2542
+
2543
+ // Set contenteditable to false on removals(#10429)
2544
+ // Setting to empty string throws an error as an invalid value
2545
+ jQuery.attrHooks.contenteditable = {
2546
+ get: nodeHook.get,
2547
+ set: function( elem, value, name ) {
2548
+ if ( value === "" ) {
2549
+ value = "false";
2550
+ }
2551
+ nodeHook.set( elem, value, name );
2552
+ }
2553
+ };
2554
+ }
2555
+
2556
+
2557
+ // Some attributes require a special call on IE
2558
+ if ( !jQuery.support.hrefNormalized ) {
2559
+ jQuery.each([ "href", "src", "width", "height" ], function( i, name ) {
2560
+ jQuery.attrHooks[ name ] = jQuery.extend( jQuery.attrHooks[ name ], {
2561
+ get: function( elem ) {
2562
+ var ret = elem.getAttribute( name, 2 );
2563
+ return ret === null ? undefined : ret;
2564
+ }
2565
+ });
2566
+ });
2567
+ }
2568
+
2569
+ if ( !jQuery.support.style ) {
2570
+ jQuery.attrHooks.style = {
2571
+ get: function( elem ) {
2572
+ // Return undefined in the case of empty string
2573
+ // Normalize to lowercase since IE uppercases css property names
2574
+ return elem.style.cssText.toLowerCase() || undefined;
2575
+ },
2576
+ set: function( elem, value ) {
2577
+ return ( elem.style.cssText = "" + value );
2578
+ }
2579
+ };
2580
+ }
2581
+
2582
+ // Safari mis-reports the default selected property of an option
2583
+ // Accessing the parent's selectedIndex property fixes it
2584
+ if ( !jQuery.support.optSelected ) {
2585
+ jQuery.propHooks.selected = jQuery.extend( jQuery.propHooks.selected, {
2586
+ get: function( elem ) {
2587
+ var parent = elem.parentNode;
2588
+
2589
+ if ( parent ) {
2590
+ parent.selectedIndex;
2591
+
2592
+ // Make sure that it also works with optgroups, see #5701
2593
+ if ( parent.parentNode ) {
2594
+ parent.parentNode.selectedIndex;
2595
+ }
2596
+ }
2597
+ return null;
2598
+ }
2599
+ });
2600
+ }
2601
+
2602
+ // IE6/7 call enctype encoding
2603
+ if ( !jQuery.support.enctype ) {
2604
+ jQuery.propFix.enctype = "encoding";
2605
+ }
2606
+
2607
+ // Radios and checkboxes getter/setter
2608
+ if ( !jQuery.support.checkOn ) {
2609
+ jQuery.each([ "radio", "checkbox" ], function() {
2610
+ jQuery.valHooks[ this ] = {
2611
+ get: function( elem ) {
2612
+ // Handle the case where in Webkit "" is returned instead of "on" if a value isn't specified
2613
+ return elem.getAttribute("value") === null ? "on" : elem.value;
2614
+ }
2615
+ };
2616
+ });
2617
+ }
2618
+ jQuery.each([ "radio", "checkbox" ], function() {
2619
+ jQuery.valHooks[ this ] = jQuery.extend( jQuery.valHooks[ this ], {
2620
+ set: function( elem, value ) {
2621
+ if ( jQuery.isArray( value ) ) {
2622
+ return ( elem.checked = jQuery.inArray( jQuery(elem).val(), value ) >= 0 );
2623
+ }
2624
+ }
2625
+ });
2626
+ });
2627
+ var rformElems = /^(?:textarea|input|select)$/i,
2628
+ rtypenamespace = /^([^\.]*|)(?:\.(.+)|)$/,
2629
+ rhoverHack = /(?:^|\s)hover(\.\S+|)\b/,
2630
+ rkeyEvent = /^key/,
2631
+ rmouseEvent = /^(?:mouse|contextmenu)|click/,
2632
+ rfocusMorph = /^(?:focusinfocus|focusoutblur)$/,
2633
+ hoverHack = function( events ) {
2634
+ return jQuery.event.special.hover ? events : events.replace( rhoverHack, "mouseenter$1 mouseleave$1" );
2635
+ };
2636
+
2637
+ /*
2638
+ * Helper functions for managing events -- not part of the public interface.
2639
+ * Props to Dean Edwards' addEvent library for many of the ideas.
2640
+ */
2641
+ jQuery.event = {
2642
+
2643
+ add: function( elem, types, handler, data, selector ) {
2644
+
2645
+ var elemData, eventHandle, events,
2646
+ t, tns, type, namespaces, handleObj,
2647
+ handleObjIn, handlers, special;
2648
+
2649
+ // Don't attach events to noData or text/comment nodes (allow plain objects tho)
2650
+ if ( elem.nodeType === 3 || elem.nodeType === 8 || !types || !handler || !(elemData = jQuery._data( elem )) ) {
2651
+ return;
2652
+ }
2653
+
2654
+ // Caller can pass in an object of custom data in lieu of the handler
2655
+ if ( handler.handler ) {
2656
+ handleObjIn = handler;
2657
+ handler = handleObjIn.handler;
2658
+ selector = handleObjIn.selector;
2659
+ }
2660
+
2661
+ // Make sure that the handler has a unique ID, used to find/remove it later
2662
+ if ( !handler.guid ) {
2663
+ handler.guid = jQuery.guid++;
2664
+ }
2665
+
2666
+ // Init the element's event structure and main handler, if this is the first
2667
+ events = elemData.events;
2668
+ if ( !events ) {
2669
+ elemData.events = events = {};
2670
+ }
2671
+ eventHandle = elemData.handle;
2672
+ if ( !eventHandle ) {
2673
+ elemData.handle = eventHandle = function( e ) {
2674
+ // Discard the second event of a jQuery.event.trigger() and
2675
+ // when an event is called after a page has unloaded
2676
+ return typeof jQuery !== "undefined" && (!e || jQuery.event.triggered !== e.type) ?
2677
+ jQuery.event.dispatch.apply( eventHandle.elem, arguments ) :
2678
+ undefined;
2679
+ };
2680
+ // Add elem as a property of the handle fn to prevent a memory leak with IE non-native events
2681
+ eventHandle.elem = elem;
2682
+ }
2683
+
2684
+ // Handle multiple events separated by a space
2685
+ // jQuery(...).bind("mouseover mouseout", fn);
2686
+ types = jQuery.trim( hoverHack(types) ).split( " " );
2687
+ for ( t = 0; t < types.length; t++ ) {
2688
+
2689
+ tns = rtypenamespace.exec( types[t] ) || [];
2690
+ type = tns[1];
2691
+ namespaces = ( tns[2] || "" ).split( "." ).sort();
2692
+
2693
+ // If event changes its type, use the special event handlers for the changed type
2694
+ special = jQuery.event.special[ type ] || {};
2695
+
2696
+ // If selector defined, determine special event api type, otherwise given type
2697
+ type = ( selector ? special.delegateType : special.bindType ) || type;
2698
+
2699
+ // Update special based on newly reset type
2700
+ special = jQuery.event.special[ type ] || {};
2701
+
2702
+ // handleObj is passed to all event handlers
2703
+ handleObj = jQuery.extend({
2704
+ type: type,
2705
+ origType: tns[1],
2706
+ data: data,
2707
+ handler: handler,
2708
+ guid: handler.guid,
2709
+ selector: selector,
2710
+ namespace: namespaces.join(".")
2711
+ }, handleObjIn );
2712
+
2713
+ // Init the event handler queue if we're the first
2714
+ handlers = events[ type ];
2715
+ if ( !handlers ) {
2716
+ handlers = events[ type ] = [];
2717
+ handlers.delegateCount = 0;
2718
+
2719
+ // Only use addEventListener/attachEvent if the special events handler returns false
2720
+ if ( !special.setup || special.setup.call( elem, data, namespaces, eventHandle ) === false ) {
2721
+ // Bind the global event handler to the element
2722
+ if ( elem.addEventListener ) {
2723
+ elem.addEventListener( type, eventHandle, false );
2724
+
2725
+ } else if ( elem.attachEvent ) {
2726
+ elem.attachEvent( "on" + type, eventHandle );
2727
+ }
2728
+ }
2729
+ }
2730
+
2731
+ if ( special.add ) {
2732
+ special.add.call( elem, handleObj );
2733
+
2734
+ if ( !handleObj.handler.guid ) {
2735
+ handleObj.handler.guid = handler.guid;
2736
+ }
2737
+ }
2738
+
2739
+ // Add to the element's handler list, delegates in front
2740
+ if ( selector ) {
2741
+ handlers.splice( handlers.delegateCount++, 0, handleObj );
2742
+ } else {
2743
+ handlers.push( handleObj );
2744
+ }
2745
+
2746
+ // Keep track of which events have ever been used, for event optimization
2747
+ jQuery.event.global[ type ] = true;
2748
+ }
2749
+
2750
+ // Nullify elem to prevent memory leaks in IE
2751
+ elem = null;
2752
+ },
2753
+
2754
+ global: {},
2755
+
2756
+ // Detach an event or set of events from an element
2757
+ remove: function( elem, types, handler, selector, mappedTypes ) {
2758
+
2759
+ var t, tns, type, origType, namespaces, origCount,
2760
+ j, events, special, eventType, handleObj,
2761
+ elemData = jQuery.hasData( elem ) && jQuery._data( elem );
2762
+
2763
+ if ( !elemData || !(events = elemData.events) ) {
2764
+ return;
2765
+ }
2766
+
2767
+ // Once for each type.namespace in types; type may be omitted
2768
+ types = jQuery.trim( hoverHack( types || "" ) ).split(" ");
2769
+ for ( t = 0; t < types.length; t++ ) {
2770
+ tns = rtypenamespace.exec( types[t] ) || [];
2771
+ type = origType = tns[1];
2772
+ namespaces = tns[2];
2773
+
2774
+ // Unbind all events (on this namespace, if provided) for the element
2775
+ if ( !type ) {
2776
+ for ( type in events ) {
2777
+ jQuery.event.remove( elem, type + types[ t ], handler, selector, true );
2778
+ }
2779
+ continue;
2780
+ }
2781
+
2782
+ special = jQuery.event.special[ type ] || {};
2783
+ type = ( selector? special.delegateType : special.bindType ) || type;
2784
+ eventType = events[ type ] || [];
2785
+ origCount = eventType.length;
2786
+ namespaces = namespaces ? new RegExp("(^|\\.)" + namespaces.split(".").sort().join("\\.(?:.*\\.|)") + "(\\.|$)") : null;
2787
+
2788
+ // Remove matching events
2789
+ for ( j = 0; j < eventType.length; j++ ) {
2790
+ handleObj = eventType[ j ];
2791
+
2792
+ if ( ( mappedTypes || origType === handleObj.origType ) &&
2793
+ ( !handler || handler.guid === handleObj.guid ) &&
2794
+ ( !namespaces || namespaces.test( handleObj.namespace ) ) &&
2795
+ ( !selector || selector === handleObj.selector || selector === "**" && handleObj.selector ) ) {
2796
+ eventType.splice( j--, 1 );
2797
+
2798
+ if ( handleObj.selector ) {
2799
+ eventType.delegateCount--;
2800
+ }
2801
+ if ( special.remove ) {
2802
+ special.remove.call( elem, handleObj );
2803
+ }
2804
+ }
2805
+ }
2806
+
2807
+ // Remove generic event handler if we removed something and no more handlers exist
2808
+ // (avoids potential for endless recursion during removal of special event handlers)
2809
+ if ( eventType.length === 0 && origCount !== eventType.length ) {
2810
+ if ( !special.teardown || special.teardown.call( elem, namespaces, elemData.handle ) === false ) {
2811
+ jQuery.removeEvent( elem, type, elemData.handle );
2812
+ }
2813
+
2814
+ delete events[ type ];
2815
+ }
2816
+ }
2817
+
2818
+ // Remove the expando if it's no longer used
2819
+ if ( jQuery.isEmptyObject( events ) ) {
2820
+ delete elemData.handle;
2821
+
2822
+ // removeData also checks for emptiness and clears the expando if empty
2823
+ // so use it instead of delete
2824
+ jQuery.removeData( elem, "events", true );
2825
+ }
2826
+ },
2827
+
2828
+ // Events that are safe to short-circuit if no handlers are attached.
2829
+ // Native DOM events should not be added, they may have inline handlers.
2830
+ customEvent: {
2831
+ "getData": true,
2832
+ "setData": true,
2833
+ "changeData": true
2834
+ },
2835
+
2836
+ trigger: function( event, data, elem, onlyHandlers ) {
2837
+ // Don't do events on text and comment nodes
2838
+ if ( elem && (elem.nodeType === 3 || elem.nodeType === 8) ) {
2839
+ return;
2840
+ }
2841
+
2842
+ // Event object or event type
2843
+ var cache, exclusive, i, cur, old, ontype, special, handle, eventPath, bubbleType,
2844
+ type = event.type || event,
2845
+ namespaces = [];
2846
+
2847
+ // focus/blur morphs to focusin/out; ensure we're not firing them right now
2848
+ if ( rfocusMorph.test( type + jQuery.event.triggered ) ) {
2849
+ return;
2850
+ }
2851
+
2852
+ if ( type.indexOf( "!" ) >= 0 ) {
2853
+ // Exclusive events trigger only for the exact event (no namespaces)
2854
+ type = type.slice(0, -1);
2855
+ exclusive = true;
2856
+ }
2857
+
2858
+ if ( type.indexOf( "." ) >= 0 ) {
2859
+ // Namespaced trigger; create a regexp to match event type in handle()
2860
+ namespaces = type.split(".");
2861
+ type = namespaces.shift();
2862
+ namespaces.sort();
2863
+ }
2864
+
2865
+ if ( (!elem || jQuery.event.customEvent[ type ]) && !jQuery.event.global[ type ] ) {
2866
+ // No jQuery handlers for this event type, and it can't have inline handlers
2867
+ return;
2868
+ }
2869
+
2870
+ // Caller can pass in an Event, Object, or just an event type string
2871
+ event = typeof event === "object" ?
2872
+ // jQuery.Event object
2873
+ event[ jQuery.expando ] ? event :
2874
+ // Object literal
2875
+ new jQuery.Event( type, event ) :
2876
+ // Just the event type (string)
2877
+ new jQuery.Event( type );
2878
+
2879
+ event.type = type;
2880
+ event.isTrigger = true;
2881
+ event.exclusive = exclusive;
2882
+ event.namespace = namespaces.join( "." );
2883
+ event.namespace_re = event.namespace? new RegExp("(^|\\.)" + namespaces.join("\\.(?:.*\\.|)") + "(\\.|$)") : null;
2884
+ ontype = type.indexOf( ":" ) < 0 ? "on" + type : "";
2885
+
2886
+ // Handle a global trigger
2887
+ if ( !elem ) {
2888
+
2889
+ // TODO: Stop taunting the data cache; remove global events and always attach to document
2890
+ cache = jQuery.cache;
2891
+ for ( i in cache ) {
2892
+ if ( cache[ i ].events && cache[ i ].events[ type ] ) {
2893
+ jQuery.event.trigger( event, data, cache[ i ].handle.elem, true );
2894
+ }
2895
+ }
2896
+ return;
2897
+ }
2898
+
2899
+ // Clean up the event in case it is being reused
2900
+ event.result = undefined;
2901
+ if ( !event.target ) {
2902
+ event.target = elem;
2903
+ }
2904
+
2905
+ // Clone any incoming data and prepend the event, creating the handler arg list
2906
+ data = data != null ? jQuery.makeArray( data ) : [];
2907
+ data.unshift( event );
2908
+
2909
+ // Allow special events to draw outside the lines
2910
+ special = jQuery.event.special[ type ] || {};
2911
+ if ( special.trigger && special.trigger.apply( elem, data ) === false ) {
2912
+ return;
2913
+ }
2914
+
2915
+ // Determine event propagation path in advance, per W3C events spec (#9951)
2916
+ // Bubble up to document, then to window; watch for a global ownerDocument var (#9724)
2917
+ eventPath = [[ elem, special.bindType || type ]];
2918
+ if ( !onlyHandlers && !special.noBubble && !jQuery.isWindow( elem ) ) {
2919
+
2920
+ bubbleType = special.delegateType || type;
2921
+ cur = rfocusMorph.test( bubbleType + type ) ? elem : elem.parentNode;
2922
+ for ( old = elem; cur; cur = cur.parentNode ) {
2923
+ eventPath.push([ cur, bubbleType ]);
2924
+ old = cur;
2925
+ }
2926
+
2927
+ // Only add window if we got to document (e.g., not plain obj or detached DOM)
2928
+ if ( old === (elem.ownerDocument || document) ) {
2929
+ eventPath.push([ old.defaultView || old.parentWindow || window, bubbleType ]);
2930
+ }
2931
+ }
2932
+
2933
+ // Fire handlers on the event path
2934
+ for ( i = 0; i < eventPath.length && !event.isPropagationStopped(); i++ ) {
2935
+
2936
+ cur = eventPath[i][0];
2937
+ event.type = eventPath[i][1];
2938
+
2939
+ handle = ( jQuery._data( cur, "events" ) || {} )[ event.type ] && jQuery._data( cur, "handle" );
2940
+ if ( handle ) {
2941
+ handle.apply( cur, data );
2942
+ }
2943
+ // Note that this is a bare JS function and not a jQuery handler
2944
+ handle = ontype && cur[ ontype ];
2945
+ if ( handle && jQuery.acceptData( cur ) && handle.apply( cur, data ) === false ) {
2946
+ event.preventDefault();
2947
+ }
2948
+ }
2949
+ event.type = type;
2950
+
2951
+ // If nobody prevented the default action, do it now
2952
+ if ( !onlyHandlers && !event.isDefaultPrevented() ) {
2953
+
2954
+ if ( (!special._default || special._default.apply( elem.ownerDocument, data ) === false) &&
2955
+ !(type === "click" && jQuery.nodeName( elem, "a" )) && jQuery.acceptData( elem ) ) {
2956
+
2957
+ // Call a native DOM method on the target with the same name name as the event.
2958
+ // Can't use an .isFunction() check here because IE6/7 fails that test.
2959
+ // Don't do default actions on window, that's where global variables be (#6170)
2960
+ // IE<9 dies on focus/blur to hidden element (#1486)
2961
+ if ( ontype && elem[ type ] && ((type !== "focus" && type !== "blur") || event.target.offsetWidth !== 0) && !jQuery.isWindow( elem ) ) {
2962
+
2963
+ // Don't re-trigger an onFOO event when we call its FOO() method
2964
+ old = elem[ ontype ];
2965
+
2966
+ if ( old ) {
2967
+ elem[ ontype ] = null;
2968
+ }
2969
+
2970
+ // Prevent re-triggering of the same event, since we already bubbled it above
2971
+ jQuery.event.triggered = type;
2972
+ elem[ type ]();
2973
+ jQuery.event.triggered = undefined;
2974
+
2975
+ if ( old ) {
2976
+ elem[ ontype ] = old;
2977
+ }
2978
+ }
2979
+ }
2980
+ }
2981
+
2982
+ return event.result;
2983
+ },
2984
+
2985
+ dispatch: function( event ) {
2986
+
2987
+ // Make a writable jQuery.Event from the native event object
2988
+ event = jQuery.event.fix( event || window.event );
2989
+
2990
+ var i, j, cur, jqcur, ret, selMatch, matched, matches, handleObj, sel, related,
2991
+ handlers = ( (jQuery._data( this, "events" ) || {} )[ event.type ] || []),
2992
+ delegateCount = handlers.delegateCount,
2993
+ args = [].slice.call( arguments ),
2994
+ run_all = !event.exclusive && !event.namespace,
2995
+ special = jQuery.event.special[ event.type ] || {},
2996
+ handlerQueue = [];
2997
+
2998
+ // Use the fix-ed jQuery.Event rather than the (read-only) native event
2999
+ args[0] = event;
3000
+ event.delegateTarget = this;
3001
+
3002
+ // Call the preDispatch hook for the mapped type, and let it bail if desired
3003
+ if ( special.preDispatch && special.preDispatch.call( this, event ) === false ) {
3004
+ return;
3005
+ }
3006
+
3007
+ // Determine handlers that should run if there are delegated events
3008
+ // Avoid non-left-click bubbling in Firefox (#3861)
3009
+ if ( delegateCount && !(event.button && event.type === "click") ) {
3010
+
3011
+ // Pregenerate a single jQuery object for reuse with .is()
3012
+ jqcur = jQuery(this);
3013
+ jqcur.context = this;
3014
+
3015
+ for ( cur = event.target; cur != this; cur = cur.parentNode || this ) {
3016
+
3017
+ // Don't process clicks (ONLY) on disabled elements (#6911, #8165, #xxxx)
3018
+ if ( cur.disabled !== true || event.type !== "click" ) {
3019
+ selMatch = {};
3020
+ matches = [];
3021
+ jqcur[0] = cur;
3022
+ for ( i = 0; i < delegateCount; i++ ) {
3023
+ handleObj = handlers[ i ];
3024
+ sel = handleObj.selector;
3025
+
3026
+ if ( selMatch[ sel ] === undefined ) {
3027
+ selMatch[ sel ] = jqcur.is( sel );
3028
+ }
3029
+ if ( selMatch[ sel ] ) {
3030
+ matches.push( handleObj );
3031
+ }
3032
+ }
3033
+ if ( matches.length ) {
3034
+ handlerQueue.push({ elem: cur, matches: matches });
3035
+ }
3036
+ }
3037
+ }
3038
+ }
3039
+
3040
+ // Add the remaining (directly-bound) handlers
3041
+ if ( handlers.length > delegateCount ) {
3042
+ handlerQueue.push({ elem: this, matches: handlers.slice( delegateCount ) });
3043
+ }
3044
+
3045
+ // Run delegates first; they may want to stop propagation beneath us
3046
+ for ( i = 0; i < handlerQueue.length && !event.isPropagationStopped(); i++ ) {
3047
+ matched = handlerQueue[ i ];
3048
+ event.currentTarget = matched.elem;
3049
+
3050
+ for ( j = 0; j < matched.matches.length && !event.isImmediatePropagationStopped(); j++ ) {
3051
+ handleObj = matched.matches[ j ];
3052
+
3053
+ // Triggered event must either 1) be non-exclusive and have no namespace, or
3054
+ // 2) have namespace(s) a subset or equal to those in the bound event (both can have no namespace).
3055
+ if ( run_all || (!event.namespace && !handleObj.namespace) || event.namespace_re && event.namespace_re.test( handleObj.namespace ) ) {
3056
+
3057
+ event.data = handleObj.data;
3058
+ event.handleObj = handleObj;
3059
+
3060
+ ret = ( (jQuery.event.special[ handleObj.origType ] || {}).handle || handleObj.handler )
3061
+ .apply( matched.elem, args );
3062
+
3063
+ if ( ret !== undefined ) {
3064
+ event.result = ret;
3065
+ if ( ret === false ) {
3066
+ event.preventDefault();
3067
+ event.stopPropagation();
3068
+ }
3069
+ }
3070
+ }
3071
+ }
3072
+ }
3073
+
3074
+ // Call the postDispatch hook for the mapped type
3075
+ if ( special.postDispatch ) {
3076
+ special.postDispatch.call( this, event );
3077
+ }
3078
+
3079
+ return event.result;
3080
+ },
3081
+
3082
+ // Includes some event props shared by KeyEvent and MouseEvent
3083
+ // *** attrChange attrName relatedNode srcElement are not normalized, non-W3C, deprecated, will be removed in 1.8 ***
3084
+ props: "attrChange attrName relatedNode srcElement altKey bubbles cancelable ctrlKey currentTarget eventPhase metaKey relatedTarget shiftKey target timeStamp view which".split(" "),
3085
+
3086
+ fixHooks: {},
3087
+
3088
+ keyHooks: {
3089
+ props: "char charCode key keyCode".split(" "),
3090
+ filter: function( event, original ) {
3091
+
3092
+ // Add which for key events
3093
+ if ( event.which == null ) {
3094
+ event.which = original.charCode != null ? original.charCode : original.keyCode;
3095
+ }
3096
+
3097
+ return event;
3098
+ }
3099
+ },
3100
+
3101
+ mouseHooks: {
3102
+ props: "button buttons clientX clientY fromElement offsetX offsetY pageX pageY screenX screenY toElement".split(" "),
3103
+ filter: function( event, original ) {
3104
+ var eventDoc, doc, body,
3105
+ button = original.button,
3106
+ fromElement = original.fromElement;
3107
+
3108
+ // Calculate pageX/Y if missing and clientX/Y available
3109
+ if ( event.pageX == null && original.clientX != null ) {
3110
+ eventDoc = event.target.ownerDocument || document;
3111
+ doc = eventDoc.documentElement;
3112
+ body = eventDoc.body;
3113
+
3114
+ event.pageX = original.clientX + ( doc && doc.scrollLeft || body && body.scrollLeft || 0 ) - ( doc && doc.clientLeft || body && body.clientLeft || 0 );
3115
+ event.pageY = original.clientY + ( doc && doc.scrollTop || body && body.scrollTop || 0 ) - ( doc && doc.clientTop || body && body.clientTop || 0 );
3116
+ }
3117
+
3118
+ // Add relatedTarget, if necessary
3119
+ if ( !event.relatedTarget && fromElement ) {
3120
+ event.relatedTarget = fromElement === event.target ? original.toElement : fromElement;
3121
+ }
3122
+
3123
+ // Add which for click: 1 === left; 2 === middle; 3 === right
3124
+ // Note: button is not normalized, so don't use it
3125
+ if ( !event.which && button !== undefined ) {
3126
+ event.which = ( button & 1 ? 1 : ( button & 2 ? 3 : ( button & 4 ? 2 : 0 ) ) );
3127
+ }
3128
+
3129
+ return event;
3130
+ }
3131
+ },
3132
+
3133
+ fix: function( event ) {
3134
+ if ( event[ jQuery.expando ] ) {
3135
+ return event;
3136
+ }
3137
+
3138
+ // Create a writable copy of the event object and normalize some properties
3139
+ var i, prop,
3140
+ originalEvent = event,
3141
+ fixHook = jQuery.event.fixHooks[ event.type ] || {},
3142
+ copy = fixHook.props ? this.props.concat( fixHook.props ) : this.props;
3143
+
3144
+ event = jQuery.Event( originalEvent );
3145
+
3146
+ for ( i = copy.length; i; ) {
3147
+ prop = copy[ --i ];
3148
+ event[ prop ] = originalEvent[ prop ];
3149
+ }
3150
+
3151
+ // Fix target property, if necessary (#1925, IE 6/7/8 & Safari2)
3152
+ if ( !event.target ) {
3153
+ event.target = originalEvent.srcElement || document;
3154
+ }
3155
+
3156
+ // Target should not be a text node (#504, Safari)
3157
+ if ( event.target.nodeType === 3 ) {
3158
+ event.target = event.target.parentNode;
3159
+ }
3160
+
3161
+ // For mouse/key events, metaKey==false if it's undefined (#3368, #11328; IE6/7/8)
3162
+ event.metaKey = !!event.metaKey;
3163
+
3164
+ return fixHook.filter? fixHook.filter( event, originalEvent ) : event;
3165
+ },
3166
+
3167
+ special: {
3168
+ ready: {
3169
+ // Make sure the ready event is setup
3170
+ setup: jQuery.bindReady
3171
+ },
3172
+
3173
+ load: {
3174
+ // Prevent triggered image.load events from bubbling to window.load
3175
+ noBubble: true
3176
+ },
3177
+
3178
+ focus: {
3179
+ delegateType: "focusin"
3180
+ },
3181
+ blur: {
3182
+ delegateType: "focusout"
3183
+ },
3184
+
3185
+ beforeunload: {
3186
+ setup: function( data, namespaces, eventHandle ) {
3187
+ // We only want to do this special case on windows
3188
+ if ( jQuery.isWindow( this ) ) {
3189
+ this.onbeforeunload = eventHandle;
3190
+ }
3191
+ },
3192
+
3193
+ teardown: function( namespaces, eventHandle ) {
3194
+ if ( this.onbeforeunload === eventHandle ) {
3195
+ this.onbeforeunload = null;
3196
+ }
3197
+ }
3198
+ }
3199
+ },
3200
+
3201
+ simulate: function( type, elem, event, bubble ) {
3202
+ // Piggyback on a donor event to simulate a different one.
3203
+ // Fake originalEvent to avoid donor's stopPropagation, but if the
3204
+ // simulated event prevents default then we do the same on the donor.
3205
+ var e = jQuery.extend(
3206
+ new jQuery.Event(),
3207
+ event,
3208
+ { type: type,
3209
+ isSimulated: true,
3210
+ originalEvent: {}
3211
+ }
3212
+ );
3213
+ if ( bubble ) {
3214
+ jQuery.event.trigger( e, null, elem );
3215
+ } else {
3216
+ jQuery.event.dispatch.call( elem, e );
3217
+ }
3218
+ if ( e.isDefaultPrevented() ) {
3219
+ event.preventDefault();
3220
+ }
3221
+ }
3222
+ };
3223
+
3224
+ // Some plugins are using, but it's undocumented/deprecated and will be removed.
3225
+ // The 1.7 special event interface should provide all the hooks needed now.
3226
+ jQuery.event.handle = jQuery.event.dispatch;
3227
+
3228
+ jQuery.removeEvent = document.removeEventListener ?
3229
+ function( elem, type, handle ) {
3230
+ if ( elem.removeEventListener ) {
3231
+ elem.removeEventListener( type, handle, false );
3232
+ }
3233
+ } :
3234
+ function( elem, type, handle ) {
3235
+ var name = "on" + type;
3236
+
3237
+ if ( elem.detachEvent ) {
3238
+
3239
+ // #8545, #7054, preventing memory leaks for custom events in IE6-8 –
3240
+ // detachEvent needed property on element, by name of that event, to properly expose it to GC
3241
+ if ( typeof elem[ name ] === "undefined" ) {
3242
+ elem[ name ] = null;
3243
+ }
3244
+
3245
+ elem.detachEvent( name, handle );
3246
+ }
3247
+ };
3248
+
3249
+ jQuery.Event = function( src, props ) {
3250
+ // Allow instantiation without the 'new' keyword
3251
+ if ( !(this instanceof jQuery.Event) ) {
3252
+ return new jQuery.Event( src, props );
3253
+ }
3254
+
3255
+ // Event object
3256
+ if ( src && src.type ) {
3257
+ this.originalEvent = src;
3258
+ this.type = src.type;
3259
+
3260
+ // Events bubbling up the document may have been marked as prevented
3261
+ // by a handler lower down the tree; reflect the correct value.
3262
+ this.isDefaultPrevented = ( src.defaultPrevented || src.returnValue === false ||
3263
+ src.getPreventDefault && src.getPreventDefault() ) ? returnTrue : returnFalse;
3264
+
3265
+ // Event type
3266
+ } else {
3267
+ this.type = src;
3268
+ }
3269
+
3270
+ // Put explicitly provided properties onto the event object
3271
+ if ( props ) {
3272
+ jQuery.extend( this, props );
3273
+ }
3274
+
3275
+ // Create a timestamp if incoming event doesn't have one
3276
+ this.timeStamp = src && src.timeStamp || jQuery.now();
3277
+
3278
+ // Mark it as fixed
3279
+ this[ jQuery.expando ] = true;
3280
+ };
3281
+
3282
+ function returnFalse() {
3283
+ return false;
3284
+ }
3285
+ function returnTrue() {
3286
+ return true;
3287
+ }
3288
+
3289
+ // jQuery.Event is based on DOM3 Events as specified by the ECMAScript Language Binding
3290
+ // http://www.w3.org/TR/2003/WD-DOM-Level-3-Events-20030331/ecma-script-binding.html
3291
+ jQuery.Event.prototype = {
3292
+ preventDefault: function() {
3293
+ this.isDefaultPrevented = returnTrue;
3294
+
3295
+ var e = this.originalEvent;
3296
+ if ( !e ) {
3297
+ return;
3298
+ }
3299
+
3300
+ // if preventDefault exists run it on the original event
3301
+ if ( e.preventDefault ) {
3302
+ e.preventDefault();
3303
+
3304
+ // otherwise set the returnValue property of the original event to false (IE)
3305
+ } else {
3306
+ e.returnValue = false;
3307
+ }
3308
+ },
3309
+ stopPropagation: function() {
3310
+ this.isPropagationStopped = returnTrue;
3311
+
3312
+ var e = this.originalEvent;
3313
+ if ( !e ) {
3314
+ return;
3315
+ }
3316
+ // if stopPropagation exists run it on the original event
3317
+ if ( e.stopPropagation ) {
3318
+ e.stopPropagation();
3319
+ }
3320
+ // otherwise set the cancelBubble property of the original event to true (IE)
3321
+ e.cancelBubble = true;
3322
+ },
3323
+ stopImmediatePropagation: function() {
3324
+ this.isImmediatePropagationStopped = returnTrue;
3325
+ this.stopPropagation();
3326
+ },
3327
+ isDefaultPrevented: returnFalse,
3328
+ isPropagationStopped: returnFalse,
3329
+ isImmediatePropagationStopped: returnFalse
3330
+ };
3331
+
3332
+ // Create mouseenter/leave events using mouseover/out and event-time checks
3333
+ jQuery.each({
3334
+ mouseenter: "mouseover",
3335
+ mouseleave: "mouseout"
3336
+ }, function( orig, fix ) {
3337
+ jQuery.event.special[ orig ] = {
3338
+ delegateType: fix,
3339
+ bindType: fix,
3340
+
3341
+ handle: function( event ) {
3342
+ var ret,
3343
+ target = this,
3344
+ related = event.relatedTarget,
3345
+ handleObj = event.handleObj,
3346
+ selector = handleObj.selector;
3347
+
3348
+ // For mousenter/leave call the handler if related is outside the target.
3349
+ // NB: No relatedTarget if the mouse left/entered the browser window
3350
+ if ( !related || (related !== target && !jQuery.contains( target, related )) ) {
3351
+ event.type = handleObj.origType;
3352
+ ret = handleObj.handler.apply( this, arguments );
3353
+ event.type = fix;
3354
+ }
3355
+ return ret;
3356
+ }
3357
+ };
3358
+ });
3359
+
3360
+ // IE submit delegation
3361
+ if ( !jQuery.support.submitBubbles ) {
3362
+
3363
+ jQuery.event.special.submit = {
3364
+ setup: function() {
3365
+ // Only need this for delegated form submit events
3366
+ if ( jQuery.nodeName( this, "form" ) ) {
3367
+ return false;
3368
+ }
3369
+
3370
+ // Lazy-add a submit handler when a descendant form may potentially be submitted
3371
+ jQuery.event.add( this, "click._submit keypress._submit", function( e ) {
3372
+ // Node name check avoids a VML-related crash in IE (#9807)
3373
+ var elem = e.target,
3374
+ form = jQuery.nodeName( elem, "input" ) || jQuery.nodeName( elem, "button" ) ? elem.form : undefined;
3375
+ if ( form && !jQuery._data( form, "_submit_attached" ) ) {
3376
+ jQuery.event.add( form, "submit._submit", function( event ) {
3377
+ event._submit_bubble = true;
3378
+ });
3379
+ jQuery._data( form, "_submit_attached", true );
3380
+ }
3381
+ });
3382
+ // return undefined since we don't need an event listener
3383
+ },
3384
+
3385
+ postDispatch: function( event ) {
3386
+ // If form was submitted by the user, bubble the event up the tree
3387
+ if ( event._submit_bubble ) {
3388
+ delete event._submit_bubble;
3389
+ if ( this.parentNode && !event.isTrigger ) {
3390
+ jQuery.event.simulate( "submit", this.parentNode, event, true );
3391
+ }
3392
+ }
3393
+ },
3394
+
3395
+ teardown: function() {
3396
+ // Only need this for delegated form submit events
3397
+ if ( jQuery.nodeName( this, "form" ) ) {
3398
+ return false;
3399
+ }
3400
+
3401
+ // Remove delegated handlers; cleanData eventually reaps submit handlers attached above
3402
+ jQuery.event.remove( this, "._submit" );
3403
+ }
3404
+ };
3405
+ }
3406
+
3407
+ // IE change delegation and checkbox/radio fix
3408
+ if ( !jQuery.support.changeBubbles ) {
3409
+
3410
+ jQuery.event.special.change = {
3411
+
3412
+ setup: function() {
3413
+
3414
+ if ( rformElems.test( this.nodeName ) ) {
3415
+ // IE doesn't fire change on a check/radio until blur; trigger it on click
3416
+ // after a propertychange. Eat the blur-change in special.change.handle.
3417
+ // This still fires onchange a second time for check/radio after blur.
3418
+ if ( this.type === "checkbox" || this.type === "radio" ) {
3419
+ jQuery.event.add( this, "propertychange._change", function( event ) {
3420
+ if ( event.originalEvent.propertyName === "checked" ) {
3421
+ this._just_changed = true;
3422
+ }
3423
+ });
3424
+ jQuery.event.add( this, "click._change", function( event ) {
3425
+ if ( this._just_changed && !event.isTrigger ) {
3426
+ this._just_changed = false;
3427
+ }
3428
+ // Allow triggered, simulated change events (#11500)
3429
+ jQuery.event.simulate( "change", this, event, true );
3430
+ });
3431
+ }
3432
+ return false;
3433
+ }
3434
+ // Delegated event; lazy-add a change handler on descendant inputs
3435
+ jQuery.event.add( this, "beforeactivate._change", function( e ) {
3436
+ var elem = e.target;
3437
+
3438
+ if ( rformElems.test( elem.nodeName ) && !jQuery._data( elem, "_change_attached" ) ) {
3439
+ jQuery.event.add( elem, "change._change", function( event ) {
3440
+ if ( this.parentNode && !event.isSimulated && !event.isTrigger ) {
3441
+ jQuery.event.simulate( "change", this.parentNode, event, true );
3442
+ }
3443
+ });
3444
+ jQuery._data( elem, "_change_attached", true );
3445
+ }
3446
+ });
3447
+ },
3448
+
3449
+ handle: function( event ) {
3450
+ var elem = event.target;
3451
+
3452
+ // Swallow native change events from checkbox/radio, we already triggered them above
3453
+ if ( this !== elem || event.isSimulated || event.isTrigger || (elem.type !== "radio" && elem.type !== "checkbox") ) {
3454
+ return event.handleObj.handler.apply( this, arguments );
3455
+ }
3456
+ },
3457
+
3458
+ teardown: function() {
3459
+ jQuery.event.remove( this, "._change" );
3460
+
3461
+ return rformElems.test( this.nodeName );
3462
+ }
3463
+ };
3464
+ }
3465
+
3466
+ // Create "bubbling" focus and blur events
3467
+ if ( !jQuery.support.focusinBubbles ) {
3468
+ jQuery.each({ focus: "focusin", blur: "focusout" }, function( orig, fix ) {
3469
+
3470
+ // Attach a single capturing handler while someone wants focusin/focusout
3471
+ var attaches = 0,
3472
+ handler = function( event ) {
3473
+ jQuery.event.simulate( fix, event.target, jQuery.event.fix( event ), true );
3474
+ };
3475
+
3476
+ jQuery.event.special[ fix ] = {
3477
+ setup: function() {
3478
+ if ( attaches++ === 0 ) {
3479
+ document.addEventListener( orig, handler, true );
3480
+ }
3481
+ },
3482
+ teardown: function() {
3483
+ if ( --attaches === 0 ) {
3484
+ document.removeEventListener( orig, handler, true );
3485
+ }
3486
+ }
3487
+ };
3488
+ });
3489
+ }
3490
+
3491
+ jQuery.fn.extend({
3492
+
3493
+ on: function( types, selector, data, fn, /*INTERNAL*/ one ) {
3494
+ var origFn, type;
3495
+
3496
+ // Types can be a map of types/handlers
3497
+ if ( typeof types === "object" ) {
3498
+ // ( types-Object, selector, data )
3499
+ if ( typeof selector !== "string" ) { // && selector != null
3500
+ // ( types-Object, data )
3501
+ data = data || selector;
3502
+ selector = undefined;
3503
+ }
3504
+ for ( type in types ) {
3505
+ this.on( type, selector, data, types[ type ], one );
3506
+ }
3507
+ return this;
3508
+ }
3509
+
3510
+ if ( data == null && fn == null ) {
3511
+ // ( types, fn )
3512
+ fn = selector;
3513
+ data = selector = undefined;
3514
+ } else if ( fn == null ) {
3515
+ if ( typeof selector === "string" ) {
3516
+ // ( types, selector, fn )
3517
+ fn = data;
3518
+ data = undefined;
3519
+ } else {
3520
+ // ( types, data, fn )
3521
+ fn = data;
3522
+ data = selector;
3523
+ selector = undefined;
3524
+ }
3525
+ }
3526
+ if ( fn === false ) {
3527
+ fn = returnFalse;
3528
+ } else if ( !fn ) {
3529
+ return this;
3530
+ }
3531
+
3532
+ if ( one === 1 ) {
3533
+ origFn = fn;
3534
+ fn = function( event ) {
3535
+ // Can use an empty set, since event contains the info
3536
+ jQuery().off( event );
3537
+ return origFn.apply( this, arguments );
3538
+ };
3539
+ // Use same guid so caller can remove using origFn
3540
+ fn.guid = origFn.guid || ( origFn.guid = jQuery.guid++ );
3541
+ }
3542
+ return this.each( function() {
3543
+ jQuery.event.add( this, types, fn, data, selector );
3544
+ });
3545
+ },
3546
+ one: function( types, selector, data, fn ) {
3547
+ return this.on( types, selector, data, fn, 1 );
3548
+ },
3549
+ off: function( types, selector, fn ) {
3550
+ var handleObj, type;
3551
+ if ( types && types.preventDefault && types.handleObj ) {
3552
+ // ( event ) dispatched jQuery.Event
3553
+ handleObj = types.handleObj;
3554
+ jQuery( types.delegateTarget ).off(
3555
+ handleObj.namespace ? handleObj.origType + "." + handleObj.namespace : handleObj.origType,
3556
+ handleObj.selector,
3557
+ handleObj.handler
3558
+ );
3559
+ return this;
3560
+ }
3561
+ if ( typeof types === "object" ) {
3562
+ // ( types-object [, selector] )
3563
+ for ( type in types ) {
3564
+ this.off( type, selector, types[ type ] );
3565
+ }
3566
+ return this;
3567
+ }
3568
+ if ( selector === false || typeof selector === "function" ) {
3569
+ // ( types [, fn] )
3570
+ fn = selector;
3571
+ selector = undefined;
3572
+ }
3573
+ if ( fn === false ) {
3574
+ fn = returnFalse;
3575
+ }
3576
+ return this.each(function() {
3577
+ jQuery.event.remove( this, types, fn, selector );
3578
+ });
3579
+ },
3580
+
3581
+ bind: function( types, data, fn ) {
3582
+ return this.on( types, null, data, fn );
3583
+ },
3584
+ unbind: function( types, fn ) {
3585
+ return this.off( types, null, fn );
3586
+ },
3587
+
3588
+ live: function( types, data, fn ) {
3589
+ jQuery( this.context ).on( types, this.selector, data, fn );
3590
+ return this;
3591
+ },
3592
+ die: function( types, fn ) {
3593
+ jQuery( this.context ).off( types, this.selector || "**", fn );
3594
+ return this;
3595
+ },
3596
+
3597
+ delegate: function( selector, types, data, fn ) {
3598
+ return this.on( types, selector, data, fn );
3599
+ },
3600
+ undelegate: function( selector, types, fn ) {
3601
+ // ( namespace ) or ( selector, types [, fn] )
3602
+ return arguments.length == 1? this.off( selector, "**" ) : this.off( types, selector || "**", fn );
3603
+ },
3604
+
3605
+ trigger: function( type, data ) {
3606
+ return this.each(function() {
3607
+ jQuery.event.trigger( type, data, this );
3608
+ });
3609
+ },
3610
+ triggerHandler: function( type, data ) {
3611
+ if ( this[0] ) {
3612
+ return jQuery.event.trigger( type, data, this[0], true );
3613
+ }
3614
+ },
3615
+
3616
+ toggle: function( fn ) {
3617
+ // Save reference to arguments for access in closure
3618
+ var args = arguments,
3619
+ guid = fn.guid || jQuery.guid++,
3620
+ i = 0,
3621
+ toggler = function( event ) {
3622
+ // Figure out which function to execute
3623
+ var lastToggle = ( jQuery._data( this, "lastToggle" + fn.guid ) || 0 ) % i;
3624
+ jQuery._data( this, "lastToggle" + fn.guid, lastToggle + 1 );
3625
+
3626
+ // Make sure that clicks stop
3627
+ event.preventDefault();
3628
+
3629
+ // and execute the function
3630
+ return args[ lastToggle ].apply( this, arguments ) || false;
3631
+ };
3632
+
3633
+ // link all the functions, so any of them can unbind this click handler
3634
+ toggler.guid = guid;
3635
+ while ( i < args.length ) {
3636
+ args[ i++ ].guid = guid;
3637
+ }
3638
+
3639
+ return this.click( toggler );
3640
+ },
3641
+
3642
+ hover: function( fnOver, fnOut ) {
3643
+ return this.mouseenter( fnOver ).mouseleave( fnOut || fnOver );
3644
+ }
3645
+ });
3646
+
3647
+ jQuery.each( ("blur focus focusin focusout load resize scroll unload click dblclick " +
3648
+ "mousedown mouseup mousemove mouseover mouseout mouseenter mouseleave " +
3649
+ "change select submit keydown keypress keyup error contextmenu").split(" "), function( i, name ) {
3650
+
3651
+ // Handle event binding
3652
+ jQuery.fn[ name ] = function( data, fn ) {
3653
+ if ( fn == null ) {
3654
+ fn = data;
3655
+ data = null;
3656
+ }
3657
+
3658
+ return arguments.length > 0 ?
3659
+ this.on( name, null, data, fn ) :
3660
+ this.trigger( name );
3661
+ };
3662
+
3663
+ if ( rkeyEvent.test( name ) ) {
3664
+ jQuery.event.fixHooks[ name ] = jQuery.event.keyHooks;
3665
+ }
3666
+
3667
+ if ( rmouseEvent.test( name ) ) {
3668
+ jQuery.event.fixHooks[ name ] = jQuery.event.mouseHooks;
3669
+ }
3670
+ });
3671
+ /*!
3672
+ * Sizzle CSS Selector Engine
3673
+ * Copyright 2012 jQuery Foundation and other contributors
3674
+ * Released under the MIT license
3675
+ * http://sizzlejs.com/
3676
+ */
3677
+ (function( window, undefined ) {
3678
+
3679
+ var cachedruns,
3680
+ dirruns,
3681
+ sortOrder,
3682
+ siblingCheck,
3683
+ assertGetIdNotName,
3684
+
3685
+ document = window.document,
3686
+ docElem = document.documentElement,
3687
+
3688
+ strundefined = "undefined",
3689
+ hasDuplicate = false,
3690
+ baseHasDuplicate = true,
3691
+ done = 0,
3692
+ slice = [].slice,
3693
+ push = [].push,
3694
+
3695
+ expando = ( "sizcache" + Math.random() ).replace( ".", "" ),
3696
+
3697
+ // Regex
3698
+
3699
+ // Whitespace characters http://www.w3.org/TR/css3-selectors/#whitespace
3700
+ whitespace = "[\\x20\\t\\r\\n\\f]",
3701
+ // http://www.w3.org/TR/css3-syntax/#characters
3702
+ characterEncoding = "(?:\\\\.|[-\\w]|[^\\x00-\\xa0])+",
3703
+
3704
+ // Loosely modeled on CSS identifier characters
3705
+ // An unquoted value should be a CSS identifier (http://www.w3.org/TR/css3-selectors/#attribute-selectors)
3706
+ // Proper syntax: http://www.w3.org/TR/CSS21/syndata.html#value-def-identifier
3707
+ identifier = characterEncoding.replace( "w", "w#" ),
3708
+
3709
+ // Acceptable operators http://www.w3.org/TR/selectors/#attribute-selectors
3710
+ operators = "([*^$|!~]?=)",
3711
+ attributes = "\\[" + whitespace + "*(" + characterEncoding + ")" + whitespace +
3712
+ "*(?:" + operators + whitespace + "*(?:(['\"])((?:\\\\.|[^\\\\])*?)\\3|(" + identifier + ")|)|)" + whitespace + "*\\]",
3713
+ pseudos = ":(" + characterEncoding + ")(?:\\((?:(['\"])((?:\\\\.|[^\\\\])*?)\\2|((?:[^,]|\\\\,|(?:,(?=[^\\[]*\\]))|(?:,(?=[^\\(]*\\))))*))\\)|)",
3714
+ pos = ":(nth|eq|gt|lt|first|last|even|odd)(?:\\((\\d*)\\)|)(?=[^-]|$)",
3715
+ combinators = whitespace + "*([\\x20\\t\\r\\n\\f>+~])" + whitespace + "*",
3716
+ groups = "(?=[^\\x20\\t\\r\\n\\f])(?:\\\\.|" + attributes + "|" + pseudos.replace( 2, 7 ) + "|[^\\\\(),])+",
3717
+
3718
+ // Leading and non-escaped trailing whitespace, capturing some non-whitespace characters preceding the latter
3719
+ rtrim = new RegExp( "^" + whitespace + "+|((?:^|[^\\\\])(?:\\\\.)*)" + whitespace + "+$", "g" ),
3720
+
3721
+ rcombinators = new RegExp( "^" + combinators ),
3722
+
3723
+ // All simple (non-comma) selectors, excluding insignifant trailing whitespace
3724
+ rgroups = new RegExp( groups + "?(?=" + whitespace + "*,|$)", "g" ),
3725
+
3726
+ // A selector, or everything after leading whitespace
3727
+ // Optionally followed in either case by a ")" for terminating sub-selectors
3728
+ rselector = new RegExp( "^(?:(?!,)(?:(?:^|,)" + whitespace + "*" + groups + ")*?|" + whitespace + "*(.*?))(\\)|$)" ),
3729
+
3730
+ // All combinators and selector components (attribute test, tag, pseudo, etc.), the latter appearing together when consecutive
3731
+ rtokens = new RegExp( groups.slice( 19, -6 ) + "\\x20\\t\\r\\n\\f>+~])+|" + combinators, "g" ),
3732
+
3733
+ // Easily-parseable/retrievable ID or TAG or CLASS selectors
3734
+ rquickExpr = /^(?:#([\w\-]+)|(\w+)|\.([\w\-]+))$/,
3735
+
3736
+ rsibling = /[\x20\t\r\n\f]*[+~]/,
3737
+ rendsWithNot = /:not\($/,
3738
+
3739
+ rheader = /h\d/i,
3740
+ rinputs = /input|select|textarea|button/i,
3741
+
3742
+ rbackslash = /\\(?!\\)/g,
3743
+
3744
+ matchExpr = {
3745
+ "ID": new RegExp( "^#(" + characterEncoding + ")" ),
3746
+ "CLASS": new RegExp( "^\\.(" + characterEncoding + ")" ),
3747
+ "NAME": new RegExp( "^\\[name=['\"]?(" + characterEncoding + ")['\"]?\\]" ),
3748
+ "TAG": new RegExp( "^(" + characterEncoding.replace( "[-", "[-\\*" ) + ")" ),
3749
+ "ATTR": new RegExp( "^" + attributes ),
3750
+ "PSEUDO": new RegExp( "^" + pseudos ),
3751
+ "CHILD": new RegExp( "^:(only|nth|last|first)-child(?:\\(" + whitespace +
3752
+ "*(even|odd|(([+-]|)(\\d*)n|)" + whitespace + "*(?:([+-]|)" + whitespace +
3753
+ "*(\\d+)|))" + whitespace + "*\\)|)", "i" ),
3754
+ "POS": new RegExp( pos, "ig" ),
3755
+ // For use in libraries implementing .is()
3756
+ "needsContext": new RegExp( "^" + whitespace + "*[>+~]|" + pos, "i" )
3757
+ },
3758
+
3759
+ classCache = {},
3760
+ cachedClasses = [],
3761
+ compilerCache = {},
3762
+ cachedSelectors = [],
3763
+
3764
+ // Mark a function for use in filtering
3765
+ markFunction = function( fn ) {
3766
+ fn.sizzleFilter = true;
3767
+ return fn;
3768
+ },
3769
+
3770
+ // Returns a function to use in pseudos for input types
3771
+ createInputFunction = function( type ) {
3772
+ return function( elem ) {
3773
+ // Check the input's nodeName and type
3774
+ return elem.nodeName.toLowerCase() === "input" && elem.type === type;
3775
+ };
3776
+ },
3777
+
3778
+ // Returns a function to use in pseudos for buttons
3779
+ createButtonFunction = function( type ) {
3780
+ return function( elem ) {
3781
+ var name = elem.nodeName.toLowerCase();
3782
+ return (name === "input" || name === "button") && elem.type === type;
3783
+ };
3784
+ },
3785
+
3786
+ // Used for testing something on an element
3787
+ assert = function( fn ) {
3788
+ var pass = false,
3789
+ div = document.createElement("div");
3790
+ try {
3791
+ pass = fn( div );
3792
+ } catch (e) {}
3793
+ // release memory in IE
3794
+ div = null;
3795
+ return pass;
3796
+ },
3797
+
3798
+ // Check if attributes should be retrieved by attribute nodes
3799
+ assertAttributes = assert(function( div ) {
3800
+ div.innerHTML = "<select></select>";
3801
+ var type = typeof div.lastChild.getAttribute("multiple");
3802
+ // IE8 returns a string for some attributes even when not present
3803
+ return type !== "boolean" && type !== "string";
3804
+ }),
3805
+
3806
+ // Check if getElementById returns elements by name
3807
+ // Check if getElementsByName privileges form controls or returns elements by ID
3808
+ assertUsableName = assert(function( div ) {
3809
+ // Inject content
3810
+ div.id = expando + 0;
3811
+ div.innerHTML = "<a name='" + expando + "'></a><div name='" + expando + "'></div>";
3812
+ docElem.insertBefore( div, docElem.firstChild );
3813
+
3814
+ // Test
3815
+ var pass = document.getElementsByName &&
3816
+ // buggy browsers will return fewer than the correct 2
3817
+ document.getElementsByName( expando ).length ===
3818
+ // buggy browsers will return more than the correct 0
3819
+ 2 + document.getElementsByName( expando + 0 ).length;
3820
+ assertGetIdNotName = !document.getElementById( expando );
3821
+
3822
+ // Cleanup
3823
+ docElem.removeChild( div );
3824
+
3825
+ return pass;
3826
+ }),
3827
+
3828
+ // Check if the browser returns only elements
3829
+ // when doing getElementsByTagName("*")
3830
+ assertTagNameNoComments = assert(function( div ) {
3831
+ div.appendChild( document.createComment("") );
3832
+ return div.getElementsByTagName("*").length === 0;
3833
+ }),
3834
+
3835
+ // Check if getAttribute returns normalized href attributes
3836
+ assertHrefNotNormalized = assert(function( div ) {
3837
+ div.innerHTML = "<a href='#'></a>";
3838
+ return div.firstChild && typeof div.firstChild.getAttribute !== strundefined &&
3839
+ div.firstChild.getAttribute("href") === "#";
3840
+ }),
3841
+
3842
+ // Check if getElementsByClassName can be trusted
3843
+ assertUsableClassName = assert(function( div ) {
3844
+ // Opera can't find a second classname (in 9.6)
3845
+ div.innerHTML = "<div class='hidden e'></div><div class='hidden'></div>";
3846
+ if ( !div.getElementsByClassName || div.getElementsByClassName("e").length === 0 ) {
3847
+ return false;
3848
+ }
3849
+
3850
+ // Safari caches class attributes, doesn't catch changes (in 3.2)
3851
+ div.lastChild.className = "e";
3852
+ return div.getElementsByClassName("e").length !== 1;
3853
+ });
3854
+
3855
+ var Sizzle = function( selector, context, results, seed ) {
3856
+ results = results || [];
3857
+ context = context || document;
3858
+ var match, elem, xml, m,
3859
+ nodeType = context.nodeType;
3860
+
3861
+ if ( nodeType !== 1 && nodeType !== 9 ) {
3862
+ return [];
3863
+ }
3864
+
3865
+ if ( !selector || typeof selector !== "string" ) {
3866
+ return results;
3867
+ }
3868
+
3869
+ xml = isXML( context );
3870
+
3871
+ if ( !xml && !seed ) {
3872
+ if ( (match = rquickExpr.exec( selector )) ) {
3873
+ // Speed-up: Sizzle("#ID")
3874
+ if ( (m = match[1]) ) {
3875
+ if ( nodeType === 9 ) {
3876
+ elem = context.getElementById( m );
3877
+ // Check parentNode to catch when Blackberry 4.6 returns
3878
+ // nodes that are no longer in the document #6963
3879
+ if ( elem && elem.parentNode ) {
3880
+ // Handle the case where IE, Opera, and Webkit return items
3881
+ // by name instead of ID
3882
+ if ( elem.id === m ) {
3883
+ results.push( elem );
3884
+ return results;
3885
+ }
3886
+ } else {
3887
+ return results;
3888
+ }
3889
+ } else {
3890
+ // Context is not a document
3891
+ if ( context.ownerDocument && (elem = context.ownerDocument.getElementById( m )) &&
3892
+ contains( context, elem ) && elem.id === m ) {
3893
+ results.push( elem );
3894
+ return results;
3895
+ }
3896
+ }
3897
+
3898
+ // Speed-up: Sizzle("TAG")
3899
+ } else if ( match[2] ) {
3900
+ push.apply( results, slice.call(context.getElementsByTagName( selector ), 0) );
3901
+ return results;
3902
+
3903
+ // Speed-up: Sizzle(".CLASS")
3904
+ } else if ( (m = match[3]) && assertUsableClassName && context.getElementsByClassName ) {
3905
+ push.apply( results, slice.call(context.getElementsByClassName( m ), 0) );
3906
+ return results;
3907
+ }
3908
+ }
3909
+ }
3910
+
3911
+ // All others
3912
+ return select( selector, context, results, seed, xml );
3913
+ };
3914
+
3915
+ var Expr = Sizzle.selectors = {
3916
+
3917
+ // Can be adjusted by the user
3918
+ cacheLength: 50,
3919
+
3920
+ match: matchExpr,
3921
+
3922
+ order: [ "ID", "TAG" ],
3923
+
3924
+ attrHandle: {},
3925
+
3926
+ createPseudo: markFunction,
3927
+
3928
+ find: {
3929
+ "ID": assertGetIdNotName ?
3930
+ function( id, context, xml ) {
3931
+ if ( typeof context.getElementById !== strundefined && !xml ) {
3932
+ var m = context.getElementById( id );
3933
+ // Check parentNode to catch when Blackberry 4.6 returns
3934
+ // nodes that are no longer in the document #6963
3935
+ return m && m.parentNode ? [m] : [];
3936
+ }
3937
+ } :
3938
+ function( id, context, xml ) {
3939
+ if ( typeof context.getElementById !== strundefined && !xml ) {
3940
+ var m = context.getElementById( id );
3941
+
3942
+ return m ?
3943
+ m.id === id || typeof m.getAttributeNode !== strundefined && m.getAttributeNode("id").value === id ?
3944
+ [m] :
3945
+ undefined :
3946
+ [];
3947
+ }
3948
+ },
3949
+
3950
+ "TAG": assertTagNameNoComments ?
3951
+ function( tag, context ) {
3952
+ if ( typeof context.getElementsByTagName !== strundefined ) {
3953
+ return context.getElementsByTagName( tag );
3954
+ }
3955
+ } :
3956
+ function( tag, context ) {
3957
+ var results = context.getElementsByTagName( tag );
3958
+
3959
+ // Filter out possible comments
3960
+ if ( tag === "*" ) {
3961
+ var elem,
3962
+ tmp = [],
3963
+ i = 0;
3964
+
3965
+ for ( ; (elem = results[i]); i++ ) {
3966
+ if ( elem.nodeType === 1 ) {
3967
+ tmp.push( elem );
3968
+ }
3969
+ }
3970
+
3971
+ return tmp;
3972
+ }
3973
+ return results;
3974
+ }
3975
+ },
3976
+
3977
+ relative: {
3978
+ ">": { dir: "parentNode", first: true },
3979
+ " ": { dir: "parentNode" },
3980
+ "+": { dir: "previousSibling", first: true },
3981
+ "~": { dir: "previousSibling" }
3982
+ },
3983
+
3984
+ preFilter: {
3985
+ "ATTR": function( match ) {
3986
+ match[1] = match[1].replace( rbackslash, "" );
3987
+
3988
+ // Move the given value to match[3] whether quoted or unquoted
3989
+ match[3] = ( match[4] || match[5] || "" ).replace( rbackslash, "" );
3990
+
3991
+ if ( match[2] === "~=" ) {
3992
+ match[3] = " " + match[3] + " ";
3993
+ }
3994
+
3995
+ return match.slice( 0, 4 );
3996
+ },
3997
+
3998
+ "CHILD": function( match ) {
3999
+ /* matches from matchExpr.CHILD
4000
+ 1 type (only|nth|...)
4001
+ 2 argument (even|odd|\d*|\d*n([+-]\d+)?|...)
4002
+ 3 xn-component of xn+y argument ([+-]?\d*n|)
4003
+ 4 sign of xn-component
4004
+ 5 x of xn-component
4005
+ 6 sign of y-component
4006
+ 7 y of y-component
4007
+ */
4008
+ match[1] = match[1].toLowerCase();
4009
+
4010
+ if ( match[1] === "nth" ) {
4011
+ // nth-child requires argument
4012
+ if ( !match[2] ) {
4013
+ Sizzle.error( match[0] );
4014
+ }
4015
+
4016
+ // numeric x and y parameters for Expr.filter.CHILD
4017
+ // remember that false/true cast respectively to 0/1
4018
+ match[3] = +( match[3] ? match[4] + (match[5] || 1) : 2 * ( match[2] === "even" || match[2] === "odd" ) );
4019
+ match[4] = +( ( match[6] + match[7] ) || match[2] === "odd" );
4020
+
4021
+ // other types prohibit arguments
4022
+ } else if ( match[2] ) {
4023
+ Sizzle.error( match[0] );
4024
+ }
4025
+
4026
+ return match;
4027
+ },
4028
+
4029
+ "PSEUDO": function( match ) {
4030
+ var argument,
4031
+ unquoted = match[4];
4032
+
4033
+ if ( matchExpr["CHILD"].test( match[0] ) ) {
4034
+ return null;
4035
+ }
4036
+
4037
+ // Relinquish our claim on characters in `unquoted` from a closing parenthesis on
4038
+ if ( unquoted && (argument = rselector.exec( unquoted )) && argument.pop() ) {
4039
+
4040
+ match[0] = match[0].slice( 0, argument[0].length - unquoted.length - 1 );
4041
+ unquoted = argument[0].slice( 0, -1 );
4042
+ }
4043
+
4044
+ // Quoted or unquoted, we have the full argument
4045
+ // Return only captures needed by the pseudo filter method (type and argument)
4046
+ match.splice( 2, 3, unquoted || match[3] );
4047
+ return match;
4048
+ }
4049
+ },
4050
+
4051
+ filter: {
4052
+ "ID": assertGetIdNotName ?
4053
+ function( id ) {
4054
+ id = id.replace( rbackslash, "" );
4055
+ return function( elem ) {
4056
+ return elem.getAttribute("id") === id;
4057
+ };
4058
+ } :
4059
+ function( id ) {
4060
+ id = id.replace( rbackslash, "" );
4061
+ return function( elem ) {
4062
+ var node = typeof elem.getAttributeNode !== strundefined && elem.getAttributeNode("id");
4063
+ return node && node.value === id;
4064
+ };
4065
+ },
4066
+
4067
+ "TAG": function( nodeName ) {
4068
+ if ( nodeName === "*" ) {
4069
+ return function() { return true; };
4070
+ }
4071
+ nodeName = nodeName.replace( rbackslash, "" ).toLowerCase();
4072
+
4073
+ return function( elem ) {
4074
+ return elem.nodeName && elem.nodeName.toLowerCase() === nodeName;
4075
+ };
4076
+ },
4077
+
4078
+ "CLASS": function( className ) {
4079
+ var pattern = classCache[ className ];
4080
+ if ( !pattern ) {
4081
+ pattern = classCache[ className ] = new RegExp( "(^|" + whitespace + ")" + className + "(" + whitespace + "|$)" );
4082
+ cachedClasses.push( className );
4083
+ // Avoid too large of a cache
4084
+ if ( cachedClasses.length > Expr.cacheLength ) {
4085
+ delete classCache[ cachedClasses.shift() ];
4086
+ }
4087
+ }
4088
+ return function( elem ) {
4089
+ return pattern.test( elem.className || (typeof elem.getAttribute !== strundefined && elem.getAttribute("class")) || "" );
4090
+ };
4091
+ },
4092
+
4093
+ "ATTR": function( name, operator, check ) {
4094
+ if ( !operator ) {
4095
+ return function( elem ) {
4096
+ return Sizzle.attr( elem, name ) != null;
4097
+ };
4098
+ }
4099
+
4100
+ return function( elem ) {
4101
+ var result = Sizzle.attr( elem, name ),
4102
+ value = result + "";
4103
+
4104
+ if ( result == null ) {
4105
+ return operator === "!=";
4106
+ }
4107
+
4108
+ switch ( operator ) {
4109
+ case "=":
4110
+ return value === check;
4111
+ case "!=":
4112
+ return value !== check;
4113
+ case "^=":
4114
+ return check && value.indexOf( check ) === 0;
4115
+ case "*=":
4116
+ return check && value.indexOf( check ) > -1;
4117
+ case "$=":
4118
+ return check && value.substr( value.length - check.length ) === check;
4119
+ case "~=":
4120
+ return ( " " + value + " " ).indexOf( check ) > -1;
4121
+ case "|=":
4122
+ return value === check || value.substr( 0, check.length + 1 ) === check + "-";
4123
+ }
4124
+ };
4125
+ },
4126
+
4127
+ "CHILD": function( type, argument, first, last ) {
4128
+
4129
+ if ( type === "nth" ) {
4130
+ var doneName = done++;
4131
+
4132
+ return function( elem ) {
4133
+ var parent, diff,
4134
+ count = 0,
4135
+ node = elem;
4136
+
4137
+ if ( first === 1 && last === 0 ) {
4138
+ return true;
4139
+ }
4140
+
4141
+ parent = elem.parentNode;
4142
+
4143
+ if ( parent && (parent[ expando ] !== doneName || !elem.sizset) ) {
4144
+ for ( node = parent.firstChild; node; node = node.nextSibling ) {
4145
+ if ( node.nodeType === 1 ) {
4146
+ node.sizset = ++count;
4147
+ if ( node === elem ) {
4148
+ break;
4149
+ }
4150
+ }
4151
+ }
4152
+
4153
+ parent[ expando ] = doneName;
4154
+ }
4155
+
4156
+ diff = elem.sizset - last;
4157
+
4158
+ if ( first === 0 ) {
4159
+ return diff === 0;
4160
+
4161
+ } else {
4162
+ return ( diff % first === 0 && diff / first >= 0 );
4163
+ }
4164
+ };
4165
+ }
4166
+
4167
+ return function( elem ) {
4168
+ var node = elem;
4169
+
4170
+ switch ( type ) {
4171
+ case "only":
4172
+ case "first":
4173
+ while ( (node = node.previousSibling) ) {
4174
+ if ( node.nodeType === 1 ) {
4175
+ return false;
4176
+ }
4177
+ }
4178
+
4179
+ if ( type === "first" ) {
4180
+ return true;
4181
+ }
4182
+
4183
+ node = elem;
4184
+
4185
+ /* falls through */
4186
+ case "last":
4187
+ while ( (node = node.nextSibling) ) {
4188
+ if ( node.nodeType === 1 ) {
4189
+ return false;
4190
+ }
4191
+ }
4192
+
4193
+ return true;
4194
+ }
4195
+ };
4196
+ },
4197
+
4198
+ "PSEUDO": function( pseudo, argument, context, xml ) {
4199
+ // pseudo-class names are case-insensitive
4200
+ // http://www.w3.org/TR/selectors/#pseudo-classes
4201
+ // Prioritize by case sensitivity in case custom pseudos are added with uppercase letters
4202
+ var fn = Expr.pseudos[ pseudo ] || Expr.pseudos[ pseudo.toLowerCase() ];
4203
+
4204
+ if ( !fn ) {
4205
+ Sizzle.error( "unsupported pseudo: " + pseudo );
4206
+ }
4207
+
4208
+ // The user may set fn.sizzleFilter to indicate
4209
+ // that arguments are needed to create the filter function
4210
+ // just as Sizzle does
4211
+ if ( !fn.sizzleFilter ) {
4212
+ return fn;
4213
+ }
4214
+
4215
+ return fn( argument, context, xml );
4216
+ }
4217
+ },
4218
+
4219
+ pseudos: {
4220
+ "not": markFunction(function( selector, context, xml ) {
4221
+ // Trim the selector passed to compile
4222
+ // to avoid treating leading and trailing
4223
+ // spaces as combinators
4224
+ var matcher = compile( selector.replace( rtrim, "$1" ), context, xml );
4225
+ return function( elem ) {
4226
+ return !matcher( elem );
4227
+ };
4228
+ }),
4229
+
4230
+ "enabled": function( elem ) {
4231
+ return elem.disabled === false;
4232
+ },
4233
+
4234
+ "disabled": function( elem ) {
4235
+ return elem.disabled === true;
4236
+ },
4237
+
4238
+ "checked": function( elem ) {
4239
+ // In CSS3, :checked should return both checked and selected elements
4240
+ // http://www.w3.org/TR/2011/REC-css3-selectors-20110929/#checked
4241
+ var nodeName = elem.nodeName.toLowerCase();
4242
+ return (nodeName === "input" && !!elem.checked) || (nodeName === "option" && !!elem.selected);
4243
+ },
4244
+
4245
+ "selected": function( elem ) {
4246
+ // Accessing this property makes selected-by-default
4247
+ // options in Safari work properly
4248
+ if ( elem.parentNode ) {
4249
+ elem.parentNode.selectedIndex;
4250
+ }
4251
+
4252
+ return elem.selected === true;
4253
+ },
4254
+
4255
+ "parent": function( elem ) {
4256
+ return !Expr.pseudos["empty"]( elem );
4257
+ },
4258
+
4259
+ "empty": function( elem ) {
4260
+ // http://www.w3.org/TR/selectors/#empty-pseudo
4261
+ // :empty is only affected by element nodes and content nodes(including text(3), cdata(4)),
4262
+ // not comment, processing instructions, or others
4263
+ // Thanks to Diego Perini for the nodeName shortcut
4264
+ // Greater than "@" means alpha characters (specifically not starting with "#" or "?")
4265
+ var nodeType;
4266
+ elem = elem.firstChild;
4267
+ while ( elem ) {
4268
+ if ( elem.nodeName > "@" || (nodeType = elem.nodeType) === 3 || nodeType === 4 ) {
4269
+ return false;
4270
+ }
4271
+ elem = elem.nextSibling;
4272
+ }
4273
+ return true;
4274
+ },
4275
+
4276
+ "contains": markFunction(function( text ) {
4277
+ return function( elem ) {
4278
+ return ( elem.textContent || elem.innerText || getText( elem ) ).indexOf( text ) > -1;
4279
+ };
4280
+ }),
4281
+
4282
+ "has": markFunction(function( selector ) {
4283
+ return function( elem ) {
4284
+ return Sizzle( selector, elem ).length > 0;
4285
+ };
4286
+ }),
4287
+
4288
+ "header": function( elem ) {
4289
+ return rheader.test( elem.nodeName );
4290
+ },
4291
+
4292
+ "text": function( elem ) {
4293
+ var type, attr;
4294
+ // IE6 and 7 will map elem.type to 'text' for new HTML5 types (search, etc)
4295
+ // use getAttribute instead to test this case
4296
+ return elem.nodeName.toLowerCase() === "input" &&
4297
+ (type = elem.type) === "text" &&
4298
+ ( (attr = elem.getAttribute("type")) == null || attr.toLowerCase() === type );
4299
+ },
4300
+
4301
+ // Input types
4302
+ "radio": createInputFunction("radio"),
4303
+ "checkbox": createInputFunction("checkbox"),
4304
+ "file": createInputFunction("file"),
4305
+ "password": createInputFunction("password"),
4306
+ "image": createInputFunction("image"),
4307
+
4308
+ "submit": createButtonFunction("submit"),
4309
+ "reset": createButtonFunction("reset"),
4310
+
4311
+ "button": function( elem ) {
4312
+ var name = elem.nodeName.toLowerCase();
4313
+ return name === "input" && elem.type === "button" || name === "button";
4314
+ },
4315
+
4316
+ "input": function( elem ) {
4317
+ return rinputs.test( elem.nodeName );
4318
+ },
4319
+
4320
+ "focus": function( elem ) {
4321
+ var doc = elem.ownerDocument;
4322
+ return elem === doc.activeElement && (!doc.hasFocus || doc.hasFocus()) && !!(elem.type || elem.href);
4323
+ },
4324
+
4325
+ "active": function( elem ) {
4326
+ return elem === elem.ownerDocument.activeElement;
4327
+ }
4328
+ },
4329
+
4330
+ setFilters: {
4331
+ "first": function( elements, argument, not ) {
4332
+ return not ? elements.slice( 1 ) : [ elements[0] ];
4333
+ },
4334
+
4335
+ "last": function( elements, argument, not ) {
4336
+ var elem = elements.pop();
4337
+ return not ? elements : [ elem ];
4338
+ },
4339
+
4340
+ "even": function( elements, argument, not ) {
4341
+ var results = [],
4342
+ i = not ? 1 : 0,
4343
+ len = elements.length;
4344
+ for ( ; i < len; i = i + 2 ) {
4345
+ results.push( elements[i] );
4346
+ }
4347
+ return results;
4348
+ },
4349
+
4350
+ "odd": function( elements, argument, not ) {
4351
+ var results = [],
4352
+ i = not ? 0 : 1,
4353
+ len = elements.length;
4354
+ for ( ; i < len; i = i + 2 ) {
4355
+ results.push( elements[i] );
4356
+ }
4357
+ return results;
4358
+ },
4359
+
4360
+ "lt": function( elements, argument, not ) {
4361
+ return not ? elements.slice( +argument ) : elements.slice( 0, +argument );
4362
+ },
4363
+
4364
+ "gt": function( elements, argument, not ) {
4365
+ return not ? elements.slice( 0, +argument + 1 ) : elements.slice( +argument + 1 );
4366
+ },
4367
+
4368
+ "eq": function( elements, argument, not ) {
4369
+ var elem = elements.splice( +argument, 1 );
4370
+ return not ? elements : elem;
4371
+ }
4372
+ }
4373
+ };
4374
+
4375
+ // Deprecated
4376
+ Expr.setFilters["nth"] = Expr.setFilters["eq"];
4377
+
4378
+ // Back-compat
4379
+ Expr.filters = Expr.pseudos;
4380
+
4381
+ // IE6/7 return a modified href
4382
+ if ( !assertHrefNotNormalized ) {
4383
+ Expr.attrHandle = {
4384
+ "href": function( elem ) {
4385
+ return elem.getAttribute( "href", 2 );
4386
+ },
4387
+ "type": function( elem ) {
4388
+ return elem.getAttribute("type");
4389
+ }
4390
+ };
4391
+ }
4392
+
4393
+ // Add getElementsByName if usable
4394
+ if ( assertUsableName ) {
4395
+ Expr.order.push("NAME");
4396
+ Expr.find["NAME"] = function( name, context ) {
4397
+ if ( typeof context.getElementsByName !== strundefined ) {
4398
+ return context.getElementsByName( name );
4399
+ }
4400
+ };
4401
+ }
4402
+
4403
+ // Add getElementsByClassName if usable
4404
+ if ( assertUsableClassName ) {
4405
+ Expr.order.splice( 1, 0, "CLASS" );
4406
+ Expr.find["CLASS"] = function( className, context, xml ) {
4407
+ if ( typeof context.getElementsByClassName !== strundefined && !xml ) {
4408
+ return context.getElementsByClassName( className );
4409
+ }
4410
+ };
4411
+ }
4412
+
4413
+ // If slice is not available, provide a backup
4414
+ try {
4415
+ slice.call( docElem.childNodes, 0 )[0].nodeType;
4416
+ } catch ( e ) {
4417
+ slice = function( i ) {
4418
+ var elem, results = [];
4419
+ for ( ; (elem = this[i]); i++ ) {
4420
+ results.push( elem );
4421
+ }
4422
+ return results;
4423
+ };
4424
+ }
4425
+
4426
+ var isXML = Sizzle.isXML = function( elem ) {
4427
+ // documentElement is verified for cases where it doesn't yet exist
4428
+ // (such as loading iframes in IE - #4833)
4429
+ var documentElement = elem && (elem.ownerDocument || elem).documentElement;
4430
+ return documentElement ? documentElement.nodeName !== "HTML" : false;
4431
+ };
4432
+
4433
+ // Element contains another
4434
+ var contains = Sizzle.contains = docElem.compareDocumentPosition ?
4435
+ function( a, b ) {
4436
+ return !!( a.compareDocumentPosition( b ) & 16 );
4437
+ } :
4438
+ docElem.contains ?
4439
+ function( a, b ) {
4440
+ var adown = a.nodeType === 9 ? a.documentElement : a,
4441
+ bup = b.parentNode;
4442
+ return a === bup || !!( bup && bup.nodeType === 1 && adown.contains && adown.contains(bup) );
4443
+ } :
4444
+ function( a, b ) {
4445
+ while ( (b = b.parentNode) ) {
4446
+ if ( b === a ) {
4447
+ return true;
4448
+ }
4449
+ }
4450
+ return false;
4451
+ };
4452
+
4453
+ /**
4454
+ * Utility function for retrieving the text value of an array of DOM nodes
4455
+ * @param {Array|Element} elem
4456
+ */
4457
+ var getText = Sizzle.getText = function( elem ) {
4458
+ var node,
4459
+ ret = "",
4460
+ i = 0,
4461
+ nodeType = elem.nodeType;
4462
+
4463
+ if ( nodeType ) {
4464
+ if ( nodeType === 1 || nodeType === 9 || nodeType === 11 ) {
4465
+ // Use textContent for elements
4466
+ // innerText usage removed for consistency of new lines (see #11153)
4467
+ if ( typeof elem.textContent === "string" ) {
4468
+ return elem.textContent;
4469
+ } else {
4470
+ // Traverse its children
4471
+ for ( elem = elem.firstChild; elem; elem = elem.nextSibling ) {
4472
+ ret += getText( elem );
4473
+ }
4474
+ }
4475
+ } else if ( nodeType === 3 || nodeType === 4 ) {
4476
+ return elem.nodeValue;
4477
+ }
4478
+ // Do not include comment or processing instruction nodes
4479
+ } else {
4480
+
4481
+ // If no nodeType, this is expected to be an array
4482
+ for ( ; (node = elem[i]); i++ ) {
4483
+ // Do not traverse comment nodes
4484
+ ret += getText( node );
4485
+ }
4486
+ }
4487
+ return ret;
4488
+ };
4489
+
4490
+ Sizzle.attr = function( elem, name ) {
4491
+ var attr,
4492
+ xml = isXML( elem );
4493
+
4494
+ if ( !xml ) {
4495
+ name = name.toLowerCase();
4496
+ }
4497
+ if ( Expr.attrHandle[ name ] ) {
4498
+ return Expr.attrHandle[ name ]( elem );
4499
+ }
4500
+ if ( assertAttributes || xml ) {
4501
+ return elem.getAttribute( name );
4502
+ }
4503
+ attr = elem.getAttributeNode( name );
4504
+ return attr ?
4505
+ typeof elem[ name ] === "boolean" ?
4506
+ elem[ name ] ? name : null :
4507
+ attr.specified ? attr.value : null :
4508
+ null;
4509
+ };
4510
+
4511
+ Sizzle.error = function( msg ) {
4512
+ throw new Error( "Syntax error, unrecognized expression: " + msg );
4513
+ };
4514
+
4515
+ // Check if the JavaScript engine is using some sort of
4516
+ // optimization where it does not always call our comparision
4517
+ // function. If that is the case, discard the hasDuplicate value.
4518
+ // Thus far that includes Google Chrome.
4519
+ [0, 0].sort(function() {
4520
+ return (baseHasDuplicate = 0);
4521
+ });
4522
+
4523
+
4524
+ if ( docElem.compareDocumentPosition ) {
4525
+ sortOrder = function( a, b ) {
4526
+ if ( a === b ) {
4527
+ hasDuplicate = true;
4528
+ return 0;
4529
+ }
4530
+
4531
+ return ( !a.compareDocumentPosition || !b.compareDocumentPosition ?
4532
+ a.compareDocumentPosition :
4533
+ a.compareDocumentPosition(b) & 4
4534
+ ) ? -1 : 1;
4535
+ };
4536
+
4537
+ } else {
4538
+ sortOrder = function( a, b ) {
4539
+ // The nodes are identical, we can exit early
4540
+ if ( a === b ) {
4541
+ hasDuplicate = true;
4542
+ return 0;
4543
+
4544
+ // Fallback to using sourceIndex (in IE) if it's available on both nodes
4545
+ } else if ( a.sourceIndex && b.sourceIndex ) {
4546
+ return a.sourceIndex - b.sourceIndex;
4547
+ }
4548
+
4549
+ var al, bl,
4550
+ ap = [],
4551
+ bp = [],
4552
+ aup = a.parentNode,
4553
+ bup = b.parentNode,
4554
+ cur = aup;
4555
+
4556
+ // If the nodes are siblings (or identical) we can do a quick check
4557
+ if ( aup === bup ) {
4558
+ return siblingCheck( a, b );
4559
+
4560
+ // If no parents were found then the nodes are disconnected
4561
+ } else if ( !aup ) {
4562
+ return -1;
4563
+
4564
+ } else if ( !bup ) {
4565
+ return 1;
4566
+ }
4567
+
4568
+ // Otherwise they're somewhere else in the tree so we need
4569
+ // to build up a full list of the parentNodes for comparison
4570
+ while ( cur ) {
4571
+ ap.unshift( cur );
4572
+ cur = cur.parentNode;
4573
+ }
4574
+
4575
+ cur = bup;
4576
+
4577
+ while ( cur ) {
4578
+ bp.unshift( cur );
4579
+ cur = cur.parentNode;
4580
+ }
4581
+
4582
+ al = ap.length;
4583
+ bl = bp.length;
4584
+
4585
+ // Start walking down the tree looking for a discrepancy
4586
+ for ( var i = 0; i < al && i < bl; i++ ) {
4587
+ if ( ap[i] !== bp[i] ) {
4588
+ return siblingCheck( ap[i], bp[i] );
4589
+ }
4590
+ }
4591
+
4592
+ // We ended someplace up the tree so do a sibling check
4593
+ return i === al ?
4594
+ siblingCheck( a, bp[i], -1 ) :
4595
+ siblingCheck( ap[i], b, 1 );
4596
+ };
4597
+
4598
+ siblingCheck = function( a, b, ret ) {
4599
+ if ( a === b ) {
4600
+ return ret;
4601
+ }
4602
+
4603
+ var cur = a.nextSibling;
4604
+
4605
+ while ( cur ) {
4606
+ if ( cur === b ) {
4607
+ return -1;
4608
+ }
4609
+
4610
+ cur = cur.nextSibling;
4611
+ }
4612
+
4613
+ return 1;
4614
+ };
4615
+ }
4616
+
4617
+ // Document sorting and removing duplicates
4618
+ Sizzle.uniqueSort = function( results ) {
4619
+ var elem,
4620
+ i = 1;
4621
+
4622
+ if ( sortOrder ) {
4623
+ hasDuplicate = baseHasDuplicate;
4624
+ results.sort( sortOrder );
4625
+
4626
+ if ( hasDuplicate ) {
4627
+ for ( ; (elem = results[i]); i++ ) {
4628
+ if ( elem === results[ i - 1 ] ) {
4629
+ results.splice( i--, 1 );
4630
+ }
4631
+ }
4632
+ }
4633
+ }
4634
+
4635
+ return results;
4636
+ };
4637
+
4638
+ function multipleContexts( selector, contexts, results, seed ) {
4639
+ var i = 0,
4640
+ len = contexts.length;
4641
+ for ( ; i < len; i++ ) {
4642
+ Sizzle( selector, contexts[i], results, seed );
4643
+ }
4644
+ }
4645
+
4646
+ function handlePOSGroup( selector, posfilter, argument, contexts, seed, not ) {
4647
+ var results,
4648
+ fn = Expr.setFilters[ posfilter.toLowerCase() ];
4649
+
4650
+ if ( !fn ) {
4651
+ Sizzle.error( posfilter );
4652
+ }
4653
+
4654
+ if ( selector || !(results = seed) ) {
4655
+ multipleContexts( selector || "*", contexts, (results = []), seed );
4656
+ }
4657
+
4658
+ return results.length > 0 ? fn( results, argument, not ) : [];
4659
+ }
4660
+
4661
+ function handlePOS( selector, context, results, seed, groups ) {
4662
+ var match, not, anchor, ret, elements, currentContexts, part, lastIndex,
4663
+ i = 0,
4664
+ len = groups.length,
4665
+ rpos = matchExpr["POS"],
4666
+ // This is generated here in case matchExpr["POS"] is extended
4667
+ rposgroups = new RegExp( "^" + rpos.source + "(?!" + whitespace + ")", "i" ),
4668
+ // This is for making sure non-participating
4669
+ // matching groups are represented cross-browser (IE6-8)
4670
+ setUndefined = function() {
4671
+ var i = 1,
4672
+ len = arguments.length - 2;
4673
+ for ( ; i < len; i++ ) {
4674
+ if ( arguments[i] === undefined ) {
4675
+ match[i] = undefined;
4676
+ }
4677
+ }
4678
+ };
4679
+
4680
+ for ( ; i < len; i++ ) {
4681
+ // Reset regex index to 0
4682
+ rpos.exec("");
4683
+ selector = groups[i];
4684
+ ret = [];
4685
+ anchor = 0;
4686
+ elements = seed;
4687
+ while ( (match = rpos.exec( selector )) ) {
4688
+ lastIndex = rpos.lastIndex = match.index + match[0].length;
4689
+ if ( lastIndex > anchor ) {
4690
+ part = selector.slice( anchor, match.index );
4691
+ anchor = lastIndex;
4692
+ currentContexts = [ context ];
4693
+
4694
+ if ( rcombinators.test(part) ) {
4695
+ if ( elements ) {
4696
+ currentContexts = elements;
4697
+ }
4698
+ elements = seed;
4699
+ }
4700
+
4701
+ if ( (not = rendsWithNot.test( part )) ) {
4702
+ part = part.slice( 0, -5 ).replace( rcombinators, "$&*" );
4703
+ }
4704
+
4705
+ if ( match.length > 1 ) {
4706
+ match[0].replace( rposgroups, setUndefined );
4707
+ }
4708
+ elements = handlePOSGroup( part, match[1], match[2], currentContexts, elements, not );
4709
+ }
4710
+ }
4711
+
4712
+ if ( elements ) {
4713
+ ret = ret.concat( elements );
4714
+
4715
+ if ( (part = selector.slice( anchor )) && part !== ")" ) {
4716
+ if ( rcombinators.test(part) ) {
4717
+ multipleContexts( part, ret, results, seed );
4718
+ } else {
4719
+ Sizzle( part, context, results, seed ? seed.concat(elements) : elements );
4720
+ }
4721
+ } else {
4722
+ push.apply( results, ret );
4723
+ }
4724
+ } else {
4725
+ Sizzle( selector, context, results, seed );
4726
+ }
4727
+ }
4728
+
4729
+ // Do not sort if this is a single filter
4730
+ return len === 1 ? results : Sizzle.uniqueSort( results );
4731
+ }
4732
+
4733
+ function tokenize( selector, context, xml ) {
4734
+ var tokens, soFar, type,
4735
+ groups = [],
4736
+ i = 0,
4737
+
4738
+ // Catch obvious selector issues: terminal ")"; nonempty fallback match
4739
+ // rselector never fails to match *something*
4740
+ match = rselector.exec( selector ),
4741
+ matched = !match.pop() && !match.pop(),
4742
+ selectorGroups = matched && selector.match( rgroups ) || [""],
4743
+
4744
+ preFilters = Expr.preFilter,
4745
+ filters = Expr.filter,
4746
+ checkContext = !xml && context !== document;
4747
+
4748
+ for ( ; (soFar = selectorGroups[i]) != null && matched; i++ ) {
4749
+ groups.push( tokens = [] );
4750
+
4751
+ // Need to make sure we're within a narrower context if necessary
4752
+ // Adding a descendant combinator will generate what is needed
4753
+ if ( checkContext ) {
4754
+ soFar = " " + soFar;
4755
+ }
4756
+
4757
+ while ( soFar ) {
4758
+ matched = false;
4759
+
4760
+ // Combinators
4761
+ if ( (match = rcombinators.exec( soFar )) ) {
4762
+ soFar = soFar.slice( match[0].length );
4763
+
4764
+ // Cast descendant combinators to space
4765
+ matched = tokens.push({ part: match.pop().replace( rtrim, " " ), captures: match });
4766
+ }
4767
+
4768
+ // Filters
4769
+ for ( type in filters ) {
4770
+ if ( (match = matchExpr[ type ].exec( soFar )) && (!preFilters[ type ] ||
4771
+ (match = preFilters[ type ]( match, context, xml )) ) ) {
4772
+
4773
+ soFar = soFar.slice( match.shift().length );
4774
+ matched = tokens.push({ part: type, captures: match });
4775
+ }
4776
+ }
4777
+
4778
+ if ( !matched ) {
4779
+ break;
4780
+ }
4781
+ }
4782
+ }
4783
+
4784
+ if ( !matched ) {
4785
+ Sizzle.error( selector );
4786
+ }
4787
+
4788
+ return groups;
4789
+ }
4790
+
4791
+ function addCombinator( matcher, combinator, context ) {
4792
+ var dir = combinator.dir,
4793
+ doneName = done++;
4794
+
4795
+ if ( !matcher ) {
4796
+ // If there is no matcher to check, check against the context
4797
+ matcher = function( elem ) {
4798
+ return elem === context;
4799
+ };
4800
+ }
4801
+ return combinator.first ?
4802
+ function( elem, context ) {
4803
+ while ( (elem = elem[ dir ]) ) {
4804
+ if ( elem.nodeType === 1 ) {
4805
+ return matcher( elem, context ) && elem;
4806
+ }
4807
+ }
4808
+ } :
4809
+ function( elem, context ) {
4810
+ var cache,
4811
+ dirkey = doneName + "." + dirruns,
4812
+ cachedkey = dirkey + "." + cachedruns;
4813
+ while ( (elem = elem[ dir ]) ) {
4814
+ if ( elem.nodeType === 1 ) {
4815
+ if ( (cache = elem[ expando ]) === cachedkey ) {
4816
+ return elem.sizset;
4817
+ } else if ( typeof cache === "string" && cache.indexOf(dirkey) === 0 ) {
4818
+ if ( elem.sizset ) {
4819
+ return elem;
4820
+ }
4821
+ } else {
4822
+ elem[ expando ] = cachedkey;
4823
+ if ( matcher( elem, context ) ) {
4824
+ elem.sizset = true;
4825
+ return elem;
4826
+ }
4827
+ elem.sizset = false;
4828
+ }
4829
+ }
4830
+ }
4831
+ };
4832
+ }
4833
+
4834
+ function addMatcher( higher, deeper ) {
4835
+ return higher ?
4836
+ function( elem, context ) {
4837
+ var result = deeper( elem, context );
4838
+ return result && higher( result === true ? elem : result, context );
4839
+ } :
4840
+ deeper;
4841
+ }
4842
+
4843
+ // ["TAG", ">", "ID", " ", "CLASS"]
4844
+ function matcherFromTokens( tokens, context, xml ) {
4845
+ var token, matcher,
4846
+ i = 0;
4847
+
4848
+ for ( ; (token = tokens[i]); i++ ) {
4849
+ if ( Expr.relative[ token.part ] ) {
4850
+ matcher = addCombinator( matcher, Expr.relative[ token.part ], context );
4851
+ } else {
4852
+ token.captures.push( context, xml );
4853
+ matcher = addMatcher( matcher, Expr.filter[ token.part ].apply( null, token.captures ) );
4854
+ }
4855
+ }
4856
+
4857
+ return matcher;
4858
+ }
4859
+
4860
+ function matcherFromGroupMatchers( matchers ) {
4861
+ return function( elem, context ) {
4862
+ var matcher,
4863
+ j = 0;
4864
+ for ( ; (matcher = matchers[j]); j++ ) {
4865
+ if ( matcher(elem, context) ) {
4866
+ return true;
4867
+ }
4868
+ }
4869
+ return false;
4870
+ };
4871
+ }
4872
+
4873
+ var compile = Sizzle.compile = function( selector, context, xml ) {
4874
+ var tokens, group, i,
4875
+ cached = compilerCache[ selector ];
4876
+
4877
+ // Return a cached group function if already generated (context dependent)
4878
+ if ( cached && cached.context === context ) {
4879
+ return cached;
4880
+ }
4881
+
4882
+ // Generate a function of recursive functions that can be used to check each element
4883
+ group = tokenize( selector, context, xml );
4884
+ for ( i = 0; (tokens = group[i]); i++ ) {
4885
+ group[i] = matcherFromTokens( tokens, context, xml );
4886
+ }
4887
+
4888
+ // Cache the compiled function
4889
+ cached = compilerCache[ selector ] = matcherFromGroupMatchers( group );
4890
+ cached.context = context;
4891
+ cached.runs = cached.dirruns = 0;
4892
+ cachedSelectors.push( selector );
4893
+ // Ensure only the most recent are cached
4894
+ if ( cachedSelectors.length > Expr.cacheLength ) {
4895
+ delete compilerCache[ cachedSelectors.shift() ];
4896
+ }
4897
+ return cached;
4898
+ };
4899
+
4900
+ Sizzle.matches = function( expr, elements ) {
4901
+ return Sizzle( expr, null, null, elements );
4902
+ };
4903
+
4904
+ Sizzle.matchesSelector = function( elem, expr ) {
4905
+ return Sizzle( expr, null, null, [ elem ] ).length > 0;
4906
+ };
4907
+
4908
+ var select = function( selector, context, results, seed, xml ) {
4909
+ // Remove excessive whitespace
4910
+ selector = selector.replace( rtrim, "$1" );
4911
+ var elements, matcher, i, len, elem, token,
4912
+ type, findContext, notTokens,
4913
+ match = selector.match( rgroups ),
4914
+ tokens = selector.match( rtokens ),
4915
+ contextNodeType = context.nodeType;
4916
+
4917
+ // POS handling
4918
+ if ( matchExpr["POS"].test(selector) ) {
4919
+ return handlePOS( selector, context, results, seed, match );
4920
+ }
4921
+
4922
+ if ( seed ) {
4923
+ elements = slice.call( seed, 0 );
4924
+
4925
+ // To maintain document order, only narrow the
4926
+ // set if there is one group
4927
+ } else if ( match && match.length === 1 ) {
4928
+
4929
+ // Take a shortcut and set the context if the root selector is an ID
4930
+ if ( tokens.length > 1 && contextNodeType === 9 && !xml &&
4931
+ (match = matchExpr["ID"].exec( tokens[0] )) ) {
4932
+
4933
+ context = Expr.find["ID"]( match[1], context, xml )[0];
4934
+ if ( !context ) {
4935
+ return results;
4936
+ }
4937
+
4938
+ selector = selector.slice( tokens.shift().length );
4939
+ }
4940
+
4941
+ findContext = ( (match = rsibling.exec( tokens[0] )) && !match.index && context.parentNode ) || context;
4942
+
4943
+ // Get the last token, excluding :not
4944
+ notTokens = tokens.pop();
4945
+ token = notTokens.split(":not")[0];
4946
+
4947
+ for ( i = 0, len = Expr.order.length; i < len; i++ ) {
4948
+ type = Expr.order[i];
4949
+
4950
+ if ( (match = matchExpr[ type ].exec( token )) ) {
4951
+ elements = Expr.find[ type ]( (match[1] || "").replace( rbackslash, "" ), findContext, xml );
4952
+
4953
+ if ( elements == null ) {
4954
+ continue;
4955
+ }
4956
+
4957
+ if ( token === notTokens ) {
4958
+ selector = selector.slice( 0, selector.length - notTokens.length ) +
4959
+ token.replace( matchExpr[ type ], "" );
4960
+
4961
+ if ( !selector ) {
4962
+ push.apply( results, slice.call(elements, 0) );
4963
+ }
4964
+ }
4965
+ break;
4966
+ }
4967
+ }
4968
+ }
4969
+
4970
+ // Only loop over the given elements once
4971
+ // If selector is empty, we're already done
4972
+ if ( selector ) {
4973
+ matcher = compile( selector, context, xml );
4974
+ dirruns = matcher.dirruns++;
4975
+
4976
+ if ( elements == null ) {
4977
+ elements = Expr.find["TAG"]( "*", (rsibling.test( selector ) && context.parentNode) || context );
4978
+ }
4979
+ for ( i = 0; (elem = elements[i]); i++ ) {
4980
+ cachedruns = matcher.runs++;
4981
+ if ( matcher(elem, context) ) {
4982
+ results.push( elem );
4983
+ }
4984
+ }
4985
+ }
4986
+
4987
+ return results;
4988
+ };
4989
+
4990
+ if ( document.querySelectorAll ) {
4991
+ (function() {
4992
+ var disconnectedMatch,
4993
+ oldSelect = select,
4994
+ rescape = /'|\\/g,
4995
+ rattributeQuotes = /\=[\x20\t\r\n\f]*([^'"\]]*)[\x20\t\r\n\f]*\]/g,
4996
+ rbuggyQSA = [],
4997
+ // matchesSelector(:active) reports false when true (IE9/Opera 11.5)
4998
+ // A support test would require too much code (would include document ready)
4999
+ // just skip matchesSelector for :active
5000
+ rbuggyMatches = [":active"],
5001
+ matches = docElem.matchesSelector ||
5002
+ docElem.mozMatchesSelector ||
5003
+ docElem.webkitMatchesSelector ||
5004
+ docElem.oMatchesSelector ||
5005
+ docElem.msMatchesSelector;
5006
+
5007
+ // Build QSA regex
5008
+ // Regex strategy adopted from Diego Perini
5009
+ assert(function( div ) {
5010
+ div.innerHTML = "<select><option selected></option></select>";
5011
+
5012
+ // IE8 - Some boolean attributes are not treated correctly
5013
+ if ( !div.querySelectorAll("[selected]").length ) {
5014
+ rbuggyQSA.push( "\\[" + whitespace + "*(?:checked|disabled|ismap|multiple|readonly|selected|value)" );
5015
+ }
5016
+
5017
+ // Webkit/Opera - :checked should return selected option elements
5018
+ // http://www.w3.org/TR/2011/REC-css3-selectors-20110929/#checked
5019
+ // IE8 throws error here (do not put tests after this one)
5020
+ if ( !div.querySelectorAll(":checked").length ) {
5021
+ rbuggyQSA.push(":checked");
5022
+ }
5023
+ });
5024
+
5025
+ assert(function( div ) {
5026
+
5027
+ // Opera 10-12/IE9 - ^= $= *= and empty values
5028
+ // Should not select anything
5029
+ div.innerHTML = "<p test=''></p>";
5030
+ if ( div.querySelectorAll("[test^='']").length ) {
5031
+ rbuggyQSA.push( "[*^$]=" + whitespace + "*(?:\"\"|'')" );
5032
+ }
5033
+
5034
+ // FF 3.5 - :enabled/:disabled and hidden elements (hidden elements are still enabled)
5035
+ // IE8 throws error here (do not put tests after this one)
5036
+ div.innerHTML = "<input type='hidden'>";
5037
+ if ( !div.querySelectorAll(":enabled").length ) {
5038
+ rbuggyQSA.push(":enabled", ":disabled");
5039
+ }
5040
+ });
5041
+
5042
+ rbuggyQSA = rbuggyQSA.length && new RegExp( rbuggyQSA.join("|") );
5043
+
5044
+ select = function( selector, context, results, seed, xml ) {
5045
+ // Only use querySelectorAll when not filtering,
5046
+ // when this is not xml,
5047
+ // and when no QSA bugs apply
5048
+ if ( !seed && !xml && (!rbuggyQSA || !rbuggyQSA.test( selector )) ) {
5049
+ if ( context.nodeType === 9 ) {
5050
+ try {
5051
+ push.apply( results, slice.call(context.querySelectorAll( selector ), 0) );
5052
+ return results;
5053
+ } catch(qsaError) {}
5054
+ // qSA works strangely on Element-rooted queries
5055
+ // We can work around this by specifying an extra ID on the root
5056
+ // and working up from there (Thanks to Andrew Dupont for the technique)
5057
+ // IE 8 doesn't work on object elements
5058
+ } else if ( context.nodeType === 1 && context.nodeName.toLowerCase() !== "object" ) {
5059
+ var old = context.getAttribute("id"),
5060
+ nid = old || expando,
5061
+ newContext = rsibling.test( selector ) && context.parentNode || context;
5062
+
5063
+ if ( old ) {
5064
+ nid = nid.replace( rescape, "\\$&" );
5065
+ } else {
5066
+ context.setAttribute( "id", nid );
5067
+ }
5068
+
5069
+ try {
5070
+ push.apply( results, slice.call( newContext.querySelectorAll(
5071
+ selector.replace( rgroups, "[id='" + nid + "'] $&" )
5072
+ ), 0 ) );
5073
+ return results;
5074
+ } catch(qsaError) {
5075
+ } finally {
5076
+ if ( !old ) {
5077
+ context.removeAttribute("id");
5078
+ }
5079
+ }
5080
+ }
5081
+ }
5082
+
5083
+ return oldSelect( selector, context, results, seed, xml );
5084
+ };
5085
+
5086
+ if ( matches ) {
5087
+ assert(function( div ) {
5088
+ // Check to see if it's possible to do matchesSelector
5089
+ // on a disconnected node (IE 9)
5090
+ disconnectedMatch = matches.call( div, "div" );
5091
+
5092
+ // This should fail with an exception
5093
+ // Gecko does not error, returns false instead
5094
+ try {
5095
+ matches.call( div, "[test!='']:sizzle" );
5096
+ rbuggyMatches.push( Expr.match.PSEUDO );
5097
+ } catch ( e ) {}
5098
+ });
5099
+
5100
+ // rbuggyMatches always contains :active, so no need for a length check
5101
+ rbuggyMatches = /* rbuggyMatches.length && */ new RegExp( rbuggyMatches.join("|") );
5102
+
5103
+ Sizzle.matchesSelector = function( elem, expr ) {
5104
+ // Make sure that attribute selectors are quoted
5105
+ expr = expr.replace( rattributeQuotes, "='$1']" );
5106
+
5107
+ // rbuggyMatches always contains :active, so no need for an existence check
5108
+ if ( !isXML( elem ) && !rbuggyMatches.test( expr ) && (!rbuggyQSA || !rbuggyQSA.test( expr )) ) {
5109
+ try {
5110
+ var ret = matches.call( elem, expr );
5111
+
5112
+ // IE 9's matchesSelector returns false on disconnected nodes
5113
+ if ( ret || disconnectedMatch ||
5114
+ // As well, disconnected nodes are said to be in a document
5115
+ // fragment in IE 9
5116
+ elem.document && elem.document.nodeType !== 11 ) {
5117
+ return ret;
5118
+ }
5119
+ } catch(e) {}
5120
+ }
5121
+
5122
+ return Sizzle( expr, null, null, [ elem ] ).length > 0;
5123
+ };
5124
+ }
5125
+ })();
5126
+ }
5127
+
5128
+ // Override sizzle attribute retrieval
5129
+ Sizzle.attr = jQuery.attr;
5130
+ jQuery.find = Sizzle;
5131
+ jQuery.expr = Sizzle.selectors;
5132
+ jQuery.expr[":"] = jQuery.expr.pseudos;
5133
+ jQuery.unique = Sizzle.uniqueSort;
5134
+ jQuery.text = Sizzle.getText;
5135
+ jQuery.isXMLDoc = Sizzle.isXML;
5136
+ jQuery.contains = Sizzle.contains;
5137
+
5138
+
5139
+ })( window );
5140
+ var runtil = /Until$/,
5141
+ rparentsprev = /^(?:parents|prev(?:Until|All))/,
5142
+ isSimple = /^.[^:#\[\.,]*$/,
5143
+ rneedsContext = jQuery.expr.match.needsContext,
5144
+ // methods guaranteed to produce a unique set when starting from a unique set
5145
+ guaranteedUnique = {
5146
+ children: true,
5147
+ contents: true,
5148
+ next: true,
5149
+ prev: true
5150
+ };
5151
+
5152
+ jQuery.fn.extend({
5153
+ find: function( selector ) {
5154
+ var i, l, length, n, r, ret,
5155
+ self = this;
5156
+
5157
+ if ( typeof selector !== "string" ) {
5158
+ return jQuery( selector ).filter(function() {
5159
+ for ( i = 0, l = self.length; i < l; i++ ) {
5160
+ if ( jQuery.contains( self[ i ], this ) ) {
5161
+ return true;
5162
+ }
5163
+ }
5164
+ });
5165
+ }
5166
+
5167
+ ret = this.pushStack( "", "find", selector );
5168
+
5169
+ for ( i = 0, l = this.length; i < l; i++ ) {
5170
+ length = ret.length;
5171
+ jQuery.find( selector, this[i], ret );
5172
+
5173
+ if ( i > 0 ) {
5174
+ // Make sure that the results are unique
5175
+ for ( n = length; n < ret.length; n++ ) {
5176
+ for ( r = 0; r < length; r++ ) {
5177
+ if ( ret[r] === ret[n] ) {
5178
+ ret.splice(n--, 1);
5179
+ break;
5180
+ }
5181
+ }
5182
+ }
5183
+ }
5184
+ }
5185
+
5186
+ return ret;
5187
+ },
5188
+
5189
+ has: function( target ) {
5190
+ var i,
5191
+ targets = jQuery( target, this ),
5192
+ len = targets.length;
5193
+
5194
+ return this.filter(function() {
5195
+ for ( i = 0; i < len; i++ ) {
5196
+ if ( jQuery.contains( this, targets[i] ) ) {
5197
+ return true;
5198
+ }
5199
+ }
5200
+ });
5201
+ },
5202
+
5203
+ not: function( selector ) {
5204
+ return this.pushStack( winnow(this, selector, false), "not", selector);
5205
+ },
5206
+
5207
+ filter: function( selector ) {
5208
+ return this.pushStack( winnow(this, selector, true), "filter", selector );
5209
+ },
5210
+
5211
+ is: function( selector ) {
5212
+ return !!selector && (
5213
+ typeof selector === "string" ?
5214
+ // If this is a positional/relative selector, check membership in the returned set
5215
+ // so $("p:first").is("p:last") won't return true for a doc with two "p".
5216
+ rneedsContext.test( selector ) ?
5217
+ jQuery( selector, this.context ).index( this[0] ) >= 0 :
5218
+ jQuery.filter( selector, this ).length > 0 :
5219
+ this.filter( selector ).length > 0 );
5220
+ },
5221
+
5222
+ closest: function( selectors, context ) {
5223
+ var cur,
5224
+ i = 0,
5225
+ l = this.length,
5226
+ ret = [],
5227
+ pos = rneedsContext.test( selectors ) || typeof selectors !== "string" ?
5228
+ jQuery( selectors, context || this.context ) :
5229
+ 0;
5230
+
5231
+ for ( ; i < l; i++ ) {
5232
+ cur = this[i];
5233
+
5234
+ while ( cur && cur.ownerDocument && cur !== context && cur.nodeType !== 11 ) {
5235
+ if ( pos ? pos.index(cur) > -1 : jQuery.find.matchesSelector(cur, selectors) ) {
5236
+ ret.push( cur );
5237
+ break;
5238
+ }
5239
+ cur = cur.parentNode;
5240
+ }
5241
+ }
5242
+
5243
+ ret = ret.length > 1 ? jQuery.unique( ret ) : ret;
5244
+
5245
+ return this.pushStack( ret, "closest", selectors );
5246
+ },
5247
+
5248
+ // Determine the position of an element within
5249
+ // the matched set of elements
5250
+ index: function( elem ) {
5251
+
5252
+ // No argument, return index in parent
5253
+ if ( !elem ) {
5254
+ return ( this[0] && this[0].parentNode ) ? this.prevAll().length : -1;
5255
+ }
5256
+
5257
+ // index in selector
5258
+ if ( typeof elem === "string" ) {
5259
+ return jQuery.inArray( this[0], jQuery( elem ) );
5260
+ }
5261
+
5262
+ // Locate the position of the desired element
5263
+ return jQuery.inArray(
5264
+ // If it receives a jQuery object, the first element is used
5265
+ elem.jquery ? elem[0] : elem, this );
5266
+ },
5267
+
5268
+ add: function( selector, context ) {
5269
+ var set = typeof selector === "string" ?
5270
+ jQuery( selector, context ) :
5271
+ jQuery.makeArray( selector && selector.nodeType ? [ selector ] : selector ),
5272
+ all = jQuery.merge( this.get(), set );
5273
+
5274
+ return this.pushStack( isDisconnected( set[0] ) || isDisconnected( all[0] ) ?
5275
+ all :
5276
+ jQuery.unique( all ) );
5277
+ },
5278
+
5279
+ addBack: function( selector ) {
5280
+ return this.add( selector == null ?
5281
+ this.prevObject : this.prevObject.filter(selector)
5282
+ );
5283
+ }
5284
+ });
5285
+
5286
+ jQuery.fn.andSelf = jQuery.fn.addBack;
5287
+
5288
+ // A painfully simple check to see if an element is disconnected
5289
+ // from a document (should be improved, where feasible).
5290
+ function isDisconnected( node ) {
5291
+ return !node || !node.parentNode || node.parentNode.nodeType === 11;
5292
+ }
5293
+
5294
+ function sibling( cur, dir ) {
5295
+ do {
5296
+ cur = cur[ dir ];
5297
+ } while ( cur && cur.nodeType !== 1 );
5298
+
5299
+ return cur;
5300
+ }
5301
+
5302
+ jQuery.each({
5303
+ parent: function( elem ) {
5304
+ var parent = elem.parentNode;
5305
+ return parent && parent.nodeType !== 11 ? parent : null;
5306
+ },
5307
+ parents: function( elem ) {
5308
+ return jQuery.dir( elem, "parentNode" );
5309
+ },
5310
+ parentsUntil: function( elem, i, until ) {
5311
+ return jQuery.dir( elem, "parentNode", until );
5312
+ },
5313
+ next: function( elem ) {
5314
+ return sibling( elem, "nextSibling" );
5315
+ },
5316
+ prev: function( elem ) {
5317
+ return sibling( elem, "previousSibling" );
5318
+ },
5319
+ nextAll: function( elem ) {
5320
+ return jQuery.dir( elem, "nextSibling" );
5321
+ },
5322
+ prevAll: function( elem ) {
5323
+ return jQuery.dir( elem, "previousSibling" );
5324
+ },
5325
+ nextUntil: function( elem, i, until ) {
5326
+ return jQuery.dir( elem, "nextSibling", until );
5327
+ },
5328
+ prevUntil: function( elem, i, until ) {
5329
+ return jQuery.dir( elem, "previousSibling", until );
5330
+ },
5331
+ siblings: function( elem ) {
5332
+ return jQuery.sibling( ( elem.parentNode || {} ).firstChild, elem );
5333
+ },
5334
+ children: function( elem ) {
5335
+ return jQuery.sibling( elem.firstChild );
5336
+ },
5337
+ contents: function( elem ) {
5338
+ return jQuery.nodeName( elem, "iframe" ) ?
5339
+ elem.contentDocument || elem.contentWindow.document :
5340
+ jQuery.merge( [], elem.childNodes );
5341
+ }
5342
+ }, function( name, fn ) {
5343
+ jQuery.fn[ name ] = function( until, selector ) {
5344
+ var ret = jQuery.map( this, fn, until );
5345
+
5346
+ if ( !runtil.test( name ) ) {
5347
+ selector = until;
5348
+ }
5349
+
5350
+ if ( selector && typeof selector === "string" ) {
5351
+ ret = jQuery.filter( selector, ret );
5352
+ }
5353
+
5354
+ ret = this.length > 1 && !guaranteedUnique[ name ] ? jQuery.unique( ret ) : ret;
5355
+
5356
+ if ( this.length > 1 && rparentsprev.test( name ) ) {
5357
+ ret = ret.reverse();
5358
+ }
5359
+
5360
+ return this.pushStack( ret, name, core_slice.call( arguments ).join(",") );
5361
+ };
5362
+ });
5363
+
5364
+ jQuery.extend({
5365
+ filter: function( expr, elems, not ) {
5366
+ if ( not ) {
5367
+ expr = ":not(" + expr + ")";
5368
+ }
5369
+
5370
+ return elems.length === 1 ?
5371
+ jQuery.find.matchesSelector(elems[0], expr) ? [ elems[0] ] : [] :
5372
+ jQuery.find.matches(expr, elems);
5373
+ },
5374
+
5375
+ dir: function( elem, dir, until ) {
5376
+ var matched = [],
5377
+ cur = elem[ dir ];
5378
+
5379
+ while ( cur && cur.nodeType !== 9 && (until === undefined || cur.nodeType !== 1 || !jQuery( cur ).is( until )) ) {
5380
+ if ( cur.nodeType === 1 ) {
5381
+ matched.push( cur );
5382
+ }
5383
+ cur = cur[dir];
5384
+ }
5385
+ return matched;
5386
+ },
5387
+
5388
+ sibling: function( n, elem ) {
5389
+ var r = [];
5390
+
5391
+ for ( ; n; n = n.nextSibling ) {
5392
+ if ( n.nodeType === 1 && n !== elem ) {
5393
+ r.push( n );
5394
+ }
5395
+ }
5396
+
5397
+ return r;
5398
+ }
5399
+ });
5400
+
5401
+ // Implement the identical functionality for filter and not
5402
+ function winnow( elements, qualifier, keep ) {
5403
+
5404
+ // Can't pass null or undefined to indexOf in Firefox 4
5405
+ // Set to 0 to skip string check
5406
+ qualifier = qualifier || 0;
5407
+
5408
+ if ( jQuery.isFunction( qualifier ) ) {
5409
+ return jQuery.grep(elements, function( elem, i ) {
5410
+ var retVal = !!qualifier.call( elem, i, elem );
5411
+ return retVal === keep;
5412
+ });
5413
+
5414
+ } else if ( qualifier.nodeType ) {
5415
+ return jQuery.grep(elements, function( elem, i ) {
5416
+ return ( elem === qualifier ) === keep;
5417
+ });
5418
+
5419
+ } else if ( typeof qualifier === "string" ) {
5420
+ var filtered = jQuery.grep(elements, function( elem ) {
5421
+ return elem.nodeType === 1;
5422
+ });
5423
+
5424
+ if ( isSimple.test( qualifier ) ) {
5425
+ return jQuery.filter(qualifier, filtered, !keep);
5426
+ } else {
5427
+ qualifier = jQuery.filter( qualifier, filtered );
5428
+ }
5429
+ }
5430
+
5431
+ return jQuery.grep(elements, function( elem, i ) {
5432
+ return ( jQuery.inArray( elem, qualifier ) >= 0 ) === keep;
5433
+ });
5434
+ }
5435
+ function createSafeFragment( document ) {
5436
+ var list = nodeNames.split( "|" ),
5437
+ safeFrag = document.createDocumentFragment();
5438
+
5439
+ if ( safeFrag.createElement ) {
5440
+ while ( list.length ) {
5441
+ safeFrag.createElement(
5442
+ list.pop()
5443
+ );
5444
+ }
5445
+ }
5446
+ return safeFrag;
5447
+ }
5448
+
5449
+ var nodeNames = "abbr|article|aside|audio|bdi|canvas|data|datalist|details|figcaption|figure|footer|" +
5450
+ "header|hgroup|mark|meter|nav|output|progress|section|summary|time|video",
5451
+ rinlinejQuery = / sQuery\d+="(?:null|\d+)"/g,
5452
+ rleadingWhitespace = /^\s+/,
5453
+ rxhtmlTag = /<(?!area|br|col|embed|hr|img|input|link|meta|param)(([\w:]+)[^>]*)\/>/gi,
5454
+ rtagName = /<([\w:]+)/,
5455
+ rtbody = /<tbody/i,
5456
+ rhtml = /<|&#?\w+;/,
5457
+ rnoInnerhtml = /<(?:script|style|link)/i,
5458
+ rnocache = /<(?:script|object|embed|option|style)/i,
5459
+ rnoshimcache = new RegExp("<(?:" + nodeNames + ")[\\s/>]", "i"),
5460
+ rcheckableType = /^(?:checkbox|radio)$/,
5461
+ // checked="checked" or checked
5462
+ rchecked = /checked\s*(?:[^=]|=\s*.checked.)/i,
5463
+ rscriptType = /\/(java|ecma)script/i,
5464
+ rcleanScript = /^\s*<!(?:\[CDATA\[|\-\-)|[\]\-]{2}>\s*$/g,
5465
+ wrapMap = {
5466
+ option: [ 1, "<select multiple='multiple'>", "</select>" ],
5467
+ legend: [ 1, "<fieldset>", "</fieldset>" ],
5468
+ thead: [ 1, "<table>", "</table>" ],
5469
+ tr: [ 2, "<table><tbody>", "</tbody></table>" ],
5470
+ td: [ 3, "<table><tbody><tr>", "</tr></tbody></table>" ],
5471
+ col: [ 2, "<table><tbody></tbody><colgroup>", "</colgroup></table>" ],
5472
+ area: [ 1, "<map>", "</map>" ],
5473
+ _default: [ 0, "", "" ]
5474
+ },
5475
+ safeFragment = createSafeFragment( document ),
5476
+ fragmentDiv = safeFragment.appendChild( document.createElement("div") );
5477
+
5478
+ wrapMap.optgroup = wrapMap.option;
5479
+ wrapMap.tbody = wrapMap.tfoot = wrapMap.colgroup = wrapMap.caption = wrapMap.thead;
5480
+ wrapMap.th = wrapMap.td;
5481
+
5482
+ // IE6-8 can't serialize link, script, style, or any html5 (NoScope) tags,
5483
+ // unless wrapped in a div with non-breaking characters in front of it.
5484
+ if ( !jQuery.support.htmlSerialize ) {
5485
+ wrapMap._default = [ 1, "X<div>", "</div>" ];
5486
+ }
5487
+
5488
+ jQuery.fn.extend({
5489
+ text: function( value ) {
5490
+ return jQuery.access( this, function( value ) {
5491
+ return value === undefined ?
5492
+ jQuery.text( this ) :
5493
+ this.empty().append( ( this[0] && this[0].ownerDocument || document ).createTextNode( value ) );
5494
+ }, null, value, arguments.length );
5495
+ },
5496
+
5497
+ wrapAll: function( html ) {
5498
+ if ( jQuery.isFunction( html ) ) {
5499
+ return this.each(function(i) {
5500
+ jQuery(this).wrapAll( html.call(this, i) );
5501
+ });
5502
+ }
5503
+
5504
+ if ( this[0] ) {
5505
+ // The elements to wrap the target around
5506
+ var wrap = jQuery( html, this[0].ownerDocument ).eq(0).clone(true);
5507
+
5508
+ if ( this[0].parentNode ) {
5509
+ wrap.insertBefore( this[0] );
5510
+ }
5511
+
5512
+ wrap.map(function() {
5513
+ var elem = this;
5514
+
5515
+ while ( elem.firstChild && elem.firstChild.nodeType === 1 ) {
5516
+ elem = elem.firstChild;
5517
+ }
5518
+
5519
+ return elem;
5520
+ }).append( this );
5521
+ }
5522
+
5523
+ return this;
5524
+ },
5525
+
5526
+ wrapInner: function( html ) {
5527
+ if ( jQuery.isFunction( html ) ) {
5528
+ return this.each(function(i) {
5529
+ jQuery(this).wrapInner( html.call(this, i) );
5530
+ });
5531
+ }
5532
+
5533
+ return this.each(function() {
5534
+ var self = jQuery( this ),
5535
+ contents = self.contents();
5536
+
5537
+ if ( contents.length ) {
5538
+ contents.wrapAll( html );
5539
+
5540
+ } else {
5541
+ self.append( html );
5542
+ }
5543
+ });
5544
+ },
5545
+
5546
+ wrap: function( html ) {
5547
+ var isFunction = jQuery.isFunction( html );
5548
+
5549
+ return this.each(function(i) {
5550
+ jQuery( this ).wrapAll( isFunction ? html.call(this, i) : html );
5551
+ });
5552
+ },
5553
+
5554
+ unwrap: function() {
5555
+ return this.parent().each(function() {
5556
+ if ( !jQuery.nodeName( this, "body" ) ) {
5557
+ jQuery( this ).replaceWith( this.childNodes );
5558
+ }
5559
+ }).end();
5560
+ },
5561
+
5562
+ append: function() {
5563
+ return this.domManip(arguments, true, function( elem ) {
5564
+ if ( this.nodeType === 1 || this.nodeType === 11 ) {
5565
+ this.appendChild( elem );
5566
+ }
5567
+ });
5568
+ },
5569
+
5570
+ prepend: function() {
5571
+ return this.domManip(arguments, true, function( elem ) {
5572
+ if ( this.nodeType === 1 || this.nodeType === 11 ) {
5573
+ this.insertBefore( elem, this.firstChild );
5574
+ }
5575
+ });
5576
+ },
5577
+
5578
+ before: function() {
5579
+ if ( !isDisconnected( this[0] ) ) {
5580
+ return this.domManip(arguments, false, function( elem ) {
5581
+ this.parentNode.insertBefore( elem, this );
5582
+ });
5583
+ }
5584
+
5585
+ if ( arguments.length ) {
5586
+ var set = jQuery.clean( arguments );
5587
+ return this.pushStack( jQuery.merge( set, this ), "before", this.selector );
5588
+ }
5589
+ },
5590
+
5591
+ after: function() {
5592
+ if ( !isDisconnected( this[0] ) ) {
5593
+ return this.domManip(arguments, false, function( elem ) {
5594
+ this.parentNode.insertBefore( elem, this.nextSibling );
5595
+ });
5596
+ }
5597
+
5598
+ if ( arguments.length ) {
5599
+ var set = jQuery.clean( arguments );
5600
+ return this.pushStack( jQuery.merge( this, set ), "after", this.selector );
5601
+ }
5602
+ },
5603
+
5604
+ // keepData is for internal use only--do not document
5605
+ remove: function( selector, keepData ) {
5606
+ var elem,
5607
+ i = 0;
5608
+
5609
+ for ( ; (elem = this[i]) != null; i++ ) {
5610
+ if ( !selector || jQuery.filter( selector, [ elem ] ).length ) {
5611
+ if ( !keepData && elem.nodeType === 1 ) {
5612
+ jQuery.cleanData( elem.getElementsByTagName("*") );
5613
+ jQuery.cleanData( [ elem ] );
5614
+ }
5615
+
5616
+ if ( elem.parentNode ) {
5617
+ elem.parentNode.removeChild( elem );
5618
+ }
5619
+ }
5620
+ }
5621
+
5622
+ return this;
5623
+ },
5624
+
5625
+ empty: function() {
5626
+ var elem,
5627
+ i = 0;
5628
+
5629
+ for ( ; (elem = this[i]) != null; i++ ) {
5630
+ // Remove element nodes and prevent memory leaks
5631
+ if ( elem.nodeType === 1 ) {
5632
+ jQuery.cleanData( elem.getElementsByTagName("*") );
5633
+ }
5634
+
5635
+ // Remove any remaining nodes
5636
+ while ( elem.firstChild ) {
5637
+ elem.removeChild( elem.firstChild );
5638
+ }
5639
+ }
5640
+
5641
+ return this;
5642
+ },
5643
+
5644
+ clone: function( dataAndEvents, deepDataAndEvents ) {
5645
+ dataAndEvents = dataAndEvents == null ? false : dataAndEvents;
5646
+ deepDataAndEvents = deepDataAndEvents == null ? dataAndEvents : deepDataAndEvents;
5647
+
5648
+ return this.map( function () {
5649
+ return jQuery.clone( this, dataAndEvents, deepDataAndEvents );
5650
+ });
5651
+ },
5652
+
5653
+ html: function( value ) {
5654
+ return jQuery.access( this, function( value ) {
5655
+ var elem = this[0] || {},
5656
+ i = 0,
5657
+ l = this.length;
5658
+
5659
+ if ( value === undefined ) {
5660
+ return elem.nodeType === 1 ?
5661
+ elem.innerHTML.replace( rinlinejQuery, "" ) :
5662
+ undefined;
5663
+ }
5664
+
5665
+ // See if we can take a shortcut and just use innerHTML
5666
+ if ( typeof value === "string" && !rnoInnerhtml.test( value ) &&
5667
+ ( jQuery.support.htmlSerialize || !rnoshimcache.test( value ) ) &&
5668
+ ( jQuery.support.leadingWhitespace || !rleadingWhitespace.test( value ) ) &&
5669
+ !wrapMap[ ( rtagName.exec( value ) || ["", ""] )[1].toLowerCase() ] ) {
5670
+
5671
+ value = value.replace( rxhtmlTag, "<$1></$2>" );
5672
+
5673
+ try {
5674
+ for (; i < l; i++ ) {
5675
+ // Remove element nodes and prevent memory leaks
5676
+ elem = this[i] || {};
5677
+ if ( elem.nodeType === 1 ) {
5678
+ jQuery.cleanData( elem.getElementsByTagName( "*" ) );
5679
+ elem.innerHTML = value;
5680
+ }
5681
+ }
5682
+
5683
+ elem = 0;
5684
+
5685
+ // If using innerHTML throws an exception, use the fallback method
5686
+ } catch(e) {}
5687
+ }
5688
+
5689
+ if ( elem ) {
5690
+ this.empty().append( value );
5691
+ }
5692
+ }, null, value, arguments.length );
5693
+ },
5694
+
5695
+ replaceWith: function( value ) {
5696
+ if ( !isDisconnected( this[0] ) ) {
5697
+ // Make sure that the elements are removed from the DOM before they are inserted
5698
+ // this can help fix replacing a parent with child elements
5699
+ if ( jQuery.isFunction( value ) ) {
5700
+ return this.each(function(i) {
5701
+ var self = jQuery(this), old = self.html();
5702
+ self.replaceWith( value.call( this, i, old ) );
5703
+ });
5704
+ }
5705
+
5706
+ if ( typeof value !== "string" ) {
5707
+ value = jQuery( value ).detach();
5708
+ }
5709
+
5710
+ return this.each(function() {
5711
+ var next = this.nextSibling,
5712
+ parent = this.parentNode;
5713
+
5714
+ jQuery( this ).remove();
5715
+
5716
+ if ( next ) {
5717
+ jQuery(next).before( value );
5718
+ } else {
5719
+ jQuery(parent).append( value );
5720
+ }
5721
+ });
5722
+ }
5723
+
5724
+ return this.length ?
5725
+ this.pushStack( jQuery(jQuery.isFunction(value) ? value() : value), "replaceWith", value ) :
5726
+ this;
5727
+ },
5728
+
5729
+ detach: function( selector ) {
5730
+ return this.remove( selector, true );
5731
+ },
5732
+
5733
+ domManip: function( args, table, callback ) {
5734
+
5735
+ // Flatten any nested arrays
5736
+ args = [].concat.apply( [], args );
5737
+
5738
+ var results, first, fragment, iNoClone,
5739
+ i = 0,
5740
+ value = args[0],
5741
+ scripts = [],
5742
+ l = this.length;
5743
+
5744
+ // We can't cloneNode fragments that contain checked, in WebKit
5745
+ if ( !jQuery.support.checkClone && l > 1 && typeof value === "string" && rchecked.test( value ) ) {
5746
+ return this.each(function() {
5747
+ jQuery(this).domManip( args, table, callback );
5748
+ });
5749
+ }
5750
+
5751
+ if ( jQuery.isFunction(value) ) {
5752
+ return this.each(function(i) {
5753
+ var self = jQuery(this);
5754
+ args[0] = value.call( this, i, table ? self.html() : undefined );
5755
+ self.domManip( args, table, callback );
5756
+ });
5757
+ }
5758
+
5759
+ if ( this[0] ) {
5760
+ results = jQuery.buildFragment( args, this, scripts );
5761
+ fragment = results.fragment;
5762
+ first = fragment.firstChild;
5763
+
5764
+ if ( fragment.childNodes.length === 1 ) {
5765
+ fragment = first;
5766
+ }
5767
+
5768
+ if ( first ) {
5769
+ table = table && jQuery.nodeName( first, "tr" );
5770
+
5771
+ // Use the original fragment for the last item instead of the first because it can end up
5772
+ // being emptied incorrectly in certain situations (#8070).
5773
+ // Fragments from the fragment cache must always be cloned and never used in place.
5774
+ for ( iNoClone = results.cacheable || l - 1; i < l; i++ ) {
5775
+ callback.call(
5776
+ table && jQuery.nodeName( this[i], "table" ) ?
5777
+ findOrAppend( this[i], "tbody" ) :
5778
+ this[i],
5779
+ i === iNoClone ?
5780
+ fragment :
5781
+ jQuery.clone( fragment, true, true )
5782
+ );
5783
+ }
5784
+ }
5785
+
5786
+ // Fix #11809: Avoid leaking memory
5787
+ fragment = first = null;
5788
+
5789
+ if ( scripts.length ) {
5790
+ jQuery.each( scripts, function( i, elem ) {
5791
+ if ( elem.src ) {
5792
+ if ( jQuery.ajax ) {
5793
+ jQuery.ajax({
5794
+ url: elem.src,
5795
+ type: "GET",
5796
+ dataType: "script",
5797
+ async: false,
5798
+ global: false,
5799
+ "throws": true
5800
+ });
5801
+ } else {
5802
+ jQuery.error("no ajax");
5803
+ }
5804
+ } else {
5805
+ jQuery.globalEval( ( elem.text || elem.textContent || elem.innerHTML || "" ).replace( rcleanScript, "" ) );
5806
+ }
5807
+
5808
+ if ( elem.parentNode ) {
5809
+ elem.parentNode.removeChild( elem );
5810
+ }
5811
+ });
5812
+ }
5813
+ }
5814
+
5815
+ return this;
5816
+ }
5817
+ });
5818
+
5819
+ function findOrAppend( elem, tag ) {
5820
+ return elem.getElementsByTagName( tag )[0] || elem.appendChild( elem.ownerDocument.createElement( tag ) );
5821
+ }
5822
+
5823
+ function cloneCopyEvent( src, dest ) {
5824
+
5825
+ if ( dest.nodeType !== 1 || !jQuery.hasData( src ) ) {
5826
+ return;
5827
+ }
5828
+
5829
+ var type, i, l,
5830
+ oldData = jQuery._data( src ),
5831
+ curData = jQuery._data( dest, oldData ),
5832
+ events = oldData.events;
5833
+
5834
+ if ( events ) {
5835
+ delete curData.handle;
5836
+ curData.events = {};
5837
+
5838
+ for ( type in events ) {
5839
+ for ( i = 0, l = events[ type ].length; i < l; i++ ) {
5840
+ jQuery.event.add( dest, type, events[ type ][ i ] );
5841
+ }
5842
+ }
5843
+ }
5844
+
5845
+ // make the cloned public data object a copy from the original
5846
+ if ( curData.data ) {
5847
+ curData.data = jQuery.extend( {}, curData.data );
5848
+ }
5849
+ }
5850
+
5851
+ function cloneFixAttributes( src, dest ) {
5852
+ var nodeName;
5853
+
5854
+ // We do not need to do anything for non-Elements
5855
+ if ( dest.nodeType !== 1 ) {
5856
+ return;
5857
+ }
5858
+
5859
+ // clearAttributes removes the attributes, which we don't want,
5860
+ // but also removes the attachEvent events, which we *do* want
5861
+ if ( dest.clearAttributes ) {
5862
+ dest.clearAttributes();
5863
+ }
5864
+
5865
+ // mergeAttributes, in contrast, only merges back on the
5866
+ // original attributes, not the events
5867
+ if ( dest.mergeAttributes ) {
5868
+ dest.mergeAttributes( src );
5869
+ }
5870
+
5871
+ nodeName = dest.nodeName.toLowerCase();
5872
+
5873
+ if ( nodeName === "object" ) {
5874
+ // IE6-10 improperly clones children of object elements using classid.
5875
+ // IE10 throws NoModificationAllowedError if parent is null, #12132.
5876
+ if ( dest.parentNode ) {
5877
+ dest.outerHTML = src.outerHTML;
5878
+ }
5879
+
5880
+ // This path appears unavoidable for IE9. When cloning an object
5881
+ // element in IE9, the outerHTML strategy above is not sufficient.
5882
+ // If the src has innerHTML and the destination does not,
5883
+ // copy the src.innerHTML into the dest.innerHTML. #10324
5884
+ if ( jQuery.support.html5Clone && (src.innerHTML && !jQuery.trim(dest.innerHTML)) ) {
5885
+ dest.innerHTML = src.innerHTML;
5886
+ }
5887
+
5888
+ } else if ( nodeName === "input" && rcheckableType.test( src.type ) ) {
5889
+ // IE6-8 fails to persist the checked state of a cloned checkbox
5890
+ // or radio button. Worse, IE6-7 fail to give the cloned element
5891
+ // a checked appearance if the defaultChecked value isn't also set
5892
+
5893
+ dest.defaultChecked = dest.checked = src.checked;
5894
+
5895
+ // IE6-7 get confused and end up setting the value of a cloned
5896
+ // checkbox/radio button to an empty string instead of "on"
5897
+ if ( dest.value !== src.value ) {
5898
+ dest.value = src.value;
5899
+ }
5900
+
5901
+ // IE6-8 fails to return the selected option to the default selected
5902
+ // state when cloning options
5903
+ } else if ( nodeName === "option" ) {
5904
+ dest.selected = src.defaultSelected;
5905
+
5906
+ // IE6-8 fails to set the defaultValue to the correct value when
5907
+ // cloning other types of input fields
5908
+ } else if ( nodeName === "input" || nodeName === "textarea" ) {
5909
+ dest.defaultValue = src.defaultValue;
5910
+
5911
+ // IE blanks contents when cloning scripts
5912
+ } else if ( nodeName === "script" && dest.text !== src.text ) {
5913
+ dest.text = src.text;
5914
+ }
5915
+
5916
+ // Event data gets referenced instead of copied if the expando
5917
+ // gets copied too
5918
+ dest.removeAttribute( jQuery.expando );
5919
+ }
5920
+
5921
+ jQuery.buildFragment = function( args, context, scripts ) {
5922
+ var fragment, cacheable, cachehit,
5923
+ first = args[ 0 ];
5924
+
5925
+ // Set context from what may come in as undefined or a jQuery collection or a node
5926
+ context = context || document;
5927
+ context = (context[0] || context).ownerDocument || context[0] || context;
5928
+
5929
+ // Ensure that an attr object doesn't incorrectly stand in as a document object
5930
+ // Chrome and Firefox seem to allow this to occur and will throw exception
5931
+ // Fixes #8950
5932
+ if ( typeof context.createDocumentFragment === "undefined" ) {
5933
+ context = document;
5934
+ }
5935
+
5936
+ // Only cache "small" (1/2 KB) HTML strings that are associated with the main document
5937
+ // Cloning options loses the selected state, so don't cache them
5938
+ // IE 6 doesn't like it when you put <object> or <embed> elements in a fragment
5939
+ // Also, WebKit does not clone 'checked' attributes on cloneNode, so don't cache
5940
+ // Lastly, IE6,7,8 will not correctly reuse cached fragments that were created from unknown elems #10501
5941
+ if ( args.length === 1 && typeof first === "string" && first.length < 512 && context === document &&
5942
+ first.charAt(0) === "<" && !rnocache.test( first ) &&
5943
+ (jQuery.support.checkClone || !rchecked.test( first )) &&
5944
+ (jQuery.support.html5Clone || !rnoshimcache.test( first )) ) {
5945
+
5946
+ // Mark cacheable and look for a hit
5947
+ cacheable = true;
5948
+ fragment = jQuery.fragments[ first ];
5949
+ cachehit = fragment !== undefined;
5950
+ }
5951
+
5952
+ if ( !fragment ) {
5953
+ fragment = context.createDocumentFragment();
5954
+ jQuery.clean( args, context, fragment, scripts );
5955
+
5956
+ // Update the cache, but only store false
5957
+ // unless this is a second parsing of the same content
5958
+ if ( cacheable ) {
5959
+ jQuery.fragments[ first ] = cachehit && fragment;
5960
+ }
5961
+ }
5962
+
5963
+ return { fragment: fragment, cacheable: cacheable };
5964
+ };
5965
+
5966
+ jQuery.fragments = {};
5967
+
5968
+ jQuery.each({
5969
+ appendTo: "append",
5970
+ prependTo: "prepend",
5971
+ insertBefore: "before",
5972
+ insertAfter: "after",
5973
+ replaceAll: "replaceWith"
5974
+ }, function( name, original ) {
5975
+ jQuery.fn[ name ] = function( selector ) {
5976
+ var elems,
5977
+ i = 0,
5978
+ ret = [],
5979
+ insert = jQuery( selector ),
5980
+ l = insert.length,
5981
+ parent = this.length === 1 && this[0].parentNode;
5982
+
5983
+ if ( (parent == null || parent && parent.nodeType === 11 && parent.childNodes.length === 1) && l === 1 ) {
5984
+ insert[ original ]( this[0] );
5985
+ return this;
5986
+ } else {
5987
+ for ( ; i < l; i++ ) {
5988
+ elems = ( i > 0 ? this.clone(true) : this ).get();
5989
+ jQuery( insert[i] )[ original ]( elems );
5990
+ ret = ret.concat( elems );
5991
+ }
5992
+
5993
+ return this.pushStack( ret, name, insert.selector );
5994
+ }
5995
+ };
5996
+ });
5997
+
5998
+ function getAll( elem ) {
5999
+ if ( typeof elem.getElementsByTagName !== "undefined" ) {
6000
+ return elem.getElementsByTagName( "*" );
6001
+
6002
+ } else if ( typeof elem.querySelectorAll !== "undefined" ) {
6003
+ return elem.querySelectorAll( "*" );
6004
+
6005
+ } else {
6006
+ return [];
6007
+ }
6008
+ }
6009
+
6010
+ // Used in clean, fixes the defaultChecked property
6011
+ function fixDefaultChecked( elem ) {
6012
+ if ( rcheckableType.test( elem.type ) ) {
6013
+ elem.defaultChecked = elem.checked;
6014
+ }
6015
+ }
6016
+
6017
+ jQuery.extend({
6018
+ clone: function( elem, dataAndEvents, deepDataAndEvents ) {
6019
+ var srcElements,
6020
+ destElements,
6021
+ i,
6022
+ clone;
6023
+
6024
+ if ( jQuery.support.html5Clone || jQuery.isXMLDoc(elem) || !rnoshimcache.test( "<" + elem.nodeName + ">" ) ) {
6025
+ clone = elem.cloneNode( true );
6026
+
6027
+ // IE<=8 does not properly clone detached, unknown element nodes
6028
+ } else {
6029
+ fragmentDiv.innerHTML = elem.outerHTML;
6030
+ fragmentDiv.removeChild( clone = fragmentDiv.firstChild );
6031
+ }
6032
+
6033
+ if ( (!jQuery.support.noCloneEvent || !jQuery.support.noCloneChecked) &&
6034
+ (elem.nodeType === 1 || elem.nodeType === 11) && !jQuery.isXMLDoc(elem) ) {
6035
+ // IE copies events bound via attachEvent when using cloneNode.
6036
+ // Calling detachEvent on the clone will also remove the events
6037
+ // from the original. In order to get around this, we use some
6038
+ // proprietary methods to clear the events. Thanks to MooTools
6039
+ // guys for this hotness.
6040
+
6041
+ cloneFixAttributes( elem, clone );
6042
+
6043
+ // Using Sizzle here is crazy slow, so we use getElementsByTagName instead
6044
+ srcElements = getAll( elem );
6045
+ destElements = getAll( clone );
6046
+
6047
+ // Weird iteration because IE will replace the length property
6048
+ // with an element if you are cloning the body and one of the
6049
+ // elements on the page has a name or id of "length"
6050
+ for ( i = 0; srcElements[i]; ++i ) {
6051
+ // Ensure that the destination node is not null; Fixes #9587
6052
+ if ( destElements[i] ) {
6053
+ cloneFixAttributes( srcElements[i], destElements[i] );
6054
+ }
6055
+ }
6056
+ }
6057
+
6058
+ // Copy the events from the original to the clone
6059
+ if ( dataAndEvents ) {
6060
+ cloneCopyEvent( elem, clone );
6061
+
6062
+ if ( deepDataAndEvents ) {
6063
+ srcElements = getAll( elem );
6064
+ destElements = getAll( clone );
6065
+
6066
+ for ( i = 0; srcElements[i]; ++i ) {
6067
+ cloneCopyEvent( srcElements[i], destElements[i] );
6068
+ }
6069
+ }
6070
+ }
6071
+
6072
+ srcElements = destElements = null;
6073
+
6074
+ // Return the cloned set
6075
+ return clone;
6076
+ },
6077
+
6078
+ clean: function( elems, context, fragment, scripts ) {
6079
+ var j, safe, elem, tag, wrap, depth, div, hasBody, tbody, len, handleScript, jsTags,
6080
+ i = 0,
6081
+ ret = [];
6082
+
6083
+ // Ensure that context is a document
6084
+ if ( !context || typeof context.createDocumentFragment === "undefined" ) {
6085
+ context = document;
6086
+ }
6087
+
6088
+ // Use the already-created safe fragment if context permits
6089
+ for ( safe = context === document && safeFragment; (elem = elems[i]) != null; i++ ) {
6090
+ if ( typeof elem === "number" ) {
6091
+ elem += "";
6092
+ }
6093
+
6094
+ if ( !elem ) {
6095
+ continue;
6096
+ }
6097
+
6098
+ // Convert html string into DOM nodes
6099
+ if ( typeof elem === "string" ) {
6100
+ if ( !rhtml.test( elem ) ) {
6101
+ elem = context.createTextNode( elem );
6102
+ } else {
6103
+ // Ensure a safe container in which to render the html
6104
+ safe = safe || createSafeFragment( context );
6105
+ div = div || safe.appendChild( context.createElement("div") );
6106
+
6107
+ // Fix "XHTML"-style tags in all browsers
6108
+ elem = elem.replace(rxhtmlTag, "<$1></$2>");
6109
+
6110
+ // Go to html and back, then peel off extra wrappers
6111
+ tag = ( rtagName.exec( elem ) || ["", ""] )[1].toLowerCase();
6112
+ wrap = wrapMap[ tag ] || wrapMap._default;
6113
+ depth = wrap[0];
6114
+ div.innerHTML = wrap[1] + elem + wrap[2];
6115
+
6116
+ // Move to the right depth
6117
+ while ( depth-- ) {
6118
+ div = div.lastChild;
6119
+ }
6120
+
6121
+ // Remove IE's autoinserted <tbody> from table fragments
6122
+ if ( !jQuery.support.tbody ) {
6123
+
6124
+ // String was a <table>, *may* have spurious <tbody>
6125
+ hasBody = rtbody.test(elem);
6126
+ tbody = tag === "table" && !hasBody ?
6127
+ div.firstChild && div.firstChild.childNodes :
6128
+
6129
+ // String was a bare <thead> or <tfoot>
6130
+ wrap[1] === "<table>" && !hasBody ?
6131
+ div.childNodes :
6132
+ [];
6133
+
6134
+ for ( j = tbody.length - 1; j >= 0 ; --j ) {
6135
+ if ( jQuery.nodeName( tbody[ j ], "tbody" ) && !tbody[ j ].childNodes.length ) {
6136
+ tbody[ j ].parentNode.removeChild( tbody[ j ] );
6137
+ }
6138
+ }
6139
+ }
6140
+
6141
+ // IE completely kills leading whitespace when innerHTML is used
6142
+ if ( !jQuery.support.leadingWhitespace && rleadingWhitespace.test( elem ) ) {
6143
+ div.insertBefore( context.createTextNode( rleadingWhitespace.exec(elem)[0] ), div.firstChild );
6144
+ }
6145
+
6146
+ elem = div.childNodes;
6147
+
6148
+ // Remember the top-level container for proper cleanup
6149
+ div = safe.lastChild;
6150
+ }
6151
+ }
6152
+
6153
+ if ( elem.nodeType ) {
6154
+ ret.push( elem );
6155
+ } else {
6156
+ ret = jQuery.merge( ret, elem );
6157
+ }
6158
+ }
6159
+
6160
+ // Fix #11356: Clear elements from safeFragment
6161
+ if ( div ) {
6162
+ safe.removeChild( div );
6163
+ elem = div = safe = null;
6164
+ }
6165
+
6166
+ // Reset defaultChecked for any radios and checkboxes
6167
+ // about to be appended to the DOM in IE 6/7 (#8060)
6168
+ if ( !jQuery.support.appendChecked ) {
6169
+ for ( i = 0; (elem = ret[i]) != null; i++ ) {
6170
+ if ( jQuery.nodeName( elem, "input" ) ) {
6171
+ fixDefaultChecked( elem );
6172
+ } else if ( typeof elem.getElementsByTagName !== "undefined" ) {
6173
+ jQuery.grep( elem.getElementsByTagName("input"), fixDefaultChecked );
6174
+ }
6175
+ }
6176
+ }
6177
+
6178
+ // Append elements to a provided document fragment
6179
+ if ( fragment ) {
6180
+ // Special handling of each script element
6181
+ handleScript = function( elem ) {
6182
+ // Check if we consider it executable
6183
+ if ( !elem.type || rscriptType.test( elem.type ) ) {
6184
+ // Detach the script and store it in the scripts array (if provided) or the fragment
6185
+ // Return truthy to indicate that it has been handled
6186
+ return scripts ?
6187
+ scripts.push( elem.parentNode ? elem.parentNode.removeChild( elem ) : elem ) :
6188
+ fragment.appendChild( elem );
6189
+ }
6190
+ };
6191
+
6192
+ for ( i = 0; (elem = ret[i]) != null; i++ ) {
6193
+ // Check if we're done after handling an executable script
6194
+ if ( !( jQuery.nodeName( elem, "script" ) && handleScript( elem ) ) ) {
6195
+ // Append to fragment and handle embedded scripts
6196
+ fragment.appendChild( elem );
6197
+ if ( typeof elem.getElementsByTagName !== "undefined" ) {
6198
+ // handleScript alters the DOM, so use jQuery.merge to ensure snapshot iteration
6199
+ jsTags = jQuery.grep( jQuery.merge( [], elem.getElementsByTagName("script") ), handleScript );
6200
+
6201
+ // Splice the scripts into ret after their former ancestor and advance our index beyond them
6202
+ ret.splice.apply( ret, [i + 1, 0].concat( jsTags ) );
6203
+ i += jsTags.length;
6204
+ }
6205
+ }
6206
+ }
6207
+ }
6208
+
6209
+ return ret;
6210
+ },
6211
+
6212
+ cleanData: function( elems, /* internal */ acceptData ) {
6213
+ var data, id, elem, type,
6214
+ i = 0,
6215
+ internalKey = jQuery.expando,
6216
+ cache = jQuery.cache,
6217
+ deleteExpando = jQuery.support.deleteExpando,
6218
+ special = jQuery.event.special;
6219
+
6220
+ for ( ; (elem = elems[i]) != null; i++ ) {
6221
+
6222
+ if ( acceptData || jQuery.acceptData( elem ) ) {
6223
+
6224
+ id = elem[ internalKey ];
6225
+ data = id && cache[ id ];
6226
+
6227
+ if ( data ) {
6228
+ if ( data.events ) {
6229
+ for ( type in data.events ) {
6230
+ if ( special[ type ] ) {
6231
+ jQuery.event.remove( elem, type );
6232
+
6233
+ // This is a shortcut to avoid jQuery.event.remove's overhead
6234
+ } else {
6235
+ jQuery.removeEvent( elem, type, data.handle );
6236
+ }
6237
+ }
6238
+ }
6239
+
6240
+ // Remove cache only if it was not already removed by jQuery.event.remove
6241
+ if ( cache[ id ] ) {
6242
+
6243
+ delete cache[ id ];
6244
+
6245
+ // IE does not allow us to delete expando properties from nodes,
6246
+ // nor does it have a removeAttribute function on Document nodes;
6247
+ // we must handle all of these cases
6248
+ if ( deleteExpando ) {
6249
+ delete elem[ internalKey ];
6250
+
6251
+ } else if ( elem.removeAttribute ) {
6252
+ elem.removeAttribute( internalKey );
6253
+
6254
+ } else {
6255
+ elem[ internalKey ] = null;
6256
+ }
6257
+
6258
+ jQuery.deletedIds.push( id );
6259
+ }
6260
+ }
6261
+ }
6262
+ }
6263
+ }
6264
+ });
6265
+ // Limit scope pollution from any deprecated API
6266
+ (function() {
6267
+
6268
+ var matched, browser;
6269
+
6270
+ // Use of jQuery.browser is frowned upon.
6271
+ // More details: http://api.jquery.com/jQuery.browser
6272
+ // jQuery.uaMatch maintained for back-compat
6273
+ jQuery.uaMatch = function( ua ) {
6274
+ ua = ua.toLowerCase();
6275
+
6276
+ var match = /(chrome)[ \/]([\w.]+)/.exec( ua ) ||
6277
+ /(webkit)[ \/]([\w.]+)/.exec( ua ) ||
6278
+ /(opera)(?:.*version|)[ \/]([\w.]+)/.exec( ua ) ||
6279
+ /(msie) ([\w.]+)/.exec( ua ) ||
6280
+ ua.indexOf("compatible") < 0 && /(mozilla)(?:.*? rv:([\w.]+)|)/.exec( ua ) ||
6281
+ [];
6282
+
6283
+ return {
6284
+ browser: match[ 1 ] || "",
6285
+ version: match[ 2 ] || "0"
6286
+ };
6287
+ };
6288
+
6289
+ matched = jQuery.uaMatch( navigator.userAgent );
6290
+ browser = {};
6291
+
6292
+ if ( matched.browser ) {
6293
+ browser[ matched.browser ] = true;
6294
+ browser.version = matched.version;
6295
+ }
6296
+
6297
+ // Deprecated, use jQuery.browser.webkit instead
6298
+ // Maintained for back-compat only
6299
+ if ( browser.webkit ) {
6300
+ browser.safari = true;
6301
+ }
6302
+
6303
+ jQuery.browser = browser;
6304
+
6305
+ jQuery.sub = function() {
6306
+ function jQuerySub( selector, context ) {
6307
+ return new jQuerySub.fn.init( selector, context );
6308
+ }
6309
+ jQuery.extend( true, jQuerySub, this );
6310
+ jQuerySub.superclass = this;
6311
+ jQuerySub.fn = jQuerySub.prototype = this();
6312
+ jQuerySub.fn.constructor = jQuerySub;
6313
+ jQuerySub.sub = this.sub;
6314
+ jQuerySub.fn.init = function init( selector, context ) {
6315
+ if ( context && context instanceof jQuery && !(context instanceof jQuerySub) ) {
6316
+ context = jQuerySub( context );
6317
+ }
6318
+
6319
+ return jQuery.fn.init.call( this, selector, context, rootjQuerySub );
6320
+ };
6321
+ jQuerySub.fn.init.prototype = jQuerySub.fn;
6322
+ var rootjQuerySub = jQuerySub(document);
6323
+ return jQuerySub;
6324
+ };
6325
+
6326
+ })();
6327
+ var curCSS, iframe, iframeDoc,
6328
+ ralpha = /alpha\([^)]*\)/i,
6329
+ ropacity = /opacity=([^)]*)/,
6330
+ rposition = /^(top|right|bottom|left)$/,
6331
+ rmargin = /^margin/,
6332
+ rnumsplit = new RegExp( "^(" + core_pnum + ")(.*)$", "i" ),
6333
+ rnumnonpx = new RegExp( "^(" + core_pnum + ")(?!px)[a-z%]+$", "i" ),
6334
+ rrelNum = new RegExp( "^([-+])=(" + core_pnum + ")", "i" ),
6335
+ elemdisplay = {},
6336
+
6337
+ cssShow = { position: "absolute", visibility: "hidden", display: "block" },
6338
+ cssNormalTransform = {
6339
+ letterSpacing: 0,
6340
+ fontWeight: 400,
6341
+ lineHeight: 1
6342
+ },
6343
+
6344
+ cssExpand = [ "Top", "Right", "Bottom", "Left" ],
6345
+ cssPrefixes = [ "Webkit", "O", "Moz", "ms" ],
6346
+
6347
+ eventsToggle = jQuery.fn.toggle;
6348
+
6349
+ // return a css property mapped to a potentially vendor prefixed property
6350
+ function vendorPropName( style, name ) {
6351
+
6352
+ // shortcut for names that are not vendor prefixed
6353
+ if ( name in style ) {
6354
+ return name;
6355
+ }
6356
+
6357
+ // check for vendor prefixed names
6358
+ var capName = name.charAt(0).toUpperCase() + name.slice(1),
6359
+ origName = name,
6360
+ i = cssPrefixes.length;
6361
+
6362
+ while ( i-- ) {
6363
+ name = cssPrefixes[ i ] + capName;
6364
+ if ( name in style ) {
6365
+ return name;
6366
+ }
6367
+ }
6368
+
6369
+ return origName;
6370
+ }
6371
+
6372
+ function isHidden( elem, el ) {
6373
+ elem = el || elem;
6374
+ return jQuery.css( elem, "display" ) === "none" || !jQuery.contains( elem.ownerDocument, elem );
6375
+ }
6376
+
6377
+ function showHide( elements, show ) {
6378
+ var elem, display,
6379
+ values = [],
6380
+ index = 0,
6381
+ length = elements.length;
6382
+
6383
+ for ( ; index < length; index++ ) {
6384
+ elem = elements[ index ];
6385
+ if ( !elem.style ) {
6386
+ continue;
6387
+ }
6388
+ values[ index ] = jQuery._data( elem, "olddisplay" );
6389
+ if ( show ) {
6390
+ // Reset the inline display of this element to learn if it is
6391
+ // being hidden by cascaded rules or not
6392
+ if ( !values[ index ] && elem.style.display === "none" ) {
6393
+ elem.style.display = "";
6394
+ }
6395
+
6396
+ // Set elements which have been overridden with display: none
6397
+ // in a stylesheet to whatever the default browser style is
6398
+ // for such an element
6399
+ if ( elem.style.display === "" && isHidden( elem ) ) {
6400
+ values[ index ] = jQuery._data( elem, "olddisplay", css_defaultDisplay(elem.nodeName) );
6401
+ }
6402
+ } else {
6403
+ display = curCSS( elem, "display" );
6404
+
6405
+ if ( !values[ index ] && display !== "none" ) {
6406
+ jQuery._data( elem, "olddisplay", display );
6407
+ }
6408
+ }
6409
+ }
6410
+
6411
+ // Set the display of most of the elements in a second loop
6412
+ // to avoid the constant reflow
6413
+ for ( index = 0; index < length; index++ ) {
6414
+ elem = elements[ index ];
6415
+ if ( !elem.style ) {
6416
+ continue;
6417
+ }
6418
+ if ( !show || elem.style.display === "none" || elem.style.display === "" ) {
6419
+ elem.style.display = show ? values[ index ] || "" : "none";
6420
+ }
6421
+ }
6422
+
6423
+ return elements;
6424
+ }
6425
+
6426
+ jQuery.fn.extend({
6427
+ css: function( name, value ) {
6428
+ return jQuery.access( this, function( elem, name, value ) {
6429
+ return value !== undefined ?
6430
+ jQuery.style( elem, name, value ) :
6431
+ jQuery.css( elem, name );
6432
+ }, name, value, arguments.length > 1 );
6433
+ },
6434
+ show: function() {
6435
+ return showHide( this, true );
6436
+ },
6437
+ hide: function() {
6438
+ return showHide( this );
6439
+ },
6440
+ toggle: function( state, fn2 ) {
6441
+ var bool = typeof state === "boolean";
6442
+
6443
+ if ( jQuery.isFunction( state ) && jQuery.isFunction( fn2 ) ) {
6444
+ return eventsToggle.apply( this, arguments );
6445
+ }
6446
+
6447
+ return this.each(function() {
6448
+ if ( bool ? state : isHidden( this ) ) {
6449
+ jQuery( this ).show();
6450
+ } else {
6451
+ jQuery( this ).hide();
6452
+ }
6453
+ });
6454
+ }
6455
+ });
6456
+
6457
+ jQuery.extend({
6458
+ // Add in style property hooks for overriding the default
6459
+ // behavior of getting and setting a style property
6460
+ cssHooks: {
6461
+ opacity: {
6462
+ get: function( elem, computed ) {
6463
+ if ( computed ) {
6464
+ // We should always get a number back from opacity
6465
+ var ret = curCSS( elem, "opacity" );
6466
+ return ret === "" ? "1" : ret;
6467
+
6468
+ }
6469
+ }
6470
+ }
6471
+ },
6472
+
6473
+ // Exclude the following css properties to add px
6474
+ cssNumber: {
6475
+ "fillOpacity": true,
6476
+ "fontWeight": true,
6477
+ "lineHeight": true,
6478
+ "opacity": true,
6479
+ "orphans": true,
6480
+ "widows": true,
6481
+ "zIndex": true,
6482
+ "zoom": true
6483
+ },
6484
+
6485
+ // Add in properties whose names you wish to fix before
6486
+ // setting or getting the value
6487
+ cssProps: {
6488
+ // normalize float css property
6489
+ "float": jQuery.support.cssFloat ? "cssFloat" : "styleFloat"
6490
+ },
6491
+
6492
+ // Get and set the style property on a DOM Node
6493
+ style: function( elem, name, value, extra ) {
6494
+ // Don't set styles on text and comment nodes
6495
+ if ( !elem || elem.nodeType === 3 || elem.nodeType === 8 || !elem.style ) {
6496
+ return;
6497
+ }
6498
+
6499
+ // Make sure that we're working with the right name
6500
+ var ret, type, hooks,
6501
+ origName = jQuery.camelCase( name ),
6502
+ style = elem.style;
6503
+
6504
+ name = jQuery.cssProps[ origName ] || ( jQuery.cssProps[ origName ] = vendorPropName( style, origName ) );
6505
+
6506
+ // gets hook for the prefixed version
6507
+ // followed by the unprefixed version
6508
+ hooks = jQuery.cssHooks[ name ] || jQuery.cssHooks[ origName ];
6509
+
6510
+ // Check if we're setting a value
6511
+ if ( value !== undefined ) {
6512
+ type = typeof value;
6513
+
6514
+ // convert relative number strings (+= or -=) to relative numbers. #7345
6515
+ if ( type === "string" && (ret = rrelNum.exec( value )) ) {
6516
+ value = ( ret[1] + 1 ) * ret[2] + parseFloat( jQuery.css( elem, name ) );
6517
+ // Fixes bug #9237
6518
+ type = "number";
6519
+ }
6520
+
6521
+ // Make sure that NaN and null values aren't set. See: #7116
6522
+ if ( value == null || type === "number" && isNaN( value ) ) {
6523
+ return;
6524
+ }
6525
+
6526
+ // If a number was passed in, add 'px' to the (except for certain CSS properties)
6527
+ if ( type === "number" && !jQuery.cssNumber[ origName ] ) {
6528
+ value += "px";
6529
+ }
6530
+
6531
+ // If a hook was provided, use that value, otherwise just set the specified value
6532
+ if ( !hooks || !("set" in hooks) || (value = hooks.set( elem, value, extra )) !== undefined ) {
6533
+ // Wrapped to prevent IE from throwing errors when 'invalid' values are provided
6534
+ // Fixes bug #5509
6535
+ try {
6536
+ style[ name ] = value;
6537
+ } catch(e) {}
6538
+ }
6539
+
6540
+ } else {
6541
+ // If a hook was provided get the non-computed value from there
6542
+ if ( hooks && "get" in hooks && (ret = hooks.get( elem, false, extra )) !== undefined ) {
6543
+ return ret;
6544
+ }
6545
+
6546
+ // Otherwise just get the value from the style object
6547
+ return style[ name ];
6548
+ }
6549
+ },
6550
+
6551
+ css: function( elem, name, numeric, extra ) {
6552
+ var val, num, hooks,
6553
+ origName = jQuery.camelCase( name );
6554
+
6555
+ // Make sure that we're working with the right name
6556
+ name = jQuery.cssProps[ origName ] || ( jQuery.cssProps[ origName ] = vendorPropName( elem.style, origName ) );
6557
+
6558
+ // gets hook for the prefixed version
6559
+ // followed by the unprefixed version
6560
+ hooks = jQuery.cssHooks[ name ] || jQuery.cssHooks[ origName ];
6561
+
6562
+ // If a hook was provided get the computed value from there
6563
+ if ( hooks && "get" in hooks ) {
6564
+ val = hooks.get( elem, true, extra );
6565
+ }
6566
+
6567
+ // Otherwise, if a way to get the computed value exists, use that
6568
+ if ( val === undefined ) {
6569
+ val = curCSS( elem, name );
6570
+ }
6571
+
6572
+ //convert "normal" to computed value
6573
+ if ( val === "normal" && name in cssNormalTransform ) {
6574
+ val = cssNormalTransform[ name ];
6575
+ }
6576
+
6577
+ // Return, converting to number if forced or a qualifier was provided and val looks numeric
6578
+ if ( numeric || extra !== undefined ) {
6579
+ num = parseFloat( val );
6580
+ return numeric || jQuery.isNumeric( num ) ? num || 0 : val;
6581
+ }
6582
+ return val;
6583
+ },
6584
+
6585
+ // A method for quickly swapping in/out CSS properties to get correct calculations
6586
+ swap: function( elem, options, callback ) {
6587
+ var ret, name,
6588
+ old = {};
6589
+
6590
+ // Remember the old values, and insert the new ones
6591
+ for ( name in options ) {
6592
+ old[ name ] = elem.style[ name ];
6593
+ elem.style[ name ] = options[ name ];
6594
+ }
6595
+
6596
+ ret = callback.call( elem );
6597
+
6598
+ // Revert the old values
6599
+ for ( name in options ) {
6600
+ elem.style[ name ] = old[ name ];
6601
+ }
6602
+
6603
+ return ret;
6604
+ }
6605
+ });
6606
+
6607
+ // NOTE: To any future maintainer, we've used both window.getComputedStyle
6608
+ // and getComputedStyle here to produce a better gzip size
6609
+ if ( window.getComputedStyle ) {
6610
+ curCSS = function( elem, name ) {
6611
+ var ret, width, minWidth, maxWidth,
6612
+ computed = getComputedStyle( elem, null ),
6613
+ style = elem.style;
6614
+
6615
+ if ( computed ) {
6616
+
6617
+ ret = computed[ name ];
6618
+ if ( ret === "" && !jQuery.contains( elem.ownerDocument.documentElement, elem ) ) {
6619
+ ret = jQuery.style( elem, name );
6620
+ }
6621
+
6622
+ // A tribute to the "awesome hack by Dean Edwards"
6623
+ // Chrome < 17 and Safari 5.0 uses "computed value" instead of "used value" for margin-right
6624
+ // Safari 5.1.7 (at least) returns percentage for a larger set of values, but width seems to be reliably pixels
6625
+ // this is against the CSSOM draft spec: http://dev.w3.org/csswg/cssom/#resolved-values
6626
+ if ( rnumnonpx.test( ret ) && rmargin.test( name ) ) {
6627
+ width = style.width;
6628
+ minWidth = style.minWidth;
6629
+ maxWidth = style.maxWidth;
6630
+
6631
+ style.minWidth = style.maxWidth = style.width = ret;
6632
+ ret = computed.width;
6633
+
6634
+ style.width = width;
6635
+ style.minWidth = minWidth;
6636
+ style.maxWidth = maxWidth;
6637
+ }
6638
+ }
6639
+
6640
+ return ret;
6641
+ };
6642
+ } else if ( document.documentElement.currentStyle ) {
6643
+ curCSS = function( elem, name ) {
6644
+ var left, rsLeft,
6645
+ ret = elem.currentStyle && elem.currentStyle[ name ],
6646
+ style = elem.style;
6647
+
6648
+ // Avoid setting ret to empty string here
6649
+ // so we don't default to auto
6650
+ if ( ret == null && style && style[ name ] ) {
6651
+ ret = style[ name ];
6652
+ }
6653
+
6654
+ // From the awesome hack by Dean Edwards
6655
+ // http://erik.eae.net/archives/2007/07/27/18.54.15/#comment-102291
6656
+
6657
+ // If we're not dealing with a regular pixel number
6658
+ // but a number that has a weird ending, we need to convert it to pixels
6659
+ // but not position css attributes, as those are proportional to the parent element instead
6660
+ // and we can't measure the parent instead because it might trigger a "stacking dolls" problem
6661
+ if ( rnumnonpx.test( ret ) && !rposition.test( name ) ) {
6662
+
6663
+ // Remember the original values
6664
+ left = style.left;
6665
+ rsLeft = elem.runtimeStyle && elem.runtimeStyle.left;
6666
+
6667
+ // Put in the new values to get a computed value out
6668
+ if ( rsLeft ) {
6669
+ elem.runtimeStyle.left = elem.currentStyle.left;
6670
+ }
6671
+ style.left = name === "fontSize" ? "1em" : ret;
6672
+ ret = style.pixelLeft + "px";
6673
+
6674
+ // Revert the changed values
6675
+ style.left = left;
6676
+ if ( rsLeft ) {
6677
+ elem.runtimeStyle.left = rsLeft;
6678
+ }
6679
+ }
6680
+
6681
+ return ret === "" ? "auto" : ret;
6682
+ };
6683
+ }
6684
+
6685
+ function setPositiveNumber( elem, value, subtract ) {
6686
+ var matches = rnumsplit.exec( value );
6687
+ return matches ?
6688
+ Math.max( 0, matches[ 1 ] - ( subtract || 0 ) ) + ( matches[ 2 ] || "px" ) :
6689
+ value;
6690
+ }
6691
+
6692
+ function augmentWidthOrHeight( elem, name, extra, isBorderBox ) {
6693
+ var i = extra === ( isBorderBox ? "border" : "content" ) ?
6694
+ // If we already have the right measurement, avoid augmentation
6695
+ 4 :
6696
+ // Otherwise initialize for horizontal or vertical properties
6697
+ name === "width" ? 1 : 0,
6698
+
6699
+ val = 0;
6700
+
6701
+ for ( ; i < 4; i += 2 ) {
6702
+ // both box models exclude margin, so add it if we want it
6703
+ if ( extra === "margin" ) {
6704
+ // we use jQuery.css instead of curCSS here
6705
+ // because of the reliableMarginRight CSS hook!
6706
+ val += jQuery.css( elem, extra + cssExpand[ i ], true );
6707
+ }
6708
+
6709
+ // From this point on we use curCSS for maximum performance (relevant in animations)
6710
+ if ( isBorderBox ) {
6711
+ // border-box includes padding, so remove it if we want content
6712
+ if ( extra === "content" ) {
6713
+ val -= parseFloat( curCSS( elem, "padding" + cssExpand[ i ] ) ) || 0;
6714
+ }
6715
+
6716
+ // at this point, extra isn't border nor margin, so remove border
6717
+ if ( extra !== "margin" ) {
6718
+ val -= parseFloat( curCSS( elem, "border" + cssExpand[ i ] + "Width" ) ) || 0;
6719
+ }
6720
+ } else {
6721
+ // at this point, extra isn't content, so add padding
6722
+ val += parseFloat( curCSS( elem, "padding" + cssExpand[ i ] ) ) || 0;
6723
+
6724
+ // at this point, extra isn't content nor padding, so add border
6725
+ if ( extra !== "padding" ) {
6726
+ val += parseFloat( curCSS( elem, "border" + cssExpand[ i ] + "Width" ) ) || 0;
6727
+ }
6728
+ }
6729
+ }
6730
+
6731
+ return val;
6732
+ }
6733
+
6734
+ function getWidthOrHeight( elem, name, extra ) {
6735
+
6736
+ // Start with offset property, which is equivalent to the border-box value
6737
+ var val = name === "width" ? elem.offsetWidth : elem.offsetHeight,
6738
+ valueIsBorderBox = true,
6739
+ isBorderBox = jQuery.support.boxSizing && jQuery.css( elem, "boxSizing" ) === "border-box";
6740
+
6741
+ if ( val <= 0 ) {
6742
+ // Fall back to computed then uncomputed css if necessary
6743
+ val = curCSS( elem, name );
6744
+ if ( val < 0 || val == null ) {
6745
+ val = elem.style[ name ];
6746
+ }
6747
+
6748
+ // Computed unit is not pixels. Stop here and return.
6749
+ if ( rnumnonpx.test(val) ) {
6750
+ return val;
6751
+ }
6752
+
6753
+ // we need the check for style in case a browser which returns unreliable values
6754
+ // for getComputedStyle silently falls back to the reliable elem.style
6755
+ valueIsBorderBox = isBorderBox && ( jQuery.support.boxSizingReliable || val === elem.style[ name ] );
6756
+
6757
+ // Normalize "", auto, and prepare for extra
6758
+ val = parseFloat( val ) || 0;
6759
+ }
6760
+
6761
+ // use the active box-sizing model to add/subtract irrelevant styles
6762
+ return ( val +
6763
+ augmentWidthOrHeight(
6764
+ elem,
6765
+ name,
6766
+ extra || ( isBorderBox ? "border" : "content" ),
6767
+ valueIsBorderBox
6768
+ )
6769
+ ) + "px";
6770
+ }
6771
+
6772
+
6773
+ // Try to determine the default display value of an element
6774
+ function css_defaultDisplay( nodeName ) {
6775
+ if ( elemdisplay[ nodeName ] ) {
6776
+ return elemdisplay[ nodeName ];
6777
+ }
6778
+
6779
+ var elem = jQuery( "<" + nodeName + ">" ).appendTo( document.body ),
6780
+ display = elem.css("display");
6781
+ elem.remove();
6782
+
6783
+ // If the simple way fails,
6784
+ // get element's real default display by attaching it to a temp iframe
6785
+ if ( display === "none" || display === "" ) {
6786
+ // Use the already-created iframe if possible
6787
+ iframe = document.body.appendChild(
6788
+ iframe || jQuery.extend( document.createElement("iframe"), {
6789
+ frameBorder: 0,
6790
+ width: 0,
6791
+ height: 0
6792
+ })
6793
+ );
6794
+
6795
+ // Create a cacheable copy of the iframe document on first call.
6796
+ // IE and Opera will allow us to reuse the iframeDoc without re-writing the fake HTML
6797
+ // document to it; WebKit & Firefox won't allow reusing the iframe document.
6798
+ if ( !iframeDoc || !iframe.createElement ) {
6799
+ iframeDoc = ( iframe.contentWindow || iframe.contentDocument ).document;
6800
+ iframeDoc.write("<!doctype html><html><body>");
6801
+ iframeDoc.close();
6802
+ }
6803
+
6804
+ elem = iframeDoc.body.appendChild( iframeDoc.createElement(nodeName) );
6805
+
6806
+ display = curCSS( elem, "display" );
6807
+ document.body.removeChild( iframe );
6808
+ }
6809
+
6810
+ // Store the correct default display
6811
+ elemdisplay[ nodeName ] = display;
6812
+
6813
+ return display;
6814
+ }
6815
+
6816
+ jQuery.each([ "height", "width" ], function( i, name ) {
6817
+ jQuery.cssHooks[ name ] = {
6818
+ get: function( elem, computed, extra ) {
6819
+ if ( computed ) {
6820
+ if ( elem.offsetWidth !== 0 || curCSS( elem, "display" ) !== "none" ) {
6821
+ return getWidthOrHeight( elem, name, extra );
6822
+ } else {
6823
+ return jQuery.swap( elem, cssShow, function() {
6824
+ return getWidthOrHeight( elem, name, extra );
6825
+ });
6826
+ }
6827
+ }
6828
+ },
6829
+
6830
+ set: function( elem, value, extra ) {
6831
+ return setPositiveNumber( elem, value, extra ?
6832
+ augmentWidthOrHeight(
6833
+ elem,
6834
+ name,
6835
+ extra,
6836
+ jQuery.support.boxSizing && jQuery.css( elem, "boxSizing" ) === "border-box"
6837
+ ) : 0
6838
+ );
6839
+ }
6840
+ };
6841
+ });
6842
+
6843
+ if ( !jQuery.support.opacity ) {
6844
+ jQuery.cssHooks.opacity = {
6845
+ get: function( elem, computed ) {
6846
+ // IE uses filters for opacity
6847
+ return ropacity.test( (computed && elem.currentStyle ? elem.currentStyle.filter : elem.style.filter) || "" ) ?
6848
+ ( 0.01 * parseFloat( RegExp.$1 ) ) + "" :
6849
+ computed ? "1" : "";
6850
+ },
6851
+
6852
+ set: function( elem, value ) {
6853
+ var style = elem.style,
6854
+ currentStyle = elem.currentStyle,
6855
+ opacity = jQuery.isNumeric( value ) ? "alpha(opacity=" + value * 100 + ")" : "",
6856
+ filter = currentStyle && currentStyle.filter || style.filter || "";
6857
+
6858
+ // IE has trouble with opacity if it does not have layout
6859
+ // Force it by setting the zoom level
6860
+ style.zoom = 1;
6861
+
6862
+ // if setting opacity to 1, and no other filters exist - attempt to remove filter attribute #6652
6863
+ if ( value >= 1 && jQuery.trim( filter.replace( ralpha, "" ) ) === "" &&
6864
+ style.removeAttribute ) {
6865
+
6866
+ // Setting style.filter to null, "" & " " still leave "filter:" in the cssText
6867
+ // if "filter:" is present at all, clearType is disabled, we want to avoid this
6868
+ // style.removeAttribute is IE Only, but so apparently is this code path...
6869
+ style.removeAttribute( "filter" );
6870
+
6871
+ // if there there is no filter style applied in a css rule, we are done
6872
+ if ( currentStyle && !currentStyle.filter ) {
6873
+ return;
6874
+ }
6875
+ }
6876
+
6877
+ // otherwise, set new filter values
6878
+ style.filter = ralpha.test( filter ) ?
6879
+ filter.replace( ralpha, opacity ) :
6880
+ filter + " " + opacity;
6881
+ }
6882
+ };
6883
+ }
6884
+
6885
+ // These hooks cannot be added until DOM ready because the support test
6886
+ // for it is not run until after DOM ready
6887
+ jQuery(function() {
6888
+ if ( !jQuery.support.reliableMarginRight ) {
6889
+ jQuery.cssHooks.marginRight = {
6890
+ get: function( elem, computed ) {
6891
+ // WebKit Bug 13343 - getComputedStyle returns wrong value for margin-right
6892
+ // Work around by temporarily setting element display to inline-block
6893
+ return jQuery.swap( elem, { "display": "inline-block" }, function() {
6894
+ if ( computed ) {
6895
+ return curCSS( elem, "marginRight" );
6896
+ }
6897
+ });
6898
+ }
6899
+ };
6900
+ }
6901
+
6902
+ // Webkit bug: https://bugs.webkit.org/show_bug.cgi?id=29084
6903
+ // getComputedStyle returns percent when specified for top/left/bottom/right
6904
+ // rather than make the css module depend on the offset module, we just check for it here
6905
+ if ( !jQuery.support.pixelPosition && jQuery.fn.position ) {
6906
+ jQuery.each( [ "top", "left" ], function( i, prop ) {
6907
+ jQuery.cssHooks[ prop ] = {
6908
+ get: function( elem, computed ) {
6909
+ if ( computed ) {
6910
+ var ret = curCSS( elem, prop );
6911
+ // if curCSS returns percentage, fallback to offset
6912
+ return rnumnonpx.test( ret ) ? jQuery( elem ).position()[ prop ] + "px" : ret;
6913
+ }
6914
+ }
6915
+ };
6916
+ });
6917
+ }
6918
+
6919
+ });
6920
+
6921
+ if ( jQuery.expr && jQuery.expr.filters ) {
6922
+ jQuery.expr.filters.hidden = function( elem ) {
6923
+ return ( elem.offsetWidth === 0 && elem.offsetHeight === 0 ) || (!jQuery.support.reliableHiddenOffsets && ((elem.style && elem.style.display) || curCSS( elem, "display" )) === "none");
6924
+ };
6925
+
6926
+ jQuery.expr.filters.visible = function( elem ) {
6927
+ return !jQuery.expr.filters.hidden( elem );
6928
+ };
6929
+ }
6930
+
6931
+ // These hooks are used by animate to expand properties
6932
+ jQuery.each({
6933
+ margin: "",
6934
+ padding: "",
6935
+ border: "Width"
6936
+ }, function( prefix, suffix ) {
6937
+ jQuery.cssHooks[ prefix + suffix ] = {
6938
+ expand: function( value ) {
6939
+ var i,
6940
+
6941
+ // assumes a single number if not a string
6942
+ parts = typeof value === "string" ? value.split(" ") : [ value ],
6943
+ expanded = {};
6944
+
6945
+ for ( i = 0; i < 4; i++ ) {
6946
+ expanded[ prefix + cssExpand[ i ] + suffix ] =
6947
+ parts[ i ] || parts[ i - 2 ] || parts[ 0 ];
6948
+ }
6949
+
6950
+ return expanded;
6951
+ }
6952
+ };
6953
+
6954
+ if ( !rmargin.test( prefix ) ) {
6955
+ jQuery.cssHooks[ prefix + suffix ].set = setPositiveNumber;
6956
+ }
6957
+ });
6958
+ var r20 = /%20/g,
6959
+ rbracket = /\[\]$/,
6960
+ rCRLF = /\r?\n/g,
6961
+ rinput = /^(?:color|date|datetime|datetime-local|email|hidden|month|number|password|range|search|tel|text|time|url|week)$/i,
6962
+ rselectTextarea = /^(?:select|textarea)/i;
6963
+
6964
+ jQuery.fn.extend({
6965
+ serialize: function() {
6966
+ return jQuery.param( this.serializeArray() );
6967
+ },
6968
+ serializeArray: function() {
6969
+ return this.map(function(){
6970
+ return this.elements ? jQuery.makeArray( this.elements ) : this;
6971
+ })
6972
+ .filter(function(){
6973
+ return this.name && !this.disabled &&
6974
+ ( this.checked || rselectTextarea.test( this.nodeName ) ||
6975
+ rinput.test( this.type ) );
6976
+ })
6977
+ .map(function( i, elem ){
6978
+ var val = jQuery( this ).val();
6979
+
6980
+ return val == null ?
6981
+ null :
6982
+ jQuery.isArray( val ) ?
6983
+ jQuery.map( val, function( val, i ){
6984
+ return { name: elem.name, value: val.replace( rCRLF, "\r\n" ) };
6985
+ }) :
6986
+ { name: elem.name, value: val.replace( rCRLF, "\r\n" ) };
6987
+ }).get();
6988
+ }
6989
+ });
6990
+
6991
+ //Serialize an array of form elements or a set of
6992
+ //key/values into a query string
6993
+ jQuery.param = function( a, traditional ) {
6994
+ var prefix,
6995
+ s = [],
6996
+ add = function( key, value ) {
6997
+ // If value is a function, invoke it and return its value
6998
+ value = jQuery.isFunction( value ) ? value() : ( value == null ? "" : value );
6999
+ s[ s.length ] = encodeURIComponent( key ) + "=" + encodeURIComponent( value );
7000
+ };
7001
+
7002
+ // Set traditional to true for jQuery <= 1.3.2 behavior.
7003
+ if ( traditional === undefined ) {
7004
+ traditional = jQuery.ajaxSettings && jQuery.ajaxSettings.traditional;
7005
+ }
7006
+
7007
+ // If an array was passed in, assume that it is an array of form elements.
7008
+ if ( jQuery.isArray( a ) || ( a.jquery && !jQuery.isPlainObject( a ) ) ) {
7009
+ // Serialize the form elements
7010
+ jQuery.each( a, function() {
7011
+ add( this.name, this.value );
7012
+ });
7013
+
7014
+ } else {
7015
+ // If traditional, encode the "old" way (the way 1.3.2 or older
7016
+ // did it), otherwise encode params recursively.
7017
+ for ( prefix in a ) {
7018
+ buildParams( prefix, a[ prefix ], traditional, add );
7019
+ }
7020
+ }
7021
+
7022
+ // Return the resulting serialization
7023
+ return s.join( "&" ).replace( r20, "+" );
7024
+ };
7025
+
7026
+ function buildParams( prefix, obj, traditional, add ) {
7027
+ var name;
7028
+
7029
+ if ( jQuery.isArray( obj ) ) {
7030
+ // Serialize array item.
7031
+ jQuery.each( obj, function( i, v ) {
7032
+ if ( traditional || rbracket.test( prefix ) ) {
7033
+ // Treat each array item as a scalar.
7034
+ add( prefix, v );
7035
+
7036
+ } else {
7037
+ // If array item is non-scalar (array or object), encode its
7038
+ // numeric index to resolve deserialization ambiguity issues.
7039
+ // Note that rack (as of 1.0.0) can't currently deserialize
7040
+ // nested arrays properly, and attempting to do so may cause
7041
+ // a server error. Possible fixes are to modify rack's
7042
+ // deserialization algorithm or to provide an option or flag
7043
+ // to force array serialization to be shallow.
7044
+ buildParams( prefix + "[" + ( typeof v === "object" ? i : "" ) + "]", v, traditional, add );
7045
+ }
7046
+ });
7047
+
7048
+ } else if ( !traditional && jQuery.type( obj ) === "object" ) {
7049
+ // Serialize object item.
7050
+ for ( name in obj ) {
7051
+ buildParams( prefix + "[" + name + "]", obj[ name ], traditional, add );
7052
+ }
7053
+
7054
+ } else {
7055
+ // Serialize scalar item.
7056
+ add( prefix, obj );
7057
+ }
7058
+ }
7059
+ var // Document location
7060
+ ajaxLocation,
7061
+ // Document location segments
7062
+ ajaxLocParts,
7063
+
7064
+ rhash = /#.*$/,
7065
+ rheaders = /^(.*?):[ \t]*([^\r\n]*)\r?$/mg, // IE leaves an \r character at EOL
7066
+ // #7653, #8125, #8152: local protocol detection
7067
+ rlocalProtocol = /^(?:about|app|app\-storage|.+\-extension|file|res|widget):$/,
7068
+ rnoContent = /^(?:GET|HEAD)$/,
7069
+ rprotocol = /^\/\//,
7070
+ rquery = /\?/,
7071
+ rscript = /<script\b[^<]*(?:(?!<\/script>)<[^<]*)*<\/script>/gi,
7072
+ rts = /([?&])_=[^&]*/,
7073
+ rurl = /^([\w\+\.\-]+:)(?:\/\/([^\/?#:]*)(?::(\d+)|)|)/,
7074
+
7075
+ // Keep a copy of the old load method
7076
+ _load = jQuery.fn.load,
7077
+
7078
+ /* Prefilters
7079
+ * 1) They are useful to introduce custom dataTypes (see ajax/jsonp.js for an example)
7080
+ * 2) These are called:
7081
+ * - BEFORE asking for a transport
7082
+ * - AFTER param serialization (s.data is a string if s.processData is true)
7083
+ * 3) key is the dataType
7084
+ * 4) the catchall symbol "*" can be used
7085
+ * 5) execution will start with transport dataType and THEN continue down to "*" if needed
7086
+ */
7087
+ prefilters = {},
7088
+
7089
+ /* Transports bindings
7090
+ * 1) key is the dataType
7091
+ * 2) the catchall symbol "*" can be used
7092
+ * 3) selection will start with transport dataType and THEN go to "*" if needed
7093
+ */
7094
+ transports = {},
7095
+
7096
+ // Avoid comment-prolog char sequence (#10098); must appease lint and evade compression
7097
+ allTypes = ["*/"] + ["*"];
7098
+
7099
+ // #8138, IE may throw an exception when accessing
7100
+ // a field from window.location if document.domain has been set
7101
+ try {
7102
+ ajaxLocation = location.href;
7103
+ } catch( e ) {
7104
+ // Use the href attribute of an A element
7105
+ // since IE will modify it given document.location
7106
+ ajaxLocation = document.createElement( "a" );
7107
+ ajaxLocation.href = "";
7108
+ ajaxLocation = ajaxLocation.href;
7109
+ }
7110
+
7111
+ // Segment location into parts
7112
+ ajaxLocParts = rurl.exec( ajaxLocation.toLowerCase() ) || [];
7113
+
7114
+ // Base "constructor" for jQuery.ajaxPrefilter and jQuery.ajaxTransport
7115
+ function addToPrefiltersOrTransports( structure ) {
7116
+
7117
+ // dataTypeExpression is optional and defaults to "*"
7118
+ return function( dataTypeExpression, func ) {
7119
+
7120
+ if ( typeof dataTypeExpression !== "string" ) {
7121
+ func = dataTypeExpression;
7122
+ dataTypeExpression = "*";
7123
+ }
7124
+
7125
+ var dataType, list, placeBefore,
7126
+ dataTypes = dataTypeExpression.toLowerCase().split( core_rspace ),
7127
+ i = 0,
7128
+ length = dataTypes.length;
7129
+
7130
+ if ( jQuery.isFunction( func ) ) {
7131
+ // For each dataType in the dataTypeExpression
7132
+ for ( ; i < length; i++ ) {
7133
+ dataType = dataTypes[ i ];
7134
+ // We control if we're asked to add before
7135
+ // any existing element
7136
+ placeBefore = /^\+/.test( dataType );
7137
+ if ( placeBefore ) {
7138
+ dataType = dataType.substr( 1 ) || "*";
7139
+ }
7140
+ list = structure[ dataType ] = structure[ dataType ] || [];
7141
+ // then we add to the structure accordingly
7142
+ list[ placeBefore ? "unshift" : "push" ]( func );
7143
+ }
7144
+ }
7145
+ };
7146
+ }
7147
+
7148
+ // Base inspection function for prefilters and transports
7149
+ function inspectPrefiltersOrTransports( structure, options, originalOptions, jqXHR,
7150
+ dataType /* internal */, inspected /* internal */ ) {
7151
+
7152
+ dataType = dataType || options.dataTypes[ 0 ];
7153
+ inspected = inspected || {};
7154
+
7155
+ inspected[ dataType ] = true;
7156
+
7157
+ var selection,
7158
+ list = structure[ dataType ],
7159
+ i = 0,
7160
+ length = list ? list.length : 0,
7161
+ executeOnly = ( structure === prefilters );
7162
+
7163
+ for ( ; i < length && ( executeOnly || !selection ); i++ ) {
7164
+ selection = list[ i ]( options, originalOptions, jqXHR );
7165
+ // If we got redirected to another dataType
7166
+ // we try there if executing only and not done already
7167
+ if ( typeof selection === "string" ) {
7168
+ if ( !executeOnly || inspected[ selection ] ) {
7169
+ selection = undefined;
7170
+ } else {
7171
+ options.dataTypes.unshift( selection );
7172
+ selection = inspectPrefiltersOrTransports(
7173
+ structure, options, originalOptions, jqXHR, selection, inspected );
7174
+ }
7175
+ }
7176
+ }
7177
+ // If we're only executing or nothing was selected
7178
+ // we try the catchall dataType if not done already
7179
+ if ( ( executeOnly || !selection ) && !inspected[ "*" ] ) {
7180
+ selection = inspectPrefiltersOrTransports(
7181
+ structure, options, originalOptions, jqXHR, "*", inspected );
7182
+ }
7183
+ // unnecessary when only executing (prefilters)
7184
+ // but it'll be ignored by the caller in that case
7185
+ return selection;
7186
+ }
7187
+
7188
+ // A special extend for ajax options
7189
+ // that takes "flat" options (not to be deep extended)
7190
+ // Fixes #9887
7191
+ function ajaxExtend( target, src ) {
7192
+ var key, deep,
7193
+ flatOptions = jQuery.ajaxSettings.flatOptions || {};
7194
+ for ( key in src ) {
7195
+ if ( src[ key ] !== undefined ) {
7196
+ ( flatOptions[ key ] ? target : ( deep || ( deep = {} ) ) )[ key ] = src[ key ];
7197
+ }
7198
+ }
7199
+ if ( deep ) {
7200
+ jQuery.extend( true, target, deep );
7201
+ }
7202
+ }
7203
+
7204
+ jQuery.fn.load = function( url, params, callback ) {
7205
+ if ( typeof url !== "string" && _load ) {
7206
+ return _load.apply( this, arguments );
7207
+ }
7208
+
7209
+ // Don't do a request if no elements are being requested
7210
+ if ( !this.length ) {
7211
+ return this;
7212
+ }
7213
+
7214
+ var selector, type, response,
7215
+ self = this,
7216
+ off = url.indexOf(" ");
7217
+
7218
+ if ( off >= 0 ) {
7219
+ selector = url.slice( off, url.length );
7220
+ url = url.slice( 0, off );
7221
+ }
7222
+
7223
+ // If it's a function
7224
+ if ( jQuery.isFunction( params ) ) {
7225
+
7226
+ // We assume that it's the callback
7227
+ callback = params;
7228
+ params = undefined;
7229
+
7230
+ // Otherwise, build a param string
7231
+ } else if ( typeof params === "object" ) {
7232
+ type = "POST";
7233
+ }
7234
+
7235
+ // Request the remote document
7236
+ jQuery.ajax({
7237
+ url: url,
7238
+
7239
+ // if "type" variable is undefined, then "GET" method will be used
7240
+ type: type,
7241
+ dataType: "html",
7242
+ data: params,
7243
+ complete: function( jqXHR, status ) {
7244
+ if ( callback ) {
7245
+ self.each( callback, response || [ jqXHR.responseText, status, jqXHR ] );
7246
+ }
7247
+ }
7248
+ }).done(function( responseText ) {
7249
+
7250
+ // Save response for use in complete callback
7251
+ response = arguments;
7252
+
7253
+ // See if a selector was specified
7254
+ self.html( selector ?
7255
+
7256
+ // Create a dummy div to hold the results
7257
+ jQuery("<div>")
7258
+
7259
+ // inject the contents of the document in, removing the scripts
7260
+ // to avoid any 'Permission Denied' errors in IE
7261
+ .append( responseText.replace( rscript, "" ) )
7262
+
7263
+ // Locate the specified elements
7264
+ .find( selector ) :
7265
+
7266
+ // If not, just inject the full result
7267
+ responseText );
7268
+
7269
+ });
7270
+
7271
+ return this;
7272
+ };
7273
+
7274
+ // Attach a bunch of functions for handling common AJAX events
7275
+ jQuery.each( "ajaxStart ajaxStop ajaxComplete ajaxError ajaxSuccess ajaxSend".split( " " ), function( i, o ){
7276
+ jQuery.fn[ o ] = function( f ){
7277
+ return this.on( o, f );
7278
+ };
7279
+ });
7280
+
7281
+ jQuery.each( [ "get", "post" ], function( i, method ) {
7282
+ jQuery[ method ] = function( url, data, callback, type ) {
7283
+ // shift arguments if data argument was omitted
7284
+ if ( jQuery.isFunction( data ) ) {
7285
+ type = type || callback;
7286
+ callback = data;
7287
+ data = undefined;
7288
+ }
7289
+
7290
+ return jQuery.ajax({
7291
+ type: method,
7292
+ url: url,
7293
+ data: data,
7294
+ success: callback,
7295
+ dataType: type
7296
+ });
7297
+ };
7298
+ });
7299
+
7300
+ jQuery.extend({
7301
+
7302
+ getScript: function( url, callback ) {
7303
+ return jQuery.get( url, undefined, callback, "script" );
7304
+ },
7305
+
7306
+ getJSON: function( url, data, callback ) {
7307
+ return jQuery.get( url, data, callback, "json" );
7308
+ },
7309
+
7310
+ // Creates a full fledged settings object into target
7311
+ // with both ajaxSettings and settings fields.
7312
+ // If target is omitted, writes into ajaxSettings.
7313
+ ajaxSetup: function( target, settings ) {
7314
+ if ( settings ) {
7315
+ // Building a settings object
7316
+ ajaxExtend( target, jQuery.ajaxSettings );
7317
+ } else {
7318
+ // Extending ajaxSettings
7319
+ settings = target;
7320
+ target = jQuery.ajaxSettings;
7321
+ }
7322
+ ajaxExtend( target, settings );
7323
+ return target;
7324
+ },
7325
+
7326
+ ajaxSettings: {
7327
+ url: ajaxLocation,
7328
+ isLocal: rlocalProtocol.test( ajaxLocParts[ 1 ] ),
7329
+ global: true,
7330
+ type: "GET",
7331
+ contentType: "application/x-www-form-urlencoded; charset=UTF-8",
7332
+ processData: true,
7333
+ async: true,
7334
+ /*
7335
+ timeout: 0,
7336
+ data: null,
7337
+ dataType: null,
7338
+ username: null,
7339
+ password: null,
7340
+ cache: null,
7341
+ throws: false,
7342
+ traditional: false,
7343
+ headers: {},
7344
+ */
7345
+
7346
+ accepts: {
7347
+ xml: "application/xml, text/xml",
7348
+ html: "text/html",
7349
+ text: "text/plain",
7350
+ json: "application/json, text/javascript",
7351
+ "*": allTypes
7352
+ },
7353
+
7354
+ contents: {
7355
+ xml: /xml/,
7356
+ html: /html/,
7357
+ json: /json/
7358
+ },
7359
+
7360
+ responseFields: {
7361
+ xml: "responseXML",
7362
+ text: "responseText"
7363
+ },
7364
+
7365
+ // List of data converters
7366
+ // 1) key format is "source_type destination_type" (a single space in-between)
7367
+ // 2) the catchall symbol "*" can be used for source_type
7368
+ converters: {
7369
+
7370
+ // Convert anything to text
7371
+ "* text": window.String,
7372
+
7373
+ // Text to html (true = no transformation)
7374
+ "text html": true,
7375
+
7376
+ // Evaluate text as a json expression
7377
+ "text json": jQuery.parseJSON,
7378
+
7379
+ // Parse text as xml
7380
+ "text xml": jQuery.parseXML
7381
+ },
7382
+
7383
+ // For options that shouldn't be deep extended:
7384
+ // you can add your own custom options here if
7385
+ // and when you create one that shouldn't be
7386
+ // deep extended (see ajaxExtend)
7387
+ flatOptions: {
7388
+ context: true,
7389
+ url: true
7390
+ }
7391
+ },
7392
+
7393
+ ajaxPrefilter: addToPrefiltersOrTransports( prefilters ),
7394
+ ajaxTransport: addToPrefiltersOrTransports( transports ),
7395
+
7396
+ // Main method
7397
+ ajax: function( url, options ) {
7398
+
7399
+ // If url is an object, simulate pre-1.5 signature
7400
+ if ( typeof url === "object" ) {
7401
+ options = url;
7402
+ url = undefined;
7403
+ }
7404
+
7405
+ // Force options to be an object
7406
+ options = options || {};
7407
+
7408
+ var // ifModified key
7409
+ ifModifiedKey,
7410
+ // Response headers
7411
+ responseHeadersString,
7412
+ responseHeaders,
7413
+ // transport
7414
+ transport,
7415
+ // timeout handle
7416
+ timeoutTimer,
7417
+ // Cross-domain detection vars
7418
+ parts,
7419
+ // To know if global events are to be dispatched
7420
+ fireGlobals,
7421
+ // Loop variable
7422
+ i,
7423
+ // Create the final options object
7424
+ s = jQuery.ajaxSetup( {}, options ),
7425
+ // Callbacks context
7426
+ callbackContext = s.context || s,
7427
+ // Context for global events
7428
+ // It's the callbackContext if one was provided in the options
7429
+ // and if it's a DOM node or a jQuery collection
7430
+ globalEventContext = callbackContext !== s &&
7431
+ ( callbackContext.nodeType || callbackContext instanceof jQuery ) ?
7432
+ jQuery( callbackContext ) : jQuery.event,
7433
+ // Deferreds
7434
+ deferred = jQuery.Deferred(),
7435
+ completeDeferred = jQuery.Callbacks( "once memory" ),
7436
+ // Status-dependent callbacks
7437
+ statusCode = s.statusCode || {},
7438
+ // Headers (they are sent all at once)
7439
+ requestHeaders = {},
7440
+ requestHeadersNames = {},
7441
+ // The jqXHR state
7442
+ state = 0,
7443
+ // Default abort message
7444
+ strAbort = "canceled",
7445
+ // Fake xhr
7446
+ jqXHR = {
7447
+
7448
+ readyState: 0,
7449
+
7450
+ // Caches the header
7451
+ setRequestHeader: function( name, value ) {
7452
+ if ( !state ) {
7453
+ var lname = name.toLowerCase();
7454
+ name = requestHeadersNames[ lname ] = requestHeadersNames[ lname ] || name;
7455
+ requestHeaders[ name ] = value;
7456
+ }
7457
+ return this;
7458
+ },
7459
+
7460
+ // Raw string
7461
+ getAllResponseHeaders: function() {
7462
+ return state === 2 ? responseHeadersString : null;
7463
+ },
7464
+
7465
+ // Builds headers hashtable if needed
7466
+ getResponseHeader: function( key ) {
7467
+ var match;
7468
+ if ( state === 2 ) {
7469
+ if ( !responseHeaders ) {
7470
+ responseHeaders = {};
7471
+ while( ( match = rheaders.exec( responseHeadersString ) ) ) {
7472
+ responseHeaders[ match[1].toLowerCase() ] = match[ 2 ];
7473
+ }
7474
+ }
7475
+ match = responseHeaders[ key.toLowerCase() ];
7476
+ }
7477
+ return match === undefined ? null : match;
7478
+ },
7479
+
7480
+ // Overrides response content-type header
7481
+ overrideMimeType: function( type ) {
7482
+ if ( !state ) {
7483
+ s.mimeType = type;
7484
+ }
7485
+ return this;
7486
+ },
7487
+
7488
+ // Cancel the request
7489
+ abort: function( statusText ) {
7490
+ statusText = statusText || strAbort;
7491
+ if ( transport ) {
7492
+ transport.abort( statusText );
7493
+ }
7494
+ done( 0, statusText );
7495
+ return this;
7496
+ }
7497
+ };
7498
+
7499
+ // Callback for when everything is done
7500
+ // It is defined here because jslint complains if it is declared
7501
+ // at the end of the function (which would be more logical and readable)
7502
+ function done( status, nativeStatusText, responses, headers ) {
7503
+ var isSuccess, success, error, response, modified,
7504
+ statusText = nativeStatusText;
7505
+
7506
+ // Called once
7507
+ if ( state === 2 ) {
7508
+ return;
7509
+ }
7510
+
7511
+ // State is "done" now
7512
+ state = 2;
7513
+
7514
+ // Clear timeout if it exists
7515
+ if ( timeoutTimer ) {
7516
+ clearTimeout( timeoutTimer );
7517
+ }
7518
+
7519
+ // Dereference transport for early garbage collection
7520
+ // (no matter how long the jqXHR object will be used)
7521
+ transport = undefined;
7522
+
7523
+ // Cache response headers
7524
+ responseHeadersString = headers || "";
7525
+
7526
+ // Set readyState
7527
+ jqXHR.readyState = status > 0 ? 4 : 0;
7528
+
7529
+ // Get response data
7530
+ if ( responses ) {
7531
+ response = ajaxHandleResponses( s, jqXHR, responses );
7532
+ }
7533
+
7534
+ // If successful, handle type chaining
7535
+ if ( status >= 200 && status < 300 || status === 304 ) {
7536
+
7537
+ // Set the If-Modified-Since and/or If-None-Match header, if in ifModified mode.
7538
+ if ( s.ifModified ) {
7539
+
7540
+ modified = jqXHR.getResponseHeader("Last-Modified");
7541
+ if ( modified ) {
7542
+ jQuery.lastModified[ ifModifiedKey ] = modified;
7543
+ }
7544
+ modified = jqXHR.getResponseHeader("Etag");
7545
+ if ( modified ) {
7546
+ jQuery.etag[ ifModifiedKey ] = modified;
7547
+ }
7548
+ }
7549
+
7550
+ // If not modified
7551
+ if ( status === 304 ) {
7552
+
7553
+ statusText = "notmodified";
7554
+ isSuccess = true;
7555
+
7556
+ // If we have data
7557
+ } else {
7558
+
7559
+ isSuccess = ajaxConvert( s, response );
7560
+ statusText = isSuccess.state;
7561
+ success = isSuccess.data;
7562
+ error = isSuccess.error;
7563
+ isSuccess = !error;
7564
+ }
7565
+ } else {
7566
+ // We extract error from statusText
7567
+ // then normalize statusText and status for non-aborts
7568
+ error = statusText;
7569
+ if ( !statusText || status ) {
7570
+ statusText = "error";
7571
+ if ( status < 0 ) {
7572
+ status = 0;
7573
+ }
7574
+ }
7575
+ }
7576
+
7577
+ // Set data for the fake xhr object
7578
+ jqXHR.status = status;
7579
+ jqXHR.statusText = "" + ( nativeStatusText || statusText );
7580
+
7581
+ // Success/Error
7582
+ if ( isSuccess ) {
7583
+ deferred.resolveWith( callbackContext, [ success, statusText, jqXHR ] );
7584
+ } else {
7585
+ deferred.rejectWith( callbackContext, [ jqXHR, statusText, error ] );
7586
+ }
7587
+
7588
+ // Status-dependent callbacks
7589
+ jqXHR.statusCode( statusCode );
7590
+ statusCode = undefined;
7591
+
7592
+ if ( fireGlobals ) {
7593
+ globalEventContext.trigger( "ajax" + ( isSuccess ? "Success" : "Error" ),
7594
+ [ jqXHR, s, isSuccess ? success : error ] );
7595
+ }
7596
+
7597
+ // Complete
7598
+ completeDeferred.fireWith( callbackContext, [ jqXHR, statusText ] );
7599
+
7600
+ if ( fireGlobals ) {
7601
+ globalEventContext.trigger( "ajaxComplete", [ jqXHR, s ] );
7602
+ // Handle the global AJAX counter
7603
+ if ( !( --jQuery.active ) ) {
7604
+ jQuery.event.trigger( "ajaxStop" );
7605
+ }
7606
+ }
7607
+ }
7608
+
7609
+ // Attach deferreds
7610
+ deferred.promise( jqXHR );
7611
+ jqXHR.success = jqXHR.done;
7612
+ jqXHR.error = jqXHR.fail;
7613
+ jqXHR.complete = completeDeferred.add;
7614
+
7615
+ // Status-dependent callbacks
7616
+ jqXHR.statusCode = function( map ) {
7617
+ if ( map ) {
7618
+ var tmp;
7619
+ if ( state < 2 ) {
7620
+ for ( tmp in map ) {
7621
+ statusCode[ tmp ] = [ statusCode[tmp], map[tmp] ];
7622
+ }
7623
+ } else {
7624
+ tmp = map[ jqXHR.status ];
7625
+ jqXHR.always( tmp );
7626
+ }
7627
+ }
7628
+ return this;
7629
+ };
7630
+
7631
+ // Remove hash character (#7531: and string promotion)
7632
+ // Add protocol if not provided (#5866: IE7 issue with protocol-less urls)
7633
+ // We also use the url parameter if available
7634
+ s.url = ( ( url || s.url ) + "" ).replace( rhash, "" ).replace( rprotocol, ajaxLocParts[ 1 ] + "//" );
7635
+
7636
+ // Extract dataTypes list
7637
+ s.dataTypes = jQuery.trim( s.dataType || "*" ).toLowerCase().split( core_rspace );
7638
+
7639
+ // Determine if a cross-domain request is in order
7640
+ if ( s.crossDomain == null ) {
7641
+ parts = rurl.exec( s.url.toLowerCase() );
7642
+ s.crossDomain = !!( parts &&
7643
+ ( parts[ 1 ] != ajaxLocParts[ 1 ] || parts[ 2 ] != ajaxLocParts[ 2 ] ||
7644
+ ( parts[ 3 ] || ( parts[ 1 ] === "http:" ? 80 : 443 ) ) !=
7645
+ ( ajaxLocParts[ 3 ] || ( ajaxLocParts[ 1 ] === "http:" ? 80 : 443 ) ) )
7646
+ );
7647
+ }
7648
+
7649
+ // Convert data if not already a string
7650
+ if ( s.data && s.processData && typeof s.data !== "string" ) {
7651
+ s.data = jQuery.param( s.data, s.traditional );
7652
+ }
7653
+
7654
+ // Apply prefilters
7655
+ inspectPrefiltersOrTransports( prefilters, s, options, jqXHR );
7656
+
7657
+ // If request was aborted inside a prefilter, stop there
7658
+ if ( state === 2 ) {
7659
+ return jqXHR;
7660
+ }
7661
+
7662
+ // We can fire global events as of now if asked to
7663
+ fireGlobals = s.global;
7664
+
7665
+ // Uppercase the type
7666
+ s.type = s.type.toUpperCase();
7667
+
7668
+ // Determine if request has content
7669
+ s.hasContent = !rnoContent.test( s.type );
7670
+
7671
+ // Watch for a new set of requests
7672
+ if ( fireGlobals && jQuery.active++ === 0 ) {
7673
+ jQuery.event.trigger( "ajaxStart" );
7674
+ }
7675
+
7676
+ // More options handling for requests with no content
7677
+ if ( !s.hasContent ) {
7678
+
7679
+ // If data is available, append data to url
7680
+ if ( s.data ) {
7681
+ s.url += ( rquery.test( s.url ) ? "&" : "?" ) + s.data;
7682
+ // #9682: remove data so that it's not used in an eventual retry
7683
+ delete s.data;
7684
+ }
7685
+
7686
+ // Get ifModifiedKey before adding the anti-cache parameter
7687
+ ifModifiedKey = s.url;
7688
+
7689
+ // Add anti-cache in url if needed
7690
+ if ( s.cache === false ) {
7691
+
7692
+ var ts = jQuery.now(),
7693
+ // try replacing _= if it is there
7694
+ ret = s.url.replace( rts, "$1_=" + ts );
7695
+
7696
+ // if nothing was replaced, add timestamp to the end
7697
+ s.url = ret + ( ( ret === s.url ) ? ( rquery.test( s.url ) ? "&" : "?" ) + "_=" + ts : "" );
7698
+ }
7699
+ }
7700
+
7701
+ // Set the correct header, if data is being sent
7702
+ if ( s.data && s.hasContent && s.contentType !== false || options.contentType ) {
7703
+ jqXHR.setRequestHeader( "Content-Type", s.contentType );
7704
+ }
7705
+
7706
+ // Set the If-Modified-Since and/or If-None-Match header, if in ifModified mode.
7707
+ if ( s.ifModified ) {
7708
+ ifModifiedKey = ifModifiedKey || s.url;
7709
+ if ( jQuery.lastModified[ ifModifiedKey ] ) {
7710
+ jqXHR.setRequestHeader( "If-Modified-Since", jQuery.lastModified[ ifModifiedKey ] );
7711
+ }
7712
+ if ( jQuery.etag[ ifModifiedKey ] ) {
7713
+ jqXHR.setRequestHeader( "If-None-Match", jQuery.etag[ ifModifiedKey ] );
7714
+ }
7715
+ }
7716
+
7717
+ // Set the Accepts header for the server, depending on the dataType
7718
+ jqXHR.setRequestHeader(
7719
+ "Accept",
7720
+ s.dataTypes[ 0 ] && s.accepts[ s.dataTypes[0] ] ?
7721
+ s.accepts[ s.dataTypes[0] ] + ( s.dataTypes[ 0 ] !== "*" ? ", " + allTypes + "; q=0.01" : "" ) :
7722
+ s.accepts[ "*" ]
7723
+ );
7724
+
7725
+ // Check for headers option
7726
+ for ( i in s.headers ) {
7727
+ jqXHR.setRequestHeader( i, s.headers[ i ] );
7728
+ }
7729
+
7730
+ // Allow custom headers/mimetypes and early abort
7731
+ if ( s.beforeSend && ( s.beforeSend.call( callbackContext, jqXHR, s ) === false || state === 2 ) ) {
7732
+ // Abort if not done already and return
7733
+ return jqXHR.abort();
7734
+
7735
+ }
7736
+
7737
+ // aborting is no longer a cancellation
7738
+ strAbort = "abort";
7739
+
7740
+ // Install callbacks on deferreds
7741
+ for ( i in { success: 1, error: 1, complete: 1 } ) {
7742
+ jqXHR[ i ]( s[ i ] );
7743
+ }
7744
+
7745
+ // Get transport
7746
+ transport = inspectPrefiltersOrTransports( transports, s, options, jqXHR );
7747
+
7748
+ // If no transport, we auto-abort
7749
+ if ( !transport ) {
7750
+ done( -1, "No Transport" );
7751
+ } else {
7752
+ jqXHR.readyState = 1;
7753
+ // Send global event
7754
+ if ( fireGlobals ) {
7755
+ globalEventContext.trigger( "ajaxSend", [ jqXHR, s ] );
7756
+ }
7757
+ // Timeout
7758
+ if ( s.async && s.timeout > 0 ) {
7759
+ timeoutTimer = setTimeout( function(){
7760
+ jqXHR.abort( "timeout" );
7761
+ }, s.timeout );
7762
+ }
7763
+
7764
+ try {
7765
+ state = 1;
7766
+ transport.send( requestHeaders, done );
7767
+ } catch (e) {
7768
+ // Propagate exception as error if not done
7769
+ if ( state < 2 ) {
7770
+ done( -1, e );
7771
+ // Simply rethrow otherwise
7772
+ } else {
7773
+ throw e;
7774
+ }
7775
+ }
7776
+ }
7777
+
7778
+ return jqXHR;
7779
+ },
7780
+
7781
+ // Counter for holding the number of active queries
7782
+ active: 0,
7783
+
7784
+ // Last-Modified header cache for next request
7785
+ lastModified: {},
7786
+ etag: {}
7787
+
7788
+ });
7789
+
7790
+ /* Handles responses to an ajax request:
7791
+ * - sets all responseXXX fields accordingly
7792
+ * - finds the right dataType (mediates between content-type and expected dataType)
7793
+ * - returns the corresponding response
7794
+ */
7795
+ function ajaxHandleResponses( s, jqXHR, responses ) {
7796
+
7797
+ var ct, type, finalDataType, firstDataType,
7798
+ contents = s.contents,
7799
+ dataTypes = s.dataTypes,
7800
+ responseFields = s.responseFields;
7801
+
7802
+ // Fill responseXXX fields
7803
+ for ( type in responseFields ) {
7804
+ if ( type in responses ) {
7805
+ jqXHR[ responseFields[type] ] = responses[ type ];
7806
+ }
7807
+ }
7808
+
7809
+ // Remove auto dataType and get content-type in the process
7810
+ while( dataTypes[ 0 ] === "*" ) {
7811
+ dataTypes.shift();
7812
+ if ( ct === undefined ) {
7813
+ ct = s.mimeType || jqXHR.getResponseHeader( "content-type" );
7814
+ }
7815
+ }
7816
+
7817
+ // Check if we're dealing with a known content-type
7818
+ if ( ct ) {
7819
+ for ( type in contents ) {
7820
+ if ( contents[ type ] && contents[ type ].test( ct ) ) {
7821
+ dataTypes.unshift( type );
7822
+ break;
7823
+ }
7824
+ }
7825
+ }
7826
+
7827
+ // Check to see if we have a response for the expected dataType
7828
+ if ( dataTypes[ 0 ] in responses ) {
7829
+ finalDataType = dataTypes[ 0 ];
7830
+ } else {
7831
+ // Try convertible dataTypes
7832
+ for ( type in responses ) {
7833
+ if ( !dataTypes[ 0 ] || s.converters[ type + " " + dataTypes[0] ] ) {
7834
+ finalDataType = type;
7835
+ break;
7836
+ }
7837
+ if ( !firstDataType ) {
7838
+ firstDataType = type;
7839
+ }
7840
+ }
7841
+ // Or just use first one
7842
+ finalDataType = finalDataType || firstDataType;
7843
+ }
7844
+
7845
+ // If we found a dataType
7846
+ // We add the dataType to the list if needed
7847
+ // and return the corresponding response
7848
+ if ( finalDataType ) {
7849
+ if ( finalDataType !== dataTypes[ 0 ] ) {
7850
+ dataTypes.unshift( finalDataType );
7851
+ }
7852
+ return responses[ finalDataType ];
7853
+ }
7854
+ }
7855
+
7856
+ // Chain conversions given the request and the original response
7857
+ function ajaxConvert( s, response ) {
7858
+
7859
+ var conv, conv2, current, tmp,
7860
+ // Work with a copy of dataTypes in case we need to modify it for conversion
7861
+ dataTypes = s.dataTypes.slice(),
7862
+ prev = dataTypes[ 0 ],
7863
+ converters = {},
7864
+ i = 0;
7865
+
7866
+ // Apply the dataFilter if provided
7867
+ if ( s.dataFilter ) {
7868
+ response = s.dataFilter( response, s.dataType );
7869
+ }
7870
+
7871
+ // Create converters map with lowercased keys
7872
+ if ( dataTypes[ 1 ] ) {
7873
+ for ( conv in s.converters ) {
7874
+ converters[ conv.toLowerCase() ] = s.converters[ conv ];
7875
+ }
7876
+ }
7877
+
7878
+ // Convert to each sequential dataType, tolerating list modification
7879
+ for ( ; (current = dataTypes[++i]); ) {
7880
+
7881
+ // There's only work to do if current dataType is non-auto
7882
+ if ( current !== "*" ) {
7883
+
7884
+ // Convert response if prev dataType is non-auto and differs from current
7885
+ if ( prev !== "*" && prev !== current ) {
7886
+
7887
+ // Seek a direct converter
7888
+ conv = converters[ prev + " " + current ] || converters[ "* " + current ];
7889
+
7890
+ // If none found, seek a pair
7891
+ if ( !conv ) {
7892
+ for ( conv2 in converters ) {
7893
+
7894
+ // If conv2 outputs current
7895
+ tmp = conv2.split(" ");
7896
+ if ( tmp[ 1 ] === current ) {
7897
+
7898
+ // If prev can be converted to accepted input
7899
+ conv = converters[ prev + " " + tmp[ 0 ] ] ||
7900
+ converters[ "* " + tmp[ 0 ] ];
7901
+ if ( conv ) {
7902
+ // Condense equivalence converters
7903
+ if ( conv === true ) {
7904
+ conv = converters[ conv2 ];
7905
+
7906
+ // Otherwise, insert the intermediate dataType
7907
+ } else if ( converters[ conv2 ] !== true ) {
7908
+ current = tmp[ 0 ];
7909
+ dataTypes.splice( i--, 0, current );
7910
+ }
7911
+
7912
+ break;
7913
+ }
7914
+ }
7915
+ }
7916
+ }
7917
+
7918
+ // Apply converter (if not an equivalence)
7919
+ if ( conv !== true ) {
7920
+
7921
+ // Unless errors are allowed to bubble, catch and return them
7922
+ if ( conv && s["throws"] ) {
7923
+ response = conv( response );
7924
+ } else {
7925
+ try {
7926
+ response = conv( response );
7927
+ } catch ( e ) {
7928
+ return { state: "parsererror", error: conv ? e : "No conversion from " + prev + " to " + current };
7929
+ }
7930
+ }
7931
+ }
7932
+ }
7933
+
7934
+ // Update prev for next iteration
7935
+ prev = current;
7936
+ }
7937
+ }
7938
+
7939
+ return { state: "success", data: response };
7940
+ }
7941
+ var oldCallbacks = [],
7942
+ rquestion = /\?/,
7943
+ rjsonp = /(=)\?(?=&|$)|\?\?/,
7944
+ nonce = jQuery.now();
7945
+
7946
+ // Default jsonp settings
7947
+ jQuery.ajaxSetup({
7948
+ jsonp: "callback",
7949
+ jsonpCallback: function() {
7950
+ var callback = oldCallbacks.pop() || ( jQuery.expando + "_" + ( nonce++ ) );
7951
+ this[ callback ] = true;
7952
+ return callback;
7953
+ }
7954
+ });
7955
+
7956
+ // Detect, normalize options and install callbacks for jsonp requests
7957
+ jQuery.ajaxPrefilter( "json jsonp", function( s, originalSettings, jqXHR ) {
7958
+
7959
+ var callbackName, overwritten, responseContainer,
7960
+ data = s.data,
7961
+ url = s.url,
7962
+ hasCallback = s.jsonp !== false,
7963
+ replaceInUrl = hasCallback && rjsonp.test( url ),
7964
+ replaceInData = hasCallback && !replaceInUrl && typeof data === "string" &&
7965
+ !( s.contentType || "" ).indexOf("application/x-www-form-urlencoded") &&
7966
+ rjsonp.test( data );
7967
+
7968
+ // Handle iff the expected data type is "jsonp" or we have a parameter to set
7969
+ if ( s.dataTypes[ 0 ] === "jsonp" || replaceInUrl || replaceInData ) {
7970
+
7971
+ // Get callback name, remembering preexisting value associated with it
7972
+ callbackName = s.jsonpCallback = jQuery.isFunction( s.jsonpCallback ) ?
7973
+ s.jsonpCallback() :
7974
+ s.jsonpCallback;
7975
+ overwritten = window[ callbackName ];
7976
+
7977
+ // Insert callback into url or form data
7978
+ if ( replaceInUrl ) {
7979
+ s.url = url.replace( rjsonp, "$1" + callbackName );
7980
+ } else if ( replaceInData ) {
7981
+ s.data = data.replace( rjsonp, "$1" + callbackName );
7982
+ } else if ( hasCallback ) {
7983
+ s.url += ( rquestion.test( url ) ? "&" : "?" ) + s.jsonp + "=" + callbackName;
7984
+ }
7985
+
7986
+ // Use data converter to retrieve json after script execution
7987
+ s.converters["script json"] = function() {
7988
+ if ( !responseContainer ) {
7989
+ jQuery.error( callbackName + " was not called" );
7990
+ }
7991
+ return responseContainer[ 0 ];
7992
+ };
7993
+
7994
+ // force json dataType
7995
+ s.dataTypes[ 0 ] = "json";
7996
+
7997
+ // Install callback
7998
+ window[ callbackName ] = function() {
7999
+ responseContainer = arguments;
8000
+ };
8001
+
8002
+ // Clean-up function (fires after converters)
8003
+ jqXHR.always(function() {
8004
+ // Restore preexisting value
8005
+ window[ callbackName ] = overwritten;
8006
+
8007
+ // Save back as free
8008
+ if ( s[ callbackName ] ) {
8009
+ // make sure that re-using the options doesn't screw things around
8010
+ s.jsonpCallback = originalSettings.jsonpCallback;
8011
+
8012
+ // save the callback name for future use
8013
+ oldCallbacks.push( callbackName );
8014
+ }
8015
+
8016
+ // Call if it was a function and we have a response
8017
+ if ( responseContainer && jQuery.isFunction( overwritten ) ) {
8018
+ overwritten( responseContainer[ 0 ] );
8019
+ }
8020
+
8021
+ responseContainer = overwritten = undefined;
8022
+ });
8023
+
8024
+ // Delegate to script
8025
+ return "script";
8026
+ }
8027
+ });
8028
+ // Install script dataType
8029
+ jQuery.ajaxSetup({
8030
+ accepts: {
8031
+ script: "text/javascript, application/javascript, application/ecmascript, application/x-ecmascript"
8032
+ },
8033
+ contents: {
8034
+ script: /javascript|ecmascript/
8035
+ },
8036
+ converters: {
8037
+ "text script": function( text ) {
8038
+ jQuery.globalEval( text );
8039
+ return text;
8040
+ }
8041
+ }
8042
+ });
8043
+
8044
+ // Handle cache's special case and global
8045
+ jQuery.ajaxPrefilter( "script", function( s ) {
8046
+ if ( s.cache === undefined ) {
8047
+ s.cache = false;
8048
+ }
8049
+ if ( s.crossDomain ) {
8050
+ s.type = "GET";
8051
+ s.global = false;
8052
+ }
8053
+ });
8054
+
8055
+ // Bind script tag hack transport
8056
+ jQuery.ajaxTransport( "script", function(s) {
8057
+
8058
+ // This transport only deals with cross domain requests
8059
+ if ( s.crossDomain ) {
8060
+
8061
+ var script,
8062
+ head = document.head || document.getElementsByTagName( "head" )[0] || document.documentElement;
8063
+
8064
+ return {
8065
+
8066
+ send: function( _, callback ) {
8067
+
8068
+ script = document.createElement( "script" );
8069
+
8070
+ script.async = "async";
8071
+
8072
+ if ( s.scriptCharset ) {
8073
+ script.charset = s.scriptCharset;
8074
+ }
8075
+
8076
+ script.src = s.url;
8077
+
8078
+ // Attach handlers for all browsers
8079
+ script.onload = script.onreadystatechange = function( _, isAbort ) {
8080
+
8081
+ if ( isAbort || !script.readyState || /loaded|complete/.test( script.readyState ) ) {
8082
+
8083
+ // Handle memory leak in IE
8084
+ script.onload = script.onreadystatechange = null;
8085
+
8086
+ // Remove the script
8087
+ if ( head && script.parentNode ) {
8088
+ head.removeChild( script );
8089
+ }
8090
+
8091
+ // Dereference the script
8092
+ script = undefined;
8093
+
8094
+ // Callback if not abort
8095
+ if ( !isAbort ) {
8096
+ callback( 200, "success" );
8097
+ }
8098
+ }
8099
+ };
8100
+ // Use insertBefore instead of appendChild to circumvent an IE6 bug.
8101
+ // This arises when a base node is used (#2709 and #4378).
8102
+ head.insertBefore( script, head.firstChild );
8103
+ },
8104
+
8105
+ abort: function() {
8106
+ if ( script ) {
8107
+ script.onload( 0, 1 );
8108
+ }
8109
+ }
8110
+ };
8111
+ }
8112
+ });
8113
+ var xhrCallbacks,
8114
+ // #5280: Internet Explorer will keep connections alive if we don't abort on unload
8115
+ xhrOnUnloadAbort = window.ActiveXObject ? function() {
8116
+ // Abort all pending requests
8117
+ for ( var key in xhrCallbacks ) {
8118
+ xhrCallbacks[ key ]( 0, 1 );
8119
+ }
8120
+ } : false,
8121
+ xhrId = 0;
8122
+
8123
+ // Functions to create xhrs
8124
+ function createStandardXHR() {
8125
+ try {
8126
+ return new window.XMLHttpRequest();
8127
+ } catch( e ) {}
8128
+ }
8129
+
8130
+ function createActiveXHR() {
8131
+ try {
8132
+ return new window.ActiveXObject( "Microsoft.XMLHTTP" );
8133
+ } catch( e ) {}
8134
+ }
8135
+
8136
+ // Create the request object
8137
+ // (This is still attached to ajaxSettings for backward compatibility)
8138
+ jQuery.ajaxSettings.xhr = window.ActiveXObject ?
8139
+ /* Microsoft failed to properly
8140
+ * implement the XMLHttpRequest in IE7 (can't request local files),
8141
+ * so we use the ActiveXObject when it is available
8142
+ * Additionally XMLHttpRequest can be disabled in IE7/IE8 so
8143
+ * we need a fallback.
8144
+ */
8145
+ function() {
8146
+ return !this.isLocal && createStandardXHR() || createActiveXHR();
8147
+ } :
8148
+ // For all other browsers, use the standard XMLHttpRequest object
8149
+ createStandardXHR;
8150
+
8151
+ // Determine support properties
8152
+ (function( xhr ) {
8153
+ jQuery.extend( jQuery.support, {
8154
+ ajax: !!xhr,
8155
+ cors: !!xhr && ( "withCredentials" in xhr )
8156
+ });
8157
+ })( jQuery.ajaxSettings.xhr() );
8158
+
8159
+ // Create transport if the browser can provide an xhr
8160
+ if ( jQuery.support.ajax ) {
8161
+
8162
+ jQuery.ajaxTransport(function( s ) {
8163
+ // Cross domain only allowed if supported through XMLHttpRequest
8164
+ if ( !s.crossDomain || jQuery.support.cors ) {
8165
+
8166
+ var callback;
8167
+
8168
+ return {
8169
+ send: function( headers, complete ) {
8170
+
8171
+ // Get a new xhr
8172
+ var handle, i,
8173
+ xhr = s.xhr();
8174
+
8175
+ // Open the socket
8176
+ // Passing null username, generates a login popup on Opera (#2865)
8177
+ if ( s.username ) {
8178
+ xhr.open( s.type, s.url, s.async, s.username, s.password );
8179
+ } else {
8180
+ xhr.open( s.type, s.url, s.async );
8181
+ }
8182
+
8183
+ // Apply custom fields if provided
8184
+ if ( s.xhrFields ) {
8185
+ for ( i in s.xhrFields ) {
8186
+ xhr[ i ] = s.xhrFields[ i ];
8187
+ }
8188
+ }
8189
+
8190
+ // Override mime type if needed
8191
+ if ( s.mimeType && xhr.overrideMimeType ) {
8192
+ xhr.overrideMimeType( s.mimeType );
8193
+ }
8194
+
8195
+ // X-Requested-With header
8196
+ // For cross-domain requests, seeing as conditions for a preflight are
8197
+ // akin to a jigsaw puzzle, we simply never set it to be sure.
8198
+ // (it can always be set on a per-request basis or even using ajaxSetup)
8199
+ // For same-domain requests, won't change header if already provided.
8200
+ if ( !s.crossDomain && !headers["X-Requested-With"] ) {
8201
+ headers[ "X-Requested-With" ] = "XMLHttpRequest";
8202
+ }
8203
+
8204
+ // Need an extra try/catch for cross domain requests in Firefox 3
8205
+ try {
8206
+ for ( i in headers ) {
8207
+ xhr.setRequestHeader( i, headers[ i ] );
8208
+ }
8209
+ } catch( _ ) {}
8210
+
8211
+ // Do send the request
8212
+ // This may raise an exception which is actually
8213
+ // handled in jQuery.ajax (so no try/catch here)
8214
+ xhr.send( ( s.hasContent && s.data ) || null );
8215
+
8216
+ // Listener
8217
+ callback = function( _, isAbort ) {
8218
+
8219
+ var status,
8220
+ statusText,
8221
+ responseHeaders,
8222
+ responses,
8223
+ xml;
8224
+
8225
+ // Firefox throws exceptions when accessing properties
8226
+ // of an xhr when a network error occurred
8227
+ // http://helpful.knobs-dials.com/index.php/Component_returned_failure_code:_0x80040111_(NS_ERROR_NOT_AVAILABLE)
8228
+ try {
8229
+
8230
+ // Was never called and is aborted or complete
8231
+ if ( callback && ( isAbort || xhr.readyState === 4 ) ) {
8232
+
8233
+ // Only called once
8234
+ callback = undefined;
8235
+
8236
+ // Do not keep as active anymore
8237
+ if ( handle ) {
8238
+ xhr.onreadystatechange = jQuery.noop;
8239
+ if ( xhrOnUnloadAbort ) {
8240
+ delete xhrCallbacks[ handle ];
8241
+ }
8242
+ }
8243
+
8244
+ // If it's an abort
8245
+ if ( isAbort ) {
8246
+ // Abort it manually if needed
8247
+ if ( xhr.readyState !== 4 ) {
8248
+ xhr.abort();
8249
+ }
8250
+ } else {
8251
+ status = xhr.status;
8252
+ responseHeaders = xhr.getAllResponseHeaders();
8253
+ responses = {};
8254
+ xml = xhr.responseXML;
8255
+
8256
+ // Construct response list
8257
+ if ( xml && xml.documentElement /* #4958 */ ) {
8258
+ responses.xml = xml;
8259
+ }
8260
+
8261
+ // When requesting binary data, IE6-9 will throw an exception
8262
+ // on any attempt to access responseText (#11426)
8263
+ try {
8264
+ responses.text = xhr.responseText;
8265
+ } catch( _ ) {
8266
+ }
8267
+
8268
+ // Firefox throws an exception when accessing
8269
+ // statusText for faulty cross-domain requests
8270
+ try {
8271
+ statusText = xhr.statusText;
8272
+ } catch( e ) {
8273
+ // We normalize with Webkit giving an empty statusText
8274
+ statusText = "";
8275
+ }
8276
+
8277
+ // Filter status for non standard behaviors
8278
+
8279
+ // If the request is local and we have data: assume a success
8280
+ // (success with no data won't get notified, that's the best we
8281
+ // can do given current implementations)
8282
+ if ( !status && s.isLocal && !s.crossDomain ) {
8283
+ status = responses.text ? 200 : 404;
8284
+ // IE - #1450: sometimes returns 1223 when it should be 204
8285
+ } else if ( status === 1223 ) {
8286
+ status = 204;
8287
+ }
8288
+ }
8289
+ }
8290
+ } catch( firefoxAccessException ) {
8291
+ if ( !isAbort ) {
8292
+ complete( -1, firefoxAccessException );
8293
+ }
8294
+ }
8295
+
8296
+ // Call complete if needed
8297
+ if ( responses ) {
8298
+ complete( status, statusText, responses, responseHeaders );
8299
+ }
8300
+ };
8301
+
8302
+ if ( !s.async ) {
8303
+ // if we're in sync mode we fire the callback
8304
+ callback();
8305
+ } else if ( xhr.readyState === 4 ) {
8306
+ // (IE6 & IE7) if it's in cache and has been
8307
+ // retrieved directly we need to fire the callback
8308
+ setTimeout( callback, 0 );
8309
+ } else {
8310
+ handle = ++xhrId;
8311
+ if ( xhrOnUnloadAbort ) {
8312
+ // Create the active xhrs callbacks list if needed
8313
+ // and attach the unload handler
8314
+ if ( !xhrCallbacks ) {
8315
+ xhrCallbacks = {};
8316
+ jQuery( window ).unload( xhrOnUnloadAbort );
8317
+ }
8318
+ // Add to list of active xhrs callbacks
8319
+ xhrCallbacks[ handle ] = callback;
8320
+ }
8321
+ xhr.onreadystatechange = callback;
8322
+ }
8323
+ },
8324
+
8325
+ abort: function() {
8326
+ if ( callback ) {
8327
+ callback(0,1);
8328
+ }
8329
+ }
8330
+ };
8331
+ }
8332
+ });
8333
+ }
8334
+ var fxNow, timerId,
8335
+ rfxtypes = /^(?:toggle|show|hide)$/,
8336
+ rfxnum = new RegExp( "^(?:([-+])=|)(" + core_pnum + ")([a-z%]*)$", "i" ),
8337
+ rrun = /queueHooks$/,
8338
+ animationPrefilters = [ defaultPrefilter ],
8339
+ tweeners = {
8340
+ "*": [function( prop, value ) {
8341
+ var end, unit, prevScale,
8342
+ tween = this.createTween( prop, value ),
8343
+ parts = rfxnum.exec( value ),
8344
+ target = tween.cur(),
8345
+ start = +target || 0,
8346
+ scale = 1;
8347
+
8348
+ if ( parts ) {
8349
+ end = +parts[2];
8350
+ unit = parts[3] || ( jQuery.cssNumber[ prop ] ? "" : "px" );
8351
+
8352
+ // We need to compute starting value
8353
+ if ( unit !== "px" && start ) {
8354
+ // Iteratively approximate from a nonzero starting point
8355
+ // Prefer the current property, because this process will be trivial if it uses the same units
8356
+ // Fallback to end or a simple constant
8357
+ start = jQuery.css( tween.elem, prop, true ) || end || 1;
8358
+
8359
+ do {
8360
+ // If previous iteration zeroed out, double until we get *something*
8361
+ // Use a string for doubling factor so we don't accidentally see scale as unchanged below
8362
+ prevScale = scale = scale || ".5";
8363
+
8364
+ // Adjust and apply
8365
+ start = start / scale;
8366
+ jQuery.style( tween.elem, prop, start + unit );
8367
+
8368
+ // Update scale, tolerating zeroes from tween.cur()
8369
+ scale = tween.cur() / target;
8370
+
8371
+ // Stop looping if we've hit the mark or scale is unchanged
8372
+ } while ( scale !== 1 && scale !== prevScale );
8373
+ }
8374
+
8375
+ tween.unit = unit;
8376
+ tween.start = start;
8377
+ // If a +=/-= token was provided, we're doing a relative animation
8378
+ tween.end = parts[1] ? start + ( parts[1] + 1 ) * end : end;
8379
+ }
8380
+ return tween;
8381
+ }]
8382
+ };
8383
+
8384
+ // Animations created synchronously will run synchronously
8385
+ function createFxNow() {
8386
+ setTimeout(function() {
8387
+ fxNow = undefined;
8388
+ }, 0 );
8389
+ return ( fxNow = jQuery.now() );
8390
+ }
8391
+
8392
+ function createTweens( animation, props ) {
8393
+ jQuery.each( props, function( prop, value ) {
8394
+ var collection = ( tweeners[ prop ] || [] ).concat( tweeners[ "*" ] ),
8395
+ index = 0,
8396
+ length = collection.length;
8397
+ for ( ; index < length; index++ ) {
8398
+ if ( collection[ index ].call( animation, prop, value ) ) {
8399
+
8400
+ // we're done with this property
8401
+ return;
8402
+ }
8403
+ }
8404
+ });
8405
+ }
8406
+
8407
+ function Animation( elem, properties, options ) {
8408
+ var result,
8409
+ index = 0,
8410
+ tweenerIndex = 0,
8411
+ length = animationPrefilters.length,
8412
+ deferred = jQuery.Deferred().always( function() {
8413
+ // don't match elem in the :animated selector
8414
+ delete tick.elem;
8415
+ }),
8416
+ tick = function() {
8417
+ var currentTime = fxNow || createFxNow(),
8418
+ remaining = Math.max( 0, animation.startTime + animation.duration - currentTime ),
8419
+ percent = 1 - ( remaining / animation.duration || 0 ),
8420
+ index = 0,
8421
+ length = animation.tweens.length;
8422
+
8423
+ for ( ; index < length ; index++ ) {
8424
+ animation.tweens[ index ].run( percent );
8425
+ }
8426
+
8427
+ deferred.notifyWith( elem, [ animation, percent, remaining ]);
8428
+
8429
+ if ( percent < 1 && length ) {
8430
+ return remaining;
8431
+ } else {
8432
+ deferred.resolveWith( elem, [ animation ] );
8433
+ return false;
8434
+ }
8435
+ },
8436
+ animation = deferred.promise({
8437
+ elem: elem,
8438
+ props: jQuery.extend( {}, properties ),
8439
+ opts: jQuery.extend( true, { specialEasing: {} }, options ),
8440
+ originalProperties: properties,
8441
+ originalOptions: options,
8442
+ startTime: fxNow || createFxNow(),
8443
+ duration: options.duration,
8444
+ tweens: [],
8445
+ createTween: function( prop, end, easing ) {
8446
+ var tween = jQuery.Tween( elem, animation.opts, prop, end,
8447
+ animation.opts.specialEasing[ prop ] || animation.opts.easing );
8448
+ animation.tweens.push( tween );
8449
+ return tween;
8450
+ },
8451
+ stop: function( gotoEnd ) {
8452
+ var index = 0,
8453
+ // if we are going to the end, we want to run all the tweens
8454
+ // otherwise we skip this part
8455
+ length = gotoEnd ? animation.tweens.length : 0;
8456
+
8457
+ for ( ; index < length ; index++ ) {
8458
+ animation.tweens[ index ].run( 1 );
8459
+ }
8460
+
8461
+ // resolve when we played the last frame
8462
+ // otherwise, reject
8463
+ if ( gotoEnd ) {
8464
+ deferred.resolveWith( elem, [ animation, gotoEnd ] );
8465
+ } else {
8466
+ deferred.rejectWith( elem, [ animation, gotoEnd ] );
8467
+ }
8468
+ return this;
8469
+ }
8470
+ }),
8471
+ props = animation.props;
8472
+
8473
+ propFilter( props, animation.opts.specialEasing );
8474
+
8475
+ for ( ; index < length ; index++ ) {
8476
+ result = animationPrefilters[ index ].call( animation, elem, props, animation.opts );
8477
+ if ( result ) {
8478
+ return result;
8479
+ }
8480
+ }
8481
+
8482
+ createTweens( animation, props );
8483
+
8484
+ if ( jQuery.isFunction( animation.opts.start ) ) {
8485
+ animation.opts.start.call( elem, animation );
8486
+ }
8487
+
8488
+ jQuery.fx.timer(
8489
+ jQuery.extend( tick, {
8490
+ anim: animation,
8491
+ queue: animation.opts.queue,
8492
+ elem: elem
8493
+ })
8494
+ );
8495
+
8496
+ // attach callbacks from options
8497
+ return animation.progress( animation.opts.progress )
8498
+ .done( animation.opts.done, animation.opts.complete )
8499
+ .fail( animation.opts.fail )
8500
+ .always( animation.opts.always );
8501
+ }
8502
+
8503
+ function propFilter( props, specialEasing ) {
8504
+ var index, name, easing, value, hooks;
8505
+
8506
+ // camelCase, specialEasing and expand cssHook pass
8507
+ for ( index in props ) {
8508
+ name = jQuery.camelCase( index );
8509
+ easing = specialEasing[ name ];
8510
+ value = props[ index ];
8511
+ if ( jQuery.isArray( value ) ) {
8512
+ easing = value[ 1 ];
8513
+ value = props[ index ] = value[ 0 ];
8514
+ }
8515
+
8516
+ if ( index !== name ) {
8517
+ props[ name ] = value;
8518
+ delete props[ index ];
8519
+ }
8520
+
8521
+ hooks = jQuery.cssHooks[ name ];
8522
+ if ( hooks && "expand" in hooks ) {
8523
+ value = hooks.expand( value );
8524
+ delete props[ name ];
8525
+
8526
+ // not quite $.extend, this wont overwrite keys already present.
8527
+ // also - reusing 'index' from above because we have the correct "name"
8528
+ for ( index in value ) {
8529
+ if ( !( index in props ) ) {
8530
+ props[ index ] = value[ index ];
8531
+ specialEasing[ index ] = easing;
8532
+ }
8533
+ }
8534
+ } else {
8535
+ specialEasing[ name ] = easing;
8536
+ }
8537
+ }
8538
+ }
8539
+
8540
+ jQuery.Animation = jQuery.extend( Animation, {
8541
+
8542
+ tweener: function( props, callback ) {
8543
+ if ( jQuery.isFunction( props ) ) {
8544
+ callback = props;
8545
+ props = [ "*" ];
8546
+ } else {
8547
+ props = props.split(" ");
8548
+ }
8549
+
8550
+ var prop,
8551
+ index = 0,
8552
+ length = props.length;
8553
+
8554
+ for ( ; index < length ; index++ ) {
8555
+ prop = props[ index ];
8556
+ tweeners[ prop ] = tweeners[ prop ] || [];
8557
+ tweeners[ prop ].unshift( callback );
8558
+ }
8559
+ },
8560
+
8561
+ prefilter: function( callback, prepend ) {
8562
+ if ( prepend ) {
8563
+ animationPrefilters.unshift( callback );
8564
+ } else {
8565
+ animationPrefilters.push( callback );
8566
+ }
8567
+ }
8568
+ });
8569
+
8570
+ function defaultPrefilter( elem, props, opts ) {
8571
+ var index, prop, value, length, dataShow, tween, hooks, oldfire,
8572
+ anim = this,
8573
+ style = elem.style,
8574
+ orig = {},
8575
+ handled = [],
8576
+ hidden = elem.nodeType && isHidden( elem );
8577
+
8578
+ // handle queue: false promises
8579
+ if ( !opts.queue ) {
8580
+ hooks = jQuery._queueHooks( elem, "fx" );
8581
+ if ( hooks.unqueued == null ) {
8582
+ hooks.unqueued = 0;
8583
+ oldfire = hooks.empty.fire;
8584
+ hooks.empty.fire = function() {
8585
+ if ( !hooks.unqueued ) {
8586
+ oldfire();
8587
+ }
8588
+ };
8589
+ }
8590
+ hooks.unqueued++;
8591
+
8592
+ anim.always(function() {
8593
+ // doing this makes sure that the complete handler will be called
8594
+ // before this completes
8595
+ anim.always(function() {
8596
+ hooks.unqueued--;
8597
+ if ( !jQuery.queue( elem, "fx" ).length ) {
8598
+ hooks.empty.fire();
8599
+ }
8600
+ });
8601
+ });
8602
+ }
8603
+
8604
+ // height/width overflow pass
8605
+ if ( elem.nodeType === 1 && ( "height" in props || "width" in props ) ) {
8606
+ // Make sure that nothing sneaks out
8607
+ // Record all 3 overflow attributes because IE does not
8608
+ // change the overflow attribute when overflowX and
8609
+ // overflowY are set to the same value
8610
+ opts.overflow = [ style.overflow, style.overflowX, style.overflowY ];
8611
+
8612
+ // Set display property to inline-block for height/width
8613
+ // animations on inline elements that are having width/height animated
8614
+ if ( jQuery.css( elem, "display" ) === "inline" &&
8615
+ jQuery.css( elem, "float" ) === "none" ) {
8616
+
8617
+ // inline-level elements accept inline-block;
8618
+ // block-level elements need to be inline with layout
8619
+ if ( !jQuery.support.inlineBlockNeedsLayout || css_defaultDisplay( elem.nodeName ) === "inline" ) {
8620
+ style.display = "inline-block";
8621
+
8622
+ } else {
8623
+ style.zoom = 1;
8624
+ }
8625
+ }
8626
+ }
8627
+
8628
+ if ( opts.overflow ) {
8629
+ style.overflow = "hidden";
8630
+ if ( !jQuery.support.shrinkWrapBlocks ) {
8631
+ anim.done(function() {
8632
+ style.overflow = opts.overflow[ 0 ];
8633
+ style.overflowX = opts.overflow[ 1 ];
8634
+ style.overflowY = opts.overflow[ 2 ];
8635
+ });
8636
+ }
8637
+ }
8638
+
8639
+
8640
+ // show/hide pass
8641
+ for ( index in props ) {
8642
+ value = props[ index ];
8643
+ if ( rfxtypes.exec( value ) ) {
8644
+ delete props[ index ];
8645
+ if ( value === ( hidden ? "hide" : "show" ) ) {
8646
+ continue;
8647
+ }
8648
+ handled.push( index );
8649
+ }
8650
+ }
8651
+
8652
+ length = handled.length;
8653
+ if ( length ) {
8654
+ dataShow = jQuery._data( elem, "fxshow" ) || jQuery._data( elem, "fxshow", {} );
8655
+ if ( hidden ) {
8656
+ jQuery( elem ).show();
8657
+ } else {
8658
+ anim.done(function() {
8659
+ jQuery( elem ).hide();
8660
+ });
8661
+ }
8662
+ anim.done(function() {
8663
+ var prop;
8664
+ jQuery.removeData( elem, "fxshow", true );
8665
+ for ( prop in orig ) {
8666
+ jQuery.style( elem, prop, orig[ prop ] );
8667
+ }
8668
+ });
8669
+ for ( index = 0 ; index < length ; index++ ) {
8670
+ prop = handled[ index ];
8671
+ tween = anim.createTween( prop, hidden ? dataShow[ prop ] : 0 );
8672
+ orig[ prop ] = dataShow[ prop ] || jQuery.style( elem, prop );
8673
+
8674
+ if ( !( prop in dataShow ) ) {
8675
+ dataShow[ prop ] = tween.start;
8676
+ if ( hidden ) {
8677
+ tween.end = tween.start;
8678
+ tween.start = prop === "width" || prop === "height" ? 1 : 0;
8679
+ }
8680
+ }
8681
+ }
8682
+ }
8683
+ }
8684
+
8685
+ function Tween( elem, options, prop, end, easing ) {
8686
+ return new Tween.prototype.init( elem, options, prop, end, easing );
8687
+ }
8688
+ jQuery.Tween = Tween;
8689
+
8690
+ Tween.prototype = {
8691
+ constructor: Tween,
8692
+ init: function( elem, options, prop, end, easing, unit ) {
8693
+ this.elem = elem;
8694
+ this.prop = prop;
8695
+ this.easing = easing || "swing";
8696
+ this.options = options;
8697
+ this.start = this.now = this.cur();
8698
+ this.end = end;
8699
+ this.unit = unit || ( jQuery.cssNumber[ prop ] ? "" : "px" );
8700
+ },
8701
+ cur: function() {
8702
+ var hooks = Tween.propHooks[ this.prop ];
8703
+
8704
+ return hooks && hooks.get ?
8705
+ hooks.get( this ) :
8706
+ Tween.propHooks._default.get( this );
8707
+ },
8708
+ run: function( percent ) {
8709
+ var eased,
8710
+ hooks = Tween.propHooks[ this.prop ];
8711
+
8712
+ this.pos = eased = jQuery.easing[ this.easing ]( percent, this.options.duration * percent, 0, 1, this.options.duration );
8713
+ this.now = ( this.end - this.start ) * eased + this.start;
8714
+
8715
+ if ( this.options.step ) {
8716
+ this.options.step.call( this.elem, this.now, this );
8717
+ }
8718
+
8719
+ if ( hooks && hooks.set ) {
8720
+ hooks.set( this );
8721
+ } else {
8722
+ Tween.propHooks._default.set( this );
8723
+ }
8724
+ return this;
8725
+ }
8726
+ };
8727
+
8728
+ Tween.prototype.init.prototype = Tween.prototype;
8729
+
8730
+ Tween.propHooks = {
8731
+ _default: {
8732
+ get: function( tween ) {
8733
+ var result;
8734
+
8735
+ if ( tween.elem[ tween.prop ] != null &&
8736
+ (!tween.elem.style || tween.elem.style[ tween.prop ] == null) ) {
8737
+ return tween.elem[ tween.prop ];
8738
+ }
8739
+
8740
+ // passing any value as a 4th parameter to .css will automatically
8741
+ // attempt a parseFloat and fallback to a string if the parse fails
8742
+ // so, simple values such as "10px" are parsed to Float.
8743
+ // complex values such as "rotate(1rad)" are returned as is.
8744
+ result = jQuery.css( tween.elem, tween.prop, false, "" );
8745
+ // Empty strings, null, undefined and "auto" are converted to 0.
8746
+ return !result || result === "auto" ? 0 : result;
8747
+ },
8748
+ set: function( tween ) {
8749
+ // use step hook for back compat - use cssHook if its there - use .style if its
8750
+ // available and use plain properties where available
8751
+ if ( jQuery.fx.step[ tween.prop ] ) {
8752
+ jQuery.fx.step[ tween.prop ]( tween );
8753
+ } else if ( tween.elem.style && ( tween.elem.style[ jQuery.cssProps[ tween.prop ] ] != null || jQuery.cssHooks[ tween.prop ] ) ) {
8754
+ jQuery.style( tween.elem, tween.prop, tween.now + tween.unit );
8755
+ } else {
8756
+ tween.elem[ tween.prop ] = tween.now;
8757
+ }
8758
+ }
8759
+ }
8760
+ };
8761
+
8762
+ // Remove in 2.0 - this supports IE8's panic based approach
8763
+ // to setting things on disconnected nodes
8764
+
8765
+ Tween.propHooks.scrollTop = Tween.propHooks.scrollLeft = {
8766
+ set: function( tween ) {
8767
+ if ( tween.elem.nodeType && tween.elem.parentNode ) {
8768
+ tween.elem[ tween.prop ] = tween.now;
8769
+ }
8770
+ }
8771
+ };
8772
+
8773
+ jQuery.each([ "toggle", "show", "hide" ], function( i, name ) {
8774
+ var cssFn = jQuery.fn[ name ];
8775
+ jQuery.fn[ name ] = function( speed, easing, callback ) {
8776
+ return speed == null || typeof speed === "boolean" ||
8777
+ // special check for .toggle( handler, handler, ... )
8778
+ ( !i && jQuery.isFunction( speed ) && jQuery.isFunction( easing ) ) ?
8779
+ cssFn.apply( this, arguments ) :
8780
+ this.animate( genFx( name, true ), speed, easing, callback );
8781
+ };
8782
+ });
8783
+
8784
+ jQuery.fn.extend({
8785
+ fadeTo: function( speed, to, easing, callback ) {
8786
+
8787
+ // show any hidden elements after setting opacity to 0
8788
+ return this.filter( isHidden ).css( "opacity", 0 ).show()
8789
+
8790
+ // animate to the value specified
8791
+ .end().animate({ opacity: to }, speed, easing, callback );
8792
+ },
8793
+ animate: function( prop, speed, easing, callback ) {
8794
+ var empty = jQuery.isEmptyObject( prop ),
8795
+ optall = jQuery.speed( speed, easing, callback ),
8796
+ doAnimation = function() {
8797
+ // Operate on a copy of prop so per-property easing won't be lost
8798
+ var anim = Animation( this, jQuery.extend( {}, prop ), optall );
8799
+
8800
+ // Empty animations resolve immediately
8801
+ if ( empty ) {
8802
+ anim.stop( true );
8803
+ }
8804
+ };
8805
+
8806
+ return empty || optall.queue === false ?
8807
+ this.each( doAnimation ) :
8808
+ this.queue( optall.queue, doAnimation );
8809
+ },
8810
+ stop: function( type, clearQueue, gotoEnd ) {
8811
+ var stopQueue = function( hooks ) {
8812
+ var stop = hooks.stop;
8813
+ delete hooks.stop;
8814
+ stop( gotoEnd );
8815
+ };
8816
+
8817
+ if ( typeof type !== "string" ) {
8818
+ gotoEnd = clearQueue;
8819
+ clearQueue = type;
8820
+ type = undefined;
8821
+ }
8822
+ if ( clearQueue && type !== false ) {
8823
+ this.queue( type || "fx", [] );
8824
+ }
8825
+
8826
+ return this.each(function() {
8827
+ var dequeue = true,
8828
+ index = type != null && type + "queueHooks",
8829
+ timers = jQuery.timers,
8830
+ data = jQuery._data( this );
8831
+
8832
+ if ( index ) {
8833
+ if ( data[ index ] && data[ index ].stop ) {
8834
+ stopQueue( data[ index ] );
8835
+ }
8836
+ } else {
8837
+ for ( index in data ) {
8838
+ if ( data[ index ] && data[ index ].stop && rrun.test( index ) ) {
8839
+ stopQueue( data[ index ] );
8840
+ }
8841
+ }
8842
+ }
8843
+
8844
+ for ( index = timers.length; index--; ) {
8845
+ if ( timers[ index ].elem === this && (type == null || timers[ index ].queue === type) ) {
8846
+ timers[ index ].anim.stop( gotoEnd );
8847
+ dequeue = false;
8848
+ timers.splice( index, 1 );
8849
+ }
8850
+ }
8851
+
8852
+ // start the next in the queue if the last step wasn't forced
8853
+ // timers currently will call their complete callbacks, which will dequeue
8854
+ // but only if they were gotoEnd
8855
+ if ( dequeue || !gotoEnd ) {
8856
+ jQuery.dequeue( this, type );
8857
+ }
8858
+ });
8859
+ }
8860
+ });
8861
+
8862
+ // Generate parameters to create a standard animation
8863
+ function genFx( type, includeWidth ) {
8864
+ var which,
8865
+ attrs = { height: type },
8866
+ i = 0;
8867
+
8868
+ // if we include width, step value is 1 to do all cssExpand values,
8869
+ // if we don't include width, step value is 2 to skip over Left and Right
8870
+ for( ; i < 4 ; i += 2 - includeWidth ) {
8871
+ which = cssExpand[ i ];
8872
+ attrs[ "margin" + which ] = attrs[ "padding" + which ] = type;
8873
+ }
8874
+
8875
+ if ( includeWidth ) {
8876
+ attrs.opacity = attrs.width = type;
8877
+ }
8878
+
8879
+ return attrs;
8880
+ }
8881
+
8882
+ // Generate shortcuts for custom animations
8883
+ jQuery.each({
8884
+ slideDown: genFx("show"),
8885
+ slideUp: genFx("hide"),
8886
+ slideToggle: genFx("toggle"),
8887
+ fadeIn: { opacity: "show" },
8888
+ fadeOut: { opacity: "hide" },
8889
+ fadeToggle: { opacity: "toggle" }
8890
+ }, function( name, props ) {
8891
+ jQuery.fn[ name ] = function( speed, easing, callback ) {
8892
+ return this.animate( props, speed, easing, callback );
8893
+ };
8894
+ });
8895
+
8896
+ jQuery.speed = function( speed, easing, fn ) {
8897
+ var opt = speed && typeof speed === "object" ? jQuery.extend( {}, speed ) : {
8898
+ complete: fn || !fn && easing ||
8899
+ jQuery.isFunction( speed ) && speed,
8900
+ duration: speed,
8901
+ easing: fn && easing || easing && !jQuery.isFunction( easing ) && easing
8902
+ };
8903
+
8904
+ opt.duration = jQuery.fx.off ? 0 : typeof opt.duration === "number" ? opt.duration :
8905
+ opt.duration in jQuery.fx.speeds ? jQuery.fx.speeds[ opt.duration ] : jQuery.fx.speeds._default;
8906
+
8907
+ // normalize opt.queue - true/undefined/null -> "fx"
8908
+ if ( opt.queue == null || opt.queue === true ) {
8909
+ opt.queue = "fx";
8910
+ }
8911
+
8912
+ // Queueing
8913
+ opt.old = opt.complete;
8914
+
8915
+ opt.complete = function() {
8916
+ if ( jQuery.isFunction( opt.old ) ) {
8917
+ opt.old.call( this );
8918
+ }
8919
+
8920
+ if ( opt.queue ) {
8921
+ jQuery.dequeue( this, opt.queue );
8922
+ }
8923
+ };
8924
+
8925
+ return opt;
8926
+ };
8927
+
8928
+ jQuery.easing = {
8929
+ linear: function( p ) {
8930
+ return p;
8931
+ },
8932
+ swing: function( p ) {
8933
+ return 0.5 - Math.cos( p*Math.PI ) / 2;
8934
+ }
8935
+ };
8936
+
8937
+ jQuery.timers = [];
8938
+ jQuery.fx = Tween.prototype.init;
8939
+ jQuery.fx.tick = function() {
8940
+ var timer,
8941
+ timers = jQuery.timers,
8942
+ i = 0;
8943
+
8944
+ for ( ; i < timers.length; i++ ) {
8945
+ timer = timers[ i ];
8946
+ // Checks the timer has not already been removed
8947
+ if ( !timer() && timers[ i ] === timer ) {
8948
+ timers.splice( i--, 1 );
8949
+ }
8950
+ }
8951
+
8952
+ if ( !timers.length ) {
8953
+ jQuery.fx.stop();
8954
+ }
8955
+ };
8956
+
8957
+ jQuery.fx.timer = function( timer ) {
8958
+ if ( timer() && jQuery.timers.push( timer ) && !timerId ) {
8959
+ timerId = setInterval( jQuery.fx.tick, jQuery.fx.interval );
8960
+ }
8961
+ };
8962
+
8963
+ jQuery.fx.interval = 13;
8964
+
8965
+ jQuery.fx.stop = function() {
8966
+ clearInterval( timerId );
8967
+ timerId = null;
8968
+ };
8969
+
8970
+ jQuery.fx.speeds = {
8971
+ slow: 600,
8972
+ fast: 200,
8973
+ // Default speed
8974
+ _default: 400
8975
+ };
8976
+
8977
+ // Back Compat <1.8 extension point
8978
+ jQuery.fx.step = {};
8979
+
8980
+ if ( jQuery.expr && jQuery.expr.filters ) {
8981
+ jQuery.expr.filters.animated = function( elem ) {
8982
+ return jQuery.grep(jQuery.timers, function( fn ) {
8983
+ return elem === fn.elem;
8984
+ }).length;
8985
+ };
8986
+ }
8987
+ var rroot = /^(?:body|html)$/i;
8988
+
8989
+ jQuery.fn.offset = function( options ) {
8990
+ if ( arguments.length ) {
8991
+ return options === undefined ?
8992
+ this :
8993
+ this.each(function( i ) {
8994
+ jQuery.offset.setOffset( this, options, i );
8995
+ });
8996
+ }
8997
+
8998
+ var box, docElem, body, win, clientTop, clientLeft, scrollTop, scrollLeft, top, left,
8999
+ elem = this[ 0 ],
9000
+ doc = elem && elem.ownerDocument;
9001
+
9002
+ if ( !doc ) {
9003
+ return;
9004
+ }
9005
+
9006
+ if ( (body = doc.body) === elem ) {
9007
+ return jQuery.offset.bodyOffset( elem );
9008
+ }
9009
+
9010
+ docElem = doc.documentElement;
9011
+
9012
+ // Make sure we're not dealing with a disconnected DOM node
9013
+ if ( !jQuery.contains( docElem, elem ) ) {
9014
+ return { top: 0, left: 0 };
9015
+ }
9016
+
9017
+ box = elem.getBoundingClientRect();
9018
+ win = getWindow( doc );
9019
+ clientTop = docElem.clientTop || body.clientTop || 0;
9020
+ clientLeft = docElem.clientLeft || body.clientLeft || 0;
9021
+ scrollTop = win.pageYOffset || docElem.scrollTop;
9022
+ scrollLeft = win.pageXOffset || docElem.scrollLeft;
9023
+ top = box.top + scrollTop - clientTop;
9024
+ left = box.left + scrollLeft - clientLeft;
9025
+
9026
+ return { top: top, left: left };
9027
+ };
9028
+
9029
+ jQuery.offset = {
9030
+
9031
+ bodyOffset: function( body ) {
9032
+ var top = body.offsetTop,
9033
+ left = body.offsetLeft;
9034
+
9035
+ if ( jQuery.support.doesNotIncludeMarginInBodyOffset ) {
9036
+ top += parseFloat( jQuery.css(body, "marginTop") ) || 0;
9037
+ left += parseFloat( jQuery.css(body, "marginLeft") ) || 0;
9038
+ }
9039
+
9040
+ return { top: top, left: left };
9041
+ },
9042
+
9043
+ setOffset: function( elem, options, i ) {
9044
+ var position = jQuery.css( elem, "position" );
9045
+
9046
+ // set position first, in-case top/left are set even on static elem
9047
+ if ( position === "static" ) {
9048
+ elem.style.position = "relative";
9049
+ }
9050
+
9051
+ var curElem = jQuery( elem ),
9052
+ curOffset = curElem.offset(),
9053
+ curCSSTop = jQuery.css( elem, "top" ),
9054
+ curCSSLeft = jQuery.css( elem, "left" ),
9055
+ calculatePosition = ( position === "absolute" || position === "fixed" ) && jQuery.inArray("auto", [curCSSTop, curCSSLeft]) > -1,
9056
+ props = {}, curPosition = {}, curTop, curLeft;
9057
+
9058
+ // need to be able to calculate position if either top or left is auto and position is either absolute or fixed
9059
+ if ( calculatePosition ) {
9060
+ curPosition = curElem.position();
9061
+ curTop = curPosition.top;
9062
+ curLeft = curPosition.left;
9063
+ } else {
9064
+ curTop = parseFloat( curCSSTop ) || 0;
9065
+ curLeft = parseFloat( curCSSLeft ) || 0;
9066
+ }
9067
+
9068
+ if ( jQuery.isFunction( options ) ) {
9069
+ options = options.call( elem, i, curOffset );
9070
+ }
9071
+
9072
+ if ( options.top != null ) {
9073
+ props.top = ( options.top - curOffset.top ) + curTop;
9074
+ }
9075
+ if ( options.left != null ) {
9076
+ props.left = ( options.left - curOffset.left ) + curLeft;
9077
+ }
9078
+
9079
+ if ( "using" in options ) {
9080
+ options.using.call( elem, props );
9081
+ } else {
9082
+ curElem.css( props );
9083
+ }
9084
+ }
9085
+ };
9086
+
9087
+
9088
+ jQuery.fn.extend({
9089
+
9090
+ position: function() {
9091
+ if ( !this[0] ) {
9092
+ return;
9093
+ }
9094
+
9095
+ var elem = this[0],
9096
+
9097
+ // Get *real* offsetParent
9098
+ offsetParent = this.offsetParent(),
9099
+
9100
+ // Get correct offsets
9101
+ offset = this.offset(),
9102
+ parentOffset = rroot.test(offsetParent[0].nodeName) ? { top: 0, left: 0 } : offsetParent.offset();
9103
+
9104
+ // Subtract element margins
9105
+ // note: when an element has margin: auto the offsetLeft and marginLeft
9106
+ // are the same in Safari causing offset.left to incorrectly be 0
9107
+ offset.top -= parseFloat( jQuery.css(elem, "marginTop") ) || 0;
9108
+ offset.left -= parseFloat( jQuery.css(elem, "marginLeft") ) || 0;
9109
+
9110
+ // Add offsetParent borders
9111
+ parentOffset.top += parseFloat( jQuery.css(offsetParent[0], "borderTopWidth") ) || 0;
9112
+ parentOffset.left += parseFloat( jQuery.css(offsetParent[0], "borderLeftWidth") ) || 0;
9113
+
9114
+ // Subtract the two offsets
9115
+ return {
9116
+ top: offset.top - parentOffset.top,
9117
+ left: offset.left - parentOffset.left
9118
+ };
9119
+ },
9120
+
9121
+ offsetParent: function() {
9122
+ return this.map(function() {
9123
+ var offsetParent = this.offsetParent || document.body;
9124
+ while ( offsetParent && (!rroot.test(offsetParent.nodeName) && jQuery.css(offsetParent, "position") === "static") ) {
9125
+ offsetParent = offsetParent.offsetParent;
9126
+ }
9127
+ return offsetParent || document.body;
9128
+ });
9129
+ }
9130
+ });
9131
+
9132
+
9133
+ // Create scrollLeft and scrollTop methods
9134
+ jQuery.each( {scrollLeft: "pageXOffset", scrollTop: "pageYOffset"}, function( method, prop ) {
9135
+ var top = /Y/.test( prop );
9136
+
9137
+ jQuery.fn[ method ] = function( val ) {
9138
+ return jQuery.access( this, function( elem, method, val ) {
9139
+ var win = getWindow( elem );
9140
+
9141
+ if ( val === undefined ) {
9142
+ return win ? (prop in win) ? win[ prop ] :
9143
+ win.document.documentElement[ method ] :
9144
+ elem[ method ];
9145
+ }
9146
+
9147
+ if ( win ) {
9148
+ win.scrollTo(
9149
+ !top ? val : jQuery( win ).scrollLeft(),
9150
+ top ? val : jQuery( win ).scrollTop()
9151
+ );
9152
+
9153
+ } else {
9154
+ elem[ method ] = val;
9155
+ }
9156
+ }, method, val, arguments.length, null );
9157
+ };
9158
+ });
9159
+
9160
+ function getWindow( elem ) {
9161
+ return jQuery.isWindow( elem ) ?
9162
+ elem :
9163
+ elem.nodeType === 9 ?
9164
+ elem.defaultView || elem.parentWindow :
9165
+ false;
9166
+ }
9167
+ // Create innerHeight, innerWidth, height, width, outerHeight and outerWidth methods
9168
+ jQuery.each( { Height: "height", Width: "width" }, function( name, type ) {
9169
+ jQuery.each( { padding: "inner" + name, content: type, "": "outer" + name }, function( defaultExtra, funcName ) {
9170
+ // margin is only for outerHeight, outerWidth
9171
+ jQuery.fn[ funcName ] = function( margin, value ) {
9172
+ var chainable = arguments.length && ( defaultExtra || typeof margin !== "boolean" ),
9173
+ extra = defaultExtra || ( margin === true || value === true ? "margin" : "border" );
9174
+
9175
+ return jQuery.access( this, function( elem, type, value ) {
9176
+ var doc;
9177
+
9178
+ if ( jQuery.isWindow( elem ) ) {
9179
+ // As of 5/8/2012 this will yield incorrect results for Mobile Safari, but there
9180
+ // isn't a whole lot we can do. See pull request at this URL for discussion:
9181
+ // https://github.com/jquery/jquery/pull/764
9182
+ return elem.document.documentElement[ "client" + name ];
9183
+ }
9184
+
9185
+ // Get document width or height
9186
+ if ( elem.nodeType === 9 ) {
9187
+ doc = elem.documentElement;
9188
+
9189
+ // Either scroll[Width/Height] or offset[Width/Height] or client[Width/Height], whichever is greatest
9190
+ // unfortunately, this causes bug #3838 in IE6/8 only, but there is currently no good, small way to fix it.
9191
+ return Math.max(
9192
+ elem.body[ "scroll" + name ], doc[ "scroll" + name ],
9193
+ elem.body[ "offset" + name ], doc[ "offset" + name ],
9194
+ doc[ "client" + name ]
9195
+ );
9196
+ }
9197
+
9198
+ return value === undefined ?
9199
+ // Get width or height on the element, requesting but not forcing parseFloat
9200
+ jQuery.css( elem, type, value, extra ) :
9201
+
9202
+ // Set width or height on the element
9203
+ jQuery.style( elem, type, value, extra );
9204
+ }, type, chainable ? margin : undefined, chainable );
9205
+ };
9206
+ });
9207
+ });
9208
+ // Expose jQuery to the global object
9209
+ window.sQuery = jQuery;
9210
+
9211
+ // Expose jQuery as an AMD module, but only for AMD loaders that
9212
+ // understand the issues with loading multiple versions of jQuery
9213
+ // in a page that all might call define(). The loader will indicate
9214
+ // they have special allowances for multiple jQuery versions by
9215
+ // specifying define.amd.jQuery = true. Register as a named module,
9216
+ // since jQuery can be concatenated with other files that may use define,
9217
+ // but not use a proper concatenation script that understands anonymous
9218
+ // AMD modules. A named AMD is safest and most robust way to register.
9219
+ // Lowercase jquery is used because AMD module names are derived from
9220
+ // file names, and jQuery is normally delivered in a lowercase file name.
9221
+ // Do this after creating the global so that if an AMD module wants to call
9222
+ // noConflict to hide this version of jQuery, it will work.
9223
+ if ( typeof define === "function" && define.amd && define.amd.sQuery ) {
9224
+ define( "jquery", [], function () { return jQuery; } );
9225
+ }
9226
+
9227
+ })( window );
trunk/assets/js/jquery_ui_custom.js ADDED
@@ -0,0 +1,2353 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ /*! jQuery UI - v1.9.2 - 2012-12-18
2
+ * http://jqueryui.com
3
+ * Includes: jquery.ui.core.js, jquery.ui.widget.js, jquery.ui.mouse.js, jquery.ui.position.js, jquery.ui.draggable.js
4
+ * Copyright (c) 2012 jQuery Foundation and other contributors Licensed MIT */
5
+
6
+ (function( $, undefined ) {
7
+
8
+ var uuid = 0,
9
+ runiqueId = /^ui-id-\d+$/;
10
+
11
+ // prevent duplicate loading
12
+ // this is only a problem because we proxy existing functions
13
+ // and we don't want to double proxy them
14
+ $.ui = $.ui || {};
15
+ if ( $.ui.version ) {
16
+ return;
17
+ }
18
+
19
+ $.extend( $.ui, {
20
+ version: "1.9.2",
21
+
22
+ keyCode: {
23
+ BACKSPACE: 8,
24
+ COMMA: 188,
25
+ DELETE: 46,
26
+ DOWN: 40,
27
+ END: 35,
28
+ ENTER: 13,
29
+ ESCAPE: 27,
30
+ HOME: 36,
31
+ LEFT: 37,
32
+ NUMPAD_ADD: 107,
33
+ NUMPAD_DECIMAL: 110,
34
+ NUMPAD_DIVIDE: 111,
35
+ NUMPAD_ENTER: 108,
36
+ NUMPAD_MULTIPLY: 106,
37
+ NUMPAD_SUBTRACT: 109,
38
+ PAGE_DOWN: 34,
39
+ PAGE_UP: 33,
40
+ PERIOD: 190,
41
+ RIGHT: 39,
42
+ SPACE: 32,
43
+ TAB: 9,
44
+ UP: 38
45
+ }
46
+ });
47
+
48
+ // plugins
49
+ $.fn.extend({
50
+ _focus: $.fn.focus,
51
+ focus: function( delay, fn ) {
52
+ return typeof delay === "number" ?
53
+ this.each(function() {
54
+ var elem = this;
55
+ setTimeout(function() {
56
+ $( elem ).focus();
57
+ if ( fn ) {
58
+ fn.call( elem );
59
+ }
60
+ }, delay );
61
+ }) :
62
+ this._focus.apply( this, arguments );
63
+ },
64
+
65
+ scrollParent: function() {
66
+ var scrollParent;
67
+ if (($.ui.ie && (/(static|relative)/).test(this.css('position'))) || (/absolute/).test(this.css('position'))) {
68
+ scrollParent = this.parents().filter(function() {
69
+ return (/(relative|absolute|fixed)/).test($.css(this,'position')) && (/(auto|scroll)/).test($.css(this,'overflow')+$.css(this,'overflow-y')+$.css(this,'overflow-x'));
70
+ }).eq(0);
71
+ } else {
72
+ scrollParent = this.parents().filter(function() {
73
+ return (/(auto|scroll)/).test($.css(this,'overflow')+$.css(this,'overflow-y')+$.css(this,'overflow-x'));
74
+ }).eq(0);
75
+ }
76
+
77
+ return (/fixed/).test(this.css('position')) || !scrollParent.length ? $(document) : scrollParent;
78
+ },
79
+
80
+ zIndex: function( zIndex ) {
81
+ if ( zIndex !== undefined ) {
82
+ return this.css( "zIndex", zIndex );
83
+ }
84
+
85
+ if ( this.length ) {
86
+ var elem = $( this[ 0 ] ), position, value;
87
+ while ( elem.length && elem[ 0 ] !== document ) {
88
+ // Ignore z-index if position is set to a value where z-index is ignored by the browser
89
+ // This makes behavior of this function consistent across browsers
90
+ // WebKit always returns auto if the element is positioned
91
+ position = elem.css( "position" );
92
+ if ( position === "absolute" || position === "relative" || position === "fixed" ) {
93
+ // IE returns 0 when zIndex is not specified
94
+ // other browsers return a string
95
+ // we ignore the case of nested elements with an explicit value of 0
96
+ // <div style="z-index: -10;"><div style="z-index: 0;"></div></div>
97
+ value = parseInt( elem.css( "zIndex" ), 10 );
98
+ if ( !isNaN( value ) && value !== 0 ) {
99
+ return value;
100
+ }
101
+ }
102
+ elem = elem.parent();
103
+ }
104
+ }
105
+
106
+ return 0;
107
+ },
108
+
109
+ uniqueId: function() {
110
+ return this.each(function() {
111
+ if ( !this.id ) {
112
+ this.id = "ui-id-" + (++uuid);
113
+ }
114
+ });
115
+ },
116
+
117
+ removeUniqueId: function() {
118
+ return this.each(function() {
119
+ if ( runiqueId.test( this.id ) ) {
120
+ $( this ).removeAttr( "id" );
121
+ }
122
+ });
123
+ }
124
+ });
125
+
126
+ // selectors
127
+ function focusable( element, isTabIndexNotNaN ) {
128
+ var map, mapName, img,
129
+ nodeName = element.nodeName.toLowerCase();
130
+ if ( "area" === nodeName ) {
131
+ map = element.parentNode;
132
+ mapName = map.name;
133
+ if ( !element.href || !mapName || map.nodeName.toLowerCase() !== "map" ) {
134
+ return false;
135
+ }
136
+ img = $( "img[usemap=#" + mapName + "]" )[0];
137
+ return !!img && visible( img );
138
+ }
139
+ return ( /input|select|textarea|button|object/.test( nodeName ) ?
140
+ !element.disabled :
141
+ "a" === nodeName ?
142
+ element.href || isTabIndexNotNaN :
143
+ isTabIndexNotNaN) &&
144
+ // the element and all of its ancestors must be visible
145
+ visible( element );
146
+ }
147
+
148
+ function visible( element ) {
149
+ return $.expr.filters.visible( element ) &&
150
+ !$( element ).parents().andSelf().filter(function() {
151
+ return $.css( this, "visibility" ) === "hidden";
152
+ }).length;
153
+ }
154
+
155
+ $.extend( $.expr[ ":" ], {
156
+ data: $.expr.createPseudo ?
157
+ $.expr.createPseudo(function( dataName ) {
158
+ return function( elem ) {
159
+ return !!$.data( elem, dataName );
160
+ };
161
+ }) :
162
+ // support: jQuery <1.8
163
+ function( elem, i, match ) {
164
+ return !!$.data( elem, match[ 3 ] );
165
+ },
166
+
167
+ focusable: function( element ) {
168
+ return focusable( element, !isNaN( $.attr( element, "tabindex" ) ) );
169
+ },
170
+
171
+ tabbable: function( element ) {
172
+ var tabIndex = $.attr( element, "tabindex" ),
173
+ isTabIndexNaN = isNaN( tabIndex );
174
+ return ( isTabIndexNaN || tabIndex >= 0 ) && focusable( element, !isTabIndexNaN );
175
+ }
176
+ });
177
+
178
+ // support
179
+ $(function() {
180
+ var body = document.body,
181
+ div = body.appendChild( div = document.createElement( "div" ) );
182
+
183
+ // access offsetHeight before setting the style to prevent a layout bug
184
+ // in IE 9 which causes the element to continue to take up space even
185
+ // after it is removed from the DOM (#8026)
186
+ div.offsetHeight;
187
+
188
+ $.extend( div.style, {
189
+ minHeight: "100px",
190
+ height: "auto",
191
+ padding: 0,
192
+ borderWidth: 0
193
+ });
194
+
195
+ $.support.minHeight = div.offsetHeight === 100;
196
+ $.support.selectstart = "onselectstart" in div;
197
+
198
+ // set display to none to avoid a layout bug in IE
199
+ // http://dev.jquery.com/ticket/4014
200
+ body.removeChild( div ).style.display = "none";
201
+ });
202
+
203
+ // support: jQuery <1.8
204
+ if ( !$( "<a>" ).outerWidth( 1 ).jquery ) {
205
+ $.each( [ "Width", "Height" ], function( i, name ) {
206
+ var side = name === "Width" ? [ "Left", "Right" ] : [ "Top", "Bottom" ],
207
+ type = name.toLowerCase(),
208
+ orig = {
209
+ innerWidth: $.fn.innerWidth,
210
+ innerHeight: $.fn.innerHeight,
211
+ outerWidth: $.fn.outerWidth,
212
+ outerHeight: $.fn.outerHeight
213
+ };
214
+
215
+ function reduce( elem, size, border, margin ) {
216
+ $.each( side, function() {
217
+ size -= parseFloat( $.css( elem, "padding" + this ) ) || 0;
218
+ if ( border ) {
219
+ size -= parseFloat( $.css( elem, "border" + this + "Width" ) ) || 0;
220
+ }
221
+ if ( margin ) {
222
+ size -= parseFloat( $.css( elem, "margin" + this ) ) || 0;
223
+ }
224
+ });
225
+ return size;
226
+ }
227
+
228
+ $.fn[ "inner" + name ] = function( size ) {
229
+ if ( size === undefined ) {
230
+ return orig[ "inner" + name ].call( this );
231
+ }
232
+
233
+ return this.each(function() {
234
+ $( this ).css( type, reduce( this, size ) + "px" );
235
+ });
236
+ };
237
+
238
+ $.fn[ "outer" + name] = function( size, margin ) {
239
+ if ( typeof size !== "number" ) {
240
+ return orig[ "outer" + name ].call( this, size );
241
+ }
242
+
243
+ return this.each(function() {
244
+ $( this).css( type, reduce( this, size, true, margin ) + "px" );
245
+ });
246
+ };
247
+ });
248
+ }
249
+
250
+ // support: jQuery 1.6.1, 1.6.2 (http://bugs.jquery.com/ticket/9413)
251
+ if ( $( "<a>" ).data( "a-b", "a" ).removeData( "a-b" ).data( "a-b" ) ) {
252
+ $.fn.removeData = (function( removeData ) {
253
+ return function( key ) {
254
+ if ( arguments.length ) {
255
+ return removeData.call( this, $.camelCase( key ) );
256
+ } else {
257
+ return removeData.call( this );
258
+ }
259
+ };
260
+ })( $.fn.removeData );
261
+ }
262
+
263
+
264
+
265
+
266
+
267
+ // deprecated
268
+
269
+ (function() {
270
+ var uaMatch = /msie ([\w.]+)/.exec( navigator.userAgent.toLowerCase() ) || [];
271
+ $.ui.ie = uaMatch.length ? true : false;
272
+ $.ui.ie6 = parseFloat( uaMatch[ 1 ], 10 ) === 6;
273
+ })();
274
+
275
+ $.fn.extend({
276
+ disableSelection: function() {
277
+ return this.bind( ( $.support.selectstart ? "selectstart" : "mousedown" ) +
278
+ ".ui-disableSelection", function( event ) {
279
+ event.preventDefault();
280
+ });
281
+ },
282
+
283
+ enableSelection: function() {
284
+ return this.unbind( ".ui-disableSelection" );
285
+ }
286
+ });
287
+
288
+ $.extend( $.ui, {
289
+ // $.ui.plugin is deprecated. Use the proxy pattern instead.
290
+ plugin: {
291
+ add: function( module, option, set ) {
292
+ var i,
293
+ proto = $.ui[ module ].prototype;
294
+ for ( i in set ) {
295
+ proto.plugins[ i ] = proto.plugins[ i ] || [];
296
+ proto.plugins[ i ].push( [ option, set[ i ] ] );
297
+ }
298
+ },
299
+ call: function( instance, name, args ) {
300
+ var i,
301
+ set = instance.plugins[ name ];
302
+ if ( !set || !instance.element[ 0 ].parentNode || instance.element[ 0 ].parentNode.nodeType === 11 ) {
303
+ return;
304
+ }
305
+
306
+ for ( i = 0; i < set.length; i++ ) {
307
+ if ( instance.options[ set[ i ][ 0 ] ] ) {
308
+ set[ i ][ 1 ].apply( instance.element, args );
309
+ }
310
+ }
311
+ }
312
+ },
313
+
314
+ contains: $.contains,
315
+
316
+ // only used by resizable
317
+ hasScroll: function( el, a ) {
318
+
319
+ //If overflow is hidden, the element might have extra content, but the user wants to hide it
320
+ if ( $( el ).css( "overflow" ) === "hidden") {
321
+ return false;
322
+ }
323
+
324
+ var scroll = ( a && a === "left" ) ? "scrollLeft" : "scrollTop",
325
+ has = false;
326
+
327
+ if ( el[ scroll ] > 0 ) {
328
+ return true;
329
+ }
330
+
331
+ // TODO: determine which cases actually cause this to happen
332
+ // if the element doesn't have the scroll set, see if it's possible to
333
+ // set the scroll
334
+ el[ scroll ] = 1;
335
+ has = ( el[ scroll ] > 0 );
336
+ el[ scroll ] = 0;
337
+ return has;
338
+ },
339
+
340
+ // these are odd functions, fix the API or move into individual plugins
341
+ isOverAxis: function( x, reference, size ) {
342
+ //Determines when x coordinate is over "b" element axis
343
+ return ( x > reference ) && ( x < ( reference + size ) );
344
+ },
345
+ isOver: function( y, x, top, left, height, width ) {
346
+ //Determines when x, y coordinates is over "b" element
347
+ return $.ui.isOverAxis( y, top, height ) && $.ui.isOverAxis( x, left, width );
348
+ }
349
+ });
350
+
351
+ })( sQuery );
352
+ (function( $, undefined ) {
353
+
354
+ var uuid = 0,
355
+ slice = Array.prototype.slice,
356
+ _cleanData = $.cleanData;
357
+ $.cleanData = function( elems ) {
358
+ for ( var i = 0, elem; (elem = elems[i]) != null; i++ ) {
359
+ try {
360
+ $( elem ).triggerHandler( "remove" );
361
+ // http://bugs.jquery.com/ticket/8235
362
+ } catch( e ) {}
363
+ }
364
+ _cleanData( elems );
365
+ };
366
+
367
+ $.widget = function( name, base, prototype ) {
368
+ var fullName, existingConstructor, constructor, basePrototype,
369
+ namespace = name.split( "." )[ 0 ];
370
+
371
+ name = name.split( "." )[ 1 ];
372
+ fullName = namespace + "-" + name;
373
+
374
+ if ( !prototype ) {
375
+ prototype = base;
376
+ base = $.Widget;
377
+ }
378
+
379
+ // create selector for plugin
380
+ $.expr[ ":" ][ fullName.toLowerCase() ] = function( elem ) {
381
+ return !!$.data( elem, fullName );
382
+ };
383
+
384
+ $[ namespace ] = $[ namespace ] || {};
385
+ existingConstructor = $[ namespace ][ name ];
386
+ constructor = $[ namespace ][ name ] = function( options, element ) {
387
+ // allow instantiation without "new" keyword
388
+ if ( !this._createWidget ) {
389
+ return new constructor( options, element );
390
+ }
391
+
392
+ // allow instantiation without initializing for simple inheritance
393
+ // must use "new" keyword (the code above always passes args)
394
+ if ( arguments.length ) {
395
+ this._createWidget( options, element );
396
+ }
397
+ };
398
+ // extend with the existing constructor to carry over any static properties
399
+ $.extend( constructor, existingConstructor, {
400
+ version: prototype.version,
401
+ // copy the object used to create the prototype in case we need to
402
+ // redefine the widget later
403
+ _proto: $.extend( {}, prototype ),
404
+ // track widgets that inherit from this widget in case this widget is
405
+ // redefined after a widget inherits from it
406
+ _childConstructors: []
407
+ });
408
+
409
+ basePrototype = new base();
410
+ // we need to make the options hash a property directly on the new instance
411
+ // otherwise we'll modify the options hash on the prototype that we're
412
+ // inheriting from
413
+ basePrototype.options = $.widget.extend( {}, basePrototype.options );
414
+ $.each( prototype, function( prop, value ) {
415
+ if ( $.isFunction( value ) ) {
416
+ prototype[ prop ] = (function() {
417
+ var _super = function() {
418
+ return base.prototype[ prop ].apply( this, arguments );
419
+ },
420
+ _superApply = function( args ) {
421
+ return base.prototype[ prop ].apply( this, args );
422
+ };
423
+ return function() {
424
+ var __super = this._super,
425
+ __superApply = this._superApply,
426
+ returnValue;
427
+
428
+ this._super = _super;
429
+ this._superApply = _superApply;
430
+
431
+ returnValue = value.apply( this, arguments );
432
+
433
+ this._super = __super;
434
+ this._superApply = __superApply;
435
+
436
+ return returnValue;
437
+ };
438
+ })();
439
+ }
440
+ });
441
+ constructor.prototype = $.widget.extend( basePrototype, {
442
+ // TODO: remove support for widgetEventPrefix
443
+ // always use the name + a colon as the prefix, e.g., draggable:start
444
+ // don't prefix for widgets that aren't DOM-based
445
+ widgetEventPrefix: existingConstructor ? basePrototype.widgetEventPrefix : name
446
+ }, prototype, {
447
+ constructor: constructor,
448
+ namespace: namespace,
449
+ widgetName: name,
450
+ // TODO remove widgetBaseClass, see #8155
451
+ widgetBaseClass: fullName,
452
+ widgetFullName: fullName
453
+ });
454
+
455
+ // If this widget is being redefined then we need to find all widgets that
456
+ // are inheriting from it and redefine all of them so that they inherit from
457
+ // the new version of this widget. We're essentially trying to replace one
458
+ // level in the prototype chain.
459
+ if ( existingConstructor ) {
460
+ $.each( existingConstructor._childConstructors, function( i, child ) {
461
+ var childPrototype = child.prototype;
462
+
463
+ // redefine the child widget using the same prototype that was
464
+ // originally used, but inherit from the new version of the base
465
+ $.widget( childPrototype.namespace + "." + childPrototype.widgetName, constructor, child._proto );
466
+ });
467
+ // remove the list of existing child constructors from the old constructor
468
+ // so the old child constructors can be garbage collected
469
+ delete existingConstructor._childConstructors;
470
+ } else {
471
+ base._childConstructors.push( constructor );
472
+ }
473
+
474
+ $.widget.bridge( name, constructor );
475
+ };
476
+
477
+ $.widget.extend = function( target ) {
478
+ var input = slice.call( arguments, 1 ),
479
+ inputIndex = 0,
480
+ inputLength = input.length,
481
+ key,
482
+ value;
483
+ for ( ; inputIndex < inputLength; inputIndex++ ) {
484
+ for ( key in input[ inputIndex ] ) {
485
+ value = input[ inputIndex ][ key ];
486
+ if ( input[ inputIndex ].hasOwnProperty( key ) && value !== undefined ) {
487
+ // Clone objects
488
+ if ( $.isPlainObject( value ) ) {
489
+ target[ key ] = $.isPlainObject( target[ key ] ) ?
490
+ $.widget.extend( {}, target[ key ], value ) :
491
+ // Don't extend strings, arrays, etc. with objects
492
+ $.widget.extend( {}, value );
493
+ // Copy everything else by reference
494
+ } else {
495
+ target[ key ] = value;
496
+ }
497
+ }
498
+ }
499
+ }
500
+ return target;
501
+ };
502
+
503
+ $.widget.bridge = function( name, object ) {
504
+ var fullName = object.prototype.widgetFullName || name;
505
+ $.fn[ name ] = function( options ) {
506
+ var isMethodCall = typeof options === "string",
507
+ args = slice.call( arguments, 1 ),
508
+ returnValue = this;
509
+
510
+ // allow multiple hashes to be passed on init
511
+ options = !isMethodCall && args.length ?
512
+ $.widget.extend.apply( null, [ options ].concat(args) ) :
513
+ options;
514
+
515
+ if ( isMethodCall ) {
516
+ this.each(function() {
517
+ var methodValue,
518
+ instance = $.data( this, fullName );
519
+ if ( !instance ) {
520
+ return $.error( "cannot call methods on " + name + " prior to initialization; " +
521
+ "attempted to call method '" + options + "'" );
522
+ }
523
+ if ( !$.isFunction( instance[options] ) || options.charAt( 0 ) === "_" ) {
524
+ return $.error( "no such method '" + options + "' for " + name + " widget instance" );
525
+ }
526
+ methodValue = instance[ options ].apply( instance, args );
527
+ if ( methodValue !== instance && methodValue !== undefined ) {
528
+ returnValue = methodValue && methodValue.jquery ?
529
+ returnValue.pushStack( methodValue.get() ) :
530
+ methodValue;
531
+ return false;
532
+ }
533
+ });
534
+ } else {
535
+ this.each(function() {
536
+ var instance = $.data( this, fullName );
537
+ if ( instance ) {
538
+ instance.option( options || {} )._init();
539
+ } else {
540
+ $.data( this, fullName, new object( options, this ) );
541
+ }
542
+ });
543
+ }
544
+
545
+ return returnValue;
546
+ };
547
+ };
548
+
549
+ $.Widget = function( /* options, element */ ) {};
550
+ $.Widget._childConstructors = [];
551
+
552
+ $.Widget.prototype = {
553
+ widgetName: "widget",
554
+ widgetEventPrefix: "",
555
+ defaultElement: "<div>",
556
+ options: {
557
+ disabled: false,
558
+
559
+ // callbacks
560
+ create: null
561
+ },
562
+ _createWidget: function( options, element ) {
563
+ element = $( element || this.defaultElement || this )[ 0 ];
564
+ this.element = $( element );
565
+ this.uuid = uuid++;
566
+ this.eventNamespace = "." + this.widgetName + this.uuid;
567
+ this.options = $.widget.extend( {},
568
+ this.options,
569
+ this._getCreateOptions(),
570
+ options );
571
+
572
+ this.bindings = $();
573
+ this.hoverable = $();
574
+ this.focusable = $();
575
+
576
+ if ( element !== this ) {
577
+ // 1.9 BC for #7810
578
+ // TODO remove dual storage
579
+ $.data( element, this.widgetName, this );
580
+ $.data( element, this.widgetFullName, this );
581
+ this._on( true, this.element, {
582
+ remove: function( event ) {
583
+ if ( event.target === element ) {
584
+ this.destroy();
585
+ }
586
+ }
587
+ });
588
+ this.document = $( element.style ?
589
+ // element within the document
590
+ element.ownerDocument :
591
+ // element is window or document
592
+ element.document || element );
593
+ this.window = $( this.document[0].defaultView || this.document[0].parentWindow );
594
+ }
595
+
596
+ this._create();
597
+ this._trigger( "create", null, this._getCreateEventData() );
598
+ this._init();
599
+ },
600
+ _getCreateOptions: $.noop,
601
+ _getCreateEventData: $.noop,
602
+ _create: $.noop,
603
+ _init: $.noop,
604
+
605
+ destroy: function() {
606
+ this._destroy();
607
+ // we can probably remove the unbind calls in 2.0
608
+ // all event bindings should go through this._on()
609
+ this.element
610
+ .unbind( this.eventNamespace )
611
+ // 1.9 BC for #7810
612
+ // TODO remove dual storage
613
+ .removeData( this.widgetName )
614
+ .removeData( this.widgetFullName )
615
+ // support: jquery <1.6.3
616
+ // http://bugs.jquery.com/ticket/9413
617
+ .removeData( $.camelCase( this.widgetFullName ) );
618
+ this.widget()
619
+ .unbind( this.eventNamespace )
620
+ .removeAttr( "aria-disabled" )
621
+ .removeClass(
622
+ this.widgetFullName + "-disabled " +
623
+ "ui-state-disabled" );
624
+
625
+ // clean up events and states
626
+ this.bindings.unbind( this.eventNamespace );
627
+ this.hoverable.removeClass( "ui-state-hover" );
628
+ this.focusable.removeClass( "ui-state-focus" );
629
+ },
630
+ _destroy: $.noop,
631
+
632
+ widget: function() {
633
+ return this.element;
634
+ },
635
+
636
+ option: function( key, value ) {
637
+ var options = key,
638
+ parts,
639
+ curOption,
640
+ i;
641
+
642
+ if ( arguments.length === 0 ) {
643
+ // don't return a reference to the internal hash
644
+ return $.widget.extend( {}, this.options );
645
+ }
646
+
647
+ if ( typeof key === "string" ) {
648
+ // handle nested keys, e.g., "foo.bar" => { foo: { bar: ___ } }
649
+ options = {};
650
+ parts = key.split( "." );
651
+ key = parts.shift();
652
+ if ( parts.length ) {
653
+ curOption = options[ key ] = $.widget.extend( {}, this.options[ key ] );
654
+ for ( i = 0; i < parts.length - 1; i++ ) {
655
+ curOption[ parts[ i ] ] = curOption[ parts[ i ] ] || {};
656
+ curOption = curOption[ parts[ i ] ];
657
+ }
658
+ key = parts.pop();
659
+ if ( value === undefined ) {
660
+ return curOption[ key ] === undefined ? null : curOption[ key ];
661
+ }
662
+ curOption[ key ] = value;
663
+ } else {
664
+ if ( value === undefined ) {
665
+ return this.options[ key ] === undefined ? null : this.options[ key ];
666
+ }
667
+ options[ key ] = value;
668
+ }
669
+ }
670
+
671
+ this._setOptions( options );
672
+
673
+ return this;
674
+ },
675
+ _setOptions: function( options ) {
676
+ var key;
677
+
678
+ for ( key in options ) {
679
+ this._setOption( key, options[ key ] );
680
+ }
681
+
682
+ return this;
683
+ },
684
+ _setOption: function( key, value ) {
685
+ this.options[ key ] = value;
686
+
687
+ if ( key === "disabled" ) {
688
+ this.widget()
689
+ .toggleClass( this.widgetFullName + "-disabled ui-state-disabled", !!value )
690
+ .attr( "aria-disabled", value );
691
+ this.hoverable.removeClass( "ui-state-hover" );
692
+ this.focusable.removeClass( "ui-state-focus" );
693
+ }
694
+
695
+ return this;
696
+ },
697
+
698
+ enable: function() {
699
+ return this._setOption( "disabled", false );
700
+ },
701
+ disable: function() {
702
+ return this._setOption( "disabled", true );
703
+ },
704
+
705
+ _on: function( suppressDisabledCheck, element, handlers ) {
706
+ var delegateElement,
707
+ instance = this;
708
+
709
+ // no suppressDisabledCheck flag, shuffle arguments
710
+ if ( typeof suppressDisabledCheck !== "boolean" ) {
711
+ handlers = element;
712
+ element = suppressDisabledCheck;
713
+ suppressDisabledCheck = false;
714
+ }
715
+
716
+ // no element argument, shuffle and use this.element
717
+ if ( !handlers ) {
718
+ handlers = element;
719
+ element = this.element;
720
+ delegateElement = this.widget();
721
+ } else {
722
+ // accept selectors, DOM elements
723
+ element = delegateElement = $( element );
724
+ this.bindings = this.bindings.add( element );
725
+ }
726
+
727
+ $.each( handlers, function( event, handler ) {
728
+ function handlerProxy() {
729
+ // allow widgets to customize the disabled handling
730
+ // - disabled as an array instead of boolean
731
+ // - disabled class as method for disabling individual parts
732
+ if ( !suppressDisabledCheck &&
733
+ ( instance.options.disabled === true ||
734
+ $( this ).hasClass( "ui-state-disabled" ) ) ) {
735
+ return;
736
+ }
737
+ return ( typeof handler === "string" ? instance[ handler ] : handler )
738
+ .apply( instance, arguments );
739
+ }
740
+
741
+ // copy the guid so direct unbinding works
742
+ if ( typeof handler !== "string" ) {
743
+ handlerProxy.guid = handler.guid =
744
+ handler.guid || handlerProxy.guid || $.guid++;
745
+ }
746
+
747
+ var match = event.match( /^(\w+)\s*(.*)$/ ),
748
+ eventName = match[1] + instance.eventNamespace,
749
+ selector = match[2];
750
+ if ( selector ) {
751
+ delegateElement.delegate( selector, eventName, handlerProxy );
752
+ } else {
753
+ element.bind( eventName, handlerProxy );
754
+ }
755
+ });
756
+ },
757
+
758
+ _off: function( element, eventName ) {
759
+ eventName = (eventName || "").split( " " ).join( this.eventNamespace + " " ) + this.eventNamespace;
760
+ element.unbind( eventName ).undelegate( eventName );
761
+ },
762
+
763
+ _delay: function( handler, delay ) {
764
+ function handlerProxy() {
765
+ return ( typeof handler === "string" ? instance[ handler ] : handler )
766
+ .apply( instance, arguments );
767
+ }
768
+ var instance = this;
769
+ return setTimeout( handlerProxy, delay || 0 );
770
+ },
771
+
772
+ _hoverable: function( element ) {
773
+ this.hoverable = this.hoverable.add( element );
774
+ this._on( element, {
775
+ mouseenter: function( event ) {
776
+ $( event.currentTarget ).addClass( "ui-state-hover" );
777
+ },
778
+ mouseleave: function( event ) {
779
+ $( event.currentTarget ).removeClass( "ui-state-hover" );
780
+ }
781
+ });
782
+ },
783
+
784
+ _focusable: function( element ) {
785
+ this.focusable = this.focusable.add( element );
786
+ this._on( element, {
787
+ focusin: function( event ) {
788
+ $( event.currentTarget ).addClass( "ui-state-focus" );
789
+ },
790
+ focusout: function( event ) {
791
+ $( event.currentTarget ).removeClass( "ui-state-focus" );
792
+ }
793
+ });
794
+ },
795
+
796
+ _trigger: function( type, event, data ) {
797
+ var prop, orig,
798
+ callback = this.options[ type ];
799
+
800
+ data = data || {};
801
+ event = $.Event( event );
802
+ event.type = ( type === this.widgetEventPrefix ?
803
+ type :
804
+ this.widgetEventPrefix + type ).toLowerCase();
805
+ // the original event may come from any element
806
+ // so we need to reset the target on the new event
807
+ event.target = this.element[ 0 ];
808
+
809
+ // copy original event properties over to the new event
810
+ orig = event.originalEvent;
811
+ if ( orig ) {
812
+ for ( prop in orig ) {
813
+ if ( !( prop in event ) ) {
814
+ event[ prop ] = orig[ prop ];
815
+ }
816
+ }
817
+ }
818
+
819
+ this.element.trigger( event, data );
820
+ return !( $.isFunction( callback ) &&
821
+ callback.apply( this.element[0], [ event ].concat( data ) ) === false ||
822
+ event.isDefaultPrevented() );
823
+ }
824
+ };
825
+
826
+ $.each( { show: "fadeIn", hide: "fadeOut" }, function( method, defaultEffect ) {
827
+ $.Widget.prototype[ "_" + method ] = function( element, options, callback ) {
828
+ if ( typeof options === "string" ) {
829
+ options = { effect: options };
830
+ }
831
+ var hasOptions,
832
+ effectName = !options ?
833
+ method :
834
+ options === true || typeof options === "number" ?
835
+ defaultEffect :
836
+ options.effect || defaultEffect;
837
+ options = options || {};
838
+ if ( typeof options === "number" ) {
839
+ options = { duration: options };
840
+ }
841
+ hasOptions = !$.isEmptyObject( options );
842
+ options.complete = callback;
843
+ if ( options.delay ) {
844
+ element.delay( options.delay );
845
+ }
846
+ if ( hasOptions && $.effects && ( $.effects.effect[ effectName ] || $.uiBackCompat !== false && $.effects[ effectName ] ) ) {
847
+ element[ method ]( options );
848
+ } else if ( effectName !== method && element[ effectName ] ) {
849
+ element[ effectName ]( options.duration, options.easing, callback );
850
+ } else {
851
+ element.queue(function( next ) {
852
+ $( this )[ method ]();
853
+ if ( callback ) {
854
+ callback.call( element[ 0 ] );
855
+ }
856
+ next();
857
+ });
858
+ }
859
+ };
860
+ });
861
+
862
+ // DEPRECATED
863
+ if ( $.uiBackCompat !== false ) {
864
+ $.Widget.prototype._getCreateOptions = function() {
865
+ return $.metadata && $.metadata.get( this.element[0] )[ this.widgetName ];
866
+ };
867
+ }
868
+
869
+ })( sQuery );
870
+ (function( $, undefined ) {
871
+
872
+ var mouseHandled = false;
873
+ $( document ).mouseup( function( e ) {
874
+ mouseHandled = false;
875
+ });
876
+
877
+ $.widget("ui.mouse", {
878
+ version: "1.9.2",
879
+ options: {
880
+ cancel: 'input,textarea,button,select,option',
881
+ distance: 1,
882
+ delay: 0
883
+ },
884
+ _mouseInit: function() {
885
+ var that = this;
886
+
887
+ this.element
888
+ .bind('mousedown.'+this.widgetName, function(event) {
889
+ return that._mouseDown(event);
890
+ })
891
+ .bind('click.'+this.widgetName, function(event) {
892
+ if (true === $.data(event.target, that.widgetName + '.preventClickEvent')) {
893
+ $.removeData(event.target, that.widgetName + '.preventClickEvent');
894
+ event.stopImmediatePropagation();
895
+ return false;
896
+ }
897
+ });
898
+
899
+ this.started = false;
900
+ },
901
+
902
+ // TODO: make sure destroying one instance of mouse doesn't mess with
903
+ // other instances of mouse
904
+ _mouseDestroy: function() {
905
+ this.element.unbind('.'+this.widgetName);
906
+ if ( this._mouseMoveDelegate ) {
907
+ $(document)
908
+ .unbind('mousemove.'+this.widgetName, this._mouseMoveDelegate)
909
+ .unbind('mouseup.'+this.widgetName, this._mouseUpDelegate);
910
+ }
911
+ },
912
+
913
+ _mouseDown: function(event) {
914
+ // don't let more than one widget handle mouseStart
915
+ if( mouseHandled ) { return; }
916
+
917
+ // we may have missed mouseup (out of window)
918
+ (this._mouseStarted && this._mouseUp(event));
919
+
920
+ this._mouseDownEvent = event;
921
+
922
+ var that = this,
923
+ btnIsLeft = (event.which === 1),
924
+ // event.target.nodeName works around a bug in IE 8 with
925
+ // disabled inputs (#7620)
926
+ elIsCancel = (typeof this.options.cancel === "string" && event.target.nodeName ? $(event.target).closest(this.options.cancel).length : false);
927
+ if (!btnIsLeft || elIsCancel || !this._mouseCapture(event)) {
928
+ return true;
929
+ }
930
+
931
+ this.mouseDelayMet = !this.options.delay;
932
+ if (!this.mouseDelayMet) {
933
+ this._mouseDelayTimer = setTimeout(function() {
934
+ that.mouseDelayMet = true;
935
+ }, this.options.delay);
936
+ }
937
+
938
+ if (this._mouseDistanceMet(event) && this._mouseDelayMet(event)) {
939
+ this._mouseStarted = (this._mouseStart(event) !== false);
940
+ if (!this._mouseStarted) {
941
+ event.preventDefault();
942
+ return true;
943
+ }
944
+ }
945
+
946
+ // Click event may never have fired (Gecko & Opera)
947
+ if (true === $.data(event.target, this.widgetName + '.preventClickEvent')) {
948
+ $.removeData(event.target, this.widgetName + '.preventClickEvent');
949
+ }
950
+
951
+ // these delegates are required to keep context
952
+ this._mouseMoveDelegate = function(event) {
953
+ return that._mouseMove(event);
954
+ };
955
+ this._mouseUpDelegate = function(event) {
956
+ return that._mouseUp(event);
957
+ };
958
+ $(document)
959
+ .bind('mousemove.'+this.widgetName, this._mouseMoveDelegate)
960
+ .bind('mouseup.'+this.widgetName, this._mouseUpDelegate);
961
+
962
+ event.preventDefault();
963
+
964
+ mouseHandled = true;
965
+ return true;
966
+ },
967
+
968
+ _mouseMove: function(event) {
969
+ // IE mouseup check - mouseup happened when mouse was out of window
970
+ if ($.ui.ie && !(document.documentMode >= 9) && !event.button) {
971
+ return this._mouseUp(event);
972
+ }
973
+
974
+ if (this._mouseStarted) {
975
+ this._mouseDrag(event);
976
+ return event.preventDefault();
977
+ }
978
+
979
+ if (this._mouseDistanceMet(event) && this._mouseDelayMet(event)) {
980
+ this._mouseStarted =
981
+ (this._mouseStart(this._mouseDownEvent, event) !== false);
982
+ (this._mouseStarted ? this._mouseDrag(event) : this._mouseUp(event));
983
+ }
984
+
985
+ return !this._mouseStarted;
986
+ },
987
+
988
+ _mouseUp: function(event) {
989
+ $(document)
990
+ .unbind('mousemove.'+this.widgetName, this._mouseMoveDelegate)
991
+ .unbind('mouseup.'+this.widgetName, this._mouseUpDelegate);
992
+
993
+ if (this._mouseStarted) {
994
+ this._mouseStarted = false;
995
+
996
+ if (event.target === this._mouseDownEvent.target) {
997
+ $.data(event.target, this.widgetName + '.preventClickEvent', true);
998
+ }
999
+
1000
+ this._mouseStop(event);
1001
+ }
1002
+
1003
+ return false;
1004
+ },
1005
+
1006
+ _mouseDistanceMet: function(event) {
1007
+ return (Math.max(
1008
+ Math.abs(this._mouseDownEvent.pageX - event.pageX),
1009
+ Math.abs(this._mouseDownEvent.pageY - event.pageY)
1010
+ ) >= this.options.distance
1011
+ );
1012
+ },
1013
+
1014
+ _mouseDelayMet: function(event) {
1015
+ return this.mouseDelayMet;
1016
+ },
1017
+
1018
+ // These are placeholder methods, to be overriden by extending plugin
1019
+ _mouseStart: function(event) {},
1020
+ _mouseDrag: function(event) {},
1021
+ _mouseStop: function(event) {},
1022
+ _mouseCapture: function(event) { return true; }
1023
+ });
1024
+
1025
+ })(sQuery);
1026
+ (function( $, undefined ) {
1027
+
1028
+ $.ui = $.ui || {};
1029
+
1030
+ var cachedScrollbarWidth,
1031
+ max = Math.max,
1032
+ abs = Math.abs,
1033
+ round = Math.round,
1034
+ rhorizontal = /left|center|right/,
1035
+ rvertical = /top|center|bottom/,
1036
+ roffset = /[\+\-]\d+%?/,
1037
+ rposition = /^\w+/,
1038
+ rpercent = /%$/,
1039
+ _position = $.fn.position;
1040
+
1041
+ function getOffsets( offsets, width, height ) {
1042
+ return [
1043
+ parseInt( offsets[ 0 ], 10 ) * ( rpercent.test( offsets[ 0 ] ) ? width / 100 : 1 ),
1044
+ parseInt( offsets[ 1 ], 10 ) * ( rpercent.test( offsets[ 1 ] ) ? height / 100 : 1 )
1045
+ ];
1046
+ }
1047
+ function parseCss( element, property ) {
1048
+ return parseInt( $.css( element, property ), 10 ) || 0;
1049
+ }
1050
+
1051
+ $.position = {
1052
+ scrollbarWidth: function() {
1053
+ if ( cachedScrollbarWidth !== undefined ) {
1054
+ return cachedScrollbarWidth;
1055
+ }
1056
+ var w1, w2,
1057
+ div = $( "<div style='display:block;width:50px;height:50px;overflow:hidden;'><div style='height:100px;width:auto;'></div></div>" ),
1058
+ innerDiv = div.children()[0];
1059
+
1060
+ $( "body" ).append( div );
1061
+ w1 = innerDiv.offsetWidth;
1062
+ div.css( "overflow", "scroll" );
1063
+
1064
+ w2 = innerDiv.offsetWidth;
1065
+
1066
+ if ( w1 === w2 ) {
1067
+ w2 = div[0].clientWidth;
1068
+ }
1069
+
1070
+ div.remove();
1071
+
1072
+ return (cachedScrollbarWidth = w1 - w2);
1073
+ },
1074
+ getScrollInfo: function( within ) {
1075
+ var overflowX = within.isWindow ? "" : within.element.css( "overflow-x" ),
1076
+ overflowY = within.isWindow ? "" : within.element.css( "overflow-y" ),
1077
+ hasOverflowX = overflowX === "scroll" ||
1078
+ ( overflowX === "auto" && within.width < within.element[0].scrollWidth ),
1079
+ hasOverflowY = overflowY === "scroll" ||
1080
+ ( overflowY === "auto" && within.height < within.element[0].scrollHeight );
1081
+ return {
1082
+ width: hasOverflowX ? $.position.scrollbarWidth() : 0,
1083
+ height: hasOverflowY ? $.position.scrollbarWidth() : 0
1084
+ };
1085
+ },
1086
+ getWithinInfo: function( element ) {
1087
+ var withinElement = $( element || window ),
1088
+ isWindow = $.isWindow( withinElement[0] );
1089
+ return {
1090
+ element: withinElement,
1091
+ isWindow: isWindow,
1092
+ offset: withinElement.offset() || { left: 0, top: 0 },
1093
+ scrollLeft: withinElement.scrollLeft(),
1094
+ scrollTop: withinElement.scrollTop(),
1095
+ width: isWindow ? withinElement.width() : withinElement.outerWidth(),
1096
+ height: isWindow ? withinElement.height() : withinElement.outerHeight()
1097
+ };
1098
+ }
1099
+ };
1100
+
1101
+ $.fn.position = function( options ) {
1102
+ if ( !options || !options.of ) {
1103
+ return _position.apply( this, arguments );
1104
+ }
1105
+
1106
+ // make a copy, we don't want to modify arguments
1107
+ options = $.extend( {}, options );
1108
+
1109
+ var atOffset, targetWidth, targetHeight, targetOffset, basePosition,
1110
+ target = $( options.of ),
1111
+ within = $.position.getWithinInfo( options.within ),
1112
+ scrollInfo = $.position.getScrollInfo( within ),
1113
+ targetElem = target[0],
1114
+ collision = ( options.collision || "flip" ).split( " " ),
1115
+ offsets = {};
1116
+
1117
+ if ( targetElem.nodeType === 9 ) {
1118
+ targetWidth = target.width();
1119
+ targetHeight = target.height();
1120
+ targetOffset = { top: 0, left: 0 };
1121
+ } else if ( $.isWindow( targetElem ) ) {
1122
+ targetWidth = target.width();
1123
+ targetHeight = target.height();
1124
+ targetOffset = { top: target.scrollTop(), left: target.scrollLeft() };
1125
+ } else if ( targetElem.preventDefault ) {
1126
+ // force left top to allow flipping
1127
+ options.at = "left top";
1128
+ targetWidth = targetHeight = 0;
1129
+ targetOffset = { top: targetElem.pageY, left: targetElem.pageX };
1130
+ } else {
1131
+ targetWidth = target.outerWidth();
1132
+ targetHeight = target.outerHeight();
1133
+ targetOffset = target.offset();
1134
+ }
1135
+ // clone to reuse original targetOffset later
1136
+ basePosition = $.extend( {}, targetOffset );
1137
+
1138
+ // force my and at to have valid horizontal and vertical positions
1139
+ // if a value is missing or invalid, it will be converted to center
1140
+ $.each( [ "my", "at" ], function() {
1141
+ var pos = ( options[ this ] || "" ).split( " " ),
1142
+ horizontalOffset,
1143
+ verticalOffset;
1144
+
1145
+ if ( pos.length === 1) {
1146
+ pos = rhorizontal.test( pos[ 0 ] ) ?
1147
+ pos.concat( [ "center" ] ) :
1148
+ rvertical.test( pos[ 0 ] ) ?
1149
+ [ "center" ].concat( pos ) :
1150
+ [ "center", "center" ];
1151
+ }
1152
+ pos[ 0 ] = rhorizontal.test( pos[ 0 ] ) ? pos[ 0 ] : "center";
1153
+ pos[ 1 ] = rvertical.test( pos[ 1 ] ) ? pos[ 1 ] : "center";
1154
+
1155
+ // calculate offsets
1156
+ horizontalOffset = roffset.exec( pos[ 0 ] );
1157
+ verticalOffset = roffset.exec( pos[ 1 ] );
1158
+ offsets[ this ] = [
1159
+ horizontalOffset ? horizontalOffset[ 0 ] : 0,
1160
+ verticalOffset ? verticalOffset[ 0 ] : 0
1161
+ ];
1162
+
1163
+ // reduce to just the positions without the offsets
1164
+ options[ this ] = [
1165
+ rposition.exec( pos[ 0 ] )[ 0 ],
1166
+ rposition.exec( pos[ 1 ] )[ 0 ]
1167
+ ];
1168
+ });
1169
+
1170
+ // normalize collision option
1171
+ if ( collision.length === 1 ) {
1172
+ collision[ 1 ] = collision[ 0 ];
1173
+ }
1174
+
1175
+ if ( options.at[ 0 ] === "right" ) {
1176
+ basePosition.left += targetWidth;
1177
+ } else if ( options.at[ 0 ] === "center" ) {
1178
+ basePosition.left += targetWidth / 2;
1179
+ }
1180
+
1181
+ if ( options.at[ 1 ] === "bottom" ) {
1182
+ basePosition.top += targetHeight;
1183
+ } else if ( options.at[ 1 ] === "center" ) {
1184
+ basePosition.top += targetHeight / 2;
1185
+ }
1186
+
1187
+ atOffset = getOffsets( offsets.at, targetWidth, targetHeight );
1188
+ basePosition.left += atOffset[ 0 ];
1189
+ basePosition.top += atOffset[ 1 ];
1190
+
1191
+ return this.each(function() {
1192
+ var collisionPosition, using,
1193
+ elem = $( this ),
1194
+ elemWidth = elem.outerWidth(),
1195
+ elemHeight = elem.outerHeight(),
1196
+ marginLeft = parseCss( this, "marginLeft" ),
1197
+ marginTop = parseCss( this, "marginTop" ),
1198
+ collisionWidth = elemWidth + marginLeft + parseCss( this, "marginRight" ) + scrollInfo.width,
1199
+ collisionHeight = elemHeight + marginTop + parseCss( this, "marginBottom" ) + scrollInfo.height,
1200
+ position = $.extend( {}, basePosition ),
1201
+ myOffset = getOffsets( offsets.my, elem.outerWidth(), elem.outerHeight() );
1202
+
1203
+ if ( options.my[ 0 ] === "right" ) {
1204
+ position.left -= elemWidth;
1205
+ } else if ( options.my[ 0 ] === "center" ) {
1206
+ position.left -= elemWidth / 2;
1207
+ }
1208
+
1209
+ if ( options.my[ 1 ] === "bottom" ) {
1210
+ position.top -= elemHeight;
1211
+ } else if ( options.my[ 1 ] === "center" ) {
1212
+ position.top -= elemHeight / 2;
1213
+ }
1214
+
1215
+ position.left += myOffset[ 0 ];
1216
+ position.top += myOffset[ 1 ];
1217
+
1218
+ // if the browser doesn't support fractions, then round for consistent results
1219
+ if ( !$.support.offsetFractions ) {
1220
+ position.left = round( position.left );
1221
+ position.top = round( position.top );
1222
+ }
1223
+
1224
+ collisionPosition = {
1225
+ marginLeft: marginLeft,
1226
+ marginTop: marginTop
1227
+ };
1228
+
1229
+ $.each( [ "left", "top" ], function( i, dir ) {
1230
+ if ( $.ui.position[ collision[ i ] ] ) {
1231
+ $.ui.position[ collision[ i ] ][ dir ]( position, {
1232
+ targetWidth: targetWidth,
1233
+ targetHeight: targetHeight,
1234
+ elemWidth: elemWidth,
1235
+ elemHeight: elemHeight,
1236
+ collisionPosition: collisionPosition,
1237
+ collisionWidth: collisionWidth,
1238
+ collisionHeight: collisionHeight,
1239
+ offset: [ atOffset[ 0 ] + myOffset[ 0 ], atOffset [ 1 ] + myOffset[ 1 ] ],
1240
+ my: options.my,
1241
+ at: options.at,
1242
+ within: within,
1243
+ elem : elem
1244
+ });
1245
+ }
1246
+ });
1247
+
1248
+ if ( $.fn.bgiframe ) {
1249
+ elem.bgiframe();
1250
+ }
1251
+
1252
+ if ( options.using ) {
1253
+ // adds feedback as second argument to using callback, if present
1254
+ using = function( props ) {
1255
+ var left = targetOffset.left - position.left,
1256
+ right = left + targetWidth - elemWidth,
1257
+ top = targetOffset.top - position.top,
1258
+ bottom = top + targetHeight - elemHeight,
1259
+ feedback = {
1260
+ target: {
1261
+ element: target,
1262
+ left: targetOffset.left,
1263
+ top: targetOffset.top,
1264
+ width: targetWidth,
1265
+ height: targetHeight
1266
+ },
1267
+ element: {
1268
+ element: elem,
1269
+ left: position.left,
1270
+ top: position.top,
1271
+ width: elemWidth,
1272
+ height: elemHeight
1273
+ },
1274
+ horizontal: right < 0 ? "left" : left > 0 ? "right" : "center",
1275
+ vertical: bottom < 0 ? "top" : top > 0 ? "bottom" : "middle"
1276
+ };
1277
+ if ( targetWidth < elemWidth && abs( left + right ) < targetWidth ) {
1278
+ feedback.horizontal = "center";
1279
+ }
1280
+ if ( targetHeight < elemHeight && abs( top + bottom ) < targetHeight ) {
1281
+ feedback.vertical = "middle";
1282
+ }
1283
+ if ( max( abs( left ), abs( right ) ) > max( abs( top ), abs( bottom ) ) ) {
1284
+ feedback.important = "horizontal";
1285
+ } else {
1286
+ feedback.important = "vertical";
1287
+ }
1288
+ options.using.call( this, props, feedback );
1289
+ };
1290
+ }
1291
+
1292
+ elem.offset( $.extend( position, { using: using } ) );
1293
+ });
1294
+ };
1295
+
1296
+ $.ui.position = {
1297
+ fit: {
1298
+ left: function( position, data ) {
1299
+ var within = data.within,
1300
+ withinOffset = within.isWindow ? within.scrollLeft : within.offset.left,
1301
+ outerWidth = within.width,
1302
+ collisionPosLeft = position.left - data.collisionPosition.marginLeft,
1303
+ overLeft = withinOffset - collisionPosLeft,
1304
+ overRight = collisionPosLeft + data.collisionWidth - outerWidth - withinOffset,
1305
+ newOverRight;
1306
+
1307
+ // element is wider than within
1308
+ if ( data.collisionWidth > outerWidth ) {
1309
+ // element is initially over the left side of within
1310
+ if ( overLeft > 0 && overRight <= 0 ) {
1311
+ newOverRight = position.left + overLeft + data.collisionWidth - outerWidth - withinOffset;
1312
+ position.left += overLeft - newOverRight;
1313
+ // element is initially over right side of within
1314
+ } else if ( overRight > 0 && overLeft <= 0 ) {
1315
+ position.left = withinOffset;
1316
+ // element is initially over both left and right sides of within
1317
+ } else {
1318
+ if ( overLeft > overRight ) {
1319
+ position.left = withinOffset + outerWidth - data.collisionWidth;
1320
+ } else {
1321
+ position.left = withinOffset;
1322
+ }
1323
+ }
1324
+ // too far left -> align with left edge
1325
+ } else if ( overLeft > 0 ) {
1326
+ position.left += overLeft;
1327
+ // too far right -> align with right edge
1328
+ } else if ( overRight > 0 ) {
1329
+ position.left -= overRight;
1330
+ // adjust based on position and margin
1331
+ } else {
1332
+ position.left = max( position.left - collisionPosLeft, position.left );
1333
+ }
1334
+ },
1335
+ top: function( position, data ) {
1336
+ var within = data.within,
1337
+ withinOffset = within.isWindow ? within.scrollTop : within.offset.top,
1338
+ outerHeight = data.within.height,
1339
+ collisionPosTop = position.top - data.collisionPosition.marginTop,
1340
+ overTop = withinOffset - collisionPosTop,
1341
+ overBottom = collisionPosTop + data.collisionHeight - outerHeight - withinOffset,
1342
+ newOverBottom;
1343
+
1344
+ // element is taller than within
1345
+ if ( data.collisionHeight > outerHeight ) {
1346
+ // element is initially over the top of within
1347
+ if ( overTop > 0 && overBottom <= 0 ) {
1348
+ newOverBottom = position.top + overTop + data.collisionHeight - outerHeight - withinOffset;
1349
+ position.top += overTop - newOverBottom;
1350
+ // element is initially over bottom of within
1351
+ } else if ( overBottom > 0 && overTop <= 0 ) {
1352
+ position.top = withinOffset;
1353
+ // element is initially over both top and bottom of within
1354
+ } else {
1355
+ if ( overTop > overBottom ) {
1356
+ position.top = withinOffset + outerHeight - data.collisionHeight;
1357
+ } else {
1358
+ position.top = withinOffset;
1359
+ }
1360
+ }
1361
+ // too far up -> align with top
1362
+ } else if ( overTop > 0 ) {
1363
+ position.top += overTop;
1364
+ // too far down -> align with bottom edge
1365
+ } else if ( overBottom > 0 ) {
1366
+ position.top -= overBottom;
1367
+ // adjust based on position and margin
1368
+ } else {
1369
+ position.top = max( position.top - collisionPosTop, position.top );
1370
+ }
1371
+ }
1372
+ },
1373
+ flip: {
1374
+ left: function( position, data ) {
1375
+ var within = data.within,
1376
+ withinOffset = within.offset.left + within.scrollLeft,
1377
+ outerWidth = within.width,
1378
+ offsetLeft = within.isWindow ? within.scrollLeft : within.offset.left,
1379
+ collisionPosLeft = position.left - data.collisionPosition.marginLeft,
1380
+ overLeft = collisionPosLeft - offsetLeft,
1381
+ overRight = collisionPosLeft + data.collisionWidth - outerWidth - offsetLeft,
1382
+ myOffset = data.my[ 0 ] === "left" ?
1383
+ -data.elemWidth :
1384
+ data.my[ 0 ] === "right" ?
1385
+ data.elemWidth :
1386
+ 0,
1387
+ atOffset = data.at[ 0 ] === "left" ?
1388
+ data.targetWidth :
1389
+ data.at[ 0 ] === "right" ?
1390
+ -data.targetWidth :
1391
+ 0,
1392
+ offset = -2 * data.offset[ 0 ],
1393
+ newOverRight,
1394
+ newOverLeft;
1395
+
1396
+ if ( overLeft < 0 ) {
1397
+ newOverRight = position.left + myOffset + atOffset + offset + data.collisionWidth - outerWidth - withinOffset;
1398
+ if ( newOverRight < 0 || newOverRight < abs( overLeft ) ) {
1399
+ position.left += myOffset + atOffset + offset;
1400
+ }
1401
+ }
1402
+ else if ( overRight > 0 ) {
1403
+ newOverLeft = position.left - data.collisionPosition.marginLeft + myOffset + atOffset + offset - offsetLeft;
1404
+ if ( newOverLeft > 0 || abs( newOverLeft ) < overRight ) {
1405
+ position.left += myOffset + atOffset + offset;
1406
+ }
1407
+ }
1408
+ },
1409
+ top: function( position, data ) {
1410
+ var within = data.within,
1411
+ withinOffset = within.offset.top + within.scrollTop,
1412
+ outerHeight = within.height,
1413
+ offsetTop = within.isWindow ? within.scrollTop : within.offset.top,
1414
+ collisionPosTop = position.top - data.collisionPosition.marginTop,
1415
+ overTop = collisionPosTop - offsetTop,
1416
+ overBottom = collisionPosTop + data.collisionHeight - outerHeight - offsetTop,
1417
+ top = data.my[ 1 ] === "top",
1418
+ myOffset = top ?
1419
+ -data.elemHeight :
1420
+ data.my[ 1 ] === "bottom" ?
1421
+ data.elemHeight :
1422
+ 0,
1423
+ atOffset = data.at[ 1 ] === "top" ?
1424
+ data.targetHeight :
1425
+ data.at[ 1 ] === "bottom" ?
1426
+ -data.targetHeight :
1427
+ 0,
1428
+ offset = -2 * data.offset[ 1 ],
1429
+ newOverTop,
1430
+ newOverBottom;
1431
+ if ( overTop < 0 ) {
1432
+ newOverBottom = position.top + myOffset + atOffset + offset + data.collisionHeight - outerHeight - withinOffset;
1433
+ if ( ( position.top + myOffset + atOffset + offset) > overTop && ( newOverBottom < 0 || newOverBottom < abs( overTop ) ) ) {
1434
+ position.top += myOffset + atOffset + offset;
1435
+ }
1436
+ }
1437
+ else if ( overBottom > 0 ) {
1438
+ newOverTop = position.top - data.collisionPosition.marginTop + myOffset + atOffset + offset - offsetTop;
1439
+ if ( ( position.top + myOffset + atOffset + offset) > overBottom && ( newOverTop > 0 || abs( newOverTop ) < overBottom ) ) {
1440
+ position.top += myOffset + atOffset + offset;
1441
+ }
1442
+ }
1443
+ }
1444
+ },
1445
+ flipfit: {
1446
+ left: function() {
1447
+ $.ui.position.flip.left.apply( this, arguments );
1448
+ $.ui.position.fit.left.apply( this, arguments );
1449
+ },
1450
+ top: function() {
1451
+ $.ui.position.flip.top.apply( this, arguments );
1452
+ $.ui.position.fit.top.apply( this, arguments );
1453
+ }
1454
+ }
1455
+ };
1456
+
1457
+ // fraction support test
1458
+ (function () {
1459
+ var testElement, testElementParent, testElementStyle, offsetLeft, i,
1460
+ body = document.getElementsByTagName( "body" )[ 0 ],
1461
+ div = document.createElement( "div" );
1462
+
1463
+ //Create a "fake body" for testing based on method used in jQuery.support
1464
+ testElement = document.createElement( body ? "div" : "body" );
1465
+ testElementStyle = {
1466
+ visibility: "hidden",
1467
+ width: 0,
1468
+ height: 0,
1469
+ border: 0,
1470
+ margin: 0,
1471
+ background: "none"
1472
+ };
1473
+ if ( body ) {
1474
+ $.extend( testElementStyle, {
1475
+ position: "absolute",
1476
+ left: "-1000px",
1477
+ top: "-1000px"
1478
+ });
1479
+ }
1480
+ for ( i in testElementStyle ) {
1481
+ testElement.style[ i ] = testElementStyle[ i ];
1482
+ }
1483
+ testElement.appendChild( div );
1484
+ testElementParent = body || document.documentElement;
1485
+ testElementParent.insertBefore( testElement, testElementParent.firstChild );
1486
+
1487
+ div.style.cssText = "position: absolute; left: 10.7432222px;";
1488
+
1489
+ offsetLeft = $( div ).offset().left;
1490
+ $.support.offsetFractions = offsetLeft > 10 && offsetLeft < 11;
1491
+
1492
+ testElement.innerHTML = "";
1493
+ testElementParent.removeChild( testElement );
1494
+ })();
1495
+
1496
+ // DEPRECATED
1497
+ if ( $.uiBackCompat !== false ) {
1498
+ // offset option
1499
+ (function( $ ) {
1500
+ var _position = $.fn.position;
1501
+ $.fn.position = function( options ) {
1502
+ if ( !options || !options.offset ) {
1503
+ return _position.call( this, options );
1504
+ }
1505
+ var offset = options.offset.split( " " ),
1506
+ at = options.at.split( " " );
1507
+ if ( offset.length === 1 ) {
1508
+ offset[ 1 ] = offset[ 0 ];
1509
+ }
1510
+ if ( /^\d/.test( offset[ 0 ] ) ) {
1511
+ offset[ 0 ] = "+" + offset[ 0 ];
1512
+ }
1513
+ if ( /^\d/.test( offset[ 1 ] ) ) {
1514
+ offset[ 1 ] = "+" + offset[ 1 ];
1515
+ }
1516
+ if ( at.length === 1 ) {
1517
+ if ( /left|center|right/.test( at[ 0 ] ) ) {
1518
+ at[ 1 ] = "center";
1519
+ } else {
1520
+ at[ 1 ] = at[ 0 ];
1521
+ at[ 0 ] = "center";
1522
+ }
1523
+ }
1524
+ return _position.call( this, $.extend( options, {
1525
+ at: at[ 0 ] + offset[ 0 ] + " " + at[ 1 ] + offset[ 1 ],
1526
+ offset: undefined
1527
+ } ) );
1528
+ };
1529
+ }( sQuery ) );
1530
+ }
1531
+
1532
+ }( sQuery ) );
1533
+ (function( $, undefined ) {
1534
+
1535
+ $.widget("ui.draggable", $.ui.mouse, {
1536
+ version: "1.9.2",
1537
+ widgetEventPrefix: "drag",
1538
+ options: {
1539
+ addClasses: true,
1540
+ appendTo: "parent",
1541
+ axis: false,
1542
+ connectToSortable: false,
1543
+ containment: false,
1544
+ cursor: "auto",
1545
+ cursorAt: false,
1546
+ grid: false,
1547
+ handle: false,
1548
+ helper: "original",
1549
+ iframeFix: false,
1550
+ opacity: false,
1551
+ refreshPositions: false,
1552
+ revert: false,
1553
+ revertDuration: 500,
1554
+ scope: "default",
1555
+ scroll: true,
1556
+ scrollSensitivity: 20,
1557
+ scrollSpeed: 20,
1558
+ snap: false,
1559
+ snapMode: "both",
1560
+ snapTolerance: 20,
1561
+ stack: false,
1562
+ zIndex: false
1563
+ },
1564
+ _create: function() {
1565
+
1566
+ if (this.options.helper == 'original' && !(/^(?:r|a|f)/).test(this.element.css("position")))
1567
+ this.element[0].style.position = 'relative';
1568
+
1569
+ (this.options.addClasses && this.element.addClass("ui-draggable"));
1570
+ (this.options.disabled && this.element.addClass("ui-draggable-disabled"));
1571
+
1572
+ this._mouseInit();
1573
+
1574
+ },
1575
+
1576
+ _destroy: function() {
1577
+ this.element.removeClass( "ui-draggable ui-draggable-dragging ui-draggable-disabled" );
1578
+ this._mouseDestroy();
1579
+ },
1580
+
1581
+ _mouseCapture: function(event) {
1582
+
1583
+ var o = this.options;
1584
+
1585
+ // among others, prevent a drag on a resizable-handle
1586
+ if (this.helper || o.disabled || $(event.target).is('.ui-resizable-handle'))
1587
+ return false;
1588
+
1589
+ //Quit if we're not on a valid handle
1590
+ this.handle = this._getHandle(event);
1591
+ if (!this.handle)
1592
+ return false;
1593
+
1594
+ $(o.iframeFix === true ? "iframe" : o.iframeFix).each(function() {
1595
+ $('<div class="ui-draggable-iframeFix" style="background: #fff;"></div>')
1596
+ .css({
1597
+ width: this.offsetWidth+"px", height: this.offsetHeight+"px",
1598
+ position: "absolute", opacity: "0.001", zIndex: 1000
1599
+ })
1600
+ .css($(this).offset())
1601
+ .appendTo("body");
1602
+ });
1603
+
1604
+ return true;
1605
+
1606
+ },
1607
+
1608
+ _mouseStart: function(event) {
1609
+
1610
+ var o = this.options;
1611
+
1612
+ //Create and append the visible helper
1613
+ this.helper = this._createHelper(event);
1614
+
1615
+ this.helper.addClass("ui-draggable-dragging");
1616
+
1617
+ //Cache the helper size
1618
+ this._cacheHelperProportions();
1619
+
1620
+ //If ddmanager is used for droppables, set the global draggable
1621
+ if($.ui.ddmanager)
1622
+ $.ui.ddmanager.current = this;
1623
+
1624
+ /*
1625
+ * - Position generation -
1626
+ * This block generates everything position related - it's the core of draggables.
1627
+ */
1628
+
1629
+ //Cache the margins of the original element
1630
+ this._cacheMargins();
1631
+
1632
+ //Store the helper's css position
1633
+ this.cssPosition = this.helper.css("position");
1634
+ this.scrollParent = this.helper.scrollParent();
1635
+
1636
+ //The element's absolute position on the page minus margins
1637
+ this.offset = this.positionAbs = this.element.offset();
1638
+ this.offset = {
1639
+ top: this.offset.top - this.margins.top,
1640
+ left: this.offset.left - this.margins.left
1641
+ };
1642
+
1643
+ $.extend(this.offset, {
1644
+ click: { //Where the click happened, relative to the element
1645
+ left: event.pageX - this.offset.left,
1646
+ top: event.pageY - this.offset.top
1647
+ },
1648
+ parent: this._getParentOffset(),
1649
+ relative: this._getRelativeOffset() //This is a relative to absolute position minus the actual position calculation - only used for relative positioned helper
1650
+ });
1651
+
1652
+ //Generate the original position
1653
+ this.originalPosition = this.position = this._generatePosition(event);
1654
+ this.originalPageX = event.pageX;
1655
+ this.originalPageY = event.pageY;
1656
+
1657
+ //Adjust the mouse offset relative to the helper if 'cursorAt' is supplied
1658
+ (o.cursorAt && this._adjustOffsetFromHelper(o.cursorAt));
1659
+
1660
+ //Set a containment if given in the options
1661
+ if(o.containment)
1662
+ this._setContainment();
1663
+
1664
+ //Trigger event + callbacks
1665
+ if(this._trigger("start", event) === false) {
1666
+ this._clear();
1667
+ return false;
1668
+ }
1669
+
1670
+ //Recache the helper size
1671
+ this._cacheHelperProportions();
1672
+
1673
+ //Prepare the droppable offsets
1674
+ if ($.ui.ddmanager && !o.dropBehaviour)
1675
+ $.ui.ddmanager.prepareOffsets(this, event);
1676
+
1677
+
1678
+ this._mouseDrag(event, true); //Execute the drag once - this causes the helper not to be visible before getting its correct position
1679
+
1680
+ //If the ddmanager is used for droppables, inform the manager that dragging has started (see #5003)
1681
+ if ( $.ui.ddmanager ) $.ui.ddmanager.dragStart(this, event);
1682
+
1683
+ return true;
1684
+ },
1685
+
1686
+ _mouseDrag: function(event, noPropagation) {
1687
+
1688
+ //Compute the helpers position
1689
+ this.position = this._generatePosition(event);
1690
+ this.positionAbs = this._convertPositionTo("absolute");
1691
+
1692
+ //Call plugins and callbacks and use the resulting position if something is returned
1693
+ if (!noPropagation) {
1694
+ var ui = this._uiHash();
1695
+ if(this._trigger('drag', event, ui) === false) {
1696
+ this._mouseUp({});
1697
+ return false;
1698
+ }
1699
+ this.position = ui.position;
1700
+ }
1701
+
1702
+ if(!this.options.axis || this.options.axis != "y") this.helper[0].style.left = this.position.left+'px';
1703
+ if(!this.options.axis || this.options.axis != "x") this.helper[0].style.top = this.position.top+'px';
1704
+ if($.ui.ddmanager) $.ui.ddmanager.drag(this, event);
1705
+
1706
+ return false;
1707
+ },
1708
+
1709
+ _mouseStop: function(event) {
1710
+
1711
+ //If we are using droppables, inform the manager about the drop
1712
+ var dropped = false;
1713
+ if ($.ui.ddmanager && !this.options.dropBehaviour)
1714
+ dropped = $.ui.ddmanager.drop(this, event);
1715
+
1716
+ //if a drop comes from outside (a sortable)
1717
+ if(this.dropped) {
1718
+ dropped = this.dropped;
1719
+ this.dropped = false;
1720
+ }
1721
+
1722
+ //if the original element is no longer in the DOM don't bother to continue (see #8269)
1723
+ var element = this.element[0], elementInDom = false;
1724
+ while ( element && (element = element.parentNode) ) {
1725
+ if (element == document ) {
1726
+ elementInDom = true;
1727
+ }
1728
+ }
1729
+ if ( !elementInDom && this.options.helper === "original" )
1730
+ return false;
1731
+
1732
+ if((this.options.revert == "invalid" && !dropped) || (this.options.revert == "valid" && dropped) || this.options.revert === true || ($.isFunction(this.options.revert) && this.options.revert.call(this.element, dropped))) {
1733
+ var that = this;
1734
+ $(this.helper).animate(this.originalPosition, parseInt(this.options.revertDuration, 10), function() {
1735
+ if(that._trigger("stop", event) !== false) {
1736
+ that._clear();
1737
+ }
1738
+ });
1739
+ } else {
1740
+ if(this._trigger("stop", event) !== false) {
1741
+ this._clear();
1742
+ }
1743
+ }
1744
+
1745
+ return false;
1746
+ },
1747
+
1748
+ _mouseUp: function(event) {
1749
+ //Remove frame helpers
1750
+ $("div.ui-draggable-iframeFix").each(function() {
1751
+ this.parentNode.removeChild(this);
1752
+ });
1753
+
1754
+ //If the ddmanager is used for droppables, inform the manager that dragging has stopped (see #5003)
1755
+ if( $.ui.ddmanager ) $.ui.ddmanager.dragStop(this, event);
1756
+
1757
+ return $.ui.mouse.prototype._mouseUp.call(this, event);
1758
+ },
1759
+
1760
+ cancel: function() {
1761
+
1762
+ if(this.helper.is(".ui-draggable-dragging")) {
1763
+ this._mouseUp({});
1764
+ } else {
1765
+ this._clear();
1766
+ }
1767
+
1768
+ return this;
1769
+
1770
+ },
1771
+
1772
+ _getHandle: function(event) {
1773
+
1774
+ var handle = !this.options.handle || !$(this.options.handle, this.element).length ? true : false;
1775
+ $(this.options.handle, this.element)
1776
+ .find("*")
1777
+ .andSelf()
1778
+ .each(function() {
1779
+ if(this == event.target) handle = true;
1780
+ });
1781
+
1782
+ return handle;
1783
+
1784
+ },
1785
+
1786
+ _createHelper: function(event) {
1787
+
1788
+ var o = this.options;
1789
+ var helper = $.isFunction(o.helper) ? $(o.helper.apply(this.element[0], [event])) : (o.helper == 'clone' ? this.element.clone().removeAttr('id') : this.element);
1790
+
1791
+ if(!helper.parents('body').length)
1792
+ helper.appendTo((o.appendTo == 'parent' ? this.element[0].parentNode : o.appendTo));
1793
+
1794
+ if(helper[0] != this.element[0] && !(/(fixed|absolute)/).test(helper.css("position")))
1795
+ helper.css("position", "absolute");
1796
+
1797
+ return helper;
1798
+
1799
+ },
1800
+
1801
+ _adjustOffsetFromHelper: function(obj) {
1802
+ if (typeof obj == 'string') {
1803
+ obj = obj.split(' ');
1804
+ }
1805
+ if ($.isArray(obj)) {
1806
+ obj = {left: +obj[0], top: +obj[1] || 0};
1807
+ }
1808
+ if ('left' in obj) {
1809
+ this.offset.click.left = obj.left + this.margins.left;
1810
+ }
1811
+ if ('right' in obj) {
1812
+ this.offset.click.left = this.helperProportions.width - obj.right + this.margins.left;
1813
+ }
1814
+ if ('top' in obj) {
1815
+ this.offset.click.top = obj.top + this.margins.top;
1816
+ }
1817
+ if ('bottom' in obj) {
1818
+ this.offset.click.top = this.helperProportions.height - obj.bottom + this.margins.top;
1819
+ }
1820
+ },
1821
+
1822
+ _getParentOffset: function() {
1823
+
1824
+ //Get the offsetParent and cache its position
1825
+ this.offsetParent = this.helper.offsetParent();
1826
+ var po = this.offsetParent.offset();
1827
+
1828
+ // This is a special case where we need to modify a offset calculated on start, since the following happened:
1829
+ // 1. The position of the helper is absolute, so it's position is calculated based on the next positioned parent
1830
+ // 2. The actual offset parent is a child of the scroll parent, and the scroll parent isn't the document, which means that
1831
+ // the scroll is included in the initial calculation of the offset of the parent, and never recalculated upon drag
1832
+ if(this.cssPosition == 'absolute' && this.scrollParent[0] != document && $.contains(this.scrollParent[0], this.offsetParent[0])) {
1833
+ po.left += this.scrollParent.scrollLeft();
1834
+ po.top += this.scrollParent.scrollTop();
1835
+ }
1836
+
1837
+ if((this.offsetParent[0] == document.body) //This needs to be actually done for all browsers, since pageX/pageY includes this information
1838
+ || (this.offsetParent[0].tagName && this.offsetParent[0].tagName.toLowerCase() == 'html' && $.ui.ie)) //Ugly IE fix
1839
+ po = { top: 0, left: 0 };
1840
+
1841
+ return {
1842
+ top: po.top + (parseInt(this.offsetParent.css("borderTopWidth"),10) || 0),
1843
+ left: po.left + (parseInt(this.offsetParent.css("borderLeftWidth"),10) || 0)
1844
+ };
1845
+
1846
+ },
1847
+
1848
+ _getRelativeOffset: function() {
1849
+
1850
+ if(this.cssPosition == "relative") {
1851
+ var p = this.element.position();
1852
+ return {
1853
+ top: p.top - (parseInt(this.helper.css("top"),10) || 0) + this.scrollParent.scrollTop(),
1854
+ left: p.left - (parseInt(this.helper.css("left"),10) || 0) + this.scrollParent.scrollLeft()
1855
+ };
1856
+ } else {
1857
+ return { top: 0, left: 0 };
1858
+ }
1859
+
1860
+ },
1861
+
1862
+ _cacheMargins: function() {
1863
+ this.margins = {
1864
+ left: (parseInt(this.element.css("marginLeft"),10) || 0),
1865
+ top: (parseInt(this.element.css("marginTop"),10) || 0),
1866
+ right: (parseInt(this.element.css("marginRight"),10) || 0),
1867
+ bottom: (parseInt(this.element.css("marginBottom"),10) || 0)
1868
+ };
1869
+ },
1870
+
1871
+ _cacheHelperProportions: function() {
1872
+ this.helperProportions = {
1873
+ width: this.helper.outerWidth(),
1874
+ height: this.helper.outerHeight()
1875
+ };
1876
+ },
1877
+
1878
+ _setContainment: function() {
1879
+
1880
+ var o = this.options;
1881
+ if(o.containment == 'parent') o.containment = this.helper[0].parentNode;
1882
+ if(o.containment == 'document' || o.containment == 'window') this.containment = [
1883
+ o.containment == 'document' ? 0 : $(window).scrollLeft() - this.offset.relative.left - this.offset.parent.left,
1884
+ o.containment == 'document' ? 0 : $(window).scrollTop() - this.offset.relative.top - this.offset.parent.top,
1885
+ (o.containment == 'document' ? 0 : $(window).scrollLeft()) + $(o.containment == 'document' ? document : window).width() - this.helperProportions.width - this.margins.left,
1886
+ (o.containment == 'document' ? 0 : $(window).scrollTop()) + ($(o.containment == 'document' ? document : window).height() || document.body.parentNode.scrollHeight) - this.helperProportions.height - this.margins.top
1887
+ ];
1888
+
1889
+ if(!(/^(document|window|parent)$/).test(o.containment) && o.containment.constructor != Array) {
1890
+ var c = $(o.containment);
1891
+ var ce = c[0]; if(!ce) return;
1892
+ var co = c.offset();
1893
+ var over = ($(ce).css("overflow") != 'hidden');
1894
+
1895
+ this.containment = [
1896
+ (parseInt($(ce).css("borderLeftWidth"),10) || 0) + (parseInt($(ce).css("paddingLeft"),10) || 0),
1897
+ (parseInt($(ce).css("borderTopWidth"),10) || 0) + (parseInt($(ce).css("paddingTop"),10) || 0),
1898
+ (over ? Math.max(ce.scrollWidth,ce.offsetWidth) : ce.offsetWidth) - (parseInt($(ce).css("borderLeftWidth"),10) || 0) - (parseInt($(ce).css("paddingRight"),10) || 0) - this.helperProportions.width - this.margins.left - this.margins.right,
1899
+ (over ? Math.max(ce.scrollHeight,ce.offsetHeight) : ce.offsetHeight) - (parseInt($(ce).css("borderTopWidth"),10) || 0) - (parseInt($(ce).css("paddingBottom"),10) || 0) - this.helperProportions.height - this.margins.top - this.margins.bottom
1900
+ ];
1901
+ this.relative_container = c;
1902
+
1903
+ } else if(o.containment.constructor == Array) {
1904
+ this.containment = o.containment;
1905
+ }
1906
+
1907
+ },
1908
+
1909
+ _convertPositionTo: function(d, pos) {
1910
+
1911
+ if(!pos) pos = this.position;
1912
+ var mod = d == "absolute" ? 1 : -1;
1913
+ var o = this.options, scroll = this.cssPosition == 'absolute' && !(this.scrollParent[0] != document && $.contains(this.scrollParent[0], this.offsetParent[0])) ? this.offsetParent : this.scrollParent, scrollIsRootNode = (/(html|body)/i).test(scroll[0].tagName);
1914
+
1915
+ return {
1916
+ top: (
1917
+ pos.top // The absolute mouse position
1918
+ + this.offset.relative.top * mod // Only for relative positioned nodes: Relative offset from element to offset parent
1919
+ + this.offset.parent.top * mod // The offsetParent's offset without borders (offset + border)
1920
+ - ( ( this.cssPosition == 'fixed' ? -this.scrollParent.scrollTop() : ( scrollIsRootNode ? 0 : scroll.scrollTop() ) ) * mod)
1921
+ ),
1922
+ left: (
1923
+ pos.left // The absolute mouse position
1924
+ + this.offset.relative.left * mod // Only for relative positioned nodes: Relative offset from element to offset parent
1925
+ + this.offset.parent.left * mod // The offsetParent's offset without borders (offset + border)
1926
+ - ( ( this.cssPosition == 'fixed' ? -this.scrollParent.scrollLeft() : scrollIsRootNode ? 0 : scroll.scrollLeft() ) * mod)
1927
+ )
1928
+ };
1929
+
1930
+ },
1931
+
1932
+ _generatePosition: function(event) {
1933
+
1934
+ var o = this.options, scroll = this.cssPosition == 'absolute' && !(this.scrollParent[0] != document && $.contains(this.scrollParent[0], this.offsetParent[0])) ? this.offsetParent : this.scrollParent, scrollIsRootNode = (/(html|body)/i).test(scroll[0].tagName);
1935
+ var pageX = event.pageX;
1936
+ var pageY = event.pageY;
1937
+
1938
+ /*
1939
+ * - Position constraining -
1940
+ * Constrain the position to a mix of grid, containment.
1941
+ */
1942
+
1943
+ if(this.originalPosition) { //If we are not dragging yet, we won't check for options
1944
+ var containment;
1945
+ if(this.containment) {
1946
+ if (this.relative_container){
1947
+ var co = this.relative_container.offset();
1948
+ containment = [ this.containment[0] + co.left,
1949
+ this.containment[1] + co.top,
1950
+ this.containment[2] + co.left,
1951
+ this.containment[3] + co.top ];
1952
+ }
1953
+ else {
1954
+ containment = this.containment;
1955
+ }
1956
+
1957
+ if(event.pageX - this.offset.click.left < containment[0]) pageX = containment[0] + this.offset.click.left;
1958
+ if(event.pageY - this.offset.click.top < containment[1]) pageY = containment[1] + this.offset.click.top;
1959
+ if(event.pageX - this.offset.click.left > containment[2]) pageX = containment[2] + this.offset.click.left;
1960
+ if(event.pageY - this.offset.click.top > containment[3]) pageY = containment[3] + this.offset.click.top;
1961
+ }
1962
+
1963
+ if(o.grid) {
1964
+ //Check for grid elements set to 0 to prevent divide by 0 error causing invalid argument errors in IE (see ticket #6950)
1965
+ var top = o.grid[1] ? this.originalPageY + Math.round((pageY - this.originalPageY) / o.grid[1]) * o.grid[1] : this.originalPageY;
1966
+ pageY = containment ? (!(top - this.offset.click.top < containment[1] || top - this.offset.click.top > containment[3]) ? top : (!(top - this.offset.click.top < containment[1]) ? top - o.grid[1] : top + o.grid[1])) : top;
1967
+
1968
+ var left = o.grid[0] ? this.originalPageX + Math.round((pageX - this.originalPageX) / o.grid[0]) * o.grid[0] : this.originalPageX;
1969
+ pageX = containment ? (!(left - this.offset.click.left < containment[0] || left - this.offset.click.left > containment[2]) ? left : (!(left - this.offset.click.left < containment[0]) ? left - o.grid[0] : left + o.grid[0])) : left;
1970
+ }
1971
+
1972
+ }
1973
+
1974
+ return {
1975
+ top: (
1976
+ pageY // The absolute mouse position
1977
+ - this.offset.click.top // Click offset (relative to the element)
1978
+ - this.offset.relative.top // Only for relative positioned nodes: Relative offset from element to offset parent
1979
+ - this.offset.parent.top // The offsetParent's offset without borders (offset + border)
1980
+ + ( ( this.cssPosition == 'fixed' ? -this.scrollParent.scrollTop() : ( scrollIsRootNode ? 0 : scroll.scrollTop() ) ))
1981
+ ),
1982
+ left: (
1983
+ pageX // The absolute mouse position
1984
+ - this.offset.click.left // Click offset (relative to the element)
1985
+ - this.offset.relative.left // Only for relative positioned nodes: Relative offset from element to offset parent
1986
+ - this.offset.parent.left // The offsetParent's offset without borders (offset + border)
1987
+ + ( ( this.cssPosition == 'fixed' ? -this.scrollParent.scrollLeft() : scrollIsRootNode ? 0 : scroll.scrollLeft() ))
1988
+ )
1989
+ };
1990
+
1991
+ },
1992
+
1993
+ _clear: function() {
1994
+ this.helper.removeClass("ui-draggable-dragging");
1995
+ if(this.helper[0] != this.element[0] && !this.cancelHelperRemoval) this.helper.remove();
1996
+ //if($.ui.ddmanager) $.ui.ddmanager.current = null;
1997
+ this.helper = null;
1998
+ this.cancelHelperRemoval = false;
1999
+ },
2000
+
2001
+ // From now on bulk stuff - mainly helpers
2002
+
2003
+ _trigger: function(type, event, ui) {
2004
+ ui = ui || this._uiHash();
2005
+ $.ui.plugin.call(this, type, [event, ui]);
2006
+ if(type == "drag") this.positionAbs = this._convertPositionTo("absolute"); //The absolute position has to be recalculated after plugins
2007
+ return $.Widget.prototype._trigger.call(this, type, event, ui);
2008
+ },
2009
+
2010
+ plugins: {},
2011
+
2012
+ _uiHash: function(event) {
2013
+ return {
2014
+ helper: this.helper,
2015
+ position: this.position,
2016
+ originalPosition: this.originalPosition,
2017
+ offset: this.positionAbs
2018
+ };
2019
+ }
2020
+
2021
+ });
2022
+
2023
+ $.ui.plugin.add("draggable", "connectToSortable", {
2024
+ start: function(event, ui) {
2025
+
2026
+ var inst = $(this).data("draggable"), o = inst.options,
2027
+ uiSortable = $.extend({}, ui, { item: inst.element });
2028
+ inst.sortables = [];
2029
+ $(o.connectToSortable).each(function() {
2030
+ var sortable = $.data(this, 'sortable');
2031
+ if (sortable && !sortable.options.disabled) {
2032
+ inst.sortables.push({
2033
+ instance: sortable,
2034
+ shouldRevert: sortable.options.revert
2035
+ });
2036
+ sortable.refreshPositions(); // Call the sortable's refreshPositions at drag start to refresh the containerCache since the sortable container cache is used in drag and needs to be up to date (this will ensure it's initialised as well as being kept in step with any changes that might have happened on the page).
2037
+ sortable._trigger("activate", event, uiSortable);
2038
+ }
2039
+ });
2040
+
2041
+ },
2042
+ stop: function(event, ui) {
2043
+
2044
+ //If we are still over the sortable, we fake the stop event of the sortable, but also remove helper
2045
+ var inst = $(this).data("draggable"),
2046
+ uiSortable = $.extend({}, ui, { item: inst.element });
2047
+
2048
+ $.each(inst.sortables, function() {
2049
+ if(this.instance.isOver) {
2050
+
2051
+ this.instance.isOver = 0;
2052
+
2053
+ inst.cancelHelperRemoval = true; //Don't remove the helper in the draggable instance
2054
+ this.instance.cancelHelperRemoval = false; //Remove it in the sortable instance (so sortable plugins like revert still work)
2055
+
2056
+ //The sortable revert is supported, and we have to set a temporary dropped variable on the draggable to support revert: 'valid/invalid'
2057
+ if(this.shouldRevert) this.instance.options.revert = true;
2058
+
2059
+ //Trigger the stop of the sortable
2060
+ this.instance._mouseStop(event);
2061
+
2062
+ this.instance.options.helper = this.instance.options._helper;
2063
+
2064
+ //If the helper has been the original item, restore properties in the sortable
2065
+ if(inst.options.helper == 'original')
2066
+ this.instance.currentItem.css({ top: 'auto', left: 'auto' });
2067
+
2068
+ } else {
2069
+ this.instance.cancelHelperRemoval = false; //Remove the helper in the sortable instance
2070
+ this.instance._trigger("deactivate", event, uiSortable);
2071
+ }
2072
+
2073
+ });
2074
+
2075
+ },
2076
+ drag: function(event, ui) {
2077
+
2078
+ var inst = $(this).data("draggable"), that = this;
2079
+
2080
+ var checkPos = function(o) {
2081
+ var dyClick = this.offset.click.top, dxClick = this.offset.click.left;
2082
+ var helperTop = this.positionAbs.top, helperLeft = this.positionAbs.left;
2083
+ var itemHeight = o.height, itemWidth = o.width;
2084
+ var itemTop = o.top, itemLeft = o.left;
2085
+
2086
+ return $.ui.isOver(helperTop + dyClick, helperLeft + dxClick, itemTop, itemLeft, itemHeight, itemWidth);
2087
+ };
2088
+
2089
+ $.each(inst.sortables, function(i) {
2090
+
2091
+ var innermostIntersecting = false;
2092
+ var thisSortable = this;
2093
+ //Copy over some variables to allow calling the sortable's native _intersectsWith
2094
+ this.instance.positionAbs = inst.positionAbs;
2095
+ this.instance.helperProportions = inst.helperProportions;
2096
+ this.instance.offset.click = inst.offset.click;
2097
+
2098
+ if(this.instance._intersectsWith(this.instance.containerCache)) {
2099
+ innermostIntersecting = true;
2100
+ $.each(inst.sortables, function () {
2101
+ this.instance.positionAbs = inst.positionAbs;
2102
+ this.instance.helperProportions = inst.helperProportions;
2103
+ this.instance.offset.click = inst.offset.click;
2104
+ if (this != thisSortable
2105
+ && this.instance._intersectsWith(this.instance.containerCache)
2106
+ && $.ui.contains(thisSortable.instance.element[0], this.instance.element[0]))
2107
+ innermostIntersecting = false;
2108
+ return innermostIntersecting;
2109
+ });
2110
+ }
2111
+
2112
+
2113
+ if(innermostIntersecting) {
2114
+ //If it intersects, we use a little isOver variable and set it once, so our move-in stuff gets fired only once
2115
+ if(!this.instance.isOver) {
2116
+
2117
+ this.instance.isOver = 1;
2118
+ //Now we fake the start of dragging for the sortable instance,
2119
+ //by cloning the list group item, appending it to the sortable and using it as inst.currentItem
2120
+ //We can then fire the start event of the sortable with our passed browser event, and our own helper (so it doesn't create a new one)
2121
+ this.instance.currentItem = $(that).clone().removeAttr('id').appendTo(this.instance.element).data("sortable-item", true);
2122
+ this.instance.options._helper = this.instance.options.helper; //Store helper option to later restore it
2123
+ this.instance.options.helper = function() { return ui.helper[0]; };
2124
+
2125
+ event.target = this.instance.currentItem[0];
2126
+ this.instance._mouseCapture(event, true);
2127
+ this.instance._mouseStart(event, true, true);
2128
+
2129
+ //Because the browser event is way off the new appended portlet, we modify a couple of variables to reflect the changes
2130
+ this.instance.offset.click.top = inst.offset.click.top;
2131
+ this.instance.offset.click.left = inst.offset.click.left;
2132
+ this.instance.offset.parent.left -= inst.offset.parent.left - this.instance.offset.parent.left;
2133
+ this.instance.offset.parent.top -= inst.offset.parent.top - this.instance.offset.parent.top;
2134
+
2135
+ inst._trigger("toSortable", event);
2136
+ inst.dropped = this.instance.element; //draggable revert needs that
2137
+ //hack so receive/update callbacks work (mostly)
2138
+ inst.currentItem = inst.element;
2139
+ this.instance.fromOutside = inst;
2140
+
2141
+ }
2142
+
2143
+ //Provided we did all the previous steps, we can fire the drag event of the sortable on every draggable drag, when it intersects with the sortable
2144
+ if(this.instance.currentItem) this.instance._mouseDrag(event);
2145
+
2146
+ } else {
2147
+
2148
+ //If it doesn't intersect with the sortable, and it intersected before,
2149
+ //we fake the drag stop of the sortable, but make sure it doesn't remove the helper by using cancelHelperRemoval
2150
+ if(this.instance.isOver) {
2151
+
2152
+ this.instance.isOver = 0;
2153
+ this.instance.cancelHelperRemoval = true;
2154
+
2155
+ //Prevent reverting on this forced stop
2156
+ this.instance.options.revert = false;
2157
+
2158
+ // The out event needs to be triggered independently
2159
+ this.instance._trigger('out', event, this.instance._uiHash(this.instance));
2160
+
2161
+ this.instance._mouseStop(event, true);
2162
+ this.instance.options.helper = this.instance.options._helper;
2163
+
2164
+ //Now we remove our currentItem, the list group clone again, and the placeholder, and animate the helper back to it's original size
2165
+ this.instance.currentItem.remove();
2166
+ if(this.instance.placeholder) this.instance.placeholder.remove();
2167
+
2168
+ inst._trigger("fromSortable", event);
2169
+ inst.dropped = false; //draggable revert needs that
2170
+ }
2171
+
2172
+ };
2173
+
2174
+ });
2175
+
2176
+ }
2177
+ });
2178
+
2179
+ $.ui.plugin.add("draggable", "cursor", {
2180
+ start: function(event, ui) {
2181
+ var t = $('body'), o = $(this).data('draggable').options;
2182
+ if (t.css("cursor")) o._cursor = t.css("cursor");
2183
+ t.css("cursor", o.cursor);
2184
+ },
2185
+ stop: function(event, ui) {
2186
+ var o = $(this).data('draggable').options;
2187
+ if (o._cursor) $('body').css("cursor", o._cursor);
2188
+ }
2189
+ });
2190
+
2191
+ $.ui.plugin.add("draggable", "opacity", {
2192
+ start: function(event, ui) {
2193
+ var t = $(ui.helper), o = $(this).data('draggable').options;
2194
+ if(t.css("opacity")) o._opacity = t.css("opacity");
2195
+ t.css('opacity', o.opacity);
2196
+ },
2197
+ stop: function(event, ui) {
2198
+ var o = $(this).data('draggable').options;
2199
+ if(o._opacity) $(ui.helper).css('opacity', o._opacity);
2200
+ }
2201
+ });
2202
+
2203
+ $.ui.plugin.add("draggable", "scroll", {
2204
+ start: function(event, ui) {
2205
+ var i = $(this).data("draggable");
2206
+ if(i.scrollParent[0] != document && i.scrollParent[0].tagName != 'HTML') i.overflowOffset = i.scrollParent.offset();
2207
+ },
2208
+ drag: function(event, ui) {
2209
+
2210
+ var i = $(this).data("draggable"), o = i.options, scrolled = false;
2211
+
2212
+ if(i.scrollParent[0] != document && i.scrollParent[0].tagName != 'HTML') {
2213
+
2214
+ if(!o.axis || o.axis != 'x') {
2215
+ if((i.overflowOffset.top + i.scrollParent[0].offsetHeight) - event.pageY < o.scrollSensitivity)
2216
+ i.scrollParent[0].scrollTop = scrolled = i.scrollParent[0].scrollTop + o.scrollSpeed;
2217
+ else if(event.pageY - i.overflowOffset.top < o.scrollSensitivity)
2218
+ i.scrollParent[0].scrollTop = scrolled = i.scrollParent[0].scrollTop - o.scrollSpeed;
2219
+ }
2220
+
2221
+ if(!o.axis || o.axis != 'y') {
2222
+ if((i.overflowOffset.left + i.scrollParent[0].offsetWidth) - event.pageX < o.scrollSensitivity)
2223
+ i.scrollParent[0].scrollLeft = scrolled = i.scrollParent[0].scrollLeft + o.scrollSpeed;
2224
+ else if(event.pageX - i.overflowOffset.left < o.scrollSensitivity)
2225
+ i.scrollParent[0].scrollLeft = scrolled = i.scrollParent[0].scrollLeft - o.scrollSpeed;
2226
+ }
2227
+
2228
+ } else {
2229
+
2230
+ if(!o.axis || o.axis != 'x') {
2231
+ if(event.pageY - $(document).scrollTop() < o.scrollSensitivity)
2232
+ scrolled = $(document).scrollTop($(document).scrollTop() - o.scrollSpeed);
2233
+ else if($(window).height() - (event.pageY - $(document).scrollTop()) < o.scrollSensitivity)
2234
+ scrolled = $(document).scrollTop($(document).scrollTop() + o.scrollSpeed);
2235
+ }
2236
+
2237
+ if(!o.axis || o.axis != 'y') {
2238
+ if(event.pageX - $(document).scrollLeft() < o.scrollSensitivity)
2239
+ scrolled = $(document).scrollLeft($(document).scrollLeft() - o.scrollSpeed);
2240
+ else if($(window).width() - (event.pageX - $(document).scrollLeft()) < o.scrollSensitivity)
2241
+ scrolled = $(document).scrollLeft($(document).scrollLeft() + o.scrollSpeed);
2242
+ }
2243
+
2244
+ }
2245
+
2246
+ if(scrolled !== false && $.ui.ddmanager && !o.dropBehaviour)
2247
+ $.ui.ddmanager.prepareOffsets(i, event);
2248
+
2249
+ }
2250
+ });
2251
+
2252
+ $.ui.plugin.add("draggable", "snap", {
2253
+ start: function(event, ui) {
2254
+
2255
+ var i = $(this).data("draggable"), o = i.options;
2256
+ i.snapElements = [];
2257
+
2258
+ $(o.snap.constructor != String ? ( o.snap.items || ':data(draggable)' ) : o.snap).each(function() {
2259
+ var $t = $(this); var $o = $t.offset();
2260
+ if(this != i.element[0]) i.snapElements.push({
2261
+ item: this,
2262
+ width: $t.outerWidth(), height: $t.outerHeight(),
2263
+ top: $o.top, left: $o.left
2264
+ });
2265
+ });
2266
+
2267
+ },
2268
+ drag: function(event, ui) {
2269
+
2270
+ var inst = $(this).data("draggable"), o = inst.options;
2271
+ var d = o.snapTolerance;
2272
+
2273
+ var x1 = ui.offset.left, x2 = x1 + inst.helperProportions.width,
2274
+ y1 = ui.offset.top, y2 = y1 + inst.helperProportions.height;
2275
+
2276
+ for (var i = inst.snapElements.length - 1; i >= 0; i--){
2277
+
2278
+ var l = inst.snapElements[i].left, r = l + inst.snapElements[i].width,
2279
+ t = inst.snapElements[i].top, b = t + inst.snapElements[i].height;
2280
+
2281
+ //Yes, I know, this is insane ;)
2282
+ if(!((l-d < x1 && x1 < r+d && t-d < y1 && y1 < b+d) || (l-d < x1 && x1 < r+d && t-d < y2 && y2 < b+d) || (l-d < x2 && x2 < r+d && t-d < y1 && y1 < b+d) || (l-d < x2 && x2 < r+d && t-d < y2 && y2 < b+d))) {
2283
+ if(inst.snapElements[i].snapping) (inst.options.snap.release && inst.options.snap.release.call(inst.element, event, $.extend(inst._uiHash(), { snapItem: inst.snapElements[i].item })));
2284
+ inst.snapElements[i].snapping = false;
2285
+ continue;
2286
+ }
2287
+
2288
+ if(o.snapMode != 'inner') {
2289
+ var ts = Math.abs(t - y2) <= d;
2290
+ var bs = Math.abs(b - y1) <= d;
2291
+ var ls = Math.abs(l - x2) <= d;
2292
+ var rs = Math.abs(r - x1) <= d;
2293
+ if(ts) ui.position.top = inst._convertPositionTo("relative", { top: t - inst.helperProportions.height, left: 0 }).top - inst.margins.top;
2294
+ if(bs) ui.position.top = inst._convertPositionTo("relative", { top: b, left: 0 }).top - inst.margins.top;
2295
+ if(ls) ui.position.left = inst._convertPositionTo("relative", { top: 0, left: l - inst.helperProportions.width }).left - inst.margins.left;
2296
+ if(rs) ui.position.left = inst._convertPositionTo("relative", { top: 0, left: r }).left - inst.margins.left;
2297
+ }
2298
+
2299
+ var first = (ts || bs || ls || rs);
2300
+
2301
+ if(o.snapMode != 'outer') {
2302
+ var ts = Math.abs(t - y1) <= d;
2303
+ var bs = Math.abs(b - y2) <= d;
2304
+ var ls = Math.abs(l - x1) <= d;
2305
+ var rs = Math.abs(r - x2) <= d;
2306
+ if(ts) ui.position.top = inst._convertPositionTo("relative", { top: t, left: 0 }).top - inst.margins.top;
2307
+ if(bs) ui.position.top = inst._convertPositionTo("relative", { top: b - inst.helperProportions.height, left: 0 }).top - inst.margins.top;
2308
+ if(ls) ui.position.left = inst._convertPositionTo("relative", { top: 0, left: l }).left - inst.margins.left;
2309
+ if(rs) ui.position.left = inst._convertPositionTo("relative", { top: 0, left: r - inst.helperProportions.width }).left - inst.margins.left;
2310
+ }
2311
+
2312
+ if(!inst.snapElements[i].snapping && (ts || bs || ls || rs || first))
2313
+ (inst.options.snap.snap && inst.options.snap.snap.call(inst.element, event, $.extend(inst._uiHash(), { snapItem: inst.snapElements[i].item })));
2314
+ inst.snapElements[i].snapping = (ts || bs || ls || rs || first);
2315
+
2316
+ };
2317
+
2318
+ }
2319
+ });
2320
+
2321
+ $.ui.plugin.add("draggable", "stack", {
2322
+ start: function(event, ui) {
2323
+
2324
+ var o = $(this).data("draggable").options;
2325
+
2326
+ var group = $.makeArray($(o.stack)).sort(function(a,b) {
2327
+ return (parseInt($(a).css("zIndex"),10) || 0) - (parseInt($(b).css("zIndex"),10) || 0);
2328
+ });
2329
+ if (!group.length) { return; }
2330
+
2331
+ var min = parseInt(group[0].style.zIndex) || 0;
2332
+ $(group).each(function(i) {
2333
+ this.style.zIndex = min + i;
2334
+ });
2335
+
2336
+ this[0].style.zIndex = min + group.length;
2337
+
2338
+ }
2339
+ });
2340
+
2341
+ $.ui.plugin.add("draggable", "zIndex", {
2342
+ start: function(event, ui) {
2343
+ var t = $(ui.helper), o = $(this).data("draggable").options;
2344
+ if(t.css("zIndex")) o._zIndex = t.css("zIndex");
2345
+ t.css('zIndex', o.zIndex);
2346
+ },
2347
+ stop: function(event, ui) {
2348
+ var o = $(this).data("draggable").options;
2349
+ if(o._zIndex) $(ui.helper).css('zIndex', o._zIndex);
2350
+ }
2351
+ });
2352
+
2353
+ })(sQuery);
trunk/assets/js/main.js ADDED
@@ -0,0 +1,214 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ (function($) {
2
+ window.Shareaholic = window.Shareaholic || {};
3
+ window.shareaholic_debug = true;
4
+
5
+ Shareaholic.bind_button_clicks = function (click_object, off) {
6
+ if (off) {
7
+ $(click_object.selector).off('click.app_settings');
8
+ }
9
+
10
+ $(click_object.selector).off('click.app_settings').on('click.app_settings', function (e) {
11
+ button = this;
12
+ e.preventDefault();
13
+ url = click_object.url(this);
14
+ if (click_object.selector == '#general_settings' || click_object.selector == '#affiliate_settings') {
15
+ window.open(url);
16
+ return false;
17
+ } else {
18
+ $frame = $('<iframe>', { src:url }).appendTo('#iframe_container');
19
+ if (click_object.callback) {
20
+ click_object.callback(this);
21
+ }
22
+ $('#editing_modal').reveal({
23
+ topPosition:50,
24
+ close:function () {
25
+ if (click_object.close) {
26
+ click_object.close(button);
27
+ }
28
+ $frame.remove();
29
+ }
30
+ });
31
+ }
32
+ });
33
+ }
34
+
35
+ Shareaholic.click_objects = {
36
+ 'app_settings': {
37
+ selector: '#app_settings button',
38
+ url: function(button) {
39
+ id = $(button).data('location_id');
40
+ app = $(button).data('app')
41
+ url = first_part_of_url + $(button).data('href') + '?embedded=true&'
42
+ + 'verification_key=' + verification_key;
43
+ url = url.replace(/{{id}}/, id);
44
+ return url;
45
+ },
46
+ callback: function(button) {
47
+ $modal = $('.reveal-modal');
48
+ $modal.addClass('has-shortcode')
49
+ id = $(button).data('location_id');
50
+ app = $(button).data('app');
51
+ text = 'You can also use this shortcode to place this {{app}} App anywhere.';
52
+ html = "<div id='shortcode_container'> \
53
+ <span id='shortcode_description'></span> \
54
+ <textarea id='shortcode' name='widget_div' onclick='select();' readonly='readonly'></textarea> \
55
+ </div>"
56
+ $(html).appendTo($modal);
57
+ $('#shortcode_description').text(text.replace(/{{app}}/, Shareaholic.titlecase(app)));
58
+ $('#shortcode').text('[shareaholic app="' + app + '" id="' + id + '"]');
59
+ },
60
+ close: function(button) {
61
+ $('#shortcode_container').remove();
62
+ $('.reveal-modal').removeClass('has-shortcode');
63
+ }
64
+ },
65
+
66
+ 'affiliate_settings': {
67
+ selector: '#affiliate_settings',
68
+ url: function(button) {
69
+ return first_part_of_url + 'websites/edit/'
70
+ + '?verification_key=' + verification_key;
71
+ }
72
+ },
73
+
74
+ 'general_settings': {
75
+ selector: '#general_settings',
76
+ url: function(button) {
77
+ return first_part_of_url + 'websites/edit/'
78
+ + '?verification_key=' + verification_key;
79
+ }
80
+ },
81
+ 'app_wide_settings': {
82
+ selector: '.app_wide_settings',
83
+ url: function(button) {
84
+ url = first_part_of_url + $(button).data('href') + '?embedded=true&'
85
+ + 'verification_key=' + verification_key;
86
+ return url
87
+ }
88
+ }
89
+ }
90
+
91
+ Shareaholic.Utils.PostMessage.receive('settings_saved', {
92
+ success: function(data) {
93
+ $('input[type="submit"]').click();
94
+ },
95
+ failure: function(data) {
96
+ console.log(data);
97
+ }
98
+ });
99
+
100
+ Shareaholic.titlecase = function(string) {
101
+ return string.charAt(0).toUpperCase() + string.replace(/_[a-z]/g, function(match) {
102
+ return match.toUpperCase().replace(/_/, ' ');
103
+ }).slice(1);
104
+ }
105
+
106
+ Shareaholic.disable_buttons = function() {
107
+ $('#app_settings button').each(function() {
108
+ if (!$(this).data('location_id') && !this.id == 'app_wide_settings') {
109
+ $(this).attr('disabled', 'disabled');
110
+ } else {
111
+ $(this).removeAttr('disabled');
112
+ }
113
+ });
114
+ }
115
+
116
+ Shareaholic.create_new_location = function(_this) {
117
+ button = $(_this).siblings('button')
118
+ app = button.data('app')
119
+ location_id = button.data('location_id')
120
+ if (!!location_id) {
121
+ return;
122
+ }
123
+
124
+ data = {}
125
+ data['configuration_' + app + '_location'] = {
126
+ name: /.*\[(.*)\]/.exec($(_this).attr('name'))[1]
127
+ }
128
+
129
+ $.ajax({
130
+ url: first_part_of_url + app + '/locations.json',
131
+ type: 'POST',
132
+ data: data,
133
+ success: function(data, status, jqxhr) {
134
+ data['action'] = 'shareaholic_add_location';
135
+ data['nonce'] = window.shareaholic_add_location_nonce;
136
+ button.data('location_id', data['location']['id']);
137
+ Shareaholic.disable_buttons();
138
+ Shareaholic.submit_to_admin(data, function(stuff) {
139
+ console.log(stuff);
140
+ });
141
+ },
142
+ failure: function(things) {
143
+ console.log(things);
144
+ },
145
+ xhrFields: {
146
+ withCredentials: true
147
+ }
148
+ });
149
+ }
150
+
151
+ Shareaholic.submit_to_admin = function(data, callback) {
152
+ $.ajax({
153
+ url: ajaxurl,
154
+ type: 'POST',
155
+ data: data,
156
+ success: function(response) {
157
+ try {
158
+ response = JSON.parse(response);
159
+ } catch (e) {
160
+ response = {};
161
+ }
162
+ callback(response);
163
+ },
164
+ failure: function(response) {
165
+ try {
166
+ response = JSON.parse(response);
167
+ } catch (e) {
168
+ response = {};
169
+ }
170
+ callback(response);
171
+ }
172
+ })
173
+ }
174
+
175
+ $(document).ready(function() {
176
+
177
+ Shareaholic.disable_buttons();
178
+
179
+ Shareaholic.bind_button_clicks(Shareaholic.click_objects['app_settings']);
180
+ Shareaholic.bind_button_clicks(Shareaholic.click_objects['affiliate_settings']);
181
+ Shareaholic.bind_button_clicks(Shareaholic.click_objects['general_settings']);
182
+ Shareaholic.bind_button_clicks(Shareaholic.click_objects['app_wide_settings']);
183
+ if (Shareaholic.click_objects['unverified_general_settings']) {
184
+ Shareaholic.bind_button_clicks(Shareaholic.click_objects['unverified_general_settings'], true);
185
+ }
186
+
187
+ $('#terms_of_service_modal').reveal({
188
+ closeonbackgroundclick: false,
189
+ closeonescape: false,
190
+ topPosition: 50
191
+ });
192
+
193
+ $('#failed_to_create_api_key').reveal({
194
+ closeonbackgroundclick: false,
195
+ closeonescape: false,
196
+ topPosition: 50
197
+ });
198
+
199
+ $('#get_started').on('click', function(e) {
200
+ e.preventDefault();
201
+ data = {action: 'shareaholic_accept_terms_of_service'};
202
+ // $('#terms_of_service_modal').trigger('reveal:close');
203
+ Shareaholic.submit_to_admin(data, function(){
204
+ location.reload();
205
+ });
206
+ })
207
+
208
+ $('form input[type=checkbox]').on('click', function() {
209
+ if($(this).is(':checked') && !$(this).data('location_id')) {
210
+ Shareaholic.create_new_location(this);
211
+ }
212
+ });
213
+ });
214
+ })(sQuery);
trunk/assets/js/main.min.js ADDED
@@ -0,0 +1,7 @@
 
 
 
 
 
 
 
1
+ (function(b){window.Shareaholic=window.Shareaholic||{};window.shareaholic_debug=!0;Shareaholic.bind_button_clicks=function(a,c){c&&b(a.selector).off("click.app_settings");b(a.selector).off("click.app_settings").on("click.app_settings",function(c){button=this;c.preventDefault();url=a.url(this);if("#general_settings"==a.selector)return window.open(url),!1;$frame=b("<iframe>",{src:url}).appendTo("#iframe_container");a.callback&&a.callback(this);b("#editing_modal").reveal({topPosition:50,close:function(){a.close&&
2
+ a.close(button);$frame.remove()}})})};Shareaholic.click_objects={app_settings:{selector:"#app_settings button",url:function(a){id=b(a).data("location_id");app=b(a).data("app");url=first_part_of_url+b(a).data("href")+"?embedded=true&verification_key="+verification_key;return url=url.replace(/{{id}}/,id)},callback:function(a){id=b(a).data("location_id");app=b(a).data("app");text="You can also use this shortcode to place this {{app}} App anywhere.";html="<div id='shortcode_container'> <span id='shortcode_description'></span> <textarea id='shortcode' name='widget_div' onclick='select();' readonly='readonly'></textarea> </div>";
3
+ b(html).appendTo(".reveal-modal");b("#shortcode_description").text(text.replace(/{{app}}/,Shareaholic.titlecase(app)));b("#shortcode").text('[shareaholic app="'+app+'" id="'+id+'"]')},close:function(a){b("#shortcode_container").remove()}},general_settings:{selector:"#general_settings",url:function(a){return first_part_of_url+"edit?verification_key="+verification_key}}};Shareaholic.Utils.PostMessage.receive("settings_saved",{success:function(a){b('input[type="submit"]').click()},failure:function(a){console.log(a)}});
4
+ Shareaholic.titlecase=function(a){return a.charAt(0).toUpperCase()+a.replace(/_[a-z]/g,function(a){return a.toUpperCase().replace(/_/," ")}).slice(1)};Shareaholic.disable_buttons=function(){b("#app_settings button").each(function(){b(this).data("location_id")?b(this).removeAttr("disabled"):b(this).attr("disabled","disabled")})};Shareaholic.create_new_location=function(a){button=b(a).siblings("button");app=button.data("app");location_id=button.data("location_id");location_id||(data={},data["configuration_"+
5
+ app+"_location"]={name:/.*\[(.*)\]/.exec(b(a).attr("name"))[1]},b.ajax({url:first_part_of_url+app+"/locations.json",type:"POST",data:data,success:function(a,b,d){a.action="shareaholic_add_location";button.data("location_id",a.location.id);Shareaholic.disable_buttons();Shareaholic.submit_to_admin(a,function(a){console.log(a)})},failure:function(a){console.log(a)},xhrFields:{withCredentials:!0}}))};Shareaholic.submit_to_admin=function(a,c){b.ajax({url:ajaxurl,type:"POST",data:a,success:function(a){try{a=
6
+ JSON.parse(a)}catch(b){a={}}c(a)},failure:function(a){try{a=JSON.parse(a)}catch(b){a={}}c(a)}})};b(document).ready(function(){Shareaholic.disable_buttons();Shareaholic.bind_button_clicks(Shareaholic.click_objects.app_settings);Shareaholic.bind_button_clicks(Shareaholic.click_objects.general_settings);Shareaholic.click_objects.unverified_general_settings&&Shareaholic.bind_button_clicks(Shareaholic.click_objects.unverified_general_settings,!0);b("#terms_of_service_modal").reveal({closeonbackgroundclick:!1,
7
+ closeonescape:!1,topPosition:50});b("#failed_to_create_api_key").reveal({closeonbackgroundclick:!1,closeonescape:!1,topPosition:50});b("#get_started").on("click",function(a){a.preventDefault();data={action:"shareaholic_accept_terms_of_service"};Shareaholic.submit_to_admin(data,function(){location.reload()})});b("form input[type=checkbox]").on("click",function(){b(this).is(":checked")&&!b(this).data("location_id")&&Shareaholic.create_new_location(this)})})})(sQuery);
trunk/content_manager.php ADDED
@@ -0,0 +1,17 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ <?php
2
+ /**
3
+ * File for the ShareaholicContentManager class.
4
+ *
5
+ * @package shareaholic
6
+ */
7
+
8
+ /**
9
+ * An interface to the Shareaholic Content Manager API's
10
+ *
11
+ * @package shareaholic
12
+ */
13
+ class ShareaholicContentManager {
14
+
15
+ }
16
+
17
+ ?>
trunk/cron.php ADDED
@@ -0,0 +1,74 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ <?php
2
+ /**
3
+ * Holds the ShareaholicCron class.
4
+ *
5
+ * @package shareaholic
6
+ */
7
+
8
+ /**
9
+ * This class will contain all the cron jobs executed by this plugin
10
+ *
11
+ * @package shareaholic
12
+ */
13
+ class ShareaholicCron {
14
+
15
+ const TRANSIENT_SCHEDULE = 'hourly';
16
+
17
+ /**
18
+ * Schedules the cron jobs if it does not exist
19
+ */
20
+ public static function activate() {
21
+ if (!wp_next_scheduled('shareaholic_remove_transients_hourly')) {
22
+ // schedule the first occurrence 1 min from now
23
+ wp_schedule_event(
24
+ time() + 60, self::TRANSIENT_SCHEDULE, 'shareaholic_remove_transients_hourly'
25
+ );
26
+ ShareaholicUtilities::log('Shareaholic is now scheduled');
27
+ } else {
28
+ ShareaholicUtilities::log('Shareaholic is already scheduled');
29
+ }
30
+ }
31
+
32
+ /**
33
+ * Remove scheduled cron jobs created by Shareaholic
34
+ */
35
+ public static function deactivate() {
36
+ if (wp_next_scheduled('shareaholic_remove_transients_hourly')) {
37
+ wp_clear_scheduled_hook('shareaholic_remove_transients_hourly');
38
+ ShareaholicUtilities::log('Shareaholic schedule cleared');
39
+ } else {
40
+ ShareaholicUtilities::log('no need to clear nonexistent Shareaholic schedule');
41
+ }
42
+ }
43
+
44
+ /**
45
+ * A job that clears up the shareaholic share counts transients
46
+ */
47
+ public static function remove_transients() {
48
+ global $wpdb;
49
+ $older_than = time() - (60 * 60); // older than an hour ago
50
+
51
+ ShareaholicUtilities::log('Start of Shareaholic transient cleanup');
52
+
53
+ $query = "SELECT REPLACE(option_name, '_transient_timeout_', '') AS transient_name FROM {$wpdb->options} WHERE option_name LIKE '\_transient\_timeout\_shr\_api\_res-%%' AND option_value < %s LIMIT 5000";
54
+ $transients = $wpdb->get_col($wpdb->prepare($query, $older_than));
55
+
56
+ $options_names = array();
57
+ foreach($transients as $transient) {
58
+ $options_names[] = esc_sql('_transient_' . $transient);
59
+ $options_names[] = esc_sql('_transient_timeout_' . $transient);
60
+ }
61
+ if ($options_names) {
62
+ $options_names = "'" . implode("','", $options_names) . "'";
63
+ $result = $wpdb->query( "DELETE FROM {$wpdb->options} WHERE option_name IN ({$options_names})");
64
+
65
+ if (!$result) {
66
+ ShareaholicUtilities::log('Transient Query Error!!!');
67
+ }
68
+ }
69
+ // Cleanup leftover mutex
70
+ ShareaholicUtilities::delete_mutex();
71
+
72
+ ShareaholicUtilities::log('End of Shareaholic transient cleanup');
73
+ }
74
+ }
trunk/curl.php ADDED
@@ -0,0 +1,251 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ <?php
2
+ /**
3
+ * This file holds the ShareaholicCurl class.
4
+ *
5
+ * @package shareaholic
6
+ */
7
+
8
+ require_once(SHAREAHOLIC_DIR . '/query_string_builder.php');
9
+
10
+ /**
11
+ * This class is a library to easily interface with PHP's native
12
+ * cURL library. It exposes two methods `get` and `post`.
13
+ *
14
+ * @package shareaholic
15
+ */
16
+ class ShareaholicCurl {
17
+ /**
18
+ *
19
+ * Performs a POST request
20
+ *
21
+ * @param string $url the url you are POSTing to
22
+ * @param array $data an associative array of the data you are posting
23
+ * @param string $data_type defaults to nothing, you can pass in 'json'
24
+ * @param bool $ignore_error whether to log a networking error
25
+ *
26
+ * @return array the returned data json decoded
27
+ */
28
+ public static function post($url, $data = array(), $data_type = '', $ignore_error = false) {
29
+ return self::send_request_with_wp($url, $data, $data_type, $ignore_error, 'POST');
30
+ }
31
+
32
+ /**
33
+ *
34
+ * Performs a GET request
35
+ *
36
+ * @param string $url the url you are GETing to
37
+ * @param array $data an associative array of the data you are posting
38
+ * @param string $data_type defaults to nothing, you can pass in 'json'
39
+ * @param bool $ignore_error whether to log a networking error
40
+ *
41
+ * @return array the returned data json decoded
42
+ */
43
+ public static function get($url, $data = array(), $data_type = '', $ignore_error = false) {
44
+ return self::send_request_with_wp($url, $data, $data_type, $ignore_error, 'GET');
45
+ }
46
+
47
+ /**
48
+ *
49
+ * Performs a request using the methods built into WordPress, which account for
50
+ * various PHP eccenctricities.
51
+ *
52
+ * @param string $url
53
+ * @param array $data an associative array of the data
54
+ * @param string $data_type either an empty string or 'json'
55
+ * @param bool $ignore_error whether to log a networking error
56
+ * @param string $method the HTTP verb to be used
57
+ *
58
+ * @return mixed the returned data json decoded or false
59
+ */
60
+ private static function send_request_with_wp($url, $data, $data_type, $ignore_error, $method) {
61
+ ShareaholicUtilities::log($url);
62
+ ShareaholicUtilities::log($data);
63
+ ShareaholicUtilities::log($data_type);
64
+ ShareaholicUtilities::log($method);
65
+ ShareaholicUtilities::log('-----------------');
66
+ $timeout = 15;
67
+ $useragent = 'WordPress/' . get_bloginfo('version') . ' ('. 'PHP/' . phpversion() . '; ' . 'SHR_WP/' . Shareaholic::VERSION . '; +' . get_bloginfo( 'url' ) . ')';
68
+ if ($method == 'GET') {
69
+ $request = array();
70
+ if (WP_Http_Encoding::is_available()) {
71
+ $request['headers']['Accept-Encoding'] = 'gzip, deflate';
72
+ }
73
+ $response = wp_remote_get($url, array(
74
+ 'body' => $data,
75
+ 'sslverify' => false,
76
+ 'user-agent' => $useragent,
77
+ 'timeout' => $timeout,
78
+ 'headers' => $request['headers']
79
+ )
80
+ );
81
+ } elseif ($method == 'POST') {
82
+ $request = array();
83
+ if ($data_type == 'json') {
84
+ $request['headers'] = array(
85
+ 'Content-Type' => 'application/json',
86
+ );
87
+ $request['body'] = json_encode($data);
88
+ } else {
89
+ $request['body'] = $data;
90
+ }
91
+ $request['headers']['Accept'] = 'application/json';
92
+ if (WP_Http_Encoding::is_available()) {
93
+ $request['headers']['Accept-Encoding'] = 'gzip, deflate';
94
+ }
95
+ $request['headers']['user-agent'] = $useragent;
96
+ $request['sslverify'] = false;
97
+ $request['timeout'] = $timeout;
98
+ $response = wp_remote_post($url, $request);
99
+ }
100
+
101
+ if (is_wp_error($response)) {
102
+ $error_message = $response->get_error_message();
103
+ ShareaholicUtilities::log($error_message);
104
+ if (!$ignore_error) {
105
+ ShareaholicUtilities::log_event('CurlRequestFailure', array('error_message' => $error_message, 'url' => $url));
106
+ }
107
+ return false;
108
+ }
109
+ else {
110
+ if(is_array($response) && array_key_exists('body', $response)) {
111
+ $body = $response['body'];
112
+
113
+ // strip out any BOM appended characters
114
+ $body = self::strip_utf8_bom($body);
115
+
116
+ $response['body'] = ShareaholicUtilities::object_to_array(json_decode($body)) ?
117
+ ShareaholicUtilities::object_to_array(json_decode($body)) : $body;
118
+ return $response;
119
+ }
120
+ }
121
+ }
122
+
123
+ /**
124
+ *
125
+ * Performs a request using cURL
126
+ *
127
+ * @param string $url the url you are GETing to
128
+ * @param array $data an associative array of the data you are posting
129
+ * @param string $data_type either an empty string or 'json'
130
+ * @param string $method the HTTP verb to be used
131
+ *
132
+ * @return array the returned data json decoded
133
+ */
134
+ private static function send_request($url, $data, $data_type, $method) {
135
+ $curl = curl_init();
136
+ curl_setopt_array($curl, array(
137
+ CURLOPT_URL => $url,
138
+ CURLOPT_RETURNTRANSFER => 1,
139
+ CURLOPT_SSL_VERIFYPEER => false,
140
+ CURLOPT_SSL_VERIFYHOST => false
141
+ ));
142
+
143
+ /*
144
+ * Because many shared hosting providers set `open_basedir` in php.ini
145
+ * that means we can't always set CURLOPT_FOLLOWLOCATION.
146
+ * This next block is an attempt around that by sending head requests
147
+ * to determine if there will be a redirect and then following it.
148
+ * Shamelessly stolen from here:
149
+ * http://us2.php.net/manual/en/function.curl-setopt.php#102121
150
+ */
151
+ $mr = 5;
152
+ if (ini_get('open_basedir') == '' && ini_get('safe_mode' == 'Off')) {
153
+ curl_setopt($curl, CURLOPT_FOLLOWLOCATION, $mr > 0);
154
+ curl_setopt($curl, CURLOPT_MAXREDIRS, $mr);
155
+ } else {
156
+ curl_setopt($curl, CURLOPT_FOLLOWLOCATION, false);
157
+ if ($mr > 0) {
158
+ $newurl = curl_getinfo($curl, CURLINFO_EFFECTIVE_URL);
159
+
160
+ $rch = curl_copy_handle($curl);
161
+ curl_setopt($rch, CURLOPT_HEADER, true);
162
+ curl_setopt($rch, CURLOPT_NOBODY, true);
163
+ curl_setopt($rch, CURLOPT_FORBID_REUSE, false);
164
+ curl_setopt($rch, CURLOPT_RETURNTRANSFER, true);
165
+ do {
166
+ curl_setopt($rch, CURLOPT_URL, $newurl);
167
+ $header = curl_exec($rch);
168
+ if (curl_errno($rch)) {
169
+ $code = 0;
170
+ } else {
171
+ $code = curl_getinfo($rch, CURLINFO_HTTP_CODE);
172
+ if ($code == 301 || $code == 302) {
173
+ preg_match('/Location:(.*?)\n/', $header, $matches);
174
+ $newurl = trim(array_pop($matches));
175
+ } else {
176
+ $code = 0;
177
+ }
178
+ }
179
+ } while ($code && --$mr);
180
+ curl_close($rch);
181
+ if (!$mr) {
182
+ if ($maxredirect === null) {
183
+ trigger_error('Too many redirects. When following redirects, libcurl hit the maximum amount.', E_USER_WARNING);
184
+ } else {
185
+ $maxredirect = 0;
186
+ }
187
+ return false;
188
+ }
189
+ curl_setopt($curl, CURLOPT_URL, $newurl);
190
+ }
191
+ }
192
+ /* end stolen code */
193
+
194
+ if ($method == 'POST') {
195
+ curl_setopt_array($curl, array(
196
+ CURLOPT_POST => 1,
197
+ CURLOPT_HTTPHEADER => array("Accept: application/json,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain")
198
+ ));
199
+
200
+ if ($data_type == 'json'){
201
+ curl_setopt_array($curl, array(
202
+ CURLOPT_POSTFIELDS => json_encode($data),
203
+ CURLOPT_HTTPHEADER => array(
204
+ 'Content-Type: application/json',
205
+ 'Content-Length: ' . strlen(json_encode($data))
206
+ )
207
+ ));
208
+ } else {
209
+ curl_setopt_array($curl, array(
210
+ CURLOPT_POSTFIELDS => ShareaholicQueryStringBuilder::build_query_string($data),
211
+ ));
212
+ }
213
+ }
214
+
215
+ $result = curl_exec($curl);
216
+ $info = curl_getinfo($curl);
217
+ ShareaholicUtilities::log(curl_error($curl));
218
+ ShareaholicUtilities::log(curl_getinfo($curl));
219
+ curl_close($curl);
220
+
221
+ if (preg_match('/^20*/', $info['http_code'])) {
222
+ return ShareaholicUtilities::object_to_array(json_decode($result)) ?
223
+ ShareaholicUtilities::object_to_array(json_decode($result)) : $result;
224
+ } else {
225
+ return false;
226
+ }
227
+ }
228
+
229
+ /**
230
+ * Sometimes the response from APIs begins with BOM (byte order mark) which
231
+ * makes it difficult to parse JSON responses.
232
+ *
233
+ * If it exists, remove it and return the cleaned up string
234
+ *
235
+ * @param {String} $str the string to strip BOM
236
+ * @return {String} the stripped out string if BOM exists
237
+ */
238
+ private static function strip_utf8_bom($str) {
239
+ // create binary string for BOM
240
+ $bom = pack("CCC", 0xef, 0xbb, 0xbf);
241
+
242
+ // binary safe compare the BOM with the string
243
+ if (0 === strncmp($str, $bom, 3)) {
244
+ return substr($str, 3);
245
+ }
246
+
247
+ return $str;
248
+ }
249
+ }
250
+
251
+ ?>
trunk/global_functions.php ADDED
@@ -0,0 +1,34 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ <?php
2
+ /**
3
+ * This will hold all of the global namespaced functions.
4
+ *
5
+ * @package shareaholic
6
+ */
7
+ /**
8
+ * The old 'shortcode' function, which wasn't a real
9
+ * WordPress shortcode. This is currently deprecated so it
10
+ * logs that fact.
11
+ *
12
+ * @deprecated beginning with the release of 7.0.0.0
13
+ */
14
+
15
+ if (!function_exists('selfserv_shareaholic')) {
16
+ function selfserv_shareaholic() {
17
+ _deprecated_function( __FUNCTION__, '7.0.0.0' );
18
+ return false;
19
+ }
20
+ }
21
+ /**
22
+ * Another old 'shortcode' function. Because this accepts a position
23
+ * (either 'Top' or 'Bottom') it requres a little more finessing in
24
+ * its implementation.
25
+ *
26
+ * @param string $position either 'Top' or 'Bottom'
27
+ */
28
+ if (!function_exists('get_shr_like_buttonset')) {
29
+ function get_shr_like_buttonset($position) {
30
+ _deprecated_function( __FUNCTION__, '7.0.0.0' );
31
+ return false;
32
+ }
33
+ }
34
+ ?>
trunk/languages/index.html ADDED
File without changes
trunk/languages/readme.txt ADDED
@@ -0,0 +1,29 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ == Shareaholic in Your Language ==
2
+
3
+ Shareaholic is used all over the world. Our goal is to support Shareaholic in the native language of all our users and people who want to use our products.
4
+
5
+ == Shareaholic for WordPress is currently localized in the following languages: ==
6
+
7
+ * English (en)
8
+ * Simplified Chinese (zh_CN) by [Larry Zhang](http://zhxl.me)
9
+ * Greek (el_EL) by [Takis Bouyouris](http://www.nevma.gr)
10
+ * Greek (el_GR) by [Takis Bouyouris](http://www.nevma.gr)
11
+ * German (de_DE) by Oliver Heinrich
12
+ * French (fr_FR) by Rozenn Dagorn
13
+ * Dutch (nl_NL) by Patrick Ruers
14
+ * Português (pt_PT)
15
+ * Afrikaans (af_AF)
16
+ * Italian (it_IT)
17
+ * Turkish (tr_TR) by [Plantekno Bitki](http://plantekno.com)
18
+ * Spanish - Mexico (es_MX) by [Luis Jared Pardo](http://www.clickseguro.net)
19
+ * Spanish - Spain (es_ES) by [David Marco Busto](http://alfabetadigital.com)
20
+ * Romanian (ro_RO)
21
+ * Contribute a translation!
22
+
23
+ == How to translate Shareaholic into your own language ==
24
+
25
+ We would appreciate your help in translating Shareaholic into even more languages! It doesn’t take much to get started. Thanks so much! Instructions: https://translate.wordpress.org/projects/wp-plugins/shareaholic
26
+
27
+ == Notes ==
28
+
29
+ * http://codex.wordpress.org/WordPress_in_Your_Language
trunk/languages/shareaholic-af_AF.mo ADDED
Binary file
trunk/languages/shareaholic-af_AF.po ADDED
@@ -0,0 +1,575 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ msgid ""
2
+ msgstr ""
3
+ "Project-Id-Version: Shareaholic | share buttons, analytics, related content v8.6.0\n"
4
+ "Report-Msgid-Bugs-To: \n"
5
+ "POT-Creation-Date: \n"
6
+ "PO-Revision-Date: 2017-11-03 17:16:27+0000\n"
7
+ "Last-Translator: admin <support@shareaholic.com>\n"
8
+ "Language-Team: \n"
9
+ "MIME-Version: 1.0\n"
10
+ "Content-Type: text/plain; charset=UTF-8\n"
11
+ "Content-Transfer-Encoding: 8bit\n"
12
+ "Plural-Forms: nplurals=2; plural=n != 1;\n"
13
+ "X-Generator: CSL v1.x\n"
14
+ "X-Poedit-Language: Afrikaans\n"
15
+ "X-Poedit-Country: SOUTH AFRICA\n"
16
+ "X-Poedit-SourceCharset: utf-8\n"
17
+ "X-Poedit-KeywordsList: __;_e;__ngettext:1,2;_n:1,2;__ngettext_noop:1,2;_n_noop:1,2;_c,_nc:4c,1,2;_x:1,2c;_ex:1,2c;_nx:4c,1,2;_nx_noop:4c,1,2;\n"
18
+ "X-Poedit-Basepath: ../\n"
19
+ "X-Poedit-Bookmarks: \n"
20
+ "X-Poedit-SearchPath-0: .\n"
21
+ "X-Textdomain-Support: yes"
22
+
23
+ #: admin.php:342
24
+ #@ shareaholic
25
+ msgid "Shareaholic Settings"
26
+ msgstr "Shareaholic Instellings"
27
+
28
+ #. translators: plugin header field 'Author'
29
+ #: admin.php:343
30
+ #: shareaholic.php:0
31
+ #@ shareaholic
32
+ msgid "Shareaholic"
33
+ msgstr "Shareaholic"
34
+
35
+ #: admin.php:351
36
+ #: admin.php:352
37
+ #: templates/settings.php:3
38
+ #: utilities.php:141
39
+ #@ shareaholic
40
+ msgid "App Manager"
41
+ msgstr "App Manager"
42
+
43
+ #: admin.php:359
44
+ #: admin.php:360
45
+ #: templates/advanced_settings.php:3
46
+ #@ shareaholic
47
+ msgid "Advanced Settings"
48
+ msgstr "Gevorderde Instellings"
49
+
50
+ #: admin.php:383
51
+ #: admin.php:452
52
+ #@ shareaholic
53
+ msgid "Settings successfully saved"
54
+ msgstr "Suksesvol gestoor"
55
+
56
+ #: admin.php:446
57
+ #@ shareaholic
58
+ msgid "Settings successfully reset. Refresh this page to complete the reset."
59
+ msgstr "Instellings suksesvol herstel. Verfris hierdie bladsy die herstel te voltooi."
60
+
61
+ #. translators: plugin header field 'Name'
62
+ #: shareaholic.php:0
63
+ #@ shareaholic
64
+ msgid "Shareaholic | share buttons, analytics, related content"
65
+ msgstr "Shareaholic | aandeel knoppies, analytics, verwante inhoud"
66
+
67
+ #. translators: plugin header field 'PluginURI'
68
+ #: shareaholic.php:0
69
+ #@ shareaholic
70
+ msgid "https://www.shareaholic.com/publishers/"
71
+ msgstr "https://www.shareaholic.com/publishers/"
72
+
73
+ #. translators: plugin header field 'AuthorURI'
74
+ #: shareaholic.php:0
75
+ #@ shareaholic
76
+ msgid "https://www.shareaholic.com"
77
+ msgstr "https://www.shareaholic.com"
78
+
79
+ #: templates/advanced_settings.php:9
80
+ #@ shareaholic
81
+ msgid "You rarely should need to edit the settings on this page."
82
+ msgstr "Jy moet selde nodig om die instellings te wysig op hierdie bladsy."
83
+
84
+ #: templates/advanced_settings.php:9
85
+ #@ shareaholic
86
+ msgid "After changing any Shareaholic advanced setting, it is good practice to clear any WordPress caching plugins (if you are using one, like W3 Total Cache or WP Super Cache)."
87
+ msgstr "Na die verandering van enige Shareaholic gevorderde omgewing, is dit goeie praktyk om enige WordPress plugins kas skoon te maak (as jy met een, soos W3 Totaal Cache of WP Super Cache)."
88
+
89
+ #: templates/advanced_settings.php:16
90
+ #@ shareaholic
91
+ msgid "Advanced"
92
+ msgstr "Gevorderde"
93
+
94
+ #: templates/advanced_settings.php:22
95
+ #@ shareaholic
96
+ msgid "Disable <code>Open Graph</code> tags"
97
+ msgstr "Skakel <code>Open Graph</code> tags"
98
+
99
+ #: templates/advanced_settings.php:22
100
+ #@ shareaholic
101
+ msgid "(it is recommended NOT to disable open graph tags)"
102
+ msgstr "(Dit word aanbeveel nie oop grafiek tags te skakel)"
103
+
104
+ #: templates/advanced_settings.php:28
105
+ #@ shareaholic
106
+ msgid "Disable Admin Bar Menu (requires page refresh)"
107
+ msgstr "Disable Admin Bar Menu (vereis bladsy verfris)"
108
+
109
+ #: templates/advanced_settings.php:34
110
+ #@ shareaholic
111
+ msgid "Disable Debugger (it is recommended NOT to disable the debugger)"
112
+ msgstr "Skakel Debugger (dit word aanbeveel om nie die debugger te skakel)"
113
+
114
+ #: templates/advanced_settings.php:40
115
+ #@ shareaholic
116
+ msgid "Disable server-side Share Counts API"
117
+ msgstr "Skakel bediener-kant Deel tel API"
118
+
119
+ #: templates/advanced_settings.php:42
120
+ #: templates/settings.php:125
121
+ #@ shareaholic
122
+ msgid "Saving Changes..."
123
+ msgstr "Spaar Wysigings ..."
124
+
125
+ #: templates/advanced_settings.php:42
126
+ #: templates/settings.php:125
127
+ #@ shareaholic
128
+ msgid "Save Changes"
129
+ msgstr "Save Wysigings"
130
+
131
+ #: templates/advanced_settings.php:52
132
+ #@ shareaholic
133
+ msgid "Server Connectivity"
134
+ msgstr "Bediener Connection"
135
+
136
+ #: templates/advanced_settings.php:55
137
+ #@ shareaholic
138
+ msgid "All Shareaholic servers are reachable"
139
+ msgstr "Alle Shareaholic bedieners is beskikbaar"
140
+
141
+ #: templates/advanced_settings.php:56
142
+ #@ shareaholic
143
+ msgid "Shareaholic should be working correctly."
144
+ msgstr "Shareaholic moet korrek werk."
145
+
146
+ #: templates/advanced_settings.php:56
147
+ #@ shareaholic
148
+ msgid "All Shareaholic servers are accessible."
149
+ msgstr "Alle Shareaholic bedieners is beskikbaar."
150
+
151
+ #: templates/advanced_settings.php:58
152
+ #@ shareaholic
153
+ msgid "Unable to reach any Shareaholic server"
154
+ msgstr "Kon nie enige Shareaholic bediener te bereik"
155
+
156
+ #: templates/advanced_settings.php:58
157
+ #: templates/advanced_settings.php:67
158
+ #@ shareaholic
159
+ msgid "Checking..."
160
+ msgstr "Beheer ..."
161
+
162
+ #: templates/advanced_settings.php:58
163
+ #: templates/advanced_settings.php:67
164
+ #@ shareaholic
165
+ msgid "Re-check"
166
+ msgstr "Re-check"
167
+
168
+ #: templates/advanced_settings.php:59
169
+ #, php-format
170
+ #@ default
171
+ msgid "A network problem or firewall is blocking all connections from your web server to Shareaholic.com. <strong>Shareaholic cannot work correctly until this is fixed.</strong> Please contact your web host or firewall administrator and give them <a href=\"%s\" target=\"_blank\">this information about Shareaholic and firewalls</a>. Let us <a href=\"#\" onclick=\"%s\">know</a> too, so we can follow up!"
172
+ msgstr ""
173
+
174
+ #: templates/advanced_settings.php:64
175
+ #@ shareaholic
176
+ msgid "Server-side Share Counts API is reachable"
177
+ msgstr "Bediener-kant Deel tel API is beskikbaar"
178
+
179
+ #: templates/advanced_settings.php:65
180
+ #@ shareaholic
181
+ msgid "The server-side Share Counts API should be working correctly."
182
+ msgstr "Die bediener-kant Deel grafte API moet korrek werk."
183
+
184
+ #: templates/advanced_settings.php:65
185
+ #@ shareaholic
186
+ msgid "All servers and services needed by the API are accessible."
187
+ msgstr "Alle bedieners en dienste wat nodig is deur die API is beskikbaar."
188
+
189
+ #: templates/advanced_settings.php:67
190
+ #@ shareaholic
191
+ msgid "Unable to reach the server-side Share Count API"
192
+ msgstr "Kan die bediener-kant Deel Telling API te bereik"
193
+
194
+ #: templates/advanced_settings.php:68
195
+ #, php-format
196
+ #@ default
197
+ msgid "A network problem or firewall is blocking connections from your web server to various Share Count APIs. <strong>The API cannot work correctly until this is fixed.</strong> If you continue to face this issue, please contact <a href=\"#\" onclick=\"%s\">us</a> and we will follow up! In the meantime, if you disable the server-side Share Counts API from the Advanced options above, Shareaholic will default to using client-side APIs for share counts successfully -- so nothing to worry about!"
198
+ msgstr ""
199
+
200
+ #: templates/advanced_settings.php:76
201
+ #@ shareaholic
202
+ msgid "Your Shareaholic Site ID"
203
+ msgstr "Jou Shareaholic Site ID"
204
+
205
+ #: templates/advanced_settings.php:81
206
+ #@ shareaholic
207
+ msgid "Not set."
208
+ msgstr "Nie ingestel."
209
+
210
+ #: templates/advanced_settings.php:94
211
+ #@ shareaholic
212
+ msgid "This will reset all of your settings and start you from scratch. This can not be undone."
213
+ msgstr "Dit sal al die instellings herstel en begin jy van nuuts af. Dit kan nie ongedaan gemaak word nie."
214
+
215
+ #: templates/advanced_settings.php:96
216
+ #@ shareaholic
217
+ msgid "Resetting Plugin..."
218
+ msgstr "Herstel Plugin ..."
219
+
220
+ #: templates/advanced_settings.php:92
221
+ #: templates/advanced_settings.php:96
222
+ #@ shareaholic
223
+ msgid "Reset Plugin"
224
+ msgstr "Herstel Plugin"
225
+
226
+ #: templates/deprecation_warnings.php:6
227
+ #@ shareaholic
228
+ msgid "will be deprecated SOON. Please update the code found in the following files at your convenience:"
229
+ msgstr "sal binnekort afgekeur word. Dateer die kode wat in die volgende lêers op jou gemak:"
230
+
231
+ #: templates/failed_to_create_api_key.php:6
232
+ #: templates/terms_of_service_notice.php:6
233
+ #, php-format
234
+ #@ shareaholic
235
+ msgid "Action required: You've installed Shareaholic for WordPress. We're ready when you are. %sGet started now &raquo;%s"
236
+ msgstr "Aksie vereis: Jy het Shareaholic geïnstalleer vir WordPress. Ons is gereed wanneer jy is. %sGet begin nou &raquo;%s"
237
+
238
+ #: templates/failed_to_create_api_key_modal.php:2
239
+ #@ shareaholic
240
+ msgid "Setup Shareaholic"
241
+ msgstr "Setup Shareaholic"
242
+
243
+ #: templates/failed_to_create_api_key_modal.php:5
244
+ #@ shareaholic
245
+ msgid "It appears that we are having some trouble setting up Shareaholic for WordPress right now. This is usually temporary. Please revisit this section after a few minutes or click \"retry\" now."
246
+ msgstr "Dit blyk dat ons &#39;n paar probleme opstel Shareaholic vir WordPress nou. Dit is gewoonlik tydelik. Weer hierdie artikel na &#39;n paar minute of kliek &quot;weer probeer&quot; nou."
247
+
248
+ #: templates/failed_to_create_api_key_modal.php:7
249
+ #@ shareaholic
250
+ msgid "Retry"
251
+ msgstr "Weer"
252
+
253
+ #: templates/failed_to_create_api_key_modal.php:10
254
+ #@ shareaholic
255
+ msgid "or, try again later."
256
+ msgstr "of probeer later weer."
257
+
258
+ #: templates/failed_to_create_api_key_modal.php:14
259
+ #, php-format
260
+ #@ shareaholic
261
+ msgid "If you continue to get this prompt for more than a few hours, try to check server connectivity or reset the plugin in %sadvanced settings%s."
262
+ msgstr ""
263
+
264
+ #: templates/failed_to_create_api_key_modal.php:14
265
+ #, php-format
266
+ #@ shareaholic
267
+ msgid "Also, if you have a question or have a bug to report, please %slet us know%s."
268
+ msgstr ""
269
+
270
+ #: templates/footer.php:8
271
+ #, php-format
272
+ #@ shareaholic
273
+ msgid "If you like our work, show some love and %sgive us a good rating%s. Made with much love in Boston, Massachusetts."
274
+ msgstr ""
275
+
276
+ #: templates/meta_boxes.php:6
277
+ #@ shareaholic
278
+ msgid "Hide Share Buttons"
279
+ msgstr "Versteek deel knoppies"
280
+
281
+ #: templates/meta_boxes.php:16
282
+ #@ shareaholic
283
+ msgid "Hide Related Content"
284
+ msgstr "Steek Verwante inhoud"
285
+
286
+ #: templates/meta_boxes.php:26
287
+ #@ shareaholic
288
+ msgid "Exclude from Related Content"
289
+ msgstr "Uitsluit van verwante inhoud"
290
+
291
+ #: templates/meta_boxes.php:36
292
+ #@ shareaholic
293
+ msgid "Do not include Open Graph tags"
294
+ msgstr "Moenie Open Grafiek tags"
295
+
296
+ #: templates/settings.php:21
297
+ #, php-format
298
+ #@ shareaholic
299
+ msgid "If you are upgrading from an earlier version of Shareaholic for WordPress and need help, have a question or have a bug to report, please %slet us know%s."
300
+ msgstr ""
301
+
302
+ #: templates/settings.php:73
303
+ #@ shareaholic
304
+ msgid "Related Content"
305
+ msgstr "Verwante inhoud"
306
+
307
+ #: templates/settings.php:56
308
+ #: templates/settings.php:95
309
+ #@ shareaholic
310
+ msgid "Customize"
311
+ msgstr "Pas"
312
+
313
+ #: templates/settings.php:34
314
+ #@ shareaholic
315
+ msgid "Share Buttons"
316
+ msgstr "Deel knoppies"
317
+
318
+ #: templates/terms_of_service_modal.php:35
319
+ #@ shareaholic
320
+ msgid "Get Started »"
321
+ msgstr "Slag »"
322
+
323
+ #: templates/terms_of_service_modal.php:36
324
+ #, php-format
325
+ #@ shareaholic
326
+ msgid "By clicking \"Get Started\" you agree to Shareholic's %sTerms of Service%s and %sPrivacy Policy%s."
327
+ msgstr "Deur op \"Aan die slag\" te kliek, stem jy in tot Shareholic se%sSkerms van diens%s en %sPrivaatheidsbeleid%s."
328
+
329
+ #: templates/why_to_sign_up.php:24
330
+ #@ shareaholic
331
+ msgid "Shareaholic Helpdesk"
332
+ msgstr "Shareaholic Helpdesk"
333
+
334
+ #: utilities.php:100
335
+ #@ shareaholic
336
+ msgid "Settings"
337
+ msgstr "Instellings"
338
+
339
+ #: utilities.php:155
340
+ #@ shareaholic
341
+ msgid "FAQ & Support"
342
+ msgstr "Vrae &amp; Support"
343
+
344
+ #: admin.php:141
345
+ #@ shareaholic
346
+ msgid "You have been using the "
347
+ msgstr "U gebruik die "
348
+
349
+ #: admin.php:141
350
+ #@ shareaholic
351
+ msgid " for some time now, do you like it? If so, please consider leaving us a review on WordPress.org! It would help us out a lot and we would really appreciate it."
352
+ msgstr "vir &#39;n geruime tyd, hou jy daarvan? Indien wel, oorweeg dit asseblief om ons &#39;n resensie te gee op WordPress.org! Dit sal ons baie help en ons sal dit regtig waardeer."
353
+
354
+ #: admin.php:144
355
+ #@ shareaholic
356
+ msgid "Leave a Review"
357
+ msgstr "Laat &#39;n resensie"
358
+
359
+ #: admin.php:145
360
+ #@ shareaholic
361
+ msgid "No thanks"
362
+ msgstr "Nee dankie"
363
+
364
+ #: admin.php:367
365
+ #@ shareaholic
366
+ msgid "Go Premium"
367
+ msgstr "Gaan Premium"
368
+
369
+ #: admin.php:368
370
+ #@ shareaholic
371
+ msgid "<span style=\"color: #FCB214;\">Go Premium</span>"
372
+ msgstr "<span style=\"color: #FCB214;\">Gaan Premium</span>"
373
+
374
+ #. translators: plugin header field 'Description'
375
+ #: shareaholic.php:0
376
+ #@ shareaholic
377
+ msgid "The world's leading all-in-one Content Amplification Platform that helps grow your website traffic, engagement, conversions & monetization. See <a href=\"admin.php?page=shareaholic-settings\">configuration panel</a> for more settings."
378
+ msgstr "Die wêreld se voorste all-in-one inhoudsversterkingsplatform wat help om jou webwerfverkeer, betrokkenheid, omskakelings en monetisering te verhoog. Sien <a href=\"admin.php?page=shareaholic-settings\">konfigurasiepaneel</a> vir meer instellings."
379
+
380
+ #. translators: plugin header field 'Version'
381
+ #: shareaholic.php:0
382
+ #@ shareaholic
383
+ msgid "8.6.0"
384
+ msgstr "8.6.0"
385
+
386
+ #: templates/advanced_settings.php:40
387
+ #@ shareaholic
388
+ msgid "(This feature uses server resources. When \"enabled\" share counts will appear for <a href=\"https://github.com/shareaholic/shareaholic-api-docs/blob/master/api_share.md\" target=\"_blank\">additional social networks</a>.)"
389
+ msgstr "(Hierdie funksie gebruik bedienerhulpbronne. Wanneer &#39;geaktiveerde&#39; deel tellings verskyn vir <a href=\"https://github.com/shareaholic/shareaholic-api-docs/blob/master/api_share.md\" target=\"_blank\">bykomende sosiale netwerke</a> .)"
390
+
391
+ #: templates/settings.php:21
392
+ #, php-format
393
+ #@ shareaholic
394
+ msgid "%sLearn the basics of how to get started and configure Shareaholic through our popular WordPress plugin.%s"
395
+ msgstr "%sLeer die basiese beginsels van hoe om te begin, en stel Shareaholic op deur ons gewilde WordPress plugin.%s"
396
+
397
+ #: templates/settings.php:26
398
+ #: templates/why_to_sign_up.php:15
399
+ #@ shareaholic
400
+ msgid "Shareaholic Dashboard"
401
+ msgstr "Shareaholic Dashboard"
402
+
403
+ #: templates/settings.php:29
404
+ #@ shareaholic
405
+ msgid "Configure Apps such as Floating Share buttons, Social Share Count Recovery, Follow buttons, Share Buttons for Images, Monetization Dashboard, EU Cookie Consent bar, and more from the dashboard."
406
+ msgstr "Konfigureer programme soos Drukknopknoppies, Social Share Count Recovery, Volg knoppies, Deel knoppies vir prente, Monetisering Dashboard, EU-koekie-toestemmingsbalk, en meer van die dashboard."
407
+
408
+ #: templates/settings.php:36
409
+ #@ shareaholic
410
+ msgid "Pick where you want your share buttons to be displayed. Click \"customize\" to customize look & feel, themes, share counters, alignment, and more."
411
+ msgstr "Kies waar jy wil hê dat jou deelknoppies vertoon moet word. Klik \"pasmaak\" om kyk & voel, temas, deel tellers, belyning en meer aan te pas."
412
+
413
+ #: templates/settings.php:67
414
+ #: templates/settings.php:106
415
+ #: templates/settings.php:119
416
+ #@ shareaholic
417
+ msgid "Edit Settings"
418
+ msgstr "Wysig instellings"
419
+
420
+ #: templates/settings.php:75
421
+ #@ shareaholic
422
+ msgid "Pick where you want the app to be displayed. Click \"Customize\" to customize look & feel, themes, block lists, etc."
423
+ msgstr "Kies waar jy wil hê die program moet vertoon word. Klik \"Pasmaak\" om kyk en voel, temas, bloklyste, ens. Aan te pas."
424
+
425
+ #: templates/settings.php:113
426
+ #@ shareaholic
427
+ msgid "Monetization Settings"
428
+ msgstr "Monetisering instellings"
429
+
430
+ #: templates/settings.php:116
431
+ #@ shareaholic
432
+ msgid "Configure Promoted Content, Affiliate Links, Banner Ads, etc. Check your earnings at any time."
433
+ msgstr "Stel bevorderde inhoud, geaffilieerde skakels, banieradvertensies, ens. Kontroleer jou verdienste te eniger tyd."
434
+
435
+ #: templates/terms_of_service_modal.php:2
436
+ #@ shareaholic
437
+ msgid "Welcome to Shareaholic!"
438
+ msgstr "Welkom by Shareaholic!"
439
+
440
+ #: templates/terms_of_service_modal.php:4
441
+ #, php-format
442
+ #@ shareaholic
443
+ msgid "%sThe all-in-one content amplification platform%s that takes your content to the next level."
444
+ msgstr "%sDie all-in-one inhoudversterkingsplatform%s wat jou inhoud na die volgende vlak neem."
445
+
446
+ #: templates/terms_of_service_modal.php:12
447
+ #@ shareaholic
448
+ msgid "Engage"
449
+ msgstr "betrek"
450
+
451
+ #: templates/terms_of_service_modal.php:13
452
+ #@ shareaholic
453
+ msgid "Increase traffic, time on site and repeat visits with our award winning toolset."
454
+ msgstr "Verhoog verkeer, tyd op die terrein en herhaal besoeke met ons bekroonde gereedskap."
455
+
456
+ #: templates/terms_of_service_modal.php:17
457
+ #@ shareaholic
458
+ msgid "Discover"
459
+ msgstr "Vind"
460
+
461
+ #: templates/terms_of_service_modal.php:18
462
+ #@ shareaholic
463
+ msgid "Understand your audience with our easy-to-use analytics dashboard."
464
+ msgstr "Verstaan ​​jou gehoor met ons maklik om te gebruik Analytics-dashboard."
465
+
466
+ #: templates/terms_of_service_modal.php:22
467
+ #@ shareaholic
468
+ msgid "Earn"
469
+ msgstr "Verdien"
470
+
471
+ #: templates/terms_of_service_modal.php:23
472
+ #@ shareaholic
473
+ msgid "Generate revenue with personalized, unobtrusive native ads."
474
+ msgstr "Genereer inkomste met persoonlike, onopsigtelike inheemse advertensies."
475
+
476
+ #: templates/terms_of_service_modal.php:27
477
+ #@ shareaholic
478
+ msgid "Acquire"
479
+ msgstr "verkry"
480
+
481
+ #: templates/terms_of_service_modal.php:28
482
+ #@ shareaholic
483
+ msgid "Reach over 400 million people with native ads and promoted content."
484
+ msgstr "Bereik meer as 400 miljoen mense met inheemse advertensies en bevorderde inhoud."
485
+
486
+ #: templates/terms_of_service_modal.php:39
487
+ #@ shareaholic
488
+ msgid "Note: Shareaholic incorporates trusted 3rd party services like Google Analytics to enhance social analytics and service reliability."
489
+ msgstr "Nota: Shareaholic sluit betroubare 3de-party dienste soos Google Analytics in om sosiale analise en diens betroubaarheid te verbeter."
490
+
491
+ #: templates/terms_of_service_modal.php:39
492
+ #@ shareaholic
493
+ msgid "You can toggle this setting under \"Advanced Settings\" at any time."
494
+ msgstr "U kan hierdie instelling onder \"Gevorderde instellings\" enige tyd verander."
495
+
496
+ #: templates/why_to_sign_up.php:4
497
+ #@ shareaholic
498
+ msgid "Link to Shareaholic.com to unlock:"
499
+ msgstr "Skakel na Shareaholic.com om te ontsluit:"
500
+
501
+ #: templates/why_to_sign_up.php:7
502
+ #@ shareaholic
503
+ msgid "Analytics"
504
+ msgstr "Analytics"
505
+
506
+ #: templates/why_to_sign_up.php:8
507
+ #@ shareaholic
508
+ msgid "Floating Share buttons"
509
+ msgstr "Floating Share knoppies"
510
+
511
+ #: templates/why_to_sign_up.php:9
512
+ #@ shareaholic
513
+ msgid "Social Share Count Recovery"
514
+ msgstr "Social Share Count Recovery"
515
+
516
+ #: templates/why_to_sign_up.php:10
517
+ #@ shareaholic
518
+ msgid "Follow buttons"
519
+ msgstr "Volg knoppies"
520
+
521
+ #: templates/why_to_sign_up.php:11
522
+ #@ shareaholic
523
+ msgid "Share Buttons for Images"
524
+ msgstr "Deel knoppies vir prente"
525
+
526
+ #: templates/why_to_sign_up.php:12
527
+ #@ shareaholic
528
+ msgid "Earnings Dashboard"
529
+ msgstr "Verdienste Dashboard"
530
+
531
+ #: templates/why_to_sign_up.php:13
532
+ #@ shareaholic
533
+ msgid "...lots more!"
534
+ msgstr "... baie meer!"
535
+
536
+ #: templates/why_to_sign_up.php:17
537
+ #@ shareaholic
538
+ msgid "Already have a Shareaholic account? Click the button above to log in."
539
+ msgstr "Het jy reeds &#39;n Shareaholic rekening? Klik op die knoppie hierbo om in te loggen."
540
+
541
+ #: templates/why_to_sign_up.php:25
542
+ #@ shareaholic
543
+ msgid "Submit a new or updated language translation"
544
+ msgstr "Dien &#39;n nuwe of opgedateerde taalvertaling in"
545
+
546
+ #: templates/why_to_sign_up.php:26
547
+ #@ shareaholic
548
+ msgid "Get the Shareaholic Browser Extension to share content from anywhere on the web"
549
+ msgstr "Kry die Shareaholic Browser Extension om inhoud van enige plek op die web te deel"
550
+
551
+ #: templates/why_to_sign_up.php:27
552
+ #@ shareaholic
553
+ msgid "Monetization Options"
554
+ msgstr "Monetiseringsopsies"
555
+
556
+ #: utilities.php:101
557
+ #@ shareaholic
558
+ msgid "Upgrade to Premium"
559
+ msgstr "Opgradeer na Premium"
560
+
561
+ #: utilities.php:102
562
+ #@ shareaholic
563
+ msgid "FAQ"
564
+ msgstr "Vrae"
565
+
566
+ #: utilities.php:124
567
+ #@ shareaholic
568
+ msgid "Grow"
569
+ msgstr "groei"
570
+
571
+ #: utilities.php:148
572
+ #@ shareaholic
573
+ msgid "Dashboard"
574
+ msgstr "Dashboard"
575
+
trunk/languages/shareaholic-de_DE.mo ADDED
Binary file
trunk/languages/shareaholic-de_DE.po ADDED
@@ -0,0 +1,575 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ msgid ""
2
+ msgstr ""
3
+ "Project-Id-Version: Shareaholic | share buttons, analytics, related content v8.6.0\n"
4
+ "Report-Msgid-Bugs-To: \n"
5
+ "POT-Creation-Date: \n"
6
+ "PO-Revision-Date: 2017-11-03 17:16:24+0000\n"
7
+ "Last-Translator: lot <l.schiborr@gmx.de>\n"
8
+ "Language-Team: \n"
9
+ "MIME-Version: 1.0\n"
10
+ "Content-Type: text/plain; charset=UTF-8\n"
11
+ "Content-Transfer-Encoding: 8bit\n"
12
+ "Plural-Forms: nplurals=2; plural=n != 1;\n"
13
+ "X-Generator: CSL v1.x\n"
14
+ "X-Poedit-Language: German\n"
15
+ "X-Poedit-Country: GERMANY\n"
16
+ "X-Poedit-SourceCharset: utf-8\n"
17
+ "X-Poedit-KeywordsList: __;_e;__ngettext:1,2;_n:1,2;__ngettext_noop:1,2;_n_noop:1,2;_c,_nc:4c,1,2;_x:1,2c;_ex:1,2c;_nx:4c,1,2;_nx_noop:4c,1,2;\n"
18
+ "X-Poedit-Basepath: ../\n"
19
+ "X-Poedit-Bookmarks: \n"
20
+ "X-Poedit-SearchPath-0: .\n"
21
+ "X-Textdomain-Support: yes"
22
+
23
+ #: admin.php:383
24
+ #: admin.php:452
25
+ #@ shareaholic
26
+ msgid "Settings successfully saved"
27
+ msgstr "Einstellungen erfolgreich gespeichert"
28
+
29
+ #: admin.php:446
30
+ #@ shareaholic
31
+ msgid "Settings successfully reset. Refresh this page to complete the reset."
32
+ msgstr "Einstellungen erfolgreich zurückgesetzt. Aktualisieren Sie diese Seite, um den Reset durchzuführen."
33
+
34
+ #: templates/advanced_settings.php:9
35
+ #@ shareaholic
36
+ msgid "You rarely should need to edit the settings on this page."
37
+ msgstr "Die Einstellungen auf dieser Seite sollten in der Regel selten geändert werden müssen."
38
+
39
+ #: templates/advanced_settings.php:22
40
+ #@ shareaholic
41
+ msgid "(it is recommended NOT to disable open graph tags)"
42
+ msgstr "(Es wird empfohlen, open graph tags nicht zu deaktivieren )"
43
+
44
+ #: templates/advanced_settings.php:42
45
+ #: templates/settings.php:125
46
+ #@ shareaholic
47
+ msgid "Save Changes"
48
+ msgstr "Änderungen speichern"
49
+
50
+ #: templates/deprecation_warnings.php:6
51
+ #@ shareaholic
52
+ msgid "will be deprecated SOON. Please update the code found in the following files at your convenience:"
53
+ msgstr "wird bald veraltet sein. Bitte aktualisiere den Code in den folgende Dateien:"
54
+
55
+ #: templates/failed_to_create_api_key.php:6
56
+ #: templates/terms_of_service_notice.php:6
57
+ #, php-format
58
+ #@ shareaholic
59
+ msgid "Action required: You've installed Shareaholic for WordPress. We're ready when you are. %sGet started now &raquo;%s"
60
+ msgstr "Aktion erforderlich: Du hast Shareaholic für WordPress installiert . Wir sind bereit, wenn Du es bist. %sGET jetzt begonnen &raquo, %s"
61
+
62
+ #: templates/failed_to_create_api_key_modal.php:2
63
+ #@ shareaholic
64
+ msgid "Setup Shareaholic"
65
+ msgstr "Shareaholic aufsetzen"
66
+
67
+ #: templates/failed_to_create_api_key_modal.php:5
68
+ #@ shareaholic
69
+ msgid "It appears that we are having some trouble setting up Shareaholic for WordPress right now. This is usually temporary. Please revisit this section after a few minutes or click \"retry\" now."
70
+ msgstr "Es scheint, dass wir haben einige Schwierigkeiten Einrichten Shareaholic für WordPress. Dies ist in der Regel vorübergehend. Bitte besuchen Sie diese Sektion nach ein paar Minuten nochmals oder klicken Sie jetzt auf \"Wiederholen\"."
71
+
72
+ #: templates/failed_to_create_api_key_modal.php:7
73
+ #@ shareaholic
74
+ msgid "Retry"
75
+ msgstr "Wiederholen"
76
+
77
+ #: templates/footer.php:8
78
+ #, php-format
79
+ #@ shareaholic
80
+ msgid "If you like our work, show some love and %sgive us a good rating%s. Made with much love in Boston, Massachusetts."
81
+ msgstr "Wenn Du Shareaholic magst, zeige uns Deine ihre Wertschätzung und %s gib uns eine gute Bewertung %s. Entwickelt mit viel Liebe in Boston, Massachusetts."
82
+
83
+ #: templates/meta_boxes.php:6
84
+ #@ shareaholic
85
+ msgid "Hide Share Buttons"
86
+ msgstr "Share Buttons ausblenden"
87
+
88
+ #: templates/meta_boxes.php:16
89
+ #@ shareaholic
90
+ msgid "Hide Related Content"
91
+ msgstr "\"Verwandten Inhalt\" ausblenden"
92
+
93
+ #: templates/meta_boxes.php:36
94
+ #@ shareaholic
95
+ msgid "Do not include Open Graph tags"
96
+ msgstr "Open Graph Schlagworte (Tags) nicht einbinden"
97
+
98
+ #: templates/settings.php:21
99
+ #, php-format
100
+ #@ shareaholic
101
+ msgid "If you are upgrading from an earlier version of Shareaholic for WordPress and need help, have a question or have a bug to report, please %slet us know%s."
102
+ msgstr "Wenn Du von einer früheren Version von Shareaholic aktualisiert und Hilfe benötigst oder einen Fehler berichten möchten, %s informiere uns bitte%s."
103
+
104
+ #: templates/settings.php:34
105
+ #@ shareaholic
106
+ msgid "Share Buttons"
107
+ msgstr "Teilen Buttons"
108
+
109
+ #: templates/terms_of_service_modal.php:36
110
+ #, php-format
111
+ #@ shareaholic
112
+ msgid "By clicking \"Get Started\" you agree to Shareholic's %sTerms of Service%s and %sPrivacy Policy%s."
113
+ msgstr "Beim Klicken auf \"Jetzt starten\" stimmst Du den %sAllgemeine Geschäftsbedingungen%s und der %sDatenschutz Erklärung%s von Shareaholic zu."
114
+
115
+ #: utilities.php:100
116
+ #@ shareaholic
117
+ msgid "Settings"
118
+ msgstr "Einstellungen"
119
+
120
+ #: templates/terms_of_service_modal.php:35
121
+ #@ shareaholic
122
+ msgid "Get Started »"
123
+ msgstr "Jetzt Starten »"
124
+
125
+ #. translators: plugin header field 'Name'
126
+ #: shareaholic.php:0
127
+ #@ shareaholic
128
+ msgid "Shareaholic | share buttons, analytics, related content"
129
+ msgstr "Shareaholic | Teilen Buttons, Analysen, Verwandeter Inhalt"
130
+
131
+ #. translators: plugin header field 'PluginURI'
132
+ #: shareaholic.php:0
133
+ #@ shareaholic
134
+ msgid "https://www.shareaholic.com/publishers/"
135
+ msgstr "https://www.shareaholic.com/publishers/"
136
+
137
+ #. translators: plugin header field 'Author'
138
+ #: admin.php:343
139
+ #: shareaholic.php:0
140
+ #@ shareaholic
141
+ msgid "Shareaholic"
142
+ msgstr "Shareaholic"
143
+
144
+ #. translators: plugin header field 'AuthorURI'
145
+ #: shareaholic.php:0
146
+ #@ shareaholic
147
+ msgid "https://www.shareaholic.com"
148
+ msgstr "https://www.shareaholic.com"
149
+
150
+ #: templates/advanced_settings.php:9
151
+ #@ shareaholic
152
+ msgid "After changing any Shareaholic advanced setting, it is good practice to clear any WordPress caching plugins (if you are using one, like W3 Total Cache or WP Super Cache)."
153
+ msgstr "Nach dem Ändern der erweiterten Einstellungen von Shareaholic sollte der Cache von Wordpress aktualisiert werden. Häufig geschieht dies in Plugins wie W3 Total Cache oder WP Super Cache."
154
+
155
+ #: templates/advanced_settings.php:16
156
+ #@ shareaholic
157
+ msgid "Advanced"
158
+ msgstr "Erweiterte"
159
+
160
+ #: templates/advanced_settings.php:42
161
+ #: templates/settings.php:125
162
+ #@ shareaholic
163
+ msgid "Saving Changes..."
164
+ msgstr "Speichere Änderungen ..."
165
+
166
+ #: templates/advanced_settings.php:52
167
+ #@ shareaholic
168
+ msgid "Server Connectivity"
169
+ msgstr "Server Verbindung"
170
+
171
+ #: templates/advanced_settings.php:55
172
+ #@ shareaholic
173
+ msgid "All Shareaholic servers are reachable"
174
+ msgstr "Alle Shareaholic Server sind erreichbar"
175
+
176
+ #: templates/advanced_settings.php:56
177
+ #@ shareaholic
178
+ msgid "Shareaholic should be working correctly."
179
+ msgstr "Shareaholic sollte korrekt arbeiten."
180
+
181
+ #: templates/advanced_settings.php:56
182
+ #@ shareaholic
183
+ msgid "All Shareaholic servers are accessible."
184
+ msgstr "Auf alle Shareaholic Server kann zugegriffen werden."
185
+
186
+ #: templates/advanced_settings.php:58
187
+ #@ shareaholic
188
+ msgid "Unable to reach any Shareaholic server"
189
+ msgstr "Auf die Shareaholic Server kann nicht zugegriffen werden."
190
+
191
+ #: templates/advanced_settings.php:58
192
+ #: templates/advanced_settings.php:67
193
+ #@ shareaholic
194
+ msgid "Checking..."
195
+ msgstr "Prüfe ..."
196
+
197
+ #: templates/advanced_settings.php:58
198
+ #: templates/advanced_settings.php:67
199
+ #@ shareaholic
200
+ msgid "Re-check"
201
+ msgstr "Erneute Prüfung"
202
+
203
+ #: templates/advanced_settings.php:59
204
+ #, php-format
205
+ #@ default
206
+ msgid "A network problem or firewall is blocking all connections from your web server to Shareaholic.com. <strong>Shareaholic cannot work correctly until this is fixed.</strong> Please contact your web host or firewall administrator and give them <a href=\"%s\" target=\"_blank\">this information about Shareaholic and firewalls</a>. Let us <a href=\"#\" onclick=\"%s\">know</a> too, so we can follow up!"
207
+ msgstr "Ein Netzwerk Problem oder eine Firewall blockiert die Verbindung von Deinem Webserver zu Shareaholic.com. <strong>Shareaholic kann nicht korrekt arbeiten bis dieses Problem korrigiert ist.>/strong> Bitte kontaktierte Deinen Webmaster oder Firewall Administrator und gib ihm <a href=\"%s\" target=\"_blank\">diese Informationen über Shareaholic und die Firewall</a>. Informiere <a href=\"#\" onclick=\"%s\">uns auch</a>, damit wir unterstützen können."
208
+
209
+ #: templates/advanced_settings.php:81
210
+ #@ shareaholic
211
+ msgid "Not set."
212
+ msgstr "Nicht festgelegt."
213
+
214
+ #: templates/advanced_settings.php:94
215
+ #@ shareaholic
216
+ msgid "This will reset all of your settings and start you from scratch. This can not be undone."
217
+ msgstr "Dies wird alle Deine Einstellungen zurücksetzen und Du kannst mit den Grundeinstellungen neu anfangen. Dies kann nicht rückgängig gemacht werden."
218
+
219
+ #: templates/advanced_settings.php:96
220
+ #@ shareaholic
221
+ msgid "Resetting Plugin..."
222
+ msgstr "Setze Plugin zurück..."
223
+
224
+ #: templates/advanced_settings.php:92
225
+ #: templates/advanced_settings.php:96
226
+ #@ shareaholic
227
+ msgid "Reset Plugin"
228
+ msgstr "Plugin zurücksetzen"
229
+
230
+ #: templates/failed_to_create_api_key_modal.php:10
231
+ #@ shareaholic
232
+ msgid "or, try again later."
233
+ msgstr "oder versuche es später."
234
+
235
+ #: templates/failed_to_create_api_key_modal.php:14
236
+ #, php-format
237
+ #@ shareaholic
238
+ msgid "If you continue to get this prompt for more than a few hours, try to check server connectivity or reset the plugin in %sadvanced settings%s."
239
+ msgstr "Wenn Du diese Meldung länger als ein paar Stunden erhältst , prüfe die Server