if("undefined"==typeof jQuery)throw new Error("Bootstrap's JavaScript requires jQuery");+function(n){var t=n.fn.jquery.split(" ")[0].split(".");if(t[0]<2&&t[1]<9||1==t[0]&&9==t[1]&&t[2]<1)throw new Error("Bootstrap's JavaScript requires jQuery version 1.9.1 or higher");}(jQuery),+function(n){"use strict";function t(){var i=document.createElement("bootstrap"),t={WebkitTransition:"webkitTransitionEnd",MozTransition:"transitionend",OTransition:"oTransitionEnd otransitionend",transition:"transitionend"},n;for(n in t)if(void 0!==i.style[n])return{end:t[n]};return!1}n.fn.emulateTransitionEnd=function(t){var r=!1,u=this,i;n(this).one("bsTransitionEnd",function(){r=!0});return i=function(){r||n(u).trigger(n.support.transition.end)},setTimeout(i,t),this},n(function(){n.support.transition=t(),n.support.transition&&(n.event.special.bsTransitionEnd={bindType:n.support.transition.end,delegateType:n.support.transition.end,handle:function(t){if(n(t.target).is(this))return t.handleObj.handler.apply(this,arguments)}})})}(jQuery),+function(n){"use strict";function u(i){return this.each(function(){var u=n(this),r=u.data("bs.alert");r||u.data("bs.alert",r=new t(this)),"string"==typeof i&&r[i].call(u)})}var r='[data-dismiss="alert"]',t=function(t){n(t).on("click",r,this.close)},i;t.VERSION="3.3.0",t.TRANSITION_DURATION=150,t.prototype.close=function(i){function e(){r.detach().trigger("closed.bs.alert").remove()}var f=n(this),u=f.attr("data-target"),r;u||(u=f.attr("href"),u=u&&u.replace(/.*(?=#[^\s]*$)/,"")),r=n(u),i&&i.preventDefault(),r.length||(r=f.closest(".alert")),r.trigger(i=n.Event("close.bs.alert")),i.isDefaultPrevented()||(r.removeClass("in"),n.support.transition&&r.hasClass("fade")?r.one("bsTransitionEnd",e).emulateTransitionEnd(t.TRANSITION_DURATION):e())},i=n.fn.alert,n.fn.alert=u,n.fn.alert.Constructor=t,n.fn.alert.noConflict=function(){return n.fn.alert=i,this},n(document).on("click.bs.alert.data-api",r,t.prototype.close)}(jQuery),+function(n){"use strict";function r(i){return this.each(function(){var u=n(this),r=u.data("bs.button"),f="object"==typeof i&&i;r||u.data("bs.button",r=new t(this,f)),"toggle"==i?r.toggle():i&&r.setState(i)})}var t=function(i,r){this.$element=n(i),this.options=n.extend({},t.DEFAULTS,r),this.isLoading=!1},i;t.VERSION="3.3.0",t.DEFAULTS={loadingText:"loading..."},t.prototype.setState=function(t){var r="disabled",i=this.$element,f=i.is("input")?"val":"html",u=i.data();t+="Text",null==u.resetText&&i.data("resetText",i[f]()),setTimeout(n.proxy(function(){i[f](null==u[t]?this.options[t]:u[t]),"loadingText"==t?(this.isLoading=!0,i.addClass(r).attr(r,r)):this.isLoading&&(this.isLoading=!1,i.removeClass(r).removeAttr(r))},this),0)},t.prototype.toggle=function(){var t=!0,i=this.$element.closest('[data-toggle="buttons"]'),n;i.length?(n=this.$element.find("input"),"radio"==n.prop("type")&&(n.prop("checked")&&this.$element.hasClass("active")?t=!1:i.find(".active").removeClass("active")),t&&n.prop("checked",!this.$element.hasClass("active")).trigger("change")):this.$element.attr("aria-pressed",!this.$element.hasClass("active")),t&&this.$element.toggleClass("active")},i=n.fn.button,n.fn.button=r,n.fn.button.Constructor=t,n.fn.button.noConflict=function(){return n.fn.button=i,this},n(document).on("click.bs.button.data-api",'[data-toggle^="button"]',function(t){var i=n(t.target);i.hasClass("btn")||(i=i.closest(".btn")),r.call(i,"toggle"),t.preventDefault()}).on("focus.bs.button.data-api blur.bs.button.data-api",'[data-toggle^="button"]',function(t){n(t.target).closest(".btn").toggleClass("focus","focus"==t.type)})}(jQuery),+function(n){"use strict";function r(i){return this.each(function(){var f=n(this),r=f.data("bs.carousel"),u=n.extend({},t.DEFAULTS,f.data(),"object"==typeof i&&i),e="string"==typeof i?i:u.slide;r||f.data("bs.carousel",r=new t(this,u)),"number"==typeof i?r.to(i):e?r[e]():u.interval&&r.pause().cycle()})}var t=function(t,i){this.$element=n(t),this.$indicators=this.$element.find(".carousel-indicators"),this.options=i,this.paused=this.sliding=this.interval=this.$active=this.$items=null,this.options.keyboard&&this.$element.on("keydown.bs.carousel",n.proxy(this.keydown,this)),"hover"==this.options.pause&&!("ontouchstart"in document.documentElement)&&this.$element.on("mouseenter.bs.carousel",n.proxy(this.pause,this)).on("mouseleave.bs.carousel",n.proxy(this.cycle,this))},u,i;t.VERSION="3.3.0",t.TRANSITION_DURATION=600,t.DEFAULTS={interval:5e3,pause:"hover",wrap:!0,keyboard:!0},t.prototype.keydown=function(n){switch(n.which){case 37:this.prev();break;case 39:this.next();break;default:return}n.preventDefault()},t.prototype.cycle=function(t){return t||(this.paused=!1),this.interval&&clearInterval(this.interval),this.options.interval&&!this.paused&&(this.interval=setInterval(n.proxy(this.next,this),this.options.interval)),this},t.prototype.getItemIndex=function(n){return this.$items=n.parent().children(".item"),this.$items.index(n||this.$active)},t.prototype.getItemForDirection=function(n,t){var u="prev"==n?-1:1,r=this.getItemIndex(t),i=(r+u)%this.$items.length;return this.$items.eq(i)},t.prototype.to=function(n){var i=this,t=this.getItemIndex(this.$active=this.$element.find(".item.active"));if(!(n>this.$items.length-1)&&!(0>n))return this.sliding?this.$element.one("slid.bs.carousel",function(){i.to(n)}):t==n?this.pause().cycle():this.slide(n>t?"next":"prev",this.$items.eq(n))},t.prototype.pause=function(t){return t||(this.paused=!0),this.$element.find(".next, .prev").length&&n.support.transition&&(this.$element.trigger(n.support.transition.end),this.cycle(!0)),this.interval=clearInterval(this.interval),this},t.prototype.next=function(){if(!this.sliding)return this.slide("next")},t.prototype.prev=function(){if(!this.sliding)return this.slide("prev")},t.prototype.slide=function(i,r){var e=this.$element.find(".item.active"),u=r||this.getItemForDirection(i,e),l=this.interval,f="next"==i?"left":"right",v="next"==i?"first":"last",a=this,s,c,o,h;if(!u.length){if(!this.options.wrap)return;u=this.$element.find(".item")[v]()}return u.hasClass("active")?this.sliding=!1:(s=u[0],c=n.Event("slide.bs.carousel",{relatedTarget:s,direction:f}),(this.$element.trigger(c),!c.isDefaultPrevented())?((this.sliding=!0,l&&this.pause(),this.$indicators.length)&&(this.$indicators.find(".active").removeClass("active"),o=n(this.$indicators.children()[this.getItemIndex(u)]),o&&o.addClass("active")),h=n.Event("slid.bs.carousel",{relatedTarget:s,direction:f}),n.support.transition&&this.$element.hasClass("slide")?(u.addClass(i),u[0].offsetWidth,e.addClass(f),u.addClass(f),e.one("bsTransitionEnd",function(){u.removeClass([i,f].join(" ")).addClass("active"),e.removeClass(["active",f].join(" ")),a.sliding=!1,setTimeout(function(){a.$element.trigger(h)},0)}).emulateTransitionEnd(t.TRANSITION_DURATION)):(e.removeClass("active"),u.addClass("active"),this.sliding=!1,this.$element.trigger(h)),l&&this.cycle(),this):void 0)},u=n.fn.carousel,n.fn.carousel=r,n.fn.carousel.Constructor=t,n.fn.carousel.noConflict=function(){return n.fn.carousel=u,this},i=function(t){var o,f=n(this),i=n(f.attr("data-target")||(o=f.attr("href"))&&o.replace(/.*(?=#[^\s]+$)/,"")),e,u;i.hasClass("carousel")&&(e=n.extend({},i.data(),f.data()),u=f.attr("data-slide-to"),u&&(e.interval=!1),r.call(i,e),u&&i.data("bs.carousel").to(u),t.preventDefault())},n(document).on("click.bs.carousel.data-api","[data-slide]",i).on("click.bs.carousel.data-api","[data-slide-to]",i),n(window).on("load",function(){n('[data-ride="carousel"]').each(function(){var t=n(this);r.call(t,t.data())})})}(jQuery),+function(n){"use strict";function u(t){var i,r=t.attr("data-target")||(i=t.attr("href"))&&i.replace(/.*(?=#[^\s]+$)/,"");return n(r)}function i(i){return this.each(function(){var f=n(this),r=f.data("bs.collapse"),u=n.extend({},t.DEFAULTS,f.data(),"object"==typeof i&&i);!r&&u.toggle&&"show"==i&&(u.toggle=!1),r||f.data("bs.collapse",r=new t(this,u)),"string"==typeof i&&r[i]()})}var t=function(i,r){this.$element=n(i),this.options=n.extend({},t.DEFAULTS,r),this.$trigger=n(this.options.trigger).filter('[href="#'+i.id+'"], [data-target="#'+i.id+'"]'),this.transitioning=null,this.options.parent?this.$parent=this.getParent():this.addAriaAndCollapsedClass(this.$element,this.$trigger),this.options.toggle&&this.toggle()},r;t.VERSION="3.3.0",t.TRANSITION_DURATION=350,t.DEFAULTS={toggle:!0,trigger:'[data-toggle="collapse"]'},t.prototype.dimension=function(){var n=this.$element.hasClass("width");return n?"width":"height"},t.prototype.show=function(){var f,r,o,u,e,s;if(!this.transitioning&&!this.$element.hasClass("in")&&(r=this.$parent&&this.$parent.find("> .panel").children(".in, .collapsing"),!(r&&r.length&&(f=r.data("bs.collapse"),f&&f.transitioning))&&(o=n.Event("show.bs.collapse"),this.$element.trigger(o),!o.isDefaultPrevented()))){if(r&&r.length&&(i.call(r,"hide"),f||r.data("bs.collapse",null)),u=this.dimension(),this.$element.removeClass("collapse").addClass("collapsing")[u](0).attr("aria-expanded",!0),this.$trigger.removeClass("collapsed").attr("aria-expanded",!0),this.transitioning=1,e=function(){this.$element.removeClass("collapsing").addClass("collapse in")[u](""),this.transitioning=0,this.$element.trigger("shown.bs.collapse")},!n.support.transition)return e.call(this);s=n.camelCase(["scroll",u].join("-")),this.$element.one("bsTransitionEnd",n.proxy(e,this)).emulateTransitionEnd(t.TRANSITION_DURATION)[u](this.$element[0][s])}},t.prototype.hide=function(){var u,i,r;if(!this.transitioning&&this.$element.hasClass("in")&&(u=n.Event("hide.bs.collapse"),this.$element.trigger(u),!u.isDefaultPrevented()))return i=this.dimension(),this.$element[i](this.$element[i]())[0].offsetHeight,this.$element.addClass("collapsing").removeClass("collapse in").attr("aria-expanded",!1),this.$trigger.addClass("collapsed").attr("aria-expanded",!1),this.transitioning=1,r=function(){this.transitioning=0,this.$element.removeClass("collapsing").addClass("collapse").trigger("hidden.bs.collapse")},n.support.transition?void this.$element[i](0).one("bsTransitionEnd",n.proxy(r,this)).emulateTransitionEnd(t.TRANSITION_DURATION):r.call(this)},t.prototype.toggle=function(){this[this.$element.hasClass("in")?"hide":"show"]()},t.prototype.getParent=function(){return n(this.options.parent).find('[data-toggle="collapse"][data-parent="'+this.options.parent+'"]').each(n.proxy(function(t,i){var r=n(i);this.addAriaAndCollapsedClass(u(r),r)},this)).end()},t.prototype.addAriaAndCollapsedClass=function(n,t){var i=n.hasClass("in");n.attr("aria-expanded",i),t.toggleClass("collapsed",!i).attr("aria-expanded",i)},r=n.fn.collapse,n.fn.collapse=i,n.fn.collapse.Constructor=t,n.fn.collapse.noConflict=function(){return n.fn.collapse=r,this},n(document).on("click.bs.collapse.data-api",'[data-toggle="collapse"]',function(t){var r=n(this);r.attr("data-target")||t.preventDefault();var f=u(r),o=f.data("bs.collapse"),e=o?"toggle":n.extend({},r.data(),{trigger:this});i.call(f,e)})}(jQuery),+function(n){"use strict";function u(t){t&&3===t.which||(n(o).remove(),n(i).each(function(){var f=n(this),i=r(f),u={relatedTarget:this};i.hasClass("open")&&(i.trigger(t=n.Event("hide.bs.dropdown",u)),t.isDefaultPrevented()||(f.attr("aria-expanded","false"),i.removeClass("open").trigger("hidden.bs.dropdown",u)))}))}function r(t){var i=t.attr("data-target"),r;return i||(i=t.attr("href"),i=i&&/#[A-Za-z]/.test(i)&&i.replace(/.*(?=#[^\s]*$)/,"")),r=i&&n(i),r&&r.length?r:t.parent()}function e(i){return this.each(function(){var u=n(this),r=u.data("bs.dropdown");r||u.data("bs.dropdown",r=new t(this)),"string"==typeof i&&r[i].call(u)})}var o=".dropdown-backdrop",i='[data-toggle="dropdown"]',t=function(t){n(t).on("click.bs.dropdown",this.toggle)},f;t.VERSION="3.3.0",t.prototype.toggle=function(t){var e=n(this),i,o,f;if(!e.is(".disabled, :disabled")){if(i=r(e),o=i.hasClass("open"),u(),!o){if("ontouchstart"in document.documentElement&&!i.closest(".navbar-nav").length&&n('
').insertAfter(n(this)).on("click",u),f={relatedTarget:this},i.trigger(t=n.Event("show.bs.dropdown",f)),t.isDefaultPrevented())return;e.trigger("focus").attr("aria-expanded","true"),i.toggleClass("open").trigger("shown.bs.dropdown",f)}return!1}},t.prototype.keydown=function(t){var o,e,s,h,f,u;if(/(38|40|27|32)/.test(t.which)&&(o=n(this),t.preventDefault(),t.stopPropagation(),!o.is(".disabled, :disabled"))){if(e=r(o),s=e.hasClass("open"),!s&&27!=t.which||s&&27==t.which)return 27==t.which&&e.find(i).trigger("focus"),o.trigger("click");h=" li:not(.divider):visible a",f=e.find('[role="menu"]'+h+', [role="listbox"]'+h),f.length&&(u=f.index(t.target),38==t.which&&u>0&&u--,40==t.which&&u').prependTo(this.$element).on("click.dismiss.bs.modal",n.proxy(function(n){n.target===n.currentTarget&&("static"==this.options.backdrop?this.$element[0].focus.call(this.$element[0]):this.hide.call(this))},this)),r&&this.$backdrop[0].offsetWidth,this.$backdrop.addClass("in"),!i)return;r?this.$backdrop.one("bsTransitionEnd",i).emulateTransitionEnd(t.BACKDROP_TRANSITION_DURATION):i()}else!this.isShown&&this.$backdrop?(this.$backdrop.removeClass("in"),u=function(){e.removeBackdrop(),i&&i()},n.support.transition&&this.$element.hasClass("fade")?this.$backdrop.one("bsTransitionEnd",u).emulateTransitionEnd(t.BACKDROP_TRANSITION_DURATION):u()):i&&i()},t.prototype.checkScrollbar=function(){this.scrollbarWidth=this.measureScrollbar()},t.prototype.setScrollbar=function(){var n=parseInt(this.$body.css("padding-right")||0,10);this.scrollbarWidth&&this.$body.css("padding-right",n+this.scrollbarWidth)},t.prototype.resetScrollbar=function(){this.$body.css("padding-right","")},t.prototype.measureScrollbar=function(){var n,t;return document.body.clientWidth>=window.innerWidth?0:(n=document.createElement("div"),n.className="modal-scrollbar-measure",this.$body.append(n),t=n.offsetWidth-n.clientWidth,this.$body[0].removeChild(n),t)},i=n.fn.modal,n.fn.modal=r,n.fn.modal.Constructor=t,n.fn.modal.noConflict=function(){return n.fn.modal=i,this},n(document).on("click.bs.modal.data-api",'[data-toggle="modal"]',function(t){var i=n(this),f=i.attr("href"),u=n(i.attr("data-target")||f&&f.replace(/.*(?=#[^\s]+$)/,"")),e=u.data("bs.modal")?"toggle":n.extend({remote:!/#/.test(f)&&f},u.data(),i.data());i.is("a")&&t.preventDefault(),u.one("show.bs.modal",function(n){n.isDefaultPrevented()||u.one("hidden.bs.modal",function(){i.is(":visible")&&i.trigger("focus")})}),r.call(u,e,this)})}(jQuery),+function(n){"use strict";function r(i){return this.each(function(){var e=n(this),r=e.data("bs.tooltip"),u="object"==typeof i&&i,f=u&&u.selector;(r||"destroy"!=i)&&(f?(r||e.data("bs.tooltip",r={}),r[f]||(r[f]=new t(this,u))):r||e.data("bs.tooltip",r=new t(this,u)),"string"==typeof i&&r[i]())})}var t=function(n,t){this.type=this.options=this.enabled=this.timeout=this.hoverState=this.$element=null,this.init("tooltip",n,t)},i;t.VERSION="3.3.0",t.TRANSITION_DURATION=150,t.DEFAULTS={animation:!0,placement:"top",selector:!1,template:'',trigger:"hover focus",title:"",delay:0,html:!1,container:!1,viewport:{selector:"body",padding:0}},t.prototype.init=function(t,i,r){var e,f,u,s,o;for(this.enabled=!0,this.type=t,this.$element=n(i),this.options=this.getOptions(r),this.$viewport=this.options.viewport&&n(this.options.viewport.selector||this.options.viewport),e=this.options.trigger.split(" "),f=e.length;f--;)if(u=e[f],"click"==u)this.$element.on("click."+this.type,this.options.selector,n.proxy(this.toggle,this));else"manual"!=u&&(s="hover"==u?"mouseenter":"focusin",o="hover"==u?"mouseleave":"focusout",this.$element.on(s+"."+this.type,this.options.selector,n.proxy(this.enter,this)),this.$element.on(o+"."+this.type,this.options.selector,n.proxy(this.leave,this)));this.options.selector?this._options=n.extend({},this.options,{trigger:"manual",selector:""}):this.fixTitle()},t.prototype.getDefaults=function(){return t.DEFAULTS},t.prototype.getOptions=function(t){return t=n.extend({},this.getDefaults(),this.$element.data(),t),t.delay&&"number"==typeof t.delay&&(t.delay={show:t.delay,hide:t.delay}),t},t.prototype.getDelegateOptions=function(){var t={},i=this.getDefaults();return this._options&&n.each(this._options,function(n,r){i[n]!=r&&(t[n]=r)}),t},t.prototype.enter=function(t){var i=t instanceof this.constructor?t:n(t.currentTarget).data("bs."+this.type);return i&&i.$tip&&i.$tip.is(":visible")?void(i.hoverState="in"):(i||(i=new this.constructor(t.currentTarget,this.getDelegateOptions()),n(t.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())},t.prototype.leave=function(t){var i=t instanceof this.constructor?t:n(t.currentTarget).data("bs."+this.type);return i||(i=new this.constructor(t.currentTarget,this.getDelegateOptions()),n(t.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()},t.prototype.show=function(){var l=n.Event("show.bs."+this.type),y,c,s;if(this.hasContent()&&this.enabled){if(this.$element.trigger(l),y=n.contains(this.$element[0].ownerDocument.documentElement,this.$element[0]),l.isDefaultPrevented()||!y)return;var u=this,r=this.tip(),v=this.getUID(this.type);this.setContent(),r.attr("id",v),this.$element.attr("aria-describedby",v),this.options.animation&&r.addClass("fade");var i="function"==typeof this.options.placement?this.options.placement.call(this,r[0],this.$element[0]):this.options.placement,a=/\s?auto?\s?/i,p=a.test(i);p&&(i=i.replace(a,"")||"top"),r.detach().css({top:0,left:0,display:"block"}).addClass(i).data("bs."+this.type,this),this.options.container?r.appendTo(this.options.container):r.insertAfter(this.$element);var f=this.getPosition(),h=r[0].offsetWidth,o=r[0].offsetHeight;if(p){var b=i,w=this.options.container?n(this.options.container):this.$element.parent(),e=this.getPosition(w);i="bottom"==i&&f.bottom+o>e.bottom?"top":"top"==i&&f.top-oe.width?"left":"left"==i&&f.left-hu.top+u.height&&(f.top=u.top+u.height-c)):(o=t.left-e,s=t.left+e+i,ou.width&&(f.left=u.left+u.width-s)),f):f},t.prototype.getTitle=function(){var i,t=this.$element,n=this.options;return i=t.attr("data-original-title")||("function"==typeof n.title?n.title.call(t[0]):n.title)},t.prototype.getUID=function(n){do n+=~~(1e6*Math.random());while(document.getElementById(n));return n},t.prototype.tip=function(){return this.$tip=this.$tip||n(this.options.template)},t.prototype.arrow=function(){return this.$arrow=this.$arrow||this.tip().find(".tooltip-arrow")},t.prototype.enable=function(){this.enabled=!0},t.prototype.disable=function(){this.enabled=!1},t.prototype.toggleEnabled=function(){this.enabled=!this.enabled},t.prototype.toggle=function(t){var i=this;t&&(i=n(t.currentTarget).data("bs."+this.type),i||(i=new this.constructor(t.currentTarget,this.getDelegateOptions()),n(t.currentTarget).data("bs."+this.type,i))),i.tip().hasClass("in")?i.leave(i):i.enter(i)},t.prototype.destroy=function(){var n=this;clearTimeout(this.timeout),this.hide(function(){n.$element.off("."+n.type).removeData("bs."+n.type)})},i=n.fn.tooltip,n.fn.tooltip=r,n.fn.tooltip.Constructor=t,n.fn.tooltip.noConflict=function(){return n.fn.tooltip=i,this}}(jQuery),+function(n){"use strict";function r(i){return this.each(function(){var e=n(this),r=e.data("bs.popover"),u="object"==typeof i&&i,f=u&&u.selector;(r||"destroy"!=i)&&(f?(r||e.data("bs.popover",r={}),r[f]||(r[f]=new t(this,u))):r||e.data("bs.popover",r=new t(this,u)),"string"==typeof i&&r[i]())})}var t=function(n,t){this.init("popover",n,t)},i;if(!n.fn.tooltip)throw new Error("Popover requires tooltip.js");t.VERSION="3.3.0",t.DEFAULTS=n.extend({},n.fn.tooltip.Constructor.DEFAULTS,{placement:"right",trigger:"click",content:"",template:''}),t.prototype=n.extend({},n.fn.tooltip.Constructor.prototype),t.prototype.constructor=t,t.prototype.getDefaults=function(){return t.DEFAULTS},t.prototype.setContent=function(){var n=this.tip(),i=this.getTitle(),t=this.getContent();n.find(".popover-title")[this.options.html?"html":"text"](i),n.find(".popover-content").children().detach().end()[this.options.html?"string"==typeof t?"html":"append":"text"](t),n.removeClass("fade top bottom left right in"),n.find(".popover-title").html()||n.find(".popover-title").hide()},t.prototype.hasContent=function(){return this.getTitle()||this.getContent()},t.prototype.getContent=function(){var t=this.$element,n=this.options;return t.attr("data-content")||("function"==typeof n.content?n.content.call(t[0]):n.content)},t.prototype.arrow=function(){return this.$arrow=this.$arrow||this.tip().find(".arrow")},t.prototype.tip=function(){return this.$tip||(this.$tip=n(this.options.template)),this.$tip},i=n.fn.popover,n.fn.popover=r,n.fn.popover.Constructor=t,n.fn.popover.noConflict=function(){return n.fn.popover=i,this}}(jQuery),+function(n){"use strict";function t(i,r){var u=n.proxy(this.process,this);this.$body=n("body"),this.$scrollElement=n(n(i).is("body")?window:i),this.options=n.extend({},t.DEFAULTS,r),this.selector=(this.options.target||"")+" .nav li > a",this.offsets=[],this.targets=[],this.activeTarget=null,this.scrollHeight=0,this.$scrollElement.on("scroll.bs.scrollspy",u),this.refresh(),this.process()}function i(i){return this.each(function(){var u=n(this),r=u.data("bs.scrollspy"),f="object"==typeof i&&i;r||u.data("bs.scrollspy",r=new t(this,f)),"string"==typeof i&&r[i]()})}t.VERSION="3.3.0",t.DEFAULTS={offset:10},t.prototype.getScrollHeight=function(){return this.$scrollElement[0].scrollHeight||Math.max(this.$body[0].scrollHeight,document.documentElement.scrollHeight)},t.prototype.refresh=function(){var i="offset",r=0,t;n.isWindow(this.$scrollElement[0])||(i="position",r=this.$scrollElement.scrollTop()),this.offsets=[],this.targets=[],this.scrollHeight=this.getScrollHeight(),t=this,this.$body.find(this.selector).map(function(){var f=n(this),u=f.data("target")||f.attr("href"),t=/^#./.test(u)&&n(u);return t&&t.length&&t.is(":visible")&&[[t[i]().top+r,u]]||null}).sort(function(n,t){return n[0]-t[0]}).each(function(){t.offsets.push(this[0]),t.targets.push(this[1])})},t.prototype.process=function(){var n,i=this.$scrollElement.scrollTop()+this.options.offset,f=this.getScrollHeight(),e=this.options.offset+f-this.$scrollElement.height(),t=this.offsets,r=this.targets,u=this.activeTarget;if(this.scrollHeight!=f&&this.refresh(),i>=e)return u!=(n=r[r.length-1])&&this.activate(n);if(u&&i=t[n]&&(!t[n+1]||i<=t[n+1])&&this.activate(r[n])},t.prototype.activate=function(t){this.activeTarget=t,this.clear();var r=this.selector+'[data-target="'+t+'"],'+this.selector+'[href="'+t+'"]',i=n(r).parents("li").addClass("active");i.parent(".dropdown-menu").length&&(i=i.closest("li.dropdown").addClass("active")),i.trigger("activate.bs.scrollspy")},t.prototype.clear=function(){n(this.selector).parentsUntil(this.options.target,".active").removeClass("active")};var r=n.fn.scrollspy;n.fn.scrollspy=i,n.fn.scrollspy.Constructor=t,n.fn.scrollspy.noConflict=function(){return n.fn.scrollspy=r,this},n(window).on("load.bs.scrollspy.data-api",function(){n('[data-spy="scroll"]').each(function(){var t=n(this);i.call(t,t.data())})})}(jQuery),+function(n){"use strict";function r(i){return this.each(function(){var u=n(this),r=u.data("bs.tab");r||u.data("bs.tab",r=new t(this)),"string"==typeof i&&r[i]()})}var t=function(t){this.element=n(t)},u,i;t.VERSION="3.3.0",t.TRANSITION_DURATION=150,t.prototype.show=function(){var t=this.element,f=t.closest("ul:not(.dropdown-menu)"),i=t.data("target"),u;if(i||(i=t.attr("href"),i=i&&i.replace(/.*(?=#[^\s]*$)/,"")),!t.parent("li").hasClass("active")){var r=f.find(".active:last a"),o=n.Event("hide.bs.tab",{relatedTarget:t[0]}),e=n.Event("show.bs.tab",{relatedTarget:r[0]});(r.trigger(o),t.trigger(e),e.isDefaultPrevented()||o.isDefaultPrevented())||(u=n(i),this.activate(t.closest("li"),f),this.activate(u,u.parent(),function(){r.trigger({type:"hidden.bs.tab",relatedTarget:t[0]}),t.trigger({type:"shown.bs.tab",relatedTarget:r[0]})}))}},t.prototype.activate=function(i,r,u){function o(){f.removeClass("active").find("> .dropdown-menu > .active").removeClass("active").end().find('[data-toggle="tab"]').attr("aria-expanded",!1),i.addClass("active").find('[data-toggle="tab"]').attr("aria-expanded",!0),e?(i[0].offsetWidth,i.addClass("in")):i.removeClass("fade"),i.parent(".dropdown-menu")&&i.closest("li.dropdown").addClass("active").end().find('[data-toggle="tab"]').attr("aria-expanded",!0),u&&u()}var f=r.find("> .active"),e=u&&n.support.transition&&(f.length&&f.hasClass("fade")||!!r.find("> .fade").length);f.length&&e?f.one("bsTransitionEnd",o).emulateTransitionEnd(t.TRANSITION_DURATION):o(),f.removeClass("in")},u=n.fn.tab,n.fn.tab=r,n.fn.tab.Constructor=t,n.fn.tab.noConflict=function(){return n.fn.tab=u,this},i=function(t){t.preventDefault(),r.call(n(this),"show")};n(document).on("click.bs.tab.data-api",'[data-toggle="tab"]',i).on("click.bs.tab.data-api",'[data-toggle="pill"]',i)}(jQuery),+function(n){"use strict";function r(i){return this.each(function(){var u=n(this),r=u.data("bs.affix"),f="object"==typeof i&&i;r||u.data("bs.affix",r=new t(this,f)),"string"==typeof i&&r[i]()})}var t=function(i,r){this.options=n.extend({},t.DEFAULTS,r),this.$target=n(this.options.target).on("scroll.bs.affix.data-api",n.proxy(this.checkPosition,this)).on("click.bs.affix.data-api",n.proxy(this.checkPositionWithEventLoop,this)),this.$element=n(i),this.affixed=this.unpin=this.pinnedOffset=null,this.checkPosition()},i;t.VERSION="3.3.0",t.RESET="affix affix-top affix-bottom",t.DEFAULTS={offset:0,target:window},t.prototype.getState=function(n,t,i,r){var u=this.$target.scrollTop(),o=this.$element.offset(),s=this.$target.height();if(null!=i&&"top"==this.affixed)return i>u?"top":!1;if("bottom"==this.affixed)return null!=i?u+this.unpin<=o.top?!1:"bottom":n-r>=u+s?!1:"bottom";var f=null==this.affixed,e=f?u:o.top,h=f?s:t;return null!=i&&i>=e?"top":null!=r&&e+h>=n-r?"bottom":!1},t.prototype.getPinnedOffset=function(){if(this.pinnedOffset)return this.pinnedOffset;this.$element.removeClass(t.RESET).addClass("affix");var i=this.$target.scrollTop(),n=this.$element.offset();return this.pinnedOffset=n.top-i},t.prototype.checkPositionWithEventLoop=function(){setTimeout(n.proxy(this.checkPosition,this),1)},t.prototype.checkPosition=function(){var i,e,o;if(this.$element.is(":visible")){var s=this.$element.height(),r=this.options.offset,f=r.top,u=r.bottom,h=n("body").height();if("object"!=typeof r&&(u=f=r),"function"==typeof f&&(f=r.top(this.$element)),"function"==typeof u&&(u=r.bottom(this.$element)),i=this.getState(h,s,f,u),this.affixed!=i){if(null!=this.unpin&&this.$element.css("top",""),e="affix"+(i?"-"+i:""),o=n.Event(e+".bs.affix"),this.$element.trigger(o),o.isDefaultPrevented())return;this.affixed=i,this.unpin="bottom"==i?this.getPinnedOffset():null,this.$element.removeClass(t.RESET).addClass(e).trigger(e.replace("affix","affixed")+".bs.affix")}"bottom"==i&&this.$element.offset({top:h-s-u})}},i=n.fn.affix,n.fn.affix=r,n.fn.affix.Constructor=t,n.fn.affix.noConflict=function(){return n.fn.affix=i,this},n(window).on("load",function(){n('[data-spy="affix"]').each(function(){var i=n(this),t=i.data();t.offset=t.offset||{},null!=t.offsetBottom&&(t.offset.bottom=t.offsetBottom),null!=t.offsetTop&&(t.offset.top=t.offsetTop),r.call(i,t)})})}(jQuery)