Team:UST Beijing/bootstrap/bootstrap.js

From 2014.igem.org

(Difference between revisions)
(Created page with "- ! * Bootstrap v3.2.0 (http://getbootstrap.com) * Copyright 2011-2014 Twitter, Inc. * Licensed under MIT (https://github.com/twbs/bootstrap/blob/master/LICENSE): if (type...")
 
(3 intermediate revisions not shown)
Line 5: Line 5:
  */
  */
-
if (typeof jQuery === 'undefined') { throw new Error('Bootstrap\'s JavaScript requires jQuery') }
+
/*!
-
 
+
  * Generated using the Bootstrap Customizer (http://getbootstrap.com/customize/?id=da58eaa352adc4879b58)
-
/* ========================================================================
+
  * Config saved to config.json and https://gist.github.com/da58eaa352adc4879b58
-
* Bootstrap: transition.js v3.2.0
+
  */
-
* http://getbootstrap.com/javascript/#transitions
+
if("undefined"==typeof jQuery)throw new Error("Bootstrap's JavaScript requires jQuery");+function(t){"use strict";function e(e){return this.each(function(){var i=t(this),s=i.data("bs.alert");s||i.data("bs.alert",s=new o(this)),"string"==typeof e&&s[e].call(i)})}var i='[data-dismiss="alert"]',o=function(e){t(e).on("click",i,this.close)};o.VERSION="3.2.0",o.prototype.close=function(e){function i(){n.detach().trigger("closed.bs.alert").remove()}var o=t(this),s=o.attr("data-target");s||(s=o.attr("href"),s=s&&s.replace(/.*(?=#[^\s]*$)/,""));var n=t(s);e&&e.preventDefault(),n.length||(n=o.hasClass("alert")?o:o.parent()),n.trigger(e=t.Event("close.bs.alert")),e.isDefaultPrevented()||(n.removeClass("in"),t.support.transition&&n.hasClass("fade")?n.one("bsTransitionEnd",i).emulateTransitionEnd(150):i())};var s=t.fn.alert;t.fn.alert=e,t.fn.alert.Constructor=o,t.fn.alert.noConflict=function(){return t.fn.alert=s,this},t(document).on("click.bs.alert.data-api",i,o.prototype.close)}(jQuery),+function(t){"use strict";function e(e){return this.each(function(){var o=t(this),s=o.data("bs.button"),n="object"==typeof e&&e;s||o.data("bs.button",s=new i(this,n)),"toggle"==e?s.toggle():e&&s.setState(e)})}var i=function(e,o){this.$element=t(e),this.options=t.extend({},i.DEFAULTS,o),this.isLoading=!1};i.VERSION="3.2.0",i.DEFAULTS={loadingText:"loading..."},i.prototype.setState=function(e){var i="disabled",o=this.$element,s=o.is("input")?"val":"html",n=o.data();e+="Text",null==n.resetText&&o.data("resetText",o[s]()),o[s](null==n[e]?this.options[e]:n[e]),setTimeout(t.proxy(function(){"loadingText"==e?(this.isLoading=!0,o.addClass(i).attr(i,i)):this.isLoading&&(this.isLoading=!1,o.removeClass(i).removeAttr(i))},this),0)},i.prototype.toggle=function(){var t=!0,e=this.$element.closest('[data-toggle="buttons"]');if(e.length){var i=this.$element.find("input");"radio"==i.prop("type")&&(i.prop("checked")&&this.$element.hasClass("active")?t=!1:e.find(".active").removeClass("active")),t&&i.prop("checked",!this.$element.hasClass("active")).trigger("change")}t&&this.$element.toggleClass("active")};var o=t.fn.button;t.fn.button=e,t.fn.button.Constructor=i,t.fn.button.noConflict=function(){return t.fn.button=o,this},t(document).on("click.bs.button.data-api",'[data-toggle^="button"]',function(i){var o=t(i.target);o.hasClass("btn")||(o=o.closest(".btn")),e.call(o,"toggle"),i.preventDefault()})}(jQuery),+function(t){"use strict";function e(e){return this.each(function(){var o=t(this),s=o.data("bs.carousel"),n=t.extend({},i.DEFAULTS,o.data(),"object"==typeof e&&e),r="string"==typeof e?e:n.slide;s||o.data("bs.carousel",s=new i(this,n)),"number"==typeof e?s.to(e):r?s[r]():n.interval&&s.pause().cycle()})}var i=function(e,i){this.$element=t(e).on("keydown.bs.carousel",t.proxy(this.keydown,this)),this.$indicators=this.$element.find(".carousel-indicators"),this.options=i,this.paused=this.sliding=this.interval=this.$active=this.$items=null,"hover"==this.options.pause&&this.$element.on("mouseenter.bs.carousel",t.proxy(this.pause,this)).on("mouseleave.bs.carousel",t.proxy(this.cycle,this))};i.VERSION="3.2.0",i.DEFAULTS={interval:5e3,pause:"hover",wrap:!0},i.prototype.keydown=function(t){switch(t.which){case 37:this.prev();break;case 39:this.next();break;default:return}t.preventDefault()},i.prototype.cycle=function(e){return e||(this.paused=!1),this.interval&&clearInterval(this.interval),this.options.interval&&!this.paused&&(this.interval=setInterval(t.proxy(this.next,this),this.options.interval)),this},i.prototype.getItemIndex=function(t){return this.$items=t.parent().children(".item"),this.$items.index(t||this.$active)},i.prototype.to=function(e){var i=this,o=this.getItemIndex(this.$active=this.$element.find(".item.active"));return e>this.$items.length-1||0>e?void 0:this.sliding?this.$element.one("slid.bs.carousel",function(){i.to(e)}):o==e?this.pause().cycle():this.slide(e>o?"next":"prev",t(this.$items[e]))},i.prototype.pause=function(e){return e||(this.paused=!0),this.$element.find(".next, .prev").length&&t.support.transition&&(this.$element.trigger(t.support.transition.end),this.cycle(!0)),this.interval=clearInterval(this.interval),this},i.prototype.next=function(){return this.sliding?void 0:this.slide("next")},i.prototype.prev=function(){return this.sliding?void 0:this.slide("prev")},i.prototype.slide=function(e,i){var o=this.$element.find(".item.active"),s=i||o[e](),n=this.interval,r="next"==e?"left":"right",a="next"==e?"first":"last",l=this;if(!s.length){if(!this.options.wrap)return;s=this.$element.find(".item")[a]()}if(s.hasClass("active"))return this.sliding=!1;var h=s[0],p=t.Event("slide.bs.carousel",{relatedTarget:h,direction:r});if(this.$element.trigger(p),!p.isDefaultPrevented()){if(this.sliding=!0,n&&this.pause(),this.$indicators.length){this.$indicators.find(".active").removeClass("active");var c=t(this.$indicators.children()[this.getItemIndex(s)]);c&&c.addClass("active")}var d=t.Event("slid.bs.carousel",{relatedTarget:h,direction:r});return t.support.transition&&this.$element.hasClass("slide")?(s.addClass(e),s[0].offsetWidth,o.addClass(r),s.addClass(r),o.one("bsTransitionEnd",function(){s.removeClass([e,r].join(" ")).addClass("active"),o.removeClass(["active",r].join(" ")),l.sliding=!1,setTimeout(function(){l.$element.trigger(d)},0)}).emulateTransitionEnd(1e3*o.css("transition-duration").slice(0,-1))):(o.removeClass("active"),s.addClass("active"),this.sliding=!1,this.$element.trigger(d)),n&&this.cycle(),this}};var o=t.fn.carousel;t.fn.carousel=e,t.fn.carousel.Constructor=i,t.fn.carousel.noConflict=function(){return t.fn.carousel=o,this},t(document).on("click.bs.carousel.data-api","[data-slide], [data-slide-to]",function(i){var o,s=t(this),n=t(s.attr("data-target")||(o=s.attr("href"))&&o.replace(/.*(?=#[^\s]+$)/,""));if(n.hasClass("carousel")){var r=t.extend({},n.data(),s.data()),a=s.attr("data-slide-to");a&&(r.interval=!1),e.call(n,r),a&&n.data("bs.carousel").to(a),i.preventDefault()}}),t(window).on("load",function(){t('[data-ride="carousel"]').each(function(){var i=t(this);e.call(i,i.data())})})}(jQuery),+function(t){"use strict";function e(e){e&&3===e.which||(t(s).remove(),t(n).each(function(){var o=i(t(this)),s={relatedTarget:this};o.hasClass("open")&&(o.trigger(e=t.Event("hide.bs.dropdown",s)),e.isDefaultPrevented()||o.removeClass("open").trigger("hidden.bs.dropdown",s))}))}function i(e){var i=e.attr("data-target");i||(i=e.attr("href"),i=i&&/#[A-Za-z]/.test(i)&&i.replace(/.*(?=#[^\s]*$)/,""));var o=i&&t(i);return o&&o.length?o:e.parent()}function o(e){return this.each(function(){var i=t(this),o=i.data("bs.dropdown");o||i.data("bs.dropdown",o=new r(this)),"string"==typeof e&&o[e].call(i)})}var s=".dropdown-backdrop",n='[data-toggle="dropdown"]',r=function(e){t(e).on("click.bs.dropdown",this.toggle)};r.VERSION="3.2.0",r.prototype.toggle=function(o){var s=t(this);if(!s.is(".disabled, :disabled")){var n=i(s),r=n.hasClass("open");if(e(),!r){"ontouchstart"in document.documentElement&&!n.closest(".navbar-nav").length&&t('<div class="dropdown-backdrop"/>').insertAfter(t(this)).on("click",e);var a={relatedTarget:this};if(n.trigger(o=t.Event("show.bs.dropdown",a)),o.isDefaultPrevented())return;s.trigger("focus"),n.toggleClass("open").trigger("shown.bs.dropdown",a)}return!1}},r.prototype.keydown=function(e){if(/(38|40|27)/.test(e.keyCode)){var o=t(this);if(e.preventDefault(),e.stopPropagation(),!o.is(".disabled, :disabled")){var s=i(o),r=s.hasClass("open");if(!r||r&&27==e.keyCode)return 27==e.which&&s.find(n).trigger("focus"),o.trigger("click");var a=" li:not(.divider):visible a",l=s.find('[role="menu"]'+a+', [role="listbox"]'+a);if(l.length){var h=l.index(l.filter(":focus"));38==e.keyCode&&h>0&&h--,40==e.keyCode&&h<l.length-1&&h++,~h||(h=0),l.eq(h).trigger("focus")}}}};var a=t.fn.dropdown;t.fn.dropdown=o,t.fn.dropdown.Constructor=r,t.fn.dropdown.noConflict=function(){return t.fn.dropdown=a,this},t(document).on("click.bs.dropdown.data-api",e).on("click.bs.dropdown.data-api",".dropdown form",function(t){t.stopPropagation()}).on("click.bs.dropdown.data-api",n,r.prototype.toggle).on("keydown.bs.dropdown.data-api",n+', [role="menu"], [role="listbox"]',r.prototype.keydown)}(jQuery),+function(t){"use strict";function e(e,o){return this.each(function(){var s=t(this),n=s.data("bs.modal"),r=t.extend({},i.DEFAULTS,s.data(),"object"==typeof e&&e);n||s.data("bs.modal",n=new i(this,r)),"string"==typeof e?n[e](o):r.show&&n.show(o)})}var i=function(e,i){this.options=i,this.$body=t(document.body),this.$element=t(e),this.$backdrop=this.isShown=null,this.scrollbarWidth=0,this.options.remote&&this.$element.find(".modal-content").load(this.options.remote,t.proxy(function(){this.$element.trigger("loaded.bs.modal")},this))};i.VERSION="3.2.0",i.DEFAULTS={backdrop:!0,keyboard:!0,show:!0},i.prototype.toggle=function(t){return this.isShown?this.hide():this.show(t)},i.prototype.show=function(e){var i=this,o=t.Event("show.bs.modal",{relatedTarget:e});this.$element.trigger(o),this.isShown||o.isDefaultPrevented()||(this.isShown=!0,this.checkScrollbar(),this.$body.addClass("modal-open"),this.setScrollbar(),this.escape(),this.$element.on("click.dismiss.bs.modal",'[data-dismiss="modal"]',t.proxy(this.hide,this)),this.backdrop(function(){var o=t.support.transition&&i.$element.hasClass("fade");i.$element.parent().length||i.$element.appendTo(i.$body),i.$element.show().scrollTop(0),o&&i.$element[0].offsetWidth,i.$element.addClass("in").attr("aria-hidden",!1),i.enforceFocus();var s=t.Event("shown.bs.modal",{relatedTarget:e});o?i.$element.find(".modal-dialog").one("bsTransitionEnd",function(){i.$element.trigger("focus").trigger(s)}).emulateTransitionEnd(300):i.$element.trigger("focus").trigger(s)}))},i.prototype.hide=function(e){e&&e.preventDefault(),e=t.Event("hide.bs.modal"),this.$element.trigger(e),this.isShown&&!e.isDefaultPrevented()&&(this.isShown=!1,this.$body.removeClass("modal-open"),this.resetScrollbar(),this.escape(),t(document).off("focusin.bs.modal"),this.$element.removeClass("in").attr("aria-hidden",!0).off("click.dismiss.bs.modal"),t.support.transition&&this.$element.hasClass("fade")?this.$element.one("bsTransitionEnd",t.proxy(this.hideModal,this)).emulateTransitionEnd(300):this.hideModal())},i.prototype.enforceFocus=function(){t(document).off("focusin.bs.modal").on("focusin.bs.modal",t.proxy(function(t){this.$element[0]===t.target||this.$element.has(t.target).length||this.$element.trigger("focus")},this))},i.prototype.escape=function(){this.isShown&&this.options.keyboard?this.$element.on("keyup.dismiss.bs.modal",t.proxy(function(t){27==t.which&&this.hide()},this)):this.isShown||this.$element.off("keyup.dismiss.bs.modal")},i.prototype.hideModal=function(){var t=this;this.$element.hide(),this.backdrop(function(){t.$element.trigger("hidden.bs.modal")})},i.prototype.removeBackdrop=function(){this.$backdrop&&this.$backdrop.remove(),this.$backdrop=null},i.prototype.backdrop=function(e){var i=this,o=this.$element.hasClass("fade")?"fade":"";if(this.isShown&&this.options.backdrop){var s=t.support.transition&&o;if(this.$backdrop=t('<div class="modal-backdrop '+o+'" />').appendTo(this.$body),this.$element.on("click.dismiss.bs.modal",t.proxy(function(t){t.target===t.currentTarget&&("static"==this.options.backdrop?this.$element[0].focus.call(this.$element[0]):this.hide.call(this))},this)),s&&this.$backdrop[0].offsetWidth,this.$backdrop.addClass("in"),!e)return;s?this.$backdrop.one("bsTransitionEnd",e).emulateTransitionEnd(150):e()}else if(!this.isShown&&this.$backdrop){this.$backdrop.removeClass("in");var n=function(){i.removeBackdrop(),e&&e()};t.support.transition&&this.$element.hasClass("fade")?this.$backdrop.one("bsTransitionEnd",n).emulateTransitionEnd(150):n()}else e&&e()},i.prototype.checkScrollbar=function(){document.body.clientWidth>=window.innerWidth||(this.scrollbarWidth=this.scrollbarWidth||this.measureScrollbar())},i.prototype.setScrollbar=function(){var t=parseInt(this.$body.css("padding-right")||0,10);this.scrollbarWidth&&this.$body.css("padding-right",t+this.scrollbarWidth)},i.prototype.resetScrollbar=function(){this.$body.css("padding-right","")},i.prototype.measureScrollbar=function(){var t=document.createElement("div");t.className="modal-scrollbar-measure",this.$body.append(t);var e=t.offsetWidth-t.clientWidth;return this.$body[0].removeChild(t),e};var o=t.fn.modal;t.fn.modal=e,t.fn.modal.Constructor=i,t.fn.modal.noConflict=function(){return t.fn.modal=o,this},t(document).on("click.bs.modal.data-api",'[data-toggle="modal"]',function(i){var o=t(this),s=o.attr("href"),n=t(o.attr("data-target")||s&&s.replace(/.*(?=#[^\s]+$)/,"")),r=n.data("bs.modal")?"toggle":t.extend({remote:!/#/.test(s)&&s},n.data(),o.data());o.is("a")&&i.preventDefault(),n.one("show.bs.modal",function(t){t.isDefaultPrevented()||n.one("hidden.bs.modal",function(){o.is(":visible")&&o.trigger("focus")})}),e.call(n,r,this)})}(jQuery),+function(t){"use strict";function e(e){return this.each(function(){var o=t(this),s=o.data("bs.tooltip"),n="object"==typeof e&&e;(s||"destroy"!=e)&&(s||o.data("bs.tooltip",s=new i(this,n)),"string"==typeof e&&s[e]())})}var i=function(t,e){this.type=this.options=this.enabled=this.timeout=this.hoverState=this.$element=null,this.init("tooltip",t,e)};i.VERSION="3.2.0",i.DEFAULTS={animation:!0,placement:"top",selector:!1,template:'<div class="tooltip" role="tooltip"><div class="tooltip-arrow"></div><div class="tooltip-inner"></div></div>',trigger:"hover focus",title:"",delay:0,html:!1,container:!1,viewport:{selector:"body",padding:0}},i.prototype.init=function(e,i,o){this.enabled=!0,this.type=e,this.$element=t(i),this.options=this.getOptions(o),this.$viewport=this.options.viewport&&t(this.options.viewport.selector||this.options.viewport);for(var s=this.options.trigger.split(" "),n=s.length;n--;){var r=s[n];if("click"==r)this.$element.on("click."+this.type,this.options.selector,t.proxy(this.toggle,this));else if("manual"!=r){var a="hover"==r?"mouseenter":"focusin",l="hover"==r?"mouseleave":"focusout";this.$element.on(a+"."+this.type,this.options.selector,t.proxy(this.enter,this)),this.$element.on(l+"."+this.type,this.options.selector,t.proxy(this.leave,this))}}this.options.selector?this._options=t.extend({},this.options,{trigger:"manual",selector:""}):this.fixTitle()},i.prototype.getDefaults=function(){return i.DEFAULTS},i.prototype.getOptions=function(e){return e=t.extend({},this.getDefaults(),this.$element.data(),e),e.delay&&"number"==typeof e.delay&&(e.delay={show:e.delay,hide:e.delay}),e},i.prototype.getDelegateOptions=function(){var e={},i=this.getDefaults();return this._options&&t.each(this._options,function(t,o){i[t]!=o&&(e[t]=o)}),e},i.prototype.enter=function(e){var i=e instanceof this.constructor?e:t(e.currentTarget).data("bs."+this.type);return i||(i=new this.constructor(e.currentTarget,this.getDelegateOptions()),t(e.currentTarget).data("bs."+this.type,i)),clearTimeout(i.timeout),i.hoverState="in",i.options.delay&&i.options.delay.show?void(i.timeout=setTimeout(function(){"in"==i.hoverState&&i.show()},i.options.delay.show)):i.show()},i.prototype.leave=function(e){var i=e instanceof this.constructor?e:t(e.currentTarget).data("bs."+this.type);return i||(i=new this.constructor(e.currentTarget,this.getDelegateOptions()),t(e.currentTarget).data("bs."+this.type,i)),clearTimeout(i.timeout),i.hoverState="out",i.options.delay&&i.options.delay.hide?void(i.timeout=setTimeout(function(){"out"==i.hoverState&&i.hide()},i.options.delay.hide)):i.hide()},i.prototype.show=function(){var e=t.Event("show.bs."+this.type);if(this.hasContent()&&this.enabled){this.$element.trigger(e);var i=t.contains(document.documentElement,this.$element[0]);if(e.isDefaultPrevented()||!i)return;var o=this,s=this.tip(),n=this.getUID(this.type);this.setContent(),s.attr("id",n),this.$element.attr("aria-describedby",n),this.options.animation&&s.addClass("fade");var r="function"==typeof this.options.placement?this.options.placement.call(this,s[0],this.$element[0]):this.options.placement,a=/\s?auto?\s?/i,l=a.test(r);l&&(r=r.replace(a,"")||"top"),s.detach().css({top:0,left:0,display:"block"}).addClass(r).data("bs."+this.type,this),this.options.container?s.appendTo(this.options.container):s.insertAfter(this.$element);var h=this.getPosition(),p=s[0].offsetWidth,c=s[0].offsetHeight;if(l){var d=r,f=this.$element.parent(),u=this.getPosition(f);r="bottom"==r&&h.top+h.height+c-u.scroll>u.height?"top":"top"==r&&h.top-u.scroll-c<0?"bottom":"right"==r&&h.right+p>u.width?"left":"left"==r&&h.left-p<u.left?"right":r,s.removeClass(d).addClass(r)}var g=this.getCalculatedOffset(r,h,p,c);this.applyPlacement(g,r);var v=function(){o.$element.trigger("shown.bs."+o.type),o.hoverState=null};t.support.transition&&this.$tip.hasClass("fade")?s.one("bsTransitionEnd",v).emulateTransitionEnd(150):v()}},i.prototype.applyPlacement=function(e,i){var o=this.tip(),s=o[0].offsetWidth,n=o[0].offsetHeight,r=parseInt(o.css("margin-top"),10),a=parseInt(o.css("margin-left"),10);isNaN(r)&&(r=0),isNaN(a)&&(a=0),e.top=e.top+r,e.left=e.left+a,t.offset.setOffset(o[0],t.extend({using:function(t){o.css({top:Math.round(t.top),left:Math.round(t.left)})}},e),0),o.addClass("in");var l=o[0].offsetWidth,h=o[0].offsetHeight;"top"==i&&h!=n&&(e.top=e.top+n-h);var p=this.getViewportAdjustedDelta(i,e,l,h);p.left?e.left+=p.left:e.top+=p.top;var c=p.left?2*p.left-s+l:2*p.top-n+h,d=p.left?"left":"top",f=p.left?"offsetWidth":"offsetHeight";o.offset(e),this.replaceArrow(c,o[0][f],d)},i.prototype.replaceArrow=function(t,e,i){this.arrow().css(i,t?50*(1-t/e)+"%":"")},i.prototype.setContent=function(){var t=this.tip(),e=this.getTitle();t.find(".tooltip-inner")[this.options.html?"html":"text"](e),t.removeClass("fade in top bottom left right")},i.prototype.hide=function(){function e(){"in"!=i.hoverState&&o.detach(),i.$element.trigger("hidden.bs."+i.type)}var i=this,o=this.tip(),s=t.Event("hide.bs."+this.type);return this.$element.removeAttr("aria-describedby"),this.$element.trigger(s),s.isDefaultPrevented()?void 0:(o.removeClass("in"),t.support.transition&&this.$tip.hasClass("fade")?o.one("bsTransitionEnd",e).emulateTransitionEnd(150):e(),this.hoverState=null,this)},i.prototype.fixTitle=function(){var t=this.$element;(t.attr("title")||"string"!=typeof t.attr("data-original-title"))&&t.attr("data-original-title",t.attr("title")||"").attr("title","")},i.prototype.hasContent=function(){return this.getTitle()},i.prototype.getPosition=function(e){e=e||this.$element;var i=e[0],o="BODY"==i.tagName;return t.extend({},"function"==typeof i.getBoundingClientRect?i.getBoundingClientRect():null,{scroll:o?document.documentElement.scrollTop||document.body.scrollTop:e.scrollTop(),width:o?t(window).width():e.outerWidth(),height:o?t(window).height():e.outerHeight()},o?{top:0,left:0}:e.offset())},i.prototype.getCalculatedOffset=function(t,e,i,o){return"bottom"==t?{top:e.top+e.height,left:e.left+e.width/2-i/2}:"top"==t?{top:e.top-o,left:e.left+e.width/2-i/2}:"left"==t?{top:e.top+e.height/2-o/2,left:e.left-i}:{top:e.top+e.height/2-o/2,left:e.left+e.width}},i.prototype.getViewportAdjustedDelta=function(t,e,i,o){var s={top:0,left:0};if(!this.$viewport)return s;var n=this.options.viewport&&this.options.viewport.padding||0,r=this.getPosition(this.$viewport);if(/right|left/.test(t)){var a=e.top-n-r.scroll,l=e.top+n-r.scroll+o;a<r.top?s.top=r.top-a:l>r.top+r.height&&(s.top=r.top+r.height-l)}else{var h=e.left-n,p=e.left+n+i;h<r.left?s.left=r.left-h:p>r.width&&(s.left=r.left+r.width-p)}return s},i.prototype.getTitle=function(){var t,e=this.$element,i=this.options;return t=e.attr("data-original-title")||("function"==typeof i.title?i.title.call(e[0]):i.title)},i.prototype.getUID=function(t){do t+=~~(1e6*Math.random());while(document.getElementById(t));return t},i.prototype.tip=function(){return this.$tip=this.$tip||t(this.options.template)},i.prototype.arrow=function(){return this.$arrow=this.$arrow||this.tip().find(".tooltip-arrow")},i.prototype.validate=function(){this.$element[0].parentNode||(this.hide(),this.$element=null,this.options=null)},i.prototype.enable=function(){this.enabled=!0},i.prototype.disable=function(){this.enabled=!1},i.prototype.toggleEnabled=function(){this.enabled=!this.enabled},i.prototype.toggle=function(e){var i=this;e&&(i=t(e.currentTarget).data("bs."+this.type),i||(i=new this.constructor(e.currentTarget,this.getDelegateOptions()),t(e.currentTarget).data("bs."+this.type,i))),i.tip().hasClass("in")?i.leave(i):i.enter(i)},i.prototype.destroy=function(){clearTimeout(this.timeout),this.hide().$element.off("."+this.type).removeData("bs."+this.type)};var o=t.fn.tooltip;t.fn.tooltip=e,t.fn.tooltip.Constructor=i,t.fn.tooltip.noConflict=function(){return t.fn.tooltip=o,this}}(jQuery),+function(t){"use strict";function e(e){return this.each(function(){var o=t(this),s=o.data("bs.popover"),n="object"==typeof e&&e;(s||"destroy"!=e)&&(s||o.data("bs.popover",s=new i(this,n)),"string"==typeof e&&s[e]())})}var i=function(t,e){this.init("popover",t,e)};if(!t.fn.tooltip)throw new Error("Popover requires tooltip.js");i.VERSION="3.2.0",i.DEFAULTS=t.extend({},t.fn.tooltip.Constructor.DEFAULTS,{placement:"right",trigger:"click",content:"",template:'<div class="popover" role="tooltip"><div class="arrow"></div><h3 class="popover-title"></h3><div class="popover-content"></div></div>'}),i.prototype=t.extend({},t.fn.tooltip.Constructor.prototype),i.prototype.constructor=i,i.prototype.getDefaults=function(){return i.DEFAULTS},i.prototype.setContent=function(){var t=this.tip(),e=this.getTitle(),i=this.getContent();t.find(".popover-title")[this.options.html?"html":"text"](e),t.find(".popover-content").empty()[this.options.html?"string"==typeof i?"html":"append":"text"](i),t.removeClass("fade top bottom left right in"),t.find(".popover-title").html()||t.find(".popover-title").hide()},i.prototype.hasContent=function(){return this.getTitle()||this.getContent()},i.prototype.getContent=function(){var t=this.$element,e=this.options;return t.attr("data-content")||("function"==typeof e.content?e.content.call(t[0]):e.content)},i.prototype.arrow=function(){return this.$arrow=this.$arrow||this.tip().find(".arrow")},i.prototype.tip=function(){return this.$tip||(this.$tip=t(this.options.template)),this.$tip};var o=t.fn.popover;t.fn.popover=e,t.fn.popover.Constructor=i,t.fn.popover.noConflict=function(){return t.fn.popover=o,this}}(jQuery),+function(t){"use strict";function e(e){return this.each(function(){var o=t(this),s=o.data("bs.tab");s||o.data("bs.tab",s=new i(this)),"string"==typeof e&&s[e]()})}var i=function(e){this.element=t(e)};i.VERSION="3.2.0",i.prototype.show=function(){var e=this.element,i=e.closest("ul:not(.dropdown-menu)"),o=e.data("target");if(o||(o=e.attr("href"),o=o&&o.replace(/.*(?=#[^\s]*$)/,"")),!e.parent("li").hasClass("active")){var s=i.find(".active:last a")[0],n=t.Event("show.bs.tab",{relatedTarget:s});if(e.trigger(n),!n.isDefaultPrevented()){var r=t(o);this.activate(e.closest("li"),i),this.activate(r,r.parent(),function(){e.trigger({type:"shown.bs.tab",relatedTarget:s})})}}},i.prototype.activate=function(e,i,o){function s(){n.removeClass("active").find("> .dropdown-menu > .active").removeClass("active"),e.addClass("active"),r?(e[0].offsetWidth,e.addClass("in")):e.removeClass("fade"),e.parent(".dropdown-menu")&&e.closest("li.dropdown").addClass("active"),o&&o()}var n=i.find("> .active"),r=o&&t.support.transition&&n.hasClass("fade");r?n.one("bsTransitionEnd",s).emulateTransitionEnd(150):s(),n.removeClass("in")};var o=t.fn.tab;t.fn.tab=e,t.fn.tab.Constructor=i,t.fn.tab.noConflict=function(){return t.fn.tab=o,this},t(document).on("click.bs.tab.data-api",'[data-toggle="tab"], [data-toggle="pill"]',function(i){i.preventDefault(),e.call(t(this),"show")})}(jQuery),+function(t){"use strict";function e(e){return this.each(function(){var o=t(this),s=o.data("bs.affix"),n="object"==typeof e&&e;s||o.data("bs.affix",s=new i(this,n)),"string"==typeof e&&s[e]()})}var i=function(e,o){this.options=t.extend({},i.DEFAULTS,o),this.$target=t(this.options.target).on("scroll.bs.affix.data-api",t.proxy(this.checkPosition,this)).on("click.bs.affix.data-api",t.proxy(this.checkPositionWithEventLoop,this)),this.$element=t(e),this.affixed=this.unpin=this.pinnedOffset=null,this.checkPosition()};i.VERSION="3.2.0",i.RESET="affix affix-top affix-bottom",i.DEFAULTS={offset:0,target:window},i.prototype.getPinnedOffset=function(){if(this.pinnedOffset)return this.pinnedOffset;this.$element.removeClass(i.RESET).addClass("affix");var t=this.$target.scrollTop(),e=this.$element.offset();return this.pinnedOffset=e.top-t},i.prototype.checkPositionWithEventLoop=function(){setTimeout(t.proxy(this.checkPosition,this),1)},i.prototype.checkPosition=function(){if(this.$element.is(":visible")){var e=t(document).height(),o=this.$target.scrollTop(),s=this.$element.offset(),n=this.options.offset,r=n.top,a=n.bottom;"object"!=typeof n&&(a=r=n),"function"==typeof r&&(r=n.top(this.$element)),"function"==typeof a&&(a=n.bottom(this.$element));var l=null!=this.unpin&&o+this.unpin<=s.top?!1:null!=a&&s.top+this.$element.height()>=e-a?"bottom":null!=r&&r>=o?"top":!1;if(this.affixed!==l){null!=this.unpin&&this.$element.css("top","");var h="affix"+(l?"-"+l:""),p=t.Event(h+".bs.affix");this.$element.trigger(p),p.isDefaultPrevented()||(this.affixed=l,this.unpin="bottom"==l?this.getPinnedOffset():null,this.$element.removeClass(i.RESET).addClass(h).trigger(t.Event(h.replace("affix","affixed"))),"bottom"==l&&this.$element.offset({top:e-this.$element.height()-a}))}}};var o=t.fn.affix;t.fn.affix=e,t.fn.affix.Constructor=i,t.fn.affix.noConflict=function(){return t.fn.affix=o,this},t(window).on("load",function(){t('[data-spy="affix"]').each(function(){var i=t(this),o=i.data();o.offset=o.offset||{},o.offsetBottom&&(o.offset.bottom=o.offsetBottom),o.offsetTop&&(o.offset.top=o.offsetTop),e.call(i,o)})})}(jQuery),+function(t){"use strict";function e(e){return this.each(function(){var o=t(this),s=o.data("bs.collapse"),n=t.extend({},i.DEFAULTS,o.data(),"object"==typeof e&&e);!s&&n.toggle&&"show"==e&&(e=!e),s||o.data("bs.collapse",s=new i(this,n)),"string"==typeof e&&s[e]()})}var i=function(e,o){this.$element=t(e),this.options=t.extend({},i.DEFAULTS,o),this.transitioning=null,this.options.parent&&(this.$parent=t(this.options.parent)),this.options.toggle&&this.toggle()};i.VERSION="3.2.0",i.DEFAULTS={toggle:!0},i.prototype.dimension=function(){var t=this.$element.hasClass("width");return t?"width":"height"},i.prototype.show=function(){if(!this.transitioning&&!this.$element.hasClass("in")){var i=t.Event("show.bs.collapse");if(this.$element.trigger(i),!i.isDefaultPrevented()){var o=this.$parent&&this.$parent.find("> .panel > .in");if(o&&o.length){var s=o.data("bs.collapse");if(s&&s.transitioning)return;e.call(o,"hide"),s||o.data("bs.collapse",null)}var n=this.dimension();this.$element.removeClass("collapse").addClass("collapsing")[n](0),this.transitioning=1;var r=function(){this.$element.removeClass("collapsing").addClass("collapse in")[n](""),this.transitioning=0,this.$element.trigger("shown.bs.collapse")};if(!t.support.transition)return r.call(this);var a=t.camelCase(["scroll",n].join("-"));this.$element.one("bsTransitionEnd",t.proxy(r,this)).emulateTransitionEnd(350)[n](this.$element[0][a])}}},i.prototype.hide=function(){if(!this.transitioning&&this.$element.hasClass("in")){var e=t.Event("hide.bs.collapse");if(this.$element.trigger(e),!e.isDefaultPrevented()){var i=this.dimension();this.$element[i](this.$element[i]())[0].offsetHeight,this.$element.addClass("collapsing").removeClass("collapse").removeClass("in"),this.transitioning=1;var o=function(){this.transitioning=0,this.$element.trigger("hidden.bs.collapse").removeClass("collapsing").addClass("collapse")};return t.support.transition?void this.$element[i](0).one("bsTransitionEnd",t.proxy(o,this)).emulateTransitionEnd(350):o.call(this)}}},i.prototype.toggle=function(){this[this.$element.hasClass("in")?"hide":"show"]()};var o=t.fn.collapse;t.fn.collapse=e,t.fn.collapse.Constructor=i,t.fn.collapse.noConflict=function(){return t.fn.collapse=o,this},t(document).on("click.bs.collapse.data-api",'[data-toggle="collapse"]',function(i){var o,s=t(this),n=s.attr("data-target")||i.preventDefault()||(o=s.attr("href"))&&o.replace(/.*(?=#[^\s]+$)/,""),r=t(n),a=r.data("bs.collapse"),l=a?"toggle":s.data(),h=s.attr("data-parent"),p=h&&t(h);a&&a.transitioning||(p&&p.find('[data-toggle="collapse"][data-parent="'+h+'"]').not(s).addClass("collapsed"),s[r.hasClass("in")?"addClass":"removeClass"]("collapsed")),e.call(r,l)})}(jQuery),+function(t){"use strict";function e(i,o){var s=t.proxy(this.process,this);this.$body=t("body"),this.$scrollElement=t(t(i).is("body")?window:i),this.options=t.extend({},e.DEFAULTS,o),this.selector=(this.options.target||"")+" .nav li > a",this.offsets=[],this.targets=[],this.activeTarget=null,this.scrollHeight=0,this.$scrollElement.on("scroll.bs.scrollspy",s),this.refresh(),this.process()}function i(i){return this.each(function(){var o=t(this),s=o.data("bs.scrollspy"),n="object"==typeof i&&i;s||o.data("bs.scrollspy",s=new e(this,n)),"string"==typeof i&&s[i]()})}e.VERSION="3.2.0",e.DEFAULTS={offset:10},e.prototype.getScrollHeight=function(){return this.$scrollElement[0].scrollHeight||Math.max(this.$body[0].scrollHeight,document.documentElement.scrollHeight)},e.prototype.refresh=function(){var e="offset",i=0;t.isWindow(this.$scrollElement[0])||(e="position",i=this.$scrollElement.scrollTop()),this.offsets=[],this.targets=[],this.scrollHeight=this.getScrollHeight();var o=this;this.$body.find(this.selector).map(function(){var o=t(this),s=o.data("target")||o.attr("href"),n=/^#./.test(s)&&t(s);return n&&n.length&&n.is(":visible")&&[[n[e]().top+i,s]]||null}).sort(function(t,e){return t[0]-e[0]}).each(function(){o.offsets.push(this[0]),o.targets.push(this[1])})},e.prototype.process=function(){var t,e=this.$scrollElement.scrollTop()+this.options.offset,i=this.getScrollHeight(),o=this.options.offset+i-this.$scrollElement.height(),s=this.offsets,n=this.targets,r=this.activeTarget;if(this.scrollHeight!=i&&this.refresh(),e>=o)return r!=(t=n[n.length-1])&&this.activate(t);if(r&&e<=s[0])return r!=(t=n[0])&&this.activate(t);for(t=s.length;t--;)r!=n[t]&&e>=s[t]&&(!s[t+1]||e<=s[t+1])&&this.activate(n[t])},e.prototype.activate=function(e){this.activeTarget=e,t(this.selector).parentsUntil(this.options.target,".active").removeClass("active");var i=this.selector+'[data-target="'+e+'"],'+this.selector+'[href="'+e+'"]',o=t(i).parents("li").addClass("active");o.parent(".dropdown-menu").length&&(o=o.closest("li.dropdown").addClass("active")),o.trigger("activate.bs.scrollspy")};var o=t.fn.scrollspy;t.fn.scrollspy=i,t.fn.scrollspy.Constructor=e,t.fn.scrollspy.noConflict=function(){return t.fn.scrollspy=o,this},t(window).on("load.bs.scrollspy.data-api",function(){t('[data-spy="scroll"]').each(function(){var e=t(this);i.call(e,e.data())})})}(jQuery),+function(t){"use strict";function e(){var t=document.createElement("bootstrap"),e={WebkitTransition:"webkitTransitionEnd",MozTransition:"transitionend",OTransition:"oTransitionEnd otransitionend",transition:"transitionend"};for(var i in e)if(void 0!==t.style[i])return{end:e[i]};return!1}t.fn.emulateTransitionEnd=function(e){var i=!1,o=this;t(this).one("bsTransitionEnd",function(){i=!0});var s=function(){i||t(o).trigger(t.support.transition.end)};return setTimeout(s,e),this},t(function(){t.support.transition=e(),t.support.transition&&(t.event.special.bsTransitionEnd={bindType:t.support.transition.end,delegateType:t.support.transition.end,handle:function(e){return t(e.target).is(this)?e.handleObj.handler.apply(this,arguments):void 0}})})}(jQuery);
-
* ========================================================================
+
-
* Copyright 2011-2014 Twitter, Inc.
+
-
* Licensed under MIT (https://github.com/twbs/bootstrap/blob/master/LICENSE)
+
-
* ======================================================================== */
+
-
 
+
-
 
+
-
+function ($) {
+
-
  'use strict';
+
-
 
+
-
  // CSS TRANSITION SUPPORT (Shoutout: http://www.modernizr.com/)
+
-
  // ============================================================
+
-
 
+
-
  function transitionEnd() {
+
-
    var el = document.createElement('bootstrap')
+
-
 
+
-
    var transEndEventNames = {
+
-
      WebkitTransition : 'webkitTransitionEnd',
+
-
      MozTransition    : 'transitionend',
+
-
      OTransition      : 'oTransitionEnd otransitionend',
+
-
      transition      : 'transitionend'
+
-
    }
+
-
 
+
-
    for (var name in transEndEventNames) {
+
-
      if (el.style[name] !== undefined) {
+
-
        return { end: transEndEventNames[name] }
+
-
      }
+
-
    }
+
-
 
+
-
    return false // explicit for ie8 (  ._.)
+
-
  }
+
-
 
+
-
  // http://blog.alexmaccaw.com/css-transitions
+
-
  $.fn.emulateTransitionEnd = function (duration) {
+
-
    var called = false
+
-
    var $el = this
+
-
    $(this).one('bsTransitionEnd', function () { called = true })
+
-
    var callback = function () { if (!called) $($el).trigger($.support.transition.end) }
+
-
    setTimeout(callback, duration)
+
-
    return this
+
-
  }
+
-
 
+
-
  $(function () {
+
-
    $.support.transition = transitionEnd()
+
-
 
+
-
    if (!$.support.transition) return
+
-
 
+
-
    $.event.special.bsTransitionEnd = {
+
-
      bindType: $.support.transition.end,
+
-
      delegateType: $.support.transition.end,
+
-
      handle: function (e) {
+
-
        if ($(e.target).is(this)) return e.handleObj.handler.apply(this, arguments)
+
-
      }
+
-
    }
+
-
  })
+
-
 
+
-
}(jQuery);
+
-
 
+
-
/* ========================================================================
+
-
  * Bootstrap: alert.js v3.2.0
+
-
* http://getbootstrap.com/javascript/#alerts
+
-
* ========================================================================
+
-
* Copyright 2011-2014 Twitter, Inc.
+
-
* Licensed under MIT (https://github.com/twbs/bootstrap/blob/master/LICENSE)
+
-
* ======================================================================== */
+
-
 
+
-
 
+
-
+function ($) {
+
-
  'use strict';
+
-
 
+
-
  // ALERT CLASS DEFINITION
+
-
  // ======================
+
-
 
+
-
  var dismiss = '[data-dismiss="alert"]'
+
-
  var Alert  = function (el) {
+
-
    $(el).on('click', dismiss, this.close)
+
-
  }
+
-
 
+
-
  Alert.VERSION = '3.2.0'
+
-
 
+
-
  Alert.prototype.close = function (e) {
+
-
    var $this    = $(this)
+
-
    var selector = $this.attr('data-target')
+
-
 
+
-
    if (!selector) {
+
-
      selector = $this.attr('href')
+
-
      selector = selector && selector.replace(/.*(?=#[^\s]*$)/, '') // strip for ie7
+
-
    }
+
-
 
+
-
    var $parent = $(selector)
+
-
 
+
-
    if (e) e.preventDefault()
+
-
 
+
-
    if (!$parent.length) {
+
-
      $parent = $this.hasClass('alert') ? $this : $this.parent()
+
-
    }
+
-
 
+
-
    $parent.trigger(e = $.Event('close.bs.alert'))
+
-
 
+
-
    if (e.isDefaultPrevented()) return
+
-
 
+
-
    $parent.removeClass('in')
+
-
 
+
-
    function removeElement() {
+
-
      // detach from parent, fire event then clean up data
+
-
      $parent.detach().trigger('closed.bs.alert').remove()
+
-
    }
+
-
 
+
-
    $.support.transition && $parent.hasClass('fade') ?
+
-
      $parent
+
-
        .one('bsTransitionEnd', removeElement)
+
-
        .emulateTransitionEnd(150) :
+
-
      removeElement()
+
-
  }
+
-
 
+
-
 
+
-
  // ALERT PLUGIN DEFINITION
+
-
  // =======================
+
-
 
+
-
  function Plugin(option) {
+
-
    return this.each(function () {
+
-
      var $this = $(this)
+
-
      var data  = $this.data('bs.alert')
+
-
 
+
-
      if (!data) $this.data('bs.alert', (data = new Alert(this)))
+
-
      if (typeof option == 'string') data[option].call($this)
+
-
    })
+
-
  }
+
-
 
+
-
  var old = $.fn.alert
+
-
 
+
-
  $.fn.alert            = Plugin
+
-
  $.fn.alert.Constructor = Alert
+
-
 
+
-
 
+
-
  // ALERT NO CONFLICT
+
-
  // =================
+
-
 
+
-
  $.fn.alert.noConflict = function () {
+
-
    $.fn.alert = old
+
-
    return this
+
-
  }
+
-
 
+
-
 
+
-
  // ALERT DATA-API
+
-
  // ==============
+
-
 
+
-
  $(document).on('click.bs.alert.data-api', dismiss, Alert.prototype.close)
+
-
 
+
-
}(jQuery);
+
-
 
+
-
/* ========================================================================
+
-
* Bootstrap: button.js v3.2.0
+
-
* http://getbootstrap.com/javascript/#buttons
+
-
* ========================================================================
+
-
* Copyright 2011-2014 Twitter, Inc.
+
-
* Licensed under MIT (https://github.com/twbs/bootstrap/blob/master/LICENSE)
+
-
* ======================================================================== */
+
-
 
+
-
 
+
-
+function ($) {
+
-
  'use strict';
+
-
 
+
-
  // BUTTON PUBLIC CLASS DEFINITION
+
-
  // ==============================
+
-
 
+
-
  var Button = function (element, options) {
+
-
    this.$element  = $(element)
+
-
    this.options  = $.extend({}, Button.DEFAULTS, options)
+
-
    this.isLoading = false
+
-
  }
+
-
 
+
-
  Button.VERSION  = '3.2.0'
+
-
 
+
-
  Button.DEFAULTS = {
+
-
    loadingText: 'loading...'
+
-
  }
+
-
 
+
-
  Button.prototype.setState = function (state) {
+
-
    var d    = 'disabled'
+
-
    var $el  = this.$element
+
-
    var val  = $el.is('input') ? 'val' : 'html'
+
-
    var data = $el.data()
+
-
 
+
-
    state = state + 'Text'
+
-
 
+
-
    if (data.resetText == null) $el.data('resetText', $el[val]())
+
-
 
+
-
    $el[val](data[state] == null ? this.options[state] : data[state])
+
-
 
+
-
    // push to event loop to allow forms to submit
+
-
    setTimeout($.proxy(function () {
+
-
      if (state == 'loadingText') {
+
-
        this.isLoading = true
+
-
        $el.addClass(d).attr(d, d)
+
-
      } else if (this.isLoading) {
+
-
        this.isLoading = false
+
-
        $el.removeClass(d).removeAttr(d)
+
-
      }
+
-
    }, this), 0)
+
-
  }
+
-
 
+
-
  Button.prototype.toggle = function () {
+
-
    var changed = true
+
-
    var $parent = this.$element.closest('[data-toggle="buttons"]')
+
-
 
+
-
    if ($parent.length) {
+
-
      var $input = this.$element.find('input')
+
-
      if ($input.prop('type') == 'radio') {
+
-
        if ($input.prop('checked') && this.$element.hasClass('active')) changed = false
+
-
        else $parent.find('.active').removeClass('active')
+
-
      }
+
-
      if (changed) $input.prop('checked', !this.$element.hasClass('active')).trigger('change')
+
-
    }
+
-
 
+
-
    if (changed) this.$element.toggleClass('active')
+
-
  }
+
-
 
+
-
 
+
-
  // BUTTON PLUGIN DEFINITION
+
-
  // ========================
+
-
 
+
-
  function Plugin(option) {
+
-
    return this.each(function () {
+
-
      var $this  = $(this)
+
-
      var data    = $this.data('bs.button')
+
-
      var options = typeof option == 'object' && option
+
-
 
+
-
      if (!data) $this.data('bs.button', (data = new Button(this, options)))
+
-
 
+
-
      if (option == 'toggle') data.toggle()
+
-
      else if (option) data.setState(option)
+
-
    })
+
-
  }
+
-
 
+
-
  var old = $.fn.button
+
-
 
+
-
  $.fn.button            = Plugin
+
-
  $.fn.button.Constructor = Button
+
-
 
+
-
 
+
-
  // BUTTON NO CONFLICT
+
-
  // ==================
+
-
 
+
-
  $.fn.button.noConflict = function () {
+
-
    $.fn.button = old
+
-
    return this
+
-
  }
+
-
 
+
-
 
+
-
  // BUTTON DATA-API
+
-
  // ===============
+
-
 
+
-
  $(document).on('click.bs.button.data-api', '[data-toggle^="button"]', function (e) {
+
-
    var $btn = $(e.target)
+
-
    if (!$btn.hasClass('btn')) $btn = $btn.closest('.btn')
+
-
    Plugin.call($btn, 'toggle')
+
-
    e.preventDefault()
+
-
  })
+
-
 
+
-
}(jQuery);
+
-
 
+
-
/* ========================================================================
+
-
* Bootstrap: carousel.js v3.2.0
+
-
* http://getbootstrap.com/javascript/#carousel
+
-
* ========================================================================
+
-
* Copyright 2011-2014 Twitter, Inc.
+
-
* Licensed under MIT (https://github.com/twbs/bootstrap/blob/master/LICENSE)
+
-
* ======================================================================== */
+
-
 
+
-
 
+
-
+function ($) {
+
-
  'use strict';
+
-
 
+
-
  // CAROUSEL CLASS DEFINITION
+
-
  // =========================
+
-
 
+
-
  var Carousel = function (element, options) {
+
-
    this.$element    = $(element).on('keydown.bs.carousel', $.proxy(this.keydown, this))
+
-
    this.$indicators = this.$element.find('.carousel-indicators')
+
-
    this.options    = options
+
-
    this.paused      =
+
-
    this.sliding    =
+
-
    this.interval    =
+
-
    this.$active    =
+
-
    this.$items      = null
+
-
 
+
-
    this.options.pause == 'hover' && this.$element
+
-
      .on('mouseenter.bs.carousel', $.proxy(this.pause, this))
+
-
      .on('mouseleave.bs.carousel', $.proxy(this.cycle, this))
+
-
  }
+
-
 
+
-
  Carousel.VERSION  = '3.2.0'
+
-
 
+
-
  Carousel.DEFAULTS = {
+
-
    interval: 5000,
+
-
    pause: 'hover',
+
-
    wrap: true
+
-
  }
+
-
 
+
-
  Carousel.prototype.keydown = function (e) {
+
-
    switch (e.which) {
+
-
      case 37: this.prev(); break
+
-
      case 39: this.next(); break
+
-
      default: return
+
-
    }
+
-
 
+
-
    e.preventDefault()
+
-
  }
+
-
 
+
-
  Carousel.prototype.cycle = function (e) {
+
-
    e || (this.paused = false)
+
-
 
+
-
    this.interval && clearInterval(this.interval)
+
-
 
+
-
    this.options.interval
+
-
      && !this.paused
+
-
      && (this.interval = setInterval($.proxy(this.next, this), this.options.interval))
+
-
 
+
-
    return this
+
-
  }
+
-
 
+
-
  Carousel.prototype.getItemIndex = function (item) {
+
-
    this.$items = item.parent().children('.item')
+
-
    return this.$items.index(item || this.$active)
+
-
  }
+
-
 
+
-
  Carousel.prototype.to = function (pos) {
+
-
    var that        = this
+
-
    var activeIndex = this.getItemIndex(this.$active = this.$element.find('.item.active'))
+
-
 
+
-
    if (pos > (this.$items.length - 1) || pos < 0) return
+
-
 
+
-
    if (this.sliding)      return this.$element.one('slid.bs.carousel', function () { that.to(pos) }) // yes, "slid"
+
-
    if (activeIndex == pos) return this.pause().cycle()
+
-
 
+
-
    return this.slide(pos > activeIndex ? 'next' : 'prev', $(this.$items[pos]))
+
-
  }
+
-
 
+
-
  Carousel.prototype.pause = function (e) {
+
-
    e || (this.paused = true)
+
-
 
+
-
    if (this.$element.find('.next, .prev').length && $.support.transition) {
+
-
      this.$element.trigger($.support.transition.end)
+
-
      this.cycle(true)
+
-
    }
+
-
 
+
-
    this.interval = clearInterval(this.interval)
+
-
 
+
-
    return this
+
-
  }
+
-
 
+
-
  Carousel.prototype.next = function () {
+
-
    if (this.sliding) return
+
-
    return this.slide('next')
+
-
  }
+
-
 
+
-
  Carousel.prototype.prev = function () {
+
-
    if (this.sliding) return
+
-
    return this.slide('prev')
+
-
  }
+
-
 
+
-
  Carousel.prototype.slide = function (type, next) {
+
-
    var $active  = this.$element.find('.item.active')
+
-
    var $next    = next || $active[type]()
+
-
    var isCycling = this.interval
+
-
    var direction = type == 'next' ? 'left' : 'right'
+
-
    var fallback  = type == 'next' ? 'first' : 'last'
+
-
    var that      = this
+
-
 
+
-
    if (!$next.length) {
+
-
      if (!this.options.wrap) return
+
-
      $next = this.$element.find('.item')[fallback]()
+
-
    }
+
-
 
+
-
    if ($next.hasClass('active')) return (this.sliding = false)
+
-
 
+
-
    var relatedTarget = $next[0]
+
-
    var slideEvent = $.Event('slide.bs.carousel', {
+
-
      relatedTarget: relatedTarget,
+
-
      direction: direction
+
-
    })
+
-
    this.$element.trigger(slideEvent)
+
-
    if (slideEvent.isDefaultPrevented()) return
+
-
 
+
-
    this.sliding = true
+
-
 
+
-
    isCycling && this.pause()
+
-
 
+
-
    if (this.$indicators.length) {
+
-
      this.$indicators.find('.active').removeClass('active')
+
-
      var $nextIndicator = $(this.$indicators.children()[this.getItemIndex($next)])
+
-
      $nextIndicator && $nextIndicator.addClass('active')
+
-
    }
+
-
 
+
-
    var slidEvent = $.Event('slid.bs.carousel', { relatedTarget: relatedTarget, direction: direction }) // yes, "slid"
+
-
    if ($.support.transition && this.$element.hasClass('slide')) {
+
-
      $next.addClass(type)
+
-
      $next[0].offsetWidth // force reflow
+
-
      $active.addClass(direction)
+
-
      $next.addClass(direction)
+
-
      $active
+
-
        .one('bsTransitionEnd', function () {
+
-
          $next.removeClass([type, direction].join(' ')).addClass('active')
+
-
          $active.removeClass(['active', direction].join(' '))
+
-
          that.sliding = false
+
-
          setTimeout(function () {
+
-
            that.$element.trigger(slidEvent)
+
-
          }, 0)
+
-
        })
+
-
        .emulateTransitionEnd($active.css('transition-duration').slice(0, -1) * 1000)
+
-
    } else {
+
-
      $active.removeClass('active')
+
-
      $next.addClass('active')
+
-
      this.sliding = false
+
-
      this.$element.trigger(slidEvent)
+
-
    }
+
-
 
+
-
    isCycling && this.cycle()
+
-
 
+
-
    return this
+
-
  }
+
-
 
+
-
 
+
-
  // CAROUSEL PLUGIN DEFINITION
+
-
  // ==========================
+
-
 
+
-
  function Plugin(option) {
+
-
    return this.each(function () {
+
-
      var $this  = $(this)
+
-
      var data    = $this.data('bs.carousel')
+
-
      var options = $.extend({}, Carousel.DEFAULTS, $this.data(), typeof option == 'object' && option)
+
-
      var action  = typeof option == 'string' ? option : options.slide
+
-
 
+
-
      if (!data) $this.data('bs.carousel', (data = new Carousel(this, options)))
+
-
      if (typeof option == 'number') data.to(option)
+
-
      else if (action) data[action]()
+
-
      else if (options.interval) data.pause().cycle()
+
-
    })
+
-
  }
+
-
 
+
-
  var old = $.fn.carousel
+
-
 
+
-
  $.fn.carousel            = Plugin
+
-
  $.fn.carousel.Constructor = Carousel
+
-
 
+
-
 
+
-
  // CAROUSEL NO CONFLICT
+
-
  // ====================
+
-
 
+
-
  $.fn.carousel.noConflict = function () {
+
-
    $.fn.carousel = old
+
-
    return this
+
-
  }
+
-
 
+
-
 
+
-
  // CAROUSEL DATA-API
+
-
  // =================
+
-
 
+
-
  $(document).on('click.bs.carousel.data-api', '[data-slide], [data-slide-to]', function (e) {
+
-
    var href
+
-
    var $this  = $(this)
+
-
    var $target = $($this.attr('data-target') || (href = $this.attr('href')) && href.replace(/.*(?=#[^\s]+$)/, '')) // strip for ie7
+
-
    if (!$target.hasClass('carousel')) return
+
-
    var options = $.extend({}, $target.data(), $this.data())
+
-
    var slideIndex = $this.attr('data-slide-to')
+
-
    if (slideIndex) options.interval = false
+
-
 
+
-
    Plugin.call($target, options)
+
-
 
+
-
    if (slideIndex) {
+
-
      $target.data('bs.carousel').to(slideIndex)
+
-
    }
+
-
 
+
-
    e.preventDefault()
+
-
  })
+
-
 
+
-
  $(window).on('load', function () {
+
-
    $('[data-ride="carousel"]').each(function () {
+
-
      var $carousel = $(this)
+
-
      Plugin.call($carousel, $carousel.data())
+
-
    })
+
-
  })
+
-
 
+
-
}(jQuery);
+
-
 
+
-
/* ========================================================================
+
-
* Bootstrap: collapse.js v3.2.0
+
-
* http://getbootstrap.com/javascript/#collapse
+
-
* ========================================================================
+
-
* Copyright 2011-2014 Twitter, Inc.
+
-
* Licensed under MIT (https://github.com/twbs/bootstrap/blob/master/LICENSE)
+
-
* ======================================================================== */
+
-
 
+
-
 
+
-
+function ($) {
+
-
  'use strict';
+
-
 
+
-
  // COLLAPSE PUBLIC CLASS DEFINITION
+
-
  // ================================
+
-
 
+
-
  var Collapse = function (element, options) {
+
-
    this.$element      = $(element)
+
-
    this.options      = $.extend({}, Collapse.DEFAULTS, options)
+
-
    this.transitioning = null
+
-
 
+
-
    if (this.options.parent) this.$parent = $(this.options.parent)
+
-
    if (this.options.toggle) this.toggle()
+
-
  }
+
-
 
+
-
  Collapse.VERSION  = '3.2.0'
+
-
 
+
-
  Collapse.DEFAULTS = {
+
-
    toggle: true
+
-
  }
+
-
 
+
-
  Collapse.prototype.dimension = function () {
+
-
    var hasWidth = this.$element.hasClass('width')
+
-
    return hasWidth ? 'width' : 'height'
+
-
  }
+
-
 
+
-
  Collapse.prototype.show = function () {
+
-
    if (this.transitioning || this.$element.hasClass('in')) return
+
-
 
+
-
    var startEvent = $.Event('show.bs.collapse')
+
-
    this.$element.trigger(startEvent)
+
-
    if (startEvent.isDefaultPrevented()) return
+
-
 
+
-
    var actives = this.$parent && this.$parent.find('> .panel > .in')
+
-
 
+
-
    if (actives && actives.length) {
+
-
      var hasData = actives.data('bs.collapse')
+
-
      if (hasData && hasData.transitioning) return
+
-
      Plugin.call(actives, 'hide')
+
-
      hasData || actives.data('bs.collapse', null)
+
-
    }
+
-
 
+
-
    var dimension = this.dimension()
+
-
 
+
-
    this.$element
+
-
      .removeClass('collapse')
+
-
      .addClass('collapsing')[dimension](0)
+
-
 
+
-
    this.transitioning = 1
+
-
 
+
-
    var complete = function () {
+
-
      this.$element
+
-
        .removeClass('collapsing')
+
-
        .addClass('collapse in')[dimension]('')
+
-
      this.transitioning = 0
+
-
      this.$element
+
-
        .trigger('shown.bs.collapse')
+
-
    }
+
-
 
+
-
    if (!$.support.transition) return complete.call(this)
+
-
 
+
-
    var scrollSize = $.camelCase(['scroll', dimension].join('-'))
+
-
 
+
-
    this.$element
+
-
      .one('bsTransitionEnd', $.proxy(complete, this))
+
-
      .emulateTransitionEnd(350)[dimension](this.$element[0][scrollSize])
+
-
  }
+
-
 
+
-
  Collapse.prototype.hide = function () {
+
-
    if (this.transitioning || !this.$element.hasClass('in')) return
+
-
 
+
-
    var startEvent = $.Event('hide.bs.collapse')
+
-
    this.$element.trigger(startEvent)
+
-
    if (startEvent.isDefaultPrevented()) return
+
-
 
+
-
    var dimension = this.dimension()
+
-
 
+
-
    this.$element[dimension](this.$element[dimension]())[0].offsetHeight
+
-
 
+
-
    this.$element
+
-
      .addClass('collapsing')
+
-
      .removeClass('collapse')
+
-
      .removeClass('in')
+
-
 
+
-
    this.transitioning = 1
+
-
 
+
-
    var complete = function () {
+
-
      this.transitioning = 0
+
-
      this.$element
+
-
        .trigger('hidden.bs.collapse')
+
-
        .removeClass('collapsing')
+
-
        .addClass('collapse')
+
-
    }
+
-
 
+
-
    if (!$.support.transition) return complete.call(this)
+
-
 
+
-
    this.$element
+
-
      [dimension](0)
+
-
      .one('bsTransitionEnd', $.proxy(complete, this))
+
-
      .emulateTransitionEnd(350)
+
-
  }
+
-
 
+
-
  Collapse.prototype.toggle = function () {
+
-
    this[this.$element.hasClass('in') ? 'hide' : 'show']()
+
-
  }
+
-
 
+
-
 
+
-
  // COLLAPSE PLUGIN DEFINITION
+
-
  // ==========================
+
-
 
+
-
  function Plugin(option) {
+
-
    return this.each(function () {
+
-
      var $this  = $(this)
+
-
      var data    = $this.data('bs.collapse')
+
-
      var options = $.extend({}, Collapse.DEFAULTS, $this.data(), typeof option == 'object' && option)
+
-
 
+
-
      if (!data && options.toggle && option == 'show') option = !option
+
-
      if (!data) $this.data('bs.collapse', (data = new Collapse(this, options)))
+
-
      if (typeof option == 'string') data[option]()
+
-
    })
+
-
  }
+
-
 
+
-
  var old = $.fn.collapse
+
-
 
+
-
  $.fn.collapse            = Plugin
+
-
  $.fn.collapse.Constructor = Collapse
+
-
 
+
-
 
+
-
  // COLLAPSE NO CONFLICT
+
-
  // ====================
+
-
 
+
-
  $.fn.collapse.noConflict = function () {
+
-
    $.fn.collapse = old
+
-
    return this
+
-
  }
+
-
 
+
-
 
+
-
  // COLLAPSE DATA-API
+
-
  // =================
+
-
 
+
-
  $(document).on('click.bs.collapse.data-api', '[data-toggle="collapse"]', function (e) {
+
-
    var href
+
-
    var $this  = $(this)
+
-
    var target  = $this.attr('data-target')
+
-
        || e.preventDefault()
+
-
        || (href = $this.attr('href')) && href.replace(/.*(?=#[^\s]+$)/, '') // strip for ie7
+
-
    var $target = $(target)
+
-
    var data    = $target.data('bs.collapse')
+
-
    var option  = data ? 'toggle' : $this.data()
+
-
    var parent  = $this.attr('data-parent')
+
-
    var $parent = parent && $(parent)
+
-
 
+
-
    if (!data || !data.transitioning) {
+
-
      if ($parent) $parent.find('[data-toggle="collapse"][data-parent="' + parent + '"]').not($this).addClass('collapsed')
+
-
      $this[$target.hasClass('in') ? 'addClass' : 'removeClass']('collapsed')
+
-
    }
+
-
 
+
-
    Plugin.call($target, option)
+
-
  })
+
-
 
+
-
}(jQuery);
+
-
 
+
-
/* ========================================================================
+
-
* Bootstrap: dropdown.js v3.2.0
+
-
* http://getbootstrap.com/javascript/#dropdowns
+
-
* ========================================================================
+
-
* Copyright 2011-2014 Twitter, Inc.
+
-
* Licensed under MIT (https://github.com/twbs/bootstrap/blob/master/LICENSE)
+
-
* ======================================================================== */
+
-
 
+
-
 
+
-
+function ($) {
+
-
  'use strict';
+
-
 
+
-
  // DROPDOWN CLASS DEFINITION
+
-
  // =========================
+
-
 
+
-
  var backdrop = '.dropdown-backdrop'
+
-
  var toggle  = '[data-toggle="dropdown"]'
+
-
  var Dropdown = function (element) {
+
-
    $(element).on('click.bs.dropdown', this.toggle)
+
-
  }
+
-
 
+
-
  Dropdown.VERSION = '3.2.0'
+
-
 
+
-
  Dropdown.prototype.toggle = function (e) {
+
-
    var $this = $(this)
+
-
 
+
-
    if ($this.is('.disabled, :disabled')) return
+
-
 
+
-
    var $parent  = getParent($this)
+
-
    var isActive = $parent.hasClass('open')
+
-
 
+
-
    clearMenus()
+
-
 
+
-
    if (!isActive) {
+
-
      if ('ontouchstart' in document.documentElement && !$parent.closest('.navbar-nav').length) {
+
-
        // if mobile we use a backdrop because click events don't delegate
+
-
        $('<div class="dropdown-backdrop"/>').insertAfter($(this)).on('click', clearMenus)
+
-
      }
+
-
 
+
-
      var relatedTarget = { relatedTarget: this }
+
-
      $parent.trigger(e = $.Event('show.bs.dropdown', relatedTarget))
+
-
 
+
-
      if (e.isDefaultPrevented()) return
+
-
 
+
-
      $this.trigger('focus')
+
-
 
+
-
      $parent
+
-
        .toggleClass('open')
+
-
        .trigger('shown.bs.dropdown', relatedTarget)
+
-
    }
+
-
 
+
-
    return false
+
-
  }
+
-
 
+
-
  Dropdown.prototype.keydown = function (e) {
+
-
    if (!/(38|40|27)/.test(e.keyCode)) return
+
-
 
+
-
    var $this = $(this)
+
-
 
+
-
    e.preventDefault()
+
-
    e.stopPropagation()
+
-
 
+
-
    if ($this.is('.disabled, :disabled')) return
+
-
 
+
-
    var $parent  = getParent($this)
+
-
    var isActive = $parent.hasClass('open')
+
-
 
+
-
    if (!isActive || (isActive && e.keyCode == 27)) {
+
-
      if (e.which == 27) $parent.find(toggle).trigger('focus')
+
-
      return $this.trigger('click')
+
-
    }
+
-
 
+
-
    var desc = ' li:not(.divider):visible a'
+
-
    var $items = $parent.find('[role="menu"]' + desc + ', [role="listbox"]' + desc)
+
-
 
+
-
    if (!$items.length) return
+
-
 
+
-
    var index = $items.index($items.filter(':focus'))
+
-
 
+
-
    if (e.keyCode == 38 && index > 0)                index--                        // up
+
-
    if (e.keyCode == 40 && index < $items.length - 1) index++                        // down
+
-
    if (!~index)                                      index = 0
+
-
 
+
-
    $items.eq(index).trigger('focus')
+
-
  }
+
-
 
+
-
  function clearMenus(e) {
+
-
    if (e && e.which === 3) return
+
-
    $(backdrop).remove()
+
-
    $(toggle).each(function () {
+
-
      var $parent = getParent($(this))
+
-
      var relatedTarget = { relatedTarget: this }
+
-
      if (!$parent.hasClass('open')) return
+
-
      $parent.trigger(e = $.Event('hide.bs.dropdown', relatedTarget))
+
-
      if (e.isDefaultPrevented()) return
+
-
      $parent.removeClass('open').trigger('hidden.bs.dropdown', relatedTarget)
+
-
    })
+
-
  }
+
-
 
+
-
  function getParent($this) {
+
-
    var selector = $this.attr('data-target')
+
-
 
+
-
    if (!selector) {
+
-
      selector = $this.attr('href')
+
-
      selector = selector && /#[A-Za-z]/.test(selector) && selector.replace(/.*(?=#[^\s]*$)/, '') // strip for ie7
+
-
    }
+
-
 
+
-
    var $parent = selector && $(selector)
+
-
 
+
-
    return $parent && $parent.length ? $parent : $this.parent()
+
-
  }
+
-
 
+
-
 
+
-
  // DROPDOWN PLUGIN DEFINITION
+
-
  // ==========================
+
-
 
+
-
  function Plugin(option) {
+
-
    return this.each(function () {
+
-
      var $this = $(this)
+
-
      var data  = $this.data('bs.dropdown')
+
-
 
+
-
      if (!data) $this.data('bs.dropdown', (data = new Dropdown(this)))
+
-
      if (typeof option == 'string') data[option].call($this)
+
-
    })
+
-
  }
+
-
 
+
-
  var old = $.fn.dropdown
+
-
 
+
-
  $.fn.dropdown            = Plugin
+
-
  $.fn.dropdown.Constructor = Dropdown
+
-
 
+
-
 
+
-
  // DROPDOWN NO CONFLICT
+
-
  // ====================
+
-
 
+
-
  $.fn.dropdown.noConflict = function () {
+
-
    $.fn.dropdown = old
+
-
    return this
+
-
  }
+
-
 
+
-
 
+
-
  // APPLY TO STANDARD DROPDOWN ELEMENTS
+
-
  // ===================================
+
-
 
+
-
  $(document)
+
-
    .on('click.bs.dropdown.data-api', clearMenus)
+
-
    .on('click.bs.dropdown.data-api', '.dropdown form', function (e) { e.stopPropagation() })
+
-
    .on('click.bs.dropdown.data-api', toggle, Dropdown.prototype.toggle)
+
-
    .on('keydown.bs.dropdown.data-api', toggle + ', [role="menu"], [role="listbox"]', Dropdown.prototype.keydown)
+
-
 
+
-
}(jQuery);
+
-
 
+
-
/* ========================================================================
+
-
* Bootstrap: modal.js v3.2.0
+
-
* http://getbootstrap.com/javascript/#modals
+
-
* ========================================================================
+
-
* Copyright 2011-2014 Twitter, Inc.
+
-
* Licensed under MIT (https://github.com/twbs/bootstrap/blob/master/LICENSE)
+
-
* ======================================================================== */
+
-
 
+
-
 
+
-
+function ($) {
+
-
  'use strict';
+
-
 
+
-
  // MODAL CLASS DEFINITION
+
-
  // ======================
+
-
 
+
-
  var Modal = function (element, options) {
+
-
    this.options        = options
+
-
    this.$body          = $(document.body)
+
-
    this.$element      = $(element)
+
-
    this.$backdrop      =
+
-
    this.isShown        = null
+
-
    this.scrollbarWidth = 0
+
-
 
+
-
    if (this.options.remote) {
+
-
      this.$element
+
-
        .find('.modal-content')
+
-
        .load(this.options.remote, $.proxy(function () {
+
-
          this.$element.trigger('loaded.bs.modal')
+
-
        }, this))
+
-
    }
+
-
  }
+
-
 
+
-
  Modal.VERSION  = '3.2.0'
+
-
 
+
-
  Modal.DEFAULTS = {
+
-
    backdrop: true,
+
-
    keyboard: true,
+
-
    show: true
+
-
  }
+
-
 
+
-
  Modal.prototype.toggle = function (_relatedTarget) {
+
-
    return this.isShown ? this.hide() : this.show(_relatedTarget)
+
-
  }
+
-
 
+
-
  Modal.prototype.show = function (_relatedTarget) {
+
-
    var that = this
+
-
    var e    = $.Event('show.bs.modal', { relatedTarget: _relatedTarget })
+
-
 
+
-
    this.$element.trigger(e)
+
-
 
+
-
    if (this.isShown || e.isDefaultPrevented()) return
+
-
 
+
-
    this.isShown = true
+
-
 
+
-
    this.checkScrollbar()
+
-
    this.$body.addClass('modal-open')
+
-
 
+
-
    this.setScrollbar()
+
-
    this.escape()
+
-
 
+
-
    this.$element.on('click.dismiss.bs.modal', '[data-dismiss="modal"]', $.proxy(this.hide, this))
+
-
 
+
-
    this.backdrop(function () {
+
-
      var transition = $.support.transition && that.$element.hasClass('fade')
+
-
 
+
-
      if (!that.$element.parent().length) {
+
-
        that.$element.appendTo(that.$body) // don't move modals dom position
+
-
      }
+
-
 
+
-
      that.$element
+
-
        .show()
+
-
        .scrollTop(0)
+
-
 
+
-
      if (transition) {
+
-
        that.$element[0].offsetWidth // force reflow
+
-
      }
+
-
 
+
-
      that.$element
+
-
        .addClass('in')
+
-
        .attr('aria-hidden', false)
+
-
 
+
-
      that.enforceFocus()
+
-
 
+
-
      var e = $.Event('shown.bs.modal', { relatedTarget: _relatedTarget })
+
-
 
+
-
      transition ?
+
-
        that.$element.find('.modal-dialog') // wait for modal to slide in
+
-
          .one('bsTransitionEnd', function () {
+
-
            that.$element.trigger('focus').trigger(e)
+
-
          })
+
-
          .emulateTransitionEnd(300) :
+
-
        that.$element.trigger('focus').trigger(e)
+
-
    })
+
-
  }
+
-
 
+
-
  Modal.prototype.hide = function (e) {
+
-
    if (e) e.preventDefault()
+
-
 
+
-
    e = $.Event('hide.bs.modal')
+
-
 
+
-
    this.$element.trigger(e)
+
-
 
+
-
    if (!this.isShown || e.isDefaultPrevented()) return
+
-
 
+
-
    this.isShown = false
+
-
 
+
-
    this.$body.removeClass('modal-open')
+
-
 
+
-
    this.resetScrollbar()
+
-
    this.escape()
+
-
 
+
-
    $(document).off('focusin.bs.modal')
+
-
 
+
-
    this.$element
+
-
      .removeClass('in')
+
-
      .attr('aria-hidden', true)
+
-
      .off('click.dismiss.bs.modal')
+
-
 
+
-
    $.support.transition && this.$element.hasClass('fade') ?
+
-
      this.$element
+
-
        .one('bsTransitionEnd', $.proxy(this.hideModal, this))
+
-
        .emulateTransitionEnd(300) :
+
-
      this.hideModal()
+
-
  }
+
-
 
+
-
  Modal.prototype.enforceFocus = function () {
+
-
    $(document)
+
-
      .off('focusin.bs.modal') // guard against infinite focus loop
+
-
      .on('focusin.bs.modal', $.proxy(function (e) {
+
-
        if (this.$element[0] !== e.target && !this.$element.has(e.target).length) {
+
-
          this.$element.trigger('focus')
+
-
        }
+
-
      }, this))
+
-
  }
+
-
 
+
-
  Modal.prototype.escape = function () {
+
-
    if (this.isShown && this.options.keyboard) {
+
-
      this.$element.on('keyup.dismiss.bs.modal', $.proxy(function (e) {
+
-
        e.which == 27 && this.hide()
+
-
      }, this))
+
-
    } else if (!this.isShown) {
+
-
      this.$element.off('keyup.dismiss.bs.modal')
+
-
    }
+
-
  }
+
-
 
+
-
  Modal.prototype.hideModal = function () {
+
-
    var that = this
+
-
    this.$element.hide()
+
-
    this.backdrop(function () {
+
-
      that.$element.trigger('hidden.bs.modal')
+
-
    })
+
-
  }
+
-
 
+
-
  Modal.prototype.removeBackdrop = function () {
+
-
    this.$backdrop && this.$backdrop.remove()
+
-
    this.$backdrop = null
+
-
  }
+
-
 
+
-
  Modal.prototype.backdrop = function (callback) {
+
-
    var that = this
+
-
    var animate = this.$element.hasClass('fade') ? 'fade' : ''
+
-
 
+
-
    if (this.isShown && this.options.backdrop) {
+
-
      var doAnimate = $.support.transition && animate
+
-
 
+
-
      this.$backdrop = $('<div class="modal-backdrop ' + animate + '" />')
+
-
        .appendTo(this.$body)
+
-
 
+
-
      this.$element.on('click.dismiss.bs.modal', $.proxy(function (e) {
+
-
        if (e.target !== e.currentTarget) return
+
-
        this.options.backdrop == 'static'
+
-
          ? this.$element[0].focus.call(this.$element[0])
+
-
          : this.hide.call(this)
+
-
      }, this))
+
-
 
+
-
      if (doAnimate) this.$backdrop[0].offsetWidth // force reflow
+
-
 
+
-
      this.$backdrop.addClass('in')
+
-
 
+
-
      if (!callback) return
+
-
 
+
-
      doAnimate ?
+
-
        this.$backdrop
+
-
          .one('bsTransitionEnd', callback)
+
-
          .emulateTransitionEnd(150) :
+
-
        callback()
+
-
 
+
-
    } else if (!this.isShown && this.$backdrop) {
+
-
      this.$backdrop.removeClass('in')
+
-
 
+
-
      var callbackRemove = function () {
+
-
        that.removeBackdrop()
+
-
        callback && callback()
+
-
      }
+
-
      $.support.transition && this.$element.hasClass('fade') ?
+
-
        this.$backdrop
+
-
          .one('bsTransitionEnd', callbackRemove)
+
-
          .emulateTransitionEnd(150) :
+
-
        callbackRemove()
+
-
 
+
-
    } else if (callback) {
+
-
      callback()
+
-
    }
+
-
  }
+
-
 
+
-
  Modal.prototype.checkScrollbar = function () {
+
-
    if (document.body.clientWidth >= window.innerWidth) return
+
-
    this.scrollbarWidth = this.scrollbarWidth || this.measureScrollbar()
+
-
  }
+
-
 
+
-
  Modal.prototype.setScrollbar = function () {
+
-
    var bodyPad = parseInt((this.$body.css('padding-right') || 0), 10)
+
-
    if (this.scrollbarWidth) this.$body.css('padding-right', bodyPad + this.scrollbarWidth)
+
-
  }
+
-
 
+
-
  Modal.prototype.resetScrollbar = function () {
+
-
    this.$body.css('padding-right', '')
+
-
  }
+
-
 
+
-
  Modal.prototype.measureScrollbar = function () { // thx walsh
+
-
    var scrollDiv = document.createElement('div')
+
-
    scrollDiv.className = 'modal-scrollbar-measure'
+
-
    this.$body.append(scrollDiv)
+
-
    var scrollbarWidth = scrollDiv.offsetWidth - scrollDiv.clientWidth
+
-
    this.$body[0].removeChild(scrollDiv)
+
-
    return scrollbarWidth
+
-
  }
+
-
 
+
-
 
+
-
  // MODAL PLUGIN DEFINITION
+
-
  // =======================
+
-
 
+
-
  function Plugin(option, _relatedTarget) {
+
-
    return this.each(function () {
+
-
      var $this  = $(this)
+
-
      var data    = $this.data('bs.modal')
+
-
      var options = $.extend({}, Modal.DEFAULTS, $this.data(), typeof option == 'object' && option)
+
-
 
+
-
      if (!data) $this.data('bs.modal', (data = new Modal(this, options)))
+
-
      if (typeof option == 'string') data[option](_relatedTarget)
+
-
      else if (options.show) data.show(_relatedTarget)
+
-
    })
+
-
  }
+
-
 
+
-
  var old = $.fn.modal
+
-
 
+
-
  $.fn.modal            = Plugin
+
-
  $.fn.modal.Constructor = Modal
+
-
 
+
-
 
+
-
  // MODAL NO CONFLICT
+
-
  // =================
+
-
 
+
-
  $.fn.modal.noConflict = function () {
+
-
    $.fn.modal = old
+
-
    return this
+
-
  }
+
-
 
+
-
 
+
-
  // MODAL DATA-API
+
-
  // ==============
+
-
 
+
-
  $(document).on('click.bs.modal.data-api', '[data-toggle="modal"]', function (e) {
+
-
    var $this  = $(this)
+
-
    var href    = $this.attr('href')
+
-
    var $target = $($this.attr('data-target') || (href && href.replace(/.*(?=#[^\s]+$)/, ''))) // strip for ie7
+
-
    var option  = $target.data('bs.modal') ? 'toggle' : $.extend({ remote: !/#/.test(href) && href }, $target.data(), $this.data())
+
-
 
+
-
    if ($this.is('a')) e.preventDefault()
+
-
 
+
-
    $target.one('show.bs.modal', function (showEvent) {
+
-
      if (showEvent.isDefaultPrevented()) return // only register focus restorer if modal will actually get shown
+
-
      $target.one('hidden.bs.modal', function () {
+
-
        $this.is(':visible') && $this.trigger('focus')
+
-
      })
+
-
    })
+
-
    Plugin.call($target, option, this)
+
-
  })
+
-
 
+
-
}(jQuery);
+
-
 
+
-
/* ========================================================================
+
-
* Bootstrap: tooltip.js v3.2.0
+
-
* http://getbootstrap.com/javascript/#tooltip
+
-
* Inspired by the original jQuery.tipsy by Jason Frame
+
-
* ========================================================================
+
-
* Copyright 2011-2014 Twitter, Inc.
+
-
* Licensed under MIT (https://github.com/twbs/bootstrap/blob/master/LICENSE)
+
-
* ======================================================================== */
+
-
 
+
-
 
+
-
+function ($) {
+
-
  'use strict';
+
-
 
+
-
  // TOOLTIP PUBLIC CLASS DEFINITION
+
-
  // ===============================
+
-
 
+
-
  var Tooltip = function (element, options) {
+
-
    this.type      =
+
-
    this.options    =
+
-
    this.enabled    =
+
-
    this.timeout    =
+
-
    this.hoverState =
+
-
    this.$element  = null
+
-
 
+
-
    this.init('tooltip', element, options)
+
-
  }
+
-
 
+
-
  Tooltip.VERSION  = '3.2.0'
+
-
 
+
-
  Tooltip.DEFAULTS = {
+
-
    animation: true,
+
-
    placement: 'top',
+
-
    selector: false,
+
-
    template: '<div class="tooltip" role="tooltip"><div class="tooltip-arrow"></div><div class="tooltip-inner"></div></div>',
+
-
    trigger: 'hover focus',
+
-
    title: '',
+
-
    delay: 0,
+
-
    html: false,
+
-
    container: false,
+
-
    viewport: {
+
-
      selector: 'body',
+
-
      padding: 0
+
-
    }
+
-
  }
+
-
 
+
-
  Tooltip.prototype.init = function (type, element, options) {
+
-
    this.enabled  = true
+
-
    this.type      = type
+
-
    this.$element  = $(element)
+
-
    this.options  = this.getOptions(options)
+
-
    this.$viewport = this.options.viewport && $(this.options.viewport.selector || this.options.viewport)
+
-
 
+
-
    var triggers = this.options.trigger.split(' ')
+
-
 
+
-
    for (var i = triggers.length; i--;) {
+
-
      var trigger = triggers[i]
+
-
 
+
-
      if (trigger == 'click') {
+
-
        this.$element.on('click.' + this.type, this.options.selector, $.proxy(this.toggle, this))
+
-
      } else if (trigger != 'manual') {
+
-
        var eventIn  = trigger == 'hover' ? 'mouseenter' : 'focusin'
+
-
        var eventOut = trigger == 'hover' ? 'mouseleave' : 'focusout'
+
-
 
+
-
        this.$element.on(eventIn  + '.' + this.type, this.options.selector, $.proxy(this.enter, this))
+
-
        this.$element.on(eventOut + '.' + this.type, this.options.selector, $.proxy(this.leave, this))
+
-
      }
+
-
    }
+
-
 
+
-
    this.options.selector ?
+
-
      (this._options = $.extend({}, this.options, { trigger: 'manual', selector: '' })) :
+
-
      this.fixTitle()
+
-
  }
+
-
 
+
-
  Tooltip.prototype.getDefaults = function () {
+
-
    return Tooltip.DEFAULTS
+
-
  }
+
-
 
+
-
  Tooltip.prototype.getOptions = function (options) {
+
-
    options = $.extend({}, this.getDefaults(), this.$element.data(), options)
+
-
 
+
-
    if (options.delay && typeof options.delay == 'number') {
+
-
      options.delay = {
+
-
        show: options.delay,
+
-
        hide: options.delay
+
-
      }
+
-
    }
+
-
 
+
-
    return options
+
-
  }
+
-
 
+
-
  Tooltip.prototype.getDelegateOptions = function () {
+
-
    var options  = {}
+
-
    var defaults = this.getDefaults()
+
-
 
+
-
    this._options && $.each(this._options, function (key, value) {
+
-
      if (defaults[key] != value) options[key] = value
+
-
    })
+
-
 
+
-
    return options
+
-
  }
+
-
 
+
-
  Tooltip.prototype.enter = function (obj) {
+
-
    var self = obj instanceof this.constructor ?
+
-
      obj : $(obj.currentTarget).data('bs.' + this.type)
+
-
 
+
-
    if (!self) {
+
-
      self = new this.constructor(obj.currentTarget, this.getDelegateOptions())
+
-
      $(obj.currentTarget).data('bs.' + this.type, self)
+
-
    }
+
-
 
+
-
    clearTimeout(self.timeout)
+
-
 
+
-
    self.hoverState = 'in'
+
-
 
+
-
    if (!self.options.delay || !self.options.delay.show) return self.show()
+
-
 
+
-
    self.timeout = setTimeout(function () {
+
-
      if (self.hoverState == 'in') self.show()
+
-
    }, self.options.delay.show)
+
-
  }
+
-
 
+
-
  Tooltip.prototype.leave = function (obj) {
+
-
    var self = obj instanceof this.constructor ?
+
-
      obj : $(obj.currentTarget).data('bs.' + this.type)
+
-
 
+
-
    if (!self) {
+
-
      self = new this.constructor(obj.currentTarget, this.getDelegateOptions())
+
-
      $(obj.currentTarget).data('bs.' + this.type, self)
+
-
    }
+
-
 
+
-
    clearTimeout(self.timeout)
+
-
 
+
-
    self.hoverState = 'out'
+
-
 
+
-
    if (!self.options.delay || !self.options.delay.hide) return self.hide()
+
-
 
+
-
    self.timeout = setTimeout(function () {
+
-
      if (self.hoverState == 'out') self.hide()
+
-
    }, self.options.delay.hide)
+
-
  }
+
-
 
+
-
  Tooltip.prototype.show = function () {
+
-
    var e = $.Event('show.bs.' + this.type)
+
-
 
+
-
    if (this.hasContent() && this.enabled) {
+
-
      this.$element.trigger(e)
+
-
 
+
-
      var inDom = $.contains(document.documentElement, this.$element[0])
+
-
      if (e.isDefaultPrevented() || !inDom) return
+
-
      var that = this
+
-
 
+
-
      var $tip = this.tip()
+
-
 
+
-
      var tipId = this.getUID(this.type)
+
-
 
+
-
      this.setContent()
+
-
      $tip.attr('id', tipId)
+
-
      this.$element.attr('aria-describedby', tipId)
+
-
 
+
-
      if (this.options.animation) $tip.addClass('fade')
+
-
 
+
-
      var placement = typeof this.options.placement == 'function' ?
+
-
        this.options.placement.call(this, $tip[0], this.$element[0]) :
+
-
        this.options.placement
+
-
 
+
-
      var autoToken = /\s?auto?\s?/i
+
-
      var autoPlace = autoToken.test(placement)
+
-
      if (autoPlace) placement = placement.replace(autoToken, '') || 'top'
+
-
 
+
-
      $tip
+
-
        .detach()
+
-
        .css({ top: 0, left: 0, display: 'block' })
+
-
        .addClass(placement)
+
-
        .data('bs.' + this.type, this)
+
-
 
+
-
      this.options.container ? $tip.appendTo(this.options.container) : $tip.insertAfter(this.$element)
+
-
 
+
-
      var pos          = this.getPosition()
+
-
      var actualWidth = $tip[0].offsetWidth
+
-
      var actualHeight = $tip[0].offsetHeight
+
-
 
+
-
      if (autoPlace) {
+
-
        var orgPlacement = placement
+
-
        var $parent      = this.$element.parent()
+
-
        var parentDim    = this.getPosition($parent)
+
-
 
+
-
        placement = placement == 'bottom' && pos.top  + pos.height      + actualHeight - parentDim.scroll > parentDim.height ? 'top'    :
+
-
                    placement == 'top'    && pos.top  - parentDim.scroll - actualHeight < 0                                  ? 'bottom' :
+
-
                    placement == 'right'  && pos.right + actualWidth      > parentDim.width                                    ? 'left'  :
+
-
                    placement == 'left'  && pos.left  - actualWidth      < parentDim.left                                    ? 'right'  :
+
-
                    placement
+
-
 
+
-
        $tip
+
-
          .removeClass(orgPlacement)
+
-
          .addClass(placement)
+
-
      }
+
-
 
+
-
      var calculatedOffset = this.getCalculatedOffset(placement, pos, actualWidth, actualHeight)
+
-
 
+
-
      this.applyPlacement(calculatedOffset, placement)
+
-
 
+
-
      var complete = function () {
+
-
        that.$element.trigger('shown.bs.' + that.type)
+
-
        that.hoverState = null
+
-
      }
+
-
 
+
-
      $.support.transition && this.$tip.hasClass('fade') ?
+
-
        $tip
+
-
          .one('bsTransitionEnd', complete)
+
-
          .emulateTransitionEnd(150) :
+
-
        complete()
+
-
    }
+
-
  }
+
-
 
+
-
  Tooltip.prototype.applyPlacement = function (offset, placement) {
+
-
    var $tip  = this.tip()
+
-
    var width  = $tip[0].offsetWidth
+
-
    var height = $tip[0].offsetHeight
+
-
 
+
-
    // manually read margins because getBoundingClientRect includes difference
+
-
    var marginTop = parseInt($tip.css('margin-top'), 10)
+
-
    var marginLeft = parseInt($tip.css('margin-left'), 10)
+
-
 
+
-
    // we must check for NaN for ie 8/9
+
-
    if (isNaN(marginTop))  marginTop  = 0
+
-
    if (isNaN(marginLeft)) marginLeft = 0
+
-
 
+
-
    offset.top  = offset.top  + marginTop
+
-
    offset.left = offset.left + marginLeft
+
-
 
+
-
    // $.fn.offset doesn't round pixel values
+
-
    // so we use setOffset directly with our own function B-0
+
-
    $.offset.setOffset($tip[0], $.extend({
+
-
      using: function (props) {
+
-
        $tip.css({
+
-
          top: Math.round(props.top),
+
-
          left: Math.round(props.left)
+
-
        })
+
-
      }
+
-
    }, offset), 0)
+
-
 
+
-
    $tip.addClass('in')
+
-
 
+
-
    // check to see if placing tip in new offset caused the tip to resize itself
+
-
    var actualWidth  = $tip[0].offsetWidth
+
-
    var actualHeight = $tip[0].offsetHeight
+
-
 
+
-
    if (placement == 'top' && actualHeight != height) {
+
-
      offset.top = offset.top + height - actualHeight
+
-
    }
+
-
 
+
-
    var delta = this.getViewportAdjustedDelta(placement, offset, actualWidth, actualHeight)
+
-
 
+
-
    if (delta.left) offset.left += delta.left
+
-
    else offset.top += delta.top
+
-
 
+
-
    var arrowDelta          = delta.left ? delta.left * 2 - width + actualWidth : delta.top * 2 - height + actualHeight
+
-
    var arrowPosition      = delta.left ? 'left'        : 'top'
+
-
    var arrowOffsetPosition = delta.left ? 'offsetWidth' : 'offsetHeight'
+
-
 
+
-
    $tip.offset(offset)
+
-
    this.replaceArrow(arrowDelta, $tip[0][arrowOffsetPosition], arrowPosition)
+
-
  }
+
-
 
+
-
  Tooltip.prototype.replaceArrow = function (delta, dimension, position) {
+
-
    this.arrow().css(position, delta ? (50 * (1 - delta / dimension) + '%') : '')
+
-
  }
+
-
 
+
-
  Tooltip.prototype.setContent = function () {
+
-
    var $tip  = this.tip()
+
-
    var title = this.getTitle()
+
-
 
+
-
    $tip.find('.tooltip-inner')[this.options.html ? 'html' : 'text'](title)
+
-
    $tip.removeClass('fade in top bottom left right')
+
-
  }
+
-
 
+
-
  Tooltip.prototype.hide = function () {
+
-
    var that = this
+
-
    var $tip = this.tip()
+
-
    var e    = $.Event('hide.bs.' + this.type)
+
-
 
+
-
    this.$element.removeAttr('aria-describedby')
+
-
 
+
-
    function complete() {
+
-
      if (that.hoverState != 'in') $tip.detach()
+
-
      that.$element.trigger('hidden.bs.' + that.type)
+
-
    }
+
-
 
+
-
    this.$element.trigger(e)
+
-
 
+
-
    if (e.isDefaultPrevented()) return
+
-
 
+
-
    $tip.removeClass('in')
+
-
 
+
-
    $.support.transition && this.$tip.hasClass('fade') ?
+
-
      $tip
+
-
        .one('bsTransitionEnd', complete)
+
-
        .emulateTransitionEnd(150) :
+
-
      complete()
+
-
 
+
-
    this.hoverState = null
+
-
 
+
-
    return this
+
-
  }
+
-
 
+
-
  Tooltip.prototype.fixTitle = function () {
+
-
    var $e = this.$element
+
-
    if ($e.attr('title') || typeof ($e.attr('data-original-title')) != 'string') {
+
-
      $e.attr('data-original-title', $e.attr('title') || '').attr('title', '')
+
-
    }
+
-
  }
+
-
 
+
-
  Tooltip.prototype.hasContent = function () {
+
-
    return this.getTitle()
+
-
  }
+
-
 
+
-
  Tooltip.prototype.getPosition = function ($element) {
+
-
    $element  = $element || this.$element
+
-
    var el    = $element[0]
+
-
    var isBody = el.tagName == 'BODY'
+
-
    return $.extend({}, (typeof el.getBoundingClientRect == 'function') ? el.getBoundingClientRect() : null, {
+
-
      scroll: isBody ? document.documentElement.scrollTop || document.body.scrollTop : $element.scrollTop(),
+
-
      width:  isBody ? $(window).width()  : $element.outerWidth(),
+
-
      height: isBody ? $(window).height() : $element.outerHeight()
+
-
    }, isBody ? { top: 0, left: 0 } : $element.offset())
+
-
  }
+
-
 
+
-
  Tooltip.prototype.getCalculatedOffset = function (placement, pos, actualWidth, actualHeight) {
+
-
    return placement == 'bottom' ? { top: pos.top + pos.height,  left: pos.left + pos.width / 2 - actualWidth / 2  } :
+
-
          placement == 'top'    ? { top: pos.top - actualHeight, left: pos.left + pos.width / 2 - actualWidth / 2  } :
+
-
          placement == 'left'  ? { top: pos.top + pos.height / 2 - actualHeight / 2, left: pos.left - actualWidth } :
+
-
        /* placement == 'right' */ { top: pos.top + pos.height / 2 - actualHeight / 2, left: pos.left + pos.width  }
+
-
 
+
-
  }
+
-
 
+
-
  Tooltip.prototype.getViewportAdjustedDelta = function (placement, pos, actualWidth, actualHeight) {
+
-
    var delta = { top: 0, left: 0 }
+
-
    if (!this.$viewport) return delta
+
-
 
+
-
    var viewportPadding = this.options.viewport && this.options.viewport.padding || 0
+
-
    var viewportDimensions = this.getPosition(this.$viewport)
+
-
 
+
-
    if (/right|left/.test(placement)) {
+
-
      var topEdgeOffset    = pos.top - viewportPadding - viewportDimensions.scroll
+
-
      var bottomEdgeOffset = pos.top + viewportPadding - viewportDimensions.scroll + actualHeight
+
-
      if (topEdgeOffset < viewportDimensions.top) { // top overflow
+
-
        delta.top = viewportDimensions.top - topEdgeOffset
+
-
      } else if (bottomEdgeOffset > viewportDimensions.top + viewportDimensions.height) { // bottom overflow
+
-
        delta.top = viewportDimensions.top + viewportDimensions.height - bottomEdgeOffset
+
-
      }
+
-
    } else {
+
-
      var leftEdgeOffset  = pos.left - viewportPadding
+
-
      var rightEdgeOffset = pos.left + viewportPadding + actualWidth
+
-
      if (leftEdgeOffset < viewportDimensions.left) { // left overflow
+
-
        delta.left = viewportDimensions.left - leftEdgeOffset
+
-
      } else if (rightEdgeOffset > viewportDimensions.width) { // right overflow
+
-
        delta.left = viewportDimensions.left + viewportDimensions.width - rightEdgeOffset
+
-
      }
+
-
    }
+
-
 
+
-
    return delta
+
-
  }
+
-
 
+
-
  Tooltip.prototype.getTitle = function () {
+
-
    var title
+
-
    var $e = this.$element
+
-
    var o  = this.options
+
-
 
+
-
    title = $e.attr('data-original-title')
+
-
      || (typeof o.title == 'function' ? o.title.call($e[0]) :  o.title)
+
-
 
+
-
    return title
+
-
  }
+
-
 
+
-
  Tooltip.prototype.getUID = function (prefix) {
+
-
    do prefix += ~~(Math.random() * 1000000)
+
-
    while (document.getElementById(prefix))
+
-
    return prefix
+
-
  }
+
-
 
+
-
  Tooltip.prototype.tip = function () {
+
-
    return (this.$tip = this.$tip || $(this.options.template))
+
-
  }
+
-
 
+
-
  Tooltip.prototype.arrow = function () {
+
-
    return (this.$arrow = this.$arrow || this.tip().find('.tooltip-arrow'))
+
-
  }
+
-
 
+
-
  Tooltip.prototype.validate = function () {
+
-
    if (!this.$element[0].parentNode) {
+
-
      this.hide()
+
-
      this.$element = null
+
-
      this.options  = null
+
-
    }
+
-
  }
+
-
 
+
-
  Tooltip.prototype.enable = function () {
+
-
    this.enabled = true
+
-
  }
+
-
 
+
-
  Tooltip.prototype.disable = function () {
+
-
    this.enabled = false
+
-
  }
+
-
 
+
-
  Tooltip.prototype.toggleEnabled = function () {
+
-
    this.enabled = !this.enabled
+
-
  }
+
-
 
+
-
  Tooltip.prototype.toggle = function (e) {
+
-
    var self = this
+
-
    if (e) {
+
-
      self = $(e.currentTarget).data('bs.' + this.type)
+
-
      if (!self) {
+
-
        self = new this.constructor(e.currentTarget, this.getDelegateOptions())
+
-
        $(e.currentTarget).data('bs.' + this.type, self)
+
-
      }
+
-
    }
+
-
 
+
-
    self.tip().hasClass('in') ? self.leave(self) : self.enter(self)
+
-
  }
+
-
 
+
-
  Tooltip.prototype.destroy = function () {
+
-
    clearTimeout(this.timeout)
+
-
    this.hide().$element.off('.' + this.type).removeData('bs.' + this.type)
+
-
  }
+
-
 
+
-
 
+
-
  // TOOLTIP PLUGIN DEFINITION
+
-
  // =========================
+
-
 
+
-
  function Plugin(option) {
+
-
    return this.each(function () {
+
-
      var $this  = $(this)
+
-
      var data    = $this.data('bs.tooltip')
+
-
      var options = typeof option == 'object' && option
+
-
 
+
-
      if (!data && option == 'destroy') return
+
-
      if (!data) $this.data('bs.tooltip', (data = new Tooltip(this, options)))
+
-
      if (typeof option == 'string') data[option]()
+
-
    })
+
-
  }
+
-
 
+
-
  var old = $.fn.tooltip
+
-
 
+
-
  $.fn.tooltip            = Plugin
+
-
  $.fn.tooltip.Constructor = Tooltip
+
-
 
+
-
 
+
-
  // TOOLTIP NO CONFLICT
+
-
  // ===================
+
-
 
+
-
  $.fn.tooltip.noConflict = function () {
+
-
    $.fn.tooltip = old
+
-
    return this
+
-
  }
+
-
 
+
-
}(jQuery);
+
-
 
+
-
/* ========================================================================
+
-
* Bootstrap: popover.js v3.2.0
+
-
* http://getbootstrap.com/javascript/#popovers
+
-
* ========================================================================
+
-
* Copyright 2011-2014 Twitter, Inc.
+
-
* Licensed under MIT (https://github.com/twbs/bootstrap/blob/master/LICENSE)
+
-
* ======================================================================== */
+
-
 
+
-
 
+
-
+function ($) {
+
-
  'use strict';
+
-
 
+
-
  // POPOVER PUBLIC CLASS DEFINITION
+
-
  // ===============================
+
-
 
+
-
  var Popover = function (element, options) {
+
-
    this.init('popover', element, options)
+
-
  }
+
-
 
+
-
  if (!$.fn.tooltip) throw new Error('Popover requires tooltip.js')
+
-
 
+
-
  Popover.VERSION  = '3.2.0'
+
-
 
+
-
  Popover.DEFAULTS = $.extend({}, $.fn.tooltip.Constructor.DEFAULTS, {
+
-
    placement: 'right',
+
-
    trigger: 'click',
+
-
    content: '',
+
-
    template: '<div class="popover" role="tooltip"><div class="arrow"></div><h3 class="popover-title"></h3><div class="popover-content"></div></div>'
+
-
  })
+
-
 
+
-
 
+
-
  // NOTE: POPOVER EXTENDS tooltip.js
+
-
  // ================================
+
-
 
+
-
  Popover.prototype = $.extend({}, $.fn.tooltip.Constructor.prototype)
+
-
 
+
-
  Popover.prototype.constructor = Popover
+
-
 
+
-
  Popover.prototype.getDefaults = function () {
+
-
    return Popover.DEFAULTS
+
-
  }
+
-
 
+
-
  Popover.prototype.setContent = function () {
+
-
    var $tip    = this.tip()
+
-
    var title  = this.getTitle()
+
-
    var content = this.getContent()
+
-
 
+
-
    $tip.find('.popover-title')[this.options.html ? 'html' : 'text'](title)
+
-
    $tip.find('.popover-content').empty()[ // we use append for html objects to maintain js events
+
-
      this.options.html ? (typeof content == 'string' ? 'html' : 'append') : 'text'
+
-
    ](content)
+
-
 
+
-
    $tip.removeClass('fade top bottom left right in')
+
-
 
+
-
    // IE8 doesn't accept hiding via the `:empty` pseudo selector, we have to do
+
-
    // this manually by checking the contents.
+
-
    if (!$tip.find('.popover-title').html()) $tip.find('.popover-title').hide()
+
-
  }
+
-
 
+
-
  Popover.prototype.hasContent = function () {
+
-
    return this.getTitle() || this.getContent()
+
-
  }
+
-
 
+
-
  Popover.prototype.getContent = function () {
+
-
    var $e = this.$element
+
-
    var o  = this.options
+
-
 
+
-
    return $e.attr('data-content')
+
-
      || (typeof o.content == 'function' ?
+
-
            o.content.call($e[0]) :
+
-
            o.content)
+
-
  }
+
-
 
+
-
  Popover.prototype.arrow = function () {
+
-
    return (this.$arrow = this.$arrow || this.tip().find('.arrow'))
+
-
  }
+
-
 
+
-
  Popover.prototype.tip = function () {
+
-
    if (!this.$tip) this.$tip = $(this.options.template)
+
-
    return this.$tip
+
-
  }
+
-
 
+
-
 
+
-
  // POPOVER PLUGIN DEFINITION
+
-
  // =========================
+
-
 
+
-
  function Plugin(option) {
+
-
    return this.each(function () {
+
-
      var $this  = $(this)
+
-
      var data    = $this.data('bs.popover')
+
-
      var options = typeof option == 'object' && option
+
-
 
+
-
      if (!data && option == 'destroy') return
+
-
      if (!data) $this.data('bs.popover', (data = new Popover(this, options)))
+
-
      if (typeof option == 'string') data[option]()
+
-
    })
+
-
  }
+
-
 
+
-
  var old = $.fn.popover
+
-
 
+
-
  $.fn.popover            = Plugin
+
-
  $.fn.popover.Constructor = Popover
+
-
 
+
-
 
+
-
  // POPOVER NO CONFLICT
+
-
  // ===================
+
-
 
+
-
  $.fn.popover.noConflict = function () {
+
-
    $.fn.popover = old
+
-
    return this
+
-
  }
+
-
 
+
-
}(jQuery);
+
-
 
+
-
/* ========================================================================
+
-
* Bootstrap: scrollspy.js v3.2.0
+
-
* http://getbootstrap.com/javascript/#scrollspy
+
-
* ========================================================================
+
-
* Copyright 2011-2014 Twitter, Inc.
+
-
* Licensed under MIT (https://github.com/twbs/bootstrap/blob/master/LICENSE)
+
-
* ======================================================================== */
+
-
 
+
-
 
+
-
+function ($) {
+
-
  'use strict';
+
-
 
+
-
  // SCROLLSPY CLASS DEFINITION
+
-
  // ==========================
+
-
 
+
-
  function ScrollSpy(element, options) {
+
-
    var process  = $.proxy(this.process, this)
+
-
 
+
-
    this.$body          = $('body')
+
-
    this.$scrollElement = $(element).is('body') ? $(window) : $(element)
+
-
    this.options        = $.extend({}, ScrollSpy.DEFAULTS, options)
+
-
    this.selector      = (this.options.target || '') + ' .nav li > a'
+
-
    this.offsets        = []
+
-
    this.targets        = []
+
-
    this.activeTarget  = null
+
-
    this.scrollHeight  = 0
+
-
 
+
-
    this.$scrollElement.on('scroll.bs.scrollspy', process)
+
-
    this.refresh()
+
-
    this.process()
+
-
  }
+
-
 
+
-
  ScrollSpy.VERSION  = '3.2.0'
+
-
 
+
-
  ScrollSpy.DEFAULTS = {
+
-
    offset: 10
+
-
  }
+
-
 
+
-
  ScrollSpy.prototype.getScrollHeight = function () {
+
-
    return this.$scrollElement[0].scrollHeight || Math.max(this.$body[0].scrollHeight, document.documentElement.scrollHeight)
+
-
  }
+
-
 
+
-
  ScrollSpy.prototype.refresh = function () {
+
-
    var offsetMethod = 'offset'
+
-
    var offsetBase  = 0
+
-
 
+
-
    if (!$.isWindow(this.$scrollElement[0])) {
+
-
      offsetMethod = 'position'
+
-
      offsetBase  = this.$scrollElement.scrollTop()
+
-
    }
+
-
 
+
-
    this.offsets = []
+
-
    this.targets = []
+
-
    this.scrollHeight = this.getScrollHeight()
+
-
 
+
-
    var self    = this
+
-
 
+
-
    this.$body
+
-
      .find(this.selector)
+
-
      .map(function () {
+
-
        var $el  = $(this)
+
-
        var href  = $el.data('target') || $el.attr('href')
+
-
        var $href = /^#./.test(href) && $(href)
+
-
 
+
-
        return ($href
+
-
          && $href.length
+
-
          && $href.is(':visible')
+
-
          && [[$href[offsetMethod]().top + offsetBase, href]]) || null
+
-
      })
+
-
      .sort(function (a, b) { return a[0] - b[0] })
+
-
      .each(function () {
+
-
        self.offsets.push(this[0])
+
-
        self.targets.push(this[1])
+
-
      })
+
-
  }
+
-
 
+
-
  ScrollSpy.prototype.process = function () {
+
-
    var scrollTop    = this.$scrollElement.scrollTop() + this.options.offset
+
-
    var scrollHeight = this.getScrollHeight()
+
-
    var maxScroll    = this.options.offset + scrollHeight - this.$scrollElement.height()
+
-
    var offsets      = this.offsets
+
-
    var targets      = this.targets
+
-
    var activeTarget = this.activeTarget
+
-
    var i
+
-
 
+
-
    if (this.scrollHeight != scrollHeight) {
+
-
      this.refresh()
+
-
    }
+
-
 
+
-
    if (scrollTop >= maxScroll) {
+
-
      return activeTarget != (i = targets[targets.length - 1]) && this.activate(i)
+
-
    }
+
-
 
+
-
    if (activeTarget && scrollTop <= offsets[0]) {
+
-
      return activeTarget != (i = targets[0]) && this.activate(i)
+
-
    }
+
-
 
+
-
    for (i = offsets.length; i--;) {
+
-
      activeTarget != targets[i]
+
-
        && scrollTop >= offsets[i]
+
-
        && (!offsets[i + 1] || scrollTop <= offsets[i + 1])
+
-
        && this.activate(targets[i])
+
-
    }
+
-
  }
+
-
 
+
-
  ScrollSpy.prototype.activate = function (target) {
+
-
    this.activeTarget = target
+
-
 
+
-
    $(this.selector)
+
-
      .parentsUntil(this.options.target, '.active')
+
-
      .removeClass('active')
+
-
 
+
-
    var selector = this.selector +
+
-
        '[data-target="' + target + '"],' +
+
-
        this.selector + '[href="' + target + '"]'
+
-
 
+
-
    var active = $(selector)
+
-
      .parents('li')
+
-
      .addClass('active')
+
-
 
+
-
    if (active.parent('.dropdown-menu').length) {
+
-
      active = active
+
-
        .closest('li.dropdown')
+
-
        .addClass('active')
+
-
    }
+
-
 
+
-
    active.trigger('activate.bs.scrollspy')
+
-
  }
+
-
 
+
-
 
+
-
  // SCROLLSPY PLUGIN DEFINITION
+
-
  // ===========================
+
-
 
+
-
  function Plugin(option) {
+
-
    return this.each(function () {
+
-
      var $this  = $(this)
+
-
      var data    = $this.data('bs.scrollspy')
+
-
      var options = typeof option == 'object' && option
+
-
 
+
-
      if (!data) $this.data('bs.scrollspy', (data = new ScrollSpy(this, options)))
+
-
      if (typeof option == 'string') data[option]()
+
-
    })
+
-
  }
+
-
 
+
-
  var old = $.fn.scrollspy
+
-
 
+
-
  $.fn.scrollspy            = Plugin
+
-
  $.fn.scrollspy.Constructor = ScrollSpy
+
-
 
+
-
 
+
-
  // SCROLLSPY NO CONFLICT
+
-
  // =====================
+
-
 
+
-
  $.fn.scrollspy.noConflict = function () {
+
-
    $.fn.scrollspy = old
+
-
    return this
+
-
  }
+
-
 
+
-
 
+
-
  // SCROLLSPY DATA-API
+
-
  // ==================
+
-
 
+
-
  $(window).on('load.bs.scrollspy.data-api', function () {
+
-
    $('[data-spy="scroll"]').each(function () {
+
-
      var $spy = $(this)
+
-
      Plugin.call($spy, $spy.data())
+
-
    })
+
-
  })
+
-
 
+
-
}(jQuery);
+
-
 
+
-
/* ========================================================================
+
-
* Bootstrap: tab.js v3.2.0
+
-
* http://getbootstrap.com/javascript/#tabs
+
-
* ========================================================================
+
-
* Copyright 2011-2014 Twitter, Inc.
+
-
* Licensed under MIT (https://github.com/twbs/bootstrap/blob/master/LICENSE)
+
-
  * ======================================================================== */
+
-
 
+
-
 
+
-
+function ($) {
+
-
  'use strict';
+
-
 
+
-
  // TAB CLASS DEFINITION
+
-
  // ====================
+
-
 
+
-
  var Tab = function (element) {
+
-
    this.element = $(element)
+
-
  }
+
-
 
+
-
  Tab.VERSION = '3.2.0'
+
-
 
+
-
  Tab.prototype.show = function () {
+
-
    var $this    = this.element
+
-
    var $ul      = $this.closest('ul:not(.dropdown-menu)')
+
-
    var selector = $this.data('target')
+
-
 
+
-
    if (!selector) {
+
-
      selector = $this.attr('href')
+
-
      selector = selector && selector.replace(/.*(?=#[^\s]*$)/, '') // strip for ie7
+
-
    }
+
-
 
+
-
    if ($this.parent('li').hasClass('active')) return
+
-
 
+
-
    var previous = $ul.find('.active:last a')[0]
+
-
    var e        = $.Event('show.bs.tab', {
+
-
      relatedTarget: previous
+
-
    })
+
-
 
+
-
    $this.trigger(e)
+
-
 
+
-
    if (e.isDefaultPrevented()) return
+
-
 
+
-
    var $target = $(selector)
+
-
 
+
-
    this.activate($this.closest('li'), $ul)
+
-
    this.activate($target, $target.parent(), function () {
+
-
      $this.trigger({
+
-
        type: 'shown.bs.tab',
+
-
        relatedTarget: previous
+
-
      })
+
-
    })
+
-
  }
+
-
 
+
-
  Tab.prototype.activate = function (element, container, callback) {
+
-
    var $active    = container.find('> .active')
+
-
    var transition = callback
+
-
      && $.support.transition
+
-
      && $active.hasClass('fade')
+
-
 
+
-
    function next() {
+
-
      $active
+
-
        .removeClass('active')
+
-
        .find('> .dropdown-menu > .active')
+
-
        .removeClass('active')
+
-
 
+
-
      element.addClass('active')
+
-
 
+
-
      if (transition) {
+
-
        element[0].offsetWidth // reflow for transition
+
-
        element.addClass('in')
+
-
      } else {
+
-
        element.removeClass('fade')
+
-
      }
+
-
 
+
-
      if (element.parent('.dropdown-menu')) {
+
-
        element.closest('li.dropdown').addClass('active')
+
-
      }
+
-
 
+
-
      callback && callback()
+
-
    }
+
-
 
+
-
    transition ?
+
-
      $active
+
-
        .one('bsTransitionEnd', next)
+
-
        .emulateTransitionEnd(150) :
+
-
      next()
+
-
 
+
-
    $active.removeClass('in')
+
-
  }
+
-
 
+
-
 
+
-
  // TAB PLUGIN DEFINITION
+
-
  // =====================
+
-
 
+
-
  function Plugin(option) {
+
-
    return this.each(function () {
+
-
      var $this = $(this)
+
-
      var data  = $this.data('bs.tab')
+
-
 
+
-
      if (!data) $this.data('bs.tab', (data = new Tab(this)))
+
-
      if (typeof option == 'string') data[option]()
+
-
    })
+
-
  }
+
-
 
+
-
  var old = $.fn.tab
+
-
 
+
-
  $.fn.tab            = Plugin
+
-
  $.fn.tab.Constructor = Tab
+
-
 
+
-
 
+
-
  // TAB NO CONFLICT
+
-
  // ===============
+
-
 
+
-
  $.fn.tab.noConflict = function () {
+
-
    $.fn.tab = old
+
-
    return this
+
-
  }
+
-
 
+
-
 
+
-
  // TAB DATA-API
+
-
  // ============
+
-
 
+
-
  $(document).on('click.bs.tab.data-api', '[data-toggle="tab"], [data-toggle="pill"]', function (e) {
+
-
    e.preventDefault()
+
-
    Plugin.call($(this), 'show')
+
-
  })
+
-
 
+
-
}(jQuery);
+
-
 
+
-
/* ========================================================================
+
-
* Bootstrap: affix.js v3.2.0
+
-
* http://getbootstrap.com/javascript/#affix
+
-
* ========================================================================
+
-
* Copyright 2011-2014 Twitter, Inc.
+
-
* Licensed under MIT (https://github.com/twbs/bootstrap/blob/master/LICENSE)
+
-
* ======================================================================== */
+
-
 
+
-
 
+
-
+function ($) {
+
-
  'use strict';
+
-
 
+
-
  // AFFIX CLASS DEFINITION
+
-
  // ======================
+
-
 
+
-
  var Affix = function (element, options) {
+
-
    this.options = $.extend({}, Affix.DEFAULTS, options)
+
-
 
+
-
    this.$target = $(this.options.target)
+
-
      .on('scroll.bs.affix.data-api', $.proxy(this.checkPosition, this))
+
-
      .on('click.bs.affix.data-api',  $.proxy(this.checkPositionWithEventLoop, this))
+
-
 
+
-
    this.$element    = $(element)
+
-
    this.affixed      =
+
-
    this.unpin        =
+
-
    this.pinnedOffset = null
+
-
 
+
-
    this.checkPosition()
+
-
  }
+
-
 
+
-
  Affix.VERSION  = '3.2.0'
+
-
 
+
-
  Affix.RESET    = 'affix affix-top affix-bottom'
+
-
 
+
-
  Affix.DEFAULTS = {
+
-
    offset: 0,
+
-
    target: window
+
-
  }
+
-
 
+
-
  Affix.prototype.getPinnedOffset = function () {
+
-
    if (this.pinnedOffset) return this.pinnedOffset
+
-
    this.$element.removeClass(Affix.RESET).addClass('affix')
+
-
    var scrollTop = this.$target.scrollTop()
+
-
    var position  = this.$element.offset()
+
-
    return (this.pinnedOffset = position.top - scrollTop)
+
-
  }
+
-
 
+
-
  Affix.prototype.checkPositionWithEventLoop = function () {
+
-
    setTimeout($.proxy(this.checkPosition, this), 1)
+
-
  }
+
-
 
+
-
  Affix.prototype.checkPosition = function () {
+
-
    if (!this.$element.is(':visible')) return
+
-
 
+
-
    var scrollHeight = $(document).height()
+
-
    var scrollTop    = this.$target.scrollTop()
+
-
    var position    = this.$element.offset()
+
-
    var offset      = this.options.offset
+
-
    var offsetTop    = offset.top
+
-
    var offsetBottom = offset.bottom
+
-
 
+
-
    if (typeof offset != 'object')        offsetBottom = offsetTop = offset
+
-
    if (typeof offsetTop == 'function')    offsetTop    = offset.top(this.$element)
+
-
    if (typeof offsetBottom == 'function') offsetBottom = offset.bottom(this.$element)
+
-
 
+
-
    var affix = this.unpin  != null && (scrollTop + this.unpin <= position.top) ? false :
+
-
                offsetBottom != null && (position.top + this.$element.height() >= scrollHeight - offsetBottom) ? 'bottom' :
+
-
                offsetTop    != null && (scrollTop <= offsetTop) ? 'top' : false
+
-
 
+
-
    if (this.affixed === affix) return
+
-
    if (this.unpin != null) this.$element.css('top', '')
+
-
 
+
-
    var affixType = 'affix' + (affix ? '-' + affix : '')
+
-
    var e        = $.Event(affixType + '.bs.affix')
+
-
 
+
-
    this.$element.trigger(e)
+
-
 
+
-
    if (e.isDefaultPrevented()) return
+
-
 
+
-
    this.affixed = affix
+
-
    this.unpin = affix == 'bottom' ? this.getPinnedOffset() : null
+
-
 
+
-
    this.$element
+
-
      .removeClass(Affix.RESET)
+
-
      .addClass(affixType)
+
-
      .trigger($.Event(affixType.replace('affix', 'affixed')))
+
-
 
+
-
    if (affix == 'bottom') {
+
-
      this.$element.offset({
+
-
        top: scrollHeight - this.$element.height() - offsetBottom
+
-
      })
+
-
    }
+
-
  }
+
-
 
+
-
 
+
-
  // AFFIX PLUGIN DEFINITION
+
-
  // =======================
+
-
 
+
-
  function Plugin(option) {
+
-
    return this.each(function () {
+
-
      var $this  = $(this)
+
-
      var data    = $this.data('bs.affix')
+
-
      var options = typeof option == 'object' && option
+
-
 
+
-
      if (!data) $this.data('bs.affix', (data = new Affix(this, options)))
+
-
      if (typeof option == 'string') data[option]()
+
-
    })
+
-
  }
+
-
 
+
-
  var old = $.fn.affix
+
-
 
+
-
  $.fn.affix            = Plugin
+
-
  $.fn.affix.Constructor = Affix
+
-
 
+
-
 
+
-
  // AFFIX NO CONFLICT
+
-
  // =================
+
-
 
+
-
  $.fn.affix.noConflict = function () {
+
-
    $.fn.affix = old
+
-
    return this
+
-
  }
+
-
 
+
-
 
+
-
  // AFFIX DATA-API
+
-
  // ==============
+
-
 
+
-
  $(window).on('load', function () {
+
-
    $('[data-spy="affix"]').each(function () {
+
-
      var $spy = $(this)
+
-
      var data = $spy.data()
+
-
 
+
-
      data.offset = data.offset || {}
+
-
 
+
-
      if (data.offsetBottom) data.offset.bottom = data.offsetBottom
+
-
      if (data.offsetTop)    data.offset.top    = data.offsetTop
+
-
 
+
-
      Plugin.call($spy, data)
+
-
    })
+
-
  })
+
-
 
+
-
}(jQuery);
+

Latest revision as of 14:40, 3 October 2014

/*!

* Bootstrap v3.2.0 (http://getbootstrap.com)
* Copyright 2011-2014 Twitter, Inc.
* Licensed under MIT (https://github.com/twbs/bootstrap/blob/master/LICENSE)
*/

/*!

* Generated using the Bootstrap Customizer (http://getbootstrap.com/customize/?id=da58eaa352adc4879b58)
* Config saved to config.json and https://gist.github.com/da58eaa352adc4879b58
*/
if("undefined"==typeof jQuery)throw new Error("Bootstrap's JavaScript requires jQuery");+function(t){"use strict";function e(e){return this.each(function(){var i=t(this),s=i.data("bs.alert");s||i.data("bs.alert",s=new o(this)),"string"==typeof e&&s[e].call(i)})}var i='[data-dismiss="alert"]',o=function(e){t(e).on("click",i,this.close)};o.VERSION="3.2.0",o.prototype.close=function(e){function i(){n.detach().trigger("closed.bs.alert").remove()}var o=t(this),s=o.attr("data-target");s||(s=o.attr("href"),s=s&&s.replace(/.*(?=#[^\s]*$)/,""));var n=t(s);e&&e.preventDefault(),n.length||(n=o.hasClass("alert")?o:o.parent()),n.trigger(e=t.Event("close.bs.alert")),e.isDefaultPrevented()||(n.removeClass("in"),t.support.transition&&n.hasClass("fade")?n.one("bsTransitionEnd",i).emulateTransitionEnd(150):i())};var s=t.fn.alert;t.fn.alert=e,t.fn.alert.Constructor=o,t.fn.alert.noConflict=function(){return t.fn.alert=s,this},t(document).on("click.bs.alert.data-api",i,o.prototype.close)}(jQuery),+function(t){"use strict";function e(e){return this.each(function(){var o=t(this),s=o.data("bs.button"),n="object"==typeof e&&e;s||o.data("bs.button",s=new i(this,n)),"toggle"==e?s.toggle():e&&s.setState(e)})}var i=function(e,o){this.$element=t(e),this.options=t.extend({},i.DEFAULTS,o),this.isLoading=!1};i.VERSION="3.2.0",i.DEFAULTS={loadingText:"loading..."},i.prototype.setState=function(e){var i="disabled",o=this.$element,s=o.is("input")?"val":"html",n=o.data();e+="Text",null==n.resetText&&o.data("resetText",o[s]()),o[s](null==n[e]?this.options[e]:n[e]),setTimeout(t.proxy(function(){"loadingText"==e?(this.isLoading=!0,o.addClass(i).attr(i,i)):this.isLoading&&(this.isLoading=!1,o.removeClass(i).removeAttr(i))},this),0)},i.prototype.toggle=function(){var t=!0,e=this.$element.closest('[data-toggle="buttons"]');if(e.length){var i=this.$element.find("input");"radio"==i.prop("type")&&(i.prop("checked")&&this.$element.hasClass("active")?t=!1:e.find(".active").removeClass("active")),t&&i.prop("checked",!this.$element.hasClass("active")).trigger("change")}t&&this.$element.toggleClass("active")};var o=t.fn.button;t.fn.button=e,t.fn.button.Constructor=i,t.fn.button.noConflict=function(){return t.fn.button=o,this},t(document).on("click.bs.button.data-api",'[data-toggle^="button"]',function(i){var o=t(i.target);o.hasClass("btn")||(o=o.closest(".btn")),e.call(o,"toggle"),i.preventDefault()})}(jQuery),+function(t){"use strict";function e(e){return this.each(function(){var o=t(this),s=o.data("bs.carousel"),n=t.extend({},i.DEFAULTS,o.data(),"object"==typeof e&&e),r="string"==typeof e?e:n.slide;s||o.data("bs.carousel",s=new i(this,n)),"number"==typeof e?s.to(e):r?s[r]():n.interval&&s.pause().cycle()})}var i=function(e,i){this.$element=t(e).on("keydown.bs.carousel",t.proxy(this.keydown,this)),this.$indicators=this.$element.find(".carousel-indicators"),this.options=i,this.paused=this.sliding=this.interval=this.$active=this.$items=null,"hover"==this.options.pause&&this.$element.on("mouseenter.bs.carousel",t.proxy(this.pause,this)).on("mouseleave.bs.carousel",t.proxy(this.cycle,this))};i.VERSION="3.2.0",i.DEFAULTS={interval:5e3,pause:"hover",wrap:!0},i.prototype.keydown=function(t){switch(t.which){case 37:this.prev();break;case 39:this.next();break;default:return}t.preventDefault()},i.prototype.cycle=function(e){return e||(this.paused=!1),this.interval&&clearInterval(this.interval),this.options.interval&&!this.paused&&(this.interval=setInterval(t.proxy(this.next,this),this.options.interval)),this},i.prototype.getItemIndex=function(t){return this.$items=t.parent().children(".item"),this.$items.index(t||this.$active)},i.prototype.to=function(e){var i=this,o=this.getItemIndex(this.$active=this.$element.find(".item.active"));return e>this.$items.length-1||0>e?void 0:this.sliding?this.$element.one("slid.bs.carousel",function(){i.to(e)}):o==e?this.pause().cycle():this.slide(e>o?"next":"prev",t(this.$items[e]))},i.prototype.pause=function(e){return e||(this.paused=!0),this.$element.find(".next, .prev").length&&t.support.transition&&(this.$element.trigger(t.support.transition.end),this.cycle(!0)),this.interval=clearInterval(this.interval),this},i.prototype.next=function(){return this.sliding?void 0:this.slide("next")},i.prototype.prev=function(){return this.sliding?void 0:this.slide("prev")},i.prototype.slide=function(e,i){var o=this.$element.find(".item.active"),s=i||o[e](),n=this.interval,r="next"==e?"left":"right",a="next"==e?"first":"last",l=this;if(!s.length){if(!this.options.wrap)return;s=this.$element.find(".item")[a]()}if(s.hasClass("active"))return this.sliding=!1;var h=s[0],p=t.Event("slide.bs.carousel",{relatedTarget:h,direction:r});if(this.$element.trigger(p),!p.isDefaultPrevented()){if(this.sliding=!0,n&&this.pause(),this.$indicators.length){this.$indicators.find(".active").removeClass("active");var c=t(this.$indicators.children()[this.getItemIndex(s)]);c&&c.addClass("active")}var d=t.Event("slid.bs.carousel",{relatedTarget:h,direction:r});return t.support.transition&&this.$element.hasClass("slide")?(s.addClass(e),s[0].offsetWidth,o.addClass(r),s.addClass(r),o.one("bsTransitionEnd",function(){s.removeClass([e,r].join(" ")).addClass("active"),o.removeClass(["active",r].join(" ")),l.sliding=!1,setTimeout(function(){l.$element.trigger(d)},0)}).emulateTransitionEnd(1e3*o.css("transition-duration").slice(0,-1))):(o.removeClass("active"),s.addClass("active"),this.sliding=!1,this.$element.trigger(d)),n&&this.cycle(),this}};var o=t.fn.carousel;t.fn.carousel=e,t.fn.carousel.Constructor=i,t.fn.carousel.noConflict=function(){return t.fn.carousel=o,this},t(document).on("click.bs.carousel.data-api","[data-slide], [data-slide-to]",function(i){var o,s=t(this),n=t(s.attr("data-target")||(o=s.attr("href"))&&o.replace(/.*(?=#[^\s]+$)/,""));if(n.hasClass("carousel")){var r=t.extend({},n.data(),s.data()),a=s.attr("data-slide-to");a&&(r.interval=!1),e.call(n,r),a&&n.data("bs.carousel").to(a),i.preventDefault()}}),t(window).on("load",function(){t('[data-ride="carousel"]').each(function(){var i=t(this);e.call(i,i.data())})})}(jQuery),+function(t){"use strict";function e(e){e&&3===e.which||(t(s).remove(),t(n).each(function(){var o=i(t(this)),s={relatedTarget:this};o.hasClass("open")&&(o.trigger(e=t.Event("hide.bs.dropdown",s)),e.isDefaultPrevented()||o.removeClass("open").trigger("hidden.bs.dropdown",s))}))}function i(e){var i=e.attr("data-target");i||(i=e.attr("href"),i=i&&/#[A-Za-z]/.test(i)&&i.replace(/.*(?=#[^\s]*$)/,""));var o=i&&t(i);return o&&o.length?o:e.parent()}function o(e){return this.each(function(){var i=t(this),o=i.data("bs.dropdown");o||i.data("bs.dropdown",o=new r(this)),"string"==typeof e&&o[e].call(i)})}var s=".dropdown-backdrop",n='[data-toggle="dropdown"]',r=function(e){t(e).on("click.bs.dropdown",this.toggle)};r.VERSION="3.2.0",r.prototype.toggle=function(o){var s=t(this);if(!s.is(".disabled, :disabled")){var n=i(s),r=n.hasClass("open");if(e(),!r){"ontouchstart"in document.documentElement&&!n.closest(".navbar-nav").length&&t('<div class="dropdown-backdrop"/>').insertAfter(t(this)).on("click",e);var a={relatedTarget:this};if(n.trigger(o=t.Event("show.bs.dropdown",a)),o.isDefaultPrevented())return;s.trigger("focus"),n.toggleClass("open").trigger("shown.bs.dropdown",a)}return!1}},r.prototype.keydown=function(e){if(/(38|40|27)/.test(e.keyCode)){var o=t(this);if(e.preventDefault(),e.stopPropagation(),!o.is(".disabled, :disabled")){var s=i(o),r=s.hasClass("open");if(!r||r&&27==e.keyCode)return 27==e.which&&s.find(n).trigger("focus"),o.trigger("click");var a=" li:not(.divider):visible a",l=s.find('[role="menu"]'+a+', [role="listbox"]'+a);if(l.length){var h=l.index(l.filter(":focus"));38==e.keyCode&&h>0&&h--,40==e.keyCode&&h<l.length-1&&h++,~h||(h=0),l.eq(h).trigger("focus")}}}};var a=t.fn.dropdown;t.fn.dropdown=o,t.fn.dropdown.Constructor=r,t.fn.dropdown.noConflict=function(){return t.fn.dropdown=a,this},t(document).on("click.bs.dropdown.data-api",e).on("click.bs.dropdown.data-api",".dropdown form",function(t){t.stopPropagation()}).on("click.bs.dropdown.data-api",n,r.prototype.toggle).on("keydown.bs.dropdown.data-api",n+', [role="menu"], [role="listbox"]',r.prototype.keydown)}(jQuery),+function(t){"use strict";function e(e,o){return this.each(function(){var s=t(this),n=s.data("bs.modal"),r=t.extend({},i.DEFAULTS,s.data(),"object"==typeof e&&e);n||s.data("bs.modal",n=new i(this,r)),"string"==typeof e?n[e](o):r.show&&n.show(o)})}var i=function(e,i){this.options=i,this.$body=t(document.body),this.$element=t(e),this.$backdrop=this.isShown=null,this.scrollbarWidth=0,this.options.remote&&this.$element.find(".modal-content").load(this.options.remote,t.proxy(function(){this.$element.trigger("loaded.bs.modal")},this))};i.VERSION="3.2.0",i.DEFAULTS={backdrop:!0,keyboard:!0,show:!0},i.prototype.toggle=function(t){return this.isShown?this.hide():this.show(t)},i.prototype.show=function(e){var i=this,o=t.Event("show.bs.modal",{relatedTarget:e});this.$element.trigger(o),this.isShown||o.isDefaultPrevented()||(this.isShown=!0,this.checkScrollbar(),this.$body.addClass("modal-open"),this.setScrollbar(),this.escape(),this.$element.on("click.dismiss.bs.modal",'[data-dismiss="modal"]',t.proxy(this.hide,this)),this.backdrop(function(){var o=t.support.transition&&i.$element.hasClass("fade");i.$element.parent().length||i.$element.appendTo(i.$body),i.$element.show().scrollTop(0),o&&i.$element[0].offsetWidth,i.$element.addClass("in").attr("aria-hidden",!1),i.enforceFocus();var s=t.Event("shown.bs.modal",{relatedTarget:e});o?i.$element.find(".modal-dialog").one("bsTransitionEnd",function(){i.$element.trigger("focus").trigger(s)}).emulateTransitionEnd(300):i.$element.trigger("focus").trigger(s)}))},i.prototype.hide=function(e){e&&e.preventDefault(),e=t.Event("hide.bs.modal"),this.$element.trigger(e),this.isShown&&!e.isDefaultPrevented()&&(this.isShown=!1,this.$body.removeClass("modal-open"),this.resetScrollbar(),this.escape(),t(document).off("focusin.bs.modal"),this.$element.removeClass("in").attr("aria-hidden",!0).off("click.dismiss.bs.modal"),t.support.transition&&this.$element.hasClass("fade")?this.$element.one("bsTransitionEnd",t.proxy(this.hideModal,this)).emulateTransitionEnd(300):this.hideModal())},i.prototype.enforceFocus=function(){t(document).off("focusin.bs.modal").on("focusin.bs.modal",t.proxy(function(t){this.$element[0]===t.target||this.$element.has(t.target).length||this.$element.trigger("focus")},this))},i.prototype.escape=function(){this.isShown&&this.options.keyboard?this.$element.on("keyup.dismiss.bs.modal",t.proxy(function(t){27==t.which&&this.hide()},this)):this.isShown||this.$element.off("keyup.dismiss.bs.modal")},i.prototype.hideModal=function(){var t=this;this.$element.hide(),this.backdrop(function(){t.$element.trigger("hidden.bs.modal")})},i.prototype.removeBackdrop=function(){this.$backdrop&&this.$backdrop.remove(),this.$backdrop=null},i.prototype.backdrop=function(e){var i=this,o=this.$element.hasClass("fade")?"fade":"";if(this.isShown&&this.options.backdrop){var s=t.support.transition&&o;if(this.$backdrop=t('<div class="modal-backdrop '+o+'" />').appendTo(this.$body),this.$element.on("click.dismiss.bs.modal",t.proxy(function(t){t.target===t.currentTarget&&("static"==this.options.backdrop?this.$element[0].focus.call(this.$element[0]):this.hide.call(this))},this)),s&&this.$backdrop[0].offsetWidth,this.$backdrop.addClass("in"),!e)return;s?this.$backdrop.one("bsTransitionEnd",e).emulateTransitionEnd(150):e()}else if(!this.isShown&&this.$backdrop){this.$backdrop.removeClass("in");var n=function(){i.removeBackdrop(),e&&e()};t.support.transition&&this.$element.hasClass("fade")?this.$backdrop.one("bsTransitionEnd",n).emulateTransitionEnd(150):n()}else e&&e()},i.prototype.checkScrollbar=function(){document.body.clientWidth>=window.innerWidth||(this.scrollbarWidth=this.scrollbarWidth||this.measureScrollbar())},i.prototype.setScrollbar=function(){var t=parseInt(this.$body.css("padding-right")||0,10);this.scrollbarWidth&&this.$body.css("padding-right",t+this.scrollbarWidth)},i.prototype.resetScrollbar=function(){this.$body.css("padding-right","")},i.prototype.measureScrollbar=function(){var t=document.createElement("div");t.className="modal-scrollbar-measure",this.$body.append(t);var e=t.offsetWidth-t.clientWidth;return this.$body[0].removeChild(t),e};var o=t.fn.modal;t.fn.modal=e,t.fn.modal.Constructor=i,t.fn.modal.noConflict=function(){return t.fn.modal=o,this},t(document).on("click.bs.modal.data-api",'[data-toggle="modal"]',function(i){var o=t(this),s=o.attr("href"),n=t(o.attr("data-target")||s&&s.replace(/.*(?=#[^\s]+$)/,"")),r=n.data("bs.modal")?"toggle":t.extend({remote:!/#/.test(s)&&s},n.data(),o.data());o.is("a")&&i.preventDefault(),n.one("show.bs.modal",function(t){t.isDefaultPrevented()||n.one("hidden.bs.modal",function(){o.is(":visible")&&o.trigger("focus")})}),e.call(n,r,this)})}(jQuery),+function(t){"use strict";function e(e){return this.each(function(){var o=t(this),s=o.data("bs.tooltip"),n="object"==typeof e&&e;(s||"destroy"!=e)&&(s||o.data("bs.tooltip",s=new i(this,n)),"string"==typeof e&&s[e]())})}var i=function(t,e){this.type=this.options=this.enabled=this.timeout=this.hoverState=this.$element=null,this.init("tooltip",t,e)};i.VERSION="3.2.0",i.DEFAULTS={animation:!0,placement:"top",selector:!1,template:'
',trigger:"hover focus",title:"",delay:0,html:!1,container:!1,viewport:{selector:"body",padding:0}},i.prototype.init=function(e,i,o){this.enabled=!0,this.type=e,this.$element=t(i),this.options=this.getOptions(o),this.$viewport=this.options.viewport&&t(this.options.viewport.selector||this.options.viewport);for(var s=this.options.trigger.split(" "),n=s.length;n--;){var r=s[n];if("click"==r)this.$element.on("click."+this.type,this.options.selector,t.proxy(this.toggle,this));else if("manual"!=r){var a="hover"==r?"mouseenter":"focusin",l="hover"==r?"mouseleave":"focusout";this.$element.on(a+"."+this.type,this.options.selector,t.proxy(this.enter,this)),this.$element.on(l+"."+this.type,this.options.selector,t.proxy(this.leave,this))}}this.options.selector?this._options=t.extend({},this.options,{trigger:"manual",selector:""}):this.fixTitle()},i.prototype.getDefaults=function(){return i.DEFAULTS},i.prototype.getOptions=function(e){return e=t.extend({},this.getDefaults(),this.$element.data(),e),e.delay&&"number"==typeof e.delay&&(e.delay={show:e.delay,hide:e.delay}),e},i.prototype.getDelegateOptions=function(){var e={},i=this.getDefaults();return this._options&&t.each(this._options,function(t,o){i[t]!=o&&(e[t]=o)}),e},i.prototype.enter=function(e){var i=e instanceof this.constructor?e:t(e.currentTarget).data("bs."+this.type);return i||(i=new this.constructor(e.currentTarget,this.getDelegateOptions()),t(e.currentTarget).data("bs."+this.type,i)),clearTimeout(i.timeout),i.hoverState="in",i.options.delay&&i.options.delay.show?void(i.timeout=setTimeout(function(){"in"==i.hoverState&&i.show()},i.options.delay.show)):i.show()},i.prototype.leave=function(e){var i=e instanceof this.constructor?e:t(e.currentTarget).data("bs."+this.type);return i||(i=new this.constructor(e.currentTarget,this.getDelegateOptions()),t(e.currentTarget).data("bs."+this.type,i)),clearTimeout(i.timeout),i.hoverState="out",i.options.delay&&i.options.delay.hide?void(i.timeout=setTimeout(function(){"out"==i.hoverState&&i.hide()},i.options.delay.hide)):i.hide()},i.prototype.show=function(){var e=t.Event("show.bs."+this.type);if(this.hasContent()&&this.enabled){this.$element.trigger(e);var i=t.contains(document.documentElement,this.$element[0]);if(e.isDefaultPrevented()||!i)return;var o=this,s=this.tip(),n=this.getUID(this.type);this.setContent(),s.attr("id",n),this.$element.attr("aria-describedby",n),this.options.animation&&s.addClass("fade");var r="function"==typeof this.options.placement?this.options.placement.call(this,s[0],this.$element[0]):this.options.placement,a=/\s?auto?\s?/i,l=a.test(r);l&&(r=r.replace(a,"")||"top"),s.detach().css({top:0,left:0,display:"block"}).addClass(r).data("bs."+this.type,this),this.options.container?s.appendTo(this.options.container):s.insertAfter(this.$element);var h=this.getPosition(),p=s[0].offsetWidth,c=s[0].offsetHeight;if(l){var d=r,f=this.$element.parent(),u=this.getPosition(f);r="bottom"==r&&h.top+h.height+c-u.scroll>u.height?"top":"top"==r&&h.top-u.scroll-c<0?"bottom":"right"==r&&h.right+p>u.width?"left":"left"==r&&h.left-p<u.left?"right":r,s.removeClass(d).addClass(r)}var g=this.getCalculatedOffset(r,h,p,c);this.applyPlacement(g,r);var v=function(){o.$element.trigger("shown.bs."+o.type),o.hoverState=null};t.support.transition&&this.$tip.hasClass("fade")?s.one("bsTransitionEnd",v).emulateTransitionEnd(150):v()}},i.prototype.applyPlacement=function(e,i){var o=this.tip(),s=o[0].offsetWidth,n=o[0].offsetHeight,r=parseInt(o.css("margin-top"),10),a=parseInt(o.css("margin-left"),10);isNaN(r)&&(r=0),isNaN(a)&&(a=0),e.top=e.top+r,e.left=e.left+a,t.offset.setOffset(o[0],t.extend({using:function(t){o.css({top:Math.round(t.top),left:Math.round(t.left)})}},e),0),o.addClass("in");var l=o[0].offsetWidth,h=o[0].offsetHeight;"top"==i&&h!=n&&(e.top=e.top+n-h);var p=this.getViewportAdjustedDelta(i,e,l,h);p.left?e.left+=p.left:e.top+=p.top;var c=p.left?2*p.left-s+l:2*p.top-n+h,d=p.left?"left":"top",f=p.left?"offsetWidth":"offsetHeight";o.offset(e),this.replaceArrow(c,o[0][f],d)},i.prototype.replaceArrow=function(t,e,i){this.arrow().css(i,t?50*(1-t/e)+"%":"")},i.prototype.setContent=function(){var t=this.tip(),e=this.getTitle();t.find(".tooltip-inner")[this.options.html?"html":"text"](e),t.removeClass("fade in top bottom left right")},i.prototype.hide=function(){function e(){"in"!=i.hoverState&&o.detach(),i.$element.trigger("hidden.bs."+i.type)}var i=this,o=this.tip(),s=t.Event("hide.bs."+this.type);return this.$element.removeAttr("aria-describedby"),this.$element.trigger(s),s.isDefaultPrevented()?void 0:(o.removeClass("in"),t.support.transition&&this.$tip.hasClass("fade")?o.one("bsTransitionEnd",e).emulateTransitionEnd(150):e(),this.hoverState=null,this)},i.prototype.fixTitle=function(){var t=this.$element;(t.attr("title")||"string"!=typeof t.attr("data-original-title"))&&t.attr("data-original-title",t.attr("title")||"").attr("title","")},i.prototype.hasContent=function(){return this.getTitle()},i.prototype.getPosition=function(e){e=e||this.$element;var i=e[0],o="BODY"==i.tagName;return t.extend({},"function"==typeof i.getBoundingClientRect?i.getBoundingClientRect():null,{scroll:o?document.documentElement.scrollTop||document.body.scrollTop:e.scrollTop(),width:o?t(window).width():e.outerWidth(),height:o?t(window).height():e.outerHeight()},o?{top:0,left:0}:e.offset())},i.prototype.getCalculatedOffset=function(t,e,i,o){return"bottom"==t?{top:e.top+e.height,left:e.left+e.width/2-i/2}:"top"==t?{top:e.top-o,left:e.left+e.width/2-i/2}:"left"==t?{top:e.top+e.height/2-o/2,left:e.left-i}:{top:e.top+e.height/2-o/2,left:e.left+e.width}},i.prototype.getViewportAdjustedDelta=function(t,e,i,o){var s={top:0,left:0};if(!this.$viewport)return s;var n=this.options.viewport&&this.options.viewport.padding||0,r=this.getPosition(this.$viewport);if(/right|left/.test(t)){var a=e.top-n-r.scroll,l=e.top+n-r.scroll+o;a<r.top?s.top=r.top-a:l>r.top+r.height&&(s.top=r.top+r.height-l)}else{var h=e.left-n,p=e.left+n+i;h<r.left?s.left=r.left-h:p>r.width&&(s.left=r.left+r.width-p)}return s},i.prototype.getTitle=function(){var t,e=this.$element,i=this.options;return t=e.attr("data-original-title")||("function"==typeof i.title?i.title.call(e[0]):i.title)},i.prototype.getUID=function(t){do t+=~~(1e6*Math.random());while(document.getElementById(t));return t},i.prototype.tip=function(){return this.$tip=this.$tip||t(this.options.template)},i.prototype.arrow=function(){return this.$arrow=this.$arrow||this.tip().find(".tooltip-arrow")},i.prototype.validate=function(){this.$element[0].parentNode||(this.hide(),this.$element=null,this.options=null)},i.prototype.enable=function(){this.enabled=!0},i.prototype.disable=function(){this.enabled=!1},i.prototype.toggleEnabled=function(){this.enabled=!this.enabled},i.prototype.toggle=function(e){var i=this;e&&(i=t(e.currentTarget).data("bs."+this.type),i||(i=new this.constructor(e.currentTarget,this.getDelegateOptions()),t(e.currentTarget).data("bs."+this.type,i))),i.tip().hasClass("in")?i.leave(i):i.enter(i)},i.prototype.destroy=function(){clearTimeout(this.timeout),this.hide().$element.off("."+this.type).removeData("bs."+this.type)};var o=t.fn.tooltip;t.fn.tooltip=e,t.fn.tooltip.Constructor=i,t.fn.tooltip.noConflict=function(){return t.fn.tooltip=o,this}}(jQuery),+function(t){"use strict";function e(e){return this.each(function(){var o=t(this),s=o.data("bs.popover"),n="object"==typeof e&&e;(s||"destroy"!=e)&&(s||o.data("bs.popover",s=new i(this,n)),"string"==typeof e&&s[e]())})}var i=function(t,e){this.init("popover",t,e)};if(!t.fn.tooltip)throw new Error("Popover requires tooltip.js");i.VERSION="3.2.0",i.DEFAULTS=t.extend({},t.fn.tooltip.Constructor.DEFAULTS,{placement:"right",trigger:"click",content:"",template:'

'}),i.prototype=t.extend({},t.fn.tooltip.Constructor.prototype),i.prototype.constructor=i,i.prototype.getDefaults=function(){return i.DEFAULTS},i.prototype.setContent=function(){var t=this.tip(),e=this.getTitle(),i=this.getContent();t.find(".popover-title")[this.options.html?"html":"text"](e),t.find(".popover-content").empty()[this.options.html?"string"==typeof i?"html":"append":"text"](i),t.removeClass("fade top bottom left right in"),t.find(".popover-title").html()||t.find(".popover-title").hide()},i.prototype.hasContent=function(){return this.getTitle()||this.getContent()},i.prototype.getContent=function(){var t=this.$element,e=this.options;return t.attr("data-content")||("function"==typeof e.content?e.content.call(t[0]):e.content)},i.prototype.arrow=function(){return this.$arrow=this.$arrow||this.tip().find(".arrow")},i.prototype.tip=function(){return this.$tip||(this.$tip=t(this.options.template)),this.$tip};var o=t.fn.popover;t.fn.popover=e,t.fn.popover.Constructor=i,t.fn.popover.noConflict=function(){return t.fn.popover=o,this}}(jQuery),+function(t){"use strict";function e(e){return this.each(function(){var o=t(this),s=o.data("bs.tab");s||o.data("bs.tab",s=new i(this)),"string"==typeof e&&s[e]()})}var i=function(e){this.element=t(e)};i.VERSION="3.2.0",i.prototype.show=function(){var e=this.element,i=e.closest("ul:not(.dropdown-menu)"),o=e.data("target");if(o||(o=e.attr("href"),o=o&&o.replace(/.*(?=#[^\s]*$)/,"")),!e.parent("li").hasClass("active")){var s=i.find(".active:last a")[0],n=t.Event("show.bs.tab",{relatedTarget:s});if(e.trigger(n),!n.isDefaultPrevented()){var r=t(o);this.activate(e.closest("li"),i),this.activate(r,r.parent(),function(){e.trigger({type:"shown.bs.tab",relatedTarget:s})})}}},i.prototype.activate=function(e,i,o){function s(){n.removeClass("active").find("> .dropdown-menu > .active").removeClass("active"),e.addClass("active"),r?(e[0].offsetWidth,e.addClass("in")):e.removeClass("fade"),e.parent(".dropdown-menu")&&e.closest("li.dropdown").addClass("active"),o&&o()}var n=i.find("> .active"),r=o&&t.support.transition&&n.hasClass("fade");r?n.one("bsTransitionEnd",s).emulateTransitionEnd(150):s(),n.removeClass("in")};var o=t.fn.tab;t.fn.tab=e,t.fn.tab.Constructor=i,t.fn.tab.noConflict=function(){return t.fn.tab=o,this},t(document).on("click.bs.tab.data-api",'[data-toggle="tab"], [data-toggle="pill"]',function(i){i.preventDefault(),e.call(t(this),"show")})}(jQuery),+function(t){"use strict";function e(e){return this.each(function(){var o=t(this),s=o.data("bs.affix"),n="object"==typeof e&&e;s||o.data("bs.affix",s=new i(this,n)),"string"==typeof e&&s[e]()})}var i=function(e,o){this.options=t.extend({},i.DEFAULTS,o),this.$target=t(this.options.target).on("scroll.bs.affix.data-api",t.proxy(this.checkPosition,this)).on("click.bs.affix.data-api",t.proxy(this.checkPositionWithEventLoop,this)),this.$element=t(e),this.affixed=this.unpin=this.pinnedOffset=null,this.checkPosition()};i.VERSION="3.2.0",i.RESET="affix affix-top affix-bottom",i.DEFAULTS={offset:0,target:window},i.prototype.getPinnedOffset=function(){if(this.pinnedOffset)return this.pinnedOffset;this.$element.removeClass(i.RESET).addClass("affix");var t=this.$target.scrollTop(),e=this.$element.offset();return this.pinnedOffset=e.top-t},i.prototype.checkPositionWithEventLoop=function(){setTimeout(t.proxy(this.checkPosition,this),1)},i.prototype.checkPosition=function(){if(this.$element.is(":visible")){var e=t(document).height(),o=this.$target.scrollTop(),s=this.$element.offset(),n=this.options.offset,r=n.top,a=n.bottom;"object"!=typeof n&&(a=r=n),"function"==typeof r&&(r=n.top(this.$element)),"function"==typeof a&&(a=n.bottom(this.$element));var l=null!=this.unpin&&o+this.unpin<=s.top?!1:null!=a&&s.top+this.$element.height()>=e-a?"bottom":null!=r&&r>=o?"top":!1;if(this.affixed!==l){null!=this.unpin&&this.$element.css("top","");var h="affix"+(l?"-"+l:""),p=t.Event(h+".bs.affix");this.$element.trigger(p),p.isDefaultPrevented()||(this.affixed=l,this.unpin="bottom"==l?this.getPinnedOffset():null,this.$element.removeClass(i.RESET).addClass(h).trigger(t.Event(h.replace("affix","affixed"))),"bottom"==l&&this.$element.offset({top:e-this.$element.height()-a}))}}};var o=t.fn.affix;t.fn.affix=e,t.fn.affix.Constructor=i,t.fn.affix.noConflict=function(){return t.fn.affix=o,this},t(window).on("load",function(){t('[data-spy="affix"]').each(function(){var i=t(this),o=i.data();o.offset=o.offset||{},o.offsetBottom&&(o.offset.bottom=o.offsetBottom),o.offsetTop&&(o.offset.top=o.offsetTop),e.call(i,o)})})}(jQuery),+function(t){"use strict";function e(e){return this.each(function(){var o=t(this),s=o.data("bs.collapse"),n=t.extend({},i.DEFAULTS,o.data(),"object"==typeof e&&e);!s&&n.toggle&&"show"==e&&(e=!e),s||o.data("bs.collapse",s=new i(this,n)),"string"==typeof e&&s[e]()})}var i=function(e,o){this.$element=t(e),this.options=t.extend({},i.DEFAULTS,o),this.transitioning=null,this.options.parent&&(this.$parent=t(this.options.parent)),this.options.toggle&&this.toggle()};i.VERSION="3.2.0",i.DEFAULTS={toggle:!0},i.prototype.dimension=function(){var t=this.$element.hasClass("width");return t?"width":"height"},i.prototype.show=function(){if(!this.transitioning&&!this.$element.hasClass("in")){var i=t.Event("show.bs.collapse");if(this.$element.trigger(i),!i.isDefaultPrevented()){var o=this.$parent&&this.$parent.find("> .panel > .in");if(o&&o.length){var s=o.data("bs.collapse");if(s&&s.transitioning)return;e.call(o,"hide"),s||o.data("bs.collapse",null)}var n=this.dimension();this.$element.removeClass("collapse").addClass("collapsing")[n](0),this.transitioning=1;var r=function(){this.$element.removeClass("collapsing").addClass("collapse in")[n](""),this.transitioning=0,this.$element.trigger("shown.bs.collapse")};if(!t.support.transition)return r.call(this);var a=t.camelCase(["scroll",n].join("-"));this.$element.one("bsTransitionEnd",t.proxy(r,this)).emulateTransitionEnd(350)[n](this.$element[0][a])}}},i.prototype.hide=function(){if(!this.transitioning&&this.$element.hasClass("in")){var e=t.Event("hide.bs.collapse");if(this.$element.trigger(e),!e.isDefaultPrevented()){var i=this.dimension();this.$element[i](this.$element[i]())[0].offsetHeight,this.$element.addClass("collapsing").removeClass("collapse").removeClass("in"),this.transitioning=1;var o=function(){this.transitioning=0,this.$element.trigger("hidden.bs.collapse").removeClass("collapsing").addClass("collapse")};return t.support.transition?void this.$element[i](0).one("bsTransitionEnd",t.proxy(o,this)).emulateTransitionEnd(350):o.call(this)}}},i.prototype.toggle=function(){this[this.$element.hasClass("in")?"hide":"show"]()};var o=t.fn.collapse;t.fn.collapse=e,t.fn.collapse.Constructor=i,t.fn.collapse.noConflict=function(){return t.fn.collapse=o,this},t(document).on("click.bs.collapse.data-api",'[data-toggle="collapse"]',function(i){var o,s=t(this),n=s.attr("data-target")||i.preventDefault()||(o=s.attr("href"))&&o.replace(/.*(?=#[^\s]+$)/,""),r=t(n),a=r.data("bs.collapse"),l=a?"toggle":s.data(),h=s.attr("data-parent"),p=h&&t(h);a&&a.transitioning||(p&&p.find('[data-toggle="collapse"][data-parent="'+h+'"]').not(s).addClass("collapsed"),s[r.hasClass("in")?"addClass":"removeClass"]("collapsed")),e.call(r,l)})}(jQuery),+function(t){"use strict";function e(i,o){var s=t.proxy(this.process,this);this.$body=t("body"),this.$scrollElement=t(t(i).is("body")?window:i),this.options=t.extend({},e.DEFAULTS,o),this.selector=(this.options.target||"")+" .nav li > a",this.offsets=[],this.targets=[],this.activeTarget=null,this.scrollHeight=0,this.$scrollElement.on("scroll.bs.scrollspy",s),this.refresh(),this.process()}function i(i){return this.each(function(){var o=t(this),s=o.data("bs.scrollspy"),n="object"==typeof i&&i;s||o.data("bs.scrollspy",s=new e(this,n)),"string"==typeof i&&s[i]()})}e.VERSION="3.2.0",e.DEFAULTS={offset:10},e.prototype.getScrollHeight=function(){return this.$scrollElement[0].scrollHeight||Math.max(this.$body[0].scrollHeight,document.documentElement.scrollHeight)},e.prototype.refresh=function(){var e="offset",i=0;t.isWindow(this.$scrollElement[0])||(e="position",i=this.$scrollElement.scrollTop()),this.offsets=[],this.targets=[],this.scrollHeight=this.getScrollHeight();var o=this;this.$body.find(this.selector).map(function(){var o=t(this),s=o.data("target")||o.attr("href"),n=/^#./.test(s)&&t(s);return n&&n.length&&n.is(":visible")&&[[n[e]().top+i,s]]||null}).sort(function(t,e){return t[0]-e[0]}).each(function(){o.offsets.push(this[0]),o.targets.push(this[1])})},e.prototype.process=function(){var t,e=this.$scrollElement.scrollTop()+this.options.offset,i=this.getScrollHeight(),o=this.options.offset+i-this.$scrollElement.height(),s=this.offsets,n=this.targets,r=this.activeTarget;if(this.scrollHeight!=i&&this.refresh(),e>=o)return r!=(t=n[n.length-1])&&this.activate(t);if(r&&e<=s[0])return r!=(t=n[0])&&this.activate(t);for(t=s.length;t--;)r!=n[t]&&e>=s[t]&&(!s[t+1]||e<=s[t+1])&&this.activate(n[t])},e.prototype.activate=function(e){this.activeTarget=e,t(this.selector).parentsUntil(this.options.target,".active").removeClass("active");var i=this.selector+'[data-target="'+e+'"],'+this.selector+'[href="'+e+'"]',o=t(i).parents("li").addClass("active");o.parent(".dropdown-menu").length&&(o=o.closest("li.dropdown").addClass("active")),o.trigger("activate.bs.scrollspy")};var o=t.fn.scrollspy;t.fn.scrollspy=i,t.fn.scrollspy.Constructor=e,t.fn.scrollspy.noConflict=function(){return t.fn.scrollspy=o,this},t(window).on("load.bs.scrollspy.data-api",function(){t('[data-spy="scroll"]').each(function(){var e=t(this);i.call(e,e.data())})})}(jQuery),+function(t){"use strict";function e(){var t=document.createElement("bootstrap"),e={WebkitTransition:"webkitTransitionEnd",MozTransition:"transitionend",OTransition:"oTransitionEnd otransitionend",transition:"transitionend"};for(var i in e)if(void 0!==t.style[i])return{end:e[i]};return!1}t.fn.emulateTransitionEnd=function(e){var i=!1,o=this;t(this).one("bsTransitionEnd",function(){i=!0});var s=function(){i||t(o).trigger(t.support.transition.end)};return setTimeout(s,e),this},t(function(){t.support.transition=e(),t.support.transition&&(t.event.special.bsTransitionEnd={bindType:t.support.transition.end,delegateType:t.support.transition.end,handle:function(e){return t(e.target).is(this)?e.handleObj.handler.apply(this,arguments):void 0}})})}(jQuery);