(function(){"use strict";/*! modernizr 3.3.1 (Custom Build) | MIT * * https://modernizr.com/download/?-backgroundcliptext-csspointerevents-flexbox-objectfit-touchevents-video-setclasses !*/!function(e,n,t){function o(e2,n2){return typeof e2===n2} function r(){var e2,n2,t2,r2,s2,i2,a2;for(var l2 in x) if(x.hasOwnProperty(l2)){if(e2=[],n2=x[l2],n2.name&&(e2.push(n2.name.toLowerCase()),n2.options&&n2.options.aliases&&n2.options.aliases.length)) for(t2=0;t2p2;p2++) if(m2=e2[p2],y2=k.style[m2],u(m2,"-")&&(m2=a(m2)),k.style[m2]!==t){if(s2||o(r2,"undefined")) return l2(),"pfx"==n2?m2:!0;try{k.style[m2]=r2}catch(g2){} if(k.style[m2]!=y2) return l2(),"pfx"==n2?m2:!0} return l2(),!1} function y(e2,n2,t2,r2,s2){var i2=e2.charAt(0).toUpperCase()+e2.slice(1),a2=(e2+" "+P.join(i2+" ")+i2).split(" ");return o(n2,"string")||o(n2,"undefined")?m(a2,n2,r2,s2):(a2=(e2+" "+j.join(i2+" ")+i2).split(" "),p(a2,n2,t2))} function h(e2,n2,o2){return y(e2,t,t,n2,o2)} var g=[],x=[],C={_version:"3.3.1",_config:{classPrefix:"",enableClasses:!0,enableJSClass:!0,usePrefixes:!0},_q:[],on:function(e2,n2){var t2=this;setTimeout(function(){n2(t2[e2])},0)},addTest:function(e2,n2,t2){x.push({name:e2,fn:n2,options:t2})},addAsyncTest:function(e2){x.push({name:null,fn:e2})}},Modernizr2=function(){};Modernizr2.prototype=C,Modernizr2=new Modernizr2();var b=n.documentElement,w="svg"===b.nodeName.toLowerCase(),T=C._config.usePrefixes?" -webkit- -moz- -o- -ms- ".split(" "):["",""];C._prefixes=T,Modernizr2.addTest("video",function(){var e2=i("video"),n2=!1;try{(n2=!!e2.canPlayType)&&(n2=new Boolean(n2),n2.ogg=e2.canPlayType('video/ogg; codecs="theora"').replace(/^no$/,""),n2.h264=e2.canPlayType('video/mp4; codecs="avc1.42E01E"').replace(/^no$/,""),n2.webm=e2.canPlayType('video/webm; codecs="vp8, vorbis"').replace(/^no$/,""),n2.vp9=e2.canPlayType('video/webm; codecs="vp9"').replace(/^no$/,""),n2.hls=e2.canPlayType('application/x-mpegURL; codecs="avc1.42E01E"').replace(/^no$/,""))}catch(t2){} return n2}),Modernizr2.addTest("csspointerevents",function(){var e2=i("a").style;return e2.cssText="pointer-events:auto","auto"===e2.pointerEvents});var _=C.testStyles=f;Modernizr2.addTest("touchevents",function(){var t2;if("ontouchstart" in e||e.DocumentTouch&&n instanceof DocumentTouch) t2=!0;else{var o2=["@media (",T.join("touch-enabled),("),"heartz",")","{#modernizr{top:9px;position:absolute}}"].join("");_(o2,function(e2){t2=9===e2.offsetTop})} return t2});var S="Moz O ms Webkit",P=C._config.usePrefixes?S.split(" "):[];C._cssomPrefixes=P;var E=function(n2){var o2,r2=T.length,s2=e.CSSRule;if("undefined"==typeof s2) return t;if(!n2) return!1;if(n2=n2.replace(/^@/,""),o2=n2.replace(/-/g,"_").toUpperCase()+"_RULE",o2 in s2) return"@"+n2;for(var i2=0;r2>i2;i2++){var a2=T[i2],l2=a2.toUpperCase()+"_"+o2;if(l2 in s2) return"@-"+a2.toLowerCase()+"-"+n2} return!1};C.atRule=E;var j=C._config.usePrefixes?S.toLowerCase().split(" "):[];C._domPrefixes=j;var z={elem:i("modernizr")};Modernizr2._q.push(function(){delete z.elem});var k={style:z.elem.style};Modernizr2._q.unshift(function(){delete k.style}),C.testAllProps=y,C.testAllProps=h,Modernizr2.addTest("flexbox",h("flexBasis","1px",!0));var N=C.prefixed=function(e2,n2,t2){return 0===e2.indexOf("@")?E(e2):(-1!=e2.indexOf("-")&&(e2=a(e2)),n2?y(e2,n2,t2):y(e2,"pfx"))};Modernizr2.addTest("objectfit",!!N("objectFit"),{aliases:["object-fit"]}),Modernizr2.addTest("backgroundcliptext",function(){return h("backgroundClip","text")}),r(),s(g),delete C.addTest,delete C.addAsyncTest;for(var L=0;L3){throw new Error("Bootstrap's JavaScript requires jQuery version 1.9.1 or higher, but lower than version 4")}}(jQuery);+function($){var dismiss='[data-dismiss="alert"]';var Alert=function(el){$(el).on("click",dismiss,this.close)};Alert.VERSION="3.3.7";Alert.TRANSITION_DURATION=150;Alert.prototype.close=function(e){var $this=$(this);var selector=$this.attr("data-target");if(!selector){selector=$this.attr("href");selector=selector&&selector.replace(/.*(?=#[^\s]*$)/,"")} var $parent=$(selector==="#"?[]:selector);if(e) e.preventDefault();if(!$parent.length){$parent=$this.closest(".alert")} $parent.trigger(e=$.Event("close.bs.alert"));if(e.isDefaultPrevented()) return;$parent.removeClass("in");function removeElement(){$parent.detach().trigger("closed.bs.alert").remove()} $.support.transition&&$parent.hasClass("fade")?$parent.one("bsTransitionEnd",removeElement).emulateTransitionEnd(Alert.TRANSITION_DURATION):removeElement()};function Plugin(option){return this.each(function(){var $this=$(this);var data=$this.data("bs.alert");if(!data) $this.data("bs.alert",data=new Alert(this));if(typeof option=="string") data[option].call($this)})} var old=$.fn.alert;$.fn.alert=Plugin;$.fn.alert.Constructor=Alert;$.fn.alert.noConflict=function(){$.fn.alert=old;return this};$(document).on("click.bs.alert.data-api",dismiss,Alert.prototype.close)}(jQuery);+function($){var Button=function(element,options){this.$element=$(element);this.options=$.extend({},Button.DEFAULTS,options);this.isLoading=!1};Button.VERSION="3.3.7";Button.DEFAULTS={loadingText:"loading..."};Button.prototype.setState=function(state){var d="disabled";var $el=this.$element;var val=$el.is("input")?"val":"html";var data=$el.data();state+="Text";if(data.resetText==null) $el.data("resetText",$el[val]());setTimeout($.proxy(function(){$el[val](data[state]==null?this.options[state]:data[state]);if(state=="loadingText"){this.isLoading=!0;$el.addClass(d).attr(d,d).prop(d,!0)}else if(this.isLoading){this.isLoading=!1;$el.removeClass(d).removeAttr(d).prop(d,!1)}},this),0)};Button.prototype.toggle=function(){var changed=!0;var $parent=this.$element.closest('[data-toggle="buttons"]');if($parent.length){var $input=this.$element.find("input");if($input.prop("type")=="radio"){if($input.prop("checked")) changed=!1;$parent.find(".active").removeClass("active");this.$element.addClass("active")}else if($input.prop("type")=="checkbox"){if($input.prop("checked")!==this.$element.hasClass("active")) changed=!1;this.$element.toggleClass("active")} $input.prop("checked",this.$element.hasClass("active"));if(changed) $input.trigger("change")}else{this.$element.attr("aria-pressed",!this.$element.hasClass("active"));this.$element.toggleClass("active")}};function Plugin(option){return this.each(function(){var $this=$(this);var data=$this.data("bs.button");var options=typeof option=="object"&&option;if(!data) $this.data("bs.button",data=new Button(this,options));if(option=="toggle") data.toggle();else if(option) data.setState(option)})} var old=$.fn.button;$.fn.button=Plugin;$.fn.button.Constructor=Button;$.fn.button.noConflict=function(){$.fn.button=old;return this};$(document).on("click.bs.button.data-api",'[data-toggle^="button"]',function(e){var $btn=$(e.target).closest(".btn");Plugin.call($btn,"toggle");if(!$(e.target).is('input[type="radio"], input[type="checkbox"]')){e.preventDefault();if($btn.is("input,button")) $btn.trigger("focus");else $btn.find("input:visible,button:visible").first().trigger("focus")}}).on("focus.bs.button.data-api blur.bs.button.data-api",'[data-toggle^="button"]',function(e){$(e.target).closest(".btn").toggleClass("focus",/^focus(in)?$/.test(e.type))})}(jQuery);+function($){var backdrop=".dropdown-backdrop";var toggle='[data-toggle="dropdown"]';var Dropdown=function(element){$(element).on("click.bs.dropdown",this.toggle)};Dropdown.VERSION="3.3.7";function getParent($this){var selector=$this.attr("data-target");if(!selector){selector=$this.attr("href");selector=selector&&/#[A-Za-z]/.test(selector)&&selector.replace(/.*(?=#[^\s]*$)/,"")} var $parent=selector&&$(selector);return $parent&&$parent.length?$parent:$this.parent()} function clearMenus(e){if(e&&e.which===3) return;$(backdrop).remove();$(toggle).each(function(){var $this=$(this);var $parent=getParent($this);var relatedTarget={relatedTarget:this};if(!$parent.hasClass("open")) return;if(e&&e.type=="click"&&/input|textarea/i.test(e.target.tagName)&&$.contains($parent[0],e.target)) return;$parent.trigger(e=$.Event("hide.bs.dropdown",relatedTarget));if(e.isDefaultPrevented()) return;$this.attr("aria-expanded","false");$parent.removeClass("open").trigger($.Event("hidden.bs.dropdown",relatedTarget))})} Dropdown.prototype.toggle=function(e){var $this=$(this);if($this.is(".disabled, :disabled")) return;var $parent=getParent($this);var isActive=$parent.hasClass("open");clearMenus();if(!isActive){if("ontouchstart" in document.documentElement&&!$parent.closest(".navbar-nav").length){$(document.createElement("div")).addClass("dropdown-backdrop").insertAfter($(this)).on("click",clearMenus)} var relatedTarget={relatedTarget:this};$parent.trigger(e=$.Event("show.bs.dropdown",relatedTarget));if(e.isDefaultPrevented()) return;$this.trigger("focus").attr("aria-expanded","true");$parent.toggleClass("open").trigger($.Event("shown.bs.dropdown",relatedTarget))} return!1};Dropdown.prototype.keydown=function(e){if(!/(38|40|27|32)/.test(e.which)||/input|textarea/i.test(e.target.tagName)) return;var $this=$(this);e.preventDefault();e.stopPropagation();if($this.is(".disabled, :disabled")) return;var $parent=getParent($this);var isActive=$parent.hasClass("open");if(!isActive&&e.which!=27||isActive&&e.which==27){if(e.which==27) $parent.find(toggle).trigger("focus");return $this.trigger("click")} var desc=" li:not(.disabled):visible a";var $items=$parent.find(".dropdown-menu"+desc);if(!$items.length) return;var index=$items.index(e.target);if(e.which==38&&index>0) index--;if(e.which==40&&index<$items.length-1) index++;if(!~index) index=0;$items.eq(index).trigger("focus")};function Plugin(option){return this.each(function(){var $this=$(this);var data=$this.data("bs.dropdown");if(!data) $this.data("bs.dropdown",data=new Dropdown(this));if(typeof option=="string") data[option].call($this)})} var old=$.fn.dropdown;$.fn.dropdown=Plugin;$.fn.dropdown.Constructor=Dropdown;$.fn.dropdown.noConflict=function(){$.fn.dropdown=old;return this};$(document).on("click.bs.dropdown.data-api",clearMenus).on("click.bs.dropdown.data-api",".dropdown form",function(e){e.stopPropagation()}).on("click.bs.dropdown.data-api",toggle,Dropdown.prototype.toggle).on("keydown.bs.dropdown.data-api",toggle,Dropdown.prototype.keydown).on("keydown.bs.dropdown.data-api",".dropdown-menu",Dropdown.prototype.keydown)}(jQuery);+function($){var Tooltip=function(element,options){this.type=null;this.options=null;this.enabled=null;this.timeout=null;this.hoverState=null;this.$element=null;this.inState=null;this.init("tooltip",element,options)};Tooltip.VERSION="3.3.7";Tooltip.TRANSITION_DURATION=150;Tooltip.DEFAULTS={animation:!0,placement:"top",selector:!1,template:'',trigger:"hover focus",title:"",delay:0,html:!1,container:!1,viewport:{selector:"body",padding:0}};Tooltip.prototype.init=function(type,element,options){this.enabled=!0;this.type=type;this.$element=$(element);this.options=this.getOptions(options);this.$viewport=this.options.viewport&&$($.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};if(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!")} var triggers=this.options.trigger.split(" ");for(var i=triggers.length;i--;){var trigger=triggers[i];if(trigger=="click"){this.$element.on("click."+this.type,this.options.selector,$.proxy(this.toggle,this))}else if(trigger!="manual"){var eventIn=trigger=="hover"?"mouseenter":"focusin";var eventOut=trigger=="hover"?"mouseleave":"focusout";this.$element.on(eventIn+"."+this.type,this.options.selector,$.proxy(this.enter,this));this.$element.on(eventOut+"."+this.type,this.options.selector,$.proxy(this.leave,this))}} this.options.selector?this._options=$.extend({},this.options,{trigger:"manual",selector:""}):this.fixTitle()};Tooltip.prototype.getDefaults=function(){return Tooltip.DEFAULTS};Tooltip.prototype.getOptions=function(options){options=$.extend({},this.getDefaults(),this.$element.data(),options);if(options.delay&&typeof options.delay=="number"){options.delay={show:options.delay,hide:options.delay}} return options};Tooltip.prototype.getDelegateOptions=function(){var options={};var defaults=this.getDefaults();this._options&&$.each(this._options,function(key,value){if(defaults[key]!=value) options[key]=value});return options};Tooltip.prototype.enter=function(obj){var self2=obj instanceof this.constructor?obj:$(obj.currentTarget).data("bs."+this.type);if(!self2){self2=new this.constructor(obj.currentTarget,this.getDelegateOptions());$(obj.currentTarget).data("bs."+this.type,self2)} if(obj instanceof $.Event){self2.inState[obj.type=="focusin"?"focus":"hover"]=!0} if(self2.tip().hasClass("in")||self2.hoverState=="in"){self2.hoverState="in";return} clearTimeout(self2.timeout);self2.hoverState="in";if(!self2.options.delay||!self2.options.delay.show) return self2.show();self2.timeout=setTimeout(function(){if(self2.hoverState=="in") self2.show()},self2.options.delay.show)};Tooltip.prototype.isInStateTrue=function(){for(var key in this.inState){if(this.inState[key]) return!0} return!1};Tooltip.prototype.leave=function(obj){var self2=obj instanceof this.constructor?obj:$(obj.currentTarget).data("bs."+this.type);if(!self2){self2=new this.constructor(obj.currentTarget,this.getDelegateOptions());$(obj.currentTarget).data("bs."+this.type,self2)} if(obj instanceof $.Event){self2.inState[obj.type=="focusout"?"focus":"hover"]=!1} if(self2.isInStateTrue()) return;clearTimeout(self2.timeout);self2.hoverState="out";if(!self2.options.delay||!self2.options.delay.hide) return self2.hide();self2.timeout=setTimeout(function(){if(self2.hoverState=="out") self2.hide()},self2.options.delay.hide)};Tooltip.prototype.show=function(){var e=$.Event("show.bs."+this.type);if(this.hasContent()&&this.enabled){this.$element.trigger(e);var inDom=$.contains(this.$element[0].ownerDocument.documentElement,this.$element[0]);if(e.isDefaultPrevented()||!inDom) return;var that=this;var $tip=this.tip();var tipId=this.getUID(this.type);this.setContent();$tip.attr("id",tipId);this.$element.attr("aria-describedby",tipId);if(this.options.animation) $tip.addClass("fade");var placement=typeof this.options.placement=="function"?this.options.placement.call(this,$tip[0],this.$element[0]):this.options.placement;var autoToken=/\s?auto?\s?/i;var autoPlace=autoToken.test(placement);if(autoPlace) placement=placement.replace(autoToken,"")||"top";$tip.detach().css({top:0,left:0,display:"block"}).addClass(placement).data("bs."+this.type,this);this.options.container?$tip.appendTo(this.options.container):$tip.insertAfter(this.$element);this.$element.trigger("inserted.bs."+this.type);var pos=this.getPosition();var actualWidth=$tip[0].offsetWidth;var actualHeight=$tip[0].offsetHeight;if(autoPlace){var orgPlacement=placement;var viewportDim=this.getPosition(this.$viewport);placement=placement=="bottom"&&pos.bottom+actualHeight>viewportDim.bottom?"top":placement=="top"&&pos.top-actualHeightviewportDim.width?"left":placement=="left"&&pos.left-actualWidthviewportDimensions.top+viewportDimensions.height){delta.top=viewportDimensions.top+viewportDimensions.height-bottomEdgeOffset}}else{var leftEdgeOffset=pos.left-viewportPadding;var rightEdgeOffset=pos.left+viewportPadding+actualWidth;if(leftEdgeOffsetviewportDimensions.right){delta.left=viewportDimensions.left+viewportDimensions.width-rightEdgeOffset}} return delta};Tooltip.prototype.getTitle=function(){var title;var $e=this.$element;var o=this.options;title=$e.attr("data-original-title")||(typeof o.title=="function"?o.title.call($e[0]):o.title);return title};Tooltip.prototype.getUID=function(prefix){do prefix+=~~(Math.random()*1e6);while(document.getElementById(prefix));return prefix};Tooltip.prototype.tip=function(){if(!this.$tip){this.$tip=$(this.options.template);if(this.$tip.length!=1){throw new Error(this.type+" `template` option must consist of exactly 1 top-level element!")}} return this.$tip};Tooltip.prototype.arrow=function(){return this.$arrow=this.$arrow||this.tip().find(".tooltip-arrow")};Tooltip.prototype.enable=function(){this.enabled=!0};Tooltip.prototype.disable=function(){this.enabled=!1};Tooltip.prototype.toggleEnabled=function(){this.enabled=!this.enabled};Tooltip.prototype.toggle=function(e){var self2=this;if(e){self2=$(e.currentTarget).data("bs."+this.type);if(!self2){self2=new this.constructor(e.currentTarget,this.getDelegateOptions());$(e.currentTarget).data("bs."+this.type,self2)}} if(e){self2.inState.click=!self2.inState.click;if(self2.isInStateTrue()) self2.enter(self2);else self2.leave(self2)}else{self2.tip().hasClass("in")?self2.leave(self2):self2.enter(self2)}};Tooltip.prototype.destroy=function(){var that=this;clearTimeout(this.timeout);this.hide(function(){that.$element.off("."+that.type).removeData("bs."+that.type);if(that.$tip){that.$tip.detach()} that.$tip=null;that.$arrow=null;that.$viewport=null;that.$element=null})};function Plugin(option){return this.each(function(){var $this=$(this);var data=$this.data("bs.tooltip");var options=typeof option=="object"&&option;if(!data&&/destroy|hide/.test(option)) return;if(!data) $this.data("bs.tooltip",data=new Tooltip(this,options));if(typeof option=="string") data[option]()})} var old=$.fn.tooltip;$.fn.tooltip=Plugin;$.fn.tooltip.Constructor=Tooltip;$.fn.tooltip.noConflict=function(){$.fn.tooltip=old;return this}}(jQuery);+function($){var Tab=function(element){this.element=$(element)};Tab.VERSION="3.3.7";Tab.TRANSITION_DURATION=150;Tab.prototype.show=function(){var $this=this.element;var $ul=$this.closest("ul:not(.dropdown-menu)");var selector=$this.data("target");if(!selector){selector=$this.attr("href");selector=selector&&selector.replace(/.*(?=#[^\s]*$)/,"")} if($this.parent("li").hasClass("active")) return;var $previous=$ul.find(".active:last a");var hideEvent=$.Event("hide.bs.tab",{relatedTarget:$this[0]});var showEvent=$.Event("show.bs.tab",{relatedTarget:$previous[0]});$previous.trigger(hideEvent);$this.trigger(showEvent);if(showEvent.isDefaultPrevented()||hideEvent.isDefaultPrevented()) return;var $target=$(selector);this.activate($this.closest("li"),$ul);this.activate($target,$target.parent(),function(){$previous.trigger({type:"hidden.bs.tab",relatedTarget:$this[0]});$this.trigger({type:"shown.bs.tab",relatedTarget:$previous[0]})})};Tab.prototype.activate=function(element,container,callback){var $active=container.find("> .active");var transition=callback&&$.support.transition&&($active.length&&$active.hasClass("fade")||!!container.find("> .fade").length);function next(){$active.removeClass("active").find("> .dropdown-menu > .active").removeClass("active").end().find('[data-toggle="tab"]').attr("aria-expanded",!1);element.addClass("active").find('[data-toggle="tab"]').attr("aria-expanded",!0);if(transition){element[0].offsetWidth;element.addClass("in")}else{element.removeClass("fade")} if(element.parent(".dropdown-menu").length){element.closest("li.dropdown").addClass("active").end().find('[data-toggle="tab"]').attr("aria-expanded",!0)} callback&&callback()} $active.length&&transition?$active.one("bsTransitionEnd",next).emulateTransitionEnd(Tab.TRANSITION_DURATION):next();$active.removeClass("in")};function Plugin(option){return this.each(function(){var $this=$(this);var data=$this.data("bs.tab");if(!data) $this.data("bs.tab",data=new Tab(this));if(typeof option=="string") data[option]()})} var old=$.fn.tab;$.fn.tab=Plugin;$.fn.tab.Constructor=Tab;$.fn.tab.noConflict=function(){$.fn.tab=old;return this};var clickHandler=function(e){e.preventDefault();Plugin.call($(this),"show")};$(document).on("click.bs.tab.data-api",'[data-toggle="tab"]',clickHandler).on("click.bs.tab.data-api",'[data-toggle="pill"]',clickHandler)}(jQuery);+function($){var Collapse=function(element,options){this.$element=$(element);this.options=$.extend({},Collapse.DEFAULTS,options);this.$trigger=$('[data-toggle="collapse"][href="#'+element.id+'"],[data-toggle="collapse"][data-target="#'+element.id+'"]');this.transitioning=null;if(this.options.parent){this.$parent=this.getParent()}else{this.addAriaAndCollapsedClass(this.$element,this.$trigger)} if(this.options.toggle) this.toggle()};Collapse.VERSION="3.3.7";Collapse.TRANSITION_DURATION=350;Collapse.DEFAULTS={toggle:!0};Collapse.prototype.dimension=function(){var hasWidth=this.$element.hasClass("width");return hasWidth?"width":"height"};Collapse.prototype.show=function(){if(this.transitioning||this.$element.hasClass("in")) return;var activesData;var actives=this.$parent&&this.$parent.children(".panel").children(".in, .collapsing");if(actives&&actives.length){activesData=actives.data("bs.collapse");if(activesData&&activesData.transitioning) return} var startEvent=$.Event("show.bs.collapse");this.$element.trigger(startEvent);if(startEvent.isDefaultPrevented()) return;if(actives&&actives.length){Plugin.call(actives,"hide");activesData||actives.data("bs.collapse",null)} var dimension=this.dimension();this.$element.removeClass("collapse").addClass("collapsing")[dimension](0).attr("aria-expanded",!0);this.$trigger.removeClass("collapsed").attr("aria-expanded",!0);this.transitioning=1;var complete=function(){this.$element.removeClass("collapsing").addClass("collapse in")[dimension]("");this.transitioning=0;this.$element.trigger("shown.bs.collapse")};if(!$.support.transition) return complete.call(this);var scrollSize=$.camelCase(["scroll",dimension].join("-"));this.$element.one("bsTransitionEnd",$.proxy(complete,this)).emulateTransitionEnd(Collapse.TRANSITION_DURATION)[dimension](this.$element[0][scrollSize])};Collapse.prototype.hide=function(){if(this.transitioning||!this.$element.hasClass("in")) return;var startEvent=$.Event("hide.bs.collapse");this.$element.trigger(startEvent);if(startEvent.isDefaultPrevented()) return;var dimension=this.dimension();this.$element[dimension](this.$element[dimension]())[0].offsetHeight;this.$element.addClass("collapsing").removeClass("collapse in").attr("aria-expanded",!1);this.$trigger.addClass("collapsed").attr("aria-expanded",!1);this.transitioning=1;var complete=function(){this.transitioning=0;this.$element.removeClass("collapsing").addClass("collapse").trigger("hidden.bs.collapse")};if(!$.support.transition) return complete.call(this);this.$element[dimension](0).one("bsTransitionEnd",$.proxy(complete,this)).emulateTransitionEnd(Collapse.TRANSITION_DURATION)};Collapse.prototype.toggle=function(){this[this.$element.hasClass("in")?"hide":"show"]()};Collapse.prototype.getParent=function(){return $(this.options.parent).find('[data-toggle="collapse"][data-parent="'+this.options.parent+'"]').each($.proxy(function(i,element){var $element=$(element);this.addAriaAndCollapsedClass(getTargetFromTrigger($element),$element)},this)).end()};Collapse.prototype.addAriaAndCollapsedClass=function($element,$trigger){var isOpen=$element.hasClass("in");$element.attr("aria-expanded",isOpen);$trigger.toggleClass("collapsed",!isOpen).attr("aria-expanded",isOpen)};function getTargetFromTrigger($trigger){var href;var target=$trigger.attr("data-target")||(href=$trigger.attr("href"))&&href.replace(/.*(?=#[^\s]+$)/,"");return $(target)} function Plugin(option){return this.each(function(){var $this=$(this);var data=$this.data("bs.collapse");var options=$.extend({},Collapse.DEFAULTS,$this.data(),typeof option=="object"&&option);if(!data&&options.toggle&&/show|hide/.test(option)) options.toggle=!1;if(!data) $this.data("bs.collapse",data=new Collapse(this,options));if(typeof option=="string") data[option]()})} var old=$.fn.collapse;$.fn.collapse=Plugin;$.fn.collapse.Constructor=Collapse;$.fn.collapse.noConflict=function(){$.fn.collapse=old;return this};$(document).on("click.bs.collapse.data-api",'[data-toggle="collapse"]',function(e){var $this=$(this);if(!$this.attr("data-target")) e.preventDefault();var $target=getTargetFromTrigger($this);var data=$target.data("bs.collapse");var option=data?"toggle":$this.data();Plugin.call($target,option)})}(jQuery);+function($){function transitionEnd(){var el=document.createElement("bootstrap");var transEndEventNames={WebkitTransition:"webkitTransitionEnd",MozTransition:"transitionend",OTransition:"oTransitionEnd otransitionend",transition:"transitionend"};for(var name in transEndEventNames){if(el.style[name]!==void 0){return{end:transEndEventNames[name]}}} return!1} $.fn.emulateTransitionEnd=function(duration){var called=!1;var $el=this;$(this).one("bsTransitionEnd",function(){called=!0});var callback=function(){if(!called) $($el).trigger($.support.transition.end)};setTimeout(callback,duration);return this};$(function(){$.support.transition=transitionEnd();if(!$.support.transition) return;$.event.special.bsTransitionEnd={bindType:$.support.transition.end,delegateType:$.support.transition.end,handle:function(e){if($(e.target).is(this)) return e.handleObj.handler.apply(this,arguments)}}})}(jQuery);(function(){if(jQuery==void 0){console.log("Jquery not included!");return} var $=jQuery;function isIE_fun(){var myNav=navigator.userAgent.toLowerCase();return myNav.indexOf("msie")!=-1?parseInt(myNav.split("msie")[1]):!1} var isIE=isIE_fun();var players=0;var youtube_api_state=0;var vimeo_api_state=0;jQuery.fn.extend({ensureLoad:function(handler){return this.each(function(){if(this.complete||this.readyState===4){handler.call(this)}else if(this.readyState==="uninitialized"&&this.src.indexOf("data:")===0){$(this).trigger("error");handler.call(this)}else{$(this).one("load",handler);if(isIE&&this.src!=void 0&&this.src.indexOf("?")==-1){this.src=this.src+"?"+(new Date()).getTime()}}})}});window.video_background=function($holder,in_parameters){this.hidden=!1;this.$holder=$holder;this.isVimeoPlaying=!0;this.isVimeoMute=1;this.id="video_background_video_"+players;players++;this.parameters={position:"absolute","z-index":"-1",video_ratio:!1,loop:!0,autoplay:!0,muted:!1,mp4:!1,webm:!1,ogg:!1,youtube:!1,vimeo:!1,controls:1,controls_position:"bottom-right",priority:"html5",fallback_image:!1,sizing:"fill",start:0,video_overlay:0,mobile_play:"no",tranitionIn:!0};$.each(in_parameters,$.proxy(function(index,obj){this.parameters[index]=obj},this));this.$video_holder=$('
').appendTo($holder).css({"z-index":this.parameters["z-index"],position:this.parameters.position,top:0,left:0,right:0,bottom:0,overflow:"hidden"});this.ismobile=navigator.userAgent.match(/(iPad)|(iPhone)|(iPod)|(android)|(webOS)/i);this.decision="image";var allow_mobile_videos=ZionBuilderFrontend.allow_video_on_mobile;if(!this.ismobile||allow_mobile_videos){this.decision=this.parameters.priority;if(this.parameters.youtube!==!1){this.decision="youtube"}else if(this.parameters.vimeo!==!1){this.decision="vimeo"}else{this.decision="html5"}} if(this.decision=="image"){this.make_image()}else if(this.decision=="youtube"){this.make_youtube()}else if(this.decision=="vimeo"){this.make_vimeo()}else{this.make_video()} return this};window.video_background.prototype={make_video:function(){var parameters=(this.parameters.autoplay?"autoplay ":"")+(this.parameters.loop?'loop onended="this.play()" ':"");parameters+=this.parameters.muted?" muted ":"";var str='";this.$video=$(str).addClass("object-fit__cover");this.$video_holder.append(this.$video);this.video=this.$video.get(0);if(typeof Modernizr=="object"&&!Modernizr.objectfit){if(this.parameters.video_ratio!==!1){this.resize_timeout=!1;$(window).resize($.proxy(function(){clearTimeout(this.resize_timeout);this.resize_timeout=setTimeout($.proxy(this.video_resize,this),10)},this));this.video_resize()}}else{this.$video.css({width:"100%",height:"100%"})} this.$video_holder.closest(".zn-videoBg").addClass("is-loaded");if(this.parameters.muted){this.mute()} if(this.parameters.controls){this.make_controls()}},video_resize:function(self2){this.$video=typeof self2!=="undefined"&&self2===!0?this.$video.children("iframe"):this.$video;var w=this.$video_holder.width();var h=this.$video_holder.height();var new_width=w;var new_height=w/this.parameters.video_ratio;if(new_height').appendTo(this.$video_holder).css({position:"absolute"});this.youtube_ready=!1;if(youtube_api_state==0){var tag=document.createElement("script");tag.src="https://www.youtube.com/iframe_api";var firstScriptTag=document.getElementsByTagName("script")[0];firstScriptTag.parentNode.insertBefore(tag,firstScriptTag);youtube_api_state=1;window.onYouTubeIframeAPIReady=$.proxy(function(){$html.trigger("yt_loaded");this.build_youtube();youtube_api_state=2},this)}else if(youtube_api_state==1){$html.bind("yt_loaded",$.proxy(this.build_youtube,this))}else if(youtube_api_state==2){this.build_youtube()}},build_youtube:function(){this.player=new YT.Player(this.id+"_yt",{height:"100%",width:"100%",videoId:this.parameters.youtube,events:{onReady:$.proxy(this.youtube_ready_fun,this)}})},youtube_ready_fun:function(event){this.youtube_ready=!0;this.$video=$("#"+this.id+"_yt");this.$video_holder.closest(".zn-videoBg").addClass("is-loaded");if(this.parameters.video_ratio!==!1){this.resize_timeout=!1;$(window).resize($.proxy(function(){clearTimeout(this.resize_timeout);this.resize_timeout=setTimeout($.proxy(this.video_resize,this),10)},this));this.video_resize()} if(this.parameters.muted){this.mute()} if(this.parameters.controls){this.make_controls()}},make_vimeo:function(){$("html");this.$video=$('
').appendTo(this.$video_holder).css({position:"absolute",top:0,left:0,right:0,bottom:0});this.vimeo_ready=!1;if(vimeo_api_state===0){$.getScript("//player.vimeo.com/api/player.js",$.proxy(function(){this.build_vimeo();vimeo_api_state=1},this))}else if(vimeo_api_state==1){this.build_vimeo()}},build_vimeo:function(){console.log(this.parameters);var pars={id:this.parameters.vimeo,loop:this.parameters.loop?1:0,autoplay:this.parameters.autoplay?1:0,muted:this.parameters.muted?1:0};this.player=new Vimeo.Player(this.id+"_vm",pars);var self2=this;this.player.on("loaded",function(){self2.vimeo_ready_fun()});this.player.on("play",function(){self2.isVimeoPlaying=!0});this.player.on("pause",function(){self2.isVimeoPlaying=!1});this.player.getPaused().then(function(paused){self2.isVimeoPlaying=!paused});this.player.on("volumechange",function(e){self2.isVimeoMute=e.volume===0?!0:!1})},vimeo_ready_fun:function(event){this.vimeo_ready=!0;this.$video=$("#"+this.id+"_vm");this.$video_holder.closest(".zn-videoBg").addClass("is-loaded");if(this.parameters.video_ratio!==!1){this.resize_timeout=!1;$(window).resize($.proxy(function(){clearTimeout(this.resize_timeout);this.resize_timeout=setTimeout($.proxy(this.video_resize,this),10)},this));this.video_resize(!0)} if(this.parameters.start){this.player.setCurrentTime(this.parameters.start)} if(this.parameters.muted){this.isVimeoMute=!0;this.mute()} if(this.parameters.controls){this.make_controls()}},make_controls:function(){var self2=this,$controls;$controls='";$($controls).appendTo(this.$video_holder);this.$video_holder.find(".btn-toggleplay").on("click",function(e){e.preventDefault();self2.toggle_play();$(this).children("i").toggleClass("paused")});this.$video_holder.find(".btn-audio").on("click",function(e){e.preventDefault();self2.toggle_mute();$(this).children("i").toggleClass("mute")})},make_image:function(){if(this.parameters.fallback_image===!1||this.parameters.fallback_image==""){return} this.$img=$('').appendTo(this.$video_holder).css({position:"absolute"});if(typeof Modernizr=="object"&&!Modernizr.objectfit){this.$img.ensureLoad($.proxy(this.image_loaded,this))}else{this.$img.css({width:"100%",height:"100%"})} this.$video_holder.closest(".zn-videoBg").addClass("is-loaded")},image_loaded:function(){this.original_width=this.$img.width();this.original_height=this.$img.height();this.resize_timeout=!1;$(window).resize($.proxy(function(){clearTimeout(this.resize_timeout);this.resize_timeout=setTimeout($.proxy(this.image_resize,this),10)},this));this.image_resize()},image_resize:function(){var w=this.$video_holder.width();var h=this.$video_holder.height();var new_width=w;var new_height=this.original_height/(this.original_width/w);if(this.parameters.sizing=="adjust"&&new_height>h||this.parameters.sizing=="fill"&&new_height0){self2.elems=elements}else{console.warn("Rellax: The elements you're trying to select don't exist.");return} if(self2.options.wrapper){if(!self2.options.wrapper.nodeType){var wrapper=document.querySelector(self2.options.wrapper);if(wrapper){self2.options.wrapper=wrapper}else{console.warn("Rellax: The wrapper you're trying to use doesn't exist.");return}}} var currentBreakpoint;var getCurrentBreakpoint=function(w){var bp=self2.options.breakpoints;if(w=bp[0]&&w=bp[1]&&w=blocks[i].max?blocks[i].max:positionY} if(self2.options.horizontal&&!self2.options.vertical){positionX=positionX>=blocks[i].max?blocks[i].max:positionX}} if(blocks[i].maxY!=null){positionY=positionY>=blocks[i].maxY?blocks[i].maxY:positionY} if(blocks[i].maxX!=null){positionX=positionX>=blocks[i].maxX?blocks[i].maxX:positionX} var zindex=blocks[i].zindex;var translate="translate3d("+(self2.options.horizontal?positionX:"0")+"px,"+(self2.options.vertical?positionY:"0")+"px,"+zindex+"px) "+blocks[i].transform;self2.elems[i].style[transformProp]=translate} self2.options.callback(positions)};self2.destroy=function(){for(var i=0;i=this.parTop&&$winST<=this.parTop+this.parHeight){var $diffElem=(($scrollY-this.parTop)/1.3).toFixed(0);$el.addClass("is-visible");$el.css({"transform":"translate3d("+this.parLeft+"px,"+(this.parTop-$scrollY)+"px,0)"+this.scaleFactor});this.$bg.css("transform","translate3d(0,"+$diffElem+"px,0)");rendered=!0}else{$el.removeClass("is-visible")}},disableParallax:function(){$(this.element).removeClass("is-fixed").css({"transform":"","height":""});this.$bg.css("transform","")}};$.fn[pluginName]=function(options){return this.each(function(){if(!$.data(this,"plugin_"+pluginName)){$.data(this,"plugin_"+pluginName,new Plugin(this,options))}})}})(jQuery,window);(function($){$.ZnbFrontendJs=function(){this.scope=$(document);this.zinit()};$.ZnbFrontendJs.prototype={zinit:function(){var fw=this;fw.addActions();fw.initHelpers($(document));fw.refresh_events($(document));$(document).trigger("ZnbFrontendJsReady",this)},refresh_events:function(content){var fw=this;fw.contact_forms(content);fw.doParallax(content);fw.doObjectParallax(content);fw.background_video(content);fw.entryAnimations(content);fw.objectFitCover(content)},RefreshOnWidthChange:function(content){},addActions:function(){var fw=this;fw.scope.on("ZnWidthChanged",function(e){fw.RefreshOnWidthChange(e.content);$(window).trigger("resize")});fw.scope.on("ZnNewContent",function(e){fw.refresh_events(e.content)})},unbind_events:function(scope){},initHelpers:function(scope){var fw=this;this.helpers={};this.helpers.IsJsonString=function(a){try{JSON.parse(a)}catch(e){return!1} return!0};this.helpers.is_null=function(a){return a===null};this.helpers.is_undefined=function(a){return typeof a=="undefined"||a===null||a===""||a==="undefined"};this.helpers.is_number=function(a){return(a instanceof Number||typeof a=="number")&&!isNaN(a)};this.helpers.is_true=function(a){return a===!0||a==="true"};this.helpers.is_false=function(a){return a===!1||a==="false"};this.helpers.throttle=function(func,wait,options){var timeout,context,args,result;var previous=0;if(!options) options={};var later=function(){previous=options.leading===!1?0:fw.helpers.date_now;timeout=null;result=func.apply(context,args);if(!timeout) context=args=null};var throttled=function(){var now=fw.helpers.date_now;if(!previous&&options.leading===!1) previous=now;var remaining=wait-(now-previous);context=this;args=arguments;if(remaining<=0||remaining>wait){if(timeout){clearTimeout(timeout);timeout=null} previous=now;result=func.apply(context,args);if(!timeout) context=args=null}else if(!timeout&&options.trailing!==!1){timeout=setTimeout(later,remaining)} return result};throttled.cancel=function(){clearTimeout(timeout);previous=0;timeout=context=args=null};return throttled};this.helpers.debounce=function(func,wait,immediate){var timeout;return function(){var context=this,args=arguments;var later=function(){timeout=null;if(!immediate) func.apply(context,args)};var callNow=immediate&&!timeout;clearTimeout(timeout);timeout=setTimeout(later,wait);if(callNow) func.apply(context,args)}};this.helpers.isInViewport=function(element){var rect=element.getBoundingClientRect();var html=document.documentElement;var tolerance=rect.height*0.75;return rect.top>=-tolerance&&rect.bottom<=(window.innerHeight||html.clientHeight)+tolerance};this.helpers.date_now=Date.now||function(){return(new Date()).getTime()};this.helpers.hasTouch=typeof Modernizr=="object"&&Modernizr.touchevents||!1;this.helpers.hasTouchMobile=this.helpers.hasTouch&&window.matchMedia("(max-width: 1024px)").matches;this.helpers.ua=navigator.userAgent||"";this.helpers.is_mobile_ie=-1!==this.helpers.ua.indexOf("IEMobile");this.helpers.is_firefox=-1!==this.helpers.ua.indexOf("Firefox");this.helpers.isAtLeastIE11=!!(this.helpers.ua.match(/Trident/)&&!this.helpers.ua.match(/MSIE/));this.helpers.isIE11=!!(this.helpers.ua.match(/Trident/)&&this.helpers.ua.match(/rv[ :]11/));this.helpers.isMac=/^Mac/.test(navigator.platform);this.helpers.is_safari=/^((?!chrome|android).)*safari/i.test(this.helpers.ua);this.helpers.isIE10=navigator.userAgent.match("MSIE 10");this.helpers.isIE9=navigator.userAgent.match("MSIE 9");this.helpers.is_EDGE=/Edge\/12./i.test(this.helpers.ua);this.helpers.is_pb=!this.helpers.is_undefined(window.ZnPbData);var $body=$("body");if(this.helpers.is_EDGE) $body.addClass("is-edge");if(this.helpers.isIE11) $body.addClass("is-ie11");if(this.helpers.is_safari) $body.addClass("is-safari")},contact_forms:function(scope){var fw=this,element=scope?scope.find(".zn-contactForm"):$(".zn-contactForm");element.each(function(index,el){var $el=$(el),time_picker=$el.find(".zn-formItem-field--timepicker"),date_picker=$el.find(".zn-formItem-field--datepicker"),datepicker_lang=date_picker.is("[data-datepickerlang]")?date_picker.attr("data-datepickerlang"):"",date_format=date_picker.is("[data-dateformat]")?date_picker.attr("data-dateformat"):"yy-mm-dd",timeformat=time_picker.is("[data-timeformat]")?time_picker.attr("data-timeformat"):"h:i A";if(time_picker.length>0){time_picker.timepicker({timeFormat:timeformat,className:"cf-elm-tp"})} if(date_picker.length>0){date_picker.datepicker({dateFormat:date_format,showOtherMonths:!0}).datepicker("widget").wrap('
');if(datepicker_lang!==""){$.datepicker.setDefaults($.datepicker.regional[datepicker_lang])}} $el.on("submit",function(e){e.preventDefault();if(fw.form_submitting===!0){return!1} fw.form_submitting=!0;var form=$(this),response_container=form.find(".zn_contact_ajax_response:eq(0)"),has_error=!1,inputs={fields:form.find('textarea, select, input[type="text"], input[type="checkbox"], input[type="hidden"]')},form_id=response_container.attr("id"),submit_button=form.find(".zn-formSubmit");if((fw.helpers.isIE11||fw.helpers.isIE10||fw.helpers.isIE9)&&form.is('[action="#"]')){form.attr("action","")} submit_button.addClass("zn-contactForm--loading");inputs.fields.each(function(){var field=$(this),p_container=field.parent();if(field.is(":checkbox")){if(field.is(":checked")){field.val(!0)}else{field.val("")}} p_container.removeClass("zn-formItem--invalid");if(field.hasClass("zn_validate_not_empty")){if(field.is(":checkbox")){if(!field.is(":checked")){p_container.addClass("zn-formItem--invalid");has_error=!0}}else{if(field.val()===""){p_container.addClass("zn-formItem--invalid");has_error=!0}}}else if(field.hasClass("zn_validate_is_email")){if(!field.val().match(/^[a-zA-Z0-9._-]+@[a-zA-Z0-9.-]+\.[a-zA-Z]{2,4}$/)){p_container.addClass("zn-formItem--invalid");has_error=!0}}else if(field.hasClass("zn_validate_is_numeric")){if(isNaN(field.val())){p_container.addClass("zn-formItem--invalid");has_error=!0}}});if(has_error){submit_button.removeClass("zn-contactForm--loading");fw.form_submitting=!1;return!1} var data=form.serialize();$.post(form.attr("action"),data).success(function(result){fw.form_submitting=!1;submit_button.removeClass("zn-contactForm--loading");var response=$(result).find("#"+form_id+" > .zn_cf_response"),responseContainer=$("#"+form_id),redirect_uri=form.data("redirect");responseContainer.html(response);if(response.hasClass("alert-success")){inputs.fields.val("");if(redirect_uri){window.location.replace(redirect_uri)}}}).error(function(){console.log("Error loading page")});return!1})})},background_video:function(scope){var fw=this,elements=scope.find(".zn-videoBg:not(.zn-videoBg--no-init)");if(!elements.length) return;elements.each(function(index,el){var $video=$(el),$options=$video.is("[data-video-setup]")&&fw.helpers.IsJsonString($video.attr("data-video-setup"))?JSON.parse($video.attr("data-video-setup")):{};if(typeof window.video_background!="undefined"){new window.video_background($video,$options)}})},doParallax:function(scope){var fw=this,$el=$(".js-znParallax",$(scope));if($el.length>0&&!fw.helpers.hasTouchMobile&&typeof $.fn.znParallax!="undefined"){$el.znParallax()}},doObjectParallax:function(scope){var fw=this,$el=$(".js-doObjParallax",$(scope));if($el.length>0&&!fw.helpers.hasTouchMobile&&!fw.helpers.is_mobile_ie&&typeof Rellax!="undefined"){new Rellax(".js-doObjParallax")}},entryAnimations:function(scope){var fw=this,elements=$(scope).find(".zn-animateInViewport"),is=[];if(elements.length>0){elements.each(function(i,el){var $el=$(el);$el.css("animation-delay",$el.attr("data-anim-delay"));function animateEntrance(){if($(el).parent().hasClass("eluida7543286")){console.log(fw.helpers.isInViewport(el))} if(!is[i]&&fw.helpers.isInViewport(el)){$el.removeClass("zn-animateInViewport").addClass("is-animating");is[i]=!0}} animateEntrance();$(window).on("scroll",animateEntrance)})}},objectFitCover:function(scope){var fw=this;function coverFillSwitch(container,obj,invert){if(!container||!obj) return!1;var objHeight=obj.naturalHeight||obj.videoHeight;var objWidth=obj.naturalWidth||obj.videoWidth;var containerRatio=container.offsetWidth/container.offsetHeight;var objRatio=objWidth/objHeight;var ratioComparison=!1;if(objRatio>=containerRatio) ratioComparison=!0;if(invert) ratioComparison=!ratioComparison;if(ratioComparison){obj.style.height="100%";obj.style.width="auto"}else{obj.style.height="auto";obj.style.width="100%"}} function applyStandardProperties(container,obj){var containerStyle=window.getComputedStyle(container);if(containerStyle.overflow!=="hidden") container.style.overflow="hidden";if(containerStyle.position!=="relative"&&containerStyle.position!=="absolute"&&containerStyle.position!=="fixed") container.style.position="relative";obj.style.position="absolute";obj.style.top="50%";obj.style.left="50%";obj.style.transform="translate(-50%,-50%)"} function objectFitInt(el){var objs=document.getElementsByClassName(el);for(var i=0;i