(function(factory){if(typeof define==="function"&&define.amd){define(["jquery"],function($){return factory($)})}else if(typeof module==="object"&&typeof module.exports==="object"){exports=factory(require("jquery"))}else{factory(jQuery)}})(function($){$.easing["jswing"]=$.easing["swing"];var pow=Math.pow,sqrt=Math.sqrt,sin=Math.sin,cos=Math.cos,PI=Math.PI,c1=1.70158,c2=c1*1.525,c3=c1+1,c4=2*PI/3,c5=2*PI/4.5;function bounceOut(x){var n1=7.5625,d1=2.75;if(x<1/d1){return n1*x*x}else if(x<2/d1){return n1*(x-=1.5/d1)*x+.75}else if(x<2.5/d1){return n1*(x-=2.25/d1)*x+.9375}else{return n1*(x-=2.625/d1)*x+.984375}}$.extend($.easing,{def:"easeOutQuad",swing:function(x){return $.easing[$.easing.def](x)},easeInQuad:function(x){return x*x},easeOutQuad:function(x){return 1-(1-x)*(1-x)},easeInOutQuad:function(x){return x<.5?2*x*x:1-pow(-2*x+2,2)/2},easeInCubic:function(x){return x*x*x},easeOutCubic:function(x){return 1-pow(1-x,3)},easeInOutCubic:function(x){return x<.5?4*x*x*x:1-pow(-2*x+2,3)/2},easeInQuart:function(x){return x*x*x*x},easeOutQuart:function(x){return 1-pow(1-x,4)},easeInOutQuart:function(x){return x<.5?8*x*x*x*x:1-pow(-2*x+2,4)/2},easeInQuint:function(x){return x*x*x*x*x},easeOutQuint:function(x){return 1-pow(1-x,5)},easeInOutQuint:function(x){return x<.5?16*x*x*x*x*x:1-pow(-2*x+2,5)/2},easeInSine:function(x){return 1-cos(x*PI/2)},easeOutSine:function(x){return sin(x*PI/2)},easeInOutSine:function(x){return-(cos(PI*x)-1)/2},easeInExpo:function(x){return x===0?0:pow(2,10*x-10)},easeOutExpo:function(x){return x===1?1:1-pow(2,-10*x)},easeInOutExpo:function(x){return x===0?0:x===1?1:x<.5?pow(2,20*x-10)/2:(2-pow(2,-20*x+10))/2},easeInCirc:function(x){return 1-sqrt(1-pow(x,2))},easeOutCirc:function(x){return sqrt(1-pow(x-1,2))},easeInOutCirc:function(x){return x<.5?(1-sqrt(1-pow(2*x,2)))/2:(sqrt(1-pow(-2*x+2,2))+1)/2},easeInElastic:function(x){return x===0?0:x===1?1:-pow(2,10*x-10)*sin((x*10-10.75)*c4)},easeOutElastic:function(x){return x===0?0:x===1?1:pow(2,-10*x)*sin((x*10-.75)*c4)+1},easeInOutElastic:function(x){return x===0?0:x===1?1:x<.5?-(pow(2,20*x-10)*sin((20*x-11.125)*c5))/2:pow(2,-20*x+10)*sin((20*x-11.125)*c5)/2+1},easeInBack:function(x){return c3*x*x*x-c1*x*x},easeOutBack:function(x){return 1+c3*pow(x-1,3)+c1*pow(x-1,2)},easeInOutBack:function(x){return x<.5?pow(2*x,2)*((c2+1)*2*x-c2)/2:(pow(2*x-2,2)*((c2+1)*(x*2-2)+c2)+2)/2},easeInBounce:function(x){return 1-bounceOut(1-x)},easeOutBounce:bounceOut,easeInOutBounce:function(x){return x<.5?(1-bounceOut(1-2*x))/2:(1+bounceOut(2*x-1))/2}})});
!function(t){"use strict";t.fn.fitVids=function(e){var i={customSelector:null,ignore:null};if(!document.getElementById("fit-vids-style")){var r=document.head||document.getElementsByTagName("head")[0],a=".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%;}",d=document.createElement("div");d.innerHTML='<p>x</p><style id="fit-vids-style">'+a+"</style>",r.appendChild(d.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 r=".fitvidsignore";i.ignore&&(r=r+", "+i.ignore);var a=t(this).find(e.join(","));a=a.not("object object"),a=a.not(r),a.each(function(){var e=t(this);if(!(e.parents(r).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(),a=isNaN(parseInt(e.attr("width"),10))?e.width():parseInt(e.attr("width"),10),d=i/a;if(!e.attr("name")){var o="fitvid"+t.fn.fitVids._count;e.attr("name",o),t.fn.fitVids._count++}e.wrap('<div class="fluid-width-video-wrapper"></div>').parent(".fluid-width-video-wrapper").css("padding-top",100*d+"%"),e.removeAttr("height").removeAttr("width")}})})},t.fn.fitVids._count=0}(window.jQuery||window.Zepto);
!function(R){var Z={mode:"horizontal",slideSelector:"",infiniteLoop:!0,hideControlOnEnd:!1,speed:500,easing:null,slideMargin:0,startSlide:0,randomStart:!1,captions:!1,ticker:!1,tickerHover:!1,adaptiveHeight:!1,adaptiveHeightSpeed:500,video:!1,useCSS:!0,preloadImages:"visible",responsive:!0,slideZIndex:50,wrapperClass:"bx-wrapper",touchEnabled:!0,swipeThreshold:50,oneToOneTouch:!0,preventDefaultSwipeX:!0,preventDefaultSwipeY:!1,ariaLive:!0,ariaHidden:!0,keyboardEnabled:!1,pager:!0,pagerType:"full",pagerShortSeparator:" / ",pagerSelector:null,buildPager:null,pagerCustom:null,controls:!0,nextText:"Next",prevText:"Prev",nextSelector:null,prevSelector:null,autoControls:!1,startText:"Start",stopText:"Stop",autoControlsCombine:!1,autoControlsSelector:null,auto:!1,pause:4e3,autoStart:!0,autoDirection:"next",stopAutoOnClick:!1,autoHover:!1,autoDelay:0,autoSlideForOnePage:!1,minSlides:1,maxSlides:1,moveSlides:0,slideWidth:0,shrinkItems:!1,onSliderLoad:function(){return!0},onSlideBefore:function(){return!0},onSlideAfter:function(){return!0},onSlideNext:function(){return!0},onSlidePrev:function(){return!0},onSliderResize:function(){return!0}};R.fn.bxSlider=function(e){if(0===this.length)return this;if(1<this.length)return this.each(function(){R(this).bxSlider(e)}),this;var s,t,n,o,a,r,l,d,c,g,h,p,u,v,f,x,m,S,b,w,C,T,E,k,P,y,z,O,M,F,I,N,X,q,A,H,W,D={},L=this,Y=R(window).width(),V=R(window).height();if(!R(L).data("bxSlider"))return s=function(){R(L).data("bxSlider")||(D.settings=R.extend({},Z,e),D.settings.slideWidth=parseInt(D.settings.slideWidth),D.children=L.children(D.settings.slideSelector),D.children.length<D.settings.minSlides&&(D.settings.minSlides=D.children.length),D.children.length<D.settings.maxSlides&&(D.settings.maxSlides=D.children.length),D.settings.randomStart&&(D.settings.startSlide=Math.floor(Math.random()*D.children.length)),D.active={index:D.settings.startSlide},D.carousel=1<D.settings.minSlides||1<D.settings.maxSlides,D.carousel&&(D.settings.preloadImages="all"),D.minThreshold=D.settings.minSlides*D.settings.slideWidth+(D.settings.minSlides-1)*D.settings.slideMargin,D.maxThreshold=D.settings.maxSlides*D.settings.slideWidth+(D.settings.maxSlides-1)*D.settings.slideMargin,D.working=!1,D.controls={},D.interval=null,D.animProp="vertical"===D.settings.mode?"top":"left",D.usingCSS=D.settings.useCSS&&"fade"!==D.settings.mode&&function(){for(var t=document.createElement("div"),e=["WebkitPerspective","MozPerspective","OPerspective","msPerspective"],i=0;i<e.length;i++)if(void 0!==t.style[e[i]])return D.cssPrefix=e[i].replace("Perspective","").toLowerCase(),D.animProp="-"+D.cssPrefix+"-transform",!0;return!1}(),"vertical"===D.settings.mode&&(D.settings.maxSlides=D.settings.minSlides),L.data("origStyle",L.attr("style")),L.children(D.settings.slideSelector).each(function(){R(this).data("origStyle",R(this).attr("style"))}),t())},t=function(){var t=D.children.eq(D.settings.startSlide);L.wrap('<div class="'+D.settings.wrapperClass+'"><div class="bx-viewport"></div></div>'),D.viewport=L.parent(),D.settings.ariaLive&&!D.settings.ticker&&D.viewport.attr("aria-live","polite"),D.loader=R('<div class="bx-loading" />'),D.viewport.prepend(D.loader),L.css({width:"horizontal"===D.settings.mode?1e3*D.children.length+215+"%":"auto",position:"relative"}),D.usingCSS&&D.settings.easing?L.css("-"+D.cssPrefix+"-transition-timing-function",D.settings.easing):D.settings.easing||(D.settings.easing="swing"),D.viewport.css({width:"100%",overflow:"hidden",position:"relative"}),D.viewport.parent().css({maxWidth:r()}),D.settings.pager||D.settings.controls||D.viewport.parent().css({margin:"0 auto 0px"}),D.children.css({float:"horizontal"===D.settings.mode?"left":"none",listStyle:"none",position:"relative"}),D.children.css("width",l()),"horizontal"===D.settings.mode&&0<D.settings.slideMargin&&D.children.css("marginRight",D.settings.slideMargin),"vertical"===D.settings.mode&&0<D.settings.slideMargin&&D.children.css("marginBottom",D.settings.slideMargin),"fade"===D.settings.mode&&(D.children.css({position:"absolute",zIndex:0,display:"none"}),D.children.eq(D.settings.startSlide).css({zIndex:D.settings.slideZIndex,display:"block"})),D.controls.el=R('<div class="bx-controls" />'),D.settings.captions&&m(),D.active.last=D.settings.startSlide===c()-1,D.settings.video&&L.fitVids(),"all"!==D.settings.preloadImages&&!D.settings.ticker||(t=D.children),D.settings.ticker?D.settings.pager=!1:(D.settings.controls&&f(),D.settings.auto&&D.settings.autoControls&&x(),D.settings.pager&&v(),(D.settings.controls||D.settings.autoControls||D.settings.pager)&&D.viewport.after(D.controls.el)),n(t,o)},n=function(t,e){var i=t.find('img:not([src=""]), iframe').length,s=0;0===i?e():t.find('img:not([src=""]), iframe').each(function(){R(this).one("load error",function(){++s===i&&e()}).each(function(){this.complete&&R(this).trigger("load")})})},o=function(){var t,e;D.settings.infiniteLoop&&"fade"!==D.settings.mode&&!D.settings.ticker&&(e="vertical"===D.settings.mode?D.settings.minSlides:D.settings.maxSlides,t=D.children.slice(0,e).clone(!0).addClass("bx-clone"),e=D.children.slice(-e).clone(!0).addClass("bx-clone"),D.settings.ariaHidden&&(t.attr("aria-hidden",!0),e.attr("aria-hidden",!0)),L.append(t).prepend(e)),D.loader.remove(),h(),"vertical"===D.settings.mode&&(D.settings.adaptiveHeight=!0),D.viewport.height(a()),L.redrawSlider(),D.settings.onSliderLoad.call(L,D.active.index),D.initialized=!0,D.settings.responsive&&R(window).bind("resize",H),D.settings.auto&&D.settings.autoStart&&(1<c()||D.settings.autoSlideForOnePage)&&z(),D.settings.ticker&&O(),D.settings.pager&&E(D.settings.startSlide),D.settings.controls&&y(),"ontouchstart"in window&&N(),D.settings.keyboardEnabled&&!D.settings.ticker&&R(document).keydown(I)},a=function(){var e=0,t=R();if("vertical"===D.settings.mode||D.settings.adaptiveHeight)if(D.carousel){var s=1===D.settings.moveSlides?D.active.index:D.active.index*g(),t=D.children.eq(s);for(i=1;i<=D.settings.maxSlides-1;i++)t=s+i>=D.children.length?t.add(D.children.eq(i-1)):t.add(D.children.eq(s+i))}else t=D.children.eq(D.active.index);else t=D.children;return"vertical"===D.settings.mode?(t.each(function(t){e+=R(this).outerHeight()}),0<D.settings.slideMargin&&(e+=D.settings.slideMargin*(D.settings.minSlides-1))):e=Math.max.apply(Math,t.map(function(){return R(this).outerHeight(!1)}).get()),"border-box"===D.viewport.css("box-sizing")?e+=parseFloat(D.viewport.css("padding-top"))+parseFloat(D.viewport.css("padding-bottom"))+parseFloat(D.viewport.css("border-top-width"))+parseFloat(D.viewport.css("border-bottom-width")):"padding-box"===D.viewport.css("box-sizing")&&(e+=parseFloat(D.viewport.css("padding-top"))+parseFloat(D.viewport.css("padding-bottom"))),e},r=function(){var t="100%";return t=0<D.settings.slideWidth?"horizontal"===D.settings.mode?D.settings.maxSlides*D.settings.slideWidth+(D.settings.maxSlides-1)*D.settings.slideMargin:D.settings.slideWidth:t},l=function(){var t=D.settings.slideWidth,e=D.viewport.width();if(0===D.settings.slideWidth||D.settings.slideWidth>e&&!D.carousel||"vertical"===D.settings.mode)t=e;else if(1<D.settings.maxSlides&&"horizontal"===D.settings.mode){if(e>D.maxThreshold)return t;e<D.minThreshold?t=(e-D.settings.slideMargin*(D.settings.minSlides-1))/D.settings.minSlides:D.settings.shrinkItems&&(t=Math.floor((e+D.settings.slideMargin)/Math.ceil((e+D.settings.slideMargin)/(t+D.settings.slideMargin))-D.settings.slideMargin))}return t},d=function(){var t,e=1;return"horizontal"===D.settings.mode&&0<D.settings.slideWidth?e=D.viewport.width()<D.minThreshold?D.settings.minSlides:D.viewport.width()>D.maxThreshold?D.settings.maxSlides:(t=D.children.first().width()+D.settings.slideMargin,Math.floor((D.viewport.width()+D.settings.slideMargin)/t)):"vertical"===D.settings.mode&&(e=D.settings.minSlides),e},c=function(){var t=0,e=0,i=0;if(0<D.settings.moveSlides)if(D.settings.infiniteLoop)t=Math.ceil(D.children.length/g());else for(;e<D.children.length;)++t,e=i+d(),i+=D.settings.moveSlides<=d()?D.settings.moveSlides:d();else t=Math.ceil(D.children.length/d());return t},g=function(){return 0<D.settings.moveSlides&&D.settings.moveSlides<=d()?D.settings.moveSlides:d()},h=function(){var t,e;D.children.length>D.settings.maxSlides&&D.active.last&&!D.settings.infiniteLoop?"horizontal"===D.settings.mode?(t=(e=D.children.last()).position(),p(-(t.left-(D.viewport.width()-e.outerWidth())),"reset",0)):"vertical"===D.settings.mode&&(e=D.children.length-D.settings.minSlides,t=D.children.eq(e).position(),p(-t.top,"reset",0)):(t=D.children.eq(D.active.index*g()).position(),D.active.index===c()-1&&(D.active.last=!0),void 0!==t&&("horizontal"===D.settings.mode?p(-t.left,"reset",0):"vertical"===D.settings.mode&&p(-t.top,"reset",0)))},p=function(t,e,i,s){var n;D.usingCSS?(n="vertical"===D.settings.mode?"translate3d(0, "+t+"px, 0)":"translate3d("+t+"px, 0, 0)",L.css("-"+D.cssPrefix+"-transition-duration",i/1e3+"s"),"slide"===e?(L.css(D.animProp,n),0!==i?L.bind("transitionend webkitTransitionEnd oTransitionEnd MSTransitionEnd",function(t){R(t.target).is(L)&&(L.unbind("transitionend webkitTransitionEnd oTransitionEnd MSTransitionEnd"),k())}):k()):"reset"===e?L.css(D.animProp,n):"ticker"===e&&(L.css("-"+D.cssPrefix+"-transition-timing-function","linear"),L.css(D.animProp,n),0!==i?L.bind("transitionend webkitTransitionEnd oTransitionEnd MSTransitionEnd",function(t){R(t.target).is(L)&&(L.unbind("transitionend webkitTransitionEnd oTransitionEnd MSTransitionEnd"),p(s.resetValue,"reset",0),M())}):(p(s.resetValue,"reset",0),M()))):((n={})[D.animProp]=t,"slide"===e?L.animate(n,i,D.settings.easing,function(){k()}):"reset"===e?L.css(D.animProp,t):"ticker"===e&&L.animate(n,i,"linear",function(){p(s.resetValue,"reset",0),M()}))},u=function(){for(var t="",e="",i=c(),s=0;s<i;s++)e="",D.settings.buildPager&&"function"==typeof D.settings.buildPager||D.settings.pagerCustom?(e=D.settings.buildPager(s),D.pagerEl.addClass("bx-custom-pager")):(e=s+1,D.pagerEl.addClass("bx-default-pager")),t+='<div class="bx-pager-item"><a href="" data-slide-index="'+s+'" class="bx-pager-link">'+e+"</a></div>";D.pagerEl.html(t)},v=function(){D.settings.pagerCustom?D.pagerEl=R(D.settings.pagerCustom):(D.pagerEl=R('<div class="bx-pager" />'),D.settings.pagerSelector?R(D.settings.pagerSelector).html(D.pagerEl):D.controls.el.addClass("bx-has-pager").append(D.pagerEl),u()),D.pagerEl.on("click touchend","a",T)},f=function(){D.controls.next=R('<a class="bx-next" href="">'+D.settings.nextText+"</a>"),D.controls.prev=R('<a class="bx-prev" href="">'+D.settings.prevText+"</a>"),D.controls.next.bind("click touchend",S),D.controls.prev.bind("click touchend",b),D.settings.nextSelector&&R(D.settings.nextSelector).append(D.controls.next),D.settings.prevSelector&&R(D.settings.prevSelector).append(D.controls.prev),D.settings.nextSelector||D.settings.prevSelector||(D.controls.directionEl=R('<div class="bx-controls-direction" />'),D.controls.directionEl.append(D.controls.prev).append(D.controls.next),D.controls.el.addClass("bx-has-controls-direction").append(D.controls.directionEl))},x=function(){D.controls.start=R('<div class="bx-controls-auto-item"><a class="bx-start" href="">'+D.settings.startText+"</a></div>"),D.controls.stop=R('<div class="bx-controls-auto-item"><a class="bx-stop" href="">'+D.settings.stopText+"</a></div>"),D.controls.autoEl=R('<div class="bx-controls-auto" />'),D.controls.autoEl.on("click",".bx-start",w),D.controls.autoEl.on("click",".bx-stop",C),D.settings.autoControlsCombine?D.controls.autoEl.append(D.controls.start):D.controls.autoEl.append(D.controls.start).append(D.controls.stop),D.settings.autoControlsSelector?R(D.settings.autoControlsSelector).html(D.controls.autoEl):D.controls.el.addClass("bx-has-controls-auto").append(D.controls.autoEl),P(D.settings.autoStart?"stop":"start")},m=function(){D.children.each(function(t){var e=R(this).find("img:first").attr("title");void 0!==e&&(""+e).length&&R(this).append('<div class="bx-caption"><span>'+e+"</span></div>")})},S=function(t){t.preventDefault(),D.controls.el.hasClass("disabled")||(D.settings.auto&&D.settings.stopAutoOnClick&&L.stopAuto(),L.goToNextSlide())},b=function(t){t.preventDefault(),D.controls.el.hasClass("disabled")||(D.settings.auto&&D.settings.stopAutoOnClick&&L.stopAuto(),L.goToPrevSlide())},w=function(t){L.startAuto(),t.preventDefault()},C=function(t){L.stopAuto(),t.preventDefault()},T=function(t){t.preventDefault(),D.controls.el.hasClass("disabled")||(D.settings.auto&&D.settings.stopAutoOnClick&&L.stopAuto(),void 0!==(t=R(t.currentTarget)).attr("data-slide-index")&&(t=parseInt(t.attr("data-slide-index")))!==D.active.index&&L.goToSlide(t))},E=function(i){var t=D.children.length;if("short"===D.settings.pagerType)return 1<D.settings.maxSlides&&(t=Math.ceil(D.children.length/D.settings.maxSlides)),void D.pagerEl.html(i+1+D.settings.pagerShortSeparator+t);D.pagerEl.find("a").removeClass("active"),D.pagerEl.each(function(t,e){R(e).find("a").eq(i).addClass("active")})},k=function(){var t;D.settings.infiniteLoop&&(t="",0===D.active.index?t=D.children.eq(0).position():D.active.index===c()-1&&D.carousel?t=D.children.eq((c()-1)*g()).position():D.active.index===D.children.length-1&&(t=D.children.eq(D.children.length-1).position()),t&&("horizontal"===D.settings.mode?p(-t.left,"reset",0):"vertical"===D.settings.mode&&p(-t.top,"reset",0))),D.working=!1,D.settings.onSlideAfter.call(L,D.children.eq(D.active.index),D.oldIndex,D.active.index)},P=function(t){D.settings.autoControlsCombine?D.controls.autoEl.html(D.controls[t]):(D.controls.autoEl.find("a").removeClass("active"),D.controls.autoEl.find("a:not(.bx-"+t+")").addClass("active"))},y=function(){1===c()?(D.controls.prev.addClass("disabled"),D.controls.next.addClass("disabled")):!D.settings.infiniteLoop&&D.settings.hideControlOnEnd&&(0===D.active.index?(D.controls.prev.addClass("disabled"),D.controls.next.removeClass("disabled")):D.active.index===c()-1?(D.controls.next.addClass("disabled"),D.controls.prev.removeClass("disabled")):(D.controls.prev.removeClass("disabled"),D.controls.next.removeClass("disabled")))},z=function(){0<D.settings.autoDelay?setTimeout(L.startAuto,D.settings.autoDelay):(L.startAuto(),R(window).focus(function(){L.startAuto()}).blur(function(){L.stopAuto()})),D.settings.autoHover&&L.hover(function(){D.interval&&(L.stopAuto(!0),D.autoPaused=!0)},function(){D.autoPaused&&(L.startAuto(!0),D.autoPaused=null)})},O=function(){var t,e,i,s,n,o,r,a,l=0;"next"===D.settings.autoDirection?L.append(D.children.clone().addClass("bx-clone")):(L.prepend(D.children.clone().addClass("bx-clone")),t=D.children.first().position(),l="horizontal"===D.settings.mode?-t.left:-t.top),p(l,"reset",0),D.settings.pager=!1,D.settings.controls=!1,D.settings.autoControls=!1,D.settings.tickerHover&&(D.usingCSS?(s="horizontal"===D.settings.mode?4:5,D.viewport.hover(function(){e=L.css("-"+D.cssPrefix+"-transform"),i=parseFloat(e.split(",")[s]),p(i,"reset",0)},function(){a=0,D.children.each(function(t){a+="horizontal"===D.settings.mode?R(this).outerWidth(!0):R(this).outerHeight(!0)}),n=D.settings.speed/a,o="horizontal"===D.settings.mode?"left":"top",r=n*(a-Math.abs(parseInt(i))),M(r)})):D.viewport.hover(function(){L.stop()},function(){a=0,D.children.each(function(t){a+="horizontal"===D.settings.mode?R(this).outerWidth(!0):R(this).outerHeight(!0)}),n=D.settings.speed/a,o="horizontal"===D.settings.mode?"left":"top",r=n*(a-Math.abs(parseInt(L.css(o)))),M(r)})),M()},M=function(t){var t=t||D.settings.speed,e={left:0,top:0},i={left:0,top:0};"next"===D.settings.autoDirection?e=L.find(".bx-clone").first().position():i=D.children.first().position(),e="horizontal"===D.settings.mode?-e.left:-e.top,i="horizontal"===D.settings.mode?-i.left:-i.top,p(e,"ticker",t,{resetValue:i})},F=function(t){var e=R(window),i={top:e.scrollTop(),left:e.scrollLeft()},s=t.offset();return i.right=i.left+e.width(),i.bottom=i.top+e.height(),s.right=s.left+t.outerWidth(),s.bottom=s.top+t.outerHeight(),!(i.right<s.left||i.left>s.right||i.bottom<s.top||i.top>s.bottom)},I=function(t){var e=document.activeElement.tagName.toLowerCase();if(null==new RegExp(e,["i"]).exec("input|textarea")&&F(L))return 39===t.keyCode?(S(t),!1):37===t.keyCode?(b(t),!1):void 0},N=function(){D.touch={start:{x:0,y:0},end:{x:0,y:0}},D.viewport.bind("touchstart",X),D.viewport.on("click",".bxslider a",function(t){D.viewport.hasClass("click-disabled")&&(t.preventDefault(),D.viewport.removeClass("click-disabled"))})},X=function(t){D.controls.el.addClass("disabled"),D.working?(t.preventDefault(),D.controls.el.removeClass("disabled")):(D.touch.originalPos=L.position(),t=void 0!==(t=t.originalEvent).changedTouches?t.changedTouches:[t],D.touch.start.x=t[0].pageX,D.touch.start.y=t[0].pageY,D.viewport.bind("touchmove",q),D.viewport.bind("touchend",A))},q=function(t){var e=t.originalEvent,e=void 0!==e.changedTouches?e.changedTouches:[e],i=Math.abs(e[0].pageX-D.touch.start.x),s=Math.abs(e[0].pageY-D.touch.start.y),n=0,o=0;(s<3*i&&D.settings.preventDefaultSwipeX||i<3*s&&D.settings.preventDefaultSwipeY)&&t.preventDefault(),"fade"!==D.settings.mode&&D.settings.oneToOneTouch&&(n="horizontal"===D.settings.mode?(o=e[0].pageX-D.touch.start.x,D.touch.originalPos.left+o):(o=e[0].pageY-D.touch.start.y,D.touch.originalPos.top+o),p(n,"reset",0))},A=function(t){D.viewport.unbind("touchmove",q),D.controls.el.removeClass("disabled");var t=t.originalEvent,e=void 0!==t.changedTouches?t.changedTouches:[t],i=0,s=0;D.touch.end.x=e[0].pageX,D.touch.end.y=e[0].pageY,"fade"===D.settings.mode?(s=Math.abs(D.touch.start.x-D.touch.end.x))>=D.settings.swipeThreshold&&(D.touch.start.x>D.touch.end.x?L.goToNextSlide():L.goToPrevSlide(),L.stopAuto()):(i="horizontal"===D.settings.mode?(s=D.touch.end.x-D.touch.start.x,D.touch.originalPos.left):(s=D.touch.end.y-D.touch.start.y,D.touch.originalPos.top),(D.settings.infiniteLoop||!(0===D.active.index&&0<s||D.active.last&&s<0))&&Math.abs(s)>=D.settings.swipeThreshold?(s<0?L.goToNextSlide():L.goToPrevSlide(),L.stopAuto()):p(i,"reset",200)),D.viewport.unbind("touchend",A),"function"==typeof PointerEvent&&void 0===t.pointerId||D.viewport.get(0).releasePointerCapture&&D.viewport.get(0).releasePointerCapture(D.pointerId)},H=function(t){var e,i;D.initialized&&(D.working?window.setTimeout(H,10):(e=R(window).width(),i=R(window).height(),Y===e&&V===i||(Y=e,V=i,L.redrawSlider(),D.settings.onSliderResize.call(L,D.active.index))))},W=function(t){var e=d();D.settings.ariaHidden&&!D.settings.ticker&&(D.children.attr("aria-hidden","true"),D.children.slice(t,t+e).attr("aria-hidden","false"))},L.goToSlide=function(t,e){var i,s=!0,n=0,o={left:0,top:0},r=null;if(D.oldIndex=D.active.index,D.active.index=(i=t)<0?D.settings.infiniteLoop?c()-1:D.active.index:i>=c()?D.settings.infiniteLoop?0:D.active.index:i,!D.working&&D.active.index!==D.oldIndex){if(D.working=!0,void 0!==(s=D.settings.onSlideBefore.call(L,D.children.eq(D.active.index),D.oldIndex,D.active.index))&&!s)return D.active.index=D.oldIndex,void(D.working=!1);"next"===e?D.settings.onSlideNext.call(L,D.children.eq(D.active.index),D.oldIndex,D.active.index)||(s=!1):"prev"!==e||D.settings.onSlidePrev.call(L,D.children.eq(D.active.index),D.oldIndex,D.active.index)||(s=!1),D.active.last=D.active.index>=c()-1,(D.settings.pager||D.settings.pagerCustom)&&E(D.active.index),D.settings.controls&&y(),"fade"===D.settings.mode?(D.settings.adaptiveHeight&&D.viewport.height()!==a()&&D.viewport.animate({height:a()},D.settings.adaptiveHeightSpeed),D.children.filter(":visible").fadeOut(D.settings.speed).css({zIndex:0}),D.children.eq(D.active.index).css("zIndex",D.settings.slideZIndex+1).fadeIn(D.settings.speed,function(){R(this).css("zIndex",D.settings.slideZIndex),k()})):(D.settings.adaptiveHeight&&D.viewport.height()!==a()&&D.viewport.animate({height:a()},D.settings.adaptiveHeightSpeed),!D.settings.infiniteLoop&&D.carousel&&D.active.last?"horizontal"===D.settings.mode?(o=(r=D.children.eq(D.children.length-1)).position(),n=D.viewport.width()-r.outerWidth()):(i=D.children.length-D.settings.minSlides,o=D.children.eq(i).position()):D.carousel&&D.active.last&&"prev"===e?(s=1===D.settings.moveSlides?D.settings.maxSlides-g():(c()-1)*g()-(D.children.length-D.settings.maxSlides),o=(r=L.children(".bx-clone").eq(s)).position()):"next"===e&&0===D.active.index?(o=L.find("> .bx-clone").eq(D.settings.maxSlides).position(),D.active.last=!1):0<=t&&(i=t*parseInt(g()),o=D.children.eq(i).position()),void 0!==o?(s="horizontal"===D.settings.mode?-(o.left-n):-o.top,p(s,"slide",D.settings.speed)):D.working=!1),D.settings.ariaHidden&&W(D.active.index*g())}},L.goToNextSlide=function(){var t;!D.settings.infiniteLoop&&D.active.last||(t=parseInt(D.active.index)+1,L.goToSlide(t,"next"))},L.goToPrevSlide=function(){var t;!D.settings.infiniteLoop&&0===D.active.index||(t=parseInt(D.active.index)-1,L.goToSlide(t,"prev"))},L.startAuto=function(t){D.interval||(D.interval=setInterval(function(){"next"===D.settings.autoDirection?L.goToNextSlide():L.goToPrevSlide()},D.settings.pause),D.settings.autoControls&&!0!==t&&P("stop"))},L.stopAuto=function(t){D.interval&&(clearInterval(D.interval),D.interval=null,D.settings.autoControls&&!0!==t&&P("start"))},L.getCurrentSlide=function(){return D.active.index},L.getCurrentSlideElement=function(){return D.children.eq(D.active.index)},L.getSlideElement=function(t){return D.children.eq(t)},L.getSlideCount=function(){return D.children.length},L.isWorking=function(){return D.working},L.redrawSlider=function(){D.children.add(L.find(".bx-clone")).outerWidth(l()),D.viewport.css("height",a()),D.settings.ticker||h(),D.active.last&&(D.active.index=c()-1),D.active.index>=c()&&(D.active.last=!0),D.settings.pager&&!D.settings.pagerCustom&&(u(),E(D.active.index)),D.settings.ariaHidden&&W(D.active.index*g())},L.destroySlider=function(){D.initialized&&(D.initialized=!1,R(".bx-clone",this).remove(),D.children.each(function(){void 0!==R(this).data("origStyle")?R(this).attr("style",R(this).data("origStyle")):R(this).removeAttr("style")}),void 0!==R(this).data("origStyle")?this.attr("style",R(this).data("origStyle")):R(this).removeAttr("style"),R(this).unwrap().unwrap(),D.controls.el&&D.controls.el.remove(),D.controls.next&&D.controls.next.remove(),D.controls.prev&&D.controls.prev.remove(),D.pagerEl&&D.settings.controls&&!D.settings.pagerCustom&&D.pagerEl.remove(),R(".bx-caption",this).remove(),D.controls.autoEl&&D.controls.autoEl.remove(),clearInterval(D.interval),D.settings.responsive&&R(window).unbind("resize",H),D.settings.keyboardEnabled&&R(document).unbind("keydown",I),R(this).removeData("bxSlider"))},L.reloadSlider=function(t){void 0!==t&&(e=t),L.destroySlider(),s(),R(L).data("bxSlider",this)},s(),R(L).data("bxSlider",this),this}}(jQuery);
var wpAjaxUrl='https://pathwaystoempowerment.net/wp-admin/admin-ajax.php';var flBuilderUrl='https://pathwaystoempowerment.net/wp-content/plugins/beaver-builder-lite-version/';var FLBuilderLayoutConfig={anchorLinkAnimations:{duration:1000,easing:'swing',offset:100},paths:{pluginUrl:'https://pathwaystoempowerment.net/wp-content/plugins/beaver-builder-lite-version/',wpAjaxUrl:'https://pathwaystoempowerment.net/wp-admin/admin-ajax.php'},breakpoints:{small:768,medium:992,large:1200},waypoint:{offset:80},emptyColWidth:'0%'};(function($){if(typeof FLBuilderLayout!='undefined'){return;}
FLBuilderLayout={init:function(){FLBuilderLayout._destroy();FLBuilderLayout._initClasses();FLBuilderLayout._initBackgrounds();FLBuilderLayout._initRowShapeLayerHeight();if(0===$('.fl-builder-edit').length){FLBuilderLayout._initModuleAnimations();FLBuilderLayout._initAnchorLinks();FLBuilderLayout._initHash();FLBuilderLayout._initForms();FLBuilderLayout._reorderMenu();}else{FLBuilderLayout._initNestedColsWidth();}},refreshGalleries:function(element){var $element='undefined'==typeof element?$('body'):$(element),mfContent=$element.find('.fl-mosaicflow-content'),wmContent=$element.find('.fl-gallery'),mfObject=null;if(mfContent){mfObject=mfContent.data('mosaicflow');if(mfObject){mfObject.columns=$([]);mfObject.columnsHeights=[];mfContent.data('mosaicflow',mfObject);mfContent.mosaicflow('refill');}}
if(wmContent){wmContent.trigger('refreshWookmark');}},refreshGridLayout:function(element){var $element='undefined'==typeof element?$('body'):$(element),msnryContent=$element.find('.masonry');if(msnryContent.length){msnryContent.masonry('layout');}},reloadSlider:function(content){var $content='undefined'==typeof content?$('body'):$(content);if($content.find('.bx-viewport > div').length>0){$.each($content.find('.bx-viewport > div'),function(key,slider){setTimeout(function(){$(slider).data('bxSlider').reloadSlider();},100);});}},resizeAudio:function(element){var $element='undefined'==typeof element?$('body'):$(element),audioPlayers=$element.find('.wp-audio-shortcode.mejs-audio'),player=null,mejsPlayer=null,rail=null,railWidth=400;if(audioPlayers.length&&typeof mejs!=='undefined'){audioPlayers.each(function(){player=$(this);mejsPlayer=mejs.players[player.attr('id')];rail=player.find('.mejs-controls .mejs-time-rail');var innerMejs=player.find('.mejs-inner'),total=player.find('.mejs-controls .mejs-time-total');if(typeof mejsPlayer!=='undefined'){railWidth=Math.ceil(player.width()*0.8);if(innerMejs.length){rail.css('width',railWidth+'px!important');mejsPlayer.options.autosizeProgress=true;setTimeout(function(){mejsPlayer.setControlsSize();},50);player.find('.mejs-inner').css({visibility:'visible',height:'inherit'});}}});}},preloadAudio:function(element){var $element='undefined'==typeof element?$('body'):$(element),contentWrap=$element.closest('.fl-accordion-item'),audioPlayers=$element.find('.wp-audio-shortcode.mejs-audio');if(!contentWrap.hasClass('fl-accordion-item-active')&&audioPlayers.find('.mejs-inner').length){audioPlayers.find('.mejs-inner').css({visibility:'hidden',height:0});}},resizeSlideshow:function(){if(typeof YUI!=='undefined'){YUI().use('node-event-simulate',function(Y){Y.one(window).simulate("resize");});}},reloadGoogleMap:function(element){var $element='undefined'==typeof element?$('body'):$(element),googleMap=$element.find('iframe[src*="google.com/maps"]');if(googleMap.length){googleMap.attr('src',function(i,val){return val;});}},_destroy:function(){var win=$(window);win.off('scroll.fl-bg-parallax');win.off('resize.fl-bg-video');},_isTouch:function(){if(('ontouchstart'in window)||(window.DocumentTouch&&document instanceof DocumentTouch)){return true;}
return false;},_isMobile:function(){return/Mobile|Android|Silk\/|Kindle|BlackBerry|Opera Mini|Opera Mobi|webOS/i.test(navigator.userAgent);},_initClasses:function(){var body=$('body'),ua=navigator.userAgent;if(!body.hasClass('archive')&&$('.fl-builder-content-primary').length>0){body.addClass('fl-builder');}
if(FLBuilderLayout._isTouch()){body.addClass('fl-builder-touch');}
if(FLBuilderLayout._isMobile()){body.addClass('fl-builder-mobile');}
if($(window).width()<FLBuilderLayoutConfig.breakpoints.small){body.addClass('fl-builder-breakpoint-small');}
if($(window).width()>FLBuilderLayoutConfig.breakpoints.small&&$(window).width()<FLBuilderLayoutConfig.breakpoints.medium){body.addClass('fl-builder-breakpoint-medium');}
if($(window).width()>FLBuilderLayoutConfig.breakpoints.medium&&$(window).width()<FLBuilderLayoutConfig.breakpoints.large){body.addClass('fl-builder-breakpoint-large');}
if($(window).width()>FLBuilderLayoutConfig.breakpoints.large){body.addClass('fl-builder-breakpoint-default');}
if(ua.indexOf('Trident/7.0')>-1&&ua.indexOf('rv:11.0')>-1){body.addClass('fl-builder-ie-11');}},_initBackgrounds:function(){var win=$(window);if($('.fl-row-bg-parallax').length>0&&!FLBuilderLayout._isMobile()){FLBuilderLayout._scrollParallaxBackgrounds();FLBuilderLayout._initParallaxBackgrounds();win.on('resize.fl-bg-parallax',FLBuilderLayout._initParallaxBackgrounds);win.on('scroll.fl-bg-parallax',FLBuilderLayout._scrollParallaxBackgrounds);}
if($('.fl-bg-video').length>0){FLBuilderLayout._initBgVideos();FLBuilderLayout._resizeBgVideos();var resizeBGTimer=null;win.on('resize.fl-bg-video',function(e){clearTimeout(resizeBGTimer);resizeBGTimer=setTimeout(function(){FLBuilderLayout._resizeBgVideos(e);},100);});}},_initParallaxBackgrounds:function(){$('.fl-row-bg-parallax').each(FLBuilderLayout._initParallaxBackground);},_initParallaxBackground:function(){var row=$(this),content=row.find('> .fl-row-content-wrap'),winWidth=$(window).width(),screenSize='',imageSrc={default:'',medium:'',responsive:'',};imageSrc.default=row.data('parallax-image')||'';imageSrc.medium=row.data('parallax-image-medium')||imageSrc.default;imageSrc.responsive=row.data('parallax-image-responsive')||imageSrc.medium;if(winWidth>FLBuilderLayoutConfig.breakpoints.medium){screenSize='default';}else if(winWidth>FLBuilderLayoutConfig.breakpoints.small&&winWidth<=FLBuilderLayoutConfig.breakpoints.medium){screenSize='medium';}else if(winWidth<=FLBuilderLayoutConfig.breakpoints.small){screenSize='responsive';}
content.css('background-image','url('+imageSrc[screenSize]+')');row.data('current-image-loaded',screenSize);},_scrollParallaxBackgrounds:function(){$('.fl-row-bg-parallax').each(FLBuilderLayout._scrollParallaxBackground);},_scrollParallaxBackground:function(){var win=$(window),row=$(this),content=row.find('> .fl-row-content-wrap'),speed=row.data('parallax-speed'),offset=content.offset(),yPos=-((win.scrollTop()-offset.top)/ speed),initialOffset=(row.data('parallax-offset')!=null)?row.data('parallax-offset'):0,totalOffset=yPos-initialOffset;content.css('background-position','center '+totalOffset+'px');},_initBgVideos:function(){$('.fl-bg-video').each(FLBuilderLayout._initBgVideo);},_initBgVideo:function(){var wrap=$(this),width=wrap.data('width'),height=wrap.data('height'),mp4=wrap.data('mp4'),youtube=wrap.data('youtube'),vimeo=wrap.data('vimeo'),mp4Type=wrap.data('mp4-type'),webm=wrap.data('webm'),webmType=wrap.data('webm-type'),fallback=wrap.data('fallback'),loaded=wrap.data('loaded'),videoMobile=wrap.data('video-mobile'),fallbackTag='',videoTag=null,mp4Tag=null,webmTag=null;if(loaded){return;}
videoTag=$('<video autoplay loop muted playsinline></video>');if('undefined'!=typeof fallback&&''!=fallback){videoTag.attr('poster','data:image/gif;base64,R0lGODlhAQABAIAAAAAAAP///yH5BAEAAAAALAAAAAABAAEAAAIBRAA7')
videoTag.css({backgroundImage:'url("'+fallback+'")',backgroundColor:'transparent',backgroundRepeat:'no-repeat',backgroundSize:'cover',backgroundPosition:'center center',})}
if('undefined'!=typeof mp4&&''!=mp4){mp4Tag=$('<source />');mp4Tag.attr('src',mp4);mp4Tag.attr('type',mp4Type);videoTag.append(mp4Tag);}
if('undefined'!=typeof webm&&''!=webm){webmTag=$('<source />');webmTag.attr('src',webm);webmTag.attr('type',webmType);videoTag.append(webmTag);}
if(!FLBuilderLayout._isMobile()||(FLBuilderLayout._isMobile()&&"yes"==videoMobile)){if('undefined'!=typeof youtube){FLBuilderLayout._initYoutubeBgVideo.apply(this);}
else if('undefined'!=typeof vimeo){FLBuilderLayout._initVimeoBgVideo.apply(this);}else{wrap.append(videoTag);}}else{videoTag.attr('src','')
wrap.append(videoTag);}
wrap.data('loaded',true);},_initYoutubeBgVideo:function(){var playerWrap=$(this),videoId=playerWrap.data('video-id'),videoPlayer=playerWrap.find('.fl-bg-video-player'),enableAudio=playerWrap.data('enable-audio'),audioButton=playerWrap.find('.fl-bg-video-audio'),startTime='undefined'!==typeof playerWrap.data('start')?playerWrap.data('start'):0,startTime='undefined'!==typeof playerWrap.data('t')&&startTime===0?playerWrap.data('t'):startTime,endTime='undefined'!==typeof playerWrap.data('end')?playerWrap.data('end'):0,loop='undefined'!==typeof playerWrap.data('loop')?playerWrap.data('loop'):1,stateCount=0,player,fallback_showing;if(videoId){fallback=playerWrap.data('fallback')||false
if(fallback){playerWrap.find('iframe').remove()
fallbackTag=$('<div></div>');fallbackTag.addClass('fl-bg-video-fallback');fallbackTag.css('background-image','url('+playerWrap.data('fallback')+')');fallbackTag.css('background-size','cover');fallbackTag.css('transition','background-image 1s')
playerWrap.append(fallbackTag);fallback_showing=true;}
FLBuilderLayout._onYoutubeApiReady(function(YT){setTimeout(function(){player=new YT.Player(videoPlayer[0],{videoId:videoId,events:{onReady:function(event){if("no"===enableAudio||FLBuilderLayout._isMobile()){event.target.mute();}
else if("yes"===enableAudio&&event.target.isMuted){event.target.unMute();}
playerWrap.data('YTPlayer',player);FLBuilderLayout._resizeYoutubeBgVideo.apply(playerWrap);event.target.playVideo();if(audioButton.length>0&&!FLBuilderLayout._isMobile()){audioButton.on('click',{button:audioButton,player:player},FLBuilderLayout._toggleBgVideoAudio);}},onStateChange:function(event){if(event.data===1){if(fallback_showing){$('.fl-bg-video-fallback').css('background-image','url(data:image/gif;base64,R0lGODlhAQABAIAAAAAAAP///yH5BAEAAAAALAAAAAABAAEAAAIBRAA7)')}}
if(stateCount<4){stateCount++;}
if(stateCount>1&&(-1===event.data||2===event.data)&&"yes"===enableAudio){player.mute();player.playVideo();audioButton.show();}
if(event.data===YT.PlayerState.ENDED&&1===loop){if(startTime>0){player.seekTo(startTime);}else{player.playVideo();}}},onError:function(event){console.info('YT Error: '+event.data)
FLBuilderLayout._onErrorYoutubeVimeo(playerWrap)}},playerVars:{playsinline:FLBuilderLayout._isMobile()?1:0,controls:0,showinfo:0,rel:0,start:startTime,end:endTime,}});},1);});}},_onErrorYoutubeVimeo:function(playerWrap){fallback=playerWrap.data('fallback')||false
if(!fallback){return false;}
playerWrap.find('iframe').remove()
fallbackTag=$('<div></div>');fallbackTag.addClass('fl-bg-video-fallback');fallbackTag.css('background-image','url('+playerWrap.data('fallback')+')');playerWrap.append(fallbackTag);},_onYoutubeApiReady:function(callback){if(window.YT&&YT.loaded){callback(YT);}else{setTimeout(function(){FLBuilderLayout._onYoutubeApiReady(callback);},350);}},_initVimeoBgVideo:function(){var playerWrap=$(this),videoId=playerWrap.data('video-id'),videoPlayer=playerWrap.find('.fl-bg-video-player'),enableAudio=playerWrap.data('enable-audio'),audioButton=playerWrap.find('.fl-bg-video-audio'),player,width=playerWrap.outerWidth(),ua=navigator.userAgent;if(typeof Vimeo!=='undefined'&&videoId){player=new Vimeo.Player(videoPlayer[0],{id:videoId,loop:true,title:false,portrait:false,background:true,autopause:false,muted:true});playerWrap.data('VMPlayer',player);if("no"===enableAudio){player.setVolume(0);}
else if("yes"===enableAudio){if(ua.indexOf("Safari")>-1||ua.indexOf("Chrome")>-1||ua.indexOf("Firefox")>-1){player.setVolume(0);audioButton.show();}else{player.setVolume(1);}}
player.play().catch(function(error){FLBuilderLayout._onErrorYoutubeVimeo(playerWrap)});if(audioButton.length>0){audioButton.on('click',{button:audioButton,player:player},FLBuilderLayout._toggleBgVideoAudio);}}},_toggleBgVideoAudio:function(e){var player=e.data.player,control=e.data.button.find('.fl-audio-control');if(control.hasClass('fa-volume-off')){control.removeClass('fa-volume-off').addClass('fa-volume-up');e.data.button.find('.fa-times').hide();if('function'===typeof player.unMute){player.unMute();}else{player.setVolume(1);}}else{control.removeClass('fa-volume-up').addClass('fa-volume-off');e.data.button.find('.fa-times').show();if('function'===typeof player.unMute){player.mute();}else{player.setVolume(0);}}},_videoBgSourceError:function(e){var source=$(e.target),wrap=source.closest('.fl-bg-video'),vid=wrap.find('video'),fallback=wrap.data('fallback'),fallbackTag='';source.remove();if(vid.find('source').length){return;}else if(''!==fallback){fallbackTag=$('<div></div>');fallbackTag.addClass('fl-bg-video-fallback');fallbackTag.css('background-image','url('+fallback+')');wrap.append(fallbackTag);vid.remove();}},_resizeBgVideos:function(){$('.fl-bg-video').each(function(){FLBuilderLayout._resizeBgVideo.apply(this);if($(this).parent().find('img').length>0){$(this).parent().imagesLoaded($.proxy(FLBuilderLayout._resizeBgVideo,this));}});},_resizeBgVideo:function(){if(0===$(this).find('video').length&&0===$(this).find('iframe').length){return;}
var wrap=$(this),wrapHeight=wrap.outerHeight(),wrapWidth=wrap.outerWidth(),vid=wrap.find('video'),vidHeight=wrap.data('height'),vidWidth=wrap.data('width'),newWidth=wrapWidth,newHeight=Math.round(vidHeight*wrapWidth/vidWidth),newLeft=0,newTop=0,iframe=wrap.find('iframe'),isRowFullHeight=$(this).closest('.fl-row-bg-video').hasClass('fl-row-full-height'),vidCSS={top:'50%',left:'50%',transform:'translate(-50%,-50%)',};if(vid.length){if(vidHeight===''||typeof vidHeight==='undefined'||vidWidth===''||typeof vidWidth==='undefined'){vid.css({'left':'0px','top':'0px','width':newWidth+'px'});vid.on('loadedmetadata',FLBuilderLayout._resizeOnLoadedMeta);return;}
if(!isRowFullHeight){if(newHeight<wrapHeight){newHeight=wrapHeight;newLeft=-((newWidth-wrapWidth)/ 2);newWidth=vidHeight?Math.round(vidWidth*wrapHeight/vidHeight):newWidth;}else{newTop=-((newHeight-wrapHeight)/2);}
vidCSS={left:newLeft+'px',top:newTop+'px',height:newHeight+'px',width:newWidth+'px',}}
vid.css(vidCSS);}
else if(iframe.length){if(typeof wrap.data('youtube')!=='undefined'){FLBuilderLayout._resizeYoutubeBgVideo.apply(this);}}},_resizeOnLoadedMeta:function(){var video=$(this),wrapHeight=video.parent().outerHeight(),wrapWidth=video.parent().outerWidth(),vidWidth=video[0].videoWidth,vidHeight=video[0].videoHeight,newHeight=Math.round(vidHeight*wrapWidth/vidWidth),newWidth=wrapWidth,newLeft=0,newTop=0;if(newHeight<wrapHeight){newHeight=wrapHeight;newWidth=Math.round(vidWidth*wrapHeight/vidHeight);newLeft=-((newWidth-wrapWidth)/2);}else{newTop=-((newHeight-wrapHeight)/2);}
video.parent().data('width',vidWidth);video.parent().data('height',vidHeight);video.css({'left':newLeft+'px','top':newTop+'px','width':newWidth+'px','height':newHeight+'px'});},_resizeYoutubeBgVideo:function(){var wrap=$(this),wrapWidth=wrap.outerWidth(),wrapHeight=wrap.outerHeight(),player=wrap.data('YTPlayer'),video=player?player.getIframe():null,aspectRatioSetting='16:9',aspectRatioArray=aspectRatioSetting.split(':'),aspectRatio=aspectRatioArray[0]/ aspectRatioArray[1],ratioWidth=wrapWidth / aspectRatio,ratioHeight=wrapHeight*aspectRatio,isWidthFixed=wrapWidth / wrapHeight>aspectRatio,width=isWidthFixed?wrapWidth:ratioHeight,height=isWidthFixed?ratioWidth:wrapHeight;if(video){$(video).width(width).height(height);}},_initModuleAnimations:function(){if(typeof jQuery.fn.waypoint!=='undefined'){$('.fl-animation').each(function(){var node=$(this),nodeTop=node.offset().top,winHeight=$(window).height(),bodyHeight=$('body').height(),waypoint=FLBuilderLayoutConfig.waypoint,offset='80%';if(typeof waypoint.offset!==undefined){offset=FLBuilderLayoutConfig.waypoint.offset+'%';}
if(bodyHeight-nodeTop<winHeight*0.2){offset='100%';}
node.waypoint({offset:offset,handler:FLBuilderLayout._doModuleAnimation});});}},_doModuleAnimation:function(){var module='undefined'==typeof this.element?$(this):$(this.element),delay=parseFloat(module.data('animation-delay')),duration=parseFloat(module.data('animation-duration'));if(!isNaN(duration)){module.css('animation-duration',duration+'s');}
if(!isNaN(delay)&&delay>0){setTimeout(function(){module.addClass('fl-animated');},delay*1000);}else{setTimeout(function(){module.addClass('fl-animated');},1);}},_initHash:function(){var hash=window.location.hash.replace('#','').split('/').shift(),element=null,tabs=null,responsiveLabel=null,tabIndex=null,label=null;if(''!==hash){try{element=$('#'+hash);if(element.length>0){if(element.hasClass('fl-accordion-item')){setTimeout(function(){element.find('.fl-accordion-button').trigger('click');},100);}
if(element.hasClass('fl-tabs-panel')){setTimeout(function(){tabs=element.closest('.fl-tabs');responsiveLabel=element.find('.fl-tabs-panel-label');tabIndex=responsiveLabel.data('index');label=tabs.find('.fl-tabs-labels .fl-tabs-label[data-index='+tabIndex+']');label[0].click();FLBuilderLayout._scrollToElement(element);},100);}}}
catch(e){}}},_initAnchorLinks:function(){$('a').each(FLBuilderLayout._initAnchorLink);},_initAnchorLink:function(){var link=$(this),href=link.attr('href'),loc=window.location,id=null,element=null,flNode=false;if('undefined'!=typeof href&&href.indexOf('#')>-1&&link.closest('svg').length<1){if(loc.pathname.replace(/^\//,'')==this.pathname.replace(/^\//,'')&&loc.hostname==this.hostname){try{id=href.split('#').pop();if(!id){return;}
element=$('#'+id);if(element.length>0){flNode=element.hasClass('fl-row')||element.hasClass('fl-col')||element.hasClass('fl-module');if(!element.hasClass('fl-no-scroll')&&(link.hasClass('fl-scroll-link')||flNode)){$(link).on('click',FLBuilderLayout._scrollToElementOnLinkClick);}
if(element.hasClass('fl-accordion-item')){$(link).on('click',FLBuilderLayout._scrollToAccordionOnLinkClick);}
if(element.hasClass('fl-tabs-panel')){$(link).on('click',FLBuilderLayout._scrollToTabOnLinkClick);}}}
catch(e){}}}},_scrollToElementOnLinkClick:function(e,callback){var element=$('#'+$(this).attr('href').split('#').pop());FLBuilderLayout._scrollToElement(element,callback);e.preventDefault();},_scrollToElement:function(element,callback){var config=FLBuilderLayoutConfig.anchorLinkAnimations,dest=0,win=$(window),doc=$(document);if(element.length>0){if('fixed'===element.css('position')||'fixed'===element.parent().css('position')){dest=element.position().top;}
else if(element.offset().top>doc.height()-win.height()){dest=doc.height()-win.height();}else{dest=element.offset().top-config.offset;}
$('html, body').animate({scrollTop:dest},config.duration,config.easing,function(){if('undefined'!=typeof callback){callback();}
if(undefined!=element.attr('id')){if(history.pushState){history.pushState(null,null,'#'+element.attr('id'));}else{window.location.hash=element.attr('id');}}});}},_scrollToAccordionOnLinkClick:function(e){var element=$('#'+$(this).attr('href').split('#').pop());if(element.length>0){var callback=function(){if(element){element.find('.fl-accordion-button').trigger('click');element=false;}};FLBuilderLayout._scrollToElementOnLinkClick.call(this,e,callback);}},_scrollToTabOnLinkClick:function(e){var element=$('#'+$(this).attr('href').split('#').pop()),tabs=null,label=null,responsiveLabel=null;if(element.length>0){tabs=element.closest('.fl-tabs');responsiveLabel=element.find('.fl-tabs-panel-label');tabIndex=responsiveLabel.data('index');label=tabs.find('.fl-tabs-labels .fl-tabs-label[data-index='+tabIndex+']');if(responsiveLabel.is(':visible')){var callback=function(){if(element){responsiveLabel.trigger($.Event('click',{which:1}));}};FLBuilderLayout._scrollToElementOnLinkClick.call(this,e,callback);}else{label[0].click();FLBuilderLayout._scrollToElement(element);}
e.preventDefault();}},_initForms:function(){if(!FLBuilderLayout._hasPlaceholderSupport){$('.fl-form-field input').each(FLBuilderLayout._initFormFieldPlaceholderFallback);}
$('.fl-form-field input').on('focus',FLBuilderLayout._clearFormFieldError);},_hasPlaceholderSupport:function(){var input=document.createElement('input');return'undefined'!=input.placeholder;},_initFormFieldPlaceholderFallback:function(){var field=$(this),val=field.val(),placeholder=field.attr('placeholder');if('undefined'!=placeholder&&''===val){field.val(placeholder);field.on('focus',FLBuilderLayout._hideFormFieldPlaceholderFallback);field.on('blur',FLBuilderLayout._showFormFieldPlaceholderFallback);}},_hideFormFieldPlaceholderFallback:function(){var field=$(this),val=field.val(),placeholder=field.attr('placeholder');if(val==placeholder){field.val('');}},_showFormFieldPlaceholderFallback:function(){var field=$(this),val=field.val(),placeholder=field.attr('placeholder');if(''===val){field.val(placeholder);}},_clearFormFieldError:function(){var field=$(this);field.removeClass('fl-form-error');field.siblings('.fl-form-error-message').hide();},_initRowShapeLayerHeight:function(){FLBuilderLayout._adjustRowShapeLayerHeight();$(window).on('resize',FLBuilderLayout._adjustRowShapeLayerHeight);},_initNestedColsWidth:function(){var nestedCols=$('.fl-col-has-cols');if(nestedCols.length<=0){return;}
$(nestedCols).each(function(index,col){if($(col).width()<=0){$(col).css('width',FLBuilderLayoutConfig.emptyColWidth);}});},_adjustRowShapeLayerHeight:function(){var rowShapeLayers=$('.fl-builder-shape-layer');$(rowShapeLayers).each(function(index){var rowShapeLayer=$(this),shape=$(rowShapeLayer).find('svg'),height=shape.height(),excludeShapes='.fl-builder-shape-circle, .fl-builder-shape-dot-cluster, .fl-builder-shape-topography, .fl-builder-shape-rect';if(!rowShapeLayer.is(excludeShapes)){$(shape).css('height',Math.ceil(height));}});},_string_to_slug:function(str){str=str.replace(/^\s+|\s+$/g,'');if('undefined'==typeof window._fl_string_to_slug_regex){regex=new RegExp('[^a-zA-Z0-9\'":() !.,-_|]','g');}else{regex=new RegExp('[^'+window._fl_string_to_slug_regex+'\'":\(\) !.,-_|\\\p{Letter}]','ug');}
str=str.replace(regex,'').replace(/\s+/g,' ');return str;},_reorderMenu:function(){if($('#wp-admin-bar-fl-builder-frontend-edit-link-default li').length>1){$('#wp-admin-bar-fl-builder-frontend-duplicate-link').appendTo('#wp-admin-bar-fl-builder-frontend-edit-link-default').css('padding-top','5px').css('border-top','2px solid #1D2125').css('margin-top','5px')}}};$(function(){FLBuilderLayout.init();});})(jQuery);(function($){$(function(){var slider=$('.fl-node-dkbajs6q0eog .fl-content-slider-wrapper').bxSlider({adaptiveHeight:true,auto:false,autoHover:true,autoControls:false,pause:5000,mode:'horizontal',speed:500,controls:false,infiniteLoop:true,pager:false,video:true,onSliderLoad:function(currentIndex){$('.fl-node-dkbajs6q0eog .fl-content-slider-wrapper').addClass('fl-content-slider-loaded');$('.fl-node-dkbajs6q0eog iframe').each(function(){var src=$(this).attr('src');$(this).attr('data-url',src);if(!$(this).is(':visible')||0===$(this).parents('.fl-slide-0:not(.bx-clone)').length){$(this).attr('src','');}});$('.fl-slide-0:not(.bx-clone) video[autoplay]').trigger('play');},onSlideBefore:function(ele,oldIndex,newIndex){$('.fl-node-dkbajs6q0eog .fl-content-slider-navigation a').addClass('disabled');$('.fl-node-dkbajs6q0eog .bx-viewport > .bx-controls .bx-pager-link').addClass('disabled');},onSlideAfter:function(ele,oldIndex,newIndex){var prevSlide=$('.fl-node-dkbajs6q0eog .fl-slide-'+oldIndex+':not(.bx-clone)'),newSlide=$('.fl-node-dkbajs6q0eog .fl-slide-'+newIndex+':not(.bx-clone)');if(newSlide.find('iframe:visible').length){newSlide.find('iframe:visible').each(function(){var src=$(this).attr('data-url');$(this).attr('src',src);});}
if(prevSlide.find('iframe:visible').length){prevSlide.find('iframe:visible').each(function(){var src=$(this).attr('src');$(this).attr('src','');});}
$('.fl-node-dkbajs6q0eog .fl-content-slider-navigation a').removeClass('disabled');$('.fl-node-dkbajs6q0eog .bx-viewport > .bx-controls .bx-pager-link').removeClass('disabled');if(prevSlide.find('video').length){prevSlide.find('video').trigger('pause');}
$('.fl-node-dkbajs6q0eog .fl-slide-'+newIndex+':not(.bx-clone)').find('video[autoplay]').trigger('play')}});slider.data('bxSlider',slider);});})(jQuery);(function($){$(function(){$('.fl-embed-video').fitVids();if(($('.fl-module-video .fl-wp-video video').length>1)&&typeof $.fn.mediaelementplayer!=='undefined'){$('.fl-module-video .fl-wp-video video').mediaelementplayer({pauseOtherPlayers:false});}});FLBuilderVideo=function(settings){this.nodeID=settings.id;this.nodeClass='.fl-node-'+settings.id;this.wrapperClass=this.nodeClass+' .fl-video';this._initVideo();this._initStickyOnScroll();};FLBuilderVideo.prototype={_initVideo:function(){var origTop=$(this.nodeClass).offset().top,origLeft=$(this.nodeClass).offset().left,origHeight=$(this.nodeClass).outerHeight(),origWidth=$(this.nodeClass).outerWidth();$(this.nodeClass).attr('data-orig-top',origTop);$(this.nodeClass).attr('data-orig-left',origLeft);$(this.nodeClass).attr('data-orig-height',origHeight);$(this.nodeClass).attr('data-orig-width',origWidth);},_makeSticky:function(){var origLeft=$(this.nodeClass).data('orig-left'),origHeight=$(this.nodeClass).data('orig-height'),origWidth=$(this.nodeClass).data('orig-width');$(this.nodeClass).addClass('fl-video-sticky');$(this.nodeClass).css('left',origLeft);$(this.nodeClass).css('height',origHeight);$(this.nodeClass).css('width',origWidth);},_removeSticky:function(){$(this.nodeClass).removeClass('fl-video-sticky');},_initStickyOnScroll:function(){$(window).on('scroll',$.proxy(function(e){var win=$(window),winTop=win.scrollTop(),nodeTop=$(this.nodeClass).data('orig-top');isSticky=$(this.nodeClass).hasClass('fl-video-sticky');if(winTop>=nodeTop){if(!isSticky){this._makeSticky();}}else{this._removeSticky();}},this));},};})(jQuery);(function($){})(jQuery);