if("undefined"==typeof jQuery)throw new Error("Bootstrap's JavaScript requires jQuery");+function(t){"use strict";var e=t.fn.jquery.split(" ")[0].split(".");if(e[0]<2&&e[1]<9||1==e[0]&&9==e[1]&&e[2]<1||e[0]>3)throw new Error("Bootstrap's JavaScript requires jQuery version 1.9.1 or higher, but lower than version 4")}(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.$dialog=this.$element.find(".modal-dialog"),this.$backdrop=null,this.isShown=null,this.originalBodyPad=null,this.scrollbarWidth=0,this.ignoreBackdropClick=!1,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.3.7",i.TRANSITION_DURATION=300,i.BACKDROP_TRANSITION_DURATION=150,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 o=this,s=t.Event("show.bs.modal",{relatedTarget:e});this.$element.trigger(s),this.isShown||s.isDefaultPrevented()||(this.isShown=!0,this.checkScrollbar(),this.setScrollbar(),this.$body.addClass("modal-open"),this.escape(),this.resize(),this.$element.on("click.dismiss.bs.modal",'[data-dismiss="modal"]',t.proxy(this.hide,this)),this.$dialog.on("mousedown.dismiss.bs.modal",function(){o.$element.one("mouseup.dismiss.bs.modal",function(e){t(e.target).is(o.$element)&&(o.ignoreBackdropClick=!0)})}),this.backdrop(function(){var s=t.support.transition&&o.$element.hasClass("fade");o.$element.parent().length||o.$element.appendTo(o.$body),o.$element.show().scrollTop(0),o.adjustDialog(),s&&o.$element[0].offsetWidth,o.$element.addClass("in"),o.enforceFocus();var n=t.Event("shown.bs.modal",{relatedTarget:e});s?o.$dialog.one("bsTransitionEnd",function(){o.$element.trigger("focus").trigger(n)}).emulateTransitionEnd(i.TRANSITION_DURATION):o.$element.trigger("focus").trigger(n)}))},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.escape(),this.resize(),t(document).off("focusin.bs.modal"),this.$element.removeClass("in").off("click.dismiss.bs.modal").off("mouseup.dismiss.bs.modal"),this.$dialog.off("mousedown.dismiss.bs.modal"),t.support.transition&&this.$element.hasClass("fade")?this.$element.one("bsTransitionEnd",t.proxy(this.hideModal,this)).emulateTransitionEnd(i.TRANSITION_DURATION):this.hideModal())},i.prototype.enforceFocus=function(){t(document).off("focusin.bs.modal").on("focusin.bs.modal",t.proxy(function(t){document===t.target||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("keydown.dismiss.bs.modal",t.proxy(function(t){27==t.which&&this.hide()},this)):this.isShown||this.$element.off("keydown.dismiss.bs.modal")},i.prototype.resize=function(){this.isShown?t(window).on("resize.bs.modal",t.proxy(this.handleUpdate,this)):t(window).off("resize.bs.modal")},i.prototype.hideModal=function(){var t=this;this.$element.hide(),this.backdrop(function(){t.$body.removeClass("modal-open"),t.resetAdjustments(),t.resetScrollbar(),t.$element.trigger("hidden.bs.modal")})},i.prototype.removeBackdrop=function(){this.$backdrop&&this.$backdrop.remove(),this.$backdrop=null},i.prototype.backdrop=function(e){var o=this,s=this.$element.hasClass("fade")?"fade":"";if(this.isShown&&this.options.backdrop){var n=t.support.transition&&s;if(this.$backdrop=t(document.createElement("div")).addClass("modal-backdrop "+s).appendTo(this.$body),this.$element.on("click.dismiss.bs.modal",t.proxy(function(t){return this.ignoreBackdropClick?void(this.ignoreBackdropClick=!1):void(t.target===t.currentTarget&&("static"==this.options.backdrop?this.$element[0].focus():this.hide()))},this)),n&&this.$backdrop[0].offsetWidth,this.$backdrop.addClass("in"),!e)return;n?this.$backdrop.one("bsTransitionEnd",e).emulateTransitionEnd(i.BACKDROP_TRANSITION_DURATION):e()}else if(!this.isShown&&this.$backdrop){this.$backdrop.removeClass("in");var r=function(){o.removeBackdrop(),e&&e()};t.support.transition&&this.$element.hasClass("fade")?this.$backdrop.one("bsTransitionEnd",r).emulateTransitionEnd(i.BACKDROP_TRANSITION_DURATION):r()}else e&&e()},i.prototype.handleUpdate=function(){this.adjustDialog()},i.prototype.adjustDialog=function(){var t=this.$element[0].scrollHeight>document.documentElement.clientHeight;this.$element.css({paddingLeft:!this.bodyIsOverflowing&&t?this.scrollbarWidth:"",paddingRight:this.bodyIsOverflowing&&!t?this.scrollbarWidth:""})},i.prototype.resetAdjustments=function(){this.$element.css({paddingLeft:"",paddingRight:""})},i.prototype.checkScrollbar=function(){var t=window.innerWidth;if(!t){var e=document.documentElement.getBoundingClientRect();t=e.right-Math.abs(e.left)}this.bodyIsOverflowing=document.body.clientWidth
',trigger:"hover focus",title:"",delay:0,html:!1,container:!1,viewport:{selector:"body",padding:0}},i.prototype.init=function(e,i,o){if(this.enabled=!0,this.type=e,this.$element=t(i),this.options=this.getOptions(o),this.$viewport=this.options.viewport&&t(t.isFunction(this.options.viewport)?this.options.viewport.call(this,this.$element):this.options.viewport.selector||this.options.viewport),this.inState={click:!1,hover:!1,focus:!1},this.$element[0]instanceof document.constructor&&!this.options.selector)throw new Error("`selector` option must be specified when initializing "+this.type+" on the window.document object!");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)),e instanceof t.Event&&(i.inState["focusin"==e.type?"focus":"hover"]=!0),i.tip().hasClass("in")||"in"==i.hoverState?void(i.hoverState="in"):(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.isInStateTrue=function(){for(var t in this.inState)if(this.inState[t])return!0;return!1},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)),e instanceof t.Event&&(i.inState["focusout"==e.type?"focus":"hover"]=!1),i.isInStateTrue()?void 0:(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 o=t.contains(this.$element[0].ownerDocument.documentElement,this.$element[0]);if(e.isDefaultPrevented()||!o)return;var s=this,n=this.tip(),r=this.getUID(this.type);this.setContent(),n.attr("id",r),this.$element.attr("aria-describedby",r),this.options.animation&&n.addClass("fade");var a="function"==typeof this.options.placement?this.options.placement.call(this,n[0],this.$element[0]):this.options.placement,l=/\s?auto?\s?/i,d=l.test(a);d&&(a=a.replace(l,"")||"top"),n.detach().css({top:0,left:0,display:"block"}).addClass(a).data("bs."+this.type,this),this.options.container?n.appendTo(this.options.container):n.insertAfter(this.$element),this.$element.trigger("inserted.bs."+this.type);var c=this.getPosition(),p=n[0].offsetWidth,u=n[0].offsetHeight;if(d){var h=a,f=this.getPosition(this.$viewport);a="bottom"==a&&c.bottom+u>f.bottom?"top":"top"==a&&c.top-uf.width?"left":"left"==a&&c.left-pr.top+r.height&&(s.top=r.top+r.height-l)}else{var d=e.left-n,c=e.left+n+i;dr.right&&(s.left=r.left+r.width-c)}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(){if(!this.$tip&&(this.$tip=t(this.options.template),1!=this.$tip.length))throw new Error(this.type+" `template` option must consist of exactly 1 top-level element!");return this.$tip},i.prototype.arrow=function(){return this.$arrow=this.$arrow||this.tip().find(".tooltip-arrow")},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))),e?(i.inState.click=!i.inState.click,i.isInStateTrue()?i.enter(i):i.leave(i)):i.tip().hasClass("in")?i.leave(i):i.enter(i)},i.prototype.destroy=function(){var t=this;clearTimeout(this.timeout),this.hide(function(){t.$element.off("."+t.type).removeData("bs."+t.type),t.$tip&&t.$tip.detach(),t.$tip=null,t.$arrow=null,t.$viewport=null,t.$element=null})};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|hide/.test(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.3.7",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").children().detach().end()[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")};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.3.7",i.TRANSITION_DURATION=150,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"),n=t.Event("hide.bs.tab",{relatedTarget:e[0]}),r=t.Event("show.bs.tab",{relatedTarget:s[0]});if(s.trigger(n),e.trigger(r),!r.isDefaultPrevented()&&!n.isDefaultPrevented()){var a=t(o);this.activate(e.closest("li"),i),this.activate(a,a.parent(),function(){s.trigger({type:"hidden.bs.tab",relatedTarget:e[0]}),e.trigger({type:"shown.bs.tab",relatedTarget:s[0]})})}}},i.prototype.activate=function(e,o,s){function n(){r.removeClass("active").find("> .dropdown-menu > .active").removeClass("active").end().find('[data-toggle="tab"]').attr("aria-expanded",!1),e.addClass("active").find('[data-toggle="tab"]').attr("aria-expanded",!0),a?(e[0].offsetWidth,e.addClass("in")):e.removeClass("fade"),e.parent(".dropdown-menu").length&&e.closest("li.dropdown").addClass("active").end().find('[data-toggle="tab"]').attr("aria-expanded",!0),s&&s()}var r=o.find("> .active"),a=s&&t.support.transition&&(r.length&&r.hasClass("fade")||!!o.find("> .fade").length);r.length&&a?r.one("bsTransitionEnd",n).emulateTransitionEnd(i.TRANSITION_DURATION):n(),r.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};var s=function(i){i.preventDefault(),e.call(t(this),"show")};t(document).on("click.bs.tab.data-api",'[data-toggle="tab"]',s).on("click.bs.tab.data-api",'[data-toggle="pill"]',s)}(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=null,this.unpin=null,this.pinnedOffset=null,this.checkPosition()};i.VERSION="3.3.7",i.RESET="affix affix-top affix-bottom",i.DEFAULTS={offset:0,target:window},i.prototype.getState=function(t,e,i,o){var s=this.$target.scrollTop(),n=this.$element.offset(),r=this.$target.height();if(null!=i&&"top"==this.affixed)return i>s&&"top";if("bottom"==this.affixed)return null!=i?!(s+this.unpin<=n.top)&&"bottom":!(t-o>=s+r)&&"bottom";var a=null==this.affixed,l=a?s:n.top,d=a?r:e;return null!=i&&i>=s?"top":null!=o&&l+d>=t-o&&"bottom"},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=this.$element.height(),o=this.options.offset,s=o.top,n=o.bottom,r=Math.max(t(document).height(),t(document.body).height());"object"!=typeof o&&(n=s=o),"function"==typeof s&&(s=o.top(this.$element)),"function"==typeof n&&(n=o.bottom(this.$element));var a=this.getState(r,e,s,n);if(this.affixed!=a){null!=this.unpin&&this.$element.css("top","");var l="affix"+(a?"-"+a:""),d=t.Event(l+".bs.affix");if(this.$element.trigger(d),d.isDefaultPrevented())return;this.affixed=a,this.unpin="bottom"==a?this.getPinnedOffset():null,this.$element.removeClass(i.RESET).addClass(l).trigger(l.replace("affix","affixed")+".bs.affix")}"bottom"==a&&this.$element.offset({top:r-e-n})}};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||{},null!=o.offsetBottom&&(o.offset.bottom=o.offsetBottom),null!=o.offsetTop&&(o.offset.top=o.offsetTop),e.call(i,o)})})}(jQuery),+function(t){"use strict";function e(e){var i,o=e.attr("data-target")||(i=e.attr("href"))&&i.replace(/.*(?=#[^\s]+$)/,"");return t(o)}function i(e){return this.each(function(){var i=t(this),s=i.data("bs.collapse"),n=t.extend({},o.DEFAULTS,i.data(),"object"==typeof e&&e);!s&&n.toggle&&/show|hide/.test(e)&&(n.toggle=!1),s||i.data("bs.collapse",s=new o(this,n)),"string"==typeof e&&s[e]()})}var o=function(e,i){this.$element=t(e),this.options=t.extend({},o.DEFAULTS,i),this.$trigger=t('[data-toggle="collapse"][href="#'+e.id+'"],[data-toggle="collapse"][data-target="#'+e.id+'"]'),this.transitioning=null,this.options.parent?this.$parent=this.getParent():this.addAriaAndCollapsedClass(this.$element,this.$trigger),this.options.toggle&&this.toggle()};o.VERSION="3.3.7",o.TRANSITION_DURATION=350,o.DEFAULTS={toggle:!0},o.prototype.dimension=function(){var t=this.$element.hasClass("width");return t?"width":"height"},o.prototype.show=function(){if(!this.transitioning&&!this.$element.hasClass("in")){var e,s=this.$parent&&this.$parent.children(".panel").children(".in, .collapsing");if(!(s&&s.length&&(e=s.data("bs.collapse"),e&&e.transitioning))){var n=t.Event("show.bs.collapse");if(this.$element.trigger(n),!n.isDefaultPrevented()){s&&s.length&&(i.call(s,"hide"),e||s.data("bs.collapse",null));var r=this.dimension();this.$element.removeClass("collapse").addClass("collapsing")[r](0).attr("aria-expanded",!0),this.$trigger.removeClass("collapsed").attr("aria-expanded",!0),this.transitioning=1;var a=function(){this.$element.removeClass("collapsing").addClass("collapse in")[r](""),this.transitioning=0,this.$element.trigger("shown.bs.collapse")};if(!t.support.transition)return a.call(this);var l=t.camelCase(["scroll",r].join("-"));this.$element.one("bsTransitionEnd",t.proxy(a,this)).emulateTransitionEnd(o.TRANSITION_DURATION)[r](this.$element[0][l])}}}},o.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 in").attr("aria-expanded",!1),this.$trigger.addClass("collapsed").attr("aria-expanded",!1),this.transitioning=1;var s=function(){this.transitioning=0,this.$element.removeClass("collapsing").addClass("collapse").trigger("hidden.bs.collapse")};return t.support.transition?void this.$element[i](0).one("bsTransitionEnd",t.proxy(s,this)).emulateTransitionEnd(o.TRANSITION_DURATION):s.call(this)}}},o.prototype.toggle=function(){this[this.$element.hasClass("in")?"hide":"show"]()},o.prototype.getParent=function(){return t(this.options.parent).find('[data-toggle="collapse"][data-parent="'+this.options.parent+'"]').each(t.proxy(function(i,o){var s=t(o);this.addAriaAndCollapsedClass(e(s),s)},this)).end()},o.prototype.addAriaAndCollapsedClass=function(t,e){var i=t.hasClass("in");t.attr("aria-expanded",i),e.toggleClass("collapsed",!i).attr("aria-expanded",i)};var s=t.fn.collapse;t.fn.collapse=i,t.fn.collapse.Constructor=o,t.fn.collapse.noConflict=function(){return t.fn.collapse=s,this},t(document).on("click.bs.collapse.data-api",'[data-toggle="collapse"]',function(o){var s=t(this);s.attr("data-target")||o.preventDefault();var n=e(s),r=n.data("bs.collapse"),a=r?"toggle":s.data();i.call(n,a)})}(jQuery),+function(t){"use strict";function e(i,o){this.$body=t(document.body),this.$scrollElement=t(t(i).is(document.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",t.proxy(this.process,this)),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.3.7",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=this,i="offset",o=0;this.offsets=[],this.targets=[],this.scrollHeight=this.getScrollHeight(),t.isWindow(this.$scrollElement[0])||(i="position",o=this.$scrollElement.scrollTop()),this.$body.find(this.selector).map(function(){var e=t(this),s=e.data("target")||e.attr("href"),n=/^#./.test(s)&&t(s);return n&&n.length&&n.is(":visible")&&[[n[i]().top+o,s]]||null}).sort(function(t,e){return t[0]-e[0]}).each(function(){e.offsets.push(this[0]),e.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[t]&&(void 0===s[t+1]||ePrevious',nextArrow:'',autoplay:!1,autoplaySpeed:3e3,centerMode:!1,centerPadding:"50px",cssEase:"ease",customPaging:function(e,i){return t('',tClose:"Close (Esc)",tLoading:"Loading...",autoFocusLast:!0}},t.fn.magnificPopup=function(e){I();var i=t(this);if("string"==typeof e)if("open"===e){var o,s=m?i.data("magnificPopup"):i[0].magnificPopup,n=parseInt(arguments[1],10)||0;s.items?o=s.items[n]:(o=i,s.delegate&&(o=o.find(s.delegate)),o=o.eq(n)),h._openClick({mfpEl:o},i,s)}else h.isOpen&&h[e].apply(h,Array.prototype.slice.call(arguments,1));else e=t.extend(!0,{},e),m?i.data("magnificPopup",e):i[0].magnificPopup=e,h.addGroup(i,e);return i};var A="inline",O,P,j,z=function(){j&&(P.after(j.addClass(O)).detach(),j=null)};t.magnificPopup.registerModule(A,{options:{hiddenClass:"hide",markup:"",tNotFound:"Content not found"},proto:{initInline:function(){h.types.push(A),T(e+"."+A,function(){z()})},getInline:function(e,i){if(z(),e.src){var o=h.st.inline,s=t(e.src);if(s.length){var n=s[0].parentNode;n&&n.tagName&&(P||(O=o.hiddenClass,P=S(O),O="mfp-"+O),j=s.after(P).detach().removeClass(O)),h.updateStatus("ready")}else h.updateStatus("error",o.tNotFound),s=t("
");return e.inlineElement=s,s}return h.updateStatus("ready"),h._parseMarkup(i,{},e),i}}});var H="ajax",M,N=function(){M&&t(document.body).removeClass(M)},D=function(){N(),h.req&&h.req.abort()};t.magnificPopup.registerModule(H,{options:{settings:null,cursor:"mfp-ajax-cur",tError:'The content could not be loaded.'},proto:{initAjax:function(){h.types.push(H),M=h.st.ajax.cursor,T(e+"."+H,D),T("BeforeChange."+H,D)},getAjax:function(e){M&&t(document.body).addClass(M),h.updateStatus("loading");var i=t.extend({url:e.src,success:function(i,o,s){var n={data:i,xhr:s};C("ParseAjax",n),h.appendContent(t(n.data),H),e.finished=!0,N(),h._setFocus(),setTimeout(function(){h.wrap.addClass(c)},16),h.updateStatus("ready"),C("AjaxContentAdded")},error:function(){N(),e.finished=e.loadError=!0,h.updateStatus("error",h.st.ajax.tError.replace("%url%",e.src))}},h.st.ajax.settings);return h.req=t.ajax(i),""}}});var L,_=function(e){if(e.data&&void 0!==e.data.title)return e.data.title;var i=h.st.image.titleSrc;if(i){if(t.isFunction(i))return i.call(h,e);if(e.el)return e.el.attr(i)||""}return""};t.magnificPopup.registerModule("image",{options:{markup:'
',cursor:"mfp-zoom-out-cur",titleSrc:"title",verticalFit:!0,tError:'The image could not be loaded.'},proto:{initImage:function(){var i=h.st.image,o=".image";h.types.push("image"),T(r+o,function(){"image"===h.currItem.type&&i.cursor&&t(document.body).addClass(i.cursor)}),T(e+o,function(){i.cursor&&t(document.body).removeClass(i.cursor),v.off("resize"+d)}),T("Resize"+o,h.resizeImage),h.isLowIE&&T("AfterChange",h.resizeImage)},resizeImage:function(){var t=h.currItem;if(t&&t.img&&h.st.image.verticalFit){var e=0;h.isLowIE&&(e=parseInt(t.img.css("padding-top"),10)+parseInt(t.img.css("padding-bottom"),10)),t.img.css("max-height",h.wH-e)}},_onImageHasSize:function(t){t.img&&(t.hasSize=!0,L&&clearInterval(L),t.isCheckingImgSize=!1,C("ImageHasSize",t),t.imgHidden&&(h.content&&h.content.removeClass("mfp-loading"),t.imgHidden=!1))},findImageSize:function(t){var e=0,i=t.img[0],o=function(s){L&&clearInterval(L),L=setInterval(function(){return i.naturalWidth>0?void h._onImageHasSize(t):(e>200&&clearInterval(L),e++,3===e?o(10):40===e?o(50):100===e&&o(500),void 0)},s)};o(1)},getImage:function(e,i){var o=0,s=function(){e&&(e.img[0].complete?(e.img.off(".mfploader"),e===h.currItem&&(h._onImageHasSize(e),h.updateStatus("ready")),e.hasSize=!0,e.loaded=!0,C("ImageLoadComplete")):(o++,o<200?setTimeout(s,100):n()))},n=function(){e&&(e.img.off(".mfploader"),e===h.currItem&&(h._onImageHasSize(e),h.updateStatus("error",r.tError.replace("%url%",e.src))),e.hasSize=!0,e.loaded=!0,e.loadError=!0)},r=h.st.image,a=i.find(".mfp-img");if(a.length){var l=document.createElement("img");l.className="mfp-img",e.el&&e.el.find("img").length&&(l.alt=e.el.find("img").attr("alt")),e.img=t(l).on("load.mfploader",s).on("error.mfploader",n),l.src=e.src,a.is("img")&&(e.img=e.img.clone()),l=e.img[0],l.naturalWidth>0?e.hasSize=!0:l.width||(e.hasSize=!1)}return h._parseMarkup(i,{title:_(e),img_replaceWith:e.img},e),h.resizeImage(),e.hasSize?(L&&clearInterval(L),e.loadError?(i.addClass("mfp-loading"),h.updateStatus("error",r.tError.replace("%url%",e.src))):(i.removeClass("mfp-loading"),h.updateStatus("ready")),i):(h.updateStatus("loading"),e.loading=!0,e.hasSize||(e.imgHidden=!0,i.addClass("mfp-loading"),h.findImageSize(e)),i)}}});var W,F=function(){return void 0===W&&(W=void 0!==document.createElement("p").style.MozTransform),W};t.magnificPopup.registerModule("zoom",{options:{enabled:!1,easing:"ease-in-out",duration:300,opener:function(t){return t.is("img")?t:t.find("img")}},proto:{initZoom:function(){var t=h.st.zoom,o=".zoom",s;if(t.enabled&&h.supportsTransition){var n=t.duration,r=function(e){var i=e.clone().removeAttr("style").removeAttr("class").addClass("mfp-animated-image"),o="all "+t.duration/1e3+"s "+t.easing,s={position:"fixed",zIndex:9999,left:0,top:0,"-webkit-backface-visibility":"hidden"},n="transition";return s["-webkit-"+n]=s["-moz-"+n]=s["-o-"+n]=s[n]=o,i.css(s),i},a=function(){h.content.css("visibility","visible")},l,d;T("BuildControls"+o,function(){if(h._allowZoom()){if(clearTimeout(l),h.content.css("visibility","hidden"),s=h._getItemToZoom(),!s)return void a();d=r(s),d.css(h._getOffset()),h.wrap.append(d),l=setTimeout(function(){d.css(h._getOffset(!0)),l=setTimeout(function(){a(),setTimeout(function(){d.remove(),s=d=null,C("ZoomAnimationEnded")},16)},n)},16)}}),T(i+o,function(){if(h._allowZoom()){if(clearTimeout(l),h.st.removalDelay=n,!s){if(s=h._getItemToZoom(),!s)return;d=r(s)}d.css(h._getOffset(!0)),h.wrap.append(d),h.content.css("visibility","hidden"),setTimeout(function(){d.css(h._getOffset())},16)}}),T(e+o,function(){h._allowZoom()&&(a(),d&&d.remove(),s=null)})}},_allowZoom:function(){return"image"===h.currItem.type},_getItemToZoom:function(){return!!h.currItem.hasSize&&h.currItem.img},_getOffset:function(e){var i;i=e?h.currItem.img:h.st.zoom.opener(h.currItem.el||h.currItem);var o=i.offset(),s=parseInt(i.css("padding-top"),10),n=parseInt(i.css("padding-bottom"),10);o.top-=t(window).scrollTop()-s;var r={width:i.width(),height:(m?i.innerHeight():i[0].offsetHeight)-n-s};return F()?r["-moz-transform"]=r.transform="translate("+o.left+"px,"+o.top+"px)":(r.left=o.left,r.top=o.top),r}}});var R="iframe",B="//about:blank",U=function(t){if(h.currTemplate[R]){var e=h.currTemplate[R].find("iframe");e.length&&(t||(e[0].src=B),h.isIE8&&e.css("display",t?"block":"none"))}};t.magnificPopup.registerModule(R,{options:{markup:'
',srcAction:"iframe_src",patterns:{youtube:{index:"youtube.com",id:"v=",src:"//www.youtube.com/embed/%id%?autoplay=1"},vimeo:{index:"vimeo.com/",id:"/",src:"//player.vimeo.com/video/%id%?autoplay=1"},gmaps:{index:"//maps.google.",src:"%id%&output=embed"}}},proto:{initIframe:function(){h.types.push(R),T("BeforeChange",function(t,e,i){e!==i&&(e===R?U():i===R&&U(!0))}),T(e+"."+R,function(){U()})},getIframe:function(e,i){var o=e.src,s=h.st.iframe;t.each(s.patterns,function(){if(o.indexOf(this.index)>-1)return this.id&&(o="string"==typeof this.id?o.substr(o.lastIndexOf(this.id)+this.id.length,o.length):this.id.call(this,o)),o=this.src.replace("%id%",o),!1});var n={};return s.srcAction&&(n[s.srcAction]=o),h._parseMarkup(i,n,e),h.updateStatus("ready"),i}}});var q=function(t){var e=h.items.length;return t>e-1?t-e:t<0?e+t:t},Q=function(t,e,i){return t.replace(/%curr%/gi,e+1).replace(/%total%/gi,i)};t.magnificPopup.registerModule("gallery",{options:{enabled:!1,arrowMarkup:'',preload:[0,2],navigateByImgClick:!0,arrows:!0,tPrev:"Previous (Left arrow key)",tNext:"Next (Right arrow key)",tCounter:"%curr% of %total%"},proto:{initGallery:function(){var i=h.st.gallery,o=".mfp-gallery";return h.direction=!0,!(!i||!i.enabled)&&(b+=" mfp-gallery",T(r+o,function(){i.navigateByImgClick&&h.wrap.on("click"+o,".mfp-img",function(){if(h.items.length>1)return h.next(),!1}),y.on("keydown"+o,function(t){37===t.keyCode?h.prev():39===t.keyCode&&h.next()})}),T("UpdateStatus"+o,function(t,e){e.text&&(e.text=Q(e.text,h.currItem.index,h.items.length))}),T(n+o,function(t,e,o,s){var n=h.items.length;o.counter=n>1?Q(i.tCounter,s.index,n):""}),T("BuildControls"+o,function(){if(h.items.length>1&&i.arrows&&!h.arrowLeft){var e=i.arrowMarkup,o=h.arrowLeft=t(e.replace(/%title%/gi,i.tPrev).replace(/%dir%/gi,"left")).addClass(u),s=h.arrowRight=t(e.replace(/%title%/gi,i.tNext).replace(/%dir%/gi,"right")).addClass(u);o.click(function(){h.prev()}),s.click(function(){h.next()}),h.container.append(o.add(s))}}),T(a+o,function(){h._preloadTimeout&&clearTimeout(h._preloadTimeout),h._preloadTimeout=setTimeout(function(){h.preloadNearbyImages(),h._preloadTimeout=null},16)}),T(e+o,function(){y.off(o),h.wrap.off("click"+o),h.arrowRight=h.arrowLeft=null}),void 0)},next:function(){h.direction=!0,h.index=q(h.index+1),h.updateItemHTML()},prev:function(){h.direction=!1,h.index=q(h.index-1),h.updateItemHTML()},goTo:function(t){h.direction=t>=h.index,h.index=t,h.updateItemHTML()},preloadNearbyImages:function(){var t=h.st.gallery.preload,e=Math.min(t[0],h.items.length),i=Math.min(t[1],h.items.length),o;for(o=1;o<=(h.direction?i:e);o++)h._preloadItem(h.index+o);for(o=1;o<=(h.direction?e:i);o++)h._preloadItem(h.index-o)},_preloadItem:function(e){if(e=q(e),!h.items[e].preloaded){var i=h.items[e];i.parsed||(i=h.parseEl(e)),C("LazyLoad",i),"image"===i.type&&(i.img=t('').on("load.mfploader",function(){i.hasSize=!0}).on("error.mfploader",function(){i.hasSize=!0,i.loadError=!0,C("LazyLoadError",i)}).attr("src",i.src)),i.preloaded=!0}}}});var Y="retina";t.magnificPopup.registerModule(Y,{options:{replaceSrc:function(t){return t.src.replace(/\.\w+$/,function(t){return"@2x"+t})},ratio:1},proto:{initRetina:function(){if(window.devicePixelRatio>1){var t=h.st.retina,e=t.ratio;e=isNaN(e)?e():e,e>1&&(T("ImageHasSize."+Y,function(t,i){i.img.css({"max-width":i.img[0].naturalWidth/e,width:"100%"})}),T("ElementParse."+Y,function(i,o){o.src=t.replaceSrc(o,e)}))}}}}),I()}),!function(t){"use strict";"function"==typeof define&&define.amd?define(["jquery"],t):jQuery&&!jQuery.fn.hoverIntent&&t(jQuery)}(function(t){"use strict";var e,i,o={interval:100,sensitivity:6,timeout:0},s=0,n=function(t){e=t.pageX,i=t.pageY},r=function(t,o,s,a){return Math.sqrt((s.pX-e)*(s.pX-e)+(s.pY-i)*(s.pY-i))-1,this.ktsuperfish("hide"),this.parents("."+t.hoverClass).length||(t.onIdle.call(a(this)),t.$path.length&&$.proxy(d,t.$path)())},p=function(){var t=$(this),i=l(t);e?$.proxy(c,t,i)():(clearTimeout(i.sfTimer),i.sfTimer=setTimeout($.proxy(c,t,i),i.delay))},u=function(t){var e=$(this),i=l(e),o=e.siblings(t.data.popUpSelector);return i.onHandleTouch.call(o)===!1?this:void(o.length>0&&o.is(":hidden")&&(e.one("click.ktsuperfish",!1),"MSPointerDown"===t.type||"pointerdown"===t.type?e.trigger("focus"):$.proxy(d,e.parent("li"))()))},h=function(t,o){var s="li:has("+o.popUpSelector+")";$.fn.hoverIntent&&!o.disableHI?t.hoverIntent(d,p,s):t.on("mouseenter.ktsuperfish",s,d).on("mouseleave.ktsuperfish",s,p);var n="MSPointerDown.ktsuperfish";e||(n+=" touchend.ktsuperfish"),i&&(n+=" mousedown.ktsuperfish"),t.on("focusin.ktsuperfish","li",d).on("focusout.ktsuperfish","li",p).on(n,"a",o,u)};return{hide:function(t){if(this.length){var e=this,i=l(e);if(!i)return this;var o=i.retainPath===!0?i.$path:"",s=e.find("li."+i.hoverClass).add(this).not(o).removeClass(i.hoverClass).children(i.popUpSelector),n=i.speedOut;if(t&&(s.show(),n=0),i.retainPath=!1,i.onBeforeHide.call(s)===!1)return this;s.stop(!0,!0).animate(i.animationOut,n,function(){var t=$(this);i.onHide.call(t)})}return this},show:function(){var t=l(this);if(!t)return this;var e=this.addClass(t.hoverClass),i=e.children(t.popUpSelector);return t.onBeforeShow.call(i)===!1?this:(i.stop(!0,!0).animate(t.animation,t.speed,function(){t.onShow.call(i)}),this)},destroy:function(){return this.each(function(){var e=$(this),i=e.data("sfOptions"),s;return!!i&&(s=e.find(i.popUpSelector).parent("li"),clearTimeout(i.sfTimer),o(e,i),n(s),r(e),e.off(".ktsuperfish").off(".hoverIntent"),s.children(i.popUpSelector).attr("style",function(t,e){return e.replace(/display[^;]+;?/g,"")}),i.$path.removeClass(i.hoverClass+" "+t.bcClass).addClass(i.pathClass),e.find("."+i.hoverClass).removeClass(i.hoverClass),i.onDestroy.call(e),void e.removeData("sfOptions"))})},init:function(e){return this.each(function(){var i=$(this);if(i.data("sfOptions"))return!1;var a=$.extend({},$.fn.ktsuperfish.defaults,e),l=i.find(a.popUpSelector).parent("li");a.$path=s(i,a),i.data("sfOptions",a),o(i,a,!0),n(l,!0),r(i),h(i,a),l.not("."+t.bcClass).ktsuperfish("hide",!0),a.onInit.call(this)})}}}();$.fn.ktsuperfish=function(t,i){return e[t]?e[t].apply(this,Array.prototype.slice.call(arguments,1)):"object"!=typeof t&&t?$.error("Method "+t+" does not exist on jQuery.fn.ktsuperfish"):e.init.apply(this,arguments)},$.fn.ktsuperfish.defaults={popUpSelector:"ul,.sf-mega",hoverClass:"sfHover",pathClass:"overrideThisToUse",pathLevels:1,delay:800,animation:{opacity:"show"},animationOut:{opacity:"hide"},speed:"normal",speedOut:"fast",cssArrows:!0,disableHI:!1,onInit:$.noop,onBeforeShow:$.noop,onShow:$.noop,onBeforeHide:$.noop,onHide:$.noop,onIdle:$.noop,onDestroy:$.noop,onHandleTouch:$.noop}}(jQuery,window),!function(t){"use strict";t.fn.fitVids=function(e){var i={customSelector:null,ignore:null};if(!document.getElementById("fit-vids-style")){var o=document.head||document.getElementsByTagName("head")[0],s=".fluid-width-video-wrapper{width:100%;position:relative;padding:0;}.fluid-width-video-wrapper iframe,.fluid-width-video-wrapper object,.fluid-width-video-wrapper embed {position:absolute;top:0;left:0;width:100%;height:100%;}",n=document.createElement("div");n.innerHTML='

x

",o.appendChild(n.childNodes[1])}return e&&t.extend(i,e),this.each(function(){var e=['iframe[src*="player.vimeo.com"]','iframe[src*="youtube.com"]','iframe[src*="youtube-nocookie.com"]','iframe[src*="kickstarter.com"][src*="video.html"]',"object","embed"];i.customSelector&&e.push(i.customSelector);var o=".fitvidsignore";i.ignore&&(o=o+", "+i.ignore);var s=t(this).find(e.join(","));s=s.not("object object"),s=s.not(o),s.each(function(){var e=t(this);if(!(e.parents(o).length>0||"embed"===this.tagName.toLowerCase()&&e.parent("object").length||e.parent(".fluid-width-video-wrapper").length)){ e.css("height")||e.css("width")||!isNaN(e.attr("height"))&&!isNaN(e.attr("width"))||(e.attr("height",9),e.attr("width",16));var i="object"===this.tagName.toLowerCase()||e.attr("height")&&!isNaN(parseInt(e.attr("height"),10))?parseInt(e.attr("height"),10):e.height(),s=isNaN(parseInt(e.attr("width"),10))?e.width():parseInt(e.attr("width"),10),n=i/s;if(!e.attr("name")){var r="fitvid"+t.fn.fitVids._count;e.attr("name",r),t.fn.fitVids._count++}e.wrap('
').parent(".fluid-width-video-wrapper").css("padding-top",100*n+"%"),e.removeAttr("height").removeAttr("width")}})})},t.fn.fitVids._count=0}(window.jQuery||window.Zepto),!function(t){"function"==typeof define&&define.amd?define(["jquery"],t):"object"==typeof exports?module.exports=t(require("jquery")):t(jQuery)}(function(t){var e="waitForImages";t.waitForImages={hasImageProperties:["backgroundImage","listStyleImage","borderImage","borderCornerImage","cursor"],hasImageAttributes:["srcset"]},t.expr[":"]["has-src"]=function(e){return t(e).is('img[src][src!=""]')},t.expr[":"].uncached=function(e){return!!t(e).is(":has-src")&&!e.complete},t.fn.waitForImages=function(){var i,o,s,n=0,r=0,a=t.Deferred();if(t.isPlainObject(arguments[0])?(s=arguments[0].waitForAll,o=arguments[0].each,i=arguments[0].finished):1===arguments.length&&"boolean"===t.type(arguments[0])?s=arguments[0]:(i=arguments[0],o=arguments[1],s=arguments[2]),i=i||t.noop,o=o||t.noop,s=!!s,!t.isFunction(i)||!t.isFunction(o))throw new TypeError("An invalid callback was supplied.");return this.each(function(){var l=t(this),d=[],c=t.waitForImages.hasImageProperties||[],p=t.waitForImages.hasImageAttributes||[],u=/url\(\s*(['"]?)(.*?)\1\s*\)/g;s?l.find("*").addBack().each(function(){var e=t(this);e.is("img:has-src")&&!e.is("[srcset]")&&d.push({src:e.attr("src"),element:e[0]}),t.each(c,function(t,i){var o,s=e.css(i);if(!s)return!0;for(;o=u.exec(s);)d.push({src:o[2],element:e[0]})}),t.each(p,function(t,i){var o=e.attr(i);return!o||void d.push({src:e.attr("src"),srcset:e.attr("srcset"),element:e[0]})})}):l.find("img:has-src").each(function(){d.push({src:this.src,element:this})}),n=d.length,r=0,0===n&&(i.call(l[0]),a.resolveWith(l[0])),t.each(d,function(s,d){var c=new Image,p="load."+e+" error."+e;t(c).one(p,function e(s){var c=[r,n,"load"==s.type];if(r++,o.apply(d.element,c),a.notifyWith(d.element,c),t(this).off(p,e),r==n)return i.call(l[0]),a.resolveWith(l[0]),!1}),d.srcset&&(c.srcset=d.srcset),c.src=d.src})}),a.promise()}}),!function(t){"use strict";"function"==typeof define&&define.amd?define(["jquery"],t):"undefined"!=typeof module&&module.exports?module.exports=t(require("jquery")):t(jQuery)}(function($){var t=-1,e=-1,i=function(t){return parseFloat(t)||0},o=function(t){var e=1,o=$(t),s=null,n=[];return o.each(function(){var t=$(this),o=t.offset().top-i(t.css("margin-top")),r=n.length>0?n[n.length-1]:null;null===r?n.push(t):Math.floor(Math.abs(s-o))<=e?n[n.length-1]=r.add(t):n.push(t),s=o}),n},s=function(t){var e={byRow:!0,property:"height",target:null,remove:!1};return"object"==typeof t?$.extend(e,t):("boolean"==typeof t?e.byRow=t:"remove"===t&&(e.remove=!0),e)},n=$.fn.matchHeight=function(t){var e=s(t);if(e.remove){var i=this;return this.css(e.property,""),$.each(n._groups,function(t,e){e.elements=e.elements.not(i)}),this}return this.length<=1&&!e.target?this:(n._groups.push({elements:this,options:e}),n._apply(this,e),this)};n.version="master",n._groups=[],n._throttle=80,n._maintainScroll=!1,n._beforeUpdate=null,n._afterUpdate=null,n._rows=o,n._parse=i,n._parseOptions=s,n._apply=function(t,e){var r=s(e),a=$(t),l=[a],d=$(window).scrollTop(),c=$("html").outerHeight(!0),p=a.parents().filter(":hidden");return p.each(function(){var t=$(this);t.data("style-cache",t.attr("style"))}),p.css("display","block"),r.byRow&&!r.target&&(a.each(function(){var t=$(this),e=t.css("display");"inline-block"!==e&&"flex"!==e&&"inline-flex"!==e&&(e="block"),t.data("style-cache",t.attr("style")),t.css({display:e,"padding-top":"0","padding-bottom":"0","margin-top":"0","margin-bottom":"0","border-top-width":"0","border-bottom-width":"0",height:"100px",overflow:"hidden"})}),l=o(a),a.each(function(){var t=$(this);t.attr("style",t.data("style-cache")||"")})),$.each(l,function(t,e){var o=$(e),s=0;if(r.target)s=r.target.outerHeight(!1);else{if(r.byRow&&o.length<=1)return void o.css(r.property,"");o.each(function(){var t=$(this),e=t.attr("style"),i=t.css("display");"inline-block"!==i&&"flex"!==i&&"inline-flex"!==i&&(i="block");var o={display:i};o[r.property]="",t.css(o),t.outerHeight(!1)>s&&(s=t.outerHeight(!1)),e?t.attr("style",e):t.css("display","")})}o.each(function(){var t=$(this),e=0;r.target&&t.is(r.target)||("border-box"!==t.css("box-sizing")&&(e+=i(t.css("border-top-width"))+i(t.css("border-bottom-width")),e+=i(t.css("padding-top"))+i(t.css("padding-bottom"))),t.css(r.property,s-e+"px"))})}),p.each(function(){var t=$(this);t.attr("style",t.data("style-cache")||null)}),n._maintainScroll&&$(window).scrollTop(d/c*$("html").outerHeight(!0)),this},n._applyDataApi=function(){var t={};$("[data-match-height], [data-mh]").each(function(){var e=$(this),i=e.attr("data-mh")||e.attr("data-match-height");i in t?t[i]=t[i].add(e):t[i]=e}),$.each(t,function(){this.matchHeight(!0)})};var r=function(t){n._beforeUpdate&&n._beforeUpdate(t,n._groups),$.each(n._groups,function(){n._apply(this.elements,this.options)}),n._afterUpdate&&n._afterUpdate(t,n._groups)};n._update=function(i,o){if(o&&"resize"===o.type){var s=$(window).width();if(s===t)return;t=s}i?-1===e&&(e=setTimeout(function(){r(o),e=-1},n._throttle)):r(o)},$(n._applyDataApi),$(window).bind("load",function(t){n._update(!1,t)}),$(window).bind("resize orientationchange",function(t){n._update(!0,t)})}),!function($){"use strict";var t=function(t,e){this.el=$(t),this.options=$.extend({},$.fn.typed.defaults,e),this.isInput=this.el.is("input"),this.attr=this.options.attr,this.showCursor=!this.isInput&&this.options.showCursor,this.elContent=this.attr?this.el.attr(this.attr):this.el.text(),this.contentType=this.options.contentType,this.typeSpeed=this.options.typeSpeed,this.startDelay=this.options.startDelay,this.backSpeed=this.options.backSpeed,this.backDelay=this.options.backDelay,this.stringsElement=this.options.stringsElement,this.strings=this.options.strings,this.strPos=0,this.arrayPos=0,this.stopNum=0,this.loop=this.options.loop,this.loopCount=this.options.loopCount,this.curLoop=0,this.stop=!1,this.cursorChar=this.options.cursorChar,this.shuffle=this.options.shuffle,this.sequence=[],this.build()};t.prototype={constructor:t,init:function(){var t=this;t.timeout=setTimeout(function(){for(var e=0;e'+this.cursorChar+""),this.el.after(this.cursor)),this.stringsElement){t.strings=[],this.stringsElement.hide();var e=this.stringsElement.find("p");$.each(e,function(e,i){t.strings.push($(i).html())})}this.init()},typewrite:function(t,e){if(this.stop!==!0){var i=Math.round(70*Math.random())+this.typeSpeed,o=this;o.timeout=setTimeout(function(){var i=0,s=t.substr(e);if("^"===s.charAt(0)){var n=1;/^\^\d+/.test(s)&&(s=/\d+/.exec(s)[0],n+=s.length,i=parseInt(s)),t=t.substring(0,e)+t.substring(e+n)}if("html"===o.contentType){var r=t.substr(e).charAt(0);if("<"===r||"&"===r){var a="",l="";for(l="<"===r?">":";";t.substr(e).charAt(0)!==l;)a+=t.substr(e).charAt(0),e++;e++,a+=l}}o.timeout=setTimeout(function(){if(e===t.length){if(o.options.onStringTyped(o.arrayPos),o.arrayPos===o.strings.length-1&&(o.options.callback(),o.curLoop++,o.loop===!1||o.curLoop===o.loopCount))return;o.timeout=setTimeout(function(){o.backspace(t,e)},o.backDelay)}else{0===e&&o.options.preStringTyped(o.arrayPos);var i=t.substr(0,e+1);o.attr?o.el.attr(o.attr,i):o.isInput?o.el.val(i):"html"===o.contentType?o.el.html(i):o.el.text(i),e++,o.typewrite(t,e)}},i)},i)}},backspace:function(t,e){if(this.stop!==!0){var i=Math.round(70*Math.random())+this.backSpeed,o=this;o.timeout=setTimeout(function(){if("html"===o.contentType&&">"===t.substr(e).charAt(0)){for(var i="";"<"!==t.substr(e).charAt(0);)i-=t.substr(e).charAt(0),e--;e--,i+="<"}var s=t.substr(0,e);o.attr?o.el.attr(o.attr,s):o.isInput?o.el.val(s):"html"===o.contentType?o.el.html(s):o.el.text(s),e>o.stopNum?(e--,o.backspace(t,e)):e<=o.stopNum&&(o.arrayPos++,o.arrayPos===o.strings.length?(o.arrayPos=0,o.shuffle&&(o.sequence=o.shuffleArray(o.sequence)),o.init()):o.typewrite(o.strings[o.sequence[o.arrayPos]],e))},i)}},shuffleArray:function(t){var e,i,o=t.length;if(o)for(;--o;)i=Math.floor(Math.random()*(o+1)),e=t[i],t[i]=t[o],t[o]=e;return t},reset:function(){var t=this;clearInterval(t.timeout);var e=this.el.attr("id");this.el.after(''),this.el.remove(),"undefined"!=typeof this.cursor&&this.cursor.remove(),t.options.resetCallback()}},$.fn.typed=function(e){return this.each(function(){var i=$(this),o=i.data("typed"),s="object"==typeof e&&e;o||i.data("typed",o=new t(this,s)),"string"==typeof e&&o[e]()})},$.fn.typed.defaults={strings:["These are the default values...","You know what you should do?","Use your own!","Have a great day!"],stringsElement:null,typeSpeed:0,startDelay:0,backSpeed:0,shuffle:!1,backDelay:500,loop:!1,loopCount:!1,showCursor:!0,cursorChar:"|",attr:null,contentType:"html",callback:function(){},preStringTyped:function(){},onStringTyped:function(){},resetCallback:function(){}}}(window.jQuery),!function($){$.fn.appear=function(t,e){var i=$.extend({data:void 0,one:!0,accX:0,accY:0},e);return this.each(function(){var e=$(this);if(e.appeared=!1,!t)return void e.trigger("appear",i.data);var o=$(window),s=function(){if(!e.is(":visible"))return void(e.appeared=!1);var t=o.scrollLeft(),s=o.scrollTop(),n=e.offset(),r=n.left,a=n.top,l=i.accX,d=i.accY,c=e.height(),p=o.height(),u=e.width(),h=o.width();a+c+d>=s&&a<=s+p+d&&r+u+l>=t&&r<=t+h+l?e.appeared||e.trigger("appear",i.data):e.appeared=!1},n=function(){if(e.appeared=!0,i.one){o.unbind("scroll",s);var n=$.inArray(s,$.fn.appear.checks);n>=0&&$.fn.appear.checks.splice(n,1)}t.apply(this,arguments)};i.one?e.one("appear",i.data,n):e.bind("appear",i.data,n),o.scroll(s),$.fn.appear.checks.push(s),s()})},$.extend($.fn.appear,{checks:[],timeout:null,checkAll:function(){var t=$.fn.appear.checks.length;if(t>0)for(;t--;)$.fn.appear.checks[t]()},run:function(){$.fn.appear.timeout&&clearTimeout($.fn.appear.timeout),$.fn.appear.timeout=setTimeout($.fn.appear.checkAll,20)}}),$.each(["append","prepend","after","before","attr","removeAttr","addClass","removeClass","toggleClass","remove","css","show","hide"],function(t,e){var i=$.fn[e];i&&($.fn[e]=function(){var t=i.apply(this,arguments);return $.fn.appear.run(),t})})}(jQuery),!function(t){var e,i,o=t.event;e=o.special.debouncedresize={setup:function(){t(this).on("resize",e.handler)},teardown:function(){t(this).off("resize",e.handler)},handler:function(t,s){var n=this,r=arguments,a=function(){t.type="debouncedresize",o.dispatch.apply(n,r)};i&&clearTimeout(i),s?a():i=setTimeout(a,e.threshold)},threshold:150}}(jQuery),function($){$.fn.kt_fitText=function(t,e){var i=t||1,o=$.extend({minFontSize:Number.NEGATIVE_INFINITY,maxFontSize:Number.POSITIVE_INFINITY,minWidth:Number.NEGATIVE_INFINITY,maxWidth:Number.POSITIVE_INFINITY},e);return this.each(function(){var t=$(this),e=function(){var e=t.width();o.maxWidth>e&&o.minWidthe?t.css("font-size",o.minFontSize):t.css("font-size",o.maxFontSize)};e(),$(window).on("resize.fittext orientationchange.fittext",e)})}}(jQuery),function(t){"function"==typeof define&&define.amd?define(["jquery"],t):"object"==typeof module&&module.exports?module.exports=t(require("jquery")):t(jQuery)}(function($){var t=Array.prototype.slice,e=Array.prototype.splice,i={topSpacing:0,bottomSpacing:0,className:"is-sticky",wrapperClassName:"sticky-wrapper",center:!1,getWidthFrom:"",widthFromWrapper:!0,responsiveWidth:!1,zIndex:"auto"},o=$(window),s=$(document),n=[],r=o.height(),a=function(){for(var t=o.scrollTop(),e=s.height(),i=e-r,a=t>i?i-t:0,l=0,d=n.length;lh||null===c.currentTop&&h=m.offset().top+m.outerHeight()&&c.stickyElement.offset().top<=c.topSpacing;g?c.stickyElement.css("position","absolute").css("top","").css("bottom",0).css("z-index",""):c.stickyElement.css("position","fixed").css("top",h).css("bottom","").css("z-index",c.zIndex)}}},l=function(){r=o.height();for(var t=0,e=n.length;t
").attr("id",r).addClass(e.wrapperClassName);o.wrapAll(function(){if(0==$(this).parent("#"+r).length)return a});var l=o.parent();e.center&&l.css({width:o.outerWidth(),marginLeft:"auto",marginRight:"auto"}),"right"===o.css("float")&&o.css({float:"none"}).parent().css({float:"right"}),e.stickyElement=o,e.stickyWrapper=l,e.currentTop=null,n.push(e),d.setWrapperHeight(this),d.setupChangeListeners(this)})},setWrapperHeight:function(t){var e=$(t),i=e.parent();i&&i.css("height",e.outerHeight())},setupChangeListeners:function(t){if(window.MutationObserver){var e=new window.MutationObserver(function(e){(e[0].addedNodes.length||e[0].removedNodes.length)&&d.setWrapperHeight(t)});e.observe(t,{subtree:!0,childList:!0})}else window.addEventListener?(t.addEventListener("DOMNodeInserted",function(){d.setWrapperHeight(t)},!1),t.addEventListener("DOMNodeRemoved",function(){d.setWrapperHeight(t)},!1)):window.attachEvent&&(t.attachEvent("onDOMNodeInserted",function(){d.setWrapperHeight(t)}),t.attachEvent("onDOMNodeRemoved",function(){d.setWrapperHeight(t)}))},update:a,unstick:function(t){return this.each(function(){for(var t=this,i=$(t),o=-1,s=n.length;s-- >0;)n[s].stickyElement.get(0)===t&&(e.call(n,s,1),o=s);o!==-1&&(i.unwrap(),i.css({width:"",position:"",top:"",float:"","z-index":""}))})}};window.addEventListener?(window.addEventListener("scroll",a,!1),window.addEventListener("resize",l,!1)):window.attachEvent&&(window.attachEvent("onscroll",a),window.attachEvent("onresize",l)),$.fn.sticky=function(e){return d[e]?d[e].apply(this,t.call(arguments,1)):"object"!=typeof e&&e?void $.error("Method "+e+" does not exist on jQuery.sticky"):d.init.apply(this,arguments)},$.fn.unstick=function(e){return d[e]?d[e].apply(this,t.call(arguments,1)):"object"!=typeof e&&e?void $.error("Method "+e+" does not exist on jQuery.sticky"):d.unstick.apply(this,arguments)},$(function(){setTimeout(a,0)})}),function($){function t(t){return"object"==typeof t?t:{top:t,left:t}}var e=$.scrollTo=function(t,e,i){$(window).scrollTo(t,e,i)};e.defaults={axis:"xy",duration:parseFloat($.fn.jquery)>=1.3?0:1,limit:!0},e.window=function(t){return $(window)._scrollable()},$.fn._scrollable=function(){return this.map(function(){var t=this,e=!t.nodeName||$.inArray(t.nodeName.toLowerCase(),["iframe","#document","html","body"])!=-1;if(!e)return t;var i=(t.contentWindow||t).document||t.ownerDocument||t;return/webkit/i.test(navigator.userAgent)||"BackCompat"==i.compatMode?i.body:i.documentElement})},$.fn.scrollTo=function(i,o,s){return"object"==typeof o&&(s=o,o=0),"function"==typeof s&&(s={onAfter:s}),"max"==i&&(i=9e9),s=$.extend({},e.defaults,s),o=o||s.duration,s.queue=s.queue&&s.axis.length>1,s.queue&&(o/=2),s.offset=t(s.offset),s.over=t(s.over),this._scrollable().each(function(){function n(t){a.animate(c,o,s.easing,t&&function(){t.call(this,i,s)})}if(null!=i){var r=this,a=$(r),l=i,d,c={},p=a.is("html,body");switch(typeof l){case"number":case"string":if(/^([+-]=)?\d+(\.\d+)?(px|%)?$/.test(l)){l=t(l);break}if(l=$(l,this),!l.length)return;case"object":(l.is||l.style)&&(d=(l=$(l)).offset())}$.each(s.axis.split(""),function(t,i){var o="x"==i?"Left":"Top",u=o.toLowerCase(),h="scroll"+o,f=r[h],m=e.max(r,i);if(d)c[h]=d[u]+(p?0:f-a.offset()[u]),s.margin&&(c[h]-=parseInt(l.css("margin"+o))||0,c[h]-=parseInt(l.css("border"+o+"Width"))||0),c[h]+=s.offset[u]||0,s.over[u]&&(c[h]+=l["x"==i?"width":"height"]()*s.over[u]);else{var g=l[u];c[h]=g.slice&&"%"==g.slice(-1)?parseFloat(g)/100*m:g}s.limit&&/^\d+$/.test(c[h])&&(c[h]=c[h]<=0?0:Math.min(c[h],m)),!t&&s.queue&&(f!=c[h]&&n(s.onAfterFirst),delete c[h])}),n(s.onAfter)}}).end()},e.max=function(t,e){var i="x"==e?"Width":"Height",o="scroll"+i;if(!$(t).is("html,body"))return t[o]-$(t)[i.toLowerCase()]();var s="client"+i,n=t.ownerDocument.documentElement,r=t.ownerDocument.body;return Math.max(n[o],r[o])-Math.min(n[s],r[s])}}(jQuery),function($){function t(t,e,i){var o=e.hash.slice(1),s=document.getElementById(o)||document.getElementsByName(o)[0];if(s){t&&t.preventDefault();var n=$(i.target);if(!(i.lock&&n.is(":animated")||i.onBefore&&i.onBefore.call(i,t,s,n)===!1)){if(i.stop&&n.stop(!0),i.hash){var r=s.id==o?"id":"name",a=$(" ").attr(r,o).css({position:"absolute",top:$(window).scrollTop(),left:$(window).scrollLeft()});s[r]="",$("body").prepend(a),location=e.hash,a.remove(),s[r]=o}n.scrollTo(s,i).trigger("notify.serialScroll",[s])}}}var e=location.href.replace(/#.*/,""),i=$.localScroll=function(t){$("body").localScroll(t)};i.defaults={duration:1e3,axis:"y",event:"click",stop:!0,target:window,reset:!0},i.hash=function(e){if(location.hash){if(e=$.extend({},i.defaults,e),e.hash=!1,e.reset){var o=e.duration;delete e.duration,$(e.target).scrollTo(0,e),e.duration=o}t(0,location,e)}},$.fn.localScroll=function(o){function s(){return!!this.href&&!!this.hash&&this.href.replace(this.hash,"")==e&&(!o.filter||$(this).is(o.filter))}return o=$.extend({},i.defaults,o),o.lazy?this.bind(o.event,function(e){var i=$([e.target,e.target.parentNode]).filter(s)[0];i&&t(e,i,o)}):this.find("a,area").filter(s).bind(o.event,function(e){t(e,this,o)}).end().end()}}(jQuery);var scrolltotop={setting:{startline:200,scrollto:0,scrollduration:1200,fadeduration:[500,100]},controlHTML:'
',controlattrs:{offsetx:0,offsety:2},anchorkeyword:"#top",state:{isvisible:!1,shouldvisible:!1},scrollup:function(){this.cssfixedsupport||this.$control.css({opacity:0});var t=isNaN(this.setting.scrollto)?this.setting.scrollto:parseInt(this.setting.scrollto);t="string"==typeof t&&1==jQuery("#"+t).length?jQuery("#"+t).offset().top:0,this.$body.animate({scrollTop:t},this.setting.scrollduration)},keepfixed:function(){var t=jQuery(window),e=t.scrollLeft()+t.width()-this.$control.width()-this.controlattrs.offsetx,i=t.scrollTop()+t.height()-this.$control.height()-this.controlattrs.offsety;this.$control.css({left:e+"px",top:i+"px"})},togglecontrol:function(){var t=jQuery(window).scrollTop();this.cssfixedsupport||this.keepfixed(),this.state.shouldvisible=t>=this.setting.startline,this.state.shouldvisible&&!this.state.isvisible?(this.$control.stop().animate({opacity:1},this.setting.fadeduration[0]),this.state.isvisible=!0):0==this.state.shouldvisible&&this.state.isvisible&&(this.$control.stop().animate({opacity:0},this.setting.fadeduration[1]),this.state.isvisible=!1)},init:function(){jQuery(document).ready(function(t){var e=scrolltotop,i=document.all;e.cssfixedsupport=!i||i&&"CSS1Compat"==document.compatMode&&window.XMLHttpRequest,e.$body=t(window.opera?"CSS1Compat"==document.compatMode?"html":"body":"html,body"),e.$control=t('
'+e.controlHTML+"
").css({position:e.cssfixedsupport?"fixed":"absolute",bottom:e.controlattrs.offsety,right:e.controlattrs.offsetx,opacity:0,cursor:"pointer"}).click(function(){return e.scrollup(),!1}).appendTo("body"),document.all&&!window.XMLHttpRequest&&""!=e.$control.text()&&e.$control.css({width:e.$control.width()}),e.togglecontrol(),t('a[href="'+e.anchorkeyword+'"]').click(function(){return e.scrollup(),!1}),t(window).bind("scroll resize",function(t){e.togglecontrol()})})}};scrolltotop.init();