/*!
* bootstrap v3.2.0 (http://getbootstrap.com)
* copyright 2011-2014 twitter, inc.
* licensed under mit (https://github.com/twbs/bootstrap/blob/master/license)
*/
if("undefined"==typeof jquery)throw new error("bootstrap's javascript requires jquery");+function(a){"use strict";function b(){var a=document.createelement("bootstrap"),b={webkittransition:"webkittransitionend",moztransition:"transitionend",otransition:"otransitionend otransitionend",transition:"transitionend"};for(var c in b)if(void 0!==a.style[c])return{end:b[c]};return!1}a.fn.emulatetransitionend=function(b){var c=!1,d=this;a(this).one("bstransitionend",function(){c=!0});var e=function(){c||a(d).trigger(a.support.transition.end)};return settimeout(e,b),this},a(function(){a.support.transition=b(),a.support.transition&&(a.event.special.bstransitionend={bindtype:a.support.transition.end,delegatetype:a.support.transition.end,handle:function(b){return a(b.target).is(this)?b.handleobj.handler.apply(this,arguments):void 0}})})}(jquery),+function(a){"use strict";function b(b){return this.each(function(){var c=a(this),e=c.data("bs.alert");e||c.data("bs.alert",e=new d(this)),"string"==typeof b&&e[b].call(c)})}var c='[data-dismiss="alert"]',d=function(b){a(b).on("click",c,this.close)};d.version="3.2.0",d.prototype.close=function(b){function c(){f.detach().trigger("closed.bs.alert").remove()}var d=a(this),e=d.attr("data-target");e||(e=d.attr("href"),e=e&&e.replace(/.*(?=#[^\s]*$)/,""));var f=a(e);b&&b.preventdefault(),f.length||(f=d.hasclass("alert")?d:d.parent()),f.trigger(b=a.event("close.bs.alert")),b.isdefaultprevented()||(f.removeclass("in"),a.support.transition&&f.hasclass("fade")?f.one("bstransitionend",c).emulatetransitionend(150):c())};var e=a.fn.alert;a.fn.alert=b,a.fn.alert.constructor=d,a.fn.alert.noconflict=function(){return a.fn.alert=e,this},a(document).on("click.bs.alert.data-api",c,d.prototype.close)}(jquery),+function(a){"use strict";function b(b){return this.each(function(){var d=a(this),e=d.data("bs.button"),f="object"==typeof b&&b;e||d.data("bs.button",e=new c(this,f)),"toggle"==b?e.toggle():b&&e.setstate(b)})}var c=function(b,d){this.$element=a(b),this.options=a.extend({},c.defaults,d),this.isloading=!1};c.version="3.2.0",c.defaults={loadingtext:"loading..."},c.prototype.setstate=function(b){var c="disabled",d=this.$element,e=d.is("input")?"val":"html",f=d.data();b+="text",null==f.resettext&&d.data("resettext",d[e]()),d[e](null==f[b]?this.options[b]:f[b]),settimeout(a.proxy(function(){"loadingtext"==b?(this.isloading=!0,d.addclass(c).attr(c,c)):this.isloading&&(this.isloading=!1,d.removeclass(c).removeattr(c))},this),0)},c.prototype.toggle=function(){var a=!0,b=this.$element.closest('[data-toggle="buttons"]');if(b.length){var c=this.$element.find("input");"radio"==c.prop("type")&&(c.prop("checked")&&this.$element.hasclass("active")?a=!1:b.find(".active").removeclass("active")),a&&c.prop("checked",!this.$element.hasclass("active")).trigger("change")}a&&this.$element.toggleclass("active")};var d=a.fn.button;a.fn.button=b,a.fn.button.constructor=c,a.fn.button.noconflict=function(){return a.fn.button=d,this},a(document).on("click.bs.button.data-api",'[data-toggle^="button"]',function(c){var d=a(c.target);d.hasclass("btn")||(d=d.closest(".btn")),b.call(d,"toggle"),c.preventdefault()})}(jquery),+function(a){"use strict";function b(b){return this.each(function(){var d=a(this),e=d.data("bs.carousel"),f=a.extend({},c.defaults,d.data(),"object"==typeof b&&b),g="string"==typeof b?b:f.slide;e||d.data("bs.carousel",e=new c(this,f)),"number"==typeof b?e.to(b):g?e[g]():f.interval&&e.pause().cycle()})}var c=function(b,c){this.$element=a(b).on("keydown.bs.carousel",a.proxy(this.keydown,this)),this.$indicators=this.$element.find(".carousel-indicators"),this.options=c,this.paused=this.sliding=this.interval=this.$active=this.$items=null,"hover"==this.options.pause&&this.$element.on("mouseenter.bs.carousel",a.proxy(this.pause,this)).on("mouseleave.bs.carousel",a.proxy(this.cycle,this))};c.version="3.2.0",c.defaults={interval:5e3,pause:"hover",wrap:!0},c.prototype.keydown=function(a){switch(a.which){case 37:this.prev();break;case 39:this.next();break;default:return}a.preventdefault()},c.prototype.cycle=function(b){return b||(this.paused=!1),this.interval&&clearinterval(this.interval),this.options.interval&&!this.paused&&(this.interval=setinterval(a.proxy(this.next,this),this.options.interval)),this},c.prototype.getitemindex=function(a){return this.$items=a.parent().children(".item"),this.$items.index(a||this.$active)},c.prototype.to=function(b){var c=this,d=this.getitemindex(this.$active=this.$element.find(".item.active"));return b>this.$items.length-1||0>b?void 0:this.sliding?this.$element.one("slid.bs.carousel",function(){c.to(b)}):d==b?this.pause().cycle():this.slide(b>d?"next":"prev",a(this.$items[b]))},c.prototype.pause=function(b){return b||(this.paused=!0),this.$element.find(".next, .prev").length&&a.support.transition&&(this.$element.trigger(a.support.transition.end),this.cycle(!0)),this.interval=clearinterval(this.interval),this},c.prototype.next=function(){return this.sliding?void 0:this.slide("next")},c.prototype.prev=function(){return this.sliding?void 0:this.slide("prev")},c.prototype.slide=function(b,c){var d=this.$element.find(".item.active"),e=c||d[b](),f=this.interval,g="next"==b?"left":"right",h="next"==b?"first":"last",i=this;if(!e.length){if(!this.options.wrap)return;e=this.$element.find(".item")[h]()}if(e.hasclass("active"))return this.sliding=!1;var j=e[0],k=a.event("slide.bs.carousel",{relatedtarget:j,direction:g});if(this.$element.trigger(k),!k.isdefaultprevented()){if(this.sliding=!0,f&&this.pause(),this.$indicators.length){this.$indicators.find(".active").removeclass("active");var l=a(this.$indicators.children()[this.getitemindex(e)]);l&&l.addclass("active")}var m=a.event("slid.bs.carousel",{relatedtarget:j,direction:g});return a.support.transition&&this.$element.hasclass("slide")?(e.addclass(b),e[0].offsetwidth,d.addclass(g),e.addclass(g),d.one("bstransitionend",function(){e.removeclass([b,g].join(" ")).addclass("active"),d.removeclass(["active",g].join(" ")),i.sliding=!1,settimeout(function(){i.$element.trigger(m)},0)}).emulatetransitionend(1e3*d.css("transition-duration").slice(0,-1))):(d.removeclass("active"),e.addclass("active"),this.sliding=!1,this.$element.trigger(m)),f&&this.cycle(),this}};var d=a.fn.carousel;a.fn.carousel=b,a.fn.carousel.constructor=c,a.fn.carousel.noconflict=function(){return a.fn.carousel=d,this},a(document).on("click.bs.carousel.data-api","[data-slide], [data-slide-to]",function(c){var d,e=a(this),f=a(e.attr("data-target")||(d=e.attr("href"))&&d.replace(/.*(?=#[^\s]+$)/,""));if(f.hasclass("carousel")){var g=a.extend({},f.data(),e.data()),h=e.attr("data-slide-to");h&&(g.interval=!1),b.call(f,g),h&&f.data("bs.carousel").to(h),c.preventdefault()}}),a(window).on("load",function(){a('[data-ride="carousel"]').each(function(){var c=a(this);b.call(c,c.data())})})}(jquery),+function(a){"use strict";function b(b){return this.each(function(){var d=a(this),e=d.data("bs.collapse"),f=a.extend({},c.defaults,d.data(),"object"==typeof b&&b);!e&&f.toggle&&"show"==b&&(b=!b),e||d.data("bs.collapse",e=new c(this,f)),"string"==typeof b&&e[b]()})}var c=function(b,d){this.$element=a(b),this.options=a.extend({},c.defaults,d),this.transitioning=null,this.options.parent&&(this.$parent=a(this.options.parent)),this.options.toggle&&this.toggle()};c.version="3.2.0",c.defaults={toggle:!0},c.prototype.dimension=function(){var a=this.$element.hasclass("width");return a?"width":"height"},c.prototype.show=function(){if(!this.transitioning&&!this.$element.hasclass("in")){var c=a.event("show.bs.collapse");if(this.$element.trigger(c),!c.isdefaultprevented()){var d=this.$parent&&this.$parent.find("> .panel > .in");if(d&&d.length){var e=d.data("bs.collapse");if(e&&e.transitioning)return;b.call(d,"hide"),e||d.data("bs.collapse",null)}var f=this.dimension();this.$element.removeclass("collapse").addclass("collapsing")[f](0),this.transitioning=1;var g=function(){this.$element.removeclass("collapsing").addclass("collapse in")[f](""),this.transitioning=0,this.$element.trigger("shown.bs.collapse")};if(!a.support.transition)return g.call(this);var h=a.camelcase(["scroll",f].join("-"));this.$element.one("bstransitionend",a.proxy(g,this)).emulatetransitionend(350)[f](this.$element[0][h])}}},c.prototype.hide=function(){if(!this.transitioning&&this.$element.hasclass("in")){var b=a.event("hide.bs.collapse");if(this.$element.trigger(b),!b.isdefaultprevented()){var c=this.dimension();this.$element[c](this.$element[c]())[0].offsetheight,this.$element.addclass("collapsing").removeclass("collapse").removeclass("in"),this.transitioning=1;var d=function(){this.transitioning=0,this.$element.trigger("hidden.bs.collapse").removeclass("collapsing").addclass("collapse")};return a.support.transition?void this.$element[c](0).one("bstransitionend",a.proxy(d,this)).emulatetransitionend(350):d.call(this)}}},c.prototype.toggle=function(){this[this.$element.hasclass("in")?"hide":"show"]()};var d=a.fn.collapse;a.fn.collapse=b,a.fn.collapse.constructor=c,a.fn.collapse.noconflict=function(){return a.fn.collapse=d,this},a(document).on("click.bs.collapse.data-api",'[data-toggle="collapse"]',function(c){var d,e=a(this),f=e.attr("data-target")||c.preventdefault()||(d=e.attr("href"))&&d.replace(/.*(?=#[^\s]+$)/,""),g=a(f),h=g.data("bs.collapse"),i=h?"toggle":e.data(),j=e.attr("data-parent"),k=j&&a(j);h&&h.transitioning||(k&&k.find('[data-toggle="collapse"][data-parent="'+j+'"]').not(e).addclass("collapsed"),e[g.hasclass("in")?"addclass":"removeclass"]("collapsed")),b.call(g,i)})}(jquery),+function(a){"use strict";function b(b){b&&3===b.which||(a(e).remove(),a(f).each(function(){var d=c(a(this)),e={relatedtarget:this};d.hasclass("open")&&(d.trigger(b=a.event("hide.bs.dropdown",e)),b.isdefaultprevented()||d.removeclass("open").trigger("hidden.bs.dropdown",e))}))}function c(b){var c=b.attr("data-target");c||(c=b.attr("href"),c=c&&/#[a-za-z]/.test(c)&&c.replace(/.*(?=#[^\s]*$)/,""));var d=c&&a(c);return d&&d.length?d:b.parent()}function d(b){return this.each(function(){var c=a(this),d=c.data("bs.dropdown");d||c.data("bs.dropdown",d=new g(this)),"string"==typeof b&&d[b].call(c)})}var e=".dropdown-backdrop",f='[data-toggle="dropdown"]',g=function(b){a(b).on("click.bs.dropdown",this.toggle)};g.version="3.2.0",g.prototype.toggle=function(d){var e=a(this);if(!e.is(".disabled, :disabled")){var f=c(e),g=f.hasclass("open");if(b(),!g){"ontouchstart"in document.documentelement&&!f.closest(".navbar-nav").length&&a('
').insertafter(a(this)).on("click",b);var h={relatedtarget:this};if(f.trigger(d=a.event("show.bs.dropdown",h)),d.isdefaultprevented())return;e.trigger("focus"),f.toggleclass("open").trigger("shown.bs.dropdown",h)}return!1}},g.prototype.keydown=function(b){if(/(38|40|27)/.test(b.keycode)){var d=a(this);if(b.preventdefault(),b.stoppropagation(),!d.is(".disabled, :disabled")){var e=c(d),g=e.hasclass("open");if(!g||g&&27==b.keycode)return 27==b.which&&e.find(f).trigger("focus"),d.trigger("click");var h=" li:not(.divider):visible a",i=e.find('[role="menu"]'+h+', [role="listbox"]'+h);if(i.length){var j=i.index(i.filter(":focus"));38==b.keycode&&j>0&&j--,40==b.keycode&&j').appendto(this.$body),this.$element.on("click.dismiss.bs.modal",a.proxy(function(a){a.target===a.currenttarget&&("static"==this.options.backdrop?this.$element[0].focus.call(this.$element[0]):this.hide.call(this))},this)),e&&this.$backdrop[0].offsetwidth,this.$backdrop.addclass("in"),!b)return;e?this.$backdrop.one("bstransitionend",b).emulatetransitionend(150):b()}else if(!this.isshown&&this.$backdrop){this.$backdrop.removeclass("in");var f=function(){c.removebackdrop(),b&&b()};a.support.transition&&this.$element.hasclass("fade")?this.$backdrop.one("bstransitionend",f).emulatetransitionend(150):f()}else b&&b()},c.prototype.checkscrollbar=function(){document.body.clientwidth>=window.innerwidth||(this.scrollbarwidth=this.scrollbarwidth||this.measurescrollbar())},c.prototype.setscrollbar=function(){var a=parseint(this.$body.css("padding-right")||0,10);this.scrollbarwidth&&this.$body.css("padding-right",a+this.scrollbarwidth)},c.prototype.resetscrollbar=function(){this.$body.css("padding-right","")},c.prototype.measurescrollbar=function(){var a=document.createelement("div");a.classname="modal-scrollbar-measure",this.$body.append(a);var b=a.offsetwidth-a.clientwidth;return this.$body[0].removechild(a),b};var d=a.fn.modal;a.fn.modal=b,a.fn.modal.constructor=c,a.fn.modal.noconflict=function(){return a.fn.modal=d,this},a(document).on("click.bs.modal.data-api",'[data-toggle="modal"]',function(c){var d=a(this),e=d.attr("href"),f=a(d.attr("data-target")||e&&e.replace(/.*(?=#[^\s]+$)/,"")),g=f.data("bs.modal")?"toggle":a.extend({remote:!/#/.test(e)&&e},f.data(),d.data());d.is("a")&&c.preventdefault(),f.one("show.bs.modal",function(a){a.isdefaultprevented()||f.one("hidden.bs.modal",function(){d.is(":visible")&&d.trigger("focus")})}),b.call(f,g,this)})}(jquery),+function(a){"use strict";function b(b){return this.each(function(){var d=a(this),e=d.data("bs.tooltip"),f="object"==typeof b&&b;(e||"destroy"!=b)&&(e||d.data("bs.tooltip",e=new c(this,f)),"string"==typeof b&&e[b]())})}var c=function(a,b){this.type=this.options=this.enabled=this.timeout=this.hoverstate=this.$element=null,this.init("tooltip",a,b)};c.version="3.2.0",c.defaults={animation:!0,placement:"top",selector:!1,template:'',trigger:"hover focus",title:"",delay:0,html:!1,container:!1,viewport:{selector:"body",padding:0}},c.prototype.init=function(b,c,d){this.enabled=!0,this.type=b,this.$element=a(c),this.options=this.getoptions(d),this.$viewport=this.options.viewport&&a(this.options.viewport.selector||this.options.viewport);for(var e=this.options.trigger.split(" "),f=e.length;f--;){var g=e[f];if("click"==g)this.$element.on("click."+this.type,this.options.selector,a.proxy(this.toggle,this));else if("manual"!=g){var h="hover"==g?"mouseenter":"focusin",i="hover"==g?"mouseleave":"focusout";this.$element.on(h+"."+this.type,this.options.selector,a.proxy(this.enter,this)),this.$element.on(i+"."+this.type,this.options.selector,a.proxy(this.leave,this))}}this.options.selector?this._options=a.extend({},this.options,{trigger:"manual",selector:""}):this.fixtitle()},c.prototype.getdefaults=function(){return c.defaults},c.prototype.getoptions=function(b){return b=a.extend({},this.getdefaults(),this.$element.data(),b),b.delay&&"number"==typeof b.delay&&(b.delay={show:b.delay,hide:b.delay}),b},c.prototype.getdelegateoptions=function(){var b={},c=this.getdefaults();return this._options&&a.each(this._options,function(a,d){c[a]!=d&&(b[a]=d)}),b},c.prototype.enter=function(b){var c=b instanceof this.constructor?b:a(b.currenttarget).data("bs."+this.type);return c||(c=new this.constructor(b.currenttarget,this.getdelegateoptions()),a(b.currenttarget).data("bs."+this.type,c)),cleartimeout(c.timeout),c.hoverstate="in",c.options.delay&&c.options.delay.show?void(c.timeout=settimeout(function(){"in"==c.hoverstate&&c.show()},c.options.delay.show)):c.show()},c.prototype.leave=function(b){var c=b instanceof this.constructor?b:a(b.currenttarget).data("bs."+this.type);return c||(c=new this.constructor(b.currenttarget,this.getdelegateoptions()),a(b.currenttarget).data("bs."+this.type,c)),cleartimeout(c.timeout),c.hoverstate="out",c.options.delay&&c.options.delay.hide?void(c.timeout=settimeout(function(){"out"==c.hoverstate&&c.hide()},c.options.delay.hide)):c.hide()},c.prototype.show=function(){var b=a.event("show.bs."+this.type);if(this.hascontent()&&this.enabled){this.$element.trigger(b);var c=a.contains(document.documentelement,this.$element[0]);if(b.isdefaultprevented()||!c)return;var d=this,e=this.tip(),f=this.getuid(this.type);this.setcontent(),e.attr("id",f),this.$element.attr("aria-describedby",f),this.options.animation&&e.addclass("fade");var g="function"==typeof this.options.placement?this.options.placement.call(this,e[0],this.$element[0]):this.options.placement,h=/\s?auto?\s?/i,i=h.test(g);i&&(g=g.replace(h,"")||"top"),e.detach().css({top:0,left:0,display:"block"}).addclass(g).data("bs."+this.type,this),this.options.container?e.appendto(this.options.container):e.insertafter(this.$element);var j=this.getposition(),k=e[0].offsetwidth,l=e[0].offsetheight;if(i){var m=g,n=this.$element.parent(),o=this.getposition(n);g="bottom"==g&&j.top+j.height+l-o.scroll>o.height?"top":"top"==g&&j.top-o.scroll-l<0?"bottom":"right"==g&&j.right+k>o.width?"left":"left"==g&&j.left-kg.top+g.height&&(e.top=g.top+g.height-i)}else{var j=b.left-f,k=b.left+f+c;jg.width&&(e.left=g.left+g.width-k)}return e},c.prototype.gettitle=function(){var a,b=this.$element,c=this.options;return a=b.attr("data-original-title")||("function"==typeof c.title?c.title.call(b[0]):c.title)},c.prototype.getuid=function(a){do a+=~~(1e6*math.random());while(document.getelementbyid(a));return a},c.prototype.tip=function(){return this.$tip=this.$tip||a(this.options.template)},c.prototype.arrow=function(){return this.$arrow=this.$arrow||this.tip().find(".tooltip-arrow")},c.prototype.validate=function(){this.$element[0].parentnode||(this.hide(),this.$element=null,this.options=null)},c.prototype.enable=function(){this.enabled=!0},c.prototype.disable=function(){this.enabled=!1},c.prototype.toggleenabled=function(){this.enabled=!this.enabled},c.prototype.toggle=function(b){var c=this;b&&(c=a(b.currenttarget).data("bs."+this.type),c||(c=new this.constructor(b.currenttarget,this.getdelegateoptions()),a(b.currenttarget).data("bs."+this.type,c))),c.tip().hasclass("in")?c.leave(c):c.enter(c)},c.prototype.destroy=function(){cleartimeout(this.timeout),this.hide().$element.off("."+this.type).removedata("bs."+this.type)};var d=a.fn.tooltip;a.fn.tooltip=b,a.fn.tooltip.constructor=c,a.fn.tooltip.noconflict=function(){return a.fn.tooltip=d,this}}(jquery),+function(a){"use strict";function b(b){return this.each(function(){var d=a(this),e=d.data("bs.popover"),f="object"==typeof b&&b;(e||"destroy"!=b)&&(e||d.data("bs.popover",e=new c(this,f)),"string"==typeof b&&e[b]())})}var c=function(a,b){this.init("popover",a,b)};if(!a.fn.tooltip)throw new error("popover requires tooltip.js");c.version="3.2.0",c.defaults=a.extend({},a.fn.tooltip.constructor.defaults,{placement:"right",trigger:"click",content:"",template:''}),c.prototype=a.extend({},a.fn.tooltip.constructor.prototype),c.prototype.constructor=c,c.prototype.getdefaults=function(){return c.defaults},c.prototype.setcontent=function(){var a=this.tip(),b=this.gettitle(),c=this.getcontent();a.find(".popover-title")[this.options.html?"html":"text"](b),a.find(".popover-content").empty()[this.options.html?"string"==typeof c?"html":"append":"text"](c),a.removeclass("fade top bottom left right in"),a.find(".popover-title").html()||a.find(".popover-title").hide()},c.prototype.hascontent=function(){return this.gettitle()||this.getcontent()},c.prototype.getcontent=function(){var a=this.$element,b=this.options;return a.attr("data-content")||("function"==typeof b.content?b.content.call(a[0]):b.content)},c.prototype.arrow=function(){return this.$arrow=this.$arrow||this.tip().find(".arrow")},c.prototype.tip=function(){return this.$tip||(this.$tip=a(this.options.template)),this.$tip};var d=a.fn.popover;a.fn.popover=b,a.fn.popover.constructor=c,a.fn.popover.noconflict=function(){return a.fn.popover=d,this}}(jquery),+function(a){"use strict";function b(c,d){var e=a.proxy(this.process,this);this.$body=a("body"),this.$scrollelement=a(a(c).is("body")?window:c),this.options=a.extend({},b.defaults,d),this.selector=(this.options.target||"")+" .nav li > a",this.offsets=[],this.targets=[],this.activetarget=null,this.scrollheight=0,this.$scrollelement.on("scroll.bs.scrollspy",e),this.refresh(),this.process()}function c(c){return this.each(function(){var d=a(this),e=d.data("bs.scrollspy"),f="object"==typeof c&&c;e||d.data("bs.scrollspy",e=new b(this,f)),"string"==typeof c&&e[c]()})}b.version="3.2.0",b.defaults={offset:10},b.prototype.getscrollheight=function(){return this.$scrollelement[0].scrollheight||math.max(this.$body[0].scrollheight,document.documentelement.scrollheight)},b.prototype.refresh=function(){var b="offset",c=0;a.iswindow(this.$scrollelement[0])||(b="position",c=this.$scrollelement.scrolltop()),this.offsets=[],this.targets=[],this.scrollheight=this.getscrollheight();var d=this;this.$body.find(this.selector).map(function(){var d=a(this),e=d.data("target")||d.attr("href"),f=/^#./.test(e)&&a(e);return f&&f.length&&f.is(":visible")&&[[f[b]().top+c,e]]||null}).sort(function(a,b){return a[0]-b[0]}).each(function(){d.offsets.push(this[0]),d.targets.push(this[1])})},b.prototype.process=function(){var a,b=this.$scrollelement.scrolltop()+this.options.offset,c=this.getscrollheight(),d=this.options.offset+c-this.$scrollelement.height(),e=this.offsets,f=this.targets,g=this.activetarget;if(this.scrollheight!=c&&this.refresh(),b>=d)return g!=(a=f[f.length-1])&&this.activate(a);if(g&&b<=e[0])return g!=(a=f[0])&&this.activate(a);for(a=e.length;a--;)g!=f[a]&&b>=e[a]&&(!e[a+1]||b<=e[a+1])&&this.activate(f[a])},b.prototype.activate=function(b){this.activetarget=b,a(this.selector).parentsuntil(this.options.target,".active").removeclass("active");var c=this.selector+'[data-target="'+b+'"],'+this.selector+'[href="'+b+'"]',d=a(c).parents("li").addclass("active");d.parent(".dropdown-menu").length&&(d=d.closest("li.dropdown").addclass("active")),d.trigger("activate.bs.scrollspy")};var d=a.fn.scrollspy;a.fn.scrollspy=c,a.fn.scrollspy.constructor=b,a.fn.scrollspy.noconflict=function(){return a.fn.scrollspy=d,this},a(window).on("load.bs.scrollspy.data-api",function(){a('[data-spy="scroll"]').each(function(){var b=a(this);c.call(b,b.data())})})}(jquery),+function(a){"use strict";function b(b){return this.each(function(){var d=a(this),e=d.data("bs.tab");e||d.data("bs.tab",e=new c(this)),"string"==typeof b&&e[b]()})}var c=function(b){this.element=a(b)};c.version="3.2.0",c.prototype.show=function(){var b=this.element,c=b.closest("ul:not(.dropdown-menu)"),d=b.data("target");if(d||(d=b.attr("href"),d=d&&d.replace(/.*(?=#[^\s]*$)/,"")),!b.parent("li").hasclass("active")){var e=c.find(".active:last a")[0],f=a.event("show.bs.tab",{relatedtarget:e});if(b.trigger(f),!f.isdefaultprevented()){var g=a(d);this.activate(b.closest("li"),c),this.activate(g,g.parent(),function(){b.trigger({type:"shown.bs.tab",relatedtarget:e})})}}},c.prototype.activate=function(b,c,d){function e(){f.removeclass("active").find("> .dropdown-menu > .active").removeclass("active"),b.addclass("active"),g?(b[0].offsetwidth,b.addclass("in")):b.removeclass("fade"),b.parent(".dropdown-menu")&&b.closest("li.dropdown").addclass("active"),d&&d()}var f=c.find("> .active"),g=d&&a.support.transition&&f.hasclass("fade");g?f.one("bstransitionend",e).emulatetransitionend(150):e(),f.removeclass("in")};var d=a.fn.tab;a.fn.tab=b,a.fn.tab.constructor=c,a.fn.tab.noconflict=function(){return a.fn.tab=d,this},a(document).on("click.bs.tab.data-api",'[data-toggle="tab"], [data-toggle="pill"]',function(c){c.preventdefault(),b.call(a(this),"show")})}(jquery),+function(a){"use strict";function b(b){return this.each(function(){var d=a(this),e=d.data("bs.affix"),f="object"==typeof b&&b;e||d.data("bs.affix",e=new c(this,f)),"string"==typeof b&&e[b]()})}var c=function(b,d){this.options=a.extend({},c.defaults,d),this.$target=a(this.options.target).on("scroll.bs.affix.data-api",a.proxy(this.checkposition,this)).on("click.bs.affix.data-api",a.proxy(this.checkpositionwitheventloop,this)),this.$element=a(b),this.affixed=this.unpin=this.pinnedoffset=null,this.checkposition()};c.version="3.2.0",c.reset="affix affix-top affix-bottom",c.defaults={offset:0,target:window},c.prototype.getpinnedoffset=function(){if(this.pinnedoffset)return this.pinnedoffset;this.$element.removeclass(c.reset).addclass("affix");var a=this.$target.scrolltop(),b=this.$element.offset();return this.pinnedoffset=b.top-a},c.prototype.checkpositionwitheventloop=function(){settimeout(a.proxy(this.checkposition,this),1)},c.prototype.checkposition=function(){if(this.$element.is(":visible")){var b=a(document).height(),d=this.$target.scrolltop(),e=this.$element.offset(),f=this.options.offset,g=f.top,h=f.bottom;"object"!=typeof f&&(h=g=f),"function"==typeof g&&(g=f.top(this.$element)),"function"==typeof h&&(h=f.bottom(this.$element));var i=null!=this.unpin&&d+this.unpin<=e.top?!1:null!=h&&e.top+this.$element.height()>=b-h?"bottom":null!=g&&g>=d?"top":!1;if(this.affixed!==i){null!=this.unpin&&this.$element.css("top","");var j="affix"+(i?"-"+i:""),k=a.event(j+".bs.affix");this.$element.trigger(k),k.isdefaultprevented()||(this.affixed=i,this.unpin="bottom"==i?this.getpinnedoffset():null,this.$element.removeclass(c.reset).addclass(j).trigger(a.event(j.replace("affix","affixed"))),"bottom"==i&&this.$element.offset({top:b-this.$element.height()-h}))}}};var d=a.fn.affix;a.fn.affix=b,a.fn.affix.constructor=c,a.fn.affix.noconflict=function(){return a.fn.affix=d,this},a(window).on("load",function(){a('[data-spy="affix"]').each(function(){var c=a(this),d=c.data();d.offset=d.offset||{},d.offsetbottom&&(d.offset.bottom=d.offsetbottom),d.offsettop&&(d.offset.top=d.offsettop),b.call(c,d)})})}(jquery);